diff --git a/.gitignore b/.gitignore index 8fb3b06..5a8f1d4 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ *.ori *.orig *.tmp +node_modules/ diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 0000000..ba17966 --- /dev/null +++ b/babel.config.js @@ -0,0 +1,5 @@ +module.exports = { + presets: [ + '@vue/app' + ] +} diff --git a/dist/css/app.4439dee6.css b/dist/css/app.4439dee6.css new file mode 100644 index 0000000..c5fee92 --- /dev/null +++ b/dist/css/app.4439dee6.css @@ -0,0 +1 @@ +@import url(https://fonts.googleapis.com/css?family=Lato:400,700);.CodeMirror{font-family:monospace;height:750px}@font-face{font-family:themify;src:url(../fonts/themify.2c454669.eot);src:url(../fonts/themify.2c454669.eot) format("embedded-opentype"),url(../fonts/themify.a1ecc3b8.woff) format("woff"),url(../fonts/themify.e23a7dca.ttf) format("truetype"),url(../img/themify.9c8e96ec.svg) format("svg");font-weight:400;font-style:normal}[class*=" ti-"],[class^=ti-]{font-family:themify;speak:none;font-style:normal;font-weight:700;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ti-wand:before{content:"\e600"}.ti-volume:before{content:"\e601"}.ti-user:before{content:"\e602"}.ti-unlock:before{content:"\e603"}.ti-unlink:before{content:"\e604"}.ti-trash:before{content:"\e605"}.ti-thought:before{content:"\e606"}.ti-target:before{content:"\e607"}.ti-tag:before{content:"\e608"}.ti-tablet:before{content:"\e609"}.ti-star:before{content:"\e60a"}.ti-spray:before{content:"\e60b"}.ti-signal:before{content:"\e60c"}.ti-shopping-cart:before{content:"\e60d"}.ti-shopping-cart-full:before{content:"\e60e"}.ti-settings:before{content:"\e60f"}.ti-search:before{content:"\e610"}.ti-zoom-in:before{content:"\e611"}.ti-zoom-out:before{content:"\e612"}.ti-cut:before{content:"\e613"}.ti-ruler:before{content:"\e614"}.ti-ruler-pencil:before{content:"\e615"}.ti-ruler-alt:before{content:"\e616"}.ti-bookmark:before{content:"\e617"}.ti-bookmark-alt:before{content:"\e618"}.ti-reload:before{content:"\e619"}.ti-plus:before{content:"\e61a"}.ti-pin:before{content:"\e61b"}.ti-pencil:before{content:"\e61c"}.ti-pencil-alt:before{content:"\e61d"}.ti-paint-roller:before{content:"\e61e"}.ti-paint-bucket:before{content:"\e61f"}.ti-na:before{content:"\e620"}.ti-mobile:before{content:"\e621"}.ti-minus:before{content:"\e622"}.ti-medall:before{content:"\e623"}.ti-medall-alt:before{content:"\e624"}.ti-marker:before{content:"\e625"}.ti-marker-alt:before{content:"\e626"}.ti-arrow-up:before{content:"\e627"}.ti-arrow-right:before{content:"\e628"}.ti-arrow-left:before{content:"\e629"}.ti-arrow-down:before{content:"\e62a"}.ti-lock:before{content:"\e62b"}.ti-location-arrow:before{content:"\e62c"}.ti-link:before{content:"\e62d"}.ti-layout:before{content:"\e62e"}.ti-layers:before{content:"\e62f"}.ti-layers-alt:before{content:"\e630"}.ti-key:before{content:"\e631"}.ti-import:before{content:"\e632"}.ti-image:before{content:"\e633"}.ti-heart:before{content:"\e634"}.ti-heart-broken:before{content:"\e635"}.ti-hand-stop:before{content:"\e636"}.ti-hand-open:before{content:"\e637"}.ti-hand-drag:before{content:"\e638"}.ti-folder:before{content:"\e639"}.ti-flag:before{content:"\e63a"}.ti-flag-alt:before{content:"\e63b"}.ti-flag-alt-2:before{content:"\e63c"}.ti-eye:before{content:"\e63d"}.ti-export:before{content:"\e63e"}.ti-exchange-vertical:before{content:"\e63f"}.ti-desktop:before{content:"\e640"}.ti-cup:before{content:"\e641"}.ti-crown:before{content:"\e642"}.ti-comments:before{content:"\e643"}.ti-comment:before{content:"\e644"}.ti-comment-alt:before{content:"\e645"}.ti-close:before{content:"\e646"}.ti-clip:before{content:"\e647"}.ti-angle-up:before{content:"\e648"}.ti-angle-right:before{content:"\e649"}.ti-angle-left:before{content:"\e64a"}.ti-angle-down:before{content:"\e64b"}.ti-check:before{content:"\e64c"}.ti-check-box:before{content:"\e64d"}.ti-camera:before{content:"\e64e"}.ti-announcement:before{content:"\e64f"}.ti-brush:before{content:"\e650"}.ti-briefcase:before{content:"\e651"}.ti-bolt:before{content:"\e652"}.ti-bolt-alt:before{content:"\e653"}.ti-blackboard:before{content:"\e654"}.ti-bag:before{content:"\e655"}.ti-move:before{content:"\e656"}.ti-arrows-vertical:before{content:"\e657"}.ti-arrows-horizontal:before{content:"\e658"}.ti-fullscreen:before{content:"\e659"}.ti-arrow-top-right:before{content:"\e65a"}.ti-arrow-top-left:before{content:"\e65b"}.ti-arrow-circle-up:before{content:"\e65c"}.ti-arrow-circle-right:before{content:"\e65d"}.ti-arrow-circle-left:before{content:"\e65e"}.ti-arrow-circle-down:before{content:"\e65f"}.ti-angle-double-up:before{content:"\e660"}.ti-angle-double-right:before{content:"\e661"}.ti-angle-double-left:before{content:"\e662"}.ti-angle-double-down:before{content:"\e663"}.ti-zip:before{content:"\e664"}.ti-world:before{content:"\e665"}.ti-wheelchair:before{content:"\e666"}.ti-view-list:before{content:"\e667"}.ti-view-list-alt:before{content:"\e668"}.ti-view-grid:before{content:"\e669"}.ti-uppercase:before{content:"\e66a"}.ti-upload:before{content:"\e66b"}.ti-underline:before{content:"\e66c"}.ti-truck:before{content:"\e66d"}.ti-timer:before{content:"\e66e"}.ti-ticket:before{content:"\e66f"}.ti-thumb-up:before{content:"\e670"}.ti-thumb-down:before{content:"\e671"}.ti-text:before{content:"\e672"}.ti-stats-up:before{content:"\e673"}.ti-stats-down:before{content:"\e674"}.ti-split-v:before{content:"\e675"}.ti-split-h:before{content:"\e676"}.ti-smallcap:before{content:"\e677"}.ti-shine:before{content:"\e678"}.ti-shift-right:before{content:"\e679"}.ti-shift-left:before{content:"\e67a"}.ti-shield:before{content:"\e67b"}.ti-notepad:before{content:"\e67c"}.ti-server:before{content:"\e67d"}.ti-quote-right:before{content:"\e67e"}.ti-quote-left:before{content:"\e67f"}.ti-pulse:before{content:"\e680"}.ti-printer:before{content:"\e681"}.ti-power-off:before{content:"\e682"}.ti-plug:before{content:"\e683"}.ti-pie-chart:before{content:"\e684"}.ti-paragraph:before{content:"\e685"}.ti-panel:before{content:"\e686"}.ti-package:before{content:"\e687"}.ti-music:before{content:"\e688"}.ti-music-alt:before{content:"\e689"}.ti-mouse:before{content:"\e68a"}.ti-mouse-alt:before{content:"\e68b"}.ti-money:before{content:"\e68c"}.ti-microphone:before{content:"\e68d"}.ti-menu:before{content:"\e68e"}.ti-menu-alt:before{content:"\e68f"}.ti-map:before{content:"\e690"}.ti-map-alt:before{content:"\e691"}.ti-loop:before{content:"\e692"}.ti-location-pin:before{content:"\e693"}.ti-list:before{content:"\e694"}.ti-light-bulb:before{content:"\e695"}.ti-Italic:before{content:"\e696"}.ti-info:before{content:"\e697"}.ti-infinite:before{content:"\e698"}.ti-id-badge:before{content:"\e699"}.ti-hummer:before{content:"\e69a"}.ti-home:before{content:"\e69b"}.ti-help:before{content:"\e69c"}.ti-headphone:before{content:"\e69d"}.ti-harddrives:before{content:"\e69e"}.ti-harddrive:before{content:"\e69f"}.ti-gift:before{content:"\e6a0"}.ti-game:before{content:"\e6a1"}.ti-filter:before{content:"\e6a2"}.ti-files:before{content:"\e6a3"}.ti-file:before{content:"\e6a4"}.ti-eraser:before{content:"\e6a5"}.ti-envelope:before{content:"\e6a6"}.ti-download:before{content:"\e6a7"}.ti-direction:before{content:"\e6a8"}.ti-direction-alt:before{content:"\e6a9"}.ti-dashboard:before{content:"\e6aa"}.ti-control-stop:before{content:"\e6ab"}.ti-control-shuffle:before{content:"\e6ac"}.ti-control-play:before{content:"\e6ad"}.ti-control-pause:before{content:"\e6ae"}.ti-control-forward:before{content:"\e6af"}.ti-control-backward:before{content:"\e6b0"}.ti-cloud:before{content:"\e6b1"}.ti-cloud-up:before{content:"\e6b2"}.ti-cloud-down:before{content:"\e6b3"}.ti-clipboard:before{content:"\e6b4"}.ti-car:before{content:"\e6b5"}.ti-calendar:before{content:"\e6b6"}.ti-book:before{content:"\e6b7"}.ti-bell:before{content:"\e6b8"}.ti-basketball:before{content:"\e6b9"}.ti-bar-chart:before{content:"\e6ba"}.ti-bar-chart-alt:before{content:"\e6bb"}.ti-back-right:before{content:"\e6bc"}.ti-back-left:before{content:"\e6bd"}.ti-arrows-corner:before{content:"\e6be"}.ti-archive:before{content:"\e6bf"}.ti-anchor:before{content:"\e6c0"}.ti-align-right:before{content:"\e6c1"}.ti-align-left:before{content:"\e6c2"}.ti-align-justify:before{content:"\e6c3"}.ti-align-center:before{content:"\e6c4"}.ti-alert:before{content:"\e6c5"}.ti-alarm-clock:before{content:"\e6c6"}.ti-agenda:before{content:"\e6c7"}.ti-write:before{content:"\e6c8"}.ti-window:before{content:"\e6c9"}.ti-widgetized:before{content:"\e6ca"}.ti-widget:before{content:"\e6cb"}.ti-widget-alt:before{content:"\e6cc"}.ti-wallet:before{content:"\e6cd"}.ti-video-clapper:before{content:"\e6ce"}.ti-video-camera:before{content:"\e6cf"}.ti-vector:before{content:"\e6d0"}.ti-themify-favicon:before{content:"\e6d2"}.ti-themify-favicon-alt:before{content:"\e6d3"}.ti-support:before{content:"\e6d4"}.ti-stamp:before{content:"\e6d5"}.ti-split-v-alt:before{content:"\e6d6"}.ti-slice:before{content:"\e6d7"}.ti-shortcode:before{content:"\e6d8"}.ti-shift-right-alt:before{content:"\e6d9"}.ti-shift-left-alt:before{content:"\e6da"}.ti-ruler-alt-2:before{content:"\e6db"}.ti-receipt:before{content:"\e6dc"}.ti-pin2:before{content:"\e6dd"}.ti-pin-alt:before{content:"\e6de"}.ti-pencil-alt2:before{content:"\e6df"}.ti-palette:before{content:"\e6e0"}.ti-more:before{content:"\e6e1"}.ti-more-alt:before{content:"\e6e2"}.ti-microphone-alt:before{content:"\e6e3"}.ti-magnet:before{content:"\e6e4"}.ti-line-double:before{content:"\e6e5"}.ti-line-dotted:before{content:"\e6e6"}.ti-line-dashed:before{content:"\e6e7"}.ti-layout-width-full:before{content:"\e6e8"}.ti-layout-width-default:before{content:"\e6e9"}.ti-layout-width-default-alt:before{content:"\e6ea"}.ti-layout-tab:before{content:"\e6eb"}.ti-layout-tab-window:before{content:"\e6ec"}.ti-layout-tab-v:before{content:"\e6ed"}.ti-layout-tab-min:before{content:"\e6ee"}.ti-layout-slider:before{content:"\e6ef"}.ti-layout-slider-alt:before{content:"\e6f0"}.ti-layout-sidebar-right:before{content:"\e6f1"}.ti-layout-sidebar-none:before{content:"\e6f2"}.ti-layout-sidebar-left:before{content:"\e6f3"}.ti-layout-placeholder:before{content:"\e6f4"}.ti-layout-menu:before{content:"\e6f5"}.ti-layout-menu-v:before{content:"\e6f6"}.ti-layout-menu-separated:before{content:"\e6f7"}.ti-layout-menu-full:before{content:"\e6f8"}.ti-layout-media-right-alt:before{content:"\e6f9"}.ti-layout-media-right:before{content:"\e6fa"}.ti-layout-media-overlay:before{content:"\e6fb"}.ti-layout-media-overlay-alt:before{content:"\e6fc"}.ti-layout-media-overlay-alt-2:before{content:"\e6fd"}.ti-layout-media-left-alt:before{content:"\e6fe"}.ti-layout-media-left:before{content:"\e6ff"}.ti-layout-media-center-alt:before{content:"\e700"}.ti-layout-media-center:before{content:"\e701"}.ti-layout-list-thumb:before{content:"\e702"}.ti-layout-list-thumb-alt:before{content:"\e703"}.ti-layout-list-post:before{content:"\e704"}.ti-layout-list-large-image:before{content:"\e705"}.ti-layout-line-solid:before{content:"\e706"}.ti-layout-grid4:before{content:"\e707"}.ti-layout-grid3:before{content:"\e708"}.ti-layout-grid2:before{content:"\e709"}.ti-layout-grid2-thumb:before{content:"\e70a"}.ti-layout-cta-right:before{content:"\e70b"}.ti-layout-cta-left:before{content:"\e70c"}.ti-layout-cta-center:before{content:"\e70d"}.ti-layout-cta-btn-right:before{content:"\e70e"}.ti-layout-cta-btn-left:before{content:"\e70f"}.ti-layout-column4:before{content:"\e710"}.ti-layout-column3:before{content:"\e711"}.ti-layout-column2:before{content:"\e712"}.ti-layout-accordion-separated:before{content:"\e713"}.ti-layout-accordion-merged:before{content:"\e714"}.ti-layout-accordion-list:before{content:"\e715"}.ti-ink-pen:before{content:"\e716"}.ti-info-alt:before{content:"\e717"}.ti-help-alt:before{content:"\e718"}.ti-headphone-alt:before{content:"\e719"}.ti-hand-point-up:before{content:"\e71a"}.ti-hand-point-right:before{content:"\e71b"}.ti-hand-point-left:before{content:"\e71c"}.ti-hand-point-down:before{content:"\e71d"}.ti-gallery:before{content:"\e71e"}.ti-face-smile:before{content:"\e71f"}.ti-face-sad:before{content:"\e720"}.ti-credit-card:before{content:"\e721"}.ti-control-skip-forward:before{content:"\e722"}.ti-control-skip-backward:before{content:"\e723"}.ti-control-record:before{content:"\e724"}.ti-control-eject:before{content:"\e725"}.ti-comments-smiley:before{content:"\e726"}.ti-brush-alt:before{content:"\e727"}.ti-youtube:before{content:"\e728"}.ti-vimeo:before{content:"\e729"}.ti-twitter:before{content:"\e72a"}.ti-time:before{content:"\e72b"}.ti-tumblr:before{content:"\e72c"}.ti-skype:before{content:"\e72d"}.ti-share:before{content:"\e72e"}.ti-share-alt:before{content:"\e72f"}.ti-rocket:before{content:"\e730"}.ti-pinterest:before{content:"\e731"}.ti-new-window:before{content:"\e732"}.ti-microsoft:before{content:"\e733"}.ti-list-ol:before{content:"\e734"}.ti-linkedin:before{content:"\e735"}.ti-layout-sidebar-2:before{content:"\e736"}.ti-layout-grid4-alt:before{content:"\e737"}.ti-layout-grid3-alt:before{content:"\e738"}.ti-layout-grid2-alt:before{content:"\e739"}.ti-layout-column4-alt:before{content:"\e73a"}.ti-layout-column3-alt:before{content:"\e73b"}.ti-layout-column2-alt:before{content:"\e73c"}.ti-instagram:before{content:"\e73d"}.ti-google:before{content:"\e73e"}.ti-github:before{content:"\e73f"}.ti-flickr:before{content:"\e740"}.ti-facebook:before{content:"\e741"}.ti-dropbox:before{content:"\e742"}.ti-dribbble:before{content:"\e743"}.ti-apple:before{content:"\e744"}.ti-android:before{content:"\e745"}.ti-save:before{content:"\e746"}.ti-save-alt:before{content:"\e747"}.ti-yahoo:before{content:"\e748"}.ti-wordpress:before{content:"\e749"}.ti-vimeo-alt:before{content:"\e74a"}.ti-twitter-alt:before{content:"\e74b"}.ti-tumblr-alt:before{content:"\e74c"}.ti-trello:before{content:"\e74d"}.ti-stack-overflow:before{content:"\e74e"}.ti-soundcloud:before{content:"\e74f"}.ti-sharethis:before{content:"\e750"}.ti-sharethis-alt:before{content:"\e751"}.ti-reddit:before{content:"\e752"}.ti-pinterest-alt:before{content:"\e753"}.ti-microsoft-alt:before{content:"\e754"}.ti-linux:before{content:"\e755"}.ti-jsfiddle:before{content:"\e756"}.ti-joomla:before{content:"\e757"}.ti-html5:before{content:"\e758"}.ti-flickr-alt:before{content:"\e759"}.ti-email:before{content:"\e75a"}.ti-drupal:before{content:"\e75b"}.ti-dropbox-alt:before{content:"\e75c"}.ti-css3:before{content:"\e75d"}.ti-rss:before{content:"\e75e"}.ti-rss-alt:before{content:"\e75f"}body{background:#eef1f4!important;//font-family:"Lato",sans-serif!important}.nav-background{background:#353535;//background:#74b3c8}.ti-swarmlab:before{position:relative;top:-5px;right:-8px;font-size:1.5em;font-weight:300;content:"\e606";color:#222;color:#74b3c8;border-color:#c60000}.ti-themify-logo:before{content:"\e6d1"}.menoutext{font-family:Lato,sans-serif!important} \ No newline at end of file diff --git a/dist/css/chunk-vendors.0cbe91b8.css b/dist/css/chunk-vendors.0cbe91b8.css new file mode 100644 index 0000000..84f6763 --- /dev/null +++ b/dist/css/chunk-vendors.0cbe91b8.css @@ -0,0 +1,11 @@ +.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;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:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-webkit-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.cm-s-neat span.cm-comment{color:#a86}.cm-s-neat span.cm-keyword{line-height:1em;font-weight:700;color:#00f}.cm-s-neat span.cm-string{color:#a22}.cm-s-neat span.cm-builtin{line-height:1em;font-weight:700;color:#077}.cm-s-neat span.cm-special{line-height:1em;font-weight:700;color:#0aa}.cm-s-neat span.cm-variable{color:#000}.cm-s-neat span.cm-atom,.cm-s-neat span.cm-number{color:#3a3}.cm-s-neat span.cm-meta{color:#555}.cm-s-neat span.cm-link{color:#3a3}.cm-s-neat .CodeMirror-activeline-background{background:#e8f2ff}.cm-s-neat .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px rgba(0,0,0,.2);border-radius:3px;border:1px solid silver;background:#fff;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}.CodeMirror-dialog{position:absolute;left:0;right:0;background:inherit;z-index:15;padding:.1em .8em;overflow:hidden;color:inherit}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{border:none;outline:none;background:transparent;width:20em;color:inherit;font-family:monospace}.CodeMirror-dialog button{font-size:70%}.CodeMirror-foldmarker{color:#00f;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-folded,.CodeMirror-foldgutter-open{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"\25BE"}.CodeMirror-foldgutter-folded:after{content:"\25B8"} + +/*! + * Bootstrap v4.5.3 (https://getbootstrap.com/) + * Copyright 2011-2020 The Bootstrap Authors + * Copyright 2011-2020 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none}img,svg{vertical-align:middle}svg{overflow:hidden}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit;text-align:-webkit-match-parent}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;font-weight:500;line-height:1.2}.h1,h1{font-size:2.5rem}.h2,h2{font-size:2rem}.h3,h3{font-size:1.75rem}.h4,h4{font-size:1.5rem}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:6rem}.display-1,.display-2{font-weight:300;line-height:1.2}.display-2{font-size:5.5rem}.display-3{font-size:4.5rem}.display-3,.display-4{font-weight:300;line-height:1.2}.display-4{font-size:3.5rem}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,.1)}.small,small{font-size:80%;font-weight:400}.mark,mark{padding:.2em;background-color:#fcf8e3}.list-inline,.list-unstyled{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:90%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote-footer{display:block;font-size:80%;color:#6c757d}.blockquote-footer:before{content:"\2014\00A0"}.img-fluid,.img-thumbnail{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid #dee2e6;border-radius:.25rem}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:90%;color:#6c757d}code{font-size:87.5%;color:#e83e8c;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:87.5%;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:100%;font-weight:700}pre{display:block;font-size:87.5%;color:#212529}pre code{font-size:inherit;color:inherit;word-break:normal}.pre-scrollable{max-height:340px;overflow-y:scroll}.container,.container-fluid,.container-lg,.container-md,.container-sm,.container-xl{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}.row{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12,.col-auto,.col-lg,.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-auto,.col-md,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-md-auto,.col-sm,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-auto{position:relative;width:100%;padding-right:15px;padding-left:15px}.col{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;-webkit-box-flex:1;flex-grow:1;max-width:100%}.row-cols-1>*{-ms-flex:0 0 100%;-webkit-box-flex:0;flex:0 0 100%;max-width:100%}.row-cols-2>*{-ms-flex:0 0 50%;-webkit-box-flex:0;flex:0 0 50%;max-width:50%}.row-cols-3>*{-ms-flex:0 0 33.333333%;-webkit-box-flex:0;flex:0 0 33.333333%;max-width:33.333333%}.row-cols-4>*{-ms-flex:0 0 25%;-webkit-box-flex:0;flex:0 0 25%;max-width:25%}.row-cols-5>*{-ms-flex:0 0 20%;-webkit-box-flex:0;flex:0 0 20%;max-width:20%}.row-cols-6>*{-ms-flex:0 0 16.666667%;-webkit-box-flex:0;flex:0 0 16.666667%;max-width:16.666667%}.col-auto{-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-1,.col-auto{-webkit-box-flex:0}.col-1{-ms-flex:0 0 8.333333%;flex:0 0 8.333333%;max-width:8.333333%}.col-2{-ms-flex:0 0 16.666667%;flex:0 0 16.666667%;max-width:16.666667%}.col-2,.col-3{-webkit-box-flex:0}.col-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-4,.col-5{-webkit-box-flex:0}.col-5{-ms-flex:0 0 41.666667%;flex:0 0 41.666667%;max-width:41.666667%}.col-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-6,.col-7{-webkit-box-flex:0}.col-7{-ms-flex:0 0 58.333333%;flex:0 0 58.333333%;max-width:58.333333%}.col-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-8,.col-9{-webkit-box-flex:0}.col-9{-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-10,.col-11{-webkit-box-flex:0}.col-11{-ms-flex:0 0 91.666667%;flex:0 0 91.666667%;max-width:91.666667%}.col-12{-ms-flex:0 0 100%;-webkit-box-flex:0;flex:0 0 100%;max-width:100%}.order-first{-ms-flex-order:-1;-webkit-box-ordinal-group:0;order:-1}.order-last{-ms-flex-order:13;-webkit-box-ordinal-group:14;order:13}.order-0{-ms-flex-order:0;-webkit-box-ordinal-group:1;order:0}.order-1{-ms-flex-order:1;-webkit-box-ordinal-group:2;order:1}.order-2{-ms-flex-order:2;-webkit-box-ordinal-group:3;order:2}.order-3{-ms-flex-order:3;-webkit-box-ordinal-group:4;order:3}.order-4{-ms-flex-order:4;-webkit-box-ordinal-group:5;order:4}.order-5{-ms-flex-order:5;-webkit-box-ordinal-group:6;order:5}.order-6{-ms-flex-order:6;-webkit-box-ordinal-group:7;order:6}.order-7{-ms-flex-order:7;-webkit-box-ordinal-group:8;order:7}.order-8{-ms-flex-order:8;-webkit-box-ordinal-group:9;order:8}.order-9{-ms-flex-order:9;-webkit-box-ordinal-group:10;order:9}.order-10{-ms-flex-order:10;-webkit-box-ordinal-group:11;order:10}.order-11{-ms-flex-order:11;-webkit-box-ordinal-group:12;order:11}.order-12{-ms-flex-order:12;-webkit-box-ordinal-group:13;order:12}.offset-1{margin-left:8.333333%}.offset-2{margin-left:16.666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.333333%}.offset-5{margin-left:41.666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.333333%}.offset-8{margin-left:66.666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.333333%}.offset-11{margin-left:91.666667%}@media (min-width:576px){.col-sm{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;-webkit-box-flex:1;flex-grow:1;max-width:100%}.row-cols-sm-1>*{-ms-flex:0 0 100%;-webkit-box-flex:0;flex:0 0 100%;max-width:100%}.row-cols-sm-2>*{-ms-flex:0 0 50%;-webkit-box-flex:0;flex:0 0 50%;max-width:50%}.row-cols-sm-3>*{-ms-flex:0 0 33.333333%;-webkit-box-flex:0;flex:0 0 33.333333%;max-width:33.333333%}.row-cols-sm-4>*{-ms-flex:0 0 25%;-webkit-box-flex:0;flex:0 0 25%;max-width:25%}.row-cols-sm-5>*{-ms-flex:0 0 20%;-webkit-box-flex:0;flex:0 0 20%;max-width:20%}.row-cols-sm-6>*{-ms-flex:0 0 16.666667%;-webkit-box-flex:0;flex:0 0 16.666667%;max-width:16.666667%}.col-sm-auto{-ms-flex:0 0 auto;-webkit-box-flex:0;flex:0 0 auto;width:auto;max-width:100%}.col-sm-1{-ms-flex:0 0 8.333333%;-webkit-box-flex:0;flex:0 0 8.333333%;max-width:8.333333%}.col-sm-2{-ms-flex:0 0 16.666667%;-webkit-box-flex:0;flex:0 0 16.666667%;max-width:16.666667%}.col-sm-3{-ms-flex:0 0 25%;-webkit-box-flex:0;flex:0 0 25%;max-width:25%}.col-sm-4{-ms-flex:0 0 33.333333%;-webkit-box-flex:0;flex:0 0 33.333333%;max-width:33.333333%}.col-sm-5{-ms-flex:0 0 41.666667%;-webkit-box-flex:0;flex:0 0 41.666667%;max-width:41.666667%}.col-sm-6{-ms-flex:0 0 50%;-webkit-box-flex:0;flex:0 0 50%;max-width:50%}.col-sm-7{-ms-flex:0 0 58.333333%;-webkit-box-flex:0;flex:0 0 58.333333%;max-width:58.333333%}.col-sm-8{-ms-flex:0 0 66.666667%;-webkit-box-flex:0;flex:0 0 66.666667%;max-width:66.666667%}.col-sm-9{-ms-flex:0 0 75%;-webkit-box-flex:0;flex:0 0 75%;max-width:75%}.col-sm-10{-ms-flex:0 0 83.333333%;-webkit-box-flex:0;flex:0 0 83.333333%;max-width:83.333333%}.col-sm-11{-ms-flex:0 0 91.666667%;-webkit-box-flex:0;flex:0 0 91.666667%;max-width:91.666667%}.col-sm-12{-ms-flex:0 0 100%;-webkit-box-flex:0;flex:0 0 100%;max-width:100%}.order-sm-first{-ms-flex-order:-1;-webkit-box-ordinal-group:0;order:-1}.order-sm-last{-ms-flex-order:13;-webkit-box-ordinal-group:14;order:13}.order-sm-0{-ms-flex-order:0;-webkit-box-ordinal-group:1;order:0}.order-sm-1{-ms-flex-order:1;-webkit-box-ordinal-group:2;order:1}.order-sm-2{-ms-flex-order:2;-webkit-box-ordinal-group:3;order:2}.order-sm-3{-ms-flex-order:3;-webkit-box-ordinal-group:4;order:3}.order-sm-4{-ms-flex-order:4;-webkit-box-ordinal-group:5;order:4}.order-sm-5{-ms-flex-order:5;-webkit-box-ordinal-group:6;order:5}.order-sm-6{-ms-flex-order:6;-webkit-box-ordinal-group:7;order:6}.order-sm-7{-ms-flex-order:7;-webkit-box-ordinal-group:8;order:7}.order-sm-8{-ms-flex-order:8;-webkit-box-ordinal-group:9;order:8}.order-sm-9{-ms-flex-order:9;-webkit-box-ordinal-group:10;order:9}.order-sm-10{-ms-flex-order:10;-webkit-box-ordinal-group:11;order:10}.order-sm-11{-ms-flex-order:11;-webkit-box-ordinal-group:12;order:11}.order-sm-12{-ms-flex-order:12;-webkit-box-ordinal-group:13;order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.333333%}.offset-sm-2{margin-left:16.666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.333333%}.offset-sm-5{margin-left:41.666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.333333%}.offset-sm-8{margin-left:66.666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.333333%}.offset-sm-11{margin-left:91.666667%}}@media (min-width:768px){.col-md{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;-webkit-box-flex:1;flex-grow:1;max-width:100%}.row-cols-md-1>*{-ms-flex:0 0 100%;-webkit-box-flex:0;flex:0 0 100%;max-width:100%}.row-cols-md-2>*{-ms-flex:0 0 50%;-webkit-box-flex:0;flex:0 0 50%;max-width:50%}.row-cols-md-3>*{-ms-flex:0 0 33.333333%;-webkit-box-flex:0;flex:0 0 33.333333%;max-width:33.333333%}.row-cols-md-4>*{-ms-flex:0 0 25%;-webkit-box-flex:0;flex:0 0 25%;max-width:25%}.row-cols-md-5>*{-ms-flex:0 0 20%;-webkit-box-flex:0;flex:0 0 20%;max-width:20%}.row-cols-md-6>*{-ms-flex:0 0 16.666667%;-webkit-box-flex:0;flex:0 0 16.666667%;max-width:16.666667%}.col-md-auto{-ms-flex:0 0 auto;-webkit-box-flex:0;flex:0 0 auto;width:auto;max-width:100%}.col-md-1{-ms-flex:0 0 8.333333%;-webkit-box-flex:0;flex:0 0 8.333333%;max-width:8.333333%}.col-md-2{-ms-flex:0 0 16.666667%;-webkit-box-flex:0;flex:0 0 16.666667%;max-width:16.666667%}.col-md-3{-ms-flex:0 0 25%;-webkit-box-flex:0;flex:0 0 25%;max-width:25%}.col-md-4{-ms-flex:0 0 33.333333%;-webkit-box-flex:0;flex:0 0 33.333333%;max-width:33.333333%}.col-md-5{-ms-flex:0 0 41.666667%;-webkit-box-flex:0;flex:0 0 41.666667%;max-width:41.666667%}.col-md-6{-ms-flex:0 0 50%;-webkit-box-flex:0;flex:0 0 50%;max-width:50%}.col-md-7{-ms-flex:0 0 58.333333%;-webkit-box-flex:0;flex:0 0 58.333333%;max-width:58.333333%}.col-md-8{-ms-flex:0 0 66.666667%;-webkit-box-flex:0;flex:0 0 66.666667%;max-width:66.666667%}.col-md-9{-ms-flex:0 0 75%;-webkit-box-flex:0;flex:0 0 75%;max-width:75%}.col-md-10{-ms-flex:0 0 83.333333%;-webkit-box-flex:0;flex:0 0 83.333333%;max-width:83.333333%}.col-md-11{-ms-flex:0 0 91.666667%;-webkit-box-flex:0;flex:0 0 91.666667%;max-width:91.666667%}.col-md-12{-ms-flex:0 0 100%;-webkit-box-flex:0;flex:0 0 100%;max-width:100%}.order-md-first{-ms-flex-order:-1;-webkit-box-ordinal-group:0;order:-1}.order-md-last{-ms-flex-order:13;-webkit-box-ordinal-group:14;order:13}.order-md-0{-ms-flex-order:0;-webkit-box-ordinal-group:1;order:0}.order-md-1{-ms-flex-order:1;-webkit-box-ordinal-group:2;order:1}.order-md-2{-ms-flex-order:2;-webkit-box-ordinal-group:3;order:2}.order-md-3{-ms-flex-order:3;-webkit-box-ordinal-group:4;order:3}.order-md-4{-ms-flex-order:4;-webkit-box-ordinal-group:5;order:4}.order-md-5{-ms-flex-order:5;-webkit-box-ordinal-group:6;order:5}.order-md-6{-ms-flex-order:6;-webkit-box-ordinal-group:7;order:6}.order-md-7{-ms-flex-order:7;-webkit-box-ordinal-group:8;order:7}.order-md-8{-ms-flex-order:8;-webkit-box-ordinal-group:9;order:8}.order-md-9{-ms-flex-order:9;-webkit-box-ordinal-group:10;order:9}.order-md-10{-ms-flex-order:10;-webkit-box-ordinal-group:11;order:10}.order-md-11{-ms-flex-order:11;-webkit-box-ordinal-group:12;order:11}.order-md-12{-ms-flex-order:12;-webkit-box-ordinal-group:13;order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.333333%}.offset-md-2{margin-left:16.666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.333333%}.offset-md-5{margin-left:41.666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.333333%}.offset-md-8{margin-left:66.666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.333333%}.offset-md-11{margin-left:91.666667%}}@media (min-width:992px){.col-lg{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;-webkit-box-flex:1;flex-grow:1;max-width:100%}.row-cols-lg-1>*{-ms-flex:0 0 100%;-webkit-box-flex:0;flex:0 0 100%;max-width:100%}.row-cols-lg-2>*{-ms-flex:0 0 50%;-webkit-box-flex:0;flex:0 0 50%;max-width:50%}.row-cols-lg-3>*{-ms-flex:0 0 33.333333%;-webkit-box-flex:0;flex:0 0 33.333333%;max-width:33.333333%}.row-cols-lg-4>*{-ms-flex:0 0 25%;-webkit-box-flex:0;flex:0 0 25%;max-width:25%}.row-cols-lg-5>*{-ms-flex:0 0 20%;-webkit-box-flex:0;flex:0 0 20%;max-width:20%}.row-cols-lg-6>*{-ms-flex:0 0 16.666667%;-webkit-box-flex:0;flex:0 0 16.666667%;max-width:16.666667%}.col-lg-auto{-ms-flex:0 0 auto;-webkit-box-flex:0;flex:0 0 auto;width:auto;max-width:100%}.col-lg-1{-ms-flex:0 0 8.333333%;-webkit-box-flex:0;flex:0 0 8.333333%;max-width:8.333333%}.col-lg-2{-ms-flex:0 0 16.666667%;-webkit-box-flex:0;flex:0 0 16.666667%;max-width:16.666667%}.col-lg-3{-ms-flex:0 0 25%;-webkit-box-flex:0;flex:0 0 25%;max-width:25%}.col-lg-4{-ms-flex:0 0 33.333333%;-webkit-box-flex:0;flex:0 0 33.333333%;max-width:33.333333%}.col-lg-5{-ms-flex:0 0 41.666667%;-webkit-box-flex:0;flex:0 0 41.666667%;max-width:41.666667%}.col-lg-6{-ms-flex:0 0 50%;-webkit-box-flex:0;flex:0 0 50%;max-width:50%}.col-lg-7{-ms-flex:0 0 58.333333%;-webkit-box-flex:0;flex:0 0 58.333333%;max-width:58.333333%}.col-lg-8{-ms-flex:0 0 66.666667%;-webkit-box-flex:0;flex:0 0 66.666667%;max-width:66.666667%}.col-lg-9{-ms-flex:0 0 75%;-webkit-box-flex:0;flex:0 0 75%;max-width:75%}.col-lg-10{-ms-flex:0 0 83.333333%;-webkit-box-flex:0;flex:0 0 83.333333%;max-width:83.333333%}.col-lg-11{-ms-flex:0 0 91.666667%;-webkit-box-flex:0;flex:0 0 91.666667%;max-width:91.666667%}.col-lg-12{-ms-flex:0 0 100%;-webkit-box-flex:0;flex:0 0 100%;max-width:100%}.order-lg-first{-ms-flex-order:-1;-webkit-box-ordinal-group:0;order:-1}.order-lg-last{-ms-flex-order:13;-webkit-box-ordinal-group:14;order:13}.order-lg-0{-ms-flex-order:0;-webkit-box-ordinal-group:1;order:0}.order-lg-1{-ms-flex-order:1;-webkit-box-ordinal-group:2;order:1}.order-lg-2{-ms-flex-order:2;-webkit-box-ordinal-group:3;order:2}.order-lg-3{-ms-flex-order:3;-webkit-box-ordinal-group:4;order:3}.order-lg-4{-ms-flex-order:4;-webkit-box-ordinal-group:5;order:4}.order-lg-5{-ms-flex-order:5;-webkit-box-ordinal-group:6;order:5}.order-lg-6{-ms-flex-order:6;-webkit-box-ordinal-group:7;order:6}.order-lg-7{-ms-flex-order:7;-webkit-box-ordinal-group:8;order:7}.order-lg-8{-ms-flex-order:8;-webkit-box-ordinal-group:9;order:8}.order-lg-9{-ms-flex-order:9;-webkit-box-ordinal-group:10;order:9}.order-lg-10{-ms-flex-order:10;-webkit-box-ordinal-group:11;order:10}.order-lg-11{-ms-flex-order:11;-webkit-box-ordinal-group:12;order:11}.order-lg-12{-ms-flex-order:12;-webkit-box-ordinal-group:13;order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.333333%}.offset-lg-2{margin-left:16.666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.333333%}.offset-lg-5{margin-left:41.666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.333333%}.offset-lg-8{margin-left:66.666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.333333%}.offset-lg-11{margin-left:91.666667%}}@media (min-width:1200px){.col-xl{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;-webkit-box-flex:1;flex-grow:1;max-width:100%}.row-cols-xl-1>*{-ms-flex:0 0 100%;-webkit-box-flex:0;flex:0 0 100%;max-width:100%}.row-cols-xl-2>*{-ms-flex:0 0 50%;-webkit-box-flex:0;flex:0 0 50%;max-width:50%}.row-cols-xl-3>*{-ms-flex:0 0 33.333333%;-webkit-box-flex:0;flex:0 0 33.333333%;max-width:33.333333%}.row-cols-xl-4>*{-ms-flex:0 0 25%;-webkit-box-flex:0;flex:0 0 25%;max-width:25%}.row-cols-xl-5>*{-ms-flex:0 0 20%;-webkit-box-flex:0;flex:0 0 20%;max-width:20%}.row-cols-xl-6>*{-ms-flex:0 0 16.666667%;-webkit-box-flex:0;flex:0 0 16.666667%;max-width:16.666667%}.col-xl-auto{-ms-flex:0 0 auto;-webkit-box-flex:0;flex:0 0 auto;width:auto;max-width:100%}.col-xl-1{-ms-flex:0 0 8.333333%;-webkit-box-flex:0;flex:0 0 8.333333%;max-width:8.333333%}.col-xl-2{-ms-flex:0 0 16.666667%;-webkit-box-flex:0;flex:0 0 16.666667%;max-width:16.666667%}.col-xl-3{-ms-flex:0 0 25%;-webkit-box-flex:0;flex:0 0 25%;max-width:25%}.col-xl-4{-ms-flex:0 0 33.333333%;-webkit-box-flex:0;flex:0 0 33.333333%;max-width:33.333333%}.col-xl-5{-ms-flex:0 0 41.666667%;-webkit-box-flex:0;flex:0 0 41.666667%;max-width:41.666667%}.col-xl-6{-ms-flex:0 0 50%;-webkit-box-flex:0;flex:0 0 50%;max-width:50%}.col-xl-7{-ms-flex:0 0 58.333333%;-webkit-box-flex:0;flex:0 0 58.333333%;max-width:58.333333%}.col-xl-8{-ms-flex:0 0 66.666667%;-webkit-box-flex:0;flex:0 0 66.666667%;max-width:66.666667%}.col-xl-9{-ms-flex:0 0 75%;-webkit-box-flex:0;flex:0 0 75%;max-width:75%}.col-xl-10{-ms-flex:0 0 83.333333%;-webkit-box-flex:0;flex:0 0 83.333333%;max-width:83.333333%}.col-xl-11{-ms-flex:0 0 91.666667%;-webkit-box-flex:0;flex:0 0 91.666667%;max-width:91.666667%}.col-xl-12{-ms-flex:0 0 100%;-webkit-box-flex:0;flex:0 0 100%;max-width:100%}.order-xl-first{-ms-flex-order:-1;-webkit-box-ordinal-group:0;order:-1}.order-xl-last{-ms-flex-order:13;-webkit-box-ordinal-group:14;order:13}.order-xl-0{-ms-flex-order:0;-webkit-box-ordinal-group:1;order:0}.order-xl-1{-ms-flex-order:1;-webkit-box-ordinal-group:2;order:1}.order-xl-2{-ms-flex-order:2;-webkit-box-ordinal-group:3;order:2}.order-xl-3{-ms-flex-order:3;-webkit-box-ordinal-group:4;order:3}.order-xl-4{-ms-flex-order:4;-webkit-box-ordinal-group:5;order:4}.order-xl-5{-ms-flex-order:5;-webkit-box-ordinal-group:6;order:5}.order-xl-6{-ms-flex-order:6;-webkit-box-ordinal-group:7;order:6}.order-xl-7{-ms-flex-order:7;-webkit-box-ordinal-group:8;order:7}.order-xl-8{-ms-flex-order:8;-webkit-box-ordinal-group:9;order:8}.order-xl-9{-ms-flex-order:9;-webkit-box-ordinal-group:10;order:9}.order-xl-10{-ms-flex-order:10;-webkit-box-ordinal-group:11;order:10}.order-xl-11{-ms-flex-order:11;-webkit-box-ordinal-group:12;order:11}.order-xl-12{-ms-flex-order:12;-webkit-box-ordinal-group:13;order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.333333%}.offset-xl-2{margin-left:16.666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.333333%}.offset-xl-5{margin-left:41.666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.333333%}.offset-xl-8{margin-left:66.666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.333333%}.offset-xl-11{margin-left:91.666667%}}.table{width:100%;margin-bottom:1rem;color:#212529}.table td,.table th{padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6}.table thead th{vertical-align:bottom;border-bottom:2px solid #dee2e6}.table tbody+tbody{border-top:2px solid #dee2e6}.table-sm td,.table-sm th{padding:.3rem}.table-bordered,.table-bordered td,.table-bordered th{border:1px solid #dee2e6}.table-bordered thead td,.table-bordered thead th{border-bottom-width:2px}.table-borderless tbody+tbody,.table-borderless td,.table-borderless th,.table-borderless thead th{border:0}.table-striped tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,.05)}.table-hover tbody tr:hover{color:#212529;background-color:rgba(0,0,0,.075)}.table-primary,.table-primary>td,.table-primary>th{background-color:#b8daff}.table-primary tbody+tbody,.table-primary td,.table-primary th,.table-primary thead th{border-color:#7abaff}.table-hover .table-primary:hover,.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th{background-color:#9fcdff}.table-secondary,.table-secondary>td,.table-secondary>th{background-color:#d6d8db}.table-secondary tbody+tbody,.table-secondary td,.table-secondary th,.table-secondary thead th{border-color:#b3b7bb}.table-hover .table-secondary:hover,.table-hover .table-secondary:hover>td,.table-hover .table-secondary:hover>th{background-color:#c8cbcf}.table-success,.table-success>td,.table-success>th{background-color:#c3e6cb}.table-success tbody+tbody,.table-success td,.table-success th,.table-success thead th{border-color:#8fd19e}.table-hover .table-success:hover,.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#b1dfbb}.table-info,.table-info>td,.table-info>th{background-color:#bee5eb}.table-info tbody+tbody,.table-info td,.table-info th,.table-info thead th{border-color:#86cfda}.table-hover .table-info:hover,.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#abdde5}.table-warning,.table-warning>td,.table-warning>th{background-color:#ffeeba}.table-warning tbody+tbody,.table-warning td,.table-warning th,.table-warning thead th{border-color:#ffdf7e}.table-hover .table-warning:hover,.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#ffe8a1}.table-danger,.table-danger>td,.table-danger>th{background-color:#f5c6cb}.table-danger tbody+tbody,.table-danger td,.table-danger th,.table-danger thead th{border-color:#ed969e}.table-hover .table-danger:hover,.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#f1b0b7}.table-light,.table-light>td,.table-light>th{background-color:#fdfdfe}.table-light tbody+tbody,.table-light td,.table-light th,.table-light thead th{border-color:#fbfcfc}.table-hover .table-light:hover,.table-hover .table-light:hover>td,.table-hover .table-light:hover>th{background-color:#ececf6}.table-dark,.table-dark>td,.table-dark>th{background-color:#c6c8ca}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#95999c}.table-hover .table-dark:hover,.table-hover .table-dark:hover>td,.table-hover .table-dark:hover>th{background-color:#b9bbbe}.table-active,.table-active>td,.table-active>th,.table-hover .table-active:hover,.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:rgba(0,0,0,.075)}.table .thead-dark th{color:#fff;background-color:#343a40;border-color:#454d55}.table .thead-light th{color:#495057;background-color:#e9ecef;border-color:#dee2e6}.table-dark{color:#fff;background-color:#343a40}.table-dark td,.table-dark th,.table-dark thead th{border-color:#454d55}.table-dark.table-bordered{border:0}.table-dark.table-striped tbody tr:nth-of-type(odd){background-color:hsla(0,0%,100%,.05)}.table-dark.table-hover tbody tr:hover{color:#fff;background-color:hsla(0,0%,100%,.075)}@media (max-width:575.98px){.table-responsive-sm{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-sm>.table-bordered{border:0}}@media (max-width:767.98px){.table-responsive-md{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-md>.table-bordered{border:0}}@media (max-width:991.98px){.table-responsive-lg{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-lg>.table-bordered{border:0}}@media (max-width:1199.98px){.table-responsive-xl{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-xl>.table-bordered{border:0}}.table-responsive{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive>.table-bordered{border:0}.form-control{display:block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;-webkit-transition:border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{-webkit-transition:none;transition:none}}.form-control::-ms-expand{background-color:transparent;border:0}.form-control:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.form-control:focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;-webkit-box-shadow:0 0 0 .2rem rgba(0,123,255,.25);box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.form-control::-webkit-input-placeholder{color:#6c757d;opacity:1}.form-control::-moz-placeholder{color:#6c757d;opacity:1}.form-control:-ms-input-placeholder{color:#6c757d;opacity:1}.form-control::-ms-input-placeholder{color:#6c757d;opacity:1}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled,.form-control[readonly]{background-color:#e9ecef;opacity:1}input[type=date].form-control,input[type=datetime-local].form-control,input[type=month].form-control,input[type=time].form-control{-webkit-appearance:none;-moz-appearance:none;appearance:none}select.form-control:focus::-ms-value{color:#495057;background-color:#fff}.form-control-file,.form-control-range{display:block;width:100%}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem;line-height:1.5}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem;line-height:1.5}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;font-size:1rem;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.form-control-lg{height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}select.form-control[multiple],select.form-control[size],textarea.form-control{height:auto}.form-group{margin-bottom:1rem}.form-text{display:block;margin-top:.25rem}.form-row{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}.form-row>.col,.form-row>[class*=col-]{padding-right:5px;padding-left:5px}.form-check{position:relative;display:block;padding-left:1.25rem}.form-check-input{position:absolute;margin-top:.3rem;margin-left:-1.25rem}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{color:#6c757d}.form-check-label{margin-bottom:0}.form-check-inline{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;padding-left:0;margin-right:.75rem}.form-check-inline .form-check-input{position:static;margin-top:0;margin-right:.3125rem;margin-left:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#28a745}.valid-tooltip{position:absolute;top:100%;left:0;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:rgba(40,167,69,.9);border-radius:.25rem}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{border-color:#28a745;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:#28a745;-webkit-box-shadow:0 0 0 .2rem rgba(40,167,69,.25);box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.custom-select.is-valid,.was-validated .custom-select:valid{border-color:#28a745;padding-right:calc(.75em + 2.3125rem);background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)}.custom-select.is-valid:focus,.was-validated .custom-select:valid:focus{border-color:#28a745;-webkit-box-shadow:0 0 0 .2rem rgba(40,167,69,.25);box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:#28a745}.form-check-input.is-valid~.valid-feedback,.form-check-input.is-valid~.valid-tooltip,.was-validated .form-check-input:valid~.valid-feedback,.was-validated .form-check-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid~.custom-control-label,.was-validated .custom-control-input:valid~.custom-control-label{color:#28a745}.custom-control-input.is-valid~.custom-control-label:before,.was-validated .custom-control-input:valid~.custom-control-label:before{border-color:#28a745}.custom-control-input.is-valid:checked~.custom-control-label:before,.was-validated .custom-control-input:valid:checked~.custom-control-label:before{border-color:#34ce57;background-color:#34ce57}.custom-control-input.is-valid:focus~.custom-control-label:before,.was-validated .custom-control-input:valid:focus~.custom-control-label:before{-webkit-box-shadow:0 0 0 .2rem rgba(40,167,69,.25);box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.custom-control-input.is-valid:focus:not(:checked)~.custom-control-label:before,.custom-file-input.is-valid~.custom-file-label,.was-validated .custom-control-input:valid:focus:not(:checked)~.custom-control-label:before,.was-validated .custom-file-input:valid~.custom-file-label{border-color:#28a745}.custom-file-input.is-valid:focus~.custom-file-label,.was-validated .custom-file-input:valid:focus~.custom-file-label{border-color:#28a745;-webkit-box-shadow:0 0 0 .2rem rgba(40,167,69,.25);box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;left:0;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;line-height:1.5;color:#fff;background-color:rgba(220,53,69,.9);border-radius:.25rem}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3E%3Ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:#dc3545;-webkit-box-shadow:0 0 0 .2rem rgba(220,53,69,.25);box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.custom-select.is-invalid,.was-validated .custom-select:invalid{border-color:#dc3545;padding-right:calc(.75em + 2.3125rem);background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3E%3Ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3E%3C/svg%3E") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)}.custom-select.is-invalid:focus,.was-validated .custom-select:invalid:focus{border-color:#dc3545;-webkit-box-shadow:0 0 0 .2rem rgba(220,53,69,.25);box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:#dc3545}.form-check-input.is-invalid~.invalid-feedback,.form-check-input.is-invalid~.invalid-tooltip,.was-validated .form-check-input:invalid~.invalid-feedback,.was-validated .form-check-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid~.custom-control-label,.was-validated .custom-control-input:invalid~.custom-control-label{color:#dc3545}.custom-control-input.is-invalid~.custom-control-label:before,.was-validated .custom-control-input:invalid~.custom-control-label:before{border-color:#dc3545}.custom-control-input.is-invalid:checked~.custom-control-label:before,.was-validated .custom-control-input:invalid:checked~.custom-control-label:before{border-color:#e4606d;background-color:#e4606d}.custom-control-input.is-invalid:focus~.custom-control-label:before,.was-validated .custom-control-input:invalid:focus~.custom-control-label:before{-webkit-box-shadow:0 0 0 .2rem rgba(220,53,69,.25);box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.custom-control-input.is-invalid:focus:not(:checked)~.custom-control-label:before,.custom-file-input.is-invalid~.custom-file-label,.was-validated .custom-control-input:invalid:focus:not(:checked)~.custom-control-label:before,.was-validated .custom-file-input:invalid~.custom-file-label{border-color:#dc3545}.custom-file-input.is-invalid:focus~.custom-file-label,.was-validated .custom-file-input:invalid:focus~.custom-file-label{border-color:#dc3545;-webkit-box-shadow:0 0 0 .2rem rgba(220,53,69,.25);box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.form-inline{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-flow:row wrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-flow:row wrap;-ms-flex-align:center;-webkit-box-align:center;align-items:center}.form-inline .form-check{width:100%}@media (min-width:576px){.form-inline label{-ms-flex-align:center;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center}.form-inline .form-group,.form-inline label{display:-ms-flexbox;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;margin-bottom:0}.form-inline .form-group{-ms-flex:0 0 auto;-webkit-box-flex:0;flex:0 0 auto;-ms-flex-flow:row wrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-flow:row wrap;-ms-flex-align:center}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-plaintext{display:inline-block}.form-inline .custom-select,.form-inline .input-group{width:auto}.form-inline .form-check{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;width:auto;padding-left:0}.form-inline .form-check-input{position:relative;-ms-flex-negative:0;flex-shrink:0;margin-top:0;margin-right:.25rem;margin-left:0}.form-inline .custom-control{-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center}.form-inline .custom-control-label{margin-bottom:0}}.btn{display:inline-block;font-weight:400;color:#212529;text-align:center;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{-webkit-transition:none;transition:none}}.btn:hover{color:#212529;text-decoration:none}.btn.focus,.btn:focus{outline:0;-webkit-box-shadow:0 0 0 .2rem rgba(0,123,255,.25);box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.btn.disabled,.btn:disabled{opacity:.65}.btn:not(:disabled):not(.disabled){cursor:pointer}a.btn.disabled,fieldset:disabled a.btn{pointer-events:none}.btn-primary{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary.focus,.btn-primary:focus,.btn-primary:hover{color:#fff;background-color:#0069d9;border-color:#0062cc}.btn-primary.focus,.btn-primary:focus{-webkit-box-shadow:0 0 0 .2rem rgba(38,143,255,.5);box-shadow:0 0 0 .2rem rgba(38,143,255,.5)}.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#007bff;border-color:#007bff}.btn-primary:not(:disabled):not(.disabled).active,.btn-primary:not(:disabled):not(.disabled):active,.show>.btn-primary.dropdown-toggle{color:#fff;background-color:#0062cc;border-color:#005cbf}.btn-primary:not(:disabled):not(.disabled).active:focus,.btn-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-primary.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 .2rem rgba(38,143,255,.5);box-shadow:0 0 0 .2rem rgba(38,143,255,.5)}.btn-secondary{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary.focus,.btn-secondary:focus,.btn-secondary:hover{color:#fff;background-color:#5a6268;border-color:#545b62}.btn-secondary.focus,.btn-secondary:focus{-webkit-box-shadow:0 0 0 .2rem rgba(130,138,145,.5);box-shadow:0 0 0 .2rem rgba(130,138,145,.5)}.btn-secondary.disabled,.btn-secondary:disabled{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:not(:disabled):not(.disabled).active,.btn-secondary:not(:disabled):not(.disabled):active,.show>.btn-secondary.dropdown-toggle{color:#fff;background-color:#545b62;border-color:#4e555b}.btn-secondary:not(:disabled):not(.disabled).active:focus,.btn-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-secondary.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 .2rem rgba(130,138,145,.5);box-shadow:0 0 0 .2rem rgba(130,138,145,.5)}.btn-success{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success.focus,.btn-success:focus,.btn-success:hover{color:#fff;background-color:#218838;border-color:#1e7e34}.btn-success.focus,.btn-success:focus{-webkit-box-shadow:0 0 0 .2rem rgba(72,180,97,.5);box-shadow:0 0 0 .2rem rgba(72,180,97,.5)}.btn-success.disabled,.btn-success:disabled{color:#fff;background-color:#28a745;border-color:#28a745}.btn-success:not(:disabled):not(.disabled).active,.btn-success:not(:disabled):not(.disabled):active,.show>.btn-success.dropdown-toggle{color:#fff;background-color:#1e7e34;border-color:#1c7430}.btn-success:not(:disabled):not(.disabled).active:focus,.btn-success:not(:disabled):not(.disabled):active:focus,.show>.btn-success.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 .2rem rgba(72,180,97,.5);box-shadow:0 0 0 .2rem rgba(72,180,97,.5)}.btn-info{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info.focus,.btn-info:focus,.btn-info:hover{color:#fff;background-color:#138496;border-color:#117a8b}.btn-info.focus,.btn-info:focus{-webkit-box-shadow:0 0 0 .2rem rgba(58,176,195,.5);box-shadow:0 0 0 .2rem rgba(58,176,195,.5)}.btn-info.disabled,.btn-info:disabled{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-info:not(:disabled):not(.disabled).active,.btn-info:not(:disabled):not(.disabled):active,.show>.btn-info.dropdown-toggle{color:#fff;background-color:#117a8b;border-color:#10707f}.btn-info:not(:disabled):not(.disabled).active:focus,.btn-info:not(:disabled):not(.disabled):active:focus,.show>.btn-info.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 .2rem rgba(58,176,195,.5);box-shadow:0 0 0 .2rem rgba(58,176,195,.5)}.btn-warning{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning.focus,.btn-warning:focus,.btn-warning:hover{color:#212529;background-color:#e0a800;border-color:#d39e00}.btn-warning.focus,.btn-warning:focus{-webkit-box-shadow:0 0 0 .2rem rgba(222,170,12,.5);box-shadow:0 0 0 .2rem rgba(222,170,12,.5)}.btn-warning.disabled,.btn-warning:disabled{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-warning:not(:disabled):not(.disabled).active,.btn-warning:not(:disabled):not(.disabled):active,.show>.btn-warning.dropdown-toggle{color:#212529;background-color:#d39e00;border-color:#c69500}.btn-warning:not(:disabled):not(.disabled).active:focus,.btn-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-warning.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 .2rem rgba(222,170,12,.5);box-shadow:0 0 0 .2rem rgba(222,170,12,.5)}.btn-danger{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger.focus,.btn-danger:focus,.btn-danger:hover{color:#fff;background-color:#c82333;border-color:#bd2130}.btn-danger.focus,.btn-danger:focus{-webkit-box-shadow:0 0 0 .2rem rgba(225,83,97,.5);box-shadow:0 0 0 .2rem rgba(225,83,97,.5)}.btn-danger.disabled,.btn-danger:disabled{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-danger:not(:disabled):not(.disabled).active,.btn-danger:not(:disabled):not(.disabled):active,.show>.btn-danger.dropdown-toggle{color:#fff;background-color:#bd2130;border-color:#b21f2d}.btn-danger:not(:disabled):not(.disabled).active:focus,.btn-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-danger.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 .2rem rgba(225,83,97,.5);box-shadow:0 0 0 .2rem rgba(225,83,97,.5)}.btn-light{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light.focus,.btn-light:focus,.btn-light:hover{color:#212529;background-color:#e2e6ea;border-color:#dae0e5}.btn-light.focus,.btn-light:focus{-webkit-box-shadow:0 0 0 .2rem rgba(216,217,219,.5);box-shadow:0 0 0 .2rem rgba(216,217,219,.5)}.btn-light.disabled,.btn-light:disabled{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:not(:disabled):not(.disabled).active,.btn-light:not(:disabled):not(.disabled):active,.show>.btn-light.dropdown-toggle{color:#212529;background-color:#dae0e5;border-color:#d3d9df}.btn-light:not(:disabled):not(.disabled).active:focus,.btn-light:not(:disabled):not(.disabled):active:focus,.show>.btn-light.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 .2rem rgba(216,217,219,.5);box-shadow:0 0 0 .2rem rgba(216,217,219,.5)}.btn-dark{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark.focus,.btn-dark:focus,.btn-dark:hover{color:#fff;background-color:#23272b;border-color:#1d2124}.btn-dark.focus,.btn-dark:focus{-webkit-box-shadow:0 0 0 .2rem rgba(82,88,93,.5);box-shadow:0 0 0 .2rem rgba(82,88,93,.5)}.btn-dark.disabled,.btn-dark:disabled{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:not(:disabled):not(.disabled).active,.btn-dark:not(:disabled):not(.disabled):active,.show>.btn-dark.dropdown-toggle{color:#fff;background-color:#1d2124;border-color:#171a1d}.btn-dark:not(:disabled):not(.disabled).active:focus,.btn-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-dark.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 .2rem rgba(82,88,93,.5);box-shadow:0 0 0 .2rem rgba(82,88,93,.5)}.btn-outline-primary{color:#007bff;border-color:#007bff}.btn-outline-primary:hover{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary.focus,.btn-outline-primary:focus{-webkit-box-shadow:0 0 0 .2rem rgba(0,123,255,.5);box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{color:#007bff;background-color:transparent}.btn-outline-primary:not(:disabled):not(.disabled).active,.btn-outline-primary:not(:disabled):not(.disabled):active,.show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#007bff;border-color:#007bff}.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 .2rem rgba(0,123,255,.5);box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.btn-outline-secondary{color:#6c757d;border-color:#6c757d}.btn-outline-secondary:hover{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary.focus,.btn-outline-secondary:focus{-webkit-box-shadow:0 0 0 .2rem rgba(108,117,125,.5);box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{color:#6c757d;background-color:transparent}.btn-outline-secondary:not(:disabled):not(.disabled).active,.btn-outline-secondary:not(:disabled):not(.disabled):active,.show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 .2rem rgba(108,117,125,.5);box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-success{color:#28a745;border-color:#28a745}.btn-outline-success:hover{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success.focus,.btn-outline-success:focus{-webkit-box-shadow:0 0 0 .2rem rgba(40,167,69,.5);box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-success.disabled,.btn-outline-success:disabled{color:#28a745;background-color:transparent}.btn-outline-success:not(:disabled):not(.disabled).active,.btn-outline-success:not(:disabled):not(.disabled):active,.show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#28a745;border-color:#28a745}.btn-outline-success:not(:disabled):not(.disabled).active:focus,.btn-outline-success:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-success.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 .2rem rgba(40,167,69,.5);box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.btn-outline-info{color:#17a2b8;border-color:#17a2b8}.btn-outline-info:hover{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info.focus,.btn-outline-info:focus{-webkit-box-shadow:0 0 0 .2rem rgba(23,162,184,.5);box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-info.disabled,.btn-outline-info:disabled{color:#17a2b8;background-color:transparent}.btn-outline-info:not(:disabled):not(.disabled).active,.btn-outline-info:not(:disabled):not(.disabled):active,.show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#17a2b8;border-color:#17a2b8}.btn-outline-info:not(:disabled):not(.disabled).active:focus,.btn-outline-info:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-info.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 .2rem rgba(23,162,184,.5);box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.btn-outline-warning{color:#ffc107;border-color:#ffc107}.btn-outline-warning:hover{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning.focus,.btn-outline-warning:focus{-webkit-box-shadow:0 0 0 .2rem rgba(255,193,7,.5);box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-warning.disabled,.btn-outline-warning:disabled{color:#ffc107;background-color:transparent}.btn-outline-warning:not(:disabled):not(.disabled).active,.btn-outline-warning:not(:disabled):not(.disabled):active,.show>.btn-outline-warning.dropdown-toggle{color:#212529;background-color:#ffc107;border-color:#ffc107}.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.btn-outline-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 .2rem rgba(255,193,7,.5);box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.btn-outline-danger{color:#dc3545;border-color:#dc3545}.btn-outline-danger:hover{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger.focus,.btn-outline-danger:focus{-webkit-box-shadow:0 0 0 .2rem rgba(220,53,69,.5);box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-outline-danger.disabled,.btn-outline-danger:disabled{color:#dc3545;background-color:transparent}.btn-outline-danger:not(:disabled):not(.disabled).active,.btn-outline-danger:not(:disabled):not(.disabled):active,.show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#dc3545;border-color:#dc3545}.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.btn-outline-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 .2rem rgba(220,53,69,.5);box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.btn-outline-light{color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:hover{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light.focus,.btn-outline-light:focus{-webkit-box-shadow:0 0 0 .2rem rgba(248,249,250,.5);box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-light.disabled,.btn-outline-light:disabled{color:#f8f9fa;background-color:transparent}.btn-outline-light:not(:disabled):not(.disabled).active,.btn-outline-light:not(:disabled):not(.disabled):active,.show>.btn-outline-light.dropdown-toggle{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:not(:disabled):not(.disabled).active:focus,.btn-outline-light:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-light.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 .2rem rgba(248,249,250,.5);box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-dark{color:#343a40;border-color:#343a40}.btn-outline-dark:hover{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark.focus,.btn-outline-dark:focus{-webkit-box-shadow:0 0 0 .2rem rgba(52,58,64,.5);box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-outline-dark.disabled,.btn-outline-dark:disabled{color:#343a40;background-color:transparent}.btn-outline-dark:not(:disabled):not(.disabled).active,.btn-outline-dark:not(:disabled):not(.disabled):active,.show>.btn-outline-dark.dropdown-toggle{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.btn-outline-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 .2rem rgba(52,58,64,.5);box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-link{font-weight:400;color:#007bff;text-decoration:none}.btn-link:hover{color:#0056b3}.btn-link.focus,.btn-link:focus,.btn-link:hover{text-decoration:underline}.btn-link.disabled,.btn-link:disabled{color:#6c757d;pointer-events:none}.btn-group-lg>.btn,.btn-lg{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.btn-group-sm>.btn,.btn-sm{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:.5rem}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{-webkit-transition:opacity .15s linear;transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{-webkit-transition:none;transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{-webkit-transition:none;transition:none}}.dropdown,.dropleft,.dropright,.dropup{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;font-size:1rem;color:#212529;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-radius:.25rem}.dropdown-menu-left{right:auto;left:0}.dropdown-menu-right{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-left{right:auto;left:0}.dropdown-menu-sm-right{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-left{right:auto;left:0}.dropdown-menu-md-right{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-left{right:auto;left:0}.dropdown-menu-lg-right{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-left{right:auto;left:0}.dropdown-menu-xl-right{right:0;left:auto}}.dropup .dropdown-menu{top:auto;bottom:100%;margin-top:0;margin-bottom:.125rem}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropright .dropdown-menu{top:0;right:auto;left:100%;margin-top:0;margin-left:.125rem}.dropright .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropright .dropdown-toggle:empty:after{margin-left:0}.dropright .dropdown-toggle:after{vertical-align:0}.dropleft .dropdown-menu{top:0;right:100%;left:auto;margin-top:0;margin-right:.125rem}.dropleft .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";display:none}.dropleft .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropleft .dropdown-toggle:empty:after{margin-left:0}.dropleft .dropdown-toggle:before{vertical-align:0}.dropdown-menu[x-placement^=bottom],.dropdown-menu[x-placement^=left],.dropdown-menu[x-placement^=right],.dropdown-menu[x-placement^=top]{right:auto;bottom:auto}.dropdown-divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #e9ecef}.dropdown-item{display:block;width:100%;padding:.25rem 1.5rem;clear:both;font-weight:400;color:#212529;text-align:inherit;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:focus,.dropdown-item:hover{color:#16181b;text-decoration:none;background-color:#f8f9fa}.dropdown-item.active,.dropdown-item:active{color:#fff;text-decoration:none;background-color:#007bff}.dropdown-item.disabled,.dropdown-item:disabled{color:#6c757d;pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:.5rem 1.5rem;margin-bottom:0;font-size:.875rem;color:#6c757d;white-space:nowrap}.dropdown-item-text{display:block;padding:.25rem 1.5rem;color:#212529}.btn-group,.btn-group-vertical{position:relative;display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;-ms-flex:1 1 auto;-webkit-box-flex:1;flex:1 1 auto}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:1}.btn-toolbar{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:start;-webkit-box-pack:start;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group>.btn-group:not(:first-child),.btn-group>.btn:not(:first-child){margin-left:-1px}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split:after,.dropright .dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after{margin-left:0}.dropleft .dropdown-toggle-split:before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-ms-flex-align:start;-webkit-box-align:start;align-items:flex-start;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.btn-group-toggle>.btn,.btn-group-toggle>.btn-group>.btn{margin-bottom:0}.btn-group-toggle>.btn-group>.btn input[type=checkbox],.btn-group-toggle>.btn-group>.btn input[type=radio],.btn-group-toggle>.btn input[type=checkbox],.btn-group-toggle>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:stretch;-webkit-box-align:stretch;align-items:stretch;width:100%}.input-group>.custom-file,.input-group>.custom-select,.input-group>.form-control,.input-group>.form-control-plaintext{position:relative;-ms-flex:1 1 auto;-webkit-box-flex:1;flex:1 1 auto;width:1%;min-width:0;margin-bottom:0}.input-group>.custom-file+.custom-file,.input-group>.custom-file+.custom-select,.input-group>.custom-file+.form-control,.input-group>.custom-select+.custom-file,.input-group>.custom-select+.custom-select,.input-group>.custom-select+.form-control,.input-group>.form-control+.custom-file,.input-group>.form-control+.custom-select,.input-group>.form-control+.form-control,.input-group>.form-control-plaintext+.custom-file,.input-group>.form-control-plaintext+.custom-select,.input-group>.form-control-plaintext+.form-control{margin-left:-1px}.input-group>.custom-file .custom-file-input:focus~.custom-file-label,.input-group>.custom-select:focus,.input-group>.form-control:focus{z-index:3}.input-group>.custom-file .custom-file-input:focus{z-index:4}.input-group>.custom-select:not(:last-child),.input-group>.form-control:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-select:not(:first-child),.input-group>.form-control:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.custom-file{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center}.input-group>.custom-file:not(:last-child) .custom-file-label,.input-group>.custom-file:not(:last-child) .custom-file-label:after{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-file:not(:first-child) .custom-file-label{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-append,.input-group-prepend{display:-ms-flexbox;display:-webkit-box;display:flex}.input-group-append .btn,.input-group-prepend .btn{position:relative;z-index:2}.input-group-append .btn:focus,.input-group-prepend .btn:focus{z-index:3}.input-group-append .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-append .input-group-text+.btn,.input-group-append .input-group-text+.input-group-text,.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-prepend .input-group-text+.input-group-text{margin-left:-1px}.input-group-prepend{margin-right:-1px}.input-group-append{margin-left:-1px}.input-group-text{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;padding:.375rem .75rem;margin-bottom:0;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.25rem}.input-group-text input[type=checkbox],.input-group-text input[type=radio]{margin-top:0}.input-group-lg>.custom-select,.input-group-lg>.form-control:not(textarea){height:calc(1.5em + 1rem + 2px)}.input-group-lg>.custom-select,.input-group-lg>.form-control,.input-group-lg>.input-group-append>.btn,.input-group-lg>.input-group-append>.input-group-text,.input-group-lg>.input-group-prepend>.btn,.input-group-lg>.input-group-prepend>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.3rem}.input-group-sm>.custom-select,.input-group-sm>.form-control:not(textarea){height:calc(1.5em + .5rem + 2px)}.input-group-sm>.custom-select,.input-group-sm>.form-control,.input-group-sm>.input-group-append>.btn,.input-group-sm>.input-group-append>.input-group-text,.input-group-sm>.input-group-prepend>.btn,.input-group-sm>.input-group-prepend>.input-group-text{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.2rem}.input-group-lg>.custom-select,.input-group-sm>.custom-select{padding-right:1.75rem}.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group>.input-group-append:last-child>.input-group-text:not(:last-child),.input-group>.input-group-append:not(:last-child)>.btn,.input-group>.input-group-append:not(:last-child)>.input-group-text,.input-group>.input-group-prepend>.btn,.input-group>.input-group-prepend>.input-group-text{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0;border-bottom-left-radius:0}.custom-control{position:relative;z-index:1;display:block;min-height:1.5rem;padding-left:1.5rem;-webkit-print-color-adjust:exact;color-adjust:exact}.custom-control-inline{display:-ms-inline-flexbox;display:-webkit-inline-box;display:inline-flex;margin-right:1rem}.custom-control-input{position:absolute;left:0;z-index:-1;width:1rem;height:1.25rem;opacity:0}.custom-control-input:checked~.custom-control-label:before{color:#fff;border-color:#007bff;background-color:#007bff}.custom-control-input:focus~.custom-control-label:before{-webkit-box-shadow:0 0 0 .2rem rgba(0,123,255,.25);box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-control-input:focus:not(:checked)~.custom-control-label:before{border-color:#80bdff}.custom-control-input:not(:disabled):active~.custom-control-label:before{color:#fff;background-color:#b3d7ff;border-color:#b3d7ff}.custom-control-input:disabled~.custom-control-label,.custom-control-input[disabled]~.custom-control-label{color:#6c757d}.custom-control-input:disabled~.custom-control-label:before,.custom-control-input[disabled]~.custom-control-label:before{background-color:#e9ecef}.custom-control-label{position:relative;margin-bottom:0;vertical-align:top}.custom-control-label:before{pointer-events:none;background-color:#fff;border:1px solid #adb5bd}.custom-control-label:after,.custom-control-label:before{position:absolute;top:.25rem;left:-1.5rem;display:block;width:1rem;height:1rem;content:""}.custom-control-label:after{background:no-repeat 50%/50% 50%}.custom-checkbox .custom-control-label:before{border-radius:.25rem}.custom-checkbox .custom-control-input:checked~.custom-control-label:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label:before{border-color:#007bff;background-color:#007bff}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath stroke='%23fff' d='M0 2h4'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label:before{background-color:rgba(0,123,255,.5)}.custom-checkbox .custom-control-input:disabled:indeterminate~.custom-control-label:before{background-color:rgba(0,123,255,.5)}.custom-radio .custom-control-label:before{border-radius:50%}.custom-radio .custom-control-input:checked~.custom-control-label:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E")}.custom-radio .custom-control-input:disabled:checked~.custom-control-label:before{background-color:rgba(0,123,255,.5)}.custom-switch{padding-left:2.25rem}.custom-switch .custom-control-label:before{left:-2.25rem;width:1.75rem;pointer-events:all;border-radius:.5rem}.custom-switch .custom-control-label:after{top:calc(.25rem + 2px);left:calc(-2.25rem + 2px);width:calc(1rem - 4px);height:calc(1rem - 4px);background-color:#adb5bd;border-radius:.5rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-transform .15s ease-in-out;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-transform .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-transform .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-transform .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-transform .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-switch .custom-control-label:after{-webkit-transition:none;transition:none}}.custom-switch .custom-control-input:checked~.custom-control-label:after{background-color:#fff;-webkit-transform:translateX(.75rem);transform:translateX(.75rem)}.custom-switch .custom-control-input:disabled:checked~.custom-control-label:before{background-color:rgba(0,123,255,.5)}.custom-select{display:inline-block;width:100%;height:calc(1.5em + .75rem + 2px);padding:.375rem 1.75rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#495057;vertical-align:middle;background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center/8px 10px;border:1px solid #ced4da;border-radius:.25rem;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-select:focus{border-color:#80bdff;outline:0;-webkit-box-shadow:0 0 0 .2rem rgba(0,123,255,.25);box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-select:focus::-ms-value{color:#495057;background-color:#fff}.custom-select[multiple],.custom-select[size]:not([size="1"]){height:auto;padding-right:.75rem;background-image:none}.custom-select:disabled{color:#6c757d;background-color:#e9ecef}.custom-select::-ms-expand{display:none}.custom-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.custom-select-sm{height:calc(1.5em + .5rem + 2px);padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem}.custom-select-lg{height:calc(1.5em + 1rem + 2px);padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem}.custom-file{display:inline-block;margin-bottom:0}.custom-file,.custom-file-input{position:relative;width:100%;height:calc(1.5em + .75rem + 2px)}.custom-file-input{z-index:2;margin:0;opacity:0}.custom-file-input:focus~.custom-file-label{border-color:#80bdff;-webkit-box-shadow:0 0 0 .2rem rgba(0,123,255,.25);box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.custom-file-input:disabled~.custom-file-label,.custom-file-input[disabled]~.custom-file-label{background-color:#e9ecef}.custom-file-input:lang(en)~.custom-file-label:after{content:"Browse"}.custom-file-input~.custom-file-label[data-browse]:after{content:attr(data-browse)}.custom-file-label{left:0;z-index:1;height:calc(1.5em + .75rem + 2px);font-weight:400;background-color:#fff;border:1px solid #ced4da;border-radius:.25rem}.custom-file-label,.custom-file-label:after{position:absolute;top:0;right:0;padding:.375rem .75rem;line-height:1.5;color:#495057}.custom-file-label:after{bottom:0;z-index:3;display:block;height:calc(1.5em + .75rem);content:"Browse";background-color:#e9ecef;border-left:inherit;border-radius:0 .25rem .25rem 0}.custom-range{width:100%;height:1.4rem;padding:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-range:focus{outline:none}.custom-range:focus::-webkit-slider-thumb{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25);box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range:focus::-ms-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem rgba(0,123,255,.25)}.custom-range::-moz-focus-outer{border:0}.custom-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#007bff;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;-webkit-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.custom-range::-webkit-slider-thumb:active{background-color:#b3d7ff}.custom-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#007bff;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-moz-range-thumb{-moz-transition:none;transition:none}}.custom-range::-moz-range-thumb:active{background-color:#b3d7ff}.custom-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-ms-thumb{width:1rem;height:1rem;margin-top:0;margin-right:.2rem;margin-left:.2rem;background-color:#007bff;border:0;border-radius:1rem;-ms-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-ms-thumb{-ms-transition:none;transition:none}}.custom-range::-ms-thumb:active{background-color:#b3d7ff}.custom-range::-ms-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:transparent;border-color:transparent;border-width:.5rem}.custom-range::-ms-fill-lower,.custom-range::-ms-fill-upper{background-color:#dee2e6;border-radius:1rem}.custom-range::-ms-fill-upper{margin-right:15px}.custom-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.custom-range:disabled::-webkit-slider-runnable-track{cursor:default}.custom-range:disabled::-moz-range-thumb{background-color:#adb5bd}.custom-range:disabled::-moz-range-track{cursor:default}.custom-range:disabled::-ms-thumb{background-color:#adb5bd}.custom-control-label:before,.custom-file-label,.custom-select{-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-control-label:before,.custom-file-label,.custom-select{-webkit-transition:none;transition:none}}.nav{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:.5rem 1rem}.nav-link:focus,.nav-link:hover{text-decoration:none}.nav-link.disabled{color:#6c757d;pointer-events:none;cursor:default}.nav-tabs{border-bottom:1px solid #dee2e6}.nav-tabs .nav-item{margin-bottom:-1px}.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:.25rem;border-top-right-radius:.25rem}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6}.nav-tabs .nav-link.disabled{color:#6c757d;background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:#495057;background-color:#fff;border-color:#dee2e6 #dee2e6 #fff}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.nav-pills .nav-link{border-radius:.25rem}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:#fff;background-color:#007bff}.nav-fill .nav-item,.nav-fill>.nav-link{-ms-flex:1 1 auto;-webkit-box-flex:1;flex:1 1 auto;text-align:center}.nav-justified .nav-item,.nav-justified>.nav-link{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;-webkit-box-flex:1;flex-grow:1;text-align:center}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{position:relative;padding:.5rem 1rem}.navbar,.navbar .container,.navbar .container-fluid,.navbar .container-lg,.navbar .container-md,.navbar .container-sm,.navbar .container-xl{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:justify;-webkit-box-pack:justify;justify-content:space-between}.navbar-brand{display:inline-block;padding-top:.3125rem;padding-bottom:.3125rem;margin-right:1rem;font-size:1.25rem;line-height:inherit;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-nav{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link{padding-right:0;padding-left:0}.navbar-nav .dropdown-menu{position:static;float:none}.navbar-text{display:inline-block;padding-top:.5rem;padding-bottom:.5rem}.navbar-collapse{-ms-flex-preferred-size:100%;flex-basis:100%;-ms-flex-positive:1;-webkit-box-flex:1;flex-grow:1;-ms-flex-align:center;-webkit-box-align:center;align-items:center}.navbar-toggler{padding:.25rem .75rem;font-size:1.25rem;line-height:1;background-color:transparent;border:1px solid transparent;border-radius:.25rem}.navbar-toggler:focus,.navbar-toggler:hover{text-decoration:none}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;content:"";background:no-repeat 50%;background-size:100% 100%}@media (max-width:575.98px){.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{padding-right:0;padding-left:0}}@media (min-width:576px){.navbar-expand-sm{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;-webkit-box-pack:start;justify-content:flex-start}.navbar-expand-sm,.navbar-expand-sm .navbar-nav{-webkit-box-orient:horizontal;-webkit-box-direction:normal}.navbar-expand-sm .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-sm .navbar-collapse{display:-ms-flexbox!important;display:-webkit-box!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (max-width:767.98px){.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{padding-right:0;padding-left:0}}@media (min-width:768px){.navbar-expand-md{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;-webkit-box-pack:start;justify-content:flex-start}.navbar-expand-md,.navbar-expand-md .navbar-nav{-webkit-box-orient:horizontal;-webkit-box-direction:normal}.navbar-expand-md .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-md .navbar-collapse{display:-ms-flexbox!important;display:-webkit-box!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (max-width:991.98px){.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{padding-right:0;padding-left:0}}@media (min-width:992px){.navbar-expand-lg{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;-webkit-box-pack:start;justify-content:flex-start}.navbar-expand-lg,.navbar-expand-lg .navbar-nav{-webkit-box-orient:horizontal;-webkit-box-direction:normal}.navbar-expand-lg .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-lg .navbar-collapse{display:-ms-flexbox!important;display:-webkit-box!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (max-width:1199.98px){.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{padding-right:0;padding-left:0}}@media (min-width:1200px){.navbar-expand-xl{-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-pack:start;-webkit-box-pack:start;justify-content:flex-start}.navbar-expand-xl,.navbar-expand-xl .navbar-nav{-webkit-box-orient:horizontal;-webkit-box-direction:normal}.navbar-expand-xl .navbar-nav{-ms-flex-direction:row;flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-xl .navbar-collapse{display:-ms-flexbox!important;display:-webkit-box!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}.navbar-expand{-ms-flex-flow:row nowrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-flow:row nowrap;-ms-flex-pack:start;-webkit-box-pack:start;justify-content:flex-start}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{padding-right:0;padding-left:0}.navbar-expand .navbar-nav{-ms-flex-direction:row;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand .navbar-collapse{display:-ms-flexbox!important;display:-webkit-box!important;display:flex!important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-light .navbar-brand,.navbar-light .navbar-brand:focus,.navbar-light .navbar-brand:hover{color:rgba(0,0,0,.9)}.navbar-light .navbar-nav .nav-link{color:rgba(0,0,0,.5)}.navbar-light .navbar-nav .nav-link:focus,.navbar-light .navbar-nav .nav-link:hover{color:rgba(0,0,0,.7)}.navbar-light .navbar-nav .nav-link.disabled{color:rgba(0,0,0,.3)}.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .nav-link.active,.navbar-light .navbar-nav .nav-link.show,.navbar-light .navbar-nav .show>.nav-link{color:rgba(0,0,0,.9)}.navbar-light .navbar-toggler{color:rgba(0,0,0,.5);border-color:rgba(0,0,0,.1)}.navbar-light .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.navbar-light .navbar-text{color:rgba(0,0,0,.5)}.navbar-light .navbar-text a,.navbar-light .navbar-text a:focus,.navbar-light .navbar-text a:hover{color:rgba(0,0,0,.9)}.navbar-dark .navbar-brand,.navbar-dark .navbar-brand:focus,.navbar-dark .navbar-brand:hover{color:#fff}.navbar-dark .navbar-nav .nav-link{color:hsla(0,0%,100%,.5)}.navbar-dark .navbar-nav .nav-link:focus,.navbar-dark .navbar-nav .nav-link:hover{color:hsla(0,0%,100%,.75)}.navbar-dark .navbar-nav .nav-link.disabled{color:hsla(0,0%,100%,.25)}.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .nav-link.active,.navbar-dark .navbar-nav .nav-link.show,.navbar-dark .navbar-nav .show>.nav-link{color:#fff}.navbar-dark .navbar-toggler{color:hsla(0,0%,100%,.5);border-color:hsla(0,0%,100%,.1)}.navbar-dark .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.navbar-dark .navbar-text{color:hsla(0,0%,100%,.5)}.navbar-dark .navbar-text a,.navbar-dark .navbar-text a:focus,.navbar-dark .navbar-text a:hover{color:#fff}.card{position:relative;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,.125);border-radius:.25rem}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{-ms-flex:1 1 auto;-webkit-box-flex:1;flex:1 1 auto;min-height:1px;padding:1.25rem}.card-title{margin-bottom:.75rem}.card-subtitle{margin-top:-.375rem}.card-subtitle,.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.25rem}.card-header{padding:.75rem 1.25rem;margin-bottom:0;background-color:rgba(0,0,0,.03);border-bottom:1px solid rgba(0,0,0,.125)}.card-header:first-child{border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0}.card-footer{padding:.75rem 1.25rem;background-color:rgba(0,0,0,.03);border-top:1px solid rgba(0,0,0,.125)}.card-footer:last-child{border-radius:0 0 calc(.25rem - 1px) calc(.25rem - 1px)}.card-header-tabs{margin-bottom:-.75rem;border-bottom:0}.card-header-pills,.card-header-tabs{margin-right:-.625rem;margin-left:-.625rem}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:1.25rem;border-radius:calc(.25rem - 1px)}.card-img,.card-img-bottom,.card-img-top{-ms-flex-negative:0;flex-shrink:0;width:100%}.card-img,.card-img-top{border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}.card-img,.card-img-bottom{border-bottom-right-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}.card-deck .card{margin-bottom:15px}@media (min-width:576px){.card-deck{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-flow:row wrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-flow:row wrap;margin-right:-15px;margin-left:-15px}.card-deck .card{-ms-flex:1 0 0%;-webkit-box-flex:1;flex:1 0 0%;margin-right:15px;margin-bottom:0;margin-left:15px}}.card-group>.card{margin-bottom:15px}@media (min-width:576px){.card-group{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-flow:row wrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-flow:row wrap}.card-group>.card{-ms-flex:1 0 0%;-webkit-box-flex:1;flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.card-columns .card{margin-bottom:.75rem}@media (min-width:576px){.card-columns{-webkit-column-count:3;-moz-column-count:3;column-count:3;-webkit-column-gap:1.25rem;-moz-column-gap:1.25rem;column-gap:1.25rem;orphans:1;widows:1}.card-columns .card{display:inline-block;width:100%}}.accordion{overflow-anchor:none}.accordion>.card{overflow:hidden}.accordion>.card:not(:last-of-type){border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.accordion>.card:not(:first-of-type){border-top-left-radius:0;border-top-right-radius:0}.accordion>.card>.card-header{border-radius:0;margin-bottom:-1px}.breadcrumb{-ms-flex-wrap:wrap;flex-wrap:wrap;padding:.75rem 1rem;margin-bottom:1rem;list-style:none;background-color:#e9ecef;border-radius:.25rem}.breadcrumb,.breadcrumb-item{display:-ms-flexbox;display:-webkit-box;display:flex}.breadcrumb-item+.breadcrumb-item{padding-left:.5rem}.breadcrumb-item+.breadcrumb-item:before{display:inline-block;padding-right:.5rem;color:#6c757d;content:"/"}.breadcrumb-item+.breadcrumb-item:hover:before{text-decoration:underline;text-decoration:none}.breadcrumb-item.active{color:#6c757d}.pagination{display:-ms-flexbox;display:-webkit-box;display:flex;padding-left:0;list-style:none;border-radius:.25rem}.page-link{position:relative;display:block;padding:.5rem .75rem;margin-left:-1px;line-height:1.25;color:#007bff;background-color:#fff;border:1px solid #dee2e6}.page-link:hover{z-index:2;color:#0056b3;text-decoration:none;background-color:#e9ecef;border-color:#dee2e6}.page-link:focus{z-index:3;outline:0;-webkit-box-shadow:0 0 0 .2rem rgba(0,123,255,.25);box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.page-item:first-child .page-link{margin-left:0;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.page-item:last-child .page-link{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.page-item.active .page-link{z-index:3;color:#fff;background-color:#007bff;border-color:#007bff}.page-item.disabled .page-link{color:#6c757d;pointer-events:none;cursor:auto;background-color:#fff;border-color:#dee2e6}.pagination-lg .page-link{padding:.75rem 1.5rem;font-size:1.25rem;line-height:1.5}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:.3rem;border-bottom-left-radius:.3rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.pagination-sm .page-link{padding:.25rem .5rem;font-size:.875rem;line-height:1.5}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:.2rem;border-bottom-left-radius:.2rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:.2rem;border-bottom-right-radius:.2rem}.badge{display:inline-block;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.badge{-webkit-transition:none;transition:none}}a.badge:focus,a.badge:hover{text-decoration:none}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.badge-pill{padding-right:.6em;padding-left:.6em;border-radius:10rem}.badge-primary{color:#fff;background-color:#007bff}a.badge-primary:focus,a.badge-primary:hover{color:#fff;background-color:#0062cc}a.badge-primary.focus,a.badge-primary:focus{outline:0;-webkit-box-shadow:0 0 0 .2rem rgba(0,123,255,.5);box-shadow:0 0 0 .2rem rgba(0,123,255,.5)}.badge-secondary{color:#fff;background-color:#6c757d}a.badge-secondary:focus,a.badge-secondary:hover{color:#fff;background-color:#545b62}a.badge-secondary.focus,a.badge-secondary:focus{outline:0;-webkit-box-shadow:0 0 0 .2rem rgba(108,117,125,.5);box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.badge-success{color:#fff;background-color:#28a745}a.badge-success:focus,a.badge-success:hover{color:#fff;background-color:#1e7e34}a.badge-success.focus,a.badge-success:focus{outline:0;-webkit-box-shadow:0 0 0 .2rem rgba(40,167,69,.5);box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}.badge-info{color:#fff;background-color:#17a2b8}a.badge-info:focus,a.badge-info:hover{color:#fff;background-color:#117a8b}a.badge-info.focus,a.badge-info:focus{outline:0;-webkit-box-shadow:0 0 0 .2rem rgba(23,162,184,.5);box-shadow:0 0 0 .2rem rgba(23,162,184,.5)}.badge-warning{color:#212529;background-color:#ffc107}a.badge-warning:focus,a.badge-warning:hover{color:#212529;background-color:#d39e00}a.badge-warning.focus,a.badge-warning:focus{outline:0;-webkit-box-shadow:0 0 0 .2rem rgba(255,193,7,.5);box-shadow:0 0 0 .2rem rgba(255,193,7,.5)}.badge-danger{color:#fff;background-color:#dc3545}a.badge-danger:focus,a.badge-danger:hover{color:#fff;background-color:#bd2130}a.badge-danger.focus,a.badge-danger:focus{outline:0;-webkit-box-shadow:0 0 0 .2rem rgba(220,53,69,.5);box-shadow:0 0 0 .2rem rgba(220,53,69,.5)}.badge-light{color:#212529;background-color:#f8f9fa}a.badge-light:focus,a.badge-light:hover{color:#212529;background-color:#dae0e5}a.badge-light.focus,a.badge-light:focus{outline:0;-webkit-box-shadow:0 0 0 .2rem rgba(248,249,250,.5);box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.badge-dark{color:#fff;background-color:#343a40}a.badge-dark:focus,a.badge-dark:hover{color:#fff;background-color:#1d2124}a.badge-dark.focus,a.badge-dark:focus{outline:0;-webkit-box-shadow:0 0 0 .2rem rgba(52,58,64,.5);box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.jumbotron{padding:2rem 1rem;margin-bottom:2rem;background-color:#e9ecef;border-radius:.3rem}@media (min-width:576px){.jumbotron{padding:4rem 2rem}}.jumbotron-fluid{padding-right:0;padding-left:0;border-radius:0}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:4rem}.alert-dismissible .close{position:absolute;top:0;right:0;z-index:2;padding:.75rem 1.25rem;color:inherit}.alert-primary{color:#004085;background-color:#cce5ff;border-color:#b8daff}.alert-primary hr{border-top-color:#9fcdff}.alert-primary .alert-link{color:#002752}.alert-secondary{color:#383d41;background-color:#e2e3e5;border-color:#d6d8db}.alert-secondary hr{border-top-color:#c8cbcf}.alert-secondary .alert-link{color:#202326}.alert-success{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.alert-success hr{border-top-color:#b1dfbb}.alert-success .alert-link{color:#0b2e13}.alert-info{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-info hr{border-top-color:#abdde5}.alert-info .alert-link{color:#062c33}.alert-warning{color:#856404;background-color:#fff3cd;border-color:#ffeeba}.alert-warning hr{border-top-color:#ffe8a1}.alert-warning .alert-link{color:#533f03}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert-danger hr{border-top-color:#f1b0b7}.alert-danger .alert-link{color:#491217}.alert-light{color:#818182;background-color:#fefefe;border-color:#fdfdfe}.alert-light hr{border-top-color:#ececf6}.alert-light .alert-link{color:#686868}.alert-dark{color:#1b1e21;background-color:#d6d8d9;border-color:#c6c8ca}.alert-dark hr{border-top-color:#b9bbbe}.alert-dark .alert-link{color:#040505}@-webkit-keyframes progress-bar-stripes{0%{background-position:1rem 0}to{background-position:0 0}}@keyframes progress-bar-stripes{0%{background-position:1rem 0}to{background-position:0 0}}.progress{height:1rem;line-height:0;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem}.progress,.progress-bar{display:-ms-flexbox;display:-webkit-box;display:flex;overflow:hidden}.progress-bar{-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;color:#fff;text-align:center;white-space:nowrap;background-color:#007bff;-webkit-transition:width .6s ease;transition:width .6s ease}@media (prefers-reduced-motion:reduce){.progress-bar{-webkit-transition:none;transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent);background-size:1rem 1rem}.progress-bar-animated{-webkit-animation:progress-bar-stripes 1s linear infinite;animation:progress-bar-stripes 1s linear infinite}@media (prefers-reduced-motion:reduce){.progress-bar-animated{-webkit-animation:none;animation:none}}.media{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:start;-webkit-box-align:start;align-items:flex-start}.media-body{-ms-flex:1;-webkit-box-flex:1;flex:1}.list-group{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:.25rem}.list-group-item-action{width:100%;color:#495057;text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:#495057;text-decoration:none;background-color:#f8f9fa}.list-group-item-action:active{color:#212529;background-color:#e9ecef}.list-group-item{position:relative;display:block;padding:.75rem 1.25rem;background-color:#fff;border:1px solid rgba(0,0,0,.125)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:#6c757d;pointer-events:none;background-color:#fff}.list-group-item.active{z-index:2;color:#fff;background-color:#007bff;border-color:#007bff}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:-1px;border-top-width:1px}.list-group-horizontal{-ms-flex-direction:row;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row}.list-group-horizontal>.list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}@media (min-width:576px){.list-group-horizontal-sm{-ms-flex-direction:row;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:768px){.list-group-horizontal-md{-ms-flex-direction:row;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:992px){.list-group-horizontal-lg{-ms-flex-direction:row;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:1200px){.list-group-horizontal-xl{-ms-flex-direction:row;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 1px}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#004085;background-color:#b8daff}.list-group-item-primary.list-group-item-action:focus,.list-group-item-primary.list-group-item-action:hover{color:#004085;background-color:#9fcdff}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#004085;border-color:#004085}.list-group-item-secondary{color:#383d41;background-color:#d6d8db}.list-group-item-secondary.list-group-item-action:focus,.list-group-item-secondary.list-group-item-action:hover{color:#383d41;background-color:#c8cbcf}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#383d41;border-color:#383d41}.list-group-item-success{color:#155724;background-color:#c3e6cb}.list-group-item-success.list-group-item-action:focus,.list-group-item-success.list-group-item-action:hover{color:#155724;background-color:#b1dfbb}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#155724;border-color:#155724}.list-group-item-info{color:#0c5460;background-color:#bee5eb}.list-group-item-info.list-group-item-action:focus,.list-group-item-info.list-group-item-action:hover{color:#0c5460;background-color:#abdde5}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#0c5460;border-color:#0c5460}.list-group-item-warning{color:#856404;background-color:#ffeeba}.list-group-item-warning.list-group-item-action:focus,.list-group-item-warning.list-group-item-action:hover{color:#856404;background-color:#ffe8a1}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#856404;border-color:#856404}.list-group-item-danger{color:#721c24;background-color:#f5c6cb}.list-group-item-danger.list-group-item-action:focus,.list-group-item-danger.list-group-item-action:hover{color:#721c24;background-color:#f1b0b7}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#721c24;border-color:#721c24}.list-group-item-light{color:#818182;background-color:#fdfdfe}.list-group-item-light.list-group-item-action:focus,.list-group-item-light.list-group-item-action:hover{color:#818182;background-color:#ececf6}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#818182;border-color:#818182}.list-group-item-dark{color:#1b1e21;background-color:#c6c8ca}.list-group-item-dark.list-group-item-action:focus,.list-group-item-dark.list-group-item-action:hover{color:#1b1e21;background-color:#b9bbbe}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#1b1e21;border-color:#1b1e21}.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5}.close:hover{color:#000;text-decoration:none}.close:not(:disabled):not(.disabled):focus,.close:not(:disabled):not(.disabled):hover{opacity:.75}button.close{padding:0;background-color:transparent;border:0}a.close.disabled{pointer-events:none}.toast{-ms-flex-preferred-size:350px;flex-basis:350px;max-width:350px;font-size:.875rem;background-color:hsla(0,0%,100%,.85);background-clip:padding-box;border:1px solid rgba(0,0,0,.1);-webkit-box-shadow:0 .25rem .75rem rgba(0,0,0,.1);box-shadow:0 .25rem .75rem rgba(0,0,0,.1);opacity:0;border-radius:.25rem}.toast:not(:last-child){margin-bottom:.75rem}.toast.showing{opacity:1}.toast.show{display:block;opacity:1}.toast.hide{display:none}.toast-header{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;padding:.25rem .75rem;color:#6c757d;background-color:hsla(0,0%,100%,.85);background-clip:padding-box;border-bottom:1px solid rgba(0,0,0,.05);border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}.toast-body{padding:.75rem}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal{position:fixed;top:0;left:0;z-index:1050;display:none;width:100%;height:100%;overflow:hidden;outline:0}.modal-dialog{position:relative;width:auto;margin:.5rem;pointer-events:none}.modal.fade .modal-dialog{transition:-webkit-transform .3s ease-out;-webkit-transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out;-webkit-transform:translateY(-50px);transform:translateY(-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{-webkit-transition:none;transition:none}}.modal.show .modal-dialog{-webkit-transform:none;transform:none}.modal.modal-static .modal-dialog{-webkit-transform:scale(1.02);transform:scale(1.02)}.modal-dialog-scrollable{display:-ms-flexbox;display:-webkit-box;display:flex;max-height:calc(100% - 1rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1rem);overflow:hidden}.modal-dialog-scrollable .modal-footer,.modal-dialog-scrollable .modal-header{-ms-flex-negative:0;flex-shrink:0}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;min-height:calc(100% - 1rem)}.modal-dialog-centered:before{display:block;height:calc(100vh - 1rem);height:-webkit-min-content;height:-moz-min-content;height:min-content;content:""}.modal-dialog-centered.modal-dialog-scrollable{-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;height:100%}.modal-dialog-centered.modal-dialog-scrollable .modal-content{max-height:none}.modal-dialog-centered.modal-dialog-scrollable:before{content:none}.modal-content{position:relative;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-direction:column;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;outline:0}.modal-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:.5}.modal-header{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:start;-webkit-box-align:start;align-items:flex-start;-ms-flex-pack:justify;-webkit-box-pack:justify;justify-content:space-between;padding:1rem 1rem;border-bottom:1px solid #dee2e6;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.modal-header .close{padding:1rem 1rem;margin:-1rem -1rem -1rem auto}.modal-title{margin-bottom:0;line-height:1.5}.modal-body{position:relative;-ms-flex:1 1 auto;-webkit-box-flex:1;flex:1 1 auto;padding:1rem}.modal-footer{display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:end;-webkit-box-pack:end;justify-content:flex-end;padding:.75rem;border-top:1px solid #dee2e6;border-bottom-right-radius:calc(.3rem - 1px);border-bottom-left-radius:calc(.3rem - 1px)}.modal-footer>*{margin:.25rem}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:576px){.modal-dialog{max-width:500px;margin:1.75rem auto}.modal-dialog-scrollable{max-height:calc(100% - 3.5rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 3.5rem)}.modal-dialog-centered{min-height:calc(100% - 3.5rem)}.modal-dialog-centered:before{height:calc(100vh - 3.5rem);height:-webkit-min-content;height:-moz-min-content;height:min-content}.modal-sm{max-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{max-width:800px}}@media (min-width:1200px){.modal-xl{max-width:1140px}}.tooltip{position:absolute;z-index:1070;display:block;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;opacity:0}.tooltip.show{opacity:.9}.tooltip .arrow{position:absolute;display:block;width:.8rem;height:.4rem}.tooltip .arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[x-placement^=top],.bs-tooltip-top{padding:.4rem 0}.bs-tooltip-auto[x-placement^=top] .arrow,.bs-tooltip-top .arrow{bottom:0}.bs-tooltip-auto[x-placement^=top] .arrow:before,.bs-tooltip-top .arrow:before{top:0;border-width:.4rem .4rem 0;border-top-color:#000}.bs-tooltip-auto[x-placement^=right],.bs-tooltip-right{padding:0 .4rem}.bs-tooltip-auto[x-placement^=right] .arrow,.bs-tooltip-right .arrow{left:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=right] .arrow:before,.bs-tooltip-right .arrow:before{right:0;border-width:.4rem .4rem .4rem 0;border-right-color:#000}.bs-tooltip-auto[x-placement^=bottom],.bs-tooltip-bottom{padding:.4rem 0}.bs-tooltip-auto[x-placement^=bottom] .arrow,.bs-tooltip-bottom .arrow{top:0}.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.bs-tooltip-bottom .arrow:before{bottom:0;border-width:0 .4rem .4rem;border-bottom-color:#000}.bs-tooltip-auto[x-placement^=left],.bs-tooltip-left{padding:0 .4rem}.bs-tooltip-auto[x-placement^=left] .arrow,.bs-tooltip-left .arrow{right:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=left] .arrow:before,.bs-tooltip-left .arrow:before{left:0;border-width:.4rem 0 .4rem .4rem;border-left-color:#000}.tooltip-inner{max-width:200px;padding:.25rem .5rem;color:#fff;text-align:center;background-color:#000;border-radius:.25rem}.popover{top:0;left:0;z-index:1060;max-width:276px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem}.popover,.popover .arrow{position:absolute;display:block}.popover .arrow{width:1rem;height:.5rem;margin:0 .3rem}.popover .arrow:after,.popover .arrow:before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid}.bs-popover-auto[x-placement^=top],.bs-popover-top{margin-bottom:.5rem}.bs-popover-auto[x-placement^=top]>.arrow,.bs-popover-top>.arrow{bottom:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=top]>.arrow:before,.bs-popover-top>.arrow:before{bottom:0;border-width:.5rem .5rem 0;border-top-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=top]>.arrow:after,.bs-popover-top>.arrow:after{bottom:1px;border-width:.5rem .5rem 0;border-top-color:#fff}.bs-popover-auto[x-placement^=right],.bs-popover-right{margin-left:.5rem}.bs-popover-auto[x-placement^=right]>.arrow,.bs-popover-right>.arrow{left:calc(-.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=right]>.arrow:before,.bs-popover-right>.arrow:before{left:0;border-width:.5rem .5rem .5rem 0;border-right-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=right]>.arrow:after,.bs-popover-right>.arrow:after{left:1px;border-width:.5rem .5rem .5rem 0;border-right-color:#fff}.bs-popover-auto[x-placement^=bottom],.bs-popover-bottom{margin-top:.5rem}.bs-popover-auto[x-placement^=bottom]>.arrow,.bs-popover-bottom>.arrow{top:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=bottom]>.arrow:before,.bs-popover-bottom>.arrow:before{top:0;border-width:0 .5rem .5rem .5rem;border-bottom-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=bottom]>.arrow:after,.bs-popover-bottom>.arrow:after{top:1px;border-width:0 .5rem .5rem .5rem;border-bottom-color:#fff}.bs-popover-auto[x-placement^=bottom] .popover-header:before,.bs-popover-bottom .popover-header:before{position:absolute;top:0;left:50%;display:block;width:1rem;margin-left:-.5rem;content:"";border-bottom:1px solid #f7f7f7}.bs-popover-auto[x-placement^=left],.bs-popover-left{margin-right:.5rem}.bs-popover-auto[x-placement^=left]>.arrow,.bs-popover-left>.arrow{right:calc(-.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=left]>.arrow:before,.bs-popover-left>.arrow:before{right:0;border-width:.5rem 0 .5rem .5rem;border-left-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=left]>.arrow:after,.bs-popover-left>.arrow:after{right:1px;border-width:.5rem 0 .5rem .5rem;border-left-color:#fff}.popover-header{padding:.5rem .75rem;margin-bottom:0;font-size:1rem;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.popover-header:empty{display:none}.popover-body{padding:.5rem .75rem;color:#212529}.carousel{position:relative}.carousel.pointer-event{-ms-touch-action:pan-y;touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:-webkit-transform .6s ease-in-out;-webkit-transition:-webkit-transform .6s ease-in-out;transition:transform .6s ease-in-out;transition:transform .6s ease-in-out,-webkit-transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{-webkit-transition:none;transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-right,.carousel-item-next:not(.carousel-item-left){-webkit-transform:translateX(100%);transform:translateX(100%)}.active.carousel-item-left,.carousel-item-prev:not(.carousel-item-right){-webkit-transform:translateX(-100%);transform:translateX(-100%)}.carousel-fade .carousel-item{opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transform:none;transform:none}.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{z-index:0;opacity:0;-webkit-transition:opacity 0s .6s;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{-webkit-transition:none;transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-align:center;-webkit-box-align:center;align-items:center;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;width:15%;color:#fff;text-align:center;opacity:.5;-webkit-transition:opacity .15s ease;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{-webkit-transition:none;transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:20px;height:20px;background:no-repeat 50%/100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3E%3C/svg%3E")}.carousel-control-next-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8'%3E%3Cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3E%3C/svg%3E")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:15;display:-ms-flexbox;display:-webkit-box;display:flex;-ms-flex-pack:center;-webkit-box-pack:center;justify-content:center;padding-left:0;margin-right:15%;margin-left:15%;list-style:none}.carousel-indicators li{-webkit-box-sizing:content-box;box-sizing:content-box;-ms-flex:0 1 auto;-webkit-box-flex:0;flex:0 1 auto;width:30px;height:3px;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;-webkit-transition:opacity .6s ease;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators li{-webkit-transition:none;transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}@-webkit-keyframes spinner-border{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spinner-border{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.spinner-border{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;border:.25em solid currentColor;border-right-color:transparent;border-radius:50%;-webkit-animation:spinner-border .75s linear infinite;animation:spinner-border .75s linear infinite}.spinner-border-sm{width:1rem;height:1rem;border-width:.2em}@-webkit-keyframes spinner-grow{0%{-webkit-transform:scale(0);transform:scale(0)}50%{opacity:1;-webkit-transform:none;transform:none}}@keyframes spinner-grow{0%{-webkit-transform:scale(0);transform:scale(0)}50%{opacity:1;-webkit-transform:none;transform:none}}.spinner-grow{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;background-color:currentColor;border-radius:50%;opacity:0;-webkit-animation:spinner-grow .75s linear infinite;animation:spinner-grow .75s linear infinite}.spinner-grow-sm{width:1rem;height:1rem}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.bg-primary{background-color:#007bff!important}a.bg-primary:focus,a.bg-primary:hover,button.bg-primary:focus,button.bg-primary:hover{background-color:#0062cc!important}.bg-secondary{background-color:#6c757d!important}a.bg-secondary:focus,a.bg-secondary:hover,button.bg-secondary:focus,button.bg-secondary:hover{background-color:#545b62!important}.bg-success{background-color:#28a745!important}a.bg-success:focus,a.bg-success:hover,button.bg-success:focus,button.bg-success:hover{background-color:#1e7e34!important}.bg-info{background-color:#17a2b8!important}a.bg-info:focus,a.bg-info:hover,button.bg-info:focus,button.bg-info:hover{background-color:#117a8b!important}.bg-warning{background-color:#ffc107!important}a.bg-warning:focus,a.bg-warning:hover,button.bg-warning:focus,button.bg-warning:hover{background-color:#d39e00!important}.bg-danger{background-color:#dc3545!important}a.bg-danger:focus,a.bg-danger:hover,button.bg-danger:focus,button.bg-danger:hover{background-color:#bd2130!important}.bg-light{background-color:#f8f9fa!important}a.bg-light:focus,a.bg-light:hover,button.bg-light:focus,button.bg-light:hover{background-color:#dae0e5!important}.bg-dark{background-color:#343a40!important}a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover{background-color:#1d2124!important}.bg-white{background-color:#fff!important}.bg-transparent{background-color:transparent!important}.border{border:1px solid #dee2e6!important}.border-top{border-top:1px solid #dee2e6!important}.border-right{border-right:1px solid #dee2e6!important}.border-bottom{border-bottom:1px solid #dee2e6!important}.border-left{border-left:1px solid #dee2e6!important}.border-0{border:0!important}.border-top-0{border-top:0!important}.border-right-0{border-right:0!important}.border-bottom-0{border-bottom:0!important}.border-left-0{border-left:0!important}.border-primary{border-color:#007bff!important}.border-secondary{border-color:#6c757d!important}.border-success{border-color:#28a745!important}.border-info{border-color:#17a2b8!important}.border-warning{border-color:#ffc107!important}.border-danger{border-color:#dc3545!important}.border-light{border-color:#f8f9fa!important}.border-dark{border-color:#343a40!important}.border-white{border-color:#fff!important}.rounded-sm{border-radius:.2rem!important}.rounded{border-radius:.25rem!important}.rounded-top{border-top-left-radius:.25rem!important}.rounded-right,.rounded-top{border-top-right-radius:.25rem!important}.rounded-bottom,.rounded-right{border-bottom-right-radius:.25rem!important}.rounded-bottom,.rounded-left{border-bottom-left-radius:.25rem!important}.rounded-left{border-top-left-radius:.25rem!important}.rounded-lg{border-radius:.3rem!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:50rem!important}.rounded-0{border-radius:0!important}.clearfix:after{display:block;clear:both;content:""}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:-ms-flexbox!important;display:-webkit-box!important;display:flex!important}.d-inline-flex{display:-ms-inline-flexbox!important;display:-webkit-inline-box!important;display:inline-flex!important}@media (min-width:576px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:-ms-flexbox!important;display:-webkit-box!important;display:flex!important}.d-sm-inline-flex{display:-ms-inline-flexbox!important;display:-webkit-inline-box!important;display:inline-flex!important}}@media (min-width:768px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:-ms-flexbox!important;display:-webkit-box!important;display:flex!important}.d-md-inline-flex{display:-ms-inline-flexbox!important;display:-webkit-inline-box!important;display:inline-flex!important}}@media (min-width:992px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:-ms-flexbox!important;display:-webkit-box!important;display:flex!important}.d-lg-inline-flex{display:-ms-inline-flexbox!important;display:-webkit-inline-box!important;display:inline-flex!important}}@media (min-width:1200px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:-ms-flexbox!important;display:-webkit-box!important;display:flex!important}.d-xl-inline-flex{display:-ms-inline-flexbox!important;display:-webkit-inline-box!important;display:inline-flex!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:-ms-flexbox!important;display:-webkit-box!important;display:flex!important}.d-print-inline-flex{display:-ms-inline-flexbox!important;display:-webkit-inline-box!important;display:inline-flex!important}}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive:before{display:block;content:""}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9:before{padding-top:42.857143%}.embed-responsive-16by9:before{padding-top:56.25%}.embed-responsive-4by3:before{padding-top:75%}.embed-responsive-1by1:before{padding-top:100%}.flex-row{-ms-flex-direction:row!important;-webkit-box-orient:horizontal!important;flex-direction:row!important}.flex-column,.flex-row{-webkit-box-direction:normal!important}.flex-column{-ms-flex-direction:column!important;-webkit-box-orient:vertical!important;flex-direction:column!important}.flex-row-reverse{-ms-flex-direction:row-reverse!important;-webkit-box-orient:horizontal!important;flex-direction:row-reverse!important}.flex-column-reverse,.flex-row-reverse{-webkit-box-direction:reverse!important}.flex-column-reverse{-ms-flex-direction:column-reverse!important;-webkit-box-orient:vertical!important;flex-direction:column-reverse!important}.flex-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-fill{-ms-flex:1 1 auto!important;-webkit-box-flex:1!important;flex:1 1 auto!important}.flex-grow-0{-ms-flex-positive:0!important;-webkit-box-flex:0!important;flex-grow:0!important}.flex-grow-1{-ms-flex-positive:1!important;-webkit-box-flex:1!important;flex-grow:1!important}.flex-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-start{-ms-flex-pack:start!important;-webkit-box-pack:start!important;justify-content:flex-start!important}.justify-content-end{-ms-flex-pack:end!important;-webkit-box-pack:end!important;justify-content:flex-end!important}.justify-content-center{-ms-flex-pack:center!important;-webkit-box-pack:center!important;justify-content:center!important}.justify-content-between{-ms-flex-pack:justify!important;-webkit-box-pack:justify!important;justify-content:space-between!important}.justify-content-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-start{-ms-flex-align:start!important;-webkit-box-align:start!important;align-items:flex-start!important}.align-items-end{-ms-flex-align:end!important;-webkit-box-align:end!important;align-items:flex-end!important}.align-items-center{-ms-flex-align:center!important;-webkit-box-align:center!important;align-items:center!important}.align-items-baseline{-ms-flex-align:baseline!important;-webkit-box-align:baseline!important;align-items:baseline!important}.align-items-stretch{-ms-flex-align:stretch!important;-webkit-box-align:stretch!important;align-items:stretch!important}.align-content-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}@media (min-width:576px){.flex-sm-row{-ms-flex-direction:row!important;-webkit-box-orient:horizontal!important;flex-direction:row!important}.flex-sm-column,.flex-sm-row{-webkit-box-direction:normal!important}.flex-sm-column{-ms-flex-direction:column!important;-webkit-box-orient:vertical!important;flex-direction:column!important}.flex-sm-row-reverse{-ms-flex-direction:row-reverse!important;-webkit-box-orient:horizontal!important;-webkit-box-direction:reverse!important;flex-direction:row-reverse!important}.flex-sm-column-reverse{-ms-flex-direction:column-reverse!important;-webkit-box-orient:vertical!important;-webkit-box-direction:reverse!important;flex-direction:column-reverse!important}.flex-sm-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-sm-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-sm-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-sm-fill{-ms-flex:1 1 auto!important;-webkit-box-flex:1!important;flex:1 1 auto!important}.flex-sm-grow-0{-ms-flex-positive:0!important;-webkit-box-flex:0!important;flex-grow:0!important}.flex-sm-grow-1{-ms-flex-positive:1!important;-webkit-box-flex:1!important;flex-grow:1!important}.flex-sm-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-sm-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-sm-start{-ms-flex-pack:start!important;-webkit-box-pack:start!important;justify-content:flex-start!important}.justify-content-sm-end{-ms-flex-pack:end!important;-webkit-box-pack:end!important;justify-content:flex-end!important}.justify-content-sm-center{-ms-flex-pack:center!important;-webkit-box-pack:center!important;justify-content:center!important}.justify-content-sm-between{-ms-flex-pack:justify!important;-webkit-box-pack:justify!important;justify-content:space-between!important}.justify-content-sm-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-sm-start{-ms-flex-align:start!important;-webkit-box-align:start!important;align-items:flex-start!important}.align-items-sm-end{-ms-flex-align:end!important;-webkit-box-align:end!important;align-items:flex-end!important}.align-items-sm-center{-ms-flex-align:center!important;-webkit-box-align:center!important;align-items:center!important}.align-items-sm-baseline{-ms-flex-align:baseline!important;-webkit-box-align:baseline!important;align-items:baseline!important}.align-items-sm-stretch{-ms-flex-align:stretch!important;-webkit-box-align:stretch!important;align-items:stretch!important}.align-content-sm-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-sm-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-sm-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-sm-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-sm-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-sm-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-sm-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-sm-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-sm-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-sm-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-sm-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-sm-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:768px){.flex-md-row{-ms-flex-direction:row!important;-webkit-box-orient:horizontal!important;flex-direction:row!important}.flex-md-column,.flex-md-row{-webkit-box-direction:normal!important}.flex-md-column{-ms-flex-direction:column!important;-webkit-box-orient:vertical!important;flex-direction:column!important}.flex-md-row-reverse{-ms-flex-direction:row-reverse!important;-webkit-box-orient:horizontal!important;-webkit-box-direction:reverse!important;flex-direction:row-reverse!important}.flex-md-column-reverse{-ms-flex-direction:column-reverse!important;-webkit-box-orient:vertical!important;-webkit-box-direction:reverse!important;flex-direction:column-reverse!important}.flex-md-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-md-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-md-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-md-fill{-ms-flex:1 1 auto!important;-webkit-box-flex:1!important;flex:1 1 auto!important}.flex-md-grow-0{-ms-flex-positive:0!important;-webkit-box-flex:0!important;flex-grow:0!important}.flex-md-grow-1{-ms-flex-positive:1!important;-webkit-box-flex:1!important;flex-grow:1!important}.flex-md-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-md-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-md-start{-ms-flex-pack:start!important;-webkit-box-pack:start!important;justify-content:flex-start!important}.justify-content-md-end{-ms-flex-pack:end!important;-webkit-box-pack:end!important;justify-content:flex-end!important}.justify-content-md-center{-ms-flex-pack:center!important;-webkit-box-pack:center!important;justify-content:center!important}.justify-content-md-between{-ms-flex-pack:justify!important;-webkit-box-pack:justify!important;justify-content:space-between!important}.justify-content-md-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-md-start{-ms-flex-align:start!important;-webkit-box-align:start!important;align-items:flex-start!important}.align-items-md-end{-ms-flex-align:end!important;-webkit-box-align:end!important;align-items:flex-end!important}.align-items-md-center{-ms-flex-align:center!important;-webkit-box-align:center!important;align-items:center!important}.align-items-md-baseline{-ms-flex-align:baseline!important;-webkit-box-align:baseline!important;align-items:baseline!important}.align-items-md-stretch{-ms-flex-align:stretch!important;-webkit-box-align:stretch!important;align-items:stretch!important}.align-content-md-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-md-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-md-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-md-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-md-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-md-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-md-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-md-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-md-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-md-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-md-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-md-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:992px){.flex-lg-row{-ms-flex-direction:row!important;-webkit-box-orient:horizontal!important;flex-direction:row!important}.flex-lg-column,.flex-lg-row{-webkit-box-direction:normal!important}.flex-lg-column{-ms-flex-direction:column!important;-webkit-box-orient:vertical!important;flex-direction:column!important}.flex-lg-row-reverse{-ms-flex-direction:row-reverse!important;-webkit-box-orient:horizontal!important;-webkit-box-direction:reverse!important;flex-direction:row-reverse!important}.flex-lg-column-reverse{-ms-flex-direction:column-reverse!important;-webkit-box-orient:vertical!important;-webkit-box-direction:reverse!important;flex-direction:column-reverse!important}.flex-lg-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-lg-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-lg-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-lg-fill{-ms-flex:1 1 auto!important;-webkit-box-flex:1!important;flex:1 1 auto!important}.flex-lg-grow-0{-ms-flex-positive:0!important;-webkit-box-flex:0!important;flex-grow:0!important}.flex-lg-grow-1{-ms-flex-positive:1!important;-webkit-box-flex:1!important;flex-grow:1!important}.flex-lg-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-lg-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-lg-start{-ms-flex-pack:start!important;-webkit-box-pack:start!important;justify-content:flex-start!important}.justify-content-lg-end{-ms-flex-pack:end!important;-webkit-box-pack:end!important;justify-content:flex-end!important}.justify-content-lg-center{-ms-flex-pack:center!important;-webkit-box-pack:center!important;justify-content:center!important}.justify-content-lg-between{-ms-flex-pack:justify!important;-webkit-box-pack:justify!important;justify-content:space-between!important}.justify-content-lg-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-lg-start{-ms-flex-align:start!important;-webkit-box-align:start!important;align-items:flex-start!important}.align-items-lg-end{-ms-flex-align:end!important;-webkit-box-align:end!important;align-items:flex-end!important}.align-items-lg-center{-ms-flex-align:center!important;-webkit-box-align:center!important;align-items:center!important}.align-items-lg-baseline{-ms-flex-align:baseline!important;-webkit-box-align:baseline!important;align-items:baseline!important}.align-items-lg-stretch{-ms-flex-align:stretch!important;-webkit-box-align:stretch!important;align-items:stretch!important}.align-content-lg-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-lg-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-lg-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-lg-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-lg-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-lg-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-lg-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-lg-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-lg-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-lg-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-lg-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-lg-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}@media (min-width:1200px){.flex-xl-row{-ms-flex-direction:row!important;-webkit-box-orient:horizontal!important;flex-direction:row!important}.flex-xl-column,.flex-xl-row{-webkit-box-direction:normal!important}.flex-xl-column{-ms-flex-direction:column!important;-webkit-box-orient:vertical!important;flex-direction:column!important}.flex-xl-row-reverse{-ms-flex-direction:row-reverse!important;-webkit-box-orient:horizontal!important;-webkit-box-direction:reverse!important;flex-direction:row-reverse!important}.flex-xl-column-reverse{-ms-flex-direction:column-reverse!important;-webkit-box-orient:vertical!important;-webkit-box-direction:reverse!important;flex-direction:column-reverse!important}.flex-xl-wrap{-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}.flex-xl-nowrap{-ms-flex-wrap:nowrap!important;flex-wrap:nowrap!important}.flex-xl-wrap-reverse{-ms-flex-wrap:wrap-reverse!important;flex-wrap:wrap-reverse!important}.flex-xl-fill{-ms-flex:1 1 auto!important;-webkit-box-flex:1!important;flex:1 1 auto!important}.flex-xl-grow-0{-ms-flex-positive:0!important;-webkit-box-flex:0!important;flex-grow:0!important}.flex-xl-grow-1{-ms-flex-positive:1!important;-webkit-box-flex:1!important;flex-grow:1!important}.flex-xl-shrink-0{-ms-flex-negative:0!important;flex-shrink:0!important}.flex-xl-shrink-1{-ms-flex-negative:1!important;flex-shrink:1!important}.justify-content-xl-start{-ms-flex-pack:start!important;-webkit-box-pack:start!important;justify-content:flex-start!important}.justify-content-xl-end{-ms-flex-pack:end!important;-webkit-box-pack:end!important;justify-content:flex-end!important}.justify-content-xl-center{-ms-flex-pack:center!important;-webkit-box-pack:center!important;justify-content:center!important}.justify-content-xl-between{-ms-flex-pack:justify!important;-webkit-box-pack:justify!important;justify-content:space-between!important}.justify-content-xl-around{-ms-flex-pack:distribute!important;justify-content:space-around!important}.align-items-xl-start{-ms-flex-align:start!important;-webkit-box-align:start!important;align-items:flex-start!important}.align-items-xl-end{-ms-flex-align:end!important;-webkit-box-align:end!important;align-items:flex-end!important}.align-items-xl-center{-ms-flex-align:center!important;-webkit-box-align:center!important;align-items:center!important}.align-items-xl-baseline{-ms-flex-align:baseline!important;-webkit-box-align:baseline!important;align-items:baseline!important}.align-items-xl-stretch{-ms-flex-align:stretch!important;-webkit-box-align:stretch!important;align-items:stretch!important}.align-content-xl-start{-ms-flex-line-pack:start!important;align-content:flex-start!important}.align-content-xl-end{-ms-flex-line-pack:end!important;align-content:flex-end!important}.align-content-xl-center{-ms-flex-line-pack:center!important;align-content:center!important}.align-content-xl-between{-ms-flex-line-pack:justify!important;align-content:space-between!important}.align-content-xl-around{-ms-flex-line-pack:distribute!important;align-content:space-around!important}.align-content-xl-stretch{-ms-flex-line-pack:stretch!important;align-content:stretch!important}.align-self-xl-auto{-ms-flex-item-align:auto!important;align-self:auto!important}.align-self-xl-start{-ms-flex-item-align:start!important;align-self:flex-start!important}.align-self-xl-end{-ms-flex-item-align:end!important;align-self:flex-end!important}.align-self-xl-center{-ms-flex-item-align:center!important;align-self:center!important}.align-self-xl-baseline{-ms-flex-item-align:baseline!important;align-self:baseline!important}.align-self-xl-stretch{-ms-flex-item-align:stretch!important;align-self:stretch!important}}.float-left{float:left!important}.float-right{float:right!important}.float-none{float:none!important}@media (min-width:576px){.float-sm-left{float:left!important}.float-sm-right{float:right!important}.float-sm-none{float:none!important}}@media (min-width:768px){.float-md-left{float:left!important}.float-md-right{float:right!important}.float-md-none{float:none!important}}@media (min-width:992px){.float-lg-left{float:left!important}.float-lg-right{float:right!important}.float-lg-none{float:none!important}}@media (min-width:1200px){.float-xl-left{float:left!important}.float-xl-right{float:right!important}.float-xl-none{float:none!important}}.user-select-all{-webkit-user-select:all!important;-moz-user-select:all!important;-ms-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;-moz-user-select:auto!important;-ms-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.fixed-top{top:0}.fixed-bottom,.fixed-top{position:fixed;right:0;left:0;z-index:1030}.fixed-bottom{bottom:0}@supports ((position:-webkit-sticky) or (position:sticky)){.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.shadow-sm{-webkit-box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important;box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important}.shadow{-webkit-box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important;box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important}.shadow-lg{-webkit-box-shadow:0 1rem 3rem rgba(0,0,0,.175)!important;box-shadow:0 1rem 3rem rgba(0,0,0,.175)!important}.shadow-none{-webkit-box-shadow:none!important;box-shadow:none!important}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mw-100{max-width:100%!important}.mh-100{max-height:100%!important}.min-vw-100{min-width:100vw!important}.min-vh-100{min-height:100vh!important}.vw-100{width:100vw!important}.vh-100{height:100vh!important}.m-0{margin:0!important}.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}.m-1{margin:.25rem!important}.mt-1,.my-1{margin-top:.25rem!important}.mr-1,.mx-1{margin-right:.25rem!important}.mb-1,.my-1{margin-bottom:.25rem!important}.ml-1,.mx-1{margin-left:.25rem!important}.m-2{margin:.5rem!important}.mt-2,.my-2{margin-top:.5rem!important}.mr-2,.mx-2{margin-right:.5rem!important}.mb-2,.my-2{margin-bottom:.5rem!important}.ml-2,.mx-2{margin-left:.5rem!important}.m-3{margin:1rem!important}.mt-3,.my-3{margin-top:1rem!important}.mr-3,.mx-3{margin-right:1rem!important}.mb-3,.my-3{margin-bottom:1rem!important}.ml-3,.mx-3{margin-left:1rem!important}.m-4{margin:1.5rem!important}.mt-4,.my-4{margin-top:1.5rem!important}.mr-4,.mx-4{margin-right:1.5rem!important}.mb-4,.my-4{margin-bottom:1.5rem!important}.ml-4,.mx-4{margin-left:1.5rem!important}.m-5{margin:3rem!important}.mt-5,.my-5{margin-top:3rem!important}.mr-5,.mx-5{margin-right:3rem!important}.mb-5,.my-5{margin-bottom:3rem!important}.ml-5,.mx-5{margin-left:3rem!important}.p-0{padding:0!important}.pt-0,.py-0{padding-top:0!important}.pr-0,.px-0{padding-right:0!important}.pb-0,.py-0{padding-bottom:0!important}.pl-0,.px-0{padding-left:0!important}.p-1{padding:.25rem!important}.pt-1,.py-1{padding-top:.25rem!important}.pr-1,.px-1{padding-right:.25rem!important}.pb-1,.py-1{padding-bottom:.25rem!important}.pl-1,.px-1{padding-left:.25rem!important}.p-2{padding:.5rem!important}.pt-2,.py-2{padding-top:.5rem!important}.pr-2,.px-2{padding-right:.5rem!important}.pb-2,.py-2{padding-bottom:.5rem!important}.pl-2,.px-2{padding-left:.5rem!important}.p-3{padding:1rem!important}.pt-3,.py-3{padding-top:1rem!important}.pr-3,.px-3{padding-right:1rem!important}.pb-3,.py-3{padding-bottom:1rem!important}.pl-3,.px-3{padding-left:1rem!important}.p-4{padding:1.5rem!important}.pt-4,.py-4{padding-top:1.5rem!important}.pr-4,.px-4{padding-right:1.5rem!important}.pb-4,.py-4{padding-bottom:1.5rem!important}.pl-4,.px-4{padding-left:1.5rem!important}.p-5{padding:3rem!important}.pt-5,.py-5{padding-top:3rem!important}.pr-5,.px-5{padding-right:3rem!important}.pb-5,.py-5{padding-bottom:3rem!important}.pl-5,.px-5{padding-left:3rem!important}.m-n1{margin:-.25rem!important}.mt-n1,.my-n1{margin-top:-.25rem!important}.mr-n1,.mx-n1{margin-right:-.25rem!important}.mb-n1,.my-n1{margin-bottom:-.25rem!important}.ml-n1,.mx-n1{margin-left:-.25rem!important}.m-n2{margin:-.5rem!important}.mt-n2,.my-n2{margin-top:-.5rem!important}.mr-n2,.mx-n2{margin-right:-.5rem!important}.mb-n2,.my-n2{margin-bottom:-.5rem!important}.ml-n2,.mx-n2{margin-left:-.5rem!important}.m-n3{margin:-1rem!important}.mt-n3,.my-n3{margin-top:-1rem!important}.mr-n3,.mx-n3{margin-right:-1rem!important}.mb-n3,.my-n3{margin-bottom:-1rem!important}.ml-n3,.mx-n3{margin-left:-1rem!important}.m-n4{margin:-1.5rem!important}.mt-n4,.my-n4{margin-top:-1.5rem!important}.mr-n4,.mx-n4{margin-right:-1.5rem!important}.mb-n4,.my-n4{margin-bottom:-1.5rem!important}.ml-n4,.mx-n4{margin-left:-1.5rem!important}.m-n5{margin:-3rem!important}.mt-n5,.my-n5{margin-top:-3rem!important}.mr-n5,.mx-n5{margin-right:-3rem!important}.mb-n5,.my-n5{margin-bottom:-3rem!important}.ml-n5,.mx-n5{margin-left:-3rem!important}.m-auto{margin:auto!important}.mt-auto,.my-auto{margin-top:auto!important}.mr-auto,.mx-auto{margin-right:auto!important}.mb-auto,.my-auto{margin-bottom:auto!important}.ml-auto,.mx-auto{margin-left:auto!important}@media (min-width:576px){.m-sm-0{margin:0!important}.mt-sm-0,.my-sm-0{margin-top:0!important}.mr-sm-0,.mx-sm-0{margin-right:0!important}.mb-sm-0,.my-sm-0{margin-bottom:0!important}.ml-sm-0,.mx-sm-0{margin-left:0!important}.m-sm-1{margin:.25rem!important}.mt-sm-1,.my-sm-1{margin-top:.25rem!important}.mr-sm-1,.mx-sm-1{margin-right:.25rem!important}.mb-sm-1,.my-sm-1{margin-bottom:.25rem!important}.ml-sm-1,.mx-sm-1{margin-left:.25rem!important}.m-sm-2{margin:.5rem!important}.mt-sm-2,.my-sm-2{margin-top:.5rem!important}.mr-sm-2,.mx-sm-2{margin-right:.5rem!important}.mb-sm-2,.my-sm-2{margin-bottom:.5rem!important}.ml-sm-2,.mx-sm-2{margin-left:.5rem!important}.m-sm-3{margin:1rem!important}.mt-sm-3,.my-sm-3{margin-top:1rem!important}.mr-sm-3,.mx-sm-3{margin-right:1rem!important}.mb-sm-3,.my-sm-3{margin-bottom:1rem!important}.ml-sm-3,.mx-sm-3{margin-left:1rem!important}.m-sm-4{margin:1.5rem!important}.mt-sm-4,.my-sm-4{margin-top:1.5rem!important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem!important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem!important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem!important}.m-sm-5{margin:3rem!important}.mt-sm-5,.my-sm-5{margin-top:3rem!important}.mr-sm-5,.mx-sm-5{margin-right:3rem!important}.mb-sm-5,.my-sm-5{margin-bottom:3rem!important}.ml-sm-5,.mx-sm-5{margin-left:3rem!important}.p-sm-0{padding:0!important}.pt-sm-0,.py-sm-0{padding-top:0!important}.pr-sm-0,.px-sm-0{padding-right:0!important}.pb-sm-0,.py-sm-0{padding-bottom:0!important}.pl-sm-0,.px-sm-0{padding-left:0!important}.p-sm-1{padding:.25rem!important}.pt-sm-1,.py-sm-1{padding-top:.25rem!important}.pr-sm-1,.px-sm-1{padding-right:.25rem!important}.pb-sm-1,.py-sm-1{padding-bottom:.25rem!important}.pl-sm-1,.px-sm-1{padding-left:.25rem!important}.p-sm-2{padding:.5rem!important}.pt-sm-2,.py-sm-2{padding-top:.5rem!important}.pr-sm-2,.px-sm-2{padding-right:.5rem!important}.pb-sm-2,.py-sm-2{padding-bottom:.5rem!important}.pl-sm-2,.px-sm-2{padding-left:.5rem!important}.p-sm-3{padding:1rem!important}.pt-sm-3,.py-sm-3{padding-top:1rem!important}.pr-sm-3,.px-sm-3{padding-right:1rem!important}.pb-sm-3,.py-sm-3{padding-bottom:1rem!important}.pl-sm-3,.px-sm-3{padding-left:1rem!important}.p-sm-4{padding:1.5rem!important}.pt-sm-4,.py-sm-4{padding-top:1.5rem!important}.pr-sm-4,.px-sm-4{padding-right:1.5rem!important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem!important}.pl-sm-4,.px-sm-4{padding-left:1.5rem!important}.p-sm-5{padding:3rem!important}.pt-sm-5,.py-sm-5{padding-top:3rem!important}.pr-sm-5,.px-sm-5{padding-right:3rem!important}.pb-sm-5,.py-sm-5{padding-bottom:3rem!important}.pl-sm-5,.px-sm-5{padding-left:3rem!important}.m-sm-n1{margin:-.25rem!important}.mt-sm-n1,.my-sm-n1{margin-top:-.25rem!important}.mr-sm-n1,.mx-sm-n1{margin-right:-.25rem!important}.mb-sm-n1,.my-sm-n1{margin-bottom:-.25rem!important}.ml-sm-n1,.mx-sm-n1{margin-left:-.25rem!important}.m-sm-n2{margin:-.5rem!important}.mt-sm-n2,.my-sm-n2{margin-top:-.5rem!important}.mr-sm-n2,.mx-sm-n2{margin-right:-.5rem!important}.mb-sm-n2,.my-sm-n2{margin-bottom:-.5rem!important}.ml-sm-n2,.mx-sm-n2{margin-left:-.5rem!important}.m-sm-n3{margin:-1rem!important}.mt-sm-n3,.my-sm-n3{margin-top:-1rem!important}.mr-sm-n3,.mx-sm-n3{margin-right:-1rem!important}.mb-sm-n3,.my-sm-n3{margin-bottom:-1rem!important}.ml-sm-n3,.mx-sm-n3{margin-left:-1rem!important}.m-sm-n4{margin:-1.5rem!important}.mt-sm-n4,.my-sm-n4{margin-top:-1.5rem!important}.mr-sm-n4,.mx-sm-n4{margin-right:-1.5rem!important}.mb-sm-n4,.my-sm-n4{margin-bottom:-1.5rem!important}.ml-sm-n4,.mx-sm-n4{margin-left:-1.5rem!important}.m-sm-n5{margin:-3rem!important}.mt-sm-n5,.my-sm-n5{margin-top:-3rem!important}.mr-sm-n5,.mx-sm-n5{margin-right:-3rem!important}.mb-sm-n5,.my-sm-n5{margin-bottom:-3rem!important}.ml-sm-n5,.mx-sm-n5{margin-left:-3rem!important}.m-sm-auto{margin:auto!important}.mt-sm-auto,.my-sm-auto{margin-top:auto!important}.mr-sm-auto,.mx-sm-auto{margin-right:auto!important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto!important}.ml-sm-auto,.mx-sm-auto{margin-left:auto!important}}@media (min-width:768px){.m-md-0{margin:0!important}.mt-md-0,.my-md-0{margin-top:0!important}.mr-md-0,.mx-md-0{margin-right:0!important}.mb-md-0,.my-md-0{margin-bottom:0!important}.ml-md-0,.mx-md-0{margin-left:0!important}.m-md-1{margin:.25rem!important}.mt-md-1,.my-md-1{margin-top:.25rem!important}.mr-md-1,.mx-md-1{margin-right:.25rem!important}.mb-md-1,.my-md-1{margin-bottom:.25rem!important}.ml-md-1,.mx-md-1{margin-left:.25rem!important}.m-md-2{margin:.5rem!important}.mt-md-2,.my-md-2{margin-top:.5rem!important}.mr-md-2,.mx-md-2{margin-right:.5rem!important}.mb-md-2,.my-md-2{margin-bottom:.5rem!important}.ml-md-2,.mx-md-2{margin-left:.5rem!important}.m-md-3{margin:1rem!important}.mt-md-3,.my-md-3{margin-top:1rem!important}.mr-md-3,.mx-md-3{margin-right:1rem!important}.mb-md-3,.my-md-3{margin-bottom:1rem!important}.ml-md-3,.mx-md-3{margin-left:1rem!important}.m-md-4{margin:1.5rem!important}.mt-md-4,.my-md-4{margin-top:1.5rem!important}.mr-md-4,.mx-md-4{margin-right:1.5rem!important}.mb-md-4,.my-md-4{margin-bottom:1.5rem!important}.ml-md-4,.mx-md-4{margin-left:1.5rem!important}.m-md-5{margin:3rem!important}.mt-md-5,.my-md-5{margin-top:3rem!important}.mr-md-5,.mx-md-5{margin-right:3rem!important}.mb-md-5,.my-md-5{margin-bottom:3rem!important}.ml-md-5,.mx-md-5{margin-left:3rem!important}.p-md-0{padding:0!important}.pt-md-0,.py-md-0{padding-top:0!important}.pr-md-0,.px-md-0{padding-right:0!important}.pb-md-0,.py-md-0{padding-bottom:0!important}.pl-md-0,.px-md-0{padding-left:0!important}.p-md-1{padding:.25rem!important}.pt-md-1,.py-md-1{padding-top:.25rem!important}.pr-md-1,.px-md-1{padding-right:.25rem!important}.pb-md-1,.py-md-1{padding-bottom:.25rem!important}.pl-md-1,.px-md-1{padding-left:.25rem!important}.p-md-2{padding:.5rem!important}.pt-md-2,.py-md-2{padding-top:.5rem!important}.pr-md-2,.px-md-2{padding-right:.5rem!important}.pb-md-2,.py-md-2{padding-bottom:.5rem!important}.pl-md-2,.px-md-2{padding-left:.5rem!important}.p-md-3{padding:1rem!important}.pt-md-3,.py-md-3{padding-top:1rem!important}.pr-md-3,.px-md-3{padding-right:1rem!important}.pb-md-3,.py-md-3{padding-bottom:1rem!important}.pl-md-3,.px-md-3{padding-left:1rem!important}.p-md-4{padding:1.5rem!important}.pt-md-4,.py-md-4{padding-top:1.5rem!important}.pr-md-4,.px-md-4{padding-right:1.5rem!important}.pb-md-4,.py-md-4{padding-bottom:1.5rem!important}.pl-md-4,.px-md-4{padding-left:1.5rem!important}.p-md-5{padding:3rem!important}.pt-md-5,.py-md-5{padding-top:3rem!important}.pr-md-5,.px-md-5{padding-right:3rem!important}.pb-md-5,.py-md-5{padding-bottom:3rem!important}.pl-md-5,.px-md-5{padding-left:3rem!important}.m-md-n1{margin:-.25rem!important}.mt-md-n1,.my-md-n1{margin-top:-.25rem!important}.mr-md-n1,.mx-md-n1{margin-right:-.25rem!important}.mb-md-n1,.my-md-n1{margin-bottom:-.25rem!important}.ml-md-n1,.mx-md-n1{margin-left:-.25rem!important}.m-md-n2{margin:-.5rem!important}.mt-md-n2,.my-md-n2{margin-top:-.5rem!important}.mr-md-n2,.mx-md-n2{margin-right:-.5rem!important}.mb-md-n2,.my-md-n2{margin-bottom:-.5rem!important}.ml-md-n2,.mx-md-n2{margin-left:-.5rem!important}.m-md-n3{margin:-1rem!important}.mt-md-n3,.my-md-n3{margin-top:-1rem!important}.mr-md-n3,.mx-md-n3{margin-right:-1rem!important}.mb-md-n3,.my-md-n3{margin-bottom:-1rem!important}.ml-md-n3,.mx-md-n3{margin-left:-1rem!important}.m-md-n4{margin:-1.5rem!important}.mt-md-n4,.my-md-n4{margin-top:-1.5rem!important}.mr-md-n4,.mx-md-n4{margin-right:-1.5rem!important}.mb-md-n4,.my-md-n4{margin-bottom:-1.5rem!important}.ml-md-n4,.mx-md-n4{margin-left:-1.5rem!important}.m-md-n5{margin:-3rem!important}.mt-md-n5,.my-md-n5{margin-top:-3rem!important}.mr-md-n5,.mx-md-n5{margin-right:-3rem!important}.mb-md-n5,.my-md-n5{margin-bottom:-3rem!important}.ml-md-n5,.mx-md-n5{margin-left:-3rem!important}.m-md-auto{margin:auto!important}.mt-md-auto,.my-md-auto{margin-top:auto!important}.mr-md-auto,.mx-md-auto{margin-right:auto!important}.mb-md-auto,.my-md-auto{margin-bottom:auto!important}.ml-md-auto,.mx-md-auto{margin-left:auto!important}}@media (min-width:992px){.m-lg-0{margin:0!important}.mt-lg-0,.my-lg-0{margin-top:0!important}.mr-lg-0,.mx-lg-0{margin-right:0!important}.mb-lg-0,.my-lg-0{margin-bottom:0!important}.ml-lg-0,.mx-lg-0{margin-left:0!important}.m-lg-1{margin:.25rem!important}.mt-lg-1,.my-lg-1{margin-top:.25rem!important}.mr-lg-1,.mx-lg-1{margin-right:.25rem!important}.mb-lg-1,.my-lg-1{margin-bottom:.25rem!important}.ml-lg-1,.mx-lg-1{margin-left:.25rem!important}.m-lg-2{margin:.5rem!important}.mt-lg-2,.my-lg-2{margin-top:.5rem!important}.mr-lg-2,.mx-lg-2{margin-right:.5rem!important}.mb-lg-2,.my-lg-2{margin-bottom:.5rem!important}.ml-lg-2,.mx-lg-2{margin-left:.5rem!important}.m-lg-3{margin:1rem!important}.mt-lg-3,.my-lg-3{margin-top:1rem!important}.mr-lg-3,.mx-lg-3{margin-right:1rem!important}.mb-lg-3,.my-lg-3{margin-bottom:1rem!important}.ml-lg-3,.mx-lg-3{margin-left:1rem!important}.m-lg-4{margin:1.5rem!important}.mt-lg-4,.my-lg-4{margin-top:1.5rem!important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem!important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem!important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem!important}.m-lg-5{margin:3rem!important}.mt-lg-5,.my-lg-5{margin-top:3rem!important}.mr-lg-5,.mx-lg-5{margin-right:3rem!important}.mb-lg-5,.my-lg-5{margin-bottom:3rem!important}.ml-lg-5,.mx-lg-5{margin-left:3rem!important}.p-lg-0{padding:0!important}.pt-lg-0,.py-lg-0{padding-top:0!important}.pr-lg-0,.px-lg-0{padding-right:0!important}.pb-lg-0,.py-lg-0{padding-bottom:0!important}.pl-lg-0,.px-lg-0{padding-left:0!important}.p-lg-1{padding:.25rem!important}.pt-lg-1,.py-lg-1{padding-top:.25rem!important}.pr-lg-1,.px-lg-1{padding-right:.25rem!important}.pb-lg-1,.py-lg-1{padding-bottom:.25rem!important}.pl-lg-1,.px-lg-1{padding-left:.25rem!important}.p-lg-2{padding:.5rem!important}.pt-lg-2,.py-lg-2{padding-top:.5rem!important}.pr-lg-2,.px-lg-2{padding-right:.5rem!important}.pb-lg-2,.py-lg-2{padding-bottom:.5rem!important}.pl-lg-2,.px-lg-2{padding-left:.5rem!important}.p-lg-3{padding:1rem!important}.pt-lg-3,.py-lg-3{padding-top:1rem!important}.pr-lg-3,.px-lg-3{padding-right:1rem!important}.pb-lg-3,.py-lg-3{padding-bottom:1rem!important}.pl-lg-3,.px-lg-3{padding-left:1rem!important}.p-lg-4{padding:1.5rem!important}.pt-lg-4,.py-lg-4{padding-top:1.5rem!important}.pr-lg-4,.px-lg-4{padding-right:1.5rem!important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem!important}.pl-lg-4,.px-lg-4{padding-left:1.5rem!important}.p-lg-5{padding:3rem!important}.pt-lg-5,.py-lg-5{padding-top:3rem!important}.pr-lg-5,.px-lg-5{padding-right:3rem!important}.pb-lg-5,.py-lg-5{padding-bottom:3rem!important}.pl-lg-5,.px-lg-5{padding-left:3rem!important}.m-lg-n1{margin:-.25rem!important}.mt-lg-n1,.my-lg-n1{margin-top:-.25rem!important}.mr-lg-n1,.mx-lg-n1{margin-right:-.25rem!important}.mb-lg-n1,.my-lg-n1{margin-bottom:-.25rem!important}.ml-lg-n1,.mx-lg-n1{margin-left:-.25rem!important}.m-lg-n2{margin:-.5rem!important}.mt-lg-n2,.my-lg-n2{margin-top:-.5rem!important}.mr-lg-n2,.mx-lg-n2{margin-right:-.5rem!important}.mb-lg-n2,.my-lg-n2{margin-bottom:-.5rem!important}.ml-lg-n2,.mx-lg-n2{margin-left:-.5rem!important}.m-lg-n3{margin:-1rem!important}.mt-lg-n3,.my-lg-n3{margin-top:-1rem!important}.mr-lg-n3,.mx-lg-n3{margin-right:-1rem!important}.mb-lg-n3,.my-lg-n3{margin-bottom:-1rem!important}.ml-lg-n3,.mx-lg-n3{margin-left:-1rem!important}.m-lg-n4{margin:-1.5rem!important}.mt-lg-n4,.my-lg-n4{margin-top:-1.5rem!important}.mr-lg-n4,.mx-lg-n4{margin-right:-1.5rem!important}.mb-lg-n4,.my-lg-n4{margin-bottom:-1.5rem!important}.ml-lg-n4,.mx-lg-n4{margin-left:-1.5rem!important}.m-lg-n5{margin:-3rem!important}.mt-lg-n5,.my-lg-n5{margin-top:-3rem!important}.mr-lg-n5,.mx-lg-n5{margin-right:-3rem!important}.mb-lg-n5,.my-lg-n5{margin-bottom:-3rem!important}.ml-lg-n5,.mx-lg-n5{margin-left:-3rem!important}.m-lg-auto{margin:auto!important}.mt-lg-auto,.my-lg-auto{margin-top:auto!important}.mr-lg-auto,.mx-lg-auto{margin-right:auto!important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto!important}.ml-lg-auto,.mx-lg-auto{margin-left:auto!important}}@media (min-width:1200px){.m-xl-0{margin:0!important}.mt-xl-0,.my-xl-0{margin-top:0!important}.mr-xl-0,.mx-xl-0{margin-right:0!important}.mb-xl-0,.my-xl-0{margin-bottom:0!important}.ml-xl-0,.mx-xl-0{margin-left:0!important}.m-xl-1{margin:.25rem!important}.mt-xl-1,.my-xl-1{margin-top:.25rem!important}.mr-xl-1,.mx-xl-1{margin-right:.25rem!important}.mb-xl-1,.my-xl-1{margin-bottom:.25rem!important}.ml-xl-1,.mx-xl-1{margin-left:.25rem!important}.m-xl-2{margin:.5rem!important}.mt-xl-2,.my-xl-2{margin-top:.5rem!important}.mr-xl-2,.mx-xl-2{margin-right:.5rem!important}.mb-xl-2,.my-xl-2{margin-bottom:.5rem!important}.ml-xl-2,.mx-xl-2{margin-left:.5rem!important}.m-xl-3{margin:1rem!important}.mt-xl-3,.my-xl-3{margin-top:1rem!important}.mr-xl-3,.mx-xl-3{margin-right:1rem!important}.mb-xl-3,.my-xl-3{margin-bottom:1rem!important}.ml-xl-3,.mx-xl-3{margin-left:1rem!important}.m-xl-4{margin:1.5rem!important}.mt-xl-4,.my-xl-4{margin-top:1.5rem!important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem!important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem!important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem!important}.m-xl-5{margin:3rem!important}.mt-xl-5,.my-xl-5{margin-top:3rem!important}.mr-xl-5,.mx-xl-5{margin-right:3rem!important}.mb-xl-5,.my-xl-5{margin-bottom:3rem!important}.ml-xl-5,.mx-xl-5{margin-left:3rem!important}.p-xl-0{padding:0!important}.pt-xl-0,.py-xl-0{padding-top:0!important}.pr-xl-0,.px-xl-0{padding-right:0!important}.pb-xl-0,.py-xl-0{padding-bottom:0!important}.pl-xl-0,.px-xl-0{padding-left:0!important}.p-xl-1{padding:.25rem!important}.pt-xl-1,.py-xl-1{padding-top:.25rem!important}.pr-xl-1,.px-xl-1{padding-right:.25rem!important}.pb-xl-1,.py-xl-1{padding-bottom:.25rem!important}.pl-xl-1,.px-xl-1{padding-left:.25rem!important}.p-xl-2{padding:.5rem!important}.pt-xl-2,.py-xl-2{padding-top:.5rem!important}.pr-xl-2,.px-xl-2{padding-right:.5rem!important}.pb-xl-2,.py-xl-2{padding-bottom:.5rem!important}.pl-xl-2,.px-xl-2{padding-left:.5rem!important}.p-xl-3{padding:1rem!important}.pt-xl-3,.py-xl-3{padding-top:1rem!important}.pr-xl-3,.px-xl-3{padding-right:1rem!important}.pb-xl-3,.py-xl-3{padding-bottom:1rem!important}.pl-xl-3,.px-xl-3{padding-left:1rem!important}.p-xl-4{padding:1.5rem!important}.pt-xl-4,.py-xl-4{padding-top:1.5rem!important}.pr-xl-4,.px-xl-4{padding-right:1.5rem!important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem!important}.pl-xl-4,.px-xl-4{padding-left:1.5rem!important}.p-xl-5{padding:3rem!important}.pt-xl-5,.py-xl-5{padding-top:3rem!important}.pr-xl-5,.px-xl-5{padding-right:3rem!important}.pb-xl-5,.py-xl-5{padding-bottom:3rem!important}.pl-xl-5,.px-xl-5{padding-left:3rem!important}.m-xl-n1{margin:-.25rem!important}.mt-xl-n1,.my-xl-n1{margin-top:-.25rem!important}.mr-xl-n1,.mx-xl-n1{margin-right:-.25rem!important}.mb-xl-n1,.my-xl-n1{margin-bottom:-.25rem!important}.ml-xl-n1,.mx-xl-n1{margin-left:-.25rem!important}.m-xl-n2{margin:-.5rem!important}.mt-xl-n2,.my-xl-n2{margin-top:-.5rem!important}.mr-xl-n2,.mx-xl-n2{margin-right:-.5rem!important}.mb-xl-n2,.my-xl-n2{margin-bottom:-.5rem!important}.ml-xl-n2,.mx-xl-n2{margin-left:-.5rem!important}.m-xl-n3{margin:-1rem!important}.mt-xl-n3,.my-xl-n3{margin-top:-1rem!important}.mr-xl-n3,.mx-xl-n3{margin-right:-1rem!important}.mb-xl-n3,.my-xl-n3{margin-bottom:-1rem!important}.ml-xl-n3,.mx-xl-n3{margin-left:-1rem!important}.m-xl-n4{margin:-1.5rem!important}.mt-xl-n4,.my-xl-n4{margin-top:-1.5rem!important}.mr-xl-n4,.mx-xl-n4{margin-right:-1.5rem!important}.mb-xl-n4,.my-xl-n4{margin-bottom:-1.5rem!important}.ml-xl-n4,.mx-xl-n4{margin-left:-1.5rem!important}.m-xl-n5{margin:-3rem!important}.mt-xl-n5,.my-xl-n5{margin-top:-3rem!important}.mr-xl-n5,.mx-xl-n5{margin-right:-3rem!important}.mb-xl-n5,.my-xl-n5{margin-bottom:-3rem!important}.ml-xl-n5,.mx-xl-n5{margin-left:-3rem!important}.m-xl-auto{margin:auto!important}.mt-xl-auto,.my-xl-auto{margin-top:auto!important}.mr-xl-auto,.mx-xl-auto{margin-right:auto!important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto!important}.ml-xl-auto,.mx-xl-auto{margin-left:auto!important}}.stretched-link:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:auto;content:"";background-color:transparent}.text-monospace{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace!important}.text-justify{text-align:justify!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}@media (min-width:576px){.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.font-weight-light{font-weight:300!important}.font-weight-lighter{font-weight:lighter!important}.font-weight-normal{font-weight:400!important}.font-weight-bold{font-weight:700!important}.font-weight-bolder{font-weight:bolder!important}.font-italic{font-style:italic!important}.text-white{color:#fff!important}.text-primary{color:#007bff!important}a.text-primary:focus,a.text-primary:hover{color:#0056b3!important}.text-secondary{color:#6c757d!important}a.text-secondary:focus,a.text-secondary:hover{color:#494f54!important}.text-success{color:#28a745!important}a.text-success:focus,a.text-success:hover{color:#19692c!important}.text-info{color:#17a2b8!important}a.text-info:focus,a.text-info:hover{color:#0f6674!important}.text-warning{color:#ffc107!important}a.text-warning:focus,a.text-warning:hover{color:#ba8b00!important}.text-danger{color:#dc3545!important}a.text-danger:focus,a.text-danger:hover{color:#a71d2a!important}.text-light{color:#f8f9fa!important}a.text-light:focus,a.text-light:hover{color:#cbd3da!important}.text-dark{color:#343a40!important}a.text-dark:focus,a.text-dark:hover{color:#121416!important}.text-body{color:#212529!important}.text-muted{color:#6c757d!important}.text-black-50{color:rgba(0,0,0,.5)!important}.text-white-50{color:hsla(0,0%,100%,.5)!important}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.text-decoration-none{text-decoration:none!important}.text-break{word-break:break-word!important;word-wrap:break-word!important}.text-reset{color:inherit!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media print{*,:after,:before{text-shadow:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}a:not(.btn){text-decoration:underline}abbr[title]:after{content:" (" attr(title) ")"}pre{white-space:pre-wrap!important}blockquote,pre{border:1px solid #adb5bd;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}@page{size:a3}.container,body{min-width:992px!important}.navbar{display:none}.badge{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #dee2e6!important}.table-dark{color:inherit}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#dee2e6}.table .thead-dark th{color:inherit;border-color:#dee2e6}} +/*! + * BootstrapVue Custom CSS (https://bootstrap-vue.org) + */.bv-no-focus-ring:focus{outline:none}@media (max-width:575.98px){.bv-d-xs-down-none{display:none!important}}@media (max-width:767.98px){.bv-d-sm-down-none{display:none!important}}@media (max-width:991.98px){.bv-d-md-down-none{display:none!important}}@media (max-width:1199.98px){.bv-d-lg-down-none{display:none!important}}.bv-d-xl-down-none{display:none!important}.form-control.focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;-webkit-box-shadow:0 0 0 .2rem rgba(0,123,255,.25);box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.form-control.focus.is-valid{border-color:#28a745;-webkit-box-shadow:0 0 0 .2rem rgba(40,167,69,.25);box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.form-control.focus.is-invalid{border-color:#dc3545;-webkit-box-shadow:0 0 0 .2rem rgba(220,53,69,.25);box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.b-form-btn-label-control.form-control{background-image:none;padding:0}.input-group .b-form-btn-label-control.form-control{padding:0}.b-form-btn-label-control.form-control[dir=rtl],[dir=rtl] .b-form-btn-label-control.form-control{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.b-form-btn-label-control.form-control[dir=rtl]>label,[dir=rtl] .b-form-btn-label-control.form-control>label{text-align:right}.b-form-btn-label-control.form-control>.btn{line-height:1;font-size:inherit;-webkit-box-shadow:none!important;box-shadow:none!important;border:0}.b-form-btn-label-control.form-control>.btn:disabled{pointer-events:none}.b-form-btn-label-control.form-control.is-valid>.btn{color:#28a745}.b-form-btn-label-control.form-control.is-invalid>.btn{color:#dc3545}.b-form-btn-label-control.form-control>.dropdown-menu{padding:.5rem}.b-form-btn-label-control.form-control>label{outline:0;padding-left:.25rem;margin:0;border:0;font-size:inherit;cursor:pointer;min-height:calc(1.5em + .75rem)}.b-form-btn-label-control.form-control>label.form-control-sm{min-height:calc(1.5em + .5rem)}.b-form-btn-label-control.form-control>label.form-control-lg{min-height:calc(1.5em + 1rem)}.input-group.input-group-sm .b-form-btn-label-control.form-control>label{min-height:calc(1.5em + .5rem);padding-top:.25rem;padding-bottom:.25rem}.input-group.input-group-lg .b-form-btn-label-control.form-control>label{min-height:calc(1.5em + 1rem);padding-top:.5rem;padding-bottom:.5rem}.b-form-btn-label-control.form-control[aria-disabled=true],.b-form-btn-label-control.form-control[aria-readonly=true]{background-color:#e9ecef;opacity:1}.b-form-btn-label-control.form-control[aria-disabled=true]{pointer-events:none}.b-form-btn-label-control.form-control[aria-disabled=true]>label{cursor:default}.b-form-btn-label-control.btn-group>.dropdown-menu{padding:.5rem}.b-avatar{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;vertical-align:middle;width:2.5rem;height:2.5rem;font-size:inherit;font-weight:400;line-height:1;max-width:100%;max-height:auto;text-align:center;overflow:visible;position:relative;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out}.b-avatar:focus{outline:0}.b-avatar.btn,.b-avatar[href]{padding:0;border:0}.b-avatar.btn .b-avatar-img img,.b-avatar[href] .b-avatar-img img{transition:-webkit-transform .15s ease-in-out;-webkit-transition:-webkit-transform .15s ease-in-out;transition:transform .15s ease-in-out;transition:transform .15s ease-in-out,-webkit-transform .15s ease-in-out}.b-avatar.btn:not(:disabled):not(.disabled),.b-avatar[href]:not(:disabled):not(.disabled){cursor:pointer}.b-avatar.btn:not(:disabled):not(.disabled):hover .b-avatar-img img,.b-avatar[href]:not(:disabled):not(.disabled):hover .b-avatar-img img{-webkit-transform:scale(1.15);transform:scale(1.15)}.b-avatar.disabled,.b-avatar:disabled,.b-avatar[disabled]{opacity:.65;pointer-events:none}.b-avatar .b-avatar-custom,.b-avatar .b-avatar-img,.b-avatar .b-avatar-text{border-radius:inherit;width:100%;height:100%;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-mask-image:radial-gradient(#fff,#000);mask-image:radial-gradient(#fff,#000)}.b-avatar .b-avatar-text{text-transform:uppercase;white-space:nowrap}.b-avatar[href]{text-decoration:none}.b-avatar>.b-icon{width:60%;height:auto;max-width:100%}.b-avatar .b-avatar-img img{width:100%;height:100%;max-height:auto;border-radius:inherit;-o-object-fit:cover;object-fit:cover}.b-avatar .b-avatar-badge{position:absolute;min-height:1.5em;min-width:1.5em;padding:.25em;line-height:1;border-radius:10em;font-size:70%;font-weight:700;z-index:5}.b-avatar-sm{width:1.5rem;height:1.5rem}.b-avatar-sm .b-avatar-text{font-size:.6rem}.b-avatar-sm .b-avatar-badge{font-size:.42rem}.b-avatar-lg{width:3.5rem;height:3.5rem}.b-avatar-lg .b-avatar-text{font-size:1.4rem}.b-avatar-lg .b-avatar-badge{font-size:.98rem}.b-avatar-group .b-avatar-group-inner{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.b-avatar-group .b-avatar{border:1px solid #dee2e6}.b-avatar-group .btn.b-avatar:hover:not(.disabled):not(disabled),.b-avatar-group a.b-avatar:hover:not(.disabled):not(disabled){z-index:3}.b-calendar{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.b-calendar .b-calendar-inner{min-width:250px}.b-calendar .b-calendar-header,.b-calendar .b-calendar-nav{margin-bottom:.25rem}.b-calendar .b-calendar-nav .btn{padding:.25rem}.b-calendar output{padding:.25rem;font-size:80%}.b-calendar output.readonly{background-color:#e9ecef;opacity:1}.b-calendar .b-calendar-footer{margin-top:.5rem}.b-calendar .b-calendar-grid{padding:0;margin:0;overflow:hidden}.b-calendar .b-calendar-grid .row{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.b-calendar .b-calendar-grid-caption{padding:.25rem}.b-calendar .b-calendar-grid-body .col[data-date] .btn{width:32px;height:32px;font-size:14px;line-height:1;margin:3px auto;padding:9px 0}.b-calendar .btn.disabled,.b-calendar .btn:disabled,.b-calendar .btn[aria-disabled=true]{cursor:default;pointer-events:none}.card-img-left{border-top-left-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}.card-img-right{border-top-right-radius:calc(.25rem - 1px);border-bottom-right-radius:calc(.25rem - 1px)}.dropdown.dropleft .dropdown-toggle.dropdown-toggle-no-caret:before,.dropdown:not(.dropleft) .dropdown-toggle.dropdown-toggle-no-caret:after{display:none!important}.dropdown .dropdown-menu:focus{outline:none}.b-dropdown-form{display:inline-block;padding:.25rem 1.5rem;width:100%;clear:both;font-weight:400}.b-dropdown-form:focus{outline:1px dotted!important;outline:5px auto -webkit-focus-ring-color!important}.b-dropdown-form.disabled,.b-dropdown-form:disabled{outline:0!important;color:#6c757d;pointer-events:none}.b-dropdown-text{display:inline-block;padding:.25rem 1.5rem;margin-bottom:0;width:100%;clear:both;font-weight:lighter}.custom-checkbox.b-custom-control-lg,.input-group-lg .custom-checkbox{font-size:1.25rem;line-height:1.5;padding-left:1.875rem}.custom-checkbox.b-custom-control-lg .custom-control-label:before,.input-group-lg .custom-checkbox .custom-control-label:before{top:.3125rem;left:-1.875rem;width:1.25rem;height:1.25rem;border-radius:.3rem}.custom-checkbox.b-custom-control-lg .custom-control-label:after,.input-group-lg .custom-checkbox .custom-control-label:after{top:.3125rem;left:-1.875rem;width:1.25rem;height:1.25rem;background-size:50% 50%}.custom-checkbox.b-custom-control-sm,.input-group-sm .custom-checkbox{font-size:.875rem;line-height:1.5;padding-left:1.3125rem}.custom-checkbox.b-custom-control-sm .custom-control-label:before,.input-group-sm .custom-checkbox .custom-control-label:before{top:.21875rem;left:-1.3125rem;width:.875rem;height:.875rem;border-radius:.2rem}.custom-checkbox.b-custom-control-sm .custom-control-label:after,.input-group-sm .custom-checkbox .custom-control-label:after{top:.21875rem;left:-1.3125rem;width:.875rem;height:.875rem;background-size:50% 50%}.custom-switch.b-custom-control-lg,.input-group-lg .custom-switch{padding-left:2.8125rem}.custom-switch.b-custom-control-lg .custom-control-label,.input-group-lg .custom-switch .custom-control-label{font-size:1.25rem;line-height:1.5}.custom-switch.b-custom-control-lg .custom-control-label:before,.input-group-lg .custom-switch .custom-control-label:before{top:.3125rem;height:1.25rem;left:-2.8125rem;width:2.1875rem;border-radius:.625rem}.custom-switch.b-custom-control-lg .custom-control-label:after,.input-group-lg .custom-switch .custom-control-label:after{top:calc(.3125rem + 2px);left:calc(-2.8125rem + 2px);width:calc(1.25rem - 4px);height:calc(1.25rem - 4px);border-radius:.625rem;background-size:50% 50%}.custom-switch.b-custom-control-lg .custom-control-input:checked~.custom-control-label:after,.input-group-lg .custom-switch .custom-control-input:checked~.custom-control-label:after{-webkit-transform:translateX(.9375rem);transform:translateX(.9375rem)}.custom-switch.b-custom-control-sm,.input-group-sm .custom-switch{padding-left:1.96875rem}.custom-switch.b-custom-control-sm .custom-control-label,.input-group-sm .custom-switch .custom-control-label{font-size:.875rem;line-height:1.5}.custom-switch.b-custom-control-sm .custom-control-label:before,.input-group-sm .custom-switch .custom-control-label:before{top:.21875rem;left:-1.96875rem;width:1.53125rem;height:.875rem;border-radius:.4375rem}.custom-switch.b-custom-control-sm .custom-control-label:after,.input-group-sm .custom-switch .custom-control-label:after{top:calc(.21875rem + 2px);left:calc(-1.96875rem + 2px);width:calc(.875rem - 4px);height:calc(.875rem - 4px);border-radius:.4375rem;background-size:50% 50%}.custom-switch.b-custom-control-sm .custom-control-input:checked~.custom-control-label:after,.input-group-sm .custom-switch .custom-control-input:checked~.custom-control-label:after{-webkit-transform:translateX(.65625rem);transform:translateX(.65625rem)}.input-group>.input-group-append:last-child>.btn-group:not(:last-child):not(.dropdown-toggle)>.btn,.input-group>.input-group-append:not(:last-child)>.btn-group>.btn,.input-group>.input-group-prepend>.btn-group>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.input-group-append>.btn-group>.btn,.input-group>.input-group-prepend:first-child>.btn-group:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.btn-group>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.custom-file-label{white-space:nowrap;overflow-x:hidden}.b-custom-control-lg.custom-file,.b-custom-control-lg .custom-file-input,.b-custom-control-lg .custom-file-label,.input-group-lg.custom-file,.input-group-lg .custom-file-input,.input-group-lg .custom-file-label{font-size:1.25rem;height:calc(1.5em + 1rem + 2px)}.b-custom-control-lg .custom-file-label,.b-custom-control-lg .custom-file-label:after,.input-group-lg .custom-file-label,.input-group-lg .custom-file-label:after{padding:.5rem 1rem;line-height:1.5}.b-custom-control-lg .custom-file-label,.input-group-lg .custom-file-label{border-radius:.3rem}.b-custom-control-lg .custom-file-label:after,.input-group-lg .custom-file-label:after{font-size:inherit;height:calc(1.5em + 1rem);border-radius:0 .3rem .3rem 0}.b-custom-control-sm.custom-file,.b-custom-control-sm .custom-file-input,.b-custom-control-sm .custom-file-label,.input-group-sm.custom-file,.input-group-sm .custom-file-input,.input-group-sm .custom-file-label{font-size:.875rem;height:calc(1.5em + .5rem + 2px)}.b-custom-control-sm .custom-file-label,.b-custom-control-sm .custom-file-label:after,.input-group-sm .custom-file-label,.input-group-sm .custom-file-label:after{padding:.25rem .5rem;line-height:1.5}.b-custom-control-sm .custom-file-label,.input-group-sm .custom-file-label{border-radius:.2rem}.b-custom-control-sm .custom-file-label:after,.input-group-sm .custom-file-label:after{font-size:inherit;height:calc(1.5em + .5rem);border-radius:0 .2rem .2rem 0}.form-control.is-invalid,.form-control.is-valid,.was-validated .form-control:invalid,.was-validated .form-control:valid{background-position:right calc(.375em + .1875rem) center}input[type=color].form-control{height:calc(1.5em + .75rem + 2px);padding:.125rem .25rem}.input-group-sm input[type=color].form-control,input[type=color].form-control.form-control-sm{height:calc(1.5em + .5rem + 2px);padding:.125rem .25rem}.input-group-lg input[type=color].form-control,input[type=color].form-control.form-control-lg{height:calc(1.5em + 1rem + 2px);padding:.125rem .25rem}input[type=color].form-control:disabled{background-color:#adb5bd;opacity:.65}.input-group>.custom-range{position:relative;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;width:1%;margin-bottom:0}.input-group>.custom-file+.custom-range,.input-group>.custom-range+.custom-file,.input-group>.custom-range+.custom-range,.input-group>.custom-range+.custom-select,.input-group>.custom-range+.form-control,.input-group>.custom-range+.form-control-plaintext,.input-group>.custom-select+.custom-range,.input-group>.form-control+.custom-range,.input-group>.form-control-plaintext+.custom-range{margin-left:-1px}.input-group>.custom-range:focus{z-index:3}.input-group>.custom-range:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-range:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.custom-range{padding:0 .75rem;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;height:calc(1.5em + .75rem + 2px);border-radius:.25rem;-webkit-transition:border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.input-group>.custom-range{-webkit-transition:none;transition:none}}.input-group>.custom-range:focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;-webkit-box-shadow:0 0 0 .2rem rgba(0,123,255,.25);box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.input-group>.custom-range:disabled,.input-group>.custom-range[readonly]{background-color:#e9ecef}.input-group-lg>.custom-range{height:calc(1.5em + 1rem + 2px);padding:0 1rem;border-radius:.3rem}.input-group-sm>.custom-range{height:calc(1.5em + .5rem + 2px);padding:0 .5rem;border-radius:.2rem}.input-group .custom-range.is-valid,.was-validated .input-group .custom-range:valid{border-color:#28a745}.input-group .custom-range.is-valid:focus,.was-validated .input-group .custom-range:valid:focus{border-color:#28a745;-webkit-box-shadow:0 0 0 .2rem rgba(40,167,69,.25);box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.custom-range.is-valid:focus::-webkit-slider-thumb,.was-validated .custom-range:valid:focus::-webkit-slider-thumb{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 .2rem #9be7ac;box-shadow:0 0 0 1px #fff,0 0 0 .2rem #9be7ac}.custom-range.is-valid:focus::-moz-range-thumb,.was-validated .custom-range:valid:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #9be7ac}.custom-range.is-valid:focus::-ms-thumb,.was-validated .custom-range:valid:focus::-ms-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #9be7ac}.custom-range.is-valid::-webkit-slider-thumb,.was-validated .custom-range:valid::-webkit-slider-thumb{background-color:#28a745;background-image:none}.custom-range.is-valid::-webkit-slider-thumb:active,.was-validated .custom-range:valid::-webkit-slider-thumb:active{background-color:#9be7ac;background-image:none}.custom-range.is-valid::-webkit-slider-runnable-track,.was-validated .custom-range:valid::-webkit-slider-runnable-track{background-color:rgba(40,167,69,.35)}.custom-range.is-valid::-moz-range-thumb,.was-validated .custom-range:valid::-moz-range-thumb{background-color:#28a745;background-image:none}.custom-range.is-valid::-moz-range-thumb:active,.was-validated .custom-range:valid::-moz-range-thumb:active{background-color:#9be7ac;background-image:none}.custom-range.is-valid::-moz-range-track,.was-validated .custom-range:valid::-moz-range-track{background:rgba(40,167,69,.35)}.custom-range.is-valid~.valid-feedback,.custom-range.is-valid~.valid-tooltip,.was-validated .custom-range:valid~.valid-feedback,.was-validated .custom-range:valid~.valid-tooltip{display:block}.custom-range.is-valid::-ms-thumb,.was-validated .custom-range:valid::-ms-thumb{background-color:#28a745;background-image:none}.custom-range.is-valid::-ms-thumb:active,.was-validated .custom-range:valid::-ms-thumb:active{background-color:#9be7ac;background-image:none}.custom-range.is-valid::-ms-track-lower,.custom-range.is-valid::-ms-track-upper,.was-validated .custom-range:valid::-ms-track-lower,.was-validated .custom-range:valid::-ms-track-upper{background:rgba(40,167,69,.35)}.input-group .custom-range.is-invalid,.was-validated .input-group .custom-range:invalid{border-color:#dc3545}.input-group .custom-range.is-invalid:focus,.was-validated .input-group .custom-range:invalid:focus{border-color:#dc3545;-webkit-box-shadow:0 0 0 .2rem rgba(220,53,69,.25);box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.custom-range.is-invalid:focus::-webkit-slider-thumb,.was-validated .custom-range:invalid:focus::-webkit-slider-thumb{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 .2rem #f6cdd1;box-shadow:0 0 0 1px #fff,0 0 0 .2rem #f6cdd1}.custom-range.is-invalid:focus::-moz-range-thumb,.was-validated .custom-range:invalid:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #f6cdd1}.custom-range.is-invalid:focus::-ms-thumb,.was-validated .custom-range:invalid:focus::-ms-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .2rem #f6cdd1}.custom-range.is-invalid::-webkit-slider-thumb,.was-validated .custom-range:invalid::-webkit-slider-thumb{background-color:#dc3545;background-image:none}.custom-range.is-invalid::-webkit-slider-thumb:active,.was-validated .custom-range:invalid::-webkit-slider-thumb:active{background-color:#f6cdd1;background-image:none}.custom-range.is-invalid::-webkit-slider-runnable-track,.was-validated .custom-range:invalid::-webkit-slider-runnable-track{background-color:rgba(220,53,69,.35)}.custom-range.is-invalid::-moz-range-thumb,.was-validated .custom-range:invalid::-moz-range-thumb{background-color:#dc3545;background-image:none}.custom-range.is-invalid::-moz-range-thumb:active,.was-validated .custom-range:invalid::-moz-range-thumb:active{background-color:#f6cdd1;background-image:none}.custom-range.is-invalid::-moz-range-track,.was-validated .custom-range:invalid::-moz-range-track{background:rgba(220,53,69,.35)}.custom-range.is-invalid~.invalid-feedback,.custom-range.is-invalid~.invalid-tooltip,.was-validated .custom-range:invalid~.invalid-feedback,.was-validated .custom-range:invalid~.invalid-tooltip{display:block}.custom-range.is-invalid::-ms-thumb,.was-validated .custom-range:invalid::-ms-thumb{background-color:#dc3545;background-image:none}.custom-range.is-invalid::-ms-thumb:active,.was-validated .custom-range:invalid::-ms-thumb:active{background-color:#f6cdd1;background-image:none}.custom-range.is-invalid::-ms-track-lower,.custom-range.is-invalid::-ms-track-upper,.was-validated .custom-range:invalid::-ms-track-lower,.was-validated .custom-range:invalid::-ms-track-upper{background:rgba(220,53,69,.35)}.custom-radio.b-custom-control-lg,.input-group-lg .custom-radio{font-size:1.25rem;line-height:1.5;padding-left:1.875rem}.custom-radio.b-custom-control-lg .custom-control-label:before,.input-group-lg .custom-radio .custom-control-label:before{top:.3125rem;left:-1.875rem;width:1.25rem;height:1.25rem;border-radius:50%}.custom-radio.b-custom-control-lg .custom-control-label:after,.input-group-lg .custom-radio .custom-control-label:after{top:.3125rem;left:-1.875rem;width:1.25rem;height:1.25rem;background:no-repeat 50%/50% 50%}.custom-radio.b-custom-control-sm,.input-group-sm .custom-radio{font-size:.875rem;line-height:1.5;padding-left:1.3125rem}.custom-radio.b-custom-control-sm .custom-control-label:before,.input-group-sm .custom-radio .custom-control-label:before{top:.21875rem;left:-1.3125rem;width:.875rem;height:.875rem;border-radius:50%}.custom-radio.b-custom-control-sm .custom-control-label:after,.input-group-sm .custom-radio .custom-control-label:after{top:.21875rem;left:-1.3125rem;width:.875rem;height:.875rem;background:no-repeat 50%/50% 50%}.b-rating{text-align:center}.b-rating.d-inline-flex{width:auto}.b-rating .b-rating-star,.b-rating .b-rating-value{padding:0 .25em}.b-rating .b-rating-value{min-width:2.5em}.b-rating .b-rating-star{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;outline:0}.b-rating .b-rating-star,.b-rating .b-rating-star .b-rating-icon{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.b-rating .b-rating-star .b-rating-icon{-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out}.b-rating.disabled,.b-rating:disabled{background-color:#e9ecef;color:#6c757d}.b-rating:not(.disabled):not(.readonly) .b-rating-star{cursor:pointer}.b-rating:not(.disabled):not(.readonly) .b-rating-star:hover .b-rating-icon,.b-rating:not(.disabled):not(.readonly):focus:not(:hover) .b-rating-star.focused .b-rating-icon{-webkit-transform:scale(1.5);transform:scale(1.5)}.b-rating[dir=rtl] .b-rating-star-half{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.b-form-spinbutton{text-align:center;overflow:hidden;background-image:none;padding:0}.b-form-spinbutton[dir=rtl]:not(.flex-column),[dir=rtl] .b-form-spinbutton:not(.flex-column){-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.b-form-spinbutton output{font-size:inherit;outline:0;border:0;background-color:transparent;width:auto;margin:0;padding:0 .25rem}.b-form-spinbutton output>bdi,.b-form-spinbutton output>div{display:block;min-width:2.25em;height:1.5em}.b-form-spinbutton.flex-column{height:auto;width:auto}.b-form-spinbutton.flex-column output{margin:0 .25rem;padding:.25rem 0}.b-form-spinbutton:not(.d-inline-flex):not(.flex-column){output-width:100%}.b-form-spinbutton.d-inline-flex:not(.flex-column){width:auto}.b-form-spinbutton .btn{line-height:1;-webkit-box-shadow:none!important;box-shadow:none!important}.b-form-spinbutton .btn:disabled{pointer-events:none}.b-form-spinbutton .btn:hover:not(:disabled)>div>.b-icon{-webkit-transform:scale(1.25);transform:scale(1.25)}.b-form-spinbutton.disabled,.b-form-spinbutton.readonly{background-color:#e9ecef}.b-form-spinbutton.disabled{pointer-events:none}.b-form-tags .b-form-tags-list{margin-top:-.25rem}.b-form-tags .b-form-tags-list .b-form-tag,.b-form-tags .b-form-tags-list .b-from-tags-field{margin-top:.25rem}.b-form-tags.focus{color:#495057;background-color:#fff;border-color:#80bdff;outline:0;-webkit-box-shadow:0 0 0 .2rem rgba(0,123,255,.25);box-shadow:0 0 0 .2rem rgba(0,123,255,.25)}.b-form-tags.focus.is-valid{border-color:#28a745;-webkit-box-shadow:0 0 0 .2rem rgba(40,167,69,.25);box-shadow:0 0 0 .2rem rgba(40,167,69,.25)}.b-form-tags.focus.is-invalid{border-color:#dc3545;-webkit-box-shadow:0 0 0 .2rem rgba(220,53,69,.25);box-shadow:0 0 0 .2rem rgba(220,53,69,.25)}.b-form-tags.disabled{background-color:#e9ecef}.b-form-tag{font-size:75%;font-weight:400;line-height:1.5;margin-right:.25rem}.b-form-tag.disabled{opacity:.75}.b-form-tag>button.b-form-tag-remove{color:inherit;font-size:125%;line-height:1;float:none;margin-left:.25rem}.form-control-lg .b-form-tag,.form-control-sm .b-form-tag{line-height:1.5}.modal-backdrop{opacity:.5}.b-pagination-pills .page-item .page-link{border-radius:50rem!important;margin-left:.25rem;line-height:1}.b-pagination-pills .page-item:first-child .page-link{margin-left:0}.popover.b-popover{display:block;opacity:1;outline:0}.popover.b-popover.fade:not(.show){opacity:0}.popover.b-popover.show{opacity:1}.b-popover-primary.popover{background-color:#cce5ff;border-color:#b8daff}.b-popover-primary.bs-popover-auto[x-placement^=top]>.arrow:before,.b-popover-primary.bs-popover-top>.arrow:before{border-top-color:#b8daff}.b-popover-primary.bs-popover-auto[x-placement^=top]>.arrow:after,.b-popover-primary.bs-popover-top>.arrow:after{border-top-color:#cce5ff}.b-popover-primary.bs-popover-auto[x-placement^=right]>.arrow:before,.b-popover-primary.bs-popover-right>.arrow:before{border-right-color:#b8daff}.b-popover-primary.bs-popover-auto[x-placement^=right]>.arrow:after,.b-popover-primary.bs-popover-right>.arrow:after{border-right-color:#cce5ff}.b-popover-primary.bs-popover-auto[x-placement^=bottom]>.arrow:before,.b-popover-primary.bs-popover-bottom>.arrow:before{border-bottom-color:#b8daff}.b-popover-primary.bs-popover-auto[x-placement^=bottom] .popover-header:before,.b-popover-primary.bs-popover-auto[x-placement^=bottom]>.arrow:after,.b-popover-primary.bs-popover-bottom .popover-header:before,.b-popover-primary.bs-popover-bottom>.arrow:after{border-bottom-color:#bdddff}.b-popover-primary.bs-popover-auto[x-placement^=left]>.arrow:before,.b-popover-primary.bs-popover-left>.arrow:before{border-left-color:#b8daff}.b-popover-primary.bs-popover-auto[x-placement^=left]>.arrow:after,.b-popover-primary.bs-popover-left>.arrow:after{border-left-color:#cce5ff}.b-popover-primary .popover-header{color:#212529;background-color:#bdddff;border-bottom-color:#a3d0ff}.b-popover-primary .popover-body{color:#004085}.b-popover-secondary.popover{background-color:#e2e3e5;border-color:#d6d8db}.b-popover-secondary.bs-popover-auto[x-placement^=top]>.arrow:before,.b-popover-secondary.bs-popover-top>.arrow:before{border-top-color:#d6d8db}.b-popover-secondary.bs-popover-auto[x-placement^=top]>.arrow:after,.b-popover-secondary.bs-popover-top>.arrow:after{border-top-color:#e2e3e5}.b-popover-secondary.bs-popover-auto[x-placement^=right]>.arrow:before,.b-popover-secondary.bs-popover-right>.arrow:before{border-right-color:#d6d8db}.b-popover-secondary.bs-popover-auto[x-placement^=right]>.arrow:after,.b-popover-secondary.bs-popover-right>.arrow:after{border-right-color:#e2e3e5}.b-popover-secondary.bs-popover-auto[x-placement^=bottom]>.arrow:before,.b-popover-secondary.bs-popover-bottom>.arrow:before{border-bottom-color:#d6d8db}.b-popover-secondary.bs-popover-auto[x-placement^=bottom] .popover-header:before,.b-popover-secondary.bs-popover-auto[x-placement^=bottom]>.arrow:after,.b-popover-secondary.bs-popover-bottom .popover-header:before,.b-popover-secondary.bs-popover-bottom>.arrow:after{border-bottom-color:#dadbde}.b-popover-secondary.bs-popover-auto[x-placement^=left]>.arrow:before,.b-popover-secondary.bs-popover-left>.arrow:before{border-left-color:#d6d8db}.b-popover-secondary.bs-popover-auto[x-placement^=left]>.arrow:after,.b-popover-secondary.bs-popover-left>.arrow:after{border-left-color:#e2e3e5}.b-popover-secondary .popover-header{color:#212529;background-color:#dadbde;border-bottom-color:#ccced2}.b-popover-secondary .popover-body{color:#383d41}.b-popover-success.popover{background-color:#d4edda;border-color:#c3e6cb}.b-popover-success.bs-popover-auto[x-placement^=top]>.arrow:before,.b-popover-success.bs-popover-top>.arrow:before{border-top-color:#c3e6cb}.b-popover-success.bs-popover-auto[x-placement^=top]>.arrow:after,.b-popover-success.bs-popover-top>.arrow:after{border-top-color:#d4edda}.b-popover-success.bs-popover-auto[x-placement^=right]>.arrow:before,.b-popover-success.bs-popover-right>.arrow:before{border-right-color:#c3e6cb}.b-popover-success.bs-popover-auto[x-placement^=right]>.arrow:after,.b-popover-success.bs-popover-right>.arrow:after{border-right-color:#d4edda}.b-popover-success.bs-popover-auto[x-placement^=bottom]>.arrow:before,.b-popover-success.bs-popover-bottom>.arrow:before{border-bottom-color:#c3e6cb}.b-popover-success.bs-popover-auto[x-placement^=bottom] .popover-header:before,.b-popover-success.bs-popover-auto[x-placement^=bottom]>.arrow:after,.b-popover-success.bs-popover-bottom .popover-header:before,.b-popover-success.bs-popover-bottom>.arrow:after{border-bottom-color:#c9e8d1}.b-popover-success.bs-popover-auto[x-placement^=left]>.arrow:before,.b-popover-success.bs-popover-left>.arrow:before{border-left-color:#c3e6cb}.b-popover-success.bs-popover-auto[x-placement^=left]>.arrow:after,.b-popover-success.bs-popover-left>.arrow:after{border-left-color:#d4edda}.b-popover-success .popover-header{color:#212529;background-color:#c9e8d1;border-bottom-color:#b7e1c1}.b-popover-success .popover-body{color:#155724}.b-popover-info.popover{background-color:#d1ecf1;border-color:#bee5eb}.b-popover-info.bs-popover-auto[x-placement^=top]>.arrow:before,.b-popover-info.bs-popover-top>.arrow:before{border-top-color:#bee5eb}.b-popover-info.bs-popover-auto[x-placement^=top]>.arrow:after,.b-popover-info.bs-popover-top>.arrow:after{border-top-color:#d1ecf1}.b-popover-info.bs-popover-auto[x-placement^=right]>.arrow:before,.b-popover-info.bs-popover-right>.arrow:before{border-right-color:#bee5eb}.b-popover-info.bs-popover-auto[x-placement^=right]>.arrow:after,.b-popover-info.bs-popover-right>.arrow:after{border-right-color:#d1ecf1}.b-popover-info.bs-popover-auto[x-placement^=bottom]>.arrow:before,.b-popover-info.bs-popover-bottom>.arrow:before{border-bottom-color:#bee5eb}.b-popover-info.bs-popover-auto[x-placement^=bottom] .popover-header:before,.b-popover-info.bs-popover-auto[x-placement^=bottom]>.arrow:after,.b-popover-info.bs-popover-bottom .popover-header:before,.b-popover-info.bs-popover-bottom>.arrow:after{border-bottom-color:#c5e7ed}.b-popover-info.bs-popover-auto[x-placement^=left]>.arrow:before,.b-popover-info.bs-popover-left>.arrow:before{border-left-color:#bee5eb}.b-popover-info.bs-popover-auto[x-placement^=left]>.arrow:after,.b-popover-info.bs-popover-left>.arrow:after{border-left-color:#d1ecf1}.b-popover-info .popover-header{color:#212529;background-color:#c5e7ed;border-bottom-color:#b2dfe7}.b-popover-info .popover-body{color:#0c5460}.b-popover-warning.popover{background-color:#fff3cd;border-color:#ffeeba}.b-popover-warning.bs-popover-auto[x-placement^=top]>.arrow:before,.b-popover-warning.bs-popover-top>.arrow:before{border-top-color:#ffeeba}.b-popover-warning.bs-popover-auto[x-placement^=top]>.arrow:after,.b-popover-warning.bs-popover-top>.arrow:after{border-top-color:#fff3cd}.b-popover-warning.bs-popover-auto[x-placement^=right]>.arrow:before,.b-popover-warning.bs-popover-right>.arrow:before{border-right-color:#ffeeba}.b-popover-warning.bs-popover-auto[x-placement^=right]>.arrow:after,.b-popover-warning.bs-popover-right>.arrow:after{border-right-color:#fff3cd}.b-popover-warning.bs-popover-auto[x-placement^=bottom]>.arrow:before,.b-popover-warning.bs-popover-bottom>.arrow:before{border-bottom-color:#ffeeba}.b-popover-warning.bs-popover-auto[x-placement^=bottom] .popover-header:before,.b-popover-warning.bs-popover-auto[x-placement^=bottom]>.arrow:after,.b-popover-warning.bs-popover-bottom .popover-header:before,.b-popover-warning.bs-popover-bottom>.arrow:after{border-bottom-color:#ffefbe}.b-popover-warning.bs-popover-auto[x-placement^=left]>.arrow:before,.b-popover-warning.bs-popover-left>.arrow:before{border-left-color:#ffeeba}.b-popover-warning.bs-popover-auto[x-placement^=left]>.arrow:after,.b-popover-warning.bs-popover-left>.arrow:after{border-left-color:#fff3cd}.b-popover-warning .popover-header{color:#212529;background-color:#ffefbe;border-bottom-color:#ffe9a4}.b-popover-warning .popover-body{color:#856404}.b-popover-danger.popover{background-color:#f8d7da;border-color:#f5c6cb}.b-popover-danger.bs-popover-auto[x-placement^=top]>.arrow:before,.b-popover-danger.bs-popover-top>.arrow:before{border-top-color:#f5c6cb}.b-popover-danger.bs-popover-auto[x-placement^=top]>.arrow:after,.b-popover-danger.bs-popover-top>.arrow:after{border-top-color:#f8d7da}.b-popover-danger.bs-popover-auto[x-placement^=right]>.arrow:before,.b-popover-danger.bs-popover-right>.arrow:before{border-right-color:#f5c6cb}.b-popover-danger.bs-popover-auto[x-placement^=right]>.arrow:after,.b-popover-danger.bs-popover-right>.arrow:after{border-right-color:#f8d7da}.b-popover-danger.bs-popover-auto[x-placement^=bottom]>.arrow:before,.b-popover-danger.bs-popover-bottom>.arrow:before{border-bottom-color:#f5c6cb}.b-popover-danger.bs-popover-auto[x-placement^=bottom] .popover-header:before,.b-popover-danger.bs-popover-auto[x-placement^=bottom]>.arrow:after,.b-popover-danger.bs-popover-bottom .popover-header:before,.b-popover-danger.bs-popover-bottom>.arrow:after{border-bottom-color:#f6cace}.b-popover-danger.bs-popover-auto[x-placement^=left]>.arrow:before,.b-popover-danger.bs-popover-left>.arrow:before{border-left-color:#f5c6cb}.b-popover-danger.bs-popover-auto[x-placement^=left]>.arrow:after,.b-popover-danger.bs-popover-left>.arrow:after{border-left-color:#f8d7da}.b-popover-danger .popover-header{color:#212529;background-color:#f6cace;border-bottom-color:#f2b4ba}.b-popover-danger .popover-body{color:#721c24}.b-popover-light.popover{background-color:#fefefe;border-color:#fdfdfe}.b-popover-light.bs-popover-auto[x-placement^=top]>.arrow:before,.b-popover-light.bs-popover-top>.arrow:before{border-top-color:#fdfdfe}.b-popover-light.bs-popover-auto[x-placement^=top]>.arrow:after,.b-popover-light.bs-popover-top>.arrow:after{border-top-color:#fefefe}.b-popover-light.bs-popover-auto[x-placement^=right]>.arrow:before,.b-popover-light.bs-popover-right>.arrow:before{border-right-color:#fdfdfe}.b-popover-light.bs-popover-auto[x-placement^=right]>.arrow:after,.b-popover-light.bs-popover-right>.arrow:after{border-right-color:#fefefe}.b-popover-light.bs-popover-auto[x-placement^=bottom]>.arrow:before,.b-popover-light.bs-popover-bottom>.arrow:before{border-bottom-color:#fdfdfe}.b-popover-light.bs-popover-auto[x-placement^=bottom] .popover-header:before,.b-popover-light.bs-popover-auto[x-placement^=bottom]>.arrow:after,.b-popover-light.bs-popover-bottom .popover-header:before,.b-popover-light.bs-popover-bottom>.arrow:after{border-bottom-color:#f6f6f6}.b-popover-light.bs-popover-auto[x-placement^=left]>.arrow:before,.b-popover-light.bs-popover-left>.arrow:before{border-left-color:#fdfdfe}.b-popover-light.bs-popover-auto[x-placement^=left]>.arrow:after,.b-popover-light.bs-popover-left>.arrow:after{border-left-color:#fefefe}.b-popover-light .popover-header{color:#212529;background-color:#f6f6f6;border-bottom-color:#eaeaea}.b-popover-light .popover-body{color:#818182}.b-popover-dark.popover{background-color:#d6d8d9;border-color:#c6c8ca}.b-popover-dark.bs-popover-auto[x-placement^=top]>.arrow:before,.b-popover-dark.bs-popover-top>.arrow:before{border-top-color:#c6c8ca}.b-popover-dark.bs-popover-auto[x-placement^=top]>.arrow:after,.b-popover-dark.bs-popover-top>.arrow:after{border-top-color:#d6d8d9}.b-popover-dark.bs-popover-auto[x-placement^=right]>.arrow:before,.b-popover-dark.bs-popover-right>.arrow:before{border-right-color:#c6c8ca}.b-popover-dark.bs-popover-auto[x-placement^=right]>.arrow:after,.b-popover-dark.bs-popover-right>.arrow:after{border-right-color:#d6d8d9}.b-popover-dark.bs-popover-auto[x-placement^=bottom]>.arrow:before,.b-popover-dark.bs-popover-bottom>.arrow:before{border-bottom-color:#c6c8ca}.b-popover-dark.bs-popover-auto[x-placement^=bottom] .popover-header:before,.b-popover-dark.bs-popover-auto[x-placement^=bottom]>.arrow:after,.b-popover-dark.bs-popover-bottom .popover-header:before,.b-popover-dark.bs-popover-bottom>.arrow:after{border-bottom-color:#ced0d2}.b-popover-dark.bs-popover-auto[x-placement^=left]>.arrow:before,.b-popover-dark.bs-popover-left>.arrow:before{border-left-color:#c6c8ca}.b-popover-dark.bs-popover-auto[x-placement^=left]>.arrow:after,.b-popover-dark.bs-popover-left>.arrow:after{border-left-color:#d6d8d9}.b-popover-dark .popover-header{color:#212529;background-color:#ced0d2;border-bottom-color:#c1c4c5}.b-popover-dark .popover-body{color:#1b1e21}.b-skeleton-wrapper{cursor:wait}.b-skeleton{position:relative;overflow:hidden;background-color:rgba(0,0,0,.12);cursor:wait}.b-skeleton:before{content:"\00a0"}.b-skeleton-text{height:1rem;margin-bottom:.25rem;border-radius:.25rem}.b-skeleton-button{width:75px;padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem}.b-skeleton-avatar{width:2.5em;height:2.5em;border-radius:50%}.b-skeleton-input{height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;line-height:1.5;border:1px solid #ced4da;border-radius:.25rem}.b-skeleton-icon-wrapper svg{color:rgba(0,0,0,.12)}.b-skeleton-img{height:100%;width:100%}.b-skeleton-animate-wave:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;background:-webkit-gradient(linear,left top,right top,from(transparent),color-stop(hsla(0,0%,100%,.4)),to(transparent));background:linear-gradient(90deg,transparent,hsla(0,0%,100%,.4),transparent);-webkit-animation:b-skeleton-animate-wave 1.75s linear infinite;animation:b-skeleton-animate-wave 1.75s linear infinite}@media (prefers-reduced-motion:reduce){.b-skeleton-animate-wave:after{background:none;-webkit-animation:none;animation:none}}@-webkit-keyframes b-skeleton-animate-wave{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes b-skeleton-animate-wave{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}.b-skeleton-animate-fade{-webkit-animation:b-skeleton-animate-fade .875s ease-in-out infinite alternate;animation:b-skeleton-animate-fade .875s ease-in-out infinite alternate}@media (prefers-reduced-motion:reduce){.b-skeleton-animate-fade{-webkit-animation:none;animation:none}}@-webkit-keyframes b-skeleton-animate-fade{0%{opacity:1}to{opacity:.4}}@keyframes b-skeleton-animate-fade{0%{opacity:1}to{opacity:.4}}.b-skeleton-animate-throb{-webkit-animation:b-skeleton-animate-throb .875s ease-in infinite alternate;animation:b-skeleton-animate-throb .875s ease-in infinite alternate}@media (prefers-reduced-motion:reduce){.b-skeleton-animate-throb{-webkit-animation:none;animation:none}}@-webkit-keyframes b-skeleton-animate-throb{0%{-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:scale(.975);transform:scale(.975)}}@keyframes b-skeleton-animate-throb{0%{-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:scale(.975);transform:scale(.975)}}.b-sidebar-outer{right:0;height:0;overflow:visible;z-index:1035}.b-sidebar-backdrop,.b-sidebar-outer{position:fixed!important;top:0;left:0}.b-sidebar-backdrop{z-index:-1;width:100vw;height:100vh;opacity:.6}.b-sidebar{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:fixed!important;top:0;height:100vh;width:320px;max-width:100%!important;margin:0!important;outline:0;-webkit-transform:translateX(0);transform:translateX(0)}.b-sidebar.slide{transition:-webkit-transform .3s ease-in-out;-webkit-transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;transition:transform .3s ease-in-out,-webkit-transform .3s ease-in-out}@media (prefers-reduced-motion:reduce){.b-sidebar.slide{-webkit-transition:none;transition:none}}.b-sidebar:not(.b-sidebar-right){left:0;right:auto}.b-sidebar:not(.b-sidebar-right).slide:not(.show){-webkit-transform:translateX(-100%);transform:translateX(-100%)}.b-sidebar:not(.b-sidebar-right)>.b-sidebar-header .close{margin-left:auto}.b-sidebar.b-sidebar-right{left:auto;right:0}.b-sidebar.b-sidebar-right.slide:not(.show){-webkit-transform:translateX(100%);transform:translateX(100%)}.b-sidebar.b-sidebar-right>.b-sidebar-header .close{margin-right:auto}.b-sidebar>.b-sidebar-header{font-size:1.5rem;padding:.5rem 1rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center}[dir=rtl] .b-sidebar>.b-sidebar-header{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.b-sidebar>.b-sidebar-header .close{float:none;font-size:1.5rem}.b-sidebar>.b-sidebar-body{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;height:100%;overflow-y:auto}.b-sidebar>.b-sidebar-footer{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0}.table.b-table.b-table-fixed{table-layout:fixed}.table.b-table.b-table-no-border-collapse{border-collapse:separate;border-spacing:0}.table.b-table[aria-busy=true]{opacity:.55}.table.b-table>tbody>tr.b-table-details>td{border-top:none!important}.table.b-table>caption{caption-side:bottom}.table.b-table.b-table-caption-top>caption{caption-side:top!important}.table.b-table>tbody>.table-active,.table.b-table>tbody>.table-active>td,.table.b-table>tbody>.table-active>th{background-color:rgba(0,0,0,.075)}.table.b-table.table-hover>tbody>tr.table-active:hover td,.table.b-table.table-hover>tbody>tr.table-active:hover th{color:#212529;background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.075)),to(rgba(0,0,0,.075)));background-image:linear-gradient(rgba(0,0,0,.075),rgba(0,0,0,.075));background-repeat:no-repeat}.table.b-table>tbody>.bg-active,.table.b-table>tbody>.bg-active>td,.table.b-table>tbody>.bg-active>th{background-color:hsla(0,0%,100%,.075)!important}.table.b-table.table-hover.table-dark>tbody>tr.bg-active:hover td,.table.b-table.table-hover.table-dark>tbody>tr.bg-active:hover th{color:#fff;background-image:-webkit-gradient(linear,left top,left bottom,from(hsla(0,0%,100%,.075)),to(hsla(0,0%,100%,.075)));background-image:linear-gradient(hsla(0,0%,100%,.075),hsla(0,0%,100%,.075));background-repeat:no-repeat}.b-table-sticky-header,.table-responsive,[class*=table-responsive-]{margin-bottom:1rem}.b-table-sticky-header>.table,.table-responsive>.table,[class*=table-responsive-]>.table{margin-bottom:0}.b-table-sticky-header{overflow-y:auto;max-height:300px}@media print{.b-table-sticky-header{overflow-y:visible!important;max-height:none!important}}@supports ((position:-webkit-sticky) or (position:sticky)){.b-table-sticky-header>.table.b-table>thead>tr>th{position:-webkit-sticky;position:sticky;top:0;z-index:2}.b-table-sticky-header>.table.b-table>tbody>tr>.b-table-sticky-column,.b-table-sticky-header>.table.b-table>tfoot>tr>.b-table-sticky-column,.b-table-sticky-header>.table.b-table>thead>tr>.b-table-sticky-column,.table-responsive>.table.b-table>tbody>tr>.b-table-sticky-column,.table-responsive>.table.b-table>tfoot>tr>.b-table-sticky-column,.table-responsive>.table.b-table>thead>tr>.b-table-sticky-column,[class*=table-responsive-]>.table.b-table>tbody>tr>.b-table-sticky-column,[class*=table-responsive-]>.table.b-table>tfoot>tr>.b-table-sticky-column,[class*=table-responsive-]>.table.b-table>thead>tr>.b-table-sticky-column{position:-webkit-sticky;position:sticky;left:0}.b-table-sticky-header>.table.b-table>thead>tr>.b-table-sticky-column,.table-responsive>.table.b-table>thead>tr>.b-table-sticky-column,[class*=table-responsive-]>.table.b-table>thead>tr>.b-table-sticky-column{z-index:5}.b-table-sticky-header>.table.b-table>tbody>tr>.b-table-sticky-column,.b-table-sticky-header>.table.b-table>tfoot>tr>.b-table-sticky-column,.table-responsive>.table.b-table>tbody>tr>.b-table-sticky-column,.table-responsive>.table.b-table>tfoot>tr>.b-table-sticky-column,[class*=table-responsive-]>.table.b-table>tbody>tr>.b-table-sticky-column,[class*=table-responsive-]>.table.b-table>tfoot>tr>.b-table-sticky-column{z-index:2}.table.b-table>tbody>tr>.table-b-table-default,.table.b-table>tfoot>tr>.table-b-table-default,.table.b-table>thead>tr>.table-b-table-default{color:#212529;background-color:#fff}.table.b-table.table-dark>tbody>tr>.bg-b-table-default,.table.b-table.table-dark>tfoot>tr>.bg-b-table-default,.table.b-table.table-dark>thead>tr>.bg-b-table-default{color:#fff;background-color:#343a40}.table.b-table.table-striped>tbody>tr:nth-of-type(odd)>.table-b-table-default{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.05)),to(rgba(0,0,0,.05)));background-image:linear-gradient(rgba(0,0,0,.05),rgba(0,0,0,.05));background-repeat:no-repeat}.table.b-table.table-striped.table-dark>tbody>tr:nth-of-type(odd)>.bg-b-table-default{background-image:-webkit-gradient(linear,left top,left bottom,from(hsla(0,0%,100%,.05)),to(hsla(0,0%,100%,.05)));background-image:linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,.05));background-repeat:no-repeat}.table.b-table.table-hover>tbody>tr:hover>.table-b-table-default{color:#212529;background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.075)),to(rgba(0,0,0,.075)));background-image:linear-gradient(rgba(0,0,0,.075),rgba(0,0,0,.075));background-repeat:no-repeat}.table.b-table.table-hover.table-dark>tbody>tr:hover>.bg-b-table-default{color:#fff;background-image:-webkit-gradient(linear,left top,left bottom,from(hsla(0,0%,100%,.075)),to(hsla(0,0%,100%,.075)));background-image:linear-gradient(hsla(0,0%,100%,.075),hsla(0,0%,100%,.075));background-repeat:no-repeat}}.table.b-table>tfoot>tr>[aria-sort],.table.b-table>thead>tr>[aria-sort]{cursor:pointer;background-image:none;background-repeat:no-repeat;background-size:.65em 1em}.table.b-table>tfoot>tr>[aria-sort]:not(.b-table-sort-icon-left),.table.b-table>thead>tr>[aria-sort]:not(.b-table-sort-icon-left){background-position:right .375rem center;padding-right:calc(.75rem + .65em)}.table.b-table>tfoot>tr>[aria-sort].b-table-sort-icon-left,.table.b-table>thead>tr>[aria-sort].b-table-sort-icon-left{background-position:left .375rem center;padding-left:calc(.75rem + .65em)}.table.b-table>tfoot>tr>[aria-sort=none],.table.b-table>thead>tr>[aria-sort=none]{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath opacity='.3' d='M51 1l25 23 24 22H1l25-22zm0 100l25-23 24-22H1l25 22z'/%3E%3C/svg%3E")}.table.b-table>tfoot>tr>[aria-sort=ascending],.table.b-table>thead>tr>[aria-sort=ascending]{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath d='M51 1l25 23 24 22H1l25-22z'/%3E%3Cpath opacity='.3' d='M51 101l25-23 24-22H1l25 22z'/%3E%3C/svg%3E")}.table.b-table>tfoot>tr>[aria-sort=descending],.table.b-table>thead>tr>[aria-sort=descending]{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath opacity='.3' d='M51 1l25 23 24 22H1l25-22z'/%3E%3Cpath d='M51 101l25-23 24-22H1l25 22z'/%3E%3C/svg%3E")}.table.b-table.table-dark>tfoot>tr>[aria-sort=none],.table.b-table.table-dark>thead>tr>[aria-sort=none],.table.b-table>.thead-dark>tr>[aria-sort=none]{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' opacity='.3' d='M51 1l25 23 24 22H1l25-22zm0 100l25-23 24-22H1l25 22z'/%3E%3C/svg%3E")}.table.b-table.table-dark>tfoot>tr>[aria-sort=ascending],.table.b-table.table-dark>thead>tr>[aria-sort=ascending],.table.b-table>.thead-dark>tr>[aria-sort=ascending]{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M51 1l25 23 24 22H1l25-22z'/%3E%3Cpath fill='%23fff' opacity='.3' d='M51 101l25-23 24-22H1l25 22z'/%3E%3C/svg%3E")}.table.b-table.table-dark>tfoot>tr>[aria-sort=descending],.table.b-table.table-dark>thead>tr>[aria-sort=descending],.table.b-table>.thead-dark>tr>[aria-sort=descending]{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' opacity='.3' d='M51 1l25 23 24 22H1l25-22z'/%3E%3Cpath fill='%23fff' d='M51 101l25-23 24-22H1l25 22z'/%3E%3C/svg%3E")}.table.b-table>tfoot>tr>.table-dark[aria-sort=none],.table.b-table>thead>tr>.table-dark[aria-sort=none]{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' opacity='.3' d='M51 1l25 23 24 22H1l25-22zm0 100l25-23 24-22H1l25 22z'/%3E%3C/svg%3E")}.table.b-table>tfoot>tr>.table-dark[aria-sort=ascending],.table.b-table>thead>tr>.table-dark[aria-sort=ascending]{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M51 1l25 23 24 22H1l25-22z'/%3E%3Cpath fill='%23fff' opacity='.3' d='M51 101l25-23 24-22H1l25 22z'/%3E%3C/svg%3E")}.table.b-table>tfoot>tr>.table-dark[aria-sort=descending],.table.b-table>thead>tr>.table-dark[aria-sort=descending]{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' opacity='.3' d='M51 1l25 23 24 22H1l25-22z'/%3E%3Cpath fill='%23fff' d='M51 101l25-23 24-22H1l25 22z'/%3E%3C/svg%3E")}.table.b-table.table-sm>tfoot>tr>[aria-sort]:not(.b-table-sort-icon-left),.table.b-table.table-sm>thead>tr>[aria-sort]:not(.b-table-sort-icon-left){background-position:right .15rem center;padding-right:calc(.3rem + .65em)}.table.b-table.table-sm>tfoot>tr>[aria-sort].b-table-sort-icon-left,.table.b-table.table-sm>thead>tr>[aria-sort].b-table-sort-icon-left{background-position:left .15rem center;padding-left:calc(.3rem + .65em)}.table.b-table.b-table-selectable:not(.b-table-selectable-no-click)>tbody>tr{cursor:pointer}.table.b-table.b-table-selectable:not(.b-table-selectable-no-click).b-table-selecting.b-table-select-range>tbody>tr{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media (max-width:575.98px){.table.b-table.b-table-stacked-sm{display:block;width:100%}.table.b-table.b-table-stacked-sm>caption,.table.b-table.b-table-stacked-sm>tbody,.table.b-table.b-table-stacked-sm>tbody>tr,.table.b-table.b-table-stacked-sm>tbody>tr>td,.table.b-table.b-table-stacked-sm>tbody>tr>th{display:block}.table.b-table.b-table-stacked-sm>tfoot,.table.b-table.b-table-stacked-sm>tfoot>tr.b-table-bottom-row,.table.b-table.b-table-stacked-sm>tfoot>tr.b-table-top-row,.table.b-table.b-table-stacked-sm>thead,.table.b-table.b-table-stacked-sm>thead>tr.b-table-bottom-row,.table.b-table.b-table-stacked-sm>thead>tr.b-table-top-row{display:none}.table.b-table.b-table-stacked-sm>caption{caption-side:top!important}.table.b-table.b-table-stacked-sm>tbody>tr>[data-label]:before{content:attr(data-label);width:40%;float:left;text-align:right;overflow-wrap:break-word;font-weight:700;font-style:normal;padding:0 .5rem 0 0;margin:0}.table.b-table.b-table-stacked-sm>tbody>tr>[data-label]:after{display:block;clear:both;content:""}.table.b-table.b-table-stacked-sm>tbody>tr>[data-label]>div{display:inline-block;width:60%;padding:0 0 0 .5rem;margin:0}.table.b-table.b-table-stacked-sm>tbody>tr.bottom-row,.table.b-table.b-table-stacked-sm>tbody>tr.top-row{display:none}.table.b-table.b-table-stacked-sm>tbody>tr>:first-child,.table.b-table.b-table-stacked-sm>tbody>tr>[rowspan]+td,.table.b-table.b-table-stacked-sm>tbody>tr>[rowspan]+th{border-top-width:3px}}@media (max-width:767.98px){.table.b-table.b-table-stacked-md{display:block;width:100%}.table.b-table.b-table-stacked-md>caption,.table.b-table.b-table-stacked-md>tbody,.table.b-table.b-table-stacked-md>tbody>tr,.table.b-table.b-table-stacked-md>tbody>tr>td,.table.b-table.b-table-stacked-md>tbody>tr>th{display:block}.table.b-table.b-table-stacked-md>tfoot,.table.b-table.b-table-stacked-md>tfoot>tr.b-table-bottom-row,.table.b-table.b-table-stacked-md>tfoot>tr.b-table-top-row,.table.b-table.b-table-stacked-md>thead,.table.b-table.b-table-stacked-md>thead>tr.b-table-bottom-row,.table.b-table.b-table-stacked-md>thead>tr.b-table-top-row{display:none}.table.b-table.b-table-stacked-md>caption{caption-side:top!important}.table.b-table.b-table-stacked-md>tbody>tr>[data-label]:before{content:attr(data-label);width:40%;float:left;text-align:right;overflow-wrap:break-word;font-weight:700;font-style:normal;padding:0 .5rem 0 0;margin:0}.table.b-table.b-table-stacked-md>tbody>tr>[data-label]:after{display:block;clear:both;content:""}.table.b-table.b-table-stacked-md>tbody>tr>[data-label]>div{display:inline-block;width:60%;padding:0 0 0 .5rem;margin:0}.table.b-table.b-table-stacked-md>tbody>tr.bottom-row,.table.b-table.b-table-stacked-md>tbody>tr.top-row{display:none}.table.b-table.b-table-stacked-md>tbody>tr>:first-child,.table.b-table.b-table-stacked-md>tbody>tr>[rowspan]+td,.table.b-table.b-table-stacked-md>tbody>tr>[rowspan]+th{border-top-width:3px}}@media (max-width:991.98px){.table.b-table.b-table-stacked-lg{display:block;width:100%}.table.b-table.b-table-stacked-lg>caption,.table.b-table.b-table-stacked-lg>tbody,.table.b-table.b-table-stacked-lg>tbody>tr,.table.b-table.b-table-stacked-lg>tbody>tr>td,.table.b-table.b-table-stacked-lg>tbody>tr>th{display:block}.table.b-table.b-table-stacked-lg>tfoot,.table.b-table.b-table-stacked-lg>tfoot>tr.b-table-bottom-row,.table.b-table.b-table-stacked-lg>tfoot>tr.b-table-top-row,.table.b-table.b-table-stacked-lg>thead,.table.b-table.b-table-stacked-lg>thead>tr.b-table-bottom-row,.table.b-table.b-table-stacked-lg>thead>tr.b-table-top-row{display:none}.table.b-table.b-table-stacked-lg>caption{caption-side:top!important}.table.b-table.b-table-stacked-lg>tbody>tr>[data-label]:before{content:attr(data-label);width:40%;float:left;text-align:right;overflow-wrap:break-word;font-weight:700;font-style:normal;padding:0 .5rem 0 0;margin:0}.table.b-table.b-table-stacked-lg>tbody>tr>[data-label]:after{display:block;clear:both;content:""}.table.b-table.b-table-stacked-lg>tbody>tr>[data-label]>div{display:inline-block;width:60%;padding:0 0 0 .5rem;margin:0}.table.b-table.b-table-stacked-lg>tbody>tr.bottom-row,.table.b-table.b-table-stacked-lg>tbody>tr.top-row{display:none}.table.b-table.b-table-stacked-lg>tbody>tr>:first-child,.table.b-table.b-table-stacked-lg>tbody>tr>[rowspan]+td,.table.b-table.b-table-stacked-lg>tbody>tr>[rowspan]+th{border-top-width:3px}}@media (max-width:1199.98px){.table.b-table.b-table-stacked-xl{display:block;width:100%}.table.b-table.b-table-stacked-xl>caption,.table.b-table.b-table-stacked-xl>tbody,.table.b-table.b-table-stacked-xl>tbody>tr,.table.b-table.b-table-stacked-xl>tbody>tr>td,.table.b-table.b-table-stacked-xl>tbody>tr>th{display:block}.table.b-table.b-table-stacked-xl>tfoot,.table.b-table.b-table-stacked-xl>tfoot>tr.b-table-bottom-row,.table.b-table.b-table-stacked-xl>tfoot>tr.b-table-top-row,.table.b-table.b-table-stacked-xl>thead,.table.b-table.b-table-stacked-xl>thead>tr.b-table-bottom-row,.table.b-table.b-table-stacked-xl>thead>tr.b-table-top-row{display:none}.table.b-table.b-table-stacked-xl>caption{caption-side:top!important}.table.b-table.b-table-stacked-xl>tbody>tr>[data-label]:before{content:attr(data-label);width:40%;float:left;text-align:right;overflow-wrap:break-word;font-weight:700;font-style:normal;padding:0 .5rem 0 0;margin:0}.table.b-table.b-table-stacked-xl>tbody>tr>[data-label]:after{display:block;clear:both;content:""}.table.b-table.b-table-stacked-xl>tbody>tr>[data-label]>div{display:inline-block;width:60%;padding:0 0 0 .5rem;margin:0}.table.b-table.b-table-stacked-xl>tbody>tr.bottom-row,.table.b-table.b-table-stacked-xl>tbody>tr.top-row{display:none}.table.b-table.b-table-stacked-xl>tbody>tr>:first-child,.table.b-table.b-table-stacked-xl>tbody>tr>[rowspan]+td,.table.b-table.b-table-stacked-xl>tbody>tr>[rowspan]+th{border-top-width:3px}}.table.b-table.b-table-stacked{display:block;width:100%}.table.b-table.b-table-stacked>caption,.table.b-table.b-table-stacked>tbody,.table.b-table.b-table-stacked>tbody>tr,.table.b-table.b-table-stacked>tbody>tr>td,.table.b-table.b-table-stacked>tbody>tr>th{display:block}.table.b-table.b-table-stacked>tfoot,.table.b-table.b-table-stacked>tfoot>tr.b-table-bottom-row,.table.b-table.b-table-stacked>tfoot>tr.b-table-top-row,.table.b-table.b-table-stacked>thead,.table.b-table.b-table-stacked>thead>tr.b-table-bottom-row,.table.b-table.b-table-stacked>thead>tr.b-table-top-row{display:none}.table.b-table.b-table-stacked>caption{caption-side:top!important}.table.b-table.b-table-stacked>tbody>tr>[data-label]:before{content:attr(data-label);width:40%;float:left;text-align:right;overflow-wrap:break-word;font-weight:700;font-style:normal;padding:0 .5rem 0 0;margin:0}.table.b-table.b-table-stacked>tbody>tr>[data-label]:after{display:block;clear:both;content:""}.table.b-table.b-table-stacked>tbody>tr>[data-label]>div{display:inline-block;width:60%;padding:0 0 0 .5rem;margin:0}.table.b-table.b-table-stacked>tbody>tr.bottom-row,.table.b-table.b-table-stacked>tbody>tr.top-row{display:none}.table.b-table.b-table-stacked>tbody>tr>:first-child,.table.b-table.b-table-stacked>tbody>tr>[rowspan]+td,.table.b-table.b-table-stacked>tbody>tr>[rowspan]+th{border-top-width:3px}.b-time{min-width:150px}.b-time[aria-disabled=true] output,.b-time[aria-readonly=true] output,.b-time output.disabled{background-color:#e9ecef;opacity:1}.b-time[aria-disabled=true] output{pointer-events:none}[dir=rtl] .b-time>.d-flex:not(.flex-column){-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.b-time .b-time-header{margin-bottom:.5rem}.b-time .b-time-header output{padding:.25rem;font-size:80%}.b-time .b-time-footer{margin-top:.5rem}.b-time .b-time-ampm{margin-left:.5rem}.b-toast{display:block;position:relative;max-width:350px;-webkit-backface-visibility:hidden;backface-visibility:hidden;background-clip:padding-box;z-index:1;border-radius:.25rem}.b-toast .toast{background-color:hsla(0,0%,100%,.85)}.b-toast:not(:last-child){margin-bottom:.75rem}.b-toast.b-toast-solid .toast{background-color:#fff}.b-toast .toast{opacity:1}.b-toast .toast.fade:not(.show){opacity:0}.b-toast .toast .toast-body{display:block}.b-toast-primary .toast{background-color:rgba(230,242,255,.85);border-color:rgba(184,218,255,.85);color:#004085}.b-toast-primary .toast .toast-header{color:#004085;background-color:rgba(204,229,255,.85);border-bottom-color:rgba(184,218,255,.85)}.b-toast-primary.b-toast-solid .toast{background-color:#e6f2ff}.b-toast-secondary .toast{background-color:rgba(239,240,241,.85);border-color:rgba(214,216,219,.85);color:#383d41}.b-toast-secondary .toast .toast-header{color:#383d41;background-color:rgba(226,227,229,.85);border-bottom-color:rgba(214,216,219,.85)}.b-toast-secondary.b-toast-solid .toast{background-color:#eff0f1}.b-toast-success .toast{background-color:rgba(230,245,233,.85);border-color:rgba(195,230,203,.85);color:#155724}.b-toast-success .toast .toast-header{color:#155724;background-color:rgba(212,237,218,.85);border-bottom-color:rgba(195,230,203,.85)}.b-toast-success.b-toast-solid .toast{background-color:#e6f5e9}.b-toast-info .toast{background-color:rgba(229,244,247,.85);border-color:rgba(190,229,235,.85);color:#0c5460}.b-toast-info .toast .toast-header{color:#0c5460;background-color:rgba(209,236,241,.85);border-bottom-color:rgba(190,229,235,.85)}.b-toast-info.b-toast-solid .toast{background-color:#e5f4f7}.b-toast-warning .toast{background-color:rgba(255,249,231,.85);border-color:rgba(255,238,186,.85);color:#856404}.b-toast-warning .toast .toast-header{color:#856404;background-color:rgba(255,243,205,.85);border-bottom-color:rgba(255,238,186,.85)}.b-toast-warning.b-toast-solid .toast{background-color:#fff9e7}.b-toast-danger .toast{background-color:rgba(252,237,238,.85);border-color:rgba(245,198,203,.85);color:#721c24}.b-toast-danger .toast .toast-header{color:#721c24;background-color:rgba(248,215,218,.85);border-bottom-color:rgba(245,198,203,.85)}.b-toast-danger.b-toast-solid .toast{background-color:#fcedee}.b-toast-light .toast{background-color:hsla(0,0%,100%,.85);border-color:rgba(253,253,254,.85);color:#818182}.b-toast-light .toast .toast-header{color:#818182;background-color:hsla(0,0%,99.6%,.85);border-bottom-color:rgba(253,253,254,.85)}.b-toast-light.b-toast-solid .toast{background-color:#fff}.b-toast-dark .toast{background-color:rgba(227,229,229,.85);border-color:rgba(198,200,202,.85);color:#1b1e21}.b-toast-dark .toast .toast-header{color:#1b1e21;background-color:rgba(214,216,217,.85);border-bottom-color:rgba(198,200,202,.85)}.b-toast-dark.b-toast-solid .toast{background-color:#e3e5e5}.b-toaster{z-index:1100}.b-toaster .b-toaster-slot{position:relative;display:block}.b-toaster .b-toaster-slot:empty{display:none!important}.b-toaster.b-toaster-bottom-center,.b-toaster.b-toaster-bottom-full,.b-toaster.b-toaster-bottom-left,.b-toaster.b-toaster-bottom-right,.b-toaster.b-toaster-top-center,.b-toaster.b-toaster-top-full,.b-toaster.b-toaster-top-left,.b-toaster.b-toaster-top-right{position:fixed;left:.5rem;right:.5rem;margin:0;padding:0;height:0;overflow:visible}.b-toaster.b-toaster-bottom-center .b-toaster-slot,.b-toaster.b-toaster-bottom-full .b-toaster-slot,.b-toaster.b-toaster-bottom-left .b-toaster-slot,.b-toaster.b-toaster-bottom-right .b-toaster-slot,.b-toaster.b-toaster-top-center .b-toaster-slot,.b-toaster.b-toaster-top-full .b-toaster-slot,.b-toaster.b-toaster-top-left .b-toaster-slot,.b-toaster.b-toaster-top-right .b-toaster-slot{position:absolute;max-width:350px;width:100%;left:0;right:0;padding:0;margin:0}.b-toaster.b-toaster-bottom-full .b-toaster-slot,.b-toaster.b-toaster-bottom-full .b-toaster-slot .b-toast,.b-toaster.b-toaster-bottom-full .b-toaster-slot .toast,.b-toaster.b-toaster-top-full .b-toaster-slot,.b-toaster.b-toaster-top-full .b-toaster-slot .b-toast,.b-toaster.b-toaster-top-full .b-toaster-slot .toast{width:100%;max-width:100%}.b-toaster.b-toaster-top-center,.b-toaster.b-toaster-top-full,.b-toaster.b-toaster-top-left,.b-toaster.b-toaster-top-right{top:0}.b-toaster.b-toaster-top-center .b-toaster-slot,.b-toaster.b-toaster-top-full .b-toaster-slot,.b-toaster.b-toaster-top-left .b-toaster-slot,.b-toaster.b-toaster-top-right .b-toaster-slot{top:.5rem}.b-toaster.b-toaster-bottom-center,.b-toaster.b-toaster-bottom-full,.b-toaster.b-toaster-bottom-left,.b-toaster.b-toaster-bottom-right{bottom:0}.b-toaster.b-toaster-bottom-center .b-toaster-slot,.b-toaster.b-toaster-bottom-full .b-toaster-slot,.b-toaster.b-toaster-bottom-left .b-toaster-slot,.b-toaster.b-toaster-bottom-right .b-toaster-slot{bottom:.5rem}.b-toaster.b-toaster-bottom-center .b-toaster-slot,.b-toaster.b-toaster-bottom-right .b-toaster-slot,.b-toaster.b-toaster-top-center .b-toaster-slot,.b-toaster.b-toaster-top-right .b-toaster-slot{margin-left:auto}.b-toaster.b-toaster-bottom-center .b-toaster-slot,.b-toaster.b-toaster-bottom-left .b-toaster-slot,.b-toaster.b-toaster-top-center .b-toaster-slot,.b-toaster.b-toaster-top-left .b-toaster-slot{margin-right:auto}.b-toaster.b-toaster-bottom-left .b-toast.b-toaster-enter-active,.b-toaster.b-toaster-bottom-left .b-toast.b-toaster-leave-active,.b-toaster.b-toaster-bottom-left .b-toast.b-toaster-move,.b-toaster.b-toaster-bottom-right .b-toast.b-toaster-enter-active,.b-toaster.b-toaster-bottom-right .b-toast.b-toaster-leave-active,.b-toaster.b-toaster-bottom-right .b-toast.b-toaster-move,.b-toaster.b-toaster-top-left .b-toast.b-toaster-enter-active,.b-toaster.b-toaster-top-left .b-toast.b-toaster-leave-active,.b-toaster.b-toaster-top-left .b-toast.b-toaster-move,.b-toaster.b-toaster-top-right .b-toast.b-toaster-enter-active,.b-toaster.b-toaster-top-right .b-toast.b-toaster-leave-active,.b-toaster.b-toaster-top-right .b-toast.b-toaster-move{transition:-webkit-transform .175s;-webkit-transition:-webkit-transform .175s;transition:transform .175s;transition:transform .175s,-webkit-transform .175s}.b-toaster.b-toaster-bottom-left .b-toast.b-toaster-enter-active .toast.fade,.b-toaster.b-toaster-bottom-left .b-toast.b-toaster-enter-to .toast.fade,.b-toaster.b-toaster-bottom-right .b-toast.b-toaster-enter-active .toast.fade,.b-toaster.b-toaster-bottom-right .b-toast.b-toaster-enter-to .toast.fade,.b-toaster.b-toaster-top-left .b-toast.b-toaster-enter-active .toast.fade,.b-toaster.b-toaster-top-left .b-toast.b-toaster-enter-to .toast.fade,.b-toaster.b-toaster-top-right .b-toast.b-toaster-enter-active .toast.fade,.b-toaster.b-toaster-top-right .b-toast.b-toaster-enter-to .toast.fade{-webkit-transition-delay:.175s;transition-delay:.175s}.b-toaster.b-toaster-bottom-left .b-toast.b-toaster-leave-active,.b-toaster.b-toaster-bottom-right .b-toast.b-toaster-leave-active,.b-toaster.b-toaster-top-left .b-toast.b-toaster-leave-active,.b-toaster.b-toaster-top-right .b-toast.b-toaster-leave-active{position:absolute;-webkit-transition-delay:.175s;transition-delay:.175s}.b-toaster.b-toaster-bottom-left .b-toast.b-toaster-leave-active .toast.fade,.b-toaster.b-toaster-bottom-right .b-toast.b-toaster-leave-active .toast.fade,.b-toaster.b-toaster-top-left .b-toast.b-toaster-leave-active .toast.fade,.b-toaster.b-toaster-top-right .b-toast.b-toaster-leave-active .toast.fade{-webkit-transition-delay:0s;transition-delay:0s}.tooltip.b-tooltip{display:block;opacity:.9;outline:0}.tooltip.b-tooltip.fade:not(.show){opacity:0}.tooltip.b-tooltip.show{opacity:.9}.tooltip.b-tooltip.noninteractive{pointer-events:none}.tooltip.b-tooltip .arrow{margin:0 .25rem}.tooltip.b-tooltip.b-tooltip-danger.bs-tooltip-auto[x-placement^=left] .arrow,.tooltip.b-tooltip.b-tooltip-danger.bs-tooltip-auto[x-placement^=right] .arrow,.tooltip.b-tooltip.b-tooltip-dark.bs-tooltip-auto[x-placement^=left] .arrow,.tooltip.b-tooltip.b-tooltip-dark.bs-tooltip-auto[x-placement^=right] .arrow,.tooltip.b-tooltip.b-tooltip-info.bs-tooltip-auto[x-placement^=left] .arrow,.tooltip.b-tooltip.b-tooltip-info.bs-tooltip-auto[x-placement^=right] .arrow,.tooltip.b-tooltip.b-tooltip-light.bs-tooltip-auto[x-placement^=left] .arrow,.tooltip.b-tooltip.b-tooltip-light.bs-tooltip-auto[x-placement^=right] .arrow,.tooltip.b-tooltip.b-tooltip-primary.bs-tooltip-auto[x-placement^=left] .arrow,.tooltip.b-tooltip.b-tooltip-primary.bs-tooltip-auto[x-placement^=right] .arrow,.tooltip.b-tooltip.b-tooltip-secondary.bs-tooltip-auto[x-placement^=left] .arrow,.tooltip.b-tooltip.b-tooltip-secondary.bs-tooltip-auto[x-placement^=right] .arrow,.tooltip.b-tooltip.b-tooltip-success.bs-tooltip-auto[x-placement^=left] .arrow,.tooltip.b-tooltip.b-tooltip-success.bs-tooltip-auto[x-placement^=right] .arrow,.tooltip.b-tooltip.b-tooltip-warning.bs-tooltip-auto[x-placement^=left] .arrow,.tooltip.b-tooltip.b-tooltip-warning.bs-tooltip-auto[x-placement^=right] .arrow,.tooltip.b-tooltip.bs-tooltip-left .arrow,.tooltip.b-tooltip.bs-tooltip-right .arrow{margin:.25rem 0}.tooltip.b-tooltip-primary.bs-tooltip-auto[x-placement^=top] .arrow:before,.tooltip.b-tooltip-primary.bs-tooltip-top .arrow:before{border-top-color:#007bff}.tooltip.b-tooltip-primary.bs-tooltip-auto[x-placement^=right] .arrow:before,.tooltip.b-tooltip-primary.bs-tooltip-right .arrow:before{border-right-color:#007bff}.tooltip.b-tooltip-primary.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.tooltip.b-tooltip-primary.bs-tooltip-bottom .arrow:before{border-bottom-color:#007bff}.tooltip.b-tooltip-primary.bs-tooltip-auto[x-placement^=left] .arrow:before,.tooltip.b-tooltip-primary.bs-tooltip-left .arrow:before{border-left-color:#007bff}.tooltip.b-tooltip-primary .tooltip-inner{color:#fff;background-color:#007bff}.tooltip.b-tooltip-secondary.bs-tooltip-auto[x-placement^=top] .arrow:before,.tooltip.b-tooltip-secondary.bs-tooltip-top .arrow:before{border-top-color:#6c757d}.tooltip.b-tooltip-secondary.bs-tooltip-auto[x-placement^=right] .arrow:before,.tooltip.b-tooltip-secondary.bs-tooltip-right .arrow:before{border-right-color:#6c757d}.tooltip.b-tooltip-secondary.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.tooltip.b-tooltip-secondary.bs-tooltip-bottom .arrow:before{border-bottom-color:#6c757d}.tooltip.b-tooltip-secondary.bs-tooltip-auto[x-placement^=left] .arrow:before,.tooltip.b-tooltip-secondary.bs-tooltip-left .arrow:before{border-left-color:#6c757d}.tooltip.b-tooltip-secondary .tooltip-inner{color:#fff;background-color:#6c757d}.tooltip.b-tooltip-success.bs-tooltip-auto[x-placement^=top] .arrow:before,.tooltip.b-tooltip-success.bs-tooltip-top .arrow:before{border-top-color:#28a745}.tooltip.b-tooltip-success.bs-tooltip-auto[x-placement^=right] .arrow:before,.tooltip.b-tooltip-success.bs-tooltip-right .arrow:before{border-right-color:#28a745}.tooltip.b-tooltip-success.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.tooltip.b-tooltip-success.bs-tooltip-bottom .arrow:before{border-bottom-color:#28a745}.tooltip.b-tooltip-success.bs-tooltip-auto[x-placement^=left] .arrow:before,.tooltip.b-tooltip-success.bs-tooltip-left .arrow:before{border-left-color:#28a745}.tooltip.b-tooltip-success .tooltip-inner{color:#fff;background-color:#28a745}.tooltip.b-tooltip-info.bs-tooltip-auto[x-placement^=top] .arrow:before,.tooltip.b-tooltip-info.bs-tooltip-top .arrow:before{border-top-color:#17a2b8}.tooltip.b-tooltip-info.bs-tooltip-auto[x-placement^=right] .arrow:before,.tooltip.b-tooltip-info.bs-tooltip-right .arrow:before{border-right-color:#17a2b8}.tooltip.b-tooltip-info.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.tooltip.b-tooltip-info.bs-tooltip-bottom .arrow:before{border-bottom-color:#17a2b8}.tooltip.b-tooltip-info.bs-tooltip-auto[x-placement^=left] .arrow:before,.tooltip.b-tooltip-info.bs-tooltip-left .arrow:before{border-left-color:#17a2b8}.tooltip.b-tooltip-info .tooltip-inner{color:#fff;background-color:#17a2b8}.tooltip.b-tooltip-warning.bs-tooltip-auto[x-placement^=top] .arrow:before,.tooltip.b-tooltip-warning.bs-tooltip-top .arrow:before{border-top-color:#ffc107}.tooltip.b-tooltip-warning.bs-tooltip-auto[x-placement^=right] .arrow:before,.tooltip.b-tooltip-warning.bs-tooltip-right .arrow:before{border-right-color:#ffc107}.tooltip.b-tooltip-warning.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.tooltip.b-tooltip-warning.bs-tooltip-bottom .arrow:before{border-bottom-color:#ffc107}.tooltip.b-tooltip-warning.bs-tooltip-auto[x-placement^=left] .arrow:before,.tooltip.b-tooltip-warning.bs-tooltip-left .arrow:before{border-left-color:#ffc107}.tooltip.b-tooltip-warning .tooltip-inner{color:#212529;background-color:#ffc107}.tooltip.b-tooltip-danger.bs-tooltip-auto[x-placement^=top] .arrow:before,.tooltip.b-tooltip-danger.bs-tooltip-top .arrow:before{border-top-color:#dc3545}.tooltip.b-tooltip-danger.bs-tooltip-auto[x-placement^=right] .arrow:before,.tooltip.b-tooltip-danger.bs-tooltip-right .arrow:before{border-right-color:#dc3545}.tooltip.b-tooltip-danger.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.tooltip.b-tooltip-danger.bs-tooltip-bottom .arrow:before{border-bottom-color:#dc3545}.tooltip.b-tooltip-danger.bs-tooltip-auto[x-placement^=left] .arrow:before,.tooltip.b-tooltip-danger.bs-tooltip-left .arrow:before{border-left-color:#dc3545}.tooltip.b-tooltip-danger .tooltip-inner{color:#fff;background-color:#dc3545}.tooltip.b-tooltip-light.bs-tooltip-auto[x-placement^=top] .arrow:before,.tooltip.b-tooltip-light.bs-tooltip-top .arrow:before{border-top-color:#f8f9fa}.tooltip.b-tooltip-light.bs-tooltip-auto[x-placement^=right] .arrow:before,.tooltip.b-tooltip-light.bs-tooltip-right .arrow:before{border-right-color:#f8f9fa}.tooltip.b-tooltip-light.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.tooltip.b-tooltip-light.bs-tooltip-bottom .arrow:before{border-bottom-color:#f8f9fa}.tooltip.b-tooltip-light.bs-tooltip-auto[x-placement^=left] .arrow:before,.tooltip.b-tooltip-light.bs-tooltip-left .arrow:before{border-left-color:#f8f9fa}.tooltip.b-tooltip-light .tooltip-inner{color:#212529;background-color:#f8f9fa}.tooltip.b-tooltip-dark.bs-tooltip-auto[x-placement^=top] .arrow:before,.tooltip.b-tooltip-dark.bs-tooltip-top .arrow:before{border-top-color:#343a40}.tooltip.b-tooltip-dark.bs-tooltip-auto[x-placement^=right] .arrow:before,.tooltip.b-tooltip-dark.bs-tooltip-right .arrow:before{border-right-color:#343a40}.tooltip.b-tooltip-dark.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.tooltip.b-tooltip-dark.bs-tooltip-bottom .arrow:before{border-bottom-color:#343a40}.tooltip.b-tooltip-dark.bs-tooltip-auto[x-placement^=left] .arrow:before,.tooltip.b-tooltip-dark.bs-tooltip-left .arrow:before{border-left-color:#343a40}.tooltip.b-tooltip-dark .tooltip-inner{color:#fff;background-color:#343a40}.b-icon.bi{display:inline-block;overflow:visible;vertical-align:-.15em}.b-icon.b-icon-animation-cylon,.b-icon.b-iconstack .b-icon-animation-cylon>g{-webkit-transform-origin:center;transform-origin:center;-webkit-animation:b-icon-animation-cylon .75s ease-in-out infinite alternate;animation:b-icon-animation-cylon .75s ease-in-out infinite alternate}@media (prefers-reduced-motion:reduce){.b-icon.b-icon-animation-cylon,.b-icon.b-iconstack .b-icon-animation-cylon>g{-webkit-animation:none;animation:none}}.b-icon.b-icon-animation-cylon-vertical,.b-icon.b-iconstack .b-icon-animation-cylon-vertical>g{-webkit-transform-origin:center;transform-origin:center;-webkit-animation:b-icon-animation-cylon-vertical .75s ease-in-out infinite alternate;animation:b-icon-animation-cylon-vertical .75s ease-in-out infinite alternate}@media (prefers-reduced-motion:reduce){.b-icon.b-icon-animation-cylon-vertical,.b-icon.b-iconstack .b-icon-animation-cylon-vertical>g{-webkit-animation:none;animation:none}}.b-icon.b-icon-animation-fade,.b-icon.b-iconstack .b-icon-animation-fade>g{-webkit-transform-origin:center;transform-origin:center;-webkit-animation:b-icon-animation-fade .75s ease-in-out infinite alternate;animation:b-icon-animation-fade .75s ease-in-out infinite alternate}@media (prefers-reduced-motion:reduce){.b-icon.b-icon-animation-fade,.b-icon.b-iconstack .b-icon-animation-fade>g{-webkit-animation:none;animation:none}}.b-icon.b-icon-animation-spin,.b-icon.b-iconstack .b-icon-animation-spin>g{-webkit-transform-origin:center;transform-origin:center;-webkit-animation:b-icon-animation-spin 2s linear infinite normal;animation:b-icon-animation-spin 2s linear infinite normal}@media (prefers-reduced-motion:reduce){.b-icon.b-icon-animation-spin,.b-icon.b-iconstack .b-icon-animation-spin>g{-webkit-animation:none;animation:none}}.b-icon.b-icon-animation-spin-reverse,.b-icon.b-iconstack .b-icon-animation-spin-reverse>g{-webkit-transform-origin:center;transform-origin:center;animation:b-icon-animation-spin 2s linear infinite reverse}@media (prefers-reduced-motion:reduce){.b-icon.b-icon-animation-spin-reverse,.b-icon.b-iconstack .b-icon-animation-spin-reverse>g{-webkit-animation:none;animation:none}}.b-icon.b-icon-animation-spin-pulse,.b-icon.b-iconstack .b-icon-animation-spin-pulse>g{-webkit-transform-origin:center;transform-origin:center;-webkit-animation:b-icon-animation-spin 1s steps(8) infinite normal;animation:b-icon-animation-spin 1s steps(8) infinite normal}@media (prefers-reduced-motion:reduce){.b-icon.b-icon-animation-spin-pulse,.b-icon.b-iconstack .b-icon-animation-spin-pulse>g{-webkit-animation:none;animation:none}}.b-icon.b-icon-animation-spin-reverse-pulse,.b-icon.b-iconstack .b-icon-animation-spin-reverse-pulse>g{-webkit-transform-origin:center;transform-origin:center;animation:b-icon-animation-spin 1s steps(8) infinite reverse}@media (prefers-reduced-motion:reduce){.b-icon.b-icon-animation-spin-reverse-pulse,.b-icon.b-iconstack .b-icon-animation-spin-reverse-pulse>g{-webkit-animation:none;animation:none}}.b-icon.b-icon-animation-throb,.b-icon.b-iconstack .b-icon-animation-throb>g{-webkit-transform-origin:center;transform-origin:center;-webkit-animation:b-icon-animation-throb .75s ease-in-out infinite alternate;animation:b-icon-animation-throb .75s ease-in-out infinite alternate}@media (prefers-reduced-motion:reduce){.b-icon.b-icon-animation-throb,.b-icon.b-iconstack .b-icon-animation-throb>g{-webkit-animation:none;animation:none}}@-webkit-keyframes b-icon-animation-cylon{0%{-webkit-transform:translateX(-25%);transform:translateX(-25%)}to{-webkit-transform:translateX(25%);transform:translateX(25%)}}@keyframes b-icon-animation-cylon{0%{-webkit-transform:translateX(-25%);transform:translateX(-25%)}to{-webkit-transform:translateX(25%);transform:translateX(25%)}}@-webkit-keyframes b-icon-animation-cylon-vertical{0%{-webkit-transform:translateY(25%);transform:translateY(25%)}to{-webkit-transform:translateY(-25%);transform:translateY(-25%)}}@keyframes b-icon-animation-cylon-vertical{0%{-webkit-transform:translateY(25%);transform:translateY(25%)}to{-webkit-transform:translateY(-25%);transform:translateY(-25%)}}@-webkit-keyframes b-icon-animation-fade{0%{opacity:.1}to{opacity:1}}@keyframes b-icon-animation-fade{0%{opacity:.1}to{opacity:1}}@-webkit-keyframes b-icon-animation-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes b-icon-animation-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes b-icon-animation-throb{0%{opacity:.5;-webkit-transform:scale(.5);transform:scale(.5)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes b-icon-animation-throb{0%{opacity:.5;-webkit-transform:scale(.5);transform:scale(.5)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.btn .b-icon.bi,.dropdown-item .b-icon.bi,.dropdown-toggle .b-icon.bi,.input-group-text .b-icon.bi,.nav-link .b-icon.bi{font-size:125%;vertical-align:text-bottom} \ No newline at end of file diff --git a/dist/favicon.ico b/dist/favicon.ico new file mode 100644 index 0000000..c7b9a43 Binary files /dev/null and b/dist/favicon.ico differ diff --git a/dist/fonts/themify.2c454669.eot b/dist/fonts/themify.2c454669.eot new file mode 100644 index 0000000..9ec298b Binary files /dev/null and b/dist/fonts/themify.2c454669.eot differ diff --git a/dist/fonts/themify.a1ecc3b8.woff b/dist/fonts/themify.a1ecc3b8.woff new file mode 100644 index 0000000..847ebd1 Binary files /dev/null and b/dist/fonts/themify.a1ecc3b8.woff differ diff --git a/dist/fonts/themify.e23a7dca.ttf b/dist/fonts/themify.e23a7dca.ttf new file mode 100644 index 0000000..5d627e7 Binary files /dev/null and b/dist/fonts/themify.e23a7dca.ttf differ diff --git a/dist/img/themify.9c8e96ec.svg b/dist/img/themify.9c8e96ec.svg new file mode 100644 index 0000000..3d53854 --- /dev/null +++ b/dist/img/themify.9c8e96ec.svg @@ -0,0 +1,362 @@ + + + +Generated by IcoMoon + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000..a802cfa --- /dev/null +++ b/dist/index.html @@ -0,0 +1 @@ +bootstrap-vue-example
\ No newline at end of file diff --git a/dist/js/app.ee144f76.js b/dist/js/app.ee144f76.js new file mode 100644 index 0000000..894a58e --- /dev/null +++ b/dist/js/app.ee144f76.js @@ -0,0 +1,2 @@ +(function(t){function e(e){for(var n,l,r=e[0],i=e[1],c=e[2],u=0,f=[];u\n \n \n \n \n \n \n
\n \n
\n
\n \n
\n \n ',o=(new DOMParser).parseFromString(n,"text/html"),a=t.url_asciijshighlight.length,l=0;l\n ".concat(o,"\n "),console.log(" ascii "+JSON.stringify(o)),a="firstElement",t.asciidochtml=o,document.getElementById("llocontainer").contentWindow.document.getElementById(a).innerHTML=t.asciidochtml,e.next=16;break;case 12:return e.prev=12,e.t0=e["catch"](2),console.log(" ascerror "+JSON.stringify(e.t0)),e.abrupt("return");case 16:case"end":return e.stop()}}),e,null,[[2,12]])})))()},handleChange:function(){}},computed:{},mounted:function(){var t=this;this.$root.$on("asciilive_add",(function(e){t.code=e,t.addlloascii()})),this.$root.$on("asciilive_save",(function(e){t.saveascii()}))},beforeDestroy:function(){this.$root.$off("asciilive_add"),this.$root.$off("asciilive_save")},created:function(){this.bootsrapllo()}},g=v,x=(s("0f03"),s("2877")),w=Object(x["a"])(g,c,d,!1,null,null,null),_=w.exports,C=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.showlloedit?s("b-row",{attrs:{"no-gutters":"","w-100":"","h-100":""}},[s("b-col",{attrs:{cols:"12",sm:"12",md:"12"}},[s("b-row",[s("b-col",{attrs:{cols:"5"}},[s("div",{staticClass:"input-group input-group-sm sm-3"},[s("select",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],staticClass:"custom-select custom-select-sm ",on:{change:[function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selected=e.target.multiple?s:s[0]},t.setKeymap]}},t._l(t.options,(function(e){return s("option",{domProps:{value:e.value}},[t._v(" "+t._s(e.text)+" ")])})),0),s("div",{staticClass:"input-group-append"},["sublime"==t.cmOptions.keyMap?s("button",{staticClass:"btn btn-outline-info btn-sm",attrs:{type:"button",round:""},on:{click:t.infoFilter}},[t._v(" i")]):t._e()])])]),s("b-col",{attrs:{cols:"7"}},[s("div",{staticClass:"input-group input-group-sm d-flex justify-content-end"}),s("div",{staticClass:"input-group input-group-sm d-flex justify-content-end"},[s("div",{staticClass:"input-group-append"},[t.tryLLO[t.active]?s("button",{staticClass:"btn btn-outline-warning btn-sm",attrs:{type:"button",round:""},on:{click:function(e){return t.closelog(t.key)}}},[t._v(" Close")]):t._e()]),s("div",{staticClass:"input-group-append"},[t.tryLLO[t.active]?s("button",{staticClass:"btn btn-outline-dark btn-sm",attrs:{type:"button"},on:{click:t.addlloasciisource}},[t._v("Create task!")]):t._e()])])])],1),s("div",{staticClass:"codemirror"},[s("codemirror",{ref:"myCm",attrs:{value:t.code,options:t.cmOptions},on:{cursorActivity:t.onCmCursorActivity,ready:t.onCmReady,focus:t.onCmFocus,input:t.onCmCodeChange}})],1)],1)],1):t._e()],1)},y=[],k=s("8f94"),L=(s("a7be"),s("bbca"),s("31c5"),s("9b74"),s("f6b6"),s("3c98"),s("9c7b"),s("715d"),s("b933"),s("23de"),s("02f0"),s("8c33"),s("7289"),s("2aed"),s("d72f"),s("0b6c"),s("9a48"),s("75f8"),s("697e"),s("aedd"),s("164b"),s("4895"),s("cbc8"),s("8d70"),s("9f09"),s("a2c1"),s("56b3"),s("d7d5"),{components:{codemirror:k["codemirror"]},data:function(){return{swarmlabllo:"https://git.swarmlab.io:3000/labs/examples-mpi2/raw/branch/master/llo-index.yml",ssl:{},url_asciijshighlight:["https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js"],url_asciijs:["https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"],url_asciicss:["https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css","https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/github.min.css","https://cdnjs.cloudflare.com/ajax/libs/asciidoctor.js/1.5.9/css/asciidoctor.min.css","https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"],code:"# Try!",editchoice:"",optionsedit:[{text:"code",value:"code"},{text:"text",value:"text"}],llodesc:[{llo_url:"",llo_name:"",llo_author:"",llo_intro:""}],llo:[{id:0,rm:!1,data_info:"Asciidoc \n",data_code:"#Your source code",data_service:"",code_datafile:"url",code_name:"",code_exec:"",code_options:"",code_mime:"",code_info:"",code_code:"",code_codeout:"",code_codeoutput:"console",points:"",challenge_question:"",code_challenge_question:"",challenge_answer:"",challenge_answer_hint:"",code_challenge_answer_hint:"",challenge_answer_source:"",challenge_answer_code_out:"",challenge_answer_code:"",code_challenge_answer_code:""}],searchLLO:[],searchLLOactive:!1,ADOC_html_code:"",challenge:[],action:"",tryLLO:[],service:"os2",active:0,activecount:0,remove:"",activeField:"",bootstrap:!1,firstbootstrap:0,htmlasciitmp:"",datafile:"https://git.swarmlab.io:3000/labs/examples-mpi2/raw/branch/master/0_netstat/data",datadir:"0_netstat/data",LearningObject:"",showllo:!0,showlloedit:!0,selected:"sublime",options:[{text:"vim",value:"vim"},{text:"sublime",value:"sublime"}],optionsmime:[{text:"sh",value:"bash"},{text:"javascript",value:"javascript"},{text:"python",value:"python"},{text:"php",value:"php"},{text:"sql",value:"sq;"},{text:"xml",value:"xml"},{text:"c",value:"c"}],pValidate:!1,cmOptions:{tabSize:2,styleActiveLine:!0,lineNumbers:!0,lineSeparator:"\n",line:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],highlightSelectionMatches:{showToken:/\w/,annotateScrollbar:!0},styleSelectedText:!0,mode:"shell",hintOptions:{completeSingle:!1},keyMap:"sublime",matchBrackets:!0,showCursorWhenSelecting:!0,indentUnit:this.ADOC_html_code,lineWrapping:!0,theme:"neat",refresh:!0,autofocus:!1,extraKeys:{Ctrl:"autocomplete"}},ADOC_html:[]}},methods:{showactive:function(t){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:e.topwindow(t);case 1:case"end":return s.stop()}}),s)})))()},onCmReady:function(t){t.on("change",(function(t,e){})),t.on("keypress",(function(){t.showHint({completeSingle:!1})}))},onCmCursorActivity:function(t,e,s){},onCmFocus:function(t){},onCmCodeChange:function(t){this.code=t,this.$root.$emit("asciilive_add",this.code)},handleChange:function(){},setKeymap:function(){this.cmOptions.keyMap=this.selected},infoFilter:function(){var t="

Playbook Images

",e='
Shift-Tab indentLess
Shift-Ctrl-K deleteLine
Alt-Q wrapLines
Ctrl-T transposeChars
Alt-Left goSubwordLeft
Alt-Right goSubwordRight
Ctrl-Up scrollLineUp
Ctrl-Down scrollLineDown
Ctrl-L selectLine
Shift-Ctrl-L splitSelectionByLine
Esc singleSelectionTop
Ctrl-Enter insertLineAfter
Shift-Ctrl-Enter insertLineBefore
Ctrl-D selectNextOccurrence
Shift-Ctrl-Space selectScope
Shift-Ctrl-M selectBetweenBrackets
Ctrl-M goToBracket
Shift-Ctrl-Up swapLineUp
Shift-Ctrl-Down swapLineDown
Ctrl-/ toggleCommentIndented
Ctrl-J joinLines
Shift-Ctrl-D duplicateLine
F9 sortLines
Ctrl-F9 sortLinesInsensitive
F2 nextBookmark
Shift-F2 prevBookmark
Ctrl-F2 toggleBookmark
Shift-Ctrl-F2 clearBookmarks
Alt-F2 selectBookmarks
Backspace smartBackspace
Ctrl-K Ctrl-K delLineRight
Ctrl-K Ctrl-U upcaseAtCursor
Ctrl-K Ctrl-L downcaseAtCursor
Ctrl-K Ctrl-Space setSublimeMark
Ctrl-K Ctrl-A selectToSublimeMark
Ctrl-K Ctrl-W deleteToSublimeMark
Ctrl-K Ctrl-X swapWithSublimeMark
Ctrl-K Ctrl-Y sublimeYank
Ctrl-K Ctrl-C showInCenter
Ctrl-K Ctrl-G clearBookmarks
Ctrl-K Ctrl-Backspace delLineLeft
Ctrl-K Ctrl-0 unfoldAll
Ctrl-K Ctrl-J unfoldAll
Ctrl-Alt-Up addCursorToPrevLine
Ctrl-Alt-Down addCursorToNextLine
Ctrl-F3 findUnder
Shift-Ctrl-F3 findUnderPrevious
Shift-Ctrl-[ fold
Shift-Ctrl-] unfold
Ctrl-H replace
',s=(t="","");this.$swal({title:"Sublime Text bindings",type:"info",html:e+t+s,showCloseButton:!0,showLoaderOnConfirm:!1,allowOutsideClick:!1})}},computed:{codemirror:function(){return this.$refs.myCm.codemirror}},mounted:function(){var t=this;this.$root.$on("asciilive_template_add",(function(e){t.$nextTick((function(){this.code=e}))}))},beforeDestroy:function(){this.$root.$off("PipelineRunSwarmserviceLLOAdhoc")},created:function(){}}),j=L,S=(s("9767"),Object(x["a"])(j,C,y,!1,null,null,null)),O=S.exports,$={name:"DocLive",props:{},components:{RunLlo:_,AdHoc:O},data:function(){return{loading:!1,showhistory:0,productIndex:1,showmenou:1,columnviewdefault:0,columncodedefault:0,columnview:"col-7 order-first",columncode:"col-5 order-last",tutorMenou:"student"}},created:function(){},mounted:function(){var t=this;this.$root.$on("LLOshowmenounotebooks",(function(){t.showmenou=1})),this.$root.$on("lloshowchallengehistory",(function(e,s){t.showhistory=1}))},beforeDestroy:function(){this.$root.$off("LLOshowmenounotebooks"),this.$root.$off("lloshowchallengehistory")},methods:{fullscreen:function(t){"max"==t?(this.columnview="col-11 order-first",this.columncode="col-1 order-last",this.columnviewdefault=1,this.columncodedefault=0,this.$root.$emit("LLOresizemenounotebooks","max"),console.log(this.columnview)):"min"==t?(this.columnview="col-7 order-first",this.columncode="col-5 order-last",this.columnviewdefault=0,this.columncodedefault=1,this.$root.$emit("LLOresizemenounotebooks","min"),console.log(this.columnview)):"codemax"==t?(this.columnview="col-1 order-first",this.columncode="col-11 order-last",this.columnviewdefault=0,this.columncodedefault=1,console.log(this.columnview)):"codemin"==t&&(this.columnview="col-7 order-first",this.columncode="col-5 order-last",this.columnviewdefault=1,this.columncodedefault=0,this.$root.$emit("LLOresizemenounotebooks","min"),console.log(this.columnview))},onAction:function(t){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.tutorMenou="tutor";case 1:case"end":return t.stop()}}),t)})))()}}},A=$,T=Object(x["a"])(A,l,r,!1,null,"6b2c0280",null),M=T.exports,D=(s("e454"),{name:"app",components:{DocLive:M},data:function(){return{show:!0,SwarmabAsciiLabTemplate:""}},mounted:function(){},methods:{saveDocLive:function(){this.$root.$emit("asciilive_save","save")},addtemplate:function(t){"LabTemplate"==t&&(this.SwarmabAsciiLabTemplate='= Title!\nmyName email@emailserver.foo\n:description: Description\n:keywords: Lab, myLab\n:data-uri:\n:toc: true\n:toc-title: Table of Contents\n:toclevels: 4\n:source-highlighter: highlight\n:icons: font\n:sectnums: \n\n{empty} +\n\n.Welcome to Swarmlab.io\n****\nSwarmlab is a powerful collaboration tool that connects tutors and students in a unique all-in-one environment that gets work done fast and easily\nReady-to-Use Virtual Labs one click away.\n****\n\n== Chapter 1\n\n\n.NOTE\n[NOTE]\n====\nAssuming you\'re already logged in\n====\n\n\n=== Install docker\n\n\nTo Docker είναι μια πλατφόρμα λογισμικού ανοιχτού κώδικα που υλοποιεί Εικονικοποίηση (Virtualization) σε επίπεδο Λειτουργικού Συστήματος.\n\nTο Docker προσφέρει αυτοματοποιημένες διαδικασίες για την ανάπτυξη εφαρμογών σε απομονωμένες Περιοχές Χρήστη (User Spaces) που ονομάζονται Software Containers\n\nΤο λογισμικό χρησιμοποιεί τεχνολογιές του πυρήνα του Linux όπως τα cgroups και οι χώροι ονομάτων πυρήνα (kernel namespaces), για να επιτρέπει σε ανεξάρτητα software containers να εκτελούνται στο ίδιο λειτουργικό σύστημα.\n\nΈτσι αποφεύγεται η χρήση επιπλέον υπολογιστικών πόρων που θα απαιτούσε μια εικονική μηχανή (virtual machine).\nΟρισμός, βασικά χαρακτηριστικά και αρχιτεκτονικές IoT, εφαρμογές ΙοΤ, αντιδιαστολή με τον ιστό των αντικειμένων (Web of Things / WoT), προκλήσεις του IoT όπως προτυποποίηση, κλιμάκωση, μέγεθος συσκευών, κατανάλωση ενέργειας, διευθυνσιοδότηση, ασφάλεια/ιδιωτικότητα, ποιότητας υπηρεσιών, κινητικότητα κ.α\n\nMore Info +\nhttps://en.wikipedia.org/wiki/Docker_(software)[^]\n\n[[cheat-Dockervideo]]\n== docker Intro\n\n* Docker - Explained\n+\nvideo::wi-MGFhrad0[youtube]\n\n* How DOCKER works - Virtualization vs containerization\n+\nvideo::0e-KiGJIiDc[youtube]\n\n\n== Installation (Ubuntu)\n\n.Run with sudo\n[source,bash]\n----\ncurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -\nsudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"\nsudo apt update\n\nsudo apt install -y docker-ce\n echo "or"\nsudo apt install docker*\n\nsudo systemctl status docker\nsudo usermod -aG docker username #οπου username το όνομα του χρήστη που θα δουλεύει με docker\n----\n\n== Usage swarmlab.io DocLive\n\n\n- Open a console\n\n- Switch to the directory that contains *.adoc documents\n\n- Call the Asciidoctor processor with the command\n\n\n\n\n.If you need to convert only one file\n[TIP]\n====\n[source,bash]\n----\ndocker run --rm -v $(pwd):/documents/ registry.vlabs.uniwa.gr:5080/swarmlab-asciidoctor asciidoctor --safe -b html5 -a theme=flask -a toc2 -o ./path/to/FILENAME.html ./path/from/FILENAME.adoc\n----\nPlease note, there is a **.** in ./path\n====\n\n\n\n\n\n\n',this.$root.$emit("asciilive_template_add",this.SwarmabAsciiLabTemplate))}}}),E=D,B=(s("034f"),Object(x["a"])(E,o,a,!1,null,null,null)),F=B.exports,I=s("5f5b"),R=(s("f9e3"),s("2dd8"),s("5886"));n["default"].use(R["a"]),n["default"].use(I["a"]),n["default"].config.productionTip=!1,new n["default"]({render:function(t){return t(F)}}).$mount("#app")},"85ec":function(t,e,s){},9767:function(t,e,s){"use strict";var n=s("e1be"),o=s.n(n);o.a},e086:function(t,e,s){},e1be:function(t,e,s){},e454:function(t,e,s){}}); +//# sourceMappingURL=app.ee144f76.js.map \ No newline at end of file diff --git a/dist/js/app.ee144f76.js.map b/dist/js/app.ee144f76.js.map new file mode 100644 index 0000000..4259d1f --- /dev/null +++ b/dist/js/app.ee144f76.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/App.vue?7e02","webpack:///./src/components/doclive/runLlo.vue?dcee","webpack:///./src/App.vue?3a6a","webpack:///./src/components/DocLive.vue?11b4","webpack:///./src/components/doclive/runLlo.vue?7083","webpack:///src/components/doclive/runLlo.vue","webpack:///./src/components/doclive/runLlo.vue?9486","webpack:///./src/components/doclive/runLlo.vue?e78a","webpack:///./src/components/doclive/AdhocView.vue?0e94","webpack:///src/components/doclive/AdhocView.vue","webpack:///./src/components/doclive/AdhocView.vue?df6e","webpack:///./src/components/doclive/AdhocView.vue?9d30","webpack:///src/components/DocLive.vue","webpack:///./src/components/DocLive.vue?d98d","webpack:///./src/components/DocLive.vue","webpack:///src/App.vue","webpack:///./src/App.vue?1160","webpack:///./src/App.vue?bff9","webpack:///./src/main.js","webpack:///./src/components/doclive/AdhocView.vue?d223"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","_v","slot","on","$event","addtemplate","saveDocLive","moreFormats","staticStyle","staticRenderFns","directives","rawName","showmenou","expression","columnviewdefault","fullscreen","_e","_m","columncodedefault","class","columnview","columncode","htmlasciitmp","swarmlabllo","ssl","url_asciijshighlight","url_asciijs","url_asciicss","code","editchoice","optionsedit","searchLLOactive","ADOC_html_code","challenge","action","tryLLO","service","active","activecount","remove","activeField","bootstrap","firstbootstrap","datafile","datadir","LearningObject","asciidochtml","showllo","showlloedit","methods","handleChange","computed","beforeDestroy","component","$$selectedVal","Array","filter","target","options","selected","map","val","_value","multiple","setKeymap","_l","option","domProps","_s","text","cmOptions","keyMap","infoFilter","closelog","addlloasciisource","ref","onCmCursorActivity","onCmReady","onCmFocus","onCmCodeChange","cm","newCode","$root","$emit","codemirror","$refs","myCm","v","props","components","RunLlo","AdHoc","mounted","$off","DocLive","show","SwarmabAsciiLabTemplate","Vue","use","VueSweetalert2","BootstrapVue","config","productionTip","render","h","App","$mount"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAG/Be,GAAqBA,EAAoBhB,GAE5C,MAAMO,EAASC,OACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,EAAoBA,EAAoBC,EAAIN,EAAe,KAItE,OAAOD,EAIR,IAAIQ,EAAmB,GAKnBhB,EAAkB,CACrB,IAAO,GAGJK,EAAkB,GAGtB,SAASS,EAAoB1B,GAG5B,GAAG4B,EAAiB5B,GACnB,OAAO4B,EAAiB5B,GAAU6B,QAGnC,IAAIC,EAASF,EAAiB5B,GAAY,CACzCK,EAAGL,EACH+B,GAAG,EACHF,QAAS,IAUV,OANAf,EAAQd,GAAUW,KAAKmB,EAAOD,QAASC,EAAQA,EAAOD,QAASH,GAG/DI,EAAOC,GAAI,EAGJD,EAAOD,QAKfH,EAAoBM,EAAIlB,EAGxBY,EAAoBO,EAAIL,EAGxBF,EAAoBQ,EAAI,SAASL,EAASM,EAAMC,GAC3CV,EAAoBW,EAAER,EAASM,IAClC3B,OAAO8B,eAAeT,EAASM,EAAM,CAAEI,YAAY,EAAMC,IAAKJ,KAKhEV,EAAoBe,EAAI,SAASZ,GACX,qBAAXa,QAA0BA,OAAOC,aAC1CnC,OAAO8B,eAAeT,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DpC,OAAO8B,eAAeT,EAAS,aAAc,CAAEe,OAAO,KAQvDlB,EAAoBmB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQlB,EAAoBkB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,kBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKxC,OAAOyC,OAAO,MAGvB,GAFAvB,EAAoBe,EAAEO,GACtBxC,OAAO8B,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOlB,EAAoBQ,EAAEc,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRtB,EAAoB0B,EAAI,SAAStB,GAChC,IAAIM,EAASN,GAAUA,EAAOiB,WAC7B,WAAwB,OAAOjB,EAAO,YACtC,WAA8B,OAAOA,GAEtC,OADAJ,EAAoBQ,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRV,EAAoBW,EAAI,SAASgB,EAAQC,GAAY,OAAO9C,OAAOC,UAAUC,eAAeC,KAAK0C,EAAQC,IAGzG5B,EAAoB6B,EAAI,IAExB,IAAIC,EAAaC,OAAO,gBAAkBA,OAAO,iBAAmB,GAChEC,EAAmBF,EAAW3C,KAAKsC,KAAKK,GAC5CA,EAAW3C,KAAOf,EAClB0D,EAAaA,EAAWG,QACxB,IAAI,IAAItD,EAAI,EAAGA,EAAImD,EAAWjD,OAAQF,IAAKP,EAAqB0D,EAAWnD,IAC3E,IAAIU,EAAsB2C,EAI1BzC,EAAgBJ,KAAK,CAAC,EAAE,kBAEjBM,K,6ECvJT,yBAAwb,EAAG,G,oCCA3b,yBAA+d,EAAG,G,mGCA9d,EAAS,WAAa,IAAIyC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,MAAM,CAAC,GAAK,QAAQ,CAACF,EAAG,WAAW,CAACG,YAAY,mBAAmBD,MAAM,CAAC,WAAa,OAAO,CAACF,EAAG,kBAAkB,CAACE,MAAM,CAAC,OAAS,kBAAkBF,EAAG,iBAAiB,CAACG,YAAY,+CAA+C,CAACP,EAAIQ,GAAG,2BAA2BJ,EAAG,aAAa,CAACE,MAAM,CAAC,SAAS,GAAG,GAAK,iBAAiB,CAACF,EAAG,gBAAgBA,EAAG,eAAe,CAACG,YAAY,WAAW,CAACH,EAAG,aAAa,CAACE,MAAM,CAAC,KAAO,sGAAsG,OAAS,WAAW,CAACN,EAAIQ,GAAG,+BAA+BJ,EAAG,aAAa,CAACJ,EAAIQ,GAAG,SAASJ,EAAG,aAAa,CAACE,MAAM,CAAC,KAAO,+BAA+B,OAAS,iBAAiB,CAACN,EAAIQ,GAAG,oBAAoBJ,EAAG,aAAa,CAACJ,EAAIQ,GAAG,SAASJ,EAAG,aAAa,CAACE,MAAM,CAAC,KAAO,qEAAqE,OAAS,cAAc,CAACN,EAAIQ,GAAG,oBAAoBJ,EAAG,aAAa,CAACJ,EAAIQ,GAAG,SAASJ,EAAG,sBAAsB,CAACE,MAAM,CAAC,MAAQ,KAAK,CAACF,EAAG,WAAW,CAACK,KAAK,kBAAkB,CAACL,EAAG,KAAK,CAACJ,EAAIQ,GAAG,gBAAgBJ,EAAG,kBAAkB,CAACA,EAAG,SAAS,CAACG,YAAY,8BAA8BD,MAAM,CAAC,KAAO,SAAS,MAAQ,IAAII,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOX,EAAIY,YAAY,kBAAkB,CAACZ,EAAIQ,GAAG,qBAAqB,GAAGJ,EAAG,cAAcA,EAAG,SAAS,CAACG,YAAY,8BAA8BD,MAAM,CAAC,KAAO,SAAS,MAAQ,IAAII,GAAG,CAAC,MAAQV,EAAIa,cAAc,CAACb,EAAIQ,GAAG,kBAAkBJ,EAAG,SAAS,CAACG,YAAY,mCAAmCD,MAAM,CAAC,KAAO,SAAS,MAAQ,IAAII,GAAG,CAAC,MAAQV,EAAIc,cAAc,CAACd,EAAIQ,GAAG,oBAAoB,IAAI,IAAI,GAAGJ,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,OAAO,CAACF,EAAG,WAAW,CAACW,YAAY,CAAC,mBAAmB,cAAc,IAAI,IAAI,IAC7xDC,EAAkB,GCDlB,EAAS,WAAa,IAAIhB,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACa,WAAW,CAAC,CAAC1C,KAAK,OAAO2C,QAAQ,SAASlC,MAAwB,GAAjBgB,EAAImB,UAAgBC,WAAW,mBAAmBb,YAAY,OAAO,CAACH,EAAG,MAAM,CAACG,YAAY,SAAS,CAACH,EAAG,MAAM,CAACG,YAAY,sBAAsB,CAA2B,KAAzBP,EAAIqB,kBAA0BjB,EAAG,SAAS,CAACG,YAAY,qDAAqDD,MAAM,CAAC,KAAO,SAAS,MAAQ,IAAII,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOX,EAAIsB,WAAW,UAAU,CAACtB,EAAIQ,GAAG,yBAAyBR,EAAIuB,KAA+B,KAAzBvB,EAAIqB,kBAA0BjB,EAAG,SAAS,CAACG,YAAY,sDAAsDD,MAAM,CAAC,KAAO,SAAS,MAAQ,IAAII,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOX,EAAIsB,WAAW,UAAU,CAACtB,EAAIQ,GAAG,wBAAwBR,EAAIuB,SAASvB,EAAIwB,GAAG,GAAGpB,EAAG,MAAM,CAACG,YAAY,SAAS,CAACH,EAAG,MAAM,CAACG,YAAY,uBAAuB,CAA2B,KAAzBP,EAAIyB,kBAA0BrB,EAAG,SAAS,CAACG,YAAY,qDAAqDQ,YAAY,CAAC,MAAQ,SAAST,MAAM,CAAC,KAAO,SAAS,MAAQ,IAAII,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOX,EAAIsB,WAAW,cAAc,CAACtB,EAAIQ,GAAG,qBAAqBR,EAAIuB,KAA+B,KAAzBvB,EAAIyB,kBAA0BrB,EAAG,SAAS,CAACG,YAAY,qDAAqDQ,YAAY,CAAC,MAAQ,SAAST,MAAM,CAAC,KAAO,SAAS,MAAQ,IAAII,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOX,EAAIsB,WAAW,cAAc,CAACtB,EAAIQ,GAAG,oBAAoBR,EAAIuB,WAAWnB,EAAG,MAAM,CAACG,YAAY,OAAO,CAACH,EAAG,MAAM,CAACsB,MAAM1B,EAAI2B,YAAY,CAACvB,EAAG,UAAU,CAACW,YAAY,CAAC,mBAAmB,cAAc,GAAGX,EAAG,MAAM,CAACsB,MAAM1B,EAAI4B,YAAY,CAACxB,EAAG,SAAS,CAACW,YAAY,CAAC,mBAAmB,cAAc,QACvoD,EAAkB,CAAC,WAAa,IAAIf,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACG,YAAY,SAAS,CAACH,EAAG,Y,wBCDzI,EAAS,WAAa,IAAIJ,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAQF,EAAe,YAAEI,EAAG,QAAQ,CAACE,MAAM,CAAC,aAAa,GAAG,QAAQ,GAAG,QAAQ,KAAK,CAACF,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,KAAK,GAAK,KAAK,GAAK,OAAO,CAACF,EAAG,SAAS,CAACE,MAAM,CAAC,GAAK,eAAe,OAASN,EAAI6B,aAAa,MAAQ,OAAO,OAAS,MAAM,YAAc,IAAI,KAAO,sBAAsB,GAAG7B,EAAIuB,MACtX,EAAkB,G,+DCwBtB,GACE,WAAF,GAEE,KAHF,WAII,MAAO,CACLO,YAAa,kFACbC,IAAN,GACMC,qBAAN,CACA,+EAEMC,YAAN,CAGM,0EAEAC,aAAN,CACA,2EACA,mFACA,sFACA,8EAGMC,KAAM,GACNC,WAAY,GACZC,YAAa,CACnB,CAAQ,KAAR,OAAQ,MAAR,QACA,CAAQ,KAAR,OAAQ,MAAR,SAEA,UACQ,QAAR,GACQ,SAAR,GACQ,WAAR,GACQ,UAAR,KAEA,aACMC,iBAAN,EACMC,eAAN,GACMC,UAAN,GACMC,OAAN,GACMC,OAAN,GACMC,QAAN,MACMC,OAAN,EACMC,YAAN,EACMC,OAAN,GACMC,YAAN,GACMC,WAAN,EACMC,eAAN,EACMpB,aAAN,GACMqB,SAAU,mFACVC,QAAS,iBACTC,eAAN,GACMC,aAAN,GACMC,SAAN,EACMC,aAAN,EACA,mBACA,SACA,yBACA,kCAEM,WAAN,EACA,eAGEC,QAAS,CACP,UADJ,WACM,IAAN,OAAM,OAAN,kJACA,WACA,mBACA,UAEA,cACA,yCACA,4BAEA,+BACA,kBACA,mBAXA,8CAeI,YAhBJ,WAgBM,IAAN,OAAM,OAAN,0KAsCgB,IArChB,uBACA,SACA,OACA,UACA,WACA,kBANA,kBAgBgB,EAhBhB,2lBAgCgB,GAAhB,8CAKgB,EAAhB,8BACA,YACkB,EAAlB,iCACkB,EAAlB,uBACkB,EAAlB,8BACkB,EAAlB,oBAOgB,IADA,EAAhB,sBACA,YACkB,EAAlB,+BACkB,EAAlB,iBACkB,EAAlB,uBACkB,EAAlB,oBAiCgB,IA1BA,EA5DhB,i5BA4EgB,EAAhB,iCACgB,EAAhB,uBACgB,EAAhB,YACgB,EAAhB,oBAKgB,EAAhB,qBAEA,YACkB,EAAlB,iCACkB,EAAlB,uBACkB,EAAlB,qBACkB,EAAlB,yCACkB,EAAlB,qCACkB,EAAlB,kBAOgB,EAAhB,iCACgB,EAAhB,uBACgB,EAAhB,oCACgB,EAAhB,oBAKgB,EAAhB,kBACgB,EAAhB,oCAQgB,EAAhB,aApHA,4DAyHgB,QAAhB,wCAzHA,uFAkIA,iDAlIA,uFAsIA,YAtJA,WAsJA,oKACA,SACgB,QAAhB,4CAFA,SAQA,QACgB,EAAhB,YACA,CACkB,YAAlB,EACkB,QAAlB,QACkB,eAAlB,EACkB,QAAlB,UACkB,KAAlB,OACkB,WAAlB,CACoB,qBAApB,cAEoB,cAApB,EACoB,UAApB,EACoB,UAApB,EACoB,MAApB,OACoB,SAApB,EACoB,WAApB,sFACoB,eAApB,6EACoB,gBAApB,qBACoB,mBAApB,EACoB,SAApB,KA5BA,sDAkCA,EAlCA,gCAsCgB,QAAhB,kCACgB,EAAhB,eACgB,EAAhB,eACA,0GAzCA,4DA8CgB,QAAhB,uCA9CA,gFAoDIC,aA1MJ,cA6MEC,SAAU,GAGZ,QA/QA,WA+QA,WACA,4CACM,EAAN,OACM,EAAN,iBAEA,6CACM,EAAN,gBAIEC,cAzRF,WA0RA,iCACA,mCAGA,QA9RA,WA+RI,KAAJ,gBCxT+V,I,wBCQ3VC,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIa,EAAAA,E,QCnBX,EAAS,WAAa,IAAI5D,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAAEJ,EAAe,YAAEI,EAAG,QAAQ,CAACE,MAAM,CAAC,aAAa,GAAG,QAAQ,GAAG,QAAQ,KAAK,CAACF,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,KAAK,GAAK,KAAK,GAAK,OAAO,CAACF,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,MAAM,CAACF,EAAG,MAAM,CAACG,YAAY,mCAAmC,CAACH,EAAG,SAAS,CAACa,WAAW,CAAC,CAAC1C,KAAK,QAAQ2C,QAAQ,UAAUlC,MAAOgB,EAAY,SAAEoB,WAAW,aAAab,YAAY,kCAAkCG,GAAG,CAAC,OAAS,CAAC,SAASC,GAAQ,IAAIkD,EAAgBC,MAAMjH,UAAUkH,OAAOhH,KAAK4D,EAAOqD,OAAOC,SAAQ,SAASxF,GAAG,OAAOA,EAAEyF,YAAWC,KAAI,SAAS1F,GAAG,IAAI2F,EAAM,WAAY3F,EAAIA,EAAE4F,OAAS5F,EAAEO,MAAM,OAAOoF,KAAOpE,EAAIkE,SAASvD,EAAOqD,OAAOM,SAAWT,EAAgBA,EAAc,IAAI7D,EAAIuE,aAAavE,EAAIwE,GAAIxE,EAAW,SAAE,SAASyE,GAAQ,OAAOrE,EAAG,SAAS,CAACsE,SAAS,CAAC,MAAQD,EAAOzF,QAAQ,CAACgB,EAAIQ,GAAG,IAAIR,EAAI2E,GAAGF,EAAOG,MAAM,UAAS,GAAGxE,EAAG,MAAM,CAACG,YAAY,sBAAsB,CAA0B,WAAxBP,EAAI6E,UAAUC,OAAqB1E,EAAG,SAAS,CAACG,YAAY,8BAA8BD,MAAM,CAAC,KAAO,SAAS,MAAQ,IAAII,GAAG,CAAC,MAAQV,EAAI+E,aAAa,CAAC/E,EAAIQ,GAAG,QAAQR,EAAIuB,WAAWnB,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,MAAM,CAACF,EAAG,MAAM,CAACG,YAAY,0DAA0DH,EAAG,MAAM,CAACG,YAAY,yDAAyD,CAACH,EAAG,MAAM,CAACG,YAAY,sBAAsB,CAAEP,EAAI0C,OAAO1C,EAAI4C,QAASxC,EAAG,SAAS,CAACG,YAAY,iCAAiCD,MAAM,CAAC,KAAO,SAAS,MAAQ,IAAII,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOX,EAAIgF,SAAShF,EAAIV,QAAQ,CAACU,EAAIQ,GAAG,YAAYR,EAAIuB,OAAOnB,EAAG,MAAM,CAACG,YAAY,sBAAsB,CAAEP,EAAI0C,OAAO1C,EAAI4C,QAASxC,EAAG,SAAS,CAACG,YAAY,8BAA8BD,MAAM,CAAC,KAAO,UAAUI,GAAG,CAAC,MAAQV,EAAIiF,oBAAoB,CAACjF,EAAIQ,GAAG,kBAAkBR,EAAIuB,YAAY,GAAGnB,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,aAAa,CAAC8E,IAAI,OAAO5E,MAAM,CAAC,MAAQN,EAAImC,KAAK,QAAUnC,EAAI6E,WAAWnE,GAAG,CAAC,eAAiBV,EAAImF,mBAAmB,MAAQnF,EAAIoF,UAAU,MAAQpF,EAAIqF,UAAU,MAAQrF,EAAIsF,mBAAmB,IAAI,IAAI,GAAGtF,EAAIuB,MAAM,IAChiE,EAAkB,G,YCuHtB,G,wRAAA,CACE,WAAF,CACA,4BAEE,KAJF,WAKI,MAAO,CACLO,YAAa,kFACbC,IAAN,GACMC,qBAAN,CACA,+EAEMC,YAAN,CAGM,0EAEAC,aAAN,CACA,2EACA,mFACA,sFACA,8EAGMC,KAAM,SACNC,WAAY,GACZC,YAAa,CACnB,CAAQ,KAAR,OAAQ,MAAR,QACA,CAAQ,KAAR,OAAQ,MAAR,SAEA,UACQ,QAAR,GACQ,SAAR,GACQ,WAAR,GACQ,UAAR,KAEA,MACQ,GAAR,EACQ,IAAR,EACQ,UAAR,cACQ,UAAR,oBACQ,aAAR,GACQ,cAAR,MACQ,UAAR,GACQ,UAAR,GACQ,aAAR,GACQ,UAAR,GACQ,UAAR,GACQ,UAAR,GACQ,aAAR,GACQ,gBAAR,UACQ,OAAR,GACQ,mBAAR,GACQ,wBAAR,GACQ,iBAAR,GACQ,sBAAR,GACQ,2BAAR,GACQ,wBAAR,GACQ,0BAAR,GACQ,sBAAR,GACQ,2BAAR,KAEA,aACMC,iBAAN,EACMC,eAAN,GACMC,UAAN,GACMC,OAAN,GACMC,OAAN,GACMC,QAAN,MACMC,OAAN,EACMC,YAAN,EACMC,OAAN,GACMC,YAAN,GACMC,WAAN,EACMC,eAAN,EACMpB,aAAN,GACMqB,SAAU,mFACVC,QAAS,iBACTC,eAAN,GACME,SAAN,EACMC,aAAN,EACA,mBACA,SACA,yBACA,kCAEA,aACA,yBACA,uCACA,+BACA,yBACA,yBACA,yBACA,sBAEM,WAAN,EACA,WACA,UACA,mBACA,eACA,mBACA,QACA,cACA,2DACA,gEACA,qBACA,aACA,aACA,mBAEA,iBAEA,iBACA,2BACA,+BACA,gBACA,aACA,WACA,aACA,iCAEA,eAGEC,QAAS,CACX,WADA,SACA,2JACA,eADA,8CAGI4B,UAJJ,SAIA,GACMG,EAAG7E,GAAG,UAAU,SAAtB,SAEA,4BACQ,EAAR,UAAU,gBAAV,QAGIyE,mBAXJ,SAWA,SAEIE,UAbJ,SAaA,KAEIC,eAfJ,SAeA,GACMrF,KAAKkC,KAAOqD,EACZvF,KAAKwF,MAAMC,MAAM,gBAAvB,YAEIjC,aAnBJ,aAqBIc,UArBJ,WAsBMtE,KAAK4E,UAAUC,OAAS7E,KAAKiE,UAEnC,WAxBA,WAyBA,iCACA,61IAwDA,GADA,KACA,IACA,YACA,+CACA,YACA,WACA,mBACA,uBACA,yBAKER,SAAU,CACRiC,WADJ,WAEM,OAAO1F,KAAK2F,MAAMC,KAAKF,aAI7B,QA/NA,WA+NA,WACA,qDACA,wBACQ1F,KAAKkC,KAAO2D,SAKlBnC,cAvOF,WAwOA,oDAGA,QA3OA,eCxHkW,ICQ9V,G,UAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,OAIa,I,QC2Df,GACEpF,KAAM,UACNwH,MAAO,GAEPC,WAAY,CACVC,OAAJ,EACIC,MAAJ,GAEE/J,KARF,WASI,MAAJ,CACM,SAAN,EACM,YAAN,EACM,aAAN,EACM,UAAN,EACM,kBAAN,EACM,kBAAN,EACM,WAAN,oBACM,WAAN,mBACM,WAAN,YAGE,QAAF,aAEEgK,QAvBF,WAuBA,WACI,KAAJ,8CACM,EAAN,eAEA,wDACM,EAAN,kBAGE,cA/BF,WAgCIlG,KAAKwF,MAAMW,KAAK,yBACpB,4CAEA,SACI,WADJ,SACA,GACA,UACQ,KAAR,gCACQ,KAAR,8BACQ,KAAR,oBACQ,KAAR,oBAEQ,KAAR,6CACQ,QAAR,sBAEA,UACQ,KAAR,+BACQ,KAAR,8BACQ,KAAR,oBACQ,KAAR,oBAEQ,KAAR,6CACQ,QAAR,sBAEA,cACQ,KAAR,+BACQ,KAAR,+BACQ,KAAR,oBACQ,KAAR,oBACQ,QAAR,sBAEA,eACQ,KAAR,+BACQ,KAAR,8BACQ,KAAR,oBACQ,KAAR,oBACQ,KAAR,6CACQ,QAAR,uBAGI,SApCJ,SAoCA,GAAM,IAAN,OAAM,OAAN,qDAAQ,OAAR,qCAAU,MAAV,+BACA,qBADA,gDCrJiV,ICO7U,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,MAIa,I,QCsEf,G,UAAA,CACE7H,KAAM,MACNyH,WAAY,CACVK,QAAJ,GAEElK,KALF,WAMI,MAAO,CACLmK,MAAM,EACNC,wBAAN,KAGA,QAXA,aAaE/C,QAAS,CACP3C,YADJ,WAEMZ,KAAKwF,MAAMC,MAAM,iBAAvB,SAEI9E,YAJJ,SAIA,GACA,mBAEQ,KAAR,6uFAuGQ,KAAR,wECnN8T,ICQ1T,G,UAAY,eACd,EACA,EACAI,GACA,EACA,KACA,KACA,OAIa,I,sDCbfwF,aAAIC,IAAIC,QAKRF,aAAIC,IAAIE,QAERH,aAAII,OAAOC,eAAgB,EAE3B,IAAIL,aAAI,CACNM,OAAQ,SAAAC,GAAC,OAAIA,EAAEC,MACdC,OAAO,S,2DCjBV,yBAAke,EAAG,G","file":"js/app.ee144f76.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import mod from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=css&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./runLlo.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./runLlo.vue?vue&type=style&index=0&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('b-navbar',{staticClass:\"navbar-secondary\",attrs:{\"toggleable\":\"md\"}},[_c('b-navbar-toggle',{attrs:{\"target\":\"nav_collapse\"}}),_c('b-navbar-brand',{staticClass:\"logo simple-text ti-swarmlab text-secondary\"},[_vm._v(\" Swarmlab.io Doclive \")]),_c('b-collapse',{attrs:{\"is-nav\":\"\",\"id\":\"nav_collapse\"}},[_c('b-navbar-nav'),_c('b-navbar-nav',{staticClass:\"ml-auto\"},[_c('b-nav-item',{attrs:{\"href\":\"http://docs.swarmlab.io/SwarmLab-HowTos/labs/Howtos/asciidoc/AsciiDocSyntaxQuickReference.adoc.html\",\"target\":\"_ascii\"}},[_vm._v(\" Asciidoc_QuickReference \")]),_c('b-nav-item',[_vm._v(\" | \")]),_c('b-nav-item',{attrs:{\"href\":\"https://git.swarmlab.io:3000\",\"target\":\"_swarmlabgit\"}},[_vm._v(\" Swarmlab_git \")]),_c('b-nav-item',[_vm._v(\" | \")]),_c('b-nav-item',{attrs:{\"href\":\"https://api-client.swarmlab.io:8088/#/signin?redirect=%2Fdashboard\",\"target\":\"_swarmlab\"}},[_vm._v(\" Lab_onDemand \")]),_c('b-nav-item',[_vm._v(\" | \")]),_c('b-nav-item-dropdown',{attrs:{\"right\":\"\"}},[_c('template',{slot:\"button-content\"},[_c('em',[_vm._v(\"Template\")])]),_c('b-dropdown-item',[_c('button',{staticClass:\"btn btn-outline-info btn-sm\",attrs:{\"type\":\"button\",\"round\":\"\"},on:{\"click\":function($event){return _vm.addtemplate('LabTemplate')}}},[_vm._v(\" LabTemplate\")])])],2),_c('b-nav-item'),_c('button',{staticClass:\"btn btn-outline-info btn-sm\",attrs:{\"type\":\"button\",\"round\":\"\"},on:{\"click\":_vm.saveDocLive}},[_vm._v(\" Save As Zip\")]),_c('button',{staticClass:\"btn btn-outline-secondary btn-sm\",attrs:{\"type\":\"button\",\"round\":\"\"},on:{\"click\":_vm.moreFormats}},[_vm._v(\" More Formats\")])],1)],1)],1),_c('b-row',[_c('b-col',{attrs:{\"cols\":\"12\"}},[_c('doc-live',{staticStyle:{\"background-color\":\"#f8f9fa\"}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showmenou == 1),expression:\"showmenou == 1\"}],staticClass:\"row\"},[_c('div',{staticClass:\"col-3\"},[_c('div',{staticClass:\"input-group-append\"},[(_vm.columnviewdefault == '0')?_c('button',{staticClass:\"ti-layout-sidebar-none btn btn-outline-info btn-sm\",attrs:{\"type\":\"button\",\"round\":\"\"},on:{\"click\":function($event){return _vm.fullscreen('max')}}},[_vm._v(\" Max-Notebook View \")]):_vm._e(),(_vm.columnviewdefault == '1')?_c('button',{staticClass:\"ti-layout-sidebar-right btn btn-outline-info btn-sm\",attrs:{\"type\":\"button\",\"round\":\"\"},on:{\"click\":function($event){return _vm.fullscreen('min')}}},[_vm._v(\" Min-Notebook View\")]):_vm._e()])]),_vm._m(0),_c('div',{staticClass:\"col-3\"},[_c('div',{staticClass:\"input-group-prepend\"},[(_vm.columncodedefault == '0')?_c('button',{staticClass:\"ti-layout-sidebar-none btn btn-outline-info btn-sm\",staticStyle:{\"float\":\"right\"},attrs:{\"type\":\"button\",\"round\":\"\"},on:{\"click\":function($event){return _vm.fullscreen('codemax')}}},[_vm._v(\" Max-Code View \")]):_vm._e(),(_vm.columncodedefault == '1')?_c('button',{staticClass:\"ti-layout-sidebar-left btn btn-outline-info btn-sm\",staticStyle:{\"float\":\"right\"},attrs:{\"type\":\"button\",\"round\":\"\"},on:{\"click\":function($event){return _vm.fullscreen('codemin')}}},[_vm._v(\" Min-Code View\")]):_vm._e()])])]),_c('div',{staticClass:\"row\"},[_c('div',{class:_vm.columnview},[_c('run-llo',{staticStyle:{\"background-color\":\"#f8f9fa\"}})],1),_c('div',{class:_vm.columncode},[_c('ad-hoc',{staticStyle:{\"background-color\":\"#f8f9fa\"}})],1)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"col-6\"},[_c('span')])}]\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.showlloedit)?_c('b-row',{attrs:{\"no-gutters\":\"\",\"w-100\":\"\",\"h-100\":\"\"}},[_c('b-col',{attrs:{\"cols\":\"12\",\"sm\":\"12\",\"md\":\"12\"}},[_c('iframe',{attrs:{\"id\":\"llocontainer\",\"srcdoc\":_vm.htmlasciitmp,\"width\":\"100%\",\"height\":\"750\",\"frameBorder\":\"0\",\"name\":\"Forgot_Iframe\"}})])],1):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./runLlo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./runLlo.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./runLlo.vue?vue&type=template&id=65021660&\"\nimport script from \"./runLlo.vue?vue&type=script&lang=js&\"\nexport * from \"./runLlo.vue?vue&type=script&lang=js&\"\nimport style0 from \"./runLlo.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showlloedit)?_c('b-row',{attrs:{\"no-gutters\":\"\",\"w-100\":\"\",\"h-100\":\"\"}},[_c('b-col',{attrs:{\"cols\":\"12\",\"sm\":\"12\",\"md\":\"12\"}},[_c('b-row',[_c('b-col',{attrs:{\"cols\":\"5\"}},[_c('div',{staticClass:\"input-group input-group-sm sm-3\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selected),expression:\"selected\"}],staticClass:\"custom-select custom-select-sm \",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selected=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.setKeymap]}},_vm._l((_vm.options),function(option){return _c('option',{domProps:{\"value\":option.value}},[_vm._v(\" \"+_vm._s(option.text)+\" \")])}),0),_c('div',{staticClass:\"input-group-append\"},[(_vm.cmOptions.keyMap == 'sublime')?_c('button',{staticClass:\"btn btn-outline-info btn-sm\",attrs:{\"type\":\"button\",\"round\":\"\"},on:{\"click\":_vm.infoFilter}},[_vm._v(\" i\")]):_vm._e()])])]),_c('b-col',{attrs:{\"cols\":\"7\"}},[_c('div',{staticClass:\"input-group input-group-sm d-flex justify-content-end\"}),_c('div',{staticClass:\"input-group input-group-sm d-flex justify-content-end\"},[_c('div',{staticClass:\"input-group-append\"},[(_vm.tryLLO[_vm.active])?_c('button',{staticClass:\"btn btn-outline-warning btn-sm\",attrs:{\"type\":\"button\",\"round\":\"\"},on:{\"click\":function($event){return _vm.closelog(_vm.key)}}},[_vm._v(\" Close\")]):_vm._e()]),_c('div',{staticClass:\"input-group-append\"},[(_vm.tryLLO[_vm.active])?_c('button',{staticClass:\"btn btn-outline-dark btn-sm\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.addlloasciisource}},[_vm._v(\"Create task!\")]):_vm._e()])])])],1),_c('div',{staticClass:\"codemirror\"},[_c('codemirror',{ref:\"myCm\",attrs:{\"value\":_vm.code,\"options\":_vm.cmOptions},on:{\"cursorActivity\":_vm.onCmCursorActivity,\"ready\":_vm.onCmReady,\"focus\":_vm.onCmFocus,\"input\":_vm.onCmCodeChange}})],1)],1)],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AdhocView.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AdhocView.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AdhocView.vue?vue&type=template&id=4728e9cd&\"\nimport script from \"./AdhocView.vue?vue&type=script&lang=js&\"\nexport * from \"./AdhocView.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AdhocView.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DocLive.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DocLive.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DocLive.vue?vue&type=template&id=6b2c0280&scoped=true&\"\nimport script from \"./DocLive.vue?vue&type=script&lang=js&\"\nexport * from \"./DocLive.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6b2c0280\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=d75cae6a&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\nimport App from './App.vue'\nimport BootstrapVue from 'bootstrap-vue'\nimport 'bootstrap/dist/css/bootstrap.css'\nimport 'bootstrap-vue/dist/bootstrap-vue.css'\nimport VueSweetalert2 from 'vue-sweetalert2';\nVue.use(VueSweetalert2);\n\n\n//eslint-disable \n\nVue.use(BootstrapVue);\n\nVue.config.productionTip = false\n\nnew Vue({\n render: h => h(App)\n}).$mount('#app')\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AdhocView.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AdhocView.vue?vue&type=style&index=0&lang=css&\""],"sourceRoot":""} \ No newline at end of file diff --git a/dist/js/chunk-vendors.f8c3f4a6.js b/dist/js/chunk-vendors.f8c3f4a6.js new file mode 100644 index 0000000..5d1a1e1 --- /dev/null +++ b/dist/js/chunk-vendors.f8c3f4a6.js @@ -0,0 +1,65 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"02f0":function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";t.defineMode("shell",(function(){var e={};function n(t,n){for(var r=0;r1&&t.eat("$");var n=t.next();return/['"({]/.test(n)?(e.tokens[0]=s(n,"("==n?"quote":"{"==n?"def":"string"),u(t,e)):(/\d/.test(n)||t.eatWhile(/\w/),e.tokens.shift(),"def")};function u(t,e){return(e.tokens[0]||a)(t,e)}return{startState:function(){return{tokens:[]}},token:function(t,e){return u(t,e)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}})),t.defineMIME("text/x-sh","shell"),t.defineMIME("application/x-sh","shell")}))},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),l=n("5135"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;e.f=r?u:function(t,e){if(t=a(t),e=s(e,!0),c)try{return u(t,e)}catch(n){}if(l(t,e))return o(!i.f.call(t,e),t[e])}},"0b6c":function(t,e,n){(function(t){t(n("56b3"),n("b933"),n("2aed"))})((function(t){"use strict";function e(t,e){return"string"==typeof t?t=new RegExp(t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e?"gi":"g"):t.global||(t=new RegExp(t.source,t.ignoreCase?"gi":"g")),{token:function(e){t.lastIndex=e.pos;var n=t.exec(e.string);if(n&&n.index==e.pos)return e.pos+=n[0].length||1,"searching";n?e.pos=n.index:e.skipToEnd()}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function r(t){return t.state.search||(t.state.search=new n)}function i(t){return"string"==typeof t&&t==t.toLowerCase()}function o(t,e,n){return t.getSearchCursor(e,n,{caseFold:i(e),multiline:!0})}function a(t,e,n,r,i){t.openDialog(e,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){p(t)},onKeyDown:i})}function s(t,e,n,r,i){t.openDialog?t.openDialog(e,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function l(t,e,n,r){t.openConfirm?t.openConfirm(e,r):confirm(n)&&r[0]()}function c(t){return t.replace(/\\([nrt\\])/g,(function(t,e){return"n"==e?"\n":"r"==e?"\r":"t"==e?"\t":"\\"==e?"\\":t}))}function u(t){var e=t.match(/^\/(.*)\/([a-z]*)$/);if(e)try{t=new RegExp(e[1],-1==e[2].indexOf("i")?"":"i")}catch(n){}else t=c(t);return("string"==typeof t?""==t:t.test(""))&&(t=/x^/),t}function d(t,n,r){n.queryText=r,n.query=u(r),t.removeOverlay(n.overlay,i(n.query)),n.overlay=e(n.query,i(n.query)),t.addOverlay(n.overlay),t.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=t.showMatchesOnScrollbar(n.query,i(n.query)))}function f(e,n,i,o){var l=r(e);if(l.query)return h(e,n);var c=e.getSelection()||l.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),i&&e.openDialog){var u=null,f=function(n,r){t.e_stop(r),n&&(n!=l.queryText&&(d(e,l,n),l.posFrom=l.posTo=e.getCursor()),u&&(u.style.opacity=1),h(e,r.shiftKey,(function(t,n){var r;n.line<3&&document.querySelector&&(r=e.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>e.cursorCoords(n,"window").top&&((u=r).style.opacity=.4)})))};a(e,$(e),c,f,(function(n,i){var o=t.keyName(n),a=e.getOption("extraKeys"),s=a&&a[o]||t.keyMap[e.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(t.e_stop(n),d(e,r(e),i),e.execCommand(s)):"find"!=s&&"findPersistent"!=s||(t.e_stop(n),f(i,n))})),o&&c&&(d(e,l,c),h(e,n))}else s(e,$(e),"Search for:",c,(function(t){t&&!l.query&&e.operation((function(){d(e,l,t),l.posFrom=l.posTo=e.getCursor(),h(e,n)}))}))}function h(e,n,i){e.operation((function(){var a=r(e),s=o(e,a.query,n?a.posFrom:a.posTo);(s.find(n)||(s=o(e,a.query,n?t.Pos(e.lastLine()):t.Pos(e.firstLine(),0)),s.find(n)))&&(e.setSelection(s.from(),s.to()),e.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),i&&i(s.from(),s.to()))}))}function p(t){t.operation((function(){var e=r(t);e.lastQuery=e.query,e.query&&(e.query=e.queryText=null,t.removeOverlay(e.overlay),e.annotate&&(e.annotate.clear(),e.annotate=null))}))}function $(t){return''+t.phrase("Search:")+' '+t.phrase("(Use /re/ syntax for regexp search)")+""}function m(t){return' '+t.phrase("(Use /re/ syntax for regexp search)")+""}function g(t){return''+t.phrase("With:")+' '}function v(t){return''+t.phrase("Replace?")+" "}function y(t,e,n){t.operation((function(){for(var r=o(t,e);r.findNext();)if("string"!=typeof e){var i=t.getRange(r.from(),r.to()).match(e);r.replace(n.replace(/\$(\d)/g,(function(t,e){return i[e]})))}else r.replace(n)}))}function _(t,e){if(!t.getOption("readOnly")){var n=t.getSelection()||r(t).lastQuery,i=''+(e?t.phrase("Replace all:"):t.phrase("Replace:"))+"";s(t,i+m(t),i,n,(function(n){n&&(n=u(n),s(t,g(t),t.phrase("Replace with:"),"",(function(r){if(r=c(r),e)y(t,n,r);else{p(t);var i=o(t,n,t.getCursor("from")),a=function(){var e,c=i.from();!(e=i.findNext())&&(i=o(t,n),!(e=i.findNext())||c&&i.from().line==c.line&&i.from().ch==c.ch)||(t.setSelection(i.from(),i.to()),t.scrollIntoView({from:i.from(),to:i.to()}),l(t,v(t),t.phrase("Replace?"),[function(){s(e)},a,function(){y(t,n,r)}]))},s=function(t){i.replace("string"==typeof n?r:r.replace(/\$(\d)/g,(function(e,n){return t[n]}))),a()};a()}})))}))}}t.commands.find=function(t){p(t),f(t)},t.commands.findPersistent=function(t){p(t),f(t,!1,!0)},t.commands.findPersistentNext=function(t){f(t,!1,!0,!0)},t.commands.findPersistentPrev=function(t){f(t,!0,!0,!0)},t.commands.findNext=f,t.commands.findPrev=function(t){f(t,!0)},t.commands.clearSearch=p,t.commands.replace=_,t.commands.replaceAll=function(t){_(t,!0)}}))},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"164b":function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";t.registerGlobalHelper("fold","comment",(function(t){return t.blockCommentStart&&t.blockCommentEnd}),(function(e,n){var r=e.getModeAt(n),i=r.blockCommentStart,o=r.blockCommentEnd;if(i&&o){for(var a,s=n.line,l=e.getLine(s),c=n.ch,u=0;;){var d=c<=0?-1:l.lastIndexOf(i,c-1);if(-1!=d){if(1==u&&d0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function u(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function d(t,e,n){return 3*(e+n)/4-n}function f(t){var e,n,r=c(t),a=r[0],s=r[1],l=new o(d(t,a,s)),u=0,f=s>0?a-4:a;for(n=0;n>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[u++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function h(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function p(t,e,n){for(var r,i=[],o=e;ol?l:s+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"21a6":function(t,e,n){(function(n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})(0,(function(){"use strict";function e(t,e){return"undefined"==typeof e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function r(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){s(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function o(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(t,e,n){var s=a.URL||a.webkitURL,l=document.createElement("a");e=e||t.name||"download",l.download=e,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?o(l):i(l.href)?r(t,e,n):o(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,a){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,a),n);else if(i(t))r(t,n,a);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){o(s)}))}}:function(t,e,n,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return r(t,e,n);var o="application/octet-stream"===t.type,s=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&s)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},c.readAsDataURL(t)}else{var u=a.URL||a.webkitURL,d=u.createObjectURL(t);i?i.location=d:location.href=d,i=null,setTimeout((function(){u.revokeObjectURL(d)}),4e4)}});a.saveAs=s.saveAs=s,t.exports=s}))}).call(this,n("c8ba"))},2266:function(t,e,n){var r=n("825a"),i=n("e95a"),o=n("50c4"),a=n("0366"),s=n("35a1"),l=n("9bdd"),c=function(t,e){this.stopped=t,this.result=e},u=t.exports=function(t,e,n,u,d){var f,h,p,$,m,g,v,y=a(e,n,u?2:1);if(d)f=t;else{if(h=s(t),"function"!=typeof h)throw TypeError("Target is not iterable");if(i(h)){for(p=0,$=o(t.length);$>p;p++)if(m=u?y(r(v=t[p])[0],v[1]):y(t[p]),m&&m instanceof c)return m;return new c(!1)}f=h.call(t)}g=f.next;while(!(v=g.call(f)).done)if(m=l(f,y,v.value,u),"object"==typeof m&&m&&m instanceof c)return m;return new c(!1)};u.stop=function(t){return new c(!0,t)}},"23cb":function(t,e,n){var r=n("a691"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23de":function(t,e,n){(function(t){t(n("56b3"),n("715d"))})((function(t){"use strict";var e={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function n(t){for(var n in this.options={},e)this.options[n]=(t&&t.hasOwnProperty(n)?t:e)[n];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}function r(t){var e=t.state.matchHighlighter;(e.active||t.hasFocus())&&o(t,e)}function i(t){var e=t.state.matchHighlighter;e.active||(e.active=!0,o(t,e))}function o(t,e){clearTimeout(e.timeout),e.timeout=setTimeout((function(){l(t)}),e.options.delay)}function a(t,e,n,r){var i=t.state.matchHighlighter;if(t.addOverlay(i.overlay=d(e,n,r)),i.options.annotateScrollbar&&t.showMatchesOnScrollbar){var o=n?new RegExp((/\w/.test(e.charAt(0))?"\\b":"")+e.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(e.charAt(e.length-1))?"\\b":"")):e;i.matchesonscroll=t.showMatchesOnScrollbar(o,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function s(t){var e=t.state.matchHighlighter;e.overlay&&(t.removeOverlay(e.overlay),e.overlay=null,e.matchesonscroll&&(e.matchesonscroll.clear(),e.matchesonscroll=null))}function l(t){t.operation((function(){var e=t.state.matchHighlighter;if(s(t),t.somethingSelected()||!e.options.showToken){var n=t.getCursor("from"),r=t.getCursor("to");if(n.line==r.line&&(!e.options.wordsOnly||c(t,n,r))){var i=t.getRange(n,r);e.options.trim&&(i=i.replace(/^\s+|\s+$/g,"")),i.length>=e.options.minChars&&a(t,i,!1,e.options.style)}}else{var o=!0===e.options.showToken?/[\w$]/:e.options.showToken,l=t.getCursor(),u=t.getLine(l.line),d=l.ch,f=d;while(d&&o.test(u.charAt(d-1)))--d;while(f0){var i={line:e.line,ch:e.ch-1},o=t.getRange(i,e);if(null===o.match(/\W/))return!1}if(n.ch=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function $(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function _(t,e){return y.call(t,e)}function b(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var w=/-(\w)/g,x=b((function(t){return t.replace(w,(function(t,e){return e?e.toUpperCase():""}))})),k=b((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),S=/\B([A-Z])/g,O=b((function(t){return t.replace(S,"-$1").toLowerCase()}));function C(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function A(t,e){return t.bind(e)}var E=Function.prototype.bind?A:C;function T(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function P(t,e){for(var n in e)t[n]=e[n];return t}function B(t){for(var e={},n=0;n0,nt=Q&&Q.indexOf("edge/")>0,rt=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===J),it=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),ot={}.watch,at=!1;if(X)try{var st={};Object.defineProperty(st,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,st)}catch(xa){}var lt=function(){return void 0===Y&&(Y=!X&&!Z&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),Y},ct=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"===typeof t&&/native code/.test(t.toString())}var dt,ft="undefined"!==typeof Symbol&&ut(Symbol)&&"undefined"!==typeof Reflect&&ut(Reflect.ownKeys);dt="undefined"!==typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ht=L,pt=0,$t=function(){this.id=pt++,this.subs=[]};$t.prototype.addSub=function(t){this.subs.push(t)},$t.prototype.removeSub=function(t){v(this.subs,t)},$t.prototype.depend=function(){$t.target&&$t.target.addDep(this)},$t.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===O(t)){var l=te(String,i.type);(l<0||s0&&(a=Ce(a,(e||"")+"_"+n),Oe(a[0])&&Oe(c)&&(u[l]=wt(c.text+a[0].text),a.shift()),u.push.apply(u,a)):s(a)?Oe(c)?u[l]=wt(c.text+a):""!==a&&u.push(wt(a)):Oe(a)&&Oe(c)?u[l]=wt(c.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),u.push(a)));return u}function Ae(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Ee(t){var e=Te(t.$options.inject,t);e&&(Et(!1),Object.keys(e).forEach((function(n){It(t,n,e[n])})),Et(!0))}function Te(t,e){if(t){for(var n=Object.create(null),r=ft?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=Ie(e,l,t[l]))}else i={};for(var c in e)c in i||(i[c]=De(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),q(i,"$stable",a),q(i,"$key",s),q(i,"$hasNormal",o),i}function Ie(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Se(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function De(t,e){return function(){return t[e]}}function Re(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r1?T(n):n;for(var r=T(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;odocument.createEvent("Event").timeStamp&&(Yn=function(){return Kn.now()})}function Xn(){var t,e;for(Gn=Yn(),Un=!0,Nn.sort((function(t,e){return t.id-e.id})),qn=0;qnqn&&Nn[n].id>t.id)n--;Nn.splice(n+1,0,t)}else Nn.push(t);Vn||(Vn=!0,pe(Xn))}}var er=0,nr=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new dt,this.newDepIds=new dt,this.expression="","function"===typeof e?this.getter=e:(this.getter=G(e),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var t;gt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(xa){if(!this.user)throw xa;ee(xa,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&me(t),vt(),this.cleanupDeps()}return t},nr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},nr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(xa){ee(xa,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:L,set:L};function ir(t,e,n){rr.get=function(){return this[e][n]},rr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,rr)}function or(t){t._watchers=[];var e=t.$options;e.props&&ar(t,e.props),e.methods&&pr(t,e.methods),e.data?sr(t):Lt(t._data={},!0),e.computed&&ur(t,e.computed),e.watch&&e.watch!==ot&&$r(t,e.watch)}function ar(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Et(!1);var a=function(o){i.push(o);var a=Xt(o,e,n,t);It(r,o,a),o in t||ir(t,"_props",o)};for(var s in e)a(s);Et(!0)}function sr(t){var e=t.$options.data;e=t._data="function"===typeof e?lr(e,t):e||{},u(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&_(r,o)||U(o)||ir(t,"_data",o)}Lt(e,!0)}function lr(t,e){gt();try{return t.call(e,e)}catch(xa){return ee(xa,e,"data()"),{}}finally{vt()}}var cr={lazy:!0};function ur(t,e){var n=t._computedWatchers=Object.create(null),r=lt();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new nr(t,a||L,L,cr)),i in t||dr(t,i,o)}}function dr(t,e,n){var r=!lt();"function"===typeof n?(rr.get=r?fr(e):hr(n),rr.set=L):(rr.get=n.get?r&&!1!==n.cache?fr(e):hr(n.get):L,rr.set=n.set||L),Object.defineProperty(t,e,rr)}function fr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),$t.target&&e.depend(),e.value}}function hr(t){return function(){return t.call(this,this)}}function pr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?L:E(e[n],t)}function $r(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1)return this;var n=T(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Sr(t){t.mixin=function(t){return this.options=Yt(this.options,t),this}}function Or(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Yt(n.options,t),a["super"]=n,a.options.props&&Cr(a),a.options.computed&&Ar(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,N.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=P({},a.options),i[r]=a,a}}function Cr(t){var e=t.options.props;for(var n in e)ir(t.prototype,"_props",n)}function Ar(t){var e=t.options.computed;for(var n in e)dr(t.prototype,n,e[n])}function Er(t){N.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Tr(t){return t&&(t.Ctor.options.name||t.tag)}function Pr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!d(t)&&t.test(e)}function Br(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Tr(a.componentOptions);s&&!e(s)&&Lr(n,o,r,i)}}}function Lr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,v(n,e)}yr(xr),gr(xr),En(xr),Ln(xr),vn(xr);var Ir=[String,RegExp,Array],Dr={name:"keep-alive",abstract:!0,props:{include:Ir,exclude:Ir,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Lr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Br(t,(function(t){return Pr(e,t)}))})),this.$watch("exclude",(function(e){Br(t,(function(t){return!Pr(e,t)}))}))},render:function(){var t=this.$slots.default,e=xn(t),n=e&&e.componentOptions;if(n){var r=Tr(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Pr(o,r))||a&&r&&Pr(a,r))return e;var s=this,l=s.cache,c=s.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;l[u]?(e.componentInstance=l[u].componentInstance,v(c,u),c.push(u)):(l[u]=e,c.push(u),this.max&&c.length>parseInt(this.max)&&Lr(l,c[0],c,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Rr={KeepAlive:Dr};function jr(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ht,extend:P,mergeOptions:Yt,defineReactive:It},t.set=Dt,t.delete=Rt,t.nextTick=pe,t.observable=function(t){return Lt(t),t},t.options=Object.create(null),N.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,P(t.options.components,Rr),kr(t),Sr(t),Or(t),Er(t)}jr(xr),Object.defineProperty(xr.prototype,"$isServer",{get:lt}),Object.defineProperty(xr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(xr,"FunctionalRenderContext",{value:Ze}),xr.version="2.6.12";var Mr=m("style,class"),Fr=m("input,textarea,option,select,progress"),Nr=function(t,e,n){return"value"===n&&Fr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},zr=m("contenteditable,draggable,spellcheck"),Hr=m("events,caret,typing,plaintext-only"),Vr=function(t,e){return Yr(e)||"false"===e?"false":"contenteditable"===t&&Hr(e)?e:"true"},Ur=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),qr="http://www.w3.org/1999/xlink",Wr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Gr=function(t){return Wr(t)?t.slice(6,t.length):""},Yr=function(t){return null==t||!1===t};function Kr(t){var e=t.data,n=t,r=t;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=Xr(r.data,e));while(i(n=n.parent))n&&n.data&&(e=Xr(e,n.data));return Zr(e.staticClass,e.class)}function Xr(t,e){return{staticClass:Jr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Zr(t,e){return i(t)||i(e)?Jr(t,Qr(e)):""}function Jr(t,e){return t?e?t+" "+e:t:e||""}function Qr(t){return Array.isArray(t)?ti(t):l(t)?ei(t):"string"===typeof t?t:""}function ti(t){for(var e,n="",r=0,o=t.length;r-1?si[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:si[t]=/HTMLUnknownElement/.test(e.toString())}var ci=m("text,number,password,search,email,tel,url");function ui(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function di(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function fi(t,e){return document.createElementNS(ni[t],e)}function hi(t){return document.createTextNode(t)}function pi(t){return document.createComment(t)}function $i(t,e,n){t.insertBefore(e,n)}function mi(t,e){t.removeChild(e)}function gi(t,e){t.appendChild(e)}function vi(t){return t.parentNode}function yi(t){return t.nextSibling}function _i(t){return t.tagName}function bi(t,e){t.textContent=e}function wi(t,e){t.setAttribute(e,"")}var xi=Object.freeze({createElement:di,createElementNS:fi,createTextNode:hi,createComment:pi,insertBefore:$i,removeChild:mi,appendChild:gi,parentNode:vi,nextSibling:yi,tagName:_i,setTextContent:bi,setStyleScope:wi}),ki={create:function(t,e){Si(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Si(t,!0),Si(e))},destroy:function(t){Si(t,!0)}};function Si(t,e){var n=t.data.ref;if(i(n)){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?v(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var Oi=new yt("",{},[]),Ci=["create","activate","update","remove","destroy"];function Ai(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Ei(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Ei(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,o=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===o||ci(r)&&ci(o)}function Ti(t,e,n){var r,o,a={};for(r=e;r<=n;++r)o=t[r].key,i(o)&&(a[o]=r);return a}function Pi(t){var e,n,a={},l=t.modules,c=t.nodeOps;for(e=0;e$?(d=r(n[v+1])?null:n[v+1].elm,x(t,d,n,p,v,o)):p>v&&S(e,f,$)}function A(t,e,n,r){for(var o=n;o-1?Hi(t,e,n):Ur(e)?Yr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):zr(e)?t.setAttribute(e,Vr(e,n)):Wr(e)?Yr(n)?t.removeAttributeNS(qr,Gr(e)):t.setAttributeNS(qr,e,n):Hi(t,e,n)}function Hi(t,e,n){if(Yr(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Vi={create:Ni,update:Ni};function Ui(t,e){var n=e.elm,o=e.data,a=t.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Kr(e),l=n._transitionClasses;i(l)&&(s=Jr(s,Qr(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var qi,Wi={create:Ui,update:Ui},Gi="__r",Yi="__c";function Ki(t){if(i(t[Gi])){var e=tt?"change":"input";t[e]=[].concat(t[Gi],t[e]||[]),delete t[Gi]}i(t[Yi])&&(t.change=[].concat(t[Yi],t.change||[]),delete t[Yi])}function Xi(t,e,n){var r=qi;return function i(){var o=e.apply(null,arguments);null!==o&&Qi(t,i,n,r)}}var Zi=ae&&!(it&&Number(it[1])<=53);function Ji(t,e,n,r){if(Zi){var i=Gn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}qi.addEventListener(t,e,at?{capture:n,passive:r}:n)}function Qi(t,e,n,r){(r||qi).removeEventListener(t,e._wrapper||e,n)}function to(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};qi=e.elm,Ki(n),_e(n,i,Ji,Qi,Xi,e.context),qi=void 0}}var eo,no={create:to,update:to};function ro(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,a=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(n in i(l.__ob__)&&(l=e.data.domProps=P({},l)),s)n in l||(a[n]="");for(n in l){if(o=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var c=r(o)?"":String(o);io(a,c)&&(a.value=c)}else if("innerHTML"===n&&ii(a.tagName)&&r(a.innerHTML)){eo=eo||document.createElement("div"),eo.innerHTML=""+o+"";var u=eo.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(u.firstChild)a.appendChild(u.firstChild)}else if(o!==s[n])try{a[n]=o}catch(xa){}}}}function io(t,e){return!t.composing&&("OPTION"===t.tagName||oo(t,e)||ao(t,e))}function oo(t,e){var n=!0;try{n=document.activeElement!==t}catch(xa){}return n&&t.value!==e}function ao(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return $(n)!==$(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var so={create:ro,update:ro},lo=b((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function co(t){var e=uo(t.style);return t.staticStyle?P(t.staticStyle,e):e}function uo(t){return Array.isArray(t)?B(t):"string"===typeof t?lo(t):t}function fo(t,e){var n,r={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=co(i.data))&&P(r,n)}(n=co(t.data))&&P(r,n);var o=t;while(o=o.parent)o.data&&(n=co(o.data))&&P(r,n);return r}var ho,po=/^--/,$o=/\s*!important$/,mo=function(t,e,n){if(po.test(e))t.style.setProperty(e,n);else if($o.test(n))t.style.setProperty(O(e),n.replace($o,""),"important");else{var r=vo(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(bo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function xo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(bo).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function ko(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&P(e,So(t.name||"v")),P(e,t),e}return"string"===typeof t?So(t):void 0}}var So=b((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Oo=X&&!et,Co="transition",Ao="animation",Eo="transition",To="transitionend",Po="animation",Bo="animationend";Oo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Eo="WebkitTransition",To="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Po="WebkitAnimation",Bo="webkitAnimationEnd"));var Lo=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Io(t){Lo((function(){Lo(t)}))}function Do(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),wo(t,e))}function Ro(t,e){t._transitionClasses&&v(t._transitionClasses,e),xo(t,e)}function jo(t,e,n){var r=Fo(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Co?To:Bo,l=0,c=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++l>=a&&c()};setTimeout((function(){l0&&(n=Co,u=a,d=o.length):e===Ao?c>0&&(n=Ao,u=c,d=l.length):(u=Math.max(a,c),n=u>0?a>c?Co:Ao:null,d=n?n===Co?o.length:l.length:0);var f=n===Co&&Mo.test(r[Eo+"Property"]);return{type:n,timeout:u,propCount:d,hasTransform:f}}function No(t,e){while(t.length1}function Wo(t,e){!0!==e.data.show&&Ho(e)}var Go=X?{create:Wo,activate:Wo,remove:function(t,e){!0!==t.data.show?Vo(t,e):e()}}:{},Yo=[Vi,Wi,no,so,_o,Go],Ko=Yo.concat(Fi),Xo=Pi({nodeOps:xi,modules:Ko});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&ia(t,"input")}));var Zo={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?be(n,"postpatch",(function(){Zo.componentUpdated(t,e,n)})):Jo(t,e,n.context),t._vOptions=[].map.call(t.options,ea)):("textarea"===n.tag||ci(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",na),t.addEventListener("compositionend",ra),t.addEventListener("change",ra),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Jo(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,ea);if(i.some((function(t,e){return!R(t,r[e])}))){var o=t.multiple?e.value.some((function(t){return ta(t,i)})):e.value!==e.oldValue&&ta(e.value,i);o&&ia(t,"change")}}}};function Jo(t,e,n){Qo(t,e,n),(tt||nt)&&setTimeout((function(){Qo(t,e,n)}),0)}function Qo(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=t.options.length;s-1,a.selected!==o&&(a.selected=o);else if(R(ea(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function ta(t,e){return e.every((function(e){return!R(e,t)}))}function ea(t){return"_value"in t?t._value:t.value}function na(t){t.target.composing=!0}function ra(t){t.target.composing&&(t.target.composing=!1,ia(t.target,"input"))}function ia(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function oa(t){return!t.componentInstance||t.data&&t.data.transition?t:oa(t.componentInstance._vnode)}var aa={bind:function(t,e,n){var r=e.value;n=oa(n);var i=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Ho(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value,i=e.oldValue;if(!r!==!i){n=oa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Ho(n,(function(){t.style.display=t.__vOriginalDisplay})):Vo(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},sa={model:Zo,show:aa},la={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ca(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ca(xn(e.children)):t}function ua(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[x(o)]=i[o];return e}function da(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function fa(t){while(t=t.parent)if(t.data.transition)return!0}function ha(t,e){return e.key===t.key&&e.tag===t.tag}var pa=function(t){return t.tag||wn(t)},$a=function(t){return"show"===t.name},ma={name:"transition",props:la,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(pa),n.length)){0;var r=this.mode;0;var i=n[0];if(fa(this.$vnode))return i;var o=ca(i);if(!o)return i;if(this._leaving)return da(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var l=(o.data||(o.data={})).transition=ua(this),c=this._vnode,u=ca(c);if(o.data.directives&&o.data.directives.some($a)&&(o.data.show=!0),u&&u.data&&!ha(o,u)&&!wn(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=P({},l);if("out-in"===r)return this._leaving=!0,be(d,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),da(t,i);if("in-out"===r){if(wn(o))return c;var f,h=function(){f()};be(l,"afterEnter",h),be(l,"enterCancelled",h),be(d,"delayLeave",(function(t){f=t}))}}return i}}},ga=P({tag:String,moveClass:String},la);delete ga.mode;var va={props:ga,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Pn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=ua(this),s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce((function(t,n){var r=n.passengers[0],i="function"===typeof r?r(e):n.passengers;return t.concat(i)}),[])}function h(t,e){return t.map((function(t,e){return[e,t]})).sort((function(t,n){return e(t[1],n[1])||t[0]-n[0]})).map((function(t){return t[1]}))}function p(t,e){return e.reduce((function(e,n){return t.hasOwnProperty(n)&&(e[n]=t[n]),e}),{})}var $={},m={},g={},v=i.extend({data:function(){return{transports:$,targets:m,sources:g,trackInstances:u}},methods:{open:function(t){if(u){var e=t.to,n=t.from,r=t.passengers,o=t.order,a=void 0===o?1/0:o;if(e&&n&&r){var s={to:e,from:n,passengers:d(r),order:a},l=Object.keys(this.transports);-1===l.indexOf(e)&&i.set(this.transports,e,[]);var c=this.$_getTransportIndex(s),f=this.transports[e].slice(0);-1===c?f.push(s):f[c]=s,this.transports[e]=h(f,(function(t,e){return t.order-e.order}))}}},close:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.to,r=t.from;if(n&&(r||!1!==e)&&this.transports[n])if(e)this.transports[n]=[];else{var i=this.$_getTransportIndex(t);if(i>=0){var o=this.transports[n].slice(0);o.splice(i,1),this.transports[n]=o}}},registerTarget:function(t,e,n){u&&(this.trackInstances&&!n&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(t,e,n){u&&(this.trackInstances&&!n&&this.sources[t]&&console.warn("[portal-vue]: source ".concat(t," already exists")),this.$set(this.sources,t,Object.freeze([e])))},unregisterSource:function(t){this.$delete(this.sources,t)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,n=t.from;for(var r in this.transports[e])if(this.transports[e][r].from===n)return+r;return-1}}}),y=new v($),_=1,b=i.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(_++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick((function(){y.registerSource(t.name,t)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){y.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};y.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"===typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:a(t),order:this.order};y.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(n,[this.normalizeOwnChildren(e)]):this.slim?t():t(n,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),w=i.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:y.transports,firstRender:!0}},created:function(){var t=this;this.$nextTick((function(){y.registerTarget(t.name,t)}))},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(t,e){y.unregisterTarget(e),y.registerTarget(t,this)}},mounted:function(){var t=this;this.transition&&this.$nextTick((function(){t.firstRender=!1}))},beforeDestroy:function(){y.unregisterTarget(this.name)},computed:{ownTransports:function(){var t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers:function(){return f(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var t=this.slim&&!this.transition;return t&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),t}},render:function(t){var e=this.noWrapper(),n=this.children(),r=this.transition||this.tag;return e?n[0]:this.slim&&!r?t():t(r,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},n)}}),x=0,k=["disabled","name","order","slim","slotProps","tag","to"],S=["multiple","transition"],O=i.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(x++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!==typeof document){var t=document.querySelector(this.mountTo);if(t){var e=this.$props;if(y.targets[e.name])e.bail?console.warn("[portal-vue]: Target ".concat(e.name," is already mounted.\n Aborting because 'bail: true' is set")):this.portalTarget=y.targets[e.name];else{var n=e.append;if(n){var r="string"===typeof n?n:"DIV",i=document.createElement(r);t.appendChild(i),t=i}var o=p(this.$props,S);o.slim=this.targetSlim,o.tag=this.targetTag,o.slotProps=this.targetSlotProps,o.name=this.to,this.portalTarget=new w({el:t,parent:this.$parent||this,propsData:o})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var t=this.portalTarget;if(this.append){var e=t.$el;e.parentNode.removeChild(e)}t.$destroy()},render:function(t){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),t();if(!this.$scopedSlots.manual){var e=p(this.$props,k);return t(b,{props:e,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var n=this.$scopedSlots.manual({to:this.to});return Array.isArray(n)&&(n=n[0]),n||t()}});function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.portalName||"Portal",b),t.component(e.portalTargetName||"PortalTarget",w),t.component(e.MountingPortalName||"MountingPortal",O)}var A={install:C};e.default=A,e.Portal=b,e.PortalTarget=w,e.MountingPortal=O,e.Wormhole=y},"2ce7":function(module,exports,__webpack_require__){(function(global,process,Buffer,module){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__; +/** + * @license Asciidoctor.js 2.2.0 | MIT | https://github.com/asciidoctor/asciidoctor.js + */(function(t){var e,n,r,i,o,a,s=this;if("undefined"!==typeof global&&(s=global),"undefined"!==typeof window&&(s=window),e="object"===typeof s.console?s.console:null==s.console?s.console={}:{},"log"in e||(e.log=function(){}),"warn"in e||(e.warn=e.log),"undefined"!==typeof this.Opal)return e.warn("Opal already loaded. Loading twice can cause troubles, please fix your setup."),this.Opal;var l=this.Opal={};l.global=s,s.Opal=l,l.config={missing_require_severity:"error",unsupported_features_severity:"warning",enable_stack_trace:!0};var c=Object.hasOwnProperty,u=Function.prototype.bind,d=Object.setPrototypeOf,f=Array.prototype.slice,h=Array.prototype.splice,p=4,$=p;function m(t,e,n){"string"===typeof t?t[e]=n:Object.defineProperty(t,e,{value:n,enumerable:!1,configurable:!0,writable:!0})}function g(t,e){if(t)return t.$$const[e]}function v(t,e){var n,r,i;if(0!==t.length)for(n=0,r=t.length;n=0;e--){var o=n[e];for(var a in o.$$cvars)i[a]=o.$$cvars[a]}return i},l.class_variable_set=function(t,e,n){var r,i=l.ancestors(t),o=i.length;for(r=o-2;r>=0;r--){var a=i[r];if(c.call(a.$$cvars,e))return a.$$cvars[e]=n,n}return t.$$cvars[e]=n,n},l.append_features=function(t,e){var n=l.ancestors(t),r=[];if(-1!==n.indexOf(e))throw l.ArgumentError.$new("cyclic include detected");for(var i=0,o=n.length;i1||(n||r)&&1===t.length)&&(e=l.to_ary(e)),(t.length>1||r&&1===t.length)&&e.$$is_array?t.apply(null,e):t(e)},l.yieldX=function(t,e){if("function"!==typeof t)throw l.LocalJumpError.$new("no block given");if(t.length>1&&1===e.length&&e[0].$$is_array)return t.apply(null,e[0]);if(!e.$$is_array){for(var n=new Array(e.length),r=0,i=n.length;r","$coerce_to!","$!=","$[]","$upcase"]),function(e,a){var s,l,c,u,d,f,h,p,$,m,g,v,y,_,b=i(e,"Opal"),w=[b].concat(a);t.defs(b,"$bridge",s=function(e,n){return t.bridge(e,n)},s.$$arity=2),t.defs(b,"$type_error",l=function(t,e,i,a){var s;return null==i&&(i=n),null==a&&(a=n),o(o(s=i)?a:s)?r(w,"TypeError").$new("can't convert "+t.$class()+" into "+e+" ("+t.$class()+"#"+i+" gives "+a.$class()+")"):r(w,"TypeError").$new("no implicit conversion of "+t.$class()+" into "+e)},l.$$arity=-3),t.defs(b,"$coerce_to",c=function(t,e,n){var r=this;return o(e["$==="](t))?t:(o(t["$respond_to?"](n))||r.$raise(r.$type_error(t,e)),t.$__send__(n))},c.$$arity=3),t.defs(b,"$coerce_to!",u=function(t,e,r){var i=this,a=n;return a=i.$coerce_to(t,e,r),o(e["$==="](a))||i.$raise(i.$type_error(t,e,r,a)),a},u.$$arity=3),t.defs(b,"$coerce_to?",d=function(t,e,r){var i=this,a=n;return o(t["$respond_to?"](r))?(a=i.$coerce_to(t,e,r),o(a["$nil?"]())?n:(o(e["$==="](a))||i.$raise(i.$type_error(t,e,r,a)),a)):n},d.$$arity=3),t.defs(b,"$try_convert",f=function(t,e,r){return o(e["$==="](t))?t:o(t["$respond_to?"](r))?t.$__send__(r):n},f.$$arity=3),t.defs(b,"$compare",h=function(t,e){var i=this,a=n;return a=t["$<=>"](e),o(a===n)&&i.$raise(r(w,"ArgumentError"),"comparison of "+t.$class()+" with "+e.$class()+" failed"),a},h.$$arity=2),t.defs(b,"$destructure",p=function(t){if(1==t.length)return t[0];if(t.$$is_array)return t;for(var e=new Array(t.length),n=0,r=e.length;n=0;l--)a=o[l],s=e.$$prototype["$"+a],s&&!s.$$stub&&(s.$$pristine=!0);return n},_.$$arity=-2)}(e[0],e)},Opal.modules["corelib/module"]=function(Opal){function $rb_lt(t,e){return"number"===typeof t&&"number"===typeof e?te:t["$>"](e)}var self=Opal.top,$nesting=[],nil=Opal.nil,$$$=Opal.const_get_qualified,$$=Opal.const_get_relative,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$send=Opal.send,$truthy=Opal.truthy,$lambda=Opal.lambda,$range=Opal.range,$hash2=Opal.hash2;return Opal.add_stubs(["$module_eval","$to_proc","$===","$raise","$equal?","$<","$>","$nil?","$attr_reader","$attr_writer","$class_variable_name!","$new","$const_name!","$=~","$inject","$split","$const_get","$==","$!~","$start_with?","$bind","$call","$class","$append_features","$included","$name","$cover?","$size","$merge","$compile","$proc","$any?","$prepend_features","$prepended","$to_s","$__id__","$constants","$include?","$copy_class_variables","$copy_constants"]),function($base,$super,$parent_nesting){var self=$klass($base,$super,"Module"),$nesting=[self].concat($parent_nesting),$Module_allocate$1,$Module_initialize$2,$Module_$eq_eq_eq$3,$Module_$lt$4,$Module_$lt_eq$5,$Module_$gt$6,$Module_$gt_eq$7,$Module_$lt_eq_gt$8,$Module_alias_method$9,$Module_alias_native$10,$Module_ancestors$11,$Module_append_features$12,$Module_attr_accessor$13,$Module_attr_reader$14,$Module_attr_writer$15,$Module_autoload$16,$Module_class_variables$17,$Module_class_variable_get$18,$Module_class_variable_set$19,$Module_class_variable_defined$ques$20,$Module_remove_class_variable$21,$Module_constants$22,$Module_constants$23,$Module_nesting$24,$Module_const_defined$ques$25,$Module_const_get$26,$Module_const_missing$28,$Module_const_set$29,$Module_public_constant$30,$Module_define_method$31,$Module_remove_method$33,$Module_singleton_class$ques$34,$Module_include$35,$Module_included_modules$36,$Module_include$ques$37,$Module_instance_method$38,$Module_instance_methods$39,$Module_included$40,$Module_extended$41,$Module_extend_object$42,$Module_method_added$43,$Module_method_removed$44,$Module_method_undefined$45,$Module_module_eval$46,$Module_module_exec$48,$Module_method_defined$ques$49,$Module_module_function$50,$Module_name$51,$Module_prepend$52,$Module_prepend_features$53,$Module_prepended$54,$Module_remove_const$55,$Module_to_s$56,$Module_undef_method$57,$Module_instance_variables$58,$Module_dup$59,$Module_copy_class_variables$60,$Module_copy_constants$61;return Opal.defs(self,"$allocate",$Module_allocate$1=function(){var t=this,e=Opal.allocate_module(nil,(function(){}));return t!==Opal.Module&&Object.setPrototypeOf(e,t.$$prototype),e},$Module_allocate$1.$$arity=0),Opal.def(self,"$initialize",$Module_initialize$2=function(){var t=$Module_initialize$2.$$p,e=t||nil,n=this;return t&&($Module_initialize$2.$$p=null),t&&($Module_initialize$2.$$p=null),e!==nil?$send(n,"module_eval",[],e.$to_proc()):nil},$Module_initialize$2.$$arity=0),Opal.def(self,"$===",$Module_$eq_eq_eq$3=function(t){var e=this;return!$truthy(null==t)&&Opal.is_a(t,e)},$Module_$eq_eq_eq$3.$$arity=1),Opal.def(self,"$<",$Module_$lt$4=function(t){var e=this;$truthy($$($nesting,"Module")["$==="](t))||e.$raise($$($nesting,"TypeError"),"compared with non class/module");var n,r,i,o=e;if(o===t)return!1;for(r=0,n=Opal.ancestors(e),i=n.length;r",$Module_$gt$6=function(t){var e=this;return $truthy($$($nesting,"Module")["$==="](t))||e.$raise($$($nesting,"TypeError"),"compared with non class/module"),$rb_lt(t,e)},$Module_$gt$6.$$arity=1),Opal.def(self,"$>=",$Module_$gt_eq$7=function(t){var e,n=this;return $truthy(e=n["$equal?"](t))?e:$rb_gt(n,t)},$Module_$gt_eq$7.$$arity=1),Opal.def(self,"$<=>",$Module_$lt_eq_gt$8=function(t){var e=this,n=nil;return e===t?0:$truthy($$($nesting,"Module")["$==="](t))?(n=$rb_lt(e,t),$truthy(n["$nil?"]())?nil:$truthy(n)?-1:1):nil},$Module_$lt_eq_gt$8.$$arity=1),Opal.def(self,"$alias_method",$Module_alias_method$9=function(t,e){var n=this;return Opal.alias(n,t,e),n},$Module_alias_method$9.$$arity=2),Opal.def(self,"$alias_native",$Module_alias_native$10=function(t,e){var n=this;return null==e&&(e=t),Opal.alias_native(n,t,e),n},$Module_alias_native$10.$$arity=-2),Opal.def(self,"$ancestors",$Module_ancestors$11=function(){var t=this;return Opal.ancestors(t)},$Module_ancestors$11.$$arity=0),Opal.def(self,"$append_features",$Module_append_features$12=function(t){var e=this;return Opal.append_features(e,t),e},$Module_append_features$12.$$arity=1),Opal.def(self,"$attr_accessor",$Module_attr_accessor$13=function(t){var e,n,r=this;return e=Opal.slice.call(arguments,0,arguments.length),n=e,$send(r,"attr_reader",Opal.to_a(n)),$send(r,"attr_writer",Opal.to_a(n))},$Module_attr_accessor$13.$$arity=-1),Opal.alias(self,"attr","attr_accessor"),Opal.def(self,"$attr_reader",$Module_attr_reader$14=function(t){var e,n,r=this;e=Opal.slice.call(arguments,0,arguments.length),n=e;for(var i=r.$$prototype,o=n.length-1;o>=0;o--){var a=n[o],s="$"+a,l=Opal.ivar(a),c=function(t){return function(){return null==this[t]?nil:this[t]}}(l);Opal.defineProperty(i,l,nil),c.$$parameters=[],c.$$arity=0,Opal.defn(r,s,c)}return nil},$Module_attr_reader$14.$$arity=-1),Opal.def(self,"$attr_writer",$Module_attr_writer$15=function(t){var e,n,r=this;e=Opal.slice.call(arguments,0,arguments.length),n=e;for(var i=r.$$prototype,o=n.length-1;o>=0;o--){var a=n[o],s="$"+a+"=",l=Opal.ivar(a),c=function(t){return function(e){return this[t]=e}}(l);c.$$parameters=[["req"]],c.$$arity=1,Opal.defineProperty(i,l,nil),Opal.defn(r,s,c)}return nil},$Module_attr_writer$15.$$arity=-1),Opal.def(self,"$autoload",$Module_autoload$16=function(t,e){var n=this;return null==n.$$autoload&&(n.$$autoload={}),Opal.const_cache_version++,n.$$autoload[t]=e,nil},$Module_autoload$16.$$arity=2),Opal.def(self,"$class_variables",$Module_class_variables$17=function(){var t=this;return Object.keys(Opal.class_variables(t))},$Module_class_variables$17.$$arity=0),Opal.def(self,"$class_variable_get",$Module_class_variable_get$18=function(t){var e=this;t=$$($nesting,"Opal")["$class_variable_name!"](t);var n=Opal.class_variables(e)[t];return null==n&&e.$raise($$($nesting,"NameError").$new("uninitialized class variable "+t+" in "+e,t)),n},$Module_class_variable_get$18.$$arity=1),Opal.def(self,"$class_variable_set",$Module_class_variable_set$19=function(t,e){var n=this;return t=$$($nesting,"Opal")["$class_variable_name!"](t),Opal.class_variable_set(n,t,e)},$Module_class_variable_set$19.$$arity=2),Opal.def(self,"$class_variable_defined?",$Module_class_variable_defined$ques$20=function(t){var e=this;return t=$$($nesting,"Opal")["$class_variable_name!"](t),Opal.class_variables(e).hasOwnProperty(t)},$Module_class_variable_defined$ques$20.$$arity=1),Opal.def(self,"$remove_class_variable",$Module_remove_class_variable$21=function(t){var e=this;if(t=$$($nesting,"Opal")["$class_variable_name!"](t),Opal.hasOwnProperty.call(e.$$cvars,t)){var n=e.$$cvars[t];return delete e.$$cvars[t],n}e.$raise($$($nesting,"NameError"),"cannot remove "+t+" for "+e)},$Module_remove_class_variable$21.$$arity=1),Opal.def(self,"$constants",$Module_constants$22=function(t){var e=this;return null==t&&(t=!0),Opal.constants(e,t)},$Module_constants$22.$$arity=-1),Opal.defs(self,"$constants",$Module_constants$23=function(t){var e=this;if(null==t){var n,r,i,o=(e.$$nesting||[]).concat(Opal.Object),a={};for(r=0,i=o.length;r=0;i--){var o=n[i];o.$$is_module||r.$raise($$($nesting,"TypeError"),"wrong argument type "+o.$class()+" (expected Module)"),o.$append_features(r),o.$included(r)}return r},$Module_include$35.$$arity=-1),Opal.def(self,"$included_modules",$Module_included_modules$36=function(){var t=this;return Opal.included_modules(t)},$Module_included_modules$36.$$arity=0),Opal.def(self,"$include?",$Module_include$ques$37=function(t){var e=this;t.$$is_module||e.$raise($$($nesting,"TypeError"),"wrong argument type "+t.$class()+" (expected Module)");var n,r,i,o=Opal.ancestors(e);for(n=0,r=o.length;n=0;i--){var o=n[i];o.$$is_module||r.$raise($$($nesting,"TypeError"),"wrong argument type "+o.$class()+" (expected Module)"),o.$prepend_features(r),o.$prepended(r)}return r},$Module_prepend$52.$$arity=-1),Opal.def(self,"$prepend_features",$Module_prepend_features$53=function(t){var e=this;return e.$$is_module||e.$raise($$($nesting,"TypeError"),"wrong argument type "+e.$class()+" (expected Module)"),Opal.prepend_features(e,t),e},$Module_prepend_features$53.$$arity=1),Opal.def(self,"$prepended",$Module_prepended$54=function(t){return nil},$Module_prepended$54.$$arity=1),Opal.def(self,"$remove_const",$Module_remove_const$55=function(t){var e=this;return Opal.const_remove(e,t)},$Module_remove_const$55.$$arity=1),Opal.def(self,"$to_s",$Module_to_s$56=function(){var t,e=this;return $truthy(t=Opal.Module.$name.call(e))?t:"#<"+(e.$$is_module?"Module":"Class")+":0x"+e.$__id__().$to_s(16)+">"},$Module_to_s$56.$$arity=0),Opal.def(self,"$undef_method",$Module_undef_method$57=function(t){var e,n,r=this;e=Opal.slice.call(arguments,0,arguments.length),n=e;for(var i=0,o=n.length;i":r?"#>":a(n,t.find_super_dispatcher(n,"to_s",p,!1),[],null)},p.$$arity=0),r&&"to_s"}(n[0],null,n)},Opal.modules["corelib/basic_object"]=function(Opal){var self=Opal.top,$nesting=[],nil=Opal.nil,$$$=Opal.const_get_qualified,$$=Opal.const_get_relative,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$truthy=Opal.truthy,$range=Opal.range,$hash2=Opal.hash2,$send=Opal.send;return Opal.add_stubs(["$==","$!","$nil?","$cover?","$size","$raise","$merge","$compile","$proc","$any?","$inspect","$new"]),function($base,$super,$parent_nesting){var self=$klass($base,$super,"BasicObject"),$nesting=[self].concat($parent_nesting),$BasicObject_initialize$1,$BasicObject_$eq_eq$2,$BasicObject_eql$ques$3,$BasicObject___id__$4,$BasicObject___send__$5,$BasicObject_$excl$6,$BasicObject_$not_eq$7,$BasicObject_instance_eval$8,$BasicObject_instance_exec$10,$BasicObject_singleton_method_added$11,$BasicObject_singleton_method_removed$12,$BasicObject_singleton_method_undefined$13,$BasicObject_class$14,$BasicObject_method_missing$15;return Opal.def(self,"$initialize",$BasicObject_initialize$1=function(t){return Opal.slice.call(arguments,0,arguments.length),nil},$BasicObject_initialize$1.$$arity=-1),Opal.def(self,"$==",$BasicObject_$eq_eq$2=function(t){var e=this;return e===t},$BasicObject_$eq_eq$2.$$arity=1),Opal.def(self,"$eql?",$BasicObject_eql$ques$3=function(t){var e=this;return e["$=="](t)},$BasicObject_eql$ques$3.$$arity=1),Opal.alias(self,"equal?","=="),Opal.def(self,"$__id__",$BasicObject___id__$4=function(){var t=this;return null!=t.$$id||Opal.defineProperty(t,"$$id",Opal.uid()),t.$$id},$BasicObject___id__$4.$$arity=0),Opal.def(self,"$__send__",$BasicObject___send__$5=function(t,e){var n,r,i=$BasicObject___send__$5.$$p,o=i||nil,a=this;i&&($BasicObject___send__$5.$$p=null),i&&($BasicObject___send__$5.$$p=null),n=Opal.slice.call(arguments,1,arguments.length),r=n;var s=a["$"+t];return s?(o!==nil&&(s.$$p=o),s.apply(a,r)):(o!==nil&&(a.$method_missing.$$p=o),a.$method_missing.apply(a,[t].concat(r)))},$BasicObject___send__$5.$$arity=-2),Opal.def(self,"$!",$BasicObject_$excl$6=function(){return!1},$BasicObject_$excl$6.$$arity=0),Opal.def(self,"$!=",$BasicObject_$not_eq$7=function(t){var e=this;return e["$=="](t)["$!"]()},$BasicObject_$not_eq$7.$$arity=1),Opal.def(self,"$instance_eval",$BasicObject_instance_eval$8=function $$instance_eval($a){var $iter=$BasicObject_instance_eval$8.$$p,block=$iter||nil,$post_args,args,$b,$$9,self=this,string=nil,file=nil,_lineno=nil,default_eval_options=nil,compiling_options=nil,compiled=nil;$iter&&($BasicObject_instance_eval$8.$$p=null),$iter&&($BasicObject_instance_eval$8.$$p=null),$post_args=Opal.slice.call(arguments,0,arguments.length),args=$post_args,$truthy($truthy($b=block["$nil?"]())?!!Opal.compile:$b)?($truthy($range(1,3,!1)["$cover?"](args.$size()))||$$$("::","Kernel").$raise($$$("::","ArgumentError"),"wrong number of arguments (0 for 1..3)"),$b=[].concat(Opal.to_a(args)),string=null==$b[0]?nil:$b[0],file=null==$b[1]?nil:$b[1],_lineno=null==$b[2]?nil:$b[2],default_eval_options=$hash2(["file","eval"],{file:$truthy($b=file)?$b:"(eval)",eval:!0}),compiling_options=Opal.hash({arity_check:!1}).$merge(default_eval_options),compiled=$$$("::","Opal").$compile(string,compiling_options),block=$send($$$("::","Kernel"),"proc",[],($$9=function(){var self=$$9.$$s||this;return function(self){return eval(compiled)}(self)},$$9.$$s=self,$$9.$$arity=0,$$9))):$truthy(args["$any?"]())&&$$$("::","Kernel").$raise($$$("::","ArgumentError"),"wrong number of arguments ("+args.$size()+" for 0)");var old=block.$$s,result;if(block.$$s=null,self.$$is_a_module){self.$$eval=!0;try{result=block.call(self,self)}finally{self.$$eval=!1}}else result=block.call(self,self);return block.$$s=old,result},$BasicObject_instance_eval$8.$$arity=-1),Opal.def(self,"$instance_exec",$BasicObject_instance_exec$10=function(t){var e,n,r=$BasicObject_instance_exec$10.$$p,i=r||nil,o=this;r&&($BasicObject_instance_exec$10.$$p=null),r&&($BasicObject_instance_exec$10.$$p=null),e=Opal.slice.call(arguments,0,arguments.length),n=e,$truthy(i)||$$$("::","Kernel").$raise($$$("::","ArgumentError"),"no block given");var a,s=i.$$s;if(i.$$s=null,o.$$is_a_module){o.$$eval=!0;try{a=i.apply(o,n)}finally{o.$$eval=!1}}else a=i.apply(o,n);return i.$$s=s,a},$BasicObject_instance_exec$10.$$arity=-1),Opal.def(self,"$singleton_method_added",$BasicObject_singleton_method_added$11=function(t){return Opal.slice.call(arguments,0,arguments.length),nil},$BasicObject_singleton_method_added$11.$$arity=-1),Opal.def(self,"$singleton_method_removed",$BasicObject_singleton_method_removed$12=function(t){return Opal.slice.call(arguments,0,arguments.length),nil},$BasicObject_singleton_method_removed$12.$$arity=-1),Opal.def(self,"$singleton_method_undefined",$BasicObject_singleton_method_undefined$13=function(t){return Opal.slice.call(arguments,0,arguments.length),nil},$BasicObject_singleton_method_undefined$13.$$arity=-1),Opal.def(self,"$class",$BasicObject_class$14=function(){var t=this;return t.$$class},$BasicObject_class$14.$$arity=0),Opal.def(self,"$method_missing",$BasicObject_method_missing$15=function(t,e){var n,r=$BasicObject_method_missing$15.$$p,i=this,o=nil;return r&&($BasicObject_method_missing$15.$$p=null),r&&($BasicObject_method_missing$15.$$p=null),n=Opal.slice.call(arguments,1,arguments.length),n,o=function(){return $truthy(i.$inspect&&!i.$inspect.$$stub)?"undefined method `"+t+"' for "+i.$inspect()+":"+i.$$class:"undefined method `"+t+"' for "+i.$$class}(),$$$("::","Kernel").$raise($$$("::","NoMethodError").$new(o,t))},$BasicObject_method_missing$15.$$arity=-2),nil&&"method_missing"}($nesting[0],null,$nesting)},Opal.modules["corelib/kernel"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t<=e:t["$<="](e)}t.top;var n=[],r=t.nil,i=t.const_get_qualified,o=t.const_get_relative,a=(t.breaker,t.slice,t.module),s=t.truthy,l=t.gvars,c=t.hash2,u=t.send,d=t.klass;return t.add_stubs(["$raise","$new","$inspect","$!","$=~","$==","$object_id","$class","$coerce_to?","$<<","$allocate","$copy_instance_variables","$copy_singleton_methods","$initialize_clone","$initialize_copy","$define_method","$singleton_class","$to_proc","$initialize_dup","$for","$empty?","$pop","$call","$coerce_to","$append_features","$extend_object","$extended","$__id__","$to_s","$instance_variable_name!","$respond_to?","$to_int","$coerce_to!","$Integer","$nil?","$===","$enum_for","$result","$any?","$print","$format","$puts","$each","$<=","$length","$[]","$exception","$is_a?","$rand","$respond_to_missing?","$try_convert!","$expand_path","$join","$start_with?","$new_seed","$srand","$sym","$arg","$open","$include"]),function(n,d){var f,h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt,gt,vt,yt,_t,bt,wt,xt=a(n,"Kernel"),kt=[xt].concat(d);t.def(xt,"$method_missing",f=function(e,n){var r,i,a=f.$$p,s=this;return a&&(f.$$p=null),a&&(f.$$p=null),r=t.slice.call(arguments,1,arguments.length),i=r,s.$raise(o(kt,"NoMethodError").$new("undefined method `"+e+"' for "+s.$inspect(),e,i))},f.$$arity=-2),t.def(xt,"$=~",h=function(t){return!1},h.$$arity=1),t.def(xt,"$!~",p=function(t){var e=this;return e["$=~"](t)["$!"]()},p.$$arity=1),t.def(xt,"$===",$=function(t){var e,n=this;return s(e=n.$object_id()["$=="](t.$object_id()))?e:n["$=="](t)},$.$$arity=1),t.def(xt,"$<=>",m=function(t){var e=this;e.$$comparable=!0;var n=e["$=="](t);return n&&n!==r?0:r},m.$$arity=1),t.def(xt,"$method",g=function(t){var e=this,n=e["$"+t];return n&&!n.$$stub||e.$raise(o(kt,"NameError").$new("undefined method `"+t+"' for class `"+e.$class()+"'",t)),o(kt,"Method").$new(e,n.$$owner||e.$class(),n,t)},g.$$arity=1),t.def(xt,"$methods",v=function(e){var n=this;return null==e&&(e=!0),s(e)?t.methods(n):t.own_methods(n)},v.$$arity=-1),t.def(xt,"$public_methods",y=function(e){var n=this;return null==e&&(e=!0),s(e)?t.methods(n):t.receiver_methods(n)},y.$$arity=-1),t.def(xt,"$Array",_=function(t){var e;return t===r?[]:t.$$is_array?t:(e=o(kt,"Opal")["$coerce_to?"](t,o(kt,"Array"),"to_ary"),e!==r?e:(e=o(kt,"Opal")["$coerce_to?"](t,o(kt,"Array"),"to_a"),e!==r?e:[t]))},_.$$arity=1),t.def(xt,"$at_exit",b=function(){var t,e=b.$$p,n=e||r;return null==l.__at_exit__&&(l.__at_exit__=r),e&&(b.$$p=null),e&&(b.$$p=null),l.__at_exit__=s(t=l.__at_exit__)?t:[],l.__at_exit__["$<<"](n)},b.$$arity=0),t.def(xt,"$caller",w=function(e){var n;return n=t.slice.call(arguments,0,arguments.length),n,[]},w.$$arity=-1),t.def(xt,"$class",x=function(){var t=this;return t.$$class},x.$$arity=0),t.def(xt,"$copy_instance_variables",k=function(t){var e,n,r,i=this,o=Object.keys(t);for(e=0,n=o.length;e0&&(a=i[0],i.splice(0,1)),null==a&&(a="each"),s=i,u(o(kt,"Enumerator"),"for",[d,a].concat(t.to_a(s)),c.$to_proc())},P.$$arity=-1),t.alias(xt,"to_enum","enum_for"),t.def(xt,"$equal?",B=function(t){var e=this;return e===t},B.$$arity=1),t.def(xt,"$exit",L=function(e){var n,i=r;null==l.__at_exit__&&(l.__at_exit__=r),null==e&&(e=!0),l.__at_exit__=s(n=l.__at_exit__)?n:[];while(!s(l.__at_exit__["$empty?"]()))i=l.__at_exit__.$pop(),i.$call();return e=e.$$is_boolean?e?0:1:o(kt,"Opal").$coerce_to(e,o(kt,"Integer"),"to_int"),t.exit(e),r},L.$$arity=-1),t.def(xt,"$extend",I=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;for(var a=i.$singleton_class(),s=r.length-1;s>=0;s--){var l=r[s];l.$$is_module||i.$raise(o(kt,"TypeError"),"wrong argument type "+l.$class()+" (expected Module)"),l.$append_features(a),l.$extend_object(i),l.$extended(i)}return i},I.$$arity=-1),t.def(xt,"$hash",D=function(){var t=this;return t.$__id__()},D.$$arity=0),t.def(xt,"$initialize_copy",R=function(t){return r},R.$$arity=1),t.def(xt,"$inspect",j=function(){var t=this;return t.$to_s()},j.$$arity=0),t.def(xt,"$instance_of?",M=function(t){var e=this;return t.$$is_class||t.$$is_module||e.$raise(o(kt,"TypeError"),"class or module required"),e.$$class===t},M.$$arity=1),t.def(xt,"$instance_variable_defined?",F=function(e){var n=this;return e=o(kt,"Opal")["$instance_variable_name!"](e),t.hasOwnProperty.call(n,e.substr(1))},F.$$arity=1),t.def(xt,"$instance_variable_get",N=function(e){var n=this;e=o(kt,"Opal")["$instance_variable_name!"](e);var i=n[t.ivar(e.substr(1))];return null==i?r:i},N.$$arity=1),t.def(xt,"$instance_variable_set",z=function(e,n){var r=this;return e=o(kt,"Opal")["$instance_variable_name!"](e),r[t.ivar(e.substr(1))]=n},z.$$arity=2),t.def(xt,"$remove_instance_variable",H=function(e){var n=this;e=o(kt,"Opal")["$instance_variable_name!"](e);var r,i=t.ivar(e.substr(1));return n.hasOwnProperty(i)?(r=n[i],delete n[i],r):n.$raise(o(kt,"NameError"),"instance variable "+e+" not defined")},H.$$arity=1),t.def(xt,"$instance_variables",V=function(){var t,e=this,n=[];for(var r in e)e.hasOwnProperty(r)&&"$"!==r.charAt(0)&&(t="$"===r.substr(-1)?r.slice(0,r.length-1):r,n.push("@"+t));return n},V.$$arity=0),t.def(xt,"$Integer",U=function(t,e){var n,i,a,s=this;return t.$$is_string?"0"===t?0:(void 0===e?e=0:(e=o(kt,"Opal").$coerce_to(e,o(kt,"Integer"),"to_int"),(1===e||e<0||e>36)&&s.$raise(o(kt,"ArgumentError"),"invalid radix "+e)),i=t.toLowerCase(),i=i.replace(/(\d)_(?=\d)/g,"$1"),i=i.replace(/^(\s*[+-]?)(0[bodx]?)/,(function(n,r,i){switch(i){case"0b":if(0===e||2===e)return e=2,r;case"0":case"0o":if(0===e||8===e)return e=8,r;case"0d":if(0===e||10===e)return e=10,r;case"0x":if(0===e||16===e)return e=16,r}s.$raise(o(kt,"ArgumentError"),'invalid value for Integer(): "'+t+'"')})),e=0===e?10:e,a="0-"+(e<=10?e-1:"9a-"+String.fromCharCode(e-11+97)),new RegExp("^\\s*[+-]?["+a+"]+\\s*$").test(i)||s.$raise(o(kt,"ArgumentError"),'invalid value for Integer(): "'+t+'"'),n=parseInt(i,e),isNaN(n)&&s.$raise(o(kt,"ArgumentError"),'invalid value for Integer(): "'+t+'"'),n):(void 0!==e&&s.$raise(o(kt,"ArgumentError"),"base specified for non string value"),t===r&&s.$raise(o(kt,"TypeError"),"can't convert nil into Integer"),t.$$is_number?((t===1/0||t===-1/0||isNaN(t))&&s.$raise(o(kt,"FloatDomainError"),t),Math.floor(t)):t["$respond_to?"]("to_int")&&(n=t.$to_int(),n!==r)?n:o(kt,"Opal")["$coerce_to!"](t,o(kt,"Integer"),"to_i"))},U.$$arity=-2),t.def(xt,"$Float",q=function(t){var e,n=this;return t===r&&n.$raise(o(kt,"TypeError"),"can't convert nil into Float"),t.$$is_string?(e=t.toString(),e=e.replace(/(\d)_(?=\d)/g,"$1"),/^\s*[-+]?0[xX][0-9a-fA-F]+\s*$/.test(e)?n.$Integer(e):(/^\s*[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s*$/.test(e)||n.$raise(o(kt,"ArgumentError"),'invalid value for Float(): "'+t+'"'),parseFloat(e))):o(kt,"Opal")["$coerce_to!"](t,o(kt,"Float"),"to_f")},q.$$arity=1),t.def(xt,"$Hash",W=function(t){var e;return s(s(e=t["$nil?"]())?e:t["$=="]([]))?c([],{}):s(o(kt,"Hash")["$==="](t))?t:o(kt,"Opal")["$coerce_to!"](t,o(kt,"Hash"),"to_hash")},W.$$arity=1),t.def(xt,"$is_a?",G=function(e){var n=this;return e.$$is_class||e.$$is_module||n.$raise(o(kt,"TypeError"),"class or module required"),t.is_a(n,e)},G.$$arity=1),t.def(xt,"$itself",Y=function(){var t=this;return t},Y.$$arity=0),t.alias(xt,"kind_of?","is_a?"),t.def(xt,"$lambda",K=function(){var e=K.$$p,n=e||r;return e&&(K.$$p=null),e&&(K.$$p=null),t.lambda(n)},K.$$arity=0),t.def(xt,"$load",X=function(e){return e=o(kt,"Opal")["$coerce_to!"](e,o(kt,"String"),"to_str"),t.load(e)},X.$$arity=1),t.def(xt,"$loop",Z=function(){var e,n=Z.$$p,a=n||r,l=this,c=r;if(n&&(Z.$$p=null),a===r)return u(l,"enum_for",["loop"],(e=function(){e.$$s;return i(o(kt,"Float"),"INFINITY")},e.$$s=l,e.$$arity=0,e));while(s(!0))try{t.yieldX(a,[])}catch(d){if(!t.rescue(d,[o(kt,"StopIteration")]))throw d;c=d;try{return c.$result()}finally{t.pop_exception()}}return l},Z.$$arity=0),t.def(xt,"$nil?",J=function(){return!1},J.$$arity=0),t.alias(xt,"object_id","__id__"),t.def(xt,"$printf",Q=function(e){var n,i,o=this;return n=t.slice.call(arguments,0,arguments.length),i=n,s(i["$any?"]())&&o.$print(u(o,"format",t.to_a(i))),r},Q.$$arity=-1),t.def(xt,"$proc",tt=function(){var t=tt.$$p,e=t||r,n=this;return t&&(tt.$$p=null),t&&(tt.$$p=null),s(e)||n.$raise(o(kt,"ArgumentError"),"tried to create Proc object without a block"),e.$$is_lambda=!1,e},tt.$$arity=0),t.def(xt,"$puts",et=function(e){var n,i;return null==l.stdout&&(l.stdout=r),n=t.slice.call(arguments,0,arguments.length),i=n,u(l.stdout,"puts",t.to_a(i))},et.$$arity=-1),t.def(xt,"$p",nt=function(n){var i,o,a,c=this;return i=t.slice.call(arguments,0,arguments.length),o=i,u(o,"each",[],(a=function(t){a.$$s;return null==l.stdout&&(l.stdout=r),null==t&&(t=r),l.stdout.$puts(t.$inspect())},a.$$s=c,a.$$arity=1,a)),s(e(o.$length(),1))?o["$[]"](0):o},nt.$$arity=-1),t.def(xt,"$print",rt=function(e){var n,i;return null==l.stdout&&(l.stdout=r),n=t.slice.call(arguments,0,arguments.length),i=n,u(l.stdout,"print",t.to_a(i))},rt.$$arity=-1),t.def(xt,"$warn",it=function(e){var n,i,o;return null==l.VERBOSE&&(l.VERBOSE=r),null==l.stderr&&(l.stderr=r),n=t.slice.call(arguments,0,arguments.length),i=n,s(s(o=l.VERBOSE["$nil?"]())?o:i["$empty?"]())?r:u(l.stderr,"puts",t.to_a(i))},it.$$arity=-1),t.def(xt,"$raise",ot=function(e,n,i){if(null==l["!"]&&(l["!"]=r),null==n&&(n=r),null==i&&(i=r),null==e&&l["!"]!==r)throw l["!"];throw null==e?e=o(kt,"RuntimeError").$new():e.$$is_string?e=o(kt,"RuntimeError").$new(e):e.$$is_class&&e["$respond_to?"]("exception")?e=e.$exception(n):e["$is_a?"](o(kt,"Exception"))||(e=o(kt,"TypeError").$new("exception class/object expected")),l["!"]!==r&&t.exceptions.push(l["!"]),l["!"]=e,e},ot.$$arity=-1),t.alias(xt,"fail","raise"),t.def(xt,"$rand",at=function(t){return void 0===t?i(o(kt,"Random"),"DEFAULT").$rand():(t.$$is_number&&(t<0&&(t=Math.abs(t)),t%1!==0&&(t=t.$to_i()),0===t&&(t=void 0)),i(o(kt,"Random"),"DEFAULT").$rand(t))},at.$$arity=-1),t.def(xt,"$respond_to?",st=function(t,e){var n=this;if(null==e&&(e=!1),s(n["$respond_to_missing?"](t,e)))return!0;var r=n["$"+t];return"function"===typeof r&&!r.$$stub},st.$$arity=-2),t.def(xt,"$respond_to_missing?",lt=function(t,e){return null==e&&(e=!1),!1},lt.$$arity=-2),t.def(xt,"$require",ct=function(e){return e=o(kt,"Opal")["$coerce_to!"](e,o(kt,"String"),"to_str"),t.require(e)},ct.$$arity=1),t.def(xt,"$require_relative",ut=function(e){return o(kt,"Opal")["$try_convert!"](e,o(kt,"String"),"to_str"),e=o(kt,"File").$expand_path(o(kt,"File").$join(t.current_file,"..",e)),t.require(e)},ut.$$arity=1),t.def(xt,"$require_tree",dt=function(e){var n=[];for(var r in e=o(kt,"File").$expand_path(e),e=t.normalize(e),"."===e&&(e=""),t.modules)r["$start_with?"](e)&&n.push([r,t.require(r)]);return n},dt.$$arity=1),t.alias(xt,"send","__send__"),t.alias(xt,"public_send","__send__"),t.def(xt,"$singleton_class",ft=function(){var e=this;return t.get_singleton_class(e)},ft.$$arity=0),t.def(xt,"$sleep",ht=function(e){var n=this;null==e&&(e=r),e===r&&n.$raise(o(kt,"TypeError"),"can't convert NilClass into time interval"),e.$$is_number||n.$raise(o(kt,"TypeError"),"can't convert "+e.$class()+" into time interval"),e<0&&n.$raise(o(kt,"ArgumentError"),"time interval must be positive");var i=t.global.performance?function(){return performance.now()}:function(){return new Date},a=i();while(i()-a<=1e3*e);return e},ht.$$arity=-1),t.def(xt,"$srand",pt=function(t){return null==t&&(t=o(kt,"Random").$new_seed()),o(kt,"Random").$srand(t)},pt.$$arity=-1),t.def(xt,"$String",$t=function(t){var e;return s(e=o(kt,"Opal")["$coerce_to?"](t,o(kt,"String"),"to_str"))?e:o(kt,"Opal")["$coerce_to!"](t,o(kt,"String"),"to_s")},$t.$$arity=1),t.def(xt,"$tap",mt=function(){var e=mt.$$p,n=e||r,i=this;return e&&(mt.$$p=null),e&&(mt.$$p=null),t.yield1(n,i),i},mt.$$arity=0),t.def(xt,"$to_proc",gt=function(){var t=this;return t},gt.$$arity=0),t.def(xt,"$to_s",vt=function(){var t=this;return"#<"+t.$class()+":0x"+t.$__id__().$to_s(16)+">"},vt.$$arity=0),t.def(xt,"$catch",yt=function(e){var n=yt.$$p,i=n||r,a=this,s=r;n&&(yt.$$p=null);try{return t.yieldX(i,[])}catch(l){if(!t.rescue(l,[o(kt,"UncaughtThrowError")]))throw l;s=l;try{return s.$sym()["$=="](e)?s.$arg():a.$raise()}finally{t.pop_exception()}}},yt.$$arity=1),t.def(xt,"$throw",_t=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,i.$raise(o(kt,"UncaughtThrowError"),r)},_t.$$arity=-1),t.def(xt,"$open",bt=function(e){var n,i,a=bt.$$p,s=a||r;return a&&(bt.$$p=null),a&&(bt.$$p=null),n=t.slice.call(arguments,0,arguments.length),i=n,u(o(kt,"File"),"open",t.to_a(i),s.$to_proc())},bt.$$arity=-1),t.def(xt,"$yield_self",wt=function(){var e,n=wt.$$p,i=n||r,o=this;return n&&(wt.$$p=null),i===r?u(o,"enum_for",["yield_self"],(e=function(){e.$$s;return 1},e.$$s=o,e.$$arity=0,e)):t.yield1(i,o)},wt.$$arity=0)}(n[0],n),function(t,e,n){var r=d(t,e,"Object"),i=[r].concat(n);return r.$include(o(i,"Kernel"))}(n[0],null,n)},Opal.modules["corelib/error"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}t.top;var r=[],i=t.nil,o=(t.const_get_qualified,t.const_get_relative),a=(t.breaker,t.slice,t.klass),s=t.send,l=t.truthy,c=t.module,u=t.hash2;return t.add_stubs(["$new","$clone","$to_s","$empty?","$class","$raise","$+","$attr_reader","$[]","$>","$length","$inspect"]),function(e,n,r){var c,u,d,f,h,p,$,m,g,v,y=a(e,n,"Exception"),_=[y].concat(r);y.$$prototype.message=i,t.defs(y,"$new",c=function(e){var n,r,o=this;n=t.slice.call(arguments,0,arguments.length),r=n;var a=r.length>0?r[0]:i,s=new o.$$constructor(a);return s.name=o.$$name,s.message=a,t.send(s,s.$initialize,r),t.config.enable_stack_trace&&Error.captureStackTrace&&Error.captureStackTrace(s,v),s},c.$$arity=-1),v=y.$new,t.defs(y,"$exception",u=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,s(i,"new",t.to_a(r))},u.$$arity=-1),t.def(y,"$initialize",d=function(e){var n,r,o=this;return n=t.slice.call(arguments,0,arguments.length),r=n,o.message=r.length>0?r[0]:i},d.$$arity=-1),t.def(y,"$backtrace",f=function(){var t=this;if(t.backtrace)return t.backtrace;var e=t.stack;return"string"===typeof e?e.split("\n").slice(0,15):e?e.slice(0,15):[]},f.$$arity=0),t.def(y,"$exception",h=function(t){var e=this;if(null==t&&(t=i),t===i||e===t)return e;var n=e.$clone();return n.message=t,n},h.$$arity=-1),t.def(y,"$message",p=function(){var t=this;return t.$to_s()},p.$$arity=0),t.def(y,"$inspect",$=function(){var t=this,e=i;return e=t.$to_s(),l(e["$empty?"]())?t.$class().$to_s():"#<"+t.$class().$to_s()+": "+t.$to_s()+">"},$.$$arity=0),t.def(y,"$set_backtrace",m=function(t){var e,n,r=this,a=!0;if(t===i)r.backtrace=i;else if(t.$$is_string)r.backtrace=[t];else{if(t.$$is_array){for(e=0,n=t.length;ee:t["$>"](e)}t.top;var n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative),o=(t.breaker,t.slice,t.klass),a=t.hash2,s=t.truthy;return t.add_stubs(["$raise","$name","$new","$>","$length","$Rational"]),function(n,l,c){var u,d,f,h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A=o(n,l,"NilClass"),E=[A].concat(c);A.$$prototype.$$meta=A,function(e,n){var r,o=[e].concat(n);t.def(e,"$allocate",r=function(){var t=this;return t.$raise(i(o,"TypeError"),"allocator undefined for "+t.$name())},r.$$arity=0),t.udef(e,"$new")}(t.get_singleton_class(A),E),t.def(A,"$!",u=function(){return!0},u.$$arity=0),t.def(A,"$&",d=function(t){return!1},d.$$arity=1),t.def(A,"$|",f=function(t){return!1!==t&&t!==r},f.$$arity=1),t.def(A,"$^",h=function(t){return!1!==t&&t!==r},h.$$arity=1),t.def(A,"$==",p=function(t){return t===r},p.$$arity=1),t.def(A,"$dup",$=function(){return r},$.$$arity=0),t.def(A,"$clone",m=function(e){var n;if(null==e)e=a([],{});else if(!e.$$is_hash)throw t.ArgumentError.$new("expected kwargs");return n=e.$$smap["freeze"],null==n&&(n=!0),r},m.$$arity=-1),t.def(A,"$inspect",g=function(){return"nil"},g.$$arity=0),t.def(A,"$nil?",v=function(){return!0},v.$$arity=0),t.def(A,"$singleton_class",y=function(){return i(E,"NilClass")},y.$$arity=0),t.def(A,"$to_a",_=function(){return[]},_.$$arity=0),t.def(A,"$to_h",b=function(){return t.hash()},b.$$arity=0),t.def(A,"$to_i",w=function(){return 0},w.$$arity=0),t.alias(A,"to_f","to_i"),t.def(A,"$to_s",x=function(){return""},x.$$arity=0),t.def(A,"$to_c",k=function(){return i(E,"Complex").$new(0,0)},k.$$arity=0),t.def(A,"$rationalize",S=function(n){var r,o,a=this;return r=t.slice.call(arguments,0,arguments.length),o=r,s(e(o.$length(),1))&&a.$raise(i(E,"ArgumentError")),a.$Rational(0,1)},S.$$arity=-1),t.def(A,"$to_r",O=function(){var t=this;return t.$Rational(0,1)},O.$$arity=0),t.def(A,"$instance_variables",C=function(){return[]},C.$$arity=0)}(n[0],null,n),t.const_set(n[0],"NIL",r)},Opal.modules["corelib/boolean"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.klass),o=t.hash2;return t.add_stubs(["$raise","$name"]),function(e,a,s){var l,c,u,d,f,h,p,$,m,g,v=i(e,a,"Boolean"),y=[v].concat(s);t.defineProperty(v.$$prototype,"$$is_boolean",!0),t.defineProperty(v.$$prototype,"$$meta",v),function(e,n){var i,o=[e].concat(n);t.def(e,"$allocate",i=function(){var t=this;return t.$raise(r(o,"TypeError"),"allocator undefined for "+t.$name())},i.$$arity=0),t.udef(e,"$new")}(t.get_singleton_class(v),y),t.def(v,"$__id__",l=function(){var t=this;return t.valueOf()?2:0},l.$$arity=0),t.alias(v,"object_id","__id__"),t.def(v,"$!",c=function(){var t=this;return 1!=t},c.$$arity=0),t.def(v,"$&",u=function(t){var e=this;return 1==e&&(!1!==t&&t!==n)},u.$$arity=1),t.def(v,"$|",d=function(t){var e=this;return 1==e||!1!==t&&t!==n},d.$$arity=1),t.def(v,"$^",f=function(t){var e=this;return 1==e?!1===t||t===n:!1!==t&&t!==n},f.$$arity=1),t.def(v,"$==",h=function(t){var e=this;return 1==e===t.valueOf()},h.$$arity=1),t.alias(v,"equal?","=="),t.alias(v,"eql?","=="),t.def(v,"$singleton_class",p=function(){return r(y,"Boolean")},p.$$arity=0),t.def(v,"$to_s",$=function(){var t=this;return 1==t?"true":"false"},$.$$arity=0),t.def(v,"$dup",m=function(){var t=this;return t},m.$$arity=0),t.def(v,"$clone",g=function(e){var n,r=this;if(null==e)e=o([],{});else if(!e.$$is_hash)throw t.ArgumentError.$new("expected kwargs");return n=e.$$smap["freeze"],null==n&&(n=!0),r},g.$$arity=-1)}(e[0],Boolean,e),t.const_set(e[0],"TrueClass",r(e,"Boolean")),t.const_set(e[0],"FalseClass",r(e,"Boolean")),t.const_set(e[0],"TRUE",!0),t.const_set(e[0],"FALSE",!1)},Opal.modules["corelib/comparable"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t","$<","$equal?","$<=>","$normalize","$raise","$class"]),function(r,l){var c,u,d,f,h,p,$,m,g=a(r,"Comparable"),v=[g].concat(l);t.defs(g,"$normalize",c=function(t){return s(o(v,"Integer")["$==="](t))?t:s(e(t,0))?1:s(n(t,0))?-1:0},c.$$arity=1),t.def(g,"$==",u=function(e){var n=this,r=i;try{return!!s(n["$equal?"](e))||n["$<=>"]!=t.Kernel["$<=>"]&&(n.$$comparable?(delete n.$$comparable,!1):!!s(r=n["$<=>"](e))&&0==o(v,"Comparable").$normalize(r))}catch(a){if(!t.rescue(a,[o(v,"StandardError")]))throw a;try{return!1}finally{t.pop_exception()}}},u.$$arity=1),t.def(g,"$>",d=function(t){var e=this,n=i;return s(n=e["$<=>"](t))||e.$raise(o(v,"ArgumentError"),"comparison of "+e.$class()+" with "+t.$class()+" failed"),o(v,"Comparable").$normalize(n)>0},d.$$arity=1),t.def(g,"$>=",f=function(t){var e=this,n=i;return s(n=e["$<=>"](t))||e.$raise(o(v,"ArgumentError"),"comparison of "+e.$class()+" with "+t.$class()+" failed"),o(v,"Comparable").$normalize(n)>=0},f.$$arity=1),t.def(g,"$<",h=function(t){var e=this,n=i;return s(n=e["$<=>"](t))||e.$raise(o(v,"ArgumentError"),"comparison of "+e.$class()+" with "+t.$class()+" failed"),o(v,"Comparable").$normalize(n)<0},h.$$arity=1),t.def(g,"$<=",p=function(t){var e=this,n=i;return s(n=e["$<=>"](t))||e.$raise(o(v,"ArgumentError"),"comparison of "+e.$class()+" with "+t.$class()+" failed"),o(v,"Comparable").$normalize(n)<=0},p.$$arity=1),t.def(g,"$between?",$=function(t,r){var i=this;return!n(i,t)&&!e(i,r)},$.$$arity=2),t.def(g,"$clamp",m=function(t,r){var a=this,l=i;return l=t["$<=>"](r),s(l)||a.$raise(o(v,"ArgumentError"),"comparison of "+t.$class()+" with "+r.$class()+" failed"),s(e(o(v,"Comparable").$normalize(l),0))&&a.$raise(o(v,"ArgumentError"),"min argument must be smaller than max argument"),s(n(o(v,"Comparable").$normalize(a["$<=>"](t)),0))?t:s(e(o(v,"Comparable").$normalize(a["$<=>"](r)),0))?r:a},m.$$arity=2)}(r[0],r)},Opal.modules["corelib/regexp"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.klass),o=t.send,a=t.truthy,s=t.gvars;return t.add_stubs(["$nil?","$[]","$raise","$escape","$options","$to_str","$new","$join","$coerce_to!","$!","$match","$coerce_to?","$begin","$coerce_to","$=~","$attr_reader","$===","$inspect","$to_a"]),function(t,e,n){var r=i(t,e,"RegexpError");[r].concat(n)}(e[0],r(e,"StandardError"),e),function(e,l,c){var u,d,f,h,p,$,m,g,v,y,_=i(e,l,"Regexp"),b=[_].concat(c);t.const_set(b[0],"IGNORECASE",1),t.const_set(b[0],"EXTENDED",2),t.const_set(b[0],"MULTILINE",4),t.defineProperty(_.$$prototype,"$$is_regexp",!0),function(e,i){var l,c,u,d,f,h=[e].concat(i);t.def(e,"$allocate",l=function(){var e=l.$$p,r=this,i=n,a=n,s=n,c=n;for(e&&(l.$$p=null),s=0,c=arguments.length,a=new Array(c);s1&&o&&u.$raise(r(h,"TypeError"),"no implicit conversion of Array into String"),o&&(i=i[0]),l=void 0,a=[];for(var d=0;d=i)return s["~"]=r(b,"MatchData").$new(d,u),a===n?s["~"]:t.yield1(a,s["~"]);d.lastIndex=u.index+1}},p.$$arity=-2),t.def(_,"$match?",$=function(e,i){var o=this;if(o.uninitialized&&o.$raise(r(b,"TypeError"),"uninitialized Regexp"),void 0===i)return e!==n&&o.test(r(b,"Opal").$coerce_to(e,r(b,"String"),"to_str"));if(i=r(b,"Opal").$coerce_to(i,r(b,"Integer"),"to_int"),e===n)return!1;if(e=r(b,"Opal").$coerce_to(e,r(b,"String"),"to_str"),i<0&&(i+=e.length,i<0))return!1;var a,s=t.global_regexp(o);return a=s.exec(e),!(null===a||a.index"},g.$$arity=0),t.def(w,"$length",v=function(){var t=this;return t.matches.length},v.$$arity=0),t.alias(w,"size","length"),t.def(w,"$to_a",y=function(){var t=this;return t.matches},y.$$arity=0),t.def(w,"$to_s",_=function(){var t=this;return t.matches[0]},_.$$arity=0),t.def(w,"$values_at",b=function(e){var i,o,a=this;i=t.slice.call(arguments,0,arguments.length),o=i;var s,l,c,u=[];for(s=0;s","$==","$=~","$new","$force_encoding","$casecmp","$empty?","$ljust","$ceil","$/","$+","$rjust","$floor","$to_a","$each_char","$to_proc","$coerce_to!","$copy_singleton_methods","$initialize_clone","$initialize_dup","$enum_for","$size","$chomp","$[]","$to_i","$each_line","$class","$match","$match?","$captures","$proc","$succ","$escape"]),r.$require("corelib/comparable"),r.$require("corelib/regexp"),function(r,i,d){var f,h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt,gt,vt,yt,_t,bt,wt,xt,kt,St,Ot,Ct,At,Et,Tt,Pt,Bt,Lt,It=s(r,i,"String"),Dt=[It].concat(d);function Rt(t){function e(t){var e,n,r,i,o,s,l="",c=t.length;for(e=0;e0&&eo&&It.$raise(a(Dt,"ArgumentError"),'invalid range "'+i+"-"+o+'" in string transliteration'),s=i+1;s1,o=e(s?o.slice(1):o),s?d=n(d,o):u=n(u,o);if(u.length>0&&d.length>0){for(c="",r=0,i=u.length;r0?"["+a(Dt,"Regexp").$escape(u)+"]":d.length>0?"[^"+a(Dt,"Regexp").$escape(d)+"]":null}It.$include(a(Dt,"Comparable")),t.defineProperty(It.$$prototype,"$$is_string",!0),t.defineProperty(It.$$prototype,"$$cast",(function(t){var e=this.$$class;return e.$$constructor===String?t:new e.$$constructor(t)})),t.def(It,"$__id__",f=function(){var t=this;return t.toString()},f.$$arity=0),t.alias(It,"object_id","__id__"),t.defs(It,"$try_convert",h=function(t){return a(Dt,"Opal")["$coerce_to?"](t,a(Dt,"String"),"to_str")},h.$$arity=1),t.defs(It,"$new",p=function(t){var e=this;return null==t&&(t=""),t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str"),new e.$$constructor(t)},p.$$arity=-1),t.def(It,"$initialize",$=function(t){var e=this;return void 0===t?e:e.$raise(a(Dt,"NotImplementedError"),"Mutable strings are not supported in Opal.")},$.$$arity=-1),t.def(It,"$%",m=function(e){var n=this;return l(a(Dt,"Array")["$==="](e))?c(n,"format",[n].concat(t.to_a(e))):n.$format(n,e)},m.$$arity=1),t.def(It,"$*",g=function(t){var e=this;if(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"Integer"),"to_int"),t<0&&e.$raise(a(Dt,"ArgumentError"),"negative argument"),0===t)return e.$$cast("");var n="",r=e.toString();for(r.length*t>=1<<28&&e.$raise(a(Dt,"RangeError"),"multiply count must not overflow maximum string size");;){if(1===(1&t)&&(n+=r),t>>>=1,0===t)break;r+=r}return e.$$cast(n)},g.$$arity=1),t.def(It,"$+",v=function(t){var e=this;return t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str"),e+t.$to_s()},v.$$arity=1),t.def(It,"$<=>",y=function(t){var e=this;if(l(t["$respond_to?"]("to_str")))return t=t.$to_str().$to_s(),e>t?1:e"](e);return n===o?o:n>0?-1:n<0?1:0},y.$$arity=1),t.def(It,"$==",_=function(t){var e=this;return t.$$is_string?e.toString()===t.toString():!!a(Dt,"Opal")["$respond_to?"](t,"to_str")&&t["$=="](e)},_.$$arity=1),t.alias(It,"eql?","=="),t.alias(It,"===","=="),t.def(It,"$=~",b=function(t){var e=this;return t.$$is_string&&e.$raise(a(Dt,"TypeError"),"type mismatch: String given"),t["$=~"](e)},b.$$arity=1),t.def(It,"$[]",w=function(t,e){var n,r=this,i=r.length;if(t.$$is_range)return n=t.excl,e=a(Dt,"Opal").$coerce_to(t.end,a(Dt,"Integer"),"to_int"),t=a(Dt,"Opal").$coerce_to(t.begin,a(Dt,"Integer"),"to_int"),Math.abs(t)>i?o:(t<0&&(t+=i),e<0&&(e+=i),n||(e+=1),e-=t,e<0&&(e=0),r.$$cast(r.substr(t,e)));if(t.$$is_string)return null!=e&&r.$raise(a(Dt,"TypeError")),-1!==r.indexOf(t)?r.$$cast(t):o;if(t.$$is_regexp){var s=r.match(t);return null===s?(u["~"]=o,o):(u["~"]=a(Dt,"MatchData").$new(t,s),null==e?r.$$cast(s[0]):(e=a(Dt,"Opal").$coerce_to(e,a(Dt,"Integer"),"to_int"),e<0&&-e=0&&e=i||t<0?o:r.$$cast(r.substr(t,1)):(e=a(Dt,"Opal").$coerce_to(e,a(Dt,"Integer"),"to_int"),e<0||t>i||t<0?o:r.$$cast(r.substr(t,e)))},w.$$arity=-2),t.alias(It,"byteslice","[]"),t.def(It,"$b",x=function(){var t=this;return t.$force_encoding("binary")},x.$$arity=0),t.def(It,"$capitalize",k=function(){var t=this;return t.$$cast(t.charAt(0).toUpperCase()+t.substr(1).toLowerCase())},k.$$arity=0),t.def(It,"$casecmp",S=function(t){var e=this;if(!l(t["$respond_to?"]("to_str")))return o;t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str").$to_s();var n=/^[\x00-\x7F]*$/;return n.test(e)&&n.test(t)&&(e=e.toLowerCase(),t=t.toLowerCase()),e["$<=>"](t)},S.$$arity=1),t.def(It,"$casecmp?",O=function(t){var e=this,n=e.$casecmp(t);return n===o?o:0===n},O.$$arity=1),t.def(It,"$center",C=function(t,r){var i=this;if(null==r&&(r=" "),t=a(Dt,"Opal").$coerce_to(t,a(Dt,"Integer"),"to_int"),r=a(Dt,"Opal").$coerce_to(r,a(Dt,"String"),"to_str").$to_s(),l(r["$empty?"]())&&i.$raise(a(Dt,"ArgumentError"),"zero width padding"),l(t<=i.length))return i;var o=i.$ljust(e(n(t,i.length),2).$ceil(),r),s=i.$rjust(e(n(t,i.length),2).$floor(),r);return i.$$cast(s+o.slice(i.length))},C.$$arity=-2),t.def(It,"$chars",A=function(){var t=A.$$p,e=t||o,n=this;return t&&(A.$$p=null),t&&(A.$$p=null),l(e)?c(n,"each_char",[],e.$to_proc()):n.$each_char().$to_a()},A.$$arity=0),t.def(It,"$chomp",E=function(t){var e,n=this;if(null==u["/"]&&(u["/"]=o),null==t&&(t=u["/"]),l(t===o||0===n.length))return n;if(t=a(Dt,"Opal")["$coerce_to!"](t,a(Dt,"String"),"to_str").$to_s(),"\n"===t)e=n.replace(/\r?\n?$/,"");else if(""===t)e=n.replace(/(\r?\n)+$/,"");else if(n.length>=t.length){var r=n.substr(n.length-t.length,t.length);r===t&&(e=n.substr(0,n.length-t.length))}return null!=e?n.$$cast(e):n},E.$$arity=-1),t.def(It,"$chop",T=function(){var t,e=this,n=e.length;return t=n<=1?"":"\n"===e.charAt(n-1)&&"\r"===e.charAt(n-2)?e.substr(0,n-2):e.substr(0,n-1),e.$$cast(t)},T.$$arity=0),t.def(It,"$chr",P=function(){var t=this;return t.charAt(0)},P.$$arity=0),t.def(It,"$clone",B=function(){var t=this,e=o;return e=t.slice(),e.$copy_singleton_methods(t),e.$initialize_clone(t),e},B.$$arity=0),t.def(It,"$dup",L=function(){var t=this,e=o;return e=t.slice(),e.$initialize_dup(t),e},L.$$arity=0),t.def(It,"$count",I=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n,0===r.length&&i.$raise(a(Dt,"ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var o=Rt(r);return null===o?0:i.length-i.replace(new RegExp(o,"g"),"").length},I.$$arity=-1),t.def(It,"$delete",D=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n,0===r.length&&i.$raise(a(Dt,"ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var o=Rt(r);return null===o?i:i.$$cast(i.replace(new RegExp(o,"g"),""))},D.$$arity=-1),t.def(It,"$delete_prefix",R=function(t){var e=this;return t.$$is_string||(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str")),e.slice(0,t.length)===t?e.$$cast(e.slice(t.length)):e},R.$$arity=1),t.def(It,"$delete_suffix",j=function(t){var e=this;return t.$$is_string||(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str")),e.slice(e.length-t.length)===t?e.$$cast(e.slice(0,e.length-t.length)):e},j.$$arity=1),t.def(It,"$downcase",M=function(){var t=this;return t.$$cast(t.toLowerCase())},M.$$arity=0),t.def(It,"$each_char",F=function(){var e,n=F.$$p,r=n||o,i=this;if(n&&(F.$$p=null),n&&(F.$$p=null),r===o)return c(i,"enum_for",["each_char"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var a=0,s=i.length;a=l.length&&i.substr(i.length-l.length,l.length)==l)return!0}return!1},H.$$arity=-1),t.alias(It,"equal?","==="),t.def(It,"$gsub",V=function(e,n){var r=V.$$p,i=r||o,s=this;if(r&&(V.$$p=null),r&&(V.$$p=null),void 0===n&&i===o)return s.$enum_for("gsub",e);var l,c,d,f="",h=o,p=0;e.$$is_regexp?e=t.global_multiline_regexp(e):(e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str"),e=new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));while(1){if(l=e.exec(s),null===l){u["~"]=o,f+=s.slice(p);break}h=a(Dt,"MatchData").$new(e,l),void 0===n?(d=e.lastIndex,c=i(l[0]),e.lastIndex=d):n.$$is_hash?c=n["$[]"](l[0]).$to_s():(n.$$is_string||(n=a(Dt,"Opal").$coerce_to(n,a(Dt,"String"),"to_str")),c=n.replace(/([\\]+)([0-9+&`'])/g,(function(t,e,n){if(e.length%2===0)return t;switch(n){case"+":for(var r=l.length-1;r>0;r--)if(void 0!==l[r])return e.slice(1)+l[r];return"";case"&":return e.slice(1)+l[0];case"`":return e.slice(1)+s.slice(0,l.index);case"'":return e.slice(1)+s.slice(l.index+l[0].length);default:return e.slice(1)+(l[n]||"")}})).replace(/\\\\/g,"\\")),e.lastIndex===l.index?(f+=c+s.slice(p,l.index+1),e.lastIndex+=1):f+=s.slice(p,l.index)+c,p=e.lastIndex}return u["~"]=h,s.$$cast(f)},V.$$arity=-2),t.def(It,"$hash",U=function(){var t=this;return t.toString()},U.$$arity=0),t.def(It,"$hex",q=function(){var t=this;return t.$to_i(16)},q.$$arity=0),t.def(It,"$include?",W=function(t){var e=this;return t.$$is_string||(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str")),-1!==e.indexOf(t)},W.$$arity=1),t.def(It,"$index",G=function(e,n){var r,i,s,l=this;if(void 0===n)n=0;else if(n=a(Dt,"Opal").$coerce_to(n,a(Dt,"Integer"),"to_int"),n<0&&(n+=l.length,n<0))return o;if(e.$$is_regexp){s=t.global_multiline_regexp(e);while(1){if(i=s.exec(l),null===i){u["~"]=o,r=-1;break}if(i.index>=n){u["~"]=a(Dt,"MatchData").$new(s,i),r=i.index;break}s.lastIndex=i.index+1}}else e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str"),r=0===e.length&&n>l.length?-1:l.indexOf(e,n);return-1===r?o:r},G.$$arity=-2),t.def(It,"$inspect",Y=function(){var t=this,e=/[\\\"\x00-\x1f\u007F-\u009F\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"":"\\a","":"\\e","\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\v":"\\v",'"':'\\"',"\\":"\\\\"},r=t.replace(e,(function(t){return n[t]||"\\u"+("0000"+t.charCodeAt(0).toString(16).toUpperCase()).slice(-4)}));return'"'+r.replace(/\#[\$\@\{]/g,"\\$&")+'"'},Y.$$arity=0),t.def(It,"$intern",K=function(){var t=this;return t.toString()},K.$$arity=0),t.def(It,"$lines",X=function(t){var e=X.$$p,n=e||o,r=this,i=o;return null==u["/"]&&(u["/"]=o),e&&(X.$$p=null),e&&(X.$$p=null),null==t&&(t=u["/"]),i=c(r,"each_line",[t],n.$to_proc()),l(n)?r:i.$to_a()},X.$$arity=-1),t.def(It,"$length",Z=function(){var t=this;return t.length},Z.$$arity=0),t.def(It,"$ljust",J=function(t,e){var n=this;if(null==e&&(e=" "),t=a(Dt,"Opal").$coerce_to(t,a(Dt,"Integer"),"to_int"),e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str").$to_s(),l(e["$empty?"]())&&n.$raise(a(Dt,"ArgumentError"),"zero width padding"),l(t<=n.length))return n;var r=-1,i="";t-=n.length;while(++r=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122)switch(n){case 57:o=!0,n=48;break;case 90:o=!0,n=65;break;case 122:o=!0,n=97;break;default:o=!1,n+=1}else-1===i?255===n?(o=!0,n=0):(o=!1,n+=1):o=!0;if(r=r.slice(0,e)+String.fromCharCode(n)+r.slice(e+1),o&&(0===e||e===i)){switch(n){case 65:break;case 97:break;default:n+=1}r=0===e?String.fromCharCode(n)+r:r.slice(0,e)+String.fromCharCode(n)+r.slice(e),o=!1}if(!o)break}return t.$$cast(r)},rt.$$arity=0),t.def(It,"$oct",it=function(){var t,e=this,n=e,r=8;return/^\s*_/.test(n)?0:(n=n.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/i,(function(t,e,n,i){switch(i.charAt(0)){case"+":case"-":return t;case"0":if("x"===i.charAt(1)&&"0x"===n)return t}switch(n){case"0b":r=2;break;case"0":case"0o":r=8;break;case"0d":r=10;break;case"0x":r=16;break}return e+i})),t=parseInt(n.replace(/_(?!_)/g,""),r),isNaN(t)?0:t)},it.$$arity=0),t.def(It,"$ord",ot=function(){var t=this;return t.charCodeAt(0)},ot.$$arity=0),t.def(It,"$partition",at=function(t){var e,n,r=this;return t.$$is_regexp?(n=t.exec(r),null===n?e=-1:(a(Dt,"MatchData").$new(t,n),t=n[0],e=n.index)):(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str"),e=r.indexOf(t)),-1===e?[r,"",""]:[r.slice(0,e),r.slice(e,e+t.length),r.slice(e+t.length)]},at.$$arity=1),t.def(It,"$reverse",st=function(){var t=this;return t.split("").reverse().join("")},st.$$arity=0),t.def(It,"$rindex",lt=function(e,n){var r,i,s,l,c=this;if(void 0===n)n=c.length;else if(n=a(Dt,"Opal").$coerce_to(n,a(Dt,"Integer"),"to_int"),n<0&&(n+=c.length,n<0))return o;if(e.$$is_regexp){i=null,s=t.global_multiline_regexp(e);while(1){if(l=s.exec(c),null===l||l.index>n)break;i=l,s.lastIndex=i.index+1}null===i?(u["~"]=o,r=-1):(a(Dt,"MatchData").$new(s,i),r=i.index)}else e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str"),r=c.lastIndexOf(e,n);return-1===r?o:r},lt.$$arity=-2),t.def(It,"$rjust",ct=function(t,e){var n=this;if(null==e&&(e=" "),t=a(Dt,"Opal").$coerce_to(t,a(Dt,"Integer"),"to_int"),e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str").$to_s(),l(e["$empty?"]())&&n.$raise(a(Dt,"ArgumentError"),"zero width padding"),l(t<=n.length))return n;var r=Math.floor(t-n.length),i=Math.floor(r/e.length),o=Array(i+1).join(e),s=r-o.length;return n.$$cast(o+e.slice(0,s)+n)},ct.$$arity=-2),t.def(It,"$rpartition",ut=function(e){var n,r,i,o,s=this;if(e.$$is_regexp){r=null,i=t.global_multiline_regexp(e);while(1){if(o=i.exec(s),null===o)break;r=o,i.lastIndex=r.index+1}null===r?n=-1:(a(Dt,"MatchData").$new(i,r),e=r[0],n=r.index)}else e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str"),n=s.lastIndexOf(e);return-1===n?["","",s]:[s.slice(0,n),s.slice(n,n+e.length),s.slice(n+e.length)]},ut.$$arity=1),t.def(It,"$rstrip",dt=function(){var t=this;return t.replace(/[\s\u0000]*$/,"")},dt.$$arity=0),t.def(It,"$scan",ft=function(e){var n=ft.$$p,r=n||o,i=this;n&&(ft.$$p=null),n&&(ft.$$p=null);var s,l=[],c=o;e.$$is_regexp?e=t.global_multiline_regexp(e):(e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str"),e=new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));while(null!=(s=e.exec(i)))c=a(Dt,"MatchData").$new(e,s),r===o?1==s.length?l.push(s[0]):l.push(c.$captures()):1==s.length?r(s[0]):r.call(i,c.$captures()),e.lastIndex===s.index&&(e.lastIndex+=1);return u["~"]=c,r!==o?i:l},ft.$$arity=1),t.alias(It,"size","length"),t.alias(It,"slice","[]"),t.def(It,"$split",ht=function(e,n){var r,i=this;if(null==u[";"]&&(u[";"]=o),0===i.length)return[];if(void 0===n)n=0;else if(n=a(Dt,"Opal")["$coerce_to!"](n,a(Dt,"Integer"),"to_int"),1===n)return[i];void 0!==e&&e!==o||(e=l(r=u[";"])?r:" ");var s,c,d,f=[],h=i.toString(),p=0;if(e.$$is_regexp?e=t.global_multiline_regexp(e):(e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str").$to_s()," "===e?(e=/\s+/gm,h=h.replace(/^\s+/,"")):e=new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm")),f=h.split(e),1===f.length&&f[0]===h)return[i.$$cast(f[0])];while(-1!==(c=f.indexOf(void 0)))f.splice(c,1);function $(){for(c=0;c=f.length)return $(),f;c=0;while(null!==s){if(c++,p=e.lastIndex,c+1===n)break;s=e.exec(h)}return f.splice(n-1,f.length-1,h.slice(p)),$(),f},ht.$$arity=-1),t.def(It,"$squeeze",pt=function(e){var n,r,i=this;if(n=t.slice.call(arguments,0,arguments.length),r=n,0===r.length)return i.$$cast(i.replace(/(.)\1+/g,"$1"));var o=Rt(r);return null===o?i:i.$$cast(i.replace(new RegExp("("+o+")\\1+","g"),"$1"))},pt.$$arity=-1),t.def(It,"$start_with?",$t=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;for(var o=0,s=r.length;o0;r--)if(void 0!==l[r])return e.slice(1)+l[r];return"";case"&":return e.slice(1)+l[0];case"`":return e.slice(1)+i.slice(0,l.index);case"'":return e.slice(1)+i.slice(l.index+l[0].length);default:return e.slice(1)+(l[n]||"")}})).replace(/\\\\/g,"\\"),s=i.slice(0,l.index)+e+i.slice(l.index+l[0].length))),i.$$cast(s)},gt.$$arity=-2),t.alias(It,"succ","next"),t.def(It,"$sum",vt=function(t){var e=this;null==t&&(t=16),t=a(Dt,"Opal").$coerce_to(t,a(Dt,"Integer"),"to_int");for(var n=0,r=e.length,i=0;i36)&&e.$raise(a(Dt,"ArgumentError"),"invalid radix "+i),/^\s*_/.test(r)?0:(r=r.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/,(function(t,e,n,r){switch(r.charAt(0)){case"+":case"-":return t;case"0":if("x"===r.charAt(1)&&"0x"===n&&(0===i||16===i))return t}switch(n){case"0b":if(0===i||2===i)return i=2,e+r;break;case"0":case"0o":if(0===i||8===i)return i=8,e+r;break;case"0d":if(0===i||10===i)return i=10,e+r;break;case"0x":if(0===i||16===i)return i=16,e+r;break}return t})),n=parseInt(r.replace(/_(?!_)/g,""),i),isNaN(n)?0:n)},bt.$$arity=-1),t.def(It,"$to_proc",wt=function(){var e,r=wt.$$p,i=this,s=o;return r&&(wt.$$p=null),s=n("$",i.valueOf()),c(i,"proc",[],(e=function(n){var r,i,l=e.$$s||this,c=e.$$p,u=c||o;c&&(e.$$p=null),r=t.slice.call(arguments,0,arguments.length),i=r,0===i.length&&l.$raise(a(Dt,"ArgumentError"),"no receiver given");var d=i[0];null==d&&(d=o);var f=d[s];return f?("function"===typeof u&&(f.$$p=u),1===i.length?f.call(d):f.apply(d,i.slice(1))):d.$method_missing.apply(d,i)},e.$$s=i,e.$$arity=-1,e))},wt.$$arity=0),t.def(It,"$to_s",xt=function(){var t=this;return t.toString()},xt.$$arity=0),t.alias(It,"to_str","to_s"),t.alias(It,"to_sym","intern"),t.def(It,"$tr",kt=function(t,e){var n,r,i,o,s,l,c,u=this;if(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str").$to_s(),e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str").$to_s(),0==t.length||t===e)return u;var d={},f=t.split(""),h=f.length,p=e.split(""),$=p.length,m=!1,g=null;"^"===f[0]&&f.length>1&&(m=!0,f.shift(),g=p[$-1],h-=1);var v=[],y=null;for(r=!1,n=0;nl&&u.$raise(a(Dt,"ArgumentError"),'invalid range "'+String.fromCharCode(s)+"-"+String.fromCharCode(l)+'" in string transliteration'),i=s+1;i0){var _=[],b=null;for(r=!1,n=0;n<$;n++)if(o=p[n],null==b)b=o,_.push(o);else if("-"===o)"-"===b?(_.push("-"),_.push("-")):n==$-1?_.push("-"):r=!0;else if(r){for(s=b.charCodeAt(0),l=o.charCodeAt(0),s>l&&u.$raise(a(Dt,"ArgumentError"),'invalid range "'+String.fromCharCode(s)+"-"+String.fromCharCode(l)+'" in string transliteration'),i=s+1;i0){var x=$>0?p[$-1]:"";for(n=0;n1&&(m=!0,f.shift(),g=p[$-1],h-=1);var v=[],y=null;for(r=!1,n=0;nl&&u.$raise(a(Dt,"ArgumentError"),'invalid range "'+String.fromCharCode(s)+"-"+String.fromCharCode(l)+'" in string transliteration'),i=s+1;i0){var _=[],b=null;for(r=!1,n=0;n<$;n++)if(o=p[n],null==y)y=o,_.push(o);else if("-"===o)"-"===b?(_.push("-"),_.push("-")):n==$-1?_.push("-"):r=!0;else if(r){for(s=y.charCodeAt(0),l=o.charCodeAt(0),s>l&&u.$raise(a(Dt,"ArgumentError"),'invalid range "'+String.fromCharCode(s)+"-"+String.fromCharCode(l)+'" in string transliteration'),i=s+1;i0){var x=$>0?p[$-1]:"";for(n=0;ne:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t","$*","$coerce_to","$try_convert","$<","$+","$-","$ceil","$/","$size","$__send__","$length","$<=","$[]","$push","$<<","$[]=","$===","$inspect","$<=>","$first","$reverse","$sort","$to_proc","$compare","$call","$dup","$to_a","$sort!","$map!","$key?","$values","$zip"]),function(l,v){var y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht=f(l,"Enumerable"),pt=[ht].concat(v);function $t(t){return 0===t.length&&(t=[c]),t.length>1&&(t=[t]),t}t.def(ht,"$all?",y=function(e){try{var n,r,i,o=y.$$p,a=o||c,s=this;return o&&(y.$$p=null),o&&(y.$$p=null),h(void 0!==e)?p(s,"each",[],(n=function(r){n.$$s;var i,o,a=c;if(i=t.slice.call(arguments,0,arguments.length),o=i,a=$t(o),h(p(e,"public_send",["==="].concat(t.to_a(a)))))return c;t.ret(!1)},n.$$s=s,n.$$arity=-1,n)):p(s,"each",[],a!==c?(r=function(e){var n,i;r.$$s;if(n=t.slice.call(arguments,0,arguments.length),i=n,h(t.yieldX(a,t.to_a(i))))return c;t.ret(!1)},r.$$s=s,r.$$arity=-1,r):(i=function(e){var n,r;i.$$s;if(n=t.slice.call(arguments,0,arguments.length),r=n,h(d(pt,"Opal").$destructure(r)))return c;t.ret(!1)},i.$$s=s,i.$$arity=-1,i)),!0}catch(l){if(l===t.returner)return l.$v;throw l}},y.$$arity=-1),t.def(ht,"$any?",_=function(e){try{var n,r,i,o=_.$$p,a=o||c,s=this;return o&&(_.$$p=null),o&&(_.$$p=null),h(void 0!==e)?p(s,"each",[],(n=function(r){n.$$s;var i,o,a=c;if(i=t.slice.call(arguments,0,arguments.length),o=i,a=$t(o),!h(p(e,"public_send",["==="].concat(t.to_a(a)))))return c;t.ret(!0)},n.$$s=s,n.$$arity=-1,n)):p(s,"each",[],a!==c?(r=function(e){var n,i;r.$$s;if(n=t.slice.call(arguments,0,arguments.length),i=n,!h(t.yieldX(a,t.to_a(i))))return c;t.ret(!0)},r.$$s=s,r.$$arity=-1,r):(i=function(e){var n,r;i.$$s;if(n=t.slice.call(arguments,0,arguments.length),r=n,!h(d(pt,"Opal").$destructure(r)))return c;t.ret(!0)},i.$$s=s,i.$$arity=-1,i)),!1}catch(l){if(l===t.returner)return l.$v;throw l}},_.$$arity=-1),t.def(ht,"$chunk",b=function(){var e,n,r=b.$$p,i=r||c,o=this;return r&&(b.$$p=null),r&&(b.$$p=null),i===c?p(o,"to_enum",["chunk"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=o,e.$$arity=0,e)):p(u("::","Enumerator"),"new",[],(n=function(e){var r=n.$$s||this;null==e&&(e=c);var o=c,a=[];function s(){a.length>0&&e.$yield(o,a)}r.$each.$$p=function(e){var n=t.yield1(i,e);n===c?(s(),a=[],o=c):(o===c||o===n?a.push(e):(s(),a=[e]),o=n)},r.$each(),s()},n.$$s=o,n.$$arity=1,n))},b.$$arity=0),t.def(ht,"$chunk_while",w=function(){var e,n=w.$$p,r=n||c,i=this;return n&&(w.$$p=null),n&&(w.$$p=null),r!==c||i.$raise(d(pt,"ArgumentError"),"no block given"),p(i,"slice_when",[],(e=function(n,i){e.$$s;return null==n&&(n=c),null==i&&(i=c),t.yieldX(r,[n,i])["$!"]()},e.$$s=i,e.$$arity=2,e))},w.$$arity=0),t.def(ht,"$collect",x=function(){var e,n=x.$$p,r=n||c,i=this;if(n&&(x.$$p=null),n&&(x.$$p=null),r===c)return p(i,"enum_for",["collect"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=i,e.$$arity=0,e));var o=[];return i.$each.$$p=function(){var e=t.yieldX(r,arguments);o.push(e)},i.$each(),o},x.$$arity=0),t.def(ht,"$collect_concat",k=function(){var e,n,r=k.$$p,i=r||c,o=this;return r&&(k.$$p=null),r&&(k.$$p=null),i===c?p(o,"enum_for",["collect_concat"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=o,e.$$arity=0,e)):p(o,"map",[],(n=function(e){n.$$s;return null==e&&(e=c),t.yield1(i,e)},n.$$s=o,n.$$arity=1,n)).$flatten(1)},k.$$arity=0),t.def(ht,"$count",S=function(e){var n,r,i,o=S.$$p,a=o||c,s=this,l=c;return o&&(S.$$p=null),o&&(S.$$p=null),l=0,null!=e&&a!==c&&s.$warn("warning: given block not used"),h(null!=e)?a=p(s,"proc",[],(n=function(r){var i,o;n.$$s;return i=t.slice.call(arguments,0,arguments.length),o=i,d(pt,"Opal").$destructure(o)["$=="](e)},n.$$s=s,n.$$arity=-1,n)):h(a["$nil?"]())&&(a=p(s,"proc",[],(r=function(){r.$$s;return!0},r.$$s=s,r.$$arity=0,r))),p(s,"each",[],(i=function(e){var n,r;i.$$s;return n=t.slice.call(arguments,0,arguments.length),r=n,h(t.yieldX(a,r))?l++:c},i.$$s=s,i.$$arity=-1,i)),l},S.$$arity=-1),t.def(ht,"$cycle",O=function(r){var i,o=O.$$p,a=o||c,s=this;if(o&&(O.$$p=null),o&&(O.$$p=null),null==r&&(r=c),a===c)return p(s,"enum_for",["cycle",r],(i=function(){var t=i.$$s||this;return h(r["$nil?"]())?h(t["$respond_to?"]("size"))?u(d(pt,"Float"),"INFINITY"):c:(r=d(pt,"Opal")["$coerce_to!"](r,d(pt,"Integer"),"to_int"),h(e(r,0))?n(t.$enumerator_size(),r):0)},i.$$s=s,i.$$arity=0,i));if(h(r["$nil?"]()));else if(r=d(pt,"Opal")["$coerce_to!"](r,d(pt,"Integer"),"to_int"),h(r<=0))return c;var l,f,$,m=[];if(s.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);t.yield1(a,e);m.push(e)},s.$each(),void 0!==l)return l;if(0===m.length)return c;if(r===c)while(1)for(f=0,$=m.length;f<$;f++)t.yield1(a,m[f]);else while(r>1){for(f=0,$=m.length;f<$;f++)t.yield1(a,m[f]);r--}},O.$$arity=-1),t.def(ht,"$detect",C=function(e){try{var n,r=C.$$p,i=r||c,o=this;return r&&(C.$$p=null),r&&(C.$$p=null),i===c?o.$enum_for("detect",e):(p(o,"each",[],(n=function(e){n.$$s;var r,o,a=c;if(r=t.slice.call(arguments,0,arguments.length),o=r,a=d(pt,"Opal").$destructure(o),!h(t.yield1(i,a)))return c;t.ret(a)},n.$$s=o,n.$$arity=-1,n)),void 0!==e?"function"===typeof e?e():e:c)}catch(a){if(a===t.returner)return a.$v;throw a}},C.$$arity=-1),t.def(ht,"$drop",A=function(t){var e=this;t=d(pt,"Opal").$coerce_to(t,d(pt,"Integer"),"to_int"),h(t<0)&&e.$raise(d(pt,"ArgumentError"),"attempt to drop negative size");var n=[],r=0;return e.$each.$$p=function(){t<=r&&n.push(d(pt,"Opal").$destructure(arguments)),r++},e.$each(),n},A.$$arity=1),t.def(ht,"$drop_while",E=function(){var e=E.$$p,n=e||c,r=this;if(e&&(E.$$p=null),e&&(E.$$p=null),n===c)return r.$enum_for("drop_while");var i=[],o=!0;return r.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);if(o){var r=t.yield1(n,e);$(r)&&(o=!1,i.push(e))}else i.push(e)},r.$each(),i},E.$$arity=0),t.def(ht,"$each_cons",T=function(e){var n,a=T.$$p,s=a||c,l=this;if(a&&(T.$$p=null),a&&(T.$$p=null),h(1!=arguments.length)&&l.$raise(d(pt,"ArgumentError"),"wrong number of arguments ("+arguments.length+" for 1)"),e=d(pt,"Opal").$try_convert(e,d(pt,"Integer"),"to_int"),h(e<=0)&&l.$raise(d(pt,"ArgumentError"),"invalid size"),s===c)return p(l,"enum_for",["each_cons",e],(n=function(){var t,a=n.$$s||this,s=c;return s=a.$enumerator_size(),h(s["$nil?"]())?c:h(h(t=s["$=="](0))?t:r(s,e))?0:i(o(s,e),1)},n.$$s=l,n.$$arity=0,n));var u=[],f=c;return l.$each.$$p=function(){var n=d(pt,"Opal").$destructure(arguments);u.push(n),u.length>e&&u.shift(),u.length==e&&t.yield1(s,u.slice(0,e))},l.$each(),f},T.$$arity=1),t.def(ht,"$each_entry",P=function(e){var n,r,i,o=P.$$p,a=o||c,s=this;return o&&(P.$$p=null),o&&(P.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,a===c?p(s,"to_enum",["each_entry"].concat(t.to_a(r)),(i=function(){var t=i.$$s||this;return t.$enumerator_size()},i.$$s=s,i.$$arity=0,i)):(s.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);t.yield1(a,e)},s.$each.apply(s,r),s)},P.$$arity=-1),t.def(ht,"$each_slice",B=function(e){var n,r=B.$$p,i=r||c,o=this;if(r&&(B.$$p=null),r&&(B.$$p=null),e=d(pt,"Opal").$coerce_to(e,d(pt,"Integer"),"to_int"),h(e<=0)&&o.$raise(d(pt,"ArgumentError"),"invalid slice size"),i===c)return p(o,"enum_for",["each_slice",e],(n=function(){var t=n.$$s||this;return h(t["$respond_to?"]("size"))?a(t.$size(),e).$ceil():c},n.$$s=o,n.$$arity=0,n));var s,l=[];return o.$each.$$p=function(){var n=d(pt,"Opal").$destructure(arguments);l.push(n),l.length===e&&(t.yield1(i,l),l=[])},o.$each(),void 0!==s?s:(l.length>0&&t.yield1(i,l),c)},B.$$arity=1),t.def(ht,"$each_with_index",L=function(e){var n,r,i,o=L.$$p,a=o||c,s=this;if(o&&(L.$$p=null),o&&(L.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,a===c)return p(s,"enum_for",["each_with_index"].concat(t.to_a(r)),(i=function(){var t=i.$$s||this;return t.$enumerator_size()},i.$$s=s,i.$$arity=0,i));var l,u=0;return s.$each.$$p=function(){var t=d(pt,"Opal").$destructure(arguments);a(t,u),u++},s.$each.apply(s,r),void 0!==l?l:s},L.$$arity=-1),t.def(ht,"$each_with_object",I=function(t){var e,n,r=I.$$p,i=r||c,o=this;return r&&(I.$$p=null),r&&(I.$$p=null),i===c?p(o,"enum_for",["each_with_object",t],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=o,e.$$arity=0,e)):(o.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);i(e,t)},o.$each(),void 0!==n?n:t)},I.$$arity=1),t.def(ht,"$entries",D=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;var o=[];return i.$each.$$p=function(){o.push(d(pt,"Opal").$destructure(arguments))},i.$each.apply(i,r),o},D.$$arity=-1),t.alias(ht,"find","detect"),t.def(ht,"$find_all",R=function(){var e,n=R.$$p,r=n||c,i=this;if(n&&(R.$$p=null),n&&(R.$$p=null),r===c)return p(i,"enum_for",["find_all"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=i,e.$$arity=0,e));var o=[];return i.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),n=t.yield1(r,e);h(n)&&o.push(e)},i.$each(),o},R.$$arity=0),t.def(ht,"$find_index",j=function(e){try{var n,r,i=j.$$p,o=i||c,a=this,s=c;return i&&(j.$$p=null),i&&(j.$$p=null),h(void 0===e&&o===c)?a.$enum_for("find_index"):(null!=e&&o!==c&&a.$warn("warning: given block not used"),s=0,h(null!=e)?p(a,"each",[],(n=function(r){var i,o;n.$$s;return i=t.slice.call(arguments,0,arguments.length),o=i,d(pt,"Opal").$destructure(o)["$=="](e)&&t.ret(s),s+=1},n.$$s=a,n.$$arity=-1,n)):p(a,"each",[],(r=function(e){var n,i;r.$$s;return n=t.slice.call(arguments,0,arguments.length),i=n,h(t.yieldX(o,t.to_a(i)))&&t.ret(s),s+=1},r.$$s=a,r.$$arity=-1,r)),c)}catch(l){if(l===t.returner)return l.$v;throw l}},j.$$arity=-1),t.def(ht,"$first",M=function(e){try{var n,r,i=this,o=c,a=c;return h(void 0===e)?p(i,"each",[],(n=function(e){n.$$s;null==e&&(e=c),t.ret(e)},n.$$s=i,n.$$arity=1,n)):(o=[],e=d(pt,"Opal").$coerce_to(e,d(pt,"Integer"),"to_int"),h(e<0)&&i.$raise(d(pt,"ArgumentError"),"attempt to take negative size"),h(0==e)?[]:(a=0,p(i,"each",[],(r=function(n){var i,s;r.$$s;if(i=t.slice.call(arguments,0,arguments.length),s=i,o.push(d(pt,"Opal").$destructure(s)),!h(e<=++a))return c;t.ret(o)},r.$$s=i,r.$$arity=-1,r)),o))}catch(s){if(s===t.returner)return s.$v;throw s}},M.$$arity=-1),t.alias(ht,"flat_map","collect_concat"),t.def(ht,"$grep",F=function(n){var r,i=F.$$p,o=i||c,a=this,l=c;return i&&(F.$$p=null),i&&(F.$$p=null),l=[],p(a,"each",[],(r=function(i){r.$$s;var a,u,d=c;return a=t.slice.call(arguments,0,arguments.length),u=a,d=$t(u),h(p(n,"__send__",["==="].concat(t.to_a(d))))?(o!==c?(h(e(u.$length(),1))&&(u=[u]),u=t.yieldX(o,t.to_a(u))):h(s(u.$length(),1))&&(u=u["$[]"](0)),l.$push(u)):c},r.$$s=a,r.$$arity=-1,r)),l},F.$$arity=1),t.def(ht,"$grep_v",N=function(n){var r,i=N.$$p,o=i||c,a=this,l=c;return i&&(N.$$p=null),i&&(N.$$p=null),l=[],p(a,"each",[],(r=function(i){r.$$s;var a,u,d=c;return a=t.slice.call(arguments,0,arguments.length),u=a,d=$t(u),h(p(n,"__send__",["==="].concat(t.to_a(d))))?c:(o!==c?(h(e(u.$length(),1))&&(u=[u]),u=t.yieldX(o,t.to_a(u))):h(s(u.$length(),1))&&(u=u["$[]"](0)),l.$push(u))},r.$$s=a,r.$$arity=-1,r)),l},N.$$arity=1),t.def(ht,"$group_by",z=function(){var e,n,r,i=z.$$p,a=i||c,s=this,l=c,u=c;return i&&(z.$$p=null),i&&(z.$$p=null),a===c?p(s,"enum_for",["group_by"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=s,e.$$arity=0,e)):(l=m([],{}),s.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),r=t.yield1(a,e);(h(n=l["$[]"](r))?n:(u=[r,[]],p(l,"[]=",t.to_a(u)),u[o(u["length"],1)]))["$<<"](e)},s.$each(),void 0!==r?r:l)},z.$$arity=0),t.def(ht,"$include?",H=function(e){try{var n,r=this;return p(r,"each",[],(n=function(r){var i,o;n.$$s;if(i=t.slice.call(arguments,0,arguments.length),o=i,!d(pt,"Opal").$destructure(o)["$=="](e))return c;t.ret(!0)},n.$$s=r,n.$$arity=-1,n)),!1}catch(i){if(i===t.returner)return i.$v;throw i}},H.$$arity=1),t.def(ht,"$inject",V=function(e,n){var r=V.$$p,i=r||c,o=this;r&&(V.$$p=null),r&&(V.$$p=null);var a=e;return i!==c&&void 0===n?o.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);void 0!==a?(e=t.yieldX(i,[a,e]),a=e):a=e}:(void 0===n&&(d(pt,"Symbol")["$==="](e)||o.$raise(d(pt,"TypeError"),e.$inspect()+" is not a Symbol"),n=e,a=void 0),o.$each.$$p=function(){var t=d(pt,"Opal").$destructure(arguments);a=void 0!==a?a.$__send__(n,t):t}),o.$each(),void 0==a?c:a},V.$$arity=-1),t.def(ht,"$lazy",U=function(){var e,n=this;return p(u(d(pt,"Enumerator"),"Lazy"),"new",[n,n.$enumerator_size()],(e=function(n,r){var i,o;e.$$s;return null==n&&(n=c),i=t.slice.call(arguments,1,arguments.length),o=i,p(n,"yield",t.to_a(o))},e.$$s=n,e.$$arity=-2,e))},U.$$arity=0),t.def(ht,"$enumerator_size",q=function(){var t=this;return h(t["$respond_to?"]("size"))?t.$size():c},q.$$arity=0),t.alias(ht,"map","collect"),t.def(ht,"$max",W=function(e){var n,r,i=W.$$p,o=i||c,a=this;return i&&(W.$$p=null),i&&(W.$$p=null),void 0===e||e===c?(a.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);void 0!==n?(r=o!==c?t.yieldX(o,[e,n]):e["$<=>"](n),r===c&&a.$raise(d(pt,"ArgumentError"),"comparison failed"),r>0&&(n=e)):n=e},a.$each(),void 0===n?c:n):(e=d(pt,"Opal").$coerce_to(e,d(pt,"Integer"),"to_int"),p(a,"sort",[],o.$to_proc()).$reverse().$first(e))},W.$$arity=-1),t.def(ht,"$max_by",G=function(){var e,n,r,i=G.$$p,o=i||c,a=this;return i&&(G.$$p=null),i&&(G.$$p=null),h(o)?(a.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),i=t.yield1(o,e);if(void 0===n)return n=e,void(r=i);i["$<=>"](r)>0&&(n=e,r=i)},a.$each(),void 0===n?c:n):p(a,"enum_for",["max_by"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=a,e.$$arity=0,e))},G.$$arity=0),t.alias(ht,"member?","include?"),t.def(ht,"$min",Y=function(){var t,e=Y.$$p,n=e||c,r=this;return e&&(Y.$$p=null),e&&(Y.$$p=null),r.$each.$$p=n!==c?function(){var e=d(pt,"Opal").$destructure(arguments);if(void 0!==t){var i=n(e,t);i===c&&r.$raise(d(pt,"ArgumentError"),"comparison failed"),i<0&&(t=e)}else t=e}:function(){var e=d(pt,"Opal").$destructure(arguments);void 0!==t?d(pt,"Opal").$compare(e,t)<0&&(t=e):t=e},r.$each(),void 0===t?c:t},Y.$$arity=0),t.def(ht,"$min_by",K=function(){var e,n,r,i=K.$$p,o=i||c,a=this;return i&&(K.$$p=null),i&&(K.$$p=null),h(o)?(a.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),i=t.yield1(o,e);if(void 0===n)return n=e,void(r=i);i["$<=>"](r)<0&&(n=e,r=i)},a.$each(),void 0===n?c:n):p(a,"enum_for",["min_by"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=a,e.$$arity=0,e))},K.$$arity=0),t.def(ht,"$minmax",X=function(){var t,e,n=X.$$p,r=n||c,i=this;n&&(X.$$p=null),n&&(X.$$p=null),r=h(t=r)?t:p(i,"proc",[],(e=function(t,n){e.$$s;return null==t&&(t=c),null==n&&(n=c),t["$<=>"](n)},e.$$s=i,e.$$arity=2,e));var o=c,a=c,s=!0;return i.$each.$$p=function(){var t=d(pt,"Opal").$destructure(arguments);if(s)o=a=t,s=!1;else{var e=r.$call(o,t);e===c?i.$raise(d(pt,"ArgumentError"),"comparison failed"):e>0&&(o=t);var n=r.$call(a,t);n===c?i.$raise(d(pt,"ArgumentError"),"comparison failed"):n<0&&(a=t)}},i.$each(),[o,a]},X.$$arity=0),t.def(ht,"$minmax_by",Z=function(){var t=Z.$$p,e=this;return t&&(Z.$$p=null),t&&(Z.$$p=null),e.$raise(d(pt,"NotImplementedError"))},Z.$$arity=0),t.def(ht,"$none?",J=function(e){try{var n,r,i,o=J.$$p,a=o||c,s=this;return o&&(J.$$p=null),o&&(J.$$p=null),h(void 0!==e)?p(s,"each",[],(n=function(r){n.$$s;var i,o,a=c;if(i=t.slice.call(arguments,0,arguments.length),o=i,a=$t(o),!h(p(e,"public_send",["==="].concat(t.to_a(a)))))return c;t.ret(!1)},n.$$s=s,n.$$arity=-1,n)):p(s,"each",[],a!==c?(r=function(e){var n,i;r.$$s;if(n=t.slice.call(arguments,0,arguments.length),i=n,!h(t.yieldX(a,t.to_a(i))))return c;t.ret(!1)},r.$$s=s,r.$$arity=-1,r):(i=function(e){i.$$s;var n,r,o=c;if(n=t.slice.call(arguments,0,arguments.length),r=n,o=d(pt,"Opal").$destructure(r),!h(o))return c;t.ret(!1)},i.$$s=s,i.$$arity=-1,i)),!0}catch(l){if(l===t.returner)return l.$v;throw l}},J.$$arity=-1),t.def(ht,"$one?",Q=function(n){try{var r,o,a,s=Q.$$p,l=s||c,u=this,f=c;return s&&(Q.$$p=null),s&&(Q.$$p=null),f=0,h(void 0!==n)?p(u,"each",[],(r=function(o){r.$$s;var a,s,l=c;return a=t.slice.call(arguments,0,arguments.length),s=a,l=$t(s),h(p(n,"public_send",["==="].concat(t.to_a(l))))?(f=i(f,1),h(e(f,1))?void t.ret(!1):c):c},r.$$s=u,r.$$arity=-1,r)):p(u,"each",[],l!==c?(o=function(n){var r,a;o.$$s;return r=t.slice.call(arguments,0,arguments.length),a=r,h(t.yieldX(l,t.to_a(a)))?(f=i(f,1),h(e(f,1))?void t.ret(!1):c):c},o.$$s=u,o.$$arity=-1,o):(a=function(n){var r,o;a.$$s;return r=t.slice.call(arguments,0,arguments.length),o=r,h(d(pt,"Opal").$destructure(o))?(f=i(f,1),h(e(f,1))?void t.ret(!1):c):c},a.$$s=u,a.$$arity=-1,a)),f["$=="](1)}catch($){if($===t.returner)return $.$v;throw $}},Q.$$arity=-1),t.def(ht,"$partition",tt=function(){var e,n=tt.$$p,r=n||c,i=this;if(n&&(tt.$$p=null),n&&(tt.$$p=null),r===c)return p(i,"enum_for",["partition"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=i,e.$$arity=0,e));var o=[],a=[];return i.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),n=t.yield1(r,e);h(n)?o.push(e):a.push(e)},i.$each(),[o,a]},tt.$$arity=0),t.alias(ht,"reduce","inject"),t.def(ht,"$reject",et=function(){var e,n=et.$$p,r=n||c,i=this;if(n&&(et.$$p=null),n&&(et.$$p=null),r===c)return p(i,"enum_for",["reject"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=i,e.$$arity=0,e));var o=[];return i.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),n=t.yield1(r,e);$(n)&&o.push(e)},i.$each(),o},et.$$arity=0),t.def(ht,"$reverse_each",nt=function(){var e,n=nt.$$p,r=n||c,i=this;if(n&&(nt.$$p=null),n&&(nt.$$p=null),r===c)return p(i,"enum_for",["reverse_each"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=i,e.$$arity=0,e));var o=[];i.$each.$$p=function(){o.push(arguments)},i.$each();for(var a=o.length-1;a>=0;a--)t.yieldX(r,o[a]);return o},nt.$$arity=0),t.alias(ht,"select","find_all"),t.def(ht,"$slice_before",rt=function(e){var n,r=rt.$$p,i=r||c,o=this;return r&&(rt.$$p=null),r&&(rt.$$p=null),h(void 0===e&&i===c)&&o.$raise(d(pt,"ArgumentError"),"both pattern and block are given"),h(void 0!==e&&i!==c||arguments.length>1)&&o.$raise(d(pt,"ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),p(d(pt,"Enumerator"),"new",[],(n=function(r){var o=n.$$s||this;null==r&&(r=c);var a=[];o.$each.$$p=i!==c?void 0===e?function(){var e=d(pt,"Opal").$destructure(arguments),n=t.yield1(i,e);h(n)&&a.length>0&&(r["$<<"](a),a=[]),a.push(e)}:function(){var t=d(pt,"Opal").$destructure(arguments),n=i(t,e.$dup());h(n)&&a.length>0&&(r["$<<"](a),a=[]),a.push(t)}:function(){var t=d(pt,"Opal").$destructure(arguments),n=e["$==="](t);h(n)&&a.length>0&&(r["$<<"](a),a=[]),a.push(t)},o.$each(),a.length>0&&r["$<<"](a)},n.$$s=o,n.$$arity=1,n))},rt.$$arity=-1),t.def(ht,"$slice_after",it=function(e){var n,r,i=it.$$p,o=i||c,a=this;return i&&(it.$$p=null),i&&(it.$$p=null),h(void 0===e&&o===c)&&a.$raise(d(pt,"ArgumentError"),"both pattern and block are given"),h(void 0!==e&&o!==c||arguments.length>1)&&a.$raise(d(pt,"ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),h(void 0!==e)&&(o=p(a,"proc",[],(n=function(t){n.$$s;return null==t&&(t=c),e["$==="](t)},n.$$s=a,n.$$arity=1,n))),p(d(pt,"Enumerator"),"new",[],(r=function(e){var n,i=r.$$s||this;null==e&&(e=c),i.$each.$$p=function(){var r=d(pt,"Opal").$destructure(arguments),i=t.yield1(o,r);null==n&&(n=[]),h(i)?(n.push(r),e.$yield(n),n=null):n.push(r)},i.$each(),null!=n&&e.$yield(n)},r.$$s=a,r.$$arity=1,r))},it.$$arity=-1),t.def(ht,"$slice_when",ot=function(){var e,n=ot.$$p,r=n||c,i=this;return n&&(ot.$$p=null),n&&(ot.$$p=null),r!==c||i.$raise(d(pt,"ArgumentError"),"wrong number of arguments (0 for 1)"),p(d(pt,"Enumerator"),"new",[],(e=function(n){var i=e.$$s||this;null==n&&(n=c);var o=c,a=c;i.$each_cons.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),i=e[0],s=e[1],l=t.yieldX(r,[i,s]);a=s,o===c&&(o=[]),h(l)?(o.push(i),n.$yield(o),o=[]):o.push(i)},i.$each_cons(2),o!==c&&(o.push(a),n.$yield(o))},e.$$s=i,e.$$arity=1,e))},ot.$$arity=0),t.def(ht,"$sort",at=function(){var t,e=at.$$p,n=e||c,r=this,i=c;return e&&(at.$$p=null),e&&(at.$$p=null),i=r.$to_a(),n!==c||(n=g((t=function(e,n){t.$$s;return null==e&&(e=c),null==n&&(n=c),e["$<=>"](n)},t.$$s=r,t.$$arity=2,t))),p(i,"sort",[],n.$to_proc())},at.$$arity=0),t.def(ht,"$sort_by",st=function(){var e,n,r,i,o=st.$$p,a=o||c,s=this,l=c;return o&&(st.$$p=null),o&&(st.$$p=null),a===c?p(s,"enum_for",["sort_by"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=s,e.$$arity=0,e)):(l=p(s,"map",[],(n=function(){n.$$s;var e=c;return e=d(pt,"Opal").$destructure(arguments),[t.yield1(a,e),e]},n.$$s=s,n.$$arity=0,n)),p(l,"sort!",[],(r=function(t,e){r.$$s;return null==t&&(t=c),null==e&&(e=c),t[0]["$<=>"](e[0])},r.$$s=s,r.$$arity=2,r)),p(l,"map!",[],(i=function(t){i.$$s;return null==t&&(t=c),t[1]},i.$$s=s,i.$$arity=1,i)))},st.$$arity=0),t.def(ht,"$sum",lt=function(e){var n,r=lt.$$p,o=r||c,a=this,s=c;return r&&(lt.$$p=null),null==e&&(e=0),s=e,p(a,"each",[],(n=function(e){n.$$s;var r,a,l=c;return r=t.slice.call(arguments,0,arguments.length),a=r,l=function(){return o!==c?t.yieldX(o,t.to_a(a)):d(pt,"Opal").$destructure(a)}(),s=i(s,l)},n.$$s=a,n.$$arity=-1,n)),s},lt.$$arity=-1),t.def(ht,"$take",ct=function(t){var e=this;return e.$first(t)},ct.$$arity=1),t.def(ht,"$take_while",ut=function(){try{var e,n=ut.$$p,r=n||c,i=this,o=c;return n&&(ut.$$p=null),n&&(ut.$$p=null),h(r)?(o=[],p(i,"each",[],(e=function(n){e.$$s;var i,a,s=c;return i=t.slice.call(arguments,0,arguments.length),a=i,s=d(pt,"Opal").$destructure(a),h(t.yield1(r,s))||t.ret(o),o.push(s)},e.$$s=i,e.$$arity=-1,e))):i.$enum_for("take_while")}catch(a){if(a===t.returner)return a.$v;throw a}},ut.$$arity=0),t.def(ht,"$uniq",dt=function(){var e,n=dt.$$p,r=n||c,i=this,a=c;return n&&(dt.$$p=null),n&&(dt.$$p=null),a=m([],{}),p(i,"each",[],(e=function(n){e.$$s;var i,s,l=c,u=c,f=c;return i=t.slice.call(arguments,0,arguments.length),s=i,l=d(pt,"Opal").$destructure(s),u=function(){return r!==c?t.yield1(r,l):l}(),h(a["$key?"](u))?c:(f=[u,l],p(a,"[]=",t.to_a(f)),f[o(f["length"],1)])},e.$$s=i,e.$$arity=-1,e)),a.$values()},dt.$$arity=0),t.alias(ht,"to_a","entries"),t.def(ht,"$zip",ft=function(e){var n,r,i=ft.$$p,o=this;return i&&(ft.$$p=null),i&&(ft.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,p(o.$to_a(),"zip",t.to_a(r))},ft.$$arity=-1)}(l[0],l)},Opal.modules["corelib/enumerator"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t0&&(a=i[0],i.splice(0,1)),null==a&&(a="each"),s=i;var d=u.$allocate();return d.object=e,d.size=c,d.method=a,d.args=s,d},p.$$arity=-2),t.def(_,"$initialize",$=function(e){var n=$.$$p,r=n||o,i=this;return n&&($.$$p=null),n&&($.$$p=null),t.slice.call(arguments,0,arguments.length),u(r)?(i.object=d(a(b,"Generator"),"new",[],r.$to_proc()),i.method="each",i.args=[],i.size=arguments[0]||o,u(i.size)?i.size=a(b,"Opal").$coerce_to(i.size,a(b,"Integer"),"to_int"):o):(i.object=arguments[0],i.method=arguments[1]||"each",i.args=l.call(arguments,2),i.size=o)},$.$$arity=-1),t.def(_,"$each",m=function(n){var r,i,a,s=m.$$p,l=s||o,c=this;return s&&(m.$$p=null),s&&(m.$$p=null),r=t.slice.call(arguments,0,arguments.length),i=r,u(u(a=l["$nil?"]())?i["$empty?"]():a)?c:(i=e(c.args,i),u(l["$nil?"]())?d(c.$class(),"new",[c.object,c.method].concat(t.to_a(i))):d(c.object,"__send__",[c.method].concat(t.to_a(i)),l.$to_proc()))},m.$$arity=-1),t.def(_,"$size",g=function(){var e=this;return u(a(b,"Proc")["$==="](e.size))?d(e.size,"call",t.to_a(e.args)):e.size},g.$$arity=0),t.def(_,"$with_index",v=function(t){var e,n=v.$$p,r=n||o,i=this;if(n&&(v.$$p=null),n&&(v.$$p=null),null==t&&(t=0),t=function(){return u(t)?a(b,"Opal").$coerce_to(t,a(b,"Integer"),"to_int"):0}(),!u(r))return d(i,"enum_for",["with_index",t],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));var s=t;return i.$each.$$p=function(){var t=a(b,"Opal").$destructure(arguments),e=r(t,s);return s++,e},i.$each()},v.$$arity=-1),t.alias(_,"with_object","each_with_object"),t.def(_,"$inspect",y=function(){var t=this,n=o;return n="#<"+t.$class()+": "+t.object.$inspect()+":"+t.method,u(t.args["$any?"]())&&(n=e(n,"("+t.args.$inspect()["$[]"](a(b,"Range").$new(1,-2))+")")),e(n,">")},y.$$arity=0),function(e,n,r){var i,l,f=c(e,n,"Generator"),h=[f].concat(r);f.$$prototype.block=o,f.$include(a(h,"Enumerable")),t.def(f,"$initialize",i=function(){var t=i.$$p,e=t||o,n=this;return t&&(i.$$p=null),t&&(i.$$p=null),u(e)||n.$raise(a(h,"LocalJumpError"),"no block given"),n.block=e},i.$$arity=0),t.def(f,"$each",l=function(e){var n,r,i=l.$$p,c=i||o,u=this,f=o;i&&(l.$$p=null),i&&(l.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,f=d(a(h,"Yielder"),"new",[],c.$to_proc());try{r.unshift(f),t.yieldX(u.block,r)}catch(p){if(p===s)return s.$v;throw p}return u},l.$$arity=-1)}(b[0],null,b),function(e,n,r){var i,a,l,u=c(e,n,"Yielder");[u].concat(r);u.$$prototype.block=o,t.def(u,"$initialize",i=function(){var t=i.$$p,e=t||o,n=this;return t&&(i.$$p=null),t&&(i.$$p=null),n.block=e},i.$$arity=0),t.def(u,"$yield",a=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;var o=t.yieldX(i.block,r);if(o===s)throw s;return o},a.$$arity=-1),t.def(u,"$<<",l=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,d(i,"yield",t.to_a(r)),i},l.$$arity=-1)}(b[0],null,b),function(r,i,s){var l,h,p,$,m,g,v,y,_,b,w,x,k,S=c(r,i,"Lazy"),O=[S].concat(s);return S.$$prototype.enumerator=o,function(t,e,n){var r=c(t,e,"StopLazyError");[r].concat(n)}(O[0],a(O,"Exception"),O),t.def(S,"$initialize",l=function(e,n){var r,i=l.$$p,s=i||o,c=this;return i&&(l.$$p=null),i&&(l.$$p=null),null==n&&(n=o),s!==o||c.$raise(a(O,"ArgumentError"),"tried to call lazy new without a block"),c.enumerator=e,d(c,t.find_super_dispatcher(c,"initialize",l,!1),[n],(r=function(n,i){var l,c,u,f=r.$$s||this;null==n&&(n=o),l=t.slice.call(arguments,1,arguments.length),c=l;try{return d(e,"each",t.to_a(c),(u=function(e){var r,i;u.$$s;r=t.slice.call(arguments,0,arguments.length),i=r,i.unshift(n),t.yieldX(s,i)},u.$$s=f,u.$$arity=-1,u))}catch(h){if(!t.rescue(h,[a(O,"Exception")]))throw h;try{return o}finally{t.pop_exception()}}},r.$$s=c,r.$$arity=-2,r))},l.$$arity=-2),t.alias(S,"force","to_a"),t.def(S,"$lazy",h=function(){var t=this;return t},h.$$arity=0),t.def(S,"$collect",p=function(){var e,n=p.$$p,r=n||o,i=this;return n&&(p.$$p=null),n&&(p.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy map without a block"),d(a(O,"Lazy"),"new",[i,i.$enumerator_size()],(e=function(n,i){var a,s;e.$$s;null==n&&(n=o),a=t.slice.call(arguments,1,arguments.length),s=a;var l=t.yieldX(r,s);n.$yield(l)},e.$$s=i,e.$$arity=-2,e))},p.$$arity=0),t.def(S,"$collect_concat",$=function(){var e,n=$.$$p,r=n||o,i=this;return n&&($.$$p=null),n&&($.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy map without a block"),d(a(O,"Lazy"),"new",[i,o],(e=function(n,i){var s,l,c,u,f=e.$$s||this;null==n&&(n=o),s=t.slice.call(arguments,1,arguments.length),l=s;var h=t.yieldX(r,l);if(h["$respond_to?"]("force")&&h["$respond_to?"]("each"))d(h,"each",[],(c=function(t){c.$$s;return null==t&&(t=o),n.$yield(t)},c.$$s=f,c.$$arity=1,c));else{var p=a(O,"Opal").$try_convert(h,a(O,"Array"),"to_ary");p===o?n.$yield(h):d(h,"each",[],(u=function(t){u.$$s;return null==t&&(t=o),n.$yield(t)},u.$$s=f,u.$$arity=1,u))}},e.$$s=i,e.$$arity=-2,e))},$.$$arity=0),t.def(S,"$drop",m=function(r){var i,s=this,l=o,c=o,f=o;return r=a(O,"Opal").$coerce_to(r,a(O,"Integer"),"to_int"),u(n(r,0))&&s.$raise(a(O,"ArgumentError"),"attempt to drop negative size"),l=s.$enumerator_size(),c=function(){return u(a(O,"Integer")["$==="](l))&&u(n(r,l))?r:l}(),f=0,d(a(O,"Lazy"),"new",[s,c],(i=function(a,s){var l,c;i.$$s;return null==a&&(a=o),l=t.slice.call(arguments,1,arguments.length),c=l,u(n(f,r))?f=e(f,1):d(a,"yield",t.to_a(c))},i.$$s=s,i.$$arity=-2,i))},m.$$arity=1),t.def(S,"$drop_while",g=function(){var e,n=g.$$p,r=n||o,i=this,s=o;return n&&(g.$$p=null),n&&(g.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy drop_while without a block"),s=!0,d(a(O,"Lazy"),"new",[i,o],(e=function(n,i){var a,l;e.$$s;if(null==n&&(n=o),a=t.slice.call(arguments,1,arguments.length),l=a,!u(s))return d(n,"yield",t.to_a(l));var c=t.yieldX(r,l);f(c)&&(s=!1,d(n,"yield",t.to_a(l)))},e.$$s=i,e.$$arity=-2,e))},g.$$arity=0),t.def(S,"$enum_for",v=function(e,n){var r,i,a,s=v.$$p,l=s||o,c=this;return s&&(v.$$p=null),s&&(v.$$p=null),r=t.slice.call(arguments,0,arguments.length),r.length>0&&(i=r[0],r.splice(0,1)),null==i&&(i="each"),a=r,d(c.$class(),"for",[c,i].concat(t.to_a(a)),l.$to_proc())},v.$$arity=-1),t.def(S,"$find_all",y=function(){var e,n=y.$$p,r=n||o,i=this;return n&&(y.$$p=null),n&&(y.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy select without a block"),d(a(O,"Lazy"),"new",[i,o],(e=function(n,i){var a,s;e.$$s;null==n&&(n=o),a=t.slice.call(arguments,1,arguments.length),s=a;var l=t.yieldX(r,s);u(l)&&d(n,"yield",t.to_a(s))},e.$$s=i,e.$$arity=-2,e))},y.$$arity=0),t.alias(S,"flat_map","collect_concat"),t.def(S,"$grep",_=function(e){var n,r,i=_.$$p,s=i||o,l=this;return i&&(_.$$p=null),i&&(_.$$p=null),u(s)?d(a(O,"Lazy"),"new",[l,o],(n=function(r,i){var l,c;n.$$s;null==r&&(r=o),l=t.slice.call(arguments,1,arguments.length),c=l;var d=a(O,"Opal").$destructure(c),f=e["$==="](d);u(f)&&(f=t.yield1(s,d),r.$yield(t.yield1(s,d)))},n.$$s=l,n.$$arity=-2,n)):d(a(O,"Lazy"),"new",[l,o],(r=function(n,i){var s,l;r.$$s;null==n&&(n=o),s=t.slice.call(arguments,1,arguments.length),l=s;var c=a(O,"Opal").$destructure(l),d=e["$==="](c);u(d)&&n.$yield(c)},r.$$s=l,r.$$arity=-2,r))},_.$$arity=1),t.alias(S,"map","collect"),t.alias(S,"select","find_all"),t.def(S,"$reject",b=function(){var e,n=b.$$p,r=n||o,i=this;return n&&(b.$$p=null),n&&(b.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy reject without a block"),d(a(O,"Lazy"),"new",[i,o],(e=function(n,i){var a,s;e.$$s;null==n&&(n=o),a=t.slice.call(arguments,1,arguments.length),s=a;var l=t.yieldX(r,s);f(l)&&d(n,"yield",t.to_a(s))},e.$$s=i,e.$$arity=-2,e))},b.$$arity=0),t.def(S,"$take",w=function(r){var i,s=this,l=o,c=o,f=o;return r=a(O,"Opal").$coerce_to(r,a(O,"Integer"),"to_int"),u(n(r,0))&&s.$raise(a(O,"ArgumentError"),"attempt to take negative size"),l=s.$enumerator_size(),c=function(){return u(a(O,"Integer")["$==="](l))&&u(n(r,l))?r:l}(),f=0,d(a(O,"Lazy"),"new",[s,c],(i=function(s,l){var c,h,p=i.$$s||this;return null==s&&(s=o),c=t.slice.call(arguments,1,arguments.length),h=c,u(n(f,r))?(d(s,"yield",t.to_a(h)),f=e(f,1)):p.$raise(a(O,"StopLazyError"))},i.$$s=s,i.$$arity=-2,i))},w.$$arity=1),t.def(S,"$take_while",x=function(){var e,n=x.$$p,r=n||o,i=this;return n&&(x.$$p=null),n&&(x.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy take_while without a block"),d(a(O,"Lazy"),"new",[i,o],(e=function(n,i){var s,l,c=e.$$s||this;null==n&&(n=o),s=t.slice.call(arguments,1,arguments.length),l=s;var f=t.yieldX(r,l);u(f)?d(n,"yield",t.to_a(l)):c.$raise(a(O,"StopLazyError"))},e.$$s=i,e.$$arity=-2,e))},x.$$arity=0),t.alias(S,"to_enum","enum_for"),t.def(S,"$inspect",k=function(){var t=this;return"#<"+t.$class()+": "+t.enumerator.$inspect()+">"},k.$$arity=0),o&&"inspect"}(b[0],_,b)}(i[0],null,i)},Opal.modules["corelib/numeric"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?te:t["$>"](e)}var a=t.top,s=[],l=t.nil,c=t.const_get_qualified,u=t.const_get_relative,d=(t.breaker,t.slice,t.klass),f=t.truthy,h=t.hash2;return t.add_stubs(["$require","$include","$instance_of?","$class","$Float","$respond_to?","$coerce","$__send__","$===","$raise","$equal?","$-","$*","$div","$<","$-@","$ceil","$to_f","$denominator","$to_r","$==","$floor","$/","$%","$Complex","$zero?","$numerator","$abs","$arg","$coerce_to!","$round","$to_i","$truncate","$>"]),a.$require("corelib/comparable"),function(a,s,p){var $,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J=d(a,s,"Numeric"),Q=[J].concat(p);return J.$include(u(Q,"Comparable")),t.def(J,"$coerce",$=function(t){var e=this;return f(t["$instance_of?"](e.$class()))?[t,e]:[e.$Float(t),e.$Float(e)]},$.$$arity=1),t.def(J,"$__coerced__",m=function(e,n){var r,i,o=this,a=l,s=l,c=l;return f(n["$respond_to?"]("coerce"))?(i=n.$coerce(o),r=t.to_ary(i),a=null==r[0]?l:r[0],s=null==r[1]?l:r[1],a.$__send__(e,s)):function(){return c=e,"+"["$==="](c)||"-"["$==="](c)||"*"["$==="](c)||"/"["$==="](c)||"%"["$==="](c)||"&"["$==="](c)||"|"["$==="](c)||"^"["$==="](c)||"**"["$==="](c)?o.$raise(u(Q,"TypeError"),n.$class()+" can't be coerced into Numeric"):">"["$==="](c)||">="["$==="](c)||"<"["$==="](c)||"<="["$==="](c)||"<=>"["$==="](c)?o.$raise(u(Q,"ArgumentError"),"comparison of "+o.$class()+" with "+n.$class()+" failed"):l}()},m.$$arity=2),t.def(J,"$<=>",g=function(t){var e=this;return f(e["$equal?"](t))?0:l},g.$$arity=1),t.def(J,"$+@",v=function(){var t=this;return t},v.$$arity=0),t.def(J,"$-@",y=function(){var t=this;return e(0,t)},y.$$arity=0),t.def(J,"$%",_=function(t){var r=this;return e(r,n(t,r.$div(t)))},_.$$arity=1),t.def(J,"$abs",b=function(){var t=this;return r(t,0)?t["$-@"]():t},b.$$arity=0),t.def(J,"$abs2",w=function(){var t=this;return n(t,t)},w.$$arity=0),t.def(J,"$angle",x=function(){var t=this;return r(t,0)?c(u(Q,"Math"),"PI"):0},x.$$arity=0),t.alias(J,"arg","angle"),t.def(J,"$ceil",k=function(t){var e=this;return null==t&&(t=0),e.$to_f().$ceil(t)},k.$$arity=-1),t.def(J,"$conj",S=function(){var t=this;return t},S.$$arity=0),t.alias(J,"conjugate","conj"),t.def(J,"$denominator",O=function(){var t=this;return t.$to_r().$denominator()},O.$$arity=0),t.def(J,"$div",C=function(t){var e=this;return t["$=="](0)&&e.$raise(u(Q,"ZeroDivisionError"),"divided by o"),i(e,t).$floor()},C.$$arity=1),t.def(J,"$divmod",A=function(t){var e=this;return[e.$div(t),e["$%"](t)]},A.$$arity=1),t.def(J,"$fdiv",E=function(t){var e=this;return i(e.$to_f(),t)},E.$$arity=1),t.def(J,"$floor",T=function(t){var e=this;return null==t&&(t=0),e.$to_f().$floor(t)},T.$$arity=-1),t.def(J,"$i",P=function(){var t=this;return t.$Complex(0,t)},P.$$arity=0),t.def(J,"$imag",B=function(){return 0},B.$$arity=0),t.alias(J,"imaginary","imag"),t.def(J,"$integer?",L=function(){return!1},L.$$arity=0),t.alias(J,"magnitude","abs"),t.alias(J,"modulo","%"),t.def(J,"$nonzero?",I=function(){var t=this;return f(t["$zero?"]())?l:t},I.$$arity=0),t.def(J,"$numerator",D=function(){var t=this;return t.$to_r().$numerator()},D.$$arity=0),t.alias(J,"phase","arg"),t.def(J,"$polar",R=function(){var t=this;return[t.$abs(),t.$arg()]},R.$$arity=0),t.def(J,"$quo",j=function(t){var e=this;return i(u(Q,"Opal")["$coerce_to!"](e,u(Q,"Rational"),"to_r"),t)},j.$$arity=1),t.def(J,"$real",M=function(){var t=this;return t},M.$$arity=0),t.def(J,"$real?",F=function(){return!0},F.$$arity=0),t.def(J,"$rect",N=function(){var t=this;return[t,0]},N.$$arity=0),t.alias(J,"rectangular","rect"),t.def(J,"$round",z=function(t){var e=this;return e.$to_f().$round(t)},z.$$arity=-1),t.def(J,"$to_c",H=function(){var t=this;return t.$Complex(t,0)},H.$$arity=0),t.def(J,"$to_int",V=function(){var t=this;return t.$to_i()},V.$$arity=0),t.def(J,"$truncate",U=function(t){var e=this;return null==t&&(t=0),e.$to_f().$truncate(t)},U.$$arity=-1),t.def(J,"$zero?",q=function(){var t=this;return t["$=="](0)},q.$$arity=0),t.def(J,"$positive?",W=function(){var t=this;return o(t,0)},W.$$arity=0),t.def(J,"$negative?",G=function(){var t=this;return r(t,0)},G.$$arity=0),t.def(J,"$dup",Y=function(){var t=this;return t},Y.$$arity=0),t.def(J,"$clone",K=function(e){var n,r=this;if(null==e)e=h([],{});else if(!e.$$is_hash)throw t.ArgumentError.$new("expected kwargs");return n=e.$$smap["freeze"],null==n&&(n=!0),r},K.$$arity=-1),t.def(J,"$finite?",X=function(){return!0},X.$$arity=0),t.def(J,"$infinite?",Z=function(){return l},Z.$$arity=0),l&&"infinite?"}(s[0],null,s)},Opal.modules["corelib/array"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t","$==","$object_id","$inspect","$enum_for","$bsearch_index","$to_proc","$nil?","$coerce_to!","$>","$*","$enumerator_size","$empty?","$size","$map","$equal?","$dup","$each","$[]","$dig","$eql?","$length","$begin","$end","$exclude_end?","$flatten","$__id__","$to_s","$new","$max","$min","$!","$>=","$**","$delete_if","$reverse","$rotate","$rand","$at","$keep_if","$shuffle!","$<","$sort","$sort_by","$!=","$times","$[]=","$-","$<<","$values","$is_a?","$last","$first","$upto","$reject","$pristine","$singleton_class"]),a.$require("corelib/enumerable"),a.$require("corelib/numeric"),function(a,s,m){var g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt,gt,vt,yt,_t,bt,wt,xt,kt,St,Ot,Ct,At,Et,Tt,Pt,Bt,Lt,It,Dt,Rt,jt,Mt,Ft,Nt,zt,Ht,Vt,Ut,qt,Wt,Gt,Yt,Kt,Xt,Zt,Jt,Qt,te,ee,ne=d(a,s,"Array"),re=[ne].concat(m);function ie(e,n){return n.$$name===t.Array?e:n.$allocate().$replace(e.$to_a())}function oe(e,n){var r,i,o,a,s=e.length;return r=n.excl,i=t.Opal.$coerce_to(n.begin,t.Integer,"to_int"),o=t.Opal.$coerce_to(n.end,t.Integer,"to_int"),i<0&&(i+=s,i<0)||i>s?l:o<0&&(o+=s,o<0)?[]:(r||(o+=1),a=e.slice(i,o),ie(a,e.$class()))}function ae(e,n,r){var i,o=e.length;return n=t.Opal.$coerce_to(n,t.Integer,"to_int"),n<0&&(n+=o,n<0)?l:void 0===r?n>=o||n<0?l:e[n]:(r=t.Opal.$coerce_to(r,t.Integer,"to_int"),r<0||n>o||n<0?l:(i=e.slice(n,n+r),ie(i,e.$class())))}function se(t,e){return t===e||0===e?1:e>0&&t>e?se(t-1,e-1)+se(t-1,e):0}function le(t,e){var n=e>=0?1:0;while(e)n*=t,t--,e--;return n}return ne.$include(u(re,"Enumerable")),t.defineProperty(ne.$$prototype,"$$is_array",!0),t.defs(ne,"$[]",g=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,ie(r,i)},g.$$arity=-1),t.def(ne,"$initialize",v=function(t,e){var n,r,i=v.$$p,o=i||l,a=this;if(i&&(v.$$p=null),i&&(v.$$p=null),null==t&&(t=l),null==e&&(e=l),e!==l&&o!==l&&a.$warn("warning: block supersedes default value argument"),t>c(u(re,"Integer"),"MAX")&&a.$raise(u(re,"ArgumentError"),"array size too big"),arguments.length>2&&a.$raise(u(re,"ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..2)"),0===arguments.length)return a.splice(0,a.length),a;if(1===arguments.length){if(t.$$is_array)return a.$replace(t.$to_a()),a;if(t["$respond_to?"]("to_ary"))return a.$replace(t.$to_ary()),a}if(t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),t<0&&a.$raise(u(re,"ArgumentError"),"negative array size"),a.splice(0,a.length),o===l)for(n=0;n",O=function(t){var e=this;if(f(u(re,"Array")["$==="](t)))t=t.$to_a();else{if(!f(t["$respond_to?"]("to_ary")))return l;t=t.$to_ary().$to_a()}if(e.$hash()===t.$hash())return 0;for(var n=Math.min(e.length,t.length),r=0;r"](t[r]);if(0!==i)return i}return e.length["$<=>"](t.length)},O.$$arity=1),t.def(ne,"$==",C=function(t){var e=this,n={};function r(t,e){var i,o,a,s;if(t===e)return!0;if(!e.$$is_array)return!!u(re,"Opal")["$respond_to?"](e,"to_ary")&&e["$=="](t);if(t.$$constructor!==Array&&(t=t.$to_a()),e.$$constructor!==Array&&(e=e.$to_a()),t.length!==e.length)return!1;for(n[t.$object_id()]=!0,i=0,o=t.length;ic)for(r=c;rc)for(r=c;r=e.length?l:e[t]},B.$$arity=1),t.def(ne,"$bsearch_index",L=function(){var e=L.$$p,n=e||l,r=this;if(e&&(L.$$p=null),e&&(L.$$p=null),n===l)return r.$enum_for("bsearch_index");var i,o,a,s=0,c=r.length,d=!1,f=l;while(s0){for(a=0,s=$.length;a=0&&m<$.length){for(o=[],r=0;r<=m+1;r++)o.push(0);a=[],s=0,c=!1,o[0]=-1;while(!c){a[s]=$[o[s+1]];while(s=0&&s(a,0,[],o),o},H.$$arity=1),t.def(ne,"$compact",V=function(){for(var t,e=this,n=[],r=0,i=e.length;r=e.length)return l;var n=e[t];return e.splice(t,1),n},G.$$arity=1),t.def(ne,"$delete_if",Y=function(){var t,e=Y.$$p,n=e||l,r=this;if(e&&(Y.$$p=null),e&&(Y.$$p=null),n===l)return p(r,"enum_for",["delete_if"],(t=function(){var e=t.$$s||this;return e.$size()},t.$$s=r,t.$$arity=0,t));for(var i,o=0,a=r.length;o=0&&t2)&&h.$raise(u(re,"ArgumentError"),"wrong number of arguments ("+r.$length()+" for 0..2)"),o=r,i=t.to_ary(o),p=null==i[0]?l:i[0],$=null==i[1]?l:i[1]):(f(0==r.length)?h.$raise(u(re,"ArgumentError"),"wrong number of arguments (0 for 1..3)"):f(r.length>3)&&h.$raise(u(re,"ArgumentError"),"wrong number of arguments ("+r.$length()+" for 1..3)"),o=r,i=t.to_ary(o),m=null==i[0]?l:i[0],p=null==i[1]?l:i[1],$=null==i[2]?l:i[2]),f(u(re,"Range")["$==="](p))){if(f($)&&h.$raise(u(re,"TypeError"),"length invalid with range"),g=u(re,"Opal").$coerce_to(p.$begin(),u(re,"Integer"),"to_int"),f(g<0)&&(g+=this.length),f(g<0)&&h.$raise(u(re,"RangeError"),p.$inspect()+" out of range"),v=u(re,"Opal").$coerce_to(p.$end(),u(re,"Integer"),"to_int"),f(v<0)&&(v+=this.length),f(p["$exclude_end?"]())||(v+=1),f(v<=g))return h}else if(f(p))if(g=u(re,"Opal").$coerce_to(p,u(re,"Integer"),"to_int"),f(g<0)&&(g+=this.length),f(g<0)&&(g=0),f($)){if(v=u(re,"Opal").$coerce_to($,u(re,"Integer"),"to_int"),f(0==v))return h;v+=g}else v=this.length;else g=0,v=this.length;if(f(g>this.length))for(a=this.length;athis.length)&&(this.length=v),f(d))for(this.length;g0){if(e<0&&(e+=o.length+1,e<0&&o.$raise(u(re,"IndexError"),e+" is out of bounds")),e>o.length)for(var a=o.length;ae.length&&(t=e.length),e.slice(e.length-t,e.length))},pt.$$arity=-1),t.def(ne,"$length",$t=function(){var t=this;return t.length},$t.$$arity=0),t.alias(ne,"map","collect"),t.alias(ne,"map!","collect!"),t.def(ne,"$max",mt=function(t){var e=mt.$$p,n=e||l,r=this;return e&&(mt.$$p=null),e&&(mt.$$p=null),p(r.$each(),"max",[t],n.$to_proc())},mt.$$arity=-1),t.def(ne,"$min",gt=function(){var t=gt.$$p,e=t||l,n=this;return t&&(gt.$$p=null),t&&(gt.$$p=null),p(n.$each(),"min",[],e.$to_proc())},gt.$$arity=0),t.def(ne,"$permutation",vt=function(e){var n,r,i,o,a=vt.$$p,s=a||l,c=this,d=l,f=l;if(a&&(vt.$$p=null),a&&(vt.$$p=null),s===l)return p(c,"enum_for",["permutation",e],(n=function(){var t=n.$$s||this;return le(t.length,void 0===e?t.length:e)},n.$$s=c,n.$$arity=0,n));if(e=void 0===e?c.length:u(re,"Opal").$coerce_to(e,u(re,"Integer"),"to_int"),e<0||c.lengthe.length)?e.splice(0,e.length):e.splice(e.length-t,e.length))},_t.$$arity=-1),t.def(ne,"$product",bt=function(e){var n,r,i=bt.$$p,o=i||l,a=this;i&&(bt.$$p=null),i&&(bt.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n;var s,c,d,f,h=o!==l?null:[],p=r.length+1,$=new Array(p),m=new Array(p),g=new Array(p),v=1;for(g[0]=a,s=1;s2147483647&&a.$raise(u(re,"RangeError"),"too big to product"),m[s]=f,$[s]=0}t:for(;;){for(d=[],s=0;s=0;e--){if(e>=o.length)break;if(o[e]["$=="](t))return e}else if(i!==l)for(e=o.length-1;e>=0;e--){if(e>=o.length)break;if(n=i(o[e]),!1!==n&&n!==l)return e}else if(null==t)return o.$enum_for("rindex");return l},Tt.$$arity=-1),t.def(ne,"$rotate",Pt=function(t){var e,n,r,i,o=this;return null==t&&(t=1),t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),1===o.length?o.slice():0===o.length?[]:(e=o.slice(),n=t%e.length,r=e.slice(n),i=e.slice(0,n),r.concat(i))},Pt.$$arity=-1),t.def(ne,"$rotate!",Bt=function(t){var e=this,n=l;return null==t&&(t=1),0===e.length||1===e.length?e:(t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),n=e.$rotate(t),e.$replace(n))},Bt.$$arity=-1),function(e,n,r){var i,o,a=d(e,n,"SampleRandom"),s=[a].concat(r);a.$$prototype.rng=l,t.def(a,"$initialize",i=function(t){var e=this;return e.rng=t},i.$$arity=1),t.def(a,"$rand",o=function(t){var e=this,n=l;return n=u(s,"Opal").$coerce_to(e.rng.$rand(t),u(s,"Integer"),"to_int"),f(n<0)&&e.$raise(u(s,"RangeError"),"random value must be >= 0"),f(np.length&&(t=p.length),t){case 0:return[];case 1:return[p[m.$rand(p.length)]];case 2:return a=m.$rand(p.length),s=m.$rand(p.length),a===s&&(s=0===a?a+1:a-1),[p[a],p[s]];default:if(p.length/t>3){r=!1,i=0,o=u(re,"Array").$new(t),a=1,o[0]=m.$rand(p.length);while(a100){r=!0;break}c=m.$rand(p.length)}if(r)break;s++}if(r)break;o[a]=c,a++}if(!r){a=0;while(a=o&&i.$raise(u(re,"RangeError"),"random number too big "+n)):n=i.$rand(o),r=i[--o],i[o]=i[n],i[n]=r;return i},Mt.$$arity=-1),t.alias(ne,"slice","[]"),t.def(ne,"$slice!",Ft=function(t,e){var n=this,r=l,i=l,o=l,a=l,s=l;if(r=l,f(void 0===e))if(f(u(re,"Range")["$==="](t))){i=t,r=n["$[]"](i),o=u(re,"Opal").$coerce_to(i.$begin(),u(re,"Integer"),"to_int"),a=u(re,"Opal").$coerce_to(i.$end(),u(re,"Integer"),"to_int"),o<0&&(o+=n.length),a<0?a+=n.length:a>=n.length&&(a=n.length-1,i.excl&&(a+=1));var c=a-o;i.excl?a-=1:c+=1,o=0&&a=0&&c>0&&n.splice(o,c)}else{if(s=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),s<0&&(s+=n.length),s<0||s>=n.length)return l;r=n[s],0===s?n.shift():n.splice(s,1)}else{if(s=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),e=u(re,"Opal").$coerce_to(e,u(re,"Integer"),"to_int"),e<0)return l;r=n["$[]"](s,e),s<0&&(s+=n.length),s+e>n.length&&(e=n.length-s),s=0&&n.splice(s,e)}return r},Ft.$$arity=-2),t.def(ne,"$sort",Nt=function(){var t=Nt.$$p,n=t||l,r=this;return t&&(Nt.$$p=null),t&&(Nt.$$p=null),f(r.length>1)?(n===l&&(n=function(t,e){return t["$<=>"](e)}),r.slice().sort((function(t,o){var a=n(t,o);return a===l&&r.$raise(u(re,"ArgumentError"),"comparison of "+t.$inspect()+" with "+o.$inspect()+" failed"),e(a,0)?1:i(a,0)?-1:0}))):r},Nt.$$arity=0),t.def(ne,"$sort!",zt=function(){var t,e=zt.$$p,n=e||l,r=this;e&&(zt.$$p=null),e&&(zt.$$p=null),t=n!==l?p(r.slice(),"sort",[],n.$to_proc()):r.slice().$sort(),r.length=0;for(var i=0,o=t.length;i=0;o--)i.unshift(r[o]);return i},Xt.$$arity=-1),t.alias(ne,"prepend","unshift"),t.def(ne,"$values_at",Zt=function(e){var n,r,i,o=this,a=l;return n=t.slice.call(arguments,0,arguments.length),r=n,a=[],p(r,"each",[],(i=function(t){var e,n=i.$$s||this,r=l,o=l,s=l;return null==t&&(t=l),f(t["$is_a?"](u(re,"Range")))?(r=u(re,"Opal").$coerce_to(t.$last(),u(re,"Integer"),"to_int"),o=u(re,"Opal").$coerce_to(t.$first(),u(re,"Integer"),"to_int"),o<0?(o+=n.length,l):(r<0&&(r+=n.length),t["$exclude_end?"]()&&r--,r=e:t["$>="](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}var i=t.top,o=[],a=t.nil,s=(t.const_get_qualified,t.const_get_relative),l=(t.breaker,t.slice,t.klass),c=t.send,u=t.hash2,d=t.truthy;return t.add_stubs(["$require","$include","$coerce_to?","$[]","$merge!","$allocate","$raise","$coerce_to!","$each","$fetch","$>=","$>","$==","$compare_by_identity","$lambda?","$abs","$arity","$enum_for","$size","$respond_to?","$class","$dig","$new","$inspect","$map","$to_proc","$flatten","$eql?","$default","$dup","$default_proc","$default_proc=","$-","$default=","$proc"]),i.$require("corelib/enumerable"),function(i,o,f){var h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt,gt,vt,yt,_t,bt,wt=l(i,o,"Hash"),xt=[wt].concat(f);return wt.$include(s(xt,"Enumerable")),wt.$$prototype.$$is_hash=!0,t.defs(wt,"$[]",h=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;var o,l,c=r.length;if(1===c){if(o=s(xt,"Opal")["$coerce_to?"](r["$[]"](0),s(xt,"Hash"),"to_hash"),o!==a)return i.$allocate()["$merge!"](o);for(r=s(xt,"Opal")["$coerce_to?"](r["$[]"](0),s(xt,"Array"),"to_ary"),r===a&&i.$raise(s(xt,"ArgumentError"),"odd number of arguments for Hash"),c=r.length,o=i.$allocate(),l=0;l=",v=function(t){var e,n=this,r=a;return t=s(xt,"Opal")["$coerce_to!"](t,s(xt,"Hash"),"to_hash"),!(n.$$keys.length",y=function(t){var n=this;return t=s(xt,"Opal")["$coerce_to!"](t,s(xt,"Hash"),"to_hash"),!(n.$$keys.length<=t.$$keys.length)&&e(n,t)},y.$$arity=1),t.def(wt,"$<",_=function(t){var e=this;return t=s(xt,"Opal")["$coerce_to!"](t,s(xt,"Hash"),"to_hash"),n(t,e)},_.$$arity=1),t.def(wt,"$<=",b=function(t){var n=this;return t=s(xt,"Opal")["$coerce_to!"](t,s(xt,"Hash"),"to_hash"),e(t,n)},b.$$arity=1),t.def(wt,"$[]",w=function(e){var n=this,r=t.hash_get(n,e);return void 0!==r?r:n.$default(e)},w.$$arity=1),t.def(wt,"$[]=",x=function(e,n){var r=this;return t.hash_put(r,e,n),n},x.$$arity=2),t.def(wt,"$assoc",k=function(t){for(var e,n=this,r=0,i=n.$$keys,o=i.length;r"+o.$inspect());return"{"+r.join(", ")+"}"}finally{e&&(bt=void 0)}},X.$$arity=0),t.def(wt,"$invert",Z=function(){for(var e,n,r=this,i=t.hash(),o=0,a=r.$$keys,s=a.length;o0?(e=r[0],e=e.$$is_string?e:e.key,[e,t.hash_delete(n,e)]):n.$default(a)},ut.$$arity=0),t.alias(wt,"size","length"),t.def(wt,"$slice",dt=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;for(var o=t.hash(),a=0,s=r.length;ae:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t=e:t["$>="](e)}var c=t.top,u=[],d=t.nil,f=t.const_get_qualified,h=t.const_get_relative,p=(t.breaker,t.slice,t.klass),$=t.truthy,m=t.send,g=t.hash2;return t.add_stubs(["$require","$bridge","$raise","$name","$class","$Float","$respond_to?","$coerce_to!","$__coerced__","$===","$!","$>","$**","$new","$<","$to_f","$==","$nan?","$infinite?","$enum_for","$+","$-","$gcd","$lcm","$%","$/","$frexp","$to_i","$ldexp","$rationalize","$*","$<<","$to_r","$truncate","$-@","$size","$<=","$>=","$<=>","$compare","$any?"]),c.$require("corelib/numeric"),function(c,u,v){var y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt,gt,vt,yt,_t,bt,wt,xt,kt,St,Ot,Ct,At,Et,Tt,Pt,Bt,Lt,It,Dt,Rt,jt=p(c,u,"Number"),Mt=[jt].concat(v);h(Mt,"Opal").$bridge(Number,jt),t.defineProperty(jt.$$prototype,"$$is_number",!0),jt.$$is_number_class=!0,function(e,n){var r,i=[e].concat(n);t.def(e,"$allocate",r=function(){var t=this;return t.$raise(h(i,"TypeError"),"allocator undefined for "+t.$name())},r.$$arity=0),t.udef(e,"$new")}(t.get_singleton_class(jt),Mt),t.def(jt,"$coerce",y=function(t){var e=this;if(t===d)e.$raise(h(Mt,"TypeError"),"can't convert "+t.$class()+" into Float");else{if(t.$$is_string)return[e.$Float(t),e];if(t["$respond_to?"]("to_f"))return[h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Float"),"to_f"),e];if(t.$$is_number)return[t,e];e.$raise(h(Mt,"TypeError"),"can't convert "+t.$class()+" into Float")}},y.$$arity=1),t.def(jt,"$__id__",_=function(){var t=this;return 2*t+1},_.$$arity=0),t.alias(jt,"object_id","__id__"),t.def(jt,"$+",b=function(t){var e=this;return t.$$is_number?e+t:e.$__coerced__("+",t)},b.$$arity=1),t.def(jt,"$-",w=function(t){var e=this;return t.$$is_number?e-t:e.$__coerced__("-",t)},w.$$arity=1),t.def(jt,"$*",x=function(t){var e=this;return t.$$is_number?e*t:e.$__coerced__("*",t)},x.$$arity=1),t.def(jt,"$/",k=function(t){var e=this;return t.$$is_number?e/t:e.$__coerced__("/",t)},k.$$arity=1),t.alias(jt,"fdiv","/"),t.def(jt,"$%",S=function(t){var e=this;return t.$$is_number?t==-1/0?t:0!=t?t<0||e<0?(e%t+t)%t:e%t:void e.$raise(h(Mt,"ZeroDivisionError"),"divided by 0"):e.$__coerced__("%",t)},S.$$arity=1),t.def(jt,"$&",O=function(t){var e=this;return t.$$is_number?e&t:e.$__coerced__("&",t)},O.$$arity=1),t.def(jt,"$|",C=function(t){var e=this;return t.$$is_number?e|t:e.$__coerced__("|",t)},C.$$arity=1),t.def(jt,"$^",A=function(t){var e=this;return t.$$is_number?e^t:e.$__coerced__("^",t)},A.$$arity=1),t.def(jt,"$<",E=function(t){var e=this;return t.$$is_number?e",P=function(t){var e=this;return t.$$is_number?e>t:e.$__coerced__(">",t)},P.$$arity=1),t.def(jt,"$>=",B=function(t){var e=this;return t.$$is_number?e>=t:e.$__coerced__(">=",t)},B.$$arity=1);var Ft=function(t,e){return e.$$is_number?isNaN(t)||isNaN(e)?d:t>e?1:t",e)};t.def(jt,"$<=>",L=function(e){var n=this;try{return Ft(n,e)}catch(r){if(!t.rescue(r,[h(Mt,"ArgumentError")]))throw r;try{return d}finally{t.pop_exception()}}},L.$$arity=1),t.def(jt,"$<<",I=function(t){var e=this;return t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),t>0?e<>-t},I.$$arity=1),t.def(jt,"$>>",D=function(t){var e=this;return t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),t>0?e>>t:e<<-t},D.$$arity=1),t.def(jt,"$[]",R=function(t){var e=this;return t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),t<0?0:t>=32?e<0?1:0:e>>t&1},R.$$arity=1),t.def(jt,"$+@",j=function(){var t=this;return+t},j.$$arity=0),t.def(jt,"$-@",M=function(){var t=this;return-t},M.$$arity=0),t.def(jt,"$~",F=function(){var t=this;return~t},F.$$arity=0),t.def(jt,"$**",N=function(t){var r,i,o=this;return $(h(Mt,"Integer")["$==="](t))?$($(r=h(Mt,"Integer")["$==="](o)["$!"]())?r:e(t,0))?Math.pow(o,t):h(Mt,"Rational").$new(o,1)["$**"](t):$((r=n(o,0))?$(i=h(Mt,"Float")["$==="](t))?i:h(Mt,"Rational")["$==="](t):n(o,0))?h(Mt,"Complex").$new(o,0)["$**"](t.$to_f()):$(null!=t.$$is_number)?Math.pow(o,t):o.$__coerced__("**",t)},N.$$arity=1),t.def(jt,"$===",z=function(t){var e=this;return t.$$is_number?e.valueOf()===t.valueOf():!!t["$respond_to?"]("==")&&t["$=="](e)},z.$$arity=1),t.def(jt,"$==",H=function(t){var e=this;return t.$$is_number?e.valueOf()===t.valueOf():!!t["$respond_to?"]("==")&&t["$=="](e)},H.$$arity=1),t.def(jt,"$abs",V=function(){var t=this;return Math.abs(t)},V.$$arity=0),t.def(jt,"$abs2",U=function(){var t=this;return Math.abs(t*t)},U.$$arity=0),t.def(jt,"$allbits?",q=function(t){var e=this;return t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),(e&t)==t},q.$$arity=1),t.def(jt,"$anybits?",W=function(t){var e=this;return t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),0!==(e&t)},W.$$arity=1),t.def(jt,"$angle",G=function(){var t=this;return $(t["$nan?"]())?t:0==t?1/t>0?0:Math.PI:t<0?Math.PI:0},G.$$arity=0),t.alias(jt,"arg","angle"),t.alias(jt,"phase","angle"),t.def(jt,"$bit_length",Y=function(){var t=this;if($(h(Mt,"Integer")["$==="](t))||t.$raise(h(Mt,"NoMethodError").$new("undefined method `bit_length` for "+t+":Float","bit_length")),0===t||-1===t)return 0;var e=0,n=t<0?~t:t;while(0!=n)e+=1,n>>>=1;return e},Y.$$arity=0),t.def(jt,"$ceil",K=function(t){var e=this;null==t&&(t=0);var n=e.$to_f();if(n%1===0&&t>=0)return n;var r=Math.pow(10,t),i=Math.ceil(n*r)/r;return n%1===0&&(i=Math.round(i)),i},K.$$arity=-1),t.def(jt,"$chr",X=function(t){var e=this;return String.fromCharCode(e)},X.$$arity=-1),t.def(jt,"$denominator",Z=function(){var e,n=Z.$$p,r=this,i=d,o=d,a=d;for(n&&(Z.$$p=null),o=0,a=arguments.length,i=new Array(a);o=t;l--)a(l);return s},J.$$arity=1),t.alias(jt,"eql?","=="),t.def(jt,"$equal?",Q=function(t){var e,n=this;return $(e=n["$=="](t))?e:isNaN(n)&&isNaN(t)},Q.$$arity=1),t.def(jt,"$even?",tt=function(){var t=this;return t%2===0},tt.$$arity=0),t.def(jt,"$floor",et=function(t){var e=this;null==t&&(t=0);var n=e.$to_f();if(n%1===0&&t>=0)return n;var r=Math.pow(10,t),i=Math.floor(n*r)/r;return n%1===0&&(i=Math.round(i)),i},et.$$arity=-1),t.def(jt,"$gcd",nt=function(t){var e=this;$(h(Mt,"Integer")["$==="](t))||e.$raise(h(Mt,"TypeError"),"not an integer");var n=Math.abs(e),r=Math.abs(t);while(n>0){var i=n;n=r%n,r=i}return r},nt.$$arity=1),t.def(jt,"$gcdlcm",rt=function(t){var e=this;return[e.$gcd(),e.$lcm()]},rt.$$arity=1),t.def(jt,"$integer?",it=function(){var t=this;return t%1===0},it.$$arity=0),t.def(jt,"$is_a?",ot=function(e){var n=ot.$$p,r=this,i=d,o=d,a=d;for(n&&(ot.$$p=null),o=0,a=arguments.length,i=new Array(a);o1&&o.$raise(h(Mt,"ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),$(h(Mt,"Integer")["$==="](o))?h(Mt,"Rational").$new(o,1):$(o["$infinite?"]())?o.$raise(h(Mt,"FloatDomainError"),"Infinity"):$(o["$nan?"]())?o.$raise(h(Mt,"FloatDomainError"),"NaN"):$(null==e)?(r=h(Mt,"Math").$frexp(o),n=t.to_ary(r),s=null==n[0]?d:n[0],l=null==n[1]?d:n[1],s=h(Mt,"Math").$ldexp(s,f(h(Mt,"Float"),"MANT_DIG")).$to_i(),l=i(l,f(h(Mt,"Float"),"MANT_DIG")),h(Mt,"Rational").$new(a(2,s),1["$<<"](i(1,l))).$rationalize(h(Mt,"Rational").$new(1,1["$<<"](i(1,l))))):o.$to_r().$rationalize(e)},gt.$$arity=-1),t.def(jt,"$remainder",vt=function(t){var e=this;return i(e,a(t,o(e,t).$truncate()))},vt.$$arity=1),t.def(jt,"$round",yt=function(a){var c,u,p=this,m=d;if($(h(Mt,"Integer")["$==="](p))){if($(null==a))return p;if($($(c=h(Mt,"Float")["$==="](a))?a["$infinite?"]():c)&&p.$raise(h(Mt,"RangeError"),"Infinity"),a=h(Mt,"Opal")["$coerce_to!"](a,h(Mt,"Integer"),"to_int"),$(n(a,f(h(Mt,"Integer"),"MIN")))&&p.$raise(h(Mt,"RangeError"),"out of bounds"),$(a>=0))return p;if(a=a["$-@"](),.415241*a-.125>p.$size())return 0;var g=Math.pow(10,a),v=Math.floor((Math.abs(v)+g/2)/g)*g;return p<0?-v:v}if($($(c=p["$nan?"]())?null==a:c)&&p.$raise(h(Mt,"FloatDomainError"),"NaN"),a=h(Mt,"Opal")["$coerce_to!"](a||0,h(Mt,"Integer"),"to_int"),$(s(a,0)))$(p["$nan?"]())?p.$raise(h(Mt,"RangeError"),"NaN"):$(p["$infinite?"]())&&p.$raise(h(Mt,"FloatDomainError"),"Infinity");else{if(a["$=="](0))return Math.round(p);if($($(c=p["$nan?"]())?c:p["$infinite?"]()))return p}return u=h(Mt,"Math").$frexp(p),c=t.to_ary(u),null==c[0]?d:c[0],m=null==c[1]?d:c[1],$(l(a,i(r(f(h(Mt,"Float"),"DIG"),2),function(){return $(e(m,0))?o(m,4):i(o(m,3),1)}())))?p:$(n(a,function(){return $(e(m,0))?r(o(m,3),1):o(m,4)}()["$-@"]()))?0:Math.round(p*Math.pow(10,a))/Math.pow(10,a)},yt.$$arity=-1),t.def(jt,"$step",_t=function(e,n,r){var i,o,a,s,l,c,u,p=_t.$$p,$=p||d,v=this,y=d,_=d;if(p&&(_t.$$p=null),p&&(_t.$$p=null),i=t.slice.call(arguments,0,arguments.length),o=t.extract_kwargs(i),null==o)o=g([],{});else if(!o.$$is_hash)throw t.ArgumentError.$new("expected kwargs");function b(){void 0!==l&&(a=l),void 0===a&&(a=d),s===d&&v.$raise(h(Mt,"TypeError"),"step must be numeric"),0===s&&v.$raise(h(Mt,"ArgumentError"),"step can't be 0"),void 0!==c&&(s=c),s!==d&&null!=s||(s=1);var t=s["$<=>"](0);t===d&&v.$raise(h(Mt,"ArgumentError"),"0 can't be coerced into "+s.$class()),a!==d&&null!=a||(a=t>0?f(h(Mt,"Float"),"INFINITY"):f(h(Mt,"Float"),"INFINITY")["$-@"]()),h(Mt,"Opal").$compare(v,a)}function w(){if(s>0&&v>a||s<0&&v.5&&(n=.5),e((a-v)/s+n)+1)}function x(){if(b(),0===s)return 1/0;if(s%1!==0)return w();if(s>0&&v>a||s<0&&v0&&(a=i[0],i.splice(0,1)),i.length>0&&(s=i[0],i.splice(0,1)),l=o.$$smap["to"],c=o.$$smap["by"],void 0!==a&&void 0!==l&&v.$raise(h(Mt,"ArgumentError"),"to is given twice"),void 0!==s&&void 0!==c&&v.$raise(h(Mt,"ArgumentError"),"step is given twice"),$===d)return y=[],_=g([],{}),void 0!==a&&y.push(a),void 0!==s&&y.push(s),void 0!==l&&t.hash_put(_,"to",l),void 0!==c&&t.hash_put(_,"by",c),_["$any?"]()&&y.push(_),m(v,"enum_for",["step"].concat(t.to_a(y)),(u=function(){u.$$s;return x()},u.$$s=v,u.$$arity=0,u));if(b(),0===s)while(1)$(v);if(v%1!==0||a%1!==0||s%1!==0){var k=w();if(k>0)if(s===1/0||s===-1/0)$(v);else{var S,O=0;if(s>0)while(OS&&(S=a),$(S),O+=1}}else{var C=v;if(s>0)while(C<=a)$(C),C+=s;else while(C>=a)$(C),C+=s}return v},_t.$$arity=-1),t.alias(jt,"succ","next"),t.def(jt,"$times",bt=function(){var t,e=bt.$$p,n=e||d,r=this;if(e&&(bt.$$p=null),e&&(bt.$$p=null),!$(n))return m(r,"enum_for",["times"],(t=function(){var e=t.$$s||this;return e},t.$$s=r,t.$$arity=0,t));for(var i=0;i=0)return n;var r=Math.pow(10,t),i=parseInt(n*r,10)/r;return n%1===0&&(i=Math.round(i)),i},Ot.$$arity=-1),t.alias(jt,"inspect","to_s"),t.def(jt,"$digits",Ct=function(t){var e=this;null==t&&(t=10),n(e,0)&&e.$raise(f(h(Mt,"Math"),"DomainError"),"out of domain"),t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),$(n(t,2))&&e.$raise(h(Mt,"ArgumentError"),"invalid radix "+t);var r=e,i=[];while(0!==r)i.push(r%t),r=parseInt(r/t,10);return i},Ct.$$arity=-1),t.def(jt,"$divmod",At=function(e){var n,r=At.$$p,i=this,o=d,a=d,s=d;for(r&&(At.$$p=null),a=0,s=arguments.length,o=new Array(s);a0)},Dt.$$arity=0),t.def(jt,"$negative?",Rt=function(){var t=this;return t==-1/0||1/t<0},Rt.$$arity=0)}(u[0],h(u,"Numeric"),u),t.const_set(u[0],"Fixnum",h(u,"Number")),function(e,n,r){var i=p(e,n,"Integer"),o=[i].concat(r);i.$$is_number_class=!0,function(e,n){var r,i,o,a=[e].concat(n);t.def(e,"$allocate",r=function(){var t=this;return t.$raise(h(a,"TypeError"),"allocator undefined for "+t.$name())},r.$$arity=0),t.udef(e,"$new"),t.def(e,"$===",i=function(t){return!!t.$$is_number&&t%1===0},i.$$arity=1),t.def(e,"$sqrt",o=function(t){var e=this;return t=h(a,"Opal")["$coerce_to!"](t,h(a,"Integer"),"to_int"),t<0&&e.$raise(f(h(a,"Math"),"DomainError"),'Numerical argument is out of domain - "isqrt"'),parseInt(Math.sqrt(t),10)},o.$$arity=1)}(t.get_singleton_class(i),o),t.const_set(o[0],"MAX",Math.pow(2,30)-1),t.const_set(o[0],"MIN",-Math.pow(2,30))}(u[0],h(u,"Numeric"),u),function(e,n,r){var i=p(e,n,"Float"),o=[i].concat(r);return i.$$is_number_class=!0,function(e,n){var r,i,o=[e].concat(n);t.def(e,"$allocate",r=function(){var t=this;return t.$raise(h(o,"TypeError"),"allocator undefined for "+t.$name())},r.$$arity=0),t.udef(e,"$new"),t.def(e,"$===",i=function(t){return!!t.$$is_number},i.$$arity=1)}(t.get_singleton_class(i),o),t.const_set(o[0],"INFINITY",1/0),t.const_set(o[0],"MAX",Number.MAX_VALUE),t.const_set(o[0],"MIN",Number.MIN_VALUE),t.const_set(o[0],"NAN",NaN),t.const_set(o[0],"DIG",15),t.const_set(o[0],"MANT_DIG",53),t.const_set(o[0],"RADIX",2),t.const_set(o[0],"EPSILON",Number.EPSILON||2220446049250313e-31)}(u[0],h(u,"Numeric"),u)},Opal.modules["corelib/range"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t<=e:t["$<="](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?te:t["$>"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t/e:t["$/"](e)}function a(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function s(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function l(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}var c=t.top,u=[],d=t.nil,f=t.const_get_qualified,h=t.const_get_relative,p=(t.breaker,t.slice,t.klass),$=t.truthy,m=t.send;return t.add_stubs(["$require","$include","$attr_reader","$raise","$<=>","$include?","$<=","$<","$enum_for","$upto","$to_proc","$respond_to?","$class","$succ","$!","$==","$===","$exclude_end?","$eql?","$begin","$end","$last","$to_a","$>","$-","$abs","$to_i","$coerce_to!","$ceil","$/","$size","$loop","$+","$*","$>=","$each_with_index","$%","$bsearch","$inspect","$[]","$hash"]),c.$require("corelib/enumerable"),function(c,u,g){var v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R=p(c,u,"Range"),j=[R].concat(g);return R.$$prototype.begin=R.$$prototype.end=R.$$prototype.excl=d,R.$include(h(j,"Enumerable")),R.$$prototype.$$is_range=!0,R.$attr_reader("begin","end"),t.def(R,"$initialize",v=function(t,e,n){var r=this;return null==n&&(n=!1),$(r.begin)&&r.$raise(h(j,"NameError"),"'initialize' called twice"),$(t["$<=>"](e))||r.$raise(h(j,"ArgumentError"),"bad value for range"),r.begin=t,r.end=e,r.excl=n},v.$$arity=-3),t.def(R,"$==",y=function(t){var e=this;return!!t.$$is_range&&(e.excl===t.excl&&e.begin==t.begin&&e.end==t.end)},y.$$arity=1),t.def(R,"$===",_=function(t){var e=this;return e["$include?"](t)},_.$$arity=1),t.def(R,"$cover?",b=function(t){var r,i=this,o=d,a=d;return o=i.begin["$<=>"](t),!!$($(r=o)?e(o,0):r)&&(a=t["$<=>"](i.end),$(i.excl)?$(r=a)?n(a,0):r:$(r=a)?e(a,0):r)},b.$$arity=1),t.def(R,"$each",w=function(){var e,r,i,o=w.$$p,a=o||d,s=this,l=d,c=d;if(o&&(w.$$p=null),o&&(w.$$p=null),a===d)return s.$enum_for("each");if(s.begin.$$is_number&&s.end.$$is_number){for(s.begin%1===0&&s.end%1===0||s.$raise(h(j,"TypeError"),"can't iterate from Float"),r=s.begin,i=s.end+function(){return $(s.excl)?0:1}();r"](c),0)))t.yield1(a,l),l=l.$succ();return $($(e=s.excl["$!"]())?l["$=="](c):e)&&t.yield1(a,l),s},w.$$arity=0),t.def(R,"$eql?",x=function(t){var e,n,r=this;return!!$(h(j,"Range")["$==="](t))&&($(e=$(n=r.excl["$==="](t["$exclude_end?"]()))?r.begin["$eql?"](t.$begin()):n)?r.end["$eql?"](t.$end()):e)},x.$$arity=1),t.def(R,"$exclude_end?",k=function(){var t=this;return t.excl},k.$$arity=0),t.def(R,"$first",S=function(e){var n=S.$$p,r=this,i=d,o=d,a=d;for(n&&(S.$$p=null),o=0,a=arguments.length,i=new Array(a);o.5&&(s=.5),g.excl?(t=a((r-n)/e-s),t*e+nt&&e.$$is_lambda&&!e.$$is_curried&&e.$raise(r(_,"ArgumentError"),"wrong number of arguments ("+s+" for "+t+")"),s>=t?e.$call.apply(e,a):(o=function(){return n.apply(null,a.concat(i.call(arguments)))},o.$$is_lambda=e.$$is_lambda,o.$$is_curried=!0,o)}return void 0===t?t=e.length:(t=r(_,"Opal")["$coerce_to!"](t,r(_,"Integer"),"to_int"),e.$$is_lambda&&t!==e.length&&e.$raise(r(_,"ArgumentError"),"wrong number of arguments ("+t+" for "+e.length+")")),n.$$is_lambda=e.$$is_lambda,n.$$is_curried=!0,n},g.$$arity=-1),t.def(y,"$dup",v=function(){var t=this,e=t.$$original_proc||t,n=function(){return e.apply(this,arguments)};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n},v.$$arity=0),t.alias(y,"clone","dup")}(e[0],Function,e)},Opal.modules["corelib/method"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.klass),o=t.truthy;return t.add_stubs(["$attr_reader","$arity","$new","$class","$join","$source_location","$raise"]),function(e,a,s){var l,c,u,d,f,h,p,$,m,g=i(e,a,"Method"),v=[g].concat(s);g.$$prototype.method=g.$$prototype.receiver=g.$$prototype.owner=g.$$prototype.name=n,g.$attr_reader("owner","receiver","name"),t.def(g,"$initialize",l=function(t,e,n,r){var i=this;return i.receiver=t,i.owner=e,i.name=r,i.method=n},l.$$arity=4),t.def(g,"$arity",c=function(){var t=this;return t.method.$arity()},c.$$arity=0),t.def(g,"$parameters",u=function(){var t=this;return t.method.$$parameters},u.$$arity=0),t.def(g,"$source_location",d=function(){var t,e=this;return o(t=e.method.$$source_location)?t:["(eval)",0]},d.$$arity=0),t.def(g,"$comments",f=function(){var t,e=this;return o(t=e.method.$$comments)?t:[]},f.$$arity=0),t.def(g,"$call",h=function(e){var r,i,o=h.$$p,a=o||n,s=this;return o&&(h.$$p=null),o&&(h.$$p=null),r=t.slice.call(arguments,0,arguments.length),i=r,s.method.$$p=a,s.method.apply(s.receiver,i)},h.$$arity=-1),t.alias(g,"[]","call"),t.def(g,"$unbind",p=function(){var t=this;return r(v,"UnboundMethod").$new(t.receiver.$class(),t.owner,t.method,t.name)},p.$$arity=0),t.def(g,"$to_proc",$=function(){var t=this,e=t.$call.bind(t);return e.$$unbound=t.method,e.$$is_lambda=!0,e.$$arity=t.method.$$arity,e.$$parameters=t.method.$$parameters,e},$.$$arity=0),t.def(g,"$inspect",m=function(){var t=this;return"#<"+t.$class()+": "+t.receiver.$class()+"#"+t.name+" (defined in "+t.owner+" in "+t.$source_location().$join(":")+")>"},m.$$arity=0)}(e[0],null,e),function(e,a,s){var l,c,u,d,f,h,p,$=i(e,a,"UnboundMethod"),m=[$].concat(s);return $.$$prototype.method=$.$$prototype.owner=$.$$prototype.name=$.$$prototype.source=n,$.$attr_reader("source","owner","name"),t.def($,"$initialize",l=function(t,e,n,r){var i=this;return i.source=t,i.owner=e,i.method=n,i.name=r},l.$$arity=4),t.def($,"$arity",c=function(){var t=this;return t.method.$arity()},c.$$arity=0),t.def($,"$parameters",u=function(){var t=this;return t.method.$$parameters},u.$$arity=0),t.def($,"$source_location",d=function(){var t,e=this;return o(t=e.method.$$source_location)?t:["(eval)",0]},d.$$arity=0),t.def($,"$comments",f=function(){var t,e=this;return o(t=e.method.$$comments)?t:[]},f.$$arity=0),t.def($,"$bind",h=function(e){var n=this;if(n.owner.$$is_module||t.is_a(e,n.owner))return r(m,"Method").$new(e,n.owner,n.method,n.name);n.$raise(r(m,"TypeError"),"can't bind singleton method to a different class (expected "+e+".kind_of?("+n.owner+" to be true)")},h.$$arity=1),t.def($,"$inspect",p=function(){var t=this;return"#<"+t.$class()+": "+t.source+"#"+t.name+" (defined in "+t.owner+" in "+t.$source_location().$join(":")+")>"},p.$$arity=0),n&&"inspect"}(e[0],null,e)},Opal.modules["corelib/variables"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.gvars),o=t.hash2;return t.add_stubs(["$new"]),i["&"]=i["~"]=i["`"]=i["'"]=n,i.LOADED_FEATURES=i['"']=t.loaded_features,i.LOAD_PATH=i[":"]=[],i["/"]="\n",i[","]=n,t.const_set(e[0],"ARGV",[]),t.const_set(e[0],"ARGF",r(e,"Object").$new()),t.const_set(e[0],"ENV",o([],{})),i.VERBOSE=!1,i.DEBUG=!1,i.SAFE=0},Opal.modules["opal/regexp_anchors"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.module);return t.add_stubs(["$==","$new"]),function(e,o){var a=i(e,"Opal"),s=[a].concat(o);t.const_set(s[0],"REGEXP_START",function(){return r(s,"RUBY_ENGINE")["$=="]("opal")?"^":n}()),t.const_set(s[0],"REGEXP_END",function(){return r(s,"RUBY_ENGINE")["$=="]("opal")?"$":n}()),t.const_set(s[0],"FORBIDDEN_STARTING_IDENTIFIER_CHARS","\\u0001-\\u002F\\u003A-\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),t.const_set(s[0],"FORBIDDEN_ENDING_IDENTIFIER_CHARS","\\u0001-\\u0020\\u0022-\\u002F\\u003A-\\u003E\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),t.const_set(s[0],"INLINE_IDENTIFIER_REGEXP",r(s,"Regexp").$new("[^"+r(s,"FORBIDDEN_STARTING_IDENTIFIER_CHARS")+"]*[^"+r(s,"FORBIDDEN_ENDING_IDENTIFIER_CHARS")+"]")),t.const_set(s[0],"FORBIDDEN_CONST_NAME_CHARS","\\u0001-\\u0020\\u0021-\\u002F\\u003B-\\u003F\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),t.const_set(s[0],"CONST_NAME_REGEXP",r(s,"Regexp").$new(r(s,"REGEXP_START")+"(::)?[A-Z][^"+r(s,"FORBIDDEN_CONST_NAME_CHARS")+"]*"+r(s,"REGEXP_END")))}(e[0],e)},Opal.modules["opal/mini"]=function(t){var e=t.top;t.nil,t.const_get_qualified,t.const_get_relative,t.breaker,t.slice;return t.add_stubs(["$require"]),e.$require("opal/base"),e.$require("corelib/nil"),e.$require("corelib/boolean"),e.$require("corelib/string"),e.$require("corelib/comparable"),e.$require("corelib/enumerable"),e.$require("corelib/enumerator"),e.$require("corelib/array"),e.$require("corelib/hash"),e.$require("corelib/number"),e.$require("corelib/range"),e.$require("corelib/proc"),e.$require("corelib/method"),e.$require("corelib/regexp"),e.$require("corelib/variables"),e.$require("opal/regexp_anchors")},Opal.modules["corelib/string/encoding"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}var n,r,i,o,a,s=t.top,l=[],c=t.nil,u=t.const_get_qualified,d=t.const_get_relative,f=(t.breaker,t.slice,t.klass),h=t.hash2,p=t.truthy,$=t.send;return t.add_stubs(["$require","$+","$[]","$new","$to_proc","$each","$const_set","$sub","$==","$default_external","$upcase","$raise","$attr_accessor","$attr_reader","$register","$length","$bytes","$to_a","$each_byte","$bytesize","$enum_for","$force_encoding","$dup","$coerce_to!","$find","$getbyte"]),s.$require("corelib/string"),function(n,r,i){var o,a,s,l,u,m,g,v,y,_,b=f(n,r,"Encoding"),w=[b].concat(i);b.$$prototype.ascii=b.$$prototype.dummy=b.$$prototype.name=c,t.defineProperty(b,"$$register",{}),t.defs(b,"$register",o=function(t,n){var r,i,a=o.$$p,s=a||c,l=this,u=c,f=c,m=c;return a&&(o.$$p=null),a&&(o.$$p=null),null==n&&(n=h([],{})),u=e([t],p(r=n["$[]"]("aliases"))?r:[]),f=$(d(w,"Class"),"new",[l],s.$to_proc()).$new(t,u,!!p(r=n["$[]"]("ascii"))&&r,!!p(r=n["$[]"]("dummy"))&&r),m=l["$$register"],$(u,"each",[],(i=function(t){var e=i.$$s||this;return null==t&&(t=c),e.$const_set(t.$sub("-","_"),f),m["$$"+t]=f},i.$$s=l,i.$$arity=1,i))},o.$$arity=-2),t.defs(b,"$find",a=function(t){var e,n=this,r=c,i=c;return t["$=="]("default_external")?n.$default_external():(r=n["$$register"],i=p(e=r["$$"+t])?e:r["$$"+t.$upcase()],p(i)||n.$raise(d(w,"ArgumentError"),"unknown encoding name - "+t),i)},a.$$arity=1),function(t,e){[t].concat(e);t.$attr_accessor("default_external")}(t.get_singleton_class(b),w),b.$attr_reader("name","names"),t.def(b,"$initialize",s=function(t,e,n,r){var i=this;return i.name=t,i.names=e,i.ascii=n,i.dummy=r},s.$$arity=4),t.def(b,"$ascii_compatible?",l=function(){var t=this;return t.ascii},l.$$arity=0),t.def(b,"$dummy?",u=function(){var t=this;return t.dummy},u.$$arity=0),t.def(b,"$to_s",m=function(){var t=this;return t.name},m.$$arity=0),t.def(b,"$inspect",g=function(){var t=this;return"#"},g.$$arity=0),t.def(b,"$each_byte",v=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(d(w,"NotImplementedError"))},v.$$arity=-1),t.def(b,"$getbyte",y=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(d(w,"NotImplementedError"))},y.$$arity=-1),t.def(b,"$bytesize",_=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(d(w,"NotImplementedError"))},_.$$arity=-1),function(t,e,n){var r=f(t,e,"EncodingError");[r].concat(n)}(w[0],d(w,"StandardError"),w),function(t,e,n){var r=f(t,e,"CompatibilityError");[r].concat(n)}(w[0],d(w,"EncodingError"),w)}(l[0],null,l),$(d(l,"Encoding"),"register",["UTF-8",h(["aliases","ascii"],{aliases:["CP65001"],ascii:!0})],(n=function(){var e,r,i=n.$$s||this;return t.def(i,"$each_byte",e=function(n){var r=e.$$p,i=r||c;r&&(e.$$p=null),r&&(e.$$p=null);for(var o=0,a=n.length;o>8)}},e.$$arity=1),t.def(i,"$bytesize",n=function(t){return t.$bytes().$length()},n.$$arity=1),c&&"bytesize"},r.$$s=s,r.$$arity=0,r)),$(d(l,"Encoding"),"register",["UTF-16BE"],(i=function(){var e,n,r=i.$$s||this;return t.def(r,"$each_byte",e=function(n){var r=e.$$p,i=r||c;r&&(e.$$p=null),r&&(e.$$p=null);for(var o=0,a=n.length;o>8),t.yield1(i,255&s)}},e.$$arity=1),t.def(r,"$bytesize",n=function(t){return t.$bytes().$length()},n.$$arity=1),c&&"bytesize"},i.$$s=s,i.$$arity=0,i)),$(d(l,"Encoding"),"register",["UTF-32LE"],(o=function(){var e,n,r=o.$$s||this;return t.def(r,"$each_byte",e=function(n){var r=e.$$p,i=r||c;r&&(e.$$p=null),r&&(e.$$p=null);for(var o=0,a=n.length;o>8)}},e.$$arity=1),t.def(r,"$bytesize",n=function(t){return t.$bytes().$length()},n.$$arity=1),c&&"bytesize"},o.$$s=s,o.$$arity=0,o)),$(d(l,"Encoding"),"register",["ASCII-8BIT",h(["aliases","ascii","dummy"],{aliases:["BINARY","US-ASCII","ASCII"],ascii:!0,dummy:!0})],(a=function(){var e,n,r=a.$$s||this;return t.def(r,"$each_byte",e=function(n){var r=e.$$p,i=r||c;r&&(e.$$p=null),r&&(e.$$p=null);for(var o=0,a=n.length;o>8)}},e.$$arity=1),t.def(r,"$bytesize",n=function(t){return t.$bytes().$length()},n.$$arity=1),c&&"bytesize"},a.$$s=s,a.$$arity=0,a)),function(e,n,r){var i,o,a,s,l,h,p,m=f(e,n,"String"),g=[m].concat(r);return m.$$prototype.encoding=c,m.$attr_reader("encoding"),t.defineProperty(String.prototype,"encoding",u(d(g,"Encoding"),"UTF_16LE")),t.def(m,"$bytes",i=function(){var t=this;return t.$each_byte().$to_a()},i.$$arity=0),t.def(m,"$bytesize",o=function(){var t=this;return t.encoding.$bytesize(t)},o.$$arity=0),t.def(m,"$each_byte",a=function(){var t=a.$$p,e=t||c,n=this;return t&&(a.$$p=null),t&&(a.$$p=null),e===c?n.$enum_for("each_byte"):($(n.encoding,"each_byte",[n],e.$to_proc()),n)},a.$$arity=0),t.def(m,"$encode",s=function(t){var e=this;return e.$dup().$force_encoding(t)},s.$$arity=1),t.def(m,"$force_encoding",l=function(t){var e=this;return t===e.encoding?e:(t=d(g,"Opal")["$coerce_to!"](t,d(g,"String"),"to_s"),t=d(g,"Encoding").$find(t),t===e.encoding||(e.encoding=t),e)},l.$$arity=1),t.def(m,"$getbyte",h=function(t){var e=this;return e.encoding.$getbyte(e,t)},h.$$arity=1),t.def(m,"$valid_encoding?",p=function(){return!0},p.$$arity=0),c&&"valid_encoding?"}(l[0],null,l)},Opal.modules["corelib/struct"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t=e:t["$>="](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}var a=t.top,s=[],l=t.nil,c=(t.const_get_qualified,t.const_get_relative),u=(t.breaker,t.slice,t.klass),d=t.hash2,f=t.truthy,h=t.send;return t.add_stubs(["$require","$include","$const_name!","$unshift","$map","$coerce_to!","$new","$each","$define_struct_attribute","$allocate","$initialize","$alias_method","$module_eval","$to_proc","$const_set","$==","$raise","$<<","$members","$define_method","$instance_eval","$class","$last","$>","$length","$-","$keys","$any?","$join","$[]","$[]=","$each_with_index","$hash","$===","$<","$-@","$size","$>=","$include?","$to_sym","$instance_of?","$__id__","$eql?","$enum_for","$name","$+","$each_pair","$inspect","$each_with_object","$flatten","$to_a","$respond_to?","$dig"]),a.$require("corelib/enumerable"),function(a,s,p){var $,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I=u(a,s,"Struct"),D=[I].concat(p);return I.$include(c(D,"Enumerable")),t.defs(I,"$new",$=function(e,n,r){var i,o,a,s,u,p,m=$.$$p,g=m||l,v=this,y=l;if(m&&($.$$p=null),m&&($.$$p=null),i=t.slice.call(arguments,1,arguments.length),o=t.extract_kwargs(i),null==o)o=d([],{});else if(!o.$$is_hash)throw t.ArgumentError.$new("expected kwargs");if(a=i,s=o.$$smap["keyword_init"],null==s&&(s=!1),f(e))try{e=c(D,"Opal")["$const_name!"](e)}catch(_){if(!t.rescue(_,[c(D,"TypeError"),c(D,"NameError")]))throw _;try{a.$unshift(e),e=l}finally{t.pop_exception()}}return h(a,"map",[],(u=function(t){u.$$s;return null==t&&(t=l),c(D,"Opal")["$coerce_to!"](t,c(D,"String"),"to_str")},u.$$s=v,u.$$arity=1,u)),y=h(c(D,"Class"),"new",[v],(p=function(){var e,n=p.$$s||this;return h(a,"each",[],(e=function(t){var n=e.$$s||this;return null==t&&(t=l),n.$define_struct_attribute(t)},e.$$s=n,e.$$arity=1,e)),function(e,n){var r;[e].concat(n);return t.def(e,"$new",r=function(e){var n,r,i=this,o=l;return n=t.slice.call(arguments,0,arguments.length),r=n,o=i.$allocate(),o.$$data={},h(o,"initialize",t.to_a(r)),o},r.$$arity=-1),e.$alias_method("[]","new")}(t.get_singleton_class(n),D)},p.$$s=v,p.$$arity=0,p)),f(g)&&h(y,"module_eval",[],g.$to_proc()),y.$$keyword_init=s,f(e)&&c(D,"Struct").$const_set(e,y),y},$.$$arity=-2),t.defs(I,"$define_struct_attribute",m=function(t){var e,n,r=this;return r["$=="](c(D,"Struct"))&&r.$raise(c(D,"ArgumentError"),"you cannot define attributes to the Struct class"),r.$members()["$<<"](t),h(r,"define_method",[t],(e=function(){var n=e.$$s||this;return n.$$data[t]},e.$$s=r,e.$$arity=0,e)),h(r,"define_method",[t+"="],(n=function(e){var r=n.$$s||this;return null==e&&(e=l),r.$$data[t]=e},n.$$s=r,n.$$arity=1,n))},m.$$arity=1),t.defs(I,"$members",g=function(){var t,e=this;return null==e.members&&(e.members=l),e["$=="](c(D,"Struct"))&&e.$raise(c(D,"ArgumentError"),"the Struct class has no members"),e.members=f(t=e.members)?t:[]},g.$$arity=0),t.defs(I,"$inherited",v=function(t){var e,n=this,r=l;return null==n.members&&(n.members=l),r=n.members,h(t,"instance_eval",[],(e=function(){var t=e.$$s||this;return t.members=r},e.$$s=n,e.$$arity=0,e))},v.$$arity=1),t.def(I,"$initialize",y=function(r){var i,o,a,s,u,p=this,$=l,m=l;return i=t.slice.call(arguments,0,arguments.length),o=i,f(p.$class().$$keyword_init)?($=f(a=o.$last())?a:d([],{}),f(f(a=e(o.$length(),1))?a:1===o.length&&!$.$$is_hash)&&p.$raise(c(D,"ArgumentError"),"wrong number of arguments (given "+o.$length()+", expected 0)"),m=n($.$keys(),p.$class().$members()),f(m["$any?"]())&&p.$raise(c(D,"ArgumentError"),"unknown keywords: "+m.$join(", ")),h(p.$class().$members(),"each",[],(s=function(e){var r=s.$$s||this,i=l;return null==e&&(e=l),i=[e,$["$[]"](e)],h(r,"[]=",t.to_a(i)),i[n(i["length"],1)]},s.$$s=p,s.$$arity=1,s))):(f(e(o.$length(),p.$class().$members().$length()))&&p.$raise(c(D,"ArgumentError"),"struct size differs"),h(p.$class().$members(),"each_with_index",[],(u=function(e,r){var i=u.$$s||this,a=l;return null==e&&(e=l),null==r&&(r=l),a=[e,o["$[]"](r)],h(i,"[]=",t.to_a(a)),a[n(a["length"],1)]},u.$$s=p,u.$$arity=2,u)))},y.$$arity=-1),t.def(I,"$members",_=function(){var t=this;return t.$class().$members()},_.$$arity=0),t.def(I,"$hash",b=function(){var t=this;return c(D,"Hash").$new(t.$$data).$hash()},b.$$arity=0),t.def(I,"$[]",w=function(t){var e=this;return f(c(D,"Integer")["$==="](t))?(f(r(t,e.$class().$members().$size()["$-@"]()))&&e.$raise(c(D,"IndexError"),"offset "+t+" too small for struct(size:"+e.$class().$members().$size()+")"),f(i(t,e.$class().$members().$size()))&&e.$raise(c(D,"IndexError"),"offset "+t+" too large for struct(size:"+e.$class().$members().$size()+")"),t=e.$class().$members()["$[]"](t)):f(c(D,"String")["$==="](t))?e.$$data.hasOwnProperty(t)||e.$raise(c(D,"NameError").$new("no member '"+t+"' in struct",t)):e.$raise(c(D,"TypeError"),"no implicit conversion of "+t.$class()+" into Integer"),t=c(D,"Opal")["$coerce_to!"](t,c(D,"String"),"to_str"),e.$$data[t]},w.$$arity=1),t.def(I,"$[]=",x=function(t,e){var n=this;return f(c(D,"Integer")["$==="](t))?(f(r(t,n.$class().$members().$size()["$-@"]()))&&n.$raise(c(D,"IndexError"),"offset "+t+" too small for struct(size:"+n.$class().$members().$size()+")"),f(i(t,n.$class().$members().$size()))&&n.$raise(c(D,"IndexError"),"offset "+t+" too large for struct(size:"+n.$class().$members().$size()+")"),t=n.$class().$members()["$[]"](t)):f(c(D,"String")["$==="](t))?f(n.$class().$members()["$include?"](t.$to_sym()))||n.$raise(c(D,"NameError").$new("no member '"+t+"' in struct",t)):n.$raise(c(D,"TypeError"),"no implicit conversion of "+t.$class()+" into Integer"),t=c(D,"Opal")["$coerce_to!"](t,c(D,"String"),"to_str"),n.$$data[t]=e},x.$$arity=2),t.def(I,"$==",k=function(t){var e=this;if(!f(t["$instance_of?"](e.$class())))return!1;var n={},r={};function i(t,e){var o,a,s;for(o in n[t.$__id__()]=!0,r[e.$__id__()]=!0,t.$$data)if(a=t.$$data[o],s=e.$$data[o],c(D,"Struct")["$==="](a)){if((!n.hasOwnProperty(a.$__id__())||!r.hasOwnProperty(s.$__id__()))&&!i(a,s))return!1}else if(!a["$=="](s))return!1;return!0}return i(e,t)},k.$$arity=1),t.def(I,"$eql?",S=function(t){var e=this;if(!f(t["$instance_of?"](e.$class())))return!1;var n={},r={};function i(t,e){var o,a,s;for(o in n[t.$__id__()]=!0,r[e.$__id__()]=!0,t.$$data)if(a=t.$$data[o],s=e.$$data[o],c(D,"Struct")["$==="](a)){if((!n.hasOwnProperty(a.$__id__())||!r.hasOwnProperty(s.$__id__()))&&!i(a,s))return!1}else if(!a["$eql?"](s))return!1;return!0}return i(e,t)},S.$$arity=1),t.def(I,"$each",O=function(){var e,n,r=O.$$p,i=r||l,o=this;return r&&(O.$$p=null),i===l?h(o,"enum_for",["each"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=o,e.$$arity=0,e)):(h(o.$class().$members(),"each",[],(n=function(e){var r=n.$$s||this;return null==e&&(e=l),t.yield1(i,r["$[]"](e))},n.$$s=o,n.$$arity=1,n)),o)},O.$$arity=0),t.def(I,"$each_pair",C=function(){var e,n,r=C.$$p,i=r||l,o=this;return r&&(C.$$p=null),i===l?h(o,"enum_for",["each_pair"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=o,e.$$arity=0,e)):(h(o.$class().$members(),"each",[],(n=function(e){var r=n.$$s||this;return null==e&&(e=l),t.yield1(i,[e,r["$[]"](e)])},n.$$s=o,n.$$arity=1,n)),o)},C.$$arity=0),t.def(I,"$length",A=function(){var t=this;return t.$class().$members().$length()},A.$$arity=0),t.alias(I,"size","length"),t.def(I,"$to_a",E=function(){var t,e=this;return h(e.$class().$members(),"map",[],(t=function(e){var n=t.$$s||this;return null==e&&(e=l),n["$[]"](e)},t.$$s=e,t.$$arity=1,t))},E.$$arity=0),t.alias(I,"values","to_a"),t.def(I,"$inspect",T=function(){var t,e,n=this,r=l;return r="#"),r},T.$$arity=0),t.alias(I,"to_s","inspect"),t.def(I,"$to_h",P=function(){var e,r=this;return h(r.$class().$members(),"each_with_object",[d([],{})],(e=function(r,i){var o=e.$$s||this,a=l;return null==r&&(r=l),null==i&&(i=l),a=[r,o["$[]"](r)],h(i,"[]=",t.to_a(a)),a[n(a["length"],1)]},e.$$s=r,e.$$arity=2,e))},P.$$arity=0),t.def(I,"$values_at",B=function(e){var n,r,i,o=this;n=t.slice.call(arguments,0,arguments.length),r=n,r=h(r,"map",[],(i=function(t){i.$$s;return null==t&&(t=l),t.$$is_range?t.$to_a():t},i.$$s=o,i.$$arity=1,i)).$flatten();for(var a=[],s=0,u=r.length;s"},g.$$arity=0),t.def(z,"$==",v=function(t){var e,n,r=this;return!!c(r["$equal?"](t))||(c(t["$instance_of?"](r.$class()))?r.hash["$=="](t.$instance_variable_get("@hash")):!!c(c(e=t["$is_a?"](a(H,"Set")))?r.$size()["$=="](t.$size()):e)&&u(t,"all?",[],(n=function(t){var e=n.$$s||this;return null==e.hash&&(e.hash=o),null==t&&(t=o),e.hash["$include?"](t)},n.$$s=r,n.$$arity=1,n)))},v.$$arity=1),t.def(z,"$add",y=function(n){var r=this,i=o;return i=[n,!0],u(r.hash,"[]=",t.to_a(i)),i[e(i["length"],1)],r},y.$$arity=1),t.alias(z,"<<","add"),t.def(z,"$classify",_=function(){var n,r,i=_.$$p,s=i||o,l=this,c=o;return i&&(_.$$p=null),i&&(_.$$p=null),s===o?l.$enum_for("classify"):(c=u(a(H,"Hash"),"new",[],(n=function(r,i){var a=n.$$s||this,s=o;return null==r&&(r=o),null==i&&(i=o),s=[i,a.$class().$new()],u(r,"[]=",t.to_a(s)),s[e(s["length"],1)]},n.$$s=l,n.$$arity=2,n)),u(l,"each",[],(r=function(e){r.$$s;return null==e&&(e=o),c["$[]"](t.yield1(s,e)).$add(e)},r.$$s=l,r.$$arity=1,r)),c)},_.$$arity=0),t.def(z,"$collect!",b=function(){var e,n=b.$$p,r=n||o,i=this,a=o;return n&&(b.$$p=null),n&&(b.$$p=null),r===o?i.$enum_for("collect!"):(a=i.$class().$new(),u(i,"each",[],(e=function(n){e.$$s;return null==n&&(n=o),a["$<<"](t.yield1(r,n))},e.$$s=i,e.$$arity=1,e)),i.$replace(a))},b.$$arity=0),t.alias(z,"map!","collect!"),t.def(z,"$delete",w=function(t){var e=this;return e.hash.$delete(t),e},w.$$arity=1),t.def(z,"$delete?",x=function(t){var e=this;return c(e["$include?"](t))?(e.$delete(t),e):o},x.$$arity=1),t.def(z,"$delete_if",k=function(){var e,n,r=k.$$p,i=r||o,a=this;return r&&(k.$$p=null),i===o?a.$enum_for("delete_if"):(u(u(a,"select",[],(e=function(n){e.$$s;return null==n&&(n=o),t.yield1(i,n)},e.$$s=a,e.$$arity=1,e)),"each",[],(n=function(t){var e=n.$$s||this;return null==e.hash&&(e.hash=o),null==t&&(t=o),e.hash.$delete(t)},n.$$s=a,n.$$arity=1,n)),a)},k.$$arity=0),t.def(z,"$add?",S=function(t){var e=this;return c(e["$include?"](t))?o:e.$add(t)},S.$$arity=1),t.def(z,"$each",O=function(){var t=O.$$p,e=t||o,n=this;return t&&(O.$$p=null),t&&(O.$$p=null),e===o?n.$enum_for("each"):(u(n.hash,"each_key",[],e.$to_proc()),n)},O.$$arity=0),t.def(z,"$empty?",C=function(){var t=this;return t.hash["$empty?"]()},C.$$arity=0),t.def(z,"$eql?",A=function(t){var e,n=this;return n.hash["$eql?"](u(t,"instance_eval",[],(e=function(){var t=e.$$s||this;return null==t.hash&&(t.hash=o),t.hash},e.$$s=n,e.$$arity=0,e)))},A.$$arity=1),t.def(z,"$clear",E=function(){var t=this;return t.hash.$clear(),t},E.$$arity=0),t.def(z,"$include?",T=function(t){var e=this;return e.hash["$include?"](t)},T.$$arity=1),t.alias(z,"member?","include?"),t.def(z,"$merge",P=function(t){var e,n=this;return u(t,"each",[],(e=function(t){var n=e.$$s||this;return null==t&&(t=o),n.$add(t)},e.$$s=n,e.$$arity=1,e)),n},P.$$arity=1),t.def(z,"$replace",B=function(t){var e=this;return e.$clear(),e.$merge(t),e},B.$$arity=1),t.def(z,"$size",L=function(){var t=this;return t.hash.$size()},L.$$arity=0),t.alias(z,"length","size"),t.def(z,"$subtract",I=function(t){var e,n=this;return u(t,"each",[],(e=function(t){var n=e.$$s||this;return null==t&&(t=o),n.$delete(t)},e.$$s=n,e.$$arity=1,e)),n},I.$$arity=1),t.def(z,"$|",D=function(t){var e=this;return c(t["$respond_to?"]("each"))||e.$raise(a(H,"ArgumentError"),"value must be enumerable"),e.$dup().$merge(t)},D.$$arity=1),t.def(z,"$superset?",R=function(t){var e,r=this;return c(t["$is_a?"](a(H,"Set")))||r.$raise(a(H,"ArgumentError"),"value must be a set"),!c(n(r.$size(),t.$size()))&&u(t,"all?",[],(e=function(t){var n=e.$$s||this;return null==t&&(t=o),n["$include?"](t)},e.$$s=r,e.$$arity=1,e))},R.$$arity=1),t.alias(z,">=","superset?"),t.def(z,"$proper_superset?",j=function(t){var e,n=this;return c(t["$is_a?"](a(H,"Set")))||n.$raise(a(H,"ArgumentError"),"value must be a set"),!c(r(n.$size(),t.$size()))&&u(t,"all?",[],(e=function(t){var n=e.$$s||this;return null==t&&(t=o),n["$include?"](t)},e.$$s=n,e.$$arity=1,e))},j.$$arity=1),t.alias(z,">","proper_superset?"),t.def(z,"$subset?",M=function(t){var e,r=this;return c(t["$is_a?"](a(H,"Set")))||r.$raise(a(H,"ArgumentError"),"value must be a set"),!c(n(t.$size(),r.$size()))&&u(r,"all?",[],(e=function(n){e.$$s;return null==n&&(n=o),t["$include?"](n)},e.$$s=r,e.$$arity=1,e))},M.$$arity=1),t.alias(z,"<=","subset?"),t.def(z,"$proper_subset?",F=function(t){var e,n=this;return c(t["$is_a?"](a(H,"Set")))||n.$raise(a(H,"ArgumentError"),"value must be a set"),!c(r(t.$size(),n.$size()))&&u(n,"all?",[],(e=function(n){e.$$s;return null==n&&(n=o),t["$include?"](n)},e.$$s=n,e.$$arity=1,e))},F.$$arity=1),t.alias(z,"<","proper_subset?"),t.alias(z,"+","|"),t.alias(z,"union","|"),t.def(z,"$to_a",N=function(){var t=this;return t.hash.$keys()},N.$$arity=0)}(i[0],null,i),function(e,n){var r,i=d(e,"Enumerable"),s=[i].concat(n);t.def(i,"$to_set",r=function(e,n){var i,l,c,d=r.$$p,f=d||o,h=this;return d&&(r.$$p=null),d&&(r.$$p=null),i=t.slice.call(arguments,0,arguments.length),i.length>0&&(l=i[0],i.splice(0,1)),null==l&&(l=a(s,"Set")),c=i,u(l,"new",[h].concat(t.to_a(c)),f.$to_proc())},r.$$arity=-1)}(i[0],i)},Opal.modules["asciidoctor/js/opal_ext/kernel"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.module),o=t.send;return t.add_stubs(["$new"]),function(e,a){var s,l,c=i(e,"Kernel"),u=[c].concat(a);t.def(c,"$open",s=function(e,i){var a,l,c=s.$$p,d=c||n,f=n;return c&&(s.$$p=null),a=t.slice.call(arguments,1,arguments.length),l=a,f=o(r(u,"File"),"new",[e].concat(t.to_a(l))),d!==n?t.yield1(d,f):f},s.$$arity=-2),t.def(c,"$__dir__",l=function(){return""},l.$$arity=0)}(e[0],e)},Opal.modules["asciidoctor/js/opal_ext/file"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.klass),o=t.truthy,a=t.gvars;return t.add_stubs(["$attr_reader","$delete","$gsub","$read","$size","$to_enum","$chomp","$each_line","$readlines","$split"]),function(e,s,l){var c,u,d,f,h=i(e,s,"File"),p=[h].concat(l);h.$$prototype.eof=h.$$prototype.path=n,h.$attr_reader("eof"),h.$attr_reader("lineno"),h.$attr_reader("path"),t.def(h,"$initialize",c=function(t,e){var r=this,i=n;return null==e&&(e="r"),r.path=t,r.contents=n,r.eof=!1,r.lineno=0,e=e.$delete("b"),i=/:(.*)/,e=e.$gsub(i,""),r.flags=e},c.$$arity=-2),t.def(h,"$read",u=function(){var t=this,e=n;return o(t.eof)?"":(e=r(p,"File").$read(t.path),t.eof=!0,t.lineno=e.$size(),e)},u.$$arity=0),t.def(h,"$each_line",d=function(e){var i=d.$$p,s=i||n,l=this,c=n;if(null==a["/"]&&(a["/"]=n),i&&(d.$$p=null),i&&(d.$$p=null),null==e&&(e=a["/"]),o(l.eof))return function(){return s!==n?l:[].$to_enum()}();if(s!==n){c=r(p,"File").$read(l.path),l.eof=!1,l.lineno=0;for(var u=c.$chomp(),f=c.length!=u.length,h=u.split(e),$=0,m=h.length;$e:t["$>"](e)}t.top;var n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative),o=(t.breaker,t.slice,t.klass),a=t.truthy;return t.add_stubs(["$coerce_to!","$>"]),function(n,s,l){var c,u=o(n,s,"Number"),d=[u].concat(l);return t.def(u,"$round",c=function(t){var n=this;return t=i(d,"Opal")["$coerce_to!"](t,i(d,"Integer"),"to_int"),a(e(t,0))?Number(n.toFixed(t)):Math.round(n)},c.$$arity=-1),r&&"round"}(n[0],i(n,"Numeric"),n)},Opal.modules["asciidoctor/js/opal_ext"]=function(t){var e=t.top;t.nil,t.const_get_qualified,t.const_get_relative,t.breaker,t.slice;t.add_stubs(["$require"]),e.$require("asciidoctor/js/opal_ext/kernel"),e.$require("asciidoctor/js/opal_ext/file"),e.$require("asciidoctor/js/opal_ext/match_data"),e.$require("asciidoctor/js/opal_ext/string"),e.$require("asciidoctor/js/opal_ext/uri"),e.$require("asciidoctor/js/opal_ext/base64"),e.$require("asciidoctor/js/opal_ext/number"),t.config.unsupported_features_severity="ignore",e.$require("asciidoctor/js/opal_ext/browser")},Opal.modules["asciidoctor/js/rx"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}t.top;var n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative),o=(t.breaker,t.slice,t.module),a=t.send,s=t.gvars,l=t.truthy;return t.add_stubs(["$gsub","$+","$unpack_hex_range"]),function(n,c){var u,d=o(n,"Asciidoctor"),f=[d].concat(c);t.const_set(f[0],"HEX_RANGE_RX",/([A-F0-9]{4})(?:-([A-F0-9]{4}))?/),t.defs(d,"$unpack_hex_range",u=function(t){var e,n=this;return a(t,"gsub",[i(f,"HEX_RANGE_RX")],(e=function(){var t,n;e.$$s;return"\\u"+((t=s["~"])===r?r:t["$[]"](1))+(l(t=(n=s["~"])===r?r:n["$[]"](2))?"-\\u"+((n=s["~"])===r?r:n["$[]"](2)):t)},e.$$s=n,e.$$arity=0,e))},u.$$arity=1),t.const_set(f[0],"P_L",e("A-Za-z",d.$unpack_hex_range("00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D037F03860388-038A038C038E-03A103A3-03F503F7-0481048A-052F0531-055605590561-058705D0-05EA05F0-05F20620-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280840-085808A0-08B20904-0939093D09500958-09610971-09800985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10CF10CF20D05-0D0C0D0E-0D100D12-0D3A0D3D0D4E0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC-0EDF0F000F40-0F470F49-0F6C0F88-0F8C1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510C710CD10D0-10FA10FC-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA16F1-16F81700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191E1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1BBA-1BE51C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11CF51CF61D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209C21022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2CF22CF32D00-2D252D272D2D2D30-2D672D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31BA31F0-31FF3400-4DB54E00-9FCCA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A66EA67F-A69DA6A0-A6E5A717-A71FA722-A788A78B-A78EA790-A7ADA7B0A7B1A7F7-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFA9E0-A9E4A9E6-A9EFA9FA-A9FEAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA7E-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDAAE0-AAEAAAF2-AAF4AB01-AB06AB09-AB0EAB11-AB16AB20-AB26AB28-AB2EAB30-AB5AAB5C-AB5FAB64AB65ABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC"))),t.const_set(f[0],"P_Nl",d.$unpack_hex_range("16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF")),t.const_set(f[0],"P_Nd",e("0-9",d.$unpack_hex_range("0660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0DE6-0DEF0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19D91A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9A9F0-A9F9AA50-AA59ABF0-ABF9FF10-FF19"))),t.const_set(f[0],"P_Pc",d.$unpack_hex_range("005F203F20402054FE33FE34FE4D-FE4FFF3F")),t.const_set(f[0],"CC_ALPHA",""+i(f,"P_L")+i(f,"P_Nl")),t.const_set(f[0],"CG_ALPHA","["+i(f,"CC_ALPHA")+"]"),t.const_set(f[0],"CC_ALNUM",""+i(f,"CC_ALPHA")+i(f,"P_Nd")),t.const_set(f[0],"CG_ALNUM","["+i(f,"CC_ALNUM")+"]"),t.const_set(f[0],"CC_WORD",""+i(f,"CC_ALNUM")+i(f,"P_Pc")),t.const_set(f[0],"CG_WORD","["+i(f,"CC_WORD")+"]"),t.const_set(f[0],"CG_BLANK","[ \\t]"),t.const_set(f[0],"CC_EOL","(?=\\n|$)"),t.const_set(f[0],"CG_GRAPH","[^\\s\\x00-\\x1F\\x7F]"),t.const_set(f[0],"CC_ALL","[\\s\\S]"),t.const_set(f[0],"CC_ANY","[^\\n]")}(n[0],n)},Opal.modules["strscan"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}t.top;var n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative,t.breaker,t.slice,t.klass),o=t.send;return t.add_stubs(["$attr_reader","$anchor","$scan_until","$length","$size","$rest","$pos=","$-","$private"]),function(n,a,s){var l,c,u,d,f,h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L=i(n,a,"StringScanner");[L].concat(s);return L.$$prototype.pos=L.$$prototype.string=L.$$prototype.working=L.$$prototype.matched=L.$$prototype.prev_pos=L.$$prototype.match=r,L.$attr_reader("pos"),L.$attr_reader("matched"),t.def(L,"$initialize",l=function(t){var e=this;return e.string=t,e.pos=0,e.matched=r,e.working=t,e.match=[]},l.$$arity=1),L.$attr_reader("string"),t.def(L,"$beginning_of_line?",c=function(){var t=this;return 0===t.pos||"\n"===t.string.charAt(t.pos-1)},c.$$arity=0),t.alias(L,"bol?","beginning_of_line?"),t.def(L,"$scan",u=function(t){var e=this;t=e.$anchor(t);var n=t.exec(e.working);return null==n?e.matched=r:"object"===typeof n?(e.prev_pos=e.pos,e.pos+=n[0].length,e.working=e.working.substring(n[0].length),e.matched=n[0],e.match=n,n[0]):"string"===typeof n?(e.pos+=n.length,e.working=e.working.substring(n.length),n):r},u.$$arity=1),t.def(L,"$scan_until",d=function(t){var e=this;t=e.$anchor(t);var n,i=e.pos,o=e.working;while(1){if(n=t.exec(o),i+=1,o=o.substr(1),null!=n)return e.matched=e.string.substr(e.pos,i-e.pos-1+n[0].length),e.prev_pos=i-1,e.pos=i,e.working=o.substr(n[0].length),e.matched;if(0===o.length)return e.matched=r}},d.$$arity=1),t.def(L,"$[]",f=function(t){var e=this,n=e.match;return t<0&&(t+=n.length),t<0||t>=n.length||null==n[t]?r:n[t]},f.$$arity=1),t.def(L,"$check",h=function(t){var e=this;t=e.$anchor(t);var n=t.exec(e.working);return e.matched=null==n?r:n[0]},h.$$arity=1),t.def(L,"$check_until",p=function(t){var e=this,n=e.prev_pos,i=e.pos,o=e.$scan_until(t);return o!==r&&(e.matched=o.substr(-1),e.working=e.string.substr(i)),e.prev_pos=n,e.pos=i,o},p.$$arity=1),t.def(L,"$peek",$=function(t){var e=this;return e.working.substring(0,t)},$.$$arity=1),t.def(L,"$eos?",m=function(){var t=this;return 0===t.working.length},m.$$arity=0),t.def(L,"$exist?",g=function(t){var e=this,n=t.exec(e.working);return null==n?r:0==n.index?0:n.index+1},g.$$arity=1),t.def(L,"$skip",v=function(t){var e=this;t=e.$anchor(t);var n=t.exec(e.working);if(null==n)return e.matched=r;var i=n[0],o=i.length;return e.matched=i,e.prev_pos=e.pos,e.pos+=o,e.working=e.working.substring(o),o},v.$$arity=1),t.def(L,"$skip_until",y=function(t){var e=this,n=e.$scan_until(t);return n===r?r:(e.matched=n.substr(-1),n.length)},y.$$arity=1),t.def(L,"$get_byte",_=function(){var t=this,e=r;return t.pose:t["$>"](e)}var r,i=t.top,o=[],a=t.nil,s=(t.const_get_qualified,t.const_get_relative),l=(t.breaker,t.slice,t.send),c=t.truthy,u=t.hash2;return t.add_stubs(["$==","$arity","$instance_method","$send","$new","$<","$length","$>","$inject","$merge","$[]"]),s(o,"Hash").$instance_method("merge").$arity()["$=="](1)?s(o,"Hash").$send("prepend",l(s(o,"Module"),"new",[],(r=function(){var i,o=r.$$s||this;return t.def(o,"$merge",i=function(r){var o,s,d,f=i.$$p,h=this,p=a;return f&&(i.$$p=null),o=t.slice.call(arguments,0,arguments.length),s=o,c(e(p=s.$length(),1))?l(h,t.find_super_dispatcher(h,"merge",i,!1),[u([],{})],null):c(n(p,1))?l(s,"inject",[h],(d=function(t,e){d.$$s;return null==t&&(t=a),null==e&&(e=a),t.$merge(e)},d.$$s=h,d.$$arity=2,d)):l(h,t.find_super_dispatcher(h,"merge",i,!1),[s["$[]"](0)],null)},i.$$arity=-1),a&&"merge"},r.$$s=i,r.$$arity=0,r))):a},Opal.modules["asciidoctor/core_ext/match_data/names"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.truthy),o=t.klass;return t.add_stubs(["$method_defined?"]),i(r(e,"MatchData")["$method_defined?"]("names"))?n:function(e,r,i){var a,s=o(e,r,"MatchData");[s].concat(i);return t.def(s,"$names",a=function(){return[]},a.$$arity=0),n&&"names"}(e[0],null,e)},Opal.modules["asciidoctor/core_ext"]=function(t){var e=t.top,n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative);t.breaker,t.slice;return t.add_stubs(["$=="]),e.$require("asciidoctor/core_ext.rb/../core_ext/nil_or_empty"),e.$require("asciidoctor/core_ext.rb/../core_ext/hash/merge"),i(n,"RUBY_ENGINE")["$=="]("opal")?e.$require("asciidoctor/core_ext.rb/../core_ext/match_data/names"):r},Opal.modules["asciidoctor/helpers"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}t.top;var i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.module),c=t.truthy,u=t.gvars,d=t.send,f=t.hash2;return t.add_stubs(["$module_function","$require","$include?","$include","$==","$===","$path","$message","$raise","$warn","$logger","$chomp","$empty?","$slice","$unpack","$[]","$byteslice","$bytesize","$[]=","$-","$map","$rstrip","$encode","$encoding","$nil_or_empty?","$!=","$tap","$each_line","$<<","$match?","$gsub","$rindex","$index","$basename","$extname","$!","$length","$directory?","$dirname","$mkdir_p","$mkdir","$private_constant","$join","$divmod","$*","$+","$to_i","$to_s","$chr","$ord","$class_for_name","$const_get"]),function(i,h){var p=l(i,"Asciidoctor"),$=[p].concat(h);(function(i,h){var p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T=l(i,"Helpers"),P=[T].concat(h);T.$module_function(),t.def(T,"$require_library",p=function(e,n,r){var i=this,l=o,d=o;null==u["!"]&&(u["!"]=o),null==n&&(n=!0),null==r&&(r="abort");try{return i.$require(e)}catch(f){if(!t.rescue(f,[a("::","LoadError")]))throw f;try{return c(i["$include?"](s(P,"Logging")))||i.$include(s(P,"Logging")),c(n)?(n["$=="](!0)&&(n=e),l=r,"abort"["$==="](l)?(d=function(){return u["!"].$path()["$=="](n)?"":" (reason: "+function(){return c(u["!"].$path())?"cannot load '"+u["!"].$path()+"'":u["!"].$message()}()+")"}(),i.$raise(a("::","LoadError"),"asciidoctor: FAILED: required gem '"+n+"' is not available"+d+". Processing aborted.")):"warn"["$==="](l)&&(d=function(){return u["!"].$path()["$=="](n)?"":" (reason: "+function(){return c(u["!"].$path())?"cannot load '"+u["!"].$path()+"'":u["!"].$message()}()+")"}(),i.$logger().$warn("optional gem '"+n+"' is not available"+d+". Functionality disabled."))):(l=r,"abort"["$==="](l)?i.$raise(a("::","LoadError"),"asciidoctor: FAILED: "+u["!"].$message().$chomp(".")+". Processing aborted."):"warn"["$==="](l)&&i.$logger().$warn(u["!"].$message().$chomp(".")+". Functionality disabled.")),o}finally{t.pop_exception()}}},p.$$arity=-2),t.def(T,"$prepare_source_array",$=function(n){var r,i,l,u,f=this,h=o,p=o,$=o,m=o;return c(n["$empty?"]())?[]:(h=(p=($=n["$[]"](0)).$unpack("C3")).$slice(0,2))["$=="](s(P,"BOM_BYTES_UTF_16LE"))?(m=[0,$.$byteslice(2,$.$bytesize())],d(n,"[]=",t.to_a(m)),m[e(m["length"],1)],d(n,"map",[],(r=function(t){r.$$s;return null==t&&(t=o),t.$encode(s(P,"UTF_8"),a(a("::","Encoding"),"UTF_16LE")).$rstrip()},r.$$s=f,r.$$arity=1,r))):h["$=="](s(P,"BOM_BYTES_UTF_16BE"))?(m=[0,$.$byteslice(2,$.$bytesize())],d(n,"[]=",t.to_a(m)),m[e(m["length"],1)],d(n,"map",[],(i=function(t){i.$$s;return null==t&&(t=o),t.$encode(s(P,"UTF_8"),a(a("::","Encoding"),"UTF_16BE")).$rstrip()},i.$$s=f,i.$$arity=1,i))):(p["$=="](s(P,"BOM_BYTES_UTF_8"))&&(m=[0,$.$byteslice(3,$.$bytesize())],d(n,"[]=",t.to_a(m)),m[e(m["length"],1)]),$.$encoding()["$=="](s(P,"UTF_8"))?d(n,"map",[],(l=function(t){l.$$s;return null==t&&(t=o),t.$rstrip()},l.$$s=f,l.$$arity=1,l)):d(n,"map",[],(u=function(t){u.$$s;return null==t&&(t=o),t.$encode(s(P,"UTF_8")).$rstrip()},u.$$s=f,u.$$arity=1,u)))},$.$$arity=1),t.def(T,"$prepare_source_string",m=function(t){var e,n=this,r=o,i=o;return c(t["$nil_or_empty?"]())?[]:((r=(i=t.$unpack("C3")).$slice(0,2))["$=="](s(P,"BOM_BYTES_UTF_16LE"))?t=t.$byteslice(2,t.$bytesize()).$encode(s(P,"UTF_8"),a(a("::","Encoding"),"UTF_16LE")):r["$=="](s(P,"BOM_BYTES_UTF_16BE"))?t=t.$byteslice(2,t.$bytesize()).$encode(s(P,"UTF_8"),a(a("::","Encoding"),"UTF_16BE")):i["$=="](s(P,"BOM_BYTES_UTF_8"))?(t=t.$byteslice(3,t.$bytesize()),t.$encoding()["$=="](s(P,"UTF_8"))||(t=t.$encode(s(P,"UTF_8")))):c(t.$encoding()["$!="](s(P,"UTF_8")))&&(t=t.$encode(s(P,"UTF_8"))),d([],"tap",[],(e=function(n){var r,i=e.$$s||this;return null==n&&(n=o),d(t,"each_line",[],(r=function(t){r.$$s;return null==t&&(t=o),n["$<<"](t.$rstrip())},r.$$s=i,r.$$arity=1,r))},e.$$s=n,e.$$arity=1,e)))},m.$$arity=1),t.def(T,"$uriish?",g=function(t){var e;return c(e=t["$include?"](":"))?s(P,"UriSniffRx")["$match?"](t):e},g.$$arity=1),s(P,"RUBY_ENGINE")["$=="]("opal")&&t.def(T,"$encode_uri_component",v=function(t){return encodeURIComponent(t).replace(/%20|[!'()*]/g,(function(t){return"%20"===t?"+":"%"+t.charCodeAt(0).toString(16)}))},v.$$arity=1),t.def(T,"$encode_spaces_in_uri",y=function(t){return c(t["$include?"](" "))?t.$gsub(" ","%20"):t},y.$$arity=1),t.def(T,"$rootname",_=function(t){var e=o;return c(e=t.$rindex("."))?c(t.$index("/",e))?t:t.$slice(0,e):t},_.$$arity=1),t.def(T,"$basename",b=function(t,e){var n=this;return null==e&&(e=o),c(e)?a("::","File").$basename(t,function(){return e["$=="](!0)?n.$extname(t):e}()):a("::","File").$basename(t)},b.$$arity=-2),t.def(T,"$extname?",w=function(t){var e,n=o;return c(e=n=t.$rindex("."))?t.$index("/",n)["$!"]():e},w.$$arity=1),c(a(a("::","File"),"ALT_SEPARATOR"))?t.def(T,"$extname",x=function(t,e){var n,r=o;return null==e&&(e=""),c(r=t.$rindex("."))?c(c(n=t.$index("/",r))?n:t.$index(a(a("::","File"),"ALT_SEPARATOR"),r))?e:t.$slice(r,t.$length()):e},x.$$arity=-2):t.def(T,"$extname",k=function(t,e){var n=o;return null==e&&(e=""),c(n=t.$rindex("."))?c(t.$index("/",n))?e:t.$slice(n,t.$length()):e},k.$$arity=-2),t.def(T,"$mkdir_p",S=function(e){var n=this,r=o;if(c(a("::","File")["$directory?"](e)))return o;(r=a("::","File").$dirname(e))["$=="](".")||n.$mkdir_p(r);try{return a("::","Dir").$mkdir(e)}catch(i){if(!t.rescue(i,[a("::","SystemCallError")]))throw i;try{return c(a("::","File")["$directory?"](e))?o:n.$raise()}finally{t.pop_exception()}}},S.$$arity=1),t.const_set(P[0],"ROMAN_NUMERALS",f(["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"],{M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1})),T.$private_constant("ROMAN_NUMERALS"),t.def(T,"$int_to_roman",O=function(e){var r,i=this;return d(s(P,"ROMAN_NUMERALS"),"map",[],(r=function(i,a){r.$$s;var s,l,c=o;return null==i&&(i=o),null==a&&(a=o),l=e.$divmod(a),s=t.to_ary(l),c=null==s[0]?o:s[0],e=null==s[1]?o:s[1],n(i,c)},r.$$s=i,r.$$arity=2,r)).$join()},O.$$arity=1),t.def(T,"$nextval",C=function(t){var e=o;return c(a("::","Integer")["$==="](t))?r(t,1):(e=t.$to_i(),c(e.$to_s()["$!="](t.$to_s()))?r(t["$[]"](0).$ord(),1).$chr():r(e,1))},C.$$arity=1),t.def(T,"$resolve_class",A=function(t){var e=this;return c(a("::","Class")["$==="](t))?t:c(a("::","String")["$==="](t))?e.$class_for_name(t):o},A.$$arity=1),t.def(T,"$class_for_name",E=function(e){var n=this,r=o;try{return c(a("::","Class")["$==="](r=a("::","Object").$const_get(e,!1)))||n.$raise(),r}catch(i){if(!t.rescue(i,[s(P,"StandardError")]))throw i;try{return n.$raise(a("::","NameError"),"Could not resolve class for name: "+e)}finally{t.pop_exception()}}},E.$$arity=1)})($[0],$)}(i[0],i)},Opal.modules["logger"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t<=e:t["$<="](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?te:t["$>"](e)}var r=t.top,i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.module),c=t.klass,u=t.send,d=t.truthy,f=t.hash2,h=t.gvars;return t.add_stubs(["$require","$attr_reader","$progname=","$-","$new","$formatter=","$level=","$>","$[]","$===","$inspect","$tap","$each","$constants","$const_get","$[]=","$<<","$clear","$empty?","$max","$map","$attr_accessor","$memoize_logger","$private","$private_class_method","$extend","$logger","$merge"]),r.$require("logger"),function(r,i){var p=l(r,"Asciidoctor"),$=[p].concat(i);(function(r,i,h){var p,$,m=c(r,i,"Logger"),g=[m].concat(h);m.$$prototype.max_severity=o,m.$attr_reader("max_severity"),t.def(m,"$initialize",p=function(n){var r,i=p.$$p,a=this,l=o,c=o,d=o,f=o;for(i&&(p.$$p=null),d=0,f=arguments.length,c=new Array(f);d]+)>)?$")),t.const_set($[0],"AuthorDelimiterRx",/;(?: |$)/),t.const_set($[0],"RevisionInfoLineRx",new RegExp("^(?:[^\\d{]*("+o($,"CC_ANY")+"*?),)? *(?!:)("+o($,"CC_ANY")+"*?)(?: *(?!^),?: *("+o($,"CC_ANY")+"*))?$")),t.const_set($[0],"ManpageTitleVolnumRx",new RegExp("^("+o($,"CC_ANY")+"+?) *\\( *("+o($,"CC_ANY")+"+?) *\\)$")),t.const_set($[0],"ManpageNamePurposeRx",new RegExp("^("+o($,"CC_ANY")+"+?) +- +("+o($,"CC_ANY")+"+)$")),t.const_set($[0],"ConditionalDirectiveRx",new RegExp("^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[("+o($,"CC_ANY")+"+)?\\]$")),t.const_set($[0],"EvalExpressionRx",new RegExp("^("+o($,"CC_ANY")+"+?) *([=!><]=|[><]) *("+o($,"CC_ANY")+"+)$")),t.const_set($[0],"IncludeDirectiveRx",new RegExp("^(\\\\)?include::([^\\[][^\\[]*)\\[("+o($,"CC_ANY")+"+)?\\]$")),t.const_set($[0],"TagDirectiveRx",/\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m),t.const_set($[0],"AttributeEntryRx",new RegExp("^:(!?"+o($,"CG_WORD")+"[^:]*):(?:[ \\t]+("+o($,"CC_ANY")+"*))?$")),t.const_set($[0],"InvalidAttributeNameCharsRx",new RegExp("[^"+o($,"CC_WORD")+"-]")),o($,"RUBY_ENGINE")["$=="]("opal")&&t.const_set($[0],"AttributeEntryPassMacroRx",new RegExp("^pass:([a-z]+(?:,[a-z-]+)*)?\\[("+o($,"CC_ALL")+"*)\\]$")),t.const_set($[0],"AttributeReferenceRx",new RegExp("(\\\\)?\\{("+o($,"CG_WORD")+"["+o($,"CC_WORD")+"-]*|(set|counter2?):"+o($,"CC_ANY")+"+?)(\\\\)?\\}")),t.const_set($[0],"BlockAnchorRx",new RegExp("^\\[\\[(?:|(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+))?)\\]\\]$")),t.const_set($[0],"BlockAttributeListRx",new RegExp("^\\[(|["+o($,"CC_WORD")+".#%{,\"']"+o($,"CC_ANY")+"*)\\]$")),t.const_set($[0],"BlockAttributeLineRx",new RegExp("^\\[(?:|["+o($,"CC_WORD")+".#%{,\"']"+o($,"CC_ANY")+"*|\\[(?:|["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*(?:, *"+o($,"CC_ANY")+"+)?)\\])\\]$")),t.const_set($[0],"BlockTitleRx",new RegExp("^\\.(\\.?[^ \\t.]"+o($,"CC_ANY")+"*)$")),t.const_set($[0],"AdmonitionParagraphRx",new RegExp("^("+o($,"ADMONITION_STYLES").$to_a().$join("|")+"):[ \\t]+")),t.const_set($[0],"LiteralParagraphRx",new RegExp("^([ \\t]+"+o($,"CC_ANY")+"*)$")),t.const_set($[0],"AtxSectionTitleRx",new RegExp("^(=={0,5})[ \\t]+("+o($,"CC_ANY")+"+?)(?:[ \\t]+\\1)?$")),t.const_set($[0],"ExtAtxSectionTitleRx",new RegExp("^(=={0,5}|#\\#{0,5})[ \\t]+("+o($,"CC_ANY")+"+?)(?:[ \\t]+\\1)?$")),t.const_set($[0],"SetextSectionTitleRx",new RegExp("^((?!\\.)"+o($,"CC_ANY")+"*?"+o($,"CG_ALNUM")+o($,"CC_ANY")+"*)$")),t.const_set($[0],"InlineSectionAnchorRx",new RegExp(" (\\\\)?\\[\\[(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+))?\\]\\]$")),t.const_set($[0],"InvalidSectionIdCharsRx",new RegExp("<[^>]+>|&(?:[a-z][a-z]+\\d{0,2}|#\\d\\d\\d{0,4}|#x[\\da-f][\\da-f][\\da-f]{0,3});|[^ "+o($,"CC_WORD")+"\\-.]+?")),t.const_set($[0],"SectionLevelStyleRx",/^sect\d$/),t.const_set($[0],"AnyListRx",new RegExp("^(?:[ \\t]*(?:-|\\*\\**|\\.\\.*|\\u2022|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]|(?!//[^/])[ \\t]*[^ \\t]"+o($,"CC_ANY")+"*?(?::::{0,2}|;;)(?:$|[ \\t])|[ \\t])")),t.const_set($[0],"UnorderedListRx",new RegExp("^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+("+o($,"CC_ANY")+"*)$")),t.const_set($[0],"OrderedListRx",new RegExp("^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+("+o($,"CC_ANY")+"*)$")),t.const_set($[0],"OrderedListMarkerRxMap",s(["arabic","loweralpha","lowerroman","upperalpha","upperroman"],{arabic:/\d+\./,loweralpha:/[a-z]\./,lowerroman:/[ivx]+\)/,upperalpha:/[A-Z]\./,upperroman:/[IVX]+\)/})),t.const_set($[0],"DescriptionListRx",new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+o($,"CC_ANY")+"*?)(:::{0,2}|;;)(?:$|[ \\t]+("+o($,"CC_ANY")+"*)$)")),t.const_set($[0],"DescriptionListSiblingRx",s(["::",":::","::::",";;"],{"::":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+o($,"CC_ANY")+"*?[^:]|[^ \\t:])(::)(?:$|[ \\t]+("+o($,"CC_ANY")+"*)$)"),":::":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+o($,"CC_ANY")+"*?[^:]|[^ \\t:])(:::)(?:$|[ \\t]+("+o($,"CC_ANY")+"*)$)"),"::::":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+o($,"CC_ANY")+"*?[^:]|[^ \\t:])(::::)(?:$|[ \\t]+("+o($,"CC_ANY")+"*)$)"),";;":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+o($,"CC_ANY")+"*?)(;;)(?:$|[ \\t]+("+o($,"CC_ANY")+"*)$)")})),t.const_set($[0],"CalloutListRx",new RegExp("^<(\\d+|\\.)>[ \\t]+("+o($,"CC_ANY")+"*)$")),t.const_set($[0],"CalloutExtractRx",/((?:\/\/|#|--|;;) ?)?(\\)?(?=(?: ?\\?)*$)/),t.const_set($[0],"CalloutExtractRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)"),t.const_set($[0],"CalloutExtractRxMap",l(i("::","Hash"),"new",[],(f=function(n,a){f.$$s;var s=r;return null==n&&(n=r),null==a&&(a=r),s=[a,new RegExp("("+function(){return c(a["$empty?"]())?"":i("::","Regexp").$escape(a)+" ?"}()+")?"+o($,"CalloutExtractRxt"))],l(n,"[]=",t.to_a(s)),s[e(s["length"],1)]},f.$$s=p,f.$$arity=2,f))),t.const_set($[0],"CalloutScanRx",new RegExp("\\\\?(?=(?: ?\\\\?)*"+o($,"CC_EOL")+")")),t.const_set($[0],"CalloutSourceRx",new RegExp("((?://|#|--|;;) ?)?(\\\\)?<!?(|--)(\\d+|\\.)\\3>(?=(?: ?\\\\?<!?\\3(?:\\d+|\\.)\\3>)*"+o($,"CC_EOL")+")")),t.const_set($[0],"CalloutSourceRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*"+o($,"CC_EOL")+")"),t.const_set($[0],"CalloutSourceRxMap",l(i("::","Hash"),"new",[],(h=function(n,a){h.$$s;var s=r;return null==n&&(n=r),null==a&&(a=r),s=[a,new RegExp("("+function(){return c(a["$empty?"]())?"":i("::","Regexp").$escape(a)+" ?"}()+")?"+o($,"CalloutSourceRxt"))],l(n,"[]=",t.to_a(s)),s[e(s["length"],1)]},h.$$s=p,h.$$arity=2,h))),t.const_set($[0],"ListRxMap",s(["ulist","olist","dlist","colist"],{ulist:o($,"UnorderedListRx"),olist:o($,"OrderedListRx"),dlist:o($,"DescriptionListRx"),colist:o($,"CalloutListRx")})),t.const_set($[0],"ColumnSpecRx",/^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/),t.const_set($[0],"CellSpecStartRx",/^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),t.const_set($[0],"CellSpecEndRx",/[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),t.const_set($[0],"CustomBlockMacroRx",new RegExp("^("+o($,"CG_WORD")+"["+o($,"CC_WORD")+"-]*)::(|\\S|\\S"+o($,"CC_ANY")+"*?\\S)\\[("+o($,"CC_ANY")+"+)?\\]$")),t.const_set($[0],"BlockMediaMacroRx",new RegExp("^(image|video|audio)::(\\S|\\S"+o($,"CC_ANY")+"*?\\S)\\[("+o($,"CC_ANY")+"+)?\\]$")),t.const_set($[0],"BlockTocMacroRx",new RegExp("^toc::\\[("+o($,"CC_ANY")+"+)?\\]$")),t.const_set($[0],"InlineAnchorRx",new RegExp("(\\\\)?(?:\\[\\[(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+?))?\\]\\]|anchor:(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)\\[(?:\\]|("+o($,"CC_ANY")+"*?[^\\\\])\\]))")),t.const_set($[0],"InlineAnchorScanRx",new RegExp("(?:^|[^\\\\\\[])\\[\\[(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+?))?\\]\\]|(?:^|[^\\\\])anchor:(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)\\[(?:\\]|("+o($,"CC_ANY")+"*?[^\\\\])\\])")),t.const_set($[0],"LeadingInlineAnchorRx",new RegExp("^\\[\\[(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+?))?\\]\\]")),t.const_set($[0],"InlineBiblioAnchorRx",new RegExp("^\\[\\[\\[(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+?))?\\]\\]\\]")),t.const_set($[0],"InlineEmailRx",new RegExp("([\\\\>:/])?"+o($,"CG_WORD")+"(?:&|["+o($,"CC_WORD")+"\\-.%+])*@"+o($,"CG_ALNUM")+"["+o($,"CC_ALNUM")+"_\\-.]*\\.[a-zA-Z]{2,5}\\b")),t.const_set($[0],"InlineFootnoteMacroRx",new RegExp("\\\\?footnote(?:(ref):|:(["+o($,"CC_WORD")+"-]+)?)\\[(?:|("+o($,"CC_ALL")+"*?[^\\\\]))\\]","m")),t.const_set($[0],"InlineImageMacroRx",new RegExp("\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|"+o($,"CC_ALL")+"*?[^\\\\])\\]","m")),t.const_set($[0],"InlineIndextermMacroRx",new RegExp("\\\\?(?:(indexterm2?):\\[("+o($,"CC_ALL")+"*?[^\\\\])\\]|\\(\\(("+o($,"CC_ALL")+"+?)\\)\\)(?!\\)))","m")),t.const_set($[0],"InlineKbdBtnMacroRx",new RegExp("(\\\\)?(kbd|btn):\\[("+o($,"CC_ALL")+"*?[^\\\\])\\]","m")),t.const_set($[0],"InlineLinkRx",new RegExp("(^|link:|"+o($,"CG_BLANK")+"|<|[>\\(\\)\\[\\];])(\\\\?(?:https?|file|ftp|irc)://[^\\s\\[\\]<]*([^\\s.,\\[\\]<]))(?:\\[(|"+o($,"CC_ALL")+"*?[^\\\\])\\])?","m")),t.const_set($[0],"InlineLinkMacroRx",new RegExp("\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|"+o($,"CC_ALL")+"*?[^\\\\])\\]","m")),t.const_set($[0],"MacroNameRx",new RegExp("^"+o($,"CG_WORD")+"["+o($,"CC_WORD")+"-]*$")),t.const_set($[0],"InlineStemMacroRx",new RegExp("\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[("+o($,"CC_ALL")+"*?[^\\\\])\\]","m")),t.const_set($[0],"InlineMenuMacroRx",new RegExp("\\\\?menu:("+o($,"CG_WORD")+"|["+o($,"CC_WORD")+"&][^\\n\\[]*[^\\s\\[])\\[ *(?:|("+o($,"CC_ALL")+"*?[^\\\\]))?\\]","m")),t.const_set($[0],"InlineMenuRx",new RegExp('\\\\?"(['+o($,"CC_WORD")+'&][^"]*?[ \\n]+>[ \\n]+[^"]*)"')),t.const_set($[0],"InlinePassRx",u(!1,["+","`",new RegExp("(^|[^"+o($,"CC_WORD")+";:])(?:\\[([^\\]]+)\\])?(\\\\?(\\+|`)(\\S|\\S"+o($,"CC_ALL")+"*?\\S)\\4)(?!"+o($,"CG_WORD")+")","m")],!0,["`",r,new RegExp("(^|[^`"+o($,"CC_WORD")+"])(?:\\[([^\\]]+)\\])?(\\\\?(`)([^`\\s]|[^`\\s]"+o($,"CC_ALL")+"*?\\S)\\4)(?![`"+o($,"CC_WORD")+"])","m")])),t.const_set($[0],"SinglePlusInlinePassRx",new RegExp("^(\\\\)?\\+(\\S|\\S"+o($,"CC_ALL")+"*?\\S)\\+$","m")),t.const_set($[0],"InlinePassMacroRx",new RegExp("(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)("+o($,"CC_ALL")+"*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|"+o($,"CC_ALL")+"*?[^\\\\])\\])","m")),t.const_set($[0],"InlineXrefMacroRx",new RegExp("\\\\?(?:<<(["+o($,"CC_WORD")+"#/.:{]"+o($,"CC_ALL")+"*?)>>|xref:(["+o($,"CC_WORD")+"#/.:{]"+o($,"CC_ALL")+"*?)\\[(?:\\]|("+o($,"CC_ALL")+"*?[^\\\\])\\]))","m")),o($,"RUBY_ENGINE")["$=="]("opal")&&t.const_set($[0],"HardLineBreakRx",new RegExp("^("+o($,"CC_ANY")+"*) \\+$","m")),t.const_set($[0],"MarkdownThematicBreakRx",/^ {0,3}([-*_])( *)\1\2\1$/),t.const_set($[0],"ExtLayoutBreakRx",/^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/),t.const_set($[0],"BlankLineRx",/\n{2,}/),t.const_set($[0],"EscapedSpaceRx",/\\([ \t\n])/),t.const_set($[0],"ReplaceableTextRx",/[&']|--|\.\.\.|\([CRT]M?\)/),t.const_set($[0],"SpaceDelimiterRx",/([^\\])[ \t\n]+/),t.const_set($[0],"SubModifierSniffRx",/[+-]/),t.const_set($[0],"TrailingDigitsRx",/\d+$/),t.const_set($[0],"UriSniffRx",new RegExp("^"+o($,"CG_ALPHA")+"["+o($,"CC_ALNUM")+".+-]+:/{0,2}")),t.const_set($[0],"XmlSanitizeRx",/<[^>]+>/)}(n[0],n)},Opal.modules["asciidoctor/substitutors"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t","$index","$min","$compact","$end_with?","$map","$chop","$new","$pop","$rstrip","$register","$tr","$basename","$parse","$<<","$lstrip","$split_simple_csv","$partition","$sub","$encode_uri_component","$style","$parse_into","$extname?","$rindex","$info?","$catalog","$fetch","$outfilesuffix","$natural_xrefs","$resolve_id","$find","$footnotes","$id","$<","$size","$attr?","$attr","$to_s","$read_next_id","$callouts","$syntax_highlighter","$highlight?","$sub_source","$extract_callouts","$name","$to_sym","$to_i","$resolve_lines_to_highlight","$highlight","$nil_or_empty?","$restore_callouts","$count","$to_a","$concat","$uniq","$sort","$*","$parse_quoted_text_attributes","$resolve_pass_subs","$extract_inner_passthrough","$basebackend?","$error","$chr","$drop","$&","$resolve_subs","$resolve_block_subs","$private","$=~","$shorthand_property_syntax","$each_char"]),function(a,g){var v=d(a,"Asciidoctor"),y=[v].concat(g);(function(a,g){var v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y=d(a,"Substitutors"),K=[Y].concat(g);t.const_set(K[0],"SpecialCharsRx",/[<&>]/),t.const_set(K[0],"SpecialCharsTr",f([">","<","&"],{">":">","<":"<","&":"&"})),t.const_set(K[0],"QuotedTextSniffRx",h(!1,/[*_`#^~]/,!0,/[*'_+#^~]/)),t.const_set(K[0],"BASIC_SUBS",["specialcharacters"]).$freeze(),t.const_set(K[0],"HEADER_SUBS",["specialcharacters","attributes"]).$freeze(),t.const_set(K[0],"NO_SUBS",[]).$freeze(),t.const_set(K[0],"NORMAL_SUBS",["specialcharacters","quotes","attributes","replacements","macros","post_replacements"]).$freeze(),t.const_set(K[0],"REFTEXT_SUBS",["specialcharacters","quotes","replacements"]).$freeze(),t.const_set(K[0],"VERBATIM_SUBS",["specialcharacters","callouts"]).$freeze(),t.const_set(K[0],"SUB_GROUPS",f(["none","normal","verbatim","specialchars"],{none:c(K,"NO_SUBS"),normal:c(K,"NORMAL_SUBS"),verbatim:c(K,"VERBATIM_SUBS"),specialchars:c(K,"BASIC_SUBS")})),t.const_set(K[0],"SUB_HINTS",f(["a","m","n","p","q","r","c","v"],{a:"attributes",m:"macros",n:"normal",p:"post_replacements",q:"quotes",r:"replacements",c:"specialcharacters",v:"verbatim"})),t.const_set(K[0],"SUB_OPTIONS",f(["block","inline"],{block:e(e(c(K,"SUB_GROUPS").$keys(),c(K,"NORMAL_SUBS")),["callouts"]),inline:e(c(K,"SUB_GROUPS").$keys(),c(K,"NORMAL_SUBS"))})),t.const_set(K[0],"CAN",""),t.const_set(K[0],"DEL",""),t.const_set(K[0],"PASS_START","–"),t.const_set(K[0],"PASS_END","—"),t.const_set(K[0],"PassSlotRx",new RegExp(c(K,"PASS_START")+"(\\d+)"+c(K,"PASS_END"))),t.const_set(K[0],"HighlightedPassSlotRx",new RegExp("]*>"+c(K,"PASS_START")+"[^\\d]*(\\d+)[^\\d]*]*>"+c(K,"PASS_END")+"")),t.const_set(K[0],"RS","\\"),t.const_set(K[0],"R_SB","]"),t.const_set(K[0],"ESC_R_SB","\\]"),t.const_set(K[0],"PLUS","+"),t.def(Y,"$apply_subs",v=function(t,e){var n,r,i=this,o=s,a=s,u=s;return null==i.passthroughs&&(i.passthroughs=s),null==i.passthroughs_locked&&(i.passthroughs_locked=s),null==e&&(e=c(K,"NORMAL_SUBS")),p(p(n=t["$empty?"]())?n:e["$!"]())?t:(p(o=l("::","Array")["$==="](t))&&(t=function(){return p(t["$[]"](1))?t.$join(c(K,"LF")):t["$[]"](0)}()),p(e["$include?"]("macros"))&&(t=i.$extract_passthroughs(t),p(i.passthroughs["$empty?"]())||(a=i.passthroughs,i.passthroughs_locked=p(n=i.passthroughs_locked)?n:u=!0)),$(e,"each",[],(r=function(n){var i=r.$$s||this,o=s;return null==n&&(n=s),function(){return o=n,"specialcharacters"["$==="](o)?t=i.$sub_specialchars(t):"quotes"["$==="](o)?t=i.$sub_quotes(t):"attributes"["$==="](o)?p(t["$include?"](c(K,"ATTR_REF_HEAD")))?t=i.$sub_attributes(t):s:"replacements"["$==="](o)?t=i.$sub_replacements(t):"macros"["$==="](o)?t=i.$sub_macros(t):"highlight"["$==="](o)?t=i.$highlight_source(t,e["$include?"]("callouts")):"callouts"["$==="](o)?p(e["$include?"]("highlight"))?s:t=i.$sub_callouts(t):"post_replacements"["$==="](o)?t=i.$sub_post_replacements(t):i.$logger().$warn("unknown substitution type "+n)}()},r.$$s=i,r.$$arity=1,r)),p(a)&&(t=i.$restore_passthroughs(t),p(u)&&(a.$clear(),i.passthroughs_locked=s)),p(o)?t.$split(c(K,"LF"),-1):t)},v.$$arity=-2),t.def(Y,"$apply_normal_subs",y=function(t){var e=this;return e.$apply_subs(t,c(K,"NORMAL_SUBS"))},y.$$arity=1),t.def(Y,"$apply_header_subs",_=function(t){var e=this;return e.$apply_subs(t,c(K,"HEADER_SUBS"))},_.$$arity=1),t.alias(Y,"apply_title_subs","apply_subs"),t.def(Y,"$apply_reftext_subs",b=function(t){var e=this;return e.$apply_subs(t,c(K,"REFTEXT_SUBS"))},b.$$arity=1),c(K,"RUBY_ENGINE")["$=="]("opal")&&t.def(Y,"$sub_specialchars",w=function(t){var e,n;return p(p(e=p(n=t["$include?"](">"))?n:t["$include?"]("&"))?e:t["$include?"]("<"))?t.$gsub(c(K,"SpecialCharsRx"),c(K,"SpecialCharsTr")):t},w.$$arity=1),t.alias(Y,"sub_specialcharacters","sub_specialchars"),t.def(Y,"$sub_quotes",x=function(t){var e,n=this,r=s;return null==n.document&&(n.document=s),p(c(K,"QuotedTextSniffRx")["$[]"](r=n.document.$compat_mode())["$match?"](t))&&$(c(K,"QUOTE_SUBS")["$[]"](r),"each",[],(e=function(n,r,i){var o,a=e.$$s||this;return null==n&&(n=s),null==r&&(r=s),null==i&&(i=s),t=$(t,"gsub",[i],(o=function(){var t=o.$$s||this;return null==m["~"]&&(m["~"]=s),t.$convert_quoted_text(m["~"],n,r)},o.$$s=a,o.$$arity=0,o))},e.$$s=n,e.$$arity=3,e)),t},x.$$arity=1),t.def(Y,"$sub_attributes",k=function(e,n){var r,i,o,a,l=this,u=s,d=s,h=s,g=s,v=s,y=s,_=s,b=s;return null==l.document&&(l.document=s),null==n&&(n=f([],{})),u=l.document.$attributes(),d=h=g=v=y=_=s,e=$(e,"gsub",[c(K,"AttributeReferenceRx")],(r=function(){var e,i,o,a,l=r.$$s||this,f=s,b=s,w=s,x=s;return null==l.document&&(l.document=s),p(p(e=((i=m["~"])===s?s:i["$[]"](1))["$=="](c(K,"RS")))?e:((i=m["~"])===s?s:i["$[]"](4))["$=="](c(K,"RS")))?"{"+((e=m["~"])===s?s:e["$[]"](2))+"}":p((e=m["~"])===s?s:e["$[]"](3))?function(){return f=(b=((e=m["~"])===s?s:e["$[]"](2)).$split(":",3)).$shift(),"set"["$==="](f)?(i=c(K,"Parser").$store_attribute(b["$[]"](0),p(o=b["$[]"](1))?o:"",l.document),e=t.to_ary(i),null==e[0]?s:e[0],w=null==e[1]?s:e[1],d=p(p(e=w)?e:(y=p(i=y)?i:p(o=u["$[]"]("attribute-undefined"))?o:c(K,"Compliance").$attribute_undefined())["$!="]("drop-line"))?v=c(K,"DEL"):h=c(K,"CAN")):"counter2"["$==="](f)?($(l.document,"counter",t.to_a(b)),d=v=c(K,"DEL")):$(l.document,"counter",t.to_a(b))}():p(u["$key?"](x=((e=m["~"])===s?s:e["$[]"](2)).$downcase()))?u["$[]"](x):p(w=c(K,"INTRINSIC_ATTRIBUTES")["$[]"](x))?w:function(){return f=_=p(e=_)?e:p(i=p(o=n["$[]"]("attribute_missing"))?o:u["$[]"]("attribute-missing"))?i:c(K,"Compliance").$attribute_missing(),"drop"["$==="](f)?d=v=c(K,"DEL"):"drop-line"["$==="](f)?((g=p(e=g)?e:p(i=n["$[]"]("drop_line_severity"))?i:"info")["$=="]("info")&&$(l.$logger(),"info",[],(a=function(){a.$$s;return"dropping line containing reference to missing attribute: "+x},a.$$s=l,a.$$arity=0,a)),d=h=c(K,"CAN")):"warn"["$==="](f)?(l.$logger().$warn("skipping reference to missing attribute: "+x),(e=m["~"])===s?s:e["$[]"](0)):(e=m["~"])===s?s:e["$[]"](0)}()},r.$$s=l,r.$$arity=0,r)),p(d)?p(v)?(b=e.$squeeze(c(K,"DEL")).$split(c(K,"LF"),-1),p(h)?$(b,"reject",[],(i=function(t){var e,n,r;i.$$s;return null==t&&(t=s),p(e=p(n=p(r=t["$=="](c(K,"DEL")))?r:t["$=="](c(K,"CAN")))?n:t["$start_with?"](c(K,"CAN")))?e:t["$include?"](c(K,"CAN"))},i.$$s=l,i.$$arity=1,i)).$join(c(K,"LF")).$delete(c(K,"DEL")):$(b,"reject",[],(o=function(t){o.$$s;return null==t&&(t=s),t["$=="](c(K,"DEL"))},o.$$s=l,o.$$arity=1,o)).$join(c(K,"LF")).$delete(c(K,"DEL"))):p(e["$include?"](c(K,"LF")))?$(e.$split(c(K,"LF"),-1),"reject",[],(a=function(t){var e,n;a.$$s;return null==t&&(t=s),p(e=p(n=t["$=="](c(K,"CAN")))?n:t["$start_with?"](c(K,"CAN")))?e:t["$include?"](c(K,"CAN"))},a.$$s=l,a.$$arity=1,a)).$join(c(K,"LF")):"":e},k.$$arity=-2),t.def(Y,"$sub_replacements",S=function(t){var e,n=this;return p(c(K,"ReplaceableTextRx")["$match?"](t))&&$(c(K,"REPLACEMENTS"),"each",[],(e=function(n,r,i){var o,a=e.$$s||this;return null==n&&(n=s),null==r&&(r=s),null==i&&(i=s),t=$(t,"gsub",[n],(o=function(){var t=o.$$s||this;return null==m["~"]&&(m["~"]=s),t.$do_replacement(m["~"],r,i)},o.$$s=a,o.$$arity=0,o))},e.$$s=n,e.$$arity=3,e)),t},S.$$arity=1),t.def(Y,"$sub_macros",O=function(i){var o,a,d,h,g,v,y,_,b,w,x,k,S,O,C,A=this,E=s,T=s,P=s,B=s,L=s,I=s,D=s;return null==A.document&&(A.document=s),null==A.context&&(A.context=s),null==A.parent&&(A.parent=s),E=i["$include?"]("["),T=i["$include?"](":"),P=p(o=E)?T:o,B=p(o=P)?i["$include?"](":["):o,L=(I=A.document).$attributes(),p(p(o=D=I.$extensions())?D["$inline_macros?"]():o)&&$(D.$inline_macros(),"each",[],(a=function(e){var r,o=a.$$s||this;return null==e&&(e=s),i=$(i,"gsub",[e.$instance().$regexp()],(r=function(){var i,o,a=r.$$s||this,l=s,u=s,d=s,h=s,g=s,v=s,y=s,_=s,b=s;return null==m["~"]&&(m["~"]=s),p((l=(i=m["~"])===s?s:i["$[]"](0))["$start_with?"](c(K,"RS")))?((i=m["~"])===s?s:i["$[]"](0)).$slice(1,((i=m["~"])===s?s:i["$[]"](0)).$length()):(p(m["~"].$names()["$empty?"]())?(i=[(o=m["~"])===s?s:o["$[]"](1),(o=m["~"])===s?s:o["$[]"](2)],u=i[0],d=i[1]):(i=[function(){try{return m["~"]["$[]"]("target")}catch(e){if(!t.rescue(e,[c(K,"StandardError")]))throw e;try{return s}finally{t.pop_exception()}}}(),function(){try{return m["~"]["$[]"]("content")}catch(e){if(!t.rescue(e,[c(K,"StandardError")]))throw e;try{return s}finally{t.pop_exception()}}}()],u=i[0],d=i[1]),h=function(){return p(g=(v=e.$config())["$[]"]("default_attrs"))?g.$merge():f([],{})}(),p(d)&&(p(d["$empty?"]())?v["$[]"]("content_model")["$=="]("attributes")||(y=["text",d],$(h,"[]=",t.to_a(y)),y[n(y["length"],1)]):(d=a.$normalize_text(d,!0,!0),v["$[]"]("content_model")["$=="]("attributes")?a.$parse_attributes(d,p(i=p(o=v["$[]"]("positional_attrs"))?o:v["$[]"]("pos_attrs"))?i:[],f(["into"],{into:h})):(y=["text",d],$(h,"[]=",t.to_a(y)),y[n(y["length"],1)])),u=p(i=u)?i:function(){return v["$[]"]("format")["$=="]("short")?d:u}()),p(c(K,"Inline")["$==="](_=e.$process_method()["$[]"](a,u,h)))?(p(b=_.$attributes().$delete("subs"))&&(y=[a.$apply_subs(_.$text(),a.$expand_subs(b))],$(_,"text=",t.to_a(y)),y[n(y["length"],1)]),_.$convert()):p(_)?(a.$logger().$info("expected substitution value for custom inline macro to be of type Inline; got "+_.$class()+": "+l),_):"")},r.$$s=o,r.$$arity=0,r))},a.$$s=A,a.$$arity=1,a)),p(L["$key?"]("experimental"))&&(p(p(o=B)?p(d=i["$include?"]("kbd:"))?d:i["$include?"]("btn:"):o)&&(i=$(i,"gsub",[c(K,"InlineKbdBtnMacroRx")],(h=function(){var i,o,a,l=h.$$s||this,u=s,d=s,g=s,v=s;return p((i=m["~"])===s?s:i["$[]"](1))?((i=m["~"])===s?s:i["$[]"](0)).$slice(1,((i=m["~"])===s?s:i["$[]"](0)).$length()):((i=m["~"])===s?s:i["$[]"](2))["$=="]("kbd")?(p((u=((i=m["~"])===s?s:i["$[]"](3)).$strip())["$include?"](c(K,"R_SB")))&&(u=u.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB"))),p(p(i=r(u.$length(),1))?d=function(){return p(d=u.$index(",",1))?[d,u.$index("+",1)].$compact().$min():u.$index("+",1)}():i)?(g=u.$slice(d,1),p(u["$end_with?"](g))?(u=$(u.$chop().$split(g,-1),"map",[],(o=function(t){o.$$s;return null==t&&(t=s),t.$strip()},o.$$s=l,o.$$arity=1,o)),v=[-1,e(u["$[]"](-1),g)],$(u,"[]=",t.to_a(v)),v[n(v["length"],1)]):u=$(u.$split(g),"map",[],(a=function(t){a.$$s;return null==t&&(t=s),t.$strip()},a.$$s=l,a.$$arity=1,a))):u=[u],c(K,"Inline").$new(l,"kbd",s,f(["attributes"],{attributes:f(["keys"],{keys:u})})).$convert()):c(K,"Inline").$new(l,"button",l.$normalize_text((i=m["~"])===s?s:i["$[]"](3),!0,!0)).$convert()},h.$$s=A,h.$$arity=0,h))),p(p(o=P)?i["$include?"]("menu:"):o)&&(i=$(i,"gsub",[c(K,"InlineMenuMacroRx")],(g=function(){var t,e,n=g.$$s||this,r=s,i=s,o=s,a=s,l=s;return p(((t=m["~"])===s?s:t["$[]"](0))["$start_with?"](c(K,"RS")))?((t=m["~"])===s?s:t["$[]"](0)).$slice(1,((t=m["~"])===s?s:t["$[]"](0)).$length()):(r=(t=m["~"])===s?s:t["$[]"](1),p(i=(t=m["~"])===s?s:t["$[]"](2))?(p(i["$include?"](c(K,"R_SB")))&&(i=i.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB"))),p(o=function(){return p(i["$include?"](">"))?">":p(i["$include?"](","))?",":s}())?(a=$(i.$split(o),"map",[],(e=function(t){e.$$s;return null==t&&(t=s),t.$strip()},e.$$s=n,e.$$arity=1,e)),l=a.$pop()):(t=[[],i.$rstrip()],a=t[0],l=t[1])):(t=[[],s],a=t[0],l=t[1]),c(K,"Inline").$new(n,"menu",s,f(["attributes"],{attributes:f(["menu","submenus","menuitem"],{menu:r,submenus:a,menuitem:l})})).$convert())},g.$$s=A,g.$$arity=0,g))),p(p(o=i["$include?"]('"'))?i["$include?"](">"):o)&&(i=$(i,"gsub",[c(K,"InlineMenuRx")],(v=function(){var e,n,r,i,o=v.$$s||this,a=s,l=s,d=s;return p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))?((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length()):(n=$(((r=m["~"])===s?s:r["$[]"](1)).$split(">"),"map",[],(i=function(t){i.$$s;return null==t&&(t=s),t.$strip()},i.$$s=o,i.$$arity=1,i)),e=t.to_ary(n),a=null==e[0]?s:e[0],l=u.call(e,1),d=l.$pop(),c(K,"Inline").$new(o,"menu",s,f(["attributes"],{attributes:f(["menu","submenus","menuitem"],{menu:a,submenus:l,menuitem:d})})).$convert())},v.$$s=A,v.$$arity=0,v)))),p(p(o=P)?p(d=i["$include?"]("image:"))?d:i["$include?"]("icon:"):o)&&(i=$(i,"gsub",[c(K,"InlineImageMacroRx")],(y=function(){var e,r=y.$$s||this,i=s,o=s,a=s,l=s,u=s;return p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))?((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length()):(p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"]("icon:"))?(e=["icon",["size"]],i=e[0],o=e[1]):(e=["image",["alt","width","height"]],i=e[0],o=e[1]),a=(e=m["~"])===s?s:e["$[]"](1),l=r.$parse_attributes((e=m["~"])===s?s:e["$[]"](2),o,f(["unescape_input"],{unescape_input:!0})),i["$=="]("icon")||(I.$register("images",a),u=["imagesdir",L["$[]"]("imagesdir")],$(l,"[]=",t.to_a(u)),u[n(u["length"],1)]),p(e=l["$[]"]("alt"))||(u=["alt",(u=["default-alt",c(K,"Helpers").$basename(a,!0).$tr("_-"," ")],$(l,"[]=",t.to_a(u)),u[n(u["length"],1)])],$(l,"[]=",t.to_a(u)),u[n(u["length"],1)]),c(K,"Inline").$new(r,"image",s,f(["type","target","attributes"],{type:i,target:a,attributes:l})).$convert())},y.$$s=A,y.$$arity=0,y))),p(p(o=p(d=i["$include?"]("(("))?i["$include?"]("))"):d)?o:p(d=B)?i["$include?"]("dexterm"):d)&&(i=$(i,"gsub",[c(K,"InlineIndextermMacroRx")],(_=function(){var e,r,o,a,l=_.$$s||this,d=s,h=s,g=s,v=s,y=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s;return function(){if(d=(e=m["~"])===s?s:e["$[]"](1),"indexterm"["$==="](d))return p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))?((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length()):(p((h=l.$normalize_text((e=m["~"])===s?s:e["$[]"](2),!0,!0))["$include?"]("="))?p(g=(v=c(K,"AttributeList").$new(h,l).$parse())["$[]"](1))?(y=["terms",b=[g]],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)],p(w=v["$[]"](2))&&(b["$<<"](w),p(x=v["$[]"](3))&&b["$<<"](x)),p(k=v["$[]"]("see-also"))&&(y=["see-also",function(){return p(k["$include?"](","))?$(k.$split(","),"map",[],(r=function(t){r.$$s;return null==t&&(t=s),t.$lstrip()},r.$$s=l,r.$$arity=1,r)):[k]}()],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)])):v=f(["terms"],{terms:b=h}):v=f(["terms"],{terms:b=l.$split_simple_csv(h)}),c(K,"Inline").$new(l,"indexterm",s,f(["attributes"],{attributes:v})).$convert());if("indexterm2"["$==="](d))return p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))?((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length()):(p((S=l.$normalize_text((e=m["~"])===s?s:e["$[]"](2),!0,!0))["$include?"]("="))&&(S=p(e=p(o=(v=c(K,"AttributeList").$new(S,l).$parse())["$[]"](1))?o:v=s)?e:S,p(p(e=v)?k=v["$[]"]("see-also"):e)&&(y=["see-also",function(){return p(k["$include?"](","))?$(k.$split(","),"map",[],(a=function(t){a.$$s;return null==t&&(t=s),t.$lstrip()},a.$$s=l,a.$$arity=1,a)):[k]}()],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)])),c(K,"Inline").$new(l,"indexterm",S,f(["attributes","type"],{attributes:v,type:"visible"})).$convert());if(i=(e=m["~"])===s?s:e["$[]"](3),p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))){if(!p(p(e=i["$start_with?"]("("))?i["$end_with?"](")"):e))return((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length());i=i.$slice(1,n(i.$length(),2)),e=[!0,"(",")"],O=e[0],C=e[1],A=e[2]}else O=!0,p(i["$start_with?"]("("))?p(i["$end_with?"](")"))?(e=[i.$slice(1,n(i.$length(),2)),!1],i=e[0],O=e[1]):(e=[i.$slice(1,i.$length()),"(",""],i=e[0],C=e[1],A=e[2]):p(i["$end_with?"](")"))&&(e=[i.$chop(),"",")"],i=e[0],C=e[1],A=e[2]);return p(O)?(p((S=l.$normalize_text(i,!0))["$include?"](";&"))&&(p(S["$include?"](" >> "))?(o=S.$partition(" >> "),e=t.to_ary(o),S=null==e[0]?s:e[0],null==e[1]?s:e[1],E=null==e[2]?s:e[2],v=f(["see"],{see:E})):p(S["$include?"](" &> "))&&(o=S.$split(" &> "),e=t.to_ary(o),S=null==e[0]?s:e[0],k=u.call(e,1),v=f(["see-also"],{"see-also":k}))),T=c(K,"Inline").$new(l,"indexterm",S,f(["attributes","type"],{attributes:v,type:"visible"})).$convert()):(v=f([],{}),p((b=l.$normalize_text(i,!0))["$include?"](";&"))&&(p(b["$include?"](" >> "))?(o=b.$partition(" >> "),e=t.to_ary(o),b=null==e[0]?s:e[0],null==e[1]?s:e[1],E=null==e[2]?s:e[2],y=["see",E],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)]):p(b["$include?"](" &> "))&&(o=b.$split(" &> "),e=t.to_ary(o),b=null==e[0]?s:e[0],k=u.call(e,1),y=["see-also",k],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)])),y=["terms",b=l.$split_simple_csv(b)],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)],T=c(K,"Inline").$new(l,"indexterm",s,f(["attributes"],{attributes:v})).$convert()),p(C)?""+C+T+A:T}()},_.$$s=A,_.$$arity=0,_))),p(p(o=T)?i["$include?"]("://"):o)&&(i=$(i,"gsub",[c(K,"InlineLinkRx")],(b=function(){var e,r,o=b.$$s||this,a=s,l=s,u=s,d=s,h=s,g=s,v=s;if(p((a=(e=m["~"])===s?s:e["$[]"](2))["$start_with?"](c(K,"RS"))))return""+((e=m["~"])===s?s:e["$[]"](1))+a.$slice(1,a.$length())+((e=m["~"])===s?s:e["$[]"](4));if(e=[(r=m["~"])===s?s:r["$[]"](1),""],l=e[0],u=e[1],p((e=m["~"])===s?s:e["$[]"](4)))l["$=="]("link:")&&(l=""),i=(e=m["~"])===s?s:e["$[]"](4);else{if(l["$=="]("link:"))return(e=m["~"])===s?s:e["$[]"](0);if(i="",d=(e=m["~"])===s?s:e["$[]"](3),")"["$==="](d)){if(a=a.$chop(),u=")",p(a["$end_with?"]("://")))return(e=m["~"])===s?s:e["$[]"](0)}else if(";"["$==="](d)){if(p(p(e=l["$start_with?"]("<"))?a["$end_with?"](">"):e)?(l=l.$slice(4,l.$length()),a=a.$slice(0,n(a.$length(),4))):p((a=a.$chop())["$end_with?"](")"))?(a=a.$chop(),u=");"):u=";",p(a["$end_with?"]("://")))return(e=m["~"])===s?s:e["$[]"](0)}else if(":"["$==="](d)&&(p((a=a.$chop())["$end_with?"](")"))?(a=a.$chop(),u="):"):u=":",p(a["$end_with?"]("://"))))return(e=m["~"])===s?s:e["$[]"](0)}return e=[s,f(["type"],{type:"link"})],h=e[0],g=e[1],p(i["$empty?"]())||(p(i["$include?"](c(K,"R_SB")))&&(i=i.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB"))),p(p(e=I.$compat_mode()["$!"]())?i["$include?"]("="):e)&&(i=p(e=(h=c(K,"AttributeList").$new(i,o).$parse())["$[]"](1))?e:"",v=["id",h["$[]"]("id")],$(g,"[]=",t.to_a(v)),v[n(v["length"],1)]),p(i["$end_with?"]("^"))&&(i=i.$chop(),p(h)?p(e=h["$[]"]("window"))||(v=["window","_blank"],$(h,"[]=",t.to_a(v)),v[n(v["length"],1)]):h=f(["window"],{window:"_blank"}))),p(i["$empty?"]())&&(i=function(){return p(L["$key?"]("hide-uri-scheme"))?a.$sub(c(K,"UriSniffRx"),""):a}(),p(h)?(v=["role",function(){return p(h["$key?"]("role"))?"bare "+h["$[]"]("role"):"bare"}()],$(h,"[]=",t.to_a(v)),v[n(v["length"],1)]):h=f(["role"],{role:"bare"})),I.$register("links",(v=["target",a],$(g,"[]=",t.to_a(v)),v[n(v["length"],1)])),p(h)&&(v=["attributes",h],$(g,"[]=",t.to_a(v)),v[n(v["length"],1)]),""+l+c(K,"Inline").$new(o,"anchor",i,g).$convert()+u},b.$$s=A,b.$$arity=0,b))),p(p(o=P)?p(d=i["$include?"]("link:"))?d:i["$include?"]("ilto:"):o)&&(i=$(i,"gsub",[c(K,"InlineLinkMacroRx")],(w=function(){var r,o=w.$$s||this,a=s,l=s,u=s,d=s,h=s,g=s;return p(((r=m["~"])===s?s:r["$[]"](0))["$start_with?"](c(K,"RS")))?((r=m["~"])===s?s:r["$[]"](0)).$slice(1,((r=m["~"])===s?s:r["$[]"](0)).$length()):(l=p(a=(r=m["~"])===s?s:r["$[]"](1))?e("mailto:",u=(r=m["~"])===s?s:r["$[]"](2)):(r=m["~"])===s?s:r["$[]"](2),r=[s,f(["type"],{type:"link"})],d=r[0],h=r[1],p((i=(r=m["~"])===s?s:r["$[]"](3))["$empty?"]())||(p(i["$include?"](c(K,"R_SB")))&&(i=i.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB"))),p(a)?p(p(r=I.$compat_mode()["$!"]())?i["$include?"](","):r)&&(i=p(r=(d=c(K,"AttributeList").$new(i,o).$parse())["$[]"](1))?r:"",g=["id",d["$[]"]("id")],$(h,"[]=",t.to_a(g)),g[n(g["length"],1)],p(d["$key?"](2))&&(l=p(d["$key?"](3))?l+"?subject="+c(K,"Helpers").$encode_uri_component(d["$[]"](2))+"&body="+c(K,"Helpers").$encode_uri_component(d["$[]"](3)):l+"?subject="+c(K,"Helpers").$encode_uri_component(d["$[]"](2)))):p(p(r=I.$compat_mode()["$!"]())?i["$include?"]("="):r)&&(i=p(r=(d=c(K,"AttributeList").$new(i,o).$parse())["$[]"](1))?r:"",g=["id",d["$[]"]("id")],$(h,"[]=",t.to_a(g)),g[n(g["length"],1)]),p(i["$end_with?"]("^"))&&(i=i.$chop(),p(d)?p(r=d["$[]"]("window"))||(g=["window","_blank"],$(d,"[]=",t.to_a(g)),g[n(g["length"],1)]):d=f(["window"],{window:"_blank"}))),p(i["$empty?"]())&&(p(a)?i=u:(p(L["$key?"]("hide-uri-scheme"))?p((i=l.$sub(c(K,"UriSniffRx"),""))["$empty?"]())&&(i=l):i=l,p(d)?(g=["role",function(){return p(d["$key?"]("role"))?"bare "+d["$[]"]("role"):"bare"}()],$(d,"[]=",t.to_a(g)),g[n(g["length"],1)]):d=f(["role"],{role:"bare"}))),I.$register("links",(g=["target",l],$(h,"[]=",t.to_a(g)),g[n(g["length"],1)])),p(d)&&(g=["attributes",d],$(h,"[]=",t.to_a(g)),g[n(g["length"],1)]),c(K,"Inline").$new(o,"anchor",i,h).$convert())},w.$$s=A,w.$$arity=0,w))),p(i["$include?"]("@"))&&(i=$(i,"gsub",[c(K,"InlineEmailRx")],(x=function(){var t,n=x.$$s||this,r=s,i=s;return p((t=m["~"])===s?s:t["$[]"](1))?function(){return((t=m["~"])===s?s:t["$[]"](1))["$=="](c(K,"RS"))?((t=m["~"])===s?s:t["$[]"](0)).$slice(1,((t=m["~"])===s?s:t["$[]"](0)).$length()):(t=m["~"])===s?s:t["$[]"](0)}():(r=e("mailto:",i=(t=m["~"])===s?s:t["$[]"](0)),I.$register("links",r),c(K,"Inline").$new(n,"anchor",i,f(["type","target"],{type:"link",target:r})).$convert())},x.$$s=A,x.$$arity=0,x))),p(p(o=p(d=E)?A.context["$=="]("list_item"):d)?A.parent.$style()["$=="]("bibliography"):o)&&(i=$(i,"sub",[c(K,"InlineBiblioAnchorRx")],(k=function(){var t,e=k.$$s||this;return c(K,"Inline").$new(e,"anchor",(t=m["~"])===s?s:t["$[]"](2),f(["type","id"],{type:"bibref",id:(t=m["~"])===s?s:t["$[]"](1)})).$convert()},k.$$s=A,k.$$arity=0,k))),p(p(o=p(d=E)?i["$include?"]("[["):d)?o:p(d=P)?i["$include?"]("or:"):d)&&(i=$(i,"gsub",[c(K,"InlineAnchorRx")],(S=function(){var t,e,n=S.$$s||this,r=s,i=s;return p((t=m["~"])===s?s:t["$[]"](1))?((t=m["~"])===s?s:t["$[]"](0)).$slice(1,((t=m["~"])===s?s:t["$[]"](0)).$length()):(p(r=(t=m["~"])===s?s:t["$[]"](2))?i=(t=m["~"])===s?s:t["$[]"](3):(r=(t=m["~"])===s?s:t["$[]"](4),p(p(t=i=(e=m["~"])===s?s:e["$[]"](5))?i["$include?"](c(K,"R_SB")):t)&&(i=i.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB")))),c(K,"Inline").$new(n,"anchor",i,f(["type","id"],{type:"ref",id:r})).$convert())},S.$$s=A,S.$$arity=0,S))),p(p(o=p(d=i["$include?"]("&"))?i["$include?"](";&l"):d)?o:p(d=P)?i["$include?"]("xref:"):d)&&(i=$(i,"gsub",[c(K,"InlineXrefMacroRx")],(O=function(){var o,a,l=O.$$s||this,u=s,d=s,h=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s;return p(((o=m["~"])===s?s:o["$[]"](0))["$start_with?"](c(K,"RS")))?((o=m["~"])===s?s:o["$[]"](0)).$slice(1,((o=m["~"])===s?s:o["$[]"](0)).$length()):(u=f([],{}),p(d=(o=m["~"])===s?s:o["$[]"](1))?(a=d.$split(",",2),o=t.to_ary(a),d=null==o[0]?s:o[0],i=null==o[1]?s:o[1],p(i)&&(i=i.$lstrip())):(h=!0,d=(o=m["~"])===s?s:o["$[]"](2),p(i=(o=m["~"])===s?s:o["$[]"](3))&&(p(i["$include?"](c(K,"R_SB")))&&(i=i.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB"))),p(p(o=I.$compat_mode()["$!"]())?i["$include?"]("="):o)&&(i=c(K,"AttributeList").$new(i,l).$parse_into(u)["$[]"](1)))),p(I.$compat_mode())?g=d:p(v=d.$index("#"))?p(r(v,0))?(p(r(y=n(n(d.$length(),1),v),0))?(o=[d.$slice(0,v),d.$slice(e(v,1),y)],_=o[0],g=o[1]):_=d.$chop(),p(h)?p(_["$end_with?"](".adoc"))?b=_=_.$slice(0,n(_.$length(),5)):p(c(K,"Helpers")["$extname?"](_)["$!"]())&&(b=_):b=p($(_,"end_with?",t.to_a(c(K,"ASCIIDOC_EXTENSIONS").$keys())))?_=_.$slice(0,_.$rindex(".")):_):(o=[d,d.$slice(1,d.$length())],w=o[0],g=o[1]):p(h)?p(d["$end_with?"](".adoc"))?b=_=d.$slice(0,n(d.$length(),5)):p(c(K,"Helpers")["$extname?"](d))?_=d:g=d:g=d,p(w)?(d=g,p(p(o=l.$logger()["$info?"]())?I.$catalog()["$[]"]("refs")["$[]"](d)["$!"]():o)&&l.$logger().$info("possible invalid reference: "+d)):p(_)?p(p(o=b)?p(a=I.$attributes()["$[]"]("docname")["$=="](_))?a:I.$catalog()["$[]"]("includes")["$[]"](_):o)?p(g)?(o=[g,s,"#"+g],d=o[0],_=o[1],w=o[2],p(p(o=l.$logger()["$info?"]())?I.$catalog()["$[]"]("refs")["$[]"](d)["$!"]():o)&&l.$logger().$info("possible invalid reference: "+d)):(o=[s,s,"#"],d=o[0],_=o[1],w=o[2]):(o=[_,""+I.$attributes()["$[]"]("relfileprefix")+_+function(){return p(b)?I.$attributes().$fetch("relfilesuffix",I.$outfilesuffix()):""}()],d=o[0],_=o[1],p(g)?(o=[d+"#"+g,_+"#"+g],d=o[0],w=o[1]):w=_):p(p(o=I.$compat_mode())?o:c(K,"Compliance").$natural_xrefs()["$!"]())?(o=[g,"#"+g],d=o[0],w=o[1],p(p(o=l.$logger()["$info?"]())?I.$catalog()["$[]"]("refs")["$[]"](d):o)&&l.$logger().$info("possible invalid reference: "+d)):p(I.$catalog()["$[]"]("refs")["$[]"](g))?(o=[g,"#"+g],d=o[0],w=o[1]):p(p(o=p(a=g["$include?"](" "))?a:g.$downcase()["$!="](g))?d=I.$resolve_id(g):o)?(o=[d,"#"+d],g=o[0],w=o[1]):(o=[g,"#"+g],d=o[0],w=o[1],p(l.$logger()["$info?"]())&&l.$logger().$info("possible invalid reference: "+d)),x=["path",_],$(u,"[]=",t.to_a(x)),x[n(x["length"],1)],x=["fragment",g],$(u,"[]=",t.to_a(x)),x[n(x["length"],1)],x=["refid",d],$(u,"[]=",t.to_a(x)),x[n(x["length"],1)],c(K,"Inline").$new(l,"anchor",i,f(["type","target","attributes"],{type:"xref",target:w,attributes:u})).$convert())},O.$$s=A,O.$$arity=0,O))),p(p(o=P)?i["$include?"]("tnote"):o)&&(i=$(i,"gsub",[c(K,"InlineFootnoteMacroRx")],(C=function(){var e,n,r,o,a=C.$$s||this,u=s,d=s,h=s,g=s,v=s;if(p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS"))))return((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length());if(p((e=m["~"])===s?s:e["$[]"](1))){if(!p((e=m["~"])===s?s:e["$[]"](3)))return(e=m["~"])===s?s:e["$[]"](0);n=((r=m["~"])===s?s:r["$[]"](3)).$split(",",2),e=t.to_ary(n),u=null==e[0]?s:e[0],i=null==e[1]?s:e[1],p(I.$compat_mode())||a.$logger().$warn("found deprecated footnoteref macro: "+((e=m["~"])===s?s:e["$[]"](0))+"; use footnote macro with target instead")}else u=(e=m["~"])===s?s:e["$[]"](2),i=(e=m["~"])===s?s:e["$[]"](3);if(p(u))p(i)?(i=a.$restore_passthroughs(a.$normalize_text(i,!0,!0)),d=I.$counter("footnote-number"),I.$register("footnotes",l(c(K,"Document"),"Footnote").$new(d,u,i)),e=["ref",s],h=e[0],g=e[1]):(p(v=$(I.$footnotes(),"find",[],(o=function(t){o.$$s;return null==t&&(t=s),t.$id()["$=="](u)},o.$$s=a,o.$$arity=1,o)))?(e=[v.$index(),v.$text()],d=e[0],i=e[1]):(a.$logger().$warn("invalid footnote reference: "+u),e=[s,u],d=e[0],i=e[1]),e=["xref",u,s],h=e[0],g=e[1],u=e[2]);else{if(!p(i))return(e=m["~"])===s?s:e["$[]"](0);i=a.$restore_passthroughs(a.$normalize_text(i,!0,!0)),d=I.$counter("footnote-number"),I.$register("footnotes",l(c(K,"Document"),"Footnote").$new(d,u,i)),h=g=s}return c(K,"Inline").$new(a,"footnote",i,f(["attributes","id","target","type"],{attributes:f(["index"],{index:d}),id:u,target:g,type:h})).$convert()},C.$$s=A,C.$$arity=0,C))),i},O.$$arity=1),t.def(Y,"$sub_post_replacements",C=function(t){var e,r,o,a=this,l=s,u=s;return null==a.attributes&&(a.attributes=s),null==a.document&&(a.document=s),p(p(e=a.attributes["$[]"]("hardbreaks-option"))?e:a.document.$attributes()["$[]"]("hardbreaks-option"))?(l=t.$split(c(K,"LF"),-1),p(i(l.$size(),2))?t:(u=l.$pop(),$(l,"map",[],(r=function(t){var e=r.$$s||this;return null==t&&(t=s),c(K,"Inline").$new(e,"break",function(){return p(t["$end_with?"](c(K,"HARD_LINE_BREAK")))?t.$slice(0,n(t.$length(),2)):t}(),f(["type"],{type:"line"})).$convert()},r.$$s=a,r.$$arity=1,r))["$<<"](u).$join(c(K,"LF")))):p(p(e=t["$include?"](c(K,"PLUS")))?t["$include?"](c(K,"HARD_LINE_BREAK")):e)?$(t,"gsub",[c(K,"HardLineBreakRx")],(o=function(){var t,e=o.$$s||this;return c(K,"Inline").$new(e,"break",(t=m["~"])===s?s:t["$[]"](1),f(["type"],{type:"line"})).$convert()},o.$$s=a,o.$$arity=0,o)):t},C.$$arity=1),t.def(Y,"$sub_source",A=function(t,e){var n=this;return p(e)?n.$sub_callouts(n.$sub_specialchars(t)):n.$sub_specialchars(t)},A.$$arity=2),t.def(Y,"$sub_callouts",E=function(t){var n,r=this,i=s,o=s;return i=function(){return p(r["$attr?"]("line-comment"))?c(K,"CalloutSourceRxMap")["$[]"](r.$attr("line-comment")):c(K,"CalloutSourceRx")}(),o=0,$(t,"gsub",[i],(n=function(){var t,r=n.$$s||this;return null==r.document&&(r.document=s),p((t=m["~"])===s?s:t["$[]"](2))?((t=m["~"])===s?s:t["$[]"](0)).$sub(c(K,"RS"),""):c(K,"Inline").$new(r,"callout",function(){return((t=m["~"])===s?s:t["$[]"](4))["$=="](".")?(o=e(o,1)).$to_s():(t=m["~"])===s?s:t["$[]"](4)}(),f(["id","attributes"],{id:r.document.$callouts().$read_next_id(),attributes:f(["guard"],{guard:(t=m["~"])===s?s:t["$[]"](1)})})).$convert()},n.$$s=r,n.$$arity=0,n))},E.$$arity=1),t.def(Y,"$highlight_source",T=function(e,n){var r,o,a,l=this,u=s,d=s,h=s,$=s,m=s,g=s,v=s,y=s,_=s;return null==l.document&&(l.document=s),null==l.passthroughs&&(l.passthroughs=s),p(p(r=u=l.document.$syntax_highlighter())?u["$highlight?"]():r)?(p(n)&&(o=l.$extract_callouts(e),r=t.to_ary(o),e=null==r[0]?s:r[0],d=null==r[1]?s:r[1]),h=l.document.$attributes(),$=u.$name(),p(m=function(){return p(l["$attr?"]("linenums"))?(p(r=h["$[]"]($+"-linenums-mode"))?r:"table").$to_sym():s}())&&p(i(g=l.$attr("start",1).$to_i(),1))&&(g=1),p(l["$attr?"]("highlight"))&&(v=l.$resolve_lines_to_highlight(e,l.$attr("highlight"))),o=u.$highlight(l,e,l.$attr("language"),f(["callouts","css_mode","highlight_lines","number_lines","start_line_number","style"],{callouts:d,css_mode:(p(a=h["$[]"]($+"-css"))?a:"class").$to_sym(),highlight_lines:v,number_lines:m,start_line_number:g,style:h["$[]"]($+"-style")})),r=t.to_ary(o),y=null==r[0]?s:r[0],_=null==r[1]?s:r[1],p(l.passthroughs["$empty?"]())||(y=y.$gsub(c(K,"HighlightedPassSlotRx"),c(K,"PASS_START")+"\\1"+c(K,"PASS_END"))),p(d["$nil_or_empty?"]())?y:l.$restore_callouts(y,d,_)):l.$sub_source(e,n)},T.$$arity=2),t.def(Y,"$resolve_lines_to_highlight",P=function(r,o){var a,l=this,u=s;return u=[],p(o["$include?"](" "))&&(o=o.$delete(" ")),$(function(){return p(o["$include?"](","))?o.$split(","):o.$split(";")}(),"map",[],(a=function(o){a.$$s;var l,d,f=s,h=s,$=s,m=s,g=s;return null==o&&(o=s),p(o["$start_with?"]("!"))&&(o=o.$slice(1,o.$length()),f=!0),p(h=function(){return p(o["$include?"](".."))?"..":p(o["$include?"]("-"))?"-":s}())?(d=o.$partition(h),l=t.to_ary(d),$=null==l[0]?s:l[0],h=null==l[1]?s:l[1],m=null==l[2]?s:l[2],p(p(l=m["$empty?"]())?l:i(m=m.$to_i(),0))&&(m=e(r.$count(c(K,"LF")),1)),g=t.Range.$new($.$to_i(),m,!1).$to_a(),p(f)?u=n(u,g):u.$concat(g)):p(f)?u.$delete(o.$to_i()):u["$<<"](o.$to_i())},a.$$s=l,a.$$arity=1,a)),u.$sort().$uniq()},P.$$arity=2),t.def(Y,"$extract_passthroughs",B=function(e){var i,a,l,u,d,h=this,g=s,v=s,y=s,_=s,b=s;return null==h.document&&(h.document=s),null==h.passthroughs&&(h.passthroughs=s),g=h.document.$compat_mode(),v=h.passthroughs,p(p(i=p(a=e["$include?"]("++"))?a:e["$include?"]("$$"))?i:e["$include?"]("ss:"))&&(e=$(e,"gsub",[c(K,"InlinePassMacroRx")],(l=function(){var e,i=l.$$s||this,a=s,u=s,d=s,h=s,y=s,_=s,b=s,w=s,x=s;if(p(a=(e=m["~"])===s?s:e["$[]"](4))){if(p(p(e=g)?a["$=="]("++"):e))return function(){return p((e=m["~"])===s?s:e["$[]"](2))?((e=m["~"])===s?s:e["$[]"](1))+"["+((e=m["~"])===s?s:e["$[]"](2))+"]"+((e=m["~"])===s?s:e["$[]"](3)):""+((e=m["~"])===s?s:e["$[]"](1))+((e=m["~"])===s?s:e["$[]"](3))}()+"++"+i.$extract_passthroughs((e=m["~"])===s?s:e["$[]"](5))+"++";if(p(u=(e=m["~"])===s?s:e["$[]"](2))){if(p(r(d=((e=m["~"])===s?s:e["$[]"](3)).$length(),0)))return((e=m["~"])===s?s:e["$[]"](1))+"["+u+"]"+o(c(K,"RS"),n(d,1))+a+((e=m["~"])===s?s:e["$[]"](5))+a;((e=m["~"])===s?s:e["$[]"](1))["$=="](c(K,"RS"))?h="["+u+"]":(p((e=a["$=="]("++"))?u["$end_with?"]("x-"):a["$=="]("++"))&&(y=!0,u=u.$slice(0,n(u.$length(),2))),_=i.$parse_quoted_text_attributes(u))}else if(p(r(d=((e=m["~"])===s?s:e["$[]"](3)).$length(),0)))return""+o(c(K,"RS"),n(d,1))+a+((e=m["~"])===s?s:e["$[]"](5))+a;b=function(){return a["$=="]("+++")?[]:c(K,"BASIC_SUBS")}(),p(_)?p(y)?(w=[x=v.$size(),f(["text","subs","type","attributes"],{text:(e=m["~"])===s?s:e["$[]"](5),subs:c(K,"NORMAL_SUBS"),type:"monospaced",attributes:_})],$(v,"[]=",t.to_a(w)),w[n(w["length"],1)]):(w=[x=v.$size(),f(["text","subs","type","attributes"],{text:(e=m["~"])===s?s:e["$[]"](5),subs:b,type:"unquoted",attributes:_})],$(v,"[]=",t.to_a(w)),w[n(w["length"],1)]):(w=[x=v.$size(),f(["text","subs"],{text:(e=m["~"])===s?s:e["$[]"](5),subs:b})],$(v,"[]=",t.to_a(w)),w[n(w["length"],1)])}else{if(((e=m["~"])===s?s:e["$[]"](6))["$=="](c(K,"RS")))return((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length());p(b=(e=m["~"])===s?s:e["$[]"](7))?(w=[x=v.$size(),f(["text","subs"],{text:i.$normalize_text((e=m["~"])===s?s:e["$[]"](8),s,!0),subs:i.$resolve_pass_subs(b)})],$(v,"[]=",t.to_a(w)),w[n(w["length"],1)]):(w=[x=v.$size(),f(["text"],{text:i.$normalize_text((e=m["~"])===s?s:e["$[]"](8),s,!0)})],$(v,"[]=",t.to_a(w)),w[n(w["length"],1)])}return""+(p(e=h)?e:"")+c(K,"PASS_START")+x+c(K,"PASS_END")},l.$$s=h,l.$$arity=0,l))),a=c(K,"InlinePassRx")["$[]"](g),i=t.to_ary(a),y=null==i[0]?s:i[0],_=null==i[1]?s:i[1],b=null==i[2]?s:i[2],p(p(i=e["$include?"](y))?i:p(a=_)?e["$include?"](_):a)&&(e=$(e,"gsub",[b],(u=function(){var e,r=u.$$s||this,i=s,o=s,a=s,l=s,d=s,h=s,y=s,_=s,b=s,w=s,x=s;if(i=(e=m["~"])===s?s:e["$[]"](1),o=(e=m["~"])===s?s:e["$[]"](2),p((a=(e=m["~"])===s?s:e["$[]"](3))["$start_with?"](c(K,"RS")))&&(l=c(K,"RS")),d=(e=m["~"])===s?s:e["$[]"](4),h=(e=m["~"])===s?s:e["$[]"](5),p(g)?y=!0:p(y=p(e=o)?o["$end_with?"]("x-"):e)&&(o=o.$slice(0,n(o.$length(),2))),p(o)){if(p((e=d["$=="]("`"))?y["$!"]():d["$=="]("`")))return r.$extract_inner_passthrough(h,i+"["+o+"]"+l);if(p(l))return i+"["+o+"]"+a.$slice(1,a.$length());i["$=="](c(K,"RS"))?i="["+o+"]":_=r.$parse_quoted_text_attributes(o)}else{if(p((e=d["$=="]("`"))?y["$!"]():d["$=="]("`")))return r.$extract_inner_passthrough(h,""+i+l);if(p(l))return""+i+a.$slice(1,a.$length())}return p(g)?(b=[w=v.$size(),f(["text","subs","attributes","type"],{text:h,subs:c(K,"BASIC_SUBS"),attributes:_,type:"monospaced"})],$(v,"[]=",t.to_a(b)),b[n(b["length"],1)]):p(_)?p(y)?(x=function(){return d["$=="]("`")?c(K,"BASIC_SUBS"):c(K,"NORMAL_SUBS")}(),b=[w=v.$size(),f(["text","subs","attributes","type"],{text:h,subs:x,attributes:_,type:"monospaced"})],$(v,"[]=",t.to_a(b)),b[n(b["length"],1)]):(b=[w=v.$size(),f(["text","subs","attributes","type"],{text:h,subs:c(K,"BASIC_SUBS"),attributes:_,type:"unquoted"})],$(v,"[]=",t.to_a(b)),b[n(b["length"],1)]):(b=[w=v.$size(),f(["text","subs"],{text:h,subs:c(K,"BASIC_SUBS")})],$(v,"[]=",t.to_a(b)),b[n(b["length"],1)]),""+i+c(K,"PASS_START")+w+c(K,"PASS_END")},u.$$s=h,u.$$arity=0,u))),p(p(i=e["$include?"](":"))?p(a=e["$include?"]("stem:"))?a:e["$include?"]("math:"):i)&&(e=$(e,"gsub",[c(K,"InlineStemMacroRx")],(d=function(){var e,r=d.$$s||this,i=s,o=s,a=s,l=s,u=s;return null==r.document&&(r.document=s),p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))?((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length()):((i=((e=m["~"])===s?s:e["$[]"](1)).$to_sym())["$=="]("stem")&&(i=c(K,"STEM_TYPE_ALIASES")["$[]"](r.document.$attributes()["$[]"]("stem")).$to_sym()),o=(e=m["~"])===s?s:e["$[]"](2),a=r.$normalize_text((e=m["~"])===s?s:e["$[]"](3),s,!0),p(p(e=i["$=="]("latexmath")?a["$start_with?"]("$"):i["$=="]("latexmath"))?a["$end_with?"]("$"):e)&&(a=a.$slice(1,n(a.$length(),2))),o=function(){return p(o)?r.$resolve_pass_subs(o):p(r.document["$basebackend?"]("html"))?c(K,"BASIC_SUBS"):s}(),l=[u=v.$size(),f(["text","subs","type"],{text:a,subs:o,type:i})],$(v,"[]=",t.to_a(l)),l[n(l["length"],1)],""+c(K,"PASS_START")+u+c(K,"PASS_END"))},d.$$s=h,d.$$arity=0,d))),e},B.$$arity=1),t.def(Y,"$restore_passthroughs",L=function(t){var e,n=this,r=s;return null==n.passthroughs&&(n.passthroughs=s),r=n.passthroughs,$(t,"gsub",[c(K,"PassSlotRx")],(e=function(){var n,i=e.$$s||this,o=s,a=s,l=s,u=s,d=s;return p(o=r["$[]"](((n=m["~"])===s?s:n["$[]"](1)).$to_i()))?(a=i.$apply_subs(o["$[]"]("text"),o["$[]"]("subs")),p(l=o["$[]"]("type"))&&(p(u=o["$[]"]("attributes"))&&(d=u["$[]"]("id")),a=c(K,"Inline").$new(i,"quoted",a,f(["type","id","attributes"],{type:l,id:d,attributes:u})).$convert()),p(a["$include?"](c(K,"PASS_START")))?i.$restore_passthroughs(a):a):(i.$logger().$error("unresolved passthrough detected: "+t),"??pass??")},e.$$s=n,e.$$arity=0,e))},L.$$arity=1),t.def(Y,"$resolve_subs",I=function(t,i,o,a){var l,u=this,d=s,f=s,h=s,m=s;return null==i&&(i="block"),null==o&&(o=s),null==a&&(a=s),p(t["$nil_or_empty?"]())?s:(d=s,p(t["$include?"](" "))&&(t=t.$delete(" ")),f=c(K,"SubModifierSniffRx")["$match?"](t),$(t.$split(","),"each",[],(l=function(t){l.$$s;var r,a,u=s,h=s,$=s,m=s,g=s,v=s;return null==t&&(t=s),u=s,p(f)&&((h=t.$chr())["$=="]("+")?(u="append",t=t.$slice(1,t.$length())):h["$=="]("-")?(u="remove",t=t.$slice(1,t.$length())):p(t["$end_with?"]("+"))&&(u="prepend",t=t.$chop())),t=t.$to_sym(),p((r=i["$=="]("inline"))?p(a=t["$=="]("verbatim"))?a:t["$=="]("v"):i["$=="]("inline"))?$=c(K,"BASIC_SUBS"):p(c(K,"SUB_GROUPS")["$key?"](t))?$=c(K,"SUB_GROUPS")["$[]"](t):p(p(r=(a=i["$=="]("inline"))?t.$length()["$=="](1):i["$=="]("inline"))?c(K,"SUB_HINTS")["$key?"](t):r)?(m=c(K,"SUB_HINTS")["$[]"](t),$=p(g=c(K,"SUB_GROUPS")["$[]"](m))?g:[m]):$=[t],p(u)?(d=p(r=d)?r:function(){return p(o)?o.$drop(0):[]}(),function(){return v=u,"append"["$==="](v)?d=e(d,$):"prepend"["$==="](v)?d=e($,d):"remove"["$==="](v)?d=n(d,$):s}()):(d=p(r=d)?r:[],d=e(d,$))},l.$$s=u,l.$$arity=1,l)),p(d)?(h=d["$&"](c(K,"SUB_OPTIONS")["$[]"](i)),p(n(d,h)["$empty?"]())||(m=n(d,h),u.$logger().$warn("invalid substitution type"+function(){return p(r(m.$size(),1))?"s":""}()+function(){return p(a)?" for ":""}()+a+": "+m.$join(", "))),h):s)},I.$$arity=-2),t.def(Y,"$resolve_block_subs",D=function(t,e,n){var r=this;return r.$resolve_subs(t,"block",e,n)},D.$$arity=3),t.def(Y,"$resolve_pass_subs",R=function(t){var e=this;return e.$resolve_subs(t,"inline",s,"passthrough macro")},R.$$arity=1),t.def(Y,"$expand_subs",j=function(t){var n,r,i=this,o=s;return p(l("::","Symbol")["$==="](t))?t["$=="]("none")?s:p(n=c(K,"SUB_GROUPS")["$[]"](t))?n:[t]:(o=[],$(t,"each",[],(r=function(t){r.$$s;var n=s;return null==t&&(t=s),t["$=="]("none")?s:p(n=c(K,"SUB_GROUPS")["$[]"](t))?o=e(o,n):o["$<<"](t)},r.$$s=i,r.$$arity=1,r)),p(o["$empty?"]())?s:o)},j.$$arity=1),t.def(Y,"$commit_subs",M=function(){var e,r,i,o=this,a=s,l=s,u=s,d=s,f=s,h=s;if(null==o.default_subs&&(o.default_subs=s),null==o.content_model&&(o.content_model=s),null==o.context&&(o.context=s),null==o.subs&&(o.subs=s),null==o.attributes&&(o.attributes=s),null==o.style&&(o.style=s),null==o.document&&(o.document=s),p(a=o.default_subs));else if(l=o.content_model,"simple"["$==="](l))a=c(K,"NORMAL_SUBS");else if("verbatim"["$==="](l))a=function(){return o.context["$=="]("verse")?c(K,"NORMAL_SUBS"):c(K,"VERBATIM_SUBS")}();else{if(!"raw"["$==="](l))return o.subs;a=function(){return o.context["$=="]("stem")?c(K,"BASIC_SUBS"):c(K,"NO_SUBS")}()}return p(u=o.attributes["$[]"]("subs"))?o.subs=p(e=o.$resolve_block_subs(u,a,o.context))?e:[]:o.subs=a.$drop(0),p(p(e=p(r=p(i=o.context["$=="]("listing")?o.style["$=="]("source"):o.context["$=="]("listing"))?d=o.document.$syntax_highlighter():i)?d["$highlight?"]():r)?f=o.subs.$index("specialcharacters"):e)&&(h=[f,"highlight"],$(o.subs,"[]=",t.to_a(h)),h[n(h["length"],1)]),s},M.$$arity=0),t.def(Y,"$parse_attributes",F=function(t,e,n){var r,i=this,o=s,a=s;return null==i.document&&(i.document=s),null==e&&(e=[]),null==n&&(n=f([],{})),p(function(){return!p(t)||t["$empty?"]()}())?f([],{}):(p(n["$[]"]("unescape_input"))&&(t=i.$normalize_text(t,!0,!0)),p(p(r=n["$[]"]("sub_input"))?t["$include?"](c(K,"ATTR_REF_HEAD")):r)&&(t=i.document.$sub_attributes(t)),p(n["$[]"]("sub_result"))&&(o=i),p(a=n["$[]"]("into"))?c(K,"AttributeList").$new(t,o).$parse_into(a,e):c(K,"AttributeList").$new(t,o).$parse(e))},F.$$arity=-2),Y.$private(),t.def(Y,"$extract_callouts",N=function(r){var i,o=this,a=s,l=s,u=s,d=s;return a=f([],{}),l=0,u=s,d=function(){return p(o["$attr?"]("line-comment"))?c(K,"CalloutExtractRxMap")["$[]"](o.$attr("line-comment")):c(K,"CalloutExtractRx")}(),r=$(r.$split(c(K,"LF"),-1),"map",[],(i=function(r){var o,f=i.$$s||this;return null==r&&(r=s),l=e(l,1),$(r,"gsub",[d],(o=function(){o.$$s;var e,r=s;return p((e=m["~"])===s?s:e["$[]"](2))?((e=m["~"])===s?s:e["$[]"](0)).$sub(c(K,"RS"),""):((p(e=a["$[]"](l))?e:(r=[l,[]],$(a,"[]=",t.to_a(r)),r[n(r["length"],1)]))["$<<"]([(e=m["~"])===s?s:e["$[]"](1),(e=m["~"])===s?s:e["$[]"](4)]),u=l,"")},o.$$s=f,o.$$arity=0,o))},i.$$s=o,i.$$arity=1,i)).$join(c(K,"LF")),p(u)?u["$=="](l)&&(r=""+r+c(K,"LF")):a=s,[r,a]},N.$$arity=1),t.def(Y,"$restore_callouts",z=function(n,r,i){var o,a=this,l=s,u=s,d=s;return null==i&&(i=s),p(i)?(l=n.$slice(0,i),n=n.$slice(i,n.$length())):l="",u=d=0,e(l,$(n.$split(c(K,"LF"),-1),"map",[],(o=function(n){var i,a,l,h=o.$$s||this,m=s,g=s,v=s;return null==h.document&&(h.document=s),null==n&&(n=s),p(m=r.$delete(d=e(d,1)))?m.$size()["$=="](1)?(a=m["$[]"](0),i=t.to_ary(a),g=null==i[0]?s:i[0],v=null==i[1]?s:i[1],""+n+c(K,"Inline").$new(h,"callout",function(){return v["$=="](".")?(u=e(u,1)).$to_s():v}(),f(["id","attributes"],{id:h.document.$callouts().$read_next_id(),attributes:f(["guard"],{guard:g})})).$convert()):""+n+$(m,"map",[],(l=function(t,n){var r=l.$$s||this;return null==r.document&&(r.document=s),null==t&&(t=s),null==n&&(n=s),c(K,"Inline").$new(r,"callout",function(){return n["$=="](".")?(u=e(u,1)).$to_s():n}(),f(["id","attributes"],{id:r.document.$callouts().$read_next_id(),attributes:f(["guard"],{guard:t})})).$convert()},l.$$s=h,l.$$arity=2,l)).$join(" "):n},o.$$s=a,o.$$arity=1,o)).$join(c(K,"LF")))},z.$$arity=-3),t.def(Y,"$extract_inner_passthrough",H=function(e,r){var i,o,a=this,l=s,u=s;return null==a.passthroughs&&(a.passthroughs=s),p(p(i=p(o=e["$end_with?"]("+"))?e["$start_with?"]("+","\\+"):o)?c(K,"SinglePlusInlinePassRx")["$=~"](e):i)?p((i=m["~"])===s?s:i["$[]"](1))?r+"`+"+((i=m["~"])===s?s:i["$[]"](2))+"+`":(l=[u=a.passthroughs.$size(),f(["text","subs"],{text:(i=m["~"])===s?s:i["$[]"](2),subs:c(K,"BASIC_SUBS")})],$(a.passthroughs,"[]=",t.to_a(l)),l[n(l["length"],1)],r+"`"+c(K,"PASS_START")+u+c(K,"PASS_END")+"`"):r+"`"+e+"`"},H.$$arity=2),t.def(Y,"$convert_quoted_text",V=function(t,e,n){var r=this,i=s,o=s,a=s,l=s,u=s;if(p(t["$[]"](0)["$start_with?"](c(K,"RS")))){if(!p(n["$=="]("constrained")?i=t["$[]"](2):n["$=="]("constrained")))return t["$[]"](0).$slice(1,t["$[]"](0).$length());o="["+i+"]"}return n["$=="]("constrained")?p(o)?""+o+c(K,"Inline").$new(r,"quoted",t["$[]"](3),f(["type"],{type:e})).$convert():(p(a=t["$[]"](2))&&(l=(u=r.$parse_quoted_text_attributes(a))["$[]"]("id"),e["$=="]("mark")&&(e="unquoted")),""+t["$[]"](1)+c(K,"Inline").$new(r,"quoted",t["$[]"](3),f(["type","id","attributes"],{type:e,id:l,attributes:u})).$convert()):(p(a=t["$[]"](1))&&(l=(u=r.$parse_quoted_text_attributes(a))["$[]"]("id"),e["$=="]("mark")&&(e="unquoted")),c(K,"Inline").$new(r,"quoted",t["$[]"](2),f(["type","id","attributes"],{type:e,id:l,attributes:u})).$convert())},V.$$arity=3),t.def(Y,"$do_replacement",U=function(t,n,r){var i=s,o=s;return p((i=t["$[]"](0))["$include?"](c(K,"RS")))?i.$sub(c(K,"RS"),""):function(){return o=r,"none"["$==="](o)?n:"bounding"["$==="](o)?e(e(t["$[]"](1),n),t["$[]"](2)):e(t["$[]"](1),n)}()},U.$$arity=3),c(K,"RUBY_ENGINE")["$=="]("opal"),t.def(Y,"$parse_quoted_text_attributes",q=function(e){var i,o,a=this,l=s,d=s,h=s,m=s,g=s,v=s;return p((e=e.$rstrip())["$empty?"]())?f([],{}):(p(e["$include?"](c(K,"ATTR_REF_HEAD")))&&(e=a.$sub_attributes(e)),p(e["$include?"](","))&&(e=e.$slice(0,e.$index(","))),p(p(i=e["$start_with?"](".","#"))?c(K,"Compliance").$shorthand_property_syntax():i)?(l=e.$split("#",2),p(r(l.$size(),1))?(o=l["$[]"](1).$split("."),i=t.to_ary(o),d=null==i[0]?s:i[0],h=u.call(i,1)):h=[],m=function(){return p(l["$[]"](0)["$empty?"]())?[]:l["$[]"](0).$split(".")}(),p(r(m.$size(),1))&&m.$shift(),p(r(h.$size(),0))&&m.$concat(h),g=f([],{}),p(d)&&(v=["id",d],$(g,"[]=",t.to_a(v)),v[n(v["length"],1)]),p(m["$empty?"]())||(v=["role",m.$join(" ")],$(g,"[]=",t.to_a(v)),v[n(v["length"],1)]),g):f(["role"],{role:e}))},q.$$arity=1),t.def(Y,"$normalize_text",W=function(t,e,n){var r;return null==e&&(e=s),null==n&&(n=s),p(t["$empty?"]())||(p(e)&&(t=t.$strip().$tr(c(K,"LF")," ")),p(p(r=n)?t["$include?"](c(K,"R_SB")):r)&&(t=t.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB")))),t},W.$$arity=-2),t.def(Y,"$split_simple_csv",G=function(t){var n,r,i=this,o=s,a=s,l=s;return p(t["$empty?"]())?[]:p(t["$include?"]('"'))?(o=[],a="",l=s,$(t,"each_char",[],(n=function(t){n.$$s;var r=s;return null==t&&(t=s),function(){return r=t,","["$==="](r)?p(l)?a=e(a,t):(o["$<<"](a.$strip()),a=""):'"'["$==="](r)?l=l["$!"]():a=e(a,t)}()},n.$$s=i,n.$$arity=1,n)),o["$<<"](a.$strip())):$(t.$split(","),"map",[],(r=function(t){r.$$s;return null==t&&(t=s),t.$strip()},r.$$s=i,r.$$arity=1,r))},G.$$arity=1)})(y[0],y)}(a[0],a)},Opal.modules["asciidoctor/version"]=function(t){t.top;var e=[],n=(t.nil,t.const_get_qualified,t.const_get_relative,t.breaker,t.slice,t.module);return function(e,r){var i=n(e,"Asciidoctor"),o=[i].concat(r);t.const_set(o[0],"VERSION","2.0.10")}(e[0],e)},Opal.modules["asciidoctor/abstract_node"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t")+": "+(u(n=e["$[]"]("label"))?n:"file")+" does not exist or cannot be read: "+t),i):i},H.$$arity=-2),t.def(q,"$read_contents",V=function(e,n){var r,s,l,f,h,p=this,$=i,m=i;if(null==n&&(n=c([],{})),$=p.document,!u(u(r=a(W,"Helpers")["$uriish?"](e))?r:u(s=u(l=m=n["$[]"]("start"))?a(W,"Helpers")["$uriish?"](m):l)?e=$.$path_resolver().$web_path(e,m):s))return e=p.$normalize_system_path(e,n["$[]"]("start"),i,c(["target_name"],{target_name:u(r=n["$[]"]("label"))?r:"asset"})),p.$read_asset(e,c(["normalize","warn_on_failure","label"],{normalize:n["$[]"]("normalize"),warn_on_failure:n.$fetch("warn_on_failure",!0),label:n["$[]"]("label")}));if(!u($["$attr?"]("allow-uri-read")))return u(n.$fetch("warn_on_failure",!0))&&p.$logger().$warn("cannot retrieve contents of "+(u(r=n["$[]"]("label"))?r:"asset")+" at URI: "+e+" (allow-uri-read attribute not enabled)"),i;u($["$attr?"]("cache-uri"))&&a(W,"Helpers").$require_library("open-uri/cached","open-uri-cached");try{return u(n["$[]"]("normalize"))?a(W,"Helpers").$prepare_source_string(d(o("::","OpenURI"),"open_uri",[e,a(W,"URI_READ_MODE")],(f=function(t){f.$$s;return null==t&&(t=i),t.$read()},f.$$s=p,f.$$arity=1,f))).$join(a(W,"LF")):d(o("::","OpenURI"),"open_uri",[e,a(W,"URI_READ_MODE")],(h=function(t){h.$$s;return null==t&&(t=i),t.$read()},h.$$s=p,h.$$arity=1,h))}catch(g){if(!t.rescue(g,[a(W,"StandardError")]))throw g;try{return u(n.$fetch("warn_on_failure",!0))&&p.$logger().$warn("could not retrieve contents of "+(u(r=n["$[]"]("label"))?r:"asset")+" at URI: "+e),i}finally{t.pop_exception()}}},V.$$arity=-2),t.def(q,"$is_uri?",U=function(t){return a(W,"Helpers")["$uriish?"](t)},U.$$arity=1)})(p[0],null,p)}(r[0],r)},Opal.modules["asciidoctor/abstract_block"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}t.top;var i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.module),c=t.klass,u=t.hash2,d=t.send,f=t.truthy;return t.add_stubs(["$attr_reader","$attr_writer","$attr_accessor","$==","$===","$level","$file","$lineno","$playback_attributes","$convert","$converter","$join","$map","$to_s","$parent","$parent=","$-","$<<","$empty?","$>","$Integer","$find_by_internal","$to_proc","$context","$[]","$items","$+","$find_index","$include?","$next_adjacent_block","$blocks","$select","$sub_specialchars","$match?","$sub_replacements","$title","$apply_title_subs","$delete","$reftext","$!","$sub_placeholder","$sub_quotes","$compat_mode","$attributes","$chomp","$increment_and_store_counter","$index=","$numbered","$sectname","$counter","$numeral=","$numeral","$caption=","$int_to_roman","$each","$assign_numeral","$reindex_sections","$protected","$has_role?","$raise","$header?","$!=","$flatten","$head","$rows","$merge","$body","$foot","$style","$inner_document"]),function(i,h){var p=l(i,"Asciidoctor"),$=[p].concat(h);(function(i,l,h){var p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V=c(i,l,"AbstractBlock"),U=[V].concat(h);V.$$prototype.source_location=V.$$prototype.document=V.$$prototype.attributes=V.$$prototype.blocks=V.$$prototype.next_section_index=V.$$prototype.numeral=V.$$prototype.context=V.$$prototype.parent=V.$$prototype.caption=V.$$prototype.style=V.$$prototype.converted_title=V.$$prototype.title=V.$$prototype.subs=V.$$prototype.next_section_ordinal=V.$$prototype.id=V.$$prototype.header=o,V.$attr_reader("blocks"),V.$attr_writer("caption"),V.$attr_accessor("content_model"),V.$attr_accessor("level"),V.$attr_accessor("numeral"),V.$attr_accessor("source_location"),V.$attr_accessor("style"),V.$attr_reader("subs"),t.def(V,"$initialize",p=function(e,n,r){var i,a=p.$$p,l=this,c=o,h=o,$=o;for(a&&(p.$$p=null),h=0,$=arguments.length,c=new Array($);h<$;h++)c[h]=arguments[h];return null==r&&(r=u([],{})),d(l,t.find_super_dispatcher(l,"initialize",p,!1),c,a),l.content_model="compound",l.blocks=[],l.subs=[],l.id=l.title=l.caption=l.numeral=l.style=l.default_subs=l.source_location=o,f(f(i=n["$=="]("document"))?i:n["$=="]("section"))?(l.level=l.next_section_index=0,l.next_section_ordinal=1):f(s(U,"AbstractBlock")["$==="](e))?l.level=e.$level():l.level=o},p.$$arity=-3),t.def(V,"$block?",$=function(){return!0},$.$$arity=0),t.def(V,"$inline?",m=function(){return!1},m.$$arity=0),t.def(V,"$file",g=function(){var t,e=this;return f(t=e.source_location)?e.source_location.$file():t},g.$$arity=0),t.def(V,"$lineno",v=function(){var t,e=this;return f(t=e.source_location)?e.source_location.$lineno():t},v.$$arity=0),t.def(V,"$convert",y=function(){var t=this;return t.document.$playback_attributes(t.attributes),t.$converter().$convert(t)},y.$$arity=0),t.alias(V,"render","convert"),t.def(V,"$content",_=function(){var t,e=this;return d(e.blocks,"map",[],(t=function(e){t.$$s;return null==e&&(e=o),e.$convert()},t.$$s=e,t.$$arity=1,t)).$join(s(U,"LF"))},_.$$arity=0),t.def(V,"$context=",b=function(t){var e=this;return e.node_name=(e.context=t).$to_s()},b.$$arity=1),t.def(V,"$<<",w=function(n){var r=this,i=o;return n.$parent()["$=="](r)||(i=[r],d(n,"parent=",t.to_a(i)),i[e(i["length"],1)]),r.blocks["$<<"](n),r},w.$$arity=1),t.alias(V,"append","<<"),t.def(V,"$blocks?",x=function(){var t=this;return!f(t.blocks["$empty?"]())},x.$$arity=0),t.def(V,"$sections?",k=function(){var t=this;return n(t.next_section_index,0)},k.$$arity=0),t.def(V,"$number",S=function(){var e=this;try{return e.$Integer(e.numeral)}catch(n){if(!t.rescue(n,[s(U,"StandardError")]))throw n;try{return e.numeral}finally{t.pop_exception()}}},S.$$arity=0),t.def(V,"$find_by",O=function(e){var n=O.$$p,r=n||o,i=this,s=o;n&&(O.$$p=null),n&&(O.$$p=null),null==e&&(e=u([],{}));try{return d(i,"find_by_internal",[e,s=[]],r.$to_proc())}catch(l){if(!t.rescue(l,[a("::","StopIteration")]))throw l;try{return s}finally{t.pop_exception()}}},O.$$arity=-1),t.alias(V,"query","find_by"),t.def(V,"$next_adjacent_block",C=function(){var t,e=this,n=o,i=o;return e.context["$=="]("document")?o:f((n=e.parent).$context()["$=="]("dlist")?e.context["$=="]("list_item"):(n=e.parent).$context()["$=="]("dlist"))?f(i=n.$items()["$[]"](r(d(n.$items(),"find_index",[],(t=function(e,n){var r,i=t.$$s||this;return null==e&&(e=o),null==n&&(n=o),f(r=e["$include?"](i))?r:n["$=="](i)},t.$$s=e,t.$$arity=2,t)),1)))?i:n.$next_adjacent_block():f(i=n.$blocks()["$[]"](r(n.$blocks().$find_index(e),1)))?i:n.$next_adjacent_block()},C.$$arity=0),t.def(V,"$sections",A=function(){var t,e=this;return d(e.blocks,"select",[],(t=function(e){t.$$s;return null==e&&(e=o),e.$context()["$=="]("section")},t.$$s=e,t.$$arity=1,t))},A.$$arity=0),t.def(V,"$alt",E=function(){var t=this,e=o;return f(e=t.attributes["$[]"]("alt"))?e["$=="](t.attributes["$[]"]("default-alt"))?t.$sub_specialchars(e):(e=t.$sub_specialchars(e),f(s(U,"ReplaceableTextRx")["$match?"](e))?t.$sub_replacements(e):e):""},E.$$arity=0),t.def(V,"$caption",T=function(){var t=this;return t.context["$=="]("admonition")?t.attributes["$[]"]("textlabel"):t.caption},T.$$arity=0),t.def(V,"$captioned_title",P=function(){var t=this;return""+t.caption+t.$title()},P.$$arity=0),t.def(V,"$list_marker_keyword",B=function(t){var e,n=this;return null==t&&(t=o),s(U,"ORDERED_LIST_KEYWORDS")["$[]"](f(e=t)?e:n.style)},B.$$arity=-1),t.def(V,"$title",L=function(){var t,e,n=this;return n.converted_title=f(t=n.converted_title)?t:f(e=n.title)?n.$apply_title_subs(n.title):e},L.$$arity=0),t.def(V,"$title?",I=function(){var t=this;return!!f(t.title)},I.$$arity=0),t.def(V,"$title=",D=function(t){var e=this;return e.converted_title=o,e.title=t},D.$$arity=1),t.def(V,"$sub?",R=function(t){var e=this;return e.subs["$include?"](t)},R.$$arity=1),t.def(V,"$remove_sub",j=function(t){var e=this;return e.subs.$delete(t),o},j.$$arity=1),t.def(V,"$xreftext",M=function(t){var e,n,r=this,i=o,a=o,l=o,c=o,u=o;return null==t&&(t=o),f(f(e=i=r.$reftext())?i["$empty?"]()["$!"]():e)?i:f(f(e=f(n=t)?r.title:n)?r.caption:e)?function(){return a=t,"full"["$==="](a)?(l=r.$sub_placeholder(r.$sub_quotes(function(){return f(r.document.$compat_mode())?"``%s''":'"`%s`"'}()),r.$title()),f(f(e=f(n=r.numeral)?c=s(U,"CAPTION_ATTR_NAMES")["$[]"](r.context):n)?u=r.document.$attributes()["$[]"](c):e)?u+" "+r.numeral+", "+l:r.caption.$chomp(". ")+", "+l):"short"["$==="](a)?f(f(e=f(n=r.numeral)?c=s(U,"CAPTION_ATTR_NAMES")["$[]"](r.context):n)?u=r.document.$attributes()["$[]"](c):e)?u+" "+r.numeral:r.caption.$chomp(". "):r.$title()}():r.$title()},M.$$arity=-1),t.def(V,"$assign_caption",F=function(t,e){var n,r,i=this,a=o,l=o;return null==e&&(e=i.context),f(f(n=f(r=i.caption)?r:i.title["$!"]())?n:i.caption=f(r=t)?r:i.document.$attributes()["$[]"]("caption"))?o:f(f(n=a=s(U,"CAPTION_ATTR_NAMES")["$[]"](e))?l=i.document.$attributes()["$[]"](a):n)?(i.caption=l+" "+(i.numeral=i.document.$increment_and_store_counter(e+"-number",i))+". ",o):o},F.$$arity=-2),t.def(V,"$assign_numeral",N=function(n){var i,a=this,l=o,c=o,u=o,h=o;return a.next_section_index=r((l=[a.next_section_index],d(n,"index=",t.to_a(l)),l[e(l["length"],1)]),1),f(c=n.$numbered())&&((u=n.$sectname())["$=="]("appendix")?(l=[a.document.$counter("appendix-number","A")],d(n,"numeral=",t.to_a(l)),l[e(l["length"],1)],l=[function(){return f(h=a.document.$attributes()["$[]"]("appendix-caption"))?h+" "+n.$numeral()+": ":n.$numeral()+". "}()],d(n,"caption=",t.to_a(l)),l[e(l["length"],1)]):f(f(i=u["$=="]("chapter"))?i:c["$=="]("chapter"))?(l=[a.document.$counter("chapter-number",1).$to_s()],d(n,"numeral=",t.to_a(l)),l[e(l["length"],1)]):(l=[function(){return u["$=="]("part")?s(U,"Helpers").$int_to_roman(a.next_section_ordinal):a.next_section_ordinal.$to_s()}()],d(n,"numeral=",t.to_a(l)),l[e(l["length"],1)],a.next_section_ordinal=r(a.next_section_ordinal,1))),o},N.$$arity=1),t.def(V,"$reindex_sections",z=function(){var t,e=this;return e.next_section_index=0,e.next_section_ordinal=1,d(e.blocks,"each",[],(t=function(e){var n=t.$$s||this;return null==e&&(e=o),e.$context()["$=="]("section")?(n.$assign_numeral(e),e.$reindex_sections()):o},t.$$s=e,t.$$arity=1,t))},z.$$arity=0),V.$protected(),t.def(V,"$find_by_internal",H=function(e,n){var i,s,l,c,h,p,$,m,g,v,y=H.$$p,_=y||o,b=this,w=o,x=o,k=o,S=o,O=o,C=o,A=o;if(y&&(H.$$p=null),y&&(H.$$p=null),null==e&&(e=u([],{})),null==n&&(n=[]),f(f(i=f(s=f(l=f(c=w=function(){return!f(x=e["$[]"]("context"))||o}())?c:x["$=="](b.context))?f(c=(k=e["$[]"]("style"))["$!"]())?c:k["$=="](b.style):l)?f(l=(S=e["$[]"]("role"))["$!"]())?l:b["$has_role?"](S):s)?f(s=(O=e["$[]"]("id"))["$!"]())?s:O["$=="](b.id):i))if(_!==o)if(f(C=t.yield1(_,b))){if(A=C,"prune"["$==="](A))return n["$<<"](b),f(O)&&b.$raise(a("::","StopIteration")),n;if("reject"["$==="](A))return f(O)&&b.$raise(a("::","StopIteration")),n;"stop"["$==="](A)?b.$raise(a("::","StopIteration")):(n["$<<"](b),f(O)&&b.$raise(a("::","StopIteration")))}else f(O)&&b.$raise(a("::","StopIteration"));else n["$<<"](b),f(O)&&b.$raise(a("::","StopIteration"));return A=b.context,"document"["$==="](A)?x["$=="]("document")||(f(f(i=b["$header?"]())?f(s=w)?s:x["$=="]("section"):i)&&d(b.header,"find_by_internal",[e,n],_.$to_proc()),d(b.blocks,"each",[],(h=function(t){h.$$s;return null==t&&(t=o),f(x["$=="]("section")?t.$context()["$!="]("section"):x["$=="]("section"))?o:d(t,"find_by_internal",[e,n],_.$to_proc())},h.$$s=b,h.$$arity=1,h))):"dlist"["$==="](A)?f(f(i=w)?i:x["$!="]("section"))&&d(b.blocks.$flatten(),"each",[],(p=function(t){p.$$s;return null==t&&(t=o),f(t)?d(t,"find_by_internal",[e,n],_.$to_proc()):o},p.$$s=b,p.$$arity=1,p)):"table"["$==="](A)?f(e["$[]"]("traverse_documents"))?(d(b.$rows().$head(),"each",[],($=function(t){var r,i=$.$$s||this;return null==t&&(t=o),d(t,"each",[],(r=function(t){r.$$s;return null==t&&(t=o),d(t,"find_by_internal",[e,n],_.$to_proc())},r.$$s=i,r.$$arity=1,r))},$.$$s=b,$.$$arity=1,$)),x["$=="]("inner_document")&&(e=e.$merge(u(["context"],{context:"document"}))),d(r(b.$rows().$body(),b.$rows().$foot()),"each",[],(m=function(t){var r,i=m.$$s||this;return null==t&&(t=o),d(t,"each",[],(r=function(t){r.$$s;return null==t&&(t=o),d(t,"find_by_internal",[e,n],_.$to_proc()),t.$style()["$=="]("asciidoc")?d(t.$inner_document(),"find_by_internal",[e,n],_.$to_proc()):o},r.$$s=i,r.$$arity=1,r))},m.$$s=b,m.$$arity=1,m))):d(r(r(b.$rows().$head(),b.$rows().$body()),b.$rows().$foot()),"each",[],(g=function(t){var r,i=g.$$s||this;return null==t&&(t=o),d(t,"each",[],(r=function(t){r.$$s;return null==t&&(t=o),d(t,"find_by_internal",[e,n],_.$to_proc())},r.$$s=i,r.$$arity=1,r))},g.$$s=b,g.$$arity=1,g)):d(b.blocks,"each",[],(v=function(t){v.$$s;return null==t&&(t=o),f(x["$=="]("section")?t.$context()["$!="]("section"):x["$=="]("section"))?o:d(t,"find_by_internal",[e,n],_.$to_proc())},v.$$s=b,v.$$arity=1,v)),n},H.$$arity=-1)})($[0],s($,"AbstractNode"),$)}(i[0],i)},Opal.modules["asciidoctor/attribute_list"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}t.top;var i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.module),c=t.klass,u=t.hash,d=t.hash2,f=t.truthy,h=t.send;return t.add_stubs(["$new","$[]","$update","$parse","$parse_attribute","$eos?","$skip_delimiter","$+","$rekey","$each","$[]=","$-","$private","$skip_blank","$==","$peek","$parse_attribute_value","$get_byte","$start_with?","$scan_name","$!","$!=","$*","$scan_to_delimiter","$===","$include?","$delete","$split","$empty?","$apply_subs","$scan_to_quote","$gsub","$skip","$scan"]),function(i,p){var $=l(i,"Asciidoctor"),m=[$].concat(p);(function(i,l,p){var $,m,g,v,y,_,b,w,x,k,S,O,C=c(i,l,"AttributeList"),A=[C].concat(p);C.$$prototype.attributes=C.$$prototype.scanner=C.$$prototype.delimiter=C.$$prototype.block=C.$$prototype.delimiter_skip_pattern=C.$$prototype.delimiter_boundary_pattern=o,t.const_set(A[0],"BACKSLASH","\\"),t.const_set(A[0],"APOS","'"),t.const_set(A[0],"BoundaryRxs",u('"',/.*?[^\\](?=")/,s(A,"APOS"),/.*?[^\\](?=')/,",",/.*?(?=[ \t]*(,|$))/)),t.const_set(A[0],"EscapedQuotes",u('"','\\"',s(A,"APOS"),"\\'")),t.const_set(A[0],"NameRx",new RegExp(s(A,"CG_WORD")+"["+s(A,"CC_WORD")+"\\-.]*")),t.const_set(A[0],"BlankRx",/[ \t]+/),t.const_set(A[0],"SkipRxs",d([","],{",":/[ \t]*(,|$)/})),t.def(C,"$initialize",$=function(t,e,n){var r=this;return null==e&&(e=o),null==n&&(n=","),r.scanner=a("::","StringScanner").$new(t),r.block=e,r.delimiter=n,r.delimiter_skip_pattern=s(A,"SkipRxs")["$[]"](n),r.delimiter_boundary_pattern=s(A,"BoundaryRxs")["$[]"](n),r.attributes=o},$.$$arity=-2),t.def(C,"$parse_into",m=function(t,e){var n=this;return null==e&&(e=[]),t.$update(n.$parse(e))},m.$$arity=-2),t.def(C,"$parse",g=function(t){var n=this,r=o;if(null==t&&(t=[]),f(n.attributes))return n.attributes;n.attributes=d([],{}),r=0;while(f(n.$parse_attribute(r,t))){if(f(n.scanner["$eos?"]()))break;n.$skip_delimiter(),r=e(r,1)}return n.attributes},g.$$arity=-1),t.def(C,"$rekey",v=function(t){var e=this;return s(A,"AttributeList").$rekey(e.attributes,t)},v.$$arity=1),t.defs(C,"$rekey",y=function(r,i){var a,s=this,l=o;return l=0,h(i,"each",[],(a=function(i){a.$$s;var s=o,c=o;return null==i&&(i=o),l=e(l,1),f(i)&&f(s=r["$[]"](l))?(c=[i,s],h(r,"[]=",t.to_a(c)),c[n(c["length"],1)]):o},a.$$s=s,a.$$arity=1,a)),r},y.$$arity=2),C.$private(),t.def(C,"$parse_attribute",_=function(i,a){var l,c,u=this,d=o,p=o,$=o,m=o,g=o,v=o,y=o,_=o,b=o,w=o;if(null==i&&(i=0),null==a&&(a=[]),d=!1,u.$skip_blank(),(p=u.scanner.$peek(1))["$=="]('"'))$=u.$parse_attribute_value(u.scanner.$get_byte()),m=o;else if(p["$=="](s(A,"APOS")))$=u.$parse_attribute_value(u.scanner.$get_byte()),m=o,f($["$start_with?"](s(A,"APOS")))||(d=!0);else{if($=u.$scan_name(),g=0,v=o,f(u.scanner["$eos?"]())){if(!f($))return!1}else g=f(l=u.$skip_blank())?l:0,v=u.scanner.$get_byte();if(f(f(l=v["$!"]())?l:v["$=="](u.delimiter)))m=o;else if(f(f(l=v["$!="]("="))?l:$["$!"]()))$=""+$+r(" ",g)+v+u.$scan_to_delimiter(),m=o;else if(u.$skip_blank(),f(u.scanner.$peek(1)))if((v=u.scanner.$get_byte())["$=="]('"'))m=u.$parse_attribute_value(v);else if(v["$=="](s(A,"APOS")))m=u.$parse_attribute_value(v),f(m["$start_with?"](s(A,"APOS")))||(d=!0);else if(v["$=="](u.delimiter))m="";else if(m=""+v+u.$scan_to_delimiter(),m["$=="]("None"))return!0}return f(m)?(y=$,"options"["$==="](y)||"opts"["$==="](y)?f(m["$include?"](","))?(f(m["$include?"](" "))&&(m=m.$delete(" ")),h(m.$split(","),"each",[],(c=function(e){var r=c.$$s||this,i=o;return null==r.attributes&&(r.attributes=o),null==e&&(e=o),f(e["$empty?"]())?o:(i=[e+"-option",""],h(r.attributes,"[]=",t.to_a(i)),i[n(i["length"],1)])},c.$$s=u,c.$$arity=1,c))):f(m["$empty?"]())||(_=[m+"-option",""],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)]):f(f(l=d)?u.block:l)?(y=$,"title"["$==="](y)||"reftext"["$==="](y)?(_=[$,m],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)]):(_=[$,u.block.$apply_subs(m)],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)])):(_=[$,m],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)])):(b=function(){return f(f(l=d)?u.block:l)?u.block.$apply_subs($):$}(),f(w=a["$[]"](i))&&(_=[w,b],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)]),_=[e(i,1),b],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)]),!0},_.$$arity=-1),t.def(C,"$parse_attribute_value",b=function(t){var e=this,n=o;return e.scanner.$peek(1)["$=="](t)?(e.scanner.$get_byte(),""):f(n=e.$scan_to_quote(t))?(e.scanner.$get_byte(),f(n["$include?"](s(A,"BACKSLASH")))?n.$gsub(s(A,"EscapedQuotes")["$[]"](t),t):n):""+t+e.$scan_to_delimiter()},b.$$arity=1),t.def(C,"$skip_blank",w=function(){var t=this;return t.scanner.$skip(s(A,"BlankRx"))},w.$$arity=0),t.def(C,"$skip_delimiter",x=function(){var t=this;return t.scanner.$skip(t.delimiter_skip_pattern)},x.$$arity=0),t.def(C,"$scan_name",k=function(){var t=this;return t.scanner.$scan(s(A,"NameRx"))},k.$$arity=0),t.def(C,"$scan_to_delimiter",S=function(){var t=this;return t.scanner.$scan(t.delimiter_boundary_pattern)},S.$$arity=0),t.def(C,"$scan_to_quote",O=function(t){var e=this;return e.scanner.$scan(s(A,"BoundaryRxs")["$[]"](t))},O.$$arity=1)})(m[0],null,m)}(i[0],i)},Opal.modules["asciidoctor/block"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t"},m.$$arity=0)})(p[0],a(p,"AbstractBlock"),p)}(r[0],r)},Opal.modules["asciidoctor/callouts"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t<=e:t["$<="](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t0&&(s=r[0],r.splice(0,1)),null==s&&(s=i),u=o.$$smap["proxy_default"],null==u&&(u=!0),c(u)?a(_,"DefaultFactoryProxy").$new(s):a(_,"CustomFactory").$new(s)},d.$$arity=-1),t.defs(y,"$default",f=function(e){var n;return n=t.slice.call(arguments,0,arguments.length),n,a(_,"Converter")},f.$$arity=-1),t.defs(y,"$create",h=function(t,e){var n=this;return null==e&&(e=l([],{})),n.$default().$create(t,e)},h.$$arity=-2),t.def(y,"$register",p=function(n,r){var o,a,s,l=this;return o=t.slice.call(arguments,1,arguments.length),a=o,u(a,"each",[],(s=function(r){var o=s.$$s||this,a=i;return null==r&&(r=i),r["$=="]("*")?(a=[n],u(o.$registry(),"default=",t.to_a(a)),a[e(a["length"],1)]):(a=[r,n],u(o.$registry(),"[]=",t.to_a(a)),a[e(a["length"],1)])},s.$$s=l,s.$$arity=1,s))},p.$$arity=-2),t.def(y,"$for",$=function(t){var e=this;return e.$registry()["$[]"](t)},$.$$arity=1),t.def(y,"$create",m=function(t,e){var n,r,s=this,u=i,d=i,f=i;return null==e&&(e=l([],{})),c(u=s.$for(t))?(c(o("::","Class")["$==="](u))&&(u=u.$new(t,e)),c(c(n=c(r=d=e["$[]"]("template_dirs"))?a(_,"BackendTraits")["$==="](u):r)?u["$supports_templates?"]():n)?a(_,"CompositeConverter").$new(t,a(_,"TemplateConverter").$new(t,d,e),u,l(["backend_traits_source"],{backend_traits_source:u})):u):c(d=e["$[]"]("template_dirs"))?c(c(n=f=e["$[]"]("delegate_backend"))?u=s.$for(f):n)?(c(o("::","Class")["$==="](u))&&(u=u.$new(f,e)),a(_,"CompositeConverter").$new(t,a(_,"TemplateConverter").$new(t,d,e),u,l(["backend_traits_source"],{backend_traits_source:u}))):a(_,"TemplateConverter").$new(t,d,e):i},m.$$arity=-2),t.def(y,"$converters",g=function(){var t=this;return t.$registry().$merge()},g.$$arity=0),y.$private(),t.def(y,"$registry",v=function(){var t=this;return t.$raise(o("::","NotImplementedError"),a(_,"Factory")+" subclass "+t.$class()+" must implement the #registry method")},v.$$arity=0)}(b[0],b),function(n,r,o){var s,f,h=d(n,r,"CustomFactory"),p=[h].concat(o);h.$include(a(p,"Factory")),t.def(h,"$initialize",s=function(n){var r=this,o=i;return null==n&&(n=i),c(n)?(o=[n.$delete("*")],u(n,"default=",t.to_a(o)),o[e(o["length"],1)],r.registry=n):r.registry=l([],{})},s.$$arity=-1),t.def(h,"$unregister_all",f=function(){var n=this,r=i;return r=[i],u(n.$registry().$clear(),"default=",t.to_a(r)),r[e(r["length"],1)]},f.$$arity=0),h.$private(),h.$attr_reader("registry")}(b[0],null,b),function(e,n){var r,o=s(e,"DefaultFactory"),c=[o].concat(n);o.$include(a(c,"Factory")),o.$private(),t.class_variable_set(c[0],"@@registry",l([],{})),t.def(o,"$registry",r=function(){var t;return null==(t=c[0].$$cvars["@@registry"])?i:t},r.$$arity=0),a(c,"RUBY_ENGINE")["$=="]("opal")}(b[0],b),function(t,e,n){var r=d(t,e,"DefaultFactoryProxy"),i=[r].concat(n);r.$include(a(i,"DefaultFactory")),a(i,"RUBY_ENGINE")["$=="]("opal")}(b[0],a(b,"CustomFactory"),b),_.$private_class_method(c((t.defs(_,"$included",y=function(t){return t.$send("include",a(b,"BackendTraits")),t.$extend(a(b,"Config"))},y.$$arity=1),v=i&&"included"))?v:"included"),function(e,r,s){var l,u,h,p,$=d(e,r,"Base"),m=[$].concat(s);$.$$prototype.backend=i,$.$include(a(m,"Converter"),a(m,"Logging")),t.def($,"$convert",l=function(e,r,s){var l,u,d=this,h=i;null==f["!"]&&(f["!"]=i),null==r&&(r=e.$node_name()),null==s&&(s=i);try{return c(s)?d.$send(n("convert_",r),e,s):d.$send(n("convert_",r),e)}catch(p){if(!t.rescue(p,[a(m,"StandardError")]))throw p;try{return c(c(l=c(u=o("::","NoMethodError")["$==="](h=f["!"]))?h.$receiver()["$=="](d):u)?h.$name().$to_s()["$=="](r):l)||d.$raise(),d.$logger().$warn("missing convert handler for "+h.$name()+" node in "+d.backend+" backend ("+d.$class()+")"),i}finally{t.pop_exception()}}},l.$$arity=-2),t.def($,"$handles?",u=function(t){var e=this;return e["$respond_to?"]("convert_"+t)},u.$$arity=1),t.def($,"$content_only",h=function(t){return t.$content()},h.$$arity=1),t.def($,"$skip",p=function(t){return i},p.$$arity=1)}(b[0],null,b),_.$extend(a(b,"DefaultFactory"))})($[0],$)}(r[0],r)},Opal.modules["asciidoctor/document"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t=","$+","$abs","$to_i","$delete_if","$update_doctype_attributes","$cursor","$parse","$restore_attributes","$update_backend_attributes","$fetch","$fill_datetime_attributes","$activate","$create","$to_proc","$groups","$preprocessors?","$preprocessors","$process_method","$tree_processors?","$tree_processors","$!=","$counter","$nil_or_empty?","$nextval","$to_s","$value","$save_to","$register","$tap","$xreftext","$source","$source_lines","$doctitle","$sectname=","$title=","$first_section","$title","$reftext","$>","$<","$find","$context","$assign_numeral","$clear_playback_attributes","$save_attributes","$name","$negate","$rewind","$replace","$attribute_locked?","$apply_attribute_value_subs","$delete?","$start","$doctype","$content_model","$warn","$logger","$content","$convert","$postprocessors?","$postprocessors","$record","$write","$respond_to?","$chomp","$class","$write_alternate_pages","$map","$split","$resolve_docinfo_subs","$&","$normalize_system_path","$read_asset","$apply_subs","$docinfo_processors?","$join","$concat","$compact","$docinfo_processors","$object_id","$inspect","$size","$private","$=~","$resolve_pass_subs","$apply_header_subs","$limit_bytesize","$bytesize","$valid_encoding?","$byteslice","$resolve_subs","$utc","$at","$Integer","$now","$index","$strftime","$year","$utc_offset","$partition","$create_converter","$basebackend","$filetype","$htmlsyntax","$derive_backend_traits","$raise"]),function(a,g){var v=u(a,"Asciidoctor"),y=[v].concat(g);(function(a,u,g){var v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt=d(a,u,"Document"),gt=[mt].concat(g);mt.$$prototype.attributes=mt.$$prototype.safe=mt.$$prototype.sourcemap=mt.$$prototype.reader=mt.$$prototype.base_dir=mt.$$prototype.parsed=mt.$$prototype.parent_document=mt.$$prototype.extensions=mt.$$prototype.options=mt.$$prototype.counters=mt.$$prototype.catalog=mt.$$prototype.reftexts=mt.$$prototype.header=mt.$$prototype.blocks=mt.$$prototype.header_attributes=mt.$$prototype.attributes_modified=mt.$$prototype.backend=mt.$$prototype.attribute_overrides=mt.$$prototype.timings=mt.$$prototype.converter=mt.$$prototype.outfilesuffix=mt.$$prototype.docinfo_processor_extensions=mt.$$prototype.document=mt.$$prototype.max_attribute_value_size=mt.$$prototype.id=mt.$$prototype.doctype=s,t.const_set(gt[0],"ImageReference",f(l("::","Struct"),"new",["target","imagesdir"],(v=function(){var e=v.$$s||this;return t.alias(e,"to_s","target")},v.$$s=mt,v.$$arity=0,v))),t.const_set(gt[0],"Footnote",l("::","Struct").$new("index","id","text")),function(n,r,i){var o,a,l=d(n,r,"AttributeEntry");[l].concat(i);l.$attr_reader("name","value","negate"),t.def(l,"$initialize",o=function(t,e,n){var r=this;return null==n&&(n=s),r.name=t,r.value=e,r.negate=function(){return h(n["$nil?"]())?e["$nil?"]():n}()},o.$$arity=-3),t.def(l,"$save_to",a=function(n){var r,i=this,o=s;return(h(r=n["$[]"]("attribute_entries"))?r:(o=["attribute_entries",[]],f(n,"[]=",t.to_a(o)),o[e(o["length"],1)]))["$<<"](i),i},a.$$arity=1)}(gt[0],null,gt),function(e,n,r){var i,o,a,l,u=d(e,n,"Title"),f=[u].concat(r);u.$$prototype.sanitized=u.$$prototype.subtitle=u.$$prototype.combined=s,u.$attr_reader("main"),t.alias(u,"title","main"),u.$attr_reader("subtitle"),u.$attr_reader("combined"),t.def(u,"$initialize",i=function(e,n){var r,i,o=this,a=s;return null==n&&(n=p([],{})),h(h(r=o.sanitized=n["$[]"]("sanitize"))?e["$include?"]("<"):r)&&(e=e.$gsub(c(f,"XmlSanitizeRx"),"").$squeeze(" ").$strip()),h(h(r=(a=h(i=n["$[]"]("separator"))?i:":")["$empty?"]())?r:e["$include?"](a+=" ")["$!"]())?(o.main=e,o.subtitle=s):(i=e.$rpartition(a),r=t.to_ary(i),o.main=null==r[0]?s:r[0],null==r[1]?s:r[1],o.subtitle=null==r[2]?s:r[2]),o.combined=e},i.$$arity=-2),t.def(u,"$sanitized?",o=function(){var t=this;return t.sanitized},o.$$arity=0),t.def(u,"$subtitle?",a=function(){var t=this;return!!h(t.subtitle)},a.$$arity=0),t.def(u,"$to_s",l=function(){var t=this;return t.combined},l.$$arity=0)}(gt[0],null,gt),t.const_set(gt[0],"Author",l("::","Struct").$new("name","firstname","middlename","lastname","initials","email")),mt.$attr_reader("safe"),mt.$attr_reader("compat_mode"),mt.$attr_reader("backend"),mt.$attr_reader("doctype"),mt.$attr_accessor("sourcemap"),mt.$attr_reader("catalog"),t.alias(mt,"references","catalog"),mt.$attr_reader("counters"),mt.$attr_reader("header"),mt.$attr_reader("base_dir"),mt.$attr_reader("options"),mt.$attr_reader("outfilesuffix"),mt.$attr_reader("parent_document"),mt.$attr_reader("reader"),mt.$attr_reader("path_resolver"),mt.$attr_reader("converter"),mt.$attr_reader("syntax_highlighter"),mt.$attr_reader("extensions"),t.def(mt,"$initialize",y=function(i,o){var a,u,d,$,m,g,v,_,b=y.$$p,w=this,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s,I=s,D=s,R=s,j=s,M=s,F=s,N=s;return b&&(y.$$p=null),null==i&&(i=s),null==o&&(o=p([],{})),f(w,t.find_super_dispatcher(w,"initialize",y,!1),[w,"document"],null),h(x=o.$delete("parent"))?(w.parent_document=x,h(a=o["$[]"]("base_dir"))||(k=["base_dir",x.$base_dir()],f(o,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(x.$options()["$[]"]("catalog_assets"))&&(k=["catalog_assets",!0],f(o,"[]=",t.to_a(k)),k[e(k["length"],1)]),w.catalog=x.$catalog().$merge(p(["footnotes"],{footnotes:[]})),w.attribute_overrides=S=x.$attributes().$merge(),O=S.$delete("doctype"),S.$delete("compat-mode"),S.$delete("toc"),S.$delete("toc-placement"),S.$delete("toc-position"),w.safe=x.$safe(),h(w.compat_mode=x.$compat_mode())&&(k=["compat-mode",""],f(w.attributes,"[]=",t.to_a(k)),k[e(k["length"],1)]),w.outfilesuffix=x.$outfilesuffix(),w.sourcemap=x.$sourcemap(),w.timings=s,w.path_resolver=x.$path_resolver(),w.converter=x.$converter(),C=s,w.extensions=x.$extensions(),w.syntax_highlighter=x.$syntax_highlighter()):(w.parent_document=s,w.catalog=p(["ids","refs","footnotes","links","images","callouts","includes"],{ids:p([],{}),refs:p([],{}),footnotes:[],links:[],images:[],callouts:c(gt,"Callouts").$new(),includes:p([],{})}),w.attribute_overrides=S=p([],{}),f(h(a=o["$[]"]("attributes"))?a:p([],{}),"each",[],(u=function(n,r){var i;u.$$s;return null==n&&(n=s),null==r&&(r=s),h(n["$end_with?"]("@"))?h(n["$start_with?"]("!"))?(i=[n.$slice(1,e(n.$length(),2)),!1],n=i[0],r=i[1]):h(n["$end_with?"]("!@"))?(i=[n.$slice(0,e(n.$length(),2)),!1],n=i[0],r=i[1]):(i=[n.$chop(),r+"@"],n=i[0],r=i[1]):h(n["$start_with?"]("!"))?(i=[n.$slice(1,n.$length()),function(){return!r["$=="]("@")&&s}()],n=i[0],r=i[1]):h(n["$end_with?"]("!"))&&(i=[n.$chop(),function(){return!r["$=="]("@")&&s}()],n=i[0],r=i[1]),k=[n.$downcase(),r],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]},u.$$s=w,u.$$arity=2,u)),h(A=o["$[]"]("to_file"))&&(k=["outfilesuffix",c(gt,"Helpers").$extname(A)],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h((E=o["$[]"]("safe"))["$!"]())?w.safe=l(c(gt,"SafeMode"),"SECURE"):h(l("::","Integer")["$==="](E))?w.safe=E:w.safe=function(){try{return c(gt,"SafeMode").$value_for_name(E)}catch(e){if(!t.rescue(e,[c(gt,"StandardError")]))throw e;try{return l(c(gt,"SafeMode"),"SECURE")}finally{t.pop_exception()}}}(),T=o.$delete("input_mtime"),w.compat_mode=S["$key?"]("compat-mode"),w.sourcemap=o["$[]"]("sourcemap"),w.timings=o.$delete("timings"),w.path_resolver=c(gt,"PathResolver").$new(),C=function(){return!!h((d=l("::","Asciidoctor","skip_raise"))&&(a=l(d,"Extensions","skip_raise"))?"constant":s)||s}(),w.extensions=s,h(h($=o["$key?"]("header_footer"))?o["$key?"]("standalone")["$!"]():$)&&(k=["standalone",o["$[]"]("header_footer")],f(o,"[]=",t.to_a(k)),k[e(k["length"],1)])),w.parsed=w.reftexts=w.header=w.header_attributes=s,w.counters=p([],{}),w.attributes_modified=l("::","Set").$new(),w.docinfo_processor_extensions=p([],{}),P=o["$[]"]("standalone"),(w.options=o).$freeze(),B=w.attributes,k=["sectids",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["toc-placement","auto"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],h(P)?(k=["copycss",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["embedded",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]):(k=["notitle",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["embedded",""],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),k=["stylesheet",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["webfonts",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["prewrap",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["attribute-undefined",c(gt,"Compliance").$attribute_undefined()],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["attribute-missing",c(gt,"Compliance").$attribute_missing()],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["iconfont-remote",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["caution-caption","Caution"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["important-caption","Important"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["note-caption","Note"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["tip-caption","Tip"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["warning-caption","Warning"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["example-caption","Example"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["figure-caption","Figure"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["table-caption","Table"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["toc-title","Table of Contents"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["section-refsig","Section"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["part-refsig","Part"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["chapter-refsig","Chapter"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["appendix-caption",(k=["appendix-refsig","Appendix"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)])],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["untitled-label","Untitled"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["version-label","Version"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["last-update-label","Last updated"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["asciidoctor",""],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["asciidoctor-version",l(l("::","Asciidoctor"),"VERSION")],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["safe-mode-name",L=c(gt,"SafeMode").$name_for_value(w.safe)],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["safe-mode-"+L,""],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["safe-mode-level",w.safe],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],h($=S["$[]"]("max-include-depth"))||(k=["max-include-depth",64],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h($=S["$[]"]("allow-uri-read"))||(k=["allow-uri-read",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),k=["user-home",c(gt,"USER_HOME")],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],h(S["$key?"]("numbered"))&&(k=["sectnums",S.$delete("numbered")],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(S["$key?"]("hardbreaks"))&&(k=["hardbreaks-option",S.$delete("hardbreaks")],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(I=o["$[]"]("base_dir"))?w.base_dir=(k=["docdir",l("::","File").$expand_path(I)],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]):h(S["$[]"]("docdir"))?w.base_dir=S["$[]"]("docdir"):w.base_dir=(k=["docdir",l("::","Dir").$pwd()],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(D=o["$[]"]("backend"))&&(k=["backend",""+D],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(R=o["$[]"]("doctype"))&&(k=["doctype",""+R],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(n(w.safe,l(c(gt,"SafeMode"),"SERVER")))&&(h($=S["$[]"]("copycss"))||(k=["copycss",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h($=S["$[]"]("source-highlighter"))||(k=["source-highlighter",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h($=S["$[]"]("backend"))||(k=["backend",c(gt,"DEFAULT_BACKEND")],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(h($=x["$!"]())?S["$key?"]("docfile"):$)&&(k=["docfile",S["$[]"]("docfile")["$[]"](t.Range.$new(r(S["$[]"]("docdir").$length(),1),-1,!1))],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),k=["docdir",""],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["user-home","."],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],h(n(w.safe,l(c(gt,"SafeMode"),"SECURE")))&&(h(S["$key?"]("max-attribute-value-size"))||(k=["max-attribute-value-size",4096],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(S["$key?"]("linkcss"))||(k=["linkcss",""],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h($=S["$[]"]("icons"))||(k=["icons",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]))),w.max_attribute_value_size=function(){return h(j=h($=S["$[]"]("max-attribute-value-size"))?$:(k=["max-attribute-value-size",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]))?j.$to_i().$abs():s}(),f(S,"delete_if",[],(m=function(n,r){m.$$s;var i,o=s;return null==n&&(n=s),null==r&&(r=s),h(r)?(h(h(i=l("::","String")["$==="](r))?r["$end_with?"]("@"):i)&&(i=[r.$chop(),!0],r=i[0],o=i[1]),k=[n,r],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]):(B.$delete(n),o=r["$=="](!1)),o},m.$$s=w,m.$$arity=2,m)),h(x)?(w.backend=B["$[]"]("backend"),(w.doctype=(k=["doctype",O],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]))["$=="](c(gt,"DEFAULT_DOCTYPE"))||w.$update_doctype_attributes(c(gt,"DEFAULT_DOCTYPE")),w.reader=c(gt,"Reader").$new(i,o["$[]"]("cursor")),h(w.sourcemap)&&(w.source_location=w.reader.$cursor()),c(gt,"Parser").$parse(w.reader,w),w.$restore_attributes(),w.parsed=!0):(w.backend=s,(M=h($=B["$[]"]("backend"))?$:c(gt,"DEFAULT_BACKEND"))["$=="]("manpage")?w.doctype=(k=["doctype",(k=["doctype","manpage"],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)])],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]):w.doctype=h($=B["$[]"]("doctype"))?$:(k=["doctype",c(gt,"DEFAULT_DOCTYPE")],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]),w.$update_backend_attributes(M,!0),h($=B["$[]"]("stylesdir"))||(k=["stylesdir","."],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]),h($=B["$[]"]("iconsdir"))||(k=["iconsdir",B.$fetch("imagesdir","./images")+"/icons"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]),w.$fill_datetime_attributes(B,T),h(C)&&(h(F=o["$[]"]("extension_registry"))?h(h($=l(c(gt,"Extensions"),"Registry")["$==="](F))?$:h(g=(_=l("::","AsciidoctorJ","skip_raise"))&&(v=l(_,"Extensions","skip_raise"))&&l(v,"ExtensionRegistry","skip_raise")?"constant":s)?l(l(l("::","AsciidoctorJ"),"Extensions"),"ExtensionRegistry")["$==="](F):g)&&(w.extensions=F.$activate(w)):h(l("::","Proc")["$==="](N=o["$[]"]("extensions")))?w.extensions=f(c(gt,"Extensions"),"create",[],N.$to_proc()).$activate(w):h(c(gt,"Extensions").$groups()["$empty?"]()["$!"]())&&(w.extensions=l(c(gt,"Extensions"),"Registry").$new().$activate(w))),w.reader=c(gt,"PreprocessorReader").$new(w,i,l(c(gt,"Reader"),"Cursor").$new(B["$[]"]("docfile"),w.base_dir),p(["normalize"],{normalize:!0})),h(w.sourcemap)?w.source_location=w.reader.$cursor():s)},y.$$arity=-1),t.def(mt,"$parse",_=function(t){var e,n,r,i=this,o=s,a=s;return null==t&&(t=s),h(i.parsed)?i:(o=i,h(t)&&(i.reader=c(gt,"PreprocessorReader").$new(o,t,l(c(gt,"Reader"),"Cursor").$new(i.attributes["$[]"]("docfile"),i.base_dir),p(["normalize"],{normalize:!0})),h(i.sourcemap)&&(i.source_location=i.reader.$cursor())),h(h(e=a=function(){return h(i.parent_document)?s:i.extensions}())?a["$preprocessors?"]():e)&&f(a.$preprocessors(),"each",[],(n=function(t){var e,r=n.$$s||this;return null==r.reader&&(r.reader=s),null==t&&(t=s),r.reader=h(e=t.$process_method()["$[]"](o,r.reader))?e:r.reader},n.$$s=i,n.$$arity=1,n)),c(gt,"Parser").$parse(i.reader,o,p(["header_only"],{header_only:i.options["$[]"]("parse_header_only")})),i.$restore_attributes(),h(h(e=a)?a["$tree_processors?"]():e)&&f(a.$tree_processors(),"each",[],(r=function(t){r.$$s;var e,n,i=s;return null==t&&(t=s),h(h(e=h(n=i=t.$process_method()["$[]"](o))?c(gt,"Document")["$==="](i):n)?i["$!="](o):e)?o=i:s},r.$$s=i,r.$$arity=1,r)),i.parsed=!0,o)},_.$$arity=-1),t.def(mt,"$parsed?",b=function(){var t=this;return t.parsed},b.$$arity=0),t.def(mt,"$counter",w=function(n,r){var i,o=this,a=s,l=s,u=s;return null==r&&(r=s),h(o.parent_document)?o.parent_document.$counter(n,r):h(h(i=a=(l=o.attributes["$[]"](n))["$nil_or_empty?"]()["$!"]())?o.counters["$key?"](n):i)?(u=[n,(u=[n,c(gt,"Helpers").$nextval(l)],f(o.counters,"[]=",t.to_a(u)),u[e(u["length"],1)])],f(o.attributes,"[]=",t.to_a(u)),u[e(u["length"],1)]):h(r)?(u=[n,(u=[n,function(){return r["$=="](r.$to_i().$to_s())?r.$to_i():r}()],f(o.counters,"[]=",t.to_a(u)),u[e(u["length"],1)])],f(o.attributes,"[]=",t.to_a(u)),u[e(u["length"],1)]):(u=[n,(u=[n,c(gt,"Helpers").$nextval(function(){return h(a)?l:0}())],f(o.counters,"[]=",t.to_a(u)),u[e(u["length"],1)])],f(o.attributes,"[]=",t.to_a(u)),u[e(u["length"],1)])},w.$$arity=-2),t.def(mt,"$increment_and_store_counter",x=function(t,e){var n=this;return c(gt,"AttributeEntry").$new(t,n.$counter(t)).$save_to(e.$attributes()).$value()},x.$$arity=2),t.alias(mt,"counter_increment","increment_and_store_counter"),t.def(mt,"$register",k=function(n,r){var i=this,o=s,a=s,l=s,u=s,d=s;return function(){return o=n,"ids"["$==="](o)?i.$register("refs",[a=r["$[]"](0),c(gt,"Inline").$new(i,"anchor",r["$[]"](1),p(["type","id"],{type:"ref",id:a}))]):"refs"["$==="](o)?(l=i.catalog["$[]"]("refs"),h(l["$[]"](r["$[]"](0)))||(u=[r["$[]"](0),d=r["$[]"](1)],f(l,"[]=",t.to_a(u)),u[e(u["length"],1)]),d):"footnotes"["$==="](o)?i.catalog["$[]"](n)["$<<"](r):h(i.options["$[]"]("catalog_assets"))?i.catalog["$[]"](n)["$<<"](function(){return n["$=="]("images")?c(gt,"ImageReference").$new(r,i.attributes["$[]"]("imagesdir")):r}()):s}()},k.$$arity=2),t.def(mt,"$resolve_id",S=function(n){var r,i,o=this,a=s;return h(o.reftexts)?o.reftexts["$[]"](n):h(o.parsed)?f(o.reftexts=p([],{}),"tap",[],(r=function(n){var i,o=r.$$s||this;return null==o.catalog&&(o.catalog=s),null==n&&(n=s),f(o.catalog["$[]"]("refs"),"each",[],(i=function(r,o){i.$$s;var a,l=s;return null==r&&(r=s),null==o&&(o=s),h(a=n["$[]"](o.$xreftext()))?a:(l=[o.$xreftext(),r],f(n,"[]=",t.to_a(l)),l[e(l["length"],1)])},i.$$s=o,i.$$arity=2,i))},r.$$s=o,r.$$arity=1,r))["$[]"](n):(a=s,function(){var r=t.new_brk();try{f(o.reftexts=p([],{}),"tap",[],(i=function(r){var o,l=i.$$s||this;return null==l.catalog&&(l.catalog=s),null==r&&(r=s),function(){var i=t.new_brk();try{return f(l.catalog["$[]"]("refs"),"each",[],(o=function(l,c){o.$$s;var u,d=s,p=s;if(null==l&&(l=s),null==c&&(c=s),!(d=c.$xreftext())["$=="](n))return h(u=r["$[]"](d))?u:(p=[d,l],f(r,"[]=",t.to_a(p)),p[e(p["length"],1)]);t.brk(a=l,i)},o.$$s=l,o.$$brk=i,o.$$arity=2,o))}catch(c){if(c===i)return c.$v;throw c}}()},i.$$s=o,i.$$brk=r,i.$$arity=1,i))}catch(l){if(l===r)return l.$v;throw l}}(),o.reftexts=s,a)},S.$$arity=1),t.def(mt,"$footnotes?",O=function(){var t=this;return!h(t.catalog["$[]"]("footnotes")["$empty?"]())},O.$$arity=0),t.def(mt,"$footnotes",C=function(){var t=this;return t.catalog["$[]"]("footnotes")},C.$$arity=0),t.def(mt,"$callouts",A=function(){var t=this;return t.catalog["$[]"]("callouts")},A.$$arity=0),t.def(mt,"$nested?",E=function(){var t=this;return!!h(t.parent_document)},E.$$arity=0),t.def(mt,"$embedded?",T=function(){var t=this;return t.attributes["$key?"]("embedded")},T.$$arity=0),t.def(mt,"$extensions?",P=function(){var t=this;return!!h(t.extensions)},P.$$arity=0),t.def(mt,"$source",B=function(){var t=this;return h(t.reader)?t.reader.$source():s},B.$$arity=0),t.def(mt,"$source_lines",L=function(){var t=this;return h(t.reader)?t.reader.$source_lines():s},L.$$arity=0),t.def(mt,"$basebackend?",I=function(t){var e=this;return e.attributes["$[]"]("basebackend")["$=="](t)},I.$$arity=1),t.def(mt,"$title",D=function(){var t=this;return t.$doctitle()},D.$$arity=0),t.def(mt,"$title=",R=function(n){var r=this,i=s,o=s;return h(i=r.header)||(o=["header"],f(i=r.header=c(gt,"Section").$new(r,0),"sectname=",t.to_a(o)),o[e(o["length"],1)]),o=[n],f(i,"title=",t.to_a(o)),o[e(o["length"],1)]},R.$$arity=1),t.def(mt,"$doctitle",j=function(t){var e,n=this,r=s,i=s,o=s;if(null==t&&(t=p([],{})),h(r=n.attributes["$[]"]("title")));else if(h(i=n.$first_section()))r=i.$title();else if(h((h(e=t["$[]"]("use_fallback"))?r=n.attributes["$[]"]("untitled-label"):e)["$!"]()))return s;return h(o=t["$[]"]("partition"))?c(gt,"Title").$new(r,t.$merge(p(["separator"],{separator:function(){return o["$=="](!0)?n.attributes["$[]"]("title-separator"):o}()}))):h(h(e=t["$[]"]("sanitize"))?r["$include?"]("<"):e)?r.$gsub(c(gt,"XmlSanitizeRx"),"").$squeeze(" ").$strip():r},j.$$arity=-1),t.alias(mt,"name","doctitle"),t.def(mt,"$xreftext",M=function(t){var e,n=this,r=s;return null==t&&(t=s),h(h(e=r=n.$reftext())?r["$empty?"]()["$!"]():e)?r:n.$title()},M.$$arity=-1),t.def(mt,"$author",F=function(){var t=this;return t.attributes["$[]"]("author")},F.$$arity=0),t.def(mt,"$authors",N=function(){var t,e=this,n=s,a=s,l=s,u=s;if(h((n=e.attributes)["$key?"]("author"))){if(a=[c(gt,"Author").$new(n["$[]"]("author"),n["$[]"]("firstname"),n["$[]"]("middlename"),n["$[]"]("lastname"),n["$[]"]("authorinitials"),n["$[]"]("email"))],h(i(l=h(t=n["$[]"]("authorcount"))?t:0,1))){u=1;while(h(o(u,l)))u=r(u,1),a["$<<"](c(gt,"Author").$new(n["$[]"]("author_"+u),n["$[]"]("firstname_"+u),n["$[]"]("middlename_"+u),n["$[]"]("lastname_"+u),n["$[]"]("authorinitials_"+u),n["$[]"]("email_"+u)))}return a}return[]},N.$$arity=0),t.def(mt,"$revdate",z=function(){var t=this;return t.attributes["$[]"]("revdate")},z.$$arity=0),t.def(mt,"$notitle",H=function(){var t,e=this;return h(t=e.attributes["$key?"]("showtitle")["$!"]())?e.attributes["$key?"]("notitle"):t},H.$$arity=0),t.def(mt,"$noheader",V=function(){var t=this;return t.attributes["$key?"]("noheader")},V.$$arity=0),t.def(mt,"$nofooter",U=function(){var t=this;return t.attributes["$key?"]("nofooter")},U.$$arity=0),t.def(mt,"$first_section",q=function(){var t,e,n=this;return h(t=n.header)?t:f(n.blocks,"find",[],(e=function(t){e.$$s;return null==t&&(t=s),t.$context()["$=="]("section")},e.$$s=n,e.$$arity=1,e))},q.$$arity=0),t.def(mt,"$header?",W=function(){var t=this;return!!h(t.header)},W.$$arity=0),t.alias(mt,"has_header?","header?"),t.def(mt,"$<<",G=function(e){var n=G.$$p,r=this,i=s,o=s,a=s;for(n&&(G.$$p=null),o=0,a=arguments.length,i=new Array(a);o"},at.$$arity=0),mt.$private(),t.def(mt,"$apply_attribute_value_subs",st=function(t){var e,n=this;return h(c(gt,"AttributeEntryPassMacroRx")["$=~"](t))?(t=(e=$["~"])===s?s:e["$[]"](2),h((e=$["~"])===s?s:e["$[]"](1))&&(t=n.$apply_subs(t,n.$resolve_pass_subs((e=$["~"])===s?s:e["$[]"](1))))):t=n.$apply_header_subs(t),h(n.max_attribute_value_size)?n.$limit_bytesize(t,n.max_attribute_value_size):t},st.$$arity=1),t.def(mt,"$limit_bytesize",lt=function(t,n){if(h(i(t.$bytesize(),n)))while(!h((t=t.$byteslice(0,n))["$valid_encoding?"]()))n=e(n,1);return t},lt.$$arity=2),t.def(mt,"$resolve_docinfo_subs",ct=function(){var t=this;return h(t.attributes["$key?"]("docinfosubs"))?t.$resolve_subs(t.attributes["$[]"]("docinfosubs"),"block",s,"docinfo"):["attributes"]},ct.$$arity=0),t.def(mt,"$create_converter",ut=function(n,r){var i,o=this,a=s,u=s,d=s,$=s,g=s;return a=p(["document","htmlsyntax"],{document:o,htmlsyntax:o.attributes["$[]"]("htmlsyntax")}),h(u=h(i=(d=o.options)["$[]"]("template_dirs"))?i:d["$[]"]("template_dir"))&&($=["template_dirs",[].concat(t.to_a(u))],f(a,"[]=",t.to_a($)),$[e($["length"],1)],$=["template_cache",d.$fetch("template_cache",!0)],f(a,"[]=",t.to_a($)),$[e($["length"],1)],$=["template_engine",d["$[]"]("template_engine")],f(a,"[]=",t.to_a($)),$[e($["length"],1)],$=["template_engine_options",d["$[]"]("template_engine_options")],f(a,"[]=",t.to_a($)),$[e($["length"],1)],$=["eruby",d["$[]"]("eruby")],f(a,"[]=",t.to_a($)),$[e($["length"],1)],$=["safe",o.safe],f(a,"[]=",t.to_a($)),$[e($["length"],1)],h(r)&&($=["delegate_backend",r],f(a,"[]=",t.to_a($)),$[e($["length"],1)])),h(g=d["$[]"]("converter"))?l(c(gt,"Converter"),"CustomFactory").$new(m(n,g)).$create(n,a):d.$fetch("converter_factory",c(gt,"Converter")).$create(n,a)},ut.$$arity=2),t.def(mt,"$clear_playback_attributes",dt=function(t){return t.$delete("attribute_entries")},dt.$$arity=1),t.def(mt,"$save_attributes",ft=function(){var n,r,i=this,o=s,a=s,u=s,d=s,$=s,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s;return h(h(n=(o=i.attributes)["$key?"]("doctitle"))?n:(a=i.$doctitle())["$!"]())||(u=["doctitle",a],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]),i.id=h(n=i.id)?n:o["$[]"]("css-signature"),h(d=function(){return h(o.$delete("toc2"))?"left":o["$[]"]("toc")}())&&($=function(){return h(h(n=m=o.$fetch("toc-placement","macro"))?m["$!="]("auto"):n)?m:o["$[]"]("toc-position")}(),h(h(n=d["$empty?"]())?$["$nil_or_empty?"]():n)||(g="left",v="toc2",y=function(){return h($["$nil_or_empty?"]())?h(d["$empty?"]())?g:d:$}(),u=["toc",""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],u=["toc-placement","auto"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],_=y,"left"["$==="](_)||"<"["$==="](_)||"<"["$==="](_)?(u=["toc-position","left"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]):"right"["$==="](_)||">"["$==="](_)||">"["$==="](_)?(u=["toc-position","right"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]):"top"["$==="](_)||"^"["$==="](_)?(u=["toc-position","top"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]):"bottom"["$==="](_)||"v"["$==="](_)?(u=["toc-position","bottom"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]):"preamble"["$==="](_)||"macro"["$==="](_)?(u=["toc-position","content"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],u=["toc-placement",y],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],v=s):(o.$delete("toc-position"),v=s),h(v)&&(h(n=o["$[]"]("toc-class"))||(u=["toc-class",v],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)])))),h(h(n=b=o["$[]"]("icons"))?o["$key?"]("icontype")["$!"]():n)&&(_=b,""["$==="](_)||"font"["$==="](_)||(u=["icons",""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],b["$=="]("image")||(u=["icontype",b],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]))),h(i.compat_mode=o["$key?"]("compat-mode"))&&h(o["$key?"]("language"))&&(u=["source-language",o["$[]"]("language")],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]),h(i.parent_document)||((w=o["$[]"]("basebackend"))["$=="]("html")?h(h(n=x=o["$[]"]("source-highlighter"))?o["$[]"](x+"-unavailable")["$!"]():n)&&(h(k=i.options["$[]"]("syntax_highlighter_factory"))?i.syntax_highlighter=k.$create(x,i.backend,p(["document"],{document:i})):h(S=i.options["$[]"]("syntax_highlighters"))?i.syntax_highlighter=l(c(gt,"SyntaxHighlighter"),"DefaultFactoryProxy").$new(S).$create(x,i.backend,p(["document"],{document:i})):i.syntax_highlighter=c(gt,"SyntaxHighlighter").$create(x,i.backend,p(["document"],{document:i}))):w["$=="]("docbook")&&(h(h(n=i["$attribute_locked?"]("toc"))?n:i.attributes_modified["$include?"]("toc"))||(u=["toc",""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]),h(h(n=i["$attribute_locked?"]("sectnums"))?n:i.attributes_modified["$include?"]("sectnums"))||(u=["sectnums",""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)])),i.outfilesuffix=o["$[]"]("outfilesuffix"),f(c(gt,"FLEXIBLE_ATTRIBUTES"),"each",[],(r=function(t){var e,n=r.$$s||this;return null==n.attribute_overrides&&(n.attribute_overrides=s),null==t&&(t=s),h(h(e=n.attribute_overrides["$key?"](t))?n.attribute_overrides["$[]"](t):e)?n.attribute_overrides.$delete(t):s},r.$$s=i,r.$$arity=1,r))),i.header_attributes=o.$merge()},ft.$$arity=0),t.def(mt,"$fill_datetime_attributes",ht=function(n,r){var i,o,a=this,c=s,u=s,d=s,p=s,$=s,m=s,g=s;return c=function(){return h(l("::","ENV")["$key?"]("SOURCE_DATE_EPOCH"))?u=l("::","Time").$at(a.$Integer(l("::","ENV")["$[]"]("SOURCE_DATE_EPOCH"))).$utc():l("::","Time").$now()}(),h(d=n["$[]"]("localdate"))?h(i=n["$[]"]("localyear"))||(p=["localyear",function(){return d.$index("-")["$=="](4)?d.$slice(0,4):s}()],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]):(p=["localdate",c.$strftime("%F")],f(n,"[]=",t.to_a(p)),d=p[e(p["length"],1)],h(i=n["$[]"]("localyear"))||(p=["localyear",c.$year().$to_s()],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)])),$=h(i=n["$[]"]("localtime"))?i:(p=["localtime",c.$strftime("%T "+function(){return c.$utc_offset()["$=="](0)?"UTC":"%z"}())],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]),h(i=n["$[]"]("localdatetime"))||(p=["localdatetime",d+" "+$],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]),r=h(i=h(o=u)?o:r)?i:c,h(m=n["$[]"]("docdate"))?h(i=n["$[]"]("docyear"))||(p=["docyear",function(){return m.$index("-")["$=="](4)?m.$slice(0,4):s}()],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]):(p=["docdate",r.$strftime("%F")],f(n,"[]=",t.to_a(p)),m=p[e(p["length"],1)],h(i=n["$[]"]("docyear"))||(p=["docyear",r.$year().$to_s()],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)])),g=h(i=n["$[]"]("doctime"))?i:(p=["doctime",r.$strftime("%T "+function(){return r.$utc_offset()["$=="](0)?"UTC":"%z"}())],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]),h(i=n["$[]"]("docdatetime"))||(p=["docdatetime",m+" "+g],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]),s},ht.$$arity=2),t.def(mt,"$update_backend_attributes",pt=function(n,r){var i,o,a=this,u=s,d=s,p=s,$=s,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s;return null==r&&(r=s),h(h(i=r)?i:n["$!="](a.backend))?(u=a.backend,d=(p=a.attributes)["$[]"]("basebackend"),$=a.doctype,h(n["$include?"](":"))&&(o=n.$partition(":"),i=t.to_ary(o),m=null==i[0]?s:i[0],null==i[1]?s:i[1],n=null==i[2]?s:i[2]),h(n["$start_with?"]("xhtml"))?(g=["htmlsyntax","xml"],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],n=n.$slice(1,n.$length())):h(n["$start_with?"]("html"))&&(h(i=p["$[]"]("htmlsyntax"))||(g=["htmlsyntax","html"],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)])),n=h(i=c(gt,"BACKEND_ALIASES")["$[]"](n))?i:n,h(m)&&(i=[m,n],n=i[0],v=i[1]),h($)?(h(u)&&(p.$delete("backend-"+u),p.$delete("backend-"+u+"-doctype-"+$)),g=["backend-"+n+"-doctype-"+$,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["doctype-"+$,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]):h(u)&&p.$delete("backend-"+u),g=["backend-"+n,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],a.backend=(g=["backend",n],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]),h(l(c(gt,"Converter"),"BackendTraits")["$==="](y=a.$create_converter(n,v)))?(_=y.$basebackend(),b=y.$filetype(),h(w=y.$htmlsyntax())&&(g=["htmlsyntax",w],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]),h(r)?h(i=p["$[]"]("outfilesuffix"))||(g=["outfilesuffix",y.$outfilesuffix()],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]):h(a["$attribute_locked?"]("outfilesuffix"))||(g=["outfilesuffix",y.$outfilesuffix()],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)])):h(y)?(x=c(gt,"Converter").$derive_backend_traits(n),_=x["$[]"]("basebackend"),b=x["$[]"]("filetype"),h(r)?h(i=p["$[]"]("outfilesuffix"))||(g=["outfilesuffix",x["$[]"]("outfilesuffix")],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]):h(a["$attribute_locked?"]("outfilesuffix"))||(g=["outfilesuffix",x["$[]"]("outfilesuffix")],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)])):a.$raise(l("::","NotImplementedError"),"asciidoctor: FAILED: missing converter for backend '"+n+"'. Processing aborted."),a.converter=y,h(k=p["$[]"]("filetype"))&&p.$delete("filetype-"+k),g=["filetype",b],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["filetype-"+b,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],h(S=c(gt,"DEFAULT_PAGE_WIDTHS")["$[]"](_))?(g=["pagewidth",S],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]):p.$delete("pagewidth"),h(_["$!="](d))&&(h($)?(h(d)&&(p.$delete("basebackend-"+d),p.$delete("basebackend-"+d+"-doctype-"+$)),g=["basebackend-"+_+"-doctype-"+$,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]):h(d)&&p.$delete("basebackend-"+d),g=["basebackend-"+_,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["basebackend",_],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]),n):s},pt.$$arity=-2),t.def(mt,"$update_doctype_attributes",$t=function(n){var r,i=this,o=s,a=s,l=s,c=s,u=s;return h(h(r=n)?n["$!="](i.doctype):r)?(r=[i.backend,(o=i.attributes)["$[]"]("basebackend"),i.doctype],a=r[0],l=r[1],c=r[2],h(c)?(o.$delete("doctype-"+c),h(a)&&(o.$delete("backend-"+a+"-doctype-"+c),u=["backend-"+a+"-doctype-"+n,""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]),h(l)&&(o.$delete("basebackend-"+l+"-doctype-"+c),u=["basebackend-"+l+"-doctype-"+n,""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)])):(h(a)&&(u=["backend-"+a+"-doctype-"+n,""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]),h(l)&&(u=["basebackend-"+l+"-doctype-"+n,""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)])),u=["doctype-"+n,""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],i.doctype=(u=["doctype",n],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)])):s},$t.$$arity=1)})(y[0],c(y,"AbstractBlock"),y)}(a[0],a)},Opal.modules["asciidoctor/inline"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.module),o=t.klass,a=t.hash2,s=t.send,l=t.truthy;return t.add_stubs(["$attr_accessor","$attr_reader","$[]","$convert","$converter","$attr","$==","$apply_reftext_subs","$reftext"]),function(e,c){var u=i(e,"Asciidoctor"),d=[u].concat(c);(function(e,r,i){var c,u,d,f,h,p,$,m,g=o(e,r,"Inline");[g].concat(i);g.$$prototype.text=g.$$prototype.type=n,g.$attr_accessor("text"),g.$attr_reader("type"),g.$attr_accessor("target"),t.def(g,"$initialize",c=function(e,r,i,o){var l=c.$$p,u=this;return l&&(c.$$p=null),null==i&&(i=n),null==o&&(o=a([],{})),s(u,t.find_super_dispatcher(u,"initialize",c,!1),[e,r,o],null),u.node_name="inline_"+r,u.text=i,u.id=o["$[]"]("id"),u.type=o["$[]"]("type"),u.target=o["$[]"]("target")},c.$$arity=-3),t.def(g,"$block?",u=function(){return!1},u.$$arity=0),t.def(g,"$inline?",d=function(){return!0},d.$$arity=0),t.def(g,"$convert",f=function(){var t=this;return t.$converter().$convert(t)},f.$$arity=0),t.alias(g,"render","convert"),t.def(g,"$alt",h=function(){var t,e=this;return l(t=e.$attr("alt"))?t:""},h.$$arity=0),t.def(g,"$reftext?",p=function(){var t,e,n=this;return l(t=n.text)?l(e=n.type["$=="]("ref"))?e:n.type["$=="]("bibref"):t},p.$$arity=0),t.def(g,"$reftext",$=function(){var t=this,e=n;return l(e=t.text)?t.$apply_reftext_subs(e):n},$.$$arity=0),t.def(g,"$xreftext",m=function(t){var e=this;return null==t&&(t=n),e.$reftext()},m.$$arity=-1)})(d[0],r(d,"AbstractNode"),d)}(e[0],e)},Opal.modules["asciidoctor/list"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.module),o=t.klass,a=t.hash2,s=t.send,l=t.truthy;return t.add_stubs(["$==","$next_list","$callouts","$class","$object_id","$inspect","$size","$items","$attr_accessor","$level","$drop","$nil_or_empty?","$apply_subs","$empty?","$===","$[]","$outline?","$!","$simple?","$source","$shift","$context","$parent"]),function(e,c){var u=i(e,"Asciidoctor"),d=[u].concat(c);(function(e,r,i){var c,u,d,f,h=o(e,r,"List");[h].concat(i);h.$$prototype.context=h.$$prototype.document=h.$$prototype.style=n,t.alias(h,"items","blocks"),t.alias(h,"content","blocks"),t.alias(h,"items?","blocks?"),t.def(h,"$initialize",c=function(e,r,i){var o=c.$$p,l=this,u=n,d=n,f=n;for(o&&(c.$$p=null),d=0,f=arguments.length,u=new Array(f);d"},f.$$arity=0)})(d[0],r(d,"AbstractBlock"),d),function(e,i,a){var c,u,d,f,h,p,$,m,g=o(e,i,"ListItem"),v=[g].concat(a);g.$$prototype.text=g.$$prototype.subs=g.$$prototype.blocks=n,t.alias(g,"list","parent"),g.$attr_accessor("marker"),t.def(g,"$initialize",c=function(e,i){var o=c.$$p,a=this;return o&&(c.$$p=null),null==i&&(i=n),s(a,t.find_super_dispatcher(a,"initialize",c,!1),[e,"list_item"],null),a.text=i,a.level=e.$level(),a.subs=r(v,"NORMAL_SUBS").$drop(0)},c.$$arity=-2),t.def(g,"$text?",u=function(){var t=this;return!l(t.text["$nil_or_empty?"]())},u.$$arity=0),t.def(g,"$text",d=function(){var t,e=this;return l(t=e.text)?e.$apply_subs(e.text,e.subs):t},d.$$arity=0),t.def(g,"$text=",f=function(t){var e=this;return e.text=t},f.$$arity=1),t.def(g,"$simple?",h=function(){var t,e,i=this,o=n;return l(t=i.blocks["$empty?"]())?t:l(e=i.blocks.$size()["$=="](1)?r(v,"List")["$==="](o=i.blocks["$[]"](0)):i.blocks.$size()["$=="](1))?o["$outline?"]():e},h.$$arity=0),t.def(g,"$compound?",p=function(){var t=this;return t["$simple?"]()["$!"]()},p.$$arity=0),t.def(g,"$fold_first",$=function(){var t=this;return t.text=function(){return l(t.text["$nil_or_empty?"]())?t.blocks.$shift().$source():""+t.text+r(v,"LF")+t.blocks.$shift().$source()}(),n},$.$$arity=0),t.def(g,"$to_s",m=function(){var t,e=this;return"#<"+e.$class()+"@"+e.$object_id()+" {list_context: "+e.$parent().$context().$inspect()+", text: "+e.text.$inspect()+", blocks: "+(l(t=e.blocks)?t:[]).$size()+"}>"},m.$$arity=0)}(d[0],r(d,"AbstractBlock"),d)}(e[0],e)},Opal.modules["asciidoctor/parser"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?te:t["$>"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}t.top;var a=[],s=t.nil,l=t.const_get_qualified,c=t.const_get_relative,u=(t.breaker,t.slice,t.module),d=t.klass,f=t.send,h=t.truthy,p=t.hash2,$=t.gvars;return t.add_stubs(["$include","$new","$proc","$start_with?","$match?","$is_delimited_block?","$private_class_method","$parse_document_header","$[]","$has_more_lines?","$next_section","$assign_numeral","$<<","$blocks","$parse_block_metadata_lines","$attributes","$is_next_line_doctitle?","$finalize_header","$nil_or_empty?","$title=","$-","$sourcemap","$cursor","$parse_section_title","$id=","$apply_header_subs","$[]=","$source_location=","$header","$attribute_locked?","$id","$clear","$delete","$instance_variable_get","$parse_header_metadata","$include?","$==","$!","$register","$doctype","$parse_manpage_header","$=~","$downcase","$sub_attributes","$error","$logger","$message_with_context","$cursor_at_line","$backend","$skip_blank_lines","$save","$update","$is_next_line_section?","$initialize_section","$join","$map","$read_lines_until","$lstrip","$title","$split","$restore_save","$discard_save","$context","$empty?","$header?","$!=","$attr?","$attr","$key?","$document","$+","$level","$special","$sectname","$to_i","$<","$>","$warn","$next_block","$blocks?","$style","$context=","$style=","$parent=","$size","$content_model","$shift","$unwrap_standalone_preamble","$merge","$fetch","$parse_block_metadata_line","$extensions","$block_macros?","$mark","$read_line","$terminator","$to_s","$masq","$to_sym","$registered_for_block?","$debug?","$debug","$cursor_at_mark","$strict_verbatim_paragraphs","$unshift_line","$markdown_syntax","$keys","$chr","$uniform?","$length","$end_with?","$===","$parse_attributes","$attribute_missing","$tr","$basename","$assign_caption","$registered_for_block_macro?","$config","$process_method","$replace","$parse_callout_list","$callouts","$parse_list","$parse_description_list","$underline_style_section_titles","$is_section_title?","$peek_line","$atx_section_title?","$generate_id","$level=","$read_paragraph_lines","$adjust_indentation!","$map!","$slice","$pop","$build_block","$apply_subs","$chop","$catalog_inline_anchors","$rekey","$index","$strip","$parse_table","$each","$raise","$title?","$update_attributes","$commit_subs","$sub?","$catalog_callouts","$source","$remove_sub","$block_terminates_paragraph","$to_proc","$nil?","$lines","$parse_blocks","$parse_list_item","$items","$scan","$gsub","$count","$advance","$dup","$match","$callout_ids","$next_list","$catalog_inline_anchor","$source_location","$marker=","$catalog_inline_biblio_anchor","$set_option","$text=","$resolve_ordered_list_marker","$read_lines_for_list_item","$skip_line_comments","$unshift_lines","$fold_first","$text?","$is_sibling_list_item?","$concat","$find","$casecmp","$sectname=","$special=","$numbered=","$numbered","$lineno","$peek_lines","$setext_section_title?","$abs","$cursor_at_prev_line","$process_attribute_entries","$next_line_empty?","$process_authors","$rstrip","$each_with_index","$compact","$squeeze","$to_a","$parse_style_attribute","$process_attribute_entry","$skip_comment_lines","$store_attribute","$sanitize_attribute_name","$set_attribute","$save_to","$delete_attribute","$ord","$int_to_roman","$resolve_list_marker","$parse_colspecs","$create_columns","$format","$starts_with_delimiter?","$close_open_cell","$parse_cellspec","$delimiter","$match_delimiter","$pre_match","$post_match","$buffer_has_unclosed_quotes?","$skip_past_delimiter","$buffer","$buffer=","$skip_past_escaped_delimiter","$keep_cell_open","$push_cellspec","$close_cell","$cell_open?","$columns","$assign_column_widths","$has_header_option=","$partition_header_footer","$upto","$partition","$shorthand_property_syntax","$each_char","$yield_buffered_attribute","$any?","$*","$each_byte","$%"]),function(a,m){var g=u(a,"Asciidoctor"),v=[g].concat(m);(function(a,u,m){var g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct=d(a,u,"Parser"),ut=[ct].concat(m);ct.$include(c(ut,"Logging")),t.const_set(ut[0],"BlockMatchData",c(ut,"Struct").$new("context","masq","tip","terminator")),t.const_set(ut[0],"TAB","\t"),t.const_set(ut[0],"TabIndentRx",/^\t+/),t.const_set(ut[0],"StartOfBlockProc",f(ct,"proc",[],(g=function(t){var e,n,r=g.$$s||this;return null==t&&(t=s),h(e=h(n=t["$start_with?"]("["))?c(ut,"BlockAttributeLineRx")["$match?"](t):n)?e:r["$is_delimited_block?"](t)},g.$$s=ct,g.$$arity=1,g))),t.const_set(ut[0],"StartOfListProc",f(ct,"proc",[],(v=function(t){v.$$s;return null==t&&(t=s),c(ut,"AnyListRx")["$match?"](t)},v.$$s=ct,v.$$arity=1,v))),t.const_set(ut[0],"StartOfBlockOrListProc",f(ct,"proc",[],(y=function(t){var e,n,r,i=y.$$s||this;return null==t&&(t=s),h(e=h(n=i["$is_delimited_block?"](t))?n:h(r=t["$start_with?"]("["))?c(ut,"BlockAttributeLineRx")["$match?"](t):r)?e:c(ut,"AnyListRx")["$match?"](t)},y.$$s=ct,y.$$arity=1,y))),t.const_set(ut[0],"NoOp",s),t.const_set(ut[0],"AuthorKeys",["author","authorinitials","firstname","middlename","lastname","email"]),t.const_set(ut[0],"TableCellHorzAlignments",p(["<",">","^"],{"<":"left",">":"right","^":"center"})),t.const_set(ut[0],"TableCellVertAlignments",p(["<",">","^"],{"<":"top",">":"bottom","^":"middle"})),t.const_set(ut[0],"TableCellStyles",p(["d","s","e","m","h","l","a"],{d:"none",s:"strong",e:"emphasis",m:"monospaced",h:"header",l:"literal",a:"asciidoc"})),ct.$private_class_method("new"),t.defs(ct,"$parse",_=function(e,n,r){var i,o,a=this,l=s,c=s;if(null==r&&(r=p([],{})),l=a.$parse_document_header(e,n),h(r["$[]"]("header_only")));else while(h(e["$has_more_lines?"]()))o=a.$next_section(e,n,l),i=t.to_ary(o),c=null==i[0]?s:i[0],l=null==i[1]?s:i[1],h(c)&&(n.$assign_numeral(c),n.$blocks()["$<<"](c));return n},_.$$arity=-3),t.defs(ct,"$parse_document_header",b=function(n,r){var i,o,a=this,l=s,c=s,u=s,d=s,p=s,$=s,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s;return l=a.$parse_block_metadata_lines(n,r),c=r.$attributes(),h(h(i=u=a["$is_next_line_doctitle?"](n,l,c["$[]"]("leveloffset")))?l["$[]"]("title"):i)?r.$finalize_header(l,!1):(h((d=c["$[]"]("doctitle"))["$nil_or_empty?"]())||(p=[$=d],f(r,"title=",t.to_a(p)),p[e(p["length"],1)]),h(u)&&(h(r.$sourcemap())&&(m=n.$cursor()),o=a.$parse_section_title(n,r),i=t.to_ary(o),r["$id="](null==i[0]?s:i[0]),null==i[1]?s:i[1],g=null==i[2]?s:i[2],null==i[3]?s:i[3],v=null==i[4]?s:i[4],h($)?g=s:(p=[g],f(r,"title=",t.to_a(p)),p[e(p["length"],1)],p=["doctitle",$=r.$apply_header_subs(g)],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)]),h(m)&&(p=[m],f(r.$header(),"source_location=",t.to_a(p)),p[e(p["length"],1)]),h(h(i=v)?i:r["$attribute_locked?"]("compat-mode"))||(p=["compat-mode",""],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)]),h(y=l["$[]"]("separator"))&&(h(r["$attribute_locked?"]("title-separator"))||(p=["title-separator",y],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)])),h(_=l["$[]"]("id"))?(p=[_],f(r,"id=",t.to_a(p)),p[e(p["length"],1)]):_=r.$id(),h(b=l["$[]"]("role"))&&(p=["role",b],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)]),h(w=l["$[]"]("reftext"))&&(p=["reftext",w],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)]),l.$clear(),(x=r.$instance_variable_get("@attributes_modified")).$delete("doctitle"),a.$parse_header_metadata(n,r),h(x["$include?"]("doctitle"))?h(h(i=(d=c["$[]"]("doctitle"))["$nil_or_empty?"]())?i:d["$=="]($))?(p=["doctitle",$],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)]):(p=[d],f(r,"title=",t.to_a(p)),p[e(p["length"],1)]):h(g["$!"]())&&x["$<<"]("doctitle"),h(_)&&r.$register("refs",[_,r])),r.$doctype()["$=="]("manpage")&&a.$parse_manpage_header(n,r,l),r.$finalize_header(l))},b.$$arity=2),t.defs(ct,"$parse_manpage_header",w=function(n,r,i){var o,a,l,u,d=this,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s;return h(c(ut,"ManpageTitleVolnumRx")["$=~"]((m=r.$attributes())["$[]"]("doctitle")))?(g=["manvolnum",v=(o=$["~"])===s?s:o["$[]"](2)],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["mantitle",function(){return h((y=(o=$["~"])===s?s:o["$[]"](1))["$include?"](c(ut,"ATTR_REF_HEAD")))?r.$sub_attributes(y):y}().$downcase()],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)]):(d.$logger().$error(d.$message_with_context("non-conforming manpage title",p(["source_location"],{source_location:n.$cursor_at_line(1)}))),g=["mantitle",h(o=h(a=m["$[]"]("doctitle"))?a:m["$[]"]("docname"))?o:"command"],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["manvolnum",v="1"],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)]),h(h(o=_=m["$[]"]("manname"))?m["$[]"]("manpurpose"):o)?(h(o=m["$[]"]("manname-title"))||(g=["manname-title","Name"],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)]),g=["mannames",[_]],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],r.$backend()["$=="]("manpage")&&(g=["docname",_],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["outfilesuffix","."+v],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)])):(n.$skip_blank_lines(),n.$save(),i.$update(d.$parse_block_metadata_lines(n,r)),h(b=d["$is_next_line_section?"](n,p([],{})))?b["$=="](1)?(w=d.$initialize_section(n,r,p([],{})),x=f(n.$read_lines_until(p(["break_on_blank_lines","skip_line_comments"],{break_on_blank_lines:!0,skip_line_comments:!0})),"map",[],(l=function(t){l.$$s;return null==t&&(t=s),t.$lstrip()},l.$$s=d,l.$$arity=1,l)).$join(" "),h(c(ut,"ManpageNamePurposeRx")["$=~"](x))?(h(o=m["$[]"]("manname-title"))||(g=["manname-title",w.$title()],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)]),h(w.$id())&&(g=["manname-id",w.$id()],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)]),g=["manpurpose",(o=$["~"])===s?s:o["$[]"](2)],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],h((_=(o=$["~"])===s?s:o["$[]"](1))["$include?"](c(ut,"ATTR_REF_HEAD")))&&(_=r.$sub_attributes(_)),h(_["$include?"](","))?_=(k=f(_.$split(","),"map",[],(u=function(t){u.$$s;return null==t&&(t=s),t.$lstrip()},u.$$s=d,u.$$arity=1,u)))["$[]"](0):k=[_],g=["manname",_],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["mannames",k],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],r.$backend()["$=="]("manpage")&&(g=["docname",_],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["outfilesuffix","."+v],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)])):S="non-conforming name section body"):S="name section must be at level 1":S="name section expected",h(S)?(n.$restore_save(),d.$logger().$error(d.$message_with_context(S,p(["source_location"],{source_location:n.$cursor()}))),g=["manname",_=h(o=m["$[]"]("docname"))?o:"command"],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["mannames",[_]],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],r.$backend()["$=="]("manpage")&&(g=["docname",_],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["outfilesuffix","."+v],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)])):n.$discard_save()),s},w.$$arity=3),t.defs(ct,"$next_section",x=function(o,a,l){var u,d,$,m,g=this,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s,I=s,D=s,R=s,j=s;null==l&&(l=p([],{})),v=y=_=!1,h(h(u=(d=a.$context()["$=="]("document"))?a.$blocks()["$empty?"]():a.$context()["$=="]("document"))?h(d=h($=b=a["$header?"]())?$:l.$delete("invalid-header"))?d:g["$is_next_line_section?"](o,l)["$!"]():u)?(w=(x=a).$doctype()["$=="]("book"),h(h(u=b)?u:h(d=w)?l["$[]"](1)["$!="]("abstract"):d)&&(v=y=c(ut,"Block").$new(a,"preamble",p(["content_model"],{content_model:"compound"})),h(h(u=w)?a["$attr?"]("preface-title"):u)&&(k=[a.$attr("preface-title")],f(v,"title=",t.to_a(k)),k[e(k["length"],1)]),a.$blocks()["$<<"](v)),S=a,O=0,h(a.$attributes()["$key?"]("fragment"))?C=-1:h(w)?(u=[1,0],C=u[0],A=u[1]):C=1):(w=(x=a.$document()).$doctype()["$=="]("book"),S=g.$initialize_section(o,a,l),l=function(){return h(E=l["$[]"]("title"))?p(["title"],{title:E}):p([],{})}(),C=n(O=S.$level(),1),O["$=="](0)?_=w:h((u=O["$=="](1))?S.$special():O["$=="](1))&&(h(h(u=h(d=(T=S.$sectname())["$=="]("appendix"))?d:T["$=="]("preface"))?u:T["$=="]("abstract"))||(C=s))),o.$skip_blank_lines();while(h(o["$has_more_lines?"]())){if(g.$parse_block_metadata_lines(o,x,l),h(P=g["$is_next_line_section?"](o,l)))if(h(x["$attr?"]("leveloffset"))&&(P=n(P,x.$attr("leveloffset").$to_i()),h(r(P,0))&&(P=0)),h(i(P,O)))h(C)?h(h(d=h($=P["$=="](C))?$:h(m=A)?P["$=="](A):m)?d:r(C,0))||(B=function(){return h(A)?"expected levels "+A+" or "+C:"expected level "+C}(),g.$logger().$warn(g.$message_with_context("section title out of sequence: "+B+", got level "+P,p(["source_location"],{source_location:o.$cursor()})))):g.$logger().$error(g.$message_with_context(T+" sections do not support nested sections",p(["source_location"],{source_location:o.$cursor()}))),$=g.$next_section(o,S,l),d=t.to_ary($),L=null==d[0]?s:d[0],l=null==d[1]?s:d[1],S.$assign_numeral(L),S.$blocks()["$<<"](L);else{if(!h((d=P["$=="](0))?S["$=="](x):P["$=="](0)))break;h(w)||g.$logger().$error(g.$message_with_context("level 0 sections can only be used when doctype is book",p(["source_location"],{source_location:o.$cursor()}))),$=g.$next_section(o,S,l),d=t.to_ary($),L=null==d[0]?s:d[0],l=null==d[1]?s:d[1],S.$assign_numeral(L),S.$blocks()["$<<"](L)}else I=o.$cursor(),h(D=g.$next_block(o,h(d=y)?d:S,l,p(["parse_metadata"],{parse_metadata:!1})))&&(h(_)&&(h(S["$blocks?"]()["$!"]())?h(D.$style()["$!="]("partintro"))&&(D.$context()["$=="]("paragraph")?(k=["open"],f(D,"context=",t.to_a(k)),k[e(k["length"],1)],k=["partintro"],f(D,"style=",t.to_a(k)),k[e(k["length"],1)]):(k=[y=c(ut,"Block").$new(S,"open",p(["content_model"],{content_model:"compound"}))],f(D,"parent=",t.to_a(k)),k[e(k["length"],1)],k=["partintro"],f(y,"style=",t.to_a(k)),k[e(k["length"],1)],S.$blocks()["$<<"](y))):S.$blocks().$size()["$=="](1)&&(R=S.$blocks()["$[]"](0),h(h(d=y["$!"]())?R.$content_model()["$=="]("compound"):d)?g.$logger().$error(g.$message_with_context("illegal block content outside of partintro block",p(["source_location"],{source_location:I}))):h(R.$content_model()["$!="]("compound"))&&(k=[y=c(ut,"Block").$new(S,"open",p(["content_model"],{content_model:"compound"}))],f(D,"parent=",t.to_a(k)),k[e(k["length"],1)],k=["partintro"],f(y,"style=",t.to_a(k)),k[e(k["length"],1)],S.$blocks().$shift(),R.$style()["$=="]("partintro")&&(k=["paragraph"],f(R,"context=",t.to_a(k)),k[e(k["length"],1)],k=[s],f(R,"style=",t.to_a(k)),k[e(k["length"],1)]),y["$<<"](R),S.$blocks()["$<<"](y)))),(h(d=y)?d:S).$blocks()["$<<"](D),l.$clear());if(!h(d=o.$skip_blank_lines()))break}if(h(_))h(h(u=S["$blocks?"]())?S.$blocks()["$[]"](-1).$context()["$=="]("section"):u)||g.$logger().$error(g.$message_with_context("invalid part, must have at least one section (e.g., chapter, appendix, etc.)",p(["source_location"],{source_location:o.$cursor()})));else if(h(v))if(h(v["$blocks?"]()))if(h(h(u=h(d=w)?d:x.$blocks()["$[]"](1))?u:c(ut,"Compliance").$unwrap_standalone_preamble()["$!"]()));else{x.$blocks().$shift();while(h(j=v.$blocks().$shift()))x["$<<"](j)}else x.$blocks().$shift();return[function(){return h(S["$!="](a))?S:s}(),l.$merge()]},x.$$arity=-3),t.defs(ct,"$next_block",k=function(o,a,l,u){try{var d,m,g,v,y,_,b,w=this,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s,I=s,D=s,R=s,j=s,M=s,F=s,N=s,z=s,H=s,V=s,U=s,q=s,W=s,G=s,Y=s,K=s,X=s,Z=s,J=s,Q=s,tt=s,et=s,nt=s,rt=s,it=s,ot=s,at=s,st=s,lt=s,ct=s,dt=s,ft=s,ht=s,pt=s,$t=s,mt=s,gt=s,vt=s,yt=s;if(null==$["~"]&&($["~"]=s),null==l&&(l=p([],{})),null==u&&(u=p([],{})),!h(x=o.$skip_blank_lines()))return s;if(h(h(d=k=u["$[]"]("text_only"))?i(x,0):d)&&(u.$delete("text_only"),k=s),S=a.$document(),h(u.$fetch("parse_metadata",!0)))while(h(w.$parse_block_metadata_line(o,S,l,u)))o.$shift(),h(m=o.$skip_blank_lines())||t.ret(s);if(h(O=S.$extensions())&&(d=[O["$blocks?"](),O["$block_macros?"]()],C=d[0],A=d[1]),o.$mark(),d=[o.$read_line(),S.$attributes(),l["$[]"](1)],E=d[0],T=d[1],P=d[2],B=L=I=D=s,h(R=w["$is_delimited_block?"](E,!0))&&(L=I=R.$context(),D=R.$terminator(),h(P)?P["$=="](L.$to_s())||(h(R.$masq()["$include?"](P))?L=P.$to_sym():h(h(d=R.$masq()["$include?"]("admonition"))?c(ut,"ADMONITION_STYLES")["$include?"](P):d)?L="admonition":h(h(d=C)?O["$registered_for_block?"](P,L):d)?L=P.$to_sym():(h(w.$logger()["$debug?"]())&&w.$logger().$debug(w.$message_with_context("unknown style for "+L+" block: "+P,p(["source_location"],{source_location:o.$cursor_at_mark()}))),P=L.$to_s())):(j=["style",L.$to_s()],f(l,"[]=",t.to_a(j)),P=j[e(j["length"],1)])),h(R));else while(h(!0)){if(h(h(m=h(g=P)?c(ut,"Compliance").$strict_verbatim_paragraphs():g)?c(ut,"VERBATIM_STYLES")["$include?"](P):m)){L=P.$to_sym(),o.$unshift_line(E);break}if(h(k))M=E["$start_with?"](" ",c(ut,"TAB"));else if(F=c(ut,"Compliance").$markdown_syntax(),h(E["$start_with?"](" "))){if(m=[!0," "],M=m[0],N=m[1],h(h(m=h(g=F)?f(E.$lstrip(),"start_with?",t.to_a(c(ut,"MARKDOWN_THEMATIC_BREAK_CHARS").$keys())):g)?c(ut,"MarkdownThematicBreakRx")["$match?"](E):m)){B=c(ut,"Block").$new(a,"thematic_break",p(["content_model"],{content_model:"empty"}));break}}else if(h(E["$start_with?"](c(ut,"TAB"))))m=[!0,c(ut,"TAB")],M=m[0],N=m[1];else{if(m=[!1,E.$chr()],M=m[0],N=m[1],z=function(){return h(F)?c(ut,"HYBRID_LAYOUT_BREAK_CHARS"):c(ut,"LAYOUT_BREAK_CHARS")}(),h(h(m=z["$key?"](N))?function(){return h(F)?c(ut,"ExtLayoutBreakRx")["$match?"](E):h(g=w["$uniform?"](E,N,H=E.$length()))?i(H,2):g}():m)){B=c(ut,"Block").$new(a,z["$[]"](N),p(["content_model"],{content_model:"empty"}));break}if(h(h(m=E["$end_with?"]("]"))?E["$include?"]("::"):m)){if(h(h(m=h(g=N["$=="]("i"))?g:E["$start_with?"]("video:","audio:"))?c(ut,"BlockMediaMacroRx")["$=~"](E):m)){if(m=[((g=$["~"])===s?s:g["$[]"](1)).$to_sym(),(g=$["~"])===s?s:g["$[]"](2),(g=$["~"])===s?s:g["$[]"](3)],V=m[0],U=m[1],q=m[2],B=c(ut,"Block").$new(a,V,p(["content_model"],{content_model:"empty"})),h(q)&&(W=V,G="video"["$==="](W)?["poster","width","height"]:"audio"["$==="](W)?[]:["alt","width","height"],B.$parse_attributes(q,G,p(["sub_input","into"],{sub_input:!0,into:l}))),h(l["$key?"]("style"))&&l.$delete("style"),h(U["$include?"](c(ut,"ATTR_REF_HEAD")))){if(h(h(m=h(g=(Y=B.$sub_attributes(U))["$empty?"]())?(h(v=T["$[]"]("attribute-missing"))?v:c(ut,"Compliance").$attribute_missing())["$=="]("drop-line"):g)?B.$sub_attributes(n(U," "),p(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]():m))return l.$clear(),s;U=Y}V["$=="]("image")&&(S.$register("images",U),j=["imagesdir",T["$[]"]("imagesdir")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],h(m=l["$[]"]("alt"))||(j=["alt",h(g=P)?g:(j=["default-alt",c(ut,"Helpers").$basename(U,!0).$tr("_-"," ")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h((K=l.$delete("scaledwidth"))["$nil_or_empty?"]())||(j=["scaledwidth",function(){return h(c(ut,"TrailingDigitsRx")["$match?"](K))?K+"%":K}()],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(l["$[]"]("title"))&&(j=[X=l.$delete("title")],f(B,"title=",t.to_a(j)),j[e(j["length"],1)],B.$assign_caption(l.$delete("caption"),"figure"))),j=["target",U],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)];break}if(h(h(m=(g=N["$=="]("t"))?E["$start_with?"]("toc:"):N["$=="]("t"))?c(ut,"BlockTocMacroRx")["$=~"](E):m)){B=c(ut,"Block").$new(a,"toc",p(["content_model"],{content_model:"empty"})),h((m=$["~"])===s?s:m["$[]"](1))&&B.$parse_attributes((m=$["~"])===s?s:m["$[]"](1),[],p(["into"],{into:l}));break}if(h(function(){return h(A)?h(m=h(g=c(ut,"CustomBlockMacroRx")["$=~"](E))?Z=O["$registered_for_block_macro?"]((v=$["~"])===s?s:v["$[]"](1)):g)?m:J=w.$logger()["$debug?"]():h(m=w.$logger()["$debug?"]())?J=c(ut,"CustomBlockMacroRx")["$=~"](E):m}())){if(!h(J)){if(Q=(m=$["~"])===s?s:m["$[]"](3),h((U=(m=$["~"])===s?s:m["$[]"](2))["$include?"](c(ut,"ATTR_REF_HEAD")))){if(h(h(m=h(g=(Y=a.$sub_attributes(U))["$empty?"]())?(h(v=T["$[]"]("attribute-missing"))?v:c(ut,"Compliance").$attribute_missing())["$=="]("drop-line"):g)?a.$sub_attributes(n(U," "),p(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]():m))return l.$clear(),s;U=Y}if((tt=Z.$config())["$[]"]("content_model")["$=="]("attributes")?h(Q)&&S.$parse_attributes(Q,h(m=h(g=tt["$[]"]("positional_attrs"))?g:tt["$[]"]("pos_attrs"))?m:[],p(["sub_input","into"],{sub_input:!0,into:l})):(j=["text",h(m=Q)?m:""],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(et=tt["$[]"]("default_attrs"))&&f(l,"update",[et],(y=function(t,e){y.$$s;return null==t&&(t=s),null==e&&(e=s),e},y.$$s=w,y.$$arity=2,y)),h(B=Z.$process_method()["$[]"](a,U,l))){l.$replace(B.$attributes());break}return l.$clear(),s}w.$logger().$debug(w.$message_with_context("unknown name for block macro: "+((m=$["~"])===s?s:m["$[]"](1)),p(["source_location"],{source_location:o.$cursor_at_mark()})))}}}if(h(h(m=h(g=M["$!"]())?(N=h(v=N)?v:E.$chr())["$=="]("<"):g)?c(ut,"CalloutListRx")["$=~"](E):m)){o.$unshift_line(E),B=w.$parse_callout_list(o,$["~"],a,S.$callouts()),j=["style","arabic"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)];break}if(h(c(ut,"UnorderedListRx")["$match?"](E))){o.$unshift_line(E),h(h(m=h(g=P["$!"]())?c(ut,"Section")["$==="](a):g)?a.$sectname()["$=="]("bibliography"):m)&&(j=["style",P="bibliography"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),B=w.$parse_list(o,"ulist",a,P);break}if(h(c(ut,"OrderedListRx")["$match?"](E))){o.$unshift_line(E),B=w.$parse_list(o,"olist",a,P),h(B.$style())&&(j=["style",B.$style()],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]);break}if(h(h(m=h(g=E["$include?"]("::"))?g:E["$include?"](";;"))?c(ut,"DescriptionListRx")["$=~"](E):m)){o.$unshift_line(E),B=w.$parse_description_list(o,$["~"],a);break}if(h(h(m=h(g=P["$=="]("float"))?g:P["$=="]("discrete"))?function(){return h(c(ut,"Compliance").$underline_style_section_titles())?w["$is_section_title?"](E,o.$peek_line()):h(g=M["$!"]())?w["$atx_section_title?"](E):g}():m)){o.$unshift_line(E),g=w.$parse_section_title(o,S,l["$[]"]("id")),m=t.to_ary(g),nt=null==m[0]?s:m[0],rt=null==m[1]?s:m[1],X=null==m[2]?s:m[2],it=null==m[3]?s:m[3],h(rt)&&(j=["reftext",rt],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),B=c(ut,"Block").$new(a,"floating_title",p(["content_model"],{content_model:"empty"})),j=[X],f(B,"title=",t.to_a(j)),j[e(j["length"],1)],l.$delete("title"),j=[h(m=nt)?m:function(){return h(T["$key?"]("sectids"))?c(ut,"Section").$generate_id(B.$title(),S):s}()],f(B,"id=",t.to_a(j)),j[e(j["length"],1)],j=[it],f(B,"level=",t.to_a(j)),j[e(j["length"],1)];break}if(h(h(m=P)?P["$!="]("normal"):m)){if(h(c(ut,"PARAGRAPH_STYLES")["$include?"](P))){L=P.$to_sym(),I="paragraph",o.$unshift_line(E);break}if(h(c(ut,"ADMONITION_STYLES")["$include?"](P))){L="admonition",I="paragraph",o.$unshift_line(E);break}if(h(h(m=C)?O["$registered_for_block?"](P,"paragraph"):m)){L=P.$to_sym(),I="paragraph",o.$unshift_line(E);break}h(w.$logger()["$debug?"]())&&w.$logger().$debug(w.$message_with_context("unknown style for paragraph: "+P,p(["source_location"],{source_location:o.$cursor_at_mark()}))),P=s}if(o.$unshift_line(E),h(h(m=M)?P["$!"]():m))ot=w.$read_paragraph_lines(o,at=function(){return x["$=="](0)?u["$[]"]("list_type"):s}(),p(["skip_line_comments"],{skip_line_comments:k})),w["$adjust_indentation!"](ot),B=h(h(m=k)?m:at["$=="]("dlist"))?c(ut,"Block").$new(a,"paragraph",p(["content_model","source","attributes"],{content_model:"simple",source:ot,attributes:l})):c(ut,"Block").$new(a,"literal",p(["content_model","source","attributes"],{content_model:"verbatim",source:ot,attributes:l}));else{if(ot=w.$read_paragraph_lines(o,(m=x["$=="](0))?u["$[]"]("list_type"):x["$=="](0),p(["skip_line_comments"],{skip_line_comments:!0})),h(k))h(h(m=M)?P["$=="]("normal"):m)&&w["$adjust_indentation!"](ot),B=c(ut,"Block").$new(a,"paragraph",p(["content_model","source","attributes"],{content_model:"simple",source:ot,attributes:l}));else if(h(h(m=h(g=c(ut,"ADMONITION_STYLE_HEADS")["$include?"](N))?E["$include?"](":"):g)?c(ut,"AdmonitionParagraphRx")["$=~"](E):m))j=[0,(m=$["~"])===s?s:m.$post_match()],f(ot,"[]=",t.to_a(j)),j[e(j["length"],1)],j=["name",st=(j=["style",(m=$["~"])===s?s:m["$[]"](1)],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]).$downcase()],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],j=["textlabel",h(m=l.$delete("caption"))?m:T["$[]"](st+"-caption")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],B=c(ut,"Block").$new(a,"admonition",p(["content_model","source","attributes"],{content_model:"simple",source:ot,attributes:l}));else if(h(h(m=h(g=F)?N["$=="](">"):g)?E["$start_with?"]("> "):m)){if(f(ot,"map!",[],(_=function(t){_.$$s;return null==t&&(t=s),t["$=="](">")?t.$slice(1,t.$length()):h(t["$start_with?"]("> "))?t.$slice(2,t.$length()):t},_.$$s=w,_.$$arity=1,_)),h(ot["$[]"](-1)["$start_with?"]("-- ")))if(lt=(lt=ot.$pop()).$slice(3,lt.$length()),h(ot["$empty?"]()));else while(h(ot["$[]"](-1)["$empty?"]()))ot.$pop();j=["style","quote"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],B=w.$build_block("quote","compound",!1,a,c(ut,"Reader").$new(ot),l),h(lt)&&(g=B.$apply_subs(lt).$split(", ",2),m=t.to_ary(g),ct=null==m[0]?s:m[0],dt=null==m[1]?s:m[1],h(ct)&&(j=["attribution",ct],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(dt)&&(j=["citetitle",dt],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]))}else if(h(h(m=h(g=(v=N["$=="]('"'))?i(ot.$size(),1):N["$=="]('"'))?ot["$[]"](-1)["$start_with?"]("-- "):g)?ot["$[]"](-2)["$end_with?"]('"'):m)){j=[0,E.$slice(1,E.$length())],f(ot,"[]=",t.to_a(j)),j[e(j["length"],1)],lt=(lt=ot.$pop()).$slice(3,lt.$length());while(h(ot["$[]"](-1)["$empty?"]()))ot.$pop();ot["$<<"](ot.$pop().$chop()),j=["style","quote"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],B=c(ut,"Block").$new(a,"quote",p(["content_model","source","attributes"],{content_model:"simple",source:ot,attributes:l})),g=B.$apply_subs(lt).$split(", ",2),m=t.to_ary(g),ct=null==m[0]?s:m[0],dt=null==m[1]?s:m[1],h(ct)&&(j=["attribution",ct],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(dt)&&(j=["citetitle",dt],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])}else h(h(m=M)?P["$=="]("normal"):m)&&w["$adjust_indentation!"](ot),B=c(ut,"Block").$new(a,"paragraph",p(["content_model","source","attributes"],{content_model:"simple",source:ot,attributes:l}));w.$catalog_inline_anchors(ot.$join(c(ut,"LF")),B,S,o)}break}if(h(B));else if(W=L,"listing"["$==="](W)||"source"["$==="](W))h(h(d=L["$=="]("source"))?d:h(m=l["$[]"](1)["$!"]())?ft=h(g=l["$[]"](2))?g:T["$[]"]("source-language"):m)&&(h(ft)?(j=["style","source"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],j=["language",ft],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],c(ut,"AttributeList").$rekey(l,[s,s,"linenums"])):(c(ut,"AttributeList").$rekey(l,[s,"language","linenums"]),h(l["$key?"]("language"))||h(T["$key?"]("source-language"))&&(j=["language",T["$[]"]("source-language")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])),h(l["$key?"]("linenums"))||h(h(d=l["$[]"]("linenums-option"))?d:T["$[]"]("source-linenums-option"))&&(j=["linenums",""],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(l["$key?"]("indent"))||h(T["$key?"]("source-indent"))&&(j=["indent",T["$[]"]("source-indent")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])),B=w.$build_block("listing","verbatim",D,a,o,l);else if("fenced_code"["$==="](W))j=["style","source"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],h(i(H=E.$length(),3))&&(h(ht=(ft=E.$slice(3,H)).$index(","))?h(i(ht,0))?(ft=ft.$slice(0,ht).$strip(),h(r(ht,e(H,4)))&&(j=["linenums",""],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])):h(i(H,4))&&(j=["linenums",""],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]):ft=ft.$lstrip()),h(ft["$nil_or_empty?"]())?h(T["$key?"]("source-language"))&&(j=["language",T["$[]"]("source-language")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]):(j=["language",ft],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(l["$key?"]("linenums"))||h(h(d=l["$[]"]("linenums-option"))?d:T["$[]"]("source-linenums-option"))&&(j=["linenums",""],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(l["$key?"]("indent"))||h(T["$key?"]("source-indent"))&&(j=["indent",T["$[]"]("source-indent")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),D=D.$slice(0,3),B=w.$build_block("listing","verbatim",D,a,o,l);else if("table"["$==="](W))pt=o.$cursor(),$t=c(ut,"Reader").$new(o.$read_lines_until(p(["terminator","skip_line_comments","context","cursor"],{terminator:D,skip_line_comments:!0,context:"table",cursor:"at_mark"})),pt),h(D["$start_with?"]("|","!"))||h(d=l["$[]"]("format"))||(j=["format",function(){return h(D["$start_with?"](","))?"csv":"dsv"}()],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),B=w.$parse_table($t,a,l);else if("sidebar"["$==="](W))B=w.$build_block(L,"compound",D,a,o,l);else if("admonition"["$==="](W))j=["name",st=P.$downcase()],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],j=["textlabel",h(d=l.$delete("caption"))?d:T["$[]"](st+"-caption")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],B=w.$build_block(L,"compound",D,a,o,l);else if("open"["$==="](W)||"abstract"["$==="](W)||"partintro"["$==="](W))B=w.$build_block("open","compound",D,a,o,l);else if("literal"["$==="](W))B=w.$build_block(L,"verbatim",D,a,o,l);else if("example"["$==="](W))B=w.$build_block(L,"compound",D,a,o,l);else if("quote"["$==="](W)||"verse"["$==="](W))c(ut,"AttributeList").$rekey(l,[s,"attribution","citetitle"]),B=w.$build_block(L,function(){return L["$=="]("verse")?"verbatim":"compound"}(),D,a,o,l);else if("stem"["$==="](W)||"latexmath"["$==="](W)||"asciimath"["$==="](W))L["$=="]("stem")&&(j=["style",c(ut,"STEM_TYPE_ALIASES")["$[]"](h(d=l["$[]"](2))?d:T["$[]"]("stem"))],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),B=w.$build_block("stem","raw",D,a,o,l);else if("pass"["$==="](W))B=w.$build_block(L,"raw",D,a,o,l);else{if("comment"["$==="](W))return w.$build_block(L,"skip",D,a,o,l),l.$clear(),s;if(h(h(d=C)?Z=O["$registered_for_block?"](L,I):d)){if((mt=(tt=Z.$config())["$[]"]("content_model"))["$=="]("skip")||(h((gt=h(d=tt["$[]"]("positional_attrs"))?d:tt["$[]"]("pos_attrs"))["$nil_or_empty?"]())||c(ut,"AttributeList").$rekey(l,n([s],gt)),h(et=tt["$[]"]("default_attrs"))&&f(et,"each",[],(b=function(n,r){var i;b.$$s;return null==n&&(n=s),null==r&&(r=s),h(i=l["$[]"](n))?i:(j=[n,r],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])},b.$$s=w,b.$$arity=2,b)),j=["cloaked-context",I],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),!h(B=w.$build_block(L,mt,D,a,o,l,p(["extension"],{extension:Z}))))return l.$clear(),s}else w.$raise("Unsupported block type "+L+" at "+o.$cursor())}return h(S.$sourcemap())&&(j=[o.$cursor_at_mark()],f(B,"source_location=",t.to_a(j)),j[e(j["length"],1)]),h(l["$[]"]("title"))&&(j=[X=l.$delete("title")],f(B,"title=",t.to_a(j)),j[e(j["length"],1)],h(h(d=vt=c(ut,"CAPTION_ATTR_NAMES")["$[]"](B.$context()))?S.$attributes()["$[]"](vt):d)&&B.$assign_caption(l.$delete("caption"))),j=[l["$[]"]("style")],f(B,"style=",t.to_a(j)),j[e(j["length"],1)],h(yt=h(d=B.$id())?d:(j=[l["$[]"]("id")],f(B,"id=",t.to_a(j)),j[e(j["length"],1)]))&&(h(function(){return h(X)?X["$include?"](c(ut,"ATTR_REF_HEAD")):B["$title?"]()}())&&B.$title(),h(S.$register("refs",[yt,B]))||w.$logger().$warn(w.$message_with_context("id assigned to block already in use: "+yt,p(["source_location"],{source_location:o.$cursor_at_mark()})))),h(l["$empty?"]())||B.$update_attributes(l),B.$commit_subs(),h(B["$sub?"]("callouts"))&&(h(w.$catalog_callouts(B.$source(),S))||B.$remove_sub("callouts")),B}catch(_t){if(_t===t.returner)return _t.$v;throw _t}},k.$$arity=-3),t.defs(ct,"$read_paragraph_lines",S=function(n,r,i){var o=s,a=s;return null==i&&(i=p([],{})),o=["break_on_blank_lines",!0],f(i,"[]=",t.to_a(o)),o[e(o["length"],1)],o=["break_on_list_continuation",!0],f(i,"[]=",t.to_a(o)),o[e(o["length"],1)],o=["preserve_last_line",!0],f(i,"[]=",t.to_a(o)),o[e(o["length"],1)],a=function(){return h(r)?h(c(ut,"Compliance").$block_terminates_paragraph())?c(ut,"StartOfBlockOrListProc"):c(ut,"StartOfListProc"):h(c(ut,"Compliance").$block_terminates_paragraph())?c(ut,"StartOfBlockProc"):c(ut,"NoOp")}(),f(n,"read_lines_until",[i],a.$to_proc())},S.$$arity=-3),t.defs(ct,"$is_delimited_block?",O=function(n,o){var a,l,u=this,d=s,f=s,p=s,$=s,m=s;if(null==o&&(o=s),!h(h(a=i(d=n.$length(),1))?c(ut,"DELIMITED_BLOCK_HEADS")["$[]"](n.$slice(0,2)):a))return s;if(d["$=="](2))f=n,p=2;else if(h(r(d,5))?(f=n,p=d):f=n.$slice(0,p=4),h(h(a=c(ut,"Compliance").$markdown_syntax())?f["$start_with?"]("`"):a)){if(p["$=="](4)){if(f["$=="]("````"))return s;if(!(f=f.$chop())["$=="]("```"))return s;n=f,d=p=3}else if(!f["$=="]("```"))return s}else if(p["$=="](3))return s;return l=c(ut,"DELIMITED_BLOCKS")["$[]"](f),a=t.to_ary(l),$=null==a[0]?s:a[0],m=null==a[1]?s:a[1],h(h(a=$)?h(l=d["$=="](p))?l:u["$uniform?"](n.$slice(1,d),c(ut,"DELIMITED_BLOCK_TAILS")["$[]"](f),e(d,1)):a)?!h(o)||c(ut,"BlockMatchData").$new($,m,f,n):s},O.$$arity=-2),t.defs(ct,"$build_block",C=function(t,e,n,r,o,a,l){var u,d=this,f=s,$=s,m=s,g=s,v=s,y=s,_=s,b=s,w=s;if(null==l&&(l=p([],{})),e["$=="]("skip")?(u=[!0,"simple"],f=u[0],$=u[1]):e["$=="]("raw")?(u=[!1,"simple"],f=u[0],$=u[1]):(u=[!1,e],f=u[0],$=u[1]),h(n["$nil?"]())?($["$=="]("verbatim")?m=o.$read_lines_until(p(["break_on_blank_lines","break_on_list_continuation"],{break_on_blank_lines:!0,break_on_list_continuation:!0})):(e["$=="]("compound")&&(e="simple"),m=d.$read_paragraph_lines(o,!1,p(["skip_line_comments","skip_processing"],{skip_line_comments:!0,skip_processing:f}))),g=s):h($["$!="]("compound"))?(m=o.$read_lines_until(p(["terminator","skip_processing","context","cursor"],{terminator:n,skip_processing:f,context:t,cursor:"at_mark"})),g=s):n["$=="](!1)?(m=s,g=o):(m=s,v=o.$cursor(),g=c(ut,"Reader").$new(o.$read_lines_until(p(["terminator","skip_processing","context","cursor"],{terminator:n,skip_processing:f,context:t,cursor:"at_mark"})),v)),e["$=="]("verbatim"))y=(h(u=a["$[]"]("tabsize"))?u:r.$document().$attributes()["$[]"]("tabsize")).$to_i(),h(_=a["$[]"]("indent"))?d["$adjust_indentation!"](m,_.$to_i(),y):h(i(y,0))&&d["$adjust_indentation!"](m,-1,y);else if(e["$=="]("skip"))return s;if(h(b=l["$[]"]("extension"))){if(a.$delete("style"),!h(w=b.$process_method()["$[]"](r,h(u=g)?u:c(ut,"Reader").$new(m),a.$merge())))return s;a.$replace(w.$attributes()),h((u=w.$content_model()["$=="]("compound"))?(m=w.$lines())["$empty?"]()["$!"]():w.$content_model()["$=="]("compound"))&&(e="compound",g=c(ut,"Reader").$new(m))}else w=c(ut,"Block").$new(r,t,p(["content_model","source","attributes"],{content_model:e,source:m,attributes:a}));return e["$=="]("compound")&&d.$parse_blocks(g,w),w},C.$$arity=-7),t.defs(ct,"$parse_blocks",A=function(t,e,n){var r,i,o=this,a=s;if(null==n&&(n=s),h(n))while(h(h(r=h(i=a=o.$next_block(t,e,n.$merge()))?e.$blocks()["$<<"](a):i)?r:t["$has_more_lines?"]()));else while(h(h(r=h(i=a=o.$next_block(t,e))?e.$blocks()["$<<"](a):i)?r:t["$has_more_lines?"]()));return s},A.$$arity=-3),t.defs(ct,"$parse_list",E=function(t,e,n,r){var i,o=this,a=s,l=s,u=s;null==$["~"]&&($["~"]=s),a=c(ut,"List").$new(n,e),l=c(ut,"ListRxMap")["$[]"](e);while(h(h(i=t["$has_more_lines?"]())?l["$=~"](t.$peek_line()):i))if(h(u=o.$parse_list_item(t,a,$["~"],(i=$["~"])===s?s:i["$[]"](1),r))&&a.$items()["$<<"](u),!h(i=t.$skip_blank_lines()))break;return a},E.$$arity=4),t.defs(ct,"$catalog_callouts",T=function(t,e){var r,i=this,o=s,a=s;return o=!1,a=0,h(t["$include?"]("<"))&&f(t,"scan",[c(ut,"CalloutScanRx")],(r=function(){var t;r.$$s;return h(((t=$["~"])===s?s:t["$[]"](0))["$start_with?"]("\\"))||e.$callouts().$register(function(){return((t=$["~"])===s?s:t["$[]"](2))["$=="](".")?(a=n(a,1)).$to_s():(t=$["~"])===s?s:t["$[]"](2)}()),o=!0},r.$$s=i,r.$$arity=0,r)),o},T.$$arity=2),t.defs(ct,"$catalog_inline_anchor",P=function(t,e,n,r,i){var o,a=this;return null==i&&(i=n.$document()),h(h(o=e)?e["$include?"](c(ut,"ATTR_REF_HEAD")):o)&&(e=i.$sub_attributes(e)),h(i.$register("refs",[t,c(ut,"Inline").$new(n,"anchor",e,p(["type","id"],{type:"ref",id:t}))]))||(h(c(ut,"Reader")["$==="](r))&&(r=r.$cursor()),a.$logger().$warn(a.$message_with_context("id assigned to anchor already in use: "+t,p(["source_location"],{source_location:r})))),s},P.$$arity=-5),t.defs(ct,"$catalog_inline_anchors",B=function(t,e,r,o){var a,l,u=this;return h(h(a=t["$include?"]("[["))?a:t["$include?"]("or:"))&&f(t,"scan",[c(ut,"InlineAnchorScanRx")],(l=function(){var t,a=l.$$s||this,u=s,d=s,f=s,m=s;if(h(u=(t=$["~"])===s?s:t["$[]"](1))){if(h(d=(t=$["~"])===s?s:t["$[]"](2))&&h(h(t=d["$include?"](c(ut,"ATTR_REF_HEAD")))?(d=r.$sub_attributes(d))["$empty?"]():t))return s}else if(u=(t=$["~"])===s?s:t["$[]"](3),h(d=(t=$["~"])===s?s:t["$[]"](4))&&(h(d["$include?"]("]"))&&(d=d.$gsub("\\]","]")),h(h(t=d["$include?"](c(ut,"ATTR_REF_HEAD")))?(d=r.$sub_attributes(d))["$empty?"]():t)))return s;return h(r.$register("refs",[u,c(ut,"Inline").$new(e,"anchor",d,p(["type","id"],{type:"ref",id:u}))]))?s:(f=o.$cursor_at_mark(),h(i(m=n(((t=$["~"])===s?s:t.$pre_match()).$count(c(ut,"LF")),function(){return h(((t=$["~"])===s?s:t["$[]"](0))["$start_with?"](c(ut,"LF")))?1:0}()),0))&&(f=f.$dup()).$advance(m),a.$logger().$warn(a.$message_with_context("id assigned to anchor already in use: "+u,p(["source_location"],{source_location:f}))))},l.$$s=u,l.$$arity=0,l)),s},B.$$arity=4),t.defs(ct,"$catalog_inline_biblio_anchor",L=function(t,e,n,r){var i,o=this;return h(n.$document().$register("refs",[t,c(ut,"Inline").$new(n,"anchor",h(i=e)?"["+e+"]":i,p(["type","id"],{type:"bibref",id:t}))]))||o.$logger().$warn(o.$message_with_context("id assigned to bibliography anchor already in use: "+t,p(["source_location"],{source_location:r.$cursor()}))),s},L.$$arity=4),t.defs(ct,"$parse_description_list",I=function(n,r,i){var o,a=this,l=s,u=s,d=s,p=s,m=s;null==$["~"]&&($["~"]=s),l=c(ut,"List").$new(i,"dlist"),u=c(ut,"DescriptionListSiblingRx")["$[]"](r["$[]"](2)),l.$items()["$<<"](d=a.$parse_list_item(n,l,r,u));while(h(h(o=n["$has_more_lines?"]())?u["$=~"](n.$peek_line()):o))p=a.$parse_list_item(n,l,$["~"],u),h(d["$[]"](1))?l.$items()["$<<"](d=p):(d["$[]"](0)["$<<"](p["$[]"](0)["$[]"](0)),m=[1,p["$[]"](1)],f(d,"[]=",t.to_a(m)),m[e(m["length"],1)]);return l},I.$$arity=3),t.defs(ct,"$parse_callout_list",D=function(r,i,o,a){var l,u,d=this,$=s,m=s,g=s,v=s,y=s,_=s,b=s;$=c(ut,"List").$new(o,"colist"),m=1,g=0;while(h(h(l=i)?l:h(u=i=c(ut,"CalloutListRx").$match(r.$peek_line()))?r.$mark():u))(v=i["$[]"](1))["$=="](".")&&(v=(g=n(g,1)).$to_s()),v["$=="](m.$to_s())||d.$logger().$warn(d.$message_with_context("callout list item index: expected "+m+", got "+v,p(["source_location"],{source_location:r.$cursor_at_mark()}))),h(y=d.$parse_list_item(r,$,i,"<1>"))&&($.$items()["$<<"](y),h((_=a.$callout_ids($.$items().$size()))["$empty?"]())?d.$logger().$warn(d.$message_with_context("no callout found for <"+$.$items().$size()+">",p(["source_location"],{source_location:r.$cursor_at_mark()}))):(b=["coids",_],f(y.$attributes(),"[]=",t.to_a(b)),b[e(b["length"],1)])),m=n(m,1),i=s;return a.$next_list(),$},D.$$arity=4),t.defs(ct,"$parse_list_item",R=function(n,r,i,o,a){var l,u,d=this,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s;if(null==a&&(a=s),(m=r.$context())["$=="]("dlist")?(g=!0,v=c(ut,"ListItem").$new(r,y=i["$[]"](1)),h(h(l=y["$start_with?"]("[["))?c(ut,"LeadingInlineAnchorRx")["$=~"](y):l)&&d.$catalog_inline_anchor((l=$["~"])===s?s:l["$[]"](1),h(l=(u=$["~"])===s?s:u["$[]"](2))?l:((u=$["~"])===s?s:u.$post_match()).$lstrip(),v,n),h(_=i["$[]"](3))&&(b=!0),w=c(ut,"ListItem").$new(r,_),h(r.$document().$sourcemap())&&(x=[n.$cursor()],f(v,"source_location=",t.to_a(x)),x[e(x["length"],1)],h(b)?(x=[v.$source_location()],f(w,"source_location=",t.to_a(x)),x[e(x["length"],1)]):k=!0)):(b=!0,w=c(ut,"ListItem").$new(r,_=i["$[]"](2)),h(r.$document().$sourcemap())&&(x=[n.$cursor()],f(w,"source_location=",t.to_a(x)),x[e(x["length"],1)]),m["$=="]("ulist")?(x=[o],f(w,"marker=",t.to_a(x)),x[e(x["length"],1)],h(_["$start_with?"]("["))&&(h(h(l=a)?a["$=="]("bibliography"):l)?h(c(ut,"InlineBiblioAnchorRx")["$=~"](_))&&d.$catalog_inline_biblio_anchor((l=$["~"])===s?s:l["$[]"](1),(l=$["~"])===s?s:l["$[]"](2),w,n):h(_["$start_with?"]("[["))?h(c(ut,"LeadingInlineAnchorRx")["$=~"](_))&&d.$catalog_inline_anchor((l=$["~"])===s?s:l["$[]"](1),(l=$["~"])===s?s:l["$[]"](2),w,n):h(_["$start_with?"]("[ ] ","[x] ","[*] "))&&(r.$set_option("checklist"),x=["checkbox",""],f(w.$attributes(),"[]=",t.to_a(x)),x[e(x["length"],1)],h(_["$start_with?"]("[ "))||(x=["checked",""],f(w.$attributes(),"[]=",t.to_a(x)),x[e(x["length"],1)]),x=[_.$slice(4,_.$length())],f(w,"text=",t.to_a(x)),x[e(x["length"],1)]))):m["$=="]("olist")?(u=d.$resolve_ordered_list_marker(o,S=r.$items().$size(),!0,n),l=t.to_ary(u),o=null==l[0]?s:l[0],O=null==l[1]?s:l[1],x=[o],f(w,"marker=",t.to_a(x)),x[e(x["length"],1)],h((l=S["$=="](0))?a["$!"]():S["$=="](0))&&(x=[h(l=O)?l:(h(u=c(ut,"ORDERED_LIST_STYLES")["$[]"](e(o.$length(),1)))?u:"arabic").$to_s()],f(r,"style=",t.to_a(x)),x[e(x["length"],1)]),h(h(l=_["$start_with?"]("[["))?c(ut,"LeadingInlineAnchorRx")["$=~"](_):l)&&d.$catalog_inline_anchor((l=$["~"])===s?s:l["$[]"](1),(l=$["~"])===s?s:l["$[]"](2),w,n)):(x=[o],f(w,"marker=",t.to_a(x)),x[e(x["length"],1)],h(h(l=_["$start_with?"]("[["))?c(ut,"LeadingInlineAnchorRx")["$=~"](_):l)&&d.$catalog_inline_anchor((l=$["~"])===s?s:l["$[]"](1),(l=$["~"])===s?s:l["$[]"](2),w,n))),n.$shift(),C=n.$cursor(),A=c(ut,"Reader").$new(d.$read_lines_for_list_item(n,m,o,b),C),h(A["$has_more_lines?"]())){h(k)&&(x=[C],f(w,"source_location=",t.to_a(x)),x[e(x["length"],1)]),E=A.$skip_line_comments(),h(T=A.$peek_line())&&(h(E["$empty?"]())||A.$unshift_lines(E),h(T["$empty?"]())||(P=!0,h(g)||(b=s))),h(B=d.$next_block(A,w,p([],{}),p(["text_only","list_type"],{text_only:function(){return!h(b)||s}(),list_type:m})))&&w.$blocks()["$<<"](B);while(h(A["$has_more_lines?"]()))h(B=d.$next_block(A,w,p([],{}),p(["list_type"],{list_type:m})))&&w.$blocks()["$<<"](B);h(h(l=h(u=P)?L=w.$blocks()["$[]"](0):u)?L.$context()["$=="]("paragraph"):l)&&w.$fold_first()}return h(g)?[[v],function(){return h(h(l=w["$text?"]())?l:w["$blocks?"]())?w:s}()]:w},R.$$arity=-5),t.defs(ct,"$read_lines_for_list_item",j=function(n,r,i,o){var a,l,u,d,m,g,v,y=this,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s;null==i&&(i=s),null==o&&(o=!0),_=[],b="inactive",w=!1,x=s,k=r["$=="]("dlist");while(h(n["$has_more_lines?"]())){if(S=n.$read_line(),h(y["$is_sibling_list_item?"](S,r,i)))break;if(O=function(){return h(_["$empty?"]())?s:_["$[]"](-1)}(),O["$=="](c(ut,"LIST_CONTINUATION"))&&(b["$=="]("inactive")&&(b="active",o=!0,h(w)||(C=[-1,""],f(_,"[]=",t.to_a(C)),C[e(C["length"],1)])),S["$=="](c(ut,"LIST_CONTINUATION"))))h(b["$!="]("frozen"))&&(b="frozen",_["$<<"](S)),S=s;else{if(h(A=y["$is_delimited_block?"](S,!0))){if(!b["$=="]("active"))break;_["$<<"](S),_.$concat(n.$read_lines_until(p(["terminator","read_last_line","context"],{terminator:A.$terminator(),read_last_line:!0,context:s}))),b="inactive"}else{if(h(h(a=h(l=k)?b["$!="]("active"):l)?c(ut,"BlockAttributeLineRx")["$match?"](S):a))break;if(h((a=b["$=="]("active"))?S["$empty?"]()["$!"]():b["$=="]("active")))h(c(ut,"LiteralParagraphRx")["$match?"](S))?(n.$unshift_line(S),h(k)?_.$concat(f(n,"read_lines_until",[p(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})],(u=function(t){var e=u.$$s||this;return null==t&&(t=s),e["$is_sibling_list_item?"](t,r,i)},u.$$s=y,u.$$arity=1,u))):_.$concat(n.$read_lines_until(p(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0}))),b="inactive"):h(h(a=h(l=c(ut,"BlockTitleRx")["$match?"](S))?l:c(ut,"BlockAttributeLineRx")["$match?"](S))?a:c(ut,"AttributeEntryRx")["$match?"](S))?_["$<<"](S):(h(E=f(function(){return h(w)?["dlist"]:c(ut,"NESTABLE_LIST_CONTEXTS")}(),"find",[],(d=function(t){d.$$s;return null==t&&(t=s),c(ut,"ListRxMap")["$[]"](t)["$match?"](S)},d.$$s=y,d.$$arity=1,d)))&&(w=!0,h((a=E["$=="]("dlist"))?((l=$["~"])===s?s:l["$[]"](3))["$nil_or_empty?"]():E["$=="]("dlist"))&&(o=!1)),_["$<<"](S),b="inactive");else if(h(h(a=O)?O["$empty?"]():a)){if(h(S["$empty?"]())){if(!h(S=h(a=n.$skip_blank_lines())?n.$read_line():a))break;if(h(y["$is_sibling_list_item?"](S,r,i)))break}if(S["$=="](c(ut,"LIST_CONTINUATION")))x=_.$size(),_["$<<"](S);else if(h(o)){if(h(y["$is_sibling_list_item?"](S,r,i)))break;if(h(E=f(c(ut,"NESTABLE_LIST_CONTEXTS"),"find",[],(m=function(t){m.$$s;return null==t&&(t=s),c(ut,"ListRxMap")["$[]"](t)["$=~"](S)},m.$$s=y,m.$$arity=1,m))))_["$<<"](S),w=!0,h((a=E["$=="]("dlist"))?((l=$["~"])===s?s:l["$[]"](3))["$nil_or_empty?"]():E["$=="]("dlist"))&&(o=!1);else{if(!h(c(ut,"LiteralParagraphRx")["$match?"](S)))break;n.$unshift_line(S),h(k)?_.$concat(f(n,"read_lines_until",[p(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})],(g=function(t){var e=g.$$s||this;return null==t&&(t=s),e["$is_sibling_list_item?"](t,r,i)},g.$$s=y,g.$$arity=1,g))):_.$concat(n.$read_lines_until(p(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})))}}else h(w)||_.$pop(),_["$<<"](S),o=!0}else h(S["$empty?"]())||(o=!0),h(E=f(function(){return h(w)?["dlist"]:c(ut,"NESTABLE_LIST_CONTEXTS")}(),"find",[],(v=function(t){v.$$s;return null==t&&(t=s),c(ut,"ListRxMap")["$[]"](t)["$=~"](S)},v.$$s=y,v.$$arity=1,v)))&&(w=!0,h((a=E["$=="]("dlist"))?((l=$["~"])===s?s:l["$[]"](3))["$nil_or_empty?"]():E["$=="]("dlist"))&&(o=!1)),_["$<<"](S)}S=s}}h(S)&&n.$unshift_line(S),h(x)&&(C=[x,""],f(_,"[]=",t.to_a(C)),C[e(C["length"],1)]);while(!h(_["$empty?"]())){if(!h((T=_["$[]"](-1))["$empty?"]())){T["$=="](c(ut,"LIST_CONTINUATION"))&&_.$pop();break}_.$pop()}return _},j.$$arity=-3),t.defs(ct,"$initialize_section",M=function(n,r,o){var a,l,u=this,d=s,$=s,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s;return null==o&&(o=p([],{})),d=r.$document(),$=(m=d.$doctype())["$=="]("book"),h(d.$sourcemap())&&(g=n.$cursor()),v=o["$[]"](1),l=u.$parse_section_title(n,d,o["$[]"]("id")),a=t.to_ary(l),y=null==a[0]?s:a[0],_=null==a[1]?s:a[1],b=null==a[2]?s:a[2],w=null==a[3]?s:a[3],x=null==a[4]?s:a[4],h(_)?(k=["reftext",_],f(o,"[]=",t.to_a(k)),k[e(k["length"],1)]):_=o["$[]"]("reftext"),h(v)?h(h(a=$)?v["$=="]("abstract"):a)?(a=["chapter",1],S=a[0],w=a[1]):h(h(a=v["$start_with?"]("sect"))?c(ut,"SectionLevelStyleRx")["$match?"](v):a)?S="section":(a=[v,!0],S=a[0],O=a[1],w["$=="](0)&&(w=1),C=S["$=="]("appendix")):h($)?S=function(){return w["$=="](0)?"part":h(i(w,1))?"section":"chapter"}():h((a=m["$=="]("manpage"))?b.$casecmp("synopsis")["$=="](0):m["$=="]("manpage"))?(a=["synopsis",!0],S=a[0],O=a[1]):S="section",A=c(ut,"Section").$new(r,w),a=[y,b,S,g],A["$id="](a[0]),A["$title="](a[1]),A["$sectname="](a[2]),A["$source_location="](a[3]),h(O)?(k=[!0],f(A,"special=",t.to_a(k)),k[e(k["length"],1)],h(C)?(k=[!0],f(A,"numbered=",t.to_a(k)),k[e(k["length"],1)]):d.$attributes()["$[]"]("sectnums")["$=="]("all")&&(k=[function(){return!h(h(a=$)?w["$=="](1):a)||"chapter"}()],f(A,"numbered=",t.to_a(k)),k[e(k["length"],1)])):h(h(a=d.$attributes()["$[]"]("sectnums"))?i(w,0):a)?(k=[function(){return!h(A.$special())||(!!h(a=r.$numbered())||a)}()],f(A,"numbered=",t.to_a(k)),k[e(k["length"],1)]):h(h(a=h(l=$)?w["$=="](0):l)?d.$attributes()["$[]"]("partnums"):a)&&(k=[!0],f(A,"numbered=",t.to_a(k)),k[e(k["length"],1)]),h(E=h(a=A.$id())?a:(k=[function(){return h(d.$attributes()["$key?"]("sectids"))?T=c(ut,"Section").$generate_id(A.$title(),d):s}()],f(A,"id=",t.to_a(k)),k[e(k["length"],1)]))&&(h(T)||h(b["$include?"](c(ut,"ATTR_REF_HEAD")))&&A.$title(),h(d.$register("refs",[E,A]))||u.$logger().$warn(u.$message_with_context("id assigned to section already in use: "+E,p(["source_location"],{source_location:n.$cursor_at_line(e(n.$lineno(),function(){return h(x)?1:2}()))})))),A.$update_attributes(o),n.$skip_blank_lines(),A},M.$$arity=-3),t.defs(ct,"$is_next_line_section?",F=function(t,e){var n,r,i=this,o=s,a=s;return h(h(n=o=e["$[]"](1))?h(r=o["$=="]("discrete"))?r:o["$=="]("float"):n)?s:h(c(ut,"Compliance").$underline_style_section_titles())?(a=t.$peek_lines(2,h(n=o)?o["$=="]("comment"):n),i["$is_section_title?"](h(n=a["$[]"](0))?n:"",a["$[]"](1))):i["$atx_section_title?"](h(n=t.$peek_line())?n:"")},F.$$arity=2),t.defs(ct,"$is_next_line_doctitle?",N=function(t,e,r){var i,o=this,a=s;return h(r)?h(i=a=o["$is_next_line_section?"](t,e))?n(a,r.$to_i())["$=="](0):i:o["$is_next_line_section?"](t,e)["$=="](0)},N.$$arity=3),t.defs(ct,"$is_section_title?",z=function(t,e){var n,r=this;return null==e&&(e=s),h(n=r["$atx_section_title?"](t))?n:function(){return h(e["$nil_or_empty?"]())?s:r["$setext_section_title?"](t,e)}()},z.$$arity=-2),t.defs(ct,"$atx_section_title?",H=function(t){var n;return h(function(){return h(c(ut,"Compliance").$markdown_syntax())?h(n=t["$start_with?"]("=","#"))?c(ut,"ExtAtxSectionTitleRx")["$=~"](t):n:h(n=t["$start_with?"]("="))?c(ut,"AtxSectionTitleRx")["$=~"](t):n}())?e(((n=$["~"])===s?s:n["$[]"](1)).$length(),1):s},H.$$arity=1),t.defs(ct,"$setext_section_title?",V=function(t,n){var i,o,a,l=this,u=s,d=s,f=s;return h(h(i=h(o=h(a=u=c(ut,"SETEXT_SECTION_LEVELS")["$[]"](d=n.$chr()))?l["$uniform?"](n,d,f=n.$length()):a)?c(ut,"SetextSectionTitleRx")["$match?"](t):o)?r(e(t.$length(),f).$abs(),2):i)?u:s},V.$$arity=2),t.defs(ct,"$parse_section_title",U=function(t,i,o){var a,l,u,d,f,p=this,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s;return null==o&&(o=s),m=s,g=t.$read_line(),h(function(){return h(c(ut,"Compliance").$markdown_syntax())?h(a=g["$start_with?"]("=","#"))?c(ut,"ExtAtxSectionTitleRx")["$=~"](g):a:h(a=g["$start_with?"]("="))?c(ut,"AtxSectionTitleRx")["$=~"](g):a}())?(a=[e(((l=$["~"])===s?s:l["$[]"](1)).$length(),1),(l=$["~"])===s?s:l["$[]"](2),!0],v=a[0],y=a[1],_=a[2],h(o)||h(h(a=h(l=y["$end_with?"]("]]"))?c(ut,"InlineSectionAnchorRx")["$=~"](y):l)?((l=$["~"])===s?s:l["$[]"](1))["$!"]():a)&&(a=[y.$slice(0,e(y.$length(),((l=$["~"])===s?s:l["$[]"](0)).$length())),(l=$["~"])===s?s:l["$[]"](2),(l=$["~"])===s?s:l["$[]"](3)],y=a[0],o=a[1],m=a[2])):h(h(a=h(l=h(u=h(d=h(f=c(ut,"Compliance").$underline_style_section_titles())?b=t.$peek_line(!0):f)?v=c(ut,"SETEXT_SECTION_LEVELS")["$[]"](w=b.$chr()):d)?p["$uniform?"](b,w,x=b.$length()):u)?y=h(u=c(ut,"SetextSectionTitleRx")["$=~"](g))?(d=$["~"])===s?s:d["$[]"](1):u:l)?r(e(g.$length(),x).$abs(),2):a)?(_=!1,h(o)||h(h(a=h(l=y["$end_with?"]("]]"))?c(ut,"InlineSectionAnchorRx")["$=~"](y):l)?((l=$["~"])===s?s:l["$[]"](1))["$!"]():a)&&(a=[y.$slice(0,e(y.$length(),((l=$["~"])===s?s:l["$[]"](0)).$length())),(l=$["~"])===s?s:l["$[]"](2),(l=$["~"])===s?s:l["$[]"](3)],y=a[0],o=a[1],m=a[2]),t.$shift()):p.$raise("Unrecognized section at "+t.$cursor_at_prev_line()),h(i["$attr?"]("leveloffset"))&&(v=n(v,i.$attr("leveloffset").$to_i()),h(r(v,0))&&(v=0)),[o,m,y,v,_]},U.$$arity=-3),t.defs(ct,"$parse_header_metadata",q=function(r,i){var o,a,u,d,$=this,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s;if(null==i&&(i=s),m=h(o=i)?i.$attributes():o,$.$process_attribute_entries(r,i),o=[g=p([],{}),s,s],v=o[0],y=o[1],_=o[2],h(h(o=r["$has_more_lines?"]())?r["$next_line_empty?"]()["$!"]():o)?(h((b=$.$process_authors(r.$read_line()))["$empty?"]())||(h(i)&&(f(b,"each",[],(a=function(n,r){a.$$s;var o=s;return null==n&&(n=s),null==r&&(r=s),h(m["$key?"](n))?s:(o=[n,function(){return h(l("::","String")["$==="](r))?i.$apply_header_subs(r):r}()],f(m,"[]=",t.to_a(o)),o[e(o["length"],1)])},a.$$s=$,a.$$arity=2,a)),y=m["$[]"]("author"),_=m["$[]"]("authorinitials"),g=m["$[]"]("authors")),v=b),$.$process_attribute_entries(r,i),w=p([],{}),h(h(o=r["$has_more_lines?"]())?r["$next_line_empty?"]()["$!"]():o)&&(x=r.$read_line(),h(k=c(ut,"RevisionInfoLineRx").$match(x))?(h(k["$[]"](1))&&(S=["revnumber",k["$[]"](1).$rstrip()],f(w,"[]=",t.to_a(S)),S[e(S["length"],1)]),h((O=k["$[]"](2).$strip())["$empty?"]())||(h(h(o=k["$[]"](1)["$!"]())?O["$start_with?"]("v"):o)?(S=["revnumber",O.$slice(1,O.$length())],f(w,"[]=",t.to_a(S)),S[e(S["length"],1)]):(S=["revdate",O],f(w,"[]=",t.to_a(S)),S[e(S["length"],1)])),h(k["$[]"](3))&&(S=["revremark",k["$[]"](3).$rstrip()],f(w,"[]=",t.to_a(S)),S[e(S["length"],1)])):r.$unshift_line(x)),h(w["$empty?"]())||(h(i)&&f(w,"each",[],(u=function(n,r){u.$$s;return null==n&&(n=s),null==r&&(r=s),h(m["$key?"](n))?s:(S=[n,i.$apply_header_subs(r)],f(m,"[]=",t.to_a(S)),S[e(S["length"],1)])},u.$$s=$,u.$$arity=2,u)),v.$update(w)),$.$process_attribute_entries(r,i),r.$skip_blank_lines()):b=p([],{}),h(i)){if(h(h(o=m["$key?"]("author"))?(C=m["$[]"]("author"))["$!="](y):o))b=$.$process_authors(C,!0,!1),h(m["$[]"]("authorinitials")["$!="](_))&&b.$delete("authorinitials");else if(h(h(o=m["$key?"]("authors"))?(C=m["$[]"]("authors"))["$!="](g):o))b=$.$process_authors(C,!0);else{o=[[],1,"author_1",!1,!1],A=o[0],E=o[1],T=o[2],P=o[3],B=o[4];while(h(m["$key?"](T)))(L=m["$[]"](T))["$=="](b["$[]"](T))?(A["$<<"](s),B=!0):(A["$<<"](L),P=!0),T="author_"+(E=n(E,1));h(P)?(h(B)&&f(A,"each_with_index",[],(d=function(r,i){var o,a=d.$$s||this,l=s;return null==r&&(r=s),null==i&&(i=s),h(r)?s:(S=[i,f([b["$[]"]("firstname_"+(l=n(i,1))),b["$[]"]("middlename_"+l),b["$[]"]("lastname_"+l)].$compact(),"map",[],(o=function(t){o.$$s;return null==t&&(t=s),t.$tr(" ","_")},o.$$s=a,o.$$arity=1,o)).$join(" ")],f(A,"[]=",t.to_a(S)),S[e(S["length"],1)])},d.$$s=$,d.$$arity=2,d)),b=$.$process_authors(A,!0,!1)):b=p([],{})}h(b["$empty?"]())?h(o=v["$[]"]("authorcount"))||(S=["authorcount",(S=["authorcount",0],f(m,"[]=",t.to_a(S)),S[e(S["length"],1)])],f(v,"[]=",t.to_a(S)),S[e(S["length"],1)]):(m.$update(b),h(h(o=m["$key?"]("email")["$!"]())?m["$key?"]("email_1"):o)&&(S=["email",m["$[]"]("email_1")],f(m,"[]=",t.to_a(S)),S[e(S["length"],1)]))}return v},q.$$arity=-2),t.defs(ct,"$process_authors",W=function(r,i,o){var a,l,u=this,d=s,$=s,m=s;return null==i&&(i=!1),null==o&&(o=!0),d=p([],{}),$=0,f(function(){return h(h(a=o)?r["$include?"](";"):a)?r.$split(c(ut,"AuthorDelimiterRx")):[].concat(t.to_a(r))}(),"each",[],(l=function(r){var o,a,u,m,g=l.$$s||this,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s;return null==r&&(r=s),h(r["$empty?"]())?s:(v=p([],{}),($=n($,1))["$=="](1)?f(c(ut,"AuthorKeys"),"each",[],(o=function(n){o.$$s;var r=s;return null==n&&(n=s),r=[n.$to_sym(),n],f(v,"[]=",t.to_a(r)),r[e(r["length"],1)]},o.$$s=g,o.$$arity=1,o)):f(c(ut,"AuthorKeys"),"each",[],(a=function(n){a.$$s;var r=s;return null==n&&(n=s),r=[n.$to_sym(),n+"_"+$],f(v,"[]=",t.to_a(r)),r[e(r["length"],1)]},a.$$s=g,a.$$arity=1,a)),h(i)?(h(r["$include?"]("<"))&&(y=[v["$[]"]("author"),r.$tr("_"," ")],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],r=r.$gsub(c(ut,"XmlSanitizeRx"),"")),(_=r.$split(s,3)).$size()["$=="](3)&&_["$<<"](_.$pop().$squeeze(" "))):h(b=c(ut,"AuthorInfoLineRx").$match(r))&&(_=b.$to_a()).$shift(),h(_)?(y=[v["$[]"]("firstname"),x=_["$[]"](0).$tr("_"," ")],f(d,"[]=",t.to_a(y)),w=y[e(y["length"],1)],y=[v["$[]"]("authorinitials"),x.$chr()],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],h(_["$[]"](1))&&(h(_["$[]"](2))?(y=[v["$[]"]("middlename"),k=_["$[]"](1).$tr("_"," ")],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],y=[v["$[]"]("lastname"),S=_["$[]"](2).$tr("_"," ")],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],w=n(n(n(n(x," "),k)," "),S),y=[v["$[]"]("authorinitials"),""+x.$chr()+k.$chr()+S.$chr()],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]):(y=[v["$[]"]("lastname"),S=_["$[]"](1).$tr("_"," ")],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],w=n(n(x," "),S),y=[v["$[]"]("authorinitials"),""+x.$chr()+S.$chr()],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)])),h(u=d["$[]"](v["$[]"]("author")))||(y=[v["$[]"]("author"),w],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]),h(h(u=i)?u:_["$[]"](3)["$!"]())||(y=[v["$[]"]("email"),_["$[]"](3)],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)])):(y=[v["$[]"]("author"),(y=[v["$[]"]("firstname"),x=r.$squeeze(" ").$strip()],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)])],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],y=[v["$[]"]("authorinitials"),x.$chr()],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]),$["$=="](1)?(y=["authors",d["$[]"](v["$[]"]("author"))],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]):($["$=="](2)&&f(c(ut,"AuthorKeys"),"each",[],(m=function(n){m.$$s;return null==n&&(n=s),h(d["$key?"](n))?(y=[n+"_1",d["$[]"](n)],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]):s},m.$$s=g,m.$$arity=1,m)),y=["authors",d["$[]"]("authors")+", "+d["$[]"](v["$[]"]("author"))],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]))},l.$$s=u,l.$$arity=1,l)),m=["authorcount",$],f(d,"[]=",t.to_a(m)),m[e(m["length"],1)],d},W.$$arity=-2),t.defs(ct,"$parse_block_metadata_lines",G=function(t,e,n,r){var i=this;null==n&&(n=p([],{})),null==r&&(r=p([],{}));while(h(i.$parse_block_metadata_line(t,e,n,r)))if(t.$shift(),!h(t.$skip_blank_lines()))break;return n},G.$$arity=-3),t.defs(ct,"$parse_block_metadata_line",Y=function(n,r,i,o){var a,l,u=this,d=s,m=s,g=s,v=s,y=s,_=s;return null==$["~"]&&($["~"]=s),null==o&&(o=p([],{})),h(h(a=d=n.$peek_line())?function(){return h(o["$[]"]("text_only"))?d["$start_with?"]("[","/"):m=d["$start_with?"]("[",".","/",":")}():a)?h(d["$start_with?"]("["))?h(d["$start_with?"]("[["))?h(h(a=d["$end_with?"]("]]"))?c(ut,"BlockAnchorRx")["$=~"](d):a)?(g=["id",(a=$["~"])===s?s:a["$[]"](1)],f(i,"[]=",t.to_a(g)),g[e(g["length"],1)],h(v=(a=$["~"])===s?s:a["$[]"](2))&&(g=["reftext",function(){return h(v["$include?"](c(ut,"ATTR_REF_HEAD")))?r.$sub_attributes(v):v}()],f(i,"[]=",t.to_a(g)),g[e(g["length"],1)]),!0):s:h(h(a=d["$end_with?"]("]"))?c(ut,"BlockAttributeListRx")["$=~"](d):a)?(y=i["$[]"](1),h(r.$parse_attributes((a=$["~"])===s?s:a["$[]"](1),[],p(["sub_input","sub_result","into"],{sub_input:!0,sub_result:!0,into:i}))["$[]"](1))&&(g=[1,h(a=u.$parse_style_attribute(i,n))?a:y],f(i,"[]=",t.to_a(g)),g[e(g["length"],1)]),!0):s:h(h(a=m)?d["$start_with?"]("."):a)?h(c(ut,"BlockTitleRx")["$=~"](d))?(g=["title",(a=$["~"])===s?s:a["$[]"](1)],f(i,"[]=",t.to_a(g)),g[e(g["length"],1)],!0):s:h(h(a=m["$!"]())?a:d["$start_with?"]("/"))?h(d["$start_with?"]("//"))?!!d["$=="]("//")||(h(h(a=m)?u["$uniform?"](d,"/",_=d.$length()):a)?_["$=="](3)?s:(n.$read_lines_until(p(["terminator","skip_first_line","preserve_last_line","skip_processing","context"],{terminator:d,skip_first_line:!0,preserve_last_line:!0,skip_processing:!0,context:"comment"})),!0):!h(d["$start_with?"]("///"))||s):s:h(h(a=h(l=m)?d["$start_with?"](":"):l)?c(ut,"AttributeEntryRx")["$=~"](d):a)?(u.$process_attribute_entry(n,r,i,$["~"]),!0):s:s},Y.$$arity=-4),t.defs(ct,"$process_attribute_entries",K=function(t,e,n){var r=this;null==n&&(n=s),t.$skip_comment_lines();while(h(r.$process_attribute_entry(t,e,n)))t.$shift(),t.$skip_comment_lines()},K.$$arity=-3),t.defs(ct,"$process_attribute_entry",X=function(t,n,r,i){var o,a,l,u=this,d=s,f=s,p=s,$=s;if(null==r&&(r=s),null==i&&(i=s),h(h(o=i)?o:i=function(){return h(t["$has_more_lines?"]())?c(ut,"AttributeEntryRx").$match(t.$peek_line()):s}())){if(h((d=i["$[]"](2))["$nil_or_empty?"]()))d="";else if(h(d["$end_with?"](c(ut,"LINE_CONTINUATION"),c(ut,"LINE_CONTINUATION_LEGACY")))){o=[d.$slice(e(d.$length(),2),2),d.$slice(0,e(d.$length(),2)).$rstrip()],f=o[0],d=o[1];while(h(h(a=t.$advance())?(p=h(l=t.$peek_line())?l:"")["$empty?"]()["$!"]():a))if(p=p.$lstrip(),h($=p["$end_with?"](f))&&(p=p.$slice(0,e(p.$length(),2)).$rstrip()),d=""+d+function(){return h(d["$end_with?"](c(ut,"HARD_LINE_BREAK")))?c(ut,"LF"):" "}()+p,!h($))break}return u.$store_attribute(i["$[]"](1),d,n,r),!0}return s},X.$$arity=-3),t.defs(ct,"$store_attribute",Z=function(t,r,i,o){var a,u=this,d=s;return null==i&&(i=s),null==o&&(o=s),h(t["$end_with?"]("!"))?(t=t.$chop(),r=s):h(t["$start_with?"]("!"))&&(t=t.$slice(1,t.$length()),r=s),(t=u.$sanitize_attribute_name(t))["$=="]("numbered")?t="sectnums":t["$=="]("hardbreaks")&&(t="hardbreaks-option"),h(i)?h(r)?(t["$=="]("leveloffset")&&(h(r["$start_with?"]("+"))?r=n(i.$attr("leveloffset",0).$to_i(),r.$slice(1,r.$length()).$to_i()).$to_s():h(r["$start_with?"]("-"))&&(r=e(i.$attr("leveloffset",0).$to_i(),r.$slice(1,r.$length()).$to_i()).$to_s())),h(d=i.$set_attribute(t,r))&&(r=d,h(o)&&l(c(ut,"Document"),"AttributeEntry").$new(t,r).$save_to(o))):h(h(a=i.$delete_attribute(t))?o:a)&&l(c(ut,"Document"),"AttributeEntry").$new(t,r).$save_to(o):h(o)&&l(c(ut,"Document"),"AttributeEntry").$new(t,r).$save_to(o),[t,r]},Z.$$arity=-3),t.defs(ct,"$resolve_list_marker",J=function(t,e,n,r,i){var o=this;return null==n&&(n=0),null==r&&(r=!1),null==i&&(i=s),t["$=="]("ulist")?e:t["$=="]("olist")?o.$resolve_ordered_list_marker(e,n,r,i)["$[]"](0):"<1>"},J.$$arity=-3),t.defs(ct,"$resolve_ordered_list_marker",Q=function(t,e,r,i){var o,a,l=this,u=s,d=s,$=s,m=s;return null==e&&(e=0),null==r&&(r=!1),null==i&&(i=s),h(t["$start_with?"]("."))?[t]:(u=d=f(c(ut,"ORDERED_LIST_STYLES"),"find",[],(o=function(e){o.$$s;return null==e&&(e=s),c(ut,"OrderedListMarkerRxMap")["$[]"](e)["$match?"](t)},o.$$s=l,o.$$arity=1,o)),"arabic"["$==="](u)?(h(r)&&($=n(e,1),m=t.$to_i()),t="1."):"loweralpha"["$==="](u)?(h(r)&&($=n("a"["$[]"](0).$ord(),e).$chr(),m=t.$chop()),t="a."):"upperalpha"["$==="](u)?(h(r)&&($=n("A"["$[]"](0).$ord(),e).$chr(),m=t.$chop()),t="A."):"lowerroman"["$==="](u)?(h(r)&&($=c(ut,"Helpers").$int_to_roman(n(e,1)).$downcase(),m=t.$chop()),t="i)"):"upperroman"["$==="](u)&&(h(r)&&($=c(ut,"Helpers").$int_to_roman(n(e,1)),m=t.$chop()),t="I)"),h(h(a=r)?$["$!="](m):a)&&l.$logger().$warn(l.$message_with_context("list item index: expected "+$+", got "+m,p(["source_location"],{source_location:i.$cursor()}))),[t,d])},Q.$$arity=-2),t.defs(ct,"$is_sibling_list_item?",tt=function(t,e,n){var r,i,o=this;return h(l("::","Regexp")["$==="](n))?n["$match?"](t):h(r=c(ut,"ListRxMap")["$[]"](e)["$=~"](t))?n["$=="](o.$resolve_list_marker(e,(i=$["~"])===s?s:i["$[]"](1))):r},tt.$$arity=3),t.defs(ct,"$parse_table",et=function(r,o,a){var u,d,p,$,m=this,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s,I=s,D=s;g=c(ut,"Table").$new(o,a),h(h(u=a["$key?"]("cols"))?(v=m.$parse_colspecs(a["$[]"]("cols")))["$empty?"]()["$!"]():u)&&(g.$create_columns(v),y=!0),_=h(u=r.$skip_blank_lines())?u:0,b=l(c(ut,"Table"),"ParserContext").$new(r,g,a),u=[b.$format(),-1,s],w=u[0],x=u[1],k=u[2],h(h(u=h(d=i(_,0))?d:a["$[]"]("header-option"))?u:a["$[]"]("noheader-option"))||(S=!0),u=!1;while(u||h(O=r.$read_line())){u=!1,h(h(d=C=i(x=n(x,1),0))?O["$empty?"]():d)?(O=s,h(k)&&(k=n(k,1))):w["$=="]("psv")&&(h(b["$starts_with_delimiter?"](O))?(O=O.$slice(1,O.$length()),b.$close_open_cell(),h(k)&&(k=s)):(p=m.$parse_cellspec(O,"start",b.$delimiter()),d=t.to_ary(p),A=null==d[0]?s:d[0],O=null==d[1]?s:d[1],h(A)?(b.$close_open_cell(A),h(k)&&(k=s)):h(h(d=k)?k["$=="](x):d)&&(d=[!1,s],S=d[0],k=d[1]))),h(C)||(r.$mark(),h(S)&&(h(h(d=r["$has_more_lines?"]())?r.$peek_line()["$empty?"]():d)?k=1:S=!1)),d=!1;while(d||h(!0)){if(d=!1,!h(h(p=O)?E=b.$match_delimiter(O):p)){L=[""+b.$buffer()+O+c(ut,"LF")],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)],B=w,"csv"["$==="](B)?h(b["$buffer_has_unclosed_quotes?"]())?(h(h(p=k)?x["$=="](0):p)&&(p=[!1,s],S=p[0],k=p[1]),b.$keep_cell_open()):b.$close_cell(!0):"dsv"["$==="](B)?b.$close_cell(!0):b.$keep_cell_open();break}if(p=[E.$pre_match(),E.$post_match()],T=p[0],P=p[1],B=w,"csv"["$==="](B)){if(h(b["$buffer_has_unclosed_quotes?"](T))){if(b.$skip_past_delimiter(T),h((O=P)["$empty?"]()))break;d=!0;continue}L=[""+b.$buffer()+T],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)]}else if("dsv"["$==="](B)){if(h(T["$end_with?"]("\\"))){if(b.$skip_past_escaped_delimiter(T),h((O=P)["$empty?"]())){L=[""+b.$buffer()+c(ut,"LF")],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)],b.$keep_cell_open();break}d=!0;continue}L=[""+b.$buffer()+T],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)]}else{if(h(T["$end_with?"]("\\"))){if(b.$skip_past_escaped_delimiter(T),h((O=P)["$empty?"]())){L=[""+b.$buffer()+c(ut,"LF")],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)],b.$keep_cell_open();break}d=!0;continue}$=m.$parse_cellspec(T),p=t.to_ary($),A=null==p[0]?s:p[0],I=null==p[1]?s:p[1],b.$push_cellspec(A),L=[""+b.$buffer()+I],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)]}h((O=P)["$empty?"]())&&(O=s),b.$close_cell()}if(h(b["$cell_open?"]()))h(r["$has_more_lines?"]())||b.$close_cell(!0);else if(!h(d=r.$skip_blank_lines()))break}return h(h(u=(D=g.$attributes(),h(d=D["$[]"]("colcount"))?d:(L=["colcount",g.$columns().$size()],f(D,"[]=",t.to_a(L)),L[e(L["length"],1)]))["$=="](0))?u:y)||g.$assign_column_widths(),h(S)&&(L=[!0],f(g,"has_header_option=",t.to_a(L)),L[e(L["length"],1)],L=["header-option",""],f(a,"[]=",t.to_a(L)),L[e(L["length"],1)]),g.$partition_header_footer(a),g},et.$$arity=3),t.defs(ct,"$parse_colspecs",nt=function(n){var r,i,o=this,a=s;return h(n["$include?"](" "))&&(n=n.$delete(" ")),n["$=="](n.$to_i().$to_s())?f(l("::","Array"),"new",[n.$to_i()],(r=function(){r.$$s;return p(["width"],{width:1})},r.$$s=o,r.$$arity=0,r)):(a=[],f(function(){return h(n["$include?"](","))?n.$split(",",-1):n.$split(";",-1)}(),"each",[],(i=function(n){var r,o,l,u=i.$$s||this,d=s,$=s,m=s,g=s,v=s,y=s;return null==n&&(n=s),h(n["$empty?"]())?a["$<<"](p(["width"],{width:1})):h(d=c(ut,"ColumnSpecRx").$match(n))?($=p([],{}),h(d["$[]"](2))&&(o=d["$[]"](2).$split("."),r=t.to_ary(o),m=null==r[0]?s:r[0],g=null==r[1]?s:r[1],h(h(r=m["$nil_or_empty?"]()["$!"]())?c(ut,"TableCellHorzAlignments")["$key?"](m):r)&&(v=["halign",c(ut,"TableCellHorzAlignments")["$[]"](m)],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),h(h(r=g["$nil_or_empty?"]()["$!"]())?c(ut,"TableCellVertAlignments")["$key?"](g):r)&&(v=["valign",c(ut,"TableCellVertAlignments")["$[]"](g)],f($,"[]=",t.to_a(v)),v[e(v["length"],1)])),h(y=d["$[]"](3))?(v=["width",function(){return y["$=="]("~")?-1:y.$to_i()}()],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]):(v=["width",1],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),h(h(r=d["$[]"](4))?c(ut,"TableCellStyles")["$key?"](d["$[]"](4)):r)&&(v=["style",c(ut,"TableCellStyles")["$[]"](d["$[]"](4))],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),h(d["$[]"](1))?f(1,"upto",[d["$[]"](1).$to_i()],(l=function(){l.$$s;return a["$<<"]($.$merge())},l.$$s=u,l.$$arity=0,l)):a["$<<"]($)):s},i.$$s=o,i.$$arity=1,i)),a)},nt.$$arity=1),t.defs(ct,"$parse_cellspec",rt=function(n,r,i){var o,a,l=s,u=s,d=s,$=s,m=s,g=s,v=s;if(null==r&&(r="end"),null==i&&(i=s),o=[s,""],l=o[0],u=o[1],r["$=="]("start")){if(!h(n["$include?"](i)))return[s,n];if(a=n.$partition(i),o=t.to_ary(a),d=null==o[0]?s:o[0],i=null==o[1]?s:o[1],u=null==o[2]?s:o[2],!h(l=c(ut,"CellSpecStartRx").$match(d)))return[s,n];if(h(l["$[]"](0)["$empty?"]()))return[p([],{}),u]}else{if(!h(l=c(ut,"CellSpecEndRx").$match(n)))return[p([],{}),n];if(h(l["$[]"](0).$lstrip()["$empty?"]()))return[p([],{}),n.$rstrip()];u=l.$pre_match()}return $=p([],{}),h(l["$[]"](1))&&(a=l["$[]"](1).$split("."),o=t.to_ary(a),m=null==o[0]?s:o[0],g=null==o[1]?s:o[1],m=function(){return h(m["$nil_or_empty?"]())?1:m.$to_i()}(),g=function(){return h(g["$nil_or_empty?"]())?1:g.$to_i()}(),l["$[]"](2)["$=="]("+")?(m["$=="](1)||(v=["colspan",m],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),g["$=="](1)||(v=["rowspan",g],f($,"[]=",t.to_a(v)),v[e(v["length"],1)])):l["$[]"](2)["$=="]("*")&&(m["$=="](1)||(v=["repeatcol",m],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]))),h(l["$[]"](3))&&(a=l["$[]"](3).$split("."),o=t.to_ary(a),m=null==o[0]?s:o[0],g=null==o[1]?s:o[1],h(h(o=m["$nil_or_empty?"]()["$!"]())?c(ut,"TableCellHorzAlignments")["$key?"](m):o)&&(v=["halign",c(ut,"TableCellHorzAlignments")["$[]"](m)],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),h(h(o=g["$nil_or_empty?"]()["$!"]())?c(ut,"TableCellVertAlignments")["$key?"](g):o)&&(v=["valign",c(ut,"TableCellVertAlignments")["$[]"](g)],f($,"[]=",t.to_a(v)),v[e(v["length"],1)])),h(h(o=l["$[]"](4))?c(ut,"TableCellStyles")["$key?"](l["$[]"](4)):o)&&(v=["style",c(ut,"TableCellStyles")["$[]"](l["$[]"](4))],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),[$,u]},rt.$$arity=-2),t.defs(ct,"$parse_style_attribute",it=function(r,i){var o,a,l,u,d=this,$=s,m=s,g=s,v=s,y=s,_=s,b=s;return null==i&&(i=s),h(h(o=h(a=$=r["$[]"](1))?$["$include?"](" ")["$!"]():a)?c(ut,"Compliance").$shorthand_property_syntax():o)?(m=s,g="",v=p([],{}),f($,"each_char",[],(l=function(t){var e=l.$$s||this,r=s;return null==t&&(t=s),function(){return r=t,"."["$==="](r)?(e.$yield_buffered_attribute(v,m,g,i),g="",m="role"):"#"["$==="](r)?(e.$yield_buffered_attribute(v,m,g,i),g="",m="id"):"%"["$==="](r)?(e.$yield_buffered_attribute(v,m,g,i),g="",m="option"):g=n(g,t)}()},l.$$s=d,l.$$arity=1,l)),h(m)?(d.$yield_buffered_attribute(v,m,g,i),h(y=v["$[]"]("style"))&&(_=["style",y],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)]),h(v["$key?"]("id"))&&(_=["id",v["$[]"]("id")],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)]),h(v["$key?"]("role"))&&(_=["role",function(){return h((b=r["$[]"]("role"))["$nil_or_empty?"]())?v["$[]"]("role").$join(" "):b+" "+v["$[]"]("role").$join(" ")}()],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)]),h(v["$key?"]("option"))&&f(v["$[]"]("option"),"each",[],(u=function(n){u.$$s;return null==n&&(n=s),_=[n+"-option",""],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)]},u.$$s=d,u.$$arity=1,u)),y):(_=["style",$],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)])):(_=["style",$],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)])},it.$$arity=-2),t.defs(ct,"$yield_buffered_attribute",ot=function(n,r,i,o){var a,l=this,c=s;return h(r)?h(i["$empty?"]())?h(o)?l.$logger().$warn(l.$message_with_context("invalid empty "+r+" detected in style attribute",p(["source_location"],{source_location:o.$cursor_at_prev_line()}))):l.$logger().$warn("invalid empty "+r+" detected in style attribute"):r["$=="]("id")?(h(n["$key?"]("id"))&&(h(o)?l.$logger().$warn(l.$message_with_context("multiple ids detected in style attribute",p(["source_location"],{source_location:o.$cursor_at_prev_line()}))):l.$logger().$warn("multiple ids detected in style attribute")),c=[r,i],f(n,"[]=",t.to_a(c)),c[e(c["length"],1)]):(h(a=n["$[]"](r))?a:(c=[r,[]],f(n,"[]=",t.to_a(c)),c[e(c["length"],1)]))["$<<"](i):h(i["$empty?"]())||(c=["style",i],f(n,"[]=",t.to_a(c)),c[e(c["length"],1)]),s},ot.$$arity=4),t.defs(ct,"$adjust_indentation!",at=function(a,l,u){var d,p,$,m,g,v,y,_=this,b=s,w=s,x=s;return null==l&&(l=0),null==u&&(u=0),h(a["$empty?"]())?s:(h(h(d=i(u,0))?f(a,"any?",[],(p=function(t){p.$$s;return null==t&&(t=s),t["$include?"](c(ut,"TAB"))},p.$$s=_,p.$$arity=1,p)):d)&&(b=o(" ",u),function(){var r=t.new_brk();try{f(a,"map!",[],($=function(r){var i,a,l=$.$$s||this,d=s,p=s,m=s,g=s,v=s;return null==r&&(r=s),h(r["$empty?"]())?r:h(d=r.$index(c(ut,"TAB")))?d["$=="](0)&&(p=0,function(){var e=t.new_brk();try{f(r,"each_byte",[],(i=function(r){i.$$s;return null==r&&(r=s),r["$=="](9)||t.brk(s,e),p=n(p,1)},i.$$s=l,i.$$brk=e,i.$$arity=1,i))}catch(o){if(o===e)return o.$v;throw o}}(),r=""+o(b,p)+r.$slice(p,r.$length()),!h(r["$include?"](c(ut,"TAB"))))?r:(m=0,g=0,v="",f(r,"each_char",[],(a=function(t){a.$$s;var r=s,i=s;return null==t&&(t=s),t["$=="](c(ut,"TAB"))?(r=n(g,m))["$%"](u)["$=="](0)?(m=n(m,e(u,1)),v=n(v,b)):((i=e(u,r["$%"](u)))["$=="](1)||(m=n(m,e(i,1))),v=n(v,o(" ",i))):v=n(v,t),g=n(g,1)},a.$$s=l,a.$$arity=1,a)),v):r},$.$$s=_,$.$$brk=r,$.$$arity=1,$))}catch(i){if(i===r)return i.$v;throw i}}()),h(r(l,0))||(w=s,function(){var n=t.new_brk();try{f(a,"each",[],(m=function(i){m.$$s;var o,a=s;return null==i&&(i=s),h(i["$empty?"]())?s:((a=e(i.$length(),i.$lstrip().$length()))["$=="](0)&&(w=s,t.brk(s,n)),h(h(o=w)?r(w,a):o)?s:w=a)},m.$$s=_,m.$$brk=n,m.$$arity=1,m))}catch(i){if(i===n)return i.$v;throw i}}(),l["$=="](0)?h(w)&&f(a,"map!",[],(g=function(t){g.$$s;return null==t&&(t=s),h(t["$empty?"]())?t:t.$slice(w,t.$length())},g.$$s=_,g.$$arity=1,g)):(x=o(" ",l),h(w)?f(a,"map!",[],(v=function(t){v.$$s;return null==t&&(t=s),h(t["$empty?"]())?t:n(x,t.$slice(w,t.$length()))},v.$$s=_,v.$$arity=1,v)):f(a,"map!",[],(y=function(t){y.$$s;return null==t&&(t=s),h(t["$empty?"]())?t:n(x,t)},y.$$s=_,y.$$arity=1,y)))),s)},at.$$arity=-2),t.defs(ct,"$uniform?",st=function(t,e,n){return t.$count(e)["$=="](n)},st.$$arity=3),t.defs(ct,"$sanitize_attribute_name",lt=function(t){return t.$gsub(c(ut,"InvalidAttributeNameCharsRx"),"").$downcase()},lt.$$arity=1)})(v[0],null,v)}(a[0],a)},Opal.modules["asciidoctor/path_resolver"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}t.top;var i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.module),c=t.klass,u=t.truthy,d=t.hash2,f=t.send,h=t.gvars;return t.add_stubs(["$include","$attr_accessor","$root?","$posixify","$expand_path","$pwd","$start_with?","$==","$match?","$absolute_path?","$+","$length","$descends_from?","$slice","$to_s","$relative_path_from","$new","$include?","$tr","$partition_path","$each","$pop","$<<","$join_path","$[]","$web_root?","$unc?","$index","$split","$delete","$[]=","$-","$join","$raise","$!","$fetch","$warn","$logger","$empty?","$nil_or_empty?","$chomp","$!=","$>","$size","$extract_uri_prefix","$end_with?","$gsub","$private","$=~"]),function(i,p){var $=l(i,"Asciidoctor"),m=[$].concat(p);(function(i,l,p){var $,m,g,v,y,_,b,w,x,k,S,O,C,A,E=c(i,l,"PathResolver"),T=[E].concat(p);E.$$prototype.file_separator=E.$$prototype._partition_path_web=E.$$prototype._partition_path_sys=E.$$prototype.working_dir=o,E.$include(s(T,"Logging")),t.const_set(T[0],"DOT","."),t.const_set(T[0],"DOT_DOT",".."),t.const_set(T[0],"DOT_SLASH","./"),t.const_set(T[0],"SLASH","/"),t.const_set(T[0],"BACKSLASH","\\"),t.const_set(T[0],"DOUBLE_SLASH","//"),t.const_set(T[0],"WindowsRootRx",/^(?:[a-zA-Z]:)?[\\\/]/),E.$attr_accessor("file_separator"),E.$attr_accessor("working_dir"),t.def(E,"$initialize",$=function(t,e){var n,r,i=this;return null==t&&(t=o),null==e&&(e=o),i.file_separator=u(n=u(r=t)?r:a(a("::","File"),"ALT_SEPARATOR"))?n:a(a("::","File"),"SEPARATOR"),i.working_dir=function(){return u(e)?u(i["$root?"](e))?i.$posixify(e):a("::","File").$expand_path(e):a("::","Dir").$pwd()}(),i._partition_path_sys=d([],{}),i._partition_path_web=d([],{})},$.$$arity=-1),t.def(E,"$absolute_path?",m=function(t){var e,n=this;return u(e=t["$start_with?"](s(T,"SLASH")))?e:n.file_separator["$=="](s(T,"BACKSLASH"))?s(T,"WindowsRootRx")["$match?"](t):n.file_separator["$=="](s(T,"BACKSLASH"))},m.$$arity=1),u(s(T,"RUBY_ENGINE")["$=="]("opal")?a("::","JAVASCRIPT_IO_MODULE")["$=="]("xmlhttprequest"):s(T,"RUBY_ENGINE")["$=="]("opal"))?t.def(E,"$root?",g=function(t){var e,n=this;return u(e=n["$absolute_path?"](t))?e:t["$start_with?"]("file://","http://","https://")},g.$$arity=1):t.alias(E,"root?","absolute_path?"),t.def(E,"$unc?",v=function(t){return t["$start_with?"](s(T,"DOUBLE_SLASH"))},v.$$arity=1),t.def(E,"$web_root?",y=function(t){return t["$start_with?"](s(T,"SLASH"))},y.$$arity=1),t.def(E,"$descends_from?",_=function(t,n){var r;return n["$=="](t)?0:n["$=="](s(T,"SLASH"))?u(r=t["$start_with?"](s(T,"SLASH")))?1:r:u(r=t["$start_with?"](e(n,s(T,"SLASH"))))?e(n.$length(),1):r},_.$$arity=2),t.def(E,"$relative_path",b=function(e,n){var r=this,i=o;if(!u(r["$root?"](e)))return e;if(u(i=r["$descends_from?"](e,n)))return e.$slice(i,e.$length());try{return s(T,"Pathname").$new(e).$relative_path_from(s(T,"Pathname").$new(n)).$to_s()}catch(a){if(!t.rescue(a,[s(T,"StandardError")]))throw a;try{return e}finally{t.pop_exception()}}},b.$$arity=2),t.def(E,"$posixify",w=function(t){var e=this;return u(t)?u(e.file_separator["$=="](s(T,"BACKSLASH"))?t["$include?"](s(T,"BACKSLASH")):e.file_separator["$=="](s(T,"BACKSLASH")))?t.$tr(s(T,"BACKSLASH"),s(T,"SLASH")):t:""},w.$$arity=1),t.alias(E,"posixfy","posixify"),t.def(E,"$expand_path",x=function(e){var n,r,i,a=this,l=o,c=o,d=o;return r=a.$partition_path(e),n=t.to_ary(r),l=null==n[0]?o:n[0],c=null==n[1]?o:n[1],u(e["$include?"](s(T,"DOT_DOT")))?(d=[],f(l,"each",[],(i=function(t){i.$$s;return null==t&&(t=o),t["$=="](s(T,"DOT_DOT"))?d.$pop():d["$<<"](t)},i.$$s=a,i.$$arity=1,i)),a.$join_path(d,c)):a.$join_path(l,c)},x.$$arity=1),t.def(E,"$partition_path",k=function(r,i){var a=this,l=o,c=o,d=o,h=o,p=o,$=o;return null==i&&(i=o),u(l=(c=function(){return u(i)?a._partition_path_web:a._partition_path_sys}())["$[]"](r))?l:(d=a.$posixify(r),u(i)?u(a["$web_root?"](d))?h=s(T,"SLASH"):u(d["$start_with?"](s(T,"DOT_SLASH")))&&(h=s(T,"DOT_SLASH")):u(a["$root?"](d))?h=u(a["$unc?"](d))?s(T,"DOUBLE_SLASH"):u(d["$start_with?"](s(T,"SLASH")))?s(T,"SLASH"):d.$slice(0,e(d.$index(s(T,"SLASH")),1)):u(d["$start_with?"](s(T,"DOT_SLASH")))&&(h=s(T,"DOT_SLASH")),p=function(){return u(h)?d.$slice(h.$length(),d.$length()):d}().$split(s(T,"SLASH")),p.$delete(s(T,"DOT")),$=[r,[p,h]],f(c,"[]=",t.to_a($)),$[n($["length"],1)])},k.$$arity=-2),t.def(E,"$join_path",S=function(t,e){return null==e&&(e=o),u(e)?""+e+t.$join(s(T,"SLASH")):t.$join(s(T,"SLASH"))},S.$$arity=-2),t.def(E,"$system_path",O=function(n,i,l,c){var h,p,$,m,g=this,v=o,y=o,_=o,b=o,w=o,x=o,k=o,S=o,O=o,C=o;if(null==i&&(i=o),null==l&&(l=o),null==c&&(c=d([],{})),u(l)&&(u(g["$root?"](l))||g.$raise(a("::","SecurityError"),"Jail is not an absolute path: "+l),l=g.$posixify(l)),u(n)){if(u(g["$root?"](n))){if(v=g.$expand_path(n),u(u(h=l)?g["$descends_from?"](v,l)["$!"]():h)){if(u(c.$fetch("recover",!0)))return g.$logger().$warn((u(h=c["$[]"]("target_name"))?h:"path")+" is outside of jail; recovering automatically"),p=g.$partition_path(v),h=t.to_ary(p),y=null==h[0]?o:h[0],null==h[1]?o:h[1],p=g.$partition_path(l),h=t.to_ary(p),_=null==h[0]?o:h[0],b=null==h[1]?o:h[1],g.$join_path(e(_,y),b);g.$raise(a("::","SecurityError"),(u(h=c["$[]"]("target_name"))?h:"path")+" "+n+" is outside of jail: "+l+" (disallowed in safe mode)")}return v}p=g.$partition_path(n),h=t.to_ary(p),y=null==h[0]?o:h[0],null==h[1]?o:h[1]}else y=[];if(u(y["$empty?"]())){if(u(i["$nil_or_empty?"]()))return u(h=l)?h:g.working_dir;if(u(g["$root?"](i))){if(!u(l))return g.$expand_path(i);i=g.$posixify(i)}else p=g.$partition_path(i),h=t.to_ary(p),y=null==h[0]?o:h[0],null==h[1]?o:h[1],i=u(h=l)?h:g.working_dir}else u(i["$nil_or_empty?"]())?i=u(h=l)?h:g.working_dir:u(g["$root?"](i))?u(l)&&(i=g.$posixify(i)):i=(u(h=l)?h:g.working_dir).$chomp("/")+"/"+i;return u(u(h=u(p=l)?w=g["$descends_from?"](i,l)["$!"]():p)?g.file_separator["$=="](s(T,"BACKSLASH")):h)?(p=g.$partition_path(i),h=t.to_ary(p),x=null==h[0]?o:h[0],k=null==h[1]?o:h[1],p=g.$partition_path(l),h=t.to_ary(p),_=null==h[0]?o:h[0],b=null==h[1]?o:h[1],u(k["$!="](b))&&(u(c.$fetch("recover",!0))?(g.$logger().$warn("start path for "+(u(h=c["$[]"]("target_name"))?h:"path")+" is outside of jail root; recovering automatically"),x=_,w=!1):g.$raise(a("::","SecurityError"),"start path for "+(u(h=c["$[]"]("target_name"))?h:"path")+" "+i+" refers to location outside jail root: "+l+" (disallowed in safe mode)"))):(p=g.$partition_path(i),h=t.to_ary(p),x=null==h[0]?o:h[0],b=null==h[1]?o:h[1]),u((S=e(x,y))["$include?"](s(T,"DOT_DOT")))&&(h=[S,[]],O=h[0],S=h[1],u(l)?(u(_)||(p=g.$partition_path(l),h=t.to_ary(p),_=null==h[0]?o:h[0],null==h[1]?o:h[1]),C=!1,f(O,"each",[],($=function(t){var e,i=$.$$s||this;return null==t&&(t=o),t["$=="](s(T,"DOT_DOT"))?u(r(S.$size(),_.$size()))?S.$pop():u(c.$fetch("recover",!0))?u(C)?o:(i.$logger().$warn((u(e=c["$[]"]("target_name"))?e:"path")+" has illegal reference to ancestor of jail; recovering automatically"),C=!0):i.$raise(a("::","SecurityError"),(u(e=c["$[]"]("target_name"))?e:"path")+" "+n+" refers to location outside jail: "+l+" (disallowed in safe mode)"):S["$<<"](t)},$.$$s=g,$.$$arity=1,$))):f(O,"each",[],(m=function(t){m.$$s;return null==t&&(t=o),t["$=="](s(T,"DOT_DOT"))?S.$pop():S["$<<"](t)},m.$$s=g,m.$$arity=1,m))),u(w)?(v=g.$join_path(S,b),u(g["$descends_from?"](v,l))?v:u(c.$fetch("recover",!0))?(g.$logger().$warn((u(h=c["$[]"]("target_name"))?h:"path")+" is outside of jail; recovering automatically"),u(_)||(p=g.$partition_path(l),h=t.to_ary(p),_=null==h[0]?o:h[0],null==h[1]?o:h[1]),g.$join_path(e(_,y),b)):g.$raise(a("::","SecurityError"),(u(h=c["$[]"]("target_name"))?h:"path")+" "+n+" is outside of jail: "+l+" (disallowed in safe mode)")):g.$join_path(S,b)},O.$$arity=-2),t.def(E,"$web_path",C=function(e,n){var r,i,a,l=this,c=o,d=o,h=o,p=o,$=o;return null==n&&(n=o),e=l.$posixify(e),n=l.$posixify(n),u(u(r=n["$nil_or_empty?"]())?r:l["$web_root?"](e))||(i=l.$extract_uri_prefix(""+n+function(){return u(n["$end_with?"](s(T,"SLASH")))?"":s(T,"SLASH")}()+e),r=t.to_ary(i),e=null==r[0]?o:r[0],c=null==r[1]?o:r[1]),i=l.$partition_path(e,!0),r=t.to_ary(i),d=null==r[0]?o:r[0],h=null==r[1]?o:r[1],p=[],f(d,"each",[],(a=function(t){var e;a.$$s;return null==t&&(t=o),t["$=="](s(T,"DOT_DOT"))?u(p["$empty?"]())?u(u(e=h)?h["$!="](s(T,"DOT_SLASH")):e)?o:p["$<<"](t):p["$[]"](-1)["$=="](s(T,"DOT_DOT"))?p["$<<"](t):p.$pop():p["$<<"](t)},a.$$s=l,a.$$arity=1,a)),u(($=l.$join_path(p,h))["$include?"](" "))&&($=$.$gsub(" ","%20")),u(c)?""+c+$:$},C.$$arity=-2),E.$private(),t.def(E,"$extract_uri_prefix",A=function(t){var e;return u(u(e=t["$include?"](":"))?s(T,"UriSniffRx")["$=~"](t):e)?[t.$slice(((e=h["~"])===o?o:e["$[]"](0)).$length(),t.$length()),(e=h["~"])===o?o:e["$[]"](0)]:t},A.$$arity=1)})(m[0],null,m)}(i[0],i)},Opal.modules["asciidoctor/reader"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}function a(t,e){return"number"===typeof t&&"number"===typeof e?t","$slice","$[]","$length","$process_line","$times","$shift","$read_line","$<<","$-","$unshift_all","$has_more_lines?","$join","$read_lines","$unshift","$start_with?","$==","$*","$read_lines_until","$size","$clear","$cursor","$[]=","$!=","$fetch","$cursor_at_mark","$warn","$logger","$message_with_context","$new","$tap","$each","$instance_variables","$instance_variable_get","$instance_variable_set","$class","$object_id","$inspect","$private","$prepare_source_array","$prepare_source_string","$valid_encoding?","$to_s","$raise","$to_i","$attributes","$catalog","$pop_include","$parse","$path=","$dup","$end_with?","$keys","$rindex","$rootname","$key?","$attr","$>=","$nil?","$extensions?","$include_processors?","$extensions","$include_processors","$map","$skip_front_matter!","$pop","$adjust_indentation!","$include?","$=~","$preprocess_conditional_directive","$preprocess_include_directive","$downcase","$error","$none?","$any?","$all?","$strip","$send","$resolve_expr_val","$replace_next_line","$rstrip","$sub_attributes","$attribute_missing","$info","$parse_attributes","$find","$handles?","$instance","$process_method","$safe","$resolve_include_path","$method","$split_delimited_value","$partition","$<","$/","$to_a","$uniq","$sort","$call","$each_line","$infinite?","$push_include","$delete","$value?","$create_include_cursor","$delete_at","$read","$uriish?","$attr?","$require_library","$normalize_system_path","$file?","$relative_path","$path_resolver","$base_dir","$to_f"]),function(l,y){var _=f(l,"Asciidoctor"),b=[_].concat(y);(function(o,a,s){var l,f,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J=h(o,a,"Reader"),Q=[J].concat(s);J.$$prototype.file=J.$$prototype.lines=J.$$prototype.look_ahead=J.$$prototype.unescape_next_line=J.$$prototype.lineno=J.$$prototype.process_lines=J.$$prototype.dir=J.$$prototype.path=J.$$prototype.mark=J.$$prototype.source_lines=J.$$prototype.saved=c,J.$include(d(Q,"Logging")),function(n,r,i){var o,a,s,l=h(n,r,"Cursor");[l].concat(i);l.$$prototype.lineno=l.$$prototype.path=c,l.$attr_reader("file","dir","path","lineno"),t.def(l,"$initialize",o=function(t,e,n,r){var i,o=this;return null==e&&(e=c),null==n&&(n=c),null==r&&(r=1),i=[t,e,n,r],o.file=i[0],o.dir=i[1],o.path=i[2],o.lineno=i[3],i},o.$$arity=-2),t.def(l,"$advance",a=function(t){var n=this;return n.lineno=e(n.lineno,t)},a.$$arity=1),t.def(l,"$line_info",s=function(){var t=this;return t.path+": line "+t.lineno},s.$$arity=0),t.alias(l,"to_s","line_info")}(Q[0],null,Q),J.$attr_reader("file"),J.$attr_reader("dir"),J.$attr_reader("path"),J.$attr_reader("lineno"),J.$attr_reader("source_lines"),J.$attr_accessor("process_lines"),J.$attr_accessor("unterminated"),t.def(J,"$initialize",l=function(e,n,r){var i,o,a=this;return null==e&&(e=c),null==n&&(n=c),null==r&&(r=p([],{})),$(n["$!"]())?(a.file=c,a.dir=".",a.path="",a.lineno=1):$(u("::","String")["$==="](n))?(a.file=n,o=u("::","File").$split(a.file),i=t.to_ary(o),a.dir=null==i[0]?c:i[0],a.path=null==i[1]?c:i[1],a.lineno=1):($(a.file=n.$file())?(a.dir=$(i=n.$dir())?i:u("::","File").$dirname(a.file),a.path=$(i=n.$path())?i:u("::","File").$basename(a.file)):(a.dir=$(i=n.$dir())?i:".",a.path=$(i=n.$path())?i:""),a.lineno=$(i=n.$lineno())?i:1),a.lines=a.$prepare_lines(e,r),a.source_lines=a.lines.$drop(0),a.mark=c,a.look_ahead=0,a.process_lines=!0,a.unescape_next_line=!1,a.unterminated=c,a.saved=c},l.$$arity=-1),t.def(J,"$has_more_lines?",f=function(){var t=this;return!$(t.lines["$empty?"]())||(t.look_ahead=0,!1)},f.$$arity=0),t.def(J,"$empty?",g=function(){var t=this;return!!$(t.lines["$empty?"]())&&(t.look_ahead=0,!0)},g.$$arity=0),t.alias(J,"eof?","empty?"),t.def(J,"$next_line_empty?",v=function(){var t=this;return t.$peek_line()["$nil_or_empty?"]()},v.$$arity=0),t.def(J,"$peek_line",y=function(t){var e,r=this,i=c;return null==t&&(t=!1),$($(e=t)?e:n(r.look_ahead,0))?$(r.unescape_next_line)?(i=r.lines["$[]"](0)).$slice(1,i.$length()):r.lines["$[]"](0):$(r.lines["$empty?"]())?(r.look_ahead=0,c):$(i=r.$process_line(r.lines["$[]"](0)))?i:r.$peek_line()},y.$$arity=-1),t.def(J,"$peek_lines",_=function(e,n){var i,o,a=this,s=c,l=c;return null==e&&(e=c),null==n&&(n=!1),s=a.look_ahead,l=[],function(){var s=t.new_brk();try{m($(i=e)?i:d(Q,"MAX_INT"),"times",[],(o=function(){var e=o.$$s||this,i=c;if(null==e.lineno&&(e.lineno=c),$(i=function(){return $(n)?e.$shift():e.$read_line()}()))return l["$<<"](i);$(n)&&(e.lineno=r(e.lineno,1)),t.brk(c,s)},o.$$s=a,o.$$brk=s,o.$$arity=0,o))}catch(u){if(u===s)return u.$v;throw u}}(),$(l["$empty?"]())||(a.$unshift_all(l),$(n)&&(a.look_ahead=s)),l},_.$$arity=-1),t.def(J,"$read_line",b=function(){var t,e=this;return $($(t=n(e.look_ahead,0))?t:e["$has_more_lines?"]())?e.$shift():c},b.$$arity=0),t.def(J,"$read_lines",w=function(){var t=this,e=c;e=[];while($(t["$has_more_lines?"]()))e["$<<"](t.$shift());return e},w.$$arity=0),t.alias(J,"readlines","read_lines"),t.def(J,"$read",x=function(){var t=this;return t.$read_lines().$join(d(Q,"LF"))},x.$$arity=0),t.def(J,"$advance",k=function(){var t=this;return!!$(t.$shift())},k.$$arity=0),t.def(J,"$unshift_line",S=function(t){var e=this;return e.$unshift(t),c},S.$$arity=1),t.alias(J,"restore_line","unshift_line"),t.def(J,"$unshift_lines",O=function(t){var e=this;return e.$unshift_all(t),c},O.$$arity=1),t.alias(J,"restore_lines","unshift_lines"),t.def(J,"$replace_next_line",C=function(t){var e=this;return e.$shift(),e.$unshift(t),!0},C.$$arity=1),t.alias(J,"replace_line","replace_next_line"),t.def(J,"$skip_blank_lines",A=function(){var t=this,n=c,r=c;if($(t["$empty?"]()))return c;n=0;while($(r=t.$peek_line())){if(!$(r["$empty?"]()))return n;t.$shift(),n=e(n,1)}},A.$$arity=0),t.def(J,"$skip_comment_lines",E=function(){var t,e=this,r=c,o=c;if($(e["$empty?"]()))return c;while($($(t=r=e.$peek_line())?r["$empty?"]()["$!"]():t)){if(!$(r["$start_with?"]("//")))break;if($(r["$start_with?"]("///"))){if(!$($(t=n(o=r.$length(),3))?r["$=="](i("/",o)):t))break;e.$read_lines_until(p(["terminator","skip_first_line","read_last_line","skip_processing","context"],{terminator:r,skip_first_line:!0,read_last_line:!0,skip_processing:!0,context:"comment"}))}else e.$shift()}return c},E.$$arity=0),t.def(J,"$skip_line_comments",T=function(){var t,e=this,n=c,r=c;if($(e["$empty?"]()))return[];n=[];while($($(t=r=e.$peek_line())?r["$empty?"]()["$!"]():t)){if(!$(r["$start_with?"]("//")))break;n["$<<"](e.$shift())}return n},T.$$arity=0),t.def(J,"$terminate",P=function(){var t=this;return t.lineno=e(t.lineno,t.lines.$size()),t.lines.$clear(),t.look_ahead=0,c},P.$$arity=0),t.def(J,"$read_lines_until",B=function(e){var n,i,o,a,s=B.$$p,l=s||c,u=this,f=c,h=c,g=c,v=c,y=c,_=c,b=c,w=c,x=c,k=c,S=c,O=c,C=c;s&&(B.$$p=null),null==e&&(e=p([],{})),f=[],$($(n=u.process_lines)?e["$[]"]("skip_processing"):n)&&(u.process_lines=!1,h=!0),$(g=e["$[]"]("terminator"))?(v=$(n=e["$[]"]("cursor"))?n:u.$cursor(),y=!1,_=!1):(y=e["$[]"]("break_on_blank_lines"),_=e["$[]"]("break_on_list_continuation")),b=e["$[]"]("skip_line_comments"),w=x=k=c,$(e["$[]"]("skip_first_line"))&&u.$shift();while($($(i=w["$!"]())?S=u.$read_line():i))w=function(){while($(!0))return!!$($(o=g)?S["$=="](g):o)||(!!$($(o=y)?S["$empty?"]():o)||($($(o=$(a=_)?x:a)?S["$=="](d(Q,"LIST_CONTINUATION")):o)?(O=["preserve_last_line",!0],m(e,"[]=",t.to_a(O)),O[r(O["length"],1)],!0):!!$((o=l!==c)?t.yield1(l,S):l!==c)));return c}(),$(w)?($(e["$[]"]("read_last_line"))&&(f["$<<"](S),x=!0),$(e["$[]"]("preserve_last_line"))&&(u.$unshift(S),k=!0)):$($(i=$(o=b)?S["$start_with?"]("//"):o)?S["$start_with?"]("///")["$!"]():i)||(f["$<<"](S),x=!0);return $(h)&&(u.process_lines=!0,$($(n=k)?g["$!"]():n)&&(u.look_ahead=r(u.look_ahead,1))),$($(n=$(i=g)?g["$!="](S):i)?C=e.$fetch("context",g):n)&&(v["$=="]("at_mark")&&(v=u.$cursor_at_mark()),u.$logger().$warn(u.$message_with_context("unterminated "+C+" block",p(["source_location"],{source_location:v}))),u.unterminated=!0),f},B.$$arity=-1),t.def(J,"$shift",L=function(){var t=this;return t.lineno=e(t.lineno,1),t.look_ahead["$=="](0)||(t.look_ahead=r(t.look_ahead,1)),t.lines.$shift()},L.$$arity=0),t.def(J,"$unshift",I=function(t){var n=this;return n.lineno=r(n.lineno,1),n.look_ahead=e(n.look_ahead,1),n.lines.$unshift(t)},I.$$arity=1),t.def(J,"$unshift_all",D=function(n){var i=this;return i.lineno=r(i.lineno,n.$size()),i.look_ahead=e(i.look_ahead,n.$size()),m(i.lines,"unshift",t.to_a(n))},D.$$arity=1),t.def(J,"$cursor",R=function(){var t=this;return d(Q,"Cursor").$new(t.file,t.dir,t.path,t.lineno)},R.$$arity=0),t.def(J,"$cursor_at_line",j=function(t){var e=this;return d(Q,"Cursor").$new(e.file,e.dir,e.path,t)},j.$$arity=1),t.def(J,"$cursor_at_mark",M=function(){var e=this;return $(e.mark)?m(d(Q,"Cursor"),"new",t.to_a(e.mark)):e.$cursor()},M.$$arity=0),t.def(J,"$cursor_before_mark",F=function(){var e,n,i=this,o=c,a=c,s=c,l=c;return $(i.mark)?(n=i.mark,e=t.to_ary(n),o=null==e[0]?c:e[0],a=null==e[1]?c:e[1],s=null==e[2]?c:e[2],l=null==e[3]?c:e[3],d(Q,"Cursor").$new(o,a,s,r(l,1))):d(Q,"Cursor").$new(i.file,i.dir,i.path,r(i.lineno,1))},F.$$arity=0),t.def(J,"$cursor_at_prev_line",N=function(){var t=this;return d(Q,"Cursor").$new(t.file,t.dir,t.path,r(t.lineno,1))},N.$$arity=0),t.def(J,"$mark",z=function(){var t=this;return t.mark=[t.file,t.dir,t.path,t.lineno]},z.$$arity=0),t.def(J,"$line_info",H=function(){var t=this;return t.path+": line "+t.lineno},H.$$arity=0),t.def(J,"$lines",V=function(){var t=this;return t.lines.$drop(0)},V.$$arity=0),t.def(J,"$string",U=function(){var t=this;return t.lines.$join(d(Q,"LF"))},U.$$arity=0),t.def(J,"$source",q=function(){var t=this;return t.source_lines.$join(d(Q,"LF"))},q.$$arity=0),t.def(J,"$save",W=function(){var e,n=this;return n.saved=m(p([],{}),"tap",[],(e=function(n){var i,o=e.$$s||this;return null==n&&(n=c),m(o.$instance_variables(),"each",[],(i=function(e){var o,a=i.$$s||this,s=c,l=c;return null==e&&(e=c),$($(o=e["$=="]("@saved"))?o:e["$=="]("@source_lines"))?c:(s=[e,function(){return $(u("::","Array")["$==="](l=a.$instance_variable_get(e)))?l.$drop(0):l}()],m(n,"[]=",t.to_a(s)),s[r(s["length"],1)])},i.$$s=o,i.$$arity=1,i))},e.$$s=n,e.$$arity=1,e)),c},W.$$arity=0),t.def(J,"$restore_save",G=function(){var t,e=this;return $(e.saved)?(m(e.saved,"each",[],(t=function(e,n){var r=t.$$s||this;return null==e&&(e=c),null==n&&(n=c),r.$instance_variable_set(e,n)},t.$$s=e,t.$$arity=2,t)),e.saved=c):c},G.$$arity=0),t.def(J,"$discard_save",Y=function(){var t=this;return t.saved=c},Y.$$arity=0),t.def(J,"$to_s",K=function(){var t=this;return"#<"+t.$class()+"@"+t.$object_id()+" {path: "+t.path.$inspect()+", line: "+t.lineno+"}>"},K.$$arity=0),J.$private(),t.def(J,"$prepare_lines",X=function(e,n){var r=this;null==n&&(n=p([],{}));try{return $(n["$[]"]("normalize"))?$(u("::","Array")["$==="](e))?d(Q,"Helpers").$prepare_source_array(e):d(Q,"Helpers").$prepare_source_string(e):$(u("::","Array")["$==="](e))?e.$drop(0):$(e)?e.$split(d(Q,"LF"),-1):[]}catch(i){if(!t.rescue(i,[d(Q,"StandardError")]))throw i;try{return $(function(){return $(u("::","Array")["$==="](e))?e.$join():e.$to_s()}()["$valid_encoding?"]())?r.$raise():r.$raise(u("::","ArgumentError"),"source is either binary or contains invalid Unicode data")}finally{t.pop_exception()}}},X.$$arity=-2),t.def(J,"$process_line",Z=function(t){var n=this;return $(n.process_lines)&&(n.look_ahead=e(n.look_ahead,1)),t},Z.$$arity=1)})(b[0],null,b),function(i,l,f){var y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F=h(i,l,"PreprocessorReader"),N=[F].concat(f);F.$$prototype.include_stack=F.$$prototype.lines=F.$$prototype.file=F.$$prototype.dir=F.$$prototype.path=F.$$prototype.lineno=F.$$prototype.maxdepth=F.$$prototype.process_lines=F.$$prototype.includes=F.$$prototype.document=F.$$prototype.unescape_next_line=F.$$prototype.include_processor_extensions=F.$$prototype.look_ahead=F.$$prototype.skipping=F.$$prototype.conditional_stack=c,F.$attr_reader("include_stack"),t.def(F,"$initialize",y=function(e,r,i,o){var a,s=y.$$p,l=this,u=c;return s&&(y.$$p=null),null==r&&(r=c),null==i&&(i=c),null==o&&(o=p([],{})),l.document=e,m(l,t.find_super_dispatcher(l,"initialize",y,!1),[r,i,o],null),$(n(u=($(a=e.$attributes()["$[]"]("max-include-depth"))?a:64).$to_i(),0))?l.maxdepth=p(["abs","curr","rel"],{abs:u,curr:u,rel:u}):l.maxdepth=c,l.include_stack=[],l.includes=e.$catalog()["$[]"]("includes"),l.skipping=!1,l.conditional_stack=[],l.include_processor_extensions=c},y.$$arity=-2),t.def(F,"$has_more_lines?",_=function(){var t=this;return!!$(t.$peek_line())},_.$$arity=0),t.def(F,"$empty?",b=function(){var t=this;return!$(t.$peek_line())},b.$$arity=0),t.alias(F,"eof?","empty?"),t.def(F,"$peek_line",w=function(e){var n=w.$$p,r=this,i=c,o=c,a=c,s=c;for(n&&(w.$$p=null),a=0,s=arguments.length,o=new Array(s);a"),h.lineno=s,$($(f=h.maxdepth)?l["$key?"]("depth"):f)&&($(n(y=l["$[]"]("depth").$to_i(),0))?($(n(_=e(h.include_stack.$size(),y),b=h.maxdepth["$[]"]("abs")))&&(_=y=b),h.maxdepth=p(["abs","curr","rel"],{abs:b,curr:_,rel:y})):h.maxdepth=p(["abs","curr","rel"],{abs:h.maxdepth["$[]"]("abs"),curr:h.include_stack.$size(),rel:0})),$((h.lines=h.$prepare_lines(i,p(["normalize","condense","indent"],{normalize:!0,condense:!1,indent:l["$[]"]("indent")})))["$empty?"]())?h.$pop_include():($(l["$key?"]("leveloffset"))&&(h.lines.$unshift(""),h.lines.$unshift(":leveloffset: "+l["$[]"]("leveloffset")),h.lines["$<<"](""),$(w=h.document.$attr("leveloffset"))?h.lines["$<<"](":leveloffset: "+w):h.lines["$<<"](":leveloffset!:"),h.lineno=r(h.lineno,2)),h.look_ahead=0),h},x.$$arity=-2),t.def(F,"$include_depth",k=function(){var t=this;return t.include_stack.$size()},k.$$arity=0),t.def(F,"$exceeds_max_depth?",S=function(){var t,e,n=this;return $(t=$(e=n.maxdepth)?o(n.include_stack.$size(),n.maxdepth["$[]"]("curr")):e)?n.maxdepth["$[]"]("rel"):t},S.$$arity=0),t.alias(F,"exceeded_max_depth?","exceeds_max_depth?"),t.def(F,"$shift",O=function(){var e=O.$$p,n=this,r=c,i=c,o=c,a=c;for(e&&(O.$$p=null),o=0,a=arguments.length,i=new Array(a);o"},E.$$arity=0),F.$private(),t.def(F,"$prepare_lines",T=function(n,i){var o,a,s=T.$$p,l=this,u=c,f=c,h=c,g=c,v=c,y=c,_=c,b=c;for(s&&(T.$$p=null),_=0,b=arguments.length,y=new Array(b);_e:t["$>"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}t.top;var i=[],o=t.nil,a=(t.const_get_qualified,t.const_get_relative),s=(t.breaker,t.slice,t.module),l=t.klass,c=t.hash2,u=t.send,d=t.truthy;return t.add_stubs(["$attr_accessor","$attr_reader","$===","$+","$level","$special","$generate_id","$title","$==","$>","$sectnum","$reftext","$!","$empty?","$sub_placeholder","$sub_quotes","$compat_mode","$[]","$attributes","$context","$assign_numeral","$class","$object_id","$inspect","$size","$length","$chr","$[]=","$-","$gsub","$downcase","$delete","$tr_s","$end_with?","$chop","$start_with?","$slice","$key?","$catalog","$unique_id_start_index"]),function(i,f){var h=s(i,"Asciidoctor"),p=[h].concat(f);(function(i,s,f){var h,p,$,m,g,v,y,_=l(i,s,"Section"),b=[_].concat(f);_.$$prototype.document=_.$$prototype.level=_.$$prototype.parent=_.$$prototype.numeral=_.$$prototype.numbered=_.$$prototype.sectname=_.$$prototype.title=_.$$prototype.blocks=o,_.$attr_accessor("index"),_.$attr_accessor("sectname"),_.$attr_accessor("special"),_.$attr_accessor("numbered"),_.$attr_reader("caption"),t.def(_,"$initialize",h=function(n,r,i,s){var l,f,p=h.$$p,$=this;return p&&(h.$$p=null),null==n&&(n=o),null==r&&(r=o),null==i&&(i=!1),null==s&&(s=c([],{})),u($,t.find_super_dispatcher($,"initialize",h,!1),[n,"section",s],null),d(a(b,"Section")["$==="](n))?(l=[d(f=r)?f:e(n.$level(),1),n.$special()],$.level=l[0],$.special=l[1]):(l=[d(f=r)?f:1,!1],$.level=l[0],$.special=l[1]),$.numbered=i,$.index=0},h.$$arity=-1),t.alias(_,"name","title"),t.def(_,"$generate_id",p=function(){var t=this;return a(b,"Section").$generate_id(t.$title(),t.document)},p.$$arity=0),t.def(_,"$sectnum",$=function(t,e){var r,i=this;return null==t&&(t="."),null==e&&(e=o),e=d(r=e)?r:function(){return e["$=="](!1)?"":t}(),d(d(r=n(i.level,1))?a(b,"Section")["$==="](i.parent):r)?""+i.parent.$sectnum(t,t)+i.numeral+e:""+i.numeral+e},$.$$arity=-1),t.def(_,"$xreftext",m=function(t){var e,n=this,r=o,i=o,a=o,s=o,l=o;return null==t&&(t=o),d(d(e=r=n.$reftext())?r["$empty?"]()["$!"]():e)?r:d(t)?d(n.numbered)?function(){return i=t,"full"["$==="](i)?(s=d(d(e=(a=n.sectname)["$=="]("chapter"))?e:a["$=="]("appendix"))?n.$sub_placeholder(n.$sub_quotes("_%s_"),n.$title()):n.$sub_placeholder(n.$sub_quotes(function(){return d(n.document.$compat_mode())?"``%s''":'"`%s`"'}()),n.$title()),d(l=n.document.$attributes()["$[]"](a+"-refsig"))?l+" "+n.$sectnum(".",",")+" "+s:n.$sectnum(".",",")+" "+s):"short"["$==="](i)?d(l=n.document.$attributes()["$[]"](n.sectname+"-refsig"))?l+" "+n.$sectnum(".",""):n.$sectnum(".",""):d(d(e=(a=n.sectname)["$=="]("chapter"))?e:a["$=="]("appendix"))?n.$sub_placeholder(n.$sub_quotes("_%s_"),n.$title()):n.$title()}():d(d(e=(a=n.sectname)["$=="]("chapter"))?e:a["$=="]("appendix"))?n.$sub_placeholder(n.$sub_quotes("_%s_"),n.$title()):n.$title():n.$title()},m.$$arity=-1),t.def(_,"$<<",g=function(e){var n=g.$$p,r=this,i=o,a=o,s=o;for(n&&(g.$$p=null),a=0,s=arguments.length,i=new Array(s);a"):u(n,t.find_super_dispatcher(n,"to_s",v,!1),i,e)},v.$$arity=0),t.defs(_,"$generate_id",y=function(n,i){var s,l,c=o,f=o,h=o,p=o,$=o,m=o,g=o,v=o,y=o,_=o;if(c=i.$attributes(),f=d(s=c["$[]"]("idprefix"))?s:"_",d(h=c["$[]"]("idseparator"))?d(d(s=h.$length()["$=="](1))?s:d(l=(p=h["$empty?"]())["$!"]())?($=["idseparator",h.$chr()],u(c,"[]=",t.to_a($)),h=$[r($["length"],1)]):l)&&(m=function(){return d(d(s=h["$=="]("-"))?s:h["$=="]("."))?" .-":" "+h+".-"}()):(s=["_"," _.-"],h=s[0],m=s[1]),g=""+f+n.$downcase().$gsub(a(b,"InvalidSectionIdCharsRx"),""),d(p)?g=g.$delete(" "):(g=g.$tr_s(m,h),d(g["$end_with?"](h))&&(g=g.$chop()),d(d(s=f["$empty?"]())?g["$start_with?"](h):s)&&(g=g.$slice(1,g.$length()))),d(i.$catalog()["$[]"]("refs")["$key?"](g))){v=i.$catalog()["$[]"]("refs"),y=a(b,"Compliance").$unique_id_start_index();while(d(v["$[]"](_=""+g+h+y)))y=e(y,1);return _}return g},y.$$arity=2)})(p[0],a(p,"AbstractBlock"),p)}(i[0],i)},Opal.modules["asciidoctor/stylesheets"]=function(t){t.top;var e=[],n=t.nil,r=t.const_get_qualified,i=t.const_get_relative,o=(t.breaker,t.slice,t.module),a=t.klass,s=t.truthy,l=t.hash2;return t.add_stubs(["$join","$new","$rstrip","$read","$primary_stylesheet_data","$write","$primary_stylesheet_name","$stylesheet_basename","$for","$read_stylesheet","$coderay_stylesheet_data","$coderay_stylesheet_name","$pygments_stylesheet_data","$pygments_stylesheet_name"]),function(e,c){var u=o(e,"Asciidoctor"),d=[u].concat(c);(function(e,o,c){var u,d,f,h,p,$,m,g,v,y,_,b,w,x=a(e,o,"Stylesheets"),k=[x].concat(c);x.$$prototype.primary_stylesheet_data=n,t.const_set(k[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),t.const_set(k[0],"STYLESHEETS_DIR",r("::","File").$join(i(k,"DATA_DIR"),"stylesheets")),x.__instance__=x.$new(),t.defs(x,"$instance",u=function(){var t=this;return null==t.__instance__&&(t.__instance__=n),t.__instance__},u.$$arity=0),t.def(x,"$primary_stylesheet_name",d=function(){return i(k,"DEFAULT_STYLESHEET_NAME")},d.$$arity=0),t.def(x,"$primary_stylesheet_data",f=function(){var t,e=this;return e.primary_stylesheet_data=s(t=e.primary_stylesheet_data)?t:r("::","File").$read(r("::","File").$join(i(k,"STYLESHEETS_DIR"),"asciidoctor-default.css"),l(["mode"],{mode:i(k,"FILE_READ_MODE")})).$rstrip()},f.$$arity=0),t.def(x,"$embed_primary_stylesheet",h=function(){var t=this;return""},h.$$arity=0),t.def(x,"$write_primary_stylesheet",p=function(t){var e=this;return null==t&&(t="."),r("::","File").$write(r("::","File").$join(t,e.$primary_stylesheet_name()),e.$primary_stylesheet_data(),l(["mode"],{mode:i(k,"FILE_WRITE_MODE")}))},p.$$arity=-1),t.def(x,"$coderay_stylesheet_name",$=function(){return i(k,"SyntaxHighlighter").$for("coderay").$stylesheet_basename()},$.$$arity=0),t.def(x,"$coderay_stylesheet_data",m=function(){return i(k,"SyntaxHighlighter").$for("coderay").$read_stylesheet()},m.$$arity=0),t.def(x,"$embed_coderay_stylesheet",g=function(){var t=this;return""},g.$$arity=0),t.def(x,"$write_coderay_stylesheet",v=function(t){var e=this;return null==t&&(t="."),r("::","File").$write(r("::","File").$join(t,e.$coderay_stylesheet_name()),e.$coderay_stylesheet_data(),l(["mode"],{mode:i(k,"FILE_WRITE_MODE")}))},v.$$arity=-1),t.def(x,"$pygments_stylesheet_name",y=function(t){return null==t&&(t=n),i(k,"SyntaxHighlighter").$for("pygments").$stylesheet_basename(t)},y.$$arity=-1),t.def(x,"$pygments_stylesheet_data",_=function(t){return null==t&&(t=n),i(k,"SyntaxHighlighter").$for("pygments").$read_stylesheet(t)},_.$$arity=-1),t.def(x,"$embed_pygments_stylesheet",b=function(t){var e=this;return null==t&&(t=n),""},b.$$arity=-1),t.def(x,"$write_pygments_stylesheet",w=function(t,e){var o=this;return null==t&&(t="."),null==e&&(e=n),r("::","File").$write(r("::","File").$join(t,o.$pygments_stylesheet_name(e)),o.$pygments_stylesheet_data(e),l(["mode"],{mode:i(k,"FILE_WRITE_MODE")}))},w.$$arity=-1)})(d[0],null,d)}(e[0],e)},Opal.modules["asciidoctor/table"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t","$to_i","$<","$==","$[]=","$-","$attributes","$truncate","$*","$/","$to_f","$empty?","$body","$each","$<<","$size","$+","$assign_column_widths","$warn","$logger","$update_attributes","$assign_width","$round","$shift","$style=","$head=","$pop","$foot=","$parent","$sourcemap","$dup","$header_row?","$table","$delete","$start_with?","$rstrip","$slice","$length","$advance","$lstrip","$strip","$split","$include?","$readlines","$unshift","$nil?","$=~","$catalog_inline_anchor","$apply_subs","$convert","$map","$text","$!=","$file","$lineno","$to_s","$include","$to_set","$mark","$key?","$nested?","$document","$error","$message_with_context","$cursor_at_prev_line","$nil_or_empty?","$escape","$columns","$match","$chop","$end_with?","$gsub","$!","$push_cellspec","$cell_open?","$close_cell","$take_cellspec","$squeeze","$upto","$times","$cursor_before_mark","$rowspan","$activate_rowspan","$colspan","$end_of_row?","$close_row","$private","$rows","$effective_column_visits"]),function(s,g){var v=d(s,"Asciidoctor"),y=[v].concat(g);(function(s,c,d){var m,g,v,y,_,b=f(s,c,"Table"),w=[b].concat(d);b.$$prototype.attributes=b.$$prototype.document=b.$$prototype.has_header_option=b.$$prototype.rows=b.$$prototype.columns=l,t.const_set(w[0],"DEFAULT_PRECISION",4),function(e,n,r){var i,o,a,s=f(e,n,"Rows");[s].concat(r);s.$$prototype.head=s.$$prototype.body=s.$$prototype.foot=l,s.$attr_accessor("head","foot","body"),t.def(s,"$initialize",i=function(t,e,n){var r=this;return null==t&&(t=[]),null==e&&(e=[]),null==n&&(n=[]),r.head=t,r.foot=e,r.body=n},i.$$arity=-1),t.alias(s,"[]","send"),t.def(s,"$by_section",o=function(){var t=this;return[["head",t.head],["body",t.body],["foot",t.foot]]},o.$$arity=0),t.def(s,"$to_h",a=function(){var t=this;return h(["head","body","foot"],{head:t.head,body:t.body,foot:t.foot})},a.$$arity=0)}(w[0],null,w),b.$attr_accessor("columns"),b.$attr_accessor("rows"),b.$attr_accessor("has_header_option"),b.$attr_reader("caption"),t.def(b,"$initialize",m=function(a,s){var c,d,f=m.$$p,h=this,g=l,v=l,y=l,_=l;return f&&(m.$$p=null),p(h,t.find_super_dispatcher(h,"initialize",m,!1),[a,"table"],null),h.rows=u(w,"Rows").$new(),h.columns=[],h.has_header_option=function(){return!!$(s["$[]"]("header-option"))}(),$(g=s["$[]"]("width"))?$($(c=e(v=g.$to_i(),100))?c:n(v,1))&&($((c=v["$=="](0))?$(d=g["$=="]("0"))?d:g["$=="]("0%"):v["$=="](0))||(v=100)):v=100,y=["tablepcwidth",v],p(h.attributes,"[]=",t.to_a(y)),y[r(y["length"],1)],$(h.document.$attributes()["$[]"]("pagewidth"))&&(y=["tableabswidth",function(){return(_=i(o(v,100),h.document.$attributes()["$[]"]("pagewidth").$to_f()).$truncate(u(w,"DEFAULT_PRECISION")))["$=="](_.$to_i())?_.$to_i():_}()],p(h.attributes,"[]=",t.to_a(y)),y[r(y["length"],1)]),$(s["$[]"]("rotate-option"))?(y=["orientation","landscape"],p(h.attributes,"[]=",t.to_a(y)),y[r(y["length"],1)]):l},m.$$arity=2),t.def(b,"$header_row?",g=function(){var t,e=this;return $(t=e.has_header_option)?e.rows.$body()["$empty?"]():t},g.$$arity=0),t.def(b,"$create_columns",v=function(i){var o,s,c=this,d=l,f=l,h=l,m=l,g=l;return d=[],f=l,h=0,p(i,"each",[],(o=function(t){var e,r=o.$$s||this,i=l;return null==t&&(t=l),i=t["$[]"]("width"),d["$<<"](u(w,"Column").$new(r,d.$size(),t)),$(n(i,0))?(f=$(e=f)?e:[])["$<<"](d["$[]"](-1)):h=a(h,i)},o.$$s=c,o.$$arity=1,o)),$(e(m=(c.columns=d).$size(),0))&&(g=["colcount",m],p(c.attributes,"[]=",t.to_a(g)),g[r(g["length"],1)],$($(s=e(h,0))?s:f)||(h=l),c.$assign_column_widths(h,f)),l},v.$$arity=1),t.def(b,"$assign_column_widths",y=function(t,n){var i,s,c,d=this,f=l,m=l,g=l,v=l,y=l;return null==t&&(t=l),null==n&&(n=l),f=u(w,"DEFAULT_PRECISION"),m=g=0,$(t)?($(n)&&($(e(t,100))?(v=0,d.$logger().$warn("total column width must not exceed 100% when using autowidth columns; got "+t+"%")):(v=o(r(100,t),n.$size()).$truncate(f),v.$to_i()["$=="](v)&&(v=v.$to_i()),t=100),y=h(["width","autowidth-option"],{width:v,"autowidth-option":""}),p(n,"each",[],(i=function(t){i.$$s;return null==t&&(t=l),t.$update_attributes(y)},i.$$s=d,i.$$arity=1,i))),p(d.columns,"each",[],(s=function(e){s.$$s;return null==e&&(e=l),m=a(m,g=e.$assign_width(l,t,f))},s.$$s=d,s.$$arity=1,s))):(g=o(100,d.columns.$size()).$truncate(f),g.$to_i()["$=="](g)&&(g=g.$to_i()),p(d.columns,"each",[],(c=function(t){c.$$s;return null==t&&(t=l),m=a(m,t.$assign_width(g,l,f))},c.$$s=d,c.$$arity=1,c))),m["$=="](100)||d.columns["$[]"](-1).$assign_width(a(r(100,m),g).$round(f),l,f),l},y.$$arity=-1),t.def(b,"$partition_header_footer",_=function(n){var i,o,a=this,s=l,c=l,u=l;return s=["rowcount",a.rows.$body().$size()],p(a.attributes,"[]=",t.to_a(s)),s[r(s["length"],1)],c=a.rows.$body().$size(),$($(i=e(c,0))?a.has_header_option:i)&&(u=a.rows.$body().$shift(),c=r(c,1),p(u,"each",[],(o=function(e){o.$$s;return null==e&&(e=l),s=[l],p(e,"style=",t.to_a(s)),s[r(s["length"],1)]},o.$$s=a,o.$$arity=1,o)),s=[[u]],p(a.rows,"head=",t.to_a(s)),s[r(s["length"],1)]),$($(i=e(c,0))?n["$[]"]("footer-option"):i)&&(s=[[a.rows.$body().$pop()]],p(a.rows,"foot=",t.to_a(s)),s[r(s["length"],1)]),l},_.$$arity=1)})(y[0],u(y,"AbstractBlock"),y),function(e,n,s){var c,u,d,m,g=f(e,n,"Column");[g].concat(s);g.$$prototype.attributes=l,g.$attr_accessor("style"),t.def(g,"$initialize",c=function(e,n,i){var o=c.$$p,s=this,u=l;return o&&(c.$$p=null),null==i&&(i=h([],{})),p(s,t.find_super_dispatcher(s,"initialize",c,!1),[e,"table_column"],null),s.style=i["$[]"]("style"),u=["colnumber",a(n,1)],p(i,"[]=",t.to_a(u)),u[r(u["length"],1)],$(i["$[]"]("width"))||(u=["width",1],p(i,"[]=",t.to_a(u)),u[r(u["length"],1)]),$(i["$[]"]("halign"))||(u=["halign","left"],p(i,"[]=",t.to_a(u)),u[r(u["length"],1)]),$(i["$[]"]("valign"))||(u=["valign","top"],p(i,"[]=",t.to_a(u)),u[r(u["length"],1)]),s.$update_attributes(i)},c.$$arity=-3),t.alias(g,"table","parent"),t.def(g,"$assign_width",u=function(e,n,a){var s=this,c=l,u=l;return $(n)&&(e=o(i(s.attributes["$[]"]("width").$to_f(),100),n).$truncate(a),e.$to_i()["$=="](e)&&(e=e.$to_i())),$(s.$parent().$attributes()["$[]"]("tableabswidth"))&&(c=["colabswidth",function(){return(u=i(o(e,100),s.$parent().$attributes()["$[]"]("tableabswidth")).$truncate(a))["$=="](u.$to_i())?u.$to_i():u}()],p(s.attributes,"[]=",t.to_a(c)),c[r(c["length"],1)]),c=["colpcwidth",e],p(s.attributes,"[]=",t.to_a(c)),c[r(c["length"],1)]},u.$$arity=3),t.def(g,"$block?",d=function(){return!1},d.$$arity=0),t.def(g,"$inline?",m=function(){return!1},m.$$arity=0)}(u(y,"Table"),u(y,"AbstractNode"),y),function(e,o,s){var c,d,g,v,y,_,b,w,x,k=f(e,o,"Cell"),S=[k].concat(s);k.$$prototype.document=k.$$prototype.text=k.$$prototype.subs=k.$$prototype.style=k.$$prototype.inner_document=k.$$prototype.source_location=k.$$prototype.colspan=k.$$prototype.rowspan=k.$$prototype.attributes=l,t.const_set(S[0],"DOUBLE_LF",i(u(S,"LF"),2)),k.$attr_accessor("colspan"),k.$attr_accessor("rowspan"),t.alias(k,"column","parent"),k.$attr_reader("inner_document"),t.def(k,"$initialize",c=function(e,i,o,s){var d,f,g=c.$$p,v=this,y=l,_=l,b=l,w=l,x=l,k=l,O=l,C=l,A=l,E=l,T=l,P=l;if(g&&(c.$$p=null),null==o&&(o=h([],{})),null==s&&(s=h([],{})),p(v,t.find_super_dispatcher(v,"initialize",c,!1),[e,"table_cell"],null),$(v.document.$sourcemap())&&(v.source_location=s["$[]"]("cursor").$dup()),$(e)&&($(y=e.$table()["$header_row?"]())||(_=e.$attributes()["$[]"]("style")),v.$update_attributes(e.$attributes())),$(o))if($(o["$empty?"]())?v.colspan=v.rowspan=l:(d=[o.$delete("colspan"),o.$delete("rowspan")],v.colspan=d[0],v.rowspan=d[1],$(y)||(_=$(d=o["$[]"]("style"))?d:_),v.$update_attributes(o)),_["$=="]("asciidoc"))if(b=!0,w=s["$[]"]("cursor"),$((i=i.$rstrip())["$start_with?"](u(S,"LF")))){x=1;while($((i=i.$slice(1,i.$length()))["$start_with?"](u(S,"LF"))))x=a(x,1);w.$advance(x)}else i=i.$lstrip();else if(_["$=="]("literal")){k=!0,i=i.$rstrip();while($(i["$start_with?"](u(S,"LF"))))i=i.$slice(1,i.$length())}else O=!0,i=function(){return $(i)?i.$strip():""}();else v.colspan=v.rowspan=l,_["$=="]("asciidoc")&&(b=!0,w=s["$[]"]("cursor"));return $(b)?(C=v.document.$attributes().$delete("doctitle"),A=i.$split(u(S,"LF"),-1),$(A["$empty?"]())||$((E=A["$[]"](0))["$include?"]("::"))&&(T=u(S,"PreprocessorReader").$new(v.document,[E]).$readlines(),$((d=E["$=="](T["$[]"](0)))?n(T.$size(),2):E["$=="](T["$[]"](0)))||(A.$shift(),$(T["$empty?"]())||p(A,"unshift",t.to_a(T)))),v.inner_document=u(S,"Document").$new(A,h(["standalone","parent","cursor"],{standalone:!1,parent:v.document,cursor:w})),$(C["$nil?"]())||(P=["doctitle",C],p(v.document.$attributes(),"[]=",t.to_a(P)),P[r(P["length"],1)]),v.subs=l):$(k)?(v.content_model="verbatim",v.subs=u(S,"BASIC_SUBS")):($($(d=$(f=O)?i["$start_with?"]("[["):f)?u(S,"LeadingInlineAnchorRx")["$=~"](i):d)&&u(S,"Parser").$catalog_inline_anchor((d=m["~"])===l?l:d["$[]"](1),(d=m["~"])===l?l:d["$[]"](2),v,s["$[]"]("cursor"),v.document),v.content_model="simple",v.subs=u(S,"NORMAL_SUBS")),v.text=i,v.style=_},c.$$arity=-3),t.def(k,"$text",d=function(){var t=this;return t.$apply_subs(t.text,t.subs)},d.$$arity=0),t.def(k,"$text=",g=function(t){var e=this;return e.text=t},g.$$arity=1),t.def(k,"$content",v=function(){var t,e,n=this,r=l,i=l;return(r=n.style)["$=="]("asciidoc")?n.inner_document.$convert():$(n.text["$include?"](u(S,"DOUBLE_LF")))?p(n.$text().$split(u(S,"BlankLineRx")),"map",[],(t=function(e){var n,i=t.$$s||this;return null==e&&(e=l),$($(n=r)?r["$!="]("header"):n)?u(S,"Inline").$new(i.$parent(),"quoted",e,h(["type"],{type:r})).$convert():e},t.$$s=n,t.$$arity=1,t)):$((i=n.$text())["$empty?"]())?[]:$($(e=r)?r["$!="]("header"):e)?[u(S,"Inline").$new(n.$parent(),"quoted",i,h(["type"],{type:r})).$convert()]:[i]},v.$$arity=0),t.def(k,"$lines",y=function(){var t=this;return t.text.$split(u(S,"LF"))},y.$$arity=0),t.def(k,"$source",_=function(){var t=this;return t.text},_.$$arity=0),t.def(k,"$file",b=function(){var t,e=this;return $(t=e.source_location)?e.source_location.$file():t},b.$$arity=0),t.def(k,"$lineno",w=function(){var t,e=this;return $(t=e.source_location)?e.source_location.$lineno():t},w.$$arity=0),t.def(k,"$to_s",x=function(){var e,n=x.$$p,r=this,i=l,o=l,a=l;for(n&&(x.$$p=null),o=0,a=arguments.length,i=new Array(a);o")+": Failed to load AsciiDoc document",c(O["$respond_to?"]("exception"))?(A=O.$exception(C+" - "+O.$message()),A.$set_backtrace(O.$backtrace()),A.stack=O.stack):(A=O.$class().$new(C,O),b=[O.$stack_trace()],u(A,"stack_trace=",t.to_a(b)),b[e(b["length"],1)])}catch(E){if(!t.rescue(E,[a($,"StandardError")]))throw E;try{A=O}finally{t.pop_exception()}}return v.$raise(A)}finally{t.pop_exception()}}},f.$$arity=-2),t.def(p,"$load_file",h=function(t,e){var n,r=this;return null==e&&(e=l([],{})),u(o("::","File"),"open",[t,a($,"FILE_READ_MODE")],(n=function(t){var r=n.$$s||this;return null==t&&(t=i),r.$load(t,e)},n.$$s=r,n.$$arity=1,n))},h.$$arity=-2)}(r[0],r)},Opal.modules["asciidoctor/convert"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t=","$safe","$normalize_system_path","$mkdir_p","$directory?","$!","$convert","$write","$<","$attr?","$basebackend?","$attr","$uriish?","$include?","$syntax_highlighter","$write_stylesheet?","$write_primary_stylesheet","$instance","$empty?","$!=","$read_asset","$file?","$write_stylesheet","$open"]),function(i,f){var h,p,$=l(i,"Asciidoctor"),m=[$].concat(f);$.$module_function(),t.def($,"$convert",h=function(i,l){var f,h,p,$,g,v=this,y=o,_=o,b=o,w=o,x=o,k=o,S=o,O=o,C=o,A=o,E=o,T=o,P=o,B=o,L=o,I=o,D=o,R=o,j=o,M=o,F=o,N=o,z=o,H=o;if(null==l&&(l=c([],{})),(l=l.$merge()).$delete("parse"),y=l.$delete("to_dir"),_=l.$delete("mkdirs"),b=w=l.$delete("to_file"),(!0)["$==="](b)||o["$==="](b))u(x=y)||u(a("::","File")["$==="](i))&&(k=a("::","File").$absolute_path(i.$path())),w=o;else if((!1)["$==="](b))w=o;else{if("/dev/null"["$==="](b))return v.$load(i,l);u(S=w["$respond_to?"]("write"))||(O=["to_file",x=w],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)])}return u(l["$key?"]("standalone"))||(u(u(f=k)?f:x)?(O=["standalone",l.$fetch("header_footer",!0)],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)]):u(l["$key?"]("header_footer"))&&(O=["standalone",l["$[]"]("header_footer")],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)])),u(k)?(O=["to_dir",C=a("::","File").$dirname(k)],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)]):u(x)&&(u(y)?u(w)?(O=["to_dir",a("::","File").$dirname(a("::","File").$expand_path(a("::","File").$join(y,w)))],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)]):(O=["to_dir",a("::","File").$expand_path(y)],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)]):u(w)&&(O=["to_dir",a("::","File").$dirname(a("::","File").$expand_path(w))],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)])),A=v.$load(i,l),u(k)?(E=a("::","File").$join(C,""+A.$attributes()["$[]"]("docname")+A.$outfilesuffix()),E["$=="](k)&&v.$raise(a("::","IOError"),"input file and output file cannot be the same: "+E)):u(x)?(T=function(){return u(l["$key?"]("base_dir"))?a("::","File").$expand_path(l["$[]"]("base_dir")):a("::","Dir").$pwd()}(),P=function(){return u(n(A.$safe(),a(s(m,"SafeMode"),"SAFE")))?T:o}(),u(y)?(C=A.$normalize_system_path(y,T,P,c(["target_name","recover"],{target_name:"to_dir",recover:!1})),u(w)?(E=A.$normalize_system_path(w,C,o,c(["target_name","recover"],{target_name:"to_dir",recover:!1})),C=a("::","File").$dirname(E)):E=a("::","File").$join(C,""+A.$attributes()["$[]"]("docname")+A.$outfilesuffix())):u(w)&&(E=A.$normalize_system_path(w,T,P,c(["target_name","recover"],{target_name:"to_dir",recover:!1})),C=a("::","File").$dirname(E)),u(u(f=a("::","File")["$==="](i))?E["$=="](a("::","File").$absolute_path(i.$path())):f)&&v.$raise(a("::","IOError"),"input file and output file cannot be the same: "+E),u(_)?s(m,"Helpers").$mkdir_p(C):u(a("::","File")["$directory?"](C))||v.$raise(a("::","IOError"),"target directory does not exist: "+y+" (hint: set :mkdirs option)")):(E=w,C=o),B=u(u(f=E)?S["$!"]():f)?A.$convert(c(["outfile","outdir"],{outfile:E,outdir:C})):A.$convert(),u(E)?(A.$write(B,E),u(u(f=u(h=u(p=u($=u(g=S["$!"]())?r(A.$safe(),a(s(m,"SafeMode"),"SECURE")):g)?A["$attr?"]("linkcss"):$)?A["$attr?"]("copycss"):p)?A["$basebackend?"]("html"):h)?(u(h=L=A.$attr("stylesdir"))?s(m,"Helpers")["$uriish?"](L):h)["$!"]():f)&&(u(I=A.$attr("stylesheet"))&&(u(s(m,"DEFAULT_STYLESHEET_KEYS")["$include?"](I))?D=!0:u(s(m,"Helpers")["$uriish?"](I)["$!"]())&&(R=!0)),j=u(f=M=A.$syntax_highlighter())?M["$write_stylesheet?"](A):f,u(u(f=u(h=D)?h:R)?f:j)&&(F=A.$normalize_system_path(L,C,function(){return u(n(A.$safe(),a(s(m,"SafeMode"),"SAFE")))?C:o}()),u(_)?s(m,"Helpers").$mkdir_p(F):u(a("::","File")["$directory?"](F))||v.$raise(a("::","IOError"),"target stylesheet directory does not exist: "+F+" (hint: set :mkdirs option)"),u(D)?s(m,"Stylesheets").$instance().$write_primary_stylesheet(F):u(R)&&(N=u((N=A.$attr("copycss"))["$empty?"]())?A.$normalize_system_path(I):A.$normalize_system_path(N),z=A.$normalize_system_path(I,F,function(){return u(n(A.$safe(),a(s(m,"SafeMode"),"SAFE")))?C:o}()),u(u(f=N["$!="](z))?H=A.$read_asset(N,c(["warn_on_failure","label"],{warn_on_failure:a("::","File")["$file?"](z)["$!"](),label:"stylesheet"})):f)&&a("::","File").$write(z,H,c(["mode"],{mode:s(m,"FILE_WRITE_MODE")}))),u(j)&&M.$write_stylesheet(A,F))),A):B},h.$$arity=-2),t.def($,"$convert_file",p=function(t,e){var n,r=this;return null==e&&(e=c([],{})),d(a("::","File"),"open",[t,s(m,"FILE_READ_MODE")],(n=function(t){var r=n.$$s||this;return null==t&&(t=o),r.$convert(t,e)},n.$$s=r,n.$$arity=1,n))},p.$$arity=-2),t.alias($,"render","convert"),$.$module_function("render"),t.alias($,"render_file","convert_file"),$.$module_function("render_file")}(i[0],i)},Opal.modules["asciidoctor/syntax_highlighter/highlightjs"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}t.top;var n=[],r=t.nil,i=t.const_get_qualified,o=t.const_get_relative,a=(t.breaker,t.slice,t.module),s=t.klass,l=t.send,c=t.hash2,u=t.truthy;return t.add_stubs(["$register_for","$merge","$proc","$[]=","$-","$==","$attr","$[]","$attr?","$join","$map","$split","$lstrip"]),function(n,d){var f=a(n,"Asciidoctor"),h=[f].concat(d);(function(n,i,a){var d,f,h,p,$=s(n,i,"HighlightJsAdapter"),m=[$].concat(a);$.$register_for("highlightjs","highlight.js"),t.def($,"$initialize",d=function(e){var n,i=d.$$p,o=this,a=r,s=r,c=r;for(i&&(d.$$p=null),s=0,c=arguments.length,a=new Array(c);s\n\\n\" + ((function() {if ($truthy(doc['$attr?'](\"highlightjs-languages\"))) {\n return $send(doc.$attr(\"highlightjs-languages\").$split(\",\"), 'map', [], ($$6 = function(lang){var self = $$6.$$s || this;\n\n \n \n if (lang == null) {\n lang = nil;\n };\n return \"\" + \"\\n\";}, $$6.$$s = self, $$6.$$arity = 1, $$6)).$join()\n } else {\n return \"\"\n }; return nil; })()) + \"\";\n }, $HighlightJsAdapter_docinfo$5.$$arity = 3), nil) && 'docinfo';\n })($$($nesting, 'SyntaxHighlighter'), $$$($$($nesting, 'SyntaxHighlighter'), 'Base'), $nesting)\n })($nesting[0], $nesting)\n};\n\n/* Generated by Opal 0.11.99.dev */\nOpal.modules[\"asciidoctor/syntax_highlighter\"] = function(Opal) {\n function $rb_minus(lhs, rhs) {\n return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs - rhs : lhs['$-'](rhs);\n }\n var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $hash2 = Opal.hash2, $truthy = Opal.truthy, $send = Opal.send, $klass = Opal.klass;\n\n Opal.add_stubs(['$attr_reader', '$raise', '$class', '$private_class_method', '$extend', '$register', '$map', '$to_s', '$each', '$[]=', '$registry', '$-', '$[]', '$for', '$===', '$new', '$name', '$private', '$include', '$==', '$join', '$content']);\n \n (function($base, $parent_nesting) {\n var self = $module($base, 'Asciidoctor');\n\n var $nesting = [self].concat($parent_nesting);\n\n (function($base, $parent_nesting) {\n var self = $module($base, 'SyntaxHighlighter');\n\n var $nesting = [self].concat($parent_nesting), $SyntaxHighlighter_initialize$1, $SyntaxHighlighter_docinfo$ques$2, $SyntaxHighlighter_docinfo$3, $SyntaxHighlighter_highlight$ques$4, $SyntaxHighlighter_highlight$5, $SyntaxHighlighter_format$6, $SyntaxHighlighter_write_stylesheet$ques$7, $SyntaxHighlighter_write_stylesheet$8, $a, $SyntaxHighlighter_included$9;\n\n \n self.$attr_reader(\"name\");\n \n Opal.def(self, '$initialize', $SyntaxHighlighter_initialize$1 = function $$initialize(name, backend, opts) {\n var self = this;\n\n \n \n if (backend == null) {\n backend = \"html5\";\n };\n \n if (opts == null) {\n opts = $hash2([], {});\n };\n return (self.name = (self.pre_class = name));\n }, $SyntaxHighlighter_initialize$1.$$arity = -2);\n \n Opal.def(self, '$docinfo?', $SyntaxHighlighter_docinfo$ques$2 = function(location) {\n var self = this;\n\n return nil\n }, $SyntaxHighlighter_docinfo$ques$2.$$arity = 1);\n \n Opal.def(self, '$docinfo', $SyntaxHighlighter_docinfo$3 = function $$docinfo(location, doc, opts) {\n var self = this;\n\n return self.$raise($$$('::', 'NotImplementedError'), \"\" + ($$($nesting, 'SyntaxHighlighter')) + \" subclass \" + (self.$class()) + \" must implement the #\" + (\"docinfo\") + \" method since #docinfo? returns true\")\n }, $SyntaxHighlighter_docinfo$3.$$arity = 3);\n \n Opal.def(self, '$highlight?', $SyntaxHighlighter_highlight$ques$4 = function() {\n var self = this;\n\n return nil\n }, $SyntaxHighlighter_highlight$ques$4.$$arity = 0);\n \n Opal.def(self, '$highlight', $SyntaxHighlighter_highlight$5 = function $$highlight(node, source, lang, opts) {\n var self = this;\n\n return self.$raise($$$('::', 'NotImplementedError'), \"\" + ($$($nesting, 'SyntaxHighlighter')) + \" subclass \" + (self.$class()) + \" must implement the #\" + (\"highlight\") + \" method since #highlight? returns true\")\n }, $SyntaxHighlighter_highlight$5.$$arity = 4);\n \n Opal.def(self, '$format', $SyntaxHighlighter_format$6 = function $$format(node, lang, opts) {\n var self = this;\n\n return self.$raise($$$('::', 'NotImplementedError'), \"\" + ($$($nesting, 'SyntaxHighlighter')) + \" subclass \" + (self.$class()) + \" must implement the #\" + (\"format\") + \" method\")\n }, $SyntaxHighlighter_format$6.$$arity = 3);\n \n Opal.def(self, '$write_stylesheet?', $SyntaxHighlighter_write_stylesheet$ques$7 = function(doc) {\n var self = this;\n\n return nil\n }, $SyntaxHighlighter_write_stylesheet$ques$7.$$arity = 1);\n \n Opal.def(self, '$write_stylesheet', $SyntaxHighlighter_write_stylesheet$8 = function $$write_stylesheet(doc, to_dir) {\n var self = this;\n\n return self.$raise($$$('::', 'NotImplementedError'), \"\" + ($$($nesting, 'SyntaxHighlighter')) + \" subclass \" + (self.$class()) + \" must implement the #\" + (\"write_stylesheet\") + \" method since #write_stylesheet? returns true\")\n }, $SyntaxHighlighter_write_stylesheet$8.$$arity = 2);\n self.$private_class_method(($truthy($a = (Opal.defs(self, '$included', $SyntaxHighlighter_included$9 = function $$included(into) {\n var self = this;\n\n return into.$extend($$($nesting, 'Config'))\n }, $SyntaxHighlighter_included$9.$$arity = 1), nil) && 'included') ? $a : \"included\"));\n (function($base, $parent_nesting) {\n var self = $module($base, 'Config');\n\n var $nesting = [self].concat($parent_nesting), $Config_register_for$10;\n\n \n Opal.def(self, '$register_for', $Config_register_for$10 = function $$register_for($a) {\n var $post_args, names, $$11, self = this;\n\n \n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n names = $post_args;;\n return $send($$($nesting, 'SyntaxHighlighter'), 'register', [self].concat(Opal.to_a($send(names, 'map', [], ($$11 = function(name){var self = $$11.$$s || this;\n\n \n \n if (name == null) {\n name = nil;\n };\n return name.$to_s();}, $$11.$$s = self, $$11.$$arity = 1, $$11)))));\n }, $Config_register_for$10.$$arity = -1)\n })($nesting[0], $nesting);\n (function($base, $parent_nesting) {\n var self = $module($base, 'Factory');\n\n var $nesting = [self].concat($parent_nesting), $Factory_register$12, $Factory_for$14, $Factory_create$15, $Factory_registry$16;\n\n \n \n Opal.def(self, '$register', $Factory_register$12 = function $$register(syntax_highlighter, $a) {\n var $post_args, names, $$13, self = this;\n\n \n \n $post_args = Opal.slice.call(arguments, 1, arguments.length);\n \n names = $post_args;;\n return $send(names, 'each', [], ($$13 = function(name){var self = $$13.$$s || this, $writer = nil;\n\n \n \n if (name == null) {\n name = nil;\n };\n $writer = [name, syntax_highlighter];\n $send(self.$registry(), '[]=', Opal.to_a($writer));\n return $writer[$rb_minus($writer[\"length\"], 1)];}, $$13.$$s = self, $$13.$$arity = 1, $$13));\n }, $Factory_register$12.$$arity = -2);\n \n Opal.def(self, '$for', $Factory_for$14 = function(name) {\n var self = this;\n\n return self.$registry()['$[]'](name)\n }, $Factory_for$14.$$arity = 1);\n \n Opal.def(self, '$create', $Factory_create$15 = function $$create(name, backend, opts) {\n var self = this, syntax_hl = nil;\n\n \n \n if (backend == null) {\n backend = \"html5\";\n };\n \n if (opts == null) {\n opts = $hash2([], {});\n };\n if ($truthy((syntax_hl = self.$for(name)))) {\n \n if ($truthy($$$('::', 'Class')['$==='](syntax_hl))) {\n syntax_hl = syntax_hl.$new(name, backend, opts)};\n if ($truthy(syntax_hl.$name())) {\n } else {\n self.$raise($$$('::', 'NameError'), \"\" + (syntax_hl.$class()) + \" must specify a value for `name'\")\n };\n return syntax_hl;\n } else {\n return nil\n };\n }, $Factory_create$15.$$arity = -2);\n self.$private();\n \n Opal.def(self, '$registry', $Factory_registry$16 = function $$registry() {\n var self = this;\n\n return self.$raise($$$('::', 'NotImplementedError'), \"\" + ($$($nesting, 'Factory')) + \" subclass \" + (self.$class()) + \" must implement the #\" + (\"registry\") + \" method\")\n }, $Factory_registry$16.$$arity = 0);\n })($nesting[0], $nesting);\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'CustomFactory');\n\n var $nesting = [self].concat($parent_nesting), $CustomFactory_initialize$17, $CustomFactory_registry$18;\n\n self.$$prototype.registry = nil;\n \n self.$include($$($nesting, 'Factory'));\n \n Opal.def(self, '$initialize', $CustomFactory_initialize$17 = function $$initialize(seed_registry) {\n var $a, self = this;\n\n \n \n if (seed_registry == null) {\n seed_registry = nil;\n };\n return (self.registry = ($truthy($a = seed_registry) ? $a : $hash2([], {})));\n }, $CustomFactory_initialize$17.$$arity = -1);\n self.$private();\n return (Opal.def(self, '$registry', $CustomFactory_registry$18 = function $$registry() {\n var self = this;\n\n return self.registry\n }, $CustomFactory_registry$18.$$arity = 0), nil) && 'registry';\n })($nesting[0], null, $nesting);\n (function($base, $parent_nesting) {\n var self = $module($base, 'DefaultFactory');\n\n var $nesting = [self].concat($parent_nesting), $DefaultFactory_registry$19;\n\n \n self.$include($$($nesting, 'Factory'));\n self.$private();\n (Opal.class_variable_set($nesting[0], '@@registry', $hash2([], {})));\n \n Opal.def(self, '$registry', $DefaultFactory_registry$19 = function $$registry() {\n var $a, self = this;\n\n return (($a = $nesting[0].$$cvars['@@registry']) == null ? nil : $a)\n }, $DefaultFactory_registry$19.$$arity = 0);\n if ($$($nesting, 'RUBY_ENGINE')['$=='](\"opal\")) {\n } else {\n nil\n };\n })($nesting[0], $nesting);\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'DefaultFactoryProxy');\n\n var $nesting = [self].concat($parent_nesting);\n\n \n self.$include($$($nesting, 'DefaultFactory'));\n if ($$($nesting, 'RUBY_ENGINE')['$=='](\"opal\")) {\n return nil\n } else {\n return nil\n };\n })($nesting[0], $$($nesting, 'CustomFactory'), $nesting);\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'Base');\n\n var $nesting = [self].concat($parent_nesting), $Base_format$20;\n\n self.$$prototype.pre_class = nil;\n \n self.$include($$($nesting, 'SyntaxHighlighter'));\n return (Opal.def(self, '$format', $Base_format$20 = function $$format(node, lang, opts) {\n var $$21, $$22, self = this, class_attr_val = nil, transform = nil, pre = nil, code = nil;\n\n \n class_attr_val = (function() {if ($truthy(opts['$[]'](\"nowrap\"))) {\n return \"\" + (self.pre_class) + \" highlight nowrap\"\n } else {\n return \"\" + (self.pre_class) + \" highlight\"\n }; return nil; })();\n if ($truthy((transform = opts['$[]'](\"transform\")))) {\n \n pre = $hash2([\"class\"], {\"class\": class_attr_val});\n code = (function() {if ($truthy(lang)) {\n return $hash2([\"data-lang\"], {\"data-lang\": lang})\n } else {\n return $hash2([], {})\n }; return nil; })();\n transform['$[]'](pre, code);\n return \"\" + \"\" + (node.$content()) + \"\";\n } else {\n return \"\" + \"
\" + (node.$content()) + \"
\"\n };\n }, $Base_format$20.$$arity = 3), nil) && 'format';\n })($nesting[0], null, $nesting);\n self.$extend($$($nesting, 'DefaultFactory'));\n })($nesting[0], $nesting)\n })($nesting[0], $nesting);\n self.$require(\"asciidoctor/syntax_highlighter.rb\"+ '/../' + \"syntax_highlighter/highlightjs\");\n if ($$($nesting, 'RUBY_ENGINE')['$=='](\"opal\")) {\n return nil\n } else {\n return nil\n };\n};\n\n/* Generated by Opal 0.11.99.dev */\nOpal.modules[\"asciidoctor/timings\"] = function(Opal) {\n function $rb_minus(lhs, rhs) {\n return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs - rhs : lhs['$-'](rhs);\n }\n function $rb_plus(lhs, rhs) {\n return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs + rhs : lhs['$+'](rhs);\n }\n function $rb_gt(lhs, rhs) {\n return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs > rhs : lhs['$>'](rhs);\n }\n var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $hash2 = Opal.hash2, $send = Opal.send, $truthy = Opal.truthy, $gvars = Opal.gvars;\n\n Opal.add_stubs(['$now', '$[]=', '$-', '$delete', '$reduce', '$+', '$[]', '$>', '$time', '$puts', '$%', '$to_f', '$read_parse', '$convert', '$read_parse_convert', '$private', '$const_defined?', '$==', '$clock_gettime']);\n return (function($base, $parent_nesting) {\n var self = $module($base, 'Asciidoctor');\n\n var $nesting = [self].concat($parent_nesting);\n\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'Timings');\n\n var $nesting = [self].concat($parent_nesting), $Timings_initialize$1, $Timings_start$2, $Timings_record$3, $Timings_time$4, $Timings_read$6, $Timings_parse$7, $Timings_read_parse$8, $Timings_convert$9, $Timings_read_parse_convert$10, $Timings_write$11, $Timings_total$12, $Timings_print_report$13, $a, $b, $c, $d, $e, $Timings_now$14, $Timings_now$15;\n\n self.$$prototype.timers = self.$$prototype.log = nil;\n \n \n Opal.def(self, '$initialize', $Timings_initialize$1 = function $$initialize() {\n var self = this;\n\n \n self.log = $hash2([], {});\n return (self.timers = $hash2([], {}));\n }, $Timings_initialize$1.$$arity = 0);\n \n Opal.def(self, '$start', $Timings_start$2 = function $$start(key) {\n var self = this, $writer = nil;\n\n \n $writer = [key, self.$now()];\n $send(self.timers, '[]=', Opal.to_a($writer));\n return $writer[$rb_minus($writer[\"length\"], 1)];\n }, $Timings_start$2.$$arity = 1);\n \n Opal.def(self, '$record', $Timings_record$3 = function $$record(key) {\n var self = this, $writer = nil;\n\n \n $writer = [key, $rb_minus(self.$now(), self.timers.$delete(key))];\n $send(self.log, '[]=', Opal.to_a($writer));\n return $writer[$rb_minus($writer[\"length\"], 1)];\n }, $Timings_record$3.$$arity = 1);\n \n Opal.def(self, '$time', $Timings_time$4 = function $$time($a) {\n var $post_args, keys, $$5, self = this, time = nil;\n\n \n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n keys = $post_args;;\n time = $send(keys, 'reduce', [0], ($$5 = function(sum, key){var self = $$5.$$s || this, $b;\n if (self.log == null) self.log = nil;\n\n \n \n if (sum == null) {\n sum = nil;\n };\n \n if (key == null) {\n key = nil;\n };\n return $rb_plus(sum, ($truthy($b = self.log['$[]'](key)) ? $b : 0));}, $$5.$$s = self, $$5.$$arity = 2, $$5));\n if ($truthy($rb_gt(time, 0))) {\n return time\n } else {\n return nil\n };\n }, $Timings_time$4.$$arity = -1);\n \n Opal.def(self, '$read', $Timings_read$6 = function $$read() {\n var self = this;\n\n return self.$time(\"read\")\n }, $Timings_read$6.$$arity = 0);\n \n Opal.def(self, '$parse', $Timings_parse$7 = function $$parse() {\n var self = this;\n\n return self.$time(\"parse\")\n }, $Timings_parse$7.$$arity = 0);\n \n Opal.def(self, '$read_parse', $Timings_read_parse$8 = function $$read_parse() {\n var self = this;\n\n return self.$time(\"read\", \"parse\")\n }, $Timings_read_parse$8.$$arity = 0);\n \n Opal.def(self, '$convert', $Timings_convert$9 = function $$convert() {\n var self = this;\n\n return self.$time(\"convert\")\n }, $Timings_convert$9.$$arity = 0);\n \n Opal.def(self, '$read_parse_convert', $Timings_read_parse_convert$10 = function $$read_parse_convert() {\n var self = this;\n\n return self.$time(\"read\", \"parse\", \"convert\")\n }, $Timings_read_parse_convert$10.$$arity = 0);\n \n Opal.def(self, '$write', $Timings_write$11 = function $$write() {\n var self = this;\n\n return self.$time(\"write\")\n }, $Timings_write$11.$$arity = 0);\n \n Opal.def(self, '$total', $Timings_total$12 = function $$total() {\n var self = this;\n\n return self.$time(\"read\", \"parse\", \"convert\", \"write\")\n }, $Timings_total$12.$$arity = 0);\n \n Opal.def(self, '$print_report', $Timings_print_report$13 = function $$print_report(to, subject) {\n var self = this;\n if ($gvars.stdout == null) $gvars.stdout = nil;\n\n \n \n if (to == null) {\n to = $gvars.stdout;\n };\n \n if (subject == null) {\n subject = nil;\n };\n if ($truthy(subject)) {\n to.$puts(\"\" + \"Input file: \" + (subject))};\n to.$puts(\"\" + \" Time to read and parse source: \" + (\"%05.5f\"['$%'](self.$read_parse().$to_f())));\n to.$puts(\"\" + \" Time to convert document: \" + (\"%05.5f\"['$%'](self.$convert().$to_f())));\n return to.$puts(\"\" + \" Total time (read, parse and convert): \" + (\"%05.5f\"['$%'](self.$read_parse_convert().$to_f())));\n }, $Timings_print_report$13.$$arity = -1);\n self.$private();\n if ($truthy(($truthy($a = $$$('::', 'Process')['$const_defined?'](\"CLOCK_MONOTONIC\", false)) ? ((($b = $$$('::', 'Process', 'skip_raise')) && ($c = $b, $c) && ($d = $c) && ((($e = $d.$clock_gettime) && !$e.$$stub) || $d['$respond_to_missing?']('clock_gettime'))) ? 'method' : nil)['$=='](\"method\") : $a))) {\n \n Opal.const_set($nesting[0], 'CLOCK_ID', $$$($$$('::', 'Process'), 'CLOCK_MONOTONIC'));\n return (Opal.def(self, '$now', $Timings_now$14 = function $$now() {\n var self = this;\n\n return $$$('::', 'Process').$clock_gettime($$($nesting, 'CLOCK_ID'))\n }, $Timings_now$14.$$arity = 0), nil) && 'now';\n } else {\n return (Opal.def(self, '$now', $Timings_now$15 = function $$now() {\n var self = this;\n\n return $$$('::', 'Time').$now()\n }, $Timings_now$15.$$arity = 0), nil) && 'now'\n };\n })($nesting[0], null, $nesting)\n })($nesting[0], $nesting)\n};\n\n/* Generated by Opal 0.11.99.dev */\nOpal.modules[\"asciidoctor/converter/composite\"] = function(Opal) {\n function $rb_minus(lhs, rhs) {\n return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs - rhs : lhs['$-'](rhs);\n }\n var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $hash2 = Opal.hash2, $send = Opal.send, $truthy = Opal.truthy;\n\n Opal.add_stubs(['$attr_reader', '$each', '$respond_to?', '$composed', '$init_backend_traits', '$backend_traits', '$new', '$find_converter', '$[]=', '$-', '$convert', '$converter_for', '$node_name', '$[]', '$handles?', '$raise']);\n return (function($base, $parent_nesting) {\n var self = $module($base, 'Asciidoctor');\n\n var $nesting = [self].concat($parent_nesting);\n\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'CompositeConverter');\n\n var $nesting = [self].concat($parent_nesting), $CompositeConverter_initialize$1, $CompositeConverter_convert$4, $CompositeConverter_converter_for$5, $CompositeConverter_find_converter$6;\n\n self.$$prototype.converter_cache = self.$$prototype.converters = nil;\n \n self.$attr_reader(\"converters\");\n \n Opal.def(self, '$initialize', $CompositeConverter_initialize$1 = function $$initialize(backend, $a, $b) {\n var $post_args, $kwargs, converters, backend_traits_source, $$2, $$3, self = this;\n\n \n \n $post_args = Opal.slice.call(arguments, 1, arguments.length);\n \n $kwargs = Opal.extract_kwargs($post_args);\n \n if ($kwargs == null) {\n $kwargs = $hash2([], {});\n } else if (!$kwargs.$$is_hash) {\n throw Opal.ArgumentError.$new('expected kwargs');\n };\n \n converters = $post_args;;\n \n backend_traits_source = $kwargs.$$smap[\"backend_traits_source\"];\n if (backend_traits_source == null) {\n backend_traits_source = nil\n };\n self.backend = backend;\n $send((self.converters = converters), 'each', [], ($$2 = function(converter){var self = $$2.$$s || this;\n\n \n \n if (converter == null) {\n converter = nil;\n };\n if ($truthy(converter['$respond_to?'](\"composed\"))) {\n return converter.$composed(self)\n } else {\n return nil\n };}, $$2.$$s = self, $$2.$$arity = 1, $$2));\n if ($truthy(backend_traits_source)) {\n self.$init_backend_traits(backend_traits_source.$backend_traits())};\n return (self.converter_cache = $send($$$('::', 'Hash'), 'new', [], ($$3 = function(hash, key){var self = $$3.$$s || this, $writer = nil;\n\n \n \n if (hash == null) {\n hash = nil;\n };\n \n if (key == null) {\n key = nil;\n };\n $writer = [key, self.$find_converter(key)];\n $send(hash, '[]=', Opal.to_a($writer));\n return $writer[$rb_minus($writer[\"length\"], 1)];}, $$3.$$s = self, $$3.$$arity = 2, $$3)));\n }, $CompositeConverter_initialize$1.$$arity = -2);\n \n Opal.def(self, '$convert', $CompositeConverter_convert$4 = function $$convert(node, transform, opts) {\n var $a, self = this;\n\n \n \n if (transform == null) {\n transform = nil;\n };\n \n if (opts == null) {\n opts = nil;\n };\n return self.$converter_for((transform = ($truthy($a = transform) ? $a : node.$node_name()))).$convert(node, transform, opts);\n }, $CompositeConverter_convert$4.$$arity = -2);\n \n Opal.def(self, '$converter_for', $CompositeConverter_converter_for$5 = function $$converter_for(transform) {\n var self = this;\n\n return self.converter_cache['$[]'](transform)\n }, $CompositeConverter_converter_for$5.$$arity = 1);\n return (Opal.def(self, '$find_converter', $CompositeConverter_find_converter$6 = function $$find_converter(transform) {try {\n\n var $$7, self = this;\n\n \n $send(self.converters, 'each', [], ($$7 = function(candidate){var self = $$7.$$s || this;\n\n \n \n if (candidate == null) {\n candidate = nil;\n };\n if ($truthy(candidate['$handles?'](transform))) {\n Opal.ret(candidate)\n } else {\n return nil\n };}, $$7.$$s = self, $$7.$$arity = 1, $$7));\n return self.$raise(\"\" + \"Could not find a converter to handle transform: \" + (transform));\n } catch ($returner) { if ($returner === Opal.returner) { return $returner.$v } throw $returner; }\n }, $CompositeConverter_find_converter$6.$$arity = 1), nil) && 'find_converter';\n })($$($nesting, 'Converter'), $$$($$($nesting, 'Converter'), 'Base'), $nesting)\n })($nesting[0], $nesting)\n};\n\n/* Generated by Opal 0.11.99.dev */\nOpal.modules[\"asciidoctor/converter/html5\"] = function(Opal) {\n function $rb_minus(lhs, rhs) {\n return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs - rhs : lhs['$-'](rhs);\n }\n function $rb_gt(lhs, rhs) {\n return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs > rhs : lhs['$>'](rhs);\n }\n function $rb_plus(lhs, rhs) {\n return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs + rhs : lhs['$+'](rhs);\n }\n function $rb_le(lhs, rhs) {\n return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs <= rhs : lhs['$<='](rhs);\n }\n function $rb_lt(lhs, rhs) {\n return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs < rhs : lhs['$<'](rhs);\n }\n function $rb_times(lhs, rhs) {\n return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs * rhs : lhs['$*'](rhs);\n }\n var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $send = Opal.send, $hash2 = Opal.hash2, $truthy = Opal.truthy, $gvars = Opal.gvars;\n\n Opal.add_stubs(['$register_for', '$default=', '$-', '$==', '$[]', '$init_backend_traits', '$node_name', '$convert_inline_quoted', '$convert_paragraph', '$convert_inline_anchor', '$convert_section', '$convert_listing', '$convert_literal', '$convert_ulist', '$convert_olist', '$convert_dlist', '$convert_admonition', '$convert_colist', '$convert_embedded', '$convert_example', '$convert_floating_title', '$convert_image', '$convert_inline_break', '$convert_inline_button', '$convert_inline_callout', '$convert_inline_footnote', '$convert_inline_image', '$convert_inline_indexterm', '$convert_inline_kbd', '$convert_inline_menu', '$convert_open', '$convert_page_break', '$convert_preamble', '$convert_quote', '$convert_sidebar', '$convert_stem', '$convert_table', '$convert_thematic_break', '$convert_verse', '$convert_video', '$convert_document', '$convert_toc', '$convert_pass', '$convert_audio', '$empty?', '$attr', '$attr?', '$<<', '$include?', '$sub_replacements', '$gsub', '$extname', '$slice', '$length', '$doctitle', '$normalize_web_path', '$primary_stylesheet_data', '$instance', '$read_asset', '$normalize_system_path', '$syntax_highlighter', '$docinfo?', '$docinfo', '$id', '$sections?', '$doctype', '$role?', '$role', '$join', '$noheader', '$convert_outline', '$generate_manname_section', '$header?', '$notitle', '$title', '$header', '$each', '$authors', '$>', '$name', '$email', '$sub_macros', '$+', '$downcase', '$concat', '$content', '$footnotes?', '$!', '$footnotes', '$index', '$text', '$nofooter', '$inspect', '$!=', '$to_i', '$attributes', '$document', '$sections', '$level', '$caption', '$captioned_title', '$numbered', '$<=', '$<', '$sectname', '$sectnum', '$title?', '$icon_uri', '$compact', '$media_uri', '$option?', '$append_boolean_attribute', '$style', '$items', '$blocks?', '$===', '$text?', '$chomp', '$safe', '$read_svg_contents', '$alt', '$image_uri', '$encode_attribute_value', '$append_link_constraint_attrs', '$highlight?', '$to_sym', '$[]=', '$format', '$*', '$count', '$start_with?', '$end_with?', '$list_marker_keyword', '$parent', '$warn', '$logger', '$context', '$error', '$new', '$size', '$columns', '$to_h', '$rows', '$colspan', '$rowspan', '$unshift', '$shift', '$pop', '$split', '$nil_or_empty?', '$type', '$catalog', '$xreftext', '$target', '$reftext', '$map', '$chop', '$read_contents', '$sub', '$match', '$private', '$upcase', '$to_s', '$handles?', '$send']);\n return (function($base, $parent_nesting) {\n var self = $module($base, 'Asciidoctor');\n\n var $nesting = [self].concat($parent_nesting);\n\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'Html5Converter');\n\n var $nesting = [self].concat($parent_nesting), $Html5Converter_initialize$1, $Html5Converter_convert$2, $Html5Converter_convert_document$3, $Html5Converter_convert_embedded$6, $Html5Converter_convert_outline$8, $Html5Converter_convert_section$10, $Html5Converter_convert_admonition$11, $Html5Converter_convert_audio$12, $Html5Converter_convert_colist$13, $Html5Converter_convert_dlist$16, $Html5Converter_convert_example$23, $Html5Converter_convert_floating_title$24, $Html5Converter_convert_image$25, $Html5Converter_convert_listing$26, $Html5Converter_convert_literal$27, $Html5Converter_convert_stem$28, $Html5Converter_convert_olist$30, $Html5Converter_convert_open$32, $Html5Converter_convert_page_break$33, $Html5Converter_convert_paragraph$34, $Html5Converter_convert_preamble$35, $Html5Converter_convert_quote$36, $Html5Converter_convert_thematic_break$37, $Html5Converter_convert_sidebar$38, $Html5Converter_convert_table$39, $Html5Converter_convert_toc$44, $Html5Converter_convert_ulist$45, $Html5Converter_convert_verse$47, $Html5Converter_convert_video$48, $Html5Converter_convert_inline_anchor$49, $Html5Converter_convert_inline_break$50, $Html5Converter_convert_inline_button$51, $Html5Converter_convert_inline_callout$52, $Html5Converter_convert_inline_footnote$53, $Html5Converter_convert_inline_image$54, $Html5Converter_convert_inline_indexterm$57, $Html5Converter_convert_inline_kbd$58, $Html5Converter_convert_inline_menu$59, $Html5Converter_convert_inline_quoted$60, $Html5Converter_read_svg_contents$61, $Html5Converter_append_boolean_attribute$63, $Html5Converter_append_link_constraint_attrs$64, $Html5Converter_encode_attribute_value$65, $Html5Converter_generate_manname_section$66, $Html5Converter_method_missing$67, $writer = nil;\n\n self.$$prototype.void_element_slash = self.$$prototype.xml_mode = self.$$prototype.refs = nil;\n \n self.$register_for(\"html5\");\n \n $writer = [[\"\", \"\"]];\n $send(Opal.const_set($nesting[0], 'QUOTE_TAGS', $hash2([\"monospaced\", \"emphasis\", \"strong\", \"double\", \"single\", \"mark\", \"superscript\", \"subscript\", \"asciimath\", \"latexmath\"], {\"monospaced\": [\"\", \"\", true], \"emphasis\": [\"\", \"\", true], \"strong\": [\"\", \"\", true], \"double\": [\"“\", \"”\"], \"single\": [\"‘\", \"’\"], \"mark\": [\"\", \"\", true], \"superscript\": [\"\", \"\", true], \"subscript\": [\"\", \"\", true], \"asciimath\": [\"\\\\$\", \"\\\\$\"], \"latexmath\": [\"\\\\(\", \"\\\\)\"]})), 'default=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];;\n Opal.const_set($nesting[0], 'DropAnchorRx', /<(?:a[^>+]+|\\/a)>/);\n Opal.const_set($nesting[0], 'StemBreakRx', / *\\\\\\n(?:\\\\?\\n)*|\\n\\n+/);\n if ($$($nesting, 'RUBY_ENGINE')['$=='](\"opal\")) {\n \n Opal.const_set($nesting[0], 'SvgPreambleRx', new RegExp(\"\" + \"^\" + ($$($nesting, 'CC_ALL')) + \"*?(?=]*>/);\n } else {\n nil\n };\n Opal.const_set($nesting[0], 'DimensionAttributeRx', new RegExp(\"\" + \"\\\\s(?:width|height|style)=([\\\"'])\" + ($$($nesting, 'CC_ANY')) + \"*?\\\\1\"));\n \n Opal.def(self, '$initialize', $Html5Converter_initialize$1 = function $$initialize(backend, opts) {\n var self = this, syntax = nil;\n\n \n \n if (opts == null) {\n opts = $hash2([], {});\n };\n self.backend = backend;\n if (opts['$[]'](\"htmlsyntax\")['$=='](\"xml\")) {\n \n syntax = \"xml\";\n self.xml_mode = true;\n self.void_element_slash = \"/\";\n } else {\n \n syntax = \"html\";\n self.xml_mode = nil;\n self.void_element_slash = \"\";\n };\n return self.$init_backend_traits($hash2([\"basebackend\", \"filetype\", \"htmlsyntax\", \"outfilesuffix\", \"supports_templates\"], {\"basebackend\": \"html\", \"filetype\": \"html\", \"htmlsyntax\": syntax, \"outfilesuffix\": \".html\", \"supports_templates\": true}));\n }, $Html5Converter_initialize$1.$$arity = -2);\n \n Opal.def(self, '$convert', $Html5Converter_convert$2 = function $$convert(node, transform, opts) {\n var $iter = $Html5Converter_convert$2.$$p, $yield = $iter || nil, self = this, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;\n\n if ($iter) $Html5Converter_convert$2.$$p = null;\n // Prepare super implicit arguments\n for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {\n $zuper[$zuper_i] = arguments[$zuper_i];\n }\n \n \n if (transform == null) {\n transform = node.$node_name();\n };\n \n if (opts == null) {\n opts = nil;\n };\n if (transform['$=='](\"inline_quoted\")) {\n return self.$convert_inline_quoted(node)\n } else if (transform['$=='](\"paragraph\")) {\n return self.$convert_paragraph(node)\n } else if (transform['$=='](\"inline_anchor\")) {\n return self.$convert_inline_anchor(node)\n } else if (transform['$=='](\"section\")) {\n return self.$convert_section(node)\n } else if (transform['$=='](\"listing\")) {\n return self.$convert_listing(node)\n } else if (transform['$=='](\"literal\")) {\n return self.$convert_literal(node)\n } else if (transform['$=='](\"ulist\")) {\n return self.$convert_ulist(node)\n } else if (transform['$=='](\"olist\")) {\n return self.$convert_olist(node)\n } else if (transform['$=='](\"dlist\")) {\n return self.$convert_dlist(node)\n } else if (transform['$=='](\"admonition\")) {\n return self.$convert_admonition(node)\n } else if (transform['$=='](\"colist\")) {\n return self.$convert_colist(node)\n } else if (transform['$=='](\"embedded\")) {\n return self.$convert_embedded(node)\n } else if (transform['$=='](\"example\")) {\n return self.$convert_example(node)\n } else if (transform['$=='](\"floating_title\")) {\n return self.$convert_floating_title(node)\n } else if (transform['$=='](\"image\")) {\n return self.$convert_image(node)\n } else if (transform['$=='](\"inline_break\")) {\n return self.$convert_inline_break(node)\n } else if (transform['$=='](\"inline_button\")) {\n return self.$convert_inline_button(node)\n } else if (transform['$=='](\"inline_callout\")) {\n return self.$convert_inline_callout(node)\n } else if (transform['$=='](\"inline_footnote\")) {\n return self.$convert_inline_footnote(node)\n } else if (transform['$=='](\"inline_image\")) {\n return self.$convert_inline_image(node)\n } else if (transform['$=='](\"inline_indexterm\")) {\n return self.$convert_inline_indexterm(node)\n } else if (transform['$=='](\"inline_kbd\")) {\n return self.$convert_inline_kbd(node)\n } else if (transform['$=='](\"inline_menu\")) {\n return self.$convert_inline_menu(node)\n } else if (transform['$=='](\"open\")) {\n return self.$convert_open(node)\n } else if (transform['$=='](\"page_break\")) {\n return self.$convert_page_break(node)\n } else if (transform['$=='](\"preamble\")) {\n return self.$convert_preamble(node)\n } else if (transform['$=='](\"quote\")) {\n return self.$convert_quote(node)\n } else if (transform['$=='](\"sidebar\")) {\n return self.$convert_sidebar(node)\n } else if (transform['$=='](\"stem\")) {\n return self.$convert_stem(node)\n } else if (transform['$=='](\"table\")) {\n return self.$convert_table(node)\n } else if (transform['$=='](\"thematic_break\")) {\n return self.$convert_thematic_break(node)\n } else if (transform['$=='](\"verse\")) {\n return self.$convert_verse(node)\n } else if (transform['$=='](\"video\")) {\n return self.$convert_video(node)\n } else if (transform['$=='](\"document\")) {\n return self.$convert_document(node)\n } else if (transform['$=='](\"toc\")) {\n return self.$convert_toc(node)\n } else if (transform['$=='](\"pass\")) {\n return self.$convert_pass(node)\n } else if (transform['$=='](\"audio\")) {\n return self.$convert_audio(node)\n } else {\n return $send(self, Opal.find_super_dispatcher(self, 'convert', $Html5Converter_convert$2, false), $zuper, $iter)\n };\n }, $Html5Converter_convert$2.$$arity = -2);\n \n Opal.def(self, '$convert_document', $Html5Converter_convert_document$3 = function $$convert_document(node) {\n var $a, $b, $c, $$4, $$5, self = this, br = nil, slash = nil, asset_uri_scheme = nil, cdn_base_url = nil, linkcss = nil, result = nil, lang_attribute = nil, authors = nil, icon_href = nil, icon_type = nil, icon_ext = nil, webfonts = nil, iconfont_stylesheet = nil, syntax_hl = nil, docinfo_content = nil, body_attrs = nil, sectioned = nil, classes = nil, details = nil, idx = nil, eqnums_val = nil, eqnums_opt = nil;\n\n \n br = \"\" + \"\";\n if ($truthy((asset_uri_scheme = node.$attr(\"asset-uri-scheme\", \"https\"))['$empty?']())) {\n } else {\n asset_uri_scheme = \"\" + (asset_uri_scheme) + \":\"\n };\n cdn_base_url = \"\" + (asset_uri_scheme) + \"//cdnjs.cloudflare.com/ajax/libs\";\n linkcss = node['$attr?'](\"linkcss\");\n result = [\"\"];\n lang_attribute = (function() {if ($truthy(node['$attr?'](\"nolang\"))) {\n return \"\"\n } else {\n return \"\" + \" lang=\\\"\" + (node.$attr(\"lang\", \"en\")) + \"\\\"\"\n }; return nil; })();\n result['$<<'](\"\" + \"\");\n result['$<<'](\"\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\");\n if ($truthy(node['$attr?'](\"app-name\"))) {\n result['$<<'](\"\" + \"\")};\n if ($truthy(node['$attr?'](\"description\"))) {\n result['$<<'](\"\" + \"\")};\n if ($truthy(node['$attr?'](\"keywords\"))) {\n result['$<<'](\"\" + \"\")};\n if ($truthy(node['$attr?'](\"authors\"))) {\n result['$<<'](\"\" + \"\")};\n if ($truthy(node['$attr?'](\"copyright\"))) {\n result['$<<'](\"\" + \"\")};\n if ($truthy(node['$attr?'](\"favicon\"))) {\n \n if ($truthy((icon_href = node.$attr(\"favicon\"))['$empty?']())) {\n \n icon_href = \"favicon.ico\";\n icon_type = \"image/x-icon\";\n } else if ($truthy((icon_ext = $$($nesting, 'Helpers').$extname(icon_href, nil)))) {\n icon_type = (function() {if (icon_ext['$=='](\".ico\")) {\n return \"image/x-icon\"\n } else {\n return \"\" + \"image/\" + (icon_ext.$slice(1, icon_ext.$length()))\n }; return nil; })()\n } else {\n icon_type = \"image/x-icon\"\n };\n result['$<<'](\"\" + \"\");};\n result['$<<'](\"\" + \"\" + (node.$doctitle($hash2([\"sanitize\", \"use_fallback\"], {\"sanitize\": true, \"use_fallback\": true}))) + \"\");\n if ($truthy($$($nesting, 'DEFAULT_STYLESHEET_KEYS')['$include?'](node.$attr(\"stylesheet\")))) {\n \n if ($truthy((webfonts = node.$attr(\"webfonts\")))) {\n result['$<<'](\"\" + \"\")};\n if ($truthy(linkcss)) {\n result['$<<'](\"\" + \"\")\n } else {\n result['$<<'](\"\" + \"\")\n };\n } else if ($truthy(node['$attr?'](\"stylesheet\"))) {\n if ($truthy(linkcss)) {\n result['$<<'](\"\" + \"\")\n } else {\n result['$<<'](\"\" + \"\")\n }};\n if ($truthy(node['$attr?'](\"icons\", \"font\"))) {\n if ($truthy(node['$attr?'](\"iconfont-remote\"))) {\n result['$<<'](\"\" + \"\")\n } else {\n \n iconfont_stylesheet = \"\" + (node.$attr(\"iconfont-name\", \"font-awesome\")) + \".css\";\n result['$<<'](\"\" + \"\");\n }};\n if ($truthy(($truthy($a = (syntax_hl = node.$syntax_highlighter())) ? syntax_hl['$docinfo?'](\"head\") : $a))) {\n result['$<<'](syntax_hl.$docinfo(\"head\", node, $hash2([\"cdn_base_url\", \"linkcss\", \"self_closing_tag_slash\"], {\"cdn_base_url\": cdn_base_url, \"linkcss\": linkcss, \"self_closing_tag_slash\": slash})))};\n if ($truthy((docinfo_content = node.$docinfo())['$empty?']())) {\n } else {\n result['$<<'](docinfo_content)\n };\n result['$<<'](\"\");\n body_attrs = (function() {if ($truthy(node.$id())) {\n return [\"\" + \"id=\\\"\" + (node.$id()) + \"\\\"\"]\n } else {\n return []\n }; return nil; })();\n if ($truthy(($truthy($a = ($truthy($b = ($truthy($c = (sectioned = node['$sections?']())) ? node['$attr?'](\"toc-class\") : $c)) ? node['$attr?'](\"toc\") : $b)) ? node['$attr?'](\"toc-placement\", \"auto\") : $a))) {\n classes = [node.$doctype(), node.$attr(\"toc-class\"), \"\" + \"toc-\" + (node.$attr(\"toc-position\", \"header\"))]\n } else {\n classes = [node.$doctype()]\n };\n if ($truthy(node['$role?']())) {\n classes['$<<'](node.$role())};\n body_attrs['$<<'](\"\" + \"class=\\\"\" + (classes.$join(\" \")) + \"\\\"\");\n if ($truthy(node['$attr?'](\"max-width\"))) {\n body_attrs['$<<'](\"\" + \"style=\\\"max-width: \" + (node.$attr(\"max-width\")) + \";\\\"\")};\n result['$<<'](\"\" + \"\");\n if ($truthy((docinfo_content = node.$docinfo(\"header\"))['$empty?']())) {\n } else {\n result['$<<'](docinfo_content)\n };\n if ($truthy(node.$noheader())) {\n } else {\n \n result['$<<'](\"
\");\n if (node.$doctype()['$=='](\"manpage\")) {\n \n result['$<<'](\"\" + \"

\" + (node.$doctitle()) + \" Manual Page

\");\n if ($truthy(($truthy($a = ($truthy($b = sectioned) ? node['$attr?'](\"toc\") : $b)) ? node['$attr?'](\"toc-placement\", \"auto\") : $a))) {\n result['$<<'](\"\" + \"
\\n\" + \"
\" + (node.$attr(\"toc-title\")) + \"
\\n\" + (self.$convert_outline(node)) + \"\\n\" + \"
\")};\n if ($truthy(node['$attr?'](\"manpurpose\"))) {\n result['$<<'](self.$generate_manname_section(node))};\n } else {\n \n if ($truthy(node['$header?']())) {\n \n if ($truthy(node.$notitle())) {\n } else {\n result['$<<'](\"\" + \"

\" + (node.$header().$title()) + \"

\")\n };\n details = [];\n idx = 1;\n $send(node.$authors(), 'each', [], ($$4 = function(author){var self = $$4.$$s || this;\n\n \n \n if (author == null) {\n author = nil;\n };\n details['$<<'](\"\" + \"\" + (node.$sub_replacements(author.$name())) + \"\" + (br));\n if ($truthy(author.$email())) {\n details['$<<'](\"\" + \"\" + (node.$sub_macros(author.$email())) + \"\" + (br))};\n return (idx = $rb_plus(idx, 1));}, $$4.$$s = self, $$4.$$arity = 1, $$4));\n if ($truthy(node['$attr?'](\"revnumber\"))) {\n details['$<<'](\"\" + \"\" + (($truthy($a = node.$attr(\"version-label\")) ? $a : \"\").$downcase()) + \" \" + (node.$attr(\"revnumber\")) + ((function() {if ($truthy(node['$attr?'](\"revdate\"))) {\n return \",\"\n } else {\n return \"\"\n }; return nil; })()) + \"\")};\n if ($truthy(node['$attr?'](\"revdate\"))) {\n details['$<<'](\"\" + \"\" + (node.$attr(\"revdate\")) + \"\")};\n if ($truthy(node['$attr?'](\"revremark\"))) {\n details['$<<'](\"\" + (br) + \"\" + (node.$attr(\"revremark\")) + \"\")};\n if ($truthy(details['$empty?']())) {\n } else {\n \n result['$<<'](\"
\");\n result.$concat(details);\n result['$<<'](\"
\");\n };};\n if ($truthy(($truthy($a = ($truthy($b = sectioned) ? node['$attr?'](\"toc\") : $b)) ? node['$attr?'](\"toc-placement\", \"auto\") : $a))) {\n result['$<<'](\"\" + \"
\\n\" + \"
\" + (node.$attr(\"toc-title\")) + \"
\\n\" + (self.$convert_outline(node)) + \"\\n\" + \"
\")};\n };\n result['$<<'](\"
\");\n };\n result['$<<'](\"\" + \"
\\n\" + (node.$content()) + \"\\n\" + \"
\");\n if ($truthy(($truthy($a = node['$footnotes?']()) ? node['$attr?'](\"nofootnotes\")['$!']() : $a))) {\n \n result['$<<'](\"\" + \"
\\n\" + \"\");\n $send(node.$footnotes(), 'each', [], ($$5 = function(footnote){var self = $$5.$$s || this;\n\n \n \n if (footnote == null) {\n footnote = nil;\n };\n return result['$<<'](\"\" + \"
\\n\" + \"\" + (footnote.$index()) + \". \" + (footnote.$text()) + \"\\n\" + \"
\");}, $$5.$$s = self, $$5.$$arity = 1, $$5));\n result['$<<'](\"
\");};\n if ($truthy(node.$nofooter())) {\n } else {\n \n result['$<<'](\"
\");\n result['$<<'](\"
\");\n if ($truthy(node['$attr?'](\"revnumber\"))) {\n result['$<<'](\"\" + (node.$attr(\"version-label\")) + \" \" + (node.$attr(\"revnumber\")) + (br))};\n if ($truthy(($truthy($a = node['$attr?'](\"last-update-label\")) ? node['$attr?'](\"reproducible\")['$!']() : $a))) {\n result['$<<'](\"\" + (node.$attr(\"last-update-label\")) + \" \" + (node.$attr(\"docdatetime\")))};\n result['$<<'](\"
\");\n result['$<<'](\"
\");\n };\n if ($truthy(($truthy($a = syntax_hl) ? syntax_hl['$docinfo?'](\"footer\") : $a))) {\n result['$<<'](syntax_hl.$docinfo(\"footer\", node, $hash2([\"cdn_base_url\", \"linkcss\", \"self_closing_tag_slash\"], {\"cdn_base_url\": cdn_base_url, \"linkcss\": linkcss, \"self_closing_tag_slash\": slash})))};\n if ($truthy(node['$attr?'](\"stem\"))) {\n \n eqnums_val = node.$attr(\"eqnums\", \"none\");\n if ($truthy(eqnums_val['$empty?']())) {\n eqnums_val = \"AMS\"};\n eqnums_opt = \"\" + \" equationNumbers: { autoNumber: \\\"\" + (eqnums_val) + \"\\\" } \";\n result['$<<'](\"\" + \"\\n\" + \"\");};\n if ($truthy((docinfo_content = node.$docinfo(\"footer\"))['$empty?']())) {\n } else {\n result['$<<'](docinfo_content)\n };\n result['$<<'](\"\");\n result['$<<'](\"\");\n return result.$join($$($nesting, 'LF'));\n }, $Html5Converter_convert_document$3.$$arity = 1);\n \n Opal.def(self, '$convert_embedded', $Html5Converter_convert_embedded$6 = function $$convert_embedded(node) {\n var $a, $b, $c, $$7, self = this, result = nil, id_attr = nil, toc_p = nil;\n\n \n result = [];\n if (node.$doctype()['$=='](\"manpage\")) {\n \n if ($truthy(node.$notitle())) {\n } else {\n \n id_attr = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n result['$<<'](\"\" + \"\" + (node.$doctitle()) + \" Manual Page\");\n };\n if ($truthy(node['$attr?'](\"manpurpose\"))) {\n result['$<<'](self.$generate_manname_section(node))};\n } else if ($truthy(($truthy($a = node['$header?']()) ? node.$notitle()['$!']() : $a))) {\n \n id_attr = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n result['$<<'](\"\" + \"\" + (node.$header().$title()) + \"\");};\n if ($truthy(($truthy($a = ($truthy($b = ($truthy($c = node['$sections?']()) ? node['$attr?'](\"toc\") : $c)) ? (toc_p = node.$attr(\"toc-placement\"))['$!='](\"macro\") : $b)) ? toc_p['$!='](\"preamble\") : $a))) {\n result['$<<'](\"\" + \"
\\n\" + \"
\" + (node.$attr(\"toc-title\")) + \"
\\n\" + (self.$convert_outline(node)) + \"\\n\" + \"
\")};\n result['$<<'](node.$content());\n if ($truthy(($truthy($a = node['$footnotes?']()) ? node['$attr?'](\"nofootnotes\")['$!']() : $a))) {\n \n result['$<<'](\"\" + \"
\\n\" + \"\");\n $send(node.$footnotes(), 'each', [], ($$7 = function(footnote){var self = $$7.$$s || this;\n\n \n \n if (footnote == null) {\n footnote = nil;\n };\n return result['$<<'](\"\" + \"
\\n\" + \"\" + (footnote.$index()) + \". \" + (footnote.$text()) + \"\\n\" + \"
\");}, $$7.$$s = self, $$7.$$arity = 1, $$7));\n result['$<<'](\"
\");};\n return result.$join($$($nesting, 'LF'));\n }, $Html5Converter_convert_embedded$6.$$arity = 1);\n \n Opal.def(self, '$convert_outline', $Html5Converter_convert_outline$8 = function $$convert_outline(node, opts) {\n var $a, $b, $$9, self = this, sectnumlevels = nil, toclevels = nil, sections = nil, result = nil;\n\n \n \n if (opts == null) {\n opts = $hash2([], {});\n };\n if ($truthy(node['$sections?']())) {\n } else {\n return nil\n };\n sectnumlevels = ($truthy($a = opts['$[]'](\"sectnumlevels\")) ? $a : ($truthy($b = node.$document().$attributes()['$[]'](\"sectnumlevels\")) ? $b : 3).$to_i());\n toclevels = ($truthy($a = opts['$[]'](\"toclevels\")) ? $a : ($truthy($b = node.$document().$attributes()['$[]'](\"toclevels\")) ? $b : 2).$to_i());\n sections = node.$sections();\n result = [\"\" + \"
    \"];\n $send(sections, 'each', [], ($$9 = function(section){var self = $$9.$$s || this, $c, slevel = nil, stitle = nil, signifier = nil, child_toc_level = nil;\n\n \n \n if (section == null) {\n section = nil;\n };\n slevel = section.$level();\n if ($truthy(section.$caption())) {\n stitle = section.$captioned_title()\n } else if ($truthy(($truthy($c = section.$numbered()) ? $rb_le(slevel, sectnumlevels) : $c))) {\n if ($truthy(($truthy($c = $rb_lt(slevel, 2)) ? node.$document().$doctype()['$=='](\"book\") : $c))) {\n if (section.$sectname()['$=='](\"chapter\")) {\n stitle = \"\" + ((function() {if ($truthy((signifier = node.$document().$attributes()['$[]'](\"chapter-signifier\")))) {\n return \"\" + (signifier) + \" \"\n } else {\n return \"\"\n }; return nil; })()) + (section.$sectnum()) + \" \" + (section.$title())\n } else if (section.$sectname()['$=='](\"part\")) {\n stitle = \"\" + ((function() {if ($truthy((signifier = node.$document().$attributes()['$[]'](\"part-signifier\")))) {\n return \"\" + (signifier) + \" \"\n } else {\n return \"\"\n }; return nil; })()) + (section.$sectnum(nil, \":\")) + \" \" + (section.$title())\n } else {\n stitle = \"\" + (section.$sectnum()) + \" \" + (section.$title())\n }\n } else {\n stitle = \"\" + (section.$sectnum()) + \" \" + (section.$title())\n }\n } else {\n stitle = section.$title()\n };\n if ($truthy(stitle['$include?'](\"\" + (stitle) + \"\");\n result['$<<'](child_toc_level);\n return result['$<<'](\"\");\n } else {\n return result['$<<'](\"\" + \"
  • \" + (stitle) + \"
  • \")\n };}, $$9.$$s = self, $$9.$$arity = 1, $$9));\n result['$<<'](\"
\");\n return result.$join($$($nesting, 'LF'));\n }, $Html5Converter_convert_outline$8.$$arity = -2);\n \n Opal.def(self, '$convert_section', $Html5Converter_convert_section$10 = function $$convert_section(node) {\n var $a, $b, self = this, doc_attrs = nil, level = nil, title = nil, signifier = nil, id_attr = nil, id = nil, role = nil;\n\n \n doc_attrs = node.$document().$attributes();\n level = node.$level();\n if ($truthy(node.$caption())) {\n title = node.$captioned_title()\n } else if ($truthy(($truthy($a = node.$numbered()) ? $rb_le(level, ($truthy($b = doc_attrs['$[]'](\"sectnumlevels\")) ? $b : 3).$to_i()) : $a))) {\n if ($truthy(($truthy($a = $rb_lt(level, 2)) ? node.$document().$doctype()['$=='](\"book\") : $a))) {\n if (node.$sectname()['$=='](\"chapter\")) {\n title = \"\" + ((function() {if ($truthy((signifier = doc_attrs['$[]'](\"chapter-signifier\")))) {\n return \"\" + (signifier) + \" \"\n } else {\n return \"\"\n }; return nil; })()) + (node.$sectnum()) + \" \" + (node.$title())\n } else if (node.$sectname()['$=='](\"part\")) {\n title = \"\" + ((function() {if ($truthy((signifier = doc_attrs['$[]'](\"part-signifier\")))) {\n return \"\" + (signifier) + \" \"\n } else {\n return \"\"\n }; return nil; })()) + (node.$sectnum(nil, \":\")) + \" \" + (node.$title())\n } else {\n title = \"\" + (node.$sectnum()) + \" \" + (node.$title())\n }\n } else {\n title = \"\" + (node.$sectnum()) + \" \" + (node.$title())\n }\n } else {\n title = node.$title()\n };\n if ($truthy(node.$id())) {\n \n id_attr = \"\" + \" id=\\\"\" + ((id = node.$id())) + \"\\\"\";\n if ($truthy(doc_attrs['$[]'](\"sectlinks\"))) {\n title = \"\" + \"\" + (title) + \"\"};\n if ($truthy(doc_attrs['$[]'](\"sectanchors\"))) {\n if (doc_attrs['$[]'](\"sectanchors\")['$=='](\"after\")) {\n title = \"\" + (title) + \"\"\n } else {\n title = \"\" + \"\" + (title)\n }};\n } else {\n id_attr = \"\"\n };\n if (level['$=='](0)) {\n return \"\" + \"\" + (title) + \"\\n\" + (node.$content())\n } else {\n return \"\" + \"
\\n\" + \"\" + (title) + \"\\n\" + ((function() {if (level['$=='](1)) {\n return \"\" + \"
\\n\" + (node.$content()) + \"\\n\" + \"
\"\n } else {\n return node.$content()\n }; return nil; })()) + \"\\n\" + \"
\"\n };\n }, $Html5Converter_convert_section$10.$$arity = 1);\n \n Opal.def(self, '$convert_admonition', $Html5Converter_convert_admonition$11 = function $$convert_admonition(node) {\n var $a, self = this, id_attr = nil, name = nil, title_element = nil, label = nil, role = nil;\n\n \n id_attr = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n name = node.$attr(\"name\");\n title_element = (function() {if ($truthy(node['$title?']())) {\n return \"\" + \"
\" + (node.$title()) + \"
\\n\"\n } else {\n return \"\"\n }; return nil; })();\n if ($truthy(node.$document()['$attr?'](\"icons\"))) {\n if ($truthy(($truthy($a = node.$document()['$attr?'](\"icons\", \"font\")) ? node['$attr?'](\"icon\")['$!']() : $a))) {\n label = \"\" + \"\"\n } else {\n label = \"\" + \"\\\"\"\"\n }\n } else {\n label = \"\" + \"
\" + (node.$attr(\"textlabel\")) + \"
\"\n };\n return \"\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\\n\" + \"
\\n\" + (label) + \"\\n\" + \"\\n\" + (title_element) + (node.$content()) + \"\\n\" + \"
\\n\" + \"\";\n }, $Html5Converter_convert_admonition$11.$$arity = 1);\n \n Opal.def(self, '$convert_audio', $Html5Converter_convert_audio$12 = function $$convert_audio(node) {\n var $a, self = this, xml = nil, id_attribute = nil, classes = nil, class_attribute = nil, title_element = nil, start_t = nil, end_t = nil, time_anchor = nil;\n\n \n xml = self.xml_mode;\n id_attribute = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n classes = [\"audioblock\", node.$role()].$compact();\n class_attribute = \"\" + \" class=\\\"\" + (classes.$join(\" \")) + \"\\\"\";\n title_element = (function() {if ($truthy(node['$title?']())) {\n return \"\" + \"
\" + (node.$title()) + \"
\\n\"\n } else {\n return \"\"\n }; return nil; })();\n start_t = node.$attr(\"start\");\n end_t = node.$attr(\"end\");\n time_anchor = (function() {if ($truthy(($truthy($a = start_t) ? $a : end_t))) {\n return \"\" + \"#t=\" + (($truthy($a = start_t) ? $a : \"\")) + ((function() {if ($truthy(end_t)) {\n return \"\" + \",\" + (end_t)\n } else {\n return \"\"\n }; return nil; })())\n } else {\n return \"\"\n }; return nil; })();\n return \"\" + \"\\n\" + (title_element) + \"
\\n\" + \"\\n\" + \"
\\n\" + \"\";\n }, $Html5Converter_convert_audio$12.$$arity = 1);\n \n Opal.def(self, '$convert_colist', $Html5Converter_convert_colist$13 = function $$convert_colist(node) {\n var $a, $$14, $$15, self = this, result = nil, id_attribute = nil, classes = nil, class_attribute = nil, font_icons = nil, num = nil;\n\n \n result = [];\n id_attribute = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n classes = [\"colist\", node.$style(), node.$role()].$compact();\n class_attribute = \"\" + \" class=\\\"\" + (classes.$join(\" \")) + \"\\\"\";\n result['$<<'](\"\" + \"\");\n if ($truthy(node['$title?']())) {\n result['$<<'](\"\" + \"
\" + (node.$title()) + \"
\")};\n if ($truthy(node.$document()['$attr?'](\"icons\"))) {\n \n result['$<<'](\"\");\n $a = [node.$document()['$attr?'](\"icons\", \"font\"), 0], (font_icons = $a[0]), (num = $a[1]), $a;\n $send(node.$items(), 'each', [], ($$14 = function(item){var self = $$14.$$s || this, num_label = nil;\n if (self.void_element_slash == null) self.void_element_slash = nil;\n\n \n \n if (item == null) {\n item = nil;\n };\n num = $rb_plus(num, 1);\n if ($truthy(font_icons)) {\n num_label = \"\" + \"\" + (num) + \"\"\n } else {\n num_label = \"\" + \"\\\"\"\"\n };\n return result['$<<'](\"\" + \"\\n\" + \"\\n\" + \"\\n\" + \"\");}, $$14.$$s = self, $$14.$$arity = 1, $$14));\n result['$<<'](\"
\" + (num_label) + \"\" + (item.$text()) + ((function() {if ($truthy(item['$blocks?']())) {\n return $rb_plus($$($nesting, 'LF'), item.$content())\n } else {\n return \"\"\n }; return nil; })()) + \"
\");\n } else {\n \n result['$<<'](\"
    \");\n $send(node.$items(), 'each', [], ($$15 = function(item){var self = $$15.$$s || this;\n\n \n \n if (item == null) {\n item = nil;\n };\n return result['$<<'](\"\" + \"
  1. \\n\" + \"

    \" + (item.$text()) + \"

    \" + ((function() {if ($truthy(item['$blocks?']())) {\n return $rb_plus($$($nesting, 'LF'), item.$content())\n } else {\n return \"\"\n }; return nil; })()) + \"\\n\" + \"
  2. \");}, $$15.$$s = self, $$15.$$arity = 1, $$15));\n result['$<<'](\"
\");\n };\n result['$<<'](\"\");\n return result.$join($$($nesting, 'LF'));\n }, $Html5Converter_convert_colist$13.$$arity = 1);\n \n Opal.def(self, '$convert_dlist', $Html5Converter_convert_dlist$16 = function $$convert_dlist(node) {\n var $$17, $a, $$19, $$21, self = this, result = nil, id_attribute = nil, classes = nil, $case = nil, class_attribute = nil, slash = nil, col_style_attribute = nil, dt_style_attribute = nil;\n\n \n result = [];\n id_attribute = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n classes = (function() {$case = node.$style();\n if (\"qanda\"['$===']($case)) {return [\"qlist\", \"qanda\", node.$role()]}\n else if (\"horizontal\"['$===']($case)) {return [\"hdlist\", node.$role()]}\n else {return [\"dlist\", node.$style(), node.$role()]}})().$compact();\n class_attribute = \"\" + \" class=\\\"\" + (classes.$join(\" \")) + \"\\\"\";\n result['$<<'](\"\" + \"\");\n if ($truthy(node['$title?']())) {\n result['$<<'](\"\" + \"
\" + (node.$title()) + \"
\")};\n $case = node.$style();\n if (\"qanda\"['$===']($case)) {\n result['$<<'](\"
    \");\n $send(node.$items(), 'each', [], ($$17 = function(terms, dd){var self = $$17.$$s || this, $$18;\n\n \n \n if (terms == null) {\n terms = nil;\n };\n \n if (dd == null) {\n dd = nil;\n };\n result['$<<'](\"
  1. \");\n $send(terms, 'each', [], ($$18 = function(dt){var self = $$18.$$s || this;\n\n \n \n if (dt == null) {\n dt = nil;\n };\n return result['$<<'](\"\" + \"

    \" + (dt.$text()) + \"

    \");}, $$18.$$s = self, $$18.$$arity = 1, $$18));\n if ($truthy(dd)) {\n \n if ($truthy(dd['$text?']())) {\n result['$<<'](\"\" + \"

    \" + (dd.$text()) + \"

    \")};\n if ($truthy(dd['$blocks?']())) {\n result['$<<'](dd.$content())};};\n return result['$<<'](\"
  2. \");}, $$17.$$s = self, $$17.$$arity = 2, $$17));\n result['$<<'](\"
\");}\n else if (\"horizontal\"['$===']($case)) {\n slash = self.void_element_slash;\n result['$<<'](\"\");\n if ($truthy(($truthy($a = node['$attr?'](\"labelwidth\")) ? $a : node['$attr?'](\"itemwidth\")))) {\n \n result['$<<'](\"\");\n col_style_attribute = (function() {if ($truthy(node['$attr?'](\"labelwidth\"))) {\n return \"\" + \" style=\\\"width: \" + (node.$attr(\"labelwidth\").$chomp(\"%\")) + \"%;\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n result['$<<'](\"\" + \"\");\n col_style_attribute = (function() {if ($truthy(node['$attr?'](\"itemwidth\"))) {\n return \"\" + \" style=\\\"width: \" + (node.$attr(\"itemwidth\").$chomp(\"%\")) + \"%;\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n result['$<<'](\"\" + \"\");\n result['$<<'](\"\");};\n $send(node.$items(), 'each', [], ($$19 = function(terms, dd){var self = $$19.$$s || this, $$20, first_term = nil;\n\n \n \n if (terms == null) {\n terms = nil;\n };\n \n if (dd == null) {\n dd = nil;\n };\n result['$<<'](\"\");\n result['$<<'](\"\" + \"\");\n result['$<<'](\"\");\n return result['$<<'](\"\");}, $$19.$$s = self, $$19.$$arity = 2, $$19));\n result['$<<'](\"
\");\n first_term = true;\n $send(terms, 'each', [], ($$20 = function(dt){var self = $$20.$$s || this;\n\n \n \n if (dt == null) {\n dt = nil;\n };\n if ($truthy(first_term)) {\n } else {\n result['$<<'](\"\" + \"\")\n };\n result['$<<'](dt.$text());\n return (first_term = nil);}, $$20.$$s = self, $$20.$$arity = 1, $$20));\n result['$<<'](\"\");\n if ($truthy(dd)) {\n \n if ($truthy(dd['$text?']())) {\n result['$<<'](\"\" + \"

\" + (dd.$text()) + \"

\")};\n if ($truthy(dd['$blocks?']())) {\n result['$<<'](dd.$content())};};\n result['$<<'](\"
\");}\n else {\n result['$<<'](\"
\");\n dt_style_attribute = (function() {if ($truthy(node.$style())) {\n return \"\"\n } else {\n return \" class=\\\"hdlist1\\\"\"\n }; return nil; })();\n $send(node.$items(), 'each', [], ($$21 = function(terms, dd){var self = $$21.$$s || this, $$22;\n\n \n \n if (terms == null) {\n terms = nil;\n };\n \n if (dd == null) {\n dd = nil;\n };\n $send(terms, 'each', [], ($$22 = function(dt){var self = $$22.$$s || this;\n\n \n \n if (dt == null) {\n dt = nil;\n };\n return result['$<<'](\"\" + \"\" + (dt.$text()) + \"\");}, $$22.$$s = self, $$22.$$arity = 1, $$22));\n if ($truthy(dd)) {\n \n result['$<<'](\"
\");\n if ($truthy(dd['$text?']())) {\n result['$<<'](\"\" + \"

\" + (dd.$text()) + \"

\")};\n if ($truthy(dd['$blocks?']())) {\n result['$<<'](dd.$content())};\n return result['$<<'](\"
\");\n } else {\n return nil\n };}, $$21.$$s = self, $$21.$$arity = 2, $$21));\n result['$<<'](\"
\");};\n result['$<<'](\"\");\n return result.$join($$($nesting, 'LF'));\n }, $Html5Converter_convert_dlist$16.$$arity = 1);\n \n Opal.def(self, '$convert_example', $Html5Converter_convert_example$23 = function $$convert_example(node) {\n var self = this, id_attribute = nil, class_attribute = nil, summary_element = nil, title_element = nil, role = nil;\n\n \n id_attribute = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n if ($truthy(node['$option?'](\"collapsible\"))) {\n \n class_attribute = (function() {if ($truthy(node.$role())) {\n return \"\" + \" class=\\\"\" + (node.$role()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n summary_element = (function() {if ($truthy(node['$title?']())) {\n return \"\" + \"\" + (node.$title()) + \"\"\n } else {\n return \"Details\"\n }; return nil; })();\n return \"\" + \"\\n\" + (summary_element) + \"\\n\" + \"
\\n\" + (node.$content()) + \"\\n\" + \"
\\n\" + \"\";\n } else {\n \n title_element = (function() {if ($truthy(node['$title?']())) {\n return \"\" + \"
\" + (node.$captioned_title()) + \"
\\n\"\n } else {\n return \"\"\n }; return nil; })();\n return \"\" + \"\\n\" + (title_element) + \"
\\n\" + (node.$content()) + \"\\n\" + \"
\\n\" + \"\";\n };\n }, $Html5Converter_convert_example$23.$$arity = 1);\n \n Opal.def(self, '$convert_floating_title', $Html5Converter_convert_floating_title$24 = function $$convert_floating_title(node) {\n var self = this, tag_name = nil, id_attribute = nil, classes = nil;\n\n \n tag_name = \"\" + \"h\" + ($rb_plus(node.$level(), 1));\n id_attribute = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n classes = [node.$style(), node.$role()].$compact();\n return \"\" + \"<\" + (tag_name) + (id_attribute) + \" class=\\\"\" + (classes.$join(\" \")) + \"\\\">\" + (node.$title()) + \"\";\n }, $Html5Converter_convert_floating_title$24.$$arity = 1);\n \n Opal.def(self, '$convert_image', $Html5Converter_convert_image$25 = function $$convert_image(node) {\n var $a, $b, $c, self = this, target = nil, width_attr = nil, height_attr = nil, svg = nil, obj = nil, img = nil, fallback = nil, id_attr = nil, classes = nil, class_attr = nil, title_el = nil;\n\n \n target = node.$attr(\"target\");\n width_attr = (function() {if ($truthy(node['$attr?'](\"width\"))) {\n return \"\" + \" width=\\\"\" + (node.$attr(\"width\")) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n height_attr = (function() {if ($truthy(node['$attr?'](\"height\"))) {\n return \"\" + \" height=\\\"\" + (node.$attr(\"height\")) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n if ($truthy(($truthy($a = ($truthy($b = ($truthy($c = node['$attr?'](\"format\", \"svg\")) ? $c : target['$include?'](\".svg\"))) ? $rb_lt(node.$document().$safe(), $$$($$($nesting, 'SafeMode'), 'SECURE')) : $b)) ? ($truthy($b = (svg = node['$option?'](\"inline\"))) ? $b : (obj = node['$option?'](\"interactive\"))) : $a))) {\n if ($truthy(svg)) {\n img = ($truthy($a = self.$read_svg_contents(node, target)) ? $a : \"\" + \"\" + (node.$alt()) + \"\")\n } else if ($truthy(obj)) {\n \n fallback = (function() {if ($truthy(node['$attr?'](\"fallback\"))) {\n return \"\" + \"\\\"\"\"\n } else {\n return \"\" + \"\" + (node.$alt()) + \"\"\n }; return nil; })();\n img = \"\" + \"\" + (fallback) + \"\";}};\n img = ($truthy($a = img) ? $a : \"\" + \"\\\"\"\");\n if ($truthy(node['$attr?'](\"link\"))) {\n img = \"\" + \"\" + (img) + \"\"};\n id_attr = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n classes = [\"imageblock\"];\n if ($truthy(node['$attr?'](\"float\"))) {\n classes['$<<'](node.$attr(\"float\"))};\n if ($truthy(node['$attr?'](\"align\"))) {\n classes['$<<'](\"\" + \"text-\" + (node.$attr(\"align\")))};\n if ($truthy(node.$role())) {\n classes['$<<'](node.$role())};\n class_attr = \"\" + \" class=\\\"\" + (classes.$join(\" \")) + \"\\\"\";\n title_el = (function() {if ($truthy(node['$title?']())) {\n return \"\" + \"\\n
\" + (node.$captioned_title()) + \"
\"\n } else {\n return \"\"\n }; return nil; })();\n return \"\" + \"\\n\" + \"
\\n\" + (img) + \"\\n\" + \"
\" + (title_el) + \"\\n\" + \"\";\n }, $Html5Converter_convert_image$25.$$arity = 1);\n \n Opal.def(self, '$convert_listing', $Html5Converter_convert_listing$26 = function $$convert_listing(node) {\n var $a, self = this, nowrap = nil, lang = nil, syntax_hl = nil, opts = nil, doc_attrs = nil, $writer = nil, pre_open = nil, pre_close = nil, id_attribute = nil, title_element = nil, role = nil;\n\n \n nowrap = ($truthy($a = node['$option?'](\"nowrap\")) ? $a : node.$document()['$attr?'](\"prewrap\")['$!']());\n if (node.$style()['$=='](\"source\")) {\n \n lang = node.$attr(\"language\");\n if ($truthy((syntax_hl = node.$document().$syntax_highlighter()))) {\n \n opts = (function() {if ($truthy(syntax_hl['$highlight?']())) {\n return $hash2([\"css_mode\", \"style\"], {\"css_mode\": ($truthy($a = (doc_attrs = node.$document().$attributes())['$[]'](\"\" + (syntax_hl.$name()) + \"-css\")) ? $a : \"class\").$to_sym(), \"style\": doc_attrs['$[]'](\"\" + (syntax_hl.$name()) + \"-style\")})\n } else {\n return $hash2([], {})\n }; return nil; })();\n \n $writer = [\"nowrap\", nowrap];\n $send(opts, '[]=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];;\n } else {\n \n pre_open = \"\" + \"
\";\n            pre_close = \"
\";\n };\n } else {\n \n pre_open = \"\" + \"\";\n pre_close = \"\";\n };\n id_attribute = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n title_element = (function() {if ($truthy(node['$title?']())) {\n return \"\" + \"
\" + (node.$captioned_title()) + \"
\\n\"\n } else {\n return \"\"\n }; return nil; })();\n return \"\" + \"\\n\" + (title_element) + \"
\\n\" + ((function() {if ($truthy(syntax_hl)) {\n \n return syntax_hl.$format(node, lang, opts);\n } else {\n return $rb_plus($rb_plus(pre_open, ($truthy($a = node.$content()) ? $a : \"\")), pre_close)\n }; return nil; })()) + \"\\n\" + \"
\\n\" + \"\";\n }, $Html5Converter_convert_listing$26.$$arity = 1);\n \n Opal.def(self, '$convert_literal', $Html5Converter_convert_literal$27 = function $$convert_literal(node) {\n var $a, self = this, id_attribute = nil, title_element = nil, nowrap = nil, role = nil;\n\n \n id_attribute = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n title_element = (function() {if ($truthy(node['$title?']())) {\n return \"\" + \"
\" + (node.$title()) + \"
\\n\"\n } else {\n return \"\"\n }; return nil; })();\n nowrap = ($truthy($a = node.$document()['$attr?'](\"prewrap\")['$!']()) ? $a : node['$option?'](\"nowrap\"));\n return \"\" + \"\\n\" + (title_element) + \"
\\n\" + \"\" + (node.$content()) + \"\\n\" + \"
\\n\" + \"\";\n }, $Html5Converter_convert_literal$27.$$arity = 1);\n \n Opal.def(self, '$convert_stem', $Html5Converter_convert_stem$28 = function $$convert_stem(node) {\n var $a, $b, $$29, self = this, id_attribute = nil, title_element = nil, style = nil, open = nil, close = nil, equation = nil, br = nil, role = nil;\n\n \n id_attribute = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n title_element = (function() {if ($truthy(node['$title?']())) {\n return \"\" + \"
\" + (node.$title()) + \"
\\n\"\n } else {\n return \"\"\n }; return nil; })();\n $b = $$($nesting, 'BLOCK_MATH_DELIMITERS')['$[]']((style = node.$style().$to_sym())), $a = Opal.to_ary($b), (open = ($a[0] == null ? nil : $a[0])), (close = ($a[1] == null ? nil : $a[1])), $b;\n if ($truthy((equation = node.$content()))) {\n \n if ($truthy((($a = style['$=='](\"asciimath\")) ? equation['$include?']($$($nesting, 'LF')) : style['$=='](\"asciimath\")))) {\n \n br = \"\" + \"\" + ($$($nesting, 'LF'));\n equation = $send(equation, 'gsub', [$$($nesting, 'StemBreakRx')], ($$29 = function(){var self = $$29.$$s || this, $c;\n\n return \"\" + (close) + ($rb_times(br, (($c = $gvars['~']) === nil ? nil : $c['$[]'](0)).$count($$($nesting, 'LF')))) + (open)}, $$29.$$s = self, $$29.$$arity = 0, $$29));};\n if ($truthy(($truthy($a = equation['$start_with?'](open)) ? equation['$end_with?'](close) : $a))) {\n } else {\n equation = \"\" + (open) + (equation) + (close)\n };\n } else {\n equation = \"\"\n };\n return \"\" + \"\\n\" + (title_element) + \"
\\n\" + (equation) + \"\\n\" + \"
\\n\" + \"\";\n }, $Html5Converter_convert_stem$28.$$arity = 1);\n \n Opal.def(self, '$convert_olist', $Html5Converter_convert_olist$30 = function $$convert_olist(node) {\n var $$31, self = this, result = nil, id_attribute = nil, classes = nil, class_attribute = nil, type_attribute = nil, keyword = nil, start_attribute = nil, reversed_attribute = nil;\n\n \n result = [];\n id_attribute = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n classes = [\"olist\", node.$style(), node.$role()].$compact();\n class_attribute = \"\" + \" class=\\\"\" + (classes.$join(\" \")) + \"\\\"\";\n result['$<<'](\"\" + \"\");\n if ($truthy(node['$title?']())) {\n result['$<<'](\"\" + \"
\" + (node.$title()) + \"
\")};\n type_attribute = (function() {if ($truthy((keyword = node.$list_marker_keyword()))) {\n return \"\" + \" type=\\\"\" + (keyword) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n start_attribute = (function() {if ($truthy(node['$attr?'](\"start\"))) {\n return \"\" + \" start=\\\"\" + (node.$attr(\"start\")) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n reversed_attribute = (function() {if ($truthy(node['$option?'](\"reversed\"))) {\n \n return self.$append_boolean_attribute(\"reversed\", self.xml_mode);\n } else {\n return \"\"\n }; return nil; })();\n result['$<<'](\"\" + \"
    \");\n $send(node.$items(), 'each', [], ($$31 = function(item){var self = $$31.$$s || this;\n\n \n \n if (item == null) {\n item = nil;\n };\n if ($truthy(item.$id())) {\n result['$<<'](\"\" + \"
  1. \")\n } else if ($truthy(item.$role())) {\n result['$<<'](\"\" + \"
  2. \")\n } else {\n result['$<<'](\"
  3. \")\n };\n result['$<<'](\"\" + \"

    \" + (item.$text()) + \"

    \");\n if ($truthy(item['$blocks?']())) {\n result['$<<'](item.$content())};\n return result['$<<'](\"
  4. \");}, $$31.$$s = self, $$31.$$arity = 1, $$31));\n result['$<<'](\"
\");\n result['$<<'](\"\");\n return result.$join($$($nesting, 'LF'));\n }, $Html5Converter_convert_olist$30.$$arity = 1);\n \n Opal.def(self, '$convert_open', $Html5Converter_convert_open$32 = function $$convert_open(node) {\n var $a, $b, $c, self = this, style = nil, id_attr = nil, title_el = nil, role = nil;\n\n if ((style = node.$style())['$=='](\"abstract\")) {\n if ($truthy((($a = node.$parent()['$=='](node.$document())) ? node.$document().$doctype()['$=='](\"book\") : node.$parent()['$=='](node.$document())))) {\n \n self.$logger().$warn(\"abstract block cannot be used in a document without a title when doctype is book. Excluding block content.\");\n return \"\";\n } else {\n \n id_attr = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n title_el = (function() {if ($truthy(node['$title?']())) {\n return \"\" + \"
\" + (node.$title()) + \"
\\n\"\n } else {\n return \"\"\n }; return nil; })();\n return \"\" + \"\\n\" + (title_el) + \"
\\n\" + (node.$content()) + \"\\n\" + \"
\\n\" + \"\";\n }\n } else if ($truthy((($a = style['$=='](\"partintro\")) ? ($truthy($b = ($truthy($c = $rb_gt(node.$level(), 0)) ? $c : node.$parent().$context()['$!='](\"section\"))) ? $b : node.$document().$doctype()['$!='](\"book\")) : style['$=='](\"partintro\")))) {\n \n self.$logger().$error(\"partintro block can only be used when doctype is book and must be a child of a book part. Excluding block content.\");\n return \"\";\n } else {\n \n id_attr = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n title_el = (function() {if ($truthy(node['$title?']())) {\n return \"\" + \"
\" + (node.$title()) + \"
\\n\"\n } else {\n return \"\"\n }; return nil; })();\n return \"\" + \"\"\n }, $Html5Converter_convert_page_break$33.$$arity = 1);\n \n Opal.def(self, '$convert_paragraph', $Html5Converter_convert_paragraph$34 = function $$convert_paragraph(node) {\n var self = this, attributes = nil;\n\n \n if ($truthy(node.$role())) {\n attributes = \"\" + ((function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })()) + \" class=\\\"paragraph \" + (node.$role()) + \"\\\"\"\n } else if ($truthy(node.$id())) {\n attributes = \"\" + \" id=\\\"\" + (node.$id()) + \"\\\" class=\\\"paragraph\\\"\"\n } else {\n attributes = \" class=\\\"paragraph\\\"\"\n };\n if ($truthy(node['$title?']())) {\n return \"\" + \"\\n\" + \"
\" + (node.$title()) + \"
\\n\" + \"

\" + (node.$content()) + \"

\\n\" + \"\"\n } else {\n return \"\" + \"\\n\" + \"

\" + (node.$content()) + \"

\\n\" + \"\"\n };\n }, $Html5Converter_convert_paragraph$34.$$arity = 1);\n Opal.alias(self, \"convert_pass\", \"content_only\");\n \n Opal.def(self, '$convert_preamble', $Html5Converter_convert_preamble$35 = function $$convert_preamble(node) {\n var $a, $b, self = this, doc = nil, toc = nil;\n\n \n if ($truthy(($truthy($a = ($truthy($b = (doc = node.$document())['$attr?'](\"toc-placement\", \"preamble\")) ? doc['$sections?']() : $b)) ? doc['$attr?'](\"toc\") : $a))) {\n toc = \"\" + \"\\n\" + \"
\\n\" + \"
\" + (doc.$attr(\"toc-title\")) + \"
\\n\" + (self.$convert_outline(doc)) + \"\\n\" + \"
\"\n } else {\n toc = \"\"\n };\n return \"\" + \"
\\n\" + \"
\\n\" + (node.$content()) + \"\\n\" + \"
\" + (toc) + \"\\n\" + \"
\";\n }, $Html5Converter_convert_preamble$35.$$arity = 1);\n \n Opal.def(self, '$convert_quote', $Html5Converter_convert_quote$36 = function $$convert_quote(node) {\n var $a, self = this, id_attribute = nil, classes = nil, class_attribute = nil, title_element = nil, attribution = nil, citetitle = nil, cite_element = nil, attribution_text = nil, attribution_element = nil;\n\n \n id_attribute = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n classes = [\"quoteblock\", node.$role()].$compact();\n class_attribute = \"\" + \" class=\\\"\" + (classes.$join(\" \")) + \"\\\"\";\n title_element = (function() {if ($truthy(node['$title?']())) {\n return \"\" + \"\\n
\" + (node.$title()) + \"
\"\n } else {\n return \"\"\n }; return nil; })();\n attribution = (function() {if ($truthy(node['$attr?'](\"attribution\"))) {\n \n return node.$attr(\"attribution\");\n } else {\n return nil\n }; return nil; })();\n citetitle = (function() {if ($truthy(node['$attr?'](\"citetitle\"))) {\n \n return node.$attr(\"citetitle\");\n } else {\n return nil\n }; return nil; })();\n if ($truthy(($truthy($a = attribution) ? $a : citetitle))) {\n \n cite_element = (function() {if ($truthy(citetitle)) {\n return \"\" + \"\" + (citetitle) + \"\"\n } else {\n return \"\"\n }; return nil; })();\n attribution_text = (function() {if ($truthy(attribution)) {\n return \"\" + \"— \" + (attribution) + ((function() {if ($truthy(citetitle)) {\n return \"\" + \"\\n\"\n } else {\n return \"\"\n }; return nil; })())\n } else {\n return \"\"\n }; return nil; })();\n attribution_element = \"\" + \"\\n
\\n\" + (attribution_text) + (cite_element) + \"\\n
\";\n } else {\n attribution_element = \"\"\n };\n return \"\" + \"\" + (title_element) + \"\\n\" + \"
\\n\" + (node.$content()) + \"\\n\" + \"
\" + (attribution_element) + \"\\n\" + \"\";\n }, $Html5Converter_convert_quote$36.$$arity = 1);\n \n Opal.def(self, '$convert_thematic_break', $Html5Converter_convert_thematic_break$37 = function $$convert_thematic_break(node) {\n var self = this;\n\n return \"\" + \"\"\n }, $Html5Converter_convert_thematic_break$37.$$arity = 1);\n \n Opal.def(self, '$convert_sidebar', $Html5Converter_convert_sidebar$38 = function $$convert_sidebar(node) {\n var self = this, id_attribute = nil, title_element = nil, role = nil;\n\n \n id_attribute = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n title_element = (function() {if ($truthy(node['$title?']())) {\n return \"\" + \"
\" + (node.$title()) + \"
\\n\"\n } else {\n return \"\"\n }; return nil; })();\n return \"\" + \"\\n\" + \"
\\n\" + (title_element) + (node.$content()) + \"\\n\" + \"
\\n\" + \"\";\n }, $Html5Converter_convert_sidebar$38.$$arity = 1);\n \n Opal.def(self, '$convert_table', $Html5Converter_convert_table$39 = function $$convert_table(node) {\n var $a, $$40, $$41, self = this, result = nil, id_attribute = nil, classes = nil, stripes = nil, styles = nil, autowidth = nil, tablewidth = nil, role = nil, class_attribute = nil, style_attribute = nil, slash = nil;\n\n \n result = [];\n id_attribute = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n classes = [\"tableblock\", \"\" + \"frame-\" + (node.$attr(\"frame\", \"all\", \"table-frame\")), \"\" + \"grid-\" + (node.$attr(\"grid\", \"all\", \"table-grid\"))];\n if ($truthy((stripes = node.$attr(\"stripes\", nil, \"table-stripes\")))) {\n classes['$<<'](\"\" + \"stripes-\" + (stripes))};\n styles = [];\n if ($truthy(($truthy($a = (autowidth = node['$option?'](\"autowidth\"))) ? node['$attr?'](\"width\")['$!']() : $a))) {\n classes['$<<'](\"fit-content\")\n } else if ((tablewidth = node.$attr(\"tablepcwidth\"))['$=='](100)) {\n classes['$<<'](\"stretch\")\n } else {\n styles['$<<'](\"\" + \"width: \" + (tablewidth) + \"%;\")\n };\n if ($truthy(node['$attr?'](\"float\"))) {\n classes['$<<'](node.$attr(\"float\"))};\n if ($truthy((role = node.$role()))) {\n classes['$<<'](role)};\n class_attribute = \"\" + \" class=\\\"\" + (classes.$join(\" \")) + \"\\\"\";\n style_attribute = (function() {if ($truthy(styles['$empty?']())) {\n return \"\"\n } else {\n return \"\" + \" style=\\\"\" + (styles.$join(\" \")) + \"\\\"\"\n }; return nil; })();\n result['$<<'](\"\" + \"\");\n if ($truthy(node['$title?']())) {\n result['$<<'](\"\" + \"\" + (node.$captioned_title()) + \"\")};\n if ($truthy($rb_gt(node.$attr(\"rowcount\"), 0))) {\n \n slash = self.void_element_slash;\n result['$<<'](\"\");\n if ($truthy(autowidth)) {\n result = $rb_plus(result, $$($nesting, 'Array').$new(node.$columns().$size(), \"\" + \"\"))\n } else {\n $send(node.$columns(), 'each', [], ($$40 = function(col){var self = $$40.$$s || this;\n\n \n \n if (col == null) {\n col = nil;\n };\n return result['$<<']((function() {if ($truthy(col['$option?'](\"autowidth\"))) {\n return \"\" + \"\"\n } else {\n return \"\" + \"\"\n }; return nil; })());}, $$40.$$s = self, $$40.$$arity = 1, $$40))\n };\n result['$<<'](\"\");\n $send(node.$rows().$to_h(), 'each', [], ($$41 = function(tsec, rows){var self = $$41.$$s || this, $$42;\n\n \n \n if (tsec == null) {\n tsec = nil;\n };\n \n if (rows == null) {\n rows = nil;\n };\n if ($truthy(rows['$empty?']())) {\n return nil;};\n result['$<<'](\"\" + \"\");\n $send(rows, 'each', [], ($$42 = function(row){var self = $$42.$$s || this, $$43;\n\n \n \n if (row == null) {\n row = nil;\n };\n result['$<<'](\"\");\n $send(row, 'each', [], ($$43 = function(cell){var self = $$43.$$s || this, $b, cell_content = nil, $case = nil, cell_tag_name = nil, cell_class_attribute = nil, cell_colspan_attribute = nil, cell_rowspan_attribute = nil, cell_style_attribute = nil;\n\n \n \n if (cell == null) {\n cell = nil;\n };\n if (tsec['$=='](\"head\")) {\n cell_content = cell.$text()\n } else {\n $case = cell.$style();\n if (\"asciidoc\"['$===']($case)) {cell_content = \"\" + \"
\" + (cell.$content()) + \"
\"}\n else if (\"literal\"['$===']($case)) {cell_content = \"\" + \"
\" + (cell.$text()) + \"
\"}\n else {cell_content = (function() {if ($truthy((cell_content = cell.$content())['$empty?']())) {\n return \"\"\n } else {\n return \"\" + \"

\" + (cell_content.$join(\"\" + \"

\\n\" + \"

\")) + \"

\"\n }; return nil; })()}\n };\n cell_tag_name = (function() {if ($truthy(($truthy($b = tsec['$=='](\"head\")) ? $b : cell.$style()['$=='](\"header\")))) {\n return \"th\"\n } else {\n return \"td\"\n }; return nil; })();\n cell_class_attribute = \"\" + \" class=\\\"tableblock halign-\" + (cell.$attr(\"halign\")) + \" valign-\" + (cell.$attr(\"valign\")) + \"\\\"\";\n cell_colspan_attribute = (function() {if ($truthy(cell.$colspan())) {\n return \"\" + \" colspan=\\\"\" + (cell.$colspan()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n cell_rowspan_attribute = (function() {if ($truthy(cell.$rowspan())) {\n return \"\" + \" rowspan=\\\"\" + (cell.$rowspan()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n cell_style_attribute = (function() {if ($truthy(node.$document()['$attr?'](\"cellbgcolor\"))) {\n return \"\" + \" style=\\\"background-color: \" + (node.$document().$attr(\"cellbgcolor\")) + \";\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n return result['$<<'](\"\" + \"<\" + (cell_tag_name) + (cell_class_attribute) + (cell_colspan_attribute) + (cell_rowspan_attribute) + (cell_style_attribute) + \">\" + (cell_content) + \"\");}, $$43.$$s = self, $$43.$$arity = 1, $$43));\n return result['$<<'](\"\");}, $$42.$$s = self, $$42.$$arity = 1, $$42));\n return result['$<<'](\"\" + \"
\");}, $$41.$$s = self, $$41.$$arity = 2, $$41));};\n result['$<<'](\"\");\n return result.$join($$($nesting, 'LF'));\n }, $Html5Converter_convert_table$39.$$arity = 1);\n \n Opal.def(self, '$convert_toc', $Html5Converter_convert_toc$44 = function $$convert_toc(node) {\n var $a, $b, self = this, doc = nil, id_attr = nil, title_id_attr = nil, title = nil, levels = nil, role = nil;\n\n \n if ($truthy(($truthy($a = ($truthy($b = (doc = node.$document())['$attr?'](\"toc-placement\", \"macro\")) ? doc['$sections?']() : $b)) ? doc['$attr?'](\"toc\") : $a))) {\n } else {\n return \"\"\n };\n if ($truthy(node.$id())) {\n \n id_attr = \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\";\n title_id_attr = \"\" + \" id=\\\"\" + (node.$id()) + \"title\\\"\";\n } else {\n \n id_attr = \" id=\\\"toc\\\"\";\n title_id_attr = \" id=\\\"toctitle\\\"\";\n };\n title = (function() {if ($truthy(node['$title?']())) {\n return node.$title()\n } else {\n \n return doc.$attr(\"toc-title\");\n }; return nil; })();\n levels = (function() {if ($truthy(node['$attr?'](\"levels\"))) {\n return node.$attr(\"levels\").$to_i()\n } else {\n return nil\n }; return nil; })();\n role = (function() {if ($truthy(node['$role?']())) {\n return node.$role()\n } else {\n \n return doc.$attr(\"toc-class\", \"toc\");\n }; return nil; })();\n return \"\" + \"\\n\" + \"\" + (title) + \"\\n\" + (self.$convert_outline(doc, $hash2([\"toclevels\"], {\"toclevels\": levels}))) + \"\\n\" + \"\";\n }, $Html5Converter_convert_toc$44.$$arity = 1);\n \n Opal.def(self, '$convert_ulist', $Html5Converter_convert_ulist$45 = function $$convert_ulist(node) {\n var $$46, self = this, result = nil, id_attribute = nil, div_classes = nil, marker_checked = nil, marker_unchecked = nil, checklist = nil, ul_class_attribute = nil;\n\n \n result = [];\n id_attribute = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n div_classes = [\"ulist\", node.$style(), node.$role()].$compact();\n marker_checked = (marker_unchecked = \"\");\n if ($truthy((checklist = node['$option?'](\"checklist\")))) {\n \n div_classes.$unshift(div_classes.$shift(), \"checklist\");\n ul_class_attribute = \" class=\\\"checklist\\\"\";\n if ($truthy(node['$option?'](\"interactive\"))) {\n if ($truthy(self.xml_mode)) {\n \n marker_checked = \" \";\n marker_unchecked = \" \";\n } else {\n \n marker_checked = \" \";\n marker_unchecked = \" \";\n }\n } else if ($truthy(node.$document()['$attr?'](\"icons\", \"font\"))) {\n \n marker_checked = \" \";\n marker_unchecked = \" \";\n } else {\n \n marker_checked = \"✓ \";\n marker_unchecked = \"❏ \";\n };\n } else {\n ul_class_attribute = (function() {if ($truthy(node.$style())) {\n return \"\" + \" class=\\\"\" + (node.$style()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })()\n };\n result['$<<'](\"\" + \"\");\n if ($truthy(node['$title?']())) {\n result['$<<'](\"\" + \"
\" + (node.$title()) + \"
\")};\n result['$<<'](\"\" + \"\");\n $send(node.$items(), 'each', [], ($$46 = function(item){var self = $$46.$$s || this, $a;\n\n \n \n if (item == null) {\n item = nil;\n };\n if ($truthy(item.$id())) {\n result['$<<'](\"\" + \"
  • \")\n } else if ($truthy(item.$role())) {\n result['$<<'](\"\" + \"
  • \")\n } else {\n result['$<<'](\"
  • \")\n };\n if ($truthy(($truthy($a = checklist) ? item['$attr?'](\"checkbox\") : $a))) {\n result['$<<'](\"\" + \"

    \" + ((function() {if ($truthy(item['$attr?'](\"checked\"))) {\n return marker_checked\n } else {\n return marker_unchecked\n }; return nil; })()) + (item.$text()) + \"

    \")\n } else {\n result['$<<'](\"\" + \"

    \" + (item.$text()) + \"

    \")\n };\n if ($truthy(item['$blocks?']())) {\n result['$<<'](item.$content())};\n return result['$<<'](\"
  • \");}, $$46.$$s = self, $$46.$$arity = 1, $$46));\n result['$<<'](\"\");\n result['$<<'](\"\");\n return result.$join($$($nesting, 'LF'));\n }, $Html5Converter_convert_ulist$45.$$arity = 1);\n \n Opal.def(self, '$convert_verse', $Html5Converter_convert_verse$47 = function $$convert_verse(node) {\n var $a, self = this, id_attribute = nil, classes = nil, class_attribute = nil, title_element = nil, attribution = nil, citetitle = nil, cite_element = nil, attribution_text = nil, attribution_element = nil;\n\n \n id_attribute = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n classes = [\"verseblock\", node.$role()].$compact();\n class_attribute = \"\" + \" class=\\\"\" + (classes.$join(\" \")) + \"\\\"\";\n title_element = (function() {if ($truthy(node['$title?']())) {\n return \"\" + \"\\n
    \" + (node.$title()) + \"
    \"\n } else {\n return \"\"\n }; return nil; })();\n attribution = (function() {if ($truthy(node['$attr?'](\"attribution\"))) {\n \n return node.$attr(\"attribution\");\n } else {\n return nil\n }; return nil; })();\n citetitle = (function() {if ($truthy(node['$attr?'](\"citetitle\"))) {\n \n return node.$attr(\"citetitle\");\n } else {\n return nil\n }; return nil; })();\n if ($truthy(($truthy($a = attribution) ? $a : citetitle))) {\n \n cite_element = (function() {if ($truthy(citetitle)) {\n return \"\" + \"\" + (citetitle) + \"\"\n } else {\n return \"\"\n }; return nil; })();\n attribution_text = (function() {if ($truthy(attribution)) {\n return \"\" + \"— \" + (attribution) + ((function() {if ($truthy(citetitle)) {\n return \"\" + \"\\n\"\n } else {\n return \"\"\n }; return nil; })())\n } else {\n return \"\"\n }; return nil; })();\n attribution_element = \"\" + \"\\n
    \\n\" + (attribution_text) + (cite_element) + \"\\n
    \";\n } else {\n attribution_element = \"\"\n };\n return \"\" + \"\" + (title_element) + \"\\n\" + \"
    \" + (node.$content()) + \"
    \" + (attribution_element) + \"\\n\" + \"\";\n }, $Html5Converter_convert_verse$47.$$arity = 1);\n \n Opal.def(self, '$convert_video', $Html5Converter_convert_video$48 = function $$convert_video(node) {\n var $a, $b, self = this, xml = nil, id_attribute = nil, classes = nil, class_attribute = nil, title_element = nil, width_attribute = nil, height_attribute = nil, $case = nil, asset_uri_scheme = nil, start_anchor = nil, delimiter = nil, autoplay_param = nil, loop_param = nil, muted_param = nil, rel_param_val = nil, start_param = nil, end_param = nil, has_loop_param = nil, mute_param = nil, controls_param = nil, fs_param = nil, fs_attribute = nil, modest_param = nil, theme_param = nil, hl_param = nil, target = nil, list = nil, list_param = nil, playlist = nil, poster_attribute = nil, val = nil, preload_attribute = nil, start_t = nil, end_t = nil, time_anchor = nil;\n\n \n xml = self.xml_mode;\n id_attribute = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n classes = [\"videoblock\"];\n if ($truthy(node['$attr?'](\"float\"))) {\n classes['$<<'](node.$attr(\"float\"))};\n if ($truthy(node['$attr?'](\"align\"))) {\n classes['$<<'](\"\" + \"text-\" + (node.$attr(\"align\")))};\n if ($truthy(node.$role())) {\n classes['$<<'](node.$role())};\n class_attribute = \"\" + \" class=\\\"\" + (classes.$join(\" \")) + \"\\\"\";\n title_element = (function() {if ($truthy(node['$title?']())) {\n return \"\" + \"\\n
    \" + (node.$title()) + \"
    \"\n } else {\n return \"\"\n }; return nil; })();\n width_attribute = (function() {if ($truthy(node['$attr?'](\"width\"))) {\n return \"\" + \" width=\\\"\" + (node.$attr(\"width\")) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n height_attribute = (function() {if ($truthy(node['$attr?'](\"height\"))) {\n return \"\" + \" height=\\\"\" + (node.$attr(\"height\")) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n return (function() {$case = node.$attr(\"poster\");\n if (\"vimeo\"['$===']($case)) {\n if ($truthy((asset_uri_scheme = node.$document().$attr(\"asset-uri-scheme\", \"https\"))['$empty?']())) {\n } else {\n asset_uri_scheme = \"\" + (asset_uri_scheme) + \":\"\n };\n start_anchor = (function() {if ($truthy(node['$attr?'](\"start\"))) {\n return \"\" + \"#at=\" + (node.$attr(\"start\"))\n } else {\n return \"\"\n }; return nil; })();\n delimiter = [\"?\"];\n autoplay_param = (function() {if ($truthy(node['$option?'](\"autoplay\"))) {\n return \"\" + (($truthy($a = delimiter.$pop()) ? $a : \"&\")) + \"autoplay=1\"\n } else {\n return \"\"\n }; return nil; })();\n loop_param = (function() {if ($truthy(node['$option?'](\"loop\"))) {\n return \"\" + (($truthy($a = delimiter.$pop()) ? $a : \"&\")) + \"loop=1\"\n } else {\n return \"\"\n }; return nil; })();\n muted_param = (function() {if ($truthy(node['$option?'](\"muted\"))) {\n return \"\" + (($truthy($a = delimiter.$pop()) ? $a : \"&\")) + \"muted=1\"\n } else {\n return \"\"\n }; return nil; })();\n return \"\" + \"\" + (title_element) + \"\\n\" + \"
    \\n\" + \"\\n\" + \"
    \\n\" + \"\";}\n else if (\"youtube\"['$===']($case)) {\n if ($truthy((asset_uri_scheme = node.$document().$attr(\"asset-uri-scheme\", \"https\"))['$empty?']())) {\n } else {\n asset_uri_scheme = \"\" + (asset_uri_scheme) + \":\"\n };\n rel_param_val = (function() {if ($truthy(node['$option?'](\"related\"))) {\n return 1\n } else {\n return 0\n }; return nil; })();\n start_param = (function() {if ($truthy(node['$attr?'](\"start\"))) {\n return \"\" + \"&start=\" + (node.$attr(\"start\"))\n } else {\n return \"\"\n }; return nil; })();\n end_param = (function() {if ($truthy(node['$attr?'](\"end\"))) {\n return \"\" + \"&end=\" + (node.$attr(\"end\"))\n } else {\n return \"\"\n }; return nil; })();\n autoplay_param = (function() {if ($truthy(node['$option?'](\"autoplay\"))) {\n return \"&autoplay=1\"\n } else {\n return \"\"\n }; return nil; })();\n loop_param = (function() {if ($truthy((has_loop_param = node['$option?'](\"loop\")))) {\n return \"&loop=1\"\n } else {\n return \"\"\n }; return nil; })();\n mute_param = (function() {if ($truthy(node['$option?'](\"muted\"))) {\n return \"&mute=1\"\n } else {\n return \"\"\n }; return nil; })();\n controls_param = (function() {if ($truthy(node['$option?'](\"nocontrols\"))) {\n return \"&controls=0\"\n } else {\n return \"\"\n }; return nil; })();\n if ($truthy(node['$option?'](\"nofullscreen\"))) {\n \n fs_param = \"&fs=0\";\n fs_attribute = \"\";\n } else {\n \n fs_param = \"\";\n fs_attribute = self.$append_boolean_attribute(\"allowfullscreen\", xml);\n };\n modest_param = (function() {if ($truthy(node['$option?'](\"modest\"))) {\n return \"&modestbranding=1\"\n } else {\n return \"\"\n }; return nil; })();\n theme_param = (function() {if ($truthy(node['$attr?'](\"theme\"))) {\n return \"\" + \"&theme=\" + (node.$attr(\"theme\"))\n } else {\n return \"\"\n }; return nil; })();\n hl_param = (function() {if ($truthy(node['$attr?'](\"lang\"))) {\n return \"\" + \"&hl=\" + (node.$attr(\"lang\"))\n } else {\n return \"\"\n }; return nil; })();\n $b = node.$attr(\"target\").$split(\"/\", 2), $a = Opal.to_ary($b), (target = ($a[0] == null ? nil : $a[0])), (list = ($a[1] == null ? nil : $a[1])), $b;\n if ($truthy((list = ($truthy($a = list) ? $a : node.$attr(\"list\"))))) {\n list_param = \"\" + \"&list=\" + (list)\n } else {\n \n $b = target.$split(\",\", 2), $a = Opal.to_ary($b), (target = ($a[0] == null ? nil : $a[0])), (playlist = ($a[1] == null ? nil : $a[1])), $b;\n if ($truthy((playlist = ($truthy($a = playlist) ? $a : node.$attr(\"playlist\"))))) {\n list_param = \"\" + \"&playlist=\" + (playlist)\n } else {\n list_param = (function() {if ($truthy(has_loop_param)) {\n return \"\" + \"&playlist=\" + (target)\n } else {\n return \"\"\n }; return nil; })()\n };\n };\n return \"\" + \"\" + (title_element) + \"\\n\" + \"
    \\n\" + \"\\n\" + \"
    \\n\" + \"\";}\n else {\n poster_attribute = (function() {if ($truthy((val = node.$attr(\"poster\"))['$nil_or_empty?']())) {\n return \"\"\n } else {\n return \"\" + \" poster=\\\"\" + (node.$media_uri(val)) + \"\\\"\"\n }; return nil; })();\n preload_attribute = (function() {if ($truthy((val = node.$attr(\"preload\"))['$nil_or_empty?']())) {\n return \"\"\n } else {\n return \"\" + \" preload=\\\"\" + (val) + \"\\\"\"\n }; return nil; })();\n start_t = node.$attr(\"start\");\n end_t = node.$attr(\"end\");\n time_anchor = (function() {if ($truthy(($truthy($a = start_t) ? $a : end_t))) {\n return \"\" + \"#t=\" + (($truthy($a = start_t) ? $a : \"\")) + ((function() {if ($truthy(end_t)) {\n return \"\" + \",\" + (end_t)\n } else {\n return \"\"\n }; return nil; })())\n } else {\n return \"\"\n }; return nil; })();\n return \"\" + \"\" + (title_element) + \"\\n\" + \"
    \\n\" + \"\\n\" + \"
    \\n\" + \"\";}})();\n }, $Html5Converter_convert_video$48.$$arity = 1);\n \n Opal.def(self, '$convert_inline_anchor', $Html5Converter_convert_inline_anchor$49 = function $$convert_inline_anchor(node) {\n var $a, self = this, $case = nil, path = nil, attrs = nil, text = nil, refid = nil, ref = nil;\n\n return (function() {$case = node.$type();\n if (\"xref\"['$===']($case)) {\n if ($truthy((path = node.$attributes()['$[]'](\"path\")))) {\n \n attrs = self.$append_link_constraint_attrs(node, (function() {if ($truthy(node.$role())) {\n return [\"\" + \" class=\\\"\" + (node.$role()) + \"\\\"\"]\n } else {\n return []\n }; return nil; })()).$join();\n text = ($truthy($a = node.$text()) ? $a : path);\n } else {\n \n attrs = (function() {if ($truthy(node.$role())) {\n return \"\" + \" class=\\\"\" + (node.$role()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n if ($truthy((text = node.$text()))) {\n } else {\n \n refid = node.$attributes()['$[]'](\"refid\");\n if ($truthy($$($nesting, 'AbstractNode')['$===']((ref = (self.refs = ($truthy($a = self.refs) ? $a : node.$document().$catalog()['$[]'](\"refs\")))['$[]'](refid))))) {\n text = ($truthy($a = ref.$xreftext(node.$attr(\"xrefstyle\", nil, true))) ? $a : \"\" + \"[\" + (refid) + \"]\")\n } else {\n text = \"\" + \"[\" + (refid) + \"]\"\n };\n };\n };\n return \"\" + \"\" + (text) + \"\";}\n else if (\"ref\"['$===']($case)) {return \"\" + \"\"}\n else if (\"link\"['$===']($case)) {\n attrs = (function() {if ($truthy(node.$id())) {\n return [\"\" + \" id=\\\"\" + (node.$id()) + \"\\\"\"]\n } else {\n return []\n }; return nil; })();\n if ($truthy(node.$role())) {\n attrs['$<<'](\"\" + \" class=\\\"\" + (node.$role()) + \"\\\"\")};\n if ($truthy(node['$attr?'](\"title\"))) {\n attrs['$<<'](\"\" + \" title=\\\"\" + (node.$attr(\"title\")) + \"\\\"\")};\n return \"\" + \"\" + (node.$text()) + \"\";}\n else if (\"bibref\"['$===']($case)) {return \"\" + \"[\" + (($truthy($a = node.$reftext()) ? $a : node.$id())) + \"]\"}\n else {\n self.$logger().$warn(\"\" + \"unknown anchor type: \" + (node.$type().$inspect()));\n return nil;}})()\n }, $Html5Converter_convert_inline_anchor$49.$$arity = 1);\n \n Opal.def(self, '$convert_inline_break', $Html5Converter_convert_inline_break$50 = function $$convert_inline_break(node) {\n var self = this;\n\n return \"\" + (node.$text()) + \"\"\n }, $Html5Converter_convert_inline_break$50.$$arity = 1);\n \n Opal.def(self, '$convert_inline_button', $Html5Converter_convert_inline_button$51 = function $$convert_inline_button(node) {\n var self = this;\n\n return \"\" + \"\" + (node.$text()) + \"\"\n }, $Html5Converter_convert_inline_button$51.$$arity = 1);\n \n Opal.def(self, '$convert_inline_callout', $Html5Converter_convert_inline_callout$52 = function $$convert_inline_callout(node) {\n var self = this, src = nil;\n\n if ($truthy(node.$document()['$attr?'](\"icons\", \"font\"))) {\n return \"\" + \"(\" + (node.$text()) + \")\"\n } else if ($truthy(node.$document()['$attr?'](\"icons\"))) {\n \n src = node.$icon_uri(\"\" + \"callouts/\" + (node.$text()));\n return \"\" + \"\\\"\"\";\n } else {\n return \"\" + (node.$attributes()['$[]'](\"guard\")) + \"(\" + (node.$text()) + \")\"\n }\n }, $Html5Converter_convert_inline_callout$52.$$arity = 1);\n \n Opal.def(self, '$convert_inline_footnote', $Html5Converter_convert_inline_footnote$53 = function $$convert_inline_footnote(node) {\n var self = this, index = nil, id_attr = nil;\n\n if ($truthy((index = node.$attr(\"index\")))) {\n if (node.$type()['$=='](\"xref\")) {\n return \"\" + \"[\" + (index) + \"]\"\n } else {\n \n id_attr = (function() {if ($truthy(node.$id())) {\n return \"\" + \" id=\\\"_footnote_\" + (node.$id()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n return \"\" + \"[\" + (index) + \"]\";\n }\n } else if (node.$type()['$=='](\"xref\")) {\n return \"\" + \"[\" + (node.$text()) + \"]\"\n } else {\n return nil\n }\n }, $Html5Converter_convert_inline_footnote$53.$$arity = 1);\n \n Opal.def(self, '$convert_inline_image', $Html5Converter_convert_inline_image$54 = function $$convert_inline_image(node) {\n var $a, $b, $$55, $$56, $c, $d, self = this, type = nil, class_attr_val = nil, title_attr = nil, img = nil, target = nil, attrs = nil, svg = nil, obj = nil, fallback = nil, role = nil;\n\n \n if ($truthy((($a = (type = ($truthy($b = node.$type()) ? $b : \"image\"))['$=='](\"icon\")) ? node.$document()['$attr?'](\"icons\", \"font\") : (type = ($truthy($b = node.$type()) ? $b : \"image\"))['$=='](\"icon\")))) {\n \n class_attr_val = \"\" + \"fa fa-\" + (node.$target());\n $send($hash2([\"size\", \"rotate\", \"flip\"], {\"size\": \"fa-\", \"rotate\": \"fa-rotate-\", \"flip\": \"fa-flip-\"}), 'each', [], ($$55 = function(key, prefix){var self = $$55.$$s || this;\n\n \n \n if (key == null) {\n key = nil;\n };\n \n if (prefix == null) {\n prefix = nil;\n };\n if ($truthy(node['$attr?'](key))) {\n return (class_attr_val = \"\" + (class_attr_val) + \" \" + (prefix) + (node.$attr(key)))\n } else {\n return nil\n };}, $$55.$$s = self, $$55.$$arity = 2, $$55));\n title_attr = (function() {if ($truthy(node['$attr?'](\"title\"))) {\n return \"\" + \" title=\\\"\" + (node.$attr(\"title\")) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n img = \"\" + \"\";\n } else if ($truthy((($a = type['$=='](\"icon\")) ? node.$document()['$attr?'](\"icons\")['$!']() : type['$=='](\"icon\")))) {\n img = \"\" + \"[\" + (node.$alt()) + \"]\"\n } else {\n \n target = node.$target();\n attrs = $send([\"width\", \"height\", \"title\"], 'map', [], ($$56 = function(name){var self = $$56.$$s || this;\n\n \n \n if (name == null) {\n name = nil;\n };\n if ($truthy(node['$attr?'](name))) {\n return \"\" + \" \" + (name) + \"=\\\"\" + (node.$attr(name)) + \"\\\"\"\n } else {\n return \"\"\n };}, $$56.$$s = self, $$56.$$arity = 1, $$56)).$join();\n if ($truthy(($truthy($a = ($truthy($b = ($truthy($c = type['$!='](\"icon\")) ? ($truthy($d = node['$attr?'](\"format\", \"svg\")) ? $d : target['$include?'](\".svg\")) : $c)) ? $rb_lt(node.$document().$safe(), $$$($$($nesting, 'SafeMode'), 'SECURE')) : $b)) ? ($truthy($b = (svg = node['$option?'](\"inline\"))) ? $b : (obj = node['$option?'](\"interactive\"))) : $a))) {\n if ($truthy(svg)) {\n img = ($truthy($a = self.$read_svg_contents(node, target)) ? $a : \"\" + \"\" + (node.$alt()) + \"\")\n } else if ($truthy(obj)) {\n \n fallback = (function() {if ($truthy(node['$attr?'](\"fallback\"))) {\n return \"\" + \"\\\"\"\"\n } else {\n return \"\" + \"\" + (node.$alt()) + \"\"\n }; return nil; })();\n img = \"\" + \"\" + (fallback) + \"\";}};\n img = ($truthy($a = img) ? $a : \"\" + \"\\\"\"\");\n };\n if ($truthy(node['$attr?'](\"link\"))) {\n img = \"\" + \"\" + (img) + \"\"};\n if ($truthy((role = node.$role()))) {\n if ($truthy(node['$attr?'](\"float\"))) {\n class_attr_val = \"\" + (type) + \" \" + (node.$attr(\"float\")) + \" \" + (role)\n } else {\n class_attr_val = \"\" + (type) + \" \" + (role)\n }\n } else if ($truthy(node['$attr?'](\"float\"))) {\n class_attr_val = \"\" + (type) + \" \" + (node.$attr(\"float\"))\n } else {\n class_attr_val = type\n };\n return \"\" + \"\" + (img) + \"\";\n }, $Html5Converter_convert_inline_image$54.$$arity = 1);\n \n Opal.def(self, '$convert_inline_indexterm', $Html5Converter_convert_inline_indexterm$57 = function $$convert_inline_indexterm(node) {\n var self = this;\n\n if (node.$type()['$=='](\"visible\")) {\n return node.$text()\n } else {\n return \"\"\n }\n }, $Html5Converter_convert_inline_indexterm$57.$$arity = 1);\n \n Opal.def(self, '$convert_inline_kbd', $Html5Converter_convert_inline_kbd$58 = function $$convert_inline_kbd(node) {\n var self = this, keys = nil;\n\n if ((keys = node.$attr(\"keys\")).$size()['$=='](1)) {\n return \"\" + \"\" + (keys['$[]'](0)) + \"\"\n } else {\n return \"\" + \"\" + (keys.$join(\"+\")) + \"\"\n }\n }, $Html5Converter_convert_inline_kbd$58.$$arity = 1);\n \n Opal.def(self, '$convert_inline_menu', $Html5Converter_convert_inline_menu$59 = function $$convert_inline_menu(node) {\n var self = this, caret = nil, submenu_joiner = nil, menu = nil, submenus = nil, menuitem = nil;\n\n \n caret = (function() {if ($truthy(node.$document()['$attr?'](\"icons\", \"font\"))) {\n return \"  \"\n } else {\n return \"  \"\n }; return nil; })();\n submenu_joiner = \"\" + \"\" + (caret) + \"\";\n menu = node.$attr(\"menu\");\n if ($truthy((submenus = node.$attr(\"submenus\"))['$empty?']())) {\n if ($truthy((menuitem = node.$attr(\"menuitem\")))) {\n return \"\" + \"\" + (menu) + \"\" + (caret) + \"\" + (menuitem) + \"\"\n } else {\n return \"\" + \"\" + (menu) + \"\"\n }\n } else {\n return \"\" + \"\" + (menu) + \"\" + (caret) + \"\" + (submenus.$join(submenu_joiner)) + \"\" + (caret) + \"\" + (node.$attr(\"menuitem\")) + \"\"\n };\n }, $Html5Converter_convert_inline_menu$59.$$arity = 1);\n \n Opal.def(self, '$convert_inline_quoted', $Html5Converter_convert_inline_quoted$60 = function $$convert_inline_quoted(node) {\n var $a, $b, self = this, open = nil, close = nil, tag = nil, class_attr = nil;\n\n \n $b = $$($nesting, 'QUOTE_TAGS')['$[]'](node.$type()), $a = Opal.to_ary($b), (open = ($a[0] == null ? nil : $a[0])), (close = ($a[1] == null ? nil : $a[1])), (tag = ($a[2] == null ? nil : $a[2])), $b;\n if ($truthy(node.$id())) {\n \n class_attr = (function() {if ($truthy(node.$role())) {\n return \"\" + \" class=\\\"\" + (node.$role()) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n if ($truthy(tag)) {\n return \"\" + (open.$chop()) + \" id=\\\"\" + (node.$id()) + \"\\\"\" + (class_attr) + \">\" + (node.$text()) + (close)\n } else {\n return \"\" + \"\" + (open) + (node.$text()) + (close) + \"\"\n };\n } else if ($truthy(node.$role())) {\n if ($truthy(tag)) {\n return \"\" + (open.$chop()) + \" class=\\\"\" + (node.$role()) + \"\\\">\" + (node.$text()) + (close)\n } else {\n return \"\" + \"\" + (open) + (node.$text()) + (close) + \"\"\n }\n } else {\n return \"\" + (open) + (node.$text()) + (close)\n };\n }, $Html5Converter_convert_inline_quoted$60.$$arity = 1);\n \n Opal.def(self, '$read_svg_contents', $Html5Converter_read_svg_contents$61 = function $$read_svg_contents(node, target) {\n var $$62, self = this, svg = nil, old_start_tag = nil, new_start_tag = nil;\n\n \n if ($truthy((svg = node.$read_contents(target, $hash2([\"start\", \"normalize\", \"label\"], {\"start\": node.$document().$attr(\"imagesdir\"), \"normalize\": true, \"label\": \"SVG\"}))))) {\n \n if ($truthy(svg['$start_with?'](\"\");\n } else {\n return nil\n };}, $$62.$$s = self, $$62.$$arity = 1, $$62));\n if ($truthy(new_start_tag)) {\n svg = \"\" + (new_start_tag) + (svg['$[]'](Opal.Range.$new(old_start_tag.$length(), -1, false)))};};\n return svg;\n }, $Html5Converter_read_svg_contents$61.$$arity = 2);\n self.$private();\n \n Opal.def(self, '$append_boolean_attribute', $Html5Converter_append_boolean_attribute$63 = function $$append_boolean_attribute(name, xml) {\n var self = this;\n\n if ($truthy(xml)) {\n return \"\" + \" \" + (name) + \"=\\\"\" + (name) + \"\\\"\"\n } else {\n return \"\" + \" \" + (name)\n }\n }, $Html5Converter_append_boolean_attribute$63.$$arity = 2);\n \n Opal.def(self, '$append_link_constraint_attrs', $Html5Converter_append_link_constraint_attrs$64 = function $$append_link_constraint_attrs(node, attrs) {\n var $a, self = this, rel = nil, window = nil;\n\n \n \n if (attrs == null) {\n attrs = [];\n };\n if ($truthy(node['$option?'](\"nofollow\"))) {\n rel = \"nofollow\"};\n if ($truthy((window = node.$attributes()['$[]'](\"window\")))) {\n \n attrs['$<<'](\"\" + \" target=\\\"\" + (window) + \"\\\"\");\n if ($truthy(($truthy($a = window['$=='](\"_blank\")) ? $a : node['$option?'](\"noopener\")))) {\n attrs['$<<']((function() {if ($truthy(rel)) {\n return \"\" + \" rel=\\\"\" + (rel) + \" noopener\\\"\"\n } else {\n return \" rel=\\\"noopener\\\"\"\n }; return nil; })())};\n } else if ($truthy(rel)) {\n attrs['$<<'](\"\" + \" rel=\\\"\" + (rel) + \"\\\"\")};\n return attrs;\n }, $Html5Converter_append_link_constraint_attrs$64.$$arity = -2);\n \n Opal.def(self, '$encode_attribute_value', $Html5Converter_encode_attribute_value$65 = function $$encode_attribute_value(val) {\n var self = this;\n\n if ($truthy(val['$include?'](\"\\\"\"))) {\n \n return val.$gsub(\"\\\"\", \""\");\n } else {\n return val\n }\n }, $Html5Converter_encode_attribute_value$65.$$arity = 1);\n \n Opal.def(self, '$generate_manname_section', $Html5Converter_generate_manname_section$66 = function $$generate_manname_section(node) {\n var $a, self = this, manname_title = nil, next_section = nil, next_section_title = nil, manname_id_attr = nil, manname_id = nil;\n\n \n manname_title = node.$attr(\"manname-title\", \"Name\");\n if ($truthy(($truthy($a = (next_section = node.$sections()['$[]'](0))) ? (next_section_title = next_section.$title())['$=='](next_section_title.$upcase()) : $a))) {\n manname_title = manname_title.$upcase()};\n manname_id_attr = (function() {if ($truthy((manname_id = node.$attr(\"manname-id\")))) {\n return \"\" + \" id=\\\"\" + (manname_id) + \"\\\"\"\n } else {\n return \"\"\n }; return nil; })();\n return \"\" + \"\" + (manname_title) + \"\\n\" + \"
    \\n\" + \"

    \" + (node.$attr(\"manname\")) + \" - \" + (node.$attr(\"manpurpose\")) + \"

    \\n\" + \"
    \";\n }, $Html5Converter_generate_manname_section$66.$$arity = 1);\n return (Opal.def(self, '$method_missing', $Html5Converter_method_missing$67 = function $$method_missing(id, $a) {\n var $post_args, params, $b, $iter = $Html5Converter_method_missing$67.$$p, $yield = $iter || nil, self = this, name = nil, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;\n\n if ($iter) $Html5Converter_method_missing$67.$$p = null;\n // Prepare super implicit arguments\n for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {\n $zuper[$zuper_i] = arguments[$zuper_i];\n }\n \n \n $post_args = Opal.slice.call(arguments, 1, arguments.length);\n \n params = $post_args;;\n if ($truthy(($truthy($b = (name = id.$to_s())['$start_with?'](\"convert_\")['$!']()) ? self['$handles?'](name) : $b))) {\n \n return $send(self, 'send', [\"\" + \"convert_\" + (name)].concat(Opal.to_a(params)));\n } else {\n return $send(self, Opal.find_super_dispatcher(self, 'method_missing', $Html5Converter_method_missing$67, false), $zuper, $iter)\n };\n }, $Html5Converter_method_missing$67.$$arity = -2), nil) && 'method_missing';\n })($$($nesting, 'Converter'), $$$($$($nesting, 'Converter'), 'Base'), $nesting)\n })($nesting[0], $nesting)\n};\n\n/* Generated by Opal 0.11.99.dev */\nOpal.modules[\"asciidoctor/extensions\"] = function(Opal) {\n function $rb_minus(lhs, rhs) {\n return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs - rhs : lhs['$-'](rhs);\n }\n function $rb_plus(lhs, rhs) {\n return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs + rhs : lhs['$+'](rhs);\n }\n function $rb_gt(lhs, rhs) {\n return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs > rhs : lhs['$>'](rhs);\n }\n function $rb_lt(lhs, rhs) {\n return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs < rhs : lhs['$<'](rhs);\n }\n var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $truthy = Opal.truthy, $hash2 = Opal.hash2, $send = Opal.send, $hash = Opal.hash;\n\n Opal.add_stubs(['$==', '$[]=', '$config', '$-', '$const_defined?', '$singleton_class?', '$include', '$const_get', '$extend', '$attr_reader', '$merge', '$class', '$update', '$raise', '$document', '$doctype', '$[]', '$+', '$level', '$delete', '$>', '$casecmp', '$new', '$title=', '$sectname=', '$special=', '$fetch', '$numbered=', '$!', '$key?', '$attr?', '$special', '$numbered', '$generate_id', '$title', '$id=', '$update_attributes', '$tr', '$basename', '$create_block', '$assign_caption', '$===', '$parse_blocks', '$empty?', '$include?', '$sub_attributes', '$parse', '$each', '$define_method', '$unshift', '$shift', '$send', '$size', '$binding', '$receiver', '$define_singleton_method', '$instance_exec', '$to_proc', '$call', '$option', '$flatten', '$respond_to?', '$to_s', '$partition', '$to_i', '$<<', '$compact', '$inspect', '$attr_accessor', '$to_set', '$match?', '$resolve_regexp', '$method', '$register', '$values', '$groups', '$arity', '$activate', '$add_document_processor', '$any?', '$select', '$add_syntax_processor', '$to_sym', '$instance_variable_get', '$kind', '$private', '$join', '$map', '$split', '$capitalize', '$instance_variable_set', '$resolve_args', '$enable_dsl', '$singleton_class', '$process_block_given?', '$source_location', '$freeze', '$resolve_class', '$<', '$update_config', '$as_symbol', '$name', '$name=', '$pop', '$-@', '$next_auto_id', '$generate_name']);\n \n if ($$($nesting, 'RUBY_ENGINE')['$=='](\"opal\")) {\n } else {\n nil\n };\n return (function($base, $parent_nesting) {\n var self = $module($base, 'Asciidoctor');\n\n var $nesting = [self].concat($parent_nesting);\n\n (function($base, $parent_nesting) {\n var self = $module($base, 'Extensions');\n\n var $nesting = [self].concat($parent_nesting);\n\n \n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'Processor');\n\n var $nesting = [self].concat($parent_nesting), $Processor_initialize$4, $Processor_update_config$5, $Processor_process$6, $Processor_create_section$7, $Processor_create_block$8, $Processor_create_list$9, $Processor_create_list_item$10, $Processor_create_image_block$11, $Processor_create_inline$12, $Processor_parse_content$13, $Processor_parse_attributes$14, $Processor$15;\n\n self.$$prototype.config = nil;\n \n (function(self, $parent_nesting) {\n var $nesting = [self].concat($parent_nesting), $config$1, $option$2, $enable_dsl$3;\n\n \n \n Opal.def(self, '$config', $config$1 = function $$config() {\n var $a, self = this;\n if (self.config == null) self.config = nil;\n\n return (self.config = ($truthy($a = self.config) ? $a : $hash2([], {})))\n }, $config$1.$$arity = 0);\n \n Opal.def(self, '$option', $option$2 = function $$option(key, default_value) {\n var self = this, $writer = nil;\n\n \n $writer = [key, default_value];\n $send(self.$config(), '[]=', Opal.to_a($writer));\n return $writer[$rb_minus($writer[\"length\"], 1)];\n }, $option$2.$$arity = 2);\n \n Opal.def(self, '$enable_dsl', $enable_dsl$3 = function $$enable_dsl() {\n var self = this;\n\n if ($truthy(self['$const_defined?'](\"DSL\"))) {\n if ($truthy(self['$singleton_class?']())) {\n return self.$include(self.$const_get(\"DSL\"))\n } else {\n return self.$extend(self.$const_get(\"DSL\"))\n }\n } else {\n return nil\n }\n }, $enable_dsl$3.$$arity = 0);\n return Opal.alias(self, \"use_dsl\", \"enable_dsl\");\n })(Opal.get_singleton_class(self), $nesting);\n self.$attr_reader(\"config\");\n \n Opal.def(self, '$initialize', $Processor_initialize$4 = function $$initialize(config) {\n var self = this;\n\n \n \n if (config == null) {\n config = $hash2([], {});\n };\n return (self.config = self.$class().$config().$merge(config));\n }, $Processor_initialize$4.$$arity = -1);\n \n Opal.def(self, '$update_config', $Processor_update_config$5 = function $$update_config(config) {\n var self = this;\n\n return self.config.$update(config)\n }, $Processor_update_config$5.$$arity = 1);\n \n Opal.def(self, '$process', $Processor_process$6 = function $$process($a) {\n var $post_args, args, self = this;\n\n \n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n args = $post_args;;\n return self.$raise($$$('::', 'NotImplementedError'), \"\" + ($$($nesting, 'Processor')) + \" subclass \" + (self.$class()) + \" must implement the #\" + (\"process\") + \" method\");\n }, $Processor_process$6.$$arity = -1);\n \n Opal.def(self, '$create_section', $Processor_create_section$7 = function $$create_section(parent, title, attrs, opts) {\n var $a, self = this, doc = nil, book = nil, doctype = nil, level = nil, style = nil, sectname = nil, special = nil, sect = nil, $writer = nil, id = nil;\n\n \n \n if (opts == null) {\n opts = $hash2([], {});\n };\n doc = parent.$document();\n book = (doctype = doc.$doctype())['$=='](\"book\");\n level = ($truthy($a = opts['$[]'](\"level\")) ? $a : $rb_plus(parent.$level(), 1));\n if ($truthy((style = attrs.$delete(\"style\")))) {\n if ($truthy(($truthy($a = book) ? style['$=='](\"abstract\") : $a))) {\n $a = [\"chapter\", 1], (sectname = $a[0]), (level = $a[1]), $a\n } else {\n \n $a = [style, true], (sectname = $a[0]), (special = $a[1]), $a;\n if (level['$=='](0)) {\n level = 1};\n }\n } else if ($truthy(book)) {\n sectname = (function() {if (level['$=='](0)) {\n return \"part\"\n } else {\n \n if ($truthy($rb_gt(level, 1))) {\n return \"section\"\n } else {\n return \"chapter\"\n };\n }; return nil; })()\n } else if ($truthy((($a = doctype['$=='](\"manpage\")) ? title.$casecmp(\"synopsis\")['$=='](0) : doctype['$=='](\"manpage\")))) {\n $a = [\"synopsis\", true], (sectname = $a[0]), (special = $a[1]), $a\n } else {\n sectname = \"section\"\n };\n sect = $$($nesting, 'Section').$new(parent, level);\n $a = [title, sectname], sect['$title=']($a[0]), sect['$sectname=']($a[1]), $a;\n if ($truthy(special)) {\n \n \n $writer = [true];\n $send(sect, 'special=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];;\n if ($truthy(opts.$fetch(\"numbered\", style['$=='](\"appendix\")))) {\n \n $writer = [true];\n $send(sect, 'numbered=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];\n } else if ($truthy(($truthy($a = opts['$key?'](\"numbered\")['$!']()) ? doc['$attr?'](\"sectnums\", \"all\") : $a))) {\n \n $writer = [(function() {if ($truthy(($truthy($a = book) ? level['$=='](1) : $a))) {\n return \"chapter\"\n } else {\n return true\n }; return nil; })()];\n $send(sect, 'numbered=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];};\n } else if ($truthy($rb_gt(level, 0))) {\n if ($truthy(opts.$fetch(\"numbered\", doc['$attr?'](\"sectnums\")))) {\n \n $writer = [(function() {if ($truthy(sect.$special())) {\n return ($truthy($a = parent.$numbered()) ? true : $a)\n } else {\n return true\n }; return nil; })()];\n $send(sect, 'numbered=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];}\n } else if ($truthy(opts.$fetch(\"numbered\", ($truthy($a = book) ? doc['$attr?'](\"partnums\") : $a)))) {\n \n $writer = [true];\n $send(sect, 'numbered=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];};\n if ((id = attrs['$[]'](\"id\"))['$=='](false)) {\n attrs.$delete(\"id\")\n } else {\n \n $writer = [(($writer = [\"id\", ($truthy($a = id) ? $a : (function() {if ($truthy(doc['$attr?'](\"sectids\"))) {\n \n return $$($nesting, 'Section').$generate_id(sect.$title(), doc);\n } else {\n return nil\n }; return nil; })())]), $send(attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer[\"length\"], 1)])];\n $send(sect, 'id=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];\n };\n sect.$update_attributes(attrs);\n return sect;\n }, $Processor_create_section$7.$$arity = -4);\n \n Opal.def(self, '$create_block', $Processor_create_block$8 = function $$create_block(parent, context, source, attrs, opts) {\n var self = this;\n\n \n \n if (opts == null) {\n opts = $hash2([], {});\n };\n return $$($nesting, 'Block').$new(parent, context, $hash2([\"source\", \"attributes\"], {\"source\": source, \"attributes\": attrs}).$merge(opts));\n }, $Processor_create_block$8.$$arity = -5);\n \n Opal.def(self, '$create_list', $Processor_create_list$9 = function $$create_list(parent, context, attrs) {\n var self = this, list = nil;\n\n \n \n if (attrs == null) {\n attrs = nil;\n };\n list = $$($nesting, 'List').$new(parent, context);\n if ($truthy(attrs)) {\n list.$update_attributes(attrs)};\n return list;\n }, $Processor_create_list$9.$$arity = -3);\n \n Opal.def(self, '$create_list_item', $Processor_create_list_item$10 = function $$create_list_item(parent, text) {\n var self = this;\n\n \n \n if (text == null) {\n text = nil;\n };\n return $$($nesting, 'ListItem').$new(parent, text);\n }, $Processor_create_list_item$10.$$arity = -2);\n \n Opal.def(self, '$create_image_block', $Processor_create_image_block$11 = function $$create_image_block(parent, attrs, opts) {\n var $a, self = this, target = nil, $writer = nil, title = nil, block = nil;\n\n \n \n if (opts == null) {\n opts = $hash2([], {});\n };\n if ($truthy((target = attrs['$[]'](\"target\")))) {\n } else {\n self.$raise($$$('::', 'ArgumentError'), \"Unable to create an image block, target attribute is required\")\n };\n ($truthy($a = attrs['$[]'](\"alt\")) ? $a : (($writer = [\"alt\", (($writer = [\"default-alt\", $$($nesting, 'Helpers').$basename(target, true).$tr(\"_-\", \" \")]), $send(attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer[\"length\"], 1)])]), $send(attrs, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer[\"length\"], 1)]));\n title = (function() {if ($truthy(attrs['$key?'](\"title\"))) {\n \n return attrs.$delete(\"title\");\n } else {\n return nil\n }; return nil; })();\n block = self.$create_block(parent, \"image\", nil, attrs, opts);\n if ($truthy(title)) {\n \n \n $writer = [title];\n $send(block, 'title=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];;\n block.$assign_caption(attrs.$delete(\"caption\"), \"figure\");};\n return block;\n }, $Processor_create_image_block$11.$$arity = -3);\n \n Opal.def(self, '$create_inline', $Processor_create_inline$12 = function $$create_inline(parent, context, text, opts) {\n var self = this;\n\n \n \n if (opts == null) {\n opts = $hash2([], {});\n };\n return $$($nesting, 'Inline').$new(parent, context, text, (function() {if (context['$=='](\"quoted\")) {\n \n return $hash2([\"type\"], {\"type\": \"unquoted\"}).$merge(opts);\n } else {\n return opts\n }; return nil; })());\n }, $Processor_create_inline$12.$$arity = -4);\n \n Opal.def(self, '$parse_content', $Processor_parse_content$13 = function $$parse_content(parent, content, attributes) {\n var self = this, reader = nil;\n\n \n \n if (attributes == null) {\n attributes = nil;\n };\n reader = (function() {if ($truthy($$($nesting, 'Reader')['$==='](content))) {\n return content\n } else {\n \n return $$($nesting, 'Reader').$new(content);\n }; return nil; })();\n $$($nesting, 'Parser').$parse_blocks(reader, parent, attributes);\n return parent;\n }, $Processor_parse_content$13.$$arity = -3);\n \n Opal.def(self, '$parse_attributes', $Processor_parse_attributes$14 = function $$parse_attributes(block, attrlist, opts) {\n var $a, self = this;\n\n \n \n if (opts == null) {\n opts = $hash2([], {});\n };\n if ($truthy((function() {if ($truthy(attrlist)) {\n return attrlist['$empty?']()\n } else {\n return true\n }; return nil; })())) {\n return $hash2([], {})};\n if ($truthy(($truthy($a = opts['$[]'](\"sub_attributes\")) ? attrlist['$include?']($$($nesting, 'ATTR_REF_HEAD')) : $a))) {\n attrlist = block.$sub_attributes(attrlist)};\n return $$($nesting, 'AttributeList').$new(attrlist).$parse(($truthy($a = opts['$[]'](\"positional_attributes\")) ? $a : []));\n }, $Processor_parse_attributes$14.$$arity = -3);\n return $send([[\"create_paragraph\", \"create_block\", \"paragraph\"], [\"create_open_block\", \"create_block\", \"open\"], [\"create_example_block\", \"create_block\", \"example\"], [\"create_pass_block\", \"create_block\", \"pass\"], [\"create_listing_block\", \"create_block\", \"listing\"], [\"create_literal_block\", \"create_block\", \"literal\"], [\"create_anchor\", \"create_inline\", \"anchor\"], [\"create_inline_pass\", \"create_inline\", \"quoted\"]], 'each', [], ($Processor$15 = function(method_name, delegate_method_name, context){var self = $Processor$15.$$s || this, $$16;\n\n \n \n if (method_name == null) {\n method_name = nil;\n };\n \n if (delegate_method_name == null) {\n delegate_method_name = nil;\n };\n \n if (context == null) {\n context = nil;\n };\n return $send(self, 'define_method', [method_name], ($$16 = function($a){var self = $$16.$$s || this, $post_args, args;\n\n \n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n args = $post_args;;\n args.$unshift(args.$shift(), context);\n return $send(self, 'send', [delegate_method_name].concat(Opal.to_a(args)));}, $$16.$$s = self, $$16.$$arity = -1, $$16));}, $Processor$15.$$s = self, $Processor$15.$$arity = 3, $Processor$15));\n })($nesting[0], null, $nesting);\n (function($base, $parent_nesting) {\n var self = $module($base, 'ProcessorDsl');\n\n var $nesting = [self].concat($parent_nesting), $ProcessorDsl_option$17, $ProcessorDsl_process$18, $ProcessorDsl_process_block_given$ques$20;\n\n \n \n Opal.def(self, '$option', $ProcessorDsl_option$17 = function $$option(key, value) {\n var self = this, $writer = nil;\n\n \n $writer = [key, value];\n $send(self.$config(), '[]=', Opal.to_a($writer));\n return $writer[$rb_minus($writer[\"length\"], 1)];\n }, $ProcessorDsl_option$17.$$arity = 2);\n \n Opal.def(self, '$process', $ProcessorDsl_process$18 = function $$process($a) {\n var $iter = $ProcessorDsl_process$18.$$p, block = $iter || nil, $post_args, args, $b, $$19, self = this, context = nil;\n if (self.process_block == null) self.process_block = nil;\n\n if ($iter) $ProcessorDsl_process$18.$$p = null;\n \n \n if ($iter) $ProcessorDsl_process$18.$$p = null;;\n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n args = $post_args;;\n if ((block !== nil)) {\n \n if ($truthy(args['$empty?']())) {\n } else {\n self.$raise($$$('::', 'ArgumentError'), \"\" + \"wrong number of arguments (given \" + (args.$size()) + \", expected 0)\")\n };\n if ($truthy(($truthy($b = block.$binding()) ? self['$=='](block.$binding().$receiver()) : $b))) {\n } else {\n \n context = self;\n $send(block, 'define_singleton_method', [\"call\"], ($$19 = function($c){var self = $$19.$$s || this, $post_args, m_args;\n\n \n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n m_args = $post_args;;\n return $send(context, 'instance_exec', Opal.to_a(m_args), block.$to_proc());}, $$19.$$s = self, $$19.$$arity = -1, $$19));\n };\n return (self.process_block = block);\n } else if ($truthy((($b = self['process_block'], $b != null && $b !== nil) ? 'instance-variable' : nil))) {\n return $send(self.process_block, 'call', Opal.to_a(args))\n } else {\n return self.$raise($$$('::', 'NotImplementedError'), \"\" + (self.$class()) + \" #\" + (\"process\") + \" method called before being registered\")\n };\n }, $ProcessorDsl_process$18.$$arity = -1);\n \n Opal.def(self, '$process_block_given?', $ProcessorDsl_process_block_given$ques$20 = function() {\n var $a, self = this;\n\n return (($a = self['process_block'], $a != null && $a !== nil) ? 'instance-variable' : nil)\n }, $ProcessorDsl_process_block_given$ques$20.$$arity = 0);\n })($nesting[0], $nesting);\n (function($base, $parent_nesting) {\n var self = $module($base, 'DocumentProcessorDsl');\n\n var $nesting = [self].concat($parent_nesting), $DocumentProcessorDsl_prefer$21;\n\n \n self.$include($$($nesting, 'ProcessorDsl'));\n \n Opal.def(self, '$prefer', $DocumentProcessorDsl_prefer$21 = function $$prefer() {\n var self = this;\n\n return self.$option(\"position\", \">>\")\n }, $DocumentProcessorDsl_prefer$21.$$arity = 0);\n })($nesting[0], $nesting);\n (function($base, $parent_nesting) {\n var self = $module($base, 'SyntaxProcessorDsl');\n\n var $nesting = [self].concat($parent_nesting), $SyntaxProcessorDsl_named$22, $SyntaxProcessorDsl_content_model$23, $SyntaxProcessorDsl_positional_attributes$24, $SyntaxProcessorDsl_default_attributes$25, $SyntaxProcessorDsl_resolve_attributes$26;\n\n \n self.$include($$($nesting, 'ProcessorDsl'));\n \n Opal.def(self, '$named', $SyntaxProcessorDsl_named$22 = function $$named(value) {\n var self = this;\n\n if ($truthy($$($nesting, 'Processor')['$==='](self))) {\n return (self.name = value)\n } else {\n return self.$option(\"name\", value)\n }\n }, $SyntaxProcessorDsl_named$22.$$arity = 1);\n \n Opal.def(self, '$content_model', $SyntaxProcessorDsl_content_model$23 = function $$content_model(value) {\n var self = this;\n\n return self.$option(\"content_model\", value)\n }, $SyntaxProcessorDsl_content_model$23.$$arity = 1);\n Opal.alias(self, \"parse_content_as\", \"content_model\");\n \n Opal.def(self, '$positional_attributes', $SyntaxProcessorDsl_positional_attributes$24 = function $$positional_attributes($a) {\n var $post_args, value, self = this;\n\n \n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n value = $post_args;;\n return self.$option(\"positional_attrs\", value.$flatten());\n }, $SyntaxProcessorDsl_positional_attributes$24.$$arity = -1);\n Opal.alias(self, \"name_positional_attributes\", \"positional_attributes\");\n Opal.alias(self, \"positional_attrs\", \"positional_attributes\");\n \n Opal.def(self, '$default_attributes', $SyntaxProcessorDsl_default_attributes$25 = function $$default_attributes(value) {\n var self = this;\n\n return self.$option(\"default_attrs\", value)\n }, $SyntaxProcessorDsl_default_attributes$25.$$arity = 1);\n Opal.alias(self, \"default_attrs\", \"default_attributes\");\n \n Opal.def(self, '$resolve_attributes', $SyntaxProcessorDsl_resolve_attributes$26 = function $$resolve_attributes($a) {\n var $post_args, args, $b, $$27, $$28, self = this, $case = nil, names = nil, defaults = nil;\n\n \n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n args = $post_args;;\n if ($truthy($rb_gt(args.$size(), 1))) {\n } else if ($truthy((args = args.$fetch(0, true))['$respond_to?'](\"to_sym\"))) {\n args = [args]};\n return (function() {$case = args;\n if (true['$===']($case)) {\n self.$option(\"positional_attrs\", []);\n return self.$option(\"default_attrs\", $hash2([], {}));}\n else if ($$$('::', 'Array')['$===']($case)) {\n $b = [[], $hash2([], {})], (names = $b[0]), (defaults = $b[1]), $b;\n $send(args, 'each', [], ($$27 = function(arg){var self = $$27.$$s || this, $c, $d, name = nil, _ = nil, value = nil, idx = nil, $writer = nil;\n\n \n \n if (arg == null) {\n arg = nil;\n };\n if ($truthy((arg = arg.$to_s())['$include?'](\"=\"))) {\n \n $d = arg.$partition(\"=\"), $c = Opal.to_ary($d), (name = ($c[0] == null ? nil : $c[0])), (_ = ($c[1] == null ? nil : $c[1])), (value = ($c[2] == null ? nil : $c[2])), $d;\n if ($truthy(name['$include?'](\":\"))) {\n \n $d = name.$partition(\":\"), $c = Opal.to_ary($d), (idx = ($c[0] == null ? nil : $c[0])), (_ = ($c[1] == null ? nil : $c[1])), (name = ($c[2] == null ? nil : $c[2])), $d;\n idx = (function() {if (idx['$=='](\"@\")) {\n return names.$size()\n } else {\n return idx.$to_i()\n }; return nil; })();\n \n $writer = [idx, name];\n $send(names, '[]=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];;};\n \n $writer = [name, value];\n $send(defaults, '[]=', Opal.to_a($writer));\n return $writer[$rb_minus($writer[\"length\"], 1)];;\n } else if ($truthy(arg['$include?'](\":\"))) {\n \n $d = arg.$partition(\":\"), $c = Opal.to_ary($d), (idx = ($c[0] == null ? nil : $c[0])), (_ = ($c[1] == null ? nil : $c[1])), (name = ($c[2] == null ? nil : $c[2])), $d;\n idx = (function() {if (idx['$=='](\"@\")) {\n return names.$size()\n } else {\n return idx.$to_i()\n }; return nil; })();\n \n $writer = [idx, name];\n $send(names, '[]=', Opal.to_a($writer));\n return $writer[$rb_minus($writer[\"length\"], 1)];;\n } else {\n return names['$<<'](arg)\n };}, $$27.$$s = self, $$27.$$arity = 1, $$27));\n self.$option(\"positional_attrs\", names.$compact());\n return self.$option(\"default_attrs\", defaults);}\n else if ($$$('::', 'Hash')['$===']($case)) {\n $b = [[], $hash2([], {})], (names = $b[0]), (defaults = $b[1]), $b;\n $send(args, 'each', [], ($$28 = function(key, val){var self = $$28.$$s || this, $c, $d, name = nil, idx = nil, _ = nil, $writer = nil;\n\n \n \n if (key == null) {\n key = nil;\n };\n \n if (val == null) {\n val = nil;\n };\n if ($truthy((name = key.$to_s())['$include?'](\":\"))) {\n \n $d = name.$partition(\":\"), $c = Opal.to_ary($d), (idx = ($c[0] == null ? nil : $c[0])), (_ = ($c[1] == null ? nil : $c[1])), (name = ($c[2] == null ? nil : $c[2])), $d;\n idx = (function() {if (idx['$=='](\"@\")) {\n return names.$size()\n } else {\n return idx.$to_i()\n }; return nil; })();\n \n $writer = [idx, name];\n $send(names, '[]=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];;};\n if ($truthy(val)) {\n \n $writer = [name, val];\n $send(defaults, '[]=', Opal.to_a($writer));\n return $writer[$rb_minus($writer[\"length\"], 1)];\n } else {\n return nil\n };}, $$28.$$s = self, $$28.$$arity = 2, $$28));\n self.$option(\"positional_attrs\", names.$compact());\n return self.$option(\"default_attrs\", defaults);}\n else {return self.$raise($$$('::', 'ArgumentError'), \"\" + \"unsupported attributes specification for macro: \" + (args.$inspect()))}})();\n }, $SyntaxProcessorDsl_resolve_attributes$26.$$arity = -1);\n Opal.alias(self, \"resolves_attributes\", \"resolve_attributes\");\n })($nesting[0], $nesting);\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'Preprocessor');\n\n var $nesting = [self].concat($parent_nesting), $Preprocessor_process$29;\n\n return (Opal.def(self, '$process', $Preprocessor_process$29 = function $$process(document, reader) {\n var self = this;\n\n return self.$raise($$$('::', 'NotImplementedError'), \"\" + ($$($nesting, 'Preprocessor')) + \" subclass \" + (self.$class()) + \" must implement the #\" + (\"process\") + \" method\")\n }, $Preprocessor_process$29.$$arity = 2), nil) && 'process'\n })($nesting[0], $$($nesting, 'Processor'), $nesting);\n Opal.const_set($$($nesting, 'Preprocessor'), 'DSL', $$($nesting, 'DocumentProcessorDsl'));\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'TreeProcessor');\n\n var $nesting = [self].concat($parent_nesting), $TreeProcessor_process$30;\n\n return (Opal.def(self, '$process', $TreeProcessor_process$30 = function $$process(document) {\n var self = this;\n\n return self.$raise($$$('::', 'NotImplementedError'), \"\" + ($$($nesting, 'TreeProcessor')) + \" subclass \" + (self.$class()) + \" must implement the #\" + (\"process\") + \" method\")\n }, $TreeProcessor_process$30.$$arity = 1), nil) && 'process'\n })($nesting[0], $$($nesting, 'Processor'), $nesting);\n Opal.const_set($$($nesting, 'TreeProcessor'), 'DSL', $$($nesting, 'DocumentProcessorDsl'));\n Opal.const_set($nesting[0], 'Treeprocessor', $$($nesting, 'TreeProcessor'));\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'Postprocessor');\n\n var $nesting = [self].concat($parent_nesting), $Postprocessor_process$31;\n\n return (Opal.def(self, '$process', $Postprocessor_process$31 = function $$process(document, output) {\n var self = this;\n\n return self.$raise($$$('::', 'NotImplementedError'), \"\" + ($$($nesting, 'Postprocessor')) + \" subclass \" + (self.$class()) + \" must implement the #\" + (\"process\") + \" method\")\n }, $Postprocessor_process$31.$$arity = 2), nil) && 'process'\n })($nesting[0], $$($nesting, 'Processor'), $nesting);\n Opal.const_set($$($nesting, 'Postprocessor'), 'DSL', $$($nesting, 'DocumentProcessorDsl'));\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'IncludeProcessor');\n\n var $nesting = [self].concat($parent_nesting), $IncludeProcessor_process$32, $IncludeProcessor_handles$ques$33;\n\n \n \n Opal.def(self, '$process', $IncludeProcessor_process$32 = function $$process(document, reader, target, attributes) {\n var self = this;\n\n return self.$raise($$$('::', 'NotImplementedError'), \"\" + ($$($nesting, 'IncludeProcessor')) + \" subclass \" + (self.$class()) + \" must implement the #\" + (\"process\") + \" method\")\n }, $IncludeProcessor_process$32.$$arity = 4);\n return (Opal.def(self, '$handles?', $IncludeProcessor_handles$ques$33 = function(target) {\n var self = this;\n\n return true\n }, $IncludeProcessor_handles$ques$33.$$arity = 1), nil) && 'handles?';\n })($nesting[0], $$($nesting, 'Processor'), $nesting);\n (function($base, $parent_nesting) {\n var self = $module($base, 'IncludeProcessorDsl');\n\n var $nesting = [self].concat($parent_nesting), $IncludeProcessorDsl_handles$ques$34;\n\n \n self.$include($$($nesting, 'DocumentProcessorDsl'));\n \n Opal.def(self, '$handles?', $IncludeProcessorDsl_handles$ques$34 = function($a) {\n var $iter = $IncludeProcessorDsl_handles$ques$34.$$p, block = $iter || nil, $post_args, args, $b, self = this;\n if (self.handles_block == null) self.handles_block = nil;\n\n if ($iter) $IncludeProcessorDsl_handles$ques$34.$$p = null;\n \n \n if ($iter) $IncludeProcessorDsl_handles$ques$34.$$p = null;;\n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n args = $post_args;;\n if ((block !== nil)) {\n \n if ($truthy(args['$empty?']())) {\n } else {\n self.$raise($$$('::', 'ArgumentError'), \"\" + \"wrong number of arguments (given \" + (args.$size()) + \", expected 0)\")\n };\n return (self.handles_block = block);\n } else if ($truthy((($b = self['handles_block'], $b != null && $b !== nil) ? 'instance-variable' : nil))) {\n return self.handles_block.$call(args['$[]'](0))\n } else {\n return true\n };\n }, $IncludeProcessorDsl_handles$ques$34.$$arity = -1);\n })($nesting[0], $nesting);\n Opal.const_set($$($nesting, 'IncludeProcessor'), 'DSL', $$($nesting, 'IncludeProcessorDsl'));\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'DocinfoProcessor');\n\n var $nesting = [self].concat($parent_nesting), $DocinfoProcessor_initialize$35, $DocinfoProcessor_process$36;\n\n self.$$prototype.config = nil;\n \n \n Opal.def(self, '$initialize', $DocinfoProcessor_initialize$35 = function $$initialize(config) {\n var $a, $iter = $DocinfoProcessor_initialize$35.$$p, $yield = $iter || nil, self = this, $writer = nil;\n\n if ($iter) $DocinfoProcessor_initialize$35.$$p = null;\n \n \n if (config == null) {\n config = $hash2([], {});\n };\n $send(self, Opal.find_super_dispatcher(self, 'initialize', $DocinfoProcessor_initialize$35, false), [config], null);\n return ($truthy($a = self.config['$[]'](\"location\")) ? $a : (($writer = [\"location\", \"head\"]), $send(self.config, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer[\"length\"], 1)]));\n }, $DocinfoProcessor_initialize$35.$$arity = -1);\n return (Opal.def(self, '$process', $DocinfoProcessor_process$36 = function $$process(document) {\n var self = this;\n\n return self.$raise($$$('::', 'NotImplementedError'), \"\" + ($$($nesting, 'DocinfoProcessor')) + \" subclass \" + (self.$class()) + \" must implement the #\" + (\"process\") + \" method\")\n }, $DocinfoProcessor_process$36.$$arity = 1), nil) && 'process';\n })($nesting[0], $$($nesting, 'Processor'), $nesting);\n (function($base, $parent_nesting) {\n var self = $module($base, 'DocinfoProcessorDsl');\n\n var $nesting = [self].concat($parent_nesting), $DocinfoProcessorDsl_at_location$37;\n\n \n self.$include($$($nesting, 'DocumentProcessorDsl'));\n \n Opal.def(self, '$at_location', $DocinfoProcessorDsl_at_location$37 = function $$at_location(value) {\n var self = this;\n\n return self.$option(\"location\", value)\n }, $DocinfoProcessorDsl_at_location$37.$$arity = 1);\n })($nesting[0], $nesting);\n Opal.const_set($$($nesting, 'DocinfoProcessor'), 'DSL', $$($nesting, 'DocinfoProcessorDsl'));\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'BlockProcessor');\n\n var $nesting = [self].concat($parent_nesting), $BlockProcessor_initialize$38, $BlockProcessor_process$39;\n\n self.$$prototype.config = nil;\n \n self.$attr_accessor(\"name\");\n \n Opal.def(self, '$initialize', $BlockProcessor_initialize$38 = function $$initialize(name, config) {\n var $a, $iter = $BlockProcessor_initialize$38.$$p, $yield = $iter || nil, self = this, $case = nil, $writer = nil;\n\n if ($iter) $BlockProcessor_initialize$38.$$p = null;\n \n \n if (name == null) {\n name = nil;\n };\n \n if (config == null) {\n config = $hash2([], {});\n };\n $send(self, Opal.find_super_dispatcher(self, 'initialize', $BlockProcessor_initialize$38, false), [config], null);\n self.name = ($truthy($a = name) ? $a : self.config['$[]'](\"name\"));\n $case = self.config['$[]'](\"contexts\");\n if ($$$('::', 'NilClass')['$===']($case)) {($truthy($a = self.config['$[]'](\"contexts\")) ? $a : (($writer = [\"contexts\", [\"open\", \"paragraph\"].$to_set()]), $send(self.config, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer[\"length\"], 1)]))}\n else if ($$$('::', 'Symbol')['$===']($case)) {\n $writer = [\"contexts\", [self.config['$[]'](\"contexts\")].$to_set()];\n $send(self.config, '[]=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];}\n else {\n $writer = [\"contexts\", self.config['$[]'](\"contexts\").$to_set()];\n $send(self.config, '[]=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];};\n return ($truthy($a = self.config['$[]'](\"content_model\")) ? $a : (($writer = [\"content_model\", \"compound\"]), $send(self.config, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer[\"length\"], 1)]));\n }, $BlockProcessor_initialize$38.$$arity = -1);\n return (Opal.def(self, '$process', $BlockProcessor_process$39 = function $$process(parent, reader, attributes) {\n var self = this;\n\n return self.$raise($$$('::', 'NotImplementedError'), \"\" + ($$($nesting, 'BlockProcessor')) + \" subclass \" + (self.$class()) + \" must implement the #\" + (\"process\") + \" method\")\n }, $BlockProcessor_process$39.$$arity = 3), nil) && 'process';\n })($nesting[0], $$($nesting, 'Processor'), $nesting);\n (function($base, $parent_nesting) {\n var self = $module($base, 'BlockProcessorDsl');\n\n var $nesting = [self].concat($parent_nesting), $BlockProcessorDsl_contexts$40;\n\n \n self.$include($$($nesting, 'SyntaxProcessorDsl'));\n \n Opal.def(self, '$contexts', $BlockProcessorDsl_contexts$40 = function $$contexts($a) {\n var $post_args, value, self = this;\n\n \n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n value = $post_args;;\n return self.$option(\"contexts\", value.$flatten().$to_set());\n }, $BlockProcessorDsl_contexts$40.$$arity = -1);\n Opal.alias(self, \"on_contexts\", \"contexts\");\n Opal.alias(self, \"on_context\", \"contexts\");\n Opal.alias(self, \"bind_to\", \"contexts\");\n })($nesting[0], $nesting);\n Opal.const_set($$($nesting, 'BlockProcessor'), 'DSL', $$($nesting, 'BlockProcessorDsl'));\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'MacroProcessor');\n\n var $nesting = [self].concat($parent_nesting), $MacroProcessor_initialize$41, $MacroProcessor_process$42;\n\n self.$$prototype.config = nil;\n \n self.$attr_accessor(\"name\");\n \n Opal.def(self, '$initialize', $MacroProcessor_initialize$41 = function $$initialize(name, config) {\n var $a, $iter = $MacroProcessor_initialize$41.$$p, $yield = $iter || nil, self = this, $writer = nil;\n\n if ($iter) $MacroProcessor_initialize$41.$$p = null;\n \n \n if (name == null) {\n name = nil;\n };\n \n if (config == null) {\n config = $hash2([], {});\n };\n $send(self, Opal.find_super_dispatcher(self, 'initialize', $MacroProcessor_initialize$41, false), [config], null);\n self.name = ($truthy($a = name) ? $a : self.config['$[]'](\"name\"));\n return ($truthy($a = self.config['$[]'](\"content_model\")) ? $a : (($writer = [\"content_model\", \"attributes\"]), $send(self.config, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer[\"length\"], 1)]));\n }, $MacroProcessor_initialize$41.$$arity = -1);\n return (Opal.def(self, '$process', $MacroProcessor_process$42 = function $$process(parent, target, attributes) {\n var self = this;\n\n return self.$raise($$$('::', 'NotImplementedError'), \"\" + ($$($nesting, 'MacroProcessor')) + \" subclass \" + (self.$class()) + \" must implement the #\" + (\"process\") + \" method\")\n }, $MacroProcessor_process$42.$$arity = 3), nil) && 'process';\n })($nesting[0], $$($nesting, 'Processor'), $nesting);\n (function($base, $parent_nesting) {\n var self = $module($base, 'MacroProcessorDsl');\n\n var $nesting = [self].concat($parent_nesting), $MacroProcessorDsl_resolve_attributes$43;\n\n \n self.$include($$($nesting, 'SyntaxProcessorDsl'));\n \n Opal.def(self, '$resolve_attributes', $MacroProcessorDsl_resolve_attributes$43 = function $$resolve_attributes($a) {\n var $post_args, args, $b, $iter = $MacroProcessorDsl_resolve_attributes$43.$$p, $yield = $iter || nil, self = this, $zuper = nil, $zuper_i = nil, $zuper_ii = nil;\n\n if ($iter) $MacroProcessorDsl_resolve_attributes$43.$$p = null;\n // Prepare super implicit arguments\n for($zuper_i = 0, $zuper_ii = arguments.length, $zuper = new Array($zuper_ii); $zuper_i < $zuper_ii; $zuper_i++) {\n $zuper[$zuper_i] = arguments[$zuper_i];\n }\n \n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n args = $post_args;;\n if ($truthy((($b = args.$size()['$=='](1)) ? args['$[]'](0)['$!']() : args.$size()['$=='](1)))) {\n return self.$option(\"content_model\", \"text\")\n } else {\n \n $send(self, Opal.find_super_dispatcher(self, 'resolve_attributes', $MacroProcessorDsl_resolve_attributes$43, false), $zuper, $iter);\n return self.$option(\"content_model\", \"attributes\");\n };\n }, $MacroProcessorDsl_resolve_attributes$43.$$arity = -1);\n Opal.alias(self, \"resolves_attributes\", \"resolve_attributes\");\n })($nesting[0], $nesting);\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'BlockMacroProcessor');\n\n var $nesting = [self].concat($parent_nesting), $BlockMacroProcessor_name$44;\n\n self.$$prototype.name = nil;\n return (Opal.def(self, '$name', $BlockMacroProcessor_name$44 = function $$name() {\n var self = this;\n\n \n if ($truthy($$($nesting, 'MacroNameRx')['$match?'](self.name.$to_s()))) {\n } else {\n self.$raise($$$('::', 'ArgumentError'), \"\" + \"invalid name for block macro: \" + (self.name))\n };\n return self.name;\n }, $BlockMacroProcessor_name$44.$$arity = 0), nil) && 'name'\n })($nesting[0], $$($nesting, 'MacroProcessor'), $nesting);\n Opal.const_set($$($nesting, 'BlockMacroProcessor'), 'DSL', $$($nesting, 'MacroProcessorDsl'));\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'InlineMacroProcessor');\n\n var $nesting = [self].concat($parent_nesting), $InlineMacroProcessor_regexp$45, $InlineMacroProcessor_resolve_regexp$46;\n\n self.$$prototype.config = self.$$prototype.name = nil;\n \n (Opal.class_variable_set($nesting[0], '@@rx_cache', $hash2([], {})));\n \n Opal.def(self, '$regexp', $InlineMacroProcessor_regexp$45 = function $$regexp() {\n var $a, self = this, $writer = nil;\n\n return ($truthy($a = self.config['$[]'](\"regexp\")) ? $a : (($writer = [\"regexp\", self.$resolve_regexp(self.name.$to_s(), self.config['$[]'](\"format\"))]), $send(self.config, '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer[\"length\"], 1)]))\n }, $InlineMacroProcessor_regexp$45.$$arity = 0);\n return (Opal.def(self, '$resolve_regexp', $InlineMacroProcessor_resolve_regexp$46 = function $$resolve_regexp(name, format) {\n var $a, $b, self = this, $writer = nil;\n\n \n if ($truthy($$($nesting, 'MacroNameRx')['$match?'](name))) {\n } else {\n self.$raise($$$('::', 'ArgumentError'), \"\" + \"invalid name for inline macro: \" + (name))\n };\n return ($truthy($a = (($b = $nesting[0].$$cvars['@@rx_cache']) == null ? nil : $b)['$[]']([name, format])) ? $a : (($writer = [[name, format], new RegExp(\"\" + \"\\\\\\\\?\" + (name) + \":\" + ((function() {if (format['$=='](\"short\")) {\n return \"(){0}\"\n } else {\n return \"(\\\\S+?)\"\n }; return nil; })()) + \"\\\\[(|\" + ($$($nesting, 'CC_ANY')) + \"*?[^\\\\\\\\])\\\\]\")]), $send((($b = $nesting[0].$$cvars['@@rx_cache']) == null ? nil : $b), '[]=', Opal.to_a($writer)), $writer[$rb_minus($writer[\"length\"], 1)]));\n }, $InlineMacroProcessor_resolve_regexp$46.$$arity = 2), nil) && 'resolve_regexp';\n })($nesting[0], $$($nesting, 'MacroProcessor'), $nesting);\n (function($base, $parent_nesting) {\n var self = $module($base, 'InlineMacroProcessorDsl');\n\n var $nesting = [self].concat($parent_nesting), $InlineMacroProcessorDsl_format$47, $InlineMacroProcessorDsl_match$48;\n\n \n self.$include($$($nesting, 'MacroProcessorDsl'));\n \n Opal.def(self, '$format', $InlineMacroProcessorDsl_format$47 = function $$format(value) {\n var self = this;\n\n return self.$option(\"format\", value)\n }, $InlineMacroProcessorDsl_format$47.$$arity = 1);\n Opal.alias(self, \"match_format\", \"format\");\n Opal.alias(self, \"using_format\", \"format\");\n \n Opal.def(self, '$match', $InlineMacroProcessorDsl_match$48 = function $$match(value) {\n var self = this;\n\n return self.$option(\"regexp\", value)\n }, $InlineMacroProcessorDsl_match$48.$$arity = 1);\n })($nesting[0], $nesting);\n Opal.const_set($$($nesting, 'InlineMacroProcessor'), 'DSL', $$($nesting, 'InlineMacroProcessorDsl'));\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'Extension');\n\n var $nesting = [self].concat($parent_nesting), $Extension_initialize$49;\n\n \n self.$attr_reader(\"kind\");\n self.$attr_reader(\"config\");\n self.$attr_reader(\"instance\");\n return (Opal.def(self, '$initialize', $Extension_initialize$49 = function $$initialize(kind, instance, config) {\n var self = this;\n\n \n self.kind = kind;\n self.instance = instance;\n return (self.config = config);\n }, $Extension_initialize$49.$$arity = 3), nil) && 'initialize';\n })($nesting[0], null, $nesting);\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'ProcessorExtension');\n\n var $nesting = [self].concat($parent_nesting), $ProcessorExtension_initialize$50;\n\n \n self.$attr_reader(\"process_method\");\n return (Opal.def(self, '$initialize', $ProcessorExtension_initialize$50 = function $$initialize(kind, instance, process_method) {\n var $a, $iter = $ProcessorExtension_initialize$50.$$p, $yield = $iter || nil, self = this;\n\n if ($iter) $ProcessorExtension_initialize$50.$$p = null;\n \n \n if (process_method == null) {\n process_method = nil;\n };\n $send(self, Opal.find_super_dispatcher(self, 'initialize', $ProcessorExtension_initialize$50, false), [kind, instance, instance.$config()], null);\n return (self.process_method = ($truthy($a = process_method) ? $a : instance.$method(\"process\")));\n }, $ProcessorExtension_initialize$50.$$arity = -3), nil) && 'initialize';\n })($nesting[0], $$($nesting, 'Extension'), $nesting);\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'Group');\n\n var $nesting = [self].concat($parent_nesting), $Group_activate$52;\n\n \n (function(self, $parent_nesting) {\n var $nesting = [self].concat($parent_nesting), $register$51;\n\n return (Opal.def(self, '$register', $register$51 = function $$register(name) {\n var self = this;\n\n \n \n if (name == null) {\n name = nil;\n };\n return $$($nesting, 'Extensions').$register(name, self);\n }, $register$51.$$arity = -1), nil) && 'register'\n })(Opal.get_singleton_class(self), $nesting);\n return (Opal.def(self, '$activate', $Group_activate$52 = function $$activate(registry) {\n var self = this;\n\n return self.$raise($$$('::', 'NotImplementedError'))\n }, $Group_activate$52.$$arity = 1), nil) && 'activate';\n })($nesting[0], null, $nesting);\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'Registry');\n\n var $nesting = [self].concat($parent_nesting), $Registry_initialize$53, $Registry_activate$54, $Registry_preprocessor$56, $Registry_preprocessors$ques$57, $Registry_preprocessors$58, $Registry_tree_processor$59, $Registry_tree_processors$ques$60, $Registry_tree_processors$61, $Registry_postprocessor$62, $Registry_postprocessors$ques$63, $Registry_postprocessors$64, $Registry_include_processor$65, $Registry_include_processors$ques$66, $Registry_include_processors$67, $Registry_docinfo_processor$68, $Registry_docinfo_processors$ques$69, $Registry_docinfo_processors$71, $Registry_block$73, $Registry_blocks$ques$74, $Registry_registered_for_block$ques$75, $Registry_find_block_extension$76, $Registry_block_macro$77, $Registry_block_macros$ques$78, $Registry_registered_for_block_macro$ques$79, $Registry_find_block_macro_extension$80, $Registry_inline_macro$81, $Registry_inline_macros$ques$82, $Registry_registered_for_inline_macro$ques$83, $Registry_find_inline_macro_extension$84, $Registry_inline_macros$85, $Registry_prefer$86, $Registry_add_document_processor$87, $Registry_add_syntax_processor$89, $Registry_resolve_args$91, $Registry_as_symbol$92;\n\n self.$$prototype.groups = self.$$prototype.preprocessor_extensions = self.$$prototype.tree_processor_extensions = self.$$prototype.postprocessor_extensions = self.$$prototype.include_processor_extensions = self.$$prototype.docinfo_processor_extensions = self.$$prototype.block_extensions = self.$$prototype.block_macro_extensions = self.$$prototype.inline_macro_extensions = nil;\n \n self.$attr_reader(\"document\");\n self.$attr_reader(\"groups\");\n \n Opal.def(self, '$initialize', $Registry_initialize$53 = function $$initialize(groups) {\n var self = this;\n\n \n \n if (groups == null) {\n groups = $hash2([], {});\n };\n self.groups = groups;\n self.preprocessor_extensions = (self.tree_processor_extensions = (self.postprocessor_extensions = (self.include_processor_extensions = (self.docinfo_processor_extensions = (self.block_extensions = (self.block_macro_extensions = (self.inline_macro_extensions = nil)))))));\n return (self.document = nil);\n }, $Registry_initialize$53.$$arity = -1);\n \n Opal.def(self, '$activate', $Registry_activate$54 = function $$activate(document) {\n var $$55, self = this, ext_groups = nil;\n\n \n self.document = document;\n if ($truthy((ext_groups = $rb_plus($$($nesting, 'Extensions').$groups().$values(), self.groups.$values()))['$empty?']())) {\n } else {\n $send(ext_groups, 'each', [], ($$55 = function(group){var self = $$55.$$s || this, $case = nil;\n\n \n \n if (group == null) {\n group = nil;\n };\n return (function() {$case = group;\n if ($$$('::', 'Proc')['$===']($case)) {return (function() {$case = group.$arity();\n if ((0)['$===']($case) || (-1)['$===']($case)) {return $send(self, 'instance_exec', [], group.$to_proc())}\n else if ((1)['$===']($case)) {return group.$call(self)}\n else { return nil }})()}\n else if ($$$('::', 'Class')['$===']($case)) {return group.$new().$activate(self)}\n else {return group.$activate(self)}})();}, $$55.$$s = self, $$55.$$arity = 1, $$55))\n };\n return self;\n }, $Registry_activate$54.$$arity = 1);\n \n Opal.def(self, '$preprocessor', $Registry_preprocessor$56 = function $$preprocessor($a) {\n var $iter = $Registry_preprocessor$56.$$p, block = $iter || nil, $post_args, args, self = this;\n\n if ($iter) $Registry_preprocessor$56.$$p = null;\n \n \n if ($iter) $Registry_preprocessor$56.$$p = null;;\n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n args = $post_args;;\n return $send(self, 'add_document_processor', [\"preprocessor\", args], block.$to_proc());\n }, $Registry_preprocessor$56.$$arity = -1);\n \n Opal.def(self, '$preprocessors?', $Registry_preprocessors$ques$57 = function() {\n var self = this;\n\n return self.preprocessor_extensions['$!']()['$!']()\n }, $Registry_preprocessors$ques$57.$$arity = 0);\n \n Opal.def(self, '$preprocessors', $Registry_preprocessors$58 = function $$preprocessors() {\n var self = this;\n\n return self.preprocessor_extensions\n }, $Registry_preprocessors$58.$$arity = 0);\n \n Opal.def(self, '$tree_processor', $Registry_tree_processor$59 = function $$tree_processor($a) {\n var $iter = $Registry_tree_processor$59.$$p, block = $iter || nil, $post_args, args, self = this;\n\n if ($iter) $Registry_tree_processor$59.$$p = null;\n \n \n if ($iter) $Registry_tree_processor$59.$$p = null;;\n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n args = $post_args;;\n return $send(self, 'add_document_processor', [\"tree_processor\", args], block.$to_proc());\n }, $Registry_tree_processor$59.$$arity = -1);\n \n Opal.def(self, '$tree_processors?', $Registry_tree_processors$ques$60 = function() {\n var self = this;\n\n return self.tree_processor_extensions['$!']()['$!']()\n }, $Registry_tree_processors$ques$60.$$arity = 0);\n \n Opal.def(self, '$tree_processors', $Registry_tree_processors$61 = function $$tree_processors() {\n var self = this;\n\n return self.tree_processor_extensions\n }, $Registry_tree_processors$61.$$arity = 0);\n Opal.alias(self, \"treeprocessor\", \"tree_processor\");\n Opal.alias(self, \"treeprocessors?\", \"tree_processors?\");\n Opal.alias(self, \"treeprocessors\", \"tree_processors\");\n \n Opal.def(self, '$postprocessor', $Registry_postprocessor$62 = function $$postprocessor($a) {\n var $iter = $Registry_postprocessor$62.$$p, block = $iter || nil, $post_args, args, self = this;\n\n if ($iter) $Registry_postprocessor$62.$$p = null;\n \n \n if ($iter) $Registry_postprocessor$62.$$p = null;;\n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n args = $post_args;;\n return $send(self, 'add_document_processor', [\"postprocessor\", args], block.$to_proc());\n }, $Registry_postprocessor$62.$$arity = -1);\n \n Opal.def(self, '$postprocessors?', $Registry_postprocessors$ques$63 = function() {\n var self = this;\n\n return self.postprocessor_extensions['$!']()['$!']()\n }, $Registry_postprocessors$ques$63.$$arity = 0);\n \n Opal.def(self, '$postprocessors', $Registry_postprocessors$64 = function $$postprocessors() {\n var self = this;\n\n return self.postprocessor_extensions\n }, $Registry_postprocessors$64.$$arity = 0);\n \n Opal.def(self, '$include_processor', $Registry_include_processor$65 = function $$include_processor($a) {\n var $iter = $Registry_include_processor$65.$$p, block = $iter || nil, $post_args, args, self = this;\n\n if ($iter) $Registry_include_processor$65.$$p = null;\n \n \n if ($iter) $Registry_include_processor$65.$$p = null;;\n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n args = $post_args;;\n return $send(self, 'add_document_processor', [\"include_processor\", args], block.$to_proc());\n }, $Registry_include_processor$65.$$arity = -1);\n \n Opal.def(self, '$include_processors?', $Registry_include_processors$ques$66 = function() {\n var self = this;\n\n return self.include_processor_extensions['$!']()['$!']()\n }, $Registry_include_processors$ques$66.$$arity = 0);\n \n Opal.def(self, '$include_processors', $Registry_include_processors$67 = function $$include_processors() {\n var self = this;\n\n return self.include_processor_extensions\n }, $Registry_include_processors$67.$$arity = 0);\n \n Opal.def(self, '$docinfo_processor', $Registry_docinfo_processor$68 = function $$docinfo_processor($a) {\n var $iter = $Registry_docinfo_processor$68.$$p, block = $iter || nil, $post_args, args, self = this;\n\n if ($iter) $Registry_docinfo_processor$68.$$p = null;\n \n \n if ($iter) $Registry_docinfo_processor$68.$$p = null;;\n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n args = $post_args;;\n return $send(self, 'add_document_processor', [\"docinfo_processor\", args], block.$to_proc());\n }, $Registry_docinfo_processor$68.$$arity = -1);\n \n Opal.def(self, '$docinfo_processors?', $Registry_docinfo_processors$ques$69 = function(location) {\n var $$70, self = this;\n\n \n \n if (location == null) {\n location = nil;\n };\n if ($truthy(self.docinfo_processor_extensions)) {\n if ($truthy(location)) {\n return $send(self.docinfo_processor_extensions, 'any?', [], ($$70 = function(ext){var self = $$70.$$s || this;\n\n \n \n if (ext == null) {\n ext = nil;\n };\n return ext.$config()['$[]'](\"location\")['$=='](location);}, $$70.$$s = self, $$70.$$arity = 1, $$70))\n } else {\n return true\n }\n } else {\n return false\n };\n }, $Registry_docinfo_processors$ques$69.$$arity = -1);\n \n Opal.def(self, '$docinfo_processors', $Registry_docinfo_processors$71 = function $$docinfo_processors(location) {\n var $$72, self = this;\n\n \n \n if (location == null) {\n location = nil;\n };\n if ($truthy(self.docinfo_processor_extensions)) {\n if ($truthy(location)) {\n return $send(self.docinfo_processor_extensions, 'select', [], ($$72 = function(ext){var self = $$72.$$s || this;\n\n \n \n if (ext == null) {\n ext = nil;\n };\n return ext.$config()['$[]'](\"location\")['$=='](location);}, $$72.$$s = self, $$72.$$arity = 1, $$72))\n } else {\n return self.docinfo_processor_extensions\n }\n } else {\n return nil\n };\n }, $Registry_docinfo_processors$71.$$arity = -1);\n \n Opal.def(self, '$block', $Registry_block$73 = function $$block($a) {\n var $iter = $Registry_block$73.$$p, block = $iter || nil, $post_args, args, self = this;\n\n if ($iter) $Registry_block$73.$$p = null;\n \n \n if ($iter) $Registry_block$73.$$p = null;;\n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n args = $post_args;;\n return $send(self, 'add_syntax_processor', [\"block\", args], block.$to_proc());\n }, $Registry_block$73.$$arity = -1);\n \n Opal.def(self, '$blocks?', $Registry_blocks$ques$74 = function() {\n var self = this;\n\n return self.block_extensions['$!']()['$!']()\n }, $Registry_blocks$ques$74.$$arity = 0);\n \n Opal.def(self, '$registered_for_block?', $Registry_registered_for_block$ques$75 = function(name, context) {\n var self = this, ext = nil;\n\n if ($truthy((ext = self.block_extensions['$[]'](name.$to_sym())))) {\n if ($truthy(ext.$config()['$[]'](\"contexts\")['$include?'](context))) {\n return ext\n } else {\n return false\n }\n } else {\n return false\n }\n }, $Registry_registered_for_block$ques$75.$$arity = 2);\n \n Opal.def(self, '$find_block_extension', $Registry_find_block_extension$76 = function $$find_block_extension(name) {\n var self = this;\n\n return self.block_extensions['$[]'](name.$to_sym())\n }, $Registry_find_block_extension$76.$$arity = 1);\n \n Opal.def(self, '$block_macro', $Registry_block_macro$77 = function $$block_macro($a) {\n var $iter = $Registry_block_macro$77.$$p, block = $iter || nil, $post_args, args, self = this;\n\n if ($iter) $Registry_block_macro$77.$$p = null;\n \n \n if ($iter) $Registry_block_macro$77.$$p = null;;\n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n args = $post_args;;\n return $send(self, 'add_syntax_processor', [\"block_macro\", args], block.$to_proc());\n }, $Registry_block_macro$77.$$arity = -1);\n \n Opal.def(self, '$block_macros?', $Registry_block_macros$ques$78 = function() {\n var self = this;\n\n return self.block_macro_extensions['$!']()['$!']()\n }, $Registry_block_macros$ques$78.$$arity = 0);\n \n Opal.def(self, '$registered_for_block_macro?', $Registry_registered_for_block_macro$ques$79 = function(name) {\n var self = this, ext = nil;\n\n if ($truthy((ext = self.block_macro_extensions['$[]'](name.$to_sym())))) {\n return ext\n } else {\n return false\n }\n }, $Registry_registered_for_block_macro$ques$79.$$arity = 1);\n \n Opal.def(self, '$find_block_macro_extension', $Registry_find_block_macro_extension$80 = function $$find_block_macro_extension(name) {\n var self = this;\n\n return self.block_macro_extensions['$[]'](name.$to_sym())\n }, $Registry_find_block_macro_extension$80.$$arity = 1);\n \n Opal.def(self, '$inline_macro', $Registry_inline_macro$81 = function $$inline_macro($a) {\n var $iter = $Registry_inline_macro$81.$$p, block = $iter || nil, $post_args, args, self = this;\n\n if ($iter) $Registry_inline_macro$81.$$p = null;\n \n \n if ($iter) $Registry_inline_macro$81.$$p = null;;\n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n args = $post_args;;\n return $send(self, 'add_syntax_processor', [\"inline_macro\", args], block.$to_proc());\n }, $Registry_inline_macro$81.$$arity = -1);\n \n Opal.def(self, '$inline_macros?', $Registry_inline_macros$ques$82 = function() {\n var self = this;\n\n return self.inline_macro_extensions['$!']()['$!']()\n }, $Registry_inline_macros$ques$82.$$arity = 0);\n \n Opal.def(self, '$registered_for_inline_macro?', $Registry_registered_for_inline_macro$ques$83 = function(name) {\n var self = this, ext = nil;\n\n if ($truthy((ext = self.inline_macro_extensions['$[]'](name.$to_sym())))) {\n return ext\n } else {\n return false\n }\n }, $Registry_registered_for_inline_macro$ques$83.$$arity = 1);\n \n Opal.def(self, '$find_inline_macro_extension', $Registry_find_inline_macro_extension$84 = function $$find_inline_macro_extension(name) {\n var self = this;\n\n return self.inline_macro_extensions['$[]'](name.$to_sym())\n }, $Registry_find_inline_macro_extension$84.$$arity = 1);\n \n Opal.def(self, '$inline_macros', $Registry_inline_macros$85 = function $$inline_macros() {\n var self = this;\n\n return self.inline_macro_extensions.$values()\n }, $Registry_inline_macros$85.$$arity = 0);\n \n Opal.def(self, '$prefer', $Registry_prefer$86 = function $$prefer($a) {\n var $iter = $Registry_prefer$86.$$p, block = $iter || nil, $post_args, args, self = this, extension = nil, arg0 = nil, extensions_store = nil;\n\n if ($iter) $Registry_prefer$86.$$p = null;\n \n \n if ($iter) $Registry_prefer$86.$$p = null;;\n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n args = $post_args;;\n extension = (function() {if ($truthy($$($nesting, 'ProcessorExtension')['$===']((arg0 = args.$shift())))) {\n return arg0\n } else {\n \n return $send(self, 'send', [arg0].concat(Opal.to_a(args)), block.$to_proc());\n }; return nil; })();\n extensions_store = self.$instance_variable_get((((\"\" + \"@\") + (extension.$kind())) + \"_extensions\").$to_sym());\n extensions_store.$unshift(extensions_store.$delete(extension));\n return extension;\n }, $Registry_prefer$86.$$arity = -1);\n self.$private();\n \n Opal.def(self, '$add_document_processor', $Registry_add_document_processor$87 = function $$add_document_processor(kind, args) {\n var $iter = $Registry_add_document_processor$87.$$p, block = $iter || nil, $$88, $a, $b, $c, self = this, kind_name = nil, kind_class_symbol = nil, kind_class = nil, kind_java_class = nil, kind_store = nil, extension = nil, config = nil, processor = nil, processor_class = nil, processor_instance = nil;\n\n if ($iter) $Registry_add_document_processor$87.$$p = null;\n \n \n if ($iter) $Registry_add_document_processor$87.$$p = null;;\n kind_name = kind.$to_s().$tr(\"_\", \" \");\n kind_class_symbol = $send(kind_name.$split(), 'map', [], ($$88 = function(it){var self = $$88.$$s || this;\n\n \n \n if (it == null) {\n it = nil;\n };\n return it.$capitalize();}, $$88.$$s = self, $$88.$$arity = 1, $$88)).$join().$to_sym();\n kind_class = $$($nesting, 'Extensions').$const_get(kind_class_symbol, false);\n kind_java_class = (function() {if ($truthy((($a = $$$('::', 'AsciidoctorJ', 'skip_raise')) ? 'constant' : nil))) {\n \n return $$$($$$('::', 'AsciidoctorJ'), 'Extensions').$const_get(kind_class_symbol, false);\n } else {\n return nil\n }; return nil; })();\n kind_store = ($truthy($b = self.$instance_variable_get((((\"\" + \"@\") + (kind)) + \"_extensions\").$to_sym())) ? $b : self.$instance_variable_set((((\"\" + \"@\") + (kind)) + \"_extensions\").$to_sym(), []));\n extension = (function() {if ((block !== nil)) {\n \n config = self.$resolve_args(args, 1);\n (processor = kind_class.$new(config)).$singleton_class().$enable_dsl();\n if (block.$arity()['$=='](0)) {\n $send(processor, 'instance_exec', [], block.$to_proc())\n } else {\n Opal.yield1(block, processor)\n };\n if ($truthy(processor['$process_block_given?']())) {\n } else {\n self.$raise($$$('::', 'ArgumentError'), \"\" + \"No block specified to process \" + (kind_name) + \" extension at \" + (block.$source_location()))\n };\n processor.$freeze();\n return $$($nesting, 'ProcessorExtension').$new(kind, processor);\n } else {\n \n $c = self.$resolve_args(args, 2), $b = Opal.to_ary($c), (processor = ($b[0] == null ? nil : $b[0])), (config = ($b[1] == null ? nil : $b[1])), $c;\n if ($truthy((processor_class = $$($nesting, 'Helpers').$resolve_class(processor)))) {\n \n if ($truthy(($truthy($b = $rb_lt(processor_class, kind_class)) ? $b : ($truthy($c = kind_java_class) ? $rb_lt(processor_class, kind_java_class) : $c)))) {\n } else {\n self.$raise($$$('::', 'ArgumentError'), \"\" + \"Invalid type for \" + (kind_name) + \" extension: \" + (processor))\n };\n processor_instance = processor_class.$new(config);\n processor_instance.$freeze();\n return $$($nesting, 'ProcessorExtension').$new(kind, processor_instance);\n } else if ($truthy(($truthy($b = kind_class['$==='](processor)) ? $b : ($truthy($c = kind_java_class) ? kind_java_class['$==='](processor) : $c)))) {\n \n processor.$update_config(config);\n processor.$freeze();\n return $$($nesting, 'ProcessorExtension').$new(kind, processor);\n } else {\n return self.$raise($$$('::', 'ArgumentError'), \"\" + \"Invalid arguments specified for registering \" + (kind_name) + \" extension: \" + (args))\n };\n }; return nil; })();\n if (extension.$config()['$[]'](\"position\")['$=='](\">>\")) {\n \n kind_store.$unshift(extension);\n } else {\n \n kind_store['$<<'](extension);\n };\n return extension;\n }, $Registry_add_document_processor$87.$$arity = 2);\n \n Opal.def(self, '$add_syntax_processor', $Registry_add_syntax_processor$89 = function $$add_syntax_processor(kind, args) {\n var $iter = $Registry_add_syntax_processor$89.$$p, block = $iter || nil, $$90, $a, $b, $c, self = this, kind_name = nil, kind_class_symbol = nil, kind_class = nil, kind_java_class = nil, kind_store = nil, name = nil, config = nil, processor = nil, $writer = nil, processor_class = nil, processor_instance = nil;\n\n if ($iter) $Registry_add_syntax_processor$89.$$p = null;\n \n \n if ($iter) $Registry_add_syntax_processor$89.$$p = null;;\n kind_name = kind.$to_s().$tr(\"_\", \" \");\n kind_class_symbol = $send(kind_name.$split(), 'map', [], ($$90 = function(it){var self = $$90.$$s || this;\n\n \n \n if (it == null) {\n it = nil;\n };\n return it.$capitalize();}, $$90.$$s = self, $$90.$$arity = 1, $$90))['$<<'](\"Processor\").$join().$to_sym();\n kind_class = $$($nesting, 'Extensions').$const_get(kind_class_symbol, false);\n kind_java_class = (function() {if ($truthy((($a = $$$('::', 'AsciidoctorJ', 'skip_raise')) ? 'constant' : nil))) {\n \n return $$$($$$('::', 'AsciidoctorJ'), 'Extensions').$const_get(kind_class_symbol, false);\n } else {\n return nil\n }; return nil; })();\n kind_store = ($truthy($b = self.$instance_variable_get((((\"\" + \"@\") + (kind)) + \"_extensions\").$to_sym())) ? $b : self.$instance_variable_set((((\"\" + \"@\") + (kind)) + \"_extensions\").$to_sym(), $hash2([], {})));\n if ((block !== nil)) {\n \n $c = self.$resolve_args(args, 2), $b = Opal.to_ary($c), (name = ($b[0] == null ? nil : $b[0])), (config = ($b[1] == null ? nil : $b[1])), $c;\n (processor = kind_class.$new(self.$as_symbol(name), config)).$singleton_class().$enable_dsl();\n if (block.$arity()['$=='](0)) {\n $send(processor, 'instance_exec', [], block.$to_proc())\n } else {\n Opal.yield1(block, processor)\n };\n if ($truthy((name = self.$as_symbol(processor.$name())))) {\n } else {\n self.$raise($$$('::', 'ArgumentError'), \"\" + \"No name specified for \" + (kind_name) + \" extension at \" + (block.$source_location()))\n };\n if ($truthy(processor['$process_block_given?']())) {\n } else {\n self.$raise($$$('::', 'NoMethodError'), \"\" + \"No block specified to process \" + (kind_name) + \" extension at \" + (block.$source_location()))\n };\n processor.$freeze();\n \n $writer = [name, $$($nesting, 'ProcessorExtension').$new(kind, processor)];\n $send(kind_store, '[]=', Opal.to_a($writer));\n return $writer[$rb_minus($writer[\"length\"], 1)];;\n } else {\n \n $c = self.$resolve_args(args, 3), $b = Opal.to_ary($c), (processor = ($b[0] == null ? nil : $b[0])), (name = ($b[1] == null ? nil : $b[1])), (config = ($b[2] == null ? nil : $b[2])), $c;\n if ($truthy((processor_class = $$($nesting, 'Helpers').$resolve_class(processor)))) {\n \n if ($truthy(($truthy($b = $rb_lt(processor_class, kind_class)) ? $b : ($truthy($c = kind_java_class) ? $rb_lt(processor_class, kind_java_class) : $c)))) {\n } else {\n self.$raise($$$('::', 'ArgumentError'), \"\" + \"Class specified for \" + (kind_name) + \" extension does not inherit from \" + (kind_class) + \": \" + (processor))\n };\n processor_instance = processor_class.$new(self.$as_symbol(name), config);\n if ($truthy((name = self.$as_symbol(processor_instance.$name())))) {\n } else {\n self.$raise($$$('::', 'ArgumentError'), \"\" + \"No name specified for \" + (kind_name) + \" extension: \" + (processor))\n };\n processor_instance.$freeze();\n \n $writer = [name, $$($nesting, 'ProcessorExtension').$new(kind, processor_instance)];\n $send(kind_store, '[]=', Opal.to_a($writer));\n return $writer[$rb_minus($writer[\"length\"], 1)];;\n } else if ($truthy(($truthy($b = kind_class['$==='](processor)) ? $b : ($truthy($c = kind_java_class) ? kind_java_class['$==='](processor) : $c)))) {\n \n processor.$update_config(config);\n if ($truthy((name = (function() {if ($truthy(name)) {\n \n \n $writer = [self.$as_symbol(name)];\n $send(processor, 'name=', Opal.to_a($writer));\n return $writer[$rb_minus($writer[\"length\"], 1)];;\n } else {\n \n return self.$as_symbol(processor.$name());\n }; return nil; })()))) {\n } else {\n self.$raise($$$('::', 'ArgumentError'), \"\" + \"No name specified for \" + (kind_name) + \" extension: \" + (processor))\n };\n processor.$freeze();\n \n $writer = [name, $$($nesting, 'ProcessorExtension').$new(kind, processor)];\n $send(kind_store, '[]=', Opal.to_a($writer));\n return $writer[$rb_minus($writer[\"length\"], 1)];;\n } else {\n return self.$raise($$$('::', 'ArgumentError'), \"\" + \"Invalid arguments specified for registering \" + (kind_name) + \" extension: \" + (args))\n };\n };\n }, $Registry_add_syntax_processor$89.$$arity = 2);\n \n Opal.def(self, '$resolve_args', $Registry_resolve_args$91 = function $$resolve_args(args, expect) {\n var self = this, opts = nil, missing = nil;\n\n \n opts = (function() {if ($truthy($$$('::', 'Hash')['$==='](args['$[]'](-1)))) {\n return args.$pop()\n } else {\n return $hash2([], {})\n }; return nil; })();\n if (expect['$=='](1)) {\n return opts};\n if ($truthy($rb_gt((missing = $rb_minus($rb_minus(expect, 1), args.$size())), 0))) {\n args = $rb_plus(args, $$$('::', 'Array').$new(missing))\n } else if ($truthy($rb_lt(missing, 0))) {\n args.$pop(missing['$-@']())};\n args['$<<'](opts);\n return args;\n }, $Registry_resolve_args$91.$$arity = 2);\n return (Opal.def(self, '$as_symbol', $Registry_as_symbol$92 = function $$as_symbol(name) {\n var self = this;\n\n if ($truthy(name)) {\n return name.$to_sym()\n } else {\n return nil\n }\n }, $Registry_as_symbol$92.$$arity = 1), nil) && 'as_symbol';\n })($nesting[0], null, $nesting);\n (function(self, $parent_nesting) {\n var $nesting = [self].concat($parent_nesting), $generate_name$93, $next_auto_id$94, $groups$95, $create$96, $register$97, $unregister_all$98, $unregister$99;\n\n \n \n Opal.def(self, '$generate_name', $generate_name$93 = function $$generate_name() {\n var self = this;\n\n return \"\" + \"extgrp\" + (self.$next_auto_id())\n }, $generate_name$93.$$arity = 0);\n \n Opal.def(self, '$next_auto_id', $next_auto_id$94 = function $$next_auto_id() {\n var $a, self = this;\n if (self.auto_id == null) self.auto_id = nil;\n\n \n self.auto_id = ($truthy($a = self.auto_id) ? $a : -1);\n return (self.auto_id = $rb_plus(self.auto_id, 1));\n }, $next_auto_id$94.$$arity = 0);\n \n Opal.def(self, '$groups', $groups$95 = function $$groups() {\n var $a, self = this;\n if (self.groups == null) self.groups = nil;\n\n return (self.groups = ($truthy($a = self.groups) ? $a : $hash2([], {})))\n }, $groups$95.$$arity = 0);\n \n Opal.def(self, '$create', $create$96 = function $$create(name) {\n var $iter = $create$96.$$p, block = $iter || nil, $a, self = this;\n\n if ($iter) $create$96.$$p = null;\n \n \n if ($iter) $create$96.$$p = null;;\n \n if (name == null) {\n name = nil;\n };\n if ((block !== nil)) {\n return $$($nesting, 'Registry').$new($hash(($truthy($a = name) ? $a : self.$generate_name()), block))\n } else {\n return $$($nesting, 'Registry').$new()\n };\n }, $create$96.$$arity = -1);\n \n Opal.def(self, '$register', $register$97 = function $$register($a) {\n var $iter = $register$97.$$p, block = $iter || nil, $post_args, args, $b, self = this, argc = nil, resolved_group = nil, group = nil, name = nil, $writer = nil;\n\n if ($iter) $register$97.$$p = null;\n \n \n if ($iter) $register$97.$$p = null;;\n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n args = $post_args;;\n argc = args.$size();\n if ((block !== nil)) {\n resolved_group = block\n } else if ($truthy((group = args.$pop()))) {\n resolved_group = ($truthy($b = $$($nesting, 'Helpers').$resolve_class(group)) ? $b : group)\n } else {\n self.$raise($$$('::', 'ArgumentError'), \"Extension group to register not specified\")\n };\n name = ($truthy($b = args.$pop()) ? $b : self.$generate_name());\n if ($truthy(args['$empty?']())) {\n } else {\n self.$raise($$$('::', 'ArgumentError'), \"\" + \"Wrong number of arguments (\" + (argc) + \" for 1..2)\")\n };\n \n $writer = [name.$to_sym(), resolved_group];\n $send(self.$groups(), '[]=', Opal.to_a($writer));\n return $writer[$rb_minus($writer[\"length\"], 1)];;\n }, $register$97.$$arity = -1);\n \n Opal.def(self, '$unregister_all', $unregister_all$98 = function $$unregister_all() {\n var self = this;\n\n \n self.groups = $hash2([], {});\n return nil;\n }, $unregister_all$98.$$arity = 0);\n return (Opal.def(self, '$unregister', $unregister$99 = function $$unregister($a) {\n var $post_args, names, $$100, self = this;\n\n \n \n $post_args = Opal.slice.call(arguments, 0, arguments.length);\n \n names = $post_args;;\n $send(names, 'each', [], ($$100 = function(group){var self = $$100.$$s || this;\n if (self.groups == null) self.groups = nil;\n\n \n \n if (group == null) {\n group = nil;\n };\n return self.groups.$delete(group.$to_sym());}, $$100.$$s = self, $$100.$$arity = 1, $$100));\n return nil;\n }, $unregister$99.$$arity = -1), nil) && 'unregister';\n })(Opal.get_singleton_class(self), $nesting);\n })($nesting[0], $nesting)\n })($nesting[0], $nesting);\n};\n\n/* Generated by Opal 0.11.99.dev */\nOpal.modules[\"asciidoctor/js/asciidoctor_ext/stylesheet\"] = function(Opal) {\n var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $truthy = Opal.truthy;\n\n Opal.add_stubs(['$rstrip', '$read', '$join']);\n return (function($base, $parent_nesting) {\n var self = $module($base, 'Asciidoctor');\n\n var $nesting = [self].concat($parent_nesting);\n\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'Stylesheets');\n\n var $nesting = [self].concat($parent_nesting), $Stylesheets_primary_stylesheet_data$1;\n\n self.$$prototype.primary_stylesheet_data = nil;\n return (Opal.def(self, '$primary_stylesheet_data', $Stylesheets_primary_stylesheet_data$1 = function $$primary_stylesheet_data() {\n var $a, self = this;\n\n return (self.primary_stylesheet_data = ($truthy($a = self.primary_stylesheet_data) ? $a : $$$('::', 'IO').$read($$$('::', 'File').$join(\"css\", \"asciidoctor.css\")).$rstrip()))\n }, $Stylesheets_primary_stylesheet_data$1.$$arity = 0), nil) && 'primary_stylesheet_data'\n })($nesting[0], null, $nesting)\n })($nesting[0], $nesting)\n};\n\n/* Generated by Opal 0.11.99.dev */\nOpal.modules[\"asciidoctor/js/asciidoctor_ext/document\"] = function(Opal) {\n var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass;\n\n return (function($base, $parent_nesting) {\n var self = $module($base, 'Asciidoctor');\n\n var $nesting = [self].concat($parent_nesting);\n\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'Document');\n\n var $nesting = [self].concat($parent_nesting), $Document_fill_datetime_attributes$1;\n\n return (Opal.def(self, '$fill_datetime_attributes', $Document_fill_datetime_attributes$1 = function $$fill_datetime_attributes(attrs, input_mtime) {\n var self = this;\n\n \n var $truthy = Opal.truthy\n var $falsy = Opal.falsy\n var nil = Opal.nil\n var utc_offset\n var source_date_epoch\n\n var getYear = function (time, utc_offset) {\n return utc_offset === 0 ? time.getUTCFullYear() : time.getFullYear()\n }\n var getMonth = function (time, utc_offset) {\n return utc_offset === 0 ? time.getUTCMonth() : time.getMonth()\n }\n var getDay = function (time, utc_offset) {\n return utc_offset === 0 ? time.getUTCDate() : time.getDate()\n }\n var getHours = function (time, utc_offset) {\n return utc_offset === 0 ? time.getUTCHours() : time.getHours()\n }\n\n var now = new Date()\n // See https://reproducible-builds.org/specs/source-date-epoch/\n if (Opal.const_get_qualified('::', 'ENV')['$key?']('SOURCE_DATE_EPOCH')) {\n now.setTime(parseInt(Opal.const_get_qualified('::', 'ENV')['$[]']('SOURCE_DATE_EPOCH')) * 1000)\n source_date_epoch = now\n utc_offset = 0 // utc\n } else {\n utc_offset = -now.getTimezoneOffset() / 60 // local date\n }\n // localdate and localyear\n if ($truthy((localdate = attrs['$[]']('localdate')))) {\n if ($falsy(localyear = attrs['$[]']('localyear'))) {\n localyear = localdate.indexOf('-') === 4 ? localdate.substring(0, 4) : nil\n attrs['$[]=']('localyear', localyear)\n }\n } else {\n var now_year = getYear(now, utc_offset).toString()\n var now_month = ('0' + (getMonth(now, utc_offset) + 1)).slice(-2)\n var now_day = ('0' + getDay(now, utc_offset)).slice(-2)\n localdate = now_year + '-' + now_month + '-' + now_day\n attrs['$[]=']('localdate', localdate)\n localyear = now_year\n attrs['$[]=']('localyear', now_year)\n }\n // localtime\n if ($falsy((localtime = attrs['$[]']('localtime')))) {\n var hours = ('0' + (getHours(now, utc_offset))).slice(-2)\n var minutes = ('0' + (now.getMinutes())).slice(-2)\n var seconds = ('0' + (now.getSeconds())).slice(-2)\n var utc_offset_format\n if (utc_offset === 0) {\n utc_offset_format = 'UTC'\n } else if (utc_offset > 0) {\n utc_offset_format = ('+0' + (utc_offset * 100)).slice(-5)\n } else {\n utc_offset_format = ('-0' + (-utc_offset * 100)).slice(-5)\n }\n localtime = hours + ':' + minutes + ':' + seconds + ' ' + utc_offset_format\n attrs['$[]=']('localtime', localtime)\n }\n // localdatetime\n if ($falsy((localdatetime = attrs['$[]']('localdatetime')))) {\n localdatetime = localdate + ' ' + localtime\n attrs['$[]=']('localdatetime', localdatetime)\n }\n\n // docdate, doctime and docdatetime should default to localdate, localtime and localdatetime if not otherwise set\n if ($truthy(source_date_epoch)) {\n input_mtime = source_date_epoch\n } else if ($truthy(input_mtime)) {\n utc_offset = -input_mtime.getTimezoneOffset() / 60\n } else {\n input_mtime = now\n }\n\n // docdate and docyear\n if ($truthy(docdate = attrs['$[]']('docdate'))) {\n attrs['$[]=']('docyear', docdate.indexOf('-') === 4 ? docdate.substring(0, 4) : nil)\n } else {\n var mtime_year = getYear(input_mtime, utc_offset).toString()\n var mtime_month = ('0' + (getMonth(input_mtime, utc_offset) + 1)).slice(-2)\n var mtime_day = ('0' + (getDay(input_mtime, utc_offset))).slice(-2)\n docdate = mtime_year + '-' + mtime_month + '-' + mtime_day\n attrs['$[]=']('docdate', docdate)\n if ($falsy(attrs['$[]']('docyear'))) {\n attrs['$[]=']('docyear', mtime_year)\n }\n }\n // doctime\n if ($falsy(doctime = attrs['$[]']('doctime'))) {\n var mtime_hours = ('0' + (getHours(input_mtime, utc_offset))).slice(-2)\n var mtime_minutes = ('0' + (input_mtime.getMinutes())).slice(-2)\n var mtime_seconds = ('0' + (input_mtime.getSeconds())).slice(-2)\n if (utc_offset === 0) {\n utc_offset_format = 'UTC'\n } else if (utc_offset > 0) {\n utc_offset_format = ('+0' + (utc_offset * 100)).slice(-5)\n } else {\n utc_offset_format = ('-0' + (-utc_offset * 100)).slice(-5)\n }\n doctime = mtime_hours + ':' + mtime_minutes + ':' + mtime_seconds + ' ' + utc_offset_format\n attrs['$[]=']('doctime', doctime)\n }\n // docdatetime\n if ($falsy(attrs['$[]']('docdatetime'))) {\n attrs['$[]=']('docdatetime', docdate + ' ' + doctime)\n }\n return nil\n \n }, $Document_fill_datetime_attributes$1.$$arity = 2), nil) && 'fill_datetime_attributes'\n })($nesting[0], $$($nesting, 'AbstractBlock'), $nesting)\n })($nesting[0], $nesting)\n};\n\n/* Generated by Opal 0.11.99.dev */\nOpal.modules[\"asciidoctor/js/asciidoctor_ext/substitutors\"] = function(Opal) {\n var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module;\n\n return (function($base, $parent_nesting) {\n var self = $module($base, 'Asciidoctor');\n\n var $nesting = [self].concat($parent_nesting);\n\n (function($base, $parent_nesting) {\n var self = $module($base, 'Substitutors');\n\n var $nesting = [self].concat($parent_nesting), $Substitutors_sub_placeholder$1;\n\n \n Opal.def(self, '$sub_placeholder', $Substitutors_sub_placeholder$1 = function $$sub_placeholder(format_string, replacement) {\n var self = this;\n\n return format_string.replace('%s', replacement);\n }, $Substitutors_sub_placeholder$1.$$arity = 2)\n })($nesting[0], $nesting)\n })($nesting[0], $nesting)\n};\n\n/* Generated by Opal 0.11.99.dev */\nOpal.modules[\"asciidoctor/js/asciidoctor_ext/parser\"] = function(Opal) {\n var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $klass = Opal.klass, $truthy = Opal.truthy;\n\n return (function($base, $parent_nesting) {\n var self = $module($base, 'Asciidoctor');\n\n var $nesting = [self].concat($parent_nesting);\n\n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'Parser');\n\n var $nesting = [self].concat($parent_nesting), $Parser_uniform$ques$1, $Parser_uniform$ques$2;\n\n if ($truthy(String.prototype.repeat)) {\n return (Opal.defs(self, '$uniform?', $Parser_uniform$ques$1 = function(str, chr, len) {\n var self = this;\n\n return chr.repeat(len) === str;\n }, $Parser_uniform$ques$1.$$arity = 3), nil) && 'uniform?'\n } else {\n return (Opal.defs(self, '$uniform?', $Parser_uniform$ques$2 = function(str, chr, len) {\n var self = this;\n\n return Array.apply(null, { length: len }).map(function () { return chr }).join('') === str;\n }, $Parser_uniform$ques$2.$$arity = 3), nil) && 'uniform?'\n }\n })($nesting[0], null, $nesting)\n })($nesting[0], $nesting)\n};\n\n/* Generated by Opal 0.11.99.dev */\nOpal.modules[\"asciidoctor/js/asciidoctor_ext/syntax_highlighter\"] = function(Opal) {\n var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $truthy = Opal.truthy;\n\n Opal.add_stubs(['$key?', '$registry', '$[]', '$include?', '$include', '$empty?', '$debug', '$logger', '$join', '$keys']);\n return (function($base, $parent_nesting) {\n var self = $module($base, 'Asciidoctor');\n\n var $nesting = [self].concat($parent_nesting);\n\n (function($base, $parent_nesting) {\n var self = $module($base, 'SyntaxHighlighter');\n\n var $nesting = [self].concat($parent_nesting);\n\n (function($base, $parent_nesting) {\n var self = $module($base, 'Factory');\n\n var $nesting = [self].concat($parent_nesting), $Factory_for$1;\n\n \n Opal.def(self, '$for', $Factory_for$1 = function(name) {\n var self = this;\n\n if ($truthy(self.$registry()['$key?'](name))) {\n return self.$registry()['$[]'](name)\n } else {\n \n if ($truthy(self['$include?']($$($nesting, 'Logging')))) {\n } else {\n self.$include($$($nesting, 'Logging'))\n };\n if ($truthy(self.$registry()['$empty?']())) {\n self.$logger().$debug(\"no syntax highlighter available, functionality disabled.\")\n } else {\n self.$logger().$debug(\"\" + \"syntax highlighter named '\" + (name) + \"' is not available, must be one of: '\" + (self.$registry().$keys().$join(\"', '\")) + \"'.\")\n };\n return nil;\n }\n }, $Factory_for$1.$$arity = 1)\n })($nesting[0], $nesting)\n })($nesting[0], $nesting)\n })($nesting[0], $nesting)\n};\n\n/* Generated by Opal 0.11.99.dev */\nOpal.modules[\"asciidoctor/js/asciidoctor_ext\"] = function(Opal) {\n var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice;\n\n Opal.add_stubs(['$require']);\n \n self.$require(\"asciidoctor/js/asciidoctor_ext/stylesheet\");\n self.$require(\"asciidoctor/js/asciidoctor_ext/document\");\n self.$require(\"asciidoctor/js/asciidoctor_ext/substitutors\");\n self.$require(\"asciidoctor/js/asciidoctor_ext/parser\");\n self.$require(\"asciidoctor/js/asciidoctor_ext/syntax_highlighter\");\n \n// Load specific runtime\nself.$require(\"asciidoctor/js/asciidoctor_ext/browser\");\n;\n};\n\n/* Generated by Opal 0.11.99.dev */\nOpal.modules[\"asciidoctor/js/opal_ext/logger\"] = function(Opal) {\n function $rb_lt(lhs, rhs) {\n return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs < rhs : lhs['$<'](rhs);\n }\n var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $klass = Opal.klass, $truthy = Opal.truthy;\n\n Opal.add_stubs(['$chr', '$rjust', '$message_as_string', '$<', '$write', '$call', '$[]']);\n return (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'Logger');\n\n var $nesting = [self].concat($parent_nesting), $Logger_add$2;\n\n self.$$prototype.level = self.$$prototype.progname = self.$$prototype.pipe = self.$$prototype.formatter = nil;\n \n (function($base, $super, $parent_nesting) {\n var self = $klass($base, $super, 'Formatter');\n\n var $nesting = [self].concat($parent_nesting), $Formatter_call$1;\n\n return (Opal.def(self, '$call', $Formatter_call$1 = function $$call(severity, time, progname, msg) {\n var self = this, time_format = nil;\n\n \n time_format = time.getFullYear() + '-' + ('0'+(time.getMonth()+1)).slice(-2) + '-' + ('0'+time.getDate()).slice(-2) + 'T' + ('0'+time.getHours()).slice(-2) + ':' + ('0'+time.getMinutes()).slice(-2) + ':' + ('0'+time.getSeconds()).slice(-2) + '.' + ('00' + new Date().getMilliseconds() * 1000).slice(-6);\n return \"\" + (severity.$chr()) + \", [\" + (time_format) + \"] \" + (severity.$rjust(5)) + \" -- \" + (progname) + \": \" + (self.$message_as_string(msg));\n }, $Formatter_call$1.$$arity = 4), nil) && 'call'\n })($nesting[0], null, $nesting);\n return (Opal.def(self, '$add', $Logger_add$2 = function $$add(severity, message, progname) {\n var $iter = $Logger_add$2.$$p, block = $iter || nil, $a, self = this;\n\n if ($iter) $Logger_add$2.$$p = null;\n \n \n if ($iter) $Logger_add$2.$$p = null;;\n \n if (message == null) {\n message = nil;\n };\n \n if (progname == null) {\n progname = nil;\n };\n if ($truthy($rb_lt((severity = ($truthy($a = severity) ? $a : $$($nesting, 'UNKNOWN'))), self.level))) {\n return true};\n progname = ($truthy($a = progname) ? $a : self.progname);\n if ($truthy(message)) {\n } else if ((block !== nil)) {\n message = Opal.yieldX(block, [])\n } else {\n \n message = progname;\n progname = self.progname;\n };\n self.pipe.$write(self.formatter.$call(($truthy($a = $$($nesting, 'SEVERITY_LABELS')['$[]'](severity)) ? $a : \"ANY\"), new Date(), progname, message));\n return true;\n }, $Logger_add$2.$$arity = -2), nil) && 'add';\n })($nesting[0], null, $nesting)\n};\n\n/* Generated by Opal 0.11.99.dev */\nOpal.modules[\"asciidoctor/js/postscript\"] = function(Opal) {\n var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice;\n\n Opal.add_stubs(['$require']);\n \n self.$require(\"asciidoctor/converter/composite\");\n self.$require(\"asciidoctor/converter/html5\");\n self.$require(\"asciidoctor/extensions\");\n self.$require(\"asciidoctor/js/asciidoctor_ext\");\n return self.$require(\"asciidoctor/js/opal_ext/logger\");\n};\n\n/* Generated by Opal 0.11.99.dev */\n(function(Opal) {\n function $rb_minus(lhs, rhs) {\n return (typeof(lhs) === 'number' && typeof(rhs) === 'number') ? lhs - rhs : lhs['$-'](rhs);\n }\n var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.const_get_qualified, $$ = Opal.const_get_relative, $breaker = Opal.breaker, $slice = Opal.slice, $module = Opal.module, $send = Opal.send, $hash2 = Opal.hash2, $truthy = Opal.truthy;\n\n Opal.add_stubs(['$require', '$==', '$tap', '$each', '$constants', '$const_get', '$downcase', '$to_s', '$[]=', '$-', '$upcase', '$[]', '$values', '$new', '$attr_reader', '$instance_variable_set', '$send', '$singleton_class', '$<<', '$define', '$dirname', '$absolute_path', '$__dir__', '$join', '$home', '$pwd', '$to_set', '$chr', '$each_key', '$slice', '$length', '$merge', '$default=', '$drop', '$insert']);\n \n self.$require(\"set\");\n if ($$($nesting, 'RUBY_ENGINE')['$=='](\"opal\")) {\n self.$require(\"asciidoctor/js\")\n } else {\n nil\n };\n (function($base, $parent_nesting) {\n var self = $module($base, 'Asciidoctor');\n\n var $nesting = [self].concat($parent_nesting), $a, $b, $Asciidoctor$7, $Asciidoctor$9, $Asciidoctor$11, $Asciidoctor$13, $writer = nil;\n\n \n Opal.const_set($nesting[0], 'RUBY_ENGINE_OPAL', Opal.const_set($nesting[0], 'RUBY_ENGINE', $$$('::', 'RUBY_ENGINE'))['$=='](\"opal\"));\n (function($base, $parent_nesting) {\n var self = $module($base, 'SafeMode');\n\n var $nesting = [self].concat($parent_nesting), $SafeMode$1, $SafeMode_value_for_name$3, $SafeMode_name_for_value$4, $SafeMode_names$5;\n\n \n Opal.const_set($nesting[0], 'UNSAFE', 0);\n Opal.const_set($nesting[0], 'SAFE', 1);\n Opal.const_set($nesting[0], 'SERVER', 10);\n Opal.const_set($nesting[0], 'SECURE', 20);\n self.names_by_value = $send($hash2([], {}), 'tap', [], ($SafeMode$1 = function(accum){var self = $SafeMode$1.$$s || this, $$2;\n\n \n \n if (accum == null) {\n accum = nil;\n };\n return $send(self.$constants(false), 'each', [], ($$2 = function(sym){var self = $$2.$$s || this, $writer = nil;\n\n \n \n if (sym == null) {\n sym = nil;\n };\n $writer = [self.$const_get(sym, false), sym.$to_s().$downcase()];\n $send(accum, '[]=', Opal.to_a($writer));\n return $writer[$rb_minus($writer[\"length\"], 1)];}, $$2.$$s = self, $$2.$$arity = 1, $$2));}, $SafeMode$1.$$s = self, $SafeMode$1.$$arity = 1, $SafeMode$1));\n Opal.defs(self, '$value_for_name', $SafeMode_value_for_name$3 = function $$value_for_name(name) {\n var self = this;\n\n return self.$const_get(name.$upcase(), false)\n }, $SafeMode_value_for_name$3.$$arity = 1);\n Opal.defs(self, '$name_for_value', $SafeMode_name_for_value$4 = function $$name_for_value(value) {\n var self = this;\n if (self.names_by_value == null) self.names_by_value = nil;\n\n return self.names_by_value['$[]'](value)\n }, $SafeMode_name_for_value$4.$$arity = 1);\n Opal.defs(self, '$names', $SafeMode_names$5 = function $$names() {\n var self = this;\n if (self.names_by_value == null) self.names_by_value = nil;\n\n return self.names_by_value.$values()\n }, $SafeMode_names$5.$$arity = 0);\n })($nesting[0], $nesting);\n (function($base, $parent_nesting) {\n var self = $module($base, 'Compliance');\n\n var $nesting = [self].concat($parent_nesting);\n\n \n self.keys = $$$('::', 'Set').$new();\n (function(self, $parent_nesting) {\n var $nesting = [self].concat($parent_nesting), $define$6;\n\n \n self.$attr_reader(\"keys\");\n return (Opal.def(self, '$define', $define$6 = function $$define(key, value) {\n var self = this;\n if (self.keys == null) self.keys = nil;\n\n \n self.$instance_variable_set(\"\" + \"@\" + (key), value);\n self.$singleton_class().$send(\"attr_accessor\", key);\n self.keys['$<<'](key);\n return nil;\n }, $define$6.$$arity = 2), nil) && 'define';\n })(Opal.get_singleton_class(self), $nesting);\n self.$define(\"block_terminates_paragraph\", true);\n self.$define(\"strict_verbatim_paragraphs\", true);\n self.$define(\"underline_style_section_titles\", true);\n self.$define(\"unwrap_standalone_preamble\", true);\n self.$define(\"attribute_missing\", \"skip\");\n self.$define(\"attribute_undefined\", \"drop-line\");\n self.$define(\"shorthand_property_syntax\", true);\n self.$define(\"natural_xrefs\", true);\n self.$define(\"unique_id_start_index\", 2);\n self.$define(\"markdown_syntax\", true);\n })($nesting[0], $nesting);\n if ($truthy((($a = $$($nesting, 'ROOT_DIR', 'skip_raise')) ? 'constant' : nil))) {\n } else {\n Opal.const_set($nesting[0], 'ROOT_DIR', $$$('::', 'File').$dirname($$$('::', 'File').$absolute_path(self.$__dir__())))\n };\n Opal.const_set($nesting[0], 'LIB_DIR', $$$('::', 'File').$join($$($nesting, 'ROOT_DIR'), \"lib\"));\n Opal.const_set($nesting[0], 'DATA_DIR', $$$('::', 'File').$join($$($nesting, 'ROOT_DIR'), \"data\"));\n Opal.const_set($nesting[0], 'USER_HOME', (function() { try {\n return $$$('::', 'Dir').$home()\n } catch ($err) {\n if (Opal.rescue($err, [$$($nesting, 'StandardError')])) {\n try {\n \n return ($truthy($b = $$$('::', 'ENV')['$[]'](\"HOME\")) ? $b : $$$('::', 'Dir').$pwd());\n } finally { Opal.pop_exception() }\n } else { throw $err; }\n }})());\n Opal.const_set($nesting[0], 'LF', \"\\n\");\n Opal.const_set($nesting[0], 'NULL', \"\\u0000\");\n Opal.const_set($nesting[0], 'TAB', \"\\t\");\n Opal.const_set($nesting[0], 'MAX_INT', 9007199254740991);\n Opal.const_set($nesting[0], 'UTF_8', $$$($$$('::', 'Encoding'), 'UTF_8'));\n Opal.const_set($nesting[0], 'BOM_BYTES_UTF_8', [239, 187, 191]);\n Opal.const_set($nesting[0], 'BOM_BYTES_UTF_16LE', [255, 254]);\n Opal.const_set($nesting[0], 'BOM_BYTES_UTF_16BE', [254, 255]);\n Opal.const_set($nesting[0], 'FILE_READ_MODE', (function() {if ($truthy($$($nesting, 'RUBY_ENGINE_OPAL'))) {\n return \"r\"\n } else {\n return \"rb:utf-8:utf-8\"\n }; return nil; })());\n Opal.const_set($nesting[0], 'URI_READ_MODE', $$($nesting, 'FILE_READ_MODE'));\n Opal.const_set($nesting[0], 'FILE_WRITE_MODE', (function() {if ($truthy($$($nesting, 'RUBY_ENGINE_OPAL'))) {\n return \"w\"\n } else {\n return \"w:utf-8\"\n }; return nil; })());\n Opal.const_set($nesting[0], 'DEFAULT_DOCTYPE', \"article\");\n Opal.const_set($nesting[0], 'DEFAULT_BACKEND', \"html5\");\n Opal.const_set($nesting[0], 'DEFAULT_STYLESHEET_KEYS', [\"\", \"DEFAULT\"].$to_set());\n Opal.const_set($nesting[0], 'DEFAULT_STYLESHEET_NAME', \"asciidoctor.css\");\n Opal.const_set($nesting[0], 'BACKEND_ALIASES', $hash2([\"html\", \"docbook\"], {\"html\": \"html5\", \"docbook\": \"docbook5\"}));\n Opal.const_set($nesting[0], 'DEFAULT_PAGE_WIDTHS', $hash2([\"docbook\"], {\"docbook\": 425}));\n Opal.const_set($nesting[0], 'DEFAULT_EXTENSIONS', $hash2([\"html\", \"docbook\", \"pdf\", \"epub\", \"manpage\", \"asciidoc\"], {\"html\": \".html\", \"docbook\": \".xml\", \"pdf\": \".pdf\", \"epub\": \".epub\", \"manpage\": \".man\", \"asciidoc\": \".adoc\"}));\n Opal.const_set($nesting[0], 'ASCIIDOC_EXTENSIONS', $hash2([\".adoc\", \".asciidoc\", \".asc\", \".ad\", \".txt\"], {\".adoc\": true, \".asciidoc\": true, \".asc\": true, \".ad\": true, \".txt\": true}));\n Opal.const_set($nesting[0], 'SETEXT_SECTION_LEVELS', $hash2([\"=\", \"-\", \"~\", \"^\", \"+\"], {\"=\": 0, \"-\": 1, \"~\": 2, \"^\": 3, \"+\": 4}));\n Opal.const_set($nesting[0], 'ADMONITION_STYLES', [\"NOTE\", \"TIP\", \"IMPORTANT\", \"WARNING\", \"CAUTION\"].$to_set());\n Opal.const_set($nesting[0], 'ADMONITION_STYLE_HEADS', $send($$$('::', 'Set').$new(), 'tap', [], ($Asciidoctor$7 = function(accum){var self = $Asciidoctor$7.$$s || this, $$8;\n\n \n \n if (accum == null) {\n accum = nil;\n };\n return $send($$($nesting, 'ADMONITION_STYLES'), 'each', [], ($$8 = function(s){var self = $$8.$$s || this;\n\n \n \n if (s == null) {\n s = nil;\n };\n return accum['$<<'](s.$chr());}, $$8.$$s = self, $$8.$$arity = 1, $$8));}, $Asciidoctor$7.$$s = self, $Asciidoctor$7.$$arity = 1, $Asciidoctor$7)));\n Opal.const_set($nesting[0], 'PARAGRAPH_STYLES', [\"comment\", \"example\", \"literal\", \"listing\", \"normal\", \"open\", \"pass\", \"quote\", \"sidebar\", \"source\", \"verse\", \"abstract\", \"partintro\"].$to_set());\n Opal.const_set($nesting[0], 'VERBATIM_STYLES', [\"literal\", \"listing\", \"source\", \"verse\"].$to_set());\n Opal.const_set($nesting[0], 'DELIMITED_BLOCKS', $hash2([\"--\", \"----\", \"....\", \"====\", \"****\", \"____\", \"++++\", \"|===\", \",===\", \":===\", \"!===\", \"////\", \"```\"], {\"--\": [\"open\", [\"comment\", \"example\", \"literal\", \"listing\", \"pass\", \"quote\", \"sidebar\", \"source\", \"verse\", \"admonition\", \"abstract\", \"partintro\"].$to_set()], \"----\": [\"listing\", [\"literal\", \"source\"].$to_set()], \"....\": [\"literal\", [\"listing\", \"source\"].$to_set()], \"====\": [\"example\", [\"admonition\"].$to_set()], \"****\": [\"sidebar\", $$$('::', 'Set').$new()], \"____\": [\"quote\", [\"verse\"].$to_set()], \"++++\": [\"pass\", [\"stem\", \"latexmath\", \"asciimath\"].$to_set()], \"|===\": [\"table\", $$$('::', 'Set').$new()], \",===\": [\"table\", $$$('::', 'Set').$new()], \":===\": [\"table\", $$$('::', 'Set').$new()], \"!===\": [\"table\", $$$('::', 'Set').$new()], \"////\": [\"comment\", $$$('::', 'Set').$new()], \"```\": [\"fenced_code\", $$$('::', 'Set').$new()]}));\n Opal.const_set($nesting[0], 'DELIMITED_BLOCK_HEADS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$9 = function(accum){var self = $Asciidoctor$9.$$s || this, $$10;\n\n \n \n if (accum == null) {\n accum = nil;\n };\n return $send($$($nesting, 'DELIMITED_BLOCKS'), 'each_key', [], ($$10 = function(k){var self = $$10.$$s || this, $writer = nil;\n\n \n \n if (k == null) {\n k = nil;\n };\n $writer = [k.$slice(0, 2), true];\n $send(accum, '[]=', Opal.to_a($writer));\n return $writer[$rb_minus($writer[\"length\"], 1)];}, $$10.$$s = self, $$10.$$arity = 1, $$10));}, $Asciidoctor$9.$$s = self, $Asciidoctor$9.$$arity = 1, $Asciidoctor$9)));\n Opal.const_set($nesting[0], 'DELIMITED_BLOCK_TAILS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$11 = function(accum){var self = $Asciidoctor$11.$$s || this, $$12;\n\n \n \n if (accum == null) {\n accum = nil;\n };\n return $send($$($nesting, 'DELIMITED_BLOCKS'), 'each_key', [], ($$12 = function(k){var self = $$12.$$s || this, $writer = nil;\n\n \n \n if (k == null) {\n k = nil;\n };\n if (k.$length()['$=='](4)) {\n \n $writer = [k, k['$[]']($rb_minus(k.$length(), 1))];\n $send(accum, '[]=', Opal.to_a($writer));\n return $writer[$rb_minus($writer[\"length\"], 1)];\n } else {\n return nil\n };}, $$12.$$s = self, $$12.$$arity = 1, $$12));}, $Asciidoctor$11.$$s = self, $Asciidoctor$11.$$arity = 1, $Asciidoctor$11)));\n Opal.const_set($nesting[0], 'CAPTION_ATTR_NAMES', $hash2([\"example\", \"figure\", \"listing\", \"table\"], {\"example\": \"example-caption\", \"figure\": \"figure-caption\", \"listing\": \"listing-caption\", \"table\": \"table-caption\"}));\n Opal.const_set($nesting[0], 'LAYOUT_BREAK_CHARS', $hash2([\"'\", \"<\"], {\"'\": \"thematic_break\", \"<\": \"page_break\"}));\n Opal.const_set($nesting[0], 'MARKDOWN_THEMATIC_BREAK_CHARS', $hash2([\"-\", \"*\", \"_\"], {\"-\": \"thematic_break\", \"*\": \"thematic_break\", \"_\": \"thematic_break\"}));\n Opal.const_set($nesting[0], 'HYBRID_LAYOUT_BREAK_CHARS', $$($nesting, 'LAYOUT_BREAK_CHARS').$merge($$($nesting, 'MARKDOWN_THEMATIC_BREAK_CHARS')));\n Opal.const_set($nesting[0], 'NESTABLE_LIST_CONTEXTS', [\"ulist\", \"olist\", \"dlist\"]);\n Opal.const_set($nesting[0], 'ORDERED_LIST_STYLES', [\"arabic\", \"loweralpha\", \"lowerroman\", \"upperalpha\", \"upperroman\"]);\n Opal.const_set($nesting[0], 'ORDERED_LIST_KEYWORDS', $hash2([\"loweralpha\", \"lowerroman\", \"upperalpha\", \"upperroman\"], {\"loweralpha\": \"a\", \"lowerroman\": \"i\", \"upperalpha\": \"A\", \"upperroman\": \"I\"}));\n Opal.const_set($nesting[0], 'ATTR_REF_HEAD', \"{\");\n Opal.const_set($nesting[0], 'LIST_CONTINUATION', \"+\");\n Opal.const_set($nesting[0], 'HARD_LINE_BREAK', \" +\");\n Opal.const_set($nesting[0], 'LINE_CONTINUATION', \" \\\\\");\n Opal.const_set($nesting[0], 'LINE_CONTINUATION_LEGACY', \" +\");\n Opal.const_set($nesting[0], 'BLOCK_MATH_DELIMITERS', $hash2([\"asciimath\", \"latexmath\"], {\"asciimath\": [\"\\\\$\", \"\\\\$\"], \"latexmath\": [\"\\\\[\", \"\\\\]\"]}));\n Opal.const_set($nesting[0], 'INLINE_MATH_DELIMITERS', $hash2([\"asciimath\", \"latexmath\"], {\"asciimath\": [\"\\\\$\", \"\\\\$\"], \"latexmath\": [\"\\\\(\", \"\\\\)\"]}));\n \n $writer = [\"asciimath\"];\n $send(Opal.const_set($nesting[0], 'STEM_TYPE_ALIASES', $hash2([\"latexmath\", \"latex\", \"tex\"], {\"latexmath\": \"latexmath\", \"latex\": \"latexmath\", \"tex\": \"latexmath\"})), 'default=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];;\n Opal.const_set($nesting[0], 'FONT_AWESOME_VERSION', \"4.7.0\");\n Opal.const_set($nesting[0], 'HIGHLIGHT_JS_VERSION', \"9.15.6\");\n Opal.const_set($nesting[0], 'MATHJAX_VERSION', \"2.7.5\");\n Opal.const_set($nesting[0], 'FLEXIBLE_ATTRIBUTES', [\"sectnums\"]);\n Opal.const_set($nesting[0], 'INTRINSIC_ATTRIBUTES', $hash2([\"startsb\", \"endsb\", \"vbar\", \"caret\", \"asterisk\", \"tilde\", \"plus\", \"backslash\", \"backtick\", \"blank\", \"empty\", \"sp\", \"two-colons\", \"two-semicolons\", \"nbsp\", \"deg\", \"zwsp\", \"quot\", \"apos\", \"lsquo\", \"rsquo\", \"ldquo\", \"rdquo\", \"wj\", \"brvbar\", \"pp\", \"cpp\", \"amp\", \"lt\", \"gt\"], {\"startsb\": \"[\", \"endsb\": \"]\", \"vbar\": \"|\", \"caret\": \"^\", \"asterisk\": \"*\", \"tilde\": \"~\", \"plus\": \"+\", \"backslash\": \"\\\\\", \"backtick\": \"`\", \"blank\": \"\", \"empty\": \"\", \"sp\": \" \", \"two-colons\": \"::\", \"two-semicolons\": \";;\", \"nbsp\": \" \", \"deg\": \"°\", \"zwsp\": \"​\", \"quot\": \""\", \"apos\": \"'\", \"lsquo\": \"‘\", \"rsquo\": \"’\", \"ldquo\": \"“\", \"rdquo\": \"”\", \"wj\": \"⁠\", \"brvbar\": \"¦\", \"pp\": \"++\", \"cpp\": \"C++\", \"amp\": \"&\", \"lt\": \"<\", \"gt\": \">\"}));\n if ($$($nesting, 'RUBY_ENGINE')['$=='](\"opal\")) {\n } else {\n nil\n };\n Opal.const_set($nesting[0], 'QUOTE_SUBS', $send($hash2([], {}), 'tap', [], ($Asciidoctor$13 = function(accum){var self = $Asciidoctor$13.$$s || this, normal = nil, compat = nil;\n\n \n \n if (accum == null) {\n accum = nil;\n };\n \n $writer = [false, (normal = [[\"strong\", \"unconstrained\", new RegExp(\"\" + \"\\\\\\\\?(?:\\\\[([^\\\\]]+)\\\\])?\\\\*\\\\*(\" + ($$($nesting, 'CC_ALL')) + \"+?)\\\\*\\\\*\", 'm')], [\"strong\", \"constrained\", new RegExp(\"\" + \"(^|[^\" + ($$($nesting, 'CC_WORD')) + \";:}])(?:\\\\[([^\\\\]]+)\\\\])?\\\\*(\\\\S|\\\\S\" + ($$($nesting, 'CC_ALL')) + \"*?\\\\S)\\\\*(?!\" + ($$($nesting, 'CG_WORD')) + \")\", 'm')], [\"double\", \"constrained\", new RegExp(\"\" + \"(^|[^\" + ($$($nesting, 'CC_WORD')) + \";:}])(?:\\\\[([^\\\\]]+)\\\\])?\\\"`(\\\\S|\\\\S\" + ($$($nesting, 'CC_ALL')) + \"*?\\\\S)`\\\"(?!\" + ($$($nesting, 'CG_WORD')) + \")\", 'm')], [\"single\", \"constrained\", new RegExp(\"\" + \"(^|[^\" + ($$($nesting, 'CC_WORD')) + \";:`}])(?:\\\\[([^\\\\]]+)\\\\])?'`(\\\\S|\\\\S\" + ($$($nesting, 'CC_ALL')) + \"*?\\\\S)`'(?!\" + ($$($nesting, 'CG_WORD')) + \")\", 'm')], [\"monospaced\", \"unconstrained\", new RegExp(\"\" + \"\\\\\\\\?(?:\\\\[([^\\\\]]+)\\\\])?``(\" + ($$($nesting, 'CC_ALL')) + \"+?)``\", 'm')], [\"monospaced\", \"constrained\", new RegExp(\"\" + \"(^|[^\" + ($$($nesting, 'CC_WORD')) + \";:\\\"'`}])(?:\\\\[([^\\\\]]+)\\\\])?`(\\\\S|\\\\S\" + ($$($nesting, 'CC_ALL')) + \"*?\\\\S)`(?![\" + ($$($nesting, 'CC_WORD')) + \"\\\"'`])\", 'm')], [\"emphasis\", \"unconstrained\", new RegExp(\"\" + \"\\\\\\\\?(?:\\\\[([^\\\\]]+)\\\\])?__(\" + ($$($nesting, 'CC_ALL')) + \"+?)__\", 'm')], [\"emphasis\", \"constrained\", new RegExp(\"\" + \"(^|[^\" + ($$($nesting, 'CC_WORD')) + \";:}])(?:\\\\[([^\\\\]]+)\\\\])?_(\\\\S|\\\\S\" + ($$($nesting, 'CC_ALL')) + \"*?\\\\S)_(?!\" + ($$($nesting, 'CG_WORD')) + \")\", 'm')], [\"mark\", \"unconstrained\", new RegExp(\"\" + \"\\\\\\\\?(?:\\\\[([^\\\\]]+)\\\\])?##(\" + ($$($nesting, 'CC_ALL')) + \"+?)##\", 'm')], [\"mark\", \"constrained\", new RegExp(\"\" + \"(^|[^\" + ($$($nesting, 'CC_WORD')) + \"&;:}])(?:\\\\[([^\\\\]]+)\\\\])?#(\\\\S|\\\\S\" + ($$($nesting, 'CC_ALL')) + \"*?\\\\S)#(?!\" + ($$($nesting, 'CG_WORD')) + \")\", 'm')], [\"superscript\", \"unconstrained\", /\\\\?(?:\\[([^\\]]+)\\])?\\^(\\S+?)\\^/], [\"subscript\", \"unconstrained\", /\\\\?(?:\\[([^\\]]+)\\])?~(\\S+?)~/]])];\n $send(accum, '[]=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];;\n \n $writer = [true, (compat = normal.$drop(0))];\n $send(accum, '[]=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];;\n \n $writer = [2, [\"double\", \"constrained\", new RegExp(\"\" + \"(^|[^\" + ($$($nesting, 'CC_WORD')) + \";:}])(?:\\\\[([^\\\\]]+)\\\\])?``(\\\\S|\\\\S\" + ($$($nesting, 'CC_ALL')) + \"*?\\\\S)''(?!\" + ($$($nesting, 'CG_WORD')) + \")\", 'm')]];\n $send(compat, '[]=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];;\n \n $writer = [3, [\"single\", \"constrained\", new RegExp(\"\" + \"(^|[^\" + ($$($nesting, 'CC_WORD')) + \";:}])(?:\\\\[([^\\\\]]+)\\\\])?`(\\\\S|\\\\S\" + ($$($nesting, 'CC_ALL')) + \"*?\\\\S)'(?!\" + ($$($nesting, 'CG_WORD')) + \")\", 'm')]];\n $send(compat, '[]=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];;\n \n $writer = [4, [\"monospaced\", \"unconstrained\", new RegExp(\"\" + \"\\\\\\\\?(?:\\\\[([^\\\\]]+)\\\\])?\\\\+\\\\+(\" + ($$($nesting, 'CC_ALL')) + \"+?)\\\\+\\\\+\", 'm')]];\n $send(compat, '[]=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];;\n \n $writer = [5, [\"monospaced\", \"constrained\", new RegExp(\"\" + \"(^|[^\" + ($$($nesting, 'CC_WORD')) + \";:}])(?:\\\\[([^\\\\]]+)\\\\])?\\\\+(\\\\S|\\\\S\" + ($$($nesting, 'CC_ALL')) + \"*?\\\\S)\\\\+(?!\" + ($$($nesting, 'CG_WORD')) + \")\", 'm')]];\n $send(compat, '[]=', Opal.to_a($writer));\n $writer[$rb_minus($writer[\"length\"], 1)];;\n return compat.$insert(3, [\"emphasis\", \"constrained\", new RegExp(\"\" + \"(^|[^\" + ($$($nesting, 'CC_WORD')) + \";:}])(?:\\\\[([^\\\\]]+)\\\\])?'(\\\\S|\\\\S\" + ($$($nesting, 'CC_ALL')) + \"*?\\\\S)'(?!\" + ($$($nesting, 'CG_WORD')) + \")\", 'm')]);}, $Asciidoctor$13.$$s = self, $Asciidoctor$13.$$arity = 1, $Asciidoctor$13)));\n Opal.const_set($nesting[0], 'REPLACEMENTS', [[/\\\\?\\(C\\)/, \"©\", \"none\"], [/\\\\?\\(R\\)/, \"®\", \"none\"], [/\\\\?\\(TM\\)/, \"™\", \"none\"], [/(?: |\\n|^|\\\\)--(?: |\\n|$)/, \" — \", \"none\"], [new RegExp(\"\" + \"(\" + ($$($nesting, 'CG_WORD')) + \")\\\\\\\\?--(?=\" + ($$($nesting, 'CG_WORD')) + \")\"), \"—​\", \"leading\"], [/\\\\?\\.\\.\\./, \"…​\", \"none\"], [/\\\\?`'/, \"’\", \"none\"], [new RegExp(\"\" + \"(\" + ($$($nesting, 'CG_ALNUM')) + \")\\\\\\\\?'(?=\" + ($$($nesting, 'CG_ALPHA')) + \")\"), \"’\", \"leading\"], [/\\\\?->/, \"→\", \"none\"], [/\\\\?=>/, \"⇒\", \"none\"], [/\\\\?<-/, \"←\", \"none\"], [/\\\\?<=/, \"⇐\", \"none\"], [/\\\\?(&)amp;((?:[a-zA-Z][a-zA-Z]+\\d{0,2}|#\\d\\d\\d{0,4}|#x[\\da-fA-F][\\da-fA-F][\\da-fA-F]{0,3});)/, \"\", \"bounding\"]]);\n if ($$($nesting, 'RUBY_ENGINE')['$=='](\"opal\")) {\n } else {\n nil\n };\n if ($$($nesting, 'RUBY_ENGINE')['$=='](\"opal\")) {\n } else {\n nil\n };\n })($nesting[0], $nesting);\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/core_ext\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/helpers\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/logging\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/rx\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/substitutors\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/version\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/abstract_node\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/abstract_block\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/attribute_list\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/block\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/callouts\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/converter\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/document\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/inline\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/list\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/parser\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/path_resolver\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/reader\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/section\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/stylesheets\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/table\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/writer\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/load\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/convert\");\n if ($$($nesting, 'RUBY_ENGINE')['$=='](\"opal\")) {\n \n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/syntax_highlighter\");\n self.$require(\"asciidoctor.rb\"+ '/../' + \"asciidoctor/timings\");\n return self.$require(\"asciidoctor/js/postscript\");\n } else {\n return nil\n };\n})(Opal);\n\n\n/* global Opal */\n\n/**\n * Convert a JSON to an (Opal) Hash.\n * @private\n */\nvar toHash = function (object) {\n return object && !object.$$is_hash ? Opal.hash2(Object.keys(object), object) : object\n}\n\n/**\n * Convert an (Opal) Hash to JSON.\n * @private\n */\nvar fromHash = function (hash) {\n var object = {}\n if (hash) {\n var data = hash.$$smap\n for (var key in data) {\n var value = data[key]\n object[key] = value === Opal.nil ? undefined : value\n }\n }\n return object\n}\n\nvar fromHashKeys = function (hash) {\n var object = {}\n if (hash) {\n var data = hash.$$keys\n for (var key in data) {\n var value = data[key].value\n object[key.toString()] = value === Opal.nil ? undefined : value\n }\n }\n return object\n}\n\n/**\n * @private\n */\nvar prepareOptions = function (options) {\n options = toHash(options)\n if (options) {\n var attrs = options['$[]']('attributes')\n if (attrs && typeof attrs === 'object' && attrs.constructor.name === 'Object') {\n options = options.$dup()\n options['$[]=']('attributes', toHash(attrs))\n }\n }\n return options\n}\n\nfunction initializeClass (superClass, className, functions, defaultFunctions, argProxyFunctions) {\n var scope = Opal.klass(Opal.Object, superClass, className, function () { })\n var postConstructFunction\n var initializeFunction\n var constructorFunction\n var defaultFunctionsOverridden = {}\n for (var functionName in functions) {\n if (Object.prototype.hasOwnProperty.call(functions, functionName)) {\n (function (functionName) {\n var userFunction = functions[functionName]\n if (functionName === 'postConstruct') {\n postConstructFunction = userFunction\n } else if (functionName === 'initialize') {\n initializeFunction = userFunction\n } else if (functionName === 'constructor') {\n constructorFunction = userFunction\n } else {\n if (defaultFunctions && Object.prototype.hasOwnProperty.call(defaultFunctions, functionName)) {\n defaultFunctionsOverridden[functionName] = true\n }\n Opal.def(scope, '$' + functionName, function () {\n var args\n if (argProxyFunctions && Object.prototype.hasOwnProperty.call(argProxyFunctions, functionName)) {\n args = argProxyFunctions[functionName](arguments)\n } else {\n args = arguments\n }\n return userFunction.apply(this, args)\n })\n }\n }(functionName))\n }\n }\n var initialize\n if (typeof constructorFunction === 'function') {\n initialize = function () {\n var args = Array.from(arguments)\n for (var i = 0; i < args.length; i++) {\n // convert all (Opal) Hash arguments to JSON.\n if (typeof args[i] === 'object' && '$$smap' in args[i]) {\n args[i] = fromHash(args[i])\n }\n }\n args.unshift(null)\n var result = new (Function.prototype.bind.apply(constructorFunction, args)) // eslint-disable-line\n Object.assign(this, result)\n if (typeof postConstructFunction === 'function') {\n postConstructFunction.bind(this)()\n }\n }\n } else if (typeof initializeFunction === 'function') {\n initialize = function () {\n var args = Array.from(arguments)\n for (var i = 0; i < args.length; i++) {\n // convert all (Opal) Hash arguments to JSON.\n if (typeof args[i] === 'object' && '$$smap' in args[i]) {\n args[i] = fromHash(args[i])\n }\n }\n initializeFunction.apply(this, args)\n if (typeof postConstructFunction === 'function') {\n postConstructFunction.bind(this)()\n }\n }\n } else {\n initialize = function () {\n Opal.send(this, Opal.find_super_dispatcher(this, 'initialize', initialize))\n if (typeof postConstructFunction === 'function') {\n postConstructFunction.bind(this)()\n }\n }\n }\n Opal.def(scope, '$initialize', initialize)\n Opal.def(scope, 'super', function (func) {\n if (typeof func === 'function') {\n Opal.send(this, Opal.find_super_dispatcher(this, func.name, func))\n } else {\n // Bind the initialize function to super();\n var argumentsList = Array.from(arguments)\n for (var i = 0; i < argumentsList.length; i++) {\n // convert all (Opal) Hash arguments to JSON.\n if (typeof argumentsList[i] === 'object') {\n argumentsList[i] = toHash(argumentsList[i])\n }\n }\n Opal.send(this, Opal.find_super_dispatcher(this, 'initialize', initialize), argumentsList)\n }\n })\n if (defaultFunctions) {\n for (var defaultFunctionName in defaultFunctions) {\n if (Object.prototype.hasOwnProperty.call(defaultFunctions, defaultFunctionName) && !Object.prototype.hasOwnProperty.call(defaultFunctionsOverridden, defaultFunctionName)) {\n (function (defaultFunctionName) {\n var defaultFunction = defaultFunctions[defaultFunctionName]\n Opal.def(scope, '$' + defaultFunctionName, function () {\n return defaultFunction.apply(this, arguments)\n })\n }(defaultFunctionName))\n }\n }\n }\n return scope\n}\n\n// Asciidoctor API\n\n/**\n * @namespace\n * @description\n * The main application interface (API) for Asciidoctor.\n * This API provides methods to parse AsciiDoc content and convert it to various output formats using built-in or third-party converters.\n *\n * An AsciiDoc document can be as simple as a single line of content,\n * though it more commonly starts with a document header that declares the document title and document attribute definitions.\n * The document header is then followed by zero or more section titles, optionally nested, to organize the paragraphs, blocks, lists, etc. of the document.\n *\n * By default, the processor converts the AsciiDoc document to HTML 5 using a built-in converter.\n * However, this behavior can be changed by specifying a different backend (e.g., +docbook+).\n * A backend is a keyword for an output format (e.g., DocBook).\n * That keyword, in turn, is used to select a converter, which carries out the request to convert the document to that format.\n *\n * @example\n * asciidoctor.convertFile('document.adoc', { 'safe': 'safe' }) // Convert an AsciiDoc file\n *\n * asciidoctor.convert(\"I'm using *Asciidoctor* version {asciidoctor-version}.\", { 'safe': 'safe' }) // Convert an AsciiDoc string\n *\n * const doc = asciidoctor.loadFile('document.adoc', { 'safe': 'safe' }) // Parse an AsciiDoc file into a document object\n *\n * const doc = asciidoctor.load(\"= Document Title\\n\\nfirst paragraph\\n\\nsecond paragraph\", { 'safe': 'safe' }) // Parse an AsciiDoc string into a document object\n */\nvar Asciidoctor = Opal.Asciidoctor.$$class\n\n/**\n * Get Asciidoctor core version number.\n *\n * @returns {string} - the version number of Asciidoctor core.\n * @memberof Asciidoctor\n */\nAsciidoctor.prototype.getCoreVersion = function () {\n return this.$$const.VERSION\n}\n\n/**\n * Get Asciidoctor.js runtime environment information.\n *\n * @returns {Object} - the runtime environment including the ioModule, the platform, the engine and the framework.\n * @memberof Asciidoctor\n */\nAsciidoctor.prototype.getRuntime = function () {\n return {\n ioModule: Opal.const_get_qualified('::', 'JAVASCRIPT_IO_MODULE'),\n platform: Opal.const_get_qualified('::', 'JAVASCRIPT_PLATFORM'),\n engine: Opal.const_get_qualified('::', 'JAVASCRIPT_ENGINE'),\n framework: Opal.const_get_qualified('::', 'JAVASCRIPT_FRAMEWORK')\n }\n}\n\n/**\n * Parse the AsciiDoc source input into an {@link Document} and convert it to the specified backend format.\n *\n * Accepts input as a Buffer or String.\n *\n * @param {string|Buffer} input - AsciiDoc input as String or Buffer\n * @param {Object} options - a JSON of options to control processing (default: {})\n * @returns {string|Document} - the {@link Document} object if the converted String is written to a file,\n * otherwise the converted String\n * @example\n * var input = '= Hello, AsciiDoc!\\n' +\n * 'Guillaume Grossetie \\n\\n' +\n * 'An introduction to http://asciidoc.org[AsciiDoc].\\n\\n' +\n * '== First Section\\n\\n' +\n * '* item 1\\n' +\n * '* item 2\\n';\n *\n * var html = asciidoctor.convert(input);\n * @memberof Asciidoctor\n */\nAsciidoctor.prototype.convert = function (input, options) {\n if (typeof input === 'object' && input.constructor.name === 'Buffer') {\n input = input.toString('utf8')\n }\n var result = this.$convert(input, prepareOptions(options))\n return result === Opal.nil ? '' : result\n}\n\n/**\n * Parse the AsciiDoc source input into an {@link Document} and convert it to the specified backend format.\n *\n * @param {string} filename - source filename\n * @param {Object} options - a JSON of options to control processing (default: {})\n * @returns {string|Document} - the {@link Document} object if the converted String is written to a file,\n * otherwise the converted String\n * @example\n * var html = asciidoctor.convertFile('./document.adoc');\n * @memberof Asciidoctor\n */\nAsciidoctor.prototype.convertFile = function (filename, options) {\n return this.$convert_file(filename, prepareOptions(options))\n}\n\n/**\n * Parse the AsciiDoc source input into an {@link Document}\n *\n * Accepts input as a Buffer or String.\n *\n * @param {string|Buffer} input - AsciiDoc input as String or Buffer\n * @param {Object} options - a JSON of options to control processing (default: {})\n * @returns {Document} - the {@link Document} object\n * @memberof Asciidoctor\n */\nAsciidoctor.prototype.load = function (input, options) {\n if (typeof input === 'object' && input.constructor.name === 'Buffer') {\n input = input.toString('utf8')\n }\n return this.$load(input, prepareOptions(options))\n}\n\n/**\n * Parse the contents of the AsciiDoc source file into an {@link Document}\n *\n * @param {string} filename - source filename\n * @param {Object} options - a JSON of options to control processing (default: {})\n * @returns {Document} - the {@link Document} object\n * @memberof Asciidoctor\n */\nAsciidoctor.prototype.loadFile = function (filename, options) {\n return this.$load_file(filename, prepareOptions(options))\n}\n\n// AbstractBlock API\n\n/**\n * @namespace\n * @extends AbstractNode\n */\nvar AbstractBlock = Opal.Asciidoctor.AbstractBlock\n\n/**\n * Append a block to this block's list of child blocks.\n * @param {AbstractBlock} block - the block to append\n * @returns {AbstractBlock} - the parent block to which this block was appended.\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.append = function (block) {\n this.$append(block)\n return this\n}\n\n/**\n * Get the String title of this Block with title substitions applied\n *\n * The following substitutions are applied to block and section titles:\n *\n * specialcharacters, quotes, replacements, macros, attributes and post_replacements\n *\n * @returns {string} - the converted String title for this Block, or undefined if the title is not set.\n * @example\n * block.title // \"Foo 3^ # {two-colons} Bar(1)\"\n * block.getTitle(); // \"Foo 3^ # :: Bar(1)\"\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.getTitle = function () {\n var title = this.$title()\n return title === Opal.nil ? undefined : title\n}\n\n/**\n * Set the String block title.\n *\n * @param {string} title - The block title\n * @returns {string} - the new String title assigned to this Block.\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.setTitle = function (title) {\n return this['$title='](title)\n}\n\n/**\n * Convenience method that returns the interpreted title of the Block\n * with the caption prepended.\n * Concatenates the value of this Block's caption instance variable and the\n * return value of this Block's title method. No space is added between the\n * two values. If the Block does not have a caption, the interpreted title is\n * returned.\n *\n * @returns {string} - the converted String title prefixed with the caption, or just the converted String title if no caption is set\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.getCaptionedTitle = function () {\n return this.$captioned_title()\n}\n\n/**\n * Get the style (block type qualifier) for this block.\n *\n * @returns {string} - the style for this block\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.getStyle = function () {\n var style = this.style\n return style === Opal.nil ? undefined : style\n}\n\n/**\n * Set the style for this block.\n *\n * @param {string} style - Style\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.setStyle = function (style) {\n this.style = style\n}\n\n/**\n * Get the location in the AsciiDoc source where this block begins.\n *\n * @returns {string} - the style for this block\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.getSourceLocation = function () {\n var sourceLocation = this.source_location\n if (sourceLocation === Opal.nil) {\n return undefined\n }\n sourceLocation.getFile = function () {\n var file = this.file\n return file === Opal.nil ? undefined : file\n }\n sourceLocation.getDirectory = function () {\n var dir = this.dir\n return dir === Opal.nil ? undefined : dir\n }\n sourceLocation.getPath = function () {\n var path = this.path\n return path === Opal.nil ? undefined : path\n }\n sourceLocation.getLineNumber = function () {\n var lineno = this.lineno\n return lineno === Opal.nil ? undefined : lineno\n }\n return sourceLocation\n}\n\n/**\n * Get the caption for this block.\n *\n * @returns {string} - the caption for this block\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.getCaption = function () {\n var caption = this.$caption()\n return caption === Opal.nil ? undefined : caption\n}\n\n/**\n * Set the caption for this block.\n *\n * @param {string} caption - Caption\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.setCaption = function (caption) {\n this.caption = caption\n}\n\n/**\n * Get the level of this section or the section level in which this block resides.\n *\n * @returns {number} - the level (Integer) of this section\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.getLevel = function () {\n var level = this.level\n return level === Opal.nil ? undefined : level\n}\n\n/**\n * Get the substitution keywords to be applied to the contents of this block.\n *\n * @returns {Array} - the list of {string} substitution keywords associated with this block.\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.getSubstitutions = function () {\n return this.subs\n}\n\n/**\n * Check whether a given substitution keyword is present in the substitutions for this block.\n *\n * @returns {boolean} - whether the substitution is present on this block.\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.hasSubstitution = function (substitution) {\n return this['$sub?'](substitution)\n}\n\n/**\n * Remove the specified substitution keyword from the list of substitutions for this block.\n *\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.removeSubstitution = function (substitution) {\n this.$remove_sub(substitution)\n}\n\n/**\n * Checks if the {@link AbstractBlock} contains any child blocks.\n *\n * @returns {boolean} - whether the {@link AbstractBlock} has child blocks.\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.hasBlocks = function () {\n return this.blocks.length > 0\n}\n\n/**\n * Get the list of {@link AbstractBlock} sub-blocks for this block.\n *\n * @returns {Array} - a list of {@link AbstractBlock} sub-blocks\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.getBlocks = function () {\n return this.blocks\n}\n\n/**\n * Get the converted result of the child blocks by converting the children appropriate to content model that this block supports.\n *\n * @returns {string} - the converted result of the child blocks\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.getContent = function () {\n return this.$content()\n}\n\n/**\n * Get the converted content for this block.\n * If the block has child blocks, the content method should cause them to be converted\n * and returned as content that can be included in the parent block's template.\n *\n * @returns {string} - the converted String content for this block\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.convert = function () {\n return this.$convert()\n}\n\n/**\n * Query for all descendant block-level nodes in the document tree\n * that match the specified selector (context, style, id, and/or role).\n * If a function block is given, it's used as an additional filter.\n * If no selector or function block is supplied, all block-level nodes in the tree are returned.\n * @param {Object} [selector]\n * @param {function} [block]\n * @example\n * doc.findBy({'context': 'section'});\n * // => { level: 0, title: \"Hello, AsciiDoc!\", blocks: 0 }\n * // => { level: 1, title: \"First Section\", blocks: 1 }\n *\n * doc.findBy({'context': 'section'}, function (section) { return section.getLevel() === 1; });\n * // => { level: 1, title: \"First Section\", blocks: 1 }\n *\n * doc.findBy({'context': 'listing', 'style': 'source'});\n * // => { context: :listing, content_model: :verbatim, style: \"source\", lines: 1 }\n *\n * @returns {Array} - a list of block-level nodes that match the filter or an empty list if no matches are found\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.findBy = function (selector, block) {\n if (typeof block === 'undefined' && typeof selector === 'function') {\n return Opal.send(this, 'find_by', null, selector)\n } else if (typeof block === 'function') {\n return Opal.send(this, 'find_by', [toHash(selector)], block)\n } else {\n return this.$find_by(toHash(selector))\n }\n}\n\n/**\n * Get the source line number where this block started.\n * @returns {number} - the source line number where this block started\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.getLineNumber = function () {\n var lineno = this.$lineno()\n return lineno === Opal.nil ? undefined : lineno\n}\n\n/**\n * Check whether this block has any child Section objects.\n * Only applies to Document and Section instances.\n * @returns {boolean} - true if this block has child Section objects, otherwise false\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.hasSections = function () {\n // REMIND: call directly the underlying method \"$sections?\"\n // once https://github.com/asciidoctor/asciidoctor/pull/3591 is merged and a new version is released.\n // return this['$sections?']()\n return this.next_section_index !== Opal.nil && this.next_section_index > 0\n}\n\n/**\n * Get the Array of child Section objects.\n * Only applies to Document and Section instances.\n * @memberof AbstractBlock\n * @returns {Array
    } - an {Array} of {@link Section} objects\n */\nAbstractBlock.prototype.getSections = function () {\n return this.$sections()\n}\n\n/**\n * Get the numeral of this block (if section, relative to parent, otherwise absolute).\n * Only assigned to section if automatic section numbering is enabled.\n * Only assigned to formal block (block with title) if corresponding caption attribute is present.\n * If the section is an appendix, the numeral is a letter (starting with A).\n * @returns {string} - the numeral\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.getNumeral = function () {\n return this.$numeral()\n}\n\n/**\n * Set the numeral of this block.\n * @param {string} value - The numeral value\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.setNumeral = function (value) {\n this['$numeral='](value)\n}\n\n/**\n * A convenience method that checks whether the title of this block is defined.\n *\n * @returns {boolean} - a {boolean} indicating whether this block has a title.\n * @memberof AbstractBlock\n */\nAbstractBlock.prototype.hasTitle = function () {\n return this['$title?']()\n}\n\n// Section API\n\n/**\n * @description\n * Methods for managing sections of AsciiDoc content in a document.\n *\n * @example\n *
    \n *   section = asciidoctor.Section.create()\n *   section.setTitle('Section 1')\n *   section.setId('sect1')\n *   section.getBlocks().length // 0\n *   section.getId() // \"sect1\"\n *   section.append(newBlock)\n *   section.getBlocks().length // 1\n * 
    \n * @namespace\n * @extends AbstractBlock\n */\nvar Section = Opal.Asciidoctor.Section\n\n/**\n * Create a {Section} object.\n * @param {AbstractBlock} [parent] - The parent AbstractBlock. If set, must be a Document or Section object (default: undefined)\n * @param {number} [level] - The Integer level of this section (default: 1 more than parent level or 1 if parent not defined)\n * @param {boolean} [numbered] - A Boolean indicating whether numbering is enabled for this Section (default: false)\n * @param {Object} [opts] - An optional JSON of options (default: {})\n * @returns {Section} - a new {Section} object\n * @memberof Section\n */\nSection.create = function (parent, level, numbered, opts) {\n if (opts && opts.attributes) {\n opts.attributes = toHash(opts.attributes)\n }\n return this.$new(parent, level, numbered, toHash(opts))\n}\n\n/**\n * Set the level of this section or the section level in which this block resides.\n * @param {number} level - Level (Integer)\n * @memberof AbstractBlock\n */\nSection.prototype.setLevel = function (level) {\n this.level = level\n}\n\n/**\n * Get the 0-based index order of this section within the parent block.\n * @returns {number}\n * @memberof Section\n */\nSection.prototype.getIndex = function () {\n return this.index\n}\n\n/**\n * Set the 0-based index order of this section within the parent block.\n * @param {string} index - The index order of this section\n * @memberof Section\n */\nSection.prototype.setIndex = function (index) {\n this.index = index\n}\n\n/**\n * Get the section name of this section.\n * @returns {string|undefined}\n * @memberof Section\n */\nSection.prototype.getSectionName = function () {\n var sectname = this.sectname\n return sectname === Opal.nil ? undefined : sectname\n}\n\n/**\n * Set the section name of this section.\n * @param {string} value - The section name\n * @memberof Section\n */\nSection.prototype.setSectionName = function (value) {\n this.sectname = value\n}\n\n/**\n * Get the flag to indicate whether this is a special section or a child of one.\n * @returns {boolean}\n * @memberof Section\n */\nSection.prototype.isSpecial = function () {\n return this.special\n}\n\n/**\n * Set the flag to indicate whether this is a special section or a child of one.\n * @param {boolean} value - A flag to indicated if this is a special section\n * @memberof Section\n */\nSection.prototype.setSpecial = function (value) {\n this.special = value\n}\n\n/**\n * Get the state of the numbered attribute at this section (need to preserve for creating TOC).\n * @returns {boolean}\n * @memberof Section\n */\nSection.prototype.isNumbered = function () {\n return this.numbered\n}\n\n/**\n * Get the caption for this section (only relevant for appendices).\n * @returns {string}\n * @memberof Section\n */\nSection.prototype.getCaption = function () {\n var value = this.caption\n return value === Opal.nil ? undefined : value\n}\n\n/**\n * Get the name of the Section (title)\n * @returns {string}\n * @see {@link AbstractBlock#getTitle}\n * @memberof Section\n */\nSection.prototype.getName = function () {\n return this.getTitle()\n}\n\n/**\n * @description\n * Methods for managing AsciiDoc content blocks.\n *\n * @example\n * block = asciidoctor.Block.create(parent, 'paragraph', {source: '_This_ is a '})\n * block.getContent()\n * // \"This is a <test>\"\n *\n * @namespace\n * @extends AbstractBlock\n */\nvar Block = Opal.Asciidoctor.Block\n\n/**\n * Create a {Block} object.\n * @param {AbstractBlock} parent - The parent {AbstractBlock} with a compound content model to which this {Block} will be appended.\n * @param {string} context - The context name for the type of content (e.g., \"paragraph\").\n * @param {Object} [opts] - a JSON of options to customize block initialization: (default: {})\n * @param {string} opts.content_model - indicates whether blocks can be nested in this {Block} (\"compound\"),\n * otherwise how the lines should be processed (\"simple\", \"verbatim\", \"raw\", \"empty\"). (default: \"simple\")\n * @param {Object} opts.attributes - a JSON of attributes (key/value pairs) to assign to this {Block}. (default: {})\n * @param {string|Array} opts.source - a String or {Array} of raw source for this {Block}. (default: undefined)\n *\n * IMPORTANT: If you don't specify the `subs` option, you must explicitly call the `commit_subs` method to resolve and assign the substitutions\n * to this block (which are resolved from the `subs` attribute, if specified, or the default substitutions based on this block's context).\n * If you want to use the default subs for a block, pass the option `subs: \"default\"`.\n * You can override the default subs using the `default_subs` option.\n *\n * @returns {Block} - a new {Block} object\n * @memberof Block\n */\nBlock.create = function (parent, context, opts) {\n if (opts && opts.attributes) {\n opts.attributes = toHash(opts.attributes)\n }\n return this.$new(parent, context, toHash(opts))\n}\n\n/**\n * Get the source of this block.\n * @returns {string} - the String source of this block.\n * @memberof Block\n */\nBlock.prototype.getSource = function () {\n return this.$source()\n}\n\n/**\n * Get the source lines of this block.\n * @returns {Array} - the String {Array} of source lines for this block.\n * @memberof Block\n */\nBlock.prototype.getSourceLines = function () {\n return this.lines\n}\n\n// AbstractNode API\n\n/**\n * @namespace\n * @description\n * An abstract base class that provides state and methods for managing a node of AsciiDoc content.\n * The state and methods on this class are common to all content segments in an AsciiDoc document.\n */\nvar AbstractNode = Opal.Asciidoctor.AbstractNode\n\n/**\n * Apply the specified substitutions to the text.\n * If no substitutions are specified, the following substitutions are applied:\n * specialcharacters, quotes, attributes, replacements, macros, and post_replacements.\n *\n * @param {string|Array} text - The String or String Array of text to process; must not be undefined.\n * @param {Array} [subs] - The substitutions to perform; must be an Array or undefined.\n * @returns {string|Array} - a String or String Array to match the type of the text argument with substitutions applied.\n * @memberof AbstractNode\n */\nAbstractNode.prototype.applySubstitutions = function (text, subs) {\n return this.$apply_subs(text, subs)\n}\n\n/**\n * Resolve the list of comma-delimited subs against the possible options.\n *\n * @param {string} subs - The comma-delimited String of substitution names or aliases.\n * @param {string} [type] - A String representing the context for which the subs are being resolved (default: 'block').\n * @param {Array} [defaults] - An Array of substitutions to start with when computing incremental substitutions (default: undefined).\n * @param {string} [subject] - The String to use in log messages to communicate the subject for which subs are being resolved (default: undefined)\n *\n * @returns {Array} - An Array of Strings representing the substitution operation or nothing if no subs are found.\n * @memberof AbstractNode\n */\nAbstractNode.prototype.resolveSubstitutions = function (subs, type, defaults, subject) {\n if (typeof type === 'undefined') {\n type = 'block'\n }\n if (typeof defaults === 'undefined') {\n defaults = Opal.nil\n }\n if (typeof subject === 'undefined') {\n subject = Opal.nil\n }\n return this.$resolve_subs(subs, type, defaults, subject)\n}\n\n/**\n * Call {@link AbstractNode#resolveSubstitutions} for the 'block' type.\n *\n * @see {@link AbstractNode#resolveSubstitutions}\n */\nAbstractNode.prototype.resolveBlockSubstitutions = function (subs, defaults, subject) {\n return this.resolveSubstitutions(subs, 'block', defaults, subject)\n}\n\n/**\n * Call {@link AbstractNode#resolveSubstitutions} for the 'inline' type with the subject set as passthrough macro.\n *\n * @see {@link AbstractNode#resolveSubstitutions}\n */\nAbstractNode.prototype.resolvePassSubstitutions = function (subs) {\n return this.resolveSubstitutions(subs, 'inline', undefined, 'passthrough macro')\n}\n\n/**\n * @returns {string} - the String name of this node\n * @memberof AbstractNode\n */\nAbstractNode.prototype.getNodeName = function () {\n return this.node_name\n}\n\n/**\n * @returns {Object} - the JSON of attributes for this node\n * @memberof AbstractNode\n */\nAbstractNode.prototype.getAttributes = function () {\n return fromHash(this.attributes)\n}\n\n/**\n * Get the value of the specified attribute.\n * If the attribute is not found on this node, fallback_name is set, and this node is not the Document node, get the value of the specified attribute from the Document node.\n *\n * Look for the specified attribute in the attributes on this node and return the value of the attribute, if found.\n * Otherwise, if fallback_name is set (default: same as name) and this node is not the Document node, look for that attribute on the Document node and return its value, if found.\n * Otherwise, return the default value (default: undefined).\n *\n * @param {string} name - The String of the attribute to resolve.\n * @param {*} [defaultValue] - The {Object} value to return if the attribute is not found (default: undefined).\n * @param {string} [fallbackName] - The String of the attribute to resolve on the Document if the attribute is not found on this node (default: same as name).\n *\n * @returns {*} - the {Object} value (typically a String) of the attribute or defaultValue if the attribute is not found.\n * @memberof AbstractNode\n */\nAbstractNode.prototype.getAttribute = function (name, defaultValue, fallbackName) {\n var value = this.$attr(name, defaultValue, fallbackName)\n return value === Opal.nil ? undefined : value\n}\n\n/**\n * Check whether the specified attribute is present on this node.\n *\n * @param {string} name - The String of the attribute to resolve.\n * @returns {boolean} - true if the attribute is present, otherwise false\n * @memberof AbstractNode\n */\nAbstractNode.prototype.hasAttribute = function (name) {\n return name in this.attributes.$$smap\n}\n\n/**\n * Check if the specified attribute is defined using the same logic as {AbstractNode#getAttribute}, optionally performing acomparison with the expected value if specified.\n *\n * Look for the specified attribute in the attributes on this node.\n * If not found, fallback_name is specified (default: same as name), and this node is not the Document node, look for that attribute on the Document node.\n * In either case, if the attribute is found, and the comparison value is truthy, return whether the two values match.\n * Otherwise, return whether the attribute was found.\n *\n * @param {string} name - The String name of the attribute to resolve.\n * @param {*} [expectedValue] - The expected Object value of the attribute (default: undefined).\n * @param {string} fallbackName - The String of the attribute to resolve on the Document if the attribute is not found on this node (default: same as name).\n *\n * @returns {boolean} - a Boolean indicating whether the attribute exists and, if a truthy comparison value is specified, whether the value of the attribute matches the comparison value.\n * @memberof AbstractNode\n */\nAbstractNode.prototype.isAttribute = function (name, expectedValue, fallbackName) {\n var result = this['$attr?'](name, expectedValue, fallbackName)\n return result === Opal.nil ? false : result\n}\n\n/**\n * Assign the value to the attribute name for the current node.\n *\n * @param {string} name - The String attribute name to assign\n * @param {*} value - The Object value to assign to the attribute (default: '')\n * @param {boolean} overwrite - A Boolean indicating whether to assign the attribute if currently present in the attributes JSON (default: true)\n *\n * @returns {boolean} - a Boolean indicating whether the assignment was performed\n * @memberof AbstractNode\n */\nAbstractNode.prototype.setAttribute = function (name, value, overwrite) {\n if (typeof overwrite === 'undefined') overwrite = true\n return this.$set_attr(name, value, overwrite)\n}\n\n/**\n * Remove the attribute from the current node.\n * @param {string} name - The String attribute name to remove\n * @returns {string} - the previous {string} value, or undefined if the attribute was not present.\n * @memberof AbstractNode\n */\nAbstractNode.prototype.removeAttribute = function (name) {\n var value = this.$remove_attr(name)\n return value === Opal.nil ? undefined : value\n}\n\n/**\n * Get the {@link Document} to which this node belongs.\n *\n * @returns {Document} - the {@link Document} object to which this node belongs.\n * @memberof AbstractNode\n */\nAbstractNode.prototype.getDocument = function () {\n return this.document\n}\n\n/**\n * Get the {@link AbstractNode} to which this node is attached.\n *\n * @memberof AbstractNode\n * @returns {AbstractNode} - the {@link AbstractNode} object to which this node is attached,\n * or undefined if this node has no parent.\n */\nAbstractNode.prototype.getParent = function () {\n var parent = this.parent\n return parent === Opal.nil ? undefined : parent\n}\n\n/**\n * @returns {boolean} - true if this {AbstractNode} is an instance of {Inline}\n * @memberof AbstractNode\n */\nAbstractNode.prototype.isInline = function () {\n return this['$inline?']()\n}\n\n/**\n * @returns {boolean} - true if this {AbstractNode} is an instance of {Block}\n * @memberof AbstractNode\n */\nAbstractNode.prototype.isBlock = function () {\n return this['$block?']()\n}\n\n/**\n * Checks if the role attribute is set on this node and, if an expected value is given, whether the space-separated role matches that value.\n *\n * @param {string} expectedValue - The expected String value of the role (optional, default: undefined)\n *\n * @returns {boolean} - a Boolean indicating whether the role attribute is set on this node and, if an expected value is given, whether the space-separated role matches that value.\n * @memberof AbstractNode\n */\nAbstractNode.prototype.isRole = function (expectedValue) {\n return this['$role?'](expectedValue)\n}\n\n/**\n * Retrieves the space-separated String role for this node.\n *\n * @returns {string} - the role as a space-separated String.\n * @memberof AbstractNode\n */\nAbstractNode.prototype.getRole = function () {\n return this.$role()\n}\n\n/**\n * Checks if the specified role is present in the list of roles for this node.\n *\n * @param {string} name - The String name of the role to find.\n *\n * @returns {boolean} - a Boolean indicating whether this node has the specified role.\n * @memberof AbstractNode\n */\nAbstractNode.prototype.hasRole = function (name) {\n return this['$has_role?'](name)\n}\n\n/**\n * Retrieves the String role names for this node as an Array.\n *\n * @returns {Array} - the role names as a String {Array}, which is empty if the role attribute is absent on this node.\n * @memberof AbstractNode\n */\nAbstractNode.prototype.getRoles = function () {\n return this.$roles()\n}\n\n/**\n * Adds the given role directly to this node.\n *\n * @param {string} name - The name of the role to add\n *\n * @returns {boolean} - a Boolean indicating whether the role was added.\n * @memberof AbstractNode\n */\nAbstractNode.prototype.addRole = function (name) {\n return this.$add_role(name)\n}\n\n/**\n * Public: Removes the given role directly from this node.\n *\n * @param {string} name - The name of the role to remove\n *\n * @returns {boolean} - a Boolean indicating whether the role was removed.\n * @memberof AbstractNode\n */\nAbstractNode.prototype.removeRole = function (name) {\n return this.$remove_role(name)\n}\n\n/**\n * A convenience method that checks if the reftext attribute is defined.\n * @returns {boolean} - A Boolean indicating whether the reftext attribute is defined\n * @memberof AbstractNode\n */\nAbstractNode.prototype.isReftext = function () {\n return this['$reftext?']()\n}\n\n/**\n * A convenience method that returns the value of the reftext attribute with substitutions applied.\n * @returns {string|undefined} - the value of the reftext attribute with substitutions applied.\n * @memberof AbstractNode\n */\nAbstractNode.prototype.getReftext = function () {\n var reftext = this.$reftext()\n return reftext === Opal.nil ? undefined : reftext\n}\n\n/**\n * @returns {string} - Get the context name for this node\n * @memberof AbstractNode\n */\nAbstractNode.prototype.getContext = function () {\n var context = this.context\n // Automatically convert Opal pseudo-symbol to String\n return typeof context === 'string' ? context : context.toString()\n}\n\n/**\n * @returns {string} - the String id of this node\n * @memberof AbstractNode\n */\nAbstractNode.prototype.getId = function () {\n var id = this.id\n return id === Opal.nil ? undefined : id\n}\n\n/**\n * @param {string} id - the String id of this node\n * @memberof AbstractNode\n */\nAbstractNode.prototype.setId = function (id) {\n this.id = id\n}\n\n/**\n * A convenience method to check if the specified option attribute is enabled on the current node.\n * Check if the option is enabled. This method simply checks to see if the -option attribute is defined on the current node.\n *\n * @param {string} name - the String name of the option\n *\n * @return {boolean} - a Boolean indicating whether the option has been specified\n * @memberof AbstractNode\n */\nAbstractNode.prototype.isOption = function (name) {\n return this['$option?'](name)\n}\n\n/**\n * Set the specified option on this node.\n * This method sets the specified option on this node by setting the -option attribute.\n *\n * @param {string} name - the String name of the option\n *\n * @memberof AbstractNode\n */\nAbstractNode.prototype.setOption = function (name) {\n return this.$set_option(name)\n}\n\n/**\n * @memberof AbstractNode\n */\nAbstractNode.prototype.getIconUri = function (name) {\n return this.$icon_uri(name)\n}\n\n/**\n * @memberof AbstractNode\n */\nAbstractNode.prototype.getMediaUri = function (target, assetDirKey) {\n return this.$media_uri(target, assetDirKey)\n}\n\n/**\n * @memberof AbstractNode\n */\nAbstractNode.prototype.getImageUri = function (targetImage, assetDirKey) {\n return this.$image_uri(targetImage, assetDirKey)\n}\n\n/**\n * Get the {Converter} instance being used to convert the current {Document}.\n * @returns {Object}\n * @memberof AbstractNode\n */\nAbstractNode.prototype.getConverter = function () {\n return this.$converter()\n}\n\n/**\n * @memberof AbstractNode\n */\nAbstractNode.prototype.readContents = function (target, options) {\n return this.$read_contents(target, toHash(options))\n}\n\n/**\n * Read the contents of the file at the specified path.\n * This method assumes that the path is safe to read.\n * It checks that the file is readable before attempting to read it.\n *\n * @param path - the {string} path from which to read the contents\n * @param {Object} options - a JSON {Object} of options to control processing (default: {})\n * @param {boolean} options.warn_on_failure - a {boolean} that controls whether a warning is issued if the file cannot be read (default: false)\n * @param {boolean} options.normalize - a {boolean} that controls whether the lines are normalized and coerced to UTF-8 (default: false)\n *\n * @returns {string} - the String content of the file at the specified path, or undefined if the file does not exist.\n * @memberof AbstractNode\n */\nAbstractNode.prototype.readAsset = function (path, options) {\n var result = this.$read_asset(path, toHash(options))\n return result === Opal.nil ? undefined : result\n}\n\n/**\n * @memberof AbstractNode\n */\nAbstractNode.prototype.normalizeWebPath = function (target, start, preserveTargetUri) {\n return this.$normalize_web_path(target, start, preserveTargetUri)\n}\n\n/**\n * @memberof AbstractNode\n */\nAbstractNode.prototype.normalizeSystemPath = function (target, start, jail, options) {\n return this.$normalize_system_path(target, start, jail, toHash(options))\n}\n\n/**\n * @memberof AbstractNode\n */\nAbstractNode.prototype.normalizeAssetPath = function (assetRef, assetName, autoCorrect) {\n return this.$normalize_asset_path(assetRef, assetName, autoCorrect)\n}\n\n// Document API\n\n/**\n * The {@link Document} class represents a parsed AsciiDoc document.\n *\n * Document is the root node of a parsed AsciiDoc document.
    \n * It provides an abstract syntax tree (AST) that represents the structure of the AsciiDoc document\n * from which the Document object was parsed.\n *\n * Although the constructor can be used to create an empty document object,\n * more commonly, you'll load the document object from AsciiDoc source\n * using the primary API methods on {@link Asciidoctor}.\n * When using one of these APIs, you almost always want to set the safe mode to 'safe' (or 'unsafe')\n * to enable all of Asciidoctor's features.\n *\n *
    \n *   var doc = Asciidoctor.load('= Hello, AsciiDoc!', { 'safe': 'safe' })\n *   // => Asciidoctor::Document { doctype: \"article\", doctitle: \"Hello, AsciiDoc!\", blocks: 0 }\n * 
    \n *\n * Instances of this class can be used to extract information from the document or alter its structure.\n * As such, the Document object is most often used in extensions and by integrations.\n *\n * The most basic usage of the Document object is to retrieve the document's title.\n *\n *
    \n *  var source = '= Document Title'\n *  var doc = asciidoctor.load(source, { 'safe': 'safe' })\n *  console.log(doc.getTitle()) // 'Document Title'\n * 
    \n *\n * You can also use the Document object to access document attributes defined in the header, such as the author and doctype.\n * @namespace\n * @extends AbstractBlock\n */\nvar Document = Opal.Asciidoctor.Document\n\n/**\n * Returns a JSON {Object} of references captured by the processor.\n *\n * @returns {Object} - a JSON {Object} of {AbstractNode} in the document.\n * @memberof Document\n */\nDocument.prototype.getRefs = function () {\n return fromHash(this.catalog.$$smap.refs)\n}\n\n/**\n * Returns an {Array} of {Document/ImageReference} captured by the processor.\n *\n * @returns {Array} - an {Array} of {Document/ImageReference} in the document.\n * Will return an empty array if the option \"catalog_assets: true\" was not defined on the processor.\n * @memberof Document\n */\nDocument.prototype.getImages = function () {\n return this.catalog.$$smap.images\n}\n\n/**\n * Returns an {Array} of links captured by the processor.\n *\n * @returns {Array} - an {Array} of links in the document.\n * Will return an empty array if:\n * - the function was called before the document was converted\n * - the option \"catalog_assets: true\" was not defined on the processor\n * @memberof Document\n */\nDocument.prototype.getLinks = function () {\n return this.catalog.$$smap.links\n}\n\n/**\n * @returns {boolean} - true if the document has footnotes otherwise false\n * @memberof Document\n */\nDocument.prototype.hasFootnotes = function () {\n return this['$footnotes?']()\n}\n\n/**\n * Returns an {Array} of {Document/Footnote} captured by the processor.\n *\n * @returns {Array} - an {Array} of {Document/Footnote} in the document.\n * Will return an empty array if the function was called before the document was converted.\n * @memberof Document\n */\nDocument.prototype.getFootnotes = function () {\n return this.$footnotes()\n}\n\n/**\n * Returns the level-0 {Section} (i.e. the document title).\n * Only stores the title, not the header attributes.\n *\n * @returns {string} - the level-0 {Section}.\n * @memberof Document\n */\nDocument.prototype.getHeader = function () {\n return this.header\n}\n\n/**\n * @memberof Document\n */\nDocument.prototype.setAttribute = function (name, value) {\n return this.$set_attribute(name, value)\n}\n\n/**\n\n * @memberof Document\n */\nDocument.prototype.removeAttribute = function (name) {\n this.attributes.$delete(name)\n this.attribute_overrides.$delete(name)\n}\n\n/**\n * Convert the AsciiDoc document using the templates loaded by the Converter.\n * If a \"template_dir\" is not specified, or a template is missing, the converter will fall back to using the appropriate built-in template.\n *\n * @param {Object} [options] - a JSON of options to control processing (default: {})\n *\n * @returns {string}\n * @memberof Document\n */\nDocument.prototype.convert = function (options) {\n var result = this.$convert(toHash(options))\n return result === Opal.nil ? '' : result\n}\n\n/**\n * Write the output to the specified file.\n *\n * If the converter responds to \"write\", delegate the work of writing the file to that method.\n * Otherwise, write the output the specified file.\n *\n * @param {string} output\n * @param {string} target\n *\n * @memberof Document\n */\nDocument.prototype.write = function (output, target) {\n return this.$write(output, target)\n}\n\n/**\n * @returns {string} - the full name of the author as a String\n * @memberof Document\n */\nDocument.prototype.getAuthor = function () {\n return this.$author()\n}\n\n/**\n * @returns {string}\n * @memberof Document\n */\nDocument.prototype.getSource = function () {\n return this.$source()\n}\n\n/**\n * @returns {Array}\n * @memberof Document\n */\nDocument.prototype.getSourceLines = function () {\n return this.$source_lines()\n}\n\n/**\n * @returns {boolean}\n * @memberof Document\n */\nDocument.prototype.isNested = function () {\n return this['$nested?']()\n}\n\n/**\n * @returns {boolean}\n * @memberof Document\n */\nDocument.prototype.isEmbedded = function () {\n return this['$embedded?']()\n}\n\n/**\n * @returns {boolean}\n * @memberof Document\n */\nDocument.prototype.hasExtensions = function () {\n return this['$extensions?']()\n}\n\n/**\n * Get the value of the doctype attribute for this document.\n * @returns {string}\n * @memberof Document\n */\nDocument.prototype.getDoctype = function () {\n return this.doctype\n}\n\n/**\n * Get the value of the backend attribute for this document.\n * @returns {string}\n * @memberof Document\n */\nDocument.prototype.getBackend = function () {\n return this.backend\n}\n\n/**\n * @returns {boolean}\n * @memberof Document\n */\nDocument.prototype.isBasebackend = function (base) {\n return this['$basebackend?'](base)\n}\n\n/**\n * Get the title explicitly defined in the document attributes.\n * @returns {string}\n * @see {@link AbstractNode#getAttributes}\n * @memberof Document\n */\nDocument.prototype.getTitle = function () {\n var title = this.$title()\n return title === Opal.nil ? undefined : title\n}\n\n/**\n * Set the title on the document header\n *\n * Set the title of the document header to the specified value.\n * If the header does not exist, it is first created.\n *\n * @param {string} title - the String title to assign as the title of the document header\n *\n * @returns {string} - the new String title assigned to the document header\n * @memberof Document\n */\nDocument.prototype.setTitle = function (title) {\n return this['$title='](title)\n}\n\n/**\n * @returns {Document/Title} - a {@link Document/Title}\n * @memberof Document\n */\nDocument.prototype.getDocumentTitle = function (options) {\n var doctitle = this.$doctitle(toHash(options))\n return doctitle === Opal.nil ? undefined : doctitle\n}\n\n/**\n * @see {@link Document#getDocumentTitle}\n * @memberof Document\n */\nDocument.prototype.getDoctitle = Document.prototype.getDocumentTitle\n\n/**\n * Get the document catalog JSON object.\n * @returns {Object}\n * @memberof Document\n */\nDocument.prototype.getCatalog = function () {\n return fromHash(this.catalog)\n}\n\n/**\n *\n * @returns {Object}\n * @see Document#getCatalog\n * @memberof Document\n */\nDocument.prototype.getReferences = Document.prototype.getCatalog\n\n/**\n * Get the document revision date from document header (document attribute revdate).\n * @returns {string}\n * @memberof Document\n */\nDocument.prototype.getRevisionDate = function () {\n return this.getAttribute('revdate')\n}\n\n/**\n * @see Document#getRevisionDate\n * @returns {string}\n * @memberof Document\n */\nDocument.prototype.getRevdate = function () {\n return this.getRevisionDate()\n}\n\n/**\n * Get the document revision number from document header (document attribute revnumber).\n * @returns {string}\n * @memberof Document\n */\nDocument.prototype.getRevisionNumber = function () {\n return this.getAttribute('revnumber')\n}\n\n/**\n * Get the document revision remark from document header (document attribute revremark).\n * @returns {string}\n * @memberof Document\n */\nDocument.prototype.getRevisionRemark = function () {\n return this.getAttribute('revremark')\n}\n\n/**\n * Assign a value to the specified attribute in the document header.\n *\n * The assignment will be visible when the header attributes are restored,\n * typically between processor phases (e.g., between parse and convert).\n *\n * @param {string} name - The {string} attribute name to assign\n * @param {Object} value - The {Object} value to assign to the attribute (default: '')\n * @param {boolean} overwrite - A {boolean} indicating whether to assign the attribute\n * if already present in the attributes Hash (default: true)\n *\n * @returns {boolean} - true if the assignment was performed otherwise false\n * @memberof Document\n */\nDocument.prototype.setHeaderAttribute = function (name, value, overwrite) {\n if (typeof overwrite === 'undefined') overwrite = true\n if (typeof value === 'undefined') value = ''\n return this.$set_header_attribute(name, value, overwrite)\n}\n\n/**\n * Convenience method to retrieve the authors of this document as an {Array} of {Document/Author} objects.\n *\n * This method is backed by the author-related attributes on the document.\n *\n * @returns {Array} - an {Array} of {Document/Author} objects.\n * @memberof Document\n */\nDocument.prototype.getAuthors = function () {\n return this.$authors()\n}\n\n// Document.Footnote API\n\n/**\n * @namespace\n * @module Document/Footnote\n */\nvar Footnote = Document.Footnote\n\n/**\n * @returns {number} - the footnote's index\n * @memberof Document/Footnote\n */\nFootnote.prototype.getIndex = function () {\n var index = this.$$data.index\n return index === Opal.nil ? undefined : index\n}\n\n/**\n * @returns {number} - the footnote's id\n * @memberof Document/Footnote\n */\nFootnote.prototype.getId = function () {\n var id = this.$$data.id\n return id === Opal.nil ? undefined : id\n}\n\n/**\n * @returns {string} - the footnote's text\n * @memberof Document/Footnote\n */\nFootnote.prototype.getText = function () {\n var text = this.$$data.text\n return text === Opal.nil ? undefined : text\n}\n\n// Document.ImageReference API\n\n/**\n * @class\n * @module Document/ImageReference\n */\nvar ImageReference = Document.ImageReference\n\n/**\n * @returns {string} - the image's target\n * @memberof Document/ImageReference\n */\nImageReference.prototype.getTarget = function () {\n return this.$$data.target\n}\n\n/**\n * @returns {string} - the image's directory (imagesdir attribute)\n * @memberof Document/ImageReference\n */\nImageReference.prototype.getImagesDirectory = function () {\n var value = this.$$data.imagesdir\n return value === Opal.nil ? undefined : value\n}\n\n// Document.Author API\n\n/**\n * The Author class represents information about an author extracted from document attributes.\n * @namespace\n * @module Document/Author\n */\nvar Author = Document.Author\n\n/**\n * @returns {string} - the author's full name\n * @memberof Document/Author\n */\nAuthor.prototype.getName = function () {\n var name = this.$$data.name\n return name === Opal.nil ? undefined : name\n}\n\n/**\n * @returns {string} - the author's first name\n * @memberof Document/Author\n */\nAuthor.prototype.getFirstName = function () {\n var firstName = this.$$data.firstname\n return firstName === Opal.nil ? undefined : firstName\n}\n\n/**\n * @returns {string} - the author's middle name (or undefined if the author has no middle name)\n * @memberof Document/Author\n */\nAuthor.prototype.getMiddleName = function () {\n var middleName = this.$$data.middlename\n return middleName === Opal.nil ? undefined : middleName\n}\n\n/**\n * @returns {string} - the author's last name\n * @memberof Document/Author\n */\nAuthor.prototype.getLastName = function () {\n var lastName = this.$$data.lastname\n return lastName === Opal.nil ? undefined : lastName\n}\n\n/**\n * @returns {string} - the author's initials (by default based on the author's name)\n * @memberof Document/Author\n */\nAuthor.prototype.getInitials = function () {\n var initials = this.$$data.initials\n return initials === Opal.nil ? undefined : initials\n}\n\n/**\n * @returns {string} - the author's email\n * @memberof Document/Author\n */\nAuthor.prototype.getEmail = function () {\n var email = this.$$data.email\n return email === Opal.nil ? undefined : email\n}\n\n// private constructor\nDocument.RevisionInfo = function (date, number, remark) {\n this.date = date\n this.number = number\n this.remark = remark\n}\n\n/**\n * @class\n * @namespace\n * @module Document/RevisionInfo\n */\nvar RevisionInfo = Document.RevisionInfo\n\n/**\n * Get the document revision date from document header (document attribute revdate).\n * @returns {string}\n * @memberof Document/RevisionInfo\n */\nRevisionInfo.prototype.getDate = function () {\n return this.date\n}\n\n/**\n * Get the document revision number from document header (document attribute revnumber).\n * @returns {string}\n * @memberof Document/RevisionInfo\n */\nRevisionInfo.prototype.getNumber = function () {\n return this.number\n}\n\n/**\n * Get the document revision remark from document header (document attribute revremark).\n * A short summary of changes in this document revision.\n * @returns {string}\n * @memberof Document/RevisionInfo\n */\nRevisionInfo.prototype.getRemark = function () {\n return this.remark\n}\n\n/**\n * @returns {boolean} - true if the revision info is empty (ie. not defined), otherwise false\n * @memberof Document/RevisionInfo\n */\nRevisionInfo.prototype.isEmpty = function () {\n return this.date === undefined && this.number === undefined && this.remark === undefined\n}\n\n// SafeMode API\n\n/**\n * @namespace\n */\nvar SafeMode = Opal.Asciidoctor.SafeMode\n\n/**\n * @param {string} name - the name of the security level\n * @returns {number} - the integer value of the corresponding security level\n */\nSafeMode.getValueForName = function (name) {\n return this.$value_for_name(name)\n}\n\n/**\n * @param {number} value - the integer value of the security level\n * @returns {string} - the name of the corresponding security level\n */\nSafeMode.getNameForValue = function (value) {\n var name = this.$name_for_value(value)\n return name === Opal.nil ? undefined : name\n}\n\n/**\n * @returns {Array} - the String {Array} of security levels\n */\nSafeMode.getNames = function () {\n return this.$names()\n}\n\n// Callouts API\n\n/**\n * Maintains a catalog of callouts and their associations.\n * @namespace\n */\nvar Callouts = Opal.Asciidoctor.Callouts\n\n/**\n * Create a new Callouts.\n * @returns {Callouts} - a new Callouts\n * @memberof Callouts\n */\nCallouts.create = function () {\n return this.$new()\n}\n\n/**\n * Register a new callout for the given list item ordinal.\n * Generates a unique id for this callout based on the index of the next callout list in the document and the index of this callout since the end of the last callout list.\n *\n * @param {number} ordinal - the Integer ordinal (1-based) of the list item to which this callout is to be associated\n * @returns {string} - The unique String id of this callout\n * @example\n * callouts = asciidoctor.Callouts.create()\n * callouts.register(1)\n * // => \"CO1-1\"\n * callouts.nextList()\n * callouts.register(2)\n * // => \"CO2-1\"\n * @memberof Callouts\n */\n\nCallouts.prototype.register = function (ordinal) {\n return this.$register(ordinal)\n}\n/**\n * Get the next callout index in the document.\n *\n * Reads the next callout index in the document and advances the pointer.\n * This method is used during conversion to retrieve the unique id of the callout that was generated during parsing.\n *\n * @returns {string} - The unique String id of the next callout in the document\n * @memberof Callouts\n */\nCallouts.prototype.readNextId = function () {\n return this.$read_next_id()\n}\n\n/**\n * et a space-separated list of callout ids for the specified list item.\n * @param {number} ordinal - the Integer ordinal (1-based) of the list item for which to retrieve the callouts\n * @returns {string} - a space-separated String of callout ids associated with the specified list item\n * @memberof Callouts\n */\nCallouts.prototype.getCalloutIds = function (ordinal) {\n return this.$callout_ids(ordinal)\n}\n\n/**\n * @memberof Callouts\n */\nCallouts.prototype.getLists = function () {\n var lists = this.lists\n if (lists && lists.length > 0) {\n for (var i = 0; i < lists.length; i++) {\n var list = lists[i]\n if (list && list.length > 0) {\n for (var j = 0; j < list.length; j++) {\n if (typeof list[j] === 'object' && '$$smap' in list[j]) {\n list[j] = fromHash(list[j])\n }\n }\n }\n }\n }\n return lists\n}\n\n/**\n * @memberof Callouts\n */\nCallouts.prototype.getListIndex = function () {\n return this.list_index\n}\n\n/**\n * The current list for which callouts are being collected.\n * @returns {Array} - The Array of callouts at the position of the list index pointer\n * @memberof Callouts\n */\nCallouts.prototype.getCurrentList = function () {\n const currentList = this.$current_list()\n if (currentList && currentList.length > 0) {\n for (var i = 0; i < currentList.length; i++) {\n if (typeof currentList[i] === 'object' && '$$smap' in currentList[i]) {\n currentList[i] = fromHash(currentList[i])\n }\n }\n }\n return currentList\n}\n\n/**\n * Advance to the next callout list in the document.\n * @memberof Callouts\n */\nCallouts.prototype.nextList = function () {\n return this.$nextList()\n}\n\n/**\n * Rewind the list index pointer, intended to be used when switching from the parsing to conversion phase.\n * @memberof Callouts\n */\nCallouts.prototype.rewind = function () {\n return this.$rewind()\n}\n\n/**\n * @returns {Document/RevisionInfo} - a {@link Document/RevisionInfo}\n * @memberof Document\n */\nDocument.prototype.getRevisionInfo = function () {\n return new Document.RevisionInfo(this.getRevisionDate(), this.getRevisionNumber(), this.getRevisionRemark())\n}\n\n/**\n * @returns {boolean} - true if the document contains revision info, otherwise false\n * @memberof Document\n */\nDocument.prototype.hasRevisionInfo = function () {\n var revisionInfo = this.getRevisionInfo()\n return !revisionInfo.isEmpty()\n}\n\n/**\n * @returns {boolean}\n * @memberof Document\n */\nDocument.prototype.getNotitle = function () {\n return this.$notitle()\n}\n\n/**\n * @returns {boolean}\n * @memberof Document\n */\nDocument.prototype.getNoheader = function () {\n return this.$noheader()\n}\n\n/**\n * @returns {boolean}\n * @memberof Document\n */\nDocument.prototype.getNofooter = function () {\n return this.$nofooter()\n}\n\n/**\n * @returns {boolean}\n * @memberof Document\n */\nDocument.prototype.hasHeader = function () {\n return this['$header?']()\n}\n\n/**\n * Replay attribute assignments at the block level.\n *\n * This method belongs to an internal API that deals with how attributes are managed by the processor.\n * If you understand why this group of methods are necessary, and what they do, feel free to use them.\n * However, keep in mind they are subject to change at any time.\n *\n * @param {Object} blockAttributes - A JSON of attributes\n * @memberof Document\n */\nDocument.prototype.playbackAttributes = function (blockAttributes) {\n blockAttributes = toHash(blockAttributes)\n if (blockAttributes) {\n var attrEntries = blockAttributes['$[]']('attribute_entries')\n if (attrEntries && Array.isArray(attrEntries)) {\n var result = []\n for (var i = 0; i < attrEntries.length; i++) {\n var attrEntryObject = attrEntries[i]\n if (attrEntryObject && typeof attrEntryObject === 'object' && attrEntryObject.constructor.name === 'Object') {\n attrEntryObject.$name = function () {\n return this.name\n }\n attrEntryObject.$value = function () {\n return this.value\n }\n attrEntryObject.$negate = function () {\n return this.negate\n }\n }\n result.push(attrEntryObject)\n }\n blockAttributes['$[]=']('attribute_entries', result)\n }\n }\n this.$playback_attributes(blockAttributes)\n}\n\n/**\n * Delete the specified attribute from the document if the name is not locked.\n * If the attribute is locked, false is returned.\n * Otherwise, the attribute is deleted.\n *\n * @param {string} name - the String attribute name\n *\n * @returns {boolean} - true if the attribute was deleted, false if it was not because it's locked\n * @memberof Document\n */\nDocument.prototype.deleteAttribute = function (name) {\n return this.$delete_attribute(name)\n}\n\n/**\n * Determine if the attribute has been locked by being assigned in document options.\n *\n * @param {string} key - The attribute key to check\n *\n * @returns {boolean} - true if the attribute is locked, false otherwise\n * @memberof Document\n */\nDocument.prototype.isAttributeLocked = function (key) {\n return this['$attribute_locked?'](key)\n}\n\n/**\n * Restore the attributes to the previously saved state (attributes in header).\n *\n * @memberof Document\n */\nDocument.prototype.restoreAttributes = function () {\n return this.$restore_attributes()\n}\n\n/**\n * Parse the AsciiDoc source stored in the {Reader} into an abstract syntax tree.\n *\n * If the data parameter is not nil, create a new {PreprocessorReader} and assigned it to the reader property of this object.\n * Otherwise, continue with the reader that was created when the {Document} was instantiated.\n * Pass the reader to {Parser.parse} to parse the source data into an abstract syntax tree.\n *\n * If parsing has already been performed, this method returns without performing any processing.\n *\n * @param {string|Array} [data] - The optional replacement AsciiDoc source data as a String or String Array. (default: undefined)\n *\n * @returns {Document} - this {Document}\n * @memberof Document\n */\nDocument.prototype.parse = function (data) {\n return this.$parse(data)\n}\n\n/**\n * @memberof Document\n */\nDocument.prototype.getDocinfo = function (docinfoLocation, suffix) {\n return this.$docinfo(docinfoLocation, suffix)\n}\n\n/**\n * @param {string} [docinfoLocation] - A {string} for checking docinfo extensions at a given location (head or footer) (default: head)\n * @returns {boolean}\n * @memberof Document\n */\nDocument.prototype.hasDocinfoProcessors = function (docinfoLocation) {\n return this['$docinfo_processors?'](docinfoLocation)\n}\n\n/**\n * Increment the specified counter and store it in the block's attributes.\n *\n * @param {string} counterName - the String name of the counter attribute\n * @param {Block} block - the {Block} on which to save the counter\n *\n * @returns {number} - the next number in the sequence for the specified counter\n * @memberof Document\n */\nDocument.prototype.incrementAndStoreCounter = function (counterName, block) {\n return this.$increment_and_store_counter(counterName, block)\n}\n\n/**\n * @deprecated Please use {Document#incrementAndStoreCounter} method.\n * @memberof Document\n */\nDocument.prototype.counterIncrement = Document.prototype.incrementAndStoreCounter\n\n/**\n * Get the named counter and take the next number in the sequence.\n *\n * @param {string} name - the String name of the counter\n * @param {string|number} seed - the initial value as a String or Integer\n *\n * @returns {number} the next number in the sequence for the specified counter\n * @memberof Document\n */\nDocument.prototype.counter = function (name, seed) {\n return this.$counter(name, seed)\n}\n\n/**\n * A read-only integer value indicating the level of security that should be enforced while processing this document.\n * The value must be set in the Document constructor using the \"safe\" option.\n *\n * A value of 0 (UNSAFE) disables any of the security features enforced by Asciidoctor.\n *\n * A value of 1 (SAFE) closely parallels safe mode in AsciiDoc.\n * In particular, it prevents access to files which reside outside of the parent directory of the source file and disables any macro other than the include directive.\n *\n * A value of 10 (SERVER) disallows the document from setting attributes that would affect the conversion of the document,\n * in addition to all the security features of SafeMode.SAFE.\n * For instance, this level forbids changing the backend or source-highlighter using an attribute defined in the source document header.\n * This is the most fundamental level of security for server deployments (hence the name).\n *\n * A value of 20 (SECURE) disallows the document from attempting to read files from the file system and including the contents of them into the document,\n * in addition to all the security features of SafeMode.SECURE.\n * In particular, it disallows use of the include::[] directive and the embedding of binary content (data uri), stylesheets and JavaScripts referenced by the document.\n * (Asciidoctor and trusted extensions may still be allowed to embed trusted content into the document).\n *\n * Since Asciidoctor is aiming for wide adoption, 20 (SECURE) is the default value and is recommended for server deployments.\n *\n * A value of 100 (PARANOID) is planned to disallow the use of passthrough macros and prevents the document from setting any known attributes,\n * in addition to all the security features of SafeMode.SECURE.\n * Please note that this level is not currently implemented (and therefore not enforced)!\n *\n * @returns {number} - An integer value indicating the level of security\n * @memberof Document\n */\nDocument.prototype.getSafe = function () {\n return this.safe\n}\n\n/**\n * Get the Boolean AsciiDoc compatibility mode.\n * Enabling this attribute activates the following syntax changes:\n *\n * * single quotes as constrained emphasis formatting marks\n * * single backticks parsed as inline literal, formatted as monospace\n * * single plus parsed as constrained, monospaced inline formatting\n * * double plus parsed as constrained, monospaced inline formatting\n *\n * @returns {boolean}\n * @memberof Document\n */\nDocument.prototype.getCompatMode = function () {\n return this.compat_mode\n}\n\n/**\n * Get the Boolean flag that indicates whether source map information should be tracked by the parser.\n * @returns {boolean}\n * @memberof Document\n */\nDocument.prototype.getSourcemap = function () {\n var sourcemap = this.sourcemap\n return sourcemap === Opal.nil ? false : sourcemap\n}\n\n/**\n * Set the Boolean flag that indicates whether source map information should be tracked by the parser.\n * @param {boolean} value\n * @memberof Document\n */\nDocument.prototype.setSourcemap = function (value) {\n this.sourcemap = value\n}\n\n/**\n * Get the JSON of document counters.\n * @returns {Object}\n * @memberof Document\n */\nDocument.prototype.getCounters = function () {\n return fromHash(this.counters)\n}\n\n/**\n * @returns {Object}\n * @memberof Document\n */\nDocument.prototype.getCallouts = function () {\n return this.$callouts()\n}\n\n/**\n * Get the String base directory for converting this document.\n *\n * Defaults to directory of the source file.\n * If the source is a string, defaults to the current directory.\n * @returns {string}\n * @memberof Document\n */\nDocument.prototype.getBaseDir = function () {\n return this.base_dir\n}\n\n/**\n * Get the JSON of resolved options used to initialize this {Document}.\n * @returns {Object}\n * @memberof Document\n */\nDocument.prototype.getOptions = function () {\n return fromHash(this.options)\n}\n\n/**\n * Get the outfilesuffix defined at the end of the header.\n * @returns {string}\n * @memberof Document\n */\nDocument.prototype.getOutfilesuffix = function () {\n return this.outfilesuffix\n}\n\n/**\n * Get a reference to the parent Document of this nested document.\n * @returns {Document|undefined}\n * @memberof Document\n */\nDocument.prototype.getParentDocument = function () {\n var parentDocument = this.parent_document\n return parentDocument === Opal.nil ? undefined : parentDocument\n}\n\n/**\n * Get the {Reader} associated with this document.\n * @returns {Object}\n * @memberof Document\n */\nDocument.prototype.getReader = function () {\n return this.reader\n}\n\n/**\n * Get the {Converter} instance being used to convert the current {Document}.\n * @returns {Object}\n * @memberof Document\n */\nDocument.prototype.getConverter = function () {\n return this.converter\n}\n\n/**\n * Get the activated {Extensions.Registry} associated with this document.\n * @returns {Extensions/Registry}\n * @memberof Document\n */\nDocument.prototype.getExtensions = function () {\n var extensions = this.extensions\n return extensions === Opal.nil ? undefined : extensions\n}\n\n// Document.Title API\n\n/**\n * A partitioned title (i.e., title & subtitle).\n * @namespace\n * @module Document/Title\n */\nvar Title = Document.Title\n\n/**\n * @returns {string}\n * @memberof Document/Title\n */\nTitle.prototype.getMain = function () {\n return this.main\n}\n\n/**\n * @returns {string}\n * @memberof Document/Title\n */\nTitle.prototype.getCombined = function () {\n return this.combined\n}\n\n/**\n * @returns {string}\n * @memberof Document/Title\n */\nTitle.prototype.getSubtitle = function () {\n var subtitle = this.subtitle\n return subtitle === Opal.nil ? undefined : subtitle\n}\n\n/**\n * @returns {boolean}\n * @memberof Document/Title\n */\nTitle.prototype.isSanitized = function () {\n var sanitized = this['$sanitized?']()\n return sanitized === Opal.nil ? false : sanitized\n}\n\n/**\n * @returns {boolean}\n * @memberof Document/Title\n */\nTitle.prototype.hasSubtitle = function () {\n return this['$subtitle?']()\n}\n\n// Inline API\n\n/**\n * Methods for managing inline elements in AsciiDoc block.\n * @namespace\n * @extends AbstractNode\n */\nvar Inline = Opal.Asciidoctor.Inline\n\n/**\n * Create a new Inline element.\n * @param {AbstractBlock} parent\n * @param {string} context\n * @param {string|undefined} text\n * @param {Object|undefined} opts\n * @returns {Inline} - a new Inline element\n * @memberof Inline\n */\nInline.create = function (parent, context, text, opts) {\n return this.$new(parent, context, text, toHash(opts))\n}\n\n/**\n * Get the converted content for this inline node.\n *\n * @returns {string} - the converted String content for this inline node\n * @memberof Inline\n */\nInline.prototype.convert = function () {\n return this.$convert()\n}\n\n/**\n * Get the converted String text of this Inline node, if applicable.\n *\n * @returns {string|undefined} - the converted String text for this Inline node, or undefined if not applicable for this node.\n * @memberof Inline\n */\nInline.prototype.getText = function () {\n var text = this.$text()\n return text === Opal.nil ? undefined : text\n}\n\n/**\n * Get the String sub-type (aka qualifier) of this Inline node.\n *\n * This value is used to distinguish different variations of the same node\n * category, such as different types of anchors.\n *\n * @returns {string} - the string sub-type of this Inline node.\n * @memberof Inline\n */\nInline.prototype.getType = function () {\n return this.$type()\n}\n\n/**\n * Get the primary String target of this Inline node.\n *\n * @returns {string|undefined} - the string target of this Inline node.\n * @memberof Inline\n */\nInline.prototype.getTarget = function () {\n var target = this.$target()\n return target === Opal.nil ? undefined : target\n}\n\n// List API\n\n/**\n * Methods for managing AsciiDoc lists (ordered, unordered and description lists).\n * @namespace\n * @extends AbstractBlock\n */\nvar List = Opal.Asciidoctor.List\n\n/**\n * Checks if the {@link List} contains any child {@link ListItem}.\n *\n * @memberof List\n * @returns {boolean} - whether the {@link List} has child {@link ListItem}.\n */\nList.prototype.hasItems = function () {\n return this['$items?']()\n}\n\n/**\n * Get the Array of {@link ListItem} nodes for this {@link List}.\n *\n * @returns {Array} - an Array of {@link ListItem} nodes.\n * @memberof List\n */\nList.prototype.getItems = function () {\n return this.blocks\n}\n\n// ListItem API\n\n/**\n * Methods for managing items for AsciiDoc olists, ulist, and dlists.\n *\n * In a description list (dlist), each item is a tuple that consists of a 2-item Array of ListItem terms and a ListItem description (i.e., [[term, term, ...], desc].\n * If a description is not set, then the second entry in the tuple is nil.\n * @namespace\n * @extends AbstractBlock\n */\nvar ListItem = Opal.Asciidoctor.ListItem\n\n/**\n * Get the converted String text of this {@link ListItem} node.\n *\n * @returns {string} - the converted String text for this {@link ListItem} node.\n * @memberof ListItem\n */\nListItem.prototype.getText = function () {\n return this.$text()\n}\n\n/**\n * Set the String source text of this {@link ListItem} node.\n *\n * @returns {string} - the new String text assigned to this {@link ListItem}\n * @memberof ListItem\n */\nListItem.prototype.setText = function (text) {\n return this['$text='](text)\n}\n\n/**\n * A convenience method that checks whether the text of this {@link ListItem} is not blank (i.e. not undefined or empty string).\n *\n * @returns {boolean} - whether the text is not blank\n * @memberof ListItem\n */\nListItem.prototype.hasText = function () {\n return this['$text?']()\n}\n\n/**\n * Get the {string} used to mark this {@link ListItem}.\n *\n * @returns {string}\n * @memberof ListItem\n */\nListItem.prototype.getMarker = function () {\n return this.marker\n}\n\n/**\n * Set the {string} used to mark this {@link ListItem}.\n *\n * @param {string} marker - the {string} used to mark this {@link ListItem}\n * @memberof ListItem\n */\nListItem.prototype.setMarker = function (marker) {\n this.marker = marker\n}\n\n/**\n * Get the {@link List} to which this {@link ListItem} is attached.\n *\n * @returns {List} - the {@link List} object to which this {@link ListItem} is attached,\n * or undefined if this node has no parent.\n * @memberof ListItem\n */\nListItem.prototype.getList = function () {\n return this.$list()\n}\n\n/**\n * @see {@link ListItem#getList}\n * @memberof ListItem\n */\nListItem.prototype.getParent = ListItem.prototype.getList\n\n// Reader API\n\n/** @namespace */\nvar Reader = Opal.Asciidoctor.Reader\n\n/**\n * Push source onto the front of the reader and switch the context based on the file, document-relative path and line information given.\n *\n * This method is typically used in an IncludeProcessor to add source read from the target specified.\n *\n * @param {string} data\n * @param {string|undefined} file\n * @param {string|undefined} path\n * @param {number} lineno - The line number\n * @param {Object} attributes - a JSON of attributes\n * @returns {Reader} - this {Reader} object.\n * @memberof Reader\n */\nReader.prototype.pushInclude = function (data, file, path, lineno, attributes) {\n return this.$push_include(data, file, path, lineno, toHash(attributes))\n}\n\n/**\n * Get the current location of the reader's cursor, which encapsulates the file, dir, path, and lineno of the file being read.\n *\n * @returns {Cursor}\n * @memberof Reader\n */\nReader.prototype.getCursor = function () {\n return this.$cursor()\n}\n\n/**\n * Get the remaining unprocessed lines, without consuming them, as an {Array} of {string}.\n *\n * Lines will not be consumed from the Reader (ie. you will be able to read these lines again).\n *\n * @returns {Array} - the remaining unprocessed lines as an {Array} of {string}.\n * @memberof Reader\n */\nReader.prototype.getLines = function () {\n return this.$lines()\n}\n\n/**\n * Get the remaining unprocessed lines, without consuming them, as a {string}.\n *\n * Lines will not be consumed from the Reader (ie. you will be able to read these lines again).\n *\n * @returns {string} - the remaining unprocessed lines as a {string} (joined by linefeed characters).\n * @memberof Reader\n */\nReader.prototype.getString = function () {\n return this.$string()\n}\n\n/**\n * Check whether there are any lines left to read.\n * If a previous call to this method resulted in a value of false, immediately returned the cached value.\n * Otherwise, delegate to peekLine to determine if there is a next line available.\n *\n * @returns {boolean} - true if there are more lines, false if there are not.\n * @memberof Reader\n */\nReader.prototype.hasMoreLines = function () {\n return this['$has_more_lines?']()\n}\n\n/**\n * Check whether this reader is empty (contains no lines).\n *\n * @returns {boolean} - true if there are no more lines to peek, otherwise false.\n * @memberof Reader\n */\nReader.prototype.isEmpty = function () {\n return this['$empty?']()\n}\n\n/**\n * Peek at the next line.\n * Processes the line if not already marked as processed, but does not consume it (ie. you will be able to read this line again).\n *\n * This method will probe the reader for more lines.\n * If there is a next line that has not previously been visited, the line is passed to the Reader#processLine method to be initialized.\n * This call gives sub-classes the opportunity to do preprocessing.\n * If the return value of the Reader#processLine is undefined, the data is assumed to be changed and Reader#peekLine is invoked again to perform further processing.\n *\n * If hasMoreLines is called immediately before peekLine, the direct flag is implicitly true (since the line is flagged as visited).\n *\n * @param {boolean} direct - A {boolean} flag to bypasses the check for more lines and immediately returns the first element of the internal lines {Array}. (default: false)\n * @returns {string} - the next line as a {string} if there are lines remaining.\n * @memberof Reader\n */\nReader.prototype.peekLine = function (direct) {\n direct = direct || false\n var line = this.$peek_line(direct)\n return line === Opal.nil ? undefined : line\n}\n\n/**\n * Consume, preprocess, and return the next line.\n *\n * Line will be consumed from the Reader (ie. you won't be able to read this line again).\n *\n * @returns {string} - the next line as a {string} if data is present.\n * @memberof Reader\n */\nReader.prototype.readLine = function () {\n var line = this.$read_line()\n return line === Opal.nil ? undefined : line\n}\n\n/**\n * Consume, preprocess, and return the remaining lines.\n *\n * This method calls Reader#readLine repeatedly until all lines are consumed and returns the lines as an {Array} of {string}.\n * This method differs from Reader#getLines in that it processes each line in turn, hence triggering any preprocessors implemented in sub-classes.\n *\n * Lines will be consumed from the Reader (ie. you won't be able to read these lines again).\n *\n * @returns {Array} - the lines read as an {Array} of {string}.\n * @memberof Reader\n */\nReader.prototype.readLines = function () {\n return this.$read_lines()\n}\n\n/**\n * Consume, preprocess, and return the remaining lines joined as a {string}.\n *\n * Delegates to Reader#readLines, then joins the result.\n *\n * Lines will be consumed from the Reader (ie. you won't be able to read these lines again).\n *\n * @returns {string} - the lines read joined as a {string}\n * @memberof Reader\n */\nReader.prototype.read = function () {\n return this.$read()\n}\n\n/**\n * Advance to the next line by discarding the line at the front of the stack.\n *\n * @returns {boolean} - a Boolean indicating whether there was a line to discard.\n * @memberof Reader\n */\nReader.prototype.advance = function () {\n return this.$advance()\n}\n\n// Cursor API\n\n/** @namespace */\nvar Cursor = Opal.Asciidoctor.Reader.Cursor\n\n/**\n * Get the file associated to the cursor.\n * @returns {string|undefined}\n * @memberof Cursor\n */\nCursor.prototype.getFile = function () {\n var file = this.file\n return file === Opal.nil ? undefined : file\n}\n\n/**\n * Get the directory associated to the cursor.\n * @returns {string|undefined} - the directory associated to the cursor\n * @memberof Cursor\n */\nCursor.prototype.getDirectory = function () {\n var dir = this.dir\n return dir === Opal.nil ? undefined : dir\n}\n\n/**\n * Get the path associated to the cursor.\n * @returns {string|undefined} - the path associated to the cursor (or '')\n * @memberof Cursor\n */\nCursor.prototype.getPath = function () {\n var path = this.path\n return path === Opal.nil ? undefined : path\n}\n\n/**\n * Get the line number of the cursor.\n * @returns {number|undefined} - the line number of the cursor\n * @memberof Cursor\n */\nCursor.prototype.getLineNumber = function () {\n return this.lineno\n}\n\n// Logger API (available in Asciidoctor 1.5.7+)\n\nfunction initializeLoggerFormatterClass (className, functions) {\n var superclass = Opal.const_get_qualified(Opal.Logger, 'Formatter')\n return initializeClass(superclass, className, functions, {}, {\n call: function (args) {\n for (var i = 0; i < args.length; i++) {\n // convert all (Opal) Hash arguments to JSON.\n if (typeof args[i] === 'object' && '$$smap' in args[i]) {\n args[i] = fromHash(args[i])\n }\n }\n return args\n }\n })\n}\n\nfunction initializeLoggerClass (className, functions) {\n var superClass = Opal.const_get_qualified(Opal.Asciidoctor, 'Logger')\n return initializeClass(superClass, className, functions, {}, {\n add: function (args) {\n if (args.length >= 2 && typeof args[2] === 'object' && '$$smap' in args[2]) {\n var message = args[2]\n var messageObject = fromHash(message)\n messageObject.getText = function () {\n return this.text\n }\n messageObject.getSourceLocation = function () {\n return this.source_location\n }\n messageObject.$inspect = function () {\n var sourceLocation = this.getSourceLocation()\n if (sourceLocation) {\n return sourceLocation.getPath() + ': line ' + sourceLocation.getLineNumber() + ': ' + this.getText()\n } else {\n return this.getText()\n }\n }\n args[2] = messageObject\n }\n if (args.length >= 1) {\n args[1] = args[1] === Opal.nil ? undefined : args[1]\n }\n return args\n }\n })\n}\n\n/**\n * @namespace\n */\nvar LoggerManager = Opal.const_get_qualified(Opal.Asciidoctor, 'LoggerManager', true)\n\n// Alias\nOpal.Asciidoctor.LoggerManager = LoggerManager\n\n/**\n * @memberof LoggerManager\n */\nLoggerManager.getLogger = function () {\n return this.$logger()\n}\n\n/**\n * @memberof LoggerManager\n */\nLoggerManager.setLogger = function (logger) {\n this.logger = logger\n}\n\n/**\n * @memberof LoggerManager\n */\nLoggerManager.newLogger = function (name, functions) {\n return initializeLoggerClass(name, functions).$new()\n}\n\n/**\n * @memberof LoggerManager\n */\nLoggerManager.newFormatter = function (name, functions) {\n return initializeLoggerFormatterClass(name, functions).$new()\n}\n\n/**\n * @namespace\n */\nvar LoggerSeverity = Opal.const_get_qualified(Opal.Logger, 'Severity', true)\n\n// Alias\nOpal.Asciidoctor.LoggerSeverity = LoggerSeverity\n\n/**\n * @memberof LoggerSeverity\n */\nLoggerSeverity.get = function (severity) {\n return LoggerSeverity.$constants()[severity]\n}\n\n/**\n * @namespace\n */\nvar LoggerFormatter = Opal.const_get_qualified(Opal.Logger, 'Formatter', true)\n\n// Alias\nOpal.Asciidoctor.LoggerFormatter = LoggerFormatter\n\n/**\n * @memberof LoggerFormatter\n */\nLoggerFormatter.prototype.call = function (severity, time, programName, message) {\n return this.$call(LoggerSeverity.get(severity), time, programName, message)\n}\n\n/**\n * @namespace\n */\nvar MemoryLogger = Opal.const_get_qualified(Opal.Asciidoctor, 'MemoryLogger', true)\n\n// Alias\nOpal.Asciidoctor.MemoryLogger = MemoryLogger\n\n/**\n * Create a new MemoryLogger.\n * @returns {MemoryLogger} - a MemoryLogger\n * @memberof MemoryLogger\n */\nMemoryLogger.create = function () {\n return this.$new()\n}\n\n/**\n * @returns {Array} - a list of messages\n * @memberof MemoryLogger\n */\nMemoryLogger.prototype.getMessages = function () {\n var messages = this.messages\n var result = []\n for (var i = 0; i < messages.length; i++) {\n var message = messages[i]\n var messageObject = fromHash(message)\n if (typeof messageObject.message === 'string') {\n messageObject.getText = function () {\n return this.message\n }\n } else {\n // also convert the message attribute\n messageObject.message = fromHash(messageObject.message)\n messageObject.getText = function () {\n return this.message.text\n }\n }\n messageObject.getSeverity = function () {\n return this.severity.toString()\n }\n messageObject.getSourceLocation = function () {\n return this.message.source_location\n }\n result.push(messageObject)\n }\n return result\n}\n\nvar Logging = Opal.const_get_qualified(Opal.Asciidoctor, 'Logging', true)\n\nOpal.Asciidoctor.Logging = Logging\n\nLogging.getLogger = function () {\n return LoggerManager.$logger()\n}\n\nLogging.createLogMessage = function (text, context) {\n return Logging.prototype.$message_with_context(text, toHash(context))\n}\n\n// alias\n\n/**\n * @memberof Reader\n */\nReader.prototype.getLogger = Logging.getLogger\n/**\n * @memberof Reader\n */\nReader.prototype.createLogMessage = Logging.createLogMessage\n\n/**\n * @memberof AbstractNode\n */\nAbstractNode.prototype.getLogger = Logging.getLogger\n/**\n * @memberof AbstractNode\n */\nAbstractNode.prototype.createLogMessage = Logging.createLogMessage\n\n/**\n * @namespace\n */\nvar Logger = Opal.const_get_qualified(Opal.Asciidoctor, 'Logger', true)\n\n// Alias\nOpal.Asciidoctor.Logger = Logger\n\n/**\n * @returns {number|undefined} - the maximum severity\n * @memberof Logger\n */\nLogger.prototype.getMaxSeverity = function () {\n var result = this.max_severity\n return result === Opal.nil ? undefined : result\n}\n/**\n * @returns {LoggerFormatter} - the formatter\n * @memberof Logger\n */\nLogger.prototype.getFormatter = function () {\n return this.formatter\n}\n/**\n * @param {LoggerFormatter} formatter - the formatter\n * @memberof Logger\n */\nLogger.prototype.setFormatter = function (formatter) {\n this.formatter = formatter\n}\n/**\n * @returns {number} - the logging severity threshold\n * @memberof Logger\n */\nLogger.prototype.getLevel = function () {\n return this.level\n}\n/**\n * @param {number} level - the logging severity threshold\n * @memberof Logger\n */\nLogger.prototype.setLevel = function (level) {\n this.level = level\n}\n/**\n * @returns {string} - the program name\n * @memberof Logger\n */\nLogger.prototype.getProgramName = function () {\n return this.progname\n}\n/**\n * @param {string} programName - the program name\n * @memberof Logger\n */\nLogger.prototype.setProgramName = function (programName) {\n this.progname = programName\n}\n\nvar RubyLogger = Opal.const_get_qualified('::', 'Logger')\n\nvar log = function (logger, level, message) {\n logger['$' + level](message)\n}\nRubyLogger.prototype.add = function (severity, message, programName) {\n var severityValue = typeof severity === 'string' ? LoggerSeverity[severity.toUpperCase()] : severity\n this.$add(severityValue, message, programName)\n}\nRubyLogger.prototype.log = RubyLogger.prototype.add\nRubyLogger.prototype.debug = function (message) {\n log(this, 'debug', message)\n}\nRubyLogger.prototype.info = function (message) {\n log(this, 'info', message)\n}\nRubyLogger.prototype.warn = function (message) {\n log(this, 'warn', message)\n}\nRubyLogger.prototype.error = function (message) {\n log(this, 'error', message)\n}\nRubyLogger.prototype.fatal = function (message) {\n log(this, 'fatal', message)\n}\nRubyLogger.prototype.isDebugEnabled = function () {\n return this['$debug?']()\n}\nRubyLogger.prototype.isInfoEnabled = function () {\n return this['$info?']()\n}\nRubyLogger.prototype.isWarnEnabled = function () {\n return this['$warn?']()\n}\nRubyLogger.prototype.isErrorEnabled = function () {\n return this['$error?']()\n}\nRubyLogger.prototype.isFatalEnabled = function () {\n return this['$fatal?']()\n}\n\n/**\n * @namespace\n */\nvar NullLogger = Opal.const_get_qualified(Opal.Asciidoctor, 'NullLogger', true)\n\n// Alias\nOpal.Asciidoctor.NullLogger = NullLogger\n\n/**\n * Create a new NullLogger.\n * @returns {NullLogger} - a NullLogger\n * @memberof NullLogger\n */\nNullLogger.create = function () {\n return this.$new()\n}\n\n/**\n * @returns {number|undefined} - the maximum severity\n * @memberof NullLogger\n */\nNullLogger.prototype.getMaxSeverity = function () {\n return this.max_severity\n}\n\n// Alias\nOpal.Asciidoctor.StopIteration = Opal.StopIteration\n\n/**\n * @namespace\n */\nvar Timings = Opal.const_get_qualified(Opal.Asciidoctor, 'Timings', true)\n\n// Alias\nOpal.Asciidoctor.Timings = Timings\n\n/**\n * Create a new Timings.\n * @returns {Timings} - a Timings\n * @memberof Timings\n */\nTimings.create = function () {\n return this.$new()\n}\n\n/**\n * Print a report to the specified output.\n * The report will include:\n * - the time to read and parse source\n * - the time to convert document\n * - the total time (read, parse and convert)\n * @param {RubyLogger|console|Object} [to] - an optional output (by default stdout)\n * @param {string} [subject] - an optional subject (usually the file name)\n * @memberof Timings\n */\nTimings.prototype.printReport = function (to, subject) {\n var outputFunction\n if (to) {\n if (typeof to.$add === 'function') {\n outputFunction = function (message) {\n to.$add(1, message)\n }\n } else if (typeof to.log === 'function') {\n outputFunction = to.log\n } else if (typeof to.write === 'function') {\n outputFunction = function (message) {\n to.write(message, 'utf-8')\n }\n } else {\n throw new Error('The output should be a Stream (with a write function), an object with a log function or a Ruby Logger (with a add function)')\n }\n } else {\n outputFunction = function (message) {\n Opal.gvars.stdout.$write(message)\n }\n }\n if (subject) {\n outputFunction('Input file: ' + subject)\n }\n outputFunction(' Time to read and parse source: ' + this.$read_parse().toFixed(2))\n outputFunction(' Time to convert document: ' + this.$convert().toFixed(2))\n outputFunction(' Total time (read, parse and convert): ' + this.$read_parse_convert().toFixed(2))\n}\n\n/**\n * @namespace\n * @description\n * This API is experimental and subject to change.\n *\n * A pluggable adapter for integrating a syntax (aka code) highlighter into AsciiDoc processing.\n *\n * There are two types of syntax highlighter adapters. The first performs syntax highlighting during the convert phase.\n * This adapter type must define a \"handlesHighlighting\" method that returns true.\n * The companion \"highlight\" method will then be called to handle the \"specialcharacters\" substitution for source blocks.\n *\n * The second assumes syntax highlighting is performed on the client (e.g., when the HTML document is loaded).\n * This adapter type must define a \"hasDocinfo\" method that returns true.\n * The companion \"docinfo\" method will then be called to insert markup into the output document.\n * The docinfo functionality is available to both adapter types.\n *\n * Asciidoctor.js provides several a built-in adapter for highlight.js.\n * Additional adapters can be registered using SyntaxHighlighter.register.\n */\nvar SyntaxHighlighter = Opal.const_get_qualified(Opal.Asciidoctor, 'SyntaxHighlighter', true)\n\n// Alias\nOpal.Asciidoctor.SyntaxHighlighter = SyntaxHighlighter\n\n/**\n * Associates the syntax highlighter class or object with the specified names.\n *\n * @description This API is experimental and subject to change.\n *\n * @param {string|Array} names - A {string} name or an {Array} of {string} names\n * @param functions - A list of functions representing a {SyntaxHighlighter} or a {SyntaxHighlighter} class to instantiate\n * @memberof SyntaxHighlighter\n */\nSyntaxHighlighter.register = function (names, functions) {\n var name = typeof names === 'string' ? names : names[0]\n if (typeof functions === 'function') {\n var classObject = functions\n var prototype = classObject.prototype\n var properties = Object.getOwnPropertyNames(prototype)\n functions = {}\n for (var propertyIdx in properties) {\n var propertyName = properties[propertyIdx]\n functions[propertyName] = prototype[propertyName]\n }\n }\n var scope = initializeClass(SyntaxHighlighterBase, name, functions, {}, {\n format: function (args) {\n if (args.length >= 2 && typeof args[2] === 'object' && '$$smap' in args[2]) {\n args[2] = fromHash(args[2])\n }\n if (args.length >= 1) {\n args[1] = args[1] === Opal.nil ? undefined : args[1]\n }\n return args\n },\n highlight: function (args) {\n if (args.length >= 3 && typeof args[3] === 'object' && '$$smap' in args[3]) {\n var opts = args[3]\n opts = fromHash(opts)\n for (var key in opts) {\n var value = opts[key]\n if (key === 'callouts') {\n var callouts = fromHashKeys(value)\n for (var idx in callouts) {\n var callout = callouts[idx]\n for (var i = 0; i < callout.length; i++) {\n var items = callout[i]\n for (var j = 0; j < items.length; j++) {\n items[j] = items[j] === Opal.nil ? undefined : items[j]\n }\n }\n }\n opts[key] = callouts\n } else {\n opts[key] = value === Opal.nil ? undefined : value\n }\n }\n args[3] = opts\n }\n if (args.length >= 2) {\n args[2] = args[2] === Opal.nil ? undefined : args[2]\n }\n return args\n }\n })\n for (var functionName in functions) {\n if (Object.prototype.hasOwnProperty.call(functions, functionName)) {\n (function (functionName) {\n var userFunction = functions[functionName]\n if (functionName === 'handlesHighlighting') {\n Opal.def(scope, '$highlight?', function () {\n return userFunction.call()\n })\n } else if (functionName === 'hasDocinfo') {\n Opal.def(scope, '$docinfo?', function (location) {\n return userFunction.apply(this, [location])\n })\n }\n }(functionName))\n }\n }\n Opal.def(scope, '$name', function () {\n return name\n })\n SyntaxHighlighter.$register(scope, names)\n return scope\n}\n\n/**\n * Retrieves the syntax highlighter class or object registered for the specified name.\n *\n * @description This API is experimental and subject to change.\n *\n * @param {string} name - The {string} name of the syntax highlighter to retrieve.\n * @returns {SyntaxHighlighter} - the {SyntaxHighlighter} registered for this name.\n * @memberof SyntaxHighlighter\n */\nSyntaxHighlighter.get = function (name) {\n var result = SyntaxHighlighter.$for(name)\n return result === Opal.nil ? undefined : result\n}\n\n/**\n * @deprecated Please use {SyntaxHighlighter#get} method as \"for\" is a reserved keyword.\n */\nSyntaxHighlighter.for = SyntaxHighlighter.get\n\n/**\n * @namespace\n */\nvar SyntaxHighlighterBase = Opal.const_get_qualified(SyntaxHighlighter, 'Base', true)\n\n// Alias\nOpal.Asciidoctor.SyntaxHighlighterBase = SyntaxHighlighterBase\n\n/**\n * Statically register the current class in the registry for the specified names.\n *\n * @description This API is experimental and subject to change.\n *\n * @param {string|Array} names - A {string} name or an {Array} of {string} names\n * @memberof SyntaxHighlighterBase\n */\nSyntaxHighlighterBase.prototype.registerFor = function (names) {\n SyntaxHighlighter.$register(this, names)\n}\n\n// Table API\n\n/**\n * Methods for managing AsciiDoc tables.\n * @namespace\n * @extends AbstractBlock\n */\nvar Table = Opal.Asciidoctor.Table\n\n/**\n * Create a new Table element.\n * @param {AbstractBlock} parent\n * @param {Object|undefined} attributes\n * @returns {Table} - a new {Table} object\n */\nTable.create = function (parent, attributes) {\n return this.$new(parent, toHash(attributes))\n}\n\n/**\n * Get the caption of the table.\n * @returns {string}\n * @memberof Table\n */\nTable.prototype.getCaption = function () {\n return this.caption\n}\n\n/**\n * Get the rows of this table.\n * @returns {Table.Rows} - an {Table.Rows} object with the members \"head\", \"body\" and \"foot\"\n * @memberof Table\n */\nTable.prototype.getRows = function () {\n return this.rows\n}\n\n/**\n * Get the columns of this table.\n * @returns {Array}\n * @memberof Table\n */\nTable.prototype.getColumns = function () {\n return this.columns\n}\n\n/**\n * Get the head rows of this table.\n * @returns {Array>} - an Array of Array of Cell\n * @memberof Table\n */\nTable.prototype.getHeadRows = function () {\n return this.rows.head\n}\n\n/**\n * Check if the table has a head rows.\n * @returns {boolean}\n * @memberof Table\n */\nTable.prototype.hasHeadRows = function () {\n return this.rows !== Opal.nil && this.rows.head.length > 0\n}\n\n/**\n * Get the body rows of this table.\n * @returns {Array>} - an Array of Array of Cell\n * @memberof Table\n */\nTable.prototype.getBodyRows = function () {\n return this.rows.body\n}\n\n/**\n * Check if the table has a body rows.\n * @returns {boolean}\n */\nTable.prototype.hasBodyRows = function () {\n return this.rows !== Opal.nil && this.rows.body.length > 0\n}\n\n/**\n * Get the foot rows of this table.\n * @returns {Array>} - an Array of Array of Cell\n * @memberof Table\n */\nTable.prototype.getFootRows = function () {\n return this.rows.foot\n}\n\n/**\n * Check if the table has a foot rows.\n * @returns {boolean}\n */\nTable.prototype.hasFootRows = function () {\n return this.rows !== Opal.nil && this.rows.foot.length > 0\n}\n\n/**\n * Check if the table has a header option set.\n * @returns {boolean}\n * @memberof Table\n */\nTable.prototype.hasHeaderOption = function () {\n return this.has_header_option\n}\n\n/**\n * Check if the table has the footer option set.\n * @returns {boolean}\n * @memberof Table\n */\nTable.prototype.hasFooterOption = function () {\n var footerOption = this.getAttributes()['footer-option']\n return footerOption === ''\n}\n\n/**\n * Check if the table has the autowidth option set.\n * @returns {boolean}\n * @memberof Table\n */\nTable.prototype.hasAutowidthOption = function () {\n var autowidthOption = this.getAttributes()['autowidth-option']\n return autowidthOption === ''\n}\n\n/**\n * Get the number of rows in the table.\n * Please note that the header and footer rows are also counted.\n * @returns {number|undefined}\n * @memberof Table\n */\nTable.prototype.getRowCount = function () {\n return this.getAttribute('rowcount')\n}\n\n/**\n * Set the number of rows in the table.\n * Please note that the header and footer rows are also counted.\n * @param {number} value - the value\n * @memberof Table\n */\nTable.prototype.setRowCount = function (value) {\n this.setAttribute('rowcount', value)\n}\n\n/**\n * Get the number of columns in the table.\n * @returns {number|undefined}\n * @memberof Table\n */\nTable.prototype.getColumnCount = function () {\n return this.getAttribute('colcount')\n}\n\n/**\n * Set the number of columns in the table.\n * @param {number} value - the value\n * @memberof Table\n */\nTable.prototype.setColumnCount = function (value) {\n this.setAttribute('colcount', value)\n}\n\n// Rows\n\n/**\n * @namespace\n */\nvar Rows = Opal.Asciidoctor.Table.Rows\n\n/**\n * Create a new Rows element.\n * @param {array>} head\n * @param {array>} foot\n * @param {array>} body\n * @returns Rows\n */\nRows.create = function (head, foot, body) {\n return this.$new(head, foot, body)\n}\n\n/**\n * Get head rows.\n * @returns {array>}\n */\nRows.prototype.getHead = function () {\n return this.head\n}\n\n/**\n * Get foot rows.\n * @returns {array>}\n */\nRows.prototype.getFoot = function () {\n return this.foot\n}\n\n/**\n * Get body rows.\n * @returns {array>}\n */\nRows.prototype.getBody = function () {\n return this.body\n}\n\n/**\n * Retrieve the rows grouped by section as a nested Array.\n *\n * Creates a 2-dimensional array of two element entries.\n * The first element is the section name as a string.\n * The second element is the Array of rows in that section.\n * The entries are in document order (head, foot, body).\n * @returns {[[string, array>], [string, array>], [string, array>]]}\n */\nRows.prototype.bySection = function () {\n return [['head', this.head], ['body', this.body], ['foot', this.foot]]\n}\n\n// Table Column\n\n/**\n * Methods to manage the columns of an AsciiDoc table.\n * In particular, it keeps track of the column specs.\n * @namespace\n * @extends AbstractNode\n */\nvar Column = Opal.Asciidoctor.Table.Column\n\n/**\n * Create a new Column element.\n * @param {Table} table\n * @param {number} index\n * @param {Object|undefined} attributes\n * @returns Column\n */\nColumn.create = function (table, index, attributes) {\n return this.$new(table, index, toHash(attributes))\n}\n\n/**\n * Get the column number of this cell.\n * @returns {number|undefined}\n * @memberof Column\n */\nColumn.prototype.getColumnNumber = function () {\n return this.getAttribute('colnumber')\n}\n\n/**\n * Get the width of this cell.\n * @returns {string|undefined}\n * @memberof Column\n */\nColumn.prototype.getWidth = function () {\n return this.getAttribute('width')\n}\n\n/**\n * Get the horizontal align of this cell.\n * @returns {string|undefined}\n * @memberof Column\n */\nColumn.prototype.getHorizontalAlign = function () {\n return this.getAttribute('halign')\n}\n\n/**\n * Get the vertical align of this cell.\n * @returns {string|undefined}\n * @memberof Column\n */\nColumn.prototype.getVerticalAlign = function () {\n return this.getAttribute('valign')\n}\n\n/**\n * Get the style of this cell.\n * @returns {string}\n * @memberof Column\n */\nColumn.prototype.getStyle = function () {\n var style = this.style\n return style === Opal.nil ? undefined : style\n}\n\n// Table Cell\n\n/**\n * Methods for managing the cells in an AsciiDoc table.\n * @namespace\n * @extends AbstractBlock\n */\nvar Cell = Opal.Asciidoctor.Table.Cell\n\n/**\n * Create a new Cell element\n * @param {Column} column\n * @param {string} cellText\n * @param {Object|undefined} attributes\n * @param {Object|undefined} opts\n * @returns {Cell}\n */\nCell.create = function (column, cellText, attributes, opts) {\n return this.$new(column, cellText, toHash(attributes), toHash(opts))\n}\n\n/**\n * Get the column span of this {@link Cell} node.\n * @returns {number} - An Integer of the number of columns this cell will span (default: undefined)\n * @memberof Cell\n */\nCell.prototype.getColumnSpan = function () {\n var colspan = this.colspan\n return colspan === Opal.nil ? undefined : colspan\n}\n\n/**\n * Set the column span of this {@link Cell} node.\n * @param {number} value\n * @returns {number} - The new colspan value\n * @memberof Cell\n */\nCell.prototype.setColumnSpan = function (value) {\n return this['$colspan='](value)\n}\n\n/**\n * Get the row span of this {@link Cell} node\n * @returns {number|undefined} - An Integer of the number of rows this cell will span (default: undefined)\n * @memberof Cell\n */\nCell.prototype.getRowSpan = function () {\n var rowspan = this.rowspan\n return rowspan === Opal.nil ? undefined : rowspan\n}\n\n/**\n * Set the row span of this {@link Cell} node\n * @param {number} value\n * @returns {number} - The new rowspan value\n * @memberof Cell\n */\nCell.prototype.setRowSpan = function (value) {\n return this['$rowspan='](value)\n}\n\n/**\n * Get the content of the cell.\n * This method should not be used for cells in the head row or that have the literal style.\n * @returns {string}\n * @memberof Cell\n */\nCell.prototype.getContent = function () {\n return this.$content()\n}\n\n/**\n * Get the text of the cell.\n * @returns {string}\n * @memberof Cell\n */\nCell.prototype.getText = function () {\n return this.$text()\n}\n\n/**\n * Get the source of the cell.\n * @returns {string}\n * @memberof Cell\n */\nCell.prototype.getSource = function () {\n return this.$source()\n}\n\n/**\n * Get the lines of the cell.\n * @returns {Array}\n * @memberof Cell\n */\nCell.prototype.getLines = function () {\n return this.$lines()\n}\n\n/**\n * Get the line number of the cell.\n * @returns {number|undefined}\n * @memberof Cell\n */\nCell.prototype.getLineNumber = function () {\n var lineno = this.$lineno()\n return lineno === Opal.nil ? undefined : lineno\n}\n\n/**\n * Get the source file of the cell.\n * @returns {string|undefined}\n * @memberof Cell\n */\nCell.prototype.getFile = function () {\n var file = this.$file()\n return file === Opal.nil ? undefined : file\n}\n\n/**\n * Get the style of the cell.\n * @returns {string|undefined}\n * @memberof Cell\n */\nCell.prototype.getStyle = function () {\n var style = this.$style()\n return style === Opal.nil ? undefined : style\n}\n\n/**\n * Get the column of this cell.\n * @returns {Column|undefined}\n * @memberof Cell\n */\nCell.prototype.getColumn = function () {\n var column = this.$column()\n return column === Opal.nil ? undefined : column\n}\n\n/**\n * Get the width of this cell.\n * @returns {string|undefined}\n * @memberof Cell\n */\nCell.prototype.getWidth = function () {\n return this.getAttribute('width')\n}\n\n/**\n * Get the column width in percentage of this cell.\n * @returns {string|undefined}\n * @memberof Cell\n */\nCell.prototype.getColumnPercentageWidth = function () {\n return this.getAttribute('colpcwidth')\n}\n\n/**\n * Get the nested {Document} of this cell when style is 'asciidoc'.\n * @returns {Document|undefined} - the nested {Document}\n * @memberof Cell\n */\nCell.prototype.getInnerDocument = function () {\n const innerDocument = this.inner_document\n return innerDocument === Opal.nil ? undefined : innerDocument\n}\n\n// Templates\n\n/**\n * @description\n * This API is experimental and subject to change.\n *\n * Please note that this API is currently only available in a Node environment.\n * We recommend to use a custom converter if you are running in the browser.\n *\n * @namespace\n * @module Converter/TemplateConverter\n */\nvar TemplateConverter = Opal.Asciidoctor.Converter.TemplateConverter\n\nif (TemplateConverter) {\n // Alias\n Opal.Asciidoctor.TemplateConverter = TemplateConverter\n\n /**\n * Create a new TemplateConverter.\n * @param {string} backend - the backend name\n * @param templateDirectories - a list of template directories\n * @param {Object} opts - a JSON of options\n * @param {string} opts.template_engine - the name of the template engine\n * @param {Object} [opts.template_cache] - an optional template cache\n * @param {Object} [opts.template_cache.scans] - a JSON of template objects keyed by template name keyed by path patterns\n * @param {Object} [opts.template_cache.templates] - a JSON of template objects keyed by file paths\n * @returns {TemplateConverter}\n * @memberof Converter/TemplateConverter\n */\n TemplateConverter.create = function (backend, templateDirectories, opts) {\n if (opts && opts.template_cache) {\n opts.template_cache = toHash(opts.template_cache)\n }\n this.$new(backend, templateDirectories, toHash(opts))\n }\n\n /**\n * @returns {Object} - The global cache\n * @memberof Converter/TemplateConverter\n */\n TemplateConverter.getCache = function () {\n var caches = fromHash(this.caches)\n if (caches) {\n if (caches.scans) {\n caches.scans = fromHash(caches.scans)\n for (var key in caches.scans) {\n caches.scans[key] = fromHash(caches.scans[key])\n }\n }\n if (caches.templates) {\n caches.templates = fromHash(caches.templates)\n }\n }\n return caches\n }\n\n /**\n * Clear the global cache.\n * @memberof Converter/TemplateConverter\n */\n TemplateConverter.clearCache = function () {\n this.$clear_caches()\n }\n\n /**\n * Convert an {AbstractNode} to the backend format using the named template.\n *\n * Looks for a template that matches the value of the template name or,\n * if the template name is not specified, the value of the {@see AbstractNode.getNodeName} function.\n *\n * @param {AbstractNode} node - the AbstractNode to convert\n * @param {string} templateName - the {string} name of the template to use, or the node name of the node if a template name is not specified. (optional, default: undefined)\n * @param {Object} opts - an optional JSON that is passed as local variables to the template. (optional, default: undefined)\n * @returns {string} - The {string} result from rendering the template\n * @memberof Converter/TemplateConverter\n */\n TemplateConverter.prototype.convert = function (node, templateName, opts) {\n return this.$convert(node, templateName, toHash(opts))\n }\n\n /**\n * Checks whether there is a template registered with the specified name.\n *\n * @param {string} name - the {string} template name\n * @returns {boolean} - a {boolean} that indicates whether a template is registered for the specified template name.\n * @memberof Converter/TemplateConverter\n */\n TemplateConverter.prototype.handles = function (name) {\n return this['$handles?'](name)\n }\n\n /**\n * Retrieves the templates that this converter manages.\n *\n * @returns {Object} - a JSON of template objects keyed by template name\n * @memberof Converter/TemplateConverter\n */\n TemplateConverter.prototype.getTemplates = function () {\n return fromHash(this.$templates())\n }\n\n /**\n * Registers a template with this converter.\n *\n * @param {string} name - the {string} template name\n * @param {Object} template - the template object to register\n * @returns {Object} - the template object\n * @memberof Converter/TemplateConverter\n */\n TemplateConverter.prototype.register = function (name, template) {\n return this.$register(name, template)\n }\n\n /**\n * @namespace\n * @description\n * This API is experimental and subject to change.\n *\n * Please note that this API is currently only available in a Node environment.\n * We recommend to use a custom converter if you are running in the browser.\n *\n * A pluggable adapter for integrating a template engine into the built-in template converter.\n */\n var TemplateEngine = {}\n TemplateEngine.registry = {}\n\n // Alias\n Opal.Asciidoctor.TemplateEngine = TemplateEngine\n\n /**\n * Register a template engine adapter for the given names.\n * @param {string|Array} names - a {string} name or an {Array} of {string} names\n * @param {Object} templateEngineAdapter - a template engine adapter instance\n * @example\n * const fs = require('fs')\n * class DotTemplateEngineAdapter {\n * constructor () {\n * this.doT = require('dot')\n * }\n * compile (file, _) {\n * const templateFn = this.doT.template(fs.readFileSync(file, 'utf8'))\n * return {\n * render: templateFn\n * }\n * }\n * }\n * asciidoctor.TemplateEngine.register('dot, new DotTemplateEngineAdapter())\n * @memberof TemplateEngine\n */\n TemplateEngine.register = function (names, templateEngineAdapter) {\n if (typeof names === 'string') {\n this.registry[names] = templateEngineAdapter\n } else {\n // array\n for (var i = 0; i < names.length; i++) {\n var name = names[i]\n this.registry[name] = templateEngineAdapter\n }\n }\n }\n}\n\n/* global Opal, fromHash, toHash, initializeClass */\n// Extensions API\n\n/**\n * @private\n */\nvar toBlock = function (block) {\n // arity is a mandatory field\n block.$$arity = block.length\n return block\n}\n\nvar registerExtension = function (registry, type, processor, name) {\n if (typeof processor === 'object' || processor.$$is_class) {\n // processor is an instance or a class\n return registry['$' + type](processor, name)\n } else {\n // processor is a function/lambda\n return Opal.send(registry, type, name && [name], toBlock(processor))\n }\n}\n\n/**\n * @namespace\n * @description\n * Extensions provide a way to participate in the parsing and converting\n * phases of the AsciiDoc processor or extend the AsciiDoc syntax.\n *\n * The various extensions participate in AsciiDoc processing as follows:\n *\n * 1. After the source lines are normalized, {{@link Extensions/Preprocessor}}s modify or replace\n * the source lines before parsing begins. {{@link Extensions/IncludeProcessor}}s are used to\n * process include directives for targets which they claim to handle.\n * 2. The Parser parses the block-level content into an abstract syntax tree.\n * Custom blocks and block macros are processed by associated {{@link Extensions/BlockProcessor}}s\n * and {{@link Extensions/BlockMacroProcessor}}s, respectively.\n * 3. {{@link Extensions/TreeProcessor}}s are run on the abstract syntax tree.\n * 4. Conversion of the document begins, at which point inline markup is processed\n * and converted. Custom inline macros are processed by associated {InlineMacroProcessor}s.\n * 5. {{@link Extensions/Postprocessor}}s modify or replace the converted document.\n * 6. The output is written to the output stream.\n *\n * Extensions may be registered globally using the {Extensions.register} method\n * or added to a custom {Registry} instance and passed as an option to a single\n * Asciidoctor processor.\n *\n * @example\n * asciidoctor.Extensions.register(function () {\n * this.block(function () {\n * var self = this;\n * self.named('shout');\n * self.onContext('paragraph');\n * self.process(function (parent, reader) {\n * var lines = reader.getLines().map(function (l) { return l.toUpperCase(); });\n * return self.createBlock(parent, 'paragraph', lines);\n * });\n * });\n * });\n */\nvar Extensions = Opal.const_get_qualified(Opal.Asciidoctor, 'Extensions')\n\n// Alias\nOpal.Asciidoctor.Extensions = Extensions\n\n/**\n * Create a new {@link Extensions/Registry}.\n * @param {string} name\n * @param {function} block\n * @memberof Extensions\n * @returns {Extensions/Registry} - returns a {@link Extensions/Registry}\n */\nExtensions.create = function (name, block) {\n if (typeof name === 'function' && typeof block === 'undefined') {\n return Opal.send(this, 'create', null, toBlock(name))\n } else if (typeof block === 'function') {\n return Opal.send(this, 'create', [name], toBlock(block))\n } else {\n return this.$create()\n }\n}\n\n/**\n * @memberof Extensions\n */\nExtensions.register = function (name, block) {\n if (typeof name === 'function' && typeof block === 'undefined') {\n return Opal.send(this, 'register', null, toBlock(name))\n } else {\n return Opal.send(this, 'register', [name], toBlock(block))\n }\n}\n\n/**\n * Get statically-registered extension groups.\n * @memberof Extensions\n */\nExtensions.getGroups = function () {\n return fromHash(this.$groups())\n}\n\n/**\n * Unregister all statically-registered extension groups.\n * @memberof Extensions\n */\nExtensions.unregisterAll = function () {\n this.$unregister_all()\n}\n\n/**\n * Unregister the specified statically-registered extension groups.\n *\n * NOTE Opal cannot delete an entry from a Hash that is indexed by symbol, so\n * we have to resort to using low-level operations in this method.\n *\n * @memberof Extensions\n */\nExtensions.unregister = function () {\n var names = Array.prototype.concat.apply([], arguments)\n var groups = this.$groups()\n var groupNameIdx = {}\n for (var i = 0, groupSymbolNames = groups.$$keys; i < groupSymbolNames.length; i++) {\n var groupSymbolName = groupSymbolNames[i]\n groupNameIdx[groupSymbolName.toString()] = groupSymbolName\n }\n for (var j = 0; j < names.length; j++) {\n var groupStringName = names[j]\n if (groupStringName in groupNameIdx) Opal.hash_delete(groups, groupNameIdx[groupStringName])\n }\n}\n\n/**\n * @namespace\n * @module Extensions/Registry\n */\nvar Registry = Extensions.Registry\n\n/**\n * @memberof Extensions/Registry\n */\nRegistry.prototype.getGroups = Extensions.getGroups\n\n/**\n * @memberof Extensions/Registry\n */\nRegistry.prototype.unregisterAll = function () {\n this.groups = Opal.hash()\n}\n\n/**\n * @memberof Extensions/Registry\n */\nRegistry.prototype.unregister = Extensions.unregister\n\n/**\n * @memberof Extensions/Registry\n */\nRegistry.prototype.prefer = function (name, processor) {\n if (arguments.length === 1) {\n processor = name\n name = null\n }\n if (typeof processor === 'object' || processor.$$is_class) {\n // processor is an instance or a class\n return this.$prefer(name, processor)\n } else {\n // processor is a function/lambda\n return Opal.send(this, 'prefer', name && [name], toBlock(processor))\n }\n}\n\n/**\n * @memberof Extensions/Registry\n */\nRegistry.prototype.block = function (name, processor) {\n if (arguments.length === 1) {\n processor = name\n name = null\n }\n return registerExtension(this, 'block', processor, name)\n}\n\n/**\n * @memberof Extensions/Registry\n */\nRegistry.prototype.inlineMacro = function (name, processor) {\n if (arguments.length === 1) {\n processor = name\n name = null\n }\n return registerExtension(this, 'inline_macro', processor, name)\n}\n\n/**\n * @memberof Extensions/Registry\n */\nRegistry.prototype.includeProcessor = function (name, processor) {\n if (arguments.length === 1) {\n processor = name\n name = null\n }\n return registerExtension(this, 'include_processor', processor, name)\n}\n\n/**\n * @memberof Extensions/Registry\n */\nRegistry.prototype.blockMacro = function (name, processor) {\n if (arguments.length === 1) {\n processor = name\n name = null\n }\n return registerExtension(this, 'block_macro', processor, name)\n}\n\n/**\n * @memberof Extensions/Registry\n */\nRegistry.prototype.treeProcessor = function (name, processor) {\n if (arguments.length === 1) {\n processor = name\n name = null\n }\n return registerExtension(this, 'tree_processor', processor, name)\n}\n\n/**\n * @memberof Extensions/Registry\n */\nRegistry.prototype.postprocessor = function (name, processor) {\n if (arguments.length === 1) {\n processor = name\n name = null\n }\n return registerExtension(this, 'postprocessor', processor, name)\n}\n\n/**\n * @memberof Extensions/Registry\n */\nRegistry.prototype.preprocessor = function (name, processor) {\n if (arguments.length === 1) {\n processor = name\n name = null\n }\n return registerExtension(this, 'preprocessor', processor, name)\n}\n\n/**\n * @memberof Extensions/Registry\n */\nRegistry.prototype.docinfoProcessor = function (name, processor) {\n if (arguments.length === 1) {\n processor = name\n name = null\n }\n return registerExtension(this, 'docinfo_processor', processor, name)\n}\n\n/**\n * Checks whether any {{@link Extensions/Preprocessor}} extensions have been registered.\n *\n * @memberof Extensions/Registry\n * @returns a {boolean} indicating whether any {{@link Extensions/Preprocessor}} extensions are registered.\n */\nRegistry.prototype.hasPreprocessors = function () {\n return this['$preprocessors?']()\n}\n\n/**\n * Checks whether any {{@link Extensions/TreeProcessor}} extensions have been registered.\n *\n * @memberof Extensions/Registry\n * @returns a {boolean} indicating whether any {{@link Extensions/TreeProcessor}} extensions are registered.\n */\nRegistry.prototype.hasTreeProcessors = function () {\n return this['$tree_processors?']()\n}\n\n/**\n * Checks whether any {{@link Extensions/IncludeProcessor}} extensions have been registered.\n *\n * @memberof Extensions/Registry\n * @returns a {boolean} indicating whether any {{@link Extensions/IncludeProcessor}} extensions are registered.\n */\nRegistry.prototype.hasIncludeProcessors = function () {\n return this['$include_processors?']()\n}\n\n/**\n * Checks whether any {{@link Extensions/Postprocessor}} extensions have been registered.\n *\n * @memberof Extensions/Registry\n * @returns a {boolean} indicating whether any {{@link Extensions/Postprocessor}} extensions are registered.\n */\nRegistry.prototype.hasPostprocessors = function () {\n return this['$postprocessors?']()\n}\n\n/**\n * Checks whether any {{@link Extensions/DocinfoProcessor}} extensions have been registered.\n *\n * @memberof Extensions/Registry\n * @param location - A {string} for selecting docinfo extensions at a given location (head or footer) (default: undefined)\n * @returns a {boolean} indicating whether any {{@link Extensions/DocinfoProcessor}} extensions are registered.\n */\nRegistry.prototype.hasDocinfoProcessors = function (location) {\n return this['$docinfo_processors?'](location)\n}\n\n/**\n * Checks whether any {{@link Extensions/BlockProcessor}} extensions have been registered.\n *\n * @memberof Extensions/Registry\n * @returns a {boolean} indicating whether any {{@link Extensions/BlockProcessor}} extensions are registered.\n */\nRegistry.prototype.hasBlocks = function () {\n return this['$blocks?']()\n}\n\n/**\n * Checks whether any {{@link Extensions/BlockMacroProcessor}} extensions have been registered.\n *\n * @memberof Extensions/Registry\n * @returns a {boolean} indicating whether any {{@link Extensions/BlockMacroProcessor}} extensions are registered.\n */\nRegistry.prototype.hasBlockMacros = function () {\n return this['$block_macros?']()\n}\n\n/**\n * Checks whether any {{@link Extensions/InlineMacroProcessor}} extensions have been registered.\n *\n * @memberof Extensions/Registry\n * @returns a {boolean} indicating whether any {{@link Extensions/InlineMacroProcessor}} extensions are registered.\n */\nRegistry.prototype.hasInlineMacros = function () {\n return this['$inline_macros?']()\n}\n\n/**\n * Retrieves the Extension proxy objects for all the {{@link Extensions/Preprocessor}} instances stored in this registry.\n *\n * @memberof Extensions/Registry\n * @returns an {array} of Extension proxy objects.\n */\nRegistry.prototype.getPreprocessors = function () {\n return this.$preprocessors()\n}\n\n/**\n * Retrieves the Extension proxy objects for all the {{@link Extensions/TreeProcessor}} instances stored in this registry.\n *\n * @memberof Extensions/Registry\n * @returns an {array} of Extension proxy objects.\n */\nRegistry.prototype.getTreeProcessors = function () {\n return this.$tree_processors()\n}\n\n/**\n * Retrieves the Extension proxy objects for all the {{@link Extensions/IncludeProcessor}} instances stored in this registry.\n *\n * @memberof Extensions/Registry\n * @returns an {array} of Extension proxy objects.\n */\nRegistry.prototype.getIncludeProcessors = function () {\n return this.$include_processors()\n}\n\n/**\n * Retrieves the Extension proxy objects for all the {{@link Extensions/Postprocessor}} instances stored in this registry.\n *\n * @memberof Extensions/Registry\n * @returns an {array} of Extension proxy objects.\n */\nRegistry.prototype.getPostprocessors = function () {\n return this.$postprocessors()\n}\n\n/**\n * Retrieves the Extension proxy objects for all the {{@link Extensions/DocinfoProcessor}} instances stored in this registry.\n *\n * @memberof Extensions/Registry\n * @param location - A {string} for selecting docinfo extensions at a given location (head or footer) (default: undefined)\n * @returns an {array} of Extension proxy objects.\n */\nRegistry.prototype.getDocinfoProcessors = function (location) {\n return this.$docinfo_processors(location)\n}\n\n/**\n * Retrieves the Extension proxy objects for all the {{@link Extensions/BlockProcessor}} instances stored in this registry.\n *\n * @memberof Extensions/Registry\n * @returns an {array} of Extension proxy objects.\n */\nRegistry.prototype.getBlocks = function () {\n return this.block_extensions.$values()\n}\n\n/**\n * Retrieves the Extension proxy objects for all the {{@link Extensions/BlockMacroProcessor}} instances stored in this registry.\n *\n * @memberof Extensions/Registry\n * @returns an {array} of Extension proxy objects.\n */\nRegistry.prototype.getBlockMacros = function () {\n return this.block_macro_extensions.$values()\n}\n\n/**\n * Retrieves the Extension proxy objects for all the {{@link Extensions/InlineMacroProcessor}} instances stored in this registry.\n *\n * @memberof Extensions/Registry\n * @returns an {array} of Extension proxy objects.\n */\nRegistry.prototype.getInlineMacros = function () {\n return this.$inline_macros()\n}\n\n/**\n * Get any {{@link Extensions/InlineMacroProcessor}} extensions are registered to handle the specified inline macro name.\n *\n * @param name - the {string} inline macro name\n * @memberof Extensions/Registry\n * @returns the Extension proxy object for the {{@link Extensions/InlineMacroProcessor}} that matches the inline macro name or undefined if no match is found.\n */\nRegistry.prototype.getInlineMacroFor = function (name) {\n var result = this['$registered_for_inline_macro?'](name)\n return result === false ? undefined : result\n}\n\n/**\n * Get any {{@link Extensions/BlockProcessor}} extensions are registered to handle the specified block name appearing on the specified context.\n * @param name - the {string} block name\n * @param context - the context of the block: paragraph, open... (optional)\n * @memberof Extensions/Registry\n * @returns the Extension proxy object for the {{@link Extensions/BlockProcessor}} that matches the block name and context or undefined if no match is found.\n */\nRegistry.prototype.getBlockFor = function (name, context) {\n if (typeof context === 'undefined') {\n var ext = this.$find_block_extension(name)\n return ext === Opal.nil ? undefined : ext\n }\n var result = this['$registered_for_block?'](name, context)\n return result === false ? undefined : result\n}\n\n/**\n * Get any {{@link Extensions/BlockMacroProcessor}} extensions are registered to handle the specified macro name.\n *\n * @param name - the {string} macro name\n * @memberof Extensions/Registry\n * @returns the Extension proxy object for the {{@link Extensions/BlockMacroProcessor}} that matches the macro name or undefined if no match is found.\n */\nRegistry.prototype.getBlockMacroFor = function (name) {\n var result = this['$registered_for_block_macro?'](name)\n return result === false ? undefined : result\n}\n\n/**\n * @namespace\n * @module Extensions/Processor\n */\nvar Processor = Extensions.Processor\n\n/**\n * The extension will be added to the beginning of the list for that extension type. (default is append).\n * @memberof Extensions/Processor\n * @deprecated Please use the prefer function on the {@link Extensions/Registry},\n * the {@link Extensions/IncludeProcessor},\n * the {@link Extensions/TreeProcessor},\n * the {@link Extensions/Postprocessor},\n * the {@link Extensions/Preprocessor}\n * or the {@link Extensions/DocinfoProcessor}\n */\nProcessor.prototype.prepend = function () {\n this.$option('position', '>>')\n}\n\n/**\n * @memberof Extensions/Processor\n */\nProcessor.prototype.process = function (block) {\n var handler = {\n apply: function (target, thisArg, argumentsList) {\n for (var i = 0; i < argumentsList.length; i++) {\n // convert all (Opal) Hash arguments to JSON.\n if (typeof argumentsList[i] === 'object' && '$$smap' in argumentsList[i]) {\n argumentsList[i] = fromHash(argumentsList[i])\n }\n }\n return target.apply(thisArg, argumentsList)\n }\n }\n var blockProxy = new Proxy(block, handler)\n return Opal.send(this, 'process', null, toBlock(blockProxy))\n}\n\n/**\n * @param {string} name\n * @memberof Extensions/Processor\n */\nProcessor.prototype.named = function (name) {\n return this.$named(name)\n}\n\n/**\n * Creates a block and links it to the specified parent.\n *\n * @param {Block|Section|Document} parent - The parent Block (Block, Section, or Document) of this new block.\n * @param {string} context\n * @param {string|Array} source\n * @param {Object|undefined} attrs - A JSON of attributes\n * @param {Object|undefined} opts - A JSON of options\n * @return {Block}\n * @memberof Extensions/Processor\n */\nProcessor.prototype.createBlock = function (parent, context, source, attrs, opts) {\n return this.$create_block(parent, context, source, toHash(attrs), toHash(opts))\n}\n\n/**\n * Creates a list block node and links it to the specified parent.\n *\n * @param parent - The parent Block (Block, Section, or Document) of this new list block.\n * @param {string} context - The list context (e.g., ulist, olist, colist, dlist)\n * @param {Object} attrs - An object of attributes to set on this list block\n * @returns {List}\n * @memberof Extensions/Processor\n */\nProcessor.prototype.createList = function (parent, context, attrs) {\n return this.$create_list(parent, context, toHash(attrs))\n}\n\n/**\n * Creates a list item node and links it to the specified parent.\n *\n * @param {List} parent - The parent {List} of this new list item block.\n * @param {string} text - The text of the list item.\n * @returns {ListItem}\n * @memberof Extensions/Processor\n */\nProcessor.prototype.createListItem = function (parent, text) {\n return this.$create_list_item(parent, text)\n}\n\n/**\n * Creates an image block node and links it to the specified parent.\n * @param {Block|Section|Document} parent - The parent Block of this new image block.\n * @param {Object} attrs - A JSON of attributes\n * @param {string} attrs.target - the target attribute to set the source of the image.\n * @param {string} attrs.alt - the alt attribute to specify an alternative text for the image.\n * @param {Object} opts - A JSON of options\n * @returns {Block}\n * @memberof Extensions/Processor\n */\nProcessor.prototype.createImageBlock = function (parent, attrs, opts) {\n return this.$create_image_block(parent, toHash(attrs), toHash(opts))\n}\n\n/**\n * Creates a paragraph block and links it to the specified parent.\n *\n * @param {Block|Section|Document} parent - The parent Block (Block, Section, or Document) of this new block.\n * @param {string|Array} source - The source\n * @param {Object|undefined} attrs - An object of attributes to set on this block\n * @param {Object|undefined} opts - An object of options to set on this block\n * @returns {Block} - a paragraph {Block}\n * @memberof Extensions/Processor\n */\nProcessor.prototype.createParagraph = function (parent, source, attrs, opts) {\n return this.$create_paragraph(parent, source, toHash(attrs), toHash(opts))\n}\n\n/**\n * Creates an open block and links it to the specified parent.\n *\n * @param {Block|Section|Document} parent - The parent Block (Block, Section, or Document) of this new block.\n * @param {string|Array} source - The source\n * @param {Object|undefined} attrs - An object of attributes to set on this block\n * @param {Object|undefined} opts - An object of options to set on this block\n * @returns {Block} - an open {Block}\n * @memberof Extensions/Processor\n */\nProcessor.prototype.createOpenBlock = function (parent, source, attrs, opts) {\n return this.$create_open_block(parent, source, toHash(attrs), toHash(opts))\n}\n\n/**\n * Creates an example block and links it to the specified parent.\n *\n * @param {Block|Section|Document} parent - The parent Block (Block, Section, or Document) of this new block.\n * @param {string|Array} source - The source\n * @param {Object|undefined} attrs - An object of attributes to set on this block\n * @param {Object|undefined} opts - An object of options to set on this block\n * @returns {Block} - an example {Block}\n * @memberof Extensions/Processor\n */\nProcessor.prototype.createExampleBlock = function (parent, source, attrs, opts) {\n return this.$create_example_block(parent, source, toHash(attrs), toHash(opts))\n}\n\n/**\n * Creates a literal block and links it to the specified parent.\n *\n * @param {Block|Section|Document} parent - The parent Block (Block, Section, or Document) of this new block.\n * @param {string|Array} source - The source\n * @param {Object|undefined} attrs - An object of attributes to set on this block\n * @param {Object|undefined} opts - An object of options to set on this block\n * @returns {Block} - a literal {Block}\n * @memberof Extensions/Processor\n */\nProcessor.prototype.createPassBlock = function (parent, source, attrs, opts) {\n return this.$create_pass_block(parent, source, toHash(attrs), toHash(opts))\n}\n\n/**\n * Creates a listing block and links it to the specified parent.\n *\n * @param {Block|Section|Document} parent - The parent Block (Block, Section, or Document) of this new block.\n * @param {string|Array} source - The source\n * @param {Object|undefined} attrs - An object of attributes to set on this block\n * @param {Object|undefined} opts - An object of options to set on this block\n * @returns {Block} - a listing {Block}\n * @memberof Extensions/Processor\n */\nProcessor.prototype.createListingBlock = function (parent, source, attrs, opts) {\n return this.$create_listing_block(parent, source, toHash(attrs), toHash(opts))\n}\n\n/**\n * Creates a literal block and links it to the specified parent.\n *\n * @param {Block|Section|Document} parent - The parent Block (Block, Section, or Document) of this new block.\n * @param {string|Array} source - The source\n * @param {Object|undefined} attrs - An object of attributes to set on this block\n * @param {Object|undefined} opts - An object of options to set on this block\n * @returns {Block} - a literal {Block}\n * @memberof Extensions/Processor\n */\nProcessor.prototype.createLiteralBlock = function (parent, source, attrs, opts) {\n return this.$create_literal_block(parent, source, toHash(attrs), toHash(opts))\n}\n\n/**\n * Creates an inline anchor and links it to the specified parent.\n *\n * @param {Block|Section|Document} parent - The parent Block (Block, Section, or Document) of this new block.\n * @param {string} text - The text\n * @param {Object|undefined} opts - An object of options to set on this block\n * @returns {Inline} - an {Inline} anchor\n * @memberof Extensions/Processor\n */\nProcessor.prototype.createAnchor = function (parent, text, opts) {\n if (opts && opts.attributes) {\n opts.attributes = toHash(opts.attributes)\n }\n return this.$create_anchor(parent, text, toHash(opts))\n}\n\n/**\n * Creates an inline pass and links it to the specified parent.\n *\n * @param {Block|Section|Document} parent - The parent Block (Block, Section, or Document) of this new block.\n * @param {string} text - The text\n * @param {Object|undefined} opts - An object of options to set on this block\n * @returns {Inline} - an {Inline} pass\n * @memberof Extensions/Processor\n */\nProcessor.prototype.createInlinePass = function (parent, text, opts) {\n if (opts && opts.attributes) {\n opts.attributes = toHash(opts.attributes)\n }\n return this.$create_inline_pass(parent, text, toHash(opts))\n}\n\n/**\n * Creates an inline node and links it to the specified parent.\n *\n * @param {Block|Section|Document} parent - The parent Block of this new inline node.\n * @param {string} context - The context name\n * @param {string} text - The text\n * @param {Object|undefined} opts - A JSON of options\n * @returns {Inline} - an {Inline} node\n * @memberof Extensions/Processor\n */\nProcessor.prototype.createInline = function (parent, context, text, opts) {\n if (opts && opts.attributes) {\n opts.attributes = toHash(opts.attributes)\n }\n return this.$create_inline(parent, context, text, toHash(opts))\n}\n\n/**\n * Parses blocks in the content and attaches the block to the parent.\n * @param {AbstractBlock} parent - the parent block\n * @param {string|Array} content - the content\n * @param {Object|undefined} attrs - an object of attributes\n * @returns {AbstractNode} - The parent node into which the blocks are parsed.\n * @memberof Extensions/Processor\n */\nProcessor.prototype.parseContent = function (parent, content, attrs) {\n return this.$parse_content(parent, content, attrs)\n}\n\n/**\n * Parses the attrlist String into a JSON of attributes\n * @param {AbstractBlock} block - the current AbstractBlock or the parent AbstractBlock if there is no current block (used for applying subs)\n * @param {string} attrlist - the list of attributes as a String\n * @param {Object|undefined} opts - an optional JSON of options to control processing:\n * - positional_attributes: an Array of attribute names to map positional arguments to (optional, default: [])\n * - sub_attributes: enables attribute substitution on the attrlist argument (optional, default: false)\n *\n * @returns - a JSON of parsed attributes\n * @memberof Extensions/Processor\n */\nProcessor.prototype.parseAttributes = function (block, attrlist, opts) {\n if (opts && opts.attributes) {\n opts.attributes = toHash(opts.attributes)\n }\n return fromHash(this.$parse_attributes(block, attrlist, toHash(opts)))\n}\n\n/**\n * @param {string|Array} value - Name of a positional attribute or an Array of positional attribute names\n * @memberof Extensions/Processor\n */\nProcessor.prototype.positionalAttributes = function (value) {\n return this.$positional_attrs(value)\n}\n\n/**\n * Specify how to resolve attributes.\n *\n * @param {string|Array|Object|boolean} [value] - A specification to resolve attributes.\n * @memberof Extensions/Processor\n */\nProcessor.prototype.resolveAttributes = function (value) {\n if (typeof value === 'object' && !Array.isArray(value)) {\n return this.$resolves_attributes(toHash(value))\n }\n if (arguments.length > 1) {\n return this.$resolves_attributes(Array.prototype.slice.call(arguments))\n }\n if (typeof value === 'undefined') {\n // Convert to nil otherwise an exception is thrown at:\n // https://github.com/asciidoctor/asciidoctor/blob/0bcb4addc17b307f62975aad203fb556a1bcd8a5/lib/asciidoctor/extensions.rb#L583\n //\n // if args.size == 1 && !args[0]\n //\n // In the above Ruby code, args[0] is undefined and Opal will try to call the function \"!\" on an undefined object.\n return this.$resolves_attributes(Opal.nil)\n }\n return this.$resolves_attributes(value)\n}\n\n/**\n * @deprecated Please use the resolveAttributes function on the {@link Extensions/Processor}.\n * @memberof Extensions/Processor\n * @see {Processor#resolveAttributes}\n */\nProcessor.prototype.resolvesAttributes = Processor.prototype.resolveAttributes\n\n/**\n * Get the configuration JSON for this processor instance.\n * @memberof Extensions/Processor\n */\nProcessor.prototype.getConfig = function () {\n return fromHash(this.config)\n}\n\n/**\n * @memberof Extensions/Processor\n */\nProcessor.prototype.option = function (key, value) {\n this.$option(key, value)\n}\n\n/**\n * @namespace\n * @module Extensions/BlockProcessor\n */\nvar BlockProcessor = Extensions.BlockProcessor\n\n/**\n * @param {Object} value - a JSON of default values for attributes\n * @memberof Extensions/BlockProcessor\n */\nBlockProcessor.prototype.defaultAttributes = function (value) {\n this.$default_attributes(toHash(value))\n}\n\n/**\n * @param {string} context - A context name\n * @memberof Extensions/BlockProcessor\n */\nBlockProcessor.prototype.onContext = function (context) {\n return this.$on_context(context)\n}\n\n/**\n * @param {...string} contexts - A list of context names\n * @memberof Extensions/BlockProcessor\n */\nBlockProcessor.prototype.onContexts = function (contexts) {\n return this.$on_contexts(Array.prototype.slice.call(arguments))\n}\n\n/**\n * @returns {string}\n * @memberof Extensions/BlockProcessor\n */\nBlockProcessor.prototype.getName = function () {\n var name = this.name\n return name === Opal.nil ? undefined : name\n}\n\n/**\n * @param {string} value\n * @memberof Extensions/BlockProcessor\n */\nBlockProcessor.prototype.parseContentAs = function (value) {\n this.$parse_content_as(value)\n}\n\n/**\n * @namespace\n * @module Extensions/BlockMacroProcessor\n */\nvar BlockMacroProcessor = Extensions.BlockMacroProcessor\n\n/**\n * @param {Object} value - a JSON of default values for attributes\n * @memberof Extensions/BlockMacroProcessor\n */\nBlockMacroProcessor.prototype.defaultAttributes = function (value) {\n this.$default_attributes(toHash(value))\n}\n\n/**\n * @returns {string} - the block macro name\n * @memberof Extensions/BlockMacroProcessor\n */\nBlockMacroProcessor.prototype.getName = function () {\n var name = this.name\n return name === Opal.nil ? undefined : name\n}\n\n/**\n * @param {string} value\n * @memberof Extensions/BlockMacroProcessor\n */\nBlockMacroProcessor.prototype.parseContentAs = function (value) {\n this.$parse_content_as(value)\n}\n\n/**\n * @namespace\n * @module Extensions/InlineMacroProcessor\n */\nvar InlineMacroProcessor = Extensions.InlineMacroProcessor\n\n/**\n * @param {Object} value - a JSON of default values for attributes\n * @memberof Extensions/InlineMacroProcessor\n */\nInlineMacroProcessor.prototype.defaultAttributes = function (value) {\n this.$default_attributes(toHash(value))\n}\n\n/**\n * @returns {string} - the inline macro name\n * @memberof Extensions/InlineMacroProcessor\n */\nInlineMacroProcessor.prototype.getName = function () {\n var name = this.name\n return name === Opal.nil ? undefined : name\n}\n\n/**\n * @param {string} value\n * @memberof Extensions/InlineMacroProcessor\n */\nInlineMacroProcessor.prototype.parseContentAs = function (value) {\n this.$parse_content_as(value)\n}\n\n/**\n * @param {string} value\n * @memberof Extensions/InlineMacroProcessor\n */\nInlineMacroProcessor.prototype.matchFormat = function (value) {\n this.$match_format(value)\n}\n\n/**\n * @param {RegExp} value\n * @memberof Extensions/InlineMacroProcessor\n */\nInlineMacroProcessor.prototype.match = function (value) {\n this.$match(value)\n}\n\n/**\n * @namespace\n * @module Extensions/IncludeProcessor\n */\nvar IncludeProcessor = Extensions.IncludeProcessor\n\n/**\n * @memberof Extensions/IncludeProcessor\n */\nIncludeProcessor.prototype.handles = function (block) {\n return Opal.send(this, 'handles?', null, toBlock(block))\n}\n\n/**\n * @memberof Extensions/IncludeProcessor\n */\nIncludeProcessor.prototype.prefer = function () {\n this.$prefer()\n}\n\n/**\n * @namespace\n * @module Extensions/TreeProcessor\n */\nvar TreeProcessor = Extensions.TreeProcessor\n\n/**\n * @memberof Extensions/TreeProcessor\n */\nTreeProcessor.prototype.prefer = function () {\n this.$prefer()\n}\n\n/**\n * @namespace\n * @module Extensions/Postprocessor\n */\nvar Postprocessor = Extensions.Postprocessor\n\n/**\n * @memberof Extensions/Postprocessor\n */\nPostprocessor.prototype.prefer = function () {\n this.$prefer()\n}\n\n/**\n * @namespace\n * @module Extensions/Preprocessor\n */\nvar Preprocessor = Extensions.Preprocessor\n\n/**\n * @memberof Extensions/Preprocessor\n */\nPreprocessor.prototype.prefer = function () {\n this.$prefer()\n}\n\n/**\n * @namespace\n * @module Extensions/DocinfoProcessor\n */\nvar DocinfoProcessor = Extensions.DocinfoProcessor\n\n/**\n * @memberof Extensions/DocinfoProcessor\n */\nDocinfoProcessor.prototype.prefer = function () {\n this.$prefer()\n}\n\n/**\n * @param {string} value - The docinfo location (\"head\", \"header\" or \"footer\")\n * @memberof Extensions/DocinfoProcessor\n */\nDocinfoProcessor.prototype.atLocation = function (value) {\n this.$at_location(value)\n}\n\nfunction initializeProcessorClass (superclassName, className, functions) {\n var superClass = Opal.const_get_qualified(Extensions, superclassName)\n return initializeClass(superClass, className, functions, {\n 'handles?': function () {\n return true\n }\n })\n}\n\n// Postprocessor\n\n/**\n * Create a postprocessor\n * @description this API is experimental and subject to change\n * @memberof Extensions\n */\nExtensions.createPostprocessor = function (name, functions) {\n if (arguments.length === 1) {\n functions = name\n name = null\n }\n return initializeProcessorClass('Postprocessor', name, functions)\n}\n\n/**\n * Create and instantiate a postprocessor\n * @description this API is experimental and subject to change\n * @memberof Extensions\n */\nExtensions.newPostprocessor = function (name, functions) {\n if (arguments.length === 1) {\n functions = name\n name = null\n }\n return this.createPostprocessor(name, functions).$new()\n}\n\n// Preprocessor\n\n/**\n * Create a preprocessor\n * @description this API is experimental and subject to change\n * @memberof Extensions\n */\nExtensions.createPreprocessor = function (name, functions) {\n if (arguments.length === 1) {\n functions = name\n name = null\n }\n return initializeProcessorClass('Preprocessor', name, functions)\n}\n\n/**\n * Create and instantiate a preprocessor\n * @description this API is experimental and subject to change\n * @memberof Extensions\n */\nExtensions.newPreprocessor = function (name, functions) {\n if (arguments.length === 1) {\n functions = name\n name = null\n }\n return this.createPreprocessor(name, functions).$new()\n}\n\n// Tree Processor\n\n/**\n * Create a tree processor\n * @description this API is experimental and subject to change\n * @memberof Extensions\n */\nExtensions.createTreeProcessor = function (name, functions) {\n if (arguments.length === 1) {\n functions = name\n name = null\n }\n return initializeProcessorClass('TreeProcessor', name, functions)\n}\n\n/**\n * Create and instantiate a tree processor\n * @description this API is experimental and subject to change\n * @memberof Extensions\n */\nExtensions.newTreeProcessor = function (name, functions) {\n if (arguments.length === 1) {\n functions = name\n name = null\n }\n return this.createTreeProcessor(name, functions).$new()\n}\n\n// Include Processor\n\n/**\n * Create an include processor\n * @description this API is experimental and subject to change\n * @memberof Extensions\n */\nExtensions.createIncludeProcessor = function (name, functions) {\n if (arguments.length === 1) {\n functions = name\n name = null\n }\n return initializeProcessorClass('IncludeProcessor', name, functions)\n}\n\n/**\n * Create and instantiate an include processor\n * @description this API is experimental and subject to change\n * @memberof Extensions\n */\nExtensions.newIncludeProcessor = function (name, functions) {\n if (arguments.length === 1) {\n functions = name\n name = null\n }\n return this.createIncludeProcessor(name, functions).$new()\n}\n\n// Docinfo Processor\n\n/**\n * Create a Docinfo processor\n * @description this API is experimental and subject to change\n * @memberof Extensions\n */\nExtensions.createDocinfoProcessor = function (name, functions) {\n if (arguments.length === 1) {\n functions = name\n name = null\n }\n return initializeProcessorClass('DocinfoProcessor', name, functions)\n}\n\n/**\n * Create and instantiate a Docinfo processor\n * @description this API is experimental and subject to change\n * @memberof Extensions\n */\nExtensions.newDocinfoProcessor = function (name, functions) {\n if (arguments.length === 1) {\n functions = name\n name = null\n }\n return this.createDocinfoProcessor(name, functions).$new()\n}\n\n// Block Processor\n\n/**\n * Create a block processor\n * @description this API is experimental and subject to change\n * @memberof Extensions\n */\nExtensions.createBlockProcessor = function (name, functions) {\n if (arguments.length === 1) {\n functions = name\n name = null\n }\n return initializeProcessorClass('BlockProcessor', name, functions)\n}\n\n/**\n * Create and instantiate a block processor\n * @description this API is experimental and subject to change\n * @memberof Extensions\n */\nExtensions.newBlockProcessor = function (name, functions) {\n if (arguments.length === 1) {\n functions = name\n name = null\n }\n return this.createBlockProcessor(name, functions).$new()\n}\n\n// Inline Macro Processor\n\n/**\n * Create an inline macro processor\n * @description this API is experimental and subject to change\n * @memberof Extensions\n */\nExtensions.createInlineMacroProcessor = function (name, functions) {\n if (arguments.length === 1) {\n functions = name\n name = null\n }\n return initializeProcessorClass('InlineMacroProcessor', name, functions)\n}\n\n/**\n * Create and instantiate an inline macro processor\n * @description this API is experimental and subject to change\n * @memberof Extensions\n */\nExtensions.newInlineMacroProcessor = function (name, functions) {\n if (arguments.length === 1) {\n functions = name\n name = null\n }\n return this.createInlineMacroProcessor(name, functions).$new()\n}\n\n// Block Macro Processor\n\n/**\n * Create a block macro processor\n * @description this API is experimental and subject to change\n * @memberof Extensions\n */\nExtensions.createBlockMacroProcessor = function (name, functions) {\n if (arguments.length === 1) {\n functions = name\n name = null\n }\n return initializeProcessorClass('BlockMacroProcessor', name, functions)\n}\n\n/**\n * Create and instantiate a block macro processor\n * @description this API is experimental and subject to change\n * @memberof Extensions\n */\nExtensions.newBlockMacroProcessor = function (name, functions) {\n if (arguments.length === 1) {\n functions = name\n name = null\n }\n return this.createBlockMacroProcessor(name, functions).$new()\n}\n\n// Converter API\n\n/**\n * @namespace\n * @module Converter\n */\nvar Converter = Opal.const_get_qualified(Opal.Asciidoctor, 'Converter')\n\n// Alias\nOpal.Asciidoctor.Converter = Converter\n\n/**\n * Convert the specified node.\n *\n * @param {AbstractNode} node - the AbstractNode to convert\n * @param {string} transform - an optional String transform that hints at\n * which transformation should be applied to this node.\n * @param {Object} opts - a JSON of options that provide additional hints about how to convert the node (default: {})\n * @returns the {Object} result of the conversion, typically a {string}.\n * @memberof Converter\n */\nConverter.prototype.convert = function (node, transform, opts) {\n return this.$convert(node, transform, toHash(opts))\n}\n\n/**\n * Create an instance of the converter bound to the specified backend.\n *\n * @param {string} backend - look for a converter bound to this keyword.\n * @param {Object} opts - a JSON of options to pass to the converter (default: {})\n * @returns {Converter} - a converter instance for converting nodes in an Asciidoctor AST.\n * @memberof Converter\n */\nConverter.create = function (backend, opts) {\n return this.$create(backend, toHash(opts))\n}\n\n// Converter Factory API\n\n/**\n * @namespace\n * @module Converter/Factory\n */\nvar ConverterFactory = Opal.Asciidoctor.Converter.Factory\n\nvar ConverterBase = Opal.Asciidoctor.Converter.Base\n\n// Alias\nOpal.Asciidoctor.ConverterFactory = ConverterFactory\n\nvar ConverterBackendTraits = Opal.Asciidoctor.Converter.BackendTraits\n\n// Alias\nOpal.Asciidoctor.ConverterBackendTraits = ConverterBackendTraits\n\n/**\n * Register a custom converter in the global converter factory to handle conversion to the specified backends.\n * If the backend value is an asterisk, the converter is used to handle any backend that does not have an explicit converter.\n *\n * @param converter - The Converter instance to register\n * @param backends {Array} - A {string} {Array} of backend names that this converter should be registered to handle (optional, default: ['*'])\n * @return {*} - Returns nothing\n * @memberof Converter/Factory\n */\nConverterFactory.register = function (converter, backends) {\n var object\n var buildBackendTraitsFromObject = function (obj) {\n return Object.assign({},\n obj.basebackend ? { basebackend: obj.basebackend } : {},\n obj.outfilesuffix ? { outfilesuffix: obj.outfilesuffix } : {},\n obj.filetype ? { filetype: obj.filetype } : {},\n obj.htmlsyntax ? { htmlsyntax: obj.htmlsyntax } : {},\n obj.supports_templates ? { supports_templates: obj.supports_templates } : {}\n )\n }\n var assignBackendTraitsToInstance = function (obj, instance) {\n if (obj.backend_traits) {\n instance.backend_traits = toHash(obj.backend_traits)\n } else if (obj.backendTraits) {\n instance.backend_traits = toHash(obj.backendTraits)\n } else if (obj.basebackend || obj.outfilesuffix || obj.filetype || obj.htmlsyntax || obj.supports_templates) {\n instance.backend_traits = toHash(buildBackendTraitsFromObject(obj))\n }\n }\n var bridgeHandlesMethodToInstance = function (obj, instance) {\n bridgeMethodToInstance(obj, instance, '$handles?', 'handles', function () {\n return true\n })\n }\n var bridgeComposedMethodToInstance = function (obj, instance) {\n bridgeMethodToInstance(obj, instance, '$composed', 'composed')\n }\n var bridgeMethodToInstance = function (obj, instance, methodName, functionName, defaultImplementation) {\n if (typeof obj[methodName] === 'undefined') {\n if (typeof obj[functionName] === 'function') {\n instance[methodName] = obj[functionName]\n } else if (defaultImplementation) {\n instance[methodName] = defaultImplementation\n }\n }\n }\n var addRespondToMethod = function (instance) {\n if (typeof instance['$respond_to?'] !== 'function') {\n instance['$respond_to?'] = function (name) {\n return typeof this[name] === 'function'\n }\n }\n }\n if (typeof converter === 'function') {\n // Class\n object = initializeClass(ConverterBase, converter.constructor.name, {\n initialize: function (backend, opts) {\n var self = this\n var result = new converter(backend, opts) // eslint-disable-line\n Object.assign(this, result)\n assignBackendTraitsToInstance(result, self)\n var propertyNames = Object.getOwnPropertyNames(converter.prototype)\n for (var i = 0; i < propertyNames.length; i++) {\n var propertyName = propertyNames[i]\n if (propertyName !== 'constructor') {\n self[propertyName] = result[propertyName]\n }\n }\n if (typeof result.$convert === 'undefined' && typeof result.convert === 'function') {\n self.$convert = result.convert\n }\n bridgeHandlesMethodToInstance(result, self)\n bridgeComposedMethodToInstance(result, self)\n addRespondToMethod(self)\n self.super(backend, opts)\n }\n })\n object.$extend(ConverterBackendTraits)\n } else if (typeof converter === 'object') {\n // Instance\n if (typeof converter.$convert === 'undefined' && typeof converter.convert === 'function') {\n converter.$convert = converter.convert\n }\n assignBackendTraitsToInstance(converter, converter)\n if (converter.backend_traits) {\n // \"extends\" ConverterBackendTraits\n var converterBackendTraitsFunctionNames = [\n 'basebackend',\n 'filetype',\n 'htmlsyntax',\n 'outfilesuffix',\n 'supports_templates',\n 'supports_templates?',\n 'init_backend_traits',\n 'backend_traits'\n ]\n for (var functionName of converterBackendTraitsFunctionNames) {\n converter['$' + functionName] = ConverterBackendTraits.prototype['$' + functionName]\n }\n converter.$$meta = ConverterBackendTraits\n }\n bridgeHandlesMethodToInstance(converter, converter)\n bridgeComposedMethodToInstance(converter, converter)\n addRespondToMethod(converter)\n object = converter\n }\n var args = [object].concat(backends)\n return Converter.$register.apply(Converter, args)\n}\n\n/**\n * Retrieves the singleton instance of the converter factory.\n *\n * @param {boolean} initialize - instantiate the singleton if it has not yet\n * been instantiated. If this value is false and the singleton has not yet been\n * instantiated, this method returns a fresh instance.\n * @returns {Converter/Factory} an instance of the converter factory.\n * @memberof Converter/Factory\n */\nConverterFactory.getDefault = function (initialize) {\n return this.$default(initialize)\n}\n\n/**\n * Create an instance of the converter bound to the specified backend.\n *\n * @param {string} backend - look for a converter bound to this keyword.\n * @param {Object} opts - a JSON of options to pass to the converter (default: {})\n * @returns {Converter} - a converter instance for converting nodes in an Asciidoctor AST.\n * @memberof Converter/Factory\n */\nConverterFactory.prototype.create = function (backend, opts) {\n return this.$create(backend, toHash(opts))\n}\n\n/**\n * Get the converter registry.\n * @returns the registry of converter instances or classes keyed by backend name\n * @memberof Converter/Factory\n */\nConverterFactory.getRegistry = function () {\n return fromHash(Converter.$registry())\n}\n\n/**\n * Lookup the custom converter registered with this factory to handle the specified backend.\n *\n * @param {string} backend - The {string} backend name.\n * @returns the {Converter} class or instance registered to convert the specified backend or undefined if no match is found.\n * @memberof Converter/Factory\n */\nConverterFactory.for = function (backend) {\n const converter = Converter.$for(backend)\n return converter === Opal.nil ? undefined : converter\n}\n\n/*\n * Unregister any custom converter classes that are registered with this factory.\n * Intended for testing only!\n */\nConverterFactory.unregisterAll = function () {\n var internalRegistry = Converter.DefaultFactory.$$cvars['@@registry']\n Converter.DefaultFactory.$$cvars['@@registry'] = toHash({ html5: internalRegistry['$[]']('html5') })\n}\n\n// Built-in converter\n\n/**\n * @namespace\n * @module Converter/Html5Converter\n */\nvar Html5Converter = Opal.Asciidoctor.Converter.Html5Converter\n\n// Alias\nOpal.Asciidoctor.Html5Converter = Html5Converter\n\n/**\n * Create a new Html5Converter.\n * @returns {Html5Converter} - a Html5Converter\n * @memberof Converter/Html5Converter\n */\nHtml5Converter.create = function () {\n return this.$new()\n}\n\n/**\n * Converts an {AbstractNode} using the given transform.\n * This method must be implemented by a concrete converter class.\n *\n * @param {AbstractNode} node - The concrete instance of AbstractNode to convert.\n * @param {string} [transform] - An optional String transform that hints at which transformation should be applied to this node.\n * If a transform is not given, the transform is often derived from the value of the {AbstractNode#getNodeName} property. (optional, default: undefined)\n * @param {Object} [opts]- An optional JSON of options hints about how to convert the node. (optional, default: undefined)\n *\n * @returns {string} - the String result.\n * @memberof Converter/Html5Converter\n */\nHtml5Converter.prototype.convert = function (node, transform, opts) {\n return this.$convert(node, transform, opts)\n}\n\n\nvar ASCIIDOCTOR_JS_VERSION = '2.2.0';\n\n /**\n * Get Asciidoctor.js version number.\n *\n * @memberof Asciidoctor\n * @returns {string} - returns the version number of Asciidoctor.js.\n */\n Opal.Asciidoctor.prototype.getVersion = function () {\n return ASCIIDOCTOR_JS_VERSION\n }\n return Opal.Asciidoctor\n}))\n","var global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\nvar bind = require('../internals/function-bind-context');\nvar html = require('../internals/html');\nvar createElement = require('../internals/document-create-element');\nvar IS_IOS = require('../internals/engine-is-ios');\n\nvar location = global.location;\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar MessageChannel = global.MessageChannel;\nvar Dispatch = global.Dispatch;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar defer, channel, port;\n\nvar run = function (id) {\n // eslint-disable-next-line no-prototype-builtins\n if (queue.hasOwnProperty(id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar listener = function (event) {\n run(event.data);\n};\n\nvar post = function (id) {\n // old engines have not location.origin\n global.postMessage(id + '', location.protocol + '//' + location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(fn) {\n var args = [];\n var i = 1;\n while (arguments.length > i) args.push(arguments[i++]);\n queue[++counter] = function () {\n // eslint-disable-next-line no-new-func\n (typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (classof(process) == 'process') {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = bind(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n typeof postMessage == 'function' &&\n !global.importScripts &&\n !fails(post) &&\n location.protocol !== 'file:'\n ) {\n defer = post;\n global.addEventListener('message', listener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar versions = process && process.versions;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n version = match[0] + match[1];\n} else if (userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = match[1];\n }\n}\n\nmodule.exports = version && +version;\n","// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/LICENSE\n\n(function(mod) {\n if (typeof exports == \"object\" && typeof module == \"object\") // CommonJS\n mod(require(\"../../lib/codemirror\"));\n else if (typeof define == \"function\" && define.amd) // AMD\n define([\"../../lib/codemirror\"], mod);\n else // Plain browser env\n mod(CodeMirror);\n})(function(CodeMirror) {\n \"use strict\";\n var WRAP_CLASS = \"CodeMirror-activeline\";\n var BACK_CLASS = \"CodeMirror-activeline-background\";\n var GUTT_CLASS = \"CodeMirror-activeline-gutter\";\n\n CodeMirror.defineOption(\"styleActiveLine\", false, function(cm, val, old) {\n var prev = old == CodeMirror.Init ? false : old;\n if (val == prev) return\n if (prev) {\n cm.off(\"beforeSelectionChange\", selectionChange);\n clearActiveLines(cm);\n delete cm.state.activeLines;\n }\n if (val) {\n cm.state.activeLines = [];\n updateActiveLines(cm, cm.listSelections());\n cm.on(\"beforeSelectionChange\", selectionChange);\n }\n });\n\n function clearActiveLines(cm) {\n for (var i = 0; i < cm.state.activeLines.length; i++) {\n cm.removeLineClass(cm.state.activeLines[i], \"wrap\", WRAP_CLASS);\n cm.removeLineClass(cm.state.activeLines[i], \"background\", BACK_CLASS);\n cm.removeLineClass(cm.state.activeLines[i], \"gutter\", GUTT_CLASS);\n }\n }\n\n function sameArray(a, b) {\n if (a.length != b.length) return false;\n for (var i = 0; i < a.length; i++)\n if (a[i] != b[i]) return false;\n return true;\n }\n\n function updateActiveLines(cm, ranges) {\n var active = [];\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i];\n var option = cm.getOption(\"styleActiveLine\");\n if (typeof option == \"object\" && option.nonEmpty ? range.anchor.line != range.head.line : !range.empty())\n continue\n var line = cm.getLineHandleVisualStart(range.head.line);\n if (active[active.length - 1] != line) active.push(line);\n }\n if (sameArray(cm.state.activeLines, active)) return;\n cm.operation(function() {\n clearActiveLines(cm);\n for (var i = 0; i < active.length; i++) {\n cm.addLineClass(active[i], \"wrap\", WRAP_CLASS);\n cm.addLineClass(active[i], \"background\", BACK_CLASS);\n cm.addLineClass(active[i], \"gutter\", GUTT_CLASS);\n }\n cm.state.activeLines = active;\n });\n }\n\n function selectionChange(cm, sel) {\n updateActiveLines(cm, sel.ranges);\n }\n});\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","var classof = require('../internals/classof');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperties\nmodule.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);\n return O;\n};\n","var isObject = require('../internals/is-object');\n\nmodule.exports = function (it) {\n if (!isObject(it) && it !== null) {\n throw TypeError(\"Can't set \" + String(it) + ' as a prototype');\n } return it;\n};\n","// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/LICENSE\n\n(function(mod) {\n if (typeof exports == \"object\" && typeof module == \"object\") // CommonJS\n mod(require(\"../../lib/codemirror\"));\n else if (typeof define == \"function\" && define.amd) // AMD\n define([\"../../lib/codemirror\"], mod);\n else // Plain browser env\n mod(CodeMirror);\n})(function(CodeMirror) {\n var Pos = CodeMirror.Pos;\n\n function forEach(arr, f) {\n for (var i = 0, e = arr.length; i < e; ++i) f(arr[i]);\n }\n\n function arrayContains(arr, item) {\n if (!Array.prototype.indexOf) {\n var i = arr.length;\n while (i--) {\n if (arr[i] === item) {\n return true;\n }\n }\n return false;\n }\n return arr.indexOf(item) != -1;\n }\n\n function scriptHint(editor, keywords, getToken, options) {\n // Find the token at the cursor\n var cur = editor.getCursor(), token = getToken(editor, cur);\n if (/\\b(?:string|comment)\\b/.test(token.type)) return;\n var innerMode = CodeMirror.innerMode(editor.getMode(), token.state);\n if (innerMode.mode.helperType === \"json\") return;\n token.state = innerMode.state;\n\n // If it's not a 'word-style' token, ignore the token.\n if (!/^[\\w$_]*$/.test(token.string)) {\n token = {start: cur.ch, end: cur.ch, string: \"\", state: token.state,\n type: token.string == \".\" ? \"property\" : null};\n } else if (token.end > cur.ch) {\n token.end = cur.ch;\n token.string = token.string.slice(0, cur.ch - token.start);\n }\n\n var tprop = token;\n // If it is a property, find out what it is a property of.\n while (tprop.type == \"property\") {\n tprop = getToken(editor, Pos(cur.line, tprop.start));\n if (tprop.string != \".\") return;\n tprop = getToken(editor, Pos(cur.line, tprop.start));\n if (!context) var context = [];\n context.push(tprop);\n }\n return {list: getCompletions(token, context, keywords, options),\n from: Pos(cur.line, token.start),\n to: Pos(cur.line, token.end)};\n }\n\n function javascriptHint(editor, options) {\n return scriptHint(editor, javascriptKeywords,\n function (e, cur) {return e.getTokenAt(cur);},\n options);\n };\n CodeMirror.registerHelper(\"hint\", \"javascript\", javascriptHint);\n\n function getCoffeeScriptToken(editor, cur) {\n // This getToken, it is for coffeescript, imitates the behavior of\n // getTokenAt method in javascript.js, that is, returning \"property\"\n // type and treat \".\" as indepenent token.\n var token = editor.getTokenAt(cur);\n if (cur.ch == token.start + 1 && token.string.charAt(0) == '.') {\n token.end = token.start;\n token.string = '.';\n token.type = \"property\";\n }\n else if (/^\\.[\\w$_]*$/.test(token.string)) {\n token.type = \"property\";\n token.start++;\n token.string = token.string.replace(/\\./, '');\n }\n return token;\n }\n\n function coffeescriptHint(editor, options) {\n return scriptHint(editor, coffeescriptKeywords, getCoffeeScriptToken, options);\n }\n CodeMirror.registerHelper(\"hint\", \"coffeescript\", coffeescriptHint);\n\n var stringProps = (\"charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight \" +\n \"toUpperCase toLowerCase split concat match replace search\").split(\" \");\n var arrayProps = (\"length concat join splice push pop shift unshift slice reverse sort indexOf \" +\n \"lastIndexOf every some filter forEach map reduce reduceRight \").split(\" \");\n var funcProps = \"prototype apply call bind\".split(\" \");\n var javascriptKeywords = (\"break case catch class const continue debugger default delete do else export extends false finally for function \" +\n \"if in import instanceof new null return super switch this throw true try typeof var void while with yield\").split(\" \");\n var coffeescriptKeywords = (\"and break catch class continue delete do else extends false finally for \" +\n \"if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes\").split(\" \");\n\n function forAllProps(obj, callback) {\n if (!Object.getOwnPropertyNames || !Object.getPrototypeOf) {\n for (var name in obj) callback(name)\n } else {\n for (var o = obj; o; o = Object.getPrototypeOf(o))\n Object.getOwnPropertyNames(o).forEach(callback)\n }\n }\n\n function getCompletions(token, context, keywords, options) {\n var found = [], start = token.string, global = options && options.globalScope || window;\n function maybeAdd(str) {\n if (str.lastIndexOf(start, 0) == 0 && !arrayContains(found, str)) found.push(str);\n }\n function gatherCompletions(obj) {\n if (typeof obj == \"string\") forEach(stringProps, maybeAdd);\n else if (obj instanceof Array) forEach(arrayProps, maybeAdd);\n else if (obj instanceof Function) forEach(funcProps, maybeAdd);\n forAllProps(obj, maybeAdd)\n }\n\n if (context && context.length) {\n // If this is a property, see if it belongs to some object we can\n // find in the current environment.\n var obj = context.pop(), base;\n if (obj.type && obj.type.indexOf(\"variable\") === 0) {\n if (options && options.additionalContext)\n base = options.additionalContext[obj.string];\n if (!options || options.useGlobalScope !== false)\n base = base || global[obj.string];\n } else if (obj.type == \"string\") {\n base = \"\";\n } else if (obj.type == \"atom\") {\n base = 1;\n } else if (obj.type == \"function\") {\n if (global.jQuery != null && (obj.string == '$' || obj.string == 'jQuery') &&\n (typeof global.jQuery == 'function'))\n base = global.jQuery();\n else if (global._ != null && (obj.string == '_') && (typeof global._ == 'function'))\n base = global._();\n }\n while (base != null && context.length)\n base = base[context.pop().string];\n if (base != null) gatherCompletions(base);\n } else {\n // If not, just look in the global object, any local scope, and optional additional-context\n // (reading into JS mode internals to get at the local and global variables)\n for (var v = token.state.localVars; v; v = v.next) maybeAdd(v.name);\n for (var c = token.state.context; c; c = c.prev)\n for (var v = c.vars; v; v = v.next) maybeAdd(v.name)\n for (var v = token.state.globalVars; v; v = v.next) maybeAdd(v.name);\n if (options && options.additionalContext != null)\n for (var key in options.additionalContext)\n maybeAdd(key);\n if (!options || options.useGlobalScope !== false)\n gatherCompletions(global);\n forEach(keywords, maybeAdd);\n }\n return found;\n }\n});\n","/*!\n* sweetalert2 v9.17.2\n* Released under the MIT License.\n*/\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = global || self, global.Sweetalert2 = factory());\n}(this, function () { 'use strict';\n\n function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n }\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n }\n\n function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n }\n\n function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n }\n\n function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n }\n\n function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n }\n\n function _construct(Parent, args, Class) {\n if (_isNativeReflectConstruct()) {\n _construct = Reflect.construct;\n } else {\n _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) _setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n }\n\n function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n }\n\n function _possibleConstructorReturn(self, call) {\n if (call && (typeof call === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n }\n\n function _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n }\n\n function _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = _getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n }\n\n function _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n _get = Reflect.get;\n } else {\n _get = function _get(target, property, receiver) {\n var base = _superPropBase(target, property);\n\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n }\n\n var consolePrefix = 'SweetAlert2:';\n /**\n * Filter the unique values into a new array\n * @param arr\n */\n\n var uniqueArray = function uniqueArray(arr) {\n var result = [];\n\n for (var i = 0; i < arr.length; i++) {\n if (result.indexOf(arr[i]) === -1) {\n result.push(arr[i]);\n }\n }\n\n return result;\n };\n /**\n * Capitalize the first letter of a string\n * @param str\n */\n\n var capitalizeFirstLetter = function capitalizeFirstLetter(str) {\n return str.charAt(0).toUpperCase() + str.slice(1);\n };\n /**\n * Returns the array of object values (Object.values isn't supported in IE11)\n * @param obj\n */\n\n var objectValues = function objectValues(obj) {\n return Object.keys(obj).map(function (key) {\n return obj[key];\n });\n };\n /**\n * Convert NodeList to Array\n * @param nodeList\n */\n\n var toArray = function toArray(nodeList) {\n return Array.prototype.slice.call(nodeList);\n };\n /**\n * Standardise console warnings\n * @param message\n */\n\n var warn = function warn(message) {\n console.warn(\"\".concat(consolePrefix, \" \").concat(message));\n };\n /**\n * Standardise console errors\n * @param message\n */\n\n var error = function error(message) {\n console.error(\"\".concat(consolePrefix, \" \").concat(message));\n };\n /**\n * Private global state for `warnOnce`\n * @type {Array}\n * @private\n */\n\n var previousWarnOnceMessages = [];\n /**\n * Show a console warning, but only if it hasn't already been shown\n * @param message\n */\n\n var warnOnce = function warnOnce(message) {\n if (!(previousWarnOnceMessages.indexOf(message) !== -1)) {\n previousWarnOnceMessages.push(message);\n warn(message);\n }\n };\n /**\n * Show a one-time console warning about deprecated params/methods\n */\n\n var warnAboutDepreation = function warnAboutDepreation(deprecatedParam, useInstead) {\n warnOnce(\"\\\"\".concat(deprecatedParam, \"\\\" is deprecated and will be removed in the next major release. Please use \\\"\").concat(useInstead, \"\\\" instead.\"));\n };\n /**\n * If `arg` is a function, call it (with no arguments or context) and return the result.\n * Otherwise, just pass the value through\n * @param arg\n */\n\n var callIfFunction = function callIfFunction(arg) {\n return typeof arg === 'function' ? arg() : arg;\n };\n var hasToPromiseFn = function hasToPromiseFn(arg) {\n return arg && typeof arg.toPromise === 'function';\n };\n var asPromise = function asPromise(arg) {\n return hasToPromiseFn(arg) ? arg.toPromise() : Promise.resolve(arg);\n };\n var isPromise = function isPromise(arg) {\n return arg && Promise.resolve(arg) === arg;\n };\n\n var DismissReason = Object.freeze({\n cancel: 'cancel',\n backdrop: 'backdrop',\n close: 'close',\n esc: 'esc',\n timer: 'timer'\n });\n\n var isJqueryElement = function isJqueryElement(elem) {\n return _typeof(elem) === 'object' && elem.jquery;\n };\n\n var isElement = function isElement(elem) {\n return elem instanceof Element || isJqueryElement(elem);\n };\n\n var argsToParams = function argsToParams(args) {\n var params = {};\n\n if (_typeof(args[0]) === 'object' && !isElement(args[0])) {\n _extends(params, args[0]);\n } else {\n ['title', 'html', 'icon'].forEach(function (name, index) {\n var arg = args[index];\n\n if (typeof arg === 'string' || isElement(arg)) {\n params[name] = arg;\n } else if (arg !== undefined) {\n error(\"Unexpected type of \".concat(name, \"! Expected \\\"string\\\" or \\\"Element\\\", got \").concat(_typeof(arg)));\n }\n });\n }\n\n return params;\n };\n\n var swalPrefix = 'swal2-';\n var prefix = function prefix(items) {\n var result = {};\n\n for (var i in items) {\n result[items[i]] = swalPrefix + items[i];\n }\n\n return result;\n };\n var swalClasses = prefix(['container', 'shown', 'height-auto', 'iosfix', 'popup', 'modal', 'no-backdrop', 'no-transition', 'toast', 'toast-shown', 'toast-column', 'show', 'hide', 'close', 'title', 'header', 'content', 'html-container', 'actions', 'confirm', 'cancel', 'footer', 'icon', 'icon-content', 'image', 'input', 'file', 'range', 'select', 'radio', 'checkbox', 'label', 'textarea', 'inputerror', 'validation-message', 'progress-steps', 'active-progress-step', 'progress-step', 'progress-step-line', 'loading', 'styled', 'top', 'top-start', 'top-end', 'top-left', 'top-right', 'center', 'center-start', 'center-end', 'center-left', 'center-right', 'bottom', 'bottom-start', 'bottom-end', 'bottom-left', 'bottom-right', 'grow-row', 'grow-column', 'grow-fullscreen', 'rtl', 'timer-progress-bar', 'timer-progress-bar-container', 'scrollbar-measure', 'icon-success', 'icon-warning', 'icon-info', 'icon-question', 'icon-error']);\n var iconTypes = prefix(['success', 'warning', 'info', 'question', 'error']);\n\n var getContainer = function getContainer() {\n return document.body.querySelector(\".\".concat(swalClasses.container));\n };\n var elementBySelector = function elementBySelector(selectorString) {\n var container = getContainer();\n return container ? container.querySelector(selectorString) : null;\n };\n\n var elementByClass = function elementByClass(className) {\n return elementBySelector(\".\".concat(className));\n };\n\n var getPopup = function getPopup() {\n return elementByClass(swalClasses.popup);\n };\n var getIcons = function getIcons() {\n var popup = getPopup();\n return toArray(popup.querySelectorAll(\".\".concat(swalClasses.icon)));\n };\n var getIcon = function getIcon() {\n var visibleIcon = getIcons().filter(function (icon) {\n return isVisible(icon);\n });\n return visibleIcon.length ? visibleIcon[0] : null;\n };\n var getTitle = function getTitle() {\n return elementByClass(swalClasses.title);\n };\n var getContent = function getContent() {\n return elementByClass(swalClasses.content);\n };\n var getHtmlContainer = function getHtmlContainer() {\n return elementByClass(swalClasses['html-container']);\n };\n var getImage = function getImage() {\n return elementByClass(swalClasses.image);\n };\n var getProgressSteps = function getProgressSteps() {\n return elementByClass(swalClasses['progress-steps']);\n };\n var getValidationMessage = function getValidationMessage() {\n return elementByClass(swalClasses['validation-message']);\n };\n var getConfirmButton = function getConfirmButton() {\n return elementBySelector(\".\".concat(swalClasses.actions, \" .\").concat(swalClasses.confirm));\n };\n var getCancelButton = function getCancelButton() {\n return elementBySelector(\".\".concat(swalClasses.actions, \" .\").concat(swalClasses.cancel));\n };\n var getActions = function getActions() {\n return elementByClass(swalClasses.actions);\n };\n var getHeader = function getHeader() {\n return elementByClass(swalClasses.header);\n };\n var getFooter = function getFooter() {\n return elementByClass(swalClasses.footer);\n };\n var getTimerProgressBar = function getTimerProgressBar() {\n return elementByClass(swalClasses['timer-progress-bar']);\n };\n var getCloseButton = function getCloseButton() {\n return elementByClass(swalClasses.close);\n }; // https://github.com/jkup/focusable/blob/master/index.js\n\n var focusable = \"\\n a[href],\\n area[href],\\n input:not([disabled]),\\n select:not([disabled]),\\n textarea:not([disabled]),\\n button:not([disabled]),\\n iframe,\\n object,\\n embed,\\n [tabindex=\\\"0\\\"],\\n [contenteditable],\\n audio[controls],\\n video[controls],\\n summary\\n\";\n var getFocusableElements = function getFocusableElements() {\n var focusableElementsWithTabindex = toArray(getPopup().querySelectorAll('[tabindex]:not([tabindex=\"-1\"]):not([tabindex=\"0\"])')) // sort according to tabindex\n .sort(function (a, b) {\n a = parseInt(a.getAttribute('tabindex'));\n b = parseInt(b.getAttribute('tabindex'));\n\n if (a > b) {\n return 1;\n } else if (a < b) {\n return -1;\n }\n\n return 0;\n });\n var otherFocusableElements = toArray(getPopup().querySelectorAll(focusable)).filter(function (el) {\n return el.getAttribute('tabindex') !== '-1';\n });\n return uniqueArray(focusableElementsWithTabindex.concat(otherFocusableElements)).filter(function (el) {\n return isVisible(el);\n });\n };\n var isModal = function isModal() {\n return !isToast() && !document.body.classList.contains(swalClasses['no-backdrop']);\n };\n var isToast = function isToast() {\n return document.body.classList.contains(swalClasses['toast-shown']);\n };\n var isLoading = function isLoading() {\n return getPopup().hasAttribute('data-loading');\n };\n\n var states = {\n previousBodyPadding: null\n };\n var setInnerHtml = function setInnerHtml(elem, html) {\n // #1926\n elem.textContent = '';\n\n if (html) {\n var parser = new DOMParser();\n var parsed = parser.parseFromString(html, \"text/html\");\n toArray(parsed.querySelector('head').childNodes).forEach(function (child) {\n elem.appendChild(child);\n });\n toArray(parsed.querySelector('body').childNodes).forEach(function (child) {\n elem.appendChild(child);\n });\n }\n };\n var hasClass = function hasClass(elem, className) {\n if (!className) {\n return false;\n }\n\n var classList = className.split(/\\s+/);\n\n for (var i = 0; i < classList.length; i++) {\n if (!elem.classList.contains(classList[i])) {\n return false;\n }\n }\n\n return true;\n };\n\n var removeCustomClasses = function removeCustomClasses(elem, params) {\n toArray(elem.classList).forEach(function (className) {\n if (!(objectValues(swalClasses).indexOf(className) !== -1) && !(objectValues(iconTypes).indexOf(className) !== -1) && !(objectValues(params.showClass).indexOf(className) !== -1)) {\n elem.classList.remove(className);\n }\n });\n };\n\n var applyCustomClass = function applyCustomClass(elem, params, className) {\n removeCustomClasses(elem, params);\n\n if (params.customClass && params.customClass[className]) {\n if (typeof params.customClass[className] !== 'string' && !params.customClass[className].forEach) {\n return warn(\"Invalid type of customClass.\".concat(className, \"! Expected string or iterable object, got \\\"\").concat(_typeof(params.customClass[className]), \"\\\"\"));\n }\n\n addClass(elem, params.customClass[className]);\n }\n };\n function getInput(content, inputType) {\n if (!inputType) {\n return null;\n }\n\n switch (inputType) {\n case 'select':\n case 'textarea':\n case 'file':\n return getChildByClass(content, swalClasses[inputType]);\n\n case 'checkbox':\n return content.querySelector(\".\".concat(swalClasses.checkbox, \" input\"));\n\n case 'radio':\n return content.querySelector(\".\".concat(swalClasses.radio, \" input:checked\")) || content.querySelector(\".\".concat(swalClasses.radio, \" input:first-child\"));\n\n case 'range':\n return content.querySelector(\".\".concat(swalClasses.range, \" input\"));\n\n default:\n return getChildByClass(content, swalClasses.input);\n }\n }\n var focusInput = function focusInput(input) {\n input.focus(); // place cursor at end of text in text input\n\n if (input.type !== 'file') {\n // http://stackoverflow.com/a/2345915\n var val = input.value;\n input.value = '';\n input.value = val;\n }\n };\n var toggleClass = function toggleClass(target, classList, condition) {\n if (!target || !classList) {\n return;\n }\n\n if (typeof classList === 'string') {\n classList = classList.split(/\\s+/).filter(Boolean);\n }\n\n classList.forEach(function (className) {\n if (target.forEach) {\n target.forEach(function (elem) {\n condition ? elem.classList.add(className) : elem.classList.remove(className);\n });\n } else {\n condition ? target.classList.add(className) : target.classList.remove(className);\n }\n });\n };\n var addClass = function addClass(target, classList) {\n toggleClass(target, classList, true);\n };\n var removeClass = function removeClass(target, classList) {\n toggleClass(target, classList, false);\n };\n var getChildByClass = function getChildByClass(elem, className) {\n for (var i = 0; i < elem.childNodes.length; i++) {\n if (hasClass(elem.childNodes[i], className)) {\n return elem.childNodes[i];\n }\n }\n };\n var applyNumericalStyle = function applyNumericalStyle(elem, property, value) {\n if (value || parseInt(value) === 0) {\n elem.style[property] = typeof value === 'number' ? \"\".concat(value, \"px\") : value;\n } else {\n elem.style.removeProperty(property);\n }\n };\n var show = function show(elem) {\n var display = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'flex';\n elem.style.opacity = '';\n elem.style.display = display;\n };\n var hide = function hide(elem) {\n elem.style.opacity = '';\n elem.style.display = 'none';\n };\n var toggle = function toggle(elem, condition, display) {\n condition ? show(elem, display) : hide(elem);\n }; // borrowed from jquery $(elem).is(':visible') implementation\n\n var isVisible = function isVisible(elem) {\n return !!(elem && (elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length));\n };\n /* istanbul ignore next */\n\n var isScrollable = function isScrollable(elem) {\n return !!(elem.scrollHeight > elem.clientHeight);\n }; // borrowed from https://stackoverflow.com/a/46352119\n\n var hasCssAnimation = function hasCssAnimation(elem) {\n var style = window.getComputedStyle(elem);\n var animDuration = parseFloat(style.getPropertyValue('animation-duration') || '0');\n var transDuration = parseFloat(style.getPropertyValue('transition-duration') || '0');\n return animDuration > 0 || transDuration > 0;\n };\n var contains = function contains(haystack, needle) {\n if (typeof haystack.contains === 'function') {\n return haystack.contains(needle);\n }\n };\n var animateTimerProgressBar = function animateTimerProgressBar(timer) {\n var reset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var timerProgressBar = getTimerProgressBar();\n\n if (isVisible(timerProgressBar)) {\n if (reset) {\n timerProgressBar.style.transition = 'none';\n timerProgressBar.style.width = '100%';\n }\n\n setTimeout(function () {\n timerProgressBar.style.transition = \"width \".concat(timer / 1000, \"s linear\");\n timerProgressBar.style.width = '0%';\n }, 10);\n }\n };\n var stopTimerProgressBar = function stopTimerProgressBar() {\n var timerProgressBar = getTimerProgressBar();\n var timerProgressBarWidth = parseInt(window.getComputedStyle(timerProgressBar).width);\n timerProgressBar.style.removeProperty('transition');\n timerProgressBar.style.width = '100%';\n var timerProgressBarFullWidth = parseInt(window.getComputedStyle(timerProgressBar).width);\n var timerProgressBarPercent = parseInt(timerProgressBarWidth / timerProgressBarFullWidth * 100);\n timerProgressBar.style.removeProperty('transition');\n timerProgressBar.style.width = \"\".concat(timerProgressBarPercent, \"%\");\n };\n\n // Detect Node env\n var isNodeEnv = function isNodeEnv() {\n return typeof window === 'undefined' || typeof document === 'undefined';\n };\n\n var sweetHTML = \"\\n
    \\n
    \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n \\n

      \\n \\n
      \\n
      \\n
      \\n \\n \\n
      \\n \\n \\n
      \\n \\n
      \\n \\n \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n\").replace(/(^|\\n)\\s*/g, '');\n\n var resetOldContainer = function resetOldContainer() {\n var oldContainer = getContainer();\n\n if (!oldContainer) {\n return false;\n }\n\n oldContainer.parentNode.removeChild(oldContainer);\n removeClass([document.documentElement, document.body], [swalClasses['no-backdrop'], swalClasses['toast-shown'], swalClasses['has-column']]);\n return true;\n };\n\n var oldInputVal; // IE11 workaround, see #1109 for details\n\n var resetValidationMessage = function resetValidationMessage(e) {\n if (Swal.isVisible() && oldInputVal !== e.target.value) {\n Swal.resetValidationMessage();\n }\n\n oldInputVal = e.target.value;\n };\n\n var addInputChangeListeners = function addInputChangeListeners() {\n var content = getContent();\n var input = getChildByClass(content, swalClasses.input);\n var file = getChildByClass(content, swalClasses.file);\n var range = content.querySelector(\".\".concat(swalClasses.range, \" input\"));\n var rangeOutput = content.querySelector(\".\".concat(swalClasses.range, \" output\"));\n var select = getChildByClass(content, swalClasses.select);\n var checkbox = content.querySelector(\".\".concat(swalClasses.checkbox, \" input\"));\n var textarea = getChildByClass(content, swalClasses.textarea);\n input.oninput = resetValidationMessage;\n file.onchange = resetValidationMessage;\n select.onchange = resetValidationMessage;\n checkbox.onchange = resetValidationMessage;\n textarea.oninput = resetValidationMessage;\n\n range.oninput = function (e) {\n resetValidationMessage(e);\n rangeOutput.value = range.value;\n };\n\n range.onchange = function (e) {\n resetValidationMessage(e);\n range.nextSibling.value = range.value;\n };\n };\n\n var getTarget = function getTarget(target) {\n return typeof target === 'string' ? document.querySelector(target) : target;\n };\n\n var setupAccessibility = function setupAccessibility(params) {\n var popup = getPopup();\n popup.setAttribute('role', params.toast ? 'alert' : 'dialog');\n popup.setAttribute('aria-live', params.toast ? 'polite' : 'assertive');\n\n if (!params.toast) {\n popup.setAttribute('aria-modal', 'true');\n }\n };\n\n var setupRTL = function setupRTL(targetElement) {\n if (window.getComputedStyle(targetElement).direction === 'rtl') {\n addClass(getContainer(), swalClasses.rtl);\n }\n };\n /*\n * Add modal + backdrop to DOM\n */\n\n\n var init = function init(params) {\n // Clean up the old popup container if it exists\n var oldContainerExisted = resetOldContainer();\n /* istanbul ignore if */\n\n if (isNodeEnv()) {\n error('SweetAlert2 requires document to initialize');\n return;\n }\n\n var container = document.createElement('div');\n container.className = swalClasses.container;\n\n if (oldContainerExisted) {\n addClass(container, swalClasses['no-transition']);\n }\n\n setInnerHtml(container, sweetHTML);\n var targetElement = getTarget(params.target);\n targetElement.appendChild(container);\n setupAccessibility(params);\n setupRTL(targetElement);\n addInputChangeListeners();\n };\n\n var parseHtmlToContainer = function parseHtmlToContainer(param, target) {\n // DOM element\n if (param instanceof HTMLElement) {\n target.appendChild(param); // Object\n } else if (_typeof(param) === 'object') {\n handleObject(param, target); // Plain string\n } else if (param) {\n setInnerHtml(target, param);\n }\n };\n\n var handleObject = function handleObject(param, target) {\n // JQuery element(s)\n if (param.jquery) {\n handleJqueryElem(target, param); // For other objects use their string representation\n } else {\n setInnerHtml(target, param.toString());\n }\n };\n\n var handleJqueryElem = function handleJqueryElem(target, elem) {\n target.textContent = '';\n\n if (0 in elem) {\n for (var i = 0; (i in elem); i++) {\n target.appendChild(elem[i].cloneNode(true));\n }\n } else {\n target.appendChild(elem.cloneNode(true));\n }\n };\n\n var animationEndEvent = function () {\n // Prevent run in Node env\n\n /* istanbul ignore if */\n if (isNodeEnv()) {\n return false;\n }\n\n var testEl = document.createElement('div');\n var transEndEventNames = {\n WebkitAnimation: 'webkitAnimationEnd',\n OAnimation: 'oAnimationEnd oanimationend',\n animation: 'animationend'\n };\n\n for (var i in transEndEventNames) {\n if (Object.prototype.hasOwnProperty.call(transEndEventNames, i) && typeof testEl.style[i] !== 'undefined') {\n return transEndEventNames[i];\n }\n }\n\n return false;\n }();\n\n // https://github.com/twbs/bootstrap/blob/master/js/src/modal.js\n\n var measureScrollbar = function measureScrollbar() {\n var scrollDiv = document.createElement('div');\n scrollDiv.className = swalClasses['scrollbar-measure'];\n document.body.appendChild(scrollDiv);\n var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;\n document.body.removeChild(scrollDiv);\n return scrollbarWidth;\n };\n\n var renderActions = function renderActions(instance, params) {\n var actions = getActions();\n var confirmButton = getConfirmButton();\n var cancelButton = getCancelButton(); // Actions (buttons) wrapper\n\n if (!params.showConfirmButton && !params.showCancelButton) {\n hide(actions);\n } // Custom class\n\n\n applyCustomClass(actions, params, 'actions'); // Render confirm button\n\n renderButton(confirmButton, 'confirm', params); // render Cancel Button\n\n renderButton(cancelButton, 'cancel', params);\n\n if (params.buttonsStyling) {\n handleButtonsStyling(confirmButton, cancelButton, params);\n } else {\n removeClass([confirmButton, cancelButton], swalClasses.styled);\n confirmButton.style.backgroundColor = confirmButton.style.borderLeftColor = confirmButton.style.borderRightColor = '';\n cancelButton.style.backgroundColor = cancelButton.style.borderLeftColor = cancelButton.style.borderRightColor = '';\n }\n\n if (params.reverseButtons) {\n confirmButton.parentNode.insertBefore(cancelButton, confirmButton);\n }\n };\n\n function handleButtonsStyling(confirmButton, cancelButton, params) {\n addClass([confirmButton, cancelButton], swalClasses.styled); // Buttons background colors\n\n if (params.confirmButtonColor) {\n confirmButton.style.backgroundColor = params.confirmButtonColor;\n }\n\n if (params.cancelButtonColor) {\n cancelButton.style.backgroundColor = params.cancelButtonColor;\n } // Loading state\n\n\n if (!isLoading()) {\n var confirmButtonBackgroundColor = window.getComputedStyle(confirmButton).getPropertyValue('background-color');\n confirmButton.style.borderLeftColor = confirmButtonBackgroundColor;\n confirmButton.style.borderRightColor = confirmButtonBackgroundColor;\n }\n }\n\n function renderButton(button, buttonType, params) {\n toggle(button, params[\"show\".concat(capitalizeFirstLetter(buttonType), \"Button\")], 'inline-block');\n setInnerHtml(button, params[\"\".concat(buttonType, \"ButtonText\")]); // Set caption text\n\n button.setAttribute('aria-label', params[\"\".concat(buttonType, \"ButtonAriaLabel\")]); // ARIA label\n // Add buttons custom classes\n\n button.className = swalClasses[buttonType];\n applyCustomClass(button, params, \"\".concat(buttonType, \"Button\"));\n addClass(button, params[\"\".concat(buttonType, \"ButtonClass\")]);\n }\n\n function handleBackdropParam(container, backdrop) {\n if (typeof backdrop === 'string') {\n container.style.background = backdrop;\n } else if (!backdrop) {\n addClass([document.documentElement, document.body], swalClasses['no-backdrop']);\n }\n }\n\n function handlePositionParam(container, position) {\n if (position in swalClasses) {\n addClass(container, swalClasses[position]);\n } else {\n warn('The \"position\" parameter is not valid, defaulting to \"center\"');\n addClass(container, swalClasses.center);\n }\n }\n\n function handleGrowParam(container, grow) {\n if (grow && typeof grow === 'string') {\n var growClass = \"grow-\".concat(grow);\n\n if (growClass in swalClasses) {\n addClass(container, swalClasses[growClass]);\n }\n }\n }\n\n var renderContainer = function renderContainer(instance, params) {\n var container = getContainer();\n\n if (!container) {\n return;\n }\n\n handleBackdropParam(container, params.backdrop);\n\n if (!params.backdrop && params.allowOutsideClick) {\n warn('\"allowOutsideClick\" parameter requires `backdrop` parameter to be set to `true`');\n }\n\n handlePositionParam(container, params.position);\n handleGrowParam(container, params.grow); // Custom class\n\n applyCustomClass(container, params, 'container'); // Set queue step attribute for getQueueStep() method\n\n var queueStep = document.body.getAttribute('data-swal2-queue-step');\n\n if (queueStep) {\n container.setAttribute('data-queue-step', queueStep);\n document.body.removeAttribute('data-swal2-queue-step');\n }\n };\n\n /**\n * This module containts `WeakMap`s for each effectively-\"private property\" that a `Swal` has.\n * For example, to set the private property \"foo\" of `this` to \"bar\", you can `privateProps.foo.set(this, 'bar')`\n * This is the approach that Babel will probably take to implement private methods/fields\n * https://github.com/tc39/proposal-private-methods\n * https://github.com/babel/babel/pull/7555\n * Once we have the changes from that PR in Babel, and our core class fits reasonable in *one module*\n * then we can use that language feature.\n */\n var privateProps = {\n promise: new WeakMap(),\n innerParams: new WeakMap(),\n domCache: new WeakMap()\n };\n\n var inputTypes = ['input', 'file', 'range', 'select', 'radio', 'checkbox', 'textarea'];\n var renderInput = function renderInput(instance, params) {\n var content = getContent();\n var innerParams = privateProps.innerParams.get(instance);\n var rerender = !innerParams || params.input !== innerParams.input;\n inputTypes.forEach(function (inputType) {\n var inputClass = swalClasses[inputType];\n var inputContainer = getChildByClass(content, inputClass); // set attributes\n\n setAttributes(inputType, params.inputAttributes); // set class\n\n inputContainer.className = inputClass;\n\n if (rerender) {\n hide(inputContainer);\n }\n });\n\n if (params.input) {\n if (rerender) {\n showInput(params);\n } // set custom class\n\n\n setCustomClass(params);\n }\n };\n\n var showInput = function showInput(params) {\n if (!renderInputType[params.input]) {\n return error(\"Unexpected type of input! Expected \\\"text\\\", \\\"email\\\", \\\"password\\\", \\\"number\\\", \\\"tel\\\", \\\"select\\\", \\\"radio\\\", \\\"checkbox\\\", \\\"textarea\\\", \\\"file\\\" or \\\"url\\\", got \\\"\".concat(params.input, \"\\\"\"));\n }\n\n var inputContainer = getInputContainer(params.input);\n var input = renderInputType[params.input](inputContainer, params);\n show(input); // input autofocus\n\n setTimeout(function () {\n focusInput(input);\n });\n };\n\n var removeAttributes = function removeAttributes(input) {\n for (var i = 0; i < input.attributes.length; i++) {\n var attrName = input.attributes[i].name;\n\n if (!(['type', 'value', 'style'].indexOf(attrName) !== -1)) {\n input.removeAttribute(attrName);\n }\n }\n };\n\n var setAttributes = function setAttributes(inputType, inputAttributes) {\n var input = getInput(getContent(), inputType);\n\n if (!input) {\n return;\n }\n\n removeAttributes(input);\n\n for (var attr in inputAttributes) {\n // Do not set a placeholder for \n // it'll crash Edge, #1298\n if (inputType === 'range' && attr === 'placeholder') {\n continue;\n }\n\n input.setAttribute(attr, inputAttributes[attr]);\n }\n };\n\n var setCustomClass = function setCustomClass(params) {\n var inputContainer = getInputContainer(params.input);\n\n if (params.customClass) {\n addClass(inputContainer, params.customClass.input);\n }\n };\n\n var setInputPlaceholder = function setInputPlaceholder(input, params) {\n if (!input.placeholder || params.inputPlaceholder) {\n input.placeholder = params.inputPlaceholder;\n }\n };\n\n var getInputContainer = function getInputContainer(inputType) {\n var inputClass = swalClasses[inputType] ? swalClasses[inputType] : swalClasses.input;\n return getChildByClass(getContent(), inputClass);\n };\n\n var renderInputType = {};\n\n renderInputType.text = renderInputType.email = renderInputType.password = renderInputType.number = renderInputType.tel = renderInputType.url = function (input, params) {\n if (typeof params.inputValue === 'string' || typeof params.inputValue === 'number') {\n input.value = params.inputValue;\n } else if (!isPromise(params.inputValue)) {\n warn(\"Unexpected type of inputValue! Expected \\\"string\\\", \\\"number\\\" or \\\"Promise\\\", got \\\"\".concat(_typeof(params.inputValue), \"\\\"\"));\n }\n\n setInputPlaceholder(input, params);\n input.type = params.input;\n return input;\n };\n\n renderInputType.file = function (input, params) {\n setInputPlaceholder(input, params);\n return input;\n };\n\n renderInputType.range = function (range, params) {\n var rangeInput = range.querySelector('input');\n var rangeOutput = range.querySelector('output');\n rangeInput.value = params.inputValue;\n rangeInput.type = params.input;\n rangeOutput.value = params.inputValue;\n return range;\n };\n\n renderInputType.select = function (select, params) {\n select.textContent = '';\n\n if (params.inputPlaceholder) {\n var placeholder = document.createElement('option');\n setInnerHtml(placeholder, params.inputPlaceholder);\n placeholder.value = '';\n placeholder.disabled = true;\n placeholder.selected = true;\n select.appendChild(placeholder);\n }\n\n return select;\n };\n\n renderInputType.radio = function (radio) {\n radio.textContent = '';\n return radio;\n };\n\n renderInputType.checkbox = function (checkboxContainer, params) {\n var checkbox = getInput(getContent(), 'checkbox');\n checkbox.value = 1;\n checkbox.id = swalClasses.checkbox;\n checkbox.checked = Boolean(params.inputValue);\n var label = checkboxContainer.querySelector('span');\n setInnerHtml(label, params.inputPlaceholder);\n return checkboxContainer;\n };\n\n renderInputType.textarea = function (textarea, params) {\n textarea.value = params.inputValue;\n setInputPlaceholder(textarea, params);\n\n if ('MutationObserver' in window) {\n // #1699\n var initialPopupWidth = parseInt(window.getComputedStyle(getPopup()).width);\n var popupPadding = parseInt(window.getComputedStyle(getPopup()).paddingLeft) + parseInt(window.getComputedStyle(getPopup()).paddingRight);\n\n var outputsize = function outputsize() {\n var contentWidth = textarea.offsetWidth + popupPadding;\n\n if (contentWidth > initialPopupWidth) {\n getPopup().style.width = \"\".concat(contentWidth, \"px\");\n } else {\n getPopup().style.width = null;\n }\n };\n\n new MutationObserver(outputsize).observe(textarea, {\n attributes: true,\n attributeFilter: ['style']\n });\n }\n\n return textarea;\n };\n\n var renderContent = function renderContent(instance, params) {\n var content = getContent().querySelector(\"#\".concat(swalClasses.content)); // Content as HTML\n\n if (params.html) {\n parseHtmlToContainer(params.html, content);\n show(content, 'block'); // Content as plain text\n } else if (params.text) {\n content.textContent = params.text;\n show(content, 'block'); // No content\n } else {\n hide(content);\n }\n\n renderInput(instance, params); // Custom class\n\n applyCustomClass(getContent(), params, 'content');\n };\n\n var renderFooter = function renderFooter(instance, params) {\n var footer = getFooter();\n toggle(footer, params.footer);\n\n if (params.footer) {\n parseHtmlToContainer(params.footer, footer);\n } // Custom class\n\n\n applyCustomClass(footer, params, 'footer');\n };\n\n var renderCloseButton = function renderCloseButton(instance, params) {\n var closeButton = getCloseButton();\n setInnerHtml(closeButton, params.closeButtonHtml); // Custom class\n\n applyCustomClass(closeButton, params, 'closeButton');\n toggle(closeButton, params.showCloseButton);\n closeButton.setAttribute('aria-label', params.closeButtonAriaLabel);\n };\n\n var renderIcon = function renderIcon(instance, params) {\n var innerParams = privateProps.innerParams.get(instance); // if the give icon already rendered, apply the custom class without re-rendering the icon\n\n if (innerParams && params.icon === innerParams.icon && getIcon()) {\n applyCustomClass(getIcon(), params, 'icon');\n return;\n }\n\n hideAllIcons();\n\n if (!params.icon) {\n return;\n }\n\n if (Object.keys(iconTypes).indexOf(params.icon) !== -1) {\n var icon = elementBySelector(\".\".concat(swalClasses.icon, \".\").concat(iconTypes[params.icon]));\n show(icon); // Custom or default content\n\n setContent(icon, params);\n adjustSuccessIconBackgoundColor(); // Custom class\n\n applyCustomClass(icon, params, 'icon'); // Animate icon\n\n addClass(icon, params.showClass.icon);\n } else {\n error(\"Unknown icon! Expected \\\"success\\\", \\\"error\\\", \\\"warning\\\", \\\"info\\\" or \\\"question\\\", got \\\"\".concat(params.icon, \"\\\"\"));\n }\n };\n\n var hideAllIcons = function hideAllIcons() {\n var icons = getIcons();\n\n for (var i = 0; i < icons.length; i++) {\n hide(icons[i]);\n }\n }; // Adjust success icon background color to match the popup background color\n\n\n var adjustSuccessIconBackgoundColor = function adjustSuccessIconBackgoundColor() {\n var popup = getPopup();\n var popupBackgroundColor = window.getComputedStyle(popup).getPropertyValue('background-color');\n var successIconParts = popup.querySelectorAll('[class^=swal2-success-circular-line], .swal2-success-fix');\n\n for (var i = 0; i < successIconParts.length; i++) {\n successIconParts[i].style.backgroundColor = popupBackgroundColor;\n }\n };\n\n var setContent = function setContent(icon, params) {\n icon.textContent = '';\n\n if (params.iconHtml) {\n setInnerHtml(icon, iconContent(params.iconHtml));\n } else if (params.icon === 'success') {\n setInnerHtml(icon, \"\\n
      \\n \\n
      \\n
      \\n \");\n } else if (params.icon === 'error') {\n setInnerHtml(icon, \"\\n \\n \\n \\n \\n \");\n } else {\n var defaultIconHtml = {\n question: '?',\n warning: '!',\n info: 'i'\n };\n setInnerHtml(icon, iconContent(defaultIconHtml[params.icon]));\n }\n };\n\n var iconContent = function iconContent(content) {\n return \"
      \").concat(content, \"
      \");\n };\n\n var renderImage = function renderImage(instance, params) {\n var image = getImage();\n\n if (!params.imageUrl) {\n return hide(image);\n }\n\n show(image, ''); // Src, alt\n\n image.setAttribute('src', params.imageUrl);\n image.setAttribute('alt', params.imageAlt); // Width, height\n\n applyNumericalStyle(image, 'width', params.imageWidth);\n applyNumericalStyle(image, 'height', params.imageHeight); // Class\n\n image.className = swalClasses.image;\n applyCustomClass(image, params, 'image');\n };\n\n var currentSteps = [];\n /*\n * Global function for chaining sweetAlert popups\n */\n\n var queue = function queue(steps) {\n var Swal = this;\n currentSteps = steps;\n\n var resetAndResolve = function resetAndResolve(resolve, value) {\n currentSteps = [];\n resolve(value);\n };\n\n var queueResult = [];\n return new Promise(function (resolve) {\n (function step(i, callback) {\n if (i < currentSteps.length) {\n document.body.setAttribute('data-swal2-queue-step', i);\n Swal.fire(currentSteps[i]).then(function (result) {\n if (typeof result.value !== 'undefined') {\n queueResult.push(result.value);\n step(i + 1, callback);\n } else {\n resetAndResolve(resolve, {\n dismiss: result.dismiss\n });\n }\n });\n } else {\n resetAndResolve(resolve, {\n value: queueResult\n });\n }\n })(0);\n });\n };\n /*\n * Global function for getting the index of current popup in queue\n */\n\n var getQueueStep = function getQueueStep() {\n return getContainer() && getContainer().getAttribute('data-queue-step');\n };\n /*\n * Global function for inserting a popup to the queue\n */\n\n var insertQueueStep = function insertQueueStep(step, index) {\n if (index && index < currentSteps.length) {\n return currentSteps.splice(index, 0, step);\n }\n\n return currentSteps.push(step);\n };\n /*\n * Global function for deleting a popup from the queue\n */\n\n var deleteQueueStep = function deleteQueueStep(index) {\n if (typeof currentSteps[index] !== 'undefined') {\n currentSteps.splice(index, 1);\n }\n };\n\n var createStepElement = function createStepElement(step) {\n var stepEl = document.createElement('li');\n addClass(stepEl, swalClasses['progress-step']);\n setInnerHtml(stepEl, step);\n return stepEl;\n };\n\n var createLineElement = function createLineElement(params) {\n var lineEl = document.createElement('li');\n addClass(lineEl, swalClasses['progress-step-line']);\n\n if (params.progressStepsDistance) {\n lineEl.style.width = params.progressStepsDistance;\n }\n\n return lineEl;\n };\n\n var renderProgressSteps = function renderProgressSteps(instance, params) {\n var progressStepsContainer = getProgressSteps();\n\n if (!params.progressSteps || params.progressSteps.length === 0) {\n return hide(progressStepsContainer);\n }\n\n show(progressStepsContainer);\n progressStepsContainer.textContent = '';\n var currentProgressStep = parseInt(params.currentProgressStep === undefined ? getQueueStep() : params.currentProgressStep);\n\n if (currentProgressStep >= params.progressSteps.length) {\n warn('Invalid currentProgressStep parameter, it should be less than progressSteps.length ' + '(currentProgressStep like JS arrays starts from 0)');\n }\n\n params.progressSteps.forEach(function (step, index) {\n var stepEl = createStepElement(step);\n progressStepsContainer.appendChild(stepEl);\n\n if (index === currentProgressStep) {\n addClass(stepEl, swalClasses['active-progress-step']);\n }\n\n if (index !== params.progressSteps.length - 1) {\n var lineEl = createLineElement(params);\n progressStepsContainer.appendChild(lineEl);\n }\n });\n };\n\n var renderTitle = function renderTitle(instance, params) {\n var title = getTitle();\n toggle(title, params.title || params.titleText);\n\n if (params.title) {\n parseHtmlToContainer(params.title, title);\n }\n\n if (params.titleText) {\n title.innerText = params.titleText;\n } // Custom class\n\n\n applyCustomClass(title, params, 'title');\n };\n\n var renderHeader = function renderHeader(instance, params) {\n var header = getHeader(); // Custom class\n\n applyCustomClass(header, params, 'header'); // Progress steps\n\n renderProgressSteps(instance, params); // Icon\n\n renderIcon(instance, params); // Image\n\n renderImage(instance, params); // Title\n\n renderTitle(instance, params); // Close button\n\n renderCloseButton(instance, params);\n };\n\n var renderPopup = function renderPopup(instance, params) {\n var popup = getPopup(); // Width\n\n applyNumericalStyle(popup, 'width', params.width); // Padding\n\n applyNumericalStyle(popup, 'padding', params.padding); // Background\n\n if (params.background) {\n popup.style.background = params.background;\n } // Classes\n\n\n addClasses(popup, params);\n };\n\n var addClasses = function addClasses(popup, params) {\n // Default Class + showClass when updating Swal.update({})\n popup.className = \"\".concat(swalClasses.popup, \" \").concat(isVisible(popup) ? params.showClass.popup : '');\n\n if (params.toast) {\n addClass([document.documentElement, document.body], swalClasses['toast-shown']);\n addClass(popup, swalClasses.toast);\n } else {\n addClass(popup, swalClasses.modal);\n } // Custom class\n\n\n applyCustomClass(popup, params, 'popup');\n\n if (typeof params.customClass === 'string') {\n addClass(popup, params.customClass);\n } // Icon class (#1842)\n\n\n if (params.icon) {\n addClass(popup, swalClasses[\"icon-\".concat(params.icon)]);\n }\n };\n\n var render = function render(instance, params) {\n renderPopup(instance, params);\n renderContainer(instance, params);\n renderHeader(instance, params);\n renderContent(instance, params);\n renderActions(instance, params);\n renderFooter(instance, params);\n\n if (typeof params.onRender === 'function') {\n params.onRender(getPopup());\n }\n };\n\n /*\n * Global function to determine if SweetAlert2 popup is shown\n */\n\n var isVisible$1 = function isVisible$$1() {\n return isVisible(getPopup());\n };\n /*\n * Global function to click 'Confirm' button\n */\n\n var clickConfirm = function clickConfirm() {\n return getConfirmButton() && getConfirmButton().click();\n };\n /*\n * Global function to click 'Cancel' button\n */\n\n var clickCancel = function clickCancel() {\n return getCancelButton() && getCancelButton().click();\n };\n\n function fire() {\n var Swal = this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _construct(Swal, args);\n }\n\n /**\n * Returns an extended version of `Swal` containing `params` as defaults.\n * Useful for reusing Swal configuration.\n *\n * For example:\n *\n * Before:\n * const textPromptOptions = { input: 'text', showCancelButton: true }\n * const {value: firstName} = await Swal.fire({ ...textPromptOptions, title: 'What is your first name?' })\n * const {value: lastName} = await Swal.fire({ ...textPromptOptions, title: 'What is your last name?' })\n *\n * After:\n * const TextPrompt = Swal.mixin({ input: 'text', showCancelButton: true })\n * const {value: firstName} = await TextPrompt('What is your first name?')\n * const {value: lastName} = await TextPrompt('What is your last name?')\n *\n * @param mixinParams\n */\n function mixin(mixinParams) {\n var MixinSwal = /*#__PURE__*/function (_this) {\n _inherits(MixinSwal, _this);\n\n var _super = _createSuper(MixinSwal);\n\n function MixinSwal() {\n _classCallCheck(this, MixinSwal);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(MixinSwal, [{\n key: \"_main\",\n value: function _main(params) {\n return _get(_getPrototypeOf(MixinSwal.prototype), \"_main\", this).call(this, _extends({}, mixinParams, params));\n }\n }]);\n\n return MixinSwal;\n }(this);\n\n return MixinSwal;\n }\n\n /**\n * Show spinner instead of Confirm button\n */\n\n var showLoading = function showLoading() {\n var popup = getPopup();\n\n if (!popup) {\n Swal.fire();\n }\n\n popup = getPopup();\n var actions = getActions();\n var confirmButton = getConfirmButton();\n show(actions);\n show(confirmButton, 'inline-block');\n addClass([popup, actions], swalClasses.loading);\n confirmButton.disabled = true;\n popup.setAttribute('data-loading', true);\n popup.setAttribute('aria-busy', true);\n popup.focus();\n };\n\n var RESTORE_FOCUS_TIMEOUT = 100;\n\n var globalState = {};\n\n var focusPreviousActiveElement = function focusPreviousActiveElement() {\n if (globalState.previousActiveElement && globalState.previousActiveElement.focus) {\n globalState.previousActiveElement.focus();\n globalState.previousActiveElement = null;\n } else if (document.body) {\n document.body.focus();\n }\n }; // Restore previous active (focused) element\n\n\n var restoreActiveElement = function restoreActiveElement() {\n return new Promise(function (resolve) {\n var x = window.scrollX;\n var y = window.scrollY;\n globalState.restoreFocusTimeout = setTimeout(function () {\n focusPreviousActiveElement();\n resolve();\n }, RESTORE_FOCUS_TIMEOUT); // issues/900\n\n /* istanbul ignore if */\n\n if (typeof x !== 'undefined' && typeof y !== 'undefined') {\n // IE doesn't have scrollX/scrollY support\n window.scrollTo(x, y);\n }\n });\n };\n\n /**\n * If `timer` parameter is set, returns number of milliseconds of timer remained.\n * Otherwise, returns undefined.\n */\n\n var getTimerLeft = function getTimerLeft() {\n return globalState.timeout && globalState.timeout.getTimerLeft();\n };\n /**\n * Stop timer. Returns number of milliseconds of timer remained.\n * If `timer` parameter isn't set, returns undefined.\n */\n\n var stopTimer = function stopTimer() {\n if (globalState.timeout) {\n stopTimerProgressBar();\n return globalState.timeout.stop();\n }\n };\n /**\n * Resume timer. Returns number of milliseconds of timer remained.\n * If `timer` parameter isn't set, returns undefined.\n */\n\n var resumeTimer = function resumeTimer() {\n if (globalState.timeout) {\n var remaining = globalState.timeout.start();\n animateTimerProgressBar(remaining);\n return remaining;\n }\n };\n /**\n * Resume timer. Returns number of milliseconds of timer remained.\n * If `timer` parameter isn't set, returns undefined.\n */\n\n var toggleTimer = function toggleTimer() {\n var timer = globalState.timeout;\n return timer && (timer.running ? stopTimer() : resumeTimer());\n };\n /**\n * Increase timer. Returns number of milliseconds of an updated timer.\n * If `timer` parameter isn't set, returns undefined.\n */\n\n var increaseTimer = function increaseTimer(n) {\n if (globalState.timeout) {\n var remaining = globalState.timeout.increase(n);\n animateTimerProgressBar(remaining, true);\n return remaining;\n }\n };\n /**\n * Check if timer is running. Returns true if timer is running\n * or false if timer is paused or stopped.\n * If `timer` parameter isn't set, returns undefined\n */\n\n var isTimerRunning = function isTimerRunning() {\n return globalState.timeout && globalState.timeout.isRunning();\n };\n\n var defaultParams = {\n title: '',\n titleText: '',\n text: '',\n html: '',\n footer: '',\n icon: undefined,\n iconHtml: undefined,\n toast: false,\n animation: true,\n showClass: {\n popup: 'swal2-show',\n backdrop: 'swal2-backdrop-show',\n icon: 'swal2-icon-show'\n },\n hideClass: {\n popup: 'swal2-hide',\n backdrop: 'swal2-backdrop-hide',\n icon: 'swal2-icon-hide'\n },\n customClass: undefined,\n target: 'body',\n backdrop: true,\n heightAuto: true,\n allowOutsideClick: true,\n allowEscapeKey: true,\n allowEnterKey: true,\n stopKeydownPropagation: true,\n keydownListenerCapture: false,\n showConfirmButton: true,\n showCancelButton: false,\n preConfirm: undefined,\n confirmButtonText: 'OK',\n confirmButtonAriaLabel: '',\n confirmButtonColor: undefined,\n cancelButtonText: 'Cancel',\n cancelButtonAriaLabel: '',\n cancelButtonColor: undefined,\n buttonsStyling: true,\n reverseButtons: false,\n focusConfirm: true,\n focusCancel: false,\n showCloseButton: false,\n closeButtonHtml: '×',\n closeButtonAriaLabel: 'Close this dialog',\n showLoaderOnConfirm: false,\n imageUrl: undefined,\n imageWidth: undefined,\n imageHeight: undefined,\n imageAlt: '',\n timer: undefined,\n timerProgressBar: false,\n width: undefined,\n padding: undefined,\n background: undefined,\n input: undefined,\n inputPlaceholder: '',\n inputValue: '',\n inputOptions: {},\n inputAutoTrim: true,\n inputAttributes: {},\n inputValidator: undefined,\n validationMessage: undefined,\n grow: false,\n position: 'center',\n progressSteps: [],\n currentProgressStep: undefined,\n progressStepsDistance: undefined,\n onBeforeOpen: undefined,\n onOpen: undefined,\n onRender: undefined,\n onClose: undefined,\n onAfterClose: undefined,\n onDestroy: undefined,\n scrollbarPadding: true\n };\n var updatableParams = ['allowEscapeKey', 'allowOutsideClick', 'buttonsStyling', 'cancelButtonAriaLabel', 'cancelButtonColor', 'cancelButtonText', 'closeButtonAriaLabel', 'closeButtonHtml', 'confirmButtonAriaLabel', 'confirmButtonColor', 'confirmButtonText', 'currentProgressStep', 'customClass', 'footer', 'hideClass', 'html', 'icon', 'imageAlt', 'imageHeight', 'imageUrl', 'imageWidth', 'onAfterClose', 'onClose', 'onDestroy', 'progressSteps', 'reverseButtons', 'showCancelButton', 'showCloseButton', 'showConfirmButton', 'text', 'title', 'titleText'];\n var deprecatedParams = {\n animation: 'showClass\" and \"hideClass'\n };\n var toastIncompatibleParams = ['allowOutsideClick', 'allowEnterKey', 'backdrop', 'focusConfirm', 'focusCancel', 'heightAuto', 'keydownListenerCapture'];\n /**\n * Is valid parameter\n * @param {String} paramName\n */\n\n var isValidParameter = function isValidParameter(paramName) {\n return Object.prototype.hasOwnProperty.call(defaultParams, paramName);\n };\n /**\n * Is valid parameter for Swal.update() method\n * @param {String} paramName\n */\n\n var isUpdatableParameter = function isUpdatableParameter(paramName) {\n return updatableParams.indexOf(paramName) !== -1;\n };\n /**\n * Is deprecated parameter\n * @param {String} paramName\n */\n\n var isDeprecatedParameter = function isDeprecatedParameter(paramName) {\n return deprecatedParams[paramName];\n };\n\n var checkIfParamIsValid = function checkIfParamIsValid(param) {\n if (!isValidParameter(param)) {\n warn(\"Unknown parameter \\\"\".concat(param, \"\\\"\"));\n }\n };\n\n var checkIfToastParamIsValid = function checkIfToastParamIsValid(param) {\n if (toastIncompatibleParams.indexOf(param) !== -1) {\n warn(\"The parameter \\\"\".concat(param, \"\\\" is incompatible with toasts\"));\n }\n };\n\n var checkIfParamIsDeprecated = function checkIfParamIsDeprecated(param) {\n if (isDeprecatedParameter(param)) {\n warnAboutDepreation(param, isDeprecatedParameter(param));\n }\n };\n /**\n * Show relevant warnings for given params\n *\n * @param params\n */\n\n\n var showWarningsForParams = function showWarningsForParams(params) {\n for (var param in params) {\n checkIfParamIsValid(param);\n\n if (params.toast) {\n checkIfToastParamIsValid(param);\n }\n\n checkIfParamIsDeprecated(param);\n }\n };\n\n\n\n var staticMethods = /*#__PURE__*/Object.freeze({\n isValidParameter: isValidParameter,\n isUpdatableParameter: isUpdatableParameter,\n isDeprecatedParameter: isDeprecatedParameter,\n argsToParams: argsToParams,\n isVisible: isVisible$1,\n clickConfirm: clickConfirm,\n clickCancel: clickCancel,\n getContainer: getContainer,\n getPopup: getPopup,\n getTitle: getTitle,\n getContent: getContent,\n getHtmlContainer: getHtmlContainer,\n getImage: getImage,\n getIcon: getIcon,\n getIcons: getIcons,\n getCloseButton: getCloseButton,\n getActions: getActions,\n getConfirmButton: getConfirmButton,\n getCancelButton: getCancelButton,\n getHeader: getHeader,\n getFooter: getFooter,\n getTimerProgressBar: getTimerProgressBar,\n getFocusableElements: getFocusableElements,\n getValidationMessage: getValidationMessage,\n isLoading: isLoading,\n fire: fire,\n mixin: mixin,\n queue: queue,\n getQueueStep: getQueueStep,\n insertQueueStep: insertQueueStep,\n deleteQueueStep: deleteQueueStep,\n showLoading: showLoading,\n enableLoading: showLoading,\n getTimerLeft: getTimerLeft,\n stopTimer: stopTimer,\n resumeTimer: resumeTimer,\n toggleTimer: toggleTimer,\n increaseTimer: increaseTimer,\n isTimerRunning: isTimerRunning\n });\n\n /**\n * Enables buttons and hide loader.\n */\n\n function hideLoading() {\n // do nothing if popup is closed\n var innerParams = privateProps.innerParams.get(this);\n\n if (!innerParams) {\n return;\n }\n\n var domCache = privateProps.domCache.get(this);\n\n if (!innerParams.showConfirmButton) {\n hide(domCache.confirmButton);\n\n if (!innerParams.showCancelButton) {\n hide(domCache.actions);\n }\n }\n\n removeClass([domCache.popup, domCache.actions], swalClasses.loading);\n domCache.popup.removeAttribute('aria-busy');\n domCache.popup.removeAttribute('data-loading');\n domCache.confirmButton.disabled = false;\n domCache.cancelButton.disabled = false;\n }\n\n function getInput$1(instance) {\n var innerParams = privateProps.innerParams.get(instance || this);\n var domCache = privateProps.domCache.get(instance || this);\n\n if (!domCache) {\n return null;\n }\n\n return getInput(domCache.content, innerParams.input);\n }\n\n var fixScrollbar = function fixScrollbar() {\n // for queues, do not do this more than once\n if (states.previousBodyPadding !== null) {\n return;\n } // if the body has overflow\n\n\n if (document.body.scrollHeight > window.innerHeight) {\n // add padding so the content doesn't shift after removal of scrollbar\n states.previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue('padding-right'));\n document.body.style.paddingRight = \"\".concat(states.previousBodyPadding + measureScrollbar(), \"px\");\n }\n };\n var undoScrollbar = function undoScrollbar() {\n if (states.previousBodyPadding !== null) {\n document.body.style.paddingRight = \"\".concat(states.previousBodyPadding, \"px\");\n states.previousBodyPadding = null;\n }\n };\n\n /* istanbul ignore file */\n\n var iOSfix = function iOSfix() {\n var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream || navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1;\n\n if (iOS && !hasClass(document.body, swalClasses.iosfix)) {\n var offset = document.body.scrollTop;\n document.body.style.top = \"\".concat(offset * -1, \"px\");\n addClass(document.body, swalClasses.iosfix);\n lockBodyScroll();\n addBottomPaddingForTallPopups(); // #1948\n }\n };\n\n var addBottomPaddingForTallPopups = function addBottomPaddingForTallPopups() {\n var safari = !navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i);\n\n if (safari) {\n var bottomPanelHeight = 44;\n\n if (getPopup().scrollHeight > window.innerHeight - bottomPanelHeight) {\n getContainer().style.paddingBottom = \"\".concat(bottomPanelHeight, \"px\");\n }\n }\n };\n\n var lockBodyScroll = function lockBodyScroll() {\n // #1246\n var container = getContainer();\n var preventTouchMove;\n\n container.ontouchstart = function (e) {\n preventTouchMove = shouldPreventTouchMove(e.target);\n };\n\n container.ontouchmove = function (e) {\n if (preventTouchMove) {\n e.preventDefault();\n e.stopPropagation();\n }\n };\n };\n\n var shouldPreventTouchMove = function shouldPreventTouchMove(target) {\n var container = getContainer();\n\n if (target === container) {\n return true;\n }\n\n if (!isScrollable(container) && target.tagName !== 'INPUT' && // #1603\n !(isScrollable(getContent()) && // #1944\n getContent().contains(target))) {\n return true;\n }\n\n return false;\n };\n\n var undoIOSfix = function undoIOSfix() {\n if (hasClass(document.body, swalClasses.iosfix)) {\n var offset = parseInt(document.body.style.top, 10);\n removeClass(document.body, swalClasses.iosfix);\n document.body.style.top = '';\n document.body.scrollTop = offset * -1;\n }\n };\n\n /* istanbul ignore file */\n\n var isIE11 = function isIE11() {\n return !!window.MSInputMethodContext && !!document.documentMode;\n }; // Fix IE11 centering sweetalert2/issues/933\n\n\n var fixVerticalPositionIE = function fixVerticalPositionIE() {\n var container = getContainer();\n var popup = getPopup();\n container.style.removeProperty('align-items');\n\n if (popup.offsetTop < 0) {\n container.style.alignItems = 'flex-start';\n }\n };\n\n var IEfix = function IEfix() {\n if (typeof window !== 'undefined' && isIE11()) {\n fixVerticalPositionIE();\n window.addEventListener('resize', fixVerticalPositionIE);\n }\n };\n var undoIEfix = function undoIEfix() {\n if (typeof window !== 'undefined' && isIE11()) {\n window.removeEventListener('resize', fixVerticalPositionIE);\n }\n };\n\n // Adding aria-hidden=\"true\" to elements outside of the active modal dialog ensures that\n // elements not within the active modal dialog will not be surfaced if a user opens a screen\n // reader’s list of elements (headings, form controls, landmarks, etc.) in the document.\n\n var setAriaHidden = function setAriaHidden() {\n var bodyChildren = toArray(document.body.children);\n bodyChildren.forEach(function (el) {\n if (el === getContainer() || contains(el, getContainer())) {\n return;\n }\n\n if (el.hasAttribute('aria-hidden')) {\n el.setAttribute('data-previous-aria-hidden', el.getAttribute('aria-hidden'));\n }\n\n el.setAttribute('aria-hidden', 'true');\n });\n };\n var unsetAriaHidden = function unsetAriaHidden() {\n var bodyChildren = toArray(document.body.children);\n bodyChildren.forEach(function (el) {\n if (el.hasAttribute('data-previous-aria-hidden')) {\n el.setAttribute('aria-hidden', el.getAttribute('data-previous-aria-hidden'));\n el.removeAttribute('data-previous-aria-hidden');\n } else {\n el.removeAttribute('aria-hidden');\n }\n });\n };\n\n /**\n * This module containts `WeakMap`s for each effectively-\"private property\" that a `Swal` has.\n * For example, to set the private property \"foo\" of `this` to \"bar\", you can `privateProps.foo.set(this, 'bar')`\n * This is the approach that Babel will probably take to implement private methods/fields\n * https://github.com/tc39/proposal-private-methods\n * https://github.com/babel/babel/pull/7555\n * Once we have the changes from that PR in Babel, and our core class fits reasonable in *one module*\n * then we can use that language feature.\n */\n var privateMethods = {\n swalPromiseResolve: new WeakMap()\n };\n\n /*\n * Instance method to close sweetAlert\n */\n\n function removePopupAndResetState(instance, container, isToast$$1, onAfterClose) {\n if (isToast$$1) {\n triggerOnAfterCloseAndDispose(instance, onAfterClose);\n } else {\n restoreActiveElement().then(function () {\n return triggerOnAfterCloseAndDispose(instance, onAfterClose);\n });\n globalState.keydownTarget.removeEventListener('keydown', globalState.keydownHandler, {\n capture: globalState.keydownListenerCapture\n });\n globalState.keydownHandlerAdded = false;\n }\n\n if (container.parentNode && !document.body.getAttribute('data-swal2-queue-step')) {\n container.parentNode.removeChild(container);\n }\n\n if (isModal()) {\n undoScrollbar();\n undoIOSfix();\n undoIEfix();\n unsetAriaHidden();\n }\n\n removeBodyClasses();\n }\n\n function removeBodyClasses() {\n removeClass([document.documentElement, document.body], [swalClasses.shown, swalClasses['height-auto'], swalClasses['no-backdrop'], swalClasses['toast-shown'], swalClasses['toast-column']]);\n }\n\n function close(resolveValue) {\n var popup = getPopup();\n\n if (!popup) {\n return;\n }\n\n var innerParams = privateProps.innerParams.get(this);\n\n if (!innerParams || hasClass(popup, innerParams.hideClass.popup)) {\n return;\n }\n\n var swalPromiseResolve = privateMethods.swalPromiseResolve.get(this);\n removeClass(popup, innerParams.showClass.popup);\n addClass(popup, innerParams.hideClass.popup);\n var backdrop = getContainer();\n removeClass(backdrop, innerParams.showClass.backdrop);\n addClass(backdrop, innerParams.hideClass.backdrop);\n handlePopupAnimation(this, popup, innerParams);\n\n if (typeof resolveValue !== 'undefined') {\n resolveValue.isDismissed = typeof resolveValue.dismiss !== 'undefined';\n resolveValue.isConfirmed = typeof resolveValue.dismiss === 'undefined';\n } else {\n resolveValue = {\n isDismissed: true,\n isConfirmed: false\n };\n } // Resolve Swal promise\n\n\n swalPromiseResolve(resolveValue || {});\n }\n\n var handlePopupAnimation = function handlePopupAnimation(instance, popup, innerParams) {\n var container = getContainer(); // If animation is supported, animate\n\n var animationIsSupported = animationEndEvent && hasCssAnimation(popup);\n var onClose = innerParams.onClose,\n onAfterClose = innerParams.onAfterClose;\n\n if (onClose !== null && typeof onClose === 'function') {\n onClose(popup);\n }\n\n if (animationIsSupported) {\n animatePopup(instance, popup, container, onAfterClose);\n } else {\n // Otherwise, remove immediately\n removePopupAndResetState(instance, container, isToast(), onAfterClose);\n }\n };\n\n var animatePopup = function animatePopup(instance, popup, container, onAfterClose) {\n globalState.swalCloseEventFinishedCallback = removePopupAndResetState.bind(null, instance, container, isToast(), onAfterClose);\n popup.addEventListener(animationEndEvent, function (e) {\n if (e.target === popup) {\n globalState.swalCloseEventFinishedCallback();\n delete globalState.swalCloseEventFinishedCallback;\n }\n });\n };\n\n var triggerOnAfterCloseAndDispose = function triggerOnAfterCloseAndDispose(instance, onAfterClose) {\n setTimeout(function () {\n if (typeof onAfterClose === 'function') {\n onAfterClose();\n }\n\n instance._destroy();\n });\n };\n\n function setButtonsDisabled(instance, buttons, disabled) {\n var domCache = privateProps.domCache.get(instance);\n buttons.forEach(function (button) {\n domCache[button].disabled = disabled;\n });\n }\n\n function setInputDisabled(input, disabled) {\n if (!input) {\n return false;\n }\n\n if (input.type === 'radio') {\n var radiosContainer = input.parentNode.parentNode;\n var radios = radiosContainer.querySelectorAll('input');\n\n for (var i = 0; i < radios.length; i++) {\n radios[i].disabled = disabled;\n }\n } else {\n input.disabled = disabled;\n }\n }\n\n function enableButtons() {\n setButtonsDisabled(this, ['confirmButton', 'cancelButton'], false);\n }\n function disableButtons() {\n setButtonsDisabled(this, ['confirmButton', 'cancelButton'], true);\n }\n function enableInput() {\n return setInputDisabled(this.getInput(), false);\n }\n function disableInput() {\n return setInputDisabled(this.getInput(), true);\n }\n\n function showValidationMessage(error) {\n var domCache = privateProps.domCache.get(this);\n setInnerHtml(domCache.validationMessage, error);\n var popupComputedStyle = window.getComputedStyle(domCache.popup);\n domCache.validationMessage.style.marginLeft = \"-\".concat(popupComputedStyle.getPropertyValue('padding-left'));\n domCache.validationMessage.style.marginRight = \"-\".concat(popupComputedStyle.getPropertyValue('padding-right'));\n show(domCache.validationMessage);\n var input = this.getInput();\n\n if (input) {\n input.setAttribute('aria-invalid', true);\n input.setAttribute('aria-describedBy', swalClasses['validation-message']);\n focusInput(input);\n addClass(input, swalClasses.inputerror);\n }\n } // Hide block with validation message\n\n function resetValidationMessage$1() {\n var domCache = privateProps.domCache.get(this);\n\n if (domCache.validationMessage) {\n hide(domCache.validationMessage);\n }\n\n var input = this.getInput();\n\n if (input) {\n input.removeAttribute('aria-invalid');\n input.removeAttribute('aria-describedBy');\n removeClass(input, swalClasses.inputerror);\n }\n }\n\n function getProgressSteps$1() {\n var domCache = privateProps.domCache.get(this);\n return domCache.progressSteps;\n }\n\n var Timer = /*#__PURE__*/function () {\n function Timer(callback, delay) {\n _classCallCheck(this, Timer);\n\n this.callback = callback;\n this.remaining = delay;\n this.running = false;\n this.start();\n }\n\n _createClass(Timer, [{\n key: \"start\",\n value: function start() {\n if (!this.running) {\n this.running = true;\n this.started = new Date();\n this.id = setTimeout(this.callback, this.remaining);\n }\n\n return this.remaining;\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (this.running) {\n this.running = false;\n clearTimeout(this.id);\n this.remaining -= new Date() - this.started;\n }\n\n return this.remaining;\n }\n }, {\n key: \"increase\",\n value: function increase(n) {\n var running = this.running;\n\n if (running) {\n this.stop();\n }\n\n this.remaining += n;\n\n if (running) {\n this.start();\n }\n\n return this.remaining;\n }\n }, {\n key: \"getTimerLeft\",\n value: function getTimerLeft() {\n if (this.running) {\n this.stop();\n this.start();\n }\n\n return this.remaining;\n }\n }, {\n key: \"isRunning\",\n value: function isRunning() {\n return this.running;\n }\n }]);\n\n return Timer;\n }();\n\n var defaultInputValidators = {\n email: function email(string, validationMessage) {\n return /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z0-9-]{2,24}$/.test(string) ? Promise.resolve() : Promise.resolve(validationMessage || 'Invalid email address');\n },\n url: function url(string, validationMessage) {\n // taken from https://stackoverflow.com/a/3809435 with a small change from #1306 and #2013\n return /^https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-z]{2,63}\\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(string) ? Promise.resolve() : Promise.resolve(validationMessage || 'Invalid URL');\n }\n };\n\n function setDefaultInputValidators(params) {\n // Use default `inputValidator` for supported input types if not provided\n if (!params.inputValidator) {\n Object.keys(defaultInputValidators).forEach(function (key) {\n if (params.input === key) {\n params.inputValidator = defaultInputValidators[key];\n }\n });\n }\n }\n\n function validateCustomTargetElement(params) {\n // Determine if the custom target element is valid\n if (!params.target || typeof params.target === 'string' && !document.querySelector(params.target) || typeof params.target !== 'string' && !params.target.appendChild) {\n warn('Target parameter is not valid, defaulting to \"body\"');\n params.target = 'body';\n }\n }\n /**\n * Set type, text and actions on popup\n *\n * @param params\n * @returns {boolean}\n */\n\n\n function setParameters(params) {\n setDefaultInputValidators(params); // showLoaderOnConfirm && preConfirm\n\n if (params.showLoaderOnConfirm && !params.preConfirm) {\n warn('showLoaderOnConfirm is set to true, but preConfirm is not defined.\\n' + 'showLoaderOnConfirm should be used together with preConfirm, see usage example:\\n' + 'https://sweetalert2.github.io/#ajax-request');\n } // params.animation will be actually used in renderPopup.js\n // but in case when params.animation is a function, we need to call that function\n // before popup (re)initialization, so it'll be possible to check Swal.isVisible()\n // inside the params.animation function\n\n\n params.animation = callIfFunction(params.animation);\n validateCustomTargetElement(params); // Replace newlines with
      in title\n\n if (typeof params.title === 'string') {\n params.title = params.title.split('\\n').join('
      ');\n }\n\n init(params);\n }\n\n /**\n * Open popup, add necessary classes and styles, fix scrollbar\n *\n * @param {Array} params\n */\n\n var openPopup = function openPopup(params) {\n var container = getContainer();\n var popup = getPopup();\n\n if (typeof params.onBeforeOpen === 'function') {\n params.onBeforeOpen(popup);\n }\n\n var bodyStyles = window.getComputedStyle(document.body);\n var initialBodyOverflow = bodyStyles.overflowY;\n addClasses$1(container, popup, params); // scrolling is 'hidden' until animation is done, after that 'auto'\n\n setScrollingVisibility(container, popup);\n\n if (isModal()) {\n fixScrollContainer(container, params.scrollbarPadding, initialBodyOverflow);\n setAriaHidden();\n }\n\n if (!isToast() && !globalState.previousActiveElement) {\n globalState.previousActiveElement = document.activeElement;\n }\n\n if (typeof params.onOpen === 'function') {\n setTimeout(function () {\n return params.onOpen(popup);\n });\n }\n\n removeClass(container, swalClasses['no-transition']);\n };\n\n function swalOpenAnimationFinished(event) {\n var popup = getPopup();\n\n if (event.target !== popup) {\n return;\n }\n\n var container = getContainer();\n popup.removeEventListener(animationEndEvent, swalOpenAnimationFinished);\n container.style.overflowY = 'auto';\n }\n\n var setScrollingVisibility = function setScrollingVisibility(container, popup) {\n if (animationEndEvent && hasCssAnimation(popup)) {\n container.style.overflowY = 'hidden';\n popup.addEventListener(animationEndEvent, swalOpenAnimationFinished);\n } else {\n container.style.overflowY = 'auto';\n }\n };\n\n var fixScrollContainer = function fixScrollContainer(container, scrollbarPadding, initialBodyOverflow) {\n iOSfix();\n IEfix();\n\n if (scrollbarPadding && initialBodyOverflow !== 'hidden') {\n fixScrollbar();\n } // sweetalert2/issues/1247\n\n\n setTimeout(function () {\n container.scrollTop = 0;\n });\n };\n\n var addClasses$1 = function addClasses(container, popup, params) {\n addClass(container, params.showClass.backdrop);\n show(popup); // Animate popup right after showing it\n\n addClass(popup, params.showClass.popup);\n addClass([document.documentElement, document.body], swalClasses.shown);\n\n if (params.heightAuto && params.backdrop && !params.toast) {\n addClass([document.documentElement, document.body], swalClasses['height-auto']);\n }\n };\n\n var handleInputOptionsAndValue = function handleInputOptionsAndValue(instance, params) {\n if (params.input === 'select' || params.input === 'radio') {\n handleInputOptions(instance, params);\n } else if (['text', 'email', 'number', 'tel', 'textarea'].indexOf(params.input) !== -1 && (hasToPromiseFn(params.inputValue) || isPromise(params.inputValue))) {\n handleInputValue(instance, params);\n }\n };\n var getInputValue = function getInputValue(instance, innerParams) {\n var input = instance.getInput();\n\n if (!input) {\n return null;\n }\n\n switch (innerParams.input) {\n case 'checkbox':\n return getCheckboxValue(input);\n\n case 'radio':\n return getRadioValue(input);\n\n case 'file':\n return getFileValue(input);\n\n default:\n return innerParams.inputAutoTrim ? input.value.trim() : input.value;\n }\n };\n\n var getCheckboxValue = function getCheckboxValue(input) {\n return input.checked ? 1 : 0;\n };\n\n var getRadioValue = function getRadioValue(input) {\n return input.checked ? input.value : null;\n };\n\n var getFileValue = function getFileValue(input) {\n return input.files.length ? input.getAttribute('multiple') !== null ? input.files : input.files[0] : null;\n };\n\n var handleInputOptions = function handleInputOptions(instance, params) {\n var content = getContent();\n\n var processInputOptions = function processInputOptions(inputOptions) {\n return populateInputOptions[params.input](content, formatInputOptions(inputOptions), params);\n };\n\n if (hasToPromiseFn(params.inputOptions) || isPromise(params.inputOptions)) {\n showLoading();\n asPromise(params.inputOptions).then(function (inputOptions) {\n instance.hideLoading();\n processInputOptions(inputOptions);\n });\n } else if (_typeof(params.inputOptions) === 'object') {\n processInputOptions(params.inputOptions);\n } else {\n error(\"Unexpected type of inputOptions! Expected object, Map or Promise, got \".concat(_typeof(params.inputOptions)));\n }\n };\n\n var handleInputValue = function handleInputValue(instance, params) {\n var input = instance.getInput();\n hide(input);\n asPromise(params.inputValue).then(function (inputValue) {\n input.value = params.input === 'number' ? parseFloat(inputValue) || 0 : \"\".concat(inputValue);\n show(input);\n input.focus();\n instance.hideLoading();\n })[\"catch\"](function (err) {\n error(\"Error in inputValue promise: \".concat(err));\n input.value = '';\n show(input);\n input.focus();\n instance.hideLoading();\n });\n };\n\n var populateInputOptions = {\n select: function select(content, inputOptions, params) {\n var select = getChildByClass(content, swalClasses.select);\n\n var renderOption = function renderOption(parent, optionLabel, optionValue) {\n var option = document.createElement('option');\n option.value = optionValue;\n setInnerHtml(option, optionLabel);\n\n if (params.inputValue.toString() === optionValue.toString()) {\n option.selected = true;\n }\n\n parent.appendChild(option);\n };\n\n inputOptions.forEach(function (inputOption) {\n var optionValue = inputOption[0];\n var optionLabel = inputOption[1]; // spec:\n // https://www.w3.org/TR/html401/interact/forms.html#h-17.6\n // \"...all OPTGROUP elements must be specified directly within a SELECT element (i.e., groups may not be nested)...\"\n // check whether this is a \n\n if (Array.isArray(optionLabel)) {\n // if it is an array, then it is an \n var optgroup = document.createElement('optgroup');\n optgroup.label = optionValue;\n optgroup.disabled = false; // not configurable for now\n\n select.appendChild(optgroup);\n optionLabel.forEach(function (o) {\n return renderOption(optgroup, o[1], o[0]);\n });\n } else {\n // case of \n valueFormatted = formatInputOptions(valueFormatted);\n }\n\n result.push([key, valueFormatted]);\n });\n } else {\n Object.keys(inputOptions).forEach(function (key) {\n var valueFormatted = inputOptions[key];\n\n if (_typeof(valueFormatted) === 'object') {\n // case of \n valueFormatted = formatInputOptions(valueFormatted);\n }\n\n result.push([key, valueFormatted]);\n });\n }\n\n return result;\n };\n\n var handleConfirmButtonClick = function handleConfirmButtonClick(instance, innerParams) {\n instance.disableButtons();\n\n if (innerParams.input) {\n handleConfirmWithInput(instance, innerParams);\n } else {\n confirm(instance, innerParams, true);\n }\n };\n var handleCancelButtonClick = function handleCancelButtonClick(instance, dismissWith) {\n instance.disableButtons();\n dismissWith(DismissReason.cancel);\n };\n\n var handleConfirmWithInput = function handleConfirmWithInput(instance, innerParams) {\n var inputValue = getInputValue(instance, innerParams);\n\n if (innerParams.inputValidator) {\n instance.disableInput();\n var validationPromise = Promise.resolve().then(function () {\n return asPromise(innerParams.inputValidator(inputValue, innerParams.validationMessage));\n });\n validationPromise.then(function (validationMessage) {\n instance.enableButtons();\n instance.enableInput();\n\n if (validationMessage) {\n instance.showValidationMessage(validationMessage);\n } else {\n confirm(instance, innerParams, inputValue);\n }\n });\n } else if (!instance.getInput().checkValidity()) {\n instance.enableButtons();\n instance.showValidationMessage(innerParams.validationMessage);\n } else {\n confirm(instance, innerParams, inputValue);\n }\n };\n\n var succeedWith = function succeedWith(instance, value) {\n instance.closePopup({\n value: value\n });\n };\n\n var confirm = function confirm(instance, innerParams, value) {\n if (innerParams.showLoaderOnConfirm) {\n showLoading(); // TODO: make showLoading an *instance* method\n }\n\n if (innerParams.preConfirm) {\n instance.resetValidationMessage();\n var preConfirmPromise = Promise.resolve().then(function () {\n return asPromise(innerParams.preConfirm(value, innerParams.validationMessage));\n });\n preConfirmPromise.then(function (preConfirmValue) {\n if (isVisible(getValidationMessage()) || preConfirmValue === false) {\n instance.hideLoading();\n } else {\n succeedWith(instance, typeof preConfirmValue === 'undefined' ? value : preConfirmValue);\n }\n });\n } else {\n succeedWith(instance, value);\n }\n };\n\n var addKeydownHandler = function addKeydownHandler(instance, globalState, innerParams, dismissWith) {\n if (globalState.keydownTarget && globalState.keydownHandlerAdded) {\n globalState.keydownTarget.removeEventListener('keydown', globalState.keydownHandler, {\n capture: globalState.keydownListenerCapture\n });\n globalState.keydownHandlerAdded = false;\n }\n\n if (!innerParams.toast) {\n globalState.keydownHandler = function (e) {\n return keydownHandler(instance, e, dismissWith);\n };\n\n globalState.keydownTarget = innerParams.keydownListenerCapture ? window : getPopup();\n globalState.keydownListenerCapture = innerParams.keydownListenerCapture;\n globalState.keydownTarget.addEventListener('keydown', globalState.keydownHandler, {\n capture: globalState.keydownListenerCapture\n });\n globalState.keydownHandlerAdded = true;\n }\n }; // Focus handling\n\n var setFocus = function setFocus(innerParams, index, increment) {\n var focusableElements = getFocusableElements(); // search for visible elements and select the next possible match\n\n for (var i = 0; i < focusableElements.length; i++) {\n index = index + increment; // rollover to first item\n\n if (index === focusableElements.length) {\n index = 0; // go to last item\n } else if (index === -1) {\n index = focusableElements.length - 1;\n }\n\n return focusableElements[index].focus();\n } // no visible focusable elements, focus the popup\n\n\n getPopup().focus();\n };\n var arrowKeys = ['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Left', 'Right', 'Up', 'Down' // IE11\n ];\n var escKeys = ['Escape', 'Esc' // IE11\n ];\n\n var keydownHandler = function keydownHandler(instance, e, dismissWith) {\n var innerParams = privateProps.innerParams.get(instance);\n\n if (innerParams.stopKeydownPropagation) {\n e.stopPropagation();\n } // ENTER\n\n\n if (e.key === 'Enter') {\n handleEnter(instance, e, innerParams); // TAB\n } else if (e.key === 'Tab') {\n handleTab(e, innerParams); // ARROWS - switch focus between buttons\n } else if (arrowKeys.indexOf(e.key) !== -1) {\n handleArrows(); // ESC\n } else if (escKeys.indexOf(e.key) !== -1) {\n handleEsc(e, innerParams, dismissWith);\n }\n };\n\n var handleEnter = function handleEnter(instance, e, innerParams) {\n // #720 #721\n if (e.isComposing) {\n return;\n }\n\n if (e.target && instance.getInput() && e.target.outerHTML === instance.getInput().outerHTML) {\n if (['textarea', 'file'].indexOf(innerParams.input) !== -1) {\n return; // do not submit\n }\n\n clickConfirm();\n e.preventDefault();\n }\n };\n\n var handleTab = function handleTab(e, innerParams) {\n var targetElement = e.target;\n var focusableElements = getFocusableElements();\n var btnIndex = -1;\n\n for (var i = 0; i < focusableElements.length; i++) {\n if (targetElement === focusableElements[i]) {\n btnIndex = i;\n break;\n }\n }\n\n if (!e.shiftKey) {\n // Cycle to the next button\n setFocus(innerParams, btnIndex, 1);\n } else {\n // Cycle to the prev button\n setFocus(innerParams, btnIndex, -1);\n }\n\n e.stopPropagation();\n e.preventDefault();\n };\n\n var handleArrows = function handleArrows() {\n var confirmButton = getConfirmButton();\n var cancelButton = getCancelButton(); // focus Cancel button if Confirm button is currently focused\n\n if (document.activeElement === confirmButton && isVisible(cancelButton)) {\n cancelButton.focus(); // and vice versa\n } else if (document.activeElement === cancelButton && isVisible(confirmButton)) {\n confirmButton.focus();\n }\n };\n\n var handleEsc = function handleEsc(e, innerParams, dismissWith) {\n if (callIfFunction(innerParams.allowEscapeKey)) {\n e.preventDefault();\n dismissWith(DismissReason.esc);\n }\n };\n\n var handlePopupClick = function handlePopupClick(instance, domCache, dismissWith) {\n var innerParams = privateProps.innerParams.get(instance);\n\n if (innerParams.toast) {\n handleToastClick(instance, domCache, dismissWith);\n } else {\n // Ignore click events that had mousedown on the popup but mouseup on the container\n // This can happen when the user drags a slider\n handleModalMousedown(domCache); // Ignore click events that had mousedown on the container but mouseup on the popup\n\n handleContainerMousedown(domCache);\n handleModalClick(instance, domCache, dismissWith);\n }\n };\n\n var handleToastClick = function handleToastClick(instance, domCache, dismissWith) {\n // Closing toast by internal click\n domCache.popup.onclick = function () {\n var innerParams = privateProps.innerParams.get(instance);\n\n if (innerParams.showConfirmButton || innerParams.showCancelButton || innerParams.showCloseButton || innerParams.input) {\n return;\n }\n\n dismissWith(DismissReason.close);\n };\n };\n\n var ignoreOutsideClick = false;\n\n var handleModalMousedown = function handleModalMousedown(domCache) {\n domCache.popup.onmousedown = function () {\n domCache.container.onmouseup = function (e) {\n domCache.container.onmouseup = undefined; // We only check if the mouseup target is the container because usually it doesn't\n // have any other direct children aside of the popup\n\n if (e.target === domCache.container) {\n ignoreOutsideClick = true;\n }\n };\n };\n };\n\n var handleContainerMousedown = function handleContainerMousedown(domCache) {\n domCache.container.onmousedown = function () {\n domCache.popup.onmouseup = function (e) {\n domCache.popup.onmouseup = undefined; // We also need to check if the mouseup target is a child of the popup\n\n if (e.target === domCache.popup || domCache.popup.contains(e.target)) {\n ignoreOutsideClick = true;\n }\n };\n };\n };\n\n var handleModalClick = function handleModalClick(instance, domCache, dismissWith) {\n domCache.container.onclick = function (e) {\n var innerParams = privateProps.innerParams.get(instance);\n\n if (ignoreOutsideClick) {\n ignoreOutsideClick = false;\n return;\n }\n\n if (e.target === domCache.container && callIfFunction(innerParams.allowOutsideClick)) {\n dismissWith(DismissReason.backdrop);\n }\n };\n };\n\n function _main(userParams) {\n showWarningsForParams(userParams);\n\n if (globalState.currentInstance) {\n globalState.currentInstance._destroy();\n }\n\n globalState.currentInstance = this;\n var innerParams = prepareParams(userParams);\n setParameters(innerParams);\n Object.freeze(innerParams); // clear the previous timer\n\n if (globalState.timeout) {\n globalState.timeout.stop();\n delete globalState.timeout;\n } // clear the restore focus timeout\n\n\n clearTimeout(globalState.restoreFocusTimeout);\n var domCache = populateDomCache(this);\n render(this, innerParams);\n privateProps.innerParams.set(this, innerParams);\n return swalPromise(this, domCache, innerParams);\n }\n\n var prepareParams = function prepareParams(userParams) {\n var showClass = _extends({}, defaultParams.showClass, userParams.showClass);\n\n var hideClass = _extends({}, defaultParams.hideClass, userParams.hideClass);\n\n var params = _extends({}, defaultParams, userParams);\n\n params.showClass = showClass;\n params.hideClass = hideClass; // @deprecated\n\n if (userParams.animation === false) {\n params.showClass = {\n popup: 'swal2-noanimation',\n backdrop: 'swal2-noanimation'\n };\n params.hideClass = {};\n }\n\n return params;\n };\n\n var swalPromise = function swalPromise(instance, domCache, innerParams) {\n return new Promise(function (resolve) {\n // functions to handle all closings/dismissals\n var dismissWith = function dismissWith(dismiss) {\n instance.closePopup({\n dismiss: dismiss\n });\n };\n\n privateMethods.swalPromiseResolve.set(instance, resolve);\n\n domCache.confirmButton.onclick = function () {\n return handleConfirmButtonClick(instance, innerParams);\n };\n\n domCache.cancelButton.onclick = function () {\n return handleCancelButtonClick(instance, dismissWith);\n };\n\n domCache.closeButton.onclick = function () {\n return dismissWith(DismissReason.close);\n };\n\n handlePopupClick(instance, domCache, dismissWith);\n addKeydownHandler(instance, globalState, innerParams, dismissWith);\n\n if (innerParams.toast && (innerParams.input || innerParams.footer || innerParams.showCloseButton)) {\n addClass(document.body, swalClasses['toast-column']);\n } else {\n removeClass(document.body, swalClasses['toast-column']);\n }\n\n handleInputOptionsAndValue(instance, innerParams);\n openPopup(innerParams);\n setupTimer(globalState, innerParams, dismissWith);\n initFocus(domCache, innerParams); // Scroll container to top on open (#1247, #1946)\n\n setTimeout(function () {\n domCache.container.scrollTop = 0;\n });\n });\n };\n\n var populateDomCache = function populateDomCache(instance) {\n var domCache = {\n popup: getPopup(),\n container: getContainer(),\n content: getContent(),\n actions: getActions(),\n confirmButton: getConfirmButton(),\n cancelButton: getCancelButton(),\n closeButton: getCloseButton(),\n validationMessage: getValidationMessage(),\n progressSteps: getProgressSteps()\n };\n privateProps.domCache.set(instance, domCache);\n return domCache;\n };\n\n var setupTimer = function setupTimer(globalState$$1, innerParams, dismissWith) {\n var timerProgressBar = getTimerProgressBar();\n hide(timerProgressBar);\n\n if (innerParams.timer) {\n globalState$$1.timeout = new Timer(function () {\n dismissWith('timer');\n delete globalState$$1.timeout;\n }, innerParams.timer);\n\n if (innerParams.timerProgressBar) {\n show(timerProgressBar);\n setTimeout(function () {\n if (globalState$$1.timeout.running) {\n // timer can be already stopped at this point\n animateTimerProgressBar(innerParams.timer);\n }\n });\n }\n }\n };\n\n var initFocus = function initFocus(domCache, innerParams) {\n if (innerParams.toast) {\n return;\n }\n\n if (!callIfFunction(innerParams.allowEnterKey)) {\n return blurActiveElement();\n }\n\n if (innerParams.focusCancel && isVisible(domCache.cancelButton)) {\n return domCache.cancelButton.focus();\n }\n\n if (innerParams.focusConfirm && isVisible(domCache.confirmButton)) {\n return domCache.confirmButton.focus();\n }\n\n setFocus(innerParams, -1, 1);\n };\n\n var blurActiveElement = function blurActiveElement() {\n if (document.activeElement && typeof document.activeElement.blur === 'function') {\n document.activeElement.blur();\n }\n };\n\n /**\n * Updates popup parameters.\n */\n\n function update(params) {\n var popup = getPopup();\n var innerParams = privateProps.innerParams.get(this);\n\n if (!popup || hasClass(popup, innerParams.hideClass.popup)) {\n return warn(\"You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.\");\n }\n\n var validUpdatableParams = {}; // assign valid params from `params` to `defaults`\n\n Object.keys(params).forEach(function (param) {\n if (Swal.isUpdatableParameter(param)) {\n validUpdatableParams[param] = params[param];\n } else {\n warn(\"Invalid parameter to update: \\\"\".concat(param, \"\\\". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\"));\n }\n });\n\n var updatedParams = _extends({}, innerParams, validUpdatableParams);\n\n render(this, updatedParams);\n privateProps.innerParams.set(this, updatedParams);\n Object.defineProperties(this, {\n params: {\n value: _extends({}, this.params, params),\n writable: false,\n enumerable: true\n }\n });\n }\n\n function _destroy() {\n var domCache = privateProps.domCache.get(this);\n var innerParams = privateProps.innerParams.get(this);\n\n if (!innerParams) {\n return; // This instance has already been destroyed\n } // Check if there is another Swal closing\n\n\n if (domCache.popup && globalState.swalCloseEventFinishedCallback) {\n globalState.swalCloseEventFinishedCallback();\n delete globalState.swalCloseEventFinishedCallback;\n } // Check if there is a swal disposal defer timer\n\n\n if (globalState.deferDisposalTimer) {\n clearTimeout(globalState.deferDisposalTimer);\n delete globalState.deferDisposalTimer;\n }\n\n if (typeof innerParams.onDestroy === 'function') {\n innerParams.onDestroy();\n }\n\n disposeSwal(this);\n }\n\n var disposeSwal = function disposeSwal(instance) {\n // Unset this.params so GC will dispose it (#1569)\n delete instance.params; // Unset globalState props so GC will dispose globalState (#1569)\n\n delete globalState.keydownHandler;\n delete globalState.keydownTarget; // Unset WeakMaps so GC will be able to dispose them (#1569)\n\n unsetWeakMaps(privateProps);\n unsetWeakMaps(privateMethods);\n };\n\n var unsetWeakMaps = function unsetWeakMaps(obj) {\n for (var i in obj) {\n obj[i] = new WeakMap();\n }\n };\n\n\n\n var instanceMethods = /*#__PURE__*/Object.freeze({\n hideLoading: hideLoading,\n disableLoading: hideLoading,\n getInput: getInput$1,\n close: close,\n closePopup: close,\n closeModal: close,\n closeToast: close,\n enableButtons: enableButtons,\n disableButtons: disableButtons,\n enableInput: enableInput,\n disableInput: disableInput,\n showValidationMessage: showValidationMessage,\n resetValidationMessage: resetValidationMessage$1,\n getProgressSteps: getProgressSteps$1,\n _main: _main,\n update: update,\n _destroy: _destroy\n });\n\n var currentInstance;\n\n var SweetAlert = /*#__PURE__*/function () {\n function SweetAlert() {\n _classCallCheck(this, SweetAlert);\n\n // Prevent run in Node env\n if (typeof window === 'undefined') {\n return;\n } // Check for the existence of Promise\n\n\n if (typeof Promise === 'undefined') {\n error('This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)');\n }\n\n currentInstance = this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var outerParams = Object.freeze(this.constructor.argsToParams(args));\n Object.defineProperties(this, {\n params: {\n value: outerParams,\n writable: false,\n enumerable: true,\n configurable: true\n }\n });\n\n var promise = this._main(this.params);\n\n privateProps.promise.set(this, promise);\n } // `catch` cannot be the name of a module export, so we define our thenable methods here instead\n\n\n _createClass(SweetAlert, [{\n key: \"then\",\n value: function then(onFulfilled) {\n var promise = privateProps.promise.get(this);\n return promise.then(onFulfilled);\n }\n }, {\n key: \"finally\",\n value: function _finally(onFinally) {\n var promise = privateProps.promise.get(this);\n return promise[\"finally\"](onFinally);\n }\n }]);\n\n return SweetAlert;\n }(); // Assign instance methods from src/instanceMethods/*.js to prototype\n\n\n _extends(SweetAlert.prototype, instanceMethods); // Assign static methods from src/staticMethods/*.js to constructor\n\n\n _extends(SweetAlert, staticMethods); // Proxy to instance methods to constructor, for now, for backwards compatibility\n\n\n Object.keys(instanceMethods).forEach(function (key) {\n SweetAlert[key] = function () {\n if (currentInstance) {\n var _currentInstance;\n\n return (_currentInstance = currentInstance)[key].apply(_currentInstance, arguments);\n }\n };\n });\n SweetAlert.DismissReason = DismissReason;\n SweetAlert.version = '9.17.2';\n\n var Swal = SweetAlert;\n Swal[\"default\"] = Swal;\n\n return Swal;\n\n}));\nif (typeof this !== 'undefined' && this.Sweetalert2){ this.swal = this.sweetAlert = this.Swal = this.SweetAlert = this.Sweetalert2}\n\n\"undefined\"!=typeof document&&function(e,t){var n=e.createElement(\"style\");if(e.getElementsByTagName(\"head\")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,\".swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;overflow-y:hidden;background:#fff;box-shadow:0 0 .625em #d9d9d9}.swal2-popup.swal2-toast .swal2-header{flex-direction:row;padding:0}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:static;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;padding:0;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{flex-basis:auto!important;width:auto;height:auto;margin:0 .3125em}.swal2-popup.swal2-toast .swal2-styled{margin:0 .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:flex;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-actions.swal2-loading .swal2-styled.swal2-confirm{box-sizing:border-box;width:2.5em;height:2.5em;margin:.46875em;padding:0;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent!important;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{content:\\\"\\\";display:inline-block;width:15px;height:15px;margin-left:5px;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff}.swal2-styled{margin:.3125em;padding:.625em 2em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(50,100,150,.4)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:.3125em;border-bottom-left-radius:.3125em}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:0;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::-ms-input-placeholder,.swal2-input::-ms-input-placeholder,.swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.swal2-validation-message{display:none;align-items:center;justify-content:center;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:\\\"!\\\";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{align-items:center;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#3085d6}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;width:2.5em;height:.4em;margin:0 -1px;background:#3085d6}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}\");","module.exports = {};\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","exports.nextTick = function nextTick(fn) {\n var args = Array.prototype.slice.call(arguments);\n args.shift();\n setTimeout(function () {\n fn.apply(null, args);\n }, 0);\n};\n\nexports.platform = exports.arch = \nexports.execPath = exports.title = 'browser';\nexports.pid = 1;\nexports.browser = true;\nexports.env = {};\nexports.argv = [];\n\nexports.binding = function (name) {\n\tthrow new Error('No such module. (Possibly not yet loaded)')\n};\n\n(function () {\n var cwd = '/';\n var path;\n exports.cwd = function () { return cwd };\n exports.chdir = function (dir) {\n if (!path) path = require('path');\n cwd = path.resolve(dir, cwd);\n };\n})();\n\nexports.exit = exports.kill = \nexports.umask = exports.dlopen = \nexports.uptime = exports.memoryUsage = \nexports.uvCounters = function() {};\nexports.features = {};\n","var fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar split = ''.split;\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split.call(it, '') : Object(it);\n} : Object;\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar definePropertyModule = require('../internals/object-define-property');\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","var global = require('../internals/global');\n\nmodule.exports = function (a, b) {\n var console = global.console;\n if (console && console.error) {\n arguments.length === 1 ? console.error(a) : console.error(a, b);\n }\n};\n","var anObject = require('../internals/an-object');\nvar aFunction = require('../internals/a-function');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.github.io/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);\n};\n","// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/LICENSE\n\n(function(mod) {\n if (typeof exports == \"object\" && typeof module == \"object\") // CommonJS\n mod(require(\"../../lib/codemirror\"));\n else if (typeof define == \"function\" && define.amd) // AMD\n define([\"../../lib/codemirror\"], mod);\n else // Plain browser env\n mod(CodeMirror);\n})(function(CodeMirror) {\n \"use strict\";\n\n function doFold(cm, pos, options, force) {\n if (options && options.call) {\n var finder = options;\n options = null;\n } else {\n var finder = getOption(cm, options, \"rangeFinder\");\n }\n if (typeof pos == \"number\") pos = CodeMirror.Pos(pos, 0);\n var minSize = getOption(cm, options, \"minFoldSize\");\n\n function getRange(allowFolded) {\n var range = finder(cm, pos);\n if (!range || range.to.line - range.from.line < minSize) return null;\n var marks = cm.findMarksAt(range.from);\n for (var i = 0; i < marks.length; ++i) {\n if (marks[i].__isFold && force !== \"fold\") {\n if (!allowFolded) return null;\n range.cleared = true;\n marks[i].clear();\n }\n }\n return range;\n }\n\n var range = getRange(true);\n if (getOption(cm, options, \"scanUp\")) while (!range && pos.line > cm.firstLine()) {\n pos = CodeMirror.Pos(pos.line - 1, 0);\n range = getRange(false);\n }\n if (!range || range.cleared || force === \"unfold\") return;\n\n var myWidget = makeWidget(cm, options, range);\n CodeMirror.on(myWidget, \"mousedown\", function(e) {\n myRange.clear();\n CodeMirror.e_preventDefault(e);\n });\n var myRange = cm.markText(range.from, range.to, {\n replacedWith: myWidget,\n clearOnEnter: getOption(cm, options, \"clearOnEnter\"),\n __isFold: true\n });\n myRange.on(\"clear\", function(from, to) {\n CodeMirror.signal(cm, \"unfold\", cm, from, to);\n });\n CodeMirror.signal(cm, \"fold\", cm, range.from, range.to);\n }\n\n function makeWidget(cm, options, range) {\n var widget = getOption(cm, options, \"widget\");\n\n if (typeof widget == \"function\") {\n widget = widget(range.from, range.to);\n }\n\n if (typeof widget == \"string\") {\n var text = document.createTextNode(widget);\n widget = document.createElement(\"span\");\n widget.appendChild(text);\n widget.className = \"CodeMirror-foldmarker\";\n } else if (widget) {\n widget = widget.cloneNode(true)\n }\n return widget;\n }\n\n // Clumsy backwards-compatible interface\n CodeMirror.newFoldFunction = function(rangeFinder, widget) {\n return function(cm, pos) { doFold(cm, pos, {rangeFinder: rangeFinder, widget: widget}); };\n };\n\n // New-style interface\n CodeMirror.defineExtension(\"foldCode\", function(pos, options, force) {\n doFold(this, pos, options, force);\n });\n\n CodeMirror.defineExtension(\"isFolded\", function(pos) {\n var marks = this.findMarksAt(pos);\n for (var i = 0; i < marks.length; ++i)\n if (marks[i].__isFold) return true;\n });\n\n CodeMirror.commands.toggleFold = function(cm) {\n cm.foldCode(cm.getCursor());\n };\n CodeMirror.commands.fold = function(cm) {\n cm.foldCode(cm.getCursor(), null, \"fold\");\n };\n CodeMirror.commands.unfold = function(cm) {\n cm.foldCode(cm.getCursor(), null, \"unfold\");\n };\n CodeMirror.commands.foldAll = function(cm) {\n cm.operation(function() {\n for (var i = cm.firstLine(), e = cm.lastLine(); i <= e; i++)\n cm.foldCode(CodeMirror.Pos(i, 0), null, \"fold\");\n });\n };\n CodeMirror.commands.unfoldAll = function(cm) {\n cm.operation(function() {\n for (var i = cm.firstLine(), e = cm.lastLine(); i <= e; i++)\n cm.foldCode(CodeMirror.Pos(i, 0), null, \"unfold\");\n });\n };\n\n CodeMirror.registerHelper(\"fold\", \"combine\", function() {\n var funcs = Array.prototype.slice.call(arguments, 0);\n return function(cm, start) {\n for (var i = 0; i < funcs.length; ++i) {\n var found = funcs[i](cm, start);\n if (found) return found;\n }\n };\n });\n\n CodeMirror.registerHelper(\"fold\", \"auto\", function(cm, start) {\n var helpers = cm.getHelpers(start, \"fold\");\n for (var i = 0; i < helpers.length; i++) {\n var cur = helpers[i](cm, start);\n if (cur) return cur;\n }\n });\n\n var defaultOptions = {\n rangeFinder: CodeMirror.fold.auto,\n widget: \"\\u2194\",\n minFoldSize: 0,\n scanUp: false,\n clearOnEnter: true\n };\n\n CodeMirror.defineOption(\"foldOptions\", null);\n\n function getOption(cm, options, name) {\n if (options && options[name] !== undefined)\n return options[name];\n var editorOptions = cm.options.foldOptions;\n if (editorOptions && editorOptions[name] !== undefined)\n return editorOptions[name];\n return defaultOptions[name];\n }\n\n CodeMirror.defineExtension(\"foldOption\", function(options, name) {\n return getOption(this, options, name);\n });\n});\n","var fails = require('../internals/fails');\n\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n // Chrome 38 Symbol has incorrect toString conversion\n // eslint-disable-next-line no-undef\n return !String(Symbol());\n});\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toLength = require('../internals/to-length');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var toInteger = require('../internals/to-integer');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.github.io/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var hasOwnProperty = {}.hasOwnProperty;\n\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.6.5',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2020 Denis Pushkarev (zloirock.ru)'\n});\n","// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: https://codemirror.net/LICENSE\n\n// This is CodeMirror (https://codemirror.net), a code editor\n// implemented in JavaScript on top of the browser's DOM.\n//\n// You can find some technical background for some of the code below\n// at http://marijnhaverbeke.nl/blog/#cm-internals .\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = global || self, global.CodeMirror = factory());\n}(this, (function () { 'use strict';\n\n // Kludges for bugs and behavior differences that can't be feature\n // detected are enabled based on userAgent etc sniffing.\n var userAgent = navigator.userAgent;\n var platform = navigator.platform;\n\n var gecko = /gecko\\/\\d/i.test(userAgent);\n var ie_upto10 = /MSIE \\d/.test(userAgent);\n var ie_11up = /Trident\\/(?:[7-9]|\\d{2,})\\..*rv:(\\d+)/.exec(userAgent);\n var edge = /Edge\\/(\\d+)/.exec(userAgent);\n var ie = ie_upto10 || ie_11up || edge;\n var ie_version = ie && (ie_upto10 ? document.documentMode || 6 : +(edge || ie_11up)[1]);\n var webkit = !edge && /WebKit\\//.test(userAgent);\n var qtwebkit = webkit && /Qt\\/\\d+\\.\\d+/.test(userAgent);\n var chrome = !edge && /Chrome\\//.test(userAgent);\n var presto = /Opera\\//.test(userAgent);\n var safari = /Apple Computer/.test(navigator.vendor);\n var mac_geMountainLion = /Mac OS X 1\\d\\D([8-9]|\\d\\d)\\D/.test(userAgent);\n var phantom = /PhantomJS/.test(userAgent);\n\n var ios = !edge && /AppleWebKit/.test(userAgent) && /Mobile\\/\\w+/.test(userAgent);\n var android = /Android/.test(userAgent);\n // This is woefully incomplete. Suggestions for alternative methods welcome.\n var mobile = ios || android || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(userAgent);\n var mac = ios || /Mac/.test(platform);\n var chromeOS = /\\bCrOS\\b/.test(userAgent);\n var windows = /win/i.test(platform);\n\n var presto_version = presto && userAgent.match(/Version\\/(\\d*\\.\\d*)/);\n if (presto_version) { presto_version = Number(presto_version[1]); }\n if (presto_version && presto_version >= 15) { presto = false; webkit = true; }\n // Some browsers use the wrong event properties to signal cmd/ctrl on OS X\n var flipCtrlCmd = mac && (qtwebkit || presto && (presto_version == null || presto_version < 12.11));\n var captureRightClick = gecko || (ie && ie_version >= 9);\n\n function classTest(cls) { return new RegExp(\"(^|\\\\s)\" + cls + \"(?:$|\\\\s)\\\\s*\") }\n\n var rmClass = function(node, cls) {\n var current = node.className;\n var match = classTest(cls).exec(current);\n if (match) {\n var after = current.slice(match.index + match[0].length);\n node.className = current.slice(0, match.index) + (after ? match[1] + after : \"\");\n }\n };\n\n function removeChildren(e) {\n for (var count = e.childNodes.length; count > 0; --count)\n { e.removeChild(e.firstChild); }\n return e\n }\n\n function removeChildrenAndAdd(parent, e) {\n return removeChildren(parent).appendChild(e)\n }\n\n function elt(tag, content, className, style) {\n var e = document.createElement(tag);\n if (className) { e.className = className; }\n if (style) { e.style.cssText = style; }\n if (typeof content == \"string\") { e.appendChild(document.createTextNode(content)); }\n else if (content) { for (var i = 0; i < content.length; ++i) { e.appendChild(content[i]); } }\n return e\n }\n // wrapper for elt, which removes the elt from the accessibility tree\n function eltP(tag, content, className, style) {\n var e = elt(tag, content, className, style);\n e.setAttribute(\"role\", \"presentation\");\n return e\n }\n\n var range;\n if (document.createRange) { range = function(node, start, end, endNode) {\n var r = document.createRange();\n r.setEnd(endNode || node, end);\n r.setStart(node, start);\n return r\n }; }\n else { range = function(node, start, end) {\n var r = document.body.createTextRange();\n try { r.moveToElementText(node.parentNode); }\n catch(e) { return r }\n r.collapse(true);\n r.moveEnd(\"character\", end);\n r.moveStart(\"character\", start);\n return r\n }; }\n\n function contains(parent, child) {\n if (child.nodeType == 3) // Android browser always returns false when child is a textnode\n { child = child.parentNode; }\n if (parent.contains)\n { return parent.contains(child) }\n do {\n if (child.nodeType == 11) { child = child.host; }\n if (child == parent) { return true }\n } while (child = child.parentNode)\n }\n\n function activeElt() {\n // IE and Edge may throw an \"Unspecified Error\" when accessing document.activeElement.\n // IE < 10 will throw when accessed while the page is loading or in an iframe.\n // IE > 9 and Edge will throw when accessed in an iframe if document.body is unavailable.\n var activeElement;\n try {\n activeElement = document.activeElement;\n } catch(e) {\n activeElement = document.body || null;\n }\n while (activeElement && activeElement.shadowRoot && activeElement.shadowRoot.activeElement)\n { activeElement = activeElement.shadowRoot.activeElement; }\n return activeElement\n }\n\n function addClass(node, cls) {\n var current = node.className;\n if (!classTest(cls).test(current)) { node.className += (current ? \" \" : \"\") + cls; }\n }\n function joinClasses(a, b) {\n var as = a.split(\" \");\n for (var i = 0; i < as.length; i++)\n { if (as[i] && !classTest(as[i]).test(b)) { b += \" \" + as[i]; } }\n return b\n }\n\n var selectInput = function(node) { node.select(); };\n if (ios) // Mobile Safari apparently has a bug where select() is broken.\n { selectInput = function(node) { node.selectionStart = 0; node.selectionEnd = node.value.length; }; }\n else if (ie) // Suppress mysterious IE10 errors\n { selectInput = function(node) { try { node.select(); } catch(_e) {} }; }\n\n function bind(f) {\n var args = Array.prototype.slice.call(arguments, 1);\n return function(){return f.apply(null, args)}\n }\n\n function copyObj(obj, target, overwrite) {\n if (!target) { target = {}; }\n for (var prop in obj)\n { if (obj.hasOwnProperty(prop) && (overwrite !== false || !target.hasOwnProperty(prop)))\n { target[prop] = obj[prop]; } }\n return target\n }\n\n // Counts the column offset in a string, taking tabs into account.\n // Used mostly to find indentation.\n function countColumn(string, end, tabSize, startIndex, startValue) {\n if (end == null) {\n end = string.search(/[^\\s\\u00a0]/);\n if (end == -1) { end = string.length; }\n }\n for (var i = startIndex || 0, n = startValue || 0;;) {\n var nextTab = string.indexOf(\"\\t\", i);\n if (nextTab < 0 || nextTab >= end)\n { return n + (end - i) }\n n += nextTab - i;\n n += tabSize - (n % tabSize);\n i = nextTab + 1;\n }\n }\n\n var Delayed = function() {\n this.id = null;\n this.f = null;\n this.time = 0;\n this.handler = bind(this.onTimeout, this);\n };\n Delayed.prototype.onTimeout = function (self) {\n self.id = 0;\n if (self.time <= +new Date) {\n self.f();\n } else {\n setTimeout(self.handler, self.time - +new Date);\n }\n };\n Delayed.prototype.set = function (ms, f) {\n this.f = f;\n var time = +new Date + ms;\n if (!this.id || time < this.time) {\n clearTimeout(this.id);\n this.id = setTimeout(this.handler, ms);\n this.time = time;\n }\n };\n\n function indexOf(array, elt) {\n for (var i = 0; i < array.length; ++i)\n { if (array[i] == elt) { return i } }\n return -1\n }\n\n // Number of pixels added to scroller and sizer to hide scrollbar\n var scrollerGap = 50;\n\n // Returned or thrown by various protocols to signal 'I'm not\n // handling this'.\n var Pass = {toString: function(){return \"CodeMirror.Pass\"}};\n\n // Reused option objects for setSelection & friends\n var sel_dontScroll = {scroll: false}, sel_mouse = {origin: \"*mouse\"}, sel_move = {origin: \"+move\"};\n\n // The inverse of countColumn -- find the offset that corresponds to\n // a particular column.\n function findColumn(string, goal, tabSize) {\n for (var pos = 0, col = 0;;) {\n var nextTab = string.indexOf(\"\\t\", pos);\n if (nextTab == -1) { nextTab = string.length; }\n var skipped = nextTab - pos;\n if (nextTab == string.length || col + skipped >= goal)\n { return pos + Math.min(skipped, goal - col) }\n col += nextTab - pos;\n col += tabSize - (col % tabSize);\n pos = nextTab + 1;\n if (col >= goal) { return pos }\n }\n }\n\n var spaceStrs = [\"\"];\n function spaceStr(n) {\n while (spaceStrs.length <= n)\n { spaceStrs.push(lst(spaceStrs) + \" \"); }\n return spaceStrs[n]\n }\n\n function lst(arr) { return arr[arr.length-1] }\n\n function map(array, f) {\n var out = [];\n for (var i = 0; i < array.length; i++) { out[i] = f(array[i], i); }\n return out\n }\n\n function insertSorted(array, value, score) {\n var pos = 0, priority = score(value);\n while (pos < array.length && score(array[pos]) <= priority) { pos++; }\n array.splice(pos, 0, value);\n }\n\n function nothing() {}\n\n function createObj(base, props) {\n var inst;\n if (Object.create) {\n inst = Object.create(base);\n } else {\n nothing.prototype = base;\n inst = new nothing();\n }\n if (props) { copyObj(props, inst); }\n return inst\n }\n\n var nonASCIISingleCaseWordChar = /[\\u00df\\u0587\\u0590-\\u05f4\\u0600-\\u06ff\\u3040-\\u309f\\u30a0-\\u30ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\uac00-\\ud7af]/;\n function isWordCharBasic(ch) {\n return /\\w/.test(ch) || ch > \"\\x80\" &&\n (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch))\n }\n function isWordChar(ch, helper) {\n if (!helper) { return isWordCharBasic(ch) }\n if (helper.source.indexOf(\"\\\\w\") > -1 && isWordCharBasic(ch)) { return true }\n return helper.test(ch)\n }\n\n function isEmpty(obj) {\n for (var n in obj) { if (obj.hasOwnProperty(n) && obj[n]) { return false } }\n return true\n }\n\n // Extending unicode characters. A series of a non-extending char +\n // any number of extending chars is treated as a single unit as far\n // as editing and measuring is concerned. This is not fully correct,\n // since some scripts/fonts/browsers also treat other configurations\n // of code points as a group.\n var extendingChars = /[\\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]/;\n function isExtendingChar(ch) { return ch.charCodeAt(0) >= 768 && extendingChars.test(ch) }\n\n // Returns a number from the range [`0`; `str.length`] unless `pos` is outside that range.\n function skipExtendingChars(str, pos, dir) {\n while ((dir < 0 ? pos > 0 : pos < str.length) && isExtendingChar(str.charAt(pos))) { pos += dir; }\n return pos\n }\n\n // Returns the value from the range [`from`; `to`] that satisfies\n // `pred` and is closest to `from`. Assumes that at least `to`\n // satisfies `pred`. Supports `from` being greater than `to`.\n function findFirst(pred, from, to) {\n // At any point we are certain `to` satisfies `pred`, don't know\n // whether `from` does.\n var dir = from > to ? -1 : 1;\n for (;;) {\n if (from == to) { return from }\n var midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF);\n if (mid == from) { return pred(mid) ? from : to }\n if (pred(mid)) { to = mid; }\n else { from = mid + dir; }\n }\n }\n\n // BIDI HELPERS\n\n function iterateBidiSections(order, from, to, f) {\n if (!order) { return f(from, to, \"ltr\", 0) }\n var found = false;\n for (var i = 0; i < order.length; ++i) {\n var part = order[i];\n if (part.from < to && part.to > from || from == to && part.to == from) {\n f(Math.max(part.from, from), Math.min(part.to, to), part.level == 1 ? \"rtl\" : \"ltr\", i);\n found = true;\n }\n }\n if (!found) { f(from, to, \"ltr\"); }\n }\n\n var bidiOther = null;\n function getBidiPartAt(order, ch, sticky) {\n var found;\n bidiOther = null;\n for (var i = 0; i < order.length; ++i) {\n var cur = order[i];\n if (cur.from < ch && cur.to > ch) { return i }\n if (cur.to == ch) {\n if (cur.from != cur.to && sticky == \"before\") { found = i; }\n else { bidiOther = i; }\n }\n if (cur.from == ch) {\n if (cur.from != cur.to && sticky != \"before\") { found = i; }\n else { bidiOther = i; }\n }\n }\n return found != null ? found : bidiOther\n }\n\n // Bidirectional ordering algorithm\n // See http://unicode.org/reports/tr9/tr9-13.html for the algorithm\n // that this (partially) implements.\n\n // One-char codes used for character types:\n // L (L): Left-to-Right\n // R (R): Right-to-Left\n // r (AL): Right-to-Left Arabic\n // 1 (EN): European Number\n // + (ES): European Number Separator\n // % (ET): European Number Terminator\n // n (AN): Arabic Number\n // , (CS): Common Number Separator\n // m (NSM): Non-Spacing Mark\n // b (BN): Boundary Neutral\n // s (B): Paragraph Separator\n // t (S): Segment Separator\n // w (WS): Whitespace\n // N (ON): Other Neutrals\n\n // Returns null if characters are ordered as they appear\n // (left-to-right), or an array of sections ({from, to, level}\n // objects) in the order in which they occur visually.\n var bidiOrdering = (function() {\n // Character types for codepoints 0 to 0xff\n var lowTypes = \"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN\";\n // Character types for codepoints 0x600 to 0x6f9\n var arabicTypes = \"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111\";\n function charType(code) {\n if (code <= 0xf7) { return lowTypes.charAt(code) }\n else if (0x590 <= code && code <= 0x5f4) { return \"R\" }\n else if (0x600 <= code && code <= 0x6f9) { return arabicTypes.charAt(code - 0x600) }\n else if (0x6ee <= code && code <= 0x8ac) { return \"r\" }\n else if (0x2000 <= code && code <= 0x200b) { return \"w\" }\n else if (code == 0x200c) { return \"b\" }\n else { return \"L\" }\n }\n\n var bidiRE = /[\\u0590-\\u05f4\\u0600-\\u06ff\\u0700-\\u08ac]/;\n var isNeutral = /[stwN]/, isStrong = /[LRr]/, countsAsLeft = /[Lb1n]/, countsAsNum = /[1n]/;\n\n function BidiSpan(level, from, to) {\n this.level = level;\n this.from = from; this.to = to;\n }\n\n return function(str, direction) {\n var outerType = direction == \"ltr\" ? \"L\" : \"R\";\n\n if (str.length == 0 || direction == \"ltr\" && !bidiRE.test(str)) { return false }\n var len = str.length, types = [];\n for (var i = 0; i < len; ++i)\n { types.push(charType(str.charCodeAt(i))); }\n\n // W1. Examine each non-spacing mark (NSM) in the level run, and\n // change the type of the NSM to the type of the previous\n // character. If the NSM is at the start of the level run, it will\n // get the type of sor.\n for (var i$1 = 0, prev = outerType; i$1 < len; ++i$1) {\n var type = types[i$1];\n if (type == \"m\") { types[i$1] = prev; }\n else { prev = type; }\n }\n\n // W2. Search backwards from each instance of a European number\n // until the first strong type (R, L, AL, or sor) is found. If an\n // AL is found, change the type of the European number to Arabic\n // number.\n // W3. Change all ALs to R.\n for (var i$2 = 0, cur = outerType; i$2 < len; ++i$2) {\n var type$1 = types[i$2];\n if (type$1 == \"1\" && cur == \"r\") { types[i$2] = \"n\"; }\n else if (isStrong.test(type$1)) { cur = type$1; if (type$1 == \"r\") { types[i$2] = \"R\"; } }\n }\n\n // W4. A single European separator between two European numbers\n // changes to a European number. A single common separator between\n // two numbers of the same type changes to that type.\n for (var i$3 = 1, prev$1 = types[0]; i$3 < len - 1; ++i$3) {\n var type$2 = types[i$3];\n if (type$2 == \"+\" && prev$1 == \"1\" && types[i$3+1] == \"1\") { types[i$3] = \"1\"; }\n else if (type$2 == \",\" && prev$1 == types[i$3+1] &&\n (prev$1 == \"1\" || prev$1 == \"n\")) { types[i$3] = prev$1; }\n prev$1 = type$2;\n }\n\n // W5. A sequence of European terminators adjacent to European\n // numbers changes to all European numbers.\n // W6. Otherwise, separators and terminators change to Other\n // Neutral.\n for (var i$4 = 0; i$4 < len; ++i$4) {\n var type$3 = types[i$4];\n if (type$3 == \",\") { types[i$4] = \"N\"; }\n else if (type$3 == \"%\") {\n var end = (void 0);\n for (end = i$4 + 1; end < len && types[end] == \"%\"; ++end) {}\n var replace = (i$4 && types[i$4-1] == \"!\") || (end < len && types[end] == \"1\") ? \"1\" : \"N\";\n for (var j = i$4; j < end; ++j) { types[j] = replace; }\n i$4 = end - 1;\n }\n }\n\n // W7. Search backwards from each instance of a European number\n // until the first strong type (R, L, or sor) is found. If an L is\n // found, then change the type of the European number to L.\n for (var i$5 = 0, cur$1 = outerType; i$5 < len; ++i$5) {\n var type$4 = types[i$5];\n if (cur$1 == \"L\" && type$4 == \"1\") { types[i$5] = \"L\"; }\n else if (isStrong.test(type$4)) { cur$1 = type$4; }\n }\n\n // N1. A sequence of neutrals takes the direction of the\n // surrounding strong text if the text on both sides has the same\n // direction. European and Arabic numbers act as if they were R in\n // terms of their influence on neutrals. Start-of-level-run (sor)\n // and end-of-level-run (eor) are used at level run boundaries.\n // N2. Any remaining neutrals take the embedding direction.\n for (var i$6 = 0; i$6 < len; ++i$6) {\n if (isNeutral.test(types[i$6])) {\n var end$1 = (void 0);\n for (end$1 = i$6 + 1; end$1 < len && isNeutral.test(types[end$1]); ++end$1) {}\n var before = (i$6 ? types[i$6-1] : outerType) == \"L\";\n var after = (end$1 < len ? types[end$1] : outerType) == \"L\";\n var replace$1 = before == after ? (before ? \"L\" : \"R\") : outerType;\n for (var j$1 = i$6; j$1 < end$1; ++j$1) { types[j$1] = replace$1; }\n i$6 = end$1 - 1;\n }\n }\n\n // Here we depart from the documented algorithm, in order to avoid\n // building up an actual levels array. Since there are only three\n // levels (0, 1, 2) in an implementation that doesn't take\n // explicit embedding into account, we can build up the order on\n // the fly, without following the level-based algorithm.\n var order = [], m;\n for (var i$7 = 0; i$7 < len;) {\n if (countsAsLeft.test(types[i$7])) {\n var start = i$7;\n for (++i$7; i$7 < len && countsAsLeft.test(types[i$7]); ++i$7) {}\n order.push(new BidiSpan(0, start, i$7));\n } else {\n var pos = i$7, at = order.length, isRTL = direction == \"rtl\" ? 1 : 0;\n for (++i$7; i$7 < len && types[i$7] != \"L\"; ++i$7) {}\n for (var j$2 = pos; j$2 < i$7;) {\n if (countsAsNum.test(types[j$2])) {\n if (pos < j$2) { order.splice(at, 0, new BidiSpan(1, pos, j$2)); at += isRTL; }\n var nstart = j$2;\n for (++j$2; j$2 < i$7 && countsAsNum.test(types[j$2]); ++j$2) {}\n order.splice(at, 0, new BidiSpan(2, nstart, j$2));\n at += isRTL;\n pos = j$2;\n } else { ++j$2; }\n }\n if (pos < i$7) { order.splice(at, 0, new BidiSpan(1, pos, i$7)); }\n }\n }\n if (direction == \"ltr\") {\n if (order[0].level == 1 && (m = str.match(/^\\s+/))) {\n order[0].from = m[0].length;\n order.unshift(new BidiSpan(0, 0, m[0].length));\n }\n if (lst(order).level == 1 && (m = str.match(/\\s+$/))) {\n lst(order).to -= m[0].length;\n order.push(new BidiSpan(0, len - m[0].length, len));\n }\n }\n\n return direction == \"rtl\" ? order.reverse() : order\n }\n })();\n\n // Get the bidi ordering for the given line (and cache it). Returns\n // false for lines that are fully left-to-right, and an array of\n // BidiSpan objects otherwise.\n function getOrder(line, direction) {\n var order = line.order;\n if (order == null) { order = line.order = bidiOrdering(line.text, direction); }\n return order\n }\n\n // EVENT HANDLING\n\n // Lightweight event framework. on/off also work on DOM nodes,\n // registering native DOM handlers.\n\n var noHandlers = [];\n\n var on = function(emitter, type, f) {\n if (emitter.addEventListener) {\n emitter.addEventListener(type, f, false);\n } else if (emitter.attachEvent) {\n emitter.attachEvent(\"on\" + type, f);\n } else {\n var map = emitter._handlers || (emitter._handlers = {});\n map[type] = (map[type] || noHandlers).concat(f);\n }\n };\n\n function getHandlers(emitter, type) {\n return emitter._handlers && emitter._handlers[type] || noHandlers\n }\n\n function off(emitter, type, f) {\n if (emitter.removeEventListener) {\n emitter.removeEventListener(type, f, false);\n } else if (emitter.detachEvent) {\n emitter.detachEvent(\"on\" + type, f);\n } else {\n var map = emitter._handlers, arr = map && map[type];\n if (arr) {\n var index = indexOf(arr, f);\n if (index > -1)\n { map[type] = arr.slice(0, index).concat(arr.slice(index + 1)); }\n }\n }\n }\n\n function signal(emitter, type /*, values...*/) {\n var handlers = getHandlers(emitter, type);\n if (!handlers.length) { return }\n var args = Array.prototype.slice.call(arguments, 2);\n for (var i = 0; i < handlers.length; ++i) { handlers[i].apply(null, args); }\n }\n\n // The DOM events that CodeMirror handles can be overridden by\n // registering a (non-DOM) handler on the editor for the event name,\n // and preventDefault-ing the event in that handler.\n function signalDOMEvent(cm, e, override) {\n if (typeof e == \"string\")\n { e = {type: e, preventDefault: function() { this.defaultPrevented = true; }}; }\n signal(cm, override || e.type, cm, e);\n return e_defaultPrevented(e) || e.codemirrorIgnore\n }\n\n function signalCursorActivity(cm) {\n var arr = cm._handlers && cm._handlers.cursorActivity;\n if (!arr) { return }\n var set = cm.curOp.cursorActivityHandlers || (cm.curOp.cursorActivityHandlers = []);\n for (var i = 0; i < arr.length; ++i) { if (indexOf(set, arr[i]) == -1)\n { set.push(arr[i]); } }\n }\n\n function hasHandler(emitter, type) {\n return getHandlers(emitter, type).length > 0\n }\n\n // Add on and off methods to a constructor's prototype, to make\n // registering events on such objects more convenient.\n function eventMixin(ctor) {\n ctor.prototype.on = function(type, f) {on(this, type, f);};\n ctor.prototype.off = function(type, f) {off(this, type, f);};\n }\n\n // Due to the fact that we still support jurassic IE versions, some\n // compatibility wrappers are needed.\n\n function e_preventDefault(e) {\n if (e.preventDefault) { e.preventDefault(); }\n else { e.returnValue = false; }\n }\n function e_stopPropagation(e) {\n if (e.stopPropagation) { e.stopPropagation(); }\n else { e.cancelBubble = true; }\n }\n function e_defaultPrevented(e) {\n return e.defaultPrevented != null ? e.defaultPrevented : e.returnValue == false\n }\n function e_stop(e) {e_preventDefault(e); e_stopPropagation(e);}\n\n function e_target(e) {return e.target || e.srcElement}\n function e_button(e) {\n var b = e.which;\n if (b == null) {\n if (e.button & 1) { b = 1; }\n else if (e.button & 2) { b = 3; }\n else if (e.button & 4) { b = 2; }\n }\n if (mac && e.ctrlKey && b == 1) { b = 3; }\n return b\n }\n\n // Detect drag-and-drop\n var dragAndDrop = function() {\n // There is *some* kind of drag-and-drop support in IE6-8, but I\n // couldn't get it to work yet.\n if (ie && ie_version < 9) { return false }\n var div = elt('div');\n return \"draggable\" in div || \"dragDrop\" in div\n }();\n\n var zwspSupported;\n function zeroWidthElement(measure) {\n if (zwspSupported == null) {\n var test = elt(\"span\", \"\\u200b\");\n removeChildrenAndAdd(measure, elt(\"span\", [test, document.createTextNode(\"x\")]));\n if (measure.firstChild.offsetHeight != 0)\n { zwspSupported = test.offsetWidth <= 1 && test.offsetHeight > 2 && !(ie && ie_version < 8); }\n }\n var node = zwspSupported ? elt(\"span\", \"\\u200b\") :\n elt(\"span\", \"\\u00a0\", null, \"display: inline-block; width: 1px; margin-right: -1px\");\n node.setAttribute(\"cm-text\", \"\");\n return node\n }\n\n // Feature-detect IE's crummy client rect reporting for bidi text\n var badBidiRects;\n function hasBadBidiRects(measure) {\n if (badBidiRects != null) { return badBidiRects }\n var txt = removeChildrenAndAdd(measure, document.createTextNode(\"A\\u062eA\"));\n var r0 = range(txt, 0, 1).getBoundingClientRect();\n var r1 = range(txt, 1, 2).getBoundingClientRect();\n removeChildren(measure);\n if (!r0 || r0.left == r0.right) { return false } // Safari returns null in some cases (#2780)\n return badBidiRects = (r1.right - r0.right < 3)\n }\n\n // See if \"\".split is the broken IE version, if so, provide an\n // alternative way to split lines.\n var splitLinesAuto = \"\\n\\nb\".split(/\\n/).length != 3 ? function (string) {\n var pos = 0, result = [], l = string.length;\n while (pos <= l) {\n var nl = string.indexOf(\"\\n\", pos);\n if (nl == -1) { nl = string.length; }\n var line = string.slice(pos, string.charAt(nl - 1) == \"\\r\" ? nl - 1 : nl);\n var rt = line.indexOf(\"\\r\");\n if (rt != -1) {\n result.push(line.slice(0, rt));\n pos += rt + 1;\n } else {\n result.push(line);\n pos = nl + 1;\n }\n }\n return result\n } : function (string) { return string.split(/\\r\\n?|\\n/); };\n\n var hasSelection = window.getSelection ? function (te) {\n try { return te.selectionStart != te.selectionEnd }\n catch(e) { return false }\n } : function (te) {\n var range;\n try {range = te.ownerDocument.selection.createRange();}\n catch(e) {}\n if (!range || range.parentElement() != te) { return false }\n return range.compareEndPoints(\"StartToEnd\", range) != 0\n };\n\n var hasCopyEvent = (function () {\n var e = elt(\"div\");\n if (\"oncopy\" in e) { return true }\n e.setAttribute(\"oncopy\", \"return;\");\n return typeof e.oncopy == \"function\"\n })();\n\n var badZoomedRects = null;\n function hasBadZoomedRects(measure) {\n if (badZoomedRects != null) { return badZoomedRects }\n var node = removeChildrenAndAdd(measure, elt(\"span\", \"x\"));\n var normal = node.getBoundingClientRect();\n var fromRange = range(node, 0, 1).getBoundingClientRect();\n return badZoomedRects = Math.abs(normal.left - fromRange.left) > 1\n }\n\n // Known modes, by name and by MIME\n var modes = {}, mimeModes = {};\n\n // Extra arguments are stored as the mode's dependencies, which is\n // used by (legacy) mechanisms like loadmode.js to automatically\n // load a mode. (Preferred mechanism is the require/define calls.)\n function defineMode(name, mode) {\n if (arguments.length > 2)\n { mode.dependencies = Array.prototype.slice.call(arguments, 2); }\n modes[name] = mode;\n }\n\n function defineMIME(mime, spec) {\n mimeModes[mime] = spec;\n }\n\n // Given a MIME type, a {name, ...options} config object, or a name\n // string, return a mode config object.\n function resolveMode(spec) {\n if (typeof spec == \"string\" && mimeModes.hasOwnProperty(spec)) {\n spec = mimeModes[spec];\n } else if (spec && typeof spec.name == \"string\" && mimeModes.hasOwnProperty(spec.name)) {\n var found = mimeModes[spec.name];\n if (typeof found == \"string\") { found = {name: found}; }\n spec = createObj(found, spec);\n spec.name = found.name;\n } else if (typeof spec == \"string\" && /^[\\w\\-]+\\/[\\w\\-]+\\+xml$/.test(spec)) {\n return resolveMode(\"application/xml\")\n } else if (typeof spec == \"string\" && /^[\\w\\-]+\\/[\\w\\-]+\\+json$/.test(spec)) {\n return resolveMode(\"application/json\")\n }\n if (typeof spec == \"string\") { return {name: spec} }\n else { return spec || {name: \"null\"} }\n }\n\n // Given a mode spec (anything that resolveMode accepts), find and\n // initialize an actual mode object.\n function getMode(options, spec) {\n spec = resolveMode(spec);\n var mfactory = modes[spec.name];\n if (!mfactory) { return getMode(options, \"text/plain\") }\n var modeObj = mfactory(options, spec);\n if (modeExtensions.hasOwnProperty(spec.name)) {\n var exts = modeExtensions[spec.name];\n for (var prop in exts) {\n if (!exts.hasOwnProperty(prop)) { continue }\n if (modeObj.hasOwnProperty(prop)) { modeObj[\"_\" + prop] = modeObj[prop]; }\n modeObj[prop] = exts[prop];\n }\n }\n modeObj.name = spec.name;\n if (spec.helperType) { modeObj.helperType = spec.helperType; }\n if (spec.modeProps) { for (var prop$1 in spec.modeProps)\n { modeObj[prop$1] = spec.modeProps[prop$1]; } }\n\n return modeObj\n }\n\n // This can be used to attach properties to mode objects from\n // outside the actual mode definition.\n var modeExtensions = {};\n function extendMode(mode, properties) {\n var exts = modeExtensions.hasOwnProperty(mode) ? modeExtensions[mode] : (modeExtensions[mode] = {});\n copyObj(properties, exts);\n }\n\n function copyState(mode, state) {\n if (state === true) { return state }\n if (mode.copyState) { return mode.copyState(state) }\n var nstate = {};\n for (var n in state) {\n var val = state[n];\n if (val instanceof Array) { val = val.concat([]); }\n nstate[n] = val;\n }\n return nstate\n }\n\n // Given a mode and a state (for that mode), find the inner mode and\n // state at the position that the state refers to.\n function innerMode(mode, state) {\n var info;\n while (mode.innerMode) {\n info = mode.innerMode(state);\n if (!info || info.mode == mode) { break }\n state = info.state;\n mode = info.mode;\n }\n return info || {mode: mode, state: state}\n }\n\n function startState(mode, a1, a2) {\n return mode.startState ? mode.startState(a1, a2) : true\n }\n\n // STRING STREAM\n\n // Fed to the mode parsers, provides helper functions to make\n // parsers more succinct.\n\n var StringStream = function(string, tabSize, lineOracle) {\n this.pos = this.start = 0;\n this.string = string;\n this.tabSize = tabSize || 8;\n this.lastColumnPos = this.lastColumnValue = 0;\n this.lineStart = 0;\n this.lineOracle = lineOracle;\n };\n\n StringStream.prototype.eol = function () {return this.pos >= this.string.length};\n StringStream.prototype.sol = function () {return this.pos == this.lineStart};\n StringStream.prototype.peek = function () {return this.string.charAt(this.pos) || undefined};\n StringStream.prototype.next = function () {\n if (this.pos < this.string.length)\n { return this.string.charAt(this.pos++) }\n };\n StringStream.prototype.eat = function (match) {\n var ch = this.string.charAt(this.pos);\n var ok;\n if (typeof match == \"string\") { ok = ch == match; }\n else { ok = ch && (match.test ? match.test(ch) : match(ch)); }\n if (ok) {++this.pos; return ch}\n };\n StringStream.prototype.eatWhile = function (match) {\n var start = this.pos;\n while (this.eat(match)){}\n return this.pos > start\n };\n StringStream.prototype.eatSpace = function () {\n var start = this.pos;\n while (/[\\s\\u00a0]/.test(this.string.charAt(this.pos))) { ++this.pos; }\n return this.pos > start\n };\n StringStream.prototype.skipToEnd = function () {this.pos = this.string.length;};\n StringStream.prototype.skipTo = function (ch) {\n var found = this.string.indexOf(ch, this.pos);\n if (found > -1) {this.pos = found; return true}\n };\n StringStream.prototype.backUp = function (n) {this.pos -= n;};\n StringStream.prototype.column = function () {\n if (this.lastColumnPos < this.start) {\n this.lastColumnValue = countColumn(this.string, this.start, this.tabSize, this.lastColumnPos, this.lastColumnValue);\n this.lastColumnPos = this.start;\n }\n return this.lastColumnValue - (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0)\n };\n StringStream.prototype.indentation = function () {\n return countColumn(this.string, null, this.tabSize) -\n (this.lineStart ? countColumn(this.string, this.lineStart, this.tabSize) : 0)\n };\n StringStream.prototype.match = function (pattern, consume, caseInsensitive) {\n if (typeof pattern == \"string\") {\n var cased = function (str) { return caseInsensitive ? str.toLowerCase() : str; };\n var substr = this.string.substr(this.pos, pattern.length);\n if (cased(substr) == cased(pattern)) {\n if (consume !== false) { this.pos += pattern.length; }\n return true\n }\n } else {\n var match = this.string.slice(this.pos).match(pattern);\n if (match && match.index > 0) { return null }\n if (match && consume !== false) { this.pos += match[0].length; }\n return match\n }\n };\n StringStream.prototype.current = function (){return this.string.slice(this.start, this.pos)};\n StringStream.prototype.hideFirstChars = function (n, inner) {\n this.lineStart += n;\n try { return inner() }\n finally { this.lineStart -= n; }\n };\n StringStream.prototype.lookAhead = function (n) {\n var oracle = this.lineOracle;\n return oracle && oracle.lookAhead(n)\n };\n StringStream.prototype.baseToken = function () {\n var oracle = this.lineOracle;\n return oracle && oracle.baseToken(this.pos)\n };\n\n // Find the line object corresponding to the given line number.\n function getLine(doc, n) {\n n -= doc.first;\n if (n < 0 || n >= doc.size) { throw new Error(\"There is no line \" + (n + doc.first) + \" in the document.\") }\n var chunk = doc;\n while (!chunk.lines) {\n for (var i = 0;; ++i) {\n var child = chunk.children[i], sz = child.chunkSize();\n if (n < sz) { chunk = child; break }\n n -= sz;\n }\n }\n return chunk.lines[n]\n }\n\n // Get the part of a document between two positions, as an array of\n // strings.\n function getBetween(doc, start, end) {\n var out = [], n = start.line;\n doc.iter(start.line, end.line + 1, function (line) {\n var text = line.text;\n if (n == end.line) { text = text.slice(0, end.ch); }\n if (n == start.line) { text = text.slice(start.ch); }\n out.push(text);\n ++n;\n });\n return out\n }\n // Get the lines between from and to, as array of strings.\n function getLines(doc, from, to) {\n var out = [];\n doc.iter(from, to, function (line) { out.push(line.text); }); // iter aborts when callback returns truthy value\n return out\n }\n\n // Update the height of a line, propagating the height change\n // upwards to parent nodes.\n function updateLineHeight(line, height) {\n var diff = height - line.height;\n if (diff) { for (var n = line; n; n = n.parent) { n.height += diff; } }\n }\n\n // Given a line object, find its line number by walking up through\n // its parent links.\n function lineNo(line) {\n if (line.parent == null) { return null }\n var cur = line.parent, no = indexOf(cur.lines, line);\n for (var chunk = cur.parent; chunk; cur = chunk, chunk = chunk.parent) {\n for (var i = 0;; ++i) {\n if (chunk.children[i] == cur) { break }\n no += chunk.children[i].chunkSize();\n }\n }\n return no + cur.first\n }\n\n // Find the line at the given vertical position, using the height\n // information in the document tree.\n function lineAtHeight(chunk, h) {\n var n = chunk.first;\n outer: do {\n for (var i$1 = 0; i$1 < chunk.children.length; ++i$1) {\n var child = chunk.children[i$1], ch = child.height;\n if (h < ch) { chunk = child; continue outer }\n h -= ch;\n n += child.chunkSize();\n }\n return n\n } while (!chunk.lines)\n var i = 0;\n for (; i < chunk.lines.length; ++i) {\n var line = chunk.lines[i], lh = line.height;\n if (h < lh) { break }\n h -= lh;\n }\n return n + i\n }\n\n function isLine(doc, l) {return l >= doc.first && l < doc.first + doc.size}\n\n function lineNumberFor(options, i) {\n return String(options.lineNumberFormatter(i + options.firstLineNumber))\n }\n\n // A Pos instance represents a position within the text.\n function Pos(line, ch, sticky) {\n if ( sticky === void 0 ) sticky = null;\n\n if (!(this instanceof Pos)) { return new Pos(line, ch, sticky) }\n this.line = line;\n this.ch = ch;\n this.sticky = sticky;\n }\n\n // Compare two positions, return 0 if they are the same, a negative\n // number when a is less, and a positive number otherwise.\n function cmp(a, b) { return a.line - b.line || a.ch - b.ch }\n\n function equalCursorPos(a, b) { return a.sticky == b.sticky && cmp(a, b) == 0 }\n\n function copyPos(x) {return Pos(x.line, x.ch)}\n function maxPos(a, b) { return cmp(a, b) < 0 ? b : a }\n function minPos(a, b) { return cmp(a, b) < 0 ? a : b }\n\n // Most of the external API clips given positions to make sure they\n // actually exist within the document.\n function clipLine(doc, n) {return Math.max(doc.first, Math.min(n, doc.first + doc.size - 1))}\n function clipPos(doc, pos) {\n if (pos.line < doc.first) { return Pos(doc.first, 0) }\n var last = doc.first + doc.size - 1;\n if (pos.line > last) { return Pos(last, getLine(doc, last).text.length) }\n return clipToLen(pos, getLine(doc, pos.line).text.length)\n }\n function clipToLen(pos, linelen) {\n var ch = pos.ch;\n if (ch == null || ch > linelen) { return Pos(pos.line, linelen) }\n else if (ch < 0) { return Pos(pos.line, 0) }\n else { return pos }\n }\n function clipPosArray(doc, array) {\n var out = [];\n for (var i = 0; i < array.length; i++) { out[i] = clipPos(doc, array[i]); }\n return out\n }\n\n var SavedContext = function(state, lookAhead) {\n this.state = state;\n this.lookAhead = lookAhead;\n };\n\n var Context = function(doc, state, line, lookAhead) {\n this.state = state;\n this.doc = doc;\n this.line = line;\n this.maxLookAhead = lookAhead || 0;\n this.baseTokens = null;\n this.baseTokenPos = 1;\n };\n\n Context.prototype.lookAhead = function (n) {\n var line = this.doc.getLine(this.line + n);\n if (line != null && n > this.maxLookAhead) { this.maxLookAhead = n; }\n return line\n };\n\n Context.prototype.baseToken = function (n) {\n if (!this.baseTokens) { return null }\n while (this.baseTokens[this.baseTokenPos] <= n)\n { this.baseTokenPos += 2; }\n var type = this.baseTokens[this.baseTokenPos + 1];\n return {type: type && type.replace(/( |^)overlay .*/, \"\"),\n size: this.baseTokens[this.baseTokenPos] - n}\n };\n\n Context.prototype.nextLine = function () {\n this.line++;\n if (this.maxLookAhead > 0) { this.maxLookAhead--; }\n };\n\n Context.fromSaved = function (doc, saved, line) {\n if (saved instanceof SavedContext)\n { return new Context(doc, copyState(doc.mode, saved.state), line, saved.lookAhead) }\n else\n { return new Context(doc, copyState(doc.mode, saved), line) }\n };\n\n Context.prototype.save = function (copy) {\n var state = copy !== false ? copyState(this.doc.mode, this.state) : this.state;\n return this.maxLookAhead > 0 ? new SavedContext(state, this.maxLookAhead) : state\n };\n\n\n // Compute a style array (an array starting with a mode generation\n // -- for invalidation -- followed by pairs of end positions and\n // style strings), which is used to highlight the tokens on the\n // line.\n function highlightLine(cm, line, context, forceToEnd) {\n // A styles array always starts with a number identifying the\n // mode/overlays that it is based on (for easy invalidation).\n var st = [cm.state.modeGen], lineClasses = {};\n // Compute the base array of styles\n runMode(cm, line.text, cm.doc.mode, context, function (end, style) { return st.push(end, style); },\n lineClasses, forceToEnd);\n var state = context.state;\n\n // Run overlays, adjust style array.\n var loop = function ( o ) {\n context.baseTokens = st;\n var overlay = cm.state.overlays[o], i = 1, at = 0;\n context.state = true;\n runMode(cm, line.text, overlay.mode, context, function (end, style) {\n var start = i;\n // Ensure there's a token end at the current position, and that i points at it\n while (at < end) {\n var i_end = st[i];\n if (i_end > end)\n { st.splice(i, 1, end, st[i+1], i_end); }\n i += 2;\n at = Math.min(end, i_end);\n }\n if (!style) { return }\n if (overlay.opaque) {\n st.splice(start, i - start, end, \"overlay \" + style);\n i = start + 2;\n } else {\n for (; start < i; start += 2) {\n var cur = st[start+1];\n st[start+1] = (cur ? cur + \" \" : \"\") + \"overlay \" + style;\n }\n }\n }, lineClasses);\n context.state = state;\n context.baseTokens = null;\n context.baseTokenPos = 1;\n };\n\n for (var o = 0; o < cm.state.overlays.length; ++o) loop( o );\n\n return {styles: st, classes: lineClasses.bgClass || lineClasses.textClass ? lineClasses : null}\n }\n\n function getLineStyles(cm, line, updateFrontier) {\n if (!line.styles || line.styles[0] != cm.state.modeGen) {\n var context = getContextBefore(cm, lineNo(line));\n var resetState = line.text.length > cm.options.maxHighlightLength && copyState(cm.doc.mode, context.state);\n var result = highlightLine(cm, line, context);\n if (resetState) { context.state = resetState; }\n line.stateAfter = context.save(!resetState);\n line.styles = result.styles;\n if (result.classes) { line.styleClasses = result.classes; }\n else if (line.styleClasses) { line.styleClasses = null; }\n if (updateFrontier === cm.doc.highlightFrontier)\n { cm.doc.modeFrontier = Math.max(cm.doc.modeFrontier, ++cm.doc.highlightFrontier); }\n }\n return line.styles\n }\n\n function getContextBefore(cm, n, precise) {\n var doc = cm.doc, display = cm.display;\n if (!doc.mode.startState) { return new Context(doc, true, n) }\n var start = findStartLine(cm, n, precise);\n var saved = start > doc.first && getLine(doc, start - 1).stateAfter;\n var context = saved ? Context.fromSaved(doc, saved, start) : new Context(doc, startState(doc.mode), start);\n\n doc.iter(start, n, function (line) {\n processLine(cm, line.text, context);\n var pos = context.line;\n line.stateAfter = pos == n - 1 || pos % 5 == 0 || pos >= display.viewFrom && pos < display.viewTo ? context.save() : null;\n context.nextLine();\n });\n if (precise) { doc.modeFrontier = context.line; }\n return context\n }\n\n // Lightweight form of highlight -- proceed over this line and\n // update state, but don't save a style array. Used for lines that\n // aren't currently visible.\n function processLine(cm, text, context, startAt) {\n var mode = cm.doc.mode;\n var stream = new StringStream(text, cm.options.tabSize, context);\n stream.start = stream.pos = startAt || 0;\n if (text == \"\") { callBlankLine(mode, context.state); }\n while (!stream.eol()) {\n readToken(mode, stream, context.state);\n stream.start = stream.pos;\n }\n }\n\n function callBlankLine(mode, state) {\n if (mode.blankLine) { return mode.blankLine(state) }\n if (!mode.innerMode) { return }\n var inner = innerMode(mode, state);\n if (inner.mode.blankLine) { return inner.mode.blankLine(inner.state) }\n }\n\n function readToken(mode, stream, state, inner) {\n for (var i = 0; i < 10; i++) {\n if (inner) { inner[0] = innerMode(mode, state).mode; }\n var style = mode.token(stream, state);\n if (stream.pos > stream.start) { return style }\n }\n throw new Error(\"Mode \" + mode.name + \" failed to advance stream.\")\n }\n\n var Token = function(stream, type, state) {\n this.start = stream.start; this.end = stream.pos;\n this.string = stream.current();\n this.type = type || null;\n this.state = state;\n };\n\n // Utility for getTokenAt and getLineTokens\n function takeToken(cm, pos, precise, asArray) {\n var doc = cm.doc, mode = doc.mode, style;\n pos = clipPos(doc, pos);\n var line = getLine(doc, pos.line), context = getContextBefore(cm, pos.line, precise);\n var stream = new StringStream(line.text, cm.options.tabSize, context), tokens;\n if (asArray) { tokens = []; }\n while ((asArray || stream.pos < pos.ch) && !stream.eol()) {\n stream.start = stream.pos;\n style = readToken(mode, stream, context.state);\n if (asArray) { tokens.push(new Token(stream, style, copyState(doc.mode, context.state))); }\n }\n return asArray ? tokens : new Token(stream, style, context.state)\n }\n\n function extractLineClasses(type, output) {\n if (type) { for (;;) {\n var lineClass = type.match(/(?:^|\\s+)line-(background-)?(\\S+)/);\n if (!lineClass) { break }\n type = type.slice(0, lineClass.index) + type.slice(lineClass.index + lineClass[0].length);\n var prop = lineClass[1] ? \"bgClass\" : \"textClass\";\n if (output[prop] == null)\n { output[prop] = lineClass[2]; }\n else if (!(new RegExp(\"(?:^|\\\\s)\" + lineClass[2] + \"(?:$|\\\\s)\")).test(output[prop]))\n { output[prop] += \" \" + lineClass[2]; }\n } }\n return type\n }\n\n // Run the given mode's parser over a line, calling f for each token.\n function runMode(cm, text, mode, context, f, lineClasses, forceToEnd) {\n var flattenSpans = mode.flattenSpans;\n if (flattenSpans == null) { flattenSpans = cm.options.flattenSpans; }\n var curStart = 0, curStyle = null;\n var stream = new StringStream(text, cm.options.tabSize, context), style;\n var inner = cm.options.addModeClass && [null];\n if (text == \"\") { extractLineClasses(callBlankLine(mode, context.state), lineClasses); }\n while (!stream.eol()) {\n if (stream.pos > cm.options.maxHighlightLength) {\n flattenSpans = false;\n if (forceToEnd) { processLine(cm, text, context, stream.pos); }\n stream.pos = text.length;\n style = null;\n } else {\n style = extractLineClasses(readToken(mode, stream, context.state, inner), lineClasses);\n }\n if (inner) {\n var mName = inner[0].name;\n if (mName) { style = \"m-\" + (style ? mName + \" \" + style : mName); }\n }\n if (!flattenSpans || curStyle != style) {\n while (curStart < stream.start) {\n curStart = Math.min(stream.start, curStart + 5000);\n f(curStart, curStyle);\n }\n curStyle = style;\n }\n stream.start = stream.pos;\n }\n while (curStart < stream.pos) {\n // Webkit seems to refuse to render text nodes longer than 57444\n // characters, and returns inaccurate measurements in nodes\n // starting around 5000 chars.\n var pos = Math.min(stream.pos, curStart + 5000);\n f(pos, curStyle);\n curStart = pos;\n }\n }\n\n // Finds the line to start with when starting a parse. Tries to\n // find a line with a stateAfter, so that it can start with a\n // valid state. If that fails, it returns the line with the\n // smallest indentation, which tends to need the least context to\n // parse correctly.\n function findStartLine(cm, n, precise) {\n var minindent, minline, doc = cm.doc;\n var lim = precise ? -1 : n - (cm.doc.mode.innerMode ? 1000 : 100);\n for (var search = n; search > lim; --search) {\n if (search <= doc.first) { return doc.first }\n var line = getLine(doc, search - 1), after = line.stateAfter;\n if (after && (!precise || search + (after instanceof SavedContext ? after.lookAhead : 0) <= doc.modeFrontier))\n { return search }\n var indented = countColumn(line.text, null, cm.options.tabSize);\n if (minline == null || minindent > indented) {\n minline = search - 1;\n minindent = indented;\n }\n }\n return minline\n }\n\n function retreatFrontier(doc, n) {\n doc.modeFrontier = Math.min(doc.modeFrontier, n);\n if (doc.highlightFrontier < n - 10) { return }\n var start = doc.first;\n for (var line = n - 1; line > start; line--) {\n var saved = getLine(doc, line).stateAfter;\n // change is on 3\n // state on line 1 looked ahead 2 -- so saw 3\n // test 1 + 2 < 3 should cover this\n if (saved && (!(saved instanceof SavedContext) || line + saved.lookAhead < n)) {\n start = line + 1;\n break\n }\n }\n doc.highlightFrontier = Math.min(doc.highlightFrontier, start);\n }\n\n // Optimize some code when these features are not used.\n var sawReadOnlySpans = false, sawCollapsedSpans = false;\n\n function seeReadOnlySpans() {\n sawReadOnlySpans = true;\n }\n\n function seeCollapsedSpans() {\n sawCollapsedSpans = true;\n }\n\n // TEXTMARKER SPANS\n\n function MarkedSpan(marker, from, to) {\n this.marker = marker;\n this.from = from; this.to = to;\n }\n\n // Search an array of spans for a span matching the given marker.\n function getMarkedSpanFor(spans, marker) {\n if (spans) { for (var i = 0; i < spans.length; ++i) {\n var span = spans[i];\n if (span.marker == marker) { return span }\n } }\n }\n // Remove a span from an array, returning undefined if no spans are\n // left (we don't store arrays for lines without spans).\n function removeMarkedSpan(spans, span) {\n var r;\n for (var i = 0; i < spans.length; ++i)\n { if (spans[i] != span) { (r || (r = [])).push(spans[i]); } }\n return r\n }\n // Add a span to a line.\n function addMarkedSpan(line, span) {\n line.markedSpans = line.markedSpans ? line.markedSpans.concat([span]) : [span];\n span.marker.attachLine(line);\n }\n\n // Used for the algorithm that adjusts markers for a change in the\n // document. These functions cut an array of spans at a given\n // character position, returning an array of remaining chunks (or\n // undefined if nothing remains).\n function markedSpansBefore(old, startCh, isInsert) {\n var nw;\n if (old) { for (var i = 0; i < old.length; ++i) {\n var span = old[i], marker = span.marker;\n var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= startCh : span.from < startCh);\n if (startsBefore || span.from == startCh && marker.type == \"bookmark\" && (!isInsert || !span.marker.insertLeft)) {\n var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= startCh : span.to > startCh)\n ;(nw || (nw = [])).push(new MarkedSpan(marker, span.from, endsAfter ? null : span.to));\n }\n } }\n return nw\n }\n function markedSpansAfter(old, endCh, isInsert) {\n var nw;\n if (old) { for (var i = 0; i < old.length; ++i) {\n var span = old[i], marker = span.marker;\n var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= endCh : span.to > endCh);\n if (endsAfter || span.from == endCh && marker.type == \"bookmark\" && (!isInsert || span.marker.insertLeft)) {\n var startsBefore = span.from == null || (marker.inclusiveLeft ? span.from <= endCh : span.from < endCh)\n ;(nw || (nw = [])).push(new MarkedSpan(marker, startsBefore ? null : span.from - endCh,\n span.to == null ? null : span.to - endCh));\n }\n } }\n return nw\n }\n\n // Given a change object, compute the new set of marker spans that\n // cover the line in which the change took place. Removes spans\n // entirely within the change, reconnects spans belonging to the\n // same marker that appear on both sides of the change, and cuts off\n // spans partially within the change. Returns an array of span\n // arrays with one element for each line in (after) the change.\n function stretchSpansOverChange(doc, change) {\n if (change.full) { return null }\n var oldFirst = isLine(doc, change.from.line) && getLine(doc, change.from.line).markedSpans;\n var oldLast = isLine(doc, change.to.line) && getLine(doc, change.to.line).markedSpans;\n if (!oldFirst && !oldLast) { return null }\n\n var startCh = change.from.ch, endCh = change.to.ch, isInsert = cmp(change.from, change.to) == 0;\n // Get the spans that 'stick out' on both sides\n var first = markedSpansBefore(oldFirst, startCh, isInsert);\n var last = markedSpansAfter(oldLast, endCh, isInsert);\n\n // Next, merge those two ends\n var sameLine = change.text.length == 1, offset = lst(change.text).length + (sameLine ? startCh : 0);\n if (first) {\n // Fix up .to properties of first\n for (var i = 0; i < first.length; ++i) {\n var span = first[i];\n if (span.to == null) {\n var found = getMarkedSpanFor(last, span.marker);\n if (!found) { span.to = startCh; }\n else if (sameLine) { span.to = found.to == null ? null : found.to + offset; }\n }\n }\n }\n if (last) {\n // Fix up .from in last (or move them into first in case of sameLine)\n for (var i$1 = 0; i$1 < last.length; ++i$1) {\n var span$1 = last[i$1];\n if (span$1.to != null) { span$1.to += offset; }\n if (span$1.from == null) {\n var found$1 = getMarkedSpanFor(first, span$1.marker);\n if (!found$1) {\n span$1.from = offset;\n if (sameLine) { (first || (first = [])).push(span$1); }\n }\n } else {\n span$1.from += offset;\n if (sameLine) { (first || (first = [])).push(span$1); }\n }\n }\n }\n // Make sure we didn't create any zero-length spans\n if (first) { first = clearEmptySpans(first); }\n if (last && last != first) { last = clearEmptySpans(last); }\n\n var newMarkers = [first];\n if (!sameLine) {\n // Fill gap with whole-line-spans\n var gap = change.text.length - 2, gapMarkers;\n if (gap > 0 && first)\n { for (var i$2 = 0; i$2 < first.length; ++i$2)\n { if (first[i$2].to == null)\n { (gapMarkers || (gapMarkers = [])).push(new MarkedSpan(first[i$2].marker, null, null)); } } }\n for (var i$3 = 0; i$3 < gap; ++i$3)\n { newMarkers.push(gapMarkers); }\n newMarkers.push(last);\n }\n return newMarkers\n }\n\n // Remove spans that are empty and don't have a clearWhenEmpty\n // option of false.\n function clearEmptySpans(spans) {\n for (var i = 0; i < spans.length; ++i) {\n var span = spans[i];\n if (span.from != null && span.from == span.to && span.marker.clearWhenEmpty !== false)\n { spans.splice(i--, 1); }\n }\n if (!spans.length) { return null }\n return spans\n }\n\n // Used to 'clip' out readOnly ranges when making a change.\n function removeReadOnlyRanges(doc, from, to) {\n var markers = null;\n doc.iter(from.line, to.line + 1, function (line) {\n if (line.markedSpans) { for (var i = 0; i < line.markedSpans.length; ++i) {\n var mark = line.markedSpans[i].marker;\n if (mark.readOnly && (!markers || indexOf(markers, mark) == -1))\n { (markers || (markers = [])).push(mark); }\n } }\n });\n if (!markers) { return null }\n var parts = [{from: from, to: to}];\n for (var i = 0; i < markers.length; ++i) {\n var mk = markers[i], m = mk.find(0);\n for (var j = 0; j < parts.length; ++j) {\n var p = parts[j];\n if (cmp(p.to, m.from) < 0 || cmp(p.from, m.to) > 0) { continue }\n var newParts = [j, 1], dfrom = cmp(p.from, m.from), dto = cmp(p.to, m.to);\n if (dfrom < 0 || !mk.inclusiveLeft && !dfrom)\n { newParts.push({from: p.from, to: m.from}); }\n if (dto > 0 || !mk.inclusiveRight && !dto)\n { newParts.push({from: m.to, to: p.to}); }\n parts.splice.apply(parts, newParts);\n j += newParts.length - 3;\n }\n }\n return parts\n }\n\n // Connect or disconnect spans from a line.\n function detachMarkedSpans(line) {\n var spans = line.markedSpans;\n if (!spans) { return }\n for (var i = 0; i < spans.length; ++i)\n { spans[i].marker.detachLine(line); }\n line.markedSpans = null;\n }\n function attachMarkedSpans(line, spans) {\n if (!spans) { return }\n for (var i = 0; i < spans.length; ++i)\n { spans[i].marker.attachLine(line); }\n line.markedSpans = spans;\n }\n\n // Helpers used when computing which overlapping collapsed span\n // counts as the larger one.\n function extraLeft(marker) { return marker.inclusiveLeft ? -1 : 0 }\n function extraRight(marker) { return marker.inclusiveRight ? 1 : 0 }\n\n // Returns a number indicating which of two overlapping collapsed\n // spans is larger (and thus includes the other). Falls back to\n // comparing ids when the spans cover exactly the same range.\n function compareCollapsedMarkers(a, b) {\n var lenDiff = a.lines.length - b.lines.length;\n if (lenDiff != 0) { return lenDiff }\n var aPos = a.find(), bPos = b.find();\n var fromCmp = cmp(aPos.from, bPos.from) || extraLeft(a) - extraLeft(b);\n if (fromCmp) { return -fromCmp }\n var toCmp = cmp(aPos.to, bPos.to) || extraRight(a) - extraRight(b);\n if (toCmp) { return toCmp }\n return b.id - a.id\n }\n\n // Find out whether a line ends or starts in a collapsed span. If\n // so, return the marker for that span.\n function collapsedSpanAtSide(line, start) {\n var sps = sawCollapsedSpans && line.markedSpans, found;\n if (sps) { for (var sp = (void 0), i = 0; i < sps.length; ++i) {\n sp = sps[i];\n if (sp.marker.collapsed && (start ? sp.from : sp.to) == null &&\n (!found || compareCollapsedMarkers(found, sp.marker) < 0))\n { found = sp.marker; }\n } }\n return found\n }\n function collapsedSpanAtStart(line) { return collapsedSpanAtSide(line, true) }\n function collapsedSpanAtEnd(line) { return collapsedSpanAtSide(line, false) }\n\n function collapsedSpanAround(line, ch) {\n var sps = sawCollapsedSpans && line.markedSpans, found;\n if (sps) { for (var i = 0; i < sps.length; ++i) {\n var sp = sps[i];\n if (sp.marker.collapsed && (sp.from == null || sp.from < ch) && (sp.to == null || sp.to > ch) &&\n (!found || compareCollapsedMarkers(found, sp.marker) < 0)) { found = sp.marker; }\n } }\n return found\n }\n\n // Test whether there exists a collapsed span that partially\n // overlaps (covers the start or end, but not both) of a new span.\n // Such overlap is not allowed.\n function conflictingCollapsedRange(doc, lineNo, from, to, marker) {\n var line = getLine(doc, lineNo);\n var sps = sawCollapsedSpans && line.markedSpans;\n if (sps) { for (var i = 0; i < sps.length; ++i) {\n var sp = sps[i];\n if (!sp.marker.collapsed) { continue }\n var found = sp.marker.find(0);\n var fromCmp = cmp(found.from, from) || extraLeft(sp.marker) - extraLeft(marker);\n var toCmp = cmp(found.to, to) || extraRight(sp.marker) - extraRight(marker);\n if (fromCmp >= 0 && toCmp <= 0 || fromCmp <= 0 && toCmp >= 0) { continue }\n if (fromCmp <= 0 && (sp.marker.inclusiveRight && marker.inclusiveLeft ? cmp(found.to, from) >= 0 : cmp(found.to, from) > 0) ||\n fromCmp >= 0 && (sp.marker.inclusiveRight && marker.inclusiveLeft ? cmp(found.from, to) <= 0 : cmp(found.from, to) < 0))\n { return true }\n } }\n }\n\n // A visual line is a line as drawn on the screen. Folding, for\n // example, can cause multiple logical lines to appear on the same\n // visual line. This finds the start of the visual line that the\n // given line is part of (usually that is the line itself).\n function visualLine(line) {\n var merged;\n while (merged = collapsedSpanAtStart(line))\n { line = merged.find(-1, true).line; }\n return line\n }\n\n function visualLineEnd(line) {\n var merged;\n while (merged = collapsedSpanAtEnd(line))\n { line = merged.find(1, true).line; }\n return line\n }\n\n // Returns an array of logical lines that continue the visual line\n // started by the argument, or undefined if there are no such lines.\n function visualLineContinued(line) {\n var merged, lines;\n while (merged = collapsedSpanAtEnd(line)) {\n line = merged.find(1, true).line\n ;(lines || (lines = [])).push(line);\n }\n return lines\n }\n\n // Get the line number of the start of the visual line that the\n // given line number is part of.\n function visualLineNo(doc, lineN) {\n var line = getLine(doc, lineN), vis = visualLine(line);\n if (line == vis) { return lineN }\n return lineNo(vis)\n }\n\n // Get the line number of the start of the next visual line after\n // the given line.\n function visualLineEndNo(doc, lineN) {\n if (lineN > doc.lastLine()) { return lineN }\n var line = getLine(doc, lineN), merged;\n if (!lineIsHidden(doc, line)) { return lineN }\n while (merged = collapsedSpanAtEnd(line))\n { line = merged.find(1, true).line; }\n return lineNo(line) + 1\n }\n\n // Compute whether a line is hidden. Lines count as hidden when they\n // are part of a visual line that starts with another line, or when\n // they are entirely covered by collapsed, non-widget span.\n function lineIsHidden(doc, line) {\n var sps = sawCollapsedSpans && line.markedSpans;\n if (sps) { for (var sp = (void 0), i = 0; i < sps.length; ++i) {\n sp = sps[i];\n if (!sp.marker.collapsed) { continue }\n if (sp.from == null) { return true }\n if (sp.marker.widgetNode) { continue }\n if (sp.from == 0 && sp.marker.inclusiveLeft && lineIsHiddenInner(doc, line, sp))\n { return true }\n } }\n }\n function lineIsHiddenInner(doc, line, span) {\n if (span.to == null) {\n var end = span.marker.find(1, true);\n return lineIsHiddenInner(doc, end.line, getMarkedSpanFor(end.line.markedSpans, span.marker))\n }\n if (span.marker.inclusiveRight && span.to == line.text.length)\n { return true }\n for (var sp = (void 0), i = 0; i < line.markedSpans.length; ++i) {\n sp = line.markedSpans[i];\n if (sp.marker.collapsed && !sp.marker.widgetNode && sp.from == span.to &&\n (sp.to == null || sp.to != span.from) &&\n (sp.marker.inclusiveLeft || span.marker.inclusiveRight) &&\n lineIsHiddenInner(doc, line, sp)) { return true }\n }\n }\n\n // Find the height above the given line.\n function heightAtLine(lineObj) {\n lineObj = visualLine(lineObj);\n\n var h = 0, chunk = lineObj.parent;\n for (var i = 0; i < chunk.lines.length; ++i) {\n var line = chunk.lines[i];\n if (line == lineObj) { break }\n else { h += line.height; }\n }\n for (var p = chunk.parent; p; chunk = p, p = chunk.parent) {\n for (var i$1 = 0; i$1 < p.children.length; ++i$1) {\n var cur = p.children[i$1];\n if (cur == chunk) { break }\n else { h += cur.height; }\n }\n }\n return h\n }\n\n // Compute the character length of a line, taking into account\n // collapsed ranges (see markText) that might hide parts, and join\n // other lines onto it.\n function lineLength(line) {\n if (line.height == 0) { return 0 }\n var len = line.text.length, merged, cur = line;\n while (merged = collapsedSpanAtStart(cur)) {\n var found = merged.find(0, true);\n cur = found.from.line;\n len += found.from.ch - found.to.ch;\n }\n cur = line;\n while (merged = collapsedSpanAtEnd(cur)) {\n var found$1 = merged.find(0, true);\n len -= cur.text.length - found$1.from.ch;\n cur = found$1.to.line;\n len += cur.text.length - found$1.to.ch;\n }\n return len\n }\n\n // Find the longest line in the document.\n function findMaxLine(cm) {\n var d = cm.display, doc = cm.doc;\n d.maxLine = getLine(doc, doc.first);\n d.maxLineLength = lineLength(d.maxLine);\n d.maxLineChanged = true;\n doc.iter(function (line) {\n var len = lineLength(line);\n if (len > d.maxLineLength) {\n d.maxLineLength = len;\n d.maxLine = line;\n }\n });\n }\n\n // LINE DATA STRUCTURE\n\n // Line objects. These hold state related to a line, including\n // highlighting info (the styles array).\n var Line = function(text, markedSpans, estimateHeight) {\n this.text = text;\n attachMarkedSpans(this, markedSpans);\n this.height = estimateHeight ? estimateHeight(this) : 1;\n };\n\n Line.prototype.lineNo = function () { return lineNo(this) };\n eventMixin(Line);\n\n // Change the content (text, markers) of a line. Automatically\n // invalidates cached information and tries to re-estimate the\n // line's height.\n function updateLine(line, text, markedSpans, estimateHeight) {\n line.text = text;\n if (line.stateAfter) { line.stateAfter = null; }\n if (line.styles) { line.styles = null; }\n if (line.order != null) { line.order = null; }\n detachMarkedSpans(line);\n attachMarkedSpans(line, markedSpans);\n var estHeight = estimateHeight ? estimateHeight(line) : 1;\n if (estHeight != line.height) { updateLineHeight(line, estHeight); }\n }\n\n // Detach a line from the document tree and its markers.\n function cleanUpLine(line) {\n line.parent = null;\n detachMarkedSpans(line);\n }\n\n // Convert a style as returned by a mode (either null, or a string\n // containing one or more styles) to a CSS style. This is cached,\n // and also looks for line-wide styles.\n var styleToClassCache = {}, styleToClassCacheWithMode = {};\n function interpretTokenStyle(style, options) {\n if (!style || /^\\s*$/.test(style)) { return null }\n var cache = options.addModeClass ? styleToClassCacheWithMode : styleToClassCache;\n return cache[style] ||\n (cache[style] = style.replace(/\\S+/g, \"cm-$&\"))\n }\n\n // Render the DOM representation of the text of a line. Also builds\n // up a 'line map', which points at the DOM nodes that represent\n // specific stretches of text, and is used by the measuring code.\n // The returned object contains the DOM node, this map, and\n // information about line-wide styles that were set by the mode.\n function buildLineContent(cm, lineView) {\n // The padding-right forces the element to have a 'border', which\n // is needed on Webkit to be able to get line-level bounding\n // rectangles for it (in measureChar).\n var content = eltP(\"span\", null, null, webkit ? \"padding-right: .1px\" : null);\n var builder = {pre: eltP(\"pre\", [content], \"CodeMirror-line\"), content: content,\n col: 0, pos: 0, cm: cm,\n trailingSpace: false,\n splitSpaces: cm.getOption(\"lineWrapping\")};\n lineView.measure = {};\n\n // Iterate over the logical lines that make up this visual line.\n for (var i = 0; i <= (lineView.rest ? lineView.rest.length : 0); i++) {\n var line = i ? lineView.rest[i - 1] : lineView.line, order = (void 0);\n builder.pos = 0;\n builder.addToken = buildToken;\n // Optionally wire in some hacks into the token-rendering\n // algorithm, to deal with browser quirks.\n if (hasBadBidiRects(cm.display.measure) && (order = getOrder(line, cm.doc.direction)))\n { builder.addToken = buildTokenBadBidi(builder.addToken, order); }\n builder.map = [];\n var allowFrontierUpdate = lineView != cm.display.externalMeasured && lineNo(line);\n insertLineContent(line, builder, getLineStyles(cm, line, allowFrontierUpdate));\n if (line.styleClasses) {\n if (line.styleClasses.bgClass)\n { builder.bgClass = joinClasses(line.styleClasses.bgClass, builder.bgClass || \"\"); }\n if (line.styleClasses.textClass)\n { builder.textClass = joinClasses(line.styleClasses.textClass, builder.textClass || \"\"); }\n }\n\n // Ensure at least a single node is present, for measuring.\n if (builder.map.length == 0)\n { builder.map.push(0, 0, builder.content.appendChild(zeroWidthElement(cm.display.measure))); }\n\n // Store the map and a cache object for the current logical line\n if (i == 0) {\n lineView.measure.map = builder.map;\n lineView.measure.cache = {};\n } else {\n (lineView.measure.maps || (lineView.measure.maps = [])).push(builder.map)\n ;(lineView.measure.caches || (lineView.measure.caches = [])).push({});\n }\n }\n\n // See issue #2901\n if (webkit) {\n var last = builder.content.lastChild;\n if (/\\bcm-tab\\b/.test(last.className) || (last.querySelector && last.querySelector(\".cm-tab\")))\n { builder.content.className = \"cm-tab-wrap-hack\"; }\n }\n\n signal(cm, \"renderLine\", cm, lineView.line, builder.pre);\n if (builder.pre.className)\n { builder.textClass = joinClasses(builder.pre.className, builder.textClass || \"\"); }\n\n return builder\n }\n\n function defaultSpecialCharPlaceholder(ch) {\n var token = elt(\"span\", \"\\u2022\", \"cm-invalidchar\");\n token.title = \"\\\\u\" + ch.charCodeAt(0).toString(16);\n token.setAttribute(\"aria-label\", token.title);\n return token\n }\n\n // Build up the DOM representation for a single token, and add it to\n // the line map. Takes care to render special characters separately.\n function buildToken(builder, text, style, startStyle, endStyle, css, attributes) {\n if (!text) { return }\n var displayText = builder.splitSpaces ? splitSpaces(text, builder.trailingSpace) : text;\n var special = builder.cm.state.specialChars, mustWrap = false;\n var content;\n if (!special.test(text)) {\n builder.col += text.length;\n content = document.createTextNode(displayText);\n builder.map.push(builder.pos, builder.pos + text.length, content);\n if (ie && ie_version < 9) { mustWrap = true; }\n builder.pos += text.length;\n } else {\n content = document.createDocumentFragment();\n var pos = 0;\n while (true) {\n special.lastIndex = pos;\n var m = special.exec(text);\n var skipped = m ? m.index - pos : text.length - pos;\n if (skipped) {\n var txt = document.createTextNode(displayText.slice(pos, pos + skipped));\n if (ie && ie_version < 9) { content.appendChild(elt(\"span\", [txt])); }\n else { content.appendChild(txt); }\n builder.map.push(builder.pos, builder.pos + skipped, txt);\n builder.col += skipped;\n builder.pos += skipped;\n }\n if (!m) { break }\n pos += skipped + 1;\n var txt$1 = (void 0);\n if (m[0] == \"\\t\") {\n var tabSize = builder.cm.options.tabSize, tabWidth = tabSize - builder.col % tabSize;\n txt$1 = content.appendChild(elt(\"span\", spaceStr(tabWidth), \"cm-tab\"));\n txt$1.setAttribute(\"role\", \"presentation\");\n txt$1.setAttribute(\"cm-text\", \"\\t\");\n builder.col += tabWidth;\n } else if (m[0] == \"\\r\" || m[0] == \"\\n\") {\n txt$1 = content.appendChild(elt(\"span\", m[0] == \"\\r\" ? \"\\u240d\" : \"\\u2424\", \"cm-invalidchar\"));\n txt$1.setAttribute(\"cm-text\", m[0]);\n builder.col += 1;\n } else {\n txt$1 = builder.cm.options.specialCharPlaceholder(m[0]);\n txt$1.setAttribute(\"cm-text\", m[0]);\n if (ie && ie_version < 9) { content.appendChild(elt(\"span\", [txt$1])); }\n else { content.appendChild(txt$1); }\n builder.col += 1;\n }\n builder.map.push(builder.pos, builder.pos + 1, txt$1);\n builder.pos++;\n }\n }\n builder.trailingSpace = displayText.charCodeAt(text.length - 1) == 32;\n if (style || startStyle || endStyle || mustWrap || css || attributes) {\n var fullStyle = style || \"\";\n if (startStyle) { fullStyle += startStyle; }\n if (endStyle) { fullStyle += endStyle; }\n var token = elt(\"span\", [content], fullStyle, css);\n if (attributes) {\n for (var attr in attributes) { if (attributes.hasOwnProperty(attr) && attr != \"style\" && attr != \"class\")\n { token.setAttribute(attr, attributes[attr]); } }\n }\n return builder.content.appendChild(token)\n }\n builder.content.appendChild(content);\n }\n\n // Change some spaces to NBSP to prevent the browser from collapsing\n // trailing spaces at the end of a line when rendering text (issue #1362).\n function splitSpaces(text, trailingBefore) {\n if (text.length > 1 && !/ /.test(text)) { return text }\n var spaceBefore = trailingBefore, result = \"\";\n for (var i = 0; i < text.length; i++) {\n var ch = text.charAt(i);\n if (ch == \" \" && spaceBefore && (i == text.length - 1 || text.charCodeAt(i + 1) == 32))\n { ch = \"\\u00a0\"; }\n result += ch;\n spaceBefore = ch == \" \";\n }\n return result\n }\n\n // Work around nonsense dimensions being reported for stretches of\n // right-to-left text.\n function buildTokenBadBidi(inner, order) {\n return function (builder, text, style, startStyle, endStyle, css, attributes) {\n style = style ? style + \" cm-force-border\" : \"cm-force-border\";\n var start = builder.pos, end = start + text.length;\n for (;;) {\n // Find the part that overlaps with the start of this text\n var part = (void 0);\n for (var i = 0; i < order.length; i++) {\n part = order[i];\n if (part.to > start && part.from <= start) { break }\n }\n if (part.to >= end) { return inner(builder, text, style, startStyle, endStyle, css, attributes) }\n inner(builder, text.slice(0, part.to - start), style, startStyle, null, css, attributes);\n startStyle = null;\n text = text.slice(part.to - start);\n start = part.to;\n }\n }\n }\n\n function buildCollapsedSpan(builder, size, marker, ignoreWidget) {\n var widget = !ignoreWidget && marker.widgetNode;\n if (widget) { builder.map.push(builder.pos, builder.pos + size, widget); }\n if (!ignoreWidget && builder.cm.display.input.needsContentAttribute) {\n if (!widget)\n { widget = builder.content.appendChild(document.createElement(\"span\")); }\n widget.setAttribute(\"cm-marker\", marker.id);\n }\n if (widget) {\n builder.cm.display.input.setUneditable(widget);\n builder.content.appendChild(widget);\n }\n builder.pos += size;\n builder.trailingSpace = false;\n }\n\n // Outputs a number of spans to make up a line, taking highlighting\n // and marked text into account.\n function insertLineContent(line, builder, styles) {\n var spans = line.markedSpans, allText = line.text, at = 0;\n if (!spans) {\n for (var i$1 = 1; i$1 < styles.length; i$1+=2)\n { builder.addToken(builder, allText.slice(at, at = styles[i$1]), interpretTokenStyle(styles[i$1+1], builder.cm.options)); }\n return\n }\n\n var len = allText.length, pos = 0, i = 1, text = \"\", style, css;\n var nextChange = 0, spanStyle, spanEndStyle, spanStartStyle, collapsed, attributes;\n for (;;) {\n if (nextChange == pos) { // Update current marker set\n spanStyle = spanEndStyle = spanStartStyle = css = \"\";\n attributes = null;\n collapsed = null; nextChange = Infinity;\n var foundBookmarks = [], endStyles = (void 0);\n for (var j = 0; j < spans.length; ++j) {\n var sp = spans[j], m = sp.marker;\n if (m.type == \"bookmark\" && sp.from == pos && m.widgetNode) {\n foundBookmarks.push(m);\n } else if (sp.from <= pos && (sp.to == null || sp.to > pos || m.collapsed && sp.to == pos && sp.from == pos)) {\n if (sp.to != null && sp.to != pos && nextChange > sp.to) {\n nextChange = sp.to;\n spanEndStyle = \"\";\n }\n if (m.className) { spanStyle += \" \" + m.className; }\n if (m.css) { css = (css ? css + \";\" : \"\") + m.css; }\n if (m.startStyle && sp.from == pos) { spanStartStyle += \" \" + m.startStyle; }\n if (m.endStyle && sp.to == nextChange) { (endStyles || (endStyles = [])).push(m.endStyle, sp.to); }\n // support for the old title property\n // https://github.com/codemirror/CodeMirror/pull/5673\n if (m.title) { (attributes || (attributes = {})).title = m.title; }\n if (m.attributes) {\n for (var attr in m.attributes)\n { (attributes || (attributes = {}))[attr] = m.attributes[attr]; }\n }\n if (m.collapsed && (!collapsed || compareCollapsedMarkers(collapsed.marker, m) < 0))\n { collapsed = sp; }\n } else if (sp.from > pos && nextChange > sp.from) {\n nextChange = sp.from;\n }\n }\n if (endStyles) { for (var j$1 = 0; j$1 < endStyles.length; j$1 += 2)\n { if (endStyles[j$1 + 1] == nextChange) { spanEndStyle += \" \" + endStyles[j$1]; } } }\n\n if (!collapsed || collapsed.from == pos) { for (var j$2 = 0; j$2 < foundBookmarks.length; ++j$2)\n { buildCollapsedSpan(builder, 0, foundBookmarks[j$2]); } }\n if (collapsed && (collapsed.from || 0) == pos) {\n buildCollapsedSpan(builder, (collapsed.to == null ? len + 1 : collapsed.to) - pos,\n collapsed.marker, collapsed.from == null);\n if (collapsed.to == null) { return }\n if (collapsed.to == pos) { collapsed = false; }\n }\n }\n if (pos >= len) { break }\n\n var upto = Math.min(len, nextChange);\n while (true) {\n if (text) {\n var end = pos + text.length;\n if (!collapsed) {\n var tokenText = end > upto ? text.slice(0, upto - pos) : text;\n builder.addToken(builder, tokenText, style ? style + spanStyle : spanStyle,\n spanStartStyle, pos + tokenText.length == nextChange ? spanEndStyle : \"\", css, attributes);\n }\n if (end >= upto) {text = text.slice(upto - pos); pos = upto; break}\n pos = end;\n spanStartStyle = \"\";\n }\n text = allText.slice(at, at = styles[i++]);\n style = interpretTokenStyle(styles[i++], builder.cm.options);\n }\n }\n }\n\n\n // These objects are used to represent the visible (currently drawn)\n // part of the document. A LineView may correspond to multiple\n // logical lines, if those are connected by collapsed ranges.\n function LineView(doc, line, lineN) {\n // The starting line\n this.line = line;\n // Continuing lines, if any\n this.rest = visualLineContinued(line);\n // Number of logical lines in this visual line\n this.size = this.rest ? lineNo(lst(this.rest)) - lineN + 1 : 1;\n this.node = this.text = null;\n this.hidden = lineIsHidden(doc, line);\n }\n\n // Create a range of LineView objects for the given lines.\n function buildViewArray(cm, from, to) {\n var array = [], nextPos;\n for (var pos = from; pos < to; pos = nextPos) {\n var view = new LineView(cm.doc, getLine(cm.doc, pos), pos);\n nextPos = pos + view.size;\n array.push(view);\n }\n return array\n }\n\n var operationGroup = null;\n\n function pushOperation(op) {\n if (operationGroup) {\n operationGroup.ops.push(op);\n } else {\n op.ownsGroup = operationGroup = {\n ops: [op],\n delayedCallbacks: []\n };\n }\n }\n\n function fireCallbacksForOps(group) {\n // Calls delayed callbacks and cursorActivity handlers until no\n // new ones appear\n var callbacks = group.delayedCallbacks, i = 0;\n do {\n for (; i < callbacks.length; i++)\n { callbacks[i].call(null); }\n for (var j = 0; j < group.ops.length; j++) {\n var op = group.ops[j];\n if (op.cursorActivityHandlers)\n { while (op.cursorActivityCalled < op.cursorActivityHandlers.length)\n { op.cursorActivityHandlers[op.cursorActivityCalled++].call(null, op.cm); } }\n }\n } while (i < callbacks.length)\n }\n\n function finishOperation(op, endCb) {\n var group = op.ownsGroup;\n if (!group) { return }\n\n try { fireCallbacksForOps(group); }\n finally {\n operationGroup = null;\n endCb(group);\n }\n }\n\n var orphanDelayedCallbacks = null;\n\n // Often, we want to signal events at a point where we are in the\n // middle of some work, but don't want the handler to start calling\n // other methods on the editor, which might be in an inconsistent\n // state or simply not expect any other events to happen.\n // signalLater looks whether there are any handlers, and schedules\n // them to be executed when the last operation ends, or, if no\n // operation is active, when a timeout fires.\n function signalLater(emitter, type /*, values...*/) {\n var arr = getHandlers(emitter, type);\n if (!arr.length) { return }\n var args = Array.prototype.slice.call(arguments, 2), list;\n if (operationGroup) {\n list = operationGroup.delayedCallbacks;\n } else if (orphanDelayedCallbacks) {\n list = orphanDelayedCallbacks;\n } else {\n list = orphanDelayedCallbacks = [];\n setTimeout(fireOrphanDelayed, 0);\n }\n var loop = function ( i ) {\n list.push(function () { return arr[i].apply(null, args); });\n };\n\n for (var i = 0; i < arr.length; ++i)\n loop( i );\n }\n\n function fireOrphanDelayed() {\n var delayed = orphanDelayedCallbacks;\n orphanDelayedCallbacks = null;\n for (var i = 0; i < delayed.length; ++i) { delayed[i](); }\n }\n\n // When an aspect of a line changes, a string is added to\n // lineView.changes. This updates the relevant part of the line's\n // DOM structure.\n function updateLineForChanges(cm, lineView, lineN, dims) {\n for (var j = 0; j < lineView.changes.length; j++) {\n var type = lineView.changes[j];\n if (type == \"text\") { updateLineText(cm, lineView); }\n else if (type == \"gutter\") { updateLineGutter(cm, lineView, lineN, dims); }\n else if (type == \"class\") { updateLineClasses(cm, lineView); }\n else if (type == \"widget\") { updateLineWidgets(cm, lineView, dims); }\n }\n lineView.changes = null;\n }\n\n // Lines with gutter elements, widgets or a background class need to\n // be wrapped, and have the extra elements added to the wrapper div\n function ensureLineWrapped(lineView) {\n if (lineView.node == lineView.text) {\n lineView.node = elt(\"div\", null, null, \"position: relative\");\n if (lineView.text.parentNode)\n { lineView.text.parentNode.replaceChild(lineView.node, lineView.text); }\n lineView.node.appendChild(lineView.text);\n if (ie && ie_version < 8) { lineView.node.style.zIndex = 2; }\n }\n return lineView.node\n }\n\n function updateLineBackground(cm, lineView) {\n var cls = lineView.bgClass ? lineView.bgClass + \" \" + (lineView.line.bgClass || \"\") : lineView.line.bgClass;\n if (cls) { cls += \" CodeMirror-linebackground\"; }\n if (lineView.background) {\n if (cls) { lineView.background.className = cls; }\n else { lineView.background.parentNode.removeChild(lineView.background); lineView.background = null; }\n } else if (cls) {\n var wrap = ensureLineWrapped(lineView);\n lineView.background = wrap.insertBefore(elt(\"div\", null, cls), wrap.firstChild);\n cm.display.input.setUneditable(lineView.background);\n }\n }\n\n // Wrapper around buildLineContent which will reuse the structure\n // in display.externalMeasured when possible.\n function getLineContent(cm, lineView) {\n var ext = cm.display.externalMeasured;\n if (ext && ext.line == lineView.line) {\n cm.display.externalMeasured = null;\n lineView.measure = ext.measure;\n return ext.built\n }\n return buildLineContent(cm, lineView)\n }\n\n // Redraw the line's text. Interacts with the background and text\n // classes because the mode may output tokens that influence these\n // classes.\n function updateLineText(cm, lineView) {\n var cls = lineView.text.className;\n var built = getLineContent(cm, lineView);\n if (lineView.text == lineView.node) { lineView.node = built.pre; }\n lineView.text.parentNode.replaceChild(built.pre, lineView.text);\n lineView.text = built.pre;\n if (built.bgClass != lineView.bgClass || built.textClass != lineView.textClass) {\n lineView.bgClass = built.bgClass;\n lineView.textClass = built.textClass;\n updateLineClasses(cm, lineView);\n } else if (cls) {\n lineView.text.className = cls;\n }\n }\n\n function updateLineClasses(cm, lineView) {\n updateLineBackground(cm, lineView);\n if (lineView.line.wrapClass)\n { ensureLineWrapped(lineView).className = lineView.line.wrapClass; }\n else if (lineView.node != lineView.text)\n { lineView.node.className = \"\"; }\n var textClass = lineView.textClass ? lineView.textClass + \" \" + (lineView.line.textClass || \"\") : lineView.line.textClass;\n lineView.text.className = textClass || \"\";\n }\n\n function updateLineGutter(cm, lineView, lineN, dims) {\n if (lineView.gutter) {\n lineView.node.removeChild(lineView.gutter);\n lineView.gutter = null;\n }\n if (lineView.gutterBackground) {\n lineView.node.removeChild(lineView.gutterBackground);\n lineView.gutterBackground = null;\n }\n if (lineView.line.gutterClass) {\n var wrap = ensureLineWrapped(lineView);\n lineView.gutterBackground = elt(\"div\", null, \"CodeMirror-gutter-background \" + lineView.line.gutterClass,\n (\"left: \" + (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) + \"px; width: \" + (dims.gutterTotalWidth) + \"px\"));\n cm.display.input.setUneditable(lineView.gutterBackground);\n wrap.insertBefore(lineView.gutterBackground, lineView.text);\n }\n var markers = lineView.line.gutterMarkers;\n if (cm.options.lineNumbers || markers) {\n var wrap$1 = ensureLineWrapped(lineView);\n var gutterWrap = lineView.gutter = elt(\"div\", null, \"CodeMirror-gutter-wrapper\", (\"left: \" + (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) + \"px\"));\n cm.display.input.setUneditable(gutterWrap);\n wrap$1.insertBefore(gutterWrap, lineView.text);\n if (lineView.line.gutterClass)\n { gutterWrap.className += \" \" + lineView.line.gutterClass; }\n if (cm.options.lineNumbers && (!markers || !markers[\"CodeMirror-linenumbers\"]))\n { lineView.lineNumber = gutterWrap.appendChild(\n elt(\"div\", lineNumberFor(cm.options, lineN),\n \"CodeMirror-linenumber CodeMirror-gutter-elt\",\n (\"left: \" + (dims.gutterLeft[\"CodeMirror-linenumbers\"]) + \"px; width: \" + (cm.display.lineNumInnerWidth) + \"px\"))); }\n if (markers) { for (var k = 0; k < cm.display.gutterSpecs.length; ++k) {\n var id = cm.display.gutterSpecs[k].className, found = markers.hasOwnProperty(id) && markers[id];\n if (found)\n { gutterWrap.appendChild(elt(\"div\", [found], \"CodeMirror-gutter-elt\",\n (\"left: \" + (dims.gutterLeft[id]) + \"px; width: \" + (dims.gutterWidth[id]) + \"px\"))); }\n } }\n }\n }\n\n function updateLineWidgets(cm, lineView, dims) {\n if (lineView.alignable) { lineView.alignable = null; }\n var isWidget = classTest(\"CodeMirror-linewidget\");\n for (var node = lineView.node.firstChild, next = (void 0); node; node = next) {\n next = node.nextSibling;\n if (isWidget.test(node.className)) { lineView.node.removeChild(node); }\n }\n insertLineWidgets(cm, lineView, dims);\n }\n\n // Build a line's DOM representation from scratch\n function buildLineElement(cm, lineView, lineN, dims) {\n var built = getLineContent(cm, lineView);\n lineView.text = lineView.node = built.pre;\n if (built.bgClass) { lineView.bgClass = built.bgClass; }\n if (built.textClass) { lineView.textClass = built.textClass; }\n\n updateLineClasses(cm, lineView);\n updateLineGutter(cm, lineView, lineN, dims);\n insertLineWidgets(cm, lineView, dims);\n return lineView.node\n }\n\n // A lineView may contain multiple logical lines (when merged by\n // collapsed spans). The widgets for all of them need to be drawn.\n function insertLineWidgets(cm, lineView, dims) {\n insertLineWidgetsFor(cm, lineView.line, lineView, dims, true);\n if (lineView.rest) { for (var i = 0; i < lineView.rest.length; i++)\n { insertLineWidgetsFor(cm, lineView.rest[i], lineView, dims, false); } }\n }\n\n function insertLineWidgetsFor(cm, line, lineView, dims, allowAbove) {\n if (!line.widgets) { return }\n var wrap = ensureLineWrapped(lineView);\n for (var i = 0, ws = line.widgets; i < ws.length; ++i) {\n var widget = ws[i], node = elt(\"div\", [widget.node], \"CodeMirror-linewidget\" + (widget.className ? \" \" + widget.className : \"\"));\n if (!widget.handleMouseEvents) { node.setAttribute(\"cm-ignore-events\", \"true\"); }\n positionLineWidget(widget, node, lineView, dims);\n cm.display.input.setUneditable(node);\n if (allowAbove && widget.above)\n { wrap.insertBefore(node, lineView.gutter || lineView.text); }\n else\n { wrap.appendChild(node); }\n signalLater(widget, \"redraw\");\n }\n }\n\n function positionLineWidget(widget, node, lineView, dims) {\n if (widget.noHScroll) {\n (lineView.alignable || (lineView.alignable = [])).push(node);\n var width = dims.wrapperWidth;\n node.style.left = dims.fixedPos + \"px\";\n if (!widget.coverGutter) {\n width -= dims.gutterTotalWidth;\n node.style.paddingLeft = dims.gutterTotalWidth + \"px\";\n }\n node.style.width = width + \"px\";\n }\n if (widget.coverGutter) {\n node.style.zIndex = 5;\n node.style.position = \"relative\";\n if (!widget.noHScroll) { node.style.marginLeft = -dims.gutterTotalWidth + \"px\"; }\n }\n }\n\n function widgetHeight(widget) {\n if (widget.height != null) { return widget.height }\n var cm = widget.doc.cm;\n if (!cm) { return 0 }\n if (!contains(document.body, widget.node)) {\n var parentStyle = \"position: relative;\";\n if (widget.coverGutter)\n { parentStyle += \"margin-left: -\" + cm.display.gutters.offsetWidth + \"px;\"; }\n if (widget.noHScroll)\n { parentStyle += \"width: \" + cm.display.wrapper.clientWidth + \"px;\"; }\n removeChildrenAndAdd(cm.display.measure, elt(\"div\", [widget.node], null, parentStyle));\n }\n return widget.height = widget.node.parentNode.offsetHeight\n }\n\n // Return true when the given mouse event happened in a widget\n function eventInWidget(display, e) {\n for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {\n if (!n || (n.nodeType == 1 && n.getAttribute(\"cm-ignore-events\") == \"true\") ||\n (n.parentNode == display.sizer && n != display.mover))\n { return true }\n }\n }\n\n // POSITION MEASUREMENT\n\n function paddingTop(display) {return display.lineSpace.offsetTop}\n function paddingVert(display) {return display.mover.offsetHeight - display.lineSpace.offsetHeight}\n function paddingH(display) {\n if (display.cachedPaddingH) { return display.cachedPaddingH }\n var e = removeChildrenAndAdd(display.measure, elt(\"pre\", \"x\", \"CodeMirror-line-like\"));\n var style = window.getComputedStyle ? window.getComputedStyle(e) : e.currentStyle;\n var data = {left: parseInt(style.paddingLeft), right: parseInt(style.paddingRight)};\n if (!isNaN(data.left) && !isNaN(data.right)) { display.cachedPaddingH = data; }\n return data\n }\n\n function scrollGap(cm) { return scrollerGap - cm.display.nativeBarWidth }\n function displayWidth(cm) {\n return cm.display.scroller.clientWidth - scrollGap(cm) - cm.display.barWidth\n }\n function displayHeight(cm) {\n return cm.display.scroller.clientHeight - scrollGap(cm) - cm.display.barHeight\n }\n\n // Ensure the lineView.wrapping.heights array is populated. This is\n // an array of bottom offsets for the lines that make up a drawn\n // line. When lineWrapping is on, there might be more than one\n // height.\n function ensureLineHeights(cm, lineView, rect) {\n var wrapping = cm.options.lineWrapping;\n var curWidth = wrapping && displayWidth(cm);\n if (!lineView.measure.heights || wrapping && lineView.measure.width != curWidth) {\n var heights = lineView.measure.heights = [];\n if (wrapping) {\n lineView.measure.width = curWidth;\n var rects = lineView.text.firstChild.getClientRects();\n for (var i = 0; i < rects.length - 1; i++) {\n var cur = rects[i], next = rects[i + 1];\n if (Math.abs(cur.bottom - next.bottom) > 2)\n { heights.push((cur.bottom + next.top) / 2 - rect.top); }\n }\n }\n heights.push(rect.bottom - rect.top);\n }\n }\n\n // Find a line map (mapping character offsets to text nodes) and a\n // measurement cache for the given line number. (A line view might\n // contain multiple lines when collapsed ranges are present.)\n function mapFromLineView(lineView, line, lineN) {\n if (lineView.line == line)\n { return {map: lineView.measure.map, cache: lineView.measure.cache} }\n for (var i = 0; i < lineView.rest.length; i++)\n { if (lineView.rest[i] == line)\n { return {map: lineView.measure.maps[i], cache: lineView.measure.caches[i]} } }\n for (var i$1 = 0; i$1 < lineView.rest.length; i$1++)\n { if (lineNo(lineView.rest[i$1]) > lineN)\n { return {map: lineView.measure.maps[i$1], cache: lineView.measure.caches[i$1], before: true} } }\n }\n\n // Render a line into the hidden node display.externalMeasured. Used\n // when measurement is needed for a line that's not in the viewport.\n function updateExternalMeasurement(cm, line) {\n line = visualLine(line);\n var lineN = lineNo(line);\n var view = cm.display.externalMeasured = new LineView(cm.doc, line, lineN);\n view.lineN = lineN;\n var built = view.built = buildLineContent(cm, view);\n view.text = built.pre;\n removeChildrenAndAdd(cm.display.lineMeasure, built.pre);\n return view\n }\n\n // Get a {top, bottom, left, right} box (in line-local coordinates)\n // for a given character.\n function measureChar(cm, line, ch, bias) {\n return measureCharPrepared(cm, prepareMeasureForLine(cm, line), ch, bias)\n }\n\n // Find a line view that corresponds to the given line number.\n function findViewForLine(cm, lineN) {\n if (lineN >= cm.display.viewFrom && lineN < cm.display.viewTo)\n { return cm.display.view[findViewIndex(cm, lineN)] }\n var ext = cm.display.externalMeasured;\n if (ext && lineN >= ext.lineN && lineN < ext.lineN + ext.size)\n { return ext }\n }\n\n // Measurement can be split in two steps, the set-up work that\n // applies to the whole line, and the measurement of the actual\n // character. Functions like coordsChar, that need to do a lot of\n // measurements in a row, can thus ensure that the set-up work is\n // only done once.\n function prepareMeasureForLine(cm, line) {\n var lineN = lineNo(line);\n var view = findViewForLine(cm, lineN);\n if (view && !view.text) {\n view = null;\n } else if (view && view.changes) {\n updateLineForChanges(cm, view, lineN, getDimensions(cm));\n cm.curOp.forceUpdate = true;\n }\n if (!view)\n { view = updateExternalMeasurement(cm, line); }\n\n var info = mapFromLineView(view, line, lineN);\n return {\n line: line, view: view, rect: null,\n map: info.map, cache: info.cache, before: info.before,\n hasHeights: false\n }\n }\n\n // Given a prepared measurement object, measures the position of an\n // actual character (or fetches it from the cache).\n function measureCharPrepared(cm, prepared, ch, bias, varHeight) {\n if (prepared.before) { ch = -1; }\n var key = ch + (bias || \"\"), found;\n if (prepared.cache.hasOwnProperty(key)) {\n found = prepared.cache[key];\n } else {\n if (!prepared.rect)\n { prepared.rect = prepared.view.text.getBoundingClientRect(); }\n if (!prepared.hasHeights) {\n ensureLineHeights(cm, prepared.view, prepared.rect);\n prepared.hasHeights = true;\n }\n found = measureCharInner(cm, prepared, ch, bias);\n if (!found.bogus) { prepared.cache[key] = found; }\n }\n return {left: found.left, right: found.right,\n top: varHeight ? found.rtop : found.top,\n bottom: varHeight ? found.rbottom : found.bottom}\n }\n\n var nullRect = {left: 0, right: 0, top: 0, bottom: 0};\n\n function nodeAndOffsetInLineMap(map, ch, bias) {\n var node, start, end, collapse, mStart, mEnd;\n // First, search the line map for the text node corresponding to,\n // or closest to, the target character.\n for (var i = 0; i < map.length; i += 3) {\n mStart = map[i];\n mEnd = map[i + 1];\n if (ch < mStart) {\n start = 0; end = 1;\n collapse = \"left\";\n } else if (ch < mEnd) {\n start = ch - mStart;\n end = start + 1;\n } else if (i == map.length - 3 || ch == mEnd && map[i + 3] > ch) {\n end = mEnd - mStart;\n start = end - 1;\n if (ch >= mEnd) { collapse = \"right\"; }\n }\n if (start != null) {\n node = map[i + 2];\n if (mStart == mEnd && bias == (node.insertLeft ? \"left\" : \"right\"))\n { collapse = bias; }\n if (bias == \"left\" && start == 0)\n { while (i && map[i - 2] == map[i - 3] && map[i - 1].insertLeft) {\n node = map[(i -= 3) + 2];\n collapse = \"left\";\n } }\n if (bias == \"right\" && start == mEnd - mStart)\n { while (i < map.length - 3 && map[i + 3] == map[i + 4] && !map[i + 5].insertLeft) {\n node = map[(i += 3) + 2];\n collapse = \"right\";\n } }\n break\n }\n }\n return {node: node, start: start, end: end, collapse: collapse, coverStart: mStart, coverEnd: mEnd}\n }\n\n function getUsefulRect(rects, bias) {\n var rect = nullRect;\n if (bias == \"left\") { for (var i = 0; i < rects.length; i++) {\n if ((rect = rects[i]).left != rect.right) { break }\n } } else { for (var i$1 = rects.length - 1; i$1 >= 0; i$1--) {\n if ((rect = rects[i$1]).left != rect.right) { break }\n } }\n return rect\n }\n\n function measureCharInner(cm, prepared, ch, bias) {\n var place = nodeAndOffsetInLineMap(prepared.map, ch, bias);\n var node = place.node, start = place.start, end = place.end, collapse = place.collapse;\n\n var rect;\n if (node.nodeType == 3) { // If it is a text node, use a range to retrieve the coordinates.\n for (var i$1 = 0; i$1 < 4; i$1++) { // Retry a maximum of 4 times when nonsense rectangles are returned\n while (start && isExtendingChar(prepared.line.text.charAt(place.coverStart + start))) { --start; }\n while (place.coverStart + end < place.coverEnd && isExtendingChar(prepared.line.text.charAt(place.coverStart + end))) { ++end; }\n if (ie && ie_version < 9 && start == 0 && end == place.coverEnd - place.coverStart)\n { rect = node.parentNode.getBoundingClientRect(); }\n else\n { rect = getUsefulRect(range(node, start, end).getClientRects(), bias); }\n if (rect.left || rect.right || start == 0) { break }\n end = start;\n start = start - 1;\n collapse = \"right\";\n }\n if (ie && ie_version < 11) { rect = maybeUpdateRectForZooming(cm.display.measure, rect); }\n } else { // If it is a widget, simply get the box for the whole widget.\n if (start > 0) { collapse = bias = \"right\"; }\n var rects;\n if (cm.options.lineWrapping && (rects = node.getClientRects()).length > 1)\n { rect = rects[bias == \"right\" ? rects.length - 1 : 0]; }\n else\n { rect = node.getBoundingClientRect(); }\n }\n if (ie && ie_version < 9 && !start && (!rect || !rect.left && !rect.right)) {\n var rSpan = node.parentNode.getClientRects()[0];\n if (rSpan)\n { rect = {left: rSpan.left, right: rSpan.left + charWidth(cm.display), top: rSpan.top, bottom: rSpan.bottom}; }\n else\n { rect = nullRect; }\n }\n\n var rtop = rect.top - prepared.rect.top, rbot = rect.bottom - prepared.rect.top;\n var mid = (rtop + rbot) / 2;\n var heights = prepared.view.measure.heights;\n var i = 0;\n for (; i < heights.length - 1; i++)\n { if (mid < heights[i]) { break } }\n var top = i ? heights[i - 1] : 0, bot = heights[i];\n var result = {left: (collapse == \"right\" ? rect.right : rect.left) - prepared.rect.left,\n right: (collapse == \"left\" ? rect.left : rect.right) - prepared.rect.left,\n top: top, bottom: bot};\n if (!rect.left && !rect.right) { result.bogus = true; }\n if (!cm.options.singleCursorHeightPerLine) { result.rtop = rtop; result.rbottom = rbot; }\n\n return result\n }\n\n // Work around problem with bounding client rects on ranges being\n // returned incorrectly when zoomed on IE10 and below.\n function maybeUpdateRectForZooming(measure, rect) {\n if (!window.screen || screen.logicalXDPI == null ||\n screen.logicalXDPI == screen.deviceXDPI || !hasBadZoomedRects(measure))\n { return rect }\n var scaleX = screen.logicalXDPI / screen.deviceXDPI;\n var scaleY = screen.logicalYDPI / screen.deviceYDPI;\n return {left: rect.left * scaleX, right: rect.right * scaleX,\n top: rect.top * scaleY, bottom: rect.bottom * scaleY}\n }\n\n function clearLineMeasurementCacheFor(lineView) {\n if (lineView.measure) {\n lineView.measure.cache = {};\n lineView.measure.heights = null;\n if (lineView.rest) { for (var i = 0; i < lineView.rest.length; i++)\n { lineView.measure.caches[i] = {}; } }\n }\n }\n\n function clearLineMeasurementCache(cm) {\n cm.display.externalMeasure = null;\n removeChildren(cm.display.lineMeasure);\n for (var i = 0; i < cm.display.view.length; i++)\n { clearLineMeasurementCacheFor(cm.display.view[i]); }\n }\n\n function clearCaches(cm) {\n clearLineMeasurementCache(cm);\n cm.display.cachedCharWidth = cm.display.cachedTextHeight = cm.display.cachedPaddingH = null;\n if (!cm.options.lineWrapping) { cm.display.maxLineChanged = true; }\n cm.display.lineNumChars = null;\n }\n\n function pageScrollX() {\n // Work around https://bugs.chromium.org/p/chromium/issues/detail?id=489206\n // which causes page_Offset and bounding client rects to use\n // different reference viewports and invalidate our calculations.\n if (chrome && android) { return -(document.body.getBoundingClientRect().left - parseInt(getComputedStyle(document.body).marginLeft)) }\n return window.pageXOffset || (document.documentElement || document.body).scrollLeft\n }\n function pageScrollY() {\n if (chrome && android) { return -(document.body.getBoundingClientRect().top - parseInt(getComputedStyle(document.body).marginTop)) }\n return window.pageYOffset || (document.documentElement || document.body).scrollTop\n }\n\n function widgetTopHeight(lineObj) {\n var height = 0;\n if (lineObj.widgets) { for (var i = 0; i < lineObj.widgets.length; ++i) { if (lineObj.widgets[i].above)\n { height += widgetHeight(lineObj.widgets[i]); } } }\n return height\n }\n\n // Converts a {top, bottom, left, right} box from line-local\n // coordinates into another coordinate system. Context may be one of\n // \"line\", \"div\" (display.lineDiv), \"local\"./null (editor), \"window\",\n // or \"page\".\n function intoCoordSystem(cm, lineObj, rect, context, includeWidgets) {\n if (!includeWidgets) {\n var height = widgetTopHeight(lineObj);\n rect.top += height; rect.bottom += height;\n }\n if (context == \"line\") { return rect }\n if (!context) { context = \"local\"; }\n var yOff = heightAtLine(lineObj);\n if (context == \"local\") { yOff += paddingTop(cm.display); }\n else { yOff -= cm.display.viewOffset; }\n if (context == \"page\" || context == \"window\") {\n var lOff = cm.display.lineSpace.getBoundingClientRect();\n yOff += lOff.top + (context == \"window\" ? 0 : pageScrollY());\n var xOff = lOff.left + (context == \"window\" ? 0 : pageScrollX());\n rect.left += xOff; rect.right += xOff;\n }\n rect.top += yOff; rect.bottom += yOff;\n return rect\n }\n\n // Coverts a box from \"div\" coords to another coordinate system.\n // Context may be \"window\", \"page\", \"div\", or \"local\"./null.\n function fromCoordSystem(cm, coords, context) {\n if (context == \"div\") { return coords }\n var left = coords.left, top = coords.top;\n // First move into \"page\" coordinate system\n if (context == \"page\") {\n left -= pageScrollX();\n top -= pageScrollY();\n } else if (context == \"local\" || !context) {\n var localBox = cm.display.sizer.getBoundingClientRect();\n left += localBox.left;\n top += localBox.top;\n }\n\n var lineSpaceBox = cm.display.lineSpace.getBoundingClientRect();\n return {left: left - lineSpaceBox.left, top: top - lineSpaceBox.top}\n }\n\n function charCoords(cm, pos, context, lineObj, bias) {\n if (!lineObj) { lineObj = getLine(cm.doc, pos.line); }\n return intoCoordSystem(cm, lineObj, measureChar(cm, lineObj, pos.ch, bias), context)\n }\n\n // Returns a box for a given cursor position, which may have an\n // 'other' property containing the position of the secondary cursor\n // on a bidi boundary.\n // A cursor Pos(line, char, \"before\") is on the same visual line as `char - 1`\n // and after `char - 1` in writing order of `char - 1`\n // A cursor Pos(line, char, \"after\") is on the same visual line as `char`\n // and before `char` in writing order of `char`\n // Examples (upper-case letters are RTL, lower-case are LTR):\n // Pos(0, 1, ...)\n // before after\n // ab a|b a|b\n // aB a|B aB|\n // Ab |Ab A|b\n // AB B|A B|A\n // Every position after the last character on a line is considered to stick\n // to the last character on the line.\n function cursorCoords(cm, pos, context, lineObj, preparedMeasure, varHeight) {\n lineObj = lineObj || getLine(cm.doc, pos.line);\n if (!preparedMeasure) { preparedMeasure = prepareMeasureForLine(cm, lineObj); }\n function get(ch, right) {\n var m = measureCharPrepared(cm, preparedMeasure, ch, right ? \"right\" : \"left\", varHeight);\n if (right) { m.left = m.right; } else { m.right = m.left; }\n return intoCoordSystem(cm, lineObj, m, context)\n }\n var order = getOrder(lineObj, cm.doc.direction), ch = pos.ch, sticky = pos.sticky;\n if (ch >= lineObj.text.length) {\n ch = lineObj.text.length;\n sticky = \"before\";\n } else if (ch <= 0) {\n ch = 0;\n sticky = \"after\";\n }\n if (!order) { return get(sticky == \"before\" ? ch - 1 : ch, sticky == \"before\") }\n\n function getBidi(ch, partPos, invert) {\n var part = order[partPos], right = part.level == 1;\n return get(invert ? ch - 1 : ch, right != invert)\n }\n var partPos = getBidiPartAt(order, ch, sticky);\n var other = bidiOther;\n var val = getBidi(ch, partPos, sticky == \"before\");\n if (other != null) { val.other = getBidi(ch, other, sticky != \"before\"); }\n return val\n }\n\n // Used to cheaply estimate the coordinates for a position. Used for\n // intermediate scroll updates.\n function estimateCoords(cm, pos) {\n var left = 0;\n pos = clipPos(cm.doc, pos);\n if (!cm.options.lineWrapping) { left = charWidth(cm.display) * pos.ch; }\n var lineObj = getLine(cm.doc, pos.line);\n var top = heightAtLine(lineObj) + paddingTop(cm.display);\n return {left: left, right: left, top: top, bottom: top + lineObj.height}\n }\n\n // Positions returned by coordsChar contain some extra information.\n // xRel is the relative x position of the input coordinates compared\n // to the found position (so xRel > 0 means the coordinates are to\n // the right of the character position, for example). When outside\n // is true, that means the coordinates lie outside the line's\n // vertical range.\n function PosWithInfo(line, ch, sticky, outside, xRel) {\n var pos = Pos(line, ch, sticky);\n pos.xRel = xRel;\n if (outside) { pos.outside = outside; }\n return pos\n }\n\n // Compute the character position closest to the given coordinates.\n // Input must be lineSpace-local (\"div\" coordinate system).\n function coordsChar(cm, x, y) {\n var doc = cm.doc;\n y += cm.display.viewOffset;\n if (y < 0) { return PosWithInfo(doc.first, 0, null, -1, -1) }\n var lineN = lineAtHeight(doc, y), last = doc.first + doc.size - 1;\n if (lineN > last)\n { return PosWithInfo(doc.first + doc.size - 1, getLine(doc, last).text.length, null, 1, 1) }\n if (x < 0) { x = 0; }\n\n var lineObj = getLine(doc, lineN);\n for (;;) {\n var found = coordsCharInner(cm, lineObj, lineN, x, y);\n var collapsed = collapsedSpanAround(lineObj, found.ch + (found.xRel > 0 || found.outside > 0 ? 1 : 0));\n if (!collapsed) { return found }\n var rangeEnd = collapsed.find(1);\n if (rangeEnd.line == lineN) { return rangeEnd }\n lineObj = getLine(doc, lineN = rangeEnd.line);\n }\n }\n\n function wrappedLineExtent(cm, lineObj, preparedMeasure, y) {\n y -= widgetTopHeight(lineObj);\n var end = lineObj.text.length;\n var begin = findFirst(function (ch) { return measureCharPrepared(cm, preparedMeasure, ch - 1).bottom <= y; }, end, 0);\n end = findFirst(function (ch) { return measureCharPrepared(cm, preparedMeasure, ch).top > y; }, begin, end);\n return {begin: begin, end: end}\n }\n\n function wrappedLineExtentChar(cm, lineObj, preparedMeasure, target) {\n if (!preparedMeasure) { preparedMeasure = prepareMeasureForLine(cm, lineObj); }\n var targetTop = intoCoordSystem(cm, lineObj, measureCharPrepared(cm, preparedMeasure, target), \"line\").top;\n return wrappedLineExtent(cm, lineObj, preparedMeasure, targetTop)\n }\n\n // Returns true if the given side of a box is after the given\n // coordinates, in top-to-bottom, left-to-right order.\n function boxIsAfter(box, x, y, left) {\n return box.bottom <= y ? false : box.top > y ? true : (left ? box.left : box.right) > x\n }\n\n function coordsCharInner(cm, lineObj, lineNo, x, y) {\n // Move y into line-local coordinate space\n y -= heightAtLine(lineObj);\n var preparedMeasure = prepareMeasureForLine(cm, lineObj);\n // When directly calling `measureCharPrepared`, we have to adjust\n // for the widgets at this line.\n var widgetHeight = widgetTopHeight(lineObj);\n var begin = 0, end = lineObj.text.length, ltr = true;\n\n var order = getOrder(lineObj, cm.doc.direction);\n // If the line isn't plain left-to-right text, first figure out\n // which bidi section the coordinates fall into.\n if (order) {\n var part = (cm.options.lineWrapping ? coordsBidiPartWrapped : coordsBidiPart)\n (cm, lineObj, lineNo, preparedMeasure, order, x, y);\n ltr = part.level != 1;\n // The awkward -1 offsets are needed because findFirst (called\n // on these below) will treat its first bound as inclusive,\n // second as exclusive, but we want to actually address the\n // characters in the part's range\n begin = ltr ? part.from : part.to - 1;\n end = ltr ? part.to : part.from - 1;\n }\n\n // A binary search to find the first character whose bounding box\n // starts after the coordinates. If we run across any whose box wrap\n // the coordinates, store that.\n var chAround = null, boxAround = null;\n var ch = findFirst(function (ch) {\n var box = measureCharPrepared(cm, preparedMeasure, ch);\n box.top += widgetHeight; box.bottom += widgetHeight;\n if (!boxIsAfter(box, x, y, false)) { return false }\n if (box.top <= y && box.left <= x) {\n chAround = ch;\n boxAround = box;\n }\n return true\n }, begin, end);\n\n var baseX, sticky, outside = false;\n // If a box around the coordinates was found, use that\n if (boxAround) {\n // Distinguish coordinates nearer to the left or right side of the box\n var atLeft = x - boxAround.left < boxAround.right - x, atStart = atLeft == ltr;\n ch = chAround + (atStart ? 0 : 1);\n sticky = atStart ? \"after\" : \"before\";\n baseX = atLeft ? boxAround.left : boxAround.right;\n } else {\n // (Adjust for extended bound, if necessary.)\n if (!ltr && (ch == end || ch == begin)) { ch++; }\n // To determine which side to associate with, get the box to the\n // left of the character and compare it's vertical position to the\n // coordinates\n sticky = ch == 0 ? \"after\" : ch == lineObj.text.length ? \"before\" :\n (measureCharPrepared(cm, preparedMeasure, ch - (ltr ? 1 : 0)).bottom + widgetHeight <= y) == ltr ?\n \"after\" : \"before\";\n // Now get accurate coordinates for this place, in order to get a\n // base X position\n var coords = cursorCoords(cm, Pos(lineNo, ch, sticky), \"line\", lineObj, preparedMeasure);\n baseX = coords.left;\n outside = y < coords.top ? -1 : y >= coords.bottom ? 1 : 0;\n }\n\n ch = skipExtendingChars(lineObj.text, ch, 1);\n return PosWithInfo(lineNo, ch, sticky, outside, x - baseX)\n }\n\n function coordsBidiPart(cm, lineObj, lineNo, preparedMeasure, order, x, y) {\n // Bidi parts are sorted left-to-right, and in a non-line-wrapping\n // situation, we can take this ordering to correspond to the visual\n // ordering. This finds the first part whose end is after the given\n // coordinates.\n var index = findFirst(function (i) {\n var part = order[i], ltr = part.level != 1;\n return boxIsAfter(cursorCoords(cm, Pos(lineNo, ltr ? part.to : part.from, ltr ? \"before\" : \"after\"),\n \"line\", lineObj, preparedMeasure), x, y, true)\n }, 0, order.length - 1);\n var part = order[index];\n // If this isn't the first part, the part's start is also after\n // the coordinates, and the coordinates aren't on the same line as\n // that start, move one part back.\n if (index > 0) {\n var ltr = part.level != 1;\n var start = cursorCoords(cm, Pos(lineNo, ltr ? part.from : part.to, ltr ? \"after\" : \"before\"),\n \"line\", lineObj, preparedMeasure);\n if (boxIsAfter(start, x, y, true) && start.top > y)\n { part = order[index - 1]; }\n }\n return part\n }\n\n function coordsBidiPartWrapped(cm, lineObj, _lineNo, preparedMeasure, order, x, y) {\n // In a wrapped line, rtl text on wrapping boundaries can do things\n // that don't correspond to the ordering in our `order` array at\n // all, so a binary search doesn't work, and we want to return a\n // part that only spans one line so that the binary search in\n // coordsCharInner is safe. As such, we first find the extent of the\n // wrapped line, and then do a flat search in which we discard any\n // spans that aren't on the line.\n var ref = wrappedLineExtent(cm, lineObj, preparedMeasure, y);\n var begin = ref.begin;\n var end = ref.end;\n if (/\\s/.test(lineObj.text.charAt(end - 1))) { end--; }\n var part = null, closestDist = null;\n for (var i = 0; i < order.length; i++) {\n var p = order[i];\n if (p.from >= end || p.to <= begin) { continue }\n var ltr = p.level != 1;\n var endX = measureCharPrepared(cm, preparedMeasure, ltr ? Math.min(end, p.to) - 1 : Math.max(begin, p.from)).right;\n // Weigh against spans ending before this, so that they are only\n // picked if nothing ends after\n var dist = endX < x ? x - endX + 1e9 : endX - x;\n if (!part || closestDist > dist) {\n part = p;\n closestDist = dist;\n }\n }\n if (!part) { part = order[order.length - 1]; }\n // Clip the part to the wrapped line.\n if (part.from < begin) { part = {from: begin, to: part.to, level: part.level}; }\n if (part.to > end) { part = {from: part.from, to: end, level: part.level}; }\n return part\n }\n\n var measureText;\n // Compute the default text height.\n function textHeight(display) {\n if (display.cachedTextHeight != null) { return display.cachedTextHeight }\n if (measureText == null) {\n measureText = elt(\"pre\", null, \"CodeMirror-line-like\");\n // Measure a bunch of lines, for browsers that compute\n // fractional heights.\n for (var i = 0; i < 49; ++i) {\n measureText.appendChild(document.createTextNode(\"x\"));\n measureText.appendChild(elt(\"br\"));\n }\n measureText.appendChild(document.createTextNode(\"x\"));\n }\n removeChildrenAndAdd(display.measure, measureText);\n var height = measureText.offsetHeight / 50;\n if (height > 3) { display.cachedTextHeight = height; }\n removeChildren(display.measure);\n return height || 1\n }\n\n // Compute the default character width.\n function charWidth(display) {\n if (display.cachedCharWidth != null) { return display.cachedCharWidth }\n var anchor = elt(\"span\", \"xxxxxxxxxx\");\n var pre = elt(\"pre\", [anchor], \"CodeMirror-line-like\");\n removeChildrenAndAdd(display.measure, pre);\n var rect = anchor.getBoundingClientRect(), width = (rect.right - rect.left) / 10;\n if (width > 2) { display.cachedCharWidth = width; }\n return width || 10\n }\n\n // Do a bulk-read of the DOM positions and sizes needed to draw the\n // view, so that we don't interleave reading and writing to the DOM.\n function getDimensions(cm) {\n var d = cm.display, left = {}, width = {};\n var gutterLeft = d.gutters.clientLeft;\n for (var n = d.gutters.firstChild, i = 0; n; n = n.nextSibling, ++i) {\n var id = cm.display.gutterSpecs[i].className;\n left[id] = n.offsetLeft + n.clientLeft + gutterLeft;\n width[id] = n.clientWidth;\n }\n return {fixedPos: compensateForHScroll(d),\n gutterTotalWidth: d.gutters.offsetWidth,\n gutterLeft: left,\n gutterWidth: width,\n wrapperWidth: d.wrapper.clientWidth}\n }\n\n // Computes display.scroller.scrollLeft + display.gutters.offsetWidth,\n // but using getBoundingClientRect to get a sub-pixel-accurate\n // result.\n function compensateForHScroll(display) {\n return display.scroller.getBoundingClientRect().left - display.sizer.getBoundingClientRect().left\n }\n\n // Returns a function that estimates the height of a line, to use as\n // first approximation until the line becomes visible (and is thus\n // properly measurable).\n function estimateHeight(cm) {\n var th = textHeight(cm.display), wrapping = cm.options.lineWrapping;\n var perLine = wrapping && Math.max(5, cm.display.scroller.clientWidth / charWidth(cm.display) - 3);\n return function (line) {\n if (lineIsHidden(cm.doc, line)) { return 0 }\n\n var widgetsHeight = 0;\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++) {\n if (line.widgets[i].height) { widgetsHeight += line.widgets[i].height; }\n } }\n\n if (wrapping)\n { return widgetsHeight + (Math.ceil(line.text.length / perLine) || 1) * th }\n else\n { return widgetsHeight + th }\n }\n }\n\n function estimateLineHeights(cm) {\n var doc = cm.doc, est = estimateHeight(cm);\n doc.iter(function (line) {\n var estHeight = est(line);\n if (estHeight != line.height) { updateLineHeight(line, estHeight); }\n });\n }\n\n // Given a mouse event, find the corresponding position. If liberal\n // is false, it checks whether a gutter or scrollbar was clicked,\n // and returns null if it was. forRect is used by rectangular\n // selections, and tries to estimate a character position even for\n // coordinates beyond the right of the text.\n function posFromMouse(cm, e, liberal, forRect) {\n var display = cm.display;\n if (!liberal && e_target(e).getAttribute(\"cm-not-content\") == \"true\") { return null }\n\n var x, y, space = display.lineSpace.getBoundingClientRect();\n // Fails unpredictably on IE[67] when mouse is dragged around quickly.\n try { x = e.clientX - space.left; y = e.clientY - space.top; }\n catch (e$1) { return null }\n var coords = coordsChar(cm, x, y), line;\n if (forRect && coords.xRel > 0 && (line = getLine(cm.doc, coords.line).text).length == coords.ch) {\n var colDiff = countColumn(line, line.length, cm.options.tabSize) - line.length;\n coords = Pos(coords.line, Math.max(0, Math.round((x - paddingH(cm.display).left) / charWidth(cm.display)) - colDiff));\n }\n return coords\n }\n\n // Find the view element corresponding to a given line. Return null\n // when the line isn't visible.\n function findViewIndex(cm, n) {\n if (n >= cm.display.viewTo) { return null }\n n -= cm.display.viewFrom;\n if (n < 0) { return null }\n var view = cm.display.view;\n for (var i = 0; i < view.length; i++) {\n n -= view[i].size;\n if (n < 0) { return i }\n }\n }\n\n // Updates the display.view data structure for a given change to the\n // document. From and to are in pre-change coordinates. Lendiff is\n // the amount of lines added or subtracted by the change. This is\n // used for changes that span multiple lines, or change the way\n // lines are divided into visual lines. regLineChange (below)\n // registers single-line changes.\n function regChange(cm, from, to, lendiff) {\n if (from == null) { from = cm.doc.first; }\n if (to == null) { to = cm.doc.first + cm.doc.size; }\n if (!lendiff) { lendiff = 0; }\n\n var display = cm.display;\n if (lendiff && to < display.viewTo &&\n (display.updateLineNumbers == null || display.updateLineNumbers > from))\n { display.updateLineNumbers = from; }\n\n cm.curOp.viewChanged = true;\n\n if (from >= display.viewTo) { // Change after\n if (sawCollapsedSpans && visualLineNo(cm.doc, from) < display.viewTo)\n { resetView(cm); }\n } else if (to <= display.viewFrom) { // Change before\n if (sawCollapsedSpans && visualLineEndNo(cm.doc, to + lendiff) > display.viewFrom) {\n resetView(cm);\n } else {\n display.viewFrom += lendiff;\n display.viewTo += lendiff;\n }\n } else if (from <= display.viewFrom && to >= display.viewTo) { // Full overlap\n resetView(cm);\n } else if (from <= display.viewFrom) { // Top overlap\n var cut = viewCuttingPoint(cm, to, to + lendiff, 1);\n if (cut) {\n display.view = display.view.slice(cut.index);\n display.viewFrom = cut.lineN;\n display.viewTo += lendiff;\n } else {\n resetView(cm);\n }\n } else if (to >= display.viewTo) { // Bottom overlap\n var cut$1 = viewCuttingPoint(cm, from, from, -1);\n if (cut$1) {\n display.view = display.view.slice(0, cut$1.index);\n display.viewTo = cut$1.lineN;\n } else {\n resetView(cm);\n }\n } else { // Gap in the middle\n var cutTop = viewCuttingPoint(cm, from, from, -1);\n var cutBot = viewCuttingPoint(cm, to, to + lendiff, 1);\n if (cutTop && cutBot) {\n display.view = display.view.slice(0, cutTop.index)\n .concat(buildViewArray(cm, cutTop.lineN, cutBot.lineN))\n .concat(display.view.slice(cutBot.index));\n display.viewTo += lendiff;\n } else {\n resetView(cm);\n }\n }\n\n var ext = display.externalMeasured;\n if (ext) {\n if (to < ext.lineN)\n { ext.lineN += lendiff; }\n else if (from < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n }\n }\n\n // Register a change to a single line. Type must be one of \"text\",\n // \"gutter\", \"class\", \"widget\"\n function regLineChange(cm, line, type) {\n cm.curOp.viewChanged = true;\n var display = cm.display, ext = cm.display.externalMeasured;\n if (ext && line >= ext.lineN && line < ext.lineN + ext.size)\n { display.externalMeasured = null; }\n\n if (line < display.viewFrom || line >= display.viewTo) { return }\n var lineView = display.view[findViewIndex(cm, line)];\n if (lineView.node == null) { return }\n var arr = lineView.changes || (lineView.changes = []);\n if (indexOf(arr, type) == -1) { arr.push(type); }\n }\n\n // Clear the view.\n function resetView(cm) {\n cm.display.viewFrom = cm.display.viewTo = cm.doc.first;\n cm.display.view = [];\n cm.display.viewOffset = 0;\n }\n\n function viewCuttingPoint(cm, oldN, newN, dir) {\n var index = findViewIndex(cm, oldN), diff, view = cm.display.view;\n if (!sawCollapsedSpans || newN == cm.doc.first + cm.doc.size)\n { return {index: index, lineN: newN} }\n var n = cm.display.viewFrom;\n for (var i = 0; i < index; i++)\n { n += view[i].size; }\n if (n != oldN) {\n if (dir > 0) {\n if (index == view.length - 1) { return null }\n diff = (n + view[index].size) - oldN;\n index++;\n } else {\n diff = n - oldN;\n }\n oldN += diff; newN += diff;\n }\n while (visualLineNo(cm.doc, newN) != newN) {\n if (index == (dir < 0 ? 0 : view.length - 1)) { return null }\n newN += dir * view[index - (dir < 0 ? 1 : 0)].size;\n index += dir;\n }\n return {index: index, lineN: newN}\n }\n\n // Force the view to cover a given range, adding empty view element\n // or clipping off existing ones as needed.\n function adjustView(cm, from, to) {\n var display = cm.display, view = display.view;\n if (view.length == 0 || from >= display.viewTo || to <= display.viewFrom) {\n display.view = buildViewArray(cm, from, to);\n display.viewFrom = from;\n } else {\n if (display.viewFrom > from)\n { display.view = buildViewArray(cm, from, display.viewFrom).concat(display.view); }\n else if (display.viewFrom < from)\n { display.view = display.view.slice(findViewIndex(cm, from)); }\n display.viewFrom = from;\n if (display.viewTo < to)\n { display.view = display.view.concat(buildViewArray(cm, display.viewTo, to)); }\n else if (display.viewTo > to)\n { display.view = display.view.slice(0, findViewIndex(cm, to)); }\n }\n display.viewTo = to;\n }\n\n // Count the number of lines in the view whose DOM representation is\n // out of date (or nonexistent).\n function countDirtyView(cm) {\n var view = cm.display.view, dirty = 0;\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i];\n if (!lineView.hidden && (!lineView.node || lineView.changes)) { ++dirty; }\n }\n return dirty\n }\n\n function updateSelection(cm) {\n cm.display.input.showSelection(cm.display.input.prepareSelection());\n }\n\n function prepareSelection(cm, primary) {\n if ( primary === void 0 ) primary = true;\n\n var doc = cm.doc, result = {};\n var curFragment = result.cursors = document.createDocumentFragment();\n var selFragment = result.selection = document.createDocumentFragment();\n\n for (var i = 0; i < doc.sel.ranges.length; i++) {\n if (!primary && i == doc.sel.primIndex) { continue }\n var range = doc.sel.ranges[i];\n if (range.from().line >= cm.display.viewTo || range.to().line < cm.display.viewFrom) { continue }\n var collapsed = range.empty();\n if (collapsed || cm.options.showCursorWhenSelecting)\n { drawSelectionCursor(cm, range.head, curFragment); }\n if (!collapsed)\n { drawSelectionRange(cm, range, selFragment); }\n }\n return result\n }\n\n // Draws a cursor for the given range\n function drawSelectionCursor(cm, head, output) {\n var pos = cursorCoords(cm, head, \"div\", null, null, !cm.options.singleCursorHeightPerLine);\n\n var cursor = output.appendChild(elt(\"div\", \"\\u00a0\", \"CodeMirror-cursor\"));\n cursor.style.left = pos.left + \"px\";\n cursor.style.top = pos.top + \"px\";\n cursor.style.height = Math.max(0, pos.bottom - pos.top) * cm.options.cursorHeight + \"px\";\n\n if (pos.other) {\n // Secondary cursor, shown when on a 'jump' in bi-directional text\n var otherCursor = output.appendChild(elt(\"div\", \"\\u00a0\", \"CodeMirror-cursor CodeMirror-secondarycursor\"));\n otherCursor.style.display = \"\";\n otherCursor.style.left = pos.other.left + \"px\";\n otherCursor.style.top = pos.other.top + \"px\";\n otherCursor.style.height = (pos.other.bottom - pos.other.top) * .85 + \"px\";\n }\n }\n\n function cmpCoords(a, b) { return a.top - b.top || a.left - b.left }\n\n // Draws the given range as a highlighted selection\n function drawSelectionRange(cm, range, output) {\n var display = cm.display, doc = cm.doc;\n var fragment = document.createDocumentFragment();\n var padding = paddingH(cm.display), leftSide = padding.left;\n var rightSide = Math.max(display.sizerWidth, displayWidth(cm) - display.sizer.offsetLeft) - padding.right;\n var docLTR = doc.direction == \"ltr\";\n\n function add(left, top, width, bottom) {\n if (top < 0) { top = 0; }\n top = Math.round(top);\n bottom = Math.round(bottom);\n fragment.appendChild(elt(\"div\", null, \"CodeMirror-selected\", (\"position: absolute; left: \" + left + \"px;\\n top: \" + top + \"px; width: \" + (width == null ? rightSide - left : width) + \"px;\\n height: \" + (bottom - top) + \"px\")));\n }\n\n function drawForLine(line, fromArg, toArg) {\n var lineObj = getLine(doc, line);\n var lineLen = lineObj.text.length;\n var start, end;\n function coords(ch, bias) {\n return charCoords(cm, Pos(line, ch), \"div\", lineObj, bias)\n }\n\n function wrapX(pos, dir, side) {\n var extent = wrappedLineExtentChar(cm, lineObj, null, pos);\n var prop = (dir == \"ltr\") == (side == \"after\") ? \"left\" : \"right\";\n var ch = side == \"after\" ? extent.begin : extent.end - (/\\s/.test(lineObj.text.charAt(extent.end - 1)) ? 2 : 1);\n return coords(ch, prop)[prop]\n }\n\n var order = getOrder(lineObj, doc.direction);\n iterateBidiSections(order, fromArg || 0, toArg == null ? lineLen : toArg, function (from, to, dir, i) {\n var ltr = dir == \"ltr\";\n var fromPos = coords(from, ltr ? \"left\" : \"right\");\n var toPos = coords(to - 1, ltr ? \"right\" : \"left\");\n\n var openStart = fromArg == null && from == 0, openEnd = toArg == null && to == lineLen;\n var first = i == 0, last = !order || i == order.length - 1;\n if (toPos.top - fromPos.top <= 3) { // Single line\n var openLeft = (docLTR ? openStart : openEnd) && first;\n var openRight = (docLTR ? openEnd : openStart) && last;\n var left = openLeft ? leftSide : (ltr ? fromPos : toPos).left;\n var right = openRight ? rightSide : (ltr ? toPos : fromPos).right;\n add(left, fromPos.top, right - left, fromPos.bottom);\n } else { // Multiple lines\n var topLeft, topRight, botLeft, botRight;\n if (ltr) {\n topLeft = docLTR && openStart && first ? leftSide : fromPos.left;\n topRight = docLTR ? rightSide : wrapX(from, dir, \"before\");\n botLeft = docLTR ? leftSide : wrapX(to, dir, \"after\");\n botRight = docLTR && openEnd && last ? rightSide : toPos.right;\n } else {\n topLeft = !docLTR ? leftSide : wrapX(from, dir, \"before\");\n topRight = !docLTR && openStart && first ? rightSide : fromPos.right;\n botLeft = !docLTR && openEnd && last ? leftSide : toPos.left;\n botRight = !docLTR ? rightSide : wrapX(to, dir, \"after\");\n }\n add(topLeft, fromPos.top, topRight - topLeft, fromPos.bottom);\n if (fromPos.bottom < toPos.top) { add(leftSide, fromPos.bottom, null, toPos.top); }\n add(botLeft, toPos.top, botRight - botLeft, toPos.bottom);\n }\n\n if (!start || cmpCoords(fromPos, start) < 0) { start = fromPos; }\n if (cmpCoords(toPos, start) < 0) { start = toPos; }\n if (!end || cmpCoords(fromPos, end) < 0) { end = fromPos; }\n if (cmpCoords(toPos, end) < 0) { end = toPos; }\n });\n return {start: start, end: end}\n }\n\n var sFrom = range.from(), sTo = range.to();\n if (sFrom.line == sTo.line) {\n drawForLine(sFrom.line, sFrom.ch, sTo.ch);\n } else {\n var fromLine = getLine(doc, sFrom.line), toLine = getLine(doc, sTo.line);\n var singleVLine = visualLine(fromLine) == visualLine(toLine);\n var leftEnd = drawForLine(sFrom.line, sFrom.ch, singleVLine ? fromLine.text.length + 1 : null).end;\n var rightStart = drawForLine(sTo.line, singleVLine ? 0 : null, sTo.ch).start;\n if (singleVLine) {\n if (leftEnd.top < rightStart.top - 2) {\n add(leftEnd.right, leftEnd.top, null, leftEnd.bottom);\n add(leftSide, rightStart.top, rightStart.left, rightStart.bottom);\n } else {\n add(leftEnd.right, leftEnd.top, rightStart.left - leftEnd.right, leftEnd.bottom);\n }\n }\n if (leftEnd.bottom < rightStart.top)\n { add(leftSide, leftEnd.bottom, null, rightStart.top); }\n }\n\n output.appendChild(fragment);\n }\n\n // Cursor-blinking\n function restartBlink(cm) {\n if (!cm.state.focused) { return }\n var display = cm.display;\n clearInterval(display.blinker);\n var on = true;\n display.cursorDiv.style.visibility = \"\";\n if (cm.options.cursorBlinkRate > 0)\n { display.blinker = setInterval(function () {\n if (!cm.hasFocus()) { onBlur(cm); }\n display.cursorDiv.style.visibility = (on = !on) ? \"\" : \"hidden\";\n }, cm.options.cursorBlinkRate); }\n else if (cm.options.cursorBlinkRate < 0)\n { display.cursorDiv.style.visibility = \"hidden\"; }\n }\n\n function ensureFocus(cm) {\n if (!cm.state.focused) { cm.display.input.focus(); onFocus(cm); }\n }\n\n function delayBlurEvent(cm) {\n cm.state.delayingBlurEvent = true;\n setTimeout(function () { if (cm.state.delayingBlurEvent) {\n cm.state.delayingBlurEvent = false;\n onBlur(cm);\n } }, 100);\n }\n\n function onFocus(cm, e) {\n if (cm.state.delayingBlurEvent) { cm.state.delayingBlurEvent = false; }\n\n if (cm.options.readOnly == \"nocursor\") { return }\n if (!cm.state.focused) {\n signal(cm, \"focus\", cm, e);\n cm.state.focused = true;\n addClass(cm.display.wrapper, \"CodeMirror-focused\");\n // This test prevents this from firing when a context\n // menu is closed (since the input reset would kill the\n // select-all detection hack)\n if (!cm.curOp && cm.display.selForContextMenu != cm.doc.sel) {\n cm.display.input.reset();\n if (webkit) { setTimeout(function () { return cm.display.input.reset(true); }, 20); } // Issue #1730\n }\n cm.display.input.receivedFocus();\n }\n restartBlink(cm);\n }\n function onBlur(cm, e) {\n if (cm.state.delayingBlurEvent) { return }\n\n if (cm.state.focused) {\n signal(cm, \"blur\", cm, e);\n cm.state.focused = false;\n rmClass(cm.display.wrapper, \"CodeMirror-focused\");\n }\n clearInterval(cm.display.blinker);\n setTimeout(function () { if (!cm.state.focused) { cm.display.shift = false; } }, 150);\n }\n\n // Read the actual heights of the rendered lines, and update their\n // stored heights to match.\n function updateHeightsInViewport(cm) {\n var display = cm.display;\n var prevBottom = display.lineDiv.offsetTop;\n for (var i = 0; i < display.view.length; i++) {\n var cur = display.view[i], wrapping = cm.options.lineWrapping;\n var height = (void 0), width = 0;\n if (cur.hidden) { continue }\n if (ie && ie_version < 8) {\n var bot = cur.node.offsetTop + cur.node.offsetHeight;\n height = bot - prevBottom;\n prevBottom = bot;\n } else {\n var box = cur.node.getBoundingClientRect();\n height = box.bottom - box.top;\n // Check that lines don't extend past the right of the current\n // editor width\n if (!wrapping && cur.text.firstChild)\n { width = cur.text.firstChild.getBoundingClientRect().right - box.left - 1; }\n }\n var diff = cur.line.height - height;\n if (diff > .005 || diff < -.005) {\n updateLineHeight(cur.line, height);\n updateWidgetHeight(cur.line);\n if (cur.rest) { for (var j = 0; j < cur.rest.length; j++)\n { updateWidgetHeight(cur.rest[j]); } }\n }\n if (width > cm.display.sizerWidth) {\n var chWidth = Math.ceil(width / charWidth(cm.display));\n if (chWidth > cm.display.maxLineLength) {\n cm.display.maxLineLength = chWidth;\n cm.display.maxLine = cur.line;\n cm.display.maxLineChanged = true;\n }\n }\n }\n }\n\n // Read and store the height of line widgets associated with the\n // given line.\n function updateWidgetHeight(line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; ++i) {\n var w = line.widgets[i], parent = w.node.parentNode;\n if (parent) { w.height = parent.offsetHeight; }\n } }\n }\n\n // Compute the lines that are visible in a given viewport (defaults\n // the the current scroll position). viewport may contain top,\n // height, and ensure (see op.scrollToPos) properties.\n function visibleLines(display, doc, viewport) {\n var top = viewport && viewport.top != null ? Math.max(0, viewport.top) : display.scroller.scrollTop;\n top = Math.floor(top - paddingTop(display));\n var bottom = viewport && viewport.bottom != null ? viewport.bottom : top + display.wrapper.clientHeight;\n\n var from = lineAtHeight(doc, top), to = lineAtHeight(doc, bottom);\n // Ensure is a {from: {line, ch}, to: {line, ch}} object, and\n // forces those lines into the viewport (if possible).\n if (viewport && viewport.ensure) {\n var ensureFrom = viewport.ensure.from.line, ensureTo = viewport.ensure.to.line;\n if (ensureFrom < from) {\n from = ensureFrom;\n to = lineAtHeight(doc, heightAtLine(getLine(doc, ensureFrom)) + display.wrapper.clientHeight);\n } else if (Math.min(ensureTo, doc.lastLine()) >= to) {\n from = lineAtHeight(doc, heightAtLine(getLine(doc, ensureTo)) - display.wrapper.clientHeight);\n to = ensureTo;\n }\n }\n return {from: from, to: Math.max(to, from + 1)}\n }\n\n // SCROLLING THINGS INTO VIEW\n\n // If an editor sits on the top or bottom of the window, partially\n // scrolled out of view, this ensures that the cursor is visible.\n function maybeScrollWindow(cm, rect) {\n if (signalDOMEvent(cm, \"scrollCursorIntoView\")) { return }\n\n var display = cm.display, box = display.sizer.getBoundingClientRect(), doScroll = null;\n if (rect.top + box.top < 0) { doScroll = true; }\n else if (rect.bottom + box.top > (window.innerHeight || document.documentElement.clientHeight)) { doScroll = false; }\n if (doScroll != null && !phantom) {\n var scrollNode = elt(\"div\", \"\\u200b\", null, (\"position: absolute;\\n top: \" + (rect.top - display.viewOffset - paddingTop(cm.display)) + \"px;\\n height: \" + (rect.bottom - rect.top + scrollGap(cm) + display.barHeight) + \"px;\\n left: \" + (rect.left) + \"px; width: \" + (Math.max(2, rect.right - rect.left)) + \"px;\"));\n cm.display.lineSpace.appendChild(scrollNode);\n scrollNode.scrollIntoView(doScroll);\n cm.display.lineSpace.removeChild(scrollNode);\n }\n }\n\n // Scroll a given position into view (immediately), verifying that\n // it actually became visible (as line heights are accurately\n // measured, the position of something may 'drift' during drawing).\n function scrollPosIntoView(cm, pos, end, margin) {\n if (margin == null) { margin = 0; }\n var rect;\n if (!cm.options.lineWrapping && pos == end) {\n // Set pos and end to the cursor positions around the character pos sticks to\n // If pos.sticky == \"before\", that is around pos.ch - 1, otherwise around pos.ch\n // If pos == Pos(_, 0, \"before\"), pos and end are unchanged\n pos = pos.ch ? Pos(pos.line, pos.sticky == \"before\" ? pos.ch - 1 : pos.ch, \"after\") : pos;\n end = pos.sticky == \"before\" ? Pos(pos.line, pos.ch + 1, \"before\") : pos;\n }\n for (var limit = 0; limit < 5; limit++) {\n var changed = false;\n var coords = cursorCoords(cm, pos);\n var endCoords = !end || end == pos ? coords : cursorCoords(cm, end);\n rect = {left: Math.min(coords.left, endCoords.left),\n top: Math.min(coords.top, endCoords.top) - margin,\n right: Math.max(coords.left, endCoords.left),\n bottom: Math.max(coords.bottom, endCoords.bottom) + margin};\n var scrollPos = calculateScrollPos(cm, rect);\n var startTop = cm.doc.scrollTop, startLeft = cm.doc.scrollLeft;\n if (scrollPos.scrollTop != null) {\n updateScrollTop(cm, scrollPos.scrollTop);\n if (Math.abs(cm.doc.scrollTop - startTop) > 1) { changed = true; }\n }\n if (scrollPos.scrollLeft != null) {\n setScrollLeft(cm, scrollPos.scrollLeft);\n if (Math.abs(cm.doc.scrollLeft - startLeft) > 1) { changed = true; }\n }\n if (!changed) { break }\n }\n return rect\n }\n\n // Scroll a given set of coordinates into view (immediately).\n function scrollIntoView(cm, rect) {\n var scrollPos = calculateScrollPos(cm, rect);\n if (scrollPos.scrollTop != null) { updateScrollTop(cm, scrollPos.scrollTop); }\n if (scrollPos.scrollLeft != null) { setScrollLeft(cm, scrollPos.scrollLeft); }\n }\n\n // Calculate a new scroll position needed to scroll the given\n // rectangle into view. Returns an object with scrollTop and\n // scrollLeft properties. When these are undefined, the\n // vertical/horizontal position does not need to be adjusted.\n function calculateScrollPos(cm, rect) {\n var display = cm.display, snapMargin = textHeight(cm.display);\n if (rect.top < 0) { rect.top = 0; }\n var screentop = cm.curOp && cm.curOp.scrollTop != null ? cm.curOp.scrollTop : display.scroller.scrollTop;\n var screen = displayHeight(cm), result = {};\n if (rect.bottom - rect.top > screen) { rect.bottom = rect.top + screen; }\n var docBottom = cm.doc.height + paddingVert(display);\n var atTop = rect.top < snapMargin, atBottom = rect.bottom > docBottom - snapMargin;\n if (rect.top < screentop) {\n result.scrollTop = atTop ? 0 : rect.top;\n } else if (rect.bottom > screentop + screen) {\n var newTop = Math.min(rect.top, (atBottom ? docBottom : rect.bottom) - screen);\n if (newTop != screentop) { result.scrollTop = newTop; }\n }\n\n var screenleft = cm.curOp && cm.curOp.scrollLeft != null ? cm.curOp.scrollLeft : display.scroller.scrollLeft;\n var screenw = displayWidth(cm) - (cm.options.fixedGutter ? display.gutters.offsetWidth : 0);\n var tooWide = rect.right - rect.left > screenw;\n if (tooWide) { rect.right = rect.left + screenw; }\n if (rect.left < 10)\n { result.scrollLeft = 0; }\n else if (rect.left < screenleft)\n { result.scrollLeft = Math.max(0, rect.left - (tooWide ? 0 : 10)); }\n else if (rect.right > screenw + screenleft - 3)\n { result.scrollLeft = rect.right + (tooWide ? 0 : 10) - screenw; }\n return result\n }\n\n // Store a relative adjustment to the scroll position in the current\n // operation (to be applied when the operation finishes).\n function addToScrollTop(cm, top) {\n if (top == null) { return }\n resolveScrollToPos(cm);\n cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;\n }\n\n // Make sure that at the end of the operation the current cursor is\n // shown.\n function ensureCursorVisible(cm) {\n resolveScrollToPos(cm);\n var cur = cm.getCursor();\n cm.curOp.scrollToPos = {from: cur, to: cur, margin: cm.options.cursorScrollMargin};\n }\n\n function scrollToCoords(cm, x, y) {\n if (x != null || y != null) { resolveScrollToPos(cm); }\n if (x != null) { cm.curOp.scrollLeft = x; }\n if (y != null) { cm.curOp.scrollTop = y; }\n }\n\n function scrollToRange(cm, range) {\n resolveScrollToPos(cm);\n cm.curOp.scrollToPos = range;\n }\n\n // When an operation has its scrollToPos property set, and another\n // scroll action is applied before the end of the operation, this\n // 'simulates' scrolling that position into view in a cheap way, so\n // that the effect of intermediate scroll commands is not ignored.\n function resolveScrollToPos(cm) {\n var range = cm.curOp.scrollToPos;\n if (range) {\n cm.curOp.scrollToPos = null;\n var from = estimateCoords(cm, range.from), to = estimateCoords(cm, range.to);\n scrollToCoordsRange(cm, from, to, range.margin);\n }\n }\n\n function scrollToCoordsRange(cm, from, to, margin) {\n var sPos = calculateScrollPos(cm, {\n left: Math.min(from.left, to.left),\n top: Math.min(from.top, to.top) - margin,\n right: Math.max(from.right, to.right),\n bottom: Math.max(from.bottom, to.bottom) + margin\n });\n scrollToCoords(cm, sPos.scrollLeft, sPos.scrollTop);\n }\n\n // Sync the scrollable area and scrollbars, ensure the viewport\n // covers the visible area.\n function updateScrollTop(cm, val) {\n if (Math.abs(cm.doc.scrollTop - val) < 2) { return }\n if (!gecko) { updateDisplaySimple(cm, {top: val}); }\n setScrollTop(cm, val, true);\n if (gecko) { updateDisplaySimple(cm); }\n startWorker(cm, 100);\n }\n\n function setScrollTop(cm, val, forceScroll) {\n val = Math.max(0, Math.min(cm.display.scroller.scrollHeight - cm.display.scroller.clientHeight, val));\n if (cm.display.scroller.scrollTop == val && !forceScroll) { return }\n cm.doc.scrollTop = val;\n cm.display.scrollbars.setScrollTop(val);\n if (cm.display.scroller.scrollTop != val) { cm.display.scroller.scrollTop = val; }\n }\n\n // Sync scroller and scrollbar, ensure the gutter elements are\n // aligned.\n function setScrollLeft(cm, val, isScroller, forceScroll) {\n val = Math.max(0, Math.min(val, cm.display.scroller.scrollWidth - cm.display.scroller.clientWidth));\n if ((isScroller ? val == cm.doc.scrollLeft : Math.abs(cm.doc.scrollLeft - val) < 2) && !forceScroll) { return }\n cm.doc.scrollLeft = val;\n alignHorizontally(cm);\n if (cm.display.scroller.scrollLeft != val) { cm.display.scroller.scrollLeft = val; }\n cm.display.scrollbars.setScrollLeft(val);\n }\n\n // SCROLLBARS\n\n // Prepare DOM reads needed to update the scrollbars. Done in one\n // shot to minimize update/measure roundtrips.\n function measureForScrollbars(cm) {\n var d = cm.display, gutterW = d.gutters.offsetWidth;\n var docH = Math.round(cm.doc.height + paddingVert(cm.display));\n return {\n clientHeight: d.scroller.clientHeight,\n viewHeight: d.wrapper.clientHeight,\n scrollWidth: d.scroller.scrollWidth, clientWidth: d.scroller.clientWidth,\n viewWidth: d.wrapper.clientWidth,\n barLeft: cm.options.fixedGutter ? gutterW : 0,\n docHeight: docH,\n scrollHeight: docH + scrollGap(cm) + d.barHeight,\n nativeBarWidth: d.nativeBarWidth,\n gutterWidth: gutterW\n }\n }\n\n var NativeScrollbars = function(place, scroll, cm) {\n this.cm = cm;\n var vert = this.vert = elt(\"div\", [elt(\"div\", null, null, \"min-width: 1px\")], \"CodeMirror-vscrollbar\");\n var horiz = this.horiz = elt(\"div\", [elt(\"div\", null, null, \"height: 100%; min-height: 1px\")], \"CodeMirror-hscrollbar\");\n vert.tabIndex = horiz.tabIndex = -1;\n place(vert); place(horiz);\n\n on(vert, \"scroll\", function () {\n if (vert.clientHeight) { scroll(vert.scrollTop, \"vertical\"); }\n });\n on(horiz, \"scroll\", function () {\n if (horiz.clientWidth) { scroll(horiz.scrollLeft, \"horizontal\"); }\n });\n\n this.checkedZeroWidth = false;\n // Need to set a minimum width to see the scrollbar on IE7 (but must not set it on IE8).\n if (ie && ie_version < 8) { this.horiz.style.minHeight = this.vert.style.minWidth = \"18px\"; }\n };\n\n NativeScrollbars.prototype.update = function (measure) {\n var needsH = measure.scrollWidth > measure.clientWidth + 1;\n var needsV = measure.scrollHeight > measure.clientHeight + 1;\n var sWidth = measure.nativeBarWidth;\n\n if (needsV) {\n this.vert.style.display = \"block\";\n this.vert.style.bottom = needsH ? sWidth + \"px\" : \"0\";\n var totalHeight = measure.viewHeight - (needsH ? sWidth : 0);\n // A bug in IE8 can cause this value to be negative, so guard it.\n this.vert.firstChild.style.height =\n Math.max(0, measure.scrollHeight - measure.clientHeight + totalHeight) + \"px\";\n } else {\n this.vert.style.display = \"\";\n this.vert.firstChild.style.height = \"0\";\n }\n\n if (needsH) {\n this.horiz.style.display = \"block\";\n this.horiz.style.right = needsV ? sWidth + \"px\" : \"0\";\n this.horiz.style.left = measure.barLeft + \"px\";\n var totalWidth = measure.viewWidth - measure.barLeft - (needsV ? sWidth : 0);\n this.horiz.firstChild.style.width =\n Math.max(0, measure.scrollWidth - measure.clientWidth + totalWidth) + \"px\";\n } else {\n this.horiz.style.display = \"\";\n this.horiz.firstChild.style.width = \"0\";\n }\n\n if (!this.checkedZeroWidth && measure.clientHeight > 0) {\n if (sWidth == 0) { this.zeroWidthHack(); }\n this.checkedZeroWidth = true;\n }\n\n return {right: needsV ? sWidth : 0, bottom: needsH ? sWidth : 0}\n };\n\n NativeScrollbars.prototype.setScrollLeft = function (pos) {\n if (this.horiz.scrollLeft != pos) { this.horiz.scrollLeft = pos; }\n if (this.disableHoriz) { this.enableZeroWidthBar(this.horiz, this.disableHoriz, \"horiz\"); }\n };\n\n NativeScrollbars.prototype.setScrollTop = function (pos) {\n if (this.vert.scrollTop != pos) { this.vert.scrollTop = pos; }\n if (this.disableVert) { this.enableZeroWidthBar(this.vert, this.disableVert, \"vert\"); }\n };\n\n NativeScrollbars.prototype.zeroWidthHack = function () {\n var w = mac && !mac_geMountainLion ? \"12px\" : \"18px\";\n this.horiz.style.height = this.vert.style.width = w;\n this.horiz.style.pointerEvents = this.vert.style.pointerEvents = \"none\";\n this.disableHoriz = new Delayed;\n this.disableVert = new Delayed;\n };\n\n NativeScrollbars.prototype.enableZeroWidthBar = function (bar, delay, type) {\n bar.style.pointerEvents = \"auto\";\n function maybeDisable() {\n // To find out whether the scrollbar is still visible, we\n // check whether the element under the pixel in the bottom\n // right corner of the scrollbar box is the scrollbar box\n // itself (when the bar is still visible) or its filler child\n // (when the bar is hidden). If it is still visible, we keep\n // it enabled, if it's hidden, we disable pointer events.\n var box = bar.getBoundingClientRect();\n var elt = type == \"vert\" ? document.elementFromPoint(box.right - 1, (box.top + box.bottom) / 2)\n : document.elementFromPoint((box.right + box.left) / 2, box.bottom - 1);\n if (elt != bar) { bar.style.pointerEvents = \"none\"; }\n else { delay.set(1000, maybeDisable); }\n }\n delay.set(1000, maybeDisable);\n };\n\n NativeScrollbars.prototype.clear = function () {\n var parent = this.horiz.parentNode;\n parent.removeChild(this.horiz);\n parent.removeChild(this.vert);\n };\n\n var NullScrollbars = function () {};\n\n NullScrollbars.prototype.update = function () { return {bottom: 0, right: 0} };\n NullScrollbars.prototype.setScrollLeft = function () {};\n NullScrollbars.prototype.setScrollTop = function () {};\n NullScrollbars.prototype.clear = function () {};\n\n function updateScrollbars(cm, measure) {\n if (!measure) { measure = measureForScrollbars(cm); }\n var startWidth = cm.display.barWidth, startHeight = cm.display.barHeight;\n updateScrollbarsInner(cm, measure);\n for (var i = 0; i < 4 && startWidth != cm.display.barWidth || startHeight != cm.display.barHeight; i++) {\n if (startWidth != cm.display.barWidth && cm.options.lineWrapping)\n { updateHeightsInViewport(cm); }\n updateScrollbarsInner(cm, measureForScrollbars(cm));\n startWidth = cm.display.barWidth; startHeight = cm.display.barHeight;\n }\n }\n\n // Re-synchronize the fake scrollbars with the actual size of the\n // content.\n function updateScrollbarsInner(cm, measure) {\n var d = cm.display;\n var sizes = d.scrollbars.update(measure);\n\n d.sizer.style.paddingRight = (d.barWidth = sizes.right) + \"px\";\n d.sizer.style.paddingBottom = (d.barHeight = sizes.bottom) + \"px\";\n d.heightForcer.style.borderBottom = sizes.bottom + \"px solid transparent\";\n\n if (sizes.right && sizes.bottom) {\n d.scrollbarFiller.style.display = \"block\";\n d.scrollbarFiller.style.height = sizes.bottom + \"px\";\n d.scrollbarFiller.style.width = sizes.right + \"px\";\n } else { d.scrollbarFiller.style.display = \"\"; }\n if (sizes.bottom && cm.options.coverGutterNextToScrollbar && cm.options.fixedGutter) {\n d.gutterFiller.style.display = \"block\";\n d.gutterFiller.style.height = sizes.bottom + \"px\";\n d.gutterFiller.style.width = measure.gutterWidth + \"px\";\n } else { d.gutterFiller.style.display = \"\"; }\n }\n\n var scrollbarModel = {\"native\": NativeScrollbars, \"null\": NullScrollbars};\n\n function initScrollbars(cm) {\n if (cm.display.scrollbars) {\n cm.display.scrollbars.clear();\n if (cm.display.scrollbars.addClass)\n { rmClass(cm.display.wrapper, cm.display.scrollbars.addClass); }\n }\n\n cm.display.scrollbars = new scrollbarModel[cm.options.scrollbarStyle](function (node) {\n cm.display.wrapper.insertBefore(node, cm.display.scrollbarFiller);\n // Prevent clicks in the scrollbars from killing focus\n on(node, \"mousedown\", function () {\n if (cm.state.focused) { setTimeout(function () { return cm.display.input.focus(); }, 0); }\n });\n node.setAttribute(\"cm-not-content\", \"true\");\n }, function (pos, axis) {\n if (axis == \"horizontal\") { setScrollLeft(cm, pos); }\n else { updateScrollTop(cm, pos); }\n }, cm);\n if (cm.display.scrollbars.addClass)\n { addClass(cm.display.wrapper, cm.display.scrollbars.addClass); }\n }\n\n // Operations are used to wrap a series of changes to the editor\n // state in such a way that each change won't have to update the\n // cursor and display (which would be awkward, slow, and\n // error-prone). Instead, display updates are batched and then all\n // combined and executed at once.\n\n var nextOpId = 0;\n // Start a new operation.\n function startOperation(cm) {\n cm.curOp = {\n cm: cm,\n viewChanged: false, // Flag that indicates that lines might need to be redrawn\n startHeight: cm.doc.height, // Used to detect need to update scrollbar\n forceUpdate: false, // Used to force a redraw\n updateInput: 0, // Whether to reset the input textarea\n typing: false, // Whether this reset should be careful to leave existing text (for compositing)\n changeObjs: null, // Accumulated changes, for firing change events\n cursorActivityHandlers: null, // Set of handlers to fire cursorActivity on\n cursorActivityCalled: 0, // Tracks which cursorActivity handlers have been called already\n selectionChanged: false, // Whether the selection needs to be redrawn\n updateMaxLine: false, // Set when the widest line needs to be determined anew\n scrollLeft: null, scrollTop: null, // Intermediate scroll position, not pushed to DOM yet\n scrollToPos: null, // Used to scroll to a specific position\n focus: false,\n id: ++nextOpId // Unique ID\n };\n pushOperation(cm.curOp);\n }\n\n // Finish an operation, updating the display and signalling delayed events\n function endOperation(cm) {\n var op = cm.curOp;\n if (op) { finishOperation(op, function (group) {\n for (var i = 0; i < group.ops.length; i++)\n { group.ops[i].cm.curOp = null; }\n endOperations(group);\n }); }\n }\n\n // The DOM updates done when an operation finishes are batched so\n // that the minimum number of relayouts are required.\n function endOperations(group) {\n var ops = group.ops;\n for (var i = 0; i < ops.length; i++) // Read DOM\n { endOperation_R1(ops[i]); }\n for (var i$1 = 0; i$1 < ops.length; i$1++) // Write DOM (maybe)\n { endOperation_W1(ops[i$1]); }\n for (var i$2 = 0; i$2 < ops.length; i$2++) // Read DOM\n { endOperation_R2(ops[i$2]); }\n for (var i$3 = 0; i$3 < ops.length; i$3++) // Write DOM (maybe)\n { endOperation_W2(ops[i$3]); }\n for (var i$4 = 0; i$4 < ops.length; i$4++) // Read DOM\n { endOperation_finish(ops[i$4]); }\n }\n\n function endOperation_R1(op) {\n var cm = op.cm, display = cm.display;\n maybeClipScrollbars(cm);\n if (op.updateMaxLine) { findMaxLine(cm); }\n\n op.mustUpdate = op.viewChanged || op.forceUpdate || op.scrollTop != null ||\n op.scrollToPos && (op.scrollToPos.from.line < display.viewFrom ||\n op.scrollToPos.to.line >= display.viewTo) ||\n display.maxLineChanged && cm.options.lineWrapping;\n op.update = op.mustUpdate &&\n new DisplayUpdate(cm, op.mustUpdate && {top: op.scrollTop, ensure: op.scrollToPos}, op.forceUpdate);\n }\n\n function endOperation_W1(op) {\n op.updatedDisplay = op.mustUpdate && updateDisplayIfNeeded(op.cm, op.update);\n }\n\n function endOperation_R2(op) {\n var cm = op.cm, display = cm.display;\n if (op.updatedDisplay) { updateHeightsInViewport(cm); }\n\n op.barMeasure = measureForScrollbars(cm);\n\n // If the max line changed since it was last measured, measure it,\n // and ensure the document's width matches it.\n // updateDisplay_W2 will use these properties to do the actual resizing\n if (display.maxLineChanged && !cm.options.lineWrapping) {\n op.adjustWidthTo = measureChar(cm, display.maxLine, display.maxLine.text.length).left + 3;\n cm.display.sizerWidth = op.adjustWidthTo;\n op.barMeasure.scrollWidth =\n Math.max(display.scroller.clientWidth, display.sizer.offsetLeft + op.adjustWidthTo + scrollGap(cm) + cm.display.barWidth);\n op.maxScrollLeft = Math.max(0, display.sizer.offsetLeft + op.adjustWidthTo - displayWidth(cm));\n }\n\n if (op.updatedDisplay || op.selectionChanged)\n { op.preparedSelection = display.input.prepareSelection(); }\n }\n\n function endOperation_W2(op) {\n var cm = op.cm;\n\n if (op.adjustWidthTo != null) {\n cm.display.sizer.style.minWidth = op.adjustWidthTo + \"px\";\n if (op.maxScrollLeft < cm.doc.scrollLeft)\n { setScrollLeft(cm, Math.min(cm.display.scroller.scrollLeft, op.maxScrollLeft), true); }\n cm.display.maxLineChanged = false;\n }\n\n var takeFocus = op.focus && op.focus == activeElt();\n if (op.preparedSelection)\n { cm.display.input.showSelection(op.preparedSelection, takeFocus); }\n if (op.updatedDisplay || op.startHeight != cm.doc.height)\n { updateScrollbars(cm, op.barMeasure); }\n if (op.updatedDisplay)\n { setDocumentHeight(cm, op.barMeasure); }\n\n if (op.selectionChanged) { restartBlink(cm); }\n\n if (cm.state.focused && op.updateInput)\n { cm.display.input.reset(op.typing); }\n if (takeFocus) { ensureFocus(op.cm); }\n }\n\n function endOperation_finish(op) {\n var cm = op.cm, display = cm.display, doc = cm.doc;\n\n if (op.updatedDisplay) { postUpdateDisplay(cm, op.update); }\n\n // Abort mouse wheel delta measurement, when scrolling explicitly\n if (display.wheelStartX != null && (op.scrollTop != null || op.scrollLeft != null || op.scrollToPos))\n { display.wheelStartX = display.wheelStartY = null; }\n\n // Propagate the scroll position to the actual DOM scroller\n if (op.scrollTop != null) { setScrollTop(cm, op.scrollTop, op.forceScroll); }\n\n if (op.scrollLeft != null) { setScrollLeft(cm, op.scrollLeft, true, true); }\n // If we need to scroll a specific position into view, do so.\n if (op.scrollToPos) {\n var rect = scrollPosIntoView(cm, clipPos(doc, op.scrollToPos.from),\n clipPos(doc, op.scrollToPos.to), op.scrollToPos.margin);\n maybeScrollWindow(cm, rect);\n }\n\n // Fire events for markers that are hidden/unidden by editing or\n // undoing\n var hidden = op.maybeHiddenMarkers, unhidden = op.maybeUnhiddenMarkers;\n if (hidden) { for (var i = 0; i < hidden.length; ++i)\n { if (!hidden[i].lines.length) { signal(hidden[i], \"hide\"); } } }\n if (unhidden) { for (var i$1 = 0; i$1 < unhidden.length; ++i$1)\n { if (unhidden[i$1].lines.length) { signal(unhidden[i$1], \"unhide\"); } } }\n\n if (display.wrapper.offsetHeight)\n { doc.scrollTop = cm.display.scroller.scrollTop; }\n\n // Fire change events, and delayed event handlers\n if (op.changeObjs)\n { signal(cm, \"changes\", cm, op.changeObjs); }\n if (op.update)\n { op.update.finish(); }\n }\n\n // Run the given function in an operation\n function runInOp(cm, f) {\n if (cm.curOp) { return f() }\n startOperation(cm);\n try { return f() }\n finally { endOperation(cm); }\n }\n // Wraps a function in an operation. Returns the wrapped function.\n function operation(cm, f) {\n return function() {\n if (cm.curOp) { return f.apply(cm, arguments) }\n startOperation(cm);\n try { return f.apply(cm, arguments) }\n finally { endOperation(cm); }\n }\n }\n // Used to add methods to editor and doc instances, wrapping them in\n // operations.\n function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }\n function docMethodOp(f) {\n return function() {\n var cm = this.cm;\n if (!cm || cm.curOp) { return f.apply(this, arguments) }\n startOperation(cm);\n try { return f.apply(this, arguments) }\n finally { endOperation(cm); }\n }\n }\n\n // HIGHLIGHT WORKER\n\n function startWorker(cm, time) {\n if (cm.doc.highlightFrontier < cm.display.viewTo)\n { cm.state.highlight.set(time, bind(highlightWorker, cm)); }\n }\n\n function highlightWorker(cm) {\n var doc = cm.doc;\n if (doc.highlightFrontier >= cm.display.viewTo) { return }\n var end = +new Date + cm.options.workTime;\n var context = getContextBefore(cm, doc.highlightFrontier);\n var changedLines = [];\n\n doc.iter(context.line, Math.min(doc.first + doc.size, cm.display.viewTo + 500), function (line) {\n if (context.line >= cm.display.viewFrom) { // Visible\n var oldStyles = line.styles;\n var resetState = line.text.length > cm.options.maxHighlightLength ? copyState(doc.mode, context.state) : null;\n var highlighted = highlightLine(cm, line, context, true);\n if (resetState) { context.state = resetState; }\n line.styles = highlighted.styles;\n var oldCls = line.styleClasses, newCls = highlighted.classes;\n if (newCls) { line.styleClasses = newCls; }\n else if (oldCls) { line.styleClasses = null; }\n var ischange = !oldStyles || oldStyles.length != line.styles.length ||\n oldCls != newCls && (!oldCls || !newCls || oldCls.bgClass != newCls.bgClass || oldCls.textClass != newCls.textClass);\n for (var i = 0; !ischange && i < oldStyles.length; ++i) { ischange = oldStyles[i] != line.styles[i]; }\n if (ischange) { changedLines.push(context.line); }\n line.stateAfter = context.save();\n context.nextLine();\n } else {\n if (line.text.length <= cm.options.maxHighlightLength)\n { processLine(cm, line.text, context); }\n line.stateAfter = context.line % 5 == 0 ? context.save() : null;\n context.nextLine();\n }\n if (+new Date > end) {\n startWorker(cm, cm.options.workDelay);\n return true\n }\n });\n doc.highlightFrontier = context.line;\n doc.modeFrontier = Math.max(doc.modeFrontier, context.line);\n if (changedLines.length) { runInOp(cm, function () {\n for (var i = 0; i < changedLines.length; i++)\n { regLineChange(cm, changedLines[i], \"text\"); }\n }); }\n }\n\n // DISPLAY DRAWING\n\n var DisplayUpdate = function(cm, viewport, force) {\n var display = cm.display;\n\n this.viewport = viewport;\n // Store some values that we'll need later (but don't want to force a relayout for)\n this.visible = visibleLines(display, cm.doc, viewport);\n this.editorIsHidden = !display.wrapper.offsetWidth;\n this.wrapperHeight = display.wrapper.clientHeight;\n this.wrapperWidth = display.wrapper.clientWidth;\n this.oldDisplayWidth = displayWidth(cm);\n this.force = force;\n this.dims = getDimensions(cm);\n this.events = [];\n };\n\n DisplayUpdate.prototype.signal = function (emitter, type) {\n if (hasHandler(emitter, type))\n { this.events.push(arguments); }\n };\n DisplayUpdate.prototype.finish = function () {\n for (var i = 0; i < this.events.length; i++)\n { signal.apply(null, this.events[i]); }\n };\n\n function maybeClipScrollbars(cm) {\n var display = cm.display;\n if (!display.scrollbarsClipped && display.scroller.offsetWidth) {\n display.nativeBarWidth = display.scroller.offsetWidth - display.scroller.clientWidth;\n display.heightForcer.style.height = scrollGap(cm) + \"px\";\n display.sizer.style.marginBottom = -display.nativeBarWidth + \"px\";\n display.sizer.style.borderRightWidth = scrollGap(cm) + \"px\";\n display.scrollbarsClipped = true;\n }\n }\n\n function selectionSnapshot(cm) {\n if (cm.hasFocus()) { return null }\n var active = activeElt();\n if (!active || !contains(cm.display.lineDiv, active)) { return null }\n var result = {activeElt: active};\n if (window.getSelection) {\n var sel = window.getSelection();\n if (sel.anchorNode && sel.extend && contains(cm.display.lineDiv, sel.anchorNode)) {\n result.anchorNode = sel.anchorNode;\n result.anchorOffset = sel.anchorOffset;\n result.focusNode = sel.focusNode;\n result.focusOffset = sel.focusOffset;\n }\n }\n return result\n }\n\n function restoreSelection(snapshot) {\n if (!snapshot || !snapshot.activeElt || snapshot.activeElt == activeElt()) { return }\n snapshot.activeElt.focus();\n if (!/^(INPUT|TEXTAREA)$/.test(snapshot.activeElt.nodeName) &&\n snapshot.anchorNode && contains(document.body, snapshot.anchorNode) && contains(document.body, snapshot.focusNode)) {\n var sel = window.getSelection(), range = document.createRange();\n range.setEnd(snapshot.anchorNode, snapshot.anchorOffset);\n range.collapse(false);\n sel.removeAllRanges();\n sel.addRange(range);\n sel.extend(snapshot.focusNode, snapshot.focusOffset);\n }\n }\n\n // Does the actual updating of the line display. Bails out\n // (returning false) when there is nothing to be done and forced is\n // false.\n function updateDisplayIfNeeded(cm, update) {\n var display = cm.display, doc = cm.doc;\n\n if (update.editorIsHidden) {\n resetView(cm);\n return false\n }\n\n // Bail out if the visible area is already rendered and nothing changed.\n if (!update.force &&\n update.visible.from >= display.viewFrom && update.visible.to <= display.viewTo &&\n (display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo) &&\n display.renderedView == display.view && countDirtyView(cm) == 0)\n { return false }\n\n if (maybeUpdateLineNumberWidth(cm)) {\n resetView(cm);\n update.dims = getDimensions(cm);\n }\n\n // Compute a suitable new viewport (from & to)\n var end = doc.first + doc.size;\n var from = Math.max(update.visible.from - cm.options.viewportMargin, doc.first);\n var to = Math.min(end, update.visible.to + cm.options.viewportMargin);\n if (display.viewFrom < from && from - display.viewFrom < 20) { from = Math.max(doc.first, display.viewFrom); }\n if (display.viewTo > to && display.viewTo - to < 20) { to = Math.min(end, display.viewTo); }\n if (sawCollapsedSpans) {\n from = visualLineNo(cm.doc, from);\n to = visualLineEndNo(cm.doc, to);\n }\n\n var different = from != display.viewFrom || to != display.viewTo ||\n display.lastWrapHeight != update.wrapperHeight || display.lastWrapWidth != update.wrapperWidth;\n adjustView(cm, from, to);\n\n display.viewOffset = heightAtLine(getLine(cm.doc, display.viewFrom));\n // Position the mover div to align with the current scroll position\n cm.display.mover.style.top = display.viewOffset + \"px\";\n\n var toUpdate = countDirtyView(cm);\n if (!different && toUpdate == 0 && !update.force && display.renderedView == display.view &&\n (display.updateLineNumbers == null || display.updateLineNumbers >= display.viewTo))\n { return false }\n\n // For big changes, we hide the enclosing element during the\n // update, since that speeds up the operations on most browsers.\n var selSnapshot = selectionSnapshot(cm);\n if (toUpdate > 4) { display.lineDiv.style.display = \"none\"; }\n patchDisplay(cm, display.updateLineNumbers, update.dims);\n if (toUpdate > 4) { display.lineDiv.style.display = \"\"; }\n display.renderedView = display.view;\n // There might have been a widget with a focused element that got\n // hidden or updated, if so re-focus it.\n restoreSelection(selSnapshot);\n\n // Prevent selection and cursors from interfering with the scroll\n // width and height.\n removeChildren(display.cursorDiv);\n removeChildren(display.selectionDiv);\n display.gutters.style.height = display.sizer.style.minHeight = 0;\n\n if (different) {\n display.lastWrapHeight = update.wrapperHeight;\n display.lastWrapWidth = update.wrapperWidth;\n startWorker(cm, 400);\n }\n\n display.updateLineNumbers = null;\n\n return true\n }\n\n function postUpdateDisplay(cm, update) {\n var viewport = update.viewport;\n\n for (var first = true;; first = false) {\n if (!first || !cm.options.lineWrapping || update.oldDisplayWidth == displayWidth(cm)) {\n // Clip forced viewport to actual scrollable area.\n if (viewport && viewport.top != null)\n { viewport = {top: Math.min(cm.doc.height + paddingVert(cm.display) - displayHeight(cm), viewport.top)}; }\n // Updated line heights might result in the drawn area not\n // actually covering the viewport. Keep looping until it does.\n update.visible = visibleLines(cm.display, cm.doc, viewport);\n if (update.visible.from >= cm.display.viewFrom && update.visible.to <= cm.display.viewTo)\n { break }\n } else if (first) {\n update.visible = visibleLines(cm.display, cm.doc, viewport);\n }\n if (!updateDisplayIfNeeded(cm, update)) { break }\n updateHeightsInViewport(cm);\n var barMeasure = measureForScrollbars(cm);\n updateSelection(cm);\n updateScrollbars(cm, barMeasure);\n setDocumentHeight(cm, barMeasure);\n update.force = false;\n }\n\n update.signal(cm, \"update\", cm);\n if (cm.display.viewFrom != cm.display.reportedViewFrom || cm.display.viewTo != cm.display.reportedViewTo) {\n update.signal(cm, \"viewportChange\", cm, cm.display.viewFrom, cm.display.viewTo);\n cm.display.reportedViewFrom = cm.display.viewFrom; cm.display.reportedViewTo = cm.display.viewTo;\n }\n }\n\n function updateDisplaySimple(cm, viewport) {\n var update = new DisplayUpdate(cm, viewport);\n if (updateDisplayIfNeeded(cm, update)) {\n updateHeightsInViewport(cm);\n postUpdateDisplay(cm, update);\n var barMeasure = measureForScrollbars(cm);\n updateSelection(cm);\n updateScrollbars(cm, barMeasure);\n setDocumentHeight(cm, barMeasure);\n update.finish();\n }\n }\n\n // Sync the actual display DOM structure with display.view, removing\n // nodes for lines that are no longer in view, and creating the ones\n // that are not there yet, and updating the ones that are out of\n // date.\n function patchDisplay(cm, updateNumbersFrom, dims) {\n var display = cm.display, lineNumbers = cm.options.lineNumbers;\n var container = display.lineDiv, cur = container.firstChild;\n\n function rm(node) {\n var next = node.nextSibling;\n // Works around a throw-scroll bug in OS X Webkit\n if (webkit && mac && cm.display.currentWheelTarget == node)\n { node.style.display = \"none\"; }\n else\n { node.parentNode.removeChild(node); }\n return next\n }\n\n var view = display.view, lineN = display.viewFrom;\n // Loop over the elements in the view, syncing cur (the DOM nodes\n // in display.lineDiv) with the view as we go.\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i];\n if (lineView.hidden) ; else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n var node = buildLineElement(cm, lineView, lineN, dims);\n container.insertBefore(node, cur);\n } else { // Already drawn\n while (cur != lineView.node) { cur = rm(cur); }\n var updateNumber = lineNumbers && updateNumbersFrom != null &&\n updateNumbersFrom <= lineN && lineView.lineNumber;\n if (lineView.changes) {\n if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false; }\n updateLineForChanges(cm, lineView, lineN, dims);\n }\n if (updateNumber) {\n removeChildren(lineView.lineNumber);\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\n }\n cur = lineView.node.nextSibling;\n }\n lineN += lineView.size;\n }\n while (cur) { cur = rm(cur); }\n }\n\n function updateGutterSpace(display) {\n var width = display.gutters.offsetWidth;\n display.sizer.style.marginLeft = width + \"px\";\n }\n\n function setDocumentHeight(cm, measure) {\n cm.display.sizer.style.minHeight = measure.docHeight + \"px\";\n cm.display.heightForcer.style.top = measure.docHeight + \"px\";\n cm.display.gutters.style.height = (measure.docHeight + cm.display.barHeight + scrollGap(cm)) + \"px\";\n }\n\n // Re-align line numbers and gutter marks to compensate for\n // horizontal scrolling.\n function alignHorizontally(cm) {\n var display = cm.display, view = display.view;\n if (!display.alignWidgets && (!display.gutters.firstChild || !cm.options.fixedGutter)) { return }\n var comp = compensateForHScroll(display) - display.scroller.scrollLeft + cm.doc.scrollLeft;\n var gutterW = display.gutters.offsetWidth, left = comp + \"px\";\n for (var i = 0; i < view.length; i++) { if (!view[i].hidden) {\n if (cm.options.fixedGutter) {\n if (view[i].gutter)\n { view[i].gutter.style.left = left; }\n if (view[i].gutterBackground)\n { view[i].gutterBackground.style.left = left; }\n }\n var align = view[i].alignable;\n if (align) { for (var j = 0; j < align.length; j++)\n { align[j].style.left = left; } }\n } }\n if (cm.options.fixedGutter)\n { display.gutters.style.left = (comp + gutterW) + \"px\"; }\n }\n\n // Used to ensure that the line number gutter is still the right\n // size for the current document size. Returns true when an update\n // is needed.\n function maybeUpdateLineNumberWidth(cm) {\n if (!cm.options.lineNumbers) { return false }\n var doc = cm.doc, last = lineNumberFor(cm.options, doc.first + doc.size - 1), display = cm.display;\n if (last.length != display.lineNumChars) {\n var test = display.measure.appendChild(elt(\"div\", [elt(\"div\", last)],\n \"CodeMirror-linenumber CodeMirror-gutter-elt\"));\n var innerW = test.firstChild.offsetWidth, padding = test.offsetWidth - innerW;\n display.lineGutter.style.width = \"\";\n display.lineNumInnerWidth = Math.max(innerW, display.lineGutter.offsetWidth - padding) + 1;\n display.lineNumWidth = display.lineNumInnerWidth + padding;\n display.lineNumChars = display.lineNumInnerWidth ? last.length : -1;\n display.lineGutter.style.width = display.lineNumWidth + \"px\";\n updateGutterSpace(cm.display);\n return true\n }\n return false\n }\n\n function getGutters(gutters, lineNumbers) {\n var result = [], sawLineNumbers = false;\n for (var i = 0; i < gutters.length; i++) {\n var name = gutters[i], style = null;\n if (typeof name != \"string\") { style = name.style; name = name.className; }\n if (name == \"CodeMirror-linenumbers\") {\n if (!lineNumbers) { continue }\n else { sawLineNumbers = true; }\n }\n result.push({className: name, style: style});\n }\n if (lineNumbers && !sawLineNumbers) { result.push({className: \"CodeMirror-linenumbers\", style: null}); }\n return result\n }\n\n // Rebuild the gutter elements, ensure the margin to the left of the\n // code matches their width.\n function renderGutters(display) {\n var gutters = display.gutters, specs = display.gutterSpecs;\n removeChildren(gutters);\n display.lineGutter = null;\n for (var i = 0; i < specs.length; ++i) {\n var ref = specs[i];\n var className = ref.className;\n var style = ref.style;\n var gElt = gutters.appendChild(elt(\"div\", null, \"CodeMirror-gutter \" + className));\n if (style) { gElt.style.cssText = style; }\n if (className == \"CodeMirror-linenumbers\") {\n display.lineGutter = gElt;\n gElt.style.width = (display.lineNumWidth || 1) + \"px\";\n }\n }\n gutters.style.display = specs.length ? \"\" : \"none\";\n updateGutterSpace(display);\n }\n\n function updateGutters(cm) {\n renderGutters(cm.display);\n regChange(cm);\n alignHorizontally(cm);\n }\n\n // The display handles the DOM integration, both for input reading\n // and content drawing. It holds references to DOM nodes and\n // display-related state.\n\n function Display(place, doc, input, options) {\n var d = this;\n this.input = input;\n\n // Covers bottom-right square when both scrollbars are present.\n d.scrollbarFiller = elt(\"div\", null, \"CodeMirror-scrollbar-filler\");\n d.scrollbarFiller.setAttribute(\"cm-not-content\", \"true\");\n // Covers bottom of gutter when coverGutterNextToScrollbar is on\n // and h scrollbar is present.\n d.gutterFiller = elt(\"div\", null, \"CodeMirror-gutter-filler\");\n d.gutterFiller.setAttribute(\"cm-not-content\", \"true\");\n // Will contain the actual code, positioned to cover the viewport.\n d.lineDiv = eltP(\"div\", null, \"CodeMirror-code\");\n // Elements are added to these to represent selection and cursors.\n d.selectionDiv = elt(\"div\", null, null, \"position: relative; z-index: 1\");\n d.cursorDiv = elt(\"div\", null, \"CodeMirror-cursors\");\n // A visibility: hidden element used to find the size of things.\n d.measure = elt(\"div\", null, \"CodeMirror-measure\");\n // When lines outside of the viewport are measured, they are drawn in this.\n d.lineMeasure = elt(\"div\", null, \"CodeMirror-measure\");\n // Wraps everything that needs to exist inside the vertically-padded coordinate system\n d.lineSpace = eltP(\"div\", [d.measure, d.lineMeasure, d.selectionDiv, d.cursorDiv, d.lineDiv],\n null, \"position: relative; outline: none\");\n var lines = eltP(\"div\", [d.lineSpace], \"CodeMirror-lines\");\n // Moved around its parent to cover visible view.\n d.mover = elt(\"div\", [lines], null, \"position: relative\");\n // Set to the height of the document, allowing scrolling.\n d.sizer = elt(\"div\", [d.mover], \"CodeMirror-sizer\");\n d.sizerWidth = null;\n // Behavior of elts with overflow: auto and padding is\n // inconsistent across browsers. This is used to ensure the\n // scrollable area is big enough.\n d.heightForcer = elt(\"div\", null, null, \"position: absolute; height: \" + scrollerGap + \"px; width: 1px;\");\n // Will contain the gutters, if any.\n d.gutters = elt(\"div\", null, \"CodeMirror-gutters\");\n d.lineGutter = null;\n // Actual scrollable element.\n d.scroller = elt(\"div\", [d.sizer, d.heightForcer, d.gutters], \"CodeMirror-scroll\");\n d.scroller.setAttribute(\"tabIndex\", \"-1\");\n // The element in which the editor lives.\n d.wrapper = elt(\"div\", [d.scrollbarFiller, d.gutterFiller, d.scroller], \"CodeMirror\");\n\n // Work around IE7 z-index bug (not perfect, hence IE7 not really being supported)\n if (ie && ie_version < 8) { d.gutters.style.zIndex = -1; d.scroller.style.paddingRight = 0; }\n if (!webkit && !(gecko && mobile)) { d.scroller.draggable = true; }\n\n if (place) {\n if (place.appendChild) { place.appendChild(d.wrapper); }\n else { place(d.wrapper); }\n }\n\n // Current rendered range (may be bigger than the view window).\n d.viewFrom = d.viewTo = doc.first;\n d.reportedViewFrom = d.reportedViewTo = doc.first;\n // Information about the rendered lines.\n d.view = [];\n d.renderedView = null;\n // Holds info about a single rendered line when it was rendered\n // for measurement, while not in view.\n d.externalMeasured = null;\n // Empty space (in pixels) above the view\n d.viewOffset = 0;\n d.lastWrapHeight = d.lastWrapWidth = 0;\n d.updateLineNumbers = null;\n\n d.nativeBarWidth = d.barHeight = d.barWidth = 0;\n d.scrollbarsClipped = false;\n\n // Used to only resize the line number gutter when necessary (when\n // the amount of lines crosses a boundary that makes its width change)\n d.lineNumWidth = d.lineNumInnerWidth = d.lineNumChars = null;\n // Set to true when a non-horizontal-scrolling line widget is\n // added. As an optimization, line widget aligning is skipped when\n // this is false.\n d.alignWidgets = false;\n\n d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null;\n\n // Tracks the maximum line length so that the horizontal scrollbar\n // can be kept static when scrolling.\n d.maxLine = null;\n d.maxLineLength = 0;\n d.maxLineChanged = false;\n\n // Used for measuring wheel scrolling granularity\n d.wheelDX = d.wheelDY = d.wheelStartX = d.wheelStartY = null;\n\n // True when shift is held down.\n d.shift = false;\n\n // Used to track whether anything happened since the context menu\n // was opened.\n d.selForContextMenu = null;\n\n d.activeTouch = null;\n\n d.gutterSpecs = getGutters(options.gutters, options.lineNumbers);\n renderGutters(d);\n\n input.init(d);\n }\n\n // Since the delta values reported on mouse wheel events are\n // unstandardized between browsers and even browser versions, and\n // generally horribly unpredictable, this code starts by measuring\n // the scroll effect that the first few mouse wheel events have,\n // and, from that, detects the way it can convert deltas to pixel\n // offsets afterwards.\n //\n // The reason we want to know the amount a wheel event will scroll\n // is that it gives us a chance to update the display before the\n // actual scrolling happens, reducing flickering.\n\n var wheelSamples = 0, wheelPixelsPerUnit = null;\n // Fill in a browser-detected starting value on browsers where we\n // know one. These don't have to be accurate -- the result of them\n // being wrong would just be a slight flicker on the first wheel\n // scroll (if it is large enough).\n if (ie) { wheelPixelsPerUnit = -.53; }\n else if (gecko) { wheelPixelsPerUnit = 15; }\n else if (chrome) { wheelPixelsPerUnit = -.7; }\n else if (safari) { wheelPixelsPerUnit = -1/3; }\n\n function wheelEventDelta(e) {\n var dx = e.wheelDeltaX, dy = e.wheelDeltaY;\n if (dx == null && e.detail && e.axis == e.HORIZONTAL_AXIS) { dx = e.detail; }\n if (dy == null && e.detail && e.axis == e.VERTICAL_AXIS) { dy = e.detail; }\n else if (dy == null) { dy = e.wheelDelta; }\n return {x: dx, y: dy}\n }\n function wheelEventPixels(e) {\n var delta = wheelEventDelta(e);\n delta.x *= wheelPixelsPerUnit;\n delta.y *= wheelPixelsPerUnit;\n return delta\n }\n\n function onScrollWheel(cm, e) {\n var delta = wheelEventDelta(e), dx = delta.x, dy = delta.y;\n\n var display = cm.display, scroll = display.scroller;\n // Quit if there's nothing to scroll here\n var canScrollX = scroll.scrollWidth > scroll.clientWidth;\n var canScrollY = scroll.scrollHeight > scroll.clientHeight;\n if (!(dx && canScrollX || dy && canScrollY)) { return }\n\n // Webkit browsers on OS X abort momentum scrolls when the target\n // of the scroll event is removed from the scrollable element.\n // This hack (see related code in patchDisplay) makes sure the\n // element is kept around.\n if (dy && mac && webkit) {\n outer: for (var cur = e.target, view = display.view; cur != scroll; cur = cur.parentNode) {\n for (var i = 0; i < view.length; i++) {\n if (view[i].node == cur) {\n cm.display.currentWheelTarget = cur;\n break outer\n }\n }\n }\n }\n\n // On some browsers, horizontal scrolling will cause redraws to\n // happen before the gutter has been realigned, causing it to\n // wriggle around in a most unseemly way. When we have an\n // estimated pixels/delta value, we just handle horizontal\n // scrolling entirely here. It'll be slightly off from native, but\n // better than glitching out.\n if (dx && !gecko && !presto && wheelPixelsPerUnit != null) {\n if (dy && canScrollY)\n { updateScrollTop(cm, Math.max(0, scroll.scrollTop + dy * wheelPixelsPerUnit)); }\n setScrollLeft(cm, Math.max(0, scroll.scrollLeft + dx * wheelPixelsPerUnit));\n // Only prevent default scrolling if vertical scrolling is\n // actually possible. Otherwise, it causes vertical scroll\n // jitter on OSX trackpads when deltaX is small and deltaY\n // is large (issue #3579)\n if (!dy || (dy && canScrollY))\n { e_preventDefault(e); }\n display.wheelStartX = null; // Abort measurement, if in progress\n return\n }\n\n // 'Project' the visible viewport to cover the area that is being\n // scrolled into view (if we know enough to estimate it).\n if (dy && wheelPixelsPerUnit != null) {\n var pixels = dy * wheelPixelsPerUnit;\n var top = cm.doc.scrollTop, bot = top + display.wrapper.clientHeight;\n if (pixels < 0) { top = Math.max(0, top + pixels - 50); }\n else { bot = Math.min(cm.doc.height, bot + pixels + 50); }\n updateDisplaySimple(cm, {top: top, bottom: bot});\n }\n\n if (wheelSamples < 20) {\n if (display.wheelStartX == null) {\n display.wheelStartX = scroll.scrollLeft; display.wheelStartY = scroll.scrollTop;\n display.wheelDX = dx; display.wheelDY = dy;\n setTimeout(function () {\n if (display.wheelStartX == null) { return }\n var movedX = scroll.scrollLeft - display.wheelStartX;\n var movedY = scroll.scrollTop - display.wheelStartY;\n var sample = (movedY && display.wheelDY && movedY / display.wheelDY) ||\n (movedX && display.wheelDX && movedX / display.wheelDX);\n display.wheelStartX = display.wheelStartY = null;\n if (!sample) { return }\n wheelPixelsPerUnit = (wheelPixelsPerUnit * wheelSamples + sample) / (wheelSamples + 1);\n ++wheelSamples;\n }, 200);\n } else {\n display.wheelDX += dx; display.wheelDY += dy;\n }\n }\n }\n\n // Selection objects are immutable. A new one is created every time\n // the selection changes. A selection is one or more non-overlapping\n // (and non-touching) ranges, sorted, and an integer that indicates\n // which one is the primary selection (the one that's scrolled into\n // view, that getCursor returns, etc).\n var Selection = function(ranges, primIndex) {\n this.ranges = ranges;\n this.primIndex = primIndex;\n };\n\n Selection.prototype.primary = function () { return this.ranges[this.primIndex] };\n\n Selection.prototype.equals = function (other) {\n if (other == this) { return true }\n if (other.primIndex != this.primIndex || other.ranges.length != this.ranges.length) { return false }\n for (var i = 0; i < this.ranges.length; i++) {\n var here = this.ranges[i], there = other.ranges[i];\n if (!equalCursorPos(here.anchor, there.anchor) || !equalCursorPos(here.head, there.head)) { return false }\n }\n return true\n };\n\n Selection.prototype.deepCopy = function () {\n var out = [];\n for (var i = 0; i < this.ranges.length; i++)\n { out[i] = new Range(copyPos(this.ranges[i].anchor), copyPos(this.ranges[i].head)); }\n return new Selection(out, this.primIndex)\n };\n\n Selection.prototype.somethingSelected = function () {\n for (var i = 0; i < this.ranges.length; i++)\n { if (!this.ranges[i].empty()) { return true } }\n return false\n };\n\n Selection.prototype.contains = function (pos, end) {\n if (!end) { end = pos; }\n for (var i = 0; i < this.ranges.length; i++) {\n var range = this.ranges[i];\n if (cmp(end, range.from()) >= 0 && cmp(pos, range.to()) <= 0)\n { return i }\n }\n return -1\n };\n\n var Range = function(anchor, head) {\n this.anchor = anchor; this.head = head;\n };\n\n Range.prototype.from = function () { return minPos(this.anchor, this.head) };\n Range.prototype.to = function () { return maxPos(this.anchor, this.head) };\n Range.prototype.empty = function () { return this.head.line == this.anchor.line && this.head.ch == this.anchor.ch };\n\n // Take an unsorted, potentially overlapping set of ranges, and\n // build a selection out of it. 'Consumes' ranges array (modifying\n // it).\n function normalizeSelection(cm, ranges, primIndex) {\n var mayTouch = cm && cm.options.selectionsMayTouch;\n var prim = ranges[primIndex];\n ranges.sort(function (a, b) { return cmp(a.from(), b.from()); });\n primIndex = indexOf(ranges, prim);\n for (var i = 1; i < ranges.length; i++) {\n var cur = ranges[i], prev = ranges[i - 1];\n var diff = cmp(prev.to(), cur.from());\n if (mayTouch && !cur.empty() ? diff > 0 : diff >= 0) {\n var from = minPos(prev.from(), cur.from()), to = maxPos(prev.to(), cur.to());\n var inv = prev.empty() ? cur.from() == cur.head : prev.from() == prev.head;\n if (i <= primIndex) { --primIndex; }\n ranges.splice(--i, 2, new Range(inv ? to : from, inv ? from : to));\n }\n }\n return new Selection(ranges, primIndex)\n }\n\n function simpleSelection(anchor, head) {\n return new Selection([new Range(anchor, head || anchor)], 0)\n }\n\n // Compute the position of the end of a change (its 'to' property\n // refers to the pre-change end).\n function changeEnd(change) {\n if (!change.text) { return change.to }\n return Pos(change.from.line + change.text.length - 1,\n lst(change.text).length + (change.text.length == 1 ? change.from.ch : 0))\n }\n\n // Adjust a position to refer to the post-change position of the\n // same text, or the end of the change if the change covers it.\n function adjustForChange(pos, change) {\n if (cmp(pos, change.from) < 0) { return pos }\n if (cmp(pos, change.to) <= 0) { return changeEnd(change) }\n\n var line = pos.line + change.text.length - (change.to.line - change.from.line) - 1, ch = pos.ch;\n if (pos.line == change.to.line) { ch += changeEnd(change).ch - change.to.ch; }\n return Pos(line, ch)\n }\n\n function computeSelAfterChange(doc, change) {\n var out = [];\n for (var i = 0; i < doc.sel.ranges.length; i++) {\n var range = doc.sel.ranges[i];\n out.push(new Range(adjustForChange(range.anchor, change),\n adjustForChange(range.head, change)));\n }\n return normalizeSelection(doc.cm, out, doc.sel.primIndex)\n }\n\n function offsetPos(pos, old, nw) {\n if (pos.line == old.line)\n { return Pos(nw.line, pos.ch - old.ch + nw.ch) }\n else\n { return Pos(nw.line + (pos.line - old.line), pos.ch) }\n }\n\n // Used by replaceSelections to allow moving the selection to the\n // start or around the replaced test. Hint may be \"start\" or \"around\".\n function computeReplacedSel(doc, changes, hint) {\n var out = [];\n var oldPrev = Pos(doc.first, 0), newPrev = oldPrev;\n for (var i = 0; i < changes.length; i++) {\n var change = changes[i];\n var from = offsetPos(change.from, oldPrev, newPrev);\n var to = offsetPos(changeEnd(change), oldPrev, newPrev);\n oldPrev = change.to;\n newPrev = to;\n if (hint == \"around\") {\n var range = doc.sel.ranges[i], inv = cmp(range.head, range.anchor) < 0;\n out[i] = new Range(inv ? to : from, inv ? from : to);\n } else {\n out[i] = new Range(from, from);\n }\n }\n return new Selection(out, doc.sel.primIndex)\n }\n\n // Used to get the editor into a consistent state again when options change.\n\n function loadMode(cm) {\n cm.doc.mode = getMode(cm.options, cm.doc.modeOption);\n resetModeState(cm);\n }\n\n function resetModeState(cm) {\n cm.doc.iter(function (line) {\n if (line.stateAfter) { line.stateAfter = null; }\n if (line.styles) { line.styles = null; }\n });\n cm.doc.modeFrontier = cm.doc.highlightFrontier = cm.doc.first;\n startWorker(cm, 100);\n cm.state.modeGen++;\n if (cm.curOp) { regChange(cm); }\n }\n\n // DOCUMENT DATA STRUCTURE\n\n // By default, updates that start and end at the beginning of a line\n // are treated specially, in order to make the association of line\n // widgets and marker elements with the text behave more intuitive.\n function isWholeLineUpdate(doc, change) {\n return change.from.ch == 0 && change.to.ch == 0 && lst(change.text) == \"\" &&\n (!doc.cm || doc.cm.options.wholeLineUpdateBefore)\n }\n\n // Perform a change on the document data structure.\n function updateDoc(doc, change, markedSpans, estimateHeight) {\n function spansFor(n) {return markedSpans ? markedSpans[n] : null}\n function update(line, text, spans) {\n updateLine(line, text, spans, estimateHeight);\n signalLater(line, \"change\", line, change);\n }\n function linesFor(start, end) {\n var result = [];\n for (var i = start; i < end; ++i)\n { result.push(new Line(text[i], spansFor(i), estimateHeight)); }\n return result\n }\n\n var from = change.from, to = change.to, text = change.text;\n var firstLine = getLine(doc, from.line), lastLine = getLine(doc, to.line);\n var lastText = lst(text), lastSpans = spansFor(text.length - 1), nlines = to.line - from.line;\n\n // Adjust the line structure\n if (change.full) {\n doc.insert(0, linesFor(0, text.length));\n doc.remove(text.length, doc.size - text.length);\n } else if (isWholeLineUpdate(doc, change)) {\n // This is a whole-line replace. Treated specially to make\n // sure line objects move the way they are supposed to.\n var added = linesFor(0, text.length - 1);\n update(lastLine, lastLine.text, lastSpans);\n if (nlines) { doc.remove(from.line, nlines); }\n if (added.length) { doc.insert(from.line, added); }\n } else if (firstLine == lastLine) {\n if (text.length == 1) {\n update(firstLine, firstLine.text.slice(0, from.ch) + lastText + firstLine.text.slice(to.ch), lastSpans);\n } else {\n var added$1 = linesFor(1, text.length - 1);\n added$1.push(new Line(lastText + firstLine.text.slice(to.ch), lastSpans, estimateHeight));\n update(firstLine, firstLine.text.slice(0, from.ch) + text[0], spansFor(0));\n doc.insert(from.line + 1, added$1);\n }\n } else if (text.length == 1) {\n update(firstLine, firstLine.text.slice(0, from.ch) + text[0] + lastLine.text.slice(to.ch), spansFor(0));\n doc.remove(from.line + 1, nlines);\n } else {\n update(firstLine, firstLine.text.slice(0, from.ch) + text[0], spansFor(0));\n update(lastLine, lastText + lastLine.text.slice(to.ch), lastSpans);\n var added$2 = linesFor(1, text.length - 1);\n if (nlines > 1) { doc.remove(from.line + 1, nlines - 1); }\n doc.insert(from.line + 1, added$2);\n }\n\n signalLater(doc, \"change\", doc, change);\n }\n\n // Call f for all linked documents.\n function linkedDocs(doc, f, sharedHistOnly) {\n function propagate(doc, skip, sharedHist) {\n if (doc.linked) { for (var i = 0; i < doc.linked.length; ++i) {\n var rel = doc.linked[i];\n if (rel.doc == skip) { continue }\n var shared = sharedHist && rel.sharedHist;\n if (sharedHistOnly && !shared) { continue }\n f(rel.doc, shared);\n propagate(rel.doc, doc, shared);\n } }\n }\n propagate(doc, null, true);\n }\n\n // Attach a document to an editor.\n function attachDoc(cm, doc) {\n if (doc.cm) { throw new Error(\"This document is already in use.\") }\n cm.doc = doc;\n doc.cm = cm;\n estimateLineHeights(cm);\n loadMode(cm);\n setDirectionClass(cm);\n if (!cm.options.lineWrapping) { findMaxLine(cm); }\n cm.options.mode = doc.modeOption;\n regChange(cm);\n }\n\n function setDirectionClass(cm) {\n (cm.doc.direction == \"rtl\" ? addClass : rmClass)(cm.display.lineDiv, \"CodeMirror-rtl\");\n }\n\n function directionChanged(cm) {\n runInOp(cm, function () {\n setDirectionClass(cm);\n regChange(cm);\n });\n }\n\n function History(startGen) {\n // Arrays of change events and selections. Doing something adds an\n // event to done and clears undo. Undoing moves events from done\n // to undone, redoing moves them in the other direction.\n this.done = []; this.undone = [];\n this.undoDepth = Infinity;\n // Used to track when changes can be merged into a single undo\n // event\n this.lastModTime = this.lastSelTime = 0;\n this.lastOp = this.lastSelOp = null;\n this.lastOrigin = this.lastSelOrigin = null;\n // Used by the isClean() method\n this.generation = this.maxGeneration = startGen || 1;\n }\n\n // Create a history change event from an updateDoc-style change\n // object.\n function historyChangeFromChange(doc, change) {\n var histChange = {from: copyPos(change.from), to: changeEnd(change), text: getBetween(doc, change.from, change.to)};\n attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1);\n linkedDocs(doc, function (doc) { return attachLocalSpans(doc, histChange, change.from.line, change.to.line + 1); }, true);\n return histChange\n }\n\n // Pop all selection events off the end of a history array. Stop at\n // a change event.\n function clearSelectionEvents(array) {\n while (array.length) {\n var last = lst(array);\n if (last.ranges) { array.pop(); }\n else { break }\n }\n }\n\n // Find the top change event in the history. Pop off selection\n // events that are in the way.\n function lastChangeEvent(hist, force) {\n if (force) {\n clearSelectionEvents(hist.done);\n return lst(hist.done)\n } else if (hist.done.length && !lst(hist.done).ranges) {\n return lst(hist.done)\n } else if (hist.done.length > 1 && !hist.done[hist.done.length - 2].ranges) {\n hist.done.pop();\n return lst(hist.done)\n }\n }\n\n // Register a change in the history. Merges changes that are within\n // a single operation, or are close together with an origin that\n // allows merging (starting with \"+\") into a single event.\n function addChangeToHistory(doc, change, selAfter, opId) {\n var hist = doc.history;\n hist.undone.length = 0;\n var time = +new Date, cur;\n var last;\n\n if ((hist.lastOp == opId ||\n hist.lastOrigin == change.origin && change.origin &&\n ((change.origin.charAt(0) == \"+\" && hist.lastModTime > time - (doc.cm ? doc.cm.options.historyEventDelay : 500)) ||\n change.origin.charAt(0) == \"*\")) &&\n (cur = lastChangeEvent(hist, hist.lastOp == opId))) {\n // Merge this change into the last event\n last = lst(cur.changes);\n if (cmp(change.from, change.to) == 0 && cmp(change.from, last.to) == 0) {\n // Optimized case for simple insertion -- don't want to add\n // new changesets for every character typed\n last.to = changeEnd(change);\n } else {\n // Add new sub-event\n cur.changes.push(historyChangeFromChange(doc, change));\n }\n } else {\n // Can not be merged, start a new event.\n var before = lst(hist.done);\n if (!before || !before.ranges)\n { pushSelectionToHistory(doc.sel, hist.done); }\n cur = {changes: [historyChangeFromChange(doc, change)],\n generation: hist.generation};\n hist.done.push(cur);\n while (hist.done.length > hist.undoDepth) {\n hist.done.shift();\n if (!hist.done[0].ranges) { hist.done.shift(); }\n }\n }\n hist.done.push(selAfter);\n hist.generation = ++hist.maxGeneration;\n hist.lastModTime = hist.lastSelTime = time;\n hist.lastOp = hist.lastSelOp = opId;\n hist.lastOrigin = hist.lastSelOrigin = change.origin;\n\n if (!last) { signal(doc, \"historyAdded\"); }\n }\n\n function selectionEventCanBeMerged(doc, origin, prev, sel) {\n var ch = origin.charAt(0);\n return ch == \"*\" ||\n ch == \"+\" &&\n prev.ranges.length == sel.ranges.length &&\n prev.somethingSelected() == sel.somethingSelected() &&\n new Date - doc.history.lastSelTime <= (doc.cm ? doc.cm.options.historyEventDelay : 500)\n }\n\n // Called whenever the selection changes, sets the new selection as\n // the pending selection in the history, and pushes the old pending\n // selection into the 'done' array when it was significantly\n // different (in number of selected ranges, emptiness, or time).\n function addSelectionToHistory(doc, sel, opId, options) {\n var hist = doc.history, origin = options && options.origin;\n\n // A new event is started when the previous origin does not match\n // the current, or the origins don't allow matching. Origins\n // starting with * are always merged, those starting with + are\n // merged when similar and close together in time.\n if (opId == hist.lastSelOp ||\n (origin && hist.lastSelOrigin == origin &&\n (hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin ||\n selectionEventCanBeMerged(doc, origin, lst(hist.done), sel))))\n { hist.done[hist.done.length - 1] = sel; }\n else\n { pushSelectionToHistory(sel, hist.done); }\n\n hist.lastSelTime = +new Date;\n hist.lastSelOrigin = origin;\n hist.lastSelOp = opId;\n if (options && options.clearRedo !== false)\n { clearSelectionEvents(hist.undone); }\n }\n\n function pushSelectionToHistory(sel, dest) {\n var top = lst(dest);\n if (!(top && top.ranges && top.equals(sel)))\n { dest.push(sel); }\n }\n\n // Used to store marked span information in the history.\n function attachLocalSpans(doc, change, from, to) {\n var existing = change[\"spans_\" + doc.id], n = 0;\n doc.iter(Math.max(doc.first, from), Math.min(doc.first + doc.size, to), function (line) {\n if (line.markedSpans)\n { (existing || (existing = change[\"spans_\" + doc.id] = {}))[n] = line.markedSpans; }\n ++n;\n });\n }\n\n // When un/re-doing restores text containing marked spans, those\n // that have been explicitly cleared should not be restored.\n function removeClearedSpans(spans) {\n if (!spans) { return null }\n var out;\n for (var i = 0; i < spans.length; ++i) {\n if (spans[i].marker.explicitlyCleared) { if (!out) { out = spans.slice(0, i); } }\n else if (out) { out.push(spans[i]); }\n }\n return !out ? spans : out.length ? out : null\n }\n\n // Retrieve and filter the old marked spans stored in a change event.\n function getOldSpans(doc, change) {\n var found = change[\"spans_\" + doc.id];\n if (!found) { return null }\n var nw = [];\n for (var i = 0; i < change.text.length; ++i)\n { nw.push(removeClearedSpans(found[i])); }\n return nw\n }\n\n // Used for un/re-doing changes from the history. Combines the\n // result of computing the existing spans with the set of spans that\n // existed in the history (so that deleting around a span and then\n // undoing brings back the span).\n function mergeOldSpans(doc, change) {\n var old = getOldSpans(doc, change);\n var stretched = stretchSpansOverChange(doc, change);\n if (!old) { return stretched }\n if (!stretched) { return old }\n\n for (var i = 0; i < old.length; ++i) {\n var oldCur = old[i], stretchCur = stretched[i];\n if (oldCur && stretchCur) {\n spans: for (var j = 0; j < stretchCur.length; ++j) {\n var span = stretchCur[j];\n for (var k = 0; k < oldCur.length; ++k)\n { if (oldCur[k].marker == span.marker) { continue spans } }\n oldCur.push(span);\n }\n } else if (stretchCur) {\n old[i] = stretchCur;\n }\n }\n return old\n }\n\n // Used both to provide a JSON-safe object in .getHistory, and, when\n // detaching a document, to split the history in two\n function copyHistoryArray(events, newGroup, instantiateSel) {\n var copy = [];\n for (var i = 0; i < events.length; ++i) {\n var event = events[i];\n if (event.ranges) {\n copy.push(instantiateSel ? Selection.prototype.deepCopy.call(event) : event);\n continue\n }\n var changes = event.changes, newChanges = [];\n copy.push({changes: newChanges});\n for (var j = 0; j < changes.length; ++j) {\n var change = changes[j], m = (void 0);\n newChanges.push({from: change.from, to: change.to, text: change.text});\n if (newGroup) { for (var prop in change) { if (m = prop.match(/^spans_(\\d+)$/)) {\n if (indexOf(newGroup, Number(m[1])) > -1) {\n lst(newChanges)[prop] = change[prop];\n delete change[prop];\n }\n } } }\n }\n }\n return copy\n }\n\n // The 'scroll' parameter given to many of these indicated whether\n // the new cursor position should be scrolled into view after\n // modifying the selection.\n\n // If shift is held or the extend flag is set, extends a range to\n // include a given position (and optionally a second position).\n // Otherwise, simply returns the range between the given positions.\n // Used for cursor motion and such.\n function extendRange(range, head, other, extend) {\n if (extend) {\n var anchor = range.anchor;\n if (other) {\n var posBefore = cmp(head, anchor) < 0;\n if (posBefore != (cmp(other, anchor) < 0)) {\n anchor = head;\n head = other;\n } else if (posBefore != (cmp(head, other) < 0)) {\n head = other;\n }\n }\n return new Range(anchor, head)\n } else {\n return new Range(other || head, head)\n }\n }\n\n // Extend the primary selection range, discard the rest.\n function extendSelection(doc, head, other, options, extend) {\n if (extend == null) { extend = doc.cm && (doc.cm.display.shift || doc.extend); }\n setSelection(doc, new Selection([extendRange(doc.sel.primary(), head, other, extend)], 0), options);\n }\n\n // Extend all selections (pos is an array of selections with length\n // equal the number of selections)\n function extendSelections(doc, heads, options) {\n var out = [];\n var extend = doc.cm && (doc.cm.display.shift || doc.extend);\n for (var i = 0; i < doc.sel.ranges.length; i++)\n { out[i] = extendRange(doc.sel.ranges[i], heads[i], null, extend); }\n var newSel = normalizeSelection(doc.cm, out, doc.sel.primIndex);\n setSelection(doc, newSel, options);\n }\n\n // Updates a single range in the selection.\n function replaceOneSelection(doc, i, range, options) {\n var ranges = doc.sel.ranges.slice(0);\n ranges[i] = range;\n setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options);\n }\n\n // Reset the selection to a single range.\n function setSimpleSelection(doc, anchor, head, options) {\n setSelection(doc, simpleSelection(anchor, head), options);\n }\n\n // Give beforeSelectionChange handlers a change to influence a\n // selection update.\n function filterSelectionChange(doc, sel, options) {\n var obj = {\n ranges: sel.ranges,\n update: function(ranges) {\n this.ranges = [];\n for (var i = 0; i < ranges.length; i++)\n { this.ranges[i] = new Range(clipPos(doc, ranges[i].anchor),\n clipPos(doc, ranges[i].head)); }\n },\n origin: options && options.origin\n };\n signal(doc, \"beforeSelectionChange\", doc, obj);\n if (doc.cm) { signal(doc.cm, \"beforeSelectionChange\", doc.cm, obj); }\n if (obj.ranges != sel.ranges) { return normalizeSelection(doc.cm, obj.ranges, obj.ranges.length - 1) }\n else { return sel }\n }\n\n function setSelectionReplaceHistory(doc, sel, options) {\n var done = doc.history.done, last = lst(done);\n if (last && last.ranges) {\n done[done.length - 1] = sel;\n setSelectionNoUndo(doc, sel, options);\n } else {\n setSelection(doc, sel, options);\n }\n }\n\n // Set a new selection.\n function setSelection(doc, sel, options) {\n setSelectionNoUndo(doc, sel, options);\n addSelectionToHistory(doc, doc.sel, doc.cm ? doc.cm.curOp.id : NaN, options);\n }\n\n function setSelectionNoUndo(doc, sel, options) {\n if (hasHandler(doc, \"beforeSelectionChange\") || doc.cm && hasHandler(doc.cm, \"beforeSelectionChange\"))\n { sel = filterSelectionChange(doc, sel, options); }\n\n var bias = options && options.bias ||\n (cmp(sel.primary().head, doc.sel.primary().head) < 0 ? -1 : 1);\n setSelectionInner(doc, skipAtomicInSelection(doc, sel, bias, true));\n\n if (!(options && options.scroll === false) && doc.cm)\n { ensureCursorVisible(doc.cm); }\n }\n\n function setSelectionInner(doc, sel) {\n if (sel.equals(doc.sel)) { return }\n\n doc.sel = sel;\n\n if (doc.cm) {\n doc.cm.curOp.updateInput = 1;\n doc.cm.curOp.selectionChanged = true;\n signalCursorActivity(doc.cm);\n }\n signalLater(doc, \"cursorActivity\", doc);\n }\n\n // Verify that the selection does not partially select any atomic\n // marked ranges.\n function reCheckSelection(doc) {\n setSelectionInner(doc, skipAtomicInSelection(doc, doc.sel, null, false));\n }\n\n // Return a selection that does not partially select any atomic\n // ranges.\n function skipAtomicInSelection(doc, sel, bias, mayClear) {\n var out;\n for (var i = 0; i < sel.ranges.length; i++) {\n var range = sel.ranges[i];\n var old = sel.ranges.length == doc.sel.ranges.length && doc.sel.ranges[i];\n var newAnchor = skipAtomic(doc, range.anchor, old && old.anchor, bias, mayClear);\n var newHead = skipAtomic(doc, range.head, old && old.head, bias, mayClear);\n if (out || newAnchor != range.anchor || newHead != range.head) {\n if (!out) { out = sel.ranges.slice(0, i); }\n out[i] = new Range(newAnchor, newHead);\n }\n }\n return out ? normalizeSelection(doc.cm, out, sel.primIndex) : sel\n }\n\n function skipAtomicInner(doc, pos, oldPos, dir, mayClear) {\n var line = getLine(doc, pos.line);\n if (line.markedSpans) { for (var i = 0; i < line.markedSpans.length; ++i) {\n var sp = line.markedSpans[i], m = sp.marker;\n\n // Determine if we should prevent the cursor being placed to the left/right of an atomic marker\n // Historically this was determined using the inclusiveLeft/Right option, but the new way to control it\n // is with selectLeft/Right\n var preventCursorLeft = (\"selectLeft\" in m) ? !m.selectLeft : m.inclusiveLeft;\n var preventCursorRight = (\"selectRight\" in m) ? !m.selectRight : m.inclusiveRight;\n\n if ((sp.from == null || (preventCursorLeft ? sp.from <= pos.ch : sp.from < pos.ch)) &&\n (sp.to == null || (preventCursorRight ? sp.to >= pos.ch : sp.to > pos.ch))) {\n if (mayClear) {\n signal(m, \"beforeCursorEnter\");\n if (m.explicitlyCleared) {\n if (!line.markedSpans) { break }\n else {--i; continue}\n }\n }\n if (!m.atomic) { continue }\n\n if (oldPos) {\n var near = m.find(dir < 0 ? 1 : -1), diff = (void 0);\n if (dir < 0 ? preventCursorRight : preventCursorLeft)\n { near = movePos(doc, near, -dir, near && near.line == pos.line ? line : null); }\n if (near && near.line == pos.line && (diff = cmp(near, oldPos)) && (dir < 0 ? diff < 0 : diff > 0))\n { return skipAtomicInner(doc, near, pos, dir, mayClear) }\n }\n\n var far = m.find(dir < 0 ? -1 : 1);\n if (dir < 0 ? preventCursorLeft : preventCursorRight)\n { far = movePos(doc, far, dir, far.line == pos.line ? line : null); }\n return far ? skipAtomicInner(doc, far, pos, dir, mayClear) : null\n }\n } }\n return pos\n }\n\n // Ensure a given position is not inside an atomic range.\n function skipAtomic(doc, pos, oldPos, bias, mayClear) {\n var dir = bias || 1;\n var found = skipAtomicInner(doc, pos, oldPos, dir, mayClear) ||\n (!mayClear && skipAtomicInner(doc, pos, oldPos, dir, true)) ||\n skipAtomicInner(doc, pos, oldPos, -dir, mayClear) ||\n (!mayClear && skipAtomicInner(doc, pos, oldPos, -dir, true));\n if (!found) {\n doc.cantEdit = true;\n return Pos(doc.first, 0)\n }\n return found\n }\n\n function movePos(doc, pos, dir, line) {\n if (dir < 0 && pos.ch == 0) {\n if (pos.line > doc.first) { return clipPos(doc, Pos(pos.line - 1)) }\n else { return null }\n } else if (dir > 0 && pos.ch == (line || getLine(doc, pos.line)).text.length) {\n if (pos.line < doc.first + doc.size - 1) { return Pos(pos.line + 1, 0) }\n else { return null }\n } else {\n return new Pos(pos.line, pos.ch + dir)\n }\n }\n\n function selectAll(cm) {\n cm.setSelection(Pos(cm.firstLine(), 0), Pos(cm.lastLine()), sel_dontScroll);\n }\n\n // UPDATING\n\n // Allow \"beforeChange\" event handlers to influence a change\n function filterChange(doc, change, update) {\n var obj = {\n canceled: false,\n from: change.from,\n to: change.to,\n text: change.text,\n origin: change.origin,\n cancel: function () { return obj.canceled = true; }\n };\n if (update) { obj.update = function (from, to, text, origin) {\n if (from) { obj.from = clipPos(doc, from); }\n if (to) { obj.to = clipPos(doc, to); }\n if (text) { obj.text = text; }\n if (origin !== undefined) { obj.origin = origin; }\n }; }\n signal(doc, \"beforeChange\", doc, obj);\n if (doc.cm) { signal(doc.cm, \"beforeChange\", doc.cm, obj); }\n\n if (obj.canceled) {\n if (doc.cm) { doc.cm.curOp.updateInput = 2; }\n return null\n }\n return {from: obj.from, to: obj.to, text: obj.text, origin: obj.origin}\n }\n\n // Apply a change to a document, and add it to the document's\n // history, and propagating it to all linked documents.\n function makeChange(doc, change, ignoreReadOnly) {\n if (doc.cm) {\n if (!doc.cm.curOp) { return operation(doc.cm, makeChange)(doc, change, ignoreReadOnly) }\n if (doc.cm.state.suppressEdits) { return }\n }\n\n if (hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\")) {\n change = filterChange(doc, change, true);\n if (!change) { return }\n }\n\n // Possibly split or suppress the update based on the presence\n // of read-only spans in its range.\n var split = sawReadOnlySpans && !ignoreReadOnly && removeReadOnlyRanges(doc, change.from, change.to);\n if (split) {\n for (var i = split.length - 1; i >= 0; --i)\n { makeChangeInner(doc, {from: split[i].from, to: split[i].to, text: i ? [\"\"] : change.text, origin: change.origin}); }\n } else {\n makeChangeInner(doc, change);\n }\n }\n\n function makeChangeInner(doc, change) {\n if (change.text.length == 1 && change.text[0] == \"\" && cmp(change.from, change.to) == 0) { return }\n var selAfter = computeSelAfterChange(doc, change);\n addChangeToHistory(doc, change, selAfter, doc.cm ? doc.cm.curOp.id : NaN);\n\n makeChangeSingleDoc(doc, change, selAfter, stretchSpansOverChange(doc, change));\n var rebased = [];\n\n linkedDocs(doc, function (doc, sharedHist) {\n if (!sharedHist && indexOf(rebased, doc.history) == -1) {\n rebaseHist(doc.history, change);\n rebased.push(doc.history);\n }\n makeChangeSingleDoc(doc, change, null, stretchSpansOverChange(doc, change));\n });\n }\n\n // Revert a change stored in a document's history.\n function makeChangeFromHistory(doc, type, allowSelectionOnly) {\n var suppress = doc.cm && doc.cm.state.suppressEdits;\n if (suppress && !allowSelectionOnly) { return }\n\n var hist = doc.history, event, selAfter = doc.sel;\n var source = type == \"undo\" ? hist.done : hist.undone, dest = type == \"undo\" ? hist.undone : hist.done;\n\n // Verify that there is a useable event (so that ctrl-z won't\n // needlessly clear selection events)\n var i = 0;\n for (; i < source.length; i++) {\n event = source[i];\n if (allowSelectionOnly ? event.ranges && !event.equals(doc.sel) : !event.ranges)\n { break }\n }\n if (i == source.length) { return }\n hist.lastOrigin = hist.lastSelOrigin = null;\n\n for (;;) {\n event = source.pop();\n if (event.ranges) {\n pushSelectionToHistory(event, dest);\n if (allowSelectionOnly && !event.equals(doc.sel)) {\n setSelection(doc, event, {clearRedo: false});\n return\n }\n selAfter = event;\n } else if (suppress) {\n source.push(event);\n return\n } else { break }\n }\n\n // Build up a reverse change object to add to the opposite history\n // stack (redo when undoing, and vice versa).\n var antiChanges = [];\n pushSelectionToHistory(selAfter, dest);\n dest.push({changes: antiChanges, generation: hist.generation});\n hist.generation = event.generation || ++hist.maxGeneration;\n\n var filter = hasHandler(doc, \"beforeChange\") || doc.cm && hasHandler(doc.cm, \"beforeChange\");\n\n var loop = function ( i ) {\n var change = event.changes[i];\n change.origin = type;\n if (filter && !filterChange(doc, change, false)) {\n source.length = 0;\n return {}\n }\n\n antiChanges.push(historyChangeFromChange(doc, change));\n\n var after = i ? computeSelAfterChange(doc, change) : lst(source);\n makeChangeSingleDoc(doc, change, after, mergeOldSpans(doc, change));\n if (!i && doc.cm) { doc.cm.scrollIntoView({from: change.from, to: changeEnd(change)}); }\n var rebased = [];\n\n // Propagate to the linked documents\n linkedDocs(doc, function (doc, sharedHist) {\n if (!sharedHist && indexOf(rebased, doc.history) == -1) {\n rebaseHist(doc.history, change);\n rebased.push(doc.history);\n }\n makeChangeSingleDoc(doc, change, null, mergeOldSpans(doc, change));\n });\n };\n\n for (var i$1 = event.changes.length - 1; i$1 >= 0; --i$1) {\n var returned = loop( i$1 );\n\n if ( returned ) return returned.v;\n }\n }\n\n // Sub-views need their line numbers shifted when text is added\n // above or below them in the parent document.\n function shiftDoc(doc, distance) {\n if (distance == 0) { return }\n doc.first += distance;\n doc.sel = new Selection(map(doc.sel.ranges, function (range) { return new Range(\n Pos(range.anchor.line + distance, range.anchor.ch),\n Pos(range.head.line + distance, range.head.ch)\n ); }), doc.sel.primIndex);\n if (doc.cm) {\n regChange(doc.cm, doc.first, doc.first - distance, distance);\n for (var d = doc.cm.display, l = d.viewFrom; l < d.viewTo; l++)\n { regLineChange(doc.cm, l, \"gutter\"); }\n }\n }\n\n // More lower-level change function, handling only a single document\n // (not linked ones).\n function makeChangeSingleDoc(doc, change, selAfter, spans) {\n if (doc.cm && !doc.cm.curOp)\n { return operation(doc.cm, makeChangeSingleDoc)(doc, change, selAfter, spans) }\n\n if (change.to.line < doc.first) {\n shiftDoc(doc, change.text.length - 1 - (change.to.line - change.from.line));\n return\n }\n if (change.from.line > doc.lastLine()) { return }\n\n // Clip the change to the size of this doc\n if (change.from.line < doc.first) {\n var shift = change.text.length - 1 - (doc.first - change.from.line);\n shiftDoc(doc, shift);\n change = {from: Pos(doc.first, 0), to: Pos(change.to.line + shift, change.to.ch),\n text: [lst(change.text)], origin: change.origin};\n }\n var last = doc.lastLine();\n if (change.to.line > last) {\n change = {from: change.from, to: Pos(last, getLine(doc, last).text.length),\n text: [change.text[0]], origin: change.origin};\n }\n\n change.removed = getBetween(doc, change.from, change.to);\n\n if (!selAfter) { selAfter = computeSelAfterChange(doc, change); }\n if (doc.cm) { makeChangeSingleDocInEditor(doc.cm, change, spans); }\n else { updateDoc(doc, change, spans); }\n setSelectionNoUndo(doc, selAfter, sel_dontScroll);\n\n if (doc.cantEdit && skipAtomic(doc, Pos(doc.firstLine(), 0)))\n { doc.cantEdit = false; }\n }\n\n // Handle the interaction of a change to a document with the editor\n // that this document is part of.\n function makeChangeSingleDocInEditor(cm, change, spans) {\n var doc = cm.doc, display = cm.display, from = change.from, to = change.to;\n\n var recomputeMaxLength = false, checkWidthStart = from.line;\n if (!cm.options.lineWrapping) {\n checkWidthStart = lineNo(visualLine(getLine(doc, from.line)));\n doc.iter(checkWidthStart, to.line + 1, function (line) {\n if (line == display.maxLine) {\n recomputeMaxLength = true;\n return true\n }\n });\n }\n\n if (doc.sel.contains(change.from, change.to) > -1)\n { signalCursorActivity(cm); }\n\n updateDoc(doc, change, spans, estimateHeight(cm));\n\n if (!cm.options.lineWrapping) {\n doc.iter(checkWidthStart, from.line + change.text.length, function (line) {\n var len = lineLength(line);\n if (len > display.maxLineLength) {\n display.maxLine = line;\n display.maxLineLength = len;\n display.maxLineChanged = true;\n recomputeMaxLength = false;\n }\n });\n if (recomputeMaxLength) { cm.curOp.updateMaxLine = true; }\n }\n\n retreatFrontier(doc, from.line);\n startWorker(cm, 400);\n\n var lendiff = change.text.length - (to.line - from.line) - 1;\n // Remember that these lines changed, for updating the display\n if (change.full)\n { regChange(cm); }\n else if (from.line == to.line && change.text.length == 1 && !isWholeLineUpdate(cm.doc, change))\n { regLineChange(cm, from.line, \"text\"); }\n else\n { regChange(cm, from.line, to.line + 1, lendiff); }\n\n var changesHandler = hasHandler(cm, \"changes\"), changeHandler = hasHandler(cm, \"change\");\n if (changeHandler || changesHandler) {\n var obj = {\n from: from, to: to,\n text: change.text,\n removed: change.removed,\n origin: change.origin\n };\n if (changeHandler) { signalLater(cm, \"change\", cm, obj); }\n if (changesHandler) { (cm.curOp.changeObjs || (cm.curOp.changeObjs = [])).push(obj); }\n }\n cm.display.selForContextMenu = null;\n }\n\n function replaceRange(doc, code, from, to, origin) {\n var assign;\n\n if (!to) { to = from; }\n if (cmp(to, from) < 0) { (assign = [to, from], from = assign[0], to = assign[1]); }\n if (typeof code == \"string\") { code = doc.splitLines(code); }\n makeChange(doc, {from: from, to: to, text: code, origin: origin});\n }\n\n // Rebasing/resetting history to deal with externally-sourced changes\n\n function rebaseHistSelSingle(pos, from, to, diff) {\n if (to < pos.line) {\n pos.line += diff;\n } else if (from < pos.line) {\n pos.line = from;\n pos.ch = 0;\n }\n }\n\n // Tries to rebase an array of history events given a change in the\n // document. If the change touches the same lines as the event, the\n // event, and everything 'behind' it, is discarded. If the change is\n // before the event, the event's positions are updated. Uses a\n // copy-on-write scheme for the positions, to avoid having to\n // reallocate them all on every rebase, but also avoid problems with\n // shared position objects being unsafely updated.\n function rebaseHistArray(array, from, to, diff) {\n for (var i = 0; i < array.length; ++i) {\n var sub = array[i], ok = true;\n if (sub.ranges) {\n if (!sub.copied) { sub = array[i] = sub.deepCopy(); sub.copied = true; }\n for (var j = 0; j < sub.ranges.length; j++) {\n rebaseHistSelSingle(sub.ranges[j].anchor, from, to, diff);\n rebaseHistSelSingle(sub.ranges[j].head, from, to, diff);\n }\n continue\n }\n for (var j$1 = 0; j$1 < sub.changes.length; ++j$1) {\n var cur = sub.changes[j$1];\n if (to < cur.from.line) {\n cur.from = Pos(cur.from.line + diff, cur.from.ch);\n cur.to = Pos(cur.to.line + diff, cur.to.ch);\n } else if (from <= cur.to.line) {\n ok = false;\n break\n }\n }\n if (!ok) {\n array.splice(0, i + 1);\n i = 0;\n }\n }\n }\n\n function rebaseHist(hist, change) {\n var from = change.from.line, to = change.to.line, diff = change.text.length - (to - from) - 1;\n rebaseHistArray(hist.done, from, to, diff);\n rebaseHistArray(hist.undone, from, to, diff);\n }\n\n // Utility for applying a change to a line by handle or number,\n // returning the number and optionally registering the line as\n // changed.\n function changeLine(doc, handle, changeType, op) {\n var no = handle, line = handle;\n if (typeof handle == \"number\") { line = getLine(doc, clipLine(doc, handle)); }\n else { no = lineNo(handle); }\n if (no == null) { return null }\n if (op(line, no) && doc.cm) { regLineChange(doc.cm, no, changeType); }\n return line\n }\n\n // The document is represented as a BTree consisting of leaves, with\n // chunk of lines in them, and branches, with up to ten leaves or\n // other branch nodes below them. The top node is always a branch\n // node, and is the document object itself (meaning it has\n // additional methods and properties).\n //\n // All nodes have parent links. The tree is used both to go from\n // line numbers to line objects, and to go from objects to numbers.\n // It also indexes by height, and is used to convert between height\n // and line object, and to find the total height of the document.\n //\n // See also http://marijnhaverbeke.nl/blog/codemirror-line-tree.html\n\n function LeafChunk(lines) {\n this.lines = lines;\n this.parent = null;\n var height = 0;\n for (var i = 0; i < lines.length; ++i) {\n lines[i].parent = this;\n height += lines[i].height;\n }\n this.height = height;\n }\n\n LeafChunk.prototype = {\n chunkSize: function() { return this.lines.length },\n\n // Remove the n lines at offset 'at'.\n removeInner: function(at, n) {\n for (var i = at, e = at + n; i < e; ++i) {\n var line = this.lines[i];\n this.height -= line.height;\n cleanUpLine(line);\n signalLater(line, \"delete\");\n }\n this.lines.splice(at, n);\n },\n\n // Helper used to collapse a small branch into a single leaf.\n collapse: function(lines) {\n lines.push.apply(lines, this.lines);\n },\n\n // Insert the given array of lines at offset 'at', count them as\n // having the given height.\n insertInner: function(at, lines, height) {\n this.height += height;\n this.lines = this.lines.slice(0, at).concat(lines).concat(this.lines.slice(at));\n for (var i = 0; i < lines.length; ++i) { lines[i].parent = this; }\n },\n\n // Used to iterate over a part of the tree.\n iterN: function(at, n, op) {\n for (var e = at + n; at < e; ++at)\n { if (op(this.lines[at])) { return true } }\n }\n };\n\n function BranchChunk(children) {\n this.children = children;\n var size = 0, height = 0;\n for (var i = 0; i < children.length; ++i) {\n var ch = children[i];\n size += ch.chunkSize(); height += ch.height;\n ch.parent = this;\n }\n this.size = size;\n this.height = height;\n this.parent = null;\n }\n\n BranchChunk.prototype = {\n chunkSize: function() { return this.size },\n\n removeInner: function(at, n) {\n this.size -= n;\n for (var i = 0; i < this.children.length; ++i) {\n var child = this.children[i], sz = child.chunkSize();\n if (at < sz) {\n var rm = Math.min(n, sz - at), oldHeight = child.height;\n child.removeInner(at, rm);\n this.height -= oldHeight - child.height;\n if (sz == rm) { this.children.splice(i--, 1); child.parent = null; }\n if ((n -= rm) == 0) { break }\n at = 0;\n } else { at -= sz; }\n }\n // If the result is smaller than 25 lines, ensure that it is a\n // single leaf node.\n if (this.size - n < 25 &&\n (this.children.length > 1 || !(this.children[0] instanceof LeafChunk))) {\n var lines = [];\n this.collapse(lines);\n this.children = [new LeafChunk(lines)];\n this.children[0].parent = this;\n }\n },\n\n collapse: function(lines) {\n for (var i = 0; i < this.children.length; ++i) { this.children[i].collapse(lines); }\n },\n\n insertInner: function(at, lines, height) {\n this.size += lines.length;\n this.height += height;\n for (var i = 0; i < this.children.length; ++i) {\n var child = this.children[i], sz = child.chunkSize();\n if (at <= sz) {\n child.insertInner(at, lines, height);\n if (child.lines && child.lines.length > 50) {\n // To avoid memory thrashing when child.lines is huge (e.g. first view of a large file), it's never spliced.\n // Instead, small slices are taken. They're taken in order because sequential memory accesses are fastest.\n var remaining = child.lines.length % 25 + 25;\n for (var pos = remaining; pos < child.lines.length;) {\n var leaf = new LeafChunk(child.lines.slice(pos, pos += 25));\n child.height -= leaf.height;\n this.children.splice(++i, 0, leaf);\n leaf.parent = this;\n }\n child.lines = child.lines.slice(0, remaining);\n this.maybeSpill();\n }\n break\n }\n at -= sz;\n }\n },\n\n // When a node has grown, check whether it should be split.\n maybeSpill: function() {\n if (this.children.length <= 10) { return }\n var me = this;\n do {\n var spilled = me.children.splice(me.children.length - 5, 5);\n var sibling = new BranchChunk(spilled);\n if (!me.parent) { // Become the parent node\n var copy = new BranchChunk(me.children);\n copy.parent = me;\n me.children = [copy, sibling];\n me = copy;\n } else {\n me.size -= sibling.size;\n me.height -= sibling.height;\n var myIndex = indexOf(me.parent.children, me);\n me.parent.children.splice(myIndex + 1, 0, sibling);\n }\n sibling.parent = me.parent;\n } while (me.children.length > 10)\n me.parent.maybeSpill();\n },\n\n iterN: function(at, n, op) {\n for (var i = 0; i < this.children.length; ++i) {\n var child = this.children[i], sz = child.chunkSize();\n if (at < sz) {\n var used = Math.min(n, sz - at);\n if (child.iterN(at, used, op)) { return true }\n if ((n -= used) == 0) { break }\n at = 0;\n } else { at -= sz; }\n }\n }\n };\n\n // Line widgets are block elements displayed above or below a line.\n\n var LineWidget = function(doc, node, options) {\n if (options) { for (var opt in options) { if (options.hasOwnProperty(opt))\n { this[opt] = options[opt]; } } }\n this.doc = doc;\n this.node = node;\n };\n\n LineWidget.prototype.clear = function () {\n var cm = this.doc.cm, ws = this.line.widgets, line = this.line, no = lineNo(line);\n if (no == null || !ws) { return }\n for (var i = 0; i < ws.length; ++i) { if (ws[i] == this) { ws.splice(i--, 1); } }\n if (!ws.length) { line.widgets = null; }\n var height = widgetHeight(this);\n updateLineHeight(line, Math.max(0, line.height - height));\n if (cm) {\n runInOp(cm, function () {\n adjustScrollWhenAboveVisible(cm, line, -height);\n regLineChange(cm, no, \"widget\");\n });\n signalLater(cm, \"lineWidgetCleared\", cm, this, no);\n }\n };\n\n LineWidget.prototype.changed = function () {\n var this$1 = this;\n\n var oldH = this.height, cm = this.doc.cm, line = this.line;\n this.height = null;\n var diff = widgetHeight(this) - oldH;\n if (!diff) { return }\n if (!lineIsHidden(this.doc, line)) { updateLineHeight(line, line.height + diff); }\n if (cm) {\n runInOp(cm, function () {\n cm.curOp.forceUpdate = true;\n adjustScrollWhenAboveVisible(cm, line, diff);\n signalLater(cm, \"lineWidgetChanged\", cm, this$1, lineNo(line));\n });\n }\n };\n eventMixin(LineWidget);\n\n function adjustScrollWhenAboveVisible(cm, line, diff) {\n if (heightAtLine(line) < ((cm.curOp && cm.curOp.scrollTop) || cm.doc.scrollTop))\n { addToScrollTop(cm, diff); }\n }\n\n function addLineWidget(doc, handle, node, options) {\n var widget = new LineWidget(doc, node, options);\n var cm = doc.cm;\n if (cm && widget.noHScroll) { cm.display.alignWidgets = true; }\n changeLine(doc, handle, \"widget\", function (line) {\n var widgets = line.widgets || (line.widgets = []);\n if (widget.insertAt == null) { widgets.push(widget); }\n else { widgets.splice(Math.min(widgets.length - 1, Math.max(0, widget.insertAt)), 0, widget); }\n widget.line = line;\n if (cm && !lineIsHidden(doc, line)) {\n var aboveVisible = heightAtLine(line) < doc.scrollTop;\n updateLineHeight(line, line.height + widgetHeight(widget));\n if (aboveVisible) { addToScrollTop(cm, widget.height); }\n cm.curOp.forceUpdate = true;\n }\n return true\n });\n if (cm) { signalLater(cm, \"lineWidgetAdded\", cm, widget, typeof handle == \"number\" ? handle : lineNo(handle)); }\n return widget\n }\n\n // TEXTMARKERS\n\n // Created with markText and setBookmark methods. A TextMarker is a\n // handle that can be used to clear or find a marked position in the\n // document. Line objects hold arrays (markedSpans) containing\n // {from, to, marker} object pointing to such marker objects, and\n // indicating that such a marker is present on that line. Multiple\n // lines may point to the same marker when it spans across lines.\n // The spans will have null for their from/to properties when the\n // marker continues beyond the start/end of the line. Markers have\n // links back to the lines they currently touch.\n\n // Collapsed markers have unique ids, in order to be able to order\n // them, which is needed for uniquely determining an outer marker\n // when they overlap (they may nest, but not partially overlap).\n var nextMarkerId = 0;\n\n var TextMarker = function(doc, type) {\n this.lines = [];\n this.type = type;\n this.doc = doc;\n this.id = ++nextMarkerId;\n };\n\n // Clear the marker.\n TextMarker.prototype.clear = function () {\n if (this.explicitlyCleared) { return }\n var cm = this.doc.cm, withOp = cm && !cm.curOp;\n if (withOp) { startOperation(cm); }\n if (hasHandler(this, \"clear\")) {\n var found = this.find();\n if (found) { signalLater(this, \"clear\", found.from, found.to); }\n }\n var min = null, max = null;\n for (var i = 0; i < this.lines.length; ++i) {\n var line = this.lines[i];\n var span = getMarkedSpanFor(line.markedSpans, this);\n if (cm && !this.collapsed) { regLineChange(cm, lineNo(line), \"text\"); }\n else if (cm) {\n if (span.to != null) { max = lineNo(line); }\n if (span.from != null) { min = lineNo(line); }\n }\n line.markedSpans = removeMarkedSpan(line.markedSpans, span);\n if (span.from == null && this.collapsed && !lineIsHidden(this.doc, line) && cm)\n { updateLineHeight(line, textHeight(cm.display)); }\n }\n if (cm && this.collapsed && !cm.options.lineWrapping) { for (var i$1 = 0; i$1 < this.lines.length; ++i$1) {\n var visual = visualLine(this.lines[i$1]), len = lineLength(visual);\n if (len > cm.display.maxLineLength) {\n cm.display.maxLine = visual;\n cm.display.maxLineLength = len;\n cm.display.maxLineChanged = true;\n }\n } }\n\n if (min != null && cm && this.collapsed) { regChange(cm, min, max + 1); }\n this.lines.length = 0;\n this.explicitlyCleared = true;\n if (this.atomic && this.doc.cantEdit) {\n this.doc.cantEdit = false;\n if (cm) { reCheckSelection(cm.doc); }\n }\n if (cm) { signalLater(cm, \"markerCleared\", cm, this, min, max); }\n if (withOp) { endOperation(cm); }\n if (this.parent) { this.parent.clear(); }\n };\n\n // Find the position of the marker in the document. Returns a {from,\n // to} object by default. Side can be passed to get a specific side\n // -- 0 (both), -1 (left), or 1 (right). When lineObj is true, the\n // Pos objects returned contain a line object, rather than a line\n // number (used to prevent looking up the same line twice).\n TextMarker.prototype.find = function (side, lineObj) {\n if (side == null && this.type == \"bookmark\") { side = 1; }\n var from, to;\n for (var i = 0; i < this.lines.length; ++i) {\n var line = this.lines[i];\n var span = getMarkedSpanFor(line.markedSpans, this);\n if (span.from != null) {\n from = Pos(lineObj ? line : lineNo(line), span.from);\n if (side == -1) { return from }\n }\n if (span.to != null) {\n to = Pos(lineObj ? line : lineNo(line), span.to);\n if (side == 1) { return to }\n }\n }\n return from && {from: from, to: to}\n };\n\n // Signals that the marker's widget changed, and surrounding layout\n // should be recomputed.\n TextMarker.prototype.changed = function () {\n var this$1 = this;\n\n var pos = this.find(-1, true), widget = this, cm = this.doc.cm;\n if (!pos || !cm) { return }\n runInOp(cm, function () {\n var line = pos.line, lineN = lineNo(pos.line);\n var view = findViewForLine(cm, lineN);\n if (view) {\n clearLineMeasurementCacheFor(view);\n cm.curOp.selectionChanged = cm.curOp.forceUpdate = true;\n }\n cm.curOp.updateMaxLine = true;\n if (!lineIsHidden(widget.doc, line) && widget.height != null) {\n var oldHeight = widget.height;\n widget.height = null;\n var dHeight = widgetHeight(widget) - oldHeight;\n if (dHeight)\n { updateLineHeight(line, line.height + dHeight); }\n }\n signalLater(cm, \"markerChanged\", cm, this$1);\n });\n };\n\n TextMarker.prototype.attachLine = function (line) {\n if (!this.lines.length && this.doc.cm) {\n var op = this.doc.cm.curOp;\n if (!op.maybeHiddenMarkers || indexOf(op.maybeHiddenMarkers, this) == -1)\n { (op.maybeUnhiddenMarkers || (op.maybeUnhiddenMarkers = [])).push(this); }\n }\n this.lines.push(line);\n };\n\n TextMarker.prototype.detachLine = function (line) {\n this.lines.splice(indexOf(this.lines, line), 1);\n if (!this.lines.length && this.doc.cm) {\n var op = this.doc.cm.curOp\n ;(op.maybeHiddenMarkers || (op.maybeHiddenMarkers = [])).push(this);\n }\n };\n eventMixin(TextMarker);\n\n // Create a marker, wire it up to the right lines, and\n function markText(doc, from, to, options, type) {\n // Shared markers (across linked documents) are handled separately\n // (markTextShared will call out to this again, once per\n // document).\n if (options && options.shared) { return markTextShared(doc, from, to, options, type) }\n // Ensure we are in an operation.\n if (doc.cm && !doc.cm.curOp) { return operation(doc.cm, markText)(doc, from, to, options, type) }\n\n var marker = new TextMarker(doc, type), diff = cmp(from, to);\n if (options) { copyObj(options, marker, false); }\n // Don't connect empty markers unless clearWhenEmpty is false\n if (diff > 0 || diff == 0 && marker.clearWhenEmpty !== false)\n { return marker }\n if (marker.replacedWith) {\n // Showing up as a widget implies collapsed (widget replaces text)\n marker.collapsed = true;\n marker.widgetNode = eltP(\"span\", [marker.replacedWith], \"CodeMirror-widget\");\n if (!options.handleMouseEvents) { marker.widgetNode.setAttribute(\"cm-ignore-events\", \"true\"); }\n if (options.insertLeft) { marker.widgetNode.insertLeft = true; }\n }\n if (marker.collapsed) {\n if (conflictingCollapsedRange(doc, from.line, from, to, marker) ||\n from.line != to.line && conflictingCollapsedRange(doc, to.line, from, to, marker))\n { throw new Error(\"Inserting collapsed marker partially overlapping an existing one\") }\n seeCollapsedSpans();\n }\n\n if (marker.addToHistory)\n { addChangeToHistory(doc, {from: from, to: to, origin: \"markText\"}, doc.sel, NaN); }\n\n var curLine = from.line, cm = doc.cm, updateMaxLine;\n doc.iter(curLine, to.line + 1, function (line) {\n if (cm && marker.collapsed && !cm.options.lineWrapping && visualLine(line) == cm.display.maxLine)\n { updateMaxLine = true; }\n if (marker.collapsed && curLine != from.line) { updateLineHeight(line, 0); }\n addMarkedSpan(line, new MarkedSpan(marker,\n curLine == from.line ? from.ch : null,\n curLine == to.line ? to.ch : null));\n ++curLine;\n });\n // lineIsHidden depends on the presence of the spans, so needs a second pass\n if (marker.collapsed) { doc.iter(from.line, to.line + 1, function (line) {\n if (lineIsHidden(doc, line)) { updateLineHeight(line, 0); }\n }); }\n\n if (marker.clearOnEnter) { on(marker, \"beforeCursorEnter\", function () { return marker.clear(); }); }\n\n if (marker.readOnly) {\n seeReadOnlySpans();\n if (doc.history.done.length || doc.history.undone.length)\n { doc.clearHistory(); }\n }\n if (marker.collapsed) {\n marker.id = ++nextMarkerId;\n marker.atomic = true;\n }\n if (cm) {\n // Sync editor state\n if (updateMaxLine) { cm.curOp.updateMaxLine = true; }\n if (marker.collapsed)\n { regChange(cm, from.line, to.line + 1); }\n else if (marker.className || marker.startStyle || marker.endStyle || marker.css ||\n marker.attributes || marker.title)\n { for (var i = from.line; i <= to.line; i++) { regLineChange(cm, i, \"text\"); } }\n if (marker.atomic) { reCheckSelection(cm.doc); }\n signalLater(cm, \"markerAdded\", cm, marker);\n }\n return marker\n }\n\n // SHARED TEXTMARKERS\n\n // A shared marker spans multiple linked documents. It is\n // implemented as a meta-marker-object controlling multiple normal\n // markers.\n var SharedTextMarker = function(markers, primary) {\n this.markers = markers;\n this.primary = primary;\n for (var i = 0; i < markers.length; ++i)\n { markers[i].parent = this; }\n };\n\n SharedTextMarker.prototype.clear = function () {\n if (this.explicitlyCleared) { return }\n this.explicitlyCleared = true;\n for (var i = 0; i < this.markers.length; ++i)\n { this.markers[i].clear(); }\n signalLater(this, \"clear\");\n };\n\n SharedTextMarker.prototype.find = function (side, lineObj) {\n return this.primary.find(side, lineObj)\n };\n eventMixin(SharedTextMarker);\n\n function markTextShared(doc, from, to, options, type) {\n options = copyObj(options);\n options.shared = false;\n var markers = [markText(doc, from, to, options, type)], primary = markers[0];\n var widget = options.widgetNode;\n linkedDocs(doc, function (doc) {\n if (widget) { options.widgetNode = widget.cloneNode(true); }\n markers.push(markText(doc, clipPos(doc, from), clipPos(doc, to), options, type));\n for (var i = 0; i < doc.linked.length; ++i)\n { if (doc.linked[i].isParent) { return } }\n primary = lst(markers);\n });\n return new SharedTextMarker(markers, primary)\n }\n\n function findSharedMarkers(doc) {\n return doc.findMarks(Pos(doc.first, 0), doc.clipPos(Pos(doc.lastLine())), function (m) { return m.parent; })\n }\n\n function copySharedMarkers(doc, markers) {\n for (var i = 0; i < markers.length; i++) {\n var marker = markers[i], pos = marker.find();\n var mFrom = doc.clipPos(pos.from), mTo = doc.clipPos(pos.to);\n if (cmp(mFrom, mTo)) {\n var subMark = markText(doc, mFrom, mTo, marker.primary, marker.primary.type);\n marker.markers.push(subMark);\n subMark.parent = marker;\n }\n }\n }\n\n function detachSharedMarkers(markers) {\n var loop = function ( i ) {\n var marker = markers[i], linked = [marker.primary.doc];\n linkedDocs(marker.primary.doc, function (d) { return linked.push(d); });\n for (var j = 0; j < marker.markers.length; j++) {\n var subMarker = marker.markers[j];\n if (indexOf(linked, subMarker.doc) == -1) {\n subMarker.parent = null;\n marker.markers.splice(j--, 1);\n }\n }\n };\n\n for (var i = 0; i < markers.length; i++) loop( i );\n }\n\n var nextDocId = 0;\n var Doc = function(text, mode, firstLine, lineSep, direction) {\n if (!(this instanceof Doc)) { return new Doc(text, mode, firstLine, lineSep, direction) }\n if (firstLine == null) { firstLine = 0; }\n\n BranchChunk.call(this, [new LeafChunk([new Line(\"\", null)])]);\n this.first = firstLine;\n this.scrollTop = this.scrollLeft = 0;\n this.cantEdit = false;\n this.cleanGeneration = 1;\n this.modeFrontier = this.highlightFrontier = firstLine;\n var start = Pos(firstLine, 0);\n this.sel = simpleSelection(start);\n this.history = new History(null);\n this.id = ++nextDocId;\n this.modeOption = mode;\n this.lineSep = lineSep;\n this.direction = (direction == \"rtl\") ? \"rtl\" : \"ltr\";\n this.extend = false;\n\n if (typeof text == \"string\") { text = this.splitLines(text); }\n updateDoc(this, {from: start, to: start, text: text});\n setSelection(this, simpleSelection(start), sel_dontScroll);\n };\n\n Doc.prototype = createObj(BranchChunk.prototype, {\n constructor: Doc,\n // Iterate over the document. Supports two forms -- with only one\n // argument, it calls that for each line in the document. With\n // three, it iterates over the range given by the first two (with\n // the second being non-inclusive).\n iter: function(from, to, op) {\n if (op) { this.iterN(from - this.first, to - from, op); }\n else { this.iterN(this.first, this.first + this.size, from); }\n },\n\n // Non-public interface for adding and removing lines.\n insert: function(at, lines) {\n var height = 0;\n for (var i = 0; i < lines.length; ++i) { height += lines[i].height; }\n this.insertInner(at - this.first, lines, height);\n },\n remove: function(at, n) { this.removeInner(at - this.first, n); },\n\n // From here, the methods are part of the public interface. Most\n // are also available from CodeMirror (editor) instances.\n\n getValue: function(lineSep) {\n var lines = getLines(this, this.first, this.first + this.size);\n if (lineSep === false) { return lines }\n return lines.join(lineSep || this.lineSeparator())\n },\n setValue: docMethodOp(function(code) {\n var top = Pos(this.first, 0), last = this.first + this.size - 1;\n makeChange(this, {from: top, to: Pos(last, getLine(this, last).text.length),\n text: this.splitLines(code), origin: \"setValue\", full: true}, true);\n if (this.cm) { scrollToCoords(this.cm, 0, 0); }\n setSelection(this, simpleSelection(top), sel_dontScroll);\n }),\n replaceRange: function(code, from, to, origin) {\n from = clipPos(this, from);\n to = to ? clipPos(this, to) : from;\n replaceRange(this, code, from, to, origin);\n },\n getRange: function(from, to, lineSep) {\n var lines = getBetween(this, clipPos(this, from), clipPos(this, to));\n if (lineSep === false) { return lines }\n return lines.join(lineSep || this.lineSeparator())\n },\n\n getLine: function(line) {var l = this.getLineHandle(line); return l && l.text},\n\n getLineHandle: function(line) {if (isLine(this, line)) { return getLine(this, line) }},\n getLineNumber: function(line) {return lineNo(line)},\n\n getLineHandleVisualStart: function(line) {\n if (typeof line == \"number\") { line = getLine(this, line); }\n return visualLine(line)\n },\n\n lineCount: function() {return this.size},\n firstLine: function() {return this.first},\n lastLine: function() {return this.first + this.size - 1},\n\n clipPos: function(pos) {return clipPos(this, pos)},\n\n getCursor: function(start) {\n var range = this.sel.primary(), pos;\n if (start == null || start == \"head\") { pos = range.head; }\n else if (start == \"anchor\") { pos = range.anchor; }\n else if (start == \"end\" || start == \"to\" || start === false) { pos = range.to(); }\n else { pos = range.from(); }\n return pos\n },\n listSelections: function() { return this.sel.ranges },\n somethingSelected: function() {return this.sel.somethingSelected()},\n\n setCursor: docMethodOp(function(line, ch, options) {\n setSimpleSelection(this, clipPos(this, typeof line == \"number\" ? Pos(line, ch || 0) : line), null, options);\n }),\n setSelection: docMethodOp(function(anchor, head, options) {\n setSimpleSelection(this, clipPos(this, anchor), clipPos(this, head || anchor), options);\n }),\n extendSelection: docMethodOp(function(head, other, options) {\n extendSelection(this, clipPos(this, head), other && clipPos(this, other), options);\n }),\n extendSelections: docMethodOp(function(heads, options) {\n extendSelections(this, clipPosArray(this, heads), options);\n }),\n extendSelectionsBy: docMethodOp(function(f, options) {\n var heads = map(this.sel.ranges, f);\n extendSelections(this, clipPosArray(this, heads), options);\n }),\n setSelections: docMethodOp(function(ranges, primary, options) {\n if (!ranges.length) { return }\n var out = [];\n for (var i = 0; i < ranges.length; i++)\n { out[i] = new Range(clipPos(this, ranges[i].anchor),\n clipPos(this, ranges[i].head)); }\n if (primary == null) { primary = Math.min(ranges.length - 1, this.sel.primIndex); }\n setSelection(this, normalizeSelection(this.cm, out, primary), options);\n }),\n addSelection: docMethodOp(function(anchor, head, options) {\n var ranges = this.sel.ranges.slice(0);\n ranges.push(new Range(clipPos(this, anchor), clipPos(this, head || anchor)));\n setSelection(this, normalizeSelection(this.cm, ranges, ranges.length - 1), options);\n }),\n\n getSelection: function(lineSep) {\n var ranges = this.sel.ranges, lines;\n for (var i = 0; i < ranges.length; i++) {\n var sel = getBetween(this, ranges[i].from(), ranges[i].to());\n lines = lines ? lines.concat(sel) : sel;\n }\n if (lineSep === false) { return lines }\n else { return lines.join(lineSep || this.lineSeparator()) }\n },\n getSelections: function(lineSep) {\n var parts = [], ranges = this.sel.ranges;\n for (var i = 0; i < ranges.length; i++) {\n var sel = getBetween(this, ranges[i].from(), ranges[i].to());\n if (lineSep !== false) { sel = sel.join(lineSep || this.lineSeparator()); }\n parts[i] = sel;\n }\n return parts\n },\n replaceSelection: function(code, collapse, origin) {\n var dup = [];\n for (var i = 0; i < this.sel.ranges.length; i++)\n { dup[i] = code; }\n this.replaceSelections(dup, collapse, origin || \"+input\");\n },\n replaceSelections: docMethodOp(function(code, collapse, origin) {\n var changes = [], sel = this.sel;\n for (var i = 0; i < sel.ranges.length; i++) {\n var range = sel.ranges[i];\n changes[i] = {from: range.from(), to: range.to(), text: this.splitLines(code[i]), origin: origin};\n }\n var newSel = collapse && collapse != \"end\" && computeReplacedSel(this, changes, collapse);\n for (var i$1 = changes.length - 1; i$1 >= 0; i$1--)\n { makeChange(this, changes[i$1]); }\n if (newSel) { setSelectionReplaceHistory(this, newSel); }\n else if (this.cm) { ensureCursorVisible(this.cm); }\n }),\n undo: docMethodOp(function() {makeChangeFromHistory(this, \"undo\");}),\n redo: docMethodOp(function() {makeChangeFromHistory(this, \"redo\");}),\n undoSelection: docMethodOp(function() {makeChangeFromHistory(this, \"undo\", true);}),\n redoSelection: docMethodOp(function() {makeChangeFromHistory(this, \"redo\", true);}),\n\n setExtending: function(val) {this.extend = val;},\n getExtending: function() {return this.extend},\n\n historySize: function() {\n var hist = this.history, done = 0, undone = 0;\n for (var i = 0; i < hist.done.length; i++) { if (!hist.done[i].ranges) { ++done; } }\n for (var i$1 = 0; i$1 < hist.undone.length; i$1++) { if (!hist.undone[i$1].ranges) { ++undone; } }\n return {undo: done, redo: undone}\n },\n clearHistory: function() {\n var this$1 = this;\n\n this.history = new History(this.history.maxGeneration);\n linkedDocs(this, function (doc) { return doc.history = this$1.history; }, true);\n },\n\n markClean: function() {\n this.cleanGeneration = this.changeGeneration(true);\n },\n changeGeneration: function(forceSplit) {\n if (forceSplit)\n { this.history.lastOp = this.history.lastSelOp = this.history.lastOrigin = null; }\n return this.history.generation\n },\n isClean: function (gen) {\n return this.history.generation == (gen || this.cleanGeneration)\n },\n\n getHistory: function() {\n return {done: copyHistoryArray(this.history.done),\n undone: copyHistoryArray(this.history.undone)}\n },\n setHistory: function(histData) {\n var hist = this.history = new History(this.history.maxGeneration);\n hist.done = copyHistoryArray(histData.done.slice(0), null, true);\n hist.undone = copyHistoryArray(histData.undone.slice(0), null, true);\n },\n\n setGutterMarker: docMethodOp(function(line, gutterID, value) {\n return changeLine(this, line, \"gutter\", function (line) {\n var markers = line.gutterMarkers || (line.gutterMarkers = {});\n markers[gutterID] = value;\n if (!value && isEmpty(markers)) { line.gutterMarkers = null; }\n return true\n })\n }),\n\n clearGutter: docMethodOp(function(gutterID) {\n var this$1 = this;\n\n this.iter(function (line) {\n if (line.gutterMarkers && line.gutterMarkers[gutterID]) {\n changeLine(this$1, line, \"gutter\", function () {\n line.gutterMarkers[gutterID] = null;\n if (isEmpty(line.gutterMarkers)) { line.gutterMarkers = null; }\n return true\n });\n }\n });\n }),\n\n lineInfo: function(line) {\n var n;\n if (typeof line == \"number\") {\n if (!isLine(this, line)) { return null }\n n = line;\n line = getLine(this, line);\n if (!line) { return null }\n } else {\n n = lineNo(line);\n if (n == null) { return null }\n }\n return {line: n, handle: line, text: line.text, gutterMarkers: line.gutterMarkers,\n textClass: line.textClass, bgClass: line.bgClass, wrapClass: line.wrapClass,\n widgets: line.widgets}\n },\n\n addLineClass: docMethodOp(function(handle, where, cls) {\n return changeLine(this, handle, where == \"gutter\" ? \"gutter\" : \"class\", function (line) {\n var prop = where == \"text\" ? \"textClass\"\n : where == \"background\" ? \"bgClass\"\n : where == \"gutter\" ? \"gutterClass\" : \"wrapClass\";\n if (!line[prop]) { line[prop] = cls; }\n else if (classTest(cls).test(line[prop])) { return false }\n else { line[prop] += \" \" + cls; }\n return true\n })\n }),\n removeLineClass: docMethodOp(function(handle, where, cls) {\n return changeLine(this, handle, where == \"gutter\" ? \"gutter\" : \"class\", function (line) {\n var prop = where == \"text\" ? \"textClass\"\n : where == \"background\" ? \"bgClass\"\n : where == \"gutter\" ? \"gutterClass\" : \"wrapClass\";\n var cur = line[prop];\n if (!cur) { return false }\n else if (cls == null) { line[prop] = null; }\n else {\n var found = cur.match(classTest(cls));\n if (!found) { return false }\n var end = found.index + found[0].length;\n line[prop] = cur.slice(0, found.index) + (!found.index || end == cur.length ? \"\" : \" \") + cur.slice(end) || null;\n }\n return true\n })\n }),\n\n addLineWidget: docMethodOp(function(handle, node, options) {\n return addLineWidget(this, handle, node, options)\n }),\n removeLineWidget: function(widget) { widget.clear(); },\n\n markText: function(from, to, options) {\n return markText(this, clipPos(this, from), clipPos(this, to), options, options && options.type || \"range\")\n },\n setBookmark: function(pos, options) {\n var realOpts = {replacedWith: options && (options.nodeType == null ? options.widget : options),\n insertLeft: options && options.insertLeft,\n clearWhenEmpty: false, shared: options && options.shared,\n handleMouseEvents: options && options.handleMouseEvents};\n pos = clipPos(this, pos);\n return markText(this, pos, pos, realOpts, \"bookmark\")\n },\n findMarksAt: function(pos) {\n pos = clipPos(this, pos);\n var markers = [], spans = getLine(this, pos.line).markedSpans;\n if (spans) { for (var i = 0; i < spans.length; ++i) {\n var span = spans[i];\n if ((span.from == null || span.from <= pos.ch) &&\n (span.to == null || span.to >= pos.ch))\n { markers.push(span.marker.parent || span.marker); }\n } }\n return markers\n },\n findMarks: function(from, to, filter) {\n from = clipPos(this, from); to = clipPos(this, to);\n var found = [], lineNo = from.line;\n this.iter(from.line, to.line + 1, function (line) {\n var spans = line.markedSpans;\n if (spans) { for (var i = 0; i < spans.length; i++) {\n var span = spans[i];\n if (!(span.to != null && lineNo == from.line && from.ch >= span.to ||\n span.from == null && lineNo != from.line ||\n span.from != null && lineNo == to.line && span.from >= to.ch) &&\n (!filter || filter(span.marker)))\n { found.push(span.marker.parent || span.marker); }\n } }\n ++lineNo;\n });\n return found\n },\n getAllMarks: function() {\n var markers = [];\n this.iter(function (line) {\n var sps = line.markedSpans;\n if (sps) { for (var i = 0; i < sps.length; ++i)\n { if (sps[i].from != null) { markers.push(sps[i].marker); } } }\n });\n return markers\n },\n\n posFromIndex: function(off) {\n var ch, lineNo = this.first, sepSize = this.lineSeparator().length;\n this.iter(function (line) {\n var sz = line.text.length + sepSize;\n if (sz > off) { ch = off; return true }\n off -= sz;\n ++lineNo;\n });\n return clipPos(this, Pos(lineNo, ch))\n },\n indexFromPos: function (coords) {\n coords = clipPos(this, coords);\n var index = coords.ch;\n if (coords.line < this.first || coords.ch < 0) { return 0 }\n var sepSize = this.lineSeparator().length;\n this.iter(this.first, coords.line, function (line) { // iter aborts when callback returns a truthy value\n index += line.text.length + sepSize;\n });\n return index\n },\n\n copy: function(copyHistory) {\n var doc = new Doc(getLines(this, this.first, this.first + this.size),\n this.modeOption, this.first, this.lineSep, this.direction);\n doc.scrollTop = this.scrollTop; doc.scrollLeft = this.scrollLeft;\n doc.sel = this.sel;\n doc.extend = false;\n if (copyHistory) {\n doc.history.undoDepth = this.history.undoDepth;\n doc.setHistory(this.getHistory());\n }\n return doc\n },\n\n linkedDoc: function(options) {\n if (!options) { options = {}; }\n var from = this.first, to = this.first + this.size;\n if (options.from != null && options.from > from) { from = options.from; }\n if (options.to != null && options.to < to) { to = options.to; }\n var copy = new Doc(getLines(this, from, to), options.mode || this.modeOption, from, this.lineSep, this.direction);\n if (options.sharedHist) { copy.history = this.history\n ; }(this.linked || (this.linked = [])).push({doc: copy, sharedHist: options.sharedHist});\n copy.linked = [{doc: this, isParent: true, sharedHist: options.sharedHist}];\n copySharedMarkers(copy, findSharedMarkers(this));\n return copy\n },\n unlinkDoc: function(other) {\n if (other instanceof CodeMirror) { other = other.doc; }\n if (this.linked) { for (var i = 0; i < this.linked.length; ++i) {\n var link = this.linked[i];\n if (link.doc != other) { continue }\n this.linked.splice(i, 1);\n other.unlinkDoc(this);\n detachSharedMarkers(findSharedMarkers(this));\n break\n } }\n // If the histories were shared, split them again\n if (other.history == this.history) {\n var splitIds = [other.id];\n linkedDocs(other, function (doc) { return splitIds.push(doc.id); }, true);\n other.history = new History(null);\n other.history.done = copyHistoryArray(this.history.done, splitIds);\n other.history.undone = copyHistoryArray(this.history.undone, splitIds);\n }\n },\n iterLinkedDocs: function(f) {linkedDocs(this, f);},\n\n getMode: function() {return this.mode},\n getEditor: function() {return this.cm},\n\n splitLines: function(str) {\n if (this.lineSep) { return str.split(this.lineSep) }\n return splitLinesAuto(str)\n },\n lineSeparator: function() { return this.lineSep || \"\\n\" },\n\n setDirection: docMethodOp(function (dir) {\n if (dir != \"rtl\") { dir = \"ltr\"; }\n if (dir == this.direction) { return }\n this.direction = dir;\n this.iter(function (line) { return line.order = null; });\n if (this.cm) { directionChanged(this.cm); }\n })\n });\n\n // Public alias.\n Doc.prototype.eachLine = Doc.prototype.iter;\n\n // Kludge to work around strange IE behavior where it'll sometimes\n // re-fire a series of drag-related events right after the drop (#1551)\n var lastDrop = 0;\n\n function onDrop(e) {\n var cm = this;\n clearDragCursor(cm);\n if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e))\n { return }\n e_preventDefault(e);\n if (ie) { lastDrop = +new Date; }\n var pos = posFromMouse(cm, e, true), files = e.dataTransfer.files;\n if (!pos || cm.isReadOnly()) { return }\n // Might be a file drop, in which case we simply extract the text\n // and insert it.\n if (files && files.length && window.FileReader && window.File) {\n var n = files.length, text = Array(n), read = 0;\n var markAsReadAndPasteIfAllFilesAreRead = function () {\n if (++read == n) {\n operation(cm, function () {\n pos = clipPos(cm.doc, pos);\n var change = {from: pos, to: pos,\n text: cm.doc.splitLines(\n text.filter(function (t) { return t != null; }).join(cm.doc.lineSeparator())),\n origin: \"paste\"};\n makeChange(cm.doc, change);\n setSelectionReplaceHistory(cm.doc, simpleSelection(clipPos(cm.doc, pos), clipPos(cm.doc, changeEnd(change))));\n })();\n }\n };\n var readTextFromFile = function (file, i) {\n if (cm.options.allowDropFileTypes &&\n indexOf(cm.options.allowDropFileTypes, file.type) == -1) {\n markAsReadAndPasteIfAllFilesAreRead();\n return\n }\n var reader = new FileReader;\n reader.onerror = function () { return markAsReadAndPasteIfAllFilesAreRead(); };\n reader.onload = function () {\n var content = reader.result;\n if (/[\\x00-\\x08\\x0e-\\x1f]{2}/.test(content)) {\n markAsReadAndPasteIfAllFilesAreRead();\n return\n }\n text[i] = content;\n markAsReadAndPasteIfAllFilesAreRead();\n };\n reader.readAsText(file);\n };\n for (var i = 0; i < files.length; i++) { readTextFromFile(files[i], i); }\n } else { // Normal drop\n // Don't do a replace if the drop happened inside of the selected text.\n if (cm.state.draggingText && cm.doc.sel.contains(pos) > -1) {\n cm.state.draggingText(e);\n // Ensure the editor is re-focused\n setTimeout(function () { return cm.display.input.focus(); }, 20);\n return\n }\n try {\n var text$1 = e.dataTransfer.getData(\"Text\");\n if (text$1) {\n var selected;\n if (cm.state.draggingText && !cm.state.draggingText.copy)\n { selected = cm.listSelections(); }\n setSelectionNoUndo(cm.doc, simpleSelection(pos, pos));\n if (selected) { for (var i$1 = 0; i$1 < selected.length; ++i$1)\n { replaceRange(cm.doc, \"\", selected[i$1].anchor, selected[i$1].head, \"drag\"); } }\n cm.replaceSelection(text$1, \"around\", \"paste\");\n cm.display.input.focus();\n }\n }\n catch(e$1){}\n }\n }\n\n function onDragStart(cm, e) {\n if (ie && (!cm.state.draggingText || +new Date - lastDrop < 100)) { e_stop(e); return }\n if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e)) { return }\n\n e.dataTransfer.setData(\"Text\", cm.getSelection());\n e.dataTransfer.effectAllowed = \"copyMove\";\n\n // Use dummy image instead of default browsers image.\n // Recent Safari (~6.0.2) have a tendency to segfault when this happens, so we don't do it there.\n if (e.dataTransfer.setDragImage && !safari) {\n var img = elt(\"img\", null, null, \"position: fixed; left: 0; top: 0;\");\n img.src = \"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\";\n if (presto) {\n img.width = img.height = 1;\n cm.display.wrapper.appendChild(img);\n // Force a relayout, or Opera won't use our image for some obscure reason\n img._top = img.offsetTop;\n }\n e.dataTransfer.setDragImage(img, 0, 0);\n if (presto) { img.parentNode.removeChild(img); }\n }\n }\n\n function onDragOver(cm, e) {\n var pos = posFromMouse(cm, e);\n if (!pos) { return }\n var frag = document.createDocumentFragment();\n drawSelectionCursor(cm, pos, frag);\n if (!cm.display.dragCursor) {\n cm.display.dragCursor = elt(\"div\", null, \"CodeMirror-cursors CodeMirror-dragcursors\");\n cm.display.lineSpace.insertBefore(cm.display.dragCursor, cm.display.cursorDiv);\n }\n removeChildrenAndAdd(cm.display.dragCursor, frag);\n }\n\n function clearDragCursor(cm) {\n if (cm.display.dragCursor) {\n cm.display.lineSpace.removeChild(cm.display.dragCursor);\n cm.display.dragCursor = null;\n }\n }\n\n // These must be handled carefully, because naively registering a\n // handler for each editor will cause the editors to never be\n // garbage collected.\n\n function forEachCodeMirror(f) {\n if (!document.getElementsByClassName) { return }\n var byClass = document.getElementsByClassName(\"CodeMirror\"), editors = [];\n for (var i = 0; i < byClass.length; i++) {\n var cm = byClass[i].CodeMirror;\n if (cm) { editors.push(cm); }\n }\n if (editors.length) { editors[0].operation(function () {\n for (var i = 0; i < editors.length; i++) { f(editors[i]); }\n }); }\n }\n\n var globalsRegistered = false;\n function ensureGlobalHandlers() {\n if (globalsRegistered) { return }\n registerGlobalHandlers();\n globalsRegistered = true;\n }\n function registerGlobalHandlers() {\n // When the window resizes, we need to refresh active editors.\n var resizeTimer;\n on(window, \"resize\", function () {\n if (resizeTimer == null) { resizeTimer = setTimeout(function () {\n resizeTimer = null;\n forEachCodeMirror(onResize);\n }, 100); }\n });\n // When the window loses focus, we want to show the editor as blurred\n on(window, \"blur\", function () { return forEachCodeMirror(onBlur); });\n }\n // Called when the window resizes\n function onResize(cm) {\n var d = cm.display;\n // Might be a text scaling operation, clear size caches.\n d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null;\n d.scrollbarsClipped = false;\n cm.setSize();\n }\n\n var keyNames = {\n 3: \"Pause\", 8: \"Backspace\", 9: \"Tab\", 13: \"Enter\", 16: \"Shift\", 17: \"Ctrl\", 18: \"Alt\",\n 19: \"Pause\", 20: \"CapsLock\", 27: \"Esc\", 32: \"Space\", 33: \"PageUp\", 34: \"PageDown\", 35: \"End\",\n 36: \"Home\", 37: \"Left\", 38: \"Up\", 39: \"Right\", 40: \"Down\", 44: \"PrintScrn\", 45: \"Insert\",\n 46: \"Delete\", 59: \";\", 61: \"=\", 91: \"Mod\", 92: \"Mod\", 93: \"Mod\",\n 106: \"*\", 107: \"=\", 109: \"-\", 110: \".\", 111: \"/\", 145: \"ScrollLock\",\n 173: \"-\", 186: \";\", 187: \"=\", 188: \",\", 189: \"-\", 190: \".\", 191: \"/\", 192: \"`\", 219: \"[\", 220: \"\\\\\",\n 221: \"]\", 222: \"'\", 224: \"Mod\", 63232: \"Up\", 63233: \"Down\", 63234: \"Left\", 63235: \"Right\", 63272: \"Delete\",\n 63273: \"Home\", 63275: \"End\", 63276: \"PageUp\", 63277: \"PageDown\", 63302: \"Insert\"\n };\n\n // Number keys\n for (var i = 0; i < 10; i++) { keyNames[i + 48] = keyNames[i + 96] = String(i); }\n // Alphabetic keys\n for (var i$1 = 65; i$1 <= 90; i$1++) { keyNames[i$1] = String.fromCharCode(i$1); }\n // Function keys\n for (var i$2 = 1; i$2 <= 12; i$2++) { keyNames[i$2 + 111] = keyNames[i$2 + 63235] = \"F\" + i$2; }\n\n var keyMap = {};\n\n keyMap.basic = {\n \"Left\": \"goCharLeft\", \"Right\": \"goCharRight\", \"Up\": \"goLineUp\", \"Down\": \"goLineDown\",\n \"End\": \"goLineEnd\", \"Home\": \"goLineStartSmart\", \"PageUp\": \"goPageUp\", \"PageDown\": \"goPageDown\",\n \"Delete\": \"delCharAfter\", \"Backspace\": \"delCharBefore\", \"Shift-Backspace\": \"delCharBefore\",\n \"Tab\": \"defaultTab\", \"Shift-Tab\": \"indentAuto\",\n \"Enter\": \"newlineAndIndent\", \"Insert\": \"toggleOverwrite\",\n \"Esc\": \"singleSelection\"\n };\n // Note that the save and find-related commands aren't defined by\n // default. User code or addons can define them. Unknown commands\n // are simply ignored.\n keyMap.pcDefault = {\n \"Ctrl-A\": \"selectAll\", \"Ctrl-D\": \"deleteLine\", \"Ctrl-Z\": \"undo\", \"Shift-Ctrl-Z\": \"redo\", \"Ctrl-Y\": \"redo\",\n \"Ctrl-Home\": \"goDocStart\", \"Ctrl-End\": \"goDocEnd\", \"Ctrl-Up\": \"goLineUp\", \"Ctrl-Down\": \"goLineDown\",\n \"Ctrl-Left\": \"goGroupLeft\", \"Ctrl-Right\": \"goGroupRight\", \"Alt-Left\": \"goLineStart\", \"Alt-Right\": \"goLineEnd\",\n \"Ctrl-Backspace\": \"delGroupBefore\", \"Ctrl-Delete\": \"delGroupAfter\", \"Ctrl-S\": \"save\", \"Ctrl-F\": \"find\",\n \"Ctrl-G\": \"findNext\", \"Shift-Ctrl-G\": \"findPrev\", \"Shift-Ctrl-F\": \"replace\", \"Shift-Ctrl-R\": \"replaceAll\",\n \"Ctrl-[\": \"indentLess\", \"Ctrl-]\": \"indentMore\",\n \"Ctrl-U\": \"undoSelection\", \"Shift-Ctrl-U\": \"redoSelection\", \"Alt-U\": \"redoSelection\",\n \"fallthrough\": \"basic\"\n };\n // Very basic readline/emacs-style bindings, which are standard on Mac.\n keyMap.emacsy = {\n \"Ctrl-F\": \"goCharRight\", \"Ctrl-B\": \"goCharLeft\", \"Ctrl-P\": \"goLineUp\", \"Ctrl-N\": \"goLineDown\",\n \"Alt-F\": \"goWordRight\", \"Alt-B\": \"goWordLeft\", \"Ctrl-A\": \"goLineStart\", \"Ctrl-E\": \"goLineEnd\",\n \"Ctrl-V\": \"goPageDown\", \"Shift-Ctrl-V\": \"goPageUp\", \"Ctrl-D\": \"delCharAfter\", \"Ctrl-H\": \"delCharBefore\",\n \"Alt-D\": \"delWordAfter\", \"Alt-Backspace\": \"delWordBefore\", \"Ctrl-K\": \"killLine\", \"Ctrl-T\": \"transposeChars\",\n \"Ctrl-O\": \"openLine\"\n };\n keyMap.macDefault = {\n \"Cmd-A\": \"selectAll\", \"Cmd-D\": \"deleteLine\", \"Cmd-Z\": \"undo\", \"Shift-Cmd-Z\": \"redo\", \"Cmd-Y\": \"redo\",\n \"Cmd-Home\": \"goDocStart\", \"Cmd-Up\": \"goDocStart\", \"Cmd-End\": \"goDocEnd\", \"Cmd-Down\": \"goDocEnd\", \"Alt-Left\": \"goGroupLeft\",\n \"Alt-Right\": \"goGroupRight\", \"Cmd-Left\": \"goLineLeft\", \"Cmd-Right\": \"goLineRight\", \"Alt-Backspace\": \"delGroupBefore\",\n \"Ctrl-Alt-Backspace\": \"delGroupAfter\", \"Alt-Delete\": \"delGroupAfter\", \"Cmd-S\": \"save\", \"Cmd-F\": \"find\",\n \"Cmd-G\": \"findNext\", \"Shift-Cmd-G\": \"findPrev\", \"Cmd-Alt-F\": \"replace\", \"Shift-Cmd-Alt-F\": \"replaceAll\",\n \"Cmd-[\": \"indentLess\", \"Cmd-]\": \"indentMore\", \"Cmd-Backspace\": \"delWrappedLineLeft\", \"Cmd-Delete\": \"delWrappedLineRight\",\n \"Cmd-U\": \"undoSelection\", \"Shift-Cmd-U\": \"redoSelection\", \"Ctrl-Up\": \"goDocStart\", \"Ctrl-Down\": \"goDocEnd\",\n \"fallthrough\": [\"basic\", \"emacsy\"]\n };\n keyMap[\"default\"] = mac ? keyMap.macDefault : keyMap.pcDefault;\n\n // KEYMAP DISPATCH\n\n function normalizeKeyName(name) {\n var parts = name.split(/-(?!$)/);\n name = parts[parts.length - 1];\n var alt, ctrl, shift, cmd;\n for (var i = 0; i < parts.length - 1; i++) {\n var mod = parts[i];\n if (/^(cmd|meta|m)$/i.test(mod)) { cmd = true; }\n else if (/^a(lt)?$/i.test(mod)) { alt = true; }\n else if (/^(c|ctrl|control)$/i.test(mod)) { ctrl = true; }\n else if (/^s(hift)?$/i.test(mod)) { shift = true; }\n else { throw new Error(\"Unrecognized modifier name: \" + mod) }\n }\n if (alt) { name = \"Alt-\" + name; }\n if (ctrl) { name = \"Ctrl-\" + name; }\n if (cmd) { name = \"Cmd-\" + name; }\n if (shift) { name = \"Shift-\" + name; }\n return name\n }\n\n // This is a kludge to keep keymaps mostly working as raw objects\n // (backwards compatibility) while at the same time support features\n // like normalization and multi-stroke key bindings. It compiles a\n // new normalized keymap, and then updates the old object to reflect\n // this.\n function normalizeKeyMap(keymap) {\n var copy = {};\n for (var keyname in keymap) { if (keymap.hasOwnProperty(keyname)) {\n var value = keymap[keyname];\n if (/^(name|fallthrough|(de|at)tach)$/.test(keyname)) { continue }\n if (value == \"...\") { delete keymap[keyname]; continue }\n\n var keys = map(keyname.split(\" \"), normalizeKeyName);\n for (var i = 0; i < keys.length; i++) {\n var val = (void 0), name = (void 0);\n if (i == keys.length - 1) {\n name = keys.join(\" \");\n val = value;\n } else {\n name = keys.slice(0, i + 1).join(\" \");\n val = \"...\";\n }\n var prev = copy[name];\n if (!prev) { copy[name] = val; }\n else if (prev != val) { throw new Error(\"Inconsistent bindings for \" + name) }\n }\n delete keymap[keyname];\n } }\n for (var prop in copy) { keymap[prop] = copy[prop]; }\n return keymap\n }\n\n function lookupKey(key, map, handle, context) {\n map = getKeyMap(map);\n var found = map.call ? map.call(key, context) : map[key];\n if (found === false) { return \"nothing\" }\n if (found === \"...\") { return \"multi\" }\n if (found != null && handle(found)) { return \"handled\" }\n\n if (map.fallthrough) {\n if (Object.prototype.toString.call(map.fallthrough) != \"[object Array]\")\n { return lookupKey(key, map.fallthrough, handle, context) }\n for (var i = 0; i < map.fallthrough.length; i++) {\n var result = lookupKey(key, map.fallthrough[i], handle, context);\n if (result) { return result }\n }\n }\n }\n\n // Modifier key presses don't count as 'real' key presses for the\n // purpose of keymap fallthrough.\n function isModifierKey(value) {\n var name = typeof value == \"string\" ? value : keyNames[value.keyCode];\n return name == \"Ctrl\" || name == \"Alt\" || name == \"Shift\" || name == \"Mod\"\n }\n\n function addModifierNames(name, event, noShift) {\n var base = name;\n if (event.altKey && base != \"Alt\") { name = \"Alt-\" + name; }\n if ((flipCtrlCmd ? event.metaKey : event.ctrlKey) && base != \"Ctrl\") { name = \"Ctrl-\" + name; }\n if ((flipCtrlCmd ? event.ctrlKey : event.metaKey) && base != \"Mod\") { name = \"Cmd-\" + name; }\n if (!noShift && event.shiftKey && base != \"Shift\") { name = \"Shift-\" + name; }\n return name\n }\n\n // Look up the name of a key as indicated by an event object.\n function keyName(event, noShift) {\n if (presto && event.keyCode == 34 && event[\"char\"]) { return false }\n var name = keyNames[event.keyCode];\n if (name == null || event.altGraphKey) { return false }\n // Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,\n // so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)\n if (event.keyCode == 3 && event.code) { name = event.code; }\n return addModifierNames(name, event, noShift)\n }\n\n function getKeyMap(val) {\n return typeof val == \"string\" ? keyMap[val] : val\n }\n\n // Helper for deleting text near the selection(s), used to implement\n // backspace, delete, and similar functionality.\n function deleteNearSelection(cm, compute) {\n var ranges = cm.doc.sel.ranges, kill = [];\n // Build up a set of ranges to kill first, merging overlapping\n // ranges.\n for (var i = 0; i < ranges.length; i++) {\n var toKill = compute(ranges[i]);\n while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {\n var replaced = kill.pop();\n if (cmp(replaced.from, toKill.from) < 0) {\n toKill.from = replaced.from;\n break\n }\n }\n kill.push(toKill);\n }\n // Next, remove those actual ranges.\n runInOp(cm, function () {\n for (var i = kill.length - 1; i >= 0; i--)\n { replaceRange(cm.doc, \"\", kill[i].from, kill[i].to, \"+delete\"); }\n ensureCursorVisible(cm);\n });\n }\n\n function moveCharLogically(line, ch, dir) {\n var target = skipExtendingChars(line.text, ch + dir, dir);\n return target < 0 || target > line.text.length ? null : target\n }\n\n function moveLogically(line, start, dir) {\n var ch = moveCharLogically(line, start.ch, dir);\n return ch == null ? null : new Pos(start.line, ch, dir < 0 ? \"after\" : \"before\")\n }\n\n function endOfLine(visually, cm, lineObj, lineNo, dir) {\n if (visually) {\n if (cm.doc.direction == \"rtl\") { dir = -dir; }\n var order = getOrder(lineObj, cm.doc.direction);\n if (order) {\n var part = dir < 0 ? lst(order) : order[0];\n var moveInStorageOrder = (dir < 0) == (part.level == 1);\n var sticky = moveInStorageOrder ? \"after\" : \"before\";\n var ch;\n // With a wrapped rtl chunk (possibly spanning multiple bidi parts),\n // it could be that the last bidi part is not on the last visual line,\n // since visual lines contain content order-consecutive chunks.\n // Thus, in rtl, we are looking for the first (content-order) character\n // in the rtl chunk that is on the last line (that is, the same line\n // as the last (content-order) character).\n if (part.level > 0 || cm.doc.direction == \"rtl\") {\n var prep = prepareMeasureForLine(cm, lineObj);\n ch = dir < 0 ? lineObj.text.length - 1 : 0;\n var targetTop = measureCharPrepared(cm, prep, ch).top;\n ch = findFirst(function (ch) { return measureCharPrepared(cm, prep, ch).top == targetTop; }, (dir < 0) == (part.level == 1) ? part.from : part.to - 1, ch);\n if (sticky == \"before\") { ch = moveCharLogically(lineObj, ch, 1); }\n } else { ch = dir < 0 ? part.to : part.from; }\n return new Pos(lineNo, ch, sticky)\n }\n }\n return new Pos(lineNo, dir < 0 ? lineObj.text.length : 0, dir < 0 ? \"before\" : \"after\")\n }\n\n function moveVisually(cm, line, start, dir) {\n var bidi = getOrder(line, cm.doc.direction);\n if (!bidi) { return moveLogically(line, start, dir) }\n if (start.ch >= line.text.length) {\n start.ch = line.text.length;\n start.sticky = \"before\";\n } else if (start.ch <= 0) {\n start.ch = 0;\n start.sticky = \"after\";\n }\n var partPos = getBidiPartAt(bidi, start.ch, start.sticky), part = bidi[partPos];\n if (cm.doc.direction == \"ltr\" && part.level % 2 == 0 && (dir > 0 ? part.to > start.ch : part.from < start.ch)) {\n // Case 1: We move within an ltr part in an ltr editor. Even with wrapped lines,\n // nothing interesting happens.\n return moveLogically(line, start, dir)\n }\n\n var mv = function (pos, dir) { return moveCharLogically(line, pos instanceof Pos ? pos.ch : pos, dir); };\n var prep;\n var getWrappedLineExtent = function (ch) {\n if (!cm.options.lineWrapping) { return {begin: 0, end: line.text.length} }\n prep = prep || prepareMeasureForLine(cm, line);\n return wrappedLineExtentChar(cm, line, prep, ch)\n };\n var wrappedLineExtent = getWrappedLineExtent(start.sticky == \"before\" ? mv(start, -1) : start.ch);\n\n if (cm.doc.direction == \"rtl\" || part.level == 1) {\n var moveInStorageOrder = (part.level == 1) == (dir < 0);\n var ch = mv(start, moveInStorageOrder ? 1 : -1);\n if (ch != null && (!moveInStorageOrder ? ch >= part.from && ch >= wrappedLineExtent.begin : ch <= part.to && ch <= wrappedLineExtent.end)) {\n // Case 2: We move within an rtl part or in an rtl editor on the same visual line\n var sticky = moveInStorageOrder ? \"before\" : \"after\";\n return new Pos(start.line, ch, sticky)\n }\n }\n\n // Case 3: Could not move within this bidi part in this visual line, so leave\n // the current bidi part\n\n var searchInVisualLine = function (partPos, dir, wrappedLineExtent) {\n var getRes = function (ch, moveInStorageOrder) { return moveInStorageOrder\n ? new Pos(start.line, mv(ch, 1), \"before\")\n : new Pos(start.line, ch, \"after\"); };\n\n for (; partPos >= 0 && partPos < bidi.length; partPos += dir) {\n var part = bidi[partPos];\n var moveInStorageOrder = (dir > 0) == (part.level != 1);\n var ch = moveInStorageOrder ? wrappedLineExtent.begin : mv(wrappedLineExtent.end, -1);\n if (part.from <= ch && ch < part.to) { return getRes(ch, moveInStorageOrder) }\n ch = moveInStorageOrder ? part.from : mv(part.to, -1);\n if (wrappedLineExtent.begin <= ch && ch < wrappedLineExtent.end) { return getRes(ch, moveInStorageOrder) }\n }\n };\n\n // Case 3a: Look for other bidi parts on the same visual line\n var res = searchInVisualLine(partPos + dir, dir, wrappedLineExtent);\n if (res) { return res }\n\n // Case 3b: Look for other bidi parts on the next visual line\n var nextCh = dir > 0 ? wrappedLineExtent.end : mv(wrappedLineExtent.begin, -1);\n if (nextCh != null && !(dir > 0 && nextCh == line.text.length)) {\n res = searchInVisualLine(dir > 0 ? 0 : bidi.length - 1, dir, getWrappedLineExtent(nextCh));\n if (res) { return res }\n }\n\n // Case 4: Nowhere to move\n return null\n }\n\n // Commands are parameter-less actions that can be performed on an\n // editor, mostly used for keybindings.\n var commands = {\n selectAll: selectAll,\n singleSelection: function (cm) { return cm.setSelection(cm.getCursor(\"anchor\"), cm.getCursor(\"head\"), sel_dontScroll); },\n killLine: function (cm) { return deleteNearSelection(cm, function (range) {\n if (range.empty()) {\n var len = getLine(cm.doc, range.head.line).text.length;\n if (range.head.ch == len && range.head.line < cm.lastLine())\n { return {from: range.head, to: Pos(range.head.line + 1, 0)} }\n else\n { return {from: range.head, to: Pos(range.head.line, len)} }\n } else {\n return {from: range.from(), to: range.to()}\n }\n }); },\n deleteLine: function (cm) { return deleteNearSelection(cm, function (range) { return ({\n from: Pos(range.from().line, 0),\n to: clipPos(cm.doc, Pos(range.to().line + 1, 0))\n }); }); },\n delLineLeft: function (cm) { return deleteNearSelection(cm, function (range) { return ({\n from: Pos(range.from().line, 0), to: range.from()\n }); }); },\n delWrappedLineLeft: function (cm) { return deleteNearSelection(cm, function (range) {\n var top = cm.charCoords(range.head, \"div\").top + 5;\n var leftPos = cm.coordsChar({left: 0, top: top}, \"div\");\n return {from: leftPos, to: range.from()}\n }); },\n delWrappedLineRight: function (cm) { return deleteNearSelection(cm, function (range) {\n var top = cm.charCoords(range.head, \"div\").top + 5;\n var rightPos = cm.coordsChar({left: cm.display.lineDiv.offsetWidth + 100, top: top}, \"div\");\n return {from: range.from(), to: rightPos }\n }); },\n undo: function (cm) { return cm.undo(); },\n redo: function (cm) { return cm.redo(); },\n undoSelection: function (cm) { return cm.undoSelection(); },\n redoSelection: function (cm) { return cm.redoSelection(); },\n goDocStart: function (cm) { return cm.extendSelection(Pos(cm.firstLine(), 0)); },\n goDocEnd: function (cm) { return cm.extendSelection(Pos(cm.lastLine())); },\n goLineStart: function (cm) { return cm.extendSelectionsBy(function (range) { return lineStart(cm, range.head.line); },\n {origin: \"+move\", bias: 1}\n ); },\n goLineStartSmart: function (cm) { return cm.extendSelectionsBy(function (range) { return lineStartSmart(cm, range.head); },\n {origin: \"+move\", bias: 1}\n ); },\n goLineEnd: function (cm) { return cm.extendSelectionsBy(function (range) { return lineEnd(cm, range.head.line); },\n {origin: \"+move\", bias: -1}\n ); },\n goLineRight: function (cm) { return cm.extendSelectionsBy(function (range) {\n var top = cm.cursorCoords(range.head, \"div\").top + 5;\n return cm.coordsChar({left: cm.display.lineDiv.offsetWidth + 100, top: top}, \"div\")\n }, sel_move); },\n goLineLeft: function (cm) { return cm.extendSelectionsBy(function (range) {\n var top = cm.cursorCoords(range.head, \"div\").top + 5;\n return cm.coordsChar({left: 0, top: top}, \"div\")\n }, sel_move); },\n goLineLeftSmart: function (cm) { return cm.extendSelectionsBy(function (range) {\n var top = cm.cursorCoords(range.head, \"div\").top + 5;\n var pos = cm.coordsChar({left: 0, top: top}, \"div\");\n if (pos.ch < cm.getLine(pos.line).search(/\\S/)) { return lineStartSmart(cm, range.head) }\n return pos\n }, sel_move); },\n goLineUp: function (cm) { return cm.moveV(-1, \"line\"); },\n goLineDown: function (cm) { return cm.moveV(1, \"line\"); },\n goPageUp: function (cm) { return cm.moveV(-1, \"page\"); },\n goPageDown: function (cm) { return cm.moveV(1, \"page\"); },\n goCharLeft: function (cm) { return cm.moveH(-1, \"char\"); },\n goCharRight: function (cm) { return cm.moveH(1, \"char\"); },\n goColumnLeft: function (cm) { return cm.moveH(-1, \"column\"); },\n goColumnRight: function (cm) { return cm.moveH(1, \"column\"); },\n goWordLeft: function (cm) { return cm.moveH(-1, \"word\"); },\n goGroupRight: function (cm) { return cm.moveH(1, \"group\"); },\n goGroupLeft: function (cm) { return cm.moveH(-1, \"group\"); },\n goWordRight: function (cm) { return cm.moveH(1, \"word\"); },\n delCharBefore: function (cm) { return cm.deleteH(-1, \"codepoint\"); },\n delCharAfter: function (cm) { return cm.deleteH(1, \"char\"); },\n delWordBefore: function (cm) { return cm.deleteH(-1, \"word\"); },\n delWordAfter: function (cm) { return cm.deleteH(1, \"word\"); },\n delGroupBefore: function (cm) { return cm.deleteH(-1, \"group\"); },\n delGroupAfter: function (cm) { return cm.deleteH(1, \"group\"); },\n indentAuto: function (cm) { return cm.indentSelection(\"smart\"); },\n indentMore: function (cm) { return cm.indentSelection(\"add\"); },\n indentLess: function (cm) { return cm.indentSelection(\"subtract\"); },\n insertTab: function (cm) { return cm.replaceSelection(\"\\t\"); },\n insertSoftTab: function (cm) {\n var spaces = [], ranges = cm.listSelections(), tabSize = cm.options.tabSize;\n for (var i = 0; i < ranges.length; i++) {\n var pos = ranges[i].from();\n var col = countColumn(cm.getLine(pos.line), pos.ch, tabSize);\n spaces.push(spaceStr(tabSize - col % tabSize));\n }\n cm.replaceSelections(spaces);\n },\n defaultTab: function (cm) {\n if (cm.somethingSelected()) { cm.indentSelection(\"add\"); }\n else { cm.execCommand(\"insertTab\"); }\n },\n // Swap the two chars left and right of each selection's head.\n // Move cursor behind the two swapped characters afterwards.\n //\n // Doesn't consider line feeds a character.\n // Doesn't scan more than one line above to find a character.\n // Doesn't do anything on an empty line.\n // Doesn't do anything with non-empty selections.\n transposeChars: function (cm) { return runInOp(cm, function () {\n var ranges = cm.listSelections(), newSel = [];\n for (var i = 0; i < ranges.length; i++) {\n if (!ranges[i].empty()) { continue }\n var cur = ranges[i].head, line = getLine(cm.doc, cur.line).text;\n if (line) {\n if (cur.ch == line.length) { cur = new Pos(cur.line, cur.ch - 1); }\n if (cur.ch > 0) {\n cur = new Pos(cur.line, cur.ch + 1);\n cm.replaceRange(line.charAt(cur.ch - 1) + line.charAt(cur.ch - 2),\n Pos(cur.line, cur.ch - 2), cur, \"+transpose\");\n } else if (cur.line > cm.doc.first) {\n var prev = getLine(cm.doc, cur.line - 1).text;\n if (prev) {\n cur = new Pos(cur.line, 1);\n cm.replaceRange(line.charAt(0) + cm.doc.lineSeparator() +\n prev.charAt(prev.length - 1),\n Pos(cur.line - 1, prev.length - 1), cur, \"+transpose\");\n }\n }\n }\n newSel.push(new Range(cur, cur));\n }\n cm.setSelections(newSel);\n }); },\n newlineAndIndent: function (cm) { return runInOp(cm, function () {\n var sels = cm.listSelections();\n for (var i = sels.length - 1; i >= 0; i--)\n { cm.replaceRange(cm.doc.lineSeparator(), sels[i].anchor, sels[i].head, \"+input\"); }\n sels = cm.listSelections();\n for (var i$1 = 0; i$1 < sels.length; i$1++)\n { cm.indentLine(sels[i$1].from().line, null, true); }\n ensureCursorVisible(cm);\n }); },\n openLine: function (cm) { return cm.replaceSelection(\"\\n\", \"start\"); },\n toggleOverwrite: function (cm) { return cm.toggleOverwrite(); }\n };\n\n\n function lineStart(cm, lineN) {\n var line = getLine(cm.doc, lineN);\n var visual = visualLine(line);\n if (visual != line) { lineN = lineNo(visual); }\n return endOfLine(true, cm, visual, lineN, 1)\n }\n function lineEnd(cm, lineN) {\n var line = getLine(cm.doc, lineN);\n var visual = visualLineEnd(line);\n if (visual != line) { lineN = lineNo(visual); }\n return endOfLine(true, cm, line, lineN, -1)\n }\n function lineStartSmart(cm, pos) {\n var start = lineStart(cm, pos.line);\n var line = getLine(cm.doc, start.line);\n var order = getOrder(line, cm.doc.direction);\n if (!order || order[0].level == 0) {\n var firstNonWS = Math.max(start.ch, line.text.search(/\\S/));\n var inWS = pos.line == start.line && pos.ch <= firstNonWS && pos.ch;\n return Pos(start.line, inWS ? 0 : firstNonWS, start.sticky)\n }\n return start\n }\n\n // Run a handler that was bound to a key.\n function doHandleBinding(cm, bound, dropShift) {\n if (typeof bound == \"string\") {\n bound = commands[bound];\n if (!bound) { return false }\n }\n // Ensure previous input has been read, so that the handler sees a\n // consistent view of the document\n cm.display.input.ensurePolled();\n var prevShift = cm.display.shift, done = false;\n try {\n if (cm.isReadOnly()) { cm.state.suppressEdits = true; }\n if (dropShift) { cm.display.shift = false; }\n done = bound(cm) != Pass;\n } finally {\n cm.display.shift = prevShift;\n cm.state.suppressEdits = false;\n }\n return done\n }\n\n function lookupKeyForEditor(cm, name, handle) {\n for (var i = 0; i < cm.state.keyMaps.length; i++) {\n var result = lookupKey(name, cm.state.keyMaps[i], handle, cm);\n if (result) { return result }\n }\n return (cm.options.extraKeys && lookupKey(name, cm.options.extraKeys, handle, cm))\n || lookupKey(name, cm.options.keyMap, handle, cm)\n }\n\n // Note that, despite the name, this function is also used to check\n // for bound mouse clicks.\n\n var stopSeq = new Delayed;\n\n function dispatchKey(cm, name, e, handle) {\n var seq = cm.state.keySeq;\n if (seq) {\n if (isModifierKey(name)) { return \"handled\" }\n if (/\\'$/.test(name))\n { cm.state.keySeq = null; }\n else\n { stopSeq.set(50, function () {\n if (cm.state.keySeq == seq) {\n cm.state.keySeq = null;\n cm.display.input.reset();\n }\n }); }\n if (dispatchKeyInner(cm, seq + \" \" + name, e, handle)) { return true }\n }\n return dispatchKeyInner(cm, name, e, handle)\n }\n\n function dispatchKeyInner(cm, name, e, handle) {\n var result = lookupKeyForEditor(cm, name, handle);\n\n if (result == \"multi\")\n { cm.state.keySeq = name; }\n if (result == \"handled\")\n { signalLater(cm, \"keyHandled\", cm, name, e); }\n\n if (result == \"handled\" || result == \"multi\") {\n e_preventDefault(e);\n restartBlink(cm);\n }\n\n return !!result\n }\n\n // Handle a key from the keydown event.\n function handleKeyBinding(cm, e) {\n var name = keyName(e, true);\n if (!name) { return false }\n\n if (e.shiftKey && !cm.state.keySeq) {\n // First try to resolve full name (including 'Shift-'). Failing\n // that, see if there is a cursor-motion command (starting with\n // 'go') bound to the keyname without 'Shift-'.\n return dispatchKey(cm, \"Shift-\" + name, e, function (b) { return doHandleBinding(cm, b, true); })\n || dispatchKey(cm, name, e, function (b) {\n if (typeof b == \"string\" ? /^go[A-Z]/.test(b) : b.motion)\n { return doHandleBinding(cm, b) }\n })\n } else {\n return dispatchKey(cm, name, e, function (b) { return doHandleBinding(cm, b); })\n }\n }\n\n // Handle a key from the keypress event\n function handleCharBinding(cm, e, ch) {\n return dispatchKey(cm, \"'\" + ch + \"'\", e, function (b) { return doHandleBinding(cm, b, true); })\n }\n\n var lastStoppedKey = null;\n function onKeyDown(e) {\n var cm = this;\n if (e.target && e.target != cm.display.input.getField()) { return }\n cm.curOp.focus = activeElt();\n if (signalDOMEvent(cm, e)) { return }\n // IE does strange things with escape.\n if (ie && ie_version < 11 && e.keyCode == 27) { e.returnValue = false; }\n var code = e.keyCode;\n cm.display.shift = code == 16 || e.shiftKey;\n var handled = handleKeyBinding(cm, e);\n if (presto) {\n lastStoppedKey = handled ? code : null;\n // Opera has no cut event... we try to at least catch the key combo\n if (!handled && code == 88 && !hasCopyEvent && (mac ? e.metaKey : e.ctrlKey))\n { cm.replaceSelection(\"\", null, \"cut\"); }\n }\n if (gecko && !mac && !handled && code == 46 && e.shiftKey && !e.ctrlKey && document.execCommand)\n { document.execCommand(\"cut\"); }\n\n // Turn mouse into crosshair when Alt is held on Mac.\n if (code == 18 && !/\\bCodeMirror-crosshair\\b/.test(cm.display.lineDiv.className))\n { showCrossHair(cm); }\n }\n\n function showCrossHair(cm) {\n var lineDiv = cm.display.lineDiv;\n addClass(lineDiv, \"CodeMirror-crosshair\");\n\n function up(e) {\n if (e.keyCode == 18 || !e.altKey) {\n rmClass(lineDiv, \"CodeMirror-crosshair\");\n off(document, \"keyup\", up);\n off(document, \"mouseover\", up);\n }\n }\n on(document, \"keyup\", up);\n on(document, \"mouseover\", up);\n }\n\n function onKeyUp(e) {\n if (e.keyCode == 16) { this.doc.sel.shift = false; }\n signalDOMEvent(this, e);\n }\n\n function onKeyPress(e) {\n var cm = this;\n if (e.target && e.target != cm.display.input.getField()) { return }\n if (eventInWidget(cm.display, e) || signalDOMEvent(cm, e) || e.ctrlKey && !e.altKey || mac && e.metaKey) { return }\n var keyCode = e.keyCode, charCode = e.charCode;\n if (presto && keyCode == lastStoppedKey) {lastStoppedKey = null; e_preventDefault(e); return}\n if ((presto && (!e.which || e.which < 10)) && handleKeyBinding(cm, e)) { return }\n var ch = String.fromCharCode(charCode == null ? keyCode : charCode);\n // Some browsers fire keypress events for backspace\n if (ch == \"\\x08\") { return }\n if (handleCharBinding(cm, e, ch)) { return }\n cm.display.input.onKeyPress(e);\n }\n\n var DOUBLECLICK_DELAY = 400;\n\n var PastClick = function(time, pos, button) {\n this.time = time;\n this.pos = pos;\n this.button = button;\n };\n\n PastClick.prototype.compare = function (time, pos, button) {\n return this.time + DOUBLECLICK_DELAY > time &&\n cmp(pos, this.pos) == 0 && button == this.button\n };\n\n var lastClick, lastDoubleClick;\n function clickRepeat(pos, button) {\n var now = +new Date;\n if (lastDoubleClick && lastDoubleClick.compare(now, pos, button)) {\n lastClick = lastDoubleClick = null;\n return \"triple\"\n } else if (lastClick && lastClick.compare(now, pos, button)) {\n lastDoubleClick = new PastClick(now, pos, button);\n lastClick = null;\n return \"double\"\n } else {\n lastClick = new PastClick(now, pos, button);\n lastDoubleClick = null;\n return \"single\"\n }\n }\n\n // A mouse down can be a single click, double click, triple click,\n // start of selection drag, start of text drag, new cursor\n // (ctrl-click), rectangle drag (alt-drag), or xwin\n // middle-click-paste. Or it might be a click on something we should\n // not interfere with, such as a scrollbar or widget.\n function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { cm.display.input.onContextMenu(e); }\n else { delayBlurEvent(cm); }\n }\n }\n\n function handleMappedButton(cm, button, pos, repeat, event) {\n var name = \"Click\";\n if (repeat == \"double\") { name = \"Double\" + name; }\n else if (repeat == \"triple\") { name = \"Triple\" + name; }\n name = (button == 1 ? \"Left\" : button == 2 ? \"Middle\" : \"Right\") + name;\n\n return dispatchKey(cm, addModifierNames(name, event), event, function (bound) {\n if (typeof bound == \"string\") { bound = commands[bound]; }\n if (!bound) { return false }\n var done = false;\n try {\n if (cm.isReadOnly()) { cm.state.suppressEdits = true; }\n done = bound(cm, pos) != Pass;\n } finally {\n cm.state.suppressEdits = false;\n }\n return done\n })\n }\n\n function configureMouse(cm, repeat, event) {\n var option = cm.getOption(\"configureMouse\");\n var value = option ? option(cm, repeat, event) : {};\n if (value.unit == null) {\n var rect = chromeOS ? event.shiftKey && event.metaKey : event.altKey;\n value.unit = rect ? \"rectangle\" : repeat == \"single\" ? \"char\" : repeat == \"double\" ? \"word\" : \"line\";\n }\n if (value.extend == null || cm.doc.extend) { value.extend = cm.doc.extend || event.shiftKey; }\n if (value.addNew == null) { value.addNew = mac ? event.metaKey : event.ctrlKey; }\n if (value.moveOnDrag == null) { value.moveOnDrag = !(mac ? event.altKey : event.ctrlKey); }\n return value\n }\n\n function leftButtonDown(cm, pos, repeat, event) {\n if (ie) { setTimeout(bind(ensureFocus, cm), 0); }\n else { cm.curOp.focus = activeElt(); }\n\n var behavior = configureMouse(cm, repeat, event);\n\n var sel = cm.doc.sel, contained;\n if (cm.options.dragDrop && dragAndDrop && !cm.isReadOnly() &&\n repeat == \"single\" && (contained = sel.contains(pos)) > -1 &&\n (cmp((contained = sel.ranges[contained]).from(), pos) < 0 || pos.xRel > 0) &&\n (cmp(contained.to(), pos) > 0 || pos.xRel < 0))\n { leftButtonStartDrag(cm, event, pos, behavior); }\n else\n { leftButtonSelect(cm, event, pos, behavior); }\n }\n\n // Start a text drag. When it ends, see if any dragging actually\n // happen, and treat as a click if it didn't.\n function leftButtonStartDrag(cm, event, pos, behavior) {\n var display = cm.display, moved = false;\n var dragEnd = operation(cm, function (e) {\n if (webkit) { display.scroller.draggable = false; }\n cm.state.draggingText = false;\n off(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n off(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n off(display.scroller, \"dragstart\", dragStart);\n off(display.scroller, \"drop\", dragEnd);\n if (!moved) {\n e_preventDefault(e);\n if (!behavior.addNew)\n { extendSelection(cm.doc, pos, null, null, behavior.extend); }\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n if ((webkit && !safari) || ie && ie_version == 9)\n { setTimeout(function () {display.wrapper.ownerDocument.body.focus({preventScroll: true}); display.input.focus();}, 20); }\n else\n { display.input.focus(); }\n }\n });\n var mouseMove = function(e2) {\n moved = moved || Math.abs(event.clientX - e2.clientX) + Math.abs(event.clientY - e2.clientY) >= 10;\n };\n var dragStart = function () { return moved = true; };\n // Let the drag handler handle this.\n if (webkit) { display.scroller.draggable = true; }\n cm.state.draggingText = dragEnd;\n dragEnd.copy = !behavior.moveOnDrag;\n // IE's approach to draggable\n if (display.scroller.dragDrop) { display.scroller.dragDrop(); }\n on(display.wrapper.ownerDocument, \"mouseup\", dragEnd);\n on(display.wrapper.ownerDocument, \"mousemove\", mouseMove);\n on(display.scroller, \"dragstart\", dragStart);\n on(display.scroller, \"drop\", dragEnd);\n\n delayBlurEvent(cm);\n setTimeout(function () { return display.input.focus(); }, 20);\n }\n\n function rangeForUnit(cm, pos, unit) {\n if (unit == \"char\") { return new Range(pos, pos) }\n if (unit == \"word\") { return cm.findWordAt(pos) }\n if (unit == \"line\") { return new Range(Pos(pos.line, 0), clipPos(cm.doc, Pos(pos.line + 1, 0))) }\n var result = unit(cm, pos);\n return new Range(result.from, result.to)\n }\n\n // Normal selection, as opposed to text dragging.\n function leftButtonSelect(cm, event, start, behavior) {\n var display = cm.display, doc = cm.doc;\n e_preventDefault(event);\n\n var ourRange, ourIndex, startSel = doc.sel, ranges = startSel.ranges;\n if (behavior.addNew && !behavior.extend) {\n ourIndex = doc.sel.contains(start);\n if (ourIndex > -1)\n { ourRange = ranges[ourIndex]; }\n else\n { ourRange = new Range(start, start); }\n } else {\n ourRange = doc.sel.primary();\n ourIndex = doc.sel.primIndex;\n }\n\n if (behavior.unit == \"rectangle\") {\n if (!behavior.addNew) { ourRange = new Range(start, start); }\n start = posFromMouse(cm, event, true, true);\n ourIndex = -1;\n } else {\n var range = rangeForUnit(cm, start, behavior.unit);\n if (behavior.extend)\n { ourRange = extendRange(ourRange, range.anchor, range.head, behavior.extend); }\n else\n { ourRange = range; }\n }\n\n if (!behavior.addNew) {\n ourIndex = 0;\n setSelection(doc, new Selection([ourRange], 0), sel_mouse);\n startSel = doc.sel;\n } else if (ourIndex == -1) {\n ourIndex = ranges.length;\n setSelection(doc, normalizeSelection(cm, ranges.concat([ourRange]), ourIndex),\n {scroll: false, origin: \"*mouse\"});\n } else if (ranges.length > 1 && ranges[ourIndex].empty() && behavior.unit == \"char\" && !behavior.extend) {\n setSelection(doc, normalizeSelection(cm, ranges.slice(0, ourIndex).concat(ranges.slice(ourIndex + 1)), 0),\n {scroll: false, origin: \"*mouse\"});\n startSel = doc.sel;\n } else {\n replaceOneSelection(doc, ourIndex, ourRange, sel_mouse);\n }\n\n var lastPos = start;\n function extendTo(pos) {\n if (cmp(lastPos, pos) == 0) { return }\n lastPos = pos;\n\n if (behavior.unit == \"rectangle\") {\n var ranges = [], tabSize = cm.options.tabSize;\n var startCol = countColumn(getLine(doc, start.line).text, start.ch, tabSize);\n var posCol = countColumn(getLine(doc, pos.line).text, pos.ch, tabSize);\n var left = Math.min(startCol, posCol), right = Math.max(startCol, posCol);\n for (var line = Math.min(start.line, pos.line), end = Math.min(cm.lastLine(), Math.max(start.line, pos.line));\n line <= end; line++) {\n var text = getLine(doc, line).text, leftPos = findColumn(text, left, tabSize);\n if (left == right)\n { ranges.push(new Range(Pos(line, leftPos), Pos(line, leftPos))); }\n else if (text.length > leftPos)\n { ranges.push(new Range(Pos(line, leftPos), Pos(line, findColumn(text, right, tabSize)))); }\n }\n if (!ranges.length) { ranges.push(new Range(start, start)); }\n setSelection(doc, normalizeSelection(cm, startSel.ranges.slice(0, ourIndex).concat(ranges), ourIndex),\n {origin: \"*mouse\", scroll: false});\n cm.scrollIntoView(pos);\n } else {\n var oldRange = ourRange;\n var range = rangeForUnit(cm, pos, behavior.unit);\n var anchor = oldRange.anchor, head;\n if (cmp(range.anchor, anchor) > 0) {\n head = range.head;\n anchor = minPos(oldRange.from(), range.anchor);\n } else {\n head = range.anchor;\n anchor = maxPos(oldRange.to(), range.head);\n }\n var ranges$1 = startSel.ranges.slice(0);\n ranges$1[ourIndex] = bidiSimplify(cm, new Range(clipPos(doc, anchor), head));\n setSelection(doc, normalizeSelection(cm, ranges$1, ourIndex), sel_mouse);\n }\n }\n\n var editorSize = display.wrapper.getBoundingClientRect();\n // Used to ensure timeout re-tries don't fire when another extend\n // happened in the meantime (clearTimeout isn't reliable -- at\n // least on Chrome, the timeouts still happen even when cleared,\n // if the clear happens after their scheduled firing time).\n var counter = 0;\n\n function extend(e) {\n var curCount = ++counter;\n var cur = posFromMouse(cm, e, true, behavior.unit == \"rectangle\");\n if (!cur) { return }\n if (cmp(cur, lastPos) != 0) {\n cm.curOp.focus = activeElt();\n extendTo(cur);\n var visible = visibleLines(display, doc);\n if (cur.line >= visible.to || cur.line < visible.from)\n { setTimeout(operation(cm, function () {if (counter == curCount) { extend(e); }}), 150); }\n } else {\n var outside = e.clientY < editorSize.top ? -20 : e.clientY > editorSize.bottom ? 20 : 0;\n if (outside) { setTimeout(operation(cm, function () {\n if (counter != curCount) { return }\n display.scroller.scrollTop += outside;\n extend(e);\n }), 50); }\n }\n }\n\n function done(e) {\n cm.state.selectingText = false;\n counter = Infinity;\n // If e is null or undefined we interpret this as someone trying\n // to explicitly cancel the selection rather than the user\n // letting go of the mouse button.\n if (e) {\n e_preventDefault(e);\n display.input.focus();\n }\n off(display.wrapper.ownerDocument, \"mousemove\", move);\n off(display.wrapper.ownerDocument, \"mouseup\", up);\n doc.history.lastSelOrigin = null;\n }\n\n var move = operation(cm, function (e) {\n if (e.buttons === 0 || !e_button(e)) { done(e); }\n else { extend(e); }\n });\n var up = operation(cm, done);\n cm.state.selectingText = up;\n on(display.wrapper.ownerDocument, \"mousemove\", move);\n on(display.wrapper.ownerDocument, \"mouseup\", up);\n }\n\n // Used when mouse-selecting to adjust the anchor to the proper side\n // of a bidi jump depending on the visual position of the head.\n function bidiSimplify(cm, range) {\n var anchor = range.anchor;\n var head = range.head;\n var anchorLine = getLine(cm.doc, anchor.line);\n if (cmp(anchor, head) == 0 && anchor.sticky == head.sticky) { return range }\n var order = getOrder(anchorLine);\n if (!order) { return range }\n var index = getBidiPartAt(order, anchor.ch, anchor.sticky), part = order[index];\n if (part.from != anchor.ch && part.to != anchor.ch) { return range }\n var boundary = index + ((part.from == anchor.ch) == (part.level != 1) ? 0 : 1);\n if (boundary == 0 || boundary == order.length) { return range }\n\n // Compute the relative visual position of the head compared to the\n // anchor (<0 is to the left, >0 to the right)\n var leftSide;\n if (head.line != anchor.line) {\n leftSide = (head.line - anchor.line) * (cm.doc.direction == \"ltr\" ? 1 : -1) > 0;\n } else {\n var headIndex = getBidiPartAt(order, head.ch, head.sticky);\n var dir = headIndex - index || (head.ch - anchor.ch) * (part.level == 1 ? -1 : 1);\n if (headIndex == boundary - 1 || headIndex == boundary)\n { leftSide = dir < 0; }\n else\n { leftSide = dir > 0; }\n }\n\n var usePart = order[boundary + (leftSide ? -1 : 0)];\n var from = leftSide == (usePart.level == 1);\n var ch = from ? usePart.from : usePart.to, sticky = from ? \"after\" : \"before\";\n return anchor.ch == ch && anchor.sticky == sticky ? range : new Range(new Pos(anchor.line, ch, sticky), head)\n }\n\n\n // Determines whether an event happened in the gutter, and fires the\n // handlers for the corresponding event.\n function gutterEvent(cm, e, type, prevent) {\n var mX, mY;\n if (e.touches) {\n mX = e.touches[0].clientX;\n mY = e.touches[0].clientY;\n } else {\n try { mX = e.clientX; mY = e.clientY; }\n catch(e$1) { return false }\n }\n if (mX >= Math.floor(cm.display.gutters.getBoundingClientRect().right)) { return false }\n if (prevent) { e_preventDefault(e); }\n\n var display = cm.display;\n var lineBox = display.lineDiv.getBoundingClientRect();\n\n if (mY > lineBox.bottom || !hasHandler(cm, type)) { return e_defaultPrevented(e) }\n mY -= lineBox.top - display.viewOffset;\n\n for (var i = 0; i < cm.display.gutterSpecs.length; ++i) {\n var g = display.gutters.childNodes[i];\n if (g && g.getBoundingClientRect().right >= mX) {\n var line = lineAtHeight(cm.doc, mY);\n var gutter = cm.display.gutterSpecs[i];\n signal(cm, type, cm, line, gutter.className, e);\n return e_defaultPrevented(e)\n }\n }\n }\n\n function clickInGutter(cm, e) {\n return gutterEvent(cm, e, \"gutterClick\", true)\n }\n\n // CONTEXT MENU HANDLING\n\n // To make the context menu work, we need to briefly unhide the\n // textarea (making it as unobtrusive as possible) to let the\n // right-click take effect on it.\n function onContextMenu(cm, e) {\n if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) { return }\n if (signalDOMEvent(cm, e, \"contextmenu\")) { return }\n if (!captureRightClick) { cm.display.input.onContextMenu(e); }\n }\n\n function contextMenuInGutter(cm, e) {\n if (!hasHandler(cm, \"gutterContextMenu\")) { return false }\n return gutterEvent(cm, e, \"gutterContextMenu\", false)\n }\n\n function themeChanged(cm) {\n cm.display.wrapper.className = cm.display.wrapper.className.replace(/\\s*cm-s-\\S+/g, \"\") +\n cm.options.theme.replace(/(^|\\s)\\s*/g, \" cm-s-\");\n clearCaches(cm);\n }\n\n var Init = {toString: function(){return \"CodeMirror.Init\"}};\n\n var defaults = {};\n var optionHandlers = {};\n\n function defineOptions(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n function option(name, deflt, handle, notOnInit) {\n CodeMirror.defaults[name] = deflt;\n if (handle) { optionHandlers[name] =\n notOnInit ? function (cm, val, old) {if (old != Init) { handle(cm, val, old); }} : handle; }\n }\n\n CodeMirror.defineOption = option;\n\n // Passed to option handlers when there is no old value.\n CodeMirror.Init = Init;\n\n // These two are, on init, called from the constructor because they\n // have to be initialized before the editor can start at all.\n option(\"value\", \"\", function (cm, val) { return cm.setValue(val); }, true);\n option(\"mode\", null, function (cm, val) {\n cm.doc.modeOption = val;\n loadMode(cm);\n }, true);\n\n option(\"indentUnit\", 2, loadMode, true);\n option(\"indentWithTabs\", false);\n option(\"smartIndent\", true);\n option(\"tabSize\", 4, function (cm) {\n resetModeState(cm);\n clearCaches(cm);\n regChange(cm);\n }, true);\n\n option(\"lineSeparator\", null, function (cm, val) {\n cm.doc.lineSep = val;\n if (!val) { return }\n var newBreaks = [], lineNo = cm.doc.first;\n cm.doc.iter(function (line) {\n for (var pos = 0;;) {\n var found = line.text.indexOf(val, pos);\n if (found == -1) { break }\n pos = found + val.length;\n newBreaks.push(Pos(lineNo, found));\n }\n lineNo++;\n });\n for (var i = newBreaks.length - 1; i >= 0; i--)\n { replaceRange(cm.doc, val, newBreaks[i], Pos(newBreaks[i].line, newBreaks[i].ch + val.length)); }\n });\n option(\"specialChars\", /[\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u061c\\u200b-\\u200c\\u200e\\u200f\\u2028\\u2029\\ufeff\\ufff9-\\ufffc]/g, function (cm, val, old) {\n cm.state.specialChars = new RegExp(val.source + (val.test(\"\\t\") ? \"\" : \"|\\t\"), \"g\");\n if (old != Init) { cm.refresh(); }\n });\n option(\"specialCharPlaceholder\", defaultSpecialCharPlaceholder, function (cm) { return cm.refresh(); }, true);\n option(\"electricChars\", true);\n option(\"inputStyle\", mobile ? \"contenteditable\" : \"textarea\", function () {\n throw new Error(\"inputStyle can not (yet) be changed in a running editor\") // FIXME\n }, true);\n option(\"spellcheck\", false, function (cm, val) { return cm.getInputField().spellcheck = val; }, true);\n option(\"autocorrect\", false, function (cm, val) { return cm.getInputField().autocorrect = val; }, true);\n option(\"autocapitalize\", false, function (cm, val) { return cm.getInputField().autocapitalize = val; }, true);\n option(\"rtlMoveVisually\", !windows);\n option(\"wholeLineUpdateBefore\", true);\n\n option(\"theme\", \"default\", function (cm) {\n themeChanged(cm);\n updateGutters(cm);\n }, true);\n option(\"keyMap\", \"default\", function (cm, val, old) {\n var next = getKeyMap(val);\n var prev = old != Init && getKeyMap(old);\n if (prev && prev.detach) { prev.detach(cm, next); }\n if (next.attach) { next.attach(cm, prev || null); }\n });\n option(\"extraKeys\", null);\n option(\"configureMouse\", null);\n\n option(\"lineWrapping\", false, wrappingChanged, true);\n option(\"gutters\", [], function (cm, val) {\n cm.display.gutterSpecs = getGutters(val, cm.options.lineNumbers);\n updateGutters(cm);\n }, true);\n option(\"fixedGutter\", true, function (cm, val) {\n cm.display.gutters.style.left = val ? compensateForHScroll(cm.display) + \"px\" : \"0\";\n cm.refresh();\n }, true);\n option(\"coverGutterNextToScrollbar\", false, function (cm) { return updateScrollbars(cm); }, true);\n option(\"scrollbarStyle\", \"native\", function (cm) {\n initScrollbars(cm);\n updateScrollbars(cm);\n cm.display.scrollbars.setScrollTop(cm.doc.scrollTop);\n cm.display.scrollbars.setScrollLeft(cm.doc.scrollLeft);\n }, true);\n option(\"lineNumbers\", false, function (cm, val) {\n cm.display.gutterSpecs = getGutters(cm.options.gutters, val);\n updateGutters(cm);\n }, true);\n option(\"firstLineNumber\", 1, updateGutters, true);\n option(\"lineNumberFormatter\", function (integer) { return integer; }, updateGutters, true);\n option(\"showCursorWhenSelecting\", false, updateSelection, true);\n\n option(\"resetSelectionOnContextMenu\", true);\n option(\"lineWiseCopyCut\", true);\n option(\"pasteLinesPerSelection\", true);\n option(\"selectionsMayTouch\", false);\n\n option(\"readOnly\", false, function (cm, val) {\n if (val == \"nocursor\") {\n onBlur(cm);\n cm.display.input.blur();\n }\n cm.display.input.readOnlyChanged(val);\n });\n\n option(\"screenReaderLabel\", null, function (cm, val) {\n val = (val === '') ? null : val;\n cm.display.input.screenReaderLabelChanged(val);\n });\n\n option(\"disableInput\", false, function (cm, val) {if (!val) { cm.display.input.reset(); }}, true);\n option(\"dragDrop\", true, dragDropChanged);\n option(\"allowDropFileTypes\", null);\n\n option(\"cursorBlinkRate\", 530);\n option(\"cursorScrollMargin\", 0);\n option(\"cursorHeight\", 1, updateSelection, true);\n option(\"singleCursorHeightPerLine\", true, updateSelection, true);\n option(\"workTime\", 100);\n option(\"workDelay\", 100);\n option(\"flattenSpans\", true, resetModeState, true);\n option(\"addModeClass\", false, resetModeState, true);\n option(\"pollInterval\", 100);\n option(\"undoDepth\", 200, function (cm, val) { return cm.doc.history.undoDepth = val; });\n option(\"historyEventDelay\", 1250);\n option(\"viewportMargin\", 10, function (cm) { return cm.refresh(); }, true);\n option(\"maxHighlightLength\", 10000, resetModeState, true);\n option(\"moveInputWithCursor\", true, function (cm, val) {\n if (!val) { cm.display.input.resetPosition(); }\n });\n\n option(\"tabindex\", null, function (cm, val) { return cm.display.input.getField().tabIndex = val || \"\"; });\n option(\"autofocus\", null);\n option(\"direction\", \"ltr\", function (cm, val) { return cm.doc.setDirection(val); }, true);\n option(\"phrases\", null);\n }\n\n function dragDropChanged(cm, value, old) {\n var wasOn = old && old != Init;\n if (!value != !wasOn) {\n var funcs = cm.display.dragFunctions;\n var toggle = value ? on : off;\n toggle(cm.display.scroller, \"dragstart\", funcs.start);\n toggle(cm.display.scroller, \"dragenter\", funcs.enter);\n toggle(cm.display.scroller, \"dragover\", funcs.over);\n toggle(cm.display.scroller, \"dragleave\", funcs.leave);\n toggle(cm.display.scroller, \"drop\", funcs.drop);\n }\n }\n\n function wrappingChanged(cm) {\n if (cm.options.lineWrapping) {\n addClass(cm.display.wrapper, \"CodeMirror-wrap\");\n cm.display.sizer.style.minWidth = \"\";\n cm.display.sizerWidth = null;\n } else {\n rmClass(cm.display.wrapper, \"CodeMirror-wrap\");\n findMaxLine(cm);\n }\n estimateLineHeights(cm);\n regChange(cm);\n clearCaches(cm);\n setTimeout(function () { return updateScrollbars(cm); }, 100);\n }\n\n // A CodeMirror instance represents an editor. This is the object\n // that user code is usually dealing with.\n\n function CodeMirror(place, options) {\n var this$1 = this;\n\n if (!(this instanceof CodeMirror)) { return new CodeMirror(place, options) }\n\n this.options = options = options ? copyObj(options) : {};\n // Determine effective options based on given values and defaults.\n copyObj(defaults, options, false);\n\n var doc = options.value;\n if (typeof doc == \"string\") { doc = new Doc(doc, options.mode, null, options.lineSeparator, options.direction); }\n else if (options.mode) { doc.modeOption = options.mode; }\n this.doc = doc;\n\n var input = new CodeMirror.inputStyles[options.inputStyle](this);\n var display = this.display = new Display(place, doc, input, options);\n display.wrapper.CodeMirror = this;\n themeChanged(this);\n if (options.lineWrapping)\n { this.display.wrapper.className += \" CodeMirror-wrap\"; }\n initScrollbars(this);\n\n this.state = {\n keyMaps: [], // stores maps added by addKeyMap\n overlays: [], // highlighting overlays, as added by addOverlay\n modeGen: 0, // bumped when mode/overlay changes, used to invalidate highlighting info\n overwrite: false,\n delayingBlurEvent: false,\n focused: false,\n suppressEdits: false, // used to disable editing during key handlers when in readOnly mode\n pasteIncoming: -1, cutIncoming: -1, // help recognize paste/cut edits in input.poll\n selectingText: false,\n draggingText: false,\n highlight: new Delayed(), // stores highlight worker timeout\n keySeq: null, // Unfinished key sequence\n specialChars: null\n };\n\n if (options.autofocus && !mobile) { display.input.focus(); }\n\n // Override magic textarea content restore that IE sometimes does\n // on our hidden textarea on reload\n if (ie && ie_version < 11) { setTimeout(function () { return this$1.display.input.reset(true); }, 20); }\n\n registerEventHandlers(this);\n ensureGlobalHandlers();\n\n startOperation(this);\n this.curOp.forceUpdate = true;\n attachDoc(this, doc);\n\n if ((options.autofocus && !mobile) || this.hasFocus())\n { setTimeout(function () {\n if (this$1.hasFocus() && !this$1.state.focused) { onFocus(this$1); }\n }, 20); }\n else\n { onBlur(this); }\n\n for (var opt in optionHandlers) { if (optionHandlers.hasOwnProperty(opt))\n { optionHandlers[opt](this, options[opt], Init); } }\n maybeUpdateLineNumberWidth(this);\n if (options.finishInit) { options.finishInit(this); }\n for (var i = 0; i < initHooks.length; ++i) { initHooks[i](this); }\n endOperation(this);\n // Suppress optimizelegibility in Webkit, since it breaks text\n // measuring on line wrapping boundaries.\n if (webkit && options.lineWrapping &&\n getComputedStyle(display.lineDiv).textRendering == \"optimizelegibility\")\n { display.lineDiv.style.textRendering = \"auto\"; }\n }\n\n // The default configuration options.\n CodeMirror.defaults = defaults;\n // Functions to run when options are changed.\n CodeMirror.optionHandlers = optionHandlers;\n\n // Attach the necessary event handlers when initializing the editor\n function registerEventHandlers(cm) {\n var d = cm.display;\n on(d.scroller, \"mousedown\", operation(cm, onMouseDown));\n // Older IE's will not fire a second mousedown for a double click\n if (ie && ie_version < 11)\n { on(d.scroller, \"dblclick\", operation(cm, function (e) {\n if (signalDOMEvent(cm, e)) { return }\n var pos = posFromMouse(cm, e);\n if (!pos || clickInGutter(cm, e) || eventInWidget(cm.display, e)) { return }\n e_preventDefault(e);\n var word = cm.findWordAt(pos);\n extendSelection(cm.doc, word.anchor, word.head);\n })); }\n else\n { on(d.scroller, \"dblclick\", function (e) { return signalDOMEvent(cm, e) || e_preventDefault(e); }); }\n // Some browsers fire contextmenu *after* opening the menu, at\n // which point we can't mess with it anymore. Context menu is\n // handled in onMouseDown for these browsers.\n on(d.scroller, \"contextmenu\", function (e) { return onContextMenu(cm, e); });\n on(d.input.getField(), \"contextmenu\", function (e) {\n if (!d.scroller.contains(e.target)) { onContextMenu(cm, e); }\n });\n\n // Used to suppress mouse event handling when a touch happens\n var touchFinished, prevTouch = {end: 0};\n function finishTouch() {\n if (d.activeTouch) {\n touchFinished = setTimeout(function () { return d.activeTouch = null; }, 1000);\n prevTouch = d.activeTouch;\n prevTouch.end = +new Date;\n }\n }\n function isMouseLikeTouchEvent(e) {\n if (e.touches.length != 1) { return false }\n var touch = e.touches[0];\n return touch.radiusX <= 1 && touch.radiusY <= 1\n }\n function farAway(touch, other) {\n if (other.left == null) { return true }\n var dx = other.left - touch.left, dy = other.top - touch.top;\n return dx * dx + dy * dy > 20 * 20\n }\n on(d.scroller, \"touchstart\", function (e) {\n if (!signalDOMEvent(cm, e) && !isMouseLikeTouchEvent(e) && !clickInGutter(cm, e)) {\n d.input.ensurePolled();\n clearTimeout(touchFinished);\n var now = +new Date;\n d.activeTouch = {start: now, moved: false,\n prev: now - prevTouch.end <= 300 ? prevTouch : null};\n if (e.touches.length == 1) {\n d.activeTouch.left = e.touches[0].pageX;\n d.activeTouch.top = e.touches[0].pageY;\n }\n }\n });\n on(d.scroller, \"touchmove\", function () {\n if (d.activeTouch) { d.activeTouch.moved = true; }\n });\n on(d.scroller, \"touchend\", function (e) {\n var touch = d.activeTouch;\n if (touch && !eventInWidget(d, e) && touch.left != null &&\n !touch.moved && new Date - touch.start < 300) {\n var pos = cm.coordsChar(d.activeTouch, \"page\"), range;\n if (!touch.prev || farAway(touch, touch.prev)) // Single tap\n { range = new Range(pos, pos); }\n else if (!touch.prev.prev || farAway(touch, touch.prev.prev)) // Double tap\n { range = cm.findWordAt(pos); }\n else // Triple tap\n { range = new Range(Pos(pos.line, 0), clipPos(cm.doc, Pos(pos.line + 1, 0))); }\n cm.setSelection(range.anchor, range.head);\n cm.focus();\n e_preventDefault(e);\n }\n finishTouch();\n });\n on(d.scroller, \"touchcancel\", finishTouch);\n\n // Sync scrolling between fake scrollbars and real scrollable\n // area, ensure viewport is updated when scrolling.\n on(d.scroller, \"scroll\", function () {\n if (d.scroller.clientHeight) {\n updateScrollTop(cm, d.scroller.scrollTop);\n setScrollLeft(cm, d.scroller.scrollLeft, true);\n signal(cm, \"scroll\", cm);\n }\n });\n\n // Listen to wheel events in order to try and update the viewport on time.\n on(d.scroller, \"mousewheel\", function (e) { return onScrollWheel(cm, e); });\n on(d.scroller, \"DOMMouseScroll\", function (e) { return onScrollWheel(cm, e); });\n\n // Prevent wrapper from ever scrolling\n on(d.wrapper, \"scroll\", function () { return d.wrapper.scrollTop = d.wrapper.scrollLeft = 0; });\n\n d.dragFunctions = {\n enter: function (e) {if (!signalDOMEvent(cm, e)) { e_stop(e); }},\n over: function (e) {if (!signalDOMEvent(cm, e)) { onDragOver(cm, e); e_stop(e); }},\n start: function (e) { return onDragStart(cm, e); },\n drop: operation(cm, onDrop),\n leave: function (e) {if (!signalDOMEvent(cm, e)) { clearDragCursor(cm); }}\n };\n\n var inp = d.input.getField();\n on(inp, \"keyup\", function (e) { return onKeyUp.call(cm, e); });\n on(inp, \"keydown\", operation(cm, onKeyDown));\n on(inp, \"keypress\", operation(cm, onKeyPress));\n on(inp, \"focus\", function (e) { return onFocus(cm, e); });\n on(inp, \"blur\", function (e) { return onBlur(cm, e); });\n }\n\n var initHooks = [];\n CodeMirror.defineInitHook = function (f) { return initHooks.push(f); };\n\n // Indent the given line. The how parameter can be \"smart\",\n // \"add\"/null, \"subtract\", or \"prev\". When aggressive is false\n // (typically set to true for forced single-line indents), empty\n // lines are not indented, and places where the mode returns Pass\n // are left alone.\n function indentLine(cm, n, how, aggressive) {\n var doc = cm.doc, state;\n if (how == null) { how = \"add\"; }\n if (how == \"smart\") {\n // Fall back to \"prev\" when the mode doesn't have an indentation\n // method.\n if (!doc.mode.indent) { how = \"prev\"; }\n else { state = getContextBefore(cm, n).state; }\n }\n\n var tabSize = cm.options.tabSize;\n var line = getLine(doc, n), curSpace = countColumn(line.text, null, tabSize);\n if (line.stateAfter) { line.stateAfter = null; }\n var curSpaceString = line.text.match(/^\\s*/)[0], indentation;\n if (!aggressive && !/\\S/.test(line.text)) {\n indentation = 0;\n how = \"not\";\n } else if (how == \"smart\") {\n indentation = doc.mode.indent(state, line.text.slice(curSpaceString.length), line.text);\n if (indentation == Pass || indentation > 150) {\n if (!aggressive) { return }\n how = \"prev\";\n }\n }\n if (how == \"prev\") {\n if (n > doc.first) { indentation = countColumn(getLine(doc, n-1).text, null, tabSize); }\n else { indentation = 0; }\n } else if (how == \"add\") {\n indentation = curSpace + cm.options.indentUnit;\n } else if (how == \"subtract\") {\n indentation = curSpace - cm.options.indentUnit;\n } else if (typeof how == \"number\") {\n indentation = curSpace + how;\n }\n indentation = Math.max(0, indentation);\n\n var indentString = \"\", pos = 0;\n if (cm.options.indentWithTabs)\n { for (var i = Math.floor(indentation / tabSize); i; --i) {pos += tabSize; indentString += \"\\t\";} }\n if (pos < indentation) { indentString += spaceStr(indentation - pos); }\n\n if (indentString != curSpaceString) {\n replaceRange(doc, indentString, Pos(n, 0), Pos(n, curSpaceString.length), \"+input\");\n line.stateAfter = null;\n return true\n } else {\n // Ensure that, if the cursor was in the whitespace at the start\n // of the line, it is moved to the end of that space.\n for (var i$1 = 0; i$1 < doc.sel.ranges.length; i$1++) {\n var range = doc.sel.ranges[i$1];\n if (range.head.line == n && range.head.ch < curSpaceString.length) {\n var pos$1 = Pos(n, curSpaceString.length);\n replaceOneSelection(doc, i$1, new Range(pos$1, pos$1));\n break\n }\n }\n }\n }\n\n // This will be set to a {lineWise: bool, text: [string]} object, so\n // that, when pasting, we know what kind of selections the copied\n // text was made out of.\n var lastCopied = null;\n\n function setLastCopied(newLastCopied) {\n lastCopied = newLastCopied;\n }\n\n function applyTextInput(cm, inserted, deleted, sel, origin) {\n var doc = cm.doc;\n cm.display.shift = false;\n if (!sel) { sel = doc.sel; }\n\n var recent = +new Date - 200;\n var paste = origin == \"paste\" || cm.state.pasteIncoming > recent;\n var textLines = splitLinesAuto(inserted), multiPaste = null;\n // When pasting N lines into N selections, insert one line per selection\n if (paste && sel.ranges.length > 1) {\n if (lastCopied && lastCopied.text.join(\"\\n\") == inserted) {\n if (sel.ranges.length % lastCopied.text.length == 0) {\n multiPaste = [];\n for (var i = 0; i < lastCopied.text.length; i++)\n { multiPaste.push(doc.splitLines(lastCopied.text[i])); }\n }\n } else if (textLines.length == sel.ranges.length && cm.options.pasteLinesPerSelection) {\n multiPaste = map(textLines, function (l) { return [l]; });\n }\n }\n\n var updateInput = cm.curOp.updateInput;\n // Normal behavior is to insert the new text into every selection\n for (var i$1 = sel.ranges.length - 1; i$1 >= 0; i$1--) {\n var range = sel.ranges[i$1];\n var from = range.from(), to = range.to();\n if (range.empty()) {\n if (deleted && deleted > 0) // Handle deletion\n { from = Pos(from.line, from.ch - deleted); }\n else if (cm.state.overwrite && !paste) // Handle overwrite\n { to = Pos(to.line, Math.min(getLine(doc, to.line).text.length, to.ch + lst(textLines).length)); }\n else if (paste && lastCopied && lastCopied.lineWise && lastCopied.text.join(\"\\n\") == textLines.join(\"\\n\"))\n { from = to = Pos(from.line, 0); }\n }\n var changeEvent = {from: from, to: to, text: multiPaste ? multiPaste[i$1 % multiPaste.length] : textLines,\n origin: origin || (paste ? \"paste\" : cm.state.cutIncoming > recent ? \"cut\" : \"+input\")};\n makeChange(cm.doc, changeEvent);\n signalLater(cm, \"inputRead\", cm, changeEvent);\n }\n if (inserted && !paste)\n { triggerElectric(cm, inserted); }\n\n ensureCursorVisible(cm);\n if (cm.curOp.updateInput < 2) { cm.curOp.updateInput = updateInput; }\n cm.curOp.typing = true;\n cm.state.pasteIncoming = cm.state.cutIncoming = -1;\n }\n\n function handlePaste(e, cm) {\n var pasted = e.clipboardData && e.clipboardData.getData(\"Text\");\n if (pasted) {\n e.preventDefault();\n if (!cm.isReadOnly() && !cm.options.disableInput)\n { runInOp(cm, function () { return applyTextInput(cm, pasted, 0, null, \"paste\"); }); }\n return true\n }\n }\n\n function triggerElectric(cm, inserted) {\n // When an 'electric' character is inserted, immediately trigger a reindent\n if (!cm.options.electricChars || !cm.options.smartIndent) { return }\n var sel = cm.doc.sel;\n\n for (var i = sel.ranges.length - 1; i >= 0; i--) {\n var range = sel.ranges[i];\n if (range.head.ch > 100 || (i && sel.ranges[i - 1].head.line == range.head.line)) { continue }\n var mode = cm.getModeAt(range.head);\n var indented = false;\n if (mode.electricChars) {\n for (var j = 0; j < mode.electricChars.length; j++)\n { if (inserted.indexOf(mode.electricChars.charAt(j)) > -1) {\n indented = indentLine(cm, range.head.line, \"smart\");\n break\n } }\n } else if (mode.electricInput) {\n if (mode.electricInput.test(getLine(cm.doc, range.head.line).text.slice(0, range.head.ch)))\n { indented = indentLine(cm, range.head.line, \"smart\"); }\n }\n if (indented) { signalLater(cm, \"electricInput\", cm, range.head.line); }\n }\n }\n\n function copyableRanges(cm) {\n var text = [], ranges = [];\n for (var i = 0; i < cm.doc.sel.ranges.length; i++) {\n var line = cm.doc.sel.ranges[i].head.line;\n var lineRange = {anchor: Pos(line, 0), head: Pos(line + 1, 0)};\n ranges.push(lineRange);\n text.push(cm.getRange(lineRange.anchor, lineRange.head));\n }\n return {text: text, ranges: ranges}\n }\n\n function disableBrowserMagic(field, spellcheck, autocorrect, autocapitalize) {\n field.setAttribute(\"autocorrect\", autocorrect ? \"\" : \"off\");\n field.setAttribute(\"autocapitalize\", autocapitalize ? \"\" : \"off\");\n field.setAttribute(\"spellcheck\", !!spellcheck);\n }\n\n function hiddenTextarea() {\n var te = elt(\"textarea\", null, null, \"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none\");\n var div = elt(\"div\", [te], null, \"overflow: hidden; position: relative; width: 3px; height: 0px;\");\n // The textarea is kept positioned near the cursor to prevent the\n // fact that it'll be scrolled into view on input from scrolling\n // our fake cursor out of view. On webkit, when wrap=off, paste is\n // very slow. So make the area wide instead.\n if (webkit) { te.style.width = \"1000px\"; }\n else { te.setAttribute(\"wrap\", \"off\"); }\n // If border: 0; -- iOS fails to open keyboard (issue #1287)\n if (ios) { te.style.border = \"1px solid black\"; }\n disableBrowserMagic(te);\n return div\n }\n\n // The publicly visible API. Note that methodOp(f) means\n // 'wrap f in an operation, performed on its `this` parameter'.\n\n // This is not the complete set of editor methods. Most of the\n // methods defined on the Doc type are also injected into\n // CodeMirror.prototype, for backwards compatibility and\n // convenience.\n\n function addEditorMethods(CodeMirror) {\n var optionHandlers = CodeMirror.optionHandlers;\n\n var helpers = CodeMirror.helpers = {};\n\n CodeMirror.prototype = {\n constructor: CodeMirror,\n focus: function(){window.focus(); this.display.input.focus();},\n\n setOption: function(option, value) {\n var options = this.options, old = options[option];\n if (options[option] == value && option != \"mode\") { return }\n options[option] = value;\n if (optionHandlers.hasOwnProperty(option))\n { operation(this, optionHandlers[option])(this, value, old); }\n signal(this, \"optionChange\", this, option);\n },\n\n getOption: function(option) {return this.options[option]},\n getDoc: function() {return this.doc},\n\n addKeyMap: function(map, bottom) {\n this.state.keyMaps[bottom ? \"push\" : \"unshift\"](getKeyMap(map));\n },\n removeKeyMap: function(map) {\n var maps = this.state.keyMaps;\n for (var i = 0; i < maps.length; ++i)\n { if (maps[i] == map || maps[i].name == map) {\n maps.splice(i, 1);\n return true\n } }\n },\n\n addOverlay: methodOp(function(spec, options) {\n var mode = spec.token ? spec : CodeMirror.getMode(this.options, spec);\n if (mode.startState) { throw new Error(\"Overlays may not be stateful.\") }\n insertSorted(this.state.overlays,\n {mode: mode, modeSpec: spec, opaque: options && options.opaque,\n priority: (options && options.priority) || 0},\n function (overlay) { return overlay.priority; });\n this.state.modeGen++;\n regChange(this);\n }),\n removeOverlay: methodOp(function(spec) {\n var overlays = this.state.overlays;\n for (var i = 0; i < overlays.length; ++i) {\n var cur = overlays[i].modeSpec;\n if (cur == spec || typeof spec == \"string\" && cur.name == spec) {\n overlays.splice(i, 1);\n this.state.modeGen++;\n regChange(this);\n return\n }\n }\n }),\n\n indentLine: methodOp(function(n, dir, aggressive) {\n if (typeof dir != \"string\" && typeof dir != \"number\") {\n if (dir == null) { dir = this.options.smartIndent ? \"smart\" : \"prev\"; }\n else { dir = dir ? \"add\" : \"subtract\"; }\n }\n if (isLine(this.doc, n)) { indentLine(this, n, dir, aggressive); }\n }),\n indentSelection: methodOp(function(how) {\n var ranges = this.doc.sel.ranges, end = -1;\n for (var i = 0; i < ranges.length; i++) {\n var range = ranges[i];\n if (!range.empty()) {\n var from = range.from(), to = range.to();\n var start = Math.max(end, from.line);\n end = Math.min(this.lastLine(), to.line - (to.ch ? 0 : 1)) + 1;\n for (var j = start; j < end; ++j)\n { indentLine(this, j, how); }\n var newRanges = this.doc.sel.ranges;\n if (from.ch == 0 && ranges.length == newRanges.length && newRanges[i].from().ch > 0)\n { replaceOneSelection(this.doc, i, new Range(from, newRanges[i].to()), sel_dontScroll); }\n } else if (range.head.line > end) {\n indentLine(this, range.head.line, how, true);\n end = range.head.line;\n if (i == this.doc.sel.primIndex) { ensureCursorVisible(this); }\n }\n }\n }),\n\n // Fetch the parser token for a given character. Useful for hacks\n // that want to inspect the mode state (say, for completion).\n getTokenAt: function(pos, precise) {\n return takeToken(this, pos, precise)\n },\n\n getLineTokens: function(line, precise) {\n return takeToken(this, Pos(line), precise, true)\n },\n\n getTokenTypeAt: function(pos) {\n pos = clipPos(this.doc, pos);\n var styles = getLineStyles(this, getLine(this.doc, pos.line));\n var before = 0, after = (styles.length - 1) / 2, ch = pos.ch;\n var type;\n if (ch == 0) { type = styles[2]; }\n else { for (;;) {\n var mid = (before + after) >> 1;\n if ((mid ? styles[mid * 2 - 1] : 0) >= ch) { after = mid; }\n else if (styles[mid * 2 + 1] < ch) { before = mid + 1; }\n else { type = styles[mid * 2 + 2]; break }\n } }\n var cut = type ? type.indexOf(\"overlay \") : -1;\n return cut < 0 ? type : cut == 0 ? null : type.slice(0, cut - 1)\n },\n\n getModeAt: function(pos) {\n var mode = this.doc.mode;\n if (!mode.innerMode) { return mode }\n return CodeMirror.innerMode(mode, this.getTokenAt(pos).state).mode\n },\n\n getHelper: function(pos, type) {\n return this.getHelpers(pos, type)[0]\n },\n\n getHelpers: function(pos, type) {\n var found = [];\n if (!helpers.hasOwnProperty(type)) { return found }\n var help = helpers[type], mode = this.getModeAt(pos);\n if (typeof mode[type] == \"string\") {\n if (help[mode[type]]) { found.push(help[mode[type]]); }\n } else if (mode[type]) {\n for (var i = 0; i < mode[type].length; i++) {\n var val = help[mode[type][i]];\n if (val) { found.push(val); }\n }\n } else if (mode.helperType && help[mode.helperType]) {\n found.push(help[mode.helperType]);\n } else if (help[mode.name]) {\n found.push(help[mode.name]);\n }\n for (var i$1 = 0; i$1 < help._global.length; i$1++) {\n var cur = help._global[i$1];\n if (cur.pred(mode, this) && indexOf(found, cur.val) == -1)\n { found.push(cur.val); }\n }\n return found\n },\n\n getStateAfter: function(line, precise) {\n var doc = this.doc;\n line = clipLine(doc, line == null ? doc.first + doc.size - 1: line);\n return getContextBefore(this, line + 1, precise).state\n },\n\n cursorCoords: function(start, mode) {\n var pos, range = this.doc.sel.primary();\n if (start == null) { pos = range.head; }\n else if (typeof start == \"object\") { pos = clipPos(this.doc, start); }\n else { pos = start ? range.from() : range.to(); }\n return cursorCoords(this, pos, mode || \"page\")\n },\n\n charCoords: function(pos, mode) {\n return charCoords(this, clipPos(this.doc, pos), mode || \"page\")\n },\n\n coordsChar: function(coords, mode) {\n coords = fromCoordSystem(this, coords, mode || \"page\");\n return coordsChar(this, coords.left, coords.top)\n },\n\n lineAtHeight: function(height, mode) {\n height = fromCoordSystem(this, {top: height, left: 0}, mode || \"page\").top;\n return lineAtHeight(this.doc, height + this.display.viewOffset)\n },\n heightAtLine: function(line, mode, includeWidgets) {\n var end = false, lineObj;\n if (typeof line == \"number\") {\n var last = this.doc.first + this.doc.size - 1;\n if (line < this.doc.first) { line = this.doc.first; }\n else if (line > last) { line = last; end = true; }\n lineObj = getLine(this.doc, line);\n } else {\n lineObj = line;\n }\n return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || \"page\", includeWidgets || end).top +\n (end ? this.doc.height - heightAtLine(lineObj) : 0)\n },\n\n defaultTextHeight: function() { return textHeight(this.display) },\n defaultCharWidth: function() { return charWidth(this.display) },\n\n getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},\n\n addWidget: function(pos, node, scroll, vert, horiz) {\n var display = this.display;\n pos = cursorCoords(this, clipPos(this.doc, pos));\n var top = pos.bottom, left = pos.left;\n node.style.position = \"absolute\";\n node.setAttribute(\"cm-ignore-events\", \"true\");\n this.display.input.setUneditable(node);\n display.sizer.appendChild(node);\n if (vert == \"over\") {\n top = pos.top;\n } else if (vert == \"above\" || vert == \"near\") {\n var vspace = Math.max(display.wrapper.clientHeight, this.doc.height),\n hspace = Math.max(display.sizer.clientWidth, display.lineSpace.clientWidth);\n // Default to positioning above (if specified and possible); otherwise default to positioning below\n if ((vert == 'above' || pos.bottom + node.offsetHeight > vspace) && pos.top > node.offsetHeight)\n { top = pos.top - node.offsetHeight; }\n else if (pos.bottom + node.offsetHeight <= vspace)\n { top = pos.bottom; }\n if (left + node.offsetWidth > hspace)\n { left = hspace - node.offsetWidth; }\n }\n node.style.top = top + \"px\";\n node.style.left = node.style.right = \"\";\n if (horiz == \"right\") {\n left = display.sizer.clientWidth - node.offsetWidth;\n node.style.right = \"0px\";\n } else {\n if (horiz == \"left\") { left = 0; }\n else if (horiz == \"middle\") { left = (display.sizer.clientWidth - node.offsetWidth) / 2; }\n node.style.left = left + \"px\";\n }\n if (scroll)\n { scrollIntoView(this, {left: left, top: top, right: left + node.offsetWidth, bottom: top + node.offsetHeight}); }\n },\n\n triggerOnKeyDown: methodOp(onKeyDown),\n triggerOnKeyPress: methodOp(onKeyPress),\n triggerOnKeyUp: onKeyUp,\n triggerOnMouseDown: methodOp(onMouseDown),\n\n execCommand: function(cmd) {\n if (commands.hasOwnProperty(cmd))\n { return commands[cmd].call(null, this) }\n },\n\n triggerElectric: methodOp(function(text) { triggerElectric(this, text); }),\n\n findPosH: function(from, amount, unit, visually) {\n var dir = 1;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n cur = findPosH(this.doc, cur, dir, unit, visually);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveH: methodOp(function(dir, unit) {\n var this$1 = this;\n\n this.extendSelectionsBy(function (range) {\n if (this$1.display.shift || this$1.doc.extend || range.empty())\n { return findPosH(this$1.doc, range.head, dir, unit, this$1.options.rtlMoveVisually) }\n else\n { return dir < 0 ? range.from() : range.to() }\n }, sel_move);\n }),\n\n deleteH: methodOp(function(dir, unit) {\n var sel = this.doc.sel, doc = this.doc;\n if (sel.somethingSelected())\n { doc.replaceSelection(\"\", null, \"+delete\"); }\n else\n { deleteNearSelection(this, function (range) {\n var other = findPosH(doc, range.head, dir, unit, false);\n return dir < 0 ? {from: other, to: range.head} : {from: range.head, to: other}\n }); }\n }),\n\n findPosV: function(from, amount, unit, goalColumn) {\n var dir = 1, x = goalColumn;\n if (amount < 0) { dir = -1; amount = -amount; }\n var cur = clipPos(this.doc, from);\n for (var i = 0; i < amount; ++i) {\n var coords = cursorCoords(this, cur, \"div\");\n if (x == null) { x = coords.left; }\n else { coords.left = x; }\n cur = findPosV(this, coords, dir, unit);\n if (cur.hitSide) { break }\n }\n return cur\n },\n\n moveV: methodOp(function(dir, unit) {\n var this$1 = this;\n\n var doc = this.doc, goals = [];\n var collapse = !this.display.shift && !doc.extend && doc.sel.somethingSelected();\n doc.extendSelectionsBy(function (range) {\n if (collapse)\n { return dir < 0 ? range.from() : range.to() }\n var headPos = cursorCoords(this$1, range.head, \"div\");\n if (range.goalColumn != null) { headPos.left = range.goalColumn; }\n goals.push(headPos.left);\n var pos = findPosV(this$1, headPos, dir, unit);\n if (unit == \"page\" && range == doc.sel.primary())\n { addToScrollTop(this$1, charCoords(this$1, pos, \"div\").top - headPos.top); }\n return pos\n }, sel_move);\n if (goals.length) { for (var i = 0; i < doc.sel.ranges.length; i++)\n { doc.sel.ranges[i].goalColumn = goals[i]; } }\n }),\n\n // Find the word at the given position (as returned by coordsChar).\n findWordAt: function(pos) {\n var doc = this.doc, line = getLine(doc, pos.line).text;\n var start = pos.ch, end = pos.ch;\n if (line) {\n var helper = this.getHelper(pos, \"wordChars\");\n if ((pos.sticky == \"before\" || end == line.length) && start) { --start; } else { ++end; }\n var startChar = line.charAt(start);\n var check = isWordChar(startChar, helper)\n ? function (ch) { return isWordChar(ch, helper); }\n : /\\s/.test(startChar) ? function (ch) { return /\\s/.test(ch); }\n : function (ch) { return (!/\\s/.test(ch) && !isWordChar(ch)); };\n while (start > 0 && check(line.charAt(start - 1))) { --start; }\n while (end < line.length && check(line.charAt(end))) { ++end; }\n }\n return new Range(Pos(pos.line, start), Pos(pos.line, end))\n },\n\n toggleOverwrite: function(value) {\n if (value != null && value == this.state.overwrite) { return }\n if (this.state.overwrite = !this.state.overwrite)\n { addClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n else\n { rmClass(this.display.cursorDiv, \"CodeMirror-overwrite\"); }\n\n signal(this, \"overwriteToggle\", this, this.state.overwrite);\n },\n hasFocus: function() { return this.display.input.getField() == activeElt() },\n isReadOnly: function() { return !!(this.options.readOnly || this.doc.cantEdit) },\n\n scrollTo: methodOp(function (x, y) { scrollToCoords(this, x, y); }),\n getScrollInfo: function() {\n var scroller = this.display.scroller;\n return {left: scroller.scrollLeft, top: scroller.scrollTop,\n height: scroller.scrollHeight - scrollGap(this) - this.display.barHeight,\n width: scroller.scrollWidth - scrollGap(this) - this.display.barWidth,\n clientHeight: displayHeight(this), clientWidth: displayWidth(this)}\n },\n\n scrollIntoView: methodOp(function(range, margin) {\n if (range == null) {\n range = {from: this.doc.sel.primary().head, to: null};\n if (margin == null) { margin = this.options.cursorScrollMargin; }\n } else if (typeof range == \"number\") {\n range = {from: Pos(range, 0), to: null};\n } else if (range.from == null) {\n range = {from: range, to: null};\n }\n if (!range.to) { range.to = range.from; }\n range.margin = margin || 0;\n\n if (range.from.line != null) {\n scrollToRange(this, range);\n } else {\n scrollToCoordsRange(this, range.from, range.to, range.margin);\n }\n }),\n\n setSize: methodOp(function(width, height) {\n var this$1 = this;\n\n var interpret = function (val) { return typeof val == \"number\" || /^\\d+$/.test(String(val)) ? val + \"px\" : val; };\n if (width != null) { this.display.wrapper.style.width = interpret(width); }\n if (height != null) { this.display.wrapper.style.height = interpret(height); }\n if (this.options.lineWrapping) { clearLineMeasurementCache(this); }\n var lineNo = this.display.viewFrom;\n this.doc.iter(lineNo, this.display.viewTo, function (line) {\n if (line.widgets) { for (var i = 0; i < line.widgets.length; i++)\n { if (line.widgets[i].noHScroll) { regLineChange(this$1, lineNo, \"widget\"); break } } }\n ++lineNo;\n });\n this.curOp.forceUpdate = true;\n signal(this, \"refresh\", this);\n }),\n\n operation: function(f){return runInOp(this, f)},\n startOperation: function(){return startOperation(this)},\n endOperation: function(){return endOperation(this)},\n\n refresh: methodOp(function() {\n var oldHeight = this.display.cachedTextHeight;\n regChange(this);\n this.curOp.forceUpdate = true;\n clearCaches(this);\n scrollToCoords(this, this.doc.scrollLeft, this.doc.scrollTop);\n updateGutterSpace(this.display);\n if (oldHeight == null || Math.abs(oldHeight - textHeight(this.display)) > .5 || this.options.lineWrapping)\n { estimateLineHeights(this); }\n signal(this, \"refresh\", this);\n }),\n\n swapDoc: methodOp(function(doc) {\n var old = this.doc;\n old.cm = null;\n // Cancel the current text selection if any (#5821)\n if (this.state.selectingText) { this.state.selectingText(); }\n attachDoc(this, doc);\n clearCaches(this);\n this.display.input.reset();\n scrollToCoords(this, doc.scrollLeft, doc.scrollTop);\n this.curOp.forceScroll = true;\n signalLater(this, \"swapDoc\", this, old);\n return old\n }),\n\n phrase: function(phraseText) {\n var phrases = this.options.phrases;\n return phrases && Object.prototype.hasOwnProperty.call(phrases, phraseText) ? phrases[phraseText] : phraseText\n },\n\n getInputField: function(){return this.display.input.getField()},\n getWrapperElement: function(){return this.display.wrapper},\n getScrollerElement: function(){return this.display.scroller},\n getGutterElement: function(){return this.display.gutters}\n };\n eventMixin(CodeMirror);\n\n CodeMirror.registerHelper = function(type, name, value) {\n if (!helpers.hasOwnProperty(type)) { helpers[type] = CodeMirror[type] = {_global: []}; }\n helpers[type][name] = value;\n };\n CodeMirror.registerGlobalHelper = function(type, name, predicate, value) {\n CodeMirror.registerHelper(type, name, value);\n helpers[type]._global.push({pred: predicate, val: value});\n };\n }\n\n // Used for horizontal relative motion. Dir is -1 or 1 (left or\n // right), unit can be \"codepoint\", \"char\", \"column\" (like char, but\n // doesn't cross line boundaries), \"word\" (across next word), or\n // \"group\" (to the start of next group of word or\n // non-word-non-whitespace chars). The visually param controls\n // whether, in right-to-left text, direction 1 means to move towards\n // the next index in the string, or towards the character to the right\n // of the current position. The resulting position will have a\n // hitSide=true property if it reached the end of the document.\n function findPosH(doc, pos, dir, unit, visually) {\n var oldPos = pos;\n var origDir = dir;\n var lineObj = getLine(doc, pos.line);\n var lineDir = visually && doc.direction == \"rtl\" ? -dir : dir;\n function findNextLine() {\n var l = pos.line + lineDir;\n if (l < doc.first || l >= doc.first + doc.size) { return false }\n pos = new Pos(l, pos.ch, pos.sticky);\n return lineObj = getLine(doc, l)\n }\n function moveOnce(boundToLine) {\n var next;\n if (unit == \"codepoint\") {\n var ch = lineObj.text.charCodeAt(pos.ch + (unit > 0 ? 0 : -1));\n if (isNaN(ch)) { next = null; }\n else { next = new Pos(pos.line, Math.max(0, Math.min(lineObj.text.length, pos.ch + dir * (ch >= 0xD800 && ch < 0xDC00 ? 2 : 1))),\n -dir); }\n } else if (visually) {\n next = moveVisually(doc.cm, lineObj, pos, dir);\n } else {\n next = moveLogically(lineObj, pos, dir);\n }\n if (next == null) {\n if (!boundToLine && findNextLine())\n { pos = endOfLine(visually, doc.cm, lineObj, pos.line, lineDir); }\n else\n { return false }\n } else {\n pos = next;\n }\n return true\n }\n\n if (unit == \"char\" || unit == \"codepoint\") {\n moveOnce();\n } else if (unit == \"column\") {\n moveOnce(true);\n } else if (unit == \"word\" || unit == \"group\") {\n var sawType = null, group = unit == \"group\";\n var helper = doc.cm && doc.cm.getHelper(pos, \"wordChars\");\n for (var first = true;; first = false) {\n if (dir < 0 && !moveOnce(!first)) { break }\n var cur = lineObj.text.charAt(pos.ch) || \"\\n\";\n var type = isWordChar(cur, helper) ? \"w\"\n : group && cur == \"\\n\" ? \"n\"\n : !group || /\\s/.test(cur) ? null\n : \"p\";\n if (group && !first && !type) { type = \"s\"; }\n if (sawType && sawType != type) {\n if (dir < 0) {dir = 1; moveOnce(); pos.sticky = \"after\";}\n break\n }\n\n if (type) { sawType = type; }\n if (dir > 0 && !moveOnce(!first)) { break }\n }\n }\n var result = skipAtomic(doc, pos, oldPos, origDir, true);\n if (equalCursorPos(oldPos, result)) { result.hitSide = true; }\n return result\n }\n\n // For relative vertical movement. Dir may be -1 or 1. Unit can be\n // \"page\" or \"line\". The resulting position will have a hitSide=true\n // property if it reached the end of the document.\n function findPosV(cm, pos, dir, unit) {\n var doc = cm.doc, x = pos.left, y;\n if (unit == \"page\") {\n var pageSize = Math.min(cm.display.wrapper.clientHeight, window.innerHeight || document.documentElement.clientHeight);\n var moveAmount = Math.max(pageSize - .5 * textHeight(cm.display), 3);\n y = (dir > 0 ? pos.bottom : pos.top) + dir * moveAmount;\n\n } else if (unit == \"line\") {\n y = dir > 0 ? pos.bottom + 3 : pos.top - 3;\n }\n var target;\n for (;;) {\n target = coordsChar(cm, x, y);\n if (!target.outside) { break }\n if (dir < 0 ? y <= 0 : y >= doc.height) { target.hitSide = true; break }\n y += dir * 5;\n }\n return target\n }\n\n // CONTENTEDITABLE INPUT STYLE\n\n var ContentEditableInput = function(cm) {\n this.cm = cm;\n this.lastAnchorNode = this.lastAnchorOffset = this.lastFocusNode = this.lastFocusOffset = null;\n this.polling = new Delayed();\n this.composing = null;\n this.gracePeriod = false;\n this.readDOMTimeout = null;\n };\n\n ContentEditableInput.prototype.init = function (display) {\n var this$1 = this;\n\n var input = this, cm = input.cm;\n var div = input.div = display.lineDiv;\n disableBrowserMagic(div, cm.options.spellcheck, cm.options.autocorrect, cm.options.autocapitalize);\n\n function belongsToInput(e) {\n for (var t = e.target; t; t = t.parentNode) {\n if (t == div) { return true }\n if (/\\bCodeMirror-(?:line)?widget\\b/.test(t.className)) { break }\n }\n return false\n }\n\n on(div, \"paste\", function (e) {\n if (!belongsToInput(e) || signalDOMEvent(cm, e) || handlePaste(e, cm)) { return }\n // IE doesn't fire input events, so we schedule a read for the pasted content in this way\n if (ie_version <= 11) { setTimeout(operation(cm, function () { return this$1.updateFromDOM(); }), 20); }\n });\n\n on(div, \"compositionstart\", function (e) {\n this$1.composing = {data: e.data, done: false};\n });\n on(div, \"compositionupdate\", function (e) {\n if (!this$1.composing) { this$1.composing = {data: e.data, done: false}; }\n });\n on(div, \"compositionend\", function (e) {\n if (this$1.composing) {\n if (e.data != this$1.composing.data) { this$1.readFromDOMSoon(); }\n this$1.composing.done = true;\n }\n });\n\n on(div, \"touchstart\", function () { return input.forceCompositionEnd(); });\n\n on(div, \"input\", function () {\n if (!this$1.composing) { this$1.readFromDOMSoon(); }\n });\n\n function onCopyCut(e) {\n if (!belongsToInput(e) || signalDOMEvent(cm, e)) { return }\n if (cm.somethingSelected()) {\n setLastCopied({lineWise: false, text: cm.getSelections()});\n if (e.type == \"cut\") { cm.replaceSelection(\"\", null, \"cut\"); }\n } else if (!cm.options.lineWiseCopyCut) {\n return\n } else {\n var ranges = copyableRanges(cm);\n setLastCopied({lineWise: true, text: ranges.text});\n if (e.type == \"cut\") {\n cm.operation(function () {\n cm.setSelections(ranges.ranges, 0, sel_dontScroll);\n cm.replaceSelection(\"\", null, \"cut\");\n });\n }\n }\n if (e.clipboardData) {\n e.clipboardData.clearData();\n var content = lastCopied.text.join(\"\\n\");\n // iOS exposes the clipboard API, but seems to discard content inserted into it\n e.clipboardData.setData(\"Text\", content);\n if (e.clipboardData.getData(\"Text\") == content) {\n e.preventDefault();\n return\n }\n }\n // Old-fashioned briefly-focus-a-textarea hack\n var kludge = hiddenTextarea(), te = kludge.firstChild;\n cm.display.lineSpace.insertBefore(kludge, cm.display.lineSpace.firstChild);\n te.value = lastCopied.text.join(\"\\n\");\n var hadFocus = document.activeElement;\n selectInput(te);\n setTimeout(function () {\n cm.display.lineSpace.removeChild(kludge);\n hadFocus.focus();\n if (hadFocus == div) { input.showPrimarySelection(); }\n }, 50);\n }\n on(div, \"copy\", onCopyCut);\n on(div, \"cut\", onCopyCut);\n };\n\n ContentEditableInput.prototype.screenReaderLabelChanged = function (label) {\n // Label for screenreaders, accessibility\n if(label) {\n this.div.setAttribute('aria-label', label);\n } else {\n this.div.removeAttribute('aria-label');\n }\n };\n\n ContentEditableInput.prototype.prepareSelection = function () {\n var result = prepareSelection(this.cm, false);\n result.focus = document.activeElement == this.div;\n return result\n };\n\n ContentEditableInput.prototype.showSelection = function (info, takeFocus) {\n if (!info || !this.cm.display.view.length) { return }\n if (info.focus || takeFocus) { this.showPrimarySelection(); }\n this.showMultipleSelections(info);\n };\n\n ContentEditableInput.prototype.getSelection = function () {\n return this.cm.display.wrapper.ownerDocument.getSelection()\n };\n\n ContentEditableInput.prototype.showPrimarySelection = function () {\n var sel = this.getSelection(), cm = this.cm, prim = cm.doc.sel.primary();\n var from = prim.from(), to = prim.to();\n\n if (cm.display.viewTo == cm.display.viewFrom || from.line >= cm.display.viewTo || to.line < cm.display.viewFrom) {\n sel.removeAllRanges();\n return\n }\n\n var curAnchor = domToPos(cm, sel.anchorNode, sel.anchorOffset);\n var curFocus = domToPos(cm, sel.focusNode, sel.focusOffset);\n if (curAnchor && !curAnchor.bad && curFocus && !curFocus.bad &&\n cmp(minPos(curAnchor, curFocus), from) == 0 &&\n cmp(maxPos(curAnchor, curFocus), to) == 0)\n { return }\n\n var view = cm.display.view;\n var start = (from.line >= cm.display.viewFrom && posToDOM(cm, from)) ||\n {node: view[0].measure.map[2], offset: 0};\n var end = to.line < cm.display.viewTo && posToDOM(cm, to);\n if (!end) {\n var measure = view[view.length - 1].measure;\n var map = measure.maps ? measure.maps[measure.maps.length - 1] : measure.map;\n end = {node: map[map.length - 1], offset: map[map.length - 2] - map[map.length - 3]};\n }\n\n if (!start || !end) {\n sel.removeAllRanges();\n return\n }\n\n var old = sel.rangeCount && sel.getRangeAt(0), rng;\n try { rng = range(start.node, start.offset, end.offset, end.node); }\n catch(e) {} // Our model of the DOM might be outdated, in which case the range we try to set can be impossible\n if (rng) {\n if (!gecko && cm.state.focused) {\n sel.collapse(start.node, start.offset);\n if (!rng.collapsed) {\n sel.removeAllRanges();\n sel.addRange(rng);\n }\n } else {\n sel.removeAllRanges();\n sel.addRange(rng);\n }\n if (old && sel.anchorNode == null) { sel.addRange(old); }\n else if (gecko) { this.startGracePeriod(); }\n }\n this.rememberSelection();\n };\n\n ContentEditableInput.prototype.startGracePeriod = function () {\n var this$1 = this;\n\n clearTimeout(this.gracePeriod);\n this.gracePeriod = setTimeout(function () {\n this$1.gracePeriod = false;\n if (this$1.selectionChanged())\n { this$1.cm.operation(function () { return this$1.cm.curOp.selectionChanged = true; }); }\n }, 20);\n };\n\n ContentEditableInput.prototype.showMultipleSelections = function (info) {\n removeChildrenAndAdd(this.cm.display.cursorDiv, info.cursors);\n removeChildrenAndAdd(this.cm.display.selectionDiv, info.selection);\n };\n\n ContentEditableInput.prototype.rememberSelection = function () {\n var sel = this.getSelection();\n this.lastAnchorNode = sel.anchorNode; this.lastAnchorOffset = sel.anchorOffset;\n this.lastFocusNode = sel.focusNode; this.lastFocusOffset = sel.focusOffset;\n };\n\n ContentEditableInput.prototype.selectionInEditor = function () {\n var sel = this.getSelection();\n if (!sel.rangeCount) { return false }\n var node = sel.getRangeAt(0).commonAncestorContainer;\n return contains(this.div, node)\n };\n\n ContentEditableInput.prototype.focus = function () {\n if (this.cm.options.readOnly != \"nocursor\") {\n if (!this.selectionInEditor() || document.activeElement != this.div)\n { this.showSelection(this.prepareSelection(), true); }\n this.div.focus();\n }\n };\n ContentEditableInput.prototype.blur = function () { this.div.blur(); };\n ContentEditableInput.prototype.getField = function () { return this.div };\n\n ContentEditableInput.prototype.supportsTouch = function () { return true };\n\n ContentEditableInput.prototype.receivedFocus = function () {\n var input = this;\n if (this.selectionInEditor())\n { this.pollSelection(); }\n else\n { runInOp(this.cm, function () { return input.cm.curOp.selectionChanged = true; }); }\n\n function poll() {\n if (input.cm.state.focused) {\n input.pollSelection();\n input.polling.set(input.cm.options.pollInterval, poll);\n }\n }\n this.polling.set(this.cm.options.pollInterval, poll);\n };\n\n ContentEditableInput.prototype.selectionChanged = function () {\n var sel = this.getSelection();\n return sel.anchorNode != this.lastAnchorNode || sel.anchorOffset != this.lastAnchorOffset ||\n sel.focusNode != this.lastFocusNode || sel.focusOffset != this.lastFocusOffset\n };\n\n ContentEditableInput.prototype.pollSelection = function () {\n if (this.readDOMTimeout != null || this.gracePeriod || !this.selectionChanged()) { return }\n var sel = this.getSelection(), cm = this.cm;\n // On Android Chrome (version 56, at least), backspacing into an\n // uneditable block element will put the cursor in that element,\n // and then, because it's not editable, hide the virtual keyboard.\n // Because Android doesn't allow us to actually detect backspace\n // presses in a sane way, this code checks for when that happens\n // and simulates a backspace press in this case.\n if (android && chrome && this.cm.display.gutterSpecs.length && isInGutter(sel.anchorNode)) {\n this.cm.triggerOnKeyDown({type: \"keydown\", keyCode: 8, preventDefault: Math.abs});\n this.blur();\n this.focus();\n return\n }\n if (this.composing) { return }\n this.rememberSelection();\n var anchor = domToPos(cm, sel.anchorNode, sel.anchorOffset);\n var head = domToPos(cm, sel.focusNode, sel.focusOffset);\n if (anchor && head) { runInOp(cm, function () {\n setSelection(cm.doc, simpleSelection(anchor, head), sel_dontScroll);\n if (anchor.bad || head.bad) { cm.curOp.selectionChanged = true; }\n }); }\n };\n\n ContentEditableInput.prototype.pollContent = function () {\n if (this.readDOMTimeout != null) {\n clearTimeout(this.readDOMTimeout);\n this.readDOMTimeout = null;\n }\n\n var cm = this.cm, display = cm.display, sel = cm.doc.sel.primary();\n var from = sel.from(), to = sel.to();\n if (from.ch == 0 && from.line > cm.firstLine())\n { from = Pos(from.line - 1, getLine(cm.doc, from.line - 1).length); }\n if (to.ch == getLine(cm.doc, to.line).text.length && to.line < cm.lastLine())\n { to = Pos(to.line + 1, 0); }\n if (from.line < display.viewFrom || to.line > display.viewTo - 1) { return false }\n\n var fromIndex, fromLine, fromNode;\n if (from.line == display.viewFrom || (fromIndex = findViewIndex(cm, from.line)) == 0) {\n fromLine = lineNo(display.view[0].line);\n fromNode = display.view[0].node;\n } else {\n fromLine = lineNo(display.view[fromIndex].line);\n fromNode = display.view[fromIndex - 1].node.nextSibling;\n }\n var toIndex = findViewIndex(cm, to.line);\n var toLine, toNode;\n if (toIndex == display.view.length - 1) {\n toLine = display.viewTo - 1;\n toNode = display.lineDiv.lastChild;\n } else {\n toLine = lineNo(display.view[toIndex + 1].line) - 1;\n toNode = display.view[toIndex + 1].node.previousSibling;\n }\n\n if (!fromNode) { return false }\n var newText = cm.doc.splitLines(domTextBetween(cm, fromNode, toNode, fromLine, toLine));\n var oldText = getBetween(cm.doc, Pos(fromLine, 0), Pos(toLine, getLine(cm.doc, toLine).text.length));\n while (newText.length > 1 && oldText.length > 1) {\n if (lst(newText) == lst(oldText)) { newText.pop(); oldText.pop(); toLine--; }\n else if (newText[0] == oldText[0]) { newText.shift(); oldText.shift(); fromLine++; }\n else { break }\n }\n\n var cutFront = 0, cutEnd = 0;\n var newTop = newText[0], oldTop = oldText[0], maxCutFront = Math.min(newTop.length, oldTop.length);\n while (cutFront < maxCutFront && newTop.charCodeAt(cutFront) == oldTop.charCodeAt(cutFront))\n { ++cutFront; }\n var newBot = lst(newText), oldBot = lst(oldText);\n var maxCutEnd = Math.min(newBot.length - (newText.length == 1 ? cutFront : 0),\n oldBot.length - (oldText.length == 1 ? cutFront : 0));\n while (cutEnd < maxCutEnd &&\n newBot.charCodeAt(newBot.length - cutEnd - 1) == oldBot.charCodeAt(oldBot.length - cutEnd - 1))\n { ++cutEnd; }\n // Try to move start of change to start of selection if ambiguous\n if (newText.length == 1 && oldText.length == 1 && fromLine == from.line) {\n while (cutFront && cutFront > from.ch &&\n newBot.charCodeAt(newBot.length - cutEnd - 1) == oldBot.charCodeAt(oldBot.length - cutEnd - 1)) {\n cutFront--;\n cutEnd++;\n }\n }\n\n newText[newText.length - 1] = newBot.slice(0, newBot.length - cutEnd).replace(/^\\u200b+/, \"\");\n newText[0] = newText[0].slice(cutFront).replace(/\\u200b+$/, \"\");\n\n var chFrom = Pos(fromLine, cutFront);\n var chTo = Pos(toLine, oldText.length ? lst(oldText).length - cutEnd : 0);\n if (newText.length > 1 || newText[0] || cmp(chFrom, chTo)) {\n replaceRange(cm.doc, newText, chFrom, chTo, \"+input\");\n return true\n }\n };\n\n ContentEditableInput.prototype.ensurePolled = function () {\n this.forceCompositionEnd();\n };\n ContentEditableInput.prototype.reset = function () {\n this.forceCompositionEnd();\n };\n ContentEditableInput.prototype.forceCompositionEnd = function () {\n if (!this.composing) { return }\n clearTimeout(this.readDOMTimeout);\n this.composing = null;\n this.updateFromDOM();\n this.div.blur();\n this.div.focus();\n };\n ContentEditableInput.prototype.readFromDOMSoon = function () {\n var this$1 = this;\n\n if (this.readDOMTimeout != null) { return }\n this.readDOMTimeout = setTimeout(function () {\n this$1.readDOMTimeout = null;\n if (this$1.composing) {\n if (this$1.composing.done) { this$1.composing = null; }\n else { return }\n }\n this$1.updateFromDOM();\n }, 80);\n };\n\n ContentEditableInput.prototype.updateFromDOM = function () {\n var this$1 = this;\n\n if (this.cm.isReadOnly() || !this.pollContent())\n { runInOp(this.cm, function () { return regChange(this$1.cm); }); }\n };\n\n ContentEditableInput.prototype.setUneditable = function (node) {\n node.contentEditable = \"false\";\n };\n\n ContentEditableInput.prototype.onKeyPress = function (e) {\n if (e.charCode == 0 || this.composing) { return }\n e.preventDefault();\n if (!this.cm.isReadOnly())\n { operation(this.cm, applyTextInput)(this.cm, String.fromCharCode(e.charCode == null ? e.keyCode : e.charCode), 0); }\n };\n\n ContentEditableInput.prototype.readOnlyChanged = function (val) {\n this.div.contentEditable = String(val != \"nocursor\");\n };\n\n ContentEditableInput.prototype.onContextMenu = function () {};\n ContentEditableInput.prototype.resetPosition = function () {};\n\n ContentEditableInput.prototype.needsContentAttribute = true;\n\n function posToDOM(cm, pos) {\n var view = findViewForLine(cm, pos.line);\n if (!view || view.hidden) { return null }\n var line = getLine(cm.doc, pos.line);\n var info = mapFromLineView(view, line, pos.line);\n\n var order = getOrder(line, cm.doc.direction), side = \"left\";\n if (order) {\n var partPos = getBidiPartAt(order, pos.ch);\n side = partPos % 2 ? \"right\" : \"left\";\n }\n var result = nodeAndOffsetInLineMap(info.map, pos.ch, side);\n result.offset = result.collapse == \"right\" ? result.end : result.start;\n return result\n }\n\n function isInGutter(node) {\n for (var scan = node; scan; scan = scan.parentNode)\n { if (/CodeMirror-gutter-wrapper/.test(scan.className)) { return true } }\n return false\n }\n\n function badPos(pos, bad) { if (bad) { pos.bad = true; } return pos }\n\n function domTextBetween(cm, from, to, fromLine, toLine) {\n var text = \"\", closing = false, lineSep = cm.doc.lineSeparator(), extraLinebreak = false;\n function recognizeMarker(id) { return function (marker) { return marker.id == id; } }\n function close() {\n if (closing) {\n text += lineSep;\n if (extraLinebreak) { text += lineSep; }\n closing = extraLinebreak = false;\n }\n }\n function addText(str) {\n if (str) {\n close();\n text += str;\n }\n }\n function walk(node) {\n if (node.nodeType == 1) {\n var cmText = node.getAttribute(\"cm-text\");\n if (cmText) {\n addText(cmText);\n return\n }\n var markerID = node.getAttribute(\"cm-marker\"), range;\n if (markerID) {\n var found = cm.findMarks(Pos(fromLine, 0), Pos(toLine + 1, 0), recognizeMarker(+markerID));\n if (found.length && (range = found[0].find(0)))\n { addText(getBetween(cm.doc, range.from, range.to).join(lineSep)); }\n return\n }\n if (node.getAttribute(\"contenteditable\") == \"false\") { return }\n var isBlock = /^(pre|div|p|li|table|br)$/i.test(node.nodeName);\n if (!/^br$/i.test(node.nodeName) && node.textContent.length == 0) { return }\n\n if (isBlock) { close(); }\n for (var i = 0; i < node.childNodes.length; i++)\n { walk(node.childNodes[i]); }\n\n if (/^(pre|p)$/i.test(node.nodeName)) { extraLinebreak = true; }\n if (isBlock) { closing = true; }\n } else if (node.nodeType == 3) {\n addText(node.nodeValue.replace(/\\u200b/g, \"\").replace(/\\u00a0/g, \" \"));\n }\n }\n for (;;) {\n walk(from);\n if (from == to) { break }\n from = from.nextSibling;\n extraLinebreak = false;\n }\n return text\n }\n\n function domToPos(cm, node, offset) {\n var lineNode;\n if (node == cm.display.lineDiv) {\n lineNode = cm.display.lineDiv.childNodes[offset];\n if (!lineNode) { return badPos(cm.clipPos(Pos(cm.display.viewTo - 1)), true) }\n node = null; offset = 0;\n } else {\n for (lineNode = node;; lineNode = lineNode.parentNode) {\n if (!lineNode || lineNode == cm.display.lineDiv) { return null }\n if (lineNode.parentNode && lineNode.parentNode == cm.display.lineDiv) { break }\n }\n }\n for (var i = 0; i < cm.display.view.length; i++) {\n var lineView = cm.display.view[i];\n if (lineView.node == lineNode)\n { return locateNodeInLineView(lineView, node, offset) }\n }\n }\n\n function locateNodeInLineView(lineView, node, offset) {\n var wrapper = lineView.text.firstChild, bad = false;\n if (!node || !contains(wrapper, node)) { return badPos(Pos(lineNo(lineView.line), 0), true) }\n if (node == wrapper) {\n bad = true;\n node = wrapper.childNodes[offset];\n offset = 0;\n if (!node) {\n var line = lineView.rest ? lst(lineView.rest) : lineView.line;\n return badPos(Pos(lineNo(line), line.text.length), bad)\n }\n }\n\n var textNode = node.nodeType == 3 ? node : null, topNode = node;\n if (!textNode && node.childNodes.length == 1 && node.firstChild.nodeType == 3) {\n textNode = node.firstChild;\n if (offset) { offset = textNode.nodeValue.length; }\n }\n while (topNode.parentNode != wrapper) { topNode = topNode.parentNode; }\n var measure = lineView.measure, maps = measure.maps;\n\n function find(textNode, topNode, offset) {\n for (var i = -1; i < (maps ? maps.length : 0); i++) {\n var map = i < 0 ? measure.map : maps[i];\n for (var j = 0; j < map.length; j += 3) {\n var curNode = map[j + 2];\n if (curNode == textNode || curNode == topNode) {\n var line = lineNo(i < 0 ? lineView.line : lineView.rest[i]);\n var ch = map[j] + offset;\n if (offset < 0 || curNode != textNode) { ch = map[j + (offset ? 1 : 0)]; }\n return Pos(line, ch)\n }\n }\n }\n }\n var found = find(textNode, topNode, offset);\n if (found) { return badPos(found, bad) }\n\n // FIXME this is all really shaky. might handle the few cases it needs to handle, but likely to cause problems\n for (var after = topNode.nextSibling, dist = textNode ? textNode.nodeValue.length - offset : 0; after; after = after.nextSibling) {\n found = find(after, after.firstChild, 0);\n if (found)\n { return badPos(Pos(found.line, found.ch - dist), bad) }\n else\n { dist += after.textContent.length; }\n }\n for (var before = topNode.previousSibling, dist$1 = offset; before; before = before.previousSibling) {\n found = find(before, before.firstChild, -1);\n if (found)\n { return badPos(Pos(found.line, found.ch + dist$1), bad) }\n else\n { dist$1 += before.textContent.length; }\n }\n }\n\n // TEXTAREA INPUT STYLE\n\n var TextareaInput = function(cm) {\n this.cm = cm;\n // See input.poll and input.reset\n this.prevInput = \"\";\n\n // Flag that indicates whether we expect input to appear real soon\n // now (after some event like 'keypress' or 'input') and are\n // polling intensively.\n this.pollingFast = false;\n // Self-resetting timeout for the poller\n this.polling = new Delayed();\n // Used to work around IE issue with selection being forgotten when focus moves away from textarea\n this.hasSelection = false;\n this.composing = null;\n };\n\n TextareaInput.prototype.init = function (display) {\n var this$1 = this;\n\n var input = this, cm = this.cm;\n this.createField(display);\n var te = this.textarea;\n\n display.wrapper.insertBefore(this.wrapper, display.wrapper.firstChild);\n\n // Needed to hide big blue blinking cursor on Mobile Safari (doesn't seem to work in iOS 8 anymore)\n if (ios) { te.style.width = \"0px\"; }\n\n on(te, \"input\", function () {\n if (ie && ie_version >= 9 && this$1.hasSelection) { this$1.hasSelection = null; }\n input.poll();\n });\n\n on(te, \"paste\", function (e) {\n if (signalDOMEvent(cm, e) || handlePaste(e, cm)) { return }\n\n cm.state.pasteIncoming = +new Date;\n input.fastPoll();\n });\n\n function prepareCopyCut(e) {\n if (signalDOMEvent(cm, e)) { return }\n if (cm.somethingSelected()) {\n setLastCopied({lineWise: false, text: cm.getSelections()});\n } else if (!cm.options.lineWiseCopyCut) {\n return\n } else {\n var ranges = copyableRanges(cm);\n setLastCopied({lineWise: true, text: ranges.text});\n if (e.type == \"cut\") {\n cm.setSelections(ranges.ranges, null, sel_dontScroll);\n } else {\n input.prevInput = \"\";\n te.value = ranges.text.join(\"\\n\");\n selectInput(te);\n }\n }\n if (e.type == \"cut\") { cm.state.cutIncoming = +new Date; }\n }\n on(te, \"cut\", prepareCopyCut);\n on(te, \"copy\", prepareCopyCut);\n\n on(display.scroller, \"paste\", function (e) {\n if (eventInWidget(display, e) || signalDOMEvent(cm, e)) { return }\n if (!te.dispatchEvent) {\n cm.state.pasteIncoming = +new Date;\n input.focus();\n return\n }\n\n // Pass the `paste` event to the textarea so it's handled by its event listener.\n var event = new Event(\"paste\");\n event.clipboardData = e.clipboardData;\n te.dispatchEvent(event);\n });\n\n // Prevent normal selection in the editor (we handle our own)\n on(display.lineSpace, \"selectstart\", function (e) {\n if (!eventInWidget(display, e)) { e_preventDefault(e); }\n });\n\n on(te, \"compositionstart\", function () {\n var start = cm.getCursor(\"from\");\n if (input.composing) { input.composing.range.clear(); }\n input.composing = {\n start: start,\n range: cm.markText(start, cm.getCursor(\"to\"), {className: \"CodeMirror-composing\"})\n };\n });\n on(te, \"compositionend\", function () {\n if (input.composing) {\n input.poll();\n input.composing.range.clear();\n input.composing = null;\n }\n });\n };\n\n TextareaInput.prototype.createField = function (_display) {\n // Wraps and hides input textarea\n this.wrapper = hiddenTextarea();\n // The semihidden textarea that is focused when the editor is\n // focused, and receives input.\n this.textarea = this.wrapper.firstChild;\n };\n\n TextareaInput.prototype.screenReaderLabelChanged = function (label) {\n // Label for screenreaders, accessibility\n if(label) {\n this.textarea.setAttribute('aria-label', label);\n } else {\n this.textarea.removeAttribute('aria-label');\n }\n };\n\n TextareaInput.prototype.prepareSelection = function () {\n // Redraw the selection and/or cursor\n var cm = this.cm, display = cm.display, doc = cm.doc;\n var result = prepareSelection(cm);\n\n // Move the hidden textarea near the cursor to prevent scrolling artifacts\n if (cm.options.moveInputWithCursor) {\n var headPos = cursorCoords(cm, doc.sel.primary().head, \"div\");\n var wrapOff = display.wrapper.getBoundingClientRect(), lineOff = display.lineDiv.getBoundingClientRect();\n result.teTop = Math.max(0, Math.min(display.wrapper.clientHeight - 10,\n headPos.top + lineOff.top - wrapOff.top));\n result.teLeft = Math.max(0, Math.min(display.wrapper.clientWidth - 10,\n headPos.left + lineOff.left - wrapOff.left));\n }\n\n return result\n };\n\n TextareaInput.prototype.showSelection = function (drawn) {\n var cm = this.cm, display = cm.display;\n removeChildrenAndAdd(display.cursorDiv, drawn.cursors);\n removeChildrenAndAdd(display.selectionDiv, drawn.selection);\n if (drawn.teTop != null) {\n this.wrapper.style.top = drawn.teTop + \"px\";\n this.wrapper.style.left = drawn.teLeft + \"px\";\n }\n };\n\n // Reset the input to correspond to the selection (or to be empty,\n // when not typing and nothing is selected)\n TextareaInput.prototype.reset = function (typing) {\n if (this.contextMenuPending || this.composing) { return }\n var cm = this.cm;\n if (cm.somethingSelected()) {\n this.prevInput = \"\";\n var content = cm.getSelection();\n this.textarea.value = content;\n if (cm.state.focused) { selectInput(this.textarea); }\n if (ie && ie_version >= 9) { this.hasSelection = content; }\n } else if (!typing) {\n this.prevInput = this.textarea.value = \"\";\n if (ie && ie_version >= 9) { this.hasSelection = null; }\n }\n };\n\n TextareaInput.prototype.getField = function () { return this.textarea };\n\n TextareaInput.prototype.supportsTouch = function () { return false };\n\n TextareaInput.prototype.focus = function () {\n if (this.cm.options.readOnly != \"nocursor\" && (!mobile || activeElt() != this.textarea)) {\n try { this.textarea.focus(); }\n catch (e) {} // IE8 will throw if the textarea is display: none or not in DOM\n }\n };\n\n TextareaInput.prototype.blur = function () { this.textarea.blur(); };\n\n TextareaInput.prototype.resetPosition = function () {\n this.wrapper.style.top = this.wrapper.style.left = 0;\n };\n\n TextareaInput.prototype.receivedFocus = function () { this.slowPoll(); };\n\n // Poll for input changes, using the normal rate of polling. This\n // runs as long as the editor is focused.\n TextareaInput.prototype.slowPoll = function () {\n var this$1 = this;\n\n if (this.pollingFast) { return }\n this.polling.set(this.cm.options.pollInterval, function () {\n this$1.poll();\n if (this$1.cm.state.focused) { this$1.slowPoll(); }\n });\n };\n\n // When an event has just come in that is likely to add or change\n // something in the input textarea, we poll faster, to ensure that\n // the change appears on the screen quickly.\n TextareaInput.prototype.fastPoll = function () {\n var missed = false, input = this;\n input.pollingFast = true;\n function p() {\n var changed = input.poll();\n if (!changed && !missed) {missed = true; input.polling.set(60, p);}\n else {input.pollingFast = false; input.slowPoll();}\n }\n input.polling.set(20, p);\n };\n\n // Read input from the textarea, and update the document to match.\n // When something is selected, it is present in the textarea, and\n // selected (unless it is huge, in which case a placeholder is\n // used). When nothing is selected, the cursor sits after previously\n // seen text (can be empty), which is stored in prevInput (we must\n // not reset the textarea when typing, because that breaks IME).\n TextareaInput.prototype.poll = function () {\n var this$1 = this;\n\n var cm = this.cm, input = this.textarea, prevInput = this.prevInput;\n // Since this is called a *lot*, try to bail out as cheaply as\n // possible when it is clear that nothing happened. hasSelection\n // will be the case when there is a lot of text in the textarea,\n // in which case reading its value would be expensive.\n if (this.contextMenuPending || !cm.state.focused ||\n (hasSelection(input) && !prevInput && !this.composing) ||\n cm.isReadOnly() || cm.options.disableInput || cm.state.keySeq)\n { return false }\n\n var text = input.value;\n // If nothing changed, bail.\n if (text == prevInput && !cm.somethingSelected()) { return false }\n // Work around nonsensical selection resetting in IE9/10, and\n // inexplicable appearance of private area unicode characters on\n // some key combos in Mac (#2689).\n if (ie && ie_version >= 9 && this.hasSelection === text ||\n mac && /[\\uf700-\\uf7ff]/.test(text)) {\n cm.display.input.reset();\n return false\n }\n\n if (cm.doc.sel == cm.display.selForContextMenu) {\n var first = text.charCodeAt(0);\n if (first == 0x200b && !prevInput) { prevInput = \"\\u200b\"; }\n if (first == 0x21da) { this.reset(); return this.cm.execCommand(\"undo\") }\n }\n // Find the part of the input that is actually new\n var same = 0, l = Math.min(prevInput.length, text.length);\n while (same < l && prevInput.charCodeAt(same) == text.charCodeAt(same)) { ++same; }\n\n runInOp(cm, function () {\n applyTextInput(cm, text.slice(same), prevInput.length - same,\n null, this$1.composing ? \"*compose\" : null);\n\n // Don't leave long text in the textarea, since it makes further polling slow\n if (text.length > 1000 || text.indexOf(\"\\n\") > -1) { input.value = this$1.prevInput = \"\"; }\n else { this$1.prevInput = text; }\n\n if (this$1.composing) {\n this$1.composing.range.clear();\n this$1.composing.range = cm.markText(this$1.composing.start, cm.getCursor(\"to\"),\n {className: \"CodeMirror-composing\"});\n }\n });\n return true\n };\n\n TextareaInput.prototype.ensurePolled = function () {\n if (this.pollingFast && this.poll()) { this.pollingFast = false; }\n };\n\n TextareaInput.prototype.onKeyPress = function () {\n if (ie && ie_version >= 9) { this.hasSelection = null; }\n this.fastPoll();\n };\n\n TextareaInput.prototype.onContextMenu = function (e) {\n var input = this, cm = input.cm, display = cm.display, te = input.textarea;\n if (input.contextMenuPending) { input.contextMenuPending(); }\n var pos = posFromMouse(cm, e), scrollPos = display.scroller.scrollTop;\n if (!pos || presto) { return } // Opera is difficult.\n\n // Reset the current text selection only if the click is done outside of the selection\n // and 'resetSelectionOnContextMenu' option is true.\n var reset = cm.options.resetSelectionOnContextMenu;\n if (reset && cm.doc.sel.contains(pos) == -1)\n { operation(cm, setSelection)(cm.doc, simpleSelection(pos), sel_dontScroll); }\n\n var oldCSS = te.style.cssText, oldWrapperCSS = input.wrapper.style.cssText;\n var wrapperBox = input.wrapper.offsetParent.getBoundingClientRect();\n input.wrapper.style.cssText = \"position: static\";\n te.style.cssText = \"position: absolute; width: 30px; height: 30px;\\n top: \" + (e.clientY - wrapperBox.top - 5) + \"px; left: \" + (e.clientX - wrapperBox.left - 5) + \"px;\\n z-index: 1000; background: \" + (ie ? \"rgba(255, 255, 255, .05)\" : \"transparent\") + \";\\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\";\n var oldScrollY;\n if (webkit) { oldScrollY = window.scrollY; } // Work around Chrome issue (#2712)\n display.input.focus();\n if (webkit) { window.scrollTo(null, oldScrollY); }\n display.input.reset();\n // Adds \"Select all\" to context menu in FF\n if (!cm.somethingSelected()) { te.value = input.prevInput = \" \"; }\n input.contextMenuPending = rehide;\n display.selForContextMenu = cm.doc.sel;\n clearTimeout(display.detectingSelectAll);\n\n // Select-all will be greyed out if there's nothing to select, so\n // this adds a zero-width space so that we can later check whether\n // it got selected.\n function prepareSelectAllHack() {\n if (te.selectionStart != null) {\n var selected = cm.somethingSelected();\n var extval = \"\\u200b\" + (selected ? te.value : \"\");\n te.value = \"\\u21da\"; // Used to catch context-menu undo\n te.value = extval;\n input.prevInput = selected ? \"\" : \"\\u200b\";\n te.selectionStart = 1; te.selectionEnd = extval.length;\n // Re-set this, in case some other handler touched the\n // selection in the meantime.\n display.selForContextMenu = cm.doc.sel;\n }\n }\n function rehide() {\n if (input.contextMenuPending != rehide) { return }\n input.contextMenuPending = false;\n input.wrapper.style.cssText = oldWrapperCSS;\n te.style.cssText = oldCSS;\n if (ie && ie_version < 9) { display.scrollbars.setScrollTop(display.scroller.scrollTop = scrollPos); }\n\n // Try to detect the user choosing select-all\n if (te.selectionStart != null) {\n if (!ie || (ie && ie_version < 9)) { prepareSelectAllHack(); }\n var i = 0, poll = function () {\n if (display.selForContextMenu == cm.doc.sel && te.selectionStart == 0 &&\n te.selectionEnd > 0 && input.prevInput == \"\\u200b\") {\n operation(cm, selectAll)(cm);\n } else if (i++ < 10) {\n display.detectingSelectAll = setTimeout(poll, 500);\n } else {\n display.selForContextMenu = null;\n display.input.reset();\n }\n };\n display.detectingSelectAll = setTimeout(poll, 200);\n }\n }\n\n if (ie && ie_version >= 9) { prepareSelectAllHack(); }\n if (captureRightClick) {\n e_stop(e);\n var mouseup = function () {\n off(window, \"mouseup\", mouseup);\n setTimeout(rehide, 20);\n };\n on(window, \"mouseup\", mouseup);\n } else {\n setTimeout(rehide, 50);\n }\n };\n\n TextareaInput.prototype.readOnlyChanged = function (val) {\n if (!val) { this.reset(); }\n this.textarea.disabled = val == \"nocursor\";\n this.textarea.readOnly = !!val;\n };\n\n TextareaInput.prototype.setUneditable = function () {};\n\n TextareaInput.prototype.needsContentAttribute = false;\n\n function fromTextArea(textarea, options) {\n options = options ? copyObj(options) : {};\n options.value = textarea.value;\n if (!options.tabindex && textarea.tabIndex)\n { options.tabindex = textarea.tabIndex; }\n if (!options.placeholder && textarea.placeholder)\n { options.placeholder = textarea.placeholder; }\n // Set autofocus to true if this textarea is focused, or if it has\n // autofocus and no other element is focused.\n if (options.autofocus == null) {\n var hasFocus = activeElt();\n options.autofocus = hasFocus == textarea ||\n textarea.getAttribute(\"autofocus\") != null && hasFocus == document.body;\n }\n\n function save() {textarea.value = cm.getValue();}\n\n var realSubmit;\n if (textarea.form) {\n on(textarea.form, \"submit\", save);\n // Deplorable hack to make the submit method do the right thing.\n if (!options.leaveSubmitMethodAlone) {\n var form = textarea.form;\n realSubmit = form.submit;\n try {\n var wrappedSubmit = form.submit = function () {\n save();\n form.submit = realSubmit;\n form.submit();\n form.submit = wrappedSubmit;\n };\n } catch(e) {}\n }\n }\n\n options.finishInit = function (cm) {\n cm.save = save;\n cm.getTextArea = function () { return textarea; };\n cm.toTextArea = function () {\n cm.toTextArea = isNaN; // Prevent this from being ran twice\n save();\n textarea.parentNode.removeChild(cm.getWrapperElement());\n textarea.style.display = \"\";\n if (textarea.form) {\n off(textarea.form, \"submit\", save);\n if (!options.leaveSubmitMethodAlone && typeof textarea.form.submit == \"function\")\n { textarea.form.submit = realSubmit; }\n }\n };\n };\n\n textarea.style.display = \"none\";\n var cm = CodeMirror(function (node) { return textarea.parentNode.insertBefore(node, textarea.nextSibling); },\n options);\n return cm\n }\n\n function addLegacyProps(CodeMirror) {\n CodeMirror.off = off;\n CodeMirror.on = on;\n CodeMirror.wheelEventPixels = wheelEventPixels;\n CodeMirror.Doc = Doc;\n CodeMirror.splitLines = splitLinesAuto;\n CodeMirror.countColumn = countColumn;\n CodeMirror.findColumn = findColumn;\n CodeMirror.isWordChar = isWordCharBasic;\n CodeMirror.Pass = Pass;\n CodeMirror.signal = signal;\n CodeMirror.Line = Line;\n CodeMirror.changeEnd = changeEnd;\n CodeMirror.scrollbarModel = scrollbarModel;\n CodeMirror.Pos = Pos;\n CodeMirror.cmpPos = cmp;\n CodeMirror.modes = modes;\n CodeMirror.mimeModes = mimeModes;\n CodeMirror.resolveMode = resolveMode;\n CodeMirror.getMode = getMode;\n CodeMirror.modeExtensions = modeExtensions;\n CodeMirror.extendMode = extendMode;\n CodeMirror.copyState = copyState;\n CodeMirror.startState = startState;\n CodeMirror.innerMode = innerMode;\n CodeMirror.commands = commands;\n CodeMirror.keyMap = keyMap;\n CodeMirror.keyName = keyName;\n CodeMirror.isModifierKey = isModifierKey;\n CodeMirror.lookupKey = lookupKey;\n CodeMirror.normalizeKeyMap = normalizeKeyMap;\n CodeMirror.StringStream = StringStream;\n CodeMirror.SharedTextMarker = SharedTextMarker;\n CodeMirror.TextMarker = TextMarker;\n CodeMirror.LineWidget = LineWidget;\n CodeMirror.e_preventDefault = e_preventDefault;\n CodeMirror.e_stopPropagation = e_stopPropagation;\n CodeMirror.e_stop = e_stop;\n CodeMirror.addClass = addClass;\n CodeMirror.contains = contains;\n CodeMirror.rmClass = rmClass;\n CodeMirror.keyNames = keyNames;\n }\n\n // EDITOR CONSTRUCTOR\n\n defineOptions(CodeMirror);\n\n addEditorMethods(CodeMirror);\n\n // Set up methods on CodeMirror's prototype to redirect to the editor's document.\n var dontDelegate = \"iter insert remove copy getEditor constructor\".split(\" \");\n for (var prop in Doc.prototype) { if (Doc.prototype.hasOwnProperty(prop) && indexOf(dontDelegate, prop) < 0)\n { CodeMirror.prototype[prop] = (function(method) {\n return function() {return method.apply(this.doc, arguments)}\n })(Doc.prototype[prop]); } }\n\n eventMixin(Doc);\n CodeMirror.inputStyles = {\"textarea\": TextareaInput, \"contenteditable\": ContentEditableInput};\n\n // Extra arguments are stored as the mode's dependencies, which is\n // used by (legacy) mechanisms like loadmode.js to automatically\n // load a mode. (Preferred mechanism is the require/define calls.)\n CodeMirror.defineMode = function(name/*, mode, …*/) {\n if (!CodeMirror.defaults.mode && name != \"null\") { CodeMirror.defaults.mode = name; }\n defineMode.apply(this, arguments);\n };\n\n CodeMirror.defineMIME = defineMIME;\n\n // Minimal default mode.\n CodeMirror.defineMode(\"null\", function () { return ({token: function (stream) { return stream.skipToEnd(); }}); });\n CodeMirror.defineMIME(\"text/plain\", \"null\");\n\n // EXTENSIONS\n\n CodeMirror.defineExtension = function (name, func) {\n CodeMirror.prototype[name] = func;\n };\n CodeMirror.defineDocExtension = function (name, func) {\n Doc.prototype[name] = func;\n };\n\n CodeMirror.fromTextArea = fromTextArea;\n\n addLegacyProps(CodeMirror);\n\n CodeMirror.version = \"5.58.1\";\n\n return CodeMirror;\n\n})));\n","var getBuiltIn = require('../internals/get-built-in');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;\n};\n","var __spreadArrays = (this && this.__spreadArrays) || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n};\nimport Swal from 'sweetalert2';\nvar VueSweetalert2 = (function () {\n function VueSweetalert2() {\n }\n VueSweetalert2.install = function (vue, options) {\n var swalLocalInstance = options ? Swal.mixin(options) : Swal;\n var swalFunction = function () {\n var _a;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return (_a = swalLocalInstance.fire).call.apply(_a, __spreadArrays([swalLocalInstance], args));\n };\n var methodName;\n for (methodName in swalLocalInstance) {\n if (Object.prototype.hasOwnProperty.call(swalLocalInstance, methodName) &&\n typeof swalLocalInstance[methodName] === 'function') {\n swalFunction[methodName] = (function (method) {\n return function () {\n var _a;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return (_a = swalLocalInstance[method]).call.apply(_a, __spreadArrays([swalLocalInstance], args));\n };\n })(methodName);\n }\n }\n vue['swal'] = swalFunction;\n if (!Object.prototype.hasOwnProperty.call(vue, '$swal')) {\n vue.prototype.$swal = swalFunction;\n }\n };\n return VueSweetalert2;\n}());\nexport default VueSweetalert2;\n//# sourceMappingURL=index.js.map","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var e=function(){return(e=Object.assign||function(e){for(var t,r=1,s=arguments.length;r arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nimport { isArray, isPlainObject } from './inspect';\nimport { keys } from './object';\nexport var cloneDeep = function cloneDeep(obj) {\n var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : obj;\n\n if (isArray(obj)) {\n return obj.reduce(function (result, val) {\n return [].concat(_toConsumableArray(result), [cloneDeep(val, val)]);\n }, []);\n }\n\n if (isPlainObject(obj)) {\n return keys(obj).reduce(function (result, key) {\n return _objectSpread(_objectSpread({}, result), {}, _defineProperty({}, key, cloneDeep(obj[key], obj[key])));\n }, {});\n }\n\n return defaultValue;\n};\nexport default cloneDeep;","var _deepFreeze;\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_ALERT, NAME_AVATAR, NAME_BADGE, NAME_BUTTON, NAME_BUTTON_CLOSE, NAME_CALENDAR, NAME_CARD_SUB_TITLE, NAME_CAROUSEL, NAME_DROPDOWN, NAME_FORM_DATEPICKER, NAME_FORM_FILE, NAME_FORM_RATING, NAME_FORM_SPINBUTTON, NAME_FORM_TAG, NAME_FORM_TAGS, NAME_FORM_TEXT, NAME_FORM_TIMEPICKER, NAME_IMG, NAME_IMG_LAZY, NAME_INPUT_GROUP, NAME_JUMBOTRON, NAME_LINK, NAME_LIST_GROUP_ITEM, NAME_MODAL, NAME_NAVBAR, NAME_NAVBAR_TOGGLE, NAME_PAGINATION, NAME_PAGINATION_NAV, NAME_POPOVER, NAME_PROGRESS, NAME_PROGRESS_BAR, NAME_SPINNER, NAME_SKELETON, NAME_SKELETON_ICON, NAME_SIDEBAR, NAME_TABLE, NAME_TIME, NAME_TOAST, NAME_TOASTER, NAME_TOOLTIP } from '../constants/components';\nimport { deepFreeze } from './object'; // --- General BootstrapVue configuration ---\n// NOTES\n//\n// The global config SHALL NOT be used to set defaults for Boolean props, as the props\n// would loose their semantic meaning, and force people writing 3rd party components to\n// explicitly set a true or false value using the v-bind syntax on boolean props\n//\n// Supported config values (depending on the prop's supported type(s)):\n// `String`, `Array`, `Object`, `null` or `undefined`\n// BREAKPOINT DEFINITIONS\n//\n// Some components (`` and ``) generate props based on breakpoints,\n// and this occurs when the component is first loaded (evaluated), which may happen\n// before the config is created/modified\n//\n// To get around this we make these components' props async (lazy evaluation)\n// The component definition is only called/executed when the first access to the\n// component is used (and cached on subsequent uses)\n// PROP DEFAULTS\n//\n// For default values on props, we use the default value factory function approach so\n// that the default values are pulled in at each component instantiation\n//\n// props: {\n// variant: {\n// type: String,\n// default: () => getConfigComponent('BAlert', 'variant')\n// }\n// }\n//\n// We also provide a cached getter for breakpoints, which are \"frozen\" on first access\n// prettier-ignore\n\nexport default deepFreeze((_deepFreeze = {\n // Breakpoints\n breakpoints: ['xs', 'sm', 'md', 'lg', 'xl'],\n // Form controls\n formControls: {\n size: undefined\n }\n}, _defineProperty(_deepFreeze, NAME_ALERT, {\n dismissLabel: 'Close',\n variant: 'info'\n}), _defineProperty(_deepFreeze, NAME_AVATAR, {\n variant: 'secondary',\n badgeVariant: 'primary'\n}), _defineProperty(_deepFreeze, NAME_BADGE, {\n variant: 'secondary'\n}), _defineProperty(_deepFreeze, NAME_BUTTON, {\n size: undefined,\n variant: 'secondary'\n}), _defineProperty(_deepFreeze, NAME_BUTTON_CLOSE, {\n content: '×',\n // `textVariant` is `undefined` to inherit the current text color\n textVariant: undefined,\n ariaLabel: 'Close'\n}), _defineProperty(_deepFreeze, NAME_CALENDAR, {\n selectedVariant: 'primary',\n // Defaults to `selectedVariant`\n todayVariant: undefined,\n navButtonVariant: 'secondary',\n // BFormDate will choose these first if not provided in BFormDate section\n labelPrevDecade: 'Previous decade',\n labelPrevYear: 'Previous year',\n labelPrevMonth: 'Previous month',\n labelCurrentMonth: 'Current month',\n labelNextMonth: 'Next month',\n labelNextYear: 'Next year',\n labelNextDecade: 'Next decade',\n labelToday: 'Today',\n labelSelected: 'Selected date',\n labelNoDateSelected: 'No date selected',\n labelCalendar: 'Calendar',\n labelNav: 'Calendar navigation',\n labelHelp: 'Use cursor keys to navigate calendar dates'\n}), _defineProperty(_deepFreeze, NAME_CARD_SUB_TITLE, {\n // `` and `` also inherit this prop\n subTitleTextVariant: 'muted'\n}), _defineProperty(_deepFreeze, NAME_CAROUSEL, {\n labelPrev: 'Previous Slide',\n labelNext: 'Next Slide',\n labelGotoSlide: 'Goto Slide',\n labelIndicators: 'Select a slide to display'\n}), _defineProperty(_deepFreeze, NAME_DROPDOWN, {\n toggleText: 'Toggle Dropdown',\n size: undefined,\n variant: 'secondary',\n splitVariant: undefined\n}), _defineProperty(_deepFreeze, NAME_FORM_DATEPICKER, {\n // BFormDatepicker will choose from BCalendar first if not provided here\n selectedVariant: undefined,\n todayVariant: undefined,\n navButtonVariant: undefined,\n labelPrevDecade: undefined,\n labelPrevYear: undefined,\n labelPrevMonth: undefined,\n labelCurrentMonth: undefined,\n labelNextMonth: undefined,\n labelNextYear: undefined,\n labelNextDecade: undefined,\n labelToday: undefined,\n labelSelected: undefined,\n labelNoDateSelected: undefined,\n labelCalendar: undefined,\n labelNav: undefined,\n labelHelp: undefined,\n // These props are specific to BFormDatepicker\n labelTodayButton: 'Select today',\n labelResetButton: 'Reset',\n labelCloseButton: 'Close'\n}), _defineProperty(_deepFreeze, NAME_FORM_FILE, {\n browseText: 'Browse',\n // Chrome default file prompt\n placeholder: 'No file chosen',\n dropPlaceholder: 'Drop files here',\n noDropPlaceholder: 'Not allowed'\n}), _defineProperty(_deepFreeze, NAME_FORM_RATING, {\n variant: null,\n color: null\n}), _defineProperty(_deepFreeze, NAME_FORM_TAG, {\n removeLabel: 'Remove tag',\n variant: 'secondary'\n}), _defineProperty(_deepFreeze, NAME_FORM_TAGS, {\n addButtonText: 'Add',\n addButtonVariant: 'outline-secondary',\n duplicateTagText: 'Duplicate tag(s)',\n invalidTagText: 'Invalid tag(s)',\n limitTagsText: 'Tag limit reached',\n placeholder: 'Add tag...',\n tagRemoveLabel: 'Remove tag',\n tagRemovedLabel: 'Tag removed',\n tagVariant: 'secondary'\n}), _defineProperty(_deepFreeze, NAME_FORM_TEXT, {\n textVariant: 'muted'\n}), _defineProperty(_deepFreeze, NAME_FORM_TIMEPICKER, {\n // Fallback to BTime\n labelNoTimeSelected: undefined,\n labelSelected: undefined,\n labelHours: undefined,\n labelMinutes: undefined,\n labelSeconds: undefined,\n labelAmpm: undefined,\n labelAm: undefined,\n labelPm: undefined,\n // Fallback to BTime then BFormSpinbutton\n labelDecrement: undefined,\n labelIncrement: undefined,\n // These props are specific to BFormTimepicker\n labelNowButton: 'Select now',\n labelResetButton: 'Reset',\n labelCloseButton: 'Close'\n}), _defineProperty(_deepFreeze, NAME_FORM_SPINBUTTON, {\n labelDecrement: 'Decrement',\n labelIncrement: 'Increment'\n}), _defineProperty(_deepFreeze, NAME_IMG, {\n blankColor: 'transparent'\n}), _defineProperty(_deepFreeze, NAME_IMG_LAZY, {\n blankColor: 'transparent'\n}), _defineProperty(_deepFreeze, NAME_INPUT_GROUP, {\n size: undefined\n}), _defineProperty(_deepFreeze, NAME_JUMBOTRON, {\n bgVariant: undefined,\n borderVariant: undefined,\n textVariant: undefined\n}), _defineProperty(_deepFreeze, NAME_LINK, {\n routerComponentName: undefined\n}), _defineProperty(_deepFreeze, NAME_LIST_GROUP_ITEM, {\n variant: undefined\n}), _defineProperty(_deepFreeze, NAME_MODAL, {\n titleTag: 'h5',\n size: 'md',\n headerBgVariant: undefined,\n headerBorderVariant: undefined,\n headerTextVariant: undefined,\n headerCloseVariant: undefined,\n bodyBgVariant: undefined,\n bodyTextVariant: undefined,\n footerBgVariant: undefined,\n footerBorderVariant: undefined,\n footerTextVariant: undefined,\n cancelTitle: 'Cancel',\n cancelVariant: 'secondary',\n okTitle: 'OK',\n okVariant: 'primary',\n headerCloseContent: '×',\n headerCloseLabel: 'Close'\n}), _defineProperty(_deepFreeze, NAME_NAVBAR, {\n variant: null\n}), _defineProperty(_deepFreeze, NAME_NAVBAR_TOGGLE, {\n label: 'Toggle navigation'\n}), _defineProperty(_deepFreeze, NAME_PAGINATION, {\n size: undefined\n}), _defineProperty(_deepFreeze, NAME_PAGINATION_NAV, {\n size: undefined\n}), _defineProperty(_deepFreeze, NAME_POPOVER, {\n boundary: 'scrollParent',\n boundaryPadding: 5,\n customClass: undefined,\n delay: 50,\n variant: undefined\n}), _defineProperty(_deepFreeze, NAME_PROGRESS, {\n variant: undefined\n}), _defineProperty(_deepFreeze, NAME_PROGRESS_BAR, {\n variant: undefined\n}), _defineProperty(_deepFreeze, NAME_SPINNER, {\n variant: undefined\n}), _defineProperty(_deepFreeze, NAME_SKELETON, {\n animation: 'wave'\n}), _defineProperty(_deepFreeze, NAME_SKELETON_ICON, {\n animation: 'wave'\n}), _defineProperty(_deepFreeze, NAME_SIDEBAR, {\n bgVariant: 'light',\n textVariant: 'dark',\n shadow: false,\n width: undefined,\n tag: 'div',\n backdropVariant: 'dark'\n}), _defineProperty(_deepFreeze, NAME_TABLE, {\n selectedVariant: 'active',\n headVariant: undefined,\n footVariant: undefined\n}), _defineProperty(_deepFreeze, NAME_TIME, {\n labelNoTimeSelected: 'No time selected',\n labelSelected: 'Selected time',\n labelHours: 'Hours',\n labelMinutes: 'Minutes',\n labelSeconds: 'Seconds',\n labelAmpm: 'AM/PM',\n // It would be nice to be able to get these from Intl.DateTimeFormat somehow\n labelAm: 'AM',\n labelPm: 'PM',\n // The following inherit from BFormSpinbutton if not provided\n labelIncrement: undefined,\n labelDecrement: undefined\n}), _defineProperty(_deepFreeze, NAME_TOAST, {\n toaster: 'b-toaster-top-right',\n autoHideDelay: 5000,\n variant: undefined,\n toastClass: undefined,\n headerClass: undefined,\n bodyClass: undefined\n}), _defineProperty(_deepFreeze, NAME_TOASTER, {\n ariaLive: undefined,\n ariaAtomic: undefined,\n role: undefined\n}), _defineProperty(_deepFreeze, NAME_TOOLTIP, {\n boundary: 'scrollParent',\n boundaryPadding: 5,\n customClass: undefined,\n delay: 50,\n variant: undefined\n}), _deepFreeze));","// Loose YYYY-MM-DD matching, ignores any appended time inforation\n// Matches '1999-12-20', '1999-1-1', '1999-01-20T22:51:49.118Z', '1999-01-02 13:00:00'\nexport var RX_DATE = /^\\d+-\\d\\d?-\\d\\d?(?:\\s|T|$)/; // Used to split off the date parts of the YYYY-MM-DD string\n\nexport var RX_DATE_SPLIT = /-|\\s|T/; // Time string RegEx (optional seconds)\n\nexport var RX_TIME = /^([0-1]?[0-9]|2[0-3]):[0-5]?[0-9](:[0-5]?[0-9])?$/; // HREFs must end with a hash followed by at least one non-hash character\n\nexport var RX_HREF = /^.*(#[^#]+)$/;\nexport var RX_ARRAY_NOTATION = /\\[(\\d+)]/g;\nexport var RX_DIGITS = /^\\d+$/;\nexport var RX_EXTENSION = /^\\..+/;\nexport var RX_HASH = /^#/;\nexport var RX_HASH_ID = /^#[A-Za-z]+[\\w\\-:.]*$/;\nexport var RX_HTML_TAGS = /(<([^>]+)>)/gi;\nexport var RX_HYPHENATE = /\\B([A-Z])/g;\nexport var RX_LOWER_UPPER = /([a-z])([A-Z])/g;\nexport var RX_NUMBER = /^[0-9]*\\.?[0-9]+$/;\nexport var RX_REGEXP_REPLACE = /[-/\\\\^$*+?.()|[\\]{}]/g;\nexport var RX_SPACES = /[\\s\\uFEFF\\xA0]+/g;\nexport var RX_SPACE_SPLIT = /\\s+/;\nexport var RX_STAR = /\\/\\*$/;\nexport var RX_START_SPACE_WORD = /(\\s|^)(\\w)/g;\nexport var RX_TRIM_LEFT = /^\\s+/;\nexport var RX_TRIM_RIGHT = /\\s+$/;\nexport var RX_UNDERSCORE = /_/g;\nexport var RX_UN_KEBAB = /-(\\w)/g; // Aspect\n\nexport var RX_ASPECT = /^\\d+(\\.\\d*)?[/:]\\d+(\\.\\d*)?$/;\nexport var RX_ASPECT_SEPARATOR = /[/:]/; // Grid\n\nexport var RX_COL_CLASS = /^col-/; // Icon\n\nexport var RX_ICON_PREFIX = /^BIcon/; // Locale\n\nexport var RX_STRIP_LOCALE_MODS = /-u-.+/;","var identity = function identity(x) {\n return x;\n};\n\nexport default identity;","import { RX_ARRAY_NOTATION } from '../constants/regex';\nimport identity from './identity';\nimport { isArray, isNull, isObject, isUndefinedOrNull } from './inspect';\n/**\n * Get property defined by dot/array notation in string, returns undefined if not found\n *\n * @link https://gist.github.com/jeneg/9767afdcca45601ea44930ea03e0febf#gistcomment-1935901\n *\n * @param {Object} obj\n * @param {string|Array} path\n * @return {*}\n */\n\nexport var getRaw = function getRaw(obj, path) {\n var defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;\n // Handle array of path values\n path = isArray(path) ? path.join('.') : path; // If no path or no object passed\n\n if (!path || !isObject(obj)) {\n return defaultValue;\n } // Handle edge case where user has dot(s) in top-level item field key\n // See https://github.com/bootstrap-vue/bootstrap-vue/issues/2762\n // Switched to `in` operator vs `hasOwnProperty` to handle obj.prototype getters\n // https://github.com/bootstrap-vue/bootstrap-vue/issues/3463\n\n\n if (path in obj) {\n return obj[path];\n } // Handle string array notation (numeric indices only)\n\n\n path = String(path).replace(RX_ARRAY_NOTATION, '.$1');\n var steps = path.split('.').filter(identity); // Handle case where someone passes a string of only dots\n\n if (steps.length === 0) {\n return defaultValue;\n } // Traverse path in object to find result\n // Switched to `in` operator vs `hasOwnProperty` to handle obj.prototype getters\n // https://github.com/bootstrap-vue/bootstrap-vue/issues/3463\n\n\n return steps.every(function (step) {\n return isObject(obj) && step in obj && !isUndefinedOrNull(obj = obj[step]);\n }) ? obj : isNull(obj) ? null : defaultValue;\n};\n/**\n * Get property defined by dot/array notation in string.\n *\n * @link https://gist.github.com/jeneg/9767afdcca45601ea44930ea03e0febf#gistcomment-1935901\n *\n * @param {Object} obj\n * @param {string|Array} path\n * @param {*} defaultValue (optional)\n * @return {*}\n */\n\nexport var get = function get(obj, path) {\n var defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var val = getRaw(obj, path);\n return isUndefinedOrNull(val) ? defaultValue : val;\n};\nexport default get;","import { isBrowser, hasPromiseSupport, hasMutationObserverSupport, getNoWarn } from './env';\n/**\n * Log a warning message to the console with BootstrapVue formatting\n * @param {string} message\n */\n\nexport var warn = function warn(message)\n/* istanbul ignore next */\n{\n var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n if (!getNoWarn()) {\n console.warn(\"[BootstrapVue warn]: \".concat(source ? \"\".concat(source, \" - \") : '').concat(message));\n }\n};\n/**\n * Warn when no Promise support is given\n * @param {string} source\n * @returns {boolean} warned\n */\n\nexport var warnNotClient = function warnNotClient(source) {\n /* istanbul ignore else */\n if (isBrowser) {\n return false;\n } else {\n warn(\"\".concat(source, \": Can not be called during SSR.\"));\n return true;\n }\n};\n/**\n * Warn when no Promise support is given\n * @param {string} source\n * @returns {boolean} warned\n */\n\nexport var warnNoPromiseSupport = function warnNoPromiseSupport(source) {\n /* istanbul ignore else */\n if (hasPromiseSupport) {\n return false;\n } else {\n warn(\"\".concat(source, \": Requires Promise support.\"));\n return true;\n }\n};\n/**\n * Warn when no MutationObserver support is given\n * @param {string} source\n * @returns {boolean} warned\n */\n\nexport var warnNoMutationObserverSupport = function warnNoMutationObserverSupport(source) {\n /* istanbul ignore else */\n if (hasMutationObserverSupport) {\n return false;\n } else {\n warn(\"\".concat(source, \": Requires MutationObserver support.\"));\n return true;\n }\n};","export var NAME_ALERT = 'BAlert';\nexport var NAME_ASPECT = 'BAspect';\nexport var NAME_AVATAR = 'BAvatar';\nexport var NAME_AVATAR_GROUP = 'BAvatarGroup';\nexport var NAME_BADGE = 'BBadge';\nexport var NAME_BREADCRUMB = 'BBreadcrumb';\nexport var NAME_BREADCRUMB_ITEM = 'BBreadcrumbItem';\nexport var NAME_BREADCRUMB_LINK = 'BBreadcrumbLink';\nexport var NAME_BUTTON = 'BButton';\nexport var NAME_BUTTON_CLOSE = 'BButtonClose';\nexport var NAME_BUTTON_GROUP = 'BButtonGroup';\nexport var NAME_BUTTON_TOOLBAR = 'BButtonToolbar';\nexport var NAME_CALENDAR = 'BCalendar';\nexport var NAME_CARD = 'BCard';\nexport var NAME_CARD_BODY = 'BCardBody';\nexport var NAME_CARD_FOOTER = 'BCardFooter';\nexport var NAME_CARD_GROUP = 'BCardGroup';\nexport var NAME_CARD_HEADER = 'BCardHeader';\nexport var NAME_CARD_IMG = 'BCardImg';\nexport var NAME_CARD_IMG_LAZY = 'BCardImgLazy';\nexport var NAME_CARD_SUB_TITLE = 'BCardSubTitle';\nexport var NAME_CARD_TEXT = 'BCardText';\nexport var NAME_CARD_TITLE = 'BCardTitle';\nexport var NAME_CAROUSEL = 'BCarousel';\nexport var NAME_CAROUSEL_SLIDE = 'BCarouselSlide';\nexport var NAME_COL = 'BCol';\nexport var NAME_COLLAPSE = 'BCollapse';\nexport var NAME_COLLAPSE_HELPER = 'BVCollapse';\nexport var NAME_CONTAINER = 'BContainer';\nexport var NAME_DROPDOWN = 'BDropdown';\nexport var NAME_DROPDOWN_DIVIDER = 'BDropdownDivider';\nexport var NAME_DROPDOWN_FORM = 'BDropdownForm';\nexport var NAME_DROPDOWN_GROUP = 'BDropdownGroup';\nexport var NAME_DROPDOWN_HEADER = 'BDropdownHeader';\nexport var NAME_DROPDOWN_ITEM = 'BDropdownItem';\nexport var NAME_DROPDOWN_ITEM_BUTTON = 'BDropdownItemButton';\nexport var NAME_DROPDOWN_TEXT = 'BDropdownText';\nexport var NAME_EMBED = 'BEmbed';\nexport var NAME_FORM = 'BForm';\nexport var NAME_FORM_BUTTON_LABEL_CONTROL = 'BVFormBtnLabelControl';\nexport var NAME_FORM_CHECKBOX = 'BFormCheckbox';\nexport var NAME_FORM_CHECKBOX_GROUP = 'BFormCheckboxGroup';\nexport var NAME_FORM_DATALIST = 'BFormDatalist';\nexport var NAME_FORM_DATEPICKER = 'BFormDatepicker';\nexport var NAME_FORM_FILE = 'BFormFile';\nexport var NAME_FORM_GROUP = 'BFormGroup';\nexport var NAME_FORM_INPUT = 'BFormInput';\nexport var NAME_FORM_INVALID_FEEDBACK = 'BFormInvalidFeedback';\nexport var NAME_FORM_RADIO = 'BFormRadio';\nexport var NAME_FORM_RADIO_GROUP = 'BFormRadioGroup';\nexport var NAME_FORM_RATING = 'BFormRating';\nexport var NAME_FORM_RATING_STAR = 'BVFormRatingStar';\nexport var NAME_FORM_ROW = 'BFormRow';\nexport var NAME_FORM_SELECT = 'BFormSelect';\nexport var NAME_FORM_SELECT_OPTION = 'BFormSelectOption';\nexport var NAME_FORM_SELECT_OPTION_GROUP = 'BFormSelectOptionGroup';\nexport var NAME_FORM_SPINBUTTON = 'BFormSpinbutton';\nexport var NAME_FORM_TAG = 'BFormTag';\nexport var NAME_FORM_TAGS = 'BFormTags';\nexport var NAME_FORM_TEXT = 'BFormText';\nexport var NAME_FORM_TEXTAREA = 'BFormTextarea';\nexport var NAME_FORM_TIMEPICKER = 'BFormTimepicker';\nexport var NAME_FORM_VALID_FEEDBACK = 'BFormValidFeedback';\nexport var NAME_ICON = 'BIcon';\nexport var NAME_ICONSTACK = 'BIconstack';\nexport var NAME_ICON_BASE = 'BIconBase';\nexport var NAME_IMG = 'BImg';\nexport var NAME_IMG_LAZY = 'BImgLazy';\nexport var NAME_INPUT_GROUP = 'BInputGroup';\nexport var NAME_INPUT_GROUP_ADDON = 'BInputGroupAddon';\nexport var NAME_INPUT_GROUP_APPEND = 'BInputGroupAppend';\nexport var NAME_INPUT_GROUP_PREPEND = 'BInputGroupPrepend';\nexport var NAME_INPUT_GROUP_TEXT = 'BInputGroupText';\nexport var NAME_JUMBOTRON = 'BJumbotron';\nexport var NAME_LINK = 'BLink';\nexport var NAME_LIST_GROUP = 'BListGroup';\nexport var NAME_LIST_GROUP_ITEM = 'BListGroupItem';\nexport var NAME_MEDIA = 'BMedia';\nexport var NAME_MEDIA_ASIDE = 'BMediaAside';\nexport var NAME_MEDIA_BODY = 'BMediaBody';\nexport var NAME_MODAL = 'BModal';\nexport var NAME_MSG_BOX = 'BMsgBox';\nexport var NAME_NAV = 'BNav';\nexport var NAME_NAVBAR = 'BNavbar';\nexport var NAME_NAVBAR_BRAND = 'BNavbarBrand';\nexport var NAME_NAVBAR_NAV = 'BNavbarNav';\nexport var NAME_NAVBAR_TOGGLE = 'BNavbarToggle';\nexport var NAME_NAV_FORM = 'BNavForm';\nexport var NAME_NAV_ITEM = 'BNavItem';\nexport var NAME_NAV_ITEM_DROPDOWN = 'BNavItemDropdown';\nexport var NAME_NAV_TEXT = 'BNavText';\nexport var NAME_OVERLAY = 'BOverlay';\nexport var NAME_PAGINATION = 'BPagination';\nexport var NAME_PAGINATION_NAV = 'BPaginationNav';\nexport var NAME_POPOVER = 'BPopover';\nexport var NAME_POPOVER_HELPER = 'BVPopover';\nexport var NAME_POPOVER_TEMPLATE = 'BVPopoverTemplate';\nexport var NAME_POPPER = 'BVPopper';\nexport var NAME_PROGRESS = 'BProgress';\nexport var NAME_PROGRESS_BAR = 'BProgressBar';\nexport var NAME_ROW = 'BRow';\nexport var NAME_SIDEBAR = 'BSidebar';\nexport var NAME_SKELETON = 'BSkeleton';\nexport var NAME_SKELETON_ICON = 'BSkeletonIcon';\nexport var NAME_SKELETON_IMG = 'BSkeletonImg';\nexport var NAME_SKELETON_TABLE = 'BSkeletonTable';\nexport var NAME_SKELETON_WRAPPER = 'BSkeletonWrapper';\nexport var NAME_SPINNER = 'BSpinner';\nexport var NAME_TAB = 'BTab';\nexport var NAME_TABLE = 'BTable';\nexport var NAME_TABLE_CELL = 'BTableCell';\nexport var NAME_TABLE_LITE = 'BTableLite';\nexport var NAME_TABLE_SIMPLE = 'BTableSimple';\nexport var NAME_TABS = 'BTabs';\nexport var NAME_TAB_BUTTON_HELPER = 'BVTabButton';\nexport var NAME_TBODY = 'BTbody';\nexport var NAME_TFOOT = 'BTfoot';\nexport var NAME_TH = 'BTh';\nexport var NAME_THEAD = 'BThead';\nexport var NAME_TIME = 'BTime';\nexport var NAME_TOAST = 'BToast';\nexport var NAME_TOASTER = 'BToaster';\nexport var NAME_TOAST_POP = 'BVToastPop';\nexport var NAME_TOOLTIP = 'BTooltip';\nexport var NAME_TOOLTIP_HELPER = 'BVTooltip';\nexport var NAME_TOOLTIP_TEMPLATE = 'BVTooltipTemplate';\nexport var NAME_TR = 'BTr';\nexport var NAME_TRANSITION = 'BVTransition';\nexport var NAME_TRANSPORTER_SINGLE = 'BTransporterSingle';\nexport var NAME_TRANSPORTER_TARGET_SINGLE = 'BTransporterTargetSingle';","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport OurVue from './vue';\nimport cloneDeep from './clone-deep';\nimport { getRaw } from './get';\nimport { isArray, isPlainObject, isString, isUndefined } from './inspect';\nimport { getOwnPropertyNames, hasOwnProperty } from './object';\nimport { warn } from './warn';\nimport DEFAULTS from './config-defaults'; // --- Constants ---\n\nvar NAME = 'BvConfig';\nvar PROP_NAME = '$bvConfig'; // Config manager class\n\nvar BvConfig = /*#__PURE__*/function () {\n function BvConfig() {\n _classCallCheck(this, BvConfig);\n\n // TODO: pre-populate with default config values (needs updated tests)\n // this.$_config = cloneDeep(DEFAULTS)\n this.$_config = {};\n this.$_cachedBreakpoints = null;\n }\n /* istanbul ignore next */\n\n\n _createClass(BvConfig, [{\n key: \"getDefaults\",\n // Returns the defaults\n\n /* istanbul ignore next */\n value: function getDefaults()\n /* istanbul ignore next */\n {\n return this.defaults;\n } // Method to merge in user config parameters\n\n }, {\n key: \"setConfig\",\n value: function setConfig() {\n var _this = this;\n\n var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (!isPlainObject(config)) {\n /* istanbul ignore next */\n return;\n }\n\n var configKeys = getOwnPropertyNames(config);\n configKeys.forEach(function (cmpName) {\n /* istanbul ignore next */\n if (!hasOwnProperty(DEFAULTS, cmpName)) {\n warn(\"Unknown config property \\\"\".concat(cmpName, \"\\\"\"), NAME);\n return;\n }\n\n var cmpConfig = config[cmpName];\n\n if (cmpName === 'breakpoints') {\n // Special case for breakpoints\n var breakpoints = config.breakpoints;\n /* istanbul ignore if */\n\n if (!isArray(breakpoints) || breakpoints.length < 2 || breakpoints.some(function (b) {\n return !isString(b) || b.length === 0;\n })) {\n warn('\"breakpoints\" must be an array of at least 2 breakpoint names', NAME);\n } else {\n _this.$_config.breakpoints = cloneDeep(breakpoints);\n }\n } else if (isPlainObject(cmpConfig)) {\n // Component prop defaults\n var props = getOwnPropertyNames(cmpConfig);\n props.forEach(function (prop) {\n /* istanbul ignore if */\n if (!hasOwnProperty(DEFAULTS[cmpName], prop)) {\n warn(\"Unknown config property \\\"\".concat(cmpName, \".\").concat(prop, \"\\\"\"), NAME);\n } else {\n // TODO: If we pre-populate the config with defaults, we can skip this line\n _this.$_config[cmpName] = _this.$_config[cmpName] || {};\n\n if (!isUndefined(cmpConfig[prop])) {\n _this.$_config[cmpName][prop] = cloneDeep(cmpConfig[prop]);\n }\n }\n });\n }\n });\n } // Clear the config. For testing purposes only\n\n }, {\n key: \"resetConfig\",\n value: function resetConfig() {\n this.$_config = {};\n } // Returns a deep copy of the user config\n\n }, {\n key: \"getConfig\",\n value: function getConfig() {\n return cloneDeep(this.$_config);\n }\n }, {\n key: \"getConfigValue\",\n value: function getConfigValue(key) {\n // First we try the user config, and if key not found we fall back to default value\n // NOTE: If we deep clone DEFAULTS into config, then we can skip the fallback for get\n return cloneDeep(getRaw(this.$_config, key, getRaw(DEFAULTS, key)));\n }\n }, {\n key: \"defaults\",\n\n /* istanbul ignore next */\n get: function get()\n /* istanbul ignore next */\n {\n return DEFAULTS;\n }\n }], [{\n key: \"Defaults\",\n get: function get()\n /* istanbul ignore next */\n {\n return DEFAULTS;\n }\n }]);\n\n return BvConfig;\n}(); // Method for applying a global config\n\n\nexport var setConfig = function setConfig() {\n var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var Vue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : OurVue;\n // Ensure we have a $bvConfig Object on the Vue prototype.\n // We set on Vue and OurVue just in case consumer has not set an alias of `vue`.\n Vue.prototype[PROP_NAME] = OurVue.prototype[PROP_NAME] = Vue.prototype[PROP_NAME] || OurVue.prototype[PROP_NAME] || new BvConfig(); // Apply the config values\n\n Vue.prototype[PROP_NAME].setConfig(config);\n}; // Method for resetting the user config. Exported for testing purposes only.\n\nexport var resetConfig = function resetConfig() {\n if (OurVue.prototype[PROP_NAME] && OurVue.prototype[PROP_NAME].resetConfig) {\n OurVue.prototype[PROP_NAME].resetConfig();\n }\n};","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport OurVue from './vue';\nimport { setConfig } from './config-set';\nimport { hasWindowSupport, isJSDOM } from './env';\nimport { warn } from './warn';\n/**\n * Checks if there are multiple instances of Vue, and warns (once) about possible issues.\n * @param {object} Vue\n */\n\nexport var checkMultipleVue = function () {\n var checkMultipleVueWarned = false;\n var MULTIPLE_VUE_WARNING = ['Multiple instances of Vue detected!', 'You may need to set up an alias for Vue in your bundler config.', 'See: https://bootstrap-vue.org/docs#using-module-bundlers'].join('\\n');\n return function (Vue) {\n /* istanbul ignore next */\n if (!checkMultipleVueWarned && OurVue !== Vue && !isJSDOM) {\n warn(MULTIPLE_VUE_WARNING);\n }\n\n checkMultipleVueWarned = true;\n };\n}();\n/**\n * Plugin install factory function.\n * @param {object} { components, directives }\n * @returns {function} plugin install function\n */\n\nexport var installFactory = function installFactory() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n components = _ref.components,\n directives = _ref.directives,\n plugins = _ref.plugins;\n\n var install = function install(Vue) {\n var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (install.installed) {\n /* istanbul ignore next */\n return;\n }\n\n install.installed = true;\n checkMultipleVue(Vue);\n setConfig(config, Vue);\n registerComponents(Vue, components);\n registerDirectives(Vue, directives);\n registerPlugins(Vue, plugins);\n };\n\n install.installed = false;\n return install;\n};\n/**\n * Plugin install factory function (no plugin config option).\n * @param {object} { components, directives }\n * @returns {function} plugin install function\n */\n\nexport var installFactoryNoConfig = function installFactoryNoConfig() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n components = _ref2.components,\n directives = _ref2.directives,\n plugins = _ref2.plugins;\n\n var install = function install(Vue) {\n if (install.installed) {\n /* istanbul ignore next */\n return;\n }\n\n install.installed = true;\n checkMultipleVue(Vue);\n registerComponents(Vue, components);\n registerDirectives(Vue, directives);\n registerPlugins(Vue, plugins);\n };\n\n install.installed = false;\n return install;\n};\n/**\n * Plugin object factory function.\n * @param {object} { components, directives, plugins }\n * @returns {object} plugin install object\n */\n\nexport var pluginFactory = function pluginFactory() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var extend = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return _objectSpread(_objectSpread({}, extend), {}, {\n install: installFactory(options)\n });\n};\n/**\n * Plugin object factory function (no config option).\n * @param {object} { components, directives, plugins }\n * @returns {object} plugin install object\n */\n\nexport var pluginFactoryNoConfig = function pluginFactoryNoConfig() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var extend = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return _objectSpread(_objectSpread({}, extend), {}, {\n install: installFactoryNoConfig(options)\n });\n};\n/**\n * Load a group of plugins.\n * @param {object} Vue\n * @param {object} Plugin definitions\n */\n\nexport var registerPlugins = function registerPlugins(Vue) {\n var plugins = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n for (var plugin in plugins) {\n if (plugin && plugins[plugin]) {\n Vue.use(plugins[plugin]);\n }\n }\n};\n/**\n * Load a component.\n * @param {object} Vue\n * @param {string} Component name\n * @param {object} Component definition\n */\n\nexport var registerComponent = function registerComponent(Vue, name, def) {\n if (Vue && name && def) {\n Vue.component(name, def);\n }\n};\n/**\n * Load a group of components.\n * @param {object} Vue\n * @param {object} Object of component definitions\n */\n\nexport var registerComponents = function registerComponents(Vue) {\n var components = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n for (var component in components) {\n registerComponent(Vue, component, components[component]);\n }\n};\n/**\n * Load a directive.\n * @param {object} Vue\n * @param {string} Directive name\n * @param {object} Directive definition\n */\n\nexport var registerDirective = function registerDirective(Vue, name, def) {\n if (Vue && name && def) {\n // Ensure that any leading V is removed from the\n // name, as Vue adds it automatically\n Vue.directive(name.replace(/^VB/, 'B'), def);\n }\n};\n/**\n * Load a group of directives.\n * @param {object} Vue\n * @param {object} Object of directive definitions\n */\n\nexport var registerDirectives = function registerDirectives(Vue) {\n var directives = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n for (var directive in directives) {\n registerDirective(Vue, directive, directives[directive]);\n }\n};\n/**\n * Install plugin if window.Vue available\n * @param {object} Plugin definition\n */\n\nexport var vueUse = function vueUse(VuePlugin) {\n /* istanbul ignore next */\n if (hasWindowSupport && window.Vue) {\n window.Vue.use(VuePlugin);\n }\n /* istanbul ignore next */\n\n\n if (hasWindowSupport && VuePlugin.NAME) {\n window[VuePlugin.NAME] = VuePlugin;\n }\n};","import { create } from './object';\n\nvar memoize = function memoize(fn) {\n var cache = create(null);\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var argsKey = JSON.stringify(args);\n return cache[argsKey] = cache[argsKey] || fn.apply(null, args);\n };\n};\n\nexport default memoize;","import Vue from './vue';\nimport cloneDeep from './clone-deep';\nimport { getRaw } from './get';\nimport memoize from './memoize';\nimport DEFAULTS from './config-defaults'; // --- Constants ---\n\nvar PROP_NAME = '$bvConfig';\nvar VueProto = Vue.prototype; // --- Getter methods ---\n// All methods return a deep clone (immutable) copy of the config\n// value, to prevent mutation of the user config object.\n// Get the current user config. For testing purposes only\n\nexport var getConfig = function getConfig() {\n return VueProto[PROP_NAME] ? VueProto[PROP_NAME].getConfig() : {};\n}; // Method to grab a config value based on a dotted/array notation key\n\nexport var getConfigValue = function getConfigValue(key) {\n return VueProto[PROP_NAME] ? VueProto[PROP_NAME].getConfigValue(key) : cloneDeep(getRaw(DEFAULTS, key));\n}; // Method to grab a config value for a particular component\n\nexport var getComponentConfig = function getComponentConfig(cmpName) {\n var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n // Return the particular config value for key for if specified,\n // otherwise we return the full config (or an empty object if not found)\n return key ? getConfigValue(\"\".concat(cmpName, \".\").concat(key)) : getConfigValue(cmpName) || {};\n}; // Convenience method for getting all breakpoint names\n\nexport var getBreakpoints = function getBreakpoints() {\n return getConfigValue('breakpoints');\n}; // Private function for caching / locking-in breakpoint names\n\nvar _getBreakpointsCached = memoize(function () {\n return getBreakpoints();\n}); // Convenience method for getting all breakpoint names.\n// Caches the results after first access.\n\n\nexport var getBreakpointsCached = function getBreakpointsCached() {\n return cloneDeep(_getBreakpointsCached());\n}; // Convenience method for getting breakpoints with\n// the smallest breakpoint set as ''.\n// Useful for components that create breakpoint specific props.\n\nexport var getBreakpointsUp = function getBreakpointsUp() {\n var breakpoints = getBreakpoints();\n breakpoints[0] = '';\n return breakpoints;\n}; // Convenience method for getting breakpoints with\n// the smallest breakpoint set as ''.\n// Useful for components that create breakpoint specific props.\n// Caches the results after first access.\n\nexport var getBreakpointsUpCached = memoize(function () {\n var breakpoints = getBreakpointsCached();\n breakpoints[0] = '';\n return breakpoints;\n}); // Convenience method for getting breakpoints with\n// the largest breakpoint set as ''.\n// Useful for components that create breakpoint specific props.\n\nexport var getBreakpointsDown = function getBreakpointsDown() {\n var breakpoints = getBreakpoints();\n breakpoints[breakpoints.length - 1] = '';\n return breakpoints;\n}; // Convenience method for getting breakpoints with\n// the largest breakpoint set as ''.\n// Useful for components that create breakpoint specific props.\n// Caches the results after first access.\n\n/* istanbul ignore next: we don't use this method anywhere, yet */\n\nexport var getBreakpointsDownCached = function getBreakpointsDownCached()\n/* istanbul ignore next */\n{\n var breakpoints = getBreakpointsCached();\n breakpoints[breakpoints.length - 1] = '';\n return breakpoints;\n};","// --- Static ---\nexport var from = function from() {\n return Array.from.apply(Array, arguments);\n}; // --- Instance ---\n\nexport var arrayIncludes = function arrayIncludes(array, value) {\n return array.indexOf(value) !== -1;\n};\nexport var concat = function concat() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return Array.prototype.concat.apply([], args);\n}; // --- Utilities ---\n\nexport var createAndFillArray = function createAndFillArray(size, value) {\n return Array(size).fill(value);\n};\nexport var flatten = function flatten(array) {\n return array.reduce(function (result, item) {\n return result.concat(item);\n }, []);\n};\nexport var flattenDeep = function flattenDeep(array) {\n return array.reduce(function (result, item) {\n return result.concat(Array.isArray(item) ? flattenDeep(item) : item);\n }, []);\n};","// Number utilities\n// Converts a value (string, number, etc.) to an integer number\n// Assumes radix base 10\nexport var toInteger = function toInteger(value) {\n var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : NaN;\n var integer = parseInt(value, 10);\n return isNaN(integer) ? defaultValue : integer;\n}; // Converts a value (string, number, etc.) to a number\n\nexport var toFloat = function toFloat(value) {\n var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : NaN;\n var float = parseFloat(value);\n return isNaN(float) ? defaultValue : float;\n}; // Converts a value (string, number, etc.) to a string\n// representation with `precision` digits after the decimal\n// Returns the string 'NaN' if the value cannot be converted\n\nexport var toFixed = function toFixed(val, precision) {\n return toFloat(val).toFixed(toInteger(precision, 0));\n};","// String utilities\nimport { RX_HYPHENATE, RX_LOWER_UPPER, RX_REGEXP_REPLACE, RX_START_SPACE_WORD, RX_TRIM_LEFT, RX_TRIM_RIGHT, RX_UNDERSCORE, RX_UN_KEBAB } from '../constants/regex';\nimport { isArray, isPlainObject, isString, isUndefinedOrNull } from './inspect'; // --- Utilities ---\n// Converts PascalCase or camelCase to kebab-case\n\nexport var kebabCase = function kebabCase(str) {\n return str.replace(RX_HYPHENATE, '-$1').toLowerCase();\n}; // Converts a kebab-case or camelCase string to PascalCase\n\nexport var pascalCase = function pascalCase(str) {\n str = kebabCase(str).replace(RX_UN_KEBAB, function (_, c) {\n return c ? c.toUpperCase() : '';\n });\n return str.charAt(0).toUpperCase() + str.slice(1);\n}; // Converts a string, including strings in camelCase or snake_case, into Start Case\n// It keeps original single quote and hyphen in the word\n// https://github.com/UrbanCompass/to-start-case\n\nexport var startCase = function startCase(str) {\n return str.replace(RX_UNDERSCORE, ' ').replace(RX_LOWER_UPPER, function (str, $1, $2) {\n return $1 + ' ' + $2;\n }).replace(RX_START_SPACE_WORD, function (str, $1, $2) {\n return $1 + $2.toUpperCase();\n });\n}; // Lowercases the first letter of a string and returns a new string\n\nexport var lowerFirst = function lowerFirst(str) {\n str = isString(str) ? str.trim() : String(str);\n return str.charAt(0).toLowerCase() + str.slice(1);\n}; // Uppercases the first letter of a string and returns a new string\n\nexport var upperFirst = function upperFirst(str) {\n str = isString(str) ? str.trim() : String(str);\n return str.charAt(0).toUpperCase() + str.slice(1);\n}; // Escape characters to be used in building a regular expression\n\nexport var escapeRegExp = function escapeRegExp(str) {\n return str.replace(RX_REGEXP_REPLACE, '\\\\$&');\n}; // Convert a value to a string that can be rendered\n// `undefined`/`null` will be converted to `''`\n// Plain objects and arrays will be JSON stringified\n\nexport var toString = function toString(val) {\n var spaces = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;\n return isUndefinedOrNull(val) ? '' : isArray(val) || isPlainObject(val) && val.toString === Object.prototype.toString ? JSON.stringify(val, null, spaces) : String(val);\n}; // Remove leading white space from a string\n\nexport var trimLeft = function trimLeft(str) {\n return toString(str).replace(RX_TRIM_LEFT, '');\n}; // Remove Trailing white space from a string\n\nexport var trimRight = function trimRight(str) {\n return toString(str).replace(RX_TRIM_RIGHT, '');\n}; // Remove leading and trailing white space from a string\n\nexport var trim = function trim(str) {\n return toString(str).trim();\n}; // Lower case a string\n\nexport var lowerCase = function lowerCase(str) {\n return toString(str).toLowerCase();\n}; // Upper case a string\n\nexport var upperCase = function upperCase(str) {\n return toString(str).toUpperCase();\n};","import { from as arrayFrom } from './array';\nimport { hasWindowSupport, hasDocumentSupport } from './env';\nimport { isFunction, isNull } from './inspect';\nimport { toFloat } from './number';\nimport { toString } from './string'; // --- Constants ---\n\nvar TABABLE_SELECTOR = ['button', '[href]:not(.disabled)', 'input', 'select', 'textarea', '[tabindex]', '[contenteditable]'].map(function (s) {\n return \"\".concat(s, \":not(:disabled):not([disabled])\");\n}).join(', ');\nvar w = hasWindowSupport ? window : {};\nvar d = hasDocumentSupport ? document : {};\nvar elProto = typeof Element !== 'undefined' ? Element.prototype : {}; // --- Normalization utils ---\n// See: https://developer.mozilla.org/en-US/docs/Web/API/Element/matches#Polyfill\n\n/* istanbul ignore next */\n\nexport var matchesEl = elProto.matches || elProto.msMatchesSelector || elProto.webkitMatchesSelector; // See: https://developer.mozilla.org/en-US/docs/Web/API/Element/closest\n\n/* istanbul ignore next */\n\nexport var closestEl = elProto.closest || function (sel)\n/* istanbul ignore next */\n{\n var el = this;\n\n do {\n // Use our \"patched\" matches function\n if (matches(el, sel)) {\n return el;\n }\n\n el = el.parentElement || el.parentNode;\n } while (!isNull(el) && el.nodeType === Node.ELEMENT_NODE);\n\n return null;\n}; // `requestAnimationFrame()` convenience method\n\n/* istanbul ignore next: JSDOM always returns the first option */\n\nexport var requestAF = w.requestAnimationFrame || w.webkitRequestAnimationFrame || w.mozRequestAnimationFrame || w.msRequestAnimationFrame || w.oRequestAnimationFrame || // Fallback, but not a true polyfill\n// Only needed for Opera Mini\n\n/* istanbul ignore next */\nfunction (cb) {\n return setTimeout(cb, 16);\n};\nexport var MutationObs = w.MutationObserver || w.WebKitMutationObserver || w.MozMutationObserver || null; // --- Utils ---\n// Remove a node from DOM\n\nexport var removeNode = function removeNode(el) {\n return el && el.parentNode && el.parentNode.removeChild(el);\n}; // Determine if an element is an HTML element\n\nexport var isElement = function isElement(el) {\n return !!(el && el.nodeType === Node.ELEMENT_NODE);\n}; // Get the currently active HTML element\n\nexport var getActiveElement = function getActiveElement() {\n var excludes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var activeElement = d.activeElement;\n return activeElement && !excludes.some(function (el) {\n return el === activeElement;\n }) ? activeElement : null;\n}; // Returns `true` if a tag's name equals `name`\n\nexport var isTag = function isTag(tag, name) {\n return toString(tag).toLowerCase() === toString(name).toLowerCase();\n}; // Determine if an HTML element is the currently active element\n\nexport var isActiveElement = function isActiveElement(el) {\n return isElement(el) && el === getActiveElement();\n}; // Determine if an HTML element is visible - Faster than CSS check\n\nexport var isVisible = function isVisible(el) {\n if (!isElement(el) || !el.parentNode || !contains(d.body, el)) {\n // Note this can fail for shadow dom elements since they\n // are not a direct descendant of document.body\n return false;\n }\n\n if (getStyle(el, 'display') === 'none') {\n // We do this check to help with vue-test-utils when using v-show\n\n /* istanbul ignore next */\n return false;\n } // All browsers support getBoundingClientRect(), except JSDOM as it returns all 0's for values :(\n // So any tests that need isVisible will fail in JSDOM\n // Except when we override the getBCR prototype in some tests\n\n\n var bcr = getBCR(el);\n return !!(bcr && bcr.height > 0 && bcr.width > 0);\n}; // Determine if an element is disabled\n\nexport var isDisabled = function isDisabled(el) {\n return !isElement(el) || el.disabled || hasAttr(el, 'disabled') || hasClass(el, 'disabled');\n}; // Cause/wait-for an element to reflow its content (adjusting its height/width)\n\nexport var reflow = function reflow(el) {\n // Requesting an elements offsetHight will trigger a reflow of the element content\n\n /* istanbul ignore next: reflow doesn't happen in JSDOM */\n return isElement(el) && el.offsetHeight;\n}; // Select all elements matching selector. Returns `[]` if none found\n\nexport var selectAll = function selectAll(selector, root) {\n return arrayFrom((isElement(root) ? root : d).querySelectorAll(selector));\n}; // Select a single element, returns `null` if not found\n\nexport var select = function select(selector, root) {\n return (isElement(root) ? root : d).querySelector(selector) || null;\n}; // Determine if an element matches a selector\n\nexport var matches = function matches(el, selector) {\n return isElement(el) ? matchesEl.call(el, selector) : false;\n}; // Finds closest element matching selector. Returns `null` if not found\n\nexport var closest = function closest(selector, root) {\n var includeRoot = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n if (!isElement(root)) {\n return null;\n }\n\n var el = closestEl.call(root, selector); // Native closest behaviour when `includeRoot` is truthy,\n // else emulate jQuery closest and return `null` if match is\n // the passed in root element when `includeRoot` is falsey\n\n return includeRoot ? el : el === root ? null : el;\n}; // Returns true if the parent element contains the child element\n\nexport var contains = function contains(parent, child) {\n return parent && isFunction(parent.contains) ? parent.contains(child) : false;\n}; // Get an element given an ID\n\nexport var getById = function getById(id) {\n return d.getElementById(/^#/.test(id) ? id.slice(1) : id) || null;\n}; // Add a class to an element\n\nexport var addClass = function addClass(el, className) {\n // We are checking for `el.classList` existence here since IE 11\n // returns `undefined` for some elements (e.g. SVG elements)\n // See https://github.com/bootstrap-vue/bootstrap-vue/issues/2713\n if (className && isElement(el) && el.classList) {\n el.classList.add(className);\n }\n}; // Remove a class from an element\n\nexport var removeClass = function removeClass(el, className) {\n // We are checking for `el.classList` existence here since IE 11\n // returns `undefined` for some elements (e.g. SVG elements)\n // See https://github.com/bootstrap-vue/bootstrap-vue/issues/2713\n if (className && isElement(el) && el.classList) {\n el.classList.remove(className);\n }\n}; // Test if an element has a class\n\nexport var hasClass = function hasClass(el, className) {\n // We are checking for `el.classList` existence here since IE 11\n // returns `undefined` for some elements (e.g. SVG elements)\n // See https://github.com/bootstrap-vue/bootstrap-vue/issues/2713\n if (className && isElement(el) && el.classList) {\n return el.classList.contains(className);\n }\n\n return false;\n}; // Set an attribute on an element\n\nexport var setAttr = function setAttr(el, attr, value) {\n if (attr && isElement(el)) {\n el.setAttribute(attr, value);\n }\n}; // Remove an attribute from an element\n\nexport var removeAttr = function removeAttr(el, attr) {\n if (attr && isElement(el)) {\n el.removeAttribute(attr);\n }\n}; // Get an attribute value from an element\n// Returns `null` if not found\n\nexport var getAttr = function getAttr(el, attr) {\n return attr && isElement(el) ? el.getAttribute(attr) : null;\n}; // Determine if an attribute exists on an element\n// Returns `true` or `false`, or `null` if element not found\n\nexport var hasAttr = function hasAttr(el, attr) {\n return attr && isElement(el) ? el.hasAttribute(attr) : null;\n}; // Set an style property on an element\n\nexport var setStyle = function setStyle(el, prop, value) {\n if (prop && isElement(el)) {\n el.style[prop] = value;\n }\n}; // Remove an style property from an element\n\nexport var removeStyle = function removeStyle(el, prop) {\n if (prop && isElement(el)) {\n el.style[prop] = '';\n }\n}; // Get an style property value from an element\n// Returns `null` if not found\n\nexport var getStyle = function getStyle(el, prop) {\n return prop && isElement(el) ? el.style[prop] || null : null;\n}; // Return the Bounding Client Rect of an element\n// Returns `null` if not an element\n\n/* istanbul ignore next: getBoundingClientRect() doesn't work in JSDOM */\n\nexport var getBCR = function getBCR(el) {\n return isElement(el) ? el.getBoundingClientRect() : null;\n}; // Get computed style object for an element\n\n/* istanbul ignore next: getComputedStyle() doesn't work in JSDOM */\n\nexport var getCS = function getCS(el) {\n return hasWindowSupport && isElement(el) ? w.getComputedStyle(el) : {};\n}; // Returns a `Selection` object representing the range of text selected\n// Returns `null` if no window support is given\n\n/* istanbul ignore next: getSelection() doesn't work in JSDOM */\n\nexport var getSel = function getSel() {\n return hasWindowSupport && w.getSelection ? w.getSelection() : null;\n}; // Return an element's offset with respect to document element\n// https://j11y.io/jquery/#v=git&fn=jQuery.fn.offset\n\nexport var offset = function offset(el)\n/* istanbul ignore next: getBoundingClientRect(), getClientRects() doesn't work in JSDOM */\n{\n var _offset = {\n top: 0,\n left: 0\n };\n\n if (!isElement(el) || el.getClientRects().length === 0) {\n return _offset;\n }\n\n var bcr = getBCR(el);\n\n if (bcr) {\n var win = el.ownerDocument.defaultView;\n _offset.top = bcr.top + win.pageYOffset;\n _offset.left = bcr.left + win.pageXOffset;\n }\n\n return _offset;\n}; // Return an element's offset with respect to to its offsetParent\n// https://j11y.io/jquery/#v=git&fn=jQuery.fn.position\n\nexport var position = function position(el)\n/* istanbul ignore next: getBoundingClientRect() doesn't work in JSDOM */\n{\n var _offset = {\n top: 0,\n left: 0\n };\n\n if (!isElement(el)) {\n return _offset;\n }\n\n var parentOffset = {\n top: 0,\n left: 0\n };\n var elStyles = getCS(el);\n\n if (elStyles.position === 'fixed') {\n _offset = getBCR(el) || _offset;\n } else {\n _offset = offset(el);\n var doc = el.ownerDocument;\n var offsetParent = el.offsetParent || doc.documentElement;\n\n while (offsetParent && (offsetParent === doc.body || offsetParent === doc.documentElement) && getCS(offsetParent).position === 'static') {\n offsetParent = offsetParent.parentNode;\n }\n\n if (offsetParent && offsetParent !== el && offsetParent.nodeType === Node.ELEMENT_NODE) {\n parentOffset = offset(offsetParent);\n var offsetParentStyles = getCS(offsetParent);\n parentOffset.top += toFloat(offsetParentStyles.borderTopWidth, 0);\n parentOffset.left += toFloat(offsetParentStyles.borderLeftWidth, 0);\n }\n }\n\n return {\n top: _offset.top - parentOffset.top - toFloat(elStyles.marginTop, 0),\n left: _offset.left - parentOffset.left - toFloat(elStyles.marginLeft, 0)\n };\n}; // Find all tabable elements in the given element\n// Assumes users have not used `tabindex` > `0` on elements\n\nexport var getTabables = function getTabables() {\n var rootEl = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document;\n return selectAll(TABABLE_SELECTOR, rootEl).filter(isVisible).filter(function (el) {\n return el.tabIndex > -1 && !el.disabled;\n });\n}; // Attempt to focus an element, and return `true` if successful\n\nexport var attemptFocus = function attemptFocus(el) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n try {\n el.focus(options);\n } catch (_unused) {}\n\n return isActiveElement(el);\n}; // Attempt to blur an element, and return `true` if successful\n\nexport var attemptBlur = function attemptBlur(el) {\n try {\n el.blur();\n } catch (_unused2) {}\n\n return !isActiveElement(el);\n};","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// Generic Bootstrap v4 fade (no-fade) transition component\n//\n// Assumes that `show` class is not required when\n// the transition has finished the enter transition\n// (show and fade classes are only applied during transition)\nimport { NAME_TRANSITION } from '../constants/components';\nimport Vue, { mergeData } from './vue';\nimport { isPlainObject } from './inspect';\nvar NO_FADE_PROPS = {\n name: '',\n enterClass: '',\n enterActiveClass: '',\n enterToClass: 'show',\n leaveClass: 'show',\n leaveActiveClass: '',\n leaveToClass: ''\n};\n\nvar FADE_PROPS = _objectSpread(_objectSpread({}, NO_FADE_PROPS), {}, {\n enterActiveClass: 'fade',\n leaveActiveClass: 'fade'\n}); // @vue/component\n\n\nexport var BVTransition = /*#__PURE__*/Vue.extend({\n name: NAME_TRANSITION,\n functional: true,\n props: {\n noFade: {\n // Only applicable to the built in transition\n // Has no effect if `trans-props` provided\n type: Boolean,\n default: false\n },\n appear: {\n // Has no effect if `trans-props` provided\n type: Boolean,\n default: false\n },\n mode: {\n // Can be overridden by user supplied trans-props\n type: String // default: undefined\n\n },\n // For user supplied transitions (if needed)\n transProps: {\n type: Object,\n default: null\n }\n },\n render: function render(h, _ref) {\n var children = _ref.children,\n data = _ref.data,\n props = _ref.props;\n var transProps = props.transProps;\n\n if (!isPlainObject(transProps)) {\n transProps = props.noFade ? NO_FADE_PROPS : FADE_PROPS;\n\n if (props.appear) {\n // Default the appear classes to equal the enter classes\n transProps = _objectSpread(_objectSpread({}, transProps), {}, {\n appear: true,\n appearClass: transProps.enterClass,\n appearActiveClass: transProps.enterActiveClass,\n appearToClass: transProps.enterToClass\n });\n }\n }\n\n transProps = _objectSpread(_objectSpread({\n mode: props.mode\n }, transProps), {}, {\n // We always need `css` true\n css: true\n });\n return h('transition', // Any transition event listeners will get merged here\n mergeData(data, {\n props: transProps\n }), children);\n }\n});\nexport default BVTransition;","export var SLOT_NAME_APPEND = 'append';\nexport var SLOT_NAME_BUTTON_CONTENT = 'button-content';\nexport var SLOT_NAME_DEFAULT = 'default';\nexport var SLOT_NAME_DESCRIPTION = 'description';\nexport var SLOT_NAME_FIRST = 'first';\nexport var SLOT_NAME_FOOTER = 'footer';\nexport var SLOT_NAME_HEADER = 'header';\nexport var SLOT_NAME_LABEL = 'label';\nexport var SLOT_NAME_LEAD = 'lead';\nexport var SLOT_NAME_PREPEND = 'prepend';\nexport var SLOT_NAME_TEXT = 'text';\nexport var SLOT_NAME_TITLE = 'title';","import identity from './identity';\nimport { concat } from './array';\nimport { isFunction } from './inspect'; // Note for functional components:\n// In functional components, `slots` is a function so it must be called\n// first before passing to the below methods. `scopedSlots` is always an\n// object and may be undefined (for Vue < 2.6.x)\n\n/**\n * Returns true if either scoped or unscoped named slot exists\n *\n * @param {String, Array} name or name[]\n * @param {Object} scopedSlots\n * @param {Object} slots\n * @returns {Array|undefined} VNodes\n */\n\nvar hasNormalizedSlot = function hasNormalizedSlot(names) {\n var $scopedSlots = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var $slots = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n // Ensure names is an array\n names = concat(names).filter(identity); // Returns true if the either a $scopedSlot or $slot exists with the specified name\n\n return names.some(function (name) {\n return $scopedSlots[name] || $slots[name];\n });\n};\n/**\n * Returns VNodes for named slot either scoped or unscoped\n *\n * @param {String, Array} name or name[]\n * @param {String} scope\n * @param {Object} scopedSlots\n * @param {Object} slots\n * @returns {Array|undefined} VNodes\n */\n\n\nvar normalizeSlot = function normalizeSlot(names) {\n var scope = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var $scopedSlots = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var $slots = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n // Ensure names is an array\n names = concat(names).filter(identity);\n var slot;\n\n for (var i = 0; i < names.length && !slot; i++) {\n var name = names[i];\n slot = $scopedSlots[name] || $slots[name];\n } // Note: in Vue 2.6.x, all named slots are also scoped slots\n\n\n return isFunction(slot) ? slot(scope) : slot;\n}; // Named exports\n\n\nexport { hasNormalizedSlot, normalizeSlot }; // Default export (backwards compatibility)\n\nexport default normalizeSlot;","import { SLOT_NAME_DEFAULT } from '../constants/slot-names';\nimport { hasNormalizedSlot as _hasNormalizedSlot, normalizeSlot as _normalizeSlot } from '../utils/normalize-slot';\nimport { concat } from '../utils/array';\nexport default {\n methods: {\n hasNormalizedSlot: function hasNormalizedSlot() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : SLOT_NAME_DEFAULT;\n // Returns true if the either a $scopedSlot or $slot exists with the specified name\n // `name` can be a string name or an array of names\n return _hasNormalizedSlot(name, this.$scopedSlots, this.$slots);\n },\n normalizeSlot: function normalizeSlot() {\n var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : SLOT_NAME_DEFAULT;\n var scope = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n // Returns an array of rendered VNodes if slot found.\n // Returns undefined if not found.\n // `name` can be a string name or an array of names\n var vNodes = _normalizeSlot(name, scope, this.$scopedSlots, this.$slots);\n\n return vNodes ? concat(vNodes) : vNodes;\n }\n }\n};","import { hasPassiveEventSupport } from './env';\nimport { isObject } from './inspect'; // --- Utils ---\n// Normalize event options based on support of passive option\n// Exported only for testing purposes\n\nexport var parseEventOptions = function parseEventOptions(options) {\n /* istanbul ignore else: can't test in JSDOM, as it supports passive */\n if (hasPassiveEventSupport) {\n return isObject(options) ? options : {\n capture: !!options || false\n };\n } else {\n // Need to translate to actual Boolean value\n return !!(isObject(options) ? options.capture : options);\n }\n}; // Attach an event listener to an element\n\nexport var eventOn = function eventOn(el, evtName, handler, options) {\n if (el && el.addEventListener) {\n el.addEventListener(evtName, handler, parseEventOptions(options));\n }\n}; // Remove an event listener from an element\n\nexport var eventOff = function eventOff(el, evtName, handler, options) {\n if (el && el.removeEventListener) {\n el.removeEventListener(evtName, handler, parseEventOptions(options));\n }\n}; // Utility method to add/remove a event listener based on first argument (boolean)\n// It passes all other arguments to the `eventOn()` or `eventOff` method\n\nexport var eventOnOff = function eventOnOff(on) {\n var method = on ? eventOn : eventOff;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n method.apply(void 0, args);\n}; // Utility method to prevent the default event handling and propagation\n\nexport var stopEvent = function stopEvent(evt) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref$preventDefault = _ref.preventDefault,\n preventDefault = _ref$preventDefault === void 0 ? true : _ref$preventDefault,\n _ref$propagation = _ref.propagation,\n propagation = _ref$propagation === void 0 ? true : _ref$propagation,\n _ref$immediatePropaga = _ref.immediatePropagation,\n immediatePropagation = _ref$immediatePropaga === void 0 ? false : _ref$immediatePropaga;\n\n if (preventDefault) {\n evt.preventDefault();\n }\n\n if (propagation) {\n evt.stopPropagation();\n }\n\n if (immediatePropagation) {\n evt.stopImmediatePropagation();\n }\n};","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_BUTTON_CLOSE } from '../../constants/components';\nimport { SLOT_NAME_DEFAULT } from '../../constants/slot-names';\nimport Vue, { mergeData } from '../../utils/vue';\nimport { getComponentConfig } from '../../utils/config';\nimport { stopEvent } from '../../utils/events';\nimport { isEvent } from '../../utils/inspect';\nimport { hasNormalizedSlot, normalizeSlot } from '../../utils/normalize-slot';\nvar props = {\n content: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_BUTTON_CLOSE, 'content');\n }\n },\n disabled: {\n type: Boolean,\n default: false\n },\n ariaLabel: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_BUTTON_CLOSE, 'ariaLabel');\n }\n },\n textVariant: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_BUTTON_CLOSE, 'textVariant');\n }\n }\n}; // @vue/component\n\nexport var BButtonClose = /*#__PURE__*/Vue.extend({\n name: NAME_BUTTON_CLOSE,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data,\n slots = _ref.slots,\n scopedSlots = _ref.scopedSlots;\n var $slots = slots();\n var $scopedSlots = scopedSlots || {};\n var componentData = {\n staticClass: 'close',\n class: _defineProperty({}, \"text-\".concat(props.textVariant), props.textVariant),\n attrs: {\n type: 'button',\n disabled: props.disabled,\n 'aria-label': props.ariaLabel ? String(props.ariaLabel) : null\n },\n on: {\n click: function click(evt) {\n // Ensure click on button HTML content is also disabled\n\n /* istanbul ignore if: bug in JSDOM still emits click on inner element */\n if (props.disabled && isEvent(evt)) {\n stopEvent(evt);\n }\n }\n }\n }; // Careful not to override the default slot with innerHTML\n\n if (!hasNormalizedSlot(SLOT_NAME_DEFAULT, $scopedSlots, $slots)) {\n componentData.domProps = {\n innerHTML: props.content\n };\n }\n\n return h('button', mergeData(data, componentData), normalizeSlot(SLOT_NAME_DEFAULT, {}, $scopedSlots, $slots));\n }\n});","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_ALERT } from '../../constants/components';\nimport Vue from '../../utils/vue';\nimport { getComponentConfig } from '../../utils/config';\nimport { requestAF } from '../../utils/dom';\nimport { isBoolean, isNumeric } from '../../utils/inspect';\nimport { toInteger } from '../../utils/number';\nimport BVTransition from '../../utils/bv-transition';\nimport normalizeSlotMixin from '../../mixins/normalize-slot';\nimport { BButtonClose } from '../button/button-close'; // Convert `show` value to a number\n\nvar parseCountDown = function parseCountDown(show) {\n if (show === '' || isBoolean(show)) {\n return 0;\n }\n\n show = toInteger(show, 0);\n return show > 0 ? show : 0;\n}; // Convert `show` value to a boolean\n\n\nvar parseShow = function parseShow(show) {\n if (show === '' || show === true) {\n return true;\n }\n\n if (toInteger(show, 0) < 1) {\n // Boolean will always return false for the above comparison\n return false;\n }\n\n return !!show;\n}; // @vue/component\n\n\nexport var BAlert = /*#__PURE__*/Vue.extend({\n name: NAME_ALERT,\n mixins: [normalizeSlotMixin],\n model: {\n prop: 'show',\n event: 'input'\n },\n props: {\n variant: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_ALERT, 'variant');\n }\n },\n dismissible: {\n type: Boolean,\n default: false\n },\n dismissLabel: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_ALERT, 'dismissLabel');\n }\n },\n show: {\n type: [Boolean, Number, String],\n default: false\n },\n fade: {\n type: Boolean,\n default: false\n }\n },\n data: function data() {\n return {\n countDown: 0,\n countDownTimeout: null,\n // If initially shown, we need to set these for SSR\n localShow: parseShow(this.show)\n };\n },\n watch: {\n show: function show(newVal) {\n this.countDown = parseCountDown(newVal);\n this.localShow = parseShow(newVal);\n },\n countDown: function countDown(newVal) {\n var _this = this;\n\n this.clearCountDownInterval();\n\n if (isNumeric(this.show)) {\n // Ignore if this.show transitions to a boolean value.\n this.$emit('dismiss-count-down', newVal);\n\n if (this.show !== newVal) {\n // Update the v-model if needed\n this.$emit('input', newVal);\n }\n\n if (newVal > 0) {\n this.localShow = true;\n this.countDownTimeout = setTimeout(function () {\n _this.countDown--;\n }, 1000);\n } else {\n // Slightly delay the hide to allow any UI updates\n this.$nextTick(function () {\n requestAF(function () {\n _this.localShow = false;\n });\n });\n }\n }\n },\n localShow: function localShow(newVal) {\n if (!newVal && (this.dismissible || isNumeric(this.show))) {\n // Only emit dismissed events for dismissible or auto dismissing alerts\n this.$emit('dismissed');\n }\n\n if (!isNumeric(this.show) && this.show !== newVal) {\n // Only emit booleans if we weren't passed a number via `this.show`\n this.$emit('input', newVal);\n }\n }\n },\n created: function created() {\n this.countDown = parseCountDown(this.show);\n this.localShow = parseShow(this.show);\n },\n mounted: function mounted() {\n this.countDown = parseCountDown(this.show);\n this.localShow = parseShow(this.show);\n },\n beforeDestroy: function beforeDestroy() {\n this.clearCountDownInterval();\n },\n methods: {\n dismiss: function dismiss() {\n this.clearCountDownInterval();\n this.countDown = 0;\n this.localShow = false;\n },\n clearCountDownInterval: function clearCountDownInterval() {\n if (this.countDownTimeout) {\n clearTimeout(this.countDownTimeout);\n this.countDownTimeout = null;\n }\n }\n },\n render: function render(h) {\n var $alert; // undefined\n\n if (this.localShow) {\n var $dismissBtn = h();\n\n if (this.dismissible) {\n // Add dismiss button\n $dismissBtn = h(BButtonClose, {\n attrs: {\n 'aria-label': this.dismissLabel\n },\n on: {\n click: this.dismiss\n }\n }, [this.normalizeSlot('dismiss')]);\n }\n\n $alert = h('div', {\n key: this._uid,\n staticClass: 'alert',\n class: _defineProperty({\n 'alert-dismissible': this.dismissible\n }, \"alert-\".concat(this.variant), this.variant),\n attrs: {\n role: 'alert',\n 'aria-live': 'polite',\n 'aria-atomic': true\n }\n }, [$dismissBtn, this.normalizeSlot()]);\n $alert = [$alert];\n }\n\n return h(BVTransition, {\n props: {\n noFade: !this.fade\n }\n }, $alert);\n }\n});","import { BAlert } from './alert';\nimport { pluginFactory } from '../../utils/plugins';\nvar AlertPlugin = /*#__PURE__*/pluginFactory({\n components: {\n BAlert: BAlert\n }\n});\nexport { AlertPlugin, BAlert };","// Math utilty functions\nexport var mathMin = Math.min;\nexport var mathMax = Math.max;\nexport var mathAbs = Math.abs;\nexport var mathCeil = Math.ceil;\nexport var mathFloor = Math.floor;\nexport var mathPow = Math.pow;\nexport var mathRound = Math.round;","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport { NAME_ASPECT } from '../../constants/components';\nimport { RX_ASPECT, RX_ASPECT_SEPARATOR } from '../../constants/regex';\nimport Vue from '../../utils/vue';\nimport { mathAbs } from '../../utils/math';\nimport { toFloat } from '../../utils/number';\nimport normalizeSlotMixin from '../../mixins/normalize-slot'; // --- Constants ---\n\nvar CLASS_NAME = 'b-aspect'; // --- Main Component ---\n\nexport var BAspect = /*#__PURE__*/Vue.extend({\n name: NAME_ASPECT,\n mixins: [normalizeSlotMixin],\n props: {\n aspect: {\n // Accepts a number (i.e. `16 / 9`, `1`, `4 / 3`)\n // Or a string (i.e. '16/9', '16:9', '4:3' '1:1')\n type: [Number, String],\n default: '1:1'\n },\n tag: {\n type: String,\n default: 'div'\n }\n },\n computed: {\n padding: function padding() {\n var aspect = this.aspect;\n var ratio = 1;\n\n if (RX_ASPECT.test(aspect)) {\n // Width and/or Height can be a decimal value below `1`, so\n // we only fallback to `1` if the value is `0` or `NaN`\n var _aspect$split$map = aspect.split(RX_ASPECT_SEPARATOR).map(function (v) {\n return toFloat(v) || 1;\n }),\n _aspect$split$map2 = _slicedToArray(_aspect$split$map, 2),\n width = _aspect$split$map2[0],\n height = _aspect$split$map2[1];\n\n ratio = width / height;\n } else {\n ratio = toFloat(aspect) || 1;\n }\n\n return \"\".concat(100 / mathAbs(ratio), \"%\");\n }\n },\n render: function render(h) {\n var $sizer = h('div', {\n staticClass: \"\".concat(CLASS_NAME, \"-sizer flex-grow-1\"),\n style: {\n paddingBottom: this.padding,\n height: 0\n }\n });\n var $content = h('div', {\n staticClass: \"\".concat(CLASS_NAME, \"-content flex-grow-1 w-100 mw-100\"),\n style: {\n marginLeft: '-100%'\n }\n }, [this.normalizeSlot()]);\n return h(this.tag, {\n staticClass: \"\".concat(CLASS_NAME, \" d-flex\")\n }, [$sizer, $content]);\n }\n});","import { BAspect } from './aspect';\nimport { pluginFactory } from '../../utils/plugins';\nvar AspectPlugin = /*#__PURE__*/pluginFactory({\n components: {\n BAspect: BAspect\n }\n});\nexport { AspectPlugin, BAspect };","import identity from './identity';\nimport { isArray, isObject } from './inspect';\nimport { clone, hasOwnProperty, keys } from './object';\nimport { lowerFirst, upperFirst } from './string'; // Prefix a property\n\nexport var prefixPropName = function prefixPropName(prefix, value) {\n return prefix + upperFirst(value);\n}; // Remove a prefix from a property\n\nexport var unprefixPropName = function unprefixPropName(prefix, value) {\n return lowerFirst(value.replace(prefix, ''));\n}; // Suffix can be a falsey value so nothing is appended to string\n// (helps when looping over props & some shouldn't change)\n// Use data last parameters to allow for currying\n\nexport var suffixPropName = function suffixPropName(suffix, str) {\n return str + (suffix ? upperFirst(suffix) : '');\n}; // Copies props from one array/object to a new array/object\n// Prop values are also cloned as new references to prevent possible\n// mutation of original prop object values\n// Optionally accepts a function to transform the prop name\n\nexport var copyProps = function copyProps(props) {\n var transformFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : identity;\n\n if (isArray(props)) {\n return props.map(transformFn);\n }\n\n var copied = {};\n\n for (var prop in props) {\n /* istanbul ignore else */\n if (hasOwnProperty(props, prop)) {\n // If the prop value is an object, do a shallow clone\n // to prevent potential mutations to the original object\n copied[transformFn(prop)] = isObject(props[prop]) ? clone(props[prop]) : props[prop];\n }\n }\n\n return copied;\n}; // Given an array of properties or an object of property keys,\n// plucks all the values off the target object, returning a new object\n// that has props that reference the original prop values\n\nexport var pluckProps = function pluckProps(keysToPluck, objToPluck) {\n var transformFn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : identity;\n return (isArray(keysToPluck) ? keysToPluck.slice() : keys(keysToPluck)).reduce(function (memo, prop) {\n memo[transformFn(prop)] = objToPluck[prop];\n return memo;\n }, {});\n};","import { isTag } from './dom';\nimport { isArray, isNull, isPlainObject, isString, isUndefined } from './inspect';\nimport { keys } from './object';\nimport { toString } from './string';\nvar ANCHOR_TAG = 'a'; // Precompile RegExp\n\nvar commaRE = /%2C/g;\nvar encodeReserveRE = /[!'()*]/g;\nvar plusRE = /\\+/g;\nvar queryStartRE = /^(\\?|#|&)/; // Method to replace reserved chars\n\nvar encodeReserveReplacer = function encodeReserveReplacer(c) {\n return '%' + c.charCodeAt(0).toString(16);\n}; // Fixed encodeURIComponent which is more conformant to RFC3986:\n// - escapes [!'()*]\n// - preserve commas\n\n\nvar encode = function encode(str) {\n return encodeURIComponent(toString(str)).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');\n};\n\nvar decode = decodeURIComponent; // Stringifies an object of query parameters\n// See: https://github.com/vuejs/vue-router/blob/dev/src/util/query.js\n\nexport var stringifyQueryObj = function stringifyQueryObj(obj) {\n if (!isPlainObject(obj)) {\n return '';\n }\n\n var query = keys(obj).map(function (key) {\n var val = obj[key];\n\n if (isUndefined(val)) {\n return '';\n } else if (isNull(val)) {\n return encode(key);\n } else if (isArray(val)) {\n return val.reduce(function (results, val2) {\n if (isNull(val2)) {\n results.push(encode(key));\n } else if (!isUndefined(val2)) {\n // Faster than string interpolation\n results.push(encode(key) + '=' + encode(val2));\n }\n\n return results;\n }, []).join('&');\n } // Faster than string interpolation\n\n\n return encode(key) + '=' + encode(val);\n })\n /* must check for length, as we only want to filter empty strings, not things that look falsey! */\n .filter(function (x) {\n return x.length > 0;\n }).join('&');\n return query ? \"?\".concat(query) : '';\n};\nexport var parseQuery = function parseQuery(query) {\n var parsed = {};\n query = toString(query).trim().replace(queryStartRE, '');\n\n if (!query) {\n return parsed;\n }\n\n query.split('&').forEach(function (param) {\n var parts = param.replace(plusRE, ' ').split('=');\n var key = decode(parts.shift());\n var val = parts.length > 0 ? decode(parts.join('=')) : null;\n\n if (isUndefined(parsed[key])) {\n parsed[key] = val;\n } else if (isArray(parsed[key])) {\n parsed[key].push(val);\n } else {\n parsed[key] = [parsed[key], val];\n }\n });\n return parsed;\n};\nexport var isLink = function isLink(props) {\n return !!(props.href || props.to);\n};\nexport var isRouterLink = function isRouterLink(tag) {\n return !isTag(tag, ANCHOR_TAG);\n};\nexport var computeTag = function computeTag() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n to = _ref.to,\n disabled = _ref.disabled,\n routerComponentName = _ref.routerComponentName;\n\n var thisOrParent = arguments.length > 1 ? arguments[1] : undefined;\n var hasRouter = thisOrParent.$router;\n\n if (!hasRouter || hasRouter && disabled || hasRouter && !to) {\n return ANCHOR_TAG;\n } // TODO:\n // Check registered components for existence of user supplied router link component name\n // We would need to check PascalCase, kebab-case, and camelCase versions of name:\n // const name = routerComponentName\n // const names = [name, PascalCase(name), KebabCase(name), CamelCase(name)]\n // exists = names.some(name => !!thisOrParent.$options.components[name])\n // And may want to cache the result for performance or we just let the render fail\n // if the component is not registered\n\n\n return routerComponentName || (thisOrParent.$nuxt ? 'nuxt-link' : 'router-link');\n};\nexport var computeRel = function computeRel() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n target = _ref2.target,\n rel = _ref2.rel;\n\n if (target === '_blank' && isNull(rel)) {\n return 'noopener';\n }\n\n return rel || null;\n};\nexport var computeHref = function computeHref() {\n var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n href = _ref3.href,\n to = _ref3.to;\n\n var tag = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ANCHOR_TAG;\n var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '#';\n var toFallback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '/';\n\n // We've already checked the $router in computeTag(), so isRouterLink() indicates a live router.\n // When deferring to Vue Router's router-link, don't use the href attribute at all.\n // We return null, and then remove href from the attributes passed to router-link\n if (isRouterLink(tag)) {\n return null;\n } // Return `href` when explicitly provided\n\n\n if (href) {\n return href;\n } // Reconstruct `href` when `to` used, but no router\n\n\n if (to) {\n // Fallback to `to` prop (if `to` is a string)\n if (isString(to)) {\n return to || toFallback;\n } // Fallback to `to.path + to.query + to.hash` prop (if `to` is an object)\n\n\n if (isPlainObject(to) && (to.path || to.query || to.hash)) {\n var path = toString(to.path);\n var query = stringifyQueryObj(to.query);\n var hash = toString(to.hash);\n hash = !hash || hash.charAt(0) === '#' ? hash : \"#\".concat(hash);\n return \"\".concat(path).concat(query).concat(hash) || toFallback;\n }\n } // If nothing is provided return the fallback\n\n\n return fallback;\n};","export var CODE_BACKSPACE = 8;\nexport var CODE_BREAK = 19;\nexport var CODE_DELETE = 46;\nexport var CODE_DOWN = 40;\nexport var CODE_END = 35;\nexport var CODE_ENTER = 13;\nexport var CODE_ESC = 27;\nexport var CODE_HOME = 36;\nexport var CODE_LEFT = 37;\nexport var CODE_PAGEDOWN = 34;\nexport var CODE_PAGEUP = 33;\nexport var CODE_RIGHT = 39;\nexport var CODE_SPACE = 32;\nexport var CODE_UP = 38;","import { hasOwnProperty, keys } from './object';\nimport { isArray, isDate, isObject } from './inspect'; // Assumes both a and b are arrays!\n// Handles when arrays are \"sparse\" (array.every(...) doesn't handle sparse)\n\nvar compareArrays = function compareArrays(a, b) {\n if (a.length !== b.length) {\n return false;\n }\n\n var equal = true;\n\n for (var i = 0; equal && i < a.length; i++) {\n equal = looseEqual(a[i], b[i]);\n }\n\n return equal;\n};\n/**\n * Check if two values are loosely equal - that is,\n * if they are plain objects, do they have the same shape?\n * Returns boolean true or false\n */\n\n\nvar looseEqual = function looseEqual(a, b) {\n if (a === b) {\n return true;\n }\n\n var aValidType = isDate(a);\n var bValidType = isDate(b);\n\n if (aValidType || bValidType) {\n return aValidType && bValidType ? a.getTime() === b.getTime() : false;\n }\n\n aValidType = isArray(a);\n bValidType = isArray(b);\n\n if (aValidType || bValidType) {\n return aValidType && bValidType ? compareArrays(a, b) : false;\n }\n\n aValidType = isObject(a);\n bValidType = isObject(b);\n\n if (aValidType || bValidType) {\n /* istanbul ignore if: this if will probably never be called */\n if (!aValidType || !bValidType) {\n return false;\n }\n\n var aKeysCount = keys(a).length;\n var bKeysCount = keys(b).length;\n\n if (aKeysCount !== bKeysCount) {\n return false;\n }\n\n for (var key in a) {\n var aHasKey = hasOwnProperty(a, key);\n var bHasKey = hasOwnProperty(b, key);\n\n if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key])) {\n return false;\n }\n }\n }\n\n return String(a) === String(b);\n};\n\nexport default looseEqual;","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport cloneDeep from './clone-deep';\nimport looseEqual from './loose-equal';\nimport { hasOwnProperty, keys } from './object';\n\nvar isEmpty = function isEmpty(value) {\n return !value || keys(value).length === 0;\n};\n\nexport var makePropWatcher = function makePropWatcher(propName) {\n return {\n handler: function handler(newValue, oldValue) {\n if (looseEqual(newValue, oldValue)) {\n return;\n }\n\n if (isEmpty(newValue) || isEmpty(oldValue)) {\n this[propName] = cloneDeep(newValue);\n return;\n }\n\n for (var key in oldValue) {\n if (!hasOwnProperty(newValue, key)) {\n this.$delete(this.$data[propName], key);\n }\n }\n\n for (var _key in newValue) {\n this.$set(this.$data[propName], _key, newValue[_key]);\n }\n }\n };\n};\nexport var makePropCacheMixin = function makePropCacheMixin(propName, proxyPropName) {\n return {\n data: function data() {\n return _defineProperty({}, proxyPropName, cloneDeep(this[propName]));\n },\n watch: _defineProperty({}, propName, makePropWatcher(proxyPropName))\n };\n};","import { makePropCacheMixin } from '../utils/cache';\nexport default makePropCacheMixin('$attrs', 'bvAttrs');","import { makePropCacheMixin } from '../utils/cache';\nexport default makePropCacheMixin('$listeners', 'bvListeners');","function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_LINK } from '../../constants/components';\nimport Vue from '../../utils/vue';\nimport { concat } from '../../utils/array';\nimport { getComponentConfig } from '../../utils/config';\nimport { attemptBlur, attemptFocus } from '../../utils/dom';\nimport { stopEvent } from '../../utils/events';\nimport { isBoolean, isEvent, isFunction, isUndefined } from '../../utils/inspect';\nimport { pluckProps } from '../../utils/props';\nimport { computeHref, computeRel, computeTag, isRouterLink as _isRouterLink } from '../../utils/router';\nimport attrsMixin from '../../mixins/attrs';\nimport listenersMixin from '../../mixins/listeners';\nimport normalizeSlotMixin from '../../mixins/normalize-slot'; // --- Props ---\n// specific props\n\nexport var routerLinkProps = {\n to: {\n type: [String, Object],\n default: null\n },\n append: {\n type: Boolean,\n default: false\n },\n replace: {\n type: Boolean,\n default: false\n },\n event: {\n type: [String, Array],\n default: 'click'\n },\n activeClass: {\n type: String // default: undefined\n\n },\n exact: {\n type: Boolean,\n default: false\n },\n exactActiveClass: {\n type: String // default: undefined\n\n },\n routerTag: {\n type: String,\n default: 'a'\n }\n}; // specific props\n\nexport var nuxtLinkProps = {\n prefetch: {\n type: Boolean,\n // Must be `null` to fall back to the value defined in the\n // `nuxt.config.js` configuration file for `router.prefetchLinks`\n // We convert `null` to `undefined`, so that Nuxt.js will use the\n // compiled default. Vue treats `undefined` as default of `false`\n // for Boolean props, so we must set it as `null` here to be a\n // true tri-state prop\n default: null\n },\n noPrefetch: {\n type: Boolean,\n default: false\n }\n};\nexport var props = _objectSpread(_objectSpread(_objectSpread({\n href: {\n type: String,\n default: null\n },\n rel: {\n type: String,\n // Must be `null` if no value provided\n default: null\n },\n target: {\n type: String,\n default: '_self'\n },\n active: {\n type: Boolean,\n default: false\n },\n disabled: {\n type: Boolean,\n default: false\n }\n}, routerLinkProps), nuxtLinkProps), {}, {\n // To support 3rd party router links based on `` (i.e. `g-link` for Gridsome)\n // Default is to auto choose between `` and ``\n // Gridsome doesn't provide a mechanism to auto detect and has caveats\n // such as not supporting FQDN URLs or hash only URLs\n routerComponentName: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_LINK, 'routerComponentName');\n }\n }\n}); // --- Main component ---\n// @vue/component\n\nexport var BLink = /*#__PURE__*/Vue.extend({\n name: NAME_LINK,\n // Mixin order is important!\n mixins: [attrsMixin, listenersMixin, normalizeSlotMixin],\n inheritAttrs: false,\n props: props,\n computed: {\n computedTag: function computedTag() {\n // We don't pass `this` as the first arg as we need reactivity of the props\n var to = this.to,\n disabled = this.disabled,\n routerComponentName = this.routerComponentName;\n return computeTag({\n to: to,\n disabled: disabled,\n routerComponentName: routerComponentName\n }, this);\n },\n isRouterLink: function isRouterLink() {\n return _isRouterLink(this.computedTag);\n },\n computedRel: function computedRel() {\n // We don't pass `this` as the first arg as we need reactivity of the props\n return computeRel({\n target: this.target,\n rel: this.rel\n });\n },\n computedHref: function computedHref() {\n // We don't pass `this` as the first arg as we need reactivity of the props\n return computeHref({\n to: this.to,\n href: this.href\n }, this.computedTag);\n },\n computedProps: function computedProps() {\n var prefetch = this.prefetch;\n return this.isRouterLink ? _objectSpread(_objectSpread({}, pluckProps(_objectSpread(_objectSpread({}, routerLinkProps), nuxtLinkProps), this)), {}, {\n // Coerce `prefetch` value `null` to be `undefined`\n prefetch: isBoolean(prefetch) ? prefetch : undefined,\n // Pass `router-tag` as `tag` prop\n tag: this.routerTag\n }) : {};\n },\n computedAttrs: function computedAttrs() {\n var bvAttrs = this.bvAttrs,\n href = this.computedHref,\n rel = this.computedRel,\n disabled = this.disabled,\n target = this.target,\n routerTag = this.routerTag,\n isRouterLink = this.isRouterLink;\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, bvAttrs), href ? {\n href: href\n } : {}), isRouterLink && routerTag !== 'a' && routerTag !== 'area' ? {} : {\n rel: rel,\n target: target\n }), {}, {\n tabindex: disabled ? '-1' : isUndefined(bvAttrs.tabindex) ? null : bvAttrs.tabindex,\n 'aria-disabled': disabled ? 'true' : null\n });\n },\n computedListeners: function computedListeners() {\n return _objectSpread(_objectSpread({}, this.bvListeners), {}, {\n // We want to overwrite any click handler since our callback\n // will invoke the user supplied handler(s) if `!this.disabled`\n click: this.onClick\n });\n }\n },\n methods: {\n onClick: function onClick(evt) {\n var _arguments = arguments;\n var evtIsEvent = isEvent(evt);\n var isRouterLink = this.isRouterLink;\n var suppliedHandler = this.bvListeners.click;\n\n if (evtIsEvent && this.disabled) {\n // Stop event from bubbling up\n // Kill the event loop attached to this specific `EventTarget`\n // Needed to prevent `vue-router` for doing its thing\n stopEvent(evt, {\n immediatePropagation: true\n });\n } else {\n /* istanbul ignore next: difficult to test, but we know it works */\n if (isRouterLink && evt.currentTarget.__vue__) {\n // Router links do not emit instance `click` events, so we\n // add in an `$emit('click', evt)` on its Vue instance\n evt.currentTarget.__vue__.$emit('click', evt);\n } // Call the suppliedHandler(s), if any provided\n\n\n concat(suppliedHandler).filter(function (h) {\n return isFunction(h);\n }).forEach(function (handler) {\n handler.apply(void 0, _toConsumableArray(_arguments));\n }); // Emit the global `$root` click event\n\n this.$root.$emit('clicked::link', evt);\n } // Stop scroll-to-top behavior or navigation on\n // regular links when href is just '#'\n\n\n if (evtIsEvent && !isRouterLink && this.computedHref === '#') {\n stopEvent(evt, {\n propagation: false\n });\n }\n },\n focus: function focus() {\n attemptFocus(this.$el);\n },\n blur: function blur() {\n attemptBlur(this.$el);\n }\n },\n render: function render(h) {\n var active = this.active,\n disabled = this.disabled;\n return h(this.computedTag, _defineProperty({\n class: {\n active: active,\n disabled: disabled\n },\n attrs: this.computedAttrs,\n props: this.computedProps\n }, this.isRouterLink ? 'nativeOn' : 'on', this.computedListeners), this.normalizeSlot());\n }\n});","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_BUTTON } from '../../constants/components';\nimport { CODE_ENTER, CODE_SPACE } from '../../constants/key-codes';\nimport Vue, { mergeData } from '../../utils/vue';\nimport { concat } from '../../utils/array';\nimport { getComponentConfig } from '../../utils/config';\nimport { addClass, isTag, removeClass } from '../../utils/dom';\nimport { stopEvent } from '../../utils/events';\nimport { isBoolean, isEvent, isFunction } from '../../utils/inspect';\nimport { omit } from '../../utils/object';\nimport { pluckProps } from '../../utils/props';\nimport { isLink as isLinkStrict } from '../../utils/router';\nimport { BLink, props as BLinkProps } from '../link/link'; // --- Props ---\n\nvar linkProps = omit(BLinkProps, ['event', 'routerTag']);\ndelete linkProps.href.default;\ndelete linkProps.to.default;\nvar btnProps = {\n block: {\n type: Boolean,\n default: false\n },\n disabled: {\n type: Boolean,\n default: false\n },\n size: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_BUTTON, 'size');\n }\n },\n variant: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_BUTTON, 'variant');\n }\n },\n type: {\n type: String,\n default: 'button'\n },\n tag: {\n type: String,\n default: 'button'\n },\n pill: {\n type: Boolean,\n default: false\n },\n squared: {\n type: Boolean,\n default: false\n },\n pressed: {\n // Tri-state: `true`, `false` or `null`\n // => On, off, not a toggle\n type: Boolean,\n default: null\n }\n};\nexport var props = _objectSpread(_objectSpread({}, btnProps), linkProps); // --- Helper methods ---\n// Focus handler for toggle buttons\n// Needs class of 'focus' when focused\n\nvar handleFocus = function handleFocus(evt) {\n if (evt.type === 'focusin') {\n addClass(evt.target, 'focus');\n } else if (evt.type === 'focusout') {\n removeClass(evt.target, 'focus');\n }\n}; // Is the requested button a link?\n// If tag prop is set to `a`, we use a to get proper disabled handling\n\n\nvar isLink = function isLink(props) {\n return isLinkStrict(props) || isTag(props.tag, 'a');\n}; // Is the button to be a toggle button?\n\n\nvar isToggle = function isToggle(props) {\n return isBoolean(props.pressed);\n}; // Is the button \"really\" a button?\n\n\nvar isButton = function isButton(props) {\n return !(isLink(props) || props.tag && !isTag(props.tag, 'button'));\n}; // Is the requested tag not a button or link?\n\n\nvar isNonStandardTag = function isNonStandardTag(props) {\n return !isLink(props) && !isButton(props);\n}; // Compute required classes (non static classes)\n\n\nvar computeClass = function computeClass(props) {\n var _ref;\n\n return [\"btn-\".concat(props.variant || getComponentConfig(NAME_BUTTON, 'variant')), (_ref = {}, _defineProperty(_ref, \"btn-\".concat(props.size), props.size), _defineProperty(_ref, 'btn-block', props.block), _defineProperty(_ref, 'rounded-pill', props.pill), _defineProperty(_ref, 'rounded-0', props.squared && !props.pill), _defineProperty(_ref, \"disabled\", props.disabled), _defineProperty(_ref, \"active\", props.pressed), _ref)];\n}; // Compute the link props to pass to b-link (if required)\n\n\nvar computeLinkProps = function computeLinkProps(props) {\n return isLink(props) ? pluckProps(linkProps, props) : {};\n}; // Compute the attributes for a button\n\n\nvar computeAttrs = function computeAttrs(props, data) {\n var button = isButton(props);\n var link = isLink(props);\n var toggle = isToggle(props);\n var nonStandardTag = isNonStandardTag(props);\n var hashLink = link && props.href === '#';\n var role = data.attrs && data.attrs.role ? data.attrs.role : null;\n var tabindex = data.attrs ? data.attrs.tabindex : null;\n\n if (nonStandardTag || hashLink) {\n tabindex = '0';\n }\n\n return {\n // Type only used for \"real\" buttons\n type: button && !link ? props.type : null,\n // Disabled only set on \"real\" buttons\n disabled: button ? props.disabled : null,\n // We add a role of button when the tag is not a link or button for ARIA\n // Don't bork any role provided in `data.attrs` when `isLink` or `isButton`\n // Except when link has `href` of `#`\n role: nonStandardTag || hashLink ? 'button' : role,\n // We set the `aria-disabled` state for non-standard tags\n 'aria-disabled': nonStandardTag ? String(props.disabled) : null,\n // For toggles, we need to set the pressed state for ARIA\n 'aria-pressed': toggle ? String(props.pressed) : null,\n // `autocomplete=\"off\"` is needed in toggle mode to prevent some browsers\n // from remembering the previous setting when using the back button\n autocomplete: toggle ? 'off' : null,\n // `tabindex` is used when the component is not a button\n // Links are tabbable, but don't allow disabled, while non buttons or links\n // are not tabbable, so we mimic that functionality by disabling tabbing\n // when disabled, and adding a `tabindex=\"0\"` to non buttons or non links\n tabindex: props.disabled && !button ? '-1' : tabindex\n };\n}; // --- Main component ---\n// @vue/component\n\n\nexport var BButton = /*#__PURE__*/Vue.extend({\n name: NAME_BUTTON,\n functional: true,\n props: props,\n render: function render(h, _ref2) {\n var props = _ref2.props,\n data = _ref2.data,\n listeners = _ref2.listeners,\n children = _ref2.children;\n var toggle = isToggle(props);\n var link = isLink(props);\n var nonStandardTag = isNonStandardTag(props);\n var hashLink = link && props.href === '#';\n var on = {\n keydown: function keydown(evt) {\n // When the link is a `href=\"#\"` or a non-standard tag (has `role=\"button\"`),\n // we add a keydown handlers for CODE_SPACE/CODE_ENTER\n\n /* istanbul ignore next */\n if (props.disabled || !(nonStandardTag || hashLink)) {\n return;\n }\n\n var keyCode = evt.keyCode; // Add CODE_SPACE handler for `href=\"#\"` and CODE_ENTER handler for non-standard tags\n\n if (keyCode === CODE_SPACE || keyCode === CODE_ENTER && nonStandardTag) {\n var target = evt.currentTarget || evt.target;\n stopEvent(evt, {\n propagation: false\n });\n target.click();\n }\n },\n click: function click(evt) {\n /* istanbul ignore if: blink/button disabled should handle this */\n if (props.disabled && isEvent(evt)) {\n stopEvent(evt);\n } else if (toggle && listeners && listeners['update:pressed']) {\n // Send `.sync` updates to any \"pressed\" prop (if `.sync` listeners)\n // `concat()` will normalize the value to an array without\n // double wrapping an array value in an array\n concat(listeners['update:pressed']).forEach(function (fn) {\n if (isFunction(fn)) {\n fn(!props.pressed);\n }\n });\n }\n }\n };\n\n if (toggle) {\n on.focusin = handleFocus;\n on.focusout = handleFocus;\n }\n\n var componentData = {\n staticClass: 'btn',\n class: computeClass(props),\n props: computeLinkProps(props),\n attrs: computeAttrs(props, data),\n on: on\n };\n return h(link ? BLink : props.tag, mergeData(data, componentData), children);\n }\n});","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_ICON_BASE } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nimport identity from '../../utils/identity';\nimport { isUndefinedOrNull } from '../../utils/inspect';\nimport { mathMax } from '../../utils/math';\nimport { toFloat } from '../../utils/number'; // Common icon props (should be cloned/spread before using)\n\nexport var commonIconProps = {\n title: {\n type: String // default: null\n\n },\n variant: {\n type: String,\n default: null\n },\n fontScale: {\n type: [Number, String],\n default: 1\n },\n scale: {\n type: [Number, String],\n default: 1\n },\n rotate: {\n type: [Number, String],\n default: 0\n },\n flipH: {\n type: Boolean,\n default: false\n },\n flipV: {\n type: Boolean,\n default: false\n },\n shiftH: {\n type: [Number, String],\n default: 0\n },\n shiftV: {\n type: [Number, String],\n default: 0\n },\n animation: {\n type: String,\n default: null\n }\n}; // Base attributes needed on all icons\n\nvar baseAttrs = {\n viewBox: '0 0 16 16',\n width: '1em',\n height: '1em',\n focusable: 'false',\n role: 'img',\n 'aria-label': 'icon'\n}; // Attributes that are nulled out when stacked\n\nvar stackedAttrs = {\n width: null,\n height: null,\n focusable: null,\n role: null,\n 'aria-label': null\n}; // Shared private base component to reduce bundle/runtime size\n// @vue/component\n\nexport var BVIconBase = /*#__PURE__*/Vue.extend({\n name: NAME_ICON_BASE,\n functional: true,\n props: _objectSpread({\n content: {\n type: String\n },\n stacked: {\n type: Boolean,\n default: false\n }\n }, commonIconProps),\n render: function render(h, _ref) {\n var _class;\n\n var data = _ref.data,\n props = _ref.props,\n children = _ref.children;\n var fontScale = mathMax(toFloat(props.fontScale, 1), 0) || 1;\n var scale = mathMax(toFloat(props.scale, 1), 0) || 1;\n var rotate = toFloat(props.rotate, 0);\n var shiftH = toFloat(props.shiftH, 0);\n var shiftV = toFloat(props.shiftV, 0);\n var flipH = props.flipH;\n var flipV = props.flipV;\n var animation = props.animation; // Compute the transforms\n // Note that order is important as SVG transforms are applied in order from\n // left to right and we want flipping/scale to occur before rotation\n // Note shifting is applied separately\n // Assumes that the viewbox is `0 0 16 16` (`8 8` is the center)\n\n var hasScale = flipH || flipV || scale !== 1;\n var hasTransforms = hasScale || rotate;\n var hasShift = shiftH || shiftV;\n var transforms = [hasTransforms ? 'translate(8 8)' : null, hasScale ? \"scale(\".concat((flipH ? -1 : 1) * scale, \" \").concat((flipV ? -1 : 1) * scale, \")\") : null, rotate ? \"rotate(\".concat(rotate, \")\") : null, hasTransforms ? 'translate(-8 -8)' : null].filter(identity); // Handling stacked icons\n\n var isStacked = props.stacked;\n var hasContent = !isUndefinedOrNull(props.content); // We wrap the content in a `` for handling the transforms (except shift)\n\n var $inner = h('g', {\n attrs: {\n transform: transforms.join(' ') || null\n },\n domProps: hasContent ? {\n innerHTML: props.content || ''\n } : {}\n }, children); // If needed, we wrap in an additional `` in order to handle the shifting\n\n if (hasShift) {\n $inner = h('g', {\n attrs: {\n transform: \"translate(\".concat(16 * shiftH / 16, \" \").concat(-16 * shiftV / 16, \")\")\n }\n }, [$inner]);\n }\n\n if (isStacked) {\n // Wrap in an additional `` for proper\n // animation handling if stacked\n $inner = h('g', {}, [$inner]);\n }\n\n var $title = props.title ? h('title', props.title) : null;\n return h('svg', mergeData({\n staticClass: 'b-icon bi',\n class: (_class = {}, _defineProperty(_class, \"text-\".concat(props.variant), !!props.variant), _defineProperty(_class, \"b-icon-animation-\".concat(animation), !!animation), _class),\n attrs: baseAttrs,\n style: isStacked ? {} : {\n fontSize: fontScale === 1 ? null : \"\".concat(fontScale * 100, \"%\")\n }\n }, // Merge in user supplied data\n data, // If icon is stacked, null out some attrs\n isStacked ? {\n attrs: stackedAttrs\n } : {}, // These cannot be overridden by users\n {\n attrs: {\n xmlns: isStacked ? null : 'http://www.w3.org/2000/svg',\n fill: 'currentColor'\n }\n }), [$title, $inner]);\n }\n});","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport Vue, { mergeData } from '../../utils/vue';\nimport { kebabCase, pascalCase, trim } from '../../utils/string';\nimport { commonIconProps, BVIconBase } from './icon-base';\n/**\n * Icon component generator function\n *\n * @param {string} icon name (minus the leading `BIcon`)\n * @param {string} raw `innerHTML` for SVG\n * @return {VueComponent}\n */\n\nexport var makeIcon = function makeIcon(name, content) {\n // For performance reason we pre-compute some values, so that\n // they are not computed on each render of the icon component\n var kebabName = kebabCase(name);\n var iconName = \"BIcon\".concat(pascalCase(name));\n var iconNameClass = \"bi-\".concat(kebabName);\n var iconTitle = kebabName.replace(/-/g, ' ');\n var svgContent = trim(content || ''); // Return the icon component definition\n\n return /*#__PURE__*/Vue.extend({\n name: iconName,\n functional: true,\n props: _objectSpread(_objectSpread({}, commonIconProps), {}, {\n stacked: {\n type: Boolean,\n default: false\n }\n }),\n render: function render(h, _ref) {\n var data = _ref.data,\n props = _ref.props;\n return h(BVIconBase, mergeData( // Defaults\n {\n props: {\n title: iconTitle\n },\n attrs: {\n 'aria-label': iconTitle\n }\n }, // User data\n data, // Required data\n {\n staticClass: iconNameClass,\n props: _objectSpread(_objectSpread({}, props), {}, {\n content: svgContent\n })\n }));\n }\n });\n};","// --- BEGIN AUTO-GENERATED FILE ---\n//\n// @IconsVersion: 1.0.0\n// @Generated: 2020-09-18T11:24:04.878Z\n//\n// This file is generated on each build. Do not edit this file!\n/*!\n * BootstrapVue Icons, generated from Bootstrap Icons 1.0.0\n *\n * @link https://icons.getbootstrap.com/\n * @license MIT\n * https://github.com/twbs/icons/blob/master/LICENSE.md\n */import{makeIcon}from'./helpers/make-icon';// --- BootstrapVue custom icons ---\nexport var BIconBlank=/*#__PURE__*/makeIcon('Blank','');// --- Bootstrap Icons ---\n// eslint-disable-next-line\nexport var BIconAlarm=/*#__PURE__*/makeIcon('Alarm','');// eslint-disable-next-line\nexport var BIconAlarmFill=/*#__PURE__*/makeIcon('AlarmFill','');// eslint-disable-next-line\nexport var BIconAlignBottom=/*#__PURE__*/makeIcon('AlignBottom','');// eslint-disable-next-line\nexport var BIconAlignCenter=/*#__PURE__*/makeIcon('AlignCenter','');// eslint-disable-next-line\nexport var BIconAlignEnd=/*#__PURE__*/makeIcon('AlignEnd','');// eslint-disable-next-line\nexport var BIconAlignMiddle=/*#__PURE__*/makeIcon('AlignMiddle','');// eslint-disable-next-line\nexport var BIconAlignStart=/*#__PURE__*/makeIcon('AlignStart','');// eslint-disable-next-line\nexport var BIconAlignTop=/*#__PURE__*/makeIcon('AlignTop','');// eslint-disable-next-line\nexport var BIconAlt=/*#__PURE__*/makeIcon('Alt','');// eslint-disable-next-line\nexport var BIconApp=/*#__PURE__*/makeIcon('App','');// eslint-disable-next-line\nexport var BIconAppIndicator=/*#__PURE__*/makeIcon('AppIndicator','');// eslint-disable-next-line\nexport var BIconArchive=/*#__PURE__*/makeIcon('Archive','');// eslint-disable-next-line\nexport var BIconArchiveFill=/*#__PURE__*/makeIcon('ArchiveFill','');// eslint-disable-next-line\nexport var BIconArrow90degDown=/*#__PURE__*/makeIcon('Arrow90degDown','');// eslint-disable-next-line\nexport var BIconArrow90degLeft=/*#__PURE__*/makeIcon('Arrow90degLeft','');// eslint-disable-next-line\nexport var BIconArrow90degRight=/*#__PURE__*/makeIcon('Arrow90degRight','');// eslint-disable-next-line\nexport var BIconArrow90degUp=/*#__PURE__*/makeIcon('Arrow90degUp','');// eslint-disable-next-line\nexport var BIconArrowBarDown=/*#__PURE__*/makeIcon('ArrowBarDown','');// eslint-disable-next-line\nexport var BIconArrowBarLeft=/*#__PURE__*/makeIcon('ArrowBarLeft','');// eslint-disable-next-line\nexport var BIconArrowBarRight=/*#__PURE__*/makeIcon('ArrowBarRight','');// eslint-disable-next-line\nexport var BIconArrowBarUp=/*#__PURE__*/makeIcon('ArrowBarUp','');// eslint-disable-next-line\nexport var BIconArrowClockwise=/*#__PURE__*/makeIcon('ArrowClockwise','');// eslint-disable-next-line\nexport var BIconArrowCounterclockwise=/*#__PURE__*/makeIcon('ArrowCounterclockwise','');// eslint-disable-next-line\nexport var BIconArrowDown=/*#__PURE__*/makeIcon('ArrowDown','');// eslint-disable-next-line\nexport var BIconArrowDownCircle=/*#__PURE__*/makeIcon('ArrowDownCircle','');// eslint-disable-next-line\nexport var BIconArrowDownCircleFill=/*#__PURE__*/makeIcon('ArrowDownCircleFill','');// eslint-disable-next-line\nexport var BIconArrowDownLeft=/*#__PURE__*/makeIcon('ArrowDownLeft','');// eslint-disable-next-line\nexport var BIconArrowDownLeftCircle=/*#__PURE__*/makeIcon('ArrowDownLeftCircle','');// eslint-disable-next-line\nexport var BIconArrowDownLeftCircleFill=/*#__PURE__*/makeIcon('ArrowDownLeftCircleFill','');// eslint-disable-next-line\nexport var BIconArrowDownLeftSquare=/*#__PURE__*/makeIcon('ArrowDownLeftSquare','');// eslint-disable-next-line\nexport var BIconArrowDownLeftSquareFill=/*#__PURE__*/makeIcon('ArrowDownLeftSquareFill','');// eslint-disable-next-line\nexport var BIconArrowDownRight=/*#__PURE__*/makeIcon('ArrowDownRight','');// eslint-disable-next-line\nexport var BIconArrowDownRightCircle=/*#__PURE__*/makeIcon('ArrowDownRightCircle','');// eslint-disable-next-line\nexport var BIconArrowDownRightCircleFill=/*#__PURE__*/makeIcon('ArrowDownRightCircleFill','');// eslint-disable-next-line\nexport var BIconArrowDownRightSquare=/*#__PURE__*/makeIcon('ArrowDownRightSquare','');// eslint-disable-next-line\nexport var BIconArrowDownRightSquareFill=/*#__PURE__*/makeIcon('ArrowDownRightSquareFill','');// eslint-disable-next-line\nexport var BIconArrowDownShort=/*#__PURE__*/makeIcon('ArrowDownShort','');// eslint-disable-next-line\nexport var BIconArrowDownSquare=/*#__PURE__*/makeIcon('ArrowDownSquare','');// eslint-disable-next-line\nexport var BIconArrowDownSquareFill=/*#__PURE__*/makeIcon('ArrowDownSquareFill','');// eslint-disable-next-line\nexport var BIconArrowDownUp=/*#__PURE__*/makeIcon('ArrowDownUp','');// eslint-disable-next-line\nexport var BIconArrowLeft=/*#__PURE__*/makeIcon('ArrowLeft','');// eslint-disable-next-line\nexport var BIconArrowLeftCircle=/*#__PURE__*/makeIcon('ArrowLeftCircle','');// eslint-disable-next-line\nexport var BIconArrowLeftCircleFill=/*#__PURE__*/makeIcon('ArrowLeftCircleFill','');// eslint-disable-next-line\nexport var BIconArrowLeftRight=/*#__PURE__*/makeIcon('ArrowLeftRight','');// eslint-disable-next-line\nexport var BIconArrowLeftShort=/*#__PURE__*/makeIcon('ArrowLeftShort','');// eslint-disable-next-line\nexport var BIconArrowLeftSquare=/*#__PURE__*/makeIcon('ArrowLeftSquare','');// eslint-disable-next-line\nexport var BIconArrowLeftSquareFill=/*#__PURE__*/makeIcon('ArrowLeftSquareFill','');// eslint-disable-next-line\nexport var BIconArrowRepeat=/*#__PURE__*/makeIcon('ArrowRepeat','');// eslint-disable-next-line\nexport var BIconArrowReturnLeft=/*#__PURE__*/makeIcon('ArrowReturnLeft','');// eslint-disable-next-line\nexport var BIconArrowReturnRight=/*#__PURE__*/makeIcon('ArrowReturnRight','');// eslint-disable-next-line\nexport var BIconArrowRight=/*#__PURE__*/makeIcon('ArrowRight','');// eslint-disable-next-line\nexport var BIconArrowRightCircle=/*#__PURE__*/makeIcon('ArrowRightCircle','');// eslint-disable-next-line\nexport var BIconArrowRightCircleFill=/*#__PURE__*/makeIcon('ArrowRightCircleFill','');// eslint-disable-next-line\nexport var BIconArrowRightShort=/*#__PURE__*/makeIcon('ArrowRightShort','');// eslint-disable-next-line\nexport var BIconArrowRightSquare=/*#__PURE__*/makeIcon('ArrowRightSquare','');// eslint-disable-next-line\nexport var BIconArrowRightSquareFill=/*#__PURE__*/makeIcon('ArrowRightSquareFill','');// eslint-disable-next-line\nexport var BIconArrowUp=/*#__PURE__*/makeIcon('ArrowUp','');// eslint-disable-next-line\nexport var BIconArrowUpCircle=/*#__PURE__*/makeIcon('ArrowUpCircle','');// eslint-disable-next-line\nexport var BIconArrowUpCircleFill=/*#__PURE__*/makeIcon('ArrowUpCircleFill','');// eslint-disable-next-line\nexport var BIconArrowUpLeft=/*#__PURE__*/makeIcon('ArrowUpLeft','');// eslint-disable-next-line\nexport var BIconArrowUpLeftCircle=/*#__PURE__*/makeIcon('ArrowUpLeftCircle','');// eslint-disable-next-line\nexport var BIconArrowUpLeftCircleFill=/*#__PURE__*/makeIcon('ArrowUpLeftCircleFill','');// eslint-disable-next-line\nexport var BIconArrowUpLeftSquare=/*#__PURE__*/makeIcon('ArrowUpLeftSquare','');// eslint-disable-next-line\nexport var BIconArrowUpLeftSquareFill=/*#__PURE__*/makeIcon('ArrowUpLeftSquareFill','');// eslint-disable-next-line\nexport var BIconArrowUpRight=/*#__PURE__*/makeIcon('ArrowUpRight','');// eslint-disable-next-line\nexport var BIconArrowUpRightCircle=/*#__PURE__*/makeIcon('ArrowUpRightCircle','');// eslint-disable-next-line\nexport var BIconArrowUpRightCircleFill=/*#__PURE__*/makeIcon('ArrowUpRightCircleFill','');// eslint-disable-next-line\nexport var BIconArrowUpRightSquare=/*#__PURE__*/makeIcon('ArrowUpRightSquare','');// eslint-disable-next-line\nexport var BIconArrowUpRightSquareFill=/*#__PURE__*/makeIcon('ArrowUpRightSquareFill','');// eslint-disable-next-line\nexport var BIconArrowUpShort=/*#__PURE__*/makeIcon('ArrowUpShort','');// eslint-disable-next-line\nexport var BIconArrowUpSquare=/*#__PURE__*/makeIcon('ArrowUpSquare','');// eslint-disable-next-line\nexport var BIconArrowUpSquareFill=/*#__PURE__*/makeIcon('ArrowUpSquareFill','');// eslint-disable-next-line\nexport var BIconArrowsAngleContract=/*#__PURE__*/makeIcon('ArrowsAngleContract','');// eslint-disable-next-line\nexport var BIconArrowsAngleExpand=/*#__PURE__*/makeIcon('ArrowsAngleExpand','');// eslint-disable-next-line\nexport var BIconArrowsCollapse=/*#__PURE__*/makeIcon('ArrowsCollapse','');// eslint-disable-next-line\nexport var BIconArrowsExpand=/*#__PURE__*/makeIcon('ArrowsExpand','');// eslint-disable-next-line\nexport var BIconArrowsFullscreen=/*#__PURE__*/makeIcon('ArrowsFullscreen','');// eslint-disable-next-line\nexport var BIconArrowsMove=/*#__PURE__*/makeIcon('ArrowsMove','');// eslint-disable-next-line\nexport var BIconAspectRatio=/*#__PURE__*/makeIcon('AspectRatio','');// eslint-disable-next-line\nexport var BIconAspectRatioFill=/*#__PURE__*/makeIcon('AspectRatioFill','');// eslint-disable-next-line\nexport var BIconAsterisk=/*#__PURE__*/makeIcon('Asterisk','');// eslint-disable-next-line\nexport var BIconAt=/*#__PURE__*/makeIcon('At','');// eslint-disable-next-line\nexport var BIconAward=/*#__PURE__*/makeIcon('Award','');// eslint-disable-next-line\nexport var BIconAwardFill=/*#__PURE__*/makeIcon('AwardFill','');// eslint-disable-next-line\nexport var BIconBack=/*#__PURE__*/makeIcon('Back','');// eslint-disable-next-line\nexport var BIconBackspace=/*#__PURE__*/makeIcon('Backspace','');// eslint-disable-next-line\nexport var BIconBackspaceFill=/*#__PURE__*/makeIcon('BackspaceFill','');// eslint-disable-next-line\nexport var BIconBackspaceReverse=/*#__PURE__*/makeIcon('BackspaceReverse','');// eslint-disable-next-line\nexport var BIconBackspaceReverseFill=/*#__PURE__*/makeIcon('BackspaceReverseFill','');// eslint-disable-next-line\nexport var BIconBadge4k=/*#__PURE__*/makeIcon('Badge4k','');// eslint-disable-next-line\nexport var BIconBadge4kFill=/*#__PURE__*/makeIcon('Badge4kFill','');// eslint-disable-next-line\nexport var BIconBadge8k=/*#__PURE__*/makeIcon('Badge8k','');// eslint-disable-next-line\nexport var BIconBadge8kFill=/*#__PURE__*/makeIcon('Badge8kFill','');// eslint-disable-next-line\nexport var BIconBadgeAd=/*#__PURE__*/makeIcon('BadgeAd','');// eslint-disable-next-line\nexport var BIconBadgeAdFill=/*#__PURE__*/makeIcon('BadgeAdFill','');// eslint-disable-next-line\nexport var BIconBadgeCc=/*#__PURE__*/makeIcon('BadgeCc','');// eslint-disable-next-line\nexport var BIconBadgeCcFill=/*#__PURE__*/makeIcon('BadgeCcFill','');// eslint-disable-next-line\nexport var BIconBadgeHd=/*#__PURE__*/makeIcon('BadgeHd','');// eslint-disable-next-line\nexport var BIconBadgeHdFill=/*#__PURE__*/makeIcon('BadgeHdFill','');// eslint-disable-next-line\nexport var BIconBadgeTm=/*#__PURE__*/makeIcon('BadgeTm','');// eslint-disable-next-line\nexport var BIconBadgeTmFill=/*#__PURE__*/makeIcon('BadgeTmFill','');// eslint-disable-next-line\nexport var BIconBadgeVo=/*#__PURE__*/makeIcon('BadgeVo','');// eslint-disable-next-line\nexport var BIconBadgeVoFill=/*#__PURE__*/makeIcon('BadgeVoFill','');// eslint-disable-next-line\nexport var BIconBag=/*#__PURE__*/makeIcon('Bag','');// eslint-disable-next-line\nexport var BIconBagCheck=/*#__PURE__*/makeIcon('BagCheck','');// eslint-disable-next-line\nexport var BIconBagCheckFill=/*#__PURE__*/makeIcon('BagCheckFill','');// eslint-disable-next-line\nexport var BIconBagDash=/*#__PURE__*/makeIcon('BagDash','');// eslint-disable-next-line\nexport var BIconBagDashFill=/*#__PURE__*/makeIcon('BagDashFill','');// eslint-disable-next-line\nexport var BIconBagFill=/*#__PURE__*/makeIcon('BagFill','');// eslint-disable-next-line\nexport var BIconBagPlus=/*#__PURE__*/makeIcon('BagPlus','');// eslint-disable-next-line\nexport var BIconBagPlusFill=/*#__PURE__*/makeIcon('BagPlusFill','');// eslint-disable-next-line\nexport var BIconBagX=/*#__PURE__*/makeIcon('BagX','');// eslint-disable-next-line\nexport var BIconBagXFill=/*#__PURE__*/makeIcon('BagXFill','');// eslint-disable-next-line\nexport var BIconBarChart=/*#__PURE__*/makeIcon('BarChart','');// eslint-disable-next-line\nexport var BIconBarChartFill=/*#__PURE__*/makeIcon('BarChartFill','');// eslint-disable-next-line\nexport var BIconBarChartLine=/*#__PURE__*/makeIcon('BarChartLine','');// eslint-disable-next-line\nexport var BIconBarChartLineFill=/*#__PURE__*/makeIcon('BarChartLineFill','');// eslint-disable-next-line\nexport var BIconBarChartSteps=/*#__PURE__*/makeIcon('BarChartSteps','');// eslint-disable-next-line\nexport var BIconBasket=/*#__PURE__*/makeIcon('Basket','');// eslint-disable-next-line\nexport var BIconBasket2=/*#__PURE__*/makeIcon('Basket2','');// eslint-disable-next-line\nexport var BIconBasket2Fill=/*#__PURE__*/makeIcon('Basket2Fill','');// eslint-disable-next-line\nexport var BIconBasket3=/*#__PURE__*/makeIcon('Basket3','');// eslint-disable-next-line\nexport var BIconBasket3Fill=/*#__PURE__*/makeIcon('Basket3Fill','');// eslint-disable-next-line\nexport var BIconBasketFill=/*#__PURE__*/makeIcon('BasketFill','');// eslint-disable-next-line\nexport var BIconBattery=/*#__PURE__*/makeIcon('Battery','');// eslint-disable-next-line\nexport var BIconBatteryCharging=/*#__PURE__*/makeIcon('BatteryCharging','');// eslint-disable-next-line\nexport var BIconBatteryFull=/*#__PURE__*/makeIcon('BatteryFull','');// eslint-disable-next-line\nexport var BIconBatteryHalf=/*#__PURE__*/makeIcon('BatteryHalf','');// eslint-disable-next-line\nexport var BIconBell=/*#__PURE__*/makeIcon('Bell','');// eslint-disable-next-line\nexport var BIconBellFill=/*#__PURE__*/makeIcon('BellFill','');// eslint-disable-next-line\nexport var BIconBezier=/*#__PURE__*/makeIcon('Bezier','');// eslint-disable-next-line\nexport var BIconBezier2=/*#__PURE__*/makeIcon('Bezier2','');// eslint-disable-next-line\nexport var BIconBicycle=/*#__PURE__*/makeIcon('Bicycle','');// eslint-disable-next-line\nexport var BIconBinoculars=/*#__PURE__*/makeIcon('Binoculars','');// eslint-disable-next-line\nexport var BIconBinocularsFill=/*#__PURE__*/makeIcon('BinocularsFill','');// eslint-disable-next-line\nexport var BIconBlockquoteLeft=/*#__PURE__*/makeIcon('BlockquoteLeft','');// eslint-disable-next-line\nexport var BIconBlockquoteRight=/*#__PURE__*/makeIcon('BlockquoteRight','');// eslint-disable-next-line\nexport var BIconBook=/*#__PURE__*/makeIcon('Book','');// eslint-disable-next-line\nexport var BIconBookFill=/*#__PURE__*/makeIcon('BookFill','');// eslint-disable-next-line\nexport var BIconBookHalf=/*#__PURE__*/makeIcon('BookHalf','');// eslint-disable-next-line\nexport var BIconBookmark=/*#__PURE__*/makeIcon('Bookmark','');// eslint-disable-next-line\nexport var BIconBookmarkCheck=/*#__PURE__*/makeIcon('BookmarkCheck','');// eslint-disable-next-line\nexport var BIconBookmarkCheckFill=/*#__PURE__*/makeIcon('BookmarkCheckFill','');// eslint-disable-next-line\nexport var BIconBookmarkDash=/*#__PURE__*/makeIcon('BookmarkDash','');// eslint-disable-next-line\nexport var BIconBookmarkDashFill=/*#__PURE__*/makeIcon('BookmarkDashFill','');// eslint-disable-next-line\nexport var BIconBookmarkFill=/*#__PURE__*/makeIcon('BookmarkFill','');// eslint-disable-next-line\nexport var BIconBookmarkHeart=/*#__PURE__*/makeIcon('BookmarkHeart','');// eslint-disable-next-line\nexport var BIconBookmarkHeartFill=/*#__PURE__*/makeIcon('BookmarkHeartFill','');// eslint-disable-next-line\nexport var BIconBookmarkPlus=/*#__PURE__*/makeIcon('BookmarkPlus','');// eslint-disable-next-line\nexport var BIconBookmarkPlusFill=/*#__PURE__*/makeIcon('BookmarkPlusFill','');// eslint-disable-next-line\nexport var BIconBookmarkStar=/*#__PURE__*/makeIcon('BookmarkStar','');// eslint-disable-next-line\nexport var BIconBookmarkStarFill=/*#__PURE__*/makeIcon('BookmarkStarFill','');// eslint-disable-next-line\nexport var BIconBookmarkX=/*#__PURE__*/makeIcon('BookmarkX','');// eslint-disable-next-line\nexport var BIconBookmarkXFill=/*#__PURE__*/makeIcon('BookmarkXFill','');// eslint-disable-next-line\nexport var BIconBookmarks=/*#__PURE__*/makeIcon('Bookmarks','');// eslint-disable-next-line\nexport var BIconBookmarksFill=/*#__PURE__*/makeIcon('BookmarksFill','');// eslint-disable-next-line\nexport var BIconBookshelf=/*#__PURE__*/makeIcon('Bookshelf','');// eslint-disable-next-line\nexport var BIconBootstrap=/*#__PURE__*/makeIcon('Bootstrap','');// eslint-disable-next-line\nexport var BIconBootstrapFill=/*#__PURE__*/makeIcon('BootstrapFill','');// eslint-disable-next-line\nexport var BIconBootstrapReboot=/*#__PURE__*/makeIcon('BootstrapReboot','');// eslint-disable-next-line\nexport var BIconBorderStyle=/*#__PURE__*/makeIcon('BorderStyle','');// eslint-disable-next-line\nexport var BIconBorderWidth=/*#__PURE__*/makeIcon('BorderWidth','');// eslint-disable-next-line\nexport var BIconBoundingBox=/*#__PURE__*/makeIcon('BoundingBox','');// eslint-disable-next-line\nexport var BIconBoundingBoxCircles=/*#__PURE__*/makeIcon('BoundingBoxCircles','');// eslint-disable-next-line\nexport var BIconBox=/*#__PURE__*/makeIcon('Box','');// eslint-disable-next-line\nexport var BIconBoxArrowDown=/*#__PURE__*/makeIcon('BoxArrowDown','');// eslint-disable-next-line\nexport var BIconBoxArrowDownLeft=/*#__PURE__*/makeIcon('BoxArrowDownLeft','');// eslint-disable-next-line\nexport var BIconBoxArrowDownRight=/*#__PURE__*/makeIcon('BoxArrowDownRight','');// eslint-disable-next-line\nexport var BIconBoxArrowInDown=/*#__PURE__*/makeIcon('BoxArrowInDown','');// eslint-disable-next-line\nexport var BIconBoxArrowInDownLeft=/*#__PURE__*/makeIcon('BoxArrowInDownLeft','');// eslint-disable-next-line\nexport var BIconBoxArrowInDownRight=/*#__PURE__*/makeIcon('BoxArrowInDownRight','');// eslint-disable-next-line\nexport var BIconBoxArrowInLeft=/*#__PURE__*/makeIcon('BoxArrowInLeft','');// eslint-disable-next-line\nexport var BIconBoxArrowInRight=/*#__PURE__*/makeIcon('BoxArrowInRight','');// eslint-disable-next-line\nexport var BIconBoxArrowInUp=/*#__PURE__*/makeIcon('BoxArrowInUp','');// eslint-disable-next-line\nexport var BIconBoxArrowInUpLeft=/*#__PURE__*/makeIcon('BoxArrowInUpLeft','');// eslint-disable-next-line\nexport var BIconBoxArrowInUpRight=/*#__PURE__*/makeIcon('BoxArrowInUpRight','');// eslint-disable-next-line\nexport var BIconBoxArrowLeft=/*#__PURE__*/makeIcon('BoxArrowLeft','');// eslint-disable-next-line\nexport var BIconBoxArrowRight=/*#__PURE__*/makeIcon('BoxArrowRight','');// eslint-disable-next-line\nexport var BIconBoxArrowUp=/*#__PURE__*/makeIcon('BoxArrowUp','');// eslint-disable-next-line\nexport var BIconBoxArrowUpLeft=/*#__PURE__*/makeIcon('BoxArrowUpLeft','');// eslint-disable-next-line\nexport var BIconBoxArrowUpRight=/*#__PURE__*/makeIcon('BoxArrowUpRight','');// eslint-disable-next-line\nexport var BIconBoxSeam=/*#__PURE__*/makeIcon('BoxSeam','');// eslint-disable-next-line\nexport var BIconBraces=/*#__PURE__*/makeIcon('Braces','');// eslint-disable-next-line\nexport var BIconBricks=/*#__PURE__*/makeIcon('Bricks','');// eslint-disable-next-line\nexport var BIconBriefcase=/*#__PURE__*/makeIcon('Briefcase','');// eslint-disable-next-line\nexport var BIconBriefcaseFill=/*#__PURE__*/makeIcon('BriefcaseFill','');// eslint-disable-next-line\nexport var BIconBrightnessAltHigh=/*#__PURE__*/makeIcon('BrightnessAltHigh','');// eslint-disable-next-line\nexport var BIconBrightnessAltHighFill=/*#__PURE__*/makeIcon('BrightnessAltHighFill','');// eslint-disable-next-line\nexport var BIconBrightnessAltLow=/*#__PURE__*/makeIcon('BrightnessAltLow','');// eslint-disable-next-line\nexport var BIconBrightnessAltLowFill=/*#__PURE__*/makeIcon('BrightnessAltLowFill','');// eslint-disable-next-line\nexport var BIconBrightnessHigh=/*#__PURE__*/makeIcon('BrightnessHigh','');// eslint-disable-next-line\nexport var BIconBrightnessHighFill=/*#__PURE__*/makeIcon('BrightnessHighFill','');// eslint-disable-next-line\nexport var BIconBrightnessLow=/*#__PURE__*/makeIcon('BrightnessLow','');// eslint-disable-next-line\nexport var BIconBrightnessLowFill=/*#__PURE__*/makeIcon('BrightnessLowFill','');// eslint-disable-next-line\nexport var BIconBroadcast=/*#__PURE__*/makeIcon('Broadcast','');// eslint-disable-next-line\nexport var BIconBroadcastPin=/*#__PURE__*/makeIcon('BroadcastPin','');// eslint-disable-next-line\nexport var BIconBrush=/*#__PURE__*/makeIcon('Brush','');// eslint-disable-next-line\nexport var BIconBrushFill=/*#__PURE__*/makeIcon('BrushFill','');// eslint-disable-next-line\nexport var BIconBucket=/*#__PURE__*/makeIcon('Bucket','');// eslint-disable-next-line\nexport var BIconBucketFill=/*#__PURE__*/makeIcon('BucketFill','');// eslint-disable-next-line\nexport var BIconBug=/*#__PURE__*/makeIcon('Bug','');// eslint-disable-next-line\nexport var BIconBugFill=/*#__PURE__*/makeIcon('BugFill','');// eslint-disable-next-line\nexport var BIconBuilding=/*#__PURE__*/makeIcon('Building','');// eslint-disable-next-line\nexport var BIconBullseye=/*#__PURE__*/makeIcon('Bullseye','');// eslint-disable-next-line\nexport var BIconCalculator=/*#__PURE__*/makeIcon('Calculator','');// eslint-disable-next-line\nexport var BIconCalculatorFill=/*#__PURE__*/makeIcon('CalculatorFill','');// eslint-disable-next-line\nexport var BIconCalendar=/*#__PURE__*/makeIcon('Calendar','');// eslint-disable-next-line\nexport var BIconCalendar2=/*#__PURE__*/makeIcon('Calendar2','');// eslint-disable-next-line\nexport var BIconCalendar2Check=/*#__PURE__*/makeIcon('Calendar2Check','');// eslint-disable-next-line\nexport var BIconCalendar2CheckFill=/*#__PURE__*/makeIcon('Calendar2CheckFill','');// eslint-disable-next-line\nexport var BIconCalendar2Date=/*#__PURE__*/makeIcon('Calendar2Date','');// eslint-disable-next-line\nexport var BIconCalendar2DateFill=/*#__PURE__*/makeIcon('Calendar2DateFill','');// eslint-disable-next-line\nexport var BIconCalendar2Day=/*#__PURE__*/makeIcon('Calendar2Day','');// eslint-disable-next-line\nexport var BIconCalendar2DayFill=/*#__PURE__*/makeIcon('Calendar2DayFill','');// eslint-disable-next-line\nexport var BIconCalendar2Event=/*#__PURE__*/makeIcon('Calendar2Event','');// eslint-disable-next-line\nexport var BIconCalendar2EventFill=/*#__PURE__*/makeIcon('Calendar2EventFill','');// eslint-disable-next-line\nexport var BIconCalendar2Fill=/*#__PURE__*/makeIcon('Calendar2Fill','');// eslint-disable-next-line\nexport var BIconCalendar2Minus=/*#__PURE__*/makeIcon('Calendar2Minus','');// eslint-disable-next-line\nexport var BIconCalendar2MinusFill=/*#__PURE__*/makeIcon('Calendar2MinusFill','');// eslint-disable-next-line\nexport var BIconCalendar2Month=/*#__PURE__*/makeIcon('Calendar2Month','');// eslint-disable-next-line\nexport var BIconCalendar2MonthFill=/*#__PURE__*/makeIcon('Calendar2MonthFill','');// eslint-disable-next-line\nexport var BIconCalendar2Plus=/*#__PURE__*/makeIcon('Calendar2Plus','');// eslint-disable-next-line\nexport var BIconCalendar2PlusFill=/*#__PURE__*/makeIcon('Calendar2PlusFill','');// eslint-disable-next-line\nexport var BIconCalendar2Range=/*#__PURE__*/makeIcon('Calendar2Range','');// eslint-disable-next-line\nexport var BIconCalendar2RangeFill=/*#__PURE__*/makeIcon('Calendar2RangeFill','');// eslint-disable-next-line\nexport var BIconCalendar2Week=/*#__PURE__*/makeIcon('Calendar2Week','');// eslint-disable-next-line\nexport var BIconCalendar2WeekFill=/*#__PURE__*/makeIcon('Calendar2WeekFill','');// eslint-disable-next-line\nexport var BIconCalendar2X=/*#__PURE__*/makeIcon('Calendar2X','');// eslint-disable-next-line\nexport var BIconCalendar2XFill=/*#__PURE__*/makeIcon('Calendar2XFill','');// eslint-disable-next-line\nexport var BIconCalendar3=/*#__PURE__*/makeIcon('Calendar3','');// eslint-disable-next-line\nexport var BIconCalendar3Event=/*#__PURE__*/makeIcon('Calendar3Event','');// eslint-disable-next-line\nexport var BIconCalendar3EventFill=/*#__PURE__*/makeIcon('Calendar3EventFill','');// eslint-disable-next-line\nexport var BIconCalendar3Fill=/*#__PURE__*/makeIcon('Calendar3Fill','');// eslint-disable-next-line\nexport var BIconCalendar3Range=/*#__PURE__*/makeIcon('Calendar3Range','');// eslint-disable-next-line\nexport var BIconCalendar3RangeFill=/*#__PURE__*/makeIcon('Calendar3RangeFill','');// eslint-disable-next-line\nexport var BIconCalendar3Week=/*#__PURE__*/makeIcon('Calendar3Week','');// eslint-disable-next-line\nexport var BIconCalendar3WeekFill=/*#__PURE__*/makeIcon('Calendar3WeekFill','');// eslint-disable-next-line\nexport var BIconCalendar4=/*#__PURE__*/makeIcon('Calendar4','');// eslint-disable-next-line\nexport var BIconCalendar4Event=/*#__PURE__*/makeIcon('Calendar4Event','');// eslint-disable-next-line\nexport var BIconCalendar4Range=/*#__PURE__*/makeIcon('Calendar4Range','');// eslint-disable-next-line\nexport var BIconCalendar4Week=/*#__PURE__*/makeIcon('Calendar4Week','');// eslint-disable-next-line\nexport var BIconCalendarCheck=/*#__PURE__*/makeIcon('CalendarCheck','');// eslint-disable-next-line\nexport var BIconCalendarCheckFill=/*#__PURE__*/makeIcon('CalendarCheckFill','');// eslint-disable-next-line\nexport var BIconCalendarDate=/*#__PURE__*/makeIcon('CalendarDate','');// eslint-disable-next-line\nexport var BIconCalendarDateFill=/*#__PURE__*/makeIcon('CalendarDateFill','');// eslint-disable-next-line\nexport var BIconCalendarDay=/*#__PURE__*/makeIcon('CalendarDay','');// eslint-disable-next-line\nexport var BIconCalendarDayFill=/*#__PURE__*/makeIcon('CalendarDayFill','');// eslint-disable-next-line\nexport var BIconCalendarEvent=/*#__PURE__*/makeIcon('CalendarEvent','');// eslint-disable-next-line\nexport var BIconCalendarEventFill=/*#__PURE__*/makeIcon('CalendarEventFill','');// eslint-disable-next-line\nexport var BIconCalendarFill=/*#__PURE__*/makeIcon('CalendarFill','');// eslint-disable-next-line\nexport var BIconCalendarMinus=/*#__PURE__*/makeIcon('CalendarMinus','');// eslint-disable-next-line\nexport var BIconCalendarMinusFill=/*#__PURE__*/makeIcon('CalendarMinusFill','');// eslint-disable-next-line\nexport var BIconCalendarMonth=/*#__PURE__*/makeIcon('CalendarMonth','');// eslint-disable-next-line\nexport var BIconCalendarMonthFill=/*#__PURE__*/makeIcon('CalendarMonthFill','');// eslint-disable-next-line\nexport var BIconCalendarPlus=/*#__PURE__*/makeIcon('CalendarPlus','');// eslint-disable-next-line\nexport var BIconCalendarPlusFill=/*#__PURE__*/makeIcon('CalendarPlusFill','');// eslint-disable-next-line\nexport var BIconCalendarRange=/*#__PURE__*/makeIcon('CalendarRange','');// eslint-disable-next-line\nexport var BIconCalendarRangeFill=/*#__PURE__*/makeIcon('CalendarRangeFill','');// eslint-disable-next-line\nexport var BIconCalendarWeek=/*#__PURE__*/makeIcon('CalendarWeek','');// eslint-disable-next-line\nexport var BIconCalendarWeekFill=/*#__PURE__*/makeIcon('CalendarWeekFill','');// eslint-disable-next-line\nexport var BIconCalendarX=/*#__PURE__*/makeIcon('CalendarX','');// eslint-disable-next-line\nexport var BIconCalendarXFill=/*#__PURE__*/makeIcon('CalendarXFill','');// eslint-disable-next-line\nexport var BIconCamera=/*#__PURE__*/makeIcon('Camera','');// eslint-disable-next-line\nexport var BIconCamera2=/*#__PURE__*/makeIcon('Camera2','');// eslint-disable-next-line\nexport var BIconCameraFill=/*#__PURE__*/makeIcon('CameraFill','');// eslint-disable-next-line\nexport var BIconCameraReels=/*#__PURE__*/makeIcon('CameraReels','');// eslint-disable-next-line\nexport var BIconCameraReelsFill=/*#__PURE__*/makeIcon('CameraReelsFill','');// eslint-disable-next-line\nexport var BIconCameraVideo=/*#__PURE__*/makeIcon('CameraVideo','');// eslint-disable-next-line\nexport var BIconCameraVideoFill=/*#__PURE__*/makeIcon('CameraVideoFill','');// eslint-disable-next-line\nexport var BIconCameraVideoOff=/*#__PURE__*/makeIcon('CameraVideoOff','');// eslint-disable-next-line\nexport var BIconCameraVideoOffFill=/*#__PURE__*/makeIcon('CameraVideoOffFill','');// eslint-disable-next-line\nexport var BIconCapslock=/*#__PURE__*/makeIcon('Capslock','');// eslint-disable-next-line\nexport var BIconCapslockFill=/*#__PURE__*/makeIcon('CapslockFill','');// eslint-disable-next-line\nexport var BIconCardChecklist=/*#__PURE__*/makeIcon('CardChecklist','');// eslint-disable-next-line\nexport var BIconCardHeading=/*#__PURE__*/makeIcon('CardHeading','');// eslint-disable-next-line\nexport var BIconCardImage=/*#__PURE__*/makeIcon('CardImage','');// eslint-disable-next-line\nexport var BIconCardList=/*#__PURE__*/makeIcon('CardList','');// eslint-disable-next-line\nexport var BIconCardText=/*#__PURE__*/makeIcon('CardText','');// eslint-disable-next-line\nexport var BIconCaretDown=/*#__PURE__*/makeIcon('CaretDown','');// eslint-disable-next-line\nexport var BIconCaretDownFill=/*#__PURE__*/makeIcon('CaretDownFill','');// eslint-disable-next-line\nexport var BIconCaretDownSquare=/*#__PURE__*/makeIcon('CaretDownSquare','');// eslint-disable-next-line\nexport var BIconCaretDownSquareFill=/*#__PURE__*/makeIcon('CaretDownSquareFill','');// eslint-disable-next-line\nexport var BIconCaretLeft=/*#__PURE__*/makeIcon('CaretLeft','');// eslint-disable-next-line\nexport var BIconCaretLeftFill=/*#__PURE__*/makeIcon('CaretLeftFill','');// eslint-disable-next-line\nexport var BIconCaretLeftSquare=/*#__PURE__*/makeIcon('CaretLeftSquare','');// eslint-disable-next-line\nexport var BIconCaretLeftSquareFill=/*#__PURE__*/makeIcon('CaretLeftSquareFill','');// eslint-disable-next-line\nexport var BIconCaretRight=/*#__PURE__*/makeIcon('CaretRight','');// eslint-disable-next-line\nexport var BIconCaretRightFill=/*#__PURE__*/makeIcon('CaretRightFill','');// eslint-disable-next-line\nexport var BIconCaretRightSquare=/*#__PURE__*/makeIcon('CaretRightSquare','');// eslint-disable-next-line\nexport var BIconCaretRightSquareFill=/*#__PURE__*/makeIcon('CaretRightSquareFill','');// eslint-disable-next-line\nexport var BIconCaretUp=/*#__PURE__*/makeIcon('CaretUp','');// eslint-disable-next-line\nexport var BIconCaretUpFill=/*#__PURE__*/makeIcon('CaretUpFill','');// eslint-disable-next-line\nexport var BIconCaretUpSquare=/*#__PURE__*/makeIcon('CaretUpSquare','');// eslint-disable-next-line\nexport var BIconCaretUpSquareFill=/*#__PURE__*/makeIcon('CaretUpSquareFill','');// eslint-disable-next-line\nexport var BIconCart=/*#__PURE__*/makeIcon('Cart','');// eslint-disable-next-line\nexport var BIconCart2=/*#__PURE__*/makeIcon('Cart2','');// eslint-disable-next-line\nexport var BIconCart3=/*#__PURE__*/makeIcon('Cart3','');// eslint-disable-next-line\nexport var BIconCart4=/*#__PURE__*/makeIcon('Cart4','');// eslint-disable-next-line\nexport var BIconCartCheck=/*#__PURE__*/makeIcon('CartCheck','');// eslint-disable-next-line\nexport var BIconCartCheckFill=/*#__PURE__*/makeIcon('CartCheckFill','');// eslint-disable-next-line\nexport var BIconCartDash=/*#__PURE__*/makeIcon('CartDash','');// eslint-disable-next-line\nexport var BIconCartDashFill=/*#__PURE__*/makeIcon('CartDashFill','');// eslint-disable-next-line\nexport var BIconCartFill=/*#__PURE__*/makeIcon('CartFill','');// eslint-disable-next-line\nexport var BIconCartPlus=/*#__PURE__*/makeIcon('CartPlus','');// eslint-disable-next-line\nexport var BIconCartPlusFill=/*#__PURE__*/makeIcon('CartPlusFill','');// eslint-disable-next-line\nexport var BIconCartX=/*#__PURE__*/makeIcon('CartX','');// eslint-disable-next-line\nexport var BIconCartXFill=/*#__PURE__*/makeIcon('CartXFill','');// eslint-disable-next-line\nexport var BIconCash=/*#__PURE__*/makeIcon('Cash','');// eslint-disable-next-line\nexport var BIconCashStack=/*#__PURE__*/makeIcon('CashStack','');// eslint-disable-next-line\nexport var BIconCast=/*#__PURE__*/makeIcon('Cast','');// eslint-disable-next-line\nexport var BIconChat=/*#__PURE__*/makeIcon('Chat','');// eslint-disable-next-line\nexport var BIconChatDots=/*#__PURE__*/makeIcon('ChatDots','');// eslint-disable-next-line\nexport var BIconChatDotsFill=/*#__PURE__*/makeIcon('ChatDotsFill','');// eslint-disable-next-line\nexport var BIconChatFill=/*#__PURE__*/makeIcon('ChatFill','');// eslint-disable-next-line\nexport var BIconChatLeft=/*#__PURE__*/makeIcon('ChatLeft','');// eslint-disable-next-line\nexport var BIconChatLeftDots=/*#__PURE__*/makeIcon('ChatLeftDots','');// eslint-disable-next-line\nexport var BIconChatLeftDotsFill=/*#__PURE__*/makeIcon('ChatLeftDotsFill','');// eslint-disable-next-line\nexport var BIconChatLeftFill=/*#__PURE__*/makeIcon('ChatLeftFill','');// eslint-disable-next-line\nexport var BIconChatLeftQuote=/*#__PURE__*/makeIcon('ChatLeftQuote','');// eslint-disable-next-line\nexport var BIconChatLeftQuoteFill=/*#__PURE__*/makeIcon('ChatLeftQuoteFill','');// eslint-disable-next-line\nexport var BIconChatLeftText=/*#__PURE__*/makeIcon('ChatLeftText','');// eslint-disable-next-line\nexport var BIconChatLeftTextFill=/*#__PURE__*/makeIcon('ChatLeftTextFill','');// eslint-disable-next-line\nexport var BIconChatQuote=/*#__PURE__*/makeIcon('ChatQuote','');// eslint-disable-next-line\nexport var BIconChatQuoteFill=/*#__PURE__*/makeIcon('ChatQuoteFill','');// eslint-disable-next-line\nexport var BIconChatRight=/*#__PURE__*/makeIcon('ChatRight','');// eslint-disable-next-line\nexport var BIconChatRightDots=/*#__PURE__*/makeIcon('ChatRightDots','');// eslint-disable-next-line\nexport var BIconChatRightDotsFill=/*#__PURE__*/makeIcon('ChatRightDotsFill','');// eslint-disable-next-line\nexport var BIconChatRightFill=/*#__PURE__*/makeIcon('ChatRightFill','');// eslint-disable-next-line\nexport var BIconChatRightQuote=/*#__PURE__*/makeIcon('ChatRightQuote','');// eslint-disable-next-line\nexport var BIconChatRightQuoteFill=/*#__PURE__*/makeIcon('ChatRightQuoteFill','');// eslint-disable-next-line\nexport var BIconChatRightText=/*#__PURE__*/makeIcon('ChatRightText','');// eslint-disable-next-line\nexport var BIconChatRightTextFill=/*#__PURE__*/makeIcon('ChatRightTextFill','');// eslint-disable-next-line\nexport var BIconChatSquare=/*#__PURE__*/makeIcon('ChatSquare','');// eslint-disable-next-line\nexport var BIconChatSquareDots=/*#__PURE__*/makeIcon('ChatSquareDots','');// eslint-disable-next-line\nexport var BIconChatSquareDotsFill=/*#__PURE__*/makeIcon('ChatSquareDotsFill','');// eslint-disable-next-line\nexport var BIconChatSquareFill=/*#__PURE__*/makeIcon('ChatSquareFill','');// eslint-disable-next-line\nexport var BIconChatSquareQuote=/*#__PURE__*/makeIcon('ChatSquareQuote','');// eslint-disable-next-line\nexport var BIconChatSquareQuoteFill=/*#__PURE__*/makeIcon('ChatSquareQuoteFill','');// eslint-disable-next-line\nexport var BIconChatSquareText=/*#__PURE__*/makeIcon('ChatSquareText','');// eslint-disable-next-line\nexport var BIconChatSquareTextFill=/*#__PURE__*/makeIcon('ChatSquareTextFill','');// eslint-disable-next-line\nexport var BIconChatText=/*#__PURE__*/makeIcon('ChatText','');// eslint-disable-next-line\nexport var BIconChatTextFill=/*#__PURE__*/makeIcon('ChatTextFill','');// eslint-disable-next-line\nexport var BIconCheck=/*#__PURE__*/makeIcon('Check','');// eslint-disable-next-line\nexport var BIconCheck2=/*#__PURE__*/makeIcon('Check2','');// eslint-disable-next-line\nexport var BIconCheck2All=/*#__PURE__*/makeIcon('Check2All','');// eslint-disable-next-line\nexport var BIconCheck2Circle=/*#__PURE__*/makeIcon('Check2Circle','');// eslint-disable-next-line\nexport var BIconCheck2Square=/*#__PURE__*/makeIcon('Check2Square','');// eslint-disable-next-line\nexport var BIconCheckAll=/*#__PURE__*/makeIcon('CheckAll','');// eslint-disable-next-line\nexport var BIconCheckCircle=/*#__PURE__*/makeIcon('CheckCircle','');// eslint-disable-next-line\nexport var BIconCheckCircleFill=/*#__PURE__*/makeIcon('CheckCircleFill','');// eslint-disable-next-line\nexport var BIconCheckSquare=/*#__PURE__*/makeIcon('CheckSquare','');// eslint-disable-next-line\nexport var BIconCheckSquareFill=/*#__PURE__*/makeIcon('CheckSquareFill','');// eslint-disable-next-line\nexport var BIconChevronBarContract=/*#__PURE__*/makeIcon('ChevronBarContract','');// eslint-disable-next-line\nexport var BIconChevronBarDown=/*#__PURE__*/makeIcon('ChevronBarDown','');// eslint-disable-next-line\nexport var BIconChevronBarExpand=/*#__PURE__*/makeIcon('ChevronBarExpand','');// eslint-disable-next-line\nexport var BIconChevronBarLeft=/*#__PURE__*/makeIcon('ChevronBarLeft','');// eslint-disable-next-line\nexport var BIconChevronBarRight=/*#__PURE__*/makeIcon('ChevronBarRight','');// eslint-disable-next-line\nexport var BIconChevronBarUp=/*#__PURE__*/makeIcon('ChevronBarUp','');// eslint-disable-next-line\nexport var BIconChevronCompactDown=/*#__PURE__*/makeIcon('ChevronCompactDown','');// eslint-disable-next-line\nexport var BIconChevronCompactLeft=/*#__PURE__*/makeIcon('ChevronCompactLeft','');// eslint-disable-next-line\nexport var BIconChevronCompactRight=/*#__PURE__*/makeIcon('ChevronCompactRight','');// eslint-disable-next-line\nexport var BIconChevronCompactUp=/*#__PURE__*/makeIcon('ChevronCompactUp','');// eslint-disable-next-line\nexport var BIconChevronContract=/*#__PURE__*/makeIcon('ChevronContract','');// eslint-disable-next-line\nexport var BIconChevronDoubleDown=/*#__PURE__*/makeIcon('ChevronDoubleDown','');// eslint-disable-next-line\nexport var BIconChevronDoubleLeft=/*#__PURE__*/makeIcon('ChevronDoubleLeft','');// eslint-disable-next-line\nexport var BIconChevronDoubleRight=/*#__PURE__*/makeIcon('ChevronDoubleRight','');// eslint-disable-next-line\nexport var BIconChevronDoubleUp=/*#__PURE__*/makeIcon('ChevronDoubleUp','');// eslint-disable-next-line\nexport var BIconChevronDown=/*#__PURE__*/makeIcon('ChevronDown','');// eslint-disable-next-line\nexport var BIconChevronExpand=/*#__PURE__*/makeIcon('ChevronExpand','');// eslint-disable-next-line\nexport var BIconChevronLeft=/*#__PURE__*/makeIcon('ChevronLeft','');// eslint-disable-next-line\nexport var BIconChevronRight=/*#__PURE__*/makeIcon('ChevronRight','');// eslint-disable-next-line\nexport var BIconChevronUp=/*#__PURE__*/makeIcon('ChevronUp','');// eslint-disable-next-line\nexport var BIconCircle=/*#__PURE__*/makeIcon('Circle','');// eslint-disable-next-line\nexport var BIconCircleFill=/*#__PURE__*/makeIcon('CircleFill','');// eslint-disable-next-line\nexport var BIconCircleHalf=/*#__PURE__*/makeIcon('CircleHalf','');// eslint-disable-next-line\nexport var BIconCircleSquare=/*#__PURE__*/makeIcon('CircleSquare','');// eslint-disable-next-line\nexport var BIconClipboard=/*#__PURE__*/makeIcon('Clipboard','');// eslint-disable-next-line\nexport var BIconClipboardCheck=/*#__PURE__*/makeIcon('ClipboardCheck','');// eslint-disable-next-line\nexport var BIconClipboardData=/*#__PURE__*/makeIcon('ClipboardData','');// eslint-disable-next-line\nexport var BIconClipboardMinus=/*#__PURE__*/makeIcon('ClipboardMinus','');// eslint-disable-next-line\nexport var BIconClipboardPlus=/*#__PURE__*/makeIcon('ClipboardPlus','');// eslint-disable-next-line\nexport var BIconClipboardX=/*#__PURE__*/makeIcon('ClipboardX','');// eslint-disable-next-line\nexport var BIconClock=/*#__PURE__*/makeIcon('Clock','');// eslint-disable-next-line\nexport var BIconClockFill=/*#__PURE__*/makeIcon('ClockFill','');// eslint-disable-next-line\nexport var BIconClockHistory=/*#__PURE__*/makeIcon('ClockHistory','');// eslint-disable-next-line\nexport var BIconCloud=/*#__PURE__*/makeIcon('Cloud','');// eslint-disable-next-line\nexport var BIconCloudArrowDown=/*#__PURE__*/makeIcon('CloudArrowDown','');// eslint-disable-next-line\nexport var BIconCloudArrowDownFill=/*#__PURE__*/makeIcon('CloudArrowDownFill','');// eslint-disable-next-line\nexport var BIconCloudArrowUp=/*#__PURE__*/makeIcon('CloudArrowUp','');// eslint-disable-next-line\nexport var BIconCloudArrowUpFill=/*#__PURE__*/makeIcon('CloudArrowUpFill','');// eslint-disable-next-line\nexport var BIconCloudCheck=/*#__PURE__*/makeIcon('CloudCheck','');// eslint-disable-next-line\nexport var BIconCloudCheckFill=/*#__PURE__*/makeIcon('CloudCheckFill','');// eslint-disable-next-line\nexport var BIconCloudDownload=/*#__PURE__*/makeIcon('CloudDownload','');// eslint-disable-next-line\nexport var BIconCloudDownloadFill=/*#__PURE__*/makeIcon('CloudDownloadFill','');// eslint-disable-next-line\nexport var BIconCloudFill=/*#__PURE__*/makeIcon('CloudFill','');// eslint-disable-next-line\nexport var BIconCloudMinus=/*#__PURE__*/makeIcon('CloudMinus','');// eslint-disable-next-line\nexport var BIconCloudMinusFill=/*#__PURE__*/makeIcon('CloudMinusFill','');// eslint-disable-next-line\nexport var BIconCloudPlus=/*#__PURE__*/makeIcon('CloudPlus','');// eslint-disable-next-line\nexport var BIconCloudPlusFill=/*#__PURE__*/makeIcon('CloudPlusFill','');// eslint-disable-next-line\nexport var BIconCloudSlash=/*#__PURE__*/makeIcon('CloudSlash','');// eslint-disable-next-line\nexport var BIconCloudSlashFill=/*#__PURE__*/makeIcon('CloudSlashFill','');// eslint-disable-next-line\nexport var BIconCloudUpload=/*#__PURE__*/makeIcon('CloudUpload','');// eslint-disable-next-line\nexport var BIconCloudUploadFill=/*#__PURE__*/makeIcon('CloudUploadFill','');// eslint-disable-next-line\nexport var BIconCode=/*#__PURE__*/makeIcon('Code','');// eslint-disable-next-line\nexport var BIconCodeSlash=/*#__PURE__*/makeIcon('CodeSlash','');// eslint-disable-next-line\nexport var BIconCodeSquare=/*#__PURE__*/makeIcon('CodeSquare','');// eslint-disable-next-line\nexport var BIconCollection=/*#__PURE__*/makeIcon('Collection','');// eslint-disable-next-line\nexport var BIconCollectionFill=/*#__PURE__*/makeIcon('CollectionFill','');// eslint-disable-next-line\nexport var BIconCollectionPlay=/*#__PURE__*/makeIcon('CollectionPlay','');// eslint-disable-next-line\nexport var BIconCollectionPlayFill=/*#__PURE__*/makeIcon('CollectionPlayFill','');// eslint-disable-next-line\nexport var BIconColumns=/*#__PURE__*/makeIcon('Columns','');// eslint-disable-next-line\nexport var BIconColumnsGap=/*#__PURE__*/makeIcon('ColumnsGap','');// eslint-disable-next-line\nexport var BIconCommand=/*#__PURE__*/makeIcon('Command','');// eslint-disable-next-line\nexport var BIconCompass=/*#__PURE__*/makeIcon('Compass','');// eslint-disable-next-line\nexport var BIconCompassFill=/*#__PURE__*/makeIcon('CompassFill','');// eslint-disable-next-line\nexport var BIconCone=/*#__PURE__*/makeIcon('Cone','');// eslint-disable-next-line\nexport var BIconConeStriped=/*#__PURE__*/makeIcon('ConeStriped','');// eslint-disable-next-line\nexport var BIconController=/*#__PURE__*/makeIcon('Controller','');// eslint-disable-next-line\nexport var BIconCpu=/*#__PURE__*/makeIcon('Cpu','');// eslint-disable-next-line\nexport var BIconCpuFill=/*#__PURE__*/makeIcon('CpuFill','');// eslint-disable-next-line\nexport var BIconCreditCard=/*#__PURE__*/makeIcon('CreditCard','');// eslint-disable-next-line\nexport var BIconCreditCard2Back=/*#__PURE__*/makeIcon('CreditCard2Back','');// eslint-disable-next-line\nexport var BIconCreditCard2BackFill=/*#__PURE__*/makeIcon('CreditCard2BackFill','');// eslint-disable-next-line\nexport var BIconCreditCard2Front=/*#__PURE__*/makeIcon('CreditCard2Front','');// eslint-disable-next-line\nexport var BIconCreditCard2FrontFill=/*#__PURE__*/makeIcon('CreditCard2FrontFill','');// eslint-disable-next-line\nexport var BIconCreditCardFill=/*#__PURE__*/makeIcon('CreditCardFill','');// eslint-disable-next-line\nexport var BIconCrop=/*#__PURE__*/makeIcon('Crop','');// eslint-disable-next-line\nexport var BIconCup=/*#__PURE__*/makeIcon('Cup','');// eslint-disable-next-line\nexport var BIconCupFill=/*#__PURE__*/makeIcon('CupFill','');// eslint-disable-next-line\nexport var BIconCupStraw=/*#__PURE__*/makeIcon('CupStraw','');// eslint-disable-next-line\nexport var BIconCursor=/*#__PURE__*/makeIcon('Cursor','');// eslint-disable-next-line\nexport var BIconCursorFill=/*#__PURE__*/makeIcon('CursorFill','');// eslint-disable-next-line\nexport var BIconCursorText=/*#__PURE__*/makeIcon('CursorText','');// eslint-disable-next-line\nexport var BIconDash=/*#__PURE__*/makeIcon('Dash','');// eslint-disable-next-line\nexport var BIconDashCircle=/*#__PURE__*/makeIcon('DashCircle','');// eslint-disable-next-line\nexport var BIconDashCircleFill=/*#__PURE__*/makeIcon('DashCircleFill','');// eslint-disable-next-line\nexport var BIconDashSquare=/*#__PURE__*/makeIcon('DashSquare','');// eslint-disable-next-line\nexport var BIconDashSquareFill=/*#__PURE__*/makeIcon('DashSquareFill','');// eslint-disable-next-line\nexport var BIconDiagram2=/*#__PURE__*/makeIcon('Diagram2','');// eslint-disable-next-line\nexport var BIconDiagram2Fill=/*#__PURE__*/makeIcon('Diagram2Fill','');// eslint-disable-next-line\nexport var BIconDiagram3=/*#__PURE__*/makeIcon('Diagram3','');// eslint-disable-next-line\nexport var BIconDiagram3Fill=/*#__PURE__*/makeIcon('Diagram3Fill','');// eslint-disable-next-line\nexport var BIconDiamond=/*#__PURE__*/makeIcon('Diamond','');// eslint-disable-next-line\nexport var BIconDiamondFill=/*#__PURE__*/makeIcon('DiamondFill','');// eslint-disable-next-line\nexport var BIconDiamondHalf=/*#__PURE__*/makeIcon('DiamondHalf','');// eslint-disable-next-line\nexport var BIconDice1=/*#__PURE__*/makeIcon('Dice1','');// eslint-disable-next-line\nexport var BIconDice1Fill=/*#__PURE__*/makeIcon('Dice1Fill','');// eslint-disable-next-line\nexport var BIconDice2=/*#__PURE__*/makeIcon('Dice2','');// eslint-disable-next-line\nexport var BIconDice2Fill=/*#__PURE__*/makeIcon('Dice2Fill','');// eslint-disable-next-line\nexport var BIconDice3=/*#__PURE__*/makeIcon('Dice3','');// eslint-disable-next-line\nexport var BIconDice3Fill=/*#__PURE__*/makeIcon('Dice3Fill','');// eslint-disable-next-line\nexport var BIconDice4=/*#__PURE__*/makeIcon('Dice4','');// eslint-disable-next-line\nexport var BIconDice4Fill=/*#__PURE__*/makeIcon('Dice4Fill','');// eslint-disable-next-line\nexport var BIconDice5=/*#__PURE__*/makeIcon('Dice5','');// eslint-disable-next-line\nexport var BIconDice5Fill=/*#__PURE__*/makeIcon('Dice5Fill','');// eslint-disable-next-line\nexport var BIconDice6=/*#__PURE__*/makeIcon('Dice6','');// eslint-disable-next-line\nexport var BIconDice6Fill=/*#__PURE__*/makeIcon('Dice6Fill','');// eslint-disable-next-line\nexport var BIconDisplay=/*#__PURE__*/makeIcon('Display','');// eslint-disable-next-line\nexport var BIconDisplayFill=/*#__PURE__*/makeIcon('DisplayFill','');// eslint-disable-next-line\nexport var BIconDistributeHorizontal=/*#__PURE__*/makeIcon('DistributeHorizontal','');// eslint-disable-next-line\nexport var BIconDistributeVertical=/*#__PURE__*/makeIcon('DistributeVertical','');// eslint-disable-next-line\nexport var BIconDoorClosed=/*#__PURE__*/makeIcon('DoorClosed','');// eslint-disable-next-line\nexport var BIconDoorClosedFill=/*#__PURE__*/makeIcon('DoorClosedFill','');// eslint-disable-next-line\nexport var BIconDoorOpen=/*#__PURE__*/makeIcon('DoorOpen','');// eslint-disable-next-line\nexport var BIconDoorOpenFill=/*#__PURE__*/makeIcon('DoorOpenFill','');// eslint-disable-next-line\nexport var BIconDot=/*#__PURE__*/makeIcon('Dot','');// eslint-disable-next-line\nexport var BIconDownload=/*#__PURE__*/makeIcon('Download','');// eslint-disable-next-line\nexport var BIconDroplet=/*#__PURE__*/makeIcon('Droplet','');// eslint-disable-next-line\nexport var BIconDropletFill=/*#__PURE__*/makeIcon('DropletFill','');// eslint-disable-next-line\nexport var BIconDropletHalf=/*#__PURE__*/makeIcon('DropletHalf','');// eslint-disable-next-line\nexport var BIconEarbuds=/*#__PURE__*/makeIcon('Earbuds','');// eslint-disable-next-line\nexport var BIconEasel=/*#__PURE__*/makeIcon('Easel','');// eslint-disable-next-line\nexport var BIconEaselFill=/*#__PURE__*/makeIcon('EaselFill','');// eslint-disable-next-line\nexport var BIconEgg=/*#__PURE__*/makeIcon('Egg','');// eslint-disable-next-line\nexport var BIconEggFill=/*#__PURE__*/makeIcon('EggFill','');// eslint-disable-next-line\nexport var BIconEggFried=/*#__PURE__*/makeIcon('EggFried','');// eslint-disable-next-line\nexport var BIconEject=/*#__PURE__*/makeIcon('Eject','');// eslint-disable-next-line\nexport var BIconEjectFill=/*#__PURE__*/makeIcon('EjectFill','');// eslint-disable-next-line\nexport var BIconEmojiAngry=/*#__PURE__*/makeIcon('EmojiAngry','');// eslint-disable-next-line\nexport var BIconEmojiDizzy=/*#__PURE__*/makeIcon('EmojiDizzy','');// eslint-disable-next-line\nexport var BIconEmojiExpressionless=/*#__PURE__*/makeIcon('EmojiExpressionless','');// eslint-disable-next-line\nexport var BIconEmojiFrown=/*#__PURE__*/makeIcon('EmojiFrown','');// eslint-disable-next-line\nexport var BIconEmojiLaughing=/*#__PURE__*/makeIcon('EmojiLaughing','');// eslint-disable-next-line\nexport var BIconEmojiNeutral=/*#__PURE__*/makeIcon('EmojiNeutral','');// eslint-disable-next-line\nexport var BIconEmojiSmile=/*#__PURE__*/makeIcon('EmojiSmile','');// eslint-disable-next-line\nexport var BIconEmojiSmileUpsideDown=/*#__PURE__*/makeIcon('EmojiSmileUpsideDown','');// eslint-disable-next-line\nexport var BIconEmojiSunglasses=/*#__PURE__*/makeIcon('EmojiSunglasses','');// eslint-disable-next-line\nexport var BIconEnvelope=/*#__PURE__*/makeIcon('Envelope','');// eslint-disable-next-line\nexport var BIconEnvelopeFill=/*#__PURE__*/makeIcon('EnvelopeFill','');// eslint-disable-next-line\nexport var BIconEnvelopeOpen=/*#__PURE__*/makeIcon('EnvelopeOpen','');// eslint-disable-next-line\nexport var BIconEnvelopeOpenFill=/*#__PURE__*/makeIcon('EnvelopeOpenFill','');// eslint-disable-next-line\nexport var BIconExclamation=/*#__PURE__*/makeIcon('Exclamation','');// eslint-disable-next-line\nexport var BIconExclamationCircle=/*#__PURE__*/makeIcon('ExclamationCircle','');// eslint-disable-next-line\nexport var BIconExclamationCircleFill=/*#__PURE__*/makeIcon('ExclamationCircleFill','');// eslint-disable-next-line\nexport var BIconExclamationDiamond=/*#__PURE__*/makeIcon('ExclamationDiamond','');// eslint-disable-next-line\nexport var BIconExclamationDiamondFill=/*#__PURE__*/makeIcon('ExclamationDiamondFill','');// eslint-disable-next-line\nexport var BIconExclamationOctagon=/*#__PURE__*/makeIcon('ExclamationOctagon','');// eslint-disable-next-line\nexport var BIconExclamationOctagonFill=/*#__PURE__*/makeIcon('ExclamationOctagonFill','');// eslint-disable-next-line\nexport var BIconExclamationSquare=/*#__PURE__*/makeIcon('ExclamationSquare','');// eslint-disable-next-line\nexport var BIconExclamationSquareFill=/*#__PURE__*/makeIcon('ExclamationSquareFill','');// eslint-disable-next-line\nexport var BIconExclamationTriangle=/*#__PURE__*/makeIcon('ExclamationTriangle','');// eslint-disable-next-line\nexport var BIconExclamationTriangleFill=/*#__PURE__*/makeIcon('ExclamationTriangleFill','');// eslint-disable-next-line\nexport var BIconExclude=/*#__PURE__*/makeIcon('Exclude','');// eslint-disable-next-line\nexport var BIconEye=/*#__PURE__*/makeIcon('Eye','');// eslint-disable-next-line\nexport var BIconEyeFill=/*#__PURE__*/makeIcon('EyeFill','');// eslint-disable-next-line\nexport var BIconEyeSlash=/*#__PURE__*/makeIcon('EyeSlash','');// eslint-disable-next-line\nexport var BIconEyeSlashFill=/*#__PURE__*/makeIcon('EyeSlashFill','');// eslint-disable-next-line\nexport var BIconEyeglasses=/*#__PURE__*/makeIcon('Eyeglasses','');// eslint-disable-next-line\nexport var BIconFile=/*#__PURE__*/makeIcon('File','');// eslint-disable-next-line\nexport var BIconFileArrowDown=/*#__PURE__*/makeIcon('FileArrowDown','');// eslint-disable-next-line\nexport var BIconFileArrowDownFill=/*#__PURE__*/makeIcon('FileArrowDownFill','');// eslint-disable-next-line\nexport var BIconFileArrowUp=/*#__PURE__*/makeIcon('FileArrowUp','');// eslint-disable-next-line\nexport var BIconFileArrowUpFill=/*#__PURE__*/makeIcon('FileArrowUpFill','');// eslint-disable-next-line\nexport var BIconFileBinary=/*#__PURE__*/makeIcon('FileBinary','');// eslint-disable-next-line\nexport var BIconFileBinaryFill=/*#__PURE__*/makeIcon('FileBinaryFill','');// eslint-disable-next-line\nexport var BIconFileBreak=/*#__PURE__*/makeIcon('FileBreak','');// eslint-disable-next-line\nexport var BIconFileBreakFill=/*#__PURE__*/makeIcon('FileBreakFill','');// eslint-disable-next-line\nexport var BIconFileCheck=/*#__PURE__*/makeIcon('FileCheck','');// eslint-disable-next-line\nexport var BIconFileCheckFill=/*#__PURE__*/makeIcon('FileCheckFill','');// eslint-disable-next-line\nexport var BIconFileCode=/*#__PURE__*/makeIcon('FileCode','');// eslint-disable-next-line\nexport var BIconFileCodeFill=/*#__PURE__*/makeIcon('FileCodeFill','');// eslint-disable-next-line\nexport var BIconFileDiff=/*#__PURE__*/makeIcon('FileDiff','');// eslint-disable-next-line\nexport var BIconFileDiffFill=/*#__PURE__*/makeIcon('FileDiffFill','');// eslint-disable-next-line\nexport var BIconFileEarmark=/*#__PURE__*/makeIcon('FileEarmark','');// eslint-disable-next-line\nexport var BIconFileEarmarkArrowDown=/*#__PURE__*/makeIcon('FileEarmarkArrowDown','');// eslint-disable-next-line\nexport var BIconFileEarmarkArrowDownFill=/*#__PURE__*/makeIcon('FileEarmarkArrowDownFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkArrowUp=/*#__PURE__*/makeIcon('FileEarmarkArrowUp','');// eslint-disable-next-line\nexport var BIconFileEarmarkArrowUpFill=/*#__PURE__*/makeIcon('FileEarmarkArrowUpFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkBinary=/*#__PURE__*/makeIcon('FileEarmarkBinary','');// eslint-disable-next-line\nexport var BIconFileEarmarkBinaryFill=/*#__PURE__*/makeIcon('FileEarmarkBinaryFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkBreak=/*#__PURE__*/makeIcon('FileEarmarkBreak','');// eslint-disable-next-line\nexport var BIconFileEarmarkBreakFill=/*#__PURE__*/makeIcon('FileEarmarkBreakFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkCheck=/*#__PURE__*/makeIcon('FileEarmarkCheck','');// eslint-disable-next-line\nexport var BIconFileEarmarkCheckFill=/*#__PURE__*/makeIcon('FileEarmarkCheckFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkCode=/*#__PURE__*/makeIcon('FileEarmarkCode','');// eslint-disable-next-line\nexport var BIconFileEarmarkCodeFill=/*#__PURE__*/makeIcon('FileEarmarkCodeFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkDiff=/*#__PURE__*/makeIcon('FileEarmarkDiff','');// eslint-disable-next-line\nexport var BIconFileEarmarkDiffFill=/*#__PURE__*/makeIcon('FileEarmarkDiffFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkEasel=/*#__PURE__*/makeIcon('FileEarmarkEasel','');// eslint-disable-next-line\nexport var BIconFileEarmarkEaselFill=/*#__PURE__*/makeIcon('FileEarmarkEaselFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkFill=/*#__PURE__*/makeIcon('FileEarmarkFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkFont=/*#__PURE__*/makeIcon('FileEarmarkFont','');// eslint-disable-next-line\nexport var BIconFileEarmarkFontFill=/*#__PURE__*/makeIcon('FileEarmarkFontFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkImage=/*#__PURE__*/makeIcon('FileEarmarkImage','');// eslint-disable-next-line\nexport var BIconFileEarmarkImageFill=/*#__PURE__*/makeIcon('FileEarmarkImageFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkLock=/*#__PURE__*/makeIcon('FileEarmarkLock','');// eslint-disable-next-line\nexport var BIconFileEarmarkLock2=/*#__PURE__*/makeIcon('FileEarmarkLock2','');// eslint-disable-next-line\nexport var BIconFileEarmarkLock2Fill=/*#__PURE__*/makeIcon('FileEarmarkLock2Fill','');// eslint-disable-next-line\nexport var BIconFileEarmarkLockFill=/*#__PURE__*/makeIcon('FileEarmarkLockFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkMedical=/*#__PURE__*/makeIcon('FileEarmarkMedical','');// eslint-disable-next-line\nexport var BIconFileEarmarkMedicalFill=/*#__PURE__*/makeIcon('FileEarmarkMedicalFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkMinus=/*#__PURE__*/makeIcon('FileEarmarkMinus','');// eslint-disable-next-line\nexport var BIconFileEarmarkMinusFill=/*#__PURE__*/makeIcon('FileEarmarkMinusFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkMusic=/*#__PURE__*/makeIcon('FileEarmarkMusic','');// eslint-disable-next-line\nexport var BIconFileEarmarkMusicFill=/*#__PURE__*/makeIcon('FileEarmarkMusicFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkPerson=/*#__PURE__*/makeIcon('FileEarmarkPerson','');// eslint-disable-next-line\nexport var BIconFileEarmarkPersonFill=/*#__PURE__*/makeIcon('FileEarmarkPersonFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkPlay=/*#__PURE__*/makeIcon('FileEarmarkPlay','');// eslint-disable-next-line\nexport var BIconFileEarmarkPlayFill=/*#__PURE__*/makeIcon('FileEarmarkPlayFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkPlus=/*#__PURE__*/makeIcon('FileEarmarkPlus','');// eslint-disable-next-line\nexport var BIconFileEarmarkPlusFill=/*#__PURE__*/makeIcon('FileEarmarkPlusFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkPost=/*#__PURE__*/makeIcon('FileEarmarkPost','');// eslint-disable-next-line\nexport var BIconFileEarmarkPostFill=/*#__PURE__*/makeIcon('FileEarmarkPostFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkRichtext=/*#__PURE__*/makeIcon('FileEarmarkRichtext','');// eslint-disable-next-line\nexport var BIconFileEarmarkRichtextFill=/*#__PURE__*/makeIcon('FileEarmarkRichtextFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkRuled=/*#__PURE__*/makeIcon('FileEarmarkRuled','');// eslint-disable-next-line\nexport var BIconFileEarmarkRuledFill=/*#__PURE__*/makeIcon('FileEarmarkRuledFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkSlides=/*#__PURE__*/makeIcon('FileEarmarkSlides','');// eslint-disable-next-line\nexport var BIconFileEarmarkSlidesFill=/*#__PURE__*/makeIcon('FileEarmarkSlidesFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkSpreadsheet=/*#__PURE__*/makeIcon('FileEarmarkSpreadsheet','');// eslint-disable-next-line\nexport var BIconFileEarmarkSpreadsheetFill=/*#__PURE__*/makeIcon('FileEarmarkSpreadsheetFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkText=/*#__PURE__*/makeIcon('FileEarmarkText','');// eslint-disable-next-line\nexport var BIconFileEarmarkTextFill=/*#__PURE__*/makeIcon('FileEarmarkTextFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkX=/*#__PURE__*/makeIcon('FileEarmarkX','');// eslint-disable-next-line\nexport var BIconFileEarmarkXFill=/*#__PURE__*/makeIcon('FileEarmarkXFill','');// eslint-disable-next-line\nexport var BIconFileEarmarkZip=/*#__PURE__*/makeIcon('FileEarmarkZip','');// eslint-disable-next-line\nexport var BIconFileEarmarkZipFill=/*#__PURE__*/makeIcon('FileEarmarkZipFill','');// eslint-disable-next-line\nexport var BIconFileEasel=/*#__PURE__*/makeIcon('FileEasel','');// eslint-disable-next-line\nexport var BIconFileEaselFill=/*#__PURE__*/makeIcon('FileEaselFill','');// eslint-disable-next-line\nexport var BIconFileFill=/*#__PURE__*/makeIcon('FileFill','');// eslint-disable-next-line\nexport var BIconFileFont=/*#__PURE__*/makeIcon('FileFont','');// eslint-disable-next-line\nexport var BIconFileFontFill=/*#__PURE__*/makeIcon('FileFontFill','');// eslint-disable-next-line\nexport var BIconFileImage=/*#__PURE__*/makeIcon('FileImage','');// eslint-disable-next-line\nexport var BIconFileImageFill=/*#__PURE__*/makeIcon('FileImageFill','');// eslint-disable-next-line\nexport var BIconFileLock=/*#__PURE__*/makeIcon('FileLock','');// eslint-disable-next-line\nexport var BIconFileLock2=/*#__PURE__*/makeIcon('FileLock2','');// eslint-disable-next-line\nexport var BIconFileLock2Fill=/*#__PURE__*/makeIcon('FileLock2Fill','');// eslint-disable-next-line\nexport var BIconFileLockFill=/*#__PURE__*/makeIcon('FileLockFill','');// eslint-disable-next-line\nexport var BIconFileMedical=/*#__PURE__*/makeIcon('FileMedical','');// eslint-disable-next-line\nexport var BIconFileMedicalFill=/*#__PURE__*/makeIcon('FileMedicalFill','');// eslint-disable-next-line\nexport var BIconFileMinus=/*#__PURE__*/makeIcon('FileMinus','');// eslint-disable-next-line\nexport var BIconFileMinusFill=/*#__PURE__*/makeIcon('FileMinusFill','');// eslint-disable-next-line\nexport var BIconFileMusic=/*#__PURE__*/makeIcon('FileMusic','');// eslint-disable-next-line\nexport var BIconFileMusicFill=/*#__PURE__*/makeIcon('FileMusicFill','');// eslint-disable-next-line\nexport var BIconFilePerson=/*#__PURE__*/makeIcon('FilePerson','');// eslint-disable-next-line\nexport var BIconFilePersonFill=/*#__PURE__*/makeIcon('FilePersonFill','');// eslint-disable-next-line\nexport var BIconFilePlay=/*#__PURE__*/makeIcon('FilePlay','');// eslint-disable-next-line\nexport var BIconFilePlayFill=/*#__PURE__*/makeIcon('FilePlayFill','');// eslint-disable-next-line\nexport var BIconFilePlus=/*#__PURE__*/makeIcon('FilePlus','');// eslint-disable-next-line\nexport var BIconFilePlusFill=/*#__PURE__*/makeIcon('FilePlusFill','');// eslint-disable-next-line\nexport var BIconFilePost=/*#__PURE__*/makeIcon('FilePost','');// eslint-disable-next-line\nexport var BIconFilePostFill=/*#__PURE__*/makeIcon('FilePostFill','');// eslint-disable-next-line\nexport var BIconFileRichtext=/*#__PURE__*/makeIcon('FileRichtext','');// eslint-disable-next-line\nexport var BIconFileRichtextFill=/*#__PURE__*/makeIcon('FileRichtextFill','');// eslint-disable-next-line\nexport var BIconFileRuled=/*#__PURE__*/makeIcon('FileRuled','');// eslint-disable-next-line\nexport var BIconFileRuledFill=/*#__PURE__*/makeIcon('FileRuledFill','');// eslint-disable-next-line\nexport var BIconFileSlides=/*#__PURE__*/makeIcon('FileSlides','');// eslint-disable-next-line\nexport var BIconFileSlidesFill=/*#__PURE__*/makeIcon('FileSlidesFill','');// eslint-disable-next-line\nexport var BIconFileSpreadsheet=/*#__PURE__*/makeIcon('FileSpreadsheet','');// eslint-disable-next-line\nexport var BIconFileSpreadsheetFill=/*#__PURE__*/makeIcon('FileSpreadsheetFill','');// eslint-disable-next-line\nexport var BIconFileText=/*#__PURE__*/makeIcon('FileText','');// eslint-disable-next-line\nexport var BIconFileTextFill=/*#__PURE__*/makeIcon('FileTextFill','');// eslint-disable-next-line\nexport var BIconFileX=/*#__PURE__*/makeIcon('FileX','');// eslint-disable-next-line\nexport var BIconFileXFill=/*#__PURE__*/makeIcon('FileXFill','');// eslint-disable-next-line\nexport var BIconFileZip=/*#__PURE__*/makeIcon('FileZip','');// eslint-disable-next-line\nexport var BIconFileZipFill=/*#__PURE__*/makeIcon('FileZipFill','');// eslint-disable-next-line\nexport var BIconFiles=/*#__PURE__*/makeIcon('Files','');// eslint-disable-next-line\nexport var BIconFilesAlt=/*#__PURE__*/makeIcon('FilesAlt','');// eslint-disable-next-line\nexport var BIconFilm=/*#__PURE__*/makeIcon('Film','');// eslint-disable-next-line\nexport var BIconFilter=/*#__PURE__*/makeIcon('Filter','');// eslint-disable-next-line\nexport var BIconFilterCircle=/*#__PURE__*/makeIcon('FilterCircle','');// eslint-disable-next-line\nexport var BIconFilterCircleFill=/*#__PURE__*/makeIcon('FilterCircleFill','');// eslint-disable-next-line\nexport var BIconFilterLeft=/*#__PURE__*/makeIcon('FilterLeft','');// eslint-disable-next-line\nexport var BIconFilterRight=/*#__PURE__*/makeIcon('FilterRight','');// eslint-disable-next-line\nexport var BIconFilterSquare=/*#__PURE__*/makeIcon('FilterSquare','');// eslint-disable-next-line\nexport var BIconFilterSquareFill=/*#__PURE__*/makeIcon('FilterSquareFill','');// eslint-disable-next-line\nexport var BIconFlag=/*#__PURE__*/makeIcon('Flag','');// eslint-disable-next-line\nexport var BIconFlagFill=/*#__PURE__*/makeIcon('FlagFill','');// eslint-disable-next-line\nexport var BIconFlower1=/*#__PURE__*/makeIcon('Flower1','');// eslint-disable-next-line\nexport var BIconFlower2=/*#__PURE__*/makeIcon('Flower2','');// eslint-disable-next-line\nexport var BIconFlower3=/*#__PURE__*/makeIcon('Flower3','');// eslint-disable-next-line\nexport var BIconFolder=/*#__PURE__*/makeIcon('Folder','');// eslint-disable-next-line\nexport var BIconFolder2=/*#__PURE__*/makeIcon('Folder2','');// eslint-disable-next-line\nexport var BIconFolder2Open=/*#__PURE__*/makeIcon('Folder2Open','');// eslint-disable-next-line\nexport var BIconFolderCheck=/*#__PURE__*/makeIcon('FolderCheck','');// eslint-disable-next-line\nexport var BIconFolderFill=/*#__PURE__*/makeIcon('FolderFill','');// eslint-disable-next-line\nexport var BIconFolderMinus=/*#__PURE__*/makeIcon('FolderMinus','');// eslint-disable-next-line\nexport var BIconFolderPlus=/*#__PURE__*/makeIcon('FolderPlus','');// eslint-disable-next-line\nexport var BIconFolderSymlink=/*#__PURE__*/makeIcon('FolderSymlink','');// eslint-disable-next-line\nexport var BIconFolderSymlinkFill=/*#__PURE__*/makeIcon('FolderSymlinkFill','');// eslint-disable-next-line\nexport var BIconFolderX=/*#__PURE__*/makeIcon('FolderX','');// eslint-disable-next-line\nexport var BIconFonts=/*#__PURE__*/makeIcon('Fonts','');// eslint-disable-next-line\nexport var BIconForward=/*#__PURE__*/makeIcon('Forward','');// eslint-disable-next-line\nexport var BIconForwardFill=/*#__PURE__*/makeIcon('ForwardFill','');// eslint-disable-next-line\nexport var BIconFront=/*#__PURE__*/makeIcon('Front','');// eslint-disable-next-line\nexport var BIconFullscreen=/*#__PURE__*/makeIcon('Fullscreen','');// eslint-disable-next-line\nexport var BIconFullscreenExit=/*#__PURE__*/makeIcon('FullscreenExit','');// eslint-disable-next-line\nexport var BIconFunnel=/*#__PURE__*/makeIcon('Funnel','');// eslint-disable-next-line\nexport var BIconFunnelFill=/*#__PURE__*/makeIcon('FunnelFill','');// eslint-disable-next-line\nexport var BIconGear=/*#__PURE__*/makeIcon('Gear','');// eslint-disable-next-line\nexport var BIconGearFill=/*#__PURE__*/makeIcon('GearFill','');// eslint-disable-next-line\nexport var BIconGearWide=/*#__PURE__*/makeIcon('GearWide','');// eslint-disable-next-line\nexport var BIconGearWideConnected=/*#__PURE__*/makeIcon('GearWideConnected','');// eslint-disable-next-line\nexport var BIconGem=/*#__PURE__*/makeIcon('Gem','');// eslint-disable-next-line\nexport var BIconGeo=/*#__PURE__*/makeIcon('Geo','');// eslint-disable-next-line\nexport var BIconGeoAlt=/*#__PURE__*/makeIcon('GeoAlt','');// eslint-disable-next-line\nexport var BIconGeoAltFill=/*#__PURE__*/makeIcon('GeoAltFill','');// eslint-disable-next-line\nexport var BIconGeoFill=/*#__PURE__*/makeIcon('GeoFill','');// eslint-disable-next-line\nexport var BIconGift=/*#__PURE__*/makeIcon('Gift','');// eslint-disable-next-line\nexport var BIconGiftFill=/*#__PURE__*/makeIcon('GiftFill','');// eslint-disable-next-line\nexport var BIconGlobe=/*#__PURE__*/makeIcon('Globe','');// eslint-disable-next-line\nexport var BIconGlobe2=/*#__PURE__*/makeIcon('Globe2','');// eslint-disable-next-line\nexport var BIconGraphDown=/*#__PURE__*/makeIcon('GraphDown','');// eslint-disable-next-line\nexport var BIconGraphUp=/*#__PURE__*/makeIcon('GraphUp','');// eslint-disable-next-line\nexport var BIconGrid=/*#__PURE__*/makeIcon('Grid','');// eslint-disable-next-line\nexport var BIconGrid1x2=/*#__PURE__*/makeIcon('Grid1x2','');// eslint-disable-next-line\nexport var BIconGrid1x2Fill=/*#__PURE__*/makeIcon('Grid1x2Fill','');// eslint-disable-next-line\nexport var BIconGrid3x2=/*#__PURE__*/makeIcon('Grid3x2','');// eslint-disable-next-line\nexport var BIconGrid3x2Gap=/*#__PURE__*/makeIcon('Grid3x2Gap','');// eslint-disable-next-line\nexport var BIconGrid3x2GapFill=/*#__PURE__*/makeIcon('Grid3x2GapFill','');// eslint-disable-next-line\nexport var BIconGrid3x3=/*#__PURE__*/makeIcon('Grid3x3','');// eslint-disable-next-line\nexport var BIconGrid3x3Gap=/*#__PURE__*/makeIcon('Grid3x3Gap','');// eslint-disable-next-line\nexport var BIconGrid3x3GapFill=/*#__PURE__*/makeIcon('Grid3x3GapFill','');// eslint-disable-next-line\nexport var BIconGridFill=/*#__PURE__*/makeIcon('GridFill','');// eslint-disable-next-line\nexport var BIconGripHorizontal=/*#__PURE__*/makeIcon('GripHorizontal','');// eslint-disable-next-line\nexport var BIconGripVertical=/*#__PURE__*/makeIcon('GripVertical','');// eslint-disable-next-line\nexport var BIconHammer=/*#__PURE__*/makeIcon('Hammer','');// eslint-disable-next-line\nexport var BIconHandIndex=/*#__PURE__*/makeIcon('HandIndex','');// eslint-disable-next-line\nexport var BIconHandIndexThumb=/*#__PURE__*/makeIcon('HandIndexThumb','');// eslint-disable-next-line\nexport var BIconHandThumbsDown=/*#__PURE__*/makeIcon('HandThumbsDown','');// eslint-disable-next-line\nexport var BIconHandThumbsUp=/*#__PURE__*/makeIcon('HandThumbsUp','');// eslint-disable-next-line\nexport var BIconHandbag=/*#__PURE__*/makeIcon('Handbag','');// eslint-disable-next-line\nexport var BIconHandbagFill=/*#__PURE__*/makeIcon('HandbagFill','');// eslint-disable-next-line\nexport var BIconHash=/*#__PURE__*/makeIcon('Hash','');// eslint-disable-next-line\nexport var BIconHdd=/*#__PURE__*/makeIcon('Hdd','');// eslint-disable-next-line\nexport var BIconHddFill=/*#__PURE__*/makeIcon('HddFill','');// eslint-disable-next-line\nexport var BIconHddNetwork=/*#__PURE__*/makeIcon('HddNetwork','');// eslint-disable-next-line\nexport var BIconHddNetworkFill=/*#__PURE__*/makeIcon('HddNetworkFill','');// eslint-disable-next-line\nexport var BIconHddRack=/*#__PURE__*/makeIcon('HddRack','');// eslint-disable-next-line\nexport var BIconHddRackFill=/*#__PURE__*/makeIcon('HddRackFill','');// eslint-disable-next-line\nexport var BIconHddStack=/*#__PURE__*/makeIcon('HddStack','');// eslint-disable-next-line\nexport var BIconHddStackFill=/*#__PURE__*/makeIcon('HddStackFill','');// eslint-disable-next-line\nexport var BIconHeadphones=/*#__PURE__*/makeIcon('Headphones','');// eslint-disable-next-line\nexport var BIconHeadset=/*#__PURE__*/makeIcon('Headset','');// eslint-disable-next-line\nexport var BIconHeart=/*#__PURE__*/makeIcon('Heart','');// eslint-disable-next-line\nexport var BIconHeartFill=/*#__PURE__*/makeIcon('HeartFill','');// eslint-disable-next-line\nexport var BIconHeartHalf=/*#__PURE__*/makeIcon('HeartHalf','');// eslint-disable-next-line\nexport var BIconHeptagon=/*#__PURE__*/makeIcon('Heptagon','');// eslint-disable-next-line\nexport var BIconHeptagonFill=/*#__PURE__*/makeIcon('HeptagonFill','');// eslint-disable-next-line\nexport var BIconHeptagonHalf=/*#__PURE__*/makeIcon('HeptagonHalf','');// eslint-disable-next-line\nexport var BIconHexagon=/*#__PURE__*/makeIcon('Hexagon','');// eslint-disable-next-line\nexport var BIconHexagonFill=/*#__PURE__*/makeIcon('HexagonFill','');// eslint-disable-next-line\nexport var BIconHexagonHalf=/*#__PURE__*/makeIcon('HexagonHalf','');// eslint-disable-next-line\nexport var BIconHourglass=/*#__PURE__*/makeIcon('Hourglass','');// eslint-disable-next-line\nexport var BIconHourglassBottom=/*#__PURE__*/makeIcon('HourglassBottom','');// eslint-disable-next-line\nexport var BIconHourglassSplit=/*#__PURE__*/makeIcon('HourglassSplit','');// eslint-disable-next-line\nexport var BIconHourglassTop=/*#__PURE__*/makeIcon('HourglassTop','');// eslint-disable-next-line\nexport var BIconHouse=/*#__PURE__*/makeIcon('House','');// eslint-disable-next-line\nexport var BIconHouseDoor=/*#__PURE__*/makeIcon('HouseDoor','');// eslint-disable-next-line\nexport var BIconHouseDoorFill=/*#__PURE__*/makeIcon('HouseDoorFill','');// eslint-disable-next-line\nexport var BIconHouseFill=/*#__PURE__*/makeIcon('HouseFill','');// eslint-disable-next-line\nexport var BIconHr=/*#__PURE__*/makeIcon('Hr','');// eslint-disable-next-line\nexport var BIconImage=/*#__PURE__*/makeIcon('Image','');// eslint-disable-next-line\nexport var BIconImageAlt=/*#__PURE__*/makeIcon('ImageAlt','');// eslint-disable-next-line\nexport var BIconImageFill=/*#__PURE__*/makeIcon('ImageFill','');// eslint-disable-next-line\nexport var BIconImages=/*#__PURE__*/makeIcon('Images','');// eslint-disable-next-line\nexport var BIconInbox=/*#__PURE__*/makeIcon('Inbox','');// eslint-disable-next-line\nexport var BIconInboxFill=/*#__PURE__*/makeIcon('InboxFill','');// eslint-disable-next-line\nexport var BIconInboxes=/*#__PURE__*/makeIcon('Inboxes','');// eslint-disable-next-line\nexport var BIconInboxesFill=/*#__PURE__*/makeIcon('InboxesFill','');// eslint-disable-next-line\nexport var BIconInfo=/*#__PURE__*/makeIcon('Info','');// eslint-disable-next-line\nexport var BIconInfoCircle=/*#__PURE__*/makeIcon('InfoCircle','');// eslint-disable-next-line\nexport var BIconInfoCircleFill=/*#__PURE__*/makeIcon('InfoCircleFill','');// eslint-disable-next-line\nexport var BIconInfoSquare=/*#__PURE__*/makeIcon('InfoSquare','');// eslint-disable-next-line\nexport var BIconInfoSquareFill=/*#__PURE__*/makeIcon('InfoSquareFill','');// eslint-disable-next-line\nexport var BIconInputCursor=/*#__PURE__*/makeIcon('InputCursor','');// eslint-disable-next-line\nexport var BIconInputCursorText=/*#__PURE__*/makeIcon('InputCursorText','');// eslint-disable-next-line\nexport var BIconIntersect=/*#__PURE__*/makeIcon('Intersect','');// eslint-disable-next-line\nexport var BIconJournal=/*#__PURE__*/makeIcon('Journal','');// eslint-disable-next-line\nexport var BIconJournalAlbum=/*#__PURE__*/makeIcon('JournalAlbum','');// eslint-disable-next-line\nexport var BIconJournalArrowDown=/*#__PURE__*/makeIcon('JournalArrowDown','');// eslint-disable-next-line\nexport var BIconJournalArrowUp=/*#__PURE__*/makeIcon('JournalArrowUp','');// eslint-disable-next-line\nexport var BIconJournalCheck=/*#__PURE__*/makeIcon('JournalCheck','');// eslint-disable-next-line\nexport var BIconJournalCode=/*#__PURE__*/makeIcon('JournalCode','');// eslint-disable-next-line\nexport var BIconJournalMedical=/*#__PURE__*/makeIcon('JournalMedical','');// eslint-disable-next-line\nexport var BIconJournalMinus=/*#__PURE__*/makeIcon('JournalMinus','');// eslint-disable-next-line\nexport var BIconJournalPlus=/*#__PURE__*/makeIcon('JournalPlus','');// eslint-disable-next-line\nexport var BIconJournalRichtext=/*#__PURE__*/makeIcon('JournalRichtext','');// eslint-disable-next-line\nexport var BIconJournalText=/*#__PURE__*/makeIcon('JournalText','');// eslint-disable-next-line\nexport var BIconJournalX=/*#__PURE__*/makeIcon('JournalX','');// eslint-disable-next-line\nexport var BIconJournals=/*#__PURE__*/makeIcon('Journals','');// eslint-disable-next-line\nexport var BIconJoystick=/*#__PURE__*/makeIcon('Joystick','');// eslint-disable-next-line\nexport var BIconJustify=/*#__PURE__*/makeIcon('Justify','');// eslint-disable-next-line\nexport var BIconJustifyLeft=/*#__PURE__*/makeIcon('JustifyLeft','');// eslint-disable-next-line\nexport var BIconJustifyRight=/*#__PURE__*/makeIcon('JustifyRight','');// eslint-disable-next-line\nexport var BIconKanban=/*#__PURE__*/makeIcon('Kanban','');// eslint-disable-next-line\nexport var BIconKanbanFill=/*#__PURE__*/makeIcon('KanbanFill','');// eslint-disable-next-line\nexport var BIconKey=/*#__PURE__*/makeIcon('Key','');// eslint-disable-next-line\nexport var BIconKeyFill=/*#__PURE__*/makeIcon('KeyFill','');// eslint-disable-next-line\nexport var BIconKeyboard=/*#__PURE__*/makeIcon('Keyboard','');// eslint-disable-next-line\nexport var BIconKeyboardFill=/*#__PURE__*/makeIcon('KeyboardFill','');// eslint-disable-next-line\nexport var BIconLadder=/*#__PURE__*/makeIcon('Ladder','');// eslint-disable-next-line\nexport var BIconLamp=/*#__PURE__*/makeIcon('Lamp','');// eslint-disable-next-line\nexport var BIconLampFill=/*#__PURE__*/makeIcon('LampFill','');// eslint-disable-next-line\nexport var BIconLaptop=/*#__PURE__*/makeIcon('Laptop','');// eslint-disable-next-line\nexport var BIconLaptopFill=/*#__PURE__*/makeIcon('LaptopFill','');// eslint-disable-next-line\nexport var BIconLayers=/*#__PURE__*/makeIcon('Layers','');// eslint-disable-next-line\nexport var BIconLayersFill=/*#__PURE__*/makeIcon('LayersFill','');// eslint-disable-next-line\nexport var BIconLayersHalf=/*#__PURE__*/makeIcon('LayersHalf','');// eslint-disable-next-line\nexport var BIconLayoutSidebar=/*#__PURE__*/makeIcon('LayoutSidebar','');// eslint-disable-next-line\nexport var BIconLayoutSidebarInset=/*#__PURE__*/makeIcon('LayoutSidebarInset','');// eslint-disable-next-line\nexport var BIconLayoutSidebarInsetReverse=/*#__PURE__*/makeIcon('LayoutSidebarInsetReverse','');// eslint-disable-next-line\nexport var BIconLayoutSidebarReverse=/*#__PURE__*/makeIcon('LayoutSidebarReverse','');// eslint-disable-next-line\nexport var BIconLayoutSplit=/*#__PURE__*/makeIcon('LayoutSplit','');// eslint-disable-next-line\nexport var BIconLayoutTextSidebar=/*#__PURE__*/makeIcon('LayoutTextSidebar','');// eslint-disable-next-line\nexport var BIconLayoutTextSidebarReverse=/*#__PURE__*/makeIcon('LayoutTextSidebarReverse','');// eslint-disable-next-line\nexport var BIconLayoutTextWindow=/*#__PURE__*/makeIcon('LayoutTextWindow','');// eslint-disable-next-line\nexport var BIconLayoutTextWindowReverse=/*#__PURE__*/makeIcon('LayoutTextWindowReverse','');// eslint-disable-next-line\nexport var BIconLayoutThreeColumns=/*#__PURE__*/makeIcon('LayoutThreeColumns','');// eslint-disable-next-line\nexport var BIconLayoutWtf=/*#__PURE__*/makeIcon('LayoutWtf','');// eslint-disable-next-line\nexport var BIconLifePreserver=/*#__PURE__*/makeIcon('LifePreserver','');// eslint-disable-next-line\nexport var BIconLightning=/*#__PURE__*/makeIcon('Lightning','');// eslint-disable-next-line\nexport var BIconLightningFill=/*#__PURE__*/makeIcon('LightningFill','');// eslint-disable-next-line\nexport var BIconLink=/*#__PURE__*/makeIcon('Link','');// eslint-disable-next-line\nexport var BIconLink45deg=/*#__PURE__*/makeIcon('Link45deg','');// eslint-disable-next-line\nexport var BIconList=/*#__PURE__*/makeIcon('List','');// eslint-disable-next-line\nexport var BIconListCheck=/*#__PURE__*/makeIcon('ListCheck','');// eslint-disable-next-line\nexport var BIconListNested=/*#__PURE__*/makeIcon('ListNested','');// eslint-disable-next-line\nexport var BIconListOl=/*#__PURE__*/makeIcon('ListOl','');// eslint-disable-next-line\nexport var BIconListStars=/*#__PURE__*/makeIcon('ListStars','');// eslint-disable-next-line\nexport var BIconListTask=/*#__PURE__*/makeIcon('ListTask','');// eslint-disable-next-line\nexport var BIconListUl=/*#__PURE__*/makeIcon('ListUl','');// eslint-disable-next-line\nexport var BIconLock=/*#__PURE__*/makeIcon('Lock','');// eslint-disable-next-line\nexport var BIconLockFill=/*#__PURE__*/makeIcon('LockFill','');// eslint-disable-next-line\nexport var BIconMailbox=/*#__PURE__*/makeIcon('Mailbox','');// eslint-disable-next-line\nexport var BIconMailbox2=/*#__PURE__*/makeIcon('Mailbox2','');// eslint-disable-next-line\nexport var BIconMap=/*#__PURE__*/makeIcon('Map','');// eslint-disable-next-line\nexport var BIconMapFill=/*#__PURE__*/makeIcon('MapFill','');// eslint-disable-next-line\nexport var BIconMarkdown=/*#__PURE__*/makeIcon('Markdown','');// eslint-disable-next-line\nexport var BIconMarkdownFill=/*#__PURE__*/makeIcon('MarkdownFill','');// eslint-disable-next-line\nexport var BIconMenuApp=/*#__PURE__*/makeIcon('MenuApp','');// eslint-disable-next-line\nexport var BIconMenuAppFill=/*#__PURE__*/makeIcon('MenuAppFill','');// eslint-disable-next-line\nexport var BIconMenuButton=/*#__PURE__*/makeIcon('MenuButton','');// eslint-disable-next-line\nexport var BIconMenuButtonFill=/*#__PURE__*/makeIcon('MenuButtonFill','');// eslint-disable-next-line\nexport var BIconMenuButtonWide=/*#__PURE__*/makeIcon('MenuButtonWide','');// eslint-disable-next-line\nexport var BIconMenuButtonWideFill=/*#__PURE__*/makeIcon('MenuButtonWideFill','');// eslint-disable-next-line\nexport var BIconMenuDown=/*#__PURE__*/makeIcon('MenuDown','');// eslint-disable-next-line\nexport var BIconMenuUp=/*#__PURE__*/makeIcon('MenuUp','');// eslint-disable-next-line\nexport var BIconMic=/*#__PURE__*/makeIcon('Mic','');// eslint-disable-next-line\nexport var BIconMicFill=/*#__PURE__*/makeIcon('MicFill','');// eslint-disable-next-line\nexport var BIconMicMute=/*#__PURE__*/makeIcon('MicMute','');// eslint-disable-next-line\nexport var BIconMicMuteFill=/*#__PURE__*/makeIcon('MicMuteFill','');// eslint-disable-next-line\nexport var BIconMinecart=/*#__PURE__*/makeIcon('Minecart','');// eslint-disable-next-line\nexport var BIconMinecartLoaded=/*#__PURE__*/makeIcon('MinecartLoaded','');// eslint-disable-next-line\nexport var BIconMoon=/*#__PURE__*/makeIcon('Moon','');// eslint-disable-next-line\nexport var BIconMouse=/*#__PURE__*/makeIcon('Mouse','');// eslint-disable-next-line\nexport var BIconMouse2=/*#__PURE__*/makeIcon('Mouse2','');// eslint-disable-next-line\nexport var BIconMouse3=/*#__PURE__*/makeIcon('Mouse3','');// eslint-disable-next-line\nexport var BIconMusicNote=/*#__PURE__*/makeIcon('MusicNote','');// eslint-disable-next-line\nexport var BIconMusicNoteBeamed=/*#__PURE__*/makeIcon('MusicNoteBeamed','');// eslint-disable-next-line\nexport var BIconMusicNoteList=/*#__PURE__*/makeIcon('MusicNoteList','');// eslint-disable-next-line\nexport var BIconMusicPlayer=/*#__PURE__*/makeIcon('MusicPlayer','');// eslint-disable-next-line\nexport var BIconMusicPlayerFill=/*#__PURE__*/makeIcon('MusicPlayerFill','');// eslint-disable-next-line\nexport var BIconNewspaper=/*#__PURE__*/makeIcon('Newspaper','');// eslint-disable-next-line\nexport var BIconNodeMinus=/*#__PURE__*/makeIcon('NodeMinus','');// eslint-disable-next-line\nexport var BIconNodeMinusFill=/*#__PURE__*/makeIcon('NodeMinusFill','');// eslint-disable-next-line\nexport var BIconNodePlus=/*#__PURE__*/makeIcon('NodePlus','');// eslint-disable-next-line\nexport var BIconNodePlusFill=/*#__PURE__*/makeIcon('NodePlusFill','');// eslint-disable-next-line\nexport var BIconNut=/*#__PURE__*/makeIcon('Nut','');// eslint-disable-next-line\nexport var BIconNutFill=/*#__PURE__*/makeIcon('NutFill','');// eslint-disable-next-line\nexport var BIconOctagon=/*#__PURE__*/makeIcon('Octagon','');// eslint-disable-next-line\nexport var BIconOctagonFill=/*#__PURE__*/makeIcon('OctagonFill','');// eslint-disable-next-line\nexport var BIconOctagonHalf=/*#__PURE__*/makeIcon('OctagonHalf','');// eslint-disable-next-line\nexport var BIconOption=/*#__PURE__*/makeIcon('Option','');// eslint-disable-next-line\nexport var BIconOutlet=/*#__PURE__*/makeIcon('Outlet','');// eslint-disable-next-line\nexport var BIconPaperclip=/*#__PURE__*/makeIcon('Paperclip','');// eslint-disable-next-line\nexport var BIconParagraph=/*#__PURE__*/makeIcon('Paragraph','');// eslint-disable-next-line\nexport var BIconPatchCheck=/*#__PURE__*/makeIcon('PatchCheck','');// eslint-disable-next-line\nexport var BIconPatchCheckFll=/*#__PURE__*/makeIcon('PatchCheckFll','');// eslint-disable-next-line\nexport var BIconPatchExclamation=/*#__PURE__*/makeIcon('PatchExclamation','');// eslint-disable-next-line\nexport var BIconPatchExclamationFll=/*#__PURE__*/makeIcon('PatchExclamationFll','');// eslint-disable-next-line\nexport var BIconPatchMinus=/*#__PURE__*/makeIcon('PatchMinus','');// eslint-disable-next-line\nexport var BIconPatchMinusFll=/*#__PURE__*/makeIcon('PatchMinusFll','');// eslint-disable-next-line\nexport var BIconPatchPlus=/*#__PURE__*/makeIcon('PatchPlus','');// eslint-disable-next-line\nexport var BIconPatchPlusFll=/*#__PURE__*/makeIcon('PatchPlusFll','');// eslint-disable-next-line\nexport var BIconPatchQuestion=/*#__PURE__*/makeIcon('PatchQuestion','');// eslint-disable-next-line\nexport var BIconPatchQuestionFll=/*#__PURE__*/makeIcon('PatchQuestionFll','');// eslint-disable-next-line\nexport var BIconPause=/*#__PURE__*/makeIcon('Pause','');// eslint-disable-next-line\nexport var BIconPauseFill=/*#__PURE__*/makeIcon('PauseFill','');// eslint-disable-next-line\nexport var BIconPeace=/*#__PURE__*/makeIcon('Peace','');// eslint-disable-next-line\nexport var BIconPeaceFill=/*#__PURE__*/makeIcon('PeaceFill','');// eslint-disable-next-line\nexport var BIconPen=/*#__PURE__*/makeIcon('Pen','');// eslint-disable-next-line\nexport var BIconPenFill=/*#__PURE__*/makeIcon('PenFill','');// eslint-disable-next-line\nexport var BIconPencil=/*#__PURE__*/makeIcon('Pencil','');// eslint-disable-next-line\nexport var BIconPencilFill=/*#__PURE__*/makeIcon('PencilFill','');// eslint-disable-next-line\nexport var BIconPencilSquare=/*#__PURE__*/makeIcon('PencilSquare','');// eslint-disable-next-line\nexport var BIconPentagon=/*#__PURE__*/makeIcon('Pentagon','');// eslint-disable-next-line\nexport var BIconPentagonFill=/*#__PURE__*/makeIcon('PentagonFill','');// eslint-disable-next-line\nexport var BIconPentagonHalf=/*#__PURE__*/makeIcon('PentagonHalf','');// eslint-disable-next-line\nexport var BIconPeople=/*#__PURE__*/makeIcon('People','');// eslint-disable-next-line\nexport var BIconPeopleFill=/*#__PURE__*/makeIcon('PeopleFill','');// eslint-disable-next-line\nexport var BIconPercent=/*#__PURE__*/makeIcon('Percent','');// eslint-disable-next-line\nexport var BIconPerson=/*#__PURE__*/makeIcon('Person','');// eslint-disable-next-line\nexport var BIconPersonBadge=/*#__PURE__*/makeIcon('PersonBadge','');// eslint-disable-next-line\nexport var BIconPersonBadgeFill=/*#__PURE__*/makeIcon('PersonBadgeFill','');// eslint-disable-next-line\nexport var BIconPersonBoundingBox=/*#__PURE__*/makeIcon('PersonBoundingBox','');// eslint-disable-next-line\nexport var BIconPersonCheck=/*#__PURE__*/makeIcon('PersonCheck','');// eslint-disable-next-line\nexport var BIconPersonCheckFill=/*#__PURE__*/makeIcon('PersonCheckFill','');// eslint-disable-next-line\nexport var BIconPersonCircle=/*#__PURE__*/makeIcon('PersonCircle','');// eslint-disable-next-line\nexport var BIconPersonDash=/*#__PURE__*/makeIcon('PersonDash','');// eslint-disable-next-line\nexport var BIconPersonDashFill=/*#__PURE__*/makeIcon('PersonDashFill','');// eslint-disable-next-line\nexport var BIconPersonFill=/*#__PURE__*/makeIcon('PersonFill','');// eslint-disable-next-line\nexport var BIconPersonLinesFill=/*#__PURE__*/makeIcon('PersonLinesFill','');// eslint-disable-next-line\nexport var BIconPersonPlus=/*#__PURE__*/makeIcon('PersonPlus','');// eslint-disable-next-line\nexport var BIconPersonPlusFill=/*#__PURE__*/makeIcon('PersonPlusFill','');// eslint-disable-next-line\nexport var BIconPersonSquare=/*#__PURE__*/makeIcon('PersonSquare','');// eslint-disable-next-line\nexport var BIconPersonX=/*#__PURE__*/makeIcon('PersonX','');// eslint-disable-next-line\nexport var BIconPersonXFill=/*#__PURE__*/makeIcon('PersonXFill','');// eslint-disable-next-line\nexport var BIconPhone=/*#__PURE__*/makeIcon('Phone','');// eslint-disable-next-line\nexport var BIconPhoneFill=/*#__PURE__*/makeIcon('PhoneFill','');// eslint-disable-next-line\nexport var BIconPhoneLandscape=/*#__PURE__*/makeIcon('PhoneLandscape','');// eslint-disable-next-line\nexport var BIconPhoneLandscapeFill=/*#__PURE__*/makeIcon('PhoneLandscapeFill','');// eslint-disable-next-line\nexport var BIconPhoneVibrate=/*#__PURE__*/makeIcon('PhoneVibrate','');// eslint-disable-next-line\nexport var BIconPieChart=/*#__PURE__*/makeIcon('PieChart','');// eslint-disable-next-line\nexport var BIconPieChartFill=/*#__PURE__*/makeIcon('PieChartFill','');// eslint-disable-next-line\nexport var BIconPip=/*#__PURE__*/makeIcon('Pip','');// eslint-disable-next-line\nexport var BIconPipFill=/*#__PURE__*/makeIcon('PipFill','');// eslint-disable-next-line\nexport var BIconPlay=/*#__PURE__*/makeIcon('Play','');// eslint-disable-next-line\nexport var BIconPlayFill=/*#__PURE__*/makeIcon('PlayFill','');// eslint-disable-next-line\nexport var BIconPlug=/*#__PURE__*/makeIcon('Plug','');// eslint-disable-next-line\nexport var BIconPlugFill=/*#__PURE__*/makeIcon('PlugFill','');// eslint-disable-next-line\nexport var BIconPlus=/*#__PURE__*/makeIcon('Plus','');// eslint-disable-next-line\nexport var BIconPlusCircle=/*#__PURE__*/makeIcon('PlusCircle','');// eslint-disable-next-line\nexport var BIconPlusCircleFill=/*#__PURE__*/makeIcon('PlusCircleFill','');// eslint-disable-next-line\nexport var BIconPlusSquare=/*#__PURE__*/makeIcon('PlusSquare','');// eslint-disable-next-line\nexport var BIconPlusSquareFill=/*#__PURE__*/makeIcon('PlusSquareFill','');// eslint-disable-next-line\nexport var BIconPower=/*#__PURE__*/makeIcon('Power','');// eslint-disable-next-line\nexport var BIconPrinter=/*#__PURE__*/makeIcon('Printer','');// eslint-disable-next-line\nexport var BIconPrinterFill=/*#__PURE__*/makeIcon('PrinterFill','');// eslint-disable-next-line\nexport var BIconPuzzle=/*#__PURE__*/makeIcon('Puzzle','');// eslint-disable-next-line\nexport var BIconPuzzleFill=/*#__PURE__*/makeIcon('PuzzleFill','');// eslint-disable-next-line\nexport var BIconQuestion=/*#__PURE__*/makeIcon('Question','');// eslint-disable-next-line\nexport var BIconQuestionCircle=/*#__PURE__*/makeIcon('QuestionCircle','');// eslint-disable-next-line\nexport var BIconQuestionCircleFill=/*#__PURE__*/makeIcon('QuestionCircleFill','');// eslint-disable-next-line\nexport var BIconQuestionDiamond=/*#__PURE__*/makeIcon('QuestionDiamond','');// eslint-disable-next-line\nexport var BIconQuestionDiamondFill=/*#__PURE__*/makeIcon('QuestionDiamondFill','');// eslint-disable-next-line\nexport var BIconQuestionOctagon=/*#__PURE__*/makeIcon('QuestionOctagon','');// eslint-disable-next-line\nexport var BIconQuestionOctagonFill=/*#__PURE__*/makeIcon('QuestionOctagonFill','');// eslint-disable-next-line\nexport var BIconQuestionSquare=/*#__PURE__*/makeIcon('QuestionSquare','');// eslint-disable-next-line\nexport var BIconQuestionSquareFill=/*#__PURE__*/makeIcon('QuestionSquareFill','');// eslint-disable-next-line\nexport var BIconReceipt=/*#__PURE__*/makeIcon('Receipt','');// eslint-disable-next-line\nexport var BIconReceiptCutoff=/*#__PURE__*/makeIcon('ReceiptCutoff','');// eslint-disable-next-line\nexport var BIconReception0=/*#__PURE__*/makeIcon('Reception0','');// eslint-disable-next-line\nexport var BIconReception1=/*#__PURE__*/makeIcon('Reception1','');// eslint-disable-next-line\nexport var BIconReception2=/*#__PURE__*/makeIcon('Reception2','');// eslint-disable-next-line\nexport var BIconReception3=/*#__PURE__*/makeIcon('Reception3','');// eslint-disable-next-line\nexport var BIconReception4=/*#__PURE__*/makeIcon('Reception4','');// eslint-disable-next-line\nexport var BIconReply=/*#__PURE__*/makeIcon('Reply','');// eslint-disable-next-line\nexport var BIconReplyAll=/*#__PURE__*/makeIcon('ReplyAll','');// eslint-disable-next-line\nexport var BIconReplyAllFill=/*#__PURE__*/makeIcon('ReplyAllFill','');// eslint-disable-next-line\nexport var BIconReplyFill=/*#__PURE__*/makeIcon('ReplyFill','');// eslint-disable-next-line\nexport var BIconRss=/*#__PURE__*/makeIcon('Rss','');// eslint-disable-next-line\nexport var BIconRssFill=/*#__PURE__*/makeIcon('RssFill','');// eslint-disable-next-line\nexport var BIconScissors=/*#__PURE__*/makeIcon('Scissors','');// eslint-disable-next-line\nexport var BIconScrewdriver=/*#__PURE__*/makeIcon('Screwdriver','');// eslint-disable-next-line\nexport var BIconSearch=/*#__PURE__*/makeIcon('Search','');// eslint-disable-next-line\nexport var BIconSegmentedNav=/*#__PURE__*/makeIcon('SegmentedNav','');// eslint-disable-next-line\nexport var BIconServer=/*#__PURE__*/makeIcon('Server','');// eslint-disable-next-line\nexport var BIconShare=/*#__PURE__*/makeIcon('Share','');// eslint-disable-next-line\nexport var BIconShareFill=/*#__PURE__*/makeIcon('ShareFill','');// eslint-disable-next-line\nexport var BIconShield=/*#__PURE__*/makeIcon('Shield','');// eslint-disable-next-line\nexport var BIconShieldCheck=/*#__PURE__*/makeIcon('ShieldCheck','');// eslint-disable-next-line\nexport var BIconShieldExclamation=/*#__PURE__*/makeIcon('ShieldExclamation','');// eslint-disable-next-line\nexport var BIconShieldFill=/*#__PURE__*/makeIcon('ShieldFill','');// eslint-disable-next-line\nexport var BIconShieldFillCheck=/*#__PURE__*/makeIcon('ShieldFillCheck','');// eslint-disable-next-line\nexport var BIconShieldFillExclamation=/*#__PURE__*/makeIcon('ShieldFillExclamation','');// eslint-disable-next-line\nexport var BIconShieldFillMinus=/*#__PURE__*/makeIcon('ShieldFillMinus','');// eslint-disable-next-line\nexport var BIconShieldFillPlus=/*#__PURE__*/makeIcon('ShieldFillPlus','');// eslint-disable-next-line\nexport var BIconShieldFillX=/*#__PURE__*/makeIcon('ShieldFillX','');// eslint-disable-next-line\nexport var BIconShieldLock=/*#__PURE__*/makeIcon('ShieldLock','');// eslint-disable-next-line\nexport var BIconShieldLockFill=/*#__PURE__*/makeIcon('ShieldLockFill','');// eslint-disable-next-line\nexport var BIconShieldMinus=/*#__PURE__*/makeIcon('ShieldMinus','');// eslint-disable-next-line\nexport var BIconShieldPlus=/*#__PURE__*/makeIcon('ShieldPlus','');// eslint-disable-next-line\nexport var BIconShieldShaded=/*#__PURE__*/makeIcon('ShieldShaded','');// eslint-disable-next-line\nexport var BIconShieldSlash=/*#__PURE__*/makeIcon('ShieldSlash','');// eslint-disable-next-line\nexport var BIconShieldSlashFill=/*#__PURE__*/makeIcon('ShieldSlashFill','');// eslint-disable-next-line\nexport var BIconShieldX=/*#__PURE__*/makeIcon('ShieldX','');// eslint-disable-next-line\nexport var BIconShift=/*#__PURE__*/makeIcon('Shift','');// eslint-disable-next-line\nexport var BIconShiftFill=/*#__PURE__*/makeIcon('ShiftFill','');// eslint-disable-next-line\nexport var BIconShop=/*#__PURE__*/makeIcon('Shop','');// eslint-disable-next-line\nexport var BIconShopWindow=/*#__PURE__*/makeIcon('ShopWindow','');// eslint-disable-next-line\nexport var BIconShuffle=/*#__PURE__*/makeIcon('Shuffle','');// eslint-disable-next-line\nexport var BIconSignpost=/*#__PURE__*/makeIcon('Signpost','');// eslint-disable-next-line\nexport var BIconSignpost2=/*#__PURE__*/makeIcon('Signpost2','');// eslint-disable-next-line\nexport var BIconSignpost2Fill=/*#__PURE__*/makeIcon('Signpost2Fill','');// eslint-disable-next-line\nexport var BIconSignpostFill=/*#__PURE__*/makeIcon('SignpostFill','');// eslint-disable-next-line\nexport var BIconSignpostSplit=/*#__PURE__*/makeIcon('SignpostSplit','');// eslint-disable-next-line\nexport var BIconSignpostSplitFill=/*#__PURE__*/makeIcon('SignpostSplitFill','');// eslint-disable-next-line\nexport var BIconSim=/*#__PURE__*/makeIcon('Sim','');// eslint-disable-next-line\nexport var BIconSimFill=/*#__PURE__*/makeIcon('SimFill','');// eslint-disable-next-line\nexport var BIconSkipBackward=/*#__PURE__*/makeIcon('SkipBackward','');// eslint-disable-next-line\nexport var BIconSkipBackwardFill=/*#__PURE__*/makeIcon('SkipBackwardFill','');// eslint-disable-next-line\nexport var BIconSkipEnd=/*#__PURE__*/makeIcon('SkipEnd','');// eslint-disable-next-line\nexport var BIconSkipEndFill=/*#__PURE__*/makeIcon('SkipEndFill','');// eslint-disable-next-line\nexport var BIconSkipForward=/*#__PURE__*/makeIcon('SkipForward','');// eslint-disable-next-line\nexport var BIconSkipForwardFill=/*#__PURE__*/makeIcon('SkipForwardFill','');// eslint-disable-next-line\nexport var BIconSkipStart=/*#__PURE__*/makeIcon('SkipStart','');// eslint-disable-next-line\nexport var BIconSkipStartFill=/*#__PURE__*/makeIcon('SkipStartFill','');// eslint-disable-next-line\nexport var BIconSlash=/*#__PURE__*/makeIcon('Slash','');// eslint-disable-next-line\nexport var BIconSlashCircle=/*#__PURE__*/makeIcon('SlashCircle','');// eslint-disable-next-line\nexport var BIconSlashCircleFill=/*#__PURE__*/makeIcon('SlashCircleFill','');// eslint-disable-next-line\nexport var BIconSlashSquare=/*#__PURE__*/makeIcon('SlashSquare','');// eslint-disable-next-line\nexport var BIconSlashSquareFill=/*#__PURE__*/makeIcon('SlashSquareFill','');// eslint-disable-next-line\nexport var BIconSliders=/*#__PURE__*/makeIcon('Sliders','');// eslint-disable-next-line\nexport var BIconSmartwatch=/*#__PURE__*/makeIcon('Smartwatch','');// eslint-disable-next-line\nexport var BIconSortAlphaDown=/*#__PURE__*/makeIcon('SortAlphaDown','');// eslint-disable-next-line\nexport var BIconSortAlphaDownAlt=/*#__PURE__*/makeIcon('SortAlphaDownAlt','');// eslint-disable-next-line\nexport var BIconSortAlphaUp=/*#__PURE__*/makeIcon('SortAlphaUp','');// eslint-disable-next-line\nexport var BIconSortAlphaUpAlt=/*#__PURE__*/makeIcon('SortAlphaUpAlt','');// eslint-disable-next-line\nexport var BIconSortDown=/*#__PURE__*/makeIcon('SortDown','');// eslint-disable-next-line\nexport var BIconSortDownAlt=/*#__PURE__*/makeIcon('SortDownAlt','');// eslint-disable-next-line\nexport var BIconSortNumericDown=/*#__PURE__*/makeIcon('SortNumericDown','');// eslint-disable-next-line\nexport var BIconSortNumericDownAlt=/*#__PURE__*/makeIcon('SortNumericDownAlt','');// eslint-disable-next-line\nexport var BIconSortNumericUp=/*#__PURE__*/makeIcon('SortNumericUp','');// eslint-disable-next-line\nexport var BIconSortNumericUpAlt=/*#__PURE__*/makeIcon('SortNumericUpAlt','');// eslint-disable-next-line\nexport var BIconSortUp=/*#__PURE__*/makeIcon('SortUp','');// eslint-disable-next-line\nexport var BIconSortUpAlt=/*#__PURE__*/makeIcon('SortUpAlt','');// eslint-disable-next-line\nexport var BIconSoundwave=/*#__PURE__*/makeIcon('Soundwave','');// eslint-disable-next-line\nexport var BIconSpeaker=/*#__PURE__*/makeIcon('Speaker','');// eslint-disable-next-line\nexport var BIconSpeakerFill=/*#__PURE__*/makeIcon('SpeakerFill','');// eslint-disable-next-line\nexport var BIconSpellcheck=/*#__PURE__*/makeIcon('Spellcheck','');// eslint-disable-next-line\nexport var BIconSquare=/*#__PURE__*/makeIcon('Square','');// eslint-disable-next-line\nexport var BIconSquareFill=/*#__PURE__*/makeIcon('SquareFill','');// eslint-disable-next-line\nexport var BIconSquareHalf=/*#__PURE__*/makeIcon('SquareHalf','');// eslint-disable-next-line\nexport var BIconStar=/*#__PURE__*/makeIcon('Star','');// eslint-disable-next-line\nexport var BIconStarFill=/*#__PURE__*/makeIcon('StarFill','');// eslint-disable-next-line\nexport var BIconStarHalf=/*#__PURE__*/makeIcon('StarHalf','');// eslint-disable-next-line\nexport var BIconStickies=/*#__PURE__*/makeIcon('Stickies','');// eslint-disable-next-line\nexport var BIconStickiesFill=/*#__PURE__*/makeIcon('StickiesFill','');// eslint-disable-next-line\nexport var BIconSticky=/*#__PURE__*/makeIcon('Sticky','');// eslint-disable-next-line\nexport var BIconStickyFill=/*#__PURE__*/makeIcon('StickyFill','');// eslint-disable-next-line\nexport var BIconStop=/*#__PURE__*/makeIcon('Stop','');// eslint-disable-next-line\nexport var BIconStopFill=/*#__PURE__*/makeIcon('StopFill','');// eslint-disable-next-line\nexport var BIconStoplights=/*#__PURE__*/makeIcon('Stoplights','');// eslint-disable-next-line\nexport var BIconStoplightsFill=/*#__PURE__*/makeIcon('StoplightsFill','');// eslint-disable-next-line\nexport var BIconStopwatch=/*#__PURE__*/makeIcon('Stopwatch','');// eslint-disable-next-line\nexport var BIconStopwatchFill=/*#__PURE__*/makeIcon('StopwatchFill','');// eslint-disable-next-line\nexport var BIconSubtract=/*#__PURE__*/makeIcon('Subtract','');// eslint-disable-next-line\nexport var BIconSuitClub=/*#__PURE__*/makeIcon('SuitClub','');// eslint-disable-next-line\nexport var BIconSuitClubFill=/*#__PURE__*/makeIcon('SuitClubFill','');// eslint-disable-next-line\nexport var BIconSuitDiamond=/*#__PURE__*/makeIcon('SuitDiamond','');// eslint-disable-next-line\nexport var BIconSuitDiamondFill=/*#__PURE__*/makeIcon('SuitDiamondFill','');// eslint-disable-next-line\nexport var BIconSuitHeart=/*#__PURE__*/makeIcon('SuitHeart','');// eslint-disable-next-line\nexport var BIconSuitHeartFill=/*#__PURE__*/makeIcon('SuitHeartFill','');// eslint-disable-next-line\nexport var BIconSuitSpade=/*#__PURE__*/makeIcon('SuitSpade','');// eslint-disable-next-line\nexport var BIconSuitSpadeFill=/*#__PURE__*/makeIcon('SuitSpadeFill','');// eslint-disable-next-line\nexport var BIconSun=/*#__PURE__*/makeIcon('Sun','');// eslint-disable-next-line\nexport var BIconSunglasses=/*#__PURE__*/makeIcon('Sunglasses','');// eslint-disable-next-line\nexport var BIconTable=/*#__PURE__*/makeIcon('Table','');// eslint-disable-next-line\nexport var BIconTablet=/*#__PURE__*/makeIcon('Tablet','');// eslint-disable-next-line\nexport var BIconTabletFill=/*#__PURE__*/makeIcon('TabletFill','');// eslint-disable-next-line\nexport var BIconTabletLandscape=/*#__PURE__*/makeIcon('TabletLandscape','');// eslint-disable-next-line\nexport var BIconTabletLandscapeFill=/*#__PURE__*/makeIcon('TabletLandscapeFill','');// eslint-disable-next-line\nexport var BIconTag=/*#__PURE__*/makeIcon('Tag','');// eslint-disable-next-line\nexport var BIconTagFill=/*#__PURE__*/makeIcon('TagFill','');// eslint-disable-next-line\nexport var BIconTags=/*#__PURE__*/makeIcon('Tags','');// eslint-disable-next-line\nexport var BIconTagsFill=/*#__PURE__*/makeIcon('TagsFill','');// eslint-disable-next-line\nexport var BIconTelephone=/*#__PURE__*/makeIcon('Telephone','');// eslint-disable-next-line\nexport var BIconTelephoneFill=/*#__PURE__*/makeIcon('TelephoneFill','');// eslint-disable-next-line\nexport var BIconTelephoneForward=/*#__PURE__*/makeIcon('TelephoneForward','');// eslint-disable-next-line\nexport var BIconTelephoneForwardFill=/*#__PURE__*/makeIcon('TelephoneForwardFill','');// eslint-disable-next-line\nexport var BIconTelephoneInbound=/*#__PURE__*/makeIcon('TelephoneInbound','');// eslint-disable-next-line\nexport var BIconTelephoneInboundFill=/*#__PURE__*/makeIcon('TelephoneInboundFill','');// eslint-disable-next-line\nexport var BIconTelephoneMinus=/*#__PURE__*/makeIcon('TelephoneMinus','');// eslint-disable-next-line\nexport var BIconTelephoneMinusFill=/*#__PURE__*/makeIcon('TelephoneMinusFill','');// eslint-disable-next-line\nexport var BIconTelephoneOutbound=/*#__PURE__*/makeIcon('TelephoneOutbound','');// eslint-disable-next-line\nexport var BIconTelephoneOutboundFill=/*#__PURE__*/makeIcon('TelephoneOutboundFill','');// eslint-disable-next-line\nexport var BIconTelephonePlus=/*#__PURE__*/makeIcon('TelephonePlus','');// eslint-disable-next-line\nexport var BIconTelephonePlusFill=/*#__PURE__*/makeIcon('TelephonePlusFill','');// eslint-disable-next-line\nexport var BIconTelephoneX=/*#__PURE__*/makeIcon('TelephoneX','');// eslint-disable-next-line\nexport var BIconTelephoneXFill=/*#__PURE__*/makeIcon('TelephoneXFill','');// eslint-disable-next-line\nexport var BIconTerminal=/*#__PURE__*/makeIcon('Terminal','');// eslint-disable-next-line\nexport var BIconTerminalFill=/*#__PURE__*/makeIcon('TerminalFill','');// eslint-disable-next-line\nexport var BIconTextCenter=/*#__PURE__*/makeIcon('TextCenter','');// eslint-disable-next-line\nexport var BIconTextIndentLeft=/*#__PURE__*/makeIcon('TextIndentLeft','');// eslint-disable-next-line\nexport var BIconTextIndentRight=/*#__PURE__*/makeIcon('TextIndentRight','');// eslint-disable-next-line\nexport var BIconTextLeft=/*#__PURE__*/makeIcon('TextLeft','');// eslint-disable-next-line\nexport var BIconTextParagraph=/*#__PURE__*/makeIcon('TextParagraph','');// eslint-disable-next-line\nexport var BIconTextRight=/*#__PURE__*/makeIcon('TextRight','');// eslint-disable-next-line\nexport var BIconTextarea=/*#__PURE__*/makeIcon('Textarea','');// eslint-disable-next-line\nexport var BIconTextareaResize=/*#__PURE__*/makeIcon('TextareaResize','');// eslint-disable-next-line\nexport var BIconTextareaT=/*#__PURE__*/makeIcon('TextareaT','');// eslint-disable-next-line\nexport var BIconThermometer=/*#__PURE__*/makeIcon('Thermometer','');// eslint-disable-next-line\nexport var BIconThermometerHalf=/*#__PURE__*/makeIcon('ThermometerHalf','');// eslint-disable-next-line\nexport var BIconThreeDots=/*#__PURE__*/makeIcon('ThreeDots','');// eslint-disable-next-line\nexport var BIconThreeDotsVertical=/*#__PURE__*/makeIcon('ThreeDotsVertical','');// eslint-disable-next-line\nexport var BIconToggle2Off=/*#__PURE__*/makeIcon('Toggle2Off','');// eslint-disable-next-line\nexport var BIconToggle2On=/*#__PURE__*/makeIcon('Toggle2On','');// eslint-disable-next-line\nexport var BIconToggleOff=/*#__PURE__*/makeIcon('ToggleOff','');// eslint-disable-next-line\nexport var BIconToggleOn=/*#__PURE__*/makeIcon('ToggleOn','');// eslint-disable-next-line\nexport var BIconToggles=/*#__PURE__*/makeIcon('Toggles','');// eslint-disable-next-line\nexport var BIconToggles2=/*#__PURE__*/makeIcon('Toggles2','');// eslint-disable-next-line\nexport var BIconTools=/*#__PURE__*/makeIcon('Tools','');// eslint-disable-next-line\nexport var BIconTrash=/*#__PURE__*/makeIcon('Trash','');// eslint-disable-next-line\nexport var BIconTrash2=/*#__PURE__*/makeIcon('Trash2','');// eslint-disable-next-line\nexport var BIconTrash2Fill=/*#__PURE__*/makeIcon('Trash2Fill','');// eslint-disable-next-line\nexport var BIconTrashFill=/*#__PURE__*/makeIcon('TrashFill','');// eslint-disable-next-line\nexport var BIconTree=/*#__PURE__*/makeIcon('Tree','');// eslint-disable-next-line\nexport var BIconTreeFill=/*#__PURE__*/makeIcon('TreeFill','');// eslint-disable-next-line\nexport var BIconTriangle=/*#__PURE__*/makeIcon('Triangle','');// eslint-disable-next-line\nexport var BIconTriangleFill=/*#__PURE__*/makeIcon('TriangleFill','');// eslint-disable-next-line\nexport var BIconTriangleHalf=/*#__PURE__*/makeIcon('TriangleHalf','');// eslint-disable-next-line\nexport var BIconTrophy=/*#__PURE__*/makeIcon('Trophy','');// eslint-disable-next-line\nexport var BIconTrophyFill=/*#__PURE__*/makeIcon('TrophyFill','');// eslint-disable-next-line\nexport var BIconTruck=/*#__PURE__*/makeIcon('Truck','');// eslint-disable-next-line\nexport var BIconTruckFlatbed=/*#__PURE__*/makeIcon('TruckFlatbed','');// eslint-disable-next-line\nexport var BIconTv=/*#__PURE__*/makeIcon('Tv','');// eslint-disable-next-line\nexport var BIconTvFill=/*#__PURE__*/makeIcon('TvFill','');// eslint-disable-next-line\nexport var BIconType=/*#__PURE__*/makeIcon('Type','');// eslint-disable-next-line\nexport var BIconTypeBold=/*#__PURE__*/makeIcon('TypeBold','');// eslint-disable-next-line\nexport var BIconTypeH1=/*#__PURE__*/makeIcon('TypeH1','');// eslint-disable-next-line\nexport var BIconTypeH2=/*#__PURE__*/makeIcon('TypeH2','');// eslint-disable-next-line\nexport var BIconTypeH3=/*#__PURE__*/makeIcon('TypeH3','');// eslint-disable-next-line\nexport var BIconTypeItalic=/*#__PURE__*/makeIcon('TypeItalic','');// eslint-disable-next-line\nexport var BIconTypeStrikethrough=/*#__PURE__*/makeIcon('TypeStrikethrough','');// eslint-disable-next-line\nexport var BIconTypeUnderline=/*#__PURE__*/makeIcon('TypeUnderline','');// eslint-disable-next-line\nexport var BIconUiChecks=/*#__PURE__*/makeIcon('UiChecks','');// eslint-disable-next-line\nexport var BIconUiChecksGrid=/*#__PURE__*/makeIcon('UiChecksGrid','');// eslint-disable-next-line\nexport var BIconUiRadios=/*#__PURE__*/makeIcon('UiRadios','');// eslint-disable-next-line\nexport var BIconUiRadiosGrid=/*#__PURE__*/makeIcon('UiRadiosGrid','');// eslint-disable-next-line\nexport var BIconUnion=/*#__PURE__*/makeIcon('Union','');// eslint-disable-next-line\nexport var BIconUnlock=/*#__PURE__*/makeIcon('Unlock','');// eslint-disable-next-line\nexport var BIconUnlockFill=/*#__PURE__*/makeIcon('UnlockFill','');// eslint-disable-next-line\nexport var BIconUpc=/*#__PURE__*/makeIcon('Upc','');// eslint-disable-next-line\nexport var BIconUpcScan=/*#__PURE__*/makeIcon('UpcScan','');// eslint-disable-next-line\nexport var BIconUpload=/*#__PURE__*/makeIcon('Upload','');// eslint-disable-next-line\nexport var BIconVectorPen=/*#__PURE__*/makeIcon('VectorPen','');// eslint-disable-next-line\nexport var BIconViewList=/*#__PURE__*/makeIcon('ViewList','');// eslint-disable-next-line\nexport var BIconViewStacked=/*#__PURE__*/makeIcon('ViewStacked','');// eslint-disable-next-line\nexport var BIconVoicemail=/*#__PURE__*/makeIcon('Voicemail','');// eslint-disable-next-line\nexport var BIconVolumeDown=/*#__PURE__*/makeIcon('VolumeDown','');// eslint-disable-next-line\nexport var BIconVolumeDownFill=/*#__PURE__*/makeIcon('VolumeDownFill','');// eslint-disable-next-line\nexport var BIconVolumeMute=/*#__PURE__*/makeIcon('VolumeMute','');// eslint-disable-next-line\nexport var BIconVolumeMuteFill=/*#__PURE__*/makeIcon('VolumeMuteFill','');// eslint-disable-next-line\nexport var BIconVolumeOff=/*#__PURE__*/makeIcon('VolumeOff','');// eslint-disable-next-line\nexport var BIconVolumeOffFill=/*#__PURE__*/makeIcon('VolumeOffFill','');// eslint-disable-next-line\nexport var BIconVolumeUp=/*#__PURE__*/makeIcon('VolumeUp','');// eslint-disable-next-line\nexport var BIconVolumeUpFill=/*#__PURE__*/makeIcon('VolumeUpFill','');// eslint-disable-next-line\nexport var BIconVr=/*#__PURE__*/makeIcon('Vr','');// eslint-disable-next-line\nexport var BIconWallet=/*#__PURE__*/makeIcon('Wallet','');// eslint-disable-next-line\nexport var BIconWallet2=/*#__PURE__*/makeIcon('Wallet2','');// eslint-disable-next-line\nexport var BIconWalletFill=/*#__PURE__*/makeIcon('WalletFill','');// eslint-disable-next-line\nexport var BIconWatch=/*#__PURE__*/makeIcon('Watch','');// eslint-disable-next-line\nexport var BIconWifi=/*#__PURE__*/makeIcon('Wifi','');// eslint-disable-next-line\nexport var BIconWifi1=/*#__PURE__*/makeIcon('Wifi1','');// eslint-disable-next-line\nexport var BIconWifi2=/*#__PURE__*/makeIcon('Wifi2','');// eslint-disable-next-line\nexport var BIconWifiOff=/*#__PURE__*/makeIcon('WifiOff','');// eslint-disable-next-line\nexport var BIconWindow=/*#__PURE__*/makeIcon('Window','');// eslint-disable-next-line\nexport var BIconWrench=/*#__PURE__*/makeIcon('Wrench','');// eslint-disable-next-line\nexport var BIconX=/*#__PURE__*/makeIcon('X','');// eslint-disable-next-line\nexport var BIconXCircle=/*#__PURE__*/makeIcon('XCircle','');// eslint-disable-next-line\nexport var BIconXCircleFill=/*#__PURE__*/makeIcon('XCircleFill','');// eslint-disable-next-line\nexport var BIconXDiamond=/*#__PURE__*/makeIcon('XDiamond','');// eslint-disable-next-line\nexport var BIconXDiamondFill=/*#__PURE__*/makeIcon('XDiamondFill','');// eslint-disable-next-line\nexport var BIconXOctagon=/*#__PURE__*/makeIcon('XOctagon','');// eslint-disable-next-line\nexport var BIconXOctagonFill=/*#__PURE__*/makeIcon('XOctagonFill','');// eslint-disable-next-line\nexport var BIconXSquare=/*#__PURE__*/makeIcon('XSquare','');// eslint-disable-next-line\nexport var BIconXSquareFill=/*#__PURE__*/makeIcon('XSquareFill','');// eslint-disable-next-line\nexport var BIconZoomIn=/*#__PURE__*/makeIcon('ZoomIn','');// eslint-disable-next-line\nexport var BIconZoomOut=/*#__PURE__*/makeIcon('ZoomOut','');// --- END AUTO-GENERATED FILE ---","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_ICON } from '../constants/components';\nimport { RX_ICON_PREFIX } from '../constants/regex';\nimport Vue, { mergeData } from '../utils/vue';\nimport { pascalCase, trim } from '../utils/string';\nimport { BIconBlank } from './icons';\nimport { commonIconProps } from './helpers/icon-base'; // Helper BIcon component\n// Requires the requested icon component to be installed\n\nexport var BIcon = /*#__PURE__*/Vue.extend({\n name: NAME_ICON,\n functional: true,\n props: _objectSpread(_objectSpread({\n icon: {\n type: String,\n default: null\n }\n }, commonIconProps), {}, {\n stacked: {\n type: Boolean,\n default: false\n }\n }),\n render: function render(h, _ref) {\n var data = _ref.data,\n props = _ref.props,\n parent = _ref.parent;\n var icon = pascalCase(trim(props.icon || '')).replace(RX_ICON_PREFIX, '');\n var iconName = \"BIcon\".concat(icon); // If parent context exists, we check to see if the icon has been registered\n // Either locally in the parent component, or globally at the `$root` level\n // If not registered, we render a blank icon\n\n var components = ((parent || {}).$options || {}).components;\n var componentRefOrName = icon && components ? components[iconName] || BIconBlank : icon ? iconName : BIconBlank;\n return h(componentRefOrName, mergeData(data, {\n props: _objectSpread(_objectSpread({}, props), {}, {\n icon: null\n })\n }));\n }\n});","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_AVATAR } from '../../constants/components';\nimport { RX_NUMBER } from '../../constants/regex';\nimport Vue from '../../utils/vue';\nimport { getComponentConfig } from '../../utils/config';\nimport { isNumber, isString } from '../../utils/inspect';\nimport { toFloat } from '../../utils/number';\nimport { omit } from '../../utils/object';\nimport { pluckProps } from '../../utils/props';\nimport { isLink } from '../../utils/router';\nimport { BButton } from '../button/button';\nimport { BLink, props as BLinkProps } from '../link/link';\nimport { BIcon } from '../../icons/icon';\nimport { BIconPersonFill } from '../../icons/icons';\nimport normalizeSlotMixin from '../../mixins/normalize-slot'; // --- Constants ---\n\nvar CLASS_NAME = 'b-avatar';\nvar SIZES = ['sm', null, 'lg'];\nvar FONT_SIZE_SCALE = 0.4;\nvar BADGE_FONT_SIZE_SCALE = FONT_SIZE_SCALE * 0.7; // --- Props ---\n\nvar linkProps = omit(BLinkProps, ['active', 'event', 'routerTag']);\n\nvar props = _objectSpread(_objectSpread({\n src: {\n type: String // default: null\n\n },\n text: {\n type: String // default: null\n\n },\n icon: {\n type: String // default: null\n\n },\n alt: {\n type: String,\n default: 'avatar'\n },\n variant: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_AVATAR, 'variant');\n }\n },\n size: {\n type: [Number, String],\n default: null\n },\n square: {\n type: Boolean,\n default: false\n },\n rounded: {\n type: [Boolean, String],\n default: false\n },\n button: {\n type: Boolean,\n default: false\n },\n buttonType: {\n type: String,\n default: 'button'\n },\n badge: {\n type: [Boolean, String],\n default: false\n },\n badgeVariant: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_AVATAR, 'badgeVariant');\n }\n },\n badgeTop: {\n type: Boolean,\n default: false\n },\n badgeLeft: {\n type: Boolean,\n default: false\n },\n badgeOffset: {\n type: String,\n default: '0px'\n }\n}, linkProps), {}, {\n ariaLabel: {\n type: String // default: null\n\n }\n}); // --- Utility methods ---\n\n\nexport var computeSize = function computeSize(value) {\n // Parse to number when value is a float-like string\n value = isString(value) && RX_NUMBER.test(value) ? toFloat(value, 0) : value; // Convert all numbers to pixel values\n\n return isNumber(value) ? \"\".concat(value, \"px\") : value || null;\n}; // --- Main component ---\n// @vue/component\n\nexport var BAvatar = /*#__PURE__*/Vue.extend({\n name: NAME_AVATAR,\n mixins: [normalizeSlotMixin],\n inject: {\n bvAvatarGroup: {\n default: null\n }\n },\n props: props,\n data: function data() {\n return {\n localSrc: this.src || null\n };\n },\n computed: {\n computedSize: function computedSize() {\n // Always use the avatar group size\n var bvAvatarGroup = this.bvAvatarGroup;\n return computeSize(bvAvatarGroup ? bvAvatarGroup.size : this.size);\n },\n computedVariant: function computedVariant() {\n var bvAvatarGroup = this.bvAvatarGroup;\n return bvAvatarGroup && bvAvatarGroup.variant ? bvAvatarGroup.variant : this.variant;\n },\n computedRounded: function computedRounded() {\n var bvAvatarGroup = this.bvAvatarGroup;\n var square = bvAvatarGroup && bvAvatarGroup.square ? true : this.square;\n var rounded = bvAvatarGroup && bvAvatarGroup.rounded ? bvAvatarGroup.rounded : this.rounded;\n return square ? '0' : rounded === '' ? true : rounded || 'circle';\n },\n fontStyle: function fontStyle() {\n var size = this.computedSize;\n var fontSize = SIZES.indexOf(size) === -1 ? \"calc(\".concat(size, \" * \").concat(FONT_SIZE_SCALE, \")\") : null;\n return fontSize ? {\n fontSize: fontSize\n } : {};\n },\n marginStyle: function marginStyle() {\n var size = this.computedSize,\n bvAvatarGroup = this.bvAvatarGroup;\n var overlapScale = bvAvatarGroup ? bvAvatarGroup.overlapScale : 0;\n var value = size && overlapScale ? \"calc(\".concat(size, \" * -\").concat(overlapScale, \")\") : null;\n return value ? {\n marginLeft: value,\n marginRight: value\n } : {};\n },\n badgeStyle: function badgeStyle() {\n var size = this.computedSize,\n badgeTop = this.badgeTop,\n badgeLeft = this.badgeLeft,\n badgeOffset = this.badgeOffset;\n var offset = badgeOffset || '0px';\n return {\n fontSize: SIZES.indexOf(size) === -1 ? \"calc(\".concat(size, \" * \").concat(BADGE_FONT_SIZE_SCALE, \" )\") : null,\n top: badgeTop ? offset : null,\n bottom: badgeTop ? null : offset,\n left: badgeLeft ? offset : null,\n right: badgeLeft ? null : offset\n };\n }\n },\n watch: {\n src: function src(newSrc, oldSrc) {\n if (newSrc !== oldSrc) {\n this.localSrc = newSrc || null;\n }\n }\n },\n methods: {\n onImgError: function onImgError(evt) {\n this.localSrc = null;\n this.$emit('img-error', evt);\n },\n onClick: function onClick(evt) {\n this.$emit('click', evt);\n }\n },\n render: function render(h) {\n var _class2;\n\n var variant = this.computedVariant,\n disabled = this.disabled,\n rounded = this.computedRounded,\n icon = this.icon,\n src = this.localSrc,\n text = this.text,\n fontStyle = this.fontStyle,\n marginStyle = this.marginStyle,\n size = this.computedSize,\n button = this.button,\n type = this.buttonType,\n badge = this.badge,\n badgeVariant = this.badgeVariant,\n badgeStyle = this.badgeStyle;\n var link = !button && isLink(this);\n var tag = button ? BButton : link ? BLink : 'span';\n var alt = this.alt;\n var ariaLabel = this.ariaLabel || null;\n var $content = null;\n\n if (this.hasNormalizedSlot()) {\n // Default slot overrides props\n $content = h('span', {\n staticClass: 'b-avatar-custom'\n }, [this.normalizeSlot()]);\n } else if (src) {\n $content = h('img', {\n style: variant ? {} : {\n width: '100%',\n height: '100%'\n },\n attrs: {\n src: src,\n alt: alt\n },\n on: {\n error: this.onImgError\n }\n });\n $content = h('span', {\n staticClass: 'b-avatar-img'\n }, [$content]);\n } else if (icon) {\n $content = h(BIcon, {\n props: {\n icon: icon\n },\n attrs: {\n 'aria-hidden': 'true',\n alt: alt\n }\n });\n } else if (text) {\n $content = h('span', {\n staticClass: 'b-avatar-text',\n style: fontStyle\n }, [h('span', text)]);\n } else {\n // Fallback default avatar content\n $content = h(BIconPersonFill, {\n attrs: {\n 'aria-hidden': 'true',\n alt: alt\n }\n });\n }\n\n var $badge = h();\n var hasBadgeSlot = this.hasNormalizedSlot('badge');\n\n if (badge || badge === '' || hasBadgeSlot) {\n var badgeText = badge === true ? '' : badge;\n $badge = h('span', {\n staticClass: 'b-avatar-badge',\n class: _defineProperty({}, \"badge-\".concat(badgeVariant), !!badgeVariant),\n style: badgeStyle\n }, [hasBadgeSlot ? this.normalizeSlot('badge') : badgeText]);\n }\n\n var componentData = {\n staticClass: CLASS_NAME,\n class: (_class2 = {}, _defineProperty(_class2, \"\".concat(CLASS_NAME, \"-\").concat(size), size && SIZES.indexOf(size) !== -1), _defineProperty(_class2, \"badge-\".concat(variant), !button && variant), _defineProperty(_class2, \"rounded\", rounded === true), _defineProperty(_class2, \"rounded-\".concat(rounded), rounded && rounded !== true), _defineProperty(_class2, \"disabled\", disabled), _class2),\n style: _objectSpread(_objectSpread({}, marginStyle), {}, {\n width: size,\n height: size\n }),\n attrs: {\n 'aria-label': ariaLabel || null\n },\n props: button ? {\n variant: variant,\n disabled: disabled,\n type: type\n } : link ? pluckProps(linkProps, this) : {},\n on: button || link ? {\n click: this.onClick\n } : {}\n };\n return h(tag, componentData, [$content, $badge]);\n }\n});","import { NAME_AVATAR_GROUP } from '../../constants/components';\nimport Vue from '../../utils/vue';\nimport normalizeSlotMixin from '../../mixins/normalize-slot';\nimport { mathMax, mathMin } from '../../utils/math';\nimport { toFloat } from '../../utils/number';\nimport { computeSize } from './avatar'; // --- Main component ---\n// @vue/component\n\nexport var BAvatarGroup = /*#__PURE__*/Vue.extend({\n name: NAME_AVATAR_GROUP,\n mixins: [normalizeSlotMixin],\n provide: function provide() {\n return {\n bvAvatarGroup: this\n };\n },\n props: {\n variant: {\n // Child avatars will prefer this variant over their own\n type: String,\n default: null\n },\n size: {\n // Child avatars will always use this over their own size\n type: String,\n default: null\n },\n overlap: {\n type: [Number, String],\n default: 0.3\n },\n square: {\n // Child avatars will prefer this prop (if set) over their own\n type: Boolean,\n default: false\n },\n rounded: {\n // Child avatars will prefer this prop (if set) over their own\n type: [Boolean, String],\n default: false\n },\n tag: {\n type: String,\n default: 'div'\n }\n },\n computed: {\n computedSize: function computedSize() {\n return computeSize(this.size);\n },\n overlapScale: function overlapScale() {\n return mathMin(mathMax(toFloat(this.overlap, 0), 0), 1) / 2;\n },\n paddingStyle: function paddingStyle() {\n var value = this.computedSize;\n value = value ? \"calc(\".concat(value, \" * \").concat(this.overlapScale, \")\") : null;\n return value ? {\n paddingLeft: value,\n paddingRight: value\n } : {};\n }\n },\n render: function render(h) {\n var $inner = h('div', {\n staticClass: 'b-avatar-group-inner',\n style: this.paddingStyle\n }, [this.normalizeSlot()]);\n return h(this.tag, {\n staticClass: 'b-avatar-group',\n attrs: {\n role: 'group'\n }\n }, [$inner]);\n }\n});","import { BAvatar } from './avatar';\nimport { BAvatarGroup } from './avatar-group';\nimport { pluginFactory } from '../../utils/plugins';\nvar AvatarPlugin = /*#__PURE__*/pluginFactory({\n components: {\n BAvatar: BAvatar,\n BAvatarGroup: BAvatarGroup\n }\n});\nexport { AvatarPlugin, BAvatar, BAvatarGroup };","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_BADGE } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nimport { getComponentConfig } from '../../utils/config';\nimport { omit } from '../../utils/object';\nimport { pluckProps } from '../../utils/props';\nimport { isLink } from '../../utils/router';\nimport { BLink, props as BLinkProps } from '../link/link'; // --- Props ---\n\nvar linkProps = omit(BLinkProps, ['event', 'routerTag']);\ndelete linkProps.href.default;\ndelete linkProps.to.default;\nexport var props = _objectSpread({\n tag: {\n type: String,\n default: 'span'\n },\n variant: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_BADGE, 'variant');\n }\n },\n pill: {\n type: Boolean,\n default: false\n }\n}, linkProps); // --- Main component ---\n// @vue/component\n\nexport var BBadge = /*#__PURE__*/Vue.extend({\n name: NAME_BADGE,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n var link = isLink(props);\n var tag = link ? BLink : props.tag;\n var componentData = {\n staticClass: 'badge',\n class: [props.variant ? \"badge-\".concat(props.variant) : 'badge-secondary', {\n 'badge-pill': props.pill,\n active: props.active,\n disabled: props.disabled\n }],\n props: link ? pluckProps(linkProps, props) : {}\n };\n return h(tag, mergeData(data, componentData), children);\n }\n});","import { BBadge } from './badge';\nimport { pluginFactory } from '../../utils/plugins';\nvar BadgePlugin = /*#__PURE__*/pluginFactory({\n components: {\n BBadge: BBadge\n }\n});\nexport { BadgePlugin, BBadge };","import { RX_HTML_TAGS } from '../constants/regex'; // Removes anything that looks like an HTML tag from the supplied string\n\nexport var stripTags = function stripTags() {\n var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n return String(text).replace(RX_HTML_TAGS, '');\n}; // Generate a `domProps` object for either `innerHTML`, `textContent` or an empty object\n\nexport var htmlOrText = function htmlOrText(innerHTML, textContent) {\n return innerHTML ? {\n innerHTML: innerHTML\n } : textContent ? {\n textContent: textContent\n } : {};\n};","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_BREADCRUMB_LINK } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nimport { htmlOrText } from '../../utils/html';\nimport { omit } from '../../utils/object';\nimport { pluckProps } from '../../utils/props';\nimport { BLink, props as BLinkProps } from '../link/link'; // --- Props ---\n\nexport var props = _objectSpread({\n text: {\n type: String,\n default: null\n },\n html: {\n type: String,\n default: null\n },\n ariaCurrent: {\n type: String,\n default: 'location'\n }\n}, omit(BLinkProps, ['event', 'routerTag'])); // --- Main component ---\n// @vue/component\n\nexport var BBreadcrumbLink = /*#__PURE__*/Vue.extend({\n name: NAME_BREADCRUMB_LINK,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var suppliedProps = _ref.props,\n data = _ref.data,\n children = _ref.children;\n var active = suppliedProps.active;\n var tag = active ? 'span' : BLink;\n var componentData = {\n attrs: {\n 'aria-current': active ? suppliedProps.ariaCurrent : null\n },\n props: pluckProps(props, suppliedProps)\n };\n\n if (!children) {\n componentData.domProps = htmlOrText(suppliedProps.html, suppliedProps.text);\n }\n\n return h(tag, mergeData(data, componentData), children);\n }\n});","import { NAME_BREADCRUMB_ITEM } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nimport { BBreadcrumbLink, props } from './breadcrumb-link'; // @vue/component\n\nexport var BBreadcrumbItem = /*#__PURE__*/Vue.extend({\n name: NAME_BREADCRUMB_ITEM,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n return h('li', mergeData(data, {\n staticClass: 'breadcrumb-item',\n class: {\n active: props.active\n }\n }), [h(BBreadcrumbLink, {\n props: props\n }, children)]);\n }\n});","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_BREADCRUMB } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nimport { isArray, isObject } from '../../utils/inspect';\nimport { toString } from '../../utils/string';\nimport { BBreadcrumbItem } from './breadcrumb-item';\nexport var props = {\n items: {\n type: Array,\n default: null\n }\n}; // @vue/component\n\nexport var BBreadcrumb = /*#__PURE__*/Vue.extend({\n name: NAME_BREADCRUMB,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n var childNodes = children; // Build child nodes from items if given.\n\n if (isArray(props.items)) {\n var activeDefined = false;\n childNodes = props.items.map(function (item, idx) {\n if (!isObject(item)) {\n item = {\n text: toString(item)\n };\n } // Copy the value here so we can normalize it.\n\n\n var active = item.active;\n\n if (active) {\n activeDefined = true;\n }\n\n if (!active && !activeDefined) {\n // Auto-detect active by position in list.\n active = idx + 1 === props.items.length;\n }\n\n return h(BBreadcrumbItem, {\n props: _objectSpread(_objectSpread({}, item), {}, {\n active: active\n })\n });\n });\n }\n\n return h('ol', mergeData(data, {\n staticClass: 'breadcrumb'\n }), childNodes);\n }\n});","import { BBreadcrumb } from './breadcrumb';\nimport { BBreadcrumbItem } from './breadcrumb-item';\nimport { BBreadcrumbLink } from './breadcrumb-link';\nimport { pluginFactory } from '../../utils/plugins';\nvar BreadcrumbPlugin = /*#__PURE__*/pluginFactory({\n components: {\n BBreadcrumb: BBreadcrumb,\n BBreadcrumbItem: BBreadcrumbItem,\n BBreadcrumbLink: BBreadcrumbLink\n }\n});\nexport { BreadcrumbPlugin, BBreadcrumb, BBreadcrumbItem, BBreadcrumbLink };","import { BButton } from './button';\nimport { BButtonClose } from './button-close';\nimport { pluginFactory } from '../../utils/plugins';\nvar ButtonPlugin = /*#__PURE__*/pluginFactory({\n components: {\n BButton: BButton,\n BBtn: BButton,\n BButtonClose: BButtonClose,\n BBtnClose: BButtonClose\n }\n});\nexport { ButtonPlugin, BButton, BButtonClose };","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_BUTTON, NAME_BUTTON_GROUP } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nimport { getComponentConfig } from '../../utils/config';\nexport var props = {\n vertical: {\n type: Boolean,\n default: false\n },\n size: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_BUTTON, 'size');\n }\n },\n tag: {\n type: String,\n default: 'div'\n },\n ariaRole: {\n type: String,\n default: 'group'\n }\n}; // @vue/component\n\nexport var BButtonGroup = /*#__PURE__*/Vue.extend({\n name: NAME_BUTTON_GROUP,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n return h(props.tag, mergeData(data, {\n class: _defineProperty({\n 'btn-group': !props.vertical,\n 'btn-group-vertical': props.vertical\n }, \"btn-group-\".concat(props.size), props.size),\n attrs: {\n role: props.ariaRole\n }\n }), children);\n }\n});","import { BButtonGroup } from './button-group';\nimport { pluginFactory } from '../../utils/plugins';\nvar ButtonGroupPlugin = /*#__PURE__*/pluginFactory({\n components: {\n BButtonGroup: BButtonGroup,\n BBtnGroup: BButtonGroup\n }\n});\nexport { ButtonGroupPlugin, BButtonGroup };","import { NAME_BUTTON_TOOLBAR } from '../../constants/components';\nimport { CODE_DOWN, CODE_LEFT, CODE_RIGHT, CODE_UP } from '../../constants/key-codes';\nimport Vue from '../../utils/vue';\nimport { attemptFocus, contains, isVisible, selectAll } from '../../utils/dom';\nimport { stopEvent } from '../../utils/events';\nimport normalizeSlotMixin from '../../mixins/normalize-slot'; // --- Constants ---\n\nvar ITEM_SELECTOR = ['.btn:not(.disabled):not([disabled]):not(.dropdown-item)', '.form-control:not(.disabled):not([disabled])', 'select:not(.disabled):not([disabled])', 'input[type=\"checkbox\"]:not(.disabled)', 'input[type=\"radio\"]:not(.disabled)'].join(','); // --- Main component ---\n// @vue/component\n\nexport var BButtonToolbar = /*#__PURE__*/Vue.extend({\n name: NAME_BUTTON_TOOLBAR,\n mixins: [normalizeSlotMixin],\n props: {\n justify: {\n type: Boolean,\n default: false\n },\n keyNav: {\n type: Boolean,\n default: false\n }\n },\n mounted: function mounted() {\n // Pre-set the tabindexes if the markup does not include\n // `tabindex=\"-1\"` on the toolbar items\n if (this.keyNav) {\n this.getItems();\n }\n },\n methods: {\n getItems: function getItems() {\n var items = selectAll(ITEM_SELECTOR, this.$el); // Ensure `tabindex=\"-1\"` is set on every item\n\n items.forEach(function (item) {\n item.tabIndex = -1;\n });\n return items.filter(function (el) {\n return isVisible(el);\n });\n },\n focusFirst: function focusFirst() {\n var items = this.getItems();\n attemptFocus(items[0]);\n },\n focusPrev: function focusPrev(evt) {\n var items = this.getItems();\n var index = items.indexOf(evt.target);\n\n if (index > -1) {\n items = items.slice(0, index).reverse();\n attemptFocus(items[0]);\n }\n },\n focusNext: function focusNext(evt) {\n var items = this.getItems();\n var index = items.indexOf(evt.target);\n\n if (index > -1) {\n items = items.slice(index + 1);\n attemptFocus(items[0]);\n }\n },\n focusLast: function focusLast() {\n var items = this.getItems().reverse();\n attemptFocus(items[0]);\n },\n onFocusin: function onFocusin(evt) {\n var $el = this.$el;\n\n if (evt.target === $el && !contains($el, evt.relatedTarget)) {\n stopEvent(evt);\n this.focusFirst(evt);\n }\n },\n onKeydown: function onKeydown(evt) {\n var keyCode = evt.keyCode,\n shiftKey = evt.shiftKey;\n\n if (keyCode === CODE_UP || keyCode === CODE_LEFT) {\n stopEvent(evt);\n shiftKey ? this.focusFirst(evt) : this.focusPrev(evt);\n } else if (keyCode === CODE_DOWN || keyCode === CODE_RIGHT) {\n stopEvent(evt);\n shiftKey ? this.focusLast(evt) : this.focusNext(evt);\n }\n }\n },\n render: function render(h) {\n return h('div', {\n staticClass: 'btn-toolbar',\n class: {\n 'justify-content-between': this.justify\n },\n attrs: {\n role: 'toolbar',\n tabindex: this.keyNav ? '0' : null\n },\n on: this.keyNav ? {\n focusin: this.onFocusin,\n keydown: this.onKeydown\n } : {}\n }, [this.normalizeSlot()]);\n }\n});","import { BButtonToolbar } from './button-toolbar';\nimport { pluginFactory } from '../../utils/plugins';\nvar ButtonToolbarPlugin = /*#__PURE__*/pluginFactory({\n components: {\n BButtonToolbar: BButtonToolbar,\n BBtnToolbar: BButtonToolbar\n }\n});\nexport { ButtonToolbarPlugin, BButtonToolbar };","export var CALENDAR_GREGORY = 'gregory';\nexport var CALENDAR_LONG = 'long';\nexport var CALENDAR_NARROW = 'narrow';\nexport var CALENDAR_SHORT = 'short';\nexport var DATE_FORMAT_2_DIGIT = '2-digit';\nexport var DATE_FORMAT_NUMERIC = 'numeric';","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n// Date utility functions\nimport { CALENDAR_GREGORY } from '../constants/date';\nimport { RX_DATE, RX_DATE_SPLIT } from '../constants/regex';\nimport identity from './identity';\nimport { concat } from './array';\nimport { isDate, isString } from './inspect';\nimport { toInteger } from './number'; // --- Date utility methods ---\n// Create or clone a date (`new Date(...)` shortcut)\n\nexport var createDate = function createDate() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _construct(Date, args);\n}; // Parse a date sting, or Date object, into a Date object (with no time information)\n\nexport var parseYMD = function parseYMD(date) {\n if (isString(date) && RX_DATE.test(date.trim())) {\n var _date$split$map = date.split(RX_DATE_SPLIT).map(function (v) {\n return toInteger(v, 1);\n }),\n _date$split$map2 = _slicedToArray(_date$split$map, 3),\n year = _date$split$map2[0],\n month = _date$split$map2[1],\n day = _date$split$map2[2];\n\n return createDate(year, month - 1, day);\n } else if (isDate(date)) {\n return createDate(date.getFullYear(), date.getMonth(), date.getDate());\n }\n\n return null;\n}; // Format a date object as `YYYY-MM-DD` format\n\nexport var formatYMD = function formatYMD(date) {\n date = parseYMD(date);\n\n if (!date) {\n return null;\n }\n\n var year = date.getFullYear();\n var month = \"0\".concat(date.getMonth() + 1).slice(-2);\n var day = \"0\".concat(date.getDate()).slice(-2);\n return \"\".concat(year, \"-\").concat(month, \"-\").concat(day);\n}; // Given a locale (or locales), resolve the browser available locale\n\nexport var resolveLocale = function resolveLocale(locales)\n/* istanbul ignore next */\n{\n var calendar = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : CALENDAR_GREGORY;\n locales = concat(locales).filter(identity);\n var fmt = new Intl.DateTimeFormat(locales, {\n calendar: calendar\n });\n return fmt.resolvedOptions().locale;\n}; // Create a `Intl.DateTimeFormat` formatter function\n\nexport var createDateFormatter = function createDateFormatter(locale, options)\n/* istanbul ignore next */\n{\n var dtf = new Intl.DateTimeFormat(locale, options);\n return dtf.format;\n}; // Determine if two dates are the same date (ignoring time portion)\n\nexport var datesEqual = function datesEqual(date1, date2) {\n // Returns true of the date portion of two date objects are equal\n // We don't compare the time portion\n return formatYMD(date1) === formatYMD(date2);\n}; // --- Date \"math\" utility methods (for BCalendar component mainly) ---\n\nexport var firstDateOfMonth = function firstDateOfMonth(date) {\n date = createDate(date);\n date.setDate(1);\n return date;\n};\nexport var lastDateOfMonth = function lastDateOfMonth(date) {\n date = createDate(date);\n date.setMonth(date.getMonth() + 1);\n date.setDate(0);\n return date;\n};\nexport var addYears = function addYears(date, numberOfYears) {\n date = createDate(date);\n var month = date.getMonth();\n date.setFullYear(date.getFullYear() + numberOfYears); // Handle Feb 29th for leap years\n\n if (date.getMonth() !== month) {\n date.setDate(0);\n }\n\n return date;\n};\nexport var oneMonthAgo = function oneMonthAgo(date) {\n date = createDate(date);\n var month = date.getMonth();\n date.setMonth(month - 1); // Handle when days in month are different\n\n if (date.getMonth() === month) {\n date.setDate(0);\n }\n\n return date;\n};\nexport var oneMonthAhead = function oneMonthAhead(date) {\n date = createDate(date);\n var month = date.getMonth();\n date.setMonth(month + 1); // Handle when days in month are different\n\n if (date.getMonth() === (month + 2) % 12) {\n date.setDate(0);\n }\n\n return date;\n};\nexport var oneYearAgo = function oneYearAgo(date) {\n return addYears(date, -1);\n};\nexport var oneYearAhead = function oneYearAhead(date) {\n return addYears(date, 1);\n};\nexport var oneDecadeAgo = function oneDecadeAgo(date) {\n return addYears(date, -10);\n};\nexport var oneDecadeAhead = function oneDecadeAhead(date) {\n return addYears(date, 10);\n}; // Helper function to constrain a date between two values\n// Always returns a `Date` object or `null` if no date passed\n\nexport var constrainDate = function constrainDate(date) {\n var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n // Ensure values are `Date` objects (or `null`)\n date = parseYMD(date);\n min = parseYMD(min) || date;\n max = parseYMD(max) || date; // Return a new `Date` object (or `null`)\n\n return date ? date < min ? min : date > max ? max : date : null;\n};","// Localization utilities\nimport { RX_STRIP_LOCALE_MODS } from '../constants/regex';\nimport { arrayIncludes } from './array';\nimport { toString } from './string'; // Languages that are RTL\n\nvar RTL_LANGS = ['ar', 'az', 'ckb', 'fa', 'he', 'ks', 'lrc', 'mzn', 'ps', 'sd', 'te', 'ug', 'ur', 'yi'].map(function (locale) {\n return locale.toLowerCase();\n}); // Returns true if the locale is RTL\n\nexport var isLocaleRTL = function isLocaleRTL(locale) {\n // Determines if the locale is RTL (only single locale supported)\n var parts = toString(locale).toLowerCase().replace(RX_STRIP_LOCALE_MODS, '').split('-');\n var locale1 = parts.slice(0, 2).join('-');\n var locale2 = parts[0];\n return arrayIncludes(RTL_LANGS, locale1) || arrayIncludes(RTL_LANGS, locale2);\n};","// SSR safe client-side ID attribute generation\n// ID's can only be generated client-side, after mount\n// `this._uid` is not synched between server and client\n// @vue/component\nexport default {\n props: {\n id: {\n type: String // default: null\n\n }\n },\n data: function data() {\n return {\n localId_: null\n };\n },\n computed: {\n safeId: function safeId() {\n // Computed property that returns a dynamic function for creating the ID\n // Reacts to changes in both `.id` and `.localId_` and regenerates a new function\n var id = this.id || this.localId_; // We return a function that accepts an optional suffix string\n // So this computed prop looks and works like a method\n // but benefits from Vue's computed prop caching\n\n var fn = function fn(suffix) {\n if (!id) {\n return null;\n }\n\n suffix = String(suffix || '').replace(/\\s+/g, '_');\n return suffix ? id + '_' + suffix : id;\n };\n\n return fn;\n }\n },\n mounted: function mounted() {\n var _this = this;\n\n // `mounted()` only occurs client-side\n this.$nextTick(function () {\n // Update DOM with auto-generated ID after mount\n // to prevent SSR hydration errors\n _this.localId_ = \"__BVID__\".concat(_this._uid);\n });\n }\n};","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_CALENDAR } from '../../constants/components';\nimport { CALENDAR_GREGORY, CALENDAR_LONG, CALENDAR_NARROW, CALENDAR_SHORT, DATE_FORMAT_2_DIGIT, DATE_FORMAT_NUMERIC } from '../../constants/date';\nimport { CODE_DOWN, CODE_END, CODE_ENTER, CODE_HOME, CODE_LEFT, CODE_PAGEDOWN, CODE_PAGEUP, CODE_RIGHT, CODE_SPACE, CODE_UP } from '../../constants/key-codes';\nimport Vue from '../../utils/vue';\nimport identity from '../../utils/identity';\nimport looseEqual from '../../utils/loose-equal';\nimport { arrayIncludes, concat } from '../../utils/array';\nimport { getComponentConfig } from '../../utils/config';\nimport { createDate, createDateFormatter, constrainDate as _constrainDate, datesEqual, firstDateOfMonth, formatYMD, lastDateOfMonth, oneMonthAgo, oneMonthAhead, oneYearAgo, oneYearAhead, oneDecadeAgo, oneDecadeAhead, parseYMD, resolveLocale } from '../../utils/date';\nimport { attemptBlur, attemptFocus, requestAF } from '../../utils/dom';\nimport { stopEvent } from '../../utils/events';\nimport { isArray, isFunction, isPlainObject, isString } from '../../utils/inspect';\nimport { isLocaleRTL } from '../../utils/locale';\nimport { mathMax } from '../../utils/math';\nimport { toInteger } from '../../utils/number';\nimport { toString } from '../../utils/string';\nimport attrsMixin from '../../mixins/attrs';\nimport idMixin from '../../mixins/id';\nimport normalizeSlotMixin from '../../mixins/normalize-slot';\nimport { BIconChevronLeft, BIconChevronDoubleLeft, BIconChevronBarLeft, BIconCircleFill } from '../../icons/icons'; // --- BCalendar component ---\n// @vue/component\n\nexport var BCalendar = Vue.extend({\n name: NAME_CALENDAR,\n // Mixin order is important!\n mixins: [attrsMixin, idMixin, normalizeSlotMixin],\n model: {\n // Even though this is the default that Vue assumes, we need\n // to add it for the docs to reflect that this is the model\n // And also for some validation libraries to work\n prop: 'value',\n event: 'input'\n },\n props: {\n value: {\n type: [String, Date] // default: null\n\n },\n valueAsDate: {\n // Always return the `v-model` value as a date object\n type: Boolean,\n default: false\n },\n initialDate: {\n // This specifies the calendar year/month/day that will be shown when\n // first opening the datepicker if no v-model value is provided\n // Default is the current date (or `min`/`max`)\n type: [String, Date] // default: null\n\n },\n disabled: {\n type: Boolean,\n default: false\n },\n readonly: {\n type: Boolean,\n default: false\n },\n min: {\n type: [String, Date] // default: null\n\n },\n max: {\n type: [String, Date] // default: null\n\n },\n dateDisabledFn: {\n type: Function // default: null\n\n },\n startWeekday: {\n // `0` (Sunday), `1` (Monday), ... `6` (Saturday)\n // Day of week to start calendar on\n type: [Number, String],\n default: 0\n },\n locale: {\n // Locale(s) to use\n // Default is to use page/browser default setting\n type: [String, Array] // default: null\n\n },\n direction: {\n // 'ltr', 'rtl', or `null` (for auto detect)\n type: String // default: null\n\n },\n selectedVariant: {\n // Variant color to use for the selected date\n type: String,\n default: getComponentConfig(NAME_CALENDAR, 'selectedVariant')\n },\n todayVariant: {\n // Variant color to use for today's date (defaults to `selectedVariant`)\n type: String,\n default: getComponentConfig(NAME_CALENDAR, 'todayVariant')\n },\n navButtonVariant: {\n // Variant color to use for the navigation buttons\n type: String,\n default: getComponentConfig(NAME_CALENDAR, 'navButtonVariant')\n },\n noHighlightToday: {\n // Disable highlighting today's date\n type: Boolean,\n default: false\n },\n dateInfoFn: {\n // Function to set a class of (classes) on the date cell\n // if passed a string or an array\n // TODO:\n // If the function returns an object, look for class prop for classes,\n // and other props for handling events/details/descriptions\n type: Function // default: null\n\n },\n width: {\n // Has no effect if prop `block` is set\n type: String,\n default: '270px'\n },\n block: {\n // Makes calendar the full width of its parent container\n type: Boolean,\n default: false\n },\n hideHeader: {\n // When true makes the selected date header `sr-only`\n type: Boolean,\n default: false\n },\n showDecadeNav: {\n // When `true` enables the decade navigation buttons\n type: Boolean,\n default: false\n },\n hidden: {\n // When `true`, renders a comment node, but keeps the component instance active\n // Mainly for , so that we can get the component's value and locale\n // But we might just use separate date formatters, using the resolved locale\n // (adjusted for the gregorian calendar)\n type: Boolean,\n default: false\n },\n ariaControls: {\n type: String // default: null\n\n },\n roleDescription: {\n type: String // default: null\n\n },\n // Labels for buttons and keyboard shortcuts\n labelPrevDecade: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CALENDAR, 'labelPrevDecade');\n }\n },\n labelPrevYear: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CALENDAR, 'labelPrevYear');\n }\n },\n labelPrevMonth: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CALENDAR, 'labelPrevMonth');\n }\n },\n labelCurrentMonth: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CALENDAR, 'labelCurrentMonth');\n }\n },\n labelNextMonth: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CALENDAR, 'labelNextMonth');\n }\n },\n labelNextYear: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CALENDAR, 'labelNextYear');\n }\n },\n labelNextDecade: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CALENDAR, 'labelNextDecade');\n }\n },\n labelToday: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CALENDAR, 'labelToday');\n }\n },\n labelSelected: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CALENDAR, 'labelSelected');\n }\n },\n labelNoDateSelected: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CALENDAR, 'labelNoDateSelected');\n }\n },\n labelCalendar: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CALENDAR, 'labelCalendar');\n }\n },\n labelNav: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CALENDAR, 'labelNav');\n }\n },\n labelHelp: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CALENDAR, 'labelHelp');\n }\n },\n dateFormatOptions: {\n // `Intl.DateTimeFormat` object\n // Note: This value is *not* to be placed in the global config\n type: Object,\n default: function _default() {\n return {\n year: DATE_FORMAT_NUMERIC,\n month: CALENDAR_LONG,\n day: DATE_FORMAT_NUMERIC,\n weekday: CALENDAR_LONG\n };\n }\n },\n weekdayHeaderFormat: {\n // Format of the weekday names at the top of the calendar\n // Note: This value is *not* to be placed in the global config\n type: String,\n // `short` is typically a 3 letter abbreviation,\n // `narrow` is typically a single letter\n // `long` is the full week day name\n // Although some locales may override this (i.e `ar`, etc.)\n default: CALENDAR_SHORT,\n validator: function validator(value) {\n return arrayIncludes([CALENDAR_LONG, CALENDAR_SHORT, CALENDAR_NARROW], value);\n }\n }\n },\n data: function data() {\n var selected = formatYMD(this.value) || '';\n return {\n // Selected date\n selectedYMD: selected,\n // Date in calendar grid that has `tabindex` of `0`\n activeYMD: selected || formatYMD(_constrainDate(this.initialDate || this.getToday()), this.min, this.max),\n // Will be true if the calendar grid has/contains focus\n gridHasFocus: false,\n // Flag to enable the `aria-live` region(s) after mount\n // to prevent screen reader \"outbursts\" when mounting\n isLive: false\n };\n },\n computed: {\n valueId: function valueId() {\n return this.safeId();\n },\n widgetId: function widgetId() {\n return this.safeId('_calendar-wrapper_');\n },\n navId: function navId() {\n return this.safeId('_calendar-nav_');\n },\n gridId: function gridId() {\n return this.safeId('_calendar-grid_');\n },\n gridCaptionId: function gridCaptionId() {\n return this.safeId('_calendar-grid-caption_');\n },\n gridHelpId: function gridHelpId() {\n return this.safeId('_calendar-grid-help_');\n },\n activeId: function activeId() {\n return this.activeYMD ? this.safeId(\"_cell-\".concat(this.activeYMD, \"_\")) : null;\n },\n // TODO: Use computed props to convert `YYYY-MM-DD` to `Date` object\n selectedDate: function selectedDate() {\n // Selected as a `Date` object\n return parseYMD(this.selectedYMD);\n },\n activeDate: function activeDate() {\n // Active as a `Date` object\n return parseYMD(this.activeYMD);\n },\n computedMin: function computedMin() {\n return parseYMD(this.min);\n },\n computedMax: function computedMax() {\n return parseYMD(this.max);\n },\n computedWeekStarts: function computedWeekStarts() {\n // `startWeekday` is a prop (constrained to `0` through `6`)\n return mathMax(toInteger(this.startWeekday, 0), 0) % 7;\n },\n computedLocale: function computedLocale() {\n // Returns the resolved locale used by the calendar\n return resolveLocale(concat(this.locale).filter(identity), CALENDAR_GREGORY);\n },\n calendarLocale: function calendarLocale() {\n // This locale enforces the gregorian calendar (for use in formatter functions)\n // Needed because IE 11 resolves `ar-IR` as islamic-civil calendar\n // and IE 11 (and some other browsers) do not support the `calendar` option\n // And we currently only support the gregorian calendar\n var fmt = new Intl.DateTimeFormat(this.computedLocale, {\n calendar: CALENDAR_GREGORY\n });\n var calendar = fmt.resolvedOptions().calendar;\n var locale = fmt.resolvedOptions().locale;\n /* istanbul ignore if: mainly for IE 11 and a few other browsers, hard to test in JSDOM */\n\n if (calendar !== CALENDAR_GREGORY) {\n // Ensure the locale requests the gregorian calendar\n // Mainly for IE 11, and currently we can't handle non-gregorian calendars\n // TODO: Should we always return this value?\n locale = locale.replace(/-u-.+$/i, '').concat('-u-ca-gregory');\n }\n\n return locale;\n },\n calendarYear: function calendarYear() {\n return this.activeDate.getFullYear();\n },\n calendarMonth: function calendarMonth() {\n return this.activeDate.getMonth();\n },\n calendarFirstDay: function calendarFirstDay() {\n return createDate(this.calendarYear, this.calendarMonth, 1);\n },\n calendarDaysInMonth: function calendarDaysInMonth() {\n // We create a new date as to not mutate the original\n var date = createDate(this.calendarFirstDay);\n date.setMonth(date.getMonth() + 1, 0);\n return date.getDate();\n },\n computedVariant: function computedVariant() {\n return \"btn-\".concat(this.selectedVariant || 'primary');\n },\n computedTodayVariant: function computedTodayVariant() {\n return \"btn-outline-\".concat(this.todayVariant || this.selectedVariant || 'primary');\n },\n computedNavButtonVariant: function computedNavButtonVariant() {\n return \"btn-outline-\".concat(this.navButtonVariant || 'primary');\n },\n isRTL: function isRTL() {\n // `true` if the language requested is RTL\n var dir = toString(this.direction).toLowerCase();\n\n if (dir === 'rtl') {\n /* istanbul ignore next */\n return true;\n } else if (dir === 'ltr') {\n /* istanbul ignore next */\n return false;\n }\n\n return isLocaleRTL(this.computedLocale);\n },\n context: function context() {\n var selectedYMD = this.selectedYMD;\n var selectedDate = parseYMD(selectedYMD);\n var activeYMD = this.activeYMD;\n var activeDate = parseYMD(activeYMD);\n return {\n // The current value of the `v-model`\n selectedYMD: selectedYMD,\n selectedDate: selectedDate,\n selectedFormatted: selectedDate ? this.formatDateString(selectedDate) : this.labelNoDateSelected,\n // Which date cell is considered active due to navigation\n activeYMD: activeYMD,\n activeDate: activeDate,\n activeFormatted: activeDate ? this.formatDateString(activeDate) : '',\n // `true` if the date is disabled (when using keyboard navigation)\n disabled: this.dateDisabled(activeDate),\n // Locales used in formatting dates\n locale: this.computedLocale,\n calendarLocale: this.calendarLocale,\n rtl: this.isRTL\n };\n },\n // Computed props that return a function reference\n dateOutOfRange: function dateOutOfRange() {\n // Check whether a date is within the min/max range\n // returns a new function ref if the pops change\n // We do this as we need to trigger the calendar computed prop\n // to update when these props update\n var min = this.computedMin;\n var max = this.computedMax;\n return function (date) {\n // Handle both `YYYY-MM-DD` and `Date` objects\n date = parseYMD(date);\n return min && date < min || max && date > max;\n };\n },\n dateDisabled: function dateDisabled() {\n // Returns a function for validating if a date is within range\n // We grab this variables first to ensure a new function ref\n // is generated when the props value changes\n // We do this as we need to trigger the calendar computed prop\n // to update when these props update\n var rangeFn = this.dateOutOfRange;\n var disabledFn = isFunction(this.dateDisabledFn) ? this.dateDisabledFn : function () {\n return false;\n }; // Return the function ref\n\n return function (date) {\n // Handle both `YYYY-MM-DD` and `Date` objects\n date = parseYMD(date);\n var ymd = formatYMD(date);\n return !!(rangeFn(date) || disabledFn(ymd, date));\n };\n },\n // Computed props that return date formatter functions\n formatDateString: function formatDateString() {\n // Returns a date formatter function\n return createDateFormatter(this.calendarLocale, _objectSpread(_objectSpread({\n // Ensure we have year, month, day shown for screen readers/ARIA\n // If users really want to leave one of these out, they can\n // pass `undefined` for the property value\n year: DATE_FORMAT_NUMERIC,\n month: DATE_FORMAT_2_DIGIT,\n day: DATE_FORMAT_2_DIGIT\n }, this.dateFormatOptions), {}, {\n // Ensure hours/minutes/seconds are not shown\n // As we do not support the time portion (yet)\n hour: undefined,\n minute: undefined,\n second: undefined,\n // Ensure calendar is gregorian\n calendar: CALENDAR_GREGORY\n }));\n },\n formatYearMonth: function formatYearMonth() {\n // Returns a date formatter function\n return createDateFormatter(this.calendarLocale, {\n year: DATE_FORMAT_NUMERIC,\n month: CALENDAR_LONG,\n calendar: CALENDAR_GREGORY\n });\n },\n formatWeekdayName: function formatWeekdayName() {\n // Long weekday name for weekday header aria-label\n return createDateFormatter(this.calendarLocale, {\n weekday: CALENDAR_LONG,\n calendar: CALENDAR_GREGORY\n });\n },\n formatWeekdayNameShort: function formatWeekdayNameShort() {\n // Weekday header cell format\n // defaults to 'short' 3 letter days, where possible\n return createDateFormatter(this.calendarLocale, {\n weekday: this.weekdayHeaderFormat || CALENDAR_SHORT,\n calendar: CALENDAR_GREGORY\n });\n },\n formatDay: function formatDay() {\n // Calendar grid day number formatter\n // We don't use DateTimeFormatter here as it can place extra\n // character(s) after the number (i.e the `zh` locale)\n var nf = new Intl.NumberFormat([this.computedLocale], {\n style: 'decimal',\n minimumIntegerDigits: 1,\n minimumFractionDigits: 0,\n maximumFractionDigits: 0,\n notation: 'standard'\n }); // Return a formatter function instance\n\n return function (date) {\n return nf.format(date.getDate());\n };\n },\n // Disabled states for the nav buttons\n prevDecadeDisabled: function prevDecadeDisabled() {\n var min = this.computedMin;\n return this.disabled || min && lastDateOfMonth(oneDecadeAgo(this.activeDate)) < min;\n },\n prevYearDisabled: function prevYearDisabled() {\n var min = this.computedMin;\n return this.disabled || min && lastDateOfMonth(oneYearAgo(this.activeDate)) < min;\n },\n prevMonthDisabled: function prevMonthDisabled() {\n var min = this.computedMin;\n return this.disabled || min && lastDateOfMonth(oneMonthAgo(this.activeDate)) < min;\n },\n thisMonthDisabled: function thisMonthDisabled() {\n // TODO: We could/should check if today is out of range\n return this.disabled;\n },\n nextMonthDisabled: function nextMonthDisabled() {\n var max = this.computedMax;\n return this.disabled || max && firstDateOfMonth(oneMonthAhead(this.activeDate)) > max;\n },\n nextYearDisabled: function nextYearDisabled() {\n var max = this.computedMax;\n return this.disabled || max && firstDateOfMonth(oneYearAhead(this.activeDate)) > max;\n },\n nextDecadeDisabled: function nextDecadeDisabled() {\n var max = this.computedMax;\n return this.disabled || max && firstDateOfMonth(oneDecadeAhead(this.activeDate)) > max;\n },\n // Calendar dates generation\n calendar: function calendar() {\n var matrix = [];\n var firstDay = this.calendarFirstDay;\n var calendarYear = firstDay.getFullYear();\n var calendarMonth = firstDay.getMonth();\n var daysInMonth = this.calendarDaysInMonth;\n var startIndex = firstDay.getDay(); // `0`..`6`\n\n var weekOffset = (this.computedWeekStarts > startIndex ? 7 : 0) - this.computedWeekStarts; // TODO: Change `dateInfoFn` to handle events and notes as well as classes\n\n var dateInfoFn = isFunction(this.dateInfoFn) ? this.dateInfoFn : function () {\n return {};\n }; // Build the calendar matrix\n\n var currentDay = 0 - weekOffset - startIndex;\n\n for (var week = 0; week < 6 && currentDay < daysInMonth; week++) {\n // For each week\n matrix[week] = []; // The following could be a map function\n\n for (var j = 0; j < 7; j++) {\n // For each day in week\n currentDay++;\n var date = createDate(calendarYear, calendarMonth, currentDay);\n var month = date.getMonth();\n var dayYMD = formatYMD(date);\n var dayDisabled = this.dateDisabled(date); // TODO: This could be a normalizer method\n\n var dateInfo = dateInfoFn(dayYMD, parseYMD(dayYMD));\n dateInfo = isString(dateInfo) || isArray(dateInfo) ?\n /* istanbul ignore next */\n {\n class: dateInfo\n } : isPlainObject(dateInfo) ? _objectSpread({\n class: ''\n }, dateInfo) :\n /* istanbul ignore next */\n {\n class: ''\n };\n matrix[week].push({\n ymd: dayYMD,\n // Cell content\n day: this.formatDay(date),\n label: this.formatDateString(date),\n // Flags for styling\n isThisMonth: month === calendarMonth,\n isDisabled: dayDisabled,\n // TODO: Handle other dateInfo properties such as notes/events\n info: dateInfo\n });\n }\n }\n\n return matrix;\n },\n calendarHeadings: function calendarHeadings() {\n var _this = this;\n\n return this.calendar[0].map(function (d) {\n return {\n text: _this.formatWeekdayNameShort(parseYMD(d.ymd)),\n label: _this.formatWeekdayName(parseYMD(d.ymd))\n };\n });\n }\n },\n watch: {\n value: function value(newVal, oldVal) {\n var selected = formatYMD(newVal) || '';\n var old = formatYMD(oldVal) || '';\n\n if (!datesEqual(selected, old)) {\n this.activeYMD = selected || this.activeYMD;\n this.selectedYMD = selected;\n }\n },\n selectedYMD: function selectedYMD(newYMD, oldYMD) {\n // TODO:\n // Should we compare to `formatYMD(this.value)` and emit\n // only if they are different?\n if (newYMD !== oldYMD) {\n this.$emit('input', this.valueAsDate ? parseYMD(newYMD) || null : newYMD || '');\n }\n },\n context: function context(newVal, oldVal) {\n if (!looseEqual(newVal, oldVal)) {\n this.$emit('context', newVal);\n }\n },\n hidden: function hidden(newVal) {\n // Reset the active focused day when hidden\n this.activeYMD = this.selectedYMD || formatYMD(this.value || this.constrainDate(this.initialDate || this.getToday())); // Enable/disable the live regions\n\n this.setLive(!newVal);\n }\n },\n created: function created() {\n var _this2 = this;\n\n this.$nextTick(function () {\n _this2.$emit('context', _this2.context);\n });\n },\n mounted: function mounted() {\n this.setLive(true);\n },\n\n /* istanbul ignore next */\n activated: function activated()\n /* istanbul ignore next */\n {\n this.setLive(true);\n },\n\n /* istanbul ignore next */\n deactivated: function deactivated()\n /* istanbul ignore next */\n {\n this.setLive(false);\n },\n beforeDestroy: function beforeDestroy() {\n this.setLive(false);\n },\n methods: {\n // Public method(s)\n focus: function focus() {\n if (!this.disabled) {\n attemptFocus(this.$refs.grid);\n }\n },\n blur: function blur() {\n if (!this.disabled) {\n attemptBlur(this.$refs.grid);\n }\n },\n // Private methods\n setLive: function setLive(on) {\n var _this3 = this;\n\n if (on) {\n this.$nextTick(function () {\n requestAF(function () {\n _this3.isLive = true;\n });\n });\n } else {\n this.isLive = false;\n }\n },\n getToday: function getToday() {\n return parseYMD(createDate());\n },\n constrainDate: function constrainDate(date) {\n // Constrains a date between min and max\n // returns a new `Date` object instance\n return _constrainDate(date, this.computedMin, this.computedMax);\n },\n emitSelected: function emitSelected(date) {\n var _this4 = this;\n\n // Performed in a `$nextTick()` to (probably) ensure\n // the input event has emitted first\n this.$nextTick(function () {\n _this4.$emit('selected', formatYMD(date) || '', parseYMD(date) || null);\n });\n },\n // Event handlers\n setGridFocusFlag: function setGridFocusFlag(evt) {\n // Sets the gridHasFocus flag to make date \"button\" look focused\n this.gridHasFocus = !this.disabled && evt.type === 'focus';\n },\n onKeydownWrapper: function onKeydownWrapper(evt) {\n // Calendar keyboard navigation\n // Handles PAGEUP/PAGEDOWN/END/HOME/LEFT/UP/RIGHT/DOWN\n // Focuses grid after updating\n var altKey = evt.altKey,\n ctrlKey = evt.ctrlKey,\n keyCode = evt.keyCode;\n\n if (!arrayIncludes([CODE_PAGEUP, CODE_PAGEDOWN, CODE_END, CODE_HOME, CODE_LEFT, CODE_UP, CODE_RIGHT, CODE_DOWN], keyCode)) {\n /* istanbul ignore next */\n return;\n }\n\n stopEvent(evt);\n var activeDate = createDate(this.activeDate);\n var checkDate = createDate(this.activeDate);\n var day = activeDate.getDate();\n var constrainedToday = this.constrainDate(this.getToday());\n var isRTL = this.isRTL;\n\n if (keyCode === CODE_PAGEUP) {\n // PAGEUP - Previous month/year\n activeDate = (altKey ? ctrlKey ? oneDecadeAgo : oneYearAgo : oneMonthAgo)(activeDate); // We check the first day of month to be in rage\n\n checkDate = createDate(activeDate);\n checkDate.setDate(1);\n } else if (keyCode === CODE_PAGEDOWN) {\n // PAGEDOWN - Next month/year\n activeDate = (altKey ? ctrlKey ? oneDecadeAhead : oneYearAhead : oneMonthAhead)(activeDate); // We check the last day of month to be in rage\n\n checkDate = createDate(activeDate);\n checkDate.setMonth(checkDate.getMonth() + 1);\n checkDate.setDate(0);\n } else if (keyCode === CODE_LEFT) {\n // LEFT - Previous day (or next day for RTL)\n activeDate.setDate(day + (isRTL ? 1 : -1));\n activeDate = this.constrainDate(activeDate);\n checkDate = activeDate;\n } else if (keyCode === CODE_RIGHT) {\n // RIGHT - Next day (or previous day for RTL)\n activeDate.setDate(day + (isRTL ? -1 : 1));\n activeDate = this.constrainDate(activeDate);\n checkDate = activeDate;\n } else if (keyCode === CODE_UP) {\n // UP - Previous week\n activeDate.setDate(day - 7);\n activeDate = this.constrainDate(activeDate);\n checkDate = activeDate;\n } else if (keyCode === CODE_DOWN) {\n // DOWN - Next week\n activeDate.setDate(day + 7);\n activeDate = this.constrainDate(activeDate);\n checkDate = activeDate;\n } else if (keyCode === CODE_HOME) {\n // HOME - Today\n activeDate = constrainedToday;\n checkDate = activeDate;\n } else if (keyCode === CODE_END) {\n // END - Selected date, or today if no selected date\n activeDate = parseYMD(this.selectedDate) || constrainedToday;\n checkDate = activeDate;\n }\n\n if (!this.dateOutOfRange(checkDate) && !datesEqual(activeDate, this.activeDate)) {\n // We only jump to date if within min/max\n // We don't check for individual disabled dates though (via user function)\n this.activeYMD = formatYMD(activeDate);\n } // Ensure grid is focused\n\n\n this.focus();\n },\n onKeydownGrid: function onKeydownGrid(evt) {\n // Pressing enter/space on grid to select active date\n var keyCode = evt.keyCode;\n var activeDate = this.activeDate;\n\n if (keyCode === CODE_ENTER || keyCode === CODE_SPACE) {\n stopEvent(evt);\n\n if (!this.disabled && !this.readonly && !this.dateDisabled(activeDate)) {\n this.selectedYMD = formatYMD(activeDate);\n this.emitSelected(activeDate);\n } // Ensure grid is focused\n\n\n this.focus();\n }\n },\n onClickDay: function onClickDay(day) {\n // Clicking on a date \"button\" to select it\n var selectedDate = this.selectedDate;\n var activeDate = this.activeDate;\n var clickedDate = parseYMD(day.ymd);\n\n if (!this.disabled && !day.isDisabled && !this.dateDisabled(clickedDate)) {\n if (!this.readonly) {\n // If readonly mode, we don't set the selected date, just the active date\n // If the clicked date is equal to the already selected date, we don't update the model\n this.selectedYMD = formatYMD(datesEqual(clickedDate, selectedDate) ? selectedDate : clickedDate);\n this.emitSelected(clickedDate);\n }\n\n this.activeYMD = formatYMD(datesEqual(clickedDate, activeDate) ? activeDate : createDate(clickedDate)); // Ensure grid is focused\n\n this.focus();\n }\n },\n gotoPrevDecade: function gotoPrevDecade() {\n this.activeYMD = formatYMD(this.constrainDate(oneDecadeAgo(this.activeDate)));\n },\n gotoPrevYear: function gotoPrevYear() {\n this.activeYMD = formatYMD(this.constrainDate(oneYearAgo(this.activeDate)));\n },\n gotoPrevMonth: function gotoPrevMonth() {\n this.activeYMD = formatYMD(this.constrainDate(oneMonthAgo(this.activeDate)));\n },\n gotoCurrentMonth: function gotoCurrentMonth() {\n // TODO: Maybe this goto date should be configurable?\n this.activeYMD = formatYMD(this.constrainDate(this.getToday()));\n },\n gotoNextMonth: function gotoNextMonth() {\n this.activeYMD = formatYMD(this.constrainDate(oneMonthAhead(this.activeDate)));\n },\n gotoNextYear: function gotoNextYear() {\n this.activeYMD = formatYMD(this.constrainDate(oneYearAhead(this.activeDate)));\n },\n gotoNextDecade: function gotoNextDecade() {\n this.activeYMD = formatYMD(this.constrainDate(oneDecadeAhead(this.activeDate)));\n },\n onHeaderClick: function onHeaderClick() {\n if (!this.disabled) {\n this.activeYMD = this.selectedYMD || formatYMD(this.getToday());\n this.focus();\n }\n }\n },\n render: function render(h) {\n var _this5 = this;\n\n // If `hidden` prop is set, render just a placeholder node\n if (this.hidden) {\n return h();\n }\n\n var valueId = this.valueId,\n widgetId = this.widgetId,\n navId = this.navId,\n gridId = this.gridId,\n gridCaptionId = this.gridCaptionId,\n gridHelpId = this.gridHelpId,\n activeId = this.activeId,\n isLive = this.isLive,\n isRTL = this.isRTL,\n activeYMD = this.activeYMD,\n selectedYMD = this.selectedYMD,\n safeId = this.safeId;\n var hideDecadeNav = !this.showDecadeNav;\n var todayYMD = formatYMD(this.getToday());\n var highlightToday = !this.noHighlightToday; // Header showing current selected date\n\n var $header = h('output', {\n staticClass: 'form-control form-control-sm text-center',\n class: {\n 'text-muted': this.disabled,\n readonly: this.readonly || this.disabled\n },\n attrs: {\n id: valueId,\n for: gridId,\n role: 'status',\n tabindex: this.disabled ? null : '-1',\n // Mainly for testing purposes, as we do not know\n // the exact format `Intl` will format the date string\n 'data-selected': toString(selectedYMD),\n // We wait until after mount to enable `aria-live`\n // to prevent initial announcement on page render\n 'aria-live': isLive ? 'polite' : 'off',\n 'aria-atomic': isLive ? 'true' : null\n },\n on: {\n // Transfer focus/click to focus grid\n // and focus active date (or today if no selection)\n click: this.onHeaderClick,\n focus: this.onHeaderClick\n }\n }, this.selectedDate ? [// We use `bdi` elements here in case the label doesn't match the locale\n // Although IE 11 does not deal with at all (equivalent to a span)\n h('bdi', {\n staticClass: 'sr-only'\n }, \" (\".concat(toString(this.labelSelected), \") \")), h('bdi', this.formatDateString(this.selectedDate))] : this.labelNoDateSelected || \"\\xA0\" // ' '\n );\n $header = h('header', {\n staticClass: 'b-calendar-header',\n class: {\n 'sr-only': this.hideHeader\n },\n attrs: {\n title: this.selectedDate ? this.labelSelectedDate || null : null\n }\n }, [$header]); // Content for the date navigation buttons\n\n var navScope = {\n isRTL: isRTL\n };\n var navProps = {\n shiftV: 0.5\n };\n\n var navPrevProps = _objectSpread(_objectSpread({}, navProps), {}, {\n flipH: isRTL\n });\n\n var navNextProps = _objectSpread(_objectSpread({}, navProps), {}, {\n flipH: !isRTL\n });\n\n var $prevDecadeIcon = this.normalizeSlot('nav-prev-decade', navScope) || h(BIconChevronBarLeft, {\n props: navPrevProps\n });\n var $prevYearIcon = this.normalizeSlot('nav-prev-year', navScope) || h(BIconChevronDoubleLeft, {\n props: navPrevProps\n });\n var $prevMonthIcon = this.normalizeSlot('nav-prev-month', navScope) || h(BIconChevronLeft, {\n props: navPrevProps\n });\n var $thisMonthIcon = this.normalizeSlot('nav-this-month', navScope) || h(BIconCircleFill, {\n props: navProps\n });\n var $nextMonthIcon = this.normalizeSlot('nav-next-month', navScope) || h(BIconChevronLeft, {\n props: navNextProps\n });\n var $nextYearIcon = this.normalizeSlot('nav-next-year', navScope) || h(BIconChevronDoubleLeft, {\n props: navNextProps\n });\n var $nextDecadeIcon = this.normalizeSlot('nav-next-decade', navScope) || h(BIconChevronBarLeft, {\n props: navNextProps\n }); // Utility to create the date navigation buttons\n\n var makeNavBtn = function makeNavBtn(content, label, handler, btnDisabled, shortcut) {\n return h('button', {\n staticClass: 'btn btn-sm border-0 flex-fill',\n class: [_this5.computedNavButtonVariant, {\n disabled: btnDisabled\n }],\n attrs: {\n title: label || null,\n type: 'button',\n 'aria-label': label || null,\n 'aria-disabled': btnDisabled ? 'true' : null,\n 'aria-keyshortcuts': shortcut || null\n },\n on: btnDisabled ? {} : {\n click: handler\n }\n }, [h('div', {\n attrs: {\n 'aria-hidden': 'true'\n }\n }, [content])]);\n }; // Generate the date navigation buttons\n\n\n var $nav = h('div', {\n staticClass: 'b-calendar-nav d-flex',\n attrs: {\n id: navId,\n role: 'group',\n 'aria-hidden': this.disabled ? 'true' : null,\n 'aria-label': this.labelNav || null,\n 'aria-controls': gridId\n }\n }, [hideDecadeNav ? h() : makeNavBtn($prevDecadeIcon, this.labelPrevDecade, this.gotoPrevDecade, this.prevDecadeDisabled, 'Ctrl+Alt+PageDown'), makeNavBtn($prevYearIcon, this.labelPrevYear, this.gotoPrevYear, this.prevYearDisabled, 'Alt+PageDown'), makeNavBtn($prevMonthIcon, this.labelPrevMonth, this.gotoPrevMonth, this.prevMonthDisabled, 'PageDown'), makeNavBtn($thisMonthIcon, this.labelCurrentMonth, this.gotoCurrentMonth, this.thisMonthDisabled, 'Home'), makeNavBtn($nextMonthIcon, this.labelNextMonth, this.gotoNextMonth, this.nextMonthDisabled, 'PageUp'), makeNavBtn($nextYearIcon, this.labelNextYear, this.gotoNextYear, this.nextYearDisabled, 'Alt+PageUp'), hideDecadeNav ? h() : makeNavBtn($nextDecadeIcon, this.labelNextDecade, this.gotoNextDecade, this.nextDecadeDisabled, 'Ctrl+Alt+PageUp')]); // Caption for calendar grid\n\n var $gridCaption = h('header', {\n key: 'grid-caption',\n staticClass: 'b-calendar-grid-caption text-center font-weight-bold',\n class: {\n 'text-muted': this.disabled\n },\n attrs: {\n id: gridCaptionId,\n 'aria-live': isLive ? 'polite' : null,\n 'aria-atomic': isLive ? 'true' : null\n }\n }, this.formatYearMonth(this.calendarFirstDay)); // Calendar weekday headings\n\n var $gridWeekDays = h('div', {\n staticClass: 'b-calendar-grid-weekdays row no-gutters border-bottom',\n attrs: {\n 'aria-hidden': 'true'\n }\n }, this.calendarHeadings.map(function (d, idx) {\n return h('small', {\n key: idx,\n staticClass: 'col text-truncate',\n class: {\n 'text-muted': _this5.disabled\n },\n attrs: {\n title: d.label === d.text ? null : d.label,\n 'aria-label': d.label\n }\n }, d.text);\n })); // Calendar day grid\n\n var $gridBody = this.calendar.map(function (week) {\n var $cells = week.map(function (day, dIndex) {\n var _class;\n\n var isSelected = day.ymd === selectedYMD;\n var isActive = day.ymd === activeYMD;\n var isToday = day.ymd === todayYMD;\n var idCell = safeId(\"_cell-\".concat(day.ymd, \"_\")); // \"fake\" button\n\n var $btn = h('span', {\n staticClass: 'btn border-0 rounded-circle text-nowrap',\n // Should we add some classes to signify if today/selected/etc?\n class: (_class = {\n // Give the fake button a focus ring\n focus: isActive && _this5.gridHasFocus,\n // Styling\n disabled: day.isDisabled || _this5.disabled,\n active: isSelected\n }, _defineProperty(_class, _this5.computedVariant, isSelected), _defineProperty(_class, _this5.computedTodayVariant, isToday && highlightToday && !isSelected && day.isThisMonth), _defineProperty(_class, 'btn-outline-light', !(isToday && highlightToday) && !isSelected && !isActive), _defineProperty(_class, 'btn-light', !(isToday && highlightToday) && !isSelected && isActive), _defineProperty(_class, 'text-muted', !day.isThisMonth && !isSelected), _defineProperty(_class, 'text-dark', !(isToday && highlightToday) && !isSelected && !isActive && day.isThisMonth), _defineProperty(_class, 'font-weight-bold', (isSelected || day.isThisMonth) && !day.isDisabled), _class),\n on: {\n click: function click() {\n return _this5.onClickDay(day);\n }\n }\n }, day.day);\n return h('div', // Cell with button\n {\n key: dIndex,\n staticClass: 'col p-0',\n class: day.isDisabled ? 'bg-light' : day.info.class || '',\n attrs: {\n id: idCell,\n role: 'button',\n 'data-date': day.ymd,\n // Primarily for testing purposes\n // Only days in the month are presented as buttons to screen readers\n 'aria-hidden': day.isThisMonth ? null : 'true',\n 'aria-disabled': day.isDisabled || _this5.disabled ? 'true' : null,\n 'aria-label': [day.label, isSelected ? \"(\".concat(_this5.labelSelected, \")\") : null, isToday ? \"(\".concat(_this5.labelToday, \")\") : null].filter(identity).join(' '),\n // NVDA doesn't convey `aria-selected`, but does `aria-current`,\n // ChromeVox doesn't convey `aria-current`, but does `aria-selected`,\n // so we set both attributes for robustness\n 'aria-selected': isSelected ? 'true' : null,\n 'aria-current': isSelected ? 'date' : null\n }\n }, [$btn]);\n }); // Return the week \"row\"\n // We use the first day of the weeks YMD value as a\n // key for efficient DOM patching / element re-use\n\n return h('div', {\n key: week[0].ymd,\n staticClass: 'row no-gutters'\n }, $cells);\n });\n $gridBody = h('div', {\n // A key is only required on the body if we add in transition support\n // key: this.activeYMD.slice(0, -3),\n staticClass: 'b-calendar-grid-body',\n style: this.disabled ? {\n pointerEvents: 'none'\n } : {}\n }, $gridBody);\n var $gridHelp = h('footer', {\n staticClass: 'b-calendar-grid-help border-top small text-muted text-center bg-light',\n attrs: {\n id: gridHelpId\n }\n }, [h('div', {\n staticClass: 'small'\n }, this.labelHelp)]);\n var $grid = h('div', {\n ref: 'grid',\n staticClass: 'b-calendar-grid form-control h-auto text-center',\n attrs: {\n id: gridId,\n role: 'application',\n tabindex: this.disabled ? null : '0',\n 'data-month': activeYMD.slice(0, -3),\n // `YYYY-MM`, mainly for testing\n 'aria-roledescription': this.labelCalendar || null,\n 'aria-labelledby': gridCaptionId,\n 'aria-describedby': gridHelpId,\n // `aria-readonly` is not considered valid on `role=\"application\"`\n // https://www.w3.org/TR/wai-aria-1.1/#aria-readonly\n // 'aria-readonly': this.readonly && !this.disabled ? 'true' : null,\n 'aria-disabled': this.disabled ? 'true' : null,\n 'aria-activedescendant': activeId\n },\n on: {\n keydown: this.onKeydownGrid,\n focus: this.setGridFocusFlag,\n blur: this.setGridFocusFlag\n }\n }, [$gridCaption, $gridWeekDays, $gridBody, $gridHelp]); // Optional bottom slot\n\n var $slot = this.normalizeSlot();\n $slot = $slot ? h('footer', {\n staticClass: 'b-calendar-footer'\n }, $slot) : h();\n var $widget = h('div', {\n staticClass: 'b-calendar-inner',\n style: this.block ? {} : {\n width: this.width\n },\n attrs: {\n id: widgetId,\n dir: isRTL ? 'rtl' : 'ltr',\n lang: this.computedLocale || null,\n role: 'group',\n 'aria-disabled': this.disabled ? 'true' : null,\n // If datepicker controls an input, this will specify the ID of the input\n 'aria-controls': this.ariaControls || null,\n // This should be a prop (so it can be changed to Date picker, etc, localized\n 'aria-roledescription': this.roleDescription || null,\n 'aria-describedby': [// Should the attr (if present) go last?\n // Or should this attr be a prop?\n this.bvAttrs['aria-describedby'], valueId, gridHelpId].filter(identity).join(' ')\n },\n on: {\n keydown: this.onKeydownWrapper\n }\n }, [$header, $nav, $grid, $slot]); // Wrap in an outer div that can be styled\n\n return h('div', {\n staticClass: 'b-calendar',\n class: {\n 'd-block': this.block\n }\n }, [$widget]);\n }\n});","import { BCalendar } from './calendar';\nimport { pluginFactory } from '../../utils/plugins';\nvar CalendarPlugin = /*#__PURE__*/pluginFactory({\n components: {\n BCalendar: BCalendar\n }\n});\nexport { CalendarPlugin, BCalendar };","// @vue/component\nexport default {\n props: {\n tag: {\n type: String,\n default: 'div'\n },\n bgVariant: {\n type: String // default: null\n\n },\n borderVariant: {\n type: String // default: null\n\n },\n textVariant: {\n type: String // default: null\n\n }\n }\n};","import { NAME_CARD_TITLE } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nimport { toString } from '../../utils/string';\nexport var props = {\n title: {\n type: String // default: null\n\n },\n titleTag: {\n type: String,\n default: 'h4'\n }\n}; // @vue/component\n\nexport var BCardTitle = /*#__PURE__*/Vue.extend({\n name: NAME_CARD_TITLE,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n return h(props.titleTag, mergeData(data, {\n staticClass: 'card-title'\n }), children || toString(props.title));\n }\n});","import { NAME_CARD_SUB_TITLE } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nimport { getComponentConfig } from '../../utils/config';\nimport { toString } from '../../utils/string';\nexport var props = {\n subTitle: {\n type: String // default: null\n\n },\n subTitleTag: {\n type: String,\n default: 'h6'\n },\n subTitleTextVariant: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CARD_SUB_TITLE, 'subTitleTextVariant');\n }\n }\n}; // @vue/component\n\nexport var BCardSubTitle = /*#__PURE__*/Vue.extend({\n name: NAME_CARD_SUB_TITLE,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n return h(props.subTitleTag, mergeData(data, {\n staticClass: 'card-subtitle',\n class: [props.subTitleTextVariant ? \"text-\".concat(props.subTitleTextVariant) : null]\n }), children || toString(props.subTitle));\n }\n});","function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_CARD_BODY } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nimport { copyProps, pluckProps, prefixPropName } from '../../utils/props';\nimport cardMixin from '../../mixins/card';\nimport { BCardTitle, props as titleProps } from './card-title';\nimport { BCardSubTitle, props as subTitleProps } from './card-sub-title';\nexport var props = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, copyProps(cardMixin.props, prefixPropName.bind(null, 'body'))), {}, {\n bodyClass: {\n type: [String, Object, Array] // default: null\n\n }\n}, titleProps), subTitleProps), {}, {\n overlay: {\n type: Boolean,\n default: false\n }\n}); // @vue/component\n\nexport var BCardBody = /*#__PURE__*/Vue.extend({\n name: NAME_CARD_BODY,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var _ref2;\n\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n var cardTitle = h();\n var cardSubTitle = h();\n var cardContent = children || [h()];\n\n if (props.title) {\n cardTitle = h(BCardTitle, {\n props: pluckProps(titleProps, props)\n });\n }\n\n if (props.subTitle) {\n cardSubTitle = h(BCardSubTitle, {\n props: pluckProps(subTitleProps, props),\n class: ['mb-2']\n });\n }\n\n return h(props.bodyTag, mergeData(data, {\n staticClass: 'card-body',\n class: [(_ref2 = {\n 'card-img-overlay': props.overlay\n }, _defineProperty(_ref2, \"bg-\".concat(props.bodyBgVariant), props.bodyBgVariant), _defineProperty(_ref2, \"border-\".concat(props.bodyBorderVariant), props.bodyBorderVariant), _defineProperty(_ref2, \"text-\".concat(props.bodyTextVariant), props.bodyTextVariant), _ref2), props.bodyClass || {}]\n }), [cardTitle, cardSubTitle].concat(_toConsumableArray(cardContent)));\n }\n});","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_CARD_HEADER } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nimport { htmlOrText } from '../../utils/html';\nimport { copyProps, prefixPropName } from '../../utils/props';\nimport cardMixin from '../../mixins/card'; // --- Props ---\n\nexport var props = _objectSpread(_objectSpread({}, copyProps(cardMixin.props, prefixPropName.bind(null, 'header'))), {}, {\n header: {\n type: String // default: null\n\n },\n headerHtml: {\n type: String // default: null\n\n },\n headerClass: {\n type: [String, Object, Array] // default: null\n\n }\n}); // --- Main component ---\n// @vue/component\n\nexport var BCardHeader = /*#__PURE__*/Vue.extend({\n name: NAME_CARD_HEADER,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var _ref2;\n\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n var headerBgVariant = props.headerBgVariant,\n headerBorderVariant = props.headerBorderVariant,\n headerTextVariant = props.headerTextVariant;\n return h(props.headerTag, mergeData(data, {\n staticClass: 'card-header',\n class: [props.headerClass, (_ref2 = {}, _defineProperty(_ref2, \"bg-\".concat(headerBgVariant), headerBgVariant), _defineProperty(_ref2, \"border-\".concat(headerBorderVariant), headerBorderVariant), _defineProperty(_ref2, \"text-\".concat(headerTextVariant), headerTextVariant), _ref2)],\n domProps: children ? {} : htmlOrText(props.headerHtml, props.header)\n }), children);\n }\n});","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_CARD_FOOTER } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nimport { htmlOrText } from '../../utils/html';\nimport { copyProps, prefixPropName } from '../../utils/props';\nimport cardMixin from '../../mixins/card'; // --- Props ---\n\nexport var props = _objectSpread(_objectSpread({}, copyProps(cardMixin.props, prefixPropName.bind(null, 'footer'))), {}, {\n footer: {\n type: String // default: null\n\n },\n footerHtml: {\n type: String // default: null\n\n },\n footerClass: {\n type: [String, Object, Array] // default: null\n\n }\n}); // --- Main component ---\n// @vue/component\n\nexport var BCardFooter = /*#__PURE__*/Vue.extend({\n name: NAME_CARD_FOOTER,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var _ref2;\n\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n var footerBgVariant = props.footerBgVariant,\n footerBorderVariant = props.footerBorderVariant,\n footerTextVariant = props.footerTextVariant;\n return h(props.footerTag, mergeData(data, {\n staticClass: 'card-footer',\n class: [props.footerClass, (_ref2 = {}, _defineProperty(_ref2, \"bg-\".concat(footerBgVariant), footerBgVariant), _defineProperty(_ref2, \"border-\".concat(footerBorderVariant), footerBorderVariant), _defineProperty(_ref2, \"text-\".concat(footerTextVariant), footerTextVariant), _ref2)],\n domProps: children ? {} : htmlOrText(props.footerHtml, props.footer)\n }), children);\n }\n});","import { NAME_CARD_IMG } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nexport var props = {\n src: {\n type: String,\n required: true\n },\n alt: {\n type: String,\n default: null\n },\n top: {\n type: Boolean,\n default: false\n },\n bottom: {\n type: Boolean,\n default: false\n },\n start: {\n type: Boolean,\n default: false\n },\n left: {\n // alias of 'start'\n type: Boolean,\n default: false\n },\n end: {\n type: Boolean,\n default: false\n },\n right: {\n // alias of 'end'\n type: Boolean,\n default: false\n },\n height: {\n type: [Number, String] // default: null\n\n },\n width: {\n type: [Number, String] // default: null\n\n }\n}; // @vue/component\n\nexport var BCardImg = /*#__PURE__*/Vue.extend({\n name: NAME_CARD_IMG,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data;\n var baseClass = 'card-img';\n\n if (props.top) {\n baseClass += '-top';\n } else if (props.right || props.end) {\n baseClass += '-right';\n } else if (props.bottom) {\n baseClass += '-bottom';\n } else if (props.left || props.start) {\n baseClass += '-left';\n }\n\n return h('img', mergeData(data, {\n class: [baseClass],\n attrs: {\n src: props.src || null,\n alt: props.alt,\n height: props.height || null,\n width: props.width || null\n }\n }));\n }\n});","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_CARD } from '../../constants/components';\nimport { SLOT_NAME_DEFAULT, SLOT_NAME_FOOTER, SLOT_NAME_HEADER } from '../../constants/slot-names';\nimport Vue, { mergeData } from '../../utils/vue';\nimport { htmlOrText } from '../../utils/html';\nimport { hasNormalizedSlot, normalizeSlot } from '../../utils/normalize-slot';\nimport { copyProps, pluckProps, prefixPropName, unprefixPropName } from '../../utils/props';\nimport cardMixin from '../../mixins/card';\nimport { BCardBody, props as bodyProps } from './card-body';\nimport { BCardHeader, props as headerProps } from './card-header';\nimport { BCardFooter, props as footerProps } from './card-footer';\nimport { BCardImg, props as imgProps } from './card-img';\nvar cardImgProps = copyProps(imgProps, prefixPropName.bind(null, 'img'));\ncardImgProps.imgSrc.required = false;\nexport var props = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, bodyProps), headerProps), footerProps), cardImgProps), copyProps(cardMixin.props)), {}, {\n align: {\n type: String // default: null\n\n },\n noBody: {\n type: Boolean,\n default: false\n }\n}); // @vue/component\n\nexport var BCard = /*#__PURE__*/Vue.extend({\n name: NAME_CARD,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var _class;\n\n var props = _ref.props,\n data = _ref.data,\n slots = _ref.slots,\n scopedSlots = _ref.scopedSlots;\n var imgLeft = props.imgLeft,\n imgRight = props.imgRight,\n imgStart = props.imgStart,\n imgEnd = props.imgEnd,\n header = props.header,\n headerHtml = props.headerHtml,\n footer = props.footer,\n footerHtml = props.footerHtml,\n align = props.align,\n textVariant = props.textVariant,\n bgVariant = props.bgVariant,\n borderVariant = props.borderVariant;\n var $scopedSlots = scopedSlots || {};\n var $slots = slots();\n var slotScope = {};\n var $imgFirst = h();\n var $imgLast = h();\n\n if (props.imgSrc) {\n var $img = h(BCardImg, {\n props: pluckProps(cardImgProps, props, unprefixPropName.bind(null, 'img'))\n });\n\n if (props.imgBottom) {\n $imgLast = $img;\n } else {\n $imgFirst = $img;\n }\n }\n\n var $header = h();\n var hasHeaderSlot = hasNormalizedSlot(SLOT_NAME_HEADER, $scopedSlots, $slots);\n\n if (hasHeaderSlot || header || headerHtml) {\n $header = h(BCardHeader, {\n props: pluckProps(headerProps, props),\n domProps: hasHeaderSlot ? {} : htmlOrText(headerHtml, header)\n }, normalizeSlot(SLOT_NAME_HEADER, slotScope, $scopedSlots, $slots));\n }\n\n var $content = normalizeSlot(SLOT_NAME_DEFAULT, slotScope, $scopedSlots, $slots); // Wrap content in when `noBody` prop set\n\n if (!props.noBody) {\n $content = h(BCardBody, {\n props: pluckProps(bodyProps, props)\n }, $content);\n }\n\n var $footer = h();\n var hasFooterSlot = hasNormalizedSlot(SLOT_NAME_FOOTER, $scopedSlots, $slots);\n\n if (hasFooterSlot || footer || footerHtml) {\n $footer = h(BCardFooter, {\n props: pluckProps(footerProps, props),\n domProps: hasHeaderSlot ? {} : htmlOrText(footerHtml, footer)\n }, normalizeSlot(SLOT_NAME_FOOTER, slotScope, $scopedSlots, $slots));\n }\n\n return h(props.tag, mergeData(data, {\n staticClass: 'card',\n class: (_class = {\n 'flex-row': imgLeft || imgStart,\n 'flex-row-reverse': (imgRight || imgEnd) && !(imgLeft || imgStart)\n }, _defineProperty(_class, \"text-\".concat(align), align), _defineProperty(_class, \"bg-\".concat(bgVariant), bgVariant), _defineProperty(_class, \"border-\".concat(borderVariant), borderVariant), _defineProperty(_class, \"text-\".concat(textVariant), textVariant), _class)\n }), [$imgFirst, $header, $content, $footer, $imgLast]);\n }\n});","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n// v-b-visible\n// Private visibility check directive\n// Based on IntersectionObserver\n//\n// Usage:\n// v-b-visibility..=\"\"\n//\n// Value:\n// : method to be called when visibility state changes, receives one arg:\n// true: element is visible\n// false: element is not visible\n// null: IntersectionObserver not supported\n//\n// Modifiers:\n// : a positive decimal value of pixels away from viewport edge\n// before being considered \"visible\". default is 0\n// : keyword 'once', meaning when the element becomes visible and\n// callback is called observation/notification will stop.\n//\n// When used in a render function:\n// export default {\n// directives: { 'b-visible': VBVisible },\n// render(h) {\n// h(\n// 'div',\n// {\n// directives: [\n// { name: 'b-visible', value=this.callback, modifiers: { '123':true, 'once':true } }\n// ]\n// }\n// )\n// }\nimport { RX_DIGITS } from '../../constants/regex';\nimport looseEqual from '../../utils/loose-equal';\nimport { requestAF } from '../../utils/dom';\nimport { isFunction } from '../../utils/inspect';\nimport { clone, keys } from '../../utils/object';\nvar OBSERVER_PROP_NAME = '__bv__visibility_observer';\n\nvar VisibilityObserver = /*#__PURE__*/function () {\n function VisibilityObserver(el, options, vnode) {\n _classCallCheck(this, VisibilityObserver);\n\n this.el = el;\n this.callback = options.callback;\n this.margin = options.margin || 0;\n this.once = options.once || false;\n this.observer = null;\n this.visible = undefined;\n this.doneOnce = false; // Create the observer instance (if possible)\n\n this.createObserver(vnode);\n }\n\n _createClass(VisibilityObserver, [{\n key: \"createObserver\",\n value: function createObserver(vnode) {\n var _this = this;\n\n // Remove any previous observer\n if (this.observer) {\n /* istanbul ignore next */\n this.stop();\n } // Should only be called once and `callback` prop should be a function\n\n\n if (this.doneOnce || !isFunction(this.callback)) {\n /* istanbul ignore next */\n return;\n } // Create the observer instance\n\n\n try {\n // Future: Possibly add in other modifiers for left/right/top/bottom\n // offsets, root element reference, and thresholds\n this.observer = new IntersectionObserver(this.handler.bind(this), {\n // `null` = 'viewport'\n root: null,\n // Pixels away from view port to consider \"visible\"\n rootMargin: this.margin,\n // Intersection ratio of el and root (as a value from 0 to 1)\n threshold: 0\n });\n } catch (_unused) {\n // No IntersectionObserver support, so just stop trying to observe\n this.doneOnce = true;\n this.observer = undefined;\n this.callback(null);\n return;\n } // Start observing in a `$nextTick()` (to allow DOM to complete rendering)\n\n /* istanbul ignore next: IntersectionObserver not supported in JSDOM */\n\n\n vnode.context.$nextTick(function () {\n requestAF(function () {\n // Placed in an `if` just in case we were destroyed before\n // this `requestAnimationFrame` runs\n if (_this.observer) {\n _this.observer.observe(_this.el);\n }\n });\n });\n }\n /* istanbul ignore next */\n\n }, {\n key: \"handler\",\n value: function handler(entries)\n /* istanbul ignore next: IntersectionObserver not supported in JSDOM */\n {\n var entry = entries ? entries[0] : {};\n var isIntersecting = Boolean(entry.isIntersecting || entry.intersectionRatio > 0.0);\n\n if (isIntersecting !== this.visible) {\n this.visible = isIntersecting;\n this.callback(isIntersecting);\n\n if (this.once && this.visible) {\n this.doneOnce = true;\n this.stop();\n }\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n /* istanbul ignore next */\n this.observer && this.observer.disconnect();\n this.observer = null;\n }\n }]);\n\n return VisibilityObserver;\n}();\n\nvar destroy = function destroy(el) {\n var observer = el[OBSERVER_PROP_NAME];\n\n if (observer && observer.stop) {\n observer.stop();\n }\n\n delete el[OBSERVER_PROP_NAME];\n};\n\nvar bind = function bind(el, _ref, vnode) {\n var value = _ref.value,\n modifiers = _ref.modifiers;\n // `value` is the callback function\n var options = {\n margin: '0px',\n once: false,\n callback: value\n }; // Parse modifiers\n\n keys(modifiers).forEach(function (mod) {\n /* istanbul ignore else: Until is switched to use this directive */\n if (RX_DIGITS.test(mod)) {\n options.margin = \"\".concat(mod, \"px\");\n } else if (mod.toLowerCase() === 'once') {\n options.once = true;\n }\n }); // Destroy any previous observer\n\n destroy(el); // Create new observer\n\n el[OBSERVER_PROP_NAME] = new VisibilityObserver(el, options, vnode); // Store the current modifiers on the object (cloned)\n\n el[OBSERVER_PROP_NAME]._prevModifiers = clone(modifiers);\n}; // When the directive options may have been updated (or element)\n\n\nvar componentUpdated = function componentUpdated(el, _ref2, vnode) {\n var value = _ref2.value,\n oldValue = _ref2.oldValue,\n modifiers = _ref2.modifiers;\n // Compare value/oldValue and modifiers to see if anything has changed\n // and if so, destroy old observer and create new observer\n\n /* istanbul ignore next */\n modifiers = clone(modifiers);\n /* istanbul ignore next */\n\n if (el && (value !== oldValue || !el[OBSERVER_PROP_NAME] || !looseEqual(modifiers, el[OBSERVER_PROP_NAME]._prevModifiers))) {\n // Re-bind on element\n bind(el, {\n value: value,\n modifiers: modifiers\n }, vnode);\n }\n}; // When directive un-binds from element\n\n\nvar unbind = function unbind(el) {\n // Remove the observer\n destroy(el);\n}; // Export the directive\n\n\nexport var VBVisible = {\n bind: bind,\n componentUpdated: componentUpdated,\n unbind: unbind\n};","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_IMG } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nimport identity from '../../utils/identity';\nimport { concat } from '../../utils/array';\nimport { getComponentConfig } from '../../utils/config';\nimport { isString } from '../../utils/inspect';\nimport { toInteger } from '../../utils/number';\nimport { toString } from '../../utils/string'; // --- Constants --\n// Blank image with fill template\n\nvar BLANK_TEMPLATE = '' + '' + '';\nexport var props = {\n src: {\n type: String // default: null\n\n },\n srcset: {\n type: [String, Array] // default: null\n\n },\n sizes: {\n type: [String, Array] // default: null\n\n },\n alt: {\n type: String,\n default: null\n },\n width: {\n type: [Number, String] // default: null\n\n },\n height: {\n type: [Number, String] // default: null\n\n },\n block: {\n type: Boolean,\n default: false\n },\n fluid: {\n type: Boolean,\n default: false\n },\n fluidGrow: {\n // Gives fluid images class `w-100` to make them grow to fit container\n type: Boolean,\n default: false\n },\n rounded: {\n // rounded can be:\n // false: no rounding of corners\n // true: slightly rounded corners\n // 'top': top corners rounded\n // 'right': right corners rounded\n // 'bottom': bottom corners rounded\n // 'left': left corners rounded\n // 'circle': circle/oval\n // '0': force rounding off\n type: [Boolean, String],\n default: false\n },\n thumbnail: {\n type: Boolean,\n default: false\n },\n left: {\n type: Boolean,\n default: false\n },\n right: {\n type: Boolean,\n default: false\n },\n center: {\n type: Boolean,\n default: false\n },\n blank: {\n type: Boolean,\n default: false\n },\n blankColor: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_IMG, 'blankColor');\n }\n }\n}; // --- Helper methods ---\n\nvar makeBlankImgSrc = function makeBlankImgSrc(width, height, color) {\n var src = encodeURIComponent(BLANK_TEMPLATE.replace('%{w}', toString(width)).replace('%{h}', toString(height)).replace('%{f}', color));\n return \"data:image/svg+xml;charset=UTF-8,\".concat(src);\n}; // @vue/component\n\n\nexport var BImg = /*#__PURE__*/Vue.extend({\n name: NAME_IMG,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var _class;\n\n var props = _ref.props,\n data = _ref.data;\n var src = props.src;\n var width = toInteger(props.width) || null;\n var height = toInteger(props.height) || null;\n var align = null;\n var block = props.block;\n var srcset = concat(props.srcset).filter(identity).join(',');\n var sizes = concat(props.sizes).filter(identity).join(',');\n\n if (props.blank) {\n if (!height && width) {\n height = width;\n } else if (!width && height) {\n width = height;\n }\n\n if (!width && !height) {\n width = 1;\n height = 1;\n } // Make a blank SVG image\n\n\n src = makeBlankImgSrc(width, height, props.blankColor || 'transparent'); // Disable srcset and sizes\n\n srcset = null;\n sizes = null;\n }\n\n if (props.left) {\n align = 'float-left';\n } else if (props.right) {\n align = 'float-right';\n } else if (props.center) {\n align = 'mx-auto';\n block = true;\n }\n\n return h('img', mergeData(data, {\n attrs: {\n src: src,\n alt: props.alt,\n width: width ? toString(width) : null,\n height: height ? toString(height) : null,\n srcset: srcset || null,\n sizes: sizes || null\n },\n class: (_class = {\n 'img-thumbnail': props.thumbnail,\n 'img-fluid': props.fluid || props.fluidGrow,\n 'w-100': props.fluidGrow,\n rounded: props.rounded === '' || props.rounded === true\n }, _defineProperty(_class, \"rounded-\".concat(props.rounded), isString(props.rounded) && props.rounded !== ''), _defineProperty(_class, align, align), _defineProperty(_class, 'd-block', block), _class)\n }));\n }\n});","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_IMG_LAZY } from '../../constants/components';\nimport Vue from '../../utils/vue';\nimport identity from '../../utils/identity';\nimport { concat } from '../../utils/array';\nimport { getComponentConfig } from '../../utils/config';\nimport { hasIntersectionObserverSupport } from '../../utils/env';\nimport { toInteger } from '../../utils/number';\nimport { VBVisible } from '../../directives/visible/visible';\nimport { BImg } from './img';\nexport var props = {\n src: {\n type: String,\n required: true\n },\n srcset: {\n type: [String, Array] // default: null\n\n },\n sizes: {\n type: [String, Array] // default: null\n\n },\n alt: {\n type: String // default: null\n\n },\n width: {\n type: [Number, String] // default: null\n\n },\n height: {\n type: [Number, String] // default: null\n\n },\n blankSrc: {\n // If null, a blank image is generated\n type: String,\n default: null\n },\n blankColor: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_IMG_LAZY, 'blankColor');\n }\n },\n blankWidth: {\n type: [Number, String] // default: null\n\n },\n blankHeight: {\n type: [Number, String] // default: null\n\n },\n show: {\n type: Boolean,\n default: false\n },\n fluid: {\n type: Boolean,\n default: false\n },\n fluidGrow: {\n type: Boolean,\n default: false\n },\n block: {\n type: Boolean,\n default: false\n },\n thumbnail: {\n type: Boolean,\n default: false\n },\n rounded: {\n type: [Boolean, String],\n default: false\n },\n left: {\n type: Boolean,\n default: false\n },\n right: {\n type: Boolean,\n default: false\n },\n center: {\n type: Boolean,\n default: false\n },\n offset: {\n // Distance away from viewport (in pixels) before being\n // considered \"visible\"\n type: [Number, String],\n default: 360\n }\n}; // @vue/component\n\nexport var BImgLazy = /*#__PURE__*/Vue.extend({\n name: NAME_IMG_LAZY,\n directives: {\n bVisible: VBVisible\n },\n props: props,\n data: function data() {\n return {\n isShown: this.show\n };\n },\n computed: {\n computedSrc: function computedSrc() {\n return !this.blankSrc || this.isShown ? this.src : this.blankSrc;\n },\n computedBlank: function computedBlank() {\n return !(this.isShown || this.blankSrc);\n },\n computedWidth: function computedWidth() {\n return this.isShown ? this.width : this.blankWidth || this.width;\n },\n computedHeight: function computedHeight() {\n return this.isShown ? this.height : this.blankHeight || this.height;\n },\n computedSrcset: function computedSrcset() {\n var srcset = concat(this.srcset).filter(identity).join(',');\n return !this.blankSrc || this.isShown ? srcset : null;\n },\n computedSizes: function computedSizes() {\n var sizes = concat(this.sizes).filter(identity).join(',');\n return !this.blankSrc || this.isShown ? sizes : null;\n }\n },\n watch: {\n show: function show(newVal, oldVal) {\n if (newVal !== oldVal) {\n // If IntersectionObserver support is not available, image is always shown\n var visible = hasIntersectionObserverSupport ? newVal : true;\n this.isShown = visible;\n\n if (visible !== newVal) {\n // Ensure the show prop is synced (when no IntersectionObserver)\n this.$nextTick(this.updateShowProp);\n }\n }\n },\n isShown: function isShown(newVal, oldVal) {\n if (newVal !== oldVal) {\n // Update synched show prop\n this.updateShowProp();\n }\n }\n },\n mounted: function mounted() {\n // If IntersectionObserver is not available, image is always shown\n this.isShown = hasIntersectionObserverSupport ? this.show : true;\n },\n methods: {\n updateShowProp: function updateShowProp() {\n this.$emit('update:show', this.isShown);\n },\n doShow: function doShow(visible) {\n // If IntersectionObserver is not supported, the callback\n // will be called with `null` rather than `true` or `false`\n if ((visible || visible === null) && !this.isShown) {\n this.isShown = true;\n }\n }\n },\n render: function render(h) {\n var directives = [];\n\n if (!this.isShown) {\n var _modifiers;\n\n // We only add the visible directive if we are not shown\n directives.push({\n // Visible directive will silently do nothing if\n // IntersectionObserver is not supported\n name: 'b-visible',\n // Value expects a callback (passed one arg of `visible` = `true` or `false`)\n value: this.doShow,\n modifiers: (_modifiers = {}, _defineProperty(_modifiers, \"\".concat(toInteger(this.offset, 0)), true), _defineProperty(_modifiers, \"once\", true), _modifiers)\n });\n }\n\n return h(BImg, {\n directives: directives,\n props: {\n // Computed value props\n src: this.computedSrc,\n blank: this.computedBlank,\n width: this.computedWidth,\n height: this.computedHeight,\n srcset: this.computedSrcset || null,\n sizes: this.computedSizes || null,\n // Passthrough props\n alt: this.alt,\n blankColor: this.blankColor,\n fluid: this.fluid,\n fluidGrow: this.fluidGrow,\n block: this.block,\n thumbnail: this.thumbnail,\n rounded: this.rounded,\n left: this.left,\n right: this.right,\n center: this.center\n }\n });\n }\n});","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_CARD_IMG_LAZY } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nimport { omit } from '../../utils/object';\nimport { BImgLazy, props as imgLazyProps } from '../image/img-lazy'; // Copy of `` props, and remove conflicting/non-applicable props\n// The `omit()` util creates a new object, so we can just pass the original props\n\nvar lazyProps = omit(imgLazyProps, ['left', 'right', 'center', 'block', 'rounded', 'thumbnail', 'fluid', 'fluidGrow']);\nexport var props = _objectSpread(_objectSpread({}, lazyProps), {}, {\n top: {\n type: Boolean,\n default: false\n },\n bottom: {\n type: Boolean,\n default: false\n },\n start: {\n type: Boolean,\n default: false\n },\n left: {\n // alias of 'start'\n type: Boolean,\n default: false\n },\n end: {\n type: Boolean,\n default: false\n },\n right: {\n // alias of 'end'\n type: Boolean,\n default: false\n }\n}); // @vue/component\n\nexport var BCardImgLazy = /*#__PURE__*/Vue.extend({\n name: NAME_CARD_IMG_LAZY,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data;\n var baseClass = 'card-img';\n\n if (props.top) {\n baseClass += '-top';\n } else if (props.right || props.end) {\n baseClass += '-right';\n } else if (props.bottom) {\n baseClass += '-bottom';\n } else if (props.left || props.start) {\n baseClass += '-left';\n } // False out the left/center/right props before passing to b-img-lazy\n\n\n var lazyProps = _objectSpread(_objectSpread({}, props), {}, {\n left: false,\n right: false,\n center: false\n });\n\n return h(BImgLazy, mergeData(data, {\n class: [baseClass],\n props: lazyProps\n }));\n }\n});","import { NAME_CARD_TEXT } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nexport var props = {\n textTag: {\n type: String,\n default: 'p'\n }\n}; // @vue/component\n\nexport var BCardText = /*#__PURE__*/Vue.extend({\n name: NAME_CARD_TEXT,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n return h(props.textTag, mergeData(data, {\n staticClass: 'card-text'\n }), children);\n }\n});","import { NAME_CARD_GROUP } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nexport var props = {\n tag: {\n type: String,\n default: 'div'\n },\n deck: {\n type: Boolean,\n default: false\n },\n columns: {\n type: Boolean,\n default: false\n }\n}; // @vue/component\n\nexport var BCardGroup = /*#__PURE__*/Vue.extend({\n name: NAME_CARD_GROUP,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n return h(props.tag, mergeData(data, {\n class: props.deck ? 'card-deck' : props.columns ? 'card-columns' : 'card-group'\n }), children);\n }\n});","import { BCard } from './card';\nimport { BCardHeader } from './card-header';\nimport { BCardBody } from './card-body';\nimport { BCardTitle } from './card-title';\nimport { BCardSubTitle } from './card-sub-title';\nimport { BCardFooter } from './card-footer';\nimport { BCardImg } from './card-img';\nimport { BCardImgLazy } from './card-img-lazy';\nimport { BCardText } from './card-text';\nimport { BCardGroup } from './card-group';\nimport { pluginFactory } from '../../utils/plugins';\nvar CardPlugin = /*#__PURE__*/pluginFactory({\n components: {\n BCard: BCard,\n BCardHeader: BCardHeader,\n BCardBody: BCardBody,\n BCardTitle: BCardTitle,\n BCardSubTitle: BCardSubTitle,\n BCardFooter: BCardFooter,\n BCardImg: BCardImg,\n BCardImgLazy: BCardImgLazy,\n BCardText: BCardText,\n BCardGroup: BCardGroup\n }\n});\nexport { CardPlugin, BCard, BCardHeader, BCardBody, BCardTitle, BCardSubTitle, BCardFooter, BCardImg, BCardImgLazy, BCardText, BCardGroup };","export var EVENT_OPTIONS_PASSIVE = {\n passive: true\n};\nexport var EVENT_OPTIONS_NO_CAPTURE = {\n passive: true,\n capture: false\n};","var noop = function noop() {};\n\nexport default noop;","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { MutationObs, isElement } from './dom';\nimport { warnNoMutationObserverSupport } from './warn';\n/**\n * Observe a DOM element changes, falls back to eventListener mode\n * @param {Element} el The DOM element to observe\n * @param {Function} callback callback to be called on change\n * @param {object} [options={childList: true, subtree: true}] observe options\n * @see https://stackoverflow.com/questions/3219758\n */\n\nvar observeDom = function observeDom(el, callback, options)\n/* istanbul ignore next: difficult to test in JSDOM */\n{\n // Handle cases where we might be passed a Vue instance\n el = el ? el.$el || el : null; // Early exit when we have no element\n\n /* istanbul ignore next: difficult to test in JSDOM */\n\n if (!isElement(el)) {\n return null;\n } // Exit and throw a warning when `MutationObserver` isn't available\n\n\n if (warnNoMutationObserverSupport('observeDom')) {\n return null;\n } // Define a new observer\n\n\n var obs = new MutationObs(function (mutations) {\n var changed = false; // A mutation can contain several change records, so we loop\n // through them to see what has changed\n // We break out of the loop early if any \"significant\" change\n // has been detected\n\n for (var i = 0; i < mutations.length && !changed; i++) {\n // The mutation record\n var mutation = mutations[i]; // Mutation type\n\n var type = mutation.type; // DOM node (could be any DOM node type - HTMLElement, Text, comment, etc.)\n\n var target = mutation.target; // Detect whether a change happened based on type and target\n\n if (type === 'characterData' && target.nodeType === Node.TEXT_NODE) {\n // We ignore nodes that are not TEXT (i.e. comments, etc.)\n // as they don't change layout\n changed = true;\n } else if (type === 'attributes') {\n changed = true;\n } else if (type === 'childList' && (mutation.addedNodes.length > 0 || mutation.removedNodes.length > 0)) {\n // This includes HTMLElement and text nodes being\n // added/removed/re-arranged\n changed = true;\n }\n } // We only call the callback if a change that could affect\n // layout/size truly happened\n\n\n if (changed) {\n callback();\n }\n }); // Have the observer observe foo for changes in children, etc\n\n obs.observe(el, _objectSpread({\n childList: true,\n subtree: true\n }, options)); // We return a reference to the observer so that `obs.disconnect()`\n // can be called if necessary\n // To reduce overhead when the root element is hidden\n\n return obs;\n};\n\nexport default observeDom;","import { NAME_CAROUSEL } from '../../constants/components';\nimport { EVENT_OPTIONS_NO_CAPTURE } from '../../constants/events';\nimport { CODE_ENTER, CODE_LEFT, CODE_RIGHT, CODE_SPACE } from '../../constants/key-codes';\nimport Vue from '../../utils/vue';\nimport noop from '../../utils/noop';\nimport observeDom from '../../utils/observe-dom';\nimport { getComponentConfig } from '../../utils/config';\nimport { addClass, getActiveElement, reflow, removeClass, selectAll, setAttr } from '../../utils/dom';\nimport { isBrowser, hasTouchSupport, hasPointerEventSupport } from '../../utils/env';\nimport { eventOn, eventOff, stopEvent } from '../../utils/events';\nimport { isUndefined } from '../../utils/inspect';\nimport { mathAbs, mathFloor, mathMax, mathMin } from '../../utils/math';\nimport { toInteger } from '../../utils/number';\nimport idMixin from '../../mixins/id';\nimport normalizeSlotMixin from '../../mixins/normalize-slot'; // Slide directional classes\n\nvar DIRECTION = {\n next: {\n dirClass: 'carousel-item-left',\n overlayClass: 'carousel-item-next'\n },\n prev: {\n dirClass: 'carousel-item-right',\n overlayClass: 'carousel-item-prev'\n }\n}; // Fallback Transition duration (with a little buffer) in ms\n\nvar TRANS_DURATION = 600 + 50; // Time for mouse compat events to fire after touch\n\nvar TOUCH_EVENT_COMPAT_WAIT = 500; // Number of pixels to consider touch move a swipe\n\nvar SWIPE_THRESHOLD = 40; // PointerEvent pointer types\n\nvar PointerType = {\n TOUCH: 'touch',\n PEN: 'pen'\n}; // Transition Event names\n\nvar TransitionEndEvents = {\n WebkitTransition: 'webkitTransitionEnd',\n MozTransition: 'transitionend',\n OTransition: 'otransitionend oTransitionEnd',\n transition: 'transitionend'\n}; // Return the browser specific transitionEnd event name\n\nvar getTransitionEndEvent = function getTransitionEndEvent(el) {\n for (var name in TransitionEndEvents) {\n if (!isUndefined(el.style[name])) {\n return TransitionEndEvents[name];\n }\n } // Fallback\n\n /* istanbul ignore next */\n\n\n return null;\n}; // @vue/component\n\n\nexport var BCarousel = /*#__PURE__*/Vue.extend({\n name: NAME_CAROUSEL,\n mixins: [idMixin, normalizeSlotMixin],\n provide: function provide() {\n return {\n bvCarousel: this\n };\n },\n model: {\n prop: 'value',\n event: 'input'\n },\n props: {\n labelPrev: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CAROUSEL, 'labelPrev');\n }\n },\n labelNext: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CAROUSEL, 'labelNext');\n }\n },\n labelGotoSlide: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CAROUSEL, 'labelGotoSlide');\n }\n },\n labelIndicators: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_CAROUSEL, 'labelIndicators');\n }\n },\n interval: {\n type: Number,\n default: 5000\n },\n indicators: {\n type: Boolean,\n default: false\n },\n controls: {\n type: Boolean,\n default: false\n },\n noAnimation: {\n // Disable slide/fade animation\n type: Boolean,\n default: false\n },\n fade: {\n // Enable cross-fade animation instead of slide animation\n type: Boolean,\n default: false\n },\n noWrap: {\n // Disable wrapping/looping when start/end is reached\n type: Boolean,\n default: false\n },\n noTouch: {\n // Sniffed by carousel-slide\n type: Boolean,\n default: false\n },\n noHoverPause: {\n // Disable pause on hover\n type: Boolean,\n default: false\n },\n imgWidth: {\n // Sniffed by carousel-slide\n type: [Number, String] // default: undefined\n\n },\n imgHeight: {\n // Sniffed by carousel-slide\n type: [Number, String] // default: undefined\n\n },\n background: {\n type: String // default: undefined\n\n },\n value: {\n type: Number,\n default: 0\n }\n },\n data: function data() {\n return {\n index: this.value || 0,\n isSliding: false,\n transitionEndEvent: null,\n slides: [],\n direction: null,\n isPaused: !(toInteger(this.interval, 0) > 0),\n // Touch event handling values\n touchStartX: 0,\n touchDeltaX: 0\n };\n },\n computed: {\n numSlides: function numSlides() {\n return this.slides.length;\n }\n },\n watch: {\n value: function value(newVal, oldVal) {\n if (newVal !== oldVal) {\n this.setSlide(toInteger(newVal, 0));\n }\n },\n interval: function interval(newVal, oldVal) {\n if (newVal === oldVal) {\n /* istanbul ignore next */\n return;\n }\n\n if (!newVal) {\n // Pausing slide show\n this.pause(false);\n } else {\n // Restarting or Changing interval\n this.pause(true);\n this.start(false);\n }\n },\n isPaused: function isPaused(newVal, oldVal) {\n if (newVal !== oldVal) {\n this.$emit(newVal ? 'paused' : 'unpaused');\n }\n },\n index: function index(to, from) {\n if (to === from || this.isSliding) {\n /* istanbul ignore next */\n return;\n }\n\n this.doSlide(to, from);\n }\n },\n created: function created() {\n // Create private non-reactive props\n this.$_interval = null;\n this.$_animationTimeout = null;\n this.$_touchTimeout = null;\n this.$_observer = null; // Set initial paused state\n\n this.isPaused = !(toInteger(this.interval, 0) > 0);\n },\n mounted: function mounted() {\n // Cache current browser transitionend event name\n this.transitionEndEvent = getTransitionEndEvent(this.$el) || null; // Get all slides\n\n this.updateSlides(); // Observe child changes so we can update slide list\n\n this.setObserver(true);\n },\n beforeDestroy: function beforeDestroy() {\n this.clearInterval();\n this.clearAnimationTimeout();\n this.clearTouchTimeout();\n this.setObserver(false);\n },\n methods: {\n clearInterval: function (_clearInterval) {\n function clearInterval() {\n return _clearInterval.apply(this, arguments);\n }\n\n clearInterval.toString = function () {\n return _clearInterval.toString();\n };\n\n return clearInterval;\n }(function () {\n clearInterval(this.$_interval);\n this.$_interval = null;\n }),\n clearAnimationTimeout: function clearAnimationTimeout() {\n clearTimeout(this.$_animationTimeout);\n this.$_animationTimeout = null;\n },\n clearTouchTimeout: function clearTouchTimeout() {\n clearTimeout(this.$_touchTimeout);\n this.$_touchTimeout = null;\n },\n setObserver: function setObserver() {\n var on = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n this.$_observer && this.$_observer.disconnect();\n this.$_observer = null;\n\n if (on) {\n this.$_observer = observeDom(this.$refs.inner, this.updateSlides.bind(this), {\n subtree: false,\n childList: true,\n attributes: true,\n attributeFilter: ['id']\n });\n }\n },\n // Set slide\n setSlide: function setSlide(slide) {\n var _this = this;\n\n var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n // Don't animate when page is not visible\n\n /* istanbul ignore if: difficult to test */\n if (isBrowser && document.visibilityState && document.hidden) {\n return;\n }\n\n var noWrap = this.noWrap;\n var numSlides = this.numSlides; // Make sure we have an integer (you never know!)\n\n slide = mathFloor(slide); // Don't do anything if nothing to slide to\n\n if (numSlides === 0) {\n return;\n } // Don't change slide while transitioning, wait until transition is done\n\n\n if (this.isSliding) {\n // Schedule slide after sliding complete\n this.$once('sliding-end', function () {\n return _this.setSlide(slide, direction);\n });\n return;\n }\n\n this.direction = direction; // Set new slide index\n // Wrap around if necessary (if no-wrap not enabled)\n\n this.index = slide >= numSlides ? noWrap ? numSlides - 1 : 0 : slide < 0 ? noWrap ? 0 : numSlides - 1 : slide; // Ensure the v-model is synched up if no-wrap is enabled\n // and user tried to slide pass either ends\n\n if (noWrap && this.index !== slide && this.index !== this.value) {\n this.$emit('input', this.index);\n }\n },\n // Previous slide\n prev: function prev() {\n this.setSlide(this.index - 1, 'prev');\n },\n // Next slide\n next: function next() {\n this.setSlide(this.index + 1, 'next');\n },\n // Pause auto rotation\n pause: function pause(evt) {\n if (!evt) {\n this.isPaused = true;\n }\n\n this.clearInterval();\n },\n // Start auto rotate slides\n start: function start(evt) {\n if (!evt) {\n this.isPaused = false;\n }\n /* istanbul ignore next: most likely will never happen, but just in case */\n\n\n this.clearInterval(); // Don't start if no interval, or less than 2 slides\n\n if (this.interval && this.numSlides > 1) {\n this.$_interval = setInterval(this.next, mathMax(1000, this.interval));\n }\n },\n // Restart auto rotate slides when focus/hover leaves the carousel\n\n /* istanbul ignore next */\n restart: function restart()\n /* istanbul ignore next: difficult to test */\n {\n if (!this.$el.contains(getActiveElement())) {\n this.start();\n }\n },\n doSlide: function doSlide(to, from) {\n var _this2 = this;\n\n var isCycling = Boolean(this.interval); // Determine sliding direction\n\n var direction = this.calcDirection(this.direction, from, to);\n var overlayClass = direction.overlayClass;\n var dirClass = direction.dirClass; // Determine current and next slides\n\n var currentSlide = this.slides[from];\n var nextSlide = this.slides[to]; // Don't do anything if there aren't any slides to slide to\n\n if (!currentSlide || !nextSlide) {\n /* istanbul ignore next */\n return;\n } // Start animating\n\n\n this.isSliding = true;\n\n if (isCycling) {\n this.pause(false);\n }\n\n this.$emit('sliding-start', to); // Update v-model\n\n this.$emit('input', this.index);\n\n if (this.noAnimation) {\n addClass(nextSlide, 'active');\n removeClass(currentSlide, 'active');\n this.isSliding = false; // Notify ourselves that we're done sliding (slid)\n\n this.$nextTick(function () {\n return _this2.$emit('sliding-end', to);\n });\n } else {\n addClass(nextSlide, overlayClass); // Trigger a reflow of next slide\n\n reflow(nextSlide);\n addClass(currentSlide, dirClass);\n addClass(nextSlide, dirClass); // Transition End handler\n\n var called = false;\n /* istanbul ignore next: difficult to test */\n\n var onceTransEnd = function onceTransEnd() {\n if (called) {\n return;\n }\n\n called = true;\n /* istanbul ignore if: transition events cant be tested in JSDOM */\n\n if (_this2.transitionEndEvent) {\n var events = _this2.transitionEndEvent.split(/\\s+/);\n\n events.forEach(function (evt) {\n return eventOff(nextSlide, evt, onceTransEnd, EVENT_OPTIONS_NO_CAPTURE);\n });\n }\n\n _this2.clearAnimationTimeout();\n\n removeClass(nextSlide, dirClass);\n removeClass(nextSlide, overlayClass);\n addClass(nextSlide, 'active');\n removeClass(currentSlide, 'active');\n removeClass(currentSlide, dirClass);\n removeClass(currentSlide, overlayClass);\n setAttr(currentSlide, 'aria-current', 'false');\n setAttr(nextSlide, 'aria-current', 'true');\n setAttr(currentSlide, 'aria-hidden', 'true');\n setAttr(nextSlide, 'aria-hidden', 'false');\n _this2.isSliding = false;\n _this2.direction = null; // Notify ourselves that we're done sliding (slid)\n\n _this2.$nextTick(function () {\n return _this2.$emit('sliding-end', to);\n });\n }; // Set up transitionend handler\n\n /* istanbul ignore if: transition events cant be tested in JSDOM */\n\n\n if (this.transitionEndEvent) {\n var events = this.transitionEndEvent.split(/\\s+/);\n events.forEach(function (event) {\n return eventOn(nextSlide, event, onceTransEnd, EVENT_OPTIONS_NO_CAPTURE);\n });\n } // Fallback to setTimeout()\n\n\n this.$_animationTimeout = setTimeout(onceTransEnd, TRANS_DURATION);\n }\n\n if (isCycling) {\n this.start(false);\n }\n },\n // Update slide list\n updateSlides: function updateSlides() {\n this.pause(true); // Get all slides as DOM elements\n\n this.slides = selectAll('.carousel-item', this.$refs.inner);\n var numSlides = this.slides.length; // Keep slide number in range\n\n var index = mathMax(0, mathMin(mathFloor(this.index), numSlides - 1));\n this.slides.forEach(function (slide, idx) {\n var n = idx + 1;\n\n if (idx === index) {\n addClass(slide, 'active');\n setAttr(slide, 'aria-current', 'true');\n } else {\n removeClass(slide, 'active');\n setAttr(slide, 'aria-current', 'false');\n }\n\n setAttr(slide, 'aria-posinset', String(n));\n setAttr(slide, 'aria-setsize', String(numSlides));\n }); // Set slide as active\n\n this.setSlide(index);\n this.start(this.isPaused);\n },\n calcDirection: function calcDirection() {\n var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var curIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var nextIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n\n if (!direction) {\n return nextIndex > curIndex ? DIRECTION.next : DIRECTION.prev;\n }\n\n return DIRECTION[direction];\n },\n handleClick: function handleClick(evt, fn) {\n var keyCode = evt.keyCode;\n\n if (evt.type === 'click' || keyCode === CODE_SPACE || keyCode === CODE_ENTER) {\n stopEvent(evt);\n fn();\n }\n },\n\n /* istanbul ignore next */\n handleSwipe: function handleSwipe()\n /* istanbul ignore next: JSDOM doesn't support touch events */\n {\n var absDeltaX = mathAbs(this.touchDeltaX);\n\n if (absDeltaX <= SWIPE_THRESHOLD) {\n return;\n }\n\n var direction = absDeltaX / this.touchDeltaX; // Reset touch delta X\n // https://github.com/twbs/bootstrap/pull/28558\n\n this.touchDeltaX = 0;\n\n if (direction > 0) {\n // Swipe left\n this.prev();\n } else if (direction < 0) {\n // Swipe right\n this.next();\n }\n },\n\n /* istanbul ignore next */\n touchStart: function touchStart(evt)\n /* istanbul ignore next: JSDOM doesn't support touch events */\n {\n if (hasPointerEventSupport && PointerType[evt.pointerType.toUpperCase()]) {\n this.touchStartX = evt.clientX;\n } else if (!hasPointerEventSupport) {\n this.touchStartX = evt.touches[0].clientX;\n }\n },\n\n /* istanbul ignore next */\n touchMove: function touchMove(evt)\n /* istanbul ignore next: JSDOM doesn't support touch events */\n {\n // Ensure swiping with one touch and not pinching\n if (evt.touches && evt.touches.length > 1) {\n this.touchDeltaX = 0;\n } else {\n this.touchDeltaX = evt.touches[0].clientX - this.touchStartX;\n }\n },\n\n /* istanbul ignore next */\n touchEnd: function touchEnd(evt)\n /* istanbul ignore next: JSDOM doesn't support touch events */\n {\n if (hasPointerEventSupport && PointerType[evt.pointerType.toUpperCase()]) {\n this.touchDeltaX = evt.clientX - this.touchStartX;\n }\n\n this.handleSwipe(); // If it's a touch-enabled device, mouseenter/leave are fired as\n // part of the mouse compatibility events on first tap - the carousel\n // would stop cycling until user tapped out of it;\n // here, we listen for touchend, explicitly pause the carousel\n // (as if it's the second time we tap on it, mouseenter compat event\n // is NOT fired) and after a timeout (to allow for mouse compatibility\n // events to fire) we explicitly restart cycling\n\n this.pause(false);\n this.clearTouchTimeout();\n this.$_touchTimeout = setTimeout(this.start, TOUCH_EVENT_COMPAT_WAIT + mathMax(1000, this.interval));\n }\n },\n render: function render(h) {\n var _this3 = this;\n\n // Wrapper for slides\n var inner = h('div', {\n ref: 'inner',\n class: ['carousel-inner'],\n attrs: {\n id: this.safeId('__BV_inner_'),\n role: 'list'\n }\n }, [this.normalizeSlot()]); // Prev and next controls\n\n var controls = h();\n\n if (this.controls) {\n var prevHandler = function prevHandler(evt) {\n /* istanbul ignore next */\n if (!_this3.isSliding) {\n _this3.handleClick(evt, _this3.prev);\n } else {\n stopEvent(evt, {\n propagation: false\n });\n }\n };\n\n var nextHandler = function nextHandler(evt) {\n /* istanbul ignore next */\n if (!_this3.isSliding) {\n _this3.handleClick(evt, _this3.next);\n } else {\n stopEvent(evt, {\n propagation: false\n });\n }\n };\n\n controls = [h('a', {\n class: ['carousel-control-prev'],\n attrs: {\n href: '#',\n role: 'button',\n 'aria-controls': this.safeId('__BV_inner_'),\n 'aria-disabled': this.isSliding ? 'true' : null\n },\n on: {\n click: prevHandler,\n keydown: prevHandler\n }\n }, [h('span', {\n class: ['carousel-control-prev-icon'],\n attrs: {\n 'aria-hidden': 'true'\n }\n }), h('span', {\n class: ['sr-only']\n }, [this.labelPrev])]), h('a', {\n class: ['carousel-control-next'],\n attrs: {\n href: '#',\n role: 'button',\n 'aria-controls': this.safeId('__BV_inner_'),\n 'aria-disabled': this.isSliding ? 'true' : null\n },\n on: {\n click: nextHandler,\n keydown: nextHandler\n }\n }, [h('span', {\n class: ['carousel-control-next-icon'],\n attrs: {\n 'aria-hidden': 'true'\n }\n }), h('span', {\n class: ['sr-only']\n }, [this.labelNext])])];\n } // Indicators\n\n\n var indicators = h('ol', {\n class: ['carousel-indicators'],\n directives: [{\n name: 'show',\n rawName: 'v-show',\n value: this.indicators,\n expression: 'indicators'\n }],\n attrs: {\n id: this.safeId('__BV_indicators_'),\n 'aria-hidden': this.indicators ? 'false' : 'true',\n 'aria-label': this.labelIndicators,\n 'aria-owns': this.safeId('__BV_inner_')\n }\n }, this.slides.map(function (slide, n) {\n return h('li', {\n key: \"slide_\".concat(n),\n class: {\n active: n === _this3.index\n },\n attrs: {\n role: 'button',\n id: _this3.safeId(\"__BV_indicator_\".concat(n + 1, \"_\")),\n tabindex: _this3.indicators ? '0' : '-1',\n 'aria-current': n === _this3.index ? 'true' : 'false',\n 'aria-label': \"\".concat(_this3.labelGotoSlide, \" \").concat(n + 1),\n 'aria-describedby': _this3.slides[n].id || null,\n 'aria-controls': _this3.safeId('__BV_inner_')\n },\n on: {\n click: function click(evt) {\n _this3.handleClick(evt, function () {\n _this3.setSlide(n);\n });\n },\n keydown: function keydown(evt) {\n _this3.handleClick(evt, function () {\n _this3.setSlide(n);\n });\n }\n }\n });\n }));\n var on = {\n mouseenter: this.noHoverPause ? noop : this.pause,\n mouseleave: this.noHoverPause ? noop : this.restart,\n focusin: this.pause,\n focusout: this.restart,\n keydown: function keydown(evt) {\n if (/input|textarea/i.test(evt.target.tagName)) {\n /* istanbul ignore next */\n return;\n }\n\n var keyCode = evt.keyCode;\n\n if (keyCode === CODE_LEFT || keyCode === CODE_RIGHT) {\n stopEvent(evt);\n\n _this3[keyCode === CODE_LEFT ? 'prev' : 'next']();\n }\n }\n }; // Touch support event handlers for environment\n\n if (!this.noTouch && hasTouchSupport) {\n // Attach appropriate listeners (prepend event name with '&' for passive mode)\n\n /* istanbul ignore next: JSDOM doesn't support touch events */\n if (hasPointerEventSupport) {\n on['&pointerdown'] = this.touchStart;\n on['&pointerup'] = this.touchEnd;\n } else {\n on['&touchstart'] = this.touchStart;\n on['&touchmove'] = this.touchMove;\n on['&touchend'] = this.touchEnd;\n }\n } // Return the carousel\n\n\n return h('div', {\n staticClass: 'carousel',\n class: {\n slide: !this.noAnimation,\n 'carousel-fade': !this.noAnimation && this.fade,\n 'pointer-event': !this.noTouch && hasTouchSupport && hasPointerEventSupport\n },\n style: {\n background: this.background\n },\n attrs: {\n role: 'region',\n id: this.safeId(),\n 'aria-busy': this.isSliding ? 'true' : 'false'\n },\n on: on\n }, [inner, controls, indicators]);\n }\n});","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_CAROUSEL_SLIDE } from '../../constants/components';\nimport Vue from '../../utils/vue';\nimport { hasTouchSupport } from '../../utils/env';\nimport { stopEvent } from '../../utils/events';\nimport { htmlOrText } from '../../utils/html';\nimport { pluckProps, unprefixPropName } from '../../utils/props';\nimport idMixin from '../../mixins/id';\nimport normalizeSlotMixin from '../../mixins/normalize-slot';\nimport { BImg } from '../image/img'; // --- Props ---\n\nvar imgProps = {\n imgSrc: {\n type: String // default: undefined\n\n },\n imgAlt: {\n type: String // default: undefined\n\n },\n imgWidth: {\n type: [Number, String] // default: undefined\n\n },\n imgHeight: {\n type: [Number, String] // default: undefined\n\n },\n imgBlank: {\n type: Boolean,\n default: false\n },\n imgBlankColor: {\n type: String,\n default: 'transparent'\n }\n};\nexport var props = _objectSpread(_objectSpread({}, imgProps), {}, {\n contentVisibleUp: {\n type: String\n },\n contentTag: {\n type: String,\n default: 'div'\n },\n caption: {\n type: String\n },\n captionHtml: {\n type: String\n },\n captionTag: {\n type: String,\n default: 'h3'\n },\n text: {\n type: String\n },\n textHtml: {\n type: String\n },\n textTag: {\n type: String,\n default: 'p'\n },\n background: {\n type: String\n }\n}); // --- Main component ---\n// @vue/component\n\nexport var BCarouselSlide = /*#__PURE__*/Vue.extend({\n name: NAME_CAROUSEL_SLIDE,\n mixins: [idMixin, normalizeSlotMixin],\n inject: {\n bvCarousel: {\n default: function _default() {\n return {\n // Explicitly disable touch if not a child of carousel\n noTouch: true\n };\n }\n }\n },\n props: props,\n computed: {\n contentClasses: function contentClasses() {\n return [this.contentVisibleUp ? 'd-none' : '', this.contentVisibleUp ? \"d-\".concat(this.contentVisibleUp, \"-block\") : ''];\n },\n computedWidth: function computedWidth() {\n // Use local width, or try parent width\n return this.imgWidth || this.bvCarousel.imgWidth || null;\n },\n computedHeight: function computedHeight() {\n // Use local height, or try parent height\n return this.imgHeight || this.bvCarousel.imgHeight || null;\n }\n },\n render: function render(h) {\n var $img = this.normalizeSlot('img');\n\n if (!$img && (this.imgSrc || this.imgBlank)) {\n var on = {}; // Touch support event handler\n\n /* istanbul ignore if: difficult to test in JSDOM */\n\n if (!this.bvCarousel.noTouch && hasTouchSupport) {\n on.dragstart = function (evt) {\n return stopEvent(evt, {\n propagation: false\n });\n };\n }\n\n $img = h(BImg, {\n props: _objectSpread(_objectSpread({}, pluckProps(imgProps, this.$props, unprefixPropName.bind(null, 'img'))), {}, {\n width: this.computedWidth,\n height: this.computedHeight,\n fluidGrow: true,\n block: true\n }),\n on: on\n });\n }\n\n var $contentChildren = [// Caption\n this.caption || this.captionHtml ? h(this.captionTag, {\n domProps: htmlOrText(this.captionHtml, this.caption)\n }) : false, // Text\n this.text || this.textHtml ? h(this.textTag, {\n domProps: htmlOrText(this.textHtml, this.text)\n }) : false, // Children\n this.normalizeSlot() || false];\n var $content = h();\n\n if ($contentChildren.some(Boolean)) {\n $content = h(this.contentTag, {\n staticClass: 'carousel-caption',\n class: this.contentClasses\n }, $contentChildren.map(function ($child) {\n return $child || h();\n }));\n }\n\n return h('div', {\n staticClass: 'carousel-item',\n style: {\n background: this.background || this.bvCarousel.background || null\n },\n attrs: {\n id: this.safeId(),\n role: 'listitem'\n }\n }, [$img, $content]);\n }\n});","import { BCarousel } from './carousel';\nimport { BCarouselSlide } from './carousel-slide';\nimport { pluginFactory } from '../../utils/plugins';\nvar CarouselPlugin =\n/*#__PURE*/\npluginFactory({\n components: {\n BCarousel: BCarousel,\n BCarouselSlide: BCarouselSlide\n }\n});\nexport { CarouselPlugin, BCarousel, BCarouselSlide };","// Generic collapse transion helper component\n//\n// Note:\n// Applies the classes `collapse`, `show` and `collapsing`\n// during the enter/leave transition phases only\n// Although it appears that Vue may be leaving the classes\n// in-place after the transition completes\nimport { NAME_COLLAPSE_HELPER } from '../constants/components';\nimport Vue, { mergeData } from './vue';\nimport { getBCR, reflow, removeStyle, requestAF, setStyle } from './dom'; // Transition event handler helpers\n\nvar onEnter = function onEnter(el) {\n setStyle(el, 'height', 0); // In a `requestAF()` for `appear` to work\n\n requestAF(function () {\n reflow(el);\n setStyle(el, 'height', \"\".concat(el.scrollHeight, \"px\"));\n });\n};\n\nvar onAfterEnter = function onAfterEnter(el) {\n removeStyle(el, 'height');\n};\n\nvar onLeave = function onLeave(el) {\n setStyle(el, 'height', 'auto');\n setStyle(el, 'display', 'block');\n setStyle(el, 'height', \"\".concat(getBCR(el).height, \"px\"));\n reflow(el);\n setStyle(el, 'height', 0);\n};\n\nvar onAfterLeave = function onAfterLeave(el) {\n removeStyle(el, 'height');\n}; // Default transition props\n// `appear` will use the enter classes\n\n\nvar TRANSITION_PROPS = {\n css: true,\n enterClass: '',\n enterActiveClass: 'collapsing',\n enterToClass: 'collapse show',\n leaveClass: 'collapse show',\n leaveActiveClass: 'collapsing',\n leaveToClass: 'collapse'\n}; // Default transition handlers\n// `appear` will use the enter handlers\n\nvar TRANSITION_HANDLERS = {\n enter: onEnter,\n afterEnter: onAfterEnter,\n leave: onLeave,\n afterLeave: onAfterLeave\n}; // @vue/component\n\nexport var BVCollapse = /*#__PURE__*/Vue.extend({\n name: NAME_COLLAPSE_HELPER,\n functional: true,\n props: {\n appear: {\n // If `true` (and `visible` is `true` on mount), animate initially visible\n type: Boolean,\n default: false\n }\n },\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n return h('transition', // We merge in the `appear` prop last\n mergeData(data, {\n props: TRANSITION_PROPS,\n on: TRANSITION_HANDLERS\n }, {\n props: props\n }), // Note: `` supports a single root element only\n children);\n }\n});","// @vue/component\nexport default {\n methods: {\n /**\n * Safely register event listeners on the root Vue node\n * While Vue automatically removes listeners for individual components,\n * when a component registers a listener on root and is destroyed,\n * this orphans a callback because the node is gone,\n * but the root does not clear the callback\n *\n * When registering a `$root` listener, it also registers a listener on\n * the component's `beforeDestroy()` hook to automatically remove the\n * event listener from the `$root` instance\n *\n * @param {string} event\n * @param {function} callback\n */\n listenOnRoot: function listenOnRoot(event, callback) {\n var _this = this;\n\n this.$root.$on(event, callback);\n this.$on('hook:beforeDestroy', function () {\n _this.$root.$off(event, callback);\n });\n },\n\n /**\n * Safely register a `$once()` event listener on the root Vue node\n * While Vue automatically removes listeners for individual components,\n * when a component registers a listener on root and is destroyed,\n * this orphans a callback because the node is gone,\n * but the root does not clear the callback\n *\n * When registering a $root listener, it also registers a listener on\n * the component's `beforeDestroy` hook to automatically remove the\n * event listener from the $root instance.\n *\n * @param {string} event\n * @param {function} callback\n */\n listenOnRootOnce: function listenOnRootOnce(event, callback) {\n var _this2 = this;\n\n this.$root.$once(event, callback);\n this.$on('hook:beforeDestroy', function () {\n _this2.$root.$off(event, callback);\n });\n },\n\n /**\n * Convenience method for calling `vm.$emit()` on `vm.$root`\n *\n * @param {string} event\n * @param {*} args\n */\n emitOnRoot: function emitOnRoot(event) {\n var _this$$root;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n (_this$$root = this.$root).$emit.apply(_this$$root, [event].concat(args));\n }\n }\n};","import { EVENT_OPTIONS_PASSIVE } from '../../constants/events';\nimport { CODE_ENTER, CODE_SPACE } from '../../constants/key-codes';\nimport { RX_HASH, RX_HASH_ID, RX_SPACE_SPLIT } from '../../constants/regex';\nimport looseEqual from '../../utils/loose-equal';\nimport { arrayIncludes, concat } from '../../utils/array';\nimport { addClass, getAttr, hasAttr, isDisabled, isTag, removeAttr, removeClass, removeStyle, requestAF, setAttr, setStyle } from '../../utils/dom';\nimport { isBrowser } from '../../utils/env';\nimport { eventOn, eventOff } from '../../utils/events';\nimport { isString } from '../../utils/inspect';\nimport { keys } from '../../utils/object'; // --- Constants ---\n// Classes to apply to trigger element\n\nvar CLASS_BV_TOGGLE_COLLAPSED = 'collapsed';\nvar CLASS_BV_TOGGLE_NOT_COLLAPSED = 'not-collapsed'; // Property key for handler storage\n\nvar BV_BASE = '__BV_toggle'; // Root event listener property (Function)\n\nvar BV_TOGGLE_ROOT_HANDLER = \"\".concat(BV_BASE, \"_HANDLER__\"); // Trigger element click handler property (Function)\n\nvar BV_TOGGLE_CLICK_HANDLER = \"\".concat(BV_BASE, \"_CLICK__\"); // Target visibility state property (Boolean)\n\nvar BV_TOGGLE_STATE = \"\".concat(BV_BASE, \"_STATE__\"); // Target ID list property (Array)\n\nvar BV_TOGGLE_TARGETS = \"\".concat(BV_BASE, \"_TARGETS__\"); // Commonly used strings\n\nvar STRING_FALSE = 'false';\nvar STRING_TRUE = 'true'; // Commonly used attribute names\n\nvar ATTR_ARIA_CONTROLS = 'aria-controls';\nvar ATTR_ARIA_EXPANDED = 'aria-expanded';\nvar ATTR_ROLE = 'role';\nvar ATTR_TABINDEX = 'tabindex'; // Commonly used style properties\n\nvar STYLE_OVERFLOW_ANCHOR = 'overflow-anchor'; // Emitted control event for collapse (emitted to collapse)\n\nexport var EVENT_TOGGLE = 'bv::toggle::collapse'; // Listen to event for toggle state update (emitted by collapse)\n\nexport var EVENT_STATE = 'bv::collapse::state'; // Private event emitted on `$root` to ensure the toggle state is always synced\n// Gets emitted even if the state of b-collapse has not changed\n// This event is NOT to be documented as people should not be using it\n\nexport var EVENT_STATE_SYNC = 'bv::collapse::sync::state'; // Private event we send to collapse to request state update sync event\n\nexport var EVENT_STATE_REQUEST = 'bv::request::collapse::state';\nvar KEYDOWN_KEY_CODES = [CODE_ENTER, CODE_SPACE]; // --- Helper methods ---\n\nvar isNonStandardTag = function isNonStandardTag(el) {\n return !arrayIncludes(['button', 'a'], el.tagName.toLowerCase());\n};\n\nvar getTargets = function getTargets(_ref, el) {\n var modifiers = _ref.modifiers,\n arg = _ref.arg,\n value = _ref.value;\n // Any modifiers are considered target IDs\n var targets = keys(modifiers || {}); // If value is a string, split out individual targets (if space delimited)\n\n value = isString(value) ? value.split(RX_SPACE_SPLIT) : value; // Support target ID as link href (`href=\"#id\"`)\n\n if (isTag(el.tagName, 'a')) {\n var href = getAttr(el, 'href') || '';\n\n if (RX_HASH_ID.test(href)) {\n targets.push(href.replace(RX_HASH, ''));\n }\n } // Add ID from `arg` (if provided), and support value\n // as a single string ID or an array of string IDs\n // If `value` is not an array or string, then it gets filtered out\n\n\n concat(arg, value).forEach(function (t) {\n return isString(t) && targets.push(t);\n }); // Return only unique and truthy target IDs\n\n return targets.filter(function (t, index, arr) {\n return t && arr.indexOf(t) === index;\n });\n};\n\nvar removeClickListener = function removeClickListener(el) {\n var handler = el[BV_TOGGLE_CLICK_HANDLER];\n\n if (handler) {\n eventOff(el, 'click', handler, EVENT_OPTIONS_PASSIVE);\n eventOff(el, 'keydown', handler, EVENT_OPTIONS_PASSIVE);\n }\n\n el[BV_TOGGLE_CLICK_HANDLER] = null;\n};\n\nvar addClickListener = function addClickListener(el, vnode) {\n removeClickListener(el);\n\n if (vnode.context) {\n var handler = function handler(evt) {\n if (!(evt.type === 'keydown' && !arrayIncludes(KEYDOWN_KEY_CODES, evt.keyCode)) && !isDisabled(el)) {\n var targets = el[BV_TOGGLE_TARGETS] || [];\n targets.forEach(function (target) {\n vnode.context.$root.$emit(EVENT_TOGGLE, target);\n });\n }\n };\n\n el[BV_TOGGLE_CLICK_HANDLER] = handler;\n eventOn(el, 'click', handler, EVENT_OPTIONS_PASSIVE);\n\n if (isNonStandardTag(el)) {\n eventOn(el, 'keydown', handler, EVENT_OPTIONS_PASSIVE);\n }\n }\n};\n\nvar removeRootListeners = function removeRootListeners(el, vnode) {\n if (el[BV_TOGGLE_ROOT_HANDLER] && vnode.context) {\n vnode.context.$root.$off([EVENT_STATE, EVENT_STATE_SYNC], el[BV_TOGGLE_ROOT_HANDLER]);\n }\n\n el[BV_TOGGLE_ROOT_HANDLER] = null;\n};\n\nvar addRootListeners = function addRootListeners(el, vnode) {\n removeRootListeners(el, vnode);\n\n if (vnode.context) {\n var handler = function handler(id, state) {\n // `state` will be `true` if target is expanded\n if (arrayIncludes(el[BV_TOGGLE_TARGETS] || [], id)) {\n // Set/Clear 'collapsed' visibility class state\n el[BV_TOGGLE_STATE] = state; // Set `aria-expanded` and class state on trigger element\n\n setToggleState(el, state);\n }\n };\n\n el[BV_TOGGLE_ROOT_HANDLER] = handler; // Listen for toggle state changes (public) and sync (private)\n\n vnode.context.$root.$on([EVENT_STATE, EVENT_STATE_SYNC], handler);\n }\n};\n\nvar setToggleState = function setToggleState(el, state) {\n // State refers to the visibility of the collapse/sidebar\n if (state) {\n removeClass(el, CLASS_BV_TOGGLE_COLLAPSED);\n addClass(el, CLASS_BV_TOGGLE_NOT_COLLAPSED);\n setAttr(el, ATTR_ARIA_EXPANDED, STRING_TRUE);\n } else {\n removeClass(el, CLASS_BV_TOGGLE_NOT_COLLAPSED);\n addClass(el, CLASS_BV_TOGGLE_COLLAPSED);\n setAttr(el, ATTR_ARIA_EXPANDED, STRING_FALSE);\n }\n}; // Reset and remove a property from the provided element\n\n\nvar resetProp = function resetProp(el, prop) {\n el[prop] = null;\n delete el[prop];\n}; // Handle directive updates\n\n\nvar handleUpdate = function handleUpdate(el, binding, vnode) {\n /* istanbul ignore next: should never happen */\n if (!isBrowser || !vnode.context) {\n return;\n } // If element is not a button or link, we add `role=\"button\"`\n // and `tabindex=\"0\"` for accessibility reasons\n\n\n if (isNonStandardTag(el)) {\n if (!hasAttr(el, ATTR_ROLE)) {\n setAttr(el, ATTR_ROLE, 'button');\n }\n\n if (!hasAttr(el, ATTR_TABINDEX)) {\n setAttr(el, ATTR_TABINDEX, '0');\n }\n } // Ensure the collapse class and `aria-*` attributes persist\n // after element is updated (either by parent re-rendering\n // or changes to this element or its contents)\n\n\n setToggleState(el, el[BV_TOGGLE_STATE]); // Parse list of target IDs\n\n var targets = getTargets(binding, el); // Ensure the `aria-controls` hasn't been overwritten\n // or removed when vnode updates\n // Also ensure to set `overflow-anchor` to `none` to prevent\n // the browser's scroll anchoring behavior\n\n /* istanbul ignore else */\n\n if (targets.length > 0) {\n setAttr(el, ATTR_ARIA_CONTROLS, targets.join(' '));\n setStyle(el, STYLE_OVERFLOW_ANCHOR, 'none');\n } else {\n removeAttr(el, ATTR_ARIA_CONTROLS);\n removeStyle(el, STYLE_OVERFLOW_ANCHOR);\n } // Add/Update our click listener(s)\n // Wrap in a `requestAF()` to allow any previous\n // click handling to occur first\n\n\n requestAF(function () {\n addClickListener(el, vnode);\n }); // If targets array has changed, update\n\n if (!looseEqual(targets, el[BV_TOGGLE_TARGETS])) {\n // Update targets array to element storage\n el[BV_TOGGLE_TARGETS] = targets; // Ensure `aria-controls` is up to date\n // Request a state update from targets so that we can\n // ensure expanded state is correct (in most cases)\n\n targets.forEach(function (target) {\n vnode.context.$root.$emit(EVENT_STATE_REQUEST, target);\n });\n }\n};\n/*\n * Export our directive\n */\n\n\nexport var VBToggle = {\n bind: function bind(el, binding, vnode) {\n // State is initially collapsed until we receive a state event\n el[BV_TOGGLE_STATE] = false; // Assume no targets initially\n\n el[BV_TOGGLE_TARGETS] = []; // Add our root listeners\n\n addRootListeners(el, vnode); // Initial update of trigger\n\n handleUpdate(el, binding, vnode);\n },\n componentUpdated: handleUpdate,\n updated: handleUpdate,\n unbind: function unbind(el, binding, vnode) {\n removeClickListener(el); // Remove our $root listener\n\n removeRootListeners(el, vnode); // Reset custom props\n\n resetProp(el, BV_TOGGLE_ROOT_HANDLER);\n resetProp(el, BV_TOGGLE_CLICK_HANDLER);\n resetProp(el, BV_TOGGLE_STATE);\n resetProp(el, BV_TOGGLE_TARGETS); // Reset classes/attrs/styles\n\n removeClass(el, CLASS_BV_TOGGLE_COLLAPSED);\n removeClass(el, CLASS_BV_TOGGLE_NOT_COLLAPSED);\n removeAttr(el, ATTR_ARIA_EXPANDED);\n removeAttr(el, ATTR_ARIA_CONTROLS);\n removeAttr(el, ATTR_ROLE);\n removeStyle(el, STYLE_OVERFLOW_ANCHOR);\n }\n};","import { NAME_COLLAPSE } from '../../constants/components';\nimport { EVENT_OPTIONS_NO_CAPTURE } from '../../constants/events';\nimport { SLOT_NAME_DEFAULT } from '../../constants/slot-names';\nimport Vue from '../../utils/vue';\nimport { BVCollapse } from '../../utils/bv-collapse';\nimport { addClass, hasClass, removeClass, closest, matches, getCS } from '../../utils/dom';\nimport { isBrowser } from '../../utils/env';\nimport { eventOnOff } from '../../utils/events';\nimport idMixin from '../../mixins/id';\nimport listenOnRootMixin from '../../mixins/listen-on-root';\nimport normalizeSlotMixin from '../../mixins/normalize-slot';\nimport { EVENT_TOGGLE, EVENT_STATE, EVENT_STATE_REQUEST, EVENT_STATE_SYNC } from '../../directives/toggle/toggle'; // --- Constants ---\n// Accordion event name we emit on `$root`\n\nvar EVENT_ACCORDION = 'bv::collapse::accordion'; // --- Main component ---\n// @vue/component\n\nexport var BCollapse = /*#__PURE__*/Vue.extend({\n name: NAME_COLLAPSE,\n mixins: [idMixin, listenOnRootMixin, normalizeSlotMixin],\n model: {\n prop: 'visible',\n event: 'input'\n },\n props: {\n isNav: {\n type: Boolean,\n default: false\n },\n accordion: {\n type: String // default: null\n\n },\n visible: {\n type: Boolean,\n default: false\n },\n tag: {\n type: String,\n default: 'div'\n },\n appear: {\n // If `true` (and `visible` is `true` on mount), animate initially visible\n type: Boolean,\n default: false\n }\n },\n data: function data() {\n return {\n show: this.visible,\n transitioning: false\n };\n },\n computed: {\n classObject: function classObject() {\n return {\n 'navbar-collapse': this.isNav,\n collapse: !this.transitioning,\n show: this.show && !this.transitioning\n };\n }\n },\n watch: {\n visible: function visible(newVal) {\n if (newVal !== this.show) {\n this.show = newVal;\n }\n },\n show: function show(newVal, oldVal) {\n if (newVal !== oldVal) {\n this.emitState();\n }\n }\n },\n created: function created() {\n this.show = this.visible;\n },\n mounted: function mounted() {\n var _this = this;\n\n this.show = this.visible; // Listen for toggle events to open/close us\n\n this.listenOnRoot(EVENT_TOGGLE, this.handleToggleEvt); // Listen to other collapses for accordion events\n\n this.listenOnRoot(EVENT_ACCORDION, this.handleAccordionEvt);\n\n if (this.isNav) {\n // Set up handlers\n this.setWindowEvents(true);\n this.handleResize();\n }\n\n this.$nextTick(function () {\n _this.emitState();\n }); // Listen for \"Sync state\" requests from `v-b-toggle`\n\n this.listenOnRoot(EVENT_STATE_REQUEST, function (id) {\n if (id === _this.safeId()) {\n _this.$nextTick(_this.emitSync);\n }\n });\n },\n updated: function updated() {\n // Emit a private event every time this component updates to ensure\n // the toggle button is in sync with the collapse's state\n // It is emitted regardless if the visible state changes\n this.emitSync();\n },\n\n /* istanbul ignore next */\n deactivated: function deactivated()\n /* istanbul ignore next */\n {\n if (this.isNav) {\n this.setWindowEvents(false);\n }\n },\n\n /* istanbul ignore next */\n activated: function activated()\n /* istanbul ignore next */\n {\n if (this.isNav) {\n this.setWindowEvents(true);\n }\n\n this.emitSync();\n },\n beforeDestroy: function beforeDestroy() {\n // Trigger state emit if needed\n this.show = false;\n\n if (this.isNav && isBrowser) {\n this.setWindowEvents(false);\n }\n },\n methods: {\n setWindowEvents: function setWindowEvents(on) {\n eventOnOff(on, window, 'resize', this.handleResize, EVENT_OPTIONS_NO_CAPTURE);\n eventOnOff(on, window, 'orientationchange', this.handleResize, EVENT_OPTIONS_NO_CAPTURE);\n },\n toggle: function toggle() {\n this.show = !this.show;\n },\n onEnter: function onEnter() {\n this.transitioning = true; // This should be moved out so we can add cancellable events\n\n this.$emit('show');\n },\n onAfterEnter: function onAfterEnter() {\n this.transitioning = false;\n this.$emit('shown');\n },\n onLeave: function onLeave() {\n this.transitioning = true; // This should be moved out so we can add cancellable events\n\n this.$emit('hide');\n },\n onAfterLeave: function onAfterLeave() {\n this.transitioning = false;\n this.$emit('hidden');\n },\n emitState: function emitState() {\n this.$emit('input', this.show); // Let `v-b-toggle` know the state of this collapse\n\n this.emitOnRoot(EVENT_STATE, this.safeId(), this.show);\n\n if (this.accordion && this.show) {\n // Tell the other collapses in this accordion to close\n this.emitOnRoot(EVENT_ACCORDION, this.safeId(), this.accordion);\n }\n },\n emitSync: function emitSync() {\n // Emit a private event every time this component updates to ensure\n // the toggle button is in sync with the collapse's state\n // It is emitted regardless if the visible state changes\n this.emitOnRoot(EVENT_STATE_SYNC, this.safeId(), this.show);\n },\n checkDisplayBlock: function checkDisplayBlock() {\n // Check to see if the collapse has `display: block !important` set\n // We can't set `display: none` directly on `this.$el`, as it would\n // trigger a new transition to start (or cancel a current one)\n var restore = hasClass(this.$el, 'show');\n removeClass(this.$el, 'show');\n var isBlock = getCS(this.$el).display === 'block';\n\n if (restore) {\n addClass(this.$el, 'show');\n }\n\n return isBlock;\n },\n clickHandler: function clickHandler(evt) {\n // If we are in a nav/navbar, close the collapse when non-disabled link clicked\n var el = evt.target;\n\n if (!this.isNav || !el || getCS(this.$el).display !== 'block') {\n /* istanbul ignore next: can't test getComputedStyle in JSDOM */\n return;\n }\n\n if (matches(el, '.nav-link,.dropdown-item') || closest('.nav-link,.dropdown-item', el)) {\n if (!this.checkDisplayBlock()) {\n // Only close the collapse if it is not forced to be `display: block !important`\n this.show = false;\n }\n }\n },\n handleToggleEvt: function handleToggleEvt(target) {\n if (target !== this.safeId()) {\n return;\n }\n\n this.toggle();\n },\n handleAccordionEvt: function handleAccordionEvt(openedId, accordion) {\n if (!this.accordion || accordion !== this.accordion) {\n return;\n }\n\n if (openedId === this.safeId()) {\n // Open this collapse if not shown\n if (!this.show) {\n this.toggle();\n }\n } else {\n // Close this collapse if shown\n if (this.show) {\n this.toggle();\n }\n }\n },\n handleResize: function handleResize() {\n // Handler for orientation/resize to set collapsed state in nav/navbar\n this.show = getCS(this.$el).display === 'block';\n }\n },\n render: function render(h) {\n var _this2 = this;\n\n var scope = {\n visible: this.show,\n close: function close() {\n return _this2.show = false;\n }\n };\n var content = h(this.tag, {\n class: this.classObject,\n directives: [{\n name: 'show',\n value: this.show\n }],\n attrs: {\n id: this.safeId()\n },\n on: {\n click: this.clickHandler\n }\n }, [this.normalizeSlot(SLOT_NAME_DEFAULT, scope)]);\n return h(BVCollapse, {\n props: {\n appear: this.appear\n },\n on: {\n enter: this.onEnter,\n afterEnter: this.onAfterEnter,\n leave: this.onLeave,\n afterLeave: this.onAfterLeave\n }\n }, [content]);\n }\n});","import { VBToggle } from './toggle';\nimport { pluginFactory } from '../../utils/plugins';\nvar VBTogglePlugin = /*#__PURE__*/pluginFactory({\n directives: {\n VBToggle: VBToggle\n }\n});\nexport { VBTogglePlugin, VBToggle };","import { BCollapse } from './collapse';\nimport { VBTogglePlugin } from '../../directives/toggle';\nimport { pluginFactory } from '../../utils/plugins';\nvar CollapsePlugin = /*#__PURE__*/pluginFactory({\n components: {\n BCollapse: BCollapse\n },\n plugins: {\n VBTogglePlugin: VBTogglePlugin\n }\n});\nexport { CollapsePlugin, BCollapse };","export var PLACEMENT_TOP_START = 'top-start';\nexport var PLACEMENT_TOP_END = 'top-end';\nexport var PLACEMENT_BOTTOM_START = 'bottom-start';\nexport var PLACEMENT_BOTTOM_END = 'bottom-end';\nexport var PLACEMENT_RIGHT_START = 'right-start';\nexport var PLACEMENT_RIGHT_END = 'right-end';\nexport var PLACEMENT_LEFT_START = 'left-start';\nexport var PLACEMENT_LEFT_END = 'left-end';","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { assign, defineProperty, defineProperties, readonlyDescriptor } from './object';\n\nvar BvEvent = /*#__PURE__*/function () {\n function BvEvent(type) {\n var eventInit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _classCallCheck(this, BvEvent);\n\n // Start by emulating native Event constructor\n if (!type) {\n /* istanbul ignore next */\n throw new TypeError(\"Failed to construct '\".concat(this.constructor.name, \"'. 1 argument required, \").concat(arguments.length, \" given.\"));\n } // Merge defaults first, the eventInit, and the type last\n // so it can't be overwritten\n\n\n assign(this, BvEvent.Defaults, this.constructor.Defaults, eventInit, {\n type: type\n }); // Freeze some props as readonly, but leave them enumerable\n\n defineProperties(this, {\n type: readonlyDescriptor(),\n cancelable: readonlyDescriptor(),\n nativeEvent: readonlyDescriptor(),\n target: readonlyDescriptor(),\n relatedTarget: readonlyDescriptor(),\n vueTarget: readonlyDescriptor(),\n componentId: readonlyDescriptor()\n }); // Create a private variable using closure scoping\n\n var defaultPrevented = false; // Recreate preventDefault method. One way setter\n\n this.preventDefault = function preventDefault() {\n if (this.cancelable) {\n defaultPrevented = true;\n }\n }; // Create `defaultPrevented` publicly accessible prop that\n // can only be altered by the preventDefault method\n\n\n defineProperty(this, 'defaultPrevented', {\n enumerable: true,\n get: function get() {\n return defaultPrevented;\n }\n });\n }\n\n _createClass(BvEvent, null, [{\n key: \"Defaults\",\n get: function get() {\n return {\n type: '',\n cancelable: true,\n nativeEvent: null,\n target: null,\n relatedTarget: null,\n vueTarget: null,\n componentId: null\n };\n }\n }]);\n\n return BvEvent;\n}(); // Named Exports\n\n\nexport { BvEvent };","import { EVENT_OPTIONS_NO_CAPTURE } from '../constants/events';\nimport { contains } from '../utils/dom';\nimport { eventOn, eventOff } from '../utils/events'; // @vue/component\n\nexport default {\n data: function data() {\n return {\n listenForClickOut: false\n };\n },\n watch: {\n listenForClickOut: function listenForClickOut(newValue, oldValue) {\n if (newValue !== oldValue) {\n eventOff(this.clickOutElement, this.clickOutEventName, this._clickOutHandler, EVENT_OPTIONS_NO_CAPTURE);\n\n if (newValue) {\n eventOn(this.clickOutElement, this.clickOutEventName, this._clickOutHandler, EVENT_OPTIONS_NO_CAPTURE);\n }\n }\n }\n },\n beforeCreate: function beforeCreate() {\n // Declare non-reactive properties\n this.clickOutElement = null;\n this.clickOutEventName = null;\n },\n mounted: function mounted() {\n if (!this.clickOutElement) {\n this.clickOutElement = document;\n }\n\n if (!this.clickOutEventName) {\n this.clickOutEventName = 'click';\n }\n\n if (this.listenForClickOut) {\n eventOn(this.clickOutElement, this.clickOutEventName, this._clickOutHandler, EVENT_OPTIONS_NO_CAPTURE);\n }\n },\n beforeDestroy: function beforeDestroy()\n /* istanbul ignore next */\n {\n eventOff(this.clickOutElement, this.clickOutEventName, this._clickOutHandler, EVENT_OPTIONS_NO_CAPTURE);\n },\n methods: {\n isClickOut: function isClickOut(evt) {\n return !contains(this.$el, evt.target);\n },\n _clickOutHandler: function _clickOutHandler(evt) {\n if (this.clickOutHandler && this.isClickOut(evt)) {\n this.clickOutHandler(evt);\n }\n }\n }\n};","import { EVENT_OPTIONS_NO_CAPTURE } from '../constants/events';\nimport { eventOn, eventOff } from '../utils/events'; // @vue/component\n\nexport default {\n data: function data() {\n return {\n listenForFocusIn: false\n };\n },\n watch: {\n listenForFocusIn: function listenForFocusIn(newValue, oldValue) {\n if (newValue !== oldValue) {\n eventOff(this.focusInElement, 'focusin', this._focusInHandler, EVENT_OPTIONS_NO_CAPTURE);\n\n if (newValue) {\n eventOn(this.focusInElement, 'focusin', this._focusInHandler, EVENT_OPTIONS_NO_CAPTURE);\n }\n }\n }\n },\n beforeCreate: function beforeCreate() {\n // Declare non-reactive properties\n this.focusInElement = null;\n },\n mounted: function mounted() {\n if (!this.focusInElement) {\n this.focusInElement = document;\n }\n\n if (this.listenForFocusIn) {\n eventOn(this.focusInElement, 'focusin', this._focusInHandler, EVENT_OPTIONS_NO_CAPTURE);\n }\n },\n beforeDestroy: function beforeDestroy()\n /* istanbul ignore next */\n {\n eventOff(this.focusInElement, 'focusin', this._focusInHandler, EVENT_OPTIONS_NO_CAPTURE);\n },\n methods: {\n _focusInHandler: function _focusInHandler(evt) {\n if (this.focusInHandler) {\n this.focusInHandler(evt);\n }\n }\n }\n};","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport Popper from 'popper.js';\nimport { NAME_DROPDOWN } from '../constants/components';\nimport { CODE_DOWN, CODE_ENTER, CODE_ESC, CODE_SPACE, CODE_UP } from '../constants/key-codes';\nimport { PLACEMENT_TOP_START, PLACEMENT_TOP_END, PLACEMENT_BOTTOM_START, PLACEMENT_BOTTOM_END, PLACEMENT_RIGHT_START, PLACEMENT_LEFT_START } from '../constants/popper';\nimport { BvEvent } from '../utils/bv-event.class';\nimport { attemptFocus, closest, contains, isVisible, requestAF, selectAll } from '../utils/dom';\nimport { stopEvent } from '../utils/events';\nimport { isNull } from '../utils/inspect';\nimport { mergeDeep } from '../utils/object';\nimport { HTMLElement } from '../utils/safe-types';\nimport { warn } from '../utils/warn';\nimport clickOutMixin from './click-out';\nimport focusInMixin from './focus-in';\nimport idMixin from './id'; // --- Constants ---\n// Root dropdown event names\n\nvar ROOT_EVENT_PREFIX = 'bv::dropdown::';\nvar ROOT_EVENT_SHOWN = \"\".concat(ROOT_EVENT_PREFIX, \"shown\");\nvar ROOT_EVENT_HIDDEN = \"\".concat(ROOT_EVENT_PREFIX, \"hidden\"); // CSS selectors\n\nvar SELECTOR_FORM_CHILD = '.dropdown form';\nvar SELECTOR_ITEM = ['.dropdown-item', '.b-dropdown-form'].map(function (selector) {\n return \"\".concat(selector, \":not(.disabled):not([disabled])\");\n}).join(', '); // --- Utility methods ---\n// Return an array of visible items\n\nvar filterVisibles = function filterVisibles(els) {\n return (els || []).filter(isVisible);\n}; // --- Props ---\n\n\nexport var commonProps = {\n dropup: {\n // place on top if possible\n type: Boolean,\n default: false\n },\n dropright: {\n // place right if possible\n type: Boolean,\n default: false\n },\n dropleft: {\n // place left if possible\n type: Boolean,\n default: false\n },\n right: {\n // Right align menu (default is left align)\n type: Boolean,\n default: false\n },\n offset: {\n // Number of pixels to offset menu, or a CSS unit value (i.e. `1px`, `1rem`, etc.)\n type: [Number, String],\n default: 0\n },\n noFlip: {\n // Disable auto-flipping of menu from bottom <=> top\n type: Boolean,\n default: false\n },\n popperOpts: {\n type: Object,\n default: function _default() {}\n },\n boundary: {\n // String: `scrollParent`, `window` or `viewport`\n // HTMLElement: HTML Element reference\n type: [String, HTMLElement],\n default: 'scrollParent'\n }\n}; // @vue/component\n\nexport default {\n mixins: [idMixin, clickOutMixin, focusInMixin],\n provide: function provide() {\n return {\n bvDropdown: this\n };\n },\n inject: {\n bvNavbar: {\n default: null\n }\n },\n props: _objectSpread(_objectSpread({}, commonProps), {}, {\n disabled: {\n type: Boolean,\n default: false\n }\n }),\n data: function data() {\n return {\n visible: false,\n visibleChangePrevented: false\n };\n },\n computed: {\n inNavbar: function inNavbar() {\n return !isNull(this.bvNavbar);\n },\n toggler: function toggler() {\n var toggle = this.$refs.toggle;\n return toggle ? toggle.$el || toggle : null;\n },\n directionClass: function directionClass() {\n if (this.dropup) {\n return 'dropup';\n } else if (this.dropright) {\n return 'dropright';\n } else if (this.dropleft) {\n return 'dropleft';\n }\n\n return '';\n },\n boundaryClass: function boundaryClass() {\n // Position `static` is needed to allow menu to \"breakout\" of the `scrollParent`\n // boundaries when boundary is anything other than `scrollParent`\n // See: https://github.com/twbs/bootstrap/issues/24251#issuecomment-341413786\n return this.boundary !== 'scrollParent' && !this.inNavbar ? 'position-static' : '';\n }\n },\n watch: {\n visible: function visible(newValue, oldValue) {\n if (this.visibleChangePrevented) {\n this.visibleChangePrevented = false;\n return;\n }\n\n if (newValue !== oldValue) {\n var evtName = newValue ? 'show' : 'hide';\n var bvEvt = new BvEvent(evtName, {\n cancelable: true,\n vueTarget: this,\n target: this.$refs.menu,\n relatedTarget: null,\n componentId: this.safeId ? this.safeId() : this.id || null\n });\n this.emitEvent(bvEvt);\n\n if (bvEvt.defaultPrevented) {\n // Reset value and exit if canceled\n this.visibleChangePrevented = true;\n this.visible = oldValue; // Just in case a child element triggered `this.hide(true)`\n\n this.$off('hidden', this.focusToggler);\n return;\n }\n\n if (evtName === 'show') {\n this.showMenu();\n } else {\n this.hideMenu();\n }\n }\n },\n disabled: function disabled(newValue, oldValue) {\n if (newValue !== oldValue && newValue && this.visible) {\n // Hide dropdown if disabled changes to true\n this.visible = false;\n }\n }\n },\n created: function created() {\n // Create private non-reactive props\n this.$_popper = null;\n },\n\n /* istanbul ignore next */\n deactivated: function deactivated()\n /* istanbul ignore next: not easy to test */\n {\n // In case we are inside a ``\n this.visible = false;\n this.whileOpenListen(false);\n this.destroyPopper();\n },\n beforeDestroy: function beforeDestroy() {\n this.visible = false;\n this.whileOpenListen(false);\n this.destroyPopper();\n },\n methods: {\n // Event emitter\n emitEvent: function emitEvent(bvEvt) {\n var type = bvEvt.type;\n this.$emit(type, bvEvt);\n this.$root.$emit(\"\".concat(ROOT_EVENT_PREFIX).concat(type), bvEvt);\n },\n showMenu: function showMenu() {\n var _this = this;\n\n if (this.disabled) {\n /* istanbul ignore next */\n return;\n } // Only instantiate Popper.js when dropdown is not in ``\n\n\n if (!this.inNavbar) {\n if (typeof Popper === 'undefined') {\n /* istanbul ignore next */\n warn('Popper.js not found. Falling back to CSS positioning', NAME_DROPDOWN);\n } else {\n // For dropup with alignment we use the parent element as popper container\n var el = this.dropup && this.right || this.split ? this.$el : this.$refs.toggle; // Make sure we have a reference to an element, not a component!\n\n el = el.$el || el; // Instantiate Popper.js\n\n this.createPopper(el);\n }\n } // Ensure other menus are closed\n\n\n this.$root.$emit(ROOT_EVENT_SHOWN, this); // Enable listeners\n\n this.whileOpenListen(true); // Wrap in `$nextTick()` to ensure menu is fully rendered/shown\n\n this.$nextTick(function () {\n // Focus on the menu container on show\n _this.focusMenu(); // Emit the shown event\n\n\n _this.$emit('shown');\n });\n },\n hideMenu: function hideMenu() {\n this.whileOpenListen(false);\n this.$root.$emit(ROOT_EVENT_HIDDEN, this);\n this.$emit('hidden');\n this.destroyPopper();\n },\n createPopper: function createPopper(element) {\n this.destroyPopper();\n this.$_popper = new Popper(element, this.$refs.menu, this.getPopperConfig());\n },\n // Ensure popper event listeners are removed cleanly\n destroyPopper: function destroyPopper() {\n this.$_popper && this.$_popper.destroy();\n this.$_popper = null;\n },\n // Instructs popper to re-computes the dropdown position\n // useful if the content changes size\n updatePopper: function updatePopper()\n /* istanbul ignore next: not easy to test */\n {\n try {\n this.$_popper.scheduleUpdate();\n } catch (_unused) {}\n },\n getPopperConfig: function getPopperConfig() {\n var placement = PLACEMENT_BOTTOM_START;\n\n if (this.dropup) {\n placement = this.right ? PLACEMENT_TOP_END : PLACEMENT_TOP_START;\n } else if (this.dropright) {\n placement = PLACEMENT_RIGHT_START;\n } else if (this.dropleft) {\n placement = PLACEMENT_LEFT_START;\n } else if (this.right) {\n placement = PLACEMENT_BOTTOM_END;\n }\n\n var popperConfig = {\n placement: placement,\n modifiers: {\n offset: {\n offset: this.offset || 0\n },\n flip: {\n enabled: !this.noFlip\n }\n }\n };\n var boundariesElement = this.boundary;\n\n if (boundariesElement) {\n popperConfig.modifiers.preventOverflow = {\n boundariesElement: boundariesElement\n };\n }\n\n return mergeDeep(popperConfig, this.popperOpts || {});\n },\n // Turn listeners on/off while open\n whileOpenListen: function whileOpenListen(isOpen) {\n // Hide the dropdown when clicked outside\n this.listenForClickOut = isOpen; // Hide the dropdown when it loses focus\n\n this.listenForFocusIn = isOpen; // Hide the dropdown when another dropdown is opened\n\n var method = isOpen ? '$on' : '$off';\n this.$root[method](ROOT_EVENT_SHOWN, this.rootCloseListener);\n },\n rootCloseListener: function rootCloseListener(vm) {\n if (vm !== this) {\n this.visible = false;\n }\n },\n show: function show() {\n var _this2 = this;\n\n // Public method to show dropdown\n if (this.disabled) {\n return;\n } // Wrap in a `requestAF()` to allow any previous\n // click handling to occur first\n\n\n requestAF(function () {\n _this2.visible = true;\n });\n },\n hide: function hide() {\n var refocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n // Public method to hide dropdown\n if (this.disabled) {\n /* istanbul ignore next */\n return;\n }\n\n this.visible = false;\n\n if (refocus) {\n // Child element is closing the dropdown on click\n this.$once('hidden', this.focusToggler);\n }\n },\n // Called only by a button that toggles the menu\n toggle: function toggle(evt) {\n evt = evt || {}; // Early exit when not a click event or ENTER, SPACE or DOWN were pressed\n\n var _evt = evt,\n type = _evt.type,\n keyCode = _evt.keyCode;\n\n if (type !== 'click' && !(type === 'keydown' && [CODE_ENTER, CODE_SPACE, CODE_DOWN].indexOf(keyCode) !== -1)) {\n /* istanbul ignore next */\n return;\n }\n /* istanbul ignore next */\n\n\n if (this.disabled) {\n this.visible = false;\n return;\n }\n\n this.$emit('toggle', evt);\n stopEvent(evt); // Toggle visibility\n\n if (this.visible) {\n this.hide(true);\n } else {\n this.show();\n }\n },\n // Mousedown handler for the toggle\n\n /* istanbul ignore next */\n onMousedown: function onMousedown(evt)\n /* istanbul ignore next */\n {\n // We prevent the 'mousedown' event for the toggle to stop the\n // 'focusin' event from being fired\n // The event would otherwise be picked up by the global 'focusin'\n // listener and there is no cross-browser solution to detect it\n // relates to the toggle click\n // The 'click' event will still be fired and we handle closing\n // other dropdowns there too\n // See https://github.com/bootstrap-vue/bootstrap-vue/issues/4328\n stopEvent(evt, {\n propagation: false\n });\n },\n // Called from dropdown menu context\n onKeydown: function onKeydown(evt) {\n var keyCode = evt.keyCode;\n\n if (keyCode === CODE_ESC) {\n // Close on ESC\n this.onEsc(evt);\n } else if (keyCode === CODE_DOWN) {\n // Down Arrow\n this.focusNext(evt, false);\n } else if (keyCode === CODE_UP) {\n // Up Arrow\n this.focusNext(evt, true);\n }\n },\n // If user presses ESC, close the menu\n onEsc: function onEsc(evt) {\n if (this.visible) {\n this.visible = false;\n stopEvent(evt); // Return focus to original trigger button\n\n this.$once('hidden', this.focusToggler);\n }\n },\n // Called only in split button mode, for the split button\n onSplitClick: function onSplitClick(evt) {\n /* istanbul ignore next */\n if (this.disabled) {\n this.visible = false;\n return;\n }\n\n this.$emit('click', evt);\n },\n // Shared hide handler between click-out and focus-in events\n hideHandler: function hideHandler(evt) {\n var target = evt.target;\n\n if (this.visible && !contains(this.$refs.menu, target) && !contains(this.toggler, target)) {\n this.hide();\n }\n },\n // Document click-out listener\n clickOutHandler: function clickOutHandler(evt) {\n this.hideHandler(evt);\n },\n // Document focus-in listener\n focusInHandler: function focusInHandler(evt) {\n this.hideHandler(evt);\n },\n // Keyboard nav\n focusNext: function focusNext(evt, up) {\n var _this3 = this;\n\n // Ignore key up/down on form elements\n var target = evt.target;\n\n if (!this.visible || evt && closest(SELECTOR_FORM_CHILD, target)) {\n /* istanbul ignore next: should never happen */\n return;\n }\n\n stopEvent(evt);\n this.$nextTick(function () {\n var items = _this3.getItems();\n\n if (items.length < 1) {\n /* istanbul ignore next: should never happen */\n return;\n }\n\n var index = items.indexOf(target);\n\n if (up && index > 0) {\n index--;\n } else if (!up && index < items.length - 1) {\n index++;\n }\n\n if (index < 0) {\n /* istanbul ignore next: should never happen */\n index = 0;\n }\n\n _this3.focusItem(index, items);\n });\n },\n focusItem: function focusItem(index, items) {\n var el = items.find(function (el, i) {\n return i === index;\n });\n attemptFocus(el);\n },\n getItems: function getItems() {\n // Get all items\n return filterVisibles(selectAll(SELECTOR_ITEM, this.$refs.menu));\n },\n focusMenu: function focusMenu() {\n attemptFocus(this.$refs.menu);\n },\n focusToggler: function focusToggler() {\n var _this4 = this;\n\n this.$nextTick(function () {\n attemptFocus(_this4.toggler);\n });\n }\n }\n};","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_DROPDOWN } from '../../constants/components';\nimport { SLOT_NAME_DEFAULT } from '../../constants/slot-names';\nimport Vue from '../../utils/vue';\nimport { arrayIncludes } from '../../utils/array';\nimport { getComponentConfig } from '../../utils/config';\nimport { htmlOrText } from '../../utils/html';\nimport { toString } from '../../utils/string';\nimport dropdownMixin from '../../mixins/dropdown';\nimport idMixin from '../../mixins/id';\nimport normalizeSlotMixin from '../../mixins/normalize-slot';\nimport { BButton } from '../button/button'; // --- Props ---\n\nexport var props = {\n text: {\n type: String // default: null\n\n },\n html: {\n type: String // default: null\n\n },\n variant: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_DROPDOWN, 'variant');\n }\n },\n size: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_DROPDOWN, 'size');\n }\n },\n block: {\n type: Boolean,\n default: false\n },\n menuClass: {\n type: [String, Array, Object] // default: null\n\n },\n toggleTag: {\n type: String,\n default: 'button'\n },\n toggleText: {\n // This really should be toggleLabel\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_DROPDOWN, 'toggleText');\n }\n },\n toggleClass: {\n type: [String, Array, Object] // default: null\n\n },\n noCaret: {\n type: Boolean,\n default: false\n },\n split: {\n type: Boolean,\n default: false\n },\n splitHref: {\n type: String // default: undefined\n\n },\n splitTo: {\n type: [String, Object] // default: undefined\n\n },\n splitVariant: {\n type: String,\n default: function _default() {\n return getComponentConfig(NAME_DROPDOWN, 'splitVariant');\n }\n },\n splitClass: {\n type: [String, Array, Object] // default: null\n\n },\n splitButtonType: {\n type: String,\n default: 'button',\n validator: function validator(value) {\n return arrayIncludes(['button', 'submit', 'reset'], value);\n }\n },\n lazy: {\n // If true, only render menu contents when open\n type: Boolean,\n default: false\n },\n role: {\n type: String,\n default: 'menu'\n }\n}; // --- Main component ---\n// @vue/component\n\nexport var BDropdown = /*#__PURE__*/Vue.extend({\n name: NAME_DROPDOWN,\n mixins: [idMixin, dropdownMixin, normalizeSlotMixin],\n props: props,\n computed: {\n dropdownClasses: function dropdownClasses() {\n var block = this.block,\n split = this.split;\n return [this.directionClass, this.boundaryClass, {\n show: this.visible,\n // The 'btn-group' class is required in `split` mode for button alignment\n // It needs also to be applied when `block` is disabled to allow multiple\n // dropdowns to be aligned one line\n 'btn-group': split || !block,\n // When `block` is enabled and we are in `split` mode the 'd-flex' class\n // needs to be applied to allow the buttons to stretch to full width\n 'd-flex': block && split\n }];\n },\n menuClasses: function menuClasses() {\n return [this.menuClass, {\n 'dropdown-menu-right': this.right,\n show: this.visible\n }];\n },\n toggleClasses: function toggleClasses() {\n var split = this.split;\n return [this.toggleClass, {\n 'dropdown-toggle-split': split,\n 'dropdown-toggle-no-caret': this.noCaret && !split\n }];\n }\n },\n render: function render(h) {\n var visible = this.visible,\n variant = this.variant,\n size = this.size,\n block = this.block,\n disabled = this.disabled,\n split = this.split,\n role = this.role,\n hide = this.hide,\n toggle = this.toggle;\n var commonProps = {\n variant: variant,\n size: size,\n block: block,\n disabled: disabled\n };\n var buttonContentSlotName = 'button-content';\n var $buttonChildren = this.normalizeSlot(buttonContentSlotName);\n var buttonContentDomProps = this.hasNormalizedSlot(buttonContentSlotName) ? {} : htmlOrText(this.html, this.text);\n var $split = h();\n\n if (split) {\n var splitTo = this.splitTo,\n splitHref = this.splitHref,\n splitButtonType = this.splitButtonType;\n\n var btnProps = _objectSpread(_objectSpread({}, commonProps), {}, {\n variant: this.splitVariant || variant\n }); // We add these as needed due to issues with\n // defined property with `undefined`/`null` values\n\n\n if (splitTo) {\n btnProps.to = splitTo;\n } else if (splitHref) {\n btnProps.href = splitHref;\n } else if (splitButtonType) {\n btnProps.type = splitButtonType;\n }\n\n $split = h(BButton, {\n class: this.splitClass,\n attrs: {\n id: this.safeId('_BV_button_')\n },\n props: btnProps,\n domProps: buttonContentDomProps,\n on: {\n click: this.onSplitClick\n },\n ref: 'button'\n }, $buttonChildren); // Overwrite button content for the toggle when in `split` mode\n\n $buttonChildren = [h('span', {\n class: ['sr-only']\n }, [this.toggleText])];\n buttonContentDomProps = {};\n }\n\n var $toggle = h(BButton, {\n staticClass: 'dropdown-toggle',\n class: this.toggleClasses,\n attrs: {\n id: this.safeId('_BV_toggle_'),\n 'aria-haspopup': 'true',\n 'aria-expanded': toString(visible)\n },\n props: _objectSpread(_objectSpread({}, commonProps), {}, {\n tag: this.toggleTag,\n block: block && !split\n }),\n domProps: buttonContentDomProps,\n on: {\n mousedown: this.onMousedown,\n click: toggle,\n keydown: toggle // Handle ENTER, SPACE and DOWN\n\n },\n ref: 'toggle'\n }, $buttonChildren);\n var $menu = h('ul', {\n staticClass: 'dropdown-menu',\n class: this.menuClasses,\n attrs: {\n role: role,\n tabindex: '-1',\n 'aria-labelledby': this.safeId(split ? '_BV_button_' : '_BV_toggle_')\n },\n on: {\n keydown: this.onKeydown // Handle UP, DOWN and ESC\n\n },\n ref: 'menu'\n }, [!this.lazy || visible ? this.normalizeSlot(SLOT_NAME_DEFAULT, {\n hide: hide\n }) : h()]);\n return h('div', {\n staticClass: 'dropdown b-dropdown',\n class: this.dropdownClasses,\n attrs: {\n id: this.safeId()\n }\n }, [$split, $toggle, $menu]);\n }\n});","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_DROPDOWN_ITEM } from '../../constants/components';\nimport Vue from '../../utils/vue';\nimport { requestAF } from '../../utils/dom';\nimport { omit } from '../../utils/object';\nimport attrsMixin from '../../mixins/attrs';\nimport normalizeSlotMixin from '../../mixins/normalize-slot';\nimport { BLink, props as BLinkProps } from '../link/link';\nexport var props = omit(BLinkProps, ['event', 'routerTag']); // @vue/component\n\nexport var BDropdownItem = /*#__PURE__*/Vue.extend({\n name: NAME_DROPDOWN_ITEM,\n mixins: [attrsMixin, normalizeSlotMixin],\n inheritAttrs: false,\n inject: {\n bvDropdown: {\n default: null\n }\n },\n props: _objectSpread(_objectSpread({}, props), {}, {\n linkClass: {\n type: [String, Array, Object] // default: null\n\n },\n variant: {\n type: String // default: null\n\n }\n }),\n computed: {\n computedAttrs: function computedAttrs() {\n return _objectSpread(_objectSpread({}, this.bvAttrs), {}, {\n role: 'menuitem'\n });\n }\n },\n methods: {\n closeDropdown: function closeDropdown() {\n var _this = this;\n\n // Close on next animation frame to allow time to process\n requestAF(function () {\n if (_this.bvDropdown) {\n _this.bvDropdown.hide(true);\n }\n });\n },\n onClick: function onClick(evt) {\n this.$emit('click', evt);\n this.closeDropdown();\n }\n },\n render: function render(h) {\n var linkClass = this.linkClass,\n variant = this.variant,\n active = this.active,\n disabled = this.disabled,\n onClick = this.onClick;\n return h('li', {\n attrs: {\n role: 'presentation'\n }\n }, [h(BLink, {\n staticClass: 'dropdown-item',\n class: [linkClass, _defineProperty({}, \"text-\".concat(variant), variant && !(active || disabled))],\n props: this.$props,\n attrs: this.computedAttrs,\n on: {\n click: onClick\n },\n ref: 'item'\n }, this.normalizeSlot())]);\n }\n});","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_DROPDOWN_ITEM_BUTTON } from '../../constants/components';\nimport Vue from '../../utils/vue';\nimport attrsMixin from '../../mixins/attrs';\nimport normalizeSlotMixin from '../../mixins/normalize-slot';\nexport var props = {\n active: {\n type: Boolean,\n default: false\n },\n activeClass: {\n type: String,\n default: 'active'\n },\n buttonClass: {\n type: [String, Array, Object] // default: null\n\n },\n disabled: {\n type: Boolean,\n default: false\n },\n variant: {\n type: String // default: null\n\n }\n}; // @vue/component\n\nexport var BDropdownItemButton = /*#__PURE__*/Vue.extend({\n name: NAME_DROPDOWN_ITEM_BUTTON,\n mixins: [attrsMixin, normalizeSlotMixin],\n inheritAttrs: false,\n inject: {\n bvDropdown: {\n default: null\n }\n },\n props: props,\n computed: {\n computedAttrs: function computedAttrs() {\n return _objectSpread(_objectSpread({}, this.bvAttrs), {}, {\n role: 'menuitem',\n type: 'button',\n disabled: this.disabled\n });\n }\n },\n methods: {\n closeDropdown: function closeDropdown() {\n if (this.bvDropdown) {\n this.bvDropdown.hide(true);\n }\n },\n onClick: function onClick(evt) {\n this.$emit('click', evt);\n this.closeDropdown();\n }\n },\n render: function render(h) {\n var _ref;\n\n return h('li', {\n attrs: {\n role: 'presentation'\n }\n }, [h('button', {\n staticClass: 'dropdown-item',\n class: [this.buttonClass, (_ref = {}, _defineProperty(_ref, this.activeClass, this.active), _defineProperty(_ref, \"text-\".concat(this.variant), this.variant && !(this.active || this.disabled)), _ref)],\n attrs: this.computedAttrs,\n on: {\n click: this.onClick\n },\n ref: 'button'\n }, this.normalizeSlot())]);\n }\n});","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_DROPDOWN_HEADER } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nexport var props = {\n id: {\n type: String // default: null\n\n },\n tag: {\n type: String,\n default: 'header'\n },\n variant: {\n type: String // default: null\n\n }\n}; // @vue/component\n\nexport var BDropdownHeader = /*#__PURE__*/Vue.extend({\n name: NAME_DROPDOWN_HEADER,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n var $attrs = data.attrs || {};\n data.attrs = {};\n return h('li', mergeData(data, {\n attrs: {\n role: 'presentation'\n }\n }), [h(props.tag, {\n staticClass: 'dropdown-header',\n class: _defineProperty({}, \"text-\".concat(props.variant), props.variant),\n attrs: _objectSpread(_objectSpread({}, $attrs), {}, {\n id: props.id || null,\n role: 'heading'\n }),\n ref: 'header'\n }, children)]);\n }\n});","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_DROPDOWN_DIVIDER } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nexport var props = {\n tag: {\n type: String,\n default: 'hr'\n }\n}; // @vue/component\n\nexport var BDropdownDivider = /*#__PURE__*/Vue.extend({\n name: NAME_DROPDOWN_DIVIDER,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data;\n var $attrs = data.attrs || {};\n data.attrs = {};\n return h('li', mergeData(data, {\n attrs: {\n role: 'presentation'\n }\n }), [h(props.tag, {\n staticClass: 'dropdown-divider',\n attrs: _objectSpread(_objectSpread({}, $attrs), {}, {\n role: 'separator',\n 'aria-orientation': 'horizontal'\n }),\n ref: 'divider'\n })]);\n }\n});","import { NAME_FORM } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nexport var props = {\n id: {\n type: String // default: null\n\n },\n inline: {\n type: Boolean,\n default: false\n },\n novalidate: {\n type: Boolean,\n default: false\n },\n validated: {\n type: Boolean,\n default: false\n }\n}; // @vue/component\n\nexport var BForm = /*#__PURE__*/Vue.extend({\n name: NAME_FORM,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n return h('form', mergeData(data, {\n class: {\n 'form-inline': props.inline,\n 'was-validated': props.validated\n },\n attrs: {\n id: props.id,\n novalidate: props.novalidate\n }\n }), children);\n }\n});","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_DROPDOWN_FORM } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nimport { BForm, props as formProps } from '../form/form'; // @vue/component\n\nexport var BDropdownForm = /*#__PURE__*/Vue.extend({\n name: NAME_DROPDOWN_FORM,\n functional: true,\n props: _objectSpread(_objectSpread({}, formProps), {}, {\n disabled: {\n type: Boolean,\n default: false\n },\n formClass: {\n type: [String, Object, Array] // default: null\n\n }\n }),\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n var $attrs = data.attrs || {};\n var $listeners = data.on || {};\n data.attrs = {};\n data.on = {};\n return h('li', mergeData(data, {\n attrs: {\n role: 'presentation'\n }\n }), [h(BForm, {\n ref: 'form',\n staticClass: 'b-dropdown-form',\n class: [props.formClass, {\n disabled: props.disabled\n }],\n props: props,\n attrs: _objectSpread(_objectSpread({}, $attrs), {}, {\n disabled: props.disabled,\n // Tab index of -1 for keyboard navigation\n tabindex: props.disabled ? null : '-1'\n }),\n on: $listeners\n }, children)]);\n }\n});","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_DROPDOWN_TEXT } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue'; // @vue/component\n\nexport var BDropdownText = /*#__PURE__*/Vue.extend({\n name: NAME_DROPDOWN_TEXT,\n functional: true,\n props: {\n tag: {\n type: String,\n default: 'p'\n },\n textClass: {\n type: [String, Array, Object] // default: null\n\n },\n variant: {\n type: String // default: null\n\n }\n },\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n var tag = props.tag,\n textClass = props.textClass,\n variant = props.variant;\n var attrs = data.attrs || {};\n data.attrs = {};\n return h('li', mergeData(data, {\n attrs: {\n role: 'presentation'\n }\n }), [h(tag, {\n staticClass: 'b-dropdown-text',\n class: [textClass, _defineProperty({}, \"text-\".concat(variant), variant)],\n props: props,\n attrs: attrs,\n ref: 'text'\n }, children)]);\n }\n});","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_DROPDOWN_GROUP } from '../../constants/components';\nimport { SLOT_NAME_DEFAULT, SLOT_NAME_HEADER } from '../../constants/slot-names';\nimport Vue, { mergeData } from '../../utils/vue';\nimport { hasNormalizedSlot, normalizeSlot } from '../../utils/normalize-slot';\nimport identity from '../../utils/identity';\nexport var props = {\n id: {\n type: String // default: null\n\n },\n header: {\n type: String // default: null\n\n },\n headerTag: {\n type: String,\n default: 'header'\n },\n headerVariant: {\n type: String // default: null\n\n },\n headerClasses: {\n type: [String, Array, Object] // default: null\n\n },\n ariaDescribedby: {\n type: String // default: null\n\n }\n}; // @vue/component\n\nexport var BDropdownGroup = /*#__PURE__*/Vue.extend({\n name: NAME_DROPDOWN_GROUP,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data,\n slots = _ref.slots,\n scopedSlots = _ref.scopedSlots;\n var $slots = slots();\n var $scopedSlots = scopedSlots || {};\n var $attrs = data.attrs || {};\n data.attrs = {};\n var header;\n var headerId = null;\n\n if (hasNormalizedSlot(SLOT_NAME_HEADER, $scopedSlots, $slots) || props.header) {\n headerId = props.id ? \"_bv_\".concat(props.id, \"_group_dd_header\") : null;\n header = h(props.headerTag, {\n staticClass: 'dropdown-header',\n class: [props.headerClasses, _defineProperty({}, \"text-\".concat(props.variant), props.variant)],\n attrs: {\n id: headerId,\n role: 'heading'\n }\n }, normalizeSlot(SLOT_NAME_HEADER, {}, $scopedSlots, $slots) || props.header);\n }\n\n var adb = [headerId, props.ariaDescribedBy].filter(identity).join(' ').trim();\n return h('li', mergeData(data, {\n attrs: {\n role: 'presentation'\n }\n }), [header || h(), h('ul', {\n staticClass: 'list-unstyled',\n attrs: _objectSpread(_objectSpread({}, $attrs), {}, {\n id: props.id || null,\n role: 'group',\n 'aria-describedby': adb || null\n })\n }, normalizeSlot(SLOT_NAME_DEFAULT, {}, $scopedSlots, $slots))]);\n }\n});","import { BDropdown } from './dropdown';\nimport { BDropdownItem } from './dropdown-item';\nimport { BDropdownItemButton } from './dropdown-item-button';\nimport { BDropdownHeader } from './dropdown-header';\nimport { BDropdownDivider } from './dropdown-divider';\nimport { BDropdownForm } from './dropdown-form';\nimport { BDropdownText } from './dropdown-text';\nimport { BDropdownGroup } from './dropdown-group';\nimport { pluginFactory } from '../../utils/plugins';\nvar DropdownPlugin = /*#__PURE__*/pluginFactory({\n components: {\n BDropdown: BDropdown,\n BDd: BDropdown,\n BDropdownItem: BDropdownItem,\n BDdItem: BDropdownItem,\n BDropdownItemButton: BDropdownItemButton,\n BDropdownItemBtn: BDropdownItemButton,\n BDdItemButton: BDropdownItemButton,\n BDdItemBtn: BDropdownItemButton,\n BDropdownHeader: BDropdownHeader,\n BDdHeader: BDropdownHeader,\n BDropdownDivider: BDropdownDivider,\n BDdDivider: BDropdownDivider,\n BDropdownForm: BDropdownForm,\n BDdForm: BDropdownForm,\n BDropdownText: BDropdownText,\n BDdText: BDropdownText,\n BDropdownGroup: BDropdownGroup,\n BDdGroup: BDropdownGroup\n }\n});\nexport { DropdownPlugin, BDropdown, BDropdownItem, BDropdownItemButton, BDropdownHeader, BDropdownDivider, BDropdownForm, BDropdownText, BDropdownGroup };","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { NAME_EMBED } from '../../constants/components';\nimport Vue, { mergeData } from '../../utils/vue';\nimport { arrayIncludes } from '../../utils/array';\nexport var props = {\n type: {\n type: String,\n default: 'iframe',\n validator: function validator(str) {\n return arrayIncludes(['iframe', 'embed', 'video', 'object', 'img', 'b-img', 'b-img-lazy'], str);\n }\n },\n tag: {\n type: String,\n default: 'div'\n },\n aspect: {\n type: String,\n default: '16by9'\n }\n}; // @vue/component\n\nexport var BEmbed = /*#__PURE__*/Vue.extend({\n name: NAME_EMBED,\n functional: true,\n props: props,\n render: function render(h, _ref) {\n var props = _ref.props,\n data = _ref.data,\n children = _ref.children;\n return h(props.tag, {\n ref: data.ref,\n staticClass: 'embed-responsive',\n class: _defineProperty({}, \"embed-responsive-\".concat(props.aspect), props.aspect)\n }, [h(props.type, mergeData(data, {\n ref: '',\n staticClass: 'embed-responsive-item'\n }), children)]);\n }\n});","import { BEmbed } from './embed';\nimport { pluginFactory } from '../../utils/plugins';\nvar EmbedPlugin = /*#__PURE__*/pluginFactory({\n components: {\n BEmbed: BEmbed\n }\n});\nexport { EmbedPlugin, BEmbed };","import get from '../utils/get';\nimport { stripTags } from '../utils/html';\nimport { isArray, isPlainObject, isUndefined } from '../utils/inspect';\nimport { keys } from '../utils/object';\nimport { warn } from '../utils/warn';\nvar OPTIONS_OBJECT_DEPRECATED_MSG = 'Setting prop \"options\" to an object is deprecated. Use the array format instead.'; // @vue/component\n\nexport default {\n props: {\n options: {\n type: [Array, Object],\n default: function _default() {\n return [];\n }\n },\n valueField: {\n type: String,\n default: 'value'\n },\n textField: {\n type: String,\n default: 'text'\n },\n htmlField: {\n type: String,\n default: 'html'\n },\n disabledField: {\n type: String,\n default: 'disabled'\n }\n },\n computed: {\n formOptions: function formOptions() {\n return this.normalizeOptions(this.options);\n }\n },\n methods: {\n normalizeOption: function normalizeOption(option) {\n var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n // When the option is an object, normalize it\n if (isPlainObject(option)) {\n var value = get(option, this.valueField);\n var text = get(option, this.textField);\n return {\n value: isUndefined(value) ? key || text : value,\n text: stripTags(String(isUndefined(text) ? key : text)),\n html: get(option, this.htmlField),\n disabled: Boolean(get(option, this.disabledField))\n };\n } // Otherwise create an `