From 3dfbec2d25bc800b2af4405745bbd4e532d9b6d7 Mon Sep 17 00:00:00 2001 From: David Heidrich Date: Fri, 12 Feb 2016 18:04:46 +0100 Subject: [PATCH] fix(site): fixed github-pages --- _config.yml | 4 ++-- assets/marklib.scss | 1 + build/css/styles.css | 4 ++++ build/css/styles.min.css | 2 +- build/js/marklib.map | 2 +- build/js/marklib.min.map | 2 +- build/js/site.js | 10 ++++------ build/js/site.map | 2 +- build/js/site.min.js | 2 +- build/js/site.min.map | 2 +- build/js/styles.map | 2 +- build/js/styles.min.map | 2 +- src/main/modules/Site.js | 10 +++++----- 13 files changed, 24 insertions(+), 21 deletions(-) diff --git a/_config.yml b/_config.yml index 53eb749..5bb39a8 100644 --- a/_config.yml +++ b/_config.yml @@ -2,5 +2,5 @@ permalink: pretty exclude: ['src', 'scripts', 'assets', 'node_modules', 'bower_components', 'coverage','examples'] -version: 'v0.6.1' -downloadLink: 'https://github.com/BowlingX/marklib/archive/v.0.6.1.zip' \ No newline at end of file +version: 'v0.6.5' +downloadLink: 'https://github.com/BowlingX/marklib/archive/v.0.6.5.zip' \ No newline at end of file diff --git a/assets/marklib.scss b/assets/marklib.scss index 6abeb7c..9c1d080 100644 --- a/assets/marklib.scss +++ b/assets/marklib.scss @@ -21,6 +21,7 @@ body { } .highlight { + margin:0; pre { max-width: $maxWidth; margin: 0 auto; diff --git a/build/css/styles.css b/build/css/styles.css index edf858a..5b408e8 100644 --- a/build/css/styles.css +++ b/build/css/styles.css @@ -1275,6 +1275,10 @@ body { -moz-osx-font-smoothing: grayscale; } +.highlight { + margin: 0; +} + .highlight pre { max-width: 960px; margin: 0 auto; diff --git a/build/css/styles.min.css b/build/css/styles.min.css index 8948cca..b82ea01 100644 --- a/build/css/styles.min.css +++ b/build/css/styles.min.css @@ -1,4 +1,4 @@ @-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-5px,0)}to{opacity:1;-webkit-transform:none}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-5px,0);transform:translate3d(0,-5px,0)}to{opacity:1;-webkit-transform:none;transform:none}}@-webkit-keyframes fadeInDownSlow{0%{opacity:0;-webkit-transform:translate3d(0,-30px,0)}to{opacity:1;-webkit-transform:none}}@keyframes fadeInDownSlow{0%{opacity:0;-webkit-transform:translate3d(0,-30px,0);transform:translate3d(0,-30px,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes bubble{0%{-webkit-transform:translate3d(0,-4px,0);transform:translate3d(0,-4px,0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes bubble{0%{-webkit-transform:translate3d(0,-4px,0)}to{-webkit-transform:translateZ(0)}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown;-webkit-animation-duration:.2s;animation-duration:.2s}.animate .wrapper,.fadeInDownSlow{-webkit-animation-name:fadeInDownSlow;animation-name:fadeInDownSlow;-webkit-animation-duration:2s;animation-duration:2s}.highlight{white-space:pre;overflow:auto;word-wrap:normal;background:#343642;color:#c1c2c3}.highlight .hll{background-color:#ffc}.highlight .gd{color:#2e3436;background-color:#0e1416}.highlight .gr{color:#eeeeec;background-color:#c00}.highlight .gi{color:#babdb6;background-color:#1f2b2d}.highlight .go{color:#2c3032;background-color:#2c3032}.highlight .kt{color:#e3e7df}.highlight .ni{color:#888a85}.highlight .c,.highlight .c1,.highlight .cm,.highlight .cs{color:#8d9684}.highlight .bp,.highlight .err,.highlight .g,.highlight .ge,.highlight .gp,.highlight .gs,.highlight .gt,.highlight .l,.highlight .ld,.highlight .n,.highlight .nc,.highlight .nd,.highlight .ne,.highlight .nl,.highlight .nn,.highlight .nx,.highlight .ow,.highlight .p,.highlight .py,.highlight .s,.highlight .s1,.highlight .s2,.highlight .sb,.highlight .sc,.highlight .sd,.highlight .se,.highlight .sh,.highlight .si,.highlight .sr,.highlight .ss,.highlight .sx,.highlight .w,.highlight .x{color:#c1c2c3}.highlight .k,.highlight .kc,.highlight .kd,.highlight .kn,.highlight .kp,.highlight .kr,.highlight .nt{color:#729fcf}.highlight .cp,.highlight .gh,.highlight .gu,.highlight .na,.highlight .nf{color:#e9a94b}.highlight .il,.highlight .m,.highlight .mf,.highlight .mh,.highlight .mi,.highlight .mo,.highlight .nb,.highlight .no{color:#8ae234}.highlight .o{color:#989daa}.highlight .nv,.highlight .vc,.highlight .vg,.highlight .vi{color:#fff}@-webkit-keyframes progress-bar-stripes{0%{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{0%{background-position:40px 0}to{background-position:0 0}}@-webkit-keyframes backgroundFadeIn{0%{background:transparent}to{background:rgba(0,0,0,.35)}}@keyframes backgroundFadeIn{0%{background:transparent}to{background:rgba(0,0,0,.35)}}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@-webkit-keyframes bounceIn{0%,40%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}40%{-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}40%,to{opacity:1}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes bounceIn{0%,40%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}40%{-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}40%,to{opacity:1}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@-webkit-keyframes fadeIn{0%,to{-webkit-animation-timing-function:ease;animation-timing-function:ease}0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%,to{-webkit-animation-timing-function:ease;animation-timing-function:ease}0%{opacity:0}to{opacity:1}}@-webkit-keyframes darkenerFadeIn{0%,to{-webkit-animation-timing-function:ease;animation-timing-function:ease}0%{opacity:0}to{opacity:.35}}@keyframes darkenerFadeIn{0%,to{-webkit-animation-timing-function:ease;animation-timing-function:ease}0%{opacity:0}to{opacity:.35}}@-webkit-keyframes darkenerFadeOut{0%,to{-webkit-animation-timing-function:ease;animation-timing-function:ease}0%{opacity:.35}to{opacity:0}}@keyframes darkenerFadeOut{0%,to{-webkit-animation-timing-function:ease;animation-timing-function:ease}0%{opacity:.35}to{opacity:0}}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes fromBottom{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fromBottom{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes tabWobbleLine{0%{opacity:0;left:calc(50% - 10px);width:0}to{opacity:1;left:0;width:calc(100% - 20px)}}@keyframes tabWobbleLine{0%{opacity:0;left:calc(50% - 10px);width:0}to{opacity:1;left:0;width:calc(100% - 20px)}}@-webkit-keyframes tabWobbleLineSmall{0%{opacity:0;left:calc(50% - 10px);width:0}to{opacity:1;left:0;width:calc(100% - 10px)}}@keyframes tabWobbleLineSmall{0%{opacity:0;left:calc(50% - 10px);width:0}to{opacity:1;left:0;width:calc(100% - 10px)}}.loader{margin:0 auto;border-radius:50%;border:4px solid transparent;position:relative;-webkit-animation:spin 1s infinite cubic-bezier(.37,.73,.62,.28);animation:spin 1s infinite cubic-bezier(.37,.73,.62,.28)}.loader,.loader:before{display:block;width:40px;height:40px}.loader:before{content:'';border-radius:50%;position:absolute;left:-4px;top:-4px;border-right:4px solid #d9d9d9;border-top:4px solid #d9d9d9;border-left:4px solid #fff;border-bottom:4px solid #d9d9d9}.loader.small{width:20px;height:20px;border-width:2px}.loader.small:before{width:20px;height:20px;left:-2px;top:-2px;border:2px}.animate-bounceIn{-webkit-animation-name:bounceIn;animation-name:bounceIn}.animate-bounceIn,.animate-fadeIn{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-direction:normal;animation-direction:normal}.animate-fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn} -/*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.tooltip-container{z-index:31;pointer-events:none;display:inline-block;opacity:0;position:absolute;color:#fff;border-radius:3px;padding:7px 10px;will-change:transform,opacity;transition:opacity .35s ease,-webkit-transform .35s ease;transition:opacity .35s ease,transform .35s ease;transition:opacity .35s ease,transform .35s ease,-webkit-transform .35s ease;font-size:12px;font-weight:600;-webkit-transform:translate3d(0,-6px,0);transform:translate3d(0,-6px,0);background:#333;word-wrap:break-word;max-width:250px;text-align:center}.tooltip-container.error-tooltip{word-break:normal;background:#333}.tooltip-container.open{opacity:1}.tooltip-container.is-collision-bottom:not(.is-collision-left).open{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}.tooltip-container.is-collision-bottom:not(.is-collision-left):after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:transparent;border-top-color:#333;border-width:5px;left:50%;margin-left:-5px}.tooltip-container:not(.is-collision-bottom):not(.is-collision-left).open{-webkit-transform:translate3d(0,6px,0);transform:translate3d(0,6px,0)}.tooltip-container:not(.is-collision-bottom):not(.is-collision-left):after,.tooltip-container:not(.is-collision-bottom):not(.is-collision-left):before{bottom:100%;left:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.tooltip-container:not(.is-collision-bottom):not(.is-collision-left):after{border-color:transparent;border-bottom-color:#333;border-width:5px;margin-left:-5px}.tooltip-container.is-collision-left.is-collision-bottom.open{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}.tooltip-container.is-collision-left.is-collision-bottom:after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:transparent;border-top-color:#333;border-width:5px;left:15px;margin-left:-5px}.tooltip-container.is-collision-left:not(.is-collision-bottom).open{-webkit-transform:translate3d(0,6px,0);transform:translate3d(0,6px,0)}.tooltip-container.is-collision-left:not(.is-collision-bottom):after,.tooltip-container.is-collision-left:not(.is-collision-bottom):before{bottom:100%;left:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.tooltip-container.is-collision-left:not(.is-collision-bottom):after{border-color:transparent;border-bottom-color:#333;border-width:5px;margin-left:-5px}.tooltip-container.is-collision-right:not(.is-collision-bottom).open{-webkit-transform:translate3d(0,6px,0);transform:translate3d(0,6px,0)}.tooltip-container.is-collision-right:not(.is-collision-bottom):after,.tooltip-container.is-collision-right:not(.is-collision-bottom):before{bottom:100%;left:calc(100% - 15px);border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.tooltip-container.is-collision-right:not(.is-collision-bottom):after{border-color:transparent;border-bottom-color:#333;border-width:5px;margin-left:-5px}.tooltip-container.is-collision-right.is-collision-bottom.open{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}.tooltip-container.is-collision-right.is-collision-bottom:after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:transparent;border-top-color:#333;border-width:5px;left:calc(100% - 15px);margin-left:-5px}.tooltip-container.error-tooltip.is-collision-bottom:not(.is-collision-left).open{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}.tooltip-container.error-tooltip.is-collision-bottom:not(.is-collision-left):after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:transparent;border-top-color:#333;border-width:5px;left:50%;margin-left:-5px}.tooltip-container.error-tooltip:not(.is-collision-bottom):not(.is-collision-left).open{-webkit-transform:translate3d(0,6px,0);transform:translate3d(0,6px,0)}.tooltip-container.error-tooltip:not(.is-collision-bottom):not(.is-collision-left):after,.tooltip-container.error-tooltip:not(.is-collision-bottom):not(.is-collision-left):before{bottom:100%;left:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.tooltip-container.error-tooltip:not(.is-collision-bottom):not(.is-collision-left):after{border-color:transparent;border-bottom-color:#333;border-width:5px;margin-left:-5px}.tooltip-container.error-tooltip.is-collision-left.is-collision-bottom.open{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}.tooltip-container.error-tooltip.is-collision-left.is-collision-bottom:after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:transparent;border-top-color:#333;border-width:5px;left:15px;margin-left:-5px}.tooltip-container.error-tooltip.is-collision-left:not(.is-collision-bottom).open{-webkit-transform:translate3d(0,6px,0);transform:translate3d(0,6px,0)}.tooltip-container.error-tooltip.is-collision-left:not(.is-collision-bottom):after,.tooltip-container.error-tooltip.is-collision-left:not(.is-collision-bottom):before{bottom:100%;left:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.tooltip-container.error-tooltip.is-collision-left:not(.is-collision-bottom):after{border-color:transparent;border-bottom-color:#333;border-width:5px;margin-left:-5px}.tooltip-container.error-tooltip.is-collision-right:not(.is-collision-bottom).open{-webkit-transform:translate3d(0,6px,0);transform:translate3d(0,6px,0)}.tooltip-container.error-tooltip.is-collision-right:not(.is-collision-bottom):after,.tooltip-container.error-tooltip.is-collision-right:not(.is-collision-bottom):before{bottom:100%;left:calc(100% - 15px);border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.tooltip-container.error-tooltip.is-collision-right:not(.is-collision-bottom):after{border-color:transparent;border-bottom-color:#333;border-width:5px;margin-left:-5px}.tooltip-container.error-tooltip.is-collision-right.is-collision-bottom.open{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}.tooltip-container.error-tooltip.is-collision-right.is-collision-bottom:after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:transparent;border-top-color:#333;border-width:5px;left:calc(100% - 15px);margin-left:-5px}body{font-family:Roboto,sans-serif;padding:0;margin:0;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.highlight pre{max-width:960px;margin:0 auto}code{font-size:1.3rem}.wrapper{max-width:960px;margin:0 auto}strong{font-weight:500}header{padding:10px}.text-center{text-align:center}.subline{font-size:2rem;font-weight:100}.presentation{background:rgba(52,73,94,.7);color:#fff;padding:40px}h1,h2{font-family:Shadows Into Light,sans-serif}p{font-size:1rem;line-height:1.6}.button,button{font:inherit;font-weight:400;background:#95a5a6;border:none;padding:10px 15px;border-radius:5px;font-size:1rem;cursor:pointer;color:#fff;transition:background .5s ease,-webkit-transform .5s ease;transition:background .5s ease,transform .5s ease;transition:background .5s ease,transform .5s ease,-webkit-transform .5s ease;margin:10px;display:inline-block;text-decoration:none}.button:hover,button:hover{background:#b1bdbd;-webkit-transform:translate3d(0,4px,0);transform:translate3d(0,4px,0)}.button>*,button>*{pointer-events:none}.button.alt,button.alt{background:#9b59b6}.button.alt:hover,button.alt:hover{background:#b07cc6}.button.warn,button.warn{background:#e74c3c}.button.warn:hover,button.warn:hover{background:#ed7669}.button.twitter,button.twitter{background:#00aced}.button.twitter:hover,button.twitter:hover{background:#21c2ff}.marking{background:#2ecc71;cursor:pointer}.deleted,.marking{transition:background .5s ease}.deleted{background:none!important}.marking .marking{background:#25a25a}.marking .marking .marking{background:#1b7943}.marking.marklib--hover,.marking.marklib--hover .marking{background:#93e7b6!important}::-moz-selection{background:#7ee2a8}::selection{background:#7ee2a8}pre{margin:0}pre>code{display:block;font-family:monospace;overflow-y:auto;padding:30px;-webkit-overflow-scrolling:touch}.tight{margin-bottom:0}.marking.bubble{-webkit-animation-name:bubble;animation-name:bubble;-webkit-animation-duration:.3s;animation-duration:.3s}@media (max-width:480px){.presentation{padding:15px}.hide-small{display:none}} +/*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.tooltip-container{z-index:31;pointer-events:none;display:inline-block;opacity:0;position:absolute;color:#fff;border-radius:3px;padding:7px 10px;will-change:transform,opacity;transition:opacity .35s ease,-webkit-transform .35s ease;transition:opacity .35s ease,transform .35s ease;transition:opacity .35s ease,transform .35s ease,-webkit-transform .35s ease;font-size:12px;font-weight:600;-webkit-transform:translate3d(0,-6px,0);transform:translate3d(0,-6px,0);background:#333;word-wrap:break-word;max-width:250px;text-align:center}.tooltip-container.error-tooltip{word-break:normal;background:#333}.tooltip-container.open{opacity:1}.tooltip-container.is-collision-bottom:not(.is-collision-left).open{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}.tooltip-container.is-collision-bottom:not(.is-collision-left):after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:transparent;border-top-color:#333;border-width:5px;left:50%;margin-left:-5px}.tooltip-container:not(.is-collision-bottom):not(.is-collision-left).open{-webkit-transform:translate3d(0,6px,0);transform:translate3d(0,6px,0)}.tooltip-container:not(.is-collision-bottom):not(.is-collision-left):after,.tooltip-container:not(.is-collision-bottom):not(.is-collision-left):before{bottom:100%;left:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.tooltip-container:not(.is-collision-bottom):not(.is-collision-left):after{border-color:transparent;border-bottom-color:#333;border-width:5px;margin-left:-5px}.tooltip-container.is-collision-left.is-collision-bottom.open{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}.tooltip-container.is-collision-left.is-collision-bottom:after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:transparent;border-top-color:#333;border-width:5px;left:15px;margin-left:-5px}.tooltip-container.is-collision-left:not(.is-collision-bottom).open{-webkit-transform:translate3d(0,6px,0);transform:translate3d(0,6px,0)}.tooltip-container.is-collision-left:not(.is-collision-bottom):after,.tooltip-container.is-collision-left:not(.is-collision-bottom):before{bottom:100%;left:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.tooltip-container.is-collision-left:not(.is-collision-bottom):after{border-color:transparent;border-bottom-color:#333;border-width:5px;margin-left:-5px}.tooltip-container.is-collision-right:not(.is-collision-bottom).open{-webkit-transform:translate3d(0,6px,0);transform:translate3d(0,6px,0)}.tooltip-container.is-collision-right:not(.is-collision-bottom):after,.tooltip-container.is-collision-right:not(.is-collision-bottom):before{bottom:100%;left:calc(100% - 15px);border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.tooltip-container.is-collision-right:not(.is-collision-bottom):after{border-color:transparent;border-bottom-color:#333;border-width:5px;margin-left:-5px}.tooltip-container.is-collision-right.is-collision-bottom.open{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}.tooltip-container.is-collision-right.is-collision-bottom:after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:transparent;border-top-color:#333;border-width:5px;left:calc(100% - 15px);margin-left:-5px}.tooltip-container.error-tooltip.is-collision-bottom:not(.is-collision-left).open{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}.tooltip-container.error-tooltip.is-collision-bottom:not(.is-collision-left):after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:transparent;border-top-color:#333;border-width:5px;left:50%;margin-left:-5px}.tooltip-container.error-tooltip:not(.is-collision-bottom):not(.is-collision-left).open{-webkit-transform:translate3d(0,6px,0);transform:translate3d(0,6px,0)}.tooltip-container.error-tooltip:not(.is-collision-bottom):not(.is-collision-left):after,.tooltip-container.error-tooltip:not(.is-collision-bottom):not(.is-collision-left):before{bottom:100%;left:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.tooltip-container.error-tooltip:not(.is-collision-bottom):not(.is-collision-left):after{border-color:transparent;border-bottom-color:#333;border-width:5px;margin-left:-5px}.tooltip-container.error-tooltip.is-collision-left.is-collision-bottom.open{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}.tooltip-container.error-tooltip.is-collision-left.is-collision-bottom:after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:transparent;border-top-color:#333;border-width:5px;left:15px;margin-left:-5px}.tooltip-container.error-tooltip.is-collision-left:not(.is-collision-bottom).open{-webkit-transform:translate3d(0,6px,0);transform:translate3d(0,6px,0)}.tooltip-container.error-tooltip.is-collision-left:not(.is-collision-bottom):after,.tooltip-container.error-tooltip.is-collision-left:not(.is-collision-bottom):before{bottom:100%;left:15px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.tooltip-container.error-tooltip.is-collision-left:not(.is-collision-bottom):after{border-color:transparent;border-bottom-color:#333;border-width:5px;margin-left:-5px}.tooltip-container.error-tooltip.is-collision-right:not(.is-collision-bottom).open{-webkit-transform:translate3d(0,6px,0);transform:translate3d(0,6px,0)}.tooltip-container.error-tooltip.is-collision-right:not(.is-collision-bottom):after,.tooltip-container.error-tooltip.is-collision-right:not(.is-collision-bottom):before{bottom:100%;left:calc(100% - 15px);border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.tooltip-container.error-tooltip.is-collision-right:not(.is-collision-bottom):after{border-color:transparent;border-bottom-color:#333;border-width:5px;margin-left:-5px}.tooltip-container.error-tooltip.is-collision-right.is-collision-bottom.open{-webkit-transform:translate3d(0,-3px,0);transform:translate3d(0,-3px,0)}.tooltip-container.error-tooltip.is-collision-right.is-collision-bottom:after{top:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:transparent;border-top-color:#333;border-width:5px;left:calc(100% - 15px);margin-left:-5px}body{font-family:Roboto,sans-serif;padding:0;font-weight:300;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.highlight,body{margin:0}.highlight pre{max-width:960px;margin:0 auto}code{font-size:1.3rem}.wrapper{max-width:960px;margin:0 auto}strong{font-weight:500}header{padding:10px}.text-center{text-align:center}.subline{font-size:2rem;font-weight:100}.presentation{background:rgba(52,73,94,.7);color:#fff;padding:40px}h1,h2{font-family:Shadows Into Light,sans-serif}p{font-size:1rem;line-height:1.6}.button,button{font:inherit;font-weight:400;background:#95a5a6;border:none;padding:10px 15px;border-radius:5px;font-size:1rem;cursor:pointer;color:#fff;transition:background .5s ease,-webkit-transform .5s ease;transition:background .5s ease,transform .5s ease;transition:background .5s ease,transform .5s ease,-webkit-transform .5s ease;margin:10px;display:inline-block;text-decoration:none}.button:hover,button:hover{background:#b1bdbd;-webkit-transform:translate3d(0,4px,0);transform:translate3d(0,4px,0)}.button>*,button>*{pointer-events:none}.button.alt,button.alt{background:#9b59b6}.button.alt:hover,button.alt:hover{background:#b07cc6}.button.warn,button.warn{background:#e74c3c}.button.warn:hover,button.warn:hover{background:#ed7669}.button.twitter,button.twitter{background:#00aced}.button.twitter:hover,button.twitter:hover{background:#21c2ff}.marking{background:#2ecc71;cursor:pointer}.deleted,.marking{transition:background .5s ease}.deleted{background:none!important}.marking .marking{background:#25a25a}.marking .marking .marking{background:#1b7943}.marking.marklib--hover,.marking.marklib--hover .marking{background:#93e7b6!important}::-moz-selection{background:#7ee2a8}::selection{background:#7ee2a8}pre{margin:0}pre>code{display:block;font-family:monospace;overflow-y:auto;padding:30px;-webkit-overflow-scrolling:touch}.tight{margin-bottom:0}.marking.bubble{-webkit-animation-name:bubble;animation-name:bubble;-webkit-animation-duration:.3s;animation-duration:.3s}@media (max-width:480px){.presentation{padding:15px}.hide-small{display:none}} /*# sourceMappingURL=../js/styles.min.map*/ \ No newline at end of file diff --git a/build/js/marklib.map b/build/js/marklib.map index 67e7ab3..0258627 100644 --- a/build/js/marklib.map +++ b/build/js/marklib.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 1a80b2cb16523a46fdcd","webpack:///./src/main/modules/Marklib.js","webpack:///./src/main/Rendering.js","webpack:///./~/babel-runtime/core-js/object/get-prototype-of.js","webpack:///./~/core-js/library/fn/object/get-prototype-of.js","webpack:///./~/core-js/library/modules/es6.object.get-prototype-of.js","webpack:///./~/core-js/library/modules/$.to-object.js","webpack:///./~/core-js/library/modules/$.defined.js","webpack:///./~/core-js/library/modules/$.object-sap.js","webpack:///./~/core-js/library/modules/$.export.js","webpack:///./~/core-js/library/modules/$.global.js","webpack:///./~/core-js/library/modules/$.core.js","webpack:///./~/core-js/library/modules/$.ctx.js","webpack:///./~/core-js/library/modules/$.a-function.js","webpack:///./~/core-js/library/modules/$.fails.js","webpack:///./~/babel-runtime/helpers/classCallCheck.js","webpack:///./~/babel-runtime/helpers/createClass.js","webpack:///./~/babel-runtime/core-js/object/define-property.js","webpack:///./~/core-js/library/fn/object/define-property.js","webpack:///./~/core-js/library/modules/$.js","webpack:///./~/babel-runtime/helpers/possibleConstructorReturn.js","webpack:///./~/babel-runtime/helpers/typeof.js","webpack:///./~/babel-runtime/core-js/symbol/iterator.js","webpack:///./~/core-js/library/fn/symbol/iterator.js","webpack:///./~/core-js/library/modules/es6.string.iterator.js","webpack:///./~/core-js/library/modules/$.string-at.js","webpack:///./~/core-js/library/modules/$.to-integer.js","webpack:///./~/core-js/library/modules/$.iter-define.js","webpack:///./~/core-js/library/modules/$.library.js","webpack:///./~/core-js/library/modules/$.redefine.js","webpack:///./~/core-js/library/modules/$.hide.js","webpack:///./~/core-js/library/modules/$.property-desc.js","webpack:///./~/core-js/library/modules/$.descriptors.js","webpack:///./~/core-js/library/modules/$.has.js","webpack:///./~/core-js/library/modules/$.iterators.js","webpack:///./~/core-js/library/modules/$.iter-create.js","webpack:///./~/core-js/library/modules/$.set-to-string-tag.js","webpack:///./~/core-js/library/modules/$.wks.js","webpack:///./~/core-js/library/modules/$.shared.js","webpack:///./~/core-js/library/modules/$.uid.js","webpack:///./~/core-js/library/modules/web.dom.iterable.js","webpack:///./~/core-js/library/modules/es6.array.iterator.js","webpack:///./~/core-js/library/modules/$.add-to-unscopables.js","webpack:///./~/core-js/library/modules/$.iter-step.js","webpack:///./~/core-js/library/modules/$.to-iobject.js","webpack:///./~/core-js/library/modules/$.iobject.js","webpack:///./~/core-js/library/modules/$.cof.js","webpack:///./~/babel-runtime/core-js/symbol.js","webpack:///./~/core-js/library/fn/symbol/index.js","webpack:///./~/core-js/library/modules/es6.symbol.js","webpack:///./~/core-js/library/modules/$.keyof.js","webpack:///./~/core-js/library/modules/$.get-names.js","webpack:///./~/core-js/library/modules/$.enum-keys.js","webpack:///./~/core-js/library/modules/$.is-array.js","webpack:///./~/core-js/library/modules/$.an-object.js","webpack:///./~/core-js/library/modules/$.is-object.js","webpack:///./~/babel-runtime/helpers/inherits.js","webpack:///./~/babel-runtime/core-js/object/set-prototype-of.js","webpack:///./~/core-js/library/fn/object/set-prototype-of.js","webpack:///./~/core-js/library/modules/es6.object.set-prototype-of.js","webpack:///./~/core-js/library/modules/$.set-proto.js","webpack:///./~/babel-runtime/core-js/object/create.js","webpack:///./~/core-js/library/fn/object/create.js","webpack:///./src/main/RenderResult.js","webpack:///./src/main/RenderingEvents.js","webpack:///./~/babel-runtime/helpers/slicedToArray.js","webpack:///./~/babel-runtime/core-js/is-iterable.js","webpack:///./~/core-js/library/fn/is-iterable.js","webpack:///./~/core-js/library/modules/core.is-iterable.js","webpack:///./~/core-js/library/modules/$.classof.js","webpack:///./~/babel-runtime/core-js/get-iterator.js","webpack:///./~/core-js/library/fn/get-iterator.js","webpack:///./~/core-js/library/modules/core.get-iterator.js","webpack:///./~/core-js/library/modules/core.get-iterator-method.js","webpack:///./~/babel-runtime/core-js/set.js","webpack:///./~/core-js/library/fn/set.js","webpack:///./~/core-js/library/modules/es6.set.js","webpack:///./~/core-js/library/modules/$.collection-strong.js","webpack:///./~/core-js/library/modules/$.redefine-all.js","webpack:///./~/core-js/library/modules/$.strict-new.js","webpack:///./~/core-js/library/modules/$.for-of.js","webpack:///./~/core-js/library/modules/$.iter-call.js","webpack:///./~/core-js/library/modules/$.is-array-iter.js","webpack:///./~/core-js/library/modules/$.to-length.js","webpack:///./~/core-js/library/modules/$.set-species.js","webpack:///./~/core-js/library/modules/$.collection.js","webpack:///./~/core-js/library/modules/es7.set.to-json.js","webpack:///./~/core-js/library/modules/$.collection-to-json.js","webpack:///./~/babel-runtime/core-js/object/assign.js","webpack:///./~/core-js/library/fn/object/assign.js","webpack:///./~/core-js/library/modules/es6.object.assign.js","webpack:///./~/core-js/library/modules/$.object-assign.js","webpack:///./~/wolfy87-eventemitter/EventEmitter.js","webpack:///./src/main/util/Util.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;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,MAAK;AACL,gEAA+D;AAC/D;AACA;AACA;AACA,eAAc;AACd,eAAc;AACd,eAAc;AACd,eAAc;AACd,gBAAe;AACf,gBAAe;AACf,0B;;;;;;AC7CA;AACA;AACA;AACA,wCAAuC,gC;;;;;;ACHvC,8BAA6B;AAC7B,sCAAqC,gC;;;;;;ACDrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACnBA;AACA;AACA;AACA,G;;;;;;ACHA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,G;;;;;;ACNA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,G;;;;;;ACRA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA,oBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC,G;;;;;;AC1BD,mBAAkB,wD;;;;;;ACAlB;AACA;AACA;AACA,G;;;;;;ACHA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACZA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;;AAEA;AACA,G;;;;;;AChBA;;AAEA,uGAAsG,mBAAmB,EAAE,mBAAmB,oGAAoG;;AAElP;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA,EAAC;AACD;AACA,G;;;;;;ACpBA,mBAAkB,wD;;;;;;ACAlB;AACA;AACA,sD;;;;;;ACFA;AACA;;AAEA;AACA;AACA,8BAA6B;AAC7B,eAAc;AACd;AACA,EAAC;AACD;AACA;AACA;AACA,gCAA+B;AAC/B;AACA;AACA,WAAU;AACV,EAAC,E;;;;;;AChBD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,6BAA4B,aAAa;;AAEzC;AACA;AACA;AACA;AACA;AACA,yCAAwC,oCAAoC;AAC5E,6CAA4C,oCAAoC;AAChF,MAAK,2BAA2B,oCAAoC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAkB,mBAAmB;AACrC;AACA;AACA,oCAAmC,2BAA2B;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,G;;;;;;ACjEA,uB;;;;;;ACAA,0C;;;;;;ACAA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA,G;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACPA;AACA;AACA,kCAAiC,QAAQ,gBAAgB,UAAU,GAAG;AACtE,EAAC,E;;;;;;ACHD,wBAAuB;AACvB;AACA;AACA,G;;;;;;ACHA,qB;;;;;;ACAA;AACA;AACA;AACA;AACA;;AAEA;AACA,4FAAkF,aAAa,EAAE;;AAEjG;AACA,wDAAuD,0BAA0B;AACjF;AACA,G;;;;;;ACZA;AACA;AACA;;AAEA;AACA,mEAAkE,+BAA+B;AACjG,G;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACNA;AACA;AACA,oDAAmD;AACnD;AACA,wCAAuC;AACvC,G;;;;;;ACLA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA,iE;;;;;;ACFA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC,eAAc;AACd,kBAAiB;AACjB;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;;AAEA;AACA;AACA,6B;;;;;;ACjCA,6BAA4B,e;;;;;;ACA5B;AACA,WAAU;AACV,G;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACLA;AACA;AACA;AACA;AACA,G;;;;;;ACJA,kBAAiB;;AAEjB;AACA;AACA,G;;;;;;ACJA,mBAAkB,wD;;;;;;ACAlB;AACA;AACA,iD;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,4BAA2B;AAC3B,qBAAoB,4BAA4B,SAAS,IAAI;AAC7D,IAAG;AACH,EAAC;AACD;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,+DAA8D;AAC9D;AACA,MAAK;AACL;AACA,uBAAsB,iCAAiC;AACvD,MAAK;AACL,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,KAAK,QAAQ,iCAAiC;AAClG,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,IAAG;AACH,yBAAwB,eAAe,EAAE;AACzC,yBAAwB,gBAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;;AAEA,iCAAgC,gBAAgB;;AAEhD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA,8EAA6E,sBAAsB;;AAEnG;AACA;AACA;AACA;AACA;AACA,2C;;;;;;AClOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACTA;AACA;AACA;AACA,mBAAkB;;AAElB;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA,G;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACbA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA,G;;;;;;;;;;;;ACFA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA,G;;;;;;AChCA,mBAAkB,wD;;;;;;ACAlB;AACA,gE;;;;;;ACDA;AACA;AACA,+BAA8B,4CAA6C,E;;;;;;ACF3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA,QAAO,UAAU,cAAc;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,GAAG;AACR;AACA,G;;;;;;ACzBA,mBAAkB,wD;;;;;;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AuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,yDAAwD,+BAA+B;AACvF;;AAEA;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA;AACA,EAAC,G;;;;;;AClDD,mBAAkB,wD;;;;;;ACAlB;AACA;AACA,0C;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACRA;AACA;AACA;AACA;AACA,0BAAyB,kBAAkB,EAAE;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACfA,mBAAkB,wD;;;;;;ACAlB;AACA;AACA,0C;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACPA,mBAAkB,wD;;;;;;ACAlB;AACA;AACA;AACA;AACA;AACA,8C;;;;;;ACLA;AACA;;AAEA;AACA;AACA,yBAAwB,mEAAmE;AAC3F,EAAC;AACD;AACA;AACA;AACA;AACA,EAAC,U;;;;;;ACXD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAsB,OAAO;AAC7B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gCAA+B;AAC/B,2BAA0B;AAC1B,2BAA0B;AAC1B,sBAAqB;AACrB;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,8DAA6D,OAAO;AACpE;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,0BAAyB;AACzB,sBAAqB;AACrB,2BAA0B;AAC1B,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,G;;;;;;AC9JA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA;AACA,G;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAgE,gBAAgB;AAChF;AACA,IAAG,2CAA2C,gCAAgC;AAC9E;AACA;AACA,G;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,G;;;;;;ACXA;AACA;AACA;AACA;;AAEA;AACA;AACA,G;;;;;;ACPA;AACA;AACA;AACA;AACA,4DAA2D;AAC3D,G;;;;;;ACLA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAoB,aAAa;AACjC,IAAG;AACH,G;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA,G;;;;;;ACtDA;AACA;;AAEA,4BAA2B,uCAAiD,E;;;;;;ACH5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACVA,mBAAkB,wD;;;;;;ACAlB;AACA,wD;;;;;;ACDA;AACA;;AAEA,2CAA0C,gCAAqC,E;;;;;;ACH/E;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,UAAU,EAAE;AAC9C,cAAa,gCAAgC;AAC7C,EAAC,oCAAoC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,iB;;;;;;AChCD;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,iBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,iBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,iBAAgB,WAAW;AAC3B;AACA;AACA;AACA;;AAEA,oBAAmB,sBAAsB;AACzC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA,wBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,qBAAqB;AACpC,gBAAe,WAAW;AAC1B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,qBAAqB;AACpC,gBAAe,WAAW;AAC1B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,QAAQ;AACvB,gBAAe,qBAAqB;AACpC,gBAAe,WAAW;AAC1B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,MAAM;AACrB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,KAAK;AACpB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAgB,UAAU;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAgB,OAAO;AACvB;AACA;AACA;AACA,kDAAiD;AACjD;;AAEA;AACA,4BAA2B,mBAAmB;AAC9C;AACA,iBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpdM,KAAM,8DAA2B,qBAA3B;;;;AAIN,KAAM,gDAAoB,mBAApB;;;;AAIb,KAAM,sBAAsB,GAAtB;;;AAKN,KAAI,WAAW,CAAC,QAAQ,SAAR,CAAkB,OAAlB,EAA2B;AACvC,SAAM,IAAI,QAAQ,SAAR,CAD6B;AAEvC,OAAE,OAAF,GAAY,EAAE,e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;;;YA9ZrC","file":"js/marklib.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Marklib\"] = factory();\n\telse\n\t\troot[\"Marklib\"] = factory();\n})(this, function() {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/"," \t// The module cache\n \tvar installedModules = {};\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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"../\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 1a80b2cb16523a46fdcd\n **/","import Rendering from '../Rendering';\nimport Util from '../util/Util';\nimport RenderResult from '../RenderResult';\nimport RenderingEvents from '../RenderingEvents';\n\nexport { Rendering, Util, RenderResult, RenderingEvents };\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/modules/Marklib.js\n **/","/* global Node */\n\nimport RenderResult from './RenderResult';\nimport RenderingEvents from './RenderingEvents';\nimport Util, { ATTR_DATA_ORIGINAL_INDEX, DATA_IS_SELECTION } from './util/Util';\n\n/**\n * @type {string}\n */\nconst TAG_NAME = 'x-marker';\n/**\n * @type {string}\n */\nexport const ATTR_DATA_ORIGINAL_OFFSET_START = 'data-original-offset-start';\n/**\n * @type {string}\n */\nconst DATA_ORIGINAL_TEXT_NODE_INDEX = 'original-text-node-index';\n/**\n * @type {string}\n */\nconst ATTR_DATA_START_END = 'data-is-start-end';\n/**\n * @type {string}\n */\nconst ATTR_DATA_IS_HIGHLIGHT_NODE = 'data-is-highlight-node';\n/**\n * @type {string}\n */\nconst ATTR_DATA_ID = 'data-selection-id';\n\n/**\n * @see https://developer.mozilla.org/de/docs/Web/API/Node/compareDocumentPosition\n * @type {number}\n */\nconst DOCUMENT_POSITION_CONTAINED_BY = 16;\n\n\n/**\n * @type {string}\n */\nexport const EVENT_WRAPPED_NODE = 'wrapped-node';\n\n/**\n * Manages a single Render\n */\nclass Rendering extends RenderingEvents {\n\n /**\n * @param {Document} document\n * @param {object} options\n * @param {Node} context\n */\n constructor(document, options, context) {\n super(options, document);\n\n /**\n * ID of rendering, will be set on each element that is part of it\n * @type {String}\n */\n this.id = Util.guid();\n\n /**\n * StartContainer\n * @type {Node}\n */\n this.startContainer = null;\n\n /**\n * EndContainer\n * @type {Node}\n */\n this.endContainer = null;\n\n /**\n * @type {Node}\n */\n this.context = context || this.document;\n\n /**\n * Flag if this instance has been rendered\n * @type {RenderResult}\n * @private\n */\n this._renderResult = null;\n }\n\n /**\n * @returns {string} id of this rendering\n */\n getId() {\n return this.id;\n }\n\n /**\n * @param {string} id\n * @returns {Rendering}\n */\n setId(id) {\n this.id = id;\n\n if (this._renderResult) {\n this.wrapperNodes.forEach((node) => node.setAttribute(ATTR_DATA_ID, this.id));\n }\n\n return this;\n }\n\n /**\n * Creates a Template used as a wrapper and an indication that this is a highlight node\n * @param {Boolean} [omitHighlight]\n * @returns {Node}\n * @private\n */\n _createWrapTemplate(omitHighlight) {\n const el = this.document.createElement(TAG_NAME);\n const vTrue = \"true\";\n\n if (!omitHighlight) {\n el.className = this.options.className.join(' ');\n // save this marker instance to given node\n Rendering.setMarklibInstance(el, this);\n // keep track of highlight nodes\n this.wrapperNodes.push(el);\n el.setAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE, vTrue);\n el.setAttribute(ATTR_DATA_ID, this.getId());\n }\n el.setAttribute(DATA_IS_SELECTION, vTrue);\n\n return el;\n }\n\n /**\n * Creates a Template to use as start and end marks\n * @param {String} text\n * @returns {Node}\n * @private\n */\n _createStartEndWrapTemplate(text) {\n const el = this._createWrapTemplate();\n el.setAttribute(ATTR_DATA_START_END, 'true');\n el.textContent = text;\n return el;\n }\n\n\n /**\n * Creates Start or End Container Element\n * @param initialNode\n * @param text\n * @param offset\n * @param index\n * @returns {Node}\n */\n _createStartOrEndContainer(initialNode, text, offset, index) {\n const wrapper = this._createStartEndWrapTemplate(text);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(initialNode, index));\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n\n return wrapper;\n }\n\n /**\n * Wraps given element\n * @param {Node|HTMLElement} el\n * @param [optionalLength]\n * @param [optionalIndex]\n * @param [optionalIsSameNode]\n * @param {Boolean} [omitHighlight] set to true to prevent node to be a highlight node\n * @returns {Node}\n * @private\n */\n _createWrap(el, optionalLength, optionalIndex, optionalIsSameNode, omitHighlight) {\n const originalIndex = optionalIndex >= 0 ? optionalIndex : Util.calcIndex(el);\n const wrapper = this._createWrapTemplate(omitHighlight);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(el, originalIndex));\n const offsetLength = optionalLength >= 0 ? optionalLength : Util.getOffsetParentIfHas(el);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offsetLength);\n\n // Save a reference to original text node in wrapper\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, originalIndex);\n\n if (optionalIsSameNode) {\n wrapper.setAttribute(ATTR_DATA_START_END, ATTR_DATA_START_END);\n }\n const wrap = Util.wrap(el, wrapper);\n\n this.emit(EVENT_WRAPPED_NODE, el, wrap);\n\n return wrap;\n }\n\n /**\n * Create split container element\n * @param originalElement {Node} original text node element that is created a wrapper for\n * @param index\n * @param offset\n * @returns {Node}\n */\n _createSplitContainer(originalElement, index, offset) {\n const wrapper = this.document.createElement(TAG_NAME);\n wrapper.setAttribute(DATA_IS_SELECTION, 'true');\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(originalElement, index));\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n return wrapper;\n }\n\n /**\n * Walks the tree\n * @param start\n * @param endContainer\n * @param nextParent\n */\n walk(start, endContainer, nextParent) {\n let nextParentNode = start;\n while (nextParentNode && nextParentNode !== nextParent.parentNode) {\n const currentParentNode = nextParentNode;\n nextParentNode = nextParentNode.parentNode;\n if (this.wrapSiblings(currentParentNode.nextSibling, endContainer)) {\n break;\n }\n }\n }\n\n\n /**\n * Will Wrap all textNode siblings of a container (start) inside a defined Element (like a span)\n * If an Element node is found, it will wrap all children of this node inside a element as well.\n * It will stop if endContainer is found as a node\n *\n * @param {Node} start\n * @param {Node} endContainer\n * @returns {boolean} (true if endContainer was found)\n */\n wrapSiblings(start, endContainer) {\n let next = start;\n let found = false;\n\n // Capsule some logic\n const wrap = (n) => {\n const instance = Rendering.getMarklibInstance(n.parentNode);\n if (n.parentNode.hasAttribute(ATTR_DATA_START_END) &&\n n.parentNode.hasAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE) &&\n instance === this) {\n this._createWrap(n, undefined, undefined, undefined, true);\n } else {\n this._createWrap(n);\n }\n };\n\n // helper functions\n\n const wrapIf = (n) => {\n if (!Util.nodeIsEmpty(n)) {\n wrap(n);\n }\n };\n\n const walkIfContained = (e) => {\n if (e === endContainer) {\n return false;\n }\n if (Node.TEXT_NODE === e.nodeType) {\n wrapIf(e);\n }\n return true;\n };\n\n const walkIfNotContained = (el) => {\n wrapIf(el);\n };\n\n while (next !== null && next !== endContainer) {\n const currentNext = next;\n next = next.nextSibling;\n // Found a text node, directly wrap inside a span\n if (Node.TEXT_NODE === currentNext.nodeType) {\n wrapIf(currentNext);\n } else {\n if ((currentNext.compareDocumentPosition(endContainer) & DOCUMENT_POSITION_CONTAINED_BY)) {\n Util.walkDom(currentNext, walkIfContained);\n found = true;\n } else {\n Util.walkTextNodes(currentNext, walkIfNotContained);\n }\n if (found) {\n return true;\n }\n }\n }\n return found;\n }\n\n /**\n * Marks text of the same node\n * @param {Node} textNode\n * @param {int} startIndex\n * @param {int} endIndex\n * @private\n */\n _markTextSameNode(textNode, startIndex, endIndex) {\n const initialText = textNode.nodeValue;\n const initialIndex = Util.calcIndex(textNode);\n\n if (!initialText) {\n return false;\n }\n // If there is an unmarked part in the beginning of the text node,\n // cut off that part and put it into it's own textnode.\n if (startIndex > 0) {\n const textBefore = initialText.slice(0, startIndex);\n textNode.parentNode.insertBefore(this.document.createTextNode(textBefore), textNode);\n // wrap cutted text node:\n Util.wrap(textNode.previousSibling, this._createSplitContainer(textNode,\n initialIndex, Util.getOffsetParentIfHas(textNode)));\n }\n // If there is an unmarked part at the end of the text node,\n // cut off that part and put it into it's own textnode.\n if (endIndex < initialText.length) {\n const textAfter = initialText.slice(endIndex, initialText.length);\n textNode.parentNode.insertBefore(this.document.createTextNode(textAfter), textNode.nextSibling);\n Util.wrap(textNode.nextSibling, this._createSplitContainer(textNode,\n initialIndex, Util.getOffsetParentIfHas(textNode) + endIndex));\n }\n\n // Cutoff the unmarked parts and wrap the textnode into a span.\n textNode.nodeValue = initialText.slice(startIndex, endIndex);\n this.startContainer = this._createWrap(textNode,\n Util.getOffsetParentIfHas(textNode) + startIndex, initialIndex, true).parentNode;\n this.endContainer = this.startContainer;\n return this.startContainer;\n }\n\n\n /**\n * Marks text of end and start containers if start and end nodes are different\n * Important: There might be no end container!\n *\n * @param {Node} startContainer\n * @param {Node} endContainer\n * @param {int} startOffset\n * @param {int} endOffset\n * @returns {{startT: (Node), endT: (Node)}}\n * @private\n */\n _markTextDifferentNode(startContainer, endContainer, startOffset, endOffset) {\n // Get current for both start and end:\n const startContainerIndex = Util.calcIndex(startContainer);\n const endContainerIndex = Util.calcIndex(endContainer);\n\n // Split text\n const fullTextStartValue = startContainer.nodeValue;\n // init with startContainer because we may have not a text node here\n let startT = startContainer;\n\n if (undefined !== fullTextStartValue) {\n const partTextStartValue = fullTextStartValue.slice(startOffset, fullTextStartValue.length);\n // Set new text to start node\n startContainer.nodeValue = fullTextStartValue.slice(0, startOffset);\n\n const offsetStart = Util.getOffsetParentIfHas(startContainer);\n // Create a new node for splitted text, offset is the length of new startContainer.nodeValue:\n startT = this._createStartOrEndContainer(startContainer, partTextStartValue,\n offsetStart === startOffset ? offsetStart : offsetStart + startOffset, startContainerIndex);\n // Append this node after startContainer\n startContainer.parentNode.insertBefore(startT, startContainer.nextSibling);\n this.startContainer = startT;\n\n if (startContainer.nodeValue) {\n // Wrap start container in detection node, offset is always 0 or parent offset.\n Util.wrap(startContainer, this._createSplitContainer(startContainer, startContainerIndex,\n Util.getOffsetParentIfHas(startContainer)));\n }\n }\n\n // init with endContainer because we may have not a text node here\n let endT = endContainer;\n\n // 2. Extract end Text node,\n const fullTextEndValue = endContainer.nodeValue;\n // It's possible that end container value is null (if a whole paragraph is marked)\n if (undefined !== fullTextEndValue) {\n // Split text\n const partTextEndValue = fullTextEndValue.slice(0, endOffset);\n endContainer.nodeValue = fullTextEndValue.slice(endOffset, fullTextEndValue.length);\n // End Container start offset is always 0 or parent offset.\n endT = this._createStartOrEndContainer(endContainer, partTextEndValue,\n Util.getOffsetParentIfHas(endContainer), endContainerIndex);\n\n endContainer.parentNode.insertBefore(endT, endContainer);\n this.endContainer = endT;\n const offsetParent = Util.getOffsetParentIfHas(endContainer);\n Util.wrap(endContainer, this._createSplitContainer(endContainer, endContainerIndex,\n offsetParent === endOffset ? offsetParent : offsetParent + endOffset));\n }\n\n return {\n startT,\n endT\n };\n }\n\n /**\n * Renders a selection\n * @param {Node} startContainerP\n * @param {Node} endContainerP\n * @param {Node} commonAncestor\n * @param {int} startOffset\n * @param {int} endOffsetP\n * @returns RenderResult\n * @private\n */\n _renderWithElements(startContainerP, endContainerP, commonAncestor, startOffset, endOffsetP) {\n if (this._renderResult) {\n return this._renderResult;\n }\n let startContainer = startContainerP;\n let endContainer = endContainerP;\n let endOffset = endOffsetP;\n let outer = Util.parents(startContainer, commonAncestor);\n outer = outer[outer.length - 1];\n const contextContainer = outer ? outer : commonAncestor;\n\n // Same Element, means the selection is fully contained in a discrete area, start and endpoint have the same parent\n // but are different nodes:\n\n // Start and End offset have to be recalculated because dom might be already changed by highlighting in given node\n // 1: First detect real start offset in startContainer:\n\n // That works by selecting the highest wrapper and get original-offset-start data element, see \"findOriginalOffset\"\n // So first select that container:\n const originalStartOffset = Util.findOriginalOffset(startContainer);\n const originalEndOffset = Util.findOriginalOffset(endContainer);\n\n // We may run into Browser Bugs:\n\n // If both are not text nodes, use next sibling as endContainer\n if (startContainer.nodeType !== Node.TEXT_NODE && endContainer.nodeType !== Node.TEXT_NODE) {\n if (startContainer === endContainer) {\n endContainer = endContainer.nextElementSibling || endContainer;\n }\n }\n // IF start/end container is not type of text, select first child text node:\n // We run in some bugs with firefox here that selects no text-nodes sometimes, trying to fix this here\n // Sometimes does not work correctly... (specially when DOM was modified)\n if (startContainer.nodeType !== Node.TEXT_NODE) {\n Util.walkDom(startContainer, (el) => {\n if (el.nodeType === Node.TEXT_NODE) {\n startContainer = el;\n return false;\n }\n return true;\n });\n }\n\n if (endContainer.nodeType !== Node.TEXT_NODE) {\n let toFindNode = startContainer;\n\n if (endOffset === 0) {\n toFindNode = endContainer.previousElementSibling || startContainer;\n }\n\n // Get the last text node:\n const endContainerContents = Util.closest(toFindNode, ':not([' + DATA_IS_SELECTION + '])').childNodes;\n if (endContainerContents.length) {\n const r = endContainerContents[endContainerContents.length - 1];\n if (r.nodeType === Node.TEXT_NODE) {\n endContainer = r;\n endOffset = r.length;\n } else {\n let f = r.lastChild;\n while (f !== null) {\n if (f && f.nodeType === Node.TEXT_NODE) {\n endContainer = f;\n endOffset = f.length;\n if (f.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n endOffset = parseInt(f.parentNode\n .getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) + endOffset;\n }\n }\n f = f.lastChild;\n }\n }\n }\n // still no textNode?\n if (endContainer.nodeType !== Node.TEXT_NODE) {\n throw Error('Could not found endContainer, highlighting would be unstable');\n }\n }\n\n this._renderResult = new RenderResult(\n // Real offset is calculated by relative length and absolute length\n originalStartOffset + startOffset,\n originalEndOffset + endOffset,\n // get the path for this selection\n Util.getPath(startContainer, this.context),\n Util.getPath(endContainer, this.context)\n );\n\n this._renderResult.instance = this;\n\n\n this._renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, !!outer);\n\n return this._renderResult;\n }\n\n /**\n * Renders a given selection\n *\n * @param {Node} startContainer\n * @param {Node} endContainer\n * @param {int} startOffset\n * @param {int} endOffset\n * @param {Node} contextContainer\n * @param {Boolean} outer\n * @private\n */\n _renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, outer) {\n // if start and end-container are the same, mark text on the same node\n if (startContainer === endContainer) {\n this._markTextSameNode(startContainer, startOffset, endOffset);\n } else {\n const result = this._markTextDifferentNode(startContainer, endContainer, startOffset, endOffset);\n const index = this.wrapperNodes.indexOf(result.endT);\n // remove endContainer, to keep order:\n this.wrapperNodes.splice(index, 1);\n if (!outer) {\n this.wrapSiblings(result.startT.nextSibling, endContainer);\n } else {\n this.walk(result.startT, endContainer, contextContainer);\n }\n this.wrapperNodes.push(result.endT);\n }\n }\n\n /**\n * Prepares to render a Selection with path selectors\n * ```\n * A Path looks like this:\n *\n * #selector;#textnode;#offset\n * ``\n * @param {string} startPath\n * @param {string} endPath\n * @returns {string}\n */\n renderWithPath(startPath, endPath) {\n const startContainer = Util.deserializePath(startPath, this.context);\n const endContainer = Util.deserializePath(endPath, this.context);\n if (startContainer && endContainer && startContainer.node && endContainer.node) {\n const range = document.createRange();\n range.setStart(startContainer.node, startContainer.offset);\n range.setEnd(endContainer.node, endContainer.offset);\n const text = range.toString();\n const result = this.renderWithRange(range);\n result.text = text;\n return text;\n }\n throw new Error('Could not find start- and/or end-container in document');\n }\n\n /**\n * @returns {RenderResult}\n */\n get result() {\n return this._renderResult;\n }\n\n /**\n * Renders a result (that returned from `renderWithRange`)\n * @param {RenderResult|Object} result\n * @returns {string}\n */\n renderWithResult(result) {\n return this.renderWithPath(\n `${result.startContainerPath};${result.startOffset}`,\n `${result.endContainerPath};${result.endOffset}`);\n }\n\n /**\n * Prepares a selection with a range object\n * @param {Range} range\n * @returns {Object}\n */\n renderWithRange(range) {\n const text = range.toString();\n const result = this._renderWithElements(range.startContainer, range.endContainer,\n range.commonAncestorContainer, range.startOffset, range.endOffset);\n result.text = text;\n return result;\n }\n\n /**\n * Removes bindings and classNames to nodes\n */\n destroy() {\n this.wrapperNodes.forEach((node) => {\n delete node.marklibInstance;\n node.className = '';\n });\n this.removeEvent();\n }\n\n /**\n * @param {Node} el\n * @param {Rendering} instance\n * @returns {Node}\n */\n static setMarklibInstance(el, instance) {\n el.marklibInstance = instance;\n return el;\n }\n\n /**\n * @param {Node} el\n * @returns {Rendering|null|undefined}\n */\n static getMarklibInstance(el) {\n return el ? el.marklibInstance : null;\n }\n}\n\nexport default Rendering;\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/Rendering.js\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/get-prototype-of\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/get-prototype-of.js\n ** module id = 3\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.get-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.getPrototypeOf;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/get-prototype-of.js\n ** module id = 4\n ** module chunks = 0 1\n **/","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./$.to-object');\n\nrequire('./$.object-sap')('getPrototypeOf', function($getPrototypeOf){\n return function getPrototypeOf(it){\n return $getPrototypeOf(toObject(it));\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.get-prototype-of.js\n ** module id = 5\n ** module chunks = 0 1\n **/","// 7.1.13 ToObject(argument)\nvar defined = require('./$.defined');\nmodule.exports = function(it){\n return Object(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-object.js\n ** module id = 6\n ** module chunks = 0 1\n **/","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function(it){\n if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.defined.js\n ** module id = 7\n ** module chunks = 0 1\n **/","// most Object methods by ES6 should accept primitives\nvar $export = require('./$.export')\n , core = require('./$.core')\n , fails = require('./$.fails');\nmodule.exports = function(KEY, exec){\n var fn = (core.Object || {})[KEY] || Object[KEY]\n , exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-sap.js\n ** module id = 8\n ** module chunks = 0 1\n **/","var global = require('./$.global')\n , core = require('./$.core')\n , ctx = require('./$.ctx')\n , PROTOTYPE = 'prototype';\n\nvar $export = function(type, name, source){\n var IS_FORCED = type & $export.F\n , IS_GLOBAL = type & $export.G\n , IS_STATIC = type & $export.S\n , IS_PROTO = type & $export.P\n , IS_BIND = type & $export.B\n , IS_WRAP = type & $export.W\n , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n , key, own, out;\n if(IS_GLOBAL)source = name;\n for(key in source){\n // contains in native\n own = !IS_FORCED && target && key in target;\n if(own && key in exports)continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function(C){\n var F = function(param){\n return this instanceof C ? new C(param) : C(param);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\nmodule.exports = $export;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.export.js\n ** module id = 9\n ** module chunks = 0 1\n **/","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\nif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.global.js\n ** module id = 10\n ** module chunks = 0 1\n **/","var core = module.exports = {version: '1.2.6'};\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.core.js\n ** module id = 11\n ** module chunks = 0 1\n **/","// optional / simple context binding\nvar aFunction = require('./$.a-function');\nmodule.exports = function(fn, that, length){\n aFunction(fn);\n if(that === undefined)return fn;\n switch(length){\n case 1: return function(a){\n return fn.call(that, a);\n };\n case 2: return function(a, b){\n return fn.call(that, a, b);\n };\n case 3: return function(a, b, c){\n return fn.call(that, a, b, c);\n };\n }\n return function(/* ...args */){\n return fn.apply(that, arguments);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.ctx.js\n ** module id = 12\n ** module chunks = 0 1\n **/","module.exports = function(it){\n if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.a-function.js\n ** module id = 13\n ** module chunks = 0 1\n **/","module.exports = function(exec){\n try {\n return !!exec();\n } catch(e){\n return true;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.fails.js\n ** module id = 14\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/classCallCheck.js\n ** module id = 15\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\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 (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/createClass.js\n ** module id = 16\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/define-property.js\n ** module id = 17\n ** module chunks = 0 1\n **/","var $ = require('../../modules/$');\nmodule.exports = function defineProperty(it, key, desc){\n return $.setDesc(it, key, desc);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/define-property.js\n ** module id = 18\n ** module chunks = 0 1\n **/","var $Object = Object;\nmodule.exports = {\n create: $Object.create,\n getProto: $Object.getPrototypeOf,\n isEnum: {}.propertyIsEnumerable,\n getDesc: $Object.getOwnPropertyDescriptor,\n setDesc: $Object.defineProperty,\n setDescs: $Object.defineProperties,\n getKeys: $Object.keys,\n getNames: $Object.getOwnPropertyNames,\n getSymbols: $Object.getOwnPropertySymbols,\n each: [].forEach\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.js\n ** module id = 19\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/possibleConstructorReturn.js\n ** module id = 20\n ** module chunks = 0 1\n **/","\"use strict\";\n\nvar _typeof = typeof _Symbol === \"function\" && typeof _Symbol$iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _Symbol === \"function\" && obj.constructor === _Symbol ? \"symbol\" : typeof obj; };\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/typeof.js\n ** module id = 21\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol/iterator.js\n ** module id = 22\n ** module chunks = 0 1\n **/","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/$.wks')('iterator');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/iterator.js\n ** module id = 23\n ** module chunks = 0 1\n **/","'use strict';\nvar $at = require('./$.string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./$.iter-define')(String, 'String', function(iterated){\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , index = this._i\n , point;\n if(index >= O.length)return {value: undefined, done: true};\n point = $at(O, index);\n this._i += point.length;\n return {value: point, done: false};\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.string.iterator.js\n ** module id = 24\n ** module chunks = 0 1\n **/","var toInteger = require('./$.to-integer')\n , defined = require('./$.defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function(TO_STRING){\n return function(that, pos){\n var s = String(defined(that))\n , i = toInteger(pos)\n , l = s.length\n , a, b;\n if(i < 0 || i >= l)return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.string-at.js\n ** module id = 25\n ** module chunks = 0 1\n **/","// 7.1.4 ToInteger\nvar ceil = Math.ceil\n , floor = Math.floor;\nmodule.exports = function(it){\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-integer.js\n ** module id = 26\n ** module chunks = 0 1\n **/","'use strict';\nvar LIBRARY = require('./$.library')\n , $export = require('./$.export')\n , redefine = require('./$.redefine')\n , hide = require('./$.hide')\n , has = require('./$.has')\n , Iterators = require('./$.iterators')\n , $iterCreate = require('./$.iter-create')\n , setToStringTag = require('./$.set-to-string-tag')\n , getProto = require('./$').getProto\n , ITERATOR = require('./$.wks')('iterator')\n , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`\n , FF_ITERATOR = '@@iterator'\n , KEYS = 'keys'\n , VALUES = 'values';\n\nvar returnThis = function(){ return this; };\n\nmodule.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){\n $iterCreate(Constructor, NAME, next);\n var getMethod = function(kind){\n if(!BUGGY && kind in proto)return proto[kind];\n switch(kind){\n case KEYS: return function keys(){ return new Constructor(this, kind); };\n case VALUES: return function values(){ return new Constructor(this, kind); };\n } return function entries(){ return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator'\n , DEF_VALUES = DEFAULT == VALUES\n , VALUES_BUG = false\n , proto = Base.prototype\n , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]\n , $default = $native || getMethod(DEFAULT)\n , methods, key;\n // Fix native\n if($native){\n var IteratorPrototype = getProto($default.call(new Base));\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // FF fix\n if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);\n // fix Array#{values, @@iterator}.name in V8 / FF\n if(DEF_VALUES && $native.name !== VALUES){\n VALUES_BUG = true;\n $default = function values(){ return $native.call(this); };\n }\n }\n // Define iterator\n if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if(DEFAULT){\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: !DEF_VALUES ? $default : getMethod('entries')\n };\n if(FORCED)for(key in methods){\n if(!(key in proto))redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-define.js\n ** module id = 27\n ** module chunks = 0 1\n **/","module.exports = true;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.library.js\n ** module id = 28\n ** module chunks = 0 1\n **/","module.exports = require('./$.hide');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine.js\n ** module id = 29\n ** module chunks = 0 1\n **/","var $ = require('./$')\n , createDesc = require('./$.property-desc');\nmodule.exports = require('./$.descriptors') ? function(object, key, value){\n return $.setDesc(object, key, createDesc(1, value));\n} : function(object, key, value){\n object[key] = value;\n return object;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.hide.js\n ** module id = 30\n ** module chunks = 0 1\n **/","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\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.property-desc.js\n ** module id = 31\n ** module chunks = 0 1\n **/","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./$.fails')(function(){\n return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.descriptors.js\n ** module id = 32\n ** module chunks = 0 1\n **/","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function(it, key){\n return hasOwnProperty.call(it, key);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.has.js\n ** module id = 33\n ** module chunks = 0 1\n **/","module.exports = {};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iterators.js\n ** module id = 34\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , descriptor = require('./$.property-desc')\n , setToStringTag = require('./$.set-to-string-tag')\n , IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./$.hide')(IteratorPrototype, require('./$.wks')('iterator'), function(){ return this; });\n\nmodule.exports = function(Constructor, NAME, next){\n Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-create.js\n ** module id = 35\n ** module chunks = 0 1\n **/","var def = require('./$').setDesc\n , has = require('./$.has')\n , TAG = require('./$.wks')('toStringTag');\n\nmodule.exports = function(it, tag, stat){\n if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-to-string-tag.js\n ** module id = 36\n ** module chunks = 0 1\n **/","var store = require('./$.shared')('wks')\n , uid = require('./$.uid')\n , Symbol = require('./$.global').Symbol;\nmodule.exports = function(name){\n return store[name] || (store[name] =\n Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.wks.js\n ** module id = 37\n ** module chunks = 0 1\n **/","var global = require('./$.global')\n , SHARED = '__core-js_shared__'\n , store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function(key){\n return store[key] || (store[key] = {});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.shared.js\n ** module id = 38\n ** module chunks = 0 1\n **/","var id = 0\n , px = Math.random();\nmodule.exports = function(key){\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.uid.js\n ** module id = 39\n ** module chunks = 0 1\n **/","require('./es6.array.iterator');\nvar Iterators = require('./$.iterators');\nIterators.NodeList = Iterators.HTMLCollection = Iterators.Array;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/web.dom.iterable.js\n ** module id = 40\n ** module chunks = 0 1\n **/","'use strict';\nvar addToUnscopables = require('./$.add-to-unscopables')\n , step = require('./$.iter-step')\n , Iterators = require('./$.iterators')\n , toIObject = require('./$.to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./$.iter-define')(Array, 'Array', function(iterated, kind){\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , kind = this._k\n , index = this._i++;\n if(!O || index >= O.length){\n this._t = undefined;\n return step(1);\n }\n if(kind == 'keys' )return step(0, index);\n if(kind == 'values')return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.array.iterator.js\n ** module id = 41\n ** module chunks = 0 1\n **/","module.exports = function(){ /* empty */ };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.add-to-unscopables.js\n ** module id = 42\n ** module chunks = 0 1\n **/","module.exports = function(done, value){\n return {value: value, done: !!done};\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-step.js\n ** module id = 43\n ** module chunks = 0 1\n **/","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./$.iobject')\n , defined = require('./$.defined');\nmodule.exports = function(it){\n return IObject(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-iobject.js\n ** module id = 44\n ** module chunks = 0 1\n **/","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./$.cof');\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iobject.js\n ** module id = 45\n ** module chunks = 0 1\n **/","var toString = {}.toString;\n\nmodule.exports = function(it){\n return toString.call(it).slice(8, -1);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.cof.js\n ** module id = 46\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol.js\n ** module id = 47\n ** module chunks = 0 1\n **/","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nmodule.exports = require('../../modules/$.core').Symbol;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/index.js\n ** module id = 48\n ** module chunks = 0 1\n **/","'use strict';\n// ECMAScript 6 symbols shim\nvar $ = require('./$')\n , global = require('./$.global')\n , has = require('./$.has')\n , DESCRIPTORS = require('./$.descriptors')\n , $export = require('./$.export')\n , redefine = require('./$.redefine')\n , $fails = require('./$.fails')\n , shared = require('./$.shared')\n , setToStringTag = require('./$.set-to-string-tag')\n , uid = require('./$.uid')\n , wks = require('./$.wks')\n , keyOf = require('./$.keyof')\n , $names = require('./$.get-names')\n , enumKeys = require('./$.enum-keys')\n , isArray = require('./$.is-array')\n , anObject = require('./$.an-object')\n , toIObject = require('./$.to-iobject')\n , createDesc = require('./$.property-desc')\n , getDesc = $.getDesc\n , setDesc = $.setDesc\n , _create = $.create\n , getNames = $names.get\n , $Symbol = global.Symbol\n , $JSON = global.JSON\n , _stringify = $JSON && $JSON.stringify\n , setter = false\n , HIDDEN = wks('_hidden')\n , isEnum = $.isEnum\n , SymbolRegistry = shared('symbol-registry')\n , AllSymbols = shared('symbols')\n , useNative = typeof $Symbol == 'function'\n , ObjectProto = Object.prototype;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n return _create(setDesc({}, 'a', {\n get: function(){ return setDesc(this, 'a', {value: 7}).a; }\n })).a != 7;\n}) ? function(it, key, D){\n var protoDesc = getDesc(ObjectProto, key);\n if(protoDesc)delete ObjectProto[key];\n setDesc(it, key, D);\n if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);\n} : setDesc;\n\nvar wrap = function(tag){\n var sym = AllSymbols[tag] = _create($Symbol.prototype);\n sym._k = tag;\n DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {\n configurable: true,\n set: function(value){\n if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n }\n });\n return sym;\n};\n\nvar isSymbol = function(it){\n return typeof it == 'symbol';\n};\n\nvar $defineProperty = function defineProperty(it, key, D){\n if(D && has(AllSymbols, key)){\n if(!D.enumerable){\n if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n D = _create(D, {enumerable: createDesc(0, false)});\n } return setSymbolDesc(it, key, D);\n } return setDesc(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P){\n anObject(it);\n var keys = enumKeys(P = toIObject(P))\n , i = 0\n , l = keys.length\n , key;\n while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P){\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n var E = isEnum.call(this, key);\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]\n ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n var D = getDesc(it = toIObject(it), key);\n if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);\n return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);\n return result;\n};\nvar $stringify = function stringify(it){\n if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n var args = [it]\n , i = 1\n , $$ = arguments\n , replacer, $replacer;\n while($$.length > i)args.push($$[i++]);\n replacer = args[1];\n if(typeof replacer == 'function')$replacer = replacer;\n if($replacer || !isArray(replacer))replacer = function(key, value){\n if($replacer)value = $replacer.call(this, key, value);\n if(!isSymbol(value))return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n};\nvar buggyJSON = $fails(function(){\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n});\n\n// 19.4.1.1 Symbol([description])\nif(!useNative){\n $Symbol = function Symbol(){\n if(isSymbol(this))throw TypeError('Symbol is not a constructor');\n return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));\n };\n redefine($Symbol.prototype, 'toString', function toString(){\n return this._k;\n });\n\n isSymbol = function(it){\n return it instanceof $Symbol;\n };\n\n $.create = $create;\n $.isEnum = $propertyIsEnumerable;\n $.getDesc = $getOwnPropertyDescriptor;\n $.setDesc = $defineProperty;\n $.setDescs = $defineProperties;\n $.getNames = $names.get = $getOwnPropertyNames;\n $.getSymbols = $getOwnPropertySymbols;\n\n if(DESCRIPTORS && !require('./$.library')){\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n}\n\nvar symbolStatics = {\n // 19.4.2.1 Symbol.for(key)\n 'for': function(key){\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(key){\n return keyOf(SymbolRegistry, key);\n },\n useSetter: function(){ setter = true; },\n useSimple: function(){ setter = false; }\n};\n// 19.4.2.2 Symbol.hasInstance\n// 19.4.2.3 Symbol.isConcatSpreadable\n// 19.4.2.4 Symbol.iterator\n// 19.4.2.6 Symbol.match\n// 19.4.2.8 Symbol.replace\n// 19.4.2.9 Symbol.search\n// 19.4.2.10 Symbol.species\n// 19.4.2.11 Symbol.split\n// 19.4.2.12 Symbol.toPrimitive\n// 19.4.2.13 Symbol.toStringTag\n// 19.4.2.14 Symbol.unscopables\n$.each.call((\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +\n 'species,split,toPrimitive,toStringTag,unscopables'\n).split(','), function(it){\n var sym = wks(it);\n symbolStatics[it] = useNative ? sym : wrap(sym);\n});\n\nsetter = true;\n\n$export($export.G + $export.W, {Symbol: $Symbol});\n\n$export($export.S, 'Symbol', symbolStatics);\n\n$export($export.S + $export.F * !useNative, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});\n\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.symbol.js\n ** module id = 49\n ** module chunks = 0 1\n **/","var $ = require('./$')\n , toIObject = require('./$.to-iobject');\nmodule.exports = function(object, el){\n var O = toIObject(object)\n , keys = $.getKeys(O)\n , length = keys.length\n , index = 0\n , key;\n while(length > index)if(O[key = keys[index++]] === el)return key;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.keyof.js\n ** module id = 50\n ** module chunks = 0 1\n **/","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./$.to-iobject')\n , getNames = require('./$').getNames\n , toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function(it){\n try {\n return getNames(it);\n } catch(e){\n return windowNames.slice();\n }\n};\n\nmodule.exports.get = function getOwnPropertyNames(it){\n if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);\n return getNames(toIObject(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.get-names.js\n ** module id = 51\n ** module chunks = 0 1\n **/","// all enumerable object keys, includes symbols\nvar $ = require('./$');\nmodule.exports = function(it){\n var keys = $.getKeys(it)\n , getSymbols = $.getSymbols;\n if(getSymbols){\n var symbols = getSymbols(it)\n , isEnum = $.isEnum\n , i = 0\n , key;\n while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);\n }\n return keys;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.enum-keys.js\n ** module id = 52\n ** module chunks = 0 1\n **/","// 7.2.2 IsArray(argument)\nvar cof = require('./$.cof');\nmodule.exports = Array.isArray || function(arg){\n return cof(arg) == 'Array';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array.js\n ** module id = 53\n ** module chunks = 0 1\n **/","var isObject = require('./$.is-object');\nmodule.exports = function(it){\n if(!isObject(it))throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.an-object.js\n ** module id = 54\n ** module chunks = 0 1\n **/","module.exports = function(it){\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-object.js\n ** module id = 55\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/inherits.js\n ** module id = 57\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/set-prototype-of.js\n ** module id = 58\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.setPrototypeOf;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/set-prototype-of.js\n ** module id = 59\n ** module chunks = 0 1\n **/","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./$.export');\n$export($export.S, 'Object', {setPrototypeOf: require('./$.set-proto').set});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.set-prototype-of.js\n ** module id = 60\n ** module chunks = 0 1\n **/","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar getDesc = require('./$').getDesc\n , isObject = require('./$.is-object')\n , anObject = require('./$.an-object');\nvar check = function(O, proto){\n anObject(O);\n if(!isObject(proto) && proto !== null)throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function(test, buggy, set){\n try {\n set = require('./$.ctx')(Function.call, getDesc(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch(e){ buggy = true; }\n return function setPrototypeOf(O, proto){\n check(O, proto);\n if(buggy)O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-proto.js\n ** module id = 61\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/create.js\n ** module id = 62\n ** module chunks = 0 1\n **/","var $ = require('../../modules/$');\nmodule.exports = function create(P, D){\n return $.create(P, D);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/create.js\n ** module id = 63\n ** module chunks = 0 1\n **/","/**\n * A Render Result\n */\nexport default class RenderResult {\n /**\n * @param {int} startOffset\n * @param {int} endOffset\n * @param {String} startContainerPath\n * @param {String} endContainerPath\n */\n constructor(startOffset, endOffset, startContainerPath, endContainerPath) {\n this.startOffset = startOffset;\n this.endOffset = endOffset;\n this.startContainerPath = startContainerPath;\n this.endContainerPath = endContainerPath;\n this._renderingInstance = null;\n }\n\n /**\n * @param {Object} result\n * @return RenderResult\n */\n static fromObject(result) {\n return new RenderResult(\n result.startOffset,\n result.endOffset,\n result.startContainerPath,\n result.endContainerPath\n );\n }\n\n /**\n * @returns {Object}\n */\n serialize() {\n return {\n startOffset: this.startOffset,\n endOffset: this.endOffset,\n startContainerPath: this.startContainerPath,\n endContainerPath: this.endContainerPath\n };\n }\n\n /**\n * @param {String} text\n */\n set text(text) {\n this._text = text;\n }\n\n /**\n * @returns {String}\n */\n get text() {\n return this._text;\n }\n\n /**\n * @returns {null|Rendering}\n */\n get instance() {\n return this._renderingInstance;\n }\n\n /**\n * @param {null|Rendering} instance\n */\n set instance(instance) {\n this._renderingInstance = instance;\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/RenderResult.js\n **/","/* global Set */\n\nimport EventEmitter from 'wolfy87-eventemitter';\nimport Rendering from './Rendering';\nimport Util from './util/Util';\n\n/**\n * @type {string}\n */\nexport const EVENT_CLICK = 'click';\n\n/**\n * @type {string}\n */\nexport const EVENT_MOUSEENTER = 'hover-enter';\n\n/**\n * @type {string}\n */\nexport const EVENT_MOUSELEAVE = 'hover-leave';\n\n/**\n * @type {string}\n */\nexport const EVENT_PART_TREE_ENTER = 'tree-enter';\n\n/**\n * @type {string}\n */\nexport const EVENT_PART_TREE_LEAVE = 'tree-leave';\n\n/**\n * Generic Event Handlings for Renderer\n */\nexport default class RenderingEvents extends EventEmitter {\n\n /**\n * @param {Object} options\n * @param {Document} document\n */\n constructor(options, document) {\n super();\n\n /**\n * Options\n * @type {Object}\n */\n this.options = {\n hoverClass: 'marklib--hover',\n treeClass: 'marklib--tree',\n className: ['marking']\n };\n\n this.options = Object.assign(this.options, options || {});\n\n if (typeof this.options.className === 'string') {\n this.options.className = this.options.className.split(' ');\n }\n\n /**\n * A collection of all nodes that are part of all events\n * @type {Array}\n */\n this.wrapperNodes = [];\n\n this._registerEvents(document);\n\n /**\n * @type {Document}\n */\n this.document = document;\n }\n\n /**\n * Constructs a new Range from rendered result\n * @returns {Range}\n */\n get range() {\n const range = this.document.createRange();\n const textNodes = [];\n\n this.wrapperNodes.forEach((wrapper) => {\n Util.walkTextNodes(wrapper, (node) => {\n textNodes.push(node);\n });\n });\n\n if (textNodes.length > 0) {\n const lastTextNode = textNodes[textNodes.length - 1];\n range.setStart(textNodes[0], 0);\n range.setEnd(lastTextNode, lastTextNode.length);\n return range;\n }\n\n return null;\n }\n\n /**\n * Will register events if not already bind.\n * @param {Document} document\n * @private\n */\n _registerEvents(document) {\n this.on(EVENT_MOUSEENTER, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.add(this.options.hoverClass);\n });\n });\n\n this.on(EVENT_MOUSELEAVE, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.remove(this.options.hoverClass);\n });\n });\n\n this.on(EVENT_PART_TREE_ENTER, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.add(this.options.treeClass);\n });\n });\n\n this.on(EVENT_PART_TREE_LEAVE, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.remove(this.options.treeClass);\n });\n });\n\n\n if (!global.__MARKLIB_EVENTS__) {\n global.__MARKLIB_EVENTS__ = true;\n (function init() {\n const currentHoverInstances = new Set();\n const betweenInstances = new Set();\n\n function checkMarklibInstance(e) {\n const instance = Rendering.getMarklibInstance(e);\n // instanceof check will fail if used in test scenario where different DOMs are used\n // see also http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/\n return instance && (instance instanceof Rendering || 'wrapperNodes' in instance);\n }\n\n function closestInstance(e) {\n const closest = Util.closestCallback(\n e.target,\n (thisE) => checkMarklibInstance(thisE)\n );\n if (typeof closest === 'object') {\n return Rendering.getMarklibInstance(closest);\n }\n return false;\n }\n\n function getInstancesBetween(e, instance) {\n return Util.parentsCallback(\n e.target,\n (el) => checkMarklibInstance(el) && Rendering.getMarklibInstance(el) !== instance\n ).map(el => Rendering.getMarklibInstance(el));\n }\n\n function mouseOutClear() {\n currentHoverInstances.forEach((thisInstance) => {\n thisInstance.emit(EVENT_MOUSELEAVE);\n });\n currentHoverInstances.clear();\n\n betweenInstances.forEach((thisInstance) => {\n thisInstance.emit(EVENT_PART_TREE_LEAVE);\n });\n\n betweenInstances.clear();\n }\n\n /**\n * @param {Event} e\n * @returns {Array|boolean}\n */\n function findTarget(e) {\n let instance = closestInstance(e);\n if (instance) {\n const between = getInstancesBetween(e, instance);\n if (e.target.textContent !== instance.result.text && between.length > 0) {\n let allInstances = between;\n allInstances.unshift(instance);\n // take the smallest selection\n allInstances = allInstances.sort(\n (a, b) => a.result.text.length < b.result.text.length ? -1 : 1\n );\n instance = allInstances[0];\n }\n\n return [instance, between];\n }\n return false;\n }\n\n document.addEventListener('click', (e) => {\n const target = findTarget(e);\n if (target) {\n target[0].emit(EVENT_CLICK, e, target[1]);\n }\n }, true);\n\n document.addEventListener('mouseover', (e) => {\n const target = findTarget(e);\n if (target) {\n const [instance, between] = target;\n // find instances that lay in between the node\n mouseOutClear();\n between.forEach((instanceBetween) => {\n betweenInstances.add(instanceBetween);\n instanceBetween.emit(EVENT_PART_TREE_ENTER, e, between);\n });\n instance.emit(EVENT_MOUSEENTER, e, between);\n currentHoverInstances.add(instance);\n } else {\n mouseOutClear();\n }\n }, true);\n })();\n }\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/RenderingEvents.js\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _isIterable2 = require(\"../core-js/is-iterable\");\n\nvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\nvar _getIterator2 = require(\"../core-js/get-iterator\");\n\nvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if ((0, _isIterable3.default)(Object(arr))) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/slicedToArray.js\n ** module id = 66\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/is-iterable\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/is-iterable.js\n ** module id = 67\n ** module chunks = 0 1\n **/","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.is-iterable');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/is-iterable.js\n ** module id = 68\n ** module chunks = 0 1\n **/","var classof = require('./$.classof')\n , ITERATOR = require('./$.wks')('iterator')\n , Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').isIterable = function(it){\n var O = Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n || Iterators.hasOwnProperty(classof(O));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.is-iterable.js\n ** module id = 69\n ** module chunks = 0 1\n **/","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./$.cof')\n , TAG = require('./$.wks')('toStringTag')\n // ES3 wrong here\n , ARG = cof(function(){ return arguments; }()) == 'Arguments';\n\nmodule.exports = function(it){\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = (O = Object(it))[TAG]) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.classof.js\n ** module id = 70\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/get-iterator\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/get-iterator.js\n ** module id = 71\n ** module chunks = 0 1\n **/","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.get-iterator');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/get-iterator.js\n ** module id = 72\n ** module chunks = 0 1\n **/","var anObject = require('./$.an-object')\n , get = require('./core.get-iterator-method');\nmodule.exports = require('./$.core').getIterator = function(it){\n var iterFn = get(it);\n if(typeof iterFn != 'function')throw TypeError(it + ' is not iterable!');\n return anObject(iterFn.call(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.get-iterator.js\n ** module id = 73\n ** module chunks = 0 1\n **/","var classof = require('./$.classof')\n , ITERATOR = require('./$.wks')('iterator')\n , Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').getIteratorMethod = function(it){\n if(it != undefined)return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.get-iterator-method.js\n ** module id = 74\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/set\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/set.js\n ** module id = 75\n ** module chunks = 0 1\n **/","require('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.set');\nrequire('../modules/es7.set.to-json');\nmodule.exports = require('../modules/$.core').Set;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/set.js\n ** module id = 76\n ** module chunks = 0 1\n **/","'use strict';\nvar strong = require('./$.collection-strong');\n\n// 23.2 Set Objects\nrequire('./$.collection')('Set', function(get){\n return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.2.3.1 Set.prototype.add(value)\n add: function add(value){\n return strong.def(this, value = value === 0 ? 0 : value, value);\n }\n}, strong);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.set.js\n ** module id = 77\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , hide = require('./$.hide')\n , redefineAll = require('./$.redefine-all')\n , ctx = require('./$.ctx')\n , strictNew = require('./$.strict-new')\n , defined = require('./$.defined')\n , forOf = require('./$.for-of')\n , $iterDefine = require('./$.iter-define')\n , step = require('./$.iter-step')\n , ID = require('./$.uid')('id')\n , $has = require('./$.has')\n , isObject = require('./$.is-object')\n , setSpecies = require('./$.set-species')\n , DESCRIPTORS = require('./$.descriptors')\n , isExtensible = Object.isExtensible || isObject\n , SIZE = DESCRIPTORS ? '_s' : 'size'\n , id = 0;\n\nvar fastKey = function(it, create){\n // return primitive with prefix\n if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if(!$has(it, ID)){\n // can't set id to frozen object\n if(!isExtensible(it))return 'F';\n // not necessary to add id\n if(!create)return 'E';\n // add missing object id\n hide(it, ID, ++id);\n // return object id with prefix\n } return 'O' + it[ID];\n};\n\nvar getEntry = function(that, key){\n // fast case\n var index = fastKey(key), entry;\n if(index !== 'F')return that._i[index];\n // frozen object case\n for(entry = that._f; entry; entry = entry.n){\n if(entry.k == key)return entry;\n }\n};\n\nmodule.exports = {\n getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n var C = wrapper(function(that, iterable){\n strictNew(that, C, NAME);\n that._i = $.create(null); // index\n that._f = undefined; // first entry\n that._l = undefined; // last entry\n that[SIZE] = 0; // size\n if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear(){\n for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){\n entry.r = true;\n if(entry.p)entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\n 'delete': function(key){\n var that = this\n , entry = getEntry(that, key);\n if(entry){\n var next = entry.n\n , prev = entry.p;\n delete that._i[entry.i];\n entry.r = true;\n if(prev)prev.n = next;\n if(next)next.p = prev;\n if(that._f == entry)that._f = next;\n if(that._l == entry)that._l = prev;\n that[SIZE]--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /*, that = undefined */){\n var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3)\n , entry;\n while(entry = entry ? entry.n : this._f){\n f(entry.v, entry.k, this);\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key){\n return !!getEntry(this, key);\n }\n });\n if(DESCRIPTORS)$.setDesc(C.prototype, 'size', {\n get: function(){\n return defined(this[SIZE]);\n }\n });\n return C;\n },\n def: function(that, key, value){\n var entry = getEntry(that, key)\n , prev, index;\n // change existing entry\n if(entry){\n entry.v = value;\n // create new entry\n } else {\n that._l = entry = {\n i: index = fastKey(key, true), // <- index\n k: key, // <- key\n v: value, // <- value\n p: prev = that._l, // <- previous entry\n n: undefined, // <- next entry\n r: false // <- removed\n };\n if(!that._f)that._f = entry;\n if(prev)prev.n = entry;\n that[SIZE]++;\n // add to index\n if(index !== 'F')that._i[index] = entry;\n } return that;\n },\n getEntry: getEntry,\n setStrong: function(C, NAME, IS_MAP){\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n $iterDefine(C, NAME, function(iterated, kind){\n this._t = iterated; // target\n this._k = kind; // kind\n this._l = undefined; // previous\n }, function(){\n var that = this\n , kind = that._k\n , entry = that._l;\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n // get next entry\n if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){\n // or finish the iteration\n that._t = undefined;\n return step(1);\n }\n // return step by kind\n if(kind == 'keys' )return step(0, entry.k);\n if(kind == 'values')return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(NAME);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection-strong.js\n ** module id = 78\n ** module chunks = 0 1\n **/","var redefine = require('./$.redefine');\nmodule.exports = function(target, src){\n for(var key in src)redefine(target, key, src[key]);\n return target;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine-all.js\n ** module id = 79\n ** module chunks = 0 1\n **/","module.exports = function(it, Constructor, name){\n if(!(it instanceof Constructor))throw TypeError(name + \": use the 'new' operator!\");\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.strict-new.js\n ** module id = 80\n ** module chunks = 0 1\n **/","var ctx = require('./$.ctx')\n , call = require('./$.iter-call')\n , isArrayIter = require('./$.is-array-iter')\n , anObject = require('./$.an-object')\n , toLength = require('./$.to-length')\n , getIterFn = require('./core.get-iterator-method');\nmodule.exports = function(iterable, entries, fn, that){\n var iterFn = getIterFn(iterable)\n , f = ctx(fn, that, entries ? 2 : 1)\n , index = 0\n , length, step, iterator;\n if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){\n entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){\n call(iterator, f, step.value, entries);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.for-of.js\n ** module id = 81\n ** module chunks = 0 1\n **/","// call something on iterator step with safe closing on error\nvar anObject = require('./$.an-object');\nmodule.exports = function(iterator, fn, value, entries){\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch(e){\n var ret = iterator['return'];\n if(ret !== undefined)anObject(ret.call(iterator));\n throw e;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-call.js\n ** module id = 82\n ** module chunks = 0 1\n **/","// check on default Array iterator\nvar Iterators = require('./$.iterators')\n , ITERATOR = require('./$.wks')('iterator')\n , ArrayProto = Array.prototype;\n\nmodule.exports = function(it){\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array-iter.js\n ** module id = 83\n ** module chunks = 0 1\n **/","// 7.1.15 ToLength\nvar toInteger = require('./$.to-integer')\n , min = Math.min;\nmodule.exports = function(it){\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-length.js\n ** module id = 84\n ** module chunks = 0 1\n **/","'use strict';\nvar core = require('./$.core')\n , $ = require('./$')\n , DESCRIPTORS = require('./$.descriptors')\n , SPECIES = require('./$.wks')('species');\n\nmodule.exports = function(KEY){\n var C = core[KEY];\n if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {\n configurable: true,\n get: function(){ return this; }\n });\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-species.js\n ** module id = 85\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , global = require('./$.global')\n , $export = require('./$.export')\n , fails = require('./$.fails')\n , hide = require('./$.hide')\n , redefineAll = require('./$.redefine-all')\n , forOf = require('./$.for-of')\n , strictNew = require('./$.strict-new')\n , isObject = require('./$.is-object')\n , setToStringTag = require('./$.set-to-string-tag')\n , DESCRIPTORS = require('./$.descriptors');\n\nmodule.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){\n var Base = global[NAME]\n , C = Base\n , ADDER = IS_MAP ? 'set' : 'add'\n , proto = C && C.prototype\n , O = {};\n if(!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){\n new C().entries().next();\n }))){\n // create collection constructor\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n redefineAll(C.prototype, methods);\n } else {\n C = wrapper(function(target, iterable){\n strictNew(target, C, NAME);\n target._c = new Base;\n if(iterable != undefined)forOf(iterable, IS_MAP, target[ADDER], target);\n });\n $.each.call('add,clear,delete,forEach,get,has,set,keys,values,entries'.split(','),function(KEY){\n var IS_ADDER = KEY == 'add' || KEY == 'set';\n if(KEY in proto && !(IS_WEAK && KEY == 'clear'))hide(C.prototype, KEY, function(a, b){\n if(!IS_ADDER && IS_WEAK && !isObject(a))return KEY == 'get' ? undefined : false;\n var result = this._c[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n });\n if('size' in proto)$.setDesc(C.prototype, 'size', {\n get: function(){\n return this._c.size;\n }\n });\n }\n\n setToStringTag(C, NAME);\n\n O[NAME] = C;\n $export($export.G + $export.W + $export.F, O);\n\n if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);\n\n return C;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection.js\n ** module id = 86\n ** module chunks = 0 1\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export = require('./$.export');\n\n$export($export.P, 'Set', {toJSON: require('./$.collection-to-json')('Set')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es7.set.to-json.js\n ** module id = 87\n ** module chunks = 0 1\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar forOf = require('./$.for-of')\n , classof = require('./$.classof');\nmodule.exports = function(NAME){\n return function toJSON(){\n if(classof(this) != NAME)throw TypeError(NAME + \"#toJSON isn't generic\");\n var arr = [];\n forOf(this, false, arr.push, arr);\n return arr;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection-to-json.js\n ** module id = 88\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/assign.js\n ** module id = 89\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/$.core').Object.assign;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/assign.js\n ** module id = 90\n ** module chunks = 0 1\n **/","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./$.export');\n\n$export($export.S + $export.F, 'Object', {assign: require('./$.object-assign')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.assign.js\n ** module id = 91\n ** module chunks = 0 1\n **/","// 19.1.2.1 Object.assign(target, source, ...)\nvar $ = require('./$')\n , toObject = require('./$.to-object')\n , IObject = require('./$.iobject');\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = require('./$.fails')(function(){\n var a = Object.assign\n , A = {}\n , B = {}\n , S = Symbol()\n , K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function(k){ B[k] = k; });\n return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n var T = toObject(target)\n , $$ = arguments\n , $$len = $$.length\n , index = 1\n , getKeys = $.getKeys\n , getSymbols = $.getSymbols\n , isEnum = $.isEnum;\n while($$len > index){\n var S = IObject($$[index++])\n , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n , length = keys.length\n , j = 0\n , key;\n while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n }\n return T;\n} : Object.assign;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-assign.js\n ** module id = 92\n ** module chunks = 0 1\n **/","/*!\n * EventEmitter v4.2.11 - git.io/ee\n * Unlicense - http://unlicense.org/\n * Oliver Caldwell - http://oli.me.uk/\n * @preserve\n */\n\n;(function () {\n 'use strict';\n\n /**\n * Class for managing events.\n * Can be extended to provide event functionality in other classes.\n *\n * @class EventEmitter Manages event registering and emitting.\n */\n function EventEmitter() {}\n\n // Shortcuts to improve speed and size\n var proto = EventEmitter.prototype;\n var exports = this;\n var originalGlobalValue = exports.EventEmitter;\n\n /**\n * Finds the index of the listener for the event in its storage array.\n *\n * @param {Function[]} listeners Array of listeners to search through.\n * @param {Function} listener Method to look for.\n * @return {Number} Index of the specified listener, -1 if not found\n * @api private\n */\n function indexOfListener(listeners, listener) {\n var i = listeners.length;\n while (i--) {\n if (listeners[i].listener === listener) {\n return i;\n }\n }\n\n return -1;\n }\n\n /**\n * Alias a method while keeping the context correct, to allow for overwriting of target method.\n *\n * @param {String} name The name of the target method.\n * @return {Function} The aliased method\n * @api private\n */\n function alias(name) {\n return function aliasClosure() {\n return this[name].apply(this, arguments);\n };\n }\n\n /**\n * Returns the listener array for the specified event.\n * Will initialise the event object and listener arrays if required.\n * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.\n * Each property in the object response is an array of listener functions.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Function[]|Object} All listener functions for the event.\n */\n proto.getListeners = function getListeners(evt) {\n var events = this._getEvents();\n var response;\n var key;\n\n // Return a concatenated array of all matching events if\n // the selector is a regular expression.\n if (evt instanceof RegExp) {\n response = {};\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n response[key] = events[key];\n }\n }\n }\n else {\n response = events[evt] || (events[evt] = []);\n }\n\n return response;\n };\n\n /**\n * Takes a list of listener objects and flattens it into a list of listener functions.\n *\n * @param {Object[]} listeners Raw listener objects.\n * @return {Function[]} Just the listener functions.\n */\n proto.flattenListeners = function flattenListeners(listeners) {\n var flatListeners = [];\n var i;\n\n for (i = 0; i < listeners.length; i += 1) {\n flatListeners.push(listeners[i].listener);\n }\n\n return flatListeners;\n };\n\n /**\n * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Object} All listener functions for an event in an object.\n */\n proto.getListenersAsObject = function getListenersAsObject(evt) {\n var listeners = this.getListeners(evt);\n var response;\n\n if (listeners instanceof Array) {\n response = {};\n response[evt] = listeners;\n }\n\n return response || listeners;\n };\n\n /**\n * Adds a listener function to the specified event.\n * The listener will not be added if it is a duplicate.\n * If the listener returns true then it will be removed after it is called.\n * If you pass a regular expression as the event name then the listener will be added to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListener = function addListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var listenerIsWrapped = typeof listener === 'object';\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {\n listeners[key].push(listenerIsWrapped ? listener : {\n listener: listener,\n once: false\n });\n }\n }\n\n return this;\n };\n\n /**\n * Alias of addListener\n */\n proto.on = alias('addListener');\n\n /**\n * Semi-alias of addListener. It will add a listener that will be\n * automatically removed after its first execution.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addOnceListener = function addOnceListener(evt, listener) {\n return this.addListener(evt, {\n listener: listener,\n once: true\n });\n };\n\n /**\n * Alias of addOnceListener.\n */\n proto.once = alias('addOnceListener');\n\n /**\n * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.\n * You need to tell it what event names should be matched by a regex.\n *\n * @param {String} evt Name of the event to create.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvent = function defineEvent(evt) {\n this.getListeners(evt);\n return this;\n };\n\n /**\n * Uses defineEvent to define multiple events.\n *\n * @param {String[]} evts An array of event names to define.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvents = function defineEvents(evts) {\n for (var i = 0; i < evts.length; i += 1) {\n this.defineEvent(evts[i]);\n }\n return this;\n };\n\n /**\n * Removes a listener function from the specified event.\n * When passed a regular expression as the event name, it will remove the listener from all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to remove the listener from.\n * @param {Function} listener Method to remove from the event.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListener = function removeListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var index;\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key)) {\n index = indexOfListener(listeners[key], listener);\n\n if (index !== -1) {\n listeners[key].splice(index, 1);\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of removeListener\n */\n proto.off = alias('removeListener');\n\n /**\n * Adds listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.\n * You can also pass it a regular expression to add the array of listeners to all events that match it.\n * Yeah, this function does quite a bit. That's probably a bad thing.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListeners = function addListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(false, evt, listeners);\n };\n\n /**\n * Removes listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be removed.\n * You can also pass it a regular expression to remove the listeners from all events that match it.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListeners = function removeListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(true, evt, listeners);\n };\n\n /**\n * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.\n * The first argument will determine if the listeners are removed (true) or added (false).\n * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be added/removed.\n * You can also pass it a regular expression to manipulate the listeners of all events that match it.\n *\n * @param {Boolean} remove True if you want to remove listeners, false if you want to add.\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add/remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {\n var i;\n var value;\n var single = remove ? this.removeListener : this.addListener;\n var multiple = remove ? this.removeListeners : this.addListeners;\n\n // If evt is an object then pass each of its properties to this method\n if (typeof evt === 'object' && !(evt instanceof RegExp)) {\n for (i in evt) {\n if (evt.hasOwnProperty(i) && (value = evt[i])) {\n // Pass the single listener straight through to the singular method\n if (typeof value === 'function') {\n single.call(this, i, value);\n }\n else {\n // Otherwise pass back to the multiple function\n multiple.call(this, i, value);\n }\n }\n }\n }\n else {\n // So evt must be a string\n // And listeners must be an array of listeners\n // Loop over it and pass each one to the multiple method\n i = listeners.length;\n while (i--) {\n single.call(this, evt, listeners[i]);\n }\n }\n\n return this;\n };\n\n /**\n * Removes all listeners from a specified event.\n * If you do not specify an event then all listeners will be removed.\n * That means every event will be emptied.\n * You can also pass a regex to remove all events that match it.\n *\n * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeEvent = function removeEvent(evt) {\n var type = typeof evt;\n var events = this._getEvents();\n var key;\n\n // Remove different things depending on the state of evt\n if (type === 'string') {\n // Remove all listeners for the specified event\n delete events[evt];\n }\n else if (evt instanceof RegExp) {\n // Remove all events matching the regex.\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n delete events[key];\n }\n }\n }\n else {\n // Remove all listeners in all events\n delete this._events;\n }\n\n return this;\n };\n\n /**\n * Alias of removeEvent.\n *\n * Added to mirror the node API.\n */\n proto.removeAllListeners = alias('removeEvent');\n\n /**\n * Emits an event of your choice.\n * When emitted, every listener attached to that event will be executed.\n * If you pass the optional argument array then those arguments will be passed to every listener upon execution.\n * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.\n * So they will not arrive within the array on the other side, they will be separate.\n * You can also pass a regular expression to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {Array} [args] Optional array of arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emitEvent = function emitEvent(evt, args) {\n var listenersMap = this.getListenersAsObject(evt);\n var listeners;\n var listener;\n var i;\n var key;\n var response;\n\n for (key in listenersMap) {\n if (listenersMap.hasOwnProperty(key)) {\n listeners = listenersMap[key].slice(0);\n i = listeners.length;\n\n while (i--) {\n // If the listener returns true then it shall be removed from the event\n // The function is executed either with a basic call or an apply if there is an args array\n listener = listeners[i];\n\n if (listener.once === true) {\n this.removeListener(evt, listener.listener);\n }\n\n response = listener.listener.apply(this, args || []);\n\n if (response === this._getOnceReturnValue()) {\n this.removeListener(evt, listener.listener);\n }\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of emitEvent\n */\n proto.trigger = alias('emitEvent');\n\n /**\n * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.\n * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {...*} Optional additional arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emit = function emit(evt) {\n var args = Array.prototype.slice.call(arguments, 1);\n return this.emitEvent(evt, args);\n };\n\n /**\n * Sets the current value to check against when executing listeners. If a\n * listeners return value matches the one set here then it will be removed\n * after execution. This value defaults to true.\n *\n * @param {*} value The new value to check for when executing listeners.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.setOnceReturnValue = function setOnceReturnValue(value) {\n this._onceReturnValue = value;\n return this;\n };\n\n /**\n * Fetches the current value to check against when executing listeners. If\n * the listeners return value matches this one then it should be removed\n * automatically. It will return true by default.\n *\n * @return {*|Boolean} The current value to check for or the default, true.\n * @api private\n */\n proto._getOnceReturnValue = function _getOnceReturnValue() {\n if (this.hasOwnProperty('_onceReturnValue')) {\n return this._onceReturnValue;\n }\n else {\n return true;\n }\n };\n\n /**\n * Fetches the events object and creates one if required.\n *\n * @return {Object} The events storage object.\n * @api private\n */\n proto._getEvents = function _getEvents() {\n return this._events || (this._events = {});\n };\n\n /**\n * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.\n *\n * @return {Function} Non conflicting EventEmitter class.\n */\n EventEmitter.noConflict = function noConflict() {\n exports.EventEmitter = originalGlobalValue;\n return EventEmitter;\n };\n\n // Expose the class either via AMD, CommonJS or the global object\n if (typeof define === 'function' && define.amd) {\n define(function () {\n return EventEmitter;\n });\n }\n else if (typeof module === 'object' && module.exports){\n module.exports = EventEmitter;\n }\n else {\n exports.EventEmitter = EventEmitter;\n }\n}.call(this));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wolfy87-eventemitter/EventEmitter.js\n ** module id = 93\n ** module chunks = 0 1\n **/","/* global Node, NodeList, Element */\n\n/**\n * @type {string}\n */\nexport const ATTR_DATA_ORIGINAL_INDEX = 'data-original-index';\n/**\n * @type {string}\n */\nexport const DATA_IS_SELECTION = 'data-is-selection';\n/**\n * @type {string}\n */\nconst SERIALIZE_SEPARATOR = \";\";\n\nimport { ATTR_DATA_ORIGINAL_OFFSET_START } from '../Rendering';\n\n// polyfill for matchesSelector, IE 10/11 does not support Element.matches\nif (Element && !Element.prototype.matches) {\n const p = Element.prototype;\n p.matches = p.matchesSelector ||\n p.mozMatchesSelector || p.msMatchesSelector ||\n p.oMatchesSelector || p.webkitMatchesSelector;\n}\n\n/**\n * Utility class\n * Contains DOM/Node manipulation helpers\n */\nexport default\nclass Util {\n\n /**\n * Filter for a NodeList\n * @param {NodeList} nodes\n * @param {Function} func\n *\n * @returns {Array.}\n */\n static nodeListFilter(nodes, func) {\n return Array.prototype.filter.call(nodes || [], func);\n }\n\n\n /**\n * Generates a unique id\n *\n * @return {String}\n */\n static guid() {\n const s4 = () => {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n };\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n }\n\n /**\n * Checks if a given node is empty\n * @param {HTMLElement} node\n *\n * @returns {*}\n */\n static nodeIsEmpty(node) {\n return node.nodeValue.match(/^[\\s]*$/g);\n }\n\n\n /**\n * @param {HTMLElement} node\n * @param [optionalList]\n *\n * @return {int} the index of this node in context to it's siblings\n */\n static index(node, optionalList) {\n const children = optionalList || (node.nodeType === Node.TEXT_NODE ?\n node.parentNode.childNodes : node.parentNode.children);\n return Array.prototype.indexOf.call(children || [], node);\n }\n\n /**\n * Wraps given `elms` in given `wrapper`\n *\n * @param {HTMLElement|Array.|Node} elms\n * @param {HTMLElement|Node} wrapper\n *\n * @return {HTMLElement}\n */\n static wrap(elms, wrapper) {\n let thisElms = elms;\n\n if (!thisElms) {\n return wrapper;\n }\n // Convert `elms` to an array, if necessary.\n if (!(thisElms instanceof NodeList || thisElms instanceof Array)) {\n thisElms = [thisElms];\n }\n for (let i = thisElms.length - 1; i >= 0; i--) {\n const child = (i > 0) ? wrapper.cloneNode(true) : wrapper;\n const el = thisElms[i];\n // Cache the current parent and sibling.\n const parent = el.parentNode;\n const sibling = el.nextSibling;\n\n child.appendChild(el);\n if (sibling) {\n parent.insertBefore(child, sibling);\n } else {\n parent.appendChild(child);\n }\n }\n return wrapper;\n }\n\n /**\n * Will calculate an index depending on an already modified dom by marklib\n * @param {HTMLElement|Node} node\n *\n * @returns {int|boolean}\n */\n static calcIndex(node) {\n let calculatedIndex = 0;\n let foundWrapper = false;\n const nodes = node.parentNode.childNodes;\n const length = nodes.length;\n for (let thisIndex = 0; thisIndex < length; thisIndex++) {\n const el = nodes[thisIndex];\n if (el === node) {\n break;\n }\n // reset index when original index is found\n const maybeIndexOfOriginal = el.getAttribute ? el.getAttribute(ATTR_DATA_ORIGINAL_INDEX) : null;\n\n if (maybeIndexOfOriginal) {\n calculatedIndex = parseInt(maybeIndexOfOriginal, 10);\n foundWrapper = true;\n }\n calculatedIndex++;\n }\n return foundWrapper ? calculatedIndex : Util.index(node);\n }\n\n /**\n * @param {HTMLElement|Node} el\n * @param {String} [optionalSelector] will test given element against a selector\n * if matches, returns this element immediately\n *\n * @return {Array.} an array of all found parents of given element (and optional selector)\n */\n static parents(el, optionalSelector) {\n return Util.parentsCallback(el, (element) => {\n if (optionalSelector && ((element === optionalSelector) ||\n ((typeof optionalSelector === 'string') && element.matches &&\n element.matches(optionalSelector)))) {\n return true;\n } else if (!optionalSelector) {\n return true;\n }\n return false;\n });\n }\n\n /**\n * @param {HTMLElement|Node} el\n * @param {Function} callback\n * @return {Array.} an array of all found parents of given element (and optional selector)\n */\n static parentsCallback(el, callback) {\n let element = el;\n const foundElements = [];\n while (element.parentNode !== null) {\n element = element.parentNode;\n if (callback(element)) {\n foundElements.push(element);\n }\n }\n return foundElements;\n }\n\n /**\n * Finds a parent node (the closest) with a given selector\n * @param {Node} el\n * @param {String} selector\n *\n * @returns {Node|boolean}\n */\n static parent(el, selector) {\n let element = el;\n while (element.parentNode !== null) {\n element = element.parentNode;\n if (element.matches && element.matches(selector)) {\n return element;\n }\n }\n return false;\n }\n\n /**\n * Finds the closest element including itself matching a given selector\n * @param {Node} el\n * @param selector\n *\n * @returns {Node|boolean}\n */\n static closest(el, selector) {\n return Util.closestCallback(el, (element) => element.matches && element.matches(selector));\n }\n\n /**\n * Finds the closest element including itself matching a callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static closestCallback(el, callback) {\n let element = el;\n while (element !== null) {\n if (callback(element)) {\n return element;\n }\n element = element.parentNode;\n }\n return false;\n }\n\n /**\n * Finds the outermost fitting element that matches callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static outerMostCallback(el, callback) {\n let element = el;\n let lastValid = false;\n while (element !== null) {\n if (callback(element)) {\n lastValid = element;\n }\n element = element.parentNode;\n }\n return lastValid;\n }\n\n /**\n * @param {HTMLElement} n\n *\n * @return {boolean}\n */\n static isMarkNode(n) {\n return n instanceof HTMLElement && n.hasAttribute(DATA_IS_SELECTION);\n }\n\n /**\n * Determines the correct paths and excludes all `marklib` generated content\n * TODO: To improve performance we could shorten the path if an ID is present in it.\n * @param {HTMLElement|Node} el\n * @param {HTMLElement|Node} [context] if given extraction path is relative to this element\n * @returns {string}\n */\n static getPath(el, context) {\n let path = null;\n let node = el;\n\n const filterSiblings = (thisEl) => {\n return !Util.isMarkNode(thisEl) && thisEl.nodeName === node.nodeName;\n };\n\n while (node) {\n let name = null;\n // If node is a text-node, save index\n if (Node.TEXT_NODE === node.nodeType) {\n /* Because nodes may wrapped inside a highlighting node, we need to find the original index that was\n * valid before the dom changes. We store the last known index position inside all wrapper elements\n * We select the outermost\n */\n\n // Extract original index of this node:\n // Outer most data-original-index is original index\n const outerMostElement = Util.parents(node, '[' + ATTR_DATA_ORIGINAL_INDEX + ']').reverse()[0];\n // if element is not yet wrapped in span, recalculate index based on parent container:\n // We have to do this because text node indexes != element indexes...\n let calculatedIndex = 0;\n if (!outerMostElement) {\n calculatedIndex = Util.calcIndex(node);\n }\n const index = outerMostElement ? parseInt(\n outerMostElement.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10) : calculatedIndex;\n name = SERIALIZE_SEPARATOR + index;\n } else {\n name = node.nodeName;\n }\n\n if (!name) {\n break;\n }\n\n name = name.toLowerCase();\n\n const parent = node.parentNode;\n\n if (Util.isMarkNode(node)) {\n if (parent !== context) {\n node = parent;\n continue;\n } else {\n break;\n }\n }\n\n // Select only siblings that are not part of selection and are of the same type\n // (because we use nth-of-type selector later)\n const siblings = Util.nodeListFilter(parent.children, filterSiblings);\n const nodeIndex = Util.index(node, siblings);\n\n if (siblings.length > 1 && nodeIndex >= 0) {\n name += ':nth-of-type(' + (nodeIndex + 1) + ')';\n }\n\n path = name + (path ? '>' + path : '');\n\n\n if (parent === context) {\n break;\n }\n\n node = parent;\n }\n\n return path.replace(\"#document>\", \"\").replace('>;', ';');\n }\n\n /**\n * Will return the first original offset value that is found\n * @param {Node} element\n *\n * @returns {int}\n */\n static findOriginalOffset(element) {\n if (!element.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n return 0;\n }\n const lengthElement = Util.parent(element, '[' + ATTR_DATA_ORIGINAL_OFFSET_START + ']');\n return lengthElement ? parseInt(lengthElement.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) : 0;\n }\n\n\n /**\n * Deserialize a specific path and finds the right textNodes\n * This even works when DOM has been manipulated before by `marklib`\n * @param {string} path the serialized path (including offsets)\n * @param {Node|HTMLElement} context\n *\n * @return {Node}\n */\n static deserializePath(path, context) {\n const pSplit = path.split(';');\n const p = pSplit[0];\n const objectIndex = parseInt(pSplit[1], 10);\n const charOffset = parseInt(pSplit[2], 10);\n const container = !p.trim() ? context : context.querySelector(p);\n\n let maybeFoundNode = null;\n\n Util.walkTextNodes(container, (n) => {\n let atrOffsetStart = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START);\n atrOffsetStart = atrOffsetStart === null ? 0 : atrOffsetStart;\n let atrIndex = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_INDEX);\n atrIndex = atrIndex === null ? Util.calcIndex(n) : atrIndex;\n if (parseInt(atrIndex, 10) === objectIndex && charOffset >= atrOffsetStart &&\n ((parseInt(atrOffsetStart, 10) + n.length) >= charOffset)) {\n const thisOffset = n.parentNode\n .hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START) ? charOffset -\n parseInt(n.parentNode\n .getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) : charOffset;\n\n maybeFoundNode = {\n node: n,\n offset: thisOffset\n };\n\n return false;\n }\n return true;\n }, null);\n\n return maybeFoundNode;\n }\n\n\n /**\n * Walks the dom tree unless func returns false\n * Applies node to function\n *\n * @param {Node} node\n * @param {Function} func\n * @param {int} type, see `NodeFilter`\n * @param {Object} [filter] skips empty text nodes by default\n *\n * @returns {boolean} true if function did abort walk\n */\n static walkDom(node, func, type = NodeFilter.SHOW_ALL, filter = null) {\n if (!node) {\n return false;\n }\n const args = [node, type, filter || (() => true), false];\n args.push(false);\n const walker = document.createTreeWalker(...args);\n while (walker.nextNode()) {\n if (!func(walker.currentNode)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Extracts all TextNodes inside a container\n * @param {Node} el\n * @param {Function} func\n * @param {Object} [filter] skips empty text nodes by default\n * @returns {boolean} true if function did abort walk\n */\n static walkTextNodes(el, func, filter = (node) => !Util.nodeIsEmpty(node)) {\n return Util.walkDom(el, func, NodeFilter.SHOW_TEXT, filter);\n }\n\n /**\n * @param {Node} container\n * @param {Number} thisIndex\n * @returns {int|string} index of parent or original\n */\n static getIndexParentIfHas(container, thisIndex) {\n const p = container.parentNode;\n const index = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10);\n return index > thisIndex ? index : thisIndex;\n }\n\n /**\n * @param container\n * @returns {int} offset start of parent if has, else 0\n */\n static getOffsetParentIfHas(container) {\n const p = container.parentNode;\n const offset = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10);\n return offset > 0 ? offset : 0;\n }\n\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/util/Util.js\n **/"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap f86d8b3247a2790f9ca5","webpack:///./src/main/modules/Marklib.js","webpack:///./src/main/Rendering.js","webpack:///./~/babel-runtime/core-js/object/get-prototype-of.js","webpack:///./~/core-js/library/fn/object/get-prototype-of.js","webpack:///./~/core-js/library/modules/es6.object.get-prototype-of.js","webpack:///./~/core-js/library/modules/$.to-object.js","webpack:///./~/core-js/library/modules/$.defined.js","webpack:///./~/core-js/library/modules/$.object-sap.js","webpack:///./~/core-js/library/modules/$.export.js","webpack:///./~/core-js/library/modules/$.global.js","webpack:///./~/core-js/library/modules/$.core.js","webpack:///./~/core-js/library/modules/$.ctx.js","webpack:///./~/core-js/library/modules/$.a-function.js","webpack:///./~/core-js/library/modules/$.fails.js","webpack:///./~/babel-runtime/helpers/classCallCheck.js","webpack:///./~/babel-runtime/helpers/createClass.js","webpack:///./~/babel-runtime/core-js/object/define-property.js","webpack:///./~/core-js/library/fn/object/define-property.js","webpack:///./~/core-js/library/modules/$.js","webpack:///./~/babel-runtime/helpers/possibleConstructorReturn.js","webpack:///./~/babel-runtime/helpers/typeof.js","webpack:///./~/babel-runtime/core-js/symbol/iterator.js","webpack:///./~/core-js/library/fn/symbol/iterator.js","webpack:///./~/core-js/library/modules/es6.string.iterator.js","webpack:///./~/core-js/library/modules/$.string-at.js","webpack:///./~/core-js/library/modules/$.to-integer.js","webpack:///./~/core-js/library/modules/$.iter-define.js","webpack:///./~/core-js/library/modules/$.library.js","webpack:///./~/core-js/library/modules/$.redefine.js","webpack:///./~/core-js/library/modules/$.hide.js","webpack:///./~/core-js/library/modules/$.property-desc.js","webpack:///./~/core-js/library/modules/$.descriptors.js","webpack:///./~/core-js/library/modules/$.has.js","webpack:///./~/core-js/library/modules/$.iterators.js","webpack:///./~/core-js/library/modules/$.iter-create.js","webpack:///./~/core-js/library/modules/$.set-to-string-tag.js","webpack:///./~/core-js/library/modules/$.wks.js","webpack:///./~/core-js/library/modules/$.shared.js","webpack:///./~/core-js/library/modules/$.uid.js","webpack:///./~/core-js/library/modules/web.dom.iterable.js","webpack:///./~/core-js/library/modules/es6.array.iterator.js","webpack:///./~/core-js/library/modules/$.add-to-unscopables.js","webpack:///./~/core-js/library/modules/$.iter-step.js","webpack:///./~/core-js/library/modules/$.to-iobject.js","webpack:///./~/core-js/library/modules/$.iobject.js","webpack:///./~/core-js/library/modules/$.cof.js","webpack:///./~/babel-runtime/core-js/symbol.js","webpack:///./~/core-js/library/fn/symbol/index.js","webpack:///./~/core-js/library/modules/es6.symbol.js","webpack:///./~/core-js/library/modules/$.keyof.js","webpack:///./~/core-js/library/modules/$.get-names.js","webpack:///./~/core-js/library/modules/$.enum-keys.js","webpack:///./~/core-js/library/modules/$.is-array.js","webpack:///./~/core-js/library/modules/$.an-object.js","webpack:///./~/core-js/library/modules/$.is-object.js","webpack:///./~/babel-runtime/helpers/inherits.js","webpack:///./~/babel-runtime/core-js/object/set-prototype-of.js","webpack:///./~/core-js/library/fn/object/set-prototype-of.js","webpack:///./~/core-js/library/modules/es6.object.set-prototype-of.js","webpack:///./~/core-js/library/modules/$.set-proto.js","webpack:///./~/babel-runtime/core-js/object/create.js","webpack:///./~/core-js/library/fn/object/create.js","webpack:///./src/main/RenderResult.js","webpack:///./src/main/RenderingEvents.js","webpack:///./~/babel-runtime/helpers/slicedToArray.js","webpack:///./~/babel-runtime/core-js/is-iterable.js","webpack:///./~/core-js/library/fn/is-iterable.js","webpack:///./~/core-js/library/modules/core.is-iterable.js","webpack:///./~/core-js/library/modules/$.classof.js","webpack:///./~/babel-runtime/core-js/get-iterator.js","webpack:///./~/core-js/library/fn/get-iterator.js","webpack:///./~/core-js/library/modules/core.get-iterator.js","webpack:///./~/core-js/library/modules/core.get-iterator-method.js","webpack:///./~/babel-runtime/core-js/set.js","webpack:///./~/core-js/library/fn/set.js","webpack:///./~/core-js/library/modules/es6.set.js","webpack:///./~/core-js/library/modules/$.collection-strong.js","webpack:///./~/core-js/library/modules/$.redefine-all.js","webpack:///./~/core-js/library/modules/$.strict-new.js","webpack:///./~/core-js/library/modules/$.for-of.js","webpack:///./~/core-js/library/modules/$.iter-call.js","webpack:///./~/core-js/library/modules/$.is-array-iter.js","webpack:///./~/core-js/library/modules/$.to-length.js","webpack:///./~/core-js/library/modules/$.set-species.js","webpack:///./~/core-js/library/modules/$.collection.js","webpack:///./~/core-js/library/modules/es7.set.to-json.js","webpack:///./~/core-js/library/modules/$.collection-to-json.js","webpack:///./~/babel-runtime/core-js/object/assign.js","webpack:///./~/core-js/library/fn/object/assign.js","webpack:///./~/core-js/library/modules/es6.object.assign.js","webpack:///./~/core-js/library/modules/$.object-assign.js","webpack:///./~/wolfy87-eventemitter/EventEmitter.js","webpack:///./src/main/util/Util.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SCjCS;SAAW;SAAM;SAAc,4C;;;;;;;;;;;;;;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ACA,wCAAuC,gC;;;;;;ACHvC,8BAA6B;AAC7B,sCAAqC,gC;;;;;;ACDrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACnBA;AACA;AACA;AACA,G;;;;;;ACHA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,G;;;;;;ACNA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,G;;;;;;ACRA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA,oBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC,G;;;;;;AC1BD,mBAAkB,wD;;;;;;ACAlB;AACA;AACA;AACA,G;;;;;;ACHA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACZA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;;AAEA;AACA,G;;;;;;AChBA;;AAEA,uGAAsG,mBAAmB,EAAE,mBAAmB,oGAAoG;;AAElP;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA,EAAC;AACD;AACA,G;;;;;;ACpBA,mBAAkB,wD;;;;;;ACAlB;AACA;AACA,sD;;;;;;ACFA;AACA;;AAEA;AACA;AACA,8BAA6B;AAC7B,eAAc;AACd;AACA,EAAC;AACD;AACA;AACA;AACA,gCAA+B;AAC/B;AACA;AACA,WAAU;AACV,EAAC,E;;;;;;AChBD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,6BAA4B,aAAa;;AAEzC;AACA;AACA;AACA;AACA;AACA,yCAAwC,oCAAoC;AAC5E,6CAA4C,oCAAoC;AAChF,MAAK,2BAA2B,oCAAoC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAkB,mBAAmB;AACrC;AACA;AACA,oCAAmC,2BAA2B;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,G;;;;;;ACjEA,uB;;;;;;ACAA,0C;;;;;;ACAA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA,G;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACPA;AACA;AACA,kCAAiC,QAAQ,gBAAgB,UAAU,GAAG;AACtE,EAAC,E;;;;;;ACHD,wBAAuB;AACvB;AACA;AACA,G;;;;;;ACHA,qB;;;;;;ACAA;AACA;AACA;AACA;AACA;;AAEA;AACA,4FAAkF,aAAa,EAAE;;AAEjG;AACA,wDAAuD,0BAA0B;AACjF;AACA,G;;;;;;ACZA;AACA;AACA;;AAEA;AACA,mEAAkE,+BAA+B;AACjG,G;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACNA;AACA;AACA,oDAAmD;AACnD;AACA,wCAAuC;AACvC,G;;;;;;ACLA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA,iE;;;;;;ACFA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC,eAAc;AACd,kBAAiB;AACjB;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;;AAEA;AACA;AACA,6B;;;;;;ACjCA,6BAA4B,e;;;;;;ACA5B;AACA,WAAU;AACV,G;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACLA;AACA;AACA;AACA;AACA,G;;;;;;ACJA,kBAAiB;;AAEjB;AACA;AACA,G;;;;;;ACJA,mBAAkB,wD;;;;;;ACAlB;AACA;AACA,iD;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,4BAA2B;AAC3B,qBAAoB,4BAA4B,SAAS,IAAI;AAC7D,IAAG;AACH,EAAC;AACD;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,+DAA8D;AAC9D;AACA,MAAK;AACL;AACA,uBAAsB,iCAAiC;AACvD,MAAK;AACL,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,KAAK,QAAQ,iCAAiC;AAClG,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,IAAG;AACH,yBAAwB,eAAe,EAAE;AACzC,yBAAwB,gBAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;;AAEA,iCAAgC,gBAAgB;;AAEhD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA,8EAA6E,sBAAsB;;AAEnG;AACA;AACA;AACA;AACA;AACA,2C;;;;;;AClOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACTA;AACA;AACA;AACA,mBAAkB;;AAElB;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA,G;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACbA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA,G;;;;;;;;;;;;ACFA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA,G;;;;;;AChCA,mBAAkB,wD;;;;;;ACAlB;AACA,gE;;;;;;ACDA;AACA;AACA,+BAA8B,4CAA6C,E;;;;;;ACF3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA,QAAO,UAAU,cAAc;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,MAAK,GAAG;AACR;AACA,G;;;;;;ACzBA,mBAAkB,wD;;;;;;ACAlB;AACA;AACA;AACA,G;;;;;;;;;;;;;;;;;;;;;;;;;;KCAqB;;;;;;;;AAOjB,cAPiB,YAOjB,CAAY,WAAZ,EAAyB,SAAzB,EAAoC,kBAApC,EAAw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,QAAO;AACP;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA;AACA,EAAC,G;;;;;;AClDD,mBAAkB,wD;;;;;;ACAlB;AACA;AACA,0C;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACRA;AACA;AACA;AACA;AACA,0BAAyB,kBAAkB,EAAE;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACfA,mBAAkB,wD;;;;;;ACAlB;AACA;AACA,0C;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACPA,mBAAkB,wD;;;;;;ACAlB;AACA;AACA;AACA;AACA;AACA,8C;;;;;;ACLA;AACA;;AAEA;AACA;AACA,yBAAwB,mEAAmE;AAC3F,EAAC;AACD;AACA;AACA;AACA;AACA,EAAC,U;;;;;;ACXD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAsB,OAAO;AAC7B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gCAA+B;AAC/B,2BAA0B;AAC1B,2BAA0B;AAC1B,sBAAqB;AACrB;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,8DAA6D,OAAO;AACpE;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,0BAAyB;AACzB,sBAAqB;AACrB,2BAA0B;AAC1B,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,G;;;;;;AC9JA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA;AACA,G;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAgE,gBAAgB;AAChF;AACA,IAAG,2CAA2C,gCAAgC;AAC9E;AACA;AACA,G;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,G;;;;;;ACXA;AACA;AACA;AACA;;AAEA;AACA;AACA,G;;;;;;ACPA;AACA;AACA;AACA;AACA,4DAA2D;AAC3D,G;;;;;;ACLA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAoB,aAAa;AACjC,IAAG;AACH,G;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA,G;;;;;;ACtDA;AACA;;AAEA,4BAA2B,uCAAiD,E;;;;;;ACH5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACVA,mBAAkB,wD;;;;;;ACAlB;AACA,wD;;;;;;ACDA;AACA;;AAEA,2CAA0C,gCAAqC,E;;;;;;ACH/E;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,UAAU,EAAE;AAC9C,cAAa,gCAAgC;AAC7C,EAAC,oCAAoC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,iB;;;;;;AChCD;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,iBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,iBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,iBAAgB,WAAW;AAC3B;AACA;AACA;AACA;;AAEA,oBAAmB,sBAAsB;AACzC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA,wBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,qBAAqB;AACpC,gBAAe,WAAW;AAC1B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,qBAAqB;AACpC,gBAAe,WAAW;AAC1B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,QAAQ;AACvB,gBAAe,qBAAqB;AACpC,gBAAe,WAAW;AAC1B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,MAAM;AACrB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,KAAK;AACpB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAgB,UAAU;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAgB,OAAO;AACvB;AACA;AACA;AACA,kDAAiD;AACjD;;AAEA;AACA,4BAA2B,mBAAmB;AAC9C;AACA,iBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpdM,KAAM,8DAA2B,qBAA3B;;;;AAIN,KAAM,gDAAoB,mBAApB;;;;AAIb,KAAM,sBAAsB,GAAtB;;;AAKN,KAAI,WAAW,CAAC,QAAQ,SAAR,CAAkB,OAAlB,EAA2B;AACvC,SAAM,IAAI,QAAQ,SAAR,CAD6B;AAEvC,OAAE,OAAF,GAAY,EAAE,eAAF,IACR,EAAE,kBAAF,IAAwB,EAAE,iBAAF,IACxB,EAAE,gBAAF,IAAsB,EAAE,qBAAF,CAJa;EAA3C;;;;;;;KAYM;;;;;;;;;;;;;;;;wCASoB,OA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AW,QAAX,gBAAoC;iBAAf,+DAAS,oBAAM;;AAClE,iBAAI,CAAC,IAAD,EAAO;AACP,wBAAO,KAAP,CADO;cAAX;AAGA,iBAAM,OAAO,CAAC,IAAD,EAAO,IAAP,EAAa,UAAW;wBAAM;cAAN,EAAa,KAArC,CAAP,CAJ4D;AAKlE,kBAAK,IAAL,CAAU,KAAV,EALkE;AAMlE,iBAAM,SAAS,uBAAS,gBAAT,kBAA6B,IAA7B,CAAT,CAN4D;AAOlE,oBAAO,OAAO,QAAP,EAAP,EAA0B;AACtB,qBAAI,CAAC,KAAK,OAAO,WAAP,CAAN,EAA2B;AAC3B,4BAAO,IAAP,CAD2B;kBAA/B;cADJ;AAKA,oBAAO,KAAP,CAZkE;;;;;;;;;;;;;uCAsBjD,IAAI,MAAkD;iBAA5C,+DAAS,UAAC,IAAD;wBAAU,CAAC,KAAK,WAAL,CAAiB,IAAjB,CAAD;cAAV,gBAAmC;;AACvE,oBAAO,KAAK,OAAL,CAAa,EAAb,EAAiB,IAAjB,EAAuB,WAAW,SAAX,EAAsB,MAA7C,CAAP,CADuE;;;;;;;;;;;6CAShD,WAAW,WAAW;AAC7C,iBAAM,IAAI,UAAU,UAAV,CADmC;AAE7C,iBAAM,QAAQ,SAAS,EAAE,YAAF,CAAe,wBAAf,CAAT,EAAmD,EAAnD,CAAR,CAFuC;AAG7C,oBAAO,QAAQ,SAAR,GAAoB,KAApB,GAA4B,SAA5B,CAHsC;;;;;;;;;;8CAUrB,WAAW;AACnC,iBAAM,IAAI,UAAU,UAAV,CADyB;AAEnC,iBAAM,SAAS,SAAS,EAAE,YAAF,4CAAT,EAA0D,EAA1D,CAAT,CAF6B;AAGnC,oBAAO,SAAS,CAAT,GAAa,MAAb,GAAsB,CAAtB,CAH4B;;;YA9ZrC","file":"js/marklib.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Marklib\"] = factory();\n\telse\n\t\troot[\"Marklib\"] = factory();\n})(this, function() {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/"," \t// The module cache\n \tvar installedModules = {};\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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"../\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap f86d8b3247a2790f9ca5\n **/","import Rendering from '../Rendering';\nimport Util from '../util/Util';\nimport RenderResult from '../RenderResult';\nimport RenderingEvents from '../RenderingEvents';\n\nexport { Rendering, Util, RenderResult, RenderingEvents };\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/modules/Marklib.js\n **/","/* global Node */\n\nimport RenderResult from './RenderResult';\nimport RenderingEvents from './RenderingEvents';\nimport Util, { ATTR_DATA_ORIGINAL_INDEX, DATA_IS_SELECTION } from './util/Util';\n\n/**\n * @type {string}\n */\nconst TAG_NAME = 'x-marker';\n/**\n * @type {string}\n */\nexport const ATTR_DATA_ORIGINAL_OFFSET_START = 'data-original-offset-start';\n/**\n * @type {string}\n */\nconst DATA_ORIGINAL_TEXT_NODE_INDEX = 'original-text-node-index';\n/**\n * @type {string}\n */\nconst ATTR_DATA_START_END = 'data-is-start-end';\n/**\n * @type {string}\n */\nconst ATTR_DATA_IS_HIGHLIGHT_NODE = 'data-is-highlight-node';\n/**\n * @type {string}\n */\nconst ATTR_DATA_ID = 'data-selection-id';\n\n/**\n * @see https://developer.mozilla.org/de/docs/Web/API/Node/compareDocumentPosition\n * @type {number}\n */\nconst DOCUMENT_POSITION_CONTAINED_BY = 16;\n\n\n/**\n * @type {string}\n */\nexport const EVENT_WRAPPED_NODE = 'wrapped-node';\n\n/**\n * Manages a single Render\n */\nclass Rendering extends RenderingEvents {\n\n /**\n * @param {Document} document\n * @param {object} options\n * @param {Node} context\n */\n constructor(document, options, context) {\n super(options, document);\n\n /**\n * ID of rendering, will be set on each element that is part of it\n * @type {String}\n */\n this.id = Util.guid();\n\n /**\n * StartContainer\n * @type {Node}\n */\n this.startContainer = null;\n\n /**\n * EndContainer\n * @type {Node}\n */\n this.endContainer = null;\n\n /**\n * @type {Node}\n */\n this.context = context || this.document;\n\n /**\n * Flag if this instance has been rendered\n * @type {RenderResult}\n * @private\n */\n this._renderResult = null;\n }\n\n /**\n * @returns {string} id of this rendering\n */\n getId() {\n return this.id;\n }\n\n /**\n * @param {string} id\n * @returns {Rendering}\n */\n setId(id) {\n this.id = id;\n\n if (this._renderResult) {\n this.wrapperNodes.forEach((node) => node.setAttribute(ATTR_DATA_ID, this.id));\n }\n\n return this;\n }\n\n /**\n * Creates a Template used as a wrapper and an indication that this is a highlight node\n * @param {Boolean} [omitHighlight]\n * @returns {Node}\n * @private\n */\n _createWrapTemplate(omitHighlight) {\n const el = this.document.createElement(TAG_NAME);\n const vTrue = \"true\";\n\n if (!omitHighlight) {\n el.className = this.options.className.join(' ');\n // save this marker instance to given node\n Rendering.setMarklibInstance(el, this);\n // keep track of highlight nodes\n this.wrapperNodes.push(el);\n el.setAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE, vTrue);\n el.setAttribute(ATTR_DATA_ID, this.getId());\n }\n el.setAttribute(DATA_IS_SELECTION, vTrue);\n\n return el;\n }\n\n /**\n * Creates a Template to use as start and end marks\n * @param {String} text\n * @returns {Node}\n * @private\n */\n _createStartEndWrapTemplate(text) {\n const el = this._createWrapTemplate();\n el.setAttribute(ATTR_DATA_START_END, 'true');\n el.textContent = text;\n return el;\n }\n\n\n /**\n * Creates Start or End Container Element\n * @param initialNode\n * @param text\n * @param offset\n * @param index\n * @returns {Node}\n */\n _createStartOrEndContainer(initialNode, text, offset, index) {\n const wrapper = this._createStartEndWrapTemplate(text);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(initialNode, index));\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n\n return wrapper;\n }\n\n /**\n * Wraps given element\n * @param {Node|HTMLElement} el\n * @param [optionalLength]\n * @param [optionalIndex]\n * @param [optionalIsSameNode]\n * @param {Boolean} [omitHighlight] set to true to prevent node to be a highlight node\n * @returns {Node}\n * @private\n */\n _createWrap(el, optionalLength, optionalIndex, optionalIsSameNode, omitHighlight) {\n const originalIndex = optionalIndex >= 0 ? optionalIndex : Util.calcIndex(el);\n const wrapper = this._createWrapTemplate(omitHighlight);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(el, originalIndex));\n const offsetLength = optionalLength >= 0 ? optionalLength : Util.getOffsetParentIfHas(el);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offsetLength);\n\n // Save a reference to original text node in wrapper\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, originalIndex);\n\n if (optionalIsSameNode) {\n wrapper.setAttribute(ATTR_DATA_START_END, ATTR_DATA_START_END);\n }\n const wrap = Util.wrap(el, wrapper);\n\n this.emit(EVENT_WRAPPED_NODE, el, wrap);\n\n return wrap;\n }\n\n /**\n * Create split container element\n * @param originalElement {Node} original text node element that is created a wrapper for\n * @param index\n * @param offset\n * @returns {Node}\n */\n _createSplitContainer(originalElement, index, offset) {\n const wrapper = this.document.createElement(TAG_NAME);\n wrapper.setAttribute(DATA_IS_SELECTION, 'true');\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(originalElement, index));\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n return wrapper;\n }\n\n /**\n * Walks the tree\n * @param start\n * @param endContainer\n * @param nextParent\n */\n walk(start, endContainer, nextParent) {\n let nextParentNode = start;\n while (nextParentNode && nextParentNode !== nextParent.parentNode) {\n const currentParentNode = nextParentNode;\n nextParentNode = nextParentNode.parentNode;\n if (this.wrapSiblings(currentParentNode.nextSibling, endContainer)) {\n break;\n }\n }\n }\n\n\n /**\n * Will Wrap all textNode siblings of a container (start) inside a defined Element (like a span)\n * If an Element node is found, it will wrap all children of this node inside a element as well.\n * It will stop if endContainer is found as a node\n *\n * @param {Node} start\n * @param {Node} endContainer\n * @returns {boolean} (true if endContainer was found)\n */\n wrapSiblings(start, endContainer) {\n let next = start;\n let found = false;\n\n // Capsule some logic\n const wrap = (n) => {\n const instance = Rendering.getMarklibInstance(n.parentNode);\n if (n.parentNode.hasAttribute(ATTR_DATA_START_END) &&\n n.parentNode.hasAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE) &&\n instance === this) {\n this._createWrap(n, undefined, undefined, undefined, true);\n } else {\n this._createWrap(n);\n }\n };\n\n // helper functions\n\n const wrapIf = (n) => {\n if (!Util.nodeIsEmpty(n)) {\n wrap(n);\n }\n };\n\n const walkIfContained = (e) => {\n if (e === endContainer) {\n return false;\n }\n if (Node.TEXT_NODE === e.nodeType) {\n wrapIf(e);\n }\n return true;\n };\n\n const walkIfNotContained = (el) => {\n wrapIf(el);\n };\n\n while (next !== null && next !== endContainer) {\n const currentNext = next;\n next = next.nextSibling;\n // Found a text node, directly wrap inside a span\n if (Node.TEXT_NODE === currentNext.nodeType) {\n wrapIf(currentNext);\n } else {\n if ((currentNext.compareDocumentPosition(endContainer) & DOCUMENT_POSITION_CONTAINED_BY)) {\n Util.walkDom(currentNext, walkIfContained);\n found = true;\n } else {\n Util.walkTextNodes(currentNext, walkIfNotContained);\n }\n if (found) {\n return true;\n }\n }\n }\n return found;\n }\n\n /**\n * Marks text of the same node\n * @param {Node} textNode\n * @param {int} startIndex\n * @param {int} endIndex\n * @private\n */\n _markTextSameNode(textNode, startIndex, endIndex) {\n const initialText = textNode.nodeValue;\n const initialIndex = Util.calcIndex(textNode);\n\n if (!initialText) {\n return false;\n }\n // If there is an unmarked part in the beginning of the text node,\n // cut off that part and put it into it's own textnode.\n if (startIndex > 0) {\n const textBefore = initialText.slice(0, startIndex);\n textNode.parentNode.insertBefore(this.document.createTextNode(textBefore), textNode);\n // wrap cutted text node:\n Util.wrap(textNode.previousSibling, this._createSplitContainer(textNode,\n initialIndex, Util.getOffsetParentIfHas(textNode)));\n }\n // If there is an unmarked part at the end of the text node,\n // cut off that part and put it into it's own textnode.\n if (endIndex < initialText.length) {\n const textAfter = initialText.slice(endIndex, initialText.length);\n textNode.parentNode.insertBefore(this.document.createTextNode(textAfter), textNode.nextSibling);\n Util.wrap(textNode.nextSibling, this._createSplitContainer(textNode,\n initialIndex, Util.getOffsetParentIfHas(textNode) + endIndex));\n }\n\n // Cutoff the unmarked parts and wrap the textnode into a span.\n textNode.nodeValue = initialText.slice(startIndex, endIndex);\n this.startContainer = this._createWrap(textNode,\n Util.getOffsetParentIfHas(textNode) + startIndex, initialIndex, true).parentNode;\n this.endContainer = this.startContainer;\n return this.startContainer;\n }\n\n\n /**\n * Marks text of end and start containers if start and end nodes are different\n * Important: There might be no end container!\n *\n * @param {Node} startContainer\n * @param {Node} endContainer\n * @param {int} startOffset\n * @param {int} endOffset\n * @returns {{startT: (Node), endT: (Node)}}\n * @private\n */\n _markTextDifferentNode(startContainer, endContainer, startOffset, endOffset) {\n // Get current for both start and end:\n const startContainerIndex = Util.calcIndex(startContainer);\n const endContainerIndex = Util.calcIndex(endContainer);\n\n // Split text\n const fullTextStartValue = startContainer.nodeValue;\n // init with startContainer because we may have not a text node here\n let startT = startContainer;\n\n if (undefined !== fullTextStartValue) {\n const partTextStartValue = fullTextStartValue.slice(startOffset, fullTextStartValue.length);\n // Set new text to start node\n startContainer.nodeValue = fullTextStartValue.slice(0, startOffset);\n\n const offsetStart = Util.getOffsetParentIfHas(startContainer);\n // Create a new node for splitted text, offset is the length of new startContainer.nodeValue:\n startT = this._createStartOrEndContainer(startContainer, partTextStartValue,\n offsetStart === startOffset ? offsetStart : offsetStart + startOffset, startContainerIndex);\n // Append this node after startContainer\n startContainer.parentNode.insertBefore(startT, startContainer.nextSibling);\n this.startContainer = startT;\n\n if (startContainer.nodeValue) {\n // Wrap start container in detection node, offset is always 0 or parent offset.\n Util.wrap(startContainer, this._createSplitContainer(startContainer, startContainerIndex,\n Util.getOffsetParentIfHas(startContainer)));\n }\n }\n\n // init with endContainer because we may have not a text node here\n let endT = endContainer;\n\n // 2. Extract end Text node,\n const fullTextEndValue = endContainer.nodeValue;\n // It's possible that end container value is null (if a whole paragraph is marked)\n if (undefined !== fullTextEndValue) {\n // Split text\n const partTextEndValue = fullTextEndValue.slice(0, endOffset);\n endContainer.nodeValue = fullTextEndValue.slice(endOffset, fullTextEndValue.length);\n // End Container start offset is always 0 or parent offset.\n endT = this._createStartOrEndContainer(endContainer, partTextEndValue,\n Util.getOffsetParentIfHas(endContainer), endContainerIndex);\n\n endContainer.parentNode.insertBefore(endT, endContainer);\n this.endContainer = endT;\n const offsetParent = Util.getOffsetParentIfHas(endContainer);\n Util.wrap(endContainer, this._createSplitContainer(endContainer, endContainerIndex,\n offsetParent === endOffset ? offsetParent : offsetParent + endOffset));\n }\n\n return {\n startT,\n endT\n };\n }\n\n /**\n * Renders a selection\n * @param {Node} startContainerP\n * @param {Node} endContainerP\n * @param {Node} commonAncestor\n * @param {int} startOffset\n * @param {int} endOffsetP\n * @returns RenderResult\n * @private\n */\n _renderWithElements(startContainerP, endContainerP, commonAncestor, startOffset, endOffsetP) {\n if (this._renderResult) {\n return this._renderResult;\n }\n let startContainer = startContainerP;\n let endContainer = endContainerP;\n let endOffset = endOffsetP;\n let outer = Util.parents(startContainer, commonAncestor);\n outer = outer[outer.length - 1];\n const contextContainer = outer ? outer : commonAncestor;\n\n // Same Element, means the selection is fully contained in a discrete area, start and endpoint have the same parent\n // but are different nodes:\n\n // Start and End offset have to be recalculated because dom might be already changed by highlighting in given node\n // 1: First detect real start offset in startContainer:\n\n // That works by selecting the highest wrapper and get original-offset-start data element, see \"findOriginalOffset\"\n // So first select that container:\n const originalStartOffset = Util.findOriginalOffset(startContainer);\n const originalEndOffset = Util.findOriginalOffset(endContainer);\n\n // We may run into Browser Bugs:\n\n // If both are not text nodes, use next sibling as endContainer\n if (startContainer.nodeType !== Node.TEXT_NODE && endContainer.nodeType !== Node.TEXT_NODE) {\n if (startContainer === endContainer) {\n endContainer = endContainer.nextElementSibling || endContainer;\n }\n }\n // IF start/end container is not type of text, select first child text node:\n // We run in some bugs with firefox here that selects no text-nodes sometimes, trying to fix this here\n // Sometimes does not work correctly... (specially when DOM was modified)\n if (startContainer.nodeType !== Node.TEXT_NODE) {\n Util.walkDom(startContainer, (el) => {\n if (el.nodeType === Node.TEXT_NODE) {\n startContainer = el;\n return false;\n }\n return true;\n });\n }\n\n if (endContainer.nodeType !== Node.TEXT_NODE) {\n let toFindNode = startContainer;\n\n if (endOffset === 0) {\n toFindNode = endContainer.previousElementSibling || startContainer;\n }\n\n // Get the last text node:\n const endContainerContents = Util.closest(toFindNode, ':not([' + DATA_IS_SELECTION + '])').childNodes;\n if (endContainerContents.length) {\n const r = endContainerContents[endContainerContents.length - 1];\n if (r.nodeType === Node.TEXT_NODE) {\n endContainer = r;\n endOffset = r.length;\n } else {\n let f = r.lastChild;\n while (f !== null) {\n if (f && f.nodeType === Node.TEXT_NODE) {\n endContainer = f;\n endOffset = f.length;\n if (f.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n endOffset = parseInt(f.parentNode\n .getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) + endOffset;\n }\n }\n f = f.lastChild;\n }\n }\n }\n // still no textNode?\n if (endContainer.nodeType !== Node.TEXT_NODE) {\n throw Error('Could not found endContainer, highlighting would be unstable');\n }\n }\n\n this._renderResult = new RenderResult(\n // Real offset is calculated by relative length and absolute length\n originalStartOffset + startOffset,\n originalEndOffset + endOffset,\n // get the path for this selection\n Util.getPath(startContainer, this.context),\n Util.getPath(endContainer, this.context)\n );\n\n this._renderResult.instance = this;\n\n\n this._renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, !!outer);\n\n return this._renderResult;\n }\n\n /**\n * Renders a given selection\n *\n * @param {Node} startContainer\n * @param {Node} endContainer\n * @param {int} startOffset\n * @param {int} endOffset\n * @param {Node} contextContainer\n * @param {Boolean} outer\n * @private\n */\n _renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, outer) {\n // if start and end-container are the same, mark text on the same node\n if (startContainer === endContainer) {\n this._markTextSameNode(startContainer, startOffset, endOffset);\n } else {\n const result = this._markTextDifferentNode(startContainer, endContainer, startOffset, endOffset);\n const index = this.wrapperNodes.indexOf(result.endT);\n // remove endContainer, to keep order:\n this.wrapperNodes.splice(index, 1);\n if (!outer) {\n this.wrapSiblings(result.startT.nextSibling, endContainer);\n } else {\n this.walk(result.startT, endContainer, contextContainer);\n }\n this.wrapperNodes.push(result.endT);\n }\n }\n\n /**\n * Prepares to render a Selection with path selectors\n * ```\n * A Path looks like this:\n *\n * #selector;#textnode;#offset\n * ``\n * @param {string} startPath\n * @param {string} endPath\n * @returns {string}\n */\n renderWithPath(startPath, endPath) {\n const startContainer = Util.deserializePath(startPath, this.context);\n const endContainer = Util.deserializePath(endPath, this.context);\n if (startContainer && endContainer && startContainer.node && endContainer.node) {\n const range = document.createRange();\n range.setStart(startContainer.node, startContainer.offset);\n range.setEnd(endContainer.node, endContainer.offset);\n const text = range.toString();\n const result = this.renderWithRange(range);\n result.text = text;\n return text;\n }\n throw new Error('Could not find start- and/or end-container in document');\n }\n\n /**\n * @returns {RenderResult}\n */\n get result() {\n return this._renderResult;\n }\n\n /**\n * Renders a result (that returned from `renderWithRange`)\n * @param {RenderResult|Object} result\n * @returns {string}\n */\n renderWithResult(result) {\n return this.renderWithPath(\n `${result.startContainerPath};${result.startOffset}`,\n `${result.endContainerPath};${result.endOffset}`);\n }\n\n /**\n * Prepares a selection with a range object\n * @param {Range} range\n * @returns {Object}\n */\n renderWithRange(range) {\n const text = range.toString();\n const result = this._renderWithElements(range.startContainer, range.endContainer,\n range.commonAncestorContainer, range.startOffset, range.endOffset);\n result.text = text;\n return result;\n }\n\n /**\n * Removes bindings and classNames to nodes\n */\n destroy() {\n this.wrapperNodes.forEach((node) => {\n delete node.marklibInstance;\n node.className = '';\n });\n this.removeEvent();\n }\n\n /**\n * @param {Node} el\n * @param {Rendering} instance\n * @returns {Node}\n */\n static setMarklibInstance(el, instance) {\n el.marklibInstance = instance;\n return el;\n }\n\n /**\n * @param {Node} el\n * @returns {Rendering|null|undefined}\n */\n static getMarklibInstance(el) {\n return el ? el.marklibInstance : null;\n }\n}\n\nexport default Rendering;\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/Rendering.js\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/get-prototype-of\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/get-prototype-of.js\n ** module id = 3\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.get-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.getPrototypeOf;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/get-prototype-of.js\n ** module id = 4\n ** module chunks = 0 1\n **/","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./$.to-object');\n\nrequire('./$.object-sap')('getPrototypeOf', function($getPrototypeOf){\n return function getPrototypeOf(it){\n return $getPrototypeOf(toObject(it));\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.get-prototype-of.js\n ** module id = 5\n ** module chunks = 0 1\n **/","// 7.1.13 ToObject(argument)\nvar defined = require('./$.defined');\nmodule.exports = function(it){\n return Object(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-object.js\n ** module id = 6\n ** module chunks = 0 1\n **/","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function(it){\n if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.defined.js\n ** module id = 7\n ** module chunks = 0 1\n **/","// most Object methods by ES6 should accept primitives\nvar $export = require('./$.export')\n , core = require('./$.core')\n , fails = require('./$.fails');\nmodule.exports = function(KEY, exec){\n var fn = (core.Object || {})[KEY] || Object[KEY]\n , exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-sap.js\n ** module id = 8\n ** module chunks = 0 1\n **/","var global = require('./$.global')\n , core = require('./$.core')\n , ctx = require('./$.ctx')\n , PROTOTYPE = 'prototype';\n\nvar $export = function(type, name, source){\n var IS_FORCED = type & $export.F\n , IS_GLOBAL = type & $export.G\n , IS_STATIC = type & $export.S\n , IS_PROTO = type & $export.P\n , IS_BIND = type & $export.B\n , IS_WRAP = type & $export.W\n , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n , key, own, out;\n if(IS_GLOBAL)source = name;\n for(key in source){\n // contains in native\n own = !IS_FORCED && target && key in target;\n if(own && key in exports)continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function(C){\n var F = function(param){\n return this instanceof C ? new C(param) : C(param);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\nmodule.exports = $export;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.export.js\n ** module id = 9\n ** module chunks = 0 1\n **/","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\nif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.global.js\n ** module id = 10\n ** module chunks = 0 1\n **/","var core = module.exports = {version: '1.2.6'};\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.core.js\n ** module id = 11\n ** module chunks = 0 1\n **/","// optional / simple context binding\nvar aFunction = require('./$.a-function');\nmodule.exports = function(fn, that, length){\n aFunction(fn);\n if(that === undefined)return fn;\n switch(length){\n case 1: return function(a){\n return fn.call(that, a);\n };\n case 2: return function(a, b){\n return fn.call(that, a, b);\n };\n case 3: return function(a, b, c){\n return fn.call(that, a, b, c);\n };\n }\n return function(/* ...args */){\n return fn.apply(that, arguments);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.ctx.js\n ** module id = 12\n ** module chunks = 0 1\n **/","module.exports = function(it){\n if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.a-function.js\n ** module id = 13\n ** module chunks = 0 1\n **/","module.exports = function(exec){\n try {\n return !!exec();\n } catch(e){\n return true;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.fails.js\n ** module id = 14\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/classCallCheck.js\n ** module id = 15\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\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 (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/createClass.js\n ** module id = 16\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/define-property.js\n ** module id = 17\n ** module chunks = 0 1\n **/","var $ = require('../../modules/$');\nmodule.exports = function defineProperty(it, key, desc){\n return $.setDesc(it, key, desc);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/define-property.js\n ** module id = 18\n ** module chunks = 0 1\n **/","var $Object = Object;\nmodule.exports = {\n create: $Object.create,\n getProto: $Object.getPrototypeOf,\n isEnum: {}.propertyIsEnumerable,\n getDesc: $Object.getOwnPropertyDescriptor,\n setDesc: $Object.defineProperty,\n setDescs: $Object.defineProperties,\n getKeys: $Object.keys,\n getNames: $Object.getOwnPropertyNames,\n getSymbols: $Object.getOwnPropertySymbols,\n each: [].forEach\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.js\n ** module id = 19\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/possibleConstructorReturn.js\n ** module id = 20\n ** module chunks = 0 1\n **/","\"use strict\";\n\nvar _typeof = typeof _Symbol === \"function\" && typeof _Symbol$iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _Symbol === \"function\" && obj.constructor === _Symbol ? \"symbol\" : typeof obj; };\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/typeof.js\n ** module id = 21\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol/iterator.js\n ** module id = 22\n ** module chunks = 0 1\n **/","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/$.wks')('iterator');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/iterator.js\n ** module id = 23\n ** module chunks = 0 1\n **/","'use strict';\nvar $at = require('./$.string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./$.iter-define')(String, 'String', function(iterated){\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , index = this._i\n , point;\n if(index >= O.length)return {value: undefined, done: true};\n point = $at(O, index);\n this._i += point.length;\n return {value: point, done: false};\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.string.iterator.js\n ** module id = 24\n ** module chunks = 0 1\n **/","var toInteger = require('./$.to-integer')\n , defined = require('./$.defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function(TO_STRING){\n return function(that, pos){\n var s = String(defined(that))\n , i = toInteger(pos)\n , l = s.length\n , a, b;\n if(i < 0 || i >= l)return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.string-at.js\n ** module id = 25\n ** module chunks = 0 1\n **/","// 7.1.4 ToInteger\nvar ceil = Math.ceil\n , floor = Math.floor;\nmodule.exports = function(it){\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-integer.js\n ** module id = 26\n ** module chunks = 0 1\n **/","'use strict';\nvar LIBRARY = require('./$.library')\n , $export = require('./$.export')\n , redefine = require('./$.redefine')\n , hide = require('./$.hide')\n , has = require('./$.has')\n , Iterators = require('./$.iterators')\n , $iterCreate = require('./$.iter-create')\n , setToStringTag = require('./$.set-to-string-tag')\n , getProto = require('./$').getProto\n , ITERATOR = require('./$.wks')('iterator')\n , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`\n , FF_ITERATOR = '@@iterator'\n , KEYS = 'keys'\n , VALUES = 'values';\n\nvar returnThis = function(){ return this; };\n\nmodule.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){\n $iterCreate(Constructor, NAME, next);\n var getMethod = function(kind){\n if(!BUGGY && kind in proto)return proto[kind];\n switch(kind){\n case KEYS: return function keys(){ return new Constructor(this, kind); };\n case VALUES: return function values(){ return new Constructor(this, kind); };\n } return function entries(){ return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator'\n , DEF_VALUES = DEFAULT == VALUES\n , VALUES_BUG = false\n , proto = Base.prototype\n , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]\n , $default = $native || getMethod(DEFAULT)\n , methods, key;\n // Fix native\n if($native){\n var IteratorPrototype = getProto($default.call(new Base));\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // FF fix\n if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);\n // fix Array#{values, @@iterator}.name in V8 / FF\n if(DEF_VALUES && $native.name !== VALUES){\n VALUES_BUG = true;\n $default = function values(){ return $native.call(this); };\n }\n }\n // Define iterator\n if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if(DEFAULT){\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: !DEF_VALUES ? $default : getMethod('entries')\n };\n if(FORCED)for(key in methods){\n if(!(key in proto))redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-define.js\n ** module id = 27\n ** module chunks = 0 1\n **/","module.exports = true;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.library.js\n ** module id = 28\n ** module chunks = 0 1\n **/","module.exports = require('./$.hide');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine.js\n ** module id = 29\n ** module chunks = 0 1\n **/","var $ = require('./$')\n , createDesc = require('./$.property-desc');\nmodule.exports = require('./$.descriptors') ? function(object, key, value){\n return $.setDesc(object, key, createDesc(1, value));\n} : function(object, key, value){\n object[key] = value;\n return object;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.hide.js\n ** module id = 30\n ** module chunks = 0 1\n **/","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\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.property-desc.js\n ** module id = 31\n ** module chunks = 0 1\n **/","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./$.fails')(function(){\n return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.descriptors.js\n ** module id = 32\n ** module chunks = 0 1\n **/","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function(it, key){\n return hasOwnProperty.call(it, key);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.has.js\n ** module id = 33\n ** module chunks = 0 1\n **/","module.exports = {};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iterators.js\n ** module id = 34\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , descriptor = require('./$.property-desc')\n , setToStringTag = require('./$.set-to-string-tag')\n , IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./$.hide')(IteratorPrototype, require('./$.wks')('iterator'), function(){ return this; });\n\nmodule.exports = function(Constructor, NAME, next){\n Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-create.js\n ** module id = 35\n ** module chunks = 0 1\n **/","var def = require('./$').setDesc\n , has = require('./$.has')\n , TAG = require('./$.wks')('toStringTag');\n\nmodule.exports = function(it, tag, stat){\n if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-to-string-tag.js\n ** module id = 36\n ** module chunks = 0 1\n **/","var store = require('./$.shared')('wks')\n , uid = require('./$.uid')\n , Symbol = require('./$.global').Symbol;\nmodule.exports = function(name){\n return store[name] || (store[name] =\n Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.wks.js\n ** module id = 37\n ** module chunks = 0 1\n **/","var global = require('./$.global')\n , SHARED = '__core-js_shared__'\n , store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function(key){\n return store[key] || (store[key] = {});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.shared.js\n ** module id = 38\n ** module chunks = 0 1\n **/","var id = 0\n , px = Math.random();\nmodule.exports = function(key){\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.uid.js\n ** module id = 39\n ** module chunks = 0 1\n **/","require('./es6.array.iterator');\nvar Iterators = require('./$.iterators');\nIterators.NodeList = Iterators.HTMLCollection = Iterators.Array;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/web.dom.iterable.js\n ** module id = 40\n ** module chunks = 0 1\n **/","'use strict';\nvar addToUnscopables = require('./$.add-to-unscopables')\n , step = require('./$.iter-step')\n , Iterators = require('./$.iterators')\n , toIObject = require('./$.to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./$.iter-define')(Array, 'Array', function(iterated, kind){\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , kind = this._k\n , index = this._i++;\n if(!O || index >= O.length){\n this._t = undefined;\n return step(1);\n }\n if(kind == 'keys' )return step(0, index);\n if(kind == 'values')return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.array.iterator.js\n ** module id = 41\n ** module chunks = 0 1\n **/","module.exports = function(){ /* empty */ };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.add-to-unscopables.js\n ** module id = 42\n ** module chunks = 0 1\n **/","module.exports = function(done, value){\n return {value: value, done: !!done};\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-step.js\n ** module id = 43\n ** module chunks = 0 1\n **/","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./$.iobject')\n , defined = require('./$.defined');\nmodule.exports = function(it){\n return IObject(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-iobject.js\n ** module id = 44\n ** module chunks = 0 1\n **/","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./$.cof');\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iobject.js\n ** module id = 45\n ** module chunks = 0 1\n **/","var toString = {}.toString;\n\nmodule.exports = function(it){\n return toString.call(it).slice(8, -1);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.cof.js\n ** module id = 46\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol.js\n ** module id = 47\n ** module chunks = 0 1\n **/","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nmodule.exports = require('../../modules/$.core').Symbol;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/index.js\n ** module id = 48\n ** module chunks = 0 1\n **/","'use strict';\n// ECMAScript 6 symbols shim\nvar $ = require('./$')\n , global = require('./$.global')\n , has = require('./$.has')\n , DESCRIPTORS = require('./$.descriptors')\n , $export = require('./$.export')\n , redefine = require('./$.redefine')\n , $fails = require('./$.fails')\n , shared = require('./$.shared')\n , setToStringTag = require('./$.set-to-string-tag')\n , uid = require('./$.uid')\n , wks = require('./$.wks')\n , keyOf = require('./$.keyof')\n , $names = require('./$.get-names')\n , enumKeys = require('./$.enum-keys')\n , isArray = require('./$.is-array')\n , anObject = require('./$.an-object')\n , toIObject = require('./$.to-iobject')\n , createDesc = require('./$.property-desc')\n , getDesc = $.getDesc\n , setDesc = $.setDesc\n , _create = $.create\n , getNames = $names.get\n , $Symbol = global.Symbol\n , $JSON = global.JSON\n , _stringify = $JSON && $JSON.stringify\n , setter = false\n , HIDDEN = wks('_hidden')\n , isEnum = $.isEnum\n , SymbolRegistry = shared('symbol-registry')\n , AllSymbols = shared('symbols')\n , useNative = typeof $Symbol == 'function'\n , ObjectProto = Object.prototype;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n return _create(setDesc({}, 'a', {\n get: function(){ return setDesc(this, 'a', {value: 7}).a; }\n })).a != 7;\n}) ? function(it, key, D){\n var protoDesc = getDesc(ObjectProto, key);\n if(protoDesc)delete ObjectProto[key];\n setDesc(it, key, D);\n if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);\n} : setDesc;\n\nvar wrap = function(tag){\n var sym = AllSymbols[tag] = _create($Symbol.prototype);\n sym._k = tag;\n DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {\n configurable: true,\n set: function(value){\n if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n }\n });\n return sym;\n};\n\nvar isSymbol = function(it){\n return typeof it == 'symbol';\n};\n\nvar $defineProperty = function defineProperty(it, key, D){\n if(D && has(AllSymbols, key)){\n if(!D.enumerable){\n if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n D = _create(D, {enumerable: createDesc(0, false)});\n } return setSymbolDesc(it, key, D);\n } return setDesc(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P){\n anObject(it);\n var keys = enumKeys(P = toIObject(P))\n , i = 0\n , l = keys.length\n , key;\n while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P){\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n var E = isEnum.call(this, key);\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]\n ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n var D = getDesc(it = toIObject(it), key);\n if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);\n return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);\n return result;\n};\nvar $stringify = function stringify(it){\n if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n var args = [it]\n , i = 1\n , $$ = arguments\n , replacer, $replacer;\n while($$.length > i)args.push($$[i++]);\n replacer = args[1];\n if(typeof replacer == 'function')$replacer = replacer;\n if($replacer || !isArray(replacer))replacer = function(key, value){\n if($replacer)value = $replacer.call(this, key, value);\n if(!isSymbol(value))return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n};\nvar buggyJSON = $fails(function(){\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n});\n\n// 19.4.1.1 Symbol([description])\nif(!useNative){\n $Symbol = function Symbol(){\n if(isSymbol(this))throw TypeError('Symbol is not a constructor');\n return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));\n };\n redefine($Symbol.prototype, 'toString', function toString(){\n return this._k;\n });\n\n isSymbol = function(it){\n return it instanceof $Symbol;\n };\n\n $.create = $create;\n $.isEnum = $propertyIsEnumerable;\n $.getDesc = $getOwnPropertyDescriptor;\n $.setDesc = $defineProperty;\n $.setDescs = $defineProperties;\n $.getNames = $names.get = $getOwnPropertyNames;\n $.getSymbols = $getOwnPropertySymbols;\n\n if(DESCRIPTORS && !require('./$.library')){\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n}\n\nvar symbolStatics = {\n // 19.4.2.1 Symbol.for(key)\n 'for': function(key){\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(key){\n return keyOf(SymbolRegistry, key);\n },\n useSetter: function(){ setter = true; },\n useSimple: function(){ setter = false; }\n};\n// 19.4.2.2 Symbol.hasInstance\n// 19.4.2.3 Symbol.isConcatSpreadable\n// 19.4.2.4 Symbol.iterator\n// 19.4.2.6 Symbol.match\n// 19.4.2.8 Symbol.replace\n// 19.4.2.9 Symbol.search\n// 19.4.2.10 Symbol.species\n// 19.4.2.11 Symbol.split\n// 19.4.2.12 Symbol.toPrimitive\n// 19.4.2.13 Symbol.toStringTag\n// 19.4.2.14 Symbol.unscopables\n$.each.call((\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +\n 'species,split,toPrimitive,toStringTag,unscopables'\n).split(','), function(it){\n var sym = wks(it);\n symbolStatics[it] = useNative ? sym : wrap(sym);\n});\n\nsetter = true;\n\n$export($export.G + $export.W, {Symbol: $Symbol});\n\n$export($export.S, 'Symbol', symbolStatics);\n\n$export($export.S + $export.F * !useNative, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});\n\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.symbol.js\n ** module id = 49\n ** module chunks = 0 1\n **/","var $ = require('./$')\n , toIObject = require('./$.to-iobject');\nmodule.exports = function(object, el){\n var O = toIObject(object)\n , keys = $.getKeys(O)\n , length = keys.length\n , index = 0\n , key;\n while(length > index)if(O[key = keys[index++]] === el)return key;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.keyof.js\n ** module id = 50\n ** module chunks = 0 1\n **/","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./$.to-iobject')\n , getNames = require('./$').getNames\n , toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function(it){\n try {\n return getNames(it);\n } catch(e){\n return windowNames.slice();\n }\n};\n\nmodule.exports.get = function getOwnPropertyNames(it){\n if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);\n return getNames(toIObject(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.get-names.js\n ** module id = 51\n ** module chunks = 0 1\n **/","// all enumerable object keys, includes symbols\nvar $ = require('./$');\nmodule.exports = function(it){\n var keys = $.getKeys(it)\n , getSymbols = $.getSymbols;\n if(getSymbols){\n var symbols = getSymbols(it)\n , isEnum = $.isEnum\n , i = 0\n , key;\n while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);\n }\n return keys;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.enum-keys.js\n ** module id = 52\n ** module chunks = 0 1\n **/","// 7.2.2 IsArray(argument)\nvar cof = require('./$.cof');\nmodule.exports = Array.isArray || function(arg){\n return cof(arg) == 'Array';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array.js\n ** module id = 53\n ** module chunks = 0 1\n **/","var isObject = require('./$.is-object');\nmodule.exports = function(it){\n if(!isObject(it))throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.an-object.js\n ** module id = 54\n ** module chunks = 0 1\n **/","module.exports = function(it){\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-object.js\n ** module id = 55\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/inherits.js\n ** module id = 57\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/set-prototype-of.js\n ** module id = 58\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.setPrototypeOf;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/set-prototype-of.js\n ** module id = 59\n ** module chunks = 0 1\n **/","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./$.export');\n$export($export.S, 'Object', {setPrototypeOf: require('./$.set-proto').set});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.set-prototype-of.js\n ** module id = 60\n ** module chunks = 0 1\n **/","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar getDesc = require('./$').getDesc\n , isObject = require('./$.is-object')\n , anObject = require('./$.an-object');\nvar check = function(O, proto){\n anObject(O);\n if(!isObject(proto) && proto !== null)throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function(test, buggy, set){\n try {\n set = require('./$.ctx')(Function.call, getDesc(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch(e){ buggy = true; }\n return function setPrototypeOf(O, proto){\n check(O, proto);\n if(buggy)O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-proto.js\n ** module id = 61\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/create.js\n ** module id = 62\n ** module chunks = 0 1\n **/","var $ = require('../../modules/$');\nmodule.exports = function create(P, D){\n return $.create(P, D);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/create.js\n ** module id = 63\n ** module chunks = 0 1\n **/","/**\n * A Render Result\n */\nexport default class RenderResult {\n /**\n * @param {int} startOffset\n * @param {int} endOffset\n * @param {String} startContainerPath\n * @param {String} endContainerPath\n */\n constructor(startOffset, endOffset, startContainerPath, endContainerPath) {\n this.startOffset = startOffset;\n this.endOffset = endOffset;\n this.startContainerPath = startContainerPath;\n this.endContainerPath = endContainerPath;\n this._renderingInstance = null;\n }\n\n /**\n * @param {Object} result\n * @return RenderResult\n */\n static fromObject(result) {\n return new RenderResult(\n result.startOffset,\n result.endOffset,\n result.startContainerPath,\n result.endContainerPath\n );\n }\n\n /**\n * @returns {Object}\n */\n serialize() {\n return {\n startOffset: this.startOffset,\n endOffset: this.endOffset,\n startContainerPath: this.startContainerPath,\n endContainerPath: this.endContainerPath\n };\n }\n\n /**\n * @param {String} text\n */\n set text(text) {\n this._text = text;\n }\n\n /**\n * @returns {String}\n */\n get text() {\n return this._text;\n }\n\n /**\n * @returns {null|Rendering}\n */\n get instance() {\n return this._renderingInstance;\n }\n\n /**\n * @param {null|Rendering} instance\n */\n set instance(instance) {\n this._renderingInstance = instance;\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/RenderResult.js\n **/","/* global Set */\n\nimport EventEmitter from 'wolfy87-eventemitter';\nimport Rendering from './Rendering';\nimport Util from './util/Util';\n\n/**\n * @type {string}\n */\nexport const EVENT_CLICK = 'click';\n\n/**\n * @type {string}\n */\nexport const EVENT_MOUSEENTER = 'hover-enter';\n\n/**\n * @type {string}\n */\nexport const EVENT_MOUSELEAVE = 'hover-leave';\n\n/**\n * @type {string}\n */\nexport const EVENT_PART_TREE_ENTER = 'tree-enter';\n\n/**\n * @type {string}\n */\nexport const EVENT_PART_TREE_LEAVE = 'tree-leave';\n\n/**\n * Generic Event Handlings for Renderer\n */\nexport default class RenderingEvents extends EventEmitter {\n\n /**\n * @param {Object} options\n * @param {Document} document\n */\n constructor(options, document) {\n super();\n\n /**\n * Options\n * @type {Object}\n */\n this.options = {\n hoverClass: 'marklib--hover',\n treeClass: 'marklib--tree',\n className: ['marking']\n };\n\n this.options = Object.assign(this.options, options || {});\n\n if (typeof this.options.className === 'string') {\n this.options.className = this.options.className.split(' ');\n }\n\n /**\n * A collection of all nodes that are part of all events\n * @type {Array}\n */\n this.wrapperNodes = [];\n\n this._registerEvents(document);\n\n /**\n * @type {Document}\n */\n this.document = document;\n }\n\n /**\n * Constructs a new Range from rendered result\n * @returns {Range}\n */\n get range() {\n const range = this.document.createRange();\n const textNodes = [];\n\n this.wrapperNodes.forEach((wrapper) => {\n Util.walkTextNodes(wrapper, (node) => {\n textNodes.push(node);\n });\n });\n\n if (textNodes.length > 0) {\n const lastTextNode = textNodes[textNodes.length - 1];\n range.setStart(textNodes[0], 0);\n range.setEnd(lastTextNode, lastTextNode.length);\n return range;\n }\n\n return null;\n }\n\n /**\n * Will register events if not already bind.\n * @param {Document} document\n * @private\n */\n _registerEvents(document) {\n this.on(EVENT_MOUSEENTER, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.add(this.options.hoverClass);\n });\n });\n\n this.on(EVENT_MOUSELEAVE, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.remove(this.options.hoverClass);\n });\n });\n\n this.on(EVENT_PART_TREE_ENTER, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.add(this.options.treeClass);\n });\n });\n\n this.on(EVENT_PART_TREE_LEAVE, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.remove(this.options.treeClass);\n });\n });\n\n\n if (!global.__MARKLIB_EVENTS__) {\n global.__MARKLIB_EVENTS__ = true;\n (function init() {\n const currentHoverInstances = new Set();\n const betweenInstances = new Set();\n\n function checkMarklibInstance(e) {\n const instance = Rendering.getMarklibInstance(e);\n // instanceof check will fail if used in test scenario where different DOMs are used\n // see also http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/\n return instance && (instance instanceof Rendering || 'wrapperNodes' in instance);\n }\n\n function closestInstance(e) {\n const closest = Util.closestCallback(\n e.target,\n (thisE) => checkMarklibInstance(thisE)\n );\n if (typeof closest === 'object') {\n return Rendering.getMarklibInstance(closest);\n }\n return false;\n }\n\n function getInstancesBetween(e, instance) {\n return Util.parentsCallback(\n e.target,\n (el) => checkMarklibInstance(el) && Rendering.getMarklibInstance(el) !== instance\n ).map(el => Rendering.getMarklibInstance(el));\n }\n\n function mouseOutClear() {\n currentHoverInstances.forEach((thisInstance) => {\n thisInstance.emit(EVENT_MOUSELEAVE);\n });\n currentHoverInstances.clear();\n\n betweenInstances.forEach((thisInstance) => {\n thisInstance.emit(EVENT_PART_TREE_LEAVE);\n });\n\n betweenInstances.clear();\n }\n\n /**\n * @param {Event} e\n * @returns {Array|boolean}\n */\n function findTarget(e) {\n let instance = closestInstance(e);\n if (instance) {\n const between = getInstancesBetween(e, instance);\n if (e.target.textContent !== instance.result.text && between.length > 0) {\n let allInstances = between;\n allInstances.unshift(instance);\n // take the smallest selection\n allInstances = allInstances.sort(\n (a, b) => a.result.text.length < b.result.text.length ? -1 : 1\n );\n instance = allInstances[0];\n }\n\n return [instance, between];\n }\n return false;\n }\n\n document.addEventListener('click', (e) => {\n const target = findTarget(e);\n if (target) {\n target[0].emit(EVENT_CLICK, e, target[1]);\n }\n }, true);\n\n document.addEventListener('mouseover', (e) => {\n const target = findTarget(e);\n if (target) {\n const [instance, between] = target;\n // find instances that lay in between the node\n mouseOutClear();\n between.forEach((instanceBetween) => {\n betweenInstances.add(instanceBetween);\n instanceBetween.emit(EVENT_PART_TREE_ENTER, e, between);\n });\n instance.emit(EVENT_MOUSEENTER, e, between);\n currentHoverInstances.add(instance);\n } else {\n mouseOutClear();\n }\n }, true);\n })();\n }\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/RenderingEvents.js\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _isIterable2 = require(\"../core-js/is-iterable\");\n\nvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\nvar _getIterator2 = require(\"../core-js/get-iterator\");\n\nvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if ((0, _isIterable3.default)(Object(arr))) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/slicedToArray.js\n ** module id = 66\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/is-iterable\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/is-iterable.js\n ** module id = 67\n ** module chunks = 0 1\n **/","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.is-iterable');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/is-iterable.js\n ** module id = 68\n ** module chunks = 0 1\n **/","var classof = require('./$.classof')\n , ITERATOR = require('./$.wks')('iterator')\n , Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').isIterable = function(it){\n var O = Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n || Iterators.hasOwnProperty(classof(O));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.is-iterable.js\n ** module id = 69\n ** module chunks = 0 1\n **/","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./$.cof')\n , TAG = require('./$.wks')('toStringTag')\n // ES3 wrong here\n , ARG = cof(function(){ return arguments; }()) == 'Arguments';\n\nmodule.exports = function(it){\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = (O = Object(it))[TAG]) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.classof.js\n ** module id = 70\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/get-iterator\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/get-iterator.js\n ** module id = 71\n ** module chunks = 0 1\n **/","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.get-iterator');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/get-iterator.js\n ** module id = 72\n ** module chunks = 0 1\n **/","var anObject = require('./$.an-object')\n , get = require('./core.get-iterator-method');\nmodule.exports = require('./$.core').getIterator = function(it){\n var iterFn = get(it);\n if(typeof iterFn != 'function')throw TypeError(it + ' is not iterable!');\n return anObject(iterFn.call(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.get-iterator.js\n ** module id = 73\n ** module chunks = 0 1\n **/","var classof = require('./$.classof')\n , ITERATOR = require('./$.wks')('iterator')\n , Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').getIteratorMethod = function(it){\n if(it != undefined)return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.get-iterator-method.js\n ** module id = 74\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/set\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/set.js\n ** module id = 75\n ** module chunks = 0 1\n **/","require('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.set');\nrequire('../modules/es7.set.to-json');\nmodule.exports = require('../modules/$.core').Set;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/set.js\n ** module id = 76\n ** module chunks = 0 1\n **/","'use strict';\nvar strong = require('./$.collection-strong');\n\n// 23.2 Set Objects\nrequire('./$.collection')('Set', function(get){\n return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.2.3.1 Set.prototype.add(value)\n add: function add(value){\n return strong.def(this, value = value === 0 ? 0 : value, value);\n }\n}, strong);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.set.js\n ** module id = 77\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , hide = require('./$.hide')\n , redefineAll = require('./$.redefine-all')\n , ctx = require('./$.ctx')\n , strictNew = require('./$.strict-new')\n , defined = require('./$.defined')\n , forOf = require('./$.for-of')\n , $iterDefine = require('./$.iter-define')\n , step = require('./$.iter-step')\n , ID = require('./$.uid')('id')\n , $has = require('./$.has')\n , isObject = require('./$.is-object')\n , setSpecies = require('./$.set-species')\n , DESCRIPTORS = require('./$.descriptors')\n , isExtensible = Object.isExtensible || isObject\n , SIZE = DESCRIPTORS ? '_s' : 'size'\n , id = 0;\n\nvar fastKey = function(it, create){\n // return primitive with prefix\n if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if(!$has(it, ID)){\n // can't set id to frozen object\n if(!isExtensible(it))return 'F';\n // not necessary to add id\n if(!create)return 'E';\n // add missing object id\n hide(it, ID, ++id);\n // return object id with prefix\n } return 'O' + it[ID];\n};\n\nvar getEntry = function(that, key){\n // fast case\n var index = fastKey(key), entry;\n if(index !== 'F')return that._i[index];\n // frozen object case\n for(entry = that._f; entry; entry = entry.n){\n if(entry.k == key)return entry;\n }\n};\n\nmodule.exports = {\n getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n var C = wrapper(function(that, iterable){\n strictNew(that, C, NAME);\n that._i = $.create(null); // index\n that._f = undefined; // first entry\n that._l = undefined; // last entry\n that[SIZE] = 0; // size\n if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear(){\n for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){\n entry.r = true;\n if(entry.p)entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\n 'delete': function(key){\n var that = this\n , entry = getEntry(that, key);\n if(entry){\n var next = entry.n\n , prev = entry.p;\n delete that._i[entry.i];\n entry.r = true;\n if(prev)prev.n = next;\n if(next)next.p = prev;\n if(that._f == entry)that._f = next;\n if(that._l == entry)that._l = prev;\n that[SIZE]--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /*, that = undefined */){\n var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3)\n , entry;\n while(entry = entry ? entry.n : this._f){\n f(entry.v, entry.k, this);\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key){\n return !!getEntry(this, key);\n }\n });\n if(DESCRIPTORS)$.setDesc(C.prototype, 'size', {\n get: function(){\n return defined(this[SIZE]);\n }\n });\n return C;\n },\n def: function(that, key, value){\n var entry = getEntry(that, key)\n , prev, index;\n // change existing entry\n if(entry){\n entry.v = value;\n // create new entry\n } else {\n that._l = entry = {\n i: index = fastKey(key, true), // <- index\n k: key, // <- key\n v: value, // <- value\n p: prev = that._l, // <- previous entry\n n: undefined, // <- next entry\n r: false // <- removed\n };\n if(!that._f)that._f = entry;\n if(prev)prev.n = entry;\n that[SIZE]++;\n // add to index\n if(index !== 'F')that._i[index] = entry;\n } return that;\n },\n getEntry: getEntry,\n setStrong: function(C, NAME, IS_MAP){\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n $iterDefine(C, NAME, function(iterated, kind){\n this._t = iterated; // target\n this._k = kind; // kind\n this._l = undefined; // previous\n }, function(){\n var that = this\n , kind = that._k\n , entry = that._l;\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n // get next entry\n if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){\n // or finish the iteration\n that._t = undefined;\n return step(1);\n }\n // return step by kind\n if(kind == 'keys' )return step(0, entry.k);\n if(kind == 'values')return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(NAME);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection-strong.js\n ** module id = 78\n ** module chunks = 0 1\n **/","var redefine = require('./$.redefine');\nmodule.exports = function(target, src){\n for(var key in src)redefine(target, key, src[key]);\n return target;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine-all.js\n ** module id = 79\n ** module chunks = 0 1\n **/","module.exports = function(it, Constructor, name){\n if(!(it instanceof Constructor))throw TypeError(name + \": use the 'new' operator!\");\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.strict-new.js\n ** module id = 80\n ** module chunks = 0 1\n **/","var ctx = require('./$.ctx')\n , call = require('./$.iter-call')\n , isArrayIter = require('./$.is-array-iter')\n , anObject = require('./$.an-object')\n , toLength = require('./$.to-length')\n , getIterFn = require('./core.get-iterator-method');\nmodule.exports = function(iterable, entries, fn, that){\n var iterFn = getIterFn(iterable)\n , f = ctx(fn, that, entries ? 2 : 1)\n , index = 0\n , length, step, iterator;\n if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){\n entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){\n call(iterator, f, step.value, entries);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.for-of.js\n ** module id = 81\n ** module chunks = 0 1\n **/","// call something on iterator step with safe closing on error\nvar anObject = require('./$.an-object');\nmodule.exports = function(iterator, fn, value, entries){\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch(e){\n var ret = iterator['return'];\n if(ret !== undefined)anObject(ret.call(iterator));\n throw e;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-call.js\n ** module id = 82\n ** module chunks = 0 1\n **/","// check on default Array iterator\nvar Iterators = require('./$.iterators')\n , ITERATOR = require('./$.wks')('iterator')\n , ArrayProto = Array.prototype;\n\nmodule.exports = function(it){\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array-iter.js\n ** module id = 83\n ** module chunks = 0 1\n **/","// 7.1.15 ToLength\nvar toInteger = require('./$.to-integer')\n , min = Math.min;\nmodule.exports = function(it){\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-length.js\n ** module id = 84\n ** module chunks = 0 1\n **/","'use strict';\nvar core = require('./$.core')\n , $ = require('./$')\n , DESCRIPTORS = require('./$.descriptors')\n , SPECIES = require('./$.wks')('species');\n\nmodule.exports = function(KEY){\n var C = core[KEY];\n if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {\n configurable: true,\n get: function(){ return this; }\n });\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-species.js\n ** module id = 85\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , global = require('./$.global')\n , $export = require('./$.export')\n , fails = require('./$.fails')\n , hide = require('./$.hide')\n , redefineAll = require('./$.redefine-all')\n , forOf = require('./$.for-of')\n , strictNew = require('./$.strict-new')\n , isObject = require('./$.is-object')\n , setToStringTag = require('./$.set-to-string-tag')\n , DESCRIPTORS = require('./$.descriptors');\n\nmodule.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){\n var Base = global[NAME]\n , C = Base\n , ADDER = IS_MAP ? 'set' : 'add'\n , proto = C && C.prototype\n , O = {};\n if(!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){\n new C().entries().next();\n }))){\n // create collection constructor\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n redefineAll(C.prototype, methods);\n } else {\n C = wrapper(function(target, iterable){\n strictNew(target, C, NAME);\n target._c = new Base;\n if(iterable != undefined)forOf(iterable, IS_MAP, target[ADDER], target);\n });\n $.each.call('add,clear,delete,forEach,get,has,set,keys,values,entries'.split(','),function(KEY){\n var IS_ADDER = KEY == 'add' || KEY == 'set';\n if(KEY in proto && !(IS_WEAK && KEY == 'clear'))hide(C.prototype, KEY, function(a, b){\n if(!IS_ADDER && IS_WEAK && !isObject(a))return KEY == 'get' ? undefined : false;\n var result = this._c[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n });\n if('size' in proto)$.setDesc(C.prototype, 'size', {\n get: function(){\n return this._c.size;\n }\n });\n }\n\n setToStringTag(C, NAME);\n\n O[NAME] = C;\n $export($export.G + $export.W + $export.F, O);\n\n if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);\n\n return C;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection.js\n ** module id = 86\n ** module chunks = 0 1\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export = require('./$.export');\n\n$export($export.P, 'Set', {toJSON: require('./$.collection-to-json')('Set')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es7.set.to-json.js\n ** module id = 87\n ** module chunks = 0 1\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar forOf = require('./$.for-of')\n , classof = require('./$.classof');\nmodule.exports = function(NAME){\n return function toJSON(){\n if(classof(this) != NAME)throw TypeError(NAME + \"#toJSON isn't generic\");\n var arr = [];\n forOf(this, false, arr.push, arr);\n return arr;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection-to-json.js\n ** module id = 88\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/assign.js\n ** module id = 89\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/$.core').Object.assign;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/assign.js\n ** module id = 90\n ** module chunks = 0 1\n **/","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./$.export');\n\n$export($export.S + $export.F, 'Object', {assign: require('./$.object-assign')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.assign.js\n ** module id = 91\n ** module chunks = 0 1\n **/","// 19.1.2.1 Object.assign(target, source, ...)\nvar $ = require('./$')\n , toObject = require('./$.to-object')\n , IObject = require('./$.iobject');\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = require('./$.fails')(function(){\n var a = Object.assign\n , A = {}\n , B = {}\n , S = Symbol()\n , K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function(k){ B[k] = k; });\n return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n var T = toObject(target)\n , $$ = arguments\n , $$len = $$.length\n , index = 1\n , getKeys = $.getKeys\n , getSymbols = $.getSymbols\n , isEnum = $.isEnum;\n while($$len > index){\n var S = IObject($$[index++])\n , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n , length = keys.length\n , j = 0\n , key;\n while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n }\n return T;\n} : Object.assign;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-assign.js\n ** module id = 92\n ** module chunks = 0 1\n **/","/*!\n * EventEmitter v4.2.11 - git.io/ee\n * Unlicense - http://unlicense.org/\n * Oliver Caldwell - http://oli.me.uk/\n * @preserve\n */\n\n;(function () {\n 'use strict';\n\n /**\n * Class for managing events.\n * Can be extended to provide event functionality in other classes.\n *\n * @class EventEmitter Manages event registering and emitting.\n */\n function EventEmitter() {}\n\n // Shortcuts to improve speed and size\n var proto = EventEmitter.prototype;\n var exports = this;\n var originalGlobalValue = exports.EventEmitter;\n\n /**\n * Finds the index of the listener for the event in its storage array.\n *\n * @param {Function[]} listeners Array of listeners to search through.\n * @param {Function} listener Method to look for.\n * @return {Number} Index of the specified listener, -1 if not found\n * @api private\n */\n function indexOfListener(listeners, listener) {\n var i = listeners.length;\n while (i--) {\n if (listeners[i].listener === listener) {\n return i;\n }\n }\n\n return -1;\n }\n\n /**\n * Alias a method while keeping the context correct, to allow for overwriting of target method.\n *\n * @param {String} name The name of the target method.\n * @return {Function} The aliased method\n * @api private\n */\n function alias(name) {\n return function aliasClosure() {\n return this[name].apply(this, arguments);\n };\n }\n\n /**\n * Returns the listener array for the specified event.\n * Will initialise the event object and listener arrays if required.\n * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.\n * Each property in the object response is an array of listener functions.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Function[]|Object} All listener functions for the event.\n */\n proto.getListeners = function getListeners(evt) {\n var events = this._getEvents();\n var response;\n var key;\n\n // Return a concatenated array of all matching events if\n // the selector is a regular expression.\n if (evt instanceof RegExp) {\n response = {};\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n response[key] = events[key];\n }\n }\n }\n else {\n response = events[evt] || (events[evt] = []);\n }\n\n return response;\n };\n\n /**\n * Takes a list of listener objects and flattens it into a list of listener functions.\n *\n * @param {Object[]} listeners Raw listener objects.\n * @return {Function[]} Just the listener functions.\n */\n proto.flattenListeners = function flattenListeners(listeners) {\n var flatListeners = [];\n var i;\n\n for (i = 0; i < listeners.length; i += 1) {\n flatListeners.push(listeners[i].listener);\n }\n\n return flatListeners;\n };\n\n /**\n * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Object} All listener functions for an event in an object.\n */\n proto.getListenersAsObject = function getListenersAsObject(evt) {\n var listeners = this.getListeners(evt);\n var response;\n\n if (listeners instanceof Array) {\n response = {};\n response[evt] = listeners;\n }\n\n return response || listeners;\n };\n\n /**\n * Adds a listener function to the specified event.\n * The listener will not be added if it is a duplicate.\n * If the listener returns true then it will be removed after it is called.\n * If you pass a regular expression as the event name then the listener will be added to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListener = function addListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var listenerIsWrapped = typeof listener === 'object';\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {\n listeners[key].push(listenerIsWrapped ? listener : {\n listener: listener,\n once: false\n });\n }\n }\n\n return this;\n };\n\n /**\n * Alias of addListener\n */\n proto.on = alias('addListener');\n\n /**\n * Semi-alias of addListener. It will add a listener that will be\n * automatically removed after its first execution.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addOnceListener = function addOnceListener(evt, listener) {\n return this.addListener(evt, {\n listener: listener,\n once: true\n });\n };\n\n /**\n * Alias of addOnceListener.\n */\n proto.once = alias('addOnceListener');\n\n /**\n * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.\n * You need to tell it what event names should be matched by a regex.\n *\n * @param {String} evt Name of the event to create.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvent = function defineEvent(evt) {\n this.getListeners(evt);\n return this;\n };\n\n /**\n * Uses defineEvent to define multiple events.\n *\n * @param {String[]} evts An array of event names to define.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvents = function defineEvents(evts) {\n for (var i = 0; i < evts.length; i += 1) {\n this.defineEvent(evts[i]);\n }\n return this;\n };\n\n /**\n * Removes a listener function from the specified event.\n * When passed a regular expression as the event name, it will remove the listener from all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to remove the listener from.\n * @param {Function} listener Method to remove from the event.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListener = function removeListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var index;\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key)) {\n index = indexOfListener(listeners[key], listener);\n\n if (index !== -1) {\n listeners[key].splice(index, 1);\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of removeListener\n */\n proto.off = alias('removeListener');\n\n /**\n * Adds listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.\n * You can also pass it a regular expression to add the array of listeners to all events that match it.\n * Yeah, this function does quite a bit. That's probably a bad thing.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListeners = function addListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(false, evt, listeners);\n };\n\n /**\n * Removes listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be removed.\n * You can also pass it a regular expression to remove the listeners from all events that match it.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListeners = function removeListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(true, evt, listeners);\n };\n\n /**\n * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.\n * The first argument will determine if the listeners are removed (true) or added (false).\n * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be added/removed.\n * You can also pass it a regular expression to manipulate the listeners of all events that match it.\n *\n * @param {Boolean} remove True if you want to remove listeners, false if you want to add.\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add/remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {\n var i;\n var value;\n var single = remove ? this.removeListener : this.addListener;\n var multiple = remove ? this.removeListeners : this.addListeners;\n\n // If evt is an object then pass each of its properties to this method\n if (typeof evt === 'object' && !(evt instanceof RegExp)) {\n for (i in evt) {\n if (evt.hasOwnProperty(i) && (value = evt[i])) {\n // Pass the single listener straight through to the singular method\n if (typeof value === 'function') {\n single.call(this, i, value);\n }\n else {\n // Otherwise pass back to the multiple function\n multiple.call(this, i, value);\n }\n }\n }\n }\n else {\n // So evt must be a string\n // And listeners must be an array of listeners\n // Loop over it and pass each one to the multiple method\n i = listeners.length;\n while (i--) {\n single.call(this, evt, listeners[i]);\n }\n }\n\n return this;\n };\n\n /**\n * Removes all listeners from a specified event.\n * If you do not specify an event then all listeners will be removed.\n * That means every event will be emptied.\n * You can also pass a regex to remove all events that match it.\n *\n * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeEvent = function removeEvent(evt) {\n var type = typeof evt;\n var events = this._getEvents();\n var key;\n\n // Remove different things depending on the state of evt\n if (type === 'string') {\n // Remove all listeners for the specified event\n delete events[evt];\n }\n else if (evt instanceof RegExp) {\n // Remove all events matching the regex.\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n delete events[key];\n }\n }\n }\n else {\n // Remove all listeners in all events\n delete this._events;\n }\n\n return this;\n };\n\n /**\n * Alias of removeEvent.\n *\n * Added to mirror the node API.\n */\n proto.removeAllListeners = alias('removeEvent');\n\n /**\n * Emits an event of your choice.\n * When emitted, every listener attached to that event will be executed.\n * If you pass the optional argument array then those arguments will be passed to every listener upon execution.\n * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.\n * So they will not arrive within the array on the other side, they will be separate.\n * You can also pass a regular expression to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {Array} [args] Optional array of arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emitEvent = function emitEvent(evt, args) {\n var listenersMap = this.getListenersAsObject(evt);\n var listeners;\n var listener;\n var i;\n var key;\n var response;\n\n for (key in listenersMap) {\n if (listenersMap.hasOwnProperty(key)) {\n listeners = listenersMap[key].slice(0);\n i = listeners.length;\n\n while (i--) {\n // If the listener returns true then it shall be removed from the event\n // The function is executed either with a basic call or an apply if there is an args array\n listener = listeners[i];\n\n if (listener.once === true) {\n this.removeListener(evt, listener.listener);\n }\n\n response = listener.listener.apply(this, args || []);\n\n if (response === this._getOnceReturnValue()) {\n this.removeListener(evt, listener.listener);\n }\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of emitEvent\n */\n proto.trigger = alias('emitEvent');\n\n /**\n * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.\n * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {...*} Optional additional arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emit = function emit(evt) {\n var args = Array.prototype.slice.call(arguments, 1);\n return this.emitEvent(evt, args);\n };\n\n /**\n * Sets the current value to check against when executing listeners. If a\n * listeners return value matches the one set here then it will be removed\n * after execution. This value defaults to true.\n *\n * @param {*} value The new value to check for when executing listeners.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.setOnceReturnValue = function setOnceReturnValue(value) {\n this._onceReturnValue = value;\n return this;\n };\n\n /**\n * Fetches the current value to check against when executing listeners. If\n * the listeners return value matches this one then it should be removed\n * automatically. It will return true by default.\n *\n * @return {*|Boolean} The current value to check for or the default, true.\n * @api private\n */\n proto._getOnceReturnValue = function _getOnceReturnValue() {\n if (this.hasOwnProperty('_onceReturnValue')) {\n return this._onceReturnValue;\n }\n else {\n return true;\n }\n };\n\n /**\n * Fetches the events object and creates one if required.\n *\n * @return {Object} The events storage object.\n * @api private\n */\n proto._getEvents = function _getEvents() {\n return this._events || (this._events = {});\n };\n\n /**\n * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.\n *\n * @return {Function} Non conflicting EventEmitter class.\n */\n EventEmitter.noConflict = function noConflict() {\n exports.EventEmitter = originalGlobalValue;\n return EventEmitter;\n };\n\n // Expose the class either via AMD, CommonJS or the global object\n if (typeof define === 'function' && define.amd) {\n define(function () {\n return EventEmitter;\n });\n }\n else if (typeof module === 'object' && module.exports){\n module.exports = EventEmitter;\n }\n else {\n exports.EventEmitter = EventEmitter;\n }\n}.call(this));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wolfy87-eventemitter/EventEmitter.js\n ** module id = 93\n ** module chunks = 0 1\n **/","/* global Node, NodeList, Element */\n\n/**\n * @type {string}\n */\nexport const ATTR_DATA_ORIGINAL_INDEX = 'data-original-index';\n/**\n * @type {string}\n */\nexport const DATA_IS_SELECTION = 'data-is-selection';\n/**\n * @type {string}\n */\nconst SERIALIZE_SEPARATOR = \";\";\n\nimport { ATTR_DATA_ORIGINAL_OFFSET_START } from '../Rendering';\n\n// polyfill for matchesSelector, IE 10/11 does not support Element.matches\nif (Element && !Element.prototype.matches) {\n const p = Element.prototype;\n p.matches = p.matchesSelector ||\n p.mozMatchesSelector || p.msMatchesSelector ||\n p.oMatchesSelector || p.webkitMatchesSelector;\n}\n\n/**\n * Utility class\n * Contains DOM/Node manipulation helpers\n */\nexport default\nclass Util {\n\n /**\n * Filter for a NodeList\n * @param {NodeList} nodes\n * @param {Function} func\n *\n * @returns {Array.}\n */\n static nodeListFilter(nodes, func) {\n return Array.prototype.filter.call(nodes || [], func);\n }\n\n\n /**\n * Generates a unique id\n *\n * @return {String}\n */\n static guid() {\n const s4 = () => {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n };\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n }\n\n /**\n * Checks if a given node is empty\n * @param {HTMLElement} node\n *\n * @returns {*}\n */\n static nodeIsEmpty(node) {\n return node.nodeValue.match(/^[\\s]*$/g);\n }\n\n\n /**\n * @param {HTMLElement} node\n * @param [optionalList]\n *\n * @return {int} the index of this node in context to it's siblings\n */\n static index(node, optionalList) {\n const children = optionalList || (node.nodeType === Node.TEXT_NODE ?\n node.parentNode.childNodes : node.parentNode.children);\n return Array.prototype.indexOf.call(children || [], node);\n }\n\n /**\n * Wraps given `elms` in given `wrapper`\n *\n * @param {HTMLElement|Array.|Node} elms\n * @param {HTMLElement|Node} wrapper\n *\n * @return {HTMLElement}\n */\n static wrap(elms, wrapper) {\n let thisElms = elms;\n\n if (!thisElms) {\n return wrapper;\n }\n // Convert `elms` to an array, if necessary.\n if (!(thisElms instanceof NodeList || thisElms instanceof Array)) {\n thisElms = [thisElms];\n }\n for (let i = thisElms.length - 1; i >= 0; i--) {\n const child = (i > 0) ? wrapper.cloneNode(true) : wrapper;\n const el = thisElms[i];\n // Cache the current parent and sibling.\n const parent = el.parentNode;\n const sibling = el.nextSibling;\n\n child.appendChild(el);\n if (sibling) {\n parent.insertBefore(child, sibling);\n } else {\n parent.appendChild(child);\n }\n }\n return wrapper;\n }\n\n /**\n * Will calculate an index depending on an already modified dom by marklib\n * @param {HTMLElement|Node} node\n *\n * @returns {int|boolean}\n */\n static calcIndex(node) {\n let calculatedIndex = 0;\n let foundWrapper = false;\n const nodes = node.parentNode.childNodes;\n const length = nodes.length;\n for (let thisIndex = 0; thisIndex < length; thisIndex++) {\n const el = nodes[thisIndex];\n if (el === node) {\n break;\n }\n // reset index when original index is found\n const maybeIndexOfOriginal = el.getAttribute ? el.getAttribute(ATTR_DATA_ORIGINAL_INDEX) : null;\n\n if (maybeIndexOfOriginal) {\n calculatedIndex = parseInt(maybeIndexOfOriginal, 10);\n foundWrapper = true;\n }\n calculatedIndex++;\n }\n return foundWrapper ? calculatedIndex : Util.index(node);\n }\n\n /**\n * @param {HTMLElement|Node} el\n * @param {String} [optionalSelector] will test given element against a selector\n * if matches, returns this element immediately\n *\n * @return {Array.} an array of all found parents of given element (and optional selector)\n */\n static parents(el, optionalSelector) {\n return Util.parentsCallback(el, (element) => {\n if (optionalSelector && ((element === optionalSelector) ||\n ((typeof optionalSelector === 'string') && element.matches &&\n element.matches(optionalSelector)))) {\n return true;\n } else if (!optionalSelector) {\n return true;\n }\n return false;\n });\n }\n\n /**\n * @param {HTMLElement|Node} el\n * @param {Function} callback\n * @return {Array.} an array of all found parents of given element (and optional selector)\n */\n static parentsCallback(el, callback) {\n let element = el;\n const foundElements = [];\n while (element.parentNode !== null) {\n element = element.parentNode;\n if (callback(element)) {\n foundElements.push(element);\n }\n }\n return foundElements;\n }\n\n /**\n * Finds a parent node (the closest) with a given selector\n * @param {Node} el\n * @param {String} selector\n *\n * @returns {Node|boolean}\n */\n static parent(el, selector) {\n let element = el;\n while (element.parentNode !== null) {\n element = element.parentNode;\n if (element.matches && element.matches(selector)) {\n return element;\n }\n }\n return false;\n }\n\n /**\n * Finds the closest element including itself matching a given selector\n * @param {Node} el\n * @param selector\n *\n * @returns {Node|boolean}\n */\n static closest(el, selector) {\n return Util.closestCallback(el, (element) => element.matches && element.matches(selector));\n }\n\n /**\n * Finds the closest element including itself matching a callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static closestCallback(el, callback) {\n let element = el;\n while (element !== null) {\n if (callback(element)) {\n return element;\n }\n element = element.parentNode;\n }\n return false;\n }\n\n /**\n * Finds the outermost fitting element that matches callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static outerMostCallback(el, callback) {\n let element = el;\n let lastValid = false;\n while (element !== null) {\n if (callback(element)) {\n lastValid = element;\n }\n element = element.parentNode;\n }\n return lastValid;\n }\n\n /**\n * @param {HTMLElement} n\n *\n * @return {boolean}\n */\n static isMarkNode(n) {\n return n instanceof HTMLElement && n.hasAttribute(DATA_IS_SELECTION);\n }\n\n /**\n * Determines the correct paths and excludes all `marklib` generated content\n * TODO: To improve performance we could shorten the path if an ID is present in it.\n * @param {HTMLElement|Node} el\n * @param {HTMLElement|Node} [context] if given extraction path is relative to this element\n * @returns {string}\n */\n static getPath(el, context) {\n let path = null;\n let node = el;\n\n const filterSiblings = (thisEl) => {\n return !Util.isMarkNode(thisEl) && thisEl.nodeName === node.nodeName;\n };\n\n while (node) {\n let name = null;\n // If node is a text-node, save index\n if (Node.TEXT_NODE === node.nodeType) {\n /* Because nodes may wrapped inside a highlighting node, we need to find the original index that was\n * valid before the dom changes. We store the last known index position inside all wrapper elements\n * We select the outermost\n */\n\n // Extract original index of this node:\n // Outer most data-original-index is original index\n const outerMostElement = Util.parents(node, '[' + ATTR_DATA_ORIGINAL_INDEX + ']').reverse()[0];\n // if element is not yet wrapped in span, recalculate index based on parent container:\n // We have to do this because text node indexes != element indexes...\n let calculatedIndex = 0;\n if (!outerMostElement) {\n calculatedIndex = Util.calcIndex(node);\n }\n const index = outerMostElement ? parseInt(\n outerMostElement.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10) : calculatedIndex;\n name = SERIALIZE_SEPARATOR + index;\n } else {\n name = node.nodeName;\n }\n\n if (!name) {\n break;\n }\n\n name = name.toLowerCase();\n\n const parent = node.parentNode;\n\n if (Util.isMarkNode(node)) {\n if (parent !== context) {\n node = parent;\n continue;\n } else {\n break;\n }\n }\n\n // Select only siblings that are not part of selection and are of the same type\n // (because we use nth-of-type selector later)\n const siblings = Util.nodeListFilter(parent.children, filterSiblings);\n const nodeIndex = Util.index(node, siblings);\n\n if (siblings.length > 1 && nodeIndex >= 0) {\n name += ':nth-of-type(' + (nodeIndex + 1) + ')';\n }\n\n path = name + (path ? '>' + path : '');\n\n\n if (parent === context) {\n break;\n }\n\n node = parent;\n }\n\n return path.replace(\"#document>\", \"\").replace('>;', ';');\n }\n\n /**\n * Will return the first original offset value that is found\n * @param {Node} element\n *\n * @returns {int}\n */\n static findOriginalOffset(element) {\n if (!element.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n return 0;\n }\n const lengthElement = Util.parent(element, '[' + ATTR_DATA_ORIGINAL_OFFSET_START + ']');\n return lengthElement ? parseInt(lengthElement.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) : 0;\n }\n\n\n /**\n * Deserialize a specific path and finds the right textNodes\n * This even works when DOM has been manipulated before by `marklib`\n * @param {string} path the serialized path (including offsets)\n * @param {Node|HTMLElement} context\n *\n * @return {Node}\n */\n static deserializePath(path, context) {\n const pSplit = path.split(';');\n const p = pSplit[0];\n const objectIndex = parseInt(pSplit[1], 10);\n const charOffset = parseInt(pSplit[2], 10);\n const container = !p.trim() ? context : context.querySelector(p);\n\n let maybeFoundNode = null;\n\n Util.walkTextNodes(container, (n) => {\n let atrOffsetStart = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START);\n atrOffsetStart = atrOffsetStart === null ? 0 : atrOffsetStart;\n let atrIndex = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_INDEX);\n atrIndex = atrIndex === null ? Util.calcIndex(n) : atrIndex;\n if (parseInt(atrIndex, 10) === objectIndex && charOffset >= atrOffsetStart &&\n ((parseInt(atrOffsetStart, 10) + n.length) >= charOffset)) {\n const thisOffset = n.parentNode\n .hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START) ? charOffset -\n parseInt(n.parentNode\n .getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) : charOffset;\n\n maybeFoundNode = {\n node: n,\n offset: thisOffset\n };\n\n return false;\n }\n return true;\n }, null);\n\n return maybeFoundNode;\n }\n\n\n /**\n * Walks the dom tree unless func returns false\n * Applies node to function\n *\n * @param {Node} node\n * @param {Function} func\n * @param {int} type, see `NodeFilter`\n * @param {Object} [filter] skips empty text nodes by default\n *\n * @returns {boolean} true if function did abort walk\n */\n static walkDom(node, func, type = NodeFilter.SHOW_ALL, filter = null) {\n if (!node) {\n return false;\n }\n const args = [node, type, filter || (() => true), false];\n args.push(false);\n const walker = document.createTreeWalker(...args);\n while (walker.nextNode()) {\n if (!func(walker.currentNode)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Extracts all TextNodes inside a container\n * @param {Node} el\n * @param {Function} func\n * @param {Object} [filter] skips empty text nodes by default\n * @returns {boolean} true if function did abort walk\n */\n static walkTextNodes(el, func, filter = (node) => !Util.nodeIsEmpty(node)) {\n return Util.walkDom(el, func, NodeFilter.SHOW_TEXT, filter);\n }\n\n /**\n * @param {Node} container\n * @param {Number} thisIndex\n * @returns {int|string} index of parent or original\n */\n static getIndexParentIfHas(container, thisIndex) {\n const p = container.parentNode;\n const index = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10);\n return index > thisIndex ? index : thisIndex;\n }\n\n /**\n * @param container\n * @returns {int} offset start of parent if has, else 0\n */\n static getOffsetParentIfHas(container) {\n const p = container.parentNode;\n const offset = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10);\n return offset > 0 ? offset : 0;\n }\n\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/util/Util.js\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/build/js/marklib.min.map b/build/js/marklib.min.map index d43dd05..1825704 100644 --- a/build/js/marklib.min.map +++ b/build/js/marklib.min.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition?5ca6","webpack:///js/marklib.min.js","webpack:///webpack/bootstrap 15f3bfefb7f0b8c9df4c?a38c","webpack:///./~/core-js/library/modules/$.js?6ce7","webpack:///./~/core-js/library/modules/$.core.js?7680","webpack:///./~/core-js/library/modules/$.wks.js?3e04","webpack:///./~/core-js/library/modules/$.export.js?b734","webpack:///./~/core-js/library/modules/$.iterators.js?9d0a","webpack:///./~/core-js/library/modules/$.an-object.js?2be9","webpack:///./~/core-js/library/modules/$.descriptors.js?8327","webpack:///./~/core-js/library/modules/$.fails.js?6c29","webpack:///./~/core-js/library/modules/$.global.js?4deb","webpack:///./~/core-js/library/modules/$.hide.js?2cce","webpack:///./~/babel-runtime/helpers/classCallCheck.js?21af","webpack:///./~/babel-runtime/helpers/createClass.js?1dfe","webpack:///./~/core-js/library/modules/$.ctx.js?e797","webpack:///./~/core-js/library/modules/$.defined.js?7087","webpack:///./~/core-js/library/modules/$.has.js?bcec","webpack:///./~/core-js/library/modules/$.is-object.js?7453","webpack:///./~/core-js/library/modules/$.set-to-string-tag.js?d0fc","webpack:///./~/core-js/library/modules/$.to-iobject.js?daca","webpack:///./~/core-js/library/modules/es6.string.iterator.js?fe18","webpack:///./~/core-js/library/modules/web.dom.iterable.js?bf0e","webpack:///./src/main/Rendering.js?6592","webpack:///./src/main/util/Util.js?5bc4","webpack:///./~/babel-runtime/helpers/typeof.js?f4bd","webpack:///./~/core-js/library/modules/$.classof.js?c1cb","webpack:///./~/core-js/library/modules/$.cof.js?74ee","webpack:///./~/core-js/library/modules/$.for-of.js?bf1d","webpack:///./~/core-js/library/modules/$.iter-define.js?970f","webpack:///./~/core-js/library/modules/$.property-desc.js?e1db","webpack:///./~/core-js/library/modules/$.redefine.js?2643","webpack:///./~/core-js/library/modules/$.uid.js?f177","webpack:///./src/main/RenderResult.js?09ff","webpack:///./src/main/RenderingEvents.js?d122","webpack:///./~/babel-runtime/core-js/object/get-prototype-of.js?b265","webpack:///./~/babel-runtime/helpers/inherits.js?0578","webpack:///./~/babel-runtime/helpers/possibleConstructorReturn.js?aad9","webpack:///./~/core-js/library/modules/$.iobject.js?3ada","webpack:///./~/core-js/library/modules/$.iter-step.js?76ef","webpack:///./~/core-js/library/modules/$.library.js?c05f","webpack:///./~/core-js/library/modules/$.redefine-all.js?0c0d","webpack:///./~/core-js/library/modules/$.shared.js?6ce8","webpack:///./~/core-js/library/modules/$.strict-new.js?979f","webpack:///./~/core-js/library/modules/$.to-integer.js?b29c","webpack:///./~/core-js/library/modules/$.to-object.js?093c","webpack:///./~/core-js/library/modules/core.get-iterator-method.js?9c88","webpack:///./src/main/modules/Marklib.js?dcc3","webpack:///./~/babel-runtime/core-js/get-iterator.js?1b08","webpack:///./~/babel-runtime/core-js/is-iterable.js?350e","webpack:///./~/babel-runtime/core-js/object/assign.js?e6ca","webpack:///./~/babel-runtime/core-js/object/create.js?aa4b","webpack:///./~/babel-runtime/core-js/object/define-property.js?5f70","webpack:///./~/babel-runtime/core-js/object/set-prototype-of.js?bb00","webpack:///./~/babel-runtime/core-js/set.js?0724","webpack:///./~/babel-runtime/core-js/symbol.js?a70d","webpack:///./~/babel-runtime/core-js/symbol/iterator.js?d16b","webpack:///./~/babel-runtime/helpers/slicedToArray.js?39c4","webpack:///./~/core-js/library/fn/get-iterator.js?2cf7","webpack:///./~/core-js/library/fn/is-iterable.js?0bd2","webpack:///./~/core-js/library/fn/object/assign.js?80e4","webpack:///./~/core-js/library/fn/object/create.js?738c","webpack:///./~/core-js/library/fn/object/define-property.js?b7d8","webpack:///./~/core-js/library/fn/object/get-prototype-of.js?5193","webpack:///./~/core-js/library/fn/object/set-prototype-of.js?f909","webpack:///./~/core-js/library/fn/set.js?2c6c","webpack:///./~/core-js/library/fn/symbol/index.js?f07a","webpack:///./~/core-js/library/fn/symbol/iterator.js?238d","webpack:///./~/core-js/library/modules/$.a-function.js?860b","webpack:///./~/core-js/library/modules/$.add-to-unscopables.js?af5b","webpack:///./~/core-js/library/modules/$.collection-strong.js?75b1","webpack:///./~/core-js/library/modules/$.collection-to-json.js?9a82","webpack:///./~/core-js/library/modules/$.collection.js?1dbc","webpack:///./~/core-js/library/modules/$.enum-keys.js?1c2a","webpack:///./~/core-js/library/modules/$.get-names.js?e4b8","webpack:///./~/core-js/library/modules/$.is-array-iter.js?787a","webpack:///./~/core-js/library/modules/$.is-array.js?4d69","webpack:///./~/core-js/library/modules/$.iter-call.js?581c","webpack:///./~/core-js/library/modules/$.iter-create.js?4401","webpack:///./~/core-js/library/modules/$.keyof.js?3b7d","webpack:///./~/core-js/library/modules/$.object-assign.js?ed5a","webpack:///./~/core-js/library/modules/$.object-sap.js?f39d","webpack:///./~/core-js/library/modules/$.set-proto.js?759b","webpack:///./~/core-js/library/modules/$.set-species.js?71c4","webpack:///./~/core-js/library/modules/$.string-at.js?a0b4","webpack:///./~/core-js/library/modules/$.to-length.js?9639","webpack:///./~/core-js/library/modules/core.get-iterator.js?aca7","webpack:///./~/core-js/library/modules/core.is-iterable.js?77cc","webpack:///./~/core-js/library/modules/es6.array.iterator.js?1e09","webpack:///./~/core-js/library/modules/es6.object.assign.js?9007","webpack:///./~/core-js/library/modules/es6.object.get-prototype-of.js?eaa3","webpack:///./~/core-js/library/modules/es6.object.set-prototype-of.js?b195","webpack:///./~/core-js/library/modules/es6.set.js?dbba","webpack:///./~/core-js/library/modules/es6.symbol.js?670a","webpack:///./~/core-js/library/modules/es7.set.to-json.js?e75b","webpack:///./~/wolfy87-eventemitter/EventEmitter.js?ed18"],"names":["root","factory","exports","module","define","amd","this","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","$Object","Object","create","getProto","getPrototypeOf","isEnum","propertyIsEnumerable","getDesc","getOwnPropertyDescriptor","setDesc","defineProperty","setDescs","defineProperties","getKeys","keys","getNames","getOwnPropertyNames","getSymbols","getOwnPropertySymbols","each","forEach","core","version","__e","store","uid","Symbol","name","global","ctx","PROTOTYPE","$export","type","source","key","own","out","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","IS_WRAP","W","target","C","param","Function","isObject","it","TypeError","get","a","exec","e","window","Math","self","__g","$","createDesc","object","value","__esModule","instance","Constructor","_interopRequireDefault","obj","default","_defineProperty","_defineProperty2","props","i","length","descriptor","enumerable","configurable","writable","protoProps","staticProps","prototype","aFunction","fn","that","undefined","b","apply","arguments","hasOwnProperty","def","has","TAG","tag","stat","IObject","defined","$at","String","iterated","_t","_i","point","O","index","done","Iterators","NodeList","HTMLCollection","Array","EVENT_WRAPPED_NODE","ATTR_DATA_ORIGINAL_OFFSET_START","_getPrototypeOf","_getPrototypeOf2","_classCallCheck2","_classCallCheck3","_createClass2","_createClass3","_possibleConstructorReturn2","_possibleConstructorReturn3","_inherits2","_inherits3","_RenderResult","_RenderResult2","_RenderingEvents2","_RenderingEvents3","_Util","_Util2","TAG_NAME","DATA_ORIGINAL_TEXT_NODE_INDEX","ATTR_DATA_START_END","ATTR_DATA_IS_HIGHLIGHT_NODE","ATTR_DATA_ID","DOCUMENT_POSITION_CONTAINED_BY","Rendering","_RenderingEvents","document","options","context","_this","guid","startContainer","endContainer","_renderResult","_this2","wrapperNodes","node","setAttribute","omitHighlight","el","createElement","vTrue","className","join","setMarklibInstance","push","getId","DATA_IS_SELECTION","text","_createWrapTemplate","textContent","initialNode","offset","wrapper","_createStartEndWrapTemplate","ATTR_DATA_ORIGINAL_INDEX","getIndexParentIfHas","optionalLength","optionalIndex","optionalIsSameNode","originalIndex","calcIndex","offsetLength","getOffsetParentIfHas","wrap","emit","originalElement","start","nextParent","nextParentNode","parentNode","currentParentNode","wrapSiblings","nextSibling","_this3","next","found","n","getMarklibInstance","hasAttribute","_createWrap","wrapIf","nodeIsEmpty","walkIfContained","Node","TEXT_NODE","nodeType","walkIfNotContained","currentNext","compareDocumentPosition","walkDom","walkTextNodes","textNode","startIndex","endIndex","initialText","nodeValue","initialIndex","textBefore","slice","insertBefore","createTextNode","previousSibling","_createSplitContainer","textAfter","startOffset","endOffset","startContainerIndex","endContainerIndex","fullTextStartValue","startT","partTextStartValue","offsetStart","_createStartOrEndContainer","endT","fullTextEndValue","partTextEndValue","offsetParent","startContainerP","endContainerP","commonAncestor","endOffsetP","outer","parents","contextContainer","originalStartOffset","findOriginalOffset","originalEndOffset","nextElementSibling","toFindNode","previousElementSibling","endContainerContents","closest","childNodes","r","f","lastChild","parseInt","getAttribute","Error","getPath","_renderSelection","_markTextSameNode","result","_markTextDifferentNode","indexOf","splice","walk","startPath","endPath","deserializePath","range","createRange","setStart","setEnd","toString","renderWithRange","renderWithPath","startContainerPath","endContainerPath","_renderWithElements","commonAncestorContainer","marklibInstance","removeEvent","_Rendering","SERIALIZE_SEPARATOR","Element","matches","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector","Util","nodes","func","filter","s4","floor","random","substring","match","optionalList","children","elms","thisElms","child","cloneNode","parent","sibling","appendChild","calculatedIndex","foundWrapper","thisIndex","maybeIndexOfOriginal","optionalSelector","parentsCallback","element","callback","foundElements","selector","closestCallback","lastValid","HTMLElement","path","filterSiblings","thisEl","isMarkNode","nodeName","outerMostElement","reverse","toLowerCase","siblings","nodeListFilter","nodeIndex","replace","lengthElement","pSplit","split","objectIndex","charOffset","container","trim","querySelector","maybeFoundNode","atrOffsetStart","atrIndex","thisOffset","_document","NodeFilter","SHOW_ALL","args","walker","createTreeWalker","nextNode","currentNode","SHOW_TEXT","_typeof","_Symbol","_Symbol$iterator","constructor","_iterator","_iterator2","_symbol","_symbol2","cof","ARG","T","callee","isArrayIter","anObject","toLength","getIterFn","iterable","entries","step","iterator","iterFn","LIBRARY","redefine","hide","$iterCreate","setToStringTag","ITERATOR","BUGGY","FF_ITERATOR","KEYS","VALUES","returnThis","Base","NAME","DEFAULT","IS_SET","FORCED","methods","getMethod","kind","proto","DEF_VALUES","VALUES_BUG","$native","$default","IteratorPrototype","values","bitmap","px","concat","RenderResult","_renderingInstance","set","_text","EVENT_PART_TREE_LEAVE","EVENT_PART_TREE_ENTER","EVENT_MOUSELEAVE","EVENT_MOUSEENTER","EVENT_CLICK","_slicedToArray2","_slicedToArray3","_typeof2","_typeof3","_set","_set2","_assign","_assign2","_wolfy87Eventemitter","_wolfy87Eventemitter2","_Rendering2","RenderingEvents","_EventEmitter","hoverClass","treeClass","_registerEvents","on","classList","add","remove","__MARKLIB_EVENTS__","checkMarklibInstance","closestInstance","thisE","getInstancesBetween","map","mouseOutClear","currentHoverInstances","thisInstance","clear","betweenInstances","findTarget","between","allInstances","unshift","sort","addEventListener","_target","instanceBetween","textNodes","lastTextNode","_setPrototypeOf","_setPrototypeOf2","_create","_create2","subClass","superClass","__proto__","ReferenceError","src","SHARED","ceil","isNaN","classof","getIteratorMethod","_isIterable2","_isIterable3","_getIterator2","_getIterator3","sliceIterator","arr","_arr","_n","_d","_e","_s","err","isArray","assign","D","desc","setPrototypeOf","Set","redefineAll","strictNew","forOf","$iterDefine","ID","$has","setSpecies","DESCRIPTORS","isExtensible","SIZE","fastKey","getEntry","entry","_f","k","getConstructor","IS_MAP","ADDER","_l","data","delete","prev","callbackfn","v","setStrong","_k","fails","common","IS_WEAK","_c","KEY","IS_ADDER","size","symbols","toIObject","windowNames","getWindowNames","ArrayProto","arg","ret","toObject","A","K","$$","$$len","j","exp","check","test","buggy","SPECIES","toInteger","TO_STRING","pos","s","l","charCodeAt","charAt","min","getIterator","isIterable","addToUnscopables","Arguments","$getPrototypeOf","strong","$fails","shared","wks","keyOf","$names","enumKeys","$Symbol","$JSON","JSON","_stringify","stringify","setter","HIDDEN","SymbolRegistry","AllSymbols","useNative","ObjectProto","setSymbolDesc","protoDesc","sym","isSymbol","$defineProperty","$defineProperties","$create","$propertyIsEnumerable","E","$getOwnPropertyDescriptor","$getOwnPropertyNames","names","$getOwnPropertySymbols","$stringify","replacer","$replacer","buggyJSON","symbolStatics","for","keyFor","useSetter","useSimple","toJSON","__WEBPACK_AMD_DEFINE_RESULT__","EventEmitter","indexOfListener","listeners","listener","alias","originalGlobalValue","getListeners","evt","response","events","_getEvents","RegExp","flattenListeners","flatListeners","getListenersAsObject","addListener","listenerIsWrapped","once","addOnceListener","defineEvent","defineEvents","evts","removeListener","off","addListeners","manipulateListeners","removeListeners","single","multiple","_events","removeAllListeners","emitEvent","listenersMap","_getOnceReturnValue","trigger","setOnceReturnValue","_onceReturnValue","noConflict"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,IACA,kBAAAG,gBAAAC,IACAD,UAAAH,GACA,gBAAAC,SACAA,QAAA,QAAAD,IAEAD,EAAA,QAAAC,KACCK,KAAA,WACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAP,OAGA,IAAAC,GAAAO,EAAAD,IACAP,WACAS,GAAAF,EACAG,QAAA,EAUA,OANAL,GAAAE,GAAAI,KAAAV,EAAAD,QAAAC,IAAAD,QAAAM,GAGAL,EAAAS,QAAA,EAGAT,EAAAD,QAvBA,GAAAQ,KAqCA,OATAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,MAGAR,EAAA,KDgBM,SAASL,EAAQD,EAASM,GAE/BL,EAAOD,QAAUM,EAAoB,KAKhC,SAASL,EAAQD,GE7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AunB,UAAAxB,EAAA3P,IAWA8C,EAAAyO,mBAAA,SAAA7iB,GAEA,MADA9E,MAAA4nB,iBAAA9iB,EACA9E,MAWAkZ,EAAAuO,oBAAA,WACA,MAAAznB,MAAAwG,eAAA,oBACAxG,KAAA4nB,kBAGA,GAUA1O,EAAAgN,WAAA,WACA,MAAAlmB,MAAAqnB,UAAArnB,KAAAqnB,aAQA7B,EAAAqC,WAAA,WAEA,MADAjoB,GAAA4lB,aAAAK,EACAL,GAKAD,EAAA,WACA,MAAAC,IACSjlB,KAAAX,EAAAM,EAAAN,EAAAC,KAAAuG,SAAAmf,IAAA1lB,EAAAD,QAAA2lB,MAQRhlB,KAAAP","file":"js/marklib.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Marklib\"] = factory();\n\telse\n\t\troot[\"Marklib\"] = factory();\n})(this, function() {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Marklib\"] = factory();\n\telse\n\t\troot[\"Marklib\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\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/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"../\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(50);\n\n\n/***/ },\n/* 1 */\n/***/ function(module, exports) {\n\n\tvar $Object = Object;\n\tmodule.exports = {\n\t create: $Object.create,\n\t getProto: $Object.getPrototypeOf,\n\t isEnum: {}.propertyIsEnumerable,\n\t getDesc: $Object.getOwnPropertyDescriptor,\n\t setDesc: $Object.defineProperty,\n\t setDescs: $Object.defineProperties,\n\t getKeys: $Object.keys,\n\t getNames: $Object.getOwnPropertyNames,\n\t getSymbols: $Object.getOwnPropertySymbols,\n\t each: [].forEach\n\t};\n\n/***/ },\n/* 2 */\n/***/ function(module, exports) {\n\n\tvar core = module.exports = {version: '1.2.6'};\n\tif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar store = __webpack_require__(44)('wks')\n\t , uid = __webpack_require__(32)\n\t , Symbol = __webpack_require__(9).Symbol;\n\tmodule.exports = function(name){\n\t return store[name] || (store[name] =\n\t Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n\t};\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar global = __webpack_require__(9)\n\t , core = __webpack_require__(2)\n\t , ctx = __webpack_require__(14)\n\t , PROTOTYPE = 'prototype';\n\t\n\tvar $export = function(type, name, source){\n\t var IS_FORCED = type & $export.F\n\t , IS_GLOBAL = type & $export.G\n\t , IS_STATIC = type & $export.S\n\t , IS_PROTO = type & $export.P\n\t , IS_BIND = type & $export.B\n\t , IS_WRAP = type & $export.W\n\t , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n\t , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n\t , key, own, out;\n\t if(IS_GLOBAL)source = name;\n\t for(key in source){\n\t // contains in native\n\t own = !IS_FORCED && target && key in target;\n\t if(own && key in exports)continue;\n\t // export native or passed\n\t out = own ? target[key] : source[key];\n\t // prevent global pollution for namespaces\n\t exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n\t // bind timers to global for call from export context\n\t : IS_BIND && own ? ctx(out, global)\n\t // wrap global constructors for prevent change them in library\n\t : IS_WRAP && target[key] == out ? (function(C){\n\t var F = function(param){\n\t return this instanceof C ? new C(param) : C(param);\n\t };\n\t F[PROTOTYPE] = C[PROTOTYPE];\n\t return F;\n\t // make static versions for prototype methods\n\t })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n\t if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n\t }\n\t};\n\t// type bitmap\n\t$export.F = 1; // forced\n\t$export.G = 2; // global\n\t$export.S = 4; // static\n\t$export.P = 8; // proto\n\t$export.B = 16; // bind\n\t$export.W = 32; // wrap\n\tmodule.exports = $export;\n\n/***/ },\n/* 5 */\n/***/ function(module, exports) {\n\n\tmodule.exports = {};\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar isObject = __webpack_require__(17);\n\tmodule.exports = function(it){\n\t if(!isObject(it))throw TypeError(it + ' is not an object!');\n\t return it;\n\t};\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// Thank's IE8 for his funny defineProperty\n\tmodule.exports = !__webpack_require__(8)(function(){\n\t return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n\t});\n\n/***/ },\n/* 8 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(exec){\n\t try {\n\t return !!exec();\n\t } catch(e){\n\t return true;\n\t }\n\t};\n\n/***/ },\n/* 9 */\n/***/ function(module, exports) {\n\n\t// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\n\tvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n\t ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\n\tif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n/***/ },\n/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar $ = __webpack_require__(1)\n\t , createDesc = __webpack_require__(30);\n\tmodule.exports = __webpack_require__(7) ? function(object, key, value){\n\t return $.setDesc(object, key, createDesc(1, value));\n\t} : function(object, key, value){\n\t object[key] = value;\n\t return object;\n\t};\n\n/***/ },\n/* 11 */,\n/* 12 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\texports.default = function (instance, Constructor) {\n\t if (!(instance instanceof Constructor)) {\n\t throw new TypeError(\"Cannot call a class as a function\");\n\t }\n\t};\n\n/***/ },\n/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _defineProperty = __webpack_require__(56);\n\t\n\tvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = function () {\n\t function defineProperties(target, props) {\n\t for (var i = 0; i < props.length; i++) {\n\t var descriptor = props[i];\n\t descriptor.enumerable = descriptor.enumerable || false;\n\t descriptor.configurable = true;\n\t if (\"value\" in descriptor) descriptor.writable = true;\n\t (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n\t }\n\t }\n\t\n\t return function (Constructor, protoProps, staticProps) {\n\t if (protoProps) defineProperties(Constructor.prototype, protoProps);\n\t if (staticProps) defineProperties(Constructor, staticProps);\n\t return Constructor;\n\t };\n\t}();\n\n/***/ },\n/* 14 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// optional / simple context binding\n\tvar aFunction = __webpack_require__(72);\n\tmodule.exports = function(fn, that, length){\n\t aFunction(fn);\n\t if(that === undefined)return fn;\n\t switch(length){\n\t case 1: return function(a){\n\t return fn.call(that, a);\n\t };\n\t case 2: return function(a, b){\n\t return fn.call(that, a, b);\n\t };\n\t case 3: return function(a, b, c){\n\t return fn.call(that, a, b, c);\n\t };\n\t }\n\t return function(/* ...args */){\n\t return fn.apply(that, arguments);\n\t };\n\t};\n\n/***/ },\n/* 15 */\n/***/ function(module, exports) {\n\n\t// 7.2.1 RequireObjectCoercible(argument)\n\tmodule.exports = function(it){\n\t if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n\t return it;\n\t};\n\n/***/ },\n/* 16 */\n/***/ function(module, exports) {\n\n\tvar hasOwnProperty = {}.hasOwnProperty;\n\tmodule.exports = function(it, key){\n\t return hasOwnProperty.call(it, key);\n\t};\n\n/***/ },\n/* 17 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(it){\n\t return typeof it === 'object' ? it !== null : typeof it === 'function';\n\t};\n\n/***/ },\n/* 18 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar def = __webpack_require__(1).setDesc\n\t , has = __webpack_require__(16)\n\t , TAG = __webpack_require__(3)('toStringTag');\n\t\n\tmodule.exports = function(it, tag, stat){\n\t if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});\n\t};\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// to indexed object, toObject with fallback for non-array-like ES3 strings\n\tvar IObject = __webpack_require__(40)\n\t , defined = __webpack_require__(15);\n\tmodule.exports = function(it){\n\t return IObject(defined(it));\n\t};\n\n/***/ },\n/* 20 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar $at = __webpack_require__(88)(true);\n\t\n\t// 21.1.3.27 String.prototype[@@iterator]()\n\t__webpack_require__(29)(String, 'String', function(iterated){\n\t this._t = String(iterated); // target\n\t this._i = 0; // next index\n\t// 21.1.5.2.1 %StringIteratorPrototype%.next()\n\t}, function(){\n\t var O = this._t\n\t , index = this._i\n\t , point;\n\t if(index >= O.length)return {value: undefined, done: true};\n\t point = $at(O, index);\n\t this._i += point.length;\n\t return {value: point, done: false};\n\t});\n\n/***/ },\n/* 21 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(92);\n\tvar Iterators = __webpack_require__(5);\n\tIterators.NodeList = Iterators.HTMLCollection = Iterators.Array;\n\n/***/ },\n/* 22 */,\n/* 23 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_WRAPPED_NODE = exports.ATTR_DATA_ORIGINAL_OFFSET_START = undefined;\n\t\n\tvar _getPrototypeOf = __webpack_require__(37);\n\t\n\tvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\t\n\tvar _classCallCheck2 = __webpack_require__(12);\n\t\n\tvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\t\n\tvar _createClass2 = __webpack_require__(13);\n\t\n\tvar _createClass3 = _interopRequireDefault(_createClass2);\n\t\n\tvar _possibleConstructorReturn2 = __webpack_require__(39);\n\t\n\tvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\t\n\tvar _inherits2 = __webpack_require__(38);\n\t\n\tvar _inherits3 = _interopRequireDefault(_inherits2);\n\t\n\tvar _RenderResult = __webpack_require__(34);\n\t\n\tvar _RenderResult2 = _interopRequireDefault(_RenderResult);\n\t\n\tvar _RenderingEvents2 = __webpack_require__(35);\n\t\n\tvar _RenderingEvents3 = _interopRequireDefault(_RenderingEvents2);\n\t\n\tvar _Util = __webpack_require__(24);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar TAG_NAME = 'x-marker';\n\t/**\n\t * @type {string}\n\t */\n\t/* global Node */\n\t\n\tvar ATTR_DATA_ORIGINAL_OFFSET_START = exports.ATTR_DATA_ORIGINAL_OFFSET_START = 'data-original-offset-start';\n\t/**\n\t * @type {string}\n\t */\n\tvar DATA_ORIGINAL_TEXT_NODE_INDEX = 'original-text-node-index';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_START_END = 'data-is-start-end';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_IS_HIGHLIGHT_NODE = 'data-is-highlight-node';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_ID = 'data-selection-id';\n\t\n\t/**\n\t * @see https://developer.mozilla.org/de/docs/Web/API/Node/compareDocumentPosition\n\t * @type {number}\n\t */\n\tvar DOCUMENT_POSITION_CONTAINED_BY = 16;\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_WRAPPED_NODE = exports.EVENT_WRAPPED_NODE = 'wrapped-node';\n\t\n\t/**\n\t * Manages a single Render\n\t */\n\t\n\tvar Rendering = function (_RenderingEvents) {\n\t (0, _inherits3.default)(Rendering, _RenderingEvents);\n\t\n\t\n\t /**\n\t * @param {Document} document\n\t * @param {object} options\n\t * @param {Node} context\n\t */\n\t\n\t function Rendering(document, options, context) {\n\t (0, _classCallCheck3.default)(this, Rendering);\n\t\n\t\n\t /**\n\t * ID of rendering, will be set on each element that is part of it\n\t * @type {String}\n\t */\n\t\n\t var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(Rendering).call(this, options, document));\n\t\n\t _this.id = _Util2.default.guid();\n\t\n\t /**\n\t * StartContainer\n\t * @type {Node}\n\t */\n\t _this.startContainer = null;\n\t\n\t /**\n\t * EndContainer\n\t * @type {Node}\n\t */\n\t _this.endContainer = null;\n\t\n\t /**\n\t * @type {Node}\n\t */\n\t _this.context = context || _this.document;\n\t\n\t /**\n\t * Flag if this instance has been rendered\n\t * @type {RenderResult}\n\t * @private\n\t */\n\t _this._renderResult = null;\n\t return _this;\n\t }\n\t\n\t /**\n\t * @returns {string} id of this rendering\n\t */\n\t\n\t\n\t (0, _createClass3.default)(Rendering, [{\n\t key: 'getId',\n\t value: function getId() {\n\t return this.id;\n\t }\n\t\n\t /**\n\t * @param {string} id\n\t * @returns {Rendering}\n\t */\n\t\n\t }, {\n\t key: 'setId',\n\t value: function setId(id) {\n\t var _this2 = this;\n\t\n\t this.id = id;\n\t\n\t if (this._renderResult) {\n\t this.wrapperNodes.forEach(function (node) {\n\t return node.setAttribute(ATTR_DATA_ID, _this2.id);\n\t });\n\t }\n\t\n\t return this;\n\t }\n\t\n\t /**\n\t * Creates a Template used as a wrapper and an indication that this is a highlight node\n\t * @param {Boolean} [omitHighlight]\n\t * @returns {Node}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_createWrapTemplate',\n\t value: function _createWrapTemplate(omitHighlight) {\n\t var el = this.document.createElement(TAG_NAME);\n\t var vTrue = \"true\";\n\t\n\t if (!omitHighlight) {\n\t el.className = this.options.className.join(' ');\n\t // save this marker instance to given node\n\t Rendering.setMarklibInstance(el, this);\n\t // keep track of highlight nodes\n\t this.wrapperNodes.push(el);\n\t el.setAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE, vTrue);\n\t el.setAttribute(ATTR_DATA_ID, this.getId());\n\t }\n\t el.setAttribute(_Util.DATA_IS_SELECTION, vTrue);\n\t\n\t return el;\n\t }\n\t\n\t /**\n\t * Creates a Template to use as start and end marks\n\t * @param {String} text\n\t * @returns {Node}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_createStartEndWrapTemplate',\n\t value: function _createStartEndWrapTemplate(text) {\n\t var el = this._createWrapTemplate();\n\t el.setAttribute(ATTR_DATA_START_END, 'true');\n\t el.textContent = text;\n\t return el;\n\t }\n\t\n\t /**\n\t * Creates Start or End Container Element\n\t * @param initialNode\n\t * @param text\n\t * @param offset\n\t * @param index\n\t * @returns {Node}\n\t */\n\t\n\t }, {\n\t key: '_createStartOrEndContainer',\n\t value: function _createStartOrEndContainer(initialNode, text, offset, index) {\n\t var wrapper = this._createStartEndWrapTemplate(text);\n\t wrapper.setAttribute(_Util.ATTR_DATA_ORIGINAL_INDEX, _Util2.default.getIndexParentIfHas(initialNode, index));\n\t wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n\t wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n\t\n\t return wrapper;\n\t }\n\t\n\t /**\n\t * Wraps given element\n\t * @param {Node|HTMLElement} el\n\t * @param [optionalLength]\n\t * @param [optionalIndex]\n\t * @param [optionalIsSameNode]\n\t * @param {Boolean} [omitHighlight] set to true to prevent node to be a highlight node\n\t * @returns {Node}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_createWrap',\n\t value: function _createWrap(el, optionalLength, optionalIndex, optionalIsSameNode, omitHighlight) {\n\t var originalIndex = optionalIndex >= 0 ? optionalIndex : _Util2.default.calcIndex(el);\n\t var wrapper = this._createWrapTemplate(omitHighlight);\n\t wrapper.setAttribute(_Util.ATTR_DATA_ORIGINAL_INDEX, _Util2.default.getIndexParentIfHas(el, originalIndex));\n\t var offsetLength = optionalLength >= 0 ? optionalLength : _Util2.default.getOffsetParentIfHas(el);\n\t wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offsetLength);\n\t\n\t // Save a reference to original text node in wrapper\n\t wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, originalIndex);\n\t\n\t if (optionalIsSameNode) {\n\t wrapper.setAttribute(ATTR_DATA_START_END, ATTR_DATA_START_END);\n\t }\n\t var wrap = _Util2.default.wrap(el, wrapper);\n\t\n\t this.emit(EVENT_WRAPPED_NODE, el, wrap);\n\t\n\t return wrap;\n\t }\n\t\n\t /**\n\t * Create split container element\n\t * @param originalElement {Node} original text node element that is created a wrapper for\n\t * @param index\n\t * @param offset\n\t * @returns {Node}\n\t */\n\t\n\t }, {\n\t key: '_createSplitContainer',\n\t value: function _createSplitContainer(originalElement, index, offset) {\n\t var wrapper = this.document.createElement(TAG_NAME);\n\t wrapper.setAttribute(_Util.DATA_IS_SELECTION, 'true');\n\t wrapper.setAttribute(_Util.ATTR_DATA_ORIGINAL_INDEX, _Util2.default.getIndexParentIfHas(originalElement, index));\n\t wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n\t wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n\t return wrapper;\n\t }\n\t\n\t /**\n\t * Walks the tree\n\t * @param start\n\t * @param endContainer\n\t * @param nextParent\n\t */\n\t\n\t }, {\n\t key: 'walk',\n\t value: function walk(start, endContainer, nextParent) {\n\t var nextParentNode = start;\n\t while (nextParentNode && nextParentNode !== nextParent.parentNode) {\n\t var currentParentNode = nextParentNode;\n\t nextParentNode = nextParentNode.parentNode;\n\t if (this.wrapSiblings(currentParentNode.nextSibling, endContainer)) {\n\t break;\n\t }\n\t }\n\t }\n\t\n\t /**\n\t * Will Wrap all textNode siblings of a container (start) inside a defined Element (like a span)\n\t * If an Element node is found, it will wrap all children of this node inside a element as well.\n\t * It will stop if endContainer is found as a node\n\t *\n\t * @param {Node} start\n\t * @param {Node} endContainer\n\t * @returns {boolean} (true if endContainer was found)\n\t */\n\t\n\t }, {\n\t key: 'wrapSiblings',\n\t value: function wrapSiblings(start, endContainer) {\n\t var _this3 = this;\n\t\n\t var next = start;\n\t var found = false;\n\t\n\t // Capsule some logic\n\t var wrap = function wrap(n) {\n\t var instance = Rendering.getMarklibInstance(n.parentNode);\n\t if (n.parentNode.hasAttribute(ATTR_DATA_START_END) && n.parentNode.hasAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE) && instance === _this3) {\n\t _this3._createWrap(n, undefined, undefined, undefined, true);\n\t } else {\n\t _this3._createWrap(n);\n\t }\n\t };\n\t\n\t // helper functions\n\t\n\t var wrapIf = function wrapIf(n) {\n\t if (!_Util2.default.nodeIsEmpty(n)) {\n\t wrap(n);\n\t }\n\t };\n\t\n\t var walkIfContained = function walkIfContained(e) {\n\t if (e === endContainer) {\n\t return false;\n\t }\n\t if (Node.TEXT_NODE === e.nodeType) {\n\t wrapIf(e);\n\t }\n\t return true;\n\t };\n\t\n\t var walkIfNotContained = function walkIfNotContained(el) {\n\t wrapIf(el);\n\t };\n\t\n\t while (next !== null && next !== endContainer) {\n\t var currentNext = next;\n\t next = next.nextSibling;\n\t // Found a text node, directly wrap inside a span\n\t if (Node.TEXT_NODE === currentNext.nodeType) {\n\t wrapIf(currentNext);\n\t } else {\n\t if (currentNext.compareDocumentPosition(endContainer) & DOCUMENT_POSITION_CONTAINED_BY) {\n\t _Util2.default.walkDom(currentNext, walkIfContained);\n\t found = true;\n\t } else {\n\t _Util2.default.walkTextNodes(currentNext, walkIfNotContained);\n\t }\n\t if (found) {\n\t return true;\n\t }\n\t }\n\t }\n\t return found;\n\t }\n\t\n\t /**\n\t * Marks text of the same node\n\t * @param {Node} textNode\n\t * @param {int} startIndex\n\t * @param {int} endIndex\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_markTextSameNode',\n\t value: function _markTextSameNode(textNode, startIndex, endIndex) {\n\t var initialText = textNode.nodeValue;\n\t var initialIndex = _Util2.default.calcIndex(textNode);\n\t\n\t if (!initialText) {\n\t return false;\n\t }\n\t // If there is an unmarked part in the beginning of the text node,\n\t // cut off that part and put it into it's own textnode.\n\t if (startIndex > 0) {\n\t var textBefore = initialText.slice(0, startIndex);\n\t textNode.parentNode.insertBefore(this.document.createTextNode(textBefore), textNode);\n\t // wrap cutted text node:\n\t _Util2.default.wrap(textNode.previousSibling, this._createSplitContainer(textNode, initialIndex, _Util2.default.getOffsetParentIfHas(textNode)));\n\t }\n\t // If there is an unmarked part at the end of the text node,\n\t // cut off that part and put it into it's own textnode.\n\t if (endIndex < initialText.length) {\n\t var textAfter = initialText.slice(endIndex, initialText.length);\n\t textNode.parentNode.insertBefore(this.document.createTextNode(textAfter), textNode.nextSibling);\n\t _Util2.default.wrap(textNode.nextSibling, this._createSplitContainer(textNode, initialIndex, _Util2.default.getOffsetParentIfHas(textNode) + endIndex));\n\t }\n\t\n\t // Cutoff the unmarked parts and wrap the textnode into a span.\n\t textNode.nodeValue = initialText.slice(startIndex, endIndex);\n\t this.startContainer = this._createWrap(textNode, _Util2.default.getOffsetParentIfHas(textNode) + startIndex, initialIndex, true).parentNode;\n\t this.endContainer = this.startContainer;\n\t return this.startContainer;\n\t }\n\t\n\t /**\n\t * Marks text of end and start containers if start and end nodes are different\n\t * Important: There might be no end container!\n\t *\n\t * @param {Node} startContainer\n\t * @param {Node} endContainer\n\t * @param {int} startOffset\n\t * @param {int} endOffset\n\t * @returns {{startT: (Node), endT: (Node)}}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_markTextDifferentNode',\n\t value: function _markTextDifferentNode(startContainer, endContainer, startOffset, endOffset) {\n\t // Get current for both start and end:\n\t var startContainerIndex = _Util2.default.calcIndex(startContainer);\n\t var endContainerIndex = _Util2.default.calcIndex(endContainer);\n\t\n\t // Split text\n\t var fullTextStartValue = startContainer.nodeValue;\n\t // init with startContainer because we may have not a text node here\n\t var startT = startContainer;\n\t\n\t if (undefined !== fullTextStartValue) {\n\t var partTextStartValue = fullTextStartValue.slice(startOffset, fullTextStartValue.length);\n\t // Set new text to start node\n\t startContainer.nodeValue = fullTextStartValue.slice(0, startOffset);\n\t\n\t var offsetStart = _Util2.default.getOffsetParentIfHas(startContainer);\n\t // Create a new node for splitted text, offset is the length of new startContainer.nodeValue:\n\t startT = this._createStartOrEndContainer(startContainer, partTextStartValue, offsetStart === startOffset ? offsetStart : offsetStart + startOffset, startContainerIndex);\n\t // Append this node after startContainer\n\t startContainer.parentNode.insertBefore(startT, startContainer.nextSibling);\n\t this.startContainer = startT;\n\t\n\t if (startContainer.nodeValue) {\n\t // Wrap start container in detection node, offset is always 0 or parent offset.\n\t _Util2.default.wrap(startContainer, this._createSplitContainer(startContainer, startContainerIndex, _Util2.default.getOffsetParentIfHas(startContainer)));\n\t }\n\t }\n\t\n\t // init with endContainer because we may have not a text node here\n\t var endT = endContainer;\n\t\n\t // 2. Extract end Text node,\n\t var fullTextEndValue = endContainer.nodeValue;\n\t // It's possible that end container value is null (if a whole paragraph is marked)\n\t if (undefined !== fullTextEndValue) {\n\t // Split text\n\t var partTextEndValue = fullTextEndValue.slice(0, endOffset);\n\t endContainer.nodeValue = fullTextEndValue.slice(endOffset, fullTextEndValue.length);\n\t // End Container start offset is always 0 or parent offset.\n\t endT = this._createStartOrEndContainer(endContainer, partTextEndValue, _Util2.default.getOffsetParentIfHas(endContainer), endContainerIndex);\n\t\n\t endContainer.parentNode.insertBefore(endT, endContainer);\n\t this.endContainer = endT;\n\t var offsetParent = _Util2.default.getOffsetParentIfHas(endContainer);\n\t _Util2.default.wrap(endContainer, this._createSplitContainer(endContainer, endContainerIndex, offsetParent === endOffset ? offsetParent : offsetParent + endOffset));\n\t }\n\t\n\t return {\n\t startT: startT,\n\t endT: endT\n\t };\n\t }\n\t\n\t /**\n\t * Renders a selection\n\t * @param {Node} startContainerP\n\t * @param {Node} endContainerP\n\t * @param {Node} commonAncestor\n\t * @param {int} startOffset\n\t * @param {int} endOffsetP\n\t * @returns RenderResult\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_renderWithElements',\n\t value: function _renderWithElements(startContainerP, endContainerP, commonAncestor, startOffset, endOffsetP) {\n\t if (this._renderResult) {\n\t return this._renderResult;\n\t }\n\t var startContainer = startContainerP;\n\t var endContainer = endContainerP;\n\t var endOffset = endOffsetP;\n\t var outer = _Util2.default.parents(startContainer, commonAncestor);\n\t outer = outer[outer.length - 1];\n\t var contextContainer = outer ? outer : commonAncestor;\n\t\n\t // Same Element, means the selection is fully contained in a discrete area, start and endpoint have the same parent\n\t // but are different nodes:\n\t\n\t // Start and End offset have to be recalculated because dom might be already changed by highlighting in given node\n\t // 1: First detect real start offset in startContainer:\n\t\n\t // That works by selecting the highest wrapper and get original-offset-start data element, see \"findOriginalOffset\"\n\t // So first select that container:\n\t var originalStartOffset = _Util2.default.findOriginalOffset(startContainer);\n\t var originalEndOffset = _Util2.default.findOriginalOffset(endContainer);\n\t\n\t // We may run into Browser Bugs:\n\t\n\t // If both are not text nodes, use next sibling as endContainer\n\t if (startContainer.nodeType !== Node.TEXT_NODE && endContainer.nodeType !== Node.TEXT_NODE) {\n\t if (startContainer === endContainer) {\n\t endContainer = endContainer.nextElementSibling || endContainer;\n\t }\n\t }\n\t // IF start/end container is not type of text, select first child text node:\n\t // We run in some bugs with firefox here that selects no text-nodes sometimes, trying to fix this here\n\t // Sometimes does not work correctly... (specially when DOM was modified)\n\t if (startContainer.nodeType !== Node.TEXT_NODE) {\n\t _Util2.default.walkDom(startContainer, function (el) {\n\t if (el.nodeType === Node.TEXT_NODE) {\n\t startContainer = el;\n\t return false;\n\t }\n\t return true;\n\t });\n\t }\n\t\n\t if (endContainer.nodeType !== Node.TEXT_NODE) {\n\t var toFindNode = startContainer;\n\t\n\t if (endOffset === 0) {\n\t toFindNode = endContainer.previousElementSibling || startContainer;\n\t }\n\t\n\t // Get the last text node:\n\t var endContainerContents = _Util2.default.closest(toFindNode, ':not([' + _Util.DATA_IS_SELECTION + '])').childNodes;\n\t if (endContainerContents.length) {\n\t var r = endContainerContents[endContainerContents.length - 1];\n\t if (r.nodeType === Node.TEXT_NODE) {\n\t endContainer = r;\n\t endOffset = r.length;\n\t } else {\n\t var f = r.lastChild;\n\t while (f !== null) {\n\t if (f && f.nodeType === Node.TEXT_NODE) {\n\t endContainer = f;\n\t endOffset = f.length;\n\t if (f.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n\t endOffset = parseInt(f.parentNode.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) + endOffset;\n\t }\n\t }\n\t f = f.lastChild;\n\t }\n\t }\n\t }\n\t // still no textNode?\n\t if (endContainer.nodeType !== Node.TEXT_NODE) {\n\t throw Error('Could not found endContainer, highlighting would be unstable');\n\t }\n\t }\n\t\n\t this._renderResult = new _RenderResult2.default(\n\t // Real offset is calculated by relative length and absolute length\n\t originalStartOffset + startOffset, originalEndOffset + endOffset,\n\t // get the path for this selection\n\t _Util2.default.getPath(startContainer, this.context), _Util2.default.getPath(endContainer, this.context));\n\t\n\t this._renderResult.instance = this;\n\t\n\t this._renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, !!outer);\n\t\n\t return this._renderResult;\n\t }\n\t\n\t /**\n\t * Renders a given selection\n\t *\n\t * @param {Node} startContainer\n\t * @param {Node} endContainer\n\t * @param {int} startOffset\n\t * @param {int} endOffset\n\t * @param {Node} contextContainer\n\t * @param {Boolean} outer\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_renderSelection',\n\t value: function _renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, outer) {\n\t // if start and end-container are the same, mark text on the same node\n\t if (startContainer === endContainer) {\n\t this._markTextSameNode(startContainer, startOffset, endOffset);\n\t } else {\n\t var result = this._markTextDifferentNode(startContainer, endContainer, startOffset, endOffset);\n\t var index = this.wrapperNodes.indexOf(result.endT);\n\t // remove endContainer, to keep order:\n\t this.wrapperNodes.splice(index, 1);\n\t if (!outer) {\n\t this.wrapSiblings(result.startT.nextSibling, endContainer);\n\t } else {\n\t this.walk(result.startT, endContainer, contextContainer);\n\t }\n\t this.wrapperNodes.push(result.endT);\n\t }\n\t }\n\t\n\t /**\n\t * Prepares to render a Selection with path selectors\n\t * ```\n\t * A Path looks like this:\n\t *\n\t * #selector;#textnode;#offset\n\t * ``\n\t * @param {string} startPath\n\t * @param {string} endPath\n\t * @returns {string}\n\t */\n\t\n\t }, {\n\t key: 'renderWithPath',\n\t value: function renderWithPath(startPath, endPath) {\n\t var startContainer = _Util2.default.deserializePath(startPath, this.context);\n\t var endContainer = _Util2.default.deserializePath(endPath, this.context);\n\t if (startContainer && endContainer && startContainer.node && endContainer.node) {\n\t var range = document.createRange();\n\t range.setStart(startContainer.node, startContainer.offset);\n\t range.setEnd(endContainer.node, endContainer.offset);\n\t var text = range.toString();\n\t var result = this.renderWithRange(range);\n\t result.text = text;\n\t return text;\n\t }\n\t throw new Error('Could not find start- and/or end-container in document');\n\t }\n\t\n\t /**\n\t * @returns {RenderResult}\n\t */\n\t\n\t }, {\n\t key: 'renderWithResult',\n\t\n\t\n\t /**\n\t * Renders a result (that returned from `renderWithRange`)\n\t * @param {RenderResult|Object} result\n\t * @returns {string}\n\t */\n\t value: function renderWithResult(result) {\n\t return this.renderWithPath(result.startContainerPath + ';' + result.startOffset, result.endContainerPath + ';' + result.endOffset);\n\t }\n\t\n\t /**\n\t * Prepares a selection with a range object\n\t * @param {Range} range\n\t * @returns {Object}\n\t */\n\t\n\t }, {\n\t key: 'renderWithRange',\n\t value: function renderWithRange(range) {\n\t var text = range.toString();\n\t var result = this._renderWithElements(range.startContainer, range.endContainer, range.commonAncestorContainer, range.startOffset, range.endOffset);\n\t result.text = text;\n\t return result;\n\t }\n\t\n\t /**\n\t * Removes bindings and classNames to nodes\n\t */\n\t\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t this.wrapperNodes.forEach(function (node) {\n\t delete node.marklibInstance;\n\t node.className = '';\n\t });\n\t this.removeEvent();\n\t }\n\t\n\t /**\n\t * @param {Node} el\n\t * @param {Rendering} instance\n\t * @returns {Node}\n\t */\n\t\n\t }, {\n\t key: 'result',\n\t get: function get() {\n\t return this._renderResult;\n\t }\n\t }], [{\n\t key: 'setMarklibInstance',\n\t value: function setMarklibInstance(el, instance) {\n\t el.marklibInstance = instance;\n\t return el;\n\t }\n\t\n\t /**\n\t * @param {Node} el\n\t * @returns {Rendering|null|undefined}\n\t */\n\t\n\t }, {\n\t key: 'getMarklibInstance',\n\t value: function getMarklibInstance(el) {\n\t return el ? el.marklibInstance : null;\n\t }\n\t }]);\n\t return Rendering;\n\t}(_RenderingEvents3.default);\n\t\n\texports.default = Rendering;\n\n/***/ },\n/* 24 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.DATA_IS_SELECTION = exports.ATTR_DATA_ORIGINAL_INDEX = undefined;\n\t\n\tvar _classCallCheck2 = __webpack_require__(12);\n\t\n\tvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\t\n\tvar _createClass2 = __webpack_require__(13);\n\t\n\tvar _createClass3 = _interopRequireDefault(_createClass2);\n\t\n\tvar _Rendering = __webpack_require__(23);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/* global Node, NodeList, Element */\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_ORIGINAL_INDEX = exports.ATTR_DATA_ORIGINAL_INDEX = 'data-original-index';\n\t/**\n\t * @type {string}\n\t */\n\tvar DATA_IS_SELECTION = exports.DATA_IS_SELECTION = 'data-is-selection';\n\t/**\n\t * @type {string}\n\t */\n\tvar SERIALIZE_SEPARATOR = \";\";\n\t\n\t// polyfill for matchesSelector, IE 10/11 does not support Element.matches\n\tif (Element && !Element.prototype.matches) {\n\t var p = Element.prototype;\n\t p.matches = p.matchesSelector || p.mozMatchesSelector || p.msMatchesSelector || p.oMatchesSelector || p.webkitMatchesSelector;\n\t}\n\t\n\t/**\n\t * Utility class\n\t * Contains DOM/Node manipulation helpers\n\t */\n\t\n\tvar Util = function () {\n\t function Util() {\n\t (0, _classCallCheck3.default)(this, Util);\n\t }\n\t\n\t (0, _createClass3.default)(Util, null, [{\n\t key: 'nodeListFilter',\n\t\n\t\n\t /**\n\t * Filter for a NodeList\n\t * @param {NodeList} nodes\n\t * @param {Function} func\n\t *\n\t * @returns {Array.}\n\t */\n\t value: function nodeListFilter(nodes, func) {\n\t return Array.prototype.filter.call(nodes || [], func);\n\t }\n\t\n\t /**\n\t * Generates a unique id\n\t *\n\t * @return {String}\n\t */\n\t\n\t }, {\n\t key: 'guid',\n\t value: function guid() {\n\t var s4 = function s4() {\n\t return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);\n\t };\n\t return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();\n\t }\n\t\n\t /**\n\t * Checks if a given node is empty\n\t * @param {HTMLElement} node\n\t *\n\t * @returns {*}\n\t */\n\t\n\t }, {\n\t key: 'nodeIsEmpty',\n\t value: function nodeIsEmpty(node) {\n\t return node.nodeValue.match(/^[\\s]*$/g);\n\t }\n\t\n\t /**\n\t * @param {HTMLElement} node\n\t * @param [optionalList]\n\t *\n\t * @return {int} the index of this node in context to it's siblings\n\t */\n\t\n\t }, {\n\t key: 'index',\n\t value: function index(node, optionalList) {\n\t var children = optionalList || (node.nodeType === Node.TEXT_NODE ? node.parentNode.childNodes : node.parentNode.children);\n\t return Array.prototype.indexOf.call(children || [], node);\n\t }\n\t\n\t /**\n\t * Wraps given `elms` in given `wrapper`\n\t *\n\t * @param {HTMLElement|Array.|Node} elms\n\t * @param {HTMLElement|Node} wrapper\n\t *\n\t * @return {HTMLElement}\n\t */\n\t\n\t }, {\n\t key: 'wrap',\n\t value: function wrap(elms, wrapper) {\n\t var thisElms = elms;\n\t\n\t if (!thisElms) {\n\t return wrapper;\n\t }\n\t // Convert `elms` to an array, if necessary.\n\t if (!(thisElms instanceof NodeList || thisElms instanceof Array)) {\n\t thisElms = [thisElms];\n\t }\n\t for (var i = thisElms.length - 1; i >= 0; i--) {\n\t var child = i > 0 ? wrapper.cloneNode(true) : wrapper;\n\t var el = thisElms[i];\n\t // Cache the current parent and sibling.\n\t var parent = el.parentNode;\n\t var sibling = el.nextSibling;\n\t\n\t child.appendChild(el);\n\t if (sibling) {\n\t parent.insertBefore(child, sibling);\n\t } else {\n\t parent.appendChild(child);\n\t }\n\t }\n\t return wrapper;\n\t }\n\t\n\t /**\n\t * Will calculate an index depending on an already modified dom by marklib\n\t * @param {HTMLElement|Node} node\n\t *\n\t * @returns {int|boolean}\n\t */\n\t\n\t }, {\n\t key: 'calcIndex',\n\t value: function calcIndex(node) {\n\t var calculatedIndex = 0;\n\t var foundWrapper = false;\n\t var nodes = node.parentNode.childNodes;\n\t var length = nodes.length;\n\t for (var thisIndex = 0; thisIndex < length; thisIndex++) {\n\t var el = nodes[thisIndex];\n\t if (el === node) {\n\t break;\n\t }\n\t // reset index when original index is found\n\t var maybeIndexOfOriginal = el.getAttribute ? el.getAttribute(ATTR_DATA_ORIGINAL_INDEX) : null;\n\t\n\t if (maybeIndexOfOriginal) {\n\t calculatedIndex = parseInt(maybeIndexOfOriginal, 10);\n\t foundWrapper = true;\n\t }\n\t calculatedIndex++;\n\t }\n\t return foundWrapper ? calculatedIndex : Util.index(node);\n\t }\n\t\n\t /**\n\t * @param {HTMLElement|Node} el\n\t * @param {String} [optionalSelector] will test given element against a selector\n\t * if matches, returns this element immediately\n\t *\n\t * @return {Array.} an array of all found parents of given element (and optional selector)\n\t */\n\t\n\t }, {\n\t key: 'parents',\n\t value: function parents(el, optionalSelector) {\n\t return Util.parentsCallback(el, function (element) {\n\t if (optionalSelector && (element === optionalSelector || typeof optionalSelector === 'string' && element.matches && element.matches(optionalSelector))) {\n\t return true;\n\t } else if (!optionalSelector) {\n\t return true;\n\t }\n\t return false;\n\t });\n\t }\n\t\n\t /**\n\t * @param {HTMLElement|Node} el\n\t * @param {Function} callback\n\t * @return {Array.} an array of all found parents of given element (and optional selector)\n\t */\n\t\n\t }, {\n\t key: 'parentsCallback',\n\t value: function parentsCallback(el, callback) {\n\t var element = el;\n\t var foundElements = [];\n\t while (element.parentNode !== null) {\n\t element = element.parentNode;\n\t if (callback(element)) {\n\t foundElements.push(element);\n\t }\n\t }\n\t return foundElements;\n\t }\n\t\n\t /**\n\t * Finds a parent node (the closest) with a given selector\n\t * @param {Node} el\n\t * @param {String} selector\n\t *\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: 'parent',\n\t value: function parent(el, selector) {\n\t var element = el;\n\t while (element.parentNode !== null) {\n\t element = element.parentNode;\n\t if (element.matches && element.matches(selector)) {\n\t return element;\n\t }\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Finds the closest element including itself matching a given selector\n\t * @param {Node} el\n\t * @param selector\n\t *\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: 'closest',\n\t value: function closest(el, selector) {\n\t return Util.closestCallback(el, function (element) {\n\t return element.matches && element.matches(selector);\n\t });\n\t }\n\t\n\t /**\n\t * Finds the closest element including itself matching a callback\n\t * @param {Node} el\n\t * @param {Function} callback\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: 'closestCallback',\n\t value: function closestCallback(el, callback) {\n\t var element = el;\n\t while (element !== null) {\n\t if (callback(element)) {\n\t return element;\n\t }\n\t element = element.parentNode;\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Finds the outermost fitting element that matches callback\n\t * @param {Node} el\n\t * @param {Function} callback\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: 'outerMostCallback',\n\t value: function outerMostCallback(el, callback) {\n\t var element = el;\n\t var lastValid = false;\n\t while (element !== null) {\n\t if (callback(element)) {\n\t lastValid = element;\n\t }\n\t element = element.parentNode;\n\t }\n\t return lastValid;\n\t }\n\t\n\t /**\n\t * @param {HTMLElement} n\n\t *\n\t * @return {boolean}\n\t */\n\t\n\t }, {\n\t key: 'isMarkNode',\n\t value: function isMarkNode(n) {\n\t return n instanceof HTMLElement && n.hasAttribute(DATA_IS_SELECTION);\n\t }\n\t\n\t /**\n\t * Determines the correct paths and excludes all `marklib` generated content\n\t * TODO: To improve performance we could shorten the path if an ID is present in it.\n\t * @param {HTMLElement|Node} el\n\t * @param {HTMLElement|Node} [context] if given extraction path is relative to this element\n\t * @returns {string}\n\t */\n\t\n\t }, {\n\t key: 'getPath',\n\t value: function getPath(el, context) {\n\t var path = null;\n\t var node = el;\n\t\n\t var filterSiblings = function filterSiblings(thisEl) {\n\t return !Util.isMarkNode(thisEl) && thisEl.nodeName === node.nodeName;\n\t };\n\t\n\t while (node) {\n\t var name = null;\n\t // If node is a text-node, save index\n\t if (Node.TEXT_NODE === node.nodeType) {\n\t /* Because nodes may wrapped inside a highlighting node, we need to find the original index that was\n\t * valid before the dom changes. We store the last known index position inside all wrapper elements\n\t * We select the outermost\n\t */\n\t\n\t // Extract original index of this node:\n\t // Outer most data-original-index is original index\n\t var outerMostElement = Util.parents(node, '[' + ATTR_DATA_ORIGINAL_INDEX + ']').reverse()[0];\n\t // if element is not yet wrapped in span, recalculate index based on parent container:\n\t // We have to do this because text node indexes != element indexes...\n\t var calculatedIndex = 0;\n\t if (!outerMostElement) {\n\t calculatedIndex = Util.calcIndex(node);\n\t }\n\t var index = outerMostElement ? parseInt(outerMostElement.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10) : calculatedIndex;\n\t name = SERIALIZE_SEPARATOR + index;\n\t } else {\n\t name = node.nodeName;\n\t }\n\t\n\t if (!name) {\n\t break;\n\t }\n\t\n\t name = name.toLowerCase();\n\t\n\t var parent = node.parentNode;\n\t\n\t if (Util.isMarkNode(node)) {\n\t if (parent !== context) {\n\t node = parent;\n\t continue;\n\t } else {\n\t break;\n\t }\n\t }\n\t\n\t // Select only siblings that are not part of selection and are of the same type\n\t // (because we use nth-of-type selector later)\n\t var siblings = Util.nodeListFilter(parent.children, filterSiblings);\n\t var nodeIndex = Util.index(node, siblings);\n\t\n\t if (siblings.length > 1 && nodeIndex >= 0) {\n\t name += ':nth-of-type(' + (nodeIndex + 1) + ')';\n\t }\n\t\n\t path = name + (path ? '>' + path : '');\n\t\n\t if (parent === context) {\n\t break;\n\t }\n\t\n\t node = parent;\n\t }\n\t\n\t return path.replace(\"#document>\", \"\").replace('>;', ';');\n\t }\n\t\n\t /**\n\t * Will return the first original offset value that is found\n\t * @param {Node} element\n\t *\n\t * @returns {int}\n\t */\n\t\n\t }, {\n\t key: 'findOriginalOffset',\n\t value: function findOriginalOffset(element) {\n\t if (!element.parentNode.hasAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START)) {\n\t return 0;\n\t }\n\t var lengthElement = Util.parent(element, '[' + _Rendering.ATTR_DATA_ORIGINAL_OFFSET_START + ']');\n\t return lengthElement ? parseInt(lengthElement.getAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START), 10) : 0;\n\t }\n\t\n\t /**\n\t * Deserialize a specific path and finds the right textNodes\n\t * This even works when DOM has been manipulated before by `marklib`\n\t * @param {string} path the serialized path (including offsets)\n\t * @param {Node|HTMLElement} context\n\t *\n\t * @return {Node}\n\t */\n\t\n\t }, {\n\t key: 'deserializePath',\n\t value: function deserializePath(path, context) {\n\t var pSplit = path.split(';');\n\t var p = pSplit[0];\n\t var objectIndex = parseInt(pSplit[1], 10);\n\t var charOffset = parseInt(pSplit[2], 10);\n\t var container = !p.trim() ? context : context.querySelector(p);\n\t\n\t var maybeFoundNode = null;\n\t\n\t Util.walkTextNodes(container, function (n) {\n\t var atrOffsetStart = n.parentNode.getAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START);\n\t atrOffsetStart = atrOffsetStart === null ? 0 : atrOffsetStart;\n\t var atrIndex = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_INDEX);\n\t atrIndex = atrIndex === null ? Util.calcIndex(n) : atrIndex;\n\t if (parseInt(atrIndex, 10) === objectIndex && charOffset >= atrOffsetStart && parseInt(atrOffsetStart, 10) + n.length >= charOffset) {\n\t var thisOffset = n.parentNode.hasAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START) ? charOffset - parseInt(n.parentNode.getAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START), 10) : charOffset;\n\t\n\t maybeFoundNode = {\n\t node: n,\n\t offset: thisOffset\n\t };\n\t\n\t return false;\n\t }\n\t return true;\n\t }, null);\n\t\n\t return maybeFoundNode;\n\t }\n\t\n\t /**\n\t * Walks the dom tree unless func returns false\n\t * Applies node to function\n\t *\n\t * @param {Node} node\n\t * @param {Function} func\n\t * @param {int} type, see `NodeFilter`\n\t * @param {Object} [filter] skips empty text nodes by default\n\t *\n\t * @returns {boolean} true if function did abort walk\n\t */\n\t\n\t }, {\n\t key: 'walkDom',\n\t value: function walkDom(node, func) {\n\t var _document;\n\t\n\t var type = arguments.length <= 2 || arguments[2] === undefined ? NodeFilter.SHOW_ALL : arguments[2];\n\t var filter = arguments.length <= 3 || arguments[3] === undefined ? null : arguments[3];\n\t\n\t if (!node) {\n\t return false;\n\t }\n\t var args = [node, type, filter || function () {\n\t return true;\n\t }, false];\n\t args.push(false);\n\t var walker = (_document = document).createTreeWalker.apply(_document, args);\n\t while (walker.nextNode()) {\n\t if (!func(walker.currentNode)) {\n\t return true;\n\t }\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Extracts all TextNodes inside a container\n\t * @param {Node} el\n\t * @param {Function} func\n\t * @param {Object} [filter] skips empty text nodes by default\n\t * @returns {boolean} true if function did abort walk\n\t */\n\t\n\t }, {\n\t key: 'walkTextNodes',\n\t value: function walkTextNodes(el, func) {\n\t var filter = arguments.length <= 2 || arguments[2] === undefined ? function (node) {\n\t return !Util.nodeIsEmpty(node);\n\t } : arguments[2];\n\t\n\t return Util.walkDom(el, func, NodeFilter.SHOW_TEXT, filter);\n\t }\n\t\n\t /**\n\t * @param {Node} container\n\t * @param {Number} thisIndex\n\t * @returns {int|string} index of parent or original\n\t */\n\t\n\t }, {\n\t key: 'getIndexParentIfHas',\n\t value: function getIndexParentIfHas(container, thisIndex) {\n\t var p = container.parentNode;\n\t var index = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10);\n\t return index > thisIndex ? index : thisIndex;\n\t }\n\t\n\t /**\n\t * @param container\n\t * @returns {int} offset start of parent if has, else 0\n\t */\n\t\n\t }, {\n\t key: 'getOffsetParentIfHas',\n\t value: function getOffsetParentIfHas(container) {\n\t var p = container.parentNode;\n\t var offset = parseInt(p.getAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START), 10);\n\t return offset > 0 ? offset : 0;\n\t }\n\t }]);\n\t return Util;\n\t}();\n\n\texports.default = Util;\n\n/***/ },\n/* 25 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tvar _typeof = typeof _Symbol === \"function\" && typeof _Symbol$iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _Symbol === \"function\" && obj.constructor === _Symbol ? \"symbol\" : typeof obj; };\n\t\n\texports.__esModule = true;\n\t\n\tvar _iterator = __webpack_require__(60);\n\t\n\tvar _iterator2 = _interopRequireDefault(_iterator);\n\t\n\tvar _symbol = __webpack_require__(59);\n\t\n\tvar _symbol2 = _interopRequireDefault(_symbol);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n\t return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n\t} : function (obj) {\n\t return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n\t};\n\n/***/ },\n/* 26 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// getting tag from 19.1.3.6 Object.prototype.toString()\n\tvar cof = __webpack_require__(27)\n\t , TAG = __webpack_require__(3)('toStringTag')\n\t // ES3 wrong here\n\t , ARG = cof(function(){ return arguments; }()) == 'Arguments';\n\t\n\tmodule.exports = function(it){\n\t var O, T, B;\n\t return it === undefined ? 'Undefined' : it === null ? 'Null'\n\t // @@toStringTag case\n\t : typeof (T = (O = Object(it))[TAG]) == 'string' ? T\n\t // builtinTag case\n\t : ARG ? cof(O)\n\t // ES3 arguments fallback\n\t : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n\t};\n\n/***/ },\n/* 27 */\n/***/ function(module, exports) {\n\n\tvar toString = {}.toString;\n\t\n\tmodule.exports = function(it){\n\t return toString.call(it).slice(8, -1);\n\t};\n\n/***/ },\n/* 28 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar ctx = __webpack_require__(14)\n\t , call = __webpack_require__(81)\n\t , isArrayIter = __webpack_require__(79)\n\t , anObject = __webpack_require__(6)\n\t , toLength = __webpack_require__(89)\n\t , getIterFn = __webpack_require__(48);\n\tmodule.exports = function(iterable, entries, fn, that){\n\t var iterFn = getIterFn(iterable)\n\t , f = ctx(fn, that, entries ? 2 : 1)\n\t , index = 0\n\t , length, step, iterator;\n\t if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');\n\t // fast case for arrays with default iterator\n\t if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){\n\t entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n\t } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){\n\t call(iterator, f, step.value, entries);\n\t }\n\t};\n\n/***/ },\n/* 29 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar LIBRARY = __webpack_require__(42)\n\t , $export = __webpack_require__(4)\n\t , redefine = __webpack_require__(31)\n\t , hide = __webpack_require__(10)\n\t , has = __webpack_require__(16)\n\t , Iterators = __webpack_require__(5)\n\t , $iterCreate = __webpack_require__(82)\n\t , setToStringTag = __webpack_require__(18)\n\t , getProto = __webpack_require__(1).getProto\n\t , ITERATOR = __webpack_require__(3)('iterator')\n\t , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`\n\t , FF_ITERATOR = '@@iterator'\n\t , KEYS = 'keys'\n\t , VALUES = 'values';\n\t\n\tvar returnThis = function(){ return this; };\n\t\n\tmodule.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){\n\t $iterCreate(Constructor, NAME, next);\n\t var getMethod = function(kind){\n\t if(!BUGGY && kind in proto)return proto[kind];\n\t switch(kind){\n\t case KEYS: return function keys(){ return new Constructor(this, kind); };\n\t case VALUES: return function values(){ return new Constructor(this, kind); };\n\t } return function entries(){ return new Constructor(this, kind); };\n\t };\n\t var TAG = NAME + ' Iterator'\n\t , DEF_VALUES = DEFAULT == VALUES\n\t , VALUES_BUG = false\n\t , proto = Base.prototype\n\t , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]\n\t , $default = $native || getMethod(DEFAULT)\n\t , methods, key;\n\t // Fix native\n\t if($native){\n\t var IteratorPrototype = getProto($default.call(new Base));\n\t // Set @@toStringTag to native iterators\n\t setToStringTag(IteratorPrototype, TAG, true);\n\t // FF fix\n\t if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);\n\t // fix Array#{values, @@iterator}.name in V8 / FF\n\t if(DEF_VALUES && $native.name !== VALUES){\n\t VALUES_BUG = true;\n\t $default = function values(){ return $native.call(this); };\n\t }\n\t }\n\t // Define iterator\n\t if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){\n\t hide(proto, ITERATOR, $default);\n\t }\n\t // Plug for library\n\t Iterators[NAME] = $default;\n\t Iterators[TAG] = returnThis;\n\t if(DEFAULT){\n\t methods = {\n\t values: DEF_VALUES ? $default : getMethod(VALUES),\n\t keys: IS_SET ? $default : getMethod(KEYS),\n\t entries: !DEF_VALUES ? $default : getMethod('entries')\n\t };\n\t if(FORCED)for(key in methods){\n\t if(!(key in proto))redefine(proto, key, methods[key]);\n\t } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n\t }\n\t return methods;\n\t};\n\n/***/ },\n/* 30 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(bitmap, value){\n\t return {\n\t enumerable : !(bitmap & 1),\n\t configurable: !(bitmap & 2),\n\t writable : !(bitmap & 4),\n\t value : value\n\t };\n\t};\n\n/***/ },\n/* 31 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(10);\n\n/***/ },\n/* 32 */\n/***/ function(module, exports) {\n\n\tvar id = 0\n\t , px = Math.random();\n\tmodule.exports = function(key){\n\t return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n\t};\n\n/***/ },\n/* 33 */,\n/* 34 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _classCallCheck2 = __webpack_require__(12);\n\t\n\tvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\t\n\tvar _createClass2 = __webpack_require__(13);\n\t\n\tvar _createClass3 = _interopRequireDefault(_createClass2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/**\n\t * A Render Result\n\t */\n\t\n\tvar RenderResult = function () {\n\t /**\n\t * @param {int} startOffset\n\t * @param {int} endOffset\n\t * @param {String} startContainerPath\n\t * @param {String} endContainerPath\n\t */\n\t\n\t function RenderResult(startOffset, endOffset, startContainerPath, endContainerPath) {\n\t (0, _classCallCheck3.default)(this, RenderResult);\n\t\n\t this.startOffset = startOffset;\n\t this.endOffset = endOffset;\n\t this.startContainerPath = startContainerPath;\n\t this.endContainerPath = endContainerPath;\n\t this._renderingInstance = null;\n\t }\n\t\n\t /**\n\t * @param {Object} result\n\t * @return RenderResult\n\t */\n\t\n\t\n\t (0, _createClass3.default)(RenderResult, [{\n\t key: \"serialize\",\n\t\n\t\n\t /**\n\t * @returns {Object}\n\t */\n\t value: function serialize() {\n\t return {\n\t startOffset: this.startOffset,\n\t endOffset: this.endOffset,\n\t startContainerPath: this.startContainerPath,\n\t endContainerPath: this.endContainerPath\n\t };\n\t }\n\t\n\t /**\n\t * @param {String} text\n\t */\n\t\n\t }, {\n\t key: \"text\",\n\t set: function set(text) {\n\t this._text = text;\n\t }\n\t\n\t /**\n\t * @returns {String}\n\t */\n\t ,\n\t get: function get() {\n\t return this._text;\n\t }\n\t\n\t /**\n\t * @returns {null|Rendering}\n\t */\n\t\n\t }, {\n\t key: \"instance\",\n\t get: function get() {\n\t return this._renderingInstance;\n\t }\n\t\n\t /**\n\t * @param {null|Rendering} instance\n\t */\n\t ,\n\t set: function set(instance) {\n\t this._renderingInstance = instance;\n\t }\n\t }], [{\n\t key: \"fromObject\",\n\t value: function fromObject(result) {\n\t return new RenderResult(result.startOffset, result.endOffset, result.startContainerPath, result.endContainerPath);\n\t }\n\t }]);\n\t return RenderResult;\n\t}();\n\n\texports.default = RenderResult;\n\n/***/ },\n/* 35 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_PART_TREE_LEAVE = exports.EVENT_PART_TREE_ENTER = exports.EVENT_MOUSELEAVE = exports.EVENT_MOUSEENTER = exports.EVENT_CLICK = undefined;\n\t\n\tvar _slicedToArray2 = __webpack_require__(61);\n\t\n\tvar _slicedToArray3 = _interopRequireDefault(_slicedToArray2);\n\t\n\tvar _typeof2 = __webpack_require__(25);\n\t\n\tvar _typeof3 = _interopRequireDefault(_typeof2);\n\t\n\tvar _set = __webpack_require__(58);\n\t\n\tvar _set2 = _interopRequireDefault(_set);\n\t\n\tvar _assign = __webpack_require__(54);\n\t\n\tvar _assign2 = _interopRequireDefault(_assign);\n\t\n\tvar _getPrototypeOf = __webpack_require__(37);\n\t\n\tvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\t\n\tvar _classCallCheck2 = __webpack_require__(12);\n\t\n\tvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\t\n\tvar _createClass2 = __webpack_require__(13);\n\t\n\tvar _createClass3 = _interopRequireDefault(_createClass2);\n\t\n\tvar _possibleConstructorReturn2 = __webpack_require__(39);\n\t\n\tvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\t\n\tvar _inherits2 = __webpack_require__(38);\n\t\n\tvar _inherits3 = _interopRequireDefault(_inherits2);\n\t\n\tvar _wolfy87Eventemitter = __webpack_require__(99);\n\t\n\tvar _wolfy87Eventemitter2 = _interopRequireDefault(_wolfy87Eventemitter);\n\t\n\tvar _Rendering = __webpack_require__(23);\n\t\n\tvar _Rendering2 = _interopRequireDefault(_Rendering);\n\t\n\tvar _Util = __webpack_require__(24);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_CLICK = exports.EVENT_CLICK = 'click';\n\t\n\t/**\n\t * @type {string}\n\t */\n\t/* global Set */\n\t\n\tvar EVENT_MOUSEENTER = exports.EVENT_MOUSEENTER = 'hover-enter';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_MOUSELEAVE = exports.EVENT_MOUSELEAVE = 'hover-leave';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_PART_TREE_ENTER = exports.EVENT_PART_TREE_ENTER = 'tree-enter';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_PART_TREE_LEAVE = exports.EVENT_PART_TREE_LEAVE = 'tree-leave';\n\t\n\t/**\n\t * Generic Event Handlings for Renderer\n\t */\n\t\n\tvar RenderingEvents = function (_EventEmitter) {\n\t (0, _inherits3.default)(RenderingEvents, _EventEmitter);\n\t\n\t\n\t /**\n\t * @param {Object} options\n\t * @param {Document} document\n\t */\n\t\n\t function RenderingEvents(options, document) {\n\t (0, _classCallCheck3.default)(this, RenderingEvents);\n\t\n\t\n\t /**\n\t * Options\n\t * @type {Object}\n\t */\n\t\n\t var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(RenderingEvents).call(this));\n\t\n\t _this.options = {\n\t hoverClass: 'marklib--hover',\n\t treeClass: 'marklib--tree',\n\t className: ['marking']\n\t };\n\t\n\t _this.options = (0, _assign2.default)(_this.options, options || {});\n\t\n\t if (typeof _this.options.className === 'string') {\n\t _this.options.className = _this.options.className.split(' ');\n\t }\n\t\n\t /**\n\t * A collection of all nodes that are part of all events\n\t * @type {Array}\n\t */\n\t _this.wrapperNodes = [];\n\t\n\t _this._registerEvents(document);\n\t\n\t /**\n\t * @type {Document}\n\t */\n\t _this.document = document;\n\t return _this;\n\t }\n\t\n\t /**\n\t * Constructs a new Range from rendered result\n\t * @returns {Range}\n\t */\n\t\n\t\n\t (0, _createClass3.default)(RenderingEvents, [{\n\t key: '_registerEvents',\n\t\n\t\n\t /**\n\t * Will register events if not already bind.\n\t * @param {Document} document\n\t * @private\n\t */\n\t value: function _registerEvents(document) {\n\t var _this2 = this;\n\t\n\t this.on(EVENT_MOUSEENTER, function () {\n\t _this2.wrapperNodes.forEach(function (node) {\n\t node.classList.add(_this2.options.hoverClass);\n\t });\n\t });\n\t\n\t this.on(EVENT_MOUSELEAVE, function () {\n\t _this2.wrapperNodes.forEach(function (node) {\n\t node.classList.remove(_this2.options.hoverClass);\n\t });\n\t });\n\t\n\t this.on(EVENT_PART_TREE_ENTER, function () {\n\t _this2.wrapperNodes.forEach(function (node) {\n\t node.classList.add(_this2.options.treeClass);\n\t });\n\t });\n\t\n\t this.on(EVENT_PART_TREE_LEAVE, function () {\n\t _this2.wrapperNodes.forEach(function (node) {\n\t node.classList.remove(_this2.options.treeClass);\n\t });\n\t });\n\t\n\t if (!global.__MARKLIB_EVENTS__) {\n\t global.__MARKLIB_EVENTS__ = true;\n\t (function init() {\n\t var currentHoverInstances = new _set2.default();\n\t var betweenInstances = new _set2.default();\n\t\n\t function checkMarklibInstance(e) {\n\t var instance = _Rendering2.default.getMarklibInstance(e);\n\t // instanceof check will fail if used in test scenario where different DOMs are used\n\t // see also http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/\n\t return instance && (instance instanceof _Rendering2.default || 'wrapperNodes' in instance);\n\t }\n\t\n\t function closestInstance(e) {\n\t var closest = _Util2.default.closestCallback(e.target, function (thisE) {\n\t return checkMarklibInstance(thisE);\n\t });\n\t if ((typeof closest === 'undefined' ? 'undefined' : (0, _typeof3.default)(closest)) === 'object') {\n\t return _Rendering2.default.getMarklibInstance(closest);\n\t }\n\t return false;\n\t }\n\t\n\t function getInstancesBetween(e, instance) {\n\t return _Util2.default.parentsCallback(e.target, function (el) {\n\t return checkMarklibInstance(el) && _Rendering2.default.getMarklibInstance(el) !== instance;\n\t }).map(function (el) {\n\t return _Rendering2.default.getMarklibInstance(el);\n\t });\n\t }\n\t\n\t function mouseOutClear() {\n\t currentHoverInstances.forEach(function (thisInstance) {\n\t thisInstance.emit(EVENT_MOUSELEAVE);\n\t });\n\t currentHoverInstances.clear();\n\t\n\t betweenInstances.forEach(function (thisInstance) {\n\t thisInstance.emit(EVENT_PART_TREE_LEAVE);\n\t });\n\t\n\t betweenInstances.clear();\n\t }\n\t\n\t /**\n\t * @param {Event} e\n\t * @returns {Array|boolean}\n\t */\n\t function findTarget(e) {\n\t var instance = closestInstance(e);\n\t if (instance) {\n\t var between = getInstancesBetween(e, instance);\n\t if (e.target.textContent !== instance.result.text && between.length > 0) {\n\t var allInstances = between;\n\t allInstances.unshift(instance);\n\t // take the smallest selection\n\t allInstances = allInstances.sort(function (a, b) {\n\t return a.result.text.length < b.result.text.length ? -1 : 1;\n\t });\n\t instance = allInstances[0];\n\t }\n\t\n\t return [instance, between];\n\t }\n\t return false;\n\t }\n\t\n\t document.addEventListener('click', function (e) {\n\t var target = findTarget(e);\n\t if (target) {\n\t target[0].emit(EVENT_CLICK, e, target[1]);\n\t }\n\t }, true);\n\t\n\t document.addEventListener('mouseover', function (e) {\n\t var target = findTarget(e);\n\t if (target) {\n\t (function () {\n\t var _target = (0, _slicedToArray3.default)(target, 2);\n\t\n\t var instance = _target[0];\n\t var between = _target[1];\n\t // find instances that lay in between the node\n\t\n\t mouseOutClear();\n\t between.forEach(function (instanceBetween) {\n\t betweenInstances.add(instanceBetween);\n\t instanceBetween.emit(EVENT_PART_TREE_ENTER, e, between);\n\t });\n\t instance.emit(EVENT_MOUSEENTER, e, between);\n\t currentHoverInstances.add(instance);\n\t })();\n\t } else {\n\t mouseOutClear();\n\t }\n\t }, true);\n\t })();\n\t }\n\t }\n\t }, {\n\t key: 'range',\n\t get: function get() {\n\t var range = this.document.createRange();\n\t var textNodes = [];\n\t\n\t this.wrapperNodes.forEach(function (wrapper) {\n\t _Util2.default.walkTextNodes(wrapper, function (node) {\n\t textNodes.push(node);\n\t });\n\t });\n\t\n\t if (textNodes.length > 0) {\n\t var lastTextNode = textNodes[textNodes.length - 1];\n\t range.setStart(textNodes[0], 0);\n\t range.setEnd(lastTextNode, lastTextNode.length);\n\t return range;\n\t }\n\t\n\t return null;\n\t }\n\t }]);\n\t return RenderingEvents;\n\t}(_wolfy87Eventemitter2.default);\n\n\texports.default = RenderingEvents;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 36 */,\n/* 37 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(67), __esModule: true };\n\n/***/ },\n/* 38 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _setPrototypeOf = __webpack_require__(57);\n\t\n\tvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\t\n\tvar _create = __webpack_require__(55);\n\t\n\tvar _create2 = _interopRequireDefault(_create);\n\t\n\tvar _typeof2 = __webpack_require__(25);\n\t\n\tvar _typeof3 = _interopRequireDefault(_typeof2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = function (subClass, superClass) {\n\t if (typeof superClass !== \"function\" && superClass !== null) {\n\t throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n\t }\n\t\n\t subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n\t constructor: {\n\t value: subClass,\n\t enumerable: false,\n\t writable: true,\n\t configurable: true\n\t }\n\t });\n\t if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n\t};\n\n/***/ },\n/* 39 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _typeof2 = __webpack_require__(25);\n\t\n\tvar _typeof3 = _interopRequireDefault(_typeof2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = function (self, call) {\n\t if (!self) {\n\t throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n\t }\n\t\n\t return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n\t};\n\n/***/ },\n/* 40 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// fallback for non-array-like ES3 and non-enumerable old V8 strings\n\tvar cof = __webpack_require__(27);\n\tmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n\t return cof(it) == 'String' ? it.split('') : Object(it);\n\t};\n\n/***/ },\n/* 41 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(done, value){\n\t return {value: value, done: !!done};\n\t};\n\n/***/ },\n/* 42 */\n/***/ function(module, exports) {\n\n\tmodule.exports = true;\n\n/***/ },\n/* 43 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar redefine = __webpack_require__(31);\n\tmodule.exports = function(target, src){\n\t for(var key in src)redefine(target, key, src[key]);\n\t return target;\n\t};\n\n/***/ },\n/* 44 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar global = __webpack_require__(9)\n\t , SHARED = '__core-js_shared__'\n\t , store = global[SHARED] || (global[SHARED] = {});\n\tmodule.exports = function(key){\n\t return store[key] || (store[key] = {});\n\t};\n\n/***/ },\n/* 45 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(it, Constructor, name){\n\t if(!(it instanceof Constructor))throw TypeError(name + \": use the 'new' operator!\");\n\t return it;\n\t};\n\n/***/ },\n/* 46 */\n/***/ function(module, exports) {\n\n\t// 7.1.4 ToInteger\n\tvar ceil = Math.ceil\n\t , floor = Math.floor;\n\tmodule.exports = function(it){\n\t return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n\t};\n\n/***/ },\n/* 47 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.1.13 ToObject(argument)\n\tvar defined = __webpack_require__(15);\n\tmodule.exports = function(it){\n\t return Object(defined(it));\n\t};\n\n/***/ },\n/* 48 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar classof = __webpack_require__(26)\n\t , ITERATOR = __webpack_require__(3)('iterator')\n\t , Iterators = __webpack_require__(5);\n\tmodule.exports = __webpack_require__(2).getIteratorMethod = function(it){\n\t if(it != undefined)return it[ITERATOR]\n\t || it['@@iterator']\n\t || Iterators[classof(it)];\n\t};\n\n/***/ },\n/* 49 */\n/***/ function(module, exports) {\n\n\n\n/***/ },\n/* 50 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.RenderingEvents = exports.RenderResult = exports.Util = exports.Rendering = undefined;\n\t\n\tvar _Rendering = __webpack_require__(23);\n\t\n\tvar _Rendering2 = _interopRequireDefault(_Rendering);\n\t\n\tvar _Util = __webpack_require__(24);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tvar _RenderResult = __webpack_require__(34);\n\t\n\tvar _RenderResult2 = _interopRequireDefault(_RenderResult);\n\t\n\tvar _RenderingEvents = __webpack_require__(35);\n\t\n\tvar _RenderingEvents2 = _interopRequireDefault(_RenderingEvents);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.Rendering = _Rendering2.default;\n\texports.Util = _Util2.default;\n\texports.RenderResult = _RenderResult2.default;\n\texports.RenderingEvents = _RenderingEvents2.default;\n\n/***/ },\n/* 51 */,\n/* 52 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(62), __esModule: true };\n\n/***/ },\n/* 53 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(63), __esModule: true };\n\n/***/ },\n/* 54 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(64), __esModule: true };\n\n/***/ },\n/* 55 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(65), __esModule: true };\n\n/***/ },\n/* 56 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(66), __esModule: true };\n\n/***/ },\n/* 57 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(68), __esModule: true };\n\n/***/ },\n/* 58 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(69), __esModule: true };\n\n/***/ },\n/* 59 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(70), __esModule: true };\n\n/***/ },\n/* 60 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(71), __esModule: true };\n\n/***/ },\n/* 61 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _isIterable2 = __webpack_require__(53);\n\t\n\tvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\t\n\tvar _getIterator2 = __webpack_require__(52);\n\t\n\tvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = function () {\n\t function sliceIterator(arr, i) {\n\t var _arr = [];\n\t var _n = true;\n\t var _d = false;\n\t var _e = undefined;\n\t\n\t try {\n\t for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n\t _arr.push(_s.value);\n\t\n\t if (i && _arr.length === i) break;\n\t }\n\t } catch (err) {\n\t _d = true;\n\t _e = err;\n\t } finally {\n\t try {\n\t if (!_n && _i[\"return\"]) _i[\"return\"]();\n\t } finally {\n\t if (_d) throw _e;\n\t }\n\t }\n\t\n\t return _arr;\n\t }\n\t\n\t return function (arr, i) {\n\t if (Array.isArray(arr)) {\n\t return arr;\n\t } else if ((0, _isIterable3.default)(Object(arr))) {\n\t return sliceIterator(arr, i);\n\t } else {\n\t throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n\t }\n\t };\n\t}();\n\n/***/ },\n/* 62 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(21);\n\t__webpack_require__(20);\n\tmodule.exports = __webpack_require__(90);\n\n/***/ },\n/* 63 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(21);\n\t__webpack_require__(20);\n\tmodule.exports = __webpack_require__(91);\n\n/***/ },\n/* 64 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(93);\n\tmodule.exports = __webpack_require__(2).Object.assign;\n\n/***/ },\n/* 65 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar $ = __webpack_require__(1);\n\tmodule.exports = function create(P, D){\n\t return $.create(P, D);\n\t};\n\n/***/ },\n/* 66 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar $ = __webpack_require__(1);\n\tmodule.exports = function defineProperty(it, key, desc){\n\t return $.setDesc(it, key, desc);\n\t};\n\n/***/ },\n/* 67 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(94);\n\tmodule.exports = __webpack_require__(2).Object.getPrototypeOf;\n\n/***/ },\n/* 68 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(95);\n\tmodule.exports = __webpack_require__(2).Object.setPrototypeOf;\n\n/***/ },\n/* 69 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(49);\n\t__webpack_require__(20);\n\t__webpack_require__(21);\n\t__webpack_require__(96);\n\t__webpack_require__(98);\n\tmodule.exports = __webpack_require__(2).Set;\n\n/***/ },\n/* 70 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(97);\n\t__webpack_require__(49);\n\tmodule.exports = __webpack_require__(2).Symbol;\n\n/***/ },\n/* 71 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(20);\n\t__webpack_require__(21);\n\tmodule.exports = __webpack_require__(3)('iterator');\n\n/***/ },\n/* 72 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(it){\n\t if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n\t return it;\n\t};\n\n/***/ },\n/* 73 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(){ /* empty */ };\n\n/***/ },\n/* 74 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar $ = __webpack_require__(1)\n\t , hide = __webpack_require__(10)\n\t , redefineAll = __webpack_require__(43)\n\t , ctx = __webpack_require__(14)\n\t , strictNew = __webpack_require__(45)\n\t , defined = __webpack_require__(15)\n\t , forOf = __webpack_require__(28)\n\t , $iterDefine = __webpack_require__(29)\n\t , step = __webpack_require__(41)\n\t , ID = __webpack_require__(32)('id')\n\t , $has = __webpack_require__(16)\n\t , isObject = __webpack_require__(17)\n\t , setSpecies = __webpack_require__(87)\n\t , DESCRIPTORS = __webpack_require__(7)\n\t , isExtensible = Object.isExtensible || isObject\n\t , SIZE = DESCRIPTORS ? '_s' : 'size'\n\t , id = 0;\n\t\n\tvar fastKey = function(it, create){\n\t // return primitive with prefix\n\t if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n\t if(!$has(it, ID)){\n\t // can't set id to frozen object\n\t if(!isExtensible(it))return 'F';\n\t // not necessary to add id\n\t if(!create)return 'E';\n\t // add missing object id\n\t hide(it, ID, ++id);\n\t // return object id with prefix\n\t } return 'O' + it[ID];\n\t};\n\t\n\tvar getEntry = function(that, key){\n\t // fast case\n\t var index = fastKey(key), entry;\n\t if(index !== 'F')return that._i[index];\n\t // frozen object case\n\t for(entry = that._f; entry; entry = entry.n){\n\t if(entry.k == key)return entry;\n\t }\n\t};\n\t\n\tmodule.exports = {\n\t getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n\t var C = wrapper(function(that, iterable){\n\t strictNew(that, C, NAME);\n\t that._i = $.create(null); // index\n\t that._f = undefined; // first entry\n\t that._l = undefined; // last entry\n\t that[SIZE] = 0; // size\n\t if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n\t });\n\t redefineAll(C.prototype, {\n\t // 23.1.3.1 Map.prototype.clear()\n\t // 23.2.3.2 Set.prototype.clear()\n\t clear: function clear(){\n\t for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){\n\t entry.r = true;\n\t if(entry.p)entry.p = entry.p.n = undefined;\n\t delete data[entry.i];\n\t }\n\t that._f = that._l = undefined;\n\t that[SIZE] = 0;\n\t },\n\t // 23.1.3.3 Map.prototype.delete(key)\n\t // 23.2.3.4 Set.prototype.delete(value)\n\t 'delete': function(key){\n\t var that = this\n\t , entry = getEntry(that, key);\n\t if(entry){\n\t var next = entry.n\n\t , prev = entry.p;\n\t delete that._i[entry.i];\n\t entry.r = true;\n\t if(prev)prev.n = next;\n\t if(next)next.p = prev;\n\t if(that._f == entry)that._f = next;\n\t if(that._l == entry)that._l = prev;\n\t that[SIZE]--;\n\t } return !!entry;\n\t },\n\t // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n\t // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n\t forEach: function forEach(callbackfn /*, that = undefined */){\n\t var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3)\n\t , entry;\n\t while(entry = entry ? entry.n : this._f){\n\t f(entry.v, entry.k, this);\n\t // revert to the last existing entry\n\t while(entry && entry.r)entry = entry.p;\n\t }\n\t },\n\t // 23.1.3.7 Map.prototype.has(key)\n\t // 23.2.3.7 Set.prototype.has(value)\n\t has: function has(key){\n\t return !!getEntry(this, key);\n\t }\n\t });\n\t if(DESCRIPTORS)$.setDesc(C.prototype, 'size', {\n\t get: function(){\n\t return defined(this[SIZE]);\n\t }\n\t });\n\t return C;\n\t },\n\t def: function(that, key, value){\n\t var entry = getEntry(that, key)\n\t , prev, index;\n\t // change existing entry\n\t if(entry){\n\t entry.v = value;\n\t // create new entry\n\t } else {\n\t that._l = entry = {\n\t i: index = fastKey(key, true), // <- index\n\t k: key, // <- key\n\t v: value, // <- value\n\t p: prev = that._l, // <- previous entry\n\t n: undefined, // <- next entry\n\t r: false // <- removed\n\t };\n\t if(!that._f)that._f = entry;\n\t if(prev)prev.n = entry;\n\t that[SIZE]++;\n\t // add to index\n\t if(index !== 'F')that._i[index] = entry;\n\t } return that;\n\t },\n\t getEntry: getEntry,\n\t setStrong: function(C, NAME, IS_MAP){\n\t // add .keys, .values, .entries, [@@iterator]\n\t // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n\t $iterDefine(C, NAME, function(iterated, kind){\n\t this._t = iterated; // target\n\t this._k = kind; // kind\n\t this._l = undefined; // previous\n\t }, function(){\n\t var that = this\n\t , kind = that._k\n\t , entry = that._l;\n\t // revert to the last existing entry\n\t while(entry && entry.r)entry = entry.p;\n\t // get next entry\n\t if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){\n\t // or finish the iteration\n\t that._t = undefined;\n\t return step(1);\n\t }\n\t // return step by kind\n\t if(kind == 'keys' )return step(0, entry.k);\n\t if(kind == 'values')return step(0, entry.v);\n\t return step(0, [entry.k, entry.v]);\n\t }, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);\n\t\n\t // add [@@species], 23.1.2.2, 23.2.2.2\n\t setSpecies(NAME);\n\t }\n\t};\n\n/***/ },\n/* 75 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// https://github.com/DavidBruant/Map-Set.prototype.toJSON\n\tvar forOf = __webpack_require__(28)\n\t , classof = __webpack_require__(26);\n\tmodule.exports = function(NAME){\n\t return function toJSON(){\n\t if(classof(this) != NAME)throw TypeError(NAME + \"#toJSON isn't generic\");\n\t var arr = [];\n\t forOf(this, false, arr.push, arr);\n\t return arr;\n\t };\n\t};\n\n/***/ },\n/* 76 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar $ = __webpack_require__(1)\n\t , global = __webpack_require__(9)\n\t , $export = __webpack_require__(4)\n\t , fails = __webpack_require__(8)\n\t , hide = __webpack_require__(10)\n\t , redefineAll = __webpack_require__(43)\n\t , forOf = __webpack_require__(28)\n\t , strictNew = __webpack_require__(45)\n\t , isObject = __webpack_require__(17)\n\t , setToStringTag = __webpack_require__(18)\n\t , DESCRIPTORS = __webpack_require__(7);\n\t\n\tmodule.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){\n\t var Base = global[NAME]\n\t , C = Base\n\t , ADDER = IS_MAP ? 'set' : 'add'\n\t , proto = C && C.prototype\n\t , O = {};\n\t if(!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){\n\t new C().entries().next();\n\t }))){\n\t // create collection constructor\n\t C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n\t redefineAll(C.prototype, methods);\n\t } else {\n\t C = wrapper(function(target, iterable){\n\t strictNew(target, C, NAME);\n\t target._c = new Base;\n\t if(iterable != undefined)forOf(iterable, IS_MAP, target[ADDER], target);\n\t });\n\t $.each.call('add,clear,delete,forEach,get,has,set,keys,values,entries'.split(','),function(KEY){\n\t var IS_ADDER = KEY == 'add' || KEY == 'set';\n\t if(KEY in proto && !(IS_WEAK && KEY == 'clear'))hide(C.prototype, KEY, function(a, b){\n\t if(!IS_ADDER && IS_WEAK && !isObject(a))return KEY == 'get' ? undefined : false;\n\t var result = this._c[KEY](a === 0 ? 0 : a, b);\n\t return IS_ADDER ? this : result;\n\t });\n\t });\n\t if('size' in proto)$.setDesc(C.prototype, 'size', {\n\t get: function(){\n\t return this._c.size;\n\t }\n\t });\n\t }\n\t\n\t setToStringTag(C, NAME);\n\t\n\t O[NAME] = C;\n\t $export($export.G + $export.W + $export.F, O);\n\t\n\t if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);\n\t\n\t return C;\n\t};\n\n/***/ },\n/* 77 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// all enumerable object keys, includes symbols\n\tvar $ = __webpack_require__(1);\n\tmodule.exports = function(it){\n\t var keys = $.getKeys(it)\n\t , getSymbols = $.getSymbols;\n\t if(getSymbols){\n\t var symbols = getSymbols(it)\n\t , isEnum = $.isEnum\n\t , i = 0\n\t , key;\n\t while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);\n\t }\n\t return keys;\n\t};\n\n/***/ },\n/* 78 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\n\tvar toIObject = __webpack_require__(19)\n\t , getNames = __webpack_require__(1).getNames\n\t , toString = {}.toString;\n\t\n\tvar windowNames = typeof window == 'object' && Object.getOwnPropertyNames\n\t ? Object.getOwnPropertyNames(window) : [];\n\t\n\tvar getWindowNames = function(it){\n\t try {\n\t return getNames(it);\n\t } catch(e){\n\t return windowNames.slice();\n\t }\n\t};\n\t\n\tmodule.exports.get = function getOwnPropertyNames(it){\n\t if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);\n\t return getNames(toIObject(it));\n\t};\n\n/***/ },\n/* 79 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// check on default Array iterator\n\tvar Iterators = __webpack_require__(5)\n\t , ITERATOR = __webpack_require__(3)('iterator')\n\t , ArrayProto = Array.prototype;\n\t\n\tmodule.exports = function(it){\n\t return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n\t};\n\n/***/ },\n/* 80 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.2.2 IsArray(argument)\n\tvar cof = __webpack_require__(27);\n\tmodule.exports = Array.isArray || function(arg){\n\t return cof(arg) == 'Array';\n\t};\n\n/***/ },\n/* 81 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// call something on iterator step with safe closing on error\n\tvar anObject = __webpack_require__(6);\n\tmodule.exports = function(iterator, fn, value, entries){\n\t try {\n\t return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n\t // 7.4.6 IteratorClose(iterator, completion)\n\t } catch(e){\n\t var ret = iterator['return'];\n\t if(ret !== undefined)anObject(ret.call(iterator));\n\t throw e;\n\t }\n\t};\n\n/***/ },\n/* 82 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar $ = __webpack_require__(1)\n\t , descriptor = __webpack_require__(30)\n\t , setToStringTag = __webpack_require__(18)\n\t , IteratorPrototype = {};\n\t\n\t// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\n\t__webpack_require__(10)(IteratorPrototype, __webpack_require__(3)('iterator'), function(){ return this; });\n\t\n\tmodule.exports = function(Constructor, NAME, next){\n\t Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});\n\t setToStringTag(Constructor, NAME + ' Iterator');\n\t};\n\n/***/ },\n/* 83 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar $ = __webpack_require__(1)\n\t , toIObject = __webpack_require__(19);\n\tmodule.exports = function(object, el){\n\t var O = toIObject(object)\n\t , keys = $.getKeys(O)\n\t , length = keys.length\n\t , index = 0\n\t , key;\n\t while(length > index)if(O[key = keys[index++]] === el)return key;\n\t};\n\n/***/ },\n/* 84 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.2.1 Object.assign(target, source, ...)\n\tvar $ = __webpack_require__(1)\n\t , toObject = __webpack_require__(47)\n\t , IObject = __webpack_require__(40);\n\t\n\t// should work with symbols and should have deterministic property order (V8 bug)\n\tmodule.exports = __webpack_require__(8)(function(){\n\t var a = Object.assign\n\t , A = {}\n\t , B = {}\n\t , S = Symbol()\n\t , K = 'abcdefghijklmnopqrst';\n\t A[S] = 7;\n\t K.split('').forEach(function(k){ B[k] = k; });\n\t return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n\t}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n\t var T = toObject(target)\n\t , $$ = arguments\n\t , $$len = $$.length\n\t , index = 1\n\t , getKeys = $.getKeys\n\t , getSymbols = $.getSymbols\n\t , isEnum = $.isEnum;\n\t while($$len > index){\n\t var S = IObject($$[index++])\n\t , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n\t , length = keys.length\n\t , j = 0\n\t , key;\n\t while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n\t }\n\t return T;\n\t} : Object.assign;\n\n/***/ },\n/* 85 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// most Object methods by ES6 should accept primitives\n\tvar $export = __webpack_require__(4)\n\t , core = __webpack_require__(2)\n\t , fails = __webpack_require__(8);\n\tmodule.exports = function(KEY, exec){\n\t var fn = (core.Object || {})[KEY] || Object[KEY]\n\t , exp = {};\n\t exp[KEY] = exec(fn);\n\t $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);\n\t};\n\n/***/ },\n/* 86 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// Works with __proto__ only. Old v8 can't work with null proto objects.\n\t/* eslint-disable no-proto */\n\tvar getDesc = __webpack_require__(1).getDesc\n\t , isObject = __webpack_require__(17)\n\t , anObject = __webpack_require__(6);\n\tvar check = function(O, proto){\n\t anObject(O);\n\t if(!isObject(proto) && proto !== null)throw TypeError(proto + \": can't set as prototype!\");\n\t};\n\tmodule.exports = {\n\t set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n\t function(test, buggy, set){\n\t try {\n\t set = __webpack_require__(14)(Function.call, getDesc(Object.prototype, '__proto__').set, 2);\n\t set(test, []);\n\t buggy = !(test instanceof Array);\n\t } catch(e){ buggy = true; }\n\t return function setPrototypeOf(O, proto){\n\t check(O, proto);\n\t if(buggy)O.__proto__ = proto;\n\t else set(O, proto);\n\t return O;\n\t };\n\t }({}, false) : undefined),\n\t check: check\n\t};\n\n/***/ },\n/* 87 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar core = __webpack_require__(2)\n\t , $ = __webpack_require__(1)\n\t , DESCRIPTORS = __webpack_require__(7)\n\t , SPECIES = __webpack_require__(3)('species');\n\t\n\tmodule.exports = function(KEY){\n\t var C = core[KEY];\n\t if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {\n\t configurable: true,\n\t get: function(){ return this; }\n\t });\n\t};\n\n/***/ },\n/* 88 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar toInteger = __webpack_require__(46)\n\t , defined = __webpack_require__(15);\n\t// true -> String#at\n\t// false -> String#codePointAt\n\tmodule.exports = function(TO_STRING){\n\t return function(that, pos){\n\t var s = String(defined(that))\n\t , i = toInteger(pos)\n\t , l = s.length\n\t , a, b;\n\t if(i < 0 || i >= l)return TO_STRING ? '' : undefined;\n\t a = s.charCodeAt(i);\n\t return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n\t ? TO_STRING ? s.charAt(i) : a\n\t : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n\t };\n\t};\n\n/***/ },\n/* 89 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.1.15 ToLength\n\tvar toInteger = __webpack_require__(46)\n\t , min = Math.min;\n\tmodule.exports = function(it){\n\t return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n\t};\n\n/***/ },\n/* 90 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar anObject = __webpack_require__(6)\n\t , get = __webpack_require__(48);\n\tmodule.exports = __webpack_require__(2).getIterator = function(it){\n\t var iterFn = get(it);\n\t if(typeof iterFn != 'function')throw TypeError(it + ' is not iterable!');\n\t return anObject(iterFn.call(it));\n\t};\n\n/***/ },\n/* 91 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar classof = __webpack_require__(26)\n\t , ITERATOR = __webpack_require__(3)('iterator')\n\t , Iterators = __webpack_require__(5);\n\tmodule.exports = __webpack_require__(2).isIterable = function(it){\n\t var O = Object(it);\n\t return O[ITERATOR] !== undefined\n\t || '@@iterator' in O\n\t || Iterators.hasOwnProperty(classof(O));\n\t};\n\n/***/ },\n/* 92 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar addToUnscopables = __webpack_require__(73)\n\t , step = __webpack_require__(41)\n\t , Iterators = __webpack_require__(5)\n\t , toIObject = __webpack_require__(19);\n\t\n\t// 22.1.3.4 Array.prototype.entries()\n\t// 22.1.3.13 Array.prototype.keys()\n\t// 22.1.3.29 Array.prototype.values()\n\t// 22.1.3.30 Array.prototype[@@iterator]()\n\tmodule.exports = __webpack_require__(29)(Array, 'Array', function(iterated, kind){\n\t this._t = toIObject(iterated); // target\n\t this._i = 0; // next index\n\t this._k = kind; // kind\n\t// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n\t}, function(){\n\t var O = this._t\n\t , kind = this._k\n\t , index = this._i++;\n\t if(!O || index >= O.length){\n\t this._t = undefined;\n\t return step(1);\n\t }\n\t if(kind == 'keys' )return step(0, index);\n\t if(kind == 'values')return step(0, O[index]);\n\t return step(0, [index, O[index]]);\n\t}, 'values');\n\t\n\t// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\n\tIterators.Arguments = Iterators.Array;\n\t\n\taddToUnscopables('keys');\n\taddToUnscopables('values');\n\taddToUnscopables('entries');\n\n/***/ },\n/* 93 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.3.1 Object.assign(target, source)\n\tvar $export = __webpack_require__(4);\n\t\n\t$export($export.S + $export.F, 'Object', {assign: __webpack_require__(84)});\n\n/***/ },\n/* 94 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.2.9 Object.getPrototypeOf(O)\n\tvar toObject = __webpack_require__(47);\n\t\n\t__webpack_require__(85)('getPrototypeOf', function($getPrototypeOf){\n\t return function getPrototypeOf(it){\n\t return $getPrototypeOf(toObject(it));\n\t };\n\t});\n\n/***/ },\n/* 95 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.3.19 Object.setPrototypeOf(O, proto)\n\tvar $export = __webpack_require__(4);\n\t$export($export.S, 'Object', {setPrototypeOf: __webpack_require__(86).set});\n\n/***/ },\n/* 96 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar strong = __webpack_require__(74);\n\t\n\t// 23.2 Set Objects\n\t__webpack_require__(76)('Set', function(get){\n\t return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n\t}, {\n\t // 23.2.3.1 Set.prototype.add(value)\n\t add: function add(value){\n\t return strong.def(this, value = value === 0 ? 0 : value, value);\n\t }\n\t}, strong);\n\n/***/ },\n/* 97 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t// ECMAScript 6 symbols shim\n\tvar $ = __webpack_require__(1)\n\t , global = __webpack_require__(9)\n\t , has = __webpack_require__(16)\n\t , DESCRIPTORS = __webpack_require__(7)\n\t , $export = __webpack_require__(4)\n\t , redefine = __webpack_require__(31)\n\t , $fails = __webpack_require__(8)\n\t , shared = __webpack_require__(44)\n\t , setToStringTag = __webpack_require__(18)\n\t , uid = __webpack_require__(32)\n\t , wks = __webpack_require__(3)\n\t , keyOf = __webpack_require__(83)\n\t , $names = __webpack_require__(78)\n\t , enumKeys = __webpack_require__(77)\n\t , isArray = __webpack_require__(80)\n\t , anObject = __webpack_require__(6)\n\t , toIObject = __webpack_require__(19)\n\t , createDesc = __webpack_require__(30)\n\t , getDesc = $.getDesc\n\t , setDesc = $.setDesc\n\t , _create = $.create\n\t , getNames = $names.get\n\t , $Symbol = global.Symbol\n\t , $JSON = global.JSON\n\t , _stringify = $JSON && $JSON.stringify\n\t , setter = false\n\t , HIDDEN = wks('_hidden')\n\t , isEnum = $.isEnum\n\t , SymbolRegistry = shared('symbol-registry')\n\t , AllSymbols = shared('symbols')\n\t , useNative = typeof $Symbol == 'function'\n\t , ObjectProto = Object.prototype;\n\t\n\t// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\n\tvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n\t return _create(setDesc({}, 'a', {\n\t get: function(){ return setDesc(this, 'a', {value: 7}).a; }\n\t })).a != 7;\n\t}) ? function(it, key, D){\n\t var protoDesc = getDesc(ObjectProto, key);\n\t if(protoDesc)delete ObjectProto[key];\n\t setDesc(it, key, D);\n\t if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);\n\t} : setDesc;\n\t\n\tvar wrap = function(tag){\n\t var sym = AllSymbols[tag] = _create($Symbol.prototype);\n\t sym._k = tag;\n\t DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {\n\t configurable: true,\n\t set: function(value){\n\t if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n\t setSymbolDesc(this, tag, createDesc(1, value));\n\t }\n\t });\n\t return sym;\n\t};\n\t\n\tvar isSymbol = function(it){\n\t return typeof it == 'symbol';\n\t};\n\t\n\tvar $defineProperty = function defineProperty(it, key, D){\n\t if(D && has(AllSymbols, key)){\n\t if(!D.enumerable){\n\t if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));\n\t it[HIDDEN][key] = true;\n\t } else {\n\t if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n\t D = _create(D, {enumerable: createDesc(0, false)});\n\t } return setSymbolDesc(it, key, D);\n\t } return setDesc(it, key, D);\n\t};\n\tvar $defineProperties = function defineProperties(it, P){\n\t anObject(it);\n\t var keys = enumKeys(P = toIObject(P))\n\t , i = 0\n\t , l = keys.length\n\t , key;\n\t while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n\t return it;\n\t};\n\tvar $create = function create(it, P){\n\t return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n\t};\n\tvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n\t var E = isEnum.call(this, key);\n\t return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]\n\t ? E : true;\n\t};\n\tvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n\t var D = getDesc(it = toIObject(it), key);\n\t if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n\t return D;\n\t};\n\tvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n\t var names = getNames(toIObject(it))\n\t , result = []\n\t , i = 0\n\t , key;\n\t while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);\n\t return result;\n\t};\n\tvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n\t var names = getNames(toIObject(it))\n\t , result = []\n\t , i = 0\n\t , key;\n\t while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);\n\t return result;\n\t};\n\tvar $stringify = function stringify(it){\n\t if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n\t var args = [it]\n\t , i = 1\n\t , $$ = arguments\n\t , replacer, $replacer;\n\t while($$.length > i)args.push($$[i++]);\n\t replacer = args[1];\n\t if(typeof replacer == 'function')$replacer = replacer;\n\t if($replacer || !isArray(replacer))replacer = function(key, value){\n\t if($replacer)value = $replacer.call(this, key, value);\n\t if(!isSymbol(value))return value;\n\t };\n\t args[1] = replacer;\n\t return _stringify.apply($JSON, args);\n\t};\n\tvar buggyJSON = $fails(function(){\n\t var S = $Symbol();\n\t // MS Edge converts symbol values to JSON as {}\n\t // WebKit converts symbol values to JSON as null\n\t // V8 throws on boxed symbols\n\t return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n\t});\n\t\n\t// 19.4.1.1 Symbol([description])\n\tif(!useNative){\n\t $Symbol = function Symbol(){\n\t if(isSymbol(this))throw TypeError('Symbol is not a constructor');\n\t return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));\n\t };\n\t redefine($Symbol.prototype, 'toString', function toString(){\n\t return this._k;\n\t });\n\t\n\t isSymbol = function(it){\n\t return it instanceof $Symbol;\n\t };\n\t\n\t $.create = $create;\n\t $.isEnum = $propertyIsEnumerable;\n\t $.getDesc = $getOwnPropertyDescriptor;\n\t $.setDesc = $defineProperty;\n\t $.setDescs = $defineProperties;\n\t $.getNames = $names.get = $getOwnPropertyNames;\n\t $.getSymbols = $getOwnPropertySymbols;\n\t\n\t if(DESCRIPTORS && !__webpack_require__(42)){\n\t redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n\t }\n\t}\n\t\n\tvar symbolStatics = {\n\t // 19.4.2.1 Symbol.for(key)\n\t 'for': function(key){\n\t return has(SymbolRegistry, key += '')\n\t ? SymbolRegistry[key]\n\t : SymbolRegistry[key] = $Symbol(key);\n\t },\n\t // 19.4.2.5 Symbol.keyFor(sym)\n\t keyFor: function keyFor(key){\n\t return keyOf(SymbolRegistry, key);\n\t },\n\t useSetter: function(){ setter = true; },\n\t useSimple: function(){ setter = false; }\n\t};\n\t// 19.4.2.2 Symbol.hasInstance\n\t// 19.4.2.3 Symbol.isConcatSpreadable\n\t// 19.4.2.4 Symbol.iterator\n\t// 19.4.2.6 Symbol.match\n\t// 19.4.2.8 Symbol.replace\n\t// 19.4.2.9 Symbol.search\n\t// 19.4.2.10 Symbol.species\n\t// 19.4.2.11 Symbol.split\n\t// 19.4.2.12 Symbol.toPrimitive\n\t// 19.4.2.13 Symbol.toStringTag\n\t// 19.4.2.14 Symbol.unscopables\n\t$.each.call((\n\t 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +\n\t 'species,split,toPrimitive,toStringTag,unscopables'\n\t).split(','), function(it){\n\t var sym = wks(it);\n\t symbolStatics[it] = useNative ? sym : wrap(sym);\n\t});\n\t\n\tsetter = true;\n\t\n\t$export($export.G + $export.W, {Symbol: $Symbol});\n\t\n\t$export($export.S, 'Symbol', symbolStatics);\n\t\n\t$export($export.S + $export.F * !useNative, 'Object', {\n\t // 19.1.2.2 Object.create(O [, Properties])\n\t create: $create,\n\t // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n\t defineProperty: $defineProperty,\n\t // 19.1.2.3 Object.defineProperties(O, Properties)\n\t defineProperties: $defineProperties,\n\t // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n\t getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n\t // 19.1.2.7 Object.getOwnPropertyNames(O)\n\t getOwnPropertyNames: $getOwnPropertyNames,\n\t // 19.1.2.8 Object.getOwnPropertySymbols(O)\n\t getOwnPropertySymbols: $getOwnPropertySymbols\n\t});\n\t\n\t// 24.3.2 JSON.stringify(value [, replacer [, space]])\n\t$JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});\n\t\n\t// 19.4.3.5 Symbol.prototype[@@toStringTag]\n\tsetToStringTag($Symbol, 'Symbol');\n\t// 20.2.1.9 Math[@@toStringTag]\n\tsetToStringTag(Math, 'Math', true);\n\t// 24.3.3 JSON[@@toStringTag]\n\tsetToStringTag(global.JSON, 'JSON', true);\n\n/***/ },\n/* 98 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// https://github.com/DavidBruant/Map-Set.prototype.toJSON\n\tvar $export = __webpack_require__(4);\n\t\n\t$export($export.P, 'Set', {toJSON: __webpack_require__(75)('Set')});\n\n/***/ },\n/* 99 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_RESULT__;/*!\n\t * EventEmitter v4.2.11 - git.io/ee\n\t * Unlicense - http://unlicense.org/\n\t * Oliver Caldwell - http://oli.me.uk/\n\t * @preserve\n\t */\n\t\n\t;(function () {\n\t 'use strict';\n\t\n\t /**\n\t * Class for managing events.\n\t * Can be extended to provide event functionality in other classes.\n\t *\n\t * @class EventEmitter Manages event registering and emitting.\n\t */\n\t function EventEmitter() {}\n\t\n\t // Shortcuts to improve speed and size\n\t var proto = EventEmitter.prototype;\n\t var exports = this;\n\t var originalGlobalValue = exports.EventEmitter;\n\t\n\t /**\n\t * Finds the index of the listener for the event in its storage array.\n\t *\n\t * @param {Function[]} listeners Array of listeners to search through.\n\t * @param {Function} listener Method to look for.\n\t * @return {Number} Index of the specified listener, -1 if not found\n\t * @api private\n\t */\n\t function indexOfListener(listeners, listener) {\n\t var i = listeners.length;\n\t while (i--) {\n\t if (listeners[i].listener === listener) {\n\t return i;\n\t }\n\t }\n\t\n\t return -1;\n\t }\n\t\n\t /**\n\t * Alias a method while keeping the context correct, to allow for overwriting of target method.\n\t *\n\t * @param {String} name The name of the target method.\n\t * @return {Function} The aliased method\n\t * @api private\n\t */\n\t function alias(name) {\n\t return function aliasClosure() {\n\t return this[name].apply(this, arguments);\n\t };\n\t }\n\t\n\t /**\n\t * Returns the listener array for the specified event.\n\t * Will initialise the event object and listener arrays if required.\n\t * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.\n\t * Each property in the object response is an array of listener functions.\n\t *\n\t * @param {String|RegExp} evt Name of the event to return the listeners from.\n\t * @return {Function[]|Object} All listener functions for the event.\n\t */\n\t proto.getListeners = function getListeners(evt) {\n\t var events = this._getEvents();\n\t var response;\n\t var key;\n\t\n\t // Return a concatenated array of all matching events if\n\t // the selector is a regular expression.\n\t if (evt instanceof RegExp) {\n\t response = {};\n\t for (key in events) {\n\t if (events.hasOwnProperty(key) && evt.test(key)) {\n\t response[key] = events[key];\n\t }\n\t }\n\t }\n\t else {\n\t response = events[evt] || (events[evt] = []);\n\t }\n\t\n\t return response;\n\t };\n\t\n\t /**\n\t * Takes a list of listener objects and flattens it into a list of listener functions.\n\t *\n\t * @param {Object[]} listeners Raw listener objects.\n\t * @return {Function[]} Just the listener functions.\n\t */\n\t proto.flattenListeners = function flattenListeners(listeners) {\n\t var flatListeners = [];\n\t var i;\n\t\n\t for (i = 0; i < listeners.length; i += 1) {\n\t flatListeners.push(listeners[i].listener);\n\t }\n\t\n\t return flatListeners;\n\t };\n\t\n\t /**\n\t * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.\n\t *\n\t * @param {String|RegExp} evt Name of the event to return the listeners from.\n\t * @return {Object} All listener functions for an event in an object.\n\t */\n\t proto.getListenersAsObject = function getListenersAsObject(evt) {\n\t var listeners = this.getListeners(evt);\n\t var response;\n\t\n\t if (listeners instanceof Array) {\n\t response = {};\n\t response[evt] = listeners;\n\t }\n\t\n\t return response || listeners;\n\t };\n\t\n\t /**\n\t * Adds a listener function to the specified event.\n\t * The listener will not be added if it is a duplicate.\n\t * If the listener returns true then it will be removed after it is called.\n\t * If you pass a regular expression as the event name then the listener will be added to all events that match it.\n\t *\n\t * @param {String|RegExp} evt Name of the event to attach the listener to.\n\t * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.addListener = function addListener(evt, listener) {\n\t var listeners = this.getListenersAsObject(evt);\n\t var listenerIsWrapped = typeof listener === 'object';\n\t var key;\n\t\n\t for (key in listeners) {\n\t if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {\n\t listeners[key].push(listenerIsWrapped ? listener : {\n\t listener: listener,\n\t once: false\n\t });\n\t }\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Alias of addListener\n\t */\n\t proto.on = alias('addListener');\n\t\n\t /**\n\t * Semi-alias of addListener. It will add a listener that will be\n\t * automatically removed after its first execution.\n\t *\n\t * @param {String|RegExp} evt Name of the event to attach the listener to.\n\t * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.addOnceListener = function addOnceListener(evt, listener) {\n\t return this.addListener(evt, {\n\t listener: listener,\n\t once: true\n\t });\n\t };\n\t\n\t /**\n\t * Alias of addOnceListener.\n\t */\n\t proto.once = alias('addOnceListener');\n\t\n\t /**\n\t * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.\n\t * You need to tell it what event names should be matched by a regex.\n\t *\n\t * @param {String} evt Name of the event to create.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.defineEvent = function defineEvent(evt) {\n\t this.getListeners(evt);\n\t return this;\n\t };\n\t\n\t /**\n\t * Uses defineEvent to define multiple events.\n\t *\n\t * @param {String[]} evts An array of event names to define.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.defineEvents = function defineEvents(evts) {\n\t for (var i = 0; i < evts.length; i += 1) {\n\t this.defineEvent(evts[i]);\n\t }\n\t return this;\n\t };\n\t\n\t /**\n\t * Removes a listener function from the specified event.\n\t * When passed a regular expression as the event name, it will remove the listener from all events that match it.\n\t *\n\t * @param {String|RegExp} evt Name of the event to remove the listener from.\n\t * @param {Function} listener Method to remove from the event.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.removeListener = function removeListener(evt, listener) {\n\t var listeners = this.getListenersAsObject(evt);\n\t var index;\n\t var key;\n\t\n\t for (key in listeners) {\n\t if (listeners.hasOwnProperty(key)) {\n\t index = indexOfListener(listeners[key], listener);\n\t\n\t if (index !== -1) {\n\t listeners[key].splice(index, 1);\n\t }\n\t }\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Alias of removeListener\n\t */\n\t proto.off = alias('removeListener');\n\t\n\t /**\n\t * Adds listeners in bulk using the manipulateListeners method.\n\t * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.\n\t * You can also pass it a regular expression to add the array of listeners to all events that match it.\n\t * Yeah, this function does quite a bit. That's probably a bad thing.\n\t *\n\t * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.\n\t * @param {Function[]} [listeners] An optional array of listener functions to add.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.addListeners = function addListeners(evt, listeners) {\n\t // Pass through to manipulateListeners\n\t return this.manipulateListeners(false, evt, listeners);\n\t };\n\t\n\t /**\n\t * Removes listeners in bulk using the manipulateListeners method.\n\t * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n\t * You can also pass it an event name and an array of listeners to be removed.\n\t * You can also pass it a regular expression to remove the listeners from all events that match it.\n\t *\n\t * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.\n\t * @param {Function[]} [listeners] An optional array of listener functions to remove.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.removeListeners = function removeListeners(evt, listeners) {\n\t // Pass through to manipulateListeners\n\t return this.manipulateListeners(true, evt, listeners);\n\t };\n\t\n\t /**\n\t * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.\n\t * The first argument will determine if the listeners are removed (true) or added (false).\n\t * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n\t * You can also pass it an event name and an array of listeners to be added/removed.\n\t * You can also pass it a regular expression to manipulate the listeners of all events that match it.\n\t *\n\t * @param {Boolean} remove True if you want to remove listeners, false if you want to add.\n\t * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.\n\t * @param {Function[]} [listeners] An optional array of listener functions to add/remove.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {\n\t var i;\n\t var value;\n\t var single = remove ? this.removeListener : this.addListener;\n\t var multiple = remove ? this.removeListeners : this.addListeners;\n\t\n\t // If evt is an object then pass each of its properties to this method\n\t if (typeof evt === 'object' && !(evt instanceof RegExp)) {\n\t for (i in evt) {\n\t if (evt.hasOwnProperty(i) && (value = evt[i])) {\n\t // Pass the single listener straight through to the singular method\n\t if (typeof value === 'function') {\n\t single.call(this, i, value);\n\t }\n\t else {\n\t // Otherwise pass back to the multiple function\n\t multiple.call(this, i, value);\n\t }\n\t }\n\t }\n\t }\n\t else {\n\t // So evt must be a string\n\t // And listeners must be an array of listeners\n\t // Loop over it and pass each one to the multiple method\n\t i = listeners.length;\n\t while (i--) {\n\t single.call(this, evt, listeners[i]);\n\t }\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Removes all listeners from a specified event.\n\t * If you do not specify an event then all listeners will be removed.\n\t * That means every event will be emptied.\n\t * You can also pass a regex to remove all events that match it.\n\t *\n\t * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.removeEvent = function removeEvent(evt) {\n\t var type = typeof evt;\n\t var events = this._getEvents();\n\t var key;\n\t\n\t // Remove different things depending on the state of evt\n\t if (type === 'string') {\n\t // Remove all listeners for the specified event\n\t delete events[evt];\n\t }\n\t else if (evt instanceof RegExp) {\n\t // Remove all events matching the regex.\n\t for (key in events) {\n\t if (events.hasOwnProperty(key) && evt.test(key)) {\n\t delete events[key];\n\t }\n\t }\n\t }\n\t else {\n\t // Remove all listeners in all events\n\t delete this._events;\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Alias of removeEvent.\n\t *\n\t * Added to mirror the node API.\n\t */\n\t proto.removeAllListeners = alias('removeEvent');\n\t\n\t /**\n\t * Emits an event of your choice.\n\t * When emitted, every listener attached to that event will be executed.\n\t * If you pass the optional argument array then those arguments will be passed to every listener upon execution.\n\t * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.\n\t * So they will not arrive within the array on the other side, they will be separate.\n\t * You can also pass a regular expression to emit to all events that match it.\n\t *\n\t * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n\t * @param {Array} [args] Optional array of arguments to be passed to each listener.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.emitEvent = function emitEvent(evt, args) {\n\t var listenersMap = this.getListenersAsObject(evt);\n\t var listeners;\n\t var listener;\n\t var i;\n\t var key;\n\t var response;\n\t\n\t for (key in listenersMap) {\n\t if (listenersMap.hasOwnProperty(key)) {\n\t listeners = listenersMap[key].slice(0);\n\t i = listeners.length;\n\t\n\t while (i--) {\n\t // If the listener returns true then it shall be removed from the event\n\t // The function is executed either with a basic call or an apply if there is an args array\n\t listener = listeners[i];\n\t\n\t if (listener.once === true) {\n\t this.removeListener(evt, listener.listener);\n\t }\n\t\n\t response = listener.listener.apply(this, args || []);\n\t\n\t if (response === this._getOnceReturnValue()) {\n\t this.removeListener(evt, listener.listener);\n\t }\n\t }\n\t }\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Alias of emitEvent\n\t */\n\t proto.trigger = alias('emitEvent');\n\t\n\t /**\n\t * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.\n\t * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.\n\t *\n\t * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n\t * @param {...*} Optional additional arguments to be passed to each listener.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.emit = function emit(evt) {\n\t var args = Array.prototype.slice.call(arguments, 1);\n\t return this.emitEvent(evt, args);\n\t };\n\t\n\t /**\n\t * Sets the current value to check against when executing listeners. If a\n\t * listeners return value matches the one set here then it will be removed\n\t * after execution. This value defaults to true.\n\t *\n\t * @param {*} value The new value to check for when executing listeners.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.setOnceReturnValue = function setOnceReturnValue(value) {\n\t this._onceReturnValue = value;\n\t return this;\n\t };\n\t\n\t /**\n\t * Fetches the current value to check against when executing listeners. If\n\t * the listeners return value matches this one then it should be removed\n\t * automatically. It will return true by default.\n\t *\n\t * @return {*|Boolean} The current value to check for or the default, true.\n\t * @api private\n\t */\n\t proto._getOnceReturnValue = function _getOnceReturnValue() {\n\t if (this.hasOwnProperty('_onceReturnValue')) {\n\t return this._onceReturnValue;\n\t }\n\t else {\n\t return true;\n\t }\n\t };\n\t\n\t /**\n\t * Fetches the events object and creates one if required.\n\t *\n\t * @return {Object} The events storage object.\n\t * @api private\n\t */\n\t proto._getEvents = function _getEvents() {\n\t return this._events || (this._events = {});\n\t };\n\t\n\t /**\n\t * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.\n\t *\n\t * @return {Function} Non conflicting EventEmitter class.\n\t */\n\t EventEmitter.noConflict = function noConflict() {\n\t exports.EventEmitter = originalGlobalValue;\n\t return EventEmitter;\n\t };\n\t\n\t // Expose the class either via AMD, CommonJS or the global object\n\t if (true) {\n\t !(__WEBPACK_AMD_DEFINE_RESULT__ = function () {\n\t return EventEmitter;\n\t }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t }\n\t else if (typeof module === 'object' && module.exports){\n\t module.exports = EventEmitter;\n\t }\n\t else {\n\t exports.EventEmitter = EventEmitter;\n\t }\n\t}.call(this));\n\n\n/***/ }\n/******/ ])\n});\n;\n\n\n/** WEBPACK FOOTER **\n ** js/marklib.min.js\n **/"," \t// The module cache\n \tvar installedModules = {};\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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"../\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 15f3bfefb7f0b8c9df4c\n **/","var $Object = Object;\nmodule.exports = {\n create: $Object.create,\n getProto: $Object.getPrototypeOf,\n isEnum: {}.propertyIsEnumerable,\n getDesc: $Object.getOwnPropertyDescriptor,\n setDesc: $Object.defineProperty,\n setDescs: $Object.defineProperties,\n getKeys: $Object.keys,\n getNames: $Object.getOwnPropertyNames,\n getSymbols: $Object.getOwnPropertySymbols,\n each: [].forEach\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.js\n ** module id = 1\n ** module chunks = 0 1\n **/","var core = module.exports = {version: '1.2.6'};\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.core.js\n ** module id = 2\n ** module chunks = 0 1\n **/","var store = require('./$.shared')('wks')\n , uid = require('./$.uid')\n , Symbol = require('./$.global').Symbol;\nmodule.exports = function(name){\n return store[name] || (store[name] =\n Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.wks.js\n ** module id = 3\n ** module chunks = 0 1\n **/","var global = require('./$.global')\n , core = require('./$.core')\n , ctx = require('./$.ctx')\n , PROTOTYPE = 'prototype';\n\nvar $export = function(type, name, source){\n var IS_FORCED = type & $export.F\n , IS_GLOBAL = type & $export.G\n , IS_STATIC = type & $export.S\n , IS_PROTO = type & $export.P\n , IS_BIND = type & $export.B\n , IS_WRAP = type & $export.W\n , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n , key, own, out;\n if(IS_GLOBAL)source = name;\n for(key in source){\n // contains in native\n own = !IS_FORCED && target && key in target;\n if(own && key in exports)continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function(C){\n var F = function(param){\n return this instanceof C ? new C(param) : C(param);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\nmodule.exports = $export;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.export.js\n ** module id = 4\n ** module chunks = 0 1\n **/","module.exports = {};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iterators.js\n ** module id = 5\n ** module chunks = 0 1\n **/","var isObject = require('./$.is-object');\nmodule.exports = function(it){\n if(!isObject(it))throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.an-object.js\n ** module id = 6\n ** module chunks = 0 1\n **/","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./$.fails')(function(){\n return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.descriptors.js\n ** module id = 7\n ** module chunks = 0 1\n **/","module.exports = function(exec){\n try {\n return !!exec();\n } catch(e){\n return true;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.fails.js\n ** module id = 8\n ** module chunks = 0 1\n **/","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\nif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.global.js\n ** module id = 9\n ** module chunks = 0 1\n **/","var $ = require('./$')\n , createDesc = require('./$.property-desc');\nmodule.exports = require('./$.descriptors') ? function(object, key, value){\n return $.setDesc(object, key, createDesc(1, value));\n} : function(object, key, value){\n object[key] = value;\n return object;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.hide.js\n ** module id = 10\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/classCallCheck.js\n ** module id = 12\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\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 (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/createClass.js\n ** module id = 13\n ** module chunks = 0 1\n **/","// optional / simple context binding\nvar aFunction = require('./$.a-function');\nmodule.exports = function(fn, that, length){\n aFunction(fn);\n if(that === undefined)return fn;\n switch(length){\n case 1: return function(a){\n return fn.call(that, a);\n };\n case 2: return function(a, b){\n return fn.call(that, a, b);\n };\n case 3: return function(a, b, c){\n return fn.call(that, a, b, c);\n };\n }\n return function(/* ...args */){\n return fn.apply(that, arguments);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.ctx.js\n ** module id = 14\n ** module chunks = 0 1\n **/","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function(it){\n if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.defined.js\n ** module id = 15\n ** module chunks = 0 1\n **/","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function(it, key){\n return hasOwnProperty.call(it, key);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.has.js\n ** module id = 16\n ** module chunks = 0 1\n **/","module.exports = function(it){\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-object.js\n ** module id = 17\n ** module chunks = 0 1\n **/","var def = require('./$').setDesc\n , has = require('./$.has')\n , TAG = require('./$.wks')('toStringTag');\n\nmodule.exports = function(it, tag, stat){\n if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-to-string-tag.js\n ** module id = 18\n ** module chunks = 0 1\n **/","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./$.iobject')\n , defined = require('./$.defined');\nmodule.exports = function(it){\n return IObject(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-iobject.js\n ** module id = 19\n ** module chunks = 0 1\n **/","'use strict';\nvar $at = require('./$.string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./$.iter-define')(String, 'String', function(iterated){\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , index = this._i\n , point;\n if(index >= O.length)return {value: undefined, done: true};\n point = $at(O, index);\n this._i += point.length;\n return {value: point, done: false};\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.string.iterator.js\n ** module id = 20\n ** module chunks = 0 1\n **/","require('./es6.array.iterator');\nvar Iterators = require('./$.iterators');\nIterators.NodeList = Iterators.HTMLCollection = Iterators.Array;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/web.dom.iterable.js\n ** module id = 21\n ** module chunks = 0 1\n **/","/* global Node */\n\nimport RenderResult from './RenderResult';\nimport RenderingEvents from './RenderingEvents';\nimport Util, { ATTR_DATA_ORIGINAL_INDEX, DATA_IS_SELECTION } from './util/Util';\n\n/**\n * @type {string}\n */\nconst TAG_NAME = 'x-marker';\n/**\n * @type {string}\n */\nexport const ATTR_DATA_ORIGINAL_OFFSET_START = 'data-original-offset-start';\n/**\n * @type {string}\n */\nconst DATA_ORIGINAL_TEXT_NODE_INDEX = 'original-text-node-index';\n/**\n * @type {string}\n */\nconst ATTR_DATA_START_END = 'data-is-start-end';\n/**\n * @type {string}\n */\nconst ATTR_DATA_IS_HIGHLIGHT_NODE = 'data-is-highlight-node';\n/**\n * @type {string}\n */\nconst ATTR_DATA_ID = 'data-selection-id';\n\n/**\n * @see https://developer.mozilla.org/de/docs/Web/API/Node/compareDocumentPosition\n * @type {number}\n */\nconst DOCUMENT_POSITION_CONTAINED_BY = 16;\n\n\n/**\n * @type {string}\n */\nexport const EVENT_WRAPPED_NODE = 'wrapped-node';\n\n/**\n * Manages a single Render\n */\nclass Rendering extends RenderingEvents {\n\n /**\n * @param {Document} document\n * @param {object} options\n * @param {Node} context\n */\n constructor(document, options, context) {\n super(options, document);\n\n /**\n * ID of rendering, will be set on each element that is part of it\n * @type {String}\n */\n this.id = Util.guid();\n\n /**\n * StartContainer\n * @type {Node}\n */\n this.startContainer = null;\n\n /**\n * EndContainer\n * @type {Node}\n */\n this.endContainer = null;\n\n /**\n * @type {Node}\n */\n this.context = context || this.document;\n\n /**\n * Flag if this instance has been rendered\n * @type {RenderResult}\n * @private\n */\n this._renderResult = null;\n }\n\n /**\n * @returns {string} id of this rendering\n */\n getId() {\n return this.id;\n }\n\n /**\n * @param {string} id\n * @returns {Rendering}\n */\n setId(id) {\n this.id = id;\n\n if (this._renderResult) {\n this.wrapperNodes.forEach((node) => node.setAttribute(ATTR_DATA_ID, this.id));\n }\n\n return this;\n }\n\n /**\n * Creates a Template used as a wrapper and an indication that this is a highlight node\n * @param {Boolean} [omitHighlight]\n * @returns {Node}\n * @private\n */\n _createWrapTemplate(omitHighlight) {\n const el = this.document.createElement(TAG_NAME);\n const vTrue = \"true\";\n\n if (!omitHighlight) {\n el.className = this.options.className.join(' ');\n // save this marker instance to given node\n Rendering.setMarklibInstance(el, this);\n // keep track of highlight nodes\n this.wrapperNodes.push(el);\n el.setAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE, vTrue);\n el.setAttribute(ATTR_DATA_ID, this.getId());\n }\n el.setAttribute(DATA_IS_SELECTION, vTrue);\n\n return el;\n }\n\n /**\n * Creates a Template to use as start and end marks\n * @param {String} text\n * @returns {Node}\n * @private\n */\n _createStartEndWrapTemplate(text) {\n const el = this._createWrapTemplate();\n el.setAttribute(ATTR_DATA_START_END, 'true');\n el.textContent = text;\n return el;\n }\n\n\n /**\n * Creates Start or End Container Element\n * @param initialNode\n * @param text\n * @param offset\n * @param index\n * @returns {Node}\n */\n _createStartOrEndContainer(initialNode, text, offset, index) {\n const wrapper = this._createStartEndWrapTemplate(text);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(initialNode, index));\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n\n return wrapper;\n }\n\n /**\n * Wraps given element\n * @param {Node|HTMLElement} el\n * @param [optionalLength]\n * @param [optionalIndex]\n * @param [optionalIsSameNode]\n * @param {Boolean} [omitHighlight] set to true to prevent node to be a highlight node\n * @returns {Node}\n * @private\n */\n _createWrap(el, optionalLength, optionalIndex, optionalIsSameNode, omitHighlight) {\n const originalIndex = optionalIndex >= 0 ? optionalIndex : Util.calcIndex(el);\n const wrapper = this._createWrapTemplate(omitHighlight);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(el, originalIndex));\n const offsetLength = optionalLength >= 0 ? optionalLength : Util.getOffsetParentIfHas(el);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offsetLength);\n\n // Save a reference to original text node in wrapper\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, originalIndex);\n\n if (optionalIsSameNode) {\n wrapper.setAttribute(ATTR_DATA_START_END, ATTR_DATA_START_END);\n }\n const wrap = Util.wrap(el, wrapper);\n\n this.emit(EVENT_WRAPPED_NODE, el, wrap);\n\n return wrap;\n }\n\n /**\n * Create split container element\n * @param originalElement {Node} original text node element that is created a wrapper for\n * @param index\n * @param offset\n * @returns {Node}\n */\n _createSplitContainer(originalElement, index, offset) {\n const wrapper = this.document.createElement(TAG_NAME);\n wrapper.setAttribute(DATA_IS_SELECTION, 'true');\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(originalElement, index));\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n return wrapper;\n }\n\n /**\n * Walks the tree\n * @param start\n * @param endContainer\n * @param nextParent\n */\n walk(start, endContainer, nextParent) {\n let nextParentNode = start;\n while (nextParentNode && nextParentNode !== nextParent.parentNode) {\n const currentParentNode = nextParentNode;\n nextParentNode = nextParentNode.parentNode;\n if (this.wrapSiblings(currentParentNode.nextSibling, endContainer)) {\n break;\n }\n }\n }\n\n\n /**\n * Will Wrap all textNode siblings of a container (start) inside a defined Element (like a span)\n * If an Element node is found, it will wrap all children of this node inside a element as well.\n * It will stop if endContainer is found as a node\n *\n * @param {Node} start\n * @param {Node} endContainer\n * @returns {boolean} (true if endContainer was found)\n */\n wrapSiblings(start, endContainer) {\n let next = start;\n let found = false;\n\n // Capsule some logic\n const wrap = (n) => {\n const instance = Rendering.getMarklibInstance(n.parentNode);\n if (n.parentNode.hasAttribute(ATTR_DATA_START_END) &&\n n.parentNode.hasAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE) &&\n instance === this) {\n this._createWrap(n, undefined, undefined, undefined, true);\n } else {\n this._createWrap(n);\n }\n };\n\n // helper functions\n\n const wrapIf = (n) => {\n if (!Util.nodeIsEmpty(n)) {\n wrap(n);\n }\n };\n\n const walkIfContained = (e) => {\n if (e === endContainer) {\n return false;\n }\n if (Node.TEXT_NODE === e.nodeType) {\n wrapIf(e);\n }\n return true;\n };\n\n const walkIfNotContained = (el) => {\n wrapIf(el);\n };\n\n while (next !== null && next !== endContainer) {\n const currentNext = next;\n next = next.nextSibling;\n // Found a text node, directly wrap inside a span\n if (Node.TEXT_NODE === currentNext.nodeType) {\n wrapIf(currentNext);\n } else {\n if ((currentNext.compareDocumentPosition(endContainer) & DOCUMENT_POSITION_CONTAINED_BY)) {\n Util.walkDom(currentNext, walkIfContained);\n found = true;\n } else {\n Util.walkTextNodes(currentNext, walkIfNotContained);\n }\n if (found) {\n return true;\n }\n }\n }\n return found;\n }\n\n /**\n * Marks text of the same node\n * @param {Node} textNode\n * @param {int} startIndex\n * @param {int} endIndex\n * @private\n */\n _markTextSameNode(textNode, startIndex, endIndex) {\n const initialText = textNode.nodeValue;\n const initialIndex = Util.calcIndex(textNode);\n\n if (!initialText) {\n return false;\n }\n // If there is an unmarked part in the beginning of the text node,\n // cut off that part and put it into it's own textnode.\n if (startIndex > 0) {\n const textBefore = initialText.slice(0, startIndex);\n textNode.parentNode.insertBefore(this.document.createTextNode(textBefore), textNode);\n // wrap cutted text node:\n Util.wrap(textNode.previousSibling, this._createSplitContainer(textNode,\n initialIndex, Util.getOffsetParentIfHas(textNode)));\n }\n // If there is an unmarked part at the end of the text node,\n // cut off that part and put it into it's own textnode.\n if (endIndex < initialText.length) {\n const textAfter = initialText.slice(endIndex, initialText.length);\n textNode.parentNode.insertBefore(this.document.createTextNode(textAfter), textNode.nextSibling);\n Util.wrap(textNode.nextSibling, this._createSplitContainer(textNode,\n initialIndex, Util.getOffsetParentIfHas(textNode) + endIndex));\n }\n\n // Cutoff the unmarked parts and wrap the textnode into a span.\n textNode.nodeValue = initialText.slice(startIndex, endIndex);\n this.startContainer = this._createWrap(textNode,\n Util.getOffsetParentIfHas(textNode) + startIndex, initialIndex, true).parentNode;\n this.endContainer = this.startContainer;\n return this.startContainer;\n }\n\n\n /**\n * Marks text of end and start containers if start and end nodes are different\n * Important: There might be no end container!\n *\n * @param {Node} startContainer\n * @param {Node} endContainer\n * @param {int} startOffset\n * @param {int} endOffset\n * @returns {{startT: (Node), endT: (Node)}}\n * @private\n */\n _markTextDifferentNode(startContainer, endContainer, startOffset, endOffset) {\n // Get current for both start and end:\n const startContainerIndex = Util.calcIndex(startContainer);\n const endContainerIndex = Util.calcIndex(endContainer);\n\n // Split text\n const fullTextStartValue = startContainer.nodeValue;\n // init with startContainer because we may have not a text node here\n let startT = startContainer;\n\n if (undefined !== fullTextStartValue) {\n const partTextStartValue = fullTextStartValue.slice(startOffset, fullTextStartValue.length);\n // Set new text to start node\n startContainer.nodeValue = fullTextStartValue.slice(0, startOffset);\n\n const offsetStart = Util.getOffsetParentIfHas(startContainer);\n // Create a new node for splitted text, offset is the length of new startContainer.nodeValue:\n startT = this._createStartOrEndContainer(startContainer, partTextStartValue,\n offsetStart === startOffset ? offsetStart : offsetStart + startOffset, startContainerIndex);\n // Append this node after startContainer\n startContainer.parentNode.insertBefore(startT, startContainer.nextSibling);\n this.startContainer = startT;\n\n if (startContainer.nodeValue) {\n // Wrap start container in detection node, offset is always 0 or parent offset.\n Util.wrap(startContainer, this._createSplitContainer(startContainer, startContainerIndex,\n Util.getOffsetParentIfHas(startContainer)));\n }\n }\n\n // init with endContainer because we may have not a text node here\n let endT = endContainer;\n\n // 2. Extract end Text node,\n const fullTextEndValue = endContainer.nodeValue;\n // It's possible that end container value is null (if a whole paragraph is marked)\n if (undefined !== fullTextEndValue) {\n // Split text\n const partTextEndValue = fullTextEndValue.slice(0, endOffset);\n endContainer.nodeValue = fullTextEndValue.slice(endOffset, fullTextEndValue.length);\n // End Container start offset is always 0 or parent offset.\n endT = this._createStartOrEndContainer(endContainer, partTextEndValue,\n Util.getOffsetParentIfHas(endContainer), endContainerIndex);\n\n endContainer.parentNode.insertBefore(endT, endContainer);\n this.endContainer = endT;\n const offsetParent = Util.getOffsetParentIfHas(endContainer);\n Util.wrap(endContainer, this._createSplitContainer(endContainer, endContainerIndex,\n offsetParent === endOffset ? offsetParent : offsetParent + endOffset));\n }\n\n return {\n startT,\n endT\n };\n }\n\n /**\n * Renders a selection\n * @param {Node} startContainerP\n * @param {Node} endContainerP\n * @param {Node} commonAncestor\n * @param {int} startOffset\n * @param {int} endOffsetP\n * @returns RenderResult\n * @private\n */\n _renderWithElements(startContainerP, endContainerP, commonAncestor, startOffset, endOffsetP) {\n if (this._renderResult) {\n return this._renderResult;\n }\n let startContainer = startContainerP;\n let endContainer = endContainerP;\n let endOffset = endOffsetP;\n let outer = Util.parents(startContainer, commonAncestor);\n outer = outer[outer.length - 1];\n const contextContainer = outer ? outer : commonAncestor;\n\n // Same Element, means the selection is fully contained in a discrete area, start and endpoint have the same parent\n // but are different nodes:\n\n // Start and End offset have to be recalculated because dom might be already changed by highlighting in given node\n // 1: First detect real start offset in startContainer:\n\n // That works by selecting the highest wrapper and get original-offset-start data element, see \"findOriginalOffset\"\n // So first select that container:\n const originalStartOffset = Util.findOriginalOffset(startContainer);\n const originalEndOffset = Util.findOriginalOffset(endContainer);\n\n // We may run into Browser Bugs:\n\n // If both are not text nodes, use next sibling as endContainer\n if (startContainer.nodeType !== Node.TEXT_NODE && endContainer.nodeType !== Node.TEXT_NODE) {\n if (startContainer === endContainer) {\n endContainer = endContainer.nextElementSibling || endContainer;\n }\n }\n // IF start/end container is not type of text, select first child text node:\n // We run in some bugs with firefox here that selects no text-nodes sometimes, trying to fix this here\n // Sometimes does not work correctly... (specially when DOM was modified)\n if (startContainer.nodeType !== Node.TEXT_NODE) {\n Util.walkDom(startContainer, (el) => {\n if (el.nodeType === Node.TEXT_NODE) {\n startContainer = el;\n return false;\n }\n return true;\n });\n }\n\n if (endContainer.nodeType !== Node.TEXT_NODE) {\n let toFindNode = startContainer;\n\n if (endOffset === 0) {\n toFindNode = endContainer.previousElementSibling || startContainer;\n }\n\n // Get the last text node:\n const endContainerContents = Util.closest(toFindNode, ':not([' + DATA_IS_SELECTION + '])').childNodes;\n if (endContainerContents.length) {\n const r = endContainerContents[endContainerContents.length - 1];\n if (r.nodeType === Node.TEXT_NODE) {\n endContainer = r;\n endOffset = r.length;\n } else {\n let f = r.lastChild;\n while (f !== null) {\n if (f && f.nodeType === Node.TEXT_NODE) {\n endContainer = f;\n endOffset = f.length;\n if (f.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n endOffset = parseInt(f.parentNode\n .getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) + endOffset;\n }\n }\n f = f.lastChild;\n }\n }\n }\n // still no textNode?\n if (endContainer.nodeType !== Node.TEXT_NODE) {\n throw Error('Could not found endContainer, highlighting would be unstable');\n }\n }\n\n this._renderResult = new RenderResult(\n // Real offset is calculated by relative length and absolute length\n originalStartOffset + startOffset,\n originalEndOffset + endOffset,\n // get the path for this selection\n Util.getPath(startContainer, this.context),\n Util.getPath(endContainer, this.context)\n );\n\n this._renderResult.instance = this;\n\n\n this._renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, !!outer);\n\n return this._renderResult;\n }\n\n /**\n * Renders a given selection\n *\n * @param {Node} startContainer\n * @param {Node} endContainer\n * @param {int} startOffset\n * @param {int} endOffset\n * @param {Node} contextContainer\n * @param {Boolean} outer\n * @private\n */\n _renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, outer) {\n // if start and end-container are the same, mark text on the same node\n if (startContainer === endContainer) {\n this._markTextSameNode(startContainer, startOffset, endOffset);\n } else {\n const result = this._markTextDifferentNode(startContainer, endContainer, startOffset, endOffset);\n const index = this.wrapperNodes.indexOf(result.endT);\n // remove endContainer, to keep order:\n this.wrapperNodes.splice(index, 1);\n if (!outer) {\n this.wrapSiblings(result.startT.nextSibling, endContainer);\n } else {\n this.walk(result.startT, endContainer, contextContainer);\n }\n this.wrapperNodes.push(result.endT);\n }\n }\n\n /**\n * Prepares to render a Selection with path selectors\n * ```\n * A Path looks like this:\n *\n * #selector;#textnode;#offset\n * ``\n * @param {string} startPath\n * @param {string} endPath\n * @returns {string}\n */\n renderWithPath(startPath, endPath) {\n const startContainer = Util.deserializePath(startPath, this.context);\n const endContainer = Util.deserializePath(endPath, this.context);\n if (startContainer && endContainer && startContainer.node && endContainer.node) {\n const range = document.createRange();\n range.setStart(startContainer.node, startContainer.offset);\n range.setEnd(endContainer.node, endContainer.offset);\n const text = range.toString();\n const result = this.renderWithRange(range);\n result.text = text;\n return text;\n }\n throw new Error('Could not find start- and/or end-container in document');\n }\n\n /**\n * @returns {RenderResult}\n */\n get result() {\n return this._renderResult;\n }\n\n /**\n * Renders a result (that returned from `renderWithRange`)\n * @param {RenderResult|Object} result\n * @returns {string}\n */\n renderWithResult(result) {\n return this.renderWithPath(\n `${result.startContainerPath};${result.startOffset}`,\n `${result.endContainerPath};${result.endOffset}`);\n }\n\n /**\n * Prepares a selection with a range object\n * @param {Range} range\n * @returns {Object}\n */\n renderWithRange(range) {\n const text = range.toString();\n const result = this._renderWithElements(range.startContainer, range.endContainer,\n range.commonAncestorContainer, range.startOffset, range.endOffset);\n result.text = text;\n return result;\n }\n\n /**\n * Removes bindings and classNames to nodes\n */\n destroy() {\n this.wrapperNodes.forEach((node) => {\n delete node.marklibInstance;\n node.className = '';\n });\n this.removeEvent();\n }\n\n /**\n * @param {Node} el\n * @param {Rendering} instance\n * @returns {Node}\n */\n static setMarklibInstance(el, instance) {\n el.marklibInstance = instance;\n return el;\n }\n\n /**\n * @param {Node} el\n * @returns {Rendering|null|undefined}\n */\n static getMarklibInstance(el) {\n return el ? el.marklibInstance : null;\n }\n}\n\nexport default Rendering;\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/Rendering.js\n **/","/* global Node, NodeList, Element */\n\n/**\n * @type {string}\n */\nexport const ATTR_DATA_ORIGINAL_INDEX = 'data-original-index';\n/**\n * @type {string}\n */\nexport const DATA_IS_SELECTION = 'data-is-selection';\n/**\n * @type {string}\n */\nconst SERIALIZE_SEPARATOR = \";\";\n\nimport { ATTR_DATA_ORIGINAL_OFFSET_START } from '../Rendering';\n\n// polyfill for matchesSelector, IE 10/11 does not support Element.matches\nif (Element && !Element.prototype.matches) {\n const p = Element.prototype;\n p.matches = p.matchesSelector ||\n p.mozMatchesSelector || p.msMatchesSelector ||\n p.oMatchesSelector || p.webkitMatchesSelector;\n}\n\n/**\n * Utility class\n * Contains DOM/Node manipulation helpers\n */\nexport default\nclass Util {\n\n /**\n * Filter for a NodeList\n * @param {NodeList} nodes\n * @param {Function} func\n *\n * @returns {Array.}\n */\n static nodeListFilter(nodes, func) {\n return Array.prototype.filter.call(nodes || [], func);\n }\n\n\n /**\n * Generates a unique id\n *\n * @return {String}\n */\n static guid() {\n const s4 = () => {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n };\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n }\n\n /**\n * Checks if a given node is empty\n * @param {HTMLElement} node\n *\n * @returns {*}\n */\n static nodeIsEmpty(node) {\n return node.nodeValue.match(/^[\\s]*$/g);\n }\n\n\n /**\n * @param {HTMLElement} node\n * @param [optionalList]\n *\n * @return {int} the index of this node in context to it's siblings\n */\n static index(node, optionalList) {\n const children = optionalList || (node.nodeType === Node.TEXT_NODE ?\n node.parentNode.childNodes : node.parentNode.children);\n return Array.prototype.indexOf.call(children || [], node);\n }\n\n /**\n * Wraps given `elms` in given `wrapper`\n *\n * @param {HTMLElement|Array.|Node} elms\n * @param {HTMLElement|Node} wrapper\n *\n * @return {HTMLElement}\n */\n static wrap(elms, wrapper) {\n let thisElms = elms;\n\n if (!thisElms) {\n return wrapper;\n }\n // Convert `elms` to an array, if necessary.\n if (!(thisElms instanceof NodeList || thisElms instanceof Array)) {\n thisElms = [thisElms];\n }\n for (let i = thisElms.length - 1; i >= 0; i--) {\n const child = (i > 0) ? wrapper.cloneNode(true) : wrapper;\n const el = thisElms[i];\n // Cache the current parent and sibling.\n const parent = el.parentNode;\n const sibling = el.nextSibling;\n\n child.appendChild(el);\n if (sibling) {\n parent.insertBefore(child, sibling);\n } else {\n parent.appendChild(child);\n }\n }\n return wrapper;\n }\n\n /**\n * Will calculate an index depending on an already modified dom by marklib\n * @param {HTMLElement|Node} node\n *\n * @returns {int|boolean}\n */\n static calcIndex(node) {\n let calculatedIndex = 0;\n let foundWrapper = false;\n const nodes = node.parentNode.childNodes;\n const length = nodes.length;\n for (let thisIndex = 0; thisIndex < length; thisIndex++) {\n const el = nodes[thisIndex];\n if (el === node) {\n break;\n }\n // reset index when original index is found\n const maybeIndexOfOriginal = el.getAttribute ? el.getAttribute(ATTR_DATA_ORIGINAL_INDEX) : null;\n\n if (maybeIndexOfOriginal) {\n calculatedIndex = parseInt(maybeIndexOfOriginal, 10);\n foundWrapper = true;\n }\n calculatedIndex++;\n }\n return foundWrapper ? calculatedIndex : Util.index(node);\n }\n\n /**\n * @param {HTMLElement|Node} el\n * @param {String} [optionalSelector] will test given element against a selector\n * if matches, returns this element immediately\n *\n * @return {Array.} an array of all found parents of given element (and optional selector)\n */\n static parents(el, optionalSelector) {\n return Util.parentsCallback(el, (element) => {\n if (optionalSelector && ((element === optionalSelector) ||\n ((typeof optionalSelector === 'string') && element.matches &&\n element.matches(optionalSelector)))) {\n return true;\n } else if (!optionalSelector) {\n return true;\n }\n return false;\n });\n }\n\n /**\n * @param {HTMLElement|Node} el\n * @param {Function} callback\n * @return {Array.} an array of all found parents of given element (and optional selector)\n */\n static parentsCallback(el, callback) {\n let element = el;\n const foundElements = [];\n while (element.parentNode !== null) {\n element = element.parentNode;\n if (callback(element)) {\n foundElements.push(element);\n }\n }\n return foundElements;\n }\n\n /**\n * Finds a parent node (the closest) with a given selector\n * @param {Node} el\n * @param {String} selector\n *\n * @returns {Node|boolean}\n */\n static parent(el, selector) {\n let element = el;\n while (element.parentNode !== null) {\n element = element.parentNode;\n if (element.matches && element.matches(selector)) {\n return element;\n }\n }\n return false;\n }\n\n /**\n * Finds the closest element including itself matching a given selector\n * @param {Node} el\n * @param selector\n *\n * @returns {Node|boolean}\n */\n static closest(el, selector) {\n return Util.closestCallback(el, (element) => element.matches && element.matches(selector));\n }\n\n /**\n * Finds the closest element including itself matching a callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static closestCallback(el, callback) {\n let element = el;\n while (element !== null) {\n if (callback(element)) {\n return element;\n }\n element = element.parentNode;\n }\n return false;\n }\n\n /**\n * Finds the outermost fitting element that matches callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static outerMostCallback(el, callback) {\n let element = el;\n let lastValid = false;\n while (element !== null) {\n if (callback(element)) {\n lastValid = element;\n }\n element = element.parentNode;\n }\n return lastValid;\n }\n\n /**\n * @param {HTMLElement} n\n *\n * @return {boolean}\n */\n static isMarkNode(n) {\n return n instanceof HTMLElement && n.hasAttribute(DATA_IS_SELECTION);\n }\n\n /**\n * Determines the correct paths and excludes all `marklib` generated content\n * TODO: To improve performance we could shorten the path if an ID is present in it.\n * @param {HTMLElement|Node} el\n * @param {HTMLElement|Node} [context] if given extraction path is relative to this element\n * @returns {string}\n */\n static getPath(el, context) {\n let path = null;\n let node = el;\n\n const filterSiblings = (thisEl) => {\n return !Util.isMarkNode(thisEl) && thisEl.nodeName === node.nodeName;\n };\n\n while (node) {\n let name = null;\n // If node is a text-node, save index\n if (Node.TEXT_NODE === node.nodeType) {\n /* Because nodes may wrapped inside a highlighting node, we need to find the original index that was\n * valid before the dom changes. We store the last known index position inside all wrapper elements\n * We select the outermost\n */\n\n // Extract original index of this node:\n // Outer most data-original-index is original index\n const outerMostElement = Util.parents(node, '[' + ATTR_DATA_ORIGINAL_INDEX + ']').reverse()[0];\n // if element is not yet wrapped in span, recalculate index based on parent container:\n // We have to do this because text node indexes != element indexes...\n let calculatedIndex = 0;\n if (!outerMostElement) {\n calculatedIndex = Util.calcIndex(node);\n }\n const index = outerMostElement ? parseInt(\n outerMostElement.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10) : calculatedIndex;\n name = SERIALIZE_SEPARATOR + index;\n } else {\n name = node.nodeName;\n }\n\n if (!name) {\n break;\n }\n\n name = name.toLowerCase();\n\n const parent = node.parentNode;\n\n if (Util.isMarkNode(node)) {\n if (parent !== context) {\n node = parent;\n continue;\n } else {\n break;\n }\n }\n\n // Select only siblings that are not part of selection and are of the same type\n // (because we use nth-of-type selector later)\n const siblings = Util.nodeListFilter(parent.children, filterSiblings);\n const nodeIndex = Util.index(node, siblings);\n\n if (siblings.length > 1 && nodeIndex >= 0) {\n name += ':nth-of-type(' + (nodeIndex + 1) + ')';\n }\n\n path = name + (path ? '>' + path : '');\n\n\n if (parent === context) {\n break;\n }\n\n node = parent;\n }\n\n return path.replace(\"#document>\", \"\").replace('>;', ';');\n }\n\n /**\n * Will return the first original offset value that is found\n * @param {Node} element\n *\n * @returns {int}\n */\n static findOriginalOffset(element) {\n if (!element.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n return 0;\n }\n const lengthElement = Util.parent(element, '[' + ATTR_DATA_ORIGINAL_OFFSET_START + ']');\n return lengthElement ? parseInt(lengthElement.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) : 0;\n }\n\n\n /**\n * Deserialize a specific path and finds the right textNodes\n * This even works when DOM has been manipulated before by `marklib`\n * @param {string} path the serialized path (including offsets)\n * @param {Node|HTMLElement} context\n *\n * @return {Node}\n */\n static deserializePath(path, context) {\n const pSplit = path.split(';');\n const p = pSplit[0];\n const objectIndex = parseInt(pSplit[1], 10);\n const charOffset = parseInt(pSplit[2], 10);\n const container = !p.trim() ? context : context.querySelector(p);\n\n let maybeFoundNode = null;\n\n Util.walkTextNodes(container, (n) => {\n let atrOffsetStart = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START);\n atrOffsetStart = atrOffsetStart === null ? 0 : atrOffsetStart;\n let atrIndex = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_INDEX);\n atrIndex = atrIndex === null ? Util.calcIndex(n) : atrIndex;\n if (parseInt(atrIndex, 10) === objectIndex && charOffset >= atrOffsetStart &&\n ((parseInt(atrOffsetStart, 10) + n.length) >= charOffset)) {\n const thisOffset = n.parentNode\n .hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START) ? charOffset -\n parseInt(n.parentNode\n .getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) : charOffset;\n\n maybeFoundNode = {\n node: n,\n offset: thisOffset\n };\n\n return false;\n }\n return true;\n }, null);\n\n return maybeFoundNode;\n }\n\n\n /**\n * Walks the dom tree unless func returns false\n * Applies node to function\n *\n * @param {Node} node\n * @param {Function} func\n * @param {int} type, see `NodeFilter`\n * @param {Object} [filter] skips empty text nodes by default\n *\n * @returns {boolean} true if function did abort walk\n */\n static walkDom(node, func, type = NodeFilter.SHOW_ALL, filter = null) {\n if (!node) {\n return false;\n }\n const args = [node, type, filter || (() => true), false];\n args.push(false);\n const walker = document.createTreeWalker(...args);\n while (walker.nextNode()) {\n if (!func(walker.currentNode)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Extracts all TextNodes inside a container\n * @param {Node} el\n * @param {Function} func\n * @param {Object} [filter] skips empty text nodes by default\n * @returns {boolean} true if function did abort walk\n */\n static walkTextNodes(el, func, filter = (node) => !Util.nodeIsEmpty(node)) {\n return Util.walkDom(el, func, NodeFilter.SHOW_TEXT, filter);\n }\n\n /**\n * @param {Node} container\n * @param {Number} thisIndex\n * @returns {int|string} index of parent or original\n */\n static getIndexParentIfHas(container, thisIndex) {\n const p = container.parentNode;\n const index = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10);\n return index > thisIndex ? index : thisIndex;\n }\n\n /**\n * @param container\n * @returns {int} offset start of parent if has, else 0\n */\n static getOffsetParentIfHas(container) {\n const p = container.parentNode;\n const offset = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10);\n return offset > 0 ? offset : 0;\n }\n\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/util/Util.js\n **/","\"use strict\";\n\nvar _typeof = typeof _Symbol === \"function\" && typeof _Symbol$iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _Symbol === \"function\" && obj.constructor === _Symbol ? \"symbol\" : typeof obj; };\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/typeof.js\n ** module id = 25\n ** module chunks = 0 1\n **/","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./$.cof')\n , TAG = require('./$.wks')('toStringTag')\n // ES3 wrong here\n , ARG = cof(function(){ return arguments; }()) == 'Arguments';\n\nmodule.exports = function(it){\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = (O = Object(it))[TAG]) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.classof.js\n ** module id = 26\n ** module chunks = 0 1\n **/","var toString = {}.toString;\n\nmodule.exports = function(it){\n return toString.call(it).slice(8, -1);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.cof.js\n ** module id = 27\n ** module chunks = 0 1\n **/","var ctx = require('./$.ctx')\n , call = require('./$.iter-call')\n , isArrayIter = require('./$.is-array-iter')\n , anObject = require('./$.an-object')\n , toLength = require('./$.to-length')\n , getIterFn = require('./core.get-iterator-method');\nmodule.exports = function(iterable, entries, fn, that){\n var iterFn = getIterFn(iterable)\n , f = ctx(fn, that, entries ? 2 : 1)\n , index = 0\n , length, step, iterator;\n if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){\n entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){\n call(iterator, f, step.value, entries);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.for-of.js\n ** module id = 28\n ** module chunks = 0 1\n **/","'use strict';\nvar LIBRARY = require('./$.library')\n , $export = require('./$.export')\n , redefine = require('./$.redefine')\n , hide = require('./$.hide')\n , has = require('./$.has')\n , Iterators = require('./$.iterators')\n , $iterCreate = require('./$.iter-create')\n , setToStringTag = require('./$.set-to-string-tag')\n , getProto = require('./$').getProto\n , ITERATOR = require('./$.wks')('iterator')\n , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`\n , FF_ITERATOR = '@@iterator'\n , KEYS = 'keys'\n , VALUES = 'values';\n\nvar returnThis = function(){ return this; };\n\nmodule.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){\n $iterCreate(Constructor, NAME, next);\n var getMethod = function(kind){\n if(!BUGGY && kind in proto)return proto[kind];\n switch(kind){\n case KEYS: return function keys(){ return new Constructor(this, kind); };\n case VALUES: return function values(){ return new Constructor(this, kind); };\n } return function entries(){ return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator'\n , DEF_VALUES = DEFAULT == VALUES\n , VALUES_BUG = false\n , proto = Base.prototype\n , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]\n , $default = $native || getMethod(DEFAULT)\n , methods, key;\n // Fix native\n if($native){\n var IteratorPrototype = getProto($default.call(new Base));\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // FF fix\n if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);\n // fix Array#{values, @@iterator}.name in V8 / FF\n if(DEF_VALUES && $native.name !== VALUES){\n VALUES_BUG = true;\n $default = function values(){ return $native.call(this); };\n }\n }\n // Define iterator\n if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if(DEFAULT){\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: !DEF_VALUES ? $default : getMethod('entries')\n };\n if(FORCED)for(key in methods){\n if(!(key in proto))redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-define.js\n ** module id = 29\n ** module chunks = 0 1\n **/","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\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.property-desc.js\n ** module id = 30\n ** module chunks = 0 1\n **/","module.exports = require('./$.hide');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine.js\n ** module id = 31\n ** module chunks = 0 1\n **/","var id = 0\n , px = Math.random();\nmodule.exports = function(key){\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.uid.js\n ** module id = 32\n ** module chunks = 0 1\n **/","/**\n * A Render Result\n */\nexport default class RenderResult {\n /**\n * @param {int} startOffset\n * @param {int} endOffset\n * @param {String} startContainerPath\n * @param {String} endContainerPath\n */\n constructor(startOffset, endOffset, startContainerPath, endContainerPath) {\n this.startOffset = startOffset;\n this.endOffset = endOffset;\n this.startContainerPath = startContainerPath;\n this.endContainerPath = endContainerPath;\n this._renderingInstance = null;\n }\n\n /**\n * @param {Object} result\n * @return RenderResult\n */\n static fromObject(result) {\n return new RenderResult(\n result.startOffset,\n result.endOffset,\n result.startContainerPath,\n result.endContainerPath\n );\n }\n\n /**\n * @returns {Object}\n */\n serialize() {\n return {\n startOffset: this.startOffset,\n endOffset: this.endOffset,\n startContainerPath: this.startContainerPath,\n endContainerPath: this.endContainerPath\n };\n }\n\n /**\n * @param {String} text\n */\n set text(text) {\n this._text = text;\n }\n\n /**\n * @returns {String}\n */\n get text() {\n return this._text;\n }\n\n /**\n * @returns {null|Rendering}\n */\n get instance() {\n return this._renderingInstance;\n }\n\n /**\n * @param {null|Rendering} instance\n */\n set instance(instance) {\n this._renderingInstance = instance;\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/RenderResult.js\n **/","/* global Set */\n\nimport EventEmitter from 'wolfy87-eventemitter';\nimport Rendering from './Rendering';\nimport Util from './util/Util';\n\n/**\n * @type {string}\n */\nexport const EVENT_CLICK = 'click';\n\n/**\n * @type {string}\n */\nexport const EVENT_MOUSEENTER = 'hover-enter';\n\n/**\n * @type {string}\n */\nexport const EVENT_MOUSELEAVE = 'hover-leave';\n\n/**\n * @type {string}\n */\nexport const EVENT_PART_TREE_ENTER = 'tree-enter';\n\n/**\n * @type {string}\n */\nexport const EVENT_PART_TREE_LEAVE = 'tree-leave';\n\n/**\n * Generic Event Handlings for Renderer\n */\nexport default class RenderingEvents extends EventEmitter {\n\n /**\n * @param {Object} options\n * @param {Document} document\n */\n constructor(options, document) {\n super();\n\n /**\n * Options\n * @type {Object}\n */\n this.options = {\n hoverClass: 'marklib--hover',\n treeClass: 'marklib--tree',\n className: ['marking']\n };\n\n this.options = Object.assign(this.options, options || {});\n\n if (typeof this.options.className === 'string') {\n this.options.className = this.options.className.split(' ');\n }\n\n /**\n * A collection of all nodes that are part of all events\n * @type {Array}\n */\n this.wrapperNodes = [];\n\n this._registerEvents(document);\n\n /**\n * @type {Document}\n */\n this.document = document;\n }\n\n /**\n * Constructs a new Range from rendered result\n * @returns {Range}\n */\n get range() {\n const range = this.document.createRange();\n const textNodes = [];\n\n this.wrapperNodes.forEach((wrapper) => {\n Util.walkTextNodes(wrapper, (node) => {\n textNodes.push(node);\n });\n });\n\n if (textNodes.length > 0) {\n const lastTextNode = textNodes[textNodes.length - 1];\n range.setStart(textNodes[0], 0);\n range.setEnd(lastTextNode, lastTextNode.length);\n return range;\n }\n\n return null;\n }\n\n /**\n * Will register events if not already bind.\n * @param {Document} document\n * @private\n */\n _registerEvents(document) {\n this.on(EVENT_MOUSEENTER, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.add(this.options.hoverClass);\n });\n });\n\n this.on(EVENT_MOUSELEAVE, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.remove(this.options.hoverClass);\n });\n });\n\n this.on(EVENT_PART_TREE_ENTER, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.add(this.options.treeClass);\n });\n });\n\n this.on(EVENT_PART_TREE_LEAVE, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.remove(this.options.treeClass);\n });\n });\n\n\n if (!global.__MARKLIB_EVENTS__) {\n global.__MARKLIB_EVENTS__ = true;\n (function init() {\n const currentHoverInstances = new Set();\n const betweenInstances = new Set();\n\n function checkMarklibInstance(e) {\n const instance = Rendering.getMarklibInstance(e);\n // instanceof check will fail if used in test scenario where different DOMs are used\n // see also http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/\n return instance && (instance instanceof Rendering || 'wrapperNodes' in instance);\n }\n\n function closestInstance(e) {\n const closest = Util.closestCallback(\n e.target,\n (thisE) => checkMarklibInstance(thisE)\n );\n if (typeof closest === 'object') {\n return Rendering.getMarklibInstance(closest);\n }\n return false;\n }\n\n function getInstancesBetween(e, instance) {\n return Util.parentsCallback(\n e.target,\n (el) => checkMarklibInstance(el) && Rendering.getMarklibInstance(el) !== instance\n ).map(el => Rendering.getMarklibInstance(el));\n }\n\n function mouseOutClear() {\n currentHoverInstances.forEach((thisInstance) => {\n thisInstance.emit(EVENT_MOUSELEAVE);\n });\n currentHoverInstances.clear();\n\n betweenInstances.forEach((thisInstance) => {\n thisInstance.emit(EVENT_PART_TREE_LEAVE);\n });\n\n betweenInstances.clear();\n }\n\n /**\n * @param {Event} e\n * @returns {Array|boolean}\n */\n function findTarget(e) {\n let instance = closestInstance(e);\n if (instance) {\n const between = getInstancesBetween(e, instance);\n if (e.target.textContent !== instance.result.text && between.length > 0) {\n let allInstances = between;\n allInstances.unshift(instance);\n // take the smallest selection\n allInstances = allInstances.sort(\n (a, b) => a.result.text.length < b.result.text.length ? -1 : 1\n );\n instance = allInstances[0];\n }\n\n return [instance, between];\n }\n return false;\n }\n\n document.addEventListener('click', (e) => {\n const target = findTarget(e);\n if (target) {\n target[0].emit(EVENT_CLICK, e, target[1]);\n }\n }, true);\n\n document.addEventListener('mouseover', (e) => {\n const target = findTarget(e);\n if (target) {\n const [instance, between] = target;\n // find instances that lay in between the node\n mouseOutClear();\n between.forEach((instanceBetween) => {\n betweenInstances.add(instanceBetween);\n instanceBetween.emit(EVENT_PART_TREE_ENTER, e, between);\n });\n instance.emit(EVENT_MOUSEENTER, e, between);\n currentHoverInstances.add(instance);\n } else {\n mouseOutClear();\n }\n }, true);\n })();\n }\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/RenderingEvents.js\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/get-prototype-of\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/get-prototype-of.js\n ** module id = 37\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/inherits.js\n ** module id = 38\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/possibleConstructorReturn.js\n ** module id = 39\n ** module chunks = 0 1\n **/","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./$.cof');\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iobject.js\n ** module id = 40\n ** module chunks = 0 1\n **/","module.exports = function(done, value){\n return {value: value, done: !!done};\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-step.js\n ** module id = 41\n ** module chunks = 0 1\n **/","module.exports = true;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.library.js\n ** module id = 42\n ** module chunks = 0 1\n **/","var redefine = require('./$.redefine');\nmodule.exports = function(target, src){\n for(var key in src)redefine(target, key, src[key]);\n return target;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine-all.js\n ** module id = 43\n ** module chunks = 0 1\n **/","var global = require('./$.global')\n , SHARED = '__core-js_shared__'\n , store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function(key){\n return store[key] || (store[key] = {});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.shared.js\n ** module id = 44\n ** module chunks = 0 1\n **/","module.exports = function(it, Constructor, name){\n if(!(it instanceof Constructor))throw TypeError(name + \": use the 'new' operator!\");\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.strict-new.js\n ** module id = 45\n ** module chunks = 0 1\n **/","// 7.1.4 ToInteger\nvar ceil = Math.ceil\n , floor = Math.floor;\nmodule.exports = function(it){\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-integer.js\n ** module id = 46\n ** module chunks = 0 1\n **/","// 7.1.13 ToObject(argument)\nvar defined = require('./$.defined');\nmodule.exports = function(it){\n return Object(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-object.js\n ** module id = 47\n ** module chunks = 0 1\n **/","var classof = require('./$.classof')\n , ITERATOR = require('./$.wks')('iterator')\n , Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').getIteratorMethod = function(it){\n if(it != undefined)return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.get-iterator-method.js\n ** module id = 48\n ** module chunks = 0 1\n **/","import Rendering from '../Rendering';\nimport Util from '../util/Util';\nimport RenderResult from '../RenderResult';\nimport RenderingEvents from '../RenderingEvents';\n\nexport { Rendering, Util, RenderResult, RenderingEvents };\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/modules/Marklib.js\n **/","module.exports = { \"default\": require(\"core-js/library/fn/get-iterator\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/get-iterator.js\n ** module id = 52\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/is-iterable\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/is-iterable.js\n ** module id = 53\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/assign.js\n ** module id = 54\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/create.js\n ** module id = 55\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/define-property.js\n ** module id = 56\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/set-prototype-of.js\n ** module id = 57\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/set\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/set.js\n ** module id = 58\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol.js\n ** module id = 59\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol/iterator.js\n ** module id = 60\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _isIterable2 = require(\"../core-js/is-iterable\");\n\nvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\nvar _getIterator2 = require(\"../core-js/get-iterator\");\n\nvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if ((0, _isIterable3.default)(Object(arr))) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/slicedToArray.js\n ** module id = 61\n ** module chunks = 0 1\n **/","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.get-iterator');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/get-iterator.js\n ** module id = 62\n ** module chunks = 0 1\n **/","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.is-iterable');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/is-iterable.js\n ** module id = 63\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/$.core').Object.assign;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/assign.js\n ** module id = 64\n ** module chunks = 0 1\n **/","var $ = require('../../modules/$');\nmodule.exports = function create(P, D){\n return $.create(P, D);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/create.js\n ** module id = 65\n ** module chunks = 0 1\n **/","var $ = require('../../modules/$');\nmodule.exports = function defineProperty(it, key, desc){\n return $.setDesc(it, key, desc);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/define-property.js\n ** module id = 66\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.get-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.getPrototypeOf;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/get-prototype-of.js\n ** module id = 67\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.setPrototypeOf;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/set-prototype-of.js\n ** module id = 68\n ** module chunks = 0 1\n **/","require('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.set');\nrequire('../modules/es7.set.to-json');\nmodule.exports = require('../modules/$.core').Set;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/set.js\n ** module id = 69\n ** module chunks = 0 1\n **/","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nmodule.exports = require('../../modules/$.core').Symbol;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/index.js\n ** module id = 70\n ** module chunks = 0 1\n **/","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/$.wks')('iterator');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/iterator.js\n ** module id = 71\n ** module chunks = 0 1\n **/","module.exports = function(it){\n if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.a-function.js\n ** module id = 72\n ** module chunks = 0 1\n **/","module.exports = function(){ /* empty */ };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.add-to-unscopables.js\n ** module id = 73\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , hide = require('./$.hide')\n , redefineAll = require('./$.redefine-all')\n , ctx = require('./$.ctx')\n , strictNew = require('./$.strict-new')\n , defined = require('./$.defined')\n , forOf = require('./$.for-of')\n , $iterDefine = require('./$.iter-define')\n , step = require('./$.iter-step')\n , ID = require('./$.uid')('id')\n , $has = require('./$.has')\n , isObject = require('./$.is-object')\n , setSpecies = require('./$.set-species')\n , DESCRIPTORS = require('./$.descriptors')\n , isExtensible = Object.isExtensible || isObject\n , SIZE = DESCRIPTORS ? '_s' : 'size'\n , id = 0;\n\nvar fastKey = function(it, create){\n // return primitive with prefix\n if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if(!$has(it, ID)){\n // can't set id to frozen object\n if(!isExtensible(it))return 'F';\n // not necessary to add id\n if(!create)return 'E';\n // add missing object id\n hide(it, ID, ++id);\n // return object id with prefix\n } return 'O' + it[ID];\n};\n\nvar getEntry = function(that, key){\n // fast case\n var index = fastKey(key), entry;\n if(index !== 'F')return that._i[index];\n // frozen object case\n for(entry = that._f; entry; entry = entry.n){\n if(entry.k == key)return entry;\n }\n};\n\nmodule.exports = {\n getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n var C = wrapper(function(that, iterable){\n strictNew(that, C, NAME);\n that._i = $.create(null); // index\n that._f = undefined; // first entry\n that._l = undefined; // last entry\n that[SIZE] = 0; // size\n if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear(){\n for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){\n entry.r = true;\n if(entry.p)entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\n 'delete': function(key){\n var that = this\n , entry = getEntry(that, key);\n if(entry){\n var next = entry.n\n , prev = entry.p;\n delete that._i[entry.i];\n entry.r = true;\n if(prev)prev.n = next;\n if(next)next.p = prev;\n if(that._f == entry)that._f = next;\n if(that._l == entry)that._l = prev;\n that[SIZE]--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /*, that = undefined */){\n var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3)\n , entry;\n while(entry = entry ? entry.n : this._f){\n f(entry.v, entry.k, this);\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key){\n return !!getEntry(this, key);\n }\n });\n if(DESCRIPTORS)$.setDesc(C.prototype, 'size', {\n get: function(){\n return defined(this[SIZE]);\n }\n });\n return C;\n },\n def: function(that, key, value){\n var entry = getEntry(that, key)\n , prev, index;\n // change existing entry\n if(entry){\n entry.v = value;\n // create new entry\n } else {\n that._l = entry = {\n i: index = fastKey(key, true), // <- index\n k: key, // <- key\n v: value, // <- value\n p: prev = that._l, // <- previous entry\n n: undefined, // <- next entry\n r: false // <- removed\n };\n if(!that._f)that._f = entry;\n if(prev)prev.n = entry;\n that[SIZE]++;\n // add to index\n if(index !== 'F')that._i[index] = entry;\n } return that;\n },\n getEntry: getEntry,\n setStrong: function(C, NAME, IS_MAP){\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n $iterDefine(C, NAME, function(iterated, kind){\n this._t = iterated; // target\n this._k = kind; // kind\n this._l = undefined; // previous\n }, function(){\n var that = this\n , kind = that._k\n , entry = that._l;\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n // get next entry\n if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){\n // or finish the iteration\n that._t = undefined;\n return step(1);\n }\n // return step by kind\n if(kind == 'keys' )return step(0, entry.k);\n if(kind == 'values')return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(NAME);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection-strong.js\n ** module id = 74\n ** module chunks = 0 1\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar forOf = require('./$.for-of')\n , classof = require('./$.classof');\nmodule.exports = function(NAME){\n return function toJSON(){\n if(classof(this) != NAME)throw TypeError(NAME + \"#toJSON isn't generic\");\n var arr = [];\n forOf(this, false, arr.push, arr);\n return arr;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection-to-json.js\n ** module id = 75\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , global = require('./$.global')\n , $export = require('./$.export')\n , fails = require('./$.fails')\n , hide = require('./$.hide')\n , redefineAll = require('./$.redefine-all')\n , forOf = require('./$.for-of')\n , strictNew = require('./$.strict-new')\n , isObject = require('./$.is-object')\n , setToStringTag = require('./$.set-to-string-tag')\n , DESCRIPTORS = require('./$.descriptors');\n\nmodule.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){\n var Base = global[NAME]\n , C = Base\n , ADDER = IS_MAP ? 'set' : 'add'\n , proto = C && C.prototype\n , O = {};\n if(!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){\n new C().entries().next();\n }))){\n // create collection constructor\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n redefineAll(C.prototype, methods);\n } else {\n C = wrapper(function(target, iterable){\n strictNew(target, C, NAME);\n target._c = new Base;\n if(iterable != undefined)forOf(iterable, IS_MAP, target[ADDER], target);\n });\n $.each.call('add,clear,delete,forEach,get,has,set,keys,values,entries'.split(','),function(KEY){\n var IS_ADDER = KEY == 'add' || KEY == 'set';\n if(KEY in proto && !(IS_WEAK && KEY == 'clear'))hide(C.prototype, KEY, function(a, b){\n if(!IS_ADDER && IS_WEAK && !isObject(a))return KEY == 'get' ? undefined : false;\n var result = this._c[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n });\n if('size' in proto)$.setDesc(C.prototype, 'size', {\n get: function(){\n return this._c.size;\n }\n });\n }\n\n setToStringTag(C, NAME);\n\n O[NAME] = C;\n $export($export.G + $export.W + $export.F, O);\n\n if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);\n\n return C;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection.js\n ** module id = 76\n ** module chunks = 0 1\n **/","// all enumerable object keys, includes symbols\nvar $ = require('./$');\nmodule.exports = function(it){\n var keys = $.getKeys(it)\n , getSymbols = $.getSymbols;\n if(getSymbols){\n var symbols = getSymbols(it)\n , isEnum = $.isEnum\n , i = 0\n , key;\n while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);\n }\n return keys;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.enum-keys.js\n ** module id = 77\n ** module chunks = 0 1\n **/","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./$.to-iobject')\n , getNames = require('./$').getNames\n , toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function(it){\n try {\n return getNames(it);\n } catch(e){\n return windowNames.slice();\n }\n};\n\nmodule.exports.get = function getOwnPropertyNames(it){\n if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);\n return getNames(toIObject(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.get-names.js\n ** module id = 78\n ** module chunks = 0 1\n **/","// check on default Array iterator\nvar Iterators = require('./$.iterators')\n , ITERATOR = require('./$.wks')('iterator')\n , ArrayProto = Array.prototype;\n\nmodule.exports = function(it){\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array-iter.js\n ** module id = 79\n ** module chunks = 0 1\n **/","// 7.2.2 IsArray(argument)\nvar cof = require('./$.cof');\nmodule.exports = Array.isArray || function(arg){\n return cof(arg) == 'Array';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array.js\n ** module id = 80\n ** module chunks = 0 1\n **/","// call something on iterator step with safe closing on error\nvar anObject = require('./$.an-object');\nmodule.exports = function(iterator, fn, value, entries){\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch(e){\n var ret = iterator['return'];\n if(ret !== undefined)anObject(ret.call(iterator));\n throw e;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-call.js\n ** module id = 81\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , descriptor = require('./$.property-desc')\n , setToStringTag = require('./$.set-to-string-tag')\n , IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./$.hide')(IteratorPrototype, require('./$.wks')('iterator'), function(){ return this; });\n\nmodule.exports = function(Constructor, NAME, next){\n Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-create.js\n ** module id = 82\n ** module chunks = 0 1\n **/","var $ = require('./$')\n , toIObject = require('./$.to-iobject');\nmodule.exports = function(object, el){\n var O = toIObject(object)\n , keys = $.getKeys(O)\n , length = keys.length\n , index = 0\n , key;\n while(length > index)if(O[key = keys[index++]] === el)return key;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.keyof.js\n ** module id = 83\n ** module chunks = 0 1\n **/","// 19.1.2.1 Object.assign(target, source, ...)\nvar $ = require('./$')\n , toObject = require('./$.to-object')\n , IObject = require('./$.iobject');\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = require('./$.fails')(function(){\n var a = Object.assign\n , A = {}\n , B = {}\n , S = Symbol()\n , K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function(k){ B[k] = k; });\n return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n var T = toObject(target)\n , $$ = arguments\n , $$len = $$.length\n , index = 1\n , getKeys = $.getKeys\n , getSymbols = $.getSymbols\n , isEnum = $.isEnum;\n while($$len > index){\n var S = IObject($$[index++])\n , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n , length = keys.length\n , j = 0\n , key;\n while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n }\n return T;\n} : Object.assign;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-assign.js\n ** module id = 84\n ** module chunks = 0 1\n **/","// most Object methods by ES6 should accept primitives\nvar $export = require('./$.export')\n , core = require('./$.core')\n , fails = require('./$.fails');\nmodule.exports = function(KEY, exec){\n var fn = (core.Object || {})[KEY] || Object[KEY]\n , exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-sap.js\n ** module id = 85\n ** module chunks = 0 1\n **/","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar getDesc = require('./$').getDesc\n , isObject = require('./$.is-object')\n , anObject = require('./$.an-object');\nvar check = function(O, proto){\n anObject(O);\n if(!isObject(proto) && proto !== null)throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function(test, buggy, set){\n try {\n set = require('./$.ctx')(Function.call, getDesc(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch(e){ buggy = true; }\n return function setPrototypeOf(O, proto){\n check(O, proto);\n if(buggy)O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-proto.js\n ** module id = 86\n ** module chunks = 0 1\n **/","'use strict';\nvar core = require('./$.core')\n , $ = require('./$')\n , DESCRIPTORS = require('./$.descriptors')\n , SPECIES = require('./$.wks')('species');\n\nmodule.exports = function(KEY){\n var C = core[KEY];\n if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {\n configurable: true,\n get: function(){ return this; }\n });\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-species.js\n ** module id = 87\n ** module chunks = 0 1\n **/","var toInteger = require('./$.to-integer')\n , defined = require('./$.defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function(TO_STRING){\n return function(that, pos){\n var s = String(defined(that))\n , i = toInteger(pos)\n , l = s.length\n , a, b;\n if(i < 0 || i >= l)return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.string-at.js\n ** module id = 88\n ** module chunks = 0 1\n **/","// 7.1.15 ToLength\nvar toInteger = require('./$.to-integer')\n , min = Math.min;\nmodule.exports = function(it){\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-length.js\n ** module id = 89\n ** module chunks = 0 1\n **/","var anObject = require('./$.an-object')\n , get = require('./core.get-iterator-method');\nmodule.exports = require('./$.core').getIterator = function(it){\n var iterFn = get(it);\n if(typeof iterFn != 'function')throw TypeError(it + ' is not iterable!');\n return anObject(iterFn.call(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.get-iterator.js\n ** module id = 90\n ** module chunks = 0 1\n **/","var classof = require('./$.classof')\n , ITERATOR = require('./$.wks')('iterator')\n , Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').isIterable = function(it){\n var O = Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n || Iterators.hasOwnProperty(classof(O));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.is-iterable.js\n ** module id = 91\n ** module chunks = 0 1\n **/","'use strict';\nvar addToUnscopables = require('./$.add-to-unscopables')\n , step = require('./$.iter-step')\n , Iterators = require('./$.iterators')\n , toIObject = require('./$.to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./$.iter-define')(Array, 'Array', function(iterated, kind){\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , kind = this._k\n , index = this._i++;\n if(!O || index >= O.length){\n this._t = undefined;\n return step(1);\n }\n if(kind == 'keys' )return step(0, index);\n if(kind == 'values')return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.array.iterator.js\n ** module id = 92\n ** module chunks = 0 1\n **/","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./$.export');\n\n$export($export.S + $export.F, 'Object', {assign: require('./$.object-assign')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.assign.js\n ** module id = 93\n ** module chunks = 0 1\n **/","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./$.to-object');\n\nrequire('./$.object-sap')('getPrototypeOf', function($getPrototypeOf){\n return function getPrototypeOf(it){\n return $getPrototypeOf(toObject(it));\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.get-prototype-of.js\n ** module id = 94\n ** module chunks = 0 1\n **/","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./$.export');\n$export($export.S, 'Object', {setPrototypeOf: require('./$.set-proto').set});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.set-prototype-of.js\n ** module id = 95\n ** module chunks = 0 1\n **/","'use strict';\nvar strong = require('./$.collection-strong');\n\n// 23.2 Set Objects\nrequire('./$.collection')('Set', function(get){\n return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.2.3.1 Set.prototype.add(value)\n add: function add(value){\n return strong.def(this, value = value === 0 ? 0 : value, value);\n }\n}, strong);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.set.js\n ** module id = 96\n ** module chunks = 0 1\n **/","'use strict';\n// ECMAScript 6 symbols shim\nvar $ = require('./$')\n , global = require('./$.global')\n , has = require('./$.has')\n , DESCRIPTORS = require('./$.descriptors')\n , $export = require('./$.export')\n , redefine = require('./$.redefine')\n , $fails = require('./$.fails')\n , shared = require('./$.shared')\n , setToStringTag = require('./$.set-to-string-tag')\n , uid = require('./$.uid')\n , wks = require('./$.wks')\n , keyOf = require('./$.keyof')\n , $names = require('./$.get-names')\n , enumKeys = require('./$.enum-keys')\n , isArray = require('./$.is-array')\n , anObject = require('./$.an-object')\n , toIObject = require('./$.to-iobject')\n , createDesc = require('./$.property-desc')\n , getDesc = $.getDesc\n , setDesc = $.setDesc\n , _create = $.create\n , getNames = $names.get\n , $Symbol = global.Symbol\n , $JSON = global.JSON\n , _stringify = $JSON && $JSON.stringify\n , setter = false\n , HIDDEN = wks('_hidden')\n , isEnum = $.isEnum\n , SymbolRegistry = shared('symbol-registry')\n , AllSymbols = shared('symbols')\n , useNative = typeof $Symbol == 'function'\n , ObjectProto = Object.prototype;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n return _create(setDesc({}, 'a', {\n get: function(){ return setDesc(this, 'a', {value: 7}).a; }\n })).a != 7;\n}) ? function(it, key, D){\n var protoDesc = getDesc(ObjectProto, key);\n if(protoDesc)delete ObjectProto[key];\n setDesc(it, key, D);\n if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);\n} : setDesc;\n\nvar wrap = function(tag){\n var sym = AllSymbols[tag] = _create($Symbol.prototype);\n sym._k = tag;\n DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {\n configurable: true,\n set: function(value){\n if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n }\n });\n return sym;\n};\n\nvar isSymbol = function(it){\n return typeof it == 'symbol';\n};\n\nvar $defineProperty = function defineProperty(it, key, D){\n if(D && has(AllSymbols, key)){\n if(!D.enumerable){\n if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n D = _create(D, {enumerable: createDesc(0, false)});\n } return setSymbolDesc(it, key, D);\n } return setDesc(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P){\n anObject(it);\n var keys = enumKeys(P = toIObject(P))\n , i = 0\n , l = keys.length\n , key;\n while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P){\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n var E = isEnum.call(this, key);\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]\n ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n var D = getDesc(it = toIObject(it), key);\n if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);\n return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);\n return result;\n};\nvar $stringify = function stringify(it){\n if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n var args = [it]\n , i = 1\n , $$ = arguments\n , replacer, $replacer;\n while($$.length > i)args.push($$[i++]);\n replacer = args[1];\n if(typeof replacer == 'function')$replacer = replacer;\n if($replacer || !isArray(replacer))replacer = function(key, value){\n if($replacer)value = $replacer.call(this, key, value);\n if(!isSymbol(value))return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n};\nvar buggyJSON = $fails(function(){\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n});\n\n// 19.4.1.1 Symbol([description])\nif(!useNative){\n $Symbol = function Symbol(){\n if(isSymbol(this))throw TypeError('Symbol is not a constructor');\n return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));\n };\n redefine($Symbol.prototype, 'toString', function toString(){\n return this._k;\n });\n\n isSymbol = function(it){\n return it instanceof $Symbol;\n };\n\n $.create = $create;\n $.isEnum = $propertyIsEnumerable;\n $.getDesc = $getOwnPropertyDescriptor;\n $.setDesc = $defineProperty;\n $.setDescs = $defineProperties;\n $.getNames = $names.get = $getOwnPropertyNames;\n $.getSymbols = $getOwnPropertySymbols;\n\n if(DESCRIPTORS && !require('./$.library')){\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n}\n\nvar symbolStatics = {\n // 19.4.2.1 Symbol.for(key)\n 'for': function(key){\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(key){\n return keyOf(SymbolRegistry, key);\n },\n useSetter: function(){ setter = true; },\n useSimple: function(){ setter = false; }\n};\n// 19.4.2.2 Symbol.hasInstance\n// 19.4.2.3 Symbol.isConcatSpreadable\n// 19.4.2.4 Symbol.iterator\n// 19.4.2.6 Symbol.match\n// 19.4.2.8 Symbol.replace\n// 19.4.2.9 Symbol.search\n// 19.4.2.10 Symbol.species\n// 19.4.2.11 Symbol.split\n// 19.4.2.12 Symbol.toPrimitive\n// 19.4.2.13 Symbol.toStringTag\n// 19.4.2.14 Symbol.unscopables\n$.each.call((\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +\n 'species,split,toPrimitive,toStringTag,unscopables'\n).split(','), function(it){\n var sym = wks(it);\n symbolStatics[it] = useNative ? sym : wrap(sym);\n});\n\nsetter = true;\n\n$export($export.G + $export.W, {Symbol: $Symbol});\n\n$export($export.S, 'Symbol', symbolStatics);\n\n$export($export.S + $export.F * !useNative, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});\n\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.symbol.js\n ** module id = 97\n ** module chunks = 0 1\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export = require('./$.export');\n\n$export($export.P, 'Set', {toJSON: require('./$.collection-to-json')('Set')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es7.set.to-json.js\n ** module id = 98\n ** module chunks = 0 1\n **/","/*!\n * EventEmitter v4.2.11 - git.io/ee\n * Unlicense - http://unlicense.org/\n * Oliver Caldwell - http://oli.me.uk/\n * @preserve\n */\n\n;(function () {\n 'use strict';\n\n /**\n * Class for managing events.\n * Can be extended to provide event functionality in other classes.\n *\n * @class EventEmitter Manages event registering and emitting.\n */\n function EventEmitter() {}\n\n // Shortcuts to improve speed and size\n var proto = EventEmitter.prototype;\n var exports = this;\n var originalGlobalValue = exports.EventEmitter;\n\n /**\n * Finds the index of the listener for the event in its storage array.\n *\n * @param {Function[]} listeners Array of listeners to search through.\n * @param {Function} listener Method to look for.\n * @return {Number} Index of the specified listener, -1 if not found\n * @api private\n */\n function indexOfListener(listeners, listener) {\n var i = listeners.length;\n while (i--) {\n if (listeners[i].listener === listener) {\n return i;\n }\n }\n\n return -1;\n }\n\n /**\n * Alias a method while keeping the context correct, to allow for overwriting of target method.\n *\n * @param {String} name The name of the target method.\n * @return {Function} The aliased method\n * @api private\n */\n function alias(name) {\n return function aliasClosure() {\n return this[name].apply(this, arguments);\n };\n }\n\n /**\n * Returns the listener array for the specified event.\n * Will initialise the event object and listener arrays if required.\n * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.\n * Each property in the object response is an array of listener functions.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Function[]|Object} All listener functions for the event.\n */\n proto.getListeners = function getListeners(evt) {\n var events = this._getEvents();\n var response;\n var key;\n\n // Return a concatenated array of all matching events if\n // the selector is a regular expression.\n if (evt instanceof RegExp) {\n response = {};\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n response[key] = events[key];\n }\n }\n }\n else {\n response = events[evt] || (events[evt] = []);\n }\n\n return response;\n };\n\n /**\n * Takes a list of listener objects and flattens it into a list of listener functions.\n *\n * @param {Object[]} listeners Raw listener objects.\n * @return {Function[]} Just the listener functions.\n */\n proto.flattenListeners = function flattenListeners(listeners) {\n var flatListeners = [];\n var i;\n\n for (i = 0; i < listeners.length; i += 1) {\n flatListeners.push(listeners[i].listener);\n }\n\n return flatListeners;\n };\n\n /**\n * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Object} All listener functions for an event in an object.\n */\n proto.getListenersAsObject = function getListenersAsObject(evt) {\n var listeners = this.getListeners(evt);\n var response;\n\n if (listeners instanceof Array) {\n response = {};\n response[evt] = listeners;\n }\n\n return response || listeners;\n };\n\n /**\n * Adds a listener function to the specified event.\n * The listener will not be added if it is a duplicate.\n * If the listener returns true then it will be removed after it is called.\n * If you pass a regular expression as the event name then the listener will be added to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListener = function addListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var listenerIsWrapped = typeof listener === 'object';\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {\n listeners[key].push(listenerIsWrapped ? listener : {\n listener: listener,\n once: false\n });\n }\n }\n\n return this;\n };\n\n /**\n * Alias of addListener\n */\n proto.on = alias('addListener');\n\n /**\n * Semi-alias of addListener. It will add a listener that will be\n * automatically removed after its first execution.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addOnceListener = function addOnceListener(evt, listener) {\n return this.addListener(evt, {\n listener: listener,\n once: true\n });\n };\n\n /**\n * Alias of addOnceListener.\n */\n proto.once = alias('addOnceListener');\n\n /**\n * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.\n * You need to tell it what event names should be matched by a regex.\n *\n * @param {String} evt Name of the event to create.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvent = function defineEvent(evt) {\n this.getListeners(evt);\n return this;\n };\n\n /**\n * Uses defineEvent to define multiple events.\n *\n * @param {String[]} evts An array of event names to define.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvents = function defineEvents(evts) {\n for (var i = 0; i < evts.length; i += 1) {\n this.defineEvent(evts[i]);\n }\n return this;\n };\n\n /**\n * Removes a listener function from the specified event.\n * When passed a regular expression as the event name, it will remove the listener from all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to remove the listener from.\n * @param {Function} listener Method to remove from the event.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListener = function removeListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var index;\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key)) {\n index = indexOfListener(listeners[key], listener);\n\n if (index !== -1) {\n listeners[key].splice(index, 1);\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of removeListener\n */\n proto.off = alias('removeListener');\n\n /**\n * Adds listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.\n * You can also pass it a regular expression to add the array of listeners to all events that match it.\n * Yeah, this function does quite a bit. That's probably a bad thing.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListeners = function addListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(false, evt, listeners);\n };\n\n /**\n * Removes listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be removed.\n * You can also pass it a regular expression to remove the listeners from all events that match it.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListeners = function removeListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(true, evt, listeners);\n };\n\n /**\n * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.\n * The first argument will determine if the listeners are removed (true) or added (false).\n * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be added/removed.\n * You can also pass it a regular expression to manipulate the listeners of all events that match it.\n *\n * @param {Boolean} remove True if you want to remove listeners, false if you want to add.\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add/remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {\n var i;\n var value;\n var single = remove ? this.removeListener : this.addListener;\n var multiple = remove ? this.removeListeners : this.addListeners;\n\n // If evt is an object then pass each of its properties to this method\n if (typeof evt === 'object' && !(evt instanceof RegExp)) {\n for (i in evt) {\n if (evt.hasOwnProperty(i) && (value = evt[i])) {\n // Pass the single listener straight through to the singular method\n if (typeof value === 'function') {\n single.call(this, i, value);\n }\n else {\n // Otherwise pass back to the multiple function\n multiple.call(this, i, value);\n }\n }\n }\n }\n else {\n // So evt must be a string\n // And listeners must be an array of listeners\n // Loop over it and pass each one to the multiple method\n i = listeners.length;\n while (i--) {\n single.call(this, evt, listeners[i]);\n }\n }\n\n return this;\n };\n\n /**\n * Removes all listeners from a specified event.\n * If you do not specify an event then all listeners will be removed.\n * That means every event will be emptied.\n * You can also pass a regex to remove all events that match it.\n *\n * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeEvent = function removeEvent(evt) {\n var type = typeof evt;\n var events = this._getEvents();\n var key;\n\n // Remove different things depending on the state of evt\n if (type === 'string') {\n // Remove all listeners for the specified event\n delete events[evt];\n }\n else if (evt instanceof RegExp) {\n // Remove all events matching the regex.\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n delete events[key];\n }\n }\n }\n else {\n // Remove all listeners in all events\n delete this._events;\n }\n\n return this;\n };\n\n /**\n * Alias of removeEvent.\n *\n * Added to mirror the node API.\n */\n proto.removeAllListeners = alias('removeEvent');\n\n /**\n * Emits an event of your choice.\n * When emitted, every listener attached to that event will be executed.\n * If you pass the optional argument array then those arguments will be passed to every listener upon execution.\n * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.\n * So they will not arrive within the array on the other side, they will be separate.\n * You can also pass a regular expression to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {Array} [args] Optional array of arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emitEvent = function emitEvent(evt, args) {\n var listenersMap = this.getListenersAsObject(evt);\n var listeners;\n var listener;\n var i;\n var key;\n var response;\n\n for (key in listenersMap) {\n if (listenersMap.hasOwnProperty(key)) {\n listeners = listenersMap[key].slice(0);\n i = listeners.length;\n\n while (i--) {\n // If the listener returns true then it shall be removed from the event\n // The function is executed either with a basic call or an apply if there is an args array\n listener = listeners[i];\n\n if (listener.once === true) {\n this.removeListener(evt, listener.listener);\n }\n\n response = listener.listener.apply(this, args || []);\n\n if (response === this._getOnceReturnValue()) {\n this.removeListener(evt, listener.listener);\n }\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of emitEvent\n */\n proto.trigger = alias('emitEvent');\n\n /**\n * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.\n * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {...*} Optional additional arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emit = function emit(evt) {\n var args = Array.prototype.slice.call(arguments, 1);\n return this.emitEvent(evt, args);\n };\n\n /**\n * Sets the current value to check against when executing listeners. If a\n * listeners return value matches the one set here then it will be removed\n * after execution. This value defaults to true.\n *\n * @param {*} value The new value to check for when executing listeners.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.setOnceReturnValue = function setOnceReturnValue(value) {\n this._onceReturnValue = value;\n return this;\n };\n\n /**\n * Fetches the current value to check against when executing listeners. If\n * the listeners return value matches this one then it should be removed\n * automatically. It will return true by default.\n *\n * @return {*|Boolean} The current value to check for or the default, true.\n * @api private\n */\n proto._getOnceReturnValue = function _getOnceReturnValue() {\n if (this.hasOwnProperty('_onceReturnValue')) {\n return this._onceReturnValue;\n }\n else {\n return true;\n }\n };\n\n /**\n * Fetches the events object and creates one if required.\n *\n * @return {Object} The events storage object.\n * @api private\n */\n proto._getEvents = function _getEvents() {\n return this._events || (this._events = {});\n };\n\n /**\n * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.\n *\n * @return {Function} Non conflicting EventEmitter class.\n */\n EventEmitter.noConflict = function noConflict() {\n exports.EventEmitter = originalGlobalValue;\n return EventEmitter;\n };\n\n // Expose the class either via AMD, CommonJS or the global object\n if (typeof define === 'function' && define.amd) {\n define(function () {\n return EventEmitter;\n });\n }\n else if (typeof module === 'object' && module.exports){\n module.exports = EventEmitter;\n }\n else {\n exports.EventEmitter = EventEmitter;\n }\n}.call(this));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wolfy87-eventemitter/EventEmitter.js\n ** module id = 99\n ** module chunks = 0 1\n **/"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition?5ca6","webpack:///js/marklib.min.js","webpack:///webpack/bootstrap 02030115b79806ce8aa2?6564","webpack:///./~/core-js/library/modules/$.js?6ce7","webpack:///./~/core-js/library/modules/$.core.js?7680","webpack:///./~/core-js/library/modules/$.wks.js?3e04","webpack:///./~/core-js/library/modules/$.export.js?b734","webpack:///./~/core-js/library/modules/$.iterators.js?9d0a","webpack:///./~/core-js/library/modules/$.an-object.js?2be9","webpack:///./~/core-js/library/modules/$.descriptors.js?8327","webpack:///./~/core-js/library/modules/$.fails.js?6c29","webpack:///./~/core-js/library/modules/$.global.js?4deb","webpack:///./~/core-js/library/modules/$.hide.js?2cce","webpack:///./~/babel-runtime/helpers/classCallCheck.js?21af","webpack:///./~/babel-runtime/helpers/createClass.js?1dfe","webpack:///./~/core-js/library/modules/$.ctx.js?e797","webpack:///./~/core-js/library/modules/$.defined.js?7087","webpack:///./~/core-js/library/modules/$.has.js?bcec","webpack:///./~/core-js/library/modules/$.is-object.js?7453","webpack:///./~/core-js/library/modules/$.set-to-string-tag.js?d0fc","webpack:///./~/core-js/library/modules/$.to-iobject.js?daca","webpack:///./~/core-js/library/modules/es6.string.iterator.js?fe18","webpack:///./~/core-js/library/modules/web.dom.iterable.js?bf0e","webpack:///./src/main/Rendering.js?6592","webpack:///./src/main/util/Util.js?5bc4","webpack:///./~/babel-runtime/helpers/typeof.js?f4bd","webpack:///./~/core-js/library/modules/$.classof.js?c1cb","webpack:///./~/core-js/library/modules/$.cof.js?74ee","webpack:///./~/core-js/library/modules/$.for-of.js?bf1d","webpack:///./~/core-js/library/modules/$.iter-define.js?970f","webpack:///./~/core-js/library/modules/$.property-desc.js?e1db","webpack:///./~/core-js/library/modules/$.redefine.js?2643","webpack:///./~/core-js/library/modules/$.uid.js?f177","webpack:///./src/main/RenderResult.js?09ff","webpack:///./src/main/RenderingEvents.js?d122","webpack:///./~/babel-runtime/core-js/object/get-prototype-of.js?b265","webpack:///./~/babel-runtime/helpers/inherits.js?0578","webpack:///./~/babel-runtime/helpers/possibleConstructorReturn.js?aad9","webpack:///./~/core-js/library/modules/$.iobject.js?3ada","webpack:///./~/core-js/library/modules/$.iter-step.js?76ef","webpack:///./~/core-js/library/modules/$.library.js?c05f","webpack:///./~/core-js/library/modules/$.redefine-all.js?0c0d","webpack:///./~/core-js/library/modules/$.shared.js?6ce8","webpack:///./~/core-js/library/modules/$.strict-new.js?979f","webpack:///./~/core-js/library/modules/$.to-integer.js?b29c","webpack:///./~/core-js/library/modules/$.to-object.js?093c","webpack:///./~/core-js/library/modules/core.get-iterator-method.js?9c88","webpack:///./src/main/modules/Marklib.js?dcc3","webpack:///./~/babel-runtime/core-js/get-iterator.js?1b08","webpack:///./~/babel-runtime/core-js/is-iterable.js?350e","webpack:///./~/babel-runtime/core-js/object/assign.js?e6ca","webpack:///./~/babel-runtime/core-js/object/create.js?aa4b","webpack:///./~/babel-runtime/core-js/object/define-property.js?5f70","webpack:///./~/babel-runtime/core-js/object/set-prototype-of.js?bb00","webpack:///./~/babel-runtime/core-js/set.js?0724","webpack:///./~/babel-runtime/core-js/symbol.js?a70d","webpack:///./~/babel-runtime/core-js/symbol/iterator.js?d16b","webpack:///./~/babel-runtime/helpers/slicedToArray.js?39c4","webpack:///./~/core-js/library/fn/get-iterator.js?2cf7","webpack:///./~/core-js/library/fn/is-iterable.js?0bd2","webpack:///./~/core-js/library/fn/object/assign.js?80e4","webpack:///./~/core-js/library/fn/object/create.js?738c","webpack:///./~/core-js/library/fn/object/define-property.js?b7d8","webpack:///./~/core-js/library/fn/object/get-prototype-of.js?5193","webpack:///./~/core-js/library/fn/object/set-prototype-of.js?f909","webpack:///./~/core-js/library/fn/set.js?2c6c","webpack:///./~/core-js/library/fn/symbol/index.js?f07a","webpack:///./~/core-js/library/fn/symbol/iterator.js?238d","webpack:///./~/core-js/library/modules/$.a-function.js?860b","webpack:///./~/core-js/library/modules/$.add-to-unscopables.js?af5b","webpack:///./~/core-js/library/modules/$.collection-strong.js?75b1","webpack:///./~/core-js/library/modules/$.collection-to-json.js?9a82","webpack:///./~/core-js/library/modules/$.collection.js?1dbc","webpack:///./~/core-js/library/modules/$.enum-keys.js?1c2a","webpack:///./~/core-js/library/modules/$.get-names.js?e4b8","webpack:///./~/core-js/library/modules/$.is-array-iter.js?787a","webpack:///./~/core-js/library/modules/$.is-array.js?4d69","webpack:///./~/core-js/library/modules/$.iter-call.js?581c","webpack:///./~/core-js/library/modules/$.iter-create.js?4401","webpack:///./~/core-js/library/modules/$.keyof.js?3b7d","webpack:///./~/core-js/library/modules/$.object-assign.js?ed5a","webpack:///./~/core-js/library/modules/$.object-sap.js?f39d","webpack:///./~/core-js/library/modules/$.set-proto.js?759b","webpack:///./~/core-js/library/modules/$.set-species.js?71c4","webpack:///./~/core-js/library/modules/$.string-at.js?a0b4","webpack:///./~/core-js/library/modules/$.to-length.js?9639","webpack:///./~/core-js/library/modules/core.get-iterator.js?aca7","webpack:///./~/core-js/library/modules/core.is-iterable.js?77cc","webpack:///./~/core-js/library/modules/es6.array.iterator.js?1e09","webpack:///./~/core-js/library/modules/es6.object.assign.js?9007","webpack:///./~/core-js/library/modules/es6.object.get-prototype-of.js?eaa3","webpack:///./~/core-js/library/modules/es6.object.set-prototype-of.js?b195","webpack:///./~/core-js/library/modules/es6.set.js?dbba","webpack:///./~/core-js/library/modules/es6.symbol.js?670a","webpack:///./~/core-js/library/modules/es7.set.to-json.js?e75b","webpack:///./~/wolfy87-eventemitter/EventEmitter.js?ed18"],"names":["root","factory","exports","module","define","amd","this","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","$Object","Object","create","getProto","getPrototypeOf","isEnum","propertyIsEnumerable","getDesc","getOwnPropertyDescriptor","setDesc","defineProperty","setDescs","defineProperties","getKeys","keys","getNames","getOwnPropertyNames","getSymbols","getOwnPropertySymbols","each","forEach","core","version","__e","store","uid","Symbol","name","global","ctx","PROTOTYPE","$export","type","source","key","own","out","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","IS_WRAP","W","target","C","param","Function","isObject","it","TypeError","get","a","exec","e","window","Math","self","__g","$","createDesc","object","value","__esModule","instance","Constructor","_interopRequireDefault","obj","default","_defineProperty","_defineProperty2","props","i","length","descriptor","enumerable","configurable","writable","protoProps","staticProps","prototype","aFunction","fn","that","undefined","b","apply","arguments","hasOwnProperty","def","has","TAG","tag","stat","IObject","defined","$at","String","iterated","_t","_i","point","O","index","done","Iterators","NodeList","HTMLCollection","Array","EVENT_WRAPPED_NODE","ATTR_DATA_ORIGINAL_OFFSET_START","_getPrototypeOf","_getPrototypeOf2","_classCallCheck2","_classCallCheck3","_createClass2","_createClass3","_possibleConstructorReturn2","_possibleConstructorReturn3","_inherits2","_inherits3","_RenderResult","_RenderResult2","_RenderingEvents2","_RenderingEvents3","_Util","_Util2","TAG_NAME","DATA_ORIGINAL_TEXT_NODE_INDEX","ATTR_DATA_START_END","ATTR_DATA_IS_HIGHLIGHT_NODE","ATTR_DATA_ID","DOCUMENT_POSITION_CONTAINED_BY","Rendering","_RenderingEvents","document","options","context","_this","guid","startContainer","endContainer","_renderResult","_this2","wrapperNodes","node","setAttribute","omitHighlight","el","createElement","vTrue","className","join","setMarklibInstance","push","getId","DATA_IS_SELECTION","text","_createWrapTemplate","textContent","initialNode","offset","wrapper","_createStartEndWrapTemplate","ATTR_DATA_ORIGINAL_INDEX","getIndexParentIfHas","optionalLength","optionalIndex","optionalIsSameNode","originalIndex","calcIndex","offsetLength","getOffsetParentIfHas","wrap","emit","originalElement","start","nextParent","nextParentNode","parentNode","currentParentNode","wrapSiblings","nextSibling","_this3","next","found","n","getMarklibInstance","hasAttribute","_createWrap","wrapIf","nodeIsEmpty","walkIfContained","Node","TEXT_NODE","nodeType","walkIfNotContained","currentNext","compareDocumentPosition","walkDom","walkTextNodes","textNode","startIndex","endIndex","initialText","nodeValue","initialIndex","textBefore","slice","insertBefore","createTextNode","previousSibling","_createSplitContainer","textAfter","startOffset","endOffset","startContainerIndex","endContainerIndex","fullTextStartValue","startT","partTextStartValue","offsetStart","_createStartOrEndContainer","endT","fullTextEndValue","partTextEndValue","offsetParent","startContainerP","endContainerP","commonAncestor","endOffsetP","outer","parents","contextContainer","originalStartOffset","findOriginalOffset","originalEndOffset","nextElementSibling","toFindNode","previousElementSibling","endContainerContents","closest","childNodes","r","f","lastChild","parseInt","getAttribute","Error","getPath","_renderSelection","_markTextSameNode","result","_markTextDifferentNode","indexOf","splice","walk","startPath","endPath","deserializePath","range","createRange","setStart","setEnd","toString","renderWithRange","renderWithPath","startContainerPath","endContainerPath","_renderWithElements","commonAncestorContainer","marklibInstance","removeEvent","_Rendering","SERIALIZE_SEPARATOR","Element","matches","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector","Util","nodes","func","filter","s4","floor","random","substring","match","optionalList","children","elms","thisElms","child","cloneNode","parent","sibling","appendChild","calculatedIndex","foundWrapper","thisIndex","maybeIndexOfOriginal","optionalSelector","parentsCallback","element","callback","foundElements","selector","closestCallback","lastValid","HTMLElement","path","filterSiblings","thisEl","isMarkNode","nodeName","outerMostElement","reverse","toLowerCase","siblings","nodeListFilter","nodeIndex","replace","lengthElement","pSplit","split","objectIndex","charOffset","container","trim","querySelector","maybeFoundNode","atrOffsetStart","atrIndex","thisOffset","_document","NodeFilter","SHOW_ALL","args","walker","createTreeWalker","nextNode","currentNode","SHOW_TEXT","_typeof","_Symbol","_Symbol$iterator","constructor","_iterator","_iterator2","_symbol","_symbol2","cof","ARG","T","callee","isArrayIter","anObject","toLength","getIterFn","iterable","entries","step","iterator","iterFn","LIBRARY","redefine","hide","$iterCreate","setToStringTag","ITERATOR","BUGGY","FF_ITERATOR","KEYS","VALUES","returnThis","Base","NAME","DEFAULT","IS_SET","FORCED","methods","getMethod","kind","proto","DEF_VALUES","VALUES_BUG","$native","$default","IteratorPrototype","values","bitmap","px","concat","RenderResult","_renderingInstance","set","_text","EVENT_PART_TREE_LEAVE","EVENT_PART_TREE_ENTER","EVENT_MOUSELEAVE","EVENT_MOUSEENTER","EVENT_CLICK","_slicedToArray2","_slicedToArray3","_typeof2","_typeof3","_set","_set2","_assign","_assign2","_wolfy87Eventemitter","_wolfy87Eventemitter2","_Rendering2","RenderingEvents","_EventEmitter","hoverClass","treeClass","_registerEvents","on","classList","add","remove","__MARKLIB_EVENTS__","checkMarklibInstance","closestInstance","thisE","getInstancesBetween","map","mouseOutClear","currentHoverInstances","thisInstance","clear","betweenInstances","findTarget","between","allInstances","unshift","sort","addEventListener","_target","instanceBetween","textNodes","lastTextNode","_setPrototypeOf","_setPrototypeOf2","_create","_create2","subClass","superClass","__proto__","ReferenceError","src","SHARED","ceil","isNaN","classof","getIteratorMethod","_isIterable2","_isIterable3","_getIterator2","_getIterator3","sliceIterator","arr","_arr","_n","_d","_e","_s","err","isArray","assign","D","desc","setPrototypeOf","Set","redefineAll","strictNew","forOf","$iterDefine","ID","$has","setSpecies","DESCRIPTORS","isExtensible","SIZE","fastKey","getEntry","entry","_f","k","getConstructor","IS_MAP","ADDER","_l","data","delete","prev","callbackfn","v","setStrong","_k","fails","common","IS_WEAK","_c","KEY","IS_ADDER","size","symbols","toIObject","windowNames","getWindowNames","ArrayProto","arg","ret","toObject","A","K","$$","$$len","j","exp","check","test","buggy","SPECIES","toInteger","TO_STRING","pos","s","l","charCodeAt","charAt","min","getIterator","isIterable","addToUnscopables","Arguments","$getPrototypeOf","strong","$fails","shared","wks","keyOf","$names","enumKeys","$Symbol","$JSON","JSON","_stringify","stringify","setter","HIDDEN","SymbolRegistry","AllSymbols","useNative","ObjectProto","setSymbolDesc","protoDesc","sym","isSymbol","$defineProperty","$defineProperties","$create","$propertyIsEnumerable","E","$getOwnPropertyDescriptor","$getOwnPropertyNames","names","$getOwnPropertySymbols","$stringify","replacer","$replacer","buggyJSON","symbolStatics","for","keyFor","useSetter","useSimple","toJSON","__WEBPACK_AMD_DEFINE_RESULT__","EventEmitter","indexOfListener","listeners","listener","alias","originalGlobalValue","getListeners","evt","response","events","_getEvents","RegExp","flattenListeners","flatListeners","getListenersAsObject","addListener","listenerIsWrapped","once","addOnceListener","defineEvent","defineEvents","evts","removeListener","off","addListeners","manipulateListeners","removeListeners","single","multiple","_events","removeAllListeners","emitEvent","listenersMap","_getOnceReturnValue","trigger","setOnceReturnValue","_onceReturnValue","noConflict"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,IACA,kBAAAG,gBAAAC,IACAD,UAAAH,GACA,gBAAAC,SACAA,QAAA,QAAAD,IAEAD,EAAA,QAAAC,KACCK,KAAA,WACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAP,OAGA,IAAAC,GAAAO,EAAAD,IACAP,WACAS,GAAAF,EACAG,QAAA,EAUA,OANAL,GAAAE,GAAAI,KAAAV,EAAAD,QAAAC,IAAAD,QAAAM,GAGAL,EAAAS,QAAA,EAGAT,EAAAD,QAvBA,GAAAQ,KAqCA,OATAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,MAGAR,EAAA,KDgBM,SAASL,EAAQD,EAASM,GAE/BL,EAAOD,QAAUM,EAAoB,KAKhC,SAASL,EAAQD,GE7DvB,GAAAe,GAAAC,MACAf,GAAAD,SACAiB,OAAAF,EAAAE,OACAC,SAAAH,EAAAI,eACAC,UAAgBC,qBAChBC,QAAAP,EAAAQ,yBACAC,QAAAT,EAAAU,eACAC,SAAAX,EAAAY,iBACAC,QAAAb,EAAAc,KACAC,SAAAf,EAAAgB,oBACAC,WAAAjB,EAAAkB,s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AArnB,KAAAqnB,aAQA7B,EAAAqC,WAAA,WAEA,MADAjoB,GAAA4lB,aAAAK,EACAL,GAKAD,EAAA,WACA,MAAAC,IACSjlB,KAAAX,EAAAM,EAAAN,EAAAC,KAAAuG,SAAAmf,IAAA1lB,EAAAD,QAAA2lB,MAQRhlB,KAAAP","file":"js/marklib.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Marklib\"] = factory();\n\telse\n\t\troot[\"Marklib\"] = factory();\n})(this, function() {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Marklib\"] = factory();\n\telse\n\t\troot[\"Marklib\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\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/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"../\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(50);\n\n\n/***/ },\n/* 1 */\n/***/ function(module, exports) {\n\n\tvar $Object = Object;\n\tmodule.exports = {\n\t create: $Object.create,\n\t getProto: $Object.getPrototypeOf,\n\t isEnum: {}.propertyIsEnumerable,\n\t getDesc: $Object.getOwnPropertyDescriptor,\n\t setDesc: $Object.defineProperty,\n\t setDescs: $Object.defineProperties,\n\t getKeys: $Object.keys,\n\t getNames: $Object.getOwnPropertyNames,\n\t getSymbols: $Object.getOwnPropertySymbols,\n\t each: [].forEach\n\t};\n\n/***/ },\n/* 2 */\n/***/ function(module, exports) {\n\n\tvar core = module.exports = {version: '1.2.6'};\n\tif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar store = __webpack_require__(44)('wks')\n\t , uid = __webpack_require__(32)\n\t , Symbol = __webpack_require__(9).Symbol;\n\tmodule.exports = function(name){\n\t return store[name] || (store[name] =\n\t Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n\t};\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar global = __webpack_require__(9)\n\t , core = __webpack_require__(2)\n\t , ctx = __webpack_require__(14)\n\t , PROTOTYPE = 'prototype';\n\t\n\tvar $export = function(type, name, source){\n\t var IS_FORCED = type & $export.F\n\t , IS_GLOBAL = type & $export.G\n\t , IS_STATIC = type & $export.S\n\t , IS_PROTO = type & $export.P\n\t , IS_BIND = type & $export.B\n\t , IS_WRAP = type & $export.W\n\t , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n\t , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n\t , key, own, out;\n\t if(IS_GLOBAL)source = name;\n\t for(key in source){\n\t // contains in native\n\t own = !IS_FORCED && target && key in target;\n\t if(own && key in exports)continue;\n\t // export native or passed\n\t out = own ? target[key] : source[key];\n\t // prevent global pollution for namespaces\n\t exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n\t // bind timers to global for call from export context\n\t : IS_BIND && own ? ctx(out, global)\n\t // wrap global constructors for prevent change them in library\n\t : IS_WRAP && target[key] == out ? (function(C){\n\t var F = function(param){\n\t return this instanceof C ? new C(param) : C(param);\n\t };\n\t F[PROTOTYPE] = C[PROTOTYPE];\n\t return F;\n\t // make static versions for prototype methods\n\t })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n\t if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n\t }\n\t};\n\t// type bitmap\n\t$export.F = 1; // forced\n\t$export.G = 2; // global\n\t$export.S = 4; // static\n\t$export.P = 8; // proto\n\t$export.B = 16; // bind\n\t$export.W = 32; // wrap\n\tmodule.exports = $export;\n\n/***/ },\n/* 5 */\n/***/ function(module, exports) {\n\n\tmodule.exports = {};\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar isObject = __webpack_require__(17);\n\tmodule.exports = function(it){\n\t if(!isObject(it))throw TypeError(it + ' is not an object!');\n\t return it;\n\t};\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// Thank's IE8 for his funny defineProperty\n\tmodule.exports = !__webpack_require__(8)(function(){\n\t return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n\t});\n\n/***/ },\n/* 8 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(exec){\n\t try {\n\t return !!exec();\n\t } catch(e){\n\t return true;\n\t }\n\t};\n\n/***/ },\n/* 9 */\n/***/ function(module, exports) {\n\n\t// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\n\tvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n\t ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\n\tif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n/***/ },\n/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar $ = __webpack_require__(1)\n\t , createDesc = __webpack_require__(30);\n\tmodule.exports = __webpack_require__(7) ? function(object, key, value){\n\t return $.setDesc(object, key, createDesc(1, value));\n\t} : function(object, key, value){\n\t object[key] = value;\n\t return object;\n\t};\n\n/***/ },\n/* 11 */,\n/* 12 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\texports.default = function (instance, Constructor) {\n\t if (!(instance instanceof Constructor)) {\n\t throw new TypeError(\"Cannot call a class as a function\");\n\t }\n\t};\n\n/***/ },\n/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _defineProperty = __webpack_require__(56);\n\t\n\tvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = function () {\n\t function defineProperties(target, props) {\n\t for (var i = 0; i < props.length; i++) {\n\t var descriptor = props[i];\n\t descriptor.enumerable = descriptor.enumerable || false;\n\t descriptor.configurable = true;\n\t if (\"value\" in descriptor) descriptor.writable = true;\n\t (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n\t }\n\t }\n\t\n\t return function (Constructor, protoProps, staticProps) {\n\t if (protoProps) defineProperties(Constructor.prototype, protoProps);\n\t if (staticProps) defineProperties(Constructor, staticProps);\n\t return Constructor;\n\t };\n\t}();\n\n/***/ },\n/* 14 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// optional / simple context binding\n\tvar aFunction = __webpack_require__(72);\n\tmodule.exports = function(fn, that, length){\n\t aFunction(fn);\n\t if(that === undefined)return fn;\n\t switch(length){\n\t case 1: return function(a){\n\t return fn.call(that, a);\n\t };\n\t case 2: return function(a, b){\n\t return fn.call(that, a, b);\n\t };\n\t case 3: return function(a, b, c){\n\t return fn.call(that, a, b, c);\n\t };\n\t }\n\t return function(/* ...args */){\n\t return fn.apply(that, arguments);\n\t };\n\t};\n\n/***/ },\n/* 15 */\n/***/ function(module, exports) {\n\n\t// 7.2.1 RequireObjectCoercible(argument)\n\tmodule.exports = function(it){\n\t if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n\t return it;\n\t};\n\n/***/ },\n/* 16 */\n/***/ function(module, exports) {\n\n\tvar hasOwnProperty = {}.hasOwnProperty;\n\tmodule.exports = function(it, key){\n\t return hasOwnProperty.call(it, key);\n\t};\n\n/***/ },\n/* 17 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(it){\n\t return typeof it === 'object' ? it !== null : typeof it === 'function';\n\t};\n\n/***/ },\n/* 18 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar def = __webpack_require__(1).setDesc\n\t , has = __webpack_require__(16)\n\t , TAG = __webpack_require__(3)('toStringTag');\n\t\n\tmodule.exports = function(it, tag, stat){\n\t if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});\n\t};\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// to indexed object, toObject with fallback for non-array-like ES3 strings\n\tvar IObject = __webpack_require__(40)\n\t , defined = __webpack_require__(15);\n\tmodule.exports = function(it){\n\t return IObject(defined(it));\n\t};\n\n/***/ },\n/* 20 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar $at = __webpack_require__(88)(true);\n\t\n\t// 21.1.3.27 String.prototype[@@iterator]()\n\t__webpack_require__(29)(String, 'String', function(iterated){\n\t this._t = String(iterated); // target\n\t this._i = 0; // next index\n\t// 21.1.5.2.1 %StringIteratorPrototype%.next()\n\t}, function(){\n\t var O = this._t\n\t , index = this._i\n\t , point;\n\t if(index >= O.length)return {value: undefined, done: true};\n\t point = $at(O, index);\n\t this._i += point.length;\n\t return {value: point, done: false};\n\t});\n\n/***/ },\n/* 21 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(92);\n\tvar Iterators = __webpack_require__(5);\n\tIterators.NodeList = Iterators.HTMLCollection = Iterators.Array;\n\n/***/ },\n/* 22 */,\n/* 23 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_WRAPPED_NODE = exports.ATTR_DATA_ORIGINAL_OFFSET_START = undefined;\n\t\n\tvar _getPrototypeOf = __webpack_require__(37);\n\t\n\tvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\t\n\tvar _classCallCheck2 = __webpack_require__(12);\n\t\n\tvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\t\n\tvar _createClass2 = __webpack_require__(13);\n\t\n\tvar _createClass3 = _interopRequireDefault(_createClass2);\n\t\n\tvar _possibleConstructorReturn2 = __webpack_require__(39);\n\t\n\tvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\t\n\tvar _inherits2 = __webpack_require__(38);\n\t\n\tvar _inherits3 = _interopRequireDefault(_inherits2);\n\t\n\tvar _RenderResult = __webpack_require__(34);\n\t\n\tvar _RenderResult2 = _interopRequireDefault(_RenderResult);\n\t\n\tvar _RenderingEvents2 = __webpack_require__(35);\n\t\n\tvar _RenderingEvents3 = _interopRequireDefault(_RenderingEvents2);\n\t\n\tvar _Util = __webpack_require__(24);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar TAG_NAME = 'x-marker';\n\t/**\n\t * @type {string}\n\t */\n\t/* global Node */\n\t\n\tvar ATTR_DATA_ORIGINAL_OFFSET_START = exports.ATTR_DATA_ORIGINAL_OFFSET_START = 'data-original-offset-start';\n\t/**\n\t * @type {string}\n\t */\n\tvar DATA_ORIGINAL_TEXT_NODE_INDEX = 'original-text-node-index';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_START_END = 'data-is-start-end';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_IS_HIGHLIGHT_NODE = 'data-is-highlight-node';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_ID = 'data-selection-id';\n\t\n\t/**\n\t * @see https://developer.mozilla.org/de/docs/Web/API/Node/compareDocumentPosition\n\t * @type {number}\n\t */\n\tvar DOCUMENT_POSITION_CONTAINED_BY = 16;\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_WRAPPED_NODE = exports.EVENT_WRAPPED_NODE = 'wrapped-node';\n\t\n\t/**\n\t * Manages a single Render\n\t */\n\t\n\tvar Rendering = function (_RenderingEvents) {\n\t (0, _inherits3.default)(Rendering, _RenderingEvents);\n\t\n\t\n\t /**\n\t * @param {Document} document\n\t * @param {object} options\n\t * @param {Node} context\n\t */\n\t\n\t function Rendering(document, options, context) {\n\t (0, _classCallCheck3.default)(this, Rendering);\n\t\n\t\n\t /**\n\t * ID of rendering, will be set on each element that is part of it\n\t * @type {String}\n\t */\n\t\n\t var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(Rendering).call(this, options, document));\n\t\n\t _this.id = _Util2.default.guid();\n\t\n\t /**\n\t * StartContainer\n\t * @type {Node}\n\t */\n\t _this.startContainer = null;\n\t\n\t /**\n\t * EndContainer\n\t * @type {Node}\n\t */\n\t _this.endContainer = null;\n\t\n\t /**\n\t * @type {Node}\n\t */\n\t _this.context = context || _this.document;\n\t\n\t /**\n\t * Flag if this instance has been rendered\n\t * @type {RenderResult}\n\t * @private\n\t */\n\t _this._renderResult = null;\n\t return _this;\n\t }\n\t\n\t /**\n\t * @returns {string} id of this rendering\n\t */\n\t\n\t\n\t (0, _createClass3.default)(Rendering, [{\n\t key: 'getId',\n\t value: function getId() {\n\t return this.id;\n\t }\n\t\n\t /**\n\t * @param {string} id\n\t * @returns {Rendering}\n\t */\n\t\n\t }, {\n\t key: 'setId',\n\t value: function setId(id) {\n\t var _this2 = this;\n\t\n\t this.id = id;\n\t\n\t if (this._renderResult) {\n\t this.wrapperNodes.forEach(function (node) {\n\t return node.setAttribute(ATTR_DATA_ID, _this2.id);\n\t });\n\t }\n\t\n\t return this;\n\t }\n\t\n\t /**\n\t * Creates a Template used as a wrapper and an indication that this is a highlight node\n\t * @param {Boolean} [omitHighlight]\n\t * @returns {Node}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_createWrapTemplate',\n\t value: function _createWrapTemplate(omitHighlight) {\n\t var el = this.document.createElement(TAG_NAME);\n\t var vTrue = \"true\";\n\t\n\t if (!omitHighlight) {\n\t el.className = this.options.className.join(' ');\n\t // save this marker instance to given node\n\t Rendering.setMarklibInstance(el, this);\n\t // keep track of highlight nodes\n\t this.wrapperNodes.push(el);\n\t el.setAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE, vTrue);\n\t el.setAttribute(ATTR_DATA_ID, this.getId());\n\t }\n\t el.setAttribute(_Util.DATA_IS_SELECTION, vTrue);\n\t\n\t return el;\n\t }\n\t\n\t /**\n\t * Creates a Template to use as start and end marks\n\t * @param {String} text\n\t * @returns {Node}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_createStartEndWrapTemplate',\n\t value: function _createStartEndWrapTemplate(text) {\n\t var el = this._createWrapTemplate();\n\t el.setAttribute(ATTR_DATA_START_END, 'true');\n\t el.textContent = text;\n\t return el;\n\t }\n\t\n\t /**\n\t * Creates Start or End Container Element\n\t * @param initialNode\n\t * @param text\n\t * @param offset\n\t * @param index\n\t * @returns {Node}\n\t */\n\t\n\t }, {\n\t key: '_createStartOrEndContainer',\n\t value: function _createStartOrEndContainer(initialNode, text, offset, index) {\n\t var wrapper = this._createStartEndWrapTemplate(text);\n\t wrapper.setAttribute(_Util.ATTR_DATA_ORIGINAL_INDEX, _Util2.default.getIndexParentIfHas(initialNode, index));\n\t wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n\t wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n\t\n\t return wrapper;\n\t }\n\t\n\t /**\n\t * Wraps given element\n\t * @param {Node|HTMLElement} el\n\t * @param [optionalLength]\n\t * @param [optionalIndex]\n\t * @param [optionalIsSameNode]\n\t * @param {Boolean} [omitHighlight] set to true to prevent node to be a highlight node\n\t * @returns {Node}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_createWrap',\n\t value: function _createWrap(el, optionalLength, optionalIndex, optionalIsSameNode, omitHighlight) {\n\t var originalIndex = optionalIndex >= 0 ? optionalIndex : _Util2.default.calcIndex(el);\n\t var wrapper = this._createWrapTemplate(omitHighlight);\n\t wrapper.setAttribute(_Util.ATTR_DATA_ORIGINAL_INDEX, _Util2.default.getIndexParentIfHas(el, originalIndex));\n\t var offsetLength = optionalLength >= 0 ? optionalLength : _Util2.default.getOffsetParentIfHas(el);\n\t wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offsetLength);\n\t\n\t // Save a reference to original text node in wrapper\n\t wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, originalIndex);\n\t\n\t if (optionalIsSameNode) {\n\t wrapper.setAttribute(ATTR_DATA_START_END, ATTR_DATA_START_END);\n\t }\n\t var wrap = _Util2.default.wrap(el, wrapper);\n\t\n\t this.emit(EVENT_WRAPPED_NODE, el, wrap);\n\t\n\t return wrap;\n\t }\n\t\n\t /**\n\t * Create split container element\n\t * @param originalElement {Node} original text node element that is created a wrapper for\n\t * @param index\n\t * @param offset\n\t * @returns {Node}\n\t */\n\t\n\t }, {\n\t key: '_createSplitContainer',\n\t value: function _createSplitContainer(originalElement, index, offset) {\n\t var wrapper = this.document.createElement(TAG_NAME);\n\t wrapper.setAttribute(_Util.DATA_IS_SELECTION, 'true');\n\t wrapper.setAttribute(_Util.ATTR_DATA_ORIGINAL_INDEX, _Util2.default.getIndexParentIfHas(originalElement, index));\n\t wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n\t wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n\t return wrapper;\n\t }\n\t\n\t /**\n\t * Walks the tree\n\t * @param start\n\t * @param endContainer\n\t * @param nextParent\n\t */\n\t\n\t }, {\n\t key: 'walk',\n\t value: function walk(start, endContainer, nextParent) {\n\t var nextParentNode = start;\n\t while (nextParentNode && nextParentNode !== nextParent.parentNode) {\n\t var currentParentNode = nextParentNode;\n\t nextParentNode = nextParentNode.parentNode;\n\t if (this.wrapSiblings(currentParentNode.nextSibling, endContainer)) {\n\t break;\n\t }\n\t }\n\t }\n\t\n\t /**\n\t * Will Wrap all textNode siblings of a container (start) inside a defined Element (like a span)\n\t * If an Element node is found, it will wrap all children of this node inside a element as well.\n\t * It will stop if endContainer is found as a node\n\t *\n\t * @param {Node} start\n\t * @param {Node} endContainer\n\t * @returns {boolean} (true if endContainer was found)\n\t */\n\t\n\t }, {\n\t key: 'wrapSiblings',\n\t value: function wrapSiblings(start, endContainer) {\n\t var _this3 = this;\n\t\n\t var next = start;\n\t var found = false;\n\t\n\t // Capsule some logic\n\t var wrap = function wrap(n) {\n\t var instance = Rendering.getMarklibInstance(n.parentNode);\n\t if (n.parentNode.hasAttribute(ATTR_DATA_START_END) && n.parentNode.hasAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE) && instance === _this3) {\n\t _this3._createWrap(n, undefined, undefined, undefined, true);\n\t } else {\n\t _this3._createWrap(n);\n\t }\n\t };\n\t\n\t // helper functions\n\t\n\t var wrapIf = function wrapIf(n) {\n\t if (!_Util2.default.nodeIsEmpty(n)) {\n\t wrap(n);\n\t }\n\t };\n\t\n\t var walkIfContained = function walkIfContained(e) {\n\t if (e === endContainer) {\n\t return false;\n\t }\n\t if (Node.TEXT_NODE === e.nodeType) {\n\t wrapIf(e);\n\t }\n\t return true;\n\t };\n\t\n\t var walkIfNotContained = function walkIfNotContained(el) {\n\t wrapIf(el);\n\t };\n\t\n\t while (next !== null && next !== endContainer) {\n\t var currentNext = next;\n\t next = next.nextSibling;\n\t // Found a text node, directly wrap inside a span\n\t if (Node.TEXT_NODE === currentNext.nodeType) {\n\t wrapIf(currentNext);\n\t } else {\n\t if (currentNext.compareDocumentPosition(endContainer) & DOCUMENT_POSITION_CONTAINED_BY) {\n\t _Util2.default.walkDom(currentNext, walkIfContained);\n\t found = true;\n\t } else {\n\t _Util2.default.walkTextNodes(currentNext, walkIfNotContained);\n\t }\n\t if (found) {\n\t return true;\n\t }\n\t }\n\t }\n\t return found;\n\t }\n\t\n\t /**\n\t * Marks text of the same node\n\t * @param {Node} textNode\n\t * @param {int} startIndex\n\t * @param {int} endIndex\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_markTextSameNode',\n\t value: function _markTextSameNode(textNode, startIndex, endIndex) {\n\t var initialText = textNode.nodeValue;\n\t var initialIndex = _Util2.default.calcIndex(textNode);\n\t\n\t if (!initialText) {\n\t return false;\n\t }\n\t // If there is an unmarked part in the beginning of the text node,\n\t // cut off that part and put it into it's own textnode.\n\t if (startIndex > 0) {\n\t var textBefore = initialText.slice(0, startIndex);\n\t textNode.parentNode.insertBefore(this.document.createTextNode(textBefore), textNode);\n\t // wrap cutted text node:\n\t _Util2.default.wrap(textNode.previousSibling, this._createSplitContainer(textNode, initialIndex, _Util2.default.getOffsetParentIfHas(textNode)));\n\t }\n\t // If there is an unmarked part at the end of the text node,\n\t // cut off that part and put it into it's own textnode.\n\t if (endIndex < initialText.length) {\n\t var textAfter = initialText.slice(endIndex, initialText.length);\n\t textNode.parentNode.insertBefore(this.document.createTextNode(textAfter), textNode.nextSibling);\n\t _Util2.default.wrap(textNode.nextSibling, this._createSplitContainer(textNode, initialIndex, _Util2.default.getOffsetParentIfHas(textNode) + endIndex));\n\t }\n\t\n\t // Cutoff the unmarked parts and wrap the textnode into a span.\n\t textNode.nodeValue = initialText.slice(startIndex, endIndex);\n\t this.startContainer = this._createWrap(textNode, _Util2.default.getOffsetParentIfHas(textNode) + startIndex, initialIndex, true).parentNode;\n\t this.endContainer = this.startContainer;\n\t return this.startContainer;\n\t }\n\t\n\t /**\n\t * Marks text of end and start containers if start and end nodes are different\n\t * Important: There might be no end container!\n\t *\n\t * @param {Node} startContainer\n\t * @param {Node} endContainer\n\t * @param {int} startOffset\n\t * @param {int} endOffset\n\t * @returns {{startT: (Node), endT: (Node)}}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_markTextDifferentNode',\n\t value: function _markTextDifferentNode(startContainer, endContainer, startOffset, endOffset) {\n\t // Get current for both start and end:\n\t var startContainerIndex = _Util2.default.calcIndex(startContainer);\n\t var endContainerIndex = _Util2.default.calcIndex(endContainer);\n\t\n\t // Split text\n\t var fullTextStartValue = startContainer.nodeValue;\n\t // init with startContainer because we may have not a text node here\n\t var startT = startContainer;\n\t\n\t if (undefined !== fullTextStartValue) {\n\t var partTextStartValue = fullTextStartValue.slice(startOffset, fullTextStartValue.length);\n\t // Set new text to start node\n\t startContainer.nodeValue = fullTextStartValue.slice(0, startOffset);\n\t\n\t var offsetStart = _Util2.default.getOffsetParentIfHas(startContainer);\n\t // Create a new node for splitted text, offset is the length of new startContainer.nodeValue:\n\t startT = this._createStartOrEndContainer(startContainer, partTextStartValue, offsetStart === startOffset ? offsetStart : offsetStart + startOffset, startContainerIndex);\n\t // Append this node after startContainer\n\t startContainer.parentNode.insertBefore(startT, startContainer.nextSibling);\n\t this.startContainer = startT;\n\t\n\t if (startContainer.nodeValue) {\n\t // Wrap start container in detection node, offset is always 0 or parent offset.\n\t _Util2.default.wrap(startContainer, this._createSplitContainer(startContainer, startContainerIndex, _Util2.default.getOffsetParentIfHas(startContainer)));\n\t }\n\t }\n\t\n\t // init with endContainer because we may have not a text node here\n\t var endT = endContainer;\n\t\n\t // 2. Extract end Text node,\n\t var fullTextEndValue = endContainer.nodeValue;\n\t // It's possible that end container value is null (if a whole paragraph is marked)\n\t if (undefined !== fullTextEndValue) {\n\t // Split text\n\t var partTextEndValue = fullTextEndValue.slice(0, endOffset);\n\t endContainer.nodeValue = fullTextEndValue.slice(endOffset, fullTextEndValue.length);\n\t // End Container start offset is always 0 or parent offset.\n\t endT = this._createStartOrEndContainer(endContainer, partTextEndValue, _Util2.default.getOffsetParentIfHas(endContainer), endContainerIndex);\n\t\n\t endContainer.parentNode.insertBefore(endT, endContainer);\n\t this.endContainer = endT;\n\t var offsetParent = _Util2.default.getOffsetParentIfHas(endContainer);\n\t _Util2.default.wrap(endContainer, this._createSplitContainer(endContainer, endContainerIndex, offsetParent === endOffset ? offsetParent : offsetParent + endOffset));\n\t }\n\t\n\t return {\n\t startT: startT,\n\t endT: endT\n\t };\n\t }\n\t\n\t /**\n\t * Renders a selection\n\t * @param {Node} startContainerP\n\t * @param {Node} endContainerP\n\t * @param {Node} commonAncestor\n\t * @param {int} startOffset\n\t * @param {int} endOffsetP\n\t * @returns RenderResult\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_renderWithElements',\n\t value: function _renderWithElements(startContainerP, endContainerP, commonAncestor, startOffset, endOffsetP) {\n\t if (this._renderResult) {\n\t return this._renderResult;\n\t }\n\t var startContainer = startContainerP;\n\t var endContainer = endContainerP;\n\t var endOffset = endOffsetP;\n\t var outer = _Util2.default.parents(startContainer, commonAncestor);\n\t outer = outer[outer.length - 1];\n\t var contextContainer = outer ? outer : commonAncestor;\n\t\n\t // Same Element, means the selection is fully contained in a discrete area, start and endpoint have the same parent\n\t // but are different nodes:\n\t\n\t // Start and End offset have to be recalculated because dom might be already changed by highlighting in given node\n\t // 1: First detect real start offset in startContainer:\n\t\n\t // That works by selecting the highest wrapper and get original-offset-start data element, see \"findOriginalOffset\"\n\t // So first select that container:\n\t var originalStartOffset = _Util2.default.findOriginalOffset(startContainer);\n\t var originalEndOffset = _Util2.default.findOriginalOffset(endContainer);\n\t\n\t // We may run into Browser Bugs:\n\t\n\t // If both are not text nodes, use next sibling as endContainer\n\t if (startContainer.nodeType !== Node.TEXT_NODE && endContainer.nodeType !== Node.TEXT_NODE) {\n\t if (startContainer === endContainer) {\n\t endContainer = endContainer.nextElementSibling || endContainer;\n\t }\n\t }\n\t // IF start/end container is not type of text, select first child text node:\n\t // We run in some bugs with firefox here that selects no text-nodes sometimes, trying to fix this here\n\t // Sometimes does not work correctly... (specially when DOM was modified)\n\t if (startContainer.nodeType !== Node.TEXT_NODE) {\n\t _Util2.default.walkDom(startContainer, function (el) {\n\t if (el.nodeType === Node.TEXT_NODE) {\n\t startContainer = el;\n\t return false;\n\t }\n\t return true;\n\t });\n\t }\n\t\n\t if (endContainer.nodeType !== Node.TEXT_NODE) {\n\t var toFindNode = startContainer;\n\t\n\t if (endOffset === 0) {\n\t toFindNode = endContainer.previousElementSibling || startContainer;\n\t }\n\t\n\t // Get the last text node:\n\t var endContainerContents = _Util2.default.closest(toFindNode, ':not([' + _Util.DATA_IS_SELECTION + '])').childNodes;\n\t if (endContainerContents.length) {\n\t var r = endContainerContents[endContainerContents.length - 1];\n\t if (r.nodeType === Node.TEXT_NODE) {\n\t endContainer = r;\n\t endOffset = r.length;\n\t } else {\n\t var f = r.lastChild;\n\t while (f !== null) {\n\t if (f && f.nodeType === Node.TEXT_NODE) {\n\t endContainer = f;\n\t endOffset = f.length;\n\t if (f.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n\t endOffset = parseInt(f.parentNode.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) + endOffset;\n\t }\n\t }\n\t f = f.lastChild;\n\t }\n\t }\n\t }\n\t // still no textNode?\n\t if (endContainer.nodeType !== Node.TEXT_NODE) {\n\t throw Error('Could not found endContainer, highlighting would be unstable');\n\t }\n\t }\n\t\n\t this._renderResult = new _RenderResult2.default(\n\t // Real offset is calculated by relative length and absolute length\n\t originalStartOffset + startOffset, originalEndOffset + endOffset,\n\t // get the path for this selection\n\t _Util2.default.getPath(startContainer, this.context), _Util2.default.getPath(endContainer, this.context));\n\t\n\t this._renderResult.instance = this;\n\t\n\t this._renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, !!outer);\n\t\n\t return this._renderResult;\n\t }\n\t\n\t /**\n\t * Renders a given selection\n\t *\n\t * @param {Node} startContainer\n\t * @param {Node} endContainer\n\t * @param {int} startOffset\n\t * @param {int} endOffset\n\t * @param {Node} contextContainer\n\t * @param {Boolean} outer\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_renderSelection',\n\t value: function _renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, outer) {\n\t // if start and end-container are the same, mark text on the same node\n\t if (startContainer === endContainer) {\n\t this._markTextSameNode(startContainer, startOffset, endOffset);\n\t } else {\n\t var result = this._markTextDifferentNode(startContainer, endContainer, startOffset, endOffset);\n\t var index = this.wrapperNodes.indexOf(result.endT);\n\t // remove endContainer, to keep order:\n\t this.wrapperNodes.splice(index, 1);\n\t if (!outer) {\n\t this.wrapSiblings(result.startT.nextSibling, endContainer);\n\t } else {\n\t this.walk(result.startT, endContainer, contextContainer);\n\t }\n\t this.wrapperNodes.push(result.endT);\n\t }\n\t }\n\t\n\t /**\n\t * Prepares to render a Selection with path selectors\n\t * ```\n\t * A Path looks like this:\n\t *\n\t * #selector;#textnode;#offset\n\t * ``\n\t * @param {string} startPath\n\t * @param {string} endPath\n\t * @returns {string}\n\t */\n\t\n\t }, {\n\t key: 'renderWithPath',\n\t value: function renderWithPath(startPath, endPath) {\n\t var startContainer = _Util2.default.deserializePath(startPath, this.context);\n\t var endContainer = _Util2.default.deserializePath(endPath, this.context);\n\t if (startContainer && endContainer && startContainer.node && endContainer.node) {\n\t var range = document.createRange();\n\t range.setStart(startContainer.node, startContainer.offset);\n\t range.setEnd(endContainer.node, endContainer.offset);\n\t var text = range.toString();\n\t var result = this.renderWithRange(range);\n\t result.text = text;\n\t return text;\n\t }\n\t throw new Error('Could not find start- and/or end-container in document');\n\t }\n\t\n\t /**\n\t * @returns {RenderResult}\n\t */\n\t\n\t }, {\n\t key: 'renderWithResult',\n\t\n\t\n\t /**\n\t * Renders a result (that returned from `renderWithRange`)\n\t * @param {RenderResult|Object} result\n\t * @returns {string}\n\t */\n\t value: function renderWithResult(result) {\n\t return this.renderWithPath(result.startContainerPath + ';' + result.startOffset, result.endContainerPath + ';' + result.endOffset);\n\t }\n\t\n\t /**\n\t * Prepares a selection with a range object\n\t * @param {Range} range\n\t * @returns {Object}\n\t */\n\t\n\t }, {\n\t key: 'renderWithRange',\n\t value: function renderWithRange(range) {\n\t var text = range.toString();\n\t var result = this._renderWithElements(range.startContainer, range.endContainer, range.commonAncestorContainer, range.startOffset, range.endOffset);\n\t result.text = text;\n\t return result;\n\t }\n\t\n\t /**\n\t * Removes bindings and classNames to nodes\n\t */\n\t\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t this.wrapperNodes.forEach(function (node) {\n\t delete node.marklibInstance;\n\t node.className = '';\n\t });\n\t this.removeEvent();\n\t }\n\t\n\t /**\n\t * @param {Node} el\n\t * @param {Rendering} instance\n\t * @returns {Node}\n\t */\n\t\n\t }, {\n\t key: 'result',\n\t get: function get() {\n\t return this._renderResult;\n\t }\n\t }], [{\n\t key: 'setMarklibInstance',\n\t value: function setMarklibInstance(el, instance) {\n\t el.marklibInstance = instance;\n\t return el;\n\t }\n\t\n\t /**\n\t * @param {Node} el\n\t * @returns {Rendering|null|undefined}\n\t */\n\t\n\t }, {\n\t key: 'getMarklibInstance',\n\t value: function getMarklibInstance(el) {\n\t return el ? el.marklibInstance : null;\n\t }\n\t }]);\n\t return Rendering;\n\t}(_RenderingEvents3.default);\n\t\n\texports.default = Rendering;\n\n/***/ },\n/* 24 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.DATA_IS_SELECTION = exports.ATTR_DATA_ORIGINAL_INDEX = undefined;\n\t\n\tvar _classCallCheck2 = __webpack_require__(12);\n\t\n\tvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\t\n\tvar _createClass2 = __webpack_require__(13);\n\t\n\tvar _createClass3 = _interopRequireDefault(_createClass2);\n\t\n\tvar _Rendering = __webpack_require__(23);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/* global Node, NodeList, Element */\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_ORIGINAL_INDEX = exports.ATTR_DATA_ORIGINAL_INDEX = 'data-original-index';\n\t/**\n\t * @type {string}\n\t */\n\tvar DATA_IS_SELECTION = exports.DATA_IS_SELECTION = 'data-is-selection';\n\t/**\n\t * @type {string}\n\t */\n\tvar SERIALIZE_SEPARATOR = \";\";\n\t\n\t// polyfill for matchesSelector, IE 10/11 does not support Element.matches\n\tif (Element && !Element.prototype.matches) {\n\t var p = Element.prototype;\n\t p.matches = p.matchesSelector || p.mozMatchesSelector || p.msMatchesSelector || p.oMatchesSelector || p.webkitMatchesSelector;\n\t}\n\t\n\t/**\n\t * Utility class\n\t * Contains DOM/Node manipulation helpers\n\t */\n\t\n\tvar Util = function () {\n\t function Util() {\n\t (0, _classCallCheck3.default)(this, Util);\n\t }\n\t\n\t (0, _createClass3.default)(Util, null, [{\n\t key: 'nodeListFilter',\n\t\n\t\n\t /**\n\t * Filter for a NodeList\n\t * @param {NodeList} nodes\n\t * @param {Function} func\n\t *\n\t * @returns {Array.}\n\t */\n\t value: function nodeListFilter(nodes, func) {\n\t return Array.prototype.filter.call(nodes || [], func);\n\t }\n\t\n\t /**\n\t * Generates a unique id\n\t *\n\t * @return {String}\n\t */\n\t\n\t }, {\n\t key: 'guid',\n\t value: function guid() {\n\t var s4 = function s4() {\n\t return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);\n\t };\n\t return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();\n\t }\n\t\n\t /**\n\t * Checks if a given node is empty\n\t * @param {HTMLElement} node\n\t *\n\t * @returns {*}\n\t */\n\t\n\t }, {\n\t key: 'nodeIsEmpty',\n\t value: function nodeIsEmpty(node) {\n\t return node.nodeValue.match(/^[\\s]*$/g);\n\t }\n\t\n\t /**\n\t * @param {HTMLElement} node\n\t * @param [optionalList]\n\t *\n\t * @return {int} the index of this node in context to it's siblings\n\t */\n\t\n\t }, {\n\t key: 'index',\n\t value: function index(node, optionalList) {\n\t var children = optionalList || (node.nodeType === Node.TEXT_NODE ? node.parentNode.childNodes : node.parentNode.children);\n\t return Array.prototype.indexOf.call(children || [], node);\n\t }\n\t\n\t /**\n\t * Wraps given `elms` in given `wrapper`\n\t *\n\t * @param {HTMLElement|Array.|Node} elms\n\t * @param {HTMLElement|Node} wrapper\n\t *\n\t * @return {HTMLElement}\n\t */\n\t\n\t }, {\n\t key: 'wrap',\n\t value: function wrap(elms, wrapper) {\n\t var thisElms = elms;\n\t\n\t if (!thisElms) {\n\t return wrapper;\n\t }\n\t // Convert `elms` to an array, if necessary.\n\t if (!(thisElms instanceof NodeList || thisElms instanceof Array)) {\n\t thisElms = [thisElms];\n\t }\n\t for (var i = thisElms.length - 1; i >= 0; i--) {\n\t var child = i > 0 ? wrapper.cloneNode(true) : wrapper;\n\t var el = thisElms[i];\n\t // Cache the current parent and sibling.\n\t var parent = el.parentNode;\n\t var sibling = el.nextSibling;\n\t\n\t child.appendChild(el);\n\t if (sibling) {\n\t parent.insertBefore(child, sibling);\n\t } else {\n\t parent.appendChild(child);\n\t }\n\t }\n\t return wrapper;\n\t }\n\t\n\t /**\n\t * Will calculate an index depending on an already modified dom by marklib\n\t * @param {HTMLElement|Node} node\n\t *\n\t * @returns {int|boolean}\n\t */\n\t\n\t }, {\n\t key: 'calcIndex',\n\t value: function calcIndex(node) {\n\t var calculatedIndex = 0;\n\t var foundWrapper = false;\n\t var nodes = node.parentNode.childNodes;\n\t var length = nodes.length;\n\t for (var thisIndex = 0; thisIndex < length; thisIndex++) {\n\t var el = nodes[thisIndex];\n\t if (el === node) {\n\t break;\n\t }\n\t // reset index when original index is found\n\t var maybeIndexOfOriginal = el.getAttribute ? el.getAttribute(ATTR_DATA_ORIGINAL_INDEX) : null;\n\t\n\t if (maybeIndexOfOriginal) {\n\t calculatedIndex = parseInt(maybeIndexOfOriginal, 10);\n\t foundWrapper = true;\n\t }\n\t calculatedIndex++;\n\t }\n\t return foundWrapper ? calculatedIndex : Util.index(node);\n\t }\n\t\n\t /**\n\t * @param {HTMLElement|Node} el\n\t * @param {String} [optionalSelector] will test given element against a selector\n\t * if matches, returns this element immediately\n\t *\n\t * @return {Array.} an array of all found parents of given element (and optional selector)\n\t */\n\t\n\t }, {\n\t key: 'parents',\n\t value: function parents(el, optionalSelector) {\n\t return Util.parentsCallback(el, function (element) {\n\t if (optionalSelector && (element === optionalSelector || typeof optionalSelector === 'string' && element.matches && element.matches(optionalSelector))) {\n\t return true;\n\t } else if (!optionalSelector) {\n\t return true;\n\t }\n\t return false;\n\t });\n\t }\n\t\n\t /**\n\t * @param {HTMLElement|Node} el\n\t * @param {Function} callback\n\t * @return {Array.} an array of all found parents of given element (and optional selector)\n\t */\n\t\n\t }, {\n\t key: 'parentsCallback',\n\t value: function parentsCallback(el, callback) {\n\t var element = el;\n\t var foundElements = [];\n\t while (element.parentNode !== null) {\n\t element = element.parentNode;\n\t if (callback(element)) {\n\t foundElements.push(element);\n\t }\n\t }\n\t return foundElements;\n\t }\n\t\n\t /**\n\t * Finds a parent node (the closest) with a given selector\n\t * @param {Node} el\n\t * @param {String} selector\n\t *\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: 'parent',\n\t value: function parent(el, selector) {\n\t var element = el;\n\t while (element.parentNode !== null) {\n\t element = element.parentNode;\n\t if (element.matches && element.matches(selector)) {\n\t return element;\n\t }\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Finds the closest element including itself matching a given selector\n\t * @param {Node} el\n\t * @param selector\n\t *\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: 'closest',\n\t value: function closest(el, selector) {\n\t return Util.closestCallback(el, function (element) {\n\t return element.matches && element.matches(selector);\n\t });\n\t }\n\t\n\t /**\n\t * Finds the closest element including itself matching a callback\n\t * @param {Node} el\n\t * @param {Function} callback\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: 'closestCallback',\n\t value: function closestCallback(el, callback) {\n\t var element = el;\n\t while (element !== null) {\n\t if (callback(element)) {\n\t return element;\n\t }\n\t element = element.parentNode;\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Finds the outermost fitting element that matches callback\n\t * @param {Node} el\n\t * @param {Function} callback\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: 'outerMostCallback',\n\t value: function outerMostCallback(el, callback) {\n\t var element = el;\n\t var lastValid = false;\n\t while (element !== null) {\n\t if (callback(element)) {\n\t lastValid = element;\n\t }\n\t element = element.parentNode;\n\t }\n\t return lastValid;\n\t }\n\t\n\t /**\n\t * @param {HTMLElement} n\n\t *\n\t * @return {boolean}\n\t */\n\t\n\t }, {\n\t key: 'isMarkNode',\n\t value: function isMarkNode(n) {\n\t return n instanceof HTMLElement && n.hasAttribute(DATA_IS_SELECTION);\n\t }\n\t\n\t /**\n\t * Determines the correct paths and excludes all `marklib` generated content\n\t * TODO: To improve performance we could shorten the path if an ID is present in it.\n\t * @param {HTMLElement|Node} el\n\t * @param {HTMLElement|Node} [context] if given extraction path is relative to this element\n\t * @returns {string}\n\t */\n\t\n\t }, {\n\t key: 'getPath',\n\t value: function getPath(el, context) {\n\t var path = null;\n\t var node = el;\n\t\n\t var filterSiblings = function filterSiblings(thisEl) {\n\t return !Util.isMarkNode(thisEl) && thisEl.nodeName === node.nodeName;\n\t };\n\t\n\t while (node) {\n\t var name = null;\n\t // If node is a text-node, save index\n\t if (Node.TEXT_NODE === node.nodeType) {\n\t /* Because nodes may wrapped inside a highlighting node, we need to find the original index that was\n\t * valid before the dom changes. We store the last known index position inside all wrapper elements\n\t * We select the outermost\n\t */\n\t\n\t // Extract original index of this node:\n\t // Outer most data-original-index is original index\n\t var outerMostElement = Util.parents(node, '[' + ATTR_DATA_ORIGINAL_INDEX + ']').reverse()[0];\n\t // if element is not yet wrapped in span, recalculate index based on parent container:\n\t // We have to do this because text node indexes != element indexes...\n\t var calculatedIndex = 0;\n\t if (!outerMostElement) {\n\t calculatedIndex = Util.calcIndex(node);\n\t }\n\t var index = outerMostElement ? parseInt(outerMostElement.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10) : calculatedIndex;\n\t name = SERIALIZE_SEPARATOR + index;\n\t } else {\n\t name = node.nodeName;\n\t }\n\t\n\t if (!name) {\n\t break;\n\t }\n\t\n\t name = name.toLowerCase();\n\t\n\t var parent = node.parentNode;\n\t\n\t if (Util.isMarkNode(node)) {\n\t if (parent !== context) {\n\t node = parent;\n\t continue;\n\t } else {\n\t break;\n\t }\n\t }\n\t\n\t // Select only siblings that are not part of selection and are of the same type\n\t // (because we use nth-of-type selector later)\n\t var siblings = Util.nodeListFilter(parent.children, filterSiblings);\n\t var nodeIndex = Util.index(node, siblings);\n\t\n\t if (siblings.length > 1 && nodeIndex >= 0) {\n\t name += ':nth-of-type(' + (nodeIndex + 1) + ')';\n\t }\n\t\n\t path = name + (path ? '>' + path : '');\n\t\n\t if (parent === context) {\n\t break;\n\t }\n\t\n\t node = parent;\n\t }\n\t\n\t return path.replace(\"#document>\", \"\").replace('>;', ';');\n\t }\n\t\n\t /**\n\t * Will return the first original offset value that is found\n\t * @param {Node} element\n\t *\n\t * @returns {int}\n\t */\n\t\n\t }, {\n\t key: 'findOriginalOffset',\n\t value: function findOriginalOffset(element) {\n\t if (!element.parentNode.hasAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START)) {\n\t return 0;\n\t }\n\t var lengthElement = Util.parent(element, '[' + _Rendering.ATTR_DATA_ORIGINAL_OFFSET_START + ']');\n\t return lengthElement ? parseInt(lengthElement.getAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START), 10) : 0;\n\t }\n\t\n\t /**\n\t * Deserialize a specific path and finds the right textNodes\n\t * This even works when DOM has been manipulated before by `marklib`\n\t * @param {string} path the serialized path (including offsets)\n\t * @param {Node|HTMLElement} context\n\t *\n\t * @return {Node}\n\t */\n\t\n\t }, {\n\t key: 'deserializePath',\n\t value: function deserializePath(path, context) {\n\t var pSplit = path.split(';');\n\t var p = pSplit[0];\n\t var objectIndex = parseInt(pSplit[1], 10);\n\t var charOffset = parseInt(pSplit[2], 10);\n\t var container = !p.trim() ? context : context.querySelector(p);\n\t\n\t var maybeFoundNode = null;\n\t\n\t Util.walkTextNodes(container, function (n) {\n\t var atrOffsetStart = n.parentNode.getAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START);\n\t atrOffsetStart = atrOffsetStart === null ? 0 : atrOffsetStart;\n\t var atrIndex = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_INDEX);\n\t atrIndex = atrIndex === null ? Util.calcIndex(n) : atrIndex;\n\t if (parseInt(atrIndex, 10) === objectIndex && charOffset >= atrOffsetStart && parseInt(atrOffsetStart, 10) + n.length >= charOffset) {\n\t var thisOffset = n.parentNode.hasAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START) ? charOffset - parseInt(n.parentNode.getAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START), 10) : charOffset;\n\t\n\t maybeFoundNode = {\n\t node: n,\n\t offset: thisOffset\n\t };\n\t\n\t return false;\n\t }\n\t return true;\n\t }, null);\n\t\n\t return maybeFoundNode;\n\t }\n\t\n\t /**\n\t * Walks the dom tree unless func returns false\n\t * Applies node to function\n\t *\n\t * @param {Node} node\n\t * @param {Function} func\n\t * @param {int} type, see `NodeFilter`\n\t * @param {Object} [filter] skips empty text nodes by default\n\t *\n\t * @returns {boolean} true if function did abort walk\n\t */\n\t\n\t }, {\n\t key: 'walkDom',\n\t value: function walkDom(node, func) {\n\t var _document;\n\t\n\t var type = arguments.length <= 2 || arguments[2] === undefined ? NodeFilter.SHOW_ALL : arguments[2];\n\t var filter = arguments.length <= 3 || arguments[3] === undefined ? null : arguments[3];\n\t\n\t if (!node) {\n\t return false;\n\t }\n\t var args = [node, type, filter || function () {\n\t return true;\n\t }, false];\n\t args.push(false);\n\t var walker = (_document = document).createTreeWalker.apply(_document, args);\n\t while (walker.nextNode()) {\n\t if (!func(walker.currentNode)) {\n\t return true;\n\t }\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Extracts all TextNodes inside a container\n\t * @param {Node} el\n\t * @param {Function} func\n\t * @param {Object} [filter] skips empty text nodes by default\n\t * @returns {boolean} true if function did abort walk\n\t */\n\t\n\t }, {\n\t key: 'walkTextNodes',\n\t value: function walkTextNodes(el, func) {\n\t var filter = arguments.length <= 2 || arguments[2] === undefined ? function (node) {\n\t return !Util.nodeIsEmpty(node);\n\t } : arguments[2];\n\t\n\t return Util.walkDom(el, func, NodeFilter.SHOW_TEXT, filter);\n\t }\n\t\n\t /**\n\t * @param {Node} container\n\t * @param {Number} thisIndex\n\t * @returns {int|string} index of parent or original\n\t */\n\t\n\t }, {\n\t key: 'getIndexParentIfHas',\n\t value: function getIndexParentIfHas(container, thisIndex) {\n\t var p = container.parentNode;\n\t var index = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10);\n\t return index > thisIndex ? index : thisIndex;\n\t }\n\t\n\t /**\n\t * @param container\n\t * @returns {int} offset start of parent if has, else 0\n\t */\n\t\n\t }, {\n\t key: 'getOffsetParentIfHas',\n\t value: function getOffsetParentIfHas(container) {\n\t var p = container.parentNode;\n\t var offset = parseInt(p.getAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START), 10);\n\t return offset > 0 ? offset : 0;\n\t }\n\t }]);\n\t return Util;\n\t}();\n\n\texports.default = Util;\n\n/***/ },\n/* 25 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tvar _typeof = typeof _Symbol === \"function\" && typeof _Symbol$iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _Symbol === \"function\" && obj.constructor === _Symbol ? \"symbol\" : typeof obj; };\n\t\n\texports.__esModule = true;\n\t\n\tvar _iterator = __webpack_require__(60);\n\t\n\tvar _iterator2 = _interopRequireDefault(_iterator);\n\t\n\tvar _symbol = __webpack_require__(59);\n\t\n\tvar _symbol2 = _interopRequireDefault(_symbol);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n\t return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n\t} : function (obj) {\n\t return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n\t};\n\n/***/ },\n/* 26 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// getting tag from 19.1.3.6 Object.prototype.toString()\n\tvar cof = __webpack_require__(27)\n\t , TAG = __webpack_require__(3)('toStringTag')\n\t // ES3 wrong here\n\t , ARG = cof(function(){ return arguments; }()) == 'Arguments';\n\t\n\tmodule.exports = function(it){\n\t var O, T, B;\n\t return it === undefined ? 'Undefined' : it === null ? 'Null'\n\t // @@toStringTag case\n\t : typeof (T = (O = Object(it))[TAG]) == 'string' ? T\n\t // builtinTag case\n\t : ARG ? cof(O)\n\t // ES3 arguments fallback\n\t : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n\t};\n\n/***/ },\n/* 27 */\n/***/ function(module, exports) {\n\n\tvar toString = {}.toString;\n\t\n\tmodule.exports = function(it){\n\t return toString.call(it).slice(8, -1);\n\t};\n\n/***/ },\n/* 28 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar ctx = __webpack_require__(14)\n\t , call = __webpack_require__(81)\n\t , isArrayIter = __webpack_require__(79)\n\t , anObject = __webpack_require__(6)\n\t , toLength = __webpack_require__(89)\n\t , getIterFn = __webpack_require__(48);\n\tmodule.exports = function(iterable, entries, fn, that){\n\t var iterFn = getIterFn(iterable)\n\t , f = ctx(fn, that, entries ? 2 : 1)\n\t , index = 0\n\t , length, step, iterator;\n\t if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');\n\t // fast case for arrays with default iterator\n\t if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){\n\t entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n\t } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){\n\t call(iterator, f, step.value, entries);\n\t }\n\t};\n\n/***/ },\n/* 29 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar LIBRARY = __webpack_require__(42)\n\t , $export = __webpack_require__(4)\n\t , redefine = __webpack_require__(31)\n\t , hide = __webpack_require__(10)\n\t , has = __webpack_require__(16)\n\t , Iterators = __webpack_require__(5)\n\t , $iterCreate = __webpack_require__(82)\n\t , setToStringTag = __webpack_require__(18)\n\t , getProto = __webpack_require__(1).getProto\n\t , ITERATOR = __webpack_require__(3)('iterator')\n\t , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`\n\t , FF_ITERATOR = '@@iterator'\n\t , KEYS = 'keys'\n\t , VALUES = 'values';\n\t\n\tvar returnThis = function(){ return this; };\n\t\n\tmodule.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){\n\t $iterCreate(Constructor, NAME, next);\n\t var getMethod = function(kind){\n\t if(!BUGGY && kind in proto)return proto[kind];\n\t switch(kind){\n\t case KEYS: return function keys(){ return new Constructor(this, kind); };\n\t case VALUES: return function values(){ return new Constructor(this, kind); };\n\t } return function entries(){ return new Constructor(this, kind); };\n\t };\n\t var TAG = NAME + ' Iterator'\n\t , DEF_VALUES = DEFAULT == VALUES\n\t , VALUES_BUG = false\n\t , proto = Base.prototype\n\t , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]\n\t , $default = $native || getMethod(DEFAULT)\n\t , methods, key;\n\t // Fix native\n\t if($native){\n\t var IteratorPrototype = getProto($default.call(new Base));\n\t // Set @@toStringTag to native iterators\n\t setToStringTag(IteratorPrototype, TAG, true);\n\t // FF fix\n\t if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);\n\t // fix Array#{values, @@iterator}.name in V8 / FF\n\t if(DEF_VALUES && $native.name !== VALUES){\n\t VALUES_BUG = true;\n\t $default = function values(){ return $native.call(this); };\n\t }\n\t }\n\t // Define iterator\n\t if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){\n\t hide(proto, ITERATOR, $default);\n\t }\n\t // Plug for library\n\t Iterators[NAME] = $default;\n\t Iterators[TAG] = returnThis;\n\t if(DEFAULT){\n\t methods = {\n\t values: DEF_VALUES ? $default : getMethod(VALUES),\n\t keys: IS_SET ? $default : getMethod(KEYS),\n\t entries: !DEF_VALUES ? $default : getMethod('entries')\n\t };\n\t if(FORCED)for(key in methods){\n\t if(!(key in proto))redefine(proto, key, methods[key]);\n\t } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n\t }\n\t return methods;\n\t};\n\n/***/ },\n/* 30 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(bitmap, value){\n\t return {\n\t enumerable : !(bitmap & 1),\n\t configurable: !(bitmap & 2),\n\t writable : !(bitmap & 4),\n\t value : value\n\t };\n\t};\n\n/***/ },\n/* 31 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(10);\n\n/***/ },\n/* 32 */\n/***/ function(module, exports) {\n\n\tvar id = 0\n\t , px = Math.random();\n\tmodule.exports = function(key){\n\t return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n\t};\n\n/***/ },\n/* 33 */,\n/* 34 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _classCallCheck2 = __webpack_require__(12);\n\t\n\tvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\t\n\tvar _createClass2 = __webpack_require__(13);\n\t\n\tvar _createClass3 = _interopRequireDefault(_createClass2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/**\n\t * A Render Result\n\t */\n\t\n\tvar RenderResult = function () {\n\t /**\n\t * @param {int} startOffset\n\t * @param {int} endOffset\n\t * @param {String} startContainerPath\n\t * @param {String} endContainerPath\n\t */\n\t\n\t function RenderResult(startOffset, endOffset, startContainerPath, endContainerPath) {\n\t (0, _classCallCheck3.default)(this, RenderResult);\n\t\n\t this.startOffset = startOffset;\n\t this.endOffset = endOffset;\n\t this.startContainerPath = startContainerPath;\n\t this.endContainerPath = endContainerPath;\n\t this._renderingInstance = null;\n\t }\n\t\n\t /**\n\t * @param {Object} result\n\t * @return RenderResult\n\t */\n\t\n\t\n\t (0, _createClass3.default)(RenderResult, [{\n\t key: \"serialize\",\n\t\n\t\n\t /**\n\t * @returns {Object}\n\t */\n\t value: function serialize() {\n\t return {\n\t startOffset: this.startOffset,\n\t endOffset: this.endOffset,\n\t startContainerPath: this.startContainerPath,\n\t endContainerPath: this.endContainerPath\n\t };\n\t }\n\t\n\t /**\n\t * @param {String} text\n\t */\n\t\n\t }, {\n\t key: \"text\",\n\t set: function set(text) {\n\t this._text = text;\n\t }\n\t\n\t /**\n\t * @returns {String}\n\t */\n\t ,\n\t get: function get() {\n\t return this._text;\n\t }\n\t\n\t /**\n\t * @returns {null|Rendering}\n\t */\n\t\n\t }, {\n\t key: \"instance\",\n\t get: function get() {\n\t return this._renderingInstance;\n\t }\n\t\n\t /**\n\t * @param {null|Rendering} instance\n\t */\n\t ,\n\t set: function set(instance) {\n\t this._renderingInstance = instance;\n\t }\n\t }], [{\n\t key: \"fromObject\",\n\t value: function fromObject(result) {\n\t return new RenderResult(result.startOffset, result.endOffset, result.startContainerPath, result.endContainerPath);\n\t }\n\t }]);\n\t return RenderResult;\n\t}();\n\n\texports.default = RenderResult;\n\n/***/ },\n/* 35 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_PART_TREE_LEAVE = exports.EVENT_PART_TREE_ENTER = exports.EVENT_MOUSELEAVE = exports.EVENT_MOUSEENTER = exports.EVENT_CLICK = undefined;\n\t\n\tvar _slicedToArray2 = __webpack_require__(61);\n\t\n\tvar _slicedToArray3 = _interopRequireDefault(_slicedToArray2);\n\t\n\tvar _typeof2 = __webpack_require__(25);\n\t\n\tvar _typeof3 = _interopRequireDefault(_typeof2);\n\t\n\tvar _set = __webpack_require__(58);\n\t\n\tvar _set2 = _interopRequireDefault(_set);\n\t\n\tvar _assign = __webpack_require__(54);\n\t\n\tvar _assign2 = _interopRequireDefault(_assign);\n\t\n\tvar _getPrototypeOf = __webpack_require__(37);\n\t\n\tvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\t\n\tvar _classCallCheck2 = __webpack_require__(12);\n\t\n\tvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\t\n\tvar _createClass2 = __webpack_require__(13);\n\t\n\tvar _createClass3 = _interopRequireDefault(_createClass2);\n\t\n\tvar _possibleConstructorReturn2 = __webpack_require__(39);\n\t\n\tvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\t\n\tvar _inherits2 = __webpack_require__(38);\n\t\n\tvar _inherits3 = _interopRequireDefault(_inherits2);\n\t\n\tvar _wolfy87Eventemitter = __webpack_require__(99);\n\t\n\tvar _wolfy87Eventemitter2 = _interopRequireDefault(_wolfy87Eventemitter);\n\t\n\tvar _Rendering = __webpack_require__(23);\n\t\n\tvar _Rendering2 = _interopRequireDefault(_Rendering);\n\t\n\tvar _Util = __webpack_require__(24);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_CLICK = exports.EVENT_CLICK = 'click';\n\t\n\t/**\n\t * @type {string}\n\t */\n\t/* global Set */\n\t\n\tvar EVENT_MOUSEENTER = exports.EVENT_MOUSEENTER = 'hover-enter';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_MOUSELEAVE = exports.EVENT_MOUSELEAVE = 'hover-leave';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_PART_TREE_ENTER = exports.EVENT_PART_TREE_ENTER = 'tree-enter';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_PART_TREE_LEAVE = exports.EVENT_PART_TREE_LEAVE = 'tree-leave';\n\t\n\t/**\n\t * Generic Event Handlings for Renderer\n\t */\n\t\n\tvar RenderingEvents = function (_EventEmitter) {\n\t (0, _inherits3.default)(RenderingEvents, _EventEmitter);\n\t\n\t\n\t /**\n\t * @param {Object} options\n\t * @param {Document} document\n\t */\n\t\n\t function RenderingEvents(options, document) {\n\t (0, _classCallCheck3.default)(this, RenderingEvents);\n\t\n\t\n\t /**\n\t * Options\n\t * @type {Object}\n\t */\n\t\n\t var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(RenderingEvents).call(this));\n\t\n\t _this.options = {\n\t hoverClass: 'marklib--hover',\n\t treeClass: 'marklib--tree',\n\t className: ['marking']\n\t };\n\t\n\t _this.options = (0, _assign2.default)(_this.options, options || {});\n\t\n\t if (typeof _this.options.className === 'string') {\n\t _this.options.className = _this.options.className.split(' ');\n\t }\n\t\n\t /**\n\t * A collection of all nodes that are part of all events\n\t * @type {Array}\n\t */\n\t _this.wrapperNodes = [];\n\t\n\t _this._registerEvents(document);\n\t\n\t /**\n\t * @type {Document}\n\t */\n\t _this.document = document;\n\t return _this;\n\t }\n\t\n\t /**\n\t * Constructs a new Range from rendered result\n\t * @returns {Range}\n\t */\n\t\n\t\n\t (0, _createClass3.default)(RenderingEvents, [{\n\t key: '_registerEvents',\n\t\n\t\n\t /**\n\t * Will register events if not already bind.\n\t * @param {Document} document\n\t * @private\n\t */\n\t value: function _registerEvents(document) {\n\t var _this2 = this;\n\t\n\t this.on(EVENT_MOUSEENTER, function () {\n\t _this2.wrapperNodes.forEach(function (node) {\n\t node.classList.add(_this2.options.hoverClass);\n\t });\n\t });\n\t\n\t this.on(EVENT_MOUSELEAVE, function () {\n\t _this2.wrapperNodes.forEach(function (node) {\n\t node.classList.remove(_this2.options.hoverClass);\n\t });\n\t });\n\t\n\t this.on(EVENT_PART_TREE_ENTER, function () {\n\t _this2.wrapperNodes.forEach(function (node) {\n\t node.classList.add(_this2.options.treeClass);\n\t });\n\t });\n\t\n\t this.on(EVENT_PART_TREE_LEAVE, function () {\n\t _this2.wrapperNodes.forEach(function (node) {\n\t node.classList.remove(_this2.options.treeClass);\n\t });\n\t });\n\t\n\t if (!global.__MARKLIB_EVENTS__) {\n\t global.__MARKLIB_EVENTS__ = true;\n\t (function init() {\n\t var currentHoverInstances = new _set2.default();\n\t var betweenInstances = new _set2.default();\n\t\n\t function checkMarklibInstance(e) {\n\t var instance = _Rendering2.default.getMarklibInstance(e);\n\t // instanceof check will fail if used in test scenario where different DOMs are used\n\t // see also http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/\n\t return instance && (instance instanceof _Rendering2.default || 'wrapperNodes' in instance);\n\t }\n\t\n\t function closestInstance(e) {\n\t var closest = _Util2.default.closestCallback(e.target, function (thisE) {\n\t return checkMarklibInstance(thisE);\n\t });\n\t if ((typeof closest === 'undefined' ? 'undefined' : (0, _typeof3.default)(closest)) === 'object') {\n\t return _Rendering2.default.getMarklibInstance(closest);\n\t }\n\t return false;\n\t }\n\t\n\t function getInstancesBetween(e, instance) {\n\t return _Util2.default.parentsCallback(e.target, function (el) {\n\t return checkMarklibInstance(el) && _Rendering2.default.getMarklibInstance(el) !== instance;\n\t }).map(function (el) {\n\t return _Rendering2.default.getMarklibInstance(el);\n\t });\n\t }\n\t\n\t function mouseOutClear() {\n\t currentHoverInstances.forEach(function (thisInstance) {\n\t thisInstance.emit(EVENT_MOUSELEAVE);\n\t });\n\t currentHoverInstances.clear();\n\t\n\t betweenInstances.forEach(function (thisInstance) {\n\t thisInstance.emit(EVENT_PART_TREE_LEAVE);\n\t });\n\t\n\t betweenInstances.clear();\n\t }\n\t\n\t /**\n\t * @param {Event} e\n\t * @returns {Array|boolean}\n\t */\n\t function findTarget(e) {\n\t var instance = closestInstance(e);\n\t if (instance) {\n\t var between = getInstancesBetween(e, instance);\n\t if (e.target.textContent !== instance.result.text && between.length > 0) {\n\t var allInstances = between;\n\t allInstances.unshift(instance);\n\t // take the smallest selection\n\t allInstances = allInstances.sort(function (a, b) {\n\t return a.result.text.length < b.result.text.length ? -1 : 1;\n\t });\n\t instance = allInstances[0];\n\t }\n\t\n\t return [instance, between];\n\t }\n\t return false;\n\t }\n\t\n\t document.addEventListener('click', function (e) {\n\t var target = findTarget(e);\n\t if (target) {\n\t target[0].emit(EVENT_CLICK, e, target[1]);\n\t }\n\t }, true);\n\t\n\t document.addEventListener('mouseover', function (e) {\n\t var target = findTarget(e);\n\t if (target) {\n\t (function () {\n\t var _target = (0, _slicedToArray3.default)(target, 2);\n\t\n\t var instance = _target[0];\n\t var between = _target[1];\n\t // find instances that lay in between the node\n\t\n\t mouseOutClear();\n\t between.forEach(function (instanceBetween) {\n\t betweenInstances.add(instanceBetween);\n\t instanceBetween.emit(EVENT_PART_TREE_ENTER, e, between);\n\t });\n\t instance.emit(EVENT_MOUSEENTER, e, between);\n\t currentHoverInstances.add(instance);\n\t })();\n\t } else {\n\t mouseOutClear();\n\t }\n\t }, true);\n\t })();\n\t }\n\t }\n\t }, {\n\t key: 'range',\n\t get: function get() {\n\t var range = this.document.createRange();\n\t var textNodes = [];\n\t\n\t this.wrapperNodes.forEach(function (wrapper) {\n\t _Util2.default.walkTextNodes(wrapper, function (node) {\n\t textNodes.push(node);\n\t });\n\t });\n\t\n\t if (textNodes.length > 0) {\n\t var lastTextNode = textNodes[textNodes.length - 1];\n\t range.setStart(textNodes[0], 0);\n\t range.setEnd(lastTextNode, lastTextNode.length);\n\t return range;\n\t }\n\t\n\t return null;\n\t }\n\t }]);\n\t return RenderingEvents;\n\t}(_wolfy87Eventemitter2.default);\n\n\texports.default = RenderingEvents;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 36 */,\n/* 37 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(67), __esModule: true };\n\n/***/ },\n/* 38 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _setPrototypeOf = __webpack_require__(57);\n\t\n\tvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\t\n\tvar _create = __webpack_require__(55);\n\t\n\tvar _create2 = _interopRequireDefault(_create);\n\t\n\tvar _typeof2 = __webpack_require__(25);\n\t\n\tvar _typeof3 = _interopRequireDefault(_typeof2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = function (subClass, superClass) {\n\t if (typeof superClass !== \"function\" && superClass !== null) {\n\t throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n\t }\n\t\n\t subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n\t constructor: {\n\t value: subClass,\n\t enumerable: false,\n\t writable: true,\n\t configurable: true\n\t }\n\t });\n\t if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n\t};\n\n/***/ },\n/* 39 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _typeof2 = __webpack_require__(25);\n\t\n\tvar _typeof3 = _interopRequireDefault(_typeof2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = function (self, call) {\n\t if (!self) {\n\t throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n\t }\n\t\n\t return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n\t};\n\n/***/ },\n/* 40 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// fallback for non-array-like ES3 and non-enumerable old V8 strings\n\tvar cof = __webpack_require__(27);\n\tmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n\t return cof(it) == 'String' ? it.split('') : Object(it);\n\t};\n\n/***/ },\n/* 41 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(done, value){\n\t return {value: value, done: !!done};\n\t};\n\n/***/ },\n/* 42 */\n/***/ function(module, exports) {\n\n\tmodule.exports = true;\n\n/***/ },\n/* 43 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar redefine = __webpack_require__(31);\n\tmodule.exports = function(target, src){\n\t for(var key in src)redefine(target, key, src[key]);\n\t return target;\n\t};\n\n/***/ },\n/* 44 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar global = __webpack_require__(9)\n\t , SHARED = '__core-js_shared__'\n\t , store = global[SHARED] || (global[SHARED] = {});\n\tmodule.exports = function(key){\n\t return store[key] || (store[key] = {});\n\t};\n\n/***/ },\n/* 45 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(it, Constructor, name){\n\t if(!(it instanceof Constructor))throw TypeError(name + \": use the 'new' operator!\");\n\t return it;\n\t};\n\n/***/ },\n/* 46 */\n/***/ function(module, exports) {\n\n\t// 7.1.4 ToInteger\n\tvar ceil = Math.ceil\n\t , floor = Math.floor;\n\tmodule.exports = function(it){\n\t return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n\t};\n\n/***/ },\n/* 47 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.1.13 ToObject(argument)\n\tvar defined = __webpack_require__(15);\n\tmodule.exports = function(it){\n\t return Object(defined(it));\n\t};\n\n/***/ },\n/* 48 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar classof = __webpack_require__(26)\n\t , ITERATOR = __webpack_require__(3)('iterator')\n\t , Iterators = __webpack_require__(5);\n\tmodule.exports = __webpack_require__(2).getIteratorMethod = function(it){\n\t if(it != undefined)return it[ITERATOR]\n\t || it['@@iterator']\n\t || Iterators[classof(it)];\n\t};\n\n/***/ },\n/* 49 */\n/***/ function(module, exports) {\n\n\n\n/***/ },\n/* 50 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.RenderingEvents = exports.RenderResult = exports.Util = exports.Rendering = undefined;\n\t\n\tvar _Rendering = __webpack_require__(23);\n\t\n\tvar _Rendering2 = _interopRequireDefault(_Rendering);\n\t\n\tvar _Util = __webpack_require__(24);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tvar _RenderResult = __webpack_require__(34);\n\t\n\tvar _RenderResult2 = _interopRequireDefault(_RenderResult);\n\t\n\tvar _RenderingEvents = __webpack_require__(35);\n\t\n\tvar _RenderingEvents2 = _interopRequireDefault(_RenderingEvents);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.Rendering = _Rendering2.default;\n\texports.Util = _Util2.default;\n\texports.RenderResult = _RenderResult2.default;\n\texports.RenderingEvents = _RenderingEvents2.default;\n\n/***/ },\n/* 51 */,\n/* 52 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(62), __esModule: true };\n\n/***/ },\n/* 53 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(63), __esModule: true };\n\n/***/ },\n/* 54 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(64), __esModule: true };\n\n/***/ },\n/* 55 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(65), __esModule: true };\n\n/***/ },\n/* 56 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(66), __esModule: true };\n\n/***/ },\n/* 57 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(68), __esModule: true };\n\n/***/ },\n/* 58 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(69), __esModule: true };\n\n/***/ },\n/* 59 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(70), __esModule: true };\n\n/***/ },\n/* 60 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(71), __esModule: true };\n\n/***/ },\n/* 61 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _isIterable2 = __webpack_require__(53);\n\t\n\tvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\t\n\tvar _getIterator2 = __webpack_require__(52);\n\t\n\tvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = function () {\n\t function sliceIterator(arr, i) {\n\t var _arr = [];\n\t var _n = true;\n\t var _d = false;\n\t var _e = undefined;\n\t\n\t try {\n\t for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n\t _arr.push(_s.value);\n\t\n\t if (i && _arr.length === i) break;\n\t }\n\t } catch (err) {\n\t _d = true;\n\t _e = err;\n\t } finally {\n\t try {\n\t if (!_n && _i[\"return\"]) _i[\"return\"]();\n\t } finally {\n\t if (_d) throw _e;\n\t }\n\t }\n\t\n\t return _arr;\n\t }\n\t\n\t return function (arr, i) {\n\t if (Array.isArray(arr)) {\n\t return arr;\n\t } else if ((0, _isIterable3.default)(Object(arr))) {\n\t return sliceIterator(arr, i);\n\t } else {\n\t throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n\t }\n\t };\n\t}();\n\n/***/ },\n/* 62 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(21);\n\t__webpack_require__(20);\n\tmodule.exports = __webpack_require__(90);\n\n/***/ },\n/* 63 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(21);\n\t__webpack_require__(20);\n\tmodule.exports = __webpack_require__(91);\n\n/***/ },\n/* 64 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(93);\n\tmodule.exports = __webpack_require__(2).Object.assign;\n\n/***/ },\n/* 65 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar $ = __webpack_require__(1);\n\tmodule.exports = function create(P, D){\n\t return $.create(P, D);\n\t};\n\n/***/ },\n/* 66 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar $ = __webpack_require__(1);\n\tmodule.exports = function defineProperty(it, key, desc){\n\t return $.setDesc(it, key, desc);\n\t};\n\n/***/ },\n/* 67 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(94);\n\tmodule.exports = __webpack_require__(2).Object.getPrototypeOf;\n\n/***/ },\n/* 68 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(95);\n\tmodule.exports = __webpack_require__(2).Object.setPrototypeOf;\n\n/***/ },\n/* 69 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(49);\n\t__webpack_require__(20);\n\t__webpack_require__(21);\n\t__webpack_require__(96);\n\t__webpack_require__(98);\n\tmodule.exports = __webpack_require__(2).Set;\n\n/***/ },\n/* 70 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(97);\n\t__webpack_require__(49);\n\tmodule.exports = __webpack_require__(2).Symbol;\n\n/***/ },\n/* 71 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(20);\n\t__webpack_require__(21);\n\tmodule.exports = __webpack_require__(3)('iterator');\n\n/***/ },\n/* 72 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(it){\n\t if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n\t return it;\n\t};\n\n/***/ },\n/* 73 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(){ /* empty */ };\n\n/***/ },\n/* 74 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar $ = __webpack_require__(1)\n\t , hide = __webpack_require__(10)\n\t , redefineAll = __webpack_require__(43)\n\t , ctx = __webpack_require__(14)\n\t , strictNew = __webpack_require__(45)\n\t , defined = __webpack_require__(15)\n\t , forOf = __webpack_require__(28)\n\t , $iterDefine = __webpack_require__(29)\n\t , step = __webpack_require__(41)\n\t , ID = __webpack_require__(32)('id')\n\t , $has = __webpack_require__(16)\n\t , isObject = __webpack_require__(17)\n\t , setSpecies = __webpack_require__(87)\n\t , DESCRIPTORS = __webpack_require__(7)\n\t , isExtensible = Object.isExtensible || isObject\n\t , SIZE = DESCRIPTORS ? '_s' : 'size'\n\t , id = 0;\n\t\n\tvar fastKey = function(it, create){\n\t // return primitive with prefix\n\t if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n\t if(!$has(it, ID)){\n\t // can't set id to frozen object\n\t if(!isExtensible(it))return 'F';\n\t // not necessary to add id\n\t if(!create)return 'E';\n\t // add missing object id\n\t hide(it, ID, ++id);\n\t // return object id with prefix\n\t } return 'O' + it[ID];\n\t};\n\t\n\tvar getEntry = function(that, key){\n\t // fast case\n\t var index = fastKey(key), entry;\n\t if(index !== 'F')return that._i[index];\n\t // frozen object case\n\t for(entry = that._f; entry; entry = entry.n){\n\t if(entry.k == key)return entry;\n\t }\n\t};\n\t\n\tmodule.exports = {\n\t getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n\t var C = wrapper(function(that, iterable){\n\t strictNew(that, C, NAME);\n\t that._i = $.create(null); // index\n\t that._f = undefined; // first entry\n\t that._l = undefined; // last entry\n\t that[SIZE] = 0; // size\n\t if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n\t });\n\t redefineAll(C.prototype, {\n\t // 23.1.3.1 Map.prototype.clear()\n\t // 23.2.3.2 Set.prototype.clear()\n\t clear: function clear(){\n\t for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){\n\t entry.r = true;\n\t if(entry.p)entry.p = entry.p.n = undefined;\n\t delete data[entry.i];\n\t }\n\t that._f = that._l = undefined;\n\t that[SIZE] = 0;\n\t },\n\t // 23.1.3.3 Map.prototype.delete(key)\n\t // 23.2.3.4 Set.prototype.delete(value)\n\t 'delete': function(key){\n\t var that = this\n\t , entry = getEntry(that, key);\n\t if(entry){\n\t var next = entry.n\n\t , prev = entry.p;\n\t delete that._i[entry.i];\n\t entry.r = true;\n\t if(prev)prev.n = next;\n\t if(next)next.p = prev;\n\t if(that._f == entry)that._f = next;\n\t if(that._l == entry)that._l = prev;\n\t that[SIZE]--;\n\t } return !!entry;\n\t },\n\t // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n\t // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n\t forEach: function forEach(callbackfn /*, that = undefined */){\n\t var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3)\n\t , entry;\n\t while(entry = entry ? entry.n : this._f){\n\t f(entry.v, entry.k, this);\n\t // revert to the last existing entry\n\t while(entry && entry.r)entry = entry.p;\n\t }\n\t },\n\t // 23.1.3.7 Map.prototype.has(key)\n\t // 23.2.3.7 Set.prototype.has(value)\n\t has: function has(key){\n\t return !!getEntry(this, key);\n\t }\n\t });\n\t if(DESCRIPTORS)$.setDesc(C.prototype, 'size', {\n\t get: function(){\n\t return defined(this[SIZE]);\n\t }\n\t });\n\t return C;\n\t },\n\t def: function(that, key, value){\n\t var entry = getEntry(that, key)\n\t , prev, index;\n\t // change existing entry\n\t if(entry){\n\t entry.v = value;\n\t // create new entry\n\t } else {\n\t that._l = entry = {\n\t i: index = fastKey(key, true), // <- index\n\t k: key, // <- key\n\t v: value, // <- value\n\t p: prev = that._l, // <- previous entry\n\t n: undefined, // <- next entry\n\t r: false // <- removed\n\t };\n\t if(!that._f)that._f = entry;\n\t if(prev)prev.n = entry;\n\t that[SIZE]++;\n\t // add to index\n\t if(index !== 'F')that._i[index] = entry;\n\t } return that;\n\t },\n\t getEntry: getEntry,\n\t setStrong: function(C, NAME, IS_MAP){\n\t // add .keys, .values, .entries, [@@iterator]\n\t // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n\t $iterDefine(C, NAME, function(iterated, kind){\n\t this._t = iterated; // target\n\t this._k = kind; // kind\n\t this._l = undefined; // previous\n\t }, function(){\n\t var that = this\n\t , kind = that._k\n\t , entry = that._l;\n\t // revert to the last existing entry\n\t while(entry && entry.r)entry = entry.p;\n\t // get next entry\n\t if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){\n\t // or finish the iteration\n\t that._t = undefined;\n\t return step(1);\n\t }\n\t // return step by kind\n\t if(kind == 'keys' )return step(0, entry.k);\n\t if(kind == 'values')return step(0, entry.v);\n\t return step(0, [entry.k, entry.v]);\n\t }, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);\n\t\n\t // add [@@species], 23.1.2.2, 23.2.2.2\n\t setSpecies(NAME);\n\t }\n\t};\n\n/***/ },\n/* 75 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// https://github.com/DavidBruant/Map-Set.prototype.toJSON\n\tvar forOf = __webpack_require__(28)\n\t , classof = __webpack_require__(26);\n\tmodule.exports = function(NAME){\n\t return function toJSON(){\n\t if(classof(this) != NAME)throw TypeError(NAME + \"#toJSON isn't generic\");\n\t var arr = [];\n\t forOf(this, false, arr.push, arr);\n\t return arr;\n\t };\n\t};\n\n/***/ },\n/* 76 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar $ = __webpack_require__(1)\n\t , global = __webpack_require__(9)\n\t , $export = __webpack_require__(4)\n\t , fails = __webpack_require__(8)\n\t , hide = __webpack_require__(10)\n\t , redefineAll = __webpack_require__(43)\n\t , forOf = __webpack_require__(28)\n\t , strictNew = __webpack_require__(45)\n\t , isObject = __webpack_require__(17)\n\t , setToStringTag = __webpack_require__(18)\n\t , DESCRIPTORS = __webpack_require__(7);\n\t\n\tmodule.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){\n\t var Base = global[NAME]\n\t , C = Base\n\t , ADDER = IS_MAP ? 'set' : 'add'\n\t , proto = C && C.prototype\n\t , O = {};\n\t if(!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){\n\t new C().entries().next();\n\t }))){\n\t // create collection constructor\n\t C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n\t redefineAll(C.prototype, methods);\n\t } else {\n\t C = wrapper(function(target, iterable){\n\t strictNew(target, C, NAME);\n\t target._c = new Base;\n\t if(iterable != undefined)forOf(iterable, IS_MAP, target[ADDER], target);\n\t });\n\t $.each.call('add,clear,delete,forEach,get,has,set,keys,values,entries'.split(','),function(KEY){\n\t var IS_ADDER = KEY == 'add' || KEY == 'set';\n\t if(KEY in proto && !(IS_WEAK && KEY == 'clear'))hide(C.prototype, KEY, function(a, b){\n\t if(!IS_ADDER && IS_WEAK && !isObject(a))return KEY == 'get' ? undefined : false;\n\t var result = this._c[KEY](a === 0 ? 0 : a, b);\n\t return IS_ADDER ? this : result;\n\t });\n\t });\n\t if('size' in proto)$.setDesc(C.prototype, 'size', {\n\t get: function(){\n\t return this._c.size;\n\t }\n\t });\n\t }\n\t\n\t setToStringTag(C, NAME);\n\t\n\t O[NAME] = C;\n\t $export($export.G + $export.W + $export.F, O);\n\t\n\t if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);\n\t\n\t return C;\n\t};\n\n/***/ },\n/* 77 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// all enumerable object keys, includes symbols\n\tvar $ = __webpack_require__(1);\n\tmodule.exports = function(it){\n\t var keys = $.getKeys(it)\n\t , getSymbols = $.getSymbols;\n\t if(getSymbols){\n\t var symbols = getSymbols(it)\n\t , isEnum = $.isEnum\n\t , i = 0\n\t , key;\n\t while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);\n\t }\n\t return keys;\n\t};\n\n/***/ },\n/* 78 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\n\tvar toIObject = __webpack_require__(19)\n\t , getNames = __webpack_require__(1).getNames\n\t , toString = {}.toString;\n\t\n\tvar windowNames = typeof window == 'object' && Object.getOwnPropertyNames\n\t ? Object.getOwnPropertyNames(window) : [];\n\t\n\tvar getWindowNames = function(it){\n\t try {\n\t return getNames(it);\n\t } catch(e){\n\t return windowNames.slice();\n\t }\n\t};\n\t\n\tmodule.exports.get = function getOwnPropertyNames(it){\n\t if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);\n\t return getNames(toIObject(it));\n\t};\n\n/***/ },\n/* 79 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// check on default Array iterator\n\tvar Iterators = __webpack_require__(5)\n\t , ITERATOR = __webpack_require__(3)('iterator')\n\t , ArrayProto = Array.prototype;\n\t\n\tmodule.exports = function(it){\n\t return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n\t};\n\n/***/ },\n/* 80 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.2.2 IsArray(argument)\n\tvar cof = __webpack_require__(27);\n\tmodule.exports = Array.isArray || function(arg){\n\t return cof(arg) == 'Array';\n\t};\n\n/***/ },\n/* 81 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// call something on iterator step with safe closing on error\n\tvar anObject = __webpack_require__(6);\n\tmodule.exports = function(iterator, fn, value, entries){\n\t try {\n\t return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n\t // 7.4.6 IteratorClose(iterator, completion)\n\t } catch(e){\n\t var ret = iterator['return'];\n\t if(ret !== undefined)anObject(ret.call(iterator));\n\t throw e;\n\t }\n\t};\n\n/***/ },\n/* 82 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar $ = __webpack_require__(1)\n\t , descriptor = __webpack_require__(30)\n\t , setToStringTag = __webpack_require__(18)\n\t , IteratorPrototype = {};\n\t\n\t// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\n\t__webpack_require__(10)(IteratorPrototype, __webpack_require__(3)('iterator'), function(){ return this; });\n\t\n\tmodule.exports = function(Constructor, NAME, next){\n\t Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});\n\t setToStringTag(Constructor, NAME + ' Iterator');\n\t};\n\n/***/ },\n/* 83 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar $ = __webpack_require__(1)\n\t , toIObject = __webpack_require__(19);\n\tmodule.exports = function(object, el){\n\t var O = toIObject(object)\n\t , keys = $.getKeys(O)\n\t , length = keys.length\n\t , index = 0\n\t , key;\n\t while(length > index)if(O[key = keys[index++]] === el)return key;\n\t};\n\n/***/ },\n/* 84 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.2.1 Object.assign(target, source, ...)\n\tvar $ = __webpack_require__(1)\n\t , toObject = __webpack_require__(47)\n\t , IObject = __webpack_require__(40);\n\t\n\t// should work with symbols and should have deterministic property order (V8 bug)\n\tmodule.exports = __webpack_require__(8)(function(){\n\t var a = Object.assign\n\t , A = {}\n\t , B = {}\n\t , S = Symbol()\n\t , K = 'abcdefghijklmnopqrst';\n\t A[S] = 7;\n\t K.split('').forEach(function(k){ B[k] = k; });\n\t return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n\t}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n\t var T = toObject(target)\n\t , $$ = arguments\n\t , $$len = $$.length\n\t , index = 1\n\t , getKeys = $.getKeys\n\t , getSymbols = $.getSymbols\n\t , isEnum = $.isEnum;\n\t while($$len > index){\n\t var S = IObject($$[index++])\n\t , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n\t , length = keys.length\n\t , j = 0\n\t , key;\n\t while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n\t }\n\t return T;\n\t} : Object.assign;\n\n/***/ },\n/* 85 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// most Object methods by ES6 should accept primitives\n\tvar $export = __webpack_require__(4)\n\t , core = __webpack_require__(2)\n\t , fails = __webpack_require__(8);\n\tmodule.exports = function(KEY, exec){\n\t var fn = (core.Object || {})[KEY] || Object[KEY]\n\t , exp = {};\n\t exp[KEY] = exec(fn);\n\t $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);\n\t};\n\n/***/ },\n/* 86 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// Works with __proto__ only. Old v8 can't work with null proto objects.\n\t/* eslint-disable no-proto */\n\tvar getDesc = __webpack_require__(1).getDesc\n\t , isObject = __webpack_require__(17)\n\t , anObject = __webpack_require__(6);\n\tvar check = function(O, proto){\n\t anObject(O);\n\t if(!isObject(proto) && proto !== null)throw TypeError(proto + \": can't set as prototype!\");\n\t};\n\tmodule.exports = {\n\t set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n\t function(test, buggy, set){\n\t try {\n\t set = __webpack_require__(14)(Function.call, getDesc(Object.prototype, '__proto__').set, 2);\n\t set(test, []);\n\t buggy = !(test instanceof Array);\n\t } catch(e){ buggy = true; }\n\t return function setPrototypeOf(O, proto){\n\t check(O, proto);\n\t if(buggy)O.__proto__ = proto;\n\t else set(O, proto);\n\t return O;\n\t };\n\t }({}, false) : undefined),\n\t check: check\n\t};\n\n/***/ },\n/* 87 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar core = __webpack_require__(2)\n\t , $ = __webpack_require__(1)\n\t , DESCRIPTORS = __webpack_require__(7)\n\t , SPECIES = __webpack_require__(3)('species');\n\t\n\tmodule.exports = function(KEY){\n\t var C = core[KEY];\n\t if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {\n\t configurable: true,\n\t get: function(){ return this; }\n\t });\n\t};\n\n/***/ },\n/* 88 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar toInteger = __webpack_require__(46)\n\t , defined = __webpack_require__(15);\n\t// true -> String#at\n\t// false -> String#codePointAt\n\tmodule.exports = function(TO_STRING){\n\t return function(that, pos){\n\t var s = String(defined(that))\n\t , i = toInteger(pos)\n\t , l = s.length\n\t , a, b;\n\t if(i < 0 || i >= l)return TO_STRING ? '' : undefined;\n\t a = s.charCodeAt(i);\n\t return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n\t ? TO_STRING ? s.charAt(i) : a\n\t : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n\t };\n\t};\n\n/***/ },\n/* 89 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.1.15 ToLength\n\tvar toInteger = __webpack_require__(46)\n\t , min = Math.min;\n\tmodule.exports = function(it){\n\t return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n\t};\n\n/***/ },\n/* 90 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar anObject = __webpack_require__(6)\n\t , get = __webpack_require__(48);\n\tmodule.exports = __webpack_require__(2).getIterator = function(it){\n\t var iterFn = get(it);\n\t if(typeof iterFn != 'function')throw TypeError(it + ' is not iterable!');\n\t return anObject(iterFn.call(it));\n\t};\n\n/***/ },\n/* 91 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar classof = __webpack_require__(26)\n\t , ITERATOR = __webpack_require__(3)('iterator')\n\t , Iterators = __webpack_require__(5);\n\tmodule.exports = __webpack_require__(2).isIterable = function(it){\n\t var O = Object(it);\n\t return O[ITERATOR] !== undefined\n\t || '@@iterator' in O\n\t || Iterators.hasOwnProperty(classof(O));\n\t};\n\n/***/ },\n/* 92 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar addToUnscopables = __webpack_require__(73)\n\t , step = __webpack_require__(41)\n\t , Iterators = __webpack_require__(5)\n\t , toIObject = __webpack_require__(19);\n\t\n\t// 22.1.3.4 Array.prototype.entries()\n\t// 22.1.3.13 Array.prototype.keys()\n\t// 22.1.3.29 Array.prototype.values()\n\t// 22.1.3.30 Array.prototype[@@iterator]()\n\tmodule.exports = __webpack_require__(29)(Array, 'Array', function(iterated, kind){\n\t this._t = toIObject(iterated); // target\n\t this._i = 0; // next index\n\t this._k = kind; // kind\n\t// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n\t}, function(){\n\t var O = this._t\n\t , kind = this._k\n\t , index = this._i++;\n\t if(!O || index >= O.length){\n\t this._t = undefined;\n\t return step(1);\n\t }\n\t if(kind == 'keys' )return step(0, index);\n\t if(kind == 'values')return step(0, O[index]);\n\t return step(0, [index, O[index]]);\n\t}, 'values');\n\t\n\t// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\n\tIterators.Arguments = Iterators.Array;\n\t\n\taddToUnscopables('keys');\n\taddToUnscopables('values');\n\taddToUnscopables('entries');\n\n/***/ },\n/* 93 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.3.1 Object.assign(target, source)\n\tvar $export = __webpack_require__(4);\n\t\n\t$export($export.S + $export.F, 'Object', {assign: __webpack_require__(84)});\n\n/***/ },\n/* 94 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.2.9 Object.getPrototypeOf(O)\n\tvar toObject = __webpack_require__(47);\n\t\n\t__webpack_require__(85)('getPrototypeOf', function($getPrototypeOf){\n\t return function getPrototypeOf(it){\n\t return $getPrototypeOf(toObject(it));\n\t };\n\t});\n\n/***/ },\n/* 95 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.3.19 Object.setPrototypeOf(O, proto)\n\tvar $export = __webpack_require__(4);\n\t$export($export.S, 'Object', {setPrototypeOf: __webpack_require__(86).set});\n\n/***/ },\n/* 96 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar strong = __webpack_require__(74);\n\t\n\t// 23.2 Set Objects\n\t__webpack_require__(76)('Set', function(get){\n\t return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n\t}, {\n\t // 23.2.3.1 Set.prototype.add(value)\n\t add: function add(value){\n\t return strong.def(this, value = value === 0 ? 0 : value, value);\n\t }\n\t}, strong);\n\n/***/ },\n/* 97 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t// ECMAScript 6 symbols shim\n\tvar $ = __webpack_require__(1)\n\t , global = __webpack_require__(9)\n\t , has = __webpack_require__(16)\n\t , DESCRIPTORS = __webpack_require__(7)\n\t , $export = __webpack_require__(4)\n\t , redefine = __webpack_require__(31)\n\t , $fails = __webpack_require__(8)\n\t , shared = __webpack_require__(44)\n\t , setToStringTag = __webpack_require__(18)\n\t , uid = __webpack_require__(32)\n\t , wks = __webpack_require__(3)\n\t , keyOf = __webpack_require__(83)\n\t , $names = __webpack_require__(78)\n\t , enumKeys = __webpack_require__(77)\n\t , isArray = __webpack_require__(80)\n\t , anObject = __webpack_require__(6)\n\t , toIObject = __webpack_require__(19)\n\t , createDesc = __webpack_require__(30)\n\t , getDesc = $.getDesc\n\t , setDesc = $.setDesc\n\t , _create = $.create\n\t , getNames = $names.get\n\t , $Symbol = global.Symbol\n\t , $JSON = global.JSON\n\t , _stringify = $JSON && $JSON.stringify\n\t , setter = false\n\t , HIDDEN = wks('_hidden')\n\t , isEnum = $.isEnum\n\t , SymbolRegistry = shared('symbol-registry')\n\t , AllSymbols = shared('symbols')\n\t , useNative = typeof $Symbol == 'function'\n\t , ObjectProto = Object.prototype;\n\t\n\t// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\n\tvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n\t return _create(setDesc({}, 'a', {\n\t get: function(){ return setDesc(this, 'a', {value: 7}).a; }\n\t })).a != 7;\n\t}) ? function(it, key, D){\n\t var protoDesc = getDesc(ObjectProto, key);\n\t if(protoDesc)delete ObjectProto[key];\n\t setDesc(it, key, D);\n\t if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);\n\t} : setDesc;\n\t\n\tvar wrap = function(tag){\n\t var sym = AllSymbols[tag] = _create($Symbol.prototype);\n\t sym._k = tag;\n\t DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {\n\t configurable: true,\n\t set: function(value){\n\t if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n\t setSymbolDesc(this, tag, createDesc(1, value));\n\t }\n\t });\n\t return sym;\n\t};\n\t\n\tvar isSymbol = function(it){\n\t return typeof it == 'symbol';\n\t};\n\t\n\tvar $defineProperty = function defineProperty(it, key, D){\n\t if(D && has(AllSymbols, key)){\n\t if(!D.enumerable){\n\t if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));\n\t it[HIDDEN][key] = true;\n\t } else {\n\t if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n\t D = _create(D, {enumerable: createDesc(0, false)});\n\t } return setSymbolDesc(it, key, D);\n\t } return setDesc(it, key, D);\n\t};\n\tvar $defineProperties = function defineProperties(it, P){\n\t anObject(it);\n\t var keys = enumKeys(P = toIObject(P))\n\t , i = 0\n\t , l = keys.length\n\t , key;\n\t while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n\t return it;\n\t};\n\tvar $create = function create(it, P){\n\t return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n\t};\n\tvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n\t var E = isEnum.call(this, key);\n\t return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]\n\t ? E : true;\n\t};\n\tvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n\t var D = getDesc(it = toIObject(it), key);\n\t if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n\t return D;\n\t};\n\tvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n\t var names = getNames(toIObject(it))\n\t , result = []\n\t , i = 0\n\t , key;\n\t while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);\n\t return result;\n\t};\n\tvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n\t var names = getNames(toIObject(it))\n\t , result = []\n\t , i = 0\n\t , key;\n\t while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);\n\t return result;\n\t};\n\tvar $stringify = function stringify(it){\n\t if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n\t var args = [it]\n\t , i = 1\n\t , $$ = arguments\n\t , replacer, $replacer;\n\t while($$.length > i)args.push($$[i++]);\n\t replacer = args[1];\n\t if(typeof replacer == 'function')$replacer = replacer;\n\t if($replacer || !isArray(replacer))replacer = function(key, value){\n\t if($replacer)value = $replacer.call(this, key, value);\n\t if(!isSymbol(value))return value;\n\t };\n\t args[1] = replacer;\n\t return _stringify.apply($JSON, args);\n\t};\n\tvar buggyJSON = $fails(function(){\n\t var S = $Symbol();\n\t // MS Edge converts symbol values to JSON as {}\n\t // WebKit converts symbol values to JSON as null\n\t // V8 throws on boxed symbols\n\t return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n\t});\n\t\n\t// 19.4.1.1 Symbol([description])\n\tif(!useNative){\n\t $Symbol = function Symbol(){\n\t if(isSymbol(this))throw TypeError('Symbol is not a constructor');\n\t return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));\n\t };\n\t redefine($Symbol.prototype, 'toString', function toString(){\n\t return this._k;\n\t });\n\t\n\t isSymbol = function(it){\n\t return it instanceof $Symbol;\n\t };\n\t\n\t $.create = $create;\n\t $.isEnum = $propertyIsEnumerable;\n\t $.getDesc = $getOwnPropertyDescriptor;\n\t $.setDesc = $defineProperty;\n\t $.setDescs = $defineProperties;\n\t $.getNames = $names.get = $getOwnPropertyNames;\n\t $.getSymbols = $getOwnPropertySymbols;\n\t\n\t if(DESCRIPTORS && !__webpack_require__(42)){\n\t redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n\t }\n\t}\n\t\n\tvar symbolStatics = {\n\t // 19.4.2.1 Symbol.for(key)\n\t 'for': function(key){\n\t return has(SymbolRegistry, key += '')\n\t ? SymbolRegistry[key]\n\t : SymbolRegistry[key] = $Symbol(key);\n\t },\n\t // 19.4.2.5 Symbol.keyFor(sym)\n\t keyFor: function keyFor(key){\n\t return keyOf(SymbolRegistry, key);\n\t },\n\t useSetter: function(){ setter = true; },\n\t useSimple: function(){ setter = false; }\n\t};\n\t// 19.4.2.2 Symbol.hasInstance\n\t// 19.4.2.3 Symbol.isConcatSpreadable\n\t// 19.4.2.4 Symbol.iterator\n\t// 19.4.2.6 Symbol.match\n\t// 19.4.2.8 Symbol.replace\n\t// 19.4.2.9 Symbol.search\n\t// 19.4.2.10 Symbol.species\n\t// 19.4.2.11 Symbol.split\n\t// 19.4.2.12 Symbol.toPrimitive\n\t// 19.4.2.13 Symbol.toStringTag\n\t// 19.4.2.14 Symbol.unscopables\n\t$.each.call((\n\t 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +\n\t 'species,split,toPrimitive,toStringTag,unscopables'\n\t).split(','), function(it){\n\t var sym = wks(it);\n\t symbolStatics[it] = useNative ? sym : wrap(sym);\n\t});\n\t\n\tsetter = true;\n\t\n\t$export($export.G + $export.W, {Symbol: $Symbol});\n\t\n\t$export($export.S, 'Symbol', symbolStatics);\n\t\n\t$export($export.S + $export.F * !useNative, 'Object', {\n\t // 19.1.2.2 Object.create(O [, Properties])\n\t create: $create,\n\t // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n\t defineProperty: $defineProperty,\n\t // 19.1.2.3 Object.defineProperties(O, Properties)\n\t defineProperties: $defineProperties,\n\t // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n\t getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n\t // 19.1.2.7 Object.getOwnPropertyNames(O)\n\t getOwnPropertyNames: $getOwnPropertyNames,\n\t // 19.1.2.8 Object.getOwnPropertySymbols(O)\n\t getOwnPropertySymbols: $getOwnPropertySymbols\n\t});\n\t\n\t// 24.3.2 JSON.stringify(value [, replacer [, space]])\n\t$JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});\n\t\n\t// 19.4.3.5 Symbol.prototype[@@toStringTag]\n\tsetToStringTag($Symbol, 'Symbol');\n\t// 20.2.1.9 Math[@@toStringTag]\n\tsetToStringTag(Math, 'Math', true);\n\t// 24.3.3 JSON[@@toStringTag]\n\tsetToStringTag(global.JSON, 'JSON', true);\n\n/***/ },\n/* 98 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// https://github.com/DavidBruant/Map-Set.prototype.toJSON\n\tvar $export = __webpack_require__(4);\n\t\n\t$export($export.P, 'Set', {toJSON: __webpack_require__(75)('Set')});\n\n/***/ },\n/* 99 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_RESULT__;/*!\n\t * EventEmitter v4.2.11 - git.io/ee\n\t * Unlicense - http://unlicense.org/\n\t * Oliver Caldwell - http://oli.me.uk/\n\t * @preserve\n\t */\n\t\n\t;(function () {\n\t 'use strict';\n\t\n\t /**\n\t * Class for managing events.\n\t * Can be extended to provide event functionality in other classes.\n\t *\n\t * @class EventEmitter Manages event registering and emitting.\n\t */\n\t function EventEmitter() {}\n\t\n\t // Shortcuts to improve speed and size\n\t var proto = EventEmitter.prototype;\n\t var exports = this;\n\t var originalGlobalValue = exports.EventEmitter;\n\t\n\t /**\n\t * Finds the index of the listener for the event in its storage array.\n\t *\n\t * @param {Function[]} listeners Array of listeners to search through.\n\t * @param {Function} listener Method to look for.\n\t * @return {Number} Index of the specified listener, -1 if not found\n\t * @api private\n\t */\n\t function indexOfListener(listeners, listener) {\n\t var i = listeners.length;\n\t while (i--) {\n\t if (listeners[i].listener === listener) {\n\t return i;\n\t }\n\t }\n\t\n\t return -1;\n\t }\n\t\n\t /**\n\t * Alias a method while keeping the context correct, to allow for overwriting of target method.\n\t *\n\t * @param {String} name The name of the target method.\n\t * @return {Function} The aliased method\n\t * @api private\n\t */\n\t function alias(name) {\n\t return function aliasClosure() {\n\t return this[name].apply(this, arguments);\n\t };\n\t }\n\t\n\t /**\n\t * Returns the listener array for the specified event.\n\t * Will initialise the event object and listener arrays if required.\n\t * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.\n\t * Each property in the object response is an array of listener functions.\n\t *\n\t * @param {String|RegExp} evt Name of the event to return the listeners from.\n\t * @return {Function[]|Object} All listener functions for the event.\n\t */\n\t proto.getListeners = function getListeners(evt) {\n\t var events = this._getEvents();\n\t var response;\n\t var key;\n\t\n\t // Return a concatenated array of all matching events if\n\t // the selector is a regular expression.\n\t if (evt instanceof RegExp) {\n\t response = {};\n\t for (key in events) {\n\t if (events.hasOwnProperty(key) && evt.test(key)) {\n\t response[key] = events[key];\n\t }\n\t }\n\t }\n\t else {\n\t response = events[evt] || (events[evt] = []);\n\t }\n\t\n\t return response;\n\t };\n\t\n\t /**\n\t * Takes a list of listener objects and flattens it into a list of listener functions.\n\t *\n\t * @param {Object[]} listeners Raw listener objects.\n\t * @return {Function[]} Just the listener functions.\n\t */\n\t proto.flattenListeners = function flattenListeners(listeners) {\n\t var flatListeners = [];\n\t var i;\n\t\n\t for (i = 0; i < listeners.length; i += 1) {\n\t flatListeners.push(listeners[i].listener);\n\t }\n\t\n\t return flatListeners;\n\t };\n\t\n\t /**\n\t * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.\n\t *\n\t * @param {String|RegExp} evt Name of the event to return the listeners from.\n\t * @return {Object} All listener functions for an event in an object.\n\t */\n\t proto.getListenersAsObject = function getListenersAsObject(evt) {\n\t var listeners = this.getListeners(evt);\n\t var response;\n\t\n\t if (listeners instanceof Array) {\n\t response = {};\n\t response[evt] = listeners;\n\t }\n\t\n\t return response || listeners;\n\t };\n\t\n\t /**\n\t * Adds a listener function to the specified event.\n\t * The listener will not be added if it is a duplicate.\n\t * If the listener returns true then it will be removed after it is called.\n\t * If you pass a regular expression as the event name then the listener will be added to all events that match it.\n\t *\n\t * @param {String|RegExp} evt Name of the event to attach the listener to.\n\t * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.addListener = function addListener(evt, listener) {\n\t var listeners = this.getListenersAsObject(evt);\n\t var listenerIsWrapped = typeof listener === 'object';\n\t var key;\n\t\n\t for (key in listeners) {\n\t if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {\n\t listeners[key].push(listenerIsWrapped ? listener : {\n\t listener: listener,\n\t once: false\n\t });\n\t }\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Alias of addListener\n\t */\n\t proto.on = alias('addListener');\n\t\n\t /**\n\t * Semi-alias of addListener. It will add a listener that will be\n\t * automatically removed after its first execution.\n\t *\n\t * @param {String|RegExp} evt Name of the event to attach the listener to.\n\t * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.addOnceListener = function addOnceListener(evt, listener) {\n\t return this.addListener(evt, {\n\t listener: listener,\n\t once: true\n\t });\n\t };\n\t\n\t /**\n\t * Alias of addOnceListener.\n\t */\n\t proto.once = alias('addOnceListener');\n\t\n\t /**\n\t * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.\n\t * You need to tell it what event names should be matched by a regex.\n\t *\n\t * @param {String} evt Name of the event to create.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.defineEvent = function defineEvent(evt) {\n\t this.getListeners(evt);\n\t return this;\n\t };\n\t\n\t /**\n\t * Uses defineEvent to define multiple events.\n\t *\n\t * @param {String[]} evts An array of event names to define.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.defineEvents = function defineEvents(evts) {\n\t for (var i = 0; i < evts.length; i += 1) {\n\t this.defineEvent(evts[i]);\n\t }\n\t return this;\n\t };\n\t\n\t /**\n\t * Removes a listener function from the specified event.\n\t * When passed a regular expression as the event name, it will remove the listener from all events that match it.\n\t *\n\t * @param {String|RegExp} evt Name of the event to remove the listener from.\n\t * @param {Function} listener Method to remove from the event.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.removeListener = function removeListener(evt, listener) {\n\t var listeners = this.getListenersAsObject(evt);\n\t var index;\n\t var key;\n\t\n\t for (key in listeners) {\n\t if (listeners.hasOwnProperty(key)) {\n\t index = indexOfListener(listeners[key], listener);\n\t\n\t if (index !== -1) {\n\t listeners[key].splice(index, 1);\n\t }\n\t }\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Alias of removeListener\n\t */\n\t proto.off = alias('removeListener');\n\t\n\t /**\n\t * Adds listeners in bulk using the manipulateListeners method.\n\t * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.\n\t * You can also pass it a regular expression to add the array of listeners to all events that match it.\n\t * Yeah, this function does quite a bit. That's probably a bad thing.\n\t *\n\t * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.\n\t * @param {Function[]} [listeners] An optional array of listener functions to add.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.addListeners = function addListeners(evt, listeners) {\n\t // Pass through to manipulateListeners\n\t return this.manipulateListeners(false, evt, listeners);\n\t };\n\t\n\t /**\n\t * Removes listeners in bulk using the manipulateListeners method.\n\t * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n\t * You can also pass it an event name and an array of listeners to be removed.\n\t * You can also pass it a regular expression to remove the listeners from all events that match it.\n\t *\n\t * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.\n\t * @param {Function[]} [listeners] An optional array of listener functions to remove.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.removeListeners = function removeListeners(evt, listeners) {\n\t // Pass through to manipulateListeners\n\t return this.manipulateListeners(true, evt, listeners);\n\t };\n\t\n\t /**\n\t * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.\n\t * The first argument will determine if the listeners are removed (true) or added (false).\n\t * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n\t * You can also pass it an event name and an array of listeners to be added/removed.\n\t * You can also pass it a regular expression to manipulate the listeners of all events that match it.\n\t *\n\t * @param {Boolean} remove True if you want to remove listeners, false if you want to add.\n\t * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.\n\t * @param {Function[]} [listeners] An optional array of listener functions to add/remove.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {\n\t var i;\n\t var value;\n\t var single = remove ? this.removeListener : this.addListener;\n\t var multiple = remove ? this.removeListeners : this.addListeners;\n\t\n\t // If evt is an object then pass each of its properties to this method\n\t if (typeof evt === 'object' && !(evt instanceof RegExp)) {\n\t for (i in evt) {\n\t if (evt.hasOwnProperty(i) && (value = evt[i])) {\n\t // Pass the single listener straight through to the singular method\n\t if (typeof value === 'function') {\n\t single.call(this, i, value);\n\t }\n\t else {\n\t // Otherwise pass back to the multiple function\n\t multiple.call(this, i, value);\n\t }\n\t }\n\t }\n\t }\n\t else {\n\t // So evt must be a string\n\t // And listeners must be an array of listeners\n\t // Loop over it and pass each one to the multiple method\n\t i = listeners.length;\n\t while (i--) {\n\t single.call(this, evt, listeners[i]);\n\t }\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Removes all listeners from a specified event.\n\t * If you do not specify an event then all listeners will be removed.\n\t * That means every event will be emptied.\n\t * You can also pass a regex to remove all events that match it.\n\t *\n\t * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.removeEvent = function removeEvent(evt) {\n\t var type = typeof evt;\n\t var events = this._getEvents();\n\t var key;\n\t\n\t // Remove different things depending on the state of evt\n\t if (type === 'string') {\n\t // Remove all listeners for the specified event\n\t delete events[evt];\n\t }\n\t else if (evt instanceof RegExp) {\n\t // Remove all events matching the regex.\n\t for (key in events) {\n\t if (events.hasOwnProperty(key) && evt.test(key)) {\n\t delete events[key];\n\t }\n\t }\n\t }\n\t else {\n\t // Remove all listeners in all events\n\t delete this._events;\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Alias of removeEvent.\n\t *\n\t * Added to mirror the node API.\n\t */\n\t proto.removeAllListeners = alias('removeEvent');\n\t\n\t /**\n\t * Emits an event of your choice.\n\t * When emitted, every listener attached to that event will be executed.\n\t * If you pass the optional argument array then those arguments will be passed to every listener upon execution.\n\t * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.\n\t * So they will not arrive within the array on the other side, they will be separate.\n\t * You can also pass a regular expression to emit to all events that match it.\n\t *\n\t * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n\t * @param {Array} [args] Optional array of arguments to be passed to each listener.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.emitEvent = function emitEvent(evt, args) {\n\t var listenersMap = this.getListenersAsObject(evt);\n\t var listeners;\n\t var listener;\n\t var i;\n\t var key;\n\t var response;\n\t\n\t for (key in listenersMap) {\n\t if (listenersMap.hasOwnProperty(key)) {\n\t listeners = listenersMap[key].slice(0);\n\t i = listeners.length;\n\t\n\t while (i--) {\n\t // If the listener returns true then it shall be removed from the event\n\t // The function is executed either with a basic call or an apply if there is an args array\n\t listener = listeners[i];\n\t\n\t if (listener.once === true) {\n\t this.removeListener(evt, listener.listener);\n\t }\n\t\n\t response = listener.listener.apply(this, args || []);\n\t\n\t if (response === this._getOnceReturnValue()) {\n\t this.removeListener(evt, listener.listener);\n\t }\n\t }\n\t }\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Alias of emitEvent\n\t */\n\t proto.trigger = alias('emitEvent');\n\t\n\t /**\n\t * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.\n\t * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.\n\t *\n\t * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n\t * @param {...*} Optional additional arguments to be passed to each listener.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.emit = function emit(evt) {\n\t var args = Array.prototype.slice.call(arguments, 1);\n\t return this.emitEvent(evt, args);\n\t };\n\t\n\t /**\n\t * Sets the current value to check against when executing listeners. If a\n\t * listeners return value matches the one set here then it will be removed\n\t * after execution. This value defaults to true.\n\t *\n\t * @param {*} value The new value to check for when executing listeners.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.setOnceReturnValue = function setOnceReturnValue(value) {\n\t this._onceReturnValue = value;\n\t return this;\n\t };\n\t\n\t /**\n\t * Fetches the current value to check against when executing listeners. If\n\t * the listeners return value matches this one then it should be removed\n\t * automatically. It will return true by default.\n\t *\n\t * @return {*|Boolean} The current value to check for or the default, true.\n\t * @api private\n\t */\n\t proto._getOnceReturnValue = function _getOnceReturnValue() {\n\t if (this.hasOwnProperty('_onceReturnValue')) {\n\t return this._onceReturnValue;\n\t }\n\t else {\n\t return true;\n\t }\n\t };\n\t\n\t /**\n\t * Fetches the events object and creates one if required.\n\t *\n\t * @return {Object} The events storage object.\n\t * @api private\n\t */\n\t proto._getEvents = function _getEvents() {\n\t return this._events || (this._events = {});\n\t };\n\t\n\t /**\n\t * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.\n\t *\n\t * @return {Function} Non conflicting EventEmitter class.\n\t */\n\t EventEmitter.noConflict = function noConflict() {\n\t exports.EventEmitter = originalGlobalValue;\n\t return EventEmitter;\n\t };\n\t\n\t // Expose the class either via AMD, CommonJS or the global object\n\t if (true) {\n\t !(__WEBPACK_AMD_DEFINE_RESULT__ = function () {\n\t return EventEmitter;\n\t }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t }\n\t else if (typeof module === 'object' && module.exports){\n\t module.exports = EventEmitter;\n\t }\n\t else {\n\t exports.EventEmitter = EventEmitter;\n\t }\n\t}.call(this));\n\n\n/***/ }\n/******/ ])\n});\n;\n\n\n/** WEBPACK FOOTER **\n ** js/marklib.min.js\n **/"," \t// The module cache\n \tvar installedModules = {};\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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"../\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 02030115b79806ce8aa2\n **/","var $Object = Object;\nmodule.exports = {\n create: $Object.create,\n getProto: $Object.getPrototypeOf,\n isEnum: {}.propertyIsEnumerable,\n getDesc: $Object.getOwnPropertyDescriptor,\n setDesc: $Object.defineProperty,\n setDescs: $Object.defineProperties,\n getKeys: $Object.keys,\n getNames: $Object.getOwnPropertyNames,\n getSymbols: $Object.getOwnPropertySymbols,\n each: [].forEach\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.js\n ** module id = 1\n ** module chunks = 0 1\n **/","var core = module.exports = {version: '1.2.6'};\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.core.js\n ** module id = 2\n ** module chunks = 0 1\n **/","var store = require('./$.shared')('wks')\n , uid = require('./$.uid')\n , Symbol = require('./$.global').Symbol;\nmodule.exports = function(name){\n return store[name] || (store[name] =\n Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.wks.js\n ** module id = 3\n ** module chunks = 0 1\n **/","var global = require('./$.global')\n , core = require('./$.core')\n , ctx = require('./$.ctx')\n , PROTOTYPE = 'prototype';\n\nvar $export = function(type, name, source){\n var IS_FORCED = type & $export.F\n , IS_GLOBAL = type & $export.G\n , IS_STATIC = type & $export.S\n , IS_PROTO = type & $export.P\n , IS_BIND = type & $export.B\n , IS_WRAP = type & $export.W\n , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n , key, own, out;\n if(IS_GLOBAL)source = name;\n for(key in source){\n // contains in native\n own = !IS_FORCED && target && key in target;\n if(own && key in exports)continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function(C){\n var F = function(param){\n return this instanceof C ? new C(param) : C(param);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\nmodule.exports = $export;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.export.js\n ** module id = 4\n ** module chunks = 0 1\n **/","module.exports = {};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iterators.js\n ** module id = 5\n ** module chunks = 0 1\n **/","var isObject = require('./$.is-object');\nmodule.exports = function(it){\n if(!isObject(it))throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.an-object.js\n ** module id = 6\n ** module chunks = 0 1\n **/","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./$.fails')(function(){\n return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.descriptors.js\n ** module id = 7\n ** module chunks = 0 1\n **/","module.exports = function(exec){\n try {\n return !!exec();\n } catch(e){\n return true;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.fails.js\n ** module id = 8\n ** module chunks = 0 1\n **/","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\nif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.global.js\n ** module id = 9\n ** module chunks = 0 1\n **/","var $ = require('./$')\n , createDesc = require('./$.property-desc');\nmodule.exports = require('./$.descriptors') ? function(object, key, value){\n return $.setDesc(object, key, createDesc(1, value));\n} : function(object, key, value){\n object[key] = value;\n return object;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.hide.js\n ** module id = 10\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/classCallCheck.js\n ** module id = 12\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\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 (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/createClass.js\n ** module id = 13\n ** module chunks = 0 1\n **/","// optional / simple context binding\nvar aFunction = require('./$.a-function');\nmodule.exports = function(fn, that, length){\n aFunction(fn);\n if(that === undefined)return fn;\n switch(length){\n case 1: return function(a){\n return fn.call(that, a);\n };\n case 2: return function(a, b){\n return fn.call(that, a, b);\n };\n case 3: return function(a, b, c){\n return fn.call(that, a, b, c);\n };\n }\n return function(/* ...args */){\n return fn.apply(that, arguments);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.ctx.js\n ** module id = 14\n ** module chunks = 0 1\n **/","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function(it){\n if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.defined.js\n ** module id = 15\n ** module chunks = 0 1\n **/","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function(it, key){\n return hasOwnProperty.call(it, key);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.has.js\n ** module id = 16\n ** module chunks = 0 1\n **/","module.exports = function(it){\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-object.js\n ** module id = 17\n ** module chunks = 0 1\n **/","var def = require('./$').setDesc\n , has = require('./$.has')\n , TAG = require('./$.wks')('toStringTag');\n\nmodule.exports = function(it, tag, stat){\n if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-to-string-tag.js\n ** module id = 18\n ** module chunks = 0 1\n **/","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./$.iobject')\n , defined = require('./$.defined');\nmodule.exports = function(it){\n return IObject(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-iobject.js\n ** module id = 19\n ** module chunks = 0 1\n **/","'use strict';\nvar $at = require('./$.string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./$.iter-define')(String, 'String', function(iterated){\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , index = this._i\n , point;\n if(index >= O.length)return {value: undefined, done: true};\n point = $at(O, index);\n this._i += point.length;\n return {value: point, done: false};\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.string.iterator.js\n ** module id = 20\n ** module chunks = 0 1\n **/","require('./es6.array.iterator');\nvar Iterators = require('./$.iterators');\nIterators.NodeList = Iterators.HTMLCollection = Iterators.Array;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/web.dom.iterable.js\n ** module id = 21\n ** module chunks = 0 1\n **/","/* global Node */\n\nimport RenderResult from './RenderResult';\nimport RenderingEvents from './RenderingEvents';\nimport Util, { ATTR_DATA_ORIGINAL_INDEX, DATA_IS_SELECTION } from './util/Util';\n\n/**\n * @type {string}\n */\nconst TAG_NAME = 'x-marker';\n/**\n * @type {string}\n */\nexport const ATTR_DATA_ORIGINAL_OFFSET_START = 'data-original-offset-start';\n/**\n * @type {string}\n */\nconst DATA_ORIGINAL_TEXT_NODE_INDEX = 'original-text-node-index';\n/**\n * @type {string}\n */\nconst ATTR_DATA_START_END = 'data-is-start-end';\n/**\n * @type {string}\n */\nconst ATTR_DATA_IS_HIGHLIGHT_NODE = 'data-is-highlight-node';\n/**\n * @type {string}\n */\nconst ATTR_DATA_ID = 'data-selection-id';\n\n/**\n * @see https://developer.mozilla.org/de/docs/Web/API/Node/compareDocumentPosition\n * @type {number}\n */\nconst DOCUMENT_POSITION_CONTAINED_BY = 16;\n\n\n/**\n * @type {string}\n */\nexport const EVENT_WRAPPED_NODE = 'wrapped-node';\n\n/**\n * Manages a single Render\n */\nclass Rendering extends RenderingEvents {\n\n /**\n * @param {Document} document\n * @param {object} options\n * @param {Node} context\n */\n constructor(document, options, context) {\n super(options, document);\n\n /**\n * ID of rendering, will be set on each element that is part of it\n * @type {String}\n */\n this.id = Util.guid();\n\n /**\n * StartContainer\n * @type {Node}\n */\n this.startContainer = null;\n\n /**\n * EndContainer\n * @type {Node}\n */\n this.endContainer = null;\n\n /**\n * @type {Node}\n */\n this.context = context || this.document;\n\n /**\n * Flag if this instance has been rendered\n * @type {RenderResult}\n * @private\n */\n this._renderResult = null;\n }\n\n /**\n * @returns {string} id of this rendering\n */\n getId() {\n return this.id;\n }\n\n /**\n * @param {string} id\n * @returns {Rendering}\n */\n setId(id) {\n this.id = id;\n\n if (this._renderResult) {\n this.wrapperNodes.forEach((node) => node.setAttribute(ATTR_DATA_ID, this.id));\n }\n\n return this;\n }\n\n /**\n * Creates a Template used as a wrapper and an indication that this is a highlight node\n * @param {Boolean} [omitHighlight]\n * @returns {Node}\n * @private\n */\n _createWrapTemplate(omitHighlight) {\n const el = this.document.createElement(TAG_NAME);\n const vTrue = \"true\";\n\n if (!omitHighlight) {\n el.className = this.options.className.join(' ');\n // save this marker instance to given node\n Rendering.setMarklibInstance(el, this);\n // keep track of highlight nodes\n this.wrapperNodes.push(el);\n el.setAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE, vTrue);\n el.setAttribute(ATTR_DATA_ID, this.getId());\n }\n el.setAttribute(DATA_IS_SELECTION, vTrue);\n\n return el;\n }\n\n /**\n * Creates a Template to use as start and end marks\n * @param {String} text\n * @returns {Node}\n * @private\n */\n _createStartEndWrapTemplate(text) {\n const el = this._createWrapTemplate();\n el.setAttribute(ATTR_DATA_START_END, 'true');\n el.textContent = text;\n return el;\n }\n\n\n /**\n * Creates Start or End Container Element\n * @param initialNode\n * @param text\n * @param offset\n * @param index\n * @returns {Node}\n */\n _createStartOrEndContainer(initialNode, text, offset, index) {\n const wrapper = this._createStartEndWrapTemplate(text);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(initialNode, index));\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n\n return wrapper;\n }\n\n /**\n * Wraps given element\n * @param {Node|HTMLElement} el\n * @param [optionalLength]\n * @param [optionalIndex]\n * @param [optionalIsSameNode]\n * @param {Boolean} [omitHighlight] set to true to prevent node to be a highlight node\n * @returns {Node}\n * @private\n */\n _createWrap(el, optionalLength, optionalIndex, optionalIsSameNode, omitHighlight) {\n const originalIndex = optionalIndex >= 0 ? optionalIndex : Util.calcIndex(el);\n const wrapper = this._createWrapTemplate(omitHighlight);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(el, originalIndex));\n const offsetLength = optionalLength >= 0 ? optionalLength : Util.getOffsetParentIfHas(el);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offsetLength);\n\n // Save a reference to original text node in wrapper\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, originalIndex);\n\n if (optionalIsSameNode) {\n wrapper.setAttribute(ATTR_DATA_START_END, ATTR_DATA_START_END);\n }\n const wrap = Util.wrap(el, wrapper);\n\n this.emit(EVENT_WRAPPED_NODE, el, wrap);\n\n return wrap;\n }\n\n /**\n * Create split container element\n * @param originalElement {Node} original text node element that is created a wrapper for\n * @param index\n * @param offset\n * @returns {Node}\n */\n _createSplitContainer(originalElement, index, offset) {\n const wrapper = this.document.createElement(TAG_NAME);\n wrapper.setAttribute(DATA_IS_SELECTION, 'true');\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(originalElement, index));\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n return wrapper;\n }\n\n /**\n * Walks the tree\n * @param start\n * @param endContainer\n * @param nextParent\n */\n walk(start, endContainer, nextParent) {\n let nextParentNode = start;\n while (nextParentNode && nextParentNode !== nextParent.parentNode) {\n const currentParentNode = nextParentNode;\n nextParentNode = nextParentNode.parentNode;\n if (this.wrapSiblings(currentParentNode.nextSibling, endContainer)) {\n break;\n }\n }\n }\n\n\n /**\n * Will Wrap all textNode siblings of a container (start) inside a defined Element (like a span)\n * If an Element node is found, it will wrap all children of this node inside a element as well.\n * It will stop if endContainer is found as a node\n *\n * @param {Node} start\n * @param {Node} endContainer\n * @returns {boolean} (true if endContainer was found)\n */\n wrapSiblings(start, endContainer) {\n let next = start;\n let found = false;\n\n // Capsule some logic\n const wrap = (n) => {\n const instance = Rendering.getMarklibInstance(n.parentNode);\n if (n.parentNode.hasAttribute(ATTR_DATA_START_END) &&\n n.parentNode.hasAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE) &&\n instance === this) {\n this._createWrap(n, undefined, undefined, undefined, true);\n } else {\n this._createWrap(n);\n }\n };\n\n // helper functions\n\n const wrapIf = (n) => {\n if (!Util.nodeIsEmpty(n)) {\n wrap(n);\n }\n };\n\n const walkIfContained = (e) => {\n if (e === endContainer) {\n return false;\n }\n if (Node.TEXT_NODE === e.nodeType) {\n wrapIf(e);\n }\n return true;\n };\n\n const walkIfNotContained = (el) => {\n wrapIf(el);\n };\n\n while (next !== null && next !== endContainer) {\n const currentNext = next;\n next = next.nextSibling;\n // Found a text node, directly wrap inside a span\n if (Node.TEXT_NODE === currentNext.nodeType) {\n wrapIf(currentNext);\n } else {\n if ((currentNext.compareDocumentPosition(endContainer) & DOCUMENT_POSITION_CONTAINED_BY)) {\n Util.walkDom(currentNext, walkIfContained);\n found = true;\n } else {\n Util.walkTextNodes(currentNext, walkIfNotContained);\n }\n if (found) {\n return true;\n }\n }\n }\n return found;\n }\n\n /**\n * Marks text of the same node\n * @param {Node} textNode\n * @param {int} startIndex\n * @param {int} endIndex\n * @private\n */\n _markTextSameNode(textNode, startIndex, endIndex) {\n const initialText = textNode.nodeValue;\n const initialIndex = Util.calcIndex(textNode);\n\n if (!initialText) {\n return false;\n }\n // If there is an unmarked part in the beginning of the text node,\n // cut off that part and put it into it's own textnode.\n if (startIndex > 0) {\n const textBefore = initialText.slice(0, startIndex);\n textNode.parentNode.insertBefore(this.document.createTextNode(textBefore), textNode);\n // wrap cutted text node:\n Util.wrap(textNode.previousSibling, this._createSplitContainer(textNode,\n initialIndex, Util.getOffsetParentIfHas(textNode)));\n }\n // If there is an unmarked part at the end of the text node,\n // cut off that part and put it into it's own textnode.\n if (endIndex < initialText.length) {\n const textAfter = initialText.slice(endIndex, initialText.length);\n textNode.parentNode.insertBefore(this.document.createTextNode(textAfter), textNode.nextSibling);\n Util.wrap(textNode.nextSibling, this._createSplitContainer(textNode,\n initialIndex, Util.getOffsetParentIfHas(textNode) + endIndex));\n }\n\n // Cutoff the unmarked parts and wrap the textnode into a span.\n textNode.nodeValue = initialText.slice(startIndex, endIndex);\n this.startContainer = this._createWrap(textNode,\n Util.getOffsetParentIfHas(textNode) + startIndex, initialIndex, true).parentNode;\n this.endContainer = this.startContainer;\n return this.startContainer;\n }\n\n\n /**\n * Marks text of end and start containers if start and end nodes are different\n * Important: There might be no end container!\n *\n * @param {Node} startContainer\n * @param {Node} endContainer\n * @param {int} startOffset\n * @param {int} endOffset\n * @returns {{startT: (Node), endT: (Node)}}\n * @private\n */\n _markTextDifferentNode(startContainer, endContainer, startOffset, endOffset) {\n // Get current for both start and end:\n const startContainerIndex = Util.calcIndex(startContainer);\n const endContainerIndex = Util.calcIndex(endContainer);\n\n // Split text\n const fullTextStartValue = startContainer.nodeValue;\n // init with startContainer because we may have not a text node here\n let startT = startContainer;\n\n if (undefined !== fullTextStartValue) {\n const partTextStartValue = fullTextStartValue.slice(startOffset, fullTextStartValue.length);\n // Set new text to start node\n startContainer.nodeValue = fullTextStartValue.slice(0, startOffset);\n\n const offsetStart = Util.getOffsetParentIfHas(startContainer);\n // Create a new node for splitted text, offset is the length of new startContainer.nodeValue:\n startT = this._createStartOrEndContainer(startContainer, partTextStartValue,\n offsetStart === startOffset ? offsetStart : offsetStart + startOffset, startContainerIndex);\n // Append this node after startContainer\n startContainer.parentNode.insertBefore(startT, startContainer.nextSibling);\n this.startContainer = startT;\n\n if (startContainer.nodeValue) {\n // Wrap start container in detection node, offset is always 0 or parent offset.\n Util.wrap(startContainer, this._createSplitContainer(startContainer, startContainerIndex,\n Util.getOffsetParentIfHas(startContainer)));\n }\n }\n\n // init with endContainer because we may have not a text node here\n let endT = endContainer;\n\n // 2. Extract end Text node,\n const fullTextEndValue = endContainer.nodeValue;\n // It's possible that end container value is null (if a whole paragraph is marked)\n if (undefined !== fullTextEndValue) {\n // Split text\n const partTextEndValue = fullTextEndValue.slice(0, endOffset);\n endContainer.nodeValue = fullTextEndValue.slice(endOffset, fullTextEndValue.length);\n // End Container start offset is always 0 or parent offset.\n endT = this._createStartOrEndContainer(endContainer, partTextEndValue,\n Util.getOffsetParentIfHas(endContainer), endContainerIndex);\n\n endContainer.parentNode.insertBefore(endT, endContainer);\n this.endContainer = endT;\n const offsetParent = Util.getOffsetParentIfHas(endContainer);\n Util.wrap(endContainer, this._createSplitContainer(endContainer, endContainerIndex,\n offsetParent === endOffset ? offsetParent : offsetParent + endOffset));\n }\n\n return {\n startT,\n endT\n };\n }\n\n /**\n * Renders a selection\n * @param {Node} startContainerP\n * @param {Node} endContainerP\n * @param {Node} commonAncestor\n * @param {int} startOffset\n * @param {int} endOffsetP\n * @returns RenderResult\n * @private\n */\n _renderWithElements(startContainerP, endContainerP, commonAncestor, startOffset, endOffsetP) {\n if (this._renderResult) {\n return this._renderResult;\n }\n let startContainer = startContainerP;\n let endContainer = endContainerP;\n let endOffset = endOffsetP;\n let outer = Util.parents(startContainer, commonAncestor);\n outer = outer[outer.length - 1];\n const contextContainer = outer ? outer : commonAncestor;\n\n // Same Element, means the selection is fully contained in a discrete area, start and endpoint have the same parent\n // but are different nodes:\n\n // Start and End offset have to be recalculated because dom might be already changed by highlighting in given node\n // 1: First detect real start offset in startContainer:\n\n // That works by selecting the highest wrapper and get original-offset-start data element, see \"findOriginalOffset\"\n // So first select that container:\n const originalStartOffset = Util.findOriginalOffset(startContainer);\n const originalEndOffset = Util.findOriginalOffset(endContainer);\n\n // We may run into Browser Bugs:\n\n // If both are not text nodes, use next sibling as endContainer\n if (startContainer.nodeType !== Node.TEXT_NODE && endContainer.nodeType !== Node.TEXT_NODE) {\n if (startContainer === endContainer) {\n endContainer = endContainer.nextElementSibling || endContainer;\n }\n }\n // IF start/end container is not type of text, select first child text node:\n // We run in some bugs with firefox here that selects no text-nodes sometimes, trying to fix this here\n // Sometimes does not work correctly... (specially when DOM was modified)\n if (startContainer.nodeType !== Node.TEXT_NODE) {\n Util.walkDom(startContainer, (el) => {\n if (el.nodeType === Node.TEXT_NODE) {\n startContainer = el;\n return false;\n }\n return true;\n });\n }\n\n if (endContainer.nodeType !== Node.TEXT_NODE) {\n let toFindNode = startContainer;\n\n if (endOffset === 0) {\n toFindNode = endContainer.previousElementSibling || startContainer;\n }\n\n // Get the last text node:\n const endContainerContents = Util.closest(toFindNode, ':not([' + DATA_IS_SELECTION + '])').childNodes;\n if (endContainerContents.length) {\n const r = endContainerContents[endContainerContents.length - 1];\n if (r.nodeType === Node.TEXT_NODE) {\n endContainer = r;\n endOffset = r.length;\n } else {\n let f = r.lastChild;\n while (f !== null) {\n if (f && f.nodeType === Node.TEXT_NODE) {\n endContainer = f;\n endOffset = f.length;\n if (f.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n endOffset = parseInt(f.parentNode\n .getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) + endOffset;\n }\n }\n f = f.lastChild;\n }\n }\n }\n // still no textNode?\n if (endContainer.nodeType !== Node.TEXT_NODE) {\n throw Error('Could not found endContainer, highlighting would be unstable');\n }\n }\n\n this._renderResult = new RenderResult(\n // Real offset is calculated by relative length and absolute length\n originalStartOffset + startOffset,\n originalEndOffset + endOffset,\n // get the path for this selection\n Util.getPath(startContainer, this.context),\n Util.getPath(endContainer, this.context)\n );\n\n this._renderResult.instance = this;\n\n\n this._renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, !!outer);\n\n return this._renderResult;\n }\n\n /**\n * Renders a given selection\n *\n * @param {Node} startContainer\n * @param {Node} endContainer\n * @param {int} startOffset\n * @param {int} endOffset\n * @param {Node} contextContainer\n * @param {Boolean} outer\n * @private\n */\n _renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, outer) {\n // if start and end-container are the same, mark text on the same node\n if (startContainer === endContainer) {\n this._markTextSameNode(startContainer, startOffset, endOffset);\n } else {\n const result = this._markTextDifferentNode(startContainer, endContainer, startOffset, endOffset);\n const index = this.wrapperNodes.indexOf(result.endT);\n // remove endContainer, to keep order:\n this.wrapperNodes.splice(index, 1);\n if (!outer) {\n this.wrapSiblings(result.startT.nextSibling, endContainer);\n } else {\n this.walk(result.startT, endContainer, contextContainer);\n }\n this.wrapperNodes.push(result.endT);\n }\n }\n\n /**\n * Prepares to render a Selection with path selectors\n * ```\n * A Path looks like this:\n *\n * #selector;#textnode;#offset\n * ``\n * @param {string} startPath\n * @param {string} endPath\n * @returns {string}\n */\n renderWithPath(startPath, endPath) {\n const startContainer = Util.deserializePath(startPath, this.context);\n const endContainer = Util.deserializePath(endPath, this.context);\n if (startContainer && endContainer && startContainer.node && endContainer.node) {\n const range = document.createRange();\n range.setStart(startContainer.node, startContainer.offset);\n range.setEnd(endContainer.node, endContainer.offset);\n const text = range.toString();\n const result = this.renderWithRange(range);\n result.text = text;\n return text;\n }\n throw new Error('Could not find start- and/or end-container in document');\n }\n\n /**\n * @returns {RenderResult}\n */\n get result() {\n return this._renderResult;\n }\n\n /**\n * Renders a result (that returned from `renderWithRange`)\n * @param {RenderResult|Object} result\n * @returns {string}\n */\n renderWithResult(result) {\n return this.renderWithPath(\n `${result.startContainerPath};${result.startOffset}`,\n `${result.endContainerPath};${result.endOffset}`);\n }\n\n /**\n * Prepares a selection with a range object\n * @param {Range} range\n * @returns {Object}\n */\n renderWithRange(range) {\n const text = range.toString();\n const result = this._renderWithElements(range.startContainer, range.endContainer,\n range.commonAncestorContainer, range.startOffset, range.endOffset);\n result.text = text;\n return result;\n }\n\n /**\n * Removes bindings and classNames to nodes\n */\n destroy() {\n this.wrapperNodes.forEach((node) => {\n delete node.marklibInstance;\n node.className = '';\n });\n this.removeEvent();\n }\n\n /**\n * @param {Node} el\n * @param {Rendering} instance\n * @returns {Node}\n */\n static setMarklibInstance(el, instance) {\n el.marklibInstance = instance;\n return el;\n }\n\n /**\n * @param {Node} el\n * @returns {Rendering|null|undefined}\n */\n static getMarklibInstance(el) {\n return el ? el.marklibInstance : null;\n }\n}\n\nexport default Rendering;\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/Rendering.js\n **/","/* global Node, NodeList, Element */\n\n/**\n * @type {string}\n */\nexport const ATTR_DATA_ORIGINAL_INDEX = 'data-original-index';\n/**\n * @type {string}\n */\nexport const DATA_IS_SELECTION = 'data-is-selection';\n/**\n * @type {string}\n */\nconst SERIALIZE_SEPARATOR = \";\";\n\nimport { ATTR_DATA_ORIGINAL_OFFSET_START } from '../Rendering';\n\n// polyfill for matchesSelector, IE 10/11 does not support Element.matches\nif (Element && !Element.prototype.matches) {\n const p = Element.prototype;\n p.matches = p.matchesSelector ||\n p.mozMatchesSelector || p.msMatchesSelector ||\n p.oMatchesSelector || p.webkitMatchesSelector;\n}\n\n/**\n * Utility class\n * Contains DOM/Node manipulation helpers\n */\nexport default\nclass Util {\n\n /**\n * Filter for a NodeList\n * @param {NodeList} nodes\n * @param {Function} func\n *\n * @returns {Array.}\n */\n static nodeListFilter(nodes, func) {\n return Array.prototype.filter.call(nodes || [], func);\n }\n\n\n /**\n * Generates a unique id\n *\n * @return {String}\n */\n static guid() {\n const s4 = () => {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n };\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n }\n\n /**\n * Checks if a given node is empty\n * @param {HTMLElement} node\n *\n * @returns {*}\n */\n static nodeIsEmpty(node) {\n return node.nodeValue.match(/^[\\s]*$/g);\n }\n\n\n /**\n * @param {HTMLElement} node\n * @param [optionalList]\n *\n * @return {int} the index of this node in context to it's siblings\n */\n static index(node, optionalList) {\n const children = optionalList || (node.nodeType === Node.TEXT_NODE ?\n node.parentNode.childNodes : node.parentNode.children);\n return Array.prototype.indexOf.call(children || [], node);\n }\n\n /**\n * Wraps given `elms` in given `wrapper`\n *\n * @param {HTMLElement|Array.|Node} elms\n * @param {HTMLElement|Node} wrapper\n *\n * @return {HTMLElement}\n */\n static wrap(elms, wrapper) {\n let thisElms = elms;\n\n if (!thisElms) {\n return wrapper;\n }\n // Convert `elms` to an array, if necessary.\n if (!(thisElms instanceof NodeList || thisElms instanceof Array)) {\n thisElms = [thisElms];\n }\n for (let i = thisElms.length - 1; i >= 0; i--) {\n const child = (i > 0) ? wrapper.cloneNode(true) : wrapper;\n const el = thisElms[i];\n // Cache the current parent and sibling.\n const parent = el.parentNode;\n const sibling = el.nextSibling;\n\n child.appendChild(el);\n if (sibling) {\n parent.insertBefore(child, sibling);\n } else {\n parent.appendChild(child);\n }\n }\n return wrapper;\n }\n\n /**\n * Will calculate an index depending on an already modified dom by marklib\n * @param {HTMLElement|Node} node\n *\n * @returns {int|boolean}\n */\n static calcIndex(node) {\n let calculatedIndex = 0;\n let foundWrapper = false;\n const nodes = node.parentNode.childNodes;\n const length = nodes.length;\n for (let thisIndex = 0; thisIndex < length; thisIndex++) {\n const el = nodes[thisIndex];\n if (el === node) {\n break;\n }\n // reset index when original index is found\n const maybeIndexOfOriginal = el.getAttribute ? el.getAttribute(ATTR_DATA_ORIGINAL_INDEX) : null;\n\n if (maybeIndexOfOriginal) {\n calculatedIndex = parseInt(maybeIndexOfOriginal, 10);\n foundWrapper = true;\n }\n calculatedIndex++;\n }\n return foundWrapper ? calculatedIndex : Util.index(node);\n }\n\n /**\n * @param {HTMLElement|Node} el\n * @param {String} [optionalSelector] will test given element against a selector\n * if matches, returns this element immediately\n *\n * @return {Array.} an array of all found parents of given element (and optional selector)\n */\n static parents(el, optionalSelector) {\n return Util.parentsCallback(el, (element) => {\n if (optionalSelector && ((element === optionalSelector) ||\n ((typeof optionalSelector === 'string') && element.matches &&\n element.matches(optionalSelector)))) {\n return true;\n } else if (!optionalSelector) {\n return true;\n }\n return false;\n });\n }\n\n /**\n * @param {HTMLElement|Node} el\n * @param {Function} callback\n * @return {Array.} an array of all found parents of given element (and optional selector)\n */\n static parentsCallback(el, callback) {\n let element = el;\n const foundElements = [];\n while (element.parentNode !== null) {\n element = element.parentNode;\n if (callback(element)) {\n foundElements.push(element);\n }\n }\n return foundElements;\n }\n\n /**\n * Finds a parent node (the closest) with a given selector\n * @param {Node} el\n * @param {String} selector\n *\n * @returns {Node|boolean}\n */\n static parent(el, selector) {\n let element = el;\n while (element.parentNode !== null) {\n element = element.parentNode;\n if (element.matches && element.matches(selector)) {\n return element;\n }\n }\n return false;\n }\n\n /**\n * Finds the closest element including itself matching a given selector\n * @param {Node} el\n * @param selector\n *\n * @returns {Node|boolean}\n */\n static closest(el, selector) {\n return Util.closestCallback(el, (element) => element.matches && element.matches(selector));\n }\n\n /**\n * Finds the closest element including itself matching a callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static closestCallback(el, callback) {\n let element = el;\n while (element !== null) {\n if (callback(element)) {\n return element;\n }\n element = element.parentNode;\n }\n return false;\n }\n\n /**\n * Finds the outermost fitting element that matches callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static outerMostCallback(el, callback) {\n let element = el;\n let lastValid = false;\n while (element !== null) {\n if (callback(element)) {\n lastValid = element;\n }\n element = element.parentNode;\n }\n return lastValid;\n }\n\n /**\n * @param {HTMLElement} n\n *\n * @return {boolean}\n */\n static isMarkNode(n) {\n return n instanceof HTMLElement && n.hasAttribute(DATA_IS_SELECTION);\n }\n\n /**\n * Determines the correct paths and excludes all `marklib` generated content\n * TODO: To improve performance we could shorten the path if an ID is present in it.\n * @param {HTMLElement|Node} el\n * @param {HTMLElement|Node} [context] if given extraction path is relative to this element\n * @returns {string}\n */\n static getPath(el, context) {\n let path = null;\n let node = el;\n\n const filterSiblings = (thisEl) => {\n return !Util.isMarkNode(thisEl) && thisEl.nodeName === node.nodeName;\n };\n\n while (node) {\n let name = null;\n // If node is a text-node, save index\n if (Node.TEXT_NODE === node.nodeType) {\n /* Because nodes may wrapped inside a highlighting node, we need to find the original index that was\n * valid before the dom changes. We store the last known index position inside all wrapper elements\n * We select the outermost\n */\n\n // Extract original index of this node:\n // Outer most data-original-index is original index\n const outerMostElement = Util.parents(node, '[' + ATTR_DATA_ORIGINAL_INDEX + ']').reverse()[0];\n // if element is not yet wrapped in span, recalculate index based on parent container:\n // We have to do this because text node indexes != element indexes...\n let calculatedIndex = 0;\n if (!outerMostElement) {\n calculatedIndex = Util.calcIndex(node);\n }\n const index = outerMostElement ? parseInt(\n outerMostElement.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10) : calculatedIndex;\n name = SERIALIZE_SEPARATOR + index;\n } else {\n name = node.nodeName;\n }\n\n if (!name) {\n break;\n }\n\n name = name.toLowerCase();\n\n const parent = node.parentNode;\n\n if (Util.isMarkNode(node)) {\n if (parent !== context) {\n node = parent;\n continue;\n } else {\n break;\n }\n }\n\n // Select only siblings that are not part of selection and are of the same type\n // (because we use nth-of-type selector later)\n const siblings = Util.nodeListFilter(parent.children, filterSiblings);\n const nodeIndex = Util.index(node, siblings);\n\n if (siblings.length > 1 && nodeIndex >= 0) {\n name += ':nth-of-type(' + (nodeIndex + 1) + ')';\n }\n\n path = name + (path ? '>' + path : '');\n\n\n if (parent === context) {\n break;\n }\n\n node = parent;\n }\n\n return path.replace(\"#document>\", \"\").replace('>;', ';');\n }\n\n /**\n * Will return the first original offset value that is found\n * @param {Node} element\n *\n * @returns {int}\n */\n static findOriginalOffset(element) {\n if (!element.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n return 0;\n }\n const lengthElement = Util.parent(element, '[' + ATTR_DATA_ORIGINAL_OFFSET_START + ']');\n return lengthElement ? parseInt(lengthElement.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) : 0;\n }\n\n\n /**\n * Deserialize a specific path and finds the right textNodes\n * This even works when DOM has been manipulated before by `marklib`\n * @param {string} path the serialized path (including offsets)\n * @param {Node|HTMLElement} context\n *\n * @return {Node}\n */\n static deserializePath(path, context) {\n const pSplit = path.split(';');\n const p = pSplit[0];\n const objectIndex = parseInt(pSplit[1], 10);\n const charOffset = parseInt(pSplit[2], 10);\n const container = !p.trim() ? context : context.querySelector(p);\n\n let maybeFoundNode = null;\n\n Util.walkTextNodes(container, (n) => {\n let atrOffsetStart = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START);\n atrOffsetStart = atrOffsetStart === null ? 0 : atrOffsetStart;\n let atrIndex = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_INDEX);\n atrIndex = atrIndex === null ? Util.calcIndex(n) : atrIndex;\n if (parseInt(atrIndex, 10) === objectIndex && charOffset >= atrOffsetStart &&\n ((parseInt(atrOffsetStart, 10) + n.length) >= charOffset)) {\n const thisOffset = n.parentNode\n .hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START) ? charOffset -\n parseInt(n.parentNode\n .getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) : charOffset;\n\n maybeFoundNode = {\n node: n,\n offset: thisOffset\n };\n\n return false;\n }\n return true;\n }, null);\n\n return maybeFoundNode;\n }\n\n\n /**\n * Walks the dom tree unless func returns false\n * Applies node to function\n *\n * @param {Node} node\n * @param {Function} func\n * @param {int} type, see `NodeFilter`\n * @param {Object} [filter] skips empty text nodes by default\n *\n * @returns {boolean} true if function did abort walk\n */\n static walkDom(node, func, type = NodeFilter.SHOW_ALL, filter = null) {\n if (!node) {\n return false;\n }\n const args = [node, type, filter || (() => true), false];\n args.push(false);\n const walker = document.createTreeWalker(...args);\n while (walker.nextNode()) {\n if (!func(walker.currentNode)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Extracts all TextNodes inside a container\n * @param {Node} el\n * @param {Function} func\n * @param {Object} [filter] skips empty text nodes by default\n * @returns {boolean} true if function did abort walk\n */\n static walkTextNodes(el, func, filter = (node) => !Util.nodeIsEmpty(node)) {\n return Util.walkDom(el, func, NodeFilter.SHOW_TEXT, filter);\n }\n\n /**\n * @param {Node} container\n * @param {Number} thisIndex\n * @returns {int|string} index of parent or original\n */\n static getIndexParentIfHas(container, thisIndex) {\n const p = container.parentNode;\n const index = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10);\n return index > thisIndex ? index : thisIndex;\n }\n\n /**\n * @param container\n * @returns {int} offset start of parent if has, else 0\n */\n static getOffsetParentIfHas(container) {\n const p = container.parentNode;\n const offset = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10);\n return offset > 0 ? offset : 0;\n }\n\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/util/Util.js\n **/","\"use strict\";\n\nvar _typeof = typeof _Symbol === \"function\" && typeof _Symbol$iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _Symbol === \"function\" && obj.constructor === _Symbol ? \"symbol\" : typeof obj; };\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/typeof.js\n ** module id = 25\n ** module chunks = 0 1\n **/","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./$.cof')\n , TAG = require('./$.wks')('toStringTag')\n // ES3 wrong here\n , ARG = cof(function(){ return arguments; }()) == 'Arguments';\n\nmodule.exports = function(it){\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = (O = Object(it))[TAG]) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.classof.js\n ** module id = 26\n ** module chunks = 0 1\n **/","var toString = {}.toString;\n\nmodule.exports = function(it){\n return toString.call(it).slice(8, -1);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.cof.js\n ** module id = 27\n ** module chunks = 0 1\n **/","var ctx = require('./$.ctx')\n , call = require('./$.iter-call')\n , isArrayIter = require('./$.is-array-iter')\n , anObject = require('./$.an-object')\n , toLength = require('./$.to-length')\n , getIterFn = require('./core.get-iterator-method');\nmodule.exports = function(iterable, entries, fn, that){\n var iterFn = getIterFn(iterable)\n , f = ctx(fn, that, entries ? 2 : 1)\n , index = 0\n , length, step, iterator;\n if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){\n entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){\n call(iterator, f, step.value, entries);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.for-of.js\n ** module id = 28\n ** module chunks = 0 1\n **/","'use strict';\nvar LIBRARY = require('./$.library')\n , $export = require('./$.export')\n , redefine = require('./$.redefine')\n , hide = require('./$.hide')\n , has = require('./$.has')\n , Iterators = require('./$.iterators')\n , $iterCreate = require('./$.iter-create')\n , setToStringTag = require('./$.set-to-string-tag')\n , getProto = require('./$').getProto\n , ITERATOR = require('./$.wks')('iterator')\n , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`\n , FF_ITERATOR = '@@iterator'\n , KEYS = 'keys'\n , VALUES = 'values';\n\nvar returnThis = function(){ return this; };\n\nmodule.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){\n $iterCreate(Constructor, NAME, next);\n var getMethod = function(kind){\n if(!BUGGY && kind in proto)return proto[kind];\n switch(kind){\n case KEYS: return function keys(){ return new Constructor(this, kind); };\n case VALUES: return function values(){ return new Constructor(this, kind); };\n } return function entries(){ return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator'\n , DEF_VALUES = DEFAULT == VALUES\n , VALUES_BUG = false\n , proto = Base.prototype\n , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]\n , $default = $native || getMethod(DEFAULT)\n , methods, key;\n // Fix native\n if($native){\n var IteratorPrototype = getProto($default.call(new Base));\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // FF fix\n if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);\n // fix Array#{values, @@iterator}.name in V8 / FF\n if(DEF_VALUES && $native.name !== VALUES){\n VALUES_BUG = true;\n $default = function values(){ return $native.call(this); };\n }\n }\n // Define iterator\n if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if(DEFAULT){\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: !DEF_VALUES ? $default : getMethod('entries')\n };\n if(FORCED)for(key in methods){\n if(!(key in proto))redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-define.js\n ** module id = 29\n ** module chunks = 0 1\n **/","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\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.property-desc.js\n ** module id = 30\n ** module chunks = 0 1\n **/","module.exports = require('./$.hide');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine.js\n ** module id = 31\n ** module chunks = 0 1\n **/","var id = 0\n , px = Math.random();\nmodule.exports = function(key){\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.uid.js\n ** module id = 32\n ** module chunks = 0 1\n **/","/**\n * A Render Result\n */\nexport default class RenderResult {\n /**\n * @param {int} startOffset\n * @param {int} endOffset\n * @param {String} startContainerPath\n * @param {String} endContainerPath\n */\n constructor(startOffset, endOffset, startContainerPath, endContainerPath) {\n this.startOffset = startOffset;\n this.endOffset = endOffset;\n this.startContainerPath = startContainerPath;\n this.endContainerPath = endContainerPath;\n this._renderingInstance = null;\n }\n\n /**\n * @param {Object} result\n * @return RenderResult\n */\n static fromObject(result) {\n return new RenderResult(\n result.startOffset,\n result.endOffset,\n result.startContainerPath,\n result.endContainerPath\n );\n }\n\n /**\n * @returns {Object}\n */\n serialize() {\n return {\n startOffset: this.startOffset,\n endOffset: this.endOffset,\n startContainerPath: this.startContainerPath,\n endContainerPath: this.endContainerPath\n };\n }\n\n /**\n * @param {String} text\n */\n set text(text) {\n this._text = text;\n }\n\n /**\n * @returns {String}\n */\n get text() {\n return this._text;\n }\n\n /**\n * @returns {null|Rendering}\n */\n get instance() {\n return this._renderingInstance;\n }\n\n /**\n * @param {null|Rendering} instance\n */\n set instance(instance) {\n this._renderingInstance = instance;\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/RenderResult.js\n **/","/* global Set */\n\nimport EventEmitter from 'wolfy87-eventemitter';\nimport Rendering from './Rendering';\nimport Util from './util/Util';\n\n/**\n * @type {string}\n */\nexport const EVENT_CLICK = 'click';\n\n/**\n * @type {string}\n */\nexport const EVENT_MOUSEENTER = 'hover-enter';\n\n/**\n * @type {string}\n */\nexport const EVENT_MOUSELEAVE = 'hover-leave';\n\n/**\n * @type {string}\n */\nexport const EVENT_PART_TREE_ENTER = 'tree-enter';\n\n/**\n * @type {string}\n */\nexport const EVENT_PART_TREE_LEAVE = 'tree-leave';\n\n/**\n * Generic Event Handlings for Renderer\n */\nexport default class RenderingEvents extends EventEmitter {\n\n /**\n * @param {Object} options\n * @param {Document} document\n */\n constructor(options, document) {\n super();\n\n /**\n * Options\n * @type {Object}\n */\n this.options = {\n hoverClass: 'marklib--hover',\n treeClass: 'marklib--tree',\n className: ['marking']\n };\n\n this.options = Object.assign(this.options, options || {});\n\n if (typeof this.options.className === 'string') {\n this.options.className = this.options.className.split(' ');\n }\n\n /**\n * A collection of all nodes that are part of all events\n * @type {Array}\n */\n this.wrapperNodes = [];\n\n this._registerEvents(document);\n\n /**\n * @type {Document}\n */\n this.document = document;\n }\n\n /**\n * Constructs a new Range from rendered result\n * @returns {Range}\n */\n get range() {\n const range = this.document.createRange();\n const textNodes = [];\n\n this.wrapperNodes.forEach((wrapper) => {\n Util.walkTextNodes(wrapper, (node) => {\n textNodes.push(node);\n });\n });\n\n if (textNodes.length > 0) {\n const lastTextNode = textNodes[textNodes.length - 1];\n range.setStart(textNodes[0], 0);\n range.setEnd(lastTextNode, lastTextNode.length);\n return range;\n }\n\n return null;\n }\n\n /**\n * Will register events if not already bind.\n * @param {Document} document\n * @private\n */\n _registerEvents(document) {\n this.on(EVENT_MOUSEENTER, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.add(this.options.hoverClass);\n });\n });\n\n this.on(EVENT_MOUSELEAVE, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.remove(this.options.hoverClass);\n });\n });\n\n this.on(EVENT_PART_TREE_ENTER, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.add(this.options.treeClass);\n });\n });\n\n this.on(EVENT_PART_TREE_LEAVE, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.remove(this.options.treeClass);\n });\n });\n\n\n if (!global.__MARKLIB_EVENTS__) {\n global.__MARKLIB_EVENTS__ = true;\n (function init() {\n const currentHoverInstances = new Set();\n const betweenInstances = new Set();\n\n function checkMarklibInstance(e) {\n const instance = Rendering.getMarklibInstance(e);\n // instanceof check will fail if used in test scenario where different DOMs are used\n // see also http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/\n return instance && (instance instanceof Rendering || 'wrapperNodes' in instance);\n }\n\n function closestInstance(e) {\n const closest = Util.closestCallback(\n e.target,\n (thisE) => checkMarklibInstance(thisE)\n );\n if (typeof closest === 'object') {\n return Rendering.getMarklibInstance(closest);\n }\n return false;\n }\n\n function getInstancesBetween(e, instance) {\n return Util.parentsCallback(\n e.target,\n (el) => checkMarklibInstance(el) && Rendering.getMarklibInstance(el) !== instance\n ).map(el => Rendering.getMarklibInstance(el));\n }\n\n function mouseOutClear() {\n currentHoverInstances.forEach((thisInstance) => {\n thisInstance.emit(EVENT_MOUSELEAVE);\n });\n currentHoverInstances.clear();\n\n betweenInstances.forEach((thisInstance) => {\n thisInstance.emit(EVENT_PART_TREE_LEAVE);\n });\n\n betweenInstances.clear();\n }\n\n /**\n * @param {Event} e\n * @returns {Array|boolean}\n */\n function findTarget(e) {\n let instance = closestInstance(e);\n if (instance) {\n const between = getInstancesBetween(e, instance);\n if (e.target.textContent !== instance.result.text && between.length > 0) {\n let allInstances = between;\n allInstances.unshift(instance);\n // take the smallest selection\n allInstances = allInstances.sort(\n (a, b) => a.result.text.length < b.result.text.length ? -1 : 1\n );\n instance = allInstances[0];\n }\n\n return [instance, between];\n }\n return false;\n }\n\n document.addEventListener('click', (e) => {\n const target = findTarget(e);\n if (target) {\n target[0].emit(EVENT_CLICK, e, target[1]);\n }\n }, true);\n\n document.addEventListener('mouseover', (e) => {\n const target = findTarget(e);\n if (target) {\n const [instance, between] = target;\n // find instances that lay in between the node\n mouseOutClear();\n between.forEach((instanceBetween) => {\n betweenInstances.add(instanceBetween);\n instanceBetween.emit(EVENT_PART_TREE_ENTER, e, between);\n });\n instance.emit(EVENT_MOUSEENTER, e, between);\n currentHoverInstances.add(instance);\n } else {\n mouseOutClear();\n }\n }, true);\n })();\n }\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/RenderingEvents.js\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/get-prototype-of\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/get-prototype-of.js\n ** module id = 37\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/inherits.js\n ** module id = 38\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/possibleConstructorReturn.js\n ** module id = 39\n ** module chunks = 0 1\n **/","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./$.cof');\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iobject.js\n ** module id = 40\n ** module chunks = 0 1\n **/","module.exports = function(done, value){\n return {value: value, done: !!done};\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-step.js\n ** module id = 41\n ** module chunks = 0 1\n **/","module.exports = true;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.library.js\n ** module id = 42\n ** module chunks = 0 1\n **/","var redefine = require('./$.redefine');\nmodule.exports = function(target, src){\n for(var key in src)redefine(target, key, src[key]);\n return target;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine-all.js\n ** module id = 43\n ** module chunks = 0 1\n **/","var global = require('./$.global')\n , SHARED = '__core-js_shared__'\n , store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function(key){\n return store[key] || (store[key] = {});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.shared.js\n ** module id = 44\n ** module chunks = 0 1\n **/","module.exports = function(it, Constructor, name){\n if(!(it instanceof Constructor))throw TypeError(name + \": use the 'new' operator!\");\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.strict-new.js\n ** module id = 45\n ** module chunks = 0 1\n **/","// 7.1.4 ToInteger\nvar ceil = Math.ceil\n , floor = Math.floor;\nmodule.exports = function(it){\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-integer.js\n ** module id = 46\n ** module chunks = 0 1\n **/","// 7.1.13 ToObject(argument)\nvar defined = require('./$.defined');\nmodule.exports = function(it){\n return Object(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-object.js\n ** module id = 47\n ** module chunks = 0 1\n **/","var classof = require('./$.classof')\n , ITERATOR = require('./$.wks')('iterator')\n , Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').getIteratorMethod = function(it){\n if(it != undefined)return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.get-iterator-method.js\n ** module id = 48\n ** module chunks = 0 1\n **/","import Rendering from '../Rendering';\nimport Util from '../util/Util';\nimport RenderResult from '../RenderResult';\nimport RenderingEvents from '../RenderingEvents';\n\nexport { Rendering, Util, RenderResult, RenderingEvents };\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/modules/Marklib.js\n **/","module.exports = { \"default\": require(\"core-js/library/fn/get-iterator\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/get-iterator.js\n ** module id = 52\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/is-iterable\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/is-iterable.js\n ** module id = 53\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/assign.js\n ** module id = 54\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/create.js\n ** module id = 55\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/define-property.js\n ** module id = 56\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/set-prototype-of.js\n ** module id = 57\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/set\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/set.js\n ** module id = 58\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol.js\n ** module id = 59\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol/iterator.js\n ** module id = 60\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _isIterable2 = require(\"../core-js/is-iterable\");\n\nvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\nvar _getIterator2 = require(\"../core-js/get-iterator\");\n\nvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if ((0, _isIterable3.default)(Object(arr))) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/slicedToArray.js\n ** module id = 61\n ** module chunks = 0 1\n **/","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.get-iterator');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/get-iterator.js\n ** module id = 62\n ** module chunks = 0 1\n **/","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.is-iterable');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/is-iterable.js\n ** module id = 63\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/$.core').Object.assign;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/assign.js\n ** module id = 64\n ** module chunks = 0 1\n **/","var $ = require('../../modules/$');\nmodule.exports = function create(P, D){\n return $.create(P, D);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/create.js\n ** module id = 65\n ** module chunks = 0 1\n **/","var $ = require('../../modules/$');\nmodule.exports = function defineProperty(it, key, desc){\n return $.setDesc(it, key, desc);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/define-property.js\n ** module id = 66\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.get-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.getPrototypeOf;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/get-prototype-of.js\n ** module id = 67\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.setPrototypeOf;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/set-prototype-of.js\n ** module id = 68\n ** module chunks = 0 1\n **/","require('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.set');\nrequire('../modules/es7.set.to-json');\nmodule.exports = require('../modules/$.core').Set;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/set.js\n ** module id = 69\n ** module chunks = 0 1\n **/","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nmodule.exports = require('../../modules/$.core').Symbol;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/index.js\n ** module id = 70\n ** module chunks = 0 1\n **/","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/$.wks')('iterator');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/iterator.js\n ** module id = 71\n ** module chunks = 0 1\n **/","module.exports = function(it){\n if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.a-function.js\n ** module id = 72\n ** module chunks = 0 1\n **/","module.exports = function(){ /* empty */ };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.add-to-unscopables.js\n ** module id = 73\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , hide = require('./$.hide')\n , redefineAll = require('./$.redefine-all')\n , ctx = require('./$.ctx')\n , strictNew = require('./$.strict-new')\n , defined = require('./$.defined')\n , forOf = require('./$.for-of')\n , $iterDefine = require('./$.iter-define')\n , step = require('./$.iter-step')\n , ID = require('./$.uid')('id')\n , $has = require('./$.has')\n , isObject = require('./$.is-object')\n , setSpecies = require('./$.set-species')\n , DESCRIPTORS = require('./$.descriptors')\n , isExtensible = Object.isExtensible || isObject\n , SIZE = DESCRIPTORS ? '_s' : 'size'\n , id = 0;\n\nvar fastKey = function(it, create){\n // return primitive with prefix\n if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if(!$has(it, ID)){\n // can't set id to frozen object\n if(!isExtensible(it))return 'F';\n // not necessary to add id\n if(!create)return 'E';\n // add missing object id\n hide(it, ID, ++id);\n // return object id with prefix\n } return 'O' + it[ID];\n};\n\nvar getEntry = function(that, key){\n // fast case\n var index = fastKey(key), entry;\n if(index !== 'F')return that._i[index];\n // frozen object case\n for(entry = that._f; entry; entry = entry.n){\n if(entry.k == key)return entry;\n }\n};\n\nmodule.exports = {\n getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n var C = wrapper(function(that, iterable){\n strictNew(that, C, NAME);\n that._i = $.create(null); // index\n that._f = undefined; // first entry\n that._l = undefined; // last entry\n that[SIZE] = 0; // size\n if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear(){\n for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){\n entry.r = true;\n if(entry.p)entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\n 'delete': function(key){\n var that = this\n , entry = getEntry(that, key);\n if(entry){\n var next = entry.n\n , prev = entry.p;\n delete that._i[entry.i];\n entry.r = true;\n if(prev)prev.n = next;\n if(next)next.p = prev;\n if(that._f == entry)that._f = next;\n if(that._l == entry)that._l = prev;\n that[SIZE]--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /*, that = undefined */){\n var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3)\n , entry;\n while(entry = entry ? entry.n : this._f){\n f(entry.v, entry.k, this);\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key){\n return !!getEntry(this, key);\n }\n });\n if(DESCRIPTORS)$.setDesc(C.prototype, 'size', {\n get: function(){\n return defined(this[SIZE]);\n }\n });\n return C;\n },\n def: function(that, key, value){\n var entry = getEntry(that, key)\n , prev, index;\n // change existing entry\n if(entry){\n entry.v = value;\n // create new entry\n } else {\n that._l = entry = {\n i: index = fastKey(key, true), // <- index\n k: key, // <- key\n v: value, // <- value\n p: prev = that._l, // <- previous entry\n n: undefined, // <- next entry\n r: false // <- removed\n };\n if(!that._f)that._f = entry;\n if(prev)prev.n = entry;\n that[SIZE]++;\n // add to index\n if(index !== 'F')that._i[index] = entry;\n } return that;\n },\n getEntry: getEntry,\n setStrong: function(C, NAME, IS_MAP){\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n $iterDefine(C, NAME, function(iterated, kind){\n this._t = iterated; // target\n this._k = kind; // kind\n this._l = undefined; // previous\n }, function(){\n var that = this\n , kind = that._k\n , entry = that._l;\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n // get next entry\n if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){\n // or finish the iteration\n that._t = undefined;\n return step(1);\n }\n // return step by kind\n if(kind == 'keys' )return step(0, entry.k);\n if(kind == 'values')return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(NAME);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection-strong.js\n ** module id = 74\n ** module chunks = 0 1\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar forOf = require('./$.for-of')\n , classof = require('./$.classof');\nmodule.exports = function(NAME){\n return function toJSON(){\n if(classof(this) != NAME)throw TypeError(NAME + \"#toJSON isn't generic\");\n var arr = [];\n forOf(this, false, arr.push, arr);\n return arr;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection-to-json.js\n ** module id = 75\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , global = require('./$.global')\n , $export = require('./$.export')\n , fails = require('./$.fails')\n , hide = require('./$.hide')\n , redefineAll = require('./$.redefine-all')\n , forOf = require('./$.for-of')\n , strictNew = require('./$.strict-new')\n , isObject = require('./$.is-object')\n , setToStringTag = require('./$.set-to-string-tag')\n , DESCRIPTORS = require('./$.descriptors');\n\nmodule.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){\n var Base = global[NAME]\n , C = Base\n , ADDER = IS_MAP ? 'set' : 'add'\n , proto = C && C.prototype\n , O = {};\n if(!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){\n new C().entries().next();\n }))){\n // create collection constructor\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n redefineAll(C.prototype, methods);\n } else {\n C = wrapper(function(target, iterable){\n strictNew(target, C, NAME);\n target._c = new Base;\n if(iterable != undefined)forOf(iterable, IS_MAP, target[ADDER], target);\n });\n $.each.call('add,clear,delete,forEach,get,has,set,keys,values,entries'.split(','),function(KEY){\n var IS_ADDER = KEY == 'add' || KEY == 'set';\n if(KEY in proto && !(IS_WEAK && KEY == 'clear'))hide(C.prototype, KEY, function(a, b){\n if(!IS_ADDER && IS_WEAK && !isObject(a))return KEY == 'get' ? undefined : false;\n var result = this._c[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n });\n if('size' in proto)$.setDesc(C.prototype, 'size', {\n get: function(){\n return this._c.size;\n }\n });\n }\n\n setToStringTag(C, NAME);\n\n O[NAME] = C;\n $export($export.G + $export.W + $export.F, O);\n\n if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);\n\n return C;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection.js\n ** module id = 76\n ** module chunks = 0 1\n **/","// all enumerable object keys, includes symbols\nvar $ = require('./$');\nmodule.exports = function(it){\n var keys = $.getKeys(it)\n , getSymbols = $.getSymbols;\n if(getSymbols){\n var symbols = getSymbols(it)\n , isEnum = $.isEnum\n , i = 0\n , key;\n while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);\n }\n return keys;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.enum-keys.js\n ** module id = 77\n ** module chunks = 0 1\n **/","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./$.to-iobject')\n , getNames = require('./$').getNames\n , toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function(it){\n try {\n return getNames(it);\n } catch(e){\n return windowNames.slice();\n }\n};\n\nmodule.exports.get = function getOwnPropertyNames(it){\n if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);\n return getNames(toIObject(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.get-names.js\n ** module id = 78\n ** module chunks = 0 1\n **/","// check on default Array iterator\nvar Iterators = require('./$.iterators')\n , ITERATOR = require('./$.wks')('iterator')\n , ArrayProto = Array.prototype;\n\nmodule.exports = function(it){\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array-iter.js\n ** module id = 79\n ** module chunks = 0 1\n **/","// 7.2.2 IsArray(argument)\nvar cof = require('./$.cof');\nmodule.exports = Array.isArray || function(arg){\n return cof(arg) == 'Array';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array.js\n ** module id = 80\n ** module chunks = 0 1\n **/","// call something on iterator step with safe closing on error\nvar anObject = require('./$.an-object');\nmodule.exports = function(iterator, fn, value, entries){\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch(e){\n var ret = iterator['return'];\n if(ret !== undefined)anObject(ret.call(iterator));\n throw e;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-call.js\n ** module id = 81\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , descriptor = require('./$.property-desc')\n , setToStringTag = require('./$.set-to-string-tag')\n , IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./$.hide')(IteratorPrototype, require('./$.wks')('iterator'), function(){ return this; });\n\nmodule.exports = function(Constructor, NAME, next){\n Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-create.js\n ** module id = 82\n ** module chunks = 0 1\n **/","var $ = require('./$')\n , toIObject = require('./$.to-iobject');\nmodule.exports = function(object, el){\n var O = toIObject(object)\n , keys = $.getKeys(O)\n , length = keys.length\n , index = 0\n , key;\n while(length > index)if(O[key = keys[index++]] === el)return key;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.keyof.js\n ** module id = 83\n ** module chunks = 0 1\n **/","// 19.1.2.1 Object.assign(target, source, ...)\nvar $ = require('./$')\n , toObject = require('./$.to-object')\n , IObject = require('./$.iobject');\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = require('./$.fails')(function(){\n var a = Object.assign\n , A = {}\n , B = {}\n , S = Symbol()\n , K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function(k){ B[k] = k; });\n return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n var T = toObject(target)\n , $$ = arguments\n , $$len = $$.length\n , index = 1\n , getKeys = $.getKeys\n , getSymbols = $.getSymbols\n , isEnum = $.isEnum;\n while($$len > index){\n var S = IObject($$[index++])\n , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n , length = keys.length\n , j = 0\n , key;\n while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n }\n return T;\n} : Object.assign;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-assign.js\n ** module id = 84\n ** module chunks = 0 1\n **/","// most Object methods by ES6 should accept primitives\nvar $export = require('./$.export')\n , core = require('./$.core')\n , fails = require('./$.fails');\nmodule.exports = function(KEY, exec){\n var fn = (core.Object || {})[KEY] || Object[KEY]\n , exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-sap.js\n ** module id = 85\n ** module chunks = 0 1\n **/","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar getDesc = require('./$').getDesc\n , isObject = require('./$.is-object')\n , anObject = require('./$.an-object');\nvar check = function(O, proto){\n anObject(O);\n if(!isObject(proto) && proto !== null)throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function(test, buggy, set){\n try {\n set = require('./$.ctx')(Function.call, getDesc(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch(e){ buggy = true; }\n return function setPrototypeOf(O, proto){\n check(O, proto);\n if(buggy)O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-proto.js\n ** module id = 86\n ** module chunks = 0 1\n **/","'use strict';\nvar core = require('./$.core')\n , $ = require('./$')\n , DESCRIPTORS = require('./$.descriptors')\n , SPECIES = require('./$.wks')('species');\n\nmodule.exports = function(KEY){\n var C = core[KEY];\n if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {\n configurable: true,\n get: function(){ return this; }\n });\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-species.js\n ** module id = 87\n ** module chunks = 0 1\n **/","var toInteger = require('./$.to-integer')\n , defined = require('./$.defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function(TO_STRING){\n return function(that, pos){\n var s = String(defined(that))\n , i = toInteger(pos)\n , l = s.length\n , a, b;\n if(i < 0 || i >= l)return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.string-at.js\n ** module id = 88\n ** module chunks = 0 1\n **/","// 7.1.15 ToLength\nvar toInteger = require('./$.to-integer')\n , min = Math.min;\nmodule.exports = function(it){\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-length.js\n ** module id = 89\n ** module chunks = 0 1\n **/","var anObject = require('./$.an-object')\n , get = require('./core.get-iterator-method');\nmodule.exports = require('./$.core').getIterator = function(it){\n var iterFn = get(it);\n if(typeof iterFn != 'function')throw TypeError(it + ' is not iterable!');\n return anObject(iterFn.call(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.get-iterator.js\n ** module id = 90\n ** module chunks = 0 1\n **/","var classof = require('./$.classof')\n , ITERATOR = require('./$.wks')('iterator')\n , Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').isIterable = function(it){\n var O = Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n || Iterators.hasOwnProperty(classof(O));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.is-iterable.js\n ** module id = 91\n ** module chunks = 0 1\n **/","'use strict';\nvar addToUnscopables = require('./$.add-to-unscopables')\n , step = require('./$.iter-step')\n , Iterators = require('./$.iterators')\n , toIObject = require('./$.to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./$.iter-define')(Array, 'Array', function(iterated, kind){\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , kind = this._k\n , index = this._i++;\n if(!O || index >= O.length){\n this._t = undefined;\n return step(1);\n }\n if(kind == 'keys' )return step(0, index);\n if(kind == 'values')return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.array.iterator.js\n ** module id = 92\n ** module chunks = 0 1\n **/","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./$.export');\n\n$export($export.S + $export.F, 'Object', {assign: require('./$.object-assign')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.assign.js\n ** module id = 93\n ** module chunks = 0 1\n **/","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./$.to-object');\n\nrequire('./$.object-sap')('getPrototypeOf', function($getPrototypeOf){\n return function getPrototypeOf(it){\n return $getPrototypeOf(toObject(it));\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.get-prototype-of.js\n ** module id = 94\n ** module chunks = 0 1\n **/","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./$.export');\n$export($export.S, 'Object', {setPrototypeOf: require('./$.set-proto').set});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.set-prototype-of.js\n ** module id = 95\n ** module chunks = 0 1\n **/","'use strict';\nvar strong = require('./$.collection-strong');\n\n// 23.2 Set Objects\nrequire('./$.collection')('Set', function(get){\n return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.2.3.1 Set.prototype.add(value)\n add: function add(value){\n return strong.def(this, value = value === 0 ? 0 : value, value);\n }\n}, strong);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.set.js\n ** module id = 96\n ** module chunks = 0 1\n **/","'use strict';\n// ECMAScript 6 symbols shim\nvar $ = require('./$')\n , global = require('./$.global')\n , has = require('./$.has')\n , DESCRIPTORS = require('./$.descriptors')\n , $export = require('./$.export')\n , redefine = require('./$.redefine')\n , $fails = require('./$.fails')\n , shared = require('./$.shared')\n , setToStringTag = require('./$.set-to-string-tag')\n , uid = require('./$.uid')\n , wks = require('./$.wks')\n , keyOf = require('./$.keyof')\n , $names = require('./$.get-names')\n , enumKeys = require('./$.enum-keys')\n , isArray = require('./$.is-array')\n , anObject = require('./$.an-object')\n , toIObject = require('./$.to-iobject')\n , createDesc = require('./$.property-desc')\n , getDesc = $.getDesc\n , setDesc = $.setDesc\n , _create = $.create\n , getNames = $names.get\n , $Symbol = global.Symbol\n , $JSON = global.JSON\n , _stringify = $JSON && $JSON.stringify\n , setter = false\n , HIDDEN = wks('_hidden')\n , isEnum = $.isEnum\n , SymbolRegistry = shared('symbol-registry')\n , AllSymbols = shared('symbols')\n , useNative = typeof $Symbol == 'function'\n , ObjectProto = Object.prototype;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n return _create(setDesc({}, 'a', {\n get: function(){ return setDesc(this, 'a', {value: 7}).a; }\n })).a != 7;\n}) ? function(it, key, D){\n var protoDesc = getDesc(ObjectProto, key);\n if(protoDesc)delete ObjectProto[key];\n setDesc(it, key, D);\n if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);\n} : setDesc;\n\nvar wrap = function(tag){\n var sym = AllSymbols[tag] = _create($Symbol.prototype);\n sym._k = tag;\n DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {\n configurable: true,\n set: function(value){\n if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n }\n });\n return sym;\n};\n\nvar isSymbol = function(it){\n return typeof it == 'symbol';\n};\n\nvar $defineProperty = function defineProperty(it, key, D){\n if(D && has(AllSymbols, key)){\n if(!D.enumerable){\n if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n D = _create(D, {enumerable: createDesc(0, false)});\n } return setSymbolDesc(it, key, D);\n } return setDesc(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P){\n anObject(it);\n var keys = enumKeys(P = toIObject(P))\n , i = 0\n , l = keys.length\n , key;\n while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P){\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n var E = isEnum.call(this, key);\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]\n ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n var D = getDesc(it = toIObject(it), key);\n if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);\n return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);\n return result;\n};\nvar $stringify = function stringify(it){\n if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n var args = [it]\n , i = 1\n , $$ = arguments\n , replacer, $replacer;\n while($$.length > i)args.push($$[i++]);\n replacer = args[1];\n if(typeof replacer == 'function')$replacer = replacer;\n if($replacer || !isArray(replacer))replacer = function(key, value){\n if($replacer)value = $replacer.call(this, key, value);\n if(!isSymbol(value))return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n};\nvar buggyJSON = $fails(function(){\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n});\n\n// 19.4.1.1 Symbol([description])\nif(!useNative){\n $Symbol = function Symbol(){\n if(isSymbol(this))throw TypeError('Symbol is not a constructor');\n return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));\n };\n redefine($Symbol.prototype, 'toString', function toString(){\n return this._k;\n });\n\n isSymbol = function(it){\n return it instanceof $Symbol;\n };\n\n $.create = $create;\n $.isEnum = $propertyIsEnumerable;\n $.getDesc = $getOwnPropertyDescriptor;\n $.setDesc = $defineProperty;\n $.setDescs = $defineProperties;\n $.getNames = $names.get = $getOwnPropertyNames;\n $.getSymbols = $getOwnPropertySymbols;\n\n if(DESCRIPTORS && !require('./$.library')){\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n}\n\nvar symbolStatics = {\n // 19.4.2.1 Symbol.for(key)\n 'for': function(key){\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(key){\n return keyOf(SymbolRegistry, key);\n },\n useSetter: function(){ setter = true; },\n useSimple: function(){ setter = false; }\n};\n// 19.4.2.2 Symbol.hasInstance\n// 19.4.2.3 Symbol.isConcatSpreadable\n// 19.4.2.4 Symbol.iterator\n// 19.4.2.6 Symbol.match\n// 19.4.2.8 Symbol.replace\n// 19.4.2.9 Symbol.search\n// 19.4.2.10 Symbol.species\n// 19.4.2.11 Symbol.split\n// 19.4.2.12 Symbol.toPrimitive\n// 19.4.2.13 Symbol.toStringTag\n// 19.4.2.14 Symbol.unscopables\n$.each.call((\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +\n 'species,split,toPrimitive,toStringTag,unscopables'\n).split(','), function(it){\n var sym = wks(it);\n symbolStatics[it] = useNative ? sym : wrap(sym);\n});\n\nsetter = true;\n\n$export($export.G + $export.W, {Symbol: $Symbol});\n\n$export($export.S, 'Symbol', symbolStatics);\n\n$export($export.S + $export.F * !useNative, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});\n\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.symbol.js\n ** module id = 97\n ** module chunks = 0 1\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export = require('./$.export');\n\n$export($export.P, 'Set', {toJSON: require('./$.collection-to-json')('Set')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es7.set.to-json.js\n ** module id = 98\n ** module chunks = 0 1\n **/","/*!\n * EventEmitter v4.2.11 - git.io/ee\n * Unlicense - http://unlicense.org/\n * Oliver Caldwell - http://oli.me.uk/\n * @preserve\n */\n\n;(function () {\n 'use strict';\n\n /**\n * Class for managing events.\n * Can be extended to provide event functionality in other classes.\n *\n * @class EventEmitter Manages event registering and emitting.\n */\n function EventEmitter() {}\n\n // Shortcuts to improve speed and size\n var proto = EventEmitter.prototype;\n var exports = this;\n var originalGlobalValue = exports.EventEmitter;\n\n /**\n * Finds the index of the listener for the event in its storage array.\n *\n * @param {Function[]} listeners Array of listeners to search through.\n * @param {Function} listener Method to look for.\n * @return {Number} Index of the specified listener, -1 if not found\n * @api private\n */\n function indexOfListener(listeners, listener) {\n var i = listeners.length;\n while (i--) {\n if (listeners[i].listener === listener) {\n return i;\n }\n }\n\n return -1;\n }\n\n /**\n * Alias a method while keeping the context correct, to allow for overwriting of target method.\n *\n * @param {String} name The name of the target method.\n * @return {Function} The aliased method\n * @api private\n */\n function alias(name) {\n return function aliasClosure() {\n return this[name].apply(this, arguments);\n };\n }\n\n /**\n * Returns the listener array for the specified event.\n * Will initialise the event object and listener arrays if required.\n * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.\n * Each property in the object response is an array of listener functions.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Function[]|Object} All listener functions for the event.\n */\n proto.getListeners = function getListeners(evt) {\n var events = this._getEvents();\n var response;\n var key;\n\n // Return a concatenated array of all matching events if\n // the selector is a regular expression.\n if (evt instanceof RegExp) {\n response = {};\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n response[key] = events[key];\n }\n }\n }\n else {\n response = events[evt] || (events[evt] = []);\n }\n\n return response;\n };\n\n /**\n * Takes a list of listener objects and flattens it into a list of listener functions.\n *\n * @param {Object[]} listeners Raw listener objects.\n * @return {Function[]} Just the listener functions.\n */\n proto.flattenListeners = function flattenListeners(listeners) {\n var flatListeners = [];\n var i;\n\n for (i = 0; i < listeners.length; i += 1) {\n flatListeners.push(listeners[i].listener);\n }\n\n return flatListeners;\n };\n\n /**\n * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Object} All listener functions for an event in an object.\n */\n proto.getListenersAsObject = function getListenersAsObject(evt) {\n var listeners = this.getListeners(evt);\n var response;\n\n if (listeners instanceof Array) {\n response = {};\n response[evt] = listeners;\n }\n\n return response || listeners;\n };\n\n /**\n * Adds a listener function to the specified event.\n * The listener will not be added if it is a duplicate.\n * If the listener returns true then it will be removed after it is called.\n * If you pass a regular expression as the event name then the listener will be added to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListener = function addListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var listenerIsWrapped = typeof listener === 'object';\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {\n listeners[key].push(listenerIsWrapped ? listener : {\n listener: listener,\n once: false\n });\n }\n }\n\n return this;\n };\n\n /**\n * Alias of addListener\n */\n proto.on = alias('addListener');\n\n /**\n * Semi-alias of addListener. It will add a listener that will be\n * automatically removed after its first execution.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addOnceListener = function addOnceListener(evt, listener) {\n return this.addListener(evt, {\n listener: listener,\n once: true\n });\n };\n\n /**\n * Alias of addOnceListener.\n */\n proto.once = alias('addOnceListener');\n\n /**\n * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.\n * You need to tell it what event names should be matched by a regex.\n *\n * @param {String} evt Name of the event to create.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvent = function defineEvent(evt) {\n this.getListeners(evt);\n return this;\n };\n\n /**\n * Uses defineEvent to define multiple events.\n *\n * @param {String[]} evts An array of event names to define.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvents = function defineEvents(evts) {\n for (var i = 0; i < evts.length; i += 1) {\n this.defineEvent(evts[i]);\n }\n return this;\n };\n\n /**\n * Removes a listener function from the specified event.\n * When passed a regular expression as the event name, it will remove the listener from all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to remove the listener from.\n * @param {Function} listener Method to remove from the event.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListener = function removeListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var index;\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key)) {\n index = indexOfListener(listeners[key], listener);\n\n if (index !== -1) {\n listeners[key].splice(index, 1);\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of removeListener\n */\n proto.off = alias('removeListener');\n\n /**\n * Adds listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.\n * You can also pass it a regular expression to add the array of listeners to all events that match it.\n * Yeah, this function does quite a bit. That's probably a bad thing.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListeners = function addListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(false, evt, listeners);\n };\n\n /**\n * Removes listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be removed.\n * You can also pass it a regular expression to remove the listeners from all events that match it.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListeners = function removeListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(true, evt, listeners);\n };\n\n /**\n * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.\n * The first argument will determine if the listeners are removed (true) or added (false).\n * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be added/removed.\n * You can also pass it a regular expression to manipulate the listeners of all events that match it.\n *\n * @param {Boolean} remove True if you want to remove listeners, false if you want to add.\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add/remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {\n var i;\n var value;\n var single = remove ? this.removeListener : this.addListener;\n var multiple = remove ? this.removeListeners : this.addListeners;\n\n // If evt is an object then pass each of its properties to this method\n if (typeof evt === 'object' && !(evt instanceof RegExp)) {\n for (i in evt) {\n if (evt.hasOwnProperty(i) && (value = evt[i])) {\n // Pass the single listener straight through to the singular method\n if (typeof value === 'function') {\n single.call(this, i, value);\n }\n else {\n // Otherwise pass back to the multiple function\n multiple.call(this, i, value);\n }\n }\n }\n }\n else {\n // So evt must be a string\n // And listeners must be an array of listeners\n // Loop over it and pass each one to the multiple method\n i = listeners.length;\n while (i--) {\n single.call(this, evt, listeners[i]);\n }\n }\n\n return this;\n };\n\n /**\n * Removes all listeners from a specified event.\n * If you do not specify an event then all listeners will be removed.\n * That means every event will be emptied.\n * You can also pass a regex to remove all events that match it.\n *\n * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeEvent = function removeEvent(evt) {\n var type = typeof evt;\n var events = this._getEvents();\n var key;\n\n // Remove different things depending on the state of evt\n if (type === 'string') {\n // Remove all listeners for the specified event\n delete events[evt];\n }\n else if (evt instanceof RegExp) {\n // Remove all events matching the regex.\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n delete events[key];\n }\n }\n }\n else {\n // Remove all listeners in all events\n delete this._events;\n }\n\n return this;\n };\n\n /**\n * Alias of removeEvent.\n *\n * Added to mirror the node API.\n */\n proto.removeAllListeners = alias('removeEvent');\n\n /**\n * Emits an event of your choice.\n * When emitted, every listener attached to that event will be executed.\n * If you pass the optional argument array then those arguments will be passed to every listener upon execution.\n * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.\n * So they will not arrive within the array on the other side, they will be separate.\n * You can also pass a regular expression to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {Array} [args] Optional array of arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emitEvent = function emitEvent(evt, args) {\n var listenersMap = this.getListenersAsObject(evt);\n var listeners;\n var listener;\n var i;\n var key;\n var response;\n\n for (key in listenersMap) {\n if (listenersMap.hasOwnProperty(key)) {\n listeners = listenersMap[key].slice(0);\n i = listeners.length;\n\n while (i--) {\n // If the listener returns true then it shall be removed from the event\n // The function is executed either with a basic call or an apply if there is an args array\n listener = listeners[i];\n\n if (listener.once === true) {\n this.removeListener(evt, listener.listener);\n }\n\n response = listener.listener.apply(this, args || []);\n\n if (response === this._getOnceReturnValue()) {\n this.removeListener(evt, listener.listener);\n }\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of emitEvent\n */\n proto.trigger = alias('emitEvent');\n\n /**\n * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.\n * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {...*} Optional additional arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emit = function emit(evt) {\n var args = Array.prototype.slice.call(arguments, 1);\n return this.emitEvent(evt, args);\n };\n\n /**\n * Sets the current value to check against when executing listeners. If a\n * listeners return value matches the one set here then it will be removed\n * after execution. This value defaults to true.\n *\n * @param {*} value The new value to check for when executing listeners.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.setOnceReturnValue = function setOnceReturnValue(value) {\n this._onceReturnValue = value;\n return this;\n };\n\n /**\n * Fetches the current value to check against when executing listeners. If\n * the listeners return value matches this one then it should be removed\n * automatically. It will return true by default.\n *\n * @return {*|Boolean} The current value to check for or the default, true.\n * @api private\n */\n proto._getOnceReturnValue = function _getOnceReturnValue() {\n if (this.hasOwnProperty('_onceReturnValue')) {\n return this._onceReturnValue;\n }\n else {\n return true;\n }\n };\n\n /**\n * Fetches the events object and creates one if required.\n *\n * @return {Object} The events storage object.\n * @api private\n */\n proto._getEvents = function _getEvents() {\n return this._events || (this._events = {});\n };\n\n /**\n * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.\n *\n * @return {Function} Non conflicting EventEmitter class.\n */\n EventEmitter.noConflict = function noConflict() {\n exports.EventEmitter = originalGlobalValue;\n return EventEmitter;\n };\n\n // Expose the class either via AMD, CommonJS or the global object\n if (typeof define === 'function' && define.amd) {\n define(function () {\n return EventEmitter;\n });\n }\n else if (typeof module === 'object' && module.exports){\n module.exports = EventEmitter;\n }\n else {\n exports.EventEmitter = EventEmitter;\n }\n}.call(this));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wolfy87-eventemitter/EventEmitter.js\n ** module id = 99\n ** module chunks = 0 1\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/build/js/site.js b/build/js/site.js index a6dc436..84db026 100644 --- a/build/js/site.js +++ b/build/js/site.js @@ -3956,8 +3956,6 @@ return /******/ (function(modules) { // webpackBootstrap var _Marklib = __webpack_require__(1); - var _Marklib2 = _interopRequireDefault(_Marklib); - var _flexcss = __webpack_require__(98); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -3985,7 +3983,7 @@ return /******/ (function(modules) { // webpackBootstrap var render = function render(autoMarkText, cp, length) { var c = cp; - var r = new _Marklib2.default.Rendering(document, { + var r = new _Marklib.Rendering(document, { className: classNames }); var range = document.createRange(); @@ -4042,7 +4040,7 @@ return /******/ (function(modules) { // webpackBootstrap } savedRanges.forEach(function (range) { - var marker = new _Marklib2.default.Rendering(document); + var marker = new _Marklib.Rendering(document); try { marker.renderWithResult(range); allRanges.push(marker); @@ -4071,7 +4069,7 @@ return /******/ (function(modules) { // webpackBootstrap var actionMark = function actionMark() { try { var selection = document.getSelection(); - var renderer = new _Marklib2.default.Rendering(document); + var renderer = new _Marklib.Rendering(document); var result = renderer.renderWithRange(selection.getRangeAt(0)); renderer.on('click', onClick); @@ -4105,7 +4103,7 @@ return /******/ (function(modules) { // webpackBootstrap }); }); - exports.default = _Marklib2.default; + exports.default = _Marklib.Rendering; /***/ }, /* 96 */ diff --git a/build/js/site.map b/build/js/site.map index 64c6af0..da14fc6 100644 --- a/build/js/site.map +++ b/build/js/site.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition?5ca6","webpack:///webpack/bootstrap 1a80b2cb16523a46fdcd?0a3e","webpack:///./src/main/modules/Marklib.js?dcc3","webpack:///./src/main/Rendering.js?6592","webpack:///./~/babel-runtime/core-js/object/get-prototype-of.js?b265","webpack:///./~/core-js/library/fn/object/get-prototype-of.js?5193","webpack:///./~/core-js/library/modules/es6.object.get-prototype-of.js?eaa3","webpack:///./~/core-js/library/modules/$.to-object.js?093c","webpack:///./~/core-js/library/modules/$.defined.js?7087","webpack:///./~/core-js/library/modules/$.object-sap.js?f39d","webpack:///./~/core-js/library/modules/$.export.js?b734","webpack:///./~/core-js/library/modules/$.global.js?4deb","webpack:///./~/core-js/library/modules/$.core.js?7680","webpack:///./~/core-js/library/modules/$.ctx.js?e797","webpack:///./~/core-js/library/modules/$.a-function.js?860b","webpack:///./~/core-js/library/modules/$.fails.js?6c29","webpack:///./~/babel-runtime/helpers/classCallCheck.js?21af","webpack:///./~/babel-runtime/helpers/createClass.js?1dfe","webpack:///./~/babel-runtime/core-js/object/define-property.js?5f70","webpack:///./~/core-js/library/fn/object/define-property.js?b7d8","webpack:///./~/core-js/library/modules/$.js?6ce7","webpack:///./~/babel-runtime/helpers/possibleConstructorReturn.js?aad9","webpack:///./~/babel-runtime/helpers/typeof.js?f4bd","webpack:///./~/babel-runtime/core-js/symbol/iterator.js?d16b","webpack:///./~/core-js/library/fn/symbol/iterator.js?238d","webpack:///./~/core-js/library/modules/es6.string.iterator.js?fe18","webpack:///./~/core-js/library/modules/$.string-at.js?a0b4","webpack:///./~/core-js/library/modules/$.to-integer.js?b29c","webpack:///./~/core-js/library/modules/$.iter-define.js?970f","webpack:///./~/core-js/library/modules/$.library.js?c05f","webpack:///./~/core-js/library/modules/$.redefine.js?2643","webpack:///./~/core-js/library/modules/$.hide.js?2cce","webpack:///./~/core-js/library/modules/$.property-desc.js?e1db","webpack:///./~/core-js/library/modules/$.descriptors.js?8327","webpack:///./~/core-js/library/modules/$.has.js?bcec","webpack:///./~/core-js/library/modules/$.iterators.js?9d0a","webpack:///./~/core-js/library/modules/$.iter-create.js?4401","webpack:///./~/core-js/library/modules/$.set-to-string-tag.js?d0fc","webpack:///./~/core-js/library/modules/$.wks.js?3e04","webpack:///./~/core-js/library/modules/$.shared.js?6ce8","webpack:///./~/core-js/library/modules/$.uid.js?f177","webpack:///./~/core-js/library/modules/web.dom.iterable.js?bf0e","webpack:///./~/core-js/library/modules/es6.array.iterator.js?1e09","webpack:///./~/core-js/library/modules/$.add-to-unscopables.js?af5b","webpack:///./~/core-js/library/modules/$.iter-step.js?76ef","webpack:///./~/core-js/library/modules/$.to-iobject.js?daca","webpack:///./~/core-js/library/modules/$.iobject.js?3ada","webpack:///./~/core-js/library/modules/$.cof.js?74ee","webpack:///./~/babel-runtime/core-js/symbol.js?a70d","webpack:///./~/core-js/library/fn/symbol/index.js?f07a","webpack:///./~/core-js/library/modules/es6.symbol.js?670a","webpack:///./~/core-js/library/modules/$.keyof.js?3b7d","webpack:///./~/core-js/library/modules/$.get-names.js?e4b8","webpack:///./~/core-js/library/modules/$.enum-keys.js?1c2a","webpack:///./~/core-js/library/modules/$.is-array.js?4d69","webpack:///./~/core-js/library/modules/$.an-object.js?2be9","webpack:///./~/core-js/library/modules/$.is-object.js?7453","webpack:///./~/babel-runtime/helpers/inherits.js?0578","webpack:///./~/babel-runtime/core-js/object/set-prototype-of.js?bb00","webpack:///./~/core-js/library/fn/object/set-prototype-of.js?f909","webpack:///./~/core-js/library/modules/es6.object.set-prototype-of.js?b195","webpack:///./~/core-js/library/modules/$.set-proto.js?759b","webpack:///./~/babel-runtime/core-js/object/create.js?aa4b","webpack:///./~/core-js/library/fn/object/create.js?738c","webpack:///./src/main/RenderResult.js?09ff","webpack:///./src/main/RenderingEvents.js?d122","webpack:///./~/babel-runtime/helpers/slicedToArray.js?39c4","webpack:///./~/babel-runtime/core-js/is-iterable.js?350e","webpack:///./~/core-js/library/fn/is-iterable.js?0bd2","webpack:///./~/core-js/library/modules/core.is-iterable.js?77cc","webpack:///./~/core-js/library/modules/$.classof.js?c1cb","webpack:///./~/babel-runtime/core-js/get-iterator.js?1b08","webpack:///./~/core-js/library/fn/get-iterator.js?2cf7","webpack:///./~/core-js/library/modules/core.get-iterator.js?aca7","webpack:///./~/core-js/library/modules/core.get-iterator-method.js?9c88","webpack:///./~/babel-runtime/core-js/set.js?0724","webpack:///./~/core-js/library/fn/set.js?2c6c","webpack:///./~/core-js/library/modules/es6.set.js?dbba","webpack:///./~/core-js/library/modules/$.collection-strong.js?75b1","webpack:///./~/core-js/library/modules/$.redefine-all.js?0c0d","webpack:///./~/core-js/library/modules/$.strict-new.js?979f","webpack:///./~/core-js/library/modules/$.for-of.js?bf1d","webpack:///./~/core-js/library/modules/$.iter-call.js?581c","webpack:///./~/core-js/library/modules/$.is-array-iter.js?787a","webpack:///./~/core-js/library/modules/$.to-length.js?9639","webpack:///./~/core-js/library/modules/$.set-species.js?71c4","webpack:///./~/core-js/library/modules/$.collection.js?1dbc","webpack:///./~/core-js/library/modules/es7.set.to-json.js?e75b","webpack:///./~/core-js/library/modules/$.collection-to-json.js?9a82","webpack:///./~/babel-runtime/core-js/object/assign.js?e6ca","webpack:///./~/core-js/library/fn/object/assign.js?80e4","webpack:///./~/core-js/library/modules/es6.object.assign.js?9007","webpack:///./~/core-js/library/modules/$.object-assign.js?ed5a","webpack:///./~/wolfy87-eventemitter/EventEmitter.js?ed18","webpack:///./src/main/util/Util.js?5bc4","webpack:///./src/main/modules/Site.js","webpack:///./~/babel-runtime/core-js/json/stringify.js","webpack:///./~/core-js/library/fn/json/stringify.js","webpack:///./~/flexcss/src/main/modules/All.js","webpack:///./~/flexcss/src/main/Form.js","webpack:///./~/flexcss/src/main/Tooltip.js","webpack:///./~/flexcss/src/main/util/Util.js","webpack:///./~/flexcss/src/main/DestroyableWidget.js","webpack:///./~/flexcss/src/main/util/Settings.js","webpack:///./~/isomorphic-fetch/fetch-npm-browserify.js","webpack:///./~/whatwg-fetch/fetch.js","webpack:///./~/flexcss/src/main/util/Event.js","webpack:///./~/flexcss/src/main/Modal.js","webpack:///./~/flexcss/src/main/Widget.js","webpack:///./~/flexcss/src/main/lib/FixedWindow.js","webpack:///./~/flexcss/src/main/lib/debounce.js","webpack:///./~/flexcss/src/main/Toggleable.js","webpack:///./~/flexcss/src/main/OffCanvas.js","webpack:///./~/flexcss/src/main/Dropdown.js","webpack:///./~/flexcss/src/main/LightBox.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;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F;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,gEAA+D;AAC/D;AACA;AACA;AACA,eAAc;AACd,eAAc;AACd,eAAc;AACd,eAAc;AACd,gBAAe;AACf,gBAAe;AACf,0B;;;;;;AC7CA;AACA;AACA;AACA,wCAAuC,gC;;;;;;ACHvC,8BAA6B;AAC7B,sCAAqC,gC;;;;;;ACDrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACnBA;AACA;AACA;AACA,G;;;;;;ACHA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,G;;;;;;ACNA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,G;;;;;;ACRA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA,oBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC,G;;;;;;AC1BD,mBAAkB,wD;;;;;;ACAlB;AACA;AACA;AACA,G;;;;;;ACHA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACZA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;;AAEA;AACA,G;;;;;;AChBA;;AAEA,uGAAsG,mBAAmB,EAAE,mBAAmB,oGAAoG;;AAElP;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA,EAAC;AACD;AACA,G;;;;;;ACpBA,mBAAkB,wD;;;;;;ACAlB;AACA;AACA,sD;;;;;;ACFA;AACA;;AAEA;AACA;AACA,8BAA6B;AAC7B,eAAc;AACd;AACA,EAAC;AACD;AACA;AACA;AACA,gCAA+B;AAC/B;AACA;AACA,WAAU;AACV,EAAC,E;;;;;;AChBD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,6BAA4B,aAAa;;AAEzC;AACA;AACA;AACA;AACA;AACA,yCAAwC,oCAAoC;AAC5E,6CAA4C,oCAAoC;AAChF,MAAK,2BAA2B,oCAAoC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAkB,mBAAmB;AACrC;AACA;AACA,oCAAmC,2BAA2B;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,G;;;;;;ACjEA,uB;;;;;;ACAA,0C;;;;;;ACAA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA,G;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACPA;AACA;AACA,kCAAiC,QAAQ,gBAAgB,UAAU,GAAG;AACtE,EAAC,E;;;;;;ACHD,wBAAuB;AACvB;AACA;AACA,G;;;;;;ACHA,qB;;;;;;ACAA;AACA;AACA;AACA;AACA;;AAEA;AACA,4FAAkF,aAAa,EAAE;;AAEjG;AACA,wDAAuD,0BAA0B;AACjF;AACA,G;;;;;;ACZA;AACA;AACA;;AAEA;AACA,mEAAkE,+BAA+B;AACjG,G;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACNA;AACA;AACA,oDAAmD;AACnD;AACA,wCAAuC;AACvC,G;;;;;;ACLA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA,iE;;;;;;ACFA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC,eAAc;AACd,kBAAiB;AACjB;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;;AAEA;AACA;AACA,6B;;;;;;ACjCA,6BAA4B,e;;;;;;ACA5B;AACA,WAAU;AACV,G;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACLA;AACA;AACA;AACA;AACA,G;;;;;;ACJA,kBAAiB;;AAEjB;AACA;AACA,G;;;;;;ACJA,mBAAkB,wD;;;;;;ACAlB;AACA;AACA,iD;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,4BAA2B;AAC3B,qBAAoB,4BAA4B,SAAS,IAAI;AAC7D,IAAG;AACH,EAAC;AACD;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,+DAA8D;AAC9D;AACA,MAAK;AACL;AACA,uBAAsB,iCAAiC;AACvD,MAAK;AACL,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,KAAK,QAAQ,iCAAiC;AAClG,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,IAAG;AACH,yBAAwB,eAAe,EAAE;AACzC,yBAAwB,gBAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;;AAEA,iCAAgC,gBAAgB;;AAEhD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA,8EAA6E,sBAAsB;;AAEnG;AACA;AACA;AACA;AACA;AACA,2C;;;;;;AClOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACTA;AACA;AACA;AACA,mBAAkB;;AAElB;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA,G;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACbA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA,G;;;;;;;;;;;;ACFA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA,G;;;;;;AChCA,mBAAkB,wD;;;;;;ACAlB;AACA,gE;;;;;;ACDA;AACA;AACA,+BAA8B,4CAA6C,E;;;;;;ACF3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mDAAkD;AAClD;AACA;AACA;AACA;AACA;AACA,QAAO,U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BAAO,IAAP,CAjBQ;;;YA3CK;;;;;;;;;;AClCrB;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,yDAAwD,+BAA+B;AACvF;;AAEA;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA;AACA,EAAC,G;;;;;;AClDD,mBAAkB,wD;;;;;;ACAlB;AACA;AACA,0C;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACRA;AACA;AACA;AACA;AACA,0BAAyB,kBAAkB,EAAE;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACfA,mBAAkB,wD;;;;;;ACAlB;AACA;AACA,0C;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACPA,mBAAkB,wD;;;;;;ACAlB;AACA;AACA;AACA;AACA;AACA,8C;;;;;;ACLA;AACA;;AAEA;AACA;AACA,yBAAwB,mEAAmE;AAC3F,EAAC;AACD;AACA;AACA;AACA;AACA,EAAC,U;;;;;;ACXD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAsB,OAAO;AAC7B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gCAA+B;AAC/B,2BAA0B;AAC1B,2BAA0B;AAC1B,sBAAqB;AACrB;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,8DAA6D,OAAO;AACpE;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,0BAAyB;AACzB,sBAAqB;AACrB,2BAA0B;AAC1B,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,G;;;;;;AC9JA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA;AACA,G;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAgE,gBAAgB;AAChF;AACA,IAAG,2CAA2C,gCAAgC;AAC9E;AACA;AACA,G;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,G;;;;;;ACXA;AACA;AACA;AACA;;AAEA;AACA;AACA,G;;;;;;ACPA;AACA;AACA;AACA;AACA,4DAA2D;AAC3D,G;;;;;;ACLA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAoB,aAAa;AACjC,IAAG;AACH,G;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA,G;;;;;;ACtDA;AACA;;AAEA,4BAA2B,uCAAiD,E;;;;;;ACH5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACVA,mBAAkB,wD;;;;;;ACAlB;AACA,wD;;;;;;ACDA;AACA;;AAEA,2CAA0C,gCAAqC,E;;;;;;ACH/E;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,UAAU,EAAE;AAC9C,cAAa,gCAAgC;AAC7C,EAAC,oCAAoC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,iB;;;;;;AChCD;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,iBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,iBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,iBAAgB,WAAW;AAC3B;AACA;AACA;AACA;;AAEA,oBAAmB,sBAAsB;AACzC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA,wBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,qBAAqB;AACpC,gBAAe,WAAW;AAC1B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,qBAAqB;AACpC,gBAAe,WAAW;AAC1B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,QAAQ;AACvB,gBAAe,qBAAqB;AACpC,gBAAe,WAAW;AAC1B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,MAAM;AACrB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,KAAK;AACpB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAgB,UAAU;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAgB,OAAO;AACvB;AACA;AACA;AACA,kDAAiD;AACjD;;AAEA;AACA,4BAA2B,mBAAmB;AAC9C;AACA,iBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpdM,KAAM,8DAA2B,qBAA3B;;;;AAIN,KAAM,gDAAoB,mBAApB;;;;AAIb,KAAM,sBAAsB,GAAtB;;;AAKN,KAAI,WAAW,CAAC,QA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O,OAAO,sBAAP,CAJY;;;;;;;;;;gCAWT;AACV,iBAAI,CAAC,OAAO,mBAAP,EAA4B;AAC7B,wBAAO,mBAAP,GAA6B,mBAAmB,MAAnB,CADA;cAAjC;AAGA,oBAAO,OAAO,mBAAP,CAJG;;;;;;;;;8CAUc;AACxB,oBAAO,OAAO,8BAAP,CADiB;;;;;;;;;6CAOD;AACvB,oBAAO,OAAO,6BAAP,CADgB;;;;;;;;;uCAON;AACjB,oBAAO,OAAO,uBAAP,CADU;;;;YA5EnB;;;mBAiFS,S;;;;;;;ACvJf;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,QAAO;;AAEP,MAAK;AACL;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA,wDAAuD;AACvD,UAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA,wCAAuC,0BAA0B;AACjE;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,gCAA+B,0BAA0B,eAAe;AACxE;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,QAAO;;AAEP;AACA,MAAK;AACL;AACA;AACA,EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxWD,EAAC,SAAS,IAAT,GAAgB;AACb,SAAI,CAAC,OAAO,WAAP,IAAsB,OAAO,OAAO,WAAP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AAsC,KAAK,kBAAL,CAAtC,CADyB;sBAA7B;AAGA,yBAAI,OAAK,YAAL,EAAmB;AACnB,gCAAO,mBAAP,CAA2B,QAA3B,EAAqC,KAAK,YAAL,CAArC,CADmB;sBAAvB;kBAVyD,CAA7D,CA9FuC;;AA6GvC,wBAAO,OAAK,OAAL,CA7GgC;cAAN,CAArC,CAtBS;;AAsIT,kBAAK,WAAL,GAAmB,KAAK,OAAL,CAtIV;;AAwIT,iBAAI,KAAK,OAAL,EAAc;AACd,sBAAK,KAAL,GAAa,oBAAU,KAAK,YAAL,CAAvB;;AADc,wBAGP,KAAK,KAAL,CAAW,KAAX,GAAmB,UAAnB,CAA8B,KAAK,OAAL,CAA9B,CAA4C,IAA5C,CAAiD,YAAM;AAC1D,4BAAO,KAAK,OAAL,CAAa,IAAb,CAAkB,YAAM;AAC3B,gCAAO,IAAP,CAD2B;sBAAN,CAAzB,CAD0D;kBAAN,CAAxD,CAHc;cAAlB;AASA,oBAAO,KAAP,CAjJS;;;;8CAzJe,QAAQ,KAAK,aAAa;AAClD,iBAAM,eAAe,OAAO,YAAP,CAAoB,cAApB,CAAf,CAD4C;AAElD,iBAAM,gBAAgB,OAAO,YAAP,CAAoB,eAApB,CAAhB,CAF4C;AAGlD,iBAAI,gBAAgB,aAAhB,EAA+B;AAC/B,qBAAI,KAAJ,CAAU,QAAV,GAAqB,eAAe,IAAf,CADU;AAE/B,qBAAI,KAAJ,CAAU,SAAV,GAAsB,gBAAgB,IAAhB,CAFS;cAAnC,MAGO;AACH,qBAAI,KAAJ,CAAU,QAAV,GAAqB,YAAY,KAAZ,GAAoB,IAApB,CADlB;AAEH,qBAAI,KAAJ,CAAU,SAAV,GAAsB,YAAY,MAAZ,GAAqB,IAArB,CAFnB;cAHP;;;;YAhLF;;;mBA4dS,S","file":"js/site.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Marklib\"] = factory();\n\telse\n\t\troot[\"Marklib\"] = factory();\n})(this, function() {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/"," \t// The module cache\n \tvar installedModules = {};\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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"../\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 1a80b2cb16523a46fdcd\n **/","import Rendering from '../Rendering';\nimport Util from '../util/Util';\nimport RenderResult from '../RenderResult';\nimport RenderingEvents from '../RenderingEvents';\n\nexport { Rendering, Util, RenderResult, RenderingEvents };\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/modules/Marklib.js\n **/","/* global Node */\n\nimport RenderResult from './RenderResult';\nimport RenderingEvents from './RenderingEvents';\nimport Util, { ATTR_DATA_ORIGINAL_INDEX, DATA_IS_SELECTION } from './util/Util';\n\n/**\n * @type {string}\n */\nconst TAG_NAME = 'x-marker';\n/**\n * @type {string}\n */\nexport const ATTR_DATA_ORIGINAL_OFFSET_START = 'data-original-offset-start';\n/**\n * @type {string}\n */\nconst DATA_ORIGINAL_TEXT_NODE_INDEX = 'original-text-node-index';\n/**\n * @type {string}\n */\nconst ATTR_DATA_START_END = 'data-is-start-end';\n/**\n * @type {string}\n */\nconst ATTR_DATA_IS_HIGHLIGHT_NODE = 'data-is-highlight-node';\n/**\n * @type {string}\n */\nconst ATTR_DATA_ID = 'data-selection-id';\n\n/**\n * @see https://developer.mozilla.org/de/docs/Web/API/Node/compareDocumentPosition\n * @type {number}\n */\nconst DOCUMENT_POSITION_CONTAINED_BY = 16;\n\n\n/**\n * @type {string}\n */\nexport const EVENT_WRAPPED_NODE = 'wrapped-node';\n\n/**\n * Manages a single Render\n */\nclass Rendering extends RenderingEvents {\n\n /**\n * @param {Document} document\n * @param {object} options\n * @param {Node} context\n */\n constructor(document, options, context) {\n super(options, document);\n\n /**\n * ID of rendering, will be set on each element that is part of it\n * @type {String}\n */\n this.id = Util.guid();\n\n /**\n * StartContainer\n * @type {Node}\n */\n this.startContainer = null;\n\n /**\n * EndContainer\n * @type {Node}\n */\n this.endContainer = null;\n\n /**\n * @type {Node}\n */\n this.context = context || this.document;\n\n /**\n * Flag if this instance has been rendered\n * @type {RenderResult}\n * @private\n */\n this._renderResult = null;\n }\n\n /**\n * @returns {string} id of this rendering\n */\n getId() {\n return this.id;\n }\n\n /**\n * @param {string} id\n * @returns {Rendering}\n */\n setId(id) {\n this.id = id;\n\n if (this._renderResult) {\n this.wrapperNodes.forEach((node) => node.setAttribute(ATTR_DATA_ID, this.id));\n }\n\n return this;\n }\n\n /**\n * Creates a Template used as a wrapper and an indication that this is a highlight node\n * @param {Boolean} [omitHighlight]\n * @returns {Node}\n * @private\n */\n _createWrapTemplate(omitHighlight) {\n const el = this.document.createElement(TAG_NAME);\n const vTrue = \"true\";\n\n if (!omitHighlight) {\n el.className = this.options.className.join(' ');\n // save this marker instance to given node\n Rendering.setMarklibInstance(el, this);\n // keep track of highlight nodes\n this.wrapperNodes.push(el);\n el.setAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE, vTrue);\n el.setAttribute(ATTR_DATA_ID, this.getId());\n }\n el.setAttribute(DATA_IS_SELECTION, vTrue);\n\n return el;\n }\n\n /**\n * Creates a Template to use as start and end marks\n * @param {String} text\n * @returns {Node}\n * @private\n */\n _createStartEndWrapTemplate(text) {\n const el = this._createWrapTemplate();\n el.setAttribute(ATTR_DATA_START_END, 'true');\n el.textContent = text;\n return el;\n }\n\n\n /**\n * Creates Start or End Container Element\n * @param initialNode\n * @param text\n * @param offset\n * @param index\n * @returns {Node}\n */\n _createStartOrEndContainer(initialNode, text, offset, index) {\n const wrapper = this._createStartEndWrapTemplate(text);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(initialNode, index));\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n\n return wrapper;\n }\n\n /**\n * Wraps given element\n * @param {Node|HTMLElement} el\n * @param [optionalLength]\n * @param [optionalIndex]\n * @param [optionalIsSameNode]\n * @param {Boolean} [omitHighlight] set to true to prevent node to be a highlight node\n * @returns {Node}\n * @private\n */\n _createWrap(el, optionalLength, optionalIndex, optionalIsSameNode, omitHighlight) {\n const originalIndex = optionalIndex >= 0 ? optionalIndex : Util.calcIndex(el);\n const wrapper = this._createWrapTemplate(omitHighlight);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(el, originalIndex));\n const offsetLength = optionalLength >= 0 ? optionalLength : Util.getOffsetParentIfHas(el);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offsetLength);\n\n // Save a reference to original text node in wrapper\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, originalIndex);\n\n if (optionalIsSameNode) {\n wrapper.setAttribute(ATTR_DATA_START_END, ATTR_DATA_START_END);\n }\n const wrap = Util.wrap(el, wrapper);\n\n this.emit(EVENT_WRAPPED_NODE, el, wrap);\n\n return wrap;\n }\n\n /**\n * Create split container element\n * @param originalElement {Node} original text node element that is created a wrapper for\n * @param index\n * @param offset\n * @returns {Node}\n */\n _createSplitContainer(originalElement, index, offset) {\n const wrapper = this.document.createElement(TAG_NAME);\n wrapper.setAttribute(DATA_IS_SELECTION, 'true');\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(originalElement, index));\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n return wrapper;\n }\n\n /**\n * Walks the tree\n * @param start\n * @param endContainer\n * @param nextParent\n */\n walk(start, endContainer, nextParent) {\n let nextParentNode = start;\n while (nextParentNode && nextParentNode !== nextParent.parentNode) {\n const currentParentNode = nextParentNode;\n nextParentNode = nextParentNode.parentNode;\n if (this.wrapSiblings(currentParentNode.nextSibling, endContainer)) {\n break;\n }\n }\n }\n\n\n /**\n * Will Wrap all textNode siblings of a container (start) inside a defined Element (like a span)\n * If an Element node is found, it will wrap all children of this node inside a element as well.\n * It will stop if endContainer is found as a node\n *\n * @param {Node} start\n * @param {Node} endContainer\n * @returns {boolean} (true if endContainer was found)\n */\n wrapSiblings(start, endContainer) {\n let next = start;\n let found = false;\n\n // Capsule some logic\n const wrap = (n) => {\n const instance = Rendering.getMarklibInstance(n.parentNode);\n if (n.parentNode.hasAttribute(ATTR_DATA_START_END) &&\n n.parentNode.hasAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE) &&\n instance === this) {\n this._createWrap(n, undefined, undefined, undefined, true);\n } else {\n this._createWrap(n);\n }\n };\n\n // helper functions\n\n const wrapIf = (n) => {\n if (!Util.nodeIsEmpty(n)) {\n wrap(n);\n }\n };\n\n const walkIfContained = (e) => {\n if (e === endContainer) {\n return false;\n }\n if (Node.TEXT_NODE === e.nodeType) {\n wrapIf(e);\n }\n return true;\n };\n\n const walkIfNotContained = (el) => {\n wrapIf(el);\n };\n\n while (next !== null && next !== endContainer) {\n const currentNext = next;\n next = next.nextSibling;\n // Found a text node, directly wrap inside a span\n if (Node.TEXT_NODE === currentNext.nodeType) {\n wrapIf(currentNext);\n } else {\n if ((currentNext.compareDocumentPosition(endContainer) & DOCUMENT_POSITION_CONTAINED_BY)) {\n Util.walkDom(currentNext, walkIfContained);\n found = true;\n } else {\n Util.walkTextNodes(currentNext, walkIfNotContained);\n }\n if (found) {\n return true;\n }\n }\n }\n return found;\n }\n\n /**\n * Marks text of the same node\n * @param {Node} textNode\n * @param {int} startIndex\n * @param {int} endIndex\n * @private\n */\n _markTextSameNode(textNode, startIndex, endIndex) {\n const initialText = textNode.nodeValue;\n const initialIndex = Util.calcIndex(textNode);\n\n if (!initialText) {\n return false;\n }\n // If there is an unmarked part in the beginning of the text node,\n // cut off that part and put it into it's own textnode.\n if (startIndex > 0) {\n const textBefore = initialText.slice(0, startIndex);\n textNode.parentNode.insertBefore(this.document.createTextNode(textBefore), textNode);\n // wrap cutted text node:\n Util.wrap(textNode.previousSibling, this._createSplitContainer(textNode,\n initialIndex, Util.getOffsetParentIfHas(textNode)));\n }\n // If there is an unmarked part at the end of the text node,\n // cut off that part and put it into it's own textnode.\n if (endIndex < initialText.length) {\n const textAfter = initialText.slice(endIndex, initialText.length);\n textNode.parentNode.insertBefore(this.document.createTextNode(textAfter), textNode.nextSibling);\n Util.wrap(textNode.nextSibling, this._createSplitContainer(textNode,\n initialIndex, Util.getOffsetParentIfHas(textNode) + endIndex));\n }\n\n // Cutoff the unmarked parts and wrap the textnode into a span.\n textNode.nodeValue = initialText.slice(startIndex, endIndex);\n this.startContainer = this._createWrap(textNode,\n Util.getOffsetParentIfHas(textNode) + startIndex, initialIndex, true).parentNode;\n this.endContainer = this.startContainer;\n return this.startContainer;\n }\n\n\n /**\n * Marks text of end and start containers if start and end nodes are different\n * Important: There might be no end container!\n *\n * @param {Node} startContainer\n * @param {Node} endContainer\n * @param {int} startOffset\n * @param {int} endOffset\n * @returns {{startT: (Node), endT: (Node)}}\n * @private\n */\n _markTextDifferentNode(startContainer, endContainer, startOffset, endOffset) {\n // Get current for both start and end:\n const startContainerIndex = Util.calcIndex(startContainer);\n const endContainerIndex = Util.calcIndex(endContainer);\n\n // Split text\n const fullTextStartValue = startContainer.nodeValue;\n // init with startContainer because we may have not a text node here\n let startT = startContainer;\n\n if (undefined !== fullTextStartValue) {\n const partTextStartValue = fullTextStartValue.slice(startOffset, fullTextStartValue.length);\n // Set new text to start node\n startContainer.nodeValue = fullTextStartValue.slice(0, startOffset);\n\n const offsetStart = Util.getOffsetParentIfHas(startContainer);\n // Create a new node for splitted text, offset is the length of new startContainer.nodeValue:\n startT = this._createStartOrEndContainer(startContainer, partTextStartValue,\n offsetStart === startOffset ? offsetStart : offsetStart + startOffset, startContainerIndex);\n // Append this node after startContainer\n startContainer.parentNode.insertBefore(startT, startContainer.nextSibling);\n this.startContainer = startT;\n\n if (startContainer.nodeValue) {\n // Wrap start container in detection node, offset is always 0 or parent offset.\n Util.wrap(startContainer, this._createSplitContainer(startContainer, startContainerIndex,\n Util.getOffsetParentIfHas(startContainer)));\n }\n }\n\n // init with endContainer because we may have not a text node here\n let endT = endContainer;\n\n // 2. Extract end Text node,\n const fullTextEndValue = endContainer.nodeValue;\n // It's possible that end container value is null (if a whole paragraph is marked)\n if (undefined !== fullTextEndValue) {\n // Split text\n const partTextEndValue = fullTextEndValue.slice(0, endOffset);\n endContainer.nodeValue = fullTextEndValue.slice(endOffset, fullTextEndValue.length);\n // End Container start offset is always 0 or parent offset.\n endT = this._createStartOrEndContainer(endContainer, partTextEndValue,\n Util.getOffsetParentIfHas(endContainer), endContainerIndex);\n\n endContainer.parentNode.insertBefore(endT, endContainer);\n this.endContainer = endT;\n const offsetParent = Util.getOffsetParentIfHas(endContainer);\n Util.wrap(endContainer, this._createSplitContainer(endContainer, endContainerIndex,\n offsetParent === endOffset ? offsetParent : offsetParent + endOffset));\n }\n\n return {\n startT,\n endT\n };\n }\n\n /**\n * Renders a selection\n * @param {Node} startContainerP\n * @param {Node} endContainerP\n * @param {Node} commonAncestor\n * @param {int} startOffset\n * @param {int} endOffsetP\n * @returns RenderResult\n * @private\n */\n _renderWithElements(startContainerP, endContainerP, commonAncestor, startOffset, endOffsetP) {\n if (this._renderResult) {\n return this._renderResult;\n }\n let startContainer = startContainerP;\n let endContainer = endContainerP;\n let endOffset = endOffsetP;\n let outer = Util.parents(startContainer, commonAncestor);\n outer = outer[outer.length - 1];\n const contextContainer = outer ? outer : commonAncestor;\n\n // Same Element, means the selection is fully contained in a discrete area, start and endpoint have the same parent\n // but are different nodes:\n\n // Start and End offset have to be recalculated because dom might be already changed by highlighting in given node\n // 1: First detect real start offset in startContainer:\n\n // That works by selecting the highest wrapper and get original-offset-start data element, see \"findOriginalOffset\"\n // So first select that container:\n const originalStartOffset = Util.findOriginalOffset(startContainer);\n const originalEndOffset = Util.findOriginalOffset(endContainer);\n\n // We may run into Browser Bugs:\n\n // If both are not text nodes, use next sibling as endContainer\n if (startContainer.nodeType !== Node.TEXT_NODE && endContainer.nodeType !== Node.TEXT_NODE) {\n if (startContainer === endContainer) {\n endContainer = endContainer.nextElementSibling || endContainer;\n }\n }\n // IF start/end container is not type of text, select first child text node:\n // We run in some bugs with firefox here that selects no text-nodes sometimes, trying to fix this here\n // Sometimes does not work correctly... (specially when DOM was modified)\n if (startContainer.nodeType !== Node.TEXT_NODE) {\n Util.walkDom(startContainer, (el) => {\n if (el.nodeType === Node.TEXT_NODE) {\n startContainer = el;\n return false;\n }\n return true;\n });\n }\n\n if (endContainer.nodeType !== Node.TEXT_NODE) {\n let toFindNode = startContainer;\n\n if (endOffset === 0) {\n toFindNode = endContainer.previousElementSibling || startContainer;\n }\n\n // Get the last text node:\n const endContainerContents = Util.closest(toFindNode, ':not([' + DATA_IS_SELECTION + '])').childNodes;\n if (endContainerContents.length) {\n const r = endContainerContents[endContainerContents.length - 1];\n if (r.nodeType === Node.TEXT_NODE) {\n endContainer = r;\n endOffset = r.length;\n } else {\n let f = r.lastChild;\n while (f !== null) {\n if (f && f.nodeType === Node.TEXT_NODE) {\n endContainer = f;\n endOffset = f.length;\n if (f.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n endOffset = parseInt(f.parentNode\n .getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) + endOffset;\n }\n }\n f = f.lastChild;\n }\n }\n }\n // still no textNode?\n if (endContainer.nodeType !== Node.TEXT_NODE) {\n throw Error('Could not found endContainer, highlighting would be unstable');\n }\n }\n\n this._renderResult = new RenderResult(\n // Real offset is calculated by relative length and absolute length\n originalStartOffset + startOffset,\n originalEndOffset + endOffset,\n // get the path for this selection\n Util.getPath(startContainer, this.context),\n Util.getPath(endContainer, this.context)\n );\n\n this._renderResult.instance = this;\n\n\n this._renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, !!outer);\n\n return this._renderResult;\n }\n\n /**\n * Renders a given selection\n *\n * @param {Node} startContainer\n * @param {Node} endContainer\n * @param {int} startOffset\n * @param {int} endOffset\n * @param {Node} contextContainer\n * @param {Boolean} outer\n * @private\n */\n _renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, outer) {\n // if start and end-container are the same, mark text on the same node\n if (startContainer === endContainer) {\n this._markTextSameNode(startContainer, startOffset, endOffset);\n } else {\n const result = this._markTextDifferentNode(startContainer, endContainer, startOffset, endOffset);\n const index = this.wrapperNodes.indexOf(result.endT);\n // remove endContainer, to keep order:\n this.wrapperNodes.splice(index, 1);\n if (!outer) {\n this.wrapSiblings(result.startT.nextSibling, endContainer);\n } else {\n this.walk(result.startT, endContainer, contextContainer);\n }\n this.wrapperNodes.push(result.endT);\n }\n }\n\n /**\n * Prepares to render a Selection with path selectors\n * ```\n * A Path looks like this:\n *\n * #selector;#textnode;#offset\n * ``\n * @param {string} startPath\n * @param {string} endPath\n * @returns {string}\n */\n renderWithPath(startPath, endPath) {\n const startContainer = Util.deserializePath(startPath, this.context);\n const endContainer = Util.deserializePath(endPath, this.context);\n if (startContainer && endContainer && startContainer.node && endContainer.node) {\n const range = document.createRange();\n range.setStart(startContainer.node, startContainer.offset);\n range.setEnd(endContainer.node, endContainer.offset);\n const text = range.toString();\n const result = this.renderWithRange(range);\n result.text = text;\n return text;\n }\n throw new Error('Could not find start- and/or end-container in document');\n }\n\n /**\n * @returns {RenderResult}\n */\n get result() {\n return this._renderResult;\n }\n\n /**\n * Renders a result (that returned from `renderWithRange`)\n * @param {RenderResult|Object} result\n * @returns {string}\n */\n renderWithResult(result) {\n return this.renderWithPath(\n `${result.startContainerPath};${result.startOffset}`,\n `${result.endContainerPath};${result.endOffset}`);\n }\n\n /**\n * Prepares a selection with a range object\n * @param {Range} range\n * @returns {Object}\n */\n renderWithRange(range) {\n const text = range.toString();\n const result = this._renderWithElements(range.startContainer, range.endContainer,\n range.commonAncestorContainer, range.startOffset, range.endOffset);\n result.text = text;\n return result;\n }\n\n /**\n * Removes bindings and classNames to nodes\n */\n destroy() {\n this.wrapperNodes.forEach((node) => {\n delete node.marklibInstance;\n node.className = '';\n });\n this.removeEvent();\n }\n\n /**\n * @param {Node} el\n * @param {Rendering} instance\n * @returns {Node}\n */\n static setMarklibInstance(el, instance) {\n el.marklibInstance = instance;\n return el;\n }\n\n /**\n * @param {Node} el\n * @returns {Rendering|null|undefined}\n */\n static getMarklibInstance(el) {\n return el ? el.marklibInstance : null;\n }\n}\n\nexport default Rendering;\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/Rendering.js\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/get-prototype-of\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/get-prototype-of.js\n ** module id = 3\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.get-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.getPrototypeOf;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/get-prototype-of.js\n ** module id = 4\n ** module chunks = 0 1\n **/","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./$.to-object');\n\nrequire('./$.object-sap')('getPrototypeOf', function($getPrototypeOf){\n return function getPrototypeOf(it){\n return $getPrototypeOf(toObject(it));\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.get-prototype-of.js\n ** module id = 5\n ** module chunks = 0 1\n **/","// 7.1.13 ToObject(argument)\nvar defined = require('./$.defined');\nmodule.exports = function(it){\n return Object(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-object.js\n ** module id = 6\n ** module chunks = 0 1\n **/","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function(it){\n if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.defined.js\n ** module id = 7\n ** module chunks = 0 1\n **/","// most Object methods by ES6 should accept primitives\nvar $export = require('./$.export')\n , core = require('./$.core')\n , fails = require('./$.fails');\nmodule.exports = function(KEY, exec){\n var fn = (core.Object || {})[KEY] || Object[KEY]\n , exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-sap.js\n ** module id = 8\n ** module chunks = 0 1\n **/","var global = require('./$.global')\n , core = require('./$.core')\n , ctx = require('./$.ctx')\n , PROTOTYPE = 'prototype';\n\nvar $export = function(type, name, source){\n var IS_FORCED = type & $export.F\n , IS_GLOBAL = type & $export.G\n , IS_STATIC = type & $export.S\n , IS_PROTO = type & $export.P\n , IS_BIND = type & $export.B\n , IS_WRAP = type & $export.W\n , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n , key, own, out;\n if(IS_GLOBAL)source = name;\n for(key in source){\n // contains in native\n own = !IS_FORCED && target && key in target;\n if(own && key in exports)continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function(C){\n var F = function(param){\n return this instanceof C ? new C(param) : C(param);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\nmodule.exports = $export;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.export.js\n ** module id = 9\n ** module chunks = 0 1\n **/","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\nif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.global.js\n ** module id = 10\n ** module chunks = 0 1\n **/","var core = module.exports = {version: '1.2.6'};\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.core.js\n ** module id = 11\n ** module chunks = 0 1\n **/","// optional / simple context binding\nvar aFunction = require('./$.a-function');\nmodule.exports = function(fn, that, length){\n aFunction(fn);\n if(that === undefined)return fn;\n switch(length){\n case 1: return function(a){\n return fn.call(that, a);\n };\n case 2: return function(a, b){\n return fn.call(that, a, b);\n };\n case 3: return function(a, b, c){\n return fn.call(that, a, b, c);\n };\n }\n return function(/* ...args */){\n return fn.apply(that, arguments);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.ctx.js\n ** module id = 12\n ** module chunks = 0 1\n **/","module.exports = function(it){\n if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.a-function.js\n ** module id = 13\n ** module chunks = 0 1\n **/","module.exports = function(exec){\n try {\n return !!exec();\n } catch(e){\n return true;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.fails.js\n ** module id = 14\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/classCallCheck.js\n ** module id = 15\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\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 (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/createClass.js\n ** module id = 16\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/define-property.js\n ** module id = 17\n ** module chunks = 0 1\n **/","var $ = require('../../modules/$');\nmodule.exports = function defineProperty(it, key, desc){\n return $.setDesc(it, key, desc);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/define-property.js\n ** module id = 18\n ** module chunks = 0 1\n **/","var $Object = Object;\nmodule.exports = {\n create: $Object.create,\n getProto: $Object.getPrototypeOf,\n isEnum: {}.propertyIsEnumerable,\n getDesc: $Object.getOwnPropertyDescriptor,\n setDesc: $Object.defineProperty,\n setDescs: $Object.defineProperties,\n getKeys: $Object.keys,\n getNames: $Object.getOwnPropertyNames,\n getSymbols: $Object.getOwnPropertySymbols,\n each: [].forEach\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.js\n ** module id = 19\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/possibleConstructorReturn.js\n ** module id = 20\n ** module chunks = 0 1\n **/","\"use strict\";\n\nvar _typeof = typeof _Symbol === \"function\" && typeof _Symbol$iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _Symbol === \"function\" && obj.constructor === _Symbol ? \"symbol\" : typeof obj; };\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/typeof.js\n ** module id = 21\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol/iterator.js\n ** module id = 22\n ** module chunks = 0 1\n **/","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/$.wks')('iterator');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/iterator.js\n ** module id = 23\n ** module chunks = 0 1\n **/","'use strict';\nvar $at = require('./$.string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./$.iter-define')(String, 'String', function(iterated){\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , index = this._i\n , point;\n if(index >= O.length)return {value: undefined, done: true};\n point = $at(O, index);\n this._i += point.length;\n return {value: point, done: false};\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.string.iterator.js\n ** module id = 24\n ** module chunks = 0 1\n **/","var toInteger = require('./$.to-integer')\n , defined = require('./$.defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function(TO_STRING){\n return function(that, pos){\n var s = String(defined(that))\n , i = toInteger(pos)\n , l = s.length\n , a, b;\n if(i < 0 || i >= l)return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.string-at.js\n ** module id = 25\n ** module chunks = 0 1\n **/","// 7.1.4 ToInteger\nvar ceil = Math.ceil\n , floor = Math.floor;\nmodule.exports = function(it){\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-integer.js\n ** module id = 26\n ** module chunks = 0 1\n **/","'use strict';\nvar LIBRARY = require('./$.library')\n , $export = require('./$.export')\n , redefine = require('./$.redefine')\n , hide = require('./$.hide')\n , has = require('./$.has')\n , Iterators = require('./$.iterators')\n , $iterCreate = require('./$.iter-create')\n , setToStringTag = require('./$.set-to-string-tag')\n , getProto = require('./$').getProto\n , ITERATOR = require('./$.wks')('iterator')\n , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`\n , FF_ITERATOR = '@@iterator'\n , KEYS = 'keys'\n , VALUES = 'values';\n\nvar returnThis = function(){ return this; };\n\nmodule.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){\n $iterCreate(Constructor, NAME, next);\n var getMethod = function(kind){\n if(!BUGGY && kind in proto)return proto[kind];\n switch(kind){\n case KEYS: return function keys(){ return new Constructor(this, kind); };\n case VALUES: return function values(){ return new Constructor(this, kind); };\n } return function entries(){ return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator'\n , DEF_VALUES = DEFAULT == VALUES\n , VALUES_BUG = false\n , proto = Base.prototype\n , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]\n , $default = $native || getMethod(DEFAULT)\n , methods, key;\n // Fix native\n if($native){\n var IteratorPrototype = getProto($default.call(new Base));\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // FF fix\n if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);\n // fix Array#{values, @@iterator}.name in V8 / FF\n if(DEF_VALUES && $native.name !== VALUES){\n VALUES_BUG = true;\n $default = function values(){ return $native.call(this); };\n }\n }\n // Define iterator\n if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if(DEFAULT){\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: !DEF_VALUES ? $default : getMethod('entries')\n };\n if(FORCED)for(key in methods){\n if(!(key in proto))redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-define.js\n ** module id = 27\n ** module chunks = 0 1\n **/","module.exports = true;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.library.js\n ** module id = 28\n ** module chunks = 0 1\n **/","module.exports = require('./$.hide');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine.js\n ** module id = 29\n ** module chunks = 0 1\n **/","var $ = require('./$')\n , createDesc = require('./$.property-desc');\nmodule.exports = require('./$.descriptors') ? function(object, key, value){\n return $.setDesc(object, key, createDesc(1, value));\n} : function(object, key, value){\n object[key] = value;\n return object;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.hide.js\n ** module id = 30\n ** module chunks = 0 1\n **/","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\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.property-desc.js\n ** module id = 31\n ** module chunks = 0 1\n **/","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./$.fails')(function(){\n return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.descriptors.js\n ** module id = 32\n ** module chunks = 0 1\n **/","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function(it, key){\n return hasOwnProperty.call(it, key);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.has.js\n ** module id = 33\n ** module chunks = 0 1\n **/","module.exports = {};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iterators.js\n ** module id = 34\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , descriptor = require('./$.property-desc')\n , setToStringTag = require('./$.set-to-string-tag')\n , IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./$.hide')(IteratorPrototype, require('./$.wks')('iterator'), function(){ return this; });\n\nmodule.exports = function(Constructor, NAME, next){\n Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-create.js\n ** module id = 35\n ** module chunks = 0 1\n **/","var def = require('./$').setDesc\n , has = require('./$.has')\n , TAG = require('./$.wks')('toStringTag');\n\nmodule.exports = function(it, tag, stat){\n if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-to-string-tag.js\n ** module id = 36\n ** module chunks = 0 1\n **/","var store = require('./$.shared')('wks')\n , uid = require('./$.uid')\n , Symbol = require('./$.global').Symbol;\nmodule.exports = function(name){\n return store[name] || (store[name] =\n Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.wks.js\n ** module id = 37\n ** module chunks = 0 1\n **/","var global = require('./$.global')\n , SHARED = '__core-js_shared__'\n , store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function(key){\n return store[key] || (store[key] = {});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.shared.js\n ** module id = 38\n ** module chunks = 0 1\n **/","var id = 0\n , px = Math.random();\nmodule.exports = function(key){\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.uid.js\n ** module id = 39\n ** module chunks = 0 1\n **/","require('./es6.array.iterator');\nvar Iterators = require('./$.iterators');\nIterators.NodeList = Iterators.HTMLCollection = Iterators.Array;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/web.dom.iterable.js\n ** module id = 40\n ** module chunks = 0 1\n **/","'use strict';\nvar addToUnscopables = require('./$.add-to-unscopables')\n , step = require('./$.iter-step')\n , Iterators = require('./$.iterators')\n , toIObject = require('./$.to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./$.iter-define')(Array, 'Array', function(iterated, kind){\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , kind = this._k\n , index = this._i++;\n if(!O || index >= O.length){\n this._t = undefined;\n return step(1);\n }\n if(kind == 'keys' )return step(0, index);\n if(kind == 'values')return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.array.iterator.js\n ** module id = 41\n ** module chunks = 0 1\n **/","module.exports = function(){ /* empty */ };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.add-to-unscopables.js\n ** module id = 42\n ** module chunks = 0 1\n **/","module.exports = function(done, value){\n return {value: value, done: !!done};\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-step.js\n ** module id = 43\n ** module chunks = 0 1\n **/","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./$.iobject')\n , defined = require('./$.defined');\nmodule.exports = function(it){\n return IObject(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-iobject.js\n ** module id = 44\n ** module chunks = 0 1\n **/","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./$.cof');\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iobject.js\n ** module id = 45\n ** module chunks = 0 1\n **/","var toString = {}.toString;\n\nmodule.exports = function(it){\n return toString.call(it).slice(8, -1);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.cof.js\n ** module id = 46\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol.js\n ** module id = 47\n ** module chunks = 0 1\n **/","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nmodule.exports = require('../../modules/$.core').Symbol;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/index.js\n ** module id = 48\n ** module chunks = 0 1\n **/","'use strict';\n// ECMAScript 6 symbols shim\nvar $ = require('./$')\n , global = require('./$.global')\n , has = require('./$.has')\n , DESCRIPTORS = require('./$.descriptors')\n , $export = require('./$.export')\n , redefine = require('./$.redefine')\n , $fails = require('./$.fails')\n , shared = require('./$.shared')\n , setToStringTag = require('./$.set-to-string-tag')\n , uid = require('./$.uid')\n , wks = require('./$.wks')\n , keyOf = require('./$.keyof')\n , $names = require('./$.get-names')\n , enumKeys = require('./$.enum-keys')\n , isArray = require('./$.is-array')\n , anObject = require('./$.an-object')\n , toIObject = require('./$.to-iobject')\n , createDesc = require('./$.property-desc')\n , getDesc = $.getDesc\n , setDesc = $.setDesc\n , _create = $.create\n , getNames = $names.get\n , $Symbol = global.Symbol\n , $JSON = global.JSON\n , _stringify = $JSON && $JSON.stringify\n , setter = false\n , HIDDEN = wks('_hidden')\n , isEnum = $.isEnum\n , SymbolRegistry = shared('symbol-registry')\n , AllSymbols = shared('symbols')\n , useNative = typeof $Symbol == 'function'\n , ObjectProto = Object.prototype;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n return _create(setDesc({}, 'a', {\n get: function(){ return setDesc(this, 'a', {value: 7}).a; }\n })).a != 7;\n}) ? function(it, key, D){\n var protoDesc = getDesc(ObjectProto, key);\n if(protoDesc)delete ObjectProto[key];\n setDesc(it, key, D);\n if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);\n} : setDesc;\n\nvar wrap = function(tag){\n var sym = AllSymbols[tag] = _create($Symbol.prototype);\n sym._k = tag;\n DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {\n configurable: true,\n set: function(value){\n if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n }\n });\n return sym;\n};\n\nvar isSymbol = function(it){\n return typeof it == 'symbol';\n};\n\nvar $defineProperty = function defineProperty(it, key, D){\n if(D && has(AllSymbols, key)){\n if(!D.enumerable){\n if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n D = _create(D, {enumerable: createDesc(0, false)});\n } return setSymbolDesc(it, key, D);\n } return setDesc(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P){\n anObject(it);\n var keys = enumKeys(P = toIObject(P))\n , i = 0\n , l = keys.length\n , key;\n while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P){\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n var E = isEnum.call(this, key);\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]\n ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n var D = getDesc(it = toIObject(it), key);\n if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);\n return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);\n return result;\n};\nvar $stringify = function stringify(it){\n if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n var args = [it]\n , i = 1\n , $$ = arguments\n , replacer, $replacer;\n while($$.length > i)args.push($$[i++]);\n replacer = args[1];\n if(typeof replacer == 'function')$replacer = replacer;\n if($replacer || !isArray(replacer))replacer = function(key, value){\n if($replacer)value = $replacer.call(this, key, value);\n if(!isSymbol(value))return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n};\nvar buggyJSON = $fails(function(){\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n});\n\n// 19.4.1.1 Symbol([description])\nif(!useNative){\n $Symbol = function Symbol(){\n if(isSymbol(this))throw TypeError('Symbol is not a constructor');\n return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));\n };\n redefine($Symbol.prototype, 'toString', function toString(){\n return this._k;\n });\n\n isSymbol = function(it){\n return it instanceof $Symbol;\n };\n\n $.create = $create;\n $.isEnum = $propertyIsEnumerable;\n $.getDesc = $getOwnPropertyDescriptor;\n $.setDesc = $defineProperty;\n $.setDescs = $defineProperties;\n $.getNames = $names.get = $getOwnPropertyNames;\n $.getSymbols = $getOwnPropertySymbols;\n\n if(DESCRIPTORS && !require('./$.library')){\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n}\n\nvar symbolStatics = {\n // 19.4.2.1 Symbol.for(key)\n 'for': function(key){\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(key){\n return keyOf(SymbolRegistry, key);\n },\n useSetter: function(){ setter = true; },\n useSimple: function(){ setter = false; }\n};\n// 19.4.2.2 Symbol.hasInstance\n// 19.4.2.3 Symbol.isConcatSpreadable\n// 19.4.2.4 Symbol.iterator\n// 19.4.2.6 Symbol.match\n// 19.4.2.8 Symbol.replace\n// 19.4.2.9 Symbol.search\n// 19.4.2.10 Symbol.species\n// 19.4.2.11 Symbol.split\n// 19.4.2.12 Symbol.toPrimitive\n// 19.4.2.13 Symbol.toStringTag\n// 19.4.2.14 Symbol.unscopables\n$.each.call((\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +\n 'species,split,toPrimitive,toStringTag,unscopables'\n).split(','), function(it){\n var sym = wks(it);\n symbolStatics[it] = useNative ? sym : wrap(sym);\n});\n\nsetter = true;\n\n$export($export.G + $export.W, {Symbol: $Symbol});\n\n$export($export.S, 'Symbol', symbolStatics);\n\n$export($export.S + $export.F * !useNative, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});\n\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.symbol.js\n ** module id = 49\n ** module chunks = 0 1\n **/","var $ = require('./$')\n , toIObject = require('./$.to-iobject');\nmodule.exports = function(object, el){\n var O = toIObject(object)\n , keys = $.getKeys(O)\n , length = keys.length\n , index = 0\n , key;\n while(length > index)if(O[key = keys[index++]] === el)return key;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.keyof.js\n ** module id = 50\n ** module chunks = 0 1\n **/","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./$.to-iobject')\n , getNames = require('./$').getNames\n , toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function(it){\n try {\n return getNames(it);\n } catch(e){\n return windowNames.slice();\n }\n};\n\nmodule.exports.get = function getOwnPropertyNames(it){\n if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);\n return getNames(toIObject(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.get-names.js\n ** module id = 51\n ** module chunks = 0 1\n **/","// all enumerable object keys, includes symbols\nvar $ = require('./$');\nmodule.exports = function(it){\n var keys = $.getKeys(it)\n , getSymbols = $.getSymbols;\n if(getSymbols){\n var symbols = getSymbols(it)\n , isEnum = $.isEnum\n , i = 0\n , key;\n while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);\n }\n return keys;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.enum-keys.js\n ** module id = 52\n ** module chunks = 0 1\n **/","// 7.2.2 IsArray(argument)\nvar cof = require('./$.cof');\nmodule.exports = Array.isArray || function(arg){\n return cof(arg) == 'Array';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array.js\n ** module id = 53\n ** module chunks = 0 1\n **/","var isObject = require('./$.is-object');\nmodule.exports = function(it){\n if(!isObject(it))throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.an-object.js\n ** module id = 54\n ** module chunks = 0 1\n **/","module.exports = function(it){\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-object.js\n ** module id = 55\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/inherits.js\n ** module id = 57\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/set-prototype-of.js\n ** module id = 58\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.setPrototypeOf;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/set-prototype-of.js\n ** module id = 59\n ** module chunks = 0 1\n **/","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./$.export');\n$export($export.S, 'Object', {setPrototypeOf: require('./$.set-proto').set});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.set-prototype-of.js\n ** module id = 60\n ** module chunks = 0 1\n **/","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar getDesc = require('./$').getDesc\n , isObject = require('./$.is-object')\n , anObject = require('./$.an-object');\nvar check = function(O, proto){\n anObject(O);\n if(!isObject(proto) && proto !== null)throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function(test, buggy, set){\n try {\n set = require('./$.ctx')(Function.call, getDesc(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch(e){ buggy = true; }\n return function setPrototypeOf(O, proto){\n check(O, proto);\n if(buggy)O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-proto.js\n ** module id = 61\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/create.js\n ** module id = 62\n ** module chunks = 0 1\n **/","var $ = require('../../modules/$');\nmodule.exports = function create(P, D){\n return $.create(P, D);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/create.js\n ** module id = 63\n ** module chunks = 0 1\n **/","/**\n * A Render Result\n */\nexport default class RenderResult {\n /**\n * @param {int} startOffset\n * @param {int} endOffset\n * @param {String} startContainerPath\n * @param {String} endContainerPath\n */\n constructor(startOffset, endOffset, startContainerPath, endContainerPath) {\n this.startOffset = startOffset;\n this.endOffset = endOffset;\n this.startContainerPath = startContainerPath;\n this.endContainerPath = endContainerPath;\n this._renderingInstance = null;\n }\n\n /**\n * @param {Object} result\n * @return RenderResult\n */\n static fromObject(result) {\n return new RenderResult(\n result.startOffset,\n result.endOffset,\n result.startContainerPath,\n result.endContainerPath\n );\n }\n\n /**\n * @returns {Object}\n */\n serialize() {\n return {\n startOffset: this.startOffset,\n endOffset: this.endOffset,\n startContainerPath: this.startContainerPath,\n endContainerPath: this.endContainerPath\n };\n }\n\n /**\n * @param {String} text\n */\n set text(text) {\n this._text = text;\n }\n\n /**\n * @returns {String}\n */\n get text() {\n return this._text;\n }\n\n /**\n * @returns {null|Rendering}\n */\n get instance() {\n return this._renderingInstance;\n }\n\n /**\n * @param {null|Rendering} instance\n */\n set instance(instance) {\n this._renderingInstance = instance;\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/RenderResult.js\n **/","/* global Set */\n\nimport EventEmitter from 'wolfy87-eventemitter';\nimport Rendering from './Rendering';\nimport Util from './util/Util';\n\n/**\n * @type {string}\n */\nexport const EVENT_CLICK = 'click';\n\n/**\n * @type {string}\n */\nexport const EVENT_MOUSEENTER = 'hover-enter';\n\n/**\n * @type {string}\n */\nexport const EVENT_MOUSELEAVE = 'hover-leave';\n\n/**\n * @type {string}\n */\nexport const EVENT_PART_TREE_ENTER = 'tree-enter';\n\n/**\n * @type {string}\n */\nexport const EVENT_PART_TREE_LEAVE = 'tree-leave';\n\n/**\n * Generic Event Handlings for Renderer\n */\nexport default class RenderingEvents extends EventEmitter {\n\n /**\n * @param {Object} options\n * @param {Document} document\n */\n constructor(options, document) {\n super();\n\n /**\n * Options\n * @type {Object}\n */\n this.options = {\n hoverClass: 'marklib--hover',\n treeClass: 'marklib--tree',\n className: ['marking']\n };\n\n this.options = Object.assign(this.options, options || {});\n\n if (typeof this.options.className === 'string') {\n this.options.className = this.options.className.split(' ');\n }\n\n /**\n * A collection of all nodes that are part of all events\n * @type {Array}\n */\n this.wrapperNodes = [];\n\n this._registerEvents(document);\n\n /**\n * @type {Document}\n */\n this.document = document;\n }\n\n /**\n * Constructs a new Range from rendered result\n * @returns {Range}\n */\n get range() {\n const range = this.document.createRange();\n const textNodes = [];\n\n this.wrapperNodes.forEach((wrapper) => {\n Util.walkTextNodes(wrapper, (node) => {\n textNodes.push(node);\n });\n });\n\n if (textNodes.length > 0) {\n const lastTextNode = textNodes[textNodes.length - 1];\n range.setStart(textNodes[0], 0);\n range.setEnd(lastTextNode, lastTextNode.length);\n return range;\n }\n\n return null;\n }\n\n /**\n * Will register events if not already bind.\n * @param {Document} document\n * @private\n */\n _registerEvents(document) {\n this.on(EVENT_MOUSEENTER, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.add(this.options.hoverClass);\n });\n });\n\n this.on(EVENT_MOUSELEAVE, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.remove(this.options.hoverClass);\n });\n });\n\n this.on(EVENT_PART_TREE_ENTER, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.add(this.options.treeClass);\n });\n });\n\n this.on(EVENT_PART_TREE_LEAVE, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.remove(this.options.treeClass);\n });\n });\n\n\n if (!global.__MARKLIB_EVENTS__) {\n global.__MARKLIB_EVENTS__ = true;\n (function init() {\n const currentHoverInstances = new Set();\n const betweenInstances = new Set();\n\n function checkMarklibInstance(e) {\n const instance = Rendering.getMarklibInstance(e);\n // instanceof check will fail if used in test scenario where different DOMs are used\n // see also http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/\n return instance && (instance instanceof Rendering || 'wrapperNodes' in instance);\n }\n\n function closestInstance(e) {\n const closest = Util.closestCallback(\n e.target,\n (thisE) => checkMarklibInstance(thisE)\n );\n if (typeof closest === 'object') {\n return Rendering.getMarklibInstance(closest);\n }\n return false;\n }\n\n function getInstancesBetween(e, instance) {\n return Util.parentsCallback(\n e.target,\n (el) => checkMarklibInstance(el) && Rendering.getMarklibInstance(el) !== instance\n ).map(el => Rendering.getMarklibInstance(el));\n }\n\n function mouseOutClear() {\n currentHoverInstances.forEach((thisInstance) => {\n thisInstance.emit(EVENT_MOUSELEAVE);\n });\n currentHoverInstances.clear();\n\n betweenInstances.forEach((thisInstance) => {\n thisInstance.emit(EVENT_PART_TREE_LEAVE);\n });\n\n betweenInstances.clear();\n }\n\n /**\n * @param {Event} e\n * @returns {Array|boolean}\n */\n function findTarget(e) {\n let instance = closestInstance(e);\n if (instance) {\n const between = getInstancesBetween(e, instance);\n if (e.target.textContent !== instance.result.text && between.length > 0) {\n let allInstances = between;\n allInstances.unshift(instance);\n // take the smallest selection\n allInstances = allInstances.sort(\n (a, b) => a.result.text.length < b.result.text.length ? -1 : 1\n );\n instance = allInstances[0];\n }\n\n return [instance, between];\n }\n return false;\n }\n\n document.addEventListener('click', (e) => {\n const target = findTarget(e);\n if (target) {\n target[0].emit(EVENT_CLICK, e, target[1]);\n }\n }, true);\n\n document.addEventListener('mouseover', (e) => {\n const target = findTarget(e);\n if (target) {\n const [instance, between] = target;\n // find instances that lay in between the node\n mouseOutClear();\n between.forEach((instanceBetween) => {\n betweenInstances.add(instanceBetween);\n instanceBetween.emit(EVENT_PART_TREE_ENTER, e, between);\n });\n instance.emit(EVENT_MOUSEENTER, e, between);\n currentHoverInstances.add(instance);\n } else {\n mouseOutClear();\n }\n }, true);\n })();\n }\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/RenderingEvents.js\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _isIterable2 = require(\"../core-js/is-iterable\");\n\nvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\nvar _getIterator2 = require(\"../core-js/get-iterator\");\n\nvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if ((0, _isIterable3.default)(Object(arr))) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/slicedToArray.js\n ** module id = 66\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/is-iterable\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/is-iterable.js\n ** module id = 67\n ** module chunks = 0 1\n **/","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.is-iterable');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/is-iterable.js\n ** module id = 68\n ** module chunks = 0 1\n **/","var classof = require('./$.classof')\n , ITERATOR = require('./$.wks')('iterator')\n , Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').isIterable = function(it){\n var O = Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n || Iterators.hasOwnProperty(classof(O));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.is-iterable.js\n ** module id = 69\n ** module chunks = 0 1\n **/","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./$.cof')\n , TAG = require('./$.wks')('toStringTag')\n // ES3 wrong here\n , ARG = cof(function(){ return arguments; }()) == 'Arguments';\n\nmodule.exports = function(it){\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = (O = Object(it))[TAG]) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.classof.js\n ** module id = 70\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/get-iterator\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/get-iterator.js\n ** module id = 71\n ** module chunks = 0 1\n **/","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.get-iterator');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/get-iterator.js\n ** module id = 72\n ** module chunks = 0 1\n **/","var anObject = require('./$.an-object')\n , get = require('./core.get-iterator-method');\nmodule.exports = require('./$.core').getIterator = function(it){\n var iterFn = get(it);\n if(typeof iterFn != 'function')throw TypeError(it + ' is not iterable!');\n return anObject(iterFn.call(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.get-iterator.js\n ** module id = 73\n ** module chunks = 0 1\n **/","var classof = require('./$.classof')\n , ITERATOR = require('./$.wks')('iterator')\n , Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').getIteratorMethod = function(it){\n if(it != undefined)return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.get-iterator-method.js\n ** module id = 74\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/set\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/set.js\n ** module id = 75\n ** module chunks = 0 1\n **/","require('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.set');\nrequire('../modules/es7.set.to-json');\nmodule.exports = require('../modules/$.core').Set;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/set.js\n ** module id = 76\n ** module chunks = 0 1\n **/","'use strict';\nvar strong = require('./$.collection-strong');\n\n// 23.2 Set Objects\nrequire('./$.collection')('Set', function(get){\n return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.2.3.1 Set.prototype.add(value)\n add: function add(value){\n return strong.def(this, value = value === 0 ? 0 : value, value);\n }\n}, strong);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.set.js\n ** module id = 77\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , hide = require('./$.hide')\n , redefineAll = require('./$.redefine-all')\n , ctx = require('./$.ctx')\n , strictNew = require('./$.strict-new')\n , defined = require('./$.defined')\n , forOf = require('./$.for-of')\n , $iterDefine = require('./$.iter-define')\n , step = require('./$.iter-step')\n , ID = require('./$.uid')('id')\n , $has = require('./$.has')\n , isObject = require('./$.is-object')\n , setSpecies = require('./$.set-species')\n , DESCRIPTORS = require('./$.descriptors')\n , isExtensible = Object.isExtensible || isObject\n , SIZE = DESCRIPTORS ? '_s' : 'size'\n , id = 0;\n\nvar fastKey = function(it, create){\n // return primitive with prefix\n if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if(!$has(it, ID)){\n // can't set id to frozen object\n if(!isExtensible(it))return 'F';\n // not necessary to add id\n if(!create)return 'E';\n // add missing object id\n hide(it, ID, ++id);\n // return object id with prefix\n } return 'O' + it[ID];\n};\n\nvar getEntry = function(that, key){\n // fast case\n var index = fastKey(key), entry;\n if(index !== 'F')return that._i[index];\n // frozen object case\n for(entry = that._f; entry; entry = entry.n){\n if(entry.k == key)return entry;\n }\n};\n\nmodule.exports = {\n getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n var C = wrapper(function(that, iterable){\n strictNew(that, C, NAME);\n that._i = $.create(null); // index\n that._f = undefined; // first entry\n that._l = undefined; // last entry\n that[SIZE] = 0; // size\n if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear(){\n for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){\n entry.r = true;\n if(entry.p)entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\n 'delete': function(key){\n var that = this\n , entry = getEntry(that, key);\n if(entry){\n var next = entry.n\n , prev = entry.p;\n delete that._i[entry.i];\n entry.r = true;\n if(prev)prev.n = next;\n if(next)next.p = prev;\n if(that._f == entry)that._f = next;\n if(that._l == entry)that._l = prev;\n that[SIZE]--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /*, that = undefined */){\n var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3)\n , entry;\n while(entry = entry ? entry.n : this._f){\n f(entry.v, entry.k, this);\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key){\n return !!getEntry(this, key);\n }\n });\n if(DESCRIPTORS)$.setDesc(C.prototype, 'size', {\n get: function(){\n return defined(this[SIZE]);\n }\n });\n return C;\n },\n def: function(that, key, value){\n var entry = getEntry(that, key)\n , prev, index;\n // change existing entry\n if(entry){\n entry.v = value;\n // create new entry\n } else {\n that._l = entry = {\n i: index = fastKey(key, true), // <- index\n k: key, // <- key\n v: value, // <- value\n p: prev = that._l, // <- previous entry\n n: undefined, // <- next entry\n r: false // <- removed\n };\n if(!that._f)that._f = entry;\n if(prev)prev.n = entry;\n that[SIZE]++;\n // add to index\n if(index !== 'F')that._i[index] = entry;\n } return that;\n },\n getEntry: getEntry,\n setStrong: function(C, NAME, IS_MAP){\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n $iterDefine(C, NAME, function(iterated, kind){\n this._t = iterated; // target\n this._k = kind; // kind\n this._l = undefined; // previous\n }, function(){\n var that = this\n , kind = that._k\n , entry = that._l;\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n // get next entry\n if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){\n // or finish the iteration\n that._t = undefined;\n return step(1);\n }\n // return step by kind\n if(kind == 'keys' )return step(0, entry.k);\n if(kind == 'values')return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(NAME);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection-strong.js\n ** module id = 78\n ** module chunks = 0 1\n **/","var redefine = require('./$.redefine');\nmodule.exports = function(target, src){\n for(var key in src)redefine(target, key, src[key]);\n return target;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine-all.js\n ** module id = 79\n ** module chunks = 0 1\n **/","module.exports = function(it, Constructor, name){\n if(!(it instanceof Constructor))throw TypeError(name + \": use the 'new' operator!\");\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.strict-new.js\n ** module id = 80\n ** module chunks = 0 1\n **/","var ctx = require('./$.ctx')\n , call = require('./$.iter-call')\n , isArrayIter = require('./$.is-array-iter')\n , anObject = require('./$.an-object')\n , toLength = require('./$.to-length')\n , getIterFn = require('./core.get-iterator-method');\nmodule.exports = function(iterable, entries, fn, that){\n var iterFn = getIterFn(iterable)\n , f = ctx(fn, that, entries ? 2 : 1)\n , index = 0\n , length, step, iterator;\n if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){\n entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){\n call(iterator, f, step.value, entries);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.for-of.js\n ** module id = 81\n ** module chunks = 0 1\n **/","// call something on iterator step with safe closing on error\nvar anObject = require('./$.an-object');\nmodule.exports = function(iterator, fn, value, entries){\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch(e){\n var ret = iterator['return'];\n if(ret !== undefined)anObject(ret.call(iterator));\n throw e;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-call.js\n ** module id = 82\n ** module chunks = 0 1\n **/","// check on default Array iterator\nvar Iterators = require('./$.iterators')\n , ITERATOR = require('./$.wks')('iterator')\n , ArrayProto = Array.prototype;\n\nmodule.exports = function(it){\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array-iter.js\n ** module id = 83\n ** module chunks = 0 1\n **/","// 7.1.15 ToLength\nvar toInteger = require('./$.to-integer')\n , min = Math.min;\nmodule.exports = function(it){\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-length.js\n ** module id = 84\n ** module chunks = 0 1\n **/","'use strict';\nvar core = require('./$.core')\n , $ = require('./$')\n , DESCRIPTORS = require('./$.descriptors')\n , SPECIES = require('./$.wks')('species');\n\nmodule.exports = function(KEY){\n var C = core[KEY];\n if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {\n configurable: true,\n get: function(){ return this; }\n });\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-species.js\n ** module id = 85\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , global = require('./$.global')\n , $export = require('./$.export')\n , fails = require('./$.fails')\n , hide = require('./$.hide')\n , redefineAll = require('./$.redefine-all')\n , forOf = require('./$.for-of')\n , strictNew = require('./$.strict-new')\n , isObject = require('./$.is-object')\n , setToStringTag = require('./$.set-to-string-tag')\n , DESCRIPTORS = require('./$.descriptors');\n\nmodule.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){\n var Base = global[NAME]\n , C = Base\n , ADDER = IS_MAP ? 'set' : 'add'\n , proto = C && C.prototype\n , O = {};\n if(!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){\n new C().entries().next();\n }))){\n // create collection constructor\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n redefineAll(C.prototype, methods);\n } else {\n C = wrapper(function(target, iterable){\n strictNew(target, C, NAME);\n target._c = new Base;\n if(iterable != undefined)forOf(iterable, IS_MAP, target[ADDER], target);\n });\n $.each.call('add,clear,delete,forEach,get,has,set,keys,values,entries'.split(','),function(KEY){\n var IS_ADDER = KEY == 'add' || KEY == 'set';\n if(KEY in proto && !(IS_WEAK && KEY == 'clear'))hide(C.prototype, KEY, function(a, b){\n if(!IS_ADDER && IS_WEAK && !isObject(a))return KEY == 'get' ? undefined : false;\n var result = this._c[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n });\n if('size' in proto)$.setDesc(C.prototype, 'size', {\n get: function(){\n return this._c.size;\n }\n });\n }\n\n setToStringTag(C, NAME);\n\n O[NAME] = C;\n $export($export.G + $export.W + $export.F, O);\n\n if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);\n\n return C;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection.js\n ** module id = 86\n ** module chunks = 0 1\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export = require('./$.export');\n\n$export($export.P, 'Set', {toJSON: require('./$.collection-to-json')('Set')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es7.set.to-json.js\n ** module id = 87\n ** module chunks = 0 1\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar forOf = require('./$.for-of')\n , classof = require('./$.classof');\nmodule.exports = function(NAME){\n return function toJSON(){\n if(classof(this) != NAME)throw TypeError(NAME + \"#toJSON isn't generic\");\n var arr = [];\n forOf(this, false, arr.push, arr);\n return arr;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection-to-json.js\n ** module id = 88\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/assign.js\n ** module id = 89\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/$.core').Object.assign;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/assign.js\n ** module id = 90\n ** module chunks = 0 1\n **/","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./$.export');\n\n$export($export.S + $export.F, 'Object', {assign: require('./$.object-assign')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.assign.js\n ** module id = 91\n ** module chunks = 0 1\n **/","// 19.1.2.1 Object.assign(target, source, ...)\nvar $ = require('./$')\n , toObject = require('./$.to-object')\n , IObject = require('./$.iobject');\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = require('./$.fails')(function(){\n var a = Object.assign\n , A = {}\n , B = {}\n , S = Symbol()\n , K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function(k){ B[k] = k; });\n return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n var T = toObject(target)\n , $$ = arguments\n , $$len = $$.length\n , index = 1\n , getKeys = $.getKeys\n , getSymbols = $.getSymbols\n , isEnum = $.isEnum;\n while($$len > index){\n var S = IObject($$[index++])\n , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n , length = keys.length\n , j = 0\n , key;\n while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n }\n return T;\n} : Object.assign;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-assign.js\n ** module id = 92\n ** module chunks = 0 1\n **/","/*!\n * EventEmitter v4.2.11 - git.io/ee\n * Unlicense - http://unlicense.org/\n * Oliver Caldwell - http://oli.me.uk/\n * @preserve\n */\n\n;(function () {\n 'use strict';\n\n /**\n * Class for managing events.\n * Can be extended to provide event functionality in other classes.\n *\n * @class EventEmitter Manages event registering and emitting.\n */\n function EventEmitter() {}\n\n // Shortcuts to improve speed and size\n var proto = EventEmitter.prototype;\n var exports = this;\n var originalGlobalValue = exports.EventEmitter;\n\n /**\n * Finds the index of the listener for the event in its storage array.\n *\n * @param {Function[]} listeners Array of listeners to search through.\n * @param {Function} listener Method to look for.\n * @return {Number} Index of the specified listener, -1 if not found\n * @api private\n */\n function indexOfListener(listeners, listener) {\n var i = listeners.length;\n while (i--) {\n if (listeners[i].listener === listener) {\n return i;\n }\n }\n\n return -1;\n }\n\n /**\n * Alias a method while keeping the context correct, to allow for overwriting of target method.\n *\n * @param {String} name The name of the target method.\n * @return {Function} The aliased method\n * @api private\n */\n function alias(name) {\n return function aliasClosure() {\n return this[name].apply(this, arguments);\n };\n }\n\n /**\n * Returns the listener array for the specified event.\n * Will initialise the event object and listener arrays if required.\n * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.\n * Each property in the object response is an array of listener functions.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Function[]|Object} All listener functions for the event.\n */\n proto.getListeners = function getListeners(evt) {\n var events = this._getEvents();\n var response;\n var key;\n\n // Return a concatenated array of all matching events if\n // the selector is a regular expression.\n if (evt instanceof RegExp) {\n response = {};\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n response[key] = events[key];\n }\n }\n }\n else {\n response = events[evt] || (events[evt] = []);\n }\n\n return response;\n };\n\n /**\n * Takes a list of listener objects and flattens it into a list of listener functions.\n *\n * @param {Object[]} listeners Raw listener objects.\n * @return {Function[]} Just the listener functions.\n */\n proto.flattenListeners = function flattenListeners(listeners) {\n var flatListeners = [];\n var i;\n\n for (i = 0; i < listeners.length; i += 1) {\n flatListeners.push(listeners[i].listener);\n }\n\n return flatListeners;\n };\n\n /**\n * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Object} All listener functions for an event in an object.\n */\n proto.getListenersAsObject = function getListenersAsObject(evt) {\n var listeners = this.getListeners(evt);\n var response;\n\n if (listeners instanceof Array) {\n response = {};\n response[evt] = listeners;\n }\n\n return response || listeners;\n };\n\n /**\n * Adds a listener function to the specified event.\n * The listener will not be added if it is a duplicate.\n * If the listener returns true then it will be removed after it is called.\n * If you pass a regular expression as the event name then the listener will be added to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListener = function addListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var listenerIsWrapped = typeof listener === 'object';\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {\n listeners[key].push(listenerIsWrapped ? listener : {\n listener: listener,\n once: false\n });\n }\n }\n\n return this;\n };\n\n /**\n * Alias of addListener\n */\n proto.on = alias('addListener');\n\n /**\n * Semi-alias of addListener. It will add a listener that will be\n * automatically removed after its first execution.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addOnceListener = function addOnceListener(evt, listener) {\n return this.addListener(evt, {\n listener: listener,\n once: true\n });\n };\n\n /**\n * Alias of addOnceListener.\n */\n proto.once = alias('addOnceListener');\n\n /**\n * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.\n * You need to tell it what event names should be matched by a regex.\n *\n * @param {String} evt Name of the event to create.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvent = function defineEvent(evt) {\n this.getListeners(evt);\n return this;\n };\n\n /**\n * Uses defineEvent to define multiple events.\n *\n * @param {String[]} evts An array of event names to define.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvents = function defineEvents(evts) {\n for (var i = 0; i < evts.length; i += 1) {\n this.defineEvent(evts[i]);\n }\n return this;\n };\n\n /**\n * Removes a listener function from the specified event.\n * When passed a regular expression as the event name, it will remove the listener from all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to remove the listener from.\n * @param {Function} listener Method to remove from the event.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListener = function removeListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var index;\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key)) {\n index = indexOfListener(listeners[key], listener);\n\n if (index !== -1) {\n listeners[key].splice(index, 1);\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of removeListener\n */\n proto.off = alias('removeListener');\n\n /**\n * Adds listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.\n * You can also pass it a regular expression to add the array of listeners to all events that match it.\n * Yeah, this function does quite a bit. That's probably a bad thing.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListeners = function addListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(false, evt, listeners);\n };\n\n /**\n * Removes listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be removed.\n * You can also pass it a regular expression to remove the listeners from all events that match it.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListeners = function removeListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(true, evt, listeners);\n };\n\n /**\n * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.\n * The first argument will determine if the listeners are removed (true) or added (false).\n * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be added/removed.\n * You can also pass it a regular expression to manipulate the listeners of all events that match it.\n *\n * @param {Boolean} remove True if you want to remove listeners, false if you want to add.\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add/remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {\n var i;\n var value;\n var single = remove ? this.removeListener : this.addListener;\n var multiple = remove ? this.removeListeners : this.addListeners;\n\n // If evt is an object then pass each of its properties to this method\n if (typeof evt === 'object' && !(evt instanceof RegExp)) {\n for (i in evt) {\n if (evt.hasOwnProperty(i) && (value = evt[i])) {\n // Pass the single listener straight through to the singular method\n if (typeof value === 'function') {\n single.call(this, i, value);\n }\n else {\n // Otherwise pass back to the multiple function\n multiple.call(this, i, value);\n }\n }\n }\n }\n else {\n // So evt must be a string\n // And listeners must be an array of listeners\n // Loop over it and pass each one to the multiple method\n i = listeners.length;\n while (i--) {\n single.call(this, evt, listeners[i]);\n }\n }\n\n return this;\n };\n\n /**\n * Removes all listeners from a specified event.\n * If you do not specify an event then all listeners will be removed.\n * That means every event will be emptied.\n * You can also pass a regex to remove all events that match it.\n *\n * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeEvent = function removeEvent(evt) {\n var type = typeof evt;\n var events = this._getEvents();\n var key;\n\n // Remove different things depending on the state of evt\n if (type === 'string') {\n // Remove all listeners for the specified event\n delete events[evt];\n }\n else if (evt instanceof RegExp) {\n // Remove all events matching the regex.\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n delete events[key];\n }\n }\n }\n else {\n // Remove all listeners in all events\n delete this._events;\n }\n\n return this;\n };\n\n /**\n * Alias of removeEvent.\n *\n * Added to mirror the node API.\n */\n proto.removeAllListeners = alias('removeEvent');\n\n /**\n * Emits an event of your choice.\n * When emitted, every listener attached to that event will be executed.\n * If you pass the optional argument array then those arguments will be passed to every listener upon execution.\n * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.\n * So they will not arrive within the array on the other side, they will be separate.\n * You can also pass a regular expression to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {Array} [args] Optional array of arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emitEvent = function emitEvent(evt, args) {\n var listenersMap = this.getListenersAsObject(evt);\n var listeners;\n var listener;\n var i;\n var key;\n var response;\n\n for (key in listenersMap) {\n if (listenersMap.hasOwnProperty(key)) {\n listeners = listenersMap[key].slice(0);\n i = listeners.length;\n\n while (i--) {\n // If the listener returns true then it shall be removed from the event\n // The function is executed either with a basic call or an apply if there is an args array\n listener = listeners[i];\n\n if (listener.once === true) {\n this.removeListener(evt, listener.listener);\n }\n\n response = listener.listener.apply(this, args || []);\n\n if (response === this._getOnceReturnValue()) {\n this.removeListener(evt, listener.listener);\n }\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of emitEvent\n */\n proto.trigger = alias('emitEvent');\n\n /**\n * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.\n * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {...*} Optional additional arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emit = function emit(evt) {\n var args = Array.prototype.slice.call(arguments, 1);\n return this.emitEvent(evt, args);\n };\n\n /**\n * Sets the current value to check against when executing listeners. If a\n * listeners return value matches the one set here then it will be removed\n * after execution. This value defaults to true.\n *\n * @param {*} value The new value to check for when executing listeners.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.setOnceReturnValue = function setOnceReturnValue(value) {\n this._onceReturnValue = value;\n return this;\n };\n\n /**\n * Fetches the current value to check against when executing listeners. If\n * the listeners return value matches this one then it should be removed\n * automatically. It will return true by default.\n *\n * @return {*|Boolean} The current value to check for or the default, true.\n * @api private\n */\n proto._getOnceReturnValue = function _getOnceReturnValue() {\n if (this.hasOwnProperty('_onceReturnValue')) {\n return this._onceReturnValue;\n }\n else {\n return true;\n }\n };\n\n /**\n * Fetches the events object and creates one if required.\n *\n * @return {Object} The events storage object.\n * @api private\n */\n proto._getEvents = function _getEvents() {\n return this._events || (this._events = {});\n };\n\n /**\n * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.\n *\n * @return {Function} Non conflicting EventEmitter class.\n */\n EventEmitter.noConflict = function noConflict() {\n exports.EventEmitter = originalGlobalValue;\n return EventEmitter;\n };\n\n // Expose the class either via AMD, CommonJS or the global object\n if (typeof define === 'function' && define.amd) {\n define(function () {\n return EventEmitter;\n });\n }\n else if (typeof module === 'object' && module.exports){\n module.exports = EventEmitter;\n }\n else {\n exports.EventEmitter = EventEmitter;\n }\n}.call(this));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wolfy87-eventemitter/EventEmitter.js\n ** module id = 93\n ** module chunks = 0 1\n **/","/* global Node, NodeList, Element */\n\n/**\n * @type {string}\n */\nexport const ATTR_DATA_ORIGINAL_INDEX = 'data-original-index';\n/**\n * @type {string}\n */\nexport const DATA_IS_SELECTION = 'data-is-selection';\n/**\n * @type {string}\n */\nconst SERIALIZE_SEPARATOR = \";\";\n\nimport { ATTR_DATA_ORIGINAL_OFFSET_START } from '../Rendering';\n\n// polyfill for matchesSelector, IE 10/11 does not support Element.matches\nif (Element && !Element.prototype.matches) {\n const p = Element.prototype;\n p.matches = p.matchesSelector ||\n p.mozMatchesSelector || p.msMatchesSelector ||\n p.oMatchesSelector || p.webkitMatchesSelector;\n}\n\n/**\n * Utility class\n * Contains DOM/Node manipulation helpers\n */\nexport default\nclass Util {\n\n /**\n * Filter for a NodeList\n * @param {NodeList} nodes\n * @param {Function} func\n *\n * @returns {Array.}\n */\n static nodeListFilter(nodes, func) {\n return Array.prototype.filter.call(nodes || [], func);\n }\n\n\n /**\n * Generates a unique id\n *\n * @return {String}\n */\n static guid() {\n const s4 = () => {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n };\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n }\n\n /**\n * Checks if a given node is empty\n * @param {HTMLElement} node\n *\n * @returns {*}\n */\n static nodeIsEmpty(node) {\n return node.nodeValue.match(/^[\\s]*$/g);\n }\n\n\n /**\n * @param {HTMLElement} node\n * @param [optionalList]\n *\n * @return {int} the index of this node in context to it's siblings\n */\n static index(node, optionalList) {\n const children = optionalList || (node.nodeType === Node.TEXT_NODE ?\n node.parentNode.childNodes : node.parentNode.children);\n return Array.prototype.indexOf.call(children || [], node);\n }\n\n /**\n * Wraps given `elms` in given `wrapper`\n *\n * @param {HTMLElement|Array.|Node} elms\n * @param {HTMLElement|Node} wrapper\n *\n * @return {HTMLElement}\n */\n static wrap(elms, wrapper) {\n let thisElms = elms;\n\n if (!thisElms) {\n return wrapper;\n }\n // Convert `elms` to an array, if necessary.\n if (!(thisElms instanceof NodeList || thisElms instanceof Array)) {\n thisElms = [thisElms];\n }\n for (let i = thisElms.length - 1; i >= 0; i--) {\n const child = (i > 0) ? wrapper.cloneNode(true) : wrapper;\n const el = thisElms[i];\n // Cache the current parent and sibling.\n const parent = el.parentNode;\n const sibling = el.nextSibling;\n\n child.appendChild(el);\n if (sibling) {\n parent.insertBefore(child, sibling);\n } else {\n parent.appendChild(child);\n }\n }\n return wrapper;\n }\n\n /**\n * Will calculate an index depending on an already modified dom by marklib\n * @param {HTMLElement|Node} node\n *\n * @returns {int|boolean}\n */\n static calcIndex(node) {\n let calculatedIndex = 0;\n let foundWrapper = false;\n const nodes = node.parentNode.childNodes;\n const length = nodes.length;\n for (let thisIndex = 0; thisIndex < length; thisIndex++) {\n const el = nodes[thisIndex];\n if (el === node) {\n break;\n }\n // reset index when original index is found\n const maybeIndexOfOriginal = el.getAttribute ? el.getAttribute(ATTR_DATA_ORIGINAL_INDEX) : null;\n\n if (maybeIndexOfOriginal) {\n calculatedIndex = parseInt(maybeIndexOfOriginal, 10);\n foundWrapper = true;\n }\n calculatedIndex++;\n }\n return foundWrapper ? calculatedIndex : Util.index(node);\n }\n\n /**\n * @param {HTMLElement|Node} el\n * @param {String} [optionalSelector] will test given element against a selector\n * if matches, returns this element immediately\n *\n * @return {Array.} an array of all found parents of given element (and optional selector)\n */\n static parents(el, optionalSelector) {\n return Util.parentsCallback(el, (element) => {\n if (optionalSelector && ((element === optionalSelector) ||\n ((typeof optionalSelector === 'string') && element.matches &&\n element.matches(optionalSelector)))) {\n return true;\n } else if (!optionalSelector) {\n return true;\n }\n return false;\n });\n }\n\n /**\n * @param {HTMLElement|Node} el\n * @param {Function} callback\n * @return {Array.} an array of all found parents of given element (and optional selector)\n */\n static parentsCallback(el, callback) {\n let element = el;\n const foundElements = [];\n while (element.parentNode !== null) {\n element = element.parentNode;\n if (callback(element)) {\n foundElements.push(element);\n }\n }\n return foundElements;\n }\n\n /**\n * Finds a parent node (the closest) with a given selector\n * @param {Node} el\n * @param {String} selector\n *\n * @returns {Node|boolean}\n */\n static parent(el, selector) {\n let element = el;\n while (element.parentNode !== null) {\n element = element.parentNode;\n if (element.matches && element.matches(selector)) {\n return element;\n }\n }\n return false;\n }\n\n /**\n * Finds the closest element including itself matching a given selector\n * @param {Node} el\n * @param selector\n *\n * @returns {Node|boolean}\n */\n static closest(el, selector) {\n return Util.closestCallback(el, (element) => element.matches && element.matches(selector));\n }\n\n /**\n * Finds the closest element including itself matching a callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static closestCallback(el, callback) {\n let element = el;\n while (element !== null) {\n if (callback(element)) {\n return element;\n }\n element = element.parentNode;\n }\n return false;\n }\n\n /**\n * Finds the outermost fitting element that matches callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static outerMostCallback(el, callback) {\n let element = el;\n let lastValid = false;\n while (element !== null) {\n if (callback(element)) {\n lastValid = element;\n }\n element = element.parentNode;\n }\n return lastValid;\n }\n\n /**\n * @param {HTMLElement} n\n *\n * @return {boolean}\n */\n static isMarkNode(n) {\n return n instanceof HTMLElement && n.hasAttribute(DATA_IS_SELECTION);\n }\n\n /**\n * Determines the correct paths and excludes all `marklib` generated content\n * TODO: To improve performance we could shorten the path if an ID is present in it.\n * @param {HTMLElement|Node} el\n * @param {HTMLElement|Node} [context] if given extraction path is relative to this element\n * @returns {string}\n */\n static getPath(el, context) {\n let path = null;\n let node = el;\n\n const filterSiblings = (thisEl) => {\n return !Util.isMarkNode(thisEl) && thisEl.nodeName === node.nodeName;\n };\n\n while (node) {\n let name = null;\n // If node is a text-node, save index\n if (Node.TEXT_NODE === node.nodeType) {\n /* Because nodes may wrapped inside a highlighting node, we need to find the original index that was\n * valid before the dom changes. We store the last known index position inside all wrapper elements\n * We select the outermost\n */\n\n // Extract original index of this node:\n // Outer most data-original-index is original index\n const outerMostElement = Util.parents(node, '[' + ATTR_DATA_ORIGINAL_INDEX + ']').reverse()[0];\n // if element is not yet wrapped in span, recalculate index based on parent container:\n // We have to do this because text node indexes != element indexes...\n let calculatedIndex = 0;\n if (!outerMostElement) {\n calculatedIndex = Util.calcIndex(node);\n }\n const index = outerMostElement ? parseInt(\n outerMostElement.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10) : calculatedIndex;\n name = SERIALIZE_SEPARATOR + index;\n } else {\n name = node.nodeName;\n }\n\n if (!name) {\n break;\n }\n\n name = name.toLowerCase();\n\n const parent = node.parentNode;\n\n if (Util.isMarkNode(node)) {\n if (parent !== context) {\n node = parent;\n continue;\n } else {\n break;\n }\n }\n\n // Select only siblings that are not part of selection and are of the same type\n // (because we use nth-of-type selector later)\n const siblings = Util.nodeListFilter(parent.children, filterSiblings);\n const nodeIndex = Util.index(node, siblings);\n\n if (siblings.length > 1 && nodeIndex >= 0) {\n name += ':nth-of-type(' + (nodeIndex + 1) + ')';\n }\n\n path = name + (path ? '>' + path : '');\n\n\n if (parent === context) {\n break;\n }\n\n node = parent;\n }\n\n return path.replace(\"#document>\", \"\").replace('>;', ';');\n }\n\n /**\n * Will return the first original offset value that is found\n * @param {Node} element\n *\n * @returns {int}\n */\n static findOriginalOffset(element) {\n if (!element.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n return 0;\n }\n const lengthElement = Util.parent(element, '[' + ATTR_DATA_ORIGINAL_OFFSET_START + ']');\n return lengthElement ? parseInt(lengthElement.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) : 0;\n }\n\n\n /**\n * Deserialize a specific path and finds the right textNodes\n * This even works when DOM has been manipulated before by `marklib`\n * @param {string} path the serialized path (including offsets)\n * @param {Node|HTMLElement} context\n *\n * @return {Node}\n */\n static deserializePath(path, context) {\n const pSplit = path.split(';');\n const p = pSplit[0];\n const objectIndex = parseInt(pSplit[1], 10);\n const charOffset = parseInt(pSplit[2], 10);\n const container = !p.trim() ? context : context.querySelector(p);\n\n let maybeFoundNode = null;\n\n Util.walkTextNodes(container, (n) => {\n let atrOffsetStart = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START);\n atrOffsetStart = atrOffsetStart === null ? 0 : atrOffsetStart;\n let atrIndex = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_INDEX);\n atrIndex = atrIndex === null ? Util.calcIndex(n) : atrIndex;\n if (parseInt(atrIndex, 10) === objectIndex && charOffset >= atrOffsetStart &&\n ((parseInt(atrOffsetStart, 10) + n.length) >= charOffset)) {\n const thisOffset = n.parentNode\n .hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START) ? charOffset -\n parseInt(n.parentNode\n .getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) : charOffset;\n\n maybeFoundNode = {\n node: n,\n offset: thisOffset\n };\n\n return false;\n }\n return true;\n }, null);\n\n return maybeFoundNode;\n }\n\n\n /**\n * Walks the dom tree unless func returns false\n * Applies node to function\n *\n * @param {Node} node\n * @param {Function} func\n * @param {int} type, see `NodeFilter`\n * @param {Object} [filter] skips empty text nodes by default\n *\n * @returns {boolean} true if function did abort walk\n */\n static walkDom(node, func, type = NodeFilter.SHOW_ALL, filter = null) {\n if (!node) {\n return false;\n }\n const args = [node, type, filter || (() => true), false];\n args.push(false);\n const walker = document.createTreeWalker(...args);\n while (walker.nextNode()) {\n if (!func(walker.currentNode)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Extracts all TextNodes inside a container\n * @param {Node} el\n * @param {Function} func\n * @param {Object} [filter] skips empty text nodes by default\n * @returns {boolean} true if function did abort walk\n */\n static walkTextNodes(el, func, filter = (node) => !Util.nodeIsEmpty(node)) {\n return Util.walkDom(el, func, NodeFilter.SHOW_TEXT, filter);\n }\n\n /**\n * @param {Node} container\n * @param {Number} thisIndex\n * @returns {int|string} index of parent or original\n */\n static getIndexParentIfHas(container, thisIndex) {\n const p = container.parentNode;\n const index = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10);\n return index > thisIndex ? index : thisIndex;\n }\n\n /**\n * @param container\n * @returns {int} offset start of parent if has, else 0\n */\n static getOffsetParentIfHas(container) {\n const p = container.parentNode;\n const offset = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10);\n return offset > 0 ? offset : 0;\n }\n\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/util/Util.js\n **/","/* global localStorage, document */\n\nimport Marklib from 'modules/Marklib';\nimport { Tooltip } from 'flexcss';\n\nconst KEY_ENTER = 13;\n\n/**\n * Contains Module for the demonstration\n */\n\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n const STORAGE_KEY = 'savedRanges';\n const ANIMATIONEND = 'animationend';\n let allRanges = [];\n const tooltip = new Tooltip(document.body);\n\n /**\n * Creates an animated rendering\n */\n function presentRendering(selector, classNames, speed) {\n const text = document.getElementById(selector).childNodes[0];\n const thisLength = text.length;\n\n const render = (autoMarkText, cp, length) => {\n let c = cp;\n const r = new Marklib.Rendering(document, {\n className: classNames\n });\n const range = document.createRange();\n range.setStart(autoMarkText, 0);\n range.setEnd(autoMarkText, 1);\n r.renderWithRange(range);\n if (autoMarkText.parentNode.nextSibling) {\n const nextText = autoMarkText.parentNode.nextSibling.childNodes[0];\n setTimeout(() => {\n render(nextText, ++c, length);\n }, speed);\n }\n };\n\n return render(text, 0, thisLength);\n }\n\n presentRendering('automark', 'fadeInDown', 20);\n\n let savedRanges = JSON.parse(localStorage.getItem(STORAGE_KEY)) || [];\n let animated = false;\n\n /**\n * OnClick event for renderings\n */\n function onClick() {\n const self = this;\n this.wrapperNodes.forEach((n) => {\n n.addEventListener(ANIMATIONEND, function thisFunction(e) {\n e.target.classList.remove('bubble');\n e.target.removeEventListener(ANIMATIONEND, thisFunction);\n });\n n.classList.add('bubble');\n });\n\n if (tooltip.getCurrentTarget() === this.wrapperNodes[0]) {\n return;\n }\n\n tooltip.createTooltip(this.wrapperNodes[0], this.result.text, false);\n\n setTimeout(() => {\n if (tooltip.getCurrentTarget()) {\n document.addEventListener('click', function thisFunction() {\n if (tooltip.getCurrentTarget() && tooltip.getCurrentTarget() === self.wrapperNodes[0]) {\n tooltip.removeTooltip();\n }\n document.removeEventListener('click', thisFunction);\n });\n }\n }, 0);\n }\n\n\n savedRanges.forEach((range) => {\n const marker = new Marklib.Rendering(document);\n try {\n marker.renderWithResult(range);\n allRanges.push(marker);\n marker.on('click', onClick);\n } catch (e) {\n console.warn(\"Could not render:\", range, e);\n localStorage.setItem(STORAGE_KEY, JSON.stringify([]));\n console.error('Cleared local storage because of a rendering issue, the page might have been changed ;)');\n }\n });\n\n window.addEventListener('scroll', () => {\n const el = document.getElementById('secondParagraph');\n const r = el.getBoundingClientRect();\n const html = document.documentElement;\n if (r.top <= html.clientHeight && r.bottom >= 0 && !animated) {\n animated = true;\n\n el.classList.add('animate');\n if (!savedRanges.length) {\n presentRendering('secondParagraphItem', 'marking', 30);\n }\n }\n });\n\n const actionMark = () => {\n try {\n const selection = document.getSelection();\n const renderer = new Marklib.Rendering(document);\n const result = renderer.renderWithRange(selection.getRangeAt(0));\n\n renderer.on('click', onClick);\n allRanges.push(renderer);\n\n selection.removeAllRanges();\n savedRanges.push(result.serialize());\n localStorage.setItem(STORAGE_KEY, JSON.stringify(savedRanges));\n } catch (e) {\n console.warn(\"Could not add selection: \", e);\n }\n };\n\n document.addEventListener(\"keydown\", (e) => {\n if (e.keyCode === KEY_ENTER) {\n actionMark();\n }\n });\n\n document.addEventListener(\"click\", (e) => {\n if (e.target.id === 'action-mark') {\n return actionMark();\n } else if (e.target.id === 'action-clear') {\n allRanges.forEach((range) => range.destroy());\n savedRanges = [];\n allRanges = [];\n localStorage.setItem(STORAGE_KEY, JSON.stringify([]));\n }\n });\n});\n\nexport default Marklib;\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/modules/Site.js\n **/","module.exports = { \"default\": require(\"core-js/library/fn/json/stringify\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/json/stringify.js\n ** module id = 96\n ** module chunks = 1\n **/","var core = require('../../modules/$.core');\nmodule.exports = function stringify(it){ // eslint-disable-line no-unused-vars\n return (core.JSON && core.JSON.stringify || JSON.stringify).apply(JSON, arguments);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/json/stringify.js\n ** module id = 97\n ** module chunks = 1\n **/","import Form from '../Form';\nimport Tooltip from '../Tooltip';\nimport Modal from '../Modal';\nimport Widget from '../Widget';\nimport Settings from '../util/Settings';\nimport Toggleable from '../Toggleable';\nimport OffCanvas from '../OffCanvas';\nimport Dropdown from '../Dropdown';\nimport LightBox from '../LightBox';\nimport Util from '../util/Util';\n\nexport { Form, Tooltip, Modal, Widget, Settings, Util, Toggleable, OffCanvas, Dropdown, LightBox };\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/modules/All.js\n **/","/*global HTMLFormElement, fetch, FormData, clearTimeout, NodeList*/\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Form\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n'use strict';\n\nimport Tooltip from './Tooltip';\nimport 'isomorphic-fetch';\nimport Event from './util/Event';\nimport Util from './util/Util';\nimport Settings from './util/Settings';\nimport DestroyableWidget from './DestroyableWidget';\n\nconst LOADING_CLASS = 'loading';\nconst DATA_ELEMENT_INVALID = 'data-flexcss-invalid';\nconst REMOTE = 'data-remote';\nconst REMOTE_ACTION = 'data-remote-action';\nconst ATTR_DISABLE_INLINE = 'data-disable-inline-validation';\nconst ATTR_DISABLE_REALTIME = 'data-disable-realtime-validation';\nconst ATTR_VALIDATOR = 'data-validate';\nconst ATTR_DATA_CUSTOM_MESSAGE = 'data-validation-message';\nconst ATTR_DATA_CUSTOM_LABEL = 'data-custom-label';\nconst ATTR_VALIDATE_VISIBILITY = 'data-validate-visibility';\nconst ATTR_ERROR_TARGET_ID = 'data-error-target';\nconst ATTR_DEPENDS = 'data-depends-selector';\nconst CONST_USE_JSON = 'json';\nconst CONST_REALTIME_EVENT = 'input';\nconst FOCUS_TOOLTIP_DELAY = 20;\nconst CLICK_TOOLTIP_DELAY = 150;\n\n/**\n * Triggered when form is fully initialized and handlers are binded\n * @type {string}\n */\nexport const EVENT_FORM_READY = 'flexcss.form.ready';\n/**\n * Fires when a form is submitted, cancelable\n * @type {string}\n */\nexport const EVENT_FORM_SUBMIT = 'flexcss.form.submit';\n/**\n * Fired directly after the form has been submitted via ajax\n * @type {string}\n */\nexport const EVENT_FORM_AFTER_AJAX_SUBMIT = 'flexcss.form.afterAjaxSubmit';\n/**\n * Fired when ajax events did complete\n * @type {string}\n */\nexport const EVENT_FORM_AJAX_COMPLETED = 'flexcss.form.ajaxCompleted';\n\n/**\n * A HTML5 Form Validation replacement\n */\n\nclass Form extends DestroyableWidget {\n /**\n * @param {HTMLElement} form\n * @param [options] optional options\n */\n constructor(form, options) {\n super();\n\n if (!(form instanceof HTMLFormElement)) {\n throw 'argument {0} form needs to be an form element';\n }\n\n /**\n * The Form\n * @type {HTMLElement}\n */\n this.form = form;\n\n /**\n * @type {Tooltip}\n */\n this.tooltips = null;\n\n /**\n * @type {Promise}\n */\n this.currentValidationFuture = new Promise(() => {\n });\n\n /**\n * Default options\n * @type {Object}\n */\n this.options = {\n // if true creates tooltips above element, uses FlexCss Tooltips\n createTooltips: true,\n // if true appends error message after input element\n appendError: false,\n // type of ajax submit\n ajaxSubmitType: 'POST',\n // json content type if ajax method is set to json\n ajaxJsonContentType: 'application/json; charset=utf-8',\n // allow inline validation\n inlineValidation: true,\n // validate in realtime (on `input` event)\n realtime: true,\n // timeout when realtime event should be captured\n realtimeTimeout: 250,\n // formatting method for an error\n formatErrorTooltip: (error) => {\n return ' ' + error;\n },\n // the class that will be put on the element to mark it failed validation\n inputErrorClass: 'invalid',\n // the container class for error messages below an element\n containerErrorClass: 'form-error',\n // additional options for fetch\n fetchOptions: {\n credentials: 'include'\n },\n // the container for tooltips\n tooltipContainer: form,\n tooltipOptions: {\n containerClass: 'error-tooltip'\n },\n // if you have a fixed header, either set a number or function here\n scrollToElementDiff: 0\n };\n\n // overwrite default options\n Object.assign(this.options, options);\n\n // apply settings from attributes\n Util.applyOptionsFromElement(form, this.options);\n\n // set form class as widget\n // Forms are very different to classical widgets,\n // we will not use our base widget class for this but just self\n form.hfWidgetInstance = this;\n\n /**\n * A List of Validators\n * @type {Object}\n * @private\n */\n this._validators = Form.globalValidators;\n\n /**\n * @type {Function}\n * @private\n */\n this._remoteValidationFunction = null;\n\n this.initFormValidation();\n }\n\n destroy() {\n super.destroy();\n if (this.tooltips) {\n this.tooltips.destroy();\n }\n }\n\n /**\n * Submits this form, either via ajax or just classical (default)\n * @param {HTMLFormElement} thisForm\n * @param {Event} e\n * @private\n * @returns {Promise|boolean} returns false if submit is cancled\n */\n _submitFunction(thisForm, e) {\n var shouldUseAjax = thisForm.getAttribute(REMOTE), ajaxPostUrl =\n thisForm.getAttribute(REMOTE_ACTION) ||\n thisForm.getAttribute('action') || window.location.href,\n useJson = CONST_USE_JSON === shouldUseAjax, self = this;\n\n var ev = Event.dispatch(thisForm, EVENT_FORM_SUBMIT).withOriginal(e).fire();\n\n // abort execution is event was prevented\n if (ev.defaultPrevented) {\n self._formStopLoading();\n return false;\n }\n\n if (shouldUseAjax === null) {\n // submit\n return thisForm.submit();\n }\n // prevent form from submit normally\n e.preventDefault();\n\n // add information that this is an XMLHttpRequest request (used by some frameworks)\n let defaultHeaders = {\n 'X-Requested-With': 'XMLHttpRequest'\n };\n\n // setup default headers\n if (useJson) {\n Object.assign(defaultHeaders, {\n 'Content-Type': this.options.ajaxJsonContentType\n });\n }\n let defaultOptions = Object.assign(this.options.fetchOptions, {\n headers: defaultHeaders,\n method: this.options.ajaxSubmitType\n });\n\n // support either JSON request payload or normal payload submission\n var serverCall = useJson ? fetch(ajaxPostUrl, Object.assign(defaultOptions, {\n body: JSON.stringify(this.serialize())\n })) : fetch(ajaxPostUrl, Object.assign(defaultOptions, {\n body: new FormData(thisForm)\n }));\n\n Event.dispatch(thisForm, EVENT_FORM_AFTER_AJAX_SUBMIT).withOriginal(e).fire();\n\n return serverCall.then((r) => {\n (self._remoteValidationFunction || Form.globalRemoteValidationFunction).apply(self, [r]);\n\n Event.dispatch(thisForm, EVENT_FORM_AJAX_COMPLETED).withOriginal(e).withDetail({ response: r }).fire();\n // always remove error class\n self._formStopLoading();\n });\n }\n\n /**\n * Serializes a form to a json object\n * @returns {Object}\n */\n serialize() {\n var selectors = [\n 'input[name]:not([type=\"radio\"]):enabled',\n 'input[type=\"radio\"][name]:checked',\n 'select[name]:enabled',\n 'textarea[name]:enabled'\n ], inputs = this.form.querySelectorAll(selectors.join(',')), result = {};\n\n Array.prototype.forEach.call(inputs, function (input) {\n var exists = result[input.name], value = input.value;\n if (exists instanceof Array) {\n exists.push(value);\n } else if (exists) {\n result[input.name] = [result[input.name], value];\n } else {\n result[input.name] = value;\n }\n });\n\n return result;\n }\n\n /**\n * Handles the chain of validation on given fields\n *\n * @param {HTMLElement|Array|NodeList} field\n * @param [focus] optional focus first error\n * @returns {Promise}\n */\n handleValidation(field, focus) {\n var fields = (field instanceof Array || field instanceof NodeList) ? field : [field];\n return this._handleValidation(fields, focus, true).then(((r) => {\n if (!r.foundAnyError) {\n // remove tooltips\n if (this.tooltips) {\n this.tooltips.removeTooltip();\n }\n }\n return r;\n }).bind(this));\n }\n\n /**\n * Handles errors on given node list\n * @param {NodeList} toValidateFields\n * @param {boolean} focus\n * @param {boolean} scoped if true, will only validate the fields `invalidFields`\n * @returns {Promise}\n * @private\n */\n _handleValidation(toValidateFields, focus, scoped) {\n var self = this;\n var arr = Form._createArrayFromInvalidFieldList(toValidateFields), isLocalInvalid = arr.length > 0;\n // focus must appear in the same frame for iOS devices\n if (isLocalInvalid && focus) {\n self._focusElement(arr[0]);\n }\n var validation = scoped ? this._customValidationsForElements(toValidateFields) :\n self.validateCustomFields();\n return validation.then((r) => {\n if (isLocalInvalid) {\n // combine browser and custom validators\n r.foundAnyError = true;\n }\n // get a unique field list of all fields that need to be checked and rendered\n // it's possible that we have duplicates in non scoped mode\n let thisToValidateFields = scoped ? toValidateFields :\n Array.from(arr).concat(r.checkedFields);\n r.checkedFields = thisToValidateFields;\n let foundInvalidFields = self.prepareErrors(thisToValidateFields, false),\n firstInvalidField = foundInvalidFields[0];\n if (firstInvalidField) {\n if (focus) {\n self._focusElement(firstInvalidField);\n // if element could not be focused:\n if (document.activeElement !== firstInvalidField) {\n self._handleTooltipHideClickAfterChange();\n }\n } else {\n self._handleTooltipHideClickAfterChange();\n }\n self.showAndOrCreateTooltip(firstInvalidField);\n }\n return r;\n });\n }\n\n /**\n * @param {HTMLElement} field\n * @param {ValidityState} validity\n * @returns {*}\n * @private\n */\n\n _setupErrorMessages(field, validity) {\n return Form.globalErrorMessageHandler ?\n Form.globalErrorMessageHandler.apply(this, [field, validity]) : false;\n }\n\n /**\n * Handles class labels for elements\n * @param {Object} fields\n * @private\n */\n _handleLabels(fields) {\n Object.keys(fields).forEach(function (id) {\n let labels = this.getForm().querySelectorAll('[for=\"' + id + '\"]'), invalid = fields[id];\n if (labels.length) {\n for (let labelsIndex = 0; labelsIndex < labels.length; labelsIndex++) {\n let labelEl = labels[labelsIndex];\n // we can't use toggle attribute, not supported in IE\n if (invalid) {\n this._markElementInvalid(labelEl);\n } else {\n this._markElementValid(labelEl);\n }\n }\n }\n }.bind(this));\n }\n\n /**\n * @param el\n * @private\n */\n _markElementInvalid(el) {\n el.setAttribute(DATA_ELEMENT_INVALID, \"true\");\n el.classList.add(this.options.inputErrorClass);\n }\n\n /**\n * @param el\n * @private\n */\n _markElementValid(el) {\n el.removeAttribute(DATA_ELEMENT_INVALID);\n el.classList.remove(this.options.inputErrorClass);\n }\n\n /**\n * A List of invalid elements (:invalid)\n * @returns {Array}\n * @private\n */\n _getInvalidElements() {\n return Array.prototype.filter.call(this.getForm().querySelectorAll(\":invalid\"), function (r) {\n return !(r instanceof HTMLFieldSetElement);\n });\n }\n\n /**\n * @param {HTMLElement} thisParent\n * @private\n */\n _removeElementErrors(thisParent) {\n let errors = thisParent.querySelectorAll('.' + this.options.containerErrorClass), inputsWithErrorClasses =\n thisParent.querySelectorAll(`[${DATA_ELEMENT_INVALID}]`);\n for (let elementErrorIndex = 0; elementErrorIndex < errors.length; elementErrorIndex++) {\n errors[elementErrorIndex].parentNode.removeChild(errors[elementErrorIndex]);\n }\n for (let inputErrorIndex = 0; inputErrorIndex < inputsWithErrorClasses.length; inputErrorIndex++) {\n let el = inputsWithErrorClasses[inputErrorIndex];\n this._markElementValid(el);\n }\n }\n\n\n /**\n * Registers a custom validator\n * @param {String} name\n * @param {Function} validator a validation function should always return either a Future(true) or Future(false)\n * even when the field has been invalidated with `setCustomValidity`, because of different browser `bugs`\n * we can't rely on that\n * @returns {Form}\n */\n registerValidator(name, validator) {\n this._validators[name] = validator;\n return this;\n }\n\n /**\n * Runs async validation\n * @param {String} validationRef\n * @param {HTMLElement} field\n * @returns {Promise}\n * @private\n */\n _runValidation(validationRef, field) {\n if (!this._validators[validationRef]) {\n throw 'Could not found validator: ' + validationRef;\n }\n var cl = field.classList, future = this._validators[validationRef].apply(this, [field, this.form]);\n cl.add(LOADING_CLASS);\n future.then(() => {\n cl.remove(LOADING_CLASS);\n });\n return future;\n }\n\n\n /**\n * Run custom validations for elements, validations are done async do support XHR Requests or other stuff\n *\n * @param {Array|NodeList} fields\n * @returns {Promise} contains either true if validations passed or false if something went wrong\n * @private\n */\n _customValidationsForElements(fields) {\n var futures = [], fieldsLength = fields.length, checkedFields = [];\n for (var iVal = 0; iVal < fieldsLength; iVal++) {\n var field = fields[iVal], validationRef = field.getAttribute(ATTR_VALIDATOR), validity = field.validity;\n if (this._validators[validationRef]) {\n // use local validation first and then continue with custom validations\n if (Form._shouldNotValidateField(field) || (validity && !validity.customError && !validity.valid)) {\n continue;\n }\n checkedFields.push(field);\n futures.push(this._runValidation(validationRef, field));\n } else {\n if (validationRef) {\n console.warn('data-validate was set but no validator was found');\n }\n }\n }\n return Promise.all(futures).then(function (allFutures) {\n let l = allFutures.length;\n let result = {\n checkedFields: checkedFields,\n foundAnyError: false\n };\n for (var fI = 0; fI < l; fI++) {\n if (!allFutures[fI]) {\n result.foundAnyError = true;\n break;\n }\n }\n return result;\n });\n }\n\n /**\n * Remove all errors for this form\n * @returns {Form}\n */\n removeErrors() {\n this._removeElementErrors(this.form);\n if (this.tooltips) {\n this.tooltips.removeTooltip();\n }\n return this;\n }\n\n /**\n * Will handle errors for given fields\n * @param {Array|NodeList} fields\n * @param {Boolean} removeAllErrors\n */\n prepareErrors(fields, removeAllErrors) {\n if (removeAllErrors) {\n this.removeErrors();\n }\n let labelGroups = {}, invalidFields = [];\n\n function handleAdditionalLabels(isInvalid, thisLabelGroup, field) {\n let additionalLabels = field.getAttribute(ATTR_DATA_CUSTOM_LABEL) ||\n field.id, group = thisLabelGroup[additionalLabels];\n if (additionalLabels) {\n // check additionally if field is currently marked as invalid\n // so the label is not marked as error if no field is marked as one\n group = group ? group : isInvalid;\n thisLabelGroup[additionalLabels] = group;\n }\n }\n\n // We save all validations in an extra property because we need to reset the validity due some\n // implementation errors in other browsers then chrome\n for (let i = 0; i < fields.length; i++) {\n let field = fields[i], errorTarget = Form._findErrorTarget(field), parent = errorTarget.parentNode,\n validity = field.validity, isInvalid = validity && !validity.valid;\n if (Form._shouldNotValidateField(field)) {\n continue;\n }\n field.flexFormsSavedValidity = JSON.parse(JSON.stringify(validity));\n handleAdditionalLabels(isInvalid, labelGroups, field);\n if (isInvalid) {\n if (!removeAllErrors) {\n // Remove current errors:\n this._removeElementErrors(parent);\n }\n // setup custom error messages:\n this._setupErrorMessages(field, validity);\n let msg = field.validationMessage;\n\n // mark fields as invalid\n this._markElementInvalid(errorTarget);\n this._markElementInvalid(field);\n\n if (this.options.appendError) {\n parent.insertAdjacentHTML(\"beforeend\",\n `
${msg}
`);\n }\n invalidFields.push(field);\n field.flexFormsSavedValidationMessage = msg;\n } else {\n // restore invalid fields\n this._markElementValid(errorTarget);\n this._markElementValid(field);\n\n // cleanup\n delete field.flexFormsSavedValidationMessage;\n\n // remove error markup\n this._removeElementErrors(parent);\n }\n // We have to reset the custom validity here to allow native validations work again\n field.setCustomValidity('');\n }\n // if validates a single field we need to check the linked fields to a label:\n if (fields.length === 1) {\n let field = fields[0];\n let id = field.getAttribute(ATTR_DATA_CUSTOM_LABEL) || field.id;\n if (id) {\n let linkedFields = Array.from(\n this.getForm().querySelectorAll(`[${ATTR_DATA_CUSTOM_LABEL}=\"${id}\"], #${id}`));\n linkedFields.forEach(function (thisField) {\n let validity = thisField.validity, isInvalid = validity && !validity.valid &&\n this._isElementInvalidElement(thisField);\n handleAdditionalLabels(isInvalid, labelGroups, thisField);\n }.bind(this));\n }\n }\n this._handleLabels(labelGroups);\n return invalidFields;\n }\n\n /**\n * Validates all custom fields\n * @returns {Promise}\n */\n validateCustomFields() {\n return this._customValidationsForElements(\n this.form.querySelectorAll(\"[data-validate]\"));\n }\n\n /**\n * Tests if a field should be validated\n * @param {HTMLElement} field\n * @returns {boolean}\n * @private\n */\n static _shouldNotValidateField(field) {\n var target = Form._findErrorTarget(field);\n return target instanceof HTMLFieldSetElement || field.validity === undefined ||\n (target.hasAttribute(ATTR_VALIDATE_VISIBILITY) && !Util.isVisible(target));\n }\n\n /**\n * Creates an array from a node list with invalid items\n * This Method expicitly checks if field should not be validated so it can be used to foucs a field\n * @param list\n * @returns {Array}\n * @private\n */\n static _createArrayFromInvalidFieldList(list) {\n var arr = [];\n for (var i = 0; i < list.length; ++i) {\n var n = list[i];\n if (n.validity && !n.validity.valid) {\n if (!Form._shouldNotValidateField(n)) {\n arr.push(n);\n }\n }\n }\n return arr;\n }\n\n\n /**\n * This form\n * @returns {HTMLElement}\n */\n getForm() {\n return this.form;\n }\n\n /**\n * Registers a function that handles remote validation\n * @param {Function} func\n * @returns {Form}\n */\n registerRemoteValidation(func) {\n this._remoteValidationFunction = func;\n return this;\n }\n\n\n /**\n * Formats the error content for the tooltip\n * @param {String} error\n * @returns {String}\n * @private\n */\n _formatErrorTooltip(error) {\n return this.options.formatErrorTooltip.apply(this, [error]);\n }\n\n /**\n * Tries to find a custom error target on given target\n * @param target\n * @returns {HTMLElement}\n * @private\n */\n static _findErrorTarget(target) {\n var el = target.getAttribute(ATTR_ERROR_TARGET_ID) || target,\n foundTarget = el instanceof HTMLElement ? el : global.document.getElementById(el);\n if (!foundTarget) {\n throw 'Given error target did not exsits:' + target;\n }\n return foundTarget;\n }\n\n /**\n * Creates a tooltip at given element, will only create a new instance if not created\n * @param {HTMLElement} target\n * @param {Boolean} [remove]\n */\n showAndOrCreateTooltip(target, remove) {\n var self = this;\n if (!this.tooltips && this.options.createTooltips) {\n this.tooltips = new Tooltip(this.options.tooltipContainer, this.options.tooltipOptions);\n }\n if (!this.options.createTooltips) {\n return false;\n }\n\n if (!target.flexFormsSavedValidity) {\n return false;\n }\n var errorTarget = Form._findErrorTarget(target);\n if (!target.flexFormsSavedValidity.valid && self._isElementInvalidElement(errorTarget)) {\n self.tooltips.createTooltip(errorTarget,\n self._formatErrorTooltip(target.flexFormsSavedValidationMessage), false);\n return true;\n } else {\n if (remove) {\n self.tooltips.removeTooltip();\n }\n }\n return false;\n }\n\n /**\n * Checks if element is marked as invalid\n * @param {HTMLElement} el\n * @returns {boolean}\n * @private\n */\n _isElementInvalidElement(el) {\n return el.hasAttribute(DATA_ELEMENT_INVALID);\n }\n\n /**\n * Handles invalid event of a form\n * @param {Event} e\n * @returns {Promise|boolean}\n * @private\n */\n _checkIsInvalid(e) {\n e.preventDefault();\n var invalidFields = this.getForm().querySelectorAll(\":invalid\");\n return this._handleValidation(invalidFields, true, false);\n }\n\n /**\n * Will query dependent fields (by selector) that should be validated with given field\n * @param field\n * @returns {NodeList|[]}\n * @private\n */\n _getDependentFields(field) {\n let fieldSelector = field.getAttribute(ATTR_DEPENDS), base = [field];\n if (fieldSelector) {\n base.push.apply(base, Array.prototype.slice.apply(\n this.getForm().querySelectorAll(fieldSelector)));\n }\n return base;\n }\n\n /**\n * @private\n * @param {HTMLElement} [target]\n */\n _handleTooltipInline(target) {\n if (this.tooltips) {\n this.tooltips.removeTooltip(target);\n }\n }\n\n /**\n * Initializes validation for a given form, registers event handlers\n */\n initFormValidation() {\n // Suppress the default bubbles\n var form = this.getForm(),\n self = this,\n invalidEvent = 'invalid';\n\n /**\n * Validates if is valid realtime element\n * @param {HTMLElement} target\n * @returns {boolean}\n * @private\n */\n function _checkIsValidRealtimeElement(target) {\n return !target.hasAttribute(ATTR_DISABLE_REALTIME) && !target.hasAttribute(ATTR_DISABLE_INLINE);\n }\n\n form.addEventListener(invalidEvent, function (e) {\n e.preventDefault();\n }, true);\n\n Util.addEventOnce(invalidEvent, form, function handleInvalid(e) {\n self._formLoading();\n var result = self._checkIsInvalid(e);\n if (result) {\n self.currentValidationFuture = new Promise((resolve) => {\n result.then(function (r) {\n setTimeout(function () {\n Util.addEventOnce(invalidEvent, form, handleInvalid, true);\n }, 0);\n resolve(r);\n self._formStopLoading();\n if (!r.foundAnyError) {\n self._formLoading();\n self._handleSubmit(e);\n }\n });\n });\n }\n }, true);\n\n this.addEventListener(form, 'reset', () => {\n this.removeErrors();\n });\n\n // Timeout for keys:\n var TIMEOUT_KEYDOWN, KEYDOWN_RUNNING = false;\n\n // resets keydown events\n function clearKeyDownTimeout() {\n KEYDOWN_RUNNING = false;\n clearTimeout(TIMEOUT_KEYDOWN);\n }\n\n // setup custom realtime event if given\n if (self.options.realtime) {\n this.addEventListener(form, CONST_REALTIME_EVENT, function (e) {\n if (self._formIsLoading()) {\n return;\n }\n var target = e.target;\n clearTimeout(TIMEOUT_KEYDOWN);\n if (KEYDOWN_RUNNING) {\n return;\n }\n TIMEOUT_KEYDOWN = setTimeout(() => {\n let isStillTarget = document.activeElement === e.target;\n if (!_checkIsValidRealtimeElement(target)) {\n return;\n }\n if (isStillTarget) {\n self._handleTooltipInline();\n }\n KEYDOWN_RUNNING = true;\n let dependentFields = self._getDependentFields(target);\n self._customValidationsForElements(dependentFields).then(function () {\n self.prepareErrors(dependentFields, false);\n if (isStillTarget) {\n self.showAndOrCreateTooltip(e.target);\n }\n // future must be resolved before another event can be started\n KEYDOWN_RUNNING = false;\n });\n }, self.options.realtimeTimeout);\n }, true);\n }\n\n /**\n * Validates if target is a valid input field to check blur and focus events\n *\n * @param {HTMLElement} target\n * @returns {boolean}\n * @private\n */\n function _checkIsValidBlurFocusElement(target) {\n let attr = target.getAttribute(\"type\");\n return (attr !== \"radio\" && attr !== \"checkbox\" && attr !== \"submit\");\n }\n\n /**\n * Validates if is valid inline-check element\n * @param {HTMLElement} target\n * @returns {boolean}\n * @private\n */\n function _checkIsValidInlineCheckElement(target) {\n return !target.hasAttribute(ATTR_DISABLE_INLINE);\n }\n\n this.addEventListener(form, 'blur', function (e) {\n // do not hide tooltip after change event\n if (!e.target.flexcssKeepTooltips) {\n self._handleTooltipInline(e.target);\n }\n delete e.target.flexcssKeepTooltips;\n }, true);\n\n // handle focus on input elements\n // will show an error if field is invalid\n this.addEventListener(form, \"focus\", function (e) {\n if (self._formIsLoading()) {\n return;\n }\n // do not track errors for checkbox and radios on focus:\n if (!_checkIsValidBlurFocusElement(e.target)) {\n return;\n }\n // we need to delay this a little, because Firefox and Safari do not show a tooltip after it\n // just have been hidden (on blur). Maybe fix this with a queue later\n setTimeout(function () {\n self.showAndOrCreateTooltip(e.target);\n }, FOCUS_TOOLTIP_DELAY);\n }, true);\n\n if (self.options.inlineValidation) {\n // Handle change for checkbox, radios and selects\n this.addEventListener(form, \"change\", function (e) {\n const target = e.target;\n if (self._formIsLoading() || !_checkIsValidInlineCheckElement(target)) {\n return;\n }\n clearKeyDownTimeout();\n const name = target.getAttribute('name');\n let inputs = name ? form.querySelectorAll('[name=\"' + name + '\"]') : [target];\n // we only support dependent fields for a single widgets right now\n if (inputs.length === 1) {\n inputs = self._getDependentFields(target);\n }\n self._customValidationsForElements(inputs).then(function () {\n self.prepareErrors(inputs, false);\n target.flexcssKeepTooltips = self.showAndOrCreateTooltip(target, true);\n if (target.flexcssKeepTooltips) {\n self._handleTooltipHideClickAfterChange();\n }\n });\n });\n }\n\n // prevent default if form is invalid\n this.addEventListener(form, \"submit\", function listener(e) {\n self._submitListener(e, listener);\n });\n\n Event.dispatchAndFire(form, EVENT_FORM_READY);\n }\n\n /* Loading states, unfortunately we can't check if a promise is pending :/*/\n /* TODO: Maybe wrap promise to extend this functionality */\n\n _formLoading() {\n this.getForm().classList.add(LOADING_CLASS);\n }\n\n _formStopLoading() {\n this.getForm().classList.remove(LOADING_CLASS);\n }\n\n _formIsLoading() {\n return this.getForm().classList.contains(LOADING_CLASS);\n }\n\n // this defines the logic after a change event when a tooltip is shown\n // because we call this method inside the change event, the click would be immeditally executed with the change\n // event when not using setTimeout(). There might be another solution for this...\n _handleTooltipHideClickAfterChange() {\n const self = this;\n if (this.options.createTooltips) {\n setTimeout(function () {\n Util.addEventOnce(Settings.getTabEvent(), global.document.body, function (t) {\n if (!self._isElementInvalidElement(t.target)) {\n self._handleTooltipInline();\n }\n });\n }, CLICK_TOOLTIP_DELAY);\n }\n }\n\n _focusElement(el) {\n el.focus();\n Util.scrollToElement(el, this.options.scrollToElementDiff);\n }\n\n /**\n * Listener that is executed on form submit\n * @param e\n * @param submitListener\n * @returns {boolean}\n * @private\n */\n _submitListener(e, submitListener) {\n\n const form = this.getForm(),\n self = this,\n submitEvent = 'submit';\n\n if (this._formIsLoading()) {\n e.preventDefault();\n return false;\n }\n this._formLoading();\n form.removeEventListener(submitEvent, submitListener);\n this.removeErrors();\n e.preventDefault();\n // reset:\n if (form.checkValidity()) {\n form.addEventListener(submitEvent, submitListener);\n // It's possible that the form is valid but the custom validations need to be checked again:\n self.currentValidationFuture = new Promise((resolve) => {\n var validation = self.validateCustomFields();\n validation.then(function (r) {\n // because custom validators may mark multiple fields as invalid, we get all of them in the form\n var fields = self._getInvalidElements(),\n errors = self.prepareErrors(fields, false), firstError = errors[0];\n if (firstError) {\n self._focusElement(firstError);\n self.showAndOrCreateTooltip(firstError, true);\n }\n resolve(r);\n });\n });\n self.currentValidationFuture.then(function (r) {\n if (!r.foundAnyError) {\n // Handle submitting the form to server:\n self._handleSubmit(e);\n } else {\n self._formStopLoading();\n }\n });\n } else {\n self._formStopLoading();\n form.addEventListener(submitEvent, submitListener);\n }\n }\n\n\n /**\n * Handles submitting, optionally allows to stop submitting\n * @param e\n * @private\n */\n _handleSubmit(e) {\n this._submitFunction(this.form, e);\n }\n\n\n /**\n * Registers a global event Handler\n * @param errorFunc\n */\n static registerErrorMessageHandler(errorFunc) {\n Form.globalErrorMessageHandler = errorFunc;\n }\n\n /**\n * Initialize forms for a specific selector\n * @param {String} selector\n * @param {Object} [options]\n * @return {array.
}\n */\n static init(selector, options) {\n var forms = selector instanceof HTMLElement ? selector.querySelectorAll('form') :\n document.querySelectorAll(selector), instances = [];\n for (var i = 0; i < forms.length; i++) {\n instances.push(new Form(forms[i], options));\n }\n return instances;\n }\n\n\n /**\n * Registers a global validator that is usable on all form instances\n * @param {String} name\n * @param {Function} validator\n * @returns {Function}\n */\n static registerValidator(name, validator) {\n Form.globalValidators[name] = validator;\n return Form;\n }\n\n /**\n * Registers a global function that is called when a form should validate the response of a server\n * @param {Function} func\n * @returns {Form}\n */\n static registerGlobalRemoteValidationFunction(func) {\n Form.globalRemoteValidationFunction = func;\n return Form;\n }\n}\n\n\n/**\n * Global validators\n * @type {Array}\n */\nForm.globalValidators = [];\n\n/**\n * Global Remote validation function\n */\nForm.globalRemoteValidationFunction = function () {\n};\n\n/**\n * Handles custom error messages extracts custom message by default\n */\nForm.globalErrorMessageHandler = (field, validity) => {\n if (!validity.customError) {\n let customMsg = field.getAttribute(ATTR_DATA_CUSTOM_MESSAGE);\n if (customMsg) {\n field.setCustomValidity(customMsg);\n }\n }\n};\n\nexport default Form;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Form.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Tooltip\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\nimport Util from './util/Util';\nimport DestroyableWidget from './DestroyableWidget';\nimport Settings from './util/Settings';\n\n/**\n * @type {string}\n */\nconst CLASS_NAMES_TOOLTIP = 'tooltip-container';\n/**\n * @type {string}\n */\nconst CLASS_NAMES_OPEN = 'open';\n\n/**\n * @type {string}\n */\nconst ATTR_DATA_CLASSNAME = 'data-class';\n\n/**\n * @type {string}\n */\nconst ATTR_DATA_NO_TOUCH = 'data-no-touch';\n\n/**\n * @type {HTMLDocument}\n */\nconst doc = global.document;\n\n/**\n * Simple Tooltip\n */\nclass Tooltip extends DestroyableWidget {\n\n /**\n * Creates a Tooltip\n * @param {HTMLElement|String} DelegateContainer\n * @param {Object} [options]\n */\n constructor(DelegateContainer, options) {\n super();\n /**\n * The Container where possible events are captured\n */\n this.container = DelegateContainer instanceof HTMLElement ?\n DelegateContainer : doc.getElementById(DelegateContainer);\n\n if (!this.container) {\n throw new Error('Could not create Tooltip, DelegateContainer not found');\n }\n\n /**\n * The Container where tooltips are stored for this instance\n * @type {HTMLElement}\n */\n this.tooltipContainer = null;\n\n /**\n * Default Options\n */\n this.options = {\n containerClass: '',\n selectorAttribute: 'data-tooltip',\n collisionContainer: this.container\n };\n\n Object.assign(this.options, options || {});\n }\n\n /**\n * Creates and shows a tooltip\n * @param {HTMLElement} target where is this tooltip positioned\n * @param {String} text text content in tooltip, will be NOT escaped\n * @param {Boolean} [removeTitle] removes title element if given\n * @param {Node} [positionRelative]\n */\n createTooltip(target, text, removeTitle, positionRelative) {\n // abort if text is empty\n if (!text || text && text.trim() === '') {\n return;\n }\n\n if (Settings.isTouchDevice() && target && target.hasAttribute(ATTR_DATA_NO_TOUCH)) {\n return;\n }\n\n let tooltipContainer = this.tooltipContainer;\n\n if (!tooltipContainer) {\n tooltipContainer = doc.createElement('div');\n this.container.appendChild(tooltipContainer);\n this.tooltipContainer = tooltipContainer;\n }\n this._restoreClassNames(tooltipContainer, target);\n\n tooltipContainer.style.left = 'auto';\n tooltipContainer.style.top = 'auto';\n tooltipContainer.innerHTML = text;\n tooltipContainer.flexTooltipCurrentTarget = target;\n if (removeTitle) {\n target.oldTitle = text;\n target.removeAttribute('title');\n }\n\n Util.setupPositionNearby(positionRelative || target, tooltipContainer,\n this.options.collisionContainer, true, true);\n\n tooltipContainer.classList.add(CLASS_NAMES_OPEN);\n }\n\n _restoreClassNames(container, target) {\n // allow additional classname per tooltip on target element\n const classNames = [CLASS_NAMES_TOOLTIP, this.options.containerClass];\n const maybeTargetClass = target.getAttribute(ATTR_DATA_CLASSNAME);\n if (maybeTargetClass) {\n classNames.push(maybeTargetClass);\n }\n container.className = classNames.join(\" \");\n return this;\n }\n\n /**\n * @returns {HTMLElement|null}\n */\n getCurrentTarget() {\n return this.tooltipContainer ? this.tooltipContainer.flexTooltipCurrentTarget : null;\n }\n\n /**\n * Destroys this Widget\n * @returns {boolean}\n */\n destroy() {\n super.destroy();\n\n if (this.tooltipContainer) {\n this.tooltipContainer.parentNode.removeChild(this.tooltipContainer);\n return true;\n }\n return false;\n }\n\n /**\n * Removes a Tooltip on given target\n * @param {HTMLElement} [target], if not given will remove current open tooltip on this instance\n */\n removeTooltip(target) {\n let selfTarget = target;\n if (!selfTarget && this.tooltipContainer) {\n selfTarget = this.tooltipContainer.flexTooltipCurrentTarget;\n }\n if (this.tooltipContainer) {\n if (this.tooltipContainer.flexTooltipCurrentTarget !== selfTarget) {\n return;\n }\n this.tooltipContainer.classList.remove(CLASS_NAMES_OPEN);\n delete this.tooltipContainer.flexTooltipCurrentTarget;\n }\n if (selfTarget && selfTarget.oldTitle) {\n selfTarget.setAttribute('title', selfTarget.oldTitle);\n }\n }\n\n /**\n * Initilizes mouse events on container element\n */\n registerEvents() {\n const self = this;\n this.addEventListener(this.container, 'mouseover', (e) => {\n if (e.target.hasAttribute(self.options.selectorAttribute)) {\n self.createTooltip(e.target, e.target.getAttribute('title'), true);\n }\n });\n\n this.addEventListener(this.container, 'mouseout', (e) => {\n if (e.target.hasAttribute(self.options.selectorAttribute)) {\n self.removeTooltip(e.target);\n }\n });\n return this;\n }\n}\n\nexport default Tooltip;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Tooltip.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nconst PFX = [\"webkit\", \"moz\", \"MS\", \"o\", \"\"];\n\nconst COL_LEFT_CLASS = 'is-collision-left';\n\nconst COL_RIGHT_CLASS = 'is-collision-right';\n\nconst COL_BOTTOM_CLASS = 'is-collision-bottom';\n\n/**\n * Provides shared DOM-Utility functions\n */\nclass Util {\n\n /**\n * Will register the right animation event based on browser\n * @param element\n * @param type\n * @param callback\n */\n static prefixedAnimateEvent(element, type, callback) {\n const thisFunction = function thisFunction(e) {\n callback.apply(element, [e, thisFunction]);\n };\n\n for (let p = 0; p < PFX.length; p++) {\n let thisType = type;\n if (!PFX[p]) {\n thisType = type.toLowerCase();\n }\n const name = PFX[p] + thisType;\n element.addEventListener(name, thisFunction, true);\n }\n }\n\n /**\n * Get correct transitionend event\n * @returns {String}\n * @private\n */\n static whichTransitionEndEvent() {\n let t;\n const el = document.createElement('fake');\n\n const transitions = {\n transition: 'transitionend',\n OTransition: 'oTransitionEnd',\n MozTransition: 'transitionend',\n WebkitTransition: 'webkitTransitionEnd'\n };\n\n for (t in transitions) {\n if (el.style[t] !== undefined) {\n return transitions[t];\n }\n }\n }\n\n /**\n * Check if target is part of parent node\n * @param target\n * @param parent\n * @returns {boolean}\n */\n static isPartOfNode(target, parent) {\n if (!target || !parent) {\n return false;\n }\n let now = target;\n while (now !== parent && now !== null) {\n if (now === parent) {\n break;\n }\n now = now.parentNode;\n }\n return now !== null;\n }\n\n /**\n * Finds the closest element including itself matching a callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static closestCallback(el, callback) {\n let element = el;\n while (element !== null) {\n if (callback(element)) {\n return element;\n }\n element = element.parentNode;\n }\n return false;\n }\n\n /**\n * Walks the tree until func returns true for given argument\n * @param target\n * @param func\n * @returns {boolean|HTMLElement}\n */\n static parentsUntil(target, func) {\n if (!target) {\n return false;\n }\n let now = target;\n while (!func(now) && now !== null) {\n now = now.parentNode;\n }\n\n return now;\n }\n\n /**\n * Generates a unique id\n * @return {String}\n */\n static guid() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n\n return `${s4() + s4()}-${s4()}-${s4()}-${s4()}-${s4() + s4() + s4()}`;\n }\n\n /**\n * Detects scrollbar width\n * @see http://stackoverflow.com/questions/986937/how-can-i-get-the-browsers-scrollbar-sizes\n * @returns {number}\n */\n static getScrollBarWidth() {\n const doc = global.document;\n const inner = doc.createElement('p');\n\n inner.style.width = \"100%\";\n inner.style.height = \"200px\";\n\n const outer = doc.createElement('div');\n outer.style.position = \"absolute\";\n outer.style.top = \"0px\";\n outer.style.left = \"0px\";\n outer.style.visibility = \"hidden\";\n outer.style.width = \"200px\";\n outer.style.height = \"150px\";\n outer.style.overflow = \"hidden\";\n outer.appendChild(inner);\n\n doc.body.appendChild(outer);\n const w1 = inner.offsetWidth;\n outer.style.overflow = 'scroll';\n let w2 = inner.offsetWidth;\n if (w1 === w2) {\n w2 = outer.clientWidth;\n }\n doc.body.removeChild(outer);\n\n return (w1 - w2);\n }\n\n\n /**\n * Run an event once\n * @param {String} ev\n * @param {HTMLElement|HTMLDocument} target\n * @param {Function} func\n * @param {boolean} [capture]\n * @return Function created listener\n */\n static addEventOnce(ev, target, func, capture) {\n const thisFunction = function thisFunction(event) {\n func(event, func);\n target.removeEventListener(ev, thisFunction, capture);\n };\n target.addEventListener(ev, thisFunction, capture);\n return thisFunction;\n }\n\n /**\n * Checks if an element is visible\n * @param {HTMLElement} element\n * @returns bool\n */\n static isVisible(element) {\n return element.offsetWidth > 0 && element.offsetHeight > 0;\n }\n\n /**\n * Creates a camelCaseRepresentation of a dashed string\n * @param {String} str\n * @returns String\n */\n static dashToCamelCase(str) {\n return str.replace(/-([a-z])/g, (g) => {\n return g[1].toUpperCase();\n });\n }\n\n /**\n * Creates a copy of `input`\n * @param {*} input\n * @return *\n */\n static copy(input) {\n return JSON.parse(JSON.stringify(input));\n }\n\n /**\n * Reads options from element (data attributes) and applies to base\n * @param {HTMLElement} element\n * @param {Object} base\n * @return {Object}\n */\n static applyOptionsFromElement(element, base) {\n if (!element) {\n return base;\n }\n const attrs = element.attributes;\n for (let i = 0; i < attrs.length; i++) {\n const attr = attrs[i];\n if (attr) {\n const s = Util.dashToCamelCase(attr.nodeName.replace('data-', ''));\n const val = attr.nodeValue;\n if (base.hasOwnProperty(s)) {\n // skip functions\n if (typeof base[s] === 'function') {\n continue;\n }\n if (typeof base[s] === 'boolean') {\n base[s] = parseInt(val || 1, 10) === 1;\n } else {\n base[s] = val;\n }\n }\n }\n }\n return base;\n }\n\n /**\n * Will position an element directly at given target\n * Is aware of a given collision container to detect edges\n * Will put elementToPosition either to left, center or right edge (prefer right)\n * and either to bottom or top (prefers bottom)\n *\n * You may overwrite preferred positioned with `centerHorizontal` and `positionTop`\n *\n * @param {HTMLElement|ClientRect} target the target container to align to\n * @param {HTMLElement} elementToPosition the element to position\n * @param {HTMLElement} collisionContainer the outer container to prevent collisions\n * @param {bool} [centerHorizontal] set true to center element, otherwise it's put on the right border by default\n * @param {bool} [positionTop] flip top, by default element is positioned to the bottom.\n * @returns {HTMLElement}\n */\n static setupPositionNearby(target, elementToPosition, collisionContainer, centerHorizontal, positionTop) {\n // determine relative offsets\n let amountTop = 0;\n let amountLeft = 0;\n Util.parentsUntil(target.parentNode, (el) => {\n if (!(el instanceof HTMLElement)) {\n return false;\n }\n const style = window.getComputedStyle(el);\n if (Util.isPartOfNode(elementToPosition, el)) {\n if (style && style.position === 'relative') {\n amountTop += el.offsetTop || 0;\n amountLeft += el.offsetLeft || 0;\n }\n return false;\n }\n return true;\n });\n\n const targetPosition = target instanceof HTMLElement ? target.getBoundingClientRect() : target;\n const elementRect = elementToPosition.getBoundingClientRect();\n const colRect = collisionContainer.getBoundingClientRect();\n const targetTop = targetPosition.top - amountTop;\n const targetRight = targetPosition.right;\n const isCollisionTop = (targetTop - elementRect.height) <= 0;\n const isCollisionBottom =\n window.innerHeight < (targetTop + amountTop + targetPosition.height + elementRect.height);\n const isCollisionLeft = targetRight < elementRect.width;\n const targetLeft = targetPosition.left;\n const isCollisionRight = (targetLeft + elementRect.width) > colRect.width;\n const classList = elementToPosition.classList;\n\n classList.remove(COL_RIGHT_CLASS);\n classList.remove(COL_LEFT_CLASS);\n classList.remove(COL_BOTTOM_CLASS);\n\n let calcTop;\n let calcLeft;\n if (isCollisionLeft && !isCollisionRight) {\n // put element to left if collision with left\n calcLeft = `${(targetPosition.left - colRect.left - amountLeft)}px`;\n classList.add(COL_LEFT_CLASS);\n } else {\n // maybe center if no collision with either side\n const rightPosition = `${(targetRight - elementRect.width - colRect.left - amountLeft)}px`;\n const leftCentered = ((targetLeft + targetPosition.width / 2) -\n (elementRect.width / 2) || 0) - colRect.left;\n const collisionCentered = (leftCentered + elementRect.width) > colRect.width;\n if (centerHorizontal && !collisionCentered) {\n calcLeft = `${leftCentered}px`;\n } else {\n classList.add(COL_RIGHT_CLASS);\n calcLeft = rightPosition;\n }\n }\n\n if (isCollisionBottom || (positionTop && !isCollisionTop)) {\n // Put Element on top if collision\n calcTop = `${(targetTop - elementRect.height) - colRect.top}px`;\n classList.add(COL_BOTTOM_CLASS);\n } else {\n calcTop = `${(targetTop + targetPosition.height) - colRect.top}px`;\n }\n\n elementToPosition.style.cssText = `top:${calcTop};left:${calcLeft};`;\n\n return elementToPosition;\n }\n\n /**\n * Brings a given element into viewport\n * @param {HTMLElement} el\n * @param {int|function}[optionalOffset]\n */\n static scrollToElement(el, optionalOffset) {\n el.scrollIntoView();\n let thisOffset = optionalOffset;\n // optionally use a additional scrollDif\n if (thisOffset) {\n if (typeof thisOffset === 'function') {\n thisOffset = optionalOffset();\n }\n if (thisOffset > 0) {\n const scrolledY = window.pageYOffset;\n if (scrolledY) {\n window.scroll(0, scrolledY - thisOffset);\n }\n }\n }\n }\n}\n\nexport default Util;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/util/Util.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n'use strict';\n\n/**\n * Provides a Basic Widget\n */\nclass DestroyableWidget {\n\n constructor() {\n this.listeners = [];\n }\n\n /**\n * Destroys a Widget\n */\n destroy() {\n this.listeners.forEach((listener) => {\n listener.element.removeEventListener.apply(listener.element, listener.args);\n });\n this.listeners = [];\n }\n\n /**\n * Adds an event and registers it later to remove bindings\n * @param {HTMLElement} element\n * @param {String} name\n * @param {Function} listener\n * @param {boolean} [capture]\n * @returns {Function}\n */\n addEventListener(element, name, listener, capture) {\n this.listeners.push({\n element,\n args: [name, listener, capture]\n });\n\n element.addEventListener(name, listener, capture);\n return listener;\n }\n\n}\n\nexport default DestroyableWidget;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/DestroyableWidget.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport Util from './Util';\n\n// we attach global settings to global once because settings might be shared a lot of times trough the application\n// Maybe find a better way to handle that scenario\nif (!global.FLEXCSS_GLOBAL_SETTINGS) {\n global.FLEXCSS_GLOBAL_SETTINGS = {\n // defined breakpoint for small devices < n\n smallBreakpoint: 768,\n // nodes that should be updated when no scrollbar is expected\n scrollbarUpdateNodes: global.document.body !== null ? [global.document.body] : [],\n // additional Delay until darkener is fully hidden\n darkenerFadeDelay: 100,\n // class that is added if canvas has been toggled\n canvasToggledClass: 'toggled-canvas'\n };\n\n global.FLEXCSS_CONST_IS_IOS = null;\n\n global.FLEXCSS_CONST_IS_TOUCH = null;\n\n global.FLEXCSS_CONST_IS_IE = null;\n\n global.FLEXCSS_CONST_TAB_EVENT = 'click';\n\n global.FLEXCSS_IS_SMALL_SCREEN = false;\n\n const init = () => {\n // Measure scrollbar width\n global.FLEXCSS_CONST_SCROLLBAR_WIDTH = Util.getScrollBarWidth();\n // detect right transition end event\n global.FLEXCSS_CONST_TRANSITION_EVENT = Util.whichTransitionEndEvent();\n };\n\n if (global.document.readyState !== 'loading') {\n init();\n } else {\n // it's possible that global.document.body is not available if the document is not\n // loaded completely\n document.addEventListener('DOMContentLoaded', () => {\n init();\n });\n }\n}\n\n/**\n * Utility class that setups global settings\n */\nclass Settings {\n\n /**\n * Setup global settings, overwrite default values\n * @param {Object} settings\n */\n static setup(settings) {\n Object.assign(global.FLEXCSS_GLOBAL_SETTINGS, settings);\n }\n\n /**\n * Access to global settings\n * @returns {Object}\n */\n static get() {\n return global.FLEXCSS_GLOBAL_SETTINGS;\n }\n\n /**\n * Detects a IOS Device, caches subsequent calls\n * @returns {boolean}\n */\n static isIosDevice() {\n if (!global.FLEXCSS_CONST_IS_IOS) {\n global.FLEXCSS_CONST_IS_IOS = global.navigator.userAgent.match(/(iPad|iPhone|iPod)/i);\n }\n\n return global.FLEXCSS_CONST_IS_IOS;\n }\n\n /**\n * @returns {boolean}\n */\n static isSmallScreen() {\n return window.innerWidth < Settings.get().smallBreakpoint;\n }\n\n /**\n * Detects a touch device, caches subsequent calls\n * @returns {boolean}\n */\n static isTouchDevice() {\n if (!global.FLEXCSS_CONST_IS_TOUCH) {\n global.FLEXCSS_CONST_IS_TOUCH = 'ontouchstart' in window || !!(global.navigator.msMaxTouchPoints);\n }\n return global.FLEXCSS_CONST_IS_TOUCH;\n }\n\n /**\n * Checks if current browser is Internet Explorer\n * @returns {boolean|*}\n */\n static isIE() {\n if (!global.FLEXCSS_CONST_IS_IE) {\n global.FLEXCSS_CONST_IS_IE = \"ActiveXObject\" in window;\n }\n return global.FLEXCSS_CONST_IS_IE;\n }\n\n /**\n * @returns {String}\n */\n static getTransitionEvent() {\n return global.FLEXCSS_CONST_TRANSITION_EVENT;\n }\n\n /**\n * @returns {int}\n */\n static getScrollbarWidth() {\n return global.FLEXCSS_CONST_SCROLLBAR_WIDTH;\n }\n\n /**\n * @returns {String}\n */\n static getTabEvent() {\n return global.FLEXCSS_CONST_TAB_EVENT;\n }\n}\n\nexport default Settings;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/util/Settings.js\n **/","// the whatwg-fetch polyfill installs the fetch() function\n// on the global object (window or self)\n//\n// Return that as the export for use in Webpack, Browserify etc.\nrequire('whatwg-fetch');\nmodule.exports = self.fetch.bind(self);\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/isomorphic-fetch/fetch-npm-browserify.js\n ** module id = 104\n ** module chunks = 1\n **/","(function(self) {\n 'use strict';\n\n if (self.fetch) {\n return\n }\n\n function normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(name)) {\n throw new TypeError('Invalid character in header field name')\n }\n return name.toLowerCase()\n }\n\n function normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n }\n\n function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n }\n\n Headers.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var list = this.map[name]\n if (!list) {\n list = []\n this.map[name] = list\n }\n list.push(value)\n }\n\n Headers.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n }\n\n Headers.prototype.get = function(name) {\n var values = this.map[normalizeName(name)]\n return values ? values[0] : null\n }\n\n Headers.prototype.getAll = function(name) {\n return this.map[normalizeName(name)] || []\n }\n\n Headers.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n }\n\n Headers.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = [normalizeValue(value)]\n }\n\n Headers.prototype.forEach = function(callback, thisArg) {\n Object.getOwnPropertyNames(this.map).forEach(function(name) {\n this.map[name].forEach(function(value) {\n callback.call(thisArg, value, name, this)\n }, this)\n }, this)\n }\n\n function consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n }\n\n function fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n }\n\n function readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n reader.readAsArrayBuffer(blob)\n return fileReaderReady(reader)\n }\n\n function readBlobAsText(blob) {\n var reader = new FileReader()\n reader.readAsText(blob)\n return fileReaderReady(reader)\n }\n\n var support = {\n blob: 'FileReader' in self && 'Blob' in self && (function() {\n try {\n new Blob();\n return true\n } catch(e) {\n return false\n }\n })(),\n formData: 'FormData' in self,\n arrayBuffer: 'ArrayBuffer' in self\n }\n\n function Body() {\n this.bodyUsed = false\n\n\n this._initBody = function(body) {\n this._bodyInit = body\n if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (!body) {\n this._bodyText = ''\n } else if (support.arrayBuffer && ArrayBuffer.prototype.isPrototypeOf(body)) {\n // Only support ArrayBuffers for POST method.\n // Receiving ArrayBuffers happens via Blobs, instead.\n } else {\n throw new Error('unsupported BodyInit type')\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n\n this.arrayBuffer = function() {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n } else {\n this.text = function() {\n var rejected = consumed(this)\n return rejected ? rejected : Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n }\n\n // HTTP methods whose capitalization should be normalized\n var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\n function normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return (methods.indexOf(upcased) > -1) ? upcased : method\n }\n\n function Request(input, options) {\n options = options || {}\n var body = options.body\n if (Request.prototype.isPrototypeOf(input)) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n if (!body) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = input\n }\n\n this.credentials = options.credentials || this.credentials || 'omit'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n }\n\n Request.prototype.clone = function() {\n return new Request(this)\n }\n\n function decode(body) {\n var form = new FormData()\n body.trim().split('&').forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n }\n\n function headers(xhr) {\n var head = new Headers()\n var pairs = xhr.getAllResponseHeaders().trim().split('\\n')\n pairs.forEach(function(header) {\n var split = header.trim().split(':')\n var key = split.shift().trim()\n var value = split.join(':').trim()\n head.append(key, value)\n })\n return head\n }\n\n Body.call(Request.prototype)\n\n function Response(bodyInit, options) {\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = options.status\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = options.statusText\n this.headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n }\n\n Body.call(Response.prototype)\n\n Response.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n }\n\n Response.error = function() {\n var response = new Response(null, {status: 0, statusText: ''})\n response.type = 'error'\n return response\n }\n\n var redirectStatuses = [301, 302, 303, 307, 308]\n\n Response.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n }\n\n self.Headers = Headers;\n self.Request = Request;\n self.Response = Response;\n\n self.fetch = function(input, init) {\n return new Promise(function(resolve, reject) {\n var request\n if (Request.prototype.isPrototypeOf(input) && !init) {\n request = input\n } else {\n request = new Request(input, init)\n }\n\n var xhr = new XMLHttpRequest()\n\n function responseURL() {\n if ('responseURL' in xhr) {\n return xhr.responseURL\n }\n\n // Avoid security warnings on getResponseHeader when not allowed by CORS\n if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {\n return xhr.getResponseHeader('X-Request-URL')\n }\n\n return;\n }\n\n xhr.onload = function() {\n var status = (xhr.status === 1223) ? 204 : xhr.status\n if (status < 100 || status > 599) {\n reject(new TypeError('Network request failed'))\n return\n }\n var options = {\n status: status,\n statusText: xhr.statusText,\n headers: headers(xhr),\n url: responseURL()\n }\n var body = 'response' in xhr ? xhr.response : xhr.responseText;\n resolve(new Response(body, options))\n }\n\n xhr.onerror = function() {\n reject(new TypeError('Network request failed'))\n }\n\n xhr.open(request.method, request.url, true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n }\n\n if ('responseType' in xhr && support.blob) {\n xhr.responseType = 'blob'\n }\n\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n }\n self.fetch.polyfill = true\n})(typeof self !== 'undefined' ? self : this);\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/whatwg-fetch/fetch.js\n ** module id = 105\n ** module chunks = 1\n **/","/* global CustomEvent */\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n// polyfill for custom events to make thinks work in IE\n// The needed polyfill is so small that I embedded it here\n(function poly() {\n if (!global.CustomEvent || typeof global.CustomEvent !== 'function') {\n const CustomEvent = function CustomEvent(event, params) {\n let evt;\n const thisParams = params ||\n {\n bubbles: false,\n cancelable: false,\n detail: undefined\n };\n evt = document.createEvent(\"CustomEvent\");\n evt.initCustomEvent(event, thisParams.bubbles,\n thisParams.cancelable, thisParams.detail);\n return evt;\n };\n CustomEvent.prototype = global.Event.prototype;\n global.CustomEvent = CustomEvent;\n }\n})();\n/**\n * Simpler Event dispatching\n */\nclass EventHandler {\n\n /**\n * @param {HTMLElement} target\n * @param {String} name\n */\n constructor(target, name) {\n this.target = target;\n this.defaultOptions = {\n bubbles: true,\n cancelable: true\n };\n\n this.name = name;\n }\n\n /**\n * Set more options\n * @param {Object} options\n * @returns {EventHandler}\n */\n withOptions(options) {\n Object.assign(this.defaultOptions, (options || {}));\n return this;\n }\n\n /**\n * Call with the originalEvent\n * @param {Event} e\n * @returns {EventHandler}\n */\n withOriginal(e) {\n return this.withDetail({\n originalEvent: e\n });\n }\n\n /**\n * Extends the detail part of the event\n * @param {Object} o\n * @returns {EventHandler}\n */\n withDetail(o) {\n if (!this.defaultOptions.detail) {\n this.defaultOptions.detail = {};\n }\n Object.assign(this.defaultOptions.detail, o);\n return this;\n }\n\n /**\n * @returns {CustomEvent}\n */\n fire() {\n const e = new CustomEvent(this.name, this.defaultOptions);\n if (this.target) {\n this.target.dispatchEvent(e);\n }\n return e;\n }\n}\n\nclass Event {\n /**\n * Prepares to dispatch a custom event (without firing)\n * @param {HTMLElement} target\n * @param {String} name\n * @returns {EventHandler}\n */\n static dispatch(target, name) {\n return new EventHandler(target, name);\n }\n\n /**\n * Dispatches a custom event and fires it directly\n * @param {HTMLElement} target\n * @param {String} name\n * @param {Object} [options]\n * @returns {CustomEvent}\n */\n static dispatchAndFire(target, name, options) {\n return new EventHandler(target, name).withOptions(options).fire();\n }\n}\n\nexport default Event;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/util/Event.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Modal\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n'use strict';\n\n/* global KeyboardEvent */\n\nimport Settings from './util/Settings';\nimport Event from './util/Event';\nimport Util from './util/Util';\nimport Widget from './Widget';\nimport FixedWindow from './lib/FixedWindow';\n\nconst HTML_ELEMENT = global.document.documentElement;\nconst KEY_ESC = 27;\n/* Attribute Names */\nconst ATTR_CREATE_NEW = 'data-new-instance';\nconst ATTR_CLOSE = 'data-close-modal';\nconst ATTR_NAME = 'data-modal';\n\n/* Class names */\nconst CLS_CONTAINER_CURRENT = 'front';\nconst CLS_OPEN = 'open';\nconst CLS_CURRENT = 'current';\nconst CLS_PART_OF_STACK = 'part-of-stack';\nconst CLS_MODAL_OPEN = 'modal-open';\nconst CLS_MODAL_CONTAINER = 'modal-container';\nconst CLS_ANIM_END = 'modal-anim-end';\nconst CLS_LOADER_CONTAINER = 'loader-container';\nconst CLS_LOADER = 'loader';\n\n/* Events */\n\n/**\n * Event triggered when modal is closed\n * @type {string}\n */\nexport const EVENT_MODAL_CLOSED = 'flexcss.modal.closed';\n/**\n * Event triggered before a modal is closed, cancelable\n * @type {string}\n */\nexport const EVENT_MODAL_BEFORE_CLOSED = 'flexcss.modal.beforeClose';\n/**\n * Event triggered when a modal is opened\n * @type {string}\n */\nexport const EVENT_MODAL_OPENED = 'flexcss.modal.opened';\n\n/**\n * Event triggered when modal is initilized, called on target\n * @type {string}\n */\nexport const EVENT_MODAL_INIT = 'flexcss.modal.init';\n\n/**\n * Triggered when the content of an async modal on a target is loaded, called on target\n * @type {string}\n */\nexport const EVENT_MODAL_ASYNC_TARGET_LOADED = 'flexcss.modal.asyncTargetLoaded';\n\n/**\n * A Modal Implementation\n */\nclass Modal {\n constructor(DelegateContainer, options) {\n const doc = global.document;\n const container = DelegateContainer instanceof HTMLElement ?\n DelegateContainer : doc.getElementById(DelegateContainer);\n\n // Instance vars:\n if (!container) {\n throw new Error(`Could not found container element by given ID/Element: ${DelegateContainer}`);\n }\n\n this.currentOpen = null;\n\n this.loading = false;\n\n this.container = container;\n\n /**\n * Default Options\n */\n this.options = {\n classNames: 'modal',\n closeOnEscape: true,\n closeOnBackgroundClick: true,\n destroyOnFinish: false,\n fixedContainer: true,\n containerClassNames: ''\n };\n\n Object.assign(this.options, options);\n\n // Container where events are delegated\n this.eventContainer = null;\n this.eventFunction = null;\n\n this.dataMainPageContainer = global.document.body;\n\n this.currentScrollTop = 0;\n\n this.modalContainer = null;\n\n // Destroy full modal instance when no dialogs are bind to?\n // Otherwise container is recycled\n this.destroyOnFinish = this.options.destroyOnFinish;\n }\n\n /**\n * Removes this modal from global stack\n * Will handle fixing main html element too\n * @private\n * @param n\n */\n _removeModalFromStack(n) {\n const t = Modal._modalInstances.indexOf(n);\n if (t > -1) {\n Modal._modalInstances.splice(t, 1);\n FixedWindow.getInstance().close().then(() => {\n HTML_ELEMENT.classList.remove(CLS_MODAL_OPEN);\n });\n }\n }\n\n\n /**\n * Modal container that contains all `stacked` modals for this instance\n * @returns {HTMLElement}\n */\n getModalContainer() {\n return this.modalContainer;\n }\n\n /**\n * Closes the current open modal of this stack\n * @params [e], optional event\n * @returns {*}\n */\n close(e) {\n const self = this;\n\n const options = self.currentOpen ? Util.applyOptionsFromElement(\n self.currentOpen, Util.copy(self.options)) : self.options;\n\n // close only on keyboard if instance should\n if (!options.closeOnEscape && e instanceof KeyboardEvent) {\n return false;\n }\n\n // close only on background if instance should\n if (!options.closeOnBackgroundClick && e &&\n e.type === Settings.getTabEvent() && !e.target.hasAttribute(ATTR_CLOSE)) {\n return false;\n }\n\n // if an instance is currently loading, prevent from closing\n if (self.loading) {\n return false;\n }\n\n if (e) {\n e.preventDefault();\n }\n\n if (self.currentOpen) {\n // dispatch beforeClose event, if prevented prevent modal from closing\n var ev = Event.dispatchAndFire(self.currentOpen, EVENT_MODAL_BEFORE_CLOSED);\n if (ev.defaultPrevented) {\n return false;\n }\n\n this._finishState(self.currentOpen);\n // if there is an previous modal\n if (self.currentOpen.prevModal) {\n // switch to the next modal\n return self.switchModals(self.currentOpen.prevModal,\n self.currentOpen.prevModal.prevModal || null);\n }\n\n // finally trigger closed event\n Event.dispatch(self.currentOpen, EVENT_MODAL_CLOSED).withOriginal(e).fire();\n\n }\n self._removeModalFromStack(self.currentOpen);\n\n // Full stack closed:\n self.currentOpen = null;\n if (self.modalContainer) {\n // setup next open\n var lastContainer = Modal._modalInstances[Modal._modalInstances.length - 1],\n classList = self.modalContainer.classList;\n classList.remove(CLS_CONTAINER_CURRENT);\n classList.remove(CLS_OPEN);\n // Remove all current classes from child-nodes\n for (var i = 0; i < self.modalContainer.childNodes.length; i++) {\n var node = self.modalContainer.childNodes[i], cl = node.classList;\n // remove applied styles\n self._finishState(node);\n cl.remove(CLS_CURRENT);\n cl.remove(CLS_PART_OF_STACK);\n }\n if (lastContainer) {\n lastContainer.parentNode.classList.add(CLS_CONTAINER_CURRENT);\n }\n }\n\n if (self.destroyOnFinish) {\n self.destroy();\n }\n return self;\n }\n\n /**\n * Resets a target when newly initilizes\n * @param target\n * @private\n */\n _finishState(target) {\n target.classList.remove(CLS_ANIM_END);\n }\n\n /**\n * Handler called when a Modal has finished an animation\n * @param e\n * @param self\n * @private\n */\n _finishAnim(e, self) {\n e.target.classList.add(CLS_ANIM_END);\n e.target.removeEventListener(e.type, self, true);\n }\n\n /**\n * Brings the given modal to front\n * @param co\n * @param last\n */\n switchModals(co, last) {\n co.prevModal = last;\n Modal._modalInstances.push(co);\n FixedWindow.getInstance().open(this);\n if (last) {\n this._finishState(last);\n Util.prefixedAnimateEvent(last, 'AnimationEnd', this._finishAnim);\n last.classList.add(CLS_PART_OF_STACK);\n }\n // set new currentOpen\n this.currentOpen = co;\n\n // bring current container to the front\n var instances = Modal._modalInstances;\n\n for (var m = 0; m < instances.length; m++) {\n instances[m].parentNode.classList.remove(CLS_CONTAINER_CURRENT);\n }\n this.modalContainer.classList.add(CLS_CONTAINER_CURRENT);\n // remove animations if animations has been completed, fixes various bugs:\n // - fixes nested scrolling element issue in iOS Browsers / Mobile-Safari\n Util.prefixedAnimateEvent(co, 'AnimationEnd', this._finishAnim);\n\n for (var i = 0; i < this.modalContainer.childNodes.length; i++) {\n var n = this.modalContainer.childNodes[i], isCurrent = n.classList.contains(CLS_CURRENT);\n if (n === co) {\n co.classList.add(CLS_CURRENT);\n co.classList.remove(CLS_PART_OF_STACK);\n this._finishState(co);\n } else {\n n.classList.remove(CLS_CURRENT);\n if (isCurrent) {\n this._removeModalFromStack(n);\n Event.dispatchAndFire(n, EVENT_MODAL_CLOSED);\n }\n }\n }\n }\n\n handleScrollbar() {\n if (Modal._modalInstances.length === 0) {\n HTML_ELEMENT.classList.add(CLS_MODAL_OPEN);\n }\n }\n\n /**\n * Creates a Modal and opens it (later)\n * @param e\n * @returns {Promise|boolean}\n */\n createWidget(e) {\n var self = this;\n if (this.loading) {\n return false;\n }\n\n // check if another modal has registered events on this dom path:\n if (e && e.target) {\n var foundInstance = Util.parentsUntil(e.target, function (node) {\n return node && node.flexModalInstance;\n });\n\n // if another instance has been found, abort\n if (foundInstance !== this.container) {\n return false;\n }\n }\n var targetContent, future, widget, target, hasTarget = true,\n isHtmlElement = e instanceof HTMLElement, isWidget = Widget.isWidget(e);\n if (isHtmlElement || isWidget) {\n if (isHtmlElement) {\n targetContent = e;\n } else {\n widget = e;\n targetContent = widget.element;\n }\n } else {\n target = e.target;\n if (!target) {\n throw 'Could not find target, did you pass an event, a HTMLElement or an Widget?';\n }\n hasTarget = target.hasAttribute(ATTR_NAME);\n targetContent = target.getAttribute(ATTR_NAME);\n widget = Widget.findWidget(target);\n if (target.hasAttribute(ATTR_CREATE_NEW) && !e.newInstance) {\n var newInstance = new Modal(this.container)\n .setDestroyOnFinish(true);\n e.newInstance = true;\n newInstance.fromEvent(e).then(function () {\n newInstance.registerEvents(newInstance.getModalContainer());\n });\n return false;\n }\n if (hasTarget) {\n e.stopImmediatePropagation();\n e.preventDefault();\n }\n }\n\n if (!hasTarget) {\n return false;\n }\n\n let modalContainerClasses = this.modalContainer ? this.modalContainer.classList : [];\n\n // lazy create modal container\n if (!this.modalContainer) {\n this.modalContainer = global.document.createElement('div');\n this.modalContainer.className = `${CLS_MODAL_CONTAINER} ${this.options.containerClassNames} ${CLS_OPEN}`;\n const closeModalFunction = function (ce) {\n if (self.loading) {\n return false;\n }\n if (Util.isPartOfNode(ce.target, self.currentOpen)) {\n if (!ce.target.hasAttribute(ATTR_CLOSE)) {\n return false;\n }\n }\n self.close(ce);\n };\n\n this.modalContainer.addEventListener(Settings.getTabEvent(), closeModalFunction, false);\n\n modalContainerClasses = this.modalContainer.classList;\n this.container.appendChild(this.modalContainer);\n\n } else {\n modalContainerClasses.add(CLS_OPEN);\n }\n\n let loader, doc = global.document, toggleLoader = function (show) {\n if (show) {\n loader = doc.createElement('div');\n loader.className = CLS_LOADER_CONTAINER;\n var loaderLoader = doc.createElement('div');\n loaderLoader.className = CLS_LOADER;\n loader.appendChild(loaderLoader);\n self.modalContainer.appendChild(loader);\n } else {\n loader.parentNode.removeChild(loader);\n }\n };\n\n this.handleScrollbar();\n\n modalContainerClasses.add(CLS_CONTAINER_CURRENT);\n modalContainerClasses.add('loading');\n this.loading = true;\n toggleLoader(true);\n var async = widget ? widget.getAsync() : null;\n if (Widget.isWidget(widget) && async) {\n future = async.then(function (r) {\n var result;\n if (r instanceof HTMLElement || r instanceof DocumentFragment) {\n result = r;\n } else {\n // Create container Element:\n var element = doc.createElement('div');\n element.className = self.options.classNames;\n element.innerHTML = r;\n element.id = Util.guid();\n result = element;\n }\n widget.finalContent = result;\n Event.dispatchAndFire(target, EVENT_MODAL_ASYNC_TARGET_LOADED);\n return result;\n });\n } else {\n var el = targetContent instanceof HTMLElement ||\n targetContent instanceof DocumentFragment ? targetContent : doc.getElementById(targetContent);\n if (el) {\n future = new Promise((resolve) => {\n resolve(el);\n });\n } else {\n throw 'Could not found given modal element (content) with ID: ' + targetContent;\n }\n }\n\n Event.dispatchAndFire(target, EVENT_MODAL_INIT);\n\n return future.then((thisEl) => {\n thisEl.hfWidgetInstance = self;\n self.modalContainer.appendChild(thisEl);\n modalContainerClasses.remove('loading');\n self.loading = false;\n toggleLoader(false);\n\n self.open(thisEl, true, e);\n\n return thisEl;\n });\n }\n\n /**\n * Open's an already rendered modal\n * @param {HTMLElement} modal\n * @param {Boolean} [internal], set to true to prevent container management\n * @param {Boolean} [maybeEvent], optional event-object that triggered open\n */\n open(modal, internal, maybeEvent) {\n\n\n if (!internal) {\n this.modalContainer.classList.add('open');\n this.handleScrollbar();\n }\n this.switchModals(modal, this.currentOpen);\n\n Event.dispatch(modal, EVENT_MODAL_OPENED).withOriginal(maybeEvent).fire();\n }\n\n\n registerEvents(delegate) {\n var delegateContainer = delegate || this.container, self = this;\n // Modals should always be fixed\n FixedWindow.getInstance().addScreenConstraint(Modal, (width) => true);\n // register modal instance so we can detect multiple registrars\n delegateContainer.flexModalInstance = self;\n self.eventFunction = function () {\n self.createWidget.apply(self, arguments);\n };\n delegateContainer.addEventListener(Settings.getTabEvent(), self.eventFunction, false);\n\n self.eventContainer = delegateContainer;\n return self;\n }\n\n\n /**\n * Creates a new Dialog Instance either directly from HTML Element or a Widget instance\n * @param {HTMLElement|Widget} widget instance or html element\n * @returns {Promise}\n */\n fromWidget(widget) {\n return this.createWidget(widget);\n }\n\n /**\n * Creates a Widget from event\n * @param e\n * @returns {Promise}\n */\n fromEvent(e) {\n return this.createWidget(e);\n }\n\n setDestroyOnFinish(v) {\n this.destroyOnFinish = v;\n return this;\n }\n\n /**\n * Destroy this widget instance, cleans empty DOM nodes\n * Will use fast MutationObserver if available, otherwise falls back to DOMNodeRemoved event\n */\n destroy() {\n let self = this, modalContainer = this.modalContainer;\n const isEmptyContainer = modalContainer.childNodes.length === 0;\n // Remove event listener on destroy, do not remove DOM node\n if (self.eventContainer) {\n self.eventContainer.removeEventListener(Settings.getTabEvent(), self.eventFunction, true);\n }\n\n if (isEmptyContainer) {\n if (modalContainer.parentNode) {\n modalContainer.parentNode.removeChild(modalContainer);\n }\n }\n if (global.MutationObserver) {\n var observer = new MutationObserver(function (mutations) {\n mutations.forEach(function () {\n if (isEmptyContainer) {\n modalContainer.parentNode.removeChild(modalContainer);\n observer.disconnect();\n }\n });\n });\n observer.observe(modalContainer, {childList: true});\n } else {\n modalContainer.addEventListener('DOMNodeRemoved', function (e) {\n if (e.target !== modalContainer && (modalContainer.childNodes.length - 1) === 0) {\n modalContainer.parentNode.removeChild(modalContainer);\n }\n });\n }\n }\n}\n\n\n// Static variable that keeps track of all open modals\nModal._modalInstances = [];\n\n// Global keydown listener for modal\nglobal.addEventListener('keydown', function (e) {\n if (e.keyCode === KEY_ESC) {\n var lastModal = Modal._modalInstances[Modal._modalInstances.length - 1];\n if (lastModal) {\n Widget.findWidget(lastModal).close(e);\n }\n }\n});\n\nexport default Modal;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Modal.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Widget\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n/**\n * A Widget provides async content on a specific target (e.g. a modal link)\n */\nclass Widget {\n\n /**\n * Creates a new Widget\n * @param [element], optional define the content of widget\n */\n constructor(element) {\n /**\n *\n * @type {Promise}\n */\n this.asyncContent = null;\n\n /**\n * @type {boolean}\n */\n this._isWidget = true;\n\n if (element) {\n /**\n * @type {HTMLElement}\n */\n this.element = element instanceof HTMLElement ? element : global.document.getElementById(element);\n if (this.element) {\n this.element.hfWidgetInstance = this;\n this.setAsync(() => {\n return new Promise((s) => {\n s(this.element);\n });\n });\n } else {\n throw new Error(`Could not found element with ID: ${element}`);\n }\n }\n /**\n * The final resulted content that a widget did create (e.g. a modal container)\n * @type {HTMLElement}\n */\n this.finalContent = null;\n }\n\n /**\n *\n * @returns {Promise}\n */\n getAsync() {\n return this.asyncContent();\n }\n\n /**\n * @param {Function.} async\n * @returns {Widget}\n */\n setAsync(async) {\n this.asyncContent = async;\n return this;\n }\n\n /**\n * @returns {HTMLElement}\n */\n getFinalContent() {\n return this.finalContent;\n }\n\n /**\n * @param {HTMLElement} element\n * @returns {Widget}\n */\n setElement(element) {\n this.element = element;\n return this;\n }\n\n /**\n * Destroys the generated content of this widget\n * @returns {boolean}\n */\n destroy() {\n if (this.finalContent && this.finalContent.parentNode) {\n this.finalContent.parentNode.removeChild(this.finalContent);\n return true;\n }\n\n delete this.element;\n delete this.asyncContent;\n delete this.finalContent;\n\n return false;\n }\n\n /**\n * Will find a widget on an Element\n * @param {HTMLElement} element\n * @returns {Widget|undefined}\n */\n static findWidget(element) {\n return element ? element.hfWidgetInstance : undefined;\n }\n\n /**\n * Checks if a given object is an instance\n * @param {Object} self\n * @returns {boolean}\n */\n static isWidget(self) {\n return self instanceof Widget || typeof self === 'object' && self.hasOwnProperty('_isWidget');\n }\n}\n\nexport default Widget;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Widget.js\n **/","import Settings from '../util/Settings';\nimport debounce from './debounce';\nimport Event from '../util/Event';\n\nconst CLS_FIXED_WINDOW = 'fixed-window-open';\n\nexport const EVENT_BEFORE_FIXED_ADD = 'flexcss.fixedWindow.beforeAdd';\nexport const EVENT_AFTER_FIXED_REMOVE = 'flexcss.fixedWindow.afterRemove';\n\n/**\n * @type {FixedWindow}\n */\nlet fixedWindowInstance;\n\nexport default class FixedWindow {\n\n constructor() {\n this.widgets = [];\n this.currentScrollTop = 0;\n this.fixedScreenConstraints = [];\n this.windowWidth = 0;\n this.isFixedWindowActive = false;\n }\n\n /**\n * Adds a constraint to detect if the window needs to be changed when the screensize changes\n *\n * @param {Function} widget\n * @param {Function} fixedBreakpointFn gets a width argument, return true to open a window\n */\n addScreenConstraint(widget, fixedBreakpointFn) {\n this.fixedScreenConstraints[widget] = fixedBreakpointFn;\n }\n\n /**\n * @returns {null|DestroyableWidget}\n */\n getCurrentWidget() {\n return this.widgets.length > 0 ? this.widgets[this.widgets.length - 1] : null;\n }\n\n /**\n * @private\n */\n _checkFixedNeeded() {\n if (this.widgets.length === 0) {\n return;\n }\n const widgets = new Set(this.widgets);\n const widgetsThatRequireFixedWindow = Array.from(widgets).some((widget) => {\n return this.fixedScreenConstraints[widget] && this.fixedScreenConstraints[widget](this.windowWidth);\n });\n if (!widgetsThatRequireFixedWindow) {\n this._removeFixedContainer();\n } else {\n this._addFixedContainer();\n }\n }\n\n /**\n * @private\n */\n _addFixedContainer() {\n if (this.isFixedWindowActive) {\n return;\n }\n Event.dispatchAndFire(global.document, EVENT_BEFORE_FIXED_ADD, {\n detail: this.getCurrentWidget()\n });\n // this causes layout and should be optimized\n // At lest we write in a batch later\n this.currentScrollTop = global.pageYOffset;\n Settings.get().scrollbarUpdateNodes.map((n) => {\n let foundProperty = 'paddingRight';\n let direction = 1;\n let node = n;\n if (n instanceof Array) {\n const [whatNode, property, d] = n;\n foundProperty = property;\n node = whatNode;\n direction = d || 1;\n }\n return {\n node,\n property: foundProperty,\n value: `${parseInt(global.getComputedStyle(node)[foundProperty], 10) +\n (!node.__fixedWindowMod__ ? (Settings.getScrollbarWidth() * direction) : 0)}px`\n };\n }).forEach((d) => {\n d.node.__fixedWindowMod__ = true;\n d.node.style[d.property] = d.value;\n });\n\n global.document.documentElement.classList.add(CLS_FIXED_WINDOW);\n global.document.body.style.cssText += `top:${this.currentScrollTop * -1}px;position:fixed`;\n\n this.isFixedWindowActive = true;\n }\n\n /**\n * @private\n */\n _removeFixedContainer() {\n if (this.isFixedWindowActive) {\n global.document.body.style.position = \"static\";\n global.document.body.style.top = \"0px\";\n // reset scrollTop\n global.document.documentElement.scrollTop = this.currentScrollTop;\n global.document.body.scrollTop = this.currentScrollTop;\n Settings.get().scrollbarUpdateNodes.forEach((node) => {\n if (node instanceof Array) {\n const [whatNode, property] = node;\n delete whatNode.__fixedWindowMod__;\n whatNode.style[property] = '';\n } else {\n delete node.__fixedWindowMod__;\n node.style.paddingRight = '';\n }\n });\n global.document.documentElement.classList.remove(CLS_FIXED_WINDOW);\n Event.dispatchAndFire(global.document, EVENT_AFTER_FIXED_REMOVE);\n this.isFixedWindowActive = false;\n }\n }\n\n /**\n * Will close a window when no widgets are opened that need one\n */\n resizeListener() {\n this.windowWidth = global.innerWidth;\n this._checkFixedNeeded();\n }\n\n /**\n * @returns {FixedWindow}\n */\n static getInstance() {\n if (!fixedWindowInstance) {\n fixedWindowInstance = new FixedWindow();\n fixedWindowInstance.windowWidth = global.innerWidth;\n const eventHandler = fixedWindowInstance.resizeListener.bind(fixedWindowInstance);\n global.addEventListener(\n 'resize',\n debounce(eventHandler, 500)\n );\n global.addEventListener('orientationchange', eventHandler);\n }\n return fixedWindowInstance;\n }\n\n /**\n * Request a close of the fixed window\n * @returns {Promise}\n */\n close() {\n return new Promise((resolve) => {\n this.widgets.pop();\n if (this.widgets.length === 0) {\n // restore scrollPosition:\n requestAnimationFrame(() => {\n this._removeFixedContainer();\n resolve();\n });\n }\n });\n }\n\n /**\n * Request to open a fixed windows\n * @param {Object|DestroyableWidget} instance\n */\n open(instance) {\n let fixed = false;\n if (typeof instance === 'object') {\n const cn = instance.constructor;\n const fixedWidget = this.fixedScreenConstraints[instance.constructor];\n if (cn && fixedWidget) {\n fixed = fixedWidget(this.windowWidth);\n }\n const length = this.widgets.length;\n this.widgets.push(cn);\n // open a new window if there is no window active\n if (length === 0) {\n if (fixed) {\n this._addFixedContainer();\n }\n }\n }\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/lib/FixedWindow.js\n **/","export default (fn, ms) => () => {\n clearTimeout(fn.timeout);\n fn.timeout = setTimeout(fn, ms);\n};\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/lib/debounce.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Toggleable\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\nimport Settings from './util/Settings';\nimport Widget from './Widget';\nimport Util from './util/Util';\nimport Event from './util/Event';\n\n/**\n * Event that is fired when a tab is closed\n * @type {string}\n */\n\nexport const EVENT_TAB_CLOSED = 'flexcss.tab.closed';\n\n/**\n * Event that is fired when a tab has been opened\n * @type {string}\n */\nexport const EVENT_TAB_OPENED = 'flexcss.tab.opened';\n/**\n * @type {string}\n */\nconst ATTR_NAME = 'data-toggle';\n/**\n * @type {string}\n */\nconst ACTIVE_CLASS = 'active';\n/**\n * @type {string}\n */\nconst LOADING_CLASS = 'loading';\n\n/**\n * @type {string}\n */\nconst ATTR_TOGGLE_LIST = 'data-toggle-list';\n\n/**\n * Creates a toggleable element, either for tabs or a single toggle\n */\nclass Toggleable {\n constructor(ContainerId) {\n const doc = global.document;\n\n this.container = ContainerId instanceof HTMLElement ? ContainerId :\n doc.getElementById(ContainerId);\n\n this.loading = false;\n\n if (!this.container) {\n throw new Error(`Toggleable container with id ${ContainerId} not found`);\n }\n }\n\n /**\n * Listener\n * @param {Event} e\n * @private\n */\n _listener(e) {\n let target = e.target;\n const parent = target.parentNode;\n const doc = global.document;\n\n // support target child element to clicked\n if (!target.hasAttribute(ATTR_NAME)) {\n if (parent && parent.hasAttribute(ATTR_NAME)) {\n target = parent;\n } else {\n return;\n }\n }\n\n if (!target.hasAttribute(ATTR_NAME)) {\n return;\n }\n\n const refId = target.getAttribute(ATTR_NAME);\n const ref = doc.getElementById(refId);\n\n e.preventDefault();\n\n if (this.loading) {\n return;\n }\n\n this.toggleTarget(ref, target);\n }\n\n /**\n * Registers Events for this instance\n * @returns {Toggleable}\n */\n registerEvents() {\n this.container.addEventListener(Settings.getTabEvent(), this._listener.bind(this));\n return this;\n }\n\n /**\n * Toggles given `ref`\n * @param {HTMLElement|Node} ref\n * @param {HTMLElement|Node} [selfTarget] optional target node\n */\n toggleTarget(ref, selfTarget) {\n let target = selfTarget;\n if (!target && !ref) {\n return;\n }\n if (!target) {\n target = document.querySelector(`[${ATTR_NAME}=\"${ref.id}\"]`);\n }\n\n let maybeToggleNode;\n let future;\n const elClassList = target.classList;\n let parentClassList;\n const parent = target.parentNode;\n const doc = global.document;\n\n future = new Promise((resolve, failure) => {\n if (ref) {\n resolve(ref);\n } else {\n const widget = Widget.findWidget(target);\n const async = widget ? widget.getAsync() : null;\n if (Widget.isWidget(widget) && async) {\n future = async.then((r) => {\n if (r instanceof HTMLElement) {\n const id = Util.guid();\n r.id = id;\n target.setAttribute(ATTR_NAME, id);\n resolve(r);\n } else {\n throw new Error(`Dynamically creating toggle-content is not supported right now.\n Return an HTMLElement instance`);\n }\n });\n } else {\n failure('Target not given');\n }\n }\n });\n\n if (parent) {\n maybeToggleNode = Util.parentsUntil(target, (node) => {\n return node && node.hasAttribute && node.hasAttribute(ATTR_TOGGLE_LIST);\n });\n\n parentClassList = parent.classList;\n // Abort if element is already active and if is part of a toggle list\n if (maybeToggleNode) {\n if (!parentClassList.contains(ACTIVE_CLASS)) {\n parentClassList.toggle(ACTIVE_CLASS);\n parentClassList.add(LOADING_CLASS);\n } else {\n return;\n }\n }\n\n if (maybeToggleNode) {\n for (let i = 0; i < maybeToggleNode.children.length; i++) {\n const n = maybeToggleNode.children[i];\n const targetRef = n.children[0];\n if (n !== parent) {\n n.classList.remove(ACTIVE_CLASS);\n if (targetRef) {\n const attr = targetRef.getAttribute(ATTR_NAME);\n const el = attr ? doc.getElementById(attr) : null;\n if (el) {\n Event.dispatchAndFire(el, EVENT_TAB_CLOSED);\n el.classList.remove(ACTIVE_CLASS);\n targetRef.classList.remove(ACTIVE_CLASS);\n }\n }\n }\n }\n }\n }\n if (elClassList) {\n elClassList.toggle(ACTIVE_CLASS);\n elClassList.add(LOADING_CLASS);\n }\n this.loading = true;\n future.then((r) => {\n Event.dispatchAndFire(r, EVENT_TAB_OPENED);\n Toggleable._handleLoaded(target);\n r.classList.toggle(ACTIVE_CLASS);\n this.loading = false;\n }).catch(() => {\n this.loading = false;\n Toggleable._handleLoaded(target);\n });\n }\n\n /**\n * @param el\n * @private\n */\n static _handleLoaded(el) {\n const parentClassList = el.parentNode.classList;\n el.classList.remove(LOADING_CLASS);\n if (parentClassList) {\n parentClassList.remove(LOADING_CLASS);\n }\n }\n}\n\nexport default Toggleable;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Toggleable.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.OffCanvas\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\nimport Settings from './util/Settings';\nimport Util from './util/Util';\nimport Event from './util/Event';\nimport FixedWindow from './lib/FixedWindow';\n\n/**\n * @type {string}\n */\nconst ATTR_CLOSE_SIDEBAR = 'data-close-offcanvas';\n\n/**\n * @type {string}\n */\nconst ATTR_TARGET = 'data-offcanvas';\n/**\n * @type {string}\n */\nconst INIT_CLASS = 'init';\n/**\n * @type {string}\n */\nconst OPEN_CLASS = 'open';\n/**\n * @type {number}\n */\nconst HIDE_FACTOR = 3;\n\n/**\n * @type {string}\n */\nexport const EVENT_TOGGLE = 'flexcss.offcanvas.toggle';\n\n/**\n * A OffCanvas Implementation\n */\nclass OffCanvas {\n\n /**\n * Creates an off-canvas navigation\n * @param {HTMLElement|String} NavigationId\n * @param {HTMLElement|String} Darkener\n * @param {int} factor positive will expect right sidebar, positive left\n * @param {bool} [disableTouch] if true all touch events are disabled\n * @constructor\n */\n constructor(NavigationId, Darkener, factor, disableTouch) {\n const doc = global.document;\n let touchedX = 0;\n const navigationContainer = NavigationId instanceof HTMLElement ?\n NavigationId : doc.getElementById(NavigationId);\n const darkener = Darkener instanceof HTMLElement ? Darkener : doc.getElementById(Darkener);\n const DARKENER_CLASS_TOGGLE = `toggle-${darkener.id}` || 'darkener';\n const DARKENER_CLASS_INSTANT_TOGGLE = `${DARKENER_CLASS_TOGGLE}-open`;\n\n const shouldNotTouch = () => {\n return window.innerWidth >= Settings.get().smallBreakpoint;\n };\n\n if (!darkener || !navigationContainer) {\n throw new Error('Could not find needed elements (Darkener and/or NavigationId)');\n }\n\n this.darkener = darkener;\n this.darkenerClassToggle = DARKENER_CLASS_TOGGLE;\n this.darkenerClassToggleInstant = DARKENER_CLASS_INSTANT_TOGGLE;\n this.globalToggleClass = Settings.get().canvasToggledClass;\n\n this.navigationContainer = navigationContainer;\n this.navigationContainerId = navigationContainer.id;\n\n // create id if id does not exist\n if (!this.navigationContainerId) {\n this.navigationContainerId = Util.guid();\n navigationContainer.id = this.navigationContainerId;\n }\n\n if (!disableTouch) {\n navigationContainer.addEventListener('touchstart', (e) => {\n if (shouldNotTouch()) {\n return;\n }\n touchedX = e.touches[0].clientX;\n navigationContainer.mustHide = false;\n });\n navigationContainer.addEventListener('touchmove', (e) => {\n if (shouldNotTouch()) {\n return;\n }\n const { clientX } = e.touches[0];\n const target = navigationContainer;\n const style = target.style;\n const calcX = touchedX - clientX;\n const bounds = target.getBoundingClientRect();\n const compare = factor > 0 ? calcX <= 0 : calcX >= 0;\n if (compare) {\n style.transition = 'transform 0s ease';\n style.webkitTransition = '-webkit-transform 0s ease';\n target.mustHide = factor > 0 ? calcX * -1 >\n bounds.width / HIDE_FACTOR : calcX > bounds.width / HIDE_FACTOR;\n const transform = `translate3d(${calcX * -1}px,0,0)`;\n style.transform = transform;\n style.webkitTransform = transform;\n }\n });\n navigationContainer.addEventListener('touchend', () => {\n if (shouldNotTouch()) {\n return;\n }\n const target = navigationContainer;\n const style = target.style;\n if (target.mustHide) {\n const width = target.getBoundingClientRect().width * factor;\n style.transition = 'transform .2s ease';\n style.webkitTransition = '-webkit-transform .2s ease';\n const transform = `translate3d(${width}px,0,0)`;\n style.transform = transform;\n style.webkitTransform = transform;\n this._remove().then(() => {\n this.resetTransform(style);\n });\n this._removeInstant();\n } else {\n this.resetTransform(style);\n }\n });\n }\n }\n\n /**\n * @param {Object} s\n */\n resetTransform(s) {\n s.transform = '';\n s.transition = '';\n s.webkitTransform = '';\n s.webkitTransition = '';\n }\n\n /**\n * @param {Object} [event]\n * @private\n */\n _remove(event) {\n return new Promise((resolve) => {\n Util.addEventOnce(Settings.getTransitionEvent(), this.navigationContainer, () => {\n // add timeout because transition event fires a little to early\n setTimeout(() => {\n requestAnimationFrame(() => {\n const body = global.document.body;\n OffCanvas.currentOpen = null;\n body.classList.remove(this.darkenerClassToggle);\n global.document.documentElement.classList.remove(this.globalToggleClass);\n if (!!event) {\n Event.dispatchAndFire(this.navigationContainer, EVENT_TOGGLE);\n }\n resolve();\n });\n }, Settings.get().darkenerFadeDelay);\n });\n });\n }\n\n /**\n * @private\n */\n _removeInstant() {\n this.navigationContainer.classList.remove(OPEN_CLASS);\n global.document.body.classList.remove(this.darkenerClassToggleInstant);\n this.darkener.classList.remove(INIT_CLASS);\n FixedWindow.getInstance().close();\n }\n\n /**\n * Toggles a an off-canvas element\n * @param [e]\n * @private\n */\n toggle(e) {\n if (e) {\n e.preventDefault();\n }\n this.resetTransform(this.navigationContainer.style);\n const bodyClass = global.document.body.classList;\n const darkenerClass = this.darkener.classList;\n const DARKENER_CLASS_TOGGLE = this.darkenerClassToggle;\n const DARKENER_CLASS_INSTANT_TOGGLE = this.darkenerClassToggleInstant;\n const navigationControllerClassList = this.navigationContainer.classList;\n if (!OffCanvas.currentOpen) {\n Util.addEventOnce(Settings.getTransitionEvent(), this.navigationContainer, () => {\n if (!!e) {\n Event.dispatchAndFire(this.navigationContainer, EVENT_TOGGLE);\n }\n });\n OffCanvas.currentOpen = this;\n FixedWindow.getInstance().open(this);\n global.document.documentElement.classList.add(this.globalToggleClass);\n bodyClass.add(DARKENER_CLASS_INSTANT_TOGGLE);\n bodyClass.add(DARKENER_CLASS_TOGGLE);\n darkenerClass.add(INIT_CLASS);\n navigationControllerClassList.add(OPEN_CLASS);\n } else {\n return this.close(e);\n }\n }\n\n close(event) {\n if (this.navigationContainer.classList.contains(OPEN_CLASS)) {\n const navigationControllerClassList = this.navigationContainer.classList;\n const promise = this._remove(event);\n this._removeInstant(navigationControllerClassList);\n return promise;\n }\n return new Promise(r => r());\n }\n\n /**\n * Register events\n * @param [delegate]\n */\n registerEvents(delegate) {\n const thisDelegate = delegate || global.document;\n FixedWindow.getInstance().addScreenConstraint(OffCanvas, (width) => width < Settings.get().smallBreakpoint);\n thisDelegate.addEventListener(Settings.getTabEvent(), (e) => {\n if (OffCanvas.currentOpen && OffCanvas.currentOpen !== this) {\n return;\n }\n const id = this.navigationContainerId;\n const validTarget = e.target.getAttribute(ATTR_TARGET) === id;\n if (!Util.isPartOfNode(e.target, this.navigationContainer)) {\n if (validTarget || (OffCanvas.currentOpen === this && e.target === this.darkener)) {\n this.toggle(e);\n }\n } else {\n if (e.target.hasAttribute(ATTR_CLOSE_SIDEBAR)) {\n this.toggle(e);\n }\n }\n });\n }\n}\n\nOffCanvas.currentOpen = null;\n\nexport default OffCanvas;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/OffCanvas.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Dropdown\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n'use strict';\n\nimport Util from './util/Util';\nimport Settings from './util/Settings';\nimport Event from './util/Event';\nimport Widget from './Widget';\nimport FixedWindow from './lib/FixedWindow';\n\n/**\n * @type {string}\n */\nconst ATTR_CC = 'data-collision-container';\n/**\n * @type {string}\n */\nconst ATTR_DARKENER = 'data-darkener-container';\n/**\n * @type {string}\n */\nconst DARKENER_INIT = 'init';\n/**\n * @type {string}\n */\nconst ATTR_DATA_TARGET = 'data-target';\n/**\n * @type {string}\n */\nconst ATTR_CLOSE_DROPDOWN = 'data-close-dropdown';\n/**\n * @type {string}\n */\nconst ATTR_NAME = 'data-dropdown';\n/**\n * @type {string}\n */\nconst STATE_LOADING = 'loading';\n\nconst CLS_DARKENER_DROPDOWN = 'darkener-dropdown';\n/**\n * @type {string}\n */\nconst CLS_OPEN = 'open';\n\n/**\n * @type {string}\n */\nconst CLS_DROPDOWN = 'dropdown';\n\n/**\n * @type {string}\n */\nexport const EVENT_DROPDOWN_CLOSED = 'flexcss.dropdown.closed';\n\n/**\n * A Dropdown\n */\nclass Dropdown {\n constructor(DelegateContainer, Darkener) {\n const doc = global.document;\n\n /**\n * Container Element\n * @type {HTMLElement}\n */\n this.container = DelegateContainer instanceof HTMLElement ?\n DelegateContainer : doc.getElementById(DelegateContainer);\n\n this.currentOpen = null;\n this.currentTarget = null;\n /**\n * @type {HTMLElement}\n */\n this.darkener = Darkener instanceof HTMLElement ? Darkener : document.getElementById(Darkener);\n\n this.destroyOnClose = false;\n\n if (!this.darkener || !this.container) {\n throw new Error('required elements not found (darkener and container element)');\n }\n }\n\n /**\n * Method that handles delegation events for dropdowns\n * @param e\n * @returns {boolean}\n * @private\n */\n _delegateFunction(e) {\n const currentOpen = this.currentOpen;\n const target = Util.closestCallback(e.target, n => n instanceof HTMLElement && n.hasAttribute(ATTR_NAME));\n const targetIsCurrent = target === this.currentTarget;\n\n if (currentOpen && !Util.isPartOfNode(e.target, currentOpen) || targetIsCurrent) {\n this.close();\n if (targetIsCurrent) {\n e.preventDefault();\n }\n return targetIsCurrent ? false : this._delegateFunction(e);\n }\n\n if (target && !currentOpen) {\n e.preventDefault();\n e.stopImmediatePropagation();\n\n if (target.isLoading) {\n return false;\n }\n this.createDropdown(target);\n } else {\n if (currentOpen) {\n if (e.target.hasAttribute(ATTR_CLOSE_DROPDOWN)) {\n e.preventDefault();\n this.close();\n }\n if (!Util.isPartOfNode(e.target, currentOpen)) {\n this.close();\n }\n }\n }\n }\n\n /**\n * Register Events for this dropdown container\n * @returns {Dropdown}\n */\n registerEvents() {\n FixedWindow.getInstance().addScreenConstraint(Dropdown, (width) => width < Settings.get().smallBreakpoint);\n this.container.addEventListener(Settings.getTabEvent(), this._delegateFunction.bind(this), true);\n return this;\n }\n\n /**\n * Destroys this instance, unbinds events\n * @returns {Dropdown}\n */\n destroy() {\n this.container.removeEventListener(Settings.getTabEvent(), this._delegateFunction.bind(this), true);\n return this;\n }\n\n\n /**\n * Destroys instance on close of dropdown\n * @param v\n * @returns {Dropdown}\n */\n setDestroyOnClose(v) {\n this.destroyOnClose = v;\n return this;\n }\n\n\n /**\n * Will add the right class to container for specific darkener id\n * @param instance\n * @param show\n */\n toggleDarkenerToggler(instance, show) {\n const cls = `toggle-${(instance.id || CLS_DARKENER_DROPDOWN)}`;\n const classList = this.container.classList;\n if (show) {\n classList.add(cls);\n } else {\n classList.remove(cls);\n }\n }\n\n /**\n * Closes Dropdown on current instance\n * @return {Boolean|Promise}\n */\n close() {\n const currentOpen = this.currentOpen;\n if (!currentOpen) {\n return false;\n }\n let future;\n const darkenerInstance = currentOpen.flexDarkenerInstance || this.darkener;\n const thisCurrentOpen = currentOpen;\n\n future = new Promise((resolve) => {\n if (window.getComputedStyle(currentOpen).position === 'fixed') {\n Util.addEventOnce(Settings.getTransitionEvent(), currentOpen, () => {\n setTimeout(() => {\n Event.dispatchAndFire(thisCurrentOpen, EVENT_DROPDOWN_CLOSED);\n // if a new dropdown has been opened in the meantime, do not remove darkener\n if (this.currentOpen !== null) {\n return false;\n }\n this.toggleDarkenerToggler(darkenerInstance, false);\n resolve(true);\n }, Settings.get().darkenerFadeDelay);\n });\n } else {\n resolve(true);\n Event.dispatchAndFire(thisCurrentOpen, EVENT_DROPDOWN_CLOSED);\n }\n });\n\n FixedWindow.getInstance().close();\n currentOpen.classList.remove(CLS_OPEN);\n\n if (currentOpen.flexDarkenerInstance) {\n currentOpen.flexDarkenerInstance.classList.remove(DARKENER_INIT);\n } else {\n this.darkener.classList.remove(DARKENER_INIT);\n }\n\n this.currentOpen = null;\n this.currentTarget = null;\n\n if (this.destroyOnClose) {\n this.destroy();\n }\n\n return future;\n }\n\n /**\n * Creates a dropdown on given target and opens it\n * @param {HTMLElement} target target where this dropdown is placed\n * @param {FlexCss.Widget} [thisWidget] if given will use widget instead of widget instance\n * @return {FlexCss.Dropdown}\n */\n createDropdown(target, thisWidget) {\n const doc = global.document;\n\n if (!target) {\n throw new Error('Dropdown target not found');\n }\n\n const widget = thisWidget || Widget.findWidget(target);\n let future;\n const data = target.getAttribute(ATTR_NAME);\n const dropdownContainerElement = doc.getElementById(data);\n const async = !dropdownContainerElement && Widget.isWidget(widget) ? widget.getAsync() : false;\n\n if (async) {\n target.classList.add(STATE_LOADING);\n target.isLoading = true;\n future = async.then((r) => {\n if (r instanceof HTMLElement) {\n if (r.id) {\n target.setAttribute(ATTR_NAME, r.id);\n }\n return r;\n }\n // Create container Element:\n const element = doc.createElement('div');\n element.className = CLS_DROPDOWN;\n element.innerHTML = r;\n element.id = Util.guid();\n // Cache target for later use:\n target.setAttribute(ATTR_NAME, element.id);\n this.container.appendChild(element);\n return element;\n }).then((r) => {\n target.isLoading = false;\n target.classList.remove(STATE_LOADING);\n return r;\n });\n } else {\n if (!dropdownContainerElement) {\n throw new Error(`Could not found Dropdown container with ID \"${data}\"`);\n }\n future = new Promise((r) => {\n r(dropdownContainerElement);\n });\n }\n\n future.then((dropdownContent) => {\n if (this.currentOpen) {\n this.close();\n }\n // Skip one frame to show animation\n target.dropdownContent = dropdownContent;\n const isAbsolute = global.getComputedStyle(dropdownContent).position === 'absolute';\n dropdownContent.hfWidgetInstance = this;\n\n if (!target.flexCollisionContainer) {\n const collisionC = target.getAttribute(ATTR_CC);\n target.flexCollisionContainer = collisionC ?\n doc.getElementById(collisionC) || document.documentElement : document.documentElement;\n }\n\n dropdownContent.classList.toggle(CLS_OPEN);\n if (dropdownContent.classList.contains(CLS_OPEN)) {\n this.currentOpen = dropdownContent;\n this.currentTarget = target;\n }\n if (isAbsolute) {\n // Check collision:\n let selfTarget = target.getAttribute(ATTR_DATA_TARGET);\n selfTarget = selfTarget ? doc.getElementById(selfTarget) : target;\n Util.setupPositionNearby(selfTarget, dropdownContent, target.flexCollisionContainer);\n } else {\n FixedWindow.getInstance().open(this);\n // optionally get custom darkener container for target\n const d = target.getAttribute(ATTR_DARKENER);\n if (d) {\n dropdownContent.flexDarkenerInstance = doc.getElementById(d);\n (dropdownContent.flexDarkenerInstance || this.darkener).classList.toggle(DARKENER_INIT);\n } else {\n this.darkener.classList.toggle(DARKENER_INIT);\n }\n this.toggleDarkenerToggler(dropdownContent.flexDarkenerInstance || this.darkener, true);\n\n dropdownContent.style.left = '0';\n dropdownContent.style.top = 'auto';\n }\n });\n }\n\n}\n\nexport default Dropdown;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Dropdown.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.LightBox\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n'use strict';\n\n/* global Image, TouchEvent*/\n\nimport Modal, { EVENT_MODAL_CLOSED } from './Modal';\nimport Settings from './util/Settings';\nimport Widget from './Widget';\n\nconst ATTR_MAX_WIDTH = 'data-original-width';\nconst ATTR_MAX_HEIGHT = 'data-original-height';\nconst ATTR_SRC = 'data-src';\n\nconst CLS_HAS_PREV = 'has-prev';\nconst CLS_HAS_NEXT = 'has-next';\nconst CLS_LOADING = 'loading';\n\nconst ATTR_NO_THUMBNAIL = 'data-no-thumbnail';\nconst ATTR_DATA_HREF = 'data-href';\nconst ATTR_HREF = 'href';\n\nconst KEY_NEXT = 39;\nconst KEY_PREV = 37;\nconst ATTR_CLOSE = 'data-close-modal';\n/**\n * A Simple LightBox\n */\nclass LightBox {\n\n /**\n * Creates a new Lightbox\n * @param DelegateContainer\n * @param AttributeSelector\n * @param ModalAppend\n * @param [options]\n */\n constructor(DelegateContainer, AttributeSelector, ModalAppend, options) {\n const thisDelegateContainer = DelegateContainer instanceof HTMLElement ? DelegateContainer :\n document.getElementById(DelegateContainer);\n\n this._modalAppend = ModalAppend || DelegateContainer;\n /**\n * @type {Function}\n */\n this._resizeEvent = null;\n /**\n * @type {Function}\n */\n this._keyboardNextEvent = null;\n /**\n * @type {Promise}\n */\n this._future = null;\n /**\n * @type {Promise}\n */\n this._nextFuture = this._future;\n /**\n * @type {HTMLElement}\n */\n this._imageContainer = null;\n /**\n * @type {HTMLElement}\n */\n this._modalContainerDiv = null;\n /**\n * @type {HTMLElement}\n */\n this._contentContainer = null;\n /**\n * @type {HTMLElement}\n */\n this._closerContainerDiv = null;\n /**\n * @type {HTMLElement}\n */\n this._delegateContainer = thisDelegateContainer;\n /**\n * @type {HTMLElement}\n */\n this._attributeSelector = AttributeSelector;\n /**\n * @type {Widget}\n */\n this._widget = null;\n /**\n * @type {boolean}\n */\n this._isOpen = false;\n /**\n * @type {HTMLElement}\n */\n this.target = null;\n /**\n * @type {HTMLElement}\n */\n this.img = null;\n /**\n * @type {boolean}\n */\n this._isLoading = false;\n\n /**\n * Default options\n */\n this.options = {\n // set if prev and next should be available\n registerPrevNextEvents: true,\n // set if modal should be closed after last image\n closeOnLast: true,\n // called when next image is requested (either by keyboard or click), return false to abort\n onNext: () => {\n return true;\n },\n onClose: () => {\n },\n getNext: null,\n getPrev: null,\n // called when underlying target changed\n onSwitchImage: () => {\n }\n };\n\n Object.assign(this.options, options);\n }\n\n /**\n * @param {HTMLElement} node\n * @returns {HTMLElement|null}\n */\n findImmediateNextTarget(node) {\n if (node && node.children[0].hasAttribute(this._attributeSelector)) {\n return node.children[0];\n }\n return null;\n }\n\n /**\n * Will fetch the next element of a lightBox\n * @param {HTMLElement} target\n * @returns {null|HTMLElement}\n */\n getNext(target) {\n if (this.options.getNext) {\n return this.options.getNext.apply(this, [target]);\n }\n return this.findImmediateNextTarget(target.parentNode.nextElementSibling);\n }\n\n /**\n * Will fetch the previous element of a lightBox\n * @param {HTMLElement} target\n * @returns {null|HTMLElement}\n */\n getPrev(target) {\n if (this.options.getPrev) {\n return this.options.getPrev.apply(this, [target]);\n }\n return this.findImmediateNextTarget(target.parentNode.previousElementSibling);\n }\n\n /**\n * Registers events for delegate container\n */\n registerEvents(onOpen) {\n this._delegateContainer.addEventListener(Settings.getTabEvent(), (e) => {\n let target = e.target;\n const parent = target.parentNode;\n let validTarget = target.hasAttribute(this._attributeSelector);\n const parentIsValid = parent && parent.hasAttribute(this._attributeSelector);\n\n if (!validTarget && parentIsValid) {\n validTarget = true;\n target = parent;\n }\n if (validTarget) {\n e.preventDefault();\n this.open(target).then((r) => {\n if (onOpen) {\n onOpen.apply(this, [r, target]);\n }\n });\n }\n });\n }\n\n /**\n * @returns {HTMLElement}\n */\n getContentContainer() {\n return this._contentContainer;\n }\n\n /**\n * Setup max-width and max-height\n * @param {HTMLElement} target\n * @param {HTMLElement} img\n * @param {HTMLElement} loadedImage\n * @private\n */\n static _setupMaxWidthHeight(target, img, loadedImage) {\n const nextMaxWidth = target.getAttribute(ATTR_MAX_WIDTH);\n const nextMaxHeight = target.getAttribute(ATTR_MAX_HEIGHT);\n if (nextMaxWidth && nextMaxHeight) {\n img.style.maxWidth = nextMaxWidth + \"px\";\n img.style.maxHeight = nextMaxHeight + \"px\";\n } else {\n img.style.maxWidth = loadedImage.width + \"px\";\n img.style.maxHeight = loadedImage.height + \"px\";\n }\n }\n\n /**\n * Switches to the next image\n * @param {boolean} direction\n */\n switchImageByDirection(direction) {\n const next = direction ? this.getPrev(this.target) : this.getNext(this.target);\n if (this.options.onNext.apply(this, [next])) {\n return this.switchImage(next);\n }\n return new Promise((_, reject) => reject(next));\n }\n\n /**\n * Checks if lightbox is currently loading\n * @returns {boolean}\n */\n isLoading() {\n return this._isLoading;\n }\n\n /**\n * Checks if modal should be closed\n * @private\n */\n _runOptionalClose() {\n if (this.options.closeOnLast) {\n this.modal.close();\n }\n }\n\n _setupPrevNextStates() {\n const target = this.target;\n const hasPrev = this.getPrev(target);\n const hasNext = this.getNext(target);\n const hasPrevClass = CLS_HAS_PREV;\n const hasNextClass = CLS_HAS_NEXT;\n // because IE does not support the second toggle parameter, we need to do this manually\n if (hasPrev) {\n this._imageContainer.classList.add(hasPrevClass);\n } else {\n this._imageContainer.classList.remove(hasPrevClass);\n }\n if (hasNext) {\n this._imageContainer.classList.add(hasNextClass);\n } else {\n this._imageContainer.classList.remove(hasNextClass);\n }\n }\n\n /**\n * @param img\n * @private\n */\n _calculateContainer(img) {\n if (Settings.isIE()) {\n setTimeout(() => {\n this._imageContainer.style.height = img.offsetHeight + 'px';\n }, 0);\n }\n }\n\n /**\n * Switch to a specific image\n * @param next\n * @returns {*}\n */\n switchImage(next) {\n const self = this;\n const img = this.img;\n this._isLoading = true;\n self._nextFuture = new Promise((resolve, reject) => {\n // notify observers about image switching\n self.options.onSwitchImage.apply(self, [self._nextFuture]);\n if (next) {\n const nextThumb = next.hasAttribute(ATTR_NO_THUMBNAIL) ? next : (next.children[0] || next);\n const nextHighRes = next.getAttribute(ATTR_DATA_HREF) ||\n next.getAttribute(ATTR_HREF);\n const nextSource = nextThumb.getAttribute(ATTR_SRC) || nextThumb.src || nextHighRes;\n const nextImgObject = new Image();\n\n if (!nextSource) {\n reject(next);\n return;\n }\n // set new target to next element\n this.target = next;\n nextImgObject.src = nextSource;\n self._imageContainer.classList.add(CLS_LOADING);\n nextImgObject.addEventListener('load', () => {\n img.src = nextSource;\n self._imageContainer.style.backgroundImage = 'url(' + nextSource + ')';\n LightBox._setupMaxWidthHeight(next, img, nextImgObject);\n self._calculateContainer(img);\n self.highRes(nextThumb, nextHighRes);\n self._setupPrevNextStates();\n self._imageContainer.classList.remove(CLS_LOADING);\n this._isLoading = false;\n resolve(nextSource, this.target);\n });\n } else {\n reject(this);\n }\n });\n return self._nextFuture;\n }\n\n\n /**\n * Setup High-Resolution picture\n * @param {HTMLElement} thisThumbnail\n * @param {String} thisImgHighResolution\n */\n highRes(thisThumbnail, thisImgHighResolution) {\n if (thisImgHighResolution && thisThumbnail.src !== thisImgHighResolution) {\n const highImageObj = new Image();\n highImageObj.src = thisImgHighResolution;\n highImageObj.addEventListener('load', () => {\n // if current image is still available\n if (this._getSrc(thisThumbnail) === this.img.src) {\n this.img.src = thisImgHighResolution;\n this._imageContainer.style.backgroundImage = 'url(' + thisImgHighResolution + ')';\n }\n });\n }\n }\n\n /**\n * Extracts the source of an image\n * @param target\n * @returns {String|null}\n * @private\n */\n _getSrc(target) {\n return target.getAttribute(ATTR_SRC) || target.src;\n }\n\n /**\n * Will show a lightBox on given target\n * @param {HTMLElement} target\n * @returns {$.Deferred|*}\n */\n open(target) {\n const self = this;\n\n if (!target) {\n return false;\n }\n\n this.target = target;\n\n // if lightBox is open, we just switch to the new target image\n if (this._isOpen && target) {\n return this.switchImage(target).then(() => {\n return this;\n });\n }\n\n this._isOpen = true;\n\n /**\n * Setup Widget for modal\n * @type {Widget}\n */\n this._widget = new Widget().setAsync(() => {\n // thumbnail is either target itself or expected to be first childNode\n const thumbnail = target.hasAttribute(ATTR_NO_THUMBNAIL) ? target : (target.children[0] || target);\n\n const imgHighResolution = target.getAttribute(ATTR_DATA_HREF) || target.getAttribute(ATTR_HREF);\n const imgSrc = this._getSrc(thumbnail) || imgHighResolution;\n\n const imageObj = new Image();\n imageObj.src = imgSrc;\n this._imageContainer = document.createElement('div');\n this._modalContainerDiv = document.createElement('div');\n this._closerContainerDiv = document.createElement('i');\n this._contentContainer = document.createElement('div');\n\n this._closerContainerDiv.className = 'modal-close modal-close-lightbox icon-cancel-1';\n this._closerContainerDiv.setAttribute(ATTR_CLOSE, ATTR_CLOSE);\n\n this._modalContainerDiv.className = 'modal image-modal';\n this._modalContainerDiv.appendChild(this._imageContainer);\n this._modalContainerDiv.appendChild(this._contentContainer);\n this._modalContainerDiv.appendChild(this._closerContainerDiv);\n this._contentContainer.className = 'content-container';\n this._isLoading = true;\n this._future = new Promise((resolve) => {\n imageObj.addEventListener('load', () => {\n this._imageContainer.className = 'image-container';\n const img = document.createElement('img');\n // current image\n this.img = img;\n\n img.src = imgSrc;\n LightBox._setupMaxWidthHeight(target, img, imageObj);\n this._imageContainer.appendChild(img);\n this._imageContainer.style.backgroundImage = 'url(' + imgSrc + ')';\n\n resolve(self._modalContainerDiv);\n this._isLoading = false;\n\n if (Settings.isIE()) {\n self._resizeEvent = global.addEventListener('resize', () => {\n setTimeout(() => {\n self._imageContainer.style.height = img.offsetHeight + 'px';\n }, 0);\n });\n }\n\n if (self.options.registerPrevNextEvents) {\n self._setupPrevNextStates();\n // prev or next on touch/click\n self._imageContainer.addEventListener(Settings.getTabEvent(), (e) => {\n if (self.isLoading()) {\n return;\n }\n e.preventDefault();\n\n const ev = e;\n const pageX = global.TouchEvent && ev instanceof TouchEvent ?\n ev.changedTouches[0].pageX : ev.pageX;\n const rect = self._imageContainer.getBoundingClientRect();\n const imgX = rect.left;\n const wrapperWidth = rect.width;\n const posX = pageX - imgX;\n\n self.switchImageByDirection(wrapperWidth / 2 > posX).catch(() => {\n self._runOptionalClose();\n });\n });\n\n // register keyboard events\n self._keyboardNextEvent = (e) => {\n if (e.keyCode === KEY_NEXT || e.keyCode === KEY_PREV) {\n if (self.isLoading()) {\n return;\n }\n self.switchImageByDirection(e.keyCode === KEY_PREV).catch(() => {\n self._runOptionalClose();\n });\n }\n };\n global.addEventListener('keydown', self._keyboardNextEvent);\n } else {\n self._imageContainer.addEventListener(Settings.getTabEvent(), () => {\n self._runOptionalClose();\n });\n }\n\n self.highRes(thumbnail, imgHighResolution);\n });\n });\n\n this._future.then(() => {\n self._calculateContainer(this.img);\n });\n\n self._modalContainerDiv.addEventListener(EVENT_MODAL_CLOSED, () => {\n // cleanup:\n this._modalContainerDiv.parentNode.removeChild(this._modalContainerDiv);\n this.options.onClose.apply(self);\n this._isOpen = false;\n this.modal.destroy();\n // unbind events\n if (this._keyboardNextEvent) {\n global.removeEventListener('keydown', self._keyboardNextEvent);\n }\n if (this._resizeEvent) {\n global.removeEventListener('resize', self._resizeEvent);\n }\n });\n\n return this._future;\n });\n\n this._nextFuture = this._future;\n\n if (self._widget) {\n this.modal = new Modal(this._modalAppend);\n // make sure we close stack before\n return this.modal.close().fromWidget(self._widget).then(() => {\n return self._future.then(() => {\n return self;\n });\n });\n }\n return false;\n }\n\n}\n\nexport default LightBox;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/LightBox.js\n **/"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition?5ca6","webpack:///webpack/bootstrap f86d8b3247a2790f9ca5?bc26","webpack:///./src/main/modules/Marklib.js?dcc3","webpack:///./src/main/Rendering.js?6592","webpack:///./~/babel-runtime/core-js/object/get-prototype-of.js?b265","webpack:///./~/core-js/library/fn/object/get-prototype-of.js?5193","webpack:///./~/core-js/library/modules/es6.object.get-prototype-of.js?eaa3","webpack:///./~/core-js/library/modules/$.to-object.js?093c","webpack:///./~/core-js/library/modules/$.defined.js?7087","webpack:///./~/core-js/library/modules/$.object-sap.js?f39d","webpack:///./~/core-js/library/modules/$.export.js?b734","webpack:///./~/core-js/library/modules/$.global.js?4deb","webpack:///./~/core-js/library/modules/$.core.js?7680","webpack:///./~/core-js/library/modules/$.ctx.js?e797","webpack:///./~/core-js/library/modules/$.a-function.js?860b","webpack:///./~/core-js/library/modules/$.fails.js?6c29","webpack:///./~/babel-runtime/helpers/classCallCheck.js?21af","webpack:///./~/babel-runtime/helpers/createClass.js?1dfe","webpack:///./~/babel-runtime/core-js/object/define-property.js?5f70","webpack:///./~/core-js/library/fn/object/define-property.js?b7d8","webpack:///./~/core-js/library/modules/$.js?6ce7","webpack:///./~/babel-runtime/helpers/possibleConstructorReturn.js?aad9","webpack:///./~/babel-runtime/helpers/typeof.js?f4bd","webpack:///./~/babel-runtime/core-js/symbol/iterator.js?d16b","webpack:///./~/core-js/library/fn/symbol/iterator.js?238d","webpack:///./~/core-js/library/modules/es6.string.iterator.js?fe18","webpack:///./~/core-js/library/modules/$.string-at.js?a0b4","webpack:///./~/core-js/library/modules/$.to-integer.js?b29c","webpack:///./~/core-js/library/modules/$.iter-define.js?970f","webpack:///./~/core-js/library/modules/$.library.js?c05f","webpack:///./~/core-js/library/modules/$.redefine.js?2643","webpack:///./~/core-js/library/modules/$.hide.js?2cce","webpack:///./~/core-js/library/modules/$.property-desc.js?e1db","webpack:///./~/core-js/library/modules/$.descriptors.js?8327","webpack:///./~/core-js/library/modules/$.has.js?bcec","webpack:///./~/core-js/library/modules/$.iterators.js?9d0a","webpack:///./~/core-js/library/modules/$.iter-create.js?4401","webpack:///./~/core-js/library/modules/$.set-to-string-tag.js?d0fc","webpack:///./~/core-js/library/modules/$.wks.js?3e04","webpack:///./~/core-js/library/modules/$.shared.js?6ce8","webpack:///./~/core-js/library/modules/$.uid.js?f177","webpack:///./~/core-js/library/modules/web.dom.iterable.js?bf0e","webpack:///./~/core-js/library/modules/es6.array.iterator.js?1e09","webpack:///./~/core-js/library/modules/$.add-to-unscopables.js?af5b","webpack:///./~/core-js/library/modules/$.iter-step.js?76ef","webpack:///./~/core-js/library/modules/$.to-iobject.js?daca","webpack:///./~/core-js/library/modules/$.iobject.js?3ada","webpack:///./~/core-js/library/modules/$.cof.js?74ee","webpack:///./~/babel-runtime/core-js/symbol.js?a70d","webpack:///./~/core-js/library/fn/symbol/index.js?f07a","webpack:///./~/core-js/library/modules/es6.symbol.js?670a","webpack:///./~/core-js/library/modules/$.keyof.js?3b7d","webpack:///./~/core-js/library/modules/$.get-names.js?e4b8","webpack:///./~/core-js/library/modules/$.enum-keys.js?1c2a","webpack:///./~/core-js/library/modules/$.is-array.js?4d69","webpack:///./~/core-js/library/modules/$.an-object.js?2be9","webpack:///./~/core-js/library/modules/$.is-object.js?7453","webpack:///./~/babel-runtime/helpers/inherits.js?0578","webpack:///./~/babel-runtime/core-js/object/set-prototype-of.js?bb00","webpack:///./~/core-js/library/fn/object/set-prototype-of.js?f909","webpack:///./~/core-js/library/modules/es6.object.set-prototype-of.js?b195","webpack:///./~/core-js/library/modules/$.set-proto.js?759b","webpack:///./~/babel-runtime/core-js/object/create.js?aa4b","webpack:///./~/core-js/library/fn/object/create.js?738c","webpack:///./src/main/RenderResult.js?09ff","webpack:///./src/main/RenderingEvents.js?d122","webpack:///./~/babel-runtime/helpers/slicedToArray.js?39c4","webpack:///./~/babel-runtime/core-js/is-iterable.js?350e","webpack:///./~/core-js/library/fn/is-iterable.js?0bd2","webpack:///./~/core-js/library/modules/core.is-iterable.js?77cc","webpack:///./~/core-js/library/modules/$.classof.js?c1cb","webpack:///./~/babel-runtime/core-js/get-iterator.js?1b08","webpack:///./~/core-js/library/fn/get-iterator.js?2cf7","webpack:///./~/core-js/library/modules/core.get-iterator.js?aca7","webpack:///./~/core-js/library/modules/core.get-iterator-method.js?9c88","webpack:///./~/babel-runtime/core-js/set.js?0724","webpack:///./~/core-js/library/fn/set.js?2c6c","webpack:///./~/core-js/library/modules/es6.set.js?dbba","webpack:///./~/core-js/library/modules/$.collection-strong.js?75b1","webpack:///./~/core-js/library/modules/$.redefine-all.js?0c0d","webpack:///./~/core-js/library/modules/$.strict-new.js?979f","webpack:///./~/core-js/library/modules/$.for-of.js?bf1d","webpack:///./~/core-js/library/modules/$.iter-call.js?581c","webpack:///./~/core-js/library/modules/$.is-array-iter.js?787a","webpack:///./~/core-js/library/modules/$.to-length.js?9639","webpack:///./~/core-js/library/modules/$.set-species.js?71c4","webpack:///./~/core-js/library/modules/$.collection.js?1dbc","webpack:///./~/core-js/library/modules/es7.set.to-json.js?e75b","webpack:///./~/core-js/library/modules/$.collection-to-json.js?9a82","webpack:///./~/babel-runtime/core-js/object/assign.js?e6ca","webpack:///./~/core-js/library/fn/object/assign.js?80e4","webpack:///./~/core-js/library/modules/es6.object.assign.js?9007","webpack:///./~/core-js/library/modules/$.object-assign.js?ed5a","webpack:///./~/wolfy87-eventemitter/EventEmitter.js?ed18","webpack:///./src/main/util/Util.js?5bc4","webpack:///./src/main/modules/Site.js","webpack:///./~/babel-runtime/core-js/json/stringify.js","webpack:///./~/core-js/library/fn/json/stringify.js","webpack:///./~/flexcss/src/main/modules/All.js","webpack:///./~/flexcss/src/main/Form.js","webpack:///./~/flexcss/src/main/Tooltip.js","webpack:///./~/flexcss/src/main/util/Util.js","webpack:///./~/flexcss/src/main/DestroyableWidget.js","webpack:///./~/flexcss/src/main/util/Settings.js","webpack:///./~/isomorphic-fetch/fetch-npm-browserify.js","webpack:///./~/whatwg-fetch/fetch.js","webpack:///./~/flexcss/src/main/util/Event.js","webpack:///./~/flexcss/src/main/Modal.js","webpack:///./~/flexcss/src/main/Widget.js","webpack:///./~/flexcss/src/main/lib/FixedWindow.js","webpack:///./~/flexcss/src/main/lib/debounce.js","webpack:///./~/flexcss/src/main/Toggleable.js","webpack:///./~/flexcss/src/main/OffCanvas.js","webpack:///./~/flexcss/src/main/Dropdown.js","webpack:///./~/flexcss/src/main/LightBox.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SCjCS;SAAW;SAAM;SAAc,4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACIxC,KAAM,WAAW,UAAX;;;;;;AAIC,KAAM,4EAAkC,4BAAlC;;;;AAIb,KAAM,gCAAgC,0BAAhC;;;;AAIN,KAAM,sBAAsB,mBAAtB;;;;AAIN,KAAM,8BAA8B,wBAA9B;;;;AAIN,KAAM,eAAe,mBAAf;;;;;;AAMN,KAAM,iCAAiC,EAAjC;;;;;AAMC,KAAM,kDAAqB,cAArB;;;;;;KAKP;;;;;;;;;;AAOF,cAPE,SAOF,CAAY,QAAZ,EAAsB,OAAtB,EAA+B,OAA/B,EAAwC;6CAPtC,WAOsC;;;;;;;;kGAPtC,sBAQQ,SAAS,WADqB;;AAOpC,eAAK,EAAL,GAAU,eAAK,IAAL,EAAV;;;;;;AAPoC,cAapC,CAAK,cAAL,GAAsB,IAAtB;;;;;;AAboC,cAmBpC,CAAK,YAAL,GAAoB,IAApB;;;;;AAnBoC,cAwBpC,CAAK,OAAL,GAAe,WAAW,MAAK,QAAL;;;;;;;AAxBU,cA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;;ACjnBf,mBAAkB,uD;;;;;;ACAlB;AACA,gE;;;;;;ACDA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC,E;;;;;;ACPD;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA,+BAA8B;AAC9B;AACA;AACA,oDAAmD,OAAO,EAAE;AAC5D,G;;;;;;ACTA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oEAAmE;AACnE,sFAAqF;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,gEAA+D;AAC/D;AACA;AACA;AACA,eAAc;AACd,eAAc;AACd,eAAc;AACd,eAAc;AACd,gBAAe;AACf,gBAAe;AACf,0B;;;;;;AC7CA;AACA;AACA;AACA,wCAAuC,gC;;;;;;ACHvC,8BAA6B;AAC7B,sCAAqC,gC;;;;;;ACDrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACnBA;AACA;AACA;AACA,G;;;;;;ACHA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,G;;;;;;ACNA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,G;;;;;;ACRA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA,oBAAmB,kBAAkB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC,G;;;;;;AC1BD,mBAAkB,wD;;;;;;ACAlB;AACA;AACA;AACA,G;;;;;;ACHA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACZA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA;AACA;;AAEA;AACA,G;;;;;;AChBA;;AAEA,uGAAsG,mBAAmB,EAAE,mBAAmB,oGAAoG;;AAElP;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA,uCAAsC,uCAAuC,gBAAgB;;AAE7F;AACA;AACA,EAAC;AACD;AACA,G;;;;;;ACpBA,mBAAkB,wD;;;;;;ACAlB;AACA;AACA,sD;;;;;;ACFA;AACA;;AAEA;AACA;AACA,8BAA6B;AAC7B,eAAc;AACd;AACA,EAAC;AACD;AACA;AACA;AACA,gCAA+B;AAC/B;AACA;AACA,WAAU;AACV,EAAC,E;;;;;;AChBD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,6BAA4B,aAAa;;AAEzC;AACA;AACA;AACA;AACA;AACA,yCAAwC,oCAAoC;AAC5E,6CAA4C,oCAAoC;AAChF,MAAK,2BAA2B,oCAAoC;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAkB,mBAAmB;AACrC;AACA;AACA,oCAAmC,2BAA2B;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,G;;;;;;ACjEA,uB;;;;;;ACAA,0C;;;;;;ACAA;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA,G;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACPA;AACA;AACA,kCAAiC,QAAQ,gBAAgB,UAAU,GAAG;AACtE,EAAC,E;;;;;;ACHD,wBAAuB;AACvB;AACA;AACA,G;;;;;;ACHA,qB;;;;;;ACAA;AACA;AACA;AACA;AACA;;AAEA;AACA,4FAAkF,aAAa,EAAE;;AAEjG;AACA,wDAAuD,0BAA0B;AACjF;AACA,G;;;;;;ACZA;AACA;AACA;;AAEA;AACA,mEAAkE,+BAA+B;AACjG,G;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACNA;AACA;AACA,oDAAmD;AACnD;AACA,wCAAuC;AACvC,G;;;;;;ACLA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA,iE;;;;;;ACFA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iCAAgC;AAChC,eAAc;AACd,kBAAiB;AACjB;AACA,EAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;;AAEA;AACA;AACA,6B;;;;;;ACjCA,6BAA4B,e;;;;;;ACA5B;AACA,WAAU;AACV,G;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACLA;AACA;AACA;AACA;AACA,G;;;;;;ACJA,kBAAiB;;AAEjB;AACA;AACA,G;;;;;;ACJA,mBAAkB,wD;;;;;;ACAlB;AACA;AACA,iD;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,4BAA2B;AAC3B,qBAAoB,4BAA4B,SAAS,IAAI;AAC7D,IAAG;AACH,EAAC;AACD;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,+DAA8D;AAC9D;AACA,MAAK;AACL;AACA,uBAAsB,iCAAiC;AACvD,MAAK;AACL,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAoD,KAAK,QAAQ,iCAAiC;AAClG,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,IAAG;AACH,yBAAwB,eAAe,EAAE;AACzC,yBAAwB,gBAAgB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;;AAEA,iCAAgC,gBAAgB;;AAEhD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA,8EAA6E,sBAAsB;;AAEnG;AACA;AACA;AACA;AACA;AACA,2C;;;;;;AClOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACTA;AACA;AACA;AACA,mBAAkB;;AAElB;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA,G;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACbA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA,G;;;;;;;;;;;;ACFA;;AAEA;;AAEA;;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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAsB,OAAO;AAC7B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gCAA+B;AAC/B,2BAA0B;AAC1B,2BAA0B;AAC1B,sBAAqB;AACrB;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,8DAA6D,OAAO;AACpE;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,IAAG;AACH;AACA;AACA;AACA;AACA;AACA,0BAAyB;AACzB,sBAAqB;AACrB,2BAA0B;AAC1B,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,G;;;;;;AC9JA;AACA;AACA;AACA;AACA,G;;;;;;ACJA;AACA;AACA;AACA,G;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAgE,gBAAgB;AAChF;AACA,IAAG,2CAA2C,gCAAgC;AAC9E;AACA;AACA,G;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,G;;;;;;ACXA;AACA;AACA;AACA;;AAEA;AACA;AACA,G;;;;;;ACPA;AACA;AACA;AACA;AACA,4DAA2D;AAC3D,G;;;;;;ACLA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qBAAoB,aAAa;AACjC,IAAG;AACH,G;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;AACL;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA,G;;;;;;ACtDA;AACA;;AAEA,4BAA2B,uCAAiD,E;;;;;;ACH5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,G;;;;;;ACVA,mBAAkB,wD;;;;;;ACAlB;AACA,wD;;;;;;ACDA;AACA;;AAEA,2CAA0C,gCAAqC,E;;;;;;ACH/E;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,UAAU,EAAE;AAC9C,cAAa,gCAAgC;AAC7C,EAAC,oCAAoC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAC,iB;;;;;;AChCD;AACA;AACA;AACA;AACA;AACA;;AAEA,EAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,iBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,iBAAgB,kBAAkB;AAClC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,iBAAgB,WAAW;AAC3B;AACA;AACA;AACA;;AAEA,oBAAmB,sBAAsB;AACzC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA,wBAAuB,iBAAiB;AACxC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,SAAS;AACxB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,qBAAqB;AACpC,gBAAe,WAAW;AAC1B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,qBAAqB;AACpC,gBAAe,WAAW;AAC1B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,QAAQ;AACvB,gBAAe,qBAAqB;AACpC,gBAAe,WAAW;AAC1B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,MAAM;AACrB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,cAAc;AAC7B,gBAAe,KAAK;AACpB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,EAAE;AACjB,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iBAAgB,UAAU;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAgB,OAAO;AACvB;A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K;AACL;AACA;AACA;;AAEA;AACA;;;AAGA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA,wDAAuD;AACvD,UAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA,wCAAuC,0BAA0B;AACjE;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA,gCAA+B,0BAA0B,eAAe;AACxE;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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AAJ,CAAU,QAAV,GAAqB,YAAY,KAAZ,GAAoB,IAApB,CADlB;AAEH,qBAAI,KAAJ,CAAU,SAAV,GAAsB,YAAY,MAAZ,GAAqB,IAArB,CAFnB;cAHP;;;;YAhLF;;;mBA4dS,S","file":"js/site.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Marklib\"] = factory();\n\telse\n\t\troot[\"Marklib\"] = factory();\n})(this, function() {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/"," \t// The module cache\n \tvar installedModules = {};\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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"../\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap f86d8b3247a2790f9ca5\n **/","import Rendering from '../Rendering';\nimport Util from '../util/Util';\nimport RenderResult from '../RenderResult';\nimport RenderingEvents from '../RenderingEvents';\n\nexport { Rendering, Util, RenderResult, RenderingEvents };\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/modules/Marklib.js\n **/","/* global Node */\n\nimport RenderResult from './RenderResult';\nimport RenderingEvents from './RenderingEvents';\nimport Util, { ATTR_DATA_ORIGINAL_INDEX, DATA_IS_SELECTION } from './util/Util';\n\n/**\n * @type {string}\n */\nconst TAG_NAME = 'x-marker';\n/**\n * @type {string}\n */\nexport const ATTR_DATA_ORIGINAL_OFFSET_START = 'data-original-offset-start';\n/**\n * @type {string}\n */\nconst DATA_ORIGINAL_TEXT_NODE_INDEX = 'original-text-node-index';\n/**\n * @type {string}\n */\nconst ATTR_DATA_START_END = 'data-is-start-end';\n/**\n * @type {string}\n */\nconst ATTR_DATA_IS_HIGHLIGHT_NODE = 'data-is-highlight-node';\n/**\n * @type {string}\n */\nconst ATTR_DATA_ID = 'data-selection-id';\n\n/**\n * @see https://developer.mozilla.org/de/docs/Web/API/Node/compareDocumentPosition\n * @type {number}\n */\nconst DOCUMENT_POSITION_CONTAINED_BY = 16;\n\n\n/**\n * @type {string}\n */\nexport const EVENT_WRAPPED_NODE = 'wrapped-node';\n\n/**\n * Manages a single Render\n */\nclass Rendering extends RenderingEvents {\n\n /**\n * @param {Document} document\n * @param {object} options\n * @param {Node} context\n */\n constructor(document, options, context) {\n super(options, document);\n\n /**\n * ID of rendering, will be set on each element that is part of it\n * @type {String}\n */\n this.id = Util.guid();\n\n /**\n * StartContainer\n * @type {Node}\n */\n this.startContainer = null;\n\n /**\n * EndContainer\n * @type {Node}\n */\n this.endContainer = null;\n\n /**\n * @type {Node}\n */\n this.context = context || this.document;\n\n /**\n * Flag if this instance has been rendered\n * @type {RenderResult}\n * @private\n */\n this._renderResult = null;\n }\n\n /**\n * @returns {string} id of this rendering\n */\n getId() {\n return this.id;\n }\n\n /**\n * @param {string} id\n * @returns {Rendering}\n */\n setId(id) {\n this.id = id;\n\n if (this._renderResult) {\n this.wrapperNodes.forEach((node) => node.setAttribute(ATTR_DATA_ID, this.id));\n }\n\n return this;\n }\n\n /**\n * Creates a Template used as a wrapper and an indication that this is a highlight node\n * @param {Boolean} [omitHighlight]\n * @returns {Node}\n * @private\n */\n _createWrapTemplate(omitHighlight) {\n const el = this.document.createElement(TAG_NAME);\n const vTrue = \"true\";\n\n if (!omitHighlight) {\n el.className = this.options.className.join(' ');\n // save this marker instance to given node\n Rendering.setMarklibInstance(el, this);\n // keep track of highlight nodes\n this.wrapperNodes.push(el);\n el.setAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE, vTrue);\n el.setAttribute(ATTR_DATA_ID, this.getId());\n }\n el.setAttribute(DATA_IS_SELECTION, vTrue);\n\n return el;\n }\n\n /**\n * Creates a Template to use as start and end marks\n * @param {String} text\n * @returns {Node}\n * @private\n */\n _createStartEndWrapTemplate(text) {\n const el = this._createWrapTemplate();\n el.setAttribute(ATTR_DATA_START_END, 'true');\n el.textContent = text;\n return el;\n }\n\n\n /**\n * Creates Start or End Container Element\n * @param initialNode\n * @param text\n * @param offset\n * @param index\n * @returns {Node}\n */\n _createStartOrEndContainer(initialNode, text, offset, index) {\n const wrapper = this._createStartEndWrapTemplate(text);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(initialNode, index));\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n\n return wrapper;\n }\n\n /**\n * Wraps given element\n * @param {Node|HTMLElement} el\n * @param [optionalLength]\n * @param [optionalIndex]\n * @param [optionalIsSameNode]\n * @param {Boolean} [omitHighlight] set to true to prevent node to be a highlight node\n * @returns {Node}\n * @private\n */\n _createWrap(el, optionalLength, optionalIndex, optionalIsSameNode, omitHighlight) {\n const originalIndex = optionalIndex >= 0 ? optionalIndex : Util.calcIndex(el);\n const wrapper = this._createWrapTemplate(omitHighlight);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(el, originalIndex));\n const offsetLength = optionalLength >= 0 ? optionalLength : Util.getOffsetParentIfHas(el);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offsetLength);\n\n // Save a reference to original text node in wrapper\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, originalIndex);\n\n if (optionalIsSameNode) {\n wrapper.setAttribute(ATTR_DATA_START_END, ATTR_DATA_START_END);\n }\n const wrap = Util.wrap(el, wrapper);\n\n this.emit(EVENT_WRAPPED_NODE, el, wrap);\n\n return wrap;\n }\n\n /**\n * Create split container element\n * @param originalElement {Node} original text node element that is created a wrapper for\n * @param index\n * @param offset\n * @returns {Node}\n */\n _createSplitContainer(originalElement, index, offset) {\n const wrapper = this.document.createElement(TAG_NAME);\n wrapper.setAttribute(DATA_IS_SELECTION, 'true');\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(originalElement, index));\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n return wrapper;\n }\n\n /**\n * Walks the tree\n * @param start\n * @param endContainer\n * @param nextParent\n */\n walk(start, endContainer, nextParent) {\n let nextParentNode = start;\n while (nextParentNode && nextParentNode !== nextParent.parentNode) {\n const currentParentNode = nextParentNode;\n nextParentNode = nextParentNode.parentNode;\n if (this.wrapSiblings(currentParentNode.nextSibling, endContainer)) {\n break;\n }\n }\n }\n\n\n /**\n * Will Wrap all textNode siblings of a container (start) inside a defined Element (like a span)\n * If an Element node is found, it will wrap all children of this node inside a element as well.\n * It will stop if endContainer is found as a node\n *\n * @param {Node} start\n * @param {Node} endContainer\n * @returns {boolean} (true if endContainer was found)\n */\n wrapSiblings(start, endContainer) {\n let next = start;\n let found = false;\n\n // Capsule some logic\n const wrap = (n) => {\n const instance = Rendering.getMarklibInstance(n.parentNode);\n if (n.parentNode.hasAttribute(ATTR_DATA_START_END) &&\n n.parentNode.hasAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE) &&\n instance === this) {\n this._createWrap(n, undefined, undefined, undefined, true);\n } else {\n this._createWrap(n);\n }\n };\n\n // helper functions\n\n const wrapIf = (n) => {\n if (!Util.nodeIsEmpty(n)) {\n wrap(n);\n }\n };\n\n const walkIfContained = (e) => {\n if (e === endContainer) {\n return false;\n }\n if (Node.TEXT_NODE === e.nodeType) {\n wrapIf(e);\n }\n return true;\n };\n\n const walkIfNotContained = (el) => {\n wrapIf(el);\n };\n\n while (next !== null && next !== endContainer) {\n const currentNext = next;\n next = next.nextSibling;\n // Found a text node, directly wrap inside a span\n if (Node.TEXT_NODE === currentNext.nodeType) {\n wrapIf(currentNext);\n } else {\n if ((currentNext.compareDocumentPosition(endContainer) & DOCUMENT_POSITION_CONTAINED_BY)) {\n Util.walkDom(currentNext, walkIfContained);\n found = true;\n } else {\n Util.walkTextNodes(currentNext, walkIfNotContained);\n }\n if (found) {\n return true;\n }\n }\n }\n return found;\n }\n\n /**\n * Marks text of the same node\n * @param {Node} textNode\n * @param {int} startIndex\n * @param {int} endIndex\n * @private\n */\n _markTextSameNode(textNode, startIndex, endIndex) {\n const initialText = textNode.nodeValue;\n const initialIndex = Util.calcIndex(textNode);\n\n if (!initialText) {\n return false;\n }\n // If there is an unmarked part in the beginning of the text node,\n // cut off that part and put it into it's own textnode.\n if (startIndex > 0) {\n const textBefore = initialText.slice(0, startIndex);\n textNode.parentNode.insertBefore(this.document.createTextNode(textBefore), textNode);\n // wrap cutted text node:\n Util.wrap(textNode.previousSibling, this._createSplitContainer(textNode,\n initialIndex, Util.getOffsetParentIfHas(textNode)));\n }\n // If there is an unmarked part at the end of the text node,\n // cut off that part and put it into it's own textnode.\n if (endIndex < initialText.length) {\n const textAfter = initialText.slice(endIndex, initialText.length);\n textNode.parentNode.insertBefore(this.document.createTextNode(textAfter), textNode.nextSibling);\n Util.wrap(textNode.nextSibling, this._createSplitContainer(textNode,\n initialIndex, Util.getOffsetParentIfHas(textNode) + endIndex));\n }\n\n // Cutoff the unmarked parts and wrap the textnode into a span.\n textNode.nodeValue = initialText.slice(startIndex, endIndex);\n this.startContainer = this._createWrap(textNode,\n Util.getOffsetParentIfHas(textNode) + startIndex, initialIndex, true).parentNode;\n this.endContainer = this.startContainer;\n return this.startContainer;\n }\n\n\n /**\n * Marks text of end and start containers if start and end nodes are different\n * Important: There might be no end container!\n *\n * @param {Node} startContainer\n * @param {Node} endContainer\n * @param {int} startOffset\n * @param {int} endOffset\n * @returns {{startT: (Node), endT: (Node)}}\n * @private\n */\n _markTextDifferentNode(startContainer, endContainer, startOffset, endOffset) {\n // Get current for both start and end:\n const startContainerIndex = Util.calcIndex(startContainer);\n const endContainerIndex = Util.calcIndex(endContainer);\n\n // Split text\n const fullTextStartValue = startContainer.nodeValue;\n // init with startContainer because we may have not a text node here\n let startT = startContainer;\n\n if (undefined !== fullTextStartValue) {\n const partTextStartValue = fullTextStartValue.slice(startOffset, fullTextStartValue.length);\n // Set new text to start node\n startContainer.nodeValue = fullTextStartValue.slice(0, startOffset);\n\n const offsetStart = Util.getOffsetParentIfHas(startContainer);\n // Create a new node for splitted text, offset is the length of new startContainer.nodeValue:\n startT = this._createStartOrEndContainer(startContainer, partTextStartValue,\n offsetStart === startOffset ? offsetStart : offsetStart + startOffset, startContainerIndex);\n // Append this node after startContainer\n startContainer.parentNode.insertBefore(startT, startContainer.nextSibling);\n this.startContainer = startT;\n\n if (startContainer.nodeValue) {\n // Wrap start container in detection node, offset is always 0 or parent offset.\n Util.wrap(startContainer, this._createSplitContainer(startContainer, startContainerIndex,\n Util.getOffsetParentIfHas(startContainer)));\n }\n }\n\n // init with endContainer because we may have not a text node here\n let endT = endContainer;\n\n // 2. Extract end Text node,\n const fullTextEndValue = endContainer.nodeValue;\n // It's possible that end container value is null (if a whole paragraph is marked)\n if (undefined !== fullTextEndValue) {\n // Split text\n const partTextEndValue = fullTextEndValue.slice(0, endOffset);\n endContainer.nodeValue = fullTextEndValue.slice(endOffset, fullTextEndValue.length);\n // End Container start offset is always 0 or parent offset.\n endT = this._createStartOrEndContainer(endContainer, partTextEndValue,\n Util.getOffsetParentIfHas(endContainer), endContainerIndex);\n\n endContainer.parentNode.insertBefore(endT, endContainer);\n this.endContainer = endT;\n const offsetParent = Util.getOffsetParentIfHas(endContainer);\n Util.wrap(endContainer, this._createSplitContainer(endContainer, endContainerIndex,\n offsetParent === endOffset ? offsetParent : offsetParent + endOffset));\n }\n\n return {\n startT,\n endT\n };\n }\n\n /**\n * Renders a selection\n * @param {Node} startContainerP\n * @param {Node} endContainerP\n * @param {Node} commonAncestor\n * @param {int} startOffset\n * @param {int} endOffsetP\n * @returns RenderResult\n * @private\n */\n _renderWithElements(startContainerP, endContainerP, commonAncestor, startOffset, endOffsetP) {\n if (this._renderResult) {\n return this._renderResult;\n }\n let startContainer = startContainerP;\n let endContainer = endContainerP;\n let endOffset = endOffsetP;\n let outer = Util.parents(startContainer, commonAncestor);\n outer = outer[outer.length - 1];\n const contextContainer = outer ? outer : commonAncestor;\n\n // Same Element, means the selection is fully contained in a discrete area, start and endpoint have the same parent\n // but are different nodes:\n\n // Start and End offset have to be recalculated because dom might be already changed by highlighting in given node\n // 1: First detect real start offset in startContainer:\n\n // That works by selecting the highest wrapper and get original-offset-start data element, see \"findOriginalOffset\"\n // So first select that container:\n const originalStartOffset = Util.findOriginalOffset(startContainer);\n const originalEndOffset = Util.findOriginalOffset(endContainer);\n\n // We may run into Browser Bugs:\n\n // If both are not text nodes, use next sibling as endContainer\n if (startContainer.nodeType !== Node.TEXT_NODE && endContainer.nodeType !== Node.TEXT_NODE) {\n if (startContainer === endContainer) {\n endContainer = endContainer.nextElementSibling || endContainer;\n }\n }\n // IF start/end container is not type of text, select first child text node:\n // We run in some bugs with firefox here that selects no text-nodes sometimes, trying to fix this here\n // Sometimes does not work correctly... (specially when DOM was modified)\n if (startContainer.nodeType !== Node.TEXT_NODE) {\n Util.walkDom(startContainer, (el) => {\n if (el.nodeType === Node.TEXT_NODE) {\n startContainer = el;\n return false;\n }\n return true;\n });\n }\n\n if (endContainer.nodeType !== Node.TEXT_NODE) {\n let toFindNode = startContainer;\n\n if (endOffset === 0) {\n toFindNode = endContainer.previousElementSibling || startContainer;\n }\n\n // Get the last text node:\n const endContainerContents = Util.closest(toFindNode, ':not([' + DATA_IS_SELECTION + '])').childNodes;\n if (endContainerContents.length) {\n const r = endContainerContents[endContainerContents.length - 1];\n if (r.nodeType === Node.TEXT_NODE) {\n endContainer = r;\n endOffset = r.length;\n } else {\n let f = r.lastChild;\n while (f !== null) {\n if (f && f.nodeType === Node.TEXT_NODE) {\n endContainer = f;\n endOffset = f.length;\n if (f.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n endOffset = parseInt(f.parentNode\n .getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) + endOffset;\n }\n }\n f = f.lastChild;\n }\n }\n }\n // still no textNode?\n if (endContainer.nodeType !== Node.TEXT_NODE) {\n throw Error('Could not found endContainer, highlighting would be unstable');\n }\n }\n\n this._renderResult = new RenderResult(\n // Real offset is calculated by relative length and absolute length\n originalStartOffset + startOffset,\n originalEndOffset + endOffset,\n // get the path for this selection\n Util.getPath(startContainer, this.context),\n Util.getPath(endContainer, this.context)\n );\n\n this._renderResult.instance = this;\n\n\n this._renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, !!outer);\n\n return this._renderResult;\n }\n\n /**\n * Renders a given selection\n *\n * @param {Node} startContainer\n * @param {Node} endContainer\n * @param {int} startOffset\n * @param {int} endOffset\n * @param {Node} contextContainer\n * @param {Boolean} outer\n * @private\n */\n _renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, outer) {\n // if start and end-container are the same, mark text on the same node\n if (startContainer === endContainer) {\n this._markTextSameNode(startContainer, startOffset, endOffset);\n } else {\n const result = this._markTextDifferentNode(startContainer, endContainer, startOffset, endOffset);\n const index = this.wrapperNodes.indexOf(result.endT);\n // remove endContainer, to keep order:\n this.wrapperNodes.splice(index, 1);\n if (!outer) {\n this.wrapSiblings(result.startT.nextSibling, endContainer);\n } else {\n this.walk(result.startT, endContainer, contextContainer);\n }\n this.wrapperNodes.push(result.endT);\n }\n }\n\n /**\n * Prepares to render a Selection with path selectors\n * ```\n * A Path looks like this:\n *\n * #selector;#textnode;#offset\n * ``\n * @param {string} startPath\n * @param {string} endPath\n * @returns {string}\n */\n renderWithPath(startPath, endPath) {\n const startContainer = Util.deserializePath(startPath, this.context);\n const endContainer = Util.deserializePath(endPath, this.context);\n if (startContainer && endContainer && startContainer.node && endContainer.node) {\n const range = document.createRange();\n range.setStart(startContainer.node, startContainer.offset);\n range.setEnd(endContainer.node, endContainer.offset);\n const text = range.toString();\n const result = this.renderWithRange(range);\n result.text = text;\n return text;\n }\n throw new Error('Could not find start- and/or end-container in document');\n }\n\n /**\n * @returns {RenderResult}\n */\n get result() {\n return this._renderResult;\n }\n\n /**\n * Renders a result (that returned from `renderWithRange`)\n * @param {RenderResult|Object} result\n * @returns {string}\n */\n renderWithResult(result) {\n return this.renderWithPath(\n `${result.startContainerPath};${result.startOffset}`,\n `${result.endContainerPath};${result.endOffset}`);\n }\n\n /**\n * Prepares a selection with a range object\n * @param {Range} range\n * @returns {Object}\n */\n renderWithRange(range) {\n const text = range.toString();\n const result = this._renderWithElements(range.startContainer, range.endContainer,\n range.commonAncestorContainer, range.startOffset, range.endOffset);\n result.text = text;\n return result;\n }\n\n /**\n * Removes bindings and classNames to nodes\n */\n destroy() {\n this.wrapperNodes.forEach((node) => {\n delete node.marklibInstance;\n node.className = '';\n });\n this.removeEvent();\n }\n\n /**\n * @param {Node} el\n * @param {Rendering} instance\n * @returns {Node}\n */\n static setMarklibInstance(el, instance) {\n el.marklibInstance = instance;\n return el;\n }\n\n /**\n * @param {Node} el\n * @returns {Rendering|null|undefined}\n */\n static getMarklibInstance(el) {\n return el ? el.marklibInstance : null;\n }\n}\n\nexport default Rendering;\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/Rendering.js\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/get-prototype-of\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/get-prototype-of.js\n ** module id = 3\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.get-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.getPrototypeOf;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/get-prototype-of.js\n ** module id = 4\n ** module chunks = 0 1\n **/","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./$.to-object');\n\nrequire('./$.object-sap')('getPrototypeOf', function($getPrototypeOf){\n return function getPrototypeOf(it){\n return $getPrototypeOf(toObject(it));\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.get-prototype-of.js\n ** module id = 5\n ** module chunks = 0 1\n **/","// 7.1.13 ToObject(argument)\nvar defined = require('./$.defined');\nmodule.exports = function(it){\n return Object(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-object.js\n ** module id = 6\n ** module chunks = 0 1\n **/","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function(it){\n if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.defined.js\n ** module id = 7\n ** module chunks = 0 1\n **/","// most Object methods by ES6 should accept primitives\nvar $export = require('./$.export')\n , core = require('./$.core')\n , fails = require('./$.fails');\nmodule.exports = function(KEY, exec){\n var fn = (core.Object || {})[KEY] || Object[KEY]\n , exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-sap.js\n ** module id = 8\n ** module chunks = 0 1\n **/","var global = require('./$.global')\n , core = require('./$.core')\n , ctx = require('./$.ctx')\n , PROTOTYPE = 'prototype';\n\nvar $export = function(type, name, source){\n var IS_FORCED = type & $export.F\n , IS_GLOBAL = type & $export.G\n , IS_STATIC = type & $export.S\n , IS_PROTO = type & $export.P\n , IS_BIND = type & $export.B\n , IS_WRAP = type & $export.W\n , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n , key, own, out;\n if(IS_GLOBAL)source = name;\n for(key in source){\n // contains in native\n own = !IS_FORCED && target && key in target;\n if(own && key in exports)continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function(C){\n var F = function(param){\n return this instanceof C ? new C(param) : C(param);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\nmodule.exports = $export;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.export.js\n ** module id = 9\n ** module chunks = 0 1\n **/","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\nif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.global.js\n ** module id = 10\n ** module chunks = 0 1\n **/","var core = module.exports = {version: '1.2.6'};\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.core.js\n ** module id = 11\n ** module chunks = 0 1\n **/","// optional / simple context binding\nvar aFunction = require('./$.a-function');\nmodule.exports = function(fn, that, length){\n aFunction(fn);\n if(that === undefined)return fn;\n switch(length){\n case 1: return function(a){\n return fn.call(that, a);\n };\n case 2: return function(a, b){\n return fn.call(that, a, b);\n };\n case 3: return function(a, b, c){\n return fn.call(that, a, b, c);\n };\n }\n return function(/* ...args */){\n return fn.apply(that, arguments);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.ctx.js\n ** module id = 12\n ** module chunks = 0 1\n **/","module.exports = function(it){\n if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.a-function.js\n ** module id = 13\n ** module chunks = 0 1\n **/","module.exports = function(exec){\n try {\n return !!exec();\n } catch(e){\n return true;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.fails.js\n ** module id = 14\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/classCallCheck.js\n ** module id = 15\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\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 (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/createClass.js\n ** module id = 16\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/define-property.js\n ** module id = 17\n ** module chunks = 0 1\n **/","var $ = require('../../modules/$');\nmodule.exports = function defineProperty(it, key, desc){\n return $.setDesc(it, key, desc);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/define-property.js\n ** module id = 18\n ** module chunks = 0 1\n **/","var $Object = Object;\nmodule.exports = {\n create: $Object.create,\n getProto: $Object.getPrototypeOf,\n isEnum: {}.propertyIsEnumerable,\n getDesc: $Object.getOwnPropertyDescriptor,\n setDesc: $Object.defineProperty,\n setDescs: $Object.defineProperties,\n getKeys: $Object.keys,\n getNames: $Object.getOwnPropertyNames,\n getSymbols: $Object.getOwnPropertySymbols,\n each: [].forEach\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.js\n ** module id = 19\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/possibleConstructorReturn.js\n ** module id = 20\n ** module chunks = 0 1\n **/","\"use strict\";\n\nvar _typeof = typeof _Symbol === \"function\" && typeof _Symbol$iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _Symbol === \"function\" && obj.constructor === _Symbol ? \"symbol\" : typeof obj; };\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/typeof.js\n ** module id = 21\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol/iterator.js\n ** module id = 22\n ** module chunks = 0 1\n **/","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/$.wks')('iterator');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/iterator.js\n ** module id = 23\n ** module chunks = 0 1\n **/","'use strict';\nvar $at = require('./$.string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./$.iter-define')(String, 'String', function(iterated){\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , index = this._i\n , point;\n if(index >= O.length)return {value: undefined, done: true};\n point = $at(O, index);\n this._i += point.length;\n return {value: point, done: false};\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.string.iterator.js\n ** module id = 24\n ** module chunks = 0 1\n **/","var toInteger = require('./$.to-integer')\n , defined = require('./$.defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function(TO_STRING){\n return function(that, pos){\n var s = String(defined(that))\n , i = toInteger(pos)\n , l = s.length\n , a, b;\n if(i < 0 || i >= l)return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.string-at.js\n ** module id = 25\n ** module chunks = 0 1\n **/","// 7.1.4 ToInteger\nvar ceil = Math.ceil\n , floor = Math.floor;\nmodule.exports = function(it){\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-integer.js\n ** module id = 26\n ** module chunks = 0 1\n **/","'use strict';\nvar LIBRARY = require('./$.library')\n , $export = require('./$.export')\n , redefine = require('./$.redefine')\n , hide = require('./$.hide')\n , has = require('./$.has')\n , Iterators = require('./$.iterators')\n , $iterCreate = require('./$.iter-create')\n , setToStringTag = require('./$.set-to-string-tag')\n , getProto = require('./$').getProto\n , ITERATOR = require('./$.wks')('iterator')\n , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`\n , FF_ITERATOR = '@@iterator'\n , KEYS = 'keys'\n , VALUES = 'values';\n\nvar returnThis = function(){ return this; };\n\nmodule.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){\n $iterCreate(Constructor, NAME, next);\n var getMethod = function(kind){\n if(!BUGGY && kind in proto)return proto[kind];\n switch(kind){\n case KEYS: return function keys(){ return new Constructor(this, kind); };\n case VALUES: return function values(){ return new Constructor(this, kind); };\n } return function entries(){ return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator'\n , DEF_VALUES = DEFAULT == VALUES\n , VALUES_BUG = false\n , proto = Base.prototype\n , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]\n , $default = $native || getMethod(DEFAULT)\n , methods, key;\n // Fix native\n if($native){\n var IteratorPrototype = getProto($default.call(new Base));\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // FF fix\n if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);\n // fix Array#{values, @@iterator}.name in V8 / FF\n if(DEF_VALUES && $native.name !== VALUES){\n VALUES_BUG = true;\n $default = function values(){ return $native.call(this); };\n }\n }\n // Define iterator\n if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if(DEFAULT){\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: !DEF_VALUES ? $default : getMethod('entries')\n };\n if(FORCED)for(key in methods){\n if(!(key in proto))redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-define.js\n ** module id = 27\n ** module chunks = 0 1\n **/","module.exports = true;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.library.js\n ** module id = 28\n ** module chunks = 0 1\n **/","module.exports = require('./$.hide');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine.js\n ** module id = 29\n ** module chunks = 0 1\n **/","var $ = require('./$')\n , createDesc = require('./$.property-desc');\nmodule.exports = require('./$.descriptors') ? function(object, key, value){\n return $.setDesc(object, key, createDesc(1, value));\n} : function(object, key, value){\n object[key] = value;\n return object;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.hide.js\n ** module id = 30\n ** module chunks = 0 1\n **/","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\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.property-desc.js\n ** module id = 31\n ** module chunks = 0 1\n **/","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./$.fails')(function(){\n return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.descriptors.js\n ** module id = 32\n ** module chunks = 0 1\n **/","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function(it, key){\n return hasOwnProperty.call(it, key);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.has.js\n ** module id = 33\n ** module chunks = 0 1\n **/","module.exports = {};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iterators.js\n ** module id = 34\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , descriptor = require('./$.property-desc')\n , setToStringTag = require('./$.set-to-string-tag')\n , IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./$.hide')(IteratorPrototype, require('./$.wks')('iterator'), function(){ return this; });\n\nmodule.exports = function(Constructor, NAME, next){\n Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-create.js\n ** module id = 35\n ** module chunks = 0 1\n **/","var def = require('./$').setDesc\n , has = require('./$.has')\n , TAG = require('./$.wks')('toStringTag');\n\nmodule.exports = function(it, tag, stat){\n if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-to-string-tag.js\n ** module id = 36\n ** module chunks = 0 1\n **/","var store = require('./$.shared')('wks')\n , uid = require('./$.uid')\n , Symbol = require('./$.global').Symbol;\nmodule.exports = function(name){\n return store[name] || (store[name] =\n Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.wks.js\n ** module id = 37\n ** module chunks = 0 1\n **/","var global = require('./$.global')\n , SHARED = '__core-js_shared__'\n , store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function(key){\n return store[key] || (store[key] = {});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.shared.js\n ** module id = 38\n ** module chunks = 0 1\n **/","var id = 0\n , px = Math.random();\nmodule.exports = function(key){\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.uid.js\n ** module id = 39\n ** module chunks = 0 1\n **/","require('./es6.array.iterator');\nvar Iterators = require('./$.iterators');\nIterators.NodeList = Iterators.HTMLCollection = Iterators.Array;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/web.dom.iterable.js\n ** module id = 40\n ** module chunks = 0 1\n **/","'use strict';\nvar addToUnscopables = require('./$.add-to-unscopables')\n , step = require('./$.iter-step')\n , Iterators = require('./$.iterators')\n , toIObject = require('./$.to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./$.iter-define')(Array, 'Array', function(iterated, kind){\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , kind = this._k\n , index = this._i++;\n if(!O || index >= O.length){\n this._t = undefined;\n return step(1);\n }\n if(kind == 'keys' )return step(0, index);\n if(kind == 'values')return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.array.iterator.js\n ** module id = 41\n ** module chunks = 0 1\n **/","module.exports = function(){ /* empty */ };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.add-to-unscopables.js\n ** module id = 42\n ** module chunks = 0 1\n **/","module.exports = function(done, value){\n return {value: value, done: !!done};\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-step.js\n ** module id = 43\n ** module chunks = 0 1\n **/","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./$.iobject')\n , defined = require('./$.defined');\nmodule.exports = function(it){\n return IObject(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-iobject.js\n ** module id = 44\n ** module chunks = 0 1\n **/","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./$.cof');\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iobject.js\n ** module id = 45\n ** module chunks = 0 1\n **/","var toString = {}.toString;\n\nmodule.exports = function(it){\n return toString.call(it).slice(8, -1);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.cof.js\n ** module id = 46\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol.js\n ** module id = 47\n ** module chunks = 0 1\n **/","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nmodule.exports = require('../../modules/$.core').Symbol;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/index.js\n ** module id = 48\n ** module chunks = 0 1\n **/","'use strict';\n// ECMAScript 6 symbols shim\nvar $ = require('./$')\n , global = require('./$.global')\n , has = require('./$.has')\n , DESCRIPTORS = require('./$.descriptors')\n , $export = require('./$.export')\n , redefine = require('./$.redefine')\n , $fails = require('./$.fails')\n , shared = require('./$.shared')\n , setToStringTag = require('./$.set-to-string-tag')\n , uid = require('./$.uid')\n , wks = require('./$.wks')\n , keyOf = require('./$.keyof')\n , $names = require('./$.get-names')\n , enumKeys = require('./$.enum-keys')\n , isArray = require('./$.is-array')\n , anObject = require('./$.an-object')\n , toIObject = require('./$.to-iobject')\n , createDesc = require('./$.property-desc')\n , getDesc = $.getDesc\n , setDesc = $.setDesc\n , _create = $.create\n , getNames = $names.get\n , $Symbol = global.Symbol\n , $JSON = global.JSON\n , _stringify = $JSON && $JSON.stringify\n , setter = false\n , HIDDEN = wks('_hidden')\n , isEnum = $.isEnum\n , SymbolRegistry = shared('symbol-registry')\n , AllSymbols = shared('symbols')\n , useNative = typeof $Symbol == 'function'\n , ObjectProto = Object.prototype;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n return _create(setDesc({}, 'a', {\n get: function(){ return setDesc(this, 'a', {value: 7}).a; }\n })).a != 7;\n}) ? function(it, key, D){\n var protoDesc = getDesc(ObjectProto, key);\n if(protoDesc)delete ObjectProto[key];\n setDesc(it, key, D);\n if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);\n} : setDesc;\n\nvar wrap = function(tag){\n var sym = AllSymbols[tag] = _create($Symbol.prototype);\n sym._k = tag;\n DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {\n configurable: true,\n set: function(value){\n if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n }\n });\n return sym;\n};\n\nvar isSymbol = function(it){\n return typeof it == 'symbol';\n};\n\nvar $defineProperty = function defineProperty(it, key, D){\n if(D && has(AllSymbols, key)){\n if(!D.enumerable){\n if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n D = _create(D, {enumerable: createDesc(0, false)});\n } return setSymbolDesc(it, key, D);\n } return setDesc(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P){\n anObject(it);\n var keys = enumKeys(P = toIObject(P))\n , i = 0\n , l = keys.length\n , key;\n while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P){\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n var E = isEnum.call(this, key);\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]\n ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n var D = getDesc(it = toIObject(it), key);\n if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);\n return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);\n return result;\n};\nvar $stringify = function stringify(it){\n if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n var args = [it]\n , i = 1\n , $$ = arguments\n , replacer, $replacer;\n while($$.length > i)args.push($$[i++]);\n replacer = args[1];\n if(typeof replacer == 'function')$replacer = replacer;\n if($replacer || !isArray(replacer))replacer = function(key, value){\n if($replacer)value = $replacer.call(this, key, value);\n if(!isSymbol(value))return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n};\nvar buggyJSON = $fails(function(){\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n});\n\n// 19.4.1.1 Symbol([description])\nif(!useNative){\n $Symbol = function Symbol(){\n if(isSymbol(this))throw TypeError('Symbol is not a constructor');\n return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));\n };\n redefine($Symbol.prototype, 'toString', function toString(){\n return this._k;\n });\n\n isSymbol = function(it){\n return it instanceof $Symbol;\n };\n\n $.create = $create;\n $.isEnum = $propertyIsEnumerable;\n $.getDesc = $getOwnPropertyDescriptor;\n $.setDesc = $defineProperty;\n $.setDescs = $defineProperties;\n $.getNames = $names.get = $getOwnPropertyNames;\n $.getSymbols = $getOwnPropertySymbols;\n\n if(DESCRIPTORS && !require('./$.library')){\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n}\n\nvar symbolStatics = {\n // 19.4.2.1 Symbol.for(key)\n 'for': function(key){\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(key){\n return keyOf(SymbolRegistry, key);\n },\n useSetter: function(){ setter = true; },\n useSimple: function(){ setter = false; }\n};\n// 19.4.2.2 Symbol.hasInstance\n// 19.4.2.3 Symbol.isConcatSpreadable\n// 19.4.2.4 Symbol.iterator\n// 19.4.2.6 Symbol.match\n// 19.4.2.8 Symbol.replace\n// 19.4.2.9 Symbol.search\n// 19.4.2.10 Symbol.species\n// 19.4.2.11 Symbol.split\n// 19.4.2.12 Symbol.toPrimitive\n// 19.4.2.13 Symbol.toStringTag\n// 19.4.2.14 Symbol.unscopables\n$.each.call((\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +\n 'species,split,toPrimitive,toStringTag,unscopables'\n).split(','), function(it){\n var sym = wks(it);\n symbolStatics[it] = useNative ? sym : wrap(sym);\n});\n\nsetter = true;\n\n$export($export.G + $export.W, {Symbol: $Symbol});\n\n$export($export.S, 'Symbol', symbolStatics);\n\n$export($export.S + $export.F * !useNative, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});\n\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.symbol.js\n ** module id = 49\n ** module chunks = 0 1\n **/","var $ = require('./$')\n , toIObject = require('./$.to-iobject');\nmodule.exports = function(object, el){\n var O = toIObject(object)\n , keys = $.getKeys(O)\n , length = keys.length\n , index = 0\n , key;\n while(length > index)if(O[key = keys[index++]] === el)return key;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.keyof.js\n ** module id = 50\n ** module chunks = 0 1\n **/","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./$.to-iobject')\n , getNames = require('./$').getNames\n , toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function(it){\n try {\n return getNames(it);\n } catch(e){\n return windowNames.slice();\n }\n};\n\nmodule.exports.get = function getOwnPropertyNames(it){\n if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);\n return getNames(toIObject(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.get-names.js\n ** module id = 51\n ** module chunks = 0 1\n **/","// all enumerable object keys, includes symbols\nvar $ = require('./$');\nmodule.exports = function(it){\n var keys = $.getKeys(it)\n , getSymbols = $.getSymbols;\n if(getSymbols){\n var symbols = getSymbols(it)\n , isEnum = $.isEnum\n , i = 0\n , key;\n while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);\n }\n return keys;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.enum-keys.js\n ** module id = 52\n ** module chunks = 0 1\n **/","// 7.2.2 IsArray(argument)\nvar cof = require('./$.cof');\nmodule.exports = Array.isArray || function(arg){\n return cof(arg) == 'Array';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array.js\n ** module id = 53\n ** module chunks = 0 1\n **/","var isObject = require('./$.is-object');\nmodule.exports = function(it){\n if(!isObject(it))throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.an-object.js\n ** module id = 54\n ** module chunks = 0 1\n **/","module.exports = function(it){\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-object.js\n ** module id = 55\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/inherits.js\n ** module id = 57\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/set-prototype-of.js\n ** module id = 58\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.setPrototypeOf;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/set-prototype-of.js\n ** module id = 59\n ** module chunks = 0 1\n **/","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./$.export');\n$export($export.S, 'Object', {setPrototypeOf: require('./$.set-proto').set});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.set-prototype-of.js\n ** module id = 60\n ** module chunks = 0 1\n **/","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar getDesc = require('./$').getDesc\n , isObject = require('./$.is-object')\n , anObject = require('./$.an-object');\nvar check = function(O, proto){\n anObject(O);\n if(!isObject(proto) && proto !== null)throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function(test, buggy, set){\n try {\n set = require('./$.ctx')(Function.call, getDesc(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch(e){ buggy = true; }\n return function setPrototypeOf(O, proto){\n check(O, proto);\n if(buggy)O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-proto.js\n ** module id = 61\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/create.js\n ** module id = 62\n ** module chunks = 0 1\n **/","var $ = require('../../modules/$');\nmodule.exports = function create(P, D){\n return $.create(P, D);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/create.js\n ** module id = 63\n ** module chunks = 0 1\n **/","/**\n * A Render Result\n */\nexport default class RenderResult {\n /**\n * @param {int} startOffset\n * @param {int} endOffset\n * @param {String} startContainerPath\n * @param {String} endContainerPath\n */\n constructor(startOffset, endOffset, startContainerPath, endContainerPath) {\n this.startOffset = startOffset;\n this.endOffset = endOffset;\n this.startContainerPath = startContainerPath;\n this.endContainerPath = endContainerPath;\n this._renderingInstance = null;\n }\n\n /**\n * @param {Object} result\n * @return RenderResult\n */\n static fromObject(result) {\n return new RenderResult(\n result.startOffset,\n result.endOffset,\n result.startContainerPath,\n result.endContainerPath\n );\n }\n\n /**\n * @returns {Object}\n */\n serialize() {\n return {\n startOffset: this.startOffset,\n endOffset: this.endOffset,\n startContainerPath: this.startContainerPath,\n endContainerPath: this.endContainerPath\n };\n }\n\n /**\n * @param {String} text\n */\n set text(text) {\n this._text = text;\n }\n\n /**\n * @returns {String}\n */\n get text() {\n return this._text;\n }\n\n /**\n * @returns {null|Rendering}\n */\n get instance() {\n return this._renderingInstance;\n }\n\n /**\n * @param {null|Rendering} instance\n */\n set instance(instance) {\n this._renderingInstance = instance;\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/RenderResult.js\n **/","/* global Set */\n\nimport EventEmitter from 'wolfy87-eventemitter';\nimport Rendering from './Rendering';\nimport Util from './util/Util';\n\n/**\n * @type {string}\n */\nexport const EVENT_CLICK = 'click';\n\n/**\n * @type {string}\n */\nexport const EVENT_MOUSEENTER = 'hover-enter';\n\n/**\n * @type {string}\n */\nexport const EVENT_MOUSELEAVE = 'hover-leave';\n\n/**\n * @type {string}\n */\nexport const EVENT_PART_TREE_ENTER = 'tree-enter';\n\n/**\n * @type {string}\n */\nexport const EVENT_PART_TREE_LEAVE = 'tree-leave';\n\n/**\n * Generic Event Handlings for Renderer\n */\nexport default class RenderingEvents extends EventEmitter {\n\n /**\n * @param {Object} options\n * @param {Document} document\n */\n constructor(options, document) {\n super();\n\n /**\n * Options\n * @type {Object}\n */\n this.options = {\n hoverClass: 'marklib--hover',\n treeClass: 'marklib--tree',\n className: ['marking']\n };\n\n this.options = Object.assign(this.options, options || {});\n\n if (typeof this.options.className === 'string') {\n this.options.className = this.options.className.split(' ');\n }\n\n /**\n * A collection of all nodes that are part of all events\n * @type {Array}\n */\n this.wrapperNodes = [];\n\n this._registerEvents(document);\n\n /**\n * @type {Document}\n */\n this.document = document;\n }\n\n /**\n * Constructs a new Range from rendered result\n * @returns {Range}\n */\n get range() {\n const range = this.document.createRange();\n const textNodes = [];\n\n this.wrapperNodes.forEach((wrapper) => {\n Util.walkTextNodes(wrapper, (node) => {\n textNodes.push(node);\n });\n });\n\n if (textNodes.length > 0) {\n const lastTextNode = textNodes[textNodes.length - 1];\n range.setStart(textNodes[0], 0);\n range.setEnd(lastTextNode, lastTextNode.length);\n return range;\n }\n\n return null;\n }\n\n /**\n * Will register events if not already bind.\n * @param {Document} document\n * @private\n */\n _registerEvents(document) {\n this.on(EVENT_MOUSEENTER, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.add(this.options.hoverClass);\n });\n });\n\n this.on(EVENT_MOUSELEAVE, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.remove(this.options.hoverClass);\n });\n });\n\n this.on(EVENT_PART_TREE_ENTER, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.add(this.options.treeClass);\n });\n });\n\n this.on(EVENT_PART_TREE_LEAVE, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.remove(this.options.treeClass);\n });\n });\n\n\n if (!global.__MARKLIB_EVENTS__) {\n global.__MARKLIB_EVENTS__ = true;\n (function init() {\n const currentHoverInstances = new Set();\n const betweenInstances = new Set();\n\n function checkMarklibInstance(e) {\n const instance = Rendering.getMarklibInstance(e);\n // instanceof check will fail if used in test scenario where different DOMs are used\n // see also http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/\n return instance && (instance instanceof Rendering || 'wrapperNodes' in instance);\n }\n\n function closestInstance(e) {\n const closest = Util.closestCallback(\n e.target,\n (thisE) => checkMarklibInstance(thisE)\n );\n if (typeof closest === 'object') {\n return Rendering.getMarklibInstance(closest);\n }\n return false;\n }\n\n function getInstancesBetween(e, instance) {\n return Util.parentsCallback(\n e.target,\n (el) => checkMarklibInstance(el) && Rendering.getMarklibInstance(el) !== instance\n ).map(el => Rendering.getMarklibInstance(el));\n }\n\n function mouseOutClear() {\n currentHoverInstances.forEach((thisInstance) => {\n thisInstance.emit(EVENT_MOUSELEAVE);\n });\n currentHoverInstances.clear();\n\n betweenInstances.forEach((thisInstance) => {\n thisInstance.emit(EVENT_PART_TREE_LEAVE);\n });\n\n betweenInstances.clear();\n }\n\n /**\n * @param {Event} e\n * @returns {Array|boolean}\n */\n function findTarget(e) {\n let instance = closestInstance(e);\n if (instance) {\n const between = getInstancesBetween(e, instance);\n if (e.target.textContent !== instance.result.text && between.length > 0) {\n let allInstances = between;\n allInstances.unshift(instance);\n // take the smallest selection\n allInstances = allInstances.sort(\n (a, b) => a.result.text.length < b.result.text.length ? -1 : 1\n );\n instance = allInstances[0];\n }\n\n return [instance, between];\n }\n return false;\n }\n\n document.addEventListener('click', (e) => {\n const target = findTarget(e);\n if (target) {\n target[0].emit(EVENT_CLICK, e, target[1]);\n }\n }, true);\n\n document.addEventListener('mouseover', (e) => {\n const target = findTarget(e);\n if (target) {\n const [instance, between] = target;\n // find instances that lay in between the node\n mouseOutClear();\n between.forEach((instanceBetween) => {\n betweenInstances.add(instanceBetween);\n instanceBetween.emit(EVENT_PART_TREE_ENTER, e, between);\n });\n instance.emit(EVENT_MOUSEENTER, e, between);\n currentHoverInstances.add(instance);\n } else {\n mouseOutClear();\n }\n }, true);\n })();\n }\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/RenderingEvents.js\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _isIterable2 = require(\"../core-js/is-iterable\");\n\nvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\nvar _getIterator2 = require(\"../core-js/get-iterator\");\n\nvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if ((0, _isIterable3.default)(Object(arr))) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/slicedToArray.js\n ** module id = 66\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/is-iterable\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/is-iterable.js\n ** module id = 67\n ** module chunks = 0 1\n **/","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.is-iterable');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/is-iterable.js\n ** module id = 68\n ** module chunks = 0 1\n **/","var classof = require('./$.classof')\n , ITERATOR = require('./$.wks')('iterator')\n , Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').isIterable = function(it){\n var O = Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n || Iterators.hasOwnProperty(classof(O));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.is-iterable.js\n ** module id = 69\n ** module chunks = 0 1\n **/","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./$.cof')\n , TAG = require('./$.wks')('toStringTag')\n // ES3 wrong here\n , ARG = cof(function(){ return arguments; }()) == 'Arguments';\n\nmodule.exports = function(it){\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = (O = Object(it))[TAG]) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.classof.js\n ** module id = 70\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/get-iterator\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/get-iterator.js\n ** module id = 71\n ** module chunks = 0 1\n **/","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.get-iterator');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/get-iterator.js\n ** module id = 72\n ** module chunks = 0 1\n **/","var anObject = require('./$.an-object')\n , get = require('./core.get-iterator-method');\nmodule.exports = require('./$.core').getIterator = function(it){\n var iterFn = get(it);\n if(typeof iterFn != 'function')throw TypeError(it + ' is not iterable!');\n return anObject(iterFn.call(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.get-iterator.js\n ** module id = 73\n ** module chunks = 0 1\n **/","var classof = require('./$.classof')\n , ITERATOR = require('./$.wks')('iterator')\n , Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').getIteratorMethod = function(it){\n if(it != undefined)return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.get-iterator-method.js\n ** module id = 74\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/set\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/set.js\n ** module id = 75\n ** module chunks = 0 1\n **/","require('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.set');\nrequire('../modules/es7.set.to-json');\nmodule.exports = require('../modules/$.core').Set;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/set.js\n ** module id = 76\n ** module chunks = 0 1\n **/","'use strict';\nvar strong = require('./$.collection-strong');\n\n// 23.2 Set Objects\nrequire('./$.collection')('Set', function(get){\n return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.2.3.1 Set.prototype.add(value)\n add: function add(value){\n return strong.def(this, value = value === 0 ? 0 : value, value);\n }\n}, strong);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.set.js\n ** module id = 77\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , hide = require('./$.hide')\n , redefineAll = require('./$.redefine-all')\n , ctx = require('./$.ctx')\n , strictNew = require('./$.strict-new')\n , defined = require('./$.defined')\n , forOf = require('./$.for-of')\n , $iterDefine = require('./$.iter-define')\n , step = require('./$.iter-step')\n , ID = require('./$.uid')('id')\n , $has = require('./$.has')\n , isObject = require('./$.is-object')\n , setSpecies = require('./$.set-species')\n , DESCRIPTORS = require('./$.descriptors')\n , isExtensible = Object.isExtensible || isObject\n , SIZE = DESCRIPTORS ? '_s' : 'size'\n , id = 0;\n\nvar fastKey = function(it, create){\n // return primitive with prefix\n if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if(!$has(it, ID)){\n // can't set id to frozen object\n if(!isExtensible(it))return 'F';\n // not necessary to add id\n if(!create)return 'E';\n // add missing object id\n hide(it, ID, ++id);\n // return object id with prefix\n } return 'O' + it[ID];\n};\n\nvar getEntry = function(that, key){\n // fast case\n var index = fastKey(key), entry;\n if(index !== 'F')return that._i[index];\n // frozen object case\n for(entry = that._f; entry; entry = entry.n){\n if(entry.k == key)return entry;\n }\n};\n\nmodule.exports = {\n getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n var C = wrapper(function(that, iterable){\n strictNew(that, C, NAME);\n that._i = $.create(null); // index\n that._f = undefined; // first entry\n that._l = undefined; // last entry\n that[SIZE] = 0; // size\n if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear(){\n for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){\n entry.r = true;\n if(entry.p)entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\n 'delete': function(key){\n var that = this\n , entry = getEntry(that, key);\n if(entry){\n var next = entry.n\n , prev = entry.p;\n delete that._i[entry.i];\n entry.r = true;\n if(prev)prev.n = next;\n if(next)next.p = prev;\n if(that._f == entry)that._f = next;\n if(that._l == entry)that._l = prev;\n that[SIZE]--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /*, that = undefined */){\n var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3)\n , entry;\n while(entry = entry ? entry.n : this._f){\n f(entry.v, entry.k, this);\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key){\n return !!getEntry(this, key);\n }\n });\n if(DESCRIPTORS)$.setDesc(C.prototype, 'size', {\n get: function(){\n return defined(this[SIZE]);\n }\n });\n return C;\n },\n def: function(that, key, value){\n var entry = getEntry(that, key)\n , prev, index;\n // change existing entry\n if(entry){\n entry.v = value;\n // create new entry\n } else {\n that._l = entry = {\n i: index = fastKey(key, true), // <- index\n k: key, // <- key\n v: value, // <- value\n p: prev = that._l, // <- previous entry\n n: undefined, // <- next entry\n r: false // <- removed\n };\n if(!that._f)that._f = entry;\n if(prev)prev.n = entry;\n that[SIZE]++;\n // add to index\n if(index !== 'F')that._i[index] = entry;\n } return that;\n },\n getEntry: getEntry,\n setStrong: function(C, NAME, IS_MAP){\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n $iterDefine(C, NAME, function(iterated, kind){\n this._t = iterated; // target\n this._k = kind; // kind\n this._l = undefined; // previous\n }, function(){\n var that = this\n , kind = that._k\n , entry = that._l;\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n // get next entry\n if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){\n // or finish the iteration\n that._t = undefined;\n return step(1);\n }\n // return step by kind\n if(kind == 'keys' )return step(0, entry.k);\n if(kind == 'values')return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(NAME);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection-strong.js\n ** module id = 78\n ** module chunks = 0 1\n **/","var redefine = require('./$.redefine');\nmodule.exports = function(target, src){\n for(var key in src)redefine(target, key, src[key]);\n return target;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine-all.js\n ** module id = 79\n ** module chunks = 0 1\n **/","module.exports = function(it, Constructor, name){\n if(!(it instanceof Constructor))throw TypeError(name + \": use the 'new' operator!\");\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.strict-new.js\n ** module id = 80\n ** module chunks = 0 1\n **/","var ctx = require('./$.ctx')\n , call = require('./$.iter-call')\n , isArrayIter = require('./$.is-array-iter')\n , anObject = require('./$.an-object')\n , toLength = require('./$.to-length')\n , getIterFn = require('./core.get-iterator-method');\nmodule.exports = function(iterable, entries, fn, that){\n var iterFn = getIterFn(iterable)\n , f = ctx(fn, that, entries ? 2 : 1)\n , index = 0\n , length, step, iterator;\n if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){\n entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){\n call(iterator, f, step.value, entries);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.for-of.js\n ** module id = 81\n ** module chunks = 0 1\n **/","// call something on iterator step with safe closing on error\nvar anObject = require('./$.an-object');\nmodule.exports = function(iterator, fn, value, entries){\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch(e){\n var ret = iterator['return'];\n if(ret !== undefined)anObject(ret.call(iterator));\n throw e;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-call.js\n ** module id = 82\n ** module chunks = 0 1\n **/","// check on default Array iterator\nvar Iterators = require('./$.iterators')\n , ITERATOR = require('./$.wks')('iterator')\n , ArrayProto = Array.prototype;\n\nmodule.exports = function(it){\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array-iter.js\n ** module id = 83\n ** module chunks = 0 1\n **/","// 7.1.15 ToLength\nvar toInteger = require('./$.to-integer')\n , min = Math.min;\nmodule.exports = function(it){\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-length.js\n ** module id = 84\n ** module chunks = 0 1\n **/","'use strict';\nvar core = require('./$.core')\n , $ = require('./$')\n , DESCRIPTORS = require('./$.descriptors')\n , SPECIES = require('./$.wks')('species');\n\nmodule.exports = function(KEY){\n var C = core[KEY];\n if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {\n configurable: true,\n get: function(){ return this; }\n });\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-species.js\n ** module id = 85\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , global = require('./$.global')\n , $export = require('./$.export')\n , fails = require('./$.fails')\n , hide = require('./$.hide')\n , redefineAll = require('./$.redefine-all')\n , forOf = require('./$.for-of')\n , strictNew = require('./$.strict-new')\n , isObject = require('./$.is-object')\n , setToStringTag = require('./$.set-to-string-tag')\n , DESCRIPTORS = require('./$.descriptors');\n\nmodule.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){\n var Base = global[NAME]\n , C = Base\n , ADDER = IS_MAP ? 'set' : 'add'\n , proto = C && C.prototype\n , O = {};\n if(!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){\n new C().entries().next();\n }))){\n // create collection constructor\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n redefineAll(C.prototype, methods);\n } else {\n C = wrapper(function(target, iterable){\n strictNew(target, C, NAME);\n target._c = new Base;\n if(iterable != undefined)forOf(iterable, IS_MAP, target[ADDER], target);\n });\n $.each.call('add,clear,delete,forEach,get,has,set,keys,values,entries'.split(','),function(KEY){\n var IS_ADDER = KEY == 'add' || KEY == 'set';\n if(KEY in proto && !(IS_WEAK && KEY == 'clear'))hide(C.prototype, KEY, function(a, b){\n if(!IS_ADDER && IS_WEAK && !isObject(a))return KEY == 'get' ? undefined : false;\n var result = this._c[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n });\n if('size' in proto)$.setDesc(C.prototype, 'size', {\n get: function(){\n return this._c.size;\n }\n });\n }\n\n setToStringTag(C, NAME);\n\n O[NAME] = C;\n $export($export.G + $export.W + $export.F, O);\n\n if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);\n\n return C;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection.js\n ** module id = 86\n ** module chunks = 0 1\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export = require('./$.export');\n\n$export($export.P, 'Set', {toJSON: require('./$.collection-to-json')('Set')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es7.set.to-json.js\n ** module id = 87\n ** module chunks = 0 1\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar forOf = require('./$.for-of')\n , classof = require('./$.classof');\nmodule.exports = function(NAME){\n return function toJSON(){\n if(classof(this) != NAME)throw TypeError(NAME + \"#toJSON isn't generic\");\n var arr = [];\n forOf(this, false, arr.push, arr);\n return arr;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection-to-json.js\n ** module id = 88\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/assign.js\n ** module id = 89\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/$.core').Object.assign;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/assign.js\n ** module id = 90\n ** module chunks = 0 1\n **/","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./$.export');\n\n$export($export.S + $export.F, 'Object', {assign: require('./$.object-assign')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.assign.js\n ** module id = 91\n ** module chunks = 0 1\n **/","// 19.1.2.1 Object.assign(target, source, ...)\nvar $ = require('./$')\n , toObject = require('./$.to-object')\n , IObject = require('./$.iobject');\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = require('./$.fails')(function(){\n var a = Object.assign\n , A = {}\n , B = {}\n , S = Symbol()\n , K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function(k){ B[k] = k; });\n return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n var T = toObject(target)\n , $$ = arguments\n , $$len = $$.length\n , index = 1\n , getKeys = $.getKeys\n , getSymbols = $.getSymbols\n , isEnum = $.isEnum;\n while($$len > index){\n var S = IObject($$[index++])\n , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n , length = keys.length\n , j = 0\n , key;\n while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n }\n return T;\n} : Object.assign;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-assign.js\n ** module id = 92\n ** module chunks = 0 1\n **/","/*!\n * EventEmitter v4.2.11 - git.io/ee\n * Unlicense - http://unlicense.org/\n * Oliver Caldwell - http://oli.me.uk/\n * @preserve\n */\n\n;(function () {\n 'use strict';\n\n /**\n * Class for managing events.\n * Can be extended to provide event functionality in other classes.\n *\n * @class EventEmitter Manages event registering and emitting.\n */\n function EventEmitter() {}\n\n // Shortcuts to improve speed and size\n var proto = EventEmitter.prototype;\n var exports = this;\n var originalGlobalValue = exports.EventEmitter;\n\n /**\n * Finds the index of the listener for the event in its storage array.\n *\n * @param {Function[]} listeners Array of listeners to search through.\n * @param {Function} listener Method to look for.\n * @return {Number} Index of the specified listener, -1 if not found\n * @api private\n */\n function indexOfListener(listeners, listener) {\n var i = listeners.length;\n while (i--) {\n if (listeners[i].listener === listener) {\n return i;\n }\n }\n\n return -1;\n }\n\n /**\n * Alias a method while keeping the context correct, to allow for overwriting of target method.\n *\n * @param {String} name The name of the target method.\n * @return {Function} The aliased method\n * @api private\n */\n function alias(name) {\n return function aliasClosure() {\n return this[name].apply(this, arguments);\n };\n }\n\n /**\n * Returns the listener array for the specified event.\n * Will initialise the event object and listener arrays if required.\n * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.\n * Each property in the object response is an array of listener functions.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Function[]|Object} All listener functions for the event.\n */\n proto.getListeners = function getListeners(evt) {\n var events = this._getEvents();\n var response;\n var key;\n\n // Return a concatenated array of all matching events if\n // the selector is a regular expression.\n if (evt instanceof RegExp) {\n response = {};\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n response[key] = events[key];\n }\n }\n }\n else {\n response = events[evt] || (events[evt] = []);\n }\n\n return response;\n };\n\n /**\n * Takes a list of listener objects and flattens it into a list of listener functions.\n *\n * @param {Object[]} listeners Raw listener objects.\n * @return {Function[]} Just the listener functions.\n */\n proto.flattenListeners = function flattenListeners(listeners) {\n var flatListeners = [];\n var i;\n\n for (i = 0; i < listeners.length; i += 1) {\n flatListeners.push(listeners[i].listener);\n }\n\n return flatListeners;\n };\n\n /**\n * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Object} All listener functions for an event in an object.\n */\n proto.getListenersAsObject = function getListenersAsObject(evt) {\n var listeners = this.getListeners(evt);\n var response;\n\n if (listeners instanceof Array) {\n response = {};\n response[evt] = listeners;\n }\n\n return response || listeners;\n };\n\n /**\n * Adds a listener function to the specified event.\n * The listener will not be added if it is a duplicate.\n * If the listener returns true then it will be removed after it is called.\n * If you pass a regular expression as the event name then the listener will be added to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListener = function addListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var listenerIsWrapped = typeof listener === 'object';\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {\n listeners[key].push(listenerIsWrapped ? listener : {\n listener: listener,\n once: false\n });\n }\n }\n\n return this;\n };\n\n /**\n * Alias of addListener\n */\n proto.on = alias('addListener');\n\n /**\n * Semi-alias of addListener. It will add a listener that will be\n * automatically removed after its first execution.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addOnceListener = function addOnceListener(evt, listener) {\n return this.addListener(evt, {\n listener: listener,\n once: true\n });\n };\n\n /**\n * Alias of addOnceListener.\n */\n proto.once = alias('addOnceListener');\n\n /**\n * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.\n * You need to tell it what event names should be matched by a regex.\n *\n * @param {String} evt Name of the event to create.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvent = function defineEvent(evt) {\n this.getListeners(evt);\n return this;\n };\n\n /**\n * Uses defineEvent to define multiple events.\n *\n * @param {String[]} evts An array of event names to define.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvents = function defineEvents(evts) {\n for (var i = 0; i < evts.length; i += 1) {\n this.defineEvent(evts[i]);\n }\n return this;\n };\n\n /**\n * Removes a listener function from the specified event.\n * When passed a regular expression as the event name, it will remove the listener from all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to remove the listener from.\n * @param {Function} listener Method to remove from the event.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListener = function removeListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var index;\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key)) {\n index = indexOfListener(listeners[key], listener);\n\n if (index !== -1) {\n listeners[key].splice(index, 1);\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of removeListener\n */\n proto.off = alias('removeListener');\n\n /**\n * Adds listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.\n * You can also pass it a regular expression to add the array of listeners to all events that match it.\n * Yeah, this function does quite a bit. That's probably a bad thing.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListeners = function addListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(false, evt, listeners);\n };\n\n /**\n * Removes listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be removed.\n * You can also pass it a regular expression to remove the listeners from all events that match it.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListeners = function removeListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(true, evt, listeners);\n };\n\n /**\n * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.\n * The first argument will determine if the listeners are removed (true) or added (false).\n * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be added/removed.\n * You can also pass it a regular expression to manipulate the listeners of all events that match it.\n *\n * @param {Boolean} remove True if you want to remove listeners, false if you want to add.\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add/remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {\n var i;\n var value;\n var single = remove ? this.removeListener : this.addListener;\n var multiple = remove ? this.removeListeners : this.addListeners;\n\n // If evt is an object then pass each of its properties to this method\n if (typeof evt === 'object' && !(evt instanceof RegExp)) {\n for (i in evt) {\n if (evt.hasOwnProperty(i) && (value = evt[i])) {\n // Pass the single listener straight through to the singular method\n if (typeof value === 'function') {\n single.call(this, i, value);\n }\n else {\n // Otherwise pass back to the multiple function\n multiple.call(this, i, value);\n }\n }\n }\n }\n else {\n // So evt must be a string\n // And listeners must be an array of listeners\n // Loop over it and pass each one to the multiple method\n i = listeners.length;\n while (i--) {\n single.call(this, evt, listeners[i]);\n }\n }\n\n return this;\n };\n\n /**\n * Removes all listeners from a specified event.\n * If you do not specify an event then all listeners will be removed.\n * That means every event will be emptied.\n * You can also pass a regex to remove all events that match it.\n *\n * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeEvent = function removeEvent(evt) {\n var type = typeof evt;\n var events = this._getEvents();\n var key;\n\n // Remove different things depending on the state of evt\n if (type === 'string') {\n // Remove all listeners for the specified event\n delete events[evt];\n }\n else if (evt instanceof RegExp) {\n // Remove all events matching the regex.\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n delete events[key];\n }\n }\n }\n else {\n // Remove all listeners in all events\n delete this._events;\n }\n\n return this;\n };\n\n /**\n * Alias of removeEvent.\n *\n * Added to mirror the node API.\n */\n proto.removeAllListeners = alias('removeEvent');\n\n /**\n * Emits an event of your choice.\n * When emitted, every listener attached to that event will be executed.\n * If you pass the optional argument array then those arguments will be passed to every listener upon execution.\n * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.\n * So they will not arrive within the array on the other side, they will be separate.\n * You can also pass a regular expression to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {Array} [args] Optional array of arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emitEvent = function emitEvent(evt, args) {\n var listenersMap = this.getListenersAsObject(evt);\n var listeners;\n var listener;\n var i;\n var key;\n var response;\n\n for (key in listenersMap) {\n if (listenersMap.hasOwnProperty(key)) {\n listeners = listenersMap[key].slice(0);\n i = listeners.length;\n\n while (i--) {\n // If the listener returns true then it shall be removed from the event\n // The function is executed either with a basic call or an apply if there is an args array\n listener = listeners[i];\n\n if (listener.once === true) {\n this.removeListener(evt, listener.listener);\n }\n\n response = listener.listener.apply(this, args || []);\n\n if (response === this._getOnceReturnValue()) {\n this.removeListener(evt, listener.listener);\n }\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of emitEvent\n */\n proto.trigger = alias('emitEvent');\n\n /**\n * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.\n * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {...*} Optional additional arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emit = function emit(evt) {\n var args = Array.prototype.slice.call(arguments, 1);\n return this.emitEvent(evt, args);\n };\n\n /**\n * Sets the current value to check against when executing listeners. If a\n * listeners return value matches the one set here then it will be removed\n * after execution. This value defaults to true.\n *\n * @param {*} value The new value to check for when executing listeners.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.setOnceReturnValue = function setOnceReturnValue(value) {\n this._onceReturnValue = value;\n return this;\n };\n\n /**\n * Fetches the current value to check against when executing listeners. If\n * the listeners return value matches this one then it should be removed\n * automatically. It will return true by default.\n *\n * @return {*|Boolean} The current value to check for or the default, true.\n * @api private\n */\n proto._getOnceReturnValue = function _getOnceReturnValue() {\n if (this.hasOwnProperty('_onceReturnValue')) {\n return this._onceReturnValue;\n }\n else {\n return true;\n }\n };\n\n /**\n * Fetches the events object and creates one if required.\n *\n * @return {Object} The events storage object.\n * @api private\n */\n proto._getEvents = function _getEvents() {\n return this._events || (this._events = {});\n };\n\n /**\n * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.\n *\n * @return {Function} Non conflicting EventEmitter class.\n */\n EventEmitter.noConflict = function noConflict() {\n exports.EventEmitter = originalGlobalValue;\n return EventEmitter;\n };\n\n // Expose the class either via AMD, CommonJS or the global object\n if (typeof define === 'function' && define.amd) {\n define(function () {\n return EventEmitter;\n });\n }\n else if (typeof module === 'object' && module.exports){\n module.exports = EventEmitter;\n }\n else {\n exports.EventEmitter = EventEmitter;\n }\n}.call(this));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wolfy87-eventemitter/EventEmitter.js\n ** module id = 93\n ** module chunks = 0 1\n **/","/* global Node, NodeList, Element */\n\n/**\n * @type {string}\n */\nexport const ATTR_DATA_ORIGINAL_INDEX = 'data-original-index';\n/**\n * @type {string}\n */\nexport const DATA_IS_SELECTION = 'data-is-selection';\n/**\n * @type {string}\n */\nconst SERIALIZE_SEPARATOR = \";\";\n\nimport { ATTR_DATA_ORIGINAL_OFFSET_START } from '../Rendering';\n\n// polyfill for matchesSelector, IE 10/11 does not support Element.matches\nif (Element && !Element.prototype.matches) {\n const p = Element.prototype;\n p.matches = p.matchesSelector ||\n p.mozMatchesSelector || p.msMatchesSelector ||\n p.oMatchesSelector || p.webkitMatchesSelector;\n}\n\n/**\n * Utility class\n * Contains DOM/Node manipulation helpers\n */\nexport default\nclass Util {\n\n /**\n * Filter for a NodeList\n * @param {NodeList} nodes\n * @param {Function} func\n *\n * @returns {Array.}\n */\n static nodeListFilter(nodes, func) {\n return Array.prototype.filter.call(nodes || [], func);\n }\n\n\n /**\n * Generates a unique id\n *\n * @return {String}\n */\n static guid() {\n const s4 = () => {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n };\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n }\n\n /**\n * Checks if a given node is empty\n * @param {HTMLElement} node\n *\n * @returns {*}\n */\n static nodeIsEmpty(node) {\n return node.nodeValue.match(/^[\\s]*$/g);\n }\n\n\n /**\n * @param {HTMLElement} node\n * @param [optionalList]\n *\n * @return {int} the index of this node in context to it's siblings\n */\n static index(node, optionalList) {\n const children = optionalList || (node.nodeType === Node.TEXT_NODE ?\n node.parentNode.childNodes : node.parentNode.children);\n return Array.prototype.indexOf.call(children || [], node);\n }\n\n /**\n * Wraps given `elms` in given `wrapper`\n *\n * @param {HTMLElement|Array.|Node} elms\n * @param {HTMLElement|Node} wrapper\n *\n * @return {HTMLElement}\n */\n static wrap(elms, wrapper) {\n let thisElms = elms;\n\n if (!thisElms) {\n return wrapper;\n }\n // Convert `elms` to an array, if necessary.\n if (!(thisElms instanceof NodeList || thisElms instanceof Array)) {\n thisElms = [thisElms];\n }\n for (let i = thisElms.length - 1; i >= 0; i--) {\n const child = (i > 0) ? wrapper.cloneNode(true) : wrapper;\n const el = thisElms[i];\n // Cache the current parent and sibling.\n const parent = el.parentNode;\n const sibling = el.nextSibling;\n\n child.appendChild(el);\n if (sibling) {\n parent.insertBefore(child, sibling);\n } else {\n parent.appendChild(child);\n }\n }\n return wrapper;\n }\n\n /**\n * Will calculate an index depending on an already modified dom by marklib\n * @param {HTMLElement|Node} node\n *\n * @returns {int|boolean}\n */\n static calcIndex(node) {\n let calculatedIndex = 0;\n let foundWrapper = false;\n const nodes = node.parentNode.childNodes;\n const length = nodes.length;\n for (let thisIndex = 0; thisIndex < length; thisIndex++) {\n const el = nodes[thisIndex];\n if (el === node) {\n break;\n }\n // reset index when original index is found\n const maybeIndexOfOriginal = el.getAttribute ? el.getAttribute(ATTR_DATA_ORIGINAL_INDEX) : null;\n\n if (maybeIndexOfOriginal) {\n calculatedIndex = parseInt(maybeIndexOfOriginal, 10);\n foundWrapper = true;\n }\n calculatedIndex++;\n }\n return foundWrapper ? calculatedIndex : Util.index(node);\n }\n\n /**\n * @param {HTMLElement|Node} el\n * @param {String} [optionalSelector] will test given element against a selector\n * if matches, returns this element immediately\n *\n * @return {Array.} an array of all found parents of given element (and optional selector)\n */\n static parents(el, optionalSelector) {\n return Util.parentsCallback(el, (element) => {\n if (optionalSelector && ((element === optionalSelector) ||\n ((typeof optionalSelector === 'string') && element.matches &&\n element.matches(optionalSelector)))) {\n return true;\n } else if (!optionalSelector) {\n return true;\n }\n return false;\n });\n }\n\n /**\n * @param {HTMLElement|Node} el\n * @param {Function} callback\n * @return {Array.} an array of all found parents of given element (and optional selector)\n */\n static parentsCallback(el, callback) {\n let element = el;\n const foundElements = [];\n while (element.parentNode !== null) {\n element = element.parentNode;\n if (callback(element)) {\n foundElements.push(element);\n }\n }\n return foundElements;\n }\n\n /**\n * Finds a parent node (the closest) with a given selector\n * @param {Node} el\n * @param {String} selector\n *\n * @returns {Node|boolean}\n */\n static parent(el, selector) {\n let element = el;\n while (element.parentNode !== null) {\n element = element.parentNode;\n if (element.matches && element.matches(selector)) {\n return element;\n }\n }\n return false;\n }\n\n /**\n * Finds the closest element including itself matching a given selector\n * @param {Node} el\n * @param selector\n *\n * @returns {Node|boolean}\n */\n static closest(el, selector) {\n return Util.closestCallback(el, (element) => element.matches && element.matches(selector));\n }\n\n /**\n * Finds the closest element including itself matching a callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static closestCallback(el, callback) {\n let element = el;\n while (element !== null) {\n if (callback(element)) {\n return element;\n }\n element = element.parentNode;\n }\n return false;\n }\n\n /**\n * Finds the outermost fitting element that matches callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static outerMostCallback(el, callback) {\n let element = el;\n let lastValid = false;\n while (element !== null) {\n if (callback(element)) {\n lastValid = element;\n }\n element = element.parentNode;\n }\n return lastValid;\n }\n\n /**\n * @param {HTMLElement} n\n *\n * @return {boolean}\n */\n static isMarkNode(n) {\n return n instanceof HTMLElement && n.hasAttribute(DATA_IS_SELECTION);\n }\n\n /**\n * Determines the correct paths and excludes all `marklib` generated content\n * TODO: To improve performance we could shorten the path if an ID is present in it.\n * @param {HTMLElement|Node} el\n * @param {HTMLElement|Node} [context] if given extraction path is relative to this element\n * @returns {string}\n */\n static getPath(el, context) {\n let path = null;\n let node = el;\n\n const filterSiblings = (thisEl) => {\n return !Util.isMarkNode(thisEl) && thisEl.nodeName === node.nodeName;\n };\n\n while (node) {\n let name = null;\n // If node is a text-node, save index\n if (Node.TEXT_NODE === node.nodeType) {\n /* Because nodes may wrapped inside a highlighting node, we need to find the original index that was\n * valid before the dom changes. We store the last known index position inside all wrapper elements\n * We select the outermost\n */\n\n // Extract original index of this node:\n // Outer most data-original-index is original index\n const outerMostElement = Util.parents(node, '[' + ATTR_DATA_ORIGINAL_INDEX + ']').reverse()[0];\n // if element is not yet wrapped in span, recalculate index based on parent container:\n // We have to do this because text node indexes != element indexes...\n let calculatedIndex = 0;\n if (!outerMostElement) {\n calculatedIndex = Util.calcIndex(node);\n }\n const index = outerMostElement ? parseInt(\n outerMostElement.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10) : calculatedIndex;\n name = SERIALIZE_SEPARATOR + index;\n } else {\n name = node.nodeName;\n }\n\n if (!name) {\n break;\n }\n\n name = name.toLowerCase();\n\n const parent = node.parentNode;\n\n if (Util.isMarkNode(node)) {\n if (parent !== context) {\n node = parent;\n continue;\n } else {\n break;\n }\n }\n\n // Select only siblings that are not part of selection and are of the same type\n // (because we use nth-of-type selector later)\n const siblings = Util.nodeListFilter(parent.children, filterSiblings);\n const nodeIndex = Util.index(node, siblings);\n\n if (siblings.length > 1 && nodeIndex >= 0) {\n name += ':nth-of-type(' + (nodeIndex + 1) + ')';\n }\n\n path = name + (path ? '>' + path : '');\n\n\n if (parent === context) {\n break;\n }\n\n node = parent;\n }\n\n return path.replace(\"#document>\", \"\").replace('>;', ';');\n }\n\n /**\n * Will return the first original offset value that is found\n * @param {Node} element\n *\n * @returns {int}\n */\n static findOriginalOffset(element) {\n if (!element.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n return 0;\n }\n const lengthElement = Util.parent(element, '[' + ATTR_DATA_ORIGINAL_OFFSET_START + ']');\n return lengthElement ? parseInt(lengthElement.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) : 0;\n }\n\n\n /**\n * Deserialize a specific path and finds the right textNodes\n * This even works when DOM has been manipulated before by `marklib`\n * @param {string} path the serialized path (including offsets)\n * @param {Node|HTMLElement} context\n *\n * @return {Node}\n */\n static deserializePath(path, context) {\n const pSplit = path.split(';');\n const p = pSplit[0];\n const objectIndex = parseInt(pSplit[1], 10);\n const charOffset = parseInt(pSplit[2], 10);\n const container = !p.trim() ? context : context.querySelector(p);\n\n let maybeFoundNode = null;\n\n Util.walkTextNodes(container, (n) => {\n let atrOffsetStart = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START);\n atrOffsetStart = atrOffsetStart === null ? 0 : atrOffsetStart;\n let atrIndex = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_INDEX);\n atrIndex = atrIndex === null ? Util.calcIndex(n) : atrIndex;\n if (parseInt(atrIndex, 10) === objectIndex && charOffset >= atrOffsetStart &&\n ((parseInt(atrOffsetStart, 10) + n.length) >= charOffset)) {\n const thisOffset = n.parentNode\n .hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START) ? charOffset -\n parseInt(n.parentNode\n .getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) : charOffset;\n\n maybeFoundNode = {\n node: n,\n offset: thisOffset\n };\n\n return false;\n }\n return true;\n }, null);\n\n return maybeFoundNode;\n }\n\n\n /**\n * Walks the dom tree unless func returns false\n * Applies node to function\n *\n * @param {Node} node\n * @param {Function} func\n * @param {int} type, see `NodeFilter`\n * @param {Object} [filter] skips empty text nodes by default\n *\n * @returns {boolean} true if function did abort walk\n */\n static walkDom(node, func, type = NodeFilter.SHOW_ALL, filter = null) {\n if (!node) {\n return false;\n }\n const args = [node, type, filter || (() => true), false];\n args.push(false);\n const walker = document.createTreeWalker(...args);\n while (walker.nextNode()) {\n if (!func(walker.currentNode)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Extracts all TextNodes inside a container\n * @param {Node} el\n * @param {Function} func\n * @param {Object} [filter] skips empty text nodes by default\n * @returns {boolean} true if function did abort walk\n */\n static walkTextNodes(el, func, filter = (node) => !Util.nodeIsEmpty(node)) {\n return Util.walkDom(el, func, NodeFilter.SHOW_TEXT, filter);\n }\n\n /**\n * @param {Node} container\n * @param {Number} thisIndex\n * @returns {int|string} index of parent or original\n */\n static getIndexParentIfHas(container, thisIndex) {\n const p = container.parentNode;\n const index = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10);\n return index > thisIndex ? index : thisIndex;\n }\n\n /**\n * @param container\n * @returns {int} offset start of parent if has, else 0\n */\n static getOffsetParentIfHas(container) {\n const p = container.parentNode;\n const offset = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10);\n return offset > 0 ? offset : 0;\n }\n\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/util/Util.js\n **/","/* global localStorage, document */\n\nimport { Rendering } from 'modules/Marklib';\nimport { Tooltip } from 'flexcss';\n\nconst KEY_ENTER = 13;\n\n/**\n * Contains Module for the demonstration\n */\n\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n const STORAGE_KEY = 'savedRanges';\n const ANIMATIONEND = 'animationend';\n let allRanges = [];\n const tooltip = new Tooltip(document.body);\n\n /**\n * Creates an animated rendering\n */\n function presentRendering(selector, classNames, speed) {\n const text = document.getElementById(selector).childNodes[0];\n const thisLength = text.length;\n\n const render = (autoMarkText, cp, length) => {\n let c = cp;\n const r = new Rendering(document, {\n className: classNames\n });\n const range = document.createRange();\n range.setStart(autoMarkText, 0);\n range.setEnd(autoMarkText, 1);\n r.renderWithRange(range);\n if (autoMarkText.parentNode.nextSibling) {\n const nextText = autoMarkText.parentNode.nextSibling.childNodes[0];\n setTimeout(() => {\n render(nextText, ++c, length);\n }, speed);\n }\n };\n\n return render(text, 0, thisLength);\n }\n\n presentRendering('automark', 'fadeInDown', 20);\n\n let savedRanges = JSON.parse(localStorage.getItem(STORAGE_KEY)) || [];\n let animated = false;\n\n /**\n * OnClick event for renderings\n */\n function onClick() {\n const self = this;\n this.wrapperNodes.forEach((n) => {\n n.addEventListener(ANIMATIONEND, function thisFunction(e) {\n e.target.classList.remove('bubble');\n e.target.removeEventListener(ANIMATIONEND, thisFunction);\n });\n n.classList.add('bubble');\n });\n\n if (tooltip.getCurrentTarget() === this.wrapperNodes[0]) {\n return;\n }\n\n tooltip.createTooltip(this.wrapperNodes[0], this.result.text, false);\n\n setTimeout(() => {\n if (tooltip.getCurrentTarget()) {\n document.addEventListener('click', function thisFunction() {\n if (tooltip.getCurrentTarget() && tooltip.getCurrentTarget() === self.wrapperNodes[0]) {\n tooltip.removeTooltip();\n }\n document.removeEventListener('click', thisFunction);\n });\n }\n }, 0);\n }\n\n\n savedRanges.forEach((range) => {\n const marker = new Rendering(document);\n try {\n marker.renderWithResult(range);\n allRanges.push(marker);\n marker.on('click', onClick);\n } catch (e) {\n console.warn(\"Could not render:\", range, e);\n localStorage.setItem(STORAGE_KEY, JSON.stringify([]));\n console.error('Cleared local storage because of a rendering issue, the page might have been changed ;)');\n }\n });\n\n window.addEventListener('scroll', () => {\n const el = document.getElementById('secondParagraph');\n const r = el.getBoundingClientRect();\n const html = document.documentElement;\n if (r.top <= html.clientHeight && r.bottom >= 0 && !animated) {\n animated = true;\n\n el.classList.add('animate');\n if (!savedRanges.length) {\n presentRendering('secondParagraphItem', 'marking', 30);\n }\n }\n });\n\n const actionMark = () => {\n try {\n const selection = document.getSelection();\n const renderer = new Rendering(document);\n const result = renderer.renderWithRange(selection.getRangeAt(0));\n\n renderer.on('click', onClick);\n allRanges.push(renderer);\n\n selection.removeAllRanges();\n savedRanges.push(result.serialize());\n localStorage.setItem(STORAGE_KEY, JSON.stringify(savedRanges));\n } catch (e) {\n console.warn(\"Could not add selection: \", e);\n }\n };\n\n document.addEventListener(\"keydown\", (e) => {\n if (e.keyCode === KEY_ENTER) {\n actionMark();\n }\n });\n\n document.addEventListener(\"click\", (e) => {\n if (e.target.id === 'action-mark') {\n return actionMark();\n } else if (e.target.id === 'action-clear') {\n allRanges.forEach((range) => range.destroy());\n savedRanges = [];\n allRanges = [];\n localStorage.setItem(STORAGE_KEY, JSON.stringify([]));\n }\n });\n});\n\nexport default Rendering;\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/modules/Site.js\n **/","module.exports = { \"default\": require(\"core-js/library/fn/json/stringify\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/json/stringify.js\n ** module id = 96\n ** module chunks = 1\n **/","var core = require('../../modules/$.core');\nmodule.exports = function stringify(it){ // eslint-disable-line no-unused-vars\n return (core.JSON && core.JSON.stringify || JSON.stringify).apply(JSON, arguments);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/json/stringify.js\n ** module id = 97\n ** module chunks = 1\n **/","import Form from '../Form';\nimport Tooltip from '../Tooltip';\nimport Modal from '../Modal';\nimport Widget from '../Widget';\nimport Settings from '../util/Settings';\nimport Toggleable from '../Toggleable';\nimport OffCanvas from '../OffCanvas';\nimport Dropdown from '../Dropdown';\nimport LightBox from '../LightBox';\nimport Util from '../util/Util';\n\nexport { Form, Tooltip, Modal, Widget, Settings, Util, Toggleable, OffCanvas, Dropdown, LightBox };\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/modules/All.js\n **/","/*global HTMLFormElement, fetch, FormData, clearTimeout, NodeList*/\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Form\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n'use strict';\n\nimport Tooltip from './Tooltip';\nimport 'isomorphic-fetch';\nimport Event from './util/Event';\nimport Util from './util/Util';\nimport Settings from './util/Settings';\nimport DestroyableWidget from './DestroyableWidget';\n\nconst LOADING_CLASS = 'loading';\nconst DATA_ELEMENT_INVALID = 'data-flexcss-invalid';\nconst REMOTE = 'data-remote';\nconst REMOTE_ACTION = 'data-remote-action';\nconst ATTR_DISABLE_INLINE = 'data-disable-inline-validation';\nconst ATTR_DISABLE_REALTIME = 'data-disable-realtime-validation';\nconst ATTR_VALIDATOR = 'data-validate';\nconst ATTR_DATA_CUSTOM_MESSAGE = 'data-validation-message';\nconst ATTR_DATA_CUSTOM_LABEL = 'data-custom-label';\nconst ATTR_VALIDATE_VISIBILITY = 'data-validate-visibility';\nconst ATTR_ERROR_TARGET_ID = 'data-error-target';\nconst ATTR_DEPENDS = 'data-depends-selector';\nconst CONST_USE_JSON = 'json';\nconst CONST_REALTIME_EVENT = 'input';\nconst FOCUS_TOOLTIP_DELAY = 20;\nconst CLICK_TOOLTIP_DELAY = 150;\n\n/**\n * Triggered when form is fully initialized and handlers are binded\n * @type {string}\n */\nexport const EVENT_FORM_READY = 'flexcss.form.ready';\n/**\n * Fires when a form is submitted, cancelable\n * @type {string}\n */\nexport const EVENT_FORM_SUBMIT = 'flexcss.form.submit';\n/**\n * Fired directly after the form has been submitted via ajax\n * @type {string}\n */\nexport const EVENT_FORM_AFTER_AJAX_SUBMIT = 'flexcss.form.afterAjaxSubmit';\n/**\n * Fired when ajax events did complete\n * @type {string}\n */\nexport const EVENT_FORM_AJAX_COMPLETED = 'flexcss.form.ajaxCompleted';\n\n/**\n * A HTML5 Form Validation replacement\n */\n\nclass Form extends DestroyableWidget {\n /**\n * @param {HTMLElement} form\n * @param [options] optional options\n */\n constructor(form, options) {\n super();\n\n if (!(form instanceof HTMLFormElement)) {\n throw 'argument {0} form needs to be an form element';\n }\n\n /**\n * The Form\n * @type {HTMLElement}\n */\n this.form = form;\n\n /**\n * @type {Tooltip}\n */\n this.tooltips = null;\n\n /**\n * @type {Promise}\n */\n this.currentValidationFuture = new Promise(() => {\n });\n\n /**\n * Default options\n * @type {Object}\n */\n this.options = {\n // if true creates tooltips above element, uses FlexCss Tooltips\n createTooltips: true,\n // if true appends error message after input element\n appendError: false,\n // type of ajax submit\n ajaxSubmitType: 'POST',\n // json content type if ajax method is set to json\n ajaxJsonContentType: 'application/json; charset=utf-8',\n // allow inline validation\n inlineValidation: true,\n // validate in realtime (on `input` event)\n realtime: true,\n // timeout when realtime event should be captured\n realtimeTimeout: 250,\n // formatting method for an error\n formatErrorTooltip: (error) => {\n return ' ' + error;\n },\n // the class that will be put on the element to mark it failed validation\n inputErrorClass: 'invalid',\n // the container class for error messages below an element\n containerErrorClass: 'form-error',\n // additional options for fetch\n fetchOptions: {\n credentials: 'include'\n },\n // the container for tooltips\n tooltipContainer: form,\n tooltipOptions: {\n containerClass: 'error-tooltip'\n },\n // if you have a fixed header, either set a number or function here\n scrollToElementDiff: 0\n };\n\n // overwrite default options\n Object.assign(this.options, options);\n\n // apply settings from attributes\n Util.applyOptionsFromElement(form, this.options);\n\n // set form class as widget\n // Forms are very different to classical widgets,\n // we will not use our base widget class for this but just self\n form.hfWidgetInstance = this;\n\n /**\n * A List of Validators\n * @type {Object}\n * @private\n */\n this._validators = Form.globalValidators;\n\n /**\n * @type {Function}\n * @private\n */\n this._remoteValidationFunction = null;\n\n this.initFormValidation();\n }\n\n destroy() {\n super.destroy();\n if (this.tooltips) {\n this.tooltips.destroy();\n }\n }\n\n /**\n * Submits this form, either via ajax or just classical (default)\n * @param {HTMLFormElement} thisForm\n * @param {Event} e\n * @private\n * @returns {Promise|boolean} returns false if submit is cancled\n */\n _submitFunction(thisForm, e) {\n var shouldUseAjax = thisForm.getAttribute(REMOTE), ajaxPostUrl =\n thisForm.getAttribute(REMOTE_ACTION) ||\n thisForm.getAttribute('action') || window.location.href,\n useJson = CONST_USE_JSON === shouldUseAjax, self = this;\n\n var ev = Event.dispatch(thisForm, EVENT_FORM_SUBMIT).withOriginal(e).fire();\n\n // abort execution is event was prevented\n if (ev.defaultPrevented) {\n self._formStopLoading();\n return false;\n }\n\n if (shouldUseAjax === null) {\n // submit\n return thisForm.submit();\n }\n // prevent form from submit normally\n e.preventDefault();\n\n // add information that this is an XMLHttpRequest request (used by some frameworks)\n let defaultHeaders = {\n 'X-Requested-With': 'XMLHttpRequest'\n };\n\n // setup default headers\n if (useJson) {\n Object.assign(defaultHeaders, {\n 'Content-Type': this.options.ajaxJsonContentType\n });\n }\n let defaultOptions = Object.assign(this.options.fetchOptions, {\n headers: defaultHeaders,\n method: this.options.ajaxSubmitType\n });\n\n // support either JSON request payload or normal payload submission\n var serverCall = useJson ? fetch(ajaxPostUrl, Object.assign(defaultOptions, {\n body: JSON.stringify(this.serialize())\n })) : fetch(ajaxPostUrl, Object.assign(defaultOptions, {\n body: new FormData(thisForm)\n }));\n\n Event.dispatch(thisForm, EVENT_FORM_AFTER_AJAX_SUBMIT).withOriginal(e).fire();\n\n return serverCall.then((r) => {\n (self._remoteValidationFunction || Form.globalRemoteValidationFunction).apply(self, [r]);\n\n Event.dispatch(thisForm, EVENT_FORM_AJAX_COMPLETED).withOriginal(e).withDetail({ response: r }).fire();\n // always remove error class\n self._formStopLoading();\n });\n }\n\n /**\n * Serializes a form to a json object\n * @returns {Object}\n */\n serialize() {\n var selectors = [\n 'input[name]:not([type=\"radio\"]):enabled',\n 'input[type=\"radio\"][name]:checked',\n 'select[name]:enabled',\n 'textarea[name]:enabled'\n ], inputs = this.form.querySelectorAll(selectors.join(',')), result = {};\n\n Array.prototype.forEach.call(inputs, function (input) {\n var exists = result[input.name], value = input.value;\n if (exists instanceof Array) {\n exists.push(value);\n } else if (exists) {\n result[input.name] = [result[input.name], value];\n } else {\n result[input.name] = value;\n }\n });\n\n return result;\n }\n\n /**\n * Handles the chain of validation on given fields\n *\n * @param {HTMLElement|Array|NodeList} field\n * @param [focus] optional focus first error\n * @returns {Promise}\n */\n handleValidation(field, focus) {\n var fields = (field instanceof Array || field instanceof NodeList) ? field : [field];\n return this._handleValidation(fields, focus, true).then(((r) => {\n if (!r.foundAnyError) {\n // remove tooltips\n if (this.tooltips) {\n this.tooltips.removeTooltip();\n }\n }\n return r;\n }).bind(this));\n }\n\n /**\n * Handles errors on given node list\n * @param {NodeList} toValidateFields\n * @param {boolean} focus\n * @param {boolean} scoped if true, will only validate the fields `invalidFields`\n * @returns {Promise}\n * @private\n */\n _handleValidation(toValidateFields, focus, scoped) {\n var self = this;\n var arr = Form._createArrayFromInvalidFieldList(toValidateFields), isLocalInvalid = arr.length > 0;\n // focus must appear in the same frame for iOS devices\n if (isLocalInvalid && focus) {\n self._focusElement(arr[0]);\n }\n var validation = scoped ? this._customValidationsForElements(toValidateFields) :\n self.validateCustomFields();\n return validation.then((r) => {\n if (isLocalInvalid) {\n // combine browser and custom validators\n r.foundAnyError = true;\n }\n // get a unique field list of all fields that need to be checked and rendered\n // it's possible that we have duplicates in non scoped mode\n let thisToValidateFields = scoped ? toValidateFields :\n Array.from(arr).concat(r.checkedFields);\n r.checkedFields = thisToValidateFields;\n let foundInvalidFields = self.prepareErrors(thisToValidateFields, false),\n firstInvalidField = foundInvalidFields[0];\n if (firstInvalidField) {\n if (focus) {\n self._focusElement(firstInvalidField);\n // if element could not be focused:\n if (document.activeElement !== firstInvalidField) {\n self._handleTooltipHideClickAfterChange();\n }\n } else {\n self._handleTooltipHideClickAfterChange();\n }\n self.showAndOrCreateTooltip(firstInvalidField);\n }\n return r;\n });\n }\n\n /**\n * @param {HTMLElement} field\n * @param {ValidityState} validity\n * @returns {*}\n * @private\n */\n\n _setupErrorMessages(field, validity) {\n return Form.globalErrorMessageHandler ?\n Form.globalErrorMessageHandler.apply(this, [field, validity]) : false;\n }\n\n /**\n * Handles class labels for elements\n * @param {Object} fields\n * @private\n */\n _handleLabels(fields) {\n Object.keys(fields).forEach(function (id) {\n let labels = this.getForm().querySelectorAll('[for=\"' + id + '\"]'), invalid = fields[id];\n if (labels.length) {\n for (let labelsIndex = 0; labelsIndex < labels.length; labelsIndex++) {\n let labelEl = labels[labelsIndex];\n // we can't use toggle attribute, not supported in IE\n if (invalid) {\n this._markElementInvalid(labelEl);\n } else {\n this._markElementValid(labelEl);\n }\n }\n }\n }.bind(this));\n }\n\n /**\n * @param el\n * @private\n */\n _markElementInvalid(el) {\n el.setAttribute(DATA_ELEMENT_INVALID, \"true\");\n el.classList.add(this.options.inputErrorClass);\n }\n\n /**\n * @param el\n * @private\n */\n _markElementValid(el) {\n el.removeAttribute(DATA_ELEMENT_INVALID);\n el.classList.remove(this.options.inputErrorClass);\n }\n\n /**\n * A List of invalid elements (:invalid)\n * @returns {Array}\n * @private\n */\n _getInvalidElements() {\n return Array.prototype.filter.call(this.getForm().querySelectorAll(\":invalid\"), function (r) {\n return !(r instanceof HTMLFieldSetElement);\n });\n }\n\n /**\n * @param {HTMLElement} thisParent\n * @private\n */\n _removeElementErrors(thisParent) {\n let errors = thisParent.querySelectorAll('.' + this.options.containerErrorClass), inputsWithErrorClasses =\n thisParent.querySelectorAll(`[${DATA_ELEMENT_INVALID}]`);\n for (let elementErrorIndex = 0; elementErrorIndex < errors.length; elementErrorIndex++) {\n errors[elementErrorIndex].parentNode.removeChild(errors[elementErrorIndex]);\n }\n for (let inputErrorIndex = 0; inputErrorIndex < inputsWithErrorClasses.length; inputErrorIndex++) {\n let el = inputsWithErrorClasses[inputErrorIndex];\n this._markElementValid(el);\n }\n }\n\n\n /**\n * Registers a custom validator\n * @param {String} name\n * @param {Function} validator a validation function should always return either a Future(true) or Future(false)\n * even when the field has been invalidated with `setCustomValidity`, because of different browser `bugs`\n * we can't rely on that\n * @returns {Form}\n */\n registerValidator(name, validator) {\n this._validators[name] = validator;\n return this;\n }\n\n /**\n * Runs async validation\n * @param {String} validationRef\n * @param {HTMLElement} field\n * @returns {Promise}\n * @private\n */\n _runValidation(validationRef, field) {\n if (!this._validators[validationRef]) {\n throw 'Could not found validator: ' + validationRef;\n }\n var cl = field.classList, future = this._validators[validationRef].apply(this, [field, this.form]);\n cl.add(LOADING_CLASS);\n future.then(() => {\n cl.remove(LOADING_CLASS);\n });\n return future;\n }\n\n\n /**\n * Run custom validations for elements, validations are done async do support XHR Requests or other stuff\n *\n * @param {Array|NodeList} fields\n * @returns {Promise} contains either true if validations passed or false if something went wrong\n * @private\n */\n _customValidationsForElements(fields) {\n var futures = [], fieldsLength = fields.length, checkedFields = [];\n for (var iVal = 0; iVal < fieldsLength; iVal++) {\n var field = fields[iVal], validationRef = field.getAttribute(ATTR_VALIDATOR), validity = field.validity;\n if (this._validators[validationRef]) {\n // use local validation first and then continue with custom validations\n if (Form._shouldNotValidateField(field) || (validity && !validity.customError && !validity.valid)) {\n continue;\n }\n checkedFields.push(field);\n futures.push(this._runValidation(validationRef, field));\n } else {\n if (validationRef) {\n console.warn('data-validate was set but no validator was found');\n }\n }\n }\n return Promise.all(futures).then(function (allFutures) {\n let l = allFutures.length;\n let result = {\n checkedFields: checkedFields,\n foundAnyError: false\n };\n for (var fI = 0; fI < l; fI++) {\n if (!allFutures[fI]) {\n result.foundAnyError = true;\n break;\n }\n }\n return result;\n });\n }\n\n /**\n * Remove all errors for this form\n * @returns {Form}\n */\n removeErrors() {\n this._removeElementErrors(this.form);\n if (this.tooltips) {\n this.tooltips.removeTooltip();\n }\n return this;\n }\n\n /**\n * Will handle errors for given fields\n * @param {Array|NodeList} fields\n * @param {Boolean} removeAllErrors\n */\n prepareErrors(fields, removeAllErrors) {\n if (removeAllErrors) {\n this.removeErrors();\n }\n let labelGroups = {}, invalidFields = [];\n\n function handleAdditionalLabels(isInvalid, thisLabelGroup, field) {\n let additionalLabels = field.getAttribute(ATTR_DATA_CUSTOM_LABEL) ||\n field.id, group = thisLabelGroup[additionalLabels];\n if (additionalLabels) {\n // check additionally if field is currently marked as invalid\n // so the label is not marked as error if no field is marked as one\n group = group ? group : isInvalid;\n thisLabelGroup[additionalLabels] = group;\n }\n }\n\n // We save all validations in an extra property because we need to reset the validity due some\n // implementation errors in other browsers then chrome\n for (let i = 0; i < fields.length; i++) {\n let field = fields[i], errorTarget = Form._findErrorTarget(field), parent = errorTarget.parentNode,\n validity = field.validity, isInvalid = validity && !validity.valid;\n if (Form._shouldNotValidateField(field)) {\n continue;\n }\n field.flexFormsSavedValidity = JSON.parse(JSON.stringify(validity));\n handleAdditionalLabels(isInvalid, labelGroups, field);\n if (isInvalid) {\n if (!removeAllErrors) {\n // Remove current errors:\n this._removeElementErrors(parent);\n }\n // setup custom error messages:\n this._setupErrorMessages(field, validity);\n let msg = field.validationMessage;\n\n // mark fields as invalid\n this._markElementInvalid(errorTarget);\n this._markElementInvalid(field);\n\n if (this.options.appendError) {\n parent.insertAdjacentHTML(\"beforeend\",\n `
${msg}
`);\n }\n invalidFields.push(field);\n field.flexFormsSavedValidationMessage = msg;\n } else {\n // restore invalid fields\n this._markElementValid(errorTarget);\n this._markElementValid(field);\n\n // cleanup\n delete field.flexFormsSavedValidationMessage;\n\n // remove error markup\n this._removeElementErrors(parent);\n }\n // We have to reset the custom validity here to allow native validations work again\n field.setCustomValidity('');\n }\n // if validates a single field we need to check the linked fields to a label:\n if (fields.length === 1) {\n let field = fields[0];\n let id = field.getAttribute(ATTR_DATA_CUSTOM_LABEL) || field.id;\n if (id) {\n let linkedFields = Array.from(\n this.getForm().querySelectorAll(`[${ATTR_DATA_CUSTOM_LABEL}=\"${id}\"], #${id}`));\n linkedFields.forEach(function (thisField) {\n let validity = thisField.validity, isInvalid = validity && !validity.valid &&\n this._isElementInvalidElement(thisField);\n handleAdditionalLabels(isInvalid, labelGroups, thisField);\n }.bind(this));\n }\n }\n this._handleLabels(labelGroups);\n return invalidFields;\n }\n\n /**\n * Validates all custom fields\n * @returns {Promise}\n */\n validateCustomFields() {\n return this._customValidationsForElements(\n this.form.querySelectorAll(\"[data-validate]\"));\n }\n\n /**\n * Tests if a field should be validated\n * @param {HTMLElement} field\n * @returns {boolean}\n * @private\n */\n static _shouldNotValidateField(field) {\n var target = Form._findErrorTarget(field);\n return target instanceof HTMLFieldSetElement || field.validity === undefined ||\n (target.hasAttribute(ATTR_VALIDATE_VISIBILITY) && !Util.isVisible(target));\n }\n\n /**\n * Creates an array from a node list with invalid items\n * This Method expicitly checks if field should not be validated so it can be used to foucs a field\n * @param list\n * @returns {Array}\n * @private\n */\n static _createArrayFromInvalidFieldList(list) {\n var arr = [];\n for (var i = 0; i < list.length; ++i) {\n var n = list[i];\n if (n.validity && !n.validity.valid) {\n if (!Form._shouldNotValidateField(n)) {\n arr.push(n);\n }\n }\n }\n return arr;\n }\n\n\n /**\n * This form\n * @returns {HTMLElement}\n */\n getForm() {\n return this.form;\n }\n\n /**\n * Registers a function that handles remote validation\n * @param {Function} func\n * @returns {Form}\n */\n registerRemoteValidation(func) {\n this._remoteValidationFunction = func;\n return this;\n }\n\n\n /**\n * Formats the error content for the tooltip\n * @param {String} error\n * @returns {String}\n * @private\n */\n _formatErrorTooltip(error) {\n return this.options.formatErrorTooltip.apply(this, [error]);\n }\n\n /**\n * Tries to find a custom error target on given target\n * @param target\n * @returns {HTMLElement}\n * @private\n */\n static _findErrorTarget(target) {\n var el = target.getAttribute(ATTR_ERROR_TARGET_ID) || target,\n foundTarget = el instanceof HTMLElement ? el : global.document.getElementById(el);\n if (!foundTarget) {\n throw 'Given error target did not exsits:' + target;\n }\n return foundTarget;\n }\n\n /**\n * Creates a tooltip at given element, will only create a new instance if not created\n * @param {HTMLElement} target\n * @param {Boolean} [remove]\n */\n showAndOrCreateTooltip(target, remove) {\n var self = this;\n if (!this.tooltips && this.options.createTooltips) {\n this.tooltips = new Tooltip(this.options.tooltipContainer, this.options.tooltipOptions);\n }\n if (!this.options.createTooltips) {\n return false;\n }\n\n if (!target.flexFormsSavedValidity) {\n return false;\n }\n var errorTarget = Form._findErrorTarget(target);\n if (!target.flexFormsSavedValidity.valid && self._isElementInvalidElement(errorTarget)) {\n self.tooltips.createTooltip(errorTarget,\n self._formatErrorTooltip(target.flexFormsSavedValidationMessage), false);\n return true;\n } else {\n if (remove) {\n self.tooltips.removeTooltip();\n }\n }\n return false;\n }\n\n /**\n * Checks if element is marked as invalid\n * @param {HTMLElement} el\n * @returns {boolean}\n * @private\n */\n _isElementInvalidElement(el) {\n return el.hasAttribute(DATA_ELEMENT_INVALID);\n }\n\n /**\n * Handles invalid event of a form\n * @param {Event} e\n * @returns {Promise|boolean}\n * @private\n */\n _checkIsInvalid(e) {\n e.preventDefault();\n var invalidFields = this.getForm().querySelectorAll(\":invalid\");\n return this._handleValidation(invalidFields, true, false);\n }\n\n /**\n * Will query dependent fields (by selector) that should be validated with given field\n * @param field\n * @returns {NodeList|[]}\n * @private\n */\n _getDependentFields(field) {\n let fieldSelector = field.getAttribute(ATTR_DEPENDS), base = [field];\n if (fieldSelector) {\n base.push.apply(base, Array.prototype.slice.apply(\n this.getForm().querySelectorAll(fieldSelector)));\n }\n return base;\n }\n\n /**\n * @private\n * @param {HTMLElement} [target]\n */\n _handleTooltipInline(target) {\n if (this.tooltips) {\n this.tooltips.removeTooltip(target);\n }\n }\n\n /**\n * Initializes validation for a given form, registers event handlers\n */\n initFormValidation() {\n // Suppress the default bubbles\n var form = this.getForm(),\n self = this,\n invalidEvent = 'invalid';\n\n /**\n * Validates if is valid realtime element\n * @param {HTMLElement} target\n * @returns {boolean}\n * @private\n */\n function _checkIsValidRealtimeElement(target) {\n return !target.hasAttribute(ATTR_DISABLE_REALTIME) && !target.hasAttribute(ATTR_DISABLE_INLINE);\n }\n\n form.addEventListener(invalidEvent, function (e) {\n e.preventDefault();\n }, true);\n\n Util.addEventOnce(invalidEvent, form, function handleInvalid(e) {\n self._formLoading();\n var result = self._checkIsInvalid(e);\n if (result) {\n self.currentValidationFuture = new Promise((resolve) => {\n result.then(function (r) {\n setTimeout(function () {\n Util.addEventOnce(invalidEvent, form, handleInvalid, true);\n }, 0);\n resolve(r);\n self._formStopLoading();\n if (!r.foundAnyError) {\n self._formLoading();\n self._handleSubmit(e);\n }\n });\n });\n }\n }, true);\n\n this.addEventListener(form, 'reset', () => {\n this.removeErrors();\n });\n\n // Timeout for keys:\n var TIMEOUT_KEYDOWN, KEYDOWN_RUNNING = false;\n\n // resets keydown events\n function clearKeyDownTimeout() {\n KEYDOWN_RUNNING = false;\n clearTimeout(TIMEOUT_KEYDOWN);\n }\n\n // setup custom realtime event if given\n if (self.options.realtime) {\n this.addEventListener(form, CONST_REALTIME_EVENT, function (e) {\n if (self._formIsLoading()) {\n return;\n }\n var target = e.target;\n clearTimeout(TIMEOUT_KEYDOWN);\n if (KEYDOWN_RUNNING) {\n return;\n }\n TIMEOUT_KEYDOWN = setTimeout(() => {\n let isStillTarget = document.activeElement === e.target;\n if (!_checkIsValidRealtimeElement(target)) {\n return;\n }\n if (isStillTarget) {\n self._handleTooltipInline();\n }\n KEYDOWN_RUNNING = true;\n let dependentFields = self._getDependentFields(target);\n self._customValidationsForElements(dependentFields).then(function () {\n self.prepareErrors(dependentFields, false);\n if (isStillTarget) {\n self.showAndOrCreateTooltip(e.target);\n }\n // future must be resolved before another event can be started\n KEYDOWN_RUNNING = false;\n });\n }, self.options.realtimeTimeout);\n }, true);\n }\n\n /**\n * Validates if target is a valid input field to check blur and focus events\n *\n * @param {HTMLElement} target\n * @returns {boolean}\n * @private\n */\n function _checkIsValidBlurFocusElement(target) {\n let attr = target.getAttribute(\"type\");\n return (attr !== \"radio\" && attr !== \"checkbox\" && attr !== \"submit\");\n }\n\n /**\n * Validates if is valid inline-check element\n * @param {HTMLElement} target\n * @returns {boolean}\n * @private\n */\n function _checkIsValidInlineCheckElement(target) {\n return !target.hasAttribute(ATTR_DISABLE_INLINE);\n }\n\n this.addEventListener(form, 'blur', function (e) {\n // do not hide tooltip after change event\n if (!e.target.flexcssKeepTooltips) {\n self._handleTooltipInline(e.target);\n }\n delete e.target.flexcssKeepTooltips;\n }, true);\n\n // handle focus on input elements\n // will show an error if field is invalid\n this.addEventListener(form, \"focus\", function (e) {\n if (self._formIsLoading()) {\n return;\n }\n // do not track errors for checkbox and radios on focus:\n if (!_checkIsValidBlurFocusElement(e.target)) {\n return;\n }\n // we need to delay this a little, because Firefox and Safari do not show a tooltip after it\n // just have been hidden (on blur). Maybe fix this with a queue later\n setTimeout(function () {\n self.showAndOrCreateTooltip(e.target);\n }, FOCUS_TOOLTIP_DELAY);\n }, true);\n\n if (self.options.inlineValidation) {\n // Handle change for checkbox, radios and selects\n this.addEventListener(form, \"change\", function (e) {\n const target = e.target;\n if (self._formIsLoading() || !_checkIsValidInlineCheckElement(target)) {\n return;\n }\n clearKeyDownTimeout();\n const name = target.getAttribute('name');\n let inputs = name ? form.querySelectorAll('[name=\"' + name + '\"]') : [target];\n // we only support dependent fields for a single widgets right now\n if (inputs.length === 1) {\n inputs = self._getDependentFields(target);\n }\n self._customValidationsForElements(inputs).then(function () {\n self.prepareErrors(inputs, false);\n target.flexcssKeepTooltips = self.showAndOrCreateTooltip(target, true);\n if (target.flexcssKeepTooltips) {\n self._handleTooltipHideClickAfterChange();\n }\n });\n });\n }\n\n // prevent default if form is invalid\n this.addEventListener(form, \"submit\", function listener(e) {\n self._submitListener(e, listener);\n });\n\n Event.dispatchAndFire(form, EVENT_FORM_READY);\n }\n\n /* Loading states, unfortunately we can't check if a promise is pending :/*/\n /* TODO: Maybe wrap promise to extend this functionality */\n\n _formLoading() {\n this.getForm().classList.add(LOADING_CLASS);\n }\n\n _formStopLoading() {\n this.getForm().classList.remove(LOADING_CLASS);\n }\n\n _formIsLoading() {\n return this.getForm().classList.contains(LOADING_CLASS);\n }\n\n // this defines the logic after a change event when a tooltip is shown\n // because we call this method inside the change event, the click would be immeditally executed with the change\n // event when not using setTimeout(). There might be another solution for this...\n _handleTooltipHideClickAfterChange() {\n const self = this;\n if (this.options.createTooltips) {\n setTimeout(function () {\n Util.addEventOnce(Settings.getTabEvent(), global.document.body, function (t) {\n if (!self._isElementInvalidElement(t.target)) {\n self._handleTooltipInline();\n }\n });\n }, CLICK_TOOLTIP_DELAY);\n }\n }\n\n _focusElement(el) {\n el.focus();\n Util.scrollToElement(el, this.options.scrollToElementDiff);\n }\n\n /**\n * Listener that is executed on form submit\n * @param e\n * @param submitListener\n * @returns {boolean}\n * @private\n */\n _submitListener(e, submitListener) {\n\n const form = this.getForm(),\n self = this,\n submitEvent = 'submit';\n\n if (this._formIsLoading()) {\n e.preventDefault();\n return false;\n }\n this._formLoading();\n form.removeEventListener(submitEvent, submitListener);\n this.removeErrors();\n e.preventDefault();\n // reset:\n if (form.checkValidity()) {\n form.addEventListener(submitEvent, submitListener);\n // It's possible that the form is valid but the custom validations need to be checked again:\n self.currentValidationFuture = new Promise((resolve) => {\n var validation = self.validateCustomFields();\n validation.then(function (r) {\n // because custom validators may mark multiple fields as invalid, we get all of them in the form\n var fields = self._getInvalidElements(),\n errors = self.prepareErrors(fields, false), firstError = errors[0];\n if (firstError) {\n self._focusElement(firstError);\n self.showAndOrCreateTooltip(firstError, true);\n }\n resolve(r);\n });\n });\n self.currentValidationFuture.then(function (r) {\n if (!r.foundAnyError) {\n // Handle submitting the form to server:\n self._handleSubmit(e);\n } else {\n self._formStopLoading();\n }\n });\n } else {\n self._formStopLoading();\n form.addEventListener(submitEvent, submitListener);\n }\n }\n\n\n /**\n * Handles submitting, optionally allows to stop submitting\n * @param e\n * @private\n */\n _handleSubmit(e) {\n this._submitFunction(this.form, e);\n }\n\n\n /**\n * Registers a global event Handler\n * @param errorFunc\n */\n static registerErrorMessageHandler(errorFunc) {\n Form.globalErrorMessageHandler = errorFunc;\n }\n\n /**\n * Initialize forms for a specific selector\n * @param {String} selector\n * @param {Object} [options]\n * @return {array.}\n */\n static init(selector, options) {\n var forms = selector instanceof HTMLElement ? selector.querySelectorAll('form') :\n document.querySelectorAll(selector), instances = [];\n for (var i = 0; i < forms.length; i++) {\n instances.push(new Form(forms[i], options));\n }\n return instances;\n }\n\n\n /**\n * Registers a global validator that is usable on all form instances\n * @param {String} name\n * @param {Function} validator\n * @returns {Function}\n */\n static registerValidator(name, validator) {\n Form.globalValidators[name] = validator;\n return Form;\n }\n\n /**\n * Registers a global function that is called when a form should validate the response of a server\n * @param {Function} func\n * @returns {Form}\n */\n static registerGlobalRemoteValidationFunction(func) {\n Form.globalRemoteValidationFunction = func;\n return Form;\n }\n}\n\n\n/**\n * Global validators\n * @type {Array}\n */\nForm.globalValidators = [];\n\n/**\n * Global Remote validation function\n */\nForm.globalRemoteValidationFunction = function () {\n};\n\n/**\n * Handles custom error messages extracts custom message by default\n */\nForm.globalErrorMessageHandler = (field, validity) => {\n if (!validity.customError) {\n let customMsg = field.getAttribute(ATTR_DATA_CUSTOM_MESSAGE);\n if (customMsg) {\n field.setCustomValidity(customMsg);\n }\n }\n};\n\nexport default Form;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Form.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Tooltip\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\nimport Util from './util/Util';\nimport DestroyableWidget from './DestroyableWidget';\nimport Settings from './util/Settings';\n\n/**\n * @type {string}\n */\nconst CLASS_NAMES_TOOLTIP = 'tooltip-container';\n/**\n * @type {string}\n */\nconst CLASS_NAMES_OPEN = 'open';\n\n/**\n * @type {string}\n */\nconst ATTR_DATA_CLASSNAME = 'data-class';\n\n/**\n * @type {string}\n */\nconst ATTR_DATA_NO_TOUCH = 'data-no-touch';\n\n/**\n * @type {HTMLDocument}\n */\nconst doc = global.document;\n\n/**\n * Simple Tooltip\n */\nclass Tooltip extends DestroyableWidget {\n\n /**\n * Creates a Tooltip\n * @param {HTMLElement|String} DelegateContainer\n * @param {Object} [options]\n */\n constructor(DelegateContainer, options) {\n super();\n /**\n * The Container where possible events are captured\n */\n this.container = DelegateContainer instanceof HTMLElement ?\n DelegateContainer : doc.getElementById(DelegateContainer);\n\n if (!this.container) {\n throw new Error('Could not create Tooltip, DelegateContainer not found');\n }\n\n /**\n * The Container where tooltips are stored for this instance\n * @type {HTMLElement}\n */\n this.tooltipContainer = null;\n\n /**\n * Default Options\n */\n this.options = {\n containerClass: '',\n selectorAttribute: 'data-tooltip',\n collisionContainer: this.container\n };\n\n Object.assign(this.options, options || {});\n }\n\n /**\n * Creates and shows a tooltip\n * @param {HTMLElement} target where is this tooltip positioned\n * @param {String} text text content in tooltip, will be NOT escaped\n * @param {Boolean} [removeTitle] removes title element if given\n * @param {Node} [positionRelative]\n */\n createTooltip(target, text, removeTitle, positionRelative) {\n // abort if text is empty\n if (!text || text && text.trim() === '') {\n return;\n }\n\n if (Settings.isTouchDevice() && target && target.hasAttribute(ATTR_DATA_NO_TOUCH)) {\n return;\n }\n\n let tooltipContainer = this.tooltipContainer;\n\n if (!tooltipContainer) {\n tooltipContainer = doc.createElement('div');\n this.container.appendChild(tooltipContainer);\n this.tooltipContainer = tooltipContainer;\n }\n this._restoreClassNames(tooltipContainer, target);\n\n tooltipContainer.style.left = 'auto';\n tooltipContainer.style.top = 'auto';\n tooltipContainer.innerHTML = text;\n tooltipContainer.flexTooltipCurrentTarget = target;\n if (removeTitle) {\n target.oldTitle = text;\n target.removeAttribute('title');\n }\n\n Util.setupPositionNearby(positionRelative || target, tooltipContainer,\n this.options.collisionContainer, true, true);\n\n tooltipContainer.classList.add(CLASS_NAMES_OPEN);\n }\n\n _restoreClassNames(container, target) {\n // allow additional classname per tooltip on target element\n const classNames = [CLASS_NAMES_TOOLTIP, this.options.containerClass];\n const maybeTargetClass = target.getAttribute(ATTR_DATA_CLASSNAME);\n if (maybeTargetClass) {\n classNames.push(maybeTargetClass);\n }\n container.className = classNames.join(\" \");\n return this;\n }\n\n /**\n * @returns {HTMLElement|null}\n */\n getCurrentTarget() {\n return this.tooltipContainer ? this.tooltipContainer.flexTooltipCurrentTarget : null;\n }\n\n /**\n * Destroys this Widget\n * @returns {boolean}\n */\n destroy() {\n super.destroy();\n\n if (this.tooltipContainer) {\n this.tooltipContainer.parentNode.removeChild(this.tooltipContainer);\n return true;\n }\n return false;\n }\n\n /**\n * Removes a Tooltip on given target\n * @param {HTMLElement} [target], if not given will remove current open tooltip on this instance\n */\n removeTooltip(target) {\n let selfTarget = target;\n if (!selfTarget && this.tooltipContainer) {\n selfTarget = this.tooltipContainer.flexTooltipCurrentTarget;\n }\n if (this.tooltipContainer) {\n if (this.tooltipContainer.flexTooltipCurrentTarget !== selfTarget) {\n return;\n }\n this.tooltipContainer.classList.remove(CLASS_NAMES_OPEN);\n delete this.tooltipContainer.flexTooltipCurrentTarget;\n }\n if (selfTarget && selfTarget.oldTitle) {\n selfTarget.setAttribute('title', selfTarget.oldTitle);\n }\n }\n\n /**\n * Initilizes mouse events on container element\n */\n registerEvents() {\n const self = this;\n this.addEventListener(this.container, 'mouseover', (e) => {\n if (e.target.hasAttribute(self.options.selectorAttribute)) {\n self.createTooltip(e.target, e.target.getAttribute('title'), true);\n }\n });\n\n this.addEventListener(this.container, 'mouseout', (e) => {\n if (e.target.hasAttribute(self.options.selectorAttribute)) {\n self.removeTooltip(e.target);\n }\n });\n return this;\n }\n}\n\nexport default Tooltip;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Tooltip.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nconst PFX = [\"webkit\", \"moz\", \"MS\", \"o\", \"\"];\n\nconst COL_LEFT_CLASS = 'is-collision-left';\n\nconst COL_RIGHT_CLASS = 'is-collision-right';\n\nconst COL_BOTTOM_CLASS = 'is-collision-bottom';\n\n/**\n * Provides shared DOM-Utility functions\n */\nclass Util {\n\n /**\n * Will register the right animation event based on browser\n * @param element\n * @param type\n * @param callback\n */\n static prefixedAnimateEvent(element, type, callback) {\n const thisFunction = function thisFunction(e) {\n callback.apply(element, [e, thisFunction]);\n };\n\n for (let p = 0; p < PFX.length; p++) {\n let thisType = type;\n if (!PFX[p]) {\n thisType = type.toLowerCase();\n }\n const name = PFX[p] + thisType;\n element.addEventListener(name, thisFunction, true);\n }\n }\n\n /**\n * Get correct transitionend event\n * @returns {String}\n * @private\n */\n static whichTransitionEndEvent() {\n let t;\n const el = document.createElement('fake');\n\n const transitions = {\n transition: 'transitionend',\n OTransition: 'oTransitionEnd',\n MozTransition: 'transitionend',\n WebkitTransition: 'webkitTransitionEnd'\n };\n\n for (t in transitions) {\n if (el.style[t] !== undefined) {\n return transitions[t];\n }\n }\n }\n\n /**\n * Check if target is part of parent node\n * @param target\n * @param parent\n * @returns {boolean}\n */\n static isPartOfNode(target, parent) {\n if (!target || !parent) {\n return false;\n }\n let now = target;\n while (now !== parent && now !== null) {\n if (now === parent) {\n break;\n }\n now = now.parentNode;\n }\n return now !== null;\n }\n\n /**\n * Finds the closest element including itself matching a callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static closestCallback(el, callback) {\n let element = el;\n while (element !== null) {\n if (callback(element)) {\n return element;\n }\n element = element.parentNode;\n }\n return false;\n }\n\n /**\n * Walks the tree until func returns true for given argument\n * @param target\n * @param func\n * @returns {boolean|HTMLElement}\n */\n static parentsUntil(target, func) {\n if (!target) {\n return false;\n }\n let now = target;\n while (!func(now) && now !== null) {\n now = now.parentNode;\n }\n\n return now;\n }\n\n /**\n * Generates a unique id\n * @return {String}\n */\n static guid() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n\n return `${s4() + s4()}-${s4()}-${s4()}-${s4()}-${s4() + s4() + s4()}`;\n }\n\n /**\n * Detects scrollbar width\n * @see http://stackoverflow.com/questions/986937/how-can-i-get-the-browsers-scrollbar-sizes\n * @returns {number}\n */\n static getScrollBarWidth() {\n const doc = global.document;\n const inner = doc.createElement('p');\n\n inner.style.width = \"100%\";\n inner.style.height = \"200px\";\n\n const outer = doc.createElement('div');\n outer.style.position = \"absolute\";\n outer.style.top = \"0px\";\n outer.style.left = \"0px\";\n outer.style.visibility = \"hidden\";\n outer.style.width = \"200px\";\n outer.style.height = \"150px\";\n outer.style.overflow = \"hidden\";\n outer.appendChild(inner);\n\n doc.body.appendChild(outer);\n const w1 = inner.offsetWidth;\n outer.style.overflow = 'scroll';\n let w2 = inner.offsetWidth;\n if (w1 === w2) {\n w2 = outer.clientWidth;\n }\n doc.body.removeChild(outer);\n\n return (w1 - w2);\n }\n\n\n /**\n * Run an event once\n * @param {String} ev\n * @param {HTMLElement|HTMLDocument} target\n * @param {Function} func\n * @param {boolean} [capture]\n * @return Function created listener\n */\n static addEventOnce(ev, target, func, capture) {\n const thisFunction = function thisFunction(event) {\n func(event, func);\n target.removeEventListener(ev, thisFunction, capture);\n };\n target.addEventListener(ev, thisFunction, capture);\n return thisFunction;\n }\n\n /**\n * Checks if an element is visible\n * @param {HTMLElement} element\n * @returns bool\n */\n static isVisible(element) {\n return element.offsetWidth > 0 && element.offsetHeight > 0;\n }\n\n /**\n * Creates a camelCaseRepresentation of a dashed string\n * @param {String} str\n * @returns String\n */\n static dashToCamelCase(str) {\n return str.replace(/-([a-z])/g, (g) => {\n return g[1].toUpperCase();\n });\n }\n\n /**\n * Creates a copy of `input`\n * @param {*} input\n * @return *\n */\n static copy(input) {\n return JSON.parse(JSON.stringify(input));\n }\n\n /**\n * Reads options from element (data attributes) and applies to base\n * @param {HTMLElement} element\n * @param {Object} base\n * @return {Object}\n */\n static applyOptionsFromElement(element, base) {\n if (!element) {\n return base;\n }\n const attrs = element.attributes;\n for (let i = 0; i < attrs.length; i++) {\n const attr = attrs[i];\n if (attr) {\n const s = Util.dashToCamelCase(attr.nodeName.replace('data-', ''));\n const val = attr.nodeValue;\n if (base.hasOwnProperty(s)) {\n // skip functions\n if (typeof base[s] === 'function') {\n continue;\n }\n if (typeof base[s] === 'boolean') {\n base[s] = parseInt(val || 1, 10) === 1;\n } else {\n base[s] = val;\n }\n }\n }\n }\n return base;\n }\n\n /**\n * Will position an element directly at given target\n * Is aware of a given collision container to detect edges\n * Will put elementToPosition either to left, center or right edge (prefer right)\n * and either to bottom or top (prefers bottom)\n *\n * You may overwrite preferred positioned with `centerHorizontal` and `positionTop`\n *\n * @param {HTMLElement|ClientRect} target the target container to align to\n * @param {HTMLElement} elementToPosition the element to position\n * @param {HTMLElement} collisionContainer the outer container to prevent collisions\n * @param {bool} [centerHorizontal] set true to center element, otherwise it's put on the right border by default\n * @param {bool} [positionTop] flip top, by default element is positioned to the bottom.\n * @returns {HTMLElement}\n */\n static setupPositionNearby(target, elementToPosition, collisionContainer, centerHorizontal, positionTop) {\n // determine relative offsets\n let amountTop = 0;\n let amountLeft = 0;\n Util.parentsUntil(target.parentNode, (el) => {\n if (!(el instanceof HTMLElement)) {\n return false;\n }\n const style = window.getComputedStyle(el);\n if (Util.isPartOfNode(elementToPosition, el)) {\n if (style && style.position === 'relative') {\n amountTop += el.offsetTop || 0;\n amountLeft += el.offsetLeft || 0;\n }\n return false;\n }\n return true;\n });\n\n const targetPosition = target instanceof HTMLElement ? target.getBoundingClientRect() : target;\n const elementRect = elementToPosition.getBoundingClientRect();\n const colRect = collisionContainer.getBoundingClientRect();\n const targetTop = targetPosition.top - amountTop;\n const targetRight = targetPosition.right;\n const isCollisionTop = (targetTop - elementRect.height) <= 0;\n const isCollisionBottom =\n window.innerHeight < (targetTop + amountTop + targetPosition.height + elementRect.height);\n const isCollisionLeft = targetRight < elementRect.width;\n const targetLeft = targetPosition.left;\n const isCollisionRight = (targetLeft + elementRect.width) > colRect.width;\n const classList = elementToPosition.classList;\n\n classList.remove(COL_RIGHT_CLASS);\n classList.remove(COL_LEFT_CLASS);\n classList.remove(COL_BOTTOM_CLASS);\n\n let calcTop;\n let calcLeft;\n if (isCollisionLeft && !isCollisionRight) {\n // put element to left if collision with left\n calcLeft = `${(targetPosition.left - colRect.left - amountLeft)}px`;\n classList.add(COL_LEFT_CLASS);\n } else {\n // maybe center if no collision with either side\n const rightPosition = `${(targetRight - elementRect.width - colRect.left - amountLeft)}px`;\n const leftCentered = ((targetLeft + targetPosition.width / 2) -\n (elementRect.width / 2) || 0) - colRect.left;\n const collisionCentered = (leftCentered + elementRect.width) > colRect.width;\n if (centerHorizontal && !collisionCentered) {\n calcLeft = `${leftCentered}px`;\n } else {\n classList.add(COL_RIGHT_CLASS);\n calcLeft = rightPosition;\n }\n }\n\n if (isCollisionBottom || (positionTop && !isCollisionTop)) {\n // Put Element on top if collision\n calcTop = `${(targetTop - elementRect.height) - colRect.top}px`;\n classList.add(COL_BOTTOM_CLASS);\n } else {\n calcTop = `${(targetTop + targetPosition.height) - colRect.top}px`;\n }\n\n elementToPosition.style.cssText = `top:${calcTop};left:${calcLeft};`;\n\n return elementToPosition;\n }\n\n /**\n * Brings a given element into viewport\n * @param {HTMLElement} el\n * @param {int|function}[optionalOffset]\n */\n static scrollToElement(el, optionalOffset) {\n el.scrollIntoView();\n let thisOffset = optionalOffset;\n // optionally use a additional scrollDif\n if (thisOffset) {\n if (typeof thisOffset === 'function') {\n thisOffset = optionalOffset();\n }\n if (thisOffset > 0) {\n const scrolledY = window.pageYOffset;\n if (scrolledY) {\n window.scroll(0, scrolledY - thisOffset);\n }\n }\n }\n }\n}\n\nexport default Util;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/util/Util.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n'use strict';\n\n/**\n * Provides a Basic Widget\n */\nclass DestroyableWidget {\n\n constructor() {\n this.listeners = [];\n }\n\n /**\n * Destroys a Widget\n */\n destroy() {\n this.listeners.forEach((listener) => {\n listener.element.removeEventListener.apply(listener.element, listener.args);\n });\n this.listeners = [];\n }\n\n /**\n * Adds an event and registers it later to remove bindings\n * @param {HTMLElement} element\n * @param {String} name\n * @param {Function} listener\n * @param {boolean} [capture]\n * @returns {Function}\n */\n addEventListener(element, name, listener, capture) {\n this.listeners.push({\n element,\n args: [name, listener, capture]\n });\n\n element.addEventListener(name, listener, capture);\n return listener;\n }\n\n}\n\nexport default DestroyableWidget;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/DestroyableWidget.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport Util from './Util';\n\n// we attach global settings to global once because settings might be shared a lot of times trough the application\n// Maybe find a better way to handle that scenario\nif (!global.FLEXCSS_GLOBAL_SETTINGS) {\n global.FLEXCSS_GLOBAL_SETTINGS = {\n // defined breakpoint for small devices < n\n smallBreakpoint: 768,\n // nodes that should be updated when no scrollbar is expected\n scrollbarUpdateNodes: global.document.body !== null ? [global.document.body] : [],\n // additional Delay until darkener is fully hidden\n darkenerFadeDelay: 100,\n // class that is added if canvas has been toggled\n canvasToggledClass: 'toggled-canvas'\n };\n\n global.FLEXCSS_CONST_IS_IOS = null;\n\n global.FLEXCSS_CONST_IS_TOUCH = null;\n\n global.FLEXCSS_CONST_IS_IE = null;\n\n global.FLEXCSS_CONST_TAB_EVENT = 'click';\n\n global.FLEXCSS_IS_SMALL_SCREEN = false;\n\n const init = () => {\n // Measure scrollbar width\n global.FLEXCSS_CONST_SCROLLBAR_WIDTH = Util.getScrollBarWidth();\n // detect right transition end event\n global.FLEXCSS_CONST_TRANSITION_EVENT = Util.whichTransitionEndEvent();\n };\n\n if (global.document.readyState !== 'loading') {\n init();\n } else {\n // it's possible that global.document.body is not available if the document is not\n // loaded completely\n document.addEventListener('DOMContentLoaded', () => {\n init();\n });\n }\n}\n\n/**\n * Utility class that setups global settings\n */\nclass Settings {\n\n /**\n * Setup global settings, overwrite default values\n * @param {Object} settings\n */\n static setup(settings) {\n Object.assign(global.FLEXCSS_GLOBAL_SETTINGS, settings);\n }\n\n /**\n * Access to global settings\n * @returns {Object}\n */\n static get() {\n return global.FLEXCSS_GLOBAL_SETTINGS;\n }\n\n /**\n * Detects a IOS Device, caches subsequent calls\n * @returns {boolean}\n */\n static isIosDevice() {\n if (!global.FLEXCSS_CONST_IS_IOS) {\n global.FLEXCSS_CONST_IS_IOS = global.navigator.userAgent.match(/(iPad|iPhone|iPod)/i);\n }\n\n return global.FLEXCSS_CONST_IS_IOS;\n }\n\n /**\n * @returns {boolean}\n */\n static isSmallScreen() {\n return window.innerWidth < Settings.get().smallBreakpoint;\n }\n\n /**\n * Detects a touch device, caches subsequent calls\n * @returns {boolean}\n */\n static isTouchDevice() {\n if (!global.FLEXCSS_CONST_IS_TOUCH) {\n global.FLEXCSS_CONST_IS_TOUCH = 'ontouchstart' in window || !!(global.navigator.msMaxTouchPoints);\n }\n return global.FLEXCSS_CONST_IS_TOUCH;\n }\n\n /**\n * Checks if current browser is Internet Explorer\n * @returns {boolean|*}\n */\n static isIE() {\n if (!global.FLEXCSS_CONST_IS_IE) {\n global.FLEXCSS_CONST_IS_IE = \"ActiveXObject\" in window;\n }\n return global.FLEXCSS_CONST_IS_IE;\n }\n\n /**\n * @returns {String}\n */\n static getTransitionEvent() {\n return global.FLEXCSS_CONST_TRANSITION_EVENT;\n }\n\n /**\n * @returns {int}\n */\n static getScrollbarWidth() {\n return global.FLEXCSS_CONST_SCROLLBAR_WIDTH;\n }\n\n /**\n * @returns {String}\n */\n static getTabEvent() {\n return global.FLEXCSS_CONST_TAB_EVENT;\n }\n}\n\nexport default Settings;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/util/Settings.js\n **/","// the whatwg-fetch polyfill installs the fetch() function\n// on the global object (window or self)\n//\n// Return that as the export for use in Webpack, Browserify etc.\nrequire('whatwg-fetch');\nmodule.exports = self.fetch.bind(self);\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/isomorphic-fetch/fetch-npm-browserify.js\n ** module id = 104\n ** module chunks = 1\n **/","(function(self) {\n 'use strict';\n\n if (self.fetch) {\n return\n }\n\n function normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(name)) {\n throw new TypeError('Invalid character in header field name')\n }\n return name.toLowerCase()\n }\n\n function normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n }\n\n function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n }\n\n Headers.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var list = this.map[name]\n if (!list) {\n list = []\n this.map[name] = list\n }\n list.push(value)\n }\n\n Headers.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n }\n\n Headers.prototype.get = function(name) {\n var values = this.map[normalizeName(name)]\n return values ? values[0] : null\n }\n\n Headers.prototype.getAll = function(name) {\n return this.map[normalizeName(name)] || []\n }\n\n Headers.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n }\n\n Headers.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = [normalizeValue(value)]\n }\n\n Headers.prototype.forEach = function(callback, thisArg) {\n Object.getOwnPropertyNames(this.map).forEach(function(name) {\n this.map[name].forEach(function(value) {\n callback.call(thisArg, value, name, this)\n }, this)\n }, this)\n }\n\n function consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n }\n\n function fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n }\n\n function readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n reader.readAsArrayBuffer(blob)\n return fileReaderReady(reader)\n }\n\n function readBlobAsText(blob) {\n var reader = new FileReader()\n reader.readAsText(blob)\n return fileReaderReady(reader)\n }\n\n var support = {\n blob: 'FileReader' in self && 'Blob' in self && (function() {\n try {\n new Blob();\n return true\n } catch(e) {\n return false\n }\n })(),\n formData: 'FormData' in self,\n arrayBuffer: 'ArrayBuffer' in self\n }\n\n function Body() {\n this.bodyUsed = false\n\n\n this._initBody = function(body) {\n this._bodyInit = body\n if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (!body) {\n this._bodyText = ''\n } else if (support.arrayBuffer && ArrayBuffer.prototype.isPrototypeOf(body)) {\n // Only support ArrayBuffers for POST method.\n // Receiving ArrayBuffers happens via Blobs, instead.\n } else {\n throw new Error('unsupported BodyInit type')\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n\n this.arrayBuffer = function() {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n } else {\n this.text = function() {\n var rejected = consumed(this)\n return rejected ? rejected : Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n }\n\n // HTTP methods whose capitalization should be normalized\n var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\n function normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return (methods.indexOf(upcased) > -1) ? upcased : method\n }\n\n function Request(input, options) {\n options = options || {}\n var body = options.body\n if (Request.prototype.isPrototypeOf(input)) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n if (!body) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = input\n }\n\n this.credentials = options.credentials || this.credentials || 'omit'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n }\n\n Request.prototype.clone = function() {\n return new Request(this)\n }\n\n function decode(body) {\n var form = new FormData()\n body.trim().split('&').forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n }\n\n function headers(xhr) {\n var head = new Headers()\n var pairs = xhr.getAllResponseHeaders().trim().split('\\n')\n pairs.forEach(function(header) {\n var split = header.trim().split(':')\n var key = split.shift().trim()\n var value = split.join(':').trim()\n head.append(key, value)\n })\n return head\n }\n\n Body.call(Request.prototype)\n\n function Response(bodyInit, options) {\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = options.status\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = options.statusText\n this.headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n }\n\n Body.call(Response.prototype)\n\n Response.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n }\n\n Response.error = function() {\n var response = new Response(null, {status: 0, statusText: ''})\n response.type = 'error'\n return response\n }\n\n var redirectStatuses = [301, 302, 303, 307, 308]\n\n Response.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n }\n\n self.Headers = Headers;\n self.Request = Request;\n self.Response = Response;\n\n self.fetch = function(input, init) {\n return new Promise(function(resolve, reject) {\n var request\n if (Request.prototype.isPrototypeOf(input) && !init) {\n request = input\n } else {\n request = new Request(input, init)\n }\n\n var xhr = new XMLHttpRequest()\n\n function responseURL() {\n if ('responseURL' in xhr) {\n return xhr.responseURL\n }\n\n // Avoid security warnings on getResponseHeader when not allowed by CORS\n if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {\n return xhr.getResponseHeader('X-Request-URL')\n }\n\n return;\n }\n\n xhr.onload = function() {\n var status = (xhr.status === 1223) ? 204 : xhr.status\n if (status < 100 || status > 599) {\n reject(new TypeError('Network request failed'))\n return\n }\n var options = {\n status: status,\n statusText: xhr.statusText,\n headers: headers(xhr),\n url: responseURL()\n }\n var body = 'response' in xhr ? xhr.response : xhr.responseText;\n resolve(new Response(body, options))\n }\n\n xhr.onerror = function() {\n reject(new TypeError('Network request failed'))\n }\n\n xhr.open(request.method, request.url, true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n }\n\n if ('responseType' in xhr && support.blob) {\n xhr.responseType = 'blob'\n }\n\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n }\n self.fetch.polyfill = true\n})(typeof self !== 'undefined' ? self : this);\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/whatwg-fetch/fetch.js\n ** module id = 105\n ** module chunks = 1\n **/","/* global CustomEvent */\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n// polyfill for custom events to make thinks work in IE\n// The needed polyfill is so small that I embedded it here\n(function poly() {\n if (!global.CustomEvent || typeof global.CustomEvent !== 'function') {\n const CustomEvent = function CustomEvent(event, params) {\n let evt;\n const thisParams = params ||\n {\n bubbles: false,\n cancelable: false,\n detail: undefined\n };\n evt = document.createEvent(\"CustomEvent\");\n evt.initCustomEvent(event, thisParams.bubbles,\n thisParams.cancelable, thisParams.detail);\n return evt;\n };\n CustomEvent.prototype = global.Event.prototype;\n global.CustomEvent = CustomEvent;\n }\n})();\n/**\n * Simpler Event dispatching\n */\nclass EventHandler {\n\n /**\n * @param {HTMLElement} target\n * @param {String} name\n */\n constructor(target, name) {\n this.target = target;\n this.defaultOptions = {\n bubbles: true,\n cancelable: true\n };\n\n this.name = name;\n }\n\n /**\n * Set more options\n * @param {Object} options\n * @returns {EventHandler}\n */\n withOptions(options) {\n Object.assign(this.defaultOptions, (options || {}));\n return this;\n }\n\n /**\n * Call with the originalEvent\n * @param {Event} e\n * @returns {EventHandler}\n */\n withOriginal(e) {\n return this.withDetail({\n originalEvent: e\n });\n }\n\n /**\n * Extends the detail part of the event\n * @param {Object} o\n * @returns {EventHandler}\n */\n withDetail(o) {\n if (!this.defaultOptions.detail) {\n this.defaultOptions.detail = {};\n }\n Object.assign(this.defaultOptions.detail, o);\n return this;\n }\n\n /**\n * @returns {CustomEvent}\n */\n fire() {\n const e = new CustomEvent(this.name, this.defaultOptions);\n if (this.target) {\n this.target.dispatchEvent(e);\n }\n return e;\n }\n}\n\nclass Event {\n /**\n * Prepares to dispatch a custom event (without firing)\n * @param {HTMLElement} target\n * @param {String} name\n * @returns {EventHandler}\n */\n static dispatch(target, name) {\n return new EventHandler(target, name);\n }\n\n /**\n * Dispatches a custom event and fires it directly\n * @param {HTMLElement} target\n * @param {String} name\n * @param {Object} [options]\n * @returns {CustomEvent}\n */\n static dispatchAndFire(target, name, options) {\n return new EventHandler(target, name).withOptions(options).fire();\n }\n}\n\nexport default Event;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/util/Event.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Modal\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n'use strict';\n\n/* global KeyboardEvent */\n\nimport Settings from './util/Settings';\nimport Event from './util/Event';\nimport Util from './util/Util';\nimport Widget from './Widget';\nimport FixedWindow from './lib/FixedWindow';\n\nconst HTML_ELEMENT = global.document.documentElement;\nconst KEY_ESC = 27;\n/* Attribute Names */\nconst ATTR_CREATE_NEW = 'data-new-instance';\nconst ATTR_CLOSE = 'data-close-modal';\nconst ATTR_NAME = 'data-modal';\n\n/* Class names */\nconst CLS_CONTAINER_CURRENT = 'front';\nconst CLS_OPEN = 'open';\nconst CLS_CURRENT = 'current';\nconst CLS_PART_OF_STACK = 'part-of-stack';\nconst CLS_MODAL_OPEN = 'modal-open';\nconst CLS_MODAL_CONTAINER = 'modal-container';\nconst CLS_ANIM_END = 'modal-anim-end';\nconst CLS_LOADER_CONTAINER = 'loader-container';\nconst CLS_LOADER = 'loader';\n\n/* Events */\n\n/**\n * Event triggered when modal is closed\n * @type {string}\n */\nexport const EVENT_MODAL_CLOSED = 'flexcss.modal.closed';\n/**\n * Event triggered before a modal is closed, cancelable\n * @type {string}\n */\nexport const EVENT_MODAL_BEFORE_CLOSED = 'flexcss.modal.beforeClose';\n/**\n * Event triggered when a modal is opened\n * @type {string}\n */\nexport const EVENT_MODAL_OPENED = 'flexcss.modal.opened';\n\n/**\n * Event triggered when modal is initilized, called on target\n * @type {string}\n */\nexport const EVENT_MODAL_INIT = 'flexcss.modal.init';\n\n/**\n * Triggered when the content of an async modal on a target is loaded, called on target\n * @type {string}\n */\nexport const EVENT_MODAL_ASYNC_TARGET_LOADED = 'flexcss.modal.asyncTargetLoaded';\n\n/**\n * A Modal Implementation\n */\nclass Modal {\n constructor(DelegateContainer, options) {\n const doc = global.document;\n const container = DelegateContainer instanceof HTMLElement ?\n DelegateContainer : doc.getElementById(DelegateContainer);\n\n // Instance vars:\n if (!container) {\n throw new Error(`Could not found container element by given ID/Element: ${DelegateContainer}`);\n }\n\n this.currentOpen = null;\n\n this.loading = false;\n\n this.container = container;\n\n /**\n * Default Options\n */\n this.options = {\n classNames: 'modal',\n closeOnEscape: true,\n closeOnBackgroundClick: true,\n destroyOnFinish: false,\n fixedContainer: true,\n containerClassNames: ''\n };\n\n Object.assign(this.options, options);\n\n // Container where events are delegated\n this.eventContainer = null;\n this.eventFunction = null;\n\n this.dataMainPageContainer = global.document.body;\n\n this.currentScrollTop = 0;\n\n this.modalContainer = null;\n\n // Destroy full modal instance when no dialogs are bind to?\n // Otherwise container is recycled\n this.destroyOnFinish = this.options.destroyOnFinish;\n }\n\n /**\n * Removes this modal from global stack\n * Will handle fixing main html element too\n * @private\n * @param n\n */\n _removeModalFromStack(n) {\n const t = Modal._modalInstances.indexOf(n);\n if (t > -1) {\n Modal._modalInstances.splice(t, 1);\n FixedWindow.getInstance().close().then(() => {\n HTML_ELEMENT.classList.remove(CLS_MODAL_OPEN);\n });\n }\n }\n\n\n /**\n * Modal container that contains all `stacked` modals for this instance\n * @returns {HTMLElement}\n */\n getModalContainer() {\n return this.modalContainer;\n }\n\n /**\n * Closes the current open modal of this stack\n * @params [e], optional event\n * @returns {*}\n */\n close(e) {\n const self = this;\n\n const options = self.currentOpen ? Util.applyOptionsFromElement(\n self.currentOpen, Util.copy(self.options)) : self.options;\n\n // close only on keyboard if instance should\n if (!options.closeOnEscape && e instanceof KeyboardEvent) {\n return false;\n }\n\n // close only on background if instance should\n if (!options.closeOnBackgroundClick && e &&\n e.type === Settings.getTabEvent() && !e.target.hasAttribute(ATTR_CLOSE)) {\n return false;\n }\n\n // if an instance is currently loading, prevent from closing\n if (self.loading) {\n return false;\n }\n\n if (e) {\n e.preventDefault();\n }\n\n if (self.currentOpen) {\n // dispatch beforeClose event, if prevented prevent modal from closing\n var ev = Event.dispatchAndFire(self.currentOpen, EVENT_MODAL_BEFORE_CLOSED);\n if (ev.defaultPrevented) {\n return false;\n }\n\n this._finishState(self.currentOpen);\n // if there is an previous modal\n if (self.currentOpen.prevModal) {\n // switch to the next modal\n return self.switchModals(self.currentOpen.prevModal,\n self.currentOpen.prevModal.prevModal || null);\n }\n\n // finally trigger closed event\n Event.dispatch(self.currentOpen, EVENT_MODAL_CLOSED).withOriginal(e).fire();\n\n }\n self._removeModalFromStack(self.currentOpen);\n\n // Full stack closed:\n self.currentOpen = null;\n if (self.modalContainer) {\n // setup next open\n var lastContainer = Modal._modalInstances[Modal._modalInstances.length - 1],\n classList = self.modalContainer.classList;\n classList.remove(CLS_CONTAINER_CURRENT);\n classList.remove(CLS_OPEN);\n // Remove all current classes from child-nodes\n for (var i = 0; i < self.modalContainer.childNodes.length; i++) {\n var node = self.modalContainer.childNodes[i], cl = node.classList;\n // remove applied styles\n self._finishState(node);\n cl.remove(CLS_CURRENT);\n cl.remove(CLS_PART_OF_STACK);\n }\n if (lastContainer) {\n lastContainer.parentNode.classList.add(CLS_CONTAINER_CURRENT);\n }\n }\n\n if (self.destroyOnFinish) {\n self.destroy();\n }\n return self;\n }\n\n /**\n * Resets a target when newly initilizes\n * @param target\n * @private\n */\n _finishState(target) {\n target.classList.remove(CLS_ANIM_END);\n }\n\n /**\n * Handler called when a Modal has finished an animation\n * @param e\n * @param self\n * @private\n */\n _finishAnim(e, self) {\n e.target.classList.add(CLS_ANIM_END);\n e.target.removeEventListener(e.type, self, true);\n }\n\n /**\n * Brings the given modal to front\n * @param co\n * @param last\n */\n switchModals(co, last) {\n co.prevModal = last;\n Modal._modalInstances.push(co);\n FixedWindow.getInstance().open(this);\n if (last) {\n this._finishState(last);\n Util.prefixedAnimateEvent(last, 'AnimationEnd', this._finishAnim);\n last.classList.add(CLS_PART_OF_STACK);\n }\n // set new currentOpen\n this.currentOpen = co;\n\n // bring current container to the front\n var instances = Modal._modalInstances;\n\n for (var m = 0; m < instances.length; m++) {\n instances[m].parentNode.classList.remove(CLS_CONTAINER_CURRENT);\n }\n this.modalContainer.classList.add(CLS_CONTAINER_CURRENT);\n // remove animations if animations has been completed, fixes various bugs:\n // - fixes nested scrolling element issue in iOS Browsers / Mobile-Safari\n Util.prefixedAnimateEvent(co, 'AnimationEnd', this._finishAnim);\n\n for (var i = 0; i < this.modalContainer.childNodes.length; i++) {\n var n = this.modalContainer.childNodes[i], isCurrent = n.classList.contains(CLS_CURRENT);\n if (n === co) {\n co.classList.add(CLS_CURRENT);\n co.classList.remove(CLS_PART_OF_STACK);\n this._finishState(co);\n } else {\n n.classList.remove(CLS_CURRENT);\n if (isCurrent) {\n this._removeModalFromStack(n);\n Event.dispatchAndFire(n, EVENT_MODAL_CLOSED);\n }\n }\n }\n }\n\n handleScrollbar() {\n if (Modal._modalInstances.length === 0) {\n HTML_ELEMENT.classList.add(CLS_MODAL_OPEN);\n }\n }\n\n /**\n * Creates a Modal and opens it (later)\n * @param e\n * @returns {Promise|boolean}\n */\n createWidget(e) {\n var self = this;\n if (this.loading) {\n return false;\n }\n\n // check if another modal has registered events on this dom path:\n if (e && e.target) {\n var foundInstance = Util.parentsUntil(e.target, function (node) {\n return node && node.flexModalInstance;\n });\n\n // if another instance has been found, abort\n if (foundInstance !== this.container) {\n return false;\n }\n }\n var targetContent, future, widget, target, hasTarget = true,\n isHtmlElement = e instanceof HTMLElement, isWidget = Widget.isWidget(e);\n if (isHtmlElement || isWidget) {\n if (isHtmlElement) {\n targetContent = e;\n } else {\n widget = e;\n targetContent = widget.element;\n }\n } else {\n target = e.target;\n if (!target) {\n throw 'Could not find target, did you pass an event, a HTMLElement or an Widget?';\n }\n hasTarget = target.hasAttribute(ATTR_NAME);\n targetContent = target.getAttribute(ATTR_NAME);\n widget = Widget.findWidget(target);\n if (target.hasAttribute(ATTR_CREATE_NEW) && !e.newInstance) {\n var newInstance = new Modal(this.container)\n .setDestroyOnFinish(true);\n e.newInstance = true;\n newInstance.fromEvent(e).then(function () {\n newInstance.registerEvents(newInstance.getModalContainer());\n });\n return false;\n }\n if (hasTarget) {\n e.stopImmediatePropagation();\n e.preventDefault();\n }\n }\n\n if (!hasTarget) {\n return false;\n }\n\n let modalContainerClasses = this.modalContainer ? this.modalContainer.classList : [];\n\n // lazy create modal container\n if (!this.modalContainer) {\n this.modalContainer = global.document.createElement('div');\n this.modalContainer.className = `${CLS_MODAL_CONTAINER} ${this.options.containerClassNames} ${CLS_OPEN}`;\n const closeModalFunction = function (ce) {\n if (self.loading) {\n return false;\n }\n if (Util.isPartOfNode(ce.target, self.currentOpen)) {\n if (!ce.target.hasAttribute(ATTR_CLOSE)) {\n return false;\n }\n }\n self.close(ce);\n };\n\n this.modalContainer.addEventListener(Settings.getTabEvent(), closeModalFunction, false);\n\n modalContainerClasses = this.modalContainer.classList;\n this.container.appendChild(this.modalContainer);\n\n } else {\n modalContainerClasses.add(CLS_OPEN);\n }\n\n let loader, doc = global.document, toggleLoader = function (show) {\n if (show) {\n loader = doc.createElement('div');\n loader.className = CLS_LOADER_CONTAINER;\n var loaderLoader = doc.createElement('div');\n loaderLoader.className = CLS_LOADER;\n loader.appendChild(loaderLoader);\n self.modalContainer.appendChild(loader);\n } else {\n loader.parentNode.removeChild(loader);\n }\n };\n\n this.handleScrollbar();\n\n modalContainerClasses.add(CLS_CONTAINER_CURRENT);\n modalContainerClasses.add('loading');\n this.loading = true;\n toggleLoader(true);\n var async = widget ? widget.getAsync() : null;\n if (Widget.isWidget(widget) && async) {\n future = async.then(function (r) {\n var result;\n if (r instanceof HTMLElement || r instanceof DocumentFragment) {\n result = r;\n } else {\n // Create container Element:\n var element = doc.createElement('div');\n element.className = self.options.classNames;\n element.innerHTML = r;\n element.id = Util.guid();\n result = element;\n }\n widget.finalContent = result;\n Event.dispatchAndFire(target, EVENT_MODAL_ASYNC_TARGET_LOADED);\n return result;\n });\n } else {\n var el = targetContent instanceof HTMLElement ||\n targetContent instanceof DocumentFragment ? targetContent : doc.getElementById(targetContent);\n if (el) {\n future = new Promise((resolve) => {\n resolve(el);\n });\n } else {\n throw 'Could not found given modal element (content) with ID: ' + targetContent;\n }\n }\n\n Event.dispatchAndFire(target, EVENT_MODAL_INIT);\n\n return future.then((thisEl) => {\n thisEl.hfWidgetInstance = self;\n self.modalContainer.appendChild(thisEl);\n modalContainerClasses.remove('loading');\n self.loading = false;\n toggleLoader(false);\n\n self.open(thisEl, true, e);\n\n return thisEl;\n });\n }\n\n /**\n * Open's an already rendered modal\n * @param {HTMLElement} modal\n * @param {Boolean} [internal], set to true to prevent container management\n * @param {Boolean} [maybeEvent], optional event-object that triggered open\n */\n open(modal, internal, maybeEvent) {\n\n\n if (!internal) {\n this.modalContainer.classList.add('open');\n this.handleScrollbar();\n }\n this.switchModals(modal, this.currentOpen);\n\n Event.dispatch(modal, EVENT_MODAL_OPENED).withOriginal(maybeEvent).fire();\n }\n\n\n registerEvents(delegate) {\n var delegateContainer = delegate || this.container, self = this;\n // Modals should always be fixed\n FixedWindow.getInstance().addScreenConstraint(Modal, (width) => true);\n // register modal instance so we can detect multiple registrars\n delegateContainer.flexModalInstance = self;\n self.eventFunction = function () {\n self.createWidget.apply(self, arguments);\n };\n delegateContainer.addEventListener(Settings.getTabEvent(), self.eventFunction, false);\n\n self.eventContainer = delegateContainer;\n return self;\n }\n\n\n /**\n * Creates a new Dialog Instance either directly from HTML Element or a Widget instance\n * @param {HTMLElement|Widget} widget instance or html element\n * @returns {Promise}\n */\n fromWidget(widget) {\n return this.createWidget(widget);\n }\n\n /**\n * Creates a Widget from event\n * @param e\n * @returns {Promise}\n */\n fromEvent(e) {\n return this.createWidget(e);\n }\n\n setDestroyOnFinish(v) {\n this.destroyOnFinish = v;\n return this;\n }\n\n /**\n * Destroy this widget instance, cleans empty DOM nodes\n * Will use fast MutationObserver if available, otherwise falls back to DOMNodeRemoved event\n */\n destroy() {\n let self = this, modalContainer = this.modalContainer;\n const isEmptyContainer = modalContainer.childNodes.length === 0;\n // Remove event listener on destroy, do not remove DOM node\n if (self.eventContainer) {\n self.eventContainer.removeEventListener(Settings.getTabEvent(), self.eventFunction, true);\n }\n\n if (isEmptyContainer) {\n if (modalContainer.parentNode) {\n modalContainer.parentNode.removeChild(modalContainer);\n }\n }\n if (global.MutationObserver) {\n var observer = new MutationObserver(function (mutations) {\n mutations.forEach(function () {\n if (isEmptyContainer) {\n modalContainer.parentNode.removeChild(modalContainer);\n observer.disconnect();\n }\n });\n });\n observer.observe(modalContainer, {childList: true});\n } else {\n modalContainer.addEventListener('DOMNodeRemoved', function (e) {\n if (e.target !== modalContainer && (modalContainer.childNodes.length - 1) === 0) {\n modalContainer.parentNode.removeChild(modalContainer);\n }\n });\n }\n }\n}\n\n\n// Static variable that keeps track of all open modals\nModal._modalInstances = [];\n\n// Global keydown listener for modal\nglobal.addEventListener('keydown', function (e) {\n if (e.keyCode === KEY_ESC) {\n var lastModal = Modal._modalInstances[Modal._modalInstances.length - 1];\n if (lastModal) {\n Widget.findWidget(lastModal).close(e);\n }\n }\n});\n\nexport default Modal;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Modal.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Widget\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n/**\n * A Widget provides async content on a specific target (e.g. a modal link)\n */\nclass Widget {\n\n /**\n * Creates a new Widget\n * @param [element], optional define the content of widget\n */\n constructor(element) {\n /**\n *\n * @type {Promise}\n */\n this.asyncContent = null;\n\n /**\n * @type {boolean}\n */\n this._isWidget = true;\n\n if (element) {\n /**\n * @type {HTMLElement}\n */\n this.element = element instanceof HTMLElement ? element : global.document.getElementById(element);\n if (this.element) {\n this.element.hfWidgetInstance = this;\n this.setAsync(() => {\n return new Promise((s) => {\n s(this.element);\n });\n });\n } else {\n throw new Error(`Could not found element with ID: ${element}`);\n }\n }\n /**\n * The final resulted content that a widget did create (e.g. a modal container)\n * @type {HTMLElement}\n */\n this.finalContent = null;\n }\n\n /**\n *\n * @returns {Promise}\n */\n getAsync() {\n return this.asyncContent();\n }\n\n /**\n * @param {Function.} async\n * @returns {Widget}\n */\n setAsync(async) {\n this.asyncContent = async;\n return this;\n }\n\n /**\n * @returns {HTMLElement}\n */\n getFinalContent() {\n return this.finalContent;\n }\n\n /**\n * @param {HTMLElement} element\n * @returns {Widget}\n */\n setElement(element) {\n this.element = element;\n return this;\n }\n\n /**\n * Destroys the generated content of this widget\n * @returns {boolean}\n */\n destroy() {\n if (this.finalContent && this.finalContent.parentNode) {\n this.finalContent.parentNode.removeChild(this.finalContent);\n return true;\n }\n\n delete this.element;\n delete this.asyncContent;\n delete this.finalContent;\n\n return false;\n }\n\n /**\n * Will find a widget on an Element\n * @param {HTMLElement} element\n * @returns {Widget|undefined}\n */\n static findWidget(element) {\n return element ? element.hfWidgetInstance : undefined;\n }\n\n /**\n * Checks if a given object is an instance\n * @param {Object} self\n * @returns {boolean}\n */\n static isWidget(self) {\n return self instanceof Widget || typeof self === 'object' && self.hasOwnProperty('_isWidget');\n }\n}\n\nexport default Widget;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Widget.js\n **/","import Settings from '../util/Settings';\nimport debounce from './debounce';\nimport Event from '../util/Event';\n\nconst CLS_FIXED_WINDOW = 'fixed-window-open';\n\nexport const EVENT_BEFORE_FIXED_ADD = 'flexcss.fixedWindow.beforeAdd';\nexport const EVENT_AFTER_FIXED_REMOVE = 'flexcss.fixedWindow.afterRemove';\n\n/**\n * @type {FixedWindow}\n */\nlet fixedWindowInstance;\n\nexport default class FixedWindow {\n\n constructor() {\n this.widgets = [];\n this.currentScrollTop = 0;\n this.fixedScreenConstraints = [];\n this.windowWidth = 0;\n this.isFixedWindowActive = false;\n }\n\n /**\n * Adds a constraint to detect if the window needs to be changed when the screensize changes\n *\n * @param {Function} widget\n * @param {Function} fixedBreakpointFn gets a width argument, return true to open a window\n */\n addScreenConstraint(widget, fixedBreakpointFn) {\n this.fixedScreenConstraints[widget] = fixedBreakpointFn;\n }\n\n /**\n * @returns {null|DestroyableWidget}\n */\n getCurrentWidget() {\n return this.widgets.length > 0 ? this.widgets[this.widgets.length - 1] : null;\n }\n\n /**\n * @private\n */\n _checkFixedNeeded() {\n if (this.widgets.length === 0) {\n return;\n }\n const widgets = new Set(this.widgets);\n const widgetsThatRequireFixedWindow = Array.from(widgets).some((widget) => {\n return this.fixedScreenConstraints[widget] && this.fixedScreenConstraints[widget](this.windowWidth);\n });\n if (!widgetsThatRequireFixedWindow) {\n this._removeFixedContainer();\n } else {\n this._addFixedContainer();\n }\n }\n\n /**\n * @private\n */\n _addFixedContainer() {\n if (this.isFixedWindowActive) {\n return;\n }\n Event.dispatchAndFire(global.document, EVENT_BEFORE_FIXED_ADD, {\n detail: this.getCurrentWidget()\n });\n // this causes layout and should be optimized\n // At lest we write in a batch later\n this.currentScrollTop = global.pageYOffset;\n Settings.get().scrollbarUpdateNodes.map((n) => {\n let foundProperty = 'paddingRight';\n let direction = 1;\n let node = n;\n if (n instanceof Array) {\n const [whatNode, property, d] = n;\n foundProperty = property;\n node = whatNode;\n direction = d || 1;\n }\n return {\n node,\n property: foundProperty,\n value: `${parseInt(global.getComputedStyle(node)[foundProperty], 10) +\n (!node.__fixedWindowMod__ ? (Settings.getScrollbarWidth() * direction) : 0)}px`\n };\n }).forEach((d) => {\n d.node.__fixedWindowMod__ = true;\n d.node.style[d.property] = d.value;\n });\n\n global.document.documentElement.classList.add(CLS_FIXED_WINDOW);\n global.document.body.style.cssText += `top:${this.currentScrollTop * -1}px;position:fixed`;\n\n this.isFixedWindowActive = true;\n }\n\n /**\n * @private\n */\n _removeFixedContainer() {\n if (this.isFixedWindowActive) {\n global.document.body.style.position = \"static\";\n global.document.body.style.top = \"0px\";\n // reset scrollTop\n global.document.documentElement.scrollTop = this.currentScrollTop;\n global.document.body.scrollTop = this.currentScrollTop;\n Settings.get().scrollbarUpdateNodes.forEach((node) => {\n if (node instanceof Array) {\n const [whatNode, property] = node;\n delete whatNode.__fixedWindowMod__;\n whatNode.style[property] = '';\n } else {\n delete node.__fixedWindowMod__;\n node.style.paddingRight = '';\n }\n });\n global.document.documentElement.classList.remove(CLS_FIXED_WINDOW);\n Event.dispatchAndFire(global.document, EVENT_AFTER_FIXED_REMOVE);\n this.isFixedWindowActive = false;\n }\n }\n\n /**\n * Will close a window when no widgets are opened that need one\n */\n resizeListener() {\n this.windowWidth = global.innerWidth;\n this._checkFixedNeeded();\n }\n\n /**\n * @returns {FixedWindow}\n */\n static getInstance() {\n if (!fixedWindowInstance) {\n fixedWindowInstance = new FixedWindow();\n fixedWindowInstance.windowWidth = global.innerWidth;\n const eventHandler = fixedWindowInstance.resizeListener.bind(fixedWindowInstance);\n global.addEventListener(\n 'resize',\n debounce(eventHandler, 500)\n );\n global.addEventListener('orientationchange', eventHandler);\n }\n return fixedWindowInstance;\n }\n\n /**\n * Request a close of the fixed window\n * @returns {Promise}\n */\n close() {\n return new Promise((resolve) => {\n this.widgets.pop();\n if (this.widgets.length === 0) {\n // restore scrollPosition:\n requestAnimationFrame(() => {\n this._removeFixedContainer();\n resolve();\n });\n }\n });\n }\n\n /**\n * Request to open a fixed windows\n * @param {Object|DestroyableWidget} instance\n */\n open(instance) {\n let fixed = false;\n if (typeof instance === 'object') {\n const cn = instance.constructor;\n const fixedWidget = this.fixedScreenConstraints[instance.constructor];\n if (cn && fixedWidget) {\n fixed = fixedWidget(this.windowWidth);\n }\n const length = this.widgets.length;\n this.widgets.push(cn);\n // open a new window if there is no window active\n if (length === 0) {\n if (fixed) {\n this._addFixedContainer();\n }\n }\n }\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/lib/FixedWindow.js\n **/","export default (fn, ms) => () => {\n clearTimeout(fn.timeout);\n fn.timeout = setTimeout(fn, ms);\n};\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/lib/debounce.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Toggleable\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\nimport Settings from './util/Settings';\nimport Widget from './Widget';\nimport Util from './util/Util';\nimport Event from './util/Event';\n\n/**\n * Event that is fired when a tab is closed\n * @type {string}\n */\n\nexport const EVENT_TAB_CLOSED = 'flexcss.tab.closed';\n\n/**\n * Event that is fired when a tab has been opened\n * @type {string}\n */\nexport const EVENT_TAB_OPENED = 'flexcss.tab.opened';\n/**\n * @type {string}\n */\nconst ATTR_NAME = 'data-toggle';\n/**\n * @type {string}\n */\nconst ACTIVE_CLASS = 'active';\n/**\n * @type {string}\n */\nconst LOADING_CLASS = 'loading';\n\n/**\n * @type {string}\n */\nconst ATTR_TOGGLE_LIST = 'data-toggle-list';\n\n/**\n * Creates a toggleable element, either for tabs or a single toggle\n */\nclass Toggleable {\n constructor(ContainerId) {\n const doc = global.document;\n\n this.container = ContainerId instanceof HTMLElement ? ContainerId :\n doc.getElementById(ContainerId);\n\n this.loading = false;\n\n if (!this.container) {\n throw new Error(`Toggleable container with id ${ContainerId} not found`);\n }\n }\n\n /**\n * Listener\n * @param {Event} e\n * @private\n */\n _listener(e) {\n let target = e.target;\n const parent = target.parentNode;\n const doc = global.document;\n\n // support target child element to clicked\n if (!target.hasAttribute(ATTR_NAME)) {\n if (parent && parent.hasAttribute(ATTR_NAME)) {\n target = parent;\n } else {\n return;\n }\n }\n\n if (!target.hasAttribute(ATTR_NAME)) {\n return;\n }\n\n const refId = target.getAttribute(ATTR_NAME);\n const ref = doc.getElementById(refId);\n\n e.preventDefault();\n\n if (this.loading) {\n return;\n }\n\n this.toggleTarget(ref, target);\n }\n\n /**\n * Registers Events for this instance\n * @returns {Toggleable}\n */\n registerEvents() {\n this.container.addEventListener(Settings.getTabEvent(), this._listener.bind(this));\n return this;\n }\n\n /**\n * Toggles given `ref`\n * @param {HTMLElement|Node} ref\n * @param {HTMLElement|Node} [selfTarget] optional target node\n */\n toggleTarget(ref, selfTarget) {\n let target = selfTarget;\n if (!target && !ref) {\n return;\n }\n if (!target) {\n target = document.querySelector(`[${ATTR_NAME}=\"${ref.id}\"]`);\n }\n\n let maybeToggleNode;\n let future;\n const elClassList = target.classList;\n let parentClassList;\n const parent = target.parentNode;\n const doc = global.document;\n\n future = new Promise((resolve, failure) => {\n if (ref) {\n resolve(ref);\n } else {\n const widget = Widget.findWidget(target);\n const async = widget ? widget.getAsync() : null;\n if (Widget.isWidget(widget) && async) {\n future = async.then((r) => {\n if (r instanceof HTMLElement) {\n const id = Util.guid();\n r.id = id;\n target.setAttribute(ATTR_NAME, id);\n resolve(r);\n } else {\n throw new Error(`Dynamically creating toggle-content is not supported right now.\n Return an HTMLElement instance`);\n }\n });\n } else {\n failure('Target not given');\n }\n }\n });\n\n if (parent) {\n maybeToggleNode = Util.parentsUntil(target, (node) => {\n return node && node.hasAttribute && node.hasAttribute(ATTR_TOGGLE_LIST);\n });\n\n parentClassList = parent.classList;\n // Abort if element is already active and if is part of a toggle list\n if (maybeToggleNode) {\n if (!parentClassList.contains(ACTIVE_CLASS)) {\n parentClassList.toggle(ACTIVE_CLASS);\n parentClassList.add(LOADING_CLASS);\n } else {\n return;\n }\n }\n\n if (maybeToggleNode) {\n for (let i = 0; i < maybeToggleNode.children.length; i++) {\n const n = maybeToggleNode.children[i];\n const targetRef = n.children[0];\n if (n !== parent) {\n n.classList.remove(ACTIVE_CLASS);\n if (targetRef) {\n const attr = targetRef.getAttribute(ATTR_NAME);\n const el = attr ? doc.getElementById(attr) : null;\n if (el) {\n Event.dispatchAndFire(el, EVENT_TAB_CLOSED);\n el.classList.remove(ACTIVE_CLASS);\n targetRef.classList.remove(ACTIVE_CLASS);\n }\n }\n }\n }\n }\n }\n if (elClassList) {\n elClassList.toggle(ACTIVE_CLASS);\n elClassList.add(LOADING_CLASS);\n }\n this.loading = true;\n future.then((r) => {\n Event.dispatchAndFire(r, EVENT_TAB_OPENED);\n Toggleable._handleLoaded(target);\n r.classList.toggle(ACTIVE_CLASS);\n this.loading = false;\n }).catch(() => {\n this.loading = false;\n Toggleable._handleLoaded(target);\n });\n }\n\n /**\n * @param el\n * @private\n */\n static _handleLoaded(el) {\n const parentClassList = el.parentNode.classList;\n el.classList.remove(LOADING_CLASS);\n if (parentClassList) {\n parentClassList.remove(LOADING_CLASS);\n }\n }\n}\n\nexport default Toggleable;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Toggleable.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.OffCanvas\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\nimport Settings from './util/Settings';\nimport Util from './util/Util';\nimport Event from './util/Event';\nimport FixedWindow from './lib/FixedWindow';\n\n/**\n * @type {string}\n */\nconst ATTR_CLOSE_SIDEBAR = 'data-close-offcanvas';\n\n/**\n * @type {string}\n */\nconst ATTR_TARGET = 'data-offcanvas';\n/**\n * @type {string}\n */\nconst INIT_CLASS = 'init';\n/**\n * @type {string}\n */\nconst OPEN_CLASS = 'open';\n/**\n * @type {number}\n */\nconst HIDE_FACTOR = 3;\n\n/**\n * @type {string}\n */\nexport const EVENT_TOGGLE = 'flexcss.offcanvas.toggle';\n\n/**\n * A OffCanvas Implementation\n */\nclass OffCanvas {\n\n /**\n * Creates an off-canvas navigation\n * @param {HTMLElement|String} NavigationId\n * @param {HTMLElement|String} Darkener\n * @param {int} factor positive will expect right sidebar, positive left\n * @param {bool} [disableTouch] if true all touch events are disabled\n * @constructor\n */\n constructor(NavigationId, Darkener, factor, disableTouch) {\n const doc = global.document;\n let touchedX = 0;\n const navigationContainer = NavigationId instanceof HTMLElement ?\n NavigationId : doc.getElementById(NavigationId);\n const darkener = Darkener instanceof HTMLElement ? Darkener : doc.getElementById(Darkener);\n const DARKENER_CLASS_TOGGLE = `toggle-${darkener.id}` || 'darkener';\n const DARKENER_CLASS_INSTANT_TOGGLE = `${DARKENER_CLASS_TOGGLE}-open`;\n\n const shouldNotTouch = () => {\n return window.innerWidth >= Settings.get().smallBreakpoint;\n };\n\n if (!darkener || !navigationContainer) {\n throw new Error('Could not find needed elements (Darkener and/or NavigationId)');\n }\n\n this.darkener = darkener;\n this.darkenerClassToggle = DARKENER_CLASS_TOGGLE;\n this.darkenerClassToggleInstant = DARKENER_CLASS_INSTANT_TOGGLE;\n this.globalToggleClass = Settings.get().canvasToggledClass;\n\n this.navigationContainer = navigationContainer;\n this.navigationContainerId = navigationContainer.id;\n\n // create id if id does not exist\n if (!this.navigationContainerId) {\n this.navigationContainerId = Util.guid();\n navigationContainer.id = this.navigationContainerId;\n }\n\n if (!disableTouch) {\n navigationContainer.addEventListener('touchstart', (e) => {\n if (shouldNotTouch()) {\n return;\n }\n touchedX = e.touches[0].clientX;\n navigationContainer.mustHide = false;\n });\n navigationContainer.addEventListener('touchmove', (e) => {\n if (shouldNotTouch()) {\n return;\n }\n const { clientX } = e.touches[0];\n const target = navigationContainer;\n const style = target.style;\n const calcX = touchedX - clientX;\n const bounds = target.getBoundingClientRect();\n const compare = factor > 0 ? calcX <= 0 : calcX >= 0;\n if (compare) {\n style.transition = 'transform 0s ease';\n style.webkitTransition = '-webkit-transform 0s ease';\n target.mustHide = factor > 0 ? calcX * -1 >\n bounds.width / HIDE_FACTOR : calcX > bounds.width / HIDE_FACTOR;\n const transform = `translate3d(${calcX * -1}px,0,0)`;\n style.transform = transform;\n style.webkitTransform = transform;\n }\n });\n navigationContainer.addEventListener('touchend', () => {\n if (shouldNotTouch()) {\n return;\n }\n const target = navigationContainer;\n const style = target.style;\n if (target.mustHide) {\n const width = target.getBoundingClientRect().width * factor;\n style.transition = 'transform .2s ease';\n style.webkitTransition = '-webkit-transform .2s ease';\n const transform = `translate3d(${width}px,0,0)`;\n style.transform = transform;\n style.webkitTransform = transform;\n this._remove().then(() => {\n this.resetTransform(style);\n });\n this._removeInstant();\n } else {\n this.resetTransform(style);\n }\n });\n }\n }\n\n /**\n * @param {Object} s\n */\n resetTransform(s) {\n s.transform = '';\n s.transition = '';\n s.webkitTransform = '';\n s.webkitTransition = '';\n }\n\n /**\n * @param {Object} [event]\n * @private\n */\n _remove(event) {\n return new Promise((resolve) => {\n Util.addEventOnce(Settings.getTransitionEvent(), this.navigationContainer, () => {\n // add timeout because transition event fires a little to early\n setTimeout(() => {\n requestAnimationFrame(() => {\n const body = global.document.body;\n OffCanvas.currentOpen = null;\n body.classList.remove(this.darkenerClassToggle);\n global.document.documentElement.classList.remove(this.globalToggleClass);\n if (!!event) {\n Event.dispatchAndFire(this.navigationContainer, EVENT_TOGGLE);\n }\n resolve();\n });\n }, Settings.get().darkenerFadeDelay);\n });\n });\n }\n\n /**\n * @private\n */\n _removeInstant() {\n this.navigationContainer.classList.remove(OPEN_CLASS);\n global.document.body.classList.remove(this.darkenerClassToggleInstant);\n this.darkener.classList.remove(INIT_CLASS);\n FixedWindow.getInstance().close();\n }\n\n /**\n * Toggles a an off-canvas element\n * @param [e]\n * @private\n */\n toggle(e) {\n if (e) {\n e.preventDefault();\n }\n this.resetTransform(this.navigationContainer.style);\n const bodyClass = global.document.body.classList;\n const darkenerClass = this.darkener.classList;\n const DARKENER_CLASS_TOGGLE = this.darkenerClassToggle;\n const DARKENER_CLASS_INSTANT_TOGGLE = this.darkenerClassToggleInstant;\n const navigationControllerClassList = this.navigationContainer.classList;\n if (!OffCanvas.currentOpen) {\n Util.addEventOnce(Settings.getTransitionEvent(), this.navigationContainer, () => {\n if (!!e) {\n Event.dispatchAndFire(this.navigationContainer, EVENT_TOGGLE);\n }\n });\n OffCanvas.currentOpen = this;\n FixedWindow.getInstance().open(this);\n global.document.documentElement.classList.add(this.globalToggleClass);\n bodyClass.add(DARKENER_CLASS_INSTANT_TOGGLE);\n bodyClass.add(DARKENER_CLASS_TOGGLE);\n darkenerClass.add(INIT_CLASS);\n navigationControllerClassList.add(OPEN_CLASS);\n } else {\n return this.close(e);\n }\n }\n\n close(event) {\n if (this.navigationContainer.classList.contains(OPEN_CLASS)) {\n const navigationControllerClassList = this.navigationContainer.classList;\n const promise = this._remove(event);\n this._removeInstant(navigationControllerClassList);\n return promise;\n }\n return new Promise(r => r());\n }\n\n /**\n * Register events\n * @param [delegate]\n */\n registerEvents(delegate) {\n const thisDelegate = delegate || global.document;\n FixedWindow.getInstance().addScreenConstraint(OffCanvas, (width) => width < Settings.get().smallBreakpoint);\n thisDelegate.addEventListener(Settings.getTabEvent(), (e) => {\n if (OffCanvas.currentOpen && OffCanvas.currentOpen !== this) {\n return;\n }\n const id = this.navigationContainerId;\n const validTarget = e.target.getAttribute(ATTR_TARGET) === id;\n if (!Util.isPartOfNode(e.target, this.navigationContainer)) {\n if (validTarget || (OffCanvas.currentOpen === this && e.target === this.darkener)) {\n this.toggle(e);\n }\n } else {\n if (e.target.hasAttribute(ATTR_CLOSE_SIDEBAR)) {\n this.toggle(e);\n }\n }\n });\n }\n}\n\nOffCanvas.currentOpen = null;\n\nexport default OffCanvas;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/OffCanvas.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Dropdown\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n'use strict';\n\nimport Util from './util/Util';\nimport Settings from './util/Settings';\nimport Event from './util/Event';\nimport Widget from './Widget';\nimport FixedWindow from './lib/FixedWindow';\n\n/**\n * @type {string}\n */\nconst ATTR_CC = 'data-collision-container';\n/**\n * @type {string}\n */\nconst ATTR_DARKENER = 'data-darkener-container';\n/**\n * @type {string}\n */\nconst DARKENER_INIT = 'init';\n/**\n * @type {string}\n */\nconst ATTR_DATA_TARGET = 'data-target';\n/**\n * @type {string}\n */\nconst ATTR_CLOSE_DROPDOWN = 'data-close-dropdown';\n/**\n * @type {string}\n */\nconst ATTR_NAME = 'data-dropdown';\n/**\n * @type {string}\n */\nconst STATE_LOADING = 'loading';\n\nconst CLS_DARKENER_DROPDOWN = 'darkener-dropdown';\n/**\n * @type {string}\n */\nconst CLS_OPEN = 'open';\n\n/**\n * @type {string}\n */\nconst CLS_DROPDOWN = 'dropdown';\n\n/**\n * @type {string}\n */\nexport const EVENT_DROPDOWN_CLOSED = 'flexcss.dropdown.closed';\n\n/**\n * A Dropdown\n */\nclass Dropdown {\n constructor(DelegateContainer, Darkener) {\n const doc = global.document;\n\n /**\n * Container Element\n * @type {HTMLElement}\n */\n this.container = DelegateContainer instanceof HTMLElement ?\n DelegateContainer : doc.getElementById(DelegateContainer);\n\n this.currentOpen = null;\n this.currentTarget = null;\n /**\n * @type {HTMLElement}\n */\n this.darkener = Darkener instanceof HTMLElement ? Darkener : document.getElementById(Darkener);\n\n this.destroyOnClose = false;\n\n if (!this.darkener || !this.container) {\n throw new Error('required elements not found (darkener and container element)');\n }\n }\n\n /**\n * Method that handles delegation events for dropdowns\n * @param e\n * @returns {boolean}\n * @private\n */\n _delegateFunction(e) {\n const currentOpen = this.currentOpen;\n const target = Util.closestCallback(e.target, n => n instanceof HTMLElement && n.hasAttribute(ATTR_NAME));\n const targetIsCurrent = target === this.currentTarget;\n\n if (currentOpen && !Util.isPartOfNode(e.target, currentOpen) || targetIsCurrent) {\n this.close();\n if (targetIsCurrent) {\n e.preventDefault();\n }\n return targetIsCurrent ? false : this._delegateFunction(e);\n }\n\n if (target && !currentOpen) {\n e.preventDefault();\n e.stopImmediatePropagation();\n\n if (target.isLoading) {\n return false;\n }\n this.createDropdown(target);\n } else {\n if (currentOpen) {\n if (e.target.hasAttribute(ATTR_CLOSE_DROPDOWN)) {\n e.preventDefault();\n this.close();\n }\n if (!Util.isPartOfNode(e.target, currentOpen)) {\n this.close();\n }\n }\n }\n }\n\n /**\n * Register Events for this dropdown container\n * @returns {Dropdown}\n */\n registerEvents() {\n FixedWindow.getInstance().addScreenConstraint(Dropdown, (width) => width < Settings.get().smallBreakpoint);\n this.container.addEventListener(Settings.getTabEvent(), this._delegateFunction.bind(this), true);\n return this;\n }\n\n /**\n * Destroys this instance, unbinds events\n * @returns {Dropdown}\n */\n destroy() {\n this.container.removeEventListener(Settings.getTabEvent(), this._delegateFunction.bind(this), true);\n return this;\n }\n\n\n /**\n * Destroys instance on close of dropdown\n * @param v\n * @returns {Dropdown}\n */\n setDestroyOnClose(v) {\n this.destroyOnClose = v;\n return this;\n }\n\n\n /**\n * Will add the right class to container for specific darkener id\n * @param instance\n * @param show\n */\n toggleDarkenerToggler(instance, show) {\n const cls = `toggle-${(instance.id || CLS_DARKENER_DROPDOWN)}`;\n const classList = this.container.classList;\n if (show) {\n classList.add(cls);\n } else {\n classList.remove(cls);\n }\n }\n\n /**\n * Closes Dropdown on current instance\n * @return {Boolean|Promise}\n */\n close() {\n const currentOpen = this.currentOpen;\n if (!currentOpen) {\n return false;\n }\n let future;\n const darkenerInstance = currentOpen.flexDarkenerInstance || this.darkener;\n const thisCurrentOpen = currentOpen;\n\n future = new Promise((resolve) => {\n if (window.getComputedStyle(currentOpen).position === 'fixed') {\n Util.addEventOnce(Settings.getTransitionEvent(), currentOpen, () => {\n setTimeout(() => {\n Event.dispatchAndFire(thisCurrentOpen, EVENT_DROPDOWN_CLOSED);\n // if a new dropdown has been opened in the meantime, do not remove darkener\n if (this.currentOpen !== null) {\n return false;\n }\n this.toggleDarkenerToggler(darkenerInstance, false);\n resolve(true);\n }, Settings.get().darkenerFadeDelay);\n });\n } else {\n resolve(true);\n Event.dispatchAndFire(thisCurrentOpen, EVENT_DROPDOWN_CLOSED);\n }\n });\n\n FixedWindow.getInstance().close();\n currentOpen.classList.remove(CLS_OPEN);\n\n if (currentOpen.flexDarkenerInstance) {\n currentOpen.flexDarkenerInstance.classList.remove(DARKENER_INIT);\n } else {\n this.darkener.classList.remove(DARKENER_INIT);\n }\n\n this.currentOpen = null;\n this.currentTarget = null;\n\n if (this.destroyOnClose) {\n this.destroy();\n }\n\n return future;\n }\n\n /**\n * Creates a dropdown on given target and opens it\n * @param {HTMLElement} target target where this dropdown is placed\n * @param {FlexCss.Widget} [thisWidget] if given will use widget instead of widget instance\n * @return {FlexCss.Dropdown}\n */\n createDropdown(target, thisWidget) {\n const doc = global.document;\n\n if (!target) {\n throw new Error('Dropdown target not found');\n }\n\n const widget = thisWidget || Widget.findWidget(target);\n let future;\n const data = target.getAttribute(ATTR_NAME);\n const dropdownContainerElement = doc.getElementById(data);\n const async = !dropdownContainerElement && Widget.isWidget(widget) ? widget.getAsync() : false;\n\n if (async) {\n target.classList.add(STATE_LOADING);\n target.isLoading = true;\n future = async.then((r) => {\n if (r instanceof HTMLElement) {\n if (r.id) {\n target.setAttribute(ATTR_NAME, r.id);\n }\n return r;\n }\n // Create container Element:\n const element = doc.createElement('div');\n element.className = CLS_DROPDOWN;\n element.innerHTML = r;\n element.id = Util.guid();\n // Cache target for later use:\n target.setAttribute(ATTR_NAME, element.id);\n this.container.appendChild(element);\n return element;\n }).then((r) => {\n target.isLoading = false;\n target.classList.remove(STATE_LOADING);\n return r;\n });\n } else {\n if (!dropdownContainerElement) {\n throw new Error(`Could not found Dropdown container with ID \"${data}\"`);\n }\n future = new Promise((r) => {\n r(dropdownContainerElement);\n });\n }\n\n future.then((dropdownContent) => {\n if (this.currentOpen) {\n this.close();\n }\n // Skip one frame to show animation\n target.dropdownContent = dropdownContent;\n const isAbsolute = global.getComputedStyle(dropdownContent).position === 'absolute';\n dropdownContent.hfWidgetInstance = this;\n\n if (!target.flexCollisionContainer) {\n const collisionC = target.getAttribute(ATTR_CC);\n target.flexCollisionContainer = collisionC ?\n doc.getElementById(collisionC) || document.documentElement : document.documentElement;\n }\n\n dropdownContent.classList.toggle(CLS_OPEN);\n if (dropdownContent.classList.contains(CLS_OPEN)) {\n this.currentOpen = dropdownContent;\n this.currentTarget = target;\n }\n if (isAbsolute) {\n // Check collision:\n let selfTarget = target.getAttribute(ATTR_DATA_TARGET);\n selfTarget = selfTarget ? doc.getElementById(selfTarget) : target;\n Util.setupPositionNearby(selfTarget, dropdownContent, target.flexCollisionContainer);\n } else {\n FixedWindow.getInstance().open(this);\n // optionally get custom darkener container for target\n const d = target.getAttribute(ATTR_DARKENER);\n if (d) {\n dropdownContent.flexDarkenerInstance = doc.getElementById(d);\n (dropdownContent.flexDarkenerInstance || this.darkener).classList.toggle(DARKENER_INIT);\n } else {\n this.darkener.classList.toggle(DARKENER_INIT);\n }\n this.toggleDarkenerToggler(dropdownContent.flexDarkenerInstance || this.darkener, true);\n\n dropdownContent.style.left = '0';\n dropdownContent.style.top = 'auto';\n }\n });\n }\n\n}\n\nexport default Dropdown;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Dropdown.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.LightBox\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n'use strict';\n\n/* global Image, TouchEvent*/\n\nimport Modal, { EVENT_MODAL_CLOSED } from './Modal';\nimport Settings from './util/Settings';\nimport Widget from './Widget';\n\nconst ATTR_MAX_WIDTH = 'data-original-width';\nconst ATTR_MAX_HEIGHT = 'data-original-height';\nconst ATTR_SRC = 'data-src';\n\nconst CLS_HAS_PREV = 'has-prev';\nconst CLS_HAS_NEXT = 'has-next';\nconst CLS_LOADING = 'loading';\n\nconst ATTR_NO_THUMBNAIL = 'data-no-thumbnail';\nconst ATTR_DATA_HREF = 'data-href';\nconst ATTR_HREF = 'href';\n\nconst KEY_NEXT = 39;\nconst KEY_PREV = 37;\nconst ATTR_CLOSE = 'data-close-modal';\n/**\n * A Simple LightBox\n */\nclass LightBox {\n\n /**\n * Creates a new Lightbox\n * @param DelegateContainer\n * @param AttributeSelector\n * @param ModalAppend\n * @param [options]\n */\n constructor(DelegateContainer, AttributeSelector, ModalAppend, options) {\n const thisDelegateContainer = DelegateContainer instanceof HTMLElement ? DelegateContainer :\n document.getElementById(DelegateContainer);\n\n this._modalAppend = ModalAppend || DelegateContainer;\n /**\n * @type {Function}\n */\n this._resizeEvent = null;\n /**\n * @type {Function}\n */\n this._keyboardNextEvent = null;\n /**\n * @type {Promise}\n */\n this._future = null;\n /**\n * @type {Promise}\n */\n this._nextFuture = this._future;\n /**\n * @type {HTMLElement}\n */\n this._imageContainer = null;\n /**\n * @type {HTMLElement}\n */\n this._modalContainerDiv = null;\n /**\n * @type {HTMLElement}\n */\n this._contentContainer = null;\n /**\n * @type {HTMLElement}\n */\n this._closerContainerDiv = null;\n /**\n * @type {HTMLElement}\n */\n this._delegateContainer = thisDelegateContainer;\n /**\n * @type {HTMLElement}\n */\n this._attributeSelector = AttributeSelector;\n /**\n * @type {Widget}\n */\n this._widget = null;\n /**\n * @type {boolean}\n */\n this._isOpen = false;\n /**\n * @type {HTMLElement}\n */\n this.target = null;\n /**\n * @type {HTMLElement}\n */\n this.img = null;\n /**\n * @type {boolean}\n */\n this._isLoading = false;\n\n /**\n * Default options\n */\n this.options = {\n // set if prev and next should be available\n registerPrevNextEvents: true,\n // set if modal should be closed after last image\n closeOnLast: true,\n // called when next image is requested (either by keyboard or click), return false to abort\n onNext: () => {\n return true;\n },\n onClose: () => {\n },\n getNext: null,\n getPrev: null,\n // called when underlying target changed\n onSwitchImage: () => {\n }\n };\n\n Object.assign(this.options, options);\n }\n\n /**\n * @param {HTMLElement} node\n * @returns {HTMLElement|null}\n */\n findImmediateNextTarget(node) {\n if (node && node.children[0].hasAttribute(this._attributeSelector)) {\n return node.children[0];\n }\n return null;\n }\n\n /**\n * Will fetch the next element of a lightBox\n * @param {HTMLElement} target\n * @returns {null|HTMLElement}\n */\n getNext(target) {\n if (this.options.getNext) {\n return this.options.getNext.apply(this, [target]);\n }\n return this.findImmediateNextTarget(target.parentNode.nextElementSibling);\n }\n\n /**\n * Will fetch the previous element of a lightBox\n * @param {HTMLElement} target\n * @returns {null|HTMLElement}\n */\n getPrev(target) {\n if (this.options.getPrev) {\n return this.options.getPrev.apply(this, [target]);\n }\n return this.findImmediateNextTarget(target.parentNode.previousElementSibling);\n }\n\n /**\n * Registers events for delegate container\n */\n registerEvents(onOpen) {\n this._delegateContainer.addEventListener(Settings.getTabEvent(), (e) => {\n let target = e.target;\n const parent = target.parentNode;\n let validTarget = target.hasAttribute(this._attributeSelector);\n const parentIsValid = parent && parent.hasAttribute(this._attributeSelector);\n\n if (!validTarget && parentIsValid) {\n validTarget = true;\n target = parent;\n }\n if (validTarget) {\n e.preventDefault();\n this.open(target).then((r) => {\n if (onOpen) {\n onOpen.apply(this, [r, target]);\n }\n });\n }\n });\n }\n\n /**\n * @returns {HTMLElement}\n */\n getContentContainer() {\n return this._contentContainer;\n }\n\n /**\n * Setup max-width and max-height\n * @param {HTMLElement} target\n * @param {HTMLElement} img\n * @param {HTMLElement} loadedImage\n * @private\n */\n static _setupMaxWidthHeight(target, img, loadedImage) {\n const nextMaxWidth = target.getAttribute(ATTR_MAX_WIDTH);\n const nextMaxHeight = target.getAttribute(ATTR_MAX_HEIGHT);\n if (nextMaxWidth && nextMaxHeight) {\n img.style.maxWidth = nextMaxWidth + \"px\";\n img.style.maxHeight = nextMaxHeight + \"px\";\n } else {\n img.style.maxWidth = loadedImage.width + \"px\";\n img.style.maxHeight = loadedImage.height + \"px\";\n }\n }\n\n /**\n * Switches to the next image\n * @param {boolean} direction\n */\n switchImageByDirection(direction) {\n const next = direction ? this.getPrev(this.target) : this.getNext(this.target);\n if (this.options.onNext.apply(this, [next])) {\n return this.switchImage(next);\n }\n return new Promise((_, reject) => reject(next));\n }\n\n /**\n * Checks if lightbox is currently loading\n * @returns {boolean}\n */\n isLoading() {\n return this._isLoading;\n }\n\n /**\n * Checks if modal should be closed\n * @private\n */\n _runOptionalClose() {\n if (this.options.closeOnLast) {\n this.modal.close();\n }\n }\n\n _setupPrevNextStates() {\n const target = this.target;\n const hasPrev = this.getPrev(target);\n const hasNext = this.getNext(target);\n const hasPrevClass = CLS_HAS_PREV;\n const hasNextClass = CLS_HAS_NEXT;\n // because IE does not support the second toggle parameter, we need to do this manually\n if (hasPrev) {\n this._imageContainer.classList.add(hasPrevClass);\n } else {\n this._imageContainer.classList.remove(hasPrevClass);\n }\n if (hasNext) {\n this._imageContainer.classList.add(hasNextClass);\n } else {\n this._imageContainer.classList.remove(hasNextClass);\n }\n }\n\n /**\n * @param img\n * @private\n */\n _calculateContainer(img) {\n if (Settings.isIE()) {\n setTimeout(() => {\n this._imageContainer.style.height = img.offsetHeight + 'px';\n }, 0);\n }\n }\n\n /**\n * Switch to a specific image\n * @param next\n * @returns {*}\n */\n switchImage(next) {\n const self = this;\n const img = this.img;\n this._isLoading = true;\n self._nextFuture = new Promise((resolve, reject) => {\n // notify observers about image switching\n self.options.onSwitchImage.apply(self, [self._nextFuture]);\n if (next) {\n const nextThumb = next.hasAttribute(ATTR_NO_THUMBNAIL) ? next : (next.children[0] || next);\n const nextHighRes = next.getAttribute(ATTR_DATA_HREF) ||\n next.getAttribute(ATTR_HREF);\n const nextSource = nextThumb.getAttribute(ATTR_SRC) || nextThumb.src || nextHighRes;\n const nextImgObject = new Image();\n\n if (!nextSource) {\n reject(next);\n return;\n }\n // set new target to next element\n this.target = next;\n nextImgObject.src = nextSource;\n self._imageContainer.classList.add(CLS_LOADING);\n nextImgObject.addEventListener('load', () => {\n img.src = nextSource;\n self._imageContainer.style.backgroundImage = 'url(' + nextSource + ')';\n LightBox._setupMaxWidthHeight(next, img, nextImgObject);\n self._calculateContainer(img);\n self.highRes(nextThumb, nextHighRes);\n self._setupPrevNextStates();\n self._imageContainer.classList.remove(CLS_LOADING);\n this._isLoading = false;\n resolve(nextSource, this.target);\n });\n } else {\n reject(this);\n }\n });\n return self._nextFuture;\n }\n\n\n /**\n * Setup High-Resolution picture\n * @param {HTMLElement} thisThumbnail\n * @param {String} thisImgHighResolution\n */\n highRes(thisThumbnail, thisImgHighResolution) {\n if (thisImgHighResolution && thisThumbnail.src !== thisImgHighResolution) {\n const highImageObj = new Image();\n highImageObj.src = thisImgHighResolution;\n highImageObj.addEventListener('load', () => {\n // if current image is still available\n if (this._getSrc(thisThumbnail) === this.img.src) {\n this.img.src = thisImgHighResolution;\n this._imageContainer.style.backgroundImage = 'url(' + thisImgHighResolution + ')';\n }\n });\n }\n }\n\n /**\n * Extracts the source of an image\n * @param target\n * @returns {String|null}\n * @private\n */\n _getSrc(target) {\n return target.getAttribute(ATTR_SRC) || target.src;\n }\n\n /**\n * Will show a lightBox on given target\n * @param {HTMLElement} target\n * @returns {$.Deferred|*}\n */\n open(target) {\n const self = this;\n\n if (!target) {\n return false;\n }\n\n this.target = target;\n\n // if lightBox is open, we just switch to the new target image\n if (this._isOpen && target) {\n return this.switchImage(target).then(() => {\n return this;\n });\n }\n\n this._isOpen = true;\n\n /**\n * Setup Widget for modal\n * @type {Widget}\n */\n this._widget = new Widget().setAsync(() => {\n // thumbnail is either target itself or expected to be first childNode\n const thumbnail = target.hasAttribute(ATTR_NO_THUMBNAIL) ? target : (target.children[0] || target);\n\n const imgHighResolution = target.getAttribute(ATTR_DATA_HREF) || target.getAttribute(ATTR_HREF);\n const imgSrc = this._getSrc(thumbnail) || imgHighResolution;\n\n const imageObj = new Image();\n imageObj.src = imgSrc;\n this._imageContainer = document.createElement('div');\n this._modalContainerDiv = document.createElement('div');\n this._closerContainerDiv = document.createElement('i');\n this._contentContainer = document.createElement('div');\n\n this._closerContainerDiv.className = 'modal-close modal-close-lightbox icon-cancel-1';\n this._closerContainerDiv.setAttribute(ATTR_CLOSE, ATTR_CLOSE);\n\n this._modalContainerDiv.className = 'modal image-modal';\n this._modalContainerDiv.appendChild(this._imageContainer);\n this._modalContainerDiv.appendChild(this._contentContainer);\n this._modalContainerDiv.appendChild(this._closerContainerDiv);\n this._contentContainer.className = 'content-container';\n this._isLoading = true;\n this._future = new Promise((resolve) => {\n imageObj.addEventListener('load', () => {\n this._imageContainer.className = 'image-container';\n const img = document.createElement('img');\n // current image\n this.img = img;\n\n img.src = imgSrc;\n LightBox._setupMaxWidthHeight(target, img, imageObj);\n this._imageContainer.appendChild(img);\n this._imageContainer.style.backgroundImage = 'url(' + imgSrc + ')';\n\n resolve(self._modalContainerDiv);\n this._isLoading = false;\n\n if (Settings.isIE()) {\n self._resizeEvent = global.addEventListener('resize', () => {\n setTimeout(() => {\n self._imageContainer.style.height = img.offsetHeight + 'px';\n }, 0);\n });\n }\n\n if (self.options.registerPrevNextEvents) {\n self._setupPrevNextStates();\n // prev or next on touch/click\n self._imageContainer.addEventListener(Settings.getTabEvent(), (e) => {\n if (self.isLoading()) {\n return;\n }\n e.preventDefault();\n\n const ev = e;\n const pageX = global.TouchEvent && ev instanceof TouchEvent ?\n ev.changedTouches[0].pageX : ev.pageX;\n const rect = self._imageContainer.getBoundingClientRect();\n const imgX = rect.left;\n const wrapperWidth = rect.width;\n const posX = pageX - imgX;\n\n self.switchImageByDirection(wrapperWidth / 2 > posX).catch(() => {\n self._runOptionalClose();\n });\n });\n\n // register keyboard events\n self._keyboardNextEvent = (e) => {\n if (e.keyCode === KEY_NEXT || e.keyCode === KEY_PREV) {\n if (self.isLoading()) {\n return;\n }\n self.switchImageByDirection(e.keyCode === KEY_PREV).catch(() => {\n self._runOptionalClose();\n });\n }\n };\n global.addEventListener('keydown', self._keyboardNextEvent);\n } else {\n self._imageContainer.addEventListener(Settings.getTabEvent(), () => {\n self._runOptionalClose();\n });\n }\n\n self.highRes(thumbnail, imgHighResolution);\n });\n });\n\n this._future.then(() => {\n self._calculateContainer(this.img);\n });\n\n self._modalContainerDiv.addEventListener(EVENT_MODAL_CLOSED, () => {\n // cleanup:\n this._modalContainerDiv.parentNode.removeChild(this._modalContainerDiv);\n this.options.onClose.apply(self);\n this._isOpen = false;\n this.modal.destroy();\n // unbind events\n if (this._keyboardNextEvent) {\n global.removeEventListener('keydown', self._keyboardNextEvent);\n }\n if (this._resizeEvent) {\n global.removeEventListener('resize', self._resizeEvent);\n }\n });\n\n return this._future;\n });\n\n this._nextFuture = this._future;\n\n if (self._widget) {\n this.modal = new Modal(this._modalAppend);\n // make sure we close stack before\n return this.modal.close().fromWidget(self._widget).then(() => {\n return self._future.then(() => {\n return self;\n });\n });\n }\n return false;\n }\n\n}\n\nexport default LightBox;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/LightBox.js\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/build/js/site.min.js b/build/js/site.min.js index 406427b..191ef20 100644 --- a/build/js/site.min.js +++ b/build/js/site.min.js @@ -4,7 +4,7 @@ return!t||"object"!==("undefined"==typeof t?"undefined":(0,o["default"])(t))&&"f * Licensed under the MIT License (MIT) * Copyright (c) 2015 David Heidrich, BowlingX */ -"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.EVENT_MODAL_ASYNC_TARGET_LOADED=t.EVENT_MODAL_INIT=t.EVENT_MODAL_OPENED=t.EVENT_MODAL_BEFORE_CLOSED=t.EVENT_MODAL_CLOSED=void 0;var o=function(){function e(e,t){for(var n=0;n-1&&(t._modalInstances.splice(n,1),v["default"].getInstance().close().then(function(){m.classList.remove(w)}))}},{key:"getModalContainer",value:function(){return this.modalContainer}},{key:"close",value:function(e){var n=this,r=n.currentOpen?d["default"].applyOptionsFromElement(n.currentOpen,d["default"].copy(n.options)):n.options;if(!r.closeOnEscape&&e instanceof KeyboardEvent)return!1;if(!r.closeOnBackgroundClick&&e&&e.type===s["default"].getTabEvent()&&!e.target.hasAttribute(_))return!1;if(n.loading)return!1;if(e&&e.preventDefault(),n.currentOpen){var i=l["default"].dispatchAndFire(n.currentOpen,x);if(i.defaultPrevented)return!1;if(this._finishState(n.currentOpen),n.currentOpen.prevModal)return n.switchModals(n.currentOpen.prevModal,n.currentOpen.prevModal.prevModal||null);l["default"].dispatch(n.currentOpen,L).withOriginal(e).fire()}if(n._removeModalFromStack(n.currentOpen),n.currentOpen=null,n.modalContainer){var o=t._modalInstances[t._modalInstances.length-1],a=n.modalContainer.classList;a.remove(b),a.remove(T);for(var u=0;u=0&&!d&&(d=!0,t.classList.add("animate"),c.length||e("secondParagraphItem","marking",30))});var f=function(){try{var e=document.getSelection(),r=new s["default"].Rendering(document),a=r.renderWithRange(e.getRangeAt(0));r.on("click",t),i.push(r),e.removeAllRanges(),c.push(a.serialize()),localStorage.setItem(n,(0,o["default"])(c))}catch(u){console.warn("Could not add selection: ",u)}};document.addEventListener("keydown",function(e){e.keyCode===l&&f()}),document.addEventListener("click",function(e){return"action-mark"===e.target.id?f():void("action-clear"===e.target.id&&(i.forEach(function(e){return e.destroy()}),c=[],i=[],localStorage.setItem(n,(0,o["default"])([]))))})}),t["default"]=s["default"]},function(e,t,n){(function(e){/*! +"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.EVENT_MODAL_ASYNC_TARGET_LOADED=t.EVENT_MODAL_INIT=t.EVENT_MODAL_OPENED=t.EVENT_MODAL_BEFORE_CLOSED=t.EVENT_MODAL_CLOSED=void 0;var o=function(){function e(e,t){for(var n=0;n-1&&(t._modalInstances.splice(n,1),v["default"].getInstance().close().then(function(){m.classList.remove(w)}))}},{key:"getModalContainer",value:function(){return this.modalContainer}},{key:"close",value:function(e){var n=this,r=n.currentOpen?d["default"].applyOptionsFromElement(n.currentOpen,d["default"].copy(n.options)):n.options;if(!r.closeOnEscape&&e instanceof KeyboardEvent)return!1;if(!r.closeOnBackgroundClick&&e&&e.type===s["default"].getTabEvent()&&!e.target.hasAttribute(_))return!1;if(n.loading)return!1;if(e&&e.preventDefault(),n.currentOpen){var i=l["default"].dispatchAndFire(n.currentOpen,x);if(i.defaultPrevented)return!1;if(this._finishState(n.currentOpen),n.currentOpen.prevModal)return n.switchModals(n.currentOpen.prevModal,n.currentOpen.prevModal.prevModal||null);l["default"].dispatch(n.currentOpen,L).withOriginal(e).fire()}if(n._removeModalFromStack(n.currentOpen),n.currentOpen=null,n.modalContainer){var o=t._modalInstances[t._modalInstances.length-1],a=n.modalContainer.classList;a.remove(b),a.remove(T);for(var u=0;u=0&&!d&&(d=!0,t.classList.add("animate"),c.length||e("secondParagraphItem","marking",30))});var f=function(){try{var e=document.getSelection(),r=new a.Rendering(document),s=r.renderWithRange(e.getRangeAt(0));r.on("click",t),i.push(r),e.removeAllRanges(),c.push(s.serialize()),localStorage.setItem(n,(0,o["default"])(c))}catch(u){console.warn("Could not add selection: ",u)}};document.addEventListener("keydown",function(e){e.keyCode===u&&f()}),document.addEventListener("click",function(e){return"action-mark"===e.target.id?f():void("action-clear"===e.target.id&&(i.forEach(function(e){return e.destroy()}),c=[],i=[],localStorage.setItem(n,(0,o["default"])([]))))})}),t["default"]=a.Rendering},function(e,t,n){(function(e){/*! * FlexCss.Dropdown * Licensed under the MIT License (MIT) * Copyright (c) 2015 David Heidrich, BowlingX diff --git a/build/js/site.min.map b/build/js/site.min.map index 6d60f92..24a1899 100644 --- a/build/js/site.min.map +++ b/build/js/site.min.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///js/site.min.js","webpack:///webpack/bootstrap 15f3bfefb7f0b8c9df4c","webpack:///./~/core-js/library/modules/$.js","webpack:///./~/core-js/library/modules/$.core.js","webpack:///./~/core-js/library/modules/$.wks.js","webpack:///./~/core-js/library/modules/$.export.js","webpack:///./~/core-js/library/modules/$.iterators.js","webpack:///./~/core-js/library/modules/$.an-object.js","webpack:///./~/core-js/library/modules/$.descriptors.js","webpack:///./~/core-js/library/modules/$.fails.js","webpack:///./~/core-js/library/modules/$.global.js","webpack:///./~/core-js/library/modules/$.hide.js","webpack:///./~/flexcss/src/main/util/Settings.js","webpack:///./~/babel-runtime/helpers/classCallCheck.js","webpack:///./~/babel-runtime/helpers/createClass.js","webpack:///./~/core-js/library/modules/$.ctx.js","webpack:///./~/core-js/library/modules/$.defined.js","webpack:///./~/core-js/library/modules/$.has.js","webpack:///./~/core-js/library/modules/$.is-object.js","webpack:///./~/core-js/library/modules/$.set-to-string-tag.js","webpack:///./~/core-js/library/modules/$.to-iobject.js","webpack:///./~/core-js/library/modules/es6.string.iterator.js","webpack:///./~/core-js/library/modules/web.dom.iterable.js","webpack:///./~/flexcss/src/main/util/Util.js","webpack:///./src/main/Rendering.js","webpack:///./src/main/util/Util.js","webpack:///./~/babel-runtime/helpers/typeof.js","webpack:///./~/core-js/library/modules/$.classof.js","webpack:///./~/core-js/library/modules/$.cof.js","webpack:///./~/core-js/library/modules/$.for-of.js","webpack:///./~/core-js/library/modules/$.iter-define.js","webpack:///./~/core-js/library/modules/$.property-desc.js","webpack:///./~/core-js/library/modules/$.redefine.js","webpack:///./~/core-js/library/modules/$.uid.js","webpack:///./~/flexcss/src/main/util/Event.js","webpack:///./src/main/RenderResult.js","webpack:///./src/main/RenderingEvents.js","webpack:///./~/flexcss/src/main/Widget.js","webpack:///./~/babel-runtime/core-js/object/get-prototype-of.js","webpack:///./~/babel-runtime/helpers/inherits.js","webpack:///./~/babel-runtime/helpers/possibleConstructorReturn.js","webpack:///./~/core-js/library/modules/$.iobject.js","webpack:///./~/core-js/library/modules/$.iter-step.js","webpack:///./~/core-js/library/modules/$.library.js","webpack:///./~/core-js/library/modules/$.redefine-all.js","webpack:///./~/core-js/library/modules/$.shared.js","webpack:///./~/core-js/library/modules/$.strict-new.js","webpack:///./~/core-js/library/modules/$.to-integer.js","webpack:///./~/core-js/library/modules/$.to-object.js","webpack:///./~/core-js/library/modules/core.get-iterator-method.js","webpack:///./src/main/modules/Marklib.js","webpack:///./~/flexcss/src/main/lib/FixedWindow.js","webpack:///./~/babel-runtime/core-js/get-iterator.js","webpack:///./~/babel-runtime/core-js/is-iterable.js","webpack:///./~/babel-runtime/core-js/object/assign.js","webpack:///./~/babel-runtime/core-js/object/create.js","webpack:///./~/babel-runtime/core-js/object/define-property.js","webpack:///./~/babel-runtime/core-js/object/set-prototype-of.js","webpack:///./~/babel-runtime/core-js/set.js","webpack:///./~/babel-runtime/core-js/symbol.js","webpack:///./~/babel-runtime/core-js/symbol/iterator.js","webpack:///./~/babel-runtime/helpers/slicedToArray.js","webpack:///./~/core-js/library/fn/get-iterator.js","webpack:///./~/core-js/library/fn/is-iterable.js","webpack:///./~/core-js/library/fn/object/assign.js","webpack:///./~/core-js/library/fn/object/create.js","webpack:///./~/core-js/library/fn/object/define-property.js","webpack:///./~/core-js/library/fn/object/get-prototype-of.js","webpack:///./~/core-js/library/fn/object/set-prototype-of.js","webpack:///./~/core-js/library/fn/set.js","webpack:///./~/core-js/library/fn/symbol/index.js","webpack:///./~/core-js/library/fn/symbol/iterator.js","webpack:///./~/core-js/library/modules/$.a-function.js","webpack:///./~/core-js/library/modules/$.add-to-unscopables.js","webpack:///./~/core-js/library/modules/$.collection-strong.js","webpack:///./~/core-js/library/modules/$.collection-to-json.js","webpack:///./~/core-js/library/modules/$.collection.js","webpack:///./~/core-js/library/modules/$.enum-keys.js","webpack:///./~/core-js/library/modules/$.get-names.js","webpack:///./~/core-js/library/modules/$.is-array-iter.js","webpack:///./~/core-js/library/modules/$.is-array.js","webpack:///./~/core-js/library/modules/$.iter-call.js","webpack:///./~/core-js/library/modules/$.iter-create.js","webpack:///./~/core-js/library/modules/$.keyof.js","webpack:///./~/core-js/library/modules/$.object-assign.js","webpack:///./~/core-js/library/modules/$.object-sap.js","webpack:///./~/core-js/library/modules/$.set-proto.js","webpack:///./~/core-js/library/modules/$.set-species.js","webpack:///./~/core-js/library/modules/$.string-at.js","webpack:///./~/core-js/library/modules/$.to-length.js","webpack:///./~/core-js/library/modules/core.get-iterator.js","webpack:///./~/core-js/library/modules/core.is-iterable.js","webpack:///./~/core-js/library/modules/es6.array.iterator.js","webpack:///./~/core-js/library/modules/es6.object.assign.js","webpack:///./~/core-js/library/modules/es6.object.get-prototype-of.js","webpack:///./~/core-js/library/modules/es6.object.set-prototype-of.js","webpack:///./~/core-js/library/modules/es6.set.js","webpack:///./~/core-js/library/modules/es6.symbol.js","webpack:///./~/core-js/library/modules/es7.set.to-json.js","webpack:///./~/wolfy87-eventemitter/EventEmitter.js","webpack:///./~/flexcss/src/main/DestroyableWidget.js","webpack:///./~/flexcss/src/main/Modal.js","webpack:///./~/flexcss/src/main/Tooltip.js","webpack:///./src/main/modules/Site.js","webpack:///./~/flexcss/src/main/Dropdown.js","webpack:///./~/flexcss/src/main/Form.js","webpack:///./~/flexcss/src/main/LightBox.js","webpack:///./~/flexcss/src/main/OffCanvas.js","webpack:///./~/flexcss/src/main/Toggleable.js","webpack:///./~/flexcss/src/main/lib/debounce.js","webpack:///./~/flexcss/src/main/modules/All.js","webpack:///./~/babel-runtime/core-js/json/stringify.js","webpack:///./~/core-js/library/fn/json/stringify.js","webpack:///./~/isomorphic-fetch/fetch-npm-browserify.js","webpack:///./~/whatwg-fetch/fetch.js"],"names":["root","factory","exports","module","define","amd","this","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","$Object","Object","create","getProto","getPrototypeOf","isEnum","propertyIsEnumerable","getDesc","getOwnPropertyDescriptor","setDesc","defineProperty","setDescs","defineProperties","getKeys","keys","getNames","getOwnPropertyNames","getSymbols","getOwnPropertySymbols","each","forEach","core","version","__e","store","uid","Symbol","name","global","ctx","PROTOTYPE","$export","type","source","key","own","out","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","IS_WRAP","W","target","C","param","Function","isObject","it","TypeError","get","a","exec","e","window","Math","self","__g","$","createDesc","object","value","_interopRequireDefault","obj","__esModule","default","_classCallCheck","instance","Constructor","_createClass","props","i","length","descriptor","enumerable","configurable","writable","protoProps","staticProps","prototype","_Util","_Util2","FLEXCSS_GLOBAL_SETTINGS","smallBreakpoint","scrollbarUpdateNodes","document","body","darkenerFadeDelay","canvasToggledClass","FLEXCSS_CONST_IS_IOS","FLEXCSS_CONST_IS_TOUCH","FLEXCSS_CONST_IS_IE","FLEXCSS_CONST_TAB_EVENT","FLEXCSS_IS_SMALL_SCREEN","init","FLEXCSS_CONST_SCROLLBAR_WIDTH","getScrollBarWidth","FLEXCSS_CONST_TRANSITION_EVENT","whichTransitionEndEvent","readyState","addEventListener","Settings","settings","assign","navigator","userAgent","match","innerWidth","msMaxTouchPoints","_defineProperty","_defineProperty2","aFunction","fn","that","undefined","b","apply","arguments","hasOwnProperty","def","has","TAG","tag","stat","IObject","defined","$at","String","iterated","_t","_i","point","O","index","done","Iterators","NodeList","HTMLCollection","Array","PFX","COL_LEFT_CLASS","COL_RIGHT_CLASS","COL_BOTTOM_CLASS","Util","element","callback","thisFunction","thisType","toLowerCase","t","el","createElement","transitions","transition","OTransition","MozTransition","WebkitTransition","style","parent","now","parentNode","func","s4","floor","random","toString","substring","doc","inner","width","height","outer","position","top","left","visibility","overflow","appendChild","w1","offsetWidth","w2","clientWidth","removeChild","ev","capture","event","removeEventListener","offsetHeight","str","replace","g","toUpperCase","input","JSON","parse","stringify","base","attrs","attributes","attr","s","dashToCamelCase","nodeName","val","nodeValue","parseInt","elementToPosition","collisionContainer","centerHorizontal","positionTop","amountTop","amountLeft","parentsUntil","HTMLElement","getComputedStyle","isPartOfNode","offsetTop","offsetLeft","targetPosition","getBoundingClientRect","elementRect","colRect","targetTop","targetRight","right","isCollisionTop","isCollisionBottom","innerHeight","isCollisionLeft","targetLeft","isCollisionRight","classList","remove","calcTop","calcLeft","add","rightPosition","leftCentered","collisionCentered","cssText","optionalOffset","scrollIntoView","thisOffset","scrolledY","pageYOffset","scroll","EVENT_WRAPPED_NODE","ATTR_DATA_ORIGINAL_OFFSET_START","_getPrototypeOf","_getPrototypeOf2","_classCallCheck2","_classCallCheck3","_createClass2","_createClass3","_possibleConstructorReturn2","_possibleConstructorReturn3","_inherits2","_inherits3","_RenderResult","_RenderResult2","_RenderingEvents2","_RenderingEvents3","TAG_NAME","DATA_ORIGINAL_TEXT_NODE_INDEX","ATTR_DATA_START_END","ATTR_DATA_IS_HIGHLIGHT_NODE","ATTR_DATA_ID","DOCUMENT_POSITION_CONTAINED_BY","Rendering","_RenderingEvents","options","context","_this","guid","startContainer","endContainer","_renderResult","_this2","wrapperNodes","node","setAttribute","omitHighlight","vTrue","className","join","setMarklibInstance","push","getId","DATA_IS_SELECTION","text","_createWrapTemplate","textContent","initialNode","offset","wrapper","_createStartEndWrapTemplate","ATTR_DATA_ORIGINAL_INDEX","getIndexParentIfHas","optionalLength","optionalIndex","optionalIsSameNode","originalIndex","calcIndex","offsetLength","getOffsetParentIfHas","wrap","emit","originalElement","start","nextParent","nextParentNode","currentParentNode","wrapSiblings","nextSibling","_this3","next","found","n","getMarklibInstance","hasAttribute","_createWrap","wrapIf","nodeIsEmpty","walkIfContained","Node","TEXT_NODE","nodeType","walkIfNotContained","currentNext","compareDocumentPosition","walkDom","walkTextNodes","textNode","startIndex","endIndex","initialText","initialIndex","textBefore","slice","insertBefore","createTextNode","previousSibling","_createSplitContainer","textAfter","startOffset","endOffset","startContainerIndex","endContainerIndex","fullTextStartValue","startT","partTextStartValue","offsetStart","_createStartOrEndContainer","endT","fullTextEndValue","partTextEndValue","offsetParent","startContainerP","endContainerP","commonAncestor","endOffsetP","parents","contextContainer","originalStartOffset","findOriginalOffset","originalEndOffset","nextElementSibling","toFindNode","previousElementSibling","endContainerContents","closest","childNodes","r","f","lastChild","getAttribute","Error","getPath","_renderSelection","_markTextSameNode","result","_markTextDifferentNode","indexOf","splice","walk","startPath","endPath","deserializePath","range","createRange","setStart","setEnd","renderWithRange","renderWithPath","startContainerPath","endContainerPath","_renderWithElements","commonAncestorContainer","marklibInstance","removeEvent","_Rendering","SERIALIZE_SEPARATOR","Element","matches","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector","nodes","filter","optionalList","children","elms","thisElms","child","cloneNode","sibling","calculatedIndex","foundWrapper","thisIndex","maybeIndexOfOriginal","optionalSelector","parentsCallback","foundElements","selector","closestCallback","lastValid","path","filterSiblings","thisEl","isMarkNode","outerMostElement","reverse","siblings","nodeListFilter","nodeIndex","lengthElement","pSplit","split","objectIndex","charOffset","container","trim","querySelector","maybeFoundNode","atrOffsetStart","atrIndex","_document","NodeFilter","SHOW_ALL","args","walker","createTreeWalker","nextNode","currentNode","SHOW_TEXT","_typeof","_Symbol","_Symbol$iterator","constructor","_iterator","_iterator2","_symbol","_symbol2","cof","ARG","T","callee","isArrayIter","anObject","toLength","getIterFn","iterable","entries","step","iterator","iterFn","LIBRARY","redefine","hide","$iterCreate","setToStringTag","ITERATOR","BUGGY","FF_ITERATOR","KEYS","VALUES","returnThis","Base","NAME","DEFAULT","IS_SET","FORCED","methods","getMethod","kind","proto","DEF_VALUES","VALUES_BUG","$native","$default","IteratorPrototype","values","bitmap","px","concat","CustomEvent","_CustomEvent","params","evt","thisParams","bubbles","cancelable","detail","createEvent","initCustomEvent","Event","EventHandler","defaultOptions","withDetail","originalEvent","o","dispatchEvent","withOptions","fire","RenderResult","_renderingInstance","set","_text","EVENT_PART_TREE_LEAVE","EVENT_PART_TREE_ENTER","EVENT_MOUSELEAVE","EVENT_MOUSEENTER","EVENT_CLICK","_slicedToArray2","_slicedToArray3","_typeof2","_typeof3","_set","_set2","_assign","_assign2","_wolfy87Eventemitter","_wolfy87Eventemitter2","_Rendering2","RenderingEvents","_EventEmitter","hoverClass","treeClass","_registerEvents","on","__MARKLIB_EVENTS__","checkMarklibInstance","closestInstance","thisE","getInstancesBetween","map","mouseOutClear","currentHoverInstances","thisInstance","clear","betweenInstances","findTarget","between","allInstances","unshift","sort","_target","instanceBetween","textNodes","lastTextNode","Widget","asyncContent","_isWidget","getElementById","hfWidgetInstance","setAsync","Promise","finalContent","async","_setPrototypeOf","_setPrototypeOf2","_create","_create2","subClass","superClass","__proto__","ReferenceError","src","SHARED","ceil","isNaN","classof","getIteratorMethod","EVENT_AFTER_FIXED_REMOVE","EVENT_BEFORE_FIXED_ADD","_slicedToArray","sliceIterator","arr","_arr","_n","_d","_e","_s","err","isArray","_Settings","_Settings2","_debounce","_debounce2","_Event","_Event2","CLS_FIXED_WINDOW","fixedWindowInstance","FixedWindow","widgets","currentScrollTop","fixedScreenConstraints","windowWidth","isFixedWindowActive","widget","fixedBreakpointFn","Set","widgetsThatRequireFixedWindow","from","some","_addFixedContainer","_removeFixedContainer","dispatchAndFire","getCurrentWidget","foundProperty","direction","whatNode","property","d","__fixedWindowMod__","getScrollbarWidth","documentElement","scrollTop","_node","paddingRight","_checkFixedNeeded","resolve","pop","requestAnimationFrame","fixed","cn","fixedWidget","eventHandler","resizeListener","bind","_isIterable2","_isIterable3","_getIterator2","_getIterator3","D","desc","setPrototypeOf","redefineAll","strictNew","forOf","$iterDefine","ID","$has","setSpecies","DESCRIPTORS","isExtensible","SIZE","fastKey","getEntry","entry","_f","k","getConstructor","IS_MAP","ADDER","_l","data","delete","prev","callbackfn","v","setStrong","_k","fails","common","IS_WEAK","_c","KEY","IS_ADDER","size","symbols","toIObject","windowNames","getWindowNames","ArrayProto","arg","ret","toObject","A","K","$$","$$len","j","exp","check","test","buggy","SPECIES","toInteger","TO_STRING","pos","l","charCodeAt","charAt","min","getIterator","isIterable","addToUnscopables","Arguments","$getPrototypeOf","strong","$fails","shared","wks","keyOf","$names","enumKeys","$Symbol","$JSON","_stringify","setter","HIDDEN","SymbolRegistry","AllSymbols","useNative","ObjectProto","setSymbolDesc","protoDesc","sym","isSymbol","$defineProperty","$defineProperties","$create","$propertyIsEnumerable","E","$getOwnPropertyDescriptor","$getOwnPropertyNames","names","$getOwnPropertySymbols","$stringify","replacer","$replacer","buggyJSON","symbolStatics","for","keyFor","useSetter","useSimple","toJSON","__WEBPACK_AMD_DEFINE_RESULT__","EventEmitter","indexOfListener","listeners","listener","alias","originalGlobalValue","getListeners","response","events","_getEvents","RegExp","flattenListeners","flatListeners","getListenersAsObject","addListener","listenerIsWrapped","once","addOnceListener","defineEvent","defineEvents","evts","removeListener","off","addListeners","manipulateListeners","removeListeners","single","multiple","_events","removeAllListeners","emitEvent","listenersMap","_getOnceReturnValue","trigger","setOnceReturnValue","_onceReturnValue","noConflict","DestroyableWidget","EVENT_MODAL_ASYNC_TARGET_LOADED","EVENT_MODAL_INIT","EVENT_MODAL_OPENED","EVENT_MODAL_BEFORE_CLOSED","EVENT_MODAL_CLOSED","_Widget","_Widget2","_FixedWindow","_FixedWindow2","HTML_ELEMENT","KEY_ESC","ATTR_CREATE_NEW","ATTR_CLOSE","ATTR_NAME","CLS_CONTAINER_CURRENT","CLS_OPEN","CLS_CURRENT","CLS_PART_OF_STACK","CLS_MODAL_OPEN","CLS_MODAL_CONTAINER","CLS_ANIM_END","CLS_LOADER_CONTAINER","CLS_LOADER","Modal","DelegateContainer","currentOpen","loading","classNames","closeOnEscape","closeOnBackgroundClick","destroyOnFinish","fixedContainer","containerClassNames","eventContainer","eventFunction","dataMainPageContainer","modalContainer","_modalInstances","getInstance","close","then","applyOptionsFromElement","copy","KeyboardEvent","getTabEvent","preventDefault","defaultPrevented","_finishState","prevModal","switchModals","dispatch","withOriginal","_removeModalFromStack","lastContainer","cl","destroy","co","last","open","prefixedAnimateEvent","_finishAnim","instances","isCurrent","contains","foundInstance","flexModalInstance","targetContent","future","hasTarget","isHtmlElement","isWidget","findWidget","newInstance","setDestroyOnFinish","fromEvent","registerEvents","getModalContainer","stopImmediatePropagation","modalContainerClasses","closeModalFunction","ce","loader","toggleLoader","show","loaderLoader","handleScrollbar","getAsync","DocumentFragment","innerHTML","modal","internal","maybeEvent","delegate","delegateContainer","addScreenConstraint","createWidget","isEmptyContainer","MutationObserver","observer","mutations","disconnect","observe","childList","keyCode","lastModal","_possibleConstructorReturn","_inherits","_get","receiver","getter","_DestroyableWidget2","_DestroyableWidget3","CLASS_NAMES_TOOLTIP","CLASS_NAMES_OPEN","ATTR_DATA_CLASSNAME","ATTR_DATA_NO_TOUCH","Tooltip","_DestroyableWidget","tooltipContainer","containerClass","selectorAttribute","removeTitle","positionRelative","isTouchDevice","_restoreClassNames","flexTooltipCurrentTarget","oldTitle","removeAttribute","setupPositionNearby","maybeTargetClass","selfTarget","createTooltip","removeTooltip","_stringify2","_Marklib","_Marklib2","_flexcss","KEY_ENTER","presentRendering","speed","thisLength","render","autoMarkText","cp","nextText","setTimeout","onClick","ANIMATIONEND","tooltip","getCurrentTarget","STORAGE_KEY","allRanges","savedRanges","localStorage","getItem","animated","marker","renderWithResult","console","warn","setItem","error","html","clientHeight","bottom","actionMark","selection","getSelection","renderer","getRangeAt","removeAllRanges","serialize","EVENT_DROPDOWN_CLOSED","ATTR_CC","ATTR_DARKENER","DARKENER_INIT","ATTR_DATA_TARGET","ATTR_CLOSE_DROPDOWN","STATE_LOADING","CLS_DARKENER_DROPDOWN","CLS_DROPDOWN","Dropdown","Darkener","currentTarget","darkener","destroyOnClose","targetIsCurrent","_delegateFunction","isLoading","createDropdown","cls","darkenerInstance","flexDarkenerInstance","thisCurrentOpen","addEventOnce","getTransitionEvent","toggleDarkenerToggler","thisWidget","dropdownContainerElement","dropdownContent","isAbsolute","flexCollisionContainer","collisionC","toggle","EVENT_FORM_AJAX_COMPLETED","EVENT_FORM_AFTER_AJAX_SUBMIT","EVENT_FORM_SUBMIT","EVENT_FORM_READY","_Tooltip","_Tooltip2","LOADING_CLASS","DATA_ELEMENT_INVALID","REMOTE","REMOTE_ACTION","ATTR_DISABLE_INLINE","ATTR_DISABLE_REALTIME","ATTR_VALIDATOR","ATTR_DATA_CUSTOM_MESSAGE","ATTR_DATA_CUSTOM_LABEL","ATTR_VALIDATE_VISIBILITY","ATTR_ERROR_TARGET_ID","ATTR_DEPENDS","CONST_USE_JSON","CONST_REALTIME_EVENT","FOCUS_TOOLTIP_DELAY","CLICK_TOOLTIP_DELAY","Form","form","HTMLFormElement","tooltips","currentValidationFuture","createTooltips","appendError","ajaxSubmitType","ajaxJsonContentType","inlineValidation","realtime","realtimeTimeout","formatErrorTooltip","inputErrorClass","containerErrorClass","fetchOptions","credentials","tooltipOptions","scrollToElementDiff","_validators","globalValidators","_remoteValidationFunction","initFormValidation","thisForm","shouldUseAjax","ajaxPostUrl","location","href","useJson","_formStopLoading","submit","defaultHeaders","X-Requested-With","Content-Type","headers","method","serverCall","fetch","FormData","globalRemoteValidationFunction","selectors","inputs","querySelectorAll","exists","field","focus","fields","_handleValidation","foundAnyError","toValidateFields","scoped","_createArrayFromInvalidFieldList","isLocalInvalid","_focusElement","validation","_customValidationsForElements","validateCustomFields","thisToValidateFields","checkedFields","foundInvalidFields","prepareErrors","firstInvalidField","activeElement","_handleTooltipHideClickAfterChange","showAndOrCreateTooltip","validity","globalErrorMessageHandler","labels","getForm","invalid","labelsIndex","labelEl","_markElementInvalid","_markElementValid","HTMLFieldSetElement","thisParent","errors","inputsWithErrorClasses","elementErrorIndex","inputErrorIndex","validator","validationRef","futures","fieldsLength","iVal","_shouldNotValidateField","customError","valid","_runValidation","all","allFutures","fI","_removeElementErrors","removeAllErrors","handleAdditionalLabels","isInvalid","thisLabelGroup","additionalLabels","group","removeErrors","labelGroups","invalidFields","errorTarget","_findErrorTarget","flexFormsSavedValidity","_setupErrorMessages","msg","validationMessage","insertAdjacentHTML","flexFormsSavedValidationMessage","setCustomValidity","linkedFields","thisField","_isElementInvalidElement","_handleLabels","_formatErrorTooltip","fieldSelector","_checkIsValidRealtimeElement","clearKeyDownTimeout","KEYDOWN_RUNNING","clearTimeout","TIMEOUT_KEYDOWN","_checkIsValidBlurFocusElement","_checkIsValidInlineCheckElement","invalidEvent","handleInvalid","_formLoading","_checkIsInvalid","_handleSubmit","_formIsLoading","isStillTarget","_handleTooltipInline","dependentFields","_getDependentFields","flexcssKeepTooltips","_submitListener","scrollToElement","submitListener","submitEvent","checkValidity","_getInvalidElements","firstError","_submitFunction","isVisible","list","foundTarget","errorFunc","forms","customMsg","_Modal","_Modal2","ATTR_MAX_WIDTH","ATTR_MAX_HEIGHT","ATTR_SRC","CLS_HAS_PREV","CLS_HAS_NEXT","CLS_LOADING","ATTR_NO_THUMBNAIL","ATTR_DATA_HREF","ATTR_HREF","KEY_NEXT","KEY_PREV","LightBox","AttributeSelector","ModalAppend","thisDelegateContainer","_modalAppend","_resizeEvent","_keyboardNextEvent","_future","_nextFuture","_imageContainer","_modalContainerDiv","_contentContainer","_closerContainerDiv","_delegateContainer","_attributeSelector","_widget","_isOpen","img","_isLoading","registerPrevNextEvents","closeOnLast","onNext","onClose","getNext","getPrev","onSwitchImage","findImmediateNextTarget","onOpen","validTarget","parentIsValid","switchImage","_","reject","hasPrev","hasNext","hasPrevClass","hasNextClass","isIE","_ret","nextThumb","nextHighRes","nextSource","nextImgObject","Image","backgroundImage","_setupMaxWidthHeight","_calculateContainer","highRes","_setupPrevNextStates","thisThumbnail","thisImgHighResolution","_this4","highImageObj","_getSrc","_this5","thumbnail","imgHighResolution","imgSrc","imageObj","pageX","TouchEvent","changedTouches","rect","imgX","wrapperWidth","posX","switchImageByDirection","_runOptionalClose","fromWidget","loadedImage","nextMaxWidth","nextMaxHeight","maxWidth","maxHeight","EVENT_TOGGLE","ATTR_CLOSE_SIDEBAR","ATTR_TARGET","INIT_CLASS","OPEN_CLASS","HIDE_FACTOR","OffCanvas","NavigationId","factor","disableTouch","touchedX","navigationContainer","DARKENER_CLASS_TOGGLE","DARKENER_CLASS_INSTANT_TOGGLE","shouldNotTouch","darkenerClassToggle","darkenerClassToggleInstant","globalToggleClass","navigationContainerId","touches","clientX","mustHide","calcX","bounds","compare","webkitTransition","transform","webkitTransform","_remove","resetTransform","_removeInstant","bodyClass","darkenerClass","navigationControllerClassList","promise","thisDelegate","EVENT_TAB_OPENED","EVENT_TAB_CLOSED","ACTIVE_CLASS","ATTR_TOGGLE_LIST","Toggleable","ContainerId","refId","ref","toggleTarget","_listener","maybeToggleNode","elClassList","parentClassList","failure","targetRef","_handleLoaded","ms","timeout","_Form","_Form2","_Toggleable","_Toggleable2","_OffCanvas","_OffCanvas2","_Dropdown","_Dropdown2","_LightBox","_LightBox2","normalizeName","normalizeValue","Headers","append","consumed","bodyUsed","fileReaderReady","reader","onload","onerror","readBlobAsArrayBuffer","blob","FileReader","readAsArrayBuffer","readBlobAsText","readAsText","Body","_initBody","_bodyInit","_bodyText","support","Blob","isPrototypeOf","_bodyBlob","formData","_bodyFormData","arrayBuffer","ArrayBuffer","rejected","decode","json","normalizeMethod","upcased","Request","url","mode","referrer","bytes","shift","decodeURIComponent","xhr","head","pairs","getAllResponseHeaders","header","Response","bodyInit","status","ok","statusText","getAll","thisArg","clone","redirectStatuses","redirect","RangeError","responseURL","getResponseHeader","request","XMLHttpRequest","responseText","withCredentials","responseType","setRequestHeader","send","polyfill"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,IACA,kBAAAG,gBAAAC,IACAD,UAAAH,GACA,gBAAAC,SACAA,QAAA,QAAAD,IAEAD,EAAA,QAAAC,KACCK,KAAA,WACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAP,OAGA,IAAAC,GAAAO,EAAAD,IACAP,WACAS,GAAAF,EACAG,QAAA,EAUA,OANAL,GAAAE,GAAAI,KAAAV,EAAAD,QAAAC,IAAAD,QAAAM,GAGAL,EAAAS,QAAA,EAGAT,EAAAD,QAvBA,GAAAQ,KAqCA,OATAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,MAGAR,EAAA,KDgBM,SAASL,EAAQD,EAASM,GAE/BL,EAAOD,QAAUM,EAAoB,MAKhC,SAASL,EAAQD,GE7DvB,GAAAe,GAAAC,MACAf,GAAAD,SACAiB,OAAAF,EAAAE,OACAC,SAAAH,EAAAI,eACAC,UAAgBC,qBAChBC,QAAAP,EAAAQ,yBACAC,QAAAT,EAAAU,eACAC,SAAAX,EAAAY,iBACAC,QAAAb,EAAAc,KACAC,SAAAf,EAAAgB,oBACAC,WAAAjB,EAAAkB,sBACAC,QAAAC,UFoEM,SAASlC,EAAQD,GG/EvB,GAAAoC,GAAAnC,EAAAD,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,cAGAxwC,EAAA++B,MAAAwU,UAAA,IACC,mBAAAvzC,WAAAzE","file":"js/site.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Marklib\"] = factory();\n\telse\n\t\troot[\"Marklib\"] = factory();\n})(this, function() {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Marklib\"] = factory();\n\telse\n\t\troot[\"Marklib\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\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/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"../\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(103);\n\n\n/***/ },\n/* 1 */\n/***/ function(module, exports) {\n\n\tvar $Object = Object;\n\tmodule.exports = {\n\t create: $Object.create,\n\t getProto: $Object.getPrototypeOf,\n\t isEnum: {}.propertyIsEnumerable,\n\t getDesc: $Object.getOwnPropertyDescriptor,\n\t setDesc: $Object.defineProperty,\n\t setDescs: $Object.defineProperties,\n\t getKeys: $Object.keys,\n\t getNames: $Object.getOwnPropertyNames,\n\t getSymbols: $Object.getOwnPropertySymbols,\n\t each: [].forEach\n\t};\n\n/***/ },\n/* 2 */\n/***/ function(module, exports) {\n\n\tvar core = module.exports = {version: '1.2.6'};\n\tif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar store = __webpack_require__(44)('wks')\n\t , uid = __webpack_require__(32)\n\t , Symbol = __webpack_require__(9).Symbol;\n\tmodule.exports = function(name){\n\t return store[name] || (store[name] =\n\t Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n\t};\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar global = __webpack_require__(9)\n\t , core = __webpack_require__(2)\n\t , ctx = __webpack_require__(14)\n\t , PROTOTYPE = 'prototype';\n\t\n\tvar $export = function(type, name, source){\n\t var IS_FORCED = type & $export.F\n\t , IS_GLOBAL = type & $export.G\n\t , IS_STATIC = type & $export.S\n\t , IS_PROTO = type & $export.P\n\t , IS_BIND = type & $export.B\n\t , IS_WRAP = type & $export.W\n\t , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n\t , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n\t , key, own, out;\n\t if(IS_GLOBAL)source = name;\n\t for(key in source){\n\t // contains in native\n\t own = !IS_FORCED && target && key in target;\n\t if(own && key in exports)continue;\n\t // export native or passed\n\t out = own ? target[key] : source[key];\n\t // prevent global pollution for namespaces\n\t exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n\t // bind timers to global for call from export context\n\t : IS_BIND && own ? ctx(out, global)\n\t // wrap global constructors for prevent change them in library\n\t : IS_WRAP && target[key] == out ? (function(C){\n\t var F = function(param){\n\t return this instanceof C ? new C(param) : C(param);\n\t };\n\t F[PROTOTYPE] = C[PROTOTYPE];\n\t return F;\n\t // make static versions for prototype methods\n\t })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n\t if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n\t }\n\t};\n\t// type bitmap\n\t$export.F = 1; // forced\n\t$export.G = 2; // global\n\t$export.S = 4; // static\n\t$export.P = 8; // proto\n\t$export.B = 16; // bind\n\t$export.W = 32; // wrap\n\tmodule.exports = $export;\n\n/***/ },\n/* 5 */\n/***/ function(module, exports) {\n\n\tmodule.exports = {};\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar isObject = __webpack_require__(17);\n\tmodule.exports = function(it){\n\t if(!isObject(it))throw TypeError(it + ' is not an object!');\n\t return it;\n\t};\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// Thank's IE8 for his funny defineProperty\n\tmodule.exports = !__webpack_require__(8)(function(){\n\t return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n\t});\n\n/***/ },\n/* 8 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(exec){\n\t try {\n\t return !!exec();\n\t } catch(e){\n\t return true;\n\t }\n\t};\n\n/***/ },\n/* 9 */\n/***/ function(module, exports) {\n\n\t// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\n\tvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n\t ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\n\tif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n/***/ },\n/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar $ = __webpack_require__(1)\n\t , createDesc = __webpack_require__(30);\n\tmodule.exports = __webpack_require__(7) ? function(object, key, value){\n\t return $.setDesc(object, key, createDesc(1, value));\n\t} : function(object, key, value){\n\t object[key] = value;\n\t return object;\n\t};\n\n/***/ },\n/* 11 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t\n\tvar _Util = __webpack_require__(22);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t// we attach global settings to global once because settings might be shared a lot of times trough the application\n\t// Maybe find a better way to handle that scenario\n\tif (!global.FLEXCSS_GLOBAL_SETTINGS) {\n\t (function () {\n\t global.FLEXCSS_GLOBAL_SETTINGS = {\n\t // defined breakpoint for small devices < n\n\t smallBreakpoint: 768,\n\t // nodes that should be updated when no scrollbar is expected\n\t scrollbarUpdateNodes: global.document.body !== null ? [global.document.body] : [],\n\t // additional Delay until darkener is fully hidden\n\t darkenerFadeDelay: 100,\n\t // class that is added if canvas has been toggled\n\t canvasToggledClass: 'toggled-canvas'\n\t };\n\t\n\t global.FLEXCSS_CONST_IS_IOS = null;\n\t\n\t global.FLEXCSS_CONST_IS_TOUCH = null;\n\t\n\t global.FLEXCSS_CONST_IS_IE = null;\n\t\n\t global.FLEXCSS_CONST_TAB_EVENT = 'click';\n\t\n\t global.FLEXCSS_IS_SMALL_SCREEN = false;\n\t\n\t var init = function init() {\n\t // Measure scrollbar width\n\t global.FLEXCSS_CONST_SCROLLBAR_WIDTH = _Util2.default.getScrollBarWidth();\n\t // detect right transition end event\n\t global.FLEXCSS_CONST_TRANSITION_EVENT = _Util2.default.whichTransitionEndEvent();\n\t };\n\t\n\t if (global.document.readyState !== 'loading') {\n\t init();\n\t } else {\n\t // it's possible that global.document.body is not available if the document is not\n\t // loaded completely\n\t document.addEventListener('DOMContentLoaded', function () {\n\t init();\n\t });\n\t }\n\t })();\n\t}\n\t\n\t/**\n\t * Utility class that setups global settings\n\t */\n\t\n\tvar Settings = function () {\n\t function Settings() {\n\t _classCallCheck(this, Settings);\n\t }\n\t\n\t _createClass(Settings, null, [{\n\t key: 'setup',\n\t\n\t\n\t /**\n\t * Setup global settings, overwrite default values\n\t * @param {Object} settings\n\t */\n\t value: function setup(settings) {\n\t Object.assign(global.FLEXCSS_GLOBAL_SETTINGS, settings);\n\t }\n\t\n\t /**\n\t * Access to global settings\n\t * @returns {Object}\n\t */\n\t\n\t }, {\n\t key: 'get',\n\t value: function get() {\n\t return global.FLEXCSS_GLOBAL_SETTINGS;\n\t }\n\t\n\t /**\n\t * Detects a IOS Device, caches subsequent calls\n\t * @returns {boolean}\n\t */\n\t\n\t }, {\n\t key: 'isIosDevice',\n\t value: function isIosDevice() {\n\t if (!global.FLEXCSS_CONST_IS_IOS) {\n\t global.FLEXCSS_CONST_IS_IOS = global.navigator.userAgent.match(/(iPad|iPhone|iPod)/i);\n\t }\n\t\n\t return global.FLEXCSS_CONST_IS_IOS;\n\t }\n\t\n\t /**\n\t * @returns {boolean}\n\t */\n\t\n\t }, {\n\t key: 'isSmallScreen',\n\t value: function isSmallScreen() {\n\t return window.innerWidth < Settings.get().smallBreakpoint;\n\t }\n\t\n\t /**\n\t * Detects a touch device, caches subsequent calls\n\t * @returns {boolean}\n\t */\n\t\n\t }, {\n\t key: 'isTouchDevice',\n\t value: function isTouchDevice() {\n\t if (!global.FLEXCSS_CONST_IS_TOUCH) {\n\t global.FLEXCSS_CONST_IS_TOUCH = 'ontouchstart' in window || !!global.navigator.msMaxTouchPoints;\n\t }\n\t return global.FLEXCSS_CONST_IS_TOUCH;\n\t }\n\t\n\t /**\n\t * Checks if current browser is Internet Explorer\n\t * @returns {boolean|*}\n\t */\n\t\n\t }, {\n\t key: 'isIE',\n\t value: function isIE() {\n\t if (!global.FLEXCSS_CONST_IS_IE) {\n\t global.FLEXCSS_CONST_IS_IE = \"ActiveXObject\" in window;\n\t }\n\t return global.FLEXCSS_CONST_IS_IE;\n\t }\n\t\n\t /**\n\t * @returns {String}\n\t */\n\t\n\t }, {\n\t key: 'getTransitionEvent',\n\t value: function getTransitionEvent() {\n\t return global.FLEXCSS_CONST_TRANSITION_EVENT;\n\t }\n\t\n\t /**\n\t * @returns {int}\n\t */\n\t\n\t }, {\n\t key: 'getScrollbarWidth',\n\t value: function getScrollbarWidth() {\n\t return global.FLEXCSS_CONST_SCROLLBAR_WIDTH;\n\t }\n\t\n\t /**\n\t * @returns {String}\n\t */\n\t\n\t }, {\n\t key: 'getTabEvent',\n\t value: function getTabEvent() {\n\t return global.FLEXCSS_CONST_TAB_EVENT;\n\t }\n\t }]);\n\t\n\t return Settings;\n\t}();\n\t\n\texports.default = Settings;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 12 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\texports.default = function (instance, Constructor) {\n\t if (!(instance instanceof Constructor)) {\n\t throw new TypeError(\"Cannot call a class as a function\");\n\t }\n\t};\n\n/***/ },\n/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _defineProperty = __webpack_require__(56);\n\t\n\tvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = function () {\n\t function defineProperties(target, props) {\n\t for (var i = 0; i < props.length; i++) {\n\t var descriptor = props[i];\n\t descriptor.enumerable = descriptor.enumerable || false;\n\t descriptor.configurable = true;\n\t if (\"value\" in descriptor) descriptor.writable = true;\n\t (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n\t }\n\t }\n\t\n\t return function (Constructor, protoProps, staticProps) {\n\t if (protoProps) defineProperties(Constructor.prototype, protoProps);\n\t if (staticProps) defineProperties(Constructor, staticProps);\n\t return Constructor;\n\t };\n\t}();\n\n/***/ },\n/* 14 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// optional / simple context binding\n\tvar aFunction = __webpack_require__(72);\n\tmodule.exports = function(fn, that, length){\n\t aFunction(fn);\n\t if(that === undefined)return fn;\n\t switch(length){\n\t case 1: return function(a){\n\t return fn.call(that, a);\n\t };\n\t case 2: return function(a, b){\n\t return fn.call(that, a, b);\n\t };\n\t case 3: return function(a, b, c){\n\t return fn.call(that, a, b, c);\n\t };\n\t }\n\t return function(/* ...args */){\n\t return fn.apply(that, arguments);\n\t };\n\t};\n\n/***/ },\n/* 15 */\n/***/ function(module, exports) {\n\n\t// 7.2.1 RequireObjectCoercible(argument)\n\tmodule.exports = function(it){\n\t if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n\t return it;\n\t};\n\n/***/ },\n/* 16 */\n/***/ function(module, exports) {\n\n\tvar hasOwnProperty = {}.hasOwnProperty;\n\tmodule.exports = function(it, key){\n\t return hasOwnProperty.call(it, key);\n\t};\n\n/***/ },\n/* 17 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(it){\n\t return typeof it === 'object' ? it !== null : typeof it === 'function';\n\t};\n\n/***/ },\n/* 18 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar def = __webpack_require__(1).setDesc\n\t , has = __webpack_require__(16)\n\t , TAG = __webpack_require__(3)('toStringTag');\n\t\n\tmodule.exports = function(it, tag, stat){\n\t if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});\n\t};\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// to indexed object, toObject with fallback for non-array-like ES3 strings\n\tvar IObject = __webpack_require__(40)\n\t , defined = __webpack_require__(15);\n\tmodule.exports = function(it){\n\t return IObject(defined(it));\n\t};\n\n/***/ },\n/* 20 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar $at = __webpack_require__(88)(true);\n\t\n\t// 21.1.3.27 String.prototype[@@iterator]()\n\t__webpack_require__(29)(String, 'String', function(iterated){\n\t this._t = String(iterated); // target\n\t this._i = 0; // next index\n\t// 21.1.5.2.1 %StringIteratorPrototype%.next()\n\t}, function(){\n\t var O = this._t\n\t , index = this._i\n\t , point;\n\t if(index >= O.length)return {value: undefined, done: true};\n\t point = $at(O, index);\n\t this._i += point.length;\n\t return {value: point, done: false};\n\t});\n\n/***/ },\n/* 21 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(92);\n\tvar Iterators = __webpack_require__(5);\n\tIterators.NodeList = Iterators.HTMLCollection = Iterators.Array;\n\n/***/ },\n/* 22 */\n/***/ function(module, exports) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t/*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\tvar PFX = [\"webkit\", \"moz\", \"MS\", \"o\", \"\"];\n\t\n\tvar COL_LEFT_CLASS = 'is-collision-left';\n\t\n\tvar COL_RIGHT_CLASS = 'is-collision-right';\n\t\n\tvar COL_BOTTOM_CLASS = 'is-collision-bottom';\n\t\n\t/**\n\t * Provides shared DOM-Utility functions\n\t */\n\t\n\tvar Util = function () {\n\t function Util() {\n\t _classCallCheck(this, Util);\n\t }\n\t\n\t _createClass(Util, null, [{\n\t key: \"prefixedAnimateEvent\",\n\t\n\t\n\t /**\n\t * Will register the right animation event based on browser\n\t * @param element\n\t * @param type\n\t * @param callback\n\t */\n\t value: function prefixedAnimateEvent(element, type, callback) {\n\t var thisFunction = function thisFunction(e) {\n\t callback.apply(element, [e, thisFunction]);\n\t };\n\t\n\t for (var p = 0; p < PFX.length; p++) {\n\t var thisType = type;\n\t if (!PFX[p]) {\n\t thisType = type.toLowerCase();\n\t }\n\t var name = PFX[p] + thisType;\n\t element.addEventListener(name, thisFunction, true);\n\t }\n\t }\n\t\n\t /**\n\t * Get correct transitionend event\n\t * @returns {String}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: \"whichTransitionEndEvent\",\n\t value: function whichTransitionEndEvent() {\n\t var t = undefined;\n\t var el = document.createElement('fake');\n\t\n\t var transitions = {\n\t transition: 'transitionend',\n\t OTransition: 'oTransitionEnd',\n\t MozTransition: 'transitionend',\n\t WebkitTransition: 'webkitTransitionEnd'\n\t };\n\t\n\t for (t in transitions) {\n\t if (el.style[t] !== undefined) {\n\t return transitions[t];\n\t }\n\t }\n\t }\n\t\n\t /**\n\t * Check if target is part of parent node\n\t * @param target\n\t * @param parent\n\t * @returns {boolean}\n\t */\n\t\n\t }, {\n\t key: \"isPartOfNode\",\n\t value: function isPartOfNode(target, parent) {\n\t if (!target || !parent) {\n\t return false;\n\t }\n\t var now = target;\n\t while (now !== parent && now !== null) {\n\t if (now === parent) {\n\t break;\n\t }\n\t now = now.parentNode;\n\t }\n\t return now !== null;\n\t }\n\t\n\t /**\n\t * Finds the closest element including itself matching a callback\n\t * @param {Node} el\n\t * @param {Function} callback\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: \"closestCallback\",\n\t value: function closestCallback(el, callback) {\n\t var element = el;\n\t while (element !== null) {\n\t if (callback(element)) {\n\t return element;\n\t }\n\t element = element.parentNode;\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Walks the tree until func returns true for given argument\n\t * @param target\n\t * @param func\n\t * @returns {boolean|HTMLElement}\n\t */\n\t\n\t }, {\n\t key: \"parentsUntil\",\n\t value: function parentsUntil(target, func) {\n\t if (!target) {\n\t return false;\n\t }\n\t var now = target;\n\t while (!func(now) && now !== null) {\n\t now = now.parentNode;\n\t }\n\t\n\t return now;\n\t }\n\t\n\t /**\n\t * Generates a unique id\n\t * @return {String}\n\t */\n\t\n\t }, {\n\t key: \"guid\",\n\t value: function guid() {\n\t function s4() {\n\t return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);\n\t }\n\t\n\t return s4() + s4() + \"-\" + s4() + \"-\" + s4() + \"-\" + s4() + \"-\" + (s4() + s4() + s4());\n\t }\n\t\n\t /**\n\t * Detects scrollbar width\n\t * @see http://stackoverflow.com/questions/986937/how-can-i-get-the-browsers-scrollbar-sizes\n\t * @returns {number}\n\t */\n\t\n\t }, {\n\t key: \"getScrollBarWidth\",\n\t value: function getScrollBarWidth() {\n\t var doc = global.document;\n\t var inner = doc.createElement('p');\n\t\n\t inner.style.width = \"100%\";\n\t inner.style.height = \"200px\";\n\t\n\t var outer = doc.createElement('div');\n\t outer.style.position = \"absolute\";\n\t outer.style.top = \"0px\";\n\t outer.style.left = \"0px\";\n\t outer.style.visibility = \"hidden\";\n\t outer.style.width = \"200px\";\n\t outer.style.height = \"150px\";\n\t outer.style.overflow = \"hidden\";\n\t outer.appendChild(inner);\n\t\n\t doc.body.appendChild(outer);\n\t var w1 = inner.offsetWidth;\n\t outer.style.overflow = 'scroll';\n\t var w2 = inner.offsetWidth;\n\t if (w1 === w2) {\n\t w2 = outer.clientWidth;\n\t }\n\t doc.body.removeChild(outer);\n\t\n\t return w1 - w2;\n\t }\n\t\n\t /**\n\t * Run an event once\n\t * @param {String} ev\n\t * @param {HTMLElement|HTMLDocument} target\n\t * @param {Function} func\n\t * @param {boolean} [capture]\n\t * @return Function created listener\n\t */\n\t\n\t }, {\n\t key: \"addEventOnce\",\n\t value: function addEventOnce(ev, target, func, capture) {\n\t var thisFunction = function thisFunction(event) {\n\t func(event, func);\n\t target.removeEventListener(ev, thisFunction, capture);\n\t };\n\t target.addEventListener(ev, thisFunction, capture);\n\t return thisFunction;\n\t }\n\t\n\t /**\n\t * Checks if an element is visible\n\t * @param {HTMLElement} element\n\t * @returns bool\n\t */\n\t\n\t }, {\n\t key: \"isVisible\",\n\t value: function isVisible(element) {\n\t return element.offsetWidth > 0 && element.offsetHeight > 0;\n\t }\n\t\n\t /**\n\t * Creates a camelCaseRepresentation of a dashed string\n\t * @param {String} str\n\t * @returns String\n\t */\n\t\n\t }, {\n\t key: \"dashToCamelCase\",\n\t value: function dashToCamelCase(str) {\n\t return str.replace(/-([a-z])/g, function (g) {\n\t return g[1].toUpperCase();\n\t });\n\t }\n\t\n\t /**\n\t * Creates a copy of `input`\n\t * @param {*} input\n\t * @return *\n\t */\n\t\n\t }, {\n\t key: \"copy\",\n\t value: function copy(input) {\n\t return JSON.parse(JSON.stringify(input));\n\t }\n\t\n\t /**\n\t * Reads options from element (data attributes) and applies to base\n\t * @param {HTMLElement} element\n\t * @param {Object} base\n\t * @return {Object}\n\t */\n\t\n\t }, {\n\t key: \"applyOptionsFromElement\",\n\t value: function applyOptionsFromElement(element, base) {\n\t if (!element) {\n\t return base;\n\t }\n\t var attrs = element.attributes;\n\t for (var i = 0; i < attrs.length; i++) {\n\t var attr = attrs[i];\n\t if (attr) {\n\t var s = Util.dashToCamelCase(attr.nodeName.replace('data-', ''));\n\t var val = attr.nodeValue;\n\t if (base.hasOwnProperty(s)) {\n\t // skip functions\n\t if (typeof base[s] === 'function') {\n\t continue;\n\t }\n\t if (typeof base[s] === 'boolean') {\n\t base[s] = parseInt(val || 1, 10) === 1;\n\t } else {\n\t base[s] = val;\n\t }\n\t }\n\t }\n\t }\n\t return base;\n\t }\n\t\n\t /**\n\t * Will position an element directly at given target\n\t * Is aware of a given collision container to detect edges\n\t * Will put elementToPosition either to left, center or right edge (prefer right)\n\t * and either to bottom or top (prefers bottom)\n\t *\n\t * You may overwrite preferred positioned with `centerHorizontal` and `positionTop`\n\t *\n\t * @param {HTMLElement|ClientRect} target the target container to align to\n\t * @param {HTMLElement} elementToPosition the element to position\n\t * @param {HTMLElement} collisionContainer the outer container to prevent collisions\n\t * @param {bool} [centerHorizontal] set true to center element, otherwise it's put on the right border by default\n\t * @param {bool} [positionTop] flip top, by default element is positioned to the bottom.\n\t * @returns {HTMLElement}\n\t */\n\t\n\t }, {\n\t key: \"setupPositionNearby\",\n\t value: function setupPositionNearby(target, elementToPosition, collisionContainer, centerHorizontal, positionTop) {\n\t // determine relative offsets\n\t var amountTop = 0;\n\t var amountLeft = 0;\n\t Util.parentsUntil(target.parentNode, function (el) {\n\t if (!(el instanceof HTMLElement)) {\n\t return false;\n\t }\n\t var style = window.getComputedStyle(el);\n\t if (Util.isPartOfNode(elementToPosition, el)) {\n\t if (style && style.position === 'relative') {\n\t amountTop += el.offsetTop || 0;\n\t amountLeft += el.offsetLeft || 0;\n\t }\n\t return false;\n\t }\n\t return true;\n\t });\n\t\n\t var targetPosition = target instanceof HTMLElement ? target.getBoundingClientRect() : target;\n\t var elementRect = elementToPosition.getBoundingClientRect();\n\t var colRect = collisionContainer.getBoundingClientRect();\n\t var targetTop = targetPosition.top - amountTop;\n\t var targetRight = targetPosition.right;\n\t var isCollisionTop = targetTop - elementRect.height <= 0;\n\t var isCollisionBottom = window.innerHeight < targetTop + amountTop + targetPosition.height + elementRect.height;\n\t var isCollisionLeft = targetRight < elementRect.width;\n\t var targetLeft = targetPosition.left;\n\t var isCollisionRight = targetLeft + elementRect.width > colRect.width;\n\t var classList = elementToPosition.classList;\n\t\n\t classList.remove(COL_RIGHT_CLASS);\n\t classList.remove(COL_LEFT_CLASS);\n\t classList.remove(COL_BOTTOM_CLASS);\n\t\n\t var calcTop = undefined;\n\t var calcLeft = undefined;\n\t if (isCollisionLeft && !isCollisionRight) {\n\t // put element to left if collision with left\n\t calcLeft = targetPosition.left - colRect.left - amountLeft + \"px\";\n\t classList.add(COL_LEFT_CLASS);\n\t } else {\n\t // maybe center if no collision with either side\n\t var rightPosition = targetRight - elementRect.width - colRect.left - amountLeft + \"px\";\n\t var leftCentered = (targetLeft + targetPosition.width / 2 - elementRect.width / 2 || 0) - colRect.left;\n\t var collisionCentered = leftCentered + elementRect.width > colRect.width;\n\t if (centerHorizontal && !collisionCentered) {\n\t calcLeft = leftCentered + \"px\";\n\t } else {\n\t classList.add(COL_RIGHT_CLASS);\n\t calcLeft = rightPosition;\n\t }\n\t }\n\t\n\t if (isCollisionBottom || positionTop && !isCollisionTop) {\n\t // Put Element on top if collision\n\t calcTop = targetTop - elementRect.height - colRect.top + \"px\";\n\t classList.add(COL_BOTTOM_CLASS);\n\t } else {\n\t calcTop = targetTop + targetPosition.height - colRect.top + \"px\";\n\t }\n\t\n\t elementToPosition.style.cssText = \"top:\" + calcTop + \";left:\" + calcLeft + \";\";\n\t\n\t return elementToPosition;\n\t }\n\t\n\t /**\n\t * Brings a given element into viewport\n\t * @param {HTMLElement} el\n\t * @param {int|function}[optionalOffset]\n\t */\n\t\n\t }, {\n\t key: \"scrollToElement\",\n\t value: function scrollToElement(el, optionalOffset) {\n\t el.scrollIntoView();\n\t var thisOffset = optionalOffset;\n\t // optionally use a additional scrollDif\n\t if (thisOffset) {\n\t if (typeof thisOffset === 'function') {\n\t thisOffset = optionalOffset();\n\t }\n\t if (thisOffset > 0) {\n\t var scrolledY = window.pageYOffset;\n\t if (scrolledY) {\n\t window.scroll(0, scrolledY - thisOffset);\n\t }\n\t }\n\t }\n\t }\n\t }]);\n\t\n\t return Util;\n\t}();\n\t\n\texports.default = Util;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 23 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_WRAPPED_NODE = exports.ATTR_DATA_ORIGINAL_OFFSET_START = undefined;\n\t\n\tvar _getPrototypeOf = __webpack_require__(37);\n\t\n\tvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\t\n\tvar _classCallCheck2 = __webpack_require__(12);\n\t\n\tvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\t\n\tvar _createClass2 = __webpack_require__(13);\n\t\n\tvar _createClass3 = _interopRequireDefault(_createClass2);\n\t\n\tvar _possibleConstructorReturn2 = __webpack_require__(39);\n\t\n\tvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\t\n\tvar _inherits2 = __webpack_require__(38);\n\t\n\tvar _inherits3 = _interopRequireDefault(_inherits2);\n\t\n\tvar _RenderResult = __webpack_require__(34);\n\t\n\tvar _RenderResult2 = _interopRequireDefault(_RenderResult);\n\t\n\tvar _RenderingEvents2 = __webpack_require__(35);\n\t\n\tvar _RenderingEvents3 = _interopRequireDefault(_RenderingEvents2);\n\t\n\tvar _Util = __webpack_require__(24);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar TAG_NAME = 'x-marker';\n\t/**\n\t * @type {string}\n\t */\n\t/* global Node */\n\t\n\tvar ATTR_DATA_ORIGINAL_OFFSET_START = exports.ATTR_DATA_ORIGINAL_OFFSET_START = 'data-original-offset-start';\n\t/**\n\t * @type {string}\n\t */\n\tvar DATA_ORIGINAL_TEXT_NODE_INDEX = 'original-text-node-index';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_START_END = 'data-is-start-end';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_IS_HIGHLIGHT_NODE = 'data-is-highlight-node';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_ID = 'data-selection-id';\n\t\n\t/**\n\t * @see https://developer.mozilla.org/de/docs/Web/API/Node/compareDocumentPosition\n\t * @type {number}\n\t */\n\tvar DOCUMENT_POSITION_CONTAINED_BY = 16;\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_WRAPPED_NODE = exports.EVENT_WRAPPED_NODE = 'wrapped-node';\n\t\n\t/**\n\t * Manages a single Render\n\t */\n\t\n\tvar Rendering = function (_RenderingEvents) {\n\t (0, _inherits3.default)(Rendering, _RenderingEvents);\n\t\n\t\n\t /**\n\t * @param {Document} document\n\t * @param {object} options\n\t * @param {Node} context\n\t */\n\t\n\t function Rendering(document, options, context) {\n\t (0, _classCallCheck3.default)(this, Rendering);\n\t\n\t\n\t /**\n\t * ID of rendering, will be set on each element that is part of it\n\t * @type {String}\n\t */\n\t\n\t var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(Rendering).call(this, options, document));\n\t\n\t _this.id = _Util2.default.guid();\n\t\n\t /**\n\t * StartContainer\n\t * @type {Node}\n\t */\n\t _this.startContainer = null;\n\t\n\t /**\n\t * EndContainer\n\t * @type {Node}\n\t */\n\t _this.endContainer = null;\n\t\n\t /**\n\t * @type {Node}\n\t */\n\t _this.context = context || _this.document;\n\t\n\t /**\n\t * Flag if this instance has been rendered\n\t * @type {RenderResult}\n\t * @private\n\t */\n\t _this._renderResult = null;\n\t return _this;\n\t }\n\t\n\t /**\n\t * @returns {string} id of this rendering\n\t */\n\t\n\t\n\t (0, _createClass3.default)(Rendering, [{\n\t key: 'getId',\n\t value: function getId() {\n\t return this.id;\n\t }\n\t\n\t /**\n\t * @param {string} id\n\t * @returns {Rendering}\n\t */\n\t\n\t }, {\n\t key: 'setId',\n\t value: function setId(id) {\n\t var _this2 = this;\n\t\n\t this.id = id;\n\t\n\t if (this._renderResult) {\n\t this.wrapperNodes.forEach(function (node) {\n\t return node.setAttribute(ATTR_DATA_ID, _this2.id);\n\t });\n\t }\n\t\n\t return this;\n\t }\n\t\n\t /**\n\t * Creates a Template used as a wrapper and an indication that this is a highlight node\n\t * @param {Boolean} [omitHighlight]\n\t * @returns {Node}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_createWrapTemplate',\n\t value: function _createWrapTemplate(omitHighlight) {\n\t var el = this.document.createElement(TAG_NAME);\n\t var vTrue = \"true\";\n\t\n\t if (!omitHighlight) {\n\t el.className = this.options.className.join(' ');\n\t // save this marker instance to given node\n\t Rendering.setMarklibInstance(el, this);\n\t // keep track of highlight nodes\n\t this.wrapperNodes.push(el);\n\t el.setAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE, vTrue);\n\t el.setAttribute(ATTR_DATA_ID, this.getId());\n\t }\n\t el.setAttribute(_Util.DATA_IS_SELECTION, vTrue);\n\t\n\t return el;\n\t }\n\t\n\t /**\n\t * Creates a Template to use as start and end marks\n\t * @param {String} text\n\t * @returns {Node}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_createStartEndWrapTemplate',\n\t value: function _createStartEndWrapTemplate(text) {\n\t var el = this._createWrapTemplate();\n\t el.setAttribute(ATTR_DATA_START_END, 'true');\n\t el.textContent = text;\n\t return el;\n\t }\n\t\n\t /**\n\t * Creates Start or End Container Element\n\t * @param initialNode\n\t * @param text\n\t * @param offset\n\t * @param index\n\t * @returns {Node}\n\t */\n\t\n\t }, {\n\t key: '_createStartOrEndContainer',\n\t value: function _createStartOrEndContainer(initialNode, text, offset, index) {\n\t var wrapper = this._createStartEndWrapTemplate(text);\n\t wrapper.setAttribute(_Util.ATTR_DATA_ORIGINAL_INDEX, _Util2.default.getIndexParentIfHas(initialNode, index));\n\t wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n\t wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n\t\n\t return wrapper;\n\t }\n\t\n\t /**\n\t * Wraps given element\n\t * @param {Node|HTMLElement} el\n\t * @param [optionalLength]\n\t * @param [optionalIndex]\n\t * @param [optionalIsSameNode]\n\t * @param {Boolean} [omitHighlight] set to true to prevent node to be a highlight node\n\t * @returns {Node}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_createWrap',\n\t value: function _createWrap(el, optionalLength, optionalIndex, optionalIsSameNode, omitHighlight) {\n\t var originalIndex = optionalIndex >= 0 ? optionalIndex : _Util2.default.calcIndex(el);\n\t var wrapper = this._createWrapTemplate(omitHighlight);\n\t wrapper.setAttribute(_Util.ATTR_DATA_ORIGINAL_INDEX, _Util2.default.getIndexParentIfHas(el, originalIndex));\n\t var offsetLength = optionalLength >= 0 ? optionalLength : _Util2.default.getOffsetParentIfHas(el);\n\t wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offsetLength);\n\t\n\t // Save a reference to original text node in wrapper\n\t wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, originalIndex);\n\t\n\t if (optionalIsSameNode) {\n\t wrapper.setAttribute(ATTR_DATA_START_END, ATTR_DATA_START_END);\n\t }\n\t var wrap = _Util2.default.wrap(el, wrapper);\n\t\n\t this.emit(EVENT_WRAPPED_NODE, el, wrap);\n\t\n\t return wrap;\n\t }\n\t\n\t /**\n\t * Create split container element\n\t * @param originalElement {Node} original text node element that is created a wrapper for\n\t * @param index\n\t * @param offset\n\t * @returns {Node}\n\t */\n\t\n\t }, {\n\t key: '_createSplitContainer',\n\t value: function _createSplitContainer(originalElement, index, offset) {\n\t var wrapper = this.document.createElement(TAG_NAME);\n\t wrapper.setAttribute(_Util.DATA_IS_SELECTION, 'true');\n\t wrapper.setAttribute(_Util.ATTR_DATA_ORIGINAL_INDEX, _Util2.default.getIndexParentIfHas(originalElement, index));\n\t wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n\t wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n\t return wrapper;\n\t }\n\t\n\t /**\n\t * Walks the tree\n\t * @param start\n\t * @param endContainer\n\t * @param nextParent\n\t */\n\t\n\t }, {\n\t key: 'walk',\n\t value: function walk(start, endContainer, nextParent) {\n\t var nextParentNode = start;\n\t while (nextParentNode && nextParentNode !== nextParent.parentNode) {\n\t var currentParentNode = nextParentNode;\n\t nextParentNode = nextParentNode.parentNode;\n\t if (this.wrapSiblings(currentParentNode.nextSibling, endContainer)) {\n\t break;\n\t }\n\t }\n\t }\n\t\n\t /**\n\t * Will Wrap all textNode siblings of a container (start) inside a defined Element (like a span)\n\t * If an Element node is found, it will wrap all children of this node inside a element as well.\n\t * It will stop if endContainer is found as a node\n\t *\n\t * @param {Node} start\n\t * @param {Node} endContainer\n\t * @returns {boolean} (true if endContainer was found)\n\t */\n\t\n\t }, {\n\t key: 'wrapSiblings',\n\t value: function wrapSiblings(start, endContainer) {\n\t var _this3 = this;\n\t\n\t var next = start;\n\t var found = false;\n\t\n\t // Capsule some logic\n\t var wrap = function wrap(n) {\n\t var instance = Rendering.getMarklibInstance(n.parentNode);\n\t if (n.parentNode.hasAttribute(ATTR_DATA_START_END) && n.parentNode.hasAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE) && instance === _this3) {\n\t _this3._createWrap(n, undefined, undefined, undefined, true);\n\t } else {\n\t _this3._createWrap(n);\n\t }\n\t };\n\t\n\t // helper functions\n\t\n\t var wrapIf = function wrapIf(n) {\n\t if (!_Util2.default.nodeIsEmpty(n)) {\n\t wrap(n);\n\t }\n\t };\n\t\n\t var walkIfContained = function walkIfContained(e) {\n\t if (e === endContainer) {\n\t return false;\n\t }\n\t if (Node.TEXT_NODE === e.nodeType) {\n\t wrapIf(e);\n\t }\n\t return true;\n\t };\n\t\n\t var walkIfNotContained = function walkIfNotContained(el) {\n\t wrapIf(el);\n\t };\n\t\n\t while (next !== null && next !== endContainer) {\n\t var currentNext = next;\n\t next = next.nextSibling;\n\t // Found a text node, directly wrap inside a span\n\t if (Node.TEXT_NODE === currentNext.nodeType) {\n\t wrapIf(currentNext);\n\t } else {\n\t if (currentNext.compareDocumentPosition(endContainer) & DOCUMENT_POSITION_CONTAINED_BY) {\n\t _Util2.default.walkDom(currentNext, walkIfContained);\n\t found = true;\n\t } else {\n\t _Util2.default.walkTextNodes(currentNext, walkIfNotContained);\n\t }\n\t if (found) {\n\t return true;\n\t }\n\t }\n\t }\n\t return found;\n\t }\n\t\n\t /**\n\t * Marks text of the same node\n\t * @param {Node} textNode\n\t * @param {int} startIndex\n\t * @param {int} endIndex\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_markTextSameNode',\n\t value: function _markTextSameNode(textNode, startIndex, endIndex) {\n\t var initialText = textNode.nodeValue;\n\t var initialIndex = _Util2.default.calcIndex(textNode);\n\t\n\t if (!initialText) {\n\t return false;\n\t }\n\t // If there is an unmarked part in the beginning of the text node,\n\t // cut off that part and put it into it's own textnode.\n\t if (startIndex > 0) {\n\t var textBefore = initialText.slice(0, startIndex);\n\t textNode.parentNode.insertBefore(this.document.createTextNode(textBefore), textNode);\n\t // wrap cutted text node:\n\t _Util2.default.wrap(textNode.previousSibling, this._createSplitContainer(textNode, initialIndex, _Util2.default.getOffsetParentIfHas(textNode)));\n\t }\n\t // If there is an unmarked part at the end of the text node,\n\t // cut off that part and put it into it's own textnode.\n\t if (endIndex < initialText.length) {\n\t var textAfter = initialText.slice(endIndex, initialText.length);\n\t textNode.parentNode.insertBefore(this.document.createTextNode(textAfter), textNode.nextSibling);\n\t _Util2.default.wrap(textNode.nextSibling, this._createSplitContainer(textNode, initialIndex, _Util2.default.getOffsetParentIfHas(textNode) + endIndex));\n\t }\n\t\n\t // Cutoff the unmarked parts and wrap the textnode into a span.\n\t textNode.nodeValue = initialText.slice(startIndex, endIndex);\n\t this.startContainer = this._createWrap(textNode, _Util2.default.getOffsetParentIfHas(textNode) + startIndex, initialIndex, true).parentNode;\n\t this.endContainer = this.startContainer;\n\t return this.startContainer;\n\t }\n\t\n\t /**\n\t * Marks text of end and start containers if start and end nodes are different\n\t * Important: There might be no end container!\n\t *\n\t * @param {Node} startContainer\n\t * @param {Node} endContainer\n\t * @param {int} startOffset\n\t * @param {int} endOffset\n\t * @returns {{startT: (Node), endT: (Node)}}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_markTextDifferentNode',\n\t value: function _markTextDifferentNode(startContainer, endContainer, startOffset, endOffset) {\n\t // Get current for both start and end:\n\t var startContainerIndex = _Util2.default.calcIndex(startContainer);\n\t var endContainerIndex = _Util2.default.calcIndex(endContainer);\n\t\n\t // Split text\n\t var fullTextStartValue = startContainer.nodeValue;\n\t // init with startContainer because we may have not a text node here\n\t var startT = startContainer;\n\t\n\t if (undefined !== fullTextStartValue) {\n\t var partTextStartValue = fullTextStartValue.slice(startOffset, fullTextStartValue.length);\n\t // Set new text to start node\n\t startContainer.nodeValue = fullTextStartValue.slice(0, startOffset);\n\t\n\t var offsetStart = _Util2.default.getOffsetParentIfHas(startContainer);\n\t // Create a new node for splitted text, offset is the length of new startContainer.nodeValue:\n\t startT = this._createStartOrEndContainer(startContainer, partTextStartValue, offsetStart === startOffset ? offsetStart : offsetStart + startOffset, startContainerIndex);\n\t // Append this node after startContainer\n\t startContainer.parentNode.insertBefore(startT, startContainer.nextSibling);\n\t this.startContainer = startT;\n\t\n\t if (startContainer.nodeValue) {\n\t // Wrap start container in detection node, offset is always 0 or parent offset.\n\t _Util2.default.wrap(startContainer, this._createSplitContainer(startContainer, startContainerIndex, _Util2.default.getOffsetParentIfHas(startContainer)));\n\t }\n\t }\n\t\n\t // init with endContainer because we may have not a text node here\n\t var endT = endContainer;\n\t\n\t // 2. Extract end Text node,\n\t var fullTextEndValue = endContainer.nodeValue;\n\t // It's possible that end container value is null (if a whole paragraph is marked)\n\t if (undefined !== fullTextEndValue) {\n\t // Split text\n\t var partTextEndValue = fullTextEndValue.slice(0, endOffset);\n\t endContainer.nodeValue = fullTextEndValue.slice(endOffset, fullTextEndValue.length);\n\t // End Container start offset is always 0 or parent offset.\n\t endT = this._createStartOrEndContainer(endContainer, partTextEndValue, _Util2.default.getOffsetParentIfHas(endContainer), endContainerIndex);\n\t\n\t endContainer.parentNode.insertBefore(endT, endContainer);\n\t this.endContainer = endT;\n\t var offsetParent = _Util2.default.getOffsetParentIfHas(endContainer);\n\t _Util2.default.wrap(endContainer, this._createSplitContainer(endContainer, endContainerIndex, offsetParent === endOffset ? offsetParent : offsetParent + endOffset));\n\t }\n\t\n\t return {\n\t startT: startT,\n\t endT: endT\n\t };\n\t }\n\t\n\t /**\n\t * Renders a selection\n\t * @param {Node} startContainerP\n\t * @param {Node} endContainerP\n\t * @param {Node} commonAncestor\n\t * @param {int} startOffset\n\t * @param {int} endOffsetP\n\t * @returns RenderResult\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_renderWithElements',\n\t value: function _renderWithElements(startContainerP, endContainerP, commonAncestor, startOffset, endOffsetP) {\n\t if (this._renderResult) {\n\t return this._renderResult;\n\t }\n\t var startContainer = startContainerP;\n\t var endContainer = endContainerP;\n\t var endOffset = endOffsetP;\n\t var outer = _Util2.default.parents(startContainer, commonAncestor);\n\t outer = outer[outer.length - 1];\n\t var contextContainer = outer ? outer : commonAncestor;\n\t\n\t // Same Element, means the selection is fully contained in a discrete area, start and endpoint have the same parent\n\t // but are different nodes:\n\t\n\t // Start and End offset have to be recalculated because dom might be already changed by highlighting in given node\n\t // 1: First detect real start offset in startContainer:\n\t\n\t // That works by selecting the highest wrapper and get original-offset-start data element, see \"findOriginalOffset\"\n\t // So first select that container:\n\t var originalStartOffset = _Util2.default.findOriginalOffset(startContainer);\n\t var originalEndOffset = _Util2.default.findOriginalOffset(endContainer);\n\t\n\t // We may run into Browser Bugs:\n\t\n\t // If both are not text nodes, use next sibling as endContainer\n\t if (startContainer.nodeType !== Node.TEXT_NODE && endContainer.nodeType !== Node.TEXT_NODE) {\n\t if (startContainer === endContainer) {\n\t endContainer = endContainer.nextElementSibling || endContainer;\n\t }\n\t }\n\t // IF start/end container is not type of text, select first child text node:\n\t // We run in some bugs with firefox here that selects no text-nodes sometimes, trying to fix this here\n\t // Sometimes does not work correctly... (specially when DOM was modified)\n\t if (startContainer.nodeType !== Node.TEXT_NODE) {\n\t _Util2.default.walkDom(startContainer, function (el) {\n\t if (el.nodeType === Node.TEXT_NODE) {\n\t startContainer = el;\n\t return false;\n\t }\n\t return true;\n\t });\n\t }\n\t\n\t if (endContainer.nodeType !== Node.TEXT_NODE) {\n\t var toFindNode = startContainer;\n\t\n\t if (endOffset === 0) {\n\t toFindNode = endContainer.previousElementSibling || startContainer;\n\t }\n\t\n\t // Get the last text node:\n\t var endContainerContents = _Util2.default.closest(toFindNode, ':not([' + _Util.DATA_IS_SELECTION + '])').childNodes;\n\t if (endContainerContents.length) {\n\t var r = endContainerContents[endContainerContents.length - 1];\n\t if (r.nodeType === Node.TEXT_NODE) {\n\t endContainer = r;\n\t endOffset = r.length;\n\t } else {\n\t var f = r.lastChild;\n\t while (f !== null) {\n\t if (f && f.nodeType === Node.TEXT_NODE) {\n\t endContainer = f;\n\t endOffset = f.length;\n\t if (f.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n\t endOffset = parseInt(f.parentNode.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) + endOffset;\n\t }\n\t }\n\t f = f.lastChild;\n\t }\n\t }\n\t }\n\t // still no textNode?\n\t if (endContainer.nodeType !== Node.TEXT_NODE) {\n\t throw Error('Could not found endContainer, highlighting would be unstable');\n\t }\n\t }\n\t\n\t this._renderResult = new _RenderResult2.default(\n\t // Real offset is calculated by relative length and absolute length\n\t originalStartOffset + startOffset, originalEndOffset + endOffset,\n\t // get the path for this selection\n\t _Util2.default.getPath(startContainer, this.context), _Util2.default.getPath(endContainer, this.context));\n\t\n\t this._renderResult.instance = this;\n\t\n\t this._renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, !!outer);\n\t\n\t return this._renderResult;\n\t }\n\t\n\t /**\n\t * Renders a given selection\n\t *\n\t * @param {Node} startContainer\n\t * @param {Node} endContainer\n\t * @param {int} startOffset\n\t * @param {int} endOffset\n\t * @param {Node} contextContainer\n\t * @param {Boolean} outer\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_renderSelection',\n\t value: function _renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, outer) {\n\t // if start and end-container are the same, mark text on the same node\n\t if (startContainer === endContainer) {\n\t this._markTextSameNode(startContainer, startOffset, endOffset);\n\t } else {\n\t var result = this._markTextDifferentNode(startContainer, endContainer, startOffset, endOffset);\n\t var index = this.wrapperNodes.indexOf(result.endT);\n\t // remove endContainer, to keep order:\n\t this.wrapperNodes.splice(index, 1);\n\t if (!outer) {\n\t this.wrapSiblings(result.startT.nextSibling, endContainer);\n\t } else {\n\t this.walk(result.startT, endContainer, contextContainer);\n\t }\n\t this.wrapperNodes.push(result.endT);\n\t }\n\t }\n\t\n\t /**\n\t * Prepares to render a Selection with path selectors\n\t * ```\n\t * A Path looks like this:\n\t *\n\t * #selector;#textnode;#offset\n\t * ``\n\t * @param {string} startPath\n\t * @param {string} endPath\n\t * @returns {string}\n\t */\n\t\n\t }, {\n\t key: 'renderWithPath',\n\t value: function renderWithPath(startPath, endPath) {\n\t var startContainer = _Util2.default.deserializePath(startPath, this.context);\n\t var endContainer = _Util2.default.deserializePath(endPath, this.context);\n\t if (startContainer && endContainer && startContainer.node && endContainer.node) {\n\t var range = document.createRange();\n\t range.setStart(startContainer.node, startContainer.offset);\n\t range.setEnd(endContainer.node, endContainer.offset);\n\t var text = range.toString();\n\t var result = this.renderWithRange(range);\n\t result.text = text;\n\t return text;\n\t }\n\t throw new Error('Could not find start- and/or end-container in document');\n\t }\n\t\n\t /**\n\t * @returns {RenderResult}\n\t */\n\t\n\t }, {\n\t key: 'renderWithResult',\n\t\n\t\n\t /**\n\t * Renders a result (that returned from `renderWithRange`)\n\t * @param {RenderResult|Object} result\n\t * @returns {string}\n\t */\n\t value: function renderWithResult(result) {\n\t return this.renderWithPath(result.startContainerPath + ';' + result.startOffset, result.endContainerPath + ';' + result.endOffset);\n\t }\n\t\n\t /**\n\t * Prepares a selection with a range object\n\t * @param {Range} range\n\t * @returns {Object}\n\t */\n\t\n\t }, {\n\t key: 'renderWithRange',\n\t value: function renderWithRange(range) {\n\t var text = range.toString();\n\t var result = this._renderWithElements(range.startContainer, range.endContainer, range.commonAncestorContainer, range.startOffset, range.endOffset);\n\t result.text = text;\n\t return result;\n\t }\n\t\n\t /**\n\t * Removes bindings and classNames to nodes\n\t */\n\t\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t this.wrapperNodes.forEach(function (node) {\n\t delete node.marklibInstance;\n\t node.className = '';\n\t });\n\t this.removeEvent();\n\t }\n\t\n\t /**\n\t * @param {Node} el\n\t * @param {Rendering} instance\n\t * @returns {Node}\n\t */\n\t\n\t }, {\n\t key: 'result',\n\t get: function get() {\n\t return this._renderResult;\n\t }\n\t }], [{\n\t key: 'setMarklibInstance',\n\t value: function setMarklibInstance(el, instance) {\n\t el.marklibInstance = instance;\n\t return el;\n\t }\n\t\n\t /**\n\t * @param {Node} el\n\t * @returns {Rendering|null|undefined}\n\t */\n\t\n\t }, {\n\t key: 'getMarklibInstance',\n\t value: function getMarklibInstance(el) {\n\t return el ? el.marklibInstance : null;\n\t }\n\t }]);\n\t return Rendering;\n\t}(_RenderingEvents3.default);\n\t\n\texports.default = Rendering;\n\n/***/ },\n/* 24 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.DATA_IS_SELECTION = exports.ATTR_DATA_ORIGINAL_INDEX = undefined;\n\t\n\tvar _classCallCheck2 = __webpack_require__(12);\n\t\n\tvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\t\n\tvar _createClass2 = __webpack_require__(13);\n\t\n\tvar _createClass3 = _interopRequireDefault(_createClass2);\n\t\n\tvar _Rendering = __webpack_require__(23);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/* global Node, NodeList, Element */\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_ORIGINAL_INDEX = exports.ATTR_DATA_ORIGINAL_INDEX = 'data-original-index';\n\t/**\n\t * @type {string}\n\t */\n\tvar DATA_IS_SELECTION = exports.DATA_IS_SELECTION = 'data-is-selection';\n\t/**\n\t * @type {string}\n\t */\n\tvar SERIALIZE_SEPARATOR = \";\";\n\t\n\t// polyfill for matchesSelector, IE 10/11 does not support Element.matches\n\tif (Element && !Element.prototype.matches) {\n\t var p = Element.prototype;\n\t p.matches = p.matchesSelector || p.mozMatchesSelector || p.msMatchesSelector || p.oMatchesSelector || p.webkitMatchesSelector;\n\t}\n\t\n\t/**\n\t * Utility class\n\t * Contains DOM/Node manipulation helpers\n\t */\n\t\n\tvar Util = function () {\n\t function Util() {\n\t (0, _classCallCheck3.default)(this, Util);\n\t }\n\t\n\t (0, _createClass3.default)(Util, null, [{\n\t key: 'nodeListFilter',\n\t\n\t\n\t /**\n\t * Filter for a NodeList\n\t * @param {NodeList} nodes\n\t * @param {Function} func\n\t *\n\t * @returns {Array.}\n\t */\n\t value: function nodeListFilter(nodes, func) {\n\t return Array.prototype.filter.call(nodes || [], func);\n\t }\n\t\n\t /**\n\t * Generates a unique id\n\t *\n\t * @return {String}\n\t */\n\t\n\t }, {\n\t key: 'guid',\n\t value: function guid() {\n\t var s4 = function s4() {\n\t return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);\n\t };\n\t return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();\n\t }\n\t\n\t /**\n\t * Checks if a given node is empty\n\t * @param {HTMLElement} node\n\t *\n\t * @returns {*}\n\t */\n\t\n\t }, {\n\t key: 'nodeIsEmpty',\n\t value: function nodeIsEmpty(node) {\n\t return node.nodeValue.match(/^[\\s]*$/g);\n\t }\n\t\n\t /**\n\t * @param {HTMLElement} node\n\t * @param [optionalList]\n\t *\n\t * @return {int} the index of this node in context to it's siblings\n\t */\n\t\n\t }, {\n\t key: 'index',\n\t value: function index(node, optionalList) {\n\t var children = optionalList || (node.nodeType === Node.TEXT_NODE ? node.parentNode.childNodes : node.parentNode.children);\n\t return Array.prototype.indexOf.call(children || [], node);\n\t }\n\t\n\t /**\n\t * Wraps given `elms` in given `wrapper`\n\t *\n\t * @param {HTMLElement|Array.|Node} elms\n\t * @param {HTMLElement|Node} wrapper\n\t *\n\t * @return {HTMLElement}\n\t */\n\t\n\t }, {\n\t key: 'wrap',\n\t value: function wrap(elms, wrapper) {\n\t var thisElms = elms;\n\t\n\t if (!thisElms) {\n\t return wrapper;\n\t }\n\t // Convert `elms` to an array, if necessary.\n\t if (!(thisElms instanceof NodeList || thisElms instanceof Array)) {\n\t thisElms = [thisElms];\n\t }\n\t for (var i = thisElms.length - 1; i >= 0; i--) {\n\t var child = i > 0 ? wrapper.cloneNode(true) : wrapper;\n\t var el = thisElms[i];\n\t // Cache the current parent and sibling.\n\t var parent = el.parentNode;\n\t var sibling = el.nextSibling;\n\t\n\t child.appendChild(el);\n\t if (sibling) {\n\t parent.insertBefore(child, sibling);\n\t } else {\n\t parent.appendChild(child);\n\t }\n\t }\n\t return wrapper;\n\t }\n\t\n\t /**\n\t * Will calculate an index depending on an already modified dom by marklib\n\t * @param {HTMLElement|Node} node\n\t *\n\t * @returns {int|boolean}\n\t */\n\t\n\t }, {\n\t key: 'calcIndex',\n\t value: function calcIndex(node) {\n\t var calculatedIndex = 0;\n\t var foundWrapper = false;\n\t var nodes = node.parentNode.childNodes;\n\t var length = nodes.length;\n\t for (var thisIndex = 0; thisIndex < length; thisIndex++) {\n\t var el = nodes[thisIndex];\n\t if (el === node) {\n\t break;\n\t }\n\t // reset index when original index is found\n\t var maybeIndexOfOriginal = el.getAttribute ? el.getAttribute(ATTR_DATA_ORIGINAL_INDEX) : null;\n\t\n\t if (maybeIndexOfOriginal) {\n\t calculatedIndex = parseInt(maybeIndexOfOriginal, 10);\n\t foundWrapper = true;\n\t }\n\t calculatedIndex++;\n\t }\n\t return foundWrapper ? calculatedIndex : Util.index(node);\n\t }\n\t\n\t /**\n\t * @param {HTMLElement|Node} el\n\t * @param {String} [optionalSelector] will test given element against a selector\n\t * if matches, returns this element immediately\n\t *\n\t * @return {Array.} an array of all found parents of given element (and optional selector)\n\t */\n\t\n\t }, {\n\t key: 'parents',\n\t value: function parents(el, optionalSelector) {\n\t return Util.parentsCallback(el, function (element) {\n\t if (optionalSelector && (element === optionalSelector || typeof optionalSelector === 'string' && element.matches && element.matches(optionalSelector))) {\n\t return true;\n\t } else if (!optionalSelector) {\n\t return true;\n\t }\n\t return false;\n\t });\n\t }\n\t\n\t /**\n\t * @param {HTMLElement|Node} el\n\t * @param {Function} callback\n\t * @return {Array.} an array of all found parents of given element (and optional selector)\n\t */\n\t\n\t }, {\n\t key: 'parentsCallback',\n\t value: function parentsCallback(el, callback) {\n\t var element = el;\n\t var foundElements = [];\n\t while (element.parentNode !== null) {\n\t element = element.parentNode;\n\t if (callback(element)) {\n\t foundElements.push(element);\n\t }\n\t }\n\t return foundElements;\n\t }\n\t\n\t /**\n\t * Finds a parent node (the closest) with a given selector\n\t * @param {Node} el\n\t * @param {String} selector\n\t *\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: 'parent',\n\t value: function parent(el, selector) {\n\t var element = el;\n\t while (element.parentNode !== null) {\n\t element = element.parentNode;\n\t if (element.matches && element.matches(selector)) {\n\t return element;\n\t }\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Finds the closest element including itself matching a given selector\n\t * @param {Node} el\n\t * @param selector\n\t *\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: 'closest',\n\t value: function closest(el, selector) {\n\t return Util.closestCallback(el, function (element) {\n\t return element.matches && element.matches(selector);\n\t });\n\t }\n\t\n\t /**\n\t * Finds the closest element including itself matching a callback\n\t * @param {Node} el\n\t * @param {Function} callback\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: 'closestCallback',\n\t value: function closestCallback(el, callback) {\n\t var element = el;\n\t while (element !== null) {\n\t if (callback(element)) {\n\t return element;\n\t }\n\t element = element.parentNode;\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Finds the outermost fitting element that matches callback\n\t * @param {Node} el\n\t * @param {Function} callback\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: 'outerMostCallback',\n\t value: function outerMostCallback(el, callback) {\n\t var element = el;\n\t var lastValid = false;\n\t while (element !== null) {\n\t if (callback(element)) {\n\t lastValid = element;\n\t }\n\t element = element.parentNode;\n\t }\n\t return lastValid;\n\t }\n\t\n\t /**\n\t * @param {HTMLElement} n\n\t *\n\t * @return {boolean}\n\t */\n\t\n\t }, {\n\t key: 'isMarkNode',\n\t value: function isMarkNode(n) {\n\t return n instanceof HTMLElement && n.hasAttribute(DATA_IS_SELECTION);\n\t }\n\t\n\t /**\n\t * Determines the correct paths and excludes all `marklib` generated content\n\t * TODO: To improve performance we could shorten the path if an ID is present in it.\n\t * @param {HTMLElement|Node} el\n\t * @param {HTMLElement|Node} [context] if given extraction path is relative to this element\n\t * @returns {string}\n\t */\n\t\n\t }, {\n\t key: 'getPath',\n\t value: function getPath(el, context) {\n\t var path = null;\n\t var node = el;\n\t\n\t var filterSiblings = function filterSiblings(thisEl) {\n\t return !Util.isMarkNode(thisEl) && thisEl.nodeName === node.nodeName;\n\t };\n\t\n\t while (node) {\n\t var name = null;\n\t // If node is a text-node, save index\n\t if (Node.TEXT_NODE === node.nodeType) {\n\t /* Because nodes may wrapped inside a highlighting node, we need to find the original index that was\n\t * valid before the dom changes. We store the last known index position inside all wrapper elements\n\t * We select the outermost\n\t */\n\t\n\t // Extract original index of this node:\n\t // Outer most data-original-index is original index\n\t var outerMostElement = Util.parents(node, '[' + ATTR_DATA_ORIGINAL_INDEX + ']').reverse()[0];\n\t // if element is not yet wrapped in span, recalculate index based on parent container:\n\t // We have to do this because text node indexes != element indexes...\n\t var calculatedIndex = 0;\n\t if (!outerMostElement) {\n\t calculatedIndex = Util.calcIndex(node);\n\t }\n\t var index = outerMostElement ? parseInt(outerMostElement.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10) : calculatedIndex;\n\t name = SERIALIZE_SEPARATOR + index;\n\t } else {\n\t name = node.nodeName;\n\t }\n\t\n\t if (!name) {\n\t break;\n\t }\n\t\n\t name = name.toLowerCase();\n\t\n\t var parent = node.parentNode;\n\t\n\t if (Util.isMarkNode(node)) {\n\t if (parent !== context) {\n\t node = parent;\n\t continue;\n\t } else {\n\t break;\n\t }\n\t }\n\t\n\t // Select only siblings that are not part of selection and are of the same type\n\t // (because we use nth-of-type selector later)\n\t var siblings = Util.nodeListFilter(parent.children, filterSiblings);\n\t var nodeIndex = Util.index(node, siblings);\n\t\n\t if (siblings.length > 1 && nodeIndex >= 0) {\n\t name += ':nth-of-type(' + (nodeIndex + 1) + ')';\n\t }\n\t\n\t path = name + (path ? '>' + path : '');\n\t\n\t if (parent === context) {\n\t break;\n\t }\n\t\n\t node = parent;\n\t }\n\t\n\t return path.replace(\"#document>\", \"\").replace('>;', ';');\n\t }\n\t\n\t /**\n\t * Will return the first original offset value that is found\n\t * @param {Node} element\n\t *\n\t * @returns {int}\n\t */\n\t\n\t }, {\n\t key: 'findOriginalOffset',\n\t value: function findOriginalOffset(element) {\n\t if (!element.parentNode.hasAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START)) {\n\t return 0;\n\t }\n\t var lengthElement = Util.parent(element, '[' + _Rendering.ATTR_DATA_ORIGINAL_OFFSET_START + ']');\n\t return lengthElement ? parseInt(lengthElement.getAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START), 10) : 0;\n\t }\n\t\n\t /**\n\t * Deserialize a specific path and finds the right textNodes\n\t * This even works when DOM has been manipulated before by `marklib`\n\t * @param {string} path the serialized path (including offsets)\n\t * @param {Node|HTMLElement} context\n\t *\n\t * @return {Node}\n\t */\n\t\n\t }, {\n\t key: 'deserializePath',\n\t value: function deserializePath(path, context) {\n\t var pSplit = path.split(';');\n\t var p = pSplit[0];\n\t var objectIndex = parseInt(pSplit[1], 10);\n\t var charOffset = parseInt(pSplit[2], 10);\n\t var container = !p.trim() ? context : context.querySelector(p);\n\t\n\t var maybeFoundNode = null;\n\t\n\t Util.walkTextNodes(container, function (n) {\n\t var atrOffsetStart = n.parentNode.getAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START);\n\t atrOffsetStart = atrOffsetStart === null ? 0 : atrOffsetStart;\n\t var atrIndex = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_INDEX);\n\t atrIndex = atrIndex === null ? Util.calcIndex(n) : atrIndex;\n\t if (parseInt(atrIndex, 10) === objectIndex && charOffset >= atrOffsetStart && parseInt(atrOffsetStart, 10) + n.length >= charOffset) {\n\t var thisOffset = n.parentNode.hasAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START) ? charOffset - parseInt(n.parentNode.getAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START), 10) : charOffset;\n\t\n\t maybeFoundNode = {\n\t node: n,\n\t offset: thisOffset\n\t };\n\t\n\t return false;\n\t }\n\t return true;\n\t }, null);\n\t\n\t return maybeFoundNode;\n\t }\n\t\n\t /**\n\t * Walks the dom tree unless func returns false\n\t * Applies node to function\n\t *\n\t * @param {Node} node\n\t * @param {Function} func\n\t * @param {int} type, see `NodeFilter`\n\t * @param {Object} [filter] skips empty text nodes by default\n\t *\n\t * @returns {boolean} true if function did abort walk\n\t */\n\t\n\t }, {\n\t key: 'walkDom',\n\t value: function walkDom(node, func) {\n\t var _document;\n\t\n\t var type = arguments.length <= 2 || arguments[2] === undefined ? NodeFilter.SHOW_ALL : arguments[2];\n\t var filter = arguments.length <= 3 || arguments[3] === undefined ? null : arguments[3];\n\t\n\t if (!node) {\n\t return false;\n\t }\n\t var args = [node, type, filter || function () {\n\t return true;\n\t }, false];\n\t args.push(false);\n\t var walker = (_document = document).createTreeWalker.apply(_document, args);\n\t while (walker.nextNode()) {\n\t if (!func(walker.currentNode)) {\n\t return true;\n\t }\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Extracts all TextNodes inside a container\n\t * @param {Node} el\n\t * @param {Function} func\n\t * @param {Object} [filter] skips empty text nodes by default\n\t * @returns {boolean} true if function did abort walk\n\t */\n\t\n\t }, {\n\t key: 'walkTextNodes',\n\t value: function walkTextNodes(el, func) {\n\t var filter = arguments.length <= 2 || arguments[2] === undefined ? function (node) {\n\t return !Util.nodeIsEmpty(node);\n\t } : arguments[2];\n\t\n\t return Util.walkDom(el, func, NodeFilter.SHOW_TEXT, filter);\n\t }\n\t\n\t /**\n\t * @param {Node} container\n\t * @param {Number} thisIndex\n\t * @returns {int|string} index of parent or original\n\t */\n\t\n\t }, {\n\t key: 'getIndexParentIfHas',\n\t value: function getIndexParentIfHas(container, thisIndex) {\n\t var p = container.parentNode;\n\t var index = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10);\n\t return index > thisIndex ? index : thisIndex;\n\t }\n\t\n\t /**\n\t * @param container\n\t * @returns {int} offset start of parent if has, else 0\n\t */\n\t\n\t }, {\n\t key: 'getOffsetParentIfHas',\n\t value: function getOffsetParentIfHas(container) {\n\t var p = container.parentNode;\n\t var offset = parseInt(p.getAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START), 10);\n\t return offset > 0 ? offset : 0;\n\t }\n\t }]);\n\t return Util;\n\t}();\n\n\texports.default = Util;\n\n/***/ },\n/* 25 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tvar _typeof = typeof _Symbol === \"function\" && typeof _Symbol$iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _Symbol === \"function\" && obj.constructor === _Symbol ? \"symbol\" : typeof obj; };\n\t\n\texports.__esModule = true;\n\t\n\tvar _iterator = __webpack_require__(60);\n\t\n\tvar _iterator2 = _interopRequireDefault(_iterator);\n\t\n\tvar _symbol = __webpack_require__(59);\n\t\n\tvar _symbol2 = _interopRequireDefault(_symbol);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n\t return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n\t} : function (obj) {\n\t return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n\t};\n\n/***/ },\n/* 26 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// getting tag from 19.1.3.6 Object.prototype.toString()\n\tvar cof = __webpack_require__(27)\n\t , TAG = __webpack_require__(3)('toStringTag')\n\t // ES3 wrong here\n\t , ARG = cof(function(){ return arguments; }()) == 'Arguments';\n\t\n\tmodule.exports = function(it){\n\t var O, T, B;\n\t return it === undefined ? 'Undefined' : it === null ? 'Null'\n\t // @@toStringTag case\n\t : typeof (T = (O = Object(it))[TAG]) == 'string' ? T\n\t // builtinTag case\n\t : ARG ? cof(O)\n\t // ES3 arguments fallback\n\t : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n\t};\n\n/***/ },\n/* 27 */\n/***/ function(module, exports) {\n\n\tvar toString = {}.toString;\n\t\n\tmodule.exports = function(it){\n\t return toString.call(it).slice(8, -1);\n\t};\n\n/***/ },\n/* 28 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar ctx = __webpack_require__(14)\n\t , call = __webpack_require__(81)\n\t , isArrayIter = __webpack_require__(79)\n\t , anObject = __webpack_require__(6)\n\t , toLength = __webpack_require__(89)\n\t , getIterFn = __webpack_require__(48);\n\tmodule.exports = function(iterable, entries, fn, that){\n\t var iterFn = getIterFn(iterable)\n\t , f = ctx(fn, that, entries ? 2 : 1)\n\t , index = 0\n\t , length, step, iterator;\n\t if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');\n\t // fast case for arrays with default iterator\n\t if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){\n\t entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n\t } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){\n\t call(iterator, f, step.value, entries);\n\t }\n\t};\n\n/***/ },\n/* 29 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar LIBRARY = __webpack_require__(42)\n\t , $export = __webpack_require__(4)\n\t , redefine = __webpack_require__(31)\n\t , hide = __webpack_require__(10)\n\t , has = __webpack_require__(16)\n\t , Iterators = __webpack_require__(5)\n\t , $iterCreate = __webpack_require__(82)\n\t , setToStringTag = __webpack_require__(18)\n\t , getProto = __webpack_require__(1).getProto\n\t , ITERATOR = __webpack_require__(3)('iterator')\n\t , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`\n\t , FF_ITERATOR = '@@iterator'\n\t , KEYS = 'keys'\n\t , VALUES = 'values';\n\t\n\tvar returnThis = function(){ return this; };\n\t\n\tmodule.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){\n\t $iterCreate(Constructor, NAME, next);\n\t var getMethod = function(kind){\n\t if(!BUGGY && kind in proto)return proto[kind];\n\t switch(kind){\n\t case KEYS: return function keys(){ return new Constructor(this, kind); };\n\t case VALUES: return function values(){ return new Constructor(this, kind); };\n\t } return function entries(){ return new Constructor(this, kind); };\n\t };\n\t var TAG = NAME + ' Iterator'\n\t , DEF_VALUES = DEFAULT == VALUES\n\t , VALUES_BUG = false\n\t , proto = Base.prototype\n\t , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]\n\t , $default = $native || getMethod(DEFAULT)\n\t , methods, key;\n\t // Fix native\n\t if($native){\n\t var IteratorPrototype = getProto($default.call(new Base));\n\t // Set @@toStringTag to native iterators\n\t setToStringTag(IteratorPrototype, TAG, true);\n\t // FF fix\n\t if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);\n\t // fix Array#{values, @@iterator}.name in V8 / FF\n\t if(DEF_VALUES && $native.name !== VALUES){\n\t VALUES_BUG = true;\n\t $default = function values(){ return $native.call(this); };\n\t }\n\t }\n\t // Define iterator\n\t if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){\n\t hide(proto, ITERATOR, $default);\n\t }\n\t // Plug for library\n\t Iterators[NAME] = $default;\n\t Iterators[TAG] = returnThis;\n\t if(DEFAULT){\n\t methods = {\n\t values: DEF_VALUES ? $default : getMethod(VALUES),\n\t keys: IS_SET ? $default : getMethod(KEYS),\n\t entries: !DEF_VALUES ? $default : getMethod('entries')\n\t };\n\t if(FORCED)for(key in methods){\n\t if(!(key in proto))redefine(proto, key, methods[key]);\n\t } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n\t }\n\t return methods;\n\t};\n\n/***/ },\n/* 30 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(bitmap, value){\n\t return {\n\t enumerable : !(bitmap & 1),\n\t configurable: !(bitmap & 2),\n\t writable : !(bitmap & 4),\n\t value : value\n\t };\n\t};\n\n/***/ },\n/* 31 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(10);\n\n/***/ },\n/* 32 */\n/***/ function(module, exports) {\n\n\tvar id = 0\n\t , px = Math.random();\n\tmodule.exports = function(key){\n\t return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n\t};\n\n/***/ },\n/* 33 */\n/***/ function(module, exports) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t/* global CustomEvent */\n\t\n\t/*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t// polyfill for custom events to make thinks work in IE\n\t// The needed polyfill is so small that I embedded it here\n\t(function poly() {\n\t if (!global.CustomEvent || typeof global.CustomEvent !== 'function') {\n\t var _CustomEvent = function CustomEvent(event, params) {\n\t var evt = undefined;\n\t var thisParams = params || {\n\t bubbles: false,\n\t cancelable: false,\n\t detail: undefined\n\t };\n\t evt = document.createEvent(\"CustomEvent\");\n\t evt.initCustomEvent(event, thisParams.bubbles, thisParams.cancelable, thisParams.detail);\n\t return evt;\n\t };\n\t _CustomEvent.prototype = global.Event.prototype;\n\t global.CustomEvent = _CustomEvent;\n\t }\n\t})();\n\t/**\n\t * Simpler Event dispatching\n\t */\n\t\n\tvar EventHandler = function () {\n\t\n\t /**\n\t * @param {HTMLElement} target\n\t * @param {String} name\n\t */\n\t\n\t function EventHandler(target, name) {\n\t _classCallCheck(this, EventHandler);\n\t\n\t this.target = target;\n\t this.defaultOptions = {\n\t bubbles: true,\n\t cancelable: true\n\t };\n\t\n\t this.name = name;\n\t }\n\t\n\t /**\n\t * Set more options\n\t * @param {Object} options\n\t * @returns {EventHandler}\n\t */\n\t\n\t\n\t _createClass(EventHandler, [{\n\t key: \"withOptions\",\n\t value: function withOptions(options) {\n\t Object.assign(this.defaultOptions, options || {});\n\t return this;\n\t }\n\t\n\t /**\n\t * Call with the originalEvent\n\t * @param {Event} e\n\t * @returns {EventHandler}\n\t */\n\t\n\t }, {\n\t key: \"withOriginal\",\n\t value: function withOriginal(e) {\n\t return this.withDetail({\n\t originalEvent: e\n\t });\n\t }\n\t\n\t /**\n\t * Extends the detail part of the event\n\t * @param {Object} o\n\t * @returns {EventHandler}\n\t */\n\t\n\t }, {\n\t key: \"withDetail\",\n\t value: function withDetail(o) {\n\t if (!this.defaultOptions.detail) {\n\t this.defaultOptions.detail = {};\n\t }\n\t Object.assign(this.defaultOptions.detail, o);\n\t return this;\n\t }\n\t\n\t /**\n\t * @returns {CustomEvent}\n\t */\n\t\n\t }, {\n\t key: \"fire\",\n\t value: function fire() {\n\t var e = new CustomEvent(this.name, this.defaultOptions);\n\t if (this.target) {\n\t this.target.dispatchEvent(e);\n\t }\n\t return e;\n\t }\n\t }]);\n\t\n\t return EventHandler;\n\t}();\n\t\n\tvar Event = function () {\n\t function Event() {\n\t _classCallCheck(this, Event);\n\t }\n\t\n\t _createClass(Event, null, [{\n\t key: \"dispatch\",\n\t\n\t /**\n\t * Prepares to dispatch a custom event (without firing)\n\t * @param {HTMLElement} target\n\t * @param {String} name\n\t * @returns {EventHandler}\n\t */\n\t value: function dispatch(target, name) {\n\t return new EventHandler(target, name);\n\t }\n\t\n\t /**\n\t * Dispatches a custom event and fires it directly\n\t * @param {HTMLElement} target\n\t * @param {String} name\n\t * @param {Object} [options]\n\t * @returns {CustomEvent}\n\t */\n\t\n\t }, {\n\t key: \"dispatchAndFire\",\n\t value: function dispatchAndFire(target, name, options) {\n\t return new EventHandler(target, name).withOptions(options).fire();\n\t }\n\t }]);\n\t\n\t return Event;\n\t}();\n\t\n\texports.default = Event;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 34 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _classCallCheck2 = __webpack_require__(12);\n\t\n\tvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\t\n\tvar _createClass2 = __webpack_require__(13);\n\t\n\tvar _createClass3 = _interopRequireDefault(_createClass2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/**\n\t * A Render Result\n\t */\n\t\n\tvar RenderResult = function () {\n\t /**\n\t * @param {int} startOffset\n\t * @param {int} endOffset\n\t * @param {String} startContainerPath\n\t * @param {String} endContainerPath\n\t */\n\t\n\t function RenderResult(startOffset, endOffset, startContainerPath, endContainerPath) {\n\t (0, _classCallCheck3.default)(this, RenderResult);\n\t\n\t this.startOffset = startOffset;\n\t this.endOffset = endOffset;\n\t this.startContainerPath = startContainerPath;\n\t this.endContainerPath = endContainerPath;\n\t this._renderingInstance = null;\n\t }\n\t\n\t /**\n\t * @param {Object} result\n\t * @return RenderResult\n\t */\n\t\n\t\n\t (0, _createClass3.default)(RenderResult, [{\n\t key: \"serialize\",\n\t\n\t\n\t /**\n\t * @returns {Object}\n\t */\n\t value: function serialize() {\n\t return {\n\t startOffset: this.startOffset,\n\t endOffset: this.endOffset,\n\t startContainerPath: this.startContainerPath,\n\t endContainerPath: this.endContainerPath\n\t };\n\t }\n\t\n\t /**\n\t * @param {String} text\n\t */\n\t\n\t }, {\n\t key: \"text\",\n\t set: function set(text) {\n\t this._text = text;\n\t }\n\t\n\t /**\n\t * @returns {String}\n\t */\n\t ,\n\t get: function get() {\n\t return this._text;\n\t }\n\t\n\t /**\n\t * @returns {null|Rendering}\n\t */\n\t\n\t }, {\n\t key: \"instance\",\n\t get: function get() {\n\t return this._renderingInstance;\n\t }\n\t\n\t /**\n\t * @param {null|Rendering} instance\n\t */\n\t ,\n\t set: function set(instance) {\n\t this._renderingInstance = instance;\n\t }\n\t }], [{\n\t key: \"fromObject\",\n\t value: function fromObject(result) {\n\t return new RenderResult(result.startOffset, result.endOffset, result.startContainerPath, result.endContainerPath);\n\t }\n\t }]);\n\t return RenderResult;\n\t}();\n\n\texports.default = RenderResult;\n\n/***/ },\n/* 35 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_PART_TREE_LEAVE = exports.EVENT_PART_TREE_ENTER = exports.EVENT_MOUSELEAVE = exports.EVENT_MOUSEENTER = exports.EVENT_CLICK = undefined;\n\t\n\tvar _slicedToArray2 = __webpack_require__(61);\n\t\n\tvar _slicedToArray3 = _interopRequireDefault(_slicedToArray2);\n\t\n\tvar _typeof2 = __webpack_require__(25);\n\t\n\tvar _typeof3 = _interopRequireDefault(_typeof2);\n\t\n\tvar _set = __webpack_require__(58);\n\t\n\tvar _set2 = _interopRequireDefault(_set);\n\t\n\tvar _assign = __webpack_require__(54);\n\t\n\tvar _assign2 = _interopRequireDefault(_assign);\n\t\n\tvar _getPrototypeOf = __webpack_require__(37);\n\t\n\tvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\t\n\tvar _classCallCheck2 = __webpack_require__(12);\n\t\n\tvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\t\n\tvar _createClass2 = __webpack_require__(13);\n\t\n\tvar _createClass3 = _interopRequireDefault(_createClass2);\n\t\n\tvar _possibleConstructorReturn2 = __webpack_require__(39);\n\t\n\tvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\t\n\tvar _inherits2 = __webpack_require__(38);\n\t\n\tvar _inherits3 = _interopRequireDefault(_inherits2);\n\t\n\tvar _wolfy87Eventemitter = __webpack_require__(99);\n\t\n\tvar _wolfy87Eventemitter2 = _interopRequireDefault(_wolfy87Eventemitter);\n\t\n\tvar _Rendering = __webpack_require__(23);\n\t\n\tvar _Rendering2 = _interopRequireDefault(_Rendering);\n\t\n\tvar _Util = __webpack_require__(24);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_CLICK = exports.EVENT_CLICK = 'click';\n\t\n\t/**\n\t * @type {string}\n\t */\n\t/* global Set */\n\t\n\tvar EVENT_MOUSEENTER = exports.EVENT_MOUSEENTER = 'hover-enter';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_MOUSELEAVE = exports.EVENT_MOUSELEAVE = 'hover-leave';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_PART_TREE_ENTER = exports.EVENT_PART_TREE_ENTER = 'tree-enter';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_PART_TREE_LEAVE = exports.EVENT_PART_TREE_LEAVE = 'tree-leave';\n\t\n\t/**\n\t * Generic Event Handlings for Renderer\n\t */\n\t\n\tvar RenderingEvents = function (_EventEmitter) {\n\t (0, _inherits3.default)(RenderingEvents, _EventEmitter);\n\t\n\t\n\t /**\n\t * @param {Object} options\n\t * @param {Document} document\n\t */\n\t\n\t function RenderingEvents(options, document) {\n\t (0, _classCallCheck3.default)(this, RenderingEvents);\n\t\n\t\n\t /**\n\t * Options\n\t * @type {Object}\n\t */\n\t\n\t var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(RenderingEvents).call(this));\n\t\n\t _this.options = {\n\t hoverClass: 'marklib--hover',\n\t treeClass: 'marklib--tree',\n\t className: ['marking']\n\t };\n\t\n\t _this.options = (0, _assign2.default)(_this.options, options || {});\n\t\n\t if (typeof _this.options.className === 'string') {\n\t _this.options.className = _this.options.className.split(' ');\n\t }\n\t\n\t /**\n\t * A collection of all nodes that are part of all events\n\t * @type {Array}\n\t */\n\t _this.wrapperNodes = [];\n\t\n\t _this._registerEvents(document);\n\t\n\t /**\n\t * @type {Document}\n\t */\n\t _this.document = document;\n\t return _this;\n\t }\n\t\n\t /**\n\t * Constructs a new Range from rendered result\n\t * @returns {Range}\n\t */\n\t\n\t\n\t (0, _createClass3.default)(RenderingEvents, [{\n\t key: '_registerEvents',\n\t\n\t\n\t /**\n\t * Will register events if not already bind.\n\t * @param {Document} document\n\t * @private\n\t */\n\t value: function _registerEvents(document) {\n\t var _this2 = this;\n\t\n\t this.on(EVENT_MOUSEENTER, function () {\n\t _this2.wrapperNodes.forEach(function (node) {\n\t node.classList.add(_this2.options.hoverClass);\n\t });\n\t });\n\t\n\t this.on(EVENT_MOUSELEAVE, function () {\n\t _this2.wrapperNodes.forEach(function (node) {\n\t node.classList.remove(_this2.options.hoverClass);\n\t });\n\t });\n\t\n\t this.on(EVENT_PART_TREE_ENTER, function () {\n\t _this2.wrapperNodes.forEach(function (node) {\n\t node.classList.add(_this2.options.treeClass);\n\t });\n\t });\n\t\n\t this.on(EVENT_PART_TREE_LEAVE, function () {\n\t _this2.wrapperNodes.forEach(function (node) {\n\t node.classList.remove(_this2.options.treeClass);\n\t });\n\t });\n\t\n\t if (!global.__MARKLIB_EVENTS__) {\n\t global.__MARKLIB_EVENTS__ = true;\n\t (function init() {\n\t var currentHoverInstances = new _set2.default();\n\t var betweenInstances = new _set2.default();\n\t\n\t function checkMarklibInstance(e) {\n\t var instance = _Rendering2.default.getMarklibInstance(e);\n\t // instanceof check will fail if used in test scenario where different DOMs are used\n\t // see also http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/\n\t return instance && (instance instanceof _Rendering2.default || 'wrapperNodes' in instance);\n\t }\n\t\n\t function closestInstance(e) {\n\t var closest = _Util2.default.closestCallback(e.target, function (thisE) {\n\t return checkMarklibInstance(thisE);\n\t });\n\t if ((typeof closest === 'undefined' ? 'undefined' : (0, _typeof3.default)(closest)) === 'object') {\n\t return _Rendering2.default.getMarklibInstance(closest);\n\t }\n\t return false;\n\t }\n\t\n\t function getInstancesBetween(e, instance) {\n\t return _Util2.default.parentsCallback(e.target, function (el) {\n\t return checkMarklibInstance(el) && _Rendering2.default.getMarklibInstance(el) !== instance;\n\t }).map(function (el) {\n\t return _Rendering2.default.getMarklibInstance(el);\n\t });\n\t }\n\t\n\t function mouseOutClear() {\n\t currentHoverInstances.forEach(function (thisInstance) {\n\t thisInstance.emit(EVENT_MOUSELEAVE);\n\t });\n\t currentHoverInstances.clear();\n\t\n\t betweenInstances.forEach(function (thisInstance) {\n\t thisInstance.emit(EVENT_PART_TREE_LEAVE);\n\t });\n\t\n\t betweenInstances.clear();\n\t }\n\t\n\t /**\n\t * @param {Event} e\n\t * @returns {Array|boolean}\n\t */\n\t function findTarget(e) {\n\t var instance = closestInstance(e);\n\t if (instance) {\n\t var between = getInstancesBetween(e, instance);\n\t if (e.target.textContent !== instance.result.text && between.length > 0) {\n\t var allInstances = between;\n\t allInstances.unshift(instance);\n\t // take the smallest selection\n\t allInstances = allInstances.sort(function (a, b) {\n\t return a.result.text.length < b.result.text.length ? -1 : 1;\n\t });\n\t instance = allInstances[0];\n\t }\n\t\n\t return [instance, between];\n\t }\n\t return false;\n\t }\n\t\n\t document.addEventListener('click', function (e) {\n\t var target = findTarget(e);\n\t if (target) {\n\t target[0].emit(EVENT_CLICK, e, target[1]);\n\t }\n\t }, true);\n\t\n\t document.addEventListener('mouseover', function (e) {\n\t var target = findTarget(e);\n\t if (target) {\n\t (function () {\n\t var _target = (0, _slicedToArray3.default)(target, 2);\n\t\n\t var instance = _target[0];\n\t var between = _target[1];\n\t // find instances that lay in between the node\n\t\n\t mouseOutClear();\n\t between.forEach(function (instanceBetween) {\n\t betweenInstances.add(instanceBetween);\n\t instanceBetween.emit(EVENT_PART_TREE_ENTER, e, between);\n\t });\n\t instance.emit(EVENT_MOUSEENTER, e, between);\n\t currentHoverInstances.add(instance);\n\t })();\n\t } else {\n\t mouseOutClear();\n\t }\n\t }, true);\n\t })();\n\t }\n\t }\n\t }, {\n\t key: 'range',\n\t get: function get() {\n\t var range = this.document.createRange();\n\t var textNodes = [];\n\t\n\t this.wrapperNodes.forEach(function (wrapper) {\n\t _Util2.default.walkTextNodes(wrapper, function (node) {\n\t textNodes.push(node);\n\t });\n\t });\n\t\n\t if (textNodes.length > 0) {\n\t var lastTextNode = textNodes[textNodes.length - 1];\n\t range.setStart(textNodes[0], 0);\n\t range.setEnd(lastTextNode, lastTextNode.length);\n\t return range;\n\t }\n\t\n\t return null;\n\t }\n\t }]);\n\t return RenderingEvents;\n\t}(_wolfy87Eventemitter2.default);\n\n\texports.default = RenderingEvents;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 36 */\n/***/ function(module, exports) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj; };\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t/*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t/*!\n\t * FlexCss.Widget\n\t * Licensed under the MIT License (MIT)\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t */\n\t\n\t/**\n\t * A Widget provides async content on a specific target (e.g. a modal link)\n\t */\n\t\n\tvar Widget = function () {\n\t\n\t /**\n\t * Creates a new Widget\n\t * @param [element], optional define the content of widget\n\t */\n\t\n\t function Widget(element) {\n\t var _this = this;\n\t\n\t _classCallCheck(this, Widget);\n\t\n\t /**\n\t *\n\t * @type {Promise}\n\t */\n\t this.asyncContent = null;\n\t\n\t /**\n\t * @type {boolean}\n\t */\n\t this._isWidget = true;\n\t\n\t if (element) {\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.element = element instanceof HTMLElement ? element : global.document.getElementById(element);\n\t if (this.element) {\n\t this.element.hfWidgetInstance = this;\n\t this.setAsync(function () {\n\t return new Promise(function (s) {\n\t s(_this.element);\n\t });\n\t });\n\t } else {\n\t throw new Error('Could not found element with ID: ' + element);\n\t }\n\t }\n\t /**\n\t * The final resulted content that a widget did create (e.g. a modal container)\n\t * @type {HTMLElement}\n\t */\n\t this.finalContent = null;\n\t }\n\t\n\t /**\n\t *\n\t * @returns {Promise}\n\t */\n\t\n\t\n\t _createClass(Widget, [{\n\t key: 'getAsync',\n\t value: function getAsync() {\n\t return this.asyncContent();\n\t }\n\t\n\t /**\n\t * @param {Function.} async\n\t * @returns {Widget}\n\t */\n\t\n\t }, {\n\t key: 'setAsync',\n\t value: function setAsync(async) {\n\t this.asyncContent = async;\n\t return this;\n\t }\n\t\n\t /**\n\t * @returns {HTMLElement}\n\t */\n\t\n\t }, {\n\t key: 'getFinalContent',\n\t value: function getFinalContent() {\n\t return this.finalContent;\n\t }\n\t\n\t /**\n\t * @param {HTMLElement} element\n\t * @returns {Widget}\n\t */\n\t\n\t }, {\n\t key: 'setElement',\n\t value: function setElement(element) {\n\t this.element = element;\n\t return this;\n\t }\n\t\n\t /**\n\t * Destroys the generated content of this widget\n\t * @returns {boolean}\n\t */\n\t\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t if (this.finalContent && this.finalContent.parentNode) {\n\t this.finalContent.parentNode.removeChild(this.finalContent);\n\t return true;\n\t }\n\t\n\t delete this.element;\n\t delete this.asyncContent;\n\t delete this.finalContent;\n\t\n\t return false;\n\t }\n\t\n\t /**\n\t * Will find a widget on an Element\n\t * @param {HTMLElement} element\n\t * @returns {Widget|undefined}\n\t */\n\t\n\t }], [{\n\t key: 'findWidget',\n\t value: function findWidget(element) {\n\t return element ? element.hfWidgetInstance : undefined;\n\t }\n\t\n\t /**\n\t * Checks if a given object is an instance\n\t * @param {Object} self\n\t * @returns {boolean}\n\t */\n\t\n\t }, {\n\t key: 'isWidget',\n\t value: function isWidget(self) {\n\t return self instanceof Widget || (typeof self === 'undefined' ? 'undefined' : _typeof(self)) === 'object' && self.hasOwnProperty('_isWidget');\n\t }\n\t }]);\n\t\n\t return Widget;\n\t}();\n\t\n\texports.default = Widget;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 37 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(67), __esModule: true };\n\n/***/ },\n/* 38 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _setPrototypeOf = __webpack_require__(57);\n\t\n\tvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\t\n\tvar _create = __webpack_require__(55);\n\t\n\tvar _create2 = _interopRequireDefault(_create);\n\t\n\tvar _typeof2 = __webpack_require__(25);\n\t\n\tvar _typeof3 = _interopRequireDefault(_typeof2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = function (subClass, superClass) {\n\t if (typeof superClass !== \"function\" && superClass !== null) {\n\t throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n\t }\n\t\n\t subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n\t constructor: {\n\t value: subClass,\n\t enumerable: false,\n\t writable: true,\n\t configurable: true\n\t }\n\t });\n\t if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n\t};\n\n/***/ },\n/* 39 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _typeof2 = __webpack_require__(25);\n\t\n\tvar _typeof3 = _interopRequireDefault(_typeof2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = function (self, call) {\n\t if (!self) {\n\t throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n\t }\n\t\n\t return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n\t};\n\n/***/ },\n/* 40 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// fallback for non-array-like ES3 and non-enumerable old V8 strings\n\tvar cof = __webpack_require__(27);\n\tmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n\t return cof(it) == 'String' ? it.split('') : Object(it);\n\t};\n\n/***/ },\n/* 41 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(done, value){\n\t return {value: value, done: !!done};\n\t};\n\n/***/ },\n/* 42 */\n/***/ function(module, exports) {\n\n\tmodule.exports = true;\n\n/***/ },\n/* 43 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar redefine = __webpack_require__(31);\n\tmodule.exports = function(target, src){\n\t for(var key in src)redefine(target, key, src[key]);\n\t return target;\n\t};\n\n/***/ },\n/* 44 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar global = __webpack_require__(9)\n\t , SHARED = '__core-js_shared__'\n\t , store = global[SHARED] || (global[SHARED] = {});\n\tmodule.exports = function(key){\n\t return store[key] || (store[key] = {});\n\t};\n\n/***/ },\n/* 45 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(it, Constructor, name){\n\t if(!(it instanceof Constructor))throw TypeError(name + \": use the 'new' operator!\");\n\t return it;\n\t};\n\n/***/ },\n/* 46 */\n/***/ function(module, exports) {\n\n\t// 7.1.4 ToInteger\n\tvar ceil = Math.ceil\n\t , floor = Math.floor;\n\tmodule.exports = function(it){\n\t return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n\t};\n\n/***/ },\n/* 47 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.1.13 ToObject(argument)\n\tvar defined = __webpack_require__(15);\n\tmodule.exports = function(it){\n\t return Object(defined(it));\n\t};\n\n/***/ },\n/* 48 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar classof = __webpack_require__(26)\n\t , ITERATOR = __webpack_require__(3)('iterator')\n\t , Iterators = __webpack_require__(5);\n\tmodule.exports = __webpack_require__(2).getIteratorMethod = function(it){\n\t if(it != undefined)return it[ITERATOR]\n\t || it['@@iterator']\n\t || Iterators[classof(it)];\n\t};\n\n/***/ },\n/* 49 */\n/***/ function(module, exports) {\n\n\n\n/***/ },\n/* 50 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.RenderingEvents = exports.RenderResult = exports.Util = exports.Rendering = undefined;\n\t\n\tvar _Rendering = __webpack_require__(23);\n\t\n\tvar _Rendering2 = _interopRequireDefault(_Rendering);\n\t\n\tvar _Util = __webpack_require__(24);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tvar _RenderResult = __webpack_require__(34);\n\t\n\tvar _RenderResult2 = _interopRequireDefault(_RenderResult);\n\t\n\tvar _RenderingEvents = __webpack_require__(35);\n\t\n\tvar _RenderingEvents2 = _interopRequireDefault(_RenderingEvents);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.Rendering = _Rendering2.default;\n\texports.Util = _Util2.default;\n\texports.RenderResult = _RenderResult2.default;\n\texports.RenderingEvents = _RenderingEvents2.default;\n\n/***/ },\n/* 51 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_AFTER_FIXED_REMOVE = exports.EVENT_BEFORE_FIXED_ADD = undefined;\n\t\n\tvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj; };\n\t\n\tvar _slicedToArray = function () { function sliceIterator(arr, i) { 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\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tvar _debounce = __webpack_require__(109);\n\t\n\tvar _debounce2 = _interopRequireDefault(_debounce);\n\t\n\tvar _Event = __webpack_require__(33);\n\t\n\tvar _Event2 = _interopRequireDefault(_Event);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar CLS_FIXED_WINDOW = 'fixed-window-open';\n\t\n\tvar EVENT_BEFORE_FIXED_ADD = exports.EVENT_BEFORE_FIXED_ADD = 'flexcss.fixedWindow.beforeAdd';\n\tvar EVENT_AFTER_FIXED_REMOVE = exports.EVENT_AFTER_FIXED_REMOVE = 'flexcss.fixedWindow.afterRemove';\n\t\n\t/**\n\t * @type {FixedWindow}\n\t */\n\tvar fixedWindowInstance = undefined;\n\t\n\tvar FixedWindow = function () {\n\t function FixedWindow() {\n\t _classCallCheck(this, FixedWindow);\n\t\n\t this.widgets = [];\n\t this.currentScrollTop = 0;\n\t this.fixedScreenConstraints = [];\n\t this.windowWidth = 0;\n\t this.isFixedWindowActive = false;\n\t }\n\t\n\t /**\n\t * Adds a constraint to detect if the window needs to be changed when the screensize changes\n\t *\n\t * @param {Function} widget\n\t * @param {Function} fixedBreakpointFn gets a width argument, return true to open a window\n\t */\n\t\n\t\n\t _createClass(FixedWindow, [{\n\t key: 'addScreenConstraint',\n\t value: function addScreenConstraint(widget, fixedBreakpointFn) {\n\t this.fixedScreenConstraints[widget] = fixedBreakpointFn;\n\t }\n\t\n\t /**\n\t * @returns {null|DestroyableWidget}\n\t */\n\t\n\t }, {\n\t key: 'getCurrentWidget',\n\t value: function getCurrentWidget() {\n\t return this.widgets.length > 0 ? this.widgets[this.widgets.length - 1] : null;\n\t }\n\t\n\t /**\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_checkFixedNeeded',\n\t value: function _checkFixedNeeded() {\n\t var _this = this;\n\t\n\t if (this.widgets.length === 0) {\n\t return;\n\t }\n\t var widgets = new Set(this.widgets);\n\t var widgetsThatRequireFixedWindow = Array.from(widgets).some(function (widget) {\n\t return _this.fixedScreenConstraints[widget] && _this.fixedScreenConstraints[widget](_this.windowWidth);\n\t });\n\t if (!widgetsThatRequireFixedWindow) {\n\t this._removeFixedContainer();\n\t } else {\n\t this._addFixedContainer();\n\t }\n\t }\n\t\n\t /**\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_addFixedContainer',\n\t value: function _addFixedContainer() {\n\t if (this.isFixedWindowActive) {\n\t return;\n\t }\n\t _Event2.default.dispatchAndFire(global.document, EVENT_BEFORE_FIXED_ADD, {\n\t detail: this.getCurrentWidget()\n\t });\n\t // this causes layout and should be optimized\n\t // At lest we write in a batch later\n\t this.currentScrollTop = global.pageYOffset;\n\t _Settings2.default.get().scrollbarUpdateNodes.map(function (n) {\n\t var foundProperty = 'paddingRight';\n\t var direction = 1;\n\t var node = n;\n\t if (n instanceof Array) {\n\t var _n = _slicedToArray(n, 3);\n\t\n\t var whatNode = _n[0];\n\t var property = _n[1];\n\t var d = _n[2];\n\t\n\t foundProperty = property;\n\t node = whatNode;\n\t direction = d || 1;\n\t }\n\t return {\n\t node: node,\n\t property: foundProperty,\n\t value: parseInt(global.getComputedStyle(node)[foundProperty], 10) + (!node.__fixedWindowMod__ ? _Settings2.default.getScrollbarWidth() * direction : 0) + 'px'\n\t };\n\t }).forEach(function (d) {\n\t d.node.__fixedWindowMod__ = true;\n\t d.node.style[d.property] = d.value;\n\t });\n\t\n\t global.document.documentElement.classList.add(CLS_FIXED_WINDOW);\n\t global.document.body.style.cssText += 'top:' + this.currentScrollTop * -1 + 'px;position:fixed';\n\t\n\t this.isFixedWindowActive = true;\n\t }\n\t\n\t /**\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_removeFixedContainer',\n\t value: function _removeFixedContainer() {\n\t if (this.isFixedWindowActive) {\n\t global.document.body.style.position = \"static\";\n\t global.document.body.style.top = \"0px\";\n\t // reset scrollTop\n\t global.document.documentElement.scrollTop = this.currentScrollTop;\n\t global.document.body.scrollTop = this.currentScrollTop;\n\t _Settings2.default.get().scrollbarUpdateNodes.forEach(function (node) {\n\t if (node instanceof Array) {\n\t var _node = _slicedToArray(node, 2);\n\t\n\t var whatNode = _node[0];\n\t var property = _node[1];\n\t\n\t delete whatNode.__fixedWindowMod__;\n\t whatNode.style[property] = '';\n\t } else {\n\t delete node.__fixedWindowMod__;\n\t node.style.paddingRight = '';\n\t }\n\t });\n\t global.document.documentElement.classList.remove(CLS_FIXED_WINDOW);\n\t _Event2.default.dispatchAndFire(global.document, EVENT_AFTER_FIXED_REMOVE);\n\t this.isFixedWindowActive = false;\n\t }\n\t }\n\t\n\t /**\n\t * Will close a window when no widgets are opened that need one\n\t */\n\t\n\t }, {\n\t key: 'resizeListener',\n\t value: function resizeListener() {\n\t this.windowWidth = global.innerWidth;\n\t this._checkFixedNeeded();\n\t }\n\t\n\t /**\n\t * @returns {FixedWindow}\n\t */\n\t\n\t }, {\n\t key: 'close',\n\t\n\t\n\t /**\n\t * Request a close of the fixed window\n\t * @returns {Promise}\n\t */\n\t value: function close() {\n\t var _this2 = this;\n\t\n\t return new Promise(function (resolve) {\n\t _this2.widgets.pop();\n\t if (_this2.widgets.length === 0) {\n\t // restore scrollPosition:\n\t requestAnimationFrame(function () {\n\t _this2._removeFixedContainer();\n\t resolve();\n\t });\n\t }\n\t });\n\t }\n\t\n\t /**\n\t * Request to open a fixed windows\n\t * @param {Object|DestroyableWidget} instance\n\t */\n\t\n\t }, {\n\t key: 'open',\n\t value: function open(instance) {\n\t var fixed = false;\n\t if ((typeof instance === 'undefined' ? 'undefined' : _typeof(instance)) === 'object') {\n\t var cn = instance.constructor;\n\t var fixedWidget = this.fixedScreenConstraints[instance.constructor];\n\t if (cn && fixedWidget) {\n\t fixed = fixedWidget(this.windowWidth);\n\t }\n\t var length = this.widgets.length;\n\t this.widgets.push(cn);\n\t // open a new window if there is no window active\n\t if (length === 0) {\n\t if (fixed) {\n\t this._addFixedContainer();\n\t }\n\t }\n\t }\n\t }\n\t }], [{\n\t key: 'getInstance',\n\t value: function getInstance() {\n\t if (!fixedWindowInstance) {\n\t fixedWindowInstance = new FixedWindow();\n\t fixedWindowInstance.windowWidth = global.innerWidth;\n\t var eventHandler = fixedWindowInstance.resizeListener.bind(fixedWindowInstance);\n\t global.addEventListener('resize', (0, _debounce2.default)(eventHandler, 500));\n\t global.addEventListener('orientationchange', eventHandler);\n\t }\n\t return fixedWindowInstance;\n\t }\n\t }]);\n\t\n\t return FixedWindow;\n\t}();\n\n\texports.default = FixedWindow;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 52 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(62), __esModule: true };\n\n/***/ },\n/* 53 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(63), __esModule: true };\n\n/***/ },\n/* 54 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(64), __esModule: true };\n\n/***/ },\n/* 55 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(65), __esModule: true };\n\n/***/ },\n/* 56 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(66), __esModule: true };\n\n/***/ },\n/* 57 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(68), __esModule: true };\n\n/***/ },\n/* 58 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(69), __esModule: true };\n\n/***/ },\n/* 59 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(70), __esModule: true };\n\n/***/ },\n/* 60 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(71), __esModule: true };\n\n/***/ },\n/* 61 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _isIterable2 = __webpack_require__(53);\n\t\n\tvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\t\n\tvar _getIterator2 = __webpack_require__(52);\n\t\n\tvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = function () {\n\t function sliceIterator(arr, i) {\n\t var _arr = [];\n\t var _n = true;\n\t var _d = false;\n\t var _e = undefined;\n\t\n\t try {\n\t for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n\t _arr.push(_s.value);\n\t\n\t if (i && _arr.length === i) break;\n\t }\n\t } catch (err) {\n\t _d = true;\n\t _e = err;\n\t } finally {\n\t try {\n\t if (!_n && _i[\"return\"]) _i[\"return\"]();\n\t } finally {\n\t if (_d) throw _e;\n\t }\n\t }\n\t\n\t return _arr;\n\t }\n\t\n\t return function (arr, i) {\n\t if (Array.isArray(arr)) {\n\t return arr;\n\t } else if ((0, _isIterable3.default)(Object(arr))) {\n\t return sliceIterator(arr, i);\n\t } else {\n\t throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n\t }\n\t };\n\t}();\n\n/***/ },\n/* 62 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(21);\n\t__webpack_require__(20);\n\tmodule.exports = __webpack_require__(90);\n\n/***/ },\n/* 63 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(21);\n\t__webpack_require__(20);\n\tmodule.exports = __webpack_require__(91);\n\n/***/ },\n/* 64 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(93);\n\tmodule.exports = __webpack_require__(2).Object.assign;\n\n/***/ },\n/* 65 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar $ = __webpack_require__(1);\n\tmodule.exports = function create(P, D){\n\t return $.create(P, D);\n\t};\n\n/***/ },\n/* 66 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar $ = __webpack_require__(1);\n\tmodule.exports = function defineProperty(it, key, desc){\n\t return $.setDesc(it, key, desc);\n\t};\n\n/***/ },\n/* 67 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(94);\n\tmodule.exports = __webpack_require__(2).Object.getPrototypeOf;\n\n/***/ },\n/* 68 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(95);\n\tmodule.exports = __webpack_require__(2).Object.setPrototypeOf;\n\n/***/ },\n/* 69 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(49);\n\t__webpack_require__(20);\n\t__webpack_require__(21);\n\t__webpack_require__(96);\n\t__webpack_require__(98);\n\tmodule.exports = __webpack_require__(2).Set;\n\n/***/ },\n/* 70 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(97);\n\t__webpack_require__(49);\n\tmodule.exports = __webpack_require__(2).Symbol;\n\n/***/ },\n/* 71 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(20);\n\t__webpack_require__(21);\n\tmodule.exports = __webpack_require__(3)('iterator');\n\n/***/ },\n/* 72 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(it){\n\t if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n\t return it;\n\t};\n\n/***/ },\n/* 73 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(){ /* empty */ };\n\n/***/ },\n/* 74 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar $ = __webpack_require__(1)\n\t , hide = __webpack_require__(10)\n\t , redefineAll = __webpack_require__(43)\n\t , ctx = __webpack_require__(14)\n\t , strictNew = __webpack_require__(45)\n\t , defined = __webpack_require__(15)\n\t , forOf = __webpack_require__(28)\n\t , $iterDefine = __webpack_require__(29)\n\t , step = __webpack_require__(41)\n\t , ID = __webpack_require__(32)('id')\n\t , $has = __webpack_require__(16)\n\t , isObject = __webpack_require__(17)\n\t , setSpecies = __webpack_require__(87)\n\t , DESCRIPTORS = __webpack_require__(7)\n\t , isExtensible = Object.isExtensible || isObject\n\t , SIZE = DESCRIPTORS ? '_s' : 'size'\n\t , id = 0;\n\t\n\tvar fastKey = function(it, create){\n\t // return primitive with prefix\n\t if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n\t if(!$has(it, ID)){\n\t // can't set id to frozen object\n\t if(!isExtensible(it))return 'F';\n\t // not necessary to add id\n\t if(!create)return 'E';\n\t // add missing object id\n\t hide(it, ID, ++id);\n\t // return object id with prefix\n\t } return 'O' + it[ID];\n\t};\n\t\n\tvar getEntry = function(that, key){\n\t // fast case\n\t var index = fastKey(key), entry;\n\t if(index !== 'F')return that._i[index];\n\t // frozen object case\n\t for(entry = that._f; entry; entry = entry.n){\n\t if(entry.k == key)return entry;\n\t }\n\t};\n\t\n\tmodule.exports = {\n\t getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n\t var C = wrapper(function(that, iterable){\n\t strictNew(that, C, NAME);\n\t that._i = $.create(null); // index\n\t that._f = undefined; // first entry\n\t that._l = undefined; // last entry\n\t that[SIZE] = 0; // size\n\t if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n\t });\n\t redefineAll(C.prototype, {\n\t // 23.1.3.1 Map.prototype.clear()\n\t // 23.2.3.2 Set.prototype.clear()\n\t clear: function clear(){\n\t for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){\n\t entry.r = true;\n\t if(entry.p)entry.p = entry.p.n = undefined;\n\t delete data[entry.i];\n\t }\n\t that._f = that._l = undefined;\n\t that[SIZE] = 0;\n\t },\n\t // 23.1.3.3 Map.prototype.delete(key)\n\t // 23.2.3.4 Set.prototype.delete(value)\n\t 'delete': function(key){\n\t var that = this\n\t , entry = getEntry(that, key);\n\t if(entry){\n\t var next = entry.n\n\t , prev = entry.p;\n\t delete that._i[entry.i];\n\t entry.r = true;\n\t if(prev)prev.n = next;\n\t if(next)next.p = prev;\n\t if(that._f == entry)that._f = next;\n\t if(that._l == entry)that._l = prev;\n\t that[SIZE]--;\n\t } return !!entry;\n\t },\n\t // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n\t // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n\t forEach: function forEach(callbackfn /*, that = undefined */){\n\t var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3)\n\t , entry;\n\t while(entry = entry ? entry.n : this._f){\n\t f(entry.v, entry.k, this);\n\t // revert to the last existing entry\n\t while(entry && entry.r)entry = entry.p;\n\t }\n\t },\n\t // 23.1.3.7 Map.prototype.has(key)\n\t // 23.2.3.7 Set.prototype.has(value)\n\t has: function has(key){\n\t return !!getEntry(this, key);\n\t }\n\t });\n\t if(DESCRIPTORS)$.setDesc(C.prototype, 'size', {\n\t get: function(){\n\t return defined(this[SIZE]);\n\t }\n\t });\n\t return C;\n\t },\n\t def: function(that, key, value){\n\t var entry = getEntry(that, key)\n\t , prev, index;\n\t // change existing entry\n\t if(entry){\n\t entry.v = value;\n\t // create new entry\n\t } else {\n\t that._l = entry = {\n\t i: index = fastKey(key, true), // <- index\n\t k: key, // <- key\n\t v: value, // <- value\n\t p: prev = that._l, // <- previous entry\n\t n: undefined, // <- next entry\n\t r: false // <- removed\n\t };\n\t if(!that._f)that._f = entry;\n\t if(prev)prev.n = entry;\n\t that[SIZE]++;\n\t // add to index\n\t if(index !== 'F')that._i[index] = entry;\n\t } return that;\n\t },\n\t getEntry: getEntry,\n\t setStrong: function(C, NAME, IS_MAP){\n\t // add .keys, .values, .entries, [@@iterator]\n\t // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n\t $iterDefine(C, NAME, function(iterated, kind){\n\t this._t = iterated; // target\n\t this._k = kind; // kind\n\t this._l = undefined; // previous\n\t }, function(){\n\t var that = this\n\t , kind = that._k\n\t , entry = that._l;\n\t // revert to the last existing entry\n\t while(entry && entry.r)entry = entry.p;\n\t // get next entry\n\t if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){\n\t // or finish the iteration\n\t that._t = undefined;\n\t return step(1);\n\t }\n\t // return step by kind\n\t if(kind == 'keys' )return step(0, entry.k);\n\t if(kind == 'values')return step(0, entry.v);\n\t return step(0, [entry.k, entry.v]);\n\t }, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);\n\t\n\t // add [@@species], 23.1.2.2, 23.2.2.2\n\t setSpecies(NAME);\n\t }\n\t};\n\n/***/ },\n/* 75 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// https://github.com/DavidBruant/Map-Set.prototype.toJSON\n\tvar forOf = __webpack_require__(28)\n\t , classof = __webpack_require__(26);\n\tmodule.exports = function(NAME){\n\t return function toJSON(){\n\t if(classof(this) != NAME)throw TypeError(NAME + \"#toJSON isn't generic\");\n\t var arr = [];\n\t forOf(this, false, arr.push, arr);\n\t return arr;\n\t };\n\t};\n\n/***/ },\n/* 76 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar $ = __webpack_require__(1)\n\t , global = __webpack_require__(9)\n\t , $export = __webpack_require__(4)\n\t , fails = __webpack_require__(8)\n\t , hide = __webpack_require__(10)\n\t , redefineAll = __webpack_require__(43)\n\t , forOf = __webpack_require__(28)\n\t , strictNew = __webpack_require__(45)\n\t , isObject = __webpack_require__(17)\n\t , setToStringTag = __webpack_require__(18)\n\t , DESCRIPTORS = __webpack_require__(7);\n\t\n\tmodule.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){\n\t var Base = global[NAME]\n\t , C = Base\n\t , ADDER = IS_MAP ? 'set' : 'add'\n\t , proto = C && C.prototype\n\t , O = {};\n\t if(!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){\n\t new C().entries().next();\n\t }))){\n\t // create collection constructor\n\t C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n\t redefineAll(C.prototype, methods);\n\t } else {\n\t C = wrapper(function(target, iterable){\n\t strictNew(target, C, NAME);\n\t target._c = new Base;\n\t if(iterable != undefined)forOf(iterable, IS_MAP, target[ADDER], target);\n\t });\n\t $.each.call('add,clear,delete,forEach,get,has,set,keys,values,entries'.split(','),function(KEY){\n\t var IS_ADDER = KEY == 'add' || KEY == 'set';\n\t if(KEY in proto && !(IS_WEAK && KEY == 'clear'))hide(C.prototype, KEY, function(a, b){\n\t if(!IS_ADDER && IS_WEAK && !isObject(a))return KEY == 'get' ? undefined : false;\n\t var result = this._c[KEY](a === 0 ? 0 : a, b);\n\t return IS_ADDER ? this : result;\n\t });\n\t });\n\t if('size' in proto)$.setDesc(C.prototype, 'size', {\n\t get: function(){\n\t return this._c.size;\n\t }\n\t });\n\t }\n\t\n\t setToStringTag(C, NAME);\n\t\n\t O[NAME] = C;\n\t $export($export.G + $export.W + $export.F, O);\n\t\n\t if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);\n\t\n\t return C;\n\t};\n\n/***/ },\n/* 77 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// all enumerable object keys, includes symbols\n\tvar $ = __webpack_require__(1);\n\tmodule.exports = function(it){\n\t var keys = $.getKeys(it)\n\t , getSymbols = $.getSymbols;\n\t if(getSymbols){\n\t var symbols = getSymbols(it)\n\t , isEnum = $.isEnum\n\t , i = 0\n\t , key;\n\t while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);\n\t }\n\t return keys;\n\t};\n\n/***/ },\n/* 78 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\n\tvar toIObject = __webpack_require__(19)\n\t , getNames = __webpack_require__(1).getNames\n\t , toString = {}.toString;\n\t\n\tvar windowNames = typeof window == 'object' && Object.getOwnPropertyNames\n\t ? Object.getOwnPropertyNames(window) : [];\n\t\n\tvar getWindowNames = function(it){\n\t try {\n\t return getNames(it);\n\t } catch(e){\n\t return windowNames.slice();\n\t }\n\t};\n\t\n\tmodule.exports.get = function getOwnPropertyNames(it){\n\t if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);\n\t return getNames(toIObject(it));\n\t};\n\n/***/ },\n/* 79 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// check on default Array iterator\n\tvar Iterators = __webpack_require__(5)\n\t , ITERATOR = __webpack_require__(3)('iterator')\n\t , ArrayProto = Array.prototype;\n\t\n\tmodule.exports = function(it){\n\t return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n\t};\n\n/***/ },\n/* 80 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.2.2 IsArray(argument)\n\tvar cof = __webpack_require__(27);\n\tmodule.exports = Array.isArray || function(arg){\n\t return cof(arg) == 'Array';\n\t};\n\n/***/ },\n/* 81 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// call something on iterator step with safe closing on error\n\tvar anObject = __webpack_require__(6);\n\tmodule.exports = function(iterator, fn, value, entries){\n\t try {\n\t return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n\t // 7.4.6 IteratorClose(iterator, completion)\n\t } catch(e){\n\t var ret = iterator['return'];\n\t if(ret !== undefined)anObject(ret.call(iterator));\n\t throw e;\n\t }\n\t};\n\n/***/ },\n/* 82 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar $ = __webpack_require__(1)\n\t , descriptor = __webpack_require__(30)\n\t , setToStringTag = __webpack_require__(18)\n\t , IteratorPrototype = {};\n\t\n\t// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\n\t__webpack_require__(10)(IteratorPrototype, __webpack_require__(3)('iterator'), function(){ return this; });\n\t\n\tmodule.exports = function(Constructor, NAME, next){\n\t Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});\n\t setToStringTag(Constructor, NAME + ' Iterator');\n\t};\n\n/***/ },\n/* 83 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar $ = __webpack_require__(1)\n\t , toIObject = __webpack_require__(19);\n\tmodule.exports = function(object, el){\n\t var O = toIObject(object)\n\t , keys = $.getKeys(O)\n\t , length = keys.length\n\t , index = 0\n\t , key;\n\t while(length > index)if(O[key = keys[index++]] === el)return key;\n\t};\n\n/***/ },\n/* 84 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.2.1 Object.assign(target, source, ...)\n\tvar $ = __webpack_require__(1)\n\t , toObject = __webpack_require__(47)\n\t , IObject = __webpack_require__(40);\n\t\n\t// should work with symbols and should have deterministic property order (V8 bug)\n\tmodule.exports = __webpack_require__(8)(function(){\n\t var a = Object.assign\n\t , A = {}\n\t , B = {}\n\t , S = Symbol()\n\t , K = 'abcdefghijklmnopqrst';\n\t A[S] = 7;\n\t K.split('').forEach(function(k){ B[k] = k; });\n\t return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n\t}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n\t var T = toObject(target)\n\t , $$ = arguments\n\t , $$len = $$.length\n\t , index = 1\n\t , getKeys = $.getKeys\n\t , getSymbols = $.getSymbols\n\t , isEnum = $.isEnum;\n\t while($$len > index){\n\t var S = IObject($$[index++])\n\t , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n\t , length = keys.length\n\t , j = 0\n\t , key;\n\t while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n\t }\n\t return T;\n\t} : Object.assign;\n\n/***/ },\n/* 85 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// most Object methods by ES6 should accept primitives\n\tvar $export = __webpack_require__(4)\n\t , core = __webpack_require__(2)\n\t , fails = __webpack_require__(8);\n\tmodule.exports = function(KEY, exec){\n\t var fn = (core.Object || {})[KEY] || Object[KEY]\n\t , exp = {};\n\t exp[KEY] = exec(fn);\n\t $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);\n\t};\n\n/***/ },\n/* 86 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// Works with __proto__ only. Old v8 can't work with null proto objects.\n\t/* eslint-disable no-proto */\n\tvar getDesc = __webpack_require__(1).getDesc\n\t , isObject = __webpack_require__(17)\n\t , anObject = __webpack_require__(6);\n\tvar check = function(O, proto){\n\t anObject(O);\n\t if(!isObject(proto) && proto !== null)throw TypeError(proto + \": can't set as prototype!\");\n\t};\n\tmodule.exports = {\n\t set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n\t function(test, buggy, set){\n\t try {\n\t set = __webpack_require__(14)(Function.call, getDesc(Object.prototype, '__proto__').set, 2);\n\t set(test, []);\n\t buggy = !(test instanceof Array);\n\t } catch(e){ buggy = true; }\n\t return function setPrototypeOf(O, proto){\n\t check(O, proto);\n\t if(buggy)O.__proto__ = proto;\n\t else set(O, proto);\n\t return O;\n\t };\n\t }({}, false) : undefined),\n\t check: check\n\t};\n\n/***/ },\n/* 87 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar core = __webpack_require__(2)\n\t , $ = __webpack_require__(1)\n\t , DESCRIPTORS = __webpack_require__(7)\n\t , SPECIES = __webpack_require__(3)('species');\n\t\n\tmodule.exports = function(KEY){\n\t var C = core[KEY];\n\t if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {\n\t configurable: true,\n\t get: function(){ return this; }\n\t });\n\t};\n\n/***/ },\n/* 88 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar toInteger = __webpack_require__(46)\n\t , defined = __webpack_require__(15);\n\t// true -> String#at\n\t// false -> String#codePointAt\n\tmodule.exports = function(TO_STRING){\n\t return function(that, pos){\n\t var s = String(defined(that))\n\t , i = toInteger(pos)\n\t , l = s.length\n\t , a, b;\n\t if(i < 0 || i >= l)return TO_STRING ? '' : undefined;\n\t a = s.charCodeAt(i);\n\t return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n\t ? TO_STRING ? s.charAt(i) : a\n\t : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n\t };\n\t};\n\n/***/ },\n/* 89 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.1.15 ToLength\n\tvar toInteger = __webpack_require__(46)\n\t , min = Math.min;\n\tmodule.exports = function(it){\n\t return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n\t};\n\n/***/ },\n/* 90 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar anObject = __webpack_require__(6)\n\t , get = __webpack_require__(48);\n\tmodule.exports = __webpack_require__(2).getIterator = function(it){\n\t var iterFn = get(it);\n\t if(typeof iterFn != 'function')throw TypeError(it + ' is not iterable!');\n\t return anObject(iterFn.call(it));\n\t};\n\n/***/ },\n/* 91 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar classof = __webpack_require__(26)\n\t , ITERATOR = __webpack_require__(3)('iterator')\n\t , Iterators = __webpack_require__(5);\n\tmodule.exports = __webpack_require__(2).isIterable = function(it){\n\t var O = Object(it);\n\t return O[ITERATOR] !== undefined\n\t || '@@iterator' in O\n\t || Iterators.hasOwnProperty(classof(O));\n\t};\n\n/***/ },\n/* 92 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar addToUnscopables = __webpack_require__(73)\n\t , step = __webpack_require__(41)\n\t , Iterators = __webpack_require__(5)\n\t , toIObject = __webpack_require__(19);\n\t\n\t// 22.1.3.4 Array.prototype.entries()\n\t// 22.1.3.13 Array.prototype.keys()\n\t// 22.1.3.29 Array.prototype.values()\n\t// 22.1.3.30 Array.prototype[@@iterator]()\n\tmodule.exports = __webpack_require__(29)(Array, 'Array', function(iterated, kind){\n\t this._t = toIObject(iterated); // target\n\t this._i = 0; // next index\n\t this._k = kind; // kind\n\t// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n\t}, function(){\n\t var O = this._t\n\t , kind = this._k\n\t , index = this._i++;\n\t if(!O || index >= O.length){\n\t this._t = undefined;\n\t return step(1);\n\t }\n\t if(kind == 'keys' )return step(0, index);\n\t if(kind == 'values')return step(0, O[index]);\n\t return step(0, [index, O[index]]);\n\t}, 'values');\n\t\n\t// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\n\tIterators.Arguments = Iterators.Array;\n\t\n\taddToUnscopables('keys');\n\taddToUnscopables('values');\n\taddToUnscopables('entries');\n\n/***/ },\n/* 93 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.3.1 Object.assign(target, source)\n\tvar $export = __webpack_require__(4);\n\t\n\t$export($export.S + $export.F, 'Object', {assign: __webpack_require__(84)});\n\n/***/ },\n/* 94 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.2.9 Object.getPrototypeOf(O)\n\tvar toObject = __webpack_require__(47);\n\t\n\t__webpack_require__(85)('getPrototypeOf', function($getPrototypeOf){\n\t return function getPrototypeOf(it){\n\t return $getPrototypeOf(toObject(it));\n\t };\n\t});\n\n/***/ },\n/* 95 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.3.19 Object.setPrototypeOf(O, proto)\n\tvar $export = __webpack_require__(4);\n\t$export($export.S, 'Object', {setPrototypeOf: __webpack_require__(86).set});\n\n/***/ },\n/* 96 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar strong = __webpack_require__(74);\n\t\n\t// 23.2 Set Objects\n\t__webpack_require__(76)('Set', function(get){\n\t return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n\t}, {\n\t // 23.2.3.1 Set.prototype.add(value)\n\t add: function add(value){\n\t return strong.def(this, value = value === 0 ? 0 : value, value);\n\t }\n\t}, strong);\n\n/***/ },\n/* 97 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t// ECMAScript 6 symbols shim\n\tvar $ = __webpack_require__(1)\n\t , global = __webpack_require__(9)\n\t , has = __webpack_require__(16)\n\t , DESCRIPTORS = __webpack_require__(7)\n\t , $export = __webpack_require__(4)\n\t , redefine = __webpack_require__(31)\n\t , $fails = __webpack_require__(8)\n\t , shared = __webpack_require__(44)\n\t , setToStringTag = __webpack_require__(18)\n\t , uid = __webpack_require__(32)\n\t , wks = __webpack_require__(3)\n\t , keyOf = __webpack_require__(83)\n\t , $names = __webpack_require__(78)\n\t , enumKeys = __webpack_require__(77)\n\t , isArray = __webpack_require__(80)\n\t , anObject = __webpack_require__(6)\n\t , toIObject = __webpack_require__(19)\n\t , createDesc = __webpack_require__(30)\n\t , getDesc = $.getDesc\n\t , setDesc = $.setDesc\n\t , _create = $.create\n\t , getNames = $names.get\n\t , $Symbol = global.Symbol\n\t , $JSON = global.JSON\n\t , _stringify = $JSON && $JSON.stringify\n\t , setter = false\n\t , HIDDEN = wks('_hidden')\n\t , isEnum = $.isEnum\n\t , SymbolRegistry = shared('symbol-registry')\n\t , AllSymbols = shared('symbols')\n\t , useNative = typeof $Symbol == 'function'\n\t , ObjectProto = Object.prototype;\n\t\n\t// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\n\tvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n\t return _create(setDesc({}, 'a', {\n\t get: function(){ return setDesc(this, 'a', {value: 7}).a; }\n\t })).a != 7;\n\t}) ? function(it, key, D){\n\t var protoDesc = getDesc(ObjectProto, key);\n\t if(protoDesc)delete ObjectProto[key];\n\t setDesc(it, key, D);\n\t if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);\n\t} : setDesc;\n\t\n\tvar wrap = function(tag){\n\t var sym = AllSymbols[tag] = _create($Symbol.prototype);\n\t sym._k = tag;\n\t DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {\n\t configurable: true,\n\t set: function(value){\n\t if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n\t setSymbolDesc(this, tag, createDesc(1, value));\n\t }\n\t });\n\t return sym;\n\t};\n\t\n\tvar isSymbol = function(it){\n\t return typeof it == 'symbol';\n\t};\n\t\n\tvar $defineProperty = function defineProperty(it, key, D){\n\t if(D && has(AllSymbols, key)){\n\t if(!D.enumerable){\n\t if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));\n\t it[HIDDEN][key] = true;\n\t } else {\n\t if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n\t D = _create(D, {enumerable: createDesc(0, false)});\n\t } return setSymbolDesc(it, key, D);\n\t } return setDesc(it, key, D);\n\t};\n\tvar $defineProperties = function defineProperties(it, P){\n\t anObject(it);\n\t var keys = enumKeys(P = toIObject(P))\n\t , i = 0\n\t , l = keys.length\n\t , key;\n\t while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n\t return it;\n\t};\n\tvar $create = function create(it, P){\n\t return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n\t};\n\tvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n\t var E = isEnum.call(this, key);\n\t return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]\n\t ? E : true;\n\t};\n\tvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n\t var D = getDesc(it = toIObject(it), key);\n\t if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n\t return D;\n\t};\n\tvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n\t var names = getNames(toIObject(it))\n\t , result = []\n\t , i = 0\n\t , key;\n\t while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);\n\t return result;\n\t};\n\tvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n\t var names = getNames(toIObject(it))\n\t , result = []\n\t , i = 0\n\t , key;\n\t while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);\n\t return result;\n\t};\n\tvar $stringify = function stringify(it){\n\t if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n\t var args = [it]\n\t , i = 1\n\t , $$ = arguments\n\t , replacer, $replacer;\n\t while($$.length > i)args.push($$[i++]);\n\t replacer = args[1];\n\t if(typeof replacer == 'function')$replacer = replacer;\n\t if($replacer || !isArray(replacer))replacer = function(key, value){\n\t if($replacer)value = $replacer.call(this, key, value);\n\t if(!isSymbol(value))return value;\n\t };\n\t args[1] = replacer;\n\t return _stringify.apply($JSON, args);\n\t};\n\tvar buggyJSON = $fails(function(){\n\t var S = $Symbol();\n\t // MS Edge converts symbol values to JSON as {}\n\t // WebKit converts symbol values to JSON as null\n\t // V8 throws on boxed symbols\n\t return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n\t});\n\t\n\t// 19.4.1.1 Symbol([description])\n\tif(!useNative){\n\t $Symbol = function Symbol(){\n\t if(isSymbol(this))throw TypeError('Symbol is not a constructor');\n\t return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));\n\t };\n\t redefine($Symbol.prototype, 'toString', function toString(){\n\t return this._k;\n\t });\n\t\n\t isSymbol = function(it){\n\t return it instanceof $Symbol;\n\t };\n\t\n\t $.create = $create;\n\t $.isEnum = $propertyIsEnumerable;\n\t $.getDesc = $getOwnPropertyDescriptor;\n\t $.setDesc = $defineProperty;\n\t $.setDescs = $defineProperties;\n\t $.getNames = $names.get = $getOwnPropertyNames;\n\t $.getSymbols = $getOwnPropertySymbols;\n\t\n\t if(DESCRIPTORS && !__webpack_require__(42)){\n\t redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n\t }\n\t}\n\t\n\tvar symbolStatics = {\n\t // 19.4.2.1 Symbol.for(key)\n\t 'for': function(key){\n\t return has(SymbolRegistry, key += '')\n\t ? SymbolRegistry[key]\n\t : SymbolRegistry[key] = $Symbol(key);\n\t },\n\t // 19.4.2.5 Symbol.keyFor(sym)\n\t keyFor: function keyFor(key){\n\t return keyOf(SymbolRegistry, key);\n\t },\n\t useSetter: function(){ setter = true; },\n\t useSimple: function(){ setter = false; }\n\t};\n\t// 19.4.2.2 Symbol.hasInstance\n\t// 19.4.2.3 Symbol.isConcatSpreadable\n\t// 19.4.2.4 Symbol.iterator\n\t// 19.4.2.6 Symbol.match\n\t// 19.4.2.8 Symbol.replace\n\t// 19.4.2.9 Symbol.search\n\t// 19.4.2.10 Symbol.species\n\t// 19.4.2.11 Symbol.split\n\t// 19.4.2.12 Symbol.toPrimitive\n\t// 19.4.2.13 Symbol.toStringTag\n\t// 19.4.2.14 Symbol.unscopables\n\t$.each.call((\n\t 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +\n\t 'species,split,toPrimitive,toStringTag,unscopables'\n\t).split(','), function(it){\n\t var sym = wks(it);\n\t symbolStatics[it] = useNative ? sym : wrap(sym);\n\t});\n\t\n\tsetter = true;\n\t\n\t$export($export.G + $export.W, {Symbol: $Symbol});\n\t\n\t$export($export.S, 'Symbol', symbolStatics);\n\t\n\t$export($export.S + $export.F * !useNative, 'Object', {\n\t // 19.1.2.2 Object.create(O [, Properties])\n\t create: $create,\n\t // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n\t defineProperty: $defineProperty,\n\t // 19.1.2.3 Object.defineProperties(O, Properties)\n\t defineProperties: $defineProperties,\n\t // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n\t getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n\t // 19.1.2.7 Object.getOwnPropertyNames(O)\n\t getOwnPropertyNames: $getOwnPropertyNames,\n\t // 19.1.2.8 Object.getOwnPropertySymbols(O)\n\t getOwnPropertySymbols: $getOwnPropertySymbols\n\t});\n\t\n\t// 24.3.2 JSON.stringify(value [, replacer [, space]])\n\t$JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});\n\t\n\t// 19.4.3.5 Symbol.prototype[@@toStringTag]\n\tsetToStringTag($Symbol, 'Symbol');\n\t// 20.2.1.9 Math[@@toStringTag]\n\tsetToStringTag(Math, 'Math', true);\n\t// 24.3.3 JSON[@@toStringTag]\n\tsetToStringTag(global.JSON, 'JSON', true);\n\n/***/ },\n/* 98 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// https://github.com/DavidBruant/Map-Set.prototype.toJSON\n\tvar $export = __webpack_require__(4);\n\t\n\t$export($export.P, 'Set', {toJSON: __webpack_require__(75)('Set')});\n\n/***/ },\n/* 99 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_RESULT__;/*!\n\t * EventEmitter v4.2.11 - git.io/ee\n\t * Unlicense - http://unlicense.org/\n\t * Oliver Caldwell - http://oli.me.uk/\n\t * @preserve\n\t */\n\t\n\t;(function () {\n\t 'use strict';\n\t\n\t /**\n\t * Class for managing events.\n\t * Can be extended to provide event functionality in other classes.\n\t *\n\t * @class EventEmitter Manages event registering and emitting.\n\t */\n\t function EventEmitter() {}\n\t\n\t // Shortcuts to improve speed and size\n\t var proto = EventEmitter.prototype;\n\t var exports = this;\n\t var originalGlobalValue = exports.EventEmitter;\n\t\n\t /**\n\t * Finds the index of the listener for the event in its storage array.\n\t *\n\t * @param {Function[]} listeners Array of listeners to search through.\n\t * @param {Function} listener Method to look for.\n\t * @return {Number} Index of the specified listener, -1 if not found\n\t * @api private\n\t */\n\t function indexOfListener(listeners, listener) {\n\t var i = listeners.length;\n\t while (i--) {\n\t if (listeners[i].listener === listener) {\n\t return i;\n\t }\n\t }\n\t\n\t return -1;\n\t }\n\t\n\t /**\n\t * Alias a method while keeping the context correct, to allow for overwriting of target method.\n\t *\n\t * @param {String} name The name of the target method.\n\t * @return {Function} The aliased method\n\t * @api private\n\t */\n\t function alias(name) {\n\t return function aliasClosure() {\n\t return this[name].apply(this, arguments);\n\t };\n\t }\n\t\n\t /**\n\t * Returns the listener array for the specified event.\n\t * Will initialise the event object and listener arrays if required.\n\t * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.\n\t * Each property in the object response is an array of listener functions.\n\t *\n\t * @param {String|RegExp} evt Name of the event to return the listeners from.\n\t * @return {Function[]|Object} All listener functions for the event.\n\t */\n\t proto.getListeners = function getListeners(evt) {\n\t var events = this._getEvents();\n\t var response;\n\t var key;\n\t\n\t // Return a concatenated array of all matching events if\n\t // the selector is a regular expression.\n\t if (evt instanceof RegExp) {\n\t response = {};\n\t for (key in events) {\n\t if (events.hasOwnProperty(key) && evt.test(key)) {\n\t response[key] = events[key];\n\t }\n\t }\n\t }\n\t else {\n\t response = events[evt] || (events[evt] = []);\n\t }\n\t\n\t return response;\n\t };\n\t\n\t /**\n\t * Takes a list of listener objects and flattens it into a list of listener functions.\n\t *\n\t * @param {Object[]} listeners Raw listener objects.\n\t * @return {Function[]} Just the listener functions.\n\t */\n\t proto.flattenListeners = function flattenListeners(listeners) {\n\t var flatListeners = [];\n\t var i;\n\t\n\t for (i = 0; i < listeners.length; i += 1) {\n\t flatListeners.push(listeners[i].listener);\n\t }\n\t\n\t return flatListeners;\n\t };\n\t\n\t /**\n\t * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.\n\t *\n\t * @param {String|RegExp} evt Name of the event to return the listeners from.\n\t * @return {Object} All listener functions for an event in an object.\n\t */\n\t proto.getListenersAsObject = function getListenersAsObject(evt) {\n\t var listeners = this.getListeners(evt);\n\t var response;\n\t\n\t if (listeners instanceof Array) {\n\t response = {};\n\t response[evt] = listeners;\n\t }\n\t\n\t return response || listeners;\n\t };\n\t\n\t /**\n\t * Adds a listener function to the specified event.\n\t * The listener will not be added if it is a duplicate.\n\t * If the listener returns true then it will be removed after it is called.\n\t * If you pass a regular expression as the event name then the listener will be added to all events that match it.\n\t *\n\t * @param {String|RegExp} evt Name of the event to attach the listener to.\n\t * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.addListener = function addListener(evt, listener) {\n\t var listeners = this.getListenersAsObject(evt);\n\t var listenerIsWrapped = typeof listener === 'object';\n\t var key;\n\t\n\t for (key in listeners) {\n\t if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {\n\t listeners[key].push(listenerIsWrapped ? listener : {\n\t listener: listener,\n\t once: false\n\t });\n\t }\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Alias of addListener\n\t */\n\t proto.on = alias('addListener');\n\t\n\t /**\n\t * Semi-alias of addListener. It will add a listener that will be\n\t * automatically removed after its first execution.\n\t *\n\t * @param {String|RegExp} evt Name of the event to attach the listener to.\n\t * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.addOnceListener = function addOnceListener(evt, listener) {\n\t return this.addListener(evt, {\n\t listener: listener,\n\t once: true\n\t });\n\t };\n\t\n\t /**\n\t * Alias of addOnceListener.\n\t */\n\t proto.once = alias('addOnceListener');\n\t\n\t /**\n\t * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.\n\t * You need to tell it what event names should be matched by a regex.\n\t *\n\t * @param {String} evt Name of the event to create.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.defineEvent = function defineEvent(evt) {\n\t this.getListeners(evt);\n\t return this;\n\t };\n\t\n\t /**\n\t * Uses defineEvent to define multiple events.\n\t *\n\t * @param {String[]} evts An array of event names to define.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.defineEvents = function defineEvents(evts) {\n\t for (var i = 0; i < evts.length; i += 1) {\n\t this.defineEvent(evts[i]);\n\t }\n\t return this;\n\t };\n\t\n\t /**\n\t * Removes a listener function from the specified event.\n\t * When passed a regular expression as the event name, it will remove the listener from all events that match it.\n\t *\n\t * @param {String|RegExp} evt Name of the event to remove the listener from.\n\t * @param {Function} listener Method to remove from the event.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.removeListener = function removeListener(evt, listener) {\n\t var listeners = this.getListenersAsObject(evt);\n\t var index;\n\t var key;\n\t\n\t for (key in listeners) {\n\t if (listeners.hasOwnProperty(key)) {\n\t index = indexOfListener(listeners[key], listener);\n\t\n\t if (index !== -1) {\n\t listeners[key].splice(index, 1);\n\t }\n\t }\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Alias of removeListener\n\t */\n\t proto.off = alias('removeListener');\n\t\n\t /**\n\t * Adds listeners in bulk using the manipulateListeners method.\n\t * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.\n\t * You can also pass it a regular expression to add the array of listeners to all events that match it.\n\t * Yeah, this function does quite a bit. That's probably a bad thing.\n\t *\n\t * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.\n\t * @param {Function[]} [listeners] An optional array of listener functions to add.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.addListeners = function addListeners(evt, listeners) {\n\t // Pass through to manipulateListeners\n\t return this.manipulateListeners(false, evt, listeners);\n\t };\n\t\n\t /**\n\t * Removes listeners in bulk using the manipulateListeners method.\n\t * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n\t * You can also pass it an event name and an array of listeners to be removed.\n\t * You can also pass it a regular expression to remove the listeners from all events that match it.\n\t *\n\t * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.\n\t * @param {Function[]} [listeners] An optional array of listener functions to remove.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.removeListeners = function removeListeners(evt, listeners) {\n\t // Pass through to manipulateListeners\n\t return this.manipulateListeners(true, evt, listeners);\n\t };\n\t\n\t /**\n\t * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.\n\t * The first argument will determine if the listeners are removed (true) or added (false).\n\t * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n\t * You can also pass it an event name and an array of listeners to be added/removed.\n\t * You can also pass it a regular expression to manipulate the listeners of all events that match it.\n\t *\n\t * @param {Boolean} remove True if you want to remove listeners, false if you want to add.\n\t * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.\n\t * @param {Function[]} [listeners] An optional array of listener functions to add/remove.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {\n\t var i;\n\t var value;\n\t var single = remove ? this.removeListener : this.addListener;\n\t var multiple = remove ? this.removeListeners : this.addListeners;\n\t\n\t // If evt is an object then pass each of its properties to this method\n\t if (typeof evt === 'object' && !(evt instanceof RegExp)) {\n\t for (i in evt) {\n\t if (evt.hasOwnProperty(i) && (value = evt[i])) {\n\t // Pass the single listener straight through to the singular method\n\t if (typeof value === 'function') {\n\t single.call(this, i, value);\n\t }\n\t else {\n\t // Otherwise pass back to the multiple function\n\t multiple.call(this, i, value);\n\t }\n\t }\n\t }\n\t }\n\t else {\n\t // So evt must be a string\n\t // And listeners must be an array of listeners\n\t // Loop over it and pass each one to the multiple method\n\t i = listeners.length;\n\t while (i--) {\n\t single.call(this, evt, listeners[i]);\n\t }\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Removes all listeners from a specified event.\n\t * If you do not specify an event then all listeners will be removed.\n\t * That means every event will be emptied.\n\t * You can also pass a regex to remove all events that match it.\n\t *\n\t * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.removeEvent = function removeEvent(evt) {\n\t var type = typeof evt;\n\t var events = this._getEvents();\n\t var key;\n\t\n\t // Remove different things depending on the state of evt\n\t if (type === 'string') {\n\t // Remove all listeners for the specified event\n\t delete events[evt];\n\t }\n\t else if (evt instanceof RegExp) {\n\t // Remove all events matching the regex.\n\t for (key in events) {\n\t if (events.hasOwnProperty(key) && evt.test(key)) {\n\t delete events[key];\n\t }\n\t }\n\t }\n\t else {\n\t // Remove all listeners in all events\n\t delete this._events;\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Alias of removeEvent.\n\t *\n\t * Added to mirror the node API.\n\t */\n\t proto.removeAllListeners = alias('removeEvent');\n\t\n\t /**\n\t * Emits an event of your choice.\n\t * When emitted, every listener attached to that event will be executed.\n\t * If you pass the optional argument array then those arguments will be passed to every listener upon execution.\n\t * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.\n\t * So they will not arrive within the array on the other side, they will be separate.\n\t * You can also pass a regular expression to emit to all events that match it.\n\t *\n\t * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n\t * @param {Array} [args] Optional array of arguments to be passed to each listener.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.emitEvent = function emitEvent(evt, args) {\n\t var listenersMap = this.getListenersAsObject(evt);\n\t var listeners;\n\t var listener;\n\t var i;\n\t var key;\n\t var response;\n\t\n\t for (key in listenersMap) {\n\t if (listenersMap.hasOwnProperty(key)) {\n\t listeners = listenersMap[key].slice(0);\n\t i = listeners.length;\n\t\n\t while (i--) {\n\t // If the listener returns true then it shall be removed from the event\n\t // The function is executed either with a basic call or an apply if there is an args array\n\t listener = listeners[i];\n\t\n\t if (listener.once === true) {\n\t this.removeListener(evt, listener.listener);\n\t }\n\t\n\t response = listener.listener.apply(this, args || []);\n\t\n\t if (response === this._getOnceReturnValue()) {\n\t this.removeListener(evt, listener.listener);\n\t }\n\t }\n\t }\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Alias of emitEvent\n\t */\n\t proto.trigger = alias('emitEvent');\n\t\n\t /**\n\t * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.\n\t * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.\n\t *\n\t * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n\t * @param {...*} Optional additional arguments to be passed to each listener.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.emit = function emit(evt) {\n\t var args = Array.prototype.slice.call(arguments, 1);\n\t return this.emitEvent(evt, args);\n\t };\n\t\n\t /**\n\t * Sets the current value to check against when executing listeners. If a\n\t * listeners return value matches the one set here then it will be removed\n\t * after execution. This value defaults to true.\n\t *\n\t * @param {*} value The new value to check for when executing listeners.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.setOnceReturnValue = function setOnceReturnValue(value) {\n\t this._onceReturnValue = value;\n\t return this;\n\t };\n\t\n\t /**\n\t * Fetches the current value to check against when executing listeners. If\n\t * the listeners return value matches this one then it should be removed\n\t * automatically. It will return true by default.\n\t *\n\t * @return {*|Boolean} The current value to check for or the default, true.\n\t * @api private\n\t */\n\t proto._getOnceReturnValue = function _getOnceReturnValue() {\n\t if (this.hasOwnProperty('_onceReturnValue')) {\n\t return this._onceReturnValue;\n\t }\n\t else {\n\t return true;\n\t }\n\t };\n\t\n\t /**\n\t * Fetches the events object and creates one if required.\n\t *\n\t * @return {Object} The events storage object.\n\t * @api private\n\t */\n\t proto._getEvents = function _getEvents() {\n\t return this._events || (this._events = {});\n\t };\n\t\n\t /**\n\t * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.\n\t *\n\t * @return {Function} Non conflicting EventEmitter class.\n\t */\n\t EventEmitter.noConflict = function noConflict() {\n\t exports.EventEmitter = originalGlobalValue;\n\t return EventEmitter;\n\t };\n\t\n\t // Expose the class either via AMD, CommonJS or the global object\n\t if (true) {\n\t !(__WEBPACK_AMD_DEFINE_RESULT__ = function () {\n\t return EventEmitter;\n\t }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t }\n\t else if (typeof module === 'object' && module.exports){\n\t module.exports = EventEmitter;\n\t }\n\t else {\n\t exports.EventEmitter = EventEmitter;\n\t }\n\t}.call(this));\n\n\n/***/ },\n/* 100 */\n/***/ function(module, exports) {\n\n\t/*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t'use strict';\n\t\n\t/**\n\t * Provides a Basic Widget\n\t */\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar DestroyableWidget = function () {\n\t function DestroyableWidget() {\n\t _classCallCheck(this, DestroyableWidget);\n\t\n\t this.listeners = [];\n\t }\n\t\n\t /**\n\t * Destroys a Widget\n\t */\n\t\n\t\n\t _createClass(DestroyableWidget, [{\n\t key: 'destroy',\n\t value: function destroy() {\n\t this.listeners.forEach(function (listener) {\n\t listener.element.removeEventListener.apply(listener.element, listener.args);\n\t });\n\t this.listeners = [];\n\t }\n\t\n\t /**\n\t * Adds an event and registers it later to remove bindings\n\t * @param {HTMLElement} element\n\t * @param {String} name\n\t * @param {Function} listener\n\t * @param {boolean} [capture]\n\t * @returns {Function}\n\t */\n\t\n\t }, {\n\t key: 'addEventListener',\n\t value: function addEventListener(element, name, listener, capture) {\n\t this.listeners.push({\n\t element: element,\n\t args: [name, listener, capture]\n\t });\n\t\n\t element.addEventListener(name, listener, capture);\n\t return listener;\n\t }\n\t }]);\n\t\n\t return DestroyableWidget;\n\t}();\n\t\n\texports.default = DestroyableWidget;\n\n/***/ },\n/* 101 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t/*!\n\t * FlexCss.Modal\n\t * Licensed under the MIT License (MIT)\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t */\n\t\n\t'use strict';\n\t\n\t/* global KeyboardEvent */\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_MODAL_ASYNC_TARGET_LOADED = exports.EVENT_MODAL_INIT = exports.EVENT_MODAL_OPENED = exports.EVENT_MODAL_BEFORE_CLOSED = exports.EVENT_MODAL_CLOSED = undefined;\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tvar _Event = __webpack_require__(33);\n\t\n\tvar _Event2 = _interopRequireDefault(_Event);\n\t\n\tvar _Util = __webpack_require__(22);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tvar _Widget = __webpack_require__(36);\n\t\n\tvar _Widget2 = _interopRequireDefault(_Widget);\n\t\n\tvar _FixedWindow = __webpack_require__(51);\n\t\n\tvar _FixedWindow2 = _interopRequireDefault(_FixedWindow);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar HTML_ELEMENT = global.document.documentElement;\n\tvar KEY_ESC = 27;\n\t/* Attribute Names */\n\tvar ATTR_CREATE_NEW = 'data-new-instance';\n\tvar ATTR_CLOSE = 'data-close-modal';\n\tvar ATTR_NAME = 'data-modal';\n\t\n\t/* Class names */\n\tvar CLS_CONTAINER_CURRENT = 'front';\n\tvar CLS_OPEN = 'open';\n\tvar CLS_CURRENT = 'current';\n\tvar CLS_PART_OF_STACK = 'part-of-stack';\n\tvar CLS_MODAL_OPEN = 'modal-open';\n\tvar CLS_MODAL_CONTAINER = 'modal-container';\n\tvar CLS_ANIM_END = 'modal-anim-end';\n\tvar CLS_LOADER_CONTAINER = 'loader-container';\n\tvar CLS_LOADER = 'loader';\n\t\n\t/* Events */\n\t\n\t/**\n\t * Event triggered when modal is closed\n\t * @type {string}\n\t */\n\tvar EVENT_MODAL_CLOSED = exports.EVENT_MODAL_CLOSED = 'flexcss.modal.closed';\n\t/**\n\t * Event triggered before a modal is closed, cancelable\n\t * @type {string}\n\t */\n\tvar EVENT_MODAL_BEFORE_CLOSED = exports.EVENT_MODAL_BEFORE_CLOSED = 'flexcss.modal.beforeClose';\n\t/**\n\t * Event triggered when a modal is opened\n\t * @type {string}\n\t */\n\tvar EVENT_MODAL_OPENED = exports.EVENT_MODAL_OPENED = 'flexcss.modal.opened';\n\t\n\t/**\n\t * Event triggered when modal is initilized, called on target\n\t * @type {string}\n\t */\n\tvar EVENT_MODAL_INIT = exports.EVENT_MODAL_INIT = 'flexcss.modal.init';\n\t\n\t/**\n\t * Triggered when the content of an async modal on a target is loaded, called on target\n\t * @type {string}\n\t */\n\tvar EVENT_MODAL_ASYNC_TARGET_LOADED = exports.EVENT_MODAL_ASYNC_TARGET_LOADED = 'flexcss.modal.asyncTargetLoaded';\n\t\n\t/**\n\t * A Modal Implementation\n\t */\n\t\n\tvar Modal = function () {\n\t function Modal(DelegateContainer, options) {\n\t _classCallCheck(this, Modal);\n\t\n\t var doc = global.document;\n\t var container = DelegateContainer instanceof HTMLElement ? DelegateContainer : doc.getElementById(DelegateContainer);\n\t\n\t // Instance vars:\n\t if (!container) {\n\t throw new Error('Could not found container element by given ID/Element: ' + DelegateContainer);\n\t }\n\t\n\t this.currentOpen = null;\n\t\n\t this.loading = false;\n\t\n\t this.container = container;\n\t\n\t /**\n\t * Default Options\n\t */\n\t this.options = {\n\t classNames: 'modal',\n\t closeOnEscape: true,\n\t closeOnBackgroundClick: true,\n\t destroyOnFinish: false,\n\t fixedContainer: true,\n\t containerClassNames: ''\n\t };\n\t\n\t Object.assign(this.options, options);\n\t\n\t // Container where events are delegated\n\t this.eventContainer = null;\n\t this.eventFunction = null;\n\t\n\t this.dataMainPageContainer = global.document.body;\n\t\n\t this.currentScrollTop = 0;\n\t\n\t this.modalContainer = null;\n\t\n\t // Destroy full modal instance when no dialogs are bind to?\n\t // Otherwise container is recycled\n\t this.destroyOnFinish = this.options.destroyOnFinish;\n\t }\n\t\n\t /**\n\t * Removes this modal from global stack\n\t * Will handle fixing main html element too\n\t * @private\n\t * @param n\n\t */\n\t\n\t\n\t _createClass(Modal, [{\n\t key: '_removeModalFromStack',\n\t value: function _removeModalFromStack(n) {\n\t var t = Modal._modalInstances.indexOf(n);\n\t if (t > -1) {\n\t Modal._modalInstances.splice(t, 1);\n\t _FixedWindow2.default.getInstance().close().then(function () {\n\t HTML_ELEMENT.classList.remove(CLS_MODAL_OPEN);\n\t });\n\t }\n\t }\n\t\n\t /**\n\t * Modal container that contains all `stacked` modals for this instance\n\t * @returns {HTMLElement}\n\t */\n\t\n\t }, {\n\t key: 'getModalContainer',\n\t value: function getModalContainer() {\n\t return this.modalContainer;\n\t }\n\t\n\t /**\n\t * Closes the current open modal of this stack\n\t * @params [e], optional event\n\t * @returns {*}\n\t */\n\t\n\t }, {\n\t key: 'close',\n\t value: function close(e) {\n\t var self = this;\n\t\n\t var options = self.currentOpen ? _Util2.default.applyOptionsFromElement(self.currentOpen, _Util2.default.copy(self.options)) : self.options;\n\t\n\t // close only on keyboard if instance should\n\t if (!options.closeOnEscape && e instanceof KeyboardEvent) {\n\t return false;\n\t }\n\t\n\t // close only on background if instance should\n\t if (!options.closeOnBackgroundClick && e && e.type === _Settings2.default.getTabEvent() && !e.target.hasAttribute(ATTR_CLOSE)) {\n\t return false;\n\t }\n\t\n\t // if an instance is currently loading, prevent from closing\n\t if (self.loading) {\n\t return false;\n\t }\n\t\n\t if (e) {\n\t e.preventDefault();\n\t }\n\t\n\t if (self.currentOpen) {\n\t // dispatch beforeClose event, if prevented prevent modal from closing\n\t var ev = _Event2.default.dispatchAndFire(self.currentOpen, EVENT_MODAL_BEFORE_CLOSED);\n\t if (ev.defaultPrevented) {\n\t return false;\n\t }\n\t\n\t this._finishState(self.currentOpen);\n\t // if there is an previous modal\n\t if (self.currentOpen.prevModal) {\n\t // switch to the next modal\n\t return self.switchModals(self.currentOpen.prevModal, self.currentOpen.prevModal.prevModal || null);\n\t }\n\t\n\t // finally trigger closed event\n\t _Event2.default.dispatch(self.currentOpen, EVENT_MODAL_CLOSED).withOriginal(e).fire();\n\t }\n\t self._removeModalFromStack(self.currentOpen);\n\t\n\t // Full stack closed:\n\t self.currentOpen = null;\n\t if (self.modalContainer) {\n\t // setup next open\n\t var lastContainer = Modal._modalInstances[Modal._modalInstances.length - 1],\n\t classList = self.modalContainer.classList;\n\t classList.remove(CLS_CONTAINER_CURRENT);\n\t classList.remove(CLS_OPEN);\n\t // Remove all current classes from child-nodes\n\t for (var i = 0; i < self.modalContainer.childNodes.length; i++) {\n\t var node = self.modalContainer.childNodes[i],\n\t cl = node.classList;\n\t // remove applied styles\n\t self._finishState(node);\n\t cl.remove(CLS_CURRENT);\n\t cl.remove(CLS_PART_OF_STACK);\n\t }\n\t if (lastContainer) {\n\t lastContainer.parentNode.classList.add(CLS_CONTAINER_CURRENT);\n\t }\n\t }\n\t\n\t if (self.destroyOnFinish) {\n\t self.destroy();\n\t }\n\t return self;\n\t }\n\t\n\t /**\n\t * Resets a target when newly initilizes\n\t * @param target\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_finishState',\n\t value: function _finishState(target) {\n\t target.classList.remove(CLS_ANIM_END);\n\t }\n\t\n\t /**\n\t * Handler called when a Modal has finished an animation\n\t * @param e\n\t * @param self\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_finishAnim',\n\t value: function _finishAnim(e, self) {\n\t e.target.classList.add(CLS_ANIM_END);\n\t e.target.removeEventListener(e.type, self, true);\n\t }\n\t\n\t /**\n\t * Brings the given modal to front\n\t * @param co\n\t * @param last\n\t */\n\t\n\t }, {\n\t key: 'switchModals',\n\t value: function switchModals(co, last) {\n\t co.prevModal = last;\n\t Modal._modalInstances.push(co);\n\t _FixedWindow2.default.getInstance().open(this);\n\t if (last) {\n\t this._finishState(last);\n\t _Util2.default.prefixedAnimateEvent(last, 'AnimationEnd', this._finishAnim);\n\t last.classList.add(CLS_PART_OF_STACK);\n\t }\n\t // set new currentOpen\n\t this.currentOpen = co;\n\t\n\t // bring current container to the front\n\t var instances = Modal._modalInstances;\n\t\n\t for (var m = 0; m < instances.length; m++) {\n\t instances[m].parentNode.classList.remove(CLS_CONTAINER_CURRENT);\n\t }\n\t this.modalContainer.classList.add(CLS_CONTAINER_CURRENT);\n\t // remove animations if animations has been completed, fixes various bugs:\n\t // - fixes nested scrolling element issue in iOS Browsers / Mobile-Safari\n\t _Util2.default.prefixedAnimateEvent(co, 'AnimationEnd', this._finishAnim);\n\t\n\t for (var i = 0; i < this.modalContainer.childNodes.length; i++) {\n\t var n = this.modalContainer.childNodes[i],\n\t isCurrent = n.classList.contains(CLS_CURRENT);\n\t if (n === co) {\n\t co.classList.add(CLS_CURRENT);\n\t co.classList.remove(CLS_PART_OF_STACK);\n\t this._finishState(co);\n\t } else {\n\t n.classList.remove(CLS_CURRENT);\n\t if (isCurrent) {\n\t this._removeModalFromStack(n);\n\t _Event2.default.dispatchAndFire(n, EVENT_MODAL_CLOSED);\n\t }\n\t }\n\t }\n\t }\n\t }, {\n\t key: 'handleScrollbar',\n\t value: function handleScrollbar() {\n\t if (Modal._modalInstances.length === 0) {\n\t HTML_ELEMENT.classList.add(CLS_MODAL_OPEN);\n\t }\n\t }\n\t\n\t /**\n\t * Creates a Modal and opens it (later)\n\t * @param e\n\t * @returns {Promise|boolean}\n\t */\n\t\n\t }, {\n\t key: 'createWidget',\n\t value: function createWidget(e) {\n\t var self = this;\n\t if (this.loading) {\n\t return false;\n\t }\n\t\n\t // check if another modal has registered events on this dom path:\n\t if (e && e.target) {\n\t var foundInstance = _Util2.default.parentsUntil(e.target, function (node) {\n\t return node && node.flexModalInstance;\n\t });\n\t\n\t // if another instance has been found, abort\n\t if (foundInstance !== this.container) {\n\t return false;\n\t }\n\t }\n\t var targetContent,\n\t future,\n\t widget,\n\t target,\n\t hasTarget = true,\n\t isHtmlElement = e instanceof HTMLElement,\n\t isWidget = _Widget2.default.isWidget(e);\n\t if (isHtmlElement || isWidget) {\n\t if (isHtmlElement) {\n\t targetContent = e;\n\t } else {\n\t widget = e;\n\t targetContent = widget.element;\n\t }\n\t } else {\n\t target = e.target;\n\t if (!target) {\n\t throw 'Could not find target, did you pass an event, a HTMLElement or an Widget?';\n\t }\n\t hasTarget = target.hasAttribute(ATTR_NAME);\n\t targetContent = target.getAttribute(ATTR_NAME);\n\t widget = _Widget2.default.findWidget(target);\n\t if (target.hasAttribute(ATTR_CREATE_NEW) && !e.newInstance) {\n\t var newInstance = new Modal(this.container).setDestroyOnFinish(true);\n\t e.newInstance = true;\n\t newInstance.fromEvent(e).then(function () {\n\t newInstance.registerEvents(newInstance.getModalContainer());\n\t });\n\t return false;\n\t }\n\t if (hasTarget) {\n\t e.stopImmediatePropagation();\n\t e.preventDefault();\n\t }\n\t }\n\t\n\t if (!hasTarget) {\n\t return false;\n\t }\n\t\n\t var modalContainerClasses = this.modalContainer ? this.modalContainer.classList : [];\n\t\n\t // lazy create modal container\n\t if (!this.modalContainer) {\n\t this.modalContainer = global.document.createElement('div');\n\t this.modalContainer.className = CLS_MODAL_CONTAINER + ' ' + this.options.containerClassNames + ' ' + CLS_OPEN;\n\t var closeModalFunction = function closeModalFunction(ce) {\n\t if (self.loading) {\n\t return false;\n\t }\n\t if (_Util2.default.isPartOfNode(ce.target, self.currentOpen)) {\n\t if (!ce.target.hasAttribute(ATTR_CLOSE)) {\n\t return false;\n\t }\n\t }\n\t self.close(ce);\n\t };\n\t\n\t this.modalContainer.addEventListener(_Settings2.default.getTabEvent(), closeModalFunction, false);\n\t\n\t modalContainerClasses = this.modalContainer.classList;\n\t this.container.appendChild(this.modalContainer);\n\t } else {\n\t modalContainerClasses.add(CLS_OPEN);\n\t }\n\t\n\t var loader = undefined,\n\t doc = global.document,\n\t toggleLoader = function toggleLoader(show) {\n\t if (show) {\n\t loader = doc.createElement('div');\n\t loader.className = CLS_LOADER_CONTAINER;\n\t var loaderLoader = doc.createElement('div');\n\t loaderLoader.className = CLS_LOADER;\n\t loader.appendChild(loaderLoader);\n\t self.modalContainer.appendChild(loader);\n\t } else {\n\t loader.parentNode.removeChild(loader);\n\t }\n\t };\n\t\n\t this.handleScrollbar();\n\t\n\t modalContainerClasses.add(CLS_CONTAINER_CURRENT);\n\t modalContainerClasses.add('loading');\n\t this.loading = true;\n\t toggleLoader(true);\n\t var async = widget ? widget.getAsync() : null;\n\t if (_Widget2.default.isWidget(widget) && async) {\n\t future = async.then(function (r) {\n\t var result;\n\t if (r instanceof HTMLElement || r instanceof DocumentFragment) {\n\t result = r;\n\t } else {\n\t // Create container Element:\n\t var element = doc.createElement('div');\n\t element.className = self.options.classNames;\n\t element.innerHTML = r;\n\t element.id = _Util2.default.guid();\n\t result = element;\n\t }\n\t widget.finalContent = result;\n\t _Event2.default.dispatchAndFire(target, EVENT_MODAL_ASYNC_TARGET_LOADED);\n\t return result;\n\t });\n\t } else {\n\t var el = targetContent instanceof HTMLElement || targetContent instanceof DocumentFragment ? targetContent : doc.getElementById(targetContent);\n\t if (el) {\n\t future = new Promise(function (resolve) {\n\t resolve(el);\n\t });\n\t } else {\n\t throw 'Could not found given modal element (content) with ID: ' + targetContent;\n\t }\n\t }\n\t\n\t _Event2.default.dispatchAndFire(target, EVENT_MODAL_INIT);\n\t\n\t return future.then(function (thisEl) {\n\t thisEl.hfWidgetInstance = self;\n\t self.modalContainer.appendChild(thisEl);\n\t modalContainerClasses.remove('loading');\n\t self.loading = false;\n\t toggleLoader(false);\n\t\n\t self.open(thisEl, true, e);\n\t\n\t return thisEl;\n\t });\n\t }\n\t\n\t /**\n\t * Open's an already rendered modal\n\t * @param {HTMLElement} modal\n\t * @param {Boolean} [internal], set to true to prevent container management\n\t * @param {Boolean} [maybeEvent], optional event-object that triggered open\n\t */\n\t\n\t }, {\n\t key: 'open',\n\t value: function open(modal, internal, maybeEvent) {\n\t\n\t if (!internal) {\n\t this.modalContainer.classList.add('open');\n\t this.handleScrollbar();\n\t }\n\t this.switchModals(modal, this.currentOpen);\n\t\n\t _Event2.default.dispatch(modal, EVENT_MODAL_OPENED).withOriginal(maybeEvent).fire();\n\t }\n\t }, {\n\t key: 'registerEvents',\n\t value: function registerEvents(delegate) {\n\t var delegateContainer = delegate || this.container,\n\t self = this;\n\t // Modals should always be fixed\n\t _FixedWindow2.default.getInstance().addScreenConstraint(Modal, function (width) {\n\t return true;\n\t });\n\t // register modal instance so we can detect multiple registrars\n\t delegateContainer.flexModalInstance = self;\n\t self.eventFunction = function () {\n\t self.createWidget.apply(self, arguments);\n\t };\n\t delegateContainer.addEventListener(_Settings2.default.getTabEvent(), self.eventFunction, false);\n\t\n\t self.eventContainer = delegateContainer;\n\t return self;\n\t }\n\t\n\t /**\n\t * Creates a new Dialog Instance either directly from HTML Element or a Widget instance\n\t * @param {HTMLElement|Widget} widget instance or html element\n\t * @returns {Promise}\n\t */\n\t\n\t }, {\n\t key: 'fromWidget',\n\t value: function fromWidget(widget) {\n\t return this.createWidget(widget);\n\t }\n\t\n\t /**\n\t * Creates a Widget from event\n\t * @param e\n\t * @returns {Promise}\n\t */\n\t\n\t }, {\n\t key: 'fromEvent',\n\t value: function fromEvent(e) {\n\t return this.createWidget(e);\n\t }\n\t }, {\n\t key: 'setDestroyOnFinish',\n\t value: function setDestroyOnFinish(v) {\n\t this.destroyOnFinish = v;\n\t return this;\n\t }\n\t\n\t /**\n\t * Destroy this widget instance, cleans empty DOM nodes\n\t * Will use fast MutationObserver if available, otherwise falls back to DOMNodeRemoved event\n\t */\n\t\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t var self = this,\n\t modalContainer = this.modalContainer;\n\t var isEmptyContainer = modalContainer.childNodes.length === 0;\n\t // Remove event listener on destroy, do not remove DOM node\n\t if (self.eventContainer) {\n\t self.eventContainer.removeEventListener(_Settings2.default.getTabEvent(), self.eventFunction, true);\n\t }\n\t\n\t if (isEmptyContainer) {\n\t if (modalContainer.parentNode) {\n\t modalContainer.parentNode.removeChild(modalContainer);\n\t }\n\t }\n\t if (global.MutationObserver) {\n\t var observer = new MutationObserver(function (mutations) {\n\t mutations.forEach(function () {\n\t if (isEmptyContainer) {\n\t modalContainer.parentNode.removeChild(modalContainer);\n\t observer.disconnect();\n\t }\n\t });\n\t });\n\t observer.observe(modalContainer, { childList: true });\n\t } else {\n\t modalContainer.addEventListener('DOMNodeRemoved', function (e) {\n\t if (e.target !== modalContainer && modalContainer.childNodes.length - 1 === 0) {\n\t modalContainer.parentNode.removeChild(modalContainer);\n\t }\n\t });\n\t }\n\t }\n\t }]);\n\t\n\t return Modal;\n\t}();\n\t\n\t// Static variable that keeps track of all open modals\n\t\n\t\n\tModal._modalInstances = [];\n\t\n\t// Global keydown listener for modal\n\tglobal.addEventListener('keydown', function (e) {\n\t if (e.keyCode === KEY_ESC) {\n\t var lastModal = Modal._modalInstances[Modal._modalInstances.length - 1];\n\t if (lastModal) {\n\t _Widget2.default.findWidget(lastModal).close(e);\n\t }\n\t }\n\t});\n\t\n\texports.default = Modal;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 102 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\t\n\tvar _Util = __webpack_require__(22);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tvar _DestroyableWidget2 = __webpack_require__(100);\n\t\n\tvar _DestroyableWidget3 = _interopRequireDefault(_DestroyableWidget2);\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t/*!\n\t * FlexCss.Tooltip\n\t * Licensed under the MIT License (MIT)\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t */\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar CLASS_NAMES_TOOLTIP = 'tooltip-container';\n\t/**\n\t * @type {string}\n\t */\n\tvar CLASS_NAMES_OPEN = 'open';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_CLASSNAME = 'data-class';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_NO_TOUCH = 'data-no-touch';\n\t\n\t/**\n\t * @type {HTMLDocument}\n\t */\n\tvar doc = global.document;\n\t\n\t/**\n\t * Simple Tooltip\n\t */\n\t\n\tvar Tooltip = function (_DestroyableWidget) {\n\t _inherits(Tooltip, _DestroyableWidget);\n\t\n\t /**\n\t * Creates a Tooltip\n\t * @param {HTMLElement|String} DelegateContainer\n\t * @param {Object} [options]\n\t */\n\t\n\t function Tooltip(DelegateContainer, options) {\n\t _classCallCheck(this, Tooltip);\n\t\n\t /**\n\t * The Container where possible events are captured\n\t */\n\t\n\t var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Tooltip).call(this));\n\t\n\t _this.container = DelegateContainer instanceof HTMLElement ? DelegateContainer : doc.getElementById(DelegateContainer);\n\t\n\t if (!_this.container) {\n\t throw new Error('Could not create Tooltip, DelegateContainer not found');\n\t }\n\t\n\t /**\n\t * The Container where tooltips are stored for this instance\n\t * @type {HTMLElement}\n\t */\n\t _this.tooltipContainer = null;\n\t\n\t /**\n\t * Default Options\n\t */\n\t _this.options = {\n\t containerClass: '',\n\t selectorAttribute: 'data-tooltip',\n\t collisionContainer: _this.container\n\t };\n\t\n\t Object.assign(_this.options, options || {});\n\t return _this;\n\t }\n\t\n\t /**\n\t * Creates and shows a tooltip\n\t * @param {HTMLElement} target where is this tooltip positioned\n\t * @param {String} text text content in tooltip, will be NOT escaped\n\t * @param {Boolean} [removeTitle] removes title element if given\n\t * @param {Node} [positionRelative]\n\t */\n\t\n\t\n\t _createClass(Tooltip, [{\n\t key: 'createTooltip',\n\t value: function createTooltip(target, text, removeTitle, positionRelative) {\n\t // abort if text is empty\n\t if (!text || text && text.trim() === '') {\n\t return;\n\t }\n\t\n\t if (_Settings2.default.isTouchDevice() && target && target.hasAttribute(ATTR_DATA_NO_TOUCH)) {\n\t return;\n\t }\n\t\n\t var tooltipContainer = this.tooltipContainer;\n\t\n\t if (!tooltipContainer) {\n\t tooltipContainer = doc.createElement('div');\n\t this.container.appendChild(tooltipContainer);\n\t this.tooltipContainer = tooltipContainer;\n\t }\n\t this._restoreClassNames(tooltipContainer, target);\n\t\n\t tooltipContainer.style.left = 'auto';\n\t tooltipContainer.style.top = 'auto';\n\t tooltipContainer.innerHTML = text;\n\t tooltipContainer.flexTooltipCurrentTarget = target;\n\t if (removeTitle) {\n\t target.oldTitle = text;\n\t target.removeAttribute('title');\n\t }\n\t\n\t _Util2.default.setupPositionNearby(positionRelative || target, tooltipContainer, this.options.collisionContainer, true, true);\n\t\n\t tooltipContainer.classList.add(CLASS_NAMES_OPEN);\n\t }\n\t }, {\n\t key: '_restoreClassNames',\n\t value: function _restoreClassNames(container, target) {\n\t // allow additional classname per tooltip on target element\n\t var classNames = [CLASS_NAMES_TOOLTIP, this.options.containerClass];\n\t var maybeTargetClass = target.getAttribute(ATTR_DATA_CLASSNAME);\n\t if (maybeTargetClass) {\n\t classNames.push(maybeTargetClass);\n\t }\n\t container.className = classNames.join(\" \");\n\t return this;\n\t }\n\t\n\t /**\n\t * @returns {HTMLElement|null}\n\t */\n\t\n\t }, {\n\t key: 'getCurrentTarget',\n\t value: function getCurrentTarget() {\n\t return this.tooltipContainer ? this.tooltipContainer.flexTooltipCurrentTarget : null;\n\t }\n\t\n\t /**\n\t * Destroys this Widget\n\t * @returns {boolean}\n\t */\n\t\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t _get(Object.getPrototypeOf(Tooltip.prototype), 'destroy', this).call(this);\n\t\n\t if (this.tooltipContainer) {\n\t this.tooltipContainer.parentNode.removeChild(this.tooltipContainer);\n\t return true;\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Removes a Tooltip on given target\n\t * @param {HTMLElement} [target], if not given will remove current open tooltip on this instance\n\t */\n\t\n\t }, {\n\t key: 'removeTooltip',\n\t value: function removeTooltip(target) {\n\t var selfTarget = target;\n\t if (!selfTarget && this.tooltipContainer) {\n\t selfTarget = this.tooltipContainer.flexTooltipCurrentTarget;\n\t }\n\t if (this.tooltipContainer) {\n\t if (this.tooltipContainer.flexTooltipCurrentTarget !== selfTarget) {\n\t return;\n\t }\n\t this.tooltipContainer.classList.remove(CLASS_NAMES_OPEN);\n\t delete this.tooltipContainer.flexTooltipCurrentTarget;\n\t }\n\t if (selfTarget && selfTarget.oldTitle) {\n\t selfTarget.setAttribute('title', selfTarget.oldTitle);\n\t }\n\t }\n\t\n\t /**\n\t * Initilizes mouse events on container element\n\t */\n\t\n\t }, {\n\t key: 'registerEvents',\n\t value: function registerEvents() {\n\t var self = this;\n\t this.addEventListener(this.container, 'mouseover', function (e) {\n\t if (e.target.hasAttribute(self.options.selectorAttribute)) {\n\t self.createTooltip(e.target, e.target.getAttribute('title'), true);\n\t }\n\t });\n\t\n\t this.addEventListener(this.container, 'mouseout', function (e) {\n\t if (e.target.hasAttribute(self.options.selectorAttribute)) {\n\t self.removeTooltip(e.target);\n\t }\n\t });\n\t return this;\n\t }\n\t }]);\n\t\n\t return Tooltip;\n\t}(_DestroyableWidget3.default);\n\t\n\texports.default = Tooltip;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 103 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _stringify = __webpack_require__(111);\n\t\n\tvar _stringify2 = _interopRequireDefault(_stringify);\n\t\n\tvar _Marklib = __webpack_require__(50);\n\t\n\tvar _Marklib2 = _interopRequireDefault(_Marklib);\n\t\n\tvar _flexcss = __webpack_require__(110);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/* global localStorage, document */\n\t\n\tvar KEY_ENTER = 13;\n\t\n\t/**\n\t * Contains Module for the demonstration\n\t */\n\t\n\tdocument.addEventListener(\"DOMContentLoaded\", function () {\n\t var STORAGE_KEY = 'savedRanges';\n\t var ANIMATIONEND = 'animationend';\n\t var allRanges = [];\n\t var tooltip = new _flexcss.Tooltip(document.body);\n\t\n\t /**\n\t * Creates an animated rendering\n\t */\n\t function presentRendering(selector, classNames, speed) {\n\t var text = document.getElementById(selector).childNodes[0];\n\t var thisLength = text.length;\n\t\n\t var render = function render(autoMarkText, cp, length) {\n\t var c = cp;\n\t var r = new _Marklib2.default.Rendering(document, {\n\t className: classNames\n\t });\n\t var range = document.createRange();\n\t range.setStart(autoMarkText, 0);\n\t range.setEnd(autoMarkText, 1);\n\t r.renderWithRange(range);\n\t if (autoMarkText.parentNode.nextSibling) {\n\t (function () {\n\t var nextText = autoMarkText.parentNode.nextSibling.childNodes[0];\n\t setTimeout(function () {\n\t render(nextText, ++c, length);\n\t }, speed);\n\t })();\n\t }\n\t };\n\t\n\t return render(text, 0, thisLength);\n\t }\n\t\n\t presentRendering('automark', 'fadeInDown', 20);\n\t\n\t var savedRanges = JSON.parse(localStorage.getItem(STORAGE_KEY)) || [];\n\t var animated = false;\n\t\n\t /**\n\t * OnClick event for renderings\n\t */\n\t function onClick() {\n\t var self = this;\n\t this.wrapperNodes.forEach(function (n) {\n\t n.addEventListener(ANIMATIONEND, function thisFunction(e) {\n\t e.target.classList.remove('bubble');\n\t e.target.removeEventListener(ANIMATIONEND, thisFunction);\n\t });\n\t n.classList.add('bubble');\n\t });\n\t\n\t if (tooltip.getCurrentTarget() === this.wrapperNodes[0]) {\n\t return;\n\t }\n\t\n\t tooltip.createTooltip(this.wrapperNodes[0], this.result.text, false);\n\t\n\t setTimeout(function () {\n\t if (tooltip.getCurrentTarget()) {\n\t document.addEventListener('click', function thisFunction() {\n\t if (tooltip.getCurrentTarget() && tooltip.getCurrentTarget() === self.wrapperNodes[0]) {\n\t tooltip.removeTooltip();\n\t }\n\t document.removeEventListener('click', thisFunction);\n\t });\n\t }\n\t }, 0);\n\t }\n\t\n\t savedRanges.forEach(function (range) {\n\t var marker = new _Marklib2.default.Rendering(document);\n\t try {\n\t marker.renderWithResult(range);\n\t allRanges.push(marker);\n\t marker.on('click', onClick);\n\t } catch (e) {\n\t console.warn(\"Could not render:\", range, e);\n\t localStorage.setItem(STORAGE_KEY, (0, _stringify2.default)([]));\n\t console.error('Cleared local storage because of a rendering issue, the page might have been changed ;)');\n\t }\n\t });\n\t\n\t window.addEventListener('scroll', function () {\n\t var el = document.getElementById('secondParagraph');\n\t var r = el.getBoundingClientRect();\n\t var html = document.documentElement;\n\t if (r.top <= html.clientHeight && r.bottom >= 0 && !animated) {\n\t animated = true;\n\t\n\t el.classList.add('animate');\n\t if (!savedRanges.length) {\n\t presentRendering('secondParagraphItem', 'marking', 30);\n\t }\n\t }\n\t });\n\t\n\t var actionMark = function actionMark() {\n\t try {\n\t var selection = document.getSelection();\n\t var renderer = new _Marklib2.default.Rendering(document);\n\t var result = renderer.renderWithRange(selection.getRangeAt(0));\n\t\n\t renderer.on('click', onClick);\n\t allRanges.push(renderer);\n\t\n\t selection.removeAllRanges();\n\t savedRanges.push(result.serialize());\n\t localStorage.setItem(STORAGE_KEY, (0, _stringify2.default)(savedRanges));\n\t } catch (e) {\n\t console.warn(\"Could not add selection: \", e);\n\t }\n\t };\n\t\n\t document.addEventListener(\"keydown\", function (e) {\n\t if (e.keyCode === KEY_ENTER) {\n\t actionMark();\n\t }\n\t });\n\t\n\t document.addEventListener(\"click\", function (e) {\n\t if (e.target.id === 'action-mark') {\n\t return actionMark();\n\t } else if (e.target.id === 'action-clear') {\n\t allRanges.forEach(function (range) {\n\t return range.destroy();\n\t });\n\t savedRanges = [];\n\t allRanges = [];\n\t localStorage.setItem(STORAGE_KEY, (0, _stringify2.default)([]));\n\t }\n\t });\n\t});\n\t\n\texports.default = _Marklib2.default;\n\n/***/ },\n/* 104 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t/*!\n\t * FlexCss.Dropdown\n\t * Licensed under the MIT License (MIT)\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t */\n\t\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_DROPDOWN_CLOSED = undefined;\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tvar _Util = __webpack_require__(22);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tvar _Event = __webpack_require__(33);\n\t\n\tvar _Event2 = _interopRequireDefault(_Event);\n\t\n\tvar _Widget = __webpack_require__(36);\n\t\n\tvar _Widget2 = _interopRequireDefault(_Widget);\n\t\n\tvar _FixedWindow = __webpack_require__(51);\n\t\n\tvar _FixedWindow2 = _interopRequireDefault(_FixedWindow);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_CC = 'data-collision-container';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DARKENER = 'data-darkener-container';\n\t/**\n\t * @type {string}\n\t */\n\tvar DARKENER_INIT = 'init';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_TARGET = 'data-target';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_CLOSE_DROPDOWN = 'data-close-dropdown';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_NAME = 'data-dropdown';\n\t/**\n\t * @type {string}\n\t */\n\tvar STATE_LOADING = 'loading';\n\t\n\tvar CLS_DARKENER_DROPDOWN = 'darkener-dropdown';\n\t/**\n\t * @type {string}\n\t */\n\tvar CLS_OPEN = 'open';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar CLS_DROPDOWN = 'dropdown';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_DROPDOWN_CLOSED = exports.EVENT_DROPDOWN_CLOSED = 'flexcss.dropdown.closed';\n\t\n\t/**\n\t * A Dropdown\n\t */\n\t\n\tvar Dropdown = function () {\n\t function Dropdown(DelegateContainer, Darkener) {\n\t _classCallCheck(this, Dropdown);\n\t\n\t var doc = global.document;\n\t\n\t /**\n\t * Container Element\n\t * @type {HTMLElement}\n\t */\n\t this.container = DelegateContainer instanceof HTMLElement ? DelegateContainer : doc.getElementById(DelegateContainer);\n\t\n\t this.currentOpen = null;\n\t this.currentTarget = null;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.darkener = Darkener instanceof HTMLElement ? Darkener : document.getElementById(Darkener);\n\t\n\t this.destroyOnClose = false;\n\t\n\t if (!this.darkener || !this.container) {\n\t throw new Error('required elements not found (darkener and container element)');\n\t }\n\t }\n\t\n\t /**\n\t * Method that handles delegation events for dropdowns\n\t * @param e\n\t * @returns {boolean}\n\t * @private\n\t */\n\t\n\t\n\t _createClass(Dropdown, [{\n\t key: '_delegateFunction',\n\t value: function _delegateFunction(e) {\n\t var currentOpen = this.currentOpen;\n\t var target = _Util2.default.closestCallback(e.target, function (n) {\n\t return n instanceof HTMLElement && n.hasAttribute(ATTR_NAME);\n\t });\n\t var targetIsCurrent = target === this.currentTarget;\n\t\n\t if (currentOpen && !_Util2.default.isPartOfNode(e.target, currentOpen) || targetIsCurrent) {\n\t this.close();\n\t if (targetIsCurrent) {\n\t e.preventDefault();\n\t }\n\t return targetIsCurrent ? false : this._delegateFunction(e);\n\t }\n\t\n\t if (target && !currentOpen) {\n\t e.preventDefault();\n\t e.stopImmediatePropagation();\n\t\n\t if (target.isLoading) {\n\t return false;\n\t }\n\t this.createDropdown(target);\n\t } else {\n\t if (currentOpen) {\n\t if (e.target.hasAttribute(ATTR_CLOSE_DROPDOWN)) {\n\t e.preventDefault();\n\t this.close();\n\t }\n\t if (!_Util2.default.isPartOfNode(e.target, currentOpen)) {\n\t this.close();\n\t }\n\t }\n\t }\n\t }\n\t\n\t /**\n\t * Register Events for this dropdown container\n\t * @returns {Dropdown}\n\t */\n\t\n\t }, {\n\t key: 'registerEvents',\n\t value: function registerEvents() {\n\t _FixedWindow2.default.getInstance().addScreenConstraint(Dropdown, function (width) {\n\t return width < _Settings2.default.get().smallBreakpoint;\n\t });\n\t this.container.addEventListener(_Settings2.default.getTabEvent(), this._delegateFunction.bind(this), true);\n\t return this;\n\t }\n\t\n\t /**\n\t * Destroys this instance, unbinds events\n\t * @returns {Dropdown}\n\t */\n\t\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t this.container.removeEventListener(_Settings2.default.getTabEvent(), this._delegateFunction.bind(this), true);\n\t return this;\n\t }\n\t\n\t /**\n\t * Destroys instance on close of dropdown\n\t * @param v\n\t * @returns {Dropdown}\n\t */\n\t\n\t }, {\n\t key: 'setDestroyOnClose',\n\t value: function setDestroyOnClose(v) {\n\t this.destroyOnClose = v;\n\t return this;\n\t }\n\t\n\t /**\n\t * Will add the right class to container for specific darkener id\n\t * @param instance\n\t * @param show\n\t */\n\t\n\t }, {\n\t key: 'toggleDarkenerToggler',\n\t value: function toggleDarkenerToggler(instance, show) {\n\t var cls = 'toggle-' + (instance.id || CLS_DARKENER_DROPDOWN);\n\t var classList = this.container.classList;\n\t if (show) {\n\t classList.add(cls);\n\t } else {\n\t classList.remove(cls);\n\t }\n\t }\n\t\n\t /**\n\t * Closes Dropdown on current instance\n\t * @return {Boolean|Promise}\n\t */\n\t\n\t }, {\n\t key: 'close',\n\t value: function close() {\n\t var _this = this;\n\t\n\t var currentOpen = this.currentOpen;\n\t if (!currentOpen) {\n\t return false;\n\t }\n\t var future = undefined;\n\t var darkenerInstance = currentOpen.flexDarkenerInstance || this.darkener;\n\t var thisCurrentOpen = currentOpen;\n\t\n\t future = new Promise(function (resolve) {\n\t if (window.getComputedStyle(currentOpen).position === 'fixed') {\n\t _Util2.default.addEventOnce(_Settings2.default.getTransitionEvent(), currentOpen, function () {\n\t setTimeout(function () {\n\t _Event2.default.dispatchAndFire(thisCurrentOpen, EVENT_DROPDOWN_CLOSED);\n\t // if a new dropdown has been opened in the meantime, do not remove darkener\n\t if (_this.currentOpen !== null) {\n\t return false;\n\t }\n\t _this.toggleDarkenerToggler(darkenerInstance, false);\n\t resolve(true);\n\t }, _Settings2.default.get().darkenerFadeDelay);\n\t });\n\t } else {\n\t resolve(true);\n\t _Event2.default.dispatchAndFire(thisCurrentOpen, EVENT_DROPDOWN_CLOSED);\n\t }\n\t });\n\t\n\t _FixedWindow2.default.getInstance().close();\n\t currentOpen.classList.remove(CLS_OPEN);\n\t\n\t if (currentOpen.flexDarkenerInstance) {\n\t currentOpen.flexDarkenerInstance.classList.remove(DARKENER_INIT);\n\t } else {\n\t this.darkener.classList.remove(DARKENER_INIT);\n\t }\n\t\n\t this.currentOpen = null;\n\t this.currentTarget = null;\n\t\n\t if (this.destroyOnClose) {\n\t this.destroy();\n\t }\n\t\n\t return future;\n\t }\n\t\n\t /**\n\t * Creates a dropdown on given target and opens it\n\t * @param {HTMLElement} target target where this dropdown is placed\n\t * @param {FlexCss.Widget} [thisWidget] if given will use widget instead of widget instance\n\t * @return {FlexCss.Dropdown}\n\t */\n\t\n\t }, {\n\t key: 'createDropdown',\n\t value: function createDropdown(target, thisWidget) {\n\t var _this2 = this;\n\t\n\t var doc = global.document;\n\t\n\t if (!target) {\n\t throw new Error('Dropdown target not found');\n\t }\n\t\n\t var widget = thisWidget || _Widget2.default.findWidget(target);\n\t var future = undefined;\n\t var data = target.getAttribute(ATTR_NAME);\n\t var dropdownContainerElement = doc.getElementById(data);\n\t var async = !dropdownContainerElement && _Widget2.default.isWidget(widget) ? widget.getAsync() : false;\n\t\n\t if (async) {\n\t target.classList.add(STATE_LOADING);\n\t target.isLoading = true;\n\t future = async.then(function (r) {\n\t if (r instanceof HTMLElement) {\n\t if (r.id) {\n\t target.setAttribute(ATTR_NAME, r.id);\n\t }\n\t return r;\n\t }\n\t // Create container Element:\n\t var element = doc.createElement('div');\n\t element.className = CLS_DROPDOWN;\n\t element.innerHTML = r;\n\t element.id = _Util2.default.guid();\n\t // Cache target for later use:\n\t target.setAttribute(ATTR_NAME, element.id);\n\t _this2.container.appendChild(element);\n\t return element;\n\t }).then(function (r) {\n\t target.isLoading = false;\n\t target.classList.remove(STATE_LOADING);\n\t return r;\n\t });\n\t } else {\n\t if (!dropdownContainerElement) {\n\t throw new Error('Could not found Dropdown container with ID \"' + data + '\"');\n\t }\n\t future = new Promise(function (r) {\n\t r(dropdownContainerElement);\n\t });\n\t }\n\t\n\t future.then(function (dropdownContent) {\n\t if (_this2.currentOpen) {\n\t _this2.close();\n\t }\n\t // Skip one frame to show animation\n\t target.dropdownContent = dropdownContent;\n\t var isAbsolute = global.getComputedStyle(dropdownContent).position === 'absolute';\n\t dropdownContent.hfWidgetInstance = _this2;\n\t\n\t if (!target.flexCollisionContainer) {\n\t var collisionC = target.getAttribute(ATTR_CC);\n\t target.flexCollisionContainer = collisionC ? doc.getElementById(collisionC) || document.documentElement : document.documentElement;\n\t }\n\t\n\t dropdownContent.classList.toggle(CLS_OPEN);\n\t if (dropdownContent.classList.contains(CLS_OPEN)) {\n\t _this2.currentOpen = dropdownContent;\n\t _this2.currentTarget = target;\n\t }\n\t if (isAbsolute) {\n\t // Check collision:\n\t var selfTarget = target.getAttribute(ATTR_DATA_TARGET);\n\t selfTarget = selfTarget ? doc.getElementById(selfTarget) : target;\n\t _Util2.default.setupPositionNearby(selfTarget, dropdownContent, target.flexCollisionContainer);\n\t } else {\n\t _FixedWindow2.default.getInstance().open(_this2);\n\t // optionally get custom darkener container for target\n\t var d = target.getAttribute(ATTR_DARKENER);\n\t if (d) {\n\t dropdownContent.flexDarkenerInstance = doc.getElementById(d);\n\t (dropdownContent.flexDarkenerInstance || _this2.darkener).classList.toggle(DARKENER_INIT);\n\t } else {\n\t _this2.darkener.classList.toggle(DARKENER_INIT);\n\t }\n\t _this2.toggleDarkenerToggler(dropdownContent.flexDarkenerInstance || _this2.darkener, true);\n\t\n\t dropdownContent.style.left = '0';\n\t dropdownContent.style.top = 'auto';\n\t }\n\t });\n\t }\n\t }]);\n\t\n\t return Dropdown;\n\t}();\n\t\n\texports.default = Dropdown;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 105 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/*global HTMLFormElement, fetch, FormData, clearTimeout, NodeList*/\n\t\n\t/*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t/*!\n\t * FlexCss.Form\n\t * Licensed under the MIT License (MIT)\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t */\n\t\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_FORM_AJAX_COMPLETED = exports.EVENT_FORM_AFTER_AJAX_SUBMIT = exports.EVENT_FORM_SUBMIT = exports.EVENT_FORM_READY = undefined;\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\t\n\tvar _Tooltip = __webpack_require__(102);\n\t\n\tvar _Tooltip2 = _interopRequireDefault(_Tooltip);\n\t\n\t__webpack_require__(114);\n\t\n\tvar _Event = __webpack_require__(33);\n\t\n\tvar _Event2 = _interopRequireDefault(_Event);\n\t\n\tvar _Util = __webpack_require__(22);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tvar _DestroyableWidget2 = __webpack_require__(100);\n\t\n\tvar _DestroyableWidget3 = _interopRequireDefault(_DestroyableWidget2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar LOADING_CLASS = 'loading';\n\tvar DATA_ELEMENT_INVALID = 'data-flexcss-invalid';\n\tvar REMOTE = 'data-remote';\n\tvar REMOTE_ACTION = 'data-remote-action';\n\tvar ATTR_DISABLE_INLINE = 'data-disable-inline-validation';\n\tvar ATTR_DISABLE_REALTIME = 'data-disable-realtime-validation';\n\tvar ATTR_VALIDATOR = 'data-validate';\n\tvar ATTR_DATA_CUSTOM_MESSAGE = 'data-validation-message';\n\tvar ATTR_DATA_CUSTOM_LABEL = 'data-custom-label';\n\tvar ATTR_VALIDATE_VISIBILITY = 'data-validate-visibility';\n\tvar ATTR_ERROR_TARGET_ID = 'data-error-target';\n\tvar ATTR_DEPENDS = 'data-depends-selector';\n\tvar CONST_USE_JSON = 'json';\n\tvar CONST_REALTIME_EVENT = 'input';\n\tvar FOCUS_TOOLTIP_DELAY = 20;\n\tvar CLICK_TOOLTIP_DELAY = 150;\n\t\n\t/**\n\t * Triggered when form is fully initialized and handlers are binded\n\t * @type {string}\n\t */\n\tvar EVENT_FORM_READY = exports.EVENT_FORM_READY = 'flexcss.form.ready';\n\t/**\n\t * Fires when a form is submitted, cancelable\n\t * @type {string}\n\t */\n\tvar EVENT_FORM_SUBMIT = exports.EVENT_FORM_SUBMIT = 'flexcss.form.submit';\n\t/**\n\t * Fired directly after the form has been submitted via ajax\n\t * @type {string}\n\t */\n\tvar EVENT_FORM_AFTER_AJAX_SUBMIT = exports.EVENT_FORM_AFTER_AJAX_SUBMIT = 'flexcss.form.afterAjaxSubmit';\n\t/**\n\t * Fired when ajax events did complete\n\t * @type {string}\n\t */\n\tvar EVENT_FORM_AJAX_COMPLETED = exports.EVENT_FORM_AJAX_COMPLETED = 'flexcss.form.ajaxCompleted';\n\t\n\t/**\n\t * A HTML5 Form Validation replacement\n\t */\n\t\n\tvar Form = function (_DestroyableWidget) {\n\t _inherits(Form, _DestroyableWidget);\n\t\n\t /**\n\t * @param {HTMLElement} form\n\t * @param [options] optional options\n\t */\n\t\n\t function Form(form, options) {\n\t _classCallCheck(this, Form);\n\t\n\t var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Form).call(this));\n\t\n\t if (!(form instanceof HTMLFormElement)) {\n\t throw 'argument {0} form needs to be an form element';\n\t }\n\t\n\t /**\n\t * The Form\n\t * @type {HTMLElement}\n\t */\n\t _this.form = form;\n\t\n\t /**\n\t * @type {Tooltip}\n\t */\n\t _this.tooltips = null;\n\t\n\t /**\n\t * @type {Promise}\n\t */\n\t _this.currentValidationFuture = new Promise(function () {});\n\t\n\t /**\n\t * Default options\n\t * @type {Object}\n\t */\n\t _this.options = {\n\t // if true creates tooltips above element, uses FlexCss Tooltips\n\t createTooltips: true,\n\t // if true appends error message after input element\n\t appendError: false,\n\t // type of ajax submit\n\t ajaxSubmitType: 'POST',\n\t // json content type if ajax method is set to json\n\t ajaxJsonContentType: 'application/json; charset=utf-8',\n\t // allow inline validation\n\t inlineValidation: true,\n\t // validate in realtime (on `input` event)\n\t realtime: true,\n\t // timeout when realtime event should be captured\n\t realtimeTimeout: 250,\n\t // formatting method for an error\n\t formatErrorTooltip: function formatErrorTooltip(error) {\n\t return ' ' + error;\n\t },\n\t // the class that will be put on the element to mark it failed validation\n\t inputErrorClass: 'invalid',\n\t // the container class for error messages below an element\n\t containerErrorClass: 'form-error',\n\t // additional options for fetch\n\t fetchOptions: {\n\t credentials: 'include'\n\t },\n\t // the container for tooltips\n\t tooltipContainer: form,\n\t tooltipOptions: {\n\t containerClass: 'error-tooltip'\n\t },\n\t // if you have a fixed header, either set a number or function here\n\t scrollToElementDiff: 0\n\t };\n\t\n\t // overwrite default options\n\t Object.assign(_this.options, options);\n\t\n\t // apply settings from attributes\n\t _Util2.default.applyOptionsFromElement(form, _this.options);\n\t\n\t // set form class as widget\n\t // Forms are very different to classical widgets,\n\t // we will not use our base widget class for this but just self\n\t form.hfWidgetInstance = _this;\n\t\n\t /**\n\t * A List of Validators\n\t * @type {Object}\n\t * @private\n\t */\n\t _this._validators = Form.globalValidators;\n\t\n\t /**\n\t * @type {Function}\n\t * @private\n\t */\n\t _this._remoteValidationFunction = null;\n\t\n\t _this.initFormValidation();\n\t return _this;\n\t }\n\t\n\t _createClass(Form, [{\n\t key: 'destroy',\n\t value: function destroy() {\n\t _get(Object.getPrototypeOf(Form.prototype), 'destroy', this).call(this);\n\t if (this.tooltips) {\n\t this.tooltips.destroy();\n\t }\n\t }\n\t\n\t /**\n\t * Submits this form, either via ajax or just classical (default)\n\t * @param {HTMLFormElement} thisForm\n\t * @param {Event} e\n\t * @private\n\t * @returns {Promise|boolean} returns false if submit is cancled\n\t */\n\t\n\t }, {\n\t key: '_submitFunction',\n\t value: function _submitFunction(thisForm, e) {\n\t var shouldUseAjax = thisForm.getAttribute(REMOTE),\n\t ajaxPostUrl = thisForm.getAttribute(REMOTE_ACTION) || thisForm.getAttribute('action') || window.location.href,\n\t useJson = CONST_USE_JSON === shouldUseAjax,\n\t self = this;\n\t\n\t var ev = _Event2.default.dispatch(thisForm, EVENT_FORM_SUBMIT).withOriginal(e).fire();\n\t\n\t // abort execution is event was prevented\n\t if (ev.defaultPrevented) {\n\t self._formStopLoading();\n\t return false;\n\t }\n\t\n\t if (shouldUseAjax === null) {\n\t // submit\n\t return thisForm.submit();\n\t }\n\t // prevent form from submit normally\n\t e.preventDefault();\n\t\n\t // add information that this is an XMLHttpRequest request (used by some frameworks)\n\t var defaultHeaders = {\n\t 'X-Requested-With': 'XMLHttpRequest'\n\t };\n\t\n\t // setup default headers\n\t if (useJson) {\n\t Object.assign(defaultHeaders, {\n\t 'Content-Type': this.options.ajaxJsonContentType\n\t });\n\t }\n\t var defaultOptions = Object.assign(this.options.fetchOptions, {\n\t headers: defaultHeaders,\n\t method: this.options.ajaxSubmitType\n\t });\n\t\n\t // support either JSON request payload or normal payload submission\n\t var serverCall = useJson ? fetch(ajaxPostUrl, Object.assign(defaultOptions, {\n\t body: JSON.stringify(this.serialize())\n\t })) : fetch(ajaxPostUrl, Object.assign(defaultOptions, {\n\t body: new FormData(thisForm)\n\t }));\n\t\n\t _Event2.default.dispatch(thisForm, EVENT_FORM_AFTER_AJAX_SUBMIT).withOriginal(e).fire();\n\t\n\t return serverCall.then(function (r) {\n\t (self._remoteValidationFunction || Form.globalRemoteValidationFunction).apply(self, [r]);\n\t\n\t _Event2.default.dispatch(thisForm, EVENT_FORM_AJAX_COMPLETED).withOriginal(e).withDetail({ response: r }).fire();\n\t // always remove error class\n\t self._formStopLoading();\n\t });\n\t }\n\t\n\t /**\n\t * Serializes a form to a json object\n\t * @returns {Object}\n\t */\n\t\n\t }, {\n\t key: 'serialize',\n\t value: function serialize() {\n\t var selectors = ['input[name]:not([type=\"radio\"]):enabled', 'input[type=\"radio\"][name]:checked', 'select[name]:enabled', 'textarea[name]:enabled'],\n\t inputs = this.form.querySelectorAll(selectors.join(',')),\n\t result = {};\n\t\n\t Array.prototype.forEach.call(inputs, function (input) {\n\t var exists = result[input.name],\n\t value = input.value;\n\t if (exists instanceof Array) {\n\t exists.push(value);\n\t } else if (exists) {\n\t result[input.name] = [result[input.name], value];\n\t } else {\n\t result[input.name] = value;\n\t }\n\t });\n\t\n\t return result;\n\t }\n\t\n\t /**\n\t * Handles the chain of validation on given fields\n\t *\n\t * @param {HTMLElement|Array|NodeList} field\n\t * @param [focus] optional focus first error\n\t * @returns {Promise}\n\t */\n\t\n\t }, {\n\t key: 'handleValidation',\n\t value: function handleValidation(field, focus) {\n\t var _this2 = this;\n\t\n\t var fields = field instanceof Array || field instanceof NodeList ? field : [field];\n\t return this._handleValidation(fields, focus, true).then(function (r) {\n\t if (!r.foundAnyError) {\n\t // remove tooltips\n\t if (_this2.tooltips) {\n\t _this2.tooltips.removeTooltip();\n\t }\n\t }\n\t return r;\n\t }.bind(this));\n\t }\n\t\n\t /**\n\t * Handles errors on given node list\n\t * @param {NodeList} toValidateFields\n\t * @param {boolean} focus\n\t * @param {boolean} scoped if true, will only validate the fields `invalidFields`\n\t * @returns {Promise}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_handleValidation',\n\t value: function _handleValidation(toValidateFields, focus, scoped) {\n\t var self = this;\n\t var arr = Form._createArrayFromInvalidFieldList(toValidateFields),\n\t isLocalInvalid = arr.length > 0;\n\t // focus must appear in the same frame for iOS devices\n\t if (isLocalInvalid && focus) {\n\t self._focusElement(arr[0]);\n\t }\n\t var validation = scoped ? this._customValidationsForElements(toValidateFields) : self.validateCustomFields();\n\t return validation.then(function (r) {\n\t if (isLocalInvalid) {\n\t // combine browser and custom validators\n\t r.foundAnyError = true;\n\t }\n\t // get a unique field list of all fields that need to be checked and rendered\n\t // it's possible that we have duplicates in non scoped mode\n\t var thisToValidateFields = scoped ? toValidateFields : Array.from(arr).concat(r.checkedFields);\n\t r.checkedFields = thisToValidateFields;\n\t var foundInvalidFields = self.prepareErrors(thisToValidateFields, false),\n\t firstInvalidField = foundInvalidFields[0];\n\t if (firstInvalidField) {\n\t if (focus) {\n\t self._focusElement(firstInvalidField);\n\t // if element could not be focused:\n\t if (document.activeElement !== firstInvalidField) {\n\t self._handleTooltipHideClickAfterChange();\n\t }\n\t } else {\n\t self._handleTooltipHideClickAfterChange();\n\t }\n\t self.showAndOrCreateTooltip(firstInvalidField);\n\t }\n\t return r;\n\t });\n\t }\n\t\n\t /**\n\t * @param {HTMLElement} field\n\t * @param {ValidityState} validity\n\t * @returns {*}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_setupErrorMessages',\n\t value: function _setupErrorMessages(field, validity) {\n\t return Form.globalErrorMessageHandler ? Form.globalErrorMessageHandler.apply(this, [field, validity]) : false;\n\t }\n\t\n\t /**\n\t * Handles class labels for elements\n\t * @param {Object} fields\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_handleLabels',\n\t value: function _handleLabels(fields) {\n\t Object.keys(fields).forEach(function (id) {\n\t var labels = this.getForm().querySelectorAll('[for=\"' + id + '\"]'),\n\t invalid = fields[id];\n\t if (labels.length) {\n\t for (var labelsIndex = 0; labelsIndex < labels.length; labelsIndex++) {\n\t var labelEl = labels[labelsIndex];\n\t // we can't use toggle attribute, not supported in IE\n\t if (invalid) {\n\t this._markElementInvalid(labelEl);\n\t } else {\n\t this._markElementValid(labelEl);\n\t }\n\t }\n\t }\n\t }.bind(this));\n\t }\n\t\n\t /**\n\t * @param el\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_markElementInvalid',\n\t value: function _markElementInvalid(el) {\n\t el.setAttribute(DATA_ELEMENT_INVALID, \"true\");\n\t el.classList.add(this.options.inputErrorClass);\n\t }\n\t\n\t /**\n\t * @param el\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_markElementValid',\n\t value: function _markElementValid(el) {\n\t el.removeAttribute(DATA_ELEMENT_INVALID);\n\t el.classList.remove(this.options.inputErrorClass);\n\t }\n\t\n\t /**\n\t * A List of invalid elements (:invalid)\n\t * @returns {Array}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_getInvalidElements',\n\t value: function _getInvalidElements() {\n\t return Array.prototype.filter.call(this.getForm().querySelectorAll(\":invalid\"), function (r) {\n\t return !(r instanceof HTMLFieldSetElement);\n\t });\n\t }\n\t\n\t /**\n\t * @param {HTMLElement} thisParent\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_removeElementErrors',\n\t value: function _removeElementErrors(thisParent) {\n\t var errors = thisParent.querySelectorAll('.' + this.options.containerErrorClass),\n\t inputsWithErrorClasses = thisParent.querySelectorAll('[' + DATA_ELEMENT_INVALID + ']');\n\t for (var elementErrorIndex = 0; elementErrorIndex < errors.length; elementErrorIndex++) {\n\t errors[elementErrorIndex].parentNode.removeChild(errors[elementErrorIndex]);\n\t }\n\t for (var inputErrorIndex = 0; inputErrorIndex < inputsWithErrorClasses.length; inputErrorIndex++) {\n\t var el = inputsWithErrorClasses[inputErrorIndex];\n\t this._markElementValid(el);\n\t }\n\t }\n\t\n\t /**\n\t * Registers a custom validator\n\t * @param {String} name\n\t * @param {Function} validator a validation function should always return either a Future(true) or Future(false)\n\t * even when the field has been invalidated with `setCustomValidity`, because of different browser `bugs`\n\t * we can't rely on that\n\t * @returns {Form}\n\t */\n\t\n\t }, {\n\t key: 'registerValidator',\n\t value: function registerValidator(name, validator) {\n\t this._validators[name] = validator;\n\t return this;\n\t }\n\t\n\t /**\n\t * Runs async validation\n\t * @param {String} validationRef\n\t * @param {HTMLElement} field\n\t * @returns {Promise}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_runValidation',\n\t value: function _runValidation(validationRef, field) {\n\t if (!this._validators[validationRef]) {\n\t throw 'Could not found validator: ' + validationRef;\n\t }\n\t var cl = field.classList,\n\t future = this._validators[validationRef].apply(this, [field, this.form]);\n\t cl.add(LOADING_CLASS);\n\t future.then(function () {\n\t cl.remove(LOADING_CLASS);\n\t });\n\t return future;\n\t }\n\t\n\t /**\n\t * Run custom validations for elements, validations are done async do support XHR Requests or other stuff\n\t *\n\t * @param {Array|NodeList} fields\n\t * @returns {Promise} contains either true if validations passed or false if something went wrong\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_customValidationsForElements',\n\t value: function _customValidationsForElements(fields) {\n\t var futures = [],\n\t fieldsLength = fields.length,\n\t checkedFields = [];\n\t for (var iVal = 0; iVal < fieldsLength; iVal++) {\n\t var field = fields[iVal],\n\t validationRef = field.getAttribute(ATTR_VALIDATOR),\n\t validity = field.validity;\n\t if (this._validators[validationRef]) {\n\t // use local validation first and then continue with custom validations\n\t if (Form._shouldNotValidateField(field) || validity && !validity.customError && !validity.valid) {\n\t continue;\n\t }\n\t checkedFields.push(field);\n\t futures.push(this._runValidation(validationRef, field));\n\t } else {\n\t if (validationRef) {\n\t console.warn('data-validate was set but no validator was found');\n\t }\n\t }\n\t }\n\t return Promise.all(futures).then(function (allFutures) {\n\t var l = allFutures.length;\n\t var result = {\n\t checkedFields: checkedFields,\n\t foundAnyError: false\n\t };\n\t for (var fI = 0; fI < l; fI++) {\n\t if (!allFutures[fI]) {\n\t result.foundAnyError = true;\n\t break;\n\t }\n\t }\n\t return result;\n\t });\n\t }\n\t\n\t /**\n\t * Remove all errors for this form\n\t * @returns {Form}\n\t */\n\t\n\t }, {\n\t key: 'removeErrors',\n\t value: function removeErrors() {\n\t this._removeElementErrors(this.form);\n\t if (this.tooltips) {\n\t this.tooltips.removeTooltip();\n\t }\n\t return this;\n\t }\n\t\n\t /**\n\t * Will handle errors for given fields\n\t * @param {Array|NodeList} fields\n\t * @param {Boolean} removeAllErrors\n\t */\n\t\n\t }, {\n\t key: 'prepareErrors',\n\t value: function prepareErrors(fields, removeAllErrors) {\n\t if (removeAllErrors) {\n\t this.removeErrors();\n\t }\n\t var labelGroups = {},\n\t invalidFields = [];\n\t\n\t function handleAdditionalLabels(isInvalid, thisLabelGroup, field) {\n\t var additionalLabels = field.getAttribute(ATTR_DATA_CUSTOM_LABEL) || field.id,\n\t group = thisLabelGroup[additionalLabels];\n\t if (additionalLabels) {\n\t // check additionally if field is currently marked as invalid\n\t // so the label is not marked as error if no field is marked as one\n\t group = group ? group : isInvalid;\n\t thisLabelGroup[additionalLabels] = group;\n\t }\n\t }\n\t\n\t // We save all validations in an extra property because we need to reset the validity due some\n\t // implementation errors in other browsers then chrome\n\t for (var i = 0; i < fields.length; i++) {\n\t var field = fields[i],\n\t errorTarget = Form._findErrorTarget(field),\n\t parent = errorTarget.parentNode,\n\t validity = field.validity,\n\t isInvalid = validity && !validity.valid;\n\t if (Form._shouldNotValidateField(field)) {\n\t continue;\n\t }\n\t field.flexFormsSavedValidity = JSON.parse(JSON.stringify(validity));\n\t handleAdditionalLabels(isInvalid, labelGroups, field);\n\t if (isInvalid) {\n\t if (!removeAllErrors) {\n\t // Remove current errors:\n\t this._removeElementErrors(parent);\n\t }\n\t // setup custom error messages:\n\t this._setupErrorMessages(field, validity);\n\t var msg = field.validationMessage;\n\t\n\t // mark fields as invalid\n\t this._markElementInvalid(errorTarget);\n\t this._markElementInvalid(field);\n\t\n\t if (this.options.appendError) {\n\t parent.insertAdjacentHTML(\"beforeend\", '
' + msg + '
');\n\t }\n\t invalidFields.push(field);\n\t field.flexFormsSavedValidationMessage = msg;\n\t } else {\n\t // restore invalid fields\n\t this._markElementValid(errorTarget);\n\t this._markElementValid(field);\n\t\n\t // cleanup\n\t delete field.flexFormsSavedValidationMessage;\n\t\n\t // remove error markup\n\t this._removeElementErrors(parent);\n\t }\n\t // We have to reset the custom validity here to allow native validations work again\n\t field.setCustomValidity('');\n\t }\n\t // if validates a single field we need to check the linked fields to a label:\n\t if (fields.length === 1) {\n\t var field = fields[0];\n\t var id = field.getAttribute(ATTR_DATA_CUSTOM_LABEL) || field.id;\n\t if (id) {\n\t var linkedFields = Array.from(this.getForm().querySelectorAll('[' + ATTR_DATA_CUSTOM_LABEL + '=\"' + id + '\"], #' + id));\n\t linkedFields.forEach(function (thisField) {\n\t var validity = thisField.validity,\n\t isInvalid = validity && !validity.valid && this._isElementInvalidElement(thisField);\n\t handleAdditionalLabels(isInvalid, labelGroups, thisField);\n\t }.bind(this));\n\t }\n\t }\n\t this._handleLabels(labelGroups);\n\t return invalidFields;\n\t }\n\t\n\t /**\n\t * Validates all custom fields\n\t * @returns {Promise}\n\t */\n\t\n\t }, {\n\t key: 'validateCustomFields',\n\t value: function validateCustomFields() {\n\t return this._customValidationsForElements(this.form.querySelectorAll(\"[data-validate]\"));\n\t }\n\t\n\t /**\n\t * Tests if a field should be validated\n\t * @param {HTMLElement} field\n\t * @returns {boolean}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: 'getForm',\n\t\n\t\n\t /**\n\t * This form\n\t * @returns {HTMLElement}\n\t */\n\t value: function getForm() {\n\t return this.form;\n\t }\n\t\n\t /**\n\t * Registers a function that handles remote validation\n\t * @param {Function} func\n\t * @returns {Form}\n\t */\n\t\n\t }, {\n\t key: 'registerRemoteValidation',\n\t value: function registerRemoteValidation(func) {\n\t this._remoteValidationFunction = func;\n\t return this;\n\t }\n\t\n\t /**\n\t * Formats the error content for the tooltip\n\t * @param {String} error\n\t * @returns {String}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_formatErrorTooltip',\n\t value: function _formatErrorTooltip(error) {\n\t return this.options.formatErrorTooltip.apply(this, [error]);\n\t }\n\t\n\t /**\n\t * Tries to find a custom error target on given target\n\t * @param target\n\t * @returns {HTMLElement}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: 'showAndOrCreateTooltip',\n\t\n\t\n\t /**\n\t * Creates a tooltip at given element, will only create a new instance if not created\n\t * @param {HTMLElement} target\n\t * @param {Boolean} [remove]\n\t */\n\t value: function showAndOrCreateTooltip(target, remove) {\n\t var self = this;\n\t if (!this.tooltips && this.options.createTooltips) {\n\t this.tooltips = new _Tooltip2.default(this.options.tooltipContainer, this.options.tooltipOptions);\n\t }\n\t if (!this.options.createTooltips) {\n\t return false;\n\t }\n\t\n\t if (!target.flexFormsSavedValidity) {\n\t return false;\n\t }\n\t var errorTarget = Form._findErrorTarget(target);\n\t if (!target.flexFormsSavedValidity.valid && self._isElementInvalidElement(errorTarget)) {\n\t self.tooltips.createTooltip(errorTarget, self._formatErrorTooltip(target.flexFormsSavedValidationMessage), false);\n\t return true;\n\t } else {\n\t if (remove) {\n\t self.tooltips.removeTooltip();\n\t }\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Checks if element is marked as invalid\n\t * @param {HTMLElement} el\n\t * @returns {boolean}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_isElementInvalidElement',\n\t value: function _isElementInvalidElement(el) {\n\t return el.hasAttribute(DATA_ELEMENT_INVALID);\n\t }\n\t\n\t /**\n\t * Handles invalid event of a form\n\t * @param {Event} e\n\t * @returns {Promise|boolean}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_checkIsInvalid',\n\t value: function _checkIsInvalid(e) {\n\t e.preventDefault();\n\t var invalidFields = this.getForm().querySelectorAll(\":invalid\");\n\t return this._handleValidation(invalidFields, true, false);\n\t }\n\t\n\t /**\n\t * Will query dependent fields (by selector) that should be validated with given field\n\t * @param field\n\t * @returns {NodeList|[]}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_getDependentFields',\n\t value: function _getDependentFields(field) {\n\t var fieldSelector = field.getAttribute(ATTR_DEPENDS),\n\t base = [field];\n\t if (fieldSelector) {\n\t base.push.apply(base, Array.prototype.slice.apply(this.getForm().querySelectorAll(fieldSelector)));\n\t }\n\t return base;\n\t }\n\t\n\t /**\n\t * @private\n\t * @param {HTMLElement} [target]\n\t */\n\t\n\t }, {\n\t key: '_handleTooltipInline',\n\t value: function _handleTooltipInline(target) {\n\t if (this.tooltips) {\n\t this.tooltips.removeTooltip(target);\n\t }\n\t }\n\t\n\t /**\n\t * Initializes validation for a given form, registers event handlers\n\t */\n\t\n\t }, {\n\t key: 'initFormValidation',\n\t value: function initFormValidation() {\n\t var _this3 = this;\n\t\n\t // Suppress the default bubbles\n\t var form = this.getForm(),\n\t self = this,\n\t invalidEvent = 'invalid';\n\t\n\t /**\n\t * Validates if is valid realtime element\n\t * @param {HTMLElement} target\n\t * @returns {boolean}\n\t * @private\n\t */\n\t function _checkIsValidRealtimeElement(target) {\n\t return !target.hasAttribute(ATTR_DISABLE_REALTIME) && !target.hasAttribute(ATTR_DISABLE_INLINE);\n\t }\n\t\n\t form.addEventListener(invalidEvent, function (e) {\n\t e.preventDefault();\n\t }, true);\n\t\n\t _Util2.default.addEventOnce(invalidEvent, form, function handleInvalid(e) {\n\t self._formLoading();\n\t var result = self._checkIsInvalid(e);\n\t if (result) {\n\t self.currentValidationFuture = new Promise(function (resolve) {\n\t result.then(function (r) {\n\t setTimeout(function () {\n\t _Util2.default.addEventOnce(invalidEvent, form, handleInvalid, true);\n\t }, 0);\n\t resolve(r);\n\t self._formStopLoading();\n\t if (!r.foundAnyError) {\n\t self._formLoading();\n\t self._handleSubmit(e);\n\t }\n\t });\n\t });\n\t }\n\t }, true);\n\t\n\t this.addEventListener(form, 'reset', function () {\n\t _this3.removeErrors();\n\t });\n\t\n\t // Timeout for keys:\n\t var TIMEOUT_KEYDOWN,\n\t KEYDOWN_RUNNING = false;\n\t\n\t // resets keydown events\n\t function clearKeyDownTimeout() {\n\t KEYDOWN_RUNNING = false;\n\t clearTimeout(TIMEOUT_KEYDOWN);\n\t }\n\t\n\t // setup custom realtime event if given\n\t if (self.options.realtime) {\n\t this.addEventListener(form, CONST_REALTIME_EVENT, function (e) {\n\t if (self._formIsLoading()) {\n\t return;\n\t }\n\t var target = e.target;\n\t clearTimeout(TIMEOUT_KEYDOWN);\n\t if (KEYDOWN_RUNNING) {\n\t return;\n\t }\n\t TIMEOUT_KEYDOWN = setTimeout(function () {\n\t var isStillTarget = document.activeElement === e.target;\n\t if (!_checkIsValidRealtimeElement(target)) {\n\t return;\n\t }\n\t if (isStillTarget) {\n\t self._handleTooltipInline();\n\t }\n\t KEYDOWN_RUNNING = true;\n\t var dependentFields = self._getDependentFields(target);\n\t self._customValidationsForElements(dependentFields).then(function () {\n\t self.prepareErrors(dependentFields, false);\n\t if (isStillTarget) {\n\t self.showAndOrCreateTooltip(e.target);\n\t }\n\t // future must be resolved before another event can be started\n\t KEYDOWN_RUNNING = false;\n\t });\n\t }, self.options.realtimeTimeout);\n\t }, true);\n\t }\n\t\n\t /**\n\t * Validates if target is a valid input field to check blur and focus events\n\t *\n\t * @param {HTMLElement} target\n\t * @returns {boolean}\n\t * @private\n\t */\n\t function _checkIsValidBlurFocusElement(target) {\n\t var attr = target.getAttribute(\"type\");\n\t return attr !== \"radio\" && attr !== \"checkbox\" && attr !== \"submit\";\n\t }\n\t\n\t /**\n\t * Validates if is valid inline-check element\n\t * @param {HTMLElement} target\n\t * @returns {boolean}\n\t * @private\n\t */\n\t function _checkIsValidInlineCheckElement(target) {\n\t return !target.hasAttribute(ATTR_DISABLE_INLINE);\n\t }\n\t\n\t this.addEventListener(form, 'blur', function (e) {\n\t // do not hide tooltip after change event\n\t if (!e.target.flexcssKeepTooltips) {\n\t self._handleTooltipInline(e.target);\n\t }\n\t delete e.target.flexcssKeepTooltips;\n\t }, true);\n\t\n\t // handle focus on input elements\n\t // will show an error if field is invalid\n\t this.addEventListener(form, \"focus\", function (e) {\n\t if (self._formIsLoading()) {\n\t return;\n\t }\n\t // do not track errors for checkbox and radios on focus:\n\t if (!_checkIsValidBlurFocusElement(e.target)) {\n\t return;\n\t }\n\t // we need to delay this a little, because Firefox and Safari do not show a tooltip after it\n\t // just have been hidden (on blur). Maybe fix this with a queue later\n\t setTimeout(function () {\n\t self.showAndOrCreateTooltip(e.target);\n\t }, FOCUS_TOOLTIP_DELAY);\n\t }, true);\n\t\n\t if (self.options.inlineValidation) {\n\t // Handle change for checkbox, radios and selects\n\t this.addEventListener(form, \"change\", function (e) {\n\t var target = e.target;\n\t if (self._formIsLoading() || !_checkIsValidInlineCheckElement(target)) {\n\t return;\n\t }\n\t clearKeyDownTimeout();\n\t var name = target.getAttribute('name');\n\t var inputs = name ? form.querySelectorAll('[name=\"' + name + '\"]') : [target];\n\t // we only support dependent fields for a single widgets right now\n\t if (inputs.length === 1) {\n\t inputs = self._getDependentFields(target);\n\t }\n\t self._customValidationsForElements(inputs).then(function () {\n\t self.prepareErrors(inputs, false);\n\t target.flexcssKeepTooltips = self.showAndOrCreateTooltip(target, true);\n\t if (target.flexcssKeepTooltips) {\n\t self._handleTooltipHideClickAfterChange();\n\t }\n\t });\n\t });\n\t }\n\t\n\t // prevent default if form is invalid\n\t this.addEventListener(form, \"submit\", function listener(e) {\n\t self._submitListener(e, listener);\n\t });\n\t\n\t _Event2.default.dispatchAndFire(form, EVENT_FORM_READY);\n\t }\n\t\n\t /* Loading states, unfortunately we can't check if a promise is pending :/*/\n\t /* TODO: Maybe wrap promise to extend this functionality */\n\t\n\t }, {\n\t key: '_formLoading',\n\t value: function _formLoading() {\n\t this.getForm().classList.add(LOADING_CLASS);\n\t }\n\t }, {\n\t key: '_formStopLoading',\n\t value: function _formStopLoading() {\n\t this.getForm().classList.remove(LOADING_CLASS);\n\t }\n\t }, {\n\t key: '_formIsLoading',\n\t value: function _formIsLoading() {\n\t return this.getForm().classList.contains(LOADING_CLASS);\n\t }\n\t\n\t // this defines the logic after a change event when a tooltip is shown\n\t // because we call this method inside the change event, the click would be immeditally executed with the change\n\t // event when not using setTimeout(). There might be another solution for this...\n\t\n\t }, {\n\t key: '_handleTooltipHideClickAfterChange',\n\t value: function _handleTooltipHideClickAfterChange() {\n\t var self = this;\n\t if (this.options.createTooltips) {\n\t setTimeout(function () {\n\t _Util2.default.addEventOnce(_Settings2.default.getTabEvent(), global.document.body, function (t) {\n\t if (!self._isElementInvalidElement(t.target)) {\n\t self._handleTooltipInline();\n\t }\n\t });\n\t }, CLICK_TOOLTIP_DELAY);\n\t }\n\t }\n\t }, {\n\t key: '_focusElement',\n\t value: function _focusElement(el) {\n\t el.focus();\n\t _Util2.default.scrollToElement(el, this.options.scrollToElementDiff);\n\t }\n\t\n\t /**\n\t * Listener that is executed on form submit\n\t * @param e\n\t * @param submitListener\n\t * @returns {boolean}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_submitListener',\n\t value: function _submitListener(e, submitListener) {\n\t\n\t var form = this.getForm(),\n\t self = this,\n\t submitEvent = 'submit';\n\t\n\t if (this._formIsLoading()) {\n\t e.preventDefault();\n\t return false;\n\t }\n\t this._formLoading();\n\t form.removeEventListener(submitEvent, submitListener);\n\t this.removeErrors();\n\t e.preventDefault();\n\t // reset:\n\t if (form.checkValidity()) {\n\t form.addEventListener(submitEvent, submitListener);\n\t // It's possible that the form is valid but the custom validations need to be checked again:\n\t self.currentValidationFuture = new Promise(function (resolve) {\n\t var validation = self.validateCustomFields();\n\t validation.then(function (r) {\n\t // because custom validators may mark multiple fields as invalid, we get all of them in the form\n\t var fields = self._getInvalidElements(),\n\t errors = self.prepareErrors(fields, false),\n\t firstError = errors[0];\n\t if (firstError) {\n\t self._focusElement(firstError);\n\t self.showAndOrCreateTooltip(firstError, true);\n\t }\n\t resolve(r);\n\t });\n\t });\n\t self.currentValidationFuture.then(function (r) {\n\t if (!r.foundAnyError) {\n\t // Handle submitting the form to server:\n\t self._handleSubmit(e);\n\t } else {\n\t self._formStopLoading();\n\t }\n\t });\n\t } else {\n\t self._formStopLoading();\n\t form.addEventListener(submitEvent, submitListener);\n\t }\n\t }\n\t\n\t /**\n\t * Handles submitting, optionally allows to stop submitting\n\t * @param e\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_handleSubmit',\n\t value: function _handleSubmit(e) {\n\t this._submitFunction(this.form, e);\n\t }\n\t\n\t /**\n\t * Registers a global event Handler\n\t * @param errorFunc\n\t */\n\t\n\t }], [{\n\t key: '_shouldNotValidateField',\n\t value: function _shouldNotValidateField(field) {\n\t var target = Form._findErrorTarget(field);\n\t return target instanceof HTMLFieldSetElement || field.validity === undefined || target.hasAttribute(ATTR_VALIDATE_VISIBILITY) && !_Util2.default.isVisible(target);\n\t }\n\t\n\t /**\n\t * Creates an array from a node list with invalid items\n\t * This Method expicitly checks if field should not be validated so it can be used to foucs a field\n\t * @param list\n\t * @returns {Array}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_createArrayFromInvalidFieldList',\n\t value: function _createArrayFromInvalidFieldList(list) {\n\t var arr = [];\n\t for (var i = 0; i < list.length; ++i) {\n\t var n = list[i];\n\t if (n.validity && !n.validity.valid) {\n\t if (!Form._shouldNotValidateField(n)) {\n\t arr.push(n);\n\t }\n\t }\n\t }\n\t return arr;\n\t }\n\t }, {\n\t key: '_findErrorTarget',\n\t value: function _findErrorTarget(target) {\n\t var el = target.getAttribute(ATTR_ERROR_TARGET_ID) || target,\n\t foundTarget = el instanceof HTMLElement ? el : global.document.getElementById(el);\n\t if (!foundTarget) {\n\t throw 'Given error target did not exsits:' + target;\n\t }\n\t return foundTarget;\n\t }\n\t }, {\n\t key: 'registerErrorMessageHandler',\n\t value: function registerErrorMessageHandler(errorFunc) {\n\t Form.globalErrorMessageHandler = errorFunc;\n\t }\n\t\n\t /**\n\t * Initialize forms for a specific selector\n\t * @param {String} selector\n\t * @param {Object} [options]\n\t * @return {array.}\n\t */\n\t\n\t }, {\n\t key: 'init',\n\t value: function init(selector, options) {\n\t var forms = selector instanceof HTMLElement ? selector.querySelectorAll('form') : document.querySelectorAll(selector),\n\t instances = [];\n\t for (var i = 0; i < forms.length; i++) {\n\t instances.push(new Form(forms[i], options));\n\t }\n\t return instances;\n\t }\n\t\n\t /**\n\t * Registers a global validator that is usable on all form instances\n\t * @param {String} name\n\t * @param {Function} validator\n\t * @returns {Function}\n\t */\n\t\n\t }, {\n\t key: 'registerValidator',\n\t value: function registerValidator(name, validator) {\n\t Form.globalValidators[name] = validator;\n\t return Form;\n\t }\n\t\n\t /**\n\t * Registers a global function that is called when a form should validate the response of a server\n\t * @param {Function} func\n\t * @returns {Form}\n\t */\n\t\n\t }, {\n\t key: 'registerGlobalRemoteValidationFunction',\n\t value: function registerGlobalRemoteValidationFunction(func) {\n\t Form.globalRemoteValidationFunction = func;\n\t return Form;\n\t }\n\t }]);\n\t\n\t return Form;\n\t}(_DestroyableWidget3.default);\n\t\n\t/**\n\t * Global validators\n\t * @type {Array}\n\t */\n\t\n\t\n\tForm.globalValidators = [];\n\t\n\t/**\n\t * Global Remote validation function\n\t */\n\tForm.globalRemoteValidationFunction = function () {};\n\t\n\t/**\n\t * Handles custom error messages extracts custom message by default\n\t */\n\tForm.globalErrorMessageHandler = function (field, validity) {\n\t if (!validity.customError) {\n\t var customMsg = field.getAttribute(ATTR_DATA_CUSTOM_MESSAGE);\n\t if (customMsg) {\n\t field.setCustomValidity(customMsg);\n\t }\n\t }\n\t};\n\t\n\texports.default = Form;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 106 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t/*!\n\t * FlexCss.LightBox\n\t * Licensed under the MIT License (MIT)\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t */\n\t\n\t'use strict';\n\t\n\t/* global Image, TouchEvent*/\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj; };\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tvar _Modal = __webpack_require__(101);\n\t\n\tvar _Modal2 = _interopRequireDefault(_Modal);\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tvar _Widget = __webpack_require__(36);\n\t\n\tvar _Widget2 = _interopRequireDefault(_Widget);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar ATTR_MAX_WIDTH = 'data-original-width';\n\tvar ATTR_MAX_HEIGHT = 'data-original-height';\n\tvar ATTR_SRC = 'data-src';\n\t\n\tvar CLS_HAS_PREV = 'has-prev';\n\tvar CLS_HAS_NEXT = 'has-next';\n\tvar CLS_LOADING = 'loading';\n\t\n\tvar ATTR_NO_THUMBNAIL = 'data-no-thumbnail';\n\tvar ATTR_DATA_HREF = 'data-href';\n\tvar ATTR_HREF = 'href';\n\t\n\tvar KEY_NEXT = 39;\n\tvar KEY_PREV = 37;\n\tvar ATTR_CLOSE = 'data-close-modal';\n\t/**\n\t * A Simple LightBox\n\t */\n\t\n\tvar LightBox = function () {\n\t\n\t /**\n\t * Creates a new Lightbox\n\t * @param DelegateContainer\n\t * @param AttributeSelector\n\t * @param ModalAppend\n\t * @param [options]\n\t */\n\t\n\t function LightBox(DelegateContainer, AttributeSelector, ModalAppend, options) {\n\t _classCallCheck(this, LightBox);\n\t\n\t var thisDelegateContainer = DelegateContainer instanceof HTMLElement ? DelegateContainer : document.getElementById(DelegateContainer);\n\t\n\t this._modalAppend = ModalAppend || DelegateContainer;\n\t /**\n\t * @type {Function}\n\t */\n\t this._resizeEvent = null;\n\t /**\n\t * @type {Function}\n\t */\n\t this._keyboardNextEvent = null;\n\t /**\n\t * @type {Promise}\n\t */\n\t this._future = null;\n\t /**\n\t * @type {Promise}\n\t */\n\t this._nextFuture = this._future;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this._imageContainer = null;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this._modalContainerDiv = null;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this._contentContainer = null;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this._closerContainerDiv = null;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this._delegateContainer = thisDelegateContainer;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this._attributeSelector = AttributeSelector;\n\t /**\n\t * @type {Widget}\n\t */\n\t this._widget = null;\n\t /**\n\t * @type {boolean}\n\t */\n\t this._isOpen = false;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.target = null;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.img = null;\n\t /**\n\t * @type {boolean}\n\t */\n\t this._isLoading = false;\n\t\n\t /**\n\t * Default options\n\t */\n\t this.options = {\n\t // set if prev and next should be available\n\t registerPrevNextEvents: true,\n\t // set if modal should be closed after last image\n\t closeOnLast: true,\n\t // called when next image is requested (either by keyboard or click), return false to abort\n\t onNext: function onNext() {\n\t return true;\n\t },\n\t onClose: function onClose() {},\n\t getNext: null,\n\t getPrev: null,\n\t // called when underlying target changed\n\t onSwitchImage: function onSwitchImage() {}\n\t };\n\t\n\t Object.assign(this.options, options);\n\t }\n\t\n\t /**\n\t * @param {HTMLElement} node\n\t * @returns {HTMLElement|null}\n\t */\n\t\n\t\n\t _createClass(LightBox, [{\n\t key: 'findImmediateNextTarget',\n\t value: function findImmediateNextTarget(node) {\n\t if (node && node.children[0].hasAttribute(this._attributeSelector)) {\n\t return node.children[0];\n\t }\n\t return null;\n\t }\n\t\n\t /**\n\t * Will fetch the next element of a lightBox\n\t * @param {HTMLElement} target\n\t * @returns {null|HTMLElement}\n\t */\n\t\n\t }, {\n\t key: 'getNext',\n\t value: function getNext(target) {\n\t if (this.options.getNext) {\n\t return this.options.getNext.apply(this, [target]);\n\t }\n\t return this.findImmediateNextTarget(target.parentNode.nextElementSibling);\n\t }\n\t\n\t /**\n\t * Will fetch the previous element of a lightBox\n\t * @param {HTMLElement} target\n\t * @returns {null|HTMLElement}\n\t */\n\t\n\t }, {\n\t key: 'getPrev',\n\t value: function getPrev(target) {\n\t if (this.options.getPrev) {\n\t return this.options.getPrev.apply(this, [target]);\n\t }\n\t return this.findImmediateNextTarget(target.parentNode.previousElementSibling);\n\t }\n\t\n\t /**\n\t * Registers events for delegate container\n\t */\n\t\n\t }, {\n\t key: 'registerEvents',\n\t value: function registerEvents(onOpen) {\n\t var _this = this;\n\t\n\t this._delegateContainer.addEventListener(_Settings2.default.getTabEvent(), function (e) {\n\t var target = e.target;\n\t var parent = target.parentNode;\n\t var validTarget = target.hasAttribute(_this._attributeSelector);\n\t var parentIsValid = parent && parent.hasAttribute(_this._attributeSelector);\n\t\n\t if (!validTarget && parentIsValid) {\n\t validTarget = true;\n\t target = parent;\n\t }\n\t if (validTarget) {\n\t e.preventDefault();\n\t _this.open(target).then(function (r) {\n\t if (onOpen) {\n\t onOpen.apply(_this, [r, target]);\n\t }\n\t });\n\t }\n\t });\n\t }\n\t\n\t /**\n\t * @returns {HTMLElement}\n\t */\n\t\n\t }, {\n\t key: 'getContentContainer',\n\t value: function getContentContainer() {\n\t return this._contentContainer;\n\t }\n\t\n\t /**\n\t * Setup max-width and max-height\n\t * @param {HTMLElement} target\n\t * @param {HTMLElement} img\n\t * @param {HTMLElement} loadedImage\n\t * @private\n\t */\n\t\n\t }, {\n\t key: 'switchImageByDirection',\n\t\n\t\n\t /**\n\t * Switches to the next image\n\t * @param {boolean} direction\n\t */\n\t value: function switchImageByDirection(direction) {\n\t var next = direction ? this.getPrev(this.target) : this.getNext(this.target);\n\t if (this.options.onNext.apply(this, [next])) {\n\t return this.switchImage(next);\n\t }\n\t return new Promise(function (_, reject) {\n\t return reject(next);\n\t });\n\t }\n\t\n\t /**\n\t * Checks if lightbox is currently loading\n\t * @returns {boolean}\n\t */\n\t\n\t }, {\n\t key: 'isLoading',\n\t value: function isLoading() {\n\t return this._isLoading;\n\t }\n\t\n\t /**\n\t * Checks if modal should be closed\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_runOptionalClose',\n\t value: function _runOptionalClose() {\n\t if (this.options.closeOnLast) {\n\t this.modal.close();\n\t }\n\t }\n\t }, {\n\t key: '_setupPrevNextStates',\n\t value: function _setupPrevNextStates() {\n\t var target = this.target;\n\t var hasPrev = this.getPrev(target);\n\t var hasNext = this.getNext(target);\n\t var hasPrevClass = CLS_HAS_PREV;\n\t var hasNextClass = CLS_HAS_NEXT;\n\t // because IE does not support the second toggle parameter, we need to do this manually\n\t if (hasPrev) {\n\t this._imageContainer.classList.add(hasPrevClass);\n\t } else {\n\t this._imageContainer.classList.remove(hasPrevClass);\n\t }\n\t if (hasNext) {\n\t this._imageContainer.classList.add(hasNextClass);\n\t } else {\n\t this._imageContainer.classList.remove(hasNextClass);\n\t }\n\t }\n\t\n\t /**\n\t * @param img\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_calculateContainer',\n\t value: function _calculateContainer(img) {\n\t var _this2 = this;\n\t\n\t if (_Settings2.default.isIE()) {\n\t setTimeout(function () {\n\t _this2._imageContainer.style.height = img.offsetHeight + 'px';\n\t }, 0);\n\t }\n\t }\n\t\n\t /**\n\t * Switch to a specific image\n\t * @param next\n\t * @returns {*}\n\t */\n\t\n\t }, {\n\t key: 'switchImage',\n\t value: function switchImage(next) {\n\t var _this3 = this;\n\t\n\t var self = this;\n\t var img = this.img;\n\t this._isLoading = true;\n\t self._nextFuture = new Promise(function (resolve, reject) {\n\t // notify observers about image switching\n\t self.options.onSwitchImage.apply(self, [self._nextFuture]);\n\t if (next) {\n\t var _ret = function () {\n\t var nextThumb = next.hasAttribute(ATTR_NO_THUMBNAIL) ? next : next.children[0] || next;\n\t var nextHighRes = next.getAttribute(ATTR_DATA_HREF) || next.getAttribute(ATTR_HREF);\n\t var nextSource = nextThumb.getAttribute(ATTR_SRC) || nextThumb.src || nextHighRes;\n\t var nextImgObject = new Image();\n\t\n\t if (!nextSource) {\n\t reject(next);\n\t return {\n\t v: undefined\n\t };\n\t }\n\t // set new target to next element\n\t _this3.target = next;\n\t nextImgObject.src = nextSource;\n\t self._imageContainer.classList.add(CLS_LOADING);\n\t nextImgObject.addEventListener('load', function () {\n\t img.src = nextSource;\n\t self._imageContainer.style.backgroundImage = 'url(' + nextSource + ')';\n\t LightBox._setupMaxWidthHeight(next, img, nextImgObject);\n\t self._calculateContainer(img);\n\t self.highRes(nextThumb, nextHighRes);\n\t self._setupPrevNextStates();\n\t self._imageContainer.classList.remove(CLS_LOADING);\n\t _this3._isLoading = false;\n\t resolve(nextSource, _this3.target);\n\t });\n\t }();\n\t\n\t if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === \"object\") return _ret.v;\n\t } else {\n\t reject(_this3);\n\t }\n\t });\n\t return self._nextFuture;\n\t }\n\t\n\t /**\n\t * Setup High-Resolution picture\n\t * @param {HTMLElement} thisThumbnail\n\t * @param {String} thisImgHighResolution\n\t */\n\t\n\t }, {\n\t key: 'highRes',\n\t value: function highRes(thisThumbnail, thisImgHighResolution) {\n\t var _this4 = this;\n\t\n\t if (thisImgHighResolution && thisThumbnail.src !== thisImgHighResolution) {\n\t var highImageObj = new Image();\n\t highImageObj.src = thisImgHighResolution;\n\t highImageObj.addEventListener('load', function () {\n\t // if current image is still available\n\t if (_this4._getSrc(thisThumbnail) === _this4.img.src) {\n\t _this4.img.src = thisImgHighResolution;\n\t _this4._imageContainer.style.backgroundImage = 'url(' + thisImgHighResolution + ')';\n\t }\n\t });\n\t }\n\t }\n\t\n\t /**\n\t * Extracts the source of an image\n\t * @param target\n\t * @returns {String|null}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_getSrc',\n\t value: function _getSrc(target) {\n\t return target.getAttribute(ATTR_SRC) || target.src;\n\t }\n\t\n\t /**\n\t * Will show a lightBox on given target\n\t * @param {HTMLElement} target\n\t * @returns {$.Deferred|*}\n\t */\n\t\n\t }, {\n\t key: 'open',\n\t value: function open(target) {\n\t var _this5 = this;\n\t\n\t var self = this;\n\t\n\t if (!target) {\n\t return false;\n\t }\n\t\n\t this.target = target;\n\t\n\t // if lightBox is open, we just switch to the new target image\n\t if (this._isOpen && target) {\n\t return this.switchImage(target).then(function () {\n\t return _this5;\n\t });\n\t }\n\t\n\t this._isOpen = true;\n\t\n\t /**\n\t * Setup Widget for modal\n\t * @type {Widget}\n\t */\n\t this._widget = new _Widget2.default().setAsync(function () {\n\t // thumbnail is either target itself or expected to be first childNode\n\t var thumbnail = target.hasAttribute(ATTR_NO_THUMBNAIL) ? target : target.children[0] || target;\n\t\n\t var imgHighResolution = target.getAttribute(ATTR_DATA_HREF) || target.getAttribute(ATTR_HREF);\n\t var imgSrc = _this5._getSrc(thumbnail) || imgHighResolution;\n\t\n\t var imageObj = new Image();\n\t imageObj.src = imgSrc;\n\t _this5._imageContainer = document.createElement('div');\n\t _this5._modalContainerDiv = document.createElement('div');\n\t _this5._closerContainerDiv = document.createElement('i');\n\t _this5._contentContainer = document.createElement('div');\n\t\n\t _this5._closerContainerDiv.className = 'modal-close modal-close-lightbox icon-cancel-1';\n\t _this5._closerContainerDiv.setAttribute(ATTR_CLOSE, ATTR_CLOSE);\n\t\n\t _this5._modalContainerDiv.className = 'modal image-modal';\n\t _this5._modalContainerDiv.appendChild(_this5._imageContainer);\n\t _this5._modalContainerDiv.appendChild(_this5._contentContainer);\n\t _this5._modalContainerDiv.appendChild(_this5._closerContainerDiv);\n\t _this5._contentContainer.className = 'content-container';\n\t _this5._isLoading = true;\n\t _this5._future = new Promise(function (resolve) {\n\t imageObj.addEventListener('load', function () {\n\t _this5._imageContainer.className = 'image-container';\n\t var img = document.createElement('img');\n\t // current image\n\t _this5.img = img;\n\t\n\t img.src = imgSrc;\n\t LightBox._setupMaxWidthHeight(target, img, imageObj);\n\t _this5._imageContainer.appendChild(img);\n\t _this5._imageContainer.style.backgroundImage = 'url(' + imgSrc + ')';\n\t\n\t resolve(self._modalContainerDiv);\n\t _this5._isLoading = false;\n\t\n\t if (_Settings2.default.isIE()) {\n\t self._resizeEvent = global.addEventListener('resize', function () {\n\t setTimeout(function () {\n\t self._imageContainer.style.height = img.offsetHeight + 'px';\n\t }, 0);\n\t });\n\t }\n\t\n\t if (self.options.registerPrevNextEvents) {\n\t self._setupPrevNextStates();\n\t // prev or next on touch/click\n\t self._imageContainer.addEventListener(_Settings2.default.getTabEvent(), function (e) {\n\t if (self.isLoading()) {\n\t return;\n\t }\n\t e.preventDefault();\n\t\n\t var ev = e;\n\t var pageX = global.TouchEvent && ev instanceof TouchEvent ? ev.changedTouches[0].pageX : ev.pageX;\n\t var rect = self._imageContainer.getBoundingClientRect();\n\t var imgX = rect.left;\n\t var wrapperWidth = rect.width;\n\t var posX = pageX - imgX;\n\t\n\t self.switchImageByDirection(wrapperWidth / 2 > posX).catch(function () {\n\t self._runOptionalClose();\n\t });\n\t });\n\t\n\t // register keyboard events\n\t self._keyboardNextEvent = function (e) {\n\t if (e.keyCode === KEY_NEXT || e.keyCode === KEY_PREV) {\n\t if (self.isLoading()) {\n\t return;\n\t }\n\t self.switchImageByDirection(e.keyCode === KEY_PREV).catch(function () {\n\t self._runOptionalClose();\n\t });\n\t }\n\t };\n\t global.addEventListener('keydown', self._keyboardNextEvent);\n\t } else {\n\t self._imageContainer.addEventListener(_Settings2.default.getTabEvent(), function () {\n\t self._runOptionalClose();\n\t });\n\t }\n\t\n\t self.highRes(thumbnail, imgHighResolution);\n\t });\n\t });\n\t\n\t _this5._future.then(function () {\n\t self._calculateContainer(_this5.img);\n\t });\n\t\n\t self._modalContainerDiv.addEventListener(_Modal.EVENT_MODAL_CLOSED, function () {\n\t // cleanup:\n\t _this5._modalContainerDiv.parentNode.removeChild(_this5._modalContainerDiv);\n\t _this5.options.onClose.apply(self);\n\t _this5._isOpen = false;\n\t _this5.modal.destroy();\n\t // unbind events\n\t if (_this5._keyboardNextEvent) {\n\t global.removeEventListener('keydown', self._keyboardNextEvent);\n\t }\n\t if (_this5._resizeEvent) {\n\t global.removeEventListener('resize', self._resizeEvent);\n\t }\n\t });\n\t\n\t return _this5._future;\n\t });\n\t\n\t this._nextFuture = this._future;\n\t\n\t if (self._widget) {\n\t this.modal = new _Modal2.default(this._modalAppend);\n\t // make sure we close stack before\n\t return this.modal.close().fromWidget(self._widget).then(function () {\n\t return self._future.then(function () {\n\t return self;\n\t });\n\t });\n\t }\n\t return false;\n\t }\n\t }], [{\n\t key: '_setupMaxWidthHeight',\n\t value: function _setupMaxWidthHeight(target, img, loadedImage) {\n\t var nextMaxWidth = target.getAttribute(ATTR_MAX_WIDTH);\n\t var nextMaxHeight = target.getAttribute(ATTR_MAX_HEIGHT);\n\t if (nextMaxWidth && nextMaxHeight) {\n\t img.style.maxWidth = nextMaxWidth + \"px\";\n\t img.style.maxHeight = nextMaxHeight + \"px\";\n\t } else {\n\t img.style.maxWidth = loadedImage.width + \"px\";\n\t img.style.maxHeight = loadedImage.height + \"px\";\n\t }\n\t }\n\t }]);\n\t\n\t return LightBox;\n\t}();\n\t\n\texports.default = LightBox;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 107 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_TOGGLE = undefined;\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t/*!\n\t * FlexCss.OffCanvas\n\t * Licensed under the MIT License (MIT)\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t */\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tvar _Util = __webpack_require__(22);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tvar _Event = __webpack_require__(33);\n\t\n\tvar _Event2 = _interopRequireDefault(_Event);\n\t\n\tvar _FixedWindow = __webpack_require__(51);\n\t\n\tvar _FixedWindow2 = _interopRequireDefault(_FixedWindow);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_CLOSE_SIDEBAR = 'data-close-offcanvas';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_TARGET = 'data-offcanvas';\n\t/**\n\t * @type {string}\n\t */\n\tvar INIT_CLASS = 'init';\n\t/**\n\t * @type {string}\n\t */\n\tvar OPEN_CLASS = 'open';\n\t/**\n\t * @type {number}\n\t */\n\tvar HIDE_FACTOR = 3;\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_TOGGLE = exports.EVENT_TOGGLE = 'flexcss.offcanvas.toggle';\n\t\n\t/**\n\t * A OffCanvas Implementation\n\t */\n\t\n\tvar OffCanvas = function () {\n\t\n\t /**\n\t * Creates an off-canvas navigation\n\t * @param {HTMLElement|String} NavigationId\n\t * @param {HTMLElement|String} Darkener\n\t * @param {int} factor positive will expect right sidebar, positive left\n\t * @param {bool} [disableTouch] if true all touch events are disabled\n\t * @constructor\n\t */\n\t\n\t function OffCanvas(NavigationId, Darkener, factor, disableTouch) {\n\t var _this = this;\n\t\n\t _classCallCheck(this, OffCanvas);\n\t\n\t var doc = global.document;\n\t var touchedX = 0;\n\t var navigationContainer = NavigationId instanceof HTMLElement ? NavigationId : doc.getElementById(NavigationId);\n\t var darkener = Darkener instanceof HTMLElement ? Darkener : doc.getElementById(Darkener);\n\t var DARKENER_CLASS_TOGGLE = 'toggle-' + darkener.id || 'darkener';\n\t var DARKENER_CLASS_INSTANT_TOGGLE = DARKENER_CLASS_TOGGLE + '-open';\n\t\n\t var shouldNotTouch = function shouldNotTouch() {\n\t return window.innerWidth >= _Settings2.default.get().smallBreakpoint;\n\t };\n\t\n\t if (!darkener || !navigationContainer) {\n\t throw new Error('Could not find needed elements (Darkener and/or NavigationId)');\n\t }\n\t\n\t this.darkener = darkener;\n\t this.darkenerClassToggle = DARKENER_CLASS_TOGGLE;\n\t this.darkenerClassToggleInstant = DARKENER_CLASS_INSTANT_TOGGLE;\n\t this.globalToggleClass = _Settings2.default.get().canvasToggledClass;\n\t\n\t this.navigationContainer = navigationContainer;\n\t this.navigationContainerId = navigationContainer.id;\n\t\n\t // create id if id does not exist\n\t if (!this.navigationContainerId) {\n\t this.navigationContainerId = _Util2.default.guid();\n\t navigationContainer.id = this.navigationContainerId;\n\t }\n\t\n\t if (!disableTouch) {\n\t navigationContainer.addEventListener('touchstart', function (e) {\n\t if (shouldNotTouch()) {\n\t return;\n\t }\n\t touchedX = e.touches[0].clientX;\n\t navigationContainer.mustHide = false;\n\t });\n\t navigationContainer.addEventListener('touchmove', function (e) {\n\t if (shouldNotTouch()) {\n\t return;\n\t }\n\t var clientX = e.touches[0].clientX;\n\t\n\t var target = navigationContainer;\n\t var style = target.style;\n\t var calcX = touchedX - clientX;\n\t var bounds = target.getBoundingClientRect();\n\t var compare = factor > 0 ? calcX <= 0 : calcX >= 0;\n\t if (compare) {\n\t style.transition = 'transform 0s ease';\n\t style.webkitTransition = '-webkit-transform 0s ease';\n\t target.mustHide = factor > 0 ? calcX * -1 > bounds.width / HIDE_FACTOR : calcX > bounds.width / HIDE_FACTOR;\n\t var transform = 'translate3d(' + calcX * -1 + 'px,0,0)';\n\t style.transform = transform;\n\t style.webkitTransform = transform;\n\t }\n\t });\n\t navigationContainer.addEventListener('touchend', function () {\n\t if (shouldNotTouch()) {\n\t return;\n\t }\n\t var target = navigationContainer;\n\t var style = target.style;\n\t if (target.mustHide) {\n\t var width = target.getBoundingClientRect().width * factor;\n\t style.transition = 'transform .2s ease';\n\t style.webkitTransition = '-webkit-transform .2s ease';\n\t var transform = 'translate3d(' + width + 'px,0,0)';\n\t style.transform = transform;\n\t style.webkitTransform = transform;\n\t _this._remove().then(function () {\n\t _this.resetTransform(style);\n\t });\n\t _this._removeInstant();\n\t } else {\n\t _this.resetTransform(style);\n\t }\n\t });\n\t }\n\t }\n\t\n\t /**\n\t * @param {Object} s\n\t */\n\t\n\t\n\t _createClass(OffCanvas, [{\n\t key: 'resetTransform',\n\t value: function resetTransform(s) {\n\t s.transform = '';\n\t s.transition = '';\n\t s.webkitTransform = '';\n\t s.webkitTransition = '';\n\t }\n\t\n\t /**\n\t * @param {Object} [event]\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_remove',\n\t value: function _remove(event) {\n\t var _this2 = this;\n\t\n\t return new Promise(function (resolve) {\n\t _Util2.default.addEventOnce(_Settings2.default.getTransitionEvent(), _this2.navigationContainer, function () {\n\t // add timeout because transition event fires a little to early\n\t setTimeout(function () {\n\t requestAnimationFrame(function () {\n\t var body = global.document.body;\n\t OffCanvas.currentOpen = null;\n\t body.classList.remove(_this2.darkenerClassToggle);\n\t global.document.documentElement.classList.remove(_this2.globalToggleClass);\n\t if (!!event) {\n\t _Event2.default.dispatchAndFire(_this2.navigationContainer, EVENT_TOGGLE);\n\t }\n\t resolve();\n\t });\n\t }, _Settings2.default.get().darkenerFadeDelay);\n\t });\n\t });\n\t }\n\t\n\t /**\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_removeInstant',\n\t value: function _removeInstant() {\n\t this.navigationContainer.classList.remove(OPEN_CLASS);\n\t global.document.body.classList.remove(this.darkenerClassToggleInstant);\n\t this.darkener.classList.remove(INIT_CLASS);\n\t _FixedWindow2.default.getInstance().close();\n\t }\n\t\n\t /**\n\t * Toggles a an off-canvas element\n\t * @param [e]\n\t * @private\n\t */\n\t\n\t }, {\n\t key: 'toggle',\n\t value: function toggle(e) {\n\t var _this3 = this;\n\t\n\t if (e) {\n\t e.preventDefault();\n\t }\n\t this.resetTransform(this.navigationContainer.style);\n\t var bodyClass = global.document.body.classList;\n\t var darkenerClass = this.darkener.classList;\n\t var DARKENER_CLASS_TOGGLE = this.darkenerClassToggle;\n\t var DARKENER_CLASS_INSTANT_TOGGLE = this.darkenerClassToggleInstant;\n\t var navigationControllerClassList = this.navigationContainer.classList;\n\t if (!OffCanvas.currentOpen) {\n\t _Util2.default.addEventOnce(_Settings2.default.getTransitionEvent(), this.navigationContainer, function () {\n\t if (!!e) {\n\t _Event2.default.dispatchAndFire(_this3.navigationContainer, EVENT_TOGGLE);\n\t }\n\t });\n\t OffCanvas.currentOpen = this;\n\t _FixedWindow2.default.getInstance().open(this);\n\t global.document.documentElement.classList.add(this.globalToggleClass);\n\t bodyClass.add(DARKENER_CLASS_INSTANT_TOGGLE);\n\t bodyClass.add(DARKENER_CLASS_TOGGLE);\n\t darkenerClass.add(INIT_CLASS);\n\t navigationControllerClassList.add(OPEN_CLASS);\n\t } else {\n\t return this.close(e);\n\t }\n\t }\n\t }, {\n\t key: 'close',\n\t value: function close(event) {\n\t if (this.navigationContainer.classList.contains(OPEN_CLASS)) {\n\t var navigationControllerClassList = this.navigationContainer.classList;\n\t var promise = this._remove(event);\n\t this._removeInstant(navigationControllerClassList);\n\t return promise;\n\t }\n\t return new Promise(function (r) {\n\t return r();\n\t });\n\t }\n\t\n\t /**\n\t * Register events\n\t * @param [delegate]\n\t */\n\t\n\t }, {\n\t key: 'registerEvents',\n\t value: function registerEvents(delegate) {\n\t var _this4 = this;\n\t\n\t var thisDelegate = delegate || global.document;\n\t _FixedWindow2.default.getInstance().addScreenConstraint(OffCanvas, function (width) {\n\t return width < _Settings2.default.get().smallBreakpoint;\n\t });\n\t thisDelegate.addEventListener(_Settings2.default.getTabEvent(), function (e) {\n\t if (OffCanvas.currentOpen && OffCanvas.currentOpen !== _this4) {\n\t return;\n\t }\n\t var id = _this4.navigationContainerId;\n\t var validTarget = e.target.getAttribute(ATTR_TARGET) === id;\n\t if (!_Util2.default.isPartOfNode(e.target, _this4.navigationContainer)) {\n\t if (validTarget || OffCanvas.currentOpen === _this4 && e.target === _this4.darkener) {\n\t _this4.toggle(e);\n\t }\n\t } else {\n\t if (e.target.hasAttribute(ATTR_CLOSE_SIDEBAR)) {\n\t _this4.toggle(e);\n\t }\n\t }\n\t });\n\t }\n\t }]);\n\t\n\t return OffCanvas;\n\t}();\n\t\n\tOffCanvas.currentOpen = null;\n\t\n\texports.default = OffCanvas;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 108 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_TAB_OPENED = exports.EVENT_TAB_CLOSED = undefined;\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t/*!\n\t * FlexCss.Toggleable\n\t * Licensed under the MIT License (MIT)\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t */\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tvar _Widget = __webpack_require__(36);\n\t\n\tvar _Widget2 = _interopRequireDefault(_Widget);\n\t\n\tvar _Util = __webpack_require__(22);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tvar _Event = __webpack_require__(33);\n\t\n\tvar _Event2 = _interopRequireDefault(_Event);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t/**\n\t * Event that is fired when a tab is closed\n\t * @type {string}\n\t */\n\t\n\tvar EVENT_TAB_CLOSED = exports.EVENT_TAB_CLOSED = 'flexcss.tab.closed';\n\t\n\t/**\n\t * Event that is fired when a tab has been opened\n\t * @type {string}\n\t */\n\tvar EVENT_TAB_OPENED = exports.EVENT_TAB_OPENED = 'flexcss.tab.opened';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_NAME = 'data-toggle';\n\t/**\n\t * @type {string}\n\t */\n\tvar ACTIVE_CLASS = 'active';\n\t/**\n\t * @type {string}\n\t */\n\tvar LOADING_CLASS = 'loading';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_TOGGLE_LIST = 'data-toggle-list';\n\t\n\t/**\n\t * Creates a toggleable element, either for tabs or a single toggle\n\t */\n\t\n\tvar Toggleable = function () {\n\t function Toggleable(ContainerId) {\n\t _classCallCheck(this, Toggleable);\n\t\n\t var doc = global.document;\n\t\n\t this.container = ContainerId instanceof HTMLElement ? ContainerId : doc.getElementById(ContainerId);\n\t\n\t this.loading = false;\n\t\n\t if (!this.container) {\n\t throw new Error('Toggleable container with id ' + ContainerId + ' not found');\n\t }\n\t }\n\t\n\t /**\n\t * Listener\n\t * @param {Event} e\n\t * @private\n\t */\n\t\n\t\n\t _createClass(Toggleable, [{\n\t key: '_listener',\n\t value: function _listener(e) {\n\t var target = e.target;\n\t var parent = target.parentNode;\n\t var doc = global.document;\n\t\n\t // support target child element to clicked\n\t if (!target.hasAttribute(ATTR_NAME)) {\n\t if (parent && parent.hasAttribute(ATTR_NAME)) {\n\t target = parent;\n\t } else {\n\t return;\n\t }\n\t }\n\t\n\t if (!target.hasAttribute(ATTR_NAME)) {\n\t return;\n\t }\n\t\n\t var refId = target.getAttribute(ATTR_NAME);\n\t var ref = doc.getElementById(refId);\n\t\n\t e.preventDefault();\n\t\n\t if (this.loading) {\n\t return;\n\t }\n\t\n\t this.toggleTarget(ref, target);\n\t }\n\t\n\t /**\n\t * Registers Events for this instance\n\t * @returns {Toggleable}\n\t */\n\t\n\t }, {\n\t key: 'registerEvents',\n\t value: function registerEvents() {\n\t this.container.addEventListener(_Settings2.default.getTabEvent(), this._listener.bind(this));\n\t return this;\n\t }\n\t\n\t /**\n\t * Toggles given `ref`\n\t * @param {HTMLElement|Node} ref\n\t * @param {HTMLElement|Node} [selfTarget] optional target node\n\t */\n\t\n\t }, {\n\t key: 'toggleTarget',\n\t value: function toggleTarget(ref, selfTarget) {\n\t var _this = this;\n\t\n\t var target = selfTarget;\n\t if (!target && !ref) {\n\t return;\n\t }\n\t if (!target) {\n\t target = document.querySelector('[' + ATTR_NAME + '=\"' + ref.id + '\"]');\n\t }\n\t\n\t var maybeToggleNode = undefined;\n\t var future = undefined;\n\t var elClassList = target.classList;\n\t var parentClassList = undefined;\n\t var parent = target.parentNode;\n\t var doc = global.document;\n\t\n\t future = new Promise(function (resolve, failure) {\n\t if (ref) {\n\t resolve(ref);\n\t } else {\n\t var widget = _Widget2.default.findWidget(target);\n\t var async = widget ? widget.getAsync() : null;\n\t if (_Widget2.default.isWidget(widget) && async) {\n\t future = async.then(function (r) {\n\t if (r instanceof HTMLElement) {\n\t var id = _Util2.default.guid();\n\t r.id = id;\n\t target.setAttribute(ATTR_NAME, id);\n\t resolve(r);\n\t } else {\n\t throw new Error('Dynamically creating toggle-content is not supported right now.\\n Return an HTMLElement instance');\n\t }\n\t });\n\t } else {\n\t failure('Target not given');\n\t }\n\t }\n\t });\n\t\n\t if (parent) {\n\t maybeToggleNode = _Util2.default.parentsUntil(target, function (node) {\n\t return node && node.hasAttribute && node.hasAttribute(ATTR_TOGGLE_LIST);\n\t });\n\t\n\t parentClassList = parent.classList;\n\t // Abort if element is already active and if is part of a toggle list\n\t if (maybeToggleNode) {\n\t if (!parentClassList.contains(ACTIVE_CLASS)) {\n\t parentClassList.toggle(ACTIVE_CLASS);\n\t parentClassList.add(LOADING_CLASS);\n\t } else {\n\t return;\n\t }\n\t }\n\t\n\t if (maybeToggleNode) {\n\t for (var i = 0; i < maybeToggleNode.children.length; i++) {\n\t var n = maybeToggleNode.children[i];\n\t var targetRef = n.children[0];\n\t if (n !== parent) {\n\t n.classList.remove(ACTIVE_CLASS);\n\t if (targetRef) {\n\t var attr = targetRef.getAttribute(ATTR_NAME);\n\t var el = attr ? doc.getElementById(attr) : null;\n\t if (el) {\n\t _Event2.default.dispatchAndFire(el, EVENT_TAB_CLOSED);\n\t el.classList.remove(ACTIVE_CLASS);\n\t targetRef.classList.remove(ACTIVE_CLASS);\n\t }\n\t }\n\t }\n\t }\n\t }\n\t }\n\t if (elClassList) {\n\t elClassList.toggle(ACTIVE_CLASS);\n\t elClassList.add(LOADING_CLASS);\n\t }\n\t this.loading = true;\n\t future.then(function (r) {\n\t _Event2.default.dispatchAndFire(r, EVENT_TAB_OPENED);\n\t Toggleable._handleLoaded(target);\n\t r.classList.toggle(ACTIVE_CLASS);\n\t _this.loading = false;\n\t }).catch(function () {\n\t _this.loading = false;\n\t Toggleable._handleLoaded(target);\n\t });\n\t }\n\t\n\t /**\n\t * @param el\n\t * @private\n\t */\n\t\n\t }], [{\n\t key: '_handleLoaded',\n\t value: function _handleLoaded(el) {\n\t var parentClassList = el.parentNode.classList;\n\t el.classList.remove(LOADING_CLASS);\n\t if (parentClassList) {\n\t parentClassList.remove(LOADING_CLASS);\n\t }\n\t }\n\t }]);\n\t\n\t return Toggleable;\n\t}();\n\t\n\texports.default = Toggleable;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 109 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\texports.default = function (fn, ms) {\n\t return function () {\n\t clearTimeout(fn.timeout);\n\t fn.timeout = setTimeout(fn, ms);\n\t };\n\t};\n\n/***/ },\n/* 110 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.LightBox = exports.Dropdown = exports.OffCanvas = exports.Toggleable = exports.Util = exports.Settings = exports.Widget = exports.Modal = exports.Tooltip = exports.Form = undefined;\n\t\n\tvar _Form = __webpack_require__(105);\n\t\n\tvar _Form2 = _interopRequireDefault(_Form);\n\t\n\tvar _Tooltip = __webpack_require__(102);\n\t\n\tvar _Tooltip2 = _interopRequireDefault(_Tooltip);\n\t\n\tvar _Modal = __webpack_require__(101);\n\t\n\tvar _Modal2 = _interopRequireDefault(_Modal);\n\t\n\tvar _Widget = __webpack_require__(36);\n\t\n\tvar _Widget2 = _interopRequireDefault(_Widget);\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tvar _Toggleable = __webpack_require__(108);\n\t\n\tvar _Toggleable2 = _interopRequireDefault(_Toggleable);\n\t\n\tvar _OffCanvas = __webpack_require__(107);\n\t\n\tvar _OffCanvas2 = _interopRequireDefault(_OffCanvas);\n\t\n\tvar _Dropdown = __webpack_require__(104);\n\t\n\tvar _Dropdown2 = _interopRequireDefault(_Dropdown);\n\t\n\tvar _LightBox = __webpack_require__(106);\n\t\n\tvar _LightBox2 = _interopRequireDefault(_LightBox);\n\t\n\tvar _Util = __webpack_require__(22);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.Form = _Form2.default;\n\texports.Tooltip = _Tooltip2.default;\n\texports.Modal = _Modal2.default;\n\texports.Widget = _Widget2.default;\n\texports.Settings = _Settings2.default;\n\texports.Util = _Util2.default;\n\texports.Toggleable = _Toggleable2.default;\n\texports.OffCanvas = _OffCanvas2.default;\n\texports.Dropdown = _Dropdown2.default;\n\texports.LightBox = _LightBox2.default;\n\n/***/ },\n/* 111 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(112), __esModule: true };\n\n/***/ },\n/* 112 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar core = __webpack_require__(2);\n\tmodule.exports = function stringify(it){ // eslint-disable-line no-unused-vars\n\t return (core.JSON && core.JSON.stringify || JSON.stringify).apply(JSON, arguments);\n\t};\n\n/***/ },\n/* 113 */,\n/* 114 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// the whatwg-fetch polyfill installs the fetch() function\n\t// on the global object (window or self)\n\t//\n\t// Return that as the export for use in Webpack, Browserify etc.\n\t__webpack_require__(115);\n\tmodule.exports = self.fetch.bind(self);\n\n\n/***/ },\n/* 115 */\n/***/ function(module, exports) {\n\n\t(function(self) {\n\t 'use strict';\n\t\n\t if (self.fetch) {\n\t return\n\t }\n\t\n\t function normalizeName(name) {\n\t if (typeof name !== 'string') {\n\t name = String(name)\n\t }\n\t if (/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(name)) {\n\t throw new TypeError('Invalid character in header field name')\n\t }\n\t return name.toLowerCase()\n\t }\n\t\n\t function normalizeValue(value) {\n\t if (typeof value !== 'string') {\n\t value = String(value)\n\t }\n\t return value\n\t }\n\t\n\t function Headers(headers) {\n\t this.map = {}\n\t\n\t if (headers instanceof Headers) {\n\t headers.forEach(function(value, name) {\n\t this.append(name, value)\n\t }, this)\n\t\n\t } else if (headers) {\n\t Object.getOwnPropertyNames(headers).forEach(function(name) {\n\t this.append(name, headers[name])\n\t }, this)\n\t }\n\t }\n\t\n\t Headers.prototype.append = function(name, value) {\n\t name = normalizeName(name)\n\t value = normalizeValue(value)\n\t var list = this.map[name]\n\t if (!list) {\n\t list = []\n\t this.map[name] = list\n\t }\n\t list.push(value)\n\t }\n\t\n\t Headers.prototype['delete'] = function(name) {\n\t delete this.map[normalizeName(name)]\n\t }\n\t\n\t Headers.prototype.get = function(name) {\n\t var values = this.map[normalizeName(name)]\n\t return values ? values[0] : null\n\t }\n\t\n\t Headers.prototype.getAll = function(name) {\n\t return this.map[normalizeName(name)] || []\n\t }\n\t\n\t Headers.prototype.has = function(name) {\n\t return this.map.hasOwnProperty(normalizeName(name))\n\t }\n\t\n\t Headers.prototype.set = function(name, value) {\n\t this.map[normalizeName(name)] = [normalizeValue(value)]\n\t }\n\t\n\t Headers.prototype.forEach = function(callback, thisArg) {\n\t Object.getOwnPropertyNames(this.map).forEach(function(name) {\n\t this.map[name].forEach(function(value) {\n\t callback.call(thisArg, value, name, this)\n\t }, this)\n\t }, this)\n\t }\n\t\n\t function consumed(body) {\n\t if (body.bodyUsed) {\n\t return Promise.reject(new TypeError('Already read'))\n\t }\n\t body.bodyUsed = true\n\t }\n\t\n\t function fileReaderReady(reader) {\n\t return new Promise(function(resolve, reject) {\n\t reader.onload = function() {\n\t resolve(reader.result)\n\t }\n\t reader.onerror = function() {\n\t reject(reader.error)\n\t }\n\t })\n\t }\n\t\n\t function readBlobAsArrayBuffer(blob) {\n\t var reader = new FileReader()\n\t reader.readAsArrayBuffer(blob)\n\t return fileReaderReady(reader)\n\t }\n\t\n\t function readBlobAsText(blob) {\n\t var reader = new FileReader()\n\t reader.readAsText(blob)\n\t return fileReaderReady(reader)\n\t }\n\t\n\t var support = {\n\t blob: 'FileReader' in self && 'Blob' in self && (function() {\n\t try {\n\t new Blob();\n\t return true\n\t } catch(e) {\n\t return false\n\t }\n\t })(),\n\t formData: 'FormData' in self,\n\t arrayBuffer: 'ArrayBuffer' in self\n\t }\n\t\n\t function Body() {\n\t this.bodyUsed = false\n\t\n\t\n\t this._initBody = function(body) {\n\t this._bodyInit = body\n\t if (typeof body === 'string') {\n\t this._bodyText = body\n\t } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n\t this._bodyBlob = body\n\t } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n\t this._bodyFormData = body\n\t } else if (!body) {\n\t this._bodyText = ''\n\t } else if (support.arrayBuffer && ArrayBuffer.prototype.isPrototypeOf(body)) {\n\t // Only support ArrayBuffers for POST method.\n\t // Receiving ArrayBuffers happens via Blobs, instead.\n\t } else {\n\t throw new Error('unsupported BodyInit type')\n\t }\n\t\n\t if (!this.headers.get('content-type')) {\n\t if (typeof body === 'string') {\n\t this.headers.set('content-type', 'text/plain;charset=UTF-8')\n\t } else if (this._bodyBlob && this._bodyBlob.type) {\n\t this.headers.set('content-type', this._bodyBlob.type)\n\t }\n\t }\n\t }\n\t\n\t if (support.blob) {\n\t this.blob = function() {\n\t var rejected = consumed(this)\n\t if (rejected) {\n\t return rejected\n\t }\n\t\n\t if (this._bodyBlob) {\n\t return Promise.resolve(this._bodyBlob)\n\t } else if (this._bodyFormData) {\n\t throw new Error('could not read FormData body as blob')\n\t } else {\n\t return Promise.resolve(new Blob([this._bodyText]))\n\t }\n\t }\n\t\n\t this.arrayBuffer = function() {\n\t return this.blob().then(readBlobAsArrayBuffer)\n\t }\n\t\n\t this.text = function() {\n\t var rejected = consumed(this)\n\t if (rejected) {\n\t return rejected\n\t }\n\t\n\t if (this._bodyBlob) {\n\t return readBlobAsText(this._bodyBlob)\n\t } else if (this._bodyFormData) {\n\t throw new Error('could not read FormData body as text')\n\t } else {\n\t return Promise.resolve(this._bodyText)\n\t }\n\t }\n\t } else {\n\t this.text = function() {\n\t var rejected = consumed(this)\n\t return rejected ? rejected : Promise.resolve(this._bodyText)\n\t }\n\t }\n\t\n\t if (support.formData) {\n\t this.formData = function() {\n\t return this.text().then(decode)\n\t }\n\t }\n\t\n\t this.json = function() {\n\t return this.text().then(JSON.parse)\n\t }\n\t\n\t return this\n\t }\n\t\n\t // HTTP methods whose capitalization should be normalized\n\t var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\t\n\t function normalizeMethod(method) {\n\t var upcased = method.toUpperCase()\n\t return (methods.indexOf(upcased) > -1) ? upcased : method\n\t }\n\t\n\t function Request(input, options) {\n\t options = options || {}\n\t var body = options.body\n\t if (Request.prototype.isPrototypeOf(input)) {\n\t if (input.bodyUsed) {\n\t throw new TypeError('Already read')\n\t }\n\t this.url = input.url\n\t this.credentials = input.credentials\n\t if (!options.headers) {\n\t this.headers = new Headers(input.headers)\n\t }\n\t this.method = input.method\n\t this.mode = input.mode\n\t if (!body) {\n\t body = input._bodyInit\n\t input.bodyUsed = true\n\t }\n\t } else {\n\t this.url = input\n\t }\n\t\n\t this.credentials = options.credentials || this.credentials || 'omit'\n\t if (options.headers || !this.headers) {\n\t this.headers = new Headers(options.headers)\n\t }\n\t this.method = normalizeMethod(options.method || this.method || 'GET')\n\t this.mode = options.mode || this.mode || null\n\t this.referrer = null\n\t\n\t if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n\t throw new TypeError('Body not allowed for GET or HEAD requests')\n\t }\n\t this._initBody(body)\n\t }\n\t\n\t Request.prototype.clone = function() {\n\t return new Request(this)\n\t }\n\t\n\t function decode(body) {\n\t var form = new FormData()\n\t body.trim().split('&').forEach(function(bytes) {\n\t if (bytes) {\n\t var split = bytes.split('=')\n\t var name = split.shift().replace(/\\+/g, ' ')\n\t var value = split.join('=').replace(/\\+/g, ' ')\n\t form.append(decodeURIComponent(name), decodeURIComponent(value))\n\t }\n\t })\n\t return form\n\t }\n\t\n\t function headers(xhr) {\n\t var head = new Headers()\n\t var pairs = xhr.getAllResponseHeaders().trim().split('\\n')\n\t pairs.forEach(function(header) {\n\t var split = header.trim().split(':')\n\t var key = split.shift().trim()\n\t var value = split.join(':').trim()\n\t head.append(key, value)\n\t })\n\t return head\n\t }\n\t\n\t Body.call(Request.prototype)\n\t\n\t function Response(bodyInit, options) {\n\t if (!options) {\n\t options = {}\n\t }\n\t\n\t this.type = 'default'\n\t this.status = options.status\n\t this.ok = this.status >= 200 && this.status < 300\n\t this.statusText = options.statusText\n\t this.headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers)\n\t this.url = options.url || ''\n\t this._initBody(bodyInit)\n\t }\n\t\n\t Body.call(Response.prototype)\n\t\n\t Response.prototype.clone = function() {\n\t return new Response(this._bodyInit, {\n\t status: this.status,\n\t statusText: this.statusText,\n\t headers: new Headers(this.headers),\n\t url: this.url\n\t })\n\t }\n\t\n\t Response.error = function() {\n\t var response = new Response(null, {status: 0, statusText: ''})\n\t response.type = 'error'\n\t return response\n\t }\n\t\n\t var redirectStatuses = [301, 302, 303, 307, 308]\n\t\n\t Response.redirect = function(url, status) {\n\t if (redirectStatuses.indexOf(status) === -1) {\n\t throw new RangeError('Invalid status code')\n\t }\n\t\n\t return new Response(null, {status: status, headers: {location: url}})\n\t }\n\t\n\t self.Headers = Headers;\n\t self.Request = Request;\n\t self.Response = Response;\n\t\n\t self.fetch = function(input, init) {\n\t return new Promise(function(resolve, reject) {\n\t var request\n\t if (Request.prototype.isPrototypeOf(input) && !init) {\n\t request = input\n\t } else {\n\t request = new Request(input, init)\n\t }\n\t\n\t var xhr = new XMLHttpRequest()\n\t\n\t function responseURL() {\n\t if ('responseURL' in xhr) {\n\t return xhr.responseURL\n\t }\n\t\n\t // Avoid security warnings on getResponseHeader when not allowed by CORS\n\t if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {\n\t return xhr.getResponseHeader('X-Request-URL')\n\t }\n\t\n\t return;\n\t }\n\t\n\t xhr.onload = function() {\n\t var status = (xhr.status === 1223) ? 204 : xhr.status\n\t if (status < 100 || status > 599) {\n\t reject(new TypeError('Network request failed'))\n\t return\n\t }\n\t var options = {\n\t status: status,\n\t statusText: xhr.statusText,\n\t headers: headers(xhr),\n\t url: responseURL()\n\t }\n\t var body = 'response' in xhr ? xhr.response : xhr.responseText;\n\t resolve(new Response(body, options))\n\t }\n\t\n\t xhr.onerror = function() {\n\t reject(new TypeError('Network request failed'))\n\t }\n\t\n\t xhr.open(request.method, request.url, true)\n\t\n\t if (request.credentials === 'include') {\n\t xhr.withCredentials = true\n\t }\n\t\n\t if ('responseType' in xhr && support.blob) {\n\t xhr.responseType = 'blob'\n\t }\n\t\n\t request.headers.forEach(function(value, name) {\n\t xhr.setRequestHeader(name, value)\n\t })\n\t\n\t xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n\t })\n\t }\n\t self.fetch.polyfill = true\n\t})(typeof self !== 'undefined' ? self : this);\n\n\n/***/ }\n/******/ ])\n});\n;\n\n\n/** WEBPACK FOOTER **\n ** js/site.min.js\n **/"," \t// The module cache\n \tvar installedModules = {};\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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"../\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 15f3bfefb7f0b8c9df4c\n **/","var $Object = Object;\nmodule.exports = {\n create: $Object.create,\n getProto: $Object.getPrototypeOf,\n isEnum: {}.propertyIsEnumerable,\n getDesc: $Object.getOwnPropertyDescriptor,\n setDesc: $Object.defineProperty,\n setDescs: $Object.defineProperties,\n getKeys: $Object.keys,\n getNames: $Object.getOwnPropertyNames,\n getSymbols: $Object.getOwnPropertySymbols,\n each: [].forEach\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.js\n ** module id = 1\n ** module chunks = 0 1\n **/","var core = module.exports = {version: '1.2.6'};\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.core.js\n ** module id = 2\n ** module chunks = 0 1\n **/","var store = require('./$.shared')('wks')\n , uid = require('./$.uid')\n , Symbol = require('./$.global').Symbol;\nmodule.exports = function(name){\n return store[name] || (store[name] =\n Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.wks.js\n ** module id = 3\n ** module chunks = 0 1\n **/","var global = require('./$.global')\n , core = require('./$.core')\n , ctx = require('./$.ctx')\n , PROTOTYPE = 'prototype';\n\nvar $export = function(type, name, source){\n var IS_FORCED = type & $export.F\n , IS_GLOBAL = type & $export.G\n , IS_STATIC = type & $export.S\n , IS_PROTO = type & $export.P\n , IS_BIND = type & $export.B\n , IS_WRAP = type & $export.W\n , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n , key, own, out;\n if(IS_GLOBAL)source = name;\n for(key in source){\n // contains in native\n own = !IS_FORCED && target && key in target;\n if(own && key in exports)continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function(C){\n var F = function(param){\n return this instanceof C ? new C(param) : C(param);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\nmodule.exports = $export;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.export.js\n ** module id = 4\n ** module chunks = 0 1\n **/","module.exports = {};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iterators.js\n ** module id = 5\n ** module chunks = 0 1\n **/","var isObject = require('./$.is-object');\nmodule.exports = function(it){\n if(!isObject(it))throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.an-object.js\n ** module id = 6\n ** module chunks = 0 1\n **/","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./$.fails')(function(){\n return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.descriptors.js\n ** module id = 7\n ** module chunks = 0 1\n **/","module.exports = function(exec){\n try {\n return !!exec();\n } catch(e){\n return true;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.fails.js\n ** module id = 8\n ** module chunks = 0 1\n **/","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\nif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.global.js\n ** module id = 9\n ** module chunks = 0 1\n **/","var $ = require('./$')\n , createDesc = require('./$.property-desc');\nmodule.exports = require('./$.descriptors') ? function(object, key, value){\n return $.setDesc(object, key, createDesc(1, value));\n} : function(object, key, value){\n object[key] = value;\n return object;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.hide.js\n ** module id = 10\n ** module chunks = 0 1\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport Util from './Util';\n\n// we attach global settings to global once because settings might be shared a lot of times trough the application\n// Maybe find a better way to handle that scenario\nif (!global.FLEXCSS_GLOBAL_SETTINGS) {\n global.FLEXCSS_GLOBAL_SETTINGS = {\n // defined breakpoint for small devices < n\n smallBreakpoint: 768,\n // nodes that should be updated when no scrollbar is expected\n scrollbarUpdateNodes: global.document.body !== null ? [global.document.body] : [],\n // additional Delay until darkener is fully hidden\n darkenerFadeDelay: 100,\n // class that is added if canvas has been toggled\n canvasToggledClass: 'toggled-canvas'\n };\n\n global.FLEXCSS_CONST_IS_IOS = null;\n\n global.FLEXCSS_CONST_IS_TOUCH = null;\n\n global.FLEXCSS_CONST_IS_IE = null;\n\n global.FLEXCSS_CONST_TAB_EVENT = 'click';\n\n global.FLEXCSS_IS_SMALL_SCREEN = false;\n\n const init = () => {\n // Measure scrollbar width\n global.FLEXCSS_CONST_SCROLLBAR_WIDTH = Util.getScrollBarWidth();\n // detect right transition end event\n global.FLEXCSS_CONST_TRANSITION_EVENT = Util.whichTransitionEndEvent();\n };\n\n if (global.document.readyState !== 'loading') {\n init();\n } else {\n // it's possible that global.document.body is not available if the document is not\n // loaded completely\n document.addEventListener('DOMContentLoaded', () => {\n init();\n });\n }\n}\n\n/**\n * Utility class that setups global settings\n */\nclass Settings {\n\n /**\n * Setup global settings, overwrite default values\n * @param {Object} settings\n */\n static setup(settings) {\n Object.assign(global.FLEXCSS_GLOBAL_SETTINGS, settings);\n }\n\n /**\n * Access to global settings\n * @returns {Object}\n */\n static get() {\n return global.FLEXCSS_GLOBAL_SETTINGS;\n }\n\n /**\n * Detects a IOS Device, caches subsequent calls\n * @returns {boolean}\n */\n static isIosDevice() {\n if (!global.FLEXCSS_CONST_IS_IOS) {\n global.FLEXCSS_CONST_IS_IOS = global.navigator.userAgent.match(/(iPad|iPhone|iPod)/i);\n }\n\n return global.FLEXCSS_CONST_IS_IOS;\n }\n\n /**\n * @returns {boolean}\n */\n static isSmallScreen() {\n return window.innerWidth < Settings.get().smallBreakpoint;\n }\n\n /**\n * Detects a touch device, caches subsequent calls\n * @returns {boolean}\n */\n static isTouchDevice() {\n if (!global.FLEXCSS_CONST_IS_TOUCH) {\n global.FLEXCSS_CONST_IS_TOUCH = 'ontouchstart' in window || !!(global.navigator.msMaxTouchPoints);\n }\n return global.FLEXCSS_CONST_IS_TOUCH;\n }\n\n /**\n * Checks if current browser is Internet Explorer\n * @returns {boolean|*}\n */\n static isIE() {\n if (!global.FLEXCSS_CONST_IS_IE) {\n global.FLEXCSS_CONST_IS_IE = \"ActiveXObject\" in window;\n }\n return global.FLEXCSS_CONST_IS_IE;\n }\n\n /**\n * @returns {String}\n */\n static getTransitionEvent() {\n return global.FLEXCSS_CONST_TRANSITION_EVENT;\n }\n\n /**\n * @returns {int}\n */\n static getScrollbarWidth() {\n return global.FLEXCSS_CONST_SCROLLBAR_WIDTH;\n }\n\n /**\n * @returns {String}\n */\n static getTabEvent() {\n return global.FLEXCSS_CONST_TAB_EVENT;\n }\n}\n\nexport default Settings;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/util/Settings.js\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/classCallCheck.js\n ** module id = 12\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\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 (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/createClass.js\n ** module id = 13\n ** module chunks = 0 1\n **/","// optional / simple context binding\nvar aFunction = require('./$.a-function');\nmodule.exports = function(fn, that, length){\n aFunction(fn);\n if(that === undefined)return fn;\n switch(length){\n case 1: return function(a){\n return fn.call(that, a);\n };\n case 2: return function(a, b){\n return fn.call(that, a, b);\n };\n case 3: return function(a, b, c){\n return fn.call(that, a, b, c);\n };\n }\n return function(/* ...args */){\n return fn.apply(that, arguments);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.ctx.js\n ** module id = 14\n ** module chunks = 0 1\n **/","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function(it){\n if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.defined.js\n ** module id = 15\n ** module chunks = 0 1\n **/","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function(it, key){\n return hasOwnProperty.call(it, key);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.has.js\n ** module id = 16\n ** module chunks = 0 1\n **/","module.exports = function(it){\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-object.js\n ** module id = 17\n ** module chunks = 0 1\n **/","var def = require('./$').setDesc\n , has = require('./$.has')\n , TAG = require('./$.wks')('toStringTag');\n\nmodule.exports = function(it, tag, stat){\n if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-to-string-tag.js\n ** module id = 18\n ** module chunks = 0 1\n **/","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./$.iobject')\n , defined = require('./$.defined');\nmodule.exports = function(it){\n return IObject(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-iobject.js\n ** module id = 19\n ** module chunks = 0 1\n **/","'use strict';\nvar $at = require('./$.string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./$.iter-define')(String, 'String', function(iterated){\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , index = this._i\n , point;\n if(index >= O.length)return {value: undefined, done: true};\n point = $at(O, index);\n this._i += point.length;\n return {value: point, done: false};\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.string.iterator.js\n ** module id = 20\n ** module chunks = 0 1\n **/","require('./es6.array.iterator');\nvar Iterators = require('./$.iterators');\nIterators.NodeList = Iterators.HTMLCollection = Iterators.Array;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/web.dom.iterable.js\n ** module id = 21\n ** module chunks = 0 1\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nconst PFX = [\"webkit\", \"moz\", \"MS\", \"o\", \"\"];\n\nconst COL_LEFT_CLASS = 'is-collision-left';\n\nconst COL_RIGHT_CLASS = 'is-collision-right';\n\nconst COL_BOTTOM_CLASS = 'is-collision-bottom';\n\n/**\n * Provides shared DOM-Utility functions\n */\nclass Util {\n\n /**\n * Will register the right animation event based on browser\n * @param element\n * @param type\n * @param callback\n */\n static prefixedAnimateEvent(element, type, callback) {\n const thisFunction = function thisFunction(e) {\n callback.apply(element, [e, thisFunction]);\n };\n\n for (let p = 0; p < PFX.length; p++) {\n let thisType = type;\n if (!PFX[p]) {\n thisType = type.toLowerCase();\n }\n const name = PFX[p] + thisType;\n element.addEventListener(name, thisFunction, true);\n }\n }\n\n /**\n * Get correct transitionend event\n * @returns {String}\n * @private\n */\n static whichTransitionEndEvent() {\n let t;\n const el = document.createElement('fake');\n\n const transitions = {\n transition: 'transitionend',\n OTransition: 'oTransitionEnd',\n MozTransition: 'transitionend',\n WebkitTransition: 'webkitTransitionEnd'\n };\n\n for (t in transitions) {\n if (el.style[t] !== undefined) {\n return transitions[t];\n }\n }\n }\n\n /**\n * Check if target is part of parent node\n * @param target\n * @param parent\n * @returns {boolean}\n */\n static isPartOfNode(target, parent) {\n if (!target || !parent) {\n return false;\n }\n let now = target;\n while (now !== parent && now !== null) {\n if (now === parent) {\n break;\n }\n now = now.parentNode;\n }\n return now !== null;\n }\n\n /**\n * Finds the closest element including itself matching a callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static closestCallback(el, callback) {\n let element = el;\n while (element !== null) {\n if (callback(element)) {\n return element;\n }\n element = element.parentNode;\n }\n return false;\n }\n\n /**\n * Walks the tree until func returns true for given argument\n * @param target\n * @param func\n * @returns {boolean|HTMLElement}\n */\n static parentsUntil(target, func) {\n if (!target) {\n return false;\n }\n let now = target;\n while (!func(now) && now !== null) {\n now = now.parentNode;\n }\n\n return now;\n }\n\n /**\n * Generates a unique id\n * @return {String}\n */\n static guid() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n\n return `${s4() + s4()}-${s4()}-${s4()}-${s4()}-${s4() + s4() + s4()}`;\n }\n\n /**\n * Detects scrollbar width\n * @see http://stackoverflow.com/questions/986937/how-can-i-get-the-browsers-scrollbar-sizes\n * @returns {number}\n */\n static getScrollBarWidth() {\n const doc = global.document;\n const inner = doc.createElement('p');\n\n inner.style.width = \"100%\";\n inner.style.height = \"200px\";\n\n const outer = doc.createElement('div');\n outer.style.position = \"absolute\";\n outer.style.top = \"0px\";\n outer.style.left = \"0px\";\n outer.style.visibility = \"hidden\";\n outer.style.width = \"200px\";\n outer.style.height = \"150px\";\n outer.style.overflow = \"hidden\";\n outer.appendChild(inner);\n\n doc.body.appendChild(outer);\n const w1 = inner.offsetWidth;\n outer.style.overflow = 'scroll';\n let w2 = inner.offsetWidth;\n if (w1 === w2) {\n w2 = outer.clientWidth;\n }\n doc.body.removeChild(outer);\n\n return (w1 - w2);\n }\n\n\n /**\n * Run an event once\n * @param {String} ev\n * @param {HTMLElement|HTMLDocument} target\n * @param {Function} func\n * @param {boolean} [capture]\n * @return Function created listener\n */\n static addEventOnce(ev, target, func, capture) {\n const thisFunction = function thisFunction(event) {\n func(event, func);\n target.removeEventListener(ev, thisFunction, capture);\n };\n target.addEventListener(ev, thisFunction, capture);\n return thisFunction;\n }\n\n /**\n * Checks if an element is visible\n * @param {HTMLElement} element\n * @returns bool\n */\n static isVisible(element) {\n return element.offsetWidth > 0 && element.offsetHeight > 0;\n }\n\n /**\n * Creates a camelCaseRepresentation of a dashed string\n * @param {String} str\n * @returns String\n */\n static dashToCamelCase(str) {\n return str.replace(/-([a-z])/g, (g) => {\n return g[1].toUpperCase();\n });\n }\n\n /**\n * Creates a copy of `input`\n * @param {*} input\n * @return *\n */\n static copy(input) {\n return JSON.parse(JSON.stringify(input));\n }\n\n /**\n * Reads options from element (data attributes) and applies to base\n * @param {HTMLElement} element\n * @param {Object} base\n * @return {Object}\n */\n static applyOptionsFromElement(element, base) {\n if (!element) {\n return base;\n }\n const attrs = element.attributes;\n for (let i = 0; i < attrs.length; i++) {\n const attr = attrs[i];\n if (attr) {\n const s = Util.dashToCamelCase(attr.nodeName.replace('data-', ''));\n const val = attr.nodeValue;\n if (base.hasOwnProperty(s)) {\n // skip functions\n if (typeof base[s] === 'function') {\n continue;\n }\n if (typeof base[s] === 'boolean') {\n base[s] = parseInt(val || 1, 10) === 1;\n } else {\n base[s] = val;\n }\n }\n }\n }\n return base;\n }\n\n /**\n * Will position an element directly at given target\n * Is aware of a given collision container to detect edges\n * Will put elementToPosition either to left, center or right edge (prefer right)\n * and either to bottom or top (prefers bottom)\n *\n * You may overwrite preferred positioned with `centerHorizontal` and `positionTop`\n *\n * @param {HTMLElement|ClientRect} target the target container to align to\n * @param {HTMLElement} elementToPosition the element to position\n * @param {HTMLElement} collisionContainer the outer container to prevent collisions\n * @param {bool} [centerHorizontal] set true to center element, otherwise it's put on the right border by default\n * @param {bool} [positionTop] flip top, by default element is positioned to the bottom.\n * @returns {HTMLElement}\n */\n static setupPositionNearby(target, elementToPosition, collisionContainer, centerHorizontal, positionTop) {\n // determine relative offsets\n let amountTop = 0;\n let amountLeft = 0;\n Util.parentsUntil(target.parentNode, (el) => {\n if (!(el instanceof HTMLElement)) {\n return false;\n }\n const style = window.getComputedStyle(el);\n if (Util.isPartOfNode(elementToPosition, el)) {\n if (style && style.position === 'relative') {\n amountTop += el.offsetTop || 0;\n amountLeft += el.offsetLeft || 0;\n }\n return false;\n }\n return true;\n });\n\n const targetPosition = target instanceof HTMLElement ? target.getBoundingClientRect() : target;\n const elementRect = elementToPosition.getBoundingClientRect();\n const colRect = collisionContainer.getBoundingClientRect();\n const targetTop = targetPosition.top - amountTop;\n const targetRight = targetPosition.right;\n const isCollisionTop = (targetTop - elementRect.height) <= 0;\n const isCollisionBottom =\n window.innerHeight < (targetTop + amountTop + targetPosition.height + elementRect.height);\n const isCollisionLeft = targetRight < elementRect.width;\n const targetLeft = targetPosition.left;\n const isCollisionRight = (targetLeft + elementRect.width) > colRect.width;\n const classList = elementToPosition.classList;\n\n classList.remove(COL_RIGHT_CLASS);\n classList.remove(COL_LEFT_CLASS);\n classList.remove(COL_BOTTOM_CLASS);\n\n let calcTop;\n let calcLeft;\n if (isCollisionLeft && !isCollisionRight) {\n // put element to left if collision with left\n calcLeft = `${(targetPosition.left - colRect.left - amountLeft)}px`;\n classList.add(COL_LEFT_CLASS);\n } else {\n // maybe center if no collision with either side\n const rightPosition = `${(targetRight - elementRect.width - colRect.left - amountLeft)}px`;\n const leftCentered = ((targetLeft + targetPosition.width / 2) -\n (elementRect.width / 2) || 0) - colRect.left;\n const collisionCentered = (leftCentered + elementRect.width) > colRect.width;\n if (centerHorizontal && !collisionCentered) {\n calcLeft = `${leftCentered}px`;\n } else {\n classList.add(COL_RIGHT_CLASS);\n calcLeft = rightPosition;\n }\n }\n\n if (isCollisionBottom || (positionTop && !isCollisionTop)) {\n // Put Element on top if collision\n calcTop = `${(targetTop - elementRect.height) - colRect.top}px`;\n classList.add(COL_BOTTOM_CLASS);\n } else {\n calcTop = `${(targetTop + targetPosition.height) - colRect.top}px`;\n }\n\n elementToPosition.style.cssText = `top:${calcTop};left:${calcLeft};`;\n\n return elementToPosition;\n }\n\n /**\n * Brings a given element into viewport\n * @param {HTMLElement} el\n * @param {int|function}[optionalOffset]\n */\n static scrollToElement(el, optionalOffset) {\n el.scrollIntoView();\n let thisOffset = optionalOffset;\n // optionally use a additional scrollDif\n if (thisOffset) {\n if (typeof thisOffset === 'function') {\n thisOffset = optionalOffset();\n }\n if (thisOffset > 0) {\n const scrolledY = window.pageYOffset;\n if (scrolledY) {\n window.scroll(0, scrolledY - thisOffset);\n }\n }\n }\n }\n}\n\nexport default Util;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/util/Util.js\n **/","/* global Node */\n\nimport RenderResult from './RenderResult';\nimport RenderingEvents from './RenderingEvents';\nimport Util, { ATTR_DATA_ORIGINAL_INDEX, DATA_IS_SELECTION } from './util/Util';\n\n/**\n * @type {string}\n */\nconst TAG_NAME = 'x-marker';\n/**\n * @type {string}\n */\nexport const ATTR_DATA_ORIGINAL_OFFSET_START = 'data-original-offset-start';\n/**\n * @type {string}\n */\nconst DATA_ORIGINAL_TEXT_NODE_INDEX = 'original-text-node-index';\n/**\n * @type {string}\n */\nconst ATTR_DATA_START_END = 'data-is-start-end';\n/**\n * @type {string}\n */\nconst ATTR_DATA_IS_HIGHLIGHT_NODE = 'data-is-highlight-node';\n/**\n * @type {string}\n */\nconst ATTR_DATA_ID = 'data-selection-id';\n\n/**\n * @see https://developer.mozilla.org/de/docs/Web/API/Node/compareDocumentPosition\n * @type {number}\n */\nconst DOCUMENT_POSITION_CONTAINED_BY = 16;\n\n\n/**\n * @type {string}\n */\nexport const EVENT_WRAPPED_NODE = 'wrapped-node';\n\n/**\n * Manages a single Render\n */\nclass Rendering extends RenderingEvents {\n\n /**\n * @param {Document} document\n * @param {object} options\n * @param {Node} context\n */\n constructor(document, options, context) {\n super(options, document);\n\n /**\n * ID of rendering, will be set on each element that is part of it\n * @type {String}\n */\n this.id = Util.guid();\n\n /**\n * StartContainer\n * @type {Node}\n */\n this.startContainer = null;\n\n /**\n * EndContainer\n * @type {Node}\n */\n this.endContainer = null;\n\n /**\n * @type {Node}\n */\n this.context = context || this.document;\n\n /**\n * Flag if this instance has been rendered\n * @type {RenderResult}\n * @private\n */\n this._renderResult = null;\n }\n\n /**\n * @returns {string} id of this rendering\n */\n getId() {\n return this.id;\n }\n\n /**\n * @param {string} id\n * @returns {Rendering}\n */\n setId(id) {\n this.id = id;\n\n if (this._renderResult) {\n this.wrapperNodes.forEach((node) => node.setAttribute(ATTR_DATA_ID, this.id));\n }\n\n return this;\n }\n\n /**\n * Creates a Template used as a wrapper and an indication that this is a highlight node\n * @param {Boolean} [omitHighlight]\n * @returns {Node}\n * @private\n */\n _createWrapTemplate(omitHighlight) {\n const el = this.document.createElement(TAG_NAME);\n const vTrue = \"true\";\n\n if (!omitHighlight) {\n el.className = this.options.className.join(' ');\n // save this marker instance to given node\n Rendering.setMarklibInstance(el, this);\n // keep track of highlight nodes\n this.wrapperNodes.push(el);\n el.setAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE, vTrue);\n el.setAttribute(ATTR_DATA_ID, this.getId());\n }\n el.setAttribute(DATA_IS_SELECTION, vTrue);\n\n return el;\n }\n\n /**\n * Creates a Template to use as start and end marks\n * @param {String} text\n * @returns {Node}\n * @private\n */\n _createStartEndWrapTemplate(text) {\n const el = this._createWrapTemplate();\n el.setAttribute(ATTR_DATA_START_END, 'true');\n el.textContent = text;\n return el;\n }\n\n\n /**\n * Creates Start or End Container Element\n * @param initialNode\n * @param text\n * @param offset\n * @param index\n * @returns {Node}\n */\n _createStartOrEndContainer(initialNode, text, offset, index) {\n const wrapper = this._createStartEndWrapTemplate(text);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(initialNode, index));\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n\n return wrapper;\n }\n\n /**\n * Wraps given element\n * @param {Node|HTMLElement} el\n * @param [optionalLength]\n * @param [optionalIndex]\n * @param [optionalIsSameNode]\n * @param {Boolean} [omitHighlight] set to true to prevent node to be a highlight node\n * @returns {Node}\n * @private\n */\n _createWrap(el, optionalLength, optionalIndex, optionalIsSameNode, omitHighlight) {\n const originalIndex = optionalIndex >= 0 ? optionalIndex : Util.calcIndex(el);\n const wrapper = this._createWrapTemplate(omitHighlight);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(el, originalIndex));\n const offsetLength = optionalLength >= 0 ? optionalLength : Util.getOffsetParentIfHas(el);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offsetLength);\n\n // Save a reference to original text node in wrapper\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, originalIndex);\n\n if (optionalIsSameNode) {\n wrapper.setAttribute(ATTR_DATA_START_END, ATTR_DATA_START_END);\n }\n const wrap = Util.wrap(el, wrapper);\n\n this.emit(EVENT_WRAPPED_NODE, el, wrap);\n\n return wrap;\n }\n\n /**\n * Create split container element\n * @param originalElement {Node} original text node element that is created a wrapper for\n * @param index\n * @param offset\n * @returns {Node}\n */\n _createSplitContainer(originalElement, index, offset) {\n const wrapper = this.document.createElement(TAG_NAME);\n wrapper.setAttribute(DATA_IS_SELECTION, 'true');\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(originalElement, index));\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n return wrapper;\n }\n\n /**\n * Walks the tree\n * @param start\n * @param endContainer\n * @param nextParent\n */\n walk(start, endContainer, nextParent) {\n let nextParentNode = start;\n while (nextParentNode && nextParentNode !== nextParent.parentNode) {\n const currentParentNode = nextParentNode;\n nextParentNode = nextParentNode.parentNode;\n if (this.wrapSiblings(currentParentNode.nextSibling, endContainer)) {\n break;\n }\n }\n }\n\n\n /**\n * Will Wrap all textNode siblings of a container (start) inside a defined Element (like a span)\n * If an Element node is found, it will wrap all children of this node inside a element as well.\n * It will stop if endContainer is found as a node\n *\n * @param {Node} start\n * @param {Node} endContainer\n * @returns {boolean} (true if endContainer was found)\n */\n wrapSiblings(start, endContainer) {\n let next = start;\n let found = false;\n\n // Capsule some logic\n const wrap = (n) => {\n const instance = Rendering.getMarklibInstance(n.parentNode);\n if (n.parentNode.hasAttribute(ATTR_DATA_START_END) &&\n n.parentNode.hasAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE) &&\n instance === this) {\n this._createWrap(n, undefined, undefined, undefined, true);\n } else {\n this._createWrap(n);\n }\n };\n\n // helper functions\n\n const wrapIf = (n) => {\n if (!Util.nodeIsEmpty(n)) {\n wrap(n);\n }\n };\n\n const walkIfContained = (e) => {\n if (e === endContainer) {\n return false;\n }\n if (Node.TEXT_NODE === e.nodeType) {\n wrapIf(e);\n }\n return true;\n };\n\n const walkIfNotContained = (el) => {\n wrapIf(el);\n };\n\n while (next !== null && next !== endContainer) {\n const currentNext = next;\n next = next.nextSibling;\n // Found a text node, directly wrap inside a span\n if (Node.TEXT_NODE === currentNext.nodeType) {\n wrapIf(currentNext);\n } else {\n if ((currentNext.compareDocumentPosition(endContainer) & DOCUMENT_POSITION_CONTAINED_BY)) {\n Util.walkDom(currentNext, walkIfContained);\n found = true;\n } else {\n Util.walkTextNodes(currentNext, walkIfNotContained);\n }\n if (found) {\n return true;\n }\n }\n }\n return found;\n }\n\n /**\n * Marks text of the same node\n * @param {Node} textNode\n * @param {int} startIndex\n * @param {int} endIndex\n * @private\n */\n _markTextSameNode(textNode, startIndex, endIndex) {\n const initialText = textNode.nodeValue;\n const initialIndex = Util.calcIndex(textNode);\n\n if (!initialText) {\n return false;\n }\n // If there is an unmarked part in the beginning of the text node,\n // cut off that part and put it into it's own textnode.\n if (startIndex > 0) {\n const textBefore = initialText.slice(0, startIndex);\n textNode.parentNode.insertBefore(this.document.createTextNode(textBefore), textNode);\n // wrap cutted text node:\n Util.wrap(textNode.previousSibling, this._createSplitContainer(textNode,\n initialIndex, Util.getOffsetParentIfHas(textNode)));\n }\n // If there is an unmarked part at the end of the text node,\n // cut off that part and put it into it's own textnode.\n if (endIndex < initialText.length) {\n const textAfter = initialText.slice(endIndex, initialText.length);\n textNode.parentNode.insertBefore(this.document.createTextNode(textAfter), textNode.nextSibling);\n Util.wrap(textNode.nextSibling, this._createSplitContainer(textNode,\n initialIndex, Util.getOffsetParentIfHas(textNode) + endIndex));\n }\n\n // Cutoff the unmarked parts and wrap the textnode into a span.\n textNode.nodeValue = initialText.slice(startIndex, endIndex);\n this.startContainer = this._createWrap(textNode,\n Util.getOffsetParentIfHas(textNode) + startIndex, initialIndex, true).parentNode;\n this.endContainer = this.startContainer;\n return this.startContainer;\n }\n\n\n /**\n * Marks text of end and start containers if start and end nodes are different\n * Important: There might be no end container!\n *\n * @param {Node} startContainer\n * @param {Node} endContainer\n * @param {int} startOffset\n * @param {int} endOffset\n * @returns {{startT: (Node), endT: (Node)}}\n * @private\n */\n _markTextDifferentNode(startContainer, endContainer, startOffset, endOffset) {\n // Get current for both start and end:\n const startContainerIndex = Util.calcIndex(startContainer);\n const endContainerIndex = Util.calcIndex(endContainer);\n\n // Split text\n const fullTextStartValue = startContainer.nodeValue;\n // init with startContainer because we may have not a text node here\n let startT = startContainer;\n\n if (undefined !== fullTextStartValue) {\n const partTextStartValue = fullTextStartValue.slice(startOffset, fullTextStartValue.length);\n // Set new text to start node\n startContainer.nodeValue = fullTextStartValue.slice(0, startOffset);\n\n const offsetStart = Util.getOffsetParentIfHas(startContainer);\n // Create a new node for splitted text, offset is the length of new startContainer.nodeValue:\n startT = this._createStartOrEndContainer(startContainer, partTextStartValue,\n offsetStart === startOffset ? offsetStart : offsetStart + startOffset, startContainerIndex);\n // Append this node after startContainer\n startContainer.parentNode.insertBefore(startT, startContainer.nextSibling);\n this.startContainer = startT;\n\n if (startContainer.nodeValue) {\n // Wrap start container in detection node, offset is always 0 or parent offset.\n Util.wrap(startContainer, this._createSplitContainer(startContainer, startContainerIndex,\n Util.getOffsetParentIfHas(startContainer)));\n }\n }\n\n // init with endContainer because we may have not a text node here\n let endT = endContainer;\n\n // 2. Extract end Text node,\n const fullTextEndValue = endContainer.nodeValue;\n // It's possible that end container value is null (if a whole paragraph is marked)\n if (undefined !== fullTextEndValue) {\n // Split text\n const partTextEndValue = fullTextEndValue.slice(0, endOffset);\n endContainer.nodeValue = fullTextEndValue.slice(endOffset, fullTextEndValue.length);\n // End Container start offset is always 0 or parent offset.\n endT = this._createStartOrEndContainer(endContainer, partTextEndValue,\n Util.getOffsetParentIfHas(endContainer), endContainerIndex);\n\n endContainer.parentNode.insertBefore(endT, endContainer);\n this.endContainer = endT;\n const offsetParent = Util.getOffsetParentIfHas(endContainer);\n Util.wrap(endContainer, this._createSplitContainer(endContainer, endContainerIndex,\n offsetParent === endOffset ? offsetParent : offsetParent + endOffset));\n }\n\n return {\n startT,\n endT\n };\n }\n\n /**\n * Renders a selection\n * @param {Node} startContainerP\n * @param {Node} endContainerP\n * @param {Node} commonAncestor\n * @param {int} startOffset\n * @param {int} endOffsetP\n * @returns RenderResult\n * @private\n */\n _renderWithElements(startContainerP, endContainerP, commonAncestor, startOffset, endOffsetP) {\n if (this._renderResult) {\n return this._renderResult;\n }\n let startContainer = startContainerP;\n let endContainer = endContainerP;\n let endOffset = endOffsetP;\n let outer = Util.parents(startContainer, commonAncestor);\n outer = outer[outer.length - 1];\n const contextContainer = outer ? outer : commonAncestor;\n\n // Same Element, means the selection is fully contained in a discrete area, start and endpoint have the same parent\n // but are different nodes:\n\n // Start and End offset have to be recalculated because dom might be already changed by highlighting in given node\n // 1: First detect real start offset in startContainer:\n\n // That works by selecting the highest wrapper and get original-offset-start data element, see \"findOriginalOffset\"\n // So first select that container:\n const originalStartOffset = Util.findOriginalOffset(startContainer);\n const originalEndOffset = Util.findOriginalOffset(endContainer);\n\n // We may run into Browser Bugs:\n\n // If both are not text nodes, use next sibling as endContainer\n if (startContainer.nodeType !== Node.TEXT_NODE && endContainer.nodeType !== Node.TEXT_NODE) {\n if (startContainer === endContainer) {\n endContainer = endContainer.nextElementSibling || endContainer;\n }\n }\n // IF start/end container is not type of text, select first child text node:\n // We run in some bugs with firefox here that selects no text-nodes sometimes, trying to fix this here\n // Sometimes does not work correctly... (specially when DOM was modified)\n if (startContainer.nodeType !== Node.TEXT_NODE) {\n Util.walkDom(startContainer, (el) => {\n if (el.nodeType === Node.TEXT_NODE) {\n startContainer = el;\n return false;\n }\n return true;\n });\n }\n\n if (endContainer.nodeType !== Node.TEXT_NODE) {\n let toFindNode = startContainer;\n\n if (endOffset === 0) {\n toFindNode = endContainer.previousElementSibling || startContainer;\n }\n\n // Get the last text node:\n const endContainerContents = Util.closest(toFindNode, ':not([' + DATA_IS_SELECTION + '])').childNodes;\n if (endContainerContents.length) {\n const r = endContainerContents[endContainerContents.length - 1];\n if (r.nodeType === Node.TEXT_NODE) {\n endContainer = r;\n endOffset = r.length;\n } else {\n let f = r.lastChild;\n while (f !== null) {\n if (f && f.nodeType === Node.TEXT_NODE) {\n endContainer = f;\n endOffset = f.length;\n if (f.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n endOffset = parseInt(f.parentNode\n .getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) + endOffset;\n }\n }\n f = f.lastChild;\n }\n }\n }\n // still no textNode?\n if (endContainer.nodeType !== Node.TEXT_NODE) {\n throw Error('Could not found endContainer, highlighting would be unstable');\n }\n }\n\n this._renderResult = new RenderResult(\n // Real offset is calculated by relative length and absolute length\n originalStartOffset + startOffset,\n originalEndOffset + endOffset,\n // get the path for this selection\n Util.getPath(startContainer, this.context),\n Util.getPath(endContainer, this.context)\n );\n\n this._renderResult.instance = this;\n\n\n this._renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, !!outer);\n\n return this._renderResult;\n }\n\n /**\n * Renders a given selection\n *\n * @param {Node} startContainer\n * @param {Node} endContainer\n * @param {int} startOffset\n * @param {int} endOffset\n * @param {Node} contextContainer\n * @param {Boolean} outer\n * @private\n */\n _renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, outer) {\n // if start and end-container are the same, mark text on the same node\n if (startContainer === endContainer) {\n this._markTextSameNode(startContainer, startOffset, endOffset);\n } else {\n const result = this._markTextDifferentNode(startContainer, endContainer, startOffset, endOffset);\n const index = this.wrapperNodes.indexOf(result.endT);\n // remove endContainer, to keep order:\n this.wrapperNodes.splice(index, 1);\n if (!outer) {\n this.wrapSiblings(result.startT.nextSibling, endContainer);\n } else {\n this.walk(result.startT, endContainer, contextContainer);\n }\n this.wrapperNodes.push(result.endT);\n }\n }\n\n /**\n * Prepares to render a Selection with path selectors\n * ```\n * A Path looks like this:\n *\n * #selector;#textnode;#offset\n * ``\n * @param {string} startPath\n * @param {string} endPath\n * @returns {string}\n */\n renderWithPath(startPath, endPath) {\n const startContainer = Util.deserializePath(startPath, this.context);\n const endContainer = Util.deserializePath(endPath, this.context);\n if (startContainer && endContainer && startContainer.node && endContainer.node) {\n const range = document.createRange();\n range.setStart(startContainer.node, startContainer.offset);\n range.setEnd(endContainer.node, endContainer.offset);\n const text = range.toString();\n const result = this.renderWithRange(range);\n result.text = text;\n return text;\n }\n throw new Error('Could not find start- and/or end-container in document');\n }\n\n /**\n * @returns {RenderResult}\n */\n get result() {\n return this._renderResult;\n }\n\n /**\n * Renders a result (that returned from `renderWithRange`)\n * @param {RenderResult|Object} result\n * @returns {string}\n */\n renderWithResult(result) {\n return this.renderWithPath(\n `${result.startContainerPath};${result.startOffset}`,\n `${result.endContainerPath};${result.endOffset}`);\n }\n\n /**\n * Prepares a selection with a range object\n * @param {Range} range\n * @returns {Object}\n */\n renderWithRange(range) {\n const text = range.toString();\n const result = this._renderWithElements(range.startContainer, range.endContainer,\n range.commonAncestorContainer, range.startOffset, range.endOffset);\n result.text = text;\n return result;\n }\n\n /**\n * Removes bindings and classNames to nodes\n */\n destroy() {\n this.wrapperNodes.forEach((node) => {\n delete node.marklibInstance;\n node.className = '';\n });\n this.removeEvent();\n }\n\n /**\n * @param {Node} el\n * @param {Rendering} instance\n * @returns {Node}\n */\n static setMarklibInstance(el, instance) {\n el.marklibInstance = instance;\n return el;\n }\n\n /**\n * @param {Node} el\n * @returns {Rendering|null|undefined}\n */\n static getMarklibInstance(el) {\n return el ? el.marklibInstance : null;\n }\n}\n\nexport default Rendering;\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/Rendering.js\n **/","/* global Node, NodeList, Element */\n\n/**\n * @type {string}\n */\nexport const ATTR_DATA_ORIGINAL_INDEX = 'data-original-index';\n/**\n * @type {string}\n */\nexport const DATA_IS_SELECTION = 'data-is-selection';\n/**\n * @type {string}\n */\nconst SERIALIZE_SEPARATOR = \";\";\n\nimport { ATTR_DATA_ORIGINAL_OFFSET_START } from '../Rendering';\n\n// polyfill for matchesSelector, IE 10/11 does not support Element.matches\nif (Element && !Element.prototype.matches) {\n const p = Element.prototype;\n p.matches = p.matchesSelector ||\n p.mozMatchesSelector || p.msMatchesSelector ||\n p.oMatchesSelector || p.webkitMatchesSelector;\n}\n\n/**\n * Utility class\n * Contains DOM/Node manipulation helpers\n */\nexport default\nclass Util {\n\n /**\n * Filter for a NodeList\n * @param {NodeList} nodes\n * @param {Function} func\n *\n * @returns {Array.}\n */\n static nodeListFilter(nodes, func) {\n return Array.prototype.filter.call(nodes || [], func);\n }\n\n\n /**\n * Generates a unique id\n *\n * @return {String}\n */\n static guid() {\n const s4 = () => {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n };\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n }\n\n /**\n * Checks if a given node is empty\n * @param {HTMLElement} node\n *\n * @returns {*}\n */\n static nodeIsEmpty(node) {\n return node.nodeValue.match(/^[\\s]*$/g);\n }\n\n\n /**\n * @param {HTMLElement} node\n * @param [optionalList]\n *\n * @return {int} the index of this node in context to it's siblings\n */\n static index(node, optionalList) {\n const children = optionalList || (node.nodeType === Node.TEXT_NODE ?\n node.parentNode.childNodes : node.parentNode.children);\n return Array.prototype.indexOf.call(children || [], node);\n }\n\n /**\n * Wraps given `elms` in given `wrapper`\n *\n * @param {HTMLElement|Array.|Node} elms\n * @param {HTMLElement|Node} wrapper\n *\n * @return {HTMLElement}\n */\n static wrap(elms, wrapper) {\n let thisElms = elms;\n\n if (!thisElms) {\n return wrapper;\n }\n // Convert `elms` to an array, if necessary.\n if (!(thisElms instanceof NodeList || thisElms instanceof Array)) {\n thisElms = [thisElms];\n }\n for (let i = thisElms.length - 1; i >= 0; i--) {\n const child = (i > 0) ? wrapper.cloneNode(true) : wrapper;\n const el = thisElms[i];\n // Cache the current parent and sibling.\n const parent = el.parentNode;\n const sibling = el.nextSibling;\n\n child.appendChild(el);\n if (sibling) {\n parent.insertBefore(child, sibling);\n } else {\n parent.appendChild(child);\n }\n }\n return wrapper;\n }\n\n /**\n * Will calculate an index depending on an already modified dom by marklib\n * @param {HTMLElement|Node} node\n *\n * @returns {int|boolean}\n */\n static calcIndex(node) {\n let calculatedIndex = 0;\n let foundWrapper = false;\n const nodes = node.parentNode.childNodes;\n const length = nodes.length;\n for (let thisIndex = 0; thisIndex < length; thisIndex++) {\n const el = nodes[thisIndex];\n if (el === node) {\n break;\n }\n // reset index when original index is found\n const maybeIndexOfOriginal = el.getAttribute ? el.getAttribute(ATTR_DATA_ORIGINAL_INDEX) : null;\n\n if (maybeIndexOfOriginal) {\n calculatedIndex = parseInt(maybeIndexOfOriginal, 10);\n foundWrapper = true;\n }\n calculatedIndex++;\n }\n return foundWrapper ? calculatedIndex : Util.index(node);\n }\n\n /**\n * @param {HTMLElement|Node} el\n * @param {String} [optionalSelector] will test given element against a selector\n * if matches, returns this element immediately\n *\n * @return {Array.} an array of all found parents of given element (and optional selector)\n */\n static parents(el, optionalSelector) {\n return Util.parentsCallback(el, (element) => {\n if (optionalSelector && ((element === optionalSelector) ||\n ((typeof optionalSelector === 'string') && element.matches &&\n element.matches(optionalSelector)))) {\n return true;\n } else if (!optionalSelector) {\n return true;\n }\n return false;\n });\n }\n\n /**\n * @param {HTMLElement|Node} el\n * @param {Function} callback\n * @return {Array.} an array of all found parents of given element (and optional selector)\n */\n static parentsCallback(el, callback) {\n let element = el;\n const foundElements = [];\n while (element.parentNode !== null) {\n element = element.parentNode;\n if (callback(element)) {\n foundElements.push(element);\n }\n }\n return foundElements;\n }\n\n /**\n * Finds a parent node (the closest) with a given selector\n * @param {Node} el\n * @param {String} selector\n *\n * @returns {Node|boolean}\n */\n static parent(el, selector) {\n let element = el;\n while (element.parentNode !== null) {\n element = element.parentNode;\n if (element.matches && element.matches(selector)) {\n return element;\n }\n }\n return false;\n }\n\n /**\n * Finds the closest element including itself matching a given selector\n * @param {Node} el\n * @param selector\n *\n * @returns {Node|boolean}\n */\n static closest(el, selector) {\n return Util.closestCallback(el, (element) => element.matches && element.matches(selector));\n }\n\n /**\n * Finds the closest element including itself matching a callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static closestCallback(el, callback) {\n let element = el;\n while (element !== null) {\n if (callback(element)) {\n return element;\n }\n element = element.parentNode;\n }\n return false;\n }\n\n /**\n * Finds the outermost fitting element that matches callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static outerMostCallback(el, callback) {\n let element = el;\n let lastValid = false;\n while (element !== null) {\n if (callback(element)) {\n lastValid = element;\n }\n element = element.parentNode;\n }\n return lastValid;\n }\n\n /**\n * @param {HTMLElement} n\n *\n * @return {boolean}\n */\n static isMarkNode(n) {\n return n instanceof HTMLElement && n.hasAttribute(DATA_IS_SELECTION);\n }\n\n /**\n * Determines the correct paths and excludes all `marklib` generated content\n * TODO: To improve performance we could shorten the path if an ID is present in it.\n * @param {HTMLElement|Node} el\n * @param {HTMLElement|Node} [context] if given extraction path is relative to this element\n * @returns {string}\n */\n static getPath(el, context) {\n let path = null;\n let node = el;\n\n const filterSiblings = (thisEl) => {\n return !Util.isMarkNode(thisEl) && thisEl.nodeName === node.nodeName;\n };\n\n while (node) {\n let name = null;\n // If node is a text-node, save index\n if (Node.TEXT_NODE === node.nodeType) {\n /* Because nodes may wrapped inside a highlighting node, we need to find the original index that was\n * valid before the dom changes. We store the last known index position inside all wrapper elements\n * We select the outermost\n */\n\n // Extract original index of this node:\n // Outer most data-original-index is original index\n const outerMostElement = Util.parents(node, '[' + ATTR_DATA_ORIGINAL_INDEX + ']').reverse()[0];\n // if element is not yet wrapped in span, recalculate index based on parent container:\n // We have to do this because text node indexes != element indexes...\n let calculatedIndex = 0;\n if (!outerMostElement) {\n calculatedIndex = Util.calcIndex(node);\n }\n const index = outerMostElement ? parseInt(\n outerMostElement.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10) : calculatedIndex;\n name = SERIALIZE_SEPARATOR + index;\n } else {\n name = node.nodeName;\n }\n\n if (!name) {\n break;\n }\n\n name = name.toLowerCase();\n\n const parent = node.parentNode;\n\n if (Util.isMarkNode(node)) {\n if (parent !== context) {\n node = parent;\n continue;\n } else {\n break;\n }\n }\n\n // Select only siblings that are not part of selection and are of the same type\n // (because we use nth-of-type selector later)\n const siblings = Util.nodeListFilter(parent.children, filterSiblings);\n const nodeIndex = Util.index(node, siblings);\n\n if (siblings.length > 1 && nodeIndex >= 0) {\n name += ':nth-of-type(' + (nodeIndex + 1) + ')';\n }\n\n path = name + (path ? '>' + path : '');\n\n\n if (parent === context) {\n break;\n }\n\n node = parent;\n }\n\n return path.replace(\"#document>\", \"\").replace('>;', ';');\n }\n\n /**\n * Will return the first original offset value that is found\n * @param {Node} element\n *\n * @returns {int}\n */\n static findOriginalOffset(element) {\n if (!element.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n return 0;\n }\n const lengthElement = Util.parent(element, '[' + ATTR_DATA_ORIGINAL_OFFSET_START + ']');\n return lengthElement ? parseInt(lengthElement.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) : 0;\n }\n\n\n /**\n * Deserialize a specific path and finds the right textNodes\n * This even works when DOM has been manipulated before by `marklib`\n * @param {string} path the serialized path (including offsets)\n * @param {Node|HTMLElement} context\n *\n * @return {Node}\n */\n static deserializePath(path, context) {\n const pSplit = path.split(';');\n const p = pSplit[0];\n const objectIndex = parseInt(pSplit[1], 10);\n const charOffset = parseInt(pSplit[2], 10);\n const container = !p.trim() ? context : context.querySelector(p);\n\n let maybeFoundNode = null;\n\n Util.walkTextNodes(container, (n) => {\n let atrOffsetStart = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START);\n atrOffsetStart = atrOffsetStart === null ? 0 : atrOffsetStart;\n let atrIndex = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_INDEX);\n atrIndex = atrIndex === null ? Util.calcIndex(n) : atrIndex;\n if (parseInt(atrIndex, 10) === objectIndex && charOffset >= atrOffsetStart &&\n ((parseInt(atrOffsetStart, 10) + n.length) >= charOffset)) {\n const thisOffset = n.parentNode\n .hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START) ? charOffset -\n parseInt(n.parentNode\n .getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) : charOffset;\n\n maybeFoundNode = {\n node: n,\n offset: thisOffset\n };\n\n return false;\n }\n return true;\n }, null);\n\n return maybeFoundNode;\n }\n\n\n /**\n * Walks the dom tree unless func returns false\n * Applies node to function\n *\n * @param {Node} node\n * @param {Function} func\n * @param {int} type, see `NodeFilter`\n * @param {Object} [filter] skips empty text nodes by default\n *\n * @returns {boolean} true if function did abort walk\n */\n static walkDom(node, func, type = NodeFilter.SHOW_ALL, filter = null) {\n if (!node) {\n return false;\n }\n const args = [node, type, filter || (() => true), false];\n args.push(false);\n const walker = document.createTreeWalker(...args);\n while (walker.nextNode()) {\n if (!func(walker.currentNode)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Extracts all TextNodes inside a container\n * @param {Node} el\n * @param {Function} func\n * @param {Object} [filter] skips empty text nodes by default\n * @returns {boolean} true if function did abort walk\n */\n static walkTextNodes(el, func, filter = (node) => !Util.nodeIsEmpty(node)) {\n return Util.walkDom(el, func, NodeFilter.SHOW_TEXT, filter);\n }\n\n /**\n * @param {Node} container\n * @param {Number} thisIndex\n * @returns {int|string} index of parent or original\n */\n static getIndexParentIfHas(container, thisIndex) {\n const p = container.parentNode;\n const index = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10);\n return index > thisIndex ? index : thisIndex;\n }\n\n /**\n * @param container\n * @returns {int} offset start of parent if has, else 0\n */\n static getOffsetParentIfHas(container) {\n const p = container.parentNode;\n const offset = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10);\n return offset > 0 ? offset : 0;\n }\n\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/util/Util.js\n **/","\"use strict\";\n\nvar _typeof = typeof _Symbol === \"function\" && typeof _Symbol$iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _Symbol === \"function\" && obj.constructor === _Symbol ? \"symbol\" : typeof obj; };\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/typeof.js\n ** module id = 25\n ** module chunks = 0 1\n **/","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./$.cof')\n , TAG = require('./$.wks')('toStringTag')\n // ES3 wrong here\n , ARG = cof(function(){ return arguments; }()) == 'Arguments';\n\nmodule.exports = function(it){\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = (O = Object(it))[TAG]) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.classof.js\n ** module id = 26\n ** module chunks = 0 1\n **/","var toString = {}.toString;\n\nmodule.exports = function(it){\n return toString.call(it).slice(8, -1);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.cof.js\n ** module id = 27\n ** module chunks = 0 1\n **/","var ctx = require('./$.ctx')\n , call = require('./$.iter-call')\n , isArrayIter = require('./$.is-array-iter')\n , anObject = require('./$.an-object')\n , toLength = require('./$.to-length')\n , getIterFn = require('./core.get-iterator-method');\nmodule.exports = function(iterable, entries, fn, that){\n var iterFn = getIterFn(iterable)\n , f = ctx(fn, that, entries ? 2 : 1)\n , index = 0\n , length, step, iterator;\n if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){\n entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){\n call(iterator, f, step.value, entries);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.for-of.js\n ** module id = 28\n ** module chunks = 0 1\n **/","'use strict';\nvar LIBRARY = require('./$.library')\n , $export = require('./$.export')\n , redefine = require('./$.redefine')\n , hide = require('./$.hide')\n , has = require('./$.has')\n , Iterators = require('./$.iterators')\n , $iterCreate = require('./$.iter-create')\n , setToStringTag = require('./$.set-to-string-tag')\n , getProto = require('./$').getProto\n , ITERATOR = require('./$.wks')('iterator')\n , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`\n , FF_ITERATOR = '@@iterator'\n , KEYS = 'keys'\n , VALUES = 'values';\n\nvar returnThis = function(){ return this; };\n\nmodule.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){\n $iterCreate(Constructor, NAME, next);\n var getMethod = function(kind){\n if(!BUGGY && kind in proto)return proto[kind];\n switch(kind){\n case KEYS: return function keys(){ return new Constructor(this, kind); };\n case VALUES: return function values(){ return new Constructor(this, kind); };\n } return function entries(){ return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator'\n , DEF_VALUES = DEFAULT == VALUES\n , VALUES_BUG = false\n , proto = Base.prototype\n , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]\n , $default = $native || getMethod(DEFAULT)\n , methods, key;\n // Fix native\n if($native){\n var IteratorPrototype = getProto($default.call(new Base));\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // FF fix\n if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);\n // fix Array#{values, @@iterator}.name in V8 / FF\n if(DEF_VALUES && $native.name !== VALUES){\n VALUES_BUG = true;\n $default = function values(){ return $native.call(this); };\n }\n }\n // Define iterator\n if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if(DEFAULT){\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: !DEF_VALUES ? $default : getMethod('entries')\n };\n if(FORCED)for(key in methods){\n if(!(key in proto))redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-define.js\n ** module id = 29\n ** module chunks = 0 1\n **/","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\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.property-desc.js\n ** module id = 30\n ** module chunks = 0 1\n **/","module.exports = require('./$.hide');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine.js\n ** module id = 31\n ** module chunks = 0 1\n **/","var id = 0\n , px = Math.random();\nmodule.exports = function(key){\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.uid.js\n ** module id = 32\n ** module chunks = 0 1\n **/","/* global CustomEvent */\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n// polyfill for custom events to make thinks work in IE\n// The needed polyfill is so small that I embedded it here\n(function poly() {\n if (!global.CustomEvent || typeof global.CustomEvent !== 'function') {\n const CustomEvent = function CustomEvent(event, params) {\n let evt;\n const thisParams = params ||\n {\n bubbles: false,\n cancelable: false,\n detail: undefined\n };\n evt = document.createEvent(\"CustomEvent\");\n evt.initCustomEvent(event, thisParams.bubbles,\n thisParams.cancelable, thisParams.detail);\n return evt;\n };\n CustomEvent.prototype = global.Event.prototype;\n global.CustomEvent = CustomEvent;\n }\n})();\n/**\n * Simpler Event dispatching\n */\nclass EventHandler {\n\n /**\n * @param {HTMLElement} target\n * @param {String} name\n */\n constructor(target, name) {\n this.target = target;\n this.defaultOptions = {\n bubbles: true,\n cancelable: true\n };\n\n this.name = name;\n }\n\n /**\n * Set more options\n * @param {Object} options\n * @returns {EventHandler}\n */\n withOptions(options) {\n Object.assign(this.defaultOptions, (options || {}));\n return this;\n }\n\n /**\n * Call with the originalEvent\n * @param {Event} e\n * @returns {EventHandler}\n */\n withOriginal(e) {\n return this.withDetail({\n originalEvent: e\n });\n }\n\n /**\n * Extends the detail part of the event\n * @param {Object} o\n * @returns {EventHandler}\n */\n withDetail(o) {\n if (!this.defaultOptions.detail) {\n this.defaultOptions.detail = {};\n }\n Object.assign(this.defaultOptions.detail, o);\n return this;\n }\n\n /**\n * @returns {CustomEvent}\n */\n fire() {\n const e = new CustomEvent(this.name, this.defaultOptions);\n if (this.target) {\n this.target.dispatchEvent(e);\n }\n return e;\n }\n}\n\nclass Event {\n /**\n * Prepares to dispatch a custom event (without firing)\n * @param {HTMLElement} target\n * @param {String} name\n * @returns {EventHandler}\n */\n static dispatch(target, name) {\n return new EventHandler(target, name);\n }\n\n /**\n * Dispatches a custom event and fires it directly\n * @param {HTMLElement} target\n * @param {String} name\n * @param {Object} [options]\n * @returns {CustomEvent}\n */\n static dispatchAndFire(target, name, options) {\n return new EventHandler(target, name).withOptions(options).fire();\n }\n}\n\nexport default Event;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/util/Event.js\n **/","/**\n * A Render Result\n */\nexport default class RenderResult {\n /**\n * @param {int} startOffset\n * @param {int} endOffset\n * @param {String} startContainerPath\n * @param {String} endContainerPath\n */\n constructor(startOffset, endOffset, startContainerPath, endContainerPath) {\n this.startOffset = startOffset;\n this.endOffset = endOffset;\n this.startContainerPath = startContainerPath;\n this.endContainerPath = endContainerPath;\n this._renderingInstance = null;\n }\n\n /**\n * @param {Object} result\n * @return RenderResult\n */\n static fromObject(result) {\n return new RenderResult(\n result.startOffset,\n result.endOffset,\n result.startContainerPath,\n result.endContainerPath\n );\n }\n\n /**\n * @returns {Object}\n */\n serialize() {\n return {\n startOffset: this.startOffset,\n endOffset: this.endOffset,\n startContainerPath: this.startContainerPath,\n endContainerPath: this.endContainerPath\n };\n }\n\n /**\n * @param {String} text\n */\n set text(text) {\n this._text = text;\n }\n\n /**\n * @returns {String}\n */\n get text() {\n return this._text;\n }\n\n /**\n * @returns {null|Rendering}\n */\n get instance() {\n return this._renderingInstance;\n }\n\n /**\n * @param {null|Rendering} instance\n */\n set instance(instance) {\n this._renderingInstance = instance;\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/RenderResult.js\n **/","/* global Set */\n\nimport EventEmitter from 'wolfy87-eventemitter';\nimport Rendering from './Rendering';\nimport Util from './util/Util';\n\n/**\n * @type {string}\n */\nexport const EVENT_CLICK = 'click';\n\n/**\n * @type {string}\n */\nexport const EVENT_MOUSEENTER = 'hover-enter';\n\n/**\n * @type {string}\n */\nexport const EVENT_MOUSELEAVE = 'hover-leave';\n\n/**\n * @type {string}\n */\nexport const EVENT_PART_TREE_ENTER = 'tree-enter';\n\n/**\n * @type {string}\n */\nexport const EVENT_PART_TREE_LEAVE = 'tree-leave';\n\n/**\n * Generic Event Handlings for Renderer\n */\nexport default class RenderingEvents extends EventEmitter {\n\n /**\n * @param {Object} options\n * @param {Document} document\n */\n constructor(options, document) {\n super();\n\n /**\n * Options\n * @type {Object}\n */\n this.options = {\n hoverClass: 'marklib--hover',\n treeClass: 'marklib--tree',\n className: ['marking']\n };\n\n this.options = Object.assign(this.options, options || {});\n\n if (typeof this.options.className === 'string') {\n this.options.className = this.options.className.split(' ');\n }\n\n /**\n * A collection of all nodes that are part of all events\n * @type {Array}\n */\n this.wrapperNodes = [];\n\n this._registerEvents(document);\n\n /**\n * @type {Document}\n */\n this.document = document;\n }\n\n /**\n * Constructs a new Range from rendered result\n * @returns {Range}\n */\n get range() {\n const range = this.document.createRange();\n const textNodes = [];\n\n this.wrapperNodes.forEach((wrapper) => {\n Util.walkTextNodes(wrapper, (node) => {\n textNodes.push(node);\n });\n });\n\n if (textNodes.length > 0) {\n const lastTextNode = textNodes[textNodes.length - 1];\n range.setStart(textNodes[0], 0);\n range.setEnd(lastTextNode, lastTextNode.length);\n return range;\n }\n\n return null;\n }\n\n /**\n * Will register events if not already bind.\n * @param {Document} document\n * @private\n */\n _registerEvents(document) {\n this.on(EVENT_MOUSEENTER, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.add(this.options.hoverClass);\n });\n });\n\n this.on(EVENT_MOUSELEAVE, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.remove(this.options.hoverClass);\n });\n });\n\n this.on(EVENT_PART_TREE_ENTER, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.add(this.options.treeClass);\n });\n });\n\n this.on(EVENT_PART_TREE_LEAVE, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.remove(this.options.treeClass);\n });\n });\n\n\n if (!global.__MARKLIB_EVENTS__) {\n global.__MARKLIB_EVENTS__ = true;\n (function init() {\n const currentHoverInstances = new Set();\n const betweenInstances = new Set();\n\n function checkMarklibInstance(e) {\n const instance = Rendering.getMarklibInstance(e);\n // instanceof check will fail if used in test scenario where different DOMs are used\n // see also http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/\n return instance && (instance instanceof Rendering || 'wrapperNodes' in instance);\n }\n\n function closestInstance(e) {\n const closest = Util.closestCallback(\n e.target,\n (thisE) => checkMarklibInstance(thisE)\n );\n if (typeof closest === 'object') {\n return Rendering.getMarklibInstance(closest);\n }\n return false;\n }\n\n function getInstancesBetween(e, instance) {\n return Util.parentsCallback(\n e.target,\n (el) => checkMarklibInstance(el) && Rendering.getMarklibInstance(el) !== instance\n ).map(el => Rendering.getMarklibInstance(el));\n }\n\n function mouseOutClear() {\n currentHoverInstances.forEach((thisInstance) => {\n thisInstance.emit(EVENT_MOUSELEAVE);\n });\n currentHoverInstances.clear();\n\n betweenInstances.forEach((thisInstance) => {\n thisInstance.emit(EVENT_PART_TREE_LEAVE);\n });\n\n betweenInstances.clear();\n }\n\n /**\n * @param {Event} e\n * @returns {Array|boolean}\n */\n function findTarget(e) {\n let instance = closestInstance(e);\n if (instance) {\n const between = getInstancesBetween(e, instance);\n if (e.target.textContent !== instance.result.text && between.length > 0) {\n let allInstances = between;\n allInstances.unshift(instance);\n // take the smallest selection\n allInstances = allInstances.sort(\n (a, b) => a.result.text.length < b.result.text.length ? -1 : 1\n );\n instance = allInstances[0];\n }\n\n return [instance, between];\n }\n return false;\n }\n\n document.addEventListener('click', (e) => {\n const target = findTarget(e);\n if (target) {\n target[0].emit(EVENT_CLICK, e, target[1]);\n }\n }, true);\n\n document.addEventListener('mouseover', (e) => {\n const target = findTarget(e);\n if (target) {\n const [instance, between] = target;\n // find instances that lay in between the node\n mouseOutClear();\n between.forEach((instanceBetween) => {\n betweenInstances.add(instanceBetween);\n instanceBetween.emit(EVENT_PART_TREE_ENTER, e, between);\n });\n instance.emit(EVENT_MOUSEENTER, e, between);\n currentHoverInstances.add(instance);\n } else {\n mouseOutClear();\n }\n }, true);\n })();\n }\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/RenderingEvents.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Widget\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n/**\n * A Widget provides async content on a specific target (e.g. a modal link)\n */\nclass Widget {\n\n /**\n * Creates a new Widget\n * @param [element], optional define the content of widget\n */\n constructor(element) {\n /**\n *\n * @type {Promise}\n */\n this.asyncContent = null;\n\n /**\n * @type {boolean}\n */\n this._isWidget = true;\n\n if (element) {\n /**\n * @type {HTMLElement}\n */\n this.element = element instanceof HTMLElement ? element : global.document.getElementById(element);\n if (this.element) {\n this.element.hfWidgetInstance = this;\n this.setAsync(() => {\n return new Promise((s) => {\n s(this.element);\n });\n });\n } else {\n throw new Error(`Could not found element with ID: ${element}`);\n }\n }\n /**\n * The final resulted content that a widget did create (e.g. a modal container)\n * @type {HTMLElement}\n */\n this.finalContent = null;\n }\n\n /**\n *\n * @returns {Promise}\n */\n getAsync() {\n return this.asyncContent();\n }\n\n /**\n * @param {Function.} async\n * @returns {Widget}\n */\n setAsync(async) {\n this.asyncContent = async;\n return this;\n }\n\n /**\n * @returns {HTMLElement}\n */\n getFinalContent() {\n return this.finalContent;\n }\n\n /**\n * @param {HTMLElement} element\n * @returns {Widget}\n */\n setElement(element) {\n this.element = element;\n return this;\n }\n\n /**\n * Destroys the generated content of this widget\n * @returns {boolean}\n */\n destroy() {\n if (this.finalContent && this.finalContent.parentNode) {\n this.finalContent.parentNode.removeChild(this.finalContent);\n return true;\n }\n\n delete this.element;\n delete this.asyncContent;\n delete this.finalContent;\n\n return false;\n }\n\n /**\n * Will find a widget on an Element\n * @param {HTMLElement} element\n * @returns {Widget|undefined}\n */\n static findWidget(element) {\n return element ? element.hfWidgetInstance : undefined;\n }\n\n /**\n * Checks if a given object is an instance\n * @param {Object} self\n * @returns {boolean}\n */\n static isWidget(self) {\n return self instanceof Widget || typeof self === 'object' && self.hasOwnProperty('_isWidget');\n }\n}\n\nexport default Widget;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Widget.js\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/get-prototype-of\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/get-prototype-of.js\n ** module id = 37\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/inherits.js\n ** module id = 38\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/possibleConstructorReturn.js\n ** module id = 39\n ** module chunks = 0 1\n **/","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./$.cof');\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iobject.js\n ** module id = 40\n ** module chunks = 0 1\n **/","module.exports = function(done, value){\n return {value: value, done: !!done};\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-step.js\n ** module id = 41\n ** module chunks = 0 1\n **/","module.exports = true;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.library.js\n ** module id = 42\n ** module chunks = 0 1\n **/","var redefine = require('./$.redefine');\nmodule.exports = function(target, src){\n for(var key in src)redefine(target, key, src[key]);\n return target;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine-all.js\n ** module id = 43\n ** module chunks = 0 1\n **/","var global = require('./$.global')\n , SHARED = '__core-js_shared__'\n , store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function(key){\n return store[key] || (store[key] = {});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.shared.js\n ** module id = 44\n ** module chunks = 0 1\n **/","module.exports = function(it, Constructor, name){\n if(!(it instanceof Constructor))throw TypeError(name + \": use the 'new' operator!\");\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.strict-new.js\n ** module id = 45\n ** module chunks = 0 1\n **/","// 7.1.4 ToInteger\nvar ceil = Math.ceil\n , floor = Math.floor;\nmodule.exports = function(it){\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-integer.js\n ** module id = 46\n ** module chunks = 0 1\n **/","// 7.1.13 ToObject(argument)\nvar defined = require('./$.defined');\nmodule.exports = function(it){\n return Object(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-object.js\n ** module id = 47\n ** module chunks = 0 1\n **/","var classof = require('./$.classof')\n , ITERATOR = require('./$.wks')('iterator')\n , Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').getIteratorMethod = function(it){\n if(it != undefined)return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.get-iterator-method.js\n ** module id = 48\n ** module chunks = 0 1\n **/","import Rendering from '../Rendering';\nimport Util from '../util/Util';\nimport RenderResult from '../RenderResult';\nimport RenderingEvents from '../RenderingEvents';\n\nexport { Rendering, Util, RenderResult, RenderingEvents };\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/modules/Marklib.js\n **/","import Settings from '../util/Settings';\nimport debounce from './debounce';\nimport Event from '../util/Event';\n\nconst CLS_FIXED_WINDOW = 'fixed-window-open';\n\nexport const EVENT_BEFORE_FIXED_ADD = 'flexcss.fixedWindow.beforeAdd';\nexport const EVENT_AFTER_FIXED_REMOVE = 'flexcss.fixedWindow.afterRemove';\n\n/**\n * @type {FixedWindow}\n */\nlet fixedWindowInstance;\n\nexport default class FixedWindow {\n\n constructor() {\n this.widgets = [];\n this.currentScrollTop = 0;\n this.fixedScreenConstraints = [];\n this.windowWidth = 0;\n this.isFixedWindowActive = false;\n }\n\n /**\n * Adds a constraint to detect if the window needs to be changed when the screensize changes\n *\n * @param {Function} widget\n * @param {Function} fixedBreakpointFn gets a width argument, return true to open a window\n */\n addScreenConstraint(widget, fixedBreakpointFn) {\n this.fixedScreenConstraints[widget] = fixedBreakpointFn;\n }\n\n /**\n * @returns {null|DestroyableWidget}\n */\n getCurrentWidget() {\n return this.widgets.length > 0 ? this.widgets[this.widgets.length - 1] : null;\n }\n\n /**\n * @private\n */\n _checkFixedNeeded() {\n if (this.widgets.length === 0) {\n return;\n }\n const widgets = new Set(this.widgets);\n const widgetsThatRequireFixedWindow = Array.from(widgets).some((widget) => {\n return this.fixedScreenConstraints[widget] && this.fixedScreenConstraints[widget](this.windowWidth);\n });\n if (!widgetsThatRequireFixedWindow) {\n this._removeFixedContainer();\n } else {\n this._addFixedContainer();\n }\n }\n\n /**\n * @private\n */\n _addFixedContainer() {\n if (this.isFixedWindowActive) {\n return;\n }\n Event.dispatchAndFire(global.document, EVENT_BEFORE_FIXED_ADD, {\n detail: this.getCurrentWidget()\n });\n // this causes layout and should be optimized\n // At lest we write in a batch later\n this.currentScrollTop = global.pageYOffset;\n Settings.get().scrollbarUpdateNodes.map((n) => {\n let foundProperty = 'paddingRight';\n let direction = 1;\n let node = n;\n if (n instanceof Array) {\n const [whatNode, property, d] = n;\n foundProperty = property;\n node = whatNode;\n direction = d || 1;\n }\n return {\n node,\n property: foundProperty,\n value: `${parseInt(global.getComputedStyle(node)[foundProperty], 10) +\n (!node.__fixedWindowMod__ ? (Settings.getScrollbarWidth() * direction) : 0)}px`\n };\n }).forEach((d) => {\n d.node.__fixedWindowMod__ = true;\n d.node.style[d.property] = d.value;\n });\n\n global.document.documentElement.classList.add(CLS_FIXED_WINDOW);\n global.document.body.style.cssText += `top:${this.currentScrollTop * -1}px;position:fixed`;\n\n this.isFixedWindowActive = true;\n }\n\n /**\n * @private\n */\n _removeFixedContainer() {\n if (this.isFixedWindowActive) {\n global.document.body.style.position = \"static\";\n global.document.body.style.top = \"0px\";\n // reset scrollTop\n global.document.documentElement.scrollTop = this.currentScrollTop;\n global.document.body.scrollTop = this.currentScrollTop;\n Settings.get().scrollbarUpdateNodes.forEach((node) => {\n if (node instanceof Array) {\n const [whatNode, property] = node;\n delete whatNode.__fixedWindowMod__;\n whatNode.style[property] = '';\n } else {\n delete node.__fixedWindowMod__;\n node.style.paddingRight = '';\n }\n });\n global.document.documentElement.classList.remove(CLS_FIXED_WINDOW);\n Event.dispatchAndFire(global.document, EVENT_AFTER_FIXED_REMOVE);\n this.isFixedWindowActive = false;\n }\n }\n\n /**\n * Will close a window when no widgets are opened that need one\n */\n resizeListener() {\n this.windowWidth = global.innerWidth;\n this._checkFixedNeeded();\n }\n\n /**\n * @returns {FixedWindow}\n */\n static getInstance() {\n if (!fixedWindowInstance) {\n fixedWindowInstance = new FixedWindow();\n fixedWindowInstance.windowWidth = global.innerWidth;\n const eventHandler = fixedWindowInstance.resizeListener.bind(fixedWindowInstance);\n global.addEventListener(\n 'resize',\n debounce(eventHandler, 500)\n );\n global.addEventListener('orientationchange', eventHandler);\n }\n return fixedWindowInstance;\n }\n\n /**\n * Request a close of the fixed window\n * @returns {Promise}\n */\n close() {\n return new Promise((resolve) => {\n this.widgets.pop();\n if (this.widgets.length === 0) {\n // restore scrollPosition:\n requestAnimationFrame(() => {\n this._removeFixedContainer();\n resolve();\n });\n }\n });\n }\n\n /**\n * Request to open a fixed windows\n * @param {Object|DestroyableWidget} instance\n */\n open(instance) {\n let fixed = false;\n if (typeof instance === 'object') {\n const cn = instance.constructor;\n const fixedWidget = this.fixedScreenConstraints[instance.constructor];\n if (cn && fixedWidget) {\n fixed = fixedWidget(this.windowWidth);\n }\n const length = this.widgets.length;\n this.widgets.push(cn);\n // open a new window if there is no window active\n if (length === 0) {\n if (fixed) {\n this._addFixedContainer();\n }\n }\n }\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/lib/FixedWindow.js\n **/","module.exports = { \"default\": require(\"core-js/library/fn/get-iterator\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/get-iterator.js\n ** module id = 52\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/is-iterable\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/is-iterable.js\n ** module id = 53\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/assign.js\n ** module id = 54\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/create.js\n ** module id = 55\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/define-property.js\n ** module id = 56\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/set-prototype-of.js\n ** module id = 57\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/set\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/set.js\n ** module id = 58\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol.js\n ** module id = 59\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol/iterator.js\n ** module id = 60\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _isIterable2 = require(\"../core-js/is-iterable\");\n\nvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\nvar _getIterator2 = require(\"../core-js/get-iterator\");\n\nvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if ((0, _isIterable3.default)(Object(arr))) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/slicedToArray.js\n ** module id = 61\n ** module chunks = 0 1\n **/","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.get-iterator');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/get-iterator.js\n ** module id = 62\n ** module chunks = 0 1\n **/","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.is-iterable');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/is-iterable.js\n ** module id = 63\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/$.core').Object.assign;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/assign.js\n ** module id = 64\n ** module chunks = 0 1\n **/","var $ = require('../../modules/$');\nmodule.exports = function create(P, D){\n return $.create(P, D);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/create.js\n ** module id = 65\n ** module chunks = 0 1\n **/","var $ = require('../../modules/$');\nmodule.exports = function defineProperty(it, key, desc){\n return $.setDesc(it, key, desc);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/define-property.js\n ** module id = 66\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.get-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.getPrototypeOf;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/get-prototype-of.js\n ** module id = 67\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.setPrototypeOf;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/set-prototype-of.js\n ** module id = 68\n ** module chunks = 0 1\n **/","require('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.set');\nrequire('../modules/es7.set.to-json');\nmodule.exports = require('../modules/$.core').Set;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/set.js\n ** module id = 69\n ** module chunks = 0 1\n **/","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nmodule.exports = require('../../modules/$.core').Symbol;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/index.js\n ** module id = 70\n ** module chunks = 0 1\n **/","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/$.wks')('iterator');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/iterator.js\n ** module id = 71\n ** module chunks = 0 1\n **/","module.exports = function(it){\n if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.a-function.js\n ** module id = 72\n ** module chunks = 0 1\n **/","module.exports = function(){ /* empty */ };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.add-to-unscopables.js\n ** module id = 73\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , hide = require('./$.hide')\n , redefineAll = require('./$.redefine-all')\n , ctx = require('./$.ctx')\n , strictNew = require('./$.strict-new')\n , defined = require('./$.defined')\n , forOf = require('./$.for-of')\n , $iterDefine = require('./$.iter-define')\n , step = require('./$.iter-step')\n , ID = require('./$.uid')('id')\n , $has = require('./$.has')\n , isObject = require('./$.is-object')\n , setSpecies = require('./$.set-species')\n , DESCRIPTORS = require('./$.descriptors')\n , isExtensible = Object.isExtensible || isObject\n , SIZE = DESCRIPTORS ? '_s' : 'size'\n , id = 0;\n\nvar fastKey = function(it, create){\n // return primitive with prefix\n if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if(!$has(it, ID)){\n // can't set id to frozen object\n if(!isExtensible(it))return 'F';\n // not necessary to add id\n if(!create)return 'E';\n // add missing object id\n hide(it, ID, ++id);\n // return object id with prefix\n } return 'O' + it[ID];\n};\n\nvar getEntry = function(that, key){\n // fast case\n var index = fastKey(key), entry;\n if(index !== 'F')return that._i[index];\n // frozen object case\n for(entry = that._f; entry; entry = entry.n){\n if(entry.k == key)return entry;\n }\n};\n\nmodule.exports = {\n getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n var C = wrapper(function(that, iterable){\n strictNew(that, C, NAME);\n that._i = $.create(null); // index\n that._f = undefined; // first entry\n that._l = undefined; // last entry\n that[SIZE] = 0; // size\n if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear(){\n for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){\n entry.r = true;\n if(entry.p)entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\n 'delete': function(key){\n var that = this\n , entry = getEntry(that, key);\n if(entry){\n var next = entry.n\n , prev = entry.p;\n delete that._i[entry.i];\n entry.r = true;\n if(prev)prev.n = next;\n if(next)next.p = prev;\n if(that._f == entry)that._f = next;\n if(that._l == entry)that._l = prev;\n that[SIZE]--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /*, that = undefined */){\n var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3)\n , entry;\n while(entry = entry ? entry.n : this._f){\n f(entry.v, entry.k, this);\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key){\n return !!getEntry(this, key);\n }\n });\n if(DESCRIPTORS)$.setDesc(C.prototype, 'size', {\n get: function(){\n return defined(this[SIZE]);\n }\n });\n return C;\n },\n def: function(that, key, value){\n var entry = getEntry(that, key)\n , prev, index;\n // change existing entry\n if(entry){\n entry.v = value;\n // create new entry\n } else {\n that._l = entry = {\n i: index = fastKey(key, true), // <- index\n k: key, // <- key\n v: value, // <- value\n p: prev = that._l, // <- previous entry\n n: undefined, // <- next entry\n r: false // <- removed\n };\n if(!that._f)that._f = entry;\n if(prev)prev.n = entry;\n that[SIZE]++;\n // add to index\n if(index !== 'F')that._i[index] = entry;\n } return that;\n },\n getEntry: getEntry,\n setStrong: function(C, NAME, IS_MAP){\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n $iterDefine(C, NAME, function(iterated, kind){\n this._t = iterated; // target\n this._k = kind; // kind\n this._l = undefined; // previous\n }, function(){\n var that = this\n , kind = that._k\n , entry = that._l;\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n // get next entry\n if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){\n // or finish the iteration\n that._t = undefined;\n return step(1);\n }\n // return step by kind\n if(kind == 'keys' )return step(0, entry.k);\n if(kind == 'values')return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(NAME);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection-strong.js\n ** module id = 74\n ** module chunks = 0 1\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar forOf = require('./$.for-of')\n , classof = require('./$.classof');\nmodule.exports = function(NAME){\n return function toJSON(){\n if(classof(this) != NAME)throw TypeError(NAME + \"#toJSON isn't generic\");\n var arr = [];\n forOf(this, false, arr.push, arr);\n return arr;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection-to-json.js\n ** module id = 75\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , global = require('./$.global')\n , $export = require('./$.export')\n , fails = require('./$.fails')\n , hide = require('./$.hide')\n , redefineAll = require('./$.redefine-all')\n , forOf = require('./$.for-of')\n , strictNew = require('./$.strict-new')\n , isObject = require('./$.is-object')\n , setToStringTag = require('./$.set-to-string-tag')\n , DESCRIPTORS = require('./$.descriptors');\n\nmodule.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){\n var Base = global[NAME]\n , C = Base\n , ADDER = IS_MAP ? 'set' : 'add'\n , proto = C && C.prototype\n , O = {};\n if(!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){\n new C().entries().next();\n }))){\n // create collection constructor\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n redefineAll(C.prototype, methods);\n } else {\n C = wrapper(function(target, iterable){\n strictNew(target, C, NAME);\n target._c = new Base;\n if(iterable != undefined)forOf(iterable, IS_MAP, target[ADDER], target);\n });\n $.each.call('add,clear,delete,forEach,get,has,set,keys,values,entries'.split(','),function(KEY){\n var IS_ADDER = KEY == 'add' || KEY == 'set';\n if(KEY in proto && !(IS_WEAK && KEY == 'clear'))hide(C.prototype, KEY, function(a, b){\n if(!IS_ADDER && IS_WEAK && !isObject(a))return KEY == 'get' ? undefined : false;\n var result = this._c[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n });\n if('size' in proto)$.setDesc(C.prototype, 'size', {\n get: function(){\n return this._c.size;\n }\n });\n }\n\n setToStringTag(C, NAME);\n\n O[NAME] = C;\n $export($export.G + $export.W + $export.F, O);\n\n if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);\n\n return C;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection.js\n ** module id = 76\n ** module chunks = 0 1\n **/","// all enumerable object keys, includes symbols\nvar $ = require('./$');\nmodule.exports = function(it){\n var keys = $.getKeys(it)\n , getSymbols = $.getSymbols;\n if(getSymbols){\n var symbols = getSymbols(it)\n , isEnum = $.isEnum\n , i = 0\n , key;\n while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);\n }\n return keys;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.enum-keys.js\n ** module id = 77\n ** module chunks = 0 1\n **/","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./$.to-iobject')\n , getNames = require('./$').getNames\n , toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function(it){\n try {\n return getNames(it);\n } catch(e){\n return windowNames.slice();\n }\n};\n\nmodule.exports.get = function getOwnPropertyNames(it){\n if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);\n return getNames(toIObject(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.get-names.js\n ** module id = 78\n ** module chunks = 0 1\n **/","// check on default Array iterator\nvar Iterators = require('./$.iterators')\n , ITERATOR = require('./$.wks')('iterator')\n , ArrayProto = Array.prototype;\n\nmodule.exports = function(it){\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array-iter.js\n ** module id = 79\n ** module chunks = 0 1\n **/","// 7.2.2 IsArray(argument)\nvar cof = require('./$.cof');\nmodule.exports = Array.isArray || function(arg){\n return cof(arg) == 'Array';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array.js\n ** module id = 80\n ** module chunks = 0 1\n **/","// call something on iterator step with safe closing on error\nvar anObject = require('./$.an-object');\nmodule.exports = function(iterator, fn, value, entries){\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch(e){\n var ret = iterator['return'];\n if(ret !== undefined)anObject(ret.call(iterator));\n throw e;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-call.js\n ** module id = 81\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , descriptor = require('./$.property-desc')\n , setToStringTag = require('./$.set-to-string-tag')\n , IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./$.hide')(IteratorPrototype, require('./$.wks')('iterator'), function(){ return this; });\n\nmodule.exports = function(Constructor, NAME, next){\n Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-create.js\n ** module id = 82\n ** module chunks = 0 1\n **/","var $ = require('./$')\n , toIObject = require('./$.to-iobject');\nmodule.exports = function(object, el){\n var O = toIObject(object)\n , keys = $.getKeys(O)\n , length = keys.length\n , index = 0\n , key;\n while(length > index)if(O[key = keys[index++]] === el)return key;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.keyof.js\n ** module id = 83\n ** module chunks = 0 1\n **/","// 19.1.2.1 Object.assign(target, source, ...)\nvar $ = require('./$')\n , toObject = require('./$.to-object')\n , IObject = require('./$.iobject');\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = require('./$.fails')(function(){\n var a = Object.assign\n , A = {}\n , B = {}\n , S = Symbol()\n , K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function(k){ B[k] = k; });\n return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n var T = toObject(target)\n , $$ = arguments\n , $$len = $$.length\n , index = 1\n , getKeys = $.getKeys\n , getSymbols = $.getSymbols\n , isEnum = $.isEnum;\n while($$len > index){\n var S = IObject($$[index++])\n , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n , length = keys.length\n , j = 0\n , key;\n while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n }\n return T;\n} : Object.assign;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-assign.js\n ** module id = 84\n ** module chunks = 0 1\n **/","// most Object methods by ES6 should accept primitives\nvar $export = require('./$.export')\n , core = require('./$.core')\n , fails = require('./$.fails');\nmodule.exports = function(KEY, exec){\n var fn = (core.Object || {})[KEY] || Object[KEY]\n , exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-sap.js\n ** module id = 85\n ** module chunks = 0 1\n **/","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar getDesc = require('./$').getDesc\n , isObject = require('./$.is-object')\n , anObject = require('./$.an-object');\nvar check = function(O, proto){\n anObject(O);\n if(!isObject(proto) && proto !== null)throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function(test, buggy, set){\n try {\n set = require('./$.ctx')(Function.call, getDesc(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch(e){ buggy = true; }\n return function setPrototypeOf(O, proto){\n check(O, proto);\n if(buggy)O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-proto.js\n ** module id = 86\n ** module chunks = 0 1\n **/","'use strict';\nvar core = require('./$.core')\n , $ = require('./$')\n , DESCRIPTORS = require('./$.descriptors')\n , SPECIES = require('./$.wks')('species');\n\nmodule.exports = function(KEY){\n var C = core[KEY];\n if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {\n configurable: true,\n get: function(){ return this; }\n });\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-species.js\n ** module id = 87\n ** module chunks = 0 1\n **/","var toInteger = require('./$.to-integer')\n , defined = require('./$.defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function(TO_STRING){\n return function(that, pos){\n var s = String(defined(that))\n , i = toInteger(pos)\n , l = s.length\n , a, b;\n if(i < 0 || i >= l)return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.string-at.js\n ** module id = 88\n ** module chunks = 0 1\n **/","// 7.1.15 ToLength\nvar toInteger = require('./$.to-integer')\n , min = Math.min;\nmodule.exports = function(it){\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-length.js\n ** module id = 89\n ** module chunks = 0 1\n **/","var anObject = require('./$.an-object')\n , get = require('./core.get-iterator-method');\nmodule.exports = require('./$.core').getIterator = function(it){\n var iterFn = get(it);\n if(typeof iterFn != 'function')throw TypeError(it + ' is not iterable!');\n return anObject(iterFn.call(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.get-iterator.js\n ** module id = 90\n ** module chunks = 0 1\n **/","var classof = require('./$.classof')\n , ITERATOR = require('./$.wks')('iterator')\n , Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').isIterable = function(it){\n var O = Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n || Iterators.hasOwnProperty(classof(O));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.is-iterable.js\n ** module id = 91\n ** module chunks = 0 1\n **/","'use strict';\nvar addToUnscopables = require('./$.add-to-unscopables')\n , step = require('./$.iter-step')\n , Iterators = require('./$.iterators')\n , toIObject = require('./$.to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./$.iter-define')(Array, 'Array', function(iterated, kind){\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , kind = this._k\n , index = this._i++;\n if(!O || index >= O.length){\n this._t = undefined;\n return step(1);\n }\n if(kind == 'keys' )return step(0, index);\n if(kind == 'values')return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.array.iterator.js\n ** module id = 92\n ** module chunks = 0 1\n **/","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./$.export');\n\n$export($export.S + $export.F, 'Object', {assign: require('./$.object-assign')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.assign.js\n ** module id = 93\n ** module chunks = 0 1\n **/","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./$.to-object');\n\nrequire('./$.object-sap')('getPrototypeOf', function($getPrototypeOf){\n return function getPrototypeOf(it){\n return $getPrototypeOf(toObject(it));\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.get-prototype-of.js\n ** module id = 94\n ** module chunks = 0 1\n **/","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./$.export');\n$export($export.S, 'Object', {setPrototypeOf: require('./$.set-proto').set});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.set-prototype-of.js\n ** module id = 95\n ** module chunks = 0 1\n **/","'use strict';\nvar strong = require('./$.collection-strong');\n\n// 23.2 Set Objects\nrequire('./$.collection')('Set', function(get){\n return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.2.3.1 Set.prototype.add(value)\n add: function add(value){\n return strong.def(this, value = value === 0 ? 0 : value, value);\n }\n}, strong);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.set.js\n ** module id = 96\n ** module chunks = 0 1\n **/","'use strict';\n// ECMAScript 6 symbols shim\nvar $ = require('./$')\n , global = require('./$.global')\n , has = require('./$.has')\n , DESCRIPTORS = require('./$.descriptors')\n , $export = require('./$.export')\n , redefine = require('./$.redefine')\n , $fails = require('./$.fails')\n , shared = require('./$.shared')\n , setToStringTag = require('./$.set-to-string-tag')\n , uid = require('./$.uid')\n , wks = require('./$.wks')\n , keyOf = require('./$.keyof')\n , $names = require('./$.get-names')\n , enumKeys = require('./$.enum-keys')\n , isArray = require('./$.is-array')\n , anObject = require('./$.an-object')\n , toIObject = require('./$.to-iobject')\n , createDesc = require('./$.property-desc')\n , getDesc = $.getDesc\n , setDesc = $.setDesc\n , _create = $.create\n , getNames = $names.get\n , $Symbol = global.Symbol\n , $JSON = global.JSON\n , _stringify = $JSON && $JSON.stringify\n , setter = false\n , HIDDEN = wks('_hidden')\n , isEnum = $.isEnum\n , SymbolRegistry = shared('symbol-registry')\n , AllSymbols = shared('symbols')\n , useNative = typeof $Symbol == 'function'\n , ObjectProto = Object.prototype;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n return _create(setDesc({}, 'a', {\n get: function(){ return setDesc(this, 'a', {value: 7}).a; }\n })).a != 7;\n}) ? function(it, key, D){\n var protoDesc = getDesc(ObjectProto, key);\n if(protoDesc)delete ObjectProto[key];\n setDesc(it, key, D);\n if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);\n} : setDesc;\n\nvar wrap = function(tag){\n var sym = AllSymbols[tag] = _create($Symbol.prototype);\n sym._k = tag;\n DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {\n configurable: true,\n set: function(value){\n if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n }\n });\n return sym;\n};\n\nvar isSymbol = function(it){\n return typeof it == 'symbol';\n};\n\nvar $defineProperty = function defineProperty(it, key, D){\n if(D && has(AllSymbols, key)){\n if(!D.enumerable){\n if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n D = _create(D, {enumerable: createDesc(0, false)});\n } return setSymbolDesc(it, key, D);\n } return setDesc(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P){\n anObject(it);\n var keys = enumKeys(P = toIObject(P))\n , i = 0\n , l = keys.length\n , key;\n while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P){\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n var E = isEnum.call(this, key);\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]\n ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n var D = getDesc(it = toIObject(it), key);\n if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);\n return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);\n return result;\n};\nvar $stringify = function stringify(it){\n if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n var args = [it]\n , i = 1\n , $$ = arguments\n , replacer, $replacer;\n while($$.length > i)args.push($$[i++]);\n replacer = args[1];\n if(typeof replacer == 'function')$replacer = replacer;\n if($replacer || !isArray(replacer))replacer = function(key, value){\n if($replacer)value = $replacer.call(this, key, value);\n if(!isSymbol(value))return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n};\nvar buggyJSON = $fails(function(){\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n});\n\n// 19.4.1.1 Symbol([description])\nif(!useNative){\n $Symbol = function Symbol(){\n if(isSymbol(this))throw TypeError('Symbol is not a constructor');\n return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));\n };\n redefine($Symbol.prototype, 'toString', function toString(){\n return this._k;\n });\n\n isSymbol = function(it){\n return it instanceof $Symbol;\n };\n\n $.create = $create;\n $.isEnum = $propertyIsEnumerable;\n $.getDesc = $getOwnPropertyDescriptor;\n $.setDesc = $defineProperty;\n $.setDescs = $defineProperties;\n $.getNames = $names.get = $getOwnPropertyNames;\n $.getSymbols = $getOwnPropertySymbols;\n\n if(DESCRIPTORS && !require('./$.library')){\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n}\n\nvar symbolStatics = {\n // 19.4.2.1 Symbol.for(key)\n 'for': function(key){\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(key){\n return keyOf(SymbolRegistry, key);\n },\n useSetter: function(){ setter = true; },\n useSimple: function(){ setter = false; }\n};\n// 19.4.2.2 Symbol.hasInstance\n// 19.4.2.3 Symbol.isConcatSpreadable\n// 19.4.2.4 Symbol.iterator\n// 19.4.2.6 Symbol.match\n// 19.4.2.8 Symbol.replace\n// 19.4.2.9 Symbol.search\n// 19.4.2.10 Symbol.species\n// 19.4.2.11 Symbol.split\n// 19.4.2.12 Symbol.toPrimitive\n// 19.4.2.13 Symbol.toStringTag\n// 19.4.2.14 Symbol.unscopables\n$.each.call((\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +\n 'species,split,toPrimitive,toStringTag,unscopables'\n).split(','), function(it){\n var sym = wks(it);\n symbolStatics[it] = useNative ? sym : wrap(sym);\n});\n\nsetter = true;\n\n$export($export.G + $export.W, {Symbol: $Symbol});\n\n$export($export.S, 'Symbol', symbolStatics);\n\n$export($export.S + $export.F * !useNative, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});\n\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.symbol.js\n ** module id = 97\n ** module chunks = 0 1\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export = require('./$.export');\n\n$export($export.P, 'Set', {toJSON: require('./$.collection-to-json')('Set')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es7.set.to-json.js\n ** module id = 98\n ** module chunks = 0 1\n **/","/*!\n * EventEmitter v4.2.11 - git.io/ee\n * Unlicense - http://unlicense.org/\n * Oliver Caldwell - http://oli.me.uk/\n * @preserve\n */\n\n;(function () {\n 'use strict';\n\n /**\n * Class for managing events.\n * Can be extended to provide event functionality in other classes.\n *\n * @class EventEmitter Manages event registering and emitting.\n */\n function EventEmitter() {}\n\n // Shortcuts to improve speed and size\n var proto = EventEmitter.prototype;\n var exports = this;\n var originalGlobalValue = exports.EventEmitter;\n\n /**\n * Finds the index of the listener for the event in its storage array.\n *\n * @param {Function[]} listeners Array of listeners to search through.\n * @param {Function} listener Method to look for.\n * @return {Number} Index of the specified listener, -1 if not found\n * @api private\n */\n function indexOfListener(listeners, listener) {\n var i = listeners.length;\n while (i--) {\n if (listeners[i].listener === listener) {\n return i;\n }\n }\n\n return -1;\n }\n\n /**\n * Alias a method while keeping the context correct, to allow for overwriting of target method.\n *\n * @param {String} name The name of the target method.\n * @return {Function} The aliased method\n * @api private\n */\n function alias(name) {\n return function aliasClosure() {\n return this[name].apply(this, arguments);\n };\n }\n\n /**\n * Returns the listener array for the specified event.\n * Will initialise the event object and listener arrays if required.\n * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.\n * Each property in the object response is an array of listener functions.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Function[]|Object} All listener functions for the event.\n */\n proto.getListeners = function getListeners(evt) {\n var events = this._getEvents();\n var response;\n var key;\n\n // Return a concatenated array of all matching events if\n // the selector is a regular expression.\n if (evt instanceof RegExp) {\n response = {};\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n response[key] = events[key];\n }\n }\n }\n else {\n response = events[evt] || (events[evt] = []);\n }\n\n return response;\n };\n\n /**\n * Takes a list of listener objects and flattens it into a list of listener functions.\n *\n * @param {Object[]} listeners Raw listener objects.\n * @return {Function[]} Just the listener functions.\n */\n proto.flattenListeners = function flattenListeners(listeners) {\n var flatListeners = [];\n var i;\n\n for (i = 0; i < listeners.length; i += 1) {\n flatListeners.push(listeners[i].listener);\n }\n\n return flatListeners;\n };\n\n /**\n * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Object} All listener functions for an event in an object.\n */\n proto.getListenersAsObject = function getListenersAsObject(evt) {\n var listeners = this.getListeners(evt);\n var response;\n\n if (listeners instanceof Array) {\n response = {};\n response[evt] = listeners;\n }\n\n return response || listeners;\n };\n\n /**\n * Adds a listener function to the specified event.\n * The listener will not be added if it is a duplicate.\n * If the listener returns true then it will be removed after it is called.\n * If you pass a regular expression as the event name then the listener will be added to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListener = function addListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var listenerIsWrapped = typeof listener === 'object';\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {\n listeners[key].push(listenerIsWrapped ? listener : {\n listener: listener,\n once: false\n });\n }\n }\n\n return this;\n };\n\n /**\n * Alias of addListener\n */\n proto.on = alias('addListener');\n\n /**\n * Semi-alias of addListener. It will add a listener that will be\n * automatically removed after its first execution.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addOnceListener = function addOnceListener(evt, listener) {\n return this.addListener(evt, {\n listener: listener,\n once: true\n });\n };\n\n /**\n * Alias of addOnceListener.\n */\n proto.once = alias('addOnceListener');\n\n /**\n * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.\n * You need to tell it what event names should be matched by a regex.\n *\n * @param {String} evt Name of the event to create.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvent = function defineEvent(evt) {\n this.getListeners(evt);\n return this;\n };\n\n /**\n * Uses defineEvent to define multiple events.\n *\n * @param {String[]} evts An array of event names to define.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvents = function defineEvents(evts) {\n for (var i = 0; i < evts.length; i += 1) {\n this.defineEvent(evts[i]);\n }\n return this;\n };\n\n /**\n * Removes a listener function from the specified event.\n * When passed a regular expression as the event name, it will remove the listener from all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to remove the listener from.\n * @param {Function} listener Method to remove from the event.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListener = function removeListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var index;\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key)) {\n index = indexOfListener(listeners[key], listener);\n\n if (index !== -1) {\n listeners[key].splice(index, 1);\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of removeListener\n */\n proto.off = alias('removeListener');\n\n /**\n * Adds listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.\n * You can also pass it a regular expression to add the array of listeners to all events that match it.\n * Yeah, this function does quite a bit. That's probably a bad thing.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListeners = function addListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(false, evt, listeners);\n };\n\n /**\n * Removes listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be removed.\n * You can also pass it a regular expression to remove the listeners from all events that match it.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListeners = function removeListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(true, evt, listeners);\n };\n\n /**\n * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.\n * The first argument will determine if the listeners are removed (true) or added (false).\n * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be added/removed.\n * You can also pass it a regular expression to manipulate the listeners of all events that match it.\n *\n * @param {Boolean} remove True if you want to remove listeners, false if you want to add.\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add/remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {\n var i;\n var value;\n var single = remove ? this.removeListener : this.addListener;\n var multiple = remove ? this.removeListeners : this.addListeners;\n\n // If evt is an object then pass each of its properties to this method\n if (typeof evt === 'object' && !(evt instanceof RegExp)) {\n for (i in evt) {\n if (evt.hasOwnProperty(i) && (value = evt[i])) {\n // Pass the single listener straight through to the singular method\n if (typeof value === 'function') {\n single.call(this, i, value);\n }\n else {\n // Otherwise pass back to the multiple function\n multiple.call(this, i, value);\n }\n }\n }\n }\n else {\n // So evt must be a string\n // And listeners must be an array of listeners\n // Loop over it and pass each one to the multiple method\n i = listeners.length;\n while (i--) {\n single.call(this, evt, listeners[i]);\n }\n }\n\n return this;\n };\n\n /**\n * Removes all listeners from a specified event.\n * If you do not specify an event then all listeners will be removed.\n * That means every event will be emptied.\n * You can also pass a regex to remove all events that match it.\n *\n * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeEvent = function removeEvent(evt) {\n var type = typeof evt;\n var events = this._getEvents();\n var key;\n\n // Remove different things depending on the state of evt\n if (type === 'string') {\n // Remove all listeners for the specified event\n delete events[evt];\n }\n else if (evt instanceof RegExp) {\n // Remove all events matching the regex.\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n delete events[key];\n }\n }\n }\n else {\n // Remove all listeners in all events\n delete this._events;\n }\n\n return this;\n };\n\n /**\n * Alias of removeEvent.\n *\n * Added to mirror the node API.\n */\n proto.removeAllListeners = alias('removeEvent');\n\n /**\n * Emits an event of your choice.\n * When emitted, every listener attached to that event will be executed.\n * If you pass the optional argument array then those arguments will be passed to every listener upon execution.\n * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.\n * So they will not arrive within the array on the other side, they will be separate.\n * You can also pass a regular expression to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {Array} [args] Optional array of arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emitEvent = function emitEvent(evt, args) {\n var listenersMap = this.getListenersAsObject(evt);\n var listeners;\n var listener;\n var i;\n var key;\n var response;\n\n for (key in listenersMap) {\n if (listenersMap.hasOwnProperty(key)) {\n listeners = listenersMap[key].slice(0);\n i = listeners.length;\n\n while (i--) {\n // If the listener returns true then it shall be removed from the event\n // The function is executed either with a basic call or an apply if there is an args array\n listener = listeners[i];\n\n if (listener.once === true) {\n this.removeListener(evt, listener.listener);\n }\n\n response = listener.listener.apply(this, args || []);\n\n if (response === this._getOnceReturnValue()) {\n this.removeListener(evt, listener.listener);\n }\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of emitEvent\n */\n proto.trigger = alias('emitEvent');\n\n /**\n * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.\n * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {...*} Optional additional arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emit = function emit(evt) {\n var args = Array.prototype.slice.call(arguments, 1);\n return this.emitEvent(evt, args);\n };\n\n /**\n * Sets the current value to check against when executing listeners. If a\n * listeners return value matches the one set here then it will be removed\n * after execution. This value defaults to true.\n *\n * @param {*} value The new value to check for when executing listeners.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.setOnceReturnValue = function setOnceReturnValue(value) {\n this._onceReturnValue = value;\n return this;\n };\n\n /**\n * Fetches the current value to check against when executing listeners. If\n * the listeners return value matches this one then it should be removed\n * automatically. It will return true by default.\n *\n * @return {*|Boolean} The current value to check for or the default, true.\n * @api private\n */\n proto._getOnceReturnValue = function _getOnceReturnValue() {\n if (this.hasOwnProperty('_onceReturnValue')) {\n return this._onceReturnValue;\n }\n else {\n return true;\n }\n };\n\n /**\n * Fetches the events object and creates one if required.\n *\n * @return {Object} The events storage object.\n * @api private\n */\n proto._getEvents = function _getEvents() {\n return this._events || (this._events = {});\n };\n\n /**\n * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.\n *\n * @return {Function} Non conflicting EventEmitter class.\n */\n EventEmitter.noConflict = function noConflict() {\n exports.EventEmitter = originalGlobalValue;\n return EventEmitter;\n };\n\n // Expose the class either via AMD, CommonJS or the global object\n if (typeof define === 'function' && define.amd) {\n define(function () {\n return EventEmitter;\n });\n }\n else if (typeof module === 'object' && module.exports){\n module.exports = EventEmitter;\n }\n else {\n exports.EventEmitter = EventEmitter;\n }\n}.call(this));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wolfy87-eventemitter/EventEmitter.js\n ** module id = 99\n ** module chunks = 0 1\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n'use strict';\n\n/**\n * Provides a Basic Widget\n */\nclass DestroyableWidget {\n\n constructor() {\n this.listeners = [];\n }\n\n /**\n * Destroys a Widget\n */\n destroy() {\n this.listeners.forEach((listener) => {\n listener.element.removeEventListener.apply(listener.element, listener.args);\n });\n this.listeners = [];\n }\n\n /**\n * Adds an event and registers it later to remove bindings\n * @param {HTMLElement} element\n * @param {String} name\n * @param {Function} listener\n * @param {boolean} [capture]\n * @returns {Function}\n */\n addEventListener(element, name, listener, capture) {\n this.listeners.push({\n element,\n args: [name, listener, capture]\n });\n\n element.addEventListener(name, listener, capture);\n return listener;\n }\n\n}\n\nexport default DestroyableWidget;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/DestroyableWidget.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Modal\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n'use strict';\n\n/* global KeyboardEvent */\n\nimport Settings from './util/Settings';\nimport Event from './util/Event';\nimport Util from './util/Util';\nimport Widget from './Widget';\nimport FixedWindow from './lib/FixedWindow';\n\nconst HTML_ELEMENT = global.document.documentElement;\nconst KEY_ESC = 27;\n/* Attribute Names */\nconst ATTR_CREATE_NEW = 'data-new-instance';\nconst ATTR_CLOSE = 'data-close-modal';\nconst ATTR_NAME = 'data-modal';\n\n/* Class names */\nconst CLS_CONTAINER_CURRENT = 'front';\nconst CLS_OPEN = 'open';\nconst CLS_CURRENT = 'current';\nconst CLS_PART_OF_STACK = 'part-of-stack';\nconst CLS_MODAL_OPEN = 'modal-open';\nconst CLS_MODAL_CONTAINER = 'modal-container';\nconst CLS_ANIM_END = 'modal-anim-end';\nconst CLS_LOADER_CONTAINER = 'loader-container';\nconst CLS_LOADER = 'loader';\n\n/* Events */\n\n/**\n * Event triggered when modal is closed\n * @type {string}\n */\nexport const EVENT_MODAL_CLOSED = 'flexcss.modal.closed';\n/**\n * Event triggered before a modal is closed, cancelable\n * @type {string}\n */\nexport const EVENT_MODAL_BEFORE_CLOSED = 'flexcss.modal.beforeClose';\n/**\n * Event triggered when a modal is opened\n * @type {string}\n */\nexport const EVENT_MODAL_OPENED = 'flexcss.modal.opened';\n\n/**\n * Event triggered when modal is initilized, called on target\n * @type {string}\n */\nexport const EVENT_MODAL_INIT = 'flexcss.modal.init';\n\n/**\n * Triggered when the content of an async modal on a target is loaded, called on target\n * @type {string}\n */\nexport const EVENT_MODAL_ASYNC_TARGET_LOADED = 'flexcss.modal.asyncTargetLoaded';\n\n/**\n * A Modal Implementation\n */\nclass Modal {\n constructor(DelegateContainer, options) {\n const doc = global.document;\n const container = DelegateContainer instanceof HTMLElement ?\n DelegateContainer : doc.getElementById(DelegateContainer);\n\n // Instance vars:\n if (!container) {\n throw new Error(`Could not found container element by given ID/Element: ${DelegateContainer}`);\n }\n\n this.currentOpen = null;\n\n this.loading = false;\n\n this.container = container;\n\n /**\n * Default Options\n */\n this.options = {\n classNames: 'modal',\n closeOnEscape: true,\n closeOnBackgroundClick: true,\n destroyOnFinish: false,\n fixedContainer: true,\n containerClassNames: ''\n };\n\n Object.assign(this.options, options);\n\n // Container where events are delegated\n this.eventContainer = null;\n this.eventFunction = null;\n\n this.dataMainPageContainer = global.document.body;\n\n this.currentScrollTop = 0;\n\n this.modalContainer = null;\n\n // Destroy full modal instance when no dialogs are bind to?\n // Otherwise container is recycled\n this.destroyOnFinish = this.options.destroyOnFinish;\n }\n\n /**\n * Removes this modal from global stack\n * Will handle fixing main html element too\n * @private\n * @param n\n */\n _removeModalFromStack(n) {\n const t = Modal._modalInstances.indexOf(n);\n if (t > -1) {\n Modal._modalInstances.splice(t, 1);\n FixedWindow.getInstance().close().then(() => {\n HTML_ELEMENT.classList.remove(CLS_MODAL_OPEN);\n });\n }\n }\n\n\n /**\n * Modal container that contains all `stacked` modals for this instance\n * @returns {HTMLElement}\n */\n getModalContainer() {\n return this.modalContainer;\n }\n\n /**\n * Closes the current open modal of this stack\n * @params [e], optional event\n * @returns {*}\n */\n close(e) {\n const self = this;\n\n const options = self.currentOpen ? Util.applyOptionsFromElement(\n self.currentOpen, Util.copy(self.options)) : self.options;\n\n // close only on keyboard if instance should\n if (!options.closeOnEscape && e instanceof KeyboardEvent) {\n return false;\n }\n\n // close only on background if instance should\n if (!options.closeOnBackgroundClick && e &&\n e.type === Settings.getTabEvent() && !e.target.hasAttribute(ATTR_CLOSE)) {\n return false;\n }\n\n // if an instance is currently loading, prevent from closing\n if (self.loading) {\n return false;\n }\n\n if (e) {\n e.preventDefault();\n }\n\n if (self.currentOpen) {\n // dispatch beforeClose event, if prevented prevent modal from closing\n var ev = Event.dispatchAndFire(self.currentOpen, EVENT_MODAL_BEFORE_CLOSED);\n if (ev.defaultPrevented) {\n return false;\n }\n\n this._finishState(self.currentOpen);\n // if there is an previous modal\n if (self.currentOpen.prevModal) {\n // switch to the next modal\n return self.switchModals(self.currentOpen.prevModal,\n self.currentOpen.prevModal.prevModal || null);\n }\n\n // finally trigger closed event\n Event.dispatch(self.currentOpen, EVENT_MODAL_CLOSED).withOriginal(e).fire();\n\n }\n self._removeModalFromStack(self.currentOpen);\n\n // Full stack closed:\n self.currentOpen = null;\n if (self.modalContainer) {\n // setup next open\n var lastContainer = Modal._modalInstances[Modal._modalInstances.length - 1],\n classList = self.modalContainer.classList;\n classList.remove(CLS_CONTAINER_CURRENT);\n classList.remove(CLS_OPEN);\n // Remove all current classes from child-nodes\n for (var i = 0; i < self.modalContainer.childNodes.length; i++) {\n var node = self.modalContainer.childNodes[i], cl = node.classList;\n // remove applied styles\n self._finishState(node);\n cl.remove(CLS_CURRENT);\n cl.remove(CLS_PART_OF_STACK);\n }\n if (lastContainer) {\n lastContainer.parentNode.classList.add(CLS_CONTAINER_CURRENT);\n }\n }\n\n if (self.destroyOnFinish) {\n self.destroy();\n }\n return self;\n }\n\n /**\n * Resets a target when newly initilizes\n * @param target\n * @private\n */\n _finishState(target) {\n target.classList.remove(CLS_ANIM_END);\n }\n\n /**\n * Handler called when a Modal has finished an animation\n * @param e\n * @param self\n * @private\n */\n _finishAnim(e, self) {\n e.target.classList.add(CLS_ANIM_END);\n e.target.removeEventListener(e.type, self, true);\n }\n\n /**\n * Brings the given modal to front\n * @param co\n * @param last\n */\n switchModals(co, last) {\n co.prevModal = last;\n Modal._modalInstances.push(co);\n FixedWindow.getInstance().open(this);\n if (last) {\n this._finishState(last);\n Util.prefixedAnimateEvent(last, 'AnimationEnd', this._finishAnim);\n last.classList.add(CLS_PART_OF_STACK);\n }\n // set new currentOpen\n this.currentOpen = co;\n\n // bring current container to the front\n var instances = Modal._modalInstances;\n\n for (var m = 0; m < instances.length; m++) {\n instances[m].parentNode.classList.remove(CLS_CONTAINER_CURRENT);\n }\n this.modalContainer.classList.add(CLS_CONTAINER_CURRENT);\n // remove animations if animations has been completed, fixes various bugs:\n // - fixes nested scrolling element issue in iOS Browsers / Mobile-Safari\n Util.prefixedAnimateEvent(co, 'AnimationEnd', this._finishAnim);\n\n for (var i = 0; i < this.modalContainer.childNodes.length; i++) {\n var n = this.modalContainer.childNodes[i], isCurrent = n.classList.contains(CLS_CURRENT);\n if (n === co) {\n co.classList.add(CLS_CURRENT);\n co.classList.remove(CLS_PART_OF_STACK);\n this._finishState(co);\n } else {\n n.classList.remove(CLS_CURRENT);\n if (isCurrent) {\n this._removeModalFromStack(n);\n Event.dispatchAndFire(n, EVENT_MODAL_CLOSED);\n }\n }\n }\n }\n\n handleScrollbar() {\n if (Modal._modalInstances.length === 0) {\n HTML_ELEMENT.classList.add(CLS_MODAL_OPEN);\n }\n }\n\n /**\n * Creates a Modal and opens it (later)\n * @param e\n * @returns {Promise|boolean}\n */\n createWidget(e) {\n var self = this;\n if (this.loading) {\n return false;\n }\n\n // check if another modal has registered events on this dom path:\n if (e && e.target) {\n var foundInstance = Util.parentsUntil(e.target, function (node) {\n return node && node.flexModalInstance;\n });\n\n // if another instance has been found, abort\n if (foundInstance !== this.container) {\n return false;\n }\n }\n var targetContent, future, widget, target, hasTarget = true,\n isHtmlElement = e instanceof HTMLElement, isWidget = Widget.isWidget(e);\n if (isHtmlElement || isWidget) {\n if (isHtmlElement) {\n targetContent = e;\n } else {\n widget = e;\n targetContent = widget.element;\n }\n } else {\n target = e.target;\n if (!target) {\n throw 'Could not find target, did you pass an event, a HTMLElement or an Widget?';\n }\n hasTarget = target.hasAttribute(ATTR_NAME);\n targetContent = target.getAttribute(ATTR_NAME);\n widget = Widget.findWidget(target);\n if (target.hasAttribute(ATTR_CREATE_NEW) && !e.newInstance) {\n var newInstance = new Modal(this.container)\n .setDestroyOnFinish(true);\n e.newInstance = true;\n newInstance.fromEvent(e).then(function () {\n newInstance.registerEvents(newInstance.getModalContainer());\n });\n return false;\n }\n if (hasTarget) {\n e.stopImmediatePropagation();\n e.preventDefault();\n }\n }\n\n if (!hasTarget) {\n return false;\n }\n\n let modalContainerClasses = this.modalContainer ? this.modalContainer.classList : [];\n\n // lazy create modal container\n if (!this.modalContainer) {\n this.modalContainer = global.document.createElement('div');\n this.modalContainer.className = `${CLS_MODAL_CONTAINER} ${this.options.containerClassNames} ${CLS_OPEN}`;\n const closeModalFunction = function (ce) {\n if (self.loading) {\n return false;\n }\n if (Util.isPartOfNode(ce.target, self.currentOpen)) {\n if (!ce.target.hasAttribute(ATTR_CLOSE)) {\n return false;\n }\n }\n self.close(ce);\n };\n\n this.modalContainer.addEventListener(Settings.getTabEvent(), closeModalFunction, false);\n\n modalContainerClasses = this.modalContainer.classList;\n this.container.appendChild(this.modalContainer);\n\n } else {\n modalContainerClasses.add(CLS_OPEN);\n }\n\n let loader, doc = global.document, toggleLoader = function (show) {\n if (show) {\n loader = doc.createElement('div');\n loader.className = CLS_LOADER_CONTAINER;\n var loaderLoader = doc.createElement('div');\n loaderLoader.className = CLS_LOADER;\n loader.appendChild(loaderLoader);\n self.modalContainer.appendChild(loader);\n } else {\n loader.parentNode.removeChild(loader);\n }\n };\n\n this.handleScrollbar();\n\n modalContainerClasses.add(CLS_CONTAINER_CURRENT);\n modalContainerClasses.add('loading');\n this.loading = true;\n toggleLoader(true);\n var async = widget ? widget.getAsync() : null;\n if (Widget.isWidget(widget) && async) {\n future = async.then(function (r) {\n var result;\n if (r instanceof HTMLElement || r instanceof DocumentFragment) {\n result = r;\n } else {\n // Create container Element:\n var element = doc.createElement('div');\n element.className = self.options.classNames;\n element.innerHTML = r;\n element.id = Util.guid();\n result = element;\n }\n widget.finalContent = result;\n Event.dispatchAndFire(target, EVENT_MODAL_ASYNC_TARGET_LOADED);\n return result;\n });\n } else {\n var el = targetContent instanceof HTMLElement ||\n targetContent instanceof DocumentFragment ? targetContent : doc.getElementById(targetContent);\n if (el) {\n future = new Promise((resolve) => {\n resolve(el);\n });\n } else {\n throw 'Could not found given modal element (content) with ID: ' + targetContent;\n }\n }\n\n Event.dispatchAndFire(target, EVENT_MODAL_INIT);\n\n return future.then((thisEl) => {\n thisEl.hfWidgetInstance = self;\n self.modalContainer.appendChild(thisEl);\n modalContainerClasses.remove('loading');\n self.loading = false;\n toggleLoader(false);\n\n self.open(thisEl, true, e);\n\n return thisEl;\n });\n }\n\n /**\n * Open's an already rendered modal\n * @param {HTMLElement} modal\n * @param {Boolean} [internal], set to true to prevent container management\n * @param {Boolean} [maybeEvent], optional event-object that triggered open\n */\n open(modal, internal, maybeEvent) {\n\n\n if (!internal) {\n this.modalContainer.classList.add('open');\n this.handleScrollbar();\n }\n this.switchModals(modal, this.currentOpen);\n\n Event.dispatch(modal, EVENT_MODAL_OPENED).withOriginal(maybeEvent).fire();\n }\n\n\n registerEvents(delegate) {\n var delegateContainer = delegate || this.container, self = this;\n // Modals should always be fixed\n FixedWindow.getInstance().addScreenConstraint(Modal, (width) => true);\n // register modal instance so we can detect multiple registrars\n delegateContainer.flexModalInstance = self;\n self.eventFunction = function () {\n self.createWidget.apply(self, arguments);\n };\n delegateContainer.addEventListener(Settings.getTabEvent(), self.eventFunction, false);\n\n self.eventContainer = delegateContainer;\n return self;\n }\n\n\n /**\n * Creates a new Dialog Instance either directly from HTML Element or a Widget instance\n * @param {HTMLElement|Widget} widget instance or html element\n * @returns {Promise}\n */\n fromWidget(widget) {\n return this.createWidget(widget);\n }\n\n /**\n * Creates a Widget from event\n * @param e\n * @returns {Promise}\n */\n fromEvent(e) {\n return this.createWidget(e);\n }\n\n setDestroyOnFinish(v) {\n this.destroyOnFinish = v;\n return this;\n }\n\n /**\n * Destroy this widget instance, cleans empty DOM nodes\n * Will use fast MutationObserver if available, otherwise falls back to DOMNodeRemoved event\n */\n destroy() {\n let self = this, modalContainer = this.modalContainer;\n const isEmptyContainer = modalContainer.childNodes.length === 0;\n // Remove event listener on destroy, do not remove DOM node\n if (self.eventContainer) {\n self.eventContainer.removeEventListener(Settings.getTabEvent(), self.eventFunction, true);\n }\n\n if (isEmptyContainer) {\n if (modalContainer.parentNode) {\n modalContainer.parentNode.removeChild(modalContainer);\n }\n }\n if (global.MutationObserver) {\n var observer = new MutationObserver(function (mutations) {\n mutations.forEach(function () {\n if (isEmptyContainer) {\n modalContainer.parentNode.removeChild(modalContainer);\n observer.disconnect();\n }\n });\n });\n observer.observe(modalContainer, {childList: true});\n } else {\n modalContainer.addEventListener('DOMNodeRemoved', function (e) {\n if (e.target !== modalContainer && (modalContainer.childNodes.length - 1) === 0) {\n modalContainer.parentNode.removeChild(modalContainer);\n }\n });\n }\n }\n}\n\n\n// Static variable that keeps track of all open modals\nModal._modalInstances = [];\n\n// Global keydown listener for modal\nglobal.addEventListener('keydown', function (e) {\n if (e.keyCode === KEY_ESC) {\n var lastModal = Modal._modalInstances[Modal._modalInstances.length - 1];\n if (lastModal) {\n Widget.findWidget(lastModal).close(e);\n }\n }\n});\n\nexport default Modal;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Modal.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Tooltip\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\nimport Util from './util/Util';\nimport DestroyableWidget from './DestroyableWidget';\nimport Settings from './util/Settings';\n\n/**\n * @type {string}\n */\nconst CLASS_NAMES_TOOLTIP = 'tooltip-container';\n/**\n * @type {string}\n */\nconst CLASS_NAMES_OPEN = 'open';\n\n/**\n * @type {string}\n */\nconst ATTR_DATA_CLASSNAME = 'data-class';\n\n/**\n * @type {string}\n */\nconst ATTR_DATA_NO_TOUCH = 'data-no-touch';\n\n/**\n * @type {HTMLDocument}\n */\nconst doc = global.document;\n\n/**\n * Simple Tooltip\n */\nclass Tooltip extends DestroyableWidget {\n\n /**\n * Creates a Tooltip\n * @param {HTMLElement|String} DelegateContainer\n * @param {Object} [options]\n */\n constructor(DelegateContainer, options) {\n super();\n /**\n * The Container where possible events are captured\n */\n this.container = DelegateContainer instanceof HTMLElement ?\n DelegateContainer : doc.getElementById(DelegateContainer);\n\n if (!this.container) {\n throw new Error('Could not create Tooltip, DelegateContainer not found');\n }\n\n /**\n * The Container where tooltips are stored for this instance\n * @type {HTMLElement}\n */\n this.tooltipContainer = null;\n\n /**\n * Default Options\n */\n this.options = {\n containerClass: '',\n selectorAttribute: 'data-tooltip',\n collisionContainer: this.container\n };\n\n Object.assign(this.options, options || {});\n }\n\n /**\n * Creates and shows a tooltip\n * @param {HTMLElement} target where is this tooltip positioned\n * @param {String} text text content in tooltip, will be NOT escaped\n * @param {Boolean} [removeTitle] removes title element if given\n * @param {Node} [positionRelative]\n */\n createTooltip(target, text, removeTitle, positionRelative) {\n // abort if text is empty\n if (!text || text && text.trim() === '') {\n return;\n }\n\n if (Settings.isTouchDevice() && target && target.hasAttribute(ATTR_DATA_NO_TOUCH)) {\n return;\n }\n\n let tooltipContainer = this.tooltipContainer;\n\n if (!tooltipContainer) {\n tooltipContainer = doc.createElement('div');\n this.container.appendChild(tooltipContainer);\n this.tooltipContainer = tooltipContainer;\n }\n this._restoreClassNames(tooltipContainer, target);\n\n tooltipContainer.style.left = 'auto';\n tooltipContainer.style.top = 'auto';\n tooltipContainer.innerHTML = text;\n tooltipContainer.flexTooltipCurrentTarget = target;\n if (removeTitle) {\n target.oldTitle = text;\n target.removeAttribute('title');\n }\n\n Util.setupPositionNearby(positionRelative || target, tooltipContainer,\n this.options.collisionContainer, true, true);\n\n tooltipContainer.classList.add(CLASS_NAMES_OPEN);\n }\n\n _restoreClassNames(container, target) {\n // allow additional classname per tooltip on target element\n const classNames = [CLASS_NAMES_TOOLTIP, this.options.containerClass];\n const maybeTargetClass = target.getAttribute(ATTR_DATA_CLASSNAME);\n if (maybeTargetClass) {\n classNames.push(maybeTargetClass);\n }\n container.className = classNames.join(\" \");\n return this;\n }\n\n /**\n * @returns {HTMLElement|null}\n */\n getCurrentTarget() {\n return this.tooltipContainer ? this.tooltipContainer.flexTooltipCurrentTarget : null;\n }\n\n /**\n * Destroys this Widget\n * @returns {boolean}\n */\n destroy() {\n super.destroy();\n\n if (this.tooltipContainer) {\n this.tooltipContainer.parentNode.removeChild(this.tooltipContainer);\n return true;\n }\n return false;\n }\n\n /**\n * Removes a Tooltip on given target\n * @param {HTMLElement} [target], if not given will remove current open tooltip on this instance\n */\n removeTooltip(target) {\n let selfTarget = target;\n if (!selfTarget && this.tooltipContainer) {\n selfTarget = this.tooltipContainer.flexTooltipCurrentTarget;\n }\n if (this.tooltipContainer) {\n if (this.tooltipContainer.flexTooltipCurrentTarget !== selfTarget) {\n return;\n }\n this.tooltipContainer.classList.remove(CLASS_NAMES_OPEN);\n delete this.tooltipContainer.flexTooltipCurrentTarget;\n }\n if (selfTarget && selfTarget.oldTitle) {\n selfTarget.setAttribute('title', selfTarget.oldTitle);\n }\n }\n\n /**\n * Initilizes mouse events on container element\n */\n registerEvents() {\n const self = this;\n this.addEventListener(this.container, 'mouseover', (e) => {\n if (e.target.hasAttribute(self.options.selectorAttribute)) {\n self.createTooltip(e.target, e.target.getAttribute('title'), true);\n }\n });\n\n this.addEventListener(this.container, 'mouseout', (e) => {\n if (e.target.hasAttribute(self.options.selectorAttribute)) {\n self.removeTooltip(e.target);\n }\n });\n return this;\n }\n}\n\nexport default Tooltip;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Tooltip.js\n **/","/* global localStorage, document */\n\nimport Marklib from 'modules/Marklib';\nimport { Tooltip } from 'flexcss';\n\nconst KEY_ENTER = 13;\n\n/**\n * Contains Module for the demonstration\n */\n\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n const STORAGE_KEY = 'savedRanges';\n const ANIMATIONEND = 'animationend';\n let allRanges = [];\n const tooltip = new Tooltip(document.body);\n\n /**\n * Creates an animated rendering\n */\n function presentRendering(selector, classNames, speed) {\n const text = document.getElementById(selector).childNodes[0];\n const thisLength = text.length;\n\n const render = (autoMarkText, cp, length) => {\n let c = cp;\n const r = new Marklib.Rendering(document, {\n className: classNames\n });\n const range = document.createRange();\n range.setStart(autoMarkText, 0);\n range.setEnd(autoMarkText, 1);\n r.renderWithRange(range);\n if (autoMarkText.parentNode.nextSibling) {\n const nextText = autoMarkText.parentNode.nextSibling.childNodes[0];\n setTimeout(() => {\n render(nextText, ++c, length);\n }, speed);\n }\n };\n\n return render(text, 0, thisLength);\n }\n\n presentRendering('automark', 'fadeInDown', 20);\n\n let savedRanges = JSON.parse(localStorage.getItem(STORAGE_KEY)) || [];\n let animated = false;\n\n /**\n * OnClick event for renderings\n */\n function onClick() {\n const self = this;\n this.wrapperNodes.forEach((n) => {\n n.addEventListener(ANIMATIONEND, function thisFunction(e) {\n e.target.classList.remove('bubble');\n e.target.removeEventListener(ANIMATIONEND, thisFunction);\n });\n n.classList.add('bubble');\n });\n\n if (tooltip.getCurrentTarget() === this.wrapperNodes[0]) {\n return;\n }\n\n tooltip.createTooltip(this.wrapperNodes[0], this.result.text, false);\n\n setTimeout(() => {\n if (tooltip.getCurrentTarget()) {\n document.addEventListener('click', function thisFunction() {\n if (tooltip.getCurrentTarget() && tooltip.getCurrentTarget() === self.wrapperNodes[0]) {\n tooltip.removeTooltip();\n }\n document.removeEventListener('click', thisFunction);\n });\n }\n }, 0);\n }\n\n\n savedRanges.forEach((range) => {\n const marker = new Marklib.Rendering(document);\n try {\n marker.renderWithResult(range);\n allRanges.push(marker);\n marker.on('click', onClick);\n } catch (e) {\n console.warn(\"Could not render:\", range, e);\n localStorage.setItem(STORAGE_KEY, JSON.stringify([]));\n console.error('Cleared local storage because of a rendering issue, the page might have been changed ;)');\n }\n });\n\n window.addEventListener('scroll', () => {\n const el = document.getElementById('secondParagraph');\n const r = el.getBoundingClientRect();\n const html = document.documentElement;\n if (r.top <= html.clientHeight && r.bottom >= 0 && !animated) {\n animated = true;\n\n el.classList.add('animate');\n if (!savedRanges.length) {\n presentRendering('secondParagraphItem', 'marking', 30);\n }\n }\n });\n\n const actionMark = () => {\n try {\n const selection = document.getSelection();\n const renderer = new Marklib.Rendering(document);\n const result = renderer.renderWithRange(selection.getRangeAt(0));\n\n renderer.on('click', onClick);\n allRanges.push(renderer);\n\n selection.removeAllRanges();\n savedRanges.push(result.serialize());\n localStorage.setItem(STORAGE_KEY, JSON.stringify(savedRanges));\n } catch (e) {\n console.warn(\"Could not add selection: \", e);\n }\n };\n\n document.addEventListener(\"keydown\", (e) => {\n if (e.keyCode === KEY_ENTER) {\n actionMark();\n }\n });\n\n document.addEventListener(\"click\", (e) => {\n if (e.target.id === 'action-mark') {\n return actionMark();\n } else if (e.target.id === 'action-clear') {\n allRanges.forEach((range) => range.destroy());\n savedRanges = [];\n allRanges = [];\n localStorage.setItem(STORAGE_KEY, JSON.stringify([]));\n }\n });\n});\n\nexport default Marklib;\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/modules/Site.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Dropdown\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n'use strict';\n\nimport Util from './util/Util';\nimport Settings from './util/Settings';\nimport Event from './util/Event';\nimport Widget from './Widget';\nimport FixedWindow from './lib/FixedWindow';\n\n/**\n * @type {string}\n */\nconst ATTR_CC = 'data-collision-container';\n/**\n * @type {string}\n */\nconst ATTR_DARKENER = 'data-darkener-container';\n/**\n * @type {string}\n */\nconst DARKENER_INIT = 'init';\n/**\n * @type {string}\n */\nconst ATTR_DATA_TARGET = 'data-target';\n/**\n * @type {string}\n */\nconst ATTR_CLOSE_DROPDOWN = 'data-close-dropdown';\n/**\n * @type {string}\n */\nconst ATTR_NAME = 'data-dropdown';\n/**\n * @type {string}\n */\nconst STATE_LOADING = 'loading';\n\nconst CLS_DARKENER_DROPDOWN = 'darkener-dropdown';\n/**\n * @type {string}\n */\nconst CLS_OPEN = 'open';\n\n/**\n * @type {string}\n */\nconst CLS_DROPDOWN = 'dropdown';\n\n/**\n * @type {string}\n */\nexport const EVENT_DROPDOWN_CLOSED = 'flexcss.dropdown.closed';\n\n/**\n * A Dropdown\n */\nclass Dropdown {\n constructor(DelegateContainer, Darkener) {\n const doc = global.document;\n\n /**\n * Container Element\n * @type {HTMLElement}\n */\n this.container = DelegateContainer instanceof HTMLElement ?\n DelegateContainer : doc.getElementById(DelegateContainer);\n\n this.currentOpen = null;\n this.currentTarget = null;\n /**\n * @type {HTMLElement}\n */\n this.darkener = Darkener instanceof HTMLElement ? Darkener : document.getElementById(Darkener);\n\n this.destroyOnClose = false;\n\n if (!this.darkener || !this.container) {\n throw new Error('required elements not found (darkener and container element)');\n }\n }\n\n /**\n * Method that handles delegation events for dropdowns\n * @param e\n * @returns {boolean}\n * @private\n */\n _delegateFunction(e) {\n const currentOpen = this.currentOpen;\n const target = Util.closestCallback(e.target, n => n instanceof HTMLElement && n.hasAttribute(ATTR_NAME));\n const targetIsCurrent = target === this.currentTarget;\n\n if (currentOpen && !Util.isPartOfNode(e.target, currentOpen) || targetIsCurrent) {\n this.close();\n if (targetIsCurrent) {\n e.preventDefault();\n }\n return targetIsCurrent ? false : this._delegateFunction(e);\n }\n\n if (target && !currentOpen) {\n e.preventDefault();\n e.stopImmediatePropagation();\n\n if (target.isLoading) {\n return false;\n }\n this.createDropdown(target);\n } else {\n if (currentOpen) {\n if (e.target.hasAttribute(ATTR_CLOSE_DROPDOWN)) {\n e.preventDefault();\n this.close();\n }\n if (!Util.isPartOfNode(e.target, currentOpen)) {\n this.close();\n }\n }\n }\n }\n\n /**\n * Register Events for this dropdown container\n * @returns {Dropdown}\n */\n registerEvents() {\n FixedWindow.getInstance().addScreenConstraint(Dropdown, (width) => width < Settings.get().smallBreakpoint);\n this.container.addEventListener(Settings.getTabEvent(), this._delegateFunction.bind(this), true);\n return this;\n }\n\n /**\n * Destroys this instance, unbinds events\n * @returns {Dropdown}\n */\n destroy() {\n this.container.removeEventListener(Settings.getTabEvent(), this._delegateFunction.bind(this), true);\n return this;\n }\n\n\n /**\n * Destroys instance on close of dropdown\n * @param v\n * @returns {Dropdown}\n */\n setDestroyOnClose(v) {\n this.destroyOnClose = v;\n return this;\n }\n\n\n /**\n * Will add the right class to container for specific darkener id\n * @param instance\n * @param show\n */\n toggleDarkenerToggler(instance, show) {\n const cls = `toggle-${(instance.id || CLS_DARKENER_DROPDOWN)}`;\n const classList = this.container.classList;\n if (show) {\n classList.add(cls);\n } else {\n classList.remove(cls);\n }\n }\n\n /**\n * Closes Dropdown on current instance\n * @return {Boolean|Promise}\n */\n close() {\n const currentOpen = this.currentOpen;\n if (!currentOpen) {\n return false;\n }\n let future;\n const darkenerInstance = currentOpen.flexDarkenerInstance || this.darkener;\n const thisCurrentOpen = currentOpen;\n\n future = new Promise((resolve) => {\n if (window.getComputedStyle(currentOpen).position === 'fixed') {\n Util.addEventOnce(Settings.getTransitionEvent(), currentOpen, () => {\n setTimeout(() => {\n Event.dispatchAndFire(thisCurrentOpen, EVENT_DROPDOWN_CLOSED);\n // if a new dropdown has been opened in the meantime, do not remove darkener\n if (this.currentOpen !== null) {\n return false;\n }\n this.toggleDarkenerToggler(darkenerInstance, false);\n resolve(true);\n }, Settings.get().darkenerFadeDelay);\n });\n } else {\n resolve(true);\n Event.dispatchAndFire(thisCurrentOpen, EVENT_DROPDOWN_CLOSED);\n }\n });\n\n FixedWindow.getInstance().close();\n currentOpen.classList.remove(CLS_OPEN);\n\n if (currentOpen.flexDarkenerInstance) {\n currentOpen.flexDarkenerInstance.classList.remove(DARKENER_INIT);\n } else {\n this.darkener.classList.remove(DARKENER_INIT);\n }\n\n this.currentOpen = null;\n this.currentTarget = null;\n\n if (this.destroyOnClose) {\n this.destroy();\n }\n\n return future;\n }\n\n /**\n * Creates a dropdown on given target and opens it\n * @param {HTMLElement} target target where this dropdown is placed\n * @param {FlexCss.Widget} [thisWidget] if given will use widget instead of widget instance\n * @return {FlexCss.Dropdown}\n */\n createDropdown(target, thisWidget) {\n const doc = global.document;\n\n if (!target) {\n throw new Error('Dropdown target not found');\n }\n\n const widget = thisWidget || Widget.findWidget(target);\n let future;\n const data = target.getAttribute(ATTR_NAME);\n const dropdownContainerElement = doc.getElementById(data);\n const async = !dropdownContainerElement && Widget.isWidget(widget) ? widget.getAsync() : false;\n\n if (async) {\n target.classList.add(STATE_LOADING);\n target.isLoading = true;\n future = async.then((r) => {\n if (r instanceof HTMLElement) {\n if (r.id) {\n target.setAttribute(ATTR_NAME, r.id);\n }\n return r;\n }\n // Create container Element:\n const element = doc.createElement('div');\n element.className = CLS_DROPDOWN;\n element.innerHTML = r;\n element.id = Util.guid();\n // Cache target for later use:\n target.setAttribute(ATTR_NAME, element.id);\n this.container.appendChild(element);\n return element;\n }).then((r) => {\n target.isLoading = false;\n target.classList.remove(STATE_LOADING);\n return r;\n });\n } else {\n if (!dropdownContainerElement) {\n throw new Error(`Could not found Dropdown container with ID \"${data}\"`);\n }\n future = new Promise((r) => {\n r(dropdownContainerElement);\n });\n }\n\n future.then((dropdownContent) => {\n if (this.currentOpen) {\n this.close();\n }\n // Skip one frame to show animation\n target.dropdownContent = dropdownContent;\n const isAbsolute = global.getComputedStyle(dropdownContent).position === 'absolute';\n dropdownContent.hfWidgetInstance = this;\n\n if (!target.flexCollisionContainer) {\n const collisionC = target.getAttribute(ATTR_CC);\n target.flexCollisionContainer = collisionC ?\n doc.getElementById(collisionC) || document.documentElement : document.documentElement;\n }\n\n dropdownContent.classList.toggle(CLS_OPEN);\n if (dropdownContent.classList.contains(CLS_OPEN)) {\n this.currentOpen = dropdownContent;\n this.currentTarget = target;\n }\n if (isAbsolute) {\n // Check collision:\n let selfTarget = target.getAttribute(ATTR_DATA_TARGET);\n selfTarget = selfTarget ? doc.getElementById(selfTarget) : target;\n Util.setupPositionNearby(selfTarget, dropdownContent, target.flexCollisionContainer);\n } else {\n FixedWindow.getInstance().open(this);\n // optionally get custom darkener container for target\n const d = target.getAttribute(ATTR_DARKENER);\n if (d) {\n dropdownContent.flexDarkenerInstance = doc.getElementById(d);\n (dropdownContent.flexDarkenerInstance || this.darkener).classList.toggle(DARKENER_INIT);\n } else {\n this.darkener.classList.toggle(DARKENER_INIT);\n }\n this.toggleDarkenerToggler(dropdownContent.flexDarkenerInstance || this.darkener, true);\n\n dropdownContent.style.left = '0';\n dropdownContent.style.top = 'auto';\n }\n });\n }\n\n}\n\nexport default Dropdown;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Dropdown.js\n **/","/*global HTMLFormElement, fetch, FormData, clearTimeout, NodeList*/\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Form\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n'use strict';\n\nimport Tooltip from './Tooltip';\nimport 'isomorphic-fetch';\nimport Event from './util/Event';\nimport Util from './util/Util';\nimport Settings from './util/Settings';\nimport DestroyableWidget from './DestroyableWidget';\n\nconst LOADING_CLASS = 'loading';\nconst DATA_ELEMENT_INVALID = 'data-flexcss-invalid';\nconst REMOTE = 'data-remote';\nconst REMOTE_ACTION = 'data-remote-action';\nconst ATTR_DISABLE_INLINE = 'data-disable-inline-validation';\nconst ATTR_DISABLE_REALTIME = 'data-disable-realtime-validation';\nconst ATTR_VALIDATOR = 'data-validate';\nconst ATTR_DATA_CUSTOM_MESSAGE = 'data-validation-message';\nconst ATTR_DATA_CUSTOM_LABEL = 'data-custom-label';\nconst ATTR_VALIDATE_VISIBILITY = 'data-validate-visibility';\nconst ATTR_ERROR_TARGET_ID = 'data-error-target';\nconst ATTR_DEPENDS = 'data-depends-selector';\nconst CONST_USE_JSON = 'json';\nconst CONST_REALTIME_EVENT = 'input';\nconst FOCUS_TOOLTIP_DELAY = 20;\nconst CLICK_TOOLTIP_DELAY = 150;\n\n/**\n * Triggered when form is fully initialized and handlers are binded\n * @type {string}\n */\nexport const EVENT_FORM_READY = 'flexcss.form.ready';\n/**\n * Fires when a form is submitted, cancelable\n * @type {string}\n */\nexport const EVENT_FORM_SUBMIT = 'flexcss.form.submit';\n/**\n * Fired directly after the form has been submitted via ajax\n * @type {string}\n */\nexport const EVENT_FORM_AFTER_AJAX_SUBMIT = 'flexcss.form.afterAjaxSubmit';\n/**\n * Fired when ajax events did complete\n * @type {string}\n */\nexport const EVENT_FORM_AJAX_COMPLETED = 'flexcss.form.ajaxCompleted';\n\n/**\n * A HTML5 Form Validation replacement\n */\n\nclass Form extends DestroyableWidget {\n /**\n * @param {HTMLElement} form\n * @param [options] optional options\n */\n constructor(form, options) {\n super();\n\n if (!(form instanceof HTMLFormElement)) {\n throw 'argument {0} form needs to be an form element';\n }\n\n /**\n * The Form\n * @type {HTMLElement}\n */\n this.form = form;\n\n /**\n * @type {Tooltip}\n */\n this.tooltips = null;\n\n /**\n * @type {Promise}\n */\n this.currentValidationFuture = new Promise(() => {\n });\n\n /**\n * Default options\n * @type {Object}\n */\n this.options = {\n // if true creates tooltips above element, uses FlexCss Tooltips\n createTooltips: true,\n // if true appends error message after input element\n appendError: false,\n // type of ajax submit\n ajaxSubmitType: 'POST',\n // json content type if ajax method is set to json\n ajaxJsonContentType: 'application/json; charset=utf-8',\n // allow inline validation\n inlineValidation: true,\n // validate in realtime (on `input` event)\n realtime: true,\n // timeout when realtime event should be captured\n realtimeTimeout: 250,\n // formatting method for an error\n formatErrorTooltip: (error) => {\n return ' ' + error;\n },\n // the class that will be put on the element to mark it failed validation\n inputErrorClass: 'invalid',\n // the container class for error messages below an element\n containerErrorClass: 'form-error',\n // additional options for fetch\n fetchOptions: {\n credentials: 'include'\n },\n // the container for tooltips\n tooltipContainer: form,\n tooltipOptions: {\n containerClass: 'error-tooltip'\n },\n // if you have a fixed header, either set a number or function here\n scrollToElementDiff: 0\n };\n\n // overwrite default options\n Object.assign(this.options, options);\n\n // apply settings from attributes\n Util.applyOptionsFromElement(form, this.options);\n\n // set form class as widget\n // Forms are very different to classical widgets,\n // we will not use our base widget class for this but just self\n form.hfWidgetInstance = this;\n\n /**\n * A List of Validators\n * @type {Object}\n * @private\n */\n this._validators = Form.globalValidators;\n\n /**\n * @type {Function}\n * @private\n */\n this._remoteValidationFunction = null;\n\n this.initFormValidation();\n }\n\n destroy() {\n super.destroy();\n if (this.tooltips) {\n this.tooltips.destroy();\n }\n }\n\n /**\n * Submits this form, either via ajax or just classical (default)\n * @param {HTMLFormElement} thisForm\n * @param {Event} e\n * @private\n * @returns {Promise|boolean} returns false if submit is cancled\n */\n _submitFunction(thisForm, e) {\n var shouldUseAjax = thisForm.getAttribute(REMOTE), ajaxPostUrl =\n thisForm.getAttribute(REMOTE_ACTION) ||\n thisForm.getAttribute('action') || window.location.href,\n useJson = CONST_USE_JSON === shouldUseAjax, self = this;\n\n var ev = Event.dispatch(thisForm, EVENT_FORM_SUBMIT).withOriginal(e).fire();\n\n // abort execution is event was prevented\n if (ev.defaultPrevented) {\n self._formStopLoading();\n return false;\n }\n\n if (shouldUseAjax === null) {\n // submit\n return thisForm.submit();\n }\n // prevent form from submit normally\n e.preventDefault();\n\n // add information that this is an XMLHttpRequest request (used by some frameworks)\n let defaultHeaders = {\n 'X-Requested-With': 'XMLHttpRequest'\n };\n\n // setup default headers\n if (useJson) {\n Object.assign(defaultHeaders, {\n 'Content-Type': this.options.ajaxJsonContentType\n });\n }\n let defaultOptions = Object.assign(this.options.fetchOptions, {\n headers: defaultHeaders,\n method: this.options.ajaxSubmitType\n });\n\n // support either JSON request payload or normal payload submission\n var serverCall = useJson ? fetch(ajaxPostUrl, Object.assign(defaultOptions, {\n body: JSON.stringify(this.serialize())\n })) : fetch(ajaxPostUrl, Object.assign(defaultOptions, {\n body: new FormData(thisForm)\n }));\n\n Event.dispatch(thisForm, EVENT_FORM_AFTER_AJAX_SUBMIT).withOriginal(e).fire();\n\n return serverCall.then((r) => {\n (self._remoteValidationFunction || Form.globalRemoteValidationFunction).apply(self, [r]);\n\n Event.dispatch(thisForm, EVENT_FORM_AJAX_COMPLETED).withOriginal(e).withDetail({ response: r }).fire();\n // always remove error class\n self._formStopLoading();\n });\n }\n\n /**\n * Serializes a form to a json object\n * @returns {Object}\n */\n serialize() {\n var selectors = [\n 'input[name]:not([type=\"radio\"]):enabled',\n 'input[type=\"radio\"][name]:checked',\n 'select[name]:enabled',\n 'textarea[name]:enabled'\n ], inputs = this.form.querySelectorAll(selectors.join(',')), result = {};\n\n Array.prototype.forEach.call(inputs, function (input) {\n var exists = result[input.name], value = input.value;\n if (exists instanceof Array) {\n exists.push(value);\n } else if (exists) {\n result[input.name] = [result[input.name], value];\n } else {\n result[input.name] = value;\n }\n });\n\n return result;\n }\n\n /**\n * Handles the chain of validation on given fields\n *\n * @param {HTMLElement|Array|NodeList} field\n * @param [focus] optional focus first error\n * @returns {Promise}\n */\n handleValidation(field, focus) {\n var fields = (field instanceof Array || field instanceof NodeList) ? field : [field];\n return this._handleValidation(fields, focus, true).then(((r) => {\n if (!r.foundAnyError) {\n // remove tooltips\n if (this.tooltips) {\n this.tooltips.removeTooltip();\n }\n }\n return r;\n }).bind(this));\n }\n\n /**\n * Handles errors on given node list\n * @param {NodeList} toValidateFields\n * @param {boolean} focus\n * @param {boolean} scoped if true, will only validate the fields `invalidFields`\n * @returns {Promise}\n * @private\n */\n _handleValidation(toValidateFields, focus, scoped) {\n var self = this;\n var arr = Form._createArrayFromInvalidFieldList(toValidateFields), isLocalInvalid = arr.length > 0;\n // focus must appear in the same frame for iOS devices\n if (isLocalInvalid && focus) {\n self._focusElement(arr[0]);\n }\n var validation = scoped ? this._customValidationsForElements(toValidateFields) :\n self.validateCustomFields();\n return validation.then((r) => {\n if (isLocalInvalid) {\n // combine browser and custom validators\n r.foundAnyError = true;\n }\n // get a unique field list of all fields that need to be checked and rendered\n // it's possible that we have duplicates in non scoped mode\n let thisToValidateFields = scoped ? toValidateFields :\n Array.from(arr).concat(r.checkedFields);\n r.checkedFields = thisToValidateFields;\n let foundInvalidFields = self.prepareErrors(thisToValidateFields, false),\n firstInvalidField = foundInvalidFields[0];\n if (firstInvalidField) {\n if (focus) {\n self._focusElement(firstInvalidField);\n // if element could not be focused:\n if (document.activeElement !== firstInvalidField) {\n self._handleTooltipHideClickAfterChange();\n }\n } else {\n self._handleTooltipHideClickAfterChange();\n }\n self.showAndOrCreateTooltip(firstInvalidField);\n }\n return r;\n });\n }\n\n /**\n * @param {HTMLElement} field\n * @param {ValidityState} validity\n * @returns {*}\n * @private\n */\n\n _setupErrorMessages(field, validity) {\n return Form.globalErrorMessageHandler ?\n Form.globalErrorMessageHandler.apply(this, [field, validity]) : false;\n }\n\n /**\n * Handles class labels for elements\n * @param {Object} fields\n * @private\n */\n _handleLabels(fields) {\n Object.keys(fields).forEach(function (id) {\n let labels = this.getForm().querySelectorAll('[for=\"' + id + '\"]'), invalid = fields[id];\n if (labels.length) {\n for (let labelsIndex = 0; labelsIndex < labels.length; labelsIndex++) {\n let labelEl = labels[labelsIndex];\n // we can't use toggle attribute, not supported in IE\n if (invalid) {\n this._markElementInvalid(labelEl);\n } else {\n this._markElementValid(labelEl);\n }\n }\n }\n }.bind(this));\n }\n\n /**\n * @param el\n * @private\n */\n _markElementInvalid(el) {\n el.setAttribute(DATA_ELEMENT_INVALID, \"true\");\n el.classList.add(this.options.inputErrorClass);\n }\n\n /**\n * @param el\n * @private\n */\n _markElementValid(el) {\n el.removeAttribute(DATA_ELEMENT_INVALID);\n el.classList.remove(this.options.inputErrorClass);\n }\n\n /**\n * A List of invalid elements (:invalid)\n * @returns {Array}\n * @private\n */\n _getInvalidElements() {\n return Array.prototype.filter.call(this.getForm().querySelectorAll(\":invalid\"), function (r) {\n return !(r instanceof HTMLFieldSetElement);\n });\n }\n\n /**\n * @param {HTMLElement} thisParent\n * @private\n */\n _removeElementErrors(thisParent) {\n let errors = thisParent.querySelectorAll('.' + this.options.containerErrorClass), inputsWithErrorClasses =\n thisParent.querySelectorAll(`[${DATA_ELEMENT_INVALID}]`);\n for (let elementErrorIndex = 0; elementErrorIndex < errors.length; elementErrorIndex++) {\n errors[elementErrorIndex].parentNode.removeChild(errors[elementErrorIndex]);\n }\n for (let inputErrorIndex = 0; inputErrorIndex < inputsWithErrorClasses.length; inputErrorIndex++) {\n let el = inputsWithErrorClasses[inputErrorIndex];\n this._markElementValid(el);\n }\n }\n\n\n /**\n * Registers a custom validator\n * @param {String} name\n * @param {Function} validator a validation function should always return either a Future(true) or Future(false)\n * even when the field has been invalidated with `setCustomValidity`, because of different browser `bugs`\n * we can't rely on that\n * @returns {Form}\n */\n registerValidator(name, validator) {\n this._validators[name] = validator;\n return this;\n }\n\n /**\n * Runs async validation\n * @param {String} validationRef\n * @param {HTMLElement} field\n * @returns {Promise}\n * @private\n */\n _runValidation(validationRef, field) {\n if (!this._validators[validationRef]) {\n throw 'Could not found validator: ' + validationRef;\n }\n var cl = field.classList, future = this._validators[validationRef].apply(this, [field, this.form]);\n cl.add(LOADING_CLASS);\n future.then(() => {\n cl.remove(LOADING_CLASS);\n });\n return future;\n }\n\n\n /**\n * Run custom validations for elements, validations are done async do support XHR Requests or other stuff\n *\n * @param {Array|NodeList} fields\n * @returns {Promise} contains either true if validations passed or false if something went wrong\n * @private\n */\n _customValidationsForElements(fields) {\n var futures = [], fieldsLength = fields.length, checkedFields = [];\n for (var iVal = 0; iVal < fieldsLength; iVal++) {\n var field = fields[iVal], validationRef = field.getAttribute(ATTR_VALIDATOR), validity = field.validity;\n if (this._validators[validationRef]) {\n // use local validation first and then continue with custom validations\n if (Form._shouldNotValidateField(field) || (validity && !validity.customError && !validity.valid)) {\n continue;\n }\n checkedFields.push(field);\n futures.push(this._runValidation(validationRef, field));\n } else {\n if (validationRef) {\n console.warn('data-validate was set but no validator was found');\n }\n }\n }\n return Promise.all(futures).then(function (allFutures) {\n let l = allFutures.length;\n let result = {\n checkedFields: checkedFields,\n foundAnyError: false\n };\n for (var fI = 0; fI < l; fI++) {\n if (!allFutures[fI]) {\n result.foundAnyError = true;\n break;\n }\n }\n return result;\n });\n }\n\n /**\n * Remove all errors for this form\n * @returns {Form}\n */\n removeErrors() {\n this._removeElementErrors(this.form);\n if (this.tooltips) {\n this.tooltips.removeTooltip();\n }\n return this;\n }\n\n /**\n * Will handle errors for given fields\n * @param {Array|NodeList} fields\n * @param {Boolean} removeAllErrors\n */\n prepareErrors(fields, removeAllErrors) {\n if (removeAllErrors) {\n this.removeErrors();\n }\n let labelGroups = {}, invalidFields = [];\n\n function handleAdditionalLabels(isInvalid, thisLabelGroup, field) {\n let additionalLabels = field.getAttribute(ATTR_DATA_CUSTOM_LABEL) ||\n field.id, group = thisLabelGroup[additionalLabels];\n if (additionalLabels) {\n // check additionally if field is currently marked as invalid\n // so the label is not marked as error if no field is marked as one\n group = group ? group : isInvalid;\n thisLabelGroup[additionalLabels] = group;\n }\n }\n\n // We save all validations in an extra property because we need to reset the validity due some\n // implementation errors in other browsers then chrome\n for (let i = 0; i < fields.length; i++) {\n let field = fields[i], errorTarget = Form._findErrorTarget(field), parent = errorTarget.parentNode,\n validity = field.validity, isInvalid = validity && !validity.valid;\n if (Form._shouldNotValidateField(field)) {\n continue;\n }\n field.flexFormsSavedValidity = JSON.parse(JSON.stringify(validity));\n handleAdditionalLabels(isInvalid, labelGroups, field);\n if (isInvalid) {\n if (!removeAllErrors) {\n // Remove current errors:\n this._removeElementErrors(parent);\n }\n // setup custom error messages:\n this._setupErrorMessages(field, validity);\n let msg = field.validationMessage;\n\n // mark fields as invalid\n this._markElementInvalid(errorTarget);\n this._markElementInvalid(field);\n\n if (this.options.appendError) {\n parent.insertAdjacentHTML(\"beforeend\",\n `
${msg}
`);\n }\n invalidFields.push(field);\n field.flexFormsSavedValidationMessage = msg;\n } else {\n // restore invalid fields\n this._markElementValid(errorTarget);\n this._markElementValid(field);\n\n // cleanup\n delete field.flexFormsSavedValidationMessage;\n\n // remove error markup\n this._removeElementErrors(parent);\n }\n // We have to reset the custom validity here to allow native validations work again\n field.setCustomValidity('');\n }\n // if validates a single field we need to check the linked fields to a label:\n if (fields.length === 1) {\n let field = fields[0];\n let id = field.getAttribute(ATTR_DATA_CUSTOM_LABEL) || field.id;\n if (id) {\n let linkedFields = Array.from(\n this.getForm().querySelectorAll(`[${ATTR_DATA_CUSTOM_LABEL}=\"${id}\"], #${id}`));\n linkedFields.forEach(function (thisField) {\n let validity = thisField.validity, isInvalid = validity && !validity.valid &&\n this._isElementInvalidElement(thisField);\n handleAdditionalLabels(isInvalid, labelGroups, thisField);\n }.bind(this));\n }\n }\n this._handleLabels(labelGroups);\n return invalidFields;\n }\n\n /**\n * Validates all custom fields\n * @returns {Promise}\n */\n validateCustomFields() {\n return this._customValidationsForElements(\n this.form.querySelectorAll(\"[data-validate]\"));\n }\n\n /**\n * Tests if a field should be validated\n * @param {HTMLElement} field\n * @returns {boolean}\n * @private\n */\n static _shouldNotValidateField(field) {\n var target = Form._findErrorTarget(field);\n return target instanceof HTMLFieldSetElement || field.validity === undefined ||\n (target.hasAttribute(ATTR_VALIDATE_VISIBILITY) && !Util.isVisible(target));\n }\n\n /**\n * Creates an array from a node list with invalid items\n * This Method expicitly checks if field should not be validated so it can be used to foucs a field\n * @param list\n * @returns {Array}\n * @private\n */\n static _createArrayFromInvalidFieldList(list) {\n var arr = [];\n for (var i = 0; i < list.length; ++i) {\n var n = list[i];\n if (n.validity && !n.validity.valid) {\n if (!Form._shouldNotValidateField(n)) {\n arr.push(n);\n }\n }\n }\n return arr;\n }\n\n\n /**\n * This form\n * @returns {HTMLElement}\n */\n getForm() {\n return this.form;\n }\n\n /**\n * Registers a function that handles remote validation\n * @param {Function} func\n * @returns {Form}\n */\n registerRemoteValidation(func) {\n this._remoteValidationFunction = func;\n return this;\n }\n\n\n /**\n * Formats the error content for the tooltip\n * @param {String} error\n * @returns {String}\n * @private\n */\n _formatErrorTooltip(error) {\n return this.options.formatErrorTooltip.apply(this, [error]);\n }\n\n /**\n * Tries to find a custom error target on given target\n * @param target\n * @returns {HTMLElement}\n * @private\n */\n static _findErrorTarget(target) {\n var el = target.getAttribute(ATTR_ERROR_TARGET_ID) || target,\n foundTarget = el instanceof HTMLElement ? el : global.document.getElementById(el);\n if (!foundTarget) {\n throw 'Given error target did not exsits:' + target;\n }\n return foundTarget;\n }\n\n /**\n * Creates a tooltip at given element, will only create a new instance if not created\n * @param {HTMLElement} target\n * @param {Boolean} [remove]\n */\n showAndOrCreateTooltip(target, remove) {\n var self = this;\n if (!this.tooltips && this.options.createTooltips) {\n this.tooltips = new Tooltip(this.options.tooltipContainer, this.options.tooltipOptions);\n }\n if (!this.options.createTooltips) {\n return false;\n }\n\n if (!target.flexFormsSavedValidity) {\n return false;\n }\n var errorTarget = Form._findErrorTarget(target);\n if (!target.flexFormsSavedValidity.valid && self._isElementInvalidElement(errorTarget)) {\n self.tooltips.createTooltip(errorTarget,\n self._formatErrorTooltip(target.flexFormsSavedValidationMessage), false);\n return true;\n } else {\n if (remove) {\n self.tooltips.removeTooltip();\n }\n }\n return false;\n }\n\n /**\n * Checks if element is marked as invalid\n * @param {HTMLElement} el\n * @returns {boolean}\n * @private\n */\n _isElementInvalidElement(el) {\n return el.hasAttribute(DATA_ELEMENT_INVALID);\n }\n\n /**\n * Handles invalid event of a form\n * @param {Event} e\n * @returns {Promise|boolean}\n * @private\n */\n _checkIsInvalid(e) {\n e.preventDefault();\n var invalidFields = this.getForm().querySelectorAll(\":invalid\");\n return this._handleValidation(invalidFields, true, false);\n }\n\n /**\n * Will query dependent fields (by selector) that should be validated with given field\n * @param field\n * @returns {NodeList|[]}\n * @private\n */\n _getDependentFields(field) {\n let fieldSelector = field.getAttribute(ATTR_DEPENDS), base = [field];\n if (fieldSelector) {\n base.push.apply(base, Array.prototype.slice.apply(\n this.getForm().querySelectorAll(fieldSelector)));\n }\n return base;\n }\n\n /**\n * @private\n * @param {HTMLElement} [target]\n */\n _handleTooltipInline(target) {\n if (this.tooltips) {\n this.tooltips.removeTooltip(target);\n }\n }\n\n /**\n * Initializes validation for a given form, registers event handlers\n */\n initFormValidation() {\n // Suppress the default bubbles\n var form = this.getForm(),\n self = this,\n invalidEvent = 'invalid';\n\n /**\n * Validates if is valid realtime element\n * @param {HTMLElement} target\n * @returns {boolean}\n * @private\n */\n function _checkIsValidRealtimeElement(target) {\n return !target.hasAttribute(ATTR_DISABLE_REALTIME) && !target.hasAttribute(ATTR_DISABLE_INLINE);\n }\n\n form.addEventListener(invalidEvent, function (e) {\n e.preventDefault();\n }, true);\n\n Util.addEventOnce(invalidEvent, form, function handleInvalid(e) {\n self._formLoading();\n var result = self._checkIsInvalid(e);\n if (result) {\n self.currentValidationFuture = new Promise((resolve) => {\n result.then(function (r) {\n setTimeout(function () {\n Util.addEventOnce(invalidEvent, form, handleInvalid, true);\n }, 0);\n resolve(r);\n self._formStopLoading();\n if (!r.foundAnyError) {\n self._formLoading();\n self._handleSubmit(e);\n }\n });\n });\n }\n }, true);\n\n this.addEventListener(form, 'reset', () => {\n this.removeErrors();\n });\n\n // Timeout for keys:\n var TIMEOUT_KEYDOWN, KEYDOWN_RUNNING = false;\n\n // resets keydown events\n function clearKeyDownTimeout() {\n KEYDOWN_RUNNING = false;\n clearTimeout(TIMEOUT_KEYDOWN);\n }\n\n // setup custom realtime event if given\n if (self.options.realtime) {\n this.addEventListener(form, CONST_REALTIME_EVENT, function (e) {\n if (self._formIsLoading()) {\n return;\n }\n var target = e.target;\n clearTimeout(TIMEOUT_KEYDOWN);\n if (KEYDOWN_RUNNING) {\n return;\n }\n TIMEOUT_KEYDOWN = setTimeout(() => {\n let isStillTarget = document.activeElement === e.target;\n if (!_checkIsValidRealtimeElement(target)) {\n return;\n }\n if (isStillTarget) {\n self._handleTooltipInline();\n }\n KEYDOWN_RUNNING = true;\n let dependentFields = self._getDependentFields(target);\n self._customValidationsForElements(dependentFields).then(function () {\n self.prepareErrors(dependentFields, false);\n if (isStillTarget) {\n self.showAndOrCreateTooltip(e.target);\n }\n // future must be resolved before another event can be started\n KEYDOWN_RUNNING = false;\n });\n }, self.options.realtimeTimeout);\n }, true);\n }\n\n /**\n * Validates if target is a valid input field to check blur and focus events\n *\n * @param {HTMLElement} target\n * @returns {boolean}\n * @private\n */\n function _checkIsValidBlurFocusElement(target) {\n let attr = target.getAttribute(\"type\");\n return (attr !== \"radio\" && attr !== \"checkbox\" && attr !== \"submit\");\n }\n\n /**\n * Validates if is valid inline-check element\n * @param {HTMLElement} target\n * @returns {boolean}\n * @private\n */\n function _checkIsValidInlineCheckElement(target) {\n return !target.hasAttribute(ATTR_DISABLE_INLINE);\n }\n\n this.addEventListener(form, 'blur', function (e) {\n // do not hide tooltip after change event\n if (!e.target.flexcssKeepTooltips) {\n self._handleTooltipInline(e.target);\n }\n delete e.target.flexcssKeepTooltips;\n }, true);\n\n // handle focus on input elements\n // will show an error if field is invalid\n this.addEventListener(form, \"focus\", function (e) {\n if (self._formIsLoading()) {\n return;\n }\n // do not track errors for checkbox and radios on focus:\n if (!_checkIsValidBlurFocusElement(e.target)) {\n return;\n }\n // we need to delay this a little, because Firefox and Safari do not show a tooltip after it\n // just have been hidden (on blur). Maybe fix this with a queue later\n setTimeout(function () {\n self.showAndOrCreateTooltip(e.target);\n }, FOCUS_TOOLTIP_DELAY);\n }, true);\n\n if (self.options.inlineValidation) {\n // Handle change for checkbox, radios and selects\n this.addEventListener(form, \"change\", function (e) {\n const target = e.target;\n if (self._formIsLoading() || !_checkIsValidInlineCheckElement(target)) {\n return;\n }\n clearKeyDownTimeout();\n const name = target.getAttribute('name');\n let inputs = name ? form.querySelectorAll('[name=\"' + name + '\"]') : [target];\n // we only support dependent fields for a single widgets right now\n if (inputs.length === 1) {\n inputs = self._getDependentFields(target);\n }\n self._customValidationsForElements(inputs).then(function () {\n self.prepareErrors(inputs, false);\n target.flexcssKeepTooltips = self.showAndOrCreateTooltip(target, true);\n if (target.flexcssKeepTooltips) {\n self._handleTooltipHideClickAfterChange();\n }\n });\n });\n }\n\n // prevent default if form is invalid\n this.addEventListener(form, \"submit\", function listener(e) {\n self._submitListener(e, listener);\n });\n\n Event.dispatchAndFire(form, EVENT_FORM_READY);\n }\n\n /* Loading states, unfortunately we can't check if a promise is pending :/*/\n /* TODO: Maybe wrap promise to extend this functionality */\n\n _formLoading() {\n this.getForm().classList.add(LOADING_CLASS);\n }\n\n _formStopLoading() {\n this.getForm().classList.remove(LOADING_CLASS);\n }\n\n _formIsLoading() {\n return this.getForm().classList.contains(LOADING_CLASS);\n }\n\n // this defines the logic after a change event when a tooltip is shown\n // because we call this method inside the change event, the click would be immeditally executed with the change\n // event when not using setTimeout(). There might be another solution for this...\n _handleTooltipHideClickAfterChange() {\n const self = this;\n if (this.options.createTooltips) {\n setTimeout(function () {\n Util.addEventOnce(Settings.getTabEvent(), global.document.body, function (t) {\n if (!self._isElementInvalidElement(t.target)) {\n self._handleTooltipInline();\n }\n });\n }, CLICK_TOOLTIP_DELAY);\n }\n }\n\n _focusElement(el) {\n el.focus();\n Util.scrollToElement(el, this.options.scrollToElementDiff);\n }\n\n /**\n * Listener that is executed on form submit\n * @param e\n * @param submitListener\n * @returns {boolean}\n * @private\n */\n _submitListener(e, submitListener) {\n\n const form = this.getForm(),\n self = this,\n submitEvent = 'submit';\n\n if (this._formIsLoading()) {\n e.preventDefault();\n return false;\n }\n this._formLoading();\n form.removeEventListener(submitEvent, submitListener);\n this.removeErrors();\n e.preventDefault();\n // reset:\n if (form.checkValidity()) {\n form.addEventListener(submitEvent, submitListener);\n // It's possible that the form is valid but the custom validations need to be checked again:\n self.currentValidationFuture = new Promise((resolve) => {\n var validation = self.validateCustomFields();\n validation.then(function (r) {\n // because custom validators may mark multiple fields as invalid, we get all of them in the form\n var fields = self._getInvalidElements(),\n errors = self.prepareErrors(fields, false), firstError = errors[0];\n if (firstError) {\n self._focusElement(firstError);\n self.showAndOrCreateTooltip(firstError, true);\n }\n resolve(r);\n });\n });\n self.currentValidationFuture.then(function (r) {\n if (!r.foundAnyError) {\n // Handle submitting the form to server:\n self._handleSubmit(e);\n } else {\n self._formStopLoading();\n }\n });\n } else {\n self._formStopLoading();\n form.addEventListener(submitEvent, submitListener);\n }\n }\n\n\n /**\n * Handles submitting, optionally allows to stop submitting\n * @param e\n * @private\n */\n _handleSubmit(e) {\n this._submitFunction(this.form, e);\n }\n\n\n /**\n * Registers a global event Handler\n * @param errorFunc\n */\n static registerErrorMessageHandler(errorFunc) {\n Form.globalErrorMessageHandler = errorFunc;\n }\n\n /**\n * Initialize forms for a specific selector\n * @param {String} selector\n * @param {Object} [options]\n * @return {array.}\n */\n static init(selector, options) {\n var forms = selector instanceof HTMLElement ? selector.querySelectorAll('form') :\n document.querySelectorAll(selector), instances = [];\n for (var i = 0; i < forms.length; i++) {\n instances.push(new Form(forms[i], options));\n }\n return instances;\n }\n\n\n /**\n * Registers a global validator that is usable on all form instances\n * @param {String} name\n * @param {Function} validator\n * @returns {Function}\n */\n static registerValidator(name, validator) {\n Form.globalValidators[name] = validator;\n return Form;\n }\n\n /**\n * Registers a global function that is called when a form should validate the response of a server\n * @param {Function} func\n * @returns {Form}\n */\n static registerGlobalRemoteValidationFunction(func) {\n Form.globalRemoteValidationFunction = func;\n return Form;\n }\n}\n\n\n/**\n * Global validators\n * @type {Array}\n */\nForm.globalValidators = [];\n\n/**\n * Global Remote validation function\n */\nForm.globalRemoteValidationFunction = function () {\n};\n\n/**\n * Handles custom error messages extracts custom message by default\n */\nForm.globalErrorMessageHandler = (field, validity) => {\n if (!validity.customError) {\n let customMsg = field.getAttribute(ATTR_DATA_CUSTOM_MESSAGE);\n if (customMsg) {\n field.setCustomValidity(customMsg);\n }\n }\n};\n\nexport default Form;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Form.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.LightBox\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n'use strict';\n\n/* global Image, TouchEvent*/\n\nimport Modal, { EVENT_MODAL_CLOSED } from './Modal';\nimport Settings from './util/Settings';\nimport Widget from './Widget';\n\nconst ATTR_MAX_WIDTH = 'data-original-width';\nconst ATTR_MAX_HEIGHT = 'data-original-height';\nconst ATTR_SRC = 'data-src';\n\nconst CLS_HAS_PREV = 'has-prev';\nconst CLS_HAS_NEXT = 'has-next';\nconst CLS_LOADING = 'loading';\n\nconst ATTR_NO_THUMBNAIL = 'data-no-thumbnail';\nconst ATTR_DATA_HREF = 'data-href';\nconst ATTR_HREF = 'href';\n\nconst KEY_NEXT = 39;\nconst KEY_PREV = 37;\nconst ATTR_CLOSE = 'data-close-modal';\n/**\n * A Simple LightBox\n */\nclass LightBox {\n\n /**\n * Creates a new Lightbox\n * @param DelegateContainer\n * @param AttributeSelector\n * @param ModalAppend\n * @param [options]\n */\n constructor(DelegateContainer, AttributeSelector, ModalAppend, options) {\n const thisDelegateContainer = DelegateContainer instanceof HTMLElement ? DelegateContainer :\n document.getElementById(DelegateContainer);\n\n this._modalAppend = ModalAppend || DelegateContainer;\n /**\n * @type {Function}\n */\n this._resizeEvent = null;\n /**\n * @type {Function}\n */\n this._keyboardNextEvent = null;\n /**\n * @type {Promise}\n */\n this._future = null;\n /**\n * @type {Promise}\n */\n this._nextFuture = this._future;\n /**\n * @type {HTMLElement}\n */\n this._imageContainer = null;\n /**\n * @type {HTMLElement}\n */\n this._modalContainerDiv = null;\n /**\n * @type {HTMLElement}\n */\n this._contentContainer = null;\n /**\n * @type {HTMLElement}\n */\n this._closerContainerDiv = null;\n /**\n * @type {HTMLElement}\n */\n this._delegateContainer = thisDelegateContainer;\n /**\n * @type {HTMLElement}\n */\n this._attributeSelector = AttributeSelector;\n /**\n * @type {Widget}\n */\n this._widget = null;\n /**\n * @type {boolean}\n */\n this._isOpen = false;\n /**\n * @type {HTMLElement}\n */\n this.target = null;\n /**\n * @type {HTMLElement}\n */\n this.img = null;\n /**\n * @type {boolean}\n */\n this._isLoading = false;\n\n /**\n * Default options\n */\n this.options = {\n // set if prev and next should be available\n registerPrevNextEvents: true,\n // set if modal should be closed after last image\n closeOnLast: true,\n // called when next image is requested (either by keyboard or click), return false to abort\n onNext: () => {\n return true;\n },\n onClose: () => {\n },\n getNext: null,\n getPrev: null,\n // called when underlying target changed\n onSwitchImage: () => {\n }\n };\n\n Object.assign(this.options, options);\n }\n\n /**\n * @param {HTMLElement} node\n * @returns {HTMLElement|null}\n */\n findImmediateNextTarget(node) {\n if (node && node.children[0].hasAttribute(this._attributeSelector)) {\n return node.children[0];\n }\n return null;\n }\n\n /**\n * Will fetch the next element of a lightBox\n * @param {HTMLElement} target\n * @returns {null|HTMLElement}\n */\n getNext(target) {\n if (this.options.getNext) {\n return this.options.getNext.apply(this, [target]);\n }\n return this.findImmediateNextTarget(target.parentNode.nextElementSibling);\n }\n\n /**\n * Will fetch the previous element of a lightBox\n * @param {HTMLElement} target\n * @returns {null|HTMLElement}\n */\n getPrev(target) {\n if (this.options.getPrev) {\n return this.options.getPrev.apply(this, [target]);\n }\n return this.findImmediateNextTarget(target.parentNode.previousElementSibling);\n }\n\n /**\n * Registers events for delegate container\n */\n registerEvents(onOpen) {\n this._delegateContainer.addEventListener(Settings.getTabEvent(), (e) => {\n let target = e.target;\n const parent = target.parentNode;\n let validTarget = target.hasAttribute(this._attributeSelector);\n const parentIsValid = parent && parent.hasAttribute(this._attributeSelector);\n\n if (!validTarget && parentIsValid) {\n validTarget = true;\n target = parent;\n }\n if (validTarget) {\n e.preventDefault();\n this.open(target).then((r) => {\n if (onOpen) {\n onOpen.apply(this, [r, target]);\n }\n });\n }\n });\n }\n\n /**\n * @returns {HTMLElement}\n */\n getContentContainer() {\n return this._contentContainer;\n }\n\n /**\n * Setup max-width and max-height\n * @param {HTMLElement} target\n * @param {HTMLElement} img\n * @param {HTMLElement} loadedImage\n * @private\n */\n static _setupMaxWidthHeight(target, img, loadedImage) {\n const nextMaxWidth = target.getAttribute(ATTR_MAX_WIDTH);\n const nextMaxHeight = target.getAttribute(ATTR_MAX_HEIGHT);\n if (nextMaxWidth && nextMaxHeight) {\n img.style.maxWidth = nextMaxWidth + \"px\";\n img.style.maxHeight = nextMaxHeight + \"px\";\n } else {\n img.style.maxWidth = loadedImage.width + \"px\";\n img.style.maxHeight = loadedImage.height + \"px\";\n }\n }\n\n /**\n * Switches to the next image\n * @param {boolean} direction\n */\n switchImageByDirection(direction) {\n const next = direction ? this.getPrev(this.target) : this.getNext(this.target);\n if (this.options.onNext.apply(this, [next])) {\n return this.switchImage(next);\n }\n return new Promise((_, reject) => reject(next));\n }\n\n /**\n * Checks if lightbox is currently loading\n * @returns {boolean}\n */\n isLoading() {\n return this._isLoading;\n }\n\n /**\n * Checks if modal should be closed\n * @private\n */\n _runOptionalClose() {\n if (this.options.closeOnLast) {\n this.modal.close();\n }\n }\n\n _setupPrevNextStates() {\n const target = this.target;\n const hasPrev = this.getPrev(target);\n const hasNext = this.getNext(target);\n const hasPrevClass = CLS_HAS_PREV;\n const hasNextClass = CLS_HAS_NEXT;\n // because IE does not support the second toggle parameter, we need to do this manually\n if (hasPrev) {\n this._imageContainer.classList.add(hasPrevClass);\n } else {\n this._imageContainer.classList.remove(hasPrevClass);\n }\n if (hasNext) {\n this._imageContainer.classList.add(hasNextClass);\n } else {\n this._imageContainer.classList.remove(hasNextClass);\n }\n }\n\n /**\n * @param img\n * @private\n */\n _calculateContainer(img) {\n if (Settings.isIE()) {\n setTimeout(() => {\n this._imageContainer.style.height = img.offsetHeight + 'px';\n }, 0);\n }\n }\n\n /**\n * Switch to a specific image\n * @param next\n * @returns {*}\n */\n switchImage(next) {\n const self = this;\n const img = this.img;\n this._isLoading = true;\n self._nextFuture = new Promise((resolve, reject) => {\n // notify observers about image switching\n self.options.onSwitchImage.apply(self, [self._nextFuture]);\n if (next) {\n const nextThumb = next.hasAttribute(ATTR_NO_THUMBNAIL) ? next : (next.children[0] || next);\n const nextHighRes = next.getAttribute(ATTR_DATA_HREF) ||\n next.getAttribute(ATTR_HREF);\n const nextSource = nextThumb.getAttribute(ATTR_SRC) || nextThumb.src || nextHighRes;\n const nextImgObject = new Image();\n\n if (!nextSource) {\n reject(next);\n return;\n }\n // set new target to next element\n this.target = next;\n nextImgObject.src = nextSource;\n self._imageContainer.classList.add(CLS_LOADING);\n nextImgObject.addEventListener('load', () => {\n img.src = nextSource;\n self._imageContainer.style.backgroundImage = 'url(' + nextSource + ')';\n LightBox._setupMaxWidthHeight(next, img, nextImgObject);\n self._calculateContainer(img);\n self.highRes(nextThumb, nextHighRes);\n self._setupPrevNextStates();\n self._imageContainer.classList.remove(CLS_LOADING);\n this._isLoading = false;\n resolve(nextSource, this.target);\n });\n } else {\n reject(this);\n }\n });\n return self._nextFuture;\n }\n\n\n /**\n * Setup High-Resolution picture\n * @param {HTMLElement} thisThumbnail\n * @param {String} thisImgHighResolution\n */\n highRes(thisThumbnail, thisImgHighResolution) {\n if (thisImgHighResolution && thisThumbnail.src !== thisImgHighResolution) {\n const highImageObj = new Image();\n highImageObj.src = thisImgHighResolution;\n highImageObj.addEventListener('load', () => {\n // if current image is still available\n if (this._getSrc(thisThumbnail) === this.img.src) {\n this.img.src = thisImgHighResolution;\n this._imageContainer.style.backgroundImage = 'url(' + thisImgHighResolution + ')';\n }\n });\n }\n }\n\n /**\n * Extracts the source of an image\n * @param target\n * @returns {String|null}\n * @private\n */\n _getSrc(target) {\n return target.getAttribute(ATTR_SRC) || target.src;\n }\n\n /**\n * Will show a lightBox on given target\n * @param {HTMLElement} target\n * @returns {$.Deferred|*}\n */\n open(target) {\n const self = this;\n\n if (!target) {\n return false;\n }\n\n this.target = target;\n\n // if lightBox is open, we just switch to the new target image\n if (this._isOpen && target) {\n return this.switchImage(target).then(() => {\n return this;\n });\n }\n\n this._isOpen = true;\n\n /**\n * Setup Widget for modal\n * @type {Widget}\n */\n this._widget = new Widget().setAsync(() => {\n // thumbnail is either target itself or expected to be first childNode\n const thumbnail = target.hasAttribute(ATTR_NO_THUMBNAIL) ? target : (target.children[0] || target);\n\n const imgHighResolution = target.getAttribute(ATTR_DATA_HREF) || target.getAttribute(ATTR_HREF);\n const imgSrc = this._getSrc(thumbnail) || imgHighResolution;\n\n const imageObj = new Image();\n imageObj.src = imgSrc;\n this._imageContainer = document.createElement('div');\n this._modalContainerDiv = document.createElement('div');\n this._closerContainerDiv = document.createElement('i');\n this._contentContainer = document.createElement('div');\n\n this._closerContainerDiv.className = 'modal-close modal-close-lightbox icon-cancel-1';\n this._closerContainerDiv.setAttribute(ATTR_CLOSE, ATTR_CLOSE);\n\n this._modalContainerDiv.className = 'modal image-modal';\n this._modalContainerDiv.appendChild(this._imageContainer);\n this._modalContainerDiv.appendChild(this._contentContainer);\n this._modalContainerDiv.appendChild(this._closerContainerDiv);\n this._contentContainer.className = 'content-container';\n this._isLoading = true;\n this._future = new Promise((resolve) => {\n imageObj.addEventListener('load', () => {\n this._imageContainer.className = 'image-container';\n const img = document.createElement('img');\n // current image\n this.img = img;\n\n img.src = imgSrc;\n LightBox._setupMaxWidthHeight(target, img, imageObj);\n this._imageContainer.appendChild(img);\n this._imageContainer.style.backgroundImage = 'url(' + imgSrc + ')';\n\n resolve(self._modalContainerDiv);\n this._isLoading = false;\n\n if (Settings.isIE()) {\n self._resizeEvent = global.addEventListener('resize', () => {\n setTimeout(() => {\n self._imageContainer.style.height = img.offsetHeight + 'px';\n }, 0);\n });\n }\n\n if (self.options.registerPrevNextEvents) {\n self._setupPrevNextStates();\n // prev or next on touch/click\n self._imageContainer.addEventListener(Settings.getTabEvent(), (e) => {\n if (self.isLoading()) {\n return;\n }\n e.preventDefault();\n\n const ev = e;\n const pageX = global.TouchEvent && ev instanceof TouchEvent ?\n ev.changedTouches[0].pageX : ev.pageX;\n const rect = self._imageContainer.getBoundingClientRect();\n const imgX = rect.left;\n const wrapperWidth = rect.width;\n const posX = pageX - imgX;\n\n self.switchImageByDirection(wrapperWidth / 2 > posX).catch(() => {\n self._runOptionalClose();\n });\n });\n\n // register keyboard events\n self._keyboardNextEvent = (e) => {\n if (e.keyCode === KEY_NEXT || e.keyCode === KEY_PREV) {\n if (self.isLoading()) {\n return;\n }\n self.switchImageByDirection(e.keyCode === KEY_PREV).catch(() => {\n self._runOptionalClose();\n });\n }\n };\n global.addEventListener('keydown', self._keyboardNextEvent);\n } else {\n self._imageContainer.addEventListener(Settings.getTabEvent(), () => {\n self._runOptionalClose();\n });\n }\n\n self.highRes(thumbnail, imgHighResolution);\n });\n });\n\n this._future.then(() => {\n self._calculateContainer(this.img);\n });\n\n self._modalContainerDiv.addEventListener(EVENT_MODAL_CLOSED, () => {\n // cleanup:\n this._modalContainerDiv.parentNode.removeChild(this._modalContainerDiv);\n this.options.onClose.apply(self);\n this._isOpen = false;\n this.modal.destroy();\n // unbind events\n if (this._keyboardNextEvent) {\n global.removeEventListener('keydown', self._keyboardNextEvent);\n }\n if (this._resizeEvent) {\n global.removeEventListener('resize', self._resizeEvent);\n }\n });\n\n return this._future;\n });\n\n this._nextFuture = this._future;\n\n if (self._widget) {\n this.modal = new Modal(this._modalAppend);\n // make sure we close stack before\n return this.modal.close().fromWidget(self._widget).then(() => {\n return self._future.then(() => {\n return self;\n });\n });\n }\n return false;\n }\n\n}\n\nexport default LightBox;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/LightBox.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.OffCanvas\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\nimport Settings from './util/Settings';\nimport Util from './util/Util';\nimport Event from './util/Event';\nimport FixedWindow from './lib/FixedWindow';\n\n/**\n * @type {string}\n */\nconst ATTR_CLOSE_SIDEBAR = 'data-close-offcanvas';\n\n/**\n * @type {string}\n */\nconst ATTR_TARGET = 'data-offcanvas';\n/**\n * @type {string}\n */\nconst INIT_CLASS = 'init';\n/**\n * @type {string}\n */\nconst OPEN_CLASS = 'open';\n/**\n * @type {number}\n */\nconst HIDE_FACTOR = 3;\n\n/**\n * @type {string}\n */\nexport const EVENT_TOGGLE = 'flexcss.offcanvas.toggle';\n\n/**\n * A OffCanvas Implementation\n */\nclass OffCanvas {\n\n /**\n * Creates an off-canvas navigation\n * @param {HTMLElement|String} NavigationId\n * @param {HTMLElement|String} Darkener\n * @param {int} factor positive will expect right sidebar, positive left\n * @param {bool} [disableTouch] if true all touch events are disabled\n * @constructor\n */\n constructor(NavigationId, Darkener, factor, disableTouch) {\n const doc = global.document;\n let touchedX = 0;\n const navigationContainer = NavigationId instanceof HTMLElement ?\n NavigationId : doc.getElementById(NavigationId);\n const darkener = Darkener instanceof HTMLElement ? Darkener : doc.getElementById(Darkener);\n const DARKENER_CLASS_TOGGLE = `toggle-${darkener.id}` || 'darkener';\n const DARKENER_CLASS_INSTANT_TOGGLE = `${DARKENER_CLASS_TOGGLE}-open`;\n\n const shouldNotTouch = () => {\n return window.innerWidth >= Settings.get().smallBreakpoint;\n };\n\n if (!darkener || !navigationContainer) {\n throw new Error('Could not find needed elements (Darkener and/or NavigationId)');\n }\n\n this.darkener = darkener;\n this.darkenerClassToggle = DARKENER_CLASS_TOGGLE;\n this.darkenerClassToggleInstant = DARKENER_CLASS_INSTANT_TOGGLE;\n this.globalToggleClass = Settings.get().canvasToggledClass;\n\n this.navigationContainer = navigationContainer;\n this.navigationContainerId = navigationContainer.id;\n\n // create id if id does not exist\n if (!this.navigationContainerId) {\n this.navigationContainerId = Util.guid();\n navigationContainer.id = this.navigationContainerId;\n }\n\n if (!disableTouch) {\n navigationContainer.addEventListener('touchstart', (e) => {\n if (shouldNotTouch()) {\n return;\n }\n touchedX = e.touches[0].clientX;\n navigationContainer.mustHide = false;\n });\n navigationContainer.addEventListener('touchmove', (e) => {\n if (shouldNotTouch()) {\n return;\n }\n const { clientX } = e.touches[0];\n const target = navigationContainer;\n const style = target.style;\n const calcX = touchedX - clientX;\n const bounds = target.getBoundingClientRect();\n const compare = factor > 0 ? calcX <= 0 : calcX >= 0;\n if (compare) {\n style.transition = 'transform 0s ease';\n style.webkitTransition = '-webkit-transform 0s ease';\n target.mustHide = factor > 0 ? calcX * -1 >\n bounds.width / HIDE_FACTOR : calcX > bounds.width / HIDE_FACTOR;\n const transform = `translate3d(${calcX * -1}px,0,0)`;\n style.transform = transform;\n style.webkitTransform = transform;\n }\n });\n navigationContainer.addEventListener('touchend', () => {\n if (shouldNotTouch()) {\n return;\n }\n const target = navigationContainer;\n const style = target.style;\n if (target.mustHide) {\n const width = target.getBoundingClientRect().width * factor;\n style.transition = 'transform .2s ease';\n style.webkitTransition = '-webkit-transform .2s ease';\n const transform = `translate3d(${width}px,0,0)`;\n style.transform = transform;\n style.webkitTransform = transform;\n this._remove().then(() => {\n this.resetTransform(style);\n });\n this._removeInstant();\n } else {\n this.resetTransform(style);\n }\n });\n }\n }\n\n /**\n * @param {Object} s\n */\n resetTransform(s) {\n s.transform = '';\n s.transition = '';\n s.webkitTransform = '';\n s.webkitTransition = '';\n }\n\n /**\n * @param {Object} [event]\n * @private\n */\n _remove(event) {\n return new Promise((resolve) => {\n Util.addEventOnce(Settings.getTransitionEvent(), this.navigationContainer, () => {\n // add timeout because transition event fires a little to early\n setTimeout(() => {\n requestAnimationFrame(() => {\n const body = global.document.body;\n OffCanvas.currentOpen = null;\n body.classList.remove(this.darkenerClassToggle);\n global.document.documentElement.classList.remove(this.globalToggleClass);\n if (!!event) {\n Event.dispatchAndFire(this.navigationContainer, EVENT_TOGGLE);\n }\n resolve();\n });\n }, Settings.get().darkenerFadeDelay);\n });\n });\n }\n\n /**\n * @private\n */\n _removeInstant() {\n this.navigationContainer.classList.remove(OPEN_CLASS);\n global.document.body.classList.remove(this.darkenerClassToggleInstant);\n this.darkener.classList.remove(INIT_CLASS);\n FixedWindow.getInstance().close();\n }\n\n /**\n * Toggles a an off-canvas element\n * @param [e]\n * @private\n */\n toggle(e) {\n if (e) {\n e.preventDefault();\n }\n this.resetTransform(this.navigationContainer.style);\n const bodyClass = global.document.body.classList;\n const darkenerClass = this.darkener.classList;\n const DARKENER_CLASS_TOGGLE = this.darkenerClassToggle;\n const DARKENER_CLASS_INSTANT_TOGGLE = this.darkenerClassToggleInstant;\n const navigationControllerClassList = this.navigationContainer.classList;\n if (!OffCanvas.currentOpen) {\n Util.addEventOnce(Settings.getTransitionEvent(), this.navigationContainer, () => {\n if (!!e) {\n Event.dispatchAndFire(this.navigationContainer, EVENT_TOGGLE);\n }\n });\n OffCanvas.currentOpen = this;\n FixedWindow.getInstance().open(this);\n global.document.documentElement.classList.add(this.globalToggleClass);\n bodyClass.add(DARKENER_CLASS_INSTANT_TOGGLE);\n bodyClass.add(DARKENER_CLASS_TOGGLE);\n darkenerClass.add(INIT_CLASS);\n navigationControllerClassList.add(OPEN_CLASS);\n } else {\n return this.close(e);\n }\n }\n\n close(event) {\n if (this.navigationContainer.classList.contains(OPEN_CLASS)) {\n const navigationControllerClassList = this.navigationContainer.classList;\n const promise = this._remove(event);\n this._removeInstant(navigationControllerClassList);\n return promise;\n }\n return new Promise(r => r());\n }\n\n /**\n * Register events\n * @param [delegate]\n */\n registerEvents(delegate) {\n const thisDelegate = delegate || global.document;\n FixedWindow.getInstance().addScreenConstraint(OffCanvas, (width) => width < Settings.get().smallBreakpoint);\n thisDelegate.addEventListener(Settings.getTabEvent(), (e) => {\n if (OffCanvas.currentOpen && OffCanvas.currentOpen !== this) {\n return;\n }\n const id = this.navigationContainerId;\n const validTarget = e.target.getAttribute(ATTR_TARGET) === id;\n if (!Util.isPartOfNode(e.target, this.navigationContainer)) {\n if (validTarget || (OffCanvas.currentOpen === this && e.target === this.darkener)) {\n this.toggle(e);\n }\n } else {\n if (e.target.hasAttribute(ATTR_CLOSE_SIDEBAR)) {\n this.toggle(e);\n }\n }\n });\n }\n}\n\nOffCanvas.currentOpen = null;\n\nexport default OffCanvas;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/OffCanvas.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Toggleable\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\nimport Settings from './util/Settings';\nimport Widget from './Widget';\nimport Util from './util/Util';\nimport Event from './util/Event';\n\n/**\n * Event that is fired when a tab is closed\n * @type {string}\n */\n\nexport const EVENT_TAB_CLOSED = 'flexcss.tab.closed';\n\n/**\n * Event that is fired when a tab has been opened\n * @type {string}\n */\nexport const EVENT_TAB_OPENED = 'flexcss.tab.opened';\n/**\n * @type {string}\n */\nconst ATTR_NAME = 'data-toggle';\n/**\n * @type {string}\n */\nconst ACTIVE_CLASS = 'active';\n/**\n * @type {string}\n */\nconst LOADING_CLASS = 'loading';\n\n/**\n * @type {string}\n */\nconst ATTR_TOGGLE_LIST = 'data-toggle-list';\n\n/**\n * Creates a toggleable element, either for tabs or a single toggle\n */\nclass Toggleable {\n constructor(ContainerId) {\n const doc = global.document;\n\n this.container = ContainerId instanceof HTMLElement ? ContainerId :\n doc.getElementById(ContainerId);\n\n this.loading = false;\n\n if (!this.container) {\n throw new Error(`Toggleable container with id ${ContainerId} not found`);\n }\n }\n\n /**\n * Listener\n * @param {Event} e\n * @private\n */\n _listener(e) {\n let target = e.target;\n const parent = target.parentNode;\n const doc = global.document;\n\n // support target child element to clicked\n if (!target.hasAttribute(ATTR_NAME)) {\n if (parent && parent.hasAttribute(ATTR_NAME)) {\n target = parent;\n } else {\n return;\n }\n }\n\n if (!target.hasAttribute(ATTR_NAME)) {\n return;\n }\n\n const refId = target.getAttribute(ATTR_NAME);\n const ref = doc.getElementById(refId);\n\n e.preventDefault();\n\n if (this.loading) {\n return;\n }\n\n this.toggleTarget(ref, target);\n }\n\n /**\n * Registers Events for this instance\n * @returns {Toggleable}\n */\n registerEvents() {\n this.container.addEventListener(Settings.getTabEvent(), this._listener.bind(this));\n return this;\n }\n\n /**\n * Toggles given `ref`\n * @param {HTMLElement|Node} ref\n * @param {HTMLElement|Node} [selfTarget] optional target node\n */\n toggleTarget(ref, selfTarget) {\n let target = selfTarget;\n if (!target && !ref) {\n return;\n }\n if (!target) {\n target = document.querySelector(`[${ATTR_NAME}=\"${ref.id}\"]`);\n }\n\n let maybeToggleNode;\n let future;\n const elClassList = target.classList;\n let parentClassList;\n const parent = target.parentNode;\n const doc = global.document;\n\n future = new Promise((resolve, failure) => {\n if (ref) {\n resolve(ref);\n } else {\n const widget = Widget.findWidget(target);\n const async = widget ? widget.getAsync() : null;\n if (Widget.isWidget(widget) && async) {\n future = async.then((r) => {\n if (r instanceof HTMLElement) {\n const id = Util.guid();\n r.id = id;\n target.setAttribute(ATTR_NAME, id);\n resolve(r);\n } else {\n throw new Error(`Dynamically creating toggle-content is not supported right now.\n Return an HTMLElement instance`);\n }\n });\n } else {\n failure('Target not given');\n }\n }\n });\n\n if (parent) {\n maybeToggleNode = Util.parentsUntil(target, (node) => {\n return node && node.hasAttribute && node.hasAttribute(ATTR_TOGGLE_LIST);\n });\n\n parentClassList = parent.classList;\n // Abort if element is already active and if is part of a toggle list\n if (maybeToggleNode) {\n if (!parentClassList.contains(ACTIVE_CLASS)) {\n parentClassList.toggle(ACTIVE_CLASS);\n parentClassList.add(LOADING_CLASS);\n } else {\n return;\n }\n }\n\n if (maybeToggleNode) {\n for (let i = 0; i < maybeToggleNode.children.length; i++) {\n const n = maybeToggleNode.children[i];\n const targetRef = n.children[0];\n if (n !== parent) {\n n.classList.remove(ACTIVE_CLASS);\n if (targetRef) {\n const attr = targetRef.getAttribute(ATTR_NAME);\n const el = attr ? doc.getElementById(attr) : null;\n if (el) {\n Event.dispatchAndFire(el, EVENT_TAB_CLOSED);\n el.classList.remove(ACTIVE_CLASS);\n targetRef.classList.remove(ACTIVE_CLASS);\n }\n }\n }\n }\n }\n }\n if (elClassList) {\n elClassList.toggle(ACTIVE_CLASS);\n elClassList.add(LOADING_CLASS);\n }\n this.loading = true;\n future.then((r) => {\n Event.dispatchAndFire(r, EVENT_TAB_OPENED);\n Toggleable._handleLoaded(target);\n r.classList.toggle(ACTIVE_CLASS);\n this.loading = false;\n }).catch(() => {\n this.loading = false;\n Toggleable._handleLoaded(target);\n });\n }\n\n /**\n * @param el\n * @private\n */\n static _handleLoaded(el) {\n const parentClassList = el.parentNode.classList;\n el.classList.remove(LOADING_CLASS);\n if (parentClassList) {\n parentClassList.remove(LOADING_CLASS);\n }\n }\n}\n\nexport default Toggleable;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Toggleable.js\n **/","export default (fn, ms) => () => {\n clearTimeout(fn.timeout);\n fn.timeout = setTimeout(fn, ms);\n};\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/lib/debounce.js\n **/","import Form from '../Form';\nimport Tooltip from '../Tooltip';\nimport Modal from '../Modal';\nimport Widget from '../Widget';\nimport Settings from '../util/Settings';\nimport Toggleable from '../Toggleable';\nimport OffCanvas from '../OffCanvas';\nimport Dropdown from '../Dropdown';\nimport LightBox from '../LightBox';\nimport Util from '../util/Util';\n\nexport { Form, Tooltip, Modal, Widget, Settings, Util, Toggleable, OffCanvas, Dropdown, LightBox };\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/modules/All.js\n **/","module.exports = { \"default\": require(\"core-js/library/fn/json/stringify\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/json/stringify.js\n ** module id = 111\n ** module chunks = 0\n **/","var core = require('../../modules/$.core');\nmodule.exports = function stringify(it){ // eslint-disable-line no-unused-vars\n return (core.JSON && core.JSON.stringify || JSON.stringify).apply(JSON, arguments);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/json/stringify.js\n ** module id = 112\n ** module chunks = 0\n **/","// the whatwg-fetch polyfill installs the fetch() function\n// on the global object (window or self)\n//\n// Return that as the export for use in Webpack, Browserify etc.\nrequire('whatwg-fetch');\nmodule.exports = self.fetch.bind(self);\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/isomorphic-fetch/fetch-npm-browserify.js\n ** module id = 114\n ** module chunks = 0\n **/","(function(self) {\n 'use strict';\n\n if (self.fetch) {\n return\n }\n\n function normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(name)) {\n throw new TypeError('Invalid character in header field name')\n }\n return name.toLowerCase()\n }\n\n function normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n }\n\n function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n }\n\n Headers.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var list = this.map[name]\n if (!list) {\n list = []\n this.map[name] = list\n }\n list.push(value)\n }\n\n Headers.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n }\n\n Headers.prototype.get = function(name) {\n var values = this.map[normalizeName(name)]\n return values ? values[0] : null\n }\n\n Headers.prototype.getAll = function(name) {\n return this.map[normalizeName(name)] || []\n }\n\n Headers.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n }\n\n Headers.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = [normalizeValue(value)]\n }\n\n Headers.prototype.forEach = function(callback, thisArg) {\n Object.getOwnPropertyNames(this.map).forEach(function(name) {\n this.map[name].forEach(function(value) {\n callback.call(thisArg, value, name, this)\n }, this)\n }, this)\n }\n\n function consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n }\n\n function fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n }\n\n function readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n reader.readAsArrayBuffer(blob)\n return fileReaderReady(reader)\n }\n\n function readBlobAsText(blob) {\n var reader = new FileReader()\n reader.readAsText(blob)\n return fileReaderReady(reader)\n }\n\n var support = {\n blob: 'FileReader' in self && 'Blob' in self && (function() {\n try {\n new Blob();\n return true\n } catch(e) {\n return false\n }\n })(),\n formData: 'FormData' in self,\n arrayBuffer: 'ArrayBuffer' in self\n }\n\n function Body() {\n this.bodyUsed = false\n\n\n this._initBody = function(body) {\n this._bodyInit = body\n if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (!body) {\n this._bodyText = ''\n } else if (support.arrayBuffer && ArrayBuffer.prototype.isPrototypeOf(body)) {\n // Only support ArrayBuffers for POST method.\n // Receiving ArrayBuffers happens via Blobs, instead.\n } else {\n throw new Error('unsupported BodyInit type')\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n\n this.arrayBuffer = function() {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n } else {\n this.text = function() {\n var rejected = consumed(this)\n return rejected ? rejected : Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n }\n\n // HTTP methods whose capitalization should be normalized\n var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\n function normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return (methods.indexOf(upcased) > -1) ? upcased : method\n }\n\n function Request(input, options) {\n options = options || {}\n var body = options.body\n if (Request.prototype.isPrototypeOf(input)) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n if (!body) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = input\n }\n\n this.credentials = options.credentials || this.credentials || 'omit'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n }\n\n Request.prototype.clone = function() {\n return new Request(this)\n }\n\n function decode(body) {\n var form = new FormData()\n body.trim().split('&').forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n }\n\n function headers(xhr) {\n var head = new Headers()\n var pairs = xhr.getAllResponseHeaders().trim().split('\\n')\n pairs.forEach(function(header) {\n var split = header.trim().split(':')\n var key = split.shift().trim()\n var value = split.join(':').trim()\n head.append(key, value)\n })\n return head\n }\n\n Body.call(Request.prototype)\n\n function Response(bodyInit, options) {\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = options.status\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = options.statusText\n this.headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n }\n\n Body.call(Response.prototype)\n\n Response.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n }\n\n Response.error = function() {\n var response = new Response(null, {status: 0, statusText: ''})\n response.type = 'error'\n return response\n }\n\n var redirectStatuses = [301, 302, 303, 307, 308]\n\n Response.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n }\n\n self.Headers = Headers;\n self.Request = Request;\n self.Response = Response;\n\n self.fetch = function(input, init) {\n return new Promise(function(resolve, reject) {\n var request\n if (Request.prototype.isPrototypeOf(input) && !init) {\n request = input\n } else {\n request = new Request(input, init)\n }\n\n var xhr = new XMLHttpRequest()\n\n function responseURL() {\n if ('responseURL' in xhr) {\n return xhr.responseURL\n }\n\n // Avoid security warnings on getResponseHeader when not allowed by CORS\n if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {\n return xhr.getResponseHeader('X-Request-URL')\n }\n\n return;\n }\n\n xhr.onload = function() {\n var status = (xhr.status === 1223) ? 204 : xhr.status\n if (status < 100 || status > 599) {\n reject(new TypeError('Network request failed'))\n return\n }\n var options = {\n status: status,\n statusText: xhr.statusText,\n headers: headers(xhr),\n url: responseURL()\n }\n var body = 'response' in xhr ? xhr.response : xhr.responseText;\n resolve(new Response(body, options))\n }\n\n xhr.onerror = function() {\n reject(new TypeError('Network request failed'))\n }\n\n xhr.open(request.method, request.url, true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n }\n\n if ('responseType' in xhr && support.blob) {\n xhr.responseType = 'blob'\n }\n\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n }\n self.fetch.polyfill = true\n})(typeof self !== 'undefined' ? self : this);\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/whatwg-fetch/fetch.js\n ** module id = 115\n ** module chunks = 0\n **/"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///js/site.min.js","webpack:///webpack/bootstrap 02030115b79806ce8aa2","webpack:///./~/core-js/library/modules/$.js","webpack:///./~/core-js/library/modules/$.core.js","webpack:///./~/core-js/library/modules/$.wks.js","webpack:///./~/core-js/library/modules/$.export.js","webpack:///./~/core-js/library/modules/$.iterators.js","webpack:///./~/core-js/library/modules/$.an-object.js","webpack:///./~/core-js/library/modules/$.descriptors.js","webpack:///./~/core-js/library/modules/$.fails.js","webpack:///./~/core-js/library/modules/$.global.js","webpack:///./~/core-js/library/modules/$.hide.js","webpack:///./~/flexcss/src/main/util/Settings.js","webpack:///./~/babel-runtime/helpers/classCallCheck.js","webpack:///./~/babel-runtime/helpers/createClass.js","webpack:///./~/core-js/library/modules/$.ctx.js","webpack:///./~/core-js/library/modules/$.defined.js","webpack:///./~/core-js/library/modules/$.has.js","webpack:///./~/core-js/library/modules/$.is-object.js","webpack:///./~/core-js/library/modules/$.set-to-string-tag.js","webpack:///./~/core-js/library/modules/$.to-iobject.js","webpack:///./~/core-js/library/modules/es6.string.iterator.js","webpack:///./~/core-js/library/modules/web.dom.iterable.js","webpack:///./~/flexcss/src/main/util/Util.js","webpack:///./src/main/Rendering.js","webpack:///./src/main/util/Util.js","webpack:///./~/babel-runtime/helpers/typeof.js","webpack:///./~/core-js/library/modules/$.classof.js","webpack:///./~/core-js/library/modules/$.cof.js","webpack:///./~/core-js/library/modules/$.for-of.js","webpack:///./~/core-js/library/modules/$.iter-define.js","webpack:///./~/core-js/library/modules/$.property-desc.js","webpack:///./~/core-js/library/modules/$.redefine.js","webpack:///./~/core-js/library/modules/$.uid.js","webpack:///./~/flexcss/src/main/util/Event.js","webpack:///./src/main/RenderResult.js","webpack:///./src/main/RenderingEvents.js","webpack:///./~/flexcss/src/main/Widget.js","webpack:///./~/babel-runtime/core-js/object/get-prototype-of.js","webpack:///./~/babel-runtime/helpers/inherits.js","webpack:///./~/babel-runtime/helpers/possibleConstructorReturn.js","webpack:///./~/core-js/library/modules/$.iobject.js","webpack:///./~/core-js/library/modules/$.iter-step.js","webpack:///./~/core-js/library/modules/$.library.js","webpack:///./~/core-js/library/modules/$.redefine-all.js","webpack:///./~/core-js/library/modules/$.shared.js","webpack:///./~/core-js/library/modules/$.strict-new.js","webpack:///./~/core-js/library/modules/$.to-integer.js","webpack:///./~/core-js/library/modules/$.to-object.js","webpack:///./~/core-js/library/modules/core.get-iterator-method.js","webpack:///./src/main/modules/Marklib.js","webpack:///./~/flexcss/src/main/lib/FixedWindow.js","webpack:///./~/babel-runtime/core-js/get-iterator.js","webpack:///./~/babel-runtime/core-js/is-iterable.js","webpack:///./~/babel-runtime/core-js/object/assign.js","webpack:///./~/babel-runtime/core-js/object/create.js","webpack:///./~/babel-runtime/core-js/object/define-property.js","webpack:///./~/babel-runtime/core-js/object/set-prototype-of.js","webpack:///./~/babel-runtime/core-js/set.js","webpack:///./~/babel-runtime/core-js/symbol.js","webpack:///./~/babel-runtime/core-js/symbol/iterator.js","webpack:///./~/babel-runtime/helpers/slicedToArray.js","webpack:///./~/core-js/library/fn/get-iterator.js","webpack:///./~/core-js/library/fn/is-iterable.js","webpack:///./~/core-js/library/fn/object/assign.js","webpack:///./~/core-js/library/fn/object/create.js","webpack:///./~/core-js/library/fn/object/define-property.js","webpack:///./~/core-js/library/fn/object/get-prototype-of.js","webpack:///./~/core-js/library/fn/object/set-prototype-of.js","webpack:///./~/core-js/library/fn/set.js","webpack:///./~/core-js/library/fn/symbol/index.js","webpack:///./~/core-js/library/fn/symbol/iterator.js","webpack:///./~/core-js/library/modules/$.a-function.js","webpack:///./~/core-js/library/modules/$.add-to-unscopables.js","webpack:///./~/core-js/library/modules/$.collection-strong.js","webpack:///./~/core-js/library/modules/$.collection-to-json.js","webpack:///./~/core-js/library/modules/$.collection.js","webpack:///./~/core-js/library/modules/$.enum-keys.js","webpack:///./~/core-js/library/modules/$.get-names.js","webpack:///./~/core-js/library/modules/$.is-array-iter.js","webpack:///./~/core-js/library/modules/$.is-array.js","webpack:///./~/core-js/library/modules/$.iter-call.js","webpack:///./~/core-js/library/modules/$.iter-create.js","webpack:///./~/core-js/library/modules/$.keyof.js","webpack:///./~/core-js/library/modules/$.object-assign.js","webpack:///./~/core-js/library/modules/$.object-sap.js","webpack:///./~/core-js/library/modules/$.set-proto.js","webpack:///./~/core-js/library/modules/$.set-species.js","webpack:///./~/core-js/library/modules/$.string-at.js","webpack:///./~/core-js/library/modules/$.to-length.js","webpack:///./~/core-js/library/modules/core.get-iterator.js","webpack:///./~/core-js/library/modules/core.is-iterable.js","webpack:///./~/core-js/library/modules/es6.array.iterator.js","webpack:///./~/core-js/library/modules/es6.object.assign.js","webpack:///./~/core-js/library/modules/es6.object.get-prototype-of.js","webpack:///./~/core-js/library/modules/es6.object.set-prototype-of.js","webpack:///./~/core-js/library/modules/es6.set.js","webpack:///./~/core-js/library/modules/es6.symbol.js","webpack:///./~/core-js/library/modules/es7.set.to-json.js","webpack:///./~/wolfy87-eventemitter/EventEmitter.js","webpack:///./~/flexcss/src/main/DestroyableWidget.js","webpack:///./~/flexcss/src/main/Modal.js","webpack:///./~/flexcss/src/main/Tooltip.js","webpack:///./src/main/modules/Site.js","webpack:///./~/flexcss/src/main/Dropdown.js","webpack:///./~/flexcss/src/main/Form.js","webpack:///./~/flexcss/src/main/LightBox.js","webpack:///./~/flexcss/src/main/OffCanvas.js","webpack:///./~/flexcss/src/main/Toggleable.js","webpack:///./~/flexcss/src/main/lib/debounce.js","webpack:///./~/flexcss/src/main/modules/All.js","webpack:///./~/babel-runtime/core-js/json/stringify.js","webpack:///./~/core-js/library/fn/json/stringify.js","webpack:///./~/isomorphic-fetch/fetch-npm-browserify.js","webpack:///./~/whatwg-fetch/fetch.js"],"names":["root","factory","exports","module","define","amd","this","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","$Object","Object","create","getProto","getPrototypeOf","isEnum","propertyIsEnumerable","getDesc","getOwnPropertyDescriptor","setDesc","defineProperty","setDescs","defineProperties","getKeys","keys","getNames","getOwnPropertyNames","getSymbols","getOwnPropertySymbols","each","forEach","core","version","__e","store","uid","Symbol","name","global","ctx","PROTOTYPE","$export","type","source","key","own","out","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","IS_WRAP","W","target","C","param","Function","isObject","it","TypeError","get","a","exec","e","window","Math","self","__g","$","createDesc","object","value","_interopRequireDefault","obj","__esModule","default","_classCallCheck","instance","Constructor","_createClass","props","i","length","descriptor","enumerable","configurable","writable","protoProps","staticProps","prototype","_Util","_Util2","FLEXCSS_GLOBAL_SETTINGS","smallBreakpoint","scrollbarUpdateNodes","document","body","darkenerFadeDelay","canvasToggledClass","FLEXCSS_CONST_IS_IOS","FLEXCSS_CONST_IS_TOUCH","FLEXCSS_CONST_IS_IE","FLEXCSS_CONST_TAB_EVENT","FLEXCSS_IS_SMALL_SCREEN","init","FLEXCSS_CONST_SCROLLBAR_WIDTH","getScrollBarWidth","FLEXCSS_CONST_TRANSITION_EVENT","whichTransitionEndEvent","readyState","addEventListener","Settings","settings","assign","navigator","userAgent","match","innerWidth","msMaxTouchPoints","_defineProperty","_defineProperty2","aFunction","fn","that","undefined","b","apply","arguments","hasOwnProperty","def","has","TAG","tag","stat","IObject","defined","$at","String","iterated","_t","_i","point","O","index","done","Iterators","NodeList","HTMLCollection","Array","PFX","COL_LEFT_CLASS","COL_RIGHT_CLASS","COL_BOTTOM_CLASS","Util","element","callback","thisFunction","thisType","toLowerCase","t","el","createElement","transitions","transition","OTransition","MozTransition","WebkitTransition","style","parent","now","parentNode","func","s4","floor","random","toString","substring","doc","inner","width","height","outer","position","top","left","visibility","overflow","appendChild","w1","offsetWidth","w2","clientWidth","removeChild","ev","capture","event","removeEventListener","offsetHeight","str","replace","g","toUpperCase","input","JSON","parse","stringify","base","attrs","attributes","attr","s","dashToCamelCase","nodeName","val","nodeValue","parseInt","elementToPosition","collisionContainer","centerHorizontal","positionTop","amountTop","amountLeft","parentsUntil","HTMLElement","getComputedStyle","isPartOfNode","offsetTop","offsetLeft","targetPosition","getBoundingClientRect","elementRect","colRect","targetTop","targetRight","right","isCollisionTop","isCollisionBottom","innerHeight","isCollisionLeft","targetLeft","isCollisionRight","classList","remove","calcTop","calcLeft","add","rightPosition","leftCentered","collisionCentered","cssText","optionalOffset","scrollIntoView","thisOffset","scrolledY","pageYOffset","scroll","EVENT_WRAPPED_NODE","ATTR_DATA_ORIGINAL_OFFSET_START","_getPrototypeOf","_getPrototypeOf2","_classCallCheck2","_classCallCheck3","_createClass2","_createClass3","_possibleConstructorReturn2","_possibleConstructorReturn3","_inherits2","_inherits3","_RenderResult","_RenderResult2","_RenderingEvents2","_RenderingEvents3","TAG_NAME","DATA_ORIGINAL_TEXT_NODE_INDEX","ATTR_DATA_START_END","ATTR_DATA_IS_HIGHLIGHT_NODE","ATTR_DATA_ID","DOCUMENT_POSITION_CONTAINED_BY","Rendering","_RenderingEvents","options","context","_this","guid","startContainer","endContainer","_renderResult","_this2","wrapperNodes","node","setAttribute","omitHighlight","vTrue","className","join","setMarklibInstance","push","getId","DATA_IS_SELECTION","text","_createWrapTemplate","textContent","initialNode","offset","wrapper","_createStartEndWrapTemplate","ATTR_DATA_ORIGINAL_INDEX","getIndexParentIfHas","optionalLength","optionalIndex","optionalIsSameNode","originalIndex","calcIndex","offsetLength","getOffsetParentIfHas","wrap","emit","originalElement","start","nextParent","nextParentNode","currentParentNode","wrapSiblings","nextSibling","_this3","next","found","n","getMarklibInstance","hasAttribute","_createWrap","wrapIf","nodeIsEmpty","walkIfContained","Node","TEXT_NODE","nodeType","walkIfNotContained","currentNext","compareDocumentPosition","walkDom","walkTextNodes","textNode","startIndex","endIndex","initialText","initialIndex","textBefore","slice","insertBefore","createTextNode","previousSibling","_createSplitContainer","textAfter","startOffset","endOffset","startContainerIndex","endContainerIndex","fullTextStartValue","startT","partTextStartValue","offsetStart","_createStartOrEndContainer","endT","fullTextEndValue","partTextEndValue","offsetParent","startContainerP","endContainerP","commonAncestor","endOffsetP","parents","contextContainer","originalStartOffset","findOriginalOffset","originalEndOffset","nextElementSibling","toFindNode","previousElementSibling","endContainerContents","closest","childNodes","r","f","lastChild","getAttribute","Error","getPath","_renderSelection","_markTextSameNode","result","_markTextDifferentNode","indexOf","splice","walk","startPath","endPath","deserializePath","range","createRange","setStart","setEnd","renderWithRange","renderWithPath","startContainerPath","endContainerPath","_renderWithElements","commonAncestorContainer","marklibInstance","removeEvent","_Rendering","SERIALIZE_SEPARATOR","Element","matches","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector","nodes","filter","optionalList","children","elms","thisElms","child","cloneNode","sibling","calculatedIndex","foundWrapper","thisIndex","maybeIndexOfOriginal","optionalSelector","parentsCallback","foundElements","selector","closestCallback","lastValid","path","filterSiblings","thisEl","isMarkNode","outerMostElement","reverse","siblings","nodeListFilter","nodeIndex","lengthElement","pSplit","split","objectIndex","charOffset","container","trim","querySelector","maybeFoundNode","atrOffsetStart","atrIndex","_document","NodeFilter","SHOW_ALL","args","walker","createTreeWalker","nextNode","currentNode","SHOW_TEXT","_typeof","_Symbol","_Symbol$iterator","constructor","_iterator","_iterator2","_symbol","_symbol2","cof","ARG","T","callee","isArrayIter","anObject","toLength","getIterFn","iterable","entries","step","iterator","iterFn","LIBRARY","redefine","hide","$iterCreate","setToStringTag","ITERATOR","BUGGY","FF_ITERATOR","KEYS","VALUES","returnThis","Base","NAME","DEFAULT","IS_SET","FORCED","methods","getMethod","kind","proto","DEF_VALUES","VALUES_BUG","$native","$default","IteratorPrototype","values","bitmap","px","concat","CustomEvent","_CustomEvent","params","evt","thisParams","bubbles","cancelable","detail","createEvent","initCustomEvent","Event","EventHandler","defaultOptions","withDetail","originalEvent","o","dispatchEvent","withOptions","fire","RenderResult","_renderingInstance","set","_text","EVENT_PART_TREE_LEAVE","EVENT_PART_TREE_ENTER","EVENT_MOUSELEAVE","EVENT_MOUSEENTER","EVENT_CLICK","_slicedToArray2","_slicedToArray3","_typeof2","_typeof3","_set","_set2","_assign","_assign2","_wolfy87Eventemitter","_wolfy87Eventemitter2","_Rendering2","RenderingEvents","_EventEmitter","hoverClass","treeClass","_registerEvents","on","__MARKLIB_EVENTS__","checkMarklibInstance","closestInstance","thisE","getInstancesBetween","map","mouseOutClear","currentHoverInstances","thisInstance","clear","betweenInstances","findTarget","between","allInstances","unshift","sort","_target","instanceBetween","textNodes","lastTextNode","Widget","asyncContent","_isWidget","getElementById","hfWidgetInstance","setAsync","Promise","finalContent","async","_setPrototypeOf","_setPrototypeOf2","_create","_create2","subClass","superClass","__proto__","ReferenceError","src","SHARED","ceil","isNaN","classof","getIteratorMethod","EVENT_AFTER_FIXED_REMOVE","EVENT_BEFORE_FIXED_ADD","_slicedToArray","sliceIterator","arr","_arr","_n","_d","_e","_s","err","isArray","_Settings","_Settings2","_debounce","_debounce2","_Event","_Event2","CLS_FIXED_WINDOW","fixedWindowInstance","FixedWindow","widgets","currentScrollTop","fixedScreenConstraints","windowWidth","isFixedWindowActive","widget","fixedBreakpointFn","Set","widgetsThatRequireFixedWindow","from","some","_addFixedContainer","_removeFixedContainer","dispatchAndFire","getCurrentWidget","foundProperty","direction","whatNode","property","d","__fixedWindowMod__","getScrollbarWidth","documentElement","scrollTop","_node","paddingRight","_checkFixedNeeded","resolve","pop","requestAnimationFrame","fixed","cn","fixedWidget","eventHandler","resizeListener","bind","_isIterable2","_isIterable3","_getIterator2","_getIterator3","D","desc","setPrototypeOf","redefineAll","strictNew","forOf","$iterDefine","ID","$has","setSpecies","DESCRIPTORS","isExtensible","SIZE","fastKey","getEntry","entry","_f","k","getConstructor","IS_MAP","ADDER","_l","data","delete","prev","callbackfn","v","setStrong","_k","fails","common","IS_WEAK","_c","KEY","IS_ADDER","size","symbols","toIObject","windowNames","getWindowNames","ArrayProto","arg","ret","toObject","A","K","$$","$$len","j","exp","check","test","buggy","SPECIES","toInteger","TO_STRING","pos","l","charCodeAt","charAt","min","getIterator","isIterable","addToUnscopables","Arguments","$getPrototypeOf","strong","$fails","shared","wks","keyOf","$names","enumKeys","$Symbol","$JSON","_stringify","setter","HIDDEN","SymbolRegistry","AllSymbols","useNative","ObjectProto","setSymbolDesc","protoDesc","sym","isSymbol","$defineProperty","$defineProperties","$create","$propertyIsEnumerable","E","$getOwnPropertyDescriptor","$getOwnPropertyNames","names","$getOwnPropertySymbols","$stringify","replacer","$replacer","buggyJSON","symbolStatics","for","keyFor","useSetter","useSimple","toJSON","__WEBPACK_AMD_DEFINE_RESULT__","EventEmitter","indexOfListener","listeners","listener","alias","originalGlobalValue","getListeners","response","events","_getEvents","RegExp","flattenListeners","flatListeners","getListenersAsObject","addListener","listenerIsWrapped","once","addOnceListener","defineEvent","defineEvents","evts","removeListener","off","addListeners","manipulateListeners","removeListeners","single","multiple","_events","removeAllListeners","emitEvent","listenersMap","_getOnceReturnValue","trigger","setOnceReturnValue","_onceReturnValue","noConflict","DestroyableWidget","EVENT_MODAL_ASYNC_TARGET_LOADED","EVENT_MODAL_INIT","EVENT_MODAL_OPENED","EVENT_MODAL_BEFORE_CLOSED","EVENT_MODAL_CLOSED","_Widget","_Widget2","_FixedWindow","_FixedWindow2","HTML_ELEMENT","KEY_ESC","ATTR_CREATE_NEW","ATTR_CLOSE","ATTR_NAME","CLS_CONTAINER_CURRENT","CLS_OPEN","CLS_CURRENT","CLS_PART_OF_STACK","CLS_MODAL_OPEN","CLS_MODAL_CONTAINER","CLS_ANIM_END","CLS_LOADER_CONTAINER","CLS_LOADER","Modal","DelegateContainer","currentOpen","loading","classNames","closeOnEscape","closeOnBackgroundClick","destroyOnFinish","fixedContainer","containerClassNames","eventContainer","eventFunction","dataMainPageContainer","modalContainer","_modalInstances","getInstance","close","then","applyOptionsFromElement","copy","KeyboardEvent","getTabEvent","preventDefault","defaultPrevented","_finishState","prevModal","switchModals","dispatch","withOriginal","_removeModalFromStack","lastContainer","cl","destroy","co","last","open","prefixedAnimateEvent","_finishAnim","instances","isCurrent","contains","foundInstance","flexModalInstance","targetContent","future","hasTarget","isHtmlElement","isWidget","findWidget","newInstance","setDestroyOnFinish","fromEvent","registerEvents","getModalContainer","stopImmediatePropagation","modalContainerClasses","closeModalFunction","ce","loader","toggleLoader","show","loaderLoader","handleScrollbar","getAsync","DocumentFragment","innerHTML","modal","internal","maybeEvent","delegate","delegateContainer","addScreenConstraint","createWidget","isEmptyContainer","MutationObserver","observer","mutations","disconnect","observe","childList","keyCode","lastModal","_possibleConstructorReturn","_inherits","_get","receiver","getter","_DestroyableWidget2","_DestroyableWidget3","CLASS_NAMES_TOOLTIP","CLASS_NAMES_OPEN","ATTR_DATA_CLASSNAME","ATTR_DATA_NO_TOUCH","Tooltip","_DestroyableWidget","tooltipContainer","containerClass","selectorAttribute","removeTitle","positionRelative","isTouchDevice","_restoreClassNames","flexTooltipCurrentTarget","oldTitle","removeAttribute","setupPositionNearby","maybeTargetClass","selfTarget","createTooltip","removeTooltip","_stringify2","_Marklib","_flexcss","KEY_ENTER","presentRendering","speed","thisLength","render","autoMarkText","cp","nextText","setTimeout","onClick","ANIMATIONEND","tooltip","getCurrentTarget","STORAGE_KEY","allRanges","savedRanges","localStorage","getItem","animated","marker","renderWithResult","console","warn","setItem","error","html","clientHeight","bottom","actionMark","selection","getSelection","renderer","getRangeAt","removeAllRanges","serialize","EVENT_DROPDOWN_CLOSED","ATTR_CC","ATTR_DARKENER","DARKENER_INIT","ATTR_DATA_TARGET","ATTR_CLOSE_DROPDOWN","STATE_LOADING","CLS_DARKENER_DROPDOWN","CLS_DROPDOWN","Dropdown","Darkener","currentTarget","darkener","destroyOnClose","targetIsCurrent","_delegateFunction","isLoading","createDropdown","cls","darkenerInstance","flexDarkenerInstance","thisCurrentOpen","addEventOnce","getTransitionEvent","toggleDarkenerToggler","thisWidget","dropdownContainerElement","dropdownContent","isAbsolute","flexCollisionContainer","collisionC","toggle","EVENT_FORM_AJAX_COMPLETED","EVENT_FORM_AFTER_AJAX_SUBMIT","EVENT_FORM_SUBMIT","EVENT_FORM_READY","_Tooltip","_Tooltip2","LOADING_CLASS","DATA_ELEMENT_INVALID","REMOTE","REMOTE_ACTION","ATTR_DISABLE_INLINE","ATTR_DISABLE_REALTIME","ATTR_VALIDATOR","ATTR_DATA_CUSTOM_MESSAGE","ATTR_DATA_CUSTOM_LABEL","ATTR_VALIDATE_VISIBILITY","ATTR_ERROR_TARGET_ID","ATTR_DEPENDS","CONST_USE_JSON","CONST_REALTIME_EVENT","FOCUS_TOOLTIP_DELAY","CLICK_TOOLTIP_DELAY","Form","form","HTMLFormElement","tooltips","currentValidationFuture","createTooltips","appendError","ajaxSubmitType","ajaxJsonContentType","inlineValidation","realtime","realtimeTimeout","formatErrorTooltip","inputErrorClass","containerErrorClass","fetchOptions","credentials","tooltipOptions","scrollToElementDiff","_validators","globalValidators","_remoteValidationFunction","initFormValidation","thisForm","shouldUseAjax","ajaxPostUrl","location","href","useJson","_formStopLoading","submit","defaultHeaders","X-Requested-With","Content-Type","headers","method","serverCall","fetch","FormData","globalRemoteValidationFunction","selectors","inputs","querySelectorAll","exists","field","focus","fields","_handleValidation","foundAnyError","toValidateFields","scoped","_createArrayFromInvalidFieldList","isLocalInvalid","_focusElement","validation","_customValidationsForElements","validateCustomFields","thisToValidateFields","checkedFields","foundInvalidFields","prepareErrors","firstInvalidField","activeElement","_handleTooltipHideClickAfterChange","showAndOrCreateTooltip","validity","globalErrorMessageHandler","labels","getForm","invalid","labelsIndex","labelEl","_markElementInvalid","_markElementValid","HTMLFieldSetElement","thisParent","errors","inputsWithErrorClasses","elementErrorIndex","inputErrorIndex","validator","validationRef","futures","fieldsLength","iVal","_shouldNotValidateField","customError","valid","_runValidation","all","allFutures","fI","_removeElementErrors","removeAllErrors","handleAdditionalLabels","isInvalid","thisLabelGroup","additionalLabels","group","removeErrors","labelGroups","invalidFields","errorTarget","_findErrorTarget","flexFormsSavedValidity","_setupErrorMessages","msg","validationMessage","insertAdjacentHTML","flexFormsSavedValidationMessage","setCustomValidity","linkedFields","thisField","_isElementInvalidElement","_handleLabels","_formatErrorTooltip","fieldSelector","_checkIsValidRealtimeElement","clearKeyDownTimeout","KEYDOWN_RUNNING","clearTimeout","TIMEOUT_KEYDOWN","_checkIsValidBlurFocusElement","_checkIsValidInlineCheckElement","invalidEvent","handleInvalid","_formLoading","_checkIsInvalid","_handleSubmit","_formIsLoading","isStillTarget","_handleTooltipInline","dependentFields","_getDependentFields","flexcssKeepTooltips","_submitListener","scrollToElement","submitListener","submitEvent","checkValidity","_getInvalidElements","firstError","_submitFunction","isVisible","list","foundTarget","errorFunc","forms","customMsg","_Modal","_Modal2","ATTR_MAX_WIDTH","ATTR_MAX_HEIGHT","ATTR_SRC","CLS_HAS_PREV","CLS_HAS_NEXT","CLS_LOADING","ATTR_NO_THUMBNAIL","ATTR_DATA_HREF","ATTR_HREF","KEY_NEXT","KEY_PREV","LightBox","AttributeSelector","ModalAppend","thisDelegateContainer","_modalAppend","_resizeEvent","_keyboardNextEvent","_future","_nextFuture","_imageContainer","_modalContainerDiv","_contentContainer","_closerContainerDiv","_delegateContainer","_attributeSelector","_widget","_isOpen","img","_isLoading","registerPrevNextEvents","closeOnLast","onNext","onClose","getNext","getPrev","onSwitchImage","findImmediateNextTarget","onOpen","validTarget","parentIsValid","switchImage","_","reject","hasPrev","hasNext","hasPrevClass","hasNextClass","isIE","_ret","nextThumb","nextHighRes","nextSource","nextImgObject","Image","backgroundImage","_setupMaxWidthHeight","_calculateContainer","highRes","_setupPrevNextStates","thisThumbnail","thisImgHighResolution","_this4","highImageObj","_getSrc","_this5","thumbnail","imgHighResolution","imgSrc","imageObj","pageX","TouchEvent","changedTouches","rect","imgX","wrapperWidth","posX","switchImageByDirection","_runOptionalClose","fromWidget","loadedImage","nextMaxWidth","nextMaxHeight","maxWidth","maxHeight","EVENT_TOGGLE","ATTR_CLOSE_SIDEBAR","ATTR_TARGET","INIT_CLASS","OPEN_CLASS","HIDE_FACTOR","OffCanvas","NavigationId","factor","disableTouch","touchedX","navigationContainer","DARKENER_CLASS_TOGGLE","DARKENER_CLASS_INSTANT_TOGGLE","shouldNotTouch","darkenerClassToggle","darkenerClassToggleInstant","globalToggleClass","navigationContainerId","touches","clientX","mustHide","calcX","bounds","compare","webkitTransition","transform","webkitTransform","_remove","resetTransform","_removeInstant","bodyClass","darkenerClass","navigationControllerClassList","promise","thisDelegate","EVENT_TAB_OPENED","EVENT_TAB_CLOSED","ACTIVE_CLASS","ATTR_TOGGLE_LIST","Toggleable","ContainerId","refId","ref","toggleTarget","_listener","maybeToggleNode","elClassList","parentClassList","failure","targetRef","_handleLoaded","ms","timeout","_Form","_Form2","_Toggleable","_Toggleable2","_OffCanvas","_OffCanvas2","_Dropdown","_Dropdown2","_LightBox","_LightBox2","normalizeName","normalizeValue","Headers","append","consumed","bodyUsed","fileReaderReady","reader","onload","onerror","readBlobAsArrayBuffer","blob","FileReader","readAsArrayBuffer","readBlobAsText","readAsText","Body","_initBody","_bodyInit","_bodyText","support","Blob","isPrototypeOf","_bodyBlob","formData","_bodyFormData","arrayBuffer","ArrayBuffer","rejected","decode","json","normalizeMethod","upcased","Request","url","mode","referrer","bytes","shift","decodeURIComponent","xhr","head","pairs","getAllResponseHeaders","header","Response","bodyInit","status","ok","statusText","getAll","thisArg","clone","redirectStatuses","redirect","RangeError","responseURL","getResponseHeader","request","XMLHttpRequest","responseText","withCredentials","responseType","setRequestHeader","send","polyfill"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,IACA,kBAAAG,gBAAAC,IACAD,UAAAH,GACA,gBAAAC,SACAA,QAAA,QAAAD,IAEAD,EAAA,QAAAC,KACCK,KAAA,WACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAP,OAGA,IAAAC,GAAAO,EAAAD,IACAP,WACAS,GAAAF,EACAG,QAAA,EAUA,OANAL,GAAAE,GAAAI,KAAAV,EAAAD,QAAAC,IAAAD,QAAAM,GAGAL,EAAAS,QAAA,EAGAT,EAAAD,QAvBA,GAAAQ,KAqCA,OATAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,MAGAR,EAAA,KDgBM,SAASL,EAAQD,EAASM,GAE/BL,EAAOD,QAAUM,EAAoB,MAKhC,SAASL,EAAQD,GE7DvB,GAAAe,GAAAC,MACAf,GAAAD,SACAiB,OAAAF,EAAAE,OACAC,SAAAH,EAAAI,eACAC,UAAgBC,qBAChBC,QAAAP,EAAAQ,yBACAC,QAAAT,EAAAU,eACAC,SAAAX,EAAAY,iBACAC,QAAAb,EAAAc,KACAC,SAAAf,EAAAgB,oBACAC,WAAAjB,EAAAkB,sBACAC,QAAAC,UFoEM,SAASlC,EAAQD,GG/EvB,GAAAoC,GAAAnC,EAAAD,SAA6BqC,QAAA,QAC7B,iBAAAC,WAAAF,I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ory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Marklib\"] = factory();\n\telse\n\t\troot[\"Marklib\"] = factory();\n})(this, function() {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Marklib\"] = factory();\n\telse\n\t\troot[\"Marklib\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\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/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"../\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(103);\n\n\n/***/ },\n/* 1 */\n/***/ function(module, exports) {\n\n\tvar $Object = Object;\n\tmodule.exports = {\n\t create: $Object.create,\n\t getProto: $Object.getPrototypeOf,\n\t isEnum: {}.propertyIsEnumerable,\n\t getDesc: $Object.getOwnPropertyDescriptor,\n\t setDesc: $Object.defineProperty,\n\t setDescs: $Object.defineProperties,\n\t getKeys: $Object.keys,\n\t getNames: $Object.getOwnPropertyNames,\n\t getSymbols: $Object.getOwnPropertySymbols,\n\t each: [].forEach\n\t};\n\n/***/ },\n/* 2 */\n/***/ function(module, exports) {\n\n\tvar core = module.exports = {version: '1.2.6'};\n\tif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n/***/ },\n/* 3 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar store = __webpack_require__(44)('wks')\n\t , uid = __webpack_require__(32)\n\t , Symbol = __webpack_require__(9).Symbol;\n\tmodule.exports = function(name){\n\t return store[name] || (store[name] =\n\t Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n\t};\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar global = __webpack_require__(9)\n\t , core = __webpack_require__(2)\n\t , ctx = __webpack_require__(14)\n\t , PROTOTYPE = 'prototype';\n\t\n\tvar $export = function(type, name, source){\n\t var IS_FORCED = type & $export.F\n\t , IS_GLOBAL = type & $export.G\n\t , IS_STATIC = type & $export.S\n\t , IS_PROTO = type & $export.P\n\t , IS_BIND = type & $export.B\n\t , IS_WRAP = type & $export.W\n\t , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n\t , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n\t , key, own, out;\n\t if(IS_GLOBAL)source = name;\n\t for(key in source){\n\t // contains in native\n\t own = !IS_FORCED && target && key in target;\n\t if(own && key in exports)continue;\n\t // export native or passed\n\t out = own ? target[key] : source[key];\n\t // prevent global pollution for namespaces\n\t exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n\t // bind timers to global for call from export context\n\t : IS_BIND && own ? ctx(out, global)\n\t // wrap global constructors for prevent change them in library\n\t : IS_WRAP && target[key] == out ? (function(C){\n\t var F = function(param){\n\t return this instanceof C ? new C(param) : C(param);\n\t };\n\t F[PROTOTYPE] = C[PROTOTYPE];\n\t return F;\n\t // make static versions for prototype methods\n\t })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n\t if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n\t }\n\t};\n\t// type bitmap\n\t$export.F = 1; // forced\n\t$export.G = 2; // global\n\t$export.S = 4; // static\n\t$export.P = 8; // proto\n\t$export.B = 16; // bind\n\t$export.W = 32; // wrap\n\tmodule.exports = $export;\n\n/***/ },\n/* 5 */\n/***/ function(module, exports) {\n\n\tmodule.exports = {};\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar isObject = __webpack_require__(17);\n\tmodule.exports = function(it){\n\t if(!isObject(it))throw TypeError(it + ' is not an object!');\n\t return it;\n\t};\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// Thank's IE8 for his funny defineProperty\n\tmodule.exports = !__webpack_require__(8)(function(){\n\t return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n\t});\n\n/***/ },\n/* 8 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(exec){\n\t try {\n\t return !!exec();\n\t } catch(e){\n\t return true;\n\t }\n\t};\n\n/***/ },\n/* 9 */\n/***/ function(module, exports) {\n\n\t// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\n\tvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n\t ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\n\tif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n/***/ },\n/* 10 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar $ = __webpack_require__(1)\n\t , createDesc = __webpack_require__(30);\n\tmodule.exports = __webpack_require__(7) ? function(object, key, value){\n\t return $.setDesc(object, key, createDesc(1, value));\n\t} : function(object, key, value){\n\t object[key] = value;\n\t return object;\n\t};\n\n/***/ },\n/* 11 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t\n\tvar _Util = __webpack_require__(22);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t// we attach global settings to global once because settings might be shared a lot of times trough the application\n\t// Maybe find a better way to handle that scenario\n\tif (!global.FLEXCSS_GLOBAL_SETTINGS) {\n\t (function () {\n\t global.FLEXCSS_GLOBAL_SETTINGS = {\n\t // defined breakpoint for small devices < n\n\t smallBreakpoint: 768,\n\t // nodes that should be updated when no scrollbar is expected\n\t scrollbarUpdateNodes: global.document.body !== null ? [global.document.body] : [],\n\t // additional Delay until darkener is fully hidden\n\t darkenerFadeDelay: 100,\n\t // class that is added if canvas has been toggled\n\t canvasToggledClass: 'toggled-canvas'\n\t };\n\t\n\t global.FLEXCSS_CONST_IS_IOS = null;\n\t\n\t global.FLEXCSS_CONST_IS_TOUCH = null;\n\t\n\t global.FLEXCSS_CONST_IS_IE = null;\n\t\n\t global.FLEXCSS_CONST_TAB_EVENT = 'click';\n\t\n\t global.FLEXCSS_IS_SMALL_SCREEN = false;\n\t\n\t var init = function init() {\n\t // Measure scrollbar width\n\t global.FLEXCSS_CONST_SCROLLBAR_WIDTH = _Util2.default.getScrollBarWidth();\n\t // detect right transition end event\n\t global.FLEXCSS_CONST_TRANSITION_EVENT = _Util2.default.whichTransitionEndEvent();\n\t };\n\t\n\t if (global.document.readyState !== 'loading') {\n\t init();\n\t } else {\n\t // it's possible that global.document.body is not available if the document is not\n\t // loaded completely\n\t document.addEventListener('DOMContentLoaded', function () {\n\t init();\n\t });\n\t }\n\t })();\n\t}\n\t\n\t/**\n\t * Utility class that setups global settings\n\t */\n\t\n\tvar Settings = function () {\n\t function Settings() {\n\t _classCallCheck(this, Settings);\n\t }\n\t\n\t _createClass(Settings, null, [{\n\t key: 'setup',\n\t\n\t\n\t /**\n\t * Setup global settings, overwrite default values\n\t * @param {Object} settings\n\t */\n\t value: function setup(settings) {\n\t Object.assign(global.FLEXCSS_GLOBAL_SETTINGS, settings);\n\t }\n\t\n\t /**\n\t * Access to global settings\n\t * @returns {Object}\n\t */\n\t\n\t }, {\n\t key: 'get',\n\t value: function get() {\n\t return global.FLEXCSS_GLOBAL_SETTINGS;\n\t }\n\t\n\t /**\n\t * Detects a IOS Device, caches subsequent calls\n\t * @returns {boolean}\n\t */\n\t\n\t }, {\n\t key: 'isIosDevice',\n\t value: function isIosDevice() {\n\t if (!global.FLEXCSS_CONST_IS_IOS) {\n\t global.FLEXCSS_CONST_IS_IOS = global.navigator.userAgent.match(/(iPad|iPhone|iPod)/i);\n\t }\n\t\n\t return global.FLEXCSS_CONST_IS_IOS;\n\t }\n\t\n\t /**\n\t * @returns {boolean}\n\t */\n\t\n\t }, {\n\t key: 'isSmallScreen',\n\t value: function isSmallScreen() {\n\t return window.innerWidth < Settings.get().smallBreakpoint;\n\t }\n\t\n\t /**\n\t * Detects a touch device, caches subsequent calls\n\t * @returns {boolean}\n\t */\n\t\n\t }, {\n\t key: 'isTouchDevice',\n\t value: function isTouchDevice() {\n\t if (!global.FLEXCSS_CONST_IS_TOUCH) {\n\t global.FLEXCSS_CONST_IS_TOUCH = 'ontouchstart' in window || !!global.navigator.msMaxTouchPoints;\n\t }\n\t return global.FLEXCSS_CONST_IS_TOUCH;\n\t }\n\t\n\t /**\n\t * Checks if current browser is Internet Explorer\n\t * @returns {boolean|*}\n\t */\n\t\n\t }, {\n\t key: 'isIE',\n\t value: function isIE() {\n\t if (!global.FLEXCSS_CONST_IS_IE) {\n\t global.FLEXCSS_CONST_IS_IE = \"ActiveXObject\" in window;\n\t }\n\t return global.FLEXCSS_CONST_IS_IE;\n\t }\n\t\n\t /**\n\t * @returns {String}\n\t */\n\t\n\t }, {\n\t key: 'getTransitionEvent',\n\t value: function getTransitionEvent() {\n\t return global.FLEXCSS_CONST_TRANSITION_EVENT;\n\t }\n\t\n\t /**\n\t * @returns {int}\n\t */\n\t\n\t }, {\n\t key: 'getScrollbarWidth',\n\t value: function getScrollbarWidth() {\n\t return global.FLEXCSS_CONST_SCROLLBAR_WIDTH;\n\t }\n\t\n\t /**\n\t * @returns {String}\n\t */\n\t\n\t }, {\n\t key: 'getTabEvent',\n\t value: function getTabEvent() {\n\t return global.FLEXCSS_CONST_TAB_EVENT;\n\t }\n\t }]);\n\t\n\t return Settings;\n\t}();\n\t\n\texports.default = Settings;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 12 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\texports.default = function (instance, Constructor) {\n\t if (!(instance instanceof Constructor)) {\n\t throw new TypeError(\"Cannot call a class as a function\");\n\t }\n\t};\n\n/***/ },\n/* 13 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _defineProperty = __webpack_require__(56);\n\t\n\tvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = function () {\n\t function defineProperties(target, props) {\n\t for (var i = 0; i < props.length; i++) {\n\t var descriptor = props[i];\n\t descriptor.enumerable = descriptor.enumerable || false;\n\t descriptor.configurable = true;\n\t if (\"value\" in descriptor) descriptor.writable = true;\n\t (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n\t }\n\t }\n\t\n\t return function (Constructor, protoProps, staticProps) {\n\t if (protoProps) defineProperties(Constructor.prototype, protoProps);\n\t if (staticProps) defineProperties(Constructor, staticProps);\n\t return Constructor;\n\t };\n\t}();\n\n/***/ },\n/* 14 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// optional / simple context binding\n\tvar aFunction = __webpack_require__(72);\n\tmodule.exports = function(fn, that, length){\n\t aFunction(fn);\n\t if(that === undefined)return fn;\n\t switch(length){\n\t case 1: return function(a){\n\t return fn.call(that, a);\n\t };\n\t case 2: return function(a, b){\n\t return fn.call(that, a, b);\n\t };\n\t case 3: return function(a, b, c){\n\t return fn.call(that, a, b, c);\n\t };\n\t }\n\t return function(/* ...args */){\n\t return fn.apply(that, arguments);\n\t };\n\t};\n\n/***/ },\n/* 15 */\n/***/ function(module, exports) {\n\n\t// 7.2.1 RequireObjectCoercible(argument)\n\tmodule.exports = function(it){\n\t if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n\t return it;\n\t};\n\n/***/ },\n/* 16 */\n/***/ function(module, exports) {\n\n\tvar hasOwnProperty = {}.hasOwnProperty;\n\tmodule.exports = function(it, key){\n\t return hasOwnProperty.call(it, key);\n\t};\n\n/***/ },\n/* 17 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(it){\n\t return typeof it === 'object' ? it !== null : typeof it === 'function';\n\t};\n\n/***/ },\n/* 18 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar def = __webpack_require__(1).setDesc\n\t , has = __webpack_require__(16)\n\t , TAG = __webpack_require__(3)('toStringTag');\n\t\n\tmodule.exports = function(it, tag, stat){\n\t if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});\n\t};\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// to indexed object, toObject with fallback for non-array-like ES3 strings\n\tvar IObject = __webpack_require__(40)\n\t , defined = __webpack_require__(15);\n\tmodule.exports = function(it){\n\t return IObject(defined(it));\n\t};\n\n/***/ },\n/* 20 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar $at = __webpack_require__(88)(true);\n\t\n\t// 21.1.3.27 String.prototype[@@iterator]()\n\t__webpack_require__(29)(String, 'String', function(iterated){\n\t this._t = String(iterated); // target\n\t this._i = 0; // next index\n\t// 21.1.5.2.1 %StringIteratorPrototype%.next()\n\t}, function(){\n\t var O = this._t\n\t , index = this._i\n\t , point;\n\t if(index >= O.length)return {value: undefined, done: true};\n\t point = $at(O, index);\n\t this._i += point.length;\n\t return {value: point, done: false};\n\t});\n\n/***/ },\n/* 21 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(92);\n\tvar Iterators = __webpack_require__(5);\n\tIterators.NodeList = Iterators.HTMLCollection = Iterators.Array;\n\n/***/ },\n/* 22 */\n/***/ function(module, exports) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t/*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\tvar PFX = [\"webkit\", \"moz\", \"MS\", \"o\", \"\"];\n\t\n\tvar COL_LEFT_CLASS = 'is-collision-left';\n\t\n\tvar COL_RIGHT_CLASS = 'is-collision-right';\n\t\n\tvar COL_BOTTOM_CLASS = 'is-collision-bottom';\n\t\n\t/**\n\t * Provides shared DOM-Utility functions\n\t */\n\t\n\tvar Util = function () {\n\t function Util() {\n\t _classCallCheck(this, Util);\n\t }\n\t\n\t _createClass(Util, null, [{\n\t key: \"prefixedAnimateEvent\",\n\t\n\t\n\t /**\n\t * Will register the right animation event based on browser\n\t * @param element\n\t * @param type\n\t * @param callback\n\t */\n\t value: function prefixedAnimateEvent(element, type, callback) {\n\t var thisFunction = function thisFunction(e) {\n\t callback.apply(element, [e, thisFunction]);\n\t };\n\t\n\t for (var p = 0; p < PFX.length; p++) {\n\t var thisType = type;\n\t if (!PFX[p]) {\n\t thisType = type.toLowerCase();\n\t }\n\t var name = PFX[p] + thisType;\n\t element.addEventListener(name, thisFunction, true);\n\t }\n\t }\n\t\n\t /**\n\t * Get correct transitionend event\n\t * @returns {String}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: \"whichTransitionEndEvent\",\n\t value: function whichTransitionEndEvent() {\n\t var t = undefined;\n\t var el = document.createElement('fake');\n\t\n\t var transitions = {\n\t transition: 'transitionend',\n\t OTransition: 'oTransitionEnd',\n\t MozTransition: 'transitionend',\n\t WebkitTransition: 'webkitTransitionEnd'\n\t };\n\t\n\t for (t in transitions) {\n\t if (el.style[t] !== undefined) {\n\t return transitions[t];\n\t }\n\t }\n\t }\n\t\n\t /**\n\t * Check if target is part of parent node\n\t * @param target\n\t * @param parent\n\t * @returns {boolean}\n\t */\n\t\n\t }, {\n\t key: \"isPartOfNode\",\n\t value: function isPartOfNode(target, parent) {\n\t if (!target || !parent) {\n\t return false;\n\t }\n\t var now = target;\n\t while (now !== parent && now !== null) {\n\t if (now === parent) {\n\t break;\n\t }\n\t now = now.parentNode;\n\t }\n\t return now !== null;\n\t }\n\t\n\t /**\n\t * Finds the closest element including itself matching a callback\n\t * @param {Node} el\n\t * @param {Function} callback\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: \"closestCallback\",\n\t value: function closestCallback(el, callback) {\n\t var element = el;\n\t while (element !== null) {\n\t if (callback(element)) {\n\t return element;\n\t }\n\t element = element.parentNode;\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Walks the tree until func returns true for given argument\n\t * @param target\n\t * @param func\n\t * @returns {boolean|HTMLElement}\n\t */\n\t\n\t }, {\n\t key: \"parentsUntil\",\n\t value: function parentsUntil(target, func) {\n\t if (!target) {\n\t return false;\n\t }\n\t var now = target;\n\t while (!func(now) && now !== null) {\n\t now = now.parentNode;\n\t }\n\t\n\t return now;\n\t }\n\t\n\t /**\n\t * Generates a unique id\n\t * @return {String}\n\t */\n\t\n\t }, {\n\t key: \"guid\",\n\t value: function guid() {\n\t function s4() {\n\t return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);\n\t }\n\t\n\t return s4() + s4() + \"-\" + s4() + \"-\" + s4() + \"-\" + s4() + \"-\" + (s4() + s4() + s4());\n\t }\n\t\n\t /**\n\t * Detects scrollbar width\n\t * @see http://stackoverflow.com/questions/986937/how-can-i-get-the-browsers-scrollbar-sizes\n\t * @returns {number}\n\t */\n\t\n\t }, {\n\t key: \"getScrollBarWidth\",\n\t value: function getScrollBarWidth() {\n\t var doc = global.document;\n\t var inner = doc.createElement('p');\n\t\n\t inner.style.width = \"100%\";\n\t inner.style.height = \"200px\";\n\t\n\t var outer = doc.createElement('div');\n\t outer.style.position = \"absolute\";\n\t outer.style.top = \"0px\";\n\t outer.style.left = \"0px\";\n\t outer.style.visibility = \"hidden\";\n\t outer.style.width = \"200px\";\n\t outer.style.height = \"150px\";\n\t outer.style.overflow = \"hidden\";\n\t outer.appendChild(inner);\n\t\n\t doc.body.appendChild(outer);\n\t var w1 = inner.offsetWidth;\n\t outer.style.overflow = 'scroll';\n\t var w2 = inner.offsetWidth;\n\t if (w1 === w2) {\n\t w2 = outer.clientWidth;\n\t }\n\t doc.body.removeChild(outer);\n\t\n\t return w1 - w2;\n\t }\n\t\n\t /**\n\t * Run an event once\n\t * @param {String} ev\n\t * @param {HTMLElement|HTMLDocument} target\n\t * @param {Function} func\n\t * @param {boolean} [capture]\n\t * @return Function created listener\n\t */\n\t\n\t }, {\n\t key: \"addEventOnce\",\n\t value: function addEventOnce(ev, target, func, capture) {\n\t var thisFunction = function thisFunction(event) {\n\t func(event, func);\n\t target.removeEventListener(ev, thisFunction, capture);\n\t };\n\t target.addEventListener(ev, thisFunction, capture);\n\t return thisFunction;\n\t }\n\t\n\t /**\n\t * Checks if an element is visible\n\t * @param {HTMLElement} element\n\t * @returns bool\n\t */\n\t\n\t }, {\n\t key: \"isVisible\",\n\t value: function isVisible(element) {\n\t return element.offsetWidth > 0 && element.offsetHeight > 0;\n\t }\n\t\n\t /**\n\t * Creates a camelCaseRepresentation of a dashed string\n\t * @param {String} str\n\t * @returns String\n\t */\n\t\n\t }, {\n\t key: \"dashToCamelCase\",\n\t value: function dashToCamelCase(str) {\n\t return str.replace(/-([a-z])/g, function (g) {\n\t return g[1].toUpperCase();\n\t });\n\t }\n\t\n\t /**\n\t * Creates a copy of `input`\n\t * @param {*} input\n\t * @return *\n\t */\n\t\n\t }, {\n\t key: \"copy\",\n\t value: function copy(input) {\n\t return JSON.parse(JSON.stringify(input));\n\t }\n\t\n\t /**\n\t * Reads options from element (data attributes) and applies to base\n\t * @param {HTMLElement} element\n\t * @param {Object} base\n\t * @return {Object}\n\t */\n\t\n\t }, {\n\t key: \"applyOptionsFromElement\",\n\t value: function applyOptionsFromElement(element, base) {\n\t if (!element) {\n\t return base;\n\t }\n\t var attrs = element.attributes;\n\t for (var i = 0; i < attrs.length; i++) {\n\t var attr = attrs[i];\n\t if (attr) {\n\t var s = Util.dashToCamelCase(attr.nodeName.replace('data-', ''));\n\t var val = attr.nodeValue;\n\t if (base.hasOwnProperty(s)) {\n\t // skip functions\n\t if (typeof base[s] === 'function') {\n\t continue;\n\t }\n\t if (typeof base[s] === 'boolean') {\n\t base[s] = parseInt(val || 1, 10) === 1;\n\t } else {\n\t base[s] = val;\n\t }\n\t }\n\t }\n\t }\n\t return base;\n\t }\n\t\n\t /**\n\t * Will position an element directly at given target\n\t * Is aware of a given collision container to detect edges\n\t * Will put elementToPosition either to left, center or right edge (prefer right)\n\t * and either to bottom or top (prefers bottom)\n\t *\n\t * You may overwrite preferred positioned with `centerHorizontal` and `positionTop`\n\t *\n\t * @param {HTMLElement|ClientRect} target the target container to align to\n\t * @param {HTMLElement} elementToPosition the element to position\n\t * @param {HTMLElement} collisionContainer the outer container to prevent collisions\n\t * @param {bool} [centerHorizontal] set true to center element, otherwise it's put on the right border by default\n\t * @param {bool} [positionTop] flip top, by default element is positioned to the bottom.\n\t * @returns {HTMLElement}\n\t */\n\t\n\t }, {\n\t key: \"setupPositionNearby\",\n\t value: function setupPositionNearby(target, elementToPosition, collisionContainer, centerHorizontal, positionTop) {\n\t // determine relative offsets\n\t var amountTop = 0;\n\t var amountLeft = 0;\n\t Util.parentsUntil(target.parentNode, function (el) {\n\t if (!(el instanceof HTMLElement)) {\n\t return false;\n\t }\n\t var style = window.getComputedStyle(el);\n\t if (Util.isPartOfNode(elementToPosition, el)) {\n\t if (style && style.position === 'relative') {\n\t amountTop += el.offsetTop || 0;\n\t amountLeft += el.offsetLeft || 0;\n\t }\n\t return false;\n\t }\n\t return true;\n\t });\n\t\n\t var targetPosition = target instanceof HTMLElement ? target.getBoundingClientRect() : target;\n\t var elementRect = elementToPosition.getBoundingClientRect();\n\t var colRect = collisionContainer.getBoundingClientRect();\n\t var targetTop = targetPosition.top - amountTop;\n\t var targetRight = targetPosition.right;\n\t var isCollisionTop = targetTop - elementRect.height <= 0;\n\t var isCollisionBottom = window.innerHeight < targetTop + amountTop + targetPosition.height + elementRect.height;\n\t var isCollisionLeft = targetRight < elementRect.width;\n\t var targetLeft = targetPosition.left;\n\t var isCollisionRight = targetLeft + elementRect.width > colRect.width;\n\t var classList = elementToPosition.classList;\n\t\n\t classList.remove(COL_RIGHT_CLASS);\n\t classList.remove(COL_LEFT_CLASS);\n\t classList.remove(COL_BOTTOM_CLASS);\n\t\n\t var calcTop = undefined;\n\t var calcLeft = undefined;\n\t if (isCollisionLeft && !isCollisionRight) {\n\t // put element to left if collision with left\n\t calcLeft = targetPosition.left - colRect.left - amountLeft + \"px\";\n\t classList.add(COL_LEFT_CLASS);\n\t } else {\n\t // maybe center if no collision with either side\n\t var rightPosition = targetRight - elementRect.width - colRect.left - amountLeft + \"px\";\n\t var leftCentered = (targetLeft + targetPosition.width / 2 - elementRect.width / 2 || 0) - colRect.left;\n\t var collisionCentered = leftCentered + elementRect.width > colRect.width;\n\t if (centerHorizontal && !collisionCentered) {\n\t calcLeft = leftCentered + \"px\";\n\t } else {\n\t classList.add(COL_RIGHT_CLASS);\n\t calcLeft = rightPosition;\n\t }\n\t }\n\t\n\t if (isCollisionBottom || positionTop && !isCollisionTop) {\n\t // Put Element on top if collision\n\t calcTop = targetTop - elementRect.height - colRect.top + \"px\";\n\t classList.add(COL_BOTTOM_CLASS);\n\t } else {\n\t calcTop = targetTop + targetPosition.height - colRect.top + \"px\";\n\t }\n\t\n\t elementToPosition.style.cssText = \"top:\" + calcTop + \";left:\" + calcLeft + \";\";\n\t\n\t return elementToPosition;\n\t }\n\t\n\t /**\n\t * Brings a given element into viewport\n\t * @param {HTMLElement} el\n\t * @param {int|function}[optionalOffset]\n\t */\n\t\n\t }, {\n\t key: \"scrollToElement\",\n\t value: function scrollToElement(el, optionalOffset) {\n\t el.scrollIntoView();\n\t var thisOffset = optionalOffset;\n\t // optionally use a additional scrollDif\n\t if (thisOffset) {\n\t if (typeof thisOffset === 'function') {\n\t thisOffset = optionalOffset();\n\t }\n\t if (thisOffset > 0) {\n\t var scrolledY = window.pageYOffset;\n\t if (scrolledY) {\n\t window.scroll(0, scrolledY - thisOffset);\n\t }\n\t }\n\t }\n\t }\n\t }]);\n\t\n\t return Util;\n\t}();\n\t\n\texports.default = Util;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 23 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_WRAPPED_NODE = exports.ATTR_DATA_ORIGINAL_OFFSET_START = undefined;\n\t\n\tvar _getPrototypeOf = __webpack_require__(37);\n\t\n\tvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\t\n\tvar _classCallCheck2 = __webpack_require__(12);\n\t\n\tvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\t\n\tvar _createClass2 = __webpack_require__(13);\n\t\n\tvar _createClass3 = _interopRequireDefault(_createClass2);\n\t\n\tvar _possibleConstructorReturn2 = __webpack_require__(39);\n\t\n\tvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\t\n\tvar _inherits2 = __webpack_require__(38);\n\t\n\tvar _inherits3 = _interopRequireDefault(_inherits2);\n\t\n\tvar _RenderResult = __webpack_require__(34);\n\t\n\tvar _RenderResult2 = _interopRequireDefault(_RenderResult);\n\t\n\tvar _RenderingEvents2 = __webpack_require__(35);\n\t\n\tvar _RenderingEvents3 = _interopRequireDefault(_RenderingEvents2);\n\t\n\tvar _Util = __webpack_require__(24);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar TAG_NAME = 'x-marker';\n\t/**\n\t * @type {string}\n\t */\n\t/* global Node */\n\t\n\tvar ATTR_DATA_ORIGINAL_OFFSET_START = exports.ATTR_DATA_ORIGINAL_OFFSET_START = 'data-original-offset-start';\n\t/**\n\t * @type {string}\n\t */\n\tvar DATA_ORIGINAL_TEXT_NODE_INDEX = 'original-text-node-index';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_START_END = 'data-is-start-end';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_IS_HIGHLIGHT_NODE = 'data-is-highlight-node';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_ID = 'data-selection-id';\n\t\n\t/**\n\t * @see https://developer.mozilla.org/de/docs/Web/API/Node/compareDocumentPosition\n\t * @type {number}\n\t */\n\tvar DOCUMENT_POSITION_CONTAINED_BY = 16;\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_WRAPPED_NODE = exports.EVENT_WRAPPED_NODE = 'wrapped-node';\n\t\n\t/**\n\t * Manages a single Render\n\t */\n\t\n\tvar Rendering = function (_RenderingEvents) {\n\t (0, _inherits3.default)(Rendering, _RenderingEvents);\n\t\n\t\n\t /**\n\t * @param {Document} document\n\t * @param {object} options\n\t * @param {Node} context\n\t */\n\t\n\t function Rendering(document, options, context) {\n\t (0, _classCallCheck3.default)(this, Rendering);\n\t\n\t\n\t /**\n\t * ID of rendering, will be set on each element that is part of it\n\t * @type {String}\n\t */\n\t\n\t var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(Rendering).call(this, options, document));\n\t\n\t _this.id = _Util2.default.guid();\n\t\n\t /**\n\t * StartContainer\n\t * @type {Node}\n\t */\n\t _this.startContainer = null;\n\t\n\t /**\n\t * EndContainer\n\t * @type {Node}\n\t */\n\t _this.endContainer = null;\n\t\n\t /**\n\t * @type {Node}\n\t */\n\t _this.context = context || _this.document;\n\t\n\t /**\n\t * Flag if this instance has been rendered\n\t * @type {RenderResult}\n\t * @private\n\t */\n\t _this._renderResult = null;\n\t return _this;\n\t }\n\t\n\t /**\n\t * @returns {string} id of this rendering\n\t */\n\t\n\t\n\t (0, _createClass3.default)(Rendering, [{\n\t key: 'getId',\n\t value: function getId() {\n\t return this.id;\n\t }\n\t\n\t /**\n\t * @param {string} id\n\t * @returns {Rendering}\n\t */\n\t\n\t }, {\n\t key: 'setId',\n\t value: function setId(id) {\n\t var _this2 = this;\n\t\n\t this.id = id;\n\t\n\t if (this._renderResult) {\n\t this.wrapperNodes.forEach(function (node) {\n\t return node.setAttribute(ATTR_DATA_ID, _this2.id);\n\t });\n\t }\n\t\n\t return this;\n\t }\n\t\n\t /**\n\t * Creates a Template used as a wrapper and an indication that this is a highlight node\n\t * @param {Boolean} [omitHighlight]\n\t * @returns {Node}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_createWrapTemplate',\n\t value: function _createWrapTemplate(omitHighlight) {\n\t var el = this.document.createElement(TAG_NAME);\n\t var vTrue = \"true\";\n\t\n\t if (!omitHighlight) {\n\t el.className = this.options.className.join(' ');\n\t // save this marker instance to given node\n\t Rendering.setMarklibInstance(el, this);\n\t // keep track of highlight nodes\n\t this.wrapperNodes.push(el);\n\t el.setAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE, vTrue);\n\t el.setAttribute(ATTR_DATA_ID, this.getId());\n\t }\n\t el.setAttribute(_Util.DATA_IS_SELECTION, vTrue);\n\t\n\t return el;\n\t }\n\t\n\t /**\n\t * Creates a Template to use as start and end marks\n\t * @param {String} text\n\t * @returns {Node}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_createStartEndWrapTemplate',\n\t value: function _createStartEndWrapTemplate(text) {\n\t var el = this._createWrapTemplate();\n\t el.setAttribute(ATTR_DATA_START_END, 'true');\n\t el.textContent = text;\n\t return el;\n\t }\n\t\n\t /**\n\t * Creates Start or End Container Element\n\t * @param initialNode\n\t * @param text\n\t * @param offset\n\t * @param index\n\t * @returns {Node}\n\t */\n\t\n\t }, {\n\t key: '_createStartOrEndContainer',\n\t value: function _createStartOrEndContainer(initialNode, text, offset, index) {\n\t var wrapper = this._createStartEndWrapTemplate(text);\n\t wrapper.setAttribute(_Util.ATTR_DATA_ORIGINAL_INDEX, _Util2.default.getIndexParentIfHas(initialNode, index));\n\t wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n\t wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n\t\n\t return wrapper;\n\t }\n\t\n\t /**\n\t * Wraps given element\n\t * @param {Node|HTMLElement} el\n\t * @param [optionalLength]\n\t * @param [optionalIndex]\n\t * @param [optionalIsSameNode]\n\t * @param {Boolean} [omitHighlight] set to true to prevent node to be a highlight node\n\t * @returns {Node}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_createWrap',\n\t value: function _createWrap(el, optionalLength, optionalIndex, optionalIsSameNode, omitHighlight) {\n\t var originalIndex = optionalIndex >= 0 ? optionalIndex : _Util2.default.calcIndex(el);\n\t var wrapper = this._createWrapTemplate(omitHighlight);\n\t wrapper.setAttribute(_Util.ATTR_DATA_ORIGINAL_INDEX, _Util2.default.getIndexParentIfHas(el, originalIndex));\n\t var offsetLength = optionalLength >= 0 ? optionalLength : _Util2.default.getOffsetParentIfHas(el);\n\t wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offsetLength);\n\t\n\t // Save a reference to original text node in wrapper\n\t wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, originalIndex);\n\t\n\t if (optionalIsSameNode) {\n\t wrapper.setAttribute(ATTR_DATA_START_END, ATTR_DATA_START_END);\n\t }\n\t var wrap = _Util2.default.wrap(el, wrapper);\n\t\n\t this.emit(EVENT_WRAPPED_NODE, el, wrap);\n\t\n\t return wrap;\n\t }\n\t\n\t /**\n\t * Create split container element\n\t * @param originalElement {Node} original text node element that is created a wrapper for\n\t * @param index\n\t * @param offset\n\t * @returns {Node}\n\t */\n\t\n\t }, {\n\t key: '_createSplitContainer',\n\t value: function _createSplitContainer(originalElement, index, offset) {\n\t var wrapper = this.document.createElement(TAG_NAME);\n\t wrapper.setAttribute(_Util.DATA_IS_SELECTION, 'true');\n\t wrapper.setAttribute(_Util.ATTR_DATA_ORIGINAL_INDEX, _Util2.default.getIndexParentIfHas(originalElement, index));\n\t wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n\t wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n\t return wrapper;\n\t }\n\t\n\t /**\n\t * Walks the tree\n\t * @param start\n\t * @param endContainer\n\t * @param nextParent\n\t */\n\t\n\t }, {\n\t key: 'walk',\n\t value: function walk(start, endContainer, nextParent) {\n\t var nextParentNode = start;\n\t while (nextParentNode && nextParentNode !== nextParent.parentNode) {\n\t var currentParentNode = nextParentNode;\n\t nextParentNode = nextParentNode.parentNode;\n\t if (this.wrapSiblings(currentParentNode.nextSibling, endContainer)) {\n\t break;\n\t }\n\t }\n\t }\n\t\n\t /**\n\t * Will Wrap all textNode siblings of a container (start) inside a defined Element (like a span)\n\t * If an Element node is found, it will wrap all children of this node inside a element as well.\n\t * It will stop if endContainer is found as a node\n\t *\n\t * @param {Node} start\n\t * @param {Node} endContainer\n\t * @returns {boolean} (true if endContainer was found)\n\t */\n\t\n\t }, {\n\t key: 'wrapSiblings',\n\t value: function wrapSiblings(start, endContainer) {\n\t var _this3 = this;\n\t\n\t var next = start;\n\t var found = false;\n\t\n\t // Capsule some logic\n\t var wrap = function wrap(n) {\n\t var instance = Rendering.getMarklibInstance(n.parentNode);\n\t if (n.parentNode.hasAttribute(ATTR_DATA_START_END) && n.parentNode.hasAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE) && instance === _this3) {\n\t _this3._createWrap(n, undefined, undefined, undefined, true);\n\t } else {\n\t _this3._createWrap(n);\n\t }\n\t };\n\t\n\t // helper functions\n\t\n\t var wrapIf = function wrapIf(n) {\n\t if (!_Util2.default.nodeIsEmpty(n)) {\n\t wrap(n);\n\t }\n\t };\n\t\n\t var walkIfContained = function walkIfContained(e) {\n\t if (e === endContainer) {\n\t return false;\n\t }\n\t if (Node.TEXT_NODE === e.nodeType) {\n\t wrapIf(e);\n\t }\n\t return true;\n\t };\n\t\n\t var walkIfNotContained = function walkIfNotContained(el) {\n\t wrapIf(el);\n\t };\n\t\n\t while (next !== null && next !== endContainer) {\n\t var currentNext = next;\n\t next = next.nextSibling;\n\t // Found a text node, directly wrap inside a span\n\t if (Node.TEXT_NODE === currentNext.nodeType) {\n\t wrapIf(currentNext);\n\t } else {\n\t if (currentNext.compareDocumentPosition(endContainer) & DOCUMENT_POSITION_CONTAINED_BY) {\n\t _Util2.default.walkDom(currentNext, walkIfContained);\n\t found = true;\n\t } else {\n\t _Util2.default.walkTextNodes(currentNext, walkIfNotContained);\n\t }\n\t if (found) {\n\t return true;\n\t }\n\t }\n\t }\n\t return found;\n\t }\n\t\n\t /**\n\t * Marks text of the same node\n\t * @param {Node} textNode\n\t * @param {int} startIndex\n\t * @param {int} endIndex\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_markTextSameNode',\n\t value: function _markTextSameNode(textNode, startIndex, endIndex) {\n\t var initialText = textNode.nodeValue;\n\t var initialIndex = _Util2.default.calcIndex(textNode);\n\t\n\t if (!initialText) {\n\t return false;\n\t }\n\t // If there is an unmarked part in the beginning of the text node,\n\t // cut off that part and put it into it's own textnode.\n\t if (startIndex > 0) {\n\t var textBefore = initialText.slice(0, startIndex);\n\t textNode.parentNode.insertBefore(this.document.createTextNode(textBefore), textNode);\n\t // wrap cutted text node:\n\t _Util2.default.wrap(textNode.previousSibling, this._createSplitContainer(textNode, initialIndex, _Util2.default.getOffsetParentIfHas(textNode)));\n\t }\n\t // If there is an unmarked part at the end of the text node,\n\t // cut off that part and put it into it's own textnode.\n\t if (endIndex < initialText.length) {\n\t var textAfter = initialText.slice(endIndex, initialText.length);\n\t textNode.parentNode.insertBefore(this.document.createTextNode(textAfter), textNode.nextSibling);\n\t _Util2.default.wrap(textNode.nextSibling, this._createSplitContainer(textNode, initialIndex, _Util2.default.getOffsetParentIfHas(textNode) + endIndex));\n\t }\n\t\n\t // Cutoff the unmarked parts and wrap the textnode into a span.\n\t textNode.nodeValue = initialText.slice(startIndex, endIndex);\n\t this.startContainer = this._createWrap(textNode, _Util2.default.getOffsetParentIfHas(textNode) + startIndex, initialIndex, true).parentNode;\n\t this.endContainer = this.startContainer;\n\t return this.startContainer;\n\t }\n\t\n\t /**\n\t * Marks text of end and start containers if start and end nodes are different\n\t * Important: There might be no end container!\n\t *\n\t * @param {Node} startContainer\n\t * @param {Node} endContainer\n\t * @param {int} startOffset\n\t * @param {int} endOffset\n\t * @returns {{startT: (Node), endT: (Node)}}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_markTextDifferentNode',\n\t value: function _markTextDifferentNode(startContainer, endContainer, startOffset, endOffset) {\n\t // Get current for both start and end:\n\t var startContainerIndex = _Util2.default.calcIndex(startContainer);\n\t var endContainerIndex = _Util2.default.calcIndex(endContainer);\n\t\n\t // Split text\n\t var fullTextStartValue = startContainer.nodeValue;\n\t // init with startContainer because we may have not a text node here\n\t var startT = startContainer;\n\t\n\t if (undefined !== fullTextStartValue) {\n\t var partTextStartValue = fullTextStartValue.slice(startOffset, fullTextStartValue.length);\n\t // Set new text to start node\n\t startContainer.nodeValue = fullTextStartValue.slice(0, startOffset);\n\t\n\t var offsetStart = _Util2.default.getOffsetParentIfHas(startContainer);\n\t // Create a new node for splitted text, offset is the length of new startContainer.nodeValue:\n\t startT = this._createStartOrEndContainer(startContainer, partTextStartValue, offsetStart === startOffset ? offsetStart : offsetStart + startOffset, startContainerIndex);\n\t // Append this node after startContainer\n\t startContainer.parentNode.insertBefore(startT, startContainer.nextSibling);\n\t this.startContainer = startT;\n\t\n\t if (startContainer.nodeValue) {\n\t // Wrap start container in detection node, offset is always 0 or parent offset.\n\t _Util2.default.wrap(startContainer, this._createSplitContainer(startContainer, startContainerIndex, _Util2.default.getOffsetParentIfHas(startContainer)));\n\t }\n\t }\n\t\n\t // init with endContainer because we may have not a text node here\n\t var endT = endContainer;\n\t\n\t // 2. Extract end Text node,\n\t var fullTextEndValue = endContainer.nodeValue;\n\t // It's possible that end container value is null (if a whole paragraph is marked)\n\t if (undefined !== fullTextEndValue) {\n\t // Split text\n\t var partTextEndValue = fullTextEndValue.slice(0, endOffset);\n\t endContainer.nodeValue = fullTextEndValue.slice(endOffset, fullTextEndValue.length);\n\t // End Container start offset is always 0 or parent offset.\n\t endT = this._createStartOrEndContainer(endContainer, partTextEndValue, _Util2.default.getOffsetParentIfHas(endContainer), endContainerIndex);\n\t\n\t endContainer.parentNode.insertBefore(endT, endContainer);\n\t this.endContainer = endT;\n\t var offsetParent = _Util2.default.getOffsetParentIfHas(endContainer);\n\t _Util2.default.wrap(endContainer, this._createSplitContainer(endContainer, endContainerIndex, offsetParent === endOffset ? offsetParent : offsetParent + endOffset));\n\t }\n\t\n\t return {\n\t startT: startT,\n\t endT: endT\n\t };\n\t }\n\t\n\t /**\n\t * Renders a selection\n\t * @param {Node} startContainerP\n\t * @param {Node} endContainerP\n\t * @param {Node} commonAncestor\n\t * @param {int} startOffset\n\t * @param {int} endOffsetP\n\t * @returns RenderResult\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_renderWithElements',\n\t value: function _renderWithElements(startContainerP, endContainerP, commonAncestor, startOffset, endOffsetP) {\n\t if (this._renderResult) {\n\t return this._renderResult;\n\t }\n\t var startContainer = startContainerP;\n\t var endContainer = endContainerP;\n\t var endOffset = endOffsetP;\n\t var outer = _Util2.default.parents(startContainer, commonAncestor);\n\t outer = outer[outer.length - 1];\n\t var contextContainer = outer ? outer : commonAncestor;\n\t\n\t // Same Element, means the selection is fully contained in a discrete area, start and endpoint have the same parent\n\t // but are different nodes:\n\t\n\t // Start and End offset have to be recalculated because dom might be already changed by highlighting in given node\n\t // 1: First detect real start offset in startContainer:\n\t\n\t // That works by selecting the highest wrapper and get original-offset-start data element, see \"findOriginalOffset\"\n\t // So first select that container:\n\t var originalStartOffset = _Util2.default.findOriginalOffset(startContainer);\n\t var originalEndOffset = _Util2.default.findOriginalOffset(endContainer);\n\t\n\t // We may run into Browser Bugs:\n\t\n\t // If both are not text nodes, use next sibling as endContainer\n\t if (startContainer.nodeType !== Node.TEXT_NODE && endContainer.nodeType !== Node.TEXT_NODE) {\n\t if (startContainer === endContainer) {\n\t endContainer = endContainer.nextElementSibling || endContainer;\n\t }\n\t }\n\t // IF start/end container is not type of text, select first child text node:\n\t // We run in some bugs with firefox here that selects no text-nodes sometimes, trying to fix this here\n\t // Sometimes does not work correctly... (specially when DOM was modified)\n\t if (startContainer.nodeType !== Node.TEXT_NODE) {\n\t _Util2.default.walkDom(startContainer, function (el) {\n\t if (el.nodeType === Node.TEXT_NODE) {\n\t startContainer = el;\n\t return false;\n\t }\n\t return true;\n\t });\n\t }\n\t\n\t if (endContainer.nodeType !== Node.TEXT_NODE) {\n\t var toFindNode = startContainer;\n\t\n\t if (endOffset === 0) {\n\t toFindNode = endContainer.previousElementSibling || startContainer;\n\t }\n\t\n\t // Get the last text node:\n\t var endContainerContents = _Util2.default.closest(toFindNode, ':not([' + _Util.DATA_IS_SELECTION + '])').childNodes;\n\t if (endContainerContents.length) {\n\t var r = endContainerContents[endContainerContents.length - 1];\n\t if (r.nodeType === Node.TEXT_NODE) {\n\t endContainer = r;\n\t endOffset = r.length;\n\t } else {\n\t var f = r.lastChild;\n\t while (f !== null) {\n\t if (f && f.nodeType === Node.TEXT_NODE) {\n\t endContainer = f;\n\t endOffset = f.length;\n\t if (f.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n\t endOffset = parseInt(f.parentNode.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) + endOffset;\n\t }\n\t }\n\t f = f.lastChild;\n\t }\n\t }\n\t }\n\t // still no textNode?\n\t if (endContainer.nodeType !== Node.TEXT_NODE) {\n\t throw Error('Could not found endContainer, highlighting would be unstable');\n\t }\n\t }\n\t\n\t this._renderResult = new _RenderResult2.default(\n\t // Real offset is calculated by relative length and absolute length\n\t originalStartOffset + startOffset, originalEndOffset + endOffset,\n\t // get the path for this selection\n\t _Util2.default.getPath(startContainer, this.context), _Util2.default.getPath(endContainer, this.context));\n\t\n\t this._renderResult.instance = this;\n\t\n\t this._renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, !!outer);\n\t\n\t return this._renderResult;\n\t }\n\t\n\t /**\n\t * Renders a given selection\n\t *\n\t * @param {Node} startContainer\n\t * @param {Node} endContainer\n\t * @param {int} startOffset\n\t * @param {int} endOffset\n\t * @param {Node} contextContainer\n\t * @param {Boolean} outer\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_renderSelection',\n\t value: function _renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, outer) {\n\t // if start and end-container are the same, mark text on the same node\n\t if (startContainer === endContainer) {\n\t this._markTextSameNode(startContainer, startOffset, endOffset);\n\t } else {\n\t var result = this._markTextDifferentNode(startContainer, endContainer, startOffset, endOffset);\n\t var index = this.wrapperNodes.indexOf(result.endT);\n\t // remove endContainer, to keep order:\n\t this.wrapperNodes.splice(index, 1);\n\t if (!outer) {\n\t this.wrapSiblings(result.startT.nextSibling, endContainer);\n\t } else {\n\t this.walk(result.startT, endContainer, contextContainer);\n\t }\n\t this.wrapperNodes.push(result.endT);\n\t }\n\t }\n\t\n\t /**\n\t * Prepares to render a Selection with path selectors\n\t * ```\n\t * A Path looks like this:\n\t *\n\t * #selector;#textnode;#offset\n\t * ``\n\t * @param {string} startPath\n\t * @param {string} endPath\n\t * @returns {string}\n\t */\n\t\n\t }, {\n\t key: 'renderWithPath',\n\t value: function renderWithPath(startPath, endPath) {\n\t var startContainer = _Util2.default.deserializePath(startPath, this.context);\n\t var endContainer = _Util2.default.deserializePath(endPath, this.context);\n\t if (startContainer && endContainer && startContainer.node && endContainer.node) {\n\t var range = document.createRange();\n\t range.setStart(startContainer.node, startContainer.offset);\n\t range.setEnd(endContainer.node, endContainer.offset);\n\t var text = range.toString();\n\t var result = this.renderWithRange(range);\n\t result.text = text;\n\t return text;\n\t }\n\t throw new Error('Could not find start- and/or end-container in document');\n\t }\n\t\n\t /**\n\t * @returns {RenderResult}\n\t */\n\t\n\t }, {\n\t key: 'renderWithResult',\n\t\n\t\n\t /**\n\t * Renders a result (that returned from `renderWithRange`)\n\t * @param {RenderResult|Object} result\n\t * @returns {string}\n\t */\n\t value: function renderWithResult(result) {\n\t return this.renderWithPath(result.startContainerPath + ';' + result.startOffset, result.endContainerPath + ';' + result.endOffset);\n\t }\n\t\n\t /**\n\t * Prepares a selection with a range object\n\t * @param {Range} range\n\t * @returns {Object}\n\t */\n\t\n\t }, {\n\t key: 'renderWithRange',\n\t value: function renderWithRange(range) {\n\t var text = range.toString();\n\t var result = this._renderWithElements(range.startContainer, range.endContainer, range.commonAncestorContainer, range.startOffset, range.endOffset);\n\t result.text = text;\n\t return result;\n\t }\n\t\n\t /**\n\t * Removes bindings and classNames to nodes\n\t */\n\t\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t this.wrapperNodes.forEach(function (node) {\n\t delete node.marklibInstance;\n\t node.className = '';\n\t });\n\t this.removeEvent();\n\t }\n\t\n\t /**\n\t * @param {Node} el\n\t * @param {Rendering} instance\n\t * @returns {Node}\n\t */\n\t\n\t }, {\n\t key: 'result',\n\t get: function get() {\n\t return this._renderResult;\n\t }\n\t }], [{\n\t key: 'setMarklibInstance',\n\t value: function setMarklibInstance(el, instance) {\n\t el.marklibInstance = instance;\n\t return el;\n\t }\n\t\n\t /**\n\t * @param {Node} el\n\t * @returns {Rendering|null|undefined}\n\t */\n\t\n\t }, {\n\t key: 'getMarklibInstance',\n\t value: function getMarklibInstance(el) {\n\t return el ? el.marklibInstance : null;\n\t }\n\t }]);\n\t return Rendering;\n\t}(_RenderingEvents3.default);\n\t\n\texports.default = Rendering;\n\n/***/ },\n/* 24 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.DATA_IS_SELECTION = exports.ATTR_DATA_ORIGINAL_INDEX = undefined;\n\t\n\tvar _classCallCheck2 = __webpack_require__(12);\n\t\n\tvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\t\n\tvar _createClass2 = __webpack_require__(13);\n\t\n\tvar _createClass3 = _interopRequireDefault(_createClass2);\n\t\n\tvar _Rendering = __webpack_require__(23);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/* global Node, NodeList, Element */\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_ORIGINAL_INDEX = exports.ATTR_DATA_ORIGINAL_INDEX = 'data-original-index';\n\t/**\n\t * @type {string}\n\t */\n\tvar DATA_IS_SELECTION = exports.DATA_IS_SELECTION = 'data-is-selection';\n\t/**\n\t * @type {string}\n\t */\n\tvar SERIALIZE_SEPARATOR = \";\";\n\t\n\t// polyfill for matchesSelector, IE 10/11 does not support Element.matches\n\tif (Element && !Element.prototype.matches) {\n\t var p = Element.prototype;\n\t p.matches = p.matchesSelector || p.mozMatchesSelector || p.msMatchesSelector || p.oMatchesSelector || p.webkitMatchesSelector;\n\t}\n\t\n\t/**\n\t * Utility class\n\t * Contains DOM/Node manipulation helpers\n\t */\n\t\n\tvar Util = function () {\n\t function Util() {\n\t (0, _classCallCheck3.default)(this, Util);\n\t }\n\t\n\t (0, _createClass3.default)(Util, null, [{\n\t key: 'nodeListFilter',\n\t\n\t\n\t /**\n\t * Filter for a NodeList\n\t * @param {NodeList} nodes\n\t * @param {Function} func\n\t *\n\t * @returns {Array.}\n\t */\n\t value: function nodeListFilter(nodes, func) {\n\t return Array.prototype.filter.call(nodes || [], func);\n\t }\n\t\n\t /**\n\t * Generates a unique id\n\t *\n\t * @return {String}\n\t */\n\t\n\t }, {\n\t key: 'guid',\n\t value: function guid() {\n\t var s4 = function s4() {\n\t return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);\n\t };\n\t return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();\n\t }\n\t\n\t /**\n\t * Checks if a given node is empty\n\t * @param {HTMLElement} node\n\t *\n\t * @returns {*}\n\t */\n\t\n\t }, {\n\t key: 'nodeIsEmpty',\n\t value: function nodeIsEmpty(node) {\n\t return node.nodeValue.match(/^[\\s]*$/g);\n\t }\n\t\n\t /**\n\t * @param {HTMLElement} node\n\t * @param [optionalList]\n\t *\n\t * @return {int} the index of this node in context to it's siblings\n\t */\n\t\n\t }, {\n\t key: 'index',\n\t value: function index(node, optionalList) {\n\t var children = optionalList || (node.nodeType === Node.TEXT_NODE ? node.parentNode.childNodes : node.parentNode.children);\n\t return Array.prototype.indexOf.call(children || [], node);\n\t }\n\t\n\t /**\n\t * Wraps given `elms` in given `wrapper`\n\t *\n\t * @param {HTMLElement|Array.|Node} elms\n\t * @param {HTMLElement|Node} wrapper\n\t *\n\t * @return {HTMLElement}\n\t */\n\t\n\t }, {\n\t key: 'wrap',\n\t value: function wrap(elms, wrapper) {\n\t var thisElms = elms;\n\t\n\t if (!thisElms) {\n\t return wrapper;\n\t }\n\t // Convert `elms` to an array, if necessary.\n\t if (!(thisElms instanceof NodeList || thisElms instanceof Array)) {\n\t thisElms = [thisElms];\n\t }\n\t for (var i = thisElms.length - 1; i >= 0; i--) {\n\t var child = i > 0 ? wrapper.cloneNode(true) : wrapper;\n\t var el = thisElms[i];\n\t // Cache the current parent and sibling.\n\t var parent = el.parentNode;\n\t var sibling = el.nextSibling;\n\t\n\t child.appendChild(el);\n\t if (sibling) {\n\t parent.insertBefore(child, sibling);\n\t } else {\n\t parent.appendChild(child);\n\t }\n\t }\n\t return wrapper;\n\t }\n\t\n\t /**\n\t * Will calculate an index depending on an already modified dom by marklib\n\t * @param {HTMLElement|Node} node\n\t *\n\t * @returns {int|boolean}\n\t */\n\t\n\t }, {\n\t key: 'calcIndex',\n\t value: function calcIndex(node) {\n\t var calculatedIndex = 0;\n\t var foundWrapper = false;\n\t var nodes = node.parentNode.childNodes;\n\t var length = nodes.length;\n\t for (var thisIndex = 0; thisIndex < length; thisIndex++) {\n\t var el = nodes[thisIndex];\n\t if (el === node) {\n\t break;\n\t }\n\t // reset index when original index is found\n\t var maybeIndexOfOriginal = el.getAttribute ? el.getAttribute(ATTR_DATA_ORIGINAL_INDEX) : null;\n\t\n\t if (maybeIndexOfOriginal) {\n\t calculatedIndex = parseInt(maybeIndexOfOriginal, 10);\n\t foundWrapper = true;\n\t }\n\t calculatedIndex++;\n\t }\n\t return foundWrapper ? calculatedIndex : Util.index(node);\n\t }\n\t\n\t /**\n\t * @param {HTMLElement|Node} el\n\t * @param {String} [optionalSelector] will test given element against a selector\n\t * if matches, returns this element immediately\n\t *\n\t * @return {Array.} an array of all found parents of given element (and optional selector)\n\t */\n\t\n\t }, {\n\t key: 'parents',\n\t value: function parents(el, optionalSelector) {\n\t return Util.parentsCallback(el, function (element) {\n\t if (optionalSelector && (element === optionalSelector || typeof optionalSelector === 'string' && element.matches && element.matches(optionalSelector))) {\n\t return true;\n\t } else if (!optionalSelector) {\n\t return true;\n\t }\n\t return false;\n\t });\n\t }\n\t\n\t /**\n\t * @param {HTMLElement|Node} el\n\t * @param {Function} callback\n\t * @return {Array.} an array of all found parents of given element (and optional selector)\n\t */\n\t\n\t }, {\n\t key: 'parentsCallback',\n\t value: function parentsCallback(el, callback) {\n\t var element = el;\n\t var foundElements = [];\n\t while (element.parentNode !== null) {\n\t element = element.parentNode;\n\t if (callback(element)) {\n\t foundElements.push(element);\n\t }\n\t }\n\t return foundElements;\n\t }\n\t\n\t /**\n\t * Finds a parent node (the closest) with a given selector\n\t * @param {Node} el\n\t * @param {String} selector\n\t *\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: 'parent',\n\t value: function parent(el, selector) {\n\t var element = el;\n\t while (element.parentNode !== null) {\n\t element = element.parentNode;\n\t if (element.matches && element.matches(selector)) {\n\t return element;\n\t }\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Finds the closest element including itself matching a given selector\n\t * @param {Node} el\n\t * @param selector\n\t *\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: 'closest',\n\t value: function closest(el, selector) {\n\t return Util.closestCallback(el, function (element) {\n\t return element.matches && element.matches(selector);\n\t });\n\t }\n\t\n\t /**\n\t * Finds the closest element including itself matching a callback\n\t * @param {Node} el\n\t * @param {Function} callback\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: 'closestCallback',\n\t value: function closestCallback(el, callback) {\n\t var element = el;\n\t while (element !== null) {\n\t if (callback(element)) {\n\t return element;\n\t }\n\t element = element.parentNode;\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Finds the outermost fitting element that matches callback\n\t * @param {Node} el\n\t * @param {Function} callback\n\t * @returns {Node|boolean}\n\t */\n\t\n\t }, {\n\t key: 'outerMostCallback',\n\t value: function outerMostCallback(el, callback) {\n\t var element = el;\n\t var lastValid = false;\n\t while (element !== null) {\n\t if (callback(element)) {\n\t lastValid = element;\n\t }\n\t element = element.parentNode;\n\t }\n\t return lastValid;\n\t }\n\t\n\t /**\n\t * @param {HTMLElement} n\n\t *\n\t * @return {boolean}\n\t */\n\t\n\t }, {\n\t key: 'isMarkNode',\n\t value: function isMarkNode(n) {\n\t return n instanceof HTMLElement && n.hasAttribute(DATA_IS_SELECTION);\n\t }\n\t\n\t /**\n\t * Determines the correct paths and excludes all `marklib` generated content\n\t * TODO: To improve performance we could shorten the path if an ID is present in it.\n\t * @param {HTMLElement|Node} el\n\t * @param {HTMLElement|Node} [context] if given extraction path is relative to this element\n\t * @returns {string}\n\t */\n\t\n\t }, {\n\t key: 'getPath',\n\t value: function getPath(el, context) {\n\t var path = null;\n\t var node = el;\n\t\n\t var filterSiblings = function filterSiblings(thisEl) {\n\t return !Util.isMarkNode(thisEl) && thisEl.nodeName === node.nodeName;\n\t };\n\t\n\t while (node) {\n\t var name = null;\n\t // If node is a text-node, save index\n\t if (Node.TEXT_NODE === node.nodeType) {\n\t /* Because nodes may wrapped inside a highlighting node, we need to find the original index that was\n\t * valid before the dom changes. We store the last known index position inside all wrapper elements\n\t * We select the outermost\n\t */\n\t\n\t // Extract original index of this node:\n\t // Outer most data-original-index is original index\n\t var outerMostElement = Util.parents(node, '[' + ATTR_DATA_ORIGINAL_INDEX + ']').reverse()[0];\n\t // if element is not yet wrapped in span, recalculate index based on parent container:\n\t // We have to do this because text node indexes != element indexes...\n\t var calculatedIndex = 0;\n\t if (!outerMostElement) {\n\t calculatedIndex = Util.calcIndex(node);\n\t }\n\t var index = outerMostElement ? parseInt(outerMostElement.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10) : calculatedIndex;\n\t name = SERIALIZE_SEPARATOR + index;\n\t } else {\n\t name = node.nodeName;\n\t }\n\t\n\t if (!name) {\n\t break;\n\t }\n\t\n\t name = name.toLowerCase();\n\t\n\t var parent = node.parentNode;\n\t\n\t if (Util.isMarkNode(node)) {\n\t if (parent !== context) {\n\t node = parent;\n\t continue;\n\t } else {\n\t break;\n\t }\n\t }\n\t\n\t // Select only siblings that are not part of selection and are of the same type\n\t // (because we use nth-of-type selector later)\n\t var siblings = Util.nodeListFilter(parent.children, filterSiblings);\n\t var nodeIndex = Util.index(node, siblings);\n\t\n\t if (siblings.length > 1 && nodeIndex >= 0) {\n\t name += ':nth-of-type(' + (nodeIndex + 1) + ')';\n\t }\n\t\n\t path = name + (path ? '>' + path : '');\n\t\n\t if (parent === context) {\n\t break;\n\t }\n\t\n\t node = parent;\n\t }\n\t\n\t return path.replace(\"#document>\", \"\").replace('>;', ';');\n\t }\n\t\n\t /**\n\t * Will return the first original offset value that is found\n\t * @param {Node} element\n\t *\n\t * @returns {int}\n\t */\n\t\n\t }, {\n\t key: 'findOriginalOffset',\n\t value: function findOriginalOffset(element) {\n\t if (!element.parentNode.hasAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START)) {\n\t return 0;\n\t }\n\t var lengthElement = Util.parent(element, '[' + _Rendering.ATTR_DATA_ORIGINAL_OFFSET_START + ']');\n\t return lengthElement ? parseInt(lengthElement.getAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START), 10) : 0;\n\t }\n\t\n\t /**\n\t * Deserialize a specific path and finds the right textNodes\n\t * This even works when DOM has been manipulated before by `marklib`\n\t * @param {string} path the serialized path (including offsets)\n\t * @param {Node|HTMLElement} context\n\t *\n\t * @return {Node}\n\t */\n\t\n\t }, {\n\t key: 'deserializePath',\n\t value: function deserializePath(path, context) {\n\t var pSplit = path.split(';');\n\t var p = pSplit[0];\n\t var objectIndex = parseInt(pSplit[1], 10);\n\t var charOffset = parseInt(pSplit[2], 10);\n\t var container = !p.trim() ? context : context.querySelector(p);\n\t\n\t var maybeFoundNode = null;\n\t\n\t Util.walkTextNodes(container, function (n) {\n\t var atrOffsetStart = n.parentNode.getAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START);\n\t atrOffsetStart = atrOffsetStart === null ? 0 : atrOffsetStart;\n\t var atrIndex = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_INDEX);\n\t atrIndex = atrIndex === null ? Util.calcIndex(n) : atrIndex;\n\t if (parseInt(atrIndex, 10) === objectIndex && charOffset >= atrOffsetStart && parseInt(atrOffsetStart, 10) + n.length >= charOffset) {\n\t var thisOffset = n.parentNode.hasAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START) ? charOffset - parseInt(n.parentNode.getAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START), 10) : charOffset;\n\t\n\t maybeFoundNode = {\n\t node: n,\n\t offset: thisOffset\n\t };\n\t\n\t return false;\n\t }\n\t return true;\n\t }, null);\n\t\n\t return maybeFoundNode;\n\t }\n\t\n\t /**\n\t * Walks the dom tree unless func returns false\n\t * Applies node to function\n\t *\n\t * @param {Node} node\n\t * @param {Function} func\n\t * @param {int} type, see `NodeFilter`\n\t * @param {Object} [filter] skips empty text nodes by default\n\t *\n\t * @returns {boolean} true if function did abort walk\n\t */\n\t\n\t }, {\n\t key: 'walkDom',\n\t value: function walkDom(node, func) {\n\t var _document;\n\t\n\t var type = arguments.length <= 2 || arguments[2] === undefined ? NodeFilter.SHOW_ALL : arguments[2];\n\t var filter = arguments.length <= 3 || arguments[3] === undefined ? null : arguments[3];\n\t\n\t if (!node) {\n\t return false;\n\t }\n\t var args = [node, type, filter || function () {\n\t return true;\n\t }, false];\n\t args.push(false);\n\t var walker = (_document = document).createTreeWalker.apply(_document, args);\n\t while (walker.nextNode()) {\n\t if (!func(walker.currentNode)) {\n\t return true;\n\t }\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Extracts all TextNodes inside a container\n\t * @param {Node} el\n\t * @param {Function} func\n\t * @param {Object} [filter] skips empty text nodes by default\n\t * @returns {boolean} true if function did abort walk\n\t */\n\t\n\t }, {\n\t key: 'walkTextNodes',\n\t value: function walkTextNodes(el, func) {\n\t var filter = arguments.length <= 2 || arguments[2] === undefined ? function (node) {\n\t return !Util.nodeIsEmpty(node);\n\t } : arguments[2];\n\t\n\t return Util.walkDom(el, func, NodeFilter.SHOW_TEXT, filter);\n\t }\n\t\n\t /**\n\t * @param {Node} container\n\t * @param {Number} thisIndex\n\t * @returns {int|string} index of parent or original\n\t */\n\t\n\t }, {\n\t key: 'getIndexParentIfHas',\n\t value: function getIndexParentIfHas(container, thisIndex) {\n\t var p = container.parentNode;\n\t var index = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10);\n\t return index > thisIndex ? index : thisIndex;\n\t }\n\t\n\t /**\n\t * @param container\n\t * @returns {int} offset start of parent if has, else 0\n\t */\n\t\n\t }, {\n\t key: 'getOffsetParentIfHas',\n\t value: function getOffsetParentIfHas(container) {\n\t var p = container.parentNode;\n\t var offset = parseInt(p.getAttribute(_Rendering.ATTR_DATA_ORIGINAL_OFFSET_START), 10);\n\t return offset > 0 ? offset : 0;\n\t }\n\t }]);\n\t return Util;\n\t}();\n\n\texports.default = Util;\n\n/***/ },\n/* 25 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tvar _typeof = typeof _Symbol === \"function\" && typeof _Symbol$iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _Symbol === \"function\" && obj.constructor === _Symbol ? \"symbol\" : typeof obj; };\n\t\n\texports.__esModule = true;\n\t\n\tvar _iterator = __webpack_require__(60);\n\t\n\tvar _iterator2 = _interopRequireDefault(_iterator);\n\t\n\tvar _symbol = __webpack_require__(59);\n\t\n\tvar _symbol2 = _interopRequireDefault(_symbol);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n\t return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n\t} : function (obj) {\n\t return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n\t};\n\n/***/ },\n/* 26 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// getting tag from 19.1.3.6 Object.prototype.toString()\n\tvar cof = __webpack_require__(27)\n\t , TAG = __webpack_require__(3)('toStringTag')\n\t // ES3 wrong here\n\t , ARG = cof(function(){ return arguments; }()) == 'Arguments';\n\t\n\tmodule.exports = function(it){\n\t var O, T, B;\n\t return it === undefined ? 'Undefined' : it === null ? 'Null'\n\t // @@toStringTag case\n\t : typeof (T = (O = Object(it))[TAG]) == 'string' ? T\n\t // builtinTag case\n\t : ARG ? cof(O)\n\t // ES3 arguments fallback\n\t : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n\t};\n\n/***/ },\n/* 27 */\n/***/ function(module, exports) {\n\n\tvar toString = {}.toString;\n\t\n\tmodule.exports = function(it){\n\t return toString.call(it).slice(8, -1);\n\t};\n\n/***/ },\n/* 28 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar ctx = __webpack_require__(14)\n\t , call = __webpack_require__(81)\n\t , isArrayIter = __webpack_require__(79)\n\t , anObject = __webpack_require__(6)\n\t , toLength = __webpack_require__(89)\n\t , getIterFn = __webpack_require__(48);\n\tmodule.exports = function(iterable, entries, fn, that){\n\t var iterFn = getIterFn(iterable)\n\t , f = ctx(fn, that, entries ? 2 : 1)\n\t , index = 0\n\t , length, step, iterator;\n\t if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');\n\t // fast case for arrays with default iterator\n\t if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){\n\t entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n\t } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){\n\t call(iterator, f, step.value, entries);\n\t }\n\t};\n\n/***/ },\n/* 29 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar LIBRARY = __webpack_require__(42)\n\t , $export = __webpack_require__(4)\n\t , redefine = __webpack_require__(31)\n\t , hide = __webpack_require__(10)\n\t , has = __webpack_require__(16)\n\t , Iterators = __webpack_require__(5)\n\t , $iterCreate = __webpack_require__(82)\n\t , setToStringTag = __webpack_require__(18)\n\t , getProto = __webpack_require__(1).getProto\n\t , ITERATOR = __webpack_require__(3)('iterator')\n\t , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`\n\t , FF_ITERATOR = '@@iterator'\n\t , KEYS = 'keys'\n\t , VALUES = 'values';\n\t\n\tvar returnThis = function(){ return this; };\n\t\n\tmodule.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){\n\t $iterCreate(Constructor, NAME, next);\n\t var getMethod = function(kind){\n\t if(!BUGGY && kind in proto)return proto[kind];\n\t switch(kind){\n\t case KEYS: return function keys(){ return new Constructor(this, kind); };\n\t case VALUES: return function values(){ return new Constructor(this, kind); };\n\t } return function entries(){ return new Constructor(this, kind); };\n\t };\n\t var TAG = NAME + ' Iterator'\n\t , DEF_VALUES = DEFAULT == VALUES\n\t , VALUES_BUG = false\n\t , proto = Base.prototype\n\t , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]\n\t , $default = $native || getMethod(DEFAULT)\n\t , methods, key;\n\t // Fix native\n\t if($native){\n\t var IteratorPrototype = getProto($default.call(new Base));\n\t // Set @@toStringTag to native iterators\n\t setToStringTag(IteratorPrototype, TAG, true);\n\t // FF fix\n\t if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);\n\t // fix Array#{values, @@iterator}.name in V8 / FF\n\t if(DEF_VALUES && $native.name !== VALUES){\n\t VALUES_BUG = true;\n\t $default = function values(){ return $native.call(this); };\n\t }\n\t }\n\t // Define iterator\n\t if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){\n\t hide(proto, ITERATOR, $default);\n\t }\n\t // Plug for library\n\t Iterators[NAME] = $default;\n\t Iterators[TAG] = returnThis;\n\t if(DEFAULT){\n\t methods = {\n\t values: DEF_VALUES ? $default : getMethod(VALUES),\n\t keys: IS_SET ? $default : getMethod(KEYS),\n\t entries: !DEF_VALUES ? $default : getMethod('entries')\n\t };\n\t if(FORCED)for(key in methods){\n\t if(!(key in proto))redefine(proto, key, methods[key]);\n\t } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n\t }\n\t return methods;\n\t};\n\n/***/ },\n/* 30 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(bitmap, value){\n\t return {\n\t enumerable : !(bitmap & 1),\n\t configurable: !(bitmap & 2),\n\t writable : !(bitmap & 4),\n\t value : value\n\t };\n\t};\n\n/***/ },\n/* 31 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(10);\n\n/***/ },\n/* 32 */\n/***/ function(module, exports) {\n\n\tvar id = 0\n\t , px = Math.random();\n\tmodule.exports = function(key){\n\t return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n\t};\n\n/***/ },\n/* 33 */\n/***/ function(module, exports) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t/* global CustomEvent */\n\t\n\t/*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t// polyfill for custom events to make thinks work in IE\n\t// The needed polyfill is so small that I embedded it here\n\t(function poly() {\n\t if (!global.CustomEvent || typeof global.CustomEvent !== 'function') {\n\t var _CustomEvent = function CustomEvent(event, params) {\n\t var evt = undefined;\n\t var thisParams = params || {\n\t bubbles: false,\n\t cancelable: false,\n\t detail: undefined\n\t };\n\t evt = document.createEvent(\"CustomEvent\");\n\t evt.initCustomEvent(event, thisParams.bubbles, thisParams.cancelable, thisParams.detail);\n\t return evt;\n\t };\n\t _CustomEvent.prototype = global.Event.prototype;\n\t global.CustomEvent = _CustomEvent;\n\t }\n\t})();\n\t/**\n\t * Simpler Event dispatching\n\t */\n\t\n\tvar EventHandler = function () {\n\t\n\t /**\n\t * @param {HTMLElement} target\n\t * @param {String} name\n\t */\n\t\n\t function EventHandler(target, name) {\n\t _classCallCheck(this, EventHandler);\n\t\n\t this.target = target;\n\t this.defaultOptions = {\n\t bubbles: true,\n\t cancelable: true\n\t };\n\t\n\t this.name = name;\n\t }\n\t\n\t /**\n\t * Set more options\n\t * @param {Object} options\n\t * @returns {EventHandler}\n\t */\n\t\n\t\n\t _createClass(EventHandler, [{\n\t key: \"withOptions\",\n\t value: function withOptions(options) {\n\t Object.assign(this.defaultOptions, options || {});\n\t return this;\n\t }\n\t\n\t /**\n\t * Call with the originalEvent\n\t * @param {Event} e\n\t * @returns {EventHandler}\n\t */\n\t\n\t }, {\n\t key: \"withOriginal\",\n\t value: function withOriginal(e) {\n\t return this.withDetail({\n\t originalEvent: e\n\t });\n\t }\n\t\n\t /**\n\t * Extends the detail part of the event\n\t * @param {Object} o\n\t * @returns {EventHandler}\n\t */\n\t\n\t }, {\n\t key: \"withDetail\",\n\t value: function withDetail(o) {\n\t if (!this.defaultOptions.detail) {\n\t this.defaultOptions.detail = {};\n\t }\n\t Object.assign(this.defaultOptions.detail, o);\n\t return this;\n\t }\n\t\n\t /**\n\t * @returns {CustomEvent}\n\t */\n\t\n\t }, {\n\t key: \"fire\",\n\t value: function fire() {\n\t var e = new CustomEvent(this.name, this.defaultOptions);\n\t if (this.target) {\n\t this.target.dispatchEvent(e);\n\t }\n\t return e;\n\t }\n\t }]);\n\t\n\t return EventHandler;\n\t}();\n\t\n\tvar Event = function () {\n\t function Event() {\n\t _classCallCheck(this, Event);\n\t }\n\t\n\t _createClass(Event, null, [{\n\t key: \"dispatch\",\n\t\n\t /**\n\t * Prepares to dispatch a custom event (without firing)\n\t * @param {HTMLElement} target\n\t * @param {String} name\n\t * @returns {EventHandler}\n\t */\n\t value: function dispatch(target, name) {\n\t return new EventHandler(target, name);\n\t }\n\t\n\t /**\n\t * Dispatches a custom event and fires it directly\n\t * @param {HTMLElement} target\n\t * @param {String} name\n\t * @param {Object} [options]\n\t * @returns {CustomEvent}\n\t */\n\t\n\t }, {\n\t key: \"dispatchAndFire\",\n\t value: function dispatchAndFire(target, name, options) {\n\t return new EventHandler(target, name).withOptions(options).fire();\n\t }\n\t }]);\n\t\n\t return Event;\n\t}();\n\t\n\texports.default = Event;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 34 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _classCallCheck2 = __webpack_require__(12);\n\t\n\tvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\t\n\tvar _createClass2 = __webpack_require__(13);\n\t\n\tvar _createClass3 = _interopRequireDefault(_createClass2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/**\n\t * A Render Result\n\t */\n\t\n\tvar RenderResult = function () {\n\t /**\n\t * @param {int} startOffset\n\t * @param {int} endOffset\n\t * @param {String} startContainerPath\n\t * @param {String} endContainerPath\n\t */\n\t\n\t function RenderResult(startOffset, endOffset, startContainerPath, endContainerPath) {\n\t (0, _classCallCheck3.default)(this, RenderResult);\n\t\n\t this.startOffset = startOffset;\n\t this.endOffset = endOffset;\n\t this.startContainerPath = startContainerPath;\n\t this.endContainerPath = endContainerPath;\n\t this._renderingInstance = null;\n\t }\n\t\n\t /**\n\t * @param {Object} result\n\t * @return RenderResult\n\t */\n\t\n\t\n\t (0, _createClass3.default)(RenderResult, [{\n\t key: \"serialize\",\n\t\n\t\n\t /**\n\t * @returns {Object}\n\t */\n\t value: function serialize() {\n\t return {\n\t startOffset: this.startOffset,\n\t endOffset: this.endOffset,\n\t startContainerPath: this.startContainerPath,\n\t endContainerPath: this.endContainerPath\n\t };\n\t }\n\t\n\t /**\n\t * @param {String} text\n\t */\n\t\n\t }, {\n\t key: \"text\",\n\t set: function set(text) {\n\t this._text = text;\n\t }\n\t\n\t /**\n\t * @returns {String}\n\t */\n\t ,\n\t get: function get() {\n\t return this._text;\n\t }\n\t\n\t /**\n\t * @returns {null|Rendering}\n\t */\n\t\n\t }, {\n\t key: \"instance\",\n\t get: function get() {\n\t return this._renderingInstance;\n\t }\n\t\n\t /**\n\t * @param {null|Rendering} instance\n\t */\n\t ,\n\t set: function set(instance) {\n\t this._renderingInstance = instance;\n\t }\n\t }], [{\n\t key: \"fromObject\",\n\t value: function fromObject(result) {\n\t return new RenderResult(result.startOffset, result.endOffset, result.startContainerPath, result.endContainerPath);\n\t }\n\t }]);\n\t return RenderResult;\n\t}();\n\n\texports.default = RenderResult;\n\n/***/ },\n/* 35 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_PART_TREE_LEAVE = exports.EVENT_PART_TREE_ENTER = exports.EVENT_MOUSELEAVE = exports.EVENT_MOUSEENTER = exports.EVENT_CLICK = undefined;\n\t\n\tvar _slicedToArray2 = __webpack_require__(61);\n\t\n\tvar _slicedToArray3 = _interopRequireDefault(_slicedToArray2);\n\t\n\tvar _typeof2 = __webpack_require__(25);\n\t\n\tvar _typeof3 = _interopRequireDefault(_typeof2);\n\t\n\tvar _set = __webpack_require__(58);\n\t\n\tvar _set2 = _interopRequireDefault(_set);\n\t\n\tvar _assign = __webpack_require__(54);\n\t\n\tvar _assign2 = _interopRequireDefault(_assign);\n\t\n\tvar _getPrototypeOf = __webpack_require__(37);\n\t\n\tvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\t\n\tvar _classCallCheck2 = __webpack_require__(12);\n\t\n\tvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\t\n\tvar _createClass2 = __webpack_require__(13);\n\t\n\tvar _createClass3 = _interopRequireDefault(_createClass2);\n\t\n\tvar _possibleConstructorReturn2 = __webpack_require__(39);\n\t\n\tvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\t\n\tvar _inherits2 = __webpack_require__(38);\n\t\n\tvar _inherits3 = _interopRequireDefault(_inherits2);\n\t\n\tvar _wolfy87Eventemitter = __webpack_require__(99);\n\t\n\tvar _wolfy87Eventemitter2 = _interopRequireDefault(_wolfy87Eventemitter);\n\t\n\tvar _Rendering = __webpack_require__(23);\n\t\n\tvar _Rendering2 = _interopRequireDefault(_Rendering);\n\t\n\tvar _Util = __webpack_require__(24);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_CLICK = exports.EVENT_CLICK = 'click';\n\t\n\t/**\n\t * @type {string}\n\t */\n\t/* global Set */\n\t\n\tvar EVENT_MOUSEENTER = exports.EVENT_MOUSEENTER = 'hover-enter';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_MOUSELEAVE = exports.EVENT_MOUSELEAVE = 'hover-leave';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_PART_TREE_ENTER = exports.EVENT_PART_TREE_ENTER = 'tree-enter';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_PART_TREE_LEAVE = exports.EVENT_PART_TREE_LEAVE = 'tree-leave';\n\t\n\t/**\n\t * Generic Event Handlings for Renderer\n\t */\n\t\n\tvar RenderingEvents = function (_EventEmitter) {\n\t (0, _inherits3.default)(RenderingEvents, _EventEmitter);\n\t\n\t\n\t /**\n\t * @param {Object} options\n\t * @param {Document} document\n\t */\n\t\n\t function RenderingEvents(options, document) {\n\t (0, _classCallCheck3.default)(this, RenderingEvents);\n\t\n\t\n\t /**\n\t * Options\n\t * @type {Object}\n\t */\n\t\n\t var _this = (0, _possibleConstructorReturn3.default)(this, (0, _getPrototypeOf2.default)(RenderingEvents).call(this));\n\t\n\t _this.options = {\n\t hoverClass: 'marklib--hover',\n\t treeClass: 'marklib--tree',\n\t className: ['marking']\n\t };\n\t\n\t _this.options = (0, _assign2.default)(_this.options, options || {});\n\t\n\t if (typeof _this.options.className === 'string') {\n\t _this.options.className = _this.options.className.split(' ');\n\t }\n\t\n\t /**\n\t * A collection of all nodes that are part of all events\n\t * @type {Array}\n\t */\n\t _this.wrapperNodes = [];\n\t\n\t _this._registerEvents(document);\n\t\n\t /**\n\t * @type {Document}\n\t */\n\t _this.document = document;\n\t return _this;\n\t }\n\t\n\t /**\n\t * Constructs a new Range from rendered result\n\t * @returns {Range}\n\t */\n\t\n\t\n\t (0, _createClass3.default)(RenderingEvents, [{\n\t key: '_registerEvents',\n\t\n\t\n\t /**\n\t * Will register events if not already bind.\n\t * @param {Document} document\n\t * @private\n\t */\n\t value: function _registerEvents(document) {\n\t var _this2 = this;\n\t\n\t this.on(EVENT_MOUSEENTER, function () {\n\t _this2.wrapperNodes.forEach(function (node) {\n\t node.classList.add(_this2.options.hoverClass);\n\t });\n\t });\n\t\n\t this.on(EVENT_MOUSELEAVE, function () {\n\t _this2.wrapperNodes.forEach(function (node) {\n\t node.classList.remove(_this2.options.hoverClass);\n\t });\n\t });\n\t\n\t this.on(EVENT_PART_TREE_ENTER, function () {\n\t _this2.wrapperNodes.forEach(function (node) {\n\t node.classList.add(_this2.options.treeClass);\n\t });\n\t });\n\t\n\t this.on(EVENT_PART_TREE_LEAVE, function () {\n\t _this2.wrapperNodes.forEach(function (node) {\n\t node.classList.remove(_this2.options.treeClass);\n\t });\n\t });\n\t\n\t if (!global.__MARKLIB_EVENTS__) {\n\t global.__MARKLIB_EVENTS__ = true;\n\t (function init() {\n\t var currentHoverInstances = new _set2.default();\n\t var betweenInstances = new _set2.default();\n\t\n\t function checkMarklibInstance(e) {\n\t var instance = _Rendering2.default.getMarklibInstance(e);\n\t // instanceof check will fail if used in test scenario where different DOMs are used\n\t // see also http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/\n\t return instance && (instance instanceof _Rendering2.default || 'wrapperNodes' in instance);\n\t }\n\t\n\t function closestInstance(e) {\n\t var closest = _Util2.default.closestCallback(e.target, function (thisE) {\n\t return checkMarklibInstance(thisE);\n\t });\n\t if ((typeof closest === 'undefined' ? 'undefined' : (0, _typeof3.default)(closest)) === 'object') {\n\t return _Rendering2.default.getMarklibInstance(closest);\n\t }\n\t return false;\n\t }\n\t\n\t function getInstancesBetween(e, instance) {\n\t return _Util2.default.parentsCallback(e.target, function (el) {\n\t return checkMarklibInstance(el) && _Rendering2.default.getMarklibInstance(el) !== instance;\n\t }).map(function (el) {\n\t return _Rendering2.default.getMarklibInstance(el);\n\t });\n\t }\n\t\n\t function mouseOutClear() {\n\t currentHoverInstances.forEach(function (thisInstance) {\n\t thisInstance.emit(EVENT_MOUSELEAVE);\n\t });\n\t currentHoverInstances.clear();\n\t\n\t betweenInstances.forEach(function (thisInstance) {\n\t thisInstance.emit(EVENT_PART_TREE_LEAVE);\n\t });\n\t\n\t betweenInstances.clear();\n\t }\n\t\n\t /**\n\t * @param {Event} e\n\t * @returns {Array|boolean}\n\t */\n\t function findTarget(e) {\n\t var instance = closestInstance(e);\n\t if (instance) {\n\t var between = getInstancesBetween(e, instance);\n\t if (e.target.textContent !== instance.result.text && between.length > 0) {\n\t var allInstances = between;\n\t allInstances.unshift(instance);\n\t // take the smallest selection\n\t allInstances = allInstances.sort(function (a, b) {\n\t return a.result.text.length < b.result.text.length ? -1 : 1;\n\t });\n\t instance = allInstances[0];\n\t }\n\t\n\t return [instance, between];\n\t }\n\t return false;\n\t }\n\t\n\t document.addEventListener('click', function (e) {\n\t var target = findTarget(e);\n\t if (target) {\n\t target[0].emit(EVENT_CLICK, e, target[1]);\n\t }\n\t }, true);\n\t\n\t document.addEventListener('mouseover', function (e) {\n\t var target = findTarget(e);\n\t if (target) {\n\t (function () {\n\t var _target = (0, _slicedToArray3.default)(target, 2);\n\t\n\t var instance = _target[0];\n\t var between = _target[1];\n\t // find instances that lay in between the node\n\t\n\t mouseOutClear();\n\t between.forEach(function (instanceBetween) {\n\t betweenInstances.add(instanceBetween);\n\t instanceBetween.emit(EVENT_PART_TREE_ENTER, e, between);\n\t });\n\t instance.emit(EVENT_MOUSEENTER, e, between);\n\t currentHoverInstances.add(instance);\n\t })();\n\t } else {\n\t mouseOutClear();\n\t }\n\t }, true);\n\t })();\n\t }\n\t }\n\t }, {\n\t key: 'range',\n\t get: function get() {\n\t var range = this.document.createRange();\n\t var textNodes = [];\n\t\n\t this.wrapperNodes.forEach(function (wrapper) {\n\t _Util2.default.walkTextNodes(wrapper, function (node) {\n\t textNodes.push(node);\n\t });\n\t });\n\t\n\t if (textNodes.length > 0) {\n\t var lastTextNode = textNodes[textNodes.length - 1];\n\t range.setStart(textNodes[0], 0);\n\t range.setEnd(lastTextNode, lastTextNode.length);\n\t return range;\n\t }\n\t\n\t return null;\n\t }\n\t }]);\n\t return RenderingEvents;\n\t}(_wolfy87Eventemitter2.default);\n\n\texports.default = RenderingEvents;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 36 */\n/***/ function(module, exports) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj; };\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t/*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t/*!\n\t * FlexCss.Widget\n\t * Licensed under the MIT License (MIT)\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t */\n\t\n\t/**\n\t * A Widget provides async content on a specific target (e.g. a modal link)\n\t */\n\t\n\tvar Widget = function () {\n\t\n\t /**\n\t * Creates a new Widget\n\t * @param [element], optional define the content of widget\n\t */\n\t\n\t function Widget(element) {\n\t var _this = this;\n\t\n\t _classCallCheck(this, Widget);\n\t\n\t /**\n\t *\n\t * @type {Promise}\n\t */\n\t this.asyncContent = null;\n\t\n\t /**\n\t * @type {boolean}\n\t */\n\t this._isWidget = true;\n\t\n\t if (element) {\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.element = element instanceof HTMLElement ? element : global.document.getElementById(element);\n\t if (this.element) {\n\t this.element.hfWidgetInstance = this;\n\t this.setAsync(function () {\n\t return new Promise(function (s) {\n\t s(_this.element);\n\t });\n\t });\n\t } else {\n\t throw new Error('Could not found element with ID: ' + element);\n\t }\n\t }\n\t /**\n\t * The final resulted content that a widget did create (e.g. a modal container)\n\t * @type {HTMLElement}\n\t */\n\t this.finalContent = null;\n\t }\n\t\n\t /**\n\t *\n\t * @returns {Promise}\n\t */\n\t\n\t\n\t _createClass(Widget, [{\n\t key: 'getAsync',\n\t value: function getAsync() {\n\t return this.asyncContent();\n\t }\n\t\n\t /**\n\t * @param {Function.} async\n\t * @returns {Widget}\n\t */\n\t\n\t }, {\n\t key: 'setAsync',\n\t value: function setAsync(async) {\n\t this.asyncContent = async;\n\t return this;\n\t }\n\t\n\t /**\n\t * @returns {HTMLElement}\n\t */\n\t\n\t }, {\n\t key: 'getFinalContent',\n\t value: function getFinalContent() {\n\t return this.finalContent;\n\t }\n\t\n\t /**\n\t * @param {HTMLElement} element\n\t * @returns {Widget}\n\t */\n\t\n\t }, {\n\t key: 'setElement',\n\t value: function setElement(element) {\n\t this.element = element;\n\t return this;\n\t }\n\t\n\t /**\n\t * Destroys the generated content of this widget\n\t * @returns {boolean}\n\t */\n\t\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t if (this.finalContent && this.finalContent.parentNode) {\n\t this.finalContent.parentNode.removeChild(this.finalContent);\n\t return true;\n\t }\n\t\n\t delete this.element;\n\t delete this.asyncContent;\n\t delete this.finalContent;\n\t\n\t return false;\n\t }\n\t\n\t /**\n\t * Will find a widget on an Element\n\t * @param {HTMLElement} element\n\t * @returns {Widget|undefined}\n\t */\n\t\n\t }], [{\n\t key: 'findWidget',\n\t value: function findWidget(element) {\n\t return element ? element.hfWidgetInstance : undefined;\n\t }\n\t\n\t /**\n\t * Checks if a given object is an instance\n\t * @param {Object} self\n\t * @returns {boolean}\n\t */\n\t\n\t }, {\n\t key: 'isWidget',\n\t value: function isWidget(self) {\n\t return self instanceof Widget || (typeof self === 'undefined' ? 'undefined' : _typeof(self)) === 'object' && self.hasOwnProperty('_isWidget');\n\t }\n\t }]);\n\t\n\t return Widget;\n\t}();\n\t\n\texports.default = Widget;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 37 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(67), __esModule: true };\n\n/***/ },\n/* 38 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _setPrototypeOf = __webpack_require__(57);\n\t\n\tvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\t\n\tvar _create = __webpack_require__(55);\n\t\n\tvar _create2 = _interopRequireDefault(_create);\n\t\n\tvar _typeof2 = __webpack_require__(25);\n\t\n\tvar _typeof3 = _interopRequireDefault(_typeof2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = function (subClass, superClass) {\n\t if (typeof superClass !== \"function\" && superClass !== null) {\n\t throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n\t }\n\t\n\t subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n\t constructor: {\n\t value: subClass,\n\t enumerable: false,\n\t writable: true,\n\t configurable: true\n\t }\n\t });\n\t if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n\t};\n\n/***/ },\n/* 39 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _typeof2 = __webpack_require__(25);\n\t\n\tvar _typeof3 = _interopRequireDefault(_typeof2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = function (self, call) {\n\t if (!self) {\n\t throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n\t }\n\t\n\t return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n\t};\n\n/***/ },\n/* 40 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// fallback for non-array-like ES3 and non-enumerable old V8 strings\n\tvar cof = __webpack_require__(27);\n\tmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n\t return cof(it) == 'String' ? it.split('') : Object(it);\n\t};\n\n/***/ },\n/* 41 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(done, value){\n\t return {value: value, done: !!done};\n\t};\n\n/***/ },\n/* 42 */\n/***/ function(module, exports) {\n\n\tmodule.exports = true;\n\n/***/ },\n/* 43 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar redefine = __webpack_require__(31);\n\tmodule.exports = function(target, src){\n\t for(var key in src)redefine(target, key, src[key]);\n\t return target;\n\t};\n\n/***/ },\n/* 44 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar global = __webpack_require__(9)\n\t , SHARED = '__core-js_shared__'\n\t , store = global[SHARED] || (global[SHARED] = {});\n\tmodule.exports = function(key){\n\t return store[key] || (store[key] = {});\n\t};\n\n/***/ },\n/* 45 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(it, Constructor, name){\n\t if(!(it instanceof Constructor))throw TypeError(name + \": use the 'new' operator!\");\n\t return it;\n\t};\n\n/***/ },\n/* 46 */\n/***/ function(module, exports) {\n\n\t// 7.1.4 ToInteger\n\tvar ceil = Math.ceil\n\t , floor = Math.floor;\n\tmodule.exports = function(it){\n\t return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n\t};\n\n/***/ },\n/* 47 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.1.13 ToObject(argument)\n\tvar defined = __webpack_require__(15);\n\tmodule.exports = function(it){\n\t return Object(defined(it));\n\t};\n\n/***/ },\n/* 48 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar classof = __webpack_require__(26)\n\t , ITERATOR = __webpack_require__(3)('iterator')\n\t , Iterators = __webpack_require__(5);\n\tmodule.exports = __webpack_require__(2).getIteratorMethod = function(it){\n\t if(it != undefined)return it[ITERATOR]\n\t || it['@@iterator']\n\t || Iterators[classof(it)];\n\t};\n\n/***/ },\n/* 49 */\n/***/ function(module, exports) {\n\n\n\n/***/ },\n/* 50 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.RenderingEvents = exports.RenderResult = exports.Util = exports.Rendering = undefined;\n\t\n\tvar _Rendering = __webpack_require__(23);\n\t\n\tvar _Rendering2 = _interopRequireDefault(_Rendering);\n\t\n\tvar _Util = __webpack_require__(24);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tvar _RenderResult = __webpack_require__(34);\n\t\n\tvar _RenderResult2 = _interopRequireDefault(_RenderResult);\n\t\n\tvar _RenderingEvents = __webpack_require__(35);\n\t\n\tvar _RenderingEvents2 = _interopRequireDefault(_RenderingEvents);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.Rendering = _Rendering2.default;\n\texports.Util = _Util2.default;\n\texports.RenderResult = _RenderResult2.default;\n\texports.RenderingEvents = _RenderingEvents2.default;\n\n/***/ },\n/* 51 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_AFTER_FIXED_REMOVE = exports.EVENT_BEFORE_FIXED_ADD = undefined;\n\t\n\tvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj; };\n\t\n\tvar _slicedToArray = function () { function sliceIterator(arr, i) { 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\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tvar _debounce = __webpack_require__(109);\n\t\n\tvar _debounce2 = _interopRequireDefault(_debounce);\n\t\n\tvar _Event = __webpack_require__(33);\n\t\n\tvar _Event2 = _interopRequireDefault(_Event);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar CLS_FIXED_WINDOW = 'fixed-window-open';\n\t\n\tvar EVENT_BEFORE_FIXED_ADD = exports.EVENT_BEFORE_FIXED_ADD = 'flexcss.fixedWindow.beforeAdd';\n\tvar EVENT_AFTER_FIXED_REMOVE = exports.EVENT_AFTER_FIXED_REMOVE = 'flexcss.fixedWindow.afterRemove';\n\t\n\t/**\n\t * @type {FixedWindow}\n\t */\n\tvar fixedWindowInstance = undefined;\n\t\n\tvar FixedWindow = function () {\n\t function FixedWindow() {\n\t _classCallCheck(this, FixedWindow);\n\t\n\t this.widgets = [];\n\t this.currentScrollTop = 0;\n\t this.fixedScreenConstraints = [];\n\t this.windowWidth = 0;\n\t this.isFixedWindowActive = false;\n\t }\n\t\n\t /**\n\t * Adds a constraint to detect if the window needs to be changed when the screensize changes\n\t *\n\t * @param {Function} widget\n\t * @param {Function} fixedBreakpointFn gets a width argument, return true to open a window\n\t */\n\t\n\t\n\t _createClass(FixedWindow, [{\n\t key: 'addScreenConstraint',\n\t value: function addScreenConstraint(widget, fixedBreakpointFn) {\n\t this.fixedScreenConstraints[widget] = fixedBreakpointFn;\n\t }\n\t\n\t /**\n\t * @returns {null|DestroyableWidget}\n\t */\n\t\n\t }, {\n\t key: 'getCurrentWidget',\n\t value: function getCurrentWidget() {\n\t return this.widgets.length > 0 ? this.widgets[this.widgets.length - 1] : null;\n\t }\n\t\n\t /**\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_checkFixedNeeded',\n\t value: function _checkFixedNeeded() {\n\t var _this = this;\n\t\n\t if (this.widgets.length === 0) {\n\t return;\n\t }\n\t var widgets = new Set(this.widgets);\n\t var widgetsThatRequireFixedWindow = Array.from(widgets).some(function (widget) {\n\t return _this.fixedScreenConstraints[widget] && _this.fixedScreenConstraints[widget](_this.windowWidth);\n\t });\n\t if (!widgetsThatRequireFixedWindow) {\n\t this._removeFixedContainer();\n\t } else {\n\t this._addFixedContainer();\n\t }\n\t }\n\t\n\t /**\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_addFixedContainer',\n\t value: function _addFixedContainer() {\n\t if (this.isFixedWindowActive) {\n\t return;\n\t }\n\t _Event2.default.dispatchAndFire(global.document, EVENT_BEFORE_FIXED_ADD, {\n\t detail: this.getCurrentWidget()\n\t });\n\t // this causes layout and should be optimized\n\t // At lest we write in a batch later\n\t this.currentScrollTop = global.pageYOffset;\n\t _Settings2.default.get().scrollbarUpdateNodes.map(function (n) {\n\t var foundProperty = 'paddingRight';\n\t var direction = 1;\n\t var node = n;\n\t if (n instanceof Array) {\n\t var _n = _slicedToArray(n, 3);\n\t\n\t var whatNode = _n[0];\n\t var property = _n[1];\n\t var d = _n[2];\n\t\n\t foundProperty = property;\n\t node = whatNode;\n\t direction = d || 1;\n\t }\n\t return {\n\t node: node,\n\t property: foundProperty,\n\t value: parseInt(global.getComputedStyle(node)[foundProperty], 10) + (!node.__fixedWindowMod__ ? _Settings2.default.getScrollbarWidth() * direction : 0) + 'px'\n\t };\n\t }).forEach(function (d) {\n\t d.node.__fixedWindowMod__ = true;\n\t d.node.style[d.property] = d.value;\n\t });\n\t\n\t global.document.documentElement.classList.add(CLS_FIXED_WINDOW);\n\t global.document.body.style.cssText += 'top:' + this.currentScrollTop * -1 + 'px;position:fixed';\n\t\n\t this.isFixedWindowActive = true;\n\t }\n\t\n\t /**\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_removeFixedContainer',\n\t value: function _removeFixedContainer() {\n\t if (this.isFixedWindowActive) {\n\t global.document.body.style.position = \"static\";\n\t global.document.body.style.top = \"0px\";\n\t // reset scrollTop\n\t global.document.documentElement.scrollTop = this.currentScrollTop;\n\t global.document.body.scrollTop = this.currentScrollTop;\n\t _Settings2.default.get().scrollbarUpdateNodes.forEach(function (node) {\n\t if (node instanceof Array) {\n\t var _node = _slicedToArray(node, 2);\n\t\n\t var whatNode = _node[0];\n\t var property = _node[1];\n\t\n\t delete whatNode.__fixedWindowMod__;\n\t whatNode.style[property] = '';\n\t } else {\n\t delete node.__fixedWindowMod__;\n\t node.style.paddingRight = '';\n\t }\n\t });\n\t global.document.documentElement.classList.remove(CLS_FIXED_WINDOW);\n\t _Event2.default.dispatchAndFire(global.document, EVENT_AFTER_FIXED_REMOVE);\n\t this.isFixedWindowActive = false;\n\t }\n\t }\n\t\n\t /**\n\t * Will close a window when no widgets are opened that need one\n\t */\n\t\n\t }, {\n\t key: 'resizeListener',\n\t value: function resizeListener() {\n\t this.windowWidth = global.innerWidth;\n\t this._checkFixedNeeded();\n\t }\n\t\n\t /**\n\t * @returns {FixedWindow}\n\t */\n\t\n\t }, {\n\t key: 'close',\n\t\n\t\n\t /**\n\t * Request a close of the fixed window\n\t * @returns {Promise}\n\t */\n\t value: function close() {\n\t var _this2 = this;\n\t\n\t return new Promise(function (resolve) {\n\t _this2.widgets.pop();\n\t if (_this2.widgets.length === 0) {\n\t // restore scrollPosition:\n\t requestAnimationFrame(function () {\n\t _this2._removeFixedContainer();\n\t resolve();\n\t });\n\t }\n\t });\n\t }\n\t\n\t /**\n\t * Request to open a fixed windows\n\t * @param {Object|DestroyableWidget} instance\n\t */\n\t\n\t }, {\n\t key: 'open',\n\t value: function open(instance) {\n\t var fixed = false;\n\t if ((typeof instance === 'undefined' ? 'undefined' : _typeof(instance)) === 'object') {\n\t var cn = instance.constructor;\n\t var fixedWidget = this.fixedScreenConstraints[instance.constructor];\n\t if (cn && fixedWidget) {\n\t fixed = fixedWidget(this.windowWidth);\n\t }\n\t var length = this.widgets.length;\n\t this.widgets.push(cn);\n\t // open a new window if there is no window active\n\t if (length === 0) {\n\t if (fixed) {\n\t this._addFixedContainer();\n\t }\n\t }\n\t }\n\t }\n\t }], [{\n\t key: 'getInstance',\n\t value: function getInstance() {\n\t if (!fixedWindowInstance) {\n\t fixedWindowInstance = new FixedWindow();\n\t fixedWindowInstance.windowWidth = global.innerWidth;\n\t var eventHandler = fixedWindowInstance.resizeListener.bind(fixedWindowInstance);\n\t global.addEventListener('resize', (0, _debounce2.default)(eventHandler, 500));\n\t global.addEventListener('orientationchange', eventHandler);\n\t }\n\t return fixedWindowInstance;\n\t }\n\t }]);\n\t\n\t return FixedWindow;\n\t}();\n\n\texports.default = FixedWindow;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 52 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(62), __esModule: true };\n\n/***/ },\n/* 53 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(63), __esModule: true };\n\n/***/ },\n/* 54 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(64), __esModule: true };\n\n/***/ },\n/* 55 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(65), __esModule: true };\n\n/***/ },\n/* 56 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(66), __esModule: true };\n\n/***/ },\n/* 57 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(68), __esModule: true };\n\n/***/ },\n/* 58 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(69), __esModule: true };\n\n/***/ },\n/* 59 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(70), __esModule: true };\n\n/***/ },\n/* 60 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(71), __esModule: true };\n\n/***/ },\n/* 61 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _isIterable2 = __webpack_require__(53);\n\t\n\tvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\t\n\tvar _getIterator2 = __webpack_require__(52);\n\t\n\tvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.default = function () {\n\t function sliceIterator(arr, i) {\n\t var _arr = [];\n\t var _n = true;\n\t var _d = false;\n\t var _e = undefined;\n\t\n\t try {\n\t for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n\t _arr.push(_s.value);\n\t\n\t if (i && _arr.length === i) break;\n\t }\n\t } catch (err) {\n\t _d = true;\n\t _e = err;\n\t } finally {\n\t try {\n\t if (!_n && _i[\"return\"]) _i[\"return\"]();\n\t } finally {\n\t if (_d) throw _e;\n\t }\n\t }\n\t\n\t return _arr;\n\t }\n\t\n\t return function (arr, i) {\n\t if (Array.isArray(arr)) {\n\t return arr;\n\t } else if ((0, _isIterable3.default)(Object(arr))) {\n\t return sliceIterator(arr, i);\n\t } else {\n\t throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n\t }\n\t };\n\t}();\n\n/***/ },\n/* 62 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(21);\n\t__webpack_require__(20);\n\tmodule.exports = __webpack_require__(90);\n\n/***/ },\n/* 63 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(21);\n\t__webpack_require__(20);\n\tmodule.exports = __webpack_require__(91);\n\n/***/ },\n/* 64 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(93);\n\tmodule.exports = __webpack_require__(2).Object.assign;\n\n/***/ },\n/* 65 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar $ = __webpack_require__(1);\n\tmodule.exports = function create(P, D){\n\t return $.create(P, D);\n\t};\n\n/***/ },\n/* 66 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar $ = __webpack_require__(1);\n\tmodule.exports = function defineProperty(it, key, desc){\n\t return $.setDesc(it, key, desc);\n\t};\n\n/***/ },\n/* 67 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(94);\n\tmodule.exports = __webpack_require__(2).Object.getPrototypeOf;\n\n/***/ },\n/* 68 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(95);\n\tmodule.exports = __webpack_require__(2).Object.setPrototypeOf;\n\n/***/ },\n/* 69 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(49);\n\t__webpack_require__(20);\n\t__webpack_require__(21);\n\t__webpack_require__(96);\n\t__webpack_require__(98);\n\tmodule.exports = __webpack_require__(2).Set;\n\n/***/ },\n/* 70 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(97);\n\t__webpack_require__(49);\n\tmodule.exports = __webpack_require__(2).Symbol;\n\n/***/ },\n/* 71 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(20);\n\t__webpack_require__(21);\n\tmodule.exports = __webpack_require__(3)('iterator');\n\n/***/ },\n/* 72 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(it){\n\t if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n\t return it;\n\t};\n\n/***/ },\n/* 73 */\n/***/ function(module, exports) {\n\n\tmodule.exports = function(){ /* empty */ };\n\n/***/ },\n/* 74 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar $ = __webpack_require__(1)\n\t , hide = __webpack_require__(10)\n\t , redefineAll = __webpack_require__(43)\n\t , ctx = __webpack_require__(14)\n\t , strictNew = __webpack_require__(45)\n\t , defined = __webpack_require__(15)\n\t , forOf = __webpack_require__(28)\n\t , $iterDefine = __webpack_require__(29)\n\t , step = __webpack_require__(41)\n\t , ID = __webpack_require__(32)('id')\n\t , $has = __webpack_require__(16)\n\t , isObject = __webpack_require__(17)\n\t , setSpecies = __webpack_require__(87)\n\t , DESCRIPTORS = __webpack_require__(7)\n\t , isExtensible = Object.isExtensible || isObject\n\t , SIZE = DESCRIPTORS ? '_s' : 'size'\n\t , id = 0;\n\t\n\tvar fastKey = function(it, create){\n\t // return primitive with prefix\n\t if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n\t if(!$has(it, ID)){\n\t // can't set id to frozen object\n\t if(!isExtensible(it))return 'F';\n\t // not necessary to add id\n\t if(!create)return 'E';\n\t // add missing object id\n\t hide(it, ID, ++id);\n\t // return object id with prefix\n\t } return 'O' + it[ID];\n\t};\n\t\n\tvar getEntry = function(that, key){\n\t // fast case\n\t var index = fastKey(key), entry;\n\t if(index !== 'F')return that._i[index];\n\t // frozen object case\n\t for(entry = that._f; entry; entry = entry.n){\n\t if(entry.k == key)return entry;\n\t }\n\t};\n\t\n\tmodule.exports = {\n\t getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n\t var C = wrapper(function(that, iterable){\n\t strictNew(that, C, NAME);\n\t that._i = $.create(null); // index\n\t that._f = undefined; // first entry\n\t that._l = undefined; // last entry\n\t that[SIZE] = 0; // size\n\t if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n\t });\n\t redefineAll(C.prototype, {\n\t // 23.1.3.1 Map.prototype.clear()\n\t // 23.2.3.2 Set.prototype.clear()\n\t clear: function clear(){\n\t for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){\n\t entry.r = true;\n\t if(entry.p)entry.p = entry.p.n = undefined;\n\t delete data[entry.i];\n\t }\n\t that._f = that._l = undefined;\n\t that[SIZE] = 0;\n\t },\n\t // 23.1.3.3 Map.prototype.delete(key)\n\t // 23.2.3.4 Set.prototype.delete(value)\n\t 'delete': function(key){\n\t var that = this\n\t , entry = getEntry(that, key);\n\t if(entry){\n\t var next = entry.n\n\t , prev = entry.p;\n\t delete that._i[entry.i];\n\t entry.r = true;\n\t if(prev)prev.n = next;\n\t if(next)next.p = prev;\n\t if(that._f == entry)that._f = next;\n\t if(that._l == entry)that._l = prev;\n\t that[SIZE]--;\n\t } return !!entry;\n\t },\n\t // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n\t // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n\t forEach: function forEach(callbackfn /*, that = undefined */){\n\t var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3)\n\t , entry;\n\t while(entry = entry ? entry.n : this._f){\n\t f(entry.v, entry.k, this);\n\t // revert to the last existing entry\n\t while(entry && entry.r)entry = entry.p;\n\t }\n\t },\n\t // 23.1.3.7 Map.prototype.has(key)\n\t // 23.2.3.7 Set.prototype.has(value)\n\t has: function has(key){\n\t return !!getEntry(this, key);\n\t }\n\t });\n\t if(DESCRIPTORS)$.setDesc(C.prototype, 'size', {\n\t get: function(){\n\t return defined(this[SIZE]);\n\t }\n\t });\n\t return C;\n\t },\n\t def: function(that, key, value){\n\t var entry = getEntry(that, key)\n\t , prev, index;\n\t // change existing entry\n\t if(entry){\n\t entry.v = value;\n\t // create new entry\n\t } else {\n\t that._l = entry = {\n\t i: index = fastKey(key, true), // <- index\n\t k: key, // <- key\n\t v: value, // <- value\n\t p: prev = that._l, // <- previous entry\n\t n: undefined, // <- next entry\n\t r: false // <- removed\n\t };\n\t if(!that._f)that._f = entry;\n\t if(prev)prev.n = entry;\n\t that[SIZE]++;\n\t // add to index\n\t if(index !== 'F')that._i[index] = entry;\n\t } return that;\n\t },\n\t getEntry: getEntry,\n\t setStrong: function(C, NAME, IS_MAP){\n\t // add .keys, .values, .entries, [@@iterator]\n\t // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n\t $iterDefine(C, NAME, function(iterated, kind){\n\t this._t = iterated; // target\n\t this._k = kind; // kind\n\t this._l = undefined; // previous\n\t }, function(){\n\t var that = this\n\t , kind = that._k\n\t , entry = that._l;\n\t // revert to the last existing entry\n\t while(entry && entry.r)entry = entry.p;\n\t // get next entry\n\t if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){\n\t // or finish the iteration\n\t that._t = undefined;\n\t return step(1);\n\t }\n\t // return step by kind\n\t if(kind == 'keys' )return step(0, entry.k);\n\t if(kind == 'values')return step(0, entry.v);\n\t return step(0, [entry.k, entry.v]);\n\t }, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);\n\t\n\t // add [@@species], 23.1.2.2, 23.2.2.2\n\t setSpecies(NAME);\n\t }\n\t};\n\n/***/ },\n/* 75 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// https://github.com/DavidBruant/Map-Set.prototype.toJSON\n\tvar forOf = __webpack_require__(28)\n\t , classof = __webpack_require__(26);\n\tmodule.exports = function(NAME){\n\t return function toJSON(){\n\t if(classof(this) != NAME)throw TypeError(NAME + \"#toJSON isn't generic\");\n\t var arr = [];\n\t forOf(this, false, arr.push, arr);\n\t return arr;\n\t };\n\t};\n\n/***/ },\n/* 76 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar $ = __webpack_require__(1)\n\t , global = __webpack_require__(9)\n\t , $export = __webpack_require__(4)\n\t , fails = __webpack_require__(8)\n\t , hide = __webpack_require__(10)\n\t , redefineAll = __webpack_require__(43)\n\t , forOf = __webpack_require__(28)\n\t , strictNew = __webpack_require__(45)\n\t , isObject = __webpack_require__(17)\n\t , setToStringTag = __webpack_require__(18)\n\t , DESCRIPTORS = __webpack_require__(7);\n\t\n\tmodule.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){\n\t var Base = global[NAME]\n\t , C = Base\n\t , ADDER = IS_MAP ? 'set' : 'add'\n\t , proto = C && C.prototype\n\t , O = {};\n\t if(!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){\n\t new C().entries().next();\n\t }))){\n\t // create collection constructor\n\t C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n\t redefineAll(C.prototype, methods);\n\t } else {\n\t C = wrapper(function(target, iterable){\n\t strictNew(target, C, NAME);\n\t target._c = new Base;\n\t if(iterable != undefined)forOf(iterable, IS_MAP, target[ADDER], target);\n\t });\n\t $.each.call('add,clear,delete,forEach,get,has,set,keys,values,entries'.split(','),function(KEY){\n\t var IS_ADDER = KEY == 'add' || KEY == 'set';\n\t if(KEY in proto && !(IS_WEAK && KEY == 'clear'))hide(C.prototype, KEY, function(a, b){\n\t if(!IS_ADDER && IS_WEAK && !isObject(a))return KEY == 'get' ? undefined : false;\n\t var result = this._c[KEY](a === 0 ? 0 : a, b);\n\t return IS_ADDER ? this : result;\n\t });\n\t });\n\t if('size' in proto)$.setDesc(C.prototype, 'size', {\n\t get: function(){\n\t return this._c.size;\n\t }\n\t });\n\t }\n\t\n\t setToStringTag(C, NAME);\n\t\n\t O[NAME] = C;\n\t $export($export.G + $export.W + $export.F, O);\n\t\n\t if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);\n\t\n\t return C;\n\t};\n\n/***/ },\n/* 77 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// all enumerable object keys, includes symbols\n\tvar $ = __webpack_require__(1);\n\tmodule.exports = function(it){\n\t var keys = $.getKeys(it)\n\t , getSymbols = $.getSymbols;\n\t if(getSymbols){\n\t var symbols = getSymbols(it)\n\t , isEnum = $.isEnum\n\t , i = 0\n\t , key;\n\t while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);\n\t }\n\t return keys;\n\t};\n\n/***/ },\n/* 78 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\n\tvar toIObject = __webpack_require__(19)\n\t , getNames = __webpack_require__(1).getNames\n\t , toString = {}.toString;\n\t\n\tvar windowNames = typeof window == 'object' && Object.getOwnPropertyNames\n\t ? Object.getOwnPropertyNames(window) : [];\n\t\n\tvar getWindowNames = function(it){\n\t try {\n\t return getNames(it);\n\t } catch(e){\n\t return windowNames.slice();\n\t }\n\t};\n\t\n\tmodule.exports.get = function getOwnPropertyNames(it){\n\t if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);\n\t return getNames(toIObject(it));\n\t};\n\n/***/ },\n/* 79 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// check on default Array iterator\n\tvar Iterators = __webpack_require__(5)\n\t , ITERATOR = __webpack_require__(3)('iterator')\n\t , ArrayProto = Array.prototype;\n\t\n\tmodule.exports = function(it){\n\t return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n\t};\n\n/***/ },\n/* 80 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.2.2 IsArray(argument)\n\tvar cof = __webpack_require__(27);\n\tmodule.exports = Array.isArray || function(arg){\n\t return cof(arg) == 'Array';\n\t};\n\n/***/ },\n/* 81 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// call something on iterator step with safe closing on error\n\tvar anObject = __webpack_require__(6);\n\tmodule.exports = function(iterator, fn, value, entries){\n\t try {\n\t return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n\t // 7.4.6 IteratorClose(iterator, completion)\n\t } catch(e){\n\t var ret = iterator['return'];\n\t if(ret !== undefined)anObject(ret.call(iterator));\n\t throw e;\n\t }\n\t};\n\n/***/ },\n/* 82 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar $ = __webpack_require__(1)\n\t , descriptor = __webpack_require__(30)\n\t , setToStringTag = __webpack_require__(18)\n\t , IteratorPrototype = {};\n\t\n\t// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\n\t__webpack_require__(10)(IteratorPrototype, __webpack_require__(3)('iterator'), function(){ return this; });\n\t\n\tmodule.exports = function(Constructor, NAME, next){\n\t Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});\n\t setToStringTag(Constructor, NAME + ' Iterator');\n\t};\n\n/***/ },\n/* 83 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar $ = __webpack_require__(1)\n\t , toIObject = __webpack_require__(19);\n\tmodule.exports = function(object, el){\n\t var O = toIObject(object)\n\t , keys = $.getKeys(O)\n\t , length = keys.length\n\t , index = 0\n\t , key;\n\t while(length > index)if(O[key = keys[index++]] === el)return key;\n\t};\n\n/***/ },\n/* 84 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.2.1 Object.assign(target, source, ...)\n\tvar $ = __webpack_require__(1)\n\t , toObject = __webpack_require__(47)\n\t , IObject = __webpack_require__(40);\n\t\n\t// should work with symbols and should have deterministic property order (V8 bug)\n\tmodule.exports = __webpack_require__(8)(function(){\n\t var a = Object.assign\n\t , A = {}\n\t , B = {}\n\t , S = Symbol()\n\t , K = 'abcdefghijklmnopqrst';\n\t A[S] = 7;\n\t K.split('').forEach(function(k){ B[k] = k; });\n\t return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n\t}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n\t var T = toObject(target)\n\t , $$ = arguments\n\t , $$len = $$.length\n\t , index = 1\n\t , getKeys = $.getKeys\n\t , getSymbols = $.getSymbols\n\t , isEnum = $.isEnum;\n\t while($$len > index){\n\t var S = IObject($$[index++])\n\t , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n\t , length = keys.length\n\t , j = 0\n\t , key;\n\t while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n\t }\n\t return T;\n\t} : Object.assign;\n\n/***/ },\n/* 85 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// most Object methods by ES6 should accept primitives\n\tvar $export = __webpack_require__(4)\n\t , core = __webpack_require__(2)\n\t , fails = __webpack_require__(8);\n\tmodule.exports = function(KEY, exec){\n\t var fn = (core.Object || {})[KEY] || Object[KEY]\n\t , exp = {};\n\t exp[KEY] = exec(fn);\n\t $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);\n\t};\n\n/***/ },\n/* 86 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// Works with __proto__ only. Old v8 can't work with null proto objects.\n\t/* eslint-disable no-proto */\n\tvar getDesc = __webpack_require__(1).getDesc\n\t , isObject = __webpack_require__(17)\n\t , anObject = __webpack_require__(6);\n\tvar check = function(O, proto){\n\t anObject(O);\n\t if(!isObject(proto) && proto !== null)throw TypeError(proto + \": can't set as prototype!\");\n\t};\n\tmodule.exports = {\n\t set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n\t function(test, buggy, set){\n\t try {\n\t set = __webpack_require__(14)(Function.call, getDesc(Object.prototype, '__proto__').set, 2);\n\t set(test, []);\n\t buggy = !(test instanceof Array);\n\t } catch(e){ buggy = true; }\n\t return function setPrototypeOf(O, proto){\n\t check(O, proto);\n\t if(buggy)O.__proto__ = proto;\n\t else set(O, proto);\n\t return O;\n\t };\n\t }({}, false) : undefined),\n\t check: check\n\t};\n\n/***/ },\n/* 87 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar core = __webpack_require__(2)\n\t , $ = __webpack_require__(1)\n\t , DESCRIPTORS = __webpack_require__(7)\n\t , SPECIES = __webpack_require__(3)('species');\n\t\n\tmodule.exports = function(KEY){\n\t var C = core[KEY];\n\t if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {\n\t configurable: true,\n\t get: function(){ return this; }\n\t });\n\t};\n\n/***/ },\n/* 88 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar toInteger = __webpack_require__(46)\n\t , defined = __webpack_require__(15);\n\t// true -> String#at\n\t// false -> String#codePointAt\n\tmodule.exports = function(TO_STRING){\n\t return function(that, pos){\n\t var s = String(defined(that))\n\t , i = toInteger(pos)\n\t , l = s.length\n\t , a, b;\n\t if(i < 0 || i >= l)return TO_STRING ? '' : undefined;\n\t a = s.charCodeAt(i);\n\t return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n\t ? TO_STRING ? s.charAt(i) : a\n\t : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n\t };\n\t};\n\n/***/ },\n/* 89 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 7.1.15 ToLength\n\tvar toInteger = __webpack_require__(46)\n\t , min = Math.min;\n\tmodule.exports = function(it){\n\t return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n\t};\n\n/***/ },\n/* 90 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar anObject = __webpack_require__(6)\n\t , get = __webpack_require__(48);\n\tmodule.exports = __webpack_require__(2).getIterator = function(it){\n\t var iterFn = get(it);\n\t if(typeof iterFn != 'function')throw TypeError(it + ' is not iterable!');\n\t return anObject(iterFn.call(it));\n\t};\n\n/***/ },\n/* 91 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar classof = __webpack_require__(26)\n\t , ITERATOR = __webpack_require__(3)('iterator')\n\t , Iterators = __webpack_require__(5);\n\tmodule.exports = __webpack_require__(2).isIterable = function(it){\n\t var O = Object(it);\n\t return O[ITERATOR] !== undefined\n\t || '@@iterator' in O\n\t || Iterators.hasOwnProperty(classof(O));\n\t};\n\n/***/ },\n/* 92 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar addToUnscopables = __webpack_require__(73)\n\t , step = __webpack_require__(41)\n\t , Iterators = __webpack_require__(5)\n\t , toIObject = __webpack_require__(19);\n\t\n\t// 22.1.3.4 Array.prototype.entries()\n\t// 22.1.3.13 Array.prototype.keys()\n\t// 22.1.3.29 Array.prototype.values()\n\t// 22.1.3.30 Array.prototype[@@iterator]()\n\tmodule.exports = __webpack_require__(29)(Array, 'Array', function(iterated, kind){\n\t this._t = toIObject(iterated); // target\n\t this._i = 0; // next index\n\t this._k = kind; // kind\n\t// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n\t}, function(){\n\t var O = this._t\n\t , kind = this._k\n\t , index = this._i++;\n\t if(!O || index >= O.length){\n\t this._t = undefined;\n\t return step(1);\n\t }\n\t if(kind == 'keys' )return step(0, index);\n\t if(kind == 'values')return step(0, O[index]);\n\t return step(0, [index, O[index]]);\n\t}, 'values');\n\t\n\t// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\n\tIterators.Arguments = Iterators.Array;\n\t\n\taddToUnscopables('keys');\n\taddToUnscopables('values');\n\taddToUnscopables('entries');\n\n/***/ },\n/* 93 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.3.1 Object.assign(target, source)\n\tvar $export = __webpack_require__(4);\n\t\n\t$export($export.S + $export.F, 'Object', {assign: __webpack_require__(84)});\n\n/***/ },\n/* 94 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.2.9 Object.getPrototypeOf(O)\n\tvar toObject = __webpack_require__(47);\n\t\n\t__webpack_require__(85)('getPrototypeOf', function($getPrototypeOf){\n\t return function getPrototypeOf(it){\n\t return $getPrototypeOf(toObject(it));\n\t };\n\t});\n\n/***/ },\n/* 95 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// 19.1.3.19 Object.setPrototypeOf(O, proto)\n\tvar $export = __webpack_require__(4);\n\t$export($export.S, 'Object', {setPrototypeOf: __webpack_require__(86).set});\n\n/***/ },\n/* 96 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\tvar strong = __webpack_require__(74);\n\t\n\t// 23.2 Set Objects\n\t__webpack_require__(76)('Set', function(get){\n\t return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n\t}, {\n\t // 23.2.3.1 Set.prototype.add(value)\n\t add: function add(value){\n\t return strong.def(this, value = value === 0 ? 0 : value, value);\n\t }\n\t}, strong);\n\n/***/ },\n/* 97 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t// ECMAScript 6 symbols shim\n\tvar $ = __webpack_require__(1)\n\t , global = __webpack_require__(9)\n\t , has = __webpack_require__(16)\n\t , DESCRIPTORS = __webpack_require__(7)\n\t , $export = __webpack_require__(4)\n\t , redefine = __webpack_require__(31)\n\t , $fails = __webpack_require__(8)\n\t , shared = __webpack_require__(44)\n\t , setToStringTag = __webpack_require__(18)\n\t , uid = __webpack_require__(32)\n\t , wks = __webpack_require__(3)\n\t , keyOf = __webpack_require__(83)\n\t , $names = __webpack_require__(78)\n\t , enumKeys = __webpack_require__(77)\n\t , isArray = __webpack_require__(80)\n\t , anObject = __webpack_require__(6)\n\t , toIObject = __webpack_require__(19)\n\t , createDesc = __webpack_require__(30)\n\t , getDesc = $.getDesc\n\t , setDesc = $.setDesc\n\t , _create = $.create\n\t , getNames = $names.get\n\t , $Symbol = global.Symbol\n\t , $JSON = global.JSON\n\t , _stringify = $JSON && $JSON.stringify\n\t , setter = false\n\t , HIDDEN = wks('_hidden')\n\t , isEnum = $.isEnum\n\t , SymbolRegistry = shared('symbol-registry')\n\t , AllSymbols = shared('symbols')\n\t , useNative = typeof $Symbol == 'function'\n\t , ObjectProto = Object.prototype;\n\t\n\t// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\n\tvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n\t return _create(setDesc({}, 'a', {\n\t get: function(){ return setDesc(this, 'a', {value: 7}).a; }\n\t })).a != 7;\n\t}) ? function(it, key, D){\n\t var protoDesc = getDesc(ObjectProto, key);\n\t if(protoDesc)delete ObjectProto[key];\n\t setDesc(it, key, D);\n\t if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);\n\t} : setDesc;\n\t\n\tvar wrap = function(tag){\n\t var sym = AllSymbols[tag] = _create($Symbol.prototype);\n\t sym._k = tag;\n\t DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {\n\t configurable: true,\n\t set: function(value){\n\t if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n\t setSymbolDesc(this, tag, createDesc(1, value));\n\t }\n\t });\n\t return sym;\n\t};\n\t\n\tvar isSymbol = function(it){\n\t return typeof it == 'symbol';\n\t};\n\t\n\tvar $defineProperty = function defineProperty(it, key, D){\n\t if(D && has(AllSymbols, key)){\n\t if(!D.enumerable){\n\t if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));\n\t it[HIDDEN][key] = true;\n\t } else {\n\t if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n\t D = _create(D, {enumerable: createDesc(0, false)});\n\t } return setSymbolDesc(it, key, D);\n\t } return setDesc(it, key, D);\n\t};\n\tvar $defineProperties = function defineProperties(it, P){\n\t anObject(it);\n\t var keys = enumKeys(P = toIObject(P))\n\t , i = 0\n\t , l = keys.length\n\t , key;\n\t while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n\t return it;\n\t};\n\tvar $create = function create(it, P){\n\t return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n\t};\n\tvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n\t var E = isEnum.call(this, key);\n\t return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]\n\t ? E : true;\n\t};\n\tvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n\t var D = getDesc(it = toIObject(it), key);\n\t if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n\t return D;\n\t};\n\tvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n\t var names = getNames(toIObject(it))\n\t , result = []\n\t , i = 0\n\t , key;\n\t while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);\n\t return result;\n\t};\n\tvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n\t var names = getNames(toIObject(it))\n\t , result = []\n\t , i = 0\n\t , key;\n\t while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);\n\t return result;\n\t};\n\tvar $stringify = function stringify(it){\n\t if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n\t var args = [it]\n\t , i = 1\n\t , $$ = arguments\n\t , replacer, $replacer;\n\t while($$.length > i)args.push($$[i++]);\n\t replacer = args[1];\n\t if(typeof replacer == 'function')$replacer = replacer;\n\t if($replacer || !isArray(replacer))replacer = function(key, value){\n\t if($replacer)value = $replacer.call(this, key, value);\n\t if(!isSymbol(value))return value;\n\t };\n\t args[1] = replacer;\n\t return _stringify.apply($JSON, args);\n\t};\n\tvar buggyJSON = $fails(function(){\n\t var S = $Symbol();\n\t // MS Edge converts symbol values to JSON as {}\n\t // WebKit converts symbol values to JSON as null\n\t // V8 throws on boxed symbols\n\t return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n\t});\n\t\n\t// 19.4.1.1 Symbol([description])\n\tif(!useNative){\n\t $Symbol = function Symbol(){\n\t if(isSymbol(this))throw TypeError('Symbol is not a constructor');\n\t return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));\n\t };\n\t redefine($Symbol.prototype, 'toString', function toString(){\n\t return this._k;\n\t });\n\t\n\t isSymbol = function(it){\n\t return it instanceof $Symbol;\n\t };\n\t\n\t $.create = $create;\n\t $.isEnum = $propertyIsEnumerable;\n\t $.getDesc = $getOwnPropertyDescriptor;\n\t $.setDesc = $defineProperty;\n\t $.setDescs = $defineProperties;\n\t $.getNames = $names.get = $getOwnPropertyNames;\n\t $.getSymbols = $getOwnPropertySymbols;\n\t\n\t if(DESCRIPTORS && !__webpack_require__(42)){\n\t redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n\t }\n\t}\n\t\n\tvar symbolStatics = {\n\t // 19.4.2.1 Symbol.for(key)\n\t 'for': function(key){\n\t return has(SymbolRegistry, key += '')\n\t ? SymbolRegistry[key]\n\t : SymbolRegistry[key] = $Symbol(key);\n\t },\n\t // 19.4.2.5 Symbol.keyFor(sym)\n\t keyFor: function keyFor(key){\n\t return keyOf(SymbolRegistry, key);\n\t },\n\t useSetter: function(){ setter = true; },\n\t useSimple: function(){ setter = false; }\n\t};\n\t// 19.4.2.2 Symbol.hasInstance\n\t// 19.4.2.3 Symbol.isConcatSpreadable\n\t// 19.4.2.4 Symbol.iterator\n\t// 19.4.2.6 Symbol.match\n\t// 19.4.2.8 Symbol.replace\n\t// 19.4.2.9 Symbol.search\n\t// 19.4.2.10 Symbol.species\n\t// 19.4.2.11 Symbol.split\n\t// 19.4.2.12 Symbol.toPrimitive\n\t// 19.4.2.13 Symbol.toStringTag\n\t// 19.4.2.14 Symbol.unscopables\n\t$.each.call((\n\t 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +\n\t 'species,split,toPrimitive,toStringTag,unscopables'\n\t).split(','), function(it){\n\t var sym = wks(it);\n\t symbolStatics[it] = useNative ? sym : wrap(sym);\n\t});\n\t\n\tsetter = true;\n\t\n\t$export($export.G + $export.W, {Symbol: $Symbol});\n\t\n\t$export($export.S, 'Symbol', symbolStatics);\n\t\n\t$export($export.S + $export.F * !useNative, 'Object', {\n\t // 19.1.2.2 Object.create(O [, Properties])\n\t create: $create,\n\t // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n\t defineProperty: $defineProperty,\n\t // 19.1.2.3 Object.defineProperties(O, Properties)\n\t defineProperties: $defineProperties,\n\t // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n\t getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n\t // 19.1.2.7 Object.getOwnPropertyNames(O)\n\t getOwnPropertyNames: $getOwnPropertyNames,\n\t // 19.1.2.8 Object.getOwnPropertySymbols(O)\n\t getOwnPropertySymbols: $getOwnPropertySymbols\n\t});\n\t\n\t// 24.3.2 JSON.stringify(value [, replacer [, space]])\n\t$JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});\n\t\n\t// 19.4.3.5 Symbol.prototype[@@toStringTag]\n\tsetToStringTag($Symbol, 'Symbol');\n\t// 20.2.1.9 Math[@@toStringTag]\n\tsetToStringTag(Math, 'Math', true);\n\t// 24.3.3 JSON[@@toStringTag]\n\tsetToStringTag(global.JSON, 'JSON', true);\n\n/***/ },\n/* 98 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// https://github.com/DavidBruant/Map-Set.prototype.toJSON\n\tvar $export = __webpack_require__(4);\n\t\n\t$export($export.P, 'Set', {toJSON: __webpack_require__(75)('Set')});\n\n/***/ },\n/* 99 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar __WEBPACK_AMD_DEFINE_RESULT__;/*!\n\t * EventEmitter v4.2.11 - git.io/ee\n\t * Unlicense - http://unlicense.org/\n\t * Oliver Caldwell - http://oli.me.uk/\n\t * @preserve\n\t */\n\t\n\t;(function () {\n\t 'use strict';\n\t\n\t /**\n\t * Class for managing events.\n\t * Can be extended to provide event functionality in other classes.\n\t *\n\t * @class EventEmitter Manages event registering and emitting.\n\t */\n\t function EventEmitter() {}\n\t\n\t // Shortcuts to improve speed and size\n\t var proto = EventEmitter.prototype;\n\t var exports = this;\n\t var originalGlobalValue = exports.EventEmitter;\n\t\n\t /**\n\t * Finds the index of the listener for the event in its storage array.\n\t *\n\t * @param {Function[]} listeners Array of listeners to search through.\n\t * @param {Function} listener Method to look for.\n\t * @return {Number} Index of the specified listener, -1 if not found\n\t * @api private\n\t */\n\t function indexOfListener(listeners, listener) {\n\t var i = listeners.length;\n\t while (i--) {\n\t if (listeners[i].listener === listener) {\n\t return i;\n\t }\n\t }\n\t\n\t return -1;\n\t }\n\t\n\t /**\n\t * Alias a method while keeping the context correct, to allow for overwriting of target method.\n\t *\n\t * @param {String} name The name of the target method.\n\t * @return {Function} The aliased method\n\t * @api private\n\t */\n\t function alias(name) {\n\t return function aliasClosure() {\n\t return this[name].apply(this, arguments);\n\t };\n\t }\n\t\n\t /**\n\t * Returns the listener array for the specified event.\n\t * Will initialise the event object and listener arrays if required.\n\t * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.\n\t * Each property in the object response is an array of listener functions.\n\t *\n\t * @param {String|RegExp} evt Name of the event to return the listeners from.\n\t * @return {Function[]|Object} All listener functions for the event.\n\t */\n\t proto.getListeners = function getListeners(evt) {\n\t var events = this._getEvents();\n\t var response;\n\t var key;\n\t\n\t // Return a concatenated array of all matching events if\n\t // the selector is a regular expression.\n\t if (evt instanceof RegExp) {\n\t response = {};\n\t for (key in events) {\n\t if (events.hasOwnProperty(key) && evt.test(key)) {\n\t response[key] = events[key];\n\t }\n\t }\n\t }\n\t else {\n\t response = events[evt] || (events[evt] = []);\n\t }\n\t\n\t return response;\n\t };\n\t\n\t /**\n\t * Takes a list of listener objects and flattens it into a list of listener functions.\n\t *\n\t * @param {Object[]} listeners Raw listener objects.\n\t * @return {Function[]} Just the listener functions.\n\t */\n\t proto.flattenListeners = function flattenListeners(listeners) {\n\t var flatListeners = [];\n\t var i;\n\t\n\t for (i = 0; i < listeners.length; i += 1) {\n\t flatListeners.push(listeners[i].listener);\n\t }\n\t\n\t return flatListeners;\n\t };\n\t\n\t /**\n\t * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.\n\t *\n\t * @param {String|RegExp} evt Name of the event to return the listeners from.\n\t * @return {Object} All listener functions for an event in an object.\n\t */\n\t proto.getListenersAsObject = function getListenersAsObject(evt) {\n\t var listeners = this.getListeners(evt);\n\t var response;\n\t\n\t if (listeners instanceof Array) {\n\t response = {};\n\t response[evt] = listeners;\n\t }\n\t\n\t return response || listeners;\n\t };\n\t\n\t /**\n\t * Adds a listener function to the specified event.\n\t * The listener will not be added if it is a duplicate.\n\t * If the listener returns true then it will be removed after it is called.\n\t * If you pass a regular expression as the event name then the listener will be added to all events that match it.\n\t *\n\t * @param {String|RegExp} evt Name of the event to attach the listener to.\n\t * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.addListener = function addListener(evt, listener) {\n\t var listeners = this.getListenersAsObject(evt);\n\t var listenerIsWrapped = typeof listener === 'object';\n\t var key;\n\t\n\t for (key in listeners) {\n\t if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {\n\t listeners[key].push(listenerIsWrapped ? listener : {\n\t listener: listener,\n\t once: false\n\t });\n\t }\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Alias of addListener\n\t */\n\t proto.on = alias('addListener');\n\t\n\t /**\n\t * Semi-alias of addListener. It will add a listener that will be\n\t * automatically removed after its first execution.\n\t *\n\t * @param {String|RegExp} evt Name of the event to attach the listener to.\n\t * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.addOnceListener = function addOnceListener(evt, listener) {\n\t return this.addListener(evt, {\n\t listener: listener,\n\t once: true\n\t });\n\t };\n\t\n\t /**\n\t * Alias of addOnceListener.\n\t */\n\t proto.once = alias('addOnceListener');\n\t\n\t /**\n\t * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.\n\t * You need to tell it what event names should be matched by a regex.\n\t *\n\t * @param {String} evt Name of the event to create.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.defineEvent = function defineEvent(evt) {\n\t this.getListeners(evt);\n\t return this;\n\t };\n\t\n\t /**\n\t * Uses defineEvent to define multiple events.\n\t *\n\t * @param {String[]} evts An array of event names to define.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.defineEvents = function defineEvents(evts) {\n\t for (var i = 0; i < evts.length; i += 1) {\n\t this.defineEvent(evts[i]);\n\t }\n\t return this;\n\t };\n\t\n\t /**\n\t * Removes a listener function from the specified event.\n\t * When passed a regular expression as the event name, it will remove the listener from all events that match it.\n\t *\n\t * @param {String|RegExp} evt Name of the event to remove the listener from.\n\t * @param {Function} listener Method to remove from the event.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.removeListener = function removeListener(evt, listener) {\n\t var listeners = this.getListenersAsObject(evt);\n\t var index;\n\t var key;\n\t\n\t for (key in listeners) {\n\t if (listeners.hasOwnProperty(key)) {\n\t index = indexOfListener(listeners[key], listener);\n\t\n\t if (index !== -1) {\n\t listeners[key].splice(index, 1);\n\t }\n\t }\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Alias of removeListener\n\t */\n\t proto.off = alias('removeListener');\n\t\n\t /**\n\t * Adds listeners in bulk using the manipulateListeners method.\n\t * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.\n\t * You can also pass it a regular expression to add the array of listeners to all events that match it.\n\t * Yeah, this function does quite a bit. That's probably a bad thing.\n\t *\n\t * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.\n\t * @param {Function[]} [listeners] An optional array of listener functions to add.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.addListeners = function addListeners(evt, listeners) {\n\t // Pass through to manipulateListeners\n\t return this.manipulateListeners(false, evt, listeners);\n\t };\n\t\n\t /**\n\t * Removes listeners in bulk using the manipulateListeners method.\n\t * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n\t * You can also pass it an event name and an array of listeners to be removed.\n\t * You can also pass it a regular expression to remove the listeners from all events that match it.\n\t *\n\t * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.\n\t * @param {Function[]} [listeners] An optional array of listener functions to remove.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.removeListeners = function removeListeners(evt, listeners) {\n\t // Pass through to manipulateListeners\n\t return this.manipulateListeners(true, evt, listeners);\n\t };\n\t\n\t /**\n\t * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.\n\t * The first argument will determine if the listeners are removed (true) or added (false).\n\t * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n\t * You can also pass it an event name and an array of listeners to be added/removed.\n\t * You can also pass it a regular expression to manipulate the listeners of all events that match it.\n\t *\n\t * @param {Boolean} remove True if you want to remove listeners, false if you want to add.\n\t * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.\n\t * @param {Function[]} [listeners] An optional array of listener functions to add/remove.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {\n\t var i;\n\t var value;\n\t var single = remove ? this.removeListener : this.addListener;\n\t var multiple = remove ? this.removeListeners : this.addListeners;\n\t\n\t // If evt is an object then pass each of its properties to this method\n\t if (typeof evt === 'object' && !(evt instanceof RegExp)) {\n\t for (i in evt) {\n\t if (evt.hasOwnProperty(i) && (value = evt[i])) {\n\t // Pass the single listener straight through to the singular method\n\t if (typeof value === 'function') {\n\t single.call(this, i, value);\n\t }\n\t else {\n\t // Otherwise pass back to the multiple function\n\t multiple.call(this, i, value);\n\t }\n\t }\n\t }\n\t }\n\t else {\n\t // So evt must be a string\n\t // And listeners must be an array of listeners\n\t // Loop over it and pass each one to the multiple method\n\t i = listeners.length;\n\t while (i--) {\n\t single.call(this, evt, listeners[i]);\n\t }\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Removes all listeners from a specified event.\n\t * If you do not specify an event then all listeners will be removed.\n\t * That means every event will be emptied.\n\t * You can also pass a regex to remove all events that match it.\n\t *\n\t * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.removeEvent = function removeEvent(evt) {\n\t var type = typeof evt;\n\t var events = this._getEvents();\n\t var key;\n\t\n\t // Remove different things depending on the state of evt\n\t if (type === 'string') {\n\t // Remove all listeners for the specified event\n\t delete events[evt];\n\t }\n\t else if (evt instanceof RegExp) {\n\t // Remove all events matching the regex.\n\t for (key in events) {\n\t if (events.hasOwnProperty(key) && evt.test(key)) {\n\t delete events[key];\n\t }\n\t }\n\t }\n\t else {\n\t // Remove all listeners in all events\n\t delete this._events;\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Alias of removeEvent.\n\t *\n\t * Added to mirror the node API.\n\t */\n\t proto.removeAllListeners = alias('removeEvent');\n\t\n\t /**\n\t * Emits an event of your choice.\n\t * When emitted, every listener attached to that event will be executed.\n\t * If you pass the optional argument array then those arguments will be passed to every listener upon execution.\n\t * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.\n\t * So they will not arrive within the array on the other side, they will be separate.\n\t * You can also pass a regular expression to emit to all events that match it.\n\t *\n\t * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n\t * @param {Array} [args] Optional array of arguments to be passed to each listener.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.emitEvent = function emitEvent(evt, args) {\n\t var listenersMap = this.getListenersAsObject(evt);\n\t var listeners;\n\t var listener;\n\t var i;\n\t var key;\n\t var response;\n\t\n\t for (key in listenersMap) {\n\t if (listenersMap.hasOwnProperty(key)) {\n\t listeners = listenersMap[key].slice(0);\n\t i = listeners.length;\n\t\n\t while (i--) {\n\t // If the listener returns true then it shall be removed from the event\n\t // The function is executed either with a basic call or an apply if there is an args array\n\t listener = listeners[i];\n\t\n\t if (listener.once === true) {\n\t this.removeListener(evt, listener.listener);\n\t }\n\t\n\t response = listener.listener.apply(this, args || []);\n\t\n\t if (response === this._getOnceReturnValue()) {\n\t this.removeListener(evt, listener.listener);\n\t }\n\t }\n\t }\n\t }\n\t\n\t return this;\n\t };\n\t\n\t /**\n\t * Alias of emitEvent\n\t */\n\t proto.trigger = alias('emitEvent');\n\t\n\t /**\n\t * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.\n\t * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.\n\t *\n\t * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n\t * @param {...*} Optional additional arguments to be passed to each listener.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.emit = function emit(evt) {\n\t var args = Array.prototype.slice.call(arguments, 1);\n\t return this.emitEvent(evt, args);\n\t };\n\t\n\t /**\n\t * Sets the current value to check against when executing listeners. If a\n\t * listeners return value matches the one set here then it will be removed\n\t * after execution. This value defaults to true.\n\t *\n\t * @param {*} value The new value to check for when executing listeners.\n\t * @return {Object} Current instance of EventEmitter for chaining.\n\t */\n\t proto.setOnceReturnValue = function setOnceReturnValue(value) {\n\t this._onceReturnValue = value;\n\t return this;\n\t };\n\t\n\t /**\n\t * Fetches the current value to check against when executing listeners. If\n\t * the listeners return value matches this one then it should be removed\n\t * automatically. It will return true by default.\n\t *\n\t * @return {*|Boolean} The current value to check for or the default, true.\n\t * @api private\n\t */\n\t proto._getOnceReturnValue = function _getOnceReturnValue() {\n\t if (this.hasOwnProperty('_onceReturnValue')) {\n\t return this._onceReturnValue;\n\t }\n\t else {\n\t return true;\n\t }\n\t };\n\t\n\t /**\n\t * Fetches the events object and creates one if required.\n\t *\n\t * @return {Object} The events storage object.\n\t * @api private\n\t */\n\t proto._getEvents = function _getEvents() {\n\t return this._events || (this._events = {});\n\t };\n\t\n\t /**\n\t * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.\n\t *\n\t * @return {Function} Non conflicting EventEmitter class.\n\t */\n\t EventEmitter.noConflict = function noConflict() {\n\t exports.EventEmitter = originalGlobalValue;\n\t return EventEmitter;\n\t };\n\t\n\t // Expose the class either via AMD, CommonJS or the global object\n\t if (true) {\n\t !(__WEBPACK_AMD_DEFINE_RESULT__ = function () {\n\t return EventEmitter;\n\t }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t }\n\t else if (typeof module === 'object' && module.exports){\n\t module.exports = EventEmitter;\n\t }\n\t else {\n\t exports.EventEmitter = EventEmitter;\n\t }\n\t}.call(this));\n\n\n/***/ },\n/* 100 */\n/***/ function(module, exports) {\n\n\t/*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t'use strict';\n\t\n\t/**\n\t * Provides a Basic Widget\n\t */\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar DestroyableWidget = function () {\n\t function DestroyableWidget() {\n\t _classCallCheck(this, DestroyableWidget);\n\t\n\t this.listeners = [];\n\t }\n\t\n\t /**\n\t * Destroys a Widget\n\t */\n\t\n\t\n\t _createClass(DestroyableWidget, [{\n\t key: 'destroy',\n\t value: function destroy() {\n\t this.listeners.forEach(function (listener) {\n\t listener.element.removeEventListener.apply(listener.element, listener.args);\n\t });\n\t this.listeners = [];\n\t }\n\t\n\t /**\n\t * Adds an event and registers it later to remove bindings\n\t * @param {HTMLElement} element\n\t * @param {String} name\n\t * @param {Function} listener\n\t * @param {boolean} [capture]\n\t * @returns {Function}\n\t */\n\t\n\t }, {\n\t key: 'addEventListener',\n\t value: function addEventListener(element, name, listener, capture) {\n\t this.listeners.push({\n\t element: element,\n\t args: [name, listener, capture]\n\t });\n\t\n\t element.addEventListener(name, listener, capture);\n\t return listener;\n\t }\n\t }]);\n\t\n\t return DestroyableWidget;\n\t}();\n\t\n\texports.default = DestroyableWidget;\n\n/***/ },\n/* 101 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t/*!\n\t * FlexCss.Modal\n\t * Licensed under the MIT License (MIT)\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t */\n\t\n\t'use strict';\n\t\n\t/* global KeyboardEvent */\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_MODAL_ASYNC_TARGET_LOADED = exports.EVENT_MODAL_INIT = exports.EVENT_MODAL_OPENED = exports.EVENT_MODAL_BEFORE_CLOSED = exports.EVENT_MODAL_CLOSED = undefined;\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tvar _Event = __webpack_require__(33);\n\t\n\tvar _Event2 = _interopRequireDefault(_Event);\n\t\n\tvar _Util = __webpack_require__(22);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tvar _Widget = __webpack_require__(36);\n\t\n\tvar _Widget2 = _interopRequireDefault(_Widget);\n\t\n\tvar _FixedWindow = __webpack_require__(51);\n\t\n\tvar _FixedWindow2 = _interopRequireDefault(_FixedWindow);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar HTML_ELEMENT = global.document.documentElement;\n\tvar KEY_ESC = 27;\n\t/* Attribute Names */\n\tvar ATTR_CREATE_NEW = 'data-new-instance';\n\tvar ATTR_CLOSE = 'data-close-modal';\n\tvar ATTR_NAME = 'data-modal';\n\t\n\t/* Class names */\n\tvar CLS_CONTAINER_CURRENT = 'front';\n\tvar CLS_OPEN = 'open';\n\tvar CLS_CURRENT = 'current';\n\tvar CLS_PART_OF_STACK = 'part-of-stack';\n\tvar CLS_MODAL_OPEN = 'modal-open';\n\tvar CLS_MODAL_CONTAINER = 'modal-container';\n\tvar CLS_ANIM_END = 'modal-anim-end';\n\tvar CLS_LOADER_CONTAINER = 'loader-container';\n\tvar CLS_LOADER = 'loader';\n\t\n\t/* Events */\n\t\n\t/**\n\t * Event triggered when modal is closed\n\t * @type {string}\n\t */\n\tvar EVENT_MODAL_CLOSED = exports.EVENT_MODAL_CLOSED = 'flexcss.modal.closed';\n\t/**\n\t * Event triggered before a modal is closed, cancelable\n\t * @type {string}\n\t */\n\tvar EVENT_MODAL_BEFORE_CLOSED = exports.EVENT_MODAL_BEFORE_CLOSED = 'flexcss.modal.beforeClose';\n\t/**\n\t * Event triggered when a modal is opened\n\t * @type {string}\n\t */\n\tvar EVENT_MODAL_OPENED = exports.EVENT_MODAL_OPENED = 'flexcss.modal.opened';\n\t\n\t/**\n\t * Event triggered when modal is initilized, called on target\n\t * @type {string}\n\t */\n\tvar EVENT_MODAL_INIT = exports.EVENT_MODAL_INIT = 'flexcss.modal.init';\n\t\n\t/**\n\t * Triggered when the content of an async modal on a target is loaded, called on target\n\t * @type {string}\n\t */\n\tvar EVENT_MODAL_ASYNC_TARGET_LOADED = exports.EVENT_MODAL_ASYNC_TARGET_LOADED = 'flexcss.modal.asyncTargetLoaded';\n\t\n\t/**\n\t * A Modal Implementation\n\t */\n\t\n\tvar Modal = function () {\n\t function Modal(DelegateContainer, options) {\n\t _classCallCheck(this, Modal);\n\t\n\t var doc = global.document;\n\t var container = DelegateContainer instanceof HTMLElement ? DelegateContainer : doc.getElementById(DelegateContainer);\n\t\n\t // Instance vars:\n\t if (!container) {\n\t throw new Error('Could not found container element by given ID/Element: ' + DelegateContainer);\n\t }\n\t\n\t this.currentOpen = null;\n\t\n\t this.loading = false;\n\t\n\t this.container = container;\n\t\n\t /**\n\t * Default Options\n\t */\n\t this.options = {\n\t classNames: 'modal',\n\t closeOnEscape: true,\n\t closeOnBackgroundClick: true,\n\t destroyOnFinish: false,\n\t fixedContainer: true,\n\t containerClassNames: ''\n\t };\n\t\n\t Object.assign(this.options, options);\n\t\n\t // Container where events are delegated\n\t this.eventContainer = null;\n\t this.eventFunction = null;\n\t\n\t this.dataMainPageContainer = global.document.body;\n\t\n\t this.currentScrollTop = 0;\n\t\n\t this.modalContainer = null;\n\t\n\t // Destroy full modal instance when no dialogs are bind to?\n\t // Otherwise container is recycled\n\t this.destroyOnFinish = this.options.destroyOnFinish;\n\t }\n\t\n\t /**\n\t * Removes this modal from global stack\n\t * Will handle fixing main html element too\n\t * @private\n\t * @param n\n\t */\n\t\n\t\n\t _createClass(Modal, [{\n\t key: '_removeModalFromStack',\n\t value: function _removeModalFromStack(n) {\n\t var t = Modal._modalInstances.indexOf(n);\n\t if (t > -1) {\n\t Modal._modalInstances.splice(t, 1);\n\t _FixedWindow2.default.getInstance().close().then(function () {\n\t HTML_ELEMENT.classList.remove(CLS_MODAL_OPEN);\n\t });\n\t }\n\t }\n\t\n\t /**\n\t * Modal container that contains all `stacked` modals for this instance\n\t * @returns {HTMLElement}\n\t */\n\t\n\t }, {\n\t key: 'getModalContainer',\n\t value: function getModalContainer() {\n\t return this.modalContainer;\n\t }\n\t\n\t /**\n\t * Closes the current open modal of this stack\n\t * @params [e], optional event\n\t * @returns {*}\n\t */\n\t\n\t }, {\n\t key: 'close',\n\t value: function close(e) {\n\t var self = this;\n\t\n\t var options = self.currentOpen ? _Util2.default.applyOptionsFromElement(self.currentOpen, _Util2.default.copy(self.options)) : self.options;\n\t\n\t // close only on keyboard if instance should\n\t if (!options.closeOnEscape && e instanceof KeyboardEvent) {\n\t return false;\n\t }\n\t\n\t // close only on background if instance should\n\t if (!options.closeOnBackgroundClick && e && e.type === _Settings2.default.getTabEvent() && !e.target.hasAttribute(ATTR_CLOSE)) {\n\t return false;\n\t }\n\t\n\t // if an instance is currently loading, prevent from closing\n\t if (self.loading) {\n\t return false;\n\t }\n\t\n\t if (e) {\n\t e.preventDefault();\n\t }\n\t\n\t if (self.currentOpen) {\n\t // dispatch beforeClose event, if prevented prevent modal from closing\n\t var ev = _Event2.default.dispatchAndFire(self.currentOpen, EVENT_MODAL_BEFORE_CLOSED);\n\t if (ev.defaultPrevented) {\n\t return false;\n\t }\n\t\n\t this._finishState(self.currentOpen);\n\t // if there is an previous modal\n\t if (self.currentOpen.prevModal) {\n\t // switch to the next modal\n\t return self.switchModals(self.currentOpen.prevModal, self.currentOpen.prevModal.prevModal || null);\n\t }\n\t\n\t // finally trigger closed event\n\t _Event2.default.dispatch(self.currentOpen, EVENT_MODAL_CLOSED).withOriginal(e).fire();\n\t }\n\t self._removeModalFromStack(self.currentOpen);\n\t\n\t // Full stack closed:\n\t self.currentOpen = null;\n\t if (self.modalContainer) {\n\t // setup next open\n\t var lastContainer = Modal._modalInstances[Modal._modalInstances.length - 1],\n\t classList = self.modalContainer.classList;\n\t classList.remove(CLS_CONTAINER_CURRENT);\n\t classList.remove(CLS_OPEN);\n\t // Remove all current classes from child-nodes\n\t for (var i = 0; i < self.modalContainer.childNodes.length; i++) {\n\t var node = self.modalContainer.childNodes[i],\n\t cl = node.classList;\n\t // remove applied styles\n\t self._finishState(node);\n\t cl.remove(CLS_CURRENT);\n\t cl.remove(CLS_PART_OF_STACK);\n\t }\n\t if (lastContainer) {\n\t lastContainer.parentNode.classList.add(CLS_CONTAINER_CURRENT);\n\t }\n\t }\n\t\n\t if (self.destroyOnFinish) {\n\t self.destroy();\n\t }\n\t return self;\n\t }\n\t\n\t /**\n\t * Resets a target when newly initilizes\n\t * @param target\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_finishState',\n\t value: function _finishState(target) {\n\t target.classList.remove(CLS_ANIM_END);\n\t }\n\t\n\t /**\n\t * Handler called when a Modal has finished an animation\n\t * @param e\n\t * @param self\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_finishAnim',\n\t value: function _finishAnim(e, self) {\n\t e.target.classList.add(CLS_ANIM_END);\n\t e.target.removeEventListener(e.type, self, true);\n\t }\n\t\n\t /**\n\t * Brings the given modal to front\n\t * @param co\n\t * @param last\n\t */\n\t\n\t }, {\n\t key: 'switchModals',\n\t value: function switchModals(co, last) {\n\t co.prevModal = last;\n\t Modal._modalInstances.push(co);\n\t _FixedWindow2.default.getInstance().open(this);\n\t if (last) {\n\t this._finishState(last);\n\t _Util2.default.prefixedAnimateEvent(last, 'AnimationEnd', this._finishAnim);\n\t last.classList.add(CLS_PART_OF_STACK);\n\t }\n\t // set new currentOpen\n\t this.currentOpen = co;\n\t\n\t // bring current container to the front\n\t var instances = Modal._modalInstances;\n\t\n\t for (var m = 0; m < instances.length; m++) {\n\t instances[m].parentNode.classList.remove(CLS_CONTAINER_CURRENT);\n\t }\n\t this.modalContainer.classList.add(CLS_CONTAINER_CURRENT);\n\t // remove animations if animations has been completed, fixes various bugs:\n\t // - fixes nested scrolling element issue in iOS Browsers / Mobile-Safari\n\t _Util2.default.prefixedAnimateEvent(co, 'AnimationEnd', this._finishAnim);\n\t\n\t for (var i = 0; i < this.modalContainer.childNodes.length; i++) {\n\t var n = this.modalContainer.childNodes[i],\n\t isCurrent = n.classList.contains(CLS_CURRENT);\n\t if (n === co) {\n\t co.classList.add(CLS_CURRENT);\n\t co.classList.remove(CLS_PART_OF_STACK);\n\t this._finishState(co);\n\t } else {\n\t n.classList.remove(CLS_CURRENT);\n\t if (isCurrent) {\n\t this._removeModalFromStack(n);\n\t _Event2.default.dispatchAndFire(n, EVENT_MODAL_CLOSED);\n\t }\n\t }\n\t }\n\t }\n\t }, {\n\t key: 'handleScrollbar',\n\t value: function handleScrollbar() {\n\t if (Modal._modalInstances.length === 0) {\n\t HTML_ELEMENT.classList.add(CLS_MODAL_OPEN);\n\t }\n\t }\n\t\n\t /**\n\t * Creates a Modal and opens it (later)\n\t * @param e\n\t * @returns {Promise|boolean}\n\t */\n\t\n\t }, {\n\t key: 'createWidget',\n\t value: function createWidget(e) {\n\t var self = this;\n\t if (this.loading) {\n\t return false;\n\t }\n\t\n\t // check if another modal has registered events on this dom path:\n\t if (e && e.target) {\n\t var foundInstance = _Util2.default.parentsUntil(e.target, function (node) {\n\t return node && node.flexModalInstance;\n\t });\n\t\n\t // if another instance has been found, abort\n\t if (foundInstance !== this.container) {\n\t return false;\n\t }\n\t }\n\t var targetContent,\n\t future,\n\t widget,\n\t target,\n\t hasTarget = true,\n\t isHtmlElement = e instanceof HTMLElement,\n\t isWidget = _Widget2.default.isWidget(e);\n\t if (isHtmlElement || isWidget) {\n\t if (isHtmlElement) {\n\t targetContent = e;\n\t } else {\n\t widget = e;\n\t targetContent = widget.element;\n\t }\n\t } else {\n\t target = e.target;\n\t if (!target) {\n\t throw 'Could not find target, did you pass an event, a HTMLElement or an Widget?';\n\t }\n\t hasTarget = target.hasAttribute(ATTR_NAME);\n\t targetContent = target.getAttribute(ATTR_NAME);\n\t widget = _Widget2.default.findWidget(target);\n\t if (target.hasAttribute(ATTR_CREATE_NEW) && !e.newInstance) {\n\t var newInstance = new Modal(this.container).setDestroyOnFinish(true);\n\t e.newInstance = true;\n\t newInstance.fromEvent(e).then(function () {\n\t newInstance.registerEvents(newInstance.getModalContainer());\n\t });\n\t return false;\n\t }\n\t if (hasTarget) {\n\t e.stopImmediatePropagation();\n\t e.preventDefault();\n\t }\n\t }\n\t\n\t if (!hasTarget) {\n\t return false;\n\t }\n\t\n\t var modalContainerClasses = this.modalContainer ? this.modalContainer.classList : [];\n\t\n\t // lazy create modal container\n\t if (!this.modalContainer) {\n\t this.modalContainer = global.document.createElement('div');\n\t this.modalContainer.className = CLS_MODAL_CONTAINER + ' ' + this.options.containerClassNames + ' ' + CLS_OPEN;\n\t var closeModalFunction = function closeModalFunction(ce) {\n\t if (self.loading) {\n\t return false;\n\t }\n\t if (_Util2.default.isPartOfNode(ce.target, self.currentOpen)) {\n\t if (!ce.target.hasAttribute(ATTR_CLOSE)) {\n\t return false;\n\t }\n\t }\n\t self.close(ce);\n\t };\n\t\n\t this.modalContainer.addEventListener(_Settings2.default.getTabEvent(), closeModalFunction, false);\n\t\n\t modalContainerClasses = this.modalContainer.classList;\n\t this.container.appendChild(this.modalContainer);\n\t } else {\n\t modalContainerClasses.add(CLS_OPEN);\n\t }\n\t\n\t var loader = undefined,\n\t doc = global.document,\n\t toggleLoader = function toggleLoader(show) {\n\t if (show) {\n\t loader = doc.createElement('div');\n\t loader.className = CLS_LOADER_CONTAINER;\n\t var loaderLoader = doc.createElement('div');\n\t loaderLoader.className = CLS_LOADER;\n\t loader.appendChild(loaderLoader);\n\t self.modalContainer.appendChild(loader);\n\t } else {\n\t loader.parentNode.removeChild(loader);\n\t }\n\t };\n\t\n\t this.handleScrollbar();\n\t\n\t modalContainerClasses.add(CLS_CONTAINER_CURRENT);\n\t modalContainerClasses.add('loading');\n\t this.loading = true;\n\t toggleLoader(true);\n\t var async = widget ? widget.getAsync() : null;\n\t if (_Widget2.default.isWidget(widget) && async) {\n\t future = async.then(function (r) {\n\t var result;\n\t if (r instanceof HTMLElement || r instanceof DocumentFragment) {\n\t result = r;\n\t } else {\n\t // Create container Element:\n\t var element = doc.createElement('div');\n\t element.className = self.options.classNames;\n\t element.innerHTML = r;\n\t element.id = _Util2.default.guid();\n\t result = element;\n\t }\n\t widget.finalContent = result;\n\t _Event2.default.dispatchAndFire(target, EVENT_MODAL_ASYNC_TARGET_LOADED);\n\t return result;\n\t });\n\t } else {\n\t var el = targetContent instanceof HTMLElement || targetContent instanceof DocumentFragment ? targetContent : doc.getElementById(targetContent);\n\t if (el) {\n\t future = new Promise(function (resolve) {\n\t resolve(el);\n\t });\n\t } else {\n\t throw 'Could not found given modal element (content) with ID: ' + targetContent;\n\t }\n\t }\n\t\n\t _Event2.default.dispatchAndFire(target, EVENT_MODAL_INIT);\n\t\n\t return future.then(function (thisEl) {\n\t thisEl.hfWidgetInstance = self;\n\t self.modalContainer.appendChild(thisEl);\n\t modalContainerClasses.remove('loading');\n\t self.loading = false;\n\t toggleLoader(false);\n\t\n\t self.open(thisEl, true, e);\n\t\n\t return thisEl;\n\t });\n\t }\n\t\n\t /**\n\t * Open's an already rendered modal\n\t * @param {HTMLElement} modal\n\t * @param {Boolean} [internal], set to true to prevent container management\n\t * @param {Boolean} [maybeEvent], optional event-object that triggered open\n\t */\n\t\n\t }, {\n\t key: 'open',\n\t value: function open(modal, internal, maybeEvent) {\n\t\n\t if (!internal) {\n\t this.modalContainer.classList.add('open');\n\t this.handleScrollbar();\n\t }\n\t this.switchModals(modal, this.currentOpen);\n\t\n\t _Event2.default.dispatch(modal, EVENT_MODAL_OPENED).withOriginal(maybeEvent).fire();\n\t }\n\t }, {\n\t key: 'registerEvents',\n\t value: function registerEvents(delegate) {\n\t var delegateContainer = delegate || this.container,\n\t self = this;\n\t // Modals should always be fixed\n\t _FixedWindow2.default.getInstance().addScreenConstraint(Modal, function (width) {\n\t return true;\n\t });\n\t // register modal instance so we can detect multiple registrars\n\t delegateContainer.flexModalInstance = self;\n\t self.eventFunction = function () {\n\t self.createWidget.apply(self, arguments);\n\t };\n\t delegateContainer.addEventListener(_Settings2.default.getTabEvent(), self.eventFunction, false);\n\t\n\t self.eventContainer = delegateContainer;\n\t return self;\n\t }\n\t\n\t /**\n\t * Creates a new Dialog Instance either directly from HTML Element or a Widget instance\n\t * @param {HTMLElement|Widget} widget instance or html element\n\t * @returns {Promise}\n\t */\n\t\n\t }, {\n\t key: 'fromWidget',\n\t value: function fromWidget(widget) {\n\t return this.createWidget(widget);\n\t }\n\t\n\t /**\n\t * Creates a Widget from event\n\t * @param e\n\t * @returns {Promise}\n\t */\n\t\n\t }, {\n\t key: 'fromEvent',\n\t value: function fromEvent(e) {\n\t return this.createWidget(e);\n\t }\n\t }, {\n\t key: 'setDestroyOnFinish',\n\t value: function setDestroyOnFinish(v) {\n\t this.destroyOnFinish = v;\n\t return this;\n\t }\n\t\n\t /**\n\t * Destroy this widget instance, cleans empty DOM nodes\n\t * Will use fast MutationObserver if available, otherwise falls back to DOMNodeRemoved event\n\t */\n\t\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t var self = this,\n\t modalContainer = this.modalContainer;\n\t var isEmptyContainer = modalContainer.childNodes.length === 0;\n\t // Remove event listener on destroy, do not remove DOM node\n\t if (self.eventContainer) {\n\t self.eventContainer.removeEventListener(_Settings2.default.getTabEvent(), self.eventFunction, true);\n\t }\n\t\n\t if (isEmptyContainer) {\n\t if (modalContainer.parentNode) {\n\t modalContainer.parentNode.removeChild(modalContainer);\n\t }\n\t }\n\t if (global.MutationObserver) {\n\t var observer = new MutationObserver(function (mutations) {\n\t mutations.forEach(function () {\n\t if (isEmptyContainer) {\n\t modalContainer.parentNode.removeChild(modalContainer);\n\t observer.disconnect();\n\t }\n\t });\n\t });\n\t observer.observe(modalContainer, { childList: true });\n\t } else {\n\t modalContainer.addEventListener('DOMNodeRemoved', function (e) {\n\t if (e.target !== modalContainer && modalContainer.childNodes.length - 1 === 0) {\n\t modalContainer.parentNode.removeChild(modalContainer);\n\t }\n\t });\n\t }\n\t }\n\t }]);\n\t\n\t return Modal;\n\t}();\n\t\n\t// Static variable that keeps track of all open modals\n\t\n\t\n\tModal._modalInstances = [];\n\t\n\t// Global keydown listener for modal\n\tglobal.addEventListener('keydown', function (e) {\n\t if (e.keyCode === KEY_ESC) {\n\t var lastModal = Modal._modalInstances[Modal._modalInstances.length - 1];\n\t if (lastModal) {\n\t _Widget2.default.findWidget(lastModal).close(e);\n\t }\n\t }\n\t});\n\t\n\texports.default = Modal;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 102 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\t\n\tvar _Util = __webpack_require__(22);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tvar _DestroyableWidget2 = __webpack_require__(100);\n\t\n\tvar _DestroyableWidget3 = _interopRequireDefault(_DestroyableWidget2);\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t/*!\n\t * FlexCss.Tooltip\n\t * Licensed under the MIT License (MIT)\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t */\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar CLASS_NAMES_TOOLTIP = 'tooltip-container';\n\t/**\n\t * @type {string}\n\t */\n\tvar CLASS_NAMES_OPEN = 'open';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_CLASSNAME = 'data-class';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_NO_TOUCH = 'data-no-touch';\n\t\n\t/**\n\t * @type {HTMLDocument}\n\t */\n\tvar doc = global.document;\n\t\n\t/**\n\t * Simple Tooltip\n\t */\n\t\n\tvar Tooltip = function (_DestroyableWidget) {\n\t _inherits(Tooltip, _DestroyableWidget);\n\t\n\t /**\n\t * Creates a Tooltip\n\t * @param {HTMLElement|String} DelegateContainer\n\t * @param {Object} [options]\n\t */\n\t\n\t function Tooltip(DelegateContainer, options) {\n\t _classCallCheck(this, Tooltip);\n\t\n\t /**\n\t * The Container where possible events are captured\n\t */\n\t\n\t var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Tooltip).call(this));\n\t\n\t _this.container = DelegateContainer instanceof HTMLElement ? DelegateContainer : doc.getElementById(DelegateContainer);\n\t\n\t if (!_this.container) {\n\t throw new Error('Could not create Tooltip, DelegateContainer not found');\n\t }\n\t\n\t /**\n\t * The Container where tooltips are stored for this instance\n\t * @type {HTMLElement}\n\t */\n\t _this.tooltipContainer = null;\n\t\n\t /**\n\t * Default Options\n\t */\n\t _this.options = {\n\t containerClass: '',\n\t selectorAttribute: 'data-tooltip',\n\t collisionContainer: _this.container\n\t };\n\t\n\t Object.assign(_this.options, options || {});\n\t return _this;\n\t }\n\t\n\t /**\n\t * Creates and shows a tooltip\n\t * @param {HTMLElement} target where is this tooltip positioned\n\t * @param {String} text text content in tooltip, will be NOT escaped\n\t * @param {Boolean} [removeTitle] removes title element if given\n\t * @param {Node} [positionRelative]\n\t */\n\t\n\t\n\t _createClass(Tooltip, [{\n\t key: 'createTooltip',\n\t value: function createTooltip(target, text, removeTitle, positionRelative) {\n\t // abort if text is empty\n\t if (!text || text && text.trim() === '') {\n\t return;\n\t }\n\t\n\t if (_Settings2.default.isTouchDevice() && target && target.hasAttribute(ATTR_DATA_NO_TOUCH)) {\n\t return;\n\t }\n\t\n\t var tooltipContainer = this.tooltipContainer;\n\t\n\t if (!tooltipContainer) {\n\t tooltipContainer = doc.createElement('div');\n\t this.container.appendChild(tooltipContainer);\n\t this.tooltipContainer = tooltipContainer;\n\t }\n\t this._restoreClassNames(tooltipContainer, target);\n\t\n\t tooltipContainer.style.left = 'auto';\n\t tooltipContainer.style.top = 'auto';\n\t tooltipContainer.innerHTML = text;\n\t tooltipContainer.flexTooltipCurrentTarget = target;\n\t if (removeTitle) {\n\t target.oldTitle = text;\n\t target.removeAttribute('title');\n\t }\n\t\n\t _Util2.default.setupPositionNearby(positionRelative || target, tooltipContainer, this.options.collisionContainer, true, true);\n\t\n\t tooltipContainer.classList.add(CLASS_NAMES_OPEN);\n\t }\n\t }, {\n\t key: '_restoreClassNames',\n\t value: function _restoreClassNames(container, target) {\n\t // allow additional classname per tooltip on target element\n\t var classNames = [CLASS_NAMES_TOOLTIP, this.options.containerClass];\n\t var maybeTargetClass = target.getAttribute(ATTR_DATA_CLASSNAME);\n\t if (maybeTargetClass) {\n\t classNames.push(maybeTargetClass);\n\t }\n\t container.className = classNames.join(\" \");\n\t return this;\n\t }\n\t\n\t /**\n\t * @returns {HTMLElement|null}\n\t */\n\t\n\t }, {\n\t key: 'getCurrentTarget',\n\t value: function getCurrentTarget() {\n\t return this.tooltipContainer ? this.tooltipContainer.flexTooltipCurrentTarget : null;\n\t }\n\t\n\t /**\n\t * Destroys this Widget\n\t * @returns {boolean}\n\t */\n\t\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t _get(Object.getPrototypeOf(Tooltip.prototype), 'destroy', this).call(this);\n\t\n\t if (this.tooltipContainer) {\n\t this.tooltipContainer.parentNode.removeChild(this.tooltipContainer);\n\t return true;\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Removes a Tooltip on given target\n\t * @param {HTMLElement} [target], if not given will remove current open tooltip on this instance\n\t */\n\t\n\t }, {\n\t key: 'removeTooltip',\n\t value: function removeTooltip(target) {\n\t var selfTarget = target;\n\t if (!selfTarget && this.tooltipContainer) {\n\t selfTarget = this.tooltipContainer.flexTooltipCurrentTarget;\n\t }\n\t if (this.tooltipContainer) {\n\t if (this.tooltipContainer.flexTooltipCurrentTarget !== selfTarget) {\n\t return;\n\t }\n\t this.tooltipContainer.classList.remove(CLASS_NAMES_OPEN);\n\t delete this.tooltipContainer.flexTooltipCurrentTarget;\n\t }\n\t if (selfTarget && selfTarget.oldTitle) {\n\t selfTarget.setAttribute('title', selfTarget.oldTitle);\n\t }\n\t }\n\t\n\t /**\n\t * Initilizes mouse events on container element\n\t */\n\t\n\t }, {\n\t key: 'registerEvents',\n\t value: function registerEvents() {\n\t var self = this;\n\t this.addEventListener(this.container, 'mouseover', function (e) {\n\t if (e.target.hasAttribute(self.options.selectorAttribute)) {\n\t self.createTooltip(e.target, e.target.getAttribute('title'), true);\n\t }\n\t });\n\t\n\t this.addEventListener(this.container, 'mouseout', function (e) {\n\t if (e.target.hasAttribute(self.options.selectorAttribute)) {\n\t self.removeTooltip(e.target);\n\t }\n\t });\n\t return this;\n\t }\n\t }]);\n\t\n\t return Tooltip;\n\t}(_DestroyableWidget3.default);\n\t\n\texports.default = Tooltip;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 103 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _stringify = __webpack_require__(111);\n\t\n\tvar _stringify2 = _interopRequireDefault(_stringify);\n\t\n\tvar _Marklib = __webpack_require__(50);\n\t\n\tvar _flexcss = __webpack_require__(110);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t/* global localStorage, document */\n\t\n\tvar KEY_ENTER = 13;\n\t\n\t/**\n\t * Contains Module for the demonstration\n\t */\n\t\n\tdocument.addEventListener(\"DOMContentLoaded\", function () {\n\t var STORAGE_KEY = 'savedRanges';\n\t var ANIMATIONEND = 'animationend';\n\t var allRanges = [];\n\t var tooltip = new _flexcss.Tooltip(document.body);\n\t\n\t /**\n\t * Creates an animated rendering\n\t */\n\t function presentRendering(selector, classNames, speed) {\n\t var text = document.getElementById(selector).childNodes[0];\n\t var thisLength = text.length;\n\t\n\t var render = function render(autoMarkText, cp, length) {\n\t var c = cp;\n\t var r = new _Marklib.Rendering(document, {\n\t className: classNames\n\t });\n\t var range = document.createRange();\n\t range.setStart(autoMarkText, 0);\n\t range.setEnd(autoMarkText, 1);\n\t r.renderWithRange(range);\n\t if (autoMarkText.parentNode.nextSibling) {\n\t (function () {\n\t var nextText = autoMarkText.parentNode.nextSibling.childNodes[0];\n\t setTimeout(function () {\n\t render(nextText, ++c, length);\n\t }, speed);\n\t })();\n\t }\n\t };\n\t\n\t return render(text, 0, thisLength);\n\t }\n\t\n\t presentRendering('automark', 'fadeInDown', 20);\n\t\n\t var savedRanges = JSON.parse(localStorage.getItem(STORAGE_KEY)) || [];\n\t var animated = false;\n\t\n\t /**\n\t * OnClick event for renderings\n\t */\n\t function onClick() {\n\t var self = this;\n\t this.wrapperNodes.forEach(function (n) {\n\t n.addEventListener(ANIMATIONEND, function thisFunction(e) {\n\t e.target.classList.remove('bubble');\n\t e.target.removeEventListener(ANIMATIONEND, thisFunction);\n\t });\n\t n.classList.add('bubble');\n\t });\n\t\n\t if (tooltip.getCurrentTarget() === this.wrapperNodes[0]) {\n\t return;\n\t }\n\t\n\t tooltip.createTooltip(this.wrapperNodes[0], this.result.text, false);\n\t\n\t setTimeout(function () {\n\t if (tooltip.getCurrentTarget()) {\n\t document.addEventListener('click', function thisFunction() {\n\t if (tooltip.getCurrentTarget() && tooltip.getCurrentTarget() === self.wrapperNodes[0]) {\n\t tooltip.removeTooltip();\n\t }\n\t document.removeEventListener('click', thisFunction);\n\t });\n\t }\n\t }, 0);\n\t }\n\t\n\t savedRanges.forEach(function (range) {\n\t var marker = new _Marklib.Rendering(document);\n\t try {\n\t marker.renderWithResult(range);\n\t allRanges.push(marker);\n\t marker.on('click', onClick);\n\t } catch (e) {\n\t console.warn(\"Could not render:\", range, e);\n\t localStorage.setItem(STORAGE_KEY, (0, _stringify2.default)([]));\n\t console.error('Cleared local storage because of a rendering issue, the page might have been changed ;)');\n\t }\n\t });\n\t\n\t window.addEventListener('scroll', function () {\n\t var el = document.getElementById('secondParagraph');\n\t var r = el.getBoundingClientRect();\n\t var html = document.documentElement;\n\t if (r.top <= html.clientHeight && r.bottom >= 0 && !animated) {\n\t animated = true;\n\t\n\t el.classList.add('animate');\n\t if (!savedRanges.length) {\n\t presentRendering('secondParagraphItem', 'marking', 30);\n\t }\n\t }\n\t });\n\t\n\t var actionMark = function actionMark() {\n\t try {\n\t var selection = document.getSelection();\n\t var renderer = new _Marklib.Rendering(document);\n\t var result = renderer.renderWithRange(selection.getRangeAt(0));\n\t\n\t renderer.on('click', onClick);\n\t allRanges.push(renderer);\n\t\n\t selection.removeAllRanges();\n\t savedRanges.push(result.serialize());\n\t localStorage.setItem(STORAGE_KEY, (0, _stringify2.default)(savedRanges));\n\t } catch (e) {\n\t console.warn(\"Could not add selection: \", e);\n\t }\n\t };\n\t\n\t document.addEventListener(\"keydown\", function (e) {\n\t if (e.keyCode === KEY_ENTER) {\n\t actionMark();\n\t }\n\t });\n\t\n\t document.addEventListener(\"click\", function (e) {\n\t if (e.target.id === 'action-mark') {\n\t return actionMark();\n\t } else if (e.target.id === 'action-clear') {\n\t allRanges.forEach(function (range) {\n\t return range.destroy();\n\t });\n\t savedRanges = [];\n\t allRanges = [];\n\t localStorage.setItem(STORAGE_KEY, (0, _stringify2.default)([]));\n\t }\n\t });\n\t});\n\t\n\texports.default = _Marklib.Rendering;\n\n/***/ },\n/* 104 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t/*!\n\t * FlexCss.Dropdown\n\t * Licensed under the MIT License (MIT)\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t */\n\t\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_DROPDOWN_CLOSED = undefined;\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tvar _Util = __webpack_require__(22);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tvar _Event = __webpack_require__(33);\n\t\n\tvar _Event2 = _interopRequireDefault(_Event);\n\t\n\tvar _Widget = __webpack_require__(36);\n\t\n\tvar _Widget2 = _interopRequireDefault(_Widget);\n\t\n\tvar _FixedWindow = __webpack_require__(51);\n\t\n\tvar _FixedWindow2 = _interopRequireDefault(_FixedWindow);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_CC = 'data-collision-container';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DARKENER = 'data-darkener-container';\n\t/**\n\t * @type {string}\n\t */\n\tvar DARKENER_INIT = 'init';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_DATA_TARGET = 'data-target';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_CLOSE_DROPDOWN = 'data-close-dropdown';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_NAME = 'data-dropdown';\n\t/**\n\t * @type {string}\n\t */\n\tvar STATE_LOADING = 'loading';\n\t\n\tvar CLS_DARKENER_DROPDOWN = 'darkener-dropdown';\n\t/**\n\t * @type {string}\n\t */\n\tvar CLS_OPEN = 'open';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar CLS_DROPDOWN = 'dropdown';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_DROPDOWN_CLOSED = exports.EVENT_DROPDOWN_CLOSED = 'flexcss.dropdown.closed';\n\t\n\t/**\n\t * A Dropdown\n\t */\n\t\n\tvar Dropdown = function () {\n\t function Dropdown(DelegateContainer, Darkener) {\n\t _classCallCheck(this, Dropdown);\n\t\n\t var doc = global.document;\n\t\n\t /**\n\t * Container Element\n\t * @type {HTMLElement}\n\t */\n\t this.container = DelegateContainer instanceof HTMLElement ? DelegateContainer : doc.getElementById(DelegateContainer);\n\t\n\t this.currentOpen = null;\n\t this.currentTarget = null;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.darkener = Darkener instanceof HTMLElement ? Darkener : document.getElementById(Darkener);\n\t\n\t this.destroyOnClose = false;\n\t\n\t if (!this.darkener || !this.container) {\n\t throw new Error('required elements not found (darkener and container element)');\n\t }\n\t }\n\t\n\t /**\n\t * Method that handles delegation events for dropdowns\n\t * @param e\n\t * @returns {boolean}\n\t * @private\n\t */\n\t\n\t\n\t _createClass(Dropdown, [{\n\t key: '_delegateFunction',\n\t value: function _delegateFunction(e) {\n\t var currentOpen = this.currentOpen;\n\t var target = _Util2.default.closestCallback(e.target, function (n) {\n\t return n instanceof HTMLElement && n.hasAttribute(ATTR_NAME);\n\t });\n\t var targetIsCurrent = target === this.currentTarget;\n\t\n\t if (currentOpen && !_Util2.default.isPartOfNode(e.target, currentOpen) || targetIsCurrent) {\n\t this.close();\n\t if (targetIsCurrent) {\n\t e.preventDefault();\n\t }\n\t return targetIsCurrent ? false : this._delegateFunction(e);\n\t }\n\t\n\t if (target && !currentOpen) {\n\t e.preventDefault();\n\t e.stopImmediatePropagation();\n\t\n\t if (target.isLoading) {\n\t return false;\n\t }\n\t this.createDropdown(target);\n\t } else {\n\t if (currentOpen) {\n\t if (e.target.hasAttribute(ATTR_CLOSE_DROPDOWN)) {\n\t e.preventDefault();\n\t this.close();\n\t }\n\t if (!_Util2.default.isPartOfNode(e.target, currentOpen)) {\n\t this.close();\n\t }\n\t }\n\t }\n\t }\n\t\n\t /**\n\t * Register Events for this dropdown container\n\t * @returns {Dropdown}\n\t */\n\t\n\t }, {\n\t key: 'registerEvents',\n\t value: function registerEvents() {\n\t _FixedWindow2.default.getInstance().addScreenConstraint(Dropdown, function (width) {\n\t return width < _Settings2.default.get().smallBreakpoint;\n\t });\n\t this.container.addEventListener(_Settings2.default.getTabEvent(), this._delegateFunction.bind(this), true);\n\t return this;\n\t }\n\t\n\t /**\n\t * Destroys this instance, unbinds events\n\t * @returns {Dropdown}\n\t */\n\t\n\t }, {\n\t key: 'destroy',\n\t value: function destroy() {\n\t this.container.removeEventListener(_Settings2.default.getTabEvent(), this._delegateFunction.bind(this), true);\n\t return this;\n\t }\n\t\n\t /**\n\t * Destroys instance on close of dropdown\n\t * @param v\n\t * @returns {Dropdown}\n\t */\n\t\n\t }, {\n\t key: 'setDestroyOnClose',\n\t value: function setDestroyOnClose(v) {\n\t this.destroyOnClose = v;\n\t return this;\n\t }\n\t\n\t /**\n\t * Will add the right class to container for specific darkener id\n\t * @param instance\n\t * @param show\n\t */\n\t\n\t }, {\n\t key: 'toggleDarkenerToggler',\n\t value: function toggleDarkenerToggler(instance, show) {\n\t var cls = 'toggle-' + (instance.id || CLS_DARKENER_DROPDOWN);\n\t var classList = this.container.classList;\n\t if (show) {\n\t classList.add(cls);\n\t } else {\n\t classList.remove(cls);\n\t }\n\t }\n\t\n\t /**\n\t * Closes Dropdown on current instance\n\t * @return {Boolean|Promise}\n\t */\n\t\n\t }, {\n\t key: 'close',\n\t value: function close() {\n\t var _this = this;\n\t\n\t var currentOpen = this.currentOpen;\n\t if (!currentOpen) {\n\t return false;\n\t }\n\t var future = undefined;\n\t var darkenerInstance = currentOpen.flexDarkenerInstance || this.darkener;\n\t var thisCurrentOpen = currentOpen;\n\t\n\t future = new Promise(function (resolve) {\n\t if (window.getComputedStyle(currentOpen).position === 'fixed') {\n\t _Util2.default.addEventOnce(_Settings2.default.getTransitionEvent(), currentOpen, function () {\n\t setTimeout(function () {\n\t _Event2.default.dispatchAndFire(thisCurrentOpen, EVENT_DROPDOWN_CLOSED);\n\t // if a new dropdown has been opened in the meantime, do not remove darkener\n\t if (_this.currentOpen !== null) {\n\t return false;\n\t }\n\t _this.toggleDarkenerToggler(darkenerInstance, false);\n\t resolve(true);\n\t }, _Settings2.default.get().darkenerFadeDelay);\n\t });\n\t } else {\n\t resolve(true);\n\t _Event2.default.dispatchAndFire(thisCurrentOpen, EVENT_DROPDOWN_CLOSED);\n\t }\n\t });\n\t\n\t _FixedWindow2.default.getInstance().close();\n\t currentOpen.classList.remove(CLS_OPEN);\n\t\n\t if (currentOpen.flexDarkenerInstance) {\n\t currentOpen.flexDarkenerInstance.classList.remove(DARKENER_INIT);\n\t } else {\n\t this.darkener.classList.remove(DARKENER_INIT);\n\t }\n\t\n\t this.currentOpen = null;\n\t this.currentTarget = null;\n\t\n\t if (this.destroyOnClose) {\n\t this.destroy();\n\t }\n\t\n\t return future;\n\t }\n\t\n\t /**\n\t * Creates a dropdown on given target and opens it\n\t * @param {HTMLElement} target target where this dropdown is placed\n\t * @param {FlexCss.Widget} [thisWidget] if given will use widget instead of widget instance\n\t * @return {FlexCss.Dropdown}\n\t */\n\t\n\t }, {\n\t key: 'createDropdown',\n\t value: function createDropdown(target, thisWidget) {\n\t var _this2 = this;\n\t\n\t var doc = global.document;\n\t\n\t if (!target) {\n\t throw new Error('Dropdown target not found');\n\t }\n\t\n\t var widget = thisWidget || _Widget2.default.findWidget(target);\n\t var future = undefined;\n\t var data = target.getAttribute(ATTR_NAME);\n\t var dropdownContainerElement = doc.getElementById(data);\n\t var async = !dropdownContainerElement && _Widget2.default.isWidget(widget) ? widget.getAsync() : false;\n\t\n\t if (async) {\n\t target.classList.add(STATE_LOADING);\n\t target.isLoading = true;\n\t future = async.then(function (r) {\n\t if (r instanceof HTMLElement) {\n\t if (r.id) {\n\t target.setAttribute(ATTR_NAME, r.id);\n\t }\n\t return r;\n\t }\n\t // Create container Element:\n\t var element = doc.createElement('div');\n\t element.className = CLS_DROPDOWN;\n\t element.innerHTML = r;\n\t element.id = _Util2.default.guid();\n\t // Cache target for later use:\n\t target.setAttribute(ATTR_NAME, element.id);\n\t _this2.container.appendChild(element);\n\t return element;\n\t }).then(function (r) {\n\t target.isLoading = false;\n\t target.classList.remove(STATE_LOADING);\n\t return r;\n\t });\n\t } else {\n\t if (!dropdownContainerElement) {\n\t throw new Error('Could not found Dropdown container with ID \"' + data + '\"');\n\t }\n\t future = new Promise(function (r) {\n\t r(dropdownContainerElement);\n\t });\n\t }\n\t\n\t future.then(function (dropdownContent) {\n\t if (_this2.currentOpen) {\n\t _this2.close();\n\t }\n\t // Skip one frame to show animation\n\t target.dropdownContent = dropdownContent;\n\t var isAbsolute = global.getComputedStyle(dropdownContent).position === 'absolute';\n\t dropdownContent.hfWidgetInstance = _this2;\n\t\n\t if (!target.flexCollisionContainer) {\n\t var collisionC = target.getAttribute(ATTR_CC);\n\t target.flexCollisionContainer = collisionC ? doc.getElementById(collisionC) || document.documentElement : document.documentElement;\n\t }\n\t\n\t dropdownContent.classList.toggle(CLS_OPEN);\n\t if (dropdownContent.classList.contains(CLS_OPEN)) {\n\t _this2.currentOpen = dropdownContent;\n\t _this2.currentTarget = target;\n\t }\n\t if (isAbsolute) {\n\t // Check collision:\n\t var selfTarget = target.getAttribute(ATTR_DATA_TARGET);\n\t selfTarget = selfTarget ? doc.getElementById(selfTarget) : target;\n\t _Util2.default.setupPositionNearby(selfTarget, dropdownContent, target.flexCollisionContainer);\n\t } else {\n\t _FixedWindow2.default.getInstance().open(_this2);\n\t // optionally get custom darkener container for target\n\t var d = target.getAttribute(ATTR_DARKENER);\n\t if (d) {\n\t dropdownContent.flexDarkenerInstance = doc.getElementById(d);\n\t (dropdownContent.flexDarkenerInstance || _this2.darkener).classList.toggle(DARKENER_INIT);\n\t } else {\n\t _this2.darkener.classList.toggle(DARKENER_INIT);\n\t }\n\t _this2.toggleDarkenerToggler(dropdownContent.flexDarkenerInstance || _this2.darkener, true);\n\t\n\t dropdownContent.style.left = '0';\n\t dropdownContent.style.top = 'auto';\n\t }\n\t });\n\t }\n\t }]);\n\t\n\t return Dropdown;\n\t}();\n\t\n\texports.default = Dropdown;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 105 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/*global HTMLFormElement, fetch, FormData, clearTimeout, NodeList*/\n\t\n\t/*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t/*!\n\t * FlexCss.Form\n\t * Licensed under the MIT License (MIT)\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t */\n\t\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_FORM_AJAX_COMPLETED = exports.EVENT_FORM_AFTER_AJAX_SUBMIT = exports.EVENT_FORM_SUBMIT = exports.EVENT_FORM_READY = undefined;\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\t\n\tvar _Tooltip = __webpack_require__(102);\n\t\n\tvar _Tooltip2 = _interopRequireDefault(_Tooltip);\n\t\n\t__webpack_require__(114);\n\t\n\tvar _Event = __webpack_require__(33);\n\t\n\tvar _Event2 = _interopRequireDefault(_Event);\n\t\n\tvar _Util = __webpack_require__(22);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tvar _DestroyableWidget2 = __webpack_require__(100);\n\t\n\tvar _DestroyableWidget3 = _interopRequireDefault(_DestroyableWidget2);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar LOADING_CLASS = 'loading';\n\tvar DATA_ELEMENT_INVALID = 'data-flexcss-invalid';\n\tvar REMOTE = 'data-remote';\n\tvar REMOTE_ACTION = 'data-remote-action';\n\tvar ATTR_DISABLE_INLINE = 'data-disable-inline-validation';\n\tvar ATTR_DISABLE_REALTIME = 'data-disable-realtime-validation';\n\tvar ATTR_VALIDATOR = 'data-validate';\n\tvar ATTR_DATA_CUSTOM_MESSAGE = 'data-validation-message';\n\tvar ATTR_DATA_CUSTOM_LABEL = 'data-custom-label';\n\tvar ATTR_VALIDATE_VISIBILITY = 'data-validate-visibility';\n\tvar ATTR_ERROR_TARGET_ID = 'data-error-target';\n\tvar ATTR_DEPENDS = 'data-depends-selector';\n\tvar CONST_USE_JSON = 'json';\n\tvar CONST_REALTIME_EVENT = 'input';\n\tvar FOCUS_TOOLTIP_DELAY = 20;\n\tvar CLICK_TOOLTIP_DELAY = 150;\n\t\n\t/**\n\t * Triggered when form is fully initialized and handlers are binded\n\t * @type {string}\n\t */\n\tvar EVENT_FORM_READY = exports.EVENT_FORM_READY = 'flexcss.form.ready';\n\t/**\n\t * Fires when a form is submitted, cancelable\n\t * @type {string}\n\t */\n\tvar EVENT_FORM_SUBMIT = exports.EVENT_FORM_SUBMIT = 'flexcss.form.submit';\n\t/**\n\t * Fired directly after the form has been submitted via ajax\n\t * @type {string}\n\t */\n\tvar EVENT_FORM_AFTER_AJAX_SUBMIT = exports.EVENT_FORM_AFTER_AJAX_SUBMIT = 'flexcss.form.afterAjaxSubmit';\n\t/**\n\t * Fired when ajax events did complete\n\t * @type {string}\n\t */\n\tvar EVENT_FORM_AJAX_COMPLETED = exports.EVENT_FORM_AJAX_COMPLETED = 'flexcss.form.ajaxCompleted';\n\t\n\t/**\n\t * A HTML5 Form Validation replacement\n\t */\n\t\n\tvar Form = function (_DestroyableWidget) {\n\t _inherits(Form, _DestroyableWidget);\n\t\n\t /**\n\t * @param {HTMLElement} form\n\t * @param [options] optional options\n\t */\n\t\n\t function Form(form, options) {\n\t _classCallCheck(this, Form);\n\t\n\t var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Form).call(this));\n\t\n\t if (!(form instanceof HTMLFormElement)) {\n\t throw 'argument {0} form needs to be an form element';\n\t }\n\t\n\t /**\n\t * The Form\n\t * @type {HTMLElement}\n\t */\n\t _this.form = form;\n\t\n\t /**\n\t * @type {Tooltip}\n\t */\n\t _this.tooltips = null;\n\t\n\t /**\n\t * @type {Promise}\n\t */\n\t _this.currentValidationFuture = new Promise(function () {});\n\t\n\t /**\n\t * Default options\n\t * @type {Object}\n\t */\n\t _this.options = {\n\t // if true creates tooltips above element, uses FlexCss Tooltips\n\t createTooltips: true,\n\t // if true appends error message after input element\n\t appendError: false,\n\t // type of ajax submit\n\t ajaxSubmitType: 'POST',\n\t // json content type if ajax method is set to json\n\t ajaxJsonContentType: 'application/json; charset=utf-8',\n\t // allow inline validation\n\t inlineValidation: true,\n\t // validate in realtime (on `input` event)\n\t realtime: true,\n\t // timeout when realtime event should be captured\n\t realtimeTimeout: 250,\n\t // formatting method for an error\n\t formatErrorTooltip: function formatErrorTooltip(error) {\n\t return ' ' + error;\n\t },\n\t // the class that will be put on the element to mark it failed validation\n\t inputErrorClass: 'invalid',\n\t // the container class for error messages below an element\n\t containerErrorClass: 'form-error',\n\t // additional options for fetch\n\t fetchOptions: {\n\t credentials: 'include'\n\t },\n\t // the container for tooltips\n\t tooltipContainer: form,\n\t tooltipOptions: {\n\t containerClass: 'error-tooltip'\n\t },\n\t // if you have a fixed header, either set a number or function here\n\t scrollToElementDiff: 0\n\t };\n\t\n\t // overwrite default options\n\t Object.assign(_this.options, options);\n\t\n\t // apply settings from attributes\n\t _Util2.default.applyOptionsFromElement(form, _this.options);\n\t\n\t // set form class as widget\n\t // Forms are very different to classical widgets,\n\t // we will not use our base widget class for this but just self\n\t form.hfWidgetInstance = _this;\n\t\n\t /**\n\t * A List of Validators\n\t * @type {Object}\n\t * @private\n\t */\n\t _this._validators = Form.globalValidators;\n\t\n\t /**\n\t * @type {Function}\n\t * @private\n\t */\n\t _this._remoteValidationFunction = null;\n\t\n\t _this.initFormValidation();\n\t return _this;\n\t }\n\t\n\t _createClass(Form, [{\n\t key: 'destroy',\n\t value: function destroy() {\n\t _get(Object.getPrototypeOf(Form.prototype), 'destroy', this).call(this);\n\t if (this.tooltips) {\n\t this.tooltips.destroy();\n\t }\n\t }\n\t\n\t /**\n\t * Submits this form, either via ajax or just classical (default)\n\t * @param {HTMLFormElement} thisForm\n\t * @param {Event} e\n\t * @private\n\t * @returns {Promise|boolean} returns false if submit is cancled\n\t */\n\t\n\t }, {\n\t key: '_submitFunction',\n\t value: function _submitFunction(thisForm, e) {\n\t var shouldUseAjax = thisForm.getAttribute(REMOTE),\n\t ajaxPostUrl = thisForm.getAttribute(REMOTE_ACTION) || thisForm.getAttribute('action') || window.location.href,\n\t useJson = CONST_USE_JSON === shouldUseAjax,\n\t self = this;\n\t\n\t var ev = _Event2.default.dispatch(thisForm, EVENT_FORM_SUBMIT).withOriginal(e).fire();\n\t\n\t // abort execution is event was prevented\n\t if (ev.defaultPrevented) {\n\t self._formStopLoading();\n\t return false;\n\t }\n\t\n\t if (shouldUseAjax === null) {\n\t // submit\n\t return thisForm.submit();\n\t }\n\t // prevent form from submit normally\n\t e.preventDefault();\n\t\n\t // add information that this is an XMLHttpRequest request (used by some frameworks)\n\t var defaultHeaders = {\n\t 'X-Requested-With': 'XMLHttpRequest'\n\t };\n\t\n\t // setup default headers\n\t if (useJson) {\n\t Object.assign(defaultHeaders, {\n\t 'Content-Type': this.options.ajaxJsonContentType\n\t });\n\t }\n\t var defaultOptions = Object.assign(this.options.fetchOptions, {\n\t headers: defaultHeaders,\n\t method: this.options.ajaxSubmitType\n\t });\n\t\n\t // support either JSON request payload or normal payload submission\n\t var serverCall = useJson ? fetch(ajaxPostUrl, Object.assign(defaultOptions, {\n\t body: JSON.stringify(this.serialize())\n\t })) : fetch(ajaxPostUrl, Object.assign(defaultOptions, {\n\t body: new FormData(thisForm)\n\t }));\n\t\n\t _Event2.default.dispatch(thisForm, EVENT_FORM_AFTER_AJAX_SUBMIT).withOriginal(e).fire();\n\t\n\t return serverCall.then(function (r) {\n\t (self._remoteValidationFunction || Form.globalRemoteValidationFunction).apply(self, [r]);\n\t\n\t _Event2.default.dispatch(thisForm, EVENT_FORM_AJAX_COMPLETED).withOriginal(e).withDetail({ response: r }).fire();\n\t // always remove error class\n\t self._formStopLoading();\n\t });\n\t }\n\t\n\t /**\n\t * Serializes a form to a json object\n\t * @returns {Object}\n\t */\n\t\n\t }, {\n\t key: 'serialize',\n\t value: function serialize() {\n\t var selectors = ['input[name]:not([type=\"radio\"]):enabled', 'input[type=\"radio\"][name]:checked', 'select[name]:enabled', 'textarea[name]:enabled'],\n\t inputs = this.form.querySelectorAll(selectors.join(',')),\n\t result = {};\n\t\n\t Array.prototype.forEach.call(inputs, function (input) {\n\t var exists = result[input.name],\n\t value = input.value;\n\t if (exists instanceof Array) {\n\t exists.push(value);\n\t } else if (exists) {\n\t result[input.name] = [result[input.name], value];\n\t } else {\n\t result[input.name] = value;\n\t }\n\t });\n\t\n\t return result;\n\t }\n\t\n\t /**\n\t * Handles the chain of validation on given fields\n\t *\n\t * @param {HTMLElement|Array|NodeList} field\n\t * @param [focus] optional focus first error\n\t * @returns {Promise}\n\t */\n\t\n\t }, {\n\t key: 'handleValidation',\n\t value: function handleValidation(field, focus) {\n\t var _this2 = this;\n\t\n\t var fields = field instanceof Array || field instanceof NodeList ? field : [field];\n\t return this._handleValidation(fields, focus, true).then(function (r) {\n\t if (!r.foundAnyError) {\n\t // remove tooltips\n\t if (_this2.tooltips) {\n\t _this2.tooltips.removeTooltip();\n\t }\n\t }\n\t return r;\n\t }.bind(this));\n\t }\n\t\n\t /**\n\t * Handles errors on given node list\n\t * @param {NodeList} toValidateFields\n\t * @param {boolean} focus\n\t * @param {boolean} scoped if true, will only validate the fields `invalidFields`\n\t * @returns {Promise}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_handleValidation',\n\t value: function _handleValidation(toValidateFields, focus, scoped) {\n\t var self = this;\n\t var arr = Form._createArrayFromInvalidFieldList(toValidateFields),\n\t isLocalInvalid = arr.length > 0;\n\t // focus must appear in the same frame for iOS devices\n\t if (isLocalInvalid && focus) {\n\t self._focusElement(arr[0]);\n\t }\n\t var validation = scoped ? this._customValidationsForElements(toValidateFields) : self.validateCustomFields();\n\t return validation.then(function (r) {\n\t if (isLocalInvalid) {\n\t // combine browser and custom validators\n\t r.foundAnyError = true;\n\t }\n\t // get a unique field list of all fields that need to be checked and rendered\n\t // it's possible that we have duplicates in non scoped mode\n\t var thisToValidateFields = scoped ? toValidateFields : Array.from(arr).concat(r.checkedFields);\n\t r.checkedFields = thisToValidateFields;\n\t var foundInvalidFields = self.prepareErrors(thisToValidateFields, false),\n\t firstInvalidField = foundInvalidFields[0];\n\t if (firstInvalidField) {\n\t if (focus) {\n\t self._focusElement(firstInvalidField);\n\t // if element could not be focused:\n\t if (document.activeElement !== firstInvalidField) {\n\t self._handleTooltipHideClickAfterChange();\n\t }\n\t } else {\n\t self._handleTooltipHideClickAfterChange();\n\t }\n\t self.showAndOrCreateTooltip(firstInvalidField);\n\t }\n\t return r;\n\t });\n\t }\n\t\n\t /**\n\t * @param {HTMLElement} field\n\t * @param {ValidityState} validity\n\t * @returns {*}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_setupErrorMessages',\n\t value: function _setupErrorMessages(field, validity) {\n\t return Form.globalErrorMessageHandler ? Form.globalErrorMessageHandler.apply(this, [field, validity]) : false;\n\t }\n\t\n\t /**\n\t * Handles class labels for elements\n\t * @param {Object} fields\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_handleLabels',\n\t value: function _handleLabels(fields) {\n\t Object.keys(fields).forEach(function (id) {\n\t var labels = this.getForm().querySelectorAll('[for=\"' + id + '\"]'),\n\t invalid = fields[id];\n\t if (labels.length) {\n\t for (var labelsIndex = 0; labelsIndex < labels.length; labelsIndex++) {\n\t var labelEl = labels[labelsIndex];\n\t // we can't use toggle attribute, not supported in IE\n\t if (invalid) {\n\t this._markElementInvalid(labelEl);\n\t } else {\n\t this._markElementValid(labelEl);\n\t }\n\t }\n\t }\n\t }.bind(this));\n\t }\n\t\n\t /**\n\t * @param el\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_markElementInvalid',\n\t value: function _markElementInvalid(el) {\n\t el.setAttribute(DATA_ELEMENT_INVALID, \"true\");\n\t el.classList.add(this.options.inputErrorClass);\n\t }\n\t\n\t /**\n\t * @param el\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_markElementValid',\n\t value: function _markElementValid(el) {\n\t el.removeAttribute(DATA_ELEMENT_INVALID);\n\t el.classList.remove(this.options.inputErrorClass);\n\t }\n\t\n\t /**\n\t * A List of invalid elements (:invalid)\n\t * @returns {Array}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_getInvalidElements',\n\t value: function _getInvalidElements() {\n\t return Array.prototype.filter.call(this.getForm().querySelectorAll(\":invalid\"), function (r) {\n\t return !(r instanceof HTMLFieldSetElement);\n\t });\n\t }\n\t\n\t /**\n\t * @param {HTMLElement} thisParent\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_removeElementErrors',\n\t value: function _removeElementErrors(thisParent) {\n\t var errors = thisParent.querySelectorAll('.' + this.options.containerErrorClass),\n\t inputsWithErrorClasses = thisParent.querySelectorAll('[' + DATA_ELEMENT_INVALID + ']');\n\t for (var elementErrorIndex = 0; elementErrorIndex < errors.length; elementErrorIndex++) {\n\t errors[elementErrorIndex].parentNode.removeChild(errors[elementErrorIndex]);\n\t }\n\t for (var inputErrorIndex = 0; inputErrorIndex < inputsWithErrorClasses.length; inputErrorIndex++) {\n\t var el = inputsWithErrorClasses[inputErrorIndex];\n\t this._markElementValid(el);\n\t }\n\t }\n\t\n\t /**\n\t * Registers a custom validator\n\t * @param {String} name\n\t * @param {Function} validator a validation function should always return either a Future(true) or Future(false)\n\t * even when the field has been invalidated with `setCustomValidity`, because of different browser `bugs`\n\t * we can't rely on that\n\t * @returns {Form}\n\t */\n\t\n\t }, {\n\t key: 'registerValidator',\n\t value: function registerValidator(name, validator) {\n\t this._validators[name] = validator;\n\t return this;\n\t }\n\t\n\t /**\n\t * Runs async validation\n\t * @param {String} validationRef\n\t * @param {HTMLElement} field\n\t * @returns {Promise}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_runValidation',\n\t value: function _runValidation(validationRef, field) {\n\t if (!this._validators[validationRef]) {\n\t throw 'Could not found validator: ' + validationRef;\n\t }\n\t var cl = field.classList,\n\t future = this._validators[validationRef].apply(this, [field, this.form]);\n\t cl.add(LOADING_CLASS);\n\t future.then(function () {\n\t cl.remove(LOADING_CLASS);\n\t });\n\t return future;\n\t }\n\t\n\t /**\n\t * Run custom validations for elements, validations are done async do support XHR Requests or other stuff\n\t *\n\t * @param {Array|NodeList} fields\n\t * @returns {Promise} contains either true if validations passed or false if something went wrong\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_customValidationsForElements',\n\t value: function _customValidationsForElements(fields) {\n\t var futures = [],\n\t fieldsLength = fields.length,\n\t checkedFields = [];\n\t for (var iVal = 0; iVal < fieldsLength; iVal++) {\n\t var field = fields[iVal],\n\t validationRef = field.getAttribute(ATTR_VALIDATOR),\n\t validity = field.validity;\n\t if (this._validators[validationRef]) {\n\t // use local validation first and then continue with custom validations\n\t if (Form._shouldNotValidateField(field) || validity && !validity.customError && !validity.valid) {\n\t continue;\n\t }\n\t checkedFields.push(field);\n\t futures.push(this._runValidation(validationRef, field));\n\t } else {\n\t if (validationRef) {\n\t console.warn('data-validate was set but no validator was found');\n\t }\n\t }\n\t }\n\t return Promise.all(futures).then(function (allFutures) {\n\t var l = allFutures.length;\n\t var result = {\n\t checkedFields: checkedFields,\n\t foundAnyError: false\n\t };\n\t for (var fI = 0; fI < l; fI++) {\n\t if (!allFutures[fI]) {\n\t result.foundAnyError = true;\n\t break;\n\t }\n\t }\n\t return result;\n\t });\n\t }\n\t\n\t /**\n\t * Remove all errors for this form\n\t * @returns {Form}\n\t */\n\t\n\t }, {\n\t key: 'removeErrors',\n\t value: function removeErrors() {\n\t this._removeElementErrors(this.form);\n\t if (this.tooltips) {\n\t this.tooltips.removeTooltip();\n\t }\n\t return this;\n\t }\n\t\n\t /**\n\t * Will handle errors for given fields\n\t * @param {Array|NodeList} fields\n\t * @param {Boolean} removeAllErrors\n\t */\n\t\n\t }, {\n\t key: 'prepareErrors',\n\t value: function prepareErrors(fields, removeAllErrors) {\n\t if (removeAllErrors) {\n\t this.removeErrors();\n\t }\n\t var labelGroups = {},\n\t invalidFields = [];\n\t\n\t function handleAdditionalLabels(isInvalid, thisLabelGroup, field) {\n\t var additionalLabels = field.getAttribute(ATTR_DATA_CUSTOM_LABEL) || field.id,\n\t group = thisLabelGroup[additionalLabels];\n\t if (additionalLabels) {\n\t // check additionally if field is currently marked as invalid\n\t // so the label is not marked as error if no field is marked as one\n\t group = group ? group : isInvalid;\n\t thisLabelGroup[additionalLabels] = group;\n\t }\n\t }\n\t\n\t // We save all validations in an extra property because we need to reset the validity due some\n\t // implementation errors in other browsers then chrome\n\t for (var i = 0; i < fields.length; i++) {\n\t var field = fields[i],\n\t errorTarget = Form._findErrorTarget(field),\n\t parent = errorTarget.parentNode,\n\t validity = field.validity,\n\t isInvalid = validity && !validity.valid;\n\t if (Form._shouldNotValidateField(field)) {\n\t continue;\n\t }\n\t field.flexFormsSavedValidity = JSON.parse(JSON.stringify(validity));\n\t handleAdditionalLabels(isInvalid, labelGroups, field);\n\t if (isInvalid) {\n\t if (!removeAllErrors) {\n\t // Remove current errors:\n\t this._removeElementErrors(parent);\n\t }\n\t // setup custom error messages:\n\t this._setupErrorMessages(field, validity);\n\t var msg = field.validationMessage;\n\t\n\t // mark fields as invalid\n\t this._markElementInvalid(errorTarget);\n\t this._markElementInvalid(field);\n\t\n\t if (this.options.appendError) {\n\t parent.insertAdjacentHTML(\"beforeend\", '
' + msg + '
');\n\t }\n\t invalidFields.push(field);\n\t field.flexFormsSavedValidationMessage = msg;\n\t } else {\n\t // restore invalid fields\n\t this._markElementValid(errorTarget);\n\t this._markElementValid(field);\n\t\n\t // cleanup\n\t delete field.flexFormsSavedValidationMessage;\n\t\n\t // remove error markup\n\t this._removeElementErrors(parent);\n\t }\n\t // We have to reset the custom validity here to allow native validations work again\n\t field.setCustomValidity('');\n\t }\n\t // if validates a single field we need to check the linked fields to a label:\n\t if (fields.length === 1) {\n\t var field = fields[0];\n\t var id = field.getAttribute(ATTR_DATA_CUSTOM_LABEL) || field.id;\n\t if (id) {\n\t var linkedFields = Array.from(this.getForm().querySelectorAll('[' + ATTR_DATA_CUSTOM_LABEL + '=\"' + id + '\"], #' + id));\n\t linkedFields.forEach(function (thisField) {\n\t var validity = thisField.validity,\n\t isInvalid = validity && !validity.valid && this._isElementInvalidElement(thisField);\n\t handleAdditionalLabels(isInvalid, labelGroups, thisField);\n\t }.bind(this));\n\t }\n\t }\n\t this._handleLabels(labelGroups);\n\t return invalidFields;\n\t }\n\t\n\t /**\n\t * Validates all custom fields\n\t * @returns {Promise}\n\t */\n\t\n\t }, {\n\t key: 'validateCustomFields',\n\t value: function validateCustomFields() {\n\t return this._customValidationsForElements(this.form.querySelectorAll(\"[data-validate]\"));\n\t }\n\t\n\t /**\n\t * Tests if a field should be validated\n\t * @param {HTMLElement} field\n\t * @returns {boolean}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: 'getForm',\n\t\n\t\n\t /**\n\t * This form\n\t * @returns {HTMLElement}\n\t */\n\t value: function getForm() {\n\t return this.form;\n\t }\n\t\n\t /**\n\t * Registers a function that handles remote validation\n\t * @param {Function} func\n\t * @returns {Form}\n\t */\n\t\n\t }, {\n\t key: 'registerRemoteValidation',\n\t value: function registerRemoteValidation(func) {\n\t this._remoteValidationFunction = func;\n\t return this;\n\t }\n\t\n\t /**\n\t * Formats the error content for the tooltip\n\t * @param {String} error\n\t * @returns {String}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_formatErrorTooltip',\n\t value: function _formatErrorTooltip(error) {\n\t return this.options.formatErrorTooltip.apply(this, [error]);\n\t }\n\t\n\t /**\n\t * Tries to find a custom error target on given target\n\t * @param target\n\t * @returns {HTMLElement}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: 'showAndOrCreateTooltip',\n\t\n\t\n\t /**\n\t * Creates a tooltip at given element, will only create a new instance if not created\n\t * @param {HTMLElement} target\n\t * @param {Boolean} [remove]\n\t */\n\t value: function showAndOrCreateTooltip(target, remove) {\n\t var self = this;\n\t if (!this.tooltips && this.options.createTooltips) {\n\t this.tooltips = new _Tooltip2.default(this.options.tooltipContainer, this.options.tooltipOptions);\n\t }\n\t if (!this.options.createTooltips) {\n\t return false;\n\t }\n\t\n\t if (!target.flexFormsSavedValidity) {\n\t return false;\n\t }\n\t var errorTarget = Form._findErrorTarget(target);\n\t if (!target.flexFormsSavedValidity.valid && self._isElementInvalidElement(errorTarget)) {\n\t self.tooltips.createTooltip(errorTarget, self._formatErrorTooltip(target.flexFormsSavedValidationMessage), false);\n\t return true;\n\t } else {\n\t if (remove) {\n\t self.tooltips.removeTooltip();\n\t }\n\t }\n\t return false;\n\t }\n\t\n\t /**\n\t * Checks if element is marked as invalid\n\t * @param {HTMLElement} el\n\t * @returns {boolean}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_isElementInvalidElement',\n\t value: function _isElementInvalidElement(el) {\n\t return el.hasAttribute(DATA_ELEMENT_INVALID);\n\t }\n\t\n\t /**\n\t * Handles invalid event of a form\n\t * @param {Event} e\n\t * @returns {Promise|boolean}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_checkIsInvalid',\n\t value: function _checkIsInvalid(e) {\n\t e.preventDefault();\n\t var invalidFields = this.getForm().querySelectorAll(\":invalid\");\n\t return this._handleValidation(invalidFields, true, false);\n\t }\n\t\n\t /**\n\t * Will query dependent fields (by selector) that should be validated with given field\n\t * @param field\n\t * @returns {NodeList|[]}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_getDependentFields',\n\t value: function _getDependentFields(field) {\n\t var fieldSelector = field.getAttribute(ATTR_DEPENDS),\n\t base = [field];\n\t if (fieldSelector) {\n\t base.push.apply(base, Array.prototype.slice.apply(this.getForm().querySelectorAll(fieldSelector)));\n\t }\n\t return base;\n\t }\n\t\n\t /**\n\t * @private\n\t * @param {HTMLElement} [target]\n\t */\n\t\n\t }, {\n\t key: '_handleTooltipInline',\n\t value: function _handleTooltipInline(target) {\n\t if (this.tooltips) {\n\t this.tooltips.removeTooltip(target);\n\t }\n\t }\n\t\n\t /**\n\t * Initializes validation for a given form, registers event handlers\n\t */\n\t\n\t }, {\n\t key: 'initFormValidation',\n\t value: function initFormValidation() {\n\t var _this3 = this;\n\t\n\t // Suppress the default bubbles\n\t var form = this.getForm(),\n\t self = this,\n\t invalidEvent = 'invalid';\n\t\n\t /**\n\t * Validates if is valid realtime element\n\t * @param {HTMLElement} target\n\t * @returns {boolean}\n\t * @private\n\t */\n\t function _checkIsValidRealtimeElement(target) {\n\t return !target.hasAttribute(ATTR_DISABLE_REALTIME) && !target.hasAttribute(ATTR_DISABLE_INLINE);\n\t }\n\t\n\t form.addEventListener(invalidEvent, function (e) {\n\t e.preventDefault();\n\t }, true);\n\t\n\t _Util2.default.addEventOnce(invalidEvent, form, function handleInvalid(e) {\n\t self._formLoading();\n\t var result = self._checkIsInvalid(e);\n\t if (result) {\n\t self.currentValidationFuture = new Promise(function (resolve) {\n\t result.then(function (r) {\n\t setTimeout(function () {\n\t _Util2.default.addEventOnce(invalidEvent, form, handleInvalid, true);\n\t }, 0);\n\t resolve(r);\n\t self._formStopLoading();\n\t if (!r.foundAnyError) {\n\t self._formLoading();\n\t self._handleSubmit(e);\n\t }\n\t });\n\t });\n\t }\n\t }, true);\n\t\n\t this.addEventListener(form, 'reset', function () {\n\t _this3.removeErrors();\n\t });\n\t\n\t // Timeout for keys:\n\t var TIMEOUT_KEYDOWN,\n\t KEYDOWN_RUNNING = false;\n\t\n\t // resets keydown events\n\t function clearKeyDownTimeout() {\n\t KEYDOWN_RUNNING = false;\n\t clearTimeout(TIMEOUT_KEYDOWN);\n\t }\n\t\n\t // setup custom realtime event if given\n\t if (self.options.realtime) {\n\t this.addEventListener(form, CONST_REALTIME_EVENT, function (e) {\n\t if (self._formIsLoading()) {\n\t return;\n\t }\n\t var target = e.target;\n\t clearTimeout(TIMEOUT_KEYDOWN);\n\t if (KEYDOWN_RUNNING) {\n\t return;\n\t }\n\t TIMEOUT_KEYDOWN = setTimeout(function () {\n\t var isStillTarget = document.activeElement === e.target;\n\t if (!_checkIsValidRealtimeElement(target)) {\n\t return;\n\t }\n\t if (isStillTarget) {\n\t self._handleTooltipInline();\n\t }\n\t KEYDOWN_RUNNING = true;\n\t var dependentFields = self._getDependentFields(target);\n\t self._customValidationsForElements(dependentFields).then(function () {\n\t self.prepareErrors(dependentFields, false);\n\t if (isStillTarget) {\n\t self.showAndOrCreateTooltip(e.target);\n\t }\n\t // future must be resolved before another event can be started\n\t KEYDOWN_RUNNING = false;\n\t });\n\t }, self.options.realtimeTimeout);\n\t }, true);\n\t }\n\t\n\t /**\n\t * Validates if target is a valid input field to check blur and focus events\n\t *\n\t * @param {HTMLElement} target\n\t * @returns {boolean}\n\t * @private\n\t */\n\t function _checkIsValidBlurFocusElement(target) {\n\t var attr = target.getAttribute(\"type\");\n\t return attr !== \"radio\" && attr !== \"checkbox\" && attr !== \"submit\";\n\t }\n\t\n\t /**\n\t * Validates if is valid inline-check element\n\t * @param {HTMLElement} target\n\t * @returns {boolean}\n\t * @private\n\t */\n\t function _checkIsValidInlineCheckElement(target) {\n\t return !target.hasAttribute(ATTR_DISABLE_INLINE);\n\t }\n\t\n\t this.addEventListener(form, 'blur', function (e) {\n\t // do not hide tooltip after change event\n\t if (!e.target.flexcssKeepTooltips) {\n\t self._handleTooltipInline(e.target);\n\t }\n\t delete e.target.flexcssKeepTooltips;\n\t }, true);\n\t\n\t // handle focus on input elements\n\t // will show an error if field is invalid\n\t this.addEventListener(form, \"focus\", function (e) {\n\t if (self._formIsLoading()) {\n\t return;\n\t }\n\t // do not track errors for checkbox and radios on focus:\n\t if (!_checkIsValidBlurFocusElement(e.target)) {\n\t return;\n\t }\n\t // we need to delay this a little, because Firefox and Safari do not show a tooltip after it\n\t // just have been hidden (on blur). Maybe fix this with a queue later\n\t setTimeout(function () {\n\t self.showAndOrCreateTooltip(e.target);\n\t }, FOCUS_TOOLTIP_DELAY);\n\t }, true);\n\t\n\t if (self.options.inlineValidation) {\n\t // Handle change for checkbox, radios and selects\n\t this.addEventListener(form, \"change\", function (e) {\n\t var target = e.target;\n\t if (self._formIsLoading() || !_checkIsValidInlineCheckElement(target)) {\n\t return;\n\t }\n\t clearKeyDownTimeout();\n\t var name = target.getAttribute('name');\n\t var inputs = name ? form.querySelectorAll('[name=\"' + name + '\"]') : [target];\n\t // we only support dependent fields for a single widgets right now\n\t if (inputs.length === 1) {\n\t inputs = self._getDependentFields(target);\n\t }\n\t self._customValidationsForElements(inputs).then(function () {\n\t self.prepareErrors(inputs, false);\n\t target.flexcssKeepTooltips = self.showAndOrCreateTooltip(target, true);\n\t if (target.flexcssKeepTooltips) {\n\t self._handleTooltipHideClickAfterChange();\n\t }\n\t });\n\t });\n\t }\n\t\n\t // prevent default if form is invalid\n\t this.addEventListener(form, \"submit\", function listener(e) {\n\t self._submitListener(e, listener);\n\t });\n\t\n\t _Event2.default.dispatchAndFire(form, EVENT_FORM_READY);\n\t }\n\t\n\t /* Loading states, unfortunately we can't check if a promise is pending :/*/\n\t /* TODO: Maybe wrap promise to extend this functionality */\n\t\n\t }, {\n\t key: '_formLoading',\n\t value: function _formLoading() {\n\t this.getForm().classList.add(LOADING_CLASS);\n\t }\n\t }, {\n\t key: '_formStopLoading',\n\t value: function _formStopLoading() {\n\t this.getForm().classList.remove(LOADING_CLASS);\n\t }\n\t }, {\n\t key: '_formIsLoading',\n\t value: function _formIsLoading() {\n\t return this.getForm().classList.contains(LOADING_CLASS);\n\t }\n\t\n\t // this defines the logic after a change event when a tooltip is shown\n\t // because we call this method inside the change event, the click would be immeditally executed with the change\n\t // event when not using setTimeout(). There might be another solution for this...\n\t\n\t }, {\n\t key: '_handleTooltipHideClickAfterChange',\n\t value: function _handleTooltipHideClickAfterChange() {\n\t var self = this;\n\t if (this.options.createTooltips) {\n\t setTimeout(function () {\n\t _Util2.default.addEventOnce(_Settings2.default.getTabEvent(), global.document.body, function (t) {\n\t if (!self._isElementInvalidElement(t.target)) {\n\t self._handleTooltipInline();\n\t }\n\t });\n\t }, CLICK_TOOLTIP_DELAY);\n\t }\n\t }\n\t }, {\n\t key: '_focusElement',\n\t value: function _focusElement(el) {\n\t el.focus();\n\t _Util2.default.scrollToElement(el, this.options.scrollToElementDiff);\n\t }\n\t\n\t /**\n\t * Listener that is executed on form submit\n\t * @param e\n\t * @param submitListener\n\t * @returns {boolean}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_submitListener',\n\t value: function _submitListener(e, submitListener) {\n\t\n\t var form = this.getForm(),\n\t self = this,\n\t submitEvent = 'submit';\n\t\n\t if (this._formIsLoading()) {\n\t e.preventDefault();\n\t return false;\n\t }\n\t this._formLoading();\n\t form.removeEventListener(submitEvent, submitListener);\n\t this.removeErrors();\n\t e.preventDefault();\n\t // reset:\n\t if (form.checkValidity()) {\n\t form.addEventListener(submitEvent, submitListener);\n\t // It's possible that the form is valid but the custom validations need to be checked again:\n\t self.currentValidationFuture = new Promise(function (resolve) {\n\t var validation = self.validateCustomFields();\n\t validation.then(function (r) {\n\t // because custom validators may mark multiple fields as invalid, we get all of them in the form\n\t var fields = self._getInvalidElements(),\n\t errors = self.prepareErrors(fields, false),\n\t firstError = errors[0];\n\t if (firstError) {\n\t self._focusElement(firstError);\n\t self.showAndOrCreateTooltip(firstError, true);\n\t }\n\t resolve(r);\n\t });\n\t });\n\t self.currentValidationFuture.then(function (r) {\n\t if (!r.foundAnyError) {\n\t // Handle submitting the form to server:\n\t self._handleSubmit(e);\n\t } else {\n\t self._formStopLoading();\n\t }\n\t });\n\t } else {\n\t self._formStopLoading();\n\t form.addEventListener(submitEvent, submitListener);\n\t }\n\t }\n\t\n\t /**\n\t * Handles submitting, optionally allows to stop submitting\n\t * @param e\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_handleSubmit',\n\t value: function _handleSubmit(e) {\n\t this._submitFunction(this.form, e);\n\t }\n\t\n\t /**\n\t * Registers a global event Handler\n\t * @param errorFunc\n\t */\n\t\n\t }], [{\n\t key: '_shouldNotValidateField',\n\t value: function _shouldNotValidateField(field) {\n\t var target = Form._findErrorTarget(field);\n\t return target instanceof HTMLFieldSetElement || field.validity === undefined || target.hasAttribute(ATTR_VALIDATE_VISIBILITY) && !_Util2.default.isVisible(target);\n\t }\n\t\n\t /**\n\t * Creates an array from a node list with invalid items\n\t * This Method expicitly checks if field should not be validated so it can be used to foucs a field\n\t * @param list\n\t * @returns {Array}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_createArrayFromInvalidFieldList',\n\t value: function _createArrayFromInvalidFieldList(list) {\n\t var arr = [];\n\t for (var i = 0; i < list.length; ++i) {\n\t var n = list[i];\n\t if (n.validity && !n.validity.valid) {\n\t if (!Form._shouldNotValidateField(n)) {\n\t arr.push(n);\n\t }\n\t }\n\t }\n\t return arr;\n\t }\n\t }, {\n\t key: '_findErrorTarget',\n\t value: function _findErrorTarget(target) {\n\t var el = target.getAttribute(ATTR_ERROR_TARGET_ID) || target,\n\t foundTarget = el instanceof HTMLElement ? el : global.document.getElementById(el);\n\t if (!foundTarget) {\n\t throw 'Given error target did not exsits:' + target;\n\t }\n\t return foundTarget;\n\t }\n\t }, {\n\t key: 'registerErrorMessageHandler',\n\t value: function registerErrorMessageHandler(errorFunc) {\n\t Form.globalErrorMessageHandler = errorFunc;\n\t }\n\t\n\t /**\n\t * Initialize forms for a specific selector\n\t * @param {String} selector\n\t * @param {Object} [options]\n\t * @return {array.}\n\t */\n\t\n\t }, {\n\t key: 'init',\n\t value: function init(selector, options) {\n\t var forms = selector instanceof HTMLElement ? selector.querySelectorAll('form') : document.querySelectorAll(selector),\n\t instances = [];\n\t for (var i = 0; i < forms.length; i++) {\n\t instances.push(new Form(forms[i], options));\n\t }\n\t return instances;\n\t }\n\t\n\t /**\n\t * Registers a global validator that is usable on all form instances\n\t * @param {String} name\n\t * @param {Function} validator\n\t * @returns {Function}\n\t */\n\t\n\t }, {\n\t key: 'registerValidator',\n\t value: function registerValidator(name, validator) {\n\t Form.globalValidators[name] = validator;\n\t return Form;\n\t }\n\t\n\t /**\n\t * Registers a global function that is called when a form should validate the response of a server\n\t * @param {Function} func\n\t * @returns {Form}\n\t */\n\t\n\t }, {\n\t key: 'registerGlobalRemoteValidationFunction',\n\t value: function registerGlobalRemoteValidationFunction(func) {\n\t Form.globalRemoteValidationFunction = func;\n\t return Form;\n\t }\n\t }]);\n\t\n\t return Form;\n\t}(_DestroyableWidget3.default);\n\t\n\t/**\n\t * Global validators\n\t * @type {Array}\n\t */\n\t\n\t\n\tForm.globalValidators = [];\n\t\n\t/**\n\t * Global Remote validation function\n\t */\n\tForm.globalRemoteValidationFunction = function () {};\n\t\n\t/**\n\t * Handles custom error messages extracts custom message by default\n\t */\n\tForm.globalErrorMessageHandler = function (field, validity) {\n\t if (!validity.customError) {\n\t var customMsg = field.getAttribute(ATTR_DATA_CUSTOM_MESSAGE);\n\t if (customMsg) {\n\t field.setCustomValidity(customMsg);\n\t }\n\t }\n\t};\n\t\n\texports.default = Form;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 106 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t/*!\n\t * FlexCss.LightBox\n\t * Licensed under the MIT License (MIT)\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t */\n\t\n\t'use strict';\n\t\n\t/* global Image, TouchEvent*/\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\tvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj; };\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\t\n\tvar _Modal = __webpack_require__(101);\n\t\n\tvar _Modal2 = _interopRequireDefault(_Modal);\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tvar _Widget = __webpack_require__(36);\n\t\n\tvar _Widget2 = _interopRequireDefault(_Widget);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tvar ATTR_MAX_WIDTH = 'data-original-width';\n\tvar ATTR_MAX_HEIGHT = 'data-original-height';\n\tvar ATTR_SRC = 'data-src';\n\t\n\tvar CLS_HAS_PREV = 'has-prev';\n\tvar CLS_HAS_NEXT = 'has-next';\n\tvar CLS_LOADING = 'loading';\n\t\n\tvar ATTR_NO_THUMBNAIL = 'data-no-thumbnail';\n\tvar ATTR_DATA_HREF = 'data-href';\n\tvar ATTR_HREF = 'href';\n\t\n\tvar KEY_NEXT = 39;\n\tvar KEY_PREV = 37;\n\tvar ATTR_CLOSE = 'data-close-modal';\n\t/**\n\t * A Simple LightBox\n\t */\n\t\n\tvar LightBox = function () {\n\t\n\t /**\n\t * Creates a new Lightbox\n\t * @param DelegateContainer\n\t * @param AttributeSelector\n\t * @param ModalAppend\n\t * @param [options]\n\t */\n\t\n\t function LightBox(DelegateContainer, AttributeSelector, ModalAppend, options) {\n\t _classCallCheck(this, LightBox);\n\t\n\t var thisDelegateContainer = DelegateContainer instanceof HTMLElement ? DelegateContainer : document.getElementById(DelegateContainer);\n\t\n\t this._modalAppend = ModalAppend || DelegateContainer;\n\t /**\n\t * @type {Function}\n\t */\n\t this._resizeEvent = null;\n\t /**\n\t * @type {Function}\n\t */\n\t this._keyboardNextEvent = null;\n\t /**\n\t * @type {Promise}\n\t */\n\t this._future = null;\n\t /**\n\t * @type {Promise}\n\t */\n\t this._nextFuture = this._future;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this._imageContainer = null;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this._modalContainerDiv = null;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this._contentContainer = null;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this._closerContainerDiv = null;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this._delegateContainer = thisDelegateContainer;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this._attributeSelector = AttributeSelector;\n\t /**\n\t * @type {Widget}\n\t */\n\t this._widget = null;\n\t /**\n\t * @type {boolean}\n\t */\n\t this._isOpen = false;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.target = null;\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.img = null;\n\t /**\n\t * @type {boolean}\n\t */\n\t this._isLoading = false;\n\t\n\t /**\n\t * Default options\n\t */\n\t this.options = {\n\t // set if prev and next should be available\n\t registerPrevNextEvents: true,\n\t // set if modal should be closed after last image\n\t closeOnLast: true,\n\t // called when next image is requested (either by keyboard or click), return false to abort\n\t onNext: function onNext() {\n\t return true;\n\t },\n\t onClose: function onClose() {},\n\t getNext: null,\n\t getPrev: null,\n\t // called when underlying target changed\n\t onSwitchImage: function onSwitchImage() {}\n\t };\n\t\n\t Object.assign(this.options, options);\n\t }\n\t\n\t /**\n\t * @param {HTMLElement} node\n\t * @returns {HTMLElement|null}\n\t */\n\t\n\t\n\t _createClass(LightBox, [{\n\t key: 'findImmediateNextTarget',\n\t value: function findImmediateNextTarget(node) {\n\t if (node && node.children[0].hasAttribute(this._attributeSelector)) {\n\t return node.children[0];\n\t }\n\t return null;\n\t }\n\t\n\t /**\n\t * Will fetch the next element of a lightBox\n\t * @param {HTMLElement} target\n\t * @returns {null|HTMLElement}\n\t */\n\t\n\t }, {\n\t key: 'getNext',\n\t value: function getNext(target) {\n\t if (this.options.getNext) {\n\t return this.options.getNext.apply(this, [target]);\n\t }\n\t return this.findImmediateNextTarget(target.parentNode.nextElementSibling);\n\t }\n\t\n\t /**\n\t * Will fetch the previous element of a lightBox\n\t * @param {HTMLElement} target\n\t * @returns {null|HTMLElement}\n\t */\n\t\n\t }, {\n\t key: 'getPrev',\n\t value: function getPrev(target) {\n\t if (this.options.getPrev) {\n\t return this.options.getPrev.apply(this, [target]);\n\t }\n\t return this.findImmediateNextTarget(target.parentNode.previousElementSibling);\n\t }\n\t\n\t /**\n\t * Registers events for delegate container\n\t */\n\t\n\t }, {\n\t key: 'registerEvents',\n\t value: function registerEvents(onOpen) {\n\t var _this = this;\n\t\n\t this._delegateContainer.addEventListener(_Settings2.default.getTabEvent(), function (e) {\n\t var target = e.target;\n\t var parent = target.parentNode;\n\t var validTarget = target.hasAttribute(_this._attributeSelector);\n\t var parentIsValid = parent && parent.hasAttribute(_this._attributeSelector);\n\t\n\t if (!validTarget && parentIsValid) {\n\t validTarget = true;\n\t target = parent;\n\t }\n\t if (validTarget) {\n\t e.preventDefault();\n\t _this.open(target).then(function (r) {\n\t if (onOpen) {\n\t onOpen.apply(_this, [r, target]);\n\t }\n\t });\n\t }\n\t });\n\t }\n\t\n\t /**\n\t * @returns {HTMLElement}\n\t */\n\t\n\t }, {\n\t key: 'getContentContainer',\n\t value: function getContentContainer() {\n\t return this._contentContainer;\n\t }\n\t\n\t /**\n\t * Setup max-width and max-height\n\t * @param {HTMLElement} target\n\t * @param {HTMLElement} img\n\t * @param {HTMLElement} loadedImage\n\t * @private\n\t */\n\t\n\t }, {\n\t key: 'switchImageByDirection',\n\t\n\t\n\t /**\n\t * Switches to the next image\n\t * @param {boolean} direction\n\t */\n\t value: function switchImageByDirection(direction) {\n\t var next = direction ? this.getPrev(this.target) : this.getNext(this.target);\n\t if (this.options.onNext.apply(this, [next])) {\n\t return this.switchImage(next);\n\t }\n\t return new Promise(function (_, reject) {\n\t return reject(next);\n\t });\n\t }\n\t\n\t /**\n\t * Checks if lightbox is currently loading\n\t * @returns {boolean}\n\t */\n\t\n\t }, {\n\t key: 'isLoading',\n\t value: function isLoading() {\n\t return this._isLoading;\n\t }\n\t\n\t /**\n\t * Checks if modal should be closed\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_runOptionalClose',\n\t value: function _runOptionalClose() {\n\t if (this.options.closeOnLast) {\n\t this.modal.close();\n\t }\n\t }\n\t }, {\n\t key: '_setupPrevNextStates',\n\t value: function _setupPrevNextStates() {\n\t var target = this.target;\n\t var hasPrev = this.getPrev(target);\n\t var hasNext = this.getNext(target);\n\t var hasPrevClass = CLS_HAS_PREV;\n\t var hasNextClass = CLS_HAS_NEXT;\n\t // because IE does not support the second toggle parameter, we need to do this manually\n\t if (hasPrev) {\n\t this._imageContainer.classList.add(hasPrevClass);\n\t } else {\n\t this._imageContainer.classList.remove(hasPrevClass);\n\t }\n\t if (hasNext) {\n\t this._imageContainer.classList.add(hasNextClass);\n\t } else {\n\t this._imageContainer.classList.remove(hasNextClass);\n\t }\n\t }\n\t\n\t /**\n\t * @param img\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_calculateContainer',\n\t value: function _calculateContainer(img) {\n\t var _this2 = this;\n\t\n\t if (_Settings2.default.isIE()) {\n\t setTimeout(function () {\n\t _this2._imageContainer.style.height = img.offsetHeight + 'px';\n\t }, 0);\n\t }\n\t }\n\t\n\t /**\n\t * Switch to a specific image\n\t * @param next\n\t * @returns {*}\n\t */\n\t\n\t }, {\n\t key: 'switchImage',\n\t value: function switchImage(next) {\n\t var _this3 = this;\n\t\n\t var self = this;\n\t var img = this.img;\n\t this._isLoading = true;\n\t self._nextFuture = new Promise(function (resolve, reject) {\n\t // notify observers about image switching\n\t self.options.onSwitchImage.apply(self, [self._nextFuture]);\n\t if (next) {\n\t var _ret = function () {\n\t var nextThumb = next.hasAttribute(ATTR_NO_THUMBNAIL) ? next : next.children[0] || next;\n\t var nextHighRes = next.getAttribute(ATTR_DATA_HREF) || next.getAttribute(ATTR_HREF);\n\t var nextSource = nextThumb.getAttribute(ATTR_SRC) || nextThumb.src || nextHighRes;\n\t var nextImgObject = new Image();\n\t\n\t if (!nextSource) {\n\t reject(next);\n\t return {\n\t v: undefined\n\t };\n\t }\n\t // set new target to next element\n\t _this3.target = next;\n\t nextImgObject.src = nextSource;\n\t self._imageContainer.classList.add(CLS_LOADING);\n\t nextImgObject.addEventListener('load', function () {\n\t img.src = nextSource;\n\t self._imageContainer.style.backgroundImage = 'url(' + nextSource + ')';\n\t LightBox._setupMaxWidthHeight(next, img, nextImgObject);\n\t self._calculateContainer(img);\n\t self.highRes(nextThumb, nextHighRes);\n\t self._setupPrevNextStates();\n\t self._imageContainer.classList.remove(CLS_LOADING);\n\t _this3._isLoading = false;\n\t resolve(nextSource, _this3.target);\n\t });\n\t }();\n\t\n\t if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === \"object\") return _ret.v;\n\t } else {\n\t reject(_this3);\n\t }\n\t });\n\t return self._nextFuture;\n\t }\n\t\n\t /**\n\t * Setup High-Resolution picture\n\t * @param {HTMLElement} thisThumbnail\n\t * @param {String} thisImgHighResolution\n\t */\n\t\n\t }, {\n\t key: 'highRes',\n\t value: function highRes(thisThumbnail, thisImgHighResolution) {\n\t var _this4 = this;\n\t\n\t if (thisImgHighResolution && thisThumbnail.src !== thisImgHighResolution) {\n\t var highImageObj = new Image();\n\t highImageObj.src = thisImgHighResolution;\n\t highImageObj.addEventListener('load', function () {\n\t // if current image is still available\n\t if (_this4._getSrc(thisThumbnail) === _this4.img.src) {\n\t _this4.img.src = thisImgHighResolution;\n\t _this4._imageContainer.style.backgroundImage = 'url(' + thisImgHighResolution + ')';\n\t }\n\t });\n\t }\n\t }\n\t\n\t /**\n\t * Extracts the source of an image\n\t * @param target\n\t * @returns {String|null}\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_getSrc',\n\t value: function _getSrc(target) {\n\t return target.getAttribute(ATTR_SRC) || target.src;\n\t }\n\t\n\t /**\n\t * Will show a lightBox on given target\n\t * @param {HTMLElement} target\n\t * @returns {$.Deferred|*}\n\t */\n\t\n\t }, {\n\t key: 'open',\n\t value: function open(target) {\n\t var _this5 = this;\n\t\n\t var self = this;\n\t\n\t if (!target) {\n\t return false;\n\t }\n\t\n\t this.target = target;\n\t\n\t // if lightBox is open, we just switch to the new target image\n\t if (this._isOpen && target) {\n\t return this.switchImage(target).then(function () {\n\t return _this5;\n\t });\n\t }\n\t\n\t this._isOpen = true;\n\t\n\t /**\n\t * Setup Widget for modal\n\t * @type {Widget}\n\t */\n\t this._widget = new _Widget2.default().setAsync(function () {\n\t // thumbnail is either target itself or expected to be first childNode\n\t var thumbnail = target.hasAttribute(ATTR_NO_THUMBNAIL) ? target : target.children[0] || target;\n\t\n\t var imgHighResolution = target.getAttribute(ATTR_DATA_HREF) || target.getAttribute(ATTR_HREF);\n\t var imgSrc = _this5._getSrc(thumbnail) || imgHighResolution;\n\t\n\t var imageObj = new Image();\n\t imageObj.src = imgSrc;\n\t _this5._imageContainer = document.createElement('div');\n\t _this5._modalContainerDiv = document.createElement('div');\n\t _this5._closerContainerDiv = document.createElement('i');\n\t _this5._contentContainer = document.createElement('div');\n\t\n\t _this5._closerContainerDiv.className = 'modal-close modal-close-lightbox icon-cancel-1';\n\t _this5._closerContainerDiv.setAttribute(ATTR_CLOSE, ATTR_CLOSE);\n\t\n\t _this5._modalContainerDiv.className = 'modal image-modal';\n\t _this5._modalContainerDiv.appendChild(_this5._imageContainer);\n\t _this5._modalContainerDiv.appendChild(_this5._contentContainer);\n\t _this5._modalContainerDiv.appendChild(_this5._closerContainerDiv);\n\t _this5._contentContainer.className = 'content-container';\n\t _this5._isLoading = true;\n\t _this5._future = new Promise(function (resolve) {\n\t imageObj.addEventListener('load', function () {\n\t _this5._imageContainer.className = 'image-container';\n\t var img = document.createElement('img');\n\t // current image\n\t _this5.img = img;\n\t\n\t img.src = imgSrc;\n\t LightBox._setupMaxWidthHeight(target, img, imageObj);\n\t _this5._imageContainer.appendChild(img);\n\t _this5._imageContainer.style.backgroundImage = 'url(' + imgSrc + ')';\n\t\n\t resolve(self._modalContainerDiv);\n\t _this5._isLoading = false;\n\t\n\t if (_Settings2.default.isIE()) {\n\t self._resizeEvent = global.addEventListener('resize', function () {\n\t setTimeout(function () {\n\t self._imageContainer.style.height = img.offsetHeight + 'px';\n\t }, 0);\n\t });\n\t }\n\t\n\t if (self.options.registerPrevNextEvents) {\n\t self._setupPrevNextStates();\n\t // prev or next on touch/click\n\t self._imageContainer.addEventListener(_Settings2.default.getTabEvent(), function (e) {\n\t if (self.isLoading()) {\n\t return;\n\t }\n\t e.preventDefault();\n\t\n\t var ev = e;\n\t var pageX = global.TouchEvent && ev instanceof TouchEvent ? ev.changedTouches[0].pageX : ev.pageX;\n\t var rect = self._imageContainer.getBoundingClientRect();\n\t var imgX = rect.left;\n\t var wrapperWidth = rect.width;\n\t var posX = pageX - imgX;\n\t\n\t self.switchImageByDirection(wrapperWidth / 2 > posX).catch(function () {\n\t self._runOptionalClose();\n\t });\n\t });\n\t\n\t // register keyboard events\n\t self._keyboardNextEvent = function (e) {\n\t if (e.keyCode === KEY_NEXT || e.keyCode === KEY_PREV) {\n\t if (self.isLoading()) {\n\t return;\n\t }\n\t self.switchImageByDirection(e.keyCode === KEY_PREV).catch(function () {\n\t self._runOptionalClose();\n\t });\n\t }\n\t };\n\t global.addEventListener('keydown', self._keyboardNextEvent);\n\t } else {\n\t self._imageContainer.addEventListener(_Settings2.default.getTabEvent(), function () {\n\t self._runOptionalClose();\n\t });\n\t }\n\t\n\t self.highRes(thumbnail, imgHighResolution);\n\t });\n\t });\n\t\n\t _this5._future.then(function () {\n\t self._calculateContainer(_this5.img);\n\t });\n\t\n\t self._modalContainerDiv.addEventListener(_Modal.EVENT_MODAL_CLOSED, function () {\n\t // cleanup:\n\t _this5._modalContainerDiv.parentNode.removeChild(_this5._modalContainerDiv);\n\t _this5.options.onClose.apply(self);\n\t _this5._isOpen = false;\n\t _this5.modal.destroy();\n\t // unbind events\n\t if (_this5._keyboardNextEvent) {\n\t global.removeEventListener('keydown', self._keyboardNextEvent);\n\t }\n\t if (_this5._resizeEvent) {\n\t global.removeEventListener('resize', self._resizeEvent);\n\t }\n\t });\n\t\n\t return _this5._future;\n\t });\n\t\n\t this._nextFuture = this._future;\n\t\n\t if (self._widget) {\n\t this.modal = new _Modal2.default(this._modalAppend);\n\t // make sure we close stack before\n\t return this.modal.close().fromWidget(self._widget).then(function () {\n\t return self._future.then(function () {\n\t return self;\n\t });\n\t });\n\t }\n\t return false;\n\t }\n\t }], [{\n\t key: '_setupMaxWidthHeight',\n\t value: function _setupMaxWidthHeight(target, img, loadedImage) {\n\t var nextMaxWidth = target.getAttribute(ATTR_MAX_WIDTH);\n\t var nextMaxHeight = target.getAttribute(ATTR_MAX_HEIGHT);\n\t if (nextMaxWidth && nextMaxHeight) {\n\t img.style.maxWidth = nextMaxWidth + \"px\";\n\t img.style.maxHeight = nextMaxHeight + \"px\";\n\t } else {\n\t img.style.maxWidth = loadedImage.width + \"px\";\n\t img.style.maxHeight = loadedImage.height + \"px\";\n\t }\n\t }\n\t }]);\n\t\n\t return LightBox;\n\t}();\n\t\n\texports.default = LightBox;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 107 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_TOGGLE = undefined;\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t/*!\n\t * FlexCss.OffCanvas\n\t * Licensed under the MIT License (MIT)\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t */\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tvar _Util = __webpack_require__(22);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tvar _Event = __webpack_require__(33);\n\t\n\tvar _Event2 = _interopRequireDefault(_Event);\n\t\n\tvar _FixedWindow = __webpack_require__(51);\n\t\n\tvar _FixedWindow2 = _interopRequireDefault(_FixedWindow);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_CLOSE_SIDEBAR = 'data-close-offcanvas';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_TARGET = 'data-offcanvas';\n\t/**\n\t * @type {string}\n\t */\n\tvar INIT_CLASS = 'init';\n\t/**\n\t * @type {string}\n\t */\n\tvar OPEN_CLASS = 'open';\n\t/**\n\t * @type {number}\n\t */\n\tvar HIDE_FACTOR = 3;\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar EVENT_TOGGLE = exports.EVENT_TOGGLE = 'flexcss.offcanvas.toggle';\n\t\n\t/**\n\t * A OffCanvas Implementation\n\t */\n\t\n\tvar OffCanvas = function () {\n\t\n\t /**\n\t * Creates an off-canvas navigation\n\t * @param {HTMLElement|String} NavigationId\n\t * @param {HTMLElement|String} Darkener\n\t * @param {int} factor positive will expect right sidebar, positive left\n\t * @param {bool} [disableTouch] if true all touch events are disabled\n\t * @constructor\n\t */\n\t\n\t function OffCanvas(NavigationId, Darkener, factor, disableTouch) {\n\t var _this = this;\n\t\n\t _classCallCheck(this, OffCanvas);\n\t\n\t var doc = global.document;\n\t var touchedX = 0;\n\t var navigationContainer = NavigationId instanceof HTMLElement ? NavigationId : doc.getElementById(NavigationId);\n\t var darkener = Darkener instanceof HTMLElement ? Darkener : doc.getElementById(Darkener);\n\t var DARKENER_CLASS_TOGGLE = 'toggle-' + darkener.id || 'darkener';\n\t var DARKENER_CLASS_INSTANT_TOGGLE = DARKENER_CLASS_TOGGLE + '-open';\n\t\n\t var shouldNotTouch = function shouldNotTouch() {\n\t return window.innerWidth >= _Settings2.default.get().smallBreakpoint;\n\t };\n\t\n\t if (!darkener || !navigationContainer) {\n\t throw new Error('Could not find needed elements (Darkener and/or NavigationId)');\n\t }\n\t\n\t this.darkener = darkener;\n\t this.darkenerClassToggle = DARKENER_CLASS_TOGGLE;\n\t this.darkenerClassToggleInstant = DARKENER_CLASS_INSTANT_TOGGLE;\n\t this.globalToggleClass = _Settings2.default.get().canvasToggledClass;\n\t\n\t this.navigationContainer = navigationContainer;\n\t this.navigationContainerId = navigationContainer.id;\n\t\n\t // create id if id does not exist\n\t if (!this.navigationContainerId) {\n\t this.navigationContainerId = _Util2.default.guid();\n\t navigationContainer.id = this.navigationContainerId;\n\t }\n\t\n\t if (!disableTouch) {\n\t navigationContainer.addEventListener('touchstart', function (e) {\n\t if (shouldNotTouch()) {\n\t return;\n\t }\n\t touchedX = e.touches[0].clientX;\n\t navigationContainer.mustHide = false;\n\t });\n\t navigationContainer.addEventListener('touchmove', function (e) {\n\t if (shouldNotTouch()) {\n\t return;\n\t }\n\t var clientX = e.touches[0].clientX;\n\t\n\t var target = navigationContainer;\n\t var style = target.style;\n\t var calcX = touchedX - clientX;\n\t var bounds = target.getBoundingClientRect();\n\t var compare = factor > 0 ? calcX <= 0 : calcX >= 0;\n\t if (compare) {\n\t style.transition = 'transform 0s ease';\n\t style.webkitTransition = '-webkit-transform 0s ease';\n\t target.mustHide = factor > 0 ? calcX * -1 > bounds.width / HIDE_FACTOR : calcX > bounds.width / HIDE_FACTOR;\n\t var transform = 'translate3d(' + calcX * -1 + 'px,0,0)';\n\t style.transform = transform;\n\t style.webkitTransform = transform;\n\t }\n\t });\n\t navigationContainer.addEventListener('touchend', function () {\n\t if (shouldNotTouch()) {\n\t return;\n\t }\n\t var target = navigationContainer;\n\t var style = target.style;\n\t if (target.mustHide) {\n\t var width = target.getBoundingClientRect().width * factor;\n\t style.transition = 'transform .2s ease';\n\t style.webkitTransition = '-webkit-transform .2s ease';\n\t var transform = 'translate3d(' + width + 'px,0,0)';\n\t style.transform = transform;\n\t style.webkitTransform = transform;\n\t _this._remove().then(function () {\n\t _this.resetTransform(style);\n\t });\n\t _this._removeInstant();\n\t } else {\n\t _this.resetTransform(style);\n\t }\n\t });\n\t }\n\t }\n\t\n\t /**\n\t * @param {Object} s\n\t */\n\t\n\t\n\t _createClass(OffCanvas, [{\n\t key: 'resetTransform',\n\t value: function resetTransform(s) {\n\t s.transform = '';\n\t s.transition = '';\n\t s.webkitTransform = '';\n\t s.webkitTransition = '';\n\t }\n\t\n\t /**\n\t * @param {Object} [event]\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_remove',\n\t value: function _remove(event) {\n\t var _this2 = this;\n\t\n\t return new Promise(function (resolve) {\n\t _Util2.default.addEventOnce(_Settings2.default.getTransitionEvent(), _this2.navigationContainer, function () {\n\t // add timeout because transition event fires a little to early\n\t setTimeout(function () {\n\t requestAnimationFrame(function () {\n\t var body = global.document.body;\n\t OffCanvas.currentOpen = null;\n\t body.classList.remove(_this2.darkenerClassToggle);\n\t global.document.documentElement.classList.remove(_this2.globalToggleClass);\n\t if (!!event) {\n\t _Event2.default.dispatchAndFire(_this2.navigationContainer, EVENT_TOGGLE);\n\t }\n\t resolve();\n\t });\n\t }, _Settings2.default.get().darkenerFadeDelay);\n\t });\n\t });\n\t }\n\t\n\t /**\n\t * @private\n\t */\n\t\n\t }, {\n\t key: '_removeInstant',\n\t value: function _removeInstant() {\n\t this.navigationContainer.classList.remove(OPEN_CLASS);\n\t global.document.body.classList.remove(this.darkenerClassToggleInstant);\n\t this.darkener.classList.remove(INIT_CLASS);\n\t _FixedWindow2.default.getInstance().close();\n\t }\n\t\n\t /**\n\t * Toggles a an off-canvas element\n\t * @param [e]\n\t * @private\n\t */\n\t\n\t }, {\n\t key: 'toggle',\n\t value: function toggle(e) {\n\t var _this3 = this;\n\t\n\t if (e) {\n\t e.preventDefault();\n\t }\n\t this.resetTransform(this.navigationContainer.style);\n\t var bodyClass = global.document.body.classList;\n\t var darkenerClass = this.darkener.classList;\n\t var DARKENER_CLASS_TOGGLE = this.darkenerClassToggle;\n\t var DARKENER_CLASS_INSTANT_TOGGLE = this.darkenerClassToggleInstant;\n\t var navigationControllerClassList = this.navigationContainer.classList;\n\t if (!OffCanvas.currentOpen) {\n\t _Util2.default.addEventOnce(_Settings2.default.getTransitionEvent(), this.navigationContainer, function () {\n\t if (!!e) {\n\t _Event2.default.dispatchAndFire(_this3.navigationContainer, EVENT_TOGGLE);\n\t }\n\t });\n\t OffCanvas.currentOpen = this;\n\t _FixedWindow2.default.getInstance().open(this);\n\t global.document.documentElement.classList.add(this.globalToggleClass);\n\t bodyClass.add(DARKENER_CLASS_INSTANT_TOGGLE);\n\t bodyClass.add(DARKENER_CLASS_TOGGLE);\n\t darkenerClass.add(INIT_CLASS);\n\t navigationControllerClassList.add(OPEN_CLASS);\n\t } else {\n\t return this.close(e);\n\t }\n\t }\n\t }, {\n\t key: 'close',\n\t value: function close(event) {\n\t if (this.navigationContainer.classList.contains(OPEN_CLASS)) {\n\t var navigationControllerClassList = this.navigationContainer.classList;\n\t var promise = this._remove(event);\n\t this._removeInstant(navigationControllerClassList);\n\t return promise;\n\t }\n\t return new Promise(function (r) {\n\t return r();\n\t });\n\t }\n\t\n\t /**\n\t * Register events\n\t * @param [delegate]\n\t */\n\t\n\t }, {\n\t key: 'registerEvents',\n\t value: function registerEvents(delegate) {\n\t var _this4 = this;\n\t\n\t var thisDelegate = delegate || global.document;\n\t _FixedWindow2.default.getInstance().addScreenConstraint(OffCanvas, function (width) {\n\t return width < _Settings2.default.get().smallBreakpoint;\n\t });\n\t thisDelegate.addEventListener(_Settings2.default.getTabEvent(), function (e) {\n\t if (OffCanvas.currentOpen && OffCanvas.currentOpen !== _this4) {\n\t return;\n\t }\n\t var id = _this4.navigationContainerId;\n\t var validTarget = e.target.getAttribute(ATTR_TARGET) === id;\n\t if (!_Util2.default.isPartOfNode(e.target, _this4.navigationContainer)) {\n\t if (validTarget || OffCanvas.currentOpen === _this4 && e.target === _this4.darkener) {\n\t _this4.toggle(e);\n\t }\n\t } else {\n\t if (e.target.hasAttribute(ATTR_CLOSE_SIDEBAR)) {\n\t _this4.toggle(e);\n\t }\n\t }\n\t });\n\t }\n\t }]);\n\t\n\t return OffCanvas;\n\t}();\n\t\n\tOffCanvas.currentOpen = null;\n\t\n\texports.default = OffCanvas;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 108 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.EVENT_TAB_OPENED = exports.EVENT_TAB_CLOSED = undefined;\n\t\n\tvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /*\n\t * The MIT License (MIT)\n\t *\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t *\n\t * Permission is hereby granted, free of charge, to any person obtaining a copy\n\t * of this software and associated documentation files (the \"Software\"), to deal\n\t * in the Software without restriction, including without limitation the rights\n\t * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\t * copies of the Software, and to permit persons to whom the Software is\n\t * furnished to do so, subject to the following conditions:\n\t *\n\t * The above copyright notice and this permission notice shall be included in\n\t * all copies or substantial portions of the Software.\n\t *\n\t * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\t * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\t * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\t * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\t * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\t * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\t * THE SOFTWARE.\n\t */\n\t\n\t/*!\n\t * FlexCss.Toggleable\n\t * Licensed under the MIT License (MIT)\n\t * Copyright (c) 2015 David Heidrich, BowlingX \n\t */\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tvar _Widget = __webpack_require__(36);\n\t\n\tvar _Widget2 = _interopRequireDefault(_Widget);\n\t\n\tvar _Util = __webpack_require__(22);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tvar _Event = __webpack_require__(33);\n\t\n\tvar _Event2 = _interopRequireDefault(_Event);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\t/**\n\t * Event that is fired when a tab is closed\n\t * @type {string}\n\t */\n\t\n\tvar EVENT_TAB_CLOSED = exports.EVENT_TAB_CLOSED = 'flexcss.tab.closed';\n\t\n\t/**\n\t * Event that is fired when a tab has been opened\n\t * @type {string}\n\t */\n\tvar EVENT_TAB_OPENED = exports.EVENT_TAB_OPENED = 'flexcss.tab.opened';\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_NAME = 'data-toggle';\n\t/**\n\t * @type {string}\n\t */\n\tvar ACTIVE_CLASS = 'active';\n\t/**\n\t * @type {string}\n\t */\n\tvar LOADING_CLASS = 'loading';\n\t\n\t/**\n\t * @type {string}\n\t */\n\tvar ATTR_TOGGLE_LIST = 'data-toggle-list';\n\t\n\t/**\n\t * Creates a toggleable element, either for tabs or a single toggle\n\t */\n\t\n\tvar Toggleable = function () {\n\t function Toggleable(ContainerId) {\n\t _classCallCheck(this, Toggleable);\n\t\n\t var doc = global.document;\n\t\n\t this.container = ContainerId instanceof HTMLElement ? ContainerId : doc.getElementById(ContainerId);\n\t\n\t this.loading = false;\n\t\n\t if (!this.container) {\n\t throw new Error('Toggleable container with id ' + ContainerId + ' not found');\n\t }\n\t }\n\t\n\t /**\n\t * Listener\n\t * @param {Event} e\n\t * @private\n\t */\n\t\n\t\n\t _createClass(Toggleable, [{\n\t key: '_listener',\n\t value: function _listener(e) {\n\t var target = e.target;\n\t var parent = target.parentNode;\n\t var doc = global.document;\n\t\n\t // support target child element to clicked\n\t if (!target.hasAttribute(ATTR_NAME)) {\n\t if (parent && parent.hasAttribute(ATTR_NAME)) {\n\t target = parent;\n\t } else {\n\t return;\n\t }\n\t }\n\t\n\t if (!target.hasAttribute(ATTR_NAME)) {\n\t return;\n\t }\n\t\n\t var refId = target.getAttribute(ATTR_NAME);\n\t var ref = doc.getElementById(refId);\n\t\n\t e.preventDefault();\n\t\n\t if (this.loading) {\n\t return;\n\t }\n\t\n\t this.toggleTarget(ref, target);\n\t }\n\t\n\t /**\n\t * Registers Events for this instance\n\t * @returns {Toggleable}\n\t */\n\t\n\t }, {\n\t key: 'registerEvents',\n\t value: function registerEvents() {\n\t this.container.addEventListener(_Settings2.default.getTabEvent(), this._listener.bind(this));\n\t return this;\n\t }\n\t\n\t /**\n\t * Toggles given `ref`\n\t * @param {HTMLElement|Node} ref\n\t * @param {HTMLElement|Node} [selfTarget] optional target node\n\t */\n\t\n\t }, {\n\t key: 'toggleTarget',\n\t value: function toggleTarget(ref, selfTarget) {\n\t var _this = this;\n\t\n\t var target = selfTarget;\n\t if (!target && !ref) {\n\t return;\n\t }\n\t if (!target) {\n\t target = document.querySelector('[' + ATTR_NAME + '=\"' + ref.id + '\"]');\n\t }\n\t\n\t var maybeToggleNode = undefined;\n\t var future = undefined;\n\t var elClassList = target.classList;\n\t var parentClassList = undefined;\n\t var parent = target.parentNode;\n\t var doc = global.document;\n\t\n\t future = new Promise(function (resolve, failure) {\n\t if (ref) {\n\t resolve(ref);\n\t } else {\n\t var widget = _Widget2.default.findWidget(target);\n\t var async = widget ? widget.getAsync() : null;\n\t if (_Widget2.default.isWidget(widget) && async) {\n\t future = async.then(function (r) {\n\t if (r instanceof HTMLElement) {\n\t var id = _Util2.default.guid();\n\t r.id = id;\n\t target.setAttribute(ATTR_NAME, id);\n\t resolve(r);\n\t } else {\n\t throw new Error('Dynamically creating toggle-content is not supported right now.\\n Return an HTMLElement instance');\n\t }\n\t });\n\t } else {\n\t failure('Target not given');\n\t }\n\t }\n\t });\n\t\n\t if (parent) {\n\t maybeToggleNode = _Util2.default.parentsUntil(target, function (node) {\n\t return node && node.hasAttribute && node.hasAttribute(ATTR_TOGGLE_LIST);\n\t });\n\t\n\t parentClassList = parent.classList;\n\t // Abort if element is already active and if is part of a toggle list\n\t if (maybeToggleNode) {\n\t if (!parentClassList.contains(ACTIVE_CLASS)) {\n\t parentClassList.toggle(ACTIVE_CLASS);\n\t parentClassList.add(LOADING_CLASS);\n\t } else {\n\t return;\n\t }\n\t }\n\t\n\t if (maybeToggleNode) {\n\t for (var i = 0; i < maybeToggleNode.children.length; i++) {\n\t var n = maybeToggleNode.children[i];\n\t var targetRef = n.children[0];\n\t if (n !== parent) {\n\t n.classList.remove(ACTIVE_CLASS);\n\t if (targetRef) {\n\t var attr = targetRef.getAttribute(ATTR_NAME);\n\t var el = attr ? doc.getElementById(attr) : null;\n\t if (el) {\n\t _Event2.default.dispatchAndFire(el, EVENT_TAB_CLOSED);\n\t el.classList.remove(ACTIVE_CLASS);\n\t targetRef.classList.remove(ACTIVE_CLASS);\n\t }\n\t }\n\t }\n\t }\n\t }\n\t }\n\t if (elClassList) {\n\t elClassList.toggle(ACTIVE_CLASS);\n\t elClassList.add(LOADING_CLASS);\n\t }\n\t this.loading = true;\n\t future.then(function (r) {\n\t _Event2.default.dispatchAndFire(r, EVENT_TAB_OPENED);\n\t Toggleable._handleLoaded(target);\n\t r.classList.toggle(ACTIVE_CLASS);\n\t _this.loading = false;\n\t }).catch(function () {\n\t _this.loading = false;\n\t Toggleable._handleLoaded(target);\n\t });\n\t }\n\t\n\t /**\n\t * @param el\n\t * @private\n\t */\n\t\n\t }], [{\n\t key: '_handleLoaded',\n\t value: function _handleLoaded(el) {\n\t var parentClassList = el.parentNode.classList;\n\t el.classList.remove(LOADING_CLASS);\n\t if (parentClassList) {\n\t parentClassList.remove(LOADING_CLASS);\n\t }\n\t }\n\t }]);\n\t\n\t return Toggleable;\n\t}();\n\t\n\texports.default = Toggleable;\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 109 */\n/***/ function(module, exports) {\n\n\t\"use strict\";\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\t\n\texports.default = function (fn, ms) {\n\t return function () {\n\t clearTimeout(fn.timeout);\n\t fn.timeout = setTimeout(fn, ms);\n\t };\n\t};\n\n/***/ },\n/* 110 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t value: true\n\t});\n\texports.LightBox = exports.Dropdown = exports.OffCanvas = exports.Toggleable = exports.Util = exports.Settings = exports.Widget = exports.Modal = exports.Tooltip = exports.Form = undefined;\n\t\n\tvar _Form = __webpack_require__(105);\n\t\n\tvar _Form2 = _interopRequireDefault(_Form);\n\t\n\tvar _Tooltip = __webpack_require__(102);\n\t\n\tvar _Tooltip2 = _interopRequireDefault(_Tooltip);\n\t\n\tvar _Modal = __webpack_require__(101);\n\t\n\tvar _Modal2 = _interopRequireDefault(_Modal);\n\t\n\tvar _Widget = __webpack_require__(36);\n\t\n\tvar _Widget2 = _interopRequireDefault(_Widget);\n\t\n\tvar _Settings = __webpack_require__(11);\n\t\n\tvar _Settings2 = _interopRequireDefault(_Settings);\n\t\n\tvar _Toggleable = __webpack_require__(108);\n\t\n\tvar _Toggleable2 = _interopRequireDefault(_Toggleable);\n\t\n\tvar _OffCanvas = __webpack_require__(107);\n\t\n\tvar _OffCanvas2 = _interopRequireDefault(_OffCanvas);\n\t\n\tvar _Dropdown = __webpack_require__(104);\n\t\n\tvar _Dropdown2 = _interopRequireDefault(_Dropdown);\n\t\n\tvar _LightBox = __webpack_require__(106);\n\t\n\tvar _LightBox2 = _interopRequireDefault(_LightBox);\n\t\n\tvar _Util = __webpack_require__(22);\n\t\n\tvar _Util2 = _interopRequireDefault(_Util);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\texports.Form = _Form2.default;\n\texports.Tooltip = _Tooltip2.default;\n\texports.Modal = _Modal2.default;\n\texports.Widget = _Widget2.default;\n\texports.Settings = _Settings2.default;\n\texports.Util = _Util2.default;\n\texports.Toggleable = _Toggleable2.default;\n\texports.OffCanvas = _OffCanvas2.default;\n\texports.Dropdown = _Dropdown2.default;\n\texports.LightBox = _LightBox2.default;\n\n/***/ },\n/* 111 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = { \"default\": __webpack_require__(112), __esModule: true };\n\n/***/ },\n/* 112 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar core = __webpack_require__(2);\n\tmodule.exports = function stringify(it){ // eslint-disable-line no-unused-vars\n\t return (core.JSON && core.JSON.stringify || JSON.stringify).apply(JSON, arguments);\n\t};\n\n/***/ },\n/* 113 */,\n/* 114 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// the whatwg-fetch polyfill installs the fetch() function\n\t// on the global object (window or self)\n\t//\n\t// Return that as the export for use in Webpack, Browserify etc.\n\t__webpack_require__(115);\n\tmodule.exports = self.fetch.bind(self);\n\n\n/***/ },\n/* 115 */\n/***/ function(module, exports) {\n\n\t(function(self) {\n\t 'use strict';\n\t\n\t if (self.fetch) {\n\t return\n\t }\n\t\n\t function normalizeName(name) {\n\t if (typeof name !== 'string') {\n\t name = String(name)\n\t }\n\t if (/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(name)) {\n\t throw new TypeError('Invalid character in header field name')\n\t }\n\t return name.toLowerCase()\n\t }\n\t\n\t function normalizeValue(value) {\n\t if (typeof value !== 'string') {\n\t value = String(value)\n\t }\n\t return value\n\t }\n\t\n\t function Headers(headers) {\n\t this.map = {}\n\t\n\t if (headers instanceof Headers) {\n\t headers.forEach(function(value, name) {\n\t this.append(name, value)\n\t }, this)\n\t\n\t } else if (headers) {\n\t Object.getOwnPropertyNames(headers).forEach(function(name) {\n\t this.append(name, headers[name])\n\t }, this)\n\t }\n\t }\n\t\n\t Headers.prototype.append = function(name, value) {\n\t name = normalizeName(name)\n\t value = normalizeValue(value)\n\t var list = this.map[name]\n\t if (!list) {\n\t list = []\n\t this.map[name] = list\n\t }\n\t list.push(value)\n\t }\n\t\n\t Headers.prototype['delete'] = function(name) {\n\t delete this.map[normalizeName(name)]\n\t }\n\t\n\t Headers.prototype.get = function(name) {\n\t var values = this.map[normalizeName(name)]\n\t return values ? values[0] : null\n\t }\n\t\n\t Headers.prototype.getAll = function(name) {\n\t return this.map[normalizeName(name)] || []\n\t }\n\t\n\t Headers.prototype.has = function(name) {\n\t return this.map.hasOwnProperty(normalizeName(name))\n\t }\n\t\n\t Headers.prototype.set = function(name, value) {\n\t this.map[normalizeName(name)] = [normalizeValue(value)]\n\t }\n\t\n\t Headers.prototype.forEach = function(callback, thisArg) {\n\t Object.getOwnPropertyNames(this.map).forEach(function(name) {\n\t this.map[name].forEach(function(value) {\n\t callback.call(thisArg, value, name, this)\n\t }, this)\n\t }, this)\n\t }\n\t\n\t function consumed(body) {\n\t if (body.bodyUsed) {\n\t return Promise.reject(new TypeError('Already read'))\n\t }\n\t body.bodyUsed = true\n\t }\n\t\n\t function fileReaderReady(reader) {\n\t return new Promise(function(resolve, reject) {\n\t reader.onload = function() {\n\t resolve(reader.result)\n\t }\n\t reader.onerror = function() {\n\t reject(reader.error)\n\t }\n\t })\n\t }\n\t\n\t function readBlobAsArrayBuffer(blob) {\n\t var reader = new FileReader()\n\t reader.readAsArrayBuffer(blob)\n\t return fileReaderReady(reader)\n\t }\n\t\n\t function readBlobAsText(blob) {\n\t var reader = new FileReader()\n\t reader.readAsText(blob)\n\t return fileReaderReady(reader)\n\t }\n\t\n\t var support = {\n\t blob: 'FileReader' in self && 'Blob' in self && (function() {\n\t try {\n\t new Blob();\n\t return true\n\t } catch(e) {\n\t return false\n\t }\n\t })(),\n\t formData: 'FormData' in self,\n\t arrayBuffer: 'ArrayBuffer' in self\n\t }\n\t\n\t function Body() {\n\t this.bodyUsed = false\n\t\n\t\n\t this._initBody = function(body) {\n\t this._bodyInit = body\n\t if (typeof body === 'string') {\n\t this._bodyText = body\n\t } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n\t this._bodyBlob = body\n\t } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n\t this._bodyFormData = body\n\t } else if (!body) {\n\t this._bodyText = ''\n\t } else if (support.arrayBuffer && ArrayBuffer.prototype.isPrototypeOf(body)) {\n\t // Only support ArrayBuffers for POST method.\n\t // Receiving ArrayBuffers happens via Blobs, instead.\n\t } else {\n\t throw new Error('unsupported BodyInit type')\n\t }\n\t\n\t if (!this.headers.get('content-type')) {\n\t if (typeof body === 'string') {\n\t this.headers.set('content-type', 'text/plain;charset=UTF-8')\n\t } else if (this._bodyBlob && this._bodyBlob.type) {\n\t this.headers.set('content-type', this._bodyBlob.type)\n\t }\n\t }\n\t }\n\t\n\t if (support.blob) {\n\t this.blob = function() {\n\t var rejected = consumed(this)\n\t if (rejected) {\n\t return rejected\n\t }\n\t\n\t if (this._bodyBlob) {\n\t return Promise.resolve(this._bodyBlob)\n\t } else if (this._bodyFormData) {\n\t throw new Error('could not read FormData body as blob')\n\t } else {\n\t return Promise.resolve(new Blob([this._bodyText]))\n\t }\n\t }\n\t\n\t this.arrayBuffer = function() {\n\t return this.blob().then(readBlobAsArrayBuffer)\n\t }\n\t\n\t this.text = function() {\n\t var rejected = consumed(this)\n\t if (rejected) {\n\t return rejected\n\t }\n\t\n\t if (this._bodyBlob) {\n\t return readBlobAsText(this._bodyBlob)\n\t } else if (this._bodyFormData) {\n\t throw new Error('could not read FormData body as text')\n\t } else {\n\t return Promise.resolve(this._bodyText)\n\t }\n\t }\n\t } else {\n\t this.text = function() {\n\t var rejected = consumed(this)\n\t return rejected ? rejected : Promise.resolve(this._bodyText)\n\t }\n\t }\n\t\n\t if (support.formData) {\n\t this.formData = function() {\n\t return this.text().then(decode)\n\t }\n\t }\n\t\n\t this.json = function() {\n\t return this.text().then(JSON.parse)\n\t }\n\t\n\t return this\n\t }\n\t\n\t // HTTP methods whose capitalization should be normalized\n\t var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\t\n\t function normalizeMethod(method) {\n\t var upcased = method.toUpperCase()\n\t return (methods.indexOf(upcased) > -1) ? upcased : method\n\t }\n\t\n\t function Request(input, options) {\n\t options = options || {}\n\t var body = options.body\n\t if (Request.prototype.isPrototypeOf(input)) {\n\t if (input.bodyUsed) {\n\t throw new TypeError('Already read')\n\t }\n\t this.url = input.url\n\t this.credentials = input.credentials\n\t if (!options.headers) {\n\t this.headers = new Headers(input.headers)\n\t }\n\t this.method = input.method\n\t this.mode = input.mode\n\t if (!body) {\n\t body = input._bodyInit\n\t input.bodyUsed = true\n\t }\n\t } else {\n\t this.url = input\n\t }\n\t\n\t this.credentials = options.credentials || this.credentials || 'omit'\n\t if (options.headers || !this.headers) {\n\t this.headers = new Headers(options.headers)\n\t }\n\t this.method = normalizeMethod(options.method || this.method || 'GET')\n\t this.mode = options.mode || this.mode || null\n\t this.referrer = null\n\t\n\t if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n\t throw new TypeError('Body not allowed for GET or HEAD requests')\n\t }\n\t this._initBody(body)\n\t }\n\t\n\t Request.prototype.clone = function() {\n\t return new Request(this)\n\t }\n\t\n\t function decode(body) {\n\t var form = new FormData()\n\t body.trim().split('&').forEach(function(bytes) {\n\t if (bytes) {\n\t var split = bytes.split('=')\n\t var name = split.shift().replace(/\\+/g, ' ')\n\t var value = split.join('=').replace(/\\+/g, ' ')\n\t form.append(decodeURIComponent(name), decodeURIComponent(value))\n\t }\n\t })\n\t return form\n\t }\n\t\n\t function headers(xhr) {\n\t var head = new Headers()\n\t var pairs = xhr.getAllResponseHeaders().trim().split('\\n')\n\t pairs.forEach(function(header) {\n\t var split = header.trim().split(':')\n\t var key = split.shift().trim()\n\t var value = split.join(':').trim()\n\t head.append(key, value)\n\t })\n\t return head\n\t }\n\t\n\t Body.call(Request.prototype)\n\t\n\t function Response(bodyInit, options) {\n\t if (!options) {\n\t options = {}\n\t }\n\t\n\t this.type = 'default'\n\t this.status = options.status\n\t this.ok = this.status >= 200 && this.status < 300\n\t this.statusText = options.statusText\n\t this.headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers)\n\t this.url = options.url || ''\n\t this._initBody(bodyInit)\n\t }\n\t\n\t Body.call(Response.prototype)\n\t\n\t Response.prototype.clone = function() {\n\t return new Response(this._bodyInit, {\n\t status: this.status,\n\t statusText: this.statusText,\n\t headers: new Headers(this.headers),\n\t url: this.url\n\t })\n\t }\n\t\n\t Response.error = function() {\n\t var response = new Response(null, {status: 0, statusText: ''})\n\t response.type = 'error'\n\t return response\n\t }\n\t\n\t var redirectStatuses = [301, 302, 303, 307, 308]\n\t\n\t Response.redirect = function(url, status) {\n\t if (redirectStatuses.indexOf(status) === -1) {\n\t throw new RangeError('Invalid status code')\n\t }\n\t\n\t return new Response(null, {status: status, headers: {location: url}})\n\t }\n\t\n\t self.Headers = Headers;\n\t self.Request = Request;\n\t self.Response = Response;\n\t\n\t self.fetch = function(input, init) {\n\t return new Promise(function(resolve, reject) {\n\t var request\n\t if (Request.prototype.isPrototypeOf(input) && !init) {\n\t request = input\n\t } else {\n\t request = new Request(input, init)\n\t }\n\t\n\t var xhr = new XMLHttpRequest()\n\t\n\t function responseURL() {\n\t if ('responseURL' in xhr) {\n\t return xhr.responseURL\n\t }\n\t\n\t // Avoid security warnings on getResponseHeader when not allowed by CORS\n\t if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {\n\t return xhr.getResponseHeader('X-Request-URL')\n\t }\n\t\n\t return;\n\t }\n\t\n\t xhr.onload = function() {\n\t var status = (xhr.status === 1223) ? 204 : xhr.status\n\t if (status < 100 || status > 599) {\n\t reject(new TypeError('Network request failed'))\n\t return\n\t }\n\t var options = {\n\t status: status,\n\t statusText: xhr.statusText,\n\t headers: headers(xhr),\n\t url: responseURL()\n\t }\n\t var body = 'response' in xhr ? xhr.response : xhr.responseText;\n\t resolve(new Response(body, options))\n\t }\n\t\n\t xhr.onerror = function() {\n\t reject(new TypeError('Network request failed'))\n\t }\n\t\n\t xhr.open(request.method, request.url, true)\n\t\n\t if (request.credentials === 'include') {\n\t xhr.withCredentials = true\n\t }\n\t\n\t if ('responseType' in xhr && support.blob) {\n\t xhr.responseType = 'blob'\n\t }\n\t\n\t request.headers.forEach(function(value, name) {\n\t xhr.setRequestHeader(name, value)\n\t })\n\t\n\t xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n\t })\n\t }\n\t self.fetch.polyfill = true\n\t})(typeof self !== 'undefined' ? self : this);\n\n\n/***/ }\n/******/ ])\n});\n;\n\n\n/** WEBPACK FOOTER **\n ** js/site.min.js\n **/"," \t// The module cache\n \tvar installedModules = {};\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\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\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.loaded = 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// __webpack_public_path__\n \t__webpack_require__.p = \"../\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 02030115b79806ce8aa2\n **/","var $Object = Object;\nmodule.exports = {\n create: $Object.create,\n getProto: $Object.getPrototypeOf,\n isEnum: {}.propertyIsEnumerable,\n getDesc: $Object.getOwnPropertyDescriptor,\n setDesc: $Object.defineProperty,\n setDescs: $Object.defineProperties,\n getKeys: $Object.keys,\n getNames: $Object.getOwnPropertyNames,\n getSymbols: $Object.getOwnPropertySymbols,\n each: [].forEach\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.js\n ** module id = 1\n ** module chunks = 0 1\n **/","var core = module.exports = {version: '1.2.6'};\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.core.js\n ** module id = 2\n ** module chunks = 0 1\n **/","var store = require('./$.shared')('wks')\n , uid = require('./$.uid')\n , Symbol = require('./$.global').Symbol;\nmodule.exports = function(name){\n return store[name] || (store[name] =\n Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.wks.js\n ** module id = 3\n ** module chunks = 0 1\n **/","var global = require('./$.global')\n , core = require('./$.core')\n , ctx = require('./$.ctx')\n , PROTOTYPE = 'prototype';\n\nvar $export = function(type, name, source){\n var IS_FORCED = type & $export.F\n , IS_GLOBAL = type & $export.G\n , IS_STATIC = type & $export.S\n , IS_PROTO = type & $export.P\n , IS_BIND = type & $export.B\n , IS_WRAP = type & $export.W\n , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n , key, own, out;\n if(IS_GLOBAL)source = name;\n for(key in source){\n // contains in native\n own = !IS_FORCED && target && key in target;\n if(own && key in exports)continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function(C){\n var F = function(param){\n return this instanceof C ? new C(param) : C(param);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\nmodule.exports = $export;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.export.js\n ** module id = 4\n ** module chunks = 0 1\n **/","module.exports = {};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iterators.js\n ** module id = 5\n ** module chunks = 0 1\n **/","var isObject = require('./$.is-object');\nmodule.exports = function(it){\n if(!isObject(it))throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.an-object.js\n ** module id = 6\n ** module chunks = 0 1\n **/","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./$.fails')(function(){\n return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.descriptors.js\n ** module id = 7\n ** module chunks = 0 1\n **/","module.exports = function(exec){\n try {\n return !!exec();\n } catch(e){\n return true;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.fails.js\n ** module id = 8\n ** module chunks = 0 1\n **/","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\nif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.global.js\n ** module id = 9\n ** module chunks = 0 1\n **/","var $ = require('./$')\n , createDesc = require('./$.property-desc');\nmodule.exports = require('./$.descriptors') ? function(object, key, value){\n return $.setDesc(object, key, createDesc(1, value));\n} : function(object, key, value){\n object[key] = value;\n return object;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.hide.js\n ** module id = 10\n ** module chunks = 0 1\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\nimport Util from './Util';\n\n// we attach global settings to global once because settings might be shared a lot of times trough the application\n// Maybe find a better way to handle that scenario\nif (!global.FLEXCSS_GLOBAL_SETTINGS) {\n global.FLEXCSS_GLOBAL_SETTINGS = {\n // defined breakpoint for small devices < n\n smallBreakpoint: 768,\n // nodes that should be updated when no scrollbar is expected\n scrollbarUpdateNodes: global.document.body !== null ? [global.document.body] : [],\n // additional Delay until darkener is fully hidden\n darkenerFadeDelay: 100,\n // class that is added if canvas has been toggled\n canvasToggledClass: 'toggled-canvas'\n };\n\n global.FLEXCSS_CONST_IS_IOS = null;\n\n global.FLEXCSS_CONST_IS_TOUCH = null;\n\n global.FLEXCSS_CONST_IS_IE = null;\n\n global.FLEXCSS_CONST_TAB_EVENT = 'click';\n\n global.FLEXCSS_IS_SMALL_SCREEN = false;\n\n const init = () => {\n // Measure scrollbar width\n global.FLEXCSS_CONST_SCROLLBAR_WIDTH = Util.getScrollBarWidth();\n // detect right transition end event\n global.FLEXCSS_CONST_TRANSITION_EVENT = Util.whichTransitionEndEvent();\n };\n\n if (global.document.readyState !== 'loading') {\n init();\n } else {\n // it's possible that global.document.body is not available if the document is not\n // loaded completely\n document.addEventListener('DOMContentLoaded', () => {\n init();\n });\n }\n}\n\n/**\n * Utility class that setups global settings\n */\nclass Settings {\n\n /**\n * Setup global settings, overwrite default values\n * @param {Object} settings\n */\n static setup(settings) {\n Object.assign(global.FLEXCSS_GLOBAL_SETTINGS, settings);\n }\n\n /**\n * Access to global settings\n * @returns {Object}\n */\n static get() {\n return global.FLEXCSS_GLOBAL_SETTINGS;\n }\n\n /**\n * Detects a IOS Device, caches subsequent calls\n * @returns {boolean}\n */\n static isIosDevice() {\n if (!global.FLEXCSS_CONST_IS_IOS) {\n global.FLEXCSS_CONST_IS_IOS = global.navigator.userAgent.match(/(iPad|iPhone|iPod)/i);\n }\n\n return global.FLEXCSS_CONST_IS_IOS;\n }\n\n /**\n * @returns {boolean}\n */\n static isSmallScreen() {\n return window.innerWidth < Settings.get().smallBreakpoint;\n }\n\n /**\n * Detects a touch device, caches subsequent calls\n * @returns {boolean}\n */\n static isTouchDevice() {\n if (!global.FLEXCSS_CONST_IS_TOUCH) {\n global.FLEXCSS_CONST_IS_TOUCH = 'ontouchstart' in window || !!(global.navigator.msMaxTouchPoints);\n }\n return global.FLEXCSS_CONST_IS_TOUCH;\n }\n\n /**\n * Checks if current browser is Internet Explorer\n * @returns {boolean|*}\n */\n static isIE() {\n if (!global.FLEXCSS_CONST_IS_IE) {\n global.FLEXCSS_CONST_IS_IE = \"ActiveXObject\" in window;\n }\n return global.FLEXCSS_CONST_IS_IE;\n }\n\n /**\n * @returns {String}\n */\n static getTransitionEvent() {\n return global.FLEXCSS_CONST_TRANSITION_EVENT;\n }\n\n /**\n * @returns {int}\n */\n static getScrollbarWidth() {\n return global.FLEXCSS_CONST_SCROLLBAR_WIDTH;\n }\n\n /**\n * @returns {String}\n */\n static getTabEvent() {\n return global.FLEXCSS_CONST_TAB_EVENT;\n }\n}\n\nexport default Settings;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/util/Settings.js\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/classCallCheck.js\n ** module id = 12\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\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 (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/createClass.js\n ** module id = 13\n ** module chunks = 0 1\n **/","// optional / simple context binding\nvar aFunction = require('./$.a-function');\nmodule.exports = function(fn, that, length){\n aFunction(fn);\n if(that === undefined)return fn;\n switch(length){\n case 1: return function(a){\n return fn.call(that, a);\n };\n case 2: return function(a, b){\n return fn.call(that, a, b);\n };\n case 3: return function(a, b, c){\n return fn.call(that, a, b, c);\n };\n }\n return function(/* ...args */){\n return fn.apply(that, arguments);\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.ctx.js\n ** module id = 14\n ** module chunks = 0 1\n **/","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function(it){\n if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.defined.js\n ** module id = 15\n ** module chunks = 0 1\n **/","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function(it, key){\n return hasOwnProperty.call(it, key);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.has.js\n ** module id = 16\n ** module chunks = 0 1\n **/","module.exports = function(it){\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-object.js\n ** module id = 17\n ** module chunks = 0 1\n **/","var def = require('./$').setDesc\n , has = require('./$.has')\n , TAG = require('./$.wks')('toStringTag');\n\nmodule.exports = function(it, tag, stat){\n if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-to-string-tag.js\n ** module id = 18\n ** module chunks = 0 1\n **/","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./$.iobject')\n , defined = require('./$.defined');\nmodule.exports = function(it){\n return IObject(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-iobject.js\n ** module id = 19\n ** module chunks = 0 1\n **/","'use strict';\nvar $at = require('./$.string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./$.iter-define')(String, 'String', function(iterated){\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , index = this._i\n , point;\n if(index >= O.length)return {value: undefined, done: true};\n point = $at(O, index);\n this._i += point.length;\n return {value: point, done: false};\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.string.iterator.js\n ** module id = 20\n ** module chunks = 0 1\n **/","require('./es6.array.iterator');\nvar Iterators = require('./$.iterators');\nIterators.NodeList = Iterators.HTMLCollection = Iterators.Array;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/web.dom.iterable.js\n ** module id = 21\n ** module chunks = 0 1\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nconst PFX = [\"webkit\", \"moz\", \"MS\", \"o\", \"\"];\n\nconst COL_LEFT_CLASS = 'is-collision-left';\n\nconst COL_RIGHT_CLASS = 'is-collision-right';\n\nconst COL_BOTTOM_CLASS = 'is-collision-bottom';\n\n/**\n * Provides shared DOM-Utility functions\n */\nclass Util {\n\n /**\n * Will register the right animation event based on browser\n * @param element\n * @param type\n * @param callback\n */\n static prefixedAnimateEvent(element, type, callback) {\n const thisFunction = function thisFunction(e) {\n callback.apply(element, [e, thisFunction]);\n };\n\n for (let p = 0; p < PFX.length; p++) {\n let thisType = type;\n if (!PFX[p]) {\n thisType = type.toLowerCase();\n }\n const name = PFX[p] + thisType;\n element.addEventListener(name, thisFunction, true);\n }\n }\n\n /**\n * Get correct transitionend event\n * @returns {String}\n * @private\n */\n static whichTransitionEndEvent() {\n let t;\n const el = document.createElement('fake');\n\n const transitions = {\n transition: 'transitionend',\n OTransition: 'oTransitionEnd',\n MozTransition: 'transitionend',\n WebkitTransition: 'webkitTransitionEnd'\n };\n\n for (t in transitions) {\n if (el.style[t] !== undefined) {\n return transitions[t];\n }\n }\n }\n\n /**\n * Check if target is part of parent node\n * @param target\n * @param parent\n * @returns {boolean}\n */\n static isPartOfNode(target, parent) {\n if (!target || !parent) {\n return false;\n }\n let now = target;\n while (now !== parent && now !== null) {\n if (now === parent) {\n break;\n }\n now = now.parentNode;\n }\n return now !== null;\n }\n\n /**\n * Finds the closest element including itself matching a callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static closestCallback(el, callback) {\n let element = el;\n while (element !== null) {\n if (callback(element)) {\n return element;\n }\n element = element.parentNode;\n }\n return false;\n }\n\n /**\n * Walks the tree until func returns true for given argument\n * @param target\n * @param func\n * @returns {boolean|HTMLElement}\n */\n static parentsUntil(target, func) {\n if (!target) {\n return false;\n }\n let now = target;\n while (!func(now) && now !== null) {\n now = now.parentNode;\n }\n\n return now;\n }\n\n /**\n * Generates a unique id\n * @return {String}\n */\n static guid() {\n function s4() {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n }\n\n return `${s4() + s4()}-${s4()}-${s4()}-${s4()}-${s4() + s4() + s4()}`;\n }\n\n /**\n * Detects scrollbar width\n * @see http://stackoverflow.com/questions/986937/how-can-i-get-the-browsers-scrollbar-sizes\n * @returns {number}\n */\n static getScrollBarWidth() {\n const doc = global.document;\n const inner = doc.createElement('p');\n\n inner.style.width = \"100%\";\n inner.style.height = \"200px\";\n\n const outer = doc.createElement('div');\n outer.style.position = \"absolute\";\n outer.style.top = \"0px\";\n outer.style.left = \"0px\";\n outer.style.visibility = \"hidden\";\n outer.style.width = \"200px\";\n outer.style.height = \"150px\";\n outer.style.overflow = \"hidden\";\n outer.appendChild(inner);\n\n doc.body.appendChild(outer);\n const w1 = inner.offsetWidth;\n outer.style.overflow = 'scroll';\n let w2 = inner.offsetWidth;\n if (w1 === w2) {\n w2 = outer.clientWidth;\n }\n doc.body.removeChild(outer);\n\n return (w1 - w2);\n }\n\n\n /**\n * Run an event once\n * @param {String} ev\n * @param {HTMLElement|HTMLDocument} target\n * @param {Function} func\n * @param {boolean} [capture]\n * @return Function created listener\n */\n static addEventOnce(ev, target, func, capture) {\n const thisFunction = function thisFunction(event) {\n func(event, func);\n target.removeEventListener(ev, thisFunction, capture);\n };\n target.addEventListener(ev, thisFunction, capture);\n return thisFunction;\n }\n\n /**\n * Checks if an element is visible\n * @param {HTMLElement} element\n * @returns bool\n */\n static isVisible(element) {\n return element.offsetWidth > 0 && element.offsetHeight > 0;\n }\n\n /**\n * Creates a camelCaseRepresentation of a dashed string\n * @param {String} str\n * @returns String\n */\n static dashToCamelCase(str) {\n return str.replace(/-([a-z])/g, (g) => {\n return g[1].toUpperCase();\n });\n }\n\n /**\n * Creates a copy of `input`\n * @param {*} input\n * @return *\n */\n static copy(input) {\n return JSON.parse(JSON.stringify(input));\n }\n\n /**\n * Reads options from element (data attributes) and applies to base\n * @param {HTMLElement} element\n * @param {Object} base\n * @return {Object}\n */\n static applyOptionsFromElement(element, base) {\n if (!element) {\n return base;\n }\n const attrs = element.attributes;\n for (let i = 0; i < attrs.length; i++) {\n const attr = attrs[i];\n if (attr) {\n const s = Util.dashToCamelCase(attr.nodeName.replace('data-', ''));\n const val = attr.nodeValue;\n if (base.hasOwnProperty(s)) {\n // skip functions\n if (typeof base[s] === 'function') {\n continue;\n }\n if (typeof base[s] === 'boolean') {\n base[s] = parseInt(val || 1, 10) === 1;\n } else {\n base[s] = val;\n }\n }\n }\n }\n return base;\n }\n\n /**\n * Will position an element directly at given target\n * Is aware of a given collision container to detect edges\n * Will put elementToPosition either to left, center or right edge (prefer right)\n * and either to bottom or top (prefers bottom)\n *\n * You may overwrite preferred positioned with `centerHorizontal` and `positionTop`\n *\n * @param {HTMLElement|ClientRect} target the target container to align to\n * @param {HTMLElement} elementToPosition the element to position\n * @param {HTMLElement} collisionContainer the outer container to prevent collisions\n * @param {bool} [centerHorizontal] set true to center element, otherwise it's put on the right border by default\n * @param {bool} [positionTop] flip top, by default element is positioned to the bottom.\n * @returns {HTMLElement}\n */\n static setupPositionNearby(target, elementToPosition, collisionContainer, centerHorizontal, positionTop) {\n // determine relative offsets\n let amountTop = 0;\n let amountLeft = 0;\n Util.parentsUntil(target.parentNode, (el) => {\n if (!(el instanceof HTMLElement)) {\n return false;\n }\n const style = window.getComputedStyle(el);\n if (Util.isPartOfNode(elementToPosition, el)) {\n if (style && style.position === 'relative') {\n amountTop += el.offsetTop || 0;\n amountLeft += el.offsetLeft || 0;\n }\n return false;\n }\n return true;\n });\n\n const targetPosition = target instanceof HTMLElement ? target.getBoundingClientRect() : target;\n const elementRect = elementToPosition.getBoundingClientRect();\n const colRect = collisionContainer.getBoundingClientRect();\n const targetTop = targetPosition.top - amountTop;\n const targetRight = targetPosition.right;\n const isCollisionTop = (targetTop - elementRect.height) <= 0;\n const isCollisionBottom =\n window.innerHeight < (targetTop + amountTop + targetPosition.height + elementRect.height);\n const isCollisionLeft = targetRight < elementRect.width;\n const targetLeft = targetPosition.left;\n const isCollisionRight = (targetLeft + elementRect.width) > colRect.width;\n const classList = elementToPosition.classList;\n\n classList.remove(COL_RIGHT_CLASS);\n classList.remove(COL_LEFT_CLASS);\n classList.remove(COL_BOTTOM_CLASS);\n\n let calcTop;\n let calcLeft;\n if (isCollisionLeft && !isCollisionRight) {\n // put element to left if collision with left\n calcLeft = `${(targetPosition.left - colRect.left - amountLeft)}px`;\n classList.add(COL_LEFT_CLASS);\n } else {\n // maybe center if no collision with either side\n const rightPosition = `${(targetRight - elementRect.width - colRect.left - amountLeft)}px`;\n const leftCentered = ((targetLeft + targetPosition.width / 2) -\n (elementRect.width / 2) || 0) - colRect.left;\n const collisionCentered = (leftCentered + elementRect.width) > colRect.width;\n if (centerHorizontal && !collisionCentered) {\n calcLeft = `${leftCentered}px`;\n } else {\n classList.add(COL_RIGHT_CLASS);\n calcLeft = rightPosition;\n }\n }\n\n if (isCollisionBottom || (positionTop && !isCollisionTop)) {\n // Put Element on top if collision\n calcTop = `${(targetTop - elementRect.height) - colRect.top}px`;\n classList.add(COL_BOTTOM_CLASS);\n } else {\n calcTop = `${(targetTop + targetPosition.height) - colRect.top}px`;\n }\n\n elementToPosition.style.cssText = `top:${calcTop};left:${calcLeft};`;\n\n return elementToPosition;\n }\n\n /**\n * Brings a given element into viewport\n * @param {HTMLElement} el\n * @param {int|function}[optionalOffset]\n */\n static scrollToElement(el, optionalOffset) {\n el.scrollIntoView();\n let thisOffset = optionalOffset;\n // optionally use a additional scrollDif\n if (thisOffset) {\n if (typeof thisOffset === 'function') {\n thisOffset = optionalOffset();\n }\n if (thisOffset > 0) {\n const scrolledY = window.pageYOffset;\n if (scrolledY) {\n window.scroll(0, scrolledY - thisOffset);\n }\n }\n }\n }\n}\n\nexport default Util;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/util/Util.js\n **/","/* global Node */\n\nimport RenderResult from './RenderResult';\nimport RenderingEvents from './RenderingEvents';\nimport Util, { ATTR_DATA_ORIGINAL_INDEX, DATA_IS_SELECTION } from './util/Util';\n\n/**\n * @type {string}\n */\nconst TAG_NAME = 'x-marker';\n/**\n * @type {string}\n */\nexport const ATTR_DATA_ORIGINAL_OFFSET_START = 'data-original-offset-start';\n/**\n * @type {string}\n */\nconst DATA_ORIGINAL_TEXT_NODE_INDEX = 'original-text-node-index';\n/**\n * @type {string}\n */\nconst ATTR_DATA_START_END = 'data-is-start-end';\n/**\n * @type {string}\n */\nconst ATTR_DATA_IS_HIGHLIGHT_NODE = 'data-is-highlight-node';\n/**\n * @type {string}\n */\nconst ATTR_DATA_ID = 'data-selection-id';\n\n/**\n * @see https://developer.mozilla.org/de/docs/Web/API/Node/compareDocumentPosition\n * @type {number}\n */\nconst DOCUMENT_POSITION_CONTAINED_BY = 16;\n\n\n/**\n * @type {string}\n */\nexport const EVENT_WRAPPED_NODE = 'wrapped-node';\n\n/**\n * Manages a single Render\n */\nclass Rendering extends RenderingEvents {\n\n /**\n * @param {Document} document\n * @param {object} options\n * @param {Node} context\n */\n constructor(document, options, context) {\n super(options, document);\n\n /**\n * ID of rendering, will be set on each element that is part of it\n * @type {String}\n */\n this.id = Util.guid();\n\n /**\n * StartContainer\n * @type {Node}\n */\n this.startContainer = null;\n\n /**\n * EndContainer\n * @type {Node}\n */\n this.endContainer = null;\n\n /**\n * @type {Node}\n */\n this.context = context || this.document;\n\n /**\n * Flag if this instance has been rendered\n * @type {RenderResult}\n * @private\n */\n this._renderResult = null;\n }\n\n /**\n * @returns {string} id of this rendering\n */\n getId() {\n return this.id;\n }\n\n /**\n * @param {string} id\n * @returns {Rendering}\n */\n setId(id) {\n this.id = id;\n\n if (this._renderResult) {\n this.wrapperNodes.forEach((node) => node.setAttribute(ATTR_DATA_ID, this.id));\n }\n\n return this;\n }\n\n /**\n * Creates a Template used as a wrapper and an indication that this is a highlight node\n * @param {Boolean} [omitHighlight]\n * @returns {Node}\n * @private\n */\n _createWrapTemplate(omitHighlight) {\n const el = this.document.createElement(TAG_NAME);\n const vTrue = \"true\";\n\n if (!omitHighlight) {\n el.className = this.options.className.join(' ');\n // save this marker instance to given node\n Rendering.setMarklibInstance(el, this);\n // keep track of highlight nodes\n this.wrapperNodes.push(el);\n el.setAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE, vTrue);\n el.setAttribute(ATTR_DATA_ID, this.getId());\n }\n el.setAttribute(DATA_IS_SELECTION, vTrue);\n\n return el;\n }\n\n /**\n * Creates a Template to use as start and end marks\n * @param {String} text\n * @returns {Node}\n * @private\n */\n _createStartEndWrapTemplate(text) {\n const el = this._createWrapTemplate();\n el.setAttribute(ATTR_DATA_START_END, 'true');\n el.textContent = text;\n return el;\n }\n\n\n /**\n * Creates Start or End Container Element\n * @param initialNode\n * @param text\n * @param offset\n * @param index\n * @returns {Node}\n */\n _createStartOrEndContainer(initialNode, text, offset, index) {\n const wrapper = this._createStartEndWrapTemplate(text);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(initialNode, index));\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n\n return wrapper;\n }\n\n /**\n * Wraps given element\n * @param {Node|HTMLElement} el\n * @param [optionalLength]\n * @param [optionalIndex]\n * @param [optionalIsSameNode]\n * @param {Boolean} [omitHighlight] set to true to prevent node to be a highlight node\n * @returns {Node}\n * @private\n */\n _createWrap(el, optionalLength, optionalIndex, optionalIsSameNode, omitHighlight) {\n const originalIndex = optionalIndex >= 0 ? optionalIndex : Util.calcIndex(el);\n const wrapper = this._createWrapTemplate(omitHighlight);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(el, originalIndex));\n const offsetLength = optionalLength >= 0 ? optionalLength : Util.getOffsetParentIfHas(el);\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offsetLength);\n\n // Save a reference to original text node in wrapper\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, originalIndex);\n\n if (optionalIsSameNode) {\n wrapper.setAttribute(ATTR_DATA_START_END, ATTR_DATA_START_END);\n }\n const wrap = Util.wrap(el, wrapper);\n\n this.emit(EVENT_WRAPPED_NODE, el, wrap);\n\n return wrap;\n }\n\n /**\n * Create split container element\n * @param originalElement {Node} original text node element that is created a wrapper for\n * @param index\n * @param offset\n * @returns {Node}\n */\n _createSplitContainer(originalElement, index, offset) {\n const wrapper = this.document.createElement(TAG_NAME);\n wrapper.setAttribute(DATA_IS_SELECTION, 'true');\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_INDEX, Util.getIndexParentIfHas(originalElement, index));\n wrapper.setAttribute(ATTR_DATA_ORIGINAL_OFFSET_START, offset);\n wrapper.setAttribute(DATA_ORIGINAL_TEXT_NODE_INDEX, index);\n return wrapper;\n }\n\n /**\n * Walks the tree\n * @param start\n * @param endContainer\n * @param nextParent\n */\n walk(start, endContainer, nextParent) {\n let nextParentNode = start;\n while (nextParentNode && nextParentNode !== nextParent.parentNode) {\n const currentParentNode = nextParentNode;\n nextParentNode = nextParentNode.parentNode;\n if (this.wrapSiblings(currentParentNode.nextSibling, endContainer)) {\n break;\n }\n }\n }\n\n\n /**\n * Will Wrap all textNode siblings of a container (start) inside a defined Element (like a span)\n * If an Element node is found, it will wrap all children of this node inside a element as well.\n * It will stop if endContainer is found as a node\n *\n * @param {Node} start\n * @param {Node} endContainer\n * @returns {boolean} (true if endContainer was found)\n */\n wrapSiblings(start, endContainer) {\n let next = start;\n let found = false;\n\n // Capsule some logic\n const wrap = (n) => {\n const instance = Rendering.getMarklibInstance(n.parentNode);\n if (n.parentNode.hasAttribute(ATTR_DATA_START_END) &&\n n.parentNode.hasAttribute(ATTR_DATA_IS_HIGHLIGHT_NODE) &&\n instance === this) {\n this._createWrap(n, undefined, undefined, undefined, true);\n } else {\n this._createWrap(n);\n }\n };\n\n // helper functions\n\n const wrapIf = (n) => {\n if (!Util.nodeIsEmpty(n)) {\n wrap(n);\n }\n };\n\n const walkIfContained = (e) => {\n if (e === endContainer) {\n return false;\n }\n if (Node.TEXT_NODE === e.nodeType) {\n wrapIf(e);\n }\n return true;\n };\n\n const walkIfNotContained = (el) => {\n wrapIf(el);\n };\n\n while (next !== null && next !== endContainer) {\n const currentNext = next;\n next = next.nextSibling;\n // Found a text node, directly wrap inside a span\n if (Node.TEXT_NODE === currentNext.nodeType) {\n wrapIf(currentNext);\n } else {\n if ((currentNext.compareDocumentPosition(endContainer) & DOCUMENT_POSITION_CONTAINED_BY)) {\n Util.walkDom(currentNext, walkIfContained);\n found = true;\n } else {\n Util.walkTextNodes(currentNext, walkIfNotContained);\n }\n if (found) {\n return true;\n }\n }\n }\n return found;\n }\n\n /**\n * Marks text of the same node\n * @param {Node} textNode\n * @param {int} startIndex\n * @param {int} endIndex\n * @private\n */\n _markTextSameNode(textNode, startIndex, endIndex) {\n const initialText = textNode.nodeValue;\n const initialIndex = Util.calcIndex(textNode);\n\n if (!initialText) {\n return false;\n }\n // If there is an unmarked part in the beginning of the text node,\n // cut off that part and put it into it's own textnode.\n if (startIndex > 0) {\n const textBefore = initialText.slice(0, startIndex);\n textNode.parentNode.insertBefore(this.document.createTextNode(textBefore), textNode);\n // wrap cutted text node:\n Util.wrap(textNode.previousSibling, this._createSplitContainer(textNode,\n initialIndex, Util.getOffsetParentIfHas(textNode)));\n }\n // If there is an unmarked part at the end of the text node,\n // cut off that part and put it into it's own textnode.\n if (endIndex < initialText.length) {\n const textAfter = initialText.slice(endIndex, initialText.length);\n textNode.parentNode.insertBefore(this.document.createTextNode(textAfter), textNode.nextSibling);\n Util.wrap(textNode.nextSibling, this._createSplitContainer(textNode,\n initialIndex, Util.getOffsetParentIfHas(textNode) + endIndex));\n }\n\n // Cutoff the unmarked parts and wrap the textnode into a span.\n textNode.nodeValue = initialText.slice(startIndex, endIndex);\n this.startContainer = this._createWrap(textNode,\n Util.getOffsetParentIfHas(textNode) + startIndex, initialIndex, true).parentNode;\n this.endContainer = this.startContainer;\n return this.startContainer;\n }\n\n\n /**\n * Marks text of end and start containers if start and end nodes are different\n * Important: There might be no end container!\n *\n * @param {Node} startContainer\n * @param {Node} endContainer\n * @param {int} startOffset\n * @param {int} endOffset\n * @returns {{startT: (Node), endT: (Node)}}\n * @private\n */\n _markTextDifferentNode(startContainer, endContainer, startOffset, endOffset) {\n // Get current for both start and end:\n const startContainerIndex = Util.calcIndex(startContainer);\n const endContainerIndex = Util.calcIndex(endContainer);\n\n // Split text\n const fullTextStartValue = startContainer.nodeValue;\n // init with startContainer because we may have not a text node here\n let startT = startContainer;\n\n if (undefined !== fullTextStartValue) {\n const partTextStartValue = fullTextStartValue.slice(startOffset, fullTextStartValue.length);\n // Set new text to start node\n startContainer.nodeValue = fullTextStartValue.slice(0, startOffset);\n\n const offsetStart = Util.getOffsetParentIfHas(startContainer);\n // Create a new node for splitted text, offset is the length of new startContainer.nodeValue:\n startT = this._createStartOrEndContainer(startContainer, partTextStartValue,\n offsetStart === startOffset ? offsetStart : offsetStart + startOffset, startContainerIndex);\n // Append this node after startContainer\n startContainer.parentNode.insertBefore(startT, startContainer.nextSibling);\n this.startContainer = startT;\n\n if (startContainer.nodeValue) {\n // Wrap start container in detection node, offset is always 0 or parent offset.\n Util.wrap(startContainer, this._createSplitContainer(startContainer, startContainerIndex,\n Util.getOffsetParentIfHas(startContainer)));\n }\n }\n\n // init with endContainer because we may have not a text node here\n let endT = endContainer;\n\n // 2. Extract end Text node,\n const fullTextEndValue = endContainer.nodeValue;\n // It's possible that end container value is null (if a whole paragraph is marked)\n if (undefined !== fullTextEndValue) {\n // Split text\n const partTextEndValue = fullTextEndValue.slice(0, endOffset);\n endContainer.nodeValue = fullTextEndValue.slice(endOffset, fullTextEndValue.length);\n // End Container start offset is always 0 or parent offset.\n endT = this._createStartOrEndContainer(endContainer, partTextEndValue,\n Util.getOffsetParentIfHas(endContainer), endContainerIndex);\n\n endContainer.parentNode.insertBefore(endT, endContainer);\n this.endContainer = endT;\n const offsetParent = Util.getOffsetParentIfHas(endContainer);\n Util.wrap(endContainer, this._createSplitContainer(endContainer, endContainerIndex,\n offsetParent === endOffset ? offsetParent : offsetParent + endOffset));\n }\n\n return {\n startT,\n endT\n };\n }\n\n /**\n * Renders a selection\n * @param {Node} startContainerP\n * @param {Node} endContainerP\n * @param {Node} commonAncestor\n * @param {int} startOffset\n * @param {int} endOffsetP\n * @returns RenderResult\n * @private\n */\n _renderWithElements(startContainerP, endContainerP, commonAncestor, startOffset, endOffsetP) {\n if (this._renderResult) {\n return this._renderResult;\n }\n let startContainer = startContainerP;\n let endContainer = endContainerP;\n let endOffset = endOffsetP;\n let outer = Util.parents(startContainer, commonAncestor);\n outer = outer[outer.length - 1];\n const contextContainer = outer ? outer : commonAncestor;\n\n // Same Element, means the selection is fully contained in a discrete area, start and endpoint have the same parent\n // but are different nodes:\n\n // Start and End offset have to be recalculated because dom might be already changed by highlighting in given node\n // 1: First detect real start offset in startContainer:\n\n // That works by selecting the highest wrapper and get original-offset-start data element, see \"findOriginalOffset\"\n // So first select that container:\n const originalStartOffset = Util.findOriginalOffset(startContainer);\n const originalEndOffset = Util.findOriginalOffset(endContainer);\n\n // We may run into Browser Bugs:\n\n // If both are not text nodes, use next sibling as endContainer\n if (startContainer.nodeType !== Node.TEXT_NODE && endContainer.nodeType !== Node.TEXT_NODE) {\n if (startContainer === endContainer) {\n endContainer = endContainer.nextElementSibling || endContainer;\n }\n }\n // IF start/end container is not type of text, select first child text node:\n // We run in some bugs with firefox here that selects no text-nodes sometimes, trying to fix this here\n // Sometimes does not work correctly... (specially when DOM was modified)\n if (startContainer.nodeType !== Node.TEXT_NODE) {\n Util.walkDom(startContainer, (el) => {\n if (el.nodeType === Node.TEXT_NODE) {\n startContainer = el;\n return false;\n }\n return true;\n });\n }\n\n if (endContainer.nodeType !== Node.TEXT_NODE) {\n let toFindNode = startContainer;\n\n if (endOffset === 0) {\n toFindNode = endContainer.previousElementSibling || startContainer;\n }\n\n // Get the last text node:\n const endContainerContents = Util.closest(toFindNode, ':not([' + DATA_IS_SELECTION + '])').childNodes;\n if (endContainerContents.length) {\n const r = endContainerContents[endContainerContents.length - 1];\n if (r.nodeType === Node.TEXT_NODE) {\n endContainer = r;\n endOffset = r.length;\n } else {\n let f = r.lastChild;\n while (f !== null) {\n if (f && f.nodeType === Node.TEXT_NODE) {\n endContainer = f;\n endOffset = f.length;\n if (f.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n endOffset = parseInt(f.parentNode\n .getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) + endOffset;\n }\n }\n f = f.lastChild;\n }\n }\n }\n // still no textNode?\n if (endContainer.nodeType !== Node.TEXT_NODE) {\n throw Error('Could not found endContainer, highlighting would be unstable');\n }\n }\n\n this._renderResult = new RenderResult(\n // Real offset is calculated by relative length and absolute length\n originalStartOffset + startOffset,\n originalEndOffset + endOffset,\n // get the path for this selection\n Util.getPath(startContainer, this.context),\n Util.getPath(endContainer, this.context)\n );\n\n this._renderResult.instance = this;\n\n\n this._renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, !!outer);\n\n return this._renderResult;\n }\n\n /**\n * Renders a given selection\n *\n * @param {Node} startContainer\n * @param {Node} endContainer\n * @param {int} startOffset\n * @param {int} endOffset\n * @param {Node} contextContainer\n * @param {Boolean} outer\n * @private\n */\n _renderSelection(startContainer, endContainer, startOffset, endOffset, contextContainer, outer) {\n // if start and end-container are the same, mark text on the same node\n if (startContainer === endContainer) {\n this._markTextSameNode(startContainer, startOffset, endOffset);\n } else {\n const result = this._markTextDifferentNode(startContainer, endContainer, startOffset, endOffset);\n const index = this.wrapperNodes.indexOf(result.endT);\n // remove endContainer, to keep order:\n this.wrapperNodes.splice(index, 1);\n if (!outer) {\n this.wrapSiblings(result.startT.nextSibling, endContainer);\n } else {\n this.walk(result.startT, endContainer, contextContainer);\n }\n this.wrapperNodes.push(result.endT);\n }\n }\n\n /**\n * Prepares to render a Selection with path selectors\n * ```\n * A Path looks like this:\n *\n * #selector;#textnode;#offset\n * ``\n * @param {string} startPath\n * @param {string} endPath\n * @returns {string}\n */\n renderWithPath(startPath, endPath) {\n const startContainer = Util.deserializePath(startPath, this.context);\n const endContainer = Util.deserializePath(endPath, this.context);\n if (startContainer && endContainer && startContainer.node && endContainer.node) {\n const range = document.createRange();\n range.setStart(startContainer.node, startContainer.offset);\n range.setEnd(endContainer.node, endContainer.offset);\n const text = range.toString();\n const result = this.renderWithRange(range);\n result.text = text;\n return text;\n }\n throw new Error('Could not find start- and/or end-container in document');\n }\n\n /**\n * @returns {RenderResult}\n */\n get result() {\n return this._renderResult;\n }\n\n /**\n * Renders a result (that returned from `renderWithRange`)\n * @param {RenderResult|Object} result\n * @returns {string}\n */\n renderWithResult(result) {\n return this.renderWithPath(\n `${result.startContainerPath};${result.startOffset}`,\n `${result.endContainerPath};${result.endOffset}`);\n }\n\n /**\n * Prepares a selection with a range object\n * @param {Range} range\n * @returns {Object}\n */\n renderWithRange(range) {\n const text = range.toString();\n const result = this._renderWithElements(range.startContainer, range.endContainer,\n range.commonAncestorContainer, range.startOffset, range.endOffset);\n result.text = text;\n return result;\n }\n\n /**\n * Removes bindings and classNames to nodes\n */\n destroy() {\n this.wrapperNodes.forEach((node) => {\n delete node.marklibInstance;\n node.className = '';\n });\n this.removeEvent();\n }\n\n /**\n * @param {Node} el\n * @param {Rendering} instance\n * @returns {Node}\n */\n static setMarklibInstance(el, instance) {\n el.marklibInstance = instance;\n return el;\n }\n\n /**\n * @param {Node} el\n * @returns {Rendering|null|undefined}\n */\n static getMarklibInstance(el) {\n return el ? el.marklibInstance : null;\n }\n}\n\nexport default Rendering;\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/Rendering.js\n **/","/* global Node, NodeList, Element */\n\n/**\n * @type {string}\n */\nexport const ATTR_DATA_ORIGINAL_INDEX = 'data-original-index';\n/**\n * @type {string}\n */\nexport const DATA_IS_SELECTION = 'data-is-selection';\n/**\n * @type {string}\n */\nconst SERIALIZE_SEPARATOR = \";\";\n\nimport { ATTR_DATA_ORIGINAL_OFFSET_START } from '../Rendering';\n\n// polyfill for matchesSelector, IE 10/11 does not support Element.matches\nif (Element && !Element.prototype.matches) {\n const p = Element.prototype;\n p.matches = p.matchesSelector ||\n p.mozMatchesSelector || p.msMatchesSelector ||\n p.oMatchesSelector || p.webkitMatchesSelector;\n}\n\n/**\n * Utility class\n * Contains DOM/Node manipulation helpers\n */\nexport default\nclass Util {\n\n /**\n * Filter for a NodeList\n * @param {NodeList} nodes\n * @param {Function} func\n *\n * @returns {Array.}\n */\n static nodeListFilter(nodes, func) {\n return Array.prototype.filter.call(nodes || [], func);\n }\n\n\n /**\n * Generates a unique id\n *\n * @return {String}\n */\n static guid() {\n const s4 = () => {\n return Math.floor((1 + Math.random()) * 0x10000)\n .toString(16)\n .substring(1);\n };\n return s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4();\n }\n\n /**\n * Checks if a given node is empty\n * @param {HTMLElement} node\n *\n * @returns {*}\n */\n static nodeIsEmpty(node) {\n return node.nodeValue.match(/^[\\s]*$/g);\n }\n\n\n /**\n * @param {HTMLElement} node\n * @param [optionalList]\n *\n * @return {int} the index of this node in context to it's siblings\n */\n static index(node, optionalList) {\n const children = optionalList || (node.nodeType === Node.TEXT_NODE ?\n node.parentNode.childNodes : node.parentNode.children);\n return Array.prototype.indexOf.call(children || [], node);\n }\n\n /**\n * Wraps given `elms` in given `wrapper`\n *\n * @param {HTMLElement|Array.|Node} elms\n * @param {HTMLElement|Node} wrapper\n *\n * @return {HTMLElement}\n */\n static wrap(elms, wrapper) {\n let thisElms = elms;\n\n if (!thisElms) {\n return wrapper;\n }\n // Convert `elms` to an array, if necessary.\n if (!(thisElms instanceof NodeList || thisElms instanceof Array)) {\n thisElms = [thisElms];\n }\n for (let i = thisElms.length - 1; i >= 0; i--) {\n const child = (i > 0) ? wrapper.cloneNode(true) : wrapper;\n const el = thisElms[i];\n // Cache the current parent and sibling.\n const parent = el.parentNode;\n const sibling = el.nextSibling;\n\n child.appendChild(el);\n if (sibling) {\n parent.insertBefore(child, sibling);\n } else {\n parent.appendChild(child);\n }\n }\n return wrapper;\n }\n\n /**\n * Will calculate an index depending on an already modified dom by marklib\n * @param {HTMLElement|Node} node\n *\n * @returns {int|boolean}\n */\n static calcIndex(node) {\n let calculatedIndex = 0;\n let foundWrapper = false;\n const nodes = node.parentNode.childNodes;\n const length = nodes.length;\n for (let thisIndex = 0; thisIndex < length; thisIndex++) {\n const el = nodes[thisIndex];\n if (el === node) {\n break;\n }\n // reset index when original index is found\n const maybeIndexOfOriginal = el.getAttribute ? el.getAttribute(ATTR_DATA_ORIGINAL_INDEX) : null;\n\n if (maybeIndexOfOriginal) {\n calculatedIndex = parseInt(maybeIndexOfOriginal, 10);\n foundWrapper = true;\n }\n calculatedIndex++;\n }\n return foundWrapper ? calculatedIndex : Util.index(node);\n }\n\n /**\n * @param {HTMLElement|Node} el\n * @param {String} [optionalSelector] will test given element against a selector\n * if matches, returns this element immediately\n *\n * @return {Array.} an array of all found parents of given element (and optional selector)\n */\n static parents(el, optionalSelector) {\n return Util.parentsCallback(el, (element) => {\n if (optionalSelector && ((element === optionalSelector) ||\n ((typeof optionalSelector === 'string') && element.matches &&\n element.matches(optionalSelector)))) {\n return true;\n } else if (!optionalSelector) {\n return true;\n }\n return false;\n });\n }\n\n /**\n * @param {HTMLElement|Node} el\n * @param {Function} callback\n * @return {Array.} an array of all found parents of given element (and optional selector)\n */\n static parentsCallback(el, callback) {\n let element = el;\n const foundElements = [];\n while (element.parentNode !== null) {\n element = element.parentNode;\n if (callback(element)) {\n foundElements.push(element);\n }\n }\n return foundElements;\n }\n\n /**\n * Finds a parent node (the closest) with a given selector\n * @param {Node} el\n * @param {String} selector\n *\n * @returns {Node|boolean}\n */\n static parent(el, selector) {\n let element = el;\n while (element.parentNode !== null) {\n element = element.parentNode;\n if (element.matches && element.matches(selector)) {\n return element;\n }\n }\n return false;\n }\n\n /**\n * Finds the closest element including itself matching a given selector\n * @param {Node} el\n * @param selector\n *\n * @returns {Node|boolean}\n */\n static closest(el, selector) {\n return Util.closestCallback(el, (element) => element.matches && element.matches(selector));\n }\n\n /**\n * Finds the closest element including itself matching a callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static closestCallback(el, callback) {\n let element = el;\n while (element !== null) {\n if (callback(element)) {\n return element;\n }\n element = element.parentNode;\n }\n return false;\n }\n\n /**\n * Finds the outermost fitting element that matches callback\n * @param {Node} el\n * @param {Function} callback\n * @returns {Node|boolean}\n */\n static outerMostCallback(el, callback) {\n let element = el;\n let lastValid = false;\n while (element !== null) {\n if (callback(element)) {\n lastValid = element;\n }\n element = element.parentNode;\n }\n return lastValid;\n }\n\n /**\n * @param {HTMLElement} n\n *\n * @return {boolean}\n */\n static isMarkNode(n) {\n return n instanceof HTMLElement && n.hasAttribute(DATA_IS_SELECTION);\n }\n\n /**\n * Determines the correct paths and excludes all `marklib` generated content\n * TODO: To improve performance we could shorten the path if an ID is present in it.\n * @param {HTMLElement|Node} el\n * @param {HTMLElement|Node} [context] if given extraction path is relative to this element\n * @returns {string}\n */\n static getPath(el, context) {\n let path = null;\n let node = el;\n\n const filterSiblings = (thisEl) => {\n return !Util.isMarkNode(thisEl) && thisEl.nodeName === node.nodeName;\n };\n\n while (node) {\n let name = null;\n // If node is a text-node, save index\n if (Node.TEXT_NODE === node.nodeType) {\n /* Because nodes may wrapped inside a highlighting node, we need to find the original index that was\n * valid before the dom changes. We store the last known index position inside all wrapper elements\n * We select the outermost\n */\n\n // Extract original index of this node:\n // Outer most data-original-index is original index\n const outerMostElement = Util.parents(node, '[' + ATTR_DATA_ORIGINAL_INDEX + ']').reverse()[0];\n // if element is not yet wrapped in span, recalculate index based on parent container:\n // We have to do this because text node indexes != element indexes...\n let calculatedIndex = 0;\n if (!outerMostElement) {\n calculatedIndex = Util.calcIndex(node);\n }\n const index = outerMostElement ? parseInt(\n outerMostElement.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10) : calculatedIndex;\n name = SERIALIZE_SEPARATOR + index;\n } else {\n name = node.nodeName;\n }\n\n if (!name) {\n break;\n }\n\n name = name.toLowerCase();\n\n const parent = node.parentNode;\n\n if (Util.isMarkNode(node)) {\n if (parent !== context) {\n node = parent;\n continue;\n } else {\n break;\n }\n }\n\n // Select only siblings that are not part of selection and are of the same type\n // (because we use nth-of-type selector later)\n const siblings = Util.nodeListFilter(parent.children, filterSiblings);\n const nodeIndex = Util.index(node, siblings);\n\n if (siblings.length > 1 && nodeIndex >= 0) {\n name += ':nth-of-type(' + (nodeIndex + 1) + ')';\n }\n\n path = name + (path ? '>' + path : '');\n\n\n if (parent === context) {\n break;\n }\n\n node = parent;\n }\n\n return path.replace(\"#document>\", \"\").replace('>;', ';');\n }\n\n /**\n * Will return the first original offset value that is found\n * @param {Node} element\n *\n * @returns {int}\n */\n static findOriginalOffset(element) {\n if (!element.parentNode.hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START)) {\n return 0;\n }\n const lengthElement = Util.parent(element, '[' + ATTR_DATA_ORIGINAL_OFFSET_START + ']');\n return lengthElement ? parseInt(lengthElement.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) : 0;\n }\n\n\n /**\n * Deserialize a specific path and finds the right textNodes\n * This even works when DOM has been manipulated before by `marklib`\n * @param {string} path the serialized path (including offsets)\n * @param {Node|HTMLElement} context\n *\n * @return {Node}\n */\n static deserializePath(path, context) {\n const pSplit = path.split(';');\n const p = pSplit[0];\n const objectIndex = parseInt(pSplit[1], 10);\n const charOffset = parseInt(pSplit[2], 10);\n const container = !p.trim() ? context : context.querySelector(p);\n\n let maybeFoundNode = null;\n\n Util.walkTextNodes(container, (n) => {\n let atrOffsetStart = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START);\n atrOffsetStart = atrOffsetStart === null ? 0 : atrOffsetStart;\n let atrIndex = n.parentNode.getAttribute(ATTR_DATA_ORIGINAL_INDEX);\n atrIndex = atrIndex === null ? Util.calcIndex(n) : atrIndex;\n if (parseInt(atrIndex, 10) === objectIndex && charOffset >= atrOffsetStart &&\n ((parseInt(atrOffsetStart, 10) + n.length) >= charOffset)) {\n const thisOffset = n.parentNode\n .hasAttribute(ATTR_DATA_ORIGINAL_OFFSET_START) ? charOffset -\n parseInt(n.parentNode\n .getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10) : charOffset;\n\n maybeFoundNode = {\n node: n,\n offset: thisOffset\n };\n\n return false;\n }\n return true;\n }, null);\n\n return maybeFoundNode;\n }\n\n\n /**\n * Walks the dom tree unless func returns false\n * Applies node to function\n *\n * @param {Node} node\n * @param {Function} func\n * @param {int} type, see `NodeFilter`\n * @param {Object} [filter] skips empty text nodes by default\n *\n * @returns {boolean} true if function did abort walk\n */\n static walkDom(node, func, type = NodeFilter.SHOW_ALL, filter = null) {\n if (!node) {\n return false;\n }\n const args = [node, type, filter || (() => true), false];\n args.push(false);\n const walker = document.createTreeWalker(...args);\n while (walker.nextNode()) {\n if (!func(walker.currentNode)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Extracts all TextNodes inside a container\n * @param {Node} el\n * @param {Function} func\n * @param {Object} [filter] skips empty text nodes by default\n * @returns {boolean} true if function did abort walk\n */\n static walkTextNodes(el, func, filter = (node) => !Util.nodeIsEmpty(node)) {\n return Util.walkDom(el, func, NodeFilter.SHOW_TEXT, filter);\n }\n\n /**\n * @param {Node} container\n * @param {Number} thisIndex\n * @returns {int|string} index of parent or original\n */\n static getIndexParentIfHas(container, thisIndex) {\n const p = container.parentNode;\n const index = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_INDEX), 10);\n return index > thisIndex ? index : thisIndex;\n }\n\n /**\n * @param container\n * @returns {int} offset start of parent if has, else 0\n */\n static getOffsetParentIfHas(container) {\n const p = container.parentNode;\n const offset = parseInt(p.getAttribute(ATTR_DATA_ORIGINAL_OFFSET_START), 10);\n return offset > 0 ? offset : 0;\n }\n\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/util/Util.js\n **/","\"use strict\";\n\nvar _typeof = typeof _Symbol === \"function\" && typeof _Symbol$iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _Symbol === \"function\" && obj.constructor === _Symbol ? \"symbol\" : typeof obj; };\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/typeof.js\n ** module id = 25\n ** module chunks = 0 1\n **/","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./$.cof')\n , TAG = require('./$.wks')('toStringTag')\n // ES3 wrong here\n , ARG = cof(function(){ return arguments; }()) == 'Arguments';\n\nmodule.exports = function(it){\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = (O = Object(it))[TAG]) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.classof.js\n ** module id = 26\n ** module chunks = 0 1\n **/","var toString = {}.toString;\n\nmodule.exports = function(it){\n return toString.call(it).slice(8, -1);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.cof.js\n ** module id = 27\n ** module chunks = 0 1\n **/","var ctx = require('./$.ctx')\n , call = require('./$.iter-call')\n , isArrayIter = require('./$.is-array-iter')\n , anObject = require('./$.an-object')\n , toLength = require('./$.to-length')\n , getIterFn = require('./core.get-iterator-method');\nmodule.exports = function(iterable, entries, fn, that){\n var iterFn = getIterFn(iterable)\n , f = ctx(fn, that, entries ? 2 : 1)\n , index = 0\n , length, step, iterator;\n if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){\n entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){\n call(iterator, f, step.value, entries);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.for-of.js\n ** module id = 28\n ** module chunks = 0 1\n **/","'use strict';\nvar LIBRARY = require('./$.library')\n , $export = require('./$.export')\n , redefine = require('./$.redefine')\n , hide = require('./$.hide')\n , has = require('./$.has')\n , Iterators = require('./$.iterators')\n , $iterCreate = require('./$.iter-create')\n , setToStringTag = require('./$.set-to-string-tag')\n , getProto = require('./$').getProto\n , ITERATOR = require('./$.wks')('iterator')\n , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`\n , FF_ITERATOR = '@@iterator'\n , KEYS = 'keys'\n , VALUES = 'values';\n\nvar returnThis = function(){ return this; };\n\nmodule.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){\n $iterCreate(Constructor, NAME, next);\n var getMethod = function(kind){\n if(!BUGGY && kind in proto)return proto[kind];\n switch(kind){\n case KEYS: return function keys(){ return new Constructor(this, kind); };\n case VALUES: return function values(){ return new Constructor(this, kind); };\n } return function entries(){ return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator'\n , DEF_VALUES = DEFAULT == VALUES\n , VALUES_BUG = false\n , proto = Base.prototype\n , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]\n , $default = $native || getMethod(DEFAULT)\n , methods, key;\n // Fix native\n if($native){\n var IteratorPrototype = getProto($default.call(new Base));\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // FF fix\n if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);\n // fix Array#{values, @@iterator}.name in V8 / FF\n if(DEF_VALUES && $native.name !== VALUES){\n VALUES_BUG = true;\n $default = function values(){ return $native.call(this); };\n }\n }\n // Define iterator\n if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if(DEFAULT){\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: !DEF_VALUES ? $default : getMethod('entries')\n };\n if(FORCED)for(key in methods){\n if(!(key in proto))redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-define.js\n ** module id = 29\n ** module chunks = 0 1\n **/","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\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.property-desc.js\n ** module id = 30\n ** module chunks = 0 1\n **/","module.exports = require('./$.hide');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine.js\n ** module id = 31\n ** module chunks = 0 1\n **/","var id = 0\n , px = Math.random();\nmodule.exports = function(key){\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.uid.js\n ** module id = 32\n ** module chunks = 0 1\n **/","/* global CustomEvent */\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n// polyfill for custom events to make thinks work in IE\n// The needed polyfill is so small that I embedded it here\n(function poly() {\n if (!global.CustomEvent || typeof global.CustomEvent !== 'function') {\n const CustomEvent = function CustomEvent(event, params) {\n let evt;\n const thisParams = params ||\n {\n bubbles: false,\n cancelable: false,\n detail: undefined\n };\n evt = document.createEvent(\"CustomEvent\");\n evt.initCustomEvent(event, thisParams.bubbles,\n thisParams.cancelable, thisParams.detail);\n return evt;\n };\n CustomEvent.prototype = global.Event.prototype;\n global.CustomEvent = CustomEvent;\n }\n})();\n/**\n * Simpler Event dispatching\n */\nclass EventHandler {\n\n /**\n * @param {HTMLElement} target\n * @param {String} name\n */\n constructor(target, name) {\n this.target = target;\n this.defaultOptions = {\n bubbles: true,\n cancelable: true\n };\n\n this.name = name;\n }\n\n /**\n * Set more options\n * @param {Object} options\n * @returns {EventHandler}\n */\n withOptions(options) {\n Object.assign(this.defaultOptions, (options || {}));\n return this;\n }\n\n /**\n * Call with the originalEvent\n * @param {Event} e\n * @returns {EventHandler}\n */\n withOriginal(e) {\n return this.withDetail({\n originalEvent: e\n });\n }\n\n /**\n * Extends the detail part of the event\n * @param {Object} o\n * @returns {EventHandler}\n */\n withDetail(o) {\n if (!this.defaultOptions.detail) {\n this.defaultOptions.detail = {};\n }\n Object.assign(this.defaultOptions.detail, o);\n return this;\n }\n\n /**\n * @returns {CustomEvent}\n */\n fire() {\n const e = new CustomEvent(this.name, this.defaultOptions);\n if (this.target) {\n this.target.dispatchEvent(e);\n }\n return e;\n }\n}\n\nclass Event {\n /**\n * Prepares to dispatch a custom event (without firing)\n * @param {HTMLElement} target\n * @param {String} name\n * @returns {EventHandler}\n */\n static dispatch(target, name) {\n return new EventHandler(target, name);\n }\n\n /**\n * Dispatches a custom event and fires it directly\n * @param {HTMLElement} target\n * @param {String} name\n * @param {Object} [options]\n * @returns {CustomEvent}\n */\n static dispatchAndFire(target, name, options) {\n return new EventHandler(target, name).withOptions(options).fire();\n }\n}\n\nexport default Event;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/util/Event.js\n **/","/**\n * A Render Result\n */\nexport default class RenderResult {\n /**\n * @param {int} startOffset\n * @param {int} endOffset\n * @param {String} startContainerPath\n * @param {String} endContainerPath\n */\n constructor(startOffset, endOffset, startContainerPath, endContainerPath) {\n this.startOffset = startOffset;\n this.endOffset = endOffset;\n this.startContainerPath = startContainerPath;\n this.endContainerPath = endContainerPath;\n this._renderingInstance = null;\n }\n\n /**\n * @param {Object} result\n * @return RenderResult\n */\n static fromObject(result) {\n return new RenderResult(\n result.startOffset,\n result.endOffset,\n result.startContainerPath,\n result.endContainerPath\n );\n }\n\n /**\n * @returns {Object}\n */\n serialize() {\n return {\n startOffset: this.startOffset,\n endOffset: this.endOffset,\n startContainerPath: this.startContainerPath,\n endContainerPath: this.endContainerPath\n };\n }\n\n /**\n * @param {String} text\n */\n set text(text) {\n this._text = text;\n }\n\n /**\n * @returns {String}\n */\n get text() {\n return this._text;\n }\n\n /**\n * @returns {null|Rendering}\n */\n get instance() {\n return this._renderingInstance;\n }\n\n /**\n * @param {null|Rendering} instance\n */\n set instance(instance) {\n this._renderingInstance = instance;\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/RenderResult.js\n **/","/* global Set */\n\nimport EventEmitter from 'wolfy87-eventemitter';\nimport Rendering from './Rendering';\nimport Util from './util/Util';\n\n/**\n * @type {string}\n */\nexport const EVENT_CLICK = 'click';\n\n/**\n * @type {string}\n */\nexport const EVENT_MOUSEENTER = 'hover-enter';\n\n/**\n * @type {string}\n */\nexport const EVENT_MOUSELEAVE = 'hover-leave';\n\n/**\n * @type {string}\n */\nexport const EVENT_PART_TREE_ENTER = 'tree-enter';\n\n/**\n * @type {string}\n */\nexport const EVENT_PART_TREE_LEAVE = 'tree-leave';\n\n/**\n * Generic Event Handlings for Renderer\n */\nexport default class RenderingEvents extends EventEmitter {\n\n /**\n * @param {Object} options\n * @param {Document} document\n */\n constructor(options, document) {\n super();\n\n /**\n * Options\n * @type {Object}\n */\n this.options = {\n hoverClass: 'marklib--hover',\n treeClass: 'marklib--tree',\n className: ['marking']\n };\n\n this.options = Object.assign(this.options, options || {});\n\n if (typeof this.options.className === 'string') {\n this.options.className = this.options.className.split(' ');\n }\n\n /**\n * A collection of all nodes that are part of all events\n * @type {Array}\n */\n this.wrapperNodes = [];\n\n this._registerEvents(document);\n\n /**\n * @type {Document}\n */\n this.document = document;\n }\n\n /**\n * Constructs a new Range from rendered result\n * @returns {Range}\n */\n get range() {\n const range = this.document.createRange();\n const textNodes = [];\n\n this.wrapperNodes.forEach((wrapper) => {\n Util.walkTextNodes(wrapper, (node) => {\n textNodes.push(node);\n });\n });\n\n if (textNodes.length > 0) {\n const lastTextNode = textNodes[textNodes.length - 1];\n range.setStart(textNodes[0], 0);\n range.setEnd(lastTextNode, lastTextNode.length);\n return range;\n }\n\n return null;\n }\n\n /**\n * Will register events if not already bind.\n * @param {Document} document\n * @private\n */\n _registerEvents(document) {\n this.on(EVENT_MOUSEENTER, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.add(this.options.hoverClass);\n });\n });\n\n this.on(EVENT_MOUSELEAVE, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.remove(this.options.hoverClass);\n });\n });\n\n this.on(EVENT_PART_TREE_ENTER, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.add(this.options.treeClass);\n });\n });\n\n this.on(EVENT_PART_TREE_LEAVE, () => {\n this.wrapperNodes.forEach((node) => {\n node.classList.remove(this.options.treeClass);\n });\n });\n\n\n if (!global.__MARKLIB_EVENTS__) {\n global.__MARKLIB_EVENTS__ = true;\n (function init() {\n const currentHoverInstances = new Set();\n const betweenInstances = new Set();\n\n function checkMarklibInstance(e) {\n const instance = Rendering.getMarklibInstance(e);\n // instanceof check will fail if used in test scenario where different DOMs are used\n // see also http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/\n return instance && (instance instanceof Rendering || 'wrapperNodes' in instance);\n }\n\n function closestInstance(e) {\n const closest = Util.closestCallback(\n e.target,\n (thisE) => checkMarklibInstance(thisE)\n );\n if (typeof closest === 'object') {\n return Rendering.getMarklibInstance(closest);\n }\n return false;\n }\n\n function getInstancesBetween(e, instance) {\n return Util.parentsCallback(\n e.target,\n (el) => checkMarklibInstance(el) && Rendering.getMarklibInstance(el) !== instance\n ).map(el => Rendering.getMarklibInstance(el));\n }\n\n function mouseOutClear() {\n currentHoverInstances.forEach((thisInstance) => {\n thisInstance.emit(EVENT_MOUSELEAVE);\n });\n currentHoverInstances.clear();\n\n betweenInstances.forEach((thisInstance) => {\n thisInstance.emit(EVENT_PART_TREE_LEAVE);\n });\n\n betweenInstances.clear();\n }\n\n /**\n * @param {Event} e\n * @returns {Array|boolean}\n */\n function findTarget(e) {\n let instance = closestInstance(e);\n if (instance) {\n const between = getInstancesBetween(e, instance);\n if (e.target.textContent !== instance.result.text && between.length > 0) {\n let allInstances = between;\n allInstances.unshift(instance);\n // take the smallest selection\n allInstances = allInstances.sort(\n (a, b) => a.result.text.length < b.result.text.length ? -1 : 1\n );\n instance = allInstances[0];\n }\n\n return [instance, between];\n }\n return false;\n }\n\n document.addEventListener('click', (e) => {\n const target = findTarget(e);\n if (target) {\n target[0].emit(EVENT_CLICK, e, target[1]);\n }\n }, true);\n\n document.addEventListener('mouseover', (e) => {\n const target = findTarget(e);\n if (target) {\n const [instance, between] = target;\n // find instances that lay in between the node\n mouseOutClear();\n between.forEach((instanceBetween) => {\n betweenInstances.add(instanceBetween);\n instanceBetween.emit(EVENT_PART_TREE_ENTER, e, between);\n });\n instance.emit(EVENT_MOUSEENTER, e, between);\n currentHoverInstances.add(instance);\n } else {\n mouseOutClear();\n }\n }, true);\n })();\n }\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/RenderingEvents.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Widget\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n/**\n * A Widget provides async content on a specific target (e.g. a modal link)\n */\nclass Widget {\n\n /**\n * Creates a new Widget\n * @param [element], optional define the content of widget\n */\n constructor(element) {\n /**\n *\n * @type {Promise}\n */\n this.asyncContent = null;\n\n /**\n * @type {boolean}\n */\n this._isWidget = true;\n\n if (element) {\n /**\n * @type {HTMLElement}\n */\n this.element = element instanceof HTMLElement ? element : global.document.getElementById(element);\n if (this.element) {\n this.element.hfWidgetInstance = this;\n this.setAsync(() => {\n return new Promise((s) => {\n s(this.element);\n });\n });\n } else {\n throw new Error(`Could not found element with ID: ${element}`);\n }\n }\n /**\n * The final resulted content that a widget did create (e.g. a modal container)\n * @type {HTMLElement}\n */\n this.finalContent = null;\n }\n\n /**\n *\n * @returns {Promise}\n */\n getAsync() {\n return this.asyncContent();\n }\n\n /**\n * @param {Function.} async\n * @returns {Widget}\n */\n setAsync(async) {\n this.asyncContent = async;\n return this;\n }\n\n /**\n * @returns {HTMLElement}\n */\n getFinalContent() {\n return this.finalContent;\n }\n\n /**\n * @param {HTMLElement} element\n * @returns {Widget}\n */\n setElement(element) {\n this.element = element;\n return this;\n }\n\n /**\n * Destroys the generated content of this widget\n * @returns {boolean}\n */\n destroy() {\n if (this.finalContent && this.finalContent.parentNode) {\n this.finalContent.parentNode.removeChild(this.finalContent);\n return true;\n }\n\n delete this.element;\n delete this.asyncContent;\n delete this.finalContent;\n\n return false;\n }\n\n /**\n * Will find a widget on an Element\n * @param {HTMLElement} element\n * @returns {Widget|undefined}\n */\n static findWidget(element) {\n return element ? element.hfWidgetInstance : undefined;\n }\n\n /**\n * Checks if a given object is an instance\n * @param {Object} self\n * @returns {boolean}\n */\n static isWidget(self) {\n return self instanceof Widget || typeof self === 'object' && self.hasOwnProperty('_isWidget');\n }\n}\n\nexport default Widget;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Widget.js\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/get-prototype-of\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/get-prototype-of.js\n ** module id = 37\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/inherits.js\n ** module id = 38\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/possibleConstructorReturn.js\n ** module id = 39\n ** module chunks = 0 1\n **/","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./$.cof');\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iobject.js\n ** module id = 40\n ** module chunks = 0 1\n **/","module.exports = function(done, value){\n return {value: value, done: !!done};\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-step.js\n ** module id = 41\n ** module chunks = 0 1\n **/","module.exports = true;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.library.js\n ** module id = 42\n ** module chunks = 0 1\n **/","var redefine = require('./$.redefine');\nmodule.exports = function(target, src){\n for(var key in src)redefine(target, key, src[key]);\n return target;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine-all.js\n ** module id = 43\n ** module chunks = 0 1\n **/","var global = require('./$.global')\n , SHARED = '__core-js_shared__'\n , store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function(key){\n return store[key] || (store[key] = {});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.shared.js\n ** module id = 44\n ** module chunks = 0 1\n **/","module.exports = function(it, Constructor, name){\n if(!(it instanceof Constructor))throw TypeError(name + \": use the 'new' operator!\");\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.strict-new.js\n ** module id = 45\n ** module chunks = 0 1\n **/","// 7.1.4 ToInteger\nvar ceil = Math.ceil\n , floor = Math.floor;\nmodule.exports = function(it){\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-integer.js\n ** module id = 46\n ** module chunks = 0 1\n **/","// 7.1.13 ToObject(argument)\nvar defined = require('./$.defined');\nmodule.exports = function(it){\n return Object(defined(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-object.js\n ** module id = 47\n ** module chunks = 0 1\n **/","var classof = require('./$.classof')\n , ITERATOR = require('./$.wks')('iterator')\n , Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').getIteratorMethod = function(it){\n if(it != undefined)return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.get-iterator-method.js\n ** module id = 48\n ** module chunks = 0 1\n **/","import Rendering from '../Rendering';\nimport Util from '../util/Util';\nimport RenderResult from '../RenderResult';\nimport RenderingEvents from '../RenderingEvents';\n\nexport { Rendering, Util, RenderResult, RenderingEvents };\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/modules/Marklib.js\n **/","import Settings from '../util/Settings';\nimport debounce from './debounce';\nimport Event from '../util/Event';\n\nconst CLS_FIXED_WINDOW = 'fixed-window-open';\n\nexport const EVENT_BEFORE_FIXED_ADD = 'flexcss.fixedWindow.beforeAdd';\nexport const EVENT_AFTER_FIXED_REMOVE = 'flexcss.fixedWindow.afterRemove';\n\n/**\n * @type {FixedWindow}\n */\nlet fixedWindowInstance;\n\nexport default class FixedWindow {\n\n constructor() {\n this.widgets = [];\n this.currentScrollTop = 0;\n this.fixedScreenConstraints = [];\n this.windowWidth = 0;\n this.isFixedWindowActive = false;\n }\n\n /**\n * Adds a constraint to detect if the window needs to be changed when the screensize changes\n *\n * @param {Function} widget\n * @param {Function} fixedBreakpointFn gets a width argument, return true to open a window\n */\n addScreenConstraint(widget, fixedBreakpointFn) {\n this.fixedScreenConstraints[widget] = fixedBreakpointFn;\n }\n\n /**\n * @returns {null|DestroyableWidget}\n */\n getCurrentWidget() {\n return this.widgets.length > 0 ? this.widgets[this.widgets.length - 1] : null;\n }\n\n /**\n * @private\n */\n _checkFixedNeeded() {\n if (this.widgets.length === 0) {\n return;\n }\n const widgets = new Set(this.widgets);\n const widgetsThatRequireFixedWindow = Array.from(widgets).some((widget) => {\n return this.fixedScreenConstraints[widget] && this.fixedScreenConstraints[widget](this.windowWidth);\n });\n if (!widgetsThatRequireFixedWindow) {\n this._removeFixedContainer();\n } else {\n this._addFixedContainer();\n }\n }\n\n /**\n * @private\n */\n _addFixedContainer() {\n if (this.isFixedWindowActive) {\n return;\n }\n Event.dispatchAndFire(global.document, EVENT_BEFORE_FIXED_ADD, {\n detail: this.getCurrentWidget()\n });\n // this causes layout and should be optimized\n // At lest we write in a batch later\n this.currentScrollTop = global.pageYOffset;\n Settings.get().scrollbarUpdateNodes.map((n) => {\n let foundProperty = 'paddingRight';\n let direction = 1;\n let node = n;\n if (n instanceof Array) {\n const [whatNode, property, d] = n;\n foundProperty = property;\n node = whatNode;\n direction = d || 1;\n }\n return {\n node,\n property: foundProperty,\n value: `${parseInt(global.getComputedStyle(node)[foundProperty], 10) +\n (!node.__fixedWindowMod__ ? (Settings.getScrollbarWidth() * direction) : 0)}px`\n };\n }).forEach((d) => {\n d.node.__fixedWindowMod__ = true;\n d.node.style[d.property] = d.value;\n });\n\n global.document.documentElement.classList.add(CLS_FIXED_WINDOW);\n global.document.body.style.cssText += `top:${this.currentScrollTop * -1}px;position:fixed`;\n\n this.isFixedWindowActive = true;\n }\n\n /**\n * @private\n */\n _removeFixedContainer() {\n if (this.isFixedWindowActive) {\n global.document.body.style.position = \"static\";\n global.document.body.style.top = \"0px\";\n // reset scrollTop\n global.document.documentElement.scrollTop = this.currentScrollTop;\n global.document.body.scrollTop = this.currentScrollTop;\n Settings.get().scrollbarUpdateNodes.forEach((node) => {\n if (node instanceof Array) {\n const [whatNode, property] = node;\n delete whatNode.__fixedWindowMod__;\n whatNode.style[property] = '';\n } else {\n delete node.__fixedWindowMod__;\n node.style.paddingRight = '';\n }\n });\n global.document.documentElement.classList.remove(CLS_FIXED_WINDOW);\n Event.dispatchAndFire(global.document, EVENT_AFTER_FIXED_REMOVE);\n this.isFixedWindowActive = false;\n }\n }\n\n /**\n * Will close a window when no widgets are opened that need one\n */\n resizeListener() {\n this.windowWidth = global.innerWidth;\n this._checkFixedNeeded();\n }\n\n /**\n * @returns {FixedWindow}\n */\n static getInstance() {\n if (!fixedWindowInstance) {\n fixedWindowInstance = new FixedWindow();\n fixedWindowInstance.windowWidth = global.innerWidth;\n const eventHandler = fixedWindowInstance.resizeListener.bind(fixedWindowInstance);\n global.addEventListener(\n 'resize',\n debounce(eventHandler, 500)\n );\n global.addEventListener('orientationchange', eventHandler);\n }\n return fixedWindowInstance;\n }\n\n /**\n * Request a close of the fixed window\n * @returns {Promise}\n */\n close() {\n return new Promise((resolve) => {\n this.widgets.pop();\n if (this.widgets.length === 0) {\n // restore scrollPosition:\n requestAnimationFrame(() => {\n this._removeFixedContainer();\n resolve();\n });\n }\n });\n }\n\n /**\n * Request to open a fixed windows\n * @param {Object|DestroyableWidget} instance\n */\n open(instance) {\n let fixed = false;\n if (typeof instance === 'object') {\n const cn = instance.constructor;\n const fixedWidget = this.fixedScreenConstraints[instance.constructor];\n if (cn && fixedWidget) {\n fixed = fixedWidget(this.windowWidth);\n }\n const length = this.widgets.length;\n this.widgets.push(cn);\n // open a new window if there is no window active\n if (length === 0) {\n if (fixed) {\n this._addFixedContainer();\n }\n }\n }\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/lib/FixedWindow.js\n **/","module.exports = { \"default\": require(\"core-js/library/fn/get-iterator\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/get-iterator.js\n ** module id = 52\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/is-iterable\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/is-iterable.js\n ** module id = 53\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/assign.js\n ** module id = 54\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/create.js\n ** module id = 55\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/define-property.js\n ** module id = 56\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/set-prototype-of.js\n ** module id = 57\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/set\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/set.js\n ** module id = 58\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol.js\n ** module id = 59\n ** module chunks = 0 1\n **/","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol/iterator.js\n ** module id = 60\n ** module chunks = 0 1\n **/","\"use strict\";\n\nexports.__esModule = true;\n\nvar _isIterable2 = require(\"../core-js/is-iterable\");\n\nvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\nvar _getIterator2 = require(\"../core-js/get-iterator\");\n\nvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if ((0, _isIterable3.default)(Object(arr))) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/slicedToArray.js\n ** module id = 61\n ** module chunks = 0 1\n **/","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.get-iterator');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/get-iterator.js\n ** module id = 62\n ** module chunks = 0 1\n **/","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.is-iterable');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/is-iterable.js\n ** module id = 63\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/$.core').Object.assign;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/assign.js\n ** module id = 64\n ** module chunks = 0 1\n **/","var $ = require('../../modules/$');\nmodule.exports = function create(P, D){\n return $.create(P, D);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/create.js\n ** module id = 65\n ** module chunks = 0 1\n **/","var $ = require('../../modules/$');\nmodule.exports = function defineProperty(it, key, desc){\n return $.setDesc(it, key, desc);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/define-property.js\n ** module id = 66\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.get-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.getPrototypeOf;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/get-prototype-of.js\n ** module id = 67\n ** module chunks = 0 1\n **/","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.setPrototypeOf;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/set-prototype-of.js\n ** module id = 68\n ** module chunks = 0 1\n **/","require('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.set');\nrequire('../modules/es7.set.to-json');\nmodule.exports = require('../modules/$.core').Set;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/set.js\n ** module id = 69\n ** module chunks = 0 1\n **/","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nmodule.exports = require('../../modules/$.core').Symbol;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/index.js\n ** module id = 70\n ** module chunks = 0 1\n **/","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/$.wks')('iterator');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/iterator.js\n ** module id = 71\n ** module chunks = 0 1\n **/","module.exports = function(it){\n if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.a-function.js\n ** module id = 72\n ** module chunks = 0 1\n **/","module.exports = function(){ /* empty */ };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.add-to-unscopables.js\n ** module id = 73\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , hide = require('./$.hide')\n , redefineAll = require('./$.redefine-all')\n , ctx = require('./$.ctx')\n , strictNew = require('./$.strict-new')\n , defined = require('./$.defined')\n , forOf = require('./$.for-of')\n , $iterDefine = require('./$.iter-define')\n , step = require('./$.iter-step')\n , ID = require('./$.uid')('id')\n , $has = require('./$.has')\n , isObject = require('./$.is-object')\n , setSpecies = require('./$.set-species')\n , DESCRIPTORS = require('./$.descriptors')\n , isExtensible = Object.isExtensible || isObject\n , SIZE = DESCRIPTORS ? '_s' : 'size'\n , id = 0;\n\nvar fastKey = function(it, create){\n // return primitive with prefix\n if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if(!$has(it, ID)){\n // can't set id to frozen object\n if(!isExtensible(it))return 'F';\n // not necessary to add id\n if(!create)return 'E';\n // add missing object id\n hide(it, ID, ++id);\n // return object id with prefix\n } return 'O' + it[ID];\n};\n\nvar getEntry = function(that, key){\n // fast case\n var index = fastKey(key), entry;\n if(index !== 'F')return that._i[index];\n // frozen object case\n for(entry = that._f; entry; entry = entry.n){\n if(entry.k == key)return entry;\n }\n};\n\nmodule.exports = {\n getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n var C = wrapper(function(that, iterable){\n strictNew(that, C, NAME);\n that._i = $.create(null); // index\n that._f = undefined; // first entry\n that._l = undefined; // last entry\n that[SIZE] = 0; // size\n if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear(){\n for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){\n entry.r = true;\n if(entry.p)entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\n 'delete': function(key){\n var that = this\n , entry = getEntry(that, key);\n if(entry){\n var next = entry.n\n , prev = entry.p;\n delete that._i[entry.i];\n entry.r = true;\n if(prev)prev.n = next;\n if(next)next.p = prev;\n if(that._f == entry)that._f = next;\n if(that._l == entry)that._l = prev;\n that[SIZE]--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /*, that = undefined */){\n var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3)\n , entry;\n while(entry = entry ? entry.n : this._f){\n f(entry.v, entry.k, this);\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key){\n return !!getEntry(this, key);\n }\n });\n if(DESCRIPTORS)$.setDesc(C.prototype, 'size', {\n get: function(){\n return defined(this[SIZE]);\n }\n });\n return C;\n },\n def: function(that, key, value){\n var entry = getEntry(that, key)\n , prev, index;\n // change existing entry\n if(entry){\n entry.v = value;\n // create new entry\n } else {\n that._l = entry = {\n i: index = fastKey(key, true), // <- index\n k: key, // <- key\n v: value, // <- value\n p: prev = that._l, // <- previous entry\n n: undefined, // <- next entry\n r: false // <- removed\n };\n if(!that._f)that._f = entry;\n if(prev)prev.n = entry;\n that[SIZE]++;\n // add to index\n if(index !== 'F')that._i[index] = entry;\n } return that;\n },\n getEntry: getEntry,\n setStrong: function(C, NAME, IS_MAP){\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n $iterDefine(C, NAME, function(iterated, kind){\n this._t = iterated; // target\n this._k = kind; // kind\n this._l = undefined; // previous\n }, function(){\n var that = this\n , kind = that._k\n , entry = that._l;\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n // get next entry\n if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){\n // or finish the iteration\n that._t = undefined;\n return step(1);\n }\n // return step by kind\n if(kind == 'keys' )return step(0, entry.k);\n if(kind == 'values')return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(NAME);\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection-strong.js\n ** module id = 74\n ** module chunks = 0 1\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar forOf = require('./$.for-of')\n , classof = require('./$.classof');\nmodule.exports = function(NAME){\n return function toJSON(){\n if(classof(this) != NAME)throw TypeError(NAME + \"#toJSON isn't generic\");\n var arr = [];\n forOf(this, false, arr.push, arr);\n return arr;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection-to-json.js\n ** module id = 75\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , global = require('./$.global')\n , $export = require('./$.export')\n , fails = require('./$.fails')\n , hide = require('./$.hide')\n , redefineAll = require('./$.redefine-all')\n , forOf = require('./$.for-of')\n , strictNew = require('./$.strict-new')\n , isObject = require('./$.is-object')\n , setToStringTag = require('./$.set-to-string-tag')\n , DESCRIPTORS = require('./$.descriptors');\n\nmodule.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){\n var Base = global[NAME]\n , C = Base\n , ADDER = IS_MAP ? 'set' : 'add'\n , proto = C && C.prototype\n , O = {};\n if(!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){\n new C().entries().next();\n }))){\n // create collection constructor\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n redefineAll(C.prototype, methods);\n } else {\n C = wrapper(function(target, iterable){\n strictNew(target, C, NAME);\n target._c = new Base;\n if(iterable != undefined)forOf(iterable, IS_MAP, target[ADDER], target);\n });\n $.each.call('add,clear,delete,forEach,get,has,set,keys,values,entries'.split(','),function(KEY){\n var IS_ADDER = KEY == 'add' || KEY == 'set';\n if(KEY in proto && !(IS_WEAK && KEY == 'clear'))hide(C.prototype, KEY, function(a, b){\n if(!IS_ADDER && IS_WEAK && !isObject(a))return KEY == 'get' ? undefined : false;\n var result = this._c[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n });\n if('size' in proto)$.setDesc(C.prototype, 'size', {\n get: function(){\n return this._c.size;\n }\n });\n }\n\n setToStringTag(C, NAME);\n\n O[NAME] = C;\n $export($export.G + $export.W + $export.F, O);\n\n if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);\n\n return C;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.collection.js\n ** module id = 76\n ** module chunks = 0 1\n **/","// all enumerable object keys, includes symbols\nvar $ = require('./$');\nmodule.exports = function(it){\n var keys = $.getKeys(it)\n , getSymbols = $.getSymbols;\n if(getSymbols){\n var symbols = getSymbols(it)\n , isEnum = $.isEnum\n , i = 0\n , key;\n while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);\n }\n return keys;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.enum-keys.js\n ** module id = 77\n ** module chunks = 0 1\n **/","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./$.to-iobject')\n , getNames = require('./$').getNames\n , toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function(it){\n try {\n return getNames(it);\n } catch(e){\n return windowNames.slice();\n }\n};\n\nmodule.exports.get = function getOwnPropertyNames(it){\n if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);\n return getNames(toIObject(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.get-names.js\n ** module id = 78\n ** module chunks = 0 1\n **/","// check on default Array iterator\nvar Iterators = require('./$.iterators')\n , ITERATOR = require('./$.wks')('iterator')\n , ArrayProto = Array.prototype;\n\nmodule.exports = function(it){\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array-iter.js\n ** module id = 79\n ** module chunks = 0 1\n **/","// 7.2.2 IsArray(argument)\nvar cof = require('./$.cof');\nmodule.exports = Array.isArray || function(arg){\n return cof(arg) == 'Array';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array.js\n ** module id = 80\n ** module chunks = 0 1\n **/","// call something on iterator step with safe closing on error\nvar anObject = require('./$.an-object');\nmodule.exports = function(iterator, fn, value, entries){\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch(e){\n var ret = iterator['return'];\n if(ret !== undefined)anObject(ret.call(iterator));\n throw e;\n }\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-call.js\n ** module id = 81\n ** module chunks = 0 1\n **/","'use strict';\nvar $ = require('./$')\n , descriptor = require('./$.property-desc')\n , setToStringTag = require('./$.set-to-string-tag')\n , IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./$.hide')(IteratorPrototype, require('./$.wks')('iterator'), function(){ return this; });\n\nmodule.exports = function(Constructor, NAME, next){\n Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-create.js\n ** module id = 82\n ** module chunks = 0 1\n **/","var $ = require('./$')\n , toIObject = require('./$.to-iobject');\nmodule.exports = function(object, el){\n var O = toIObject(object)\n , keys = $.getKeys(O)\n , length = keys.length\n , index = 0\n , key;\n while(length > index)if(O[key = keys[index++]] === el)return key;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.keyof.js\n ** module id = 83\n ** module chunks = 0 1\n **/","// 19.1.2.1 Object.assign(target, source, ...)\nvar $ = require('./$')\n , toObject = require('./$.to-object')\n , IObject = require('./$.iobject');\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = require('./$.fails')(function(){\n var a = Object.assign\n , A = {}\n , B = {}\n , S = Symbol()\n , K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function(k){ B[k] = k; });\n return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n var T = toObject(target)\n , $$ = arguments\n , $$len = $$.length\n , index = 1\n , getKeys = $.getKeys\n , getSymbols = $.getSymbols\n , isEnum = $.isEnum;\n while($$len > index){\n var S = IObject($$[index++])\n , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n , length = keys.length\n , j = 0\n , key;\n while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n }\n return T;\n} : Object.assign;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-assign.js\n ** module id = 84\n ** module chunks = 0 1\n **/","// most Object methods by ES6 should accept primitives\nvar $export = require('./$.export')\n , core = require('./$.core')\n , fails = require('./$.fails');\nmodule.exports = function(KEY, exec){\n var fn = (core.Object || {})[KEY] || Object[KEY]\n , exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-sap.js\n ** module id = 85\n ** module chunks = 0 1\n **/","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar getDesc = require('./$').getDesc\n , isObject = require('./$.is-object')\n , anObject = require('./$.an-object');\nvar check = function(O, proto){\n anObject(O);\n if(!isObject(proto) && proto !== null)throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function(test, buggy, set){\n try {\n set = require('./$.ctx')(Function.call, getDesc(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch(e){ buggy = true; }\n return function setPrototypeOf(O, proto){\n check(O, proto);\n if(buggy)O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-proto.js\n ** module id = 86\n ** module chunks = 0 1\n **/","'use strict';\nvar core = require('./$.core')\n , $ = require('./$')\n , DESCRIPTORS = require('./$.descriptors')\n , SPECIES = require('./$.wks')('species');\n\nmodule.exports = function(KEY){\n var C = core[KEY];\n if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {\n configurable: true,\n get: function(){ return this; }\n });\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-species.js\n ** module id = 87\n ** module chunks = 0 1\n **/","var toInteger = require('./$.to-integer')\n , defined = require('./$.defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function(TO_STRING){\n return function(that, pos){\n var s = String(defined(that))\n , i = toInteger(pos)\n , l = s.length\n , a, b;\n if(i < 0 || i >= l)return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.string-at.js\n ** module id = 88\n ** module chunks = 0 1\n **/","// 7.1.15 ToLength\nvar toInteger = require('./$.to-integer')\n , min = Math.min;\nmodule.exports = function(it){\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-length.js\n ** module id = 89\n ** module chunks = 0 1\n **/","var anObject = require('./$.an-object')\n , get = require('./core.get-iterator-method');\nmodule.exports = require('./$.core').getIterator = function(it){\n var iterFn = get(it);\n if(typeof iterFn != 'function')throw TypeError(it + ' is not iterable!');\n return anObject(iterFn.call(it));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.get-iterator.js\n ** module id = 90\n ** module chunks = 0 1\n **/","var classof = require('./$.classof')\n , ITERATOR = require('./$.wks')('iterator')\n , Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').isIterable = function(it){\n var O = Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n || Iterators.hasOwnProperty(classof(O));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.is-iterable.js\n ** module id = 91\n ** module chunks = 0 1\n **/","'use strict';\nvar addToUnscopables = require('./$.add-to-unscopables')\n , step = require('./$.iter-step')\n , Iterators = require('./$.iterators')\n , toIObject = require('./$.to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./$.iter-define')(Array, 'Array', function(iterated, kind){\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , kind = this._k\n , index = this._i++;\n if(!O || index >= O.length){\n this._t = undefined;\n return step(1);\n }\n if(kind == 'keys' )return step(0, index);\n if(kind == 'values')return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.array.iterator.js\n ** module id = 92\n ** module chunks = 0 1\n **/","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./$.export');\n\n$export($export.S + $export.F, 'Object', {assign: require('./$.object-assign')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.assign.js\n ** module id = 93\n ** module chunks = 0 1\n **/","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./$.to-object');\n\nrequire('./$.object-sap')('getPrototypeOf', function($getPrototypeOf){\n return function getPrototypeOf(it){\n return $getPrototypeOf(toObject(it));\n };\n});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.get-prototype-of.js\n ** module id = 94\n ** module chunks = 0 1\n **/","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./$.export');\n$export($export.S, 'Object', {setPrototypeOf: require('./$.set-proto').set});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.set-prototype-of.js\n ** module id = 95\n ** module chunks = 0 1\n **/","'use strict';\nvar strong = require('./$.collection-strong');\n\n// 23.2 Set Objects\nrequire('./$.collection')('Set', function(get){\n return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.2.3.1 Set.prototype.add(value)\n add: function add(value){\n return strong.def(this, value = value === 0 ? 0 : value, value);\n }\n}, strong);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.set.js\n ** module id = 96\n ** module chunks = 0 1\n **/","'use strict';\n// ECMAScript 6 symbols shim\nvar $ = require('./$')\n , global = require('./$.global')\n , has = require('./$.has')\n , DESCRIPTORS = require('./$.descriptors')\n , $export = require('./$.export')\n , redefine = require('./$.redefine')\n , $fails = require('./$.fails')\n , shared = require('./$.shared')\n , setToStringTag = require('./$.set-to-string-tag')\n , uid = require('./$.uid')\n , wks = require('./$.wks')\n , keyOf = require('./$.keyof')\n , $names = require('./$.get-names')\n , enumKeys = require('./$.enum-keys')\n , isArray = require('./$.is-array')\n , anObject = require('./$.an-object')\n , toIObject = require('./$.to-iobject')\n , createDesc = require('./$.property-desc')\n , getDesc = $.getDesc\n , setDesc = $.setDesc\n , _create = $.create\n , getNames = $names.get\n , $Symbol = global.Symbol\n , $JSON = global.JSON\n , _stringify = $JSON && $JSON.stringify\n , setter = false\n , HIDDEN = wks('_hidden')\n , isEnum = $.isEnum\n , SymbolRegistry = shared('symbol-registry')\n , AllSymbols = shared('symbols')\n , useNative = typeof $Symbol == 'function'\n , ObjectProto = Object.prototype;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n return _create(setDesc({}, 'a', {\n get: function(){ return setDesc(this, 'a', {value: 7}).a; }\n })).a != 7;\n}) ? function(it, key, D){\n var protoDesc = getDesc(ObjectProto, key);\n if(protoDesc)delete ObjectProto[key];\n setDesc(it, key, D);\n if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);\n} : setDesc;\n\nvar wrap = function(tag){\n var sym = AllSymbols[tag] = _create($Symbol.prototype);\n sym._k = tag;\n DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {\n configurable: true,\n set: function(value){\n if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n }\n });\n return sym;\n};\n\nvar isSymbol = function(it){\n return typeof it == 'symbol';\n};\n\nvar $defineProperty = function defineProperty(it, key, D){\n if(D && has(AllSymbols, key)){\n if(!D.enumerable){\n if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n D = _create(D, {enumerable: createDesc(0, false)});\n } return setSymbolDesc(it, key, D);\n } return setDesc(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P){\n anObject(it);\n var keys = enumKeys(P = toIObject(P))\n , i = 0\n , l = keys.length\n , key;\n while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P){\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n var E = isEnum.call(this, key);\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]\n ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n var D = getDesc(it = toIObject(it), key);\n if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);\n return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);\n return result;\n};\nvar $stringify = function stringify(it){\n if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n var args = [it]\n , i = 1\n , $$ = arguments\n , replacer, $replacer;\n while($$.length > i)args.push($$[i++]);\n replacer = args[1];\n if(typeof replacer == 'function')$replacer = replacer;\n if($replacer || !isArray(replacer))replacer = function(key, value){\n if($replacer)value = $replacer.call(this, key, value);\n if(!isSymbol(value))return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n};\nvar buggyJSON = $fails(function(){\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n});\n\n// 19.4.1.1 Symbol([description])\nif(!useNative){\n $Symbol = function Symbol(){\n if(isSymbol(this))throw TypeError('Symbol is not a constructor');\n return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));\n };\n redefine($Symbol.prototype, 'toString', function toString(){\n return this._k;\n });\n\n isSymbol = function(it){\n return it instanceof $Symbol;\n };\n\n $.create = $create;\n $.isEnum = $propertyIsEnumerable;\n $.getDesc = $getOwnPropertyDescriptor;\n $.setDesc = $defineProperty;\n $.setDescs = $defineProperties;\n $.getNames = $names.get = $getOwnPropertyNames;\n $.getSymbols = $getOwnPropertySymbols;\n\n if(DESCRIPTORS && !require('./$.library')){\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n}\n\nvar symbolStatics = {\n // 19.4.2.1 Symbol.for(key)\n 'for': function(key){\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(key){\n return keyOf(SymbolRegistry, key);\n },\n useSetter: function(){ setter = true; },\n useSimple: function(){ setter = false; }\n};\n// 19.4.2.2 Symbol.hasInstance\n// 19.4.2.3 Symbol.isConcatSpreadable\n// 19.4.2.4 Symbol.iterator\n// 19.4.2.6 Symbol.match\n// 19.4.2.8 Symbol.replace\n// 19.4.2.9 Symbol.search\n// 19.4.2.10 Symbol.species\n// 19.4.2.11 Symbol.split\n// 19.4.2.12 Symbol.toPrimitive\n// 19.4.2.13 Symbol.toStringTag\n// 19.4.2.14 Symbol.unscopables\n$.each.call((\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +\n 'species,split,toPrimitive,toStringTag,unscopables'\n).split(','), function(it){\n var sym = wks(it);\n symbolStatics[it] = useNative ? sym : wrap(sym);\n});\n\nsetter = true;\n\n$export($export.G + $export.W, {Symbol: $Symbol});\n\n$export($export.S, 'Symbol', symbolStatics);\n\n$export($export.S + $export.F * !useNative, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});\n\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.symbol.js\n ** module id = 97\n ** module chunks = 0 1\n **/","// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export = require('./$.export');\n\n$export($export.P, 'Set', {toJSON: require('./$.collection-to-json')('Set')});\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es7.set.to-json.js\n ** module id = 98\n ** module chunks = 0 1\n **/","/*!\n * EventEmitter v4.2.11 - git.io/ee\n * Unlicense - http://unlicense.org/\n * Oliver Caldwell - http://oli.me.uk/\n * @preserve\n */\n\n;(function () {\n 'use strict';\n\n /**\n * Class for managing events.\n * Can be extended to provide event functionality in other classes.\n *\n * @class EventEmitter Manages event registering and emitting.\n */\n function EventEmitter() {}\n\n // Shortcuts to improve speed and size\n var proto = EventEmitter.prototype;\n var exports = this;\n var originalGlobalValue = exports.EventEmitter;\n\n /**\n * Finds the index of the listener for the event in its storage array.\n *\n * @param {Function[]} listeners Array of listeners to search through.\n * @param {Function} listener Method to look for.\n * @return {Number} Index of the specified listener, -1 if not found\n * @api private\n */\n function indexOfListener(listeners, listener) {\n var i = listeners.length;\n while (i--) {\n if (listeners[i].listener === listener) {\n return i;\n }\n }\n\n return -1;\n }\n\n /**\n * Alias a method while keeping the context correct, to allow for overwriting of target method.\n *\n * @param {String} name The name of the target method.\n * @return {Function} The aliased method\n * @api private\n */\n function alias(name) {\n return function aliasClosure() {\n return this[name].apply(this, arguments);\n };\n }\n\n /**\n * Returns the listener array for the specified event.\n * Will initialise the event object and listener arrays if required.\n * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.\n * Each property in the object response is an array of listener functions.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Function[]|Object} All listener functions for the event.\n */\n proto.getListeners = function getListeners(evt) {\n var events = this._getEvents();\n var response;\n var key;\n\n // Return a concatenated array of all matching events if\n // the selector is a regular expression.\n if (evt instanceof RegExp) {\n response = {};\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n response[key] = events[key];\n }\n }\n }\n else {\n response = events[evt] || (events[evt] = []);\n }\n\n return response;\n };\n\n /**\n * Takes a list of listener objects and flattens it into a list of listener functions.\n *\n * @param {Object[]} listeners Raw listener objects.\n * @return {Function[]} Just the listener functions.\n */\n proto.flattenListeners = function flattenListeners(listeners) {\n var flatListeners = [];\n var i;\n\n for (i = 0; i < listeners.length; i += 1) {\n flatListeners.push(listeners[i].listener);\n }\n\n return flatListeners;\n };\n\n /**\n * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Object} All listener functions for an event in an object.\n */\n proto.getListenersAsObject = function getListenersAsObject(evt) {\n var listeners = this.getListeners(evt);\n var response;\n\n if (listeners instanceof Array) {\n response = {};\n response[evt] = listeners;\n }\n\n return response || listeners;\n };\n\n /**\n * Adds a listener function to the specified event.\n * The listener will not be added if it is a duplicate.\n * If the listener returns true then it will be removed after it is called.\n * If you pass a regular expression as the event name then the listener will be added to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListener = function addListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var listenerIsWrapped = typeof listener === 'object';\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {\n listeners[key].push(listenerIsWrapped ? listener : {\n listener: listener,\n once: false\n });\n }\n }\n\n return this;\n };\n\n /**\n * Alias of addListener\n */\n proto.on = alias('addListener');\n\n /**\n * Semi-alias of addListener. It will add a listener that will be\n * automatically removed after its first execution.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addOnceListener = function addOnceListener(evt, listener) {\n return this.addListener(evt, {\n listener: listener,\n once: true\n });\n };\n\n /**\n * Alias of addOnceListener.\n */\n proto.once = alias('addOnceListener');\n\n /**\n * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.\n * You need to tell it what event names should be matched by a regex.\n *\n * @param {String} evt Name of the event to create.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvent = function defineEvent(evt) {\n this.getListeners(evt);\n return this;\n };\n\n /**\n * Uses defineEvent to define multiple events.\n *\n * @param {String[]} evts An array of event names to define.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.defineEvents = function defineEvents(evts) {\n for (var i = 0; i < evts.length; i += 1) {\n this.defineEvent(evts[i]);\n }\n return this;\n };\n\n /**\n * Removes a listener function from the specified event.\n * When passed a regular expression as the event name, it will remove the listener from all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to remove the listener from.\n * @param {Function} listener Method to remove from the event.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListener = function removeListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var index;\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key)) {\n index = indexOfListener(listeners[key], listener);\n\n if (index !== -1) {\n listeners[key].splice(index, 1);\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of removeListener\n */\n proto.off = alias('removeListener');\n\n /**\n * Adds listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.\n * You can also pass it a regular expression to add the array of listeners to all events that match it.\n * Yeah, this function does quite a bit. That's probably a bad thing.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.addListeners = function addListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(false, evt, listeners);\n };\n\n /**\n * Removes listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be removed.\n * You can also pass it a regular expression to remove the listeners from all events that match it.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeListeners = function removeListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(true, evt, listeners);\n };\n\n /**\n * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.\n * The first argument will determine if the listeners are removed (true) or added (false).\n * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be added/removed.\n * You can also pass it a regular expression to manipulate the listeners of all events that match it.\n *\n * @param {Boolean} remove True if you want to remove listeners, false if you want to add.\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add/remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {\n var i;\n var value;\n var single = remove ? this.removeListener : this.addListener;\n var multiple = remove ? this.removeListeners : this.addListeners;\n\n // If evt is an object then pass each of its properties to this method\n if (typeof evt === 'object' && !(evt instanceof RegExp)) {\n for (i in evt) {\n if (evt.hasOwnProperty(i) && (value = evt[i])) {\n // Pass the single listener straight through to the singular method\n if (typeof value === 'function') {\n single.call(this, i, value);\n }\n else {\n // Otherwise pass back to the multiple function\n multiple.call(this, i, value);\n }\n }\n }\n }\n else {\n // So evt must be a string\n // And listeners must be an array of listeners\n // Loop over it and pass each one to the multiple method\n i = listeners.length;\n while (i--) {\n single.call(this, evt, listeners[i]);\n }\n }\n\n return this;\n };\n\n /**\n * Removes all listeners from a specified event.\n * If you do not specify an event then all listeners will be removed.\n * That means every event will be emptied.\n * You can also pass a regex to remove all events that match it.\n *\n * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.removeEvent = function removeEvent(evt) {\n var type = typeof evt;\n var events = this._getEvents();\n var key;\n\n // Remove different things depending on the state of evt\n if (type === 'string') {\n // Remove all listeners for the specified event\n delete events[evt];\n }\n else if (evt instanceof RegExp) {\n // Remove all events matching the regex.\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n delete events[key];\n }\n }\n }\n else {\n // Remove all listeners in all events\n delete this._events;\n }\n\n return this;\n };\n\n /**\n * Alias of removeEvent.\n *\n * Added to mirror the node API.\n */\n proto.removeAllListeners = alias('removeEvent');\n\n /**\n * Emits an event of your choice.\n * When emitted, every listener attached to that event will be executed.\n * If you pass the optional argument array then those arguments will be passed to every listener upon execution.\n * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.\n * So they will not arrive within the array on the other side, they will be separate.\n * You can also pass a regular expression to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {Array} [args] Optional array of arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emitEvent = function emitEvent(evt, args) {\n var listenersMap = this.getListenersAsObject(evt);\n var listeners;\n var listener;\n var i;\n var key;\n var response;\n\n for (key in listenersMap) {\n if (listenersMap.hasOwnProperty(key)) {\n listeners = listenersMap[key].slice(0);\n i = listeners.length;\n\n while (i--) {\n // If the listener returns true then it shall be removed from the event\n // The function is executed either with a basic call or an apply if there is an args array\n listener = listeners[i];\n\n if (listener.once === true) {\n this.removeListener(evt, listener.listener);\n }\n\n response = listener.listener.apply(this, args || []);\n\n if (response === this._getOnceReturnValue()) {\n this.removeListener(evt, listener.listener);\n }\n }\n }\n }\n\n return this;\n };\n\n /**\n * Alias of emitEvent\n */\n proto.trigger = alias('emitEvent');\n\n /**\n * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.\n * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {...*} Optional additional arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.emit = function emit(evt) {\n var args = Array.prototype.slice.call(arguments, 1);\n return this.emitEvent(evt, args);\n };\n\n /**\n * Sets the current value to check against when executing listeners. If a\n * listeners return value matches the one set here then it will be removed\n * after execution. This value defaults to true.\n *\n * @param {*} value The new value to check for when executing listeners.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n proto.setOnceReturnValue = function setOnceReturnValue(value) {\n this._onceReturnValue = value;\n return this;\n };\n\n /**\n * Fetches the current value to check against when executing listeners. If\n * the listeners return value matches this one then it should be removed\n * automatically. It will return true by default.\n *\n * @return {*|Boolean} The current value to check for or the default, true.\n * @api private\n */\n proto._getOnceReturnValue = function _getOnceReturnValue() {\n if (this.hasOwnProperty('_onceReturnValue')) {\n return this._onceReturnValue;\n }\n else {\n return true;\n }\n };\n\n /**\n * Fetches the events object and creates one if required.\n *\n * @return {Object} The events storage object.\n * @api private\n */\n proto._getEvents = function _getEvents() {\n return this._events || (this._events = {});\n };\n\n /**\n * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.\n *\n * @return {Function} Non conflicting EventEmitter class.\n */\n EventEmitter.noConflict = function noConflict() {\n exports.EventEmitter = originalGlobalValue;\n return EventEmitter;\n };\n\n // Expose the class either via AMD, CommonJS or the global object\n if (typeof define === 'function' && define.amd) {\n define(function () {\n return EventEmitter;\n });\n }\n else if (typeof module === 'object' && module.exports){\n module.exports = EventEmitter;\n }\n else {\n exports.EventEmitter = EventEmitter;\n }\n}.call(this));\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wolfy87-eventemitter/EventEmitter.js\n ** module id = 99\n ** module chunks = 0 1\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n'use strict';\n\n/**\n * Provides a Basic Widget\n */\nclass DestroyableWidget {\n\n constructor() {\n this.listeners = [];\n }\n\n /**\n * Destroys a Widget\n */\n destroy() {\n this.listeners.forEach((listener) => {\n listener.element.removeEventListener.apply(listener.element, listener.args);\n });\n this.listeners = [];\n }\n\n /**\n * Adds an event and registers it later to remove bindings\n * @param {HTMLElement} element\n * @param {String} name\n * @param {Function} listener\n * @param {boolean} [capture]\n * @returns {Function}\n */\n addEventListener(element, name, listener, capture) {\n this.listeners.push({\n element,\n args: [name, listener, capture]\n });\n\n element.addEventListener(name, listener, capture);\n return listener;\n }\n\n}\n\nexport default DestroyableWidget;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/DestroyableWidget.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Modal\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n'use strict';\n\n/* global KeyboardEvent */\n\nimport Settings from './util/Settings';\nimport Event from './util/Event';\nimport Util from './util/Util';\nimport Widget from './Widget';\nimport FixedWindow from './lib/FixedWindow';\n\nconst HTML_ELEMENT = global.document.documentElement;\nconst KEY_ESC = 27;\n/* Attribute Names */\nconst ATTR_CREATE_NEW = 'data-new-instance';\nconst ATTR_CLOSE = 'data-close-modal';\nconst ATTR_NAME = 'data-modal';\n\n/* Class names */\nconst CLS_CONTAINER_CURRENT = 'front';\nconst CLS_OPEN = 'open';\nconst CLS_CURRENT = 'current';\nconst CLS_PART_OF_STACK = 'part-of-stack';\nconst CLS_MODAL_OPEN = 'modal-open';\nconst CLS_MODAL_CONTAINER = 'modal-container';\nconst CLS_ANIM_END = 'modal-anim-end';\nconst CLS_LOADER_CONTAINER = 'loader-container';\nconst CLS_LOADER = 'loader';\n\n/* Events */\n\n/**\n * Event triggered when modal is closed\n * @type {string}\n */\nexport const EVENT_MODAL_CLOSED = 'flexcss.modal.closed';\n/**\n * Event triggered before a modal is closed, cancelable\n * @type {string}\n */\nexport const EVENT_MODAL_BEFORE_CLOSED = 'flexcss.modal.beforeClose';\n/**\n * Event triggered when a modal is opened\n * @type {string}\n */\nexport const EVENT_MODAL_OPENED = 'flexcss.modal.opened';\n\n/**\n * Event triggered when modal is initilized, called on target\n * @type {string}\n */\nexport const EVENT_MODAL_INIT = 'flexcss.modal.init';\n\n/**\n * Triggered when the content of an async modal on a target is loaded, called on target\n * @type {string}\n */\nexport const EVENT_MODAL_ASYNC_TARGET_LOADED = 'flexcss.modal.asyncTargetLoaded';\n\n/**\n * A Modal Implementation\n */\nclass Modal {\n constructor(DelegateContainer, options) {\n const doc = global.document;\n const container = DelegateContainer instanceof HTMLElement ?\n DelegateContainer : doc.getElementById(DelegateContainer);\n\n // Instance vars:\n if (!container) {\n throw new Error(`Could not found container element by given ID/Element: ${DelegateContainer}`);\n }\n\n this.currentOpen = null;\n\n this.loading = false;\n\n this.container = container;\n\n /**\n * Default Options\n */\n this.options = {\n classNames: 'modal',\n closeOnEscape: true,\n closeOnBackgroundClick: true,\n destroyOnFinish: false,\n fixedContainer: true,\n containerClassNames: ''\n };\n\n Object.assign(this.options, options);\n\n // Container where events are delegated\n this.eventContainer = null;\n this.eventFunction = null;\n\n this.dataMainPageContainer = global.document.body;\n\n this.currentScrollTop = 0;\n\n this.modalContainer = null;\n\n // Destroy full modal instance when no dialogs are bind to?\n // Otherwise container is recycled\n this.destroyOnFinish = this.options.destroyOnFinish;\n }\n\n /**\n * Removes this modal from global stack\n * Will handle fixing main html element too\n * @private\n * @param n\n */\n _removeModalFromStack(n) {\n const t = Modal._modalInstances.indexOf(n);\n if (t > -1) {\n Modal._modalInstances.splice(t, 1);\n FixedWindow.getInstance().close().then(() => {\n HTML_ELEMENT.classList.remove(CLS_MODAL_OPEN);\n });\n }\n }\n\n\n /**\n * Modal container that contains all `stacked` modals for this instance\n * @returns {HTMLElement}\n */\n getModalContainer() {\n return this.modalContainer;\n }\n\n /**\n * Closes the current open modal of this stack\n * @params [e], optional event\n * @returns {*}\n */\n close(e) {\n const self = this;\n\n const options = self.currentOpen ? Util.applyOptionsFromElement(\n self.currentOpen, Util.copy(self.options)) : self.options;\n\n // close only on keyboard if instance should\n if (!options.closeOnEscape && e instanceof KeyboardEvent) {\n return false;\n }\n\n // close only on background if instance should\n if (!options.closeOnBackgroundClick && e &&\n e.type === Settings.getTabEvent() && !e.target.hasAttribute(ATTR_CLOSE)) {\n return false;\n }\n\n // if an instance is currently loading, prevent from closing\n if (self.loading) {\n return false;\n }\n\n if (e) {\n e.preventDefault();\n }\n\n if (self.currentOpen) {\n // dispatch beforeClose event, if prevented prevent modal from closing\n var ev = Event.dispatchAndFire(self.currentOpen, EVENT_MODAL_BEFORE_CLOSED);\n if (ev.defaultPrevented) {\n return false;\n }\n\n this._finishState(self.currentOpen);\n // if there is an previous modal\n if (self.currentOpen.prevModal) {\n // switch to the next modal\n return self.switchModals(self.currentOpen.prevModal,\n self.currentOpen.prevModal.prevModal || null);\n }\n\n // finally trigger closed event\n Event.dispatch(self.currentOpen, EVENT_MODAL_CLOSED).withOriginal(e).fire();\n\n }\n self._removeModalFromStack(self.currentOpen);\n\n // Full stack closed:\n self.currentOpen = null;\n if (self.modalContainer) {\n // setup next open\n var lastContainer = Modal._modalInstances[Modal._modalInstances.length - 1],\n classList = self.modalContainer.classList;\n classList.remove(CLS_CONTAINER_CURRENT);\n classList.remove(CLS_OPEN);\n // Remove all current classes from child-nodes\n for (var i = 0; i < self.modalContainer.childNodes.length; i++) {\n var node = self.modalContainer.childNodes[i], cl = node.classList;\n // remove applied styles\n self._finishState(node);\n cl.remove(CLS_CURRENT);\n cl.remove(CLS_PART_OF_STACK);\n }\n if (lastContainer) {\n lastContainer.parentNode.classList.add(CLS_CONTAINER_CURRENT);\n }\n }\n\n if (self.destroyOnFinish) {\n self.destroy();\n }\n return self;\n }\n\n /**\n * Resets a target when newly initilizes\n * @param target\n * @private\n */\n _finishState(target) {\n target.classList.remove(CLS_ANIM_END);\n }\n\n /**\n * Handler called when a Modal has finished an animation\n * @param e\n * @param self\n * @private\n */\n _finishAnim(e, self) {\n e.target.classList.add(CLS_ANIM_END);\n e.target.removeEventListener(e.type, self, true);\n }\n\n /**\n * Brings the given modal to front\n * @param co\n * @param last\n */\n switchModals(co, last) {\n co.prevModal = last;\n Modal._modalInstances.push(co);\n FixedWindow.getInstance().open(this);\n if (last) {\n this._finishState(last);\n Util.prefixedAnimateEvent(last, 'AnimationEnd', this._finishAnim);\n last.classList.add(CLS_PART_OF_STACK);\n }\n // set new currentOpen\n this.currentOpen = co;\n\n // bring current container to the front\n var instances = Modal._modalInstances;\n\n for (var m = 0; m < instances.length; m++) {\n instances[m].parentNode.classList.remove(CLS_CONTAINER_CURRENT);\n }\n this.modalContainer.classList.add(CLS_CONTAINER_CURRENT);\n // remove animations if animations has been completed, fixes various bugs:\n // - fixes nested scrolling element issue in iOS Browsers / Mobile-Safari\n Util.prefixedAnimateEvent(co, 'AnimationEnd', this._finishAnim);\n\n for (var i = 0; i < this.modalContainer.childNodes.length; i++) {\n var n = this.modalContainer.childNodes[i], isCurrent = n.classList.contains(CLS_CURRENT);\n if (n === co) {\n co.classList.add(CLS_CURRENT);\n co.classList.remove(CLS_PART_OF_STACK);\n this._finishState(co);\n } else {\n n.classList.remove(CLS_CURRENT);\n if (isCurrent) {\n this._removeModalFromStack(n);\n Event.dispatchAndFire(n, EVENT_MODAL_CLOSED);\n }\n }\n }\n }\n\n handleScrollbar() {\n if (Modal._modalInstances.length === 0) {\n HTML_ELEMENT.classList.add(CLS_MODAL_OPEN);\n }\n }\n\n /**\n * Creates a Modal and opens it (later)\n * @param e\n * @returns {Promise|boolean}\n */\n createWidget(e) {\n var self = this;\n if (this.loading) {\n return false;\n }\n\n // check if another modal has registered events on this dom path:\n if (e && e.target) {\n var foundInstance = Util.parentsUntil(e.target, function (node) {\n return node && node.flexModalInstance;\n });\n\n // if another instance has been found, abort\n if (foundInstance !== this.container) {\n return false;\n }\n }\n var targetContent, future, widget, target, hasTarget = true,\n isHtmlElement = e instanceof HTMLElement, isWidget = Widget.isWidget(e);\n if (isHtmlElement || isWidget) {\n if (isHtmlElement) {\n targetContent = e;\n } else {\n widget = e;\n targetContent = widget.element;\n }\n } else {\n target = e.target;\n if (!target) {\n throw 'Could not find target, did you pass an event, a HTMLElement or an Widget?';\n }\n hasTarget = target.hasAttribute(ATTR_NAME);\n targetContent = target.getAttribute(ATTR_NAME);\n widget = Widget.findWidget(target);\n if (target.hasAttribute(ATTR_CREATE_NEW) && !e.newInstance) {\n var newInstance = new Modal(this.container)\n .setDestroyOnFinish(true);\n e.newInstance = true;\n newInstance.fromEvent(e).then(function () {\n newInstance.registerEvents(newInstance.getModalContainer());\n });\n return false;\n }\n if (hasTarget) {\n e.stopImmediatePropagation();\n e.preventDefault();\n }\n }\n\n if (!hasTarget) {\n return false;\n }\n\n let modalContainerClasses = this.modalContainer ? this.modalContainer.classList : [];\n\n // lazy create modal container\n if (!this.modalContainer) {\n this.modalContainer = global.document.createElement('div');\n this.modalContainer.className = `${CLS_MODAL_CONTAINER} ${this.options.containerClassNames} ${CLS_OPEN}`;\n const closeModalFunction = function (ce) {\n if (self.loading) {\n return false;\n }\n if (Util.isPartOfNode(ce.target, self.currentOpen)) {\n if (!ce.target.hasAttribute(ATTR_CLOSE)) {\n return false;\n }\n }\n self.close(ce);\n };\n\n this.modalContainer.addEventListener(Settings.getTabEvent(), closeModalFunction, false);\n\n modalContainerClasses = this.modalContainer.classList;\n this.container.appendChild(this.modalContainer);\n\n } else {\n modalContainerClasses.add(CLS_OPEN);\n }\n\n let loader, doc = global.document, toggleLoader = function (show) {\n if (show) {\n loader = doc.createElement('div');\n loader.className = CLS_LOADER_CONTAINER;\n var loaderLoader = doc.createElement('div');\n loaderLoader.className = CLS_LOADER;\n loader.appendChild(loaderLoader);\n self.modalContainer.appendChild(loader);\n } else {\n loader.parentNode.removeChild(loader);\n }\n };\n\n this.handleScrollbar();\n\n modalContainerClasses.add(CLS_CONTAINER_CURRENT);\n modalContainerClasses.add('loading');\n this.loading = true;\n toggleLoader(true);\n var async = widget ? widget.getAsync() : null;\n if (Widget.isWidget(widget) && async) {\n future = async.then(function (r) {\n var result;\n if (r instanceof HTMLElement || r instanceof DocumentFragment) {\n result = r;\n } else {\n // Create container Element:\n var element = doc.createElement('div');\n element.className = self.options.classNames;\n element.innerHTML = r;\n element.id = Util.guid();\n result = element;\n }\n widget.finalContent = result;\n Event.dispatchAndFire(target, EVENT_MODAL_ASYNC_TARGET_LOADED);\n return result;\n });\n } else {\n var el = targetContent instanceof HTMLElement ||\n targetContent instanceof DocumentFragment ? targetContent : doc.getElementById(targetContent);\n if (el) {\n future = new Promise((resolve) => {\n resolve(el);\n });\n } else {\n throw 'Could not found given modal element (content) with ID: ' + targetContent;\n }\n }\n\n Event.dispatchAndFire(target, EVENT_MODAL_INIT);\n\n return future.then((thisEl) => {\n thisEl.hfWidgetInstance = self;\n self.modalContainer.appendChild(thisEl);\n modalContainerClasses.remove('loading');\n self.loading = false;\n toggleLoader(false);\n\n self.open(thisEl, true, e);\n\n return thisEl;\n });\n }\n\n /**\n * Open's an already rendered modal\n * @param {HTMLElement} modal\n * @param {Boolean} [internal], set to true to prevent container management\n * @param {Boolean} [maybeEvent], optional event-object that triggered open\n */\n open(modal, internal, maybeEvent) {\n\n\n if (!internal) {\n this.modalContainer.classList.add('open');\n this.handleScrollbar();\n }\n this.switchModals(modal, this.currentOpen);\n\n Event.dispatch(modal, EVENT_MODAL_OPENED).withOriginal(maybeEvent).fire();\n }\n\n\n registerEvents(delegate) {\n var delegateContainer = delegate || this.container, self = this;\n // Modals should always be fixed\n FixedWindow.getInstance().addScreenConstraint(Modal, (width) => true);\n // register modal instance so we can detect multiple registrars\n delegateContainer.flexModalInstance = self;\n self.eventFunction = function () {\n self.createWidget.apply(self, arguments);\n };\n delegateContainer.addEventListener(Settings.getTabEvent(), self.eventFunction, false);\n\n self.eventContainer = delegateContainer;\n return self;\n }\n\n\n /**\n * Creates a new Dialog Instance either directly from HTML Element or a Widget instance\n * @param {HTMLElement|Widget} widget instance or html element\n * @returns {Promise}\n */\n fromWidget(widget) {\n return this.createWidget(widget);\n }\n\n /**\n * Creates a Widget from event\n * @param e\n * @returns {Promise}\n */\n fromEvent(e) {\n return this.createWidget(e);\n }\n\n setDestroyOnFinish(v) {\n this.destroyOnFinish = v;\n return this;\n }\n\n /**\n * Destroy this widget instance, cleans empty DOM nodes\n * Will use fast MutationObserver if available, otherwise falls back to DOMNodeRemoved event\n */\n destroy() {\n let self = this, modalContainer = this.modalContainer;\n const isEmptyContainer = modalContainer.childNodes.length === 0;\n // Remove event listener on destroy, do not remove DOM node\n if (self.eventContainer) {\n self.eventContainer.removeEventListener(Settings.getTabEvent(), self.eventFunction, true);\n }\n\n if (isEmptyContainer) {\n if (modalContainer.parentNode) {\n modalContainer.parentNode.removeChild(modalContainer);\n }\n }\n if (global.MutationObserver) {\n var observer = new MutationObserver(function (mutations) {\n mutations.forEach(function () {\n if (isEmptyContainer) {\n modalContainer.parentNode.removeChild(modalContainer);\n observer.disconnect();\n }\n });\n });\n observer.observe(modalContainer, {childList: true});\n } else {\n modalContainer.addEventListener('DOMNodeRemoved', function (e) {\n if (e.target !== modalContainer && (modalContainer.childNodes.length - 1) === 0) {\n modalContainer.parentNode.removeChild(modalContainer);\n }\n });\n }\n }\n}\n\n\n// Static variable that keeps track of all open modals\nModal._modalInstances = [];\n\n// Global keydown listener for modal\nglobal.addEventListener('keydown', function (e) {\n if (e.keyCode === KEY_ESC) {\n var lastModal = Modal._modalInstances[Modal._modalInstances.length - 1];\n if (lastModal) {\n Widget.findWidget(lastModal).close(e);\n }\n }\n});\n\nexport default Modal;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Modal.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Tooltip\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\nimport Util from './util/Util';\nimport DestroyableWidget from './DestroyableWidget';\nimport Settings from './util/Settings';\n\n/**\n * @type {string}\n */\nconst CLASS_NAMES_TOOLTIP = 'tooltip-container';\n/**\n * @type {string}\n */\nconst CLASS_NAMES_OPEN = 'open';\n\n/**\n * @type {string}\n */\nconst ATTR_DATA_CLASSNAME = 'data-class';\n\n/**\n * @type {string}\n */\nconst ATTR_DATA_NO_TOUCH = 'data-no-touch';\n\n/**\n * @type {HTMLDocument}\n */\nconst doc = global.document;\n\n/**\n * Simple Tooltip\n */\nclass Tooltip extends DestroyableWidget {\n\n /**\n * Creates a Tooltip\n * @param {HTMLElement|String} DelegateContainer\n * @param {Object} [options]\n */\n constructor(DelegateContainer, options) {\n super();\n /**\n * The Container where possible events are captured\n */\n this.container = DelegateContainer instanceof HTMLElement ?\n DelegateContainer : doc.getElementById(DelegateContainer);\n\n if (!this.container) {\n throw new Error('Could not create Tooltip, DelegateContainer not found');\n }\n\n /**\n * The Container where tooltips are stored for this instance\n * @type {HTMLElement}\n */\n this.tooltipContainer = null;\n\n /**\n * Default Options\n */\n this.options = {\n containerClass: '',\n selectorAttribute: 'data-tooltip',\n collisionContainer: this.container\n };\n\n Object.assign(this.options, options || {});\n }\n\n /**\n * Creates and shows a tooltip\n * @param {HTMLElement} target where is this tooltip positioned\n * @param {String} text text content in tooltip, will be NOT escaped\n * @param {Boolean} [removeTitle] removes title element if given\n * @param {Node} [positionRelative]\n */\n createTooltip(target, text, removeTitle, positionRelative) {\n // abort if text is empty\n if (!text || text && text.trim() === '') {\n return;\n }\n\n if (Settings.isTouchDevice() && target && target.hasAttribute(ATTR_DATA_NO_TOUCH)) {\n return;\n }\n\n let tooltipContainer = this.tooltipContainer;\n\n if (!tooltipContainer) {\n tooltipContainer = doc.createElement('div');\n this.container.appendChild(tooltipContainer);\n this.tooltipContainer = tooltipContainer;\n }\n this._restoreClassNames(tooltipContainer, target);\n\n tooltipContainer.style.left = 'auto';\n tooltipContainer.style.top = 'auto';\n tooltipContainer.innerHTML = text;\n tooltipContainer.flexTooltipCurrentTarget = target;\n if (removeTitle) {\n target.oldTitle = text;\n target.removeAttribute('title');\n }\n\n Util.setupPositionNearby(positionRelative || target, tooltipContainer,\n this.options.collisionContainer, true, true);\n\n tooltipContainer.classList.add(CLASS_NAMES_OPEN);\n }\n\n _restoreClassNames(container, target) {\n // allow additional classname per tooltip on target element\n const classNames = [CLASS_NAMES_TOOLTIP, this.options.containerClass];\n const maybeTargetClass = target.getAttribute(ATTR_DATA_CLASSNAME);\n if (maybeTargetClass) {\n classNames.push(maybeTargetClass);\n }\n container.className = classNames.join(\" \");\n return this;\n }\n\n /**\n * @returns {HTMLElement|null}\n */\n getCurrentTarget() {\n return this.tooltipContainer ? this.tooltipContainer.flexTooltipCurrentTarget : null;\n }\n\n /**\n * Destroys this Widget\n * @returns {boolean}\n */\n destroy() {\n super.destroy();\n\n if (this.tooltipContainer) {\n this.tooltipContainer.parentNode.removeChild(this.tooltipContainer);\n return true;\n }\n return false;\n }\n\n /**\n * Removes a Tooltip on given target\n * @param {HTMLElement} [target], if not given will remove current open tooltip on this instance\n */\n removeTooltip(target) {\n let selfTarget = target;\n if (!selfTarget && this.tooltipContainer) {\n selfTarget = this.tooltipContainer.flexTooltipCurrentTarget;\n }\n if (this.tooltipContainer) {\n if (this.tooltipContainer.flexTooltipCurrentTarget !== selfTarget) {\n return;\n }\n this.tooltipContainer.classList.remove(CLASS_NAMES_OPEN);\n delete this.tooltipContainer.flexTooltipCurrentTarget;\n }\n if (selfTarget && selfTarget.oldTitle) {\n selfTarget.setAttribute('title', selfTarget.oldTitle);\n }\n }\n\n /**\n * Initilizes mouse events on container element\n */\n registerEvents() {\n const self = this;\n this.addEventListener(this.container, 'mouseover', (e) => {\n if (e.target.hasAttribute(self.options.selectorAttribute)) {\n self.createTooltip(e.target, e.target.getAttribute('title'), true);\n }\n });\n\n this.addEventListener(this.container, 'mouseout', (e) => {\n if (e.target.hasAttribute(self.options.selectorAttribute)) {\n self.removeTooltip(e.target);\n }\n });\n return this;\n }\n}\n\nexport default Tooltip;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Tooltip.js\n **/","/* global localStorage, document */\n\nimport { Rendering } from 'modules/Marklib';\nimport { Tooltip } from 'flexcss';\n\nconst KEY_ENTER = 13;\n\n/**\n * Contains Module for the demonstration\n */\n\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n const STORAGE_KEY = 'savedRanges';\n const ANIMATIONEND = 'animationend';\n let allRanges = [];\n const tooltip = new Tooltip(document.body);\n\n /**\n * Creates an animated rendering\n */\n function presentRendering(selector, classNames, speed) {\n const text = document.getElementById(selector).childNodes[0];\n const thisLength = text.length;\n\n const render = (autoMarkText, cp, length) => {\n let c = cp;\n const r = new Rendering(document, {\n className: classNames\n });\n const range = document.createRange();\n range.setStart(autoMarkText, 0);\n range.setEnd(autoMarkText, 1);\n r.renderWithRange(range);\n if (autoMarkText.parentNode.nextSibling) {\n const nextText = autoMarkText.parentNode.nextSibling.childNodes[0];\n setTimeout(() => {\n render(nextText, ++c, length);\n }, speed);\n }\n };\n\n return render(text, 0, thisLength);\n }\n\n presentRendering('automark', 'fadeInDown', 20);\n\n let savedRanges = JSON.parse(localStorage.getItem(STORAGE_KEY)) || [];\n let animated = false;\n\n /**\n * OnClick event for renderings\n */\n function onClick() {\n const self = this;\n this.wrapperNodes.forEach((n) => {\n n.addEventListener(ANIMATIONEND, function thisFunction(e) {\n e.target.classList.remove('bubble');\n e.target.removeEventListener(ANIMATIONEND, thisFunction);\n });\n n.classList.add('bubble');\n });\n\n if (tooltip.getCurrentTarget() === this.wrapperNodes[0]) {\n return;\n }\n\n tooltip.createTooltip(this.wrapperNodes[0], this.result.text, false);\n\n setTimeout(() => {\n if (tooltip.getCurrentTarget()) {\n document.addEventListener('click', function thisFunction() {\n if (tooltip.getCurrentTarget() && tooltip.getCurrentTarget() === self.wrapperNodes[0]) {\n tooltip.removeTooltip();\n }\n document.removeEventListener('click', thisFunction);\n });\n }\n }, 0);\n }\n\n\n savedRanges.forEach((range) => {\n const marker = new Rendering(document);\n try {\n marker.renderWithResult(range);\n allRanges.push(marker);\n marker.on('click', onClick);\n } catch (e) {\n console.warn(\"Could not render:\", range, e);\n localStorage.setItem(STORAGE_KEY, JSON.stringify([]));\n console.error('Cleared local storage because of a rendering issue, the page might have been changed ;)');\n }\n });\n\n window.addEventListener('scroll', () => {\n const el = document.getElementById('secondParagraph');\n const r = el.getBoundingClientRect();\n const html = document.documentElement;\n if (r.top <= html.clientHeight && r.bottom >= 0 && !animated) {\n animated = true;\n\n el.classList.add('animate');\n if (!savedRanges.length) {\n presentRendering('secondParagraphItem', 'marking', 30);\n }\n }\n });\n\n const actionMark = () => {\n try {\n const selection = document.getSelection();\n const renderer = new Rendering(document);\n const result = renderer.renderWithRange(selection.getRangeAt(0));\n\n renderer.on('click', onClick);\n allRanges.push(renderer);\n\n selection.removeAllRanges();\n savedRanges.push(result.serialize());\n localStorage.setItem(STORAGE_KEY, JSON.stringify(savedRanges));\n } catch (e) {\n console.warn(\"Could not add selection: \", e);\n }\n };\n\n document.addEventListener(\"keydown\", (e) => {\n if (e.keyCode === KEY_ENTER) {\n actionMark();\n }\n });\n\n document.addEventListener(\"click\", (e) => {\n if (e.target.id === 'action-mark') {\n return actionMark();\n } else if (e.target.id === 'action-clear') {\n allRanges.forEach((range) => range.destroy());\n savedRanges = [];\n allRanges = [];\n localStorage.setItem(STORAGE_KEY, JSON.stringify([]));\n }\n });\n});\n\nexport default Rendering;\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/main/modules/Site.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Dropdown\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n'use strict';\n\nimport Util from './util/Util';\nimport Settings from './util/Settings';\nimport Event from './util/Event';\nimport Widget from './Widget';\nimport FixedWindow from './lib/FixedWindow';\n\n/**\n * @type {string}\n */\nconst ATTR_CC = 'data-collision-container';\n/**\n * @type {string}\n */\nconst ATTR_DARKENER = 'data-darkener-container';\n/**\n * @type {string}\n */\nconst DARKENER_INIT = 'init';\n/**\n * @type {string}\n */\nconst ATTR_DATA_TARGET = 'data-target';\n/**\n * @type {string}\n */\nconst ATTR_CLOSE_DROPDOWN = 'data-close-dropdown';\n/**\n * @type {string}\n */\nconst ATTR_NAME = 'data-dropdown';\n/**\n * @type {string}\n */\nconst STATE_LOADING = 'loading';\n\nconst CLS_DARKENER_DROPDOWN = 'darkener-dropdown';\n/**\n * @type {string}\n */\nconst CLS_OPEN = 'open';\n\n/**\n * @type {string}\n */\nconst CLS_DROPDOWN = 'dropdown';\n\n/**\n * @type {string}\n */\nexport const EVENT_DROPDOWN_CLOSED = 'flexcss.dropdown.closed';\n\n/**\n * A Dropdown\n */\nclass Dropdown {\n constructor(DelegateContainer, Darkener) {\n const doc = global.document;\n\n /**\n * Container Element\n * @type {HTMLElement}\n */\n this.container = DelegateContainer instanceof HTMLElement ?\n DelegateContainer : doc.getElementById(DelegateContainer);\n\n this.currentOpen = null;\n this.currentTarget = null;\n /**\n * @type {HTMLElement}\n */\n this.darkener = Darkener instanceof HTMLElement ? Darkener : document.getElementById(Darkener);\n\n this.destroyOnClose = false;\n\n if (!this.darkener || !this.container) {\n throw new Error('required elements not found (darkener and container element)');\n }\n }\n\n /**\n * Method that handles delegation events for dropdowns\n * @param e\n * @returns {boolean}\n * @private\n */\n _delegateFunction(e) {\n const currentOpen = this.currentOpen;\n const target = Util.closestCallback(e.target, n => n instanceof HTMLElement && n.hasAttribute(ATTR_NAME));\n const targetIsCurrent = target === this.currentTarget;\n\n if (currentOpen && !Util.isPartOfNode(e.target, currentOpen) || targetIsCurrent) {\n this.close();\n if (targetIsCurrent) {\n e.preventDefault();\n }\n return targetIsCurrent ? false : this._delegateFunction(e);\n }\n\n if (target && !currentOpen) {\n e.preventDefault();\n e.stopImmediatePropagation();\n\n if (target.isLoading) {\n return false;\n }\n this.createDropdown(target);\n } else {\n if (currentOpen) {\n if (e.target.hasAttribute(ATTR_CLOSE_DROPDOWN)) {\n e.preventDefault();\n this.close();\n }\n if (!Util.isPartOfNode(e.target, currentOpen)) {\n this.close();\n }\n }\n }\n }\n\n /**\n * Register Events for this dropdown container\n * @returns {Dropdown}\n */\n registerEvents() {\n FixedWindow.getInstance().addScreenConstraint(Dropdown, (width) => width < Settings.get().smallBreakpoint);\n this.container.addEventListener(Settings.getTabEvent(), this._delegateFunction.bind(this), true);\n return this;\n }\n\n /**\n * Destroys this instance, unbinds events\n * @returns {Dropdown}\n */\n destroy() {\n this.container.removeEventListener(Settings.getTabEvent(), this._delegateFunction.bind(this), true);\n return this;\n }\n\n\n /**\n * Destroys instance on close of dropdown\n * @param v\n * @returns {Dropdown}\n */\n setDestroyOnClose(v) {\n this.destroyOnClose = v;\n return this;\n }\n\n\n /**\n * Will add the right class to container for specific darkener id\n * @param instance\n * @param show\n */\n toggleDarkenerToggler(instance, show) {\n const cls = `toggle-${(instance.id || CLS_DARKENER_DROPDOWN)}`;\n const classList = this.container.classList;\n if (show) {\n classList.add(cls);\n } else {\n classList.remove(cls);\n }\n }\n\n /**\n * Closes Dropdown on current instance\n * @return {Boolean|Promise}\n */\n close() {\n const currentOpen = this.currentOpen;\n if (!currentOpen) {\n return false;\n }\n let future;\n const darkenerInstance = currentOpen.flexDarkenerInstance || this.darkener;\n const thisCurrentOpen = currentOpen;\n\n future = new Promise((resolve) => {\n if (window.getComputedStyle(currentOpen).position === 'fixed') {\n Util.addEventOnce(Settings.getTransitionEvent(), currentOpen, () => {\n setTimeout(() => {\n Event.dispatchAndFire(thisCurrentOpen, EVENT_DROPDOWN_CLOSED);\n // if a new dropdown has been opened in the meantime, do not remove darkener\n if (this.currentOpen !== null) {\n return false;\n }\n this.toggleDarkenerToggler(darkenerInstance, false);\n resolve(true);\n }, Settings.get().darkenerFadeDelay);\n });\n } else {\n resolve(true);\n Event.dispatchAndFire(thisCurrentOpen, EVENT_DROPDOWN_CLOSED);\n }\n });\n\n FixedWindow.getInstance().close();\n currentOpen.classList.remove(CLS_OPEN);\n\n if (currentOpen.flexDarkenerInstance) {\n currentOpen.flexDarkenerInstance.classList.remove(DARKENER_INIT);\n } else {\n this.darkener.classList.remove(DARKENER_INIT);\n }\n\n this.currentOpen = null;\n this.currentTarget = null;\n\n if (this.destroyOnClose) {\n this.destroy();\n }\n\n return future;\n }\n\n /**\n * Creates a dropdown on given target and opens it\n * @param {HTMLElement} target target where this dropdown is placed\n * @param {FlexCss.Widget} [thisWidget] if given will use widget instead of widget instance\n * @return {FlexCss.Dropdown}\n */\n createDropdown(target, thisWidget) {\n const doc = global.document;\n\n if (!target) {\n throw new Error('Dropdown target not found');\n }\n\n const widget = thisWidget || Widget.findWidget(target);\n let future;\n const data = target.getAttribute(ATTR_NAME);\n const dropdownContainerElement = doc.getElementById(data);\n const async = !dropdownContainerElement && Widget.isWidget(widget) ? widget.getAsync() : false;\n\n if (async) {\n target.classList.add(STATE_LOADING);\n target.isLoading = true;\n future = async.then((r) => {\n if (r instanceof HTMLElement) {\n if (r.id) {\n target.setAttribute(ATTR_NAME, r.id);\n }\n return r;\n }\n // Create container Element:\n const element = doc.createElement('div');\n element.className = CLS_DROPDOWN;\n element.innerHTML = r;\n element.id = Util.guid();\n // Cache target for later use:\n target.setAttribute(ATTR_NAME, element.id);\n this.container.appendChild(element);\n return element;\n }).then((r) => {\n target.isLoading = false;\n target.classList.remove(STATE_LOADING);\n return r;\n });\n } else {\n if (!dropdownContainerElement) {\n throw new Error(`Could not found Dropdown container with ID \"${data}\"`);\n }\n future = new Promise((r) => {\n r(dropdownContainerElement);\n });\n }\n\n future.then((dropdownContent) => {\n if (this.currentOpen) {\n this.close();\n }\n // Skip one frame to show animation\n target.dropdownContent = dropdownContent;\n const isAbsolute = global.getComputedStyle(dropdownContent).position === 'absolute';\n dropdownContent.hfWidgetInstance = this;\n\n if (!target.flexCollisionContainer) {\n const collisionC = target.getAttribute(ATTR_CC);\n target.flexCollisionContainer = collisionC ?\n doc.getElementById(collisionC) || document.documentElement : document.documentElement;\n }\n\n dropdownContent.classList.toggle(CLS_OPEN);\n if (dropdownContent.classList.contains(CLS_OPEN)) {\n this.currentOpen = dropdownContent;\n this.currentTarget = target;\n }\n if (isAbsolute) {\n // Check collision:\n let selfTarget = target.getAttribute(ATTR_DATA_TARGET);\n selfTarget = selfTarget ? doc.getElementById(selfTarget) : target;\n Util.setupPositionNearby(selfTarget, dropdownContent, target.flexCollisionContainer);\n } else {\n FixedWindow.getInstance().open(this);\n // optionally get custom darkener container for target\n const d = target.getAttribute(ATTR_DARKENER);\n if (d) {\n dropdownContent.flexDarkenerInstance = doc.getElementById(d);\n (dropdownContent.flexDarkenerInstance || this.darkener).classList.toggle(DARKENER_INIT);\n } else {\n this.darkener.classList.toggle(DARKENER_INIT);\n }\n this.toggleDarkenerToggler(dropdownContent.flexDarkenerInstance || this.darkener, true);\n\n dropdownContent.style.left = '0';\n dropdownContent.style.top = 'auto';\n }\n });\n }\n\n}\n\nexport default Dropdown;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Dropdown.js\n **/","/*global HTMLFormElement, fetch, FormData, clearTimeout, NodeList*/\n\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Form\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n'use strict';\n\nimport Tooltip from './Tooltip';\nimport 'isomorphic-fetch';\nimport Event from './util/Event';\nimport Util from './util/Util';\nimport Settings from './util/Settings';\nimport DestroyableWidget from './DestroyableWidget';\n\nconst LOADING_CLASS = 'loading';\nconst DATA_ELEMENT_INVALID = 'data-flexcss-invalid';\nconst REMOTE = 'data-remote';\nconst REMOTE_ACTION = 'data-remote-action';\nconst ATTR_DISABLE_INLINE = 'data-disable-inline-validation';\nconst ATTR_DISABLE_REALTIME = 'data-disable-realtime-validation';\nconst ATTR_VALIDATOR = 'data-validate';\nconst ATTR_DATA_CUSTOM_MESSAGE = 'data-validation-message';\nconst ATTR_DATA_CUSTOM_LABEL = 'data-custom-label';\nconst ATTR_VALIDATE_VISIBILITY = 'data-validate-visibility';\nconst ATTR_ERROR_TARGET_ID = 'data-error-target';\nconst ATTR_DEPENDS = 'data-depends-selector';\nconst CONST_USE_JSON = 'json';\nconst CONST_REALTIME_EVENT = 'input';\nconst FOCUS_TOOLTIP_DELAY = 20;\nconst CLICK_TOOLTIP_DELAY = 150;\n\n/**\n * Triggered when form is fully initialized and handlers are binded\n * @type {string}\n */\nexport const EVENT_FORM_READY = 'flexcss.form.ready';\n/**\n * Fires when a form is submitted, cancelable\n * @type {string}\n */\nexport const EVENT_FORM_SUBMIT = 'flexcss.form.submit';\n/**\n * Fired directly after the form has been submitted via ajax\n * @type {string}\n */\nexport const EVENT_FORM_AFTER_AJAX_SUBMIT = 'flexcss.form.afterAjaxSubmit';\n/**\n * Fired when ajax events did complete\n * @type {string}\n */\nexport const EVENT_FORM_AJAX_COMPLETED = 'flexcss.form.ajaxCompleted';\n\n/**\n * A HTML5 Form Validation replacement\n */\n\nclass Form extends DestroyableWidget {\n /**\n * @param {HTMLElement} form\n * @param [options] optional options\n */\n constructor(form, options) {\n super();\n\n if (!(form instanceof HTMLFormElement)) {\n throw 'argument {0} form needs to be an form element';\n }\n\n /**\n * The Form\n * @type {HTMLElement}\n */\n this.form = form;\n\n /**\n * @type {Tooltip}\n */\n this.tooltips = null;\n\n /**\n * @type {Promise}\n */\n this.currentValidationFuture = new Promise(() => {\n });\n\n /**\n * Default options\n * @type {Object}\n */\n this.options = {\n // if true creates tooltips above element, uses FlexCss Tooltips\n createTooltips: true,\n // if true appends error message after input element\n appendError: false,\n // type of ajax submit\n ajaxSubmitType: 'POST',\n // json content type if ajax method is set to json\n ajaxJsonContentType: 'application/json; charset=utf-8',\n // allow inline validation\n inlineValidation: true,\n // validate in realtime (on `input` event)\n realtime: true,\n // timeout when realtime event should be captured\n realtimeTimeout: 250,\n // formatting method for an error\n formatErrorTooltip: (error) => {\n return ' ' + error;\n },\n // the class that will be put on the element to mark it failed validation\n inputErrorClass: 'invalid',\n // the container class for error messages below an element\n containerErrorClass: 'form-error',\n // additional options for fetch\n fetchOptions: {\n credentials: 'include'\n },\n // the container for tooltips\n tooltipContainer: form,\n tooltipOptions: {\n containerClass: 'error-tooltip'\n },\n // if you have a fixed header, either set a number or function here\n scrollToElementDiff: 0\n };\n\n // overwrite default options\n Object.assign(this.options, options);\n\n // apply settings from attributes\n Util.applyOptionsFromElement(form, this.options);\n\n // set form class as widget\n // Forms are very different to classical widgets,\n // we will not use our base widget class for this but just self\n form.hfWidgetInstance = this;\n\n /**\n * A List of Validators\n * @type {Object}\n * @private\n */\n this._validators = Form.globalValidators;\n\n /**\n * @type {Function}\n * @private\n */\n this._remoteValidationFunction = null;\n\n this.initFormValidation();\n }\n\n destroy() {\n super.destroy();\n if (this.tooltips) {\n this.tooltips.destroy();\n }\n }\n\n /**\n * Submits this form, either via ajax or just classical (default)\n * @param {HTMLFormElement} thisForm\n * @param {Event} e\n * @private\n * @returns {Promise|boolean} returns false if submit is cancled\n */\n _submitFunction(thisForm, e) {\n var shouldUseAjax = thisForm.getAttribute(REMOTE), ajaxPostUrl =\n thisForm.getAttribute(REMOTE_ACTION) ||\n thisForm.getAttribute('action') || window.location.href,\n useJson = CONST_USE_JSON === shouldUseAjax, self = this;\n\n var ev = Event.dispatch(thisForm, EVENT_FORM_SUBMIT).withOriginal(e).fire();\n\n // abort execution is event was prevented\n if (ev.defaultPrevented) {\n self._formStopLoading();\n return false;\n }\n\n if (shouldUseAjax === null) {\n // submit\n return thisForm.submit();\n }\n // prevent form from submit normally\n e.preventDefault();\n\n // add information that this is an XMLHttpRequest request (used by some frameworks)\n let defaultHeaders = {\n 'X-Requested-With': 'XMLHttpRequest'\n };\n\n // setup default headers\n if (useJson) {\n Object.assign(defaultHeaders, {\n 'Content-Type': this.options.ajaxJsonContentType\n });\n }\n let defaultOptions = Object.assign(this.options.fetchOptions, {\n headers: defaultHeaders,\n method: this.options.ajaxSubmitType\n });\n\n // support either JSON request payload or normal payload submission\n var serverCall = useJson ? fetch(ajaxPostUrl, Object.assign(defaultOptions, {\n body: JSON.stringify(this.serialize())\n })) : fetch(ajaxPostUrl, Object.assign(defaultOptions, {\n body: new FormData(thisForm)\n }));\n\n Event.dispatch(thisForm, EVENT_FORM_AFTER_AJAX_SUBMIT).withOriginal(e).fire();\n\n return serverCall.then((r) => {\n (self._remoteValidationFunction || Form.globalRemoteValidationFunction).apply(self, [r]);\n\n Event.dispatch(thisForm, EVENT_FORM_AJAX_COMPLETED).withOriginal(e).withDetail({ response: r }).fire();\n // always remove error class\n self._formStopLoading();\n });\n }\n\n /**\n * Serializes a form to a json object\n * @returns {Object}\n */\n serialize() {\n var selectors = [\n 'input[name]:not([type=\"radio\"]):enabled',\n 'input[type=\"radio\"][name]:checked',\n 'select[name]:enabled',\n 'textarea[name]:enabled'\n ], inputs = this.form.querySelectorAll(selectors.join(',')), result = {};\n\n Array.prototype.forEach.call(inputs, function (input) {\n var exists = result[input.name], value = input.value;\n if (exists instanceof Array) {\n exists.push(value);\n } else if (exists) {\n result[input.name] = [result[input.name], value];\n } else {\n result[input.name] = value;\n }\n });\n\n return result;\n }\n\n /**\n * Handles the chain of validation on given fields\n *\n * @param {HTMLElement|Array|NodeList} field\n * @param [focus] optional focus first error\n * @returns {Promise}\n */\n handleValidation(field, focus) {\n var fields = (field instanceof Array || field instanceof NodeList) ? field : [field];\n return this._handleValidation(fields, focus, true).then(((r) => {\n if (!r.foundAnyError) {\n // remove tooltips\n if (this.tooltips) {\n this.tooltips.removeTooltip();\n }\n }\n return r;\n }).bind(this));\n }\n\n /**\n * Handles errors on given node list\n * @param {NodeList} toValidateFields\n * @param {boolean} focus\n * @param {boolean} scoped if true, will only validate the fields `invalidFields`\n * @returns {Promise}\n * @private\n */\n _handleValidation(toValidateFields, focus, scoped) {\n var self = this;\n var arr = Form._createArrayFromInvalidFieldList(toValidateFields), isLocalInvalid = arr.length > 0;\n // focus must appear in the same frame for iOS devices\n if (isLocalInvalid && focus) {\n self._focusElement(arr[0]);\n }\n var validation = scoped ? this._customValidationsForElements(toValidateFields) :\n self.validateCustomFields();\n return validation.then((r) => {\n if (isLocalInvalid) {\n // combine browser and custom validators\n r.foundAnyError = true;\n }\n // get a unique field list of all fields that need to be checked and rendered\n // it's possible that we have duplicates in non scoped mode\n let thisToValidateFields = scoped ? toValidateFields :\n Array.from(arr).concat(r.checkedFields);\n r.checkedFields = thisToValidateFields;\n let foundInvalidFields = self.prepareErrors(thisToValidateFields, false),\n firstInvalidField = foundInvalidFields[0];\n if (firstInvalidField) {\n if (focus) {\n self._focusElement(firstInvalidField);\n // if element could not be focused:\n if (document.activeElement !== firstInvalidField) {\n self._handleTooltipHideClickAfterChange();\n }\n } else {\n self._handleTooltipHideClickAfterChange();\n }\n self.showAndOrCreateTooltip(firstInvalidField);\n }\n return r;\n });\n }\n\n /**\n * @param {HTMLElement} field\n * @param {ValidityState} validity\n * @returns {*}\n * @private\n */\n\n _setupErrorMessages(field, validity) {\n return Form.globalErrorMessageHandler ?\n Form.globalErrorMessageHandler.apply(this, [field, validity]) : false;\n }\n\n /**\n * Handles class labels for elements\n * @param {Object} fields\n * @private\n */\n _handleLabels(fields) {\n Object.keys(fields).forEach(function (id) {\n let labels = this.getForm().querySelectorAll('[for=\"' + id + '\"]'), invalid = fields[id];\n if (labels.length) {\n for (let labelsIndex = 0; labelsIndex < labels.length; labelsIndex++) {\n let labelEl = labels[labelsIndex];\n // we can't use toggle attribute, not supported in IE\n if (invalid) {\n this._markElementInvalid(labelEl);\n } else {\n this._markElementValid(labelEl);\n }\n }\n }\n }.bind(this));\n }\n\n /**\n * @param el\n * @private\n */\n _markElementInvalid(el) {\n el.setAttribute(DATA_ELEMENT_INVALID, \"true\");\n el.classList.add(this.options.inputErrorClass);\n }\n\n /**\n * @param el\n * @private\n */\n _markElementValid(el) {\n el.removeAttribute(DATA_ELEMENT_INVALID);\n el.classList.remove(this.options.inputErrorClass);\n }\n\n /**\n * A List of invalid elements (:invalid)\n * @returns {Array}\n * @private\n */\n _getInvalidElements() {\n return Array.prototype.filter.call(this.getForm().querySelectorAll(\":invalid\"), function (r) {\n return !(r instanceof HTMLFieldSetElement);\n });\n }\n\n /**\n * @param {HTMLElement} thisParent\n * @private\n */\n _removeElementErrors(thisParent) {\n let errors = thisParent.querySelectorAll('.' + this.options.containerErrorClass), inputsWithErrorClasses =\n thisParent.querySelectorAll(`[${DATA_ELEMENT_INVALID}]`);\n for (let elementErrorIndex = 0; elementErrorIndex < errors.length; elementErrorIndex++) {\n errors[elementErrorIndex].parentNode.removeChild(errors[elementErrorIndex]);\n }\n for (let inputErrorIndex = 0; inputErrorIndex < inputsWithErrorClasses.length; inputErrorIndex++) {\n let el = inputsWithErrorClasses[inputErrorIndex];\n this._markElementValid(el);\n }\n }\n\n\n /**\n * Registers a custom validator\n * @param {String} name\n * @param {Function} validator a validation function should always return either a Future(true) or Future(false)\n * even when the field has been invalidated with `setCustomValidity`, because of different browser `bugs`\n * we can't rely on that\n * @returns {Form}\n */\n registerValidator(name, validator) {\n this._validators[name] = validator;\n return this;\n }\n\n /**\n * Runs async validation\n * @param {String} validationRef\n * @param {HTMLElement} field\n * @returns {Promise}\n * @private\n */\n _runValidation(validationRef, field) {\n if (!this._validators[validationRef]) {\n throw 'Could not found validator: ' + validationRef;\n }\n var cl = field.classList, future = this._validators[validationRef].apply(this, [field, this.form]);\n cl.add(LOADING_CLASS);\n future.then(() => {\n cl.remove(LOADING_CLASS);\n });\n return future;\n }\n\n\n /**\n * Run custom validations for elements, validations are done async do support XHR Requests or other stuff\n *\n * @param {Array|NodeList} fields\n * @returns {Promise} contains either true if validations passed or false if something went wrong\n * @private\n */\n _customValidationsForElements(fields) {\n var futures = [], fieldsLength = fields.length, checkedFields = [];\n for (var iVal = 0; iVal < fieldsLength; iVal++) {\n var field = fields[iVal], validationRef = field.getAttribute(ATTR_VALIDATOR), validity = field.validity;\n if (this._validators[validationRef]) {\n // use local validation first and then continue with custom validations\n if (Form._shouldNotValidateField(field) || (validity && !validity.customError && !validity.valid)) {\n continue;\n }\n checkedFields.push(field);\n futures.push(this._runValidation(validationRef, field));\n } else {\n if (validationRef) {\n console.warn('data-validate was set but no validator was found');\n }\n }\n }\n return Promise.all(futures).then(function (allFutures) {\n let l = allFutures.length;\n let result = {\n checkedFields: checkedFields,\n foundAnyError: false\n };\n for (var fI = 0; fI < l; fI++) {\n if (!allFutures[fI]) {\n result.foundAnyError = true;\n break;\n }\n }\n return result;\n });\n }\n\n /**\n * Remove all errors for this form\n * @returns {Form}\n */\n removeErrors() {\n this._removeElementErrors(this.form);\n if (this.tooltips) {\n this.tooltips.removeTooltip();\n }\n return this;\n }\n\n /**\n * Will handle errors for given fields\n * @param {Array|NodeList} fields\n * @param {Boolean} removeAllErrors\n */\n prepareErrors(fields, removeAllErrors) {\n if (removeAllErrors) {\n this.removeErrors();\n }\n let labelGroups = {}, invalidFields = [];\n\n function handleAdditionalLabels(isInvalid, thisLabelGroup, field) {\n let additionalLabels = field.getAttribute(ATTR_DATA_CUSTOM_LABEL) ||\n field.id, group = thisLabelGroup[additionalLabels];\n if (additionalLabels) {\n // check additionally if field is currently marked as invalid\n // so the label is not marked as error if no field is marked as one\n group = group ? group : isInvalid;\n thisLabelGroup[additionalLabels] = group;\n }\n }\n\n // We save all validations in an extra property because we need to reset the validity due some\n // implementation errors in other browsers then chrome\n for (let i = 0; i < fields.length; i++) {\n let field = fields[i], errorTarget = Form._findErrorTarget(field), parent = errorTarget.parentNode,\n validity = field.validity, isInvalid = validity && !validity.valid;\n if (Form._shouldNotValidateField(field)) {\n continue;\n }\n field.flexFormsSavedValidity = JSON.parse(JSON.stringify(validity));\n handleAdditionalLabels(isInvalid, labelGroups, field);\n if (isInvalid) {\n if (!removeAllErrors) {\n // Remove current errors:\n this._removeElementErrors(parent);\n }\n // setup custom error messages:\n this._setupErrorMessages(field, validity);\n let msg = field.validationMessage;\n\n // mark fields as invalid\n this._markElementInvalid(errorTarget);\n this._markElementInvalid(field);\n\n if (this.options.appendError) {\n parent.insertAdjacentHTML(\"beforeend\",\n `
${msg}
`);\n }\n invalidFields.push(field);\n field.flexFormsSavedValidationMessage = msg;\n } else {\n // restore invalid fields\n this._markElementValid(errorTarget);\n this._markElementValid(field);\n\n // cleanup\n delete field.flexFormsSavedValidationMessage;\n\n // remove error markup\n this._removeElementErrors(parent);\n }\n // We have to reset the custom validity here to allow native validations work again\n field.setCustomValidity('');\n }\n // if validates a single field we need to check the linked fields to a label:\n if (fields.length === 1) {\n let field = fields[0];\n let id = field.getAttribute(ATTR_DATA_CUSTOM_LABEL) || field.id;\n if (id) {\n let linkedFields = Array.from(\n this.getForm().querySelectorAll(`[${ATTR_DATA_CUSTOM_LABEL}=\"${id}\"], #${id}`));\n linkedFields.forEach(function (thisField) {\n let validity = thisField.validity, isInvalid = validity && !validity.valid &&\n this._isElementInvalidElement(thisField);\n handleAdditionalLabels(isInvalid, labelGroups, thisField);\n }.bind(this));\n }\n }\n this._handleLabels(labelGroups);\n return invalidFields;\n }\n\n /**\n * Validates all custom fields\n * @returns {Promise}\n */\n validateCustomFields() {\n return this._customValidationsForElements(\n this.form.querySelectorAll(\"[data-validate]\"));\n }\n\n /**\n * Tests if a field should be validated\n * @param {HTMLElement} field\n * @returns {boolean}\n * @private\n */\n static _shouldNotValidateField(field) {\n var target = Form._findErrorTarget(field);\n return target instanceof HTMLFieldSetElement || field.validity === undefined ||\n (target.hasAttribute(ATTR_VALIDATE_VISIBILITY) && !Util.isVisible(target));\n }\n\n /**\n * Creates an array from a node list with invalid items\n * This Method expicitly checks if field should not be validated so it can be used to foucs a field\n * @param list\n * @returns {Array}\n * @private\n */\n static _createArrayFromInvalidFieldList(list) {\n var arr = [];\n for (var i = 0; i < list.length; ++i) {\n var n = list[i];\n if (n.validity && !n.validity.valid) {\n if (!Form._shouldNotValidateField(n)) {\n arr.push(n);\n }\n }\n }\n return arr;\n }\n\n\n /**\n * This form\n * @returns {HTMLElement}\n */\n getForm() {\n return this.form;\n }\n\n /**\n * Registers a function that handles remote validation\n * @param {Function} func\n * @returns {Form}\n */\n registerRemoteValidation(func) {\n this._remoteValidationFunction = func;\n return this;\n }\n\n\n /**\n * Formats the error content for the tooltip\n * @param {String} error\n * @returns {String}\n * @private\n */\n _formatErrorTooltip(error) {\n return this.options.formatErrorTooltip.apply(this, [error]);\n }\n\n /**\n * Tries to find a custom error target on given target\n * @param target\n * @returns {HTMLElement}\n * @private\n */\n static _findErrorTarget(target) {\n var el = target.getAttribute(ATTR_ERROR_TARGET_ID) || target,\n foundTarget = el instanceof HTMLElement ? el : global.document.getElementById(el);\n if (!foundTarget) {\n throw 'Given error target did not exsits:' + target;\n }\n return foundTarget;\n }\n\n /**\n * Creates a tooltip at given element, will only create a new instance if not created\n * @param {HTMLElement} target\n * @param {Boolean} [remove]\n */\n showAndOrCreateTooltip(target, remove) {\n var self = this;\n if (!this.tooltips && this.options.createTooltips) {\n this.tooltips = new Tooltip(this.options.tooltipContainer, this.options.tooltipOptions);\n }\n if (!this.options.createTooltips) {\n return false;\n }\n\n if (!target.flexFormsSavedValidity) {\n return false;\n }\n var errorTarget = Form._findErrorTarget(target);\n if (!target.flexFormsSavedValidity.valid && self._isElementInvalidElement(errorTarget)) {\n self.tooltips.createTooltip(errorTarget,\n self._formatErrorTooltip(target.flexFormsSavedValidationMessage), false);\n return true;\n } else {\n if (remove) {\n self.tooltips.removeTooltip();\n }\n }\n return false;\n }\n\n /**\n * Checks if element is marked as invalid\n * @param {HTMLElement} el\n * @returns {boolean}\n * @private\n */\n _isElementInvalidElement(el) {\n return el.hasAttribute(DATA_ELEMENT_INVALID);\n }\n\n /**\n * Handles invalid event of a form\n * @param {Event} e\n * @returns {Promise|boolean}\n * @private\n */\n _checkIsInvalid(e) {\n e.preventDefault();\n var invalidFields = this.getForm().querySelectorAll(\":invalid\");\n return this._handleValidation(invalidFields, true, false);\n }\n\n /**\n * Will query dependent fields (by selector) that should be validated with given field\n * @param field\n * @returns {NodeList|[]}\n * @private\n */\n _getDependentFields(field) {\n let fieldSelector = field.getAttribute(ATTR_DEPENDS), base = [field];\n if (fieldSelector) {\n base.push.apply(base, Array.prototype.slice.apply(\n this.getForm().querySelectorAll(fieldSelector)));\n }\n return base;\n }\n\n /**\n * @private\n * @param {HTMLElement} [target]\n */\n _handleTooltipInline(target) {\n if (this.tooltips) {\n this.tooltips.removeTooltip(target);\n }\n }\n\n /**\n * Initializes validation for a given form, registers event handlers\n */\n initFormValidation() {\n // Suppress the default bubbles\n var form = this.getForm(),\n self = this,\n invalidEvent = 'invalid';\n\n /**\n * Validates if is valid realtime element\n * @param {HTMLElement} target\n * @returns {boolean}\n * @private\n */\n function _checkIsValidRealtimeElement(target) {\n return !target.hasAttribute(ATTR_DISABLE_REALTIME) && !target.hasAttribute(ATTR_DISABLE_INLINE);\n }\n\n form.addEventListener(invalidEvent, function (e) {\n e.preventDefault();\n }, true);\n\n Util.addEventOnce(invalidEvent, form, function handleInvalid(e) {\n self._formLoading();\n var result = self._checkIsInvalid(e);\n if (result) {\n self.currentValidationFuture = new Promise((resolve) => {\n result.then(function (r) {\n setTimeout(function () {\n Util.addEventOnce(invalidEvent, form, handleInvalid, true);\n }, 0);\n resolve(r);\n self._formStopLoading();\n if (!r.foundAnyError) {\n self._formLoading();\n self._handleSubmit(e);\n }\n });\n });\n }\n }, true);\n\n this.addEventListener(form, 'reset', () => {\n this.removeErrors();\n });\n\n // Timeout for keys:\n var TIMEOUT_KEYDOWN, KEYDOWN_RUNNING = false;\n\n // resets keydown events\n function clearKeyDownTimeout() {\n KEYDOWN_RUNNING = false;\n clearTimeout(TIMEOUT_KEYDOWN);\n }\n\n // setup custom realtime event if given\n if (self.options.realtime) {\n this.addEventListener(form, CONST_REALTIME_EVENT, function (e) {\n if (self._formIsLoading()) {\n return;\n }\n var target = e.target;\n clearTimeout(TIMEOUT_KEYDOWN);\n if (KEYDOWN_RUNNING) {\n return;\n }\n TIMEOUT_KEYDOWN = setTimeout(() => {\n let isStillTarget = document.activeElement === e.target;\n if (!_checkIsValidRealtimeElement(target)) {\n return;\n }\n if (isStillTarget) {\n self._handleTooltipInline();\n }\n KEYDOWN_RUNNING = true;\n let dependentFields = self._getDependentFields(target);\n self._customValidationsForElements(dependentFields).then(function () {\n self.prepareErrors(dependentFields, false);\n if (isStillTarget) {\n self.showAndOrCreateTooltip(e.target);\n }\n // future must be resolved before another event can be started\n KEYDOWN_RUNNING = false;\n });\n }, self.options.realtimeTimeout);\n }, true);\n }\n\n /**\n * Validates if target is a valid input field to check blur and focus events\n *\n * @param {HTMLElement} target\n * @returns {boolean}\n * @private\n */\n function _checkIsValidBlurFocusElement(target) {\n let attr = target.getAttribute(\"type\");\n return (attr !== \"radio\" && attr !== \"checkbox\" && attr !== \"submit\");\n }\n\n /**\n * Validates if is valid inline-check element\n * @param {HTMLElement} target\n * @returns {boolean}\n * @private\n */\n function _checkIsValidInlineCheckElement(target) {\n return !target.hasAttribute(ATTR_DISABLE_INLINE);\n }\n\n this.addEventListener(form, 'blur', function (e) {\n // do not hide tooltip after change event\n if (!e.target.flexcssKeepTooltips) {\n self._handleTooltipInline(e.target);\n }\n delete e.target.flexcssKeepTooltips;\n }, true);\n\n // handle focus on input elements\n // will show an error if field is invalid\n this.addEventListener(form, \"focus\", function (e) {\n if (self._formIsLoading()) {\n return;\n }\n // do not track errors for checkbox and radios on focus:\n if (!_checkIsValidBlurFocusElement(e.target)) {\n return;\n }\n // we need to delay this a little, because Firefox and Safari do not show a tooltip after it\n // just have been hidden (on blur). Maybe fix this with a queue later\n setTimeout(function () {\n self.showAndOrCreateTooltip(e.target);\n }, FOCUS_TOOLTIP_DELAY);\n }, true);\n\n if (self.options.inlineValidation) {\n // Handle change for checkbox, radios and selects\n this.addEventListener(form, \"change\", function (e) {\n const target = e.target;\n if (self._formIsLoading() || !_checkIsValidInlineCheckElement(target)) {\n return;\n }\n clearKeyDownTimeout();\n const name = target.getAttribute('name');\n let inputs = name ? form.querySelectorAll('[name=\"' + name + '\"]') : [target];\n // we only support dependent fields for a single widgets right now\n if (inputs.length === 1) {\n inputs = self._getDependentFields(target);\n }\n self._customValidationsForElements(inputs).then(function () {\n self.prepareErrors(inputs, false);\n target.flexcssKeepTooltips = self.showAndOrCreateTooltip(target, true);\n if (target.flexcssKeepTooltips) {\n self._handleTooltipHideClickAfterChange();\n }\n });\n });\n }\n\n // prevent default if form is invalid\n this.addEventListener(form, \"submit\", function listener(e) {\n self._submitListener(e, listener);\n });\n\n Event.dispatchAndFire(form, EVENT_FORM_READY);\n }\n\n /* Loading states, unfortunately we can't check if a promise is pending :/*/\n /* TODO: Maybe wrap promise to extend this functionality */\n\n _formLoading() {\n this.getForm().classList.add(LOADING_CLASS);\n }\n\n _formStopLoading() {\n this.getForm().classList.remove(LOADING_CLASS);\n }\n\n _formIsLoading() {\n return this.getForm().classList.contains(LOADING_CLASS);\n }\n\n // this defines the logic after a change event when a tooltip is shown\n // because we call this method inside the change event, the click would be immeditally executed with the change\n // event when not using setTimeout(). There might be another solution for this...\n _handleTooltipHideClickAfterChange() {\n const self = this;\n if (this.options.createTooltips) {\n setTimeout(function () {\n Util.addEventOnce(Settings.getTabEvent(), global.document.body, function (t) {\n if (!self._isElementInvalidElement(t.target)) {\n self._handleTooltipInline();\n }\n });\n }, CLICK_TOOLTIP_DELAY);\n }\n }\n\n _focusElement(el) {\n el.focus();\n Util.scrollToElement(el, this.options.scrollToElementDiff);\n }\n\n /**\n * Listener that is executed on form submit\n * @param e\n * @param submitListener\n * @returns {boolean}\n * @private\n */\n _submitListener(e, submitListener) {\n\n const form = this.getForm(),\n self = this,\n submitEvent = 'submit';\n\n if (this._formIsLoading()) {\n e.preventDefault();\n return false;\n }\n this._formLoading();\n form.removeEventListener(submitEvent, submitListener);\n this.removeErrors();\n e.preventDefault();\n // reset:\n if (form.checkValidity()) {\n form.addEventListener(submitEvent, submitListener);\n // It's possible that the form is valid but the custom validations need to be checked again:\n self.currentValidationFuture = new Promise((resolve) => {\n var validation = self.validateCustomFields();\n validation.then(function (r) {\n // because custom validators may mark multiple fields as invalid, we get all of them in the form\n var fields = self._getInvalidElements(),\n errors = self.prepareErrors(fields, false), firstError = errors[0];\n if (firstError) {\n self._focusElement(firstError);\n self.showAndOrCreateTooltip(firstError, true);\n }\n resolve(r);\n });\n });\n self.currentValidationFuture.then(function (r) {\n if (!r.foundAnyError) {\n // Handle submitting the form to server:\n self._handleSubmit(e);\n } else {\n self._formStopLoading();\n }\n });\n } else {\n self._formStopLoading();\n form.addEventListener(submitEvent, submitListener);\n }\n }\n\n\n /**\n * Handles submitting, optionally allows to stop submitting\n * @param e\n * @private\n */\n _handleSubmit(e) {\n this._submitFunction(this.form, e);\n }\n\n\n /**\n * Registers a global event Handler\n * @param errorFunc\n */\n static registerErrorMessageHandler(errorFunc) {\n Form.globalErrorMessageHandler = errorFunc;\n }\n\n /**\n * Initialize forms for a specific selector\n * @param {String} selector\n * @param {Object} [options]\n * @return {array.}\n */\n static init(selector, options) {\n var forms = selector instanceof HTMLElement ? selector.querySelectorAll('form') :\n document.querySelectorAll(selector), instances = [];\n for (var i = 0; i < forms.length; i++) {\n instances.push(new Form(forms[i], options));\n }\n return instances;\n }\n\n\n /**\n * Registers a global validator that is usable on all form instances\n * @param {String} name\n * @param {Function} validator\n * @returns {Function}\n */\n static registerValidator(name, validator) {\n Form.globalValidators[name] = validator;\n return Form;\n }\n\n /**\n * Registers a global function that is called when a form should validate the response of a server\n * @param {Function} func\n * @returns {Form}\n */\n static registerGlobalRemoteValidationFunction(func) {\n Form.globalRemoteValidationFunction = func;\n return Form;\n }\n}\n\n\n/**\n * Global validators\n * @type {Array}\n */\nForm.globalValidators = [];\n\n/**\n * Global Remote validation function\n */\nForm.globalRemoteValidationFunction = function () {\n};\n\n/**\n * Handles custom error messages extracts custom message by default\n */\nForm.globalErrorMessageHandler = (field, validity) => {\n if (!validity.customError) {\n let customMsg = field.getAttribute(ATTR_DATA_CUSTOM_MESSAGE);\n if (customMsg) {\n field.setCustomValidity(customMsg);\n }\n }\n};\n\nexport default Form;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Form.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.LightBox\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\n'use strict';\n\n/* global Image, TouchEvent*/\n\nimport Modal, { EVENT_MODAL_CLOSED } from './Modal';\nimport Settings from './util/Settings';\nimport Widget from './Widget';\n\nconst ATTR_MAX_WIDTH = 'data-original-width';\nconst ATTR_MAX_HEIGHT = 'data-original-height';\nconst ATTR_SRC = 'data-src';\n\nconst CLS_HAS_PREV = 'has-prev';\nconst CLS_HAS_NEXT = 'has-next';\nconst CLS_LOADING = 'loading';\n\nconst ATTR_NO_THUMBNAIL = 'data-no-thumbnail';\nconst ATTR_DATA_HREF = 'data-href';\nconst ATTR_HREF = 'href';\n\nconst KEY_NEXT = 39;\nconst KEY_PREV = 37;\nconst ATTR_CLOSE = 'data-close-modal';\n/**\n * A Simple LightBox\n */\nclass LightBox {\n\n /**\n * Creates a new Lightbox\n * @param DelegateContainer\n * @param AttributeSelector\n * @param ModalAppend\n * @param [options]\n */\n constructor(DelegateContainer, AttributeSelector, ModalAppend, options) {\n const thisDelegateContainer = DelegateContainer instanceof HTMLElement ? DelegateContainer :\n document.getElementById(DelegateContainer);\n\n this._modalAppend = ModalAppend || DelegateContainer;\n /**\n * @type {Function}\n */\n this._resizeEvent = null;\n /**\n * @type {Function}\n */\n this._keyboardNextEvent = null;\n /**\n * @type {Promise}\n */\n this._future = null;\n /**\n * @type {Promise}\n */\n this._nextFuture = this._future;\n /**\n * @type {HTMLElement}\n */\n this._imageContainer = null;\n /**\n * @type {HTMLElement}\n */\n this._modalContainerDiv = null;\n /**\n * @type {HTMLElement}\n */\n this._contentContainer = null;\n /**\n * @type {HTMLElement}\n */\n this._closerContainerDiv = null;\n /**\n * @type {HTMLElement}\n */\n this._delegateContainer = thisDelegateContainer;\n /**\n * @type {HTMLElement}\n */\n this._attributeSelector = AttributeSelector;\n /**\n * @type {Widget}\n */\n this._widget = null;\n /**\n * @type {boolean}\n */\n this._isOpen = false;\n /**\n * @type {HTMLElement}\n */\n this.target = null;\n /**\n * @type {HTMLElement}\n */\n this.img = null;\n /**\n * @type {boolean}\n */\n this._isLoading = false;\n\n /**\n * Default options\n */\n this.options = {\n // set if prev and next should be available\n registerPrevNextEvents: true,\n // set if modal should be closed after last image\n closeOnLast: true,\n // called when next image is requested (either by keyboard or click), return false to abort\n onNext: () => {\n return true;\n },\n onClose: () => {\n },\n getNext: null,\n getPrev: null,\n // called when underlying target changed\n onSwitchImage: () => {\n }\n };\n\n Object.assign(this.options, options);\n }\n\n /**\n * @param {HTMLElement} node\n * @returns {HTMLElement|null}\n */\n findImmediateNextTarget(node) {\n if (node && node.children[0].hasAttribute(this._attributeSelector)) {\n return node.children[0];\n }\n return null;\n }\n\n /**\n * Will fetch the next element of a lightBox\n * @param {HTMLElement} target\n * @returns {null|HTMLElement}\n */\n getNext(target) {\n if (this.options.getNext) {\n return this.options.getNext.apply(this, [target]);\n }\n return this.findImmediateNextTarget(target.parentNode.nextElementSibling);\n }\n\n /**\n * Will fetch the previous element of a lightBox\n * @param {HTMLElement} target\n * @returns {null|HTMLElement}\n */\n getPrev(target) {\n if (this.options.getPrev) {\n return this.options.getPrev.apply(this, [target]);\n }\n return this.findImmediateNextTarget(target.parentNode.previousElementSibling);\n }\n\n /**\n * Registers events for delegate container\n */\n registerEvents(onOpen) {\n this._delegateContainer.addEventListener(Settings.getTabEvent(), (e) => {\n let target = e.target;\n const parent = target.parentNode;\n let validTarget = target.hasAttribute(this._attributeSelector);\n const parentIsValid = parent && parent.hasAttribute(this._attributeSelector);\n\n if (!validTarget && parentIsValid) {\n validTarget = true;\n target = parent;\n }\n if (validTarget) {\n e.preventDefault();\n this.open(target).then((r) => {\n if (onOpen) {\n onOpen.apply(this, [r, target]);\n }\n });\n }\n });\n }\n\n /**\n * @returns {HTMLElement}\n */\n getContentContainer() {\n return this._contentContainer;\n }\n\n /**\n * Setup max-width and max-height\n * @param {HTMLElement} target\n * @param {HTMLElement} img\n * @param {HTMLElement} loadedImage\n * @private\n */\n static _setupMaxWidthHeight(target, img, loadedImage) {\n const nextMaxWidth = target.getAttribute(ATTR_MAX_WIDTH);\n const nextMaxHeight = target.getAttribute(ATTR_MAX_HEIGHT);\n if (nextMaxWidth && nextMaxHeight) {\n img.style.maxWidth = nextMaxWidth + \"px\";\n img.style.maxHeight = nextMaxHeight + \"px\";\n } else {\n img.style.maxWidth = loadedImage.width + \"px\";\n img.style.maxHeight = loadedImage.height + \"px\";\n }\n }\n\n /**\n * Switches to the next image\n * @param {boolean} direction\n */\n switchImageByDirection(direction) {\n const next = direction ? this.getPrev(this.target) : this.getNext(this.target);\n if (this.options.onNext.apply(this, [next])) {\n return this.switchImage(next);\n }\n return new Promise((_, reject) => reject(next));\n }\n\n /**\n * Checks if lightbox is currently loading\n * @returns {boolean}\n */\n isLoading() {\n return this._isLoading;\n }\n\n /**\n * Checks if modal should be closed\n * @private\n */\n _runOptionalClose() {\n if (this.options.closeOnLast) {\n this.modal.close();\n }\n }\n\n _setupPrevNextStates() {\n const target = this.target;\n const hasPrev = this.getPrev(target);\n const hasNext = this.getNext(target);\n const hasPrevClass = CLS_HAS_PREV;\n const hasNextClass = CLS_HAS_NEXT;\n // because IE does not support the second toggle parameter, we need to do this manually\n if (hasPrev) {\n this._imageContainer.classList.add(hasPrevClass);\n } else {\n this._imageContainer.classList.remove(hasPrevClass);\n }\n if (hasNext) {\n this._imageContainer.classList.add(hasNextClass);\n } else {\n this._imageContainer.classList.remove(hasNextClass);\n }\n }\n\n /**\n * @param img\n * @private\n */\n _calculateContainer(img) {\n if (Settings.isIE()) {\n setTimeout(() => {\n this._imageContainer.style.height = img.offsetHeight + 'px';\n }, 0);\n }\n }\n\n /**\n * Switch to a specific image\n * @param next\n * @returns {*}\n */\n switchImage(next) {\n const self = this;\n const img = this.img;\n this._isLoading = true;\n self._nextFuture = new Promise((resolve, reject) => {\n // notify observers about image switching\n self.options.onSwitchImage.apply(self, [self._nextFuture]);\n if (next) {\n const nextThumb = next.hasAttribute(ATTR_NO_THUMBNAIL) ? next : (next.children[0] || next);\n const nextHighRes = next.getAttribute(ATTR_DATA_HREF) ||\n next.getAttribute(ATTR_HREF);\n const nextSource = nextThumb.getAttribute(ATTR_SRC) || nextThumb.src || nextHighRes;\n const nextImgObject = new Image();\n\n if (!nextSource) {\n reject(next);\n return;\n }\n // set new target to next element\n this.target = next;\n nextImgObject.src = nextSource;\n self._imageContainer.classList.add(CLS_LOADING);\n nextImgObject.addEventListener('load', () => {\n img.src = nextSource;\n self._imageContainer.style.backgroundImage = 'url(' + nextSource + ')';\n LightBox._setupMaxWidthHeight(next, img, nextImgObject);\n self._calculateContainer(img);\n self.highRes(nextThumb, nextHighRes);\n self._setupPrevNextStates();\n self._imageContainer.classList.remove(CLS_LOADING);\n this._isLoading = false;\n resolve(nextSource, this.target);\n });\n } else {\n reject(this);\n }\n });\n return self._nextFuture;\n }\n\n\n /**\n * Setup High-Resolution picture\n * @param {HTMLElement} thisThumbnail\n * @param {String} thisImgHighResolution\n */\n highRes(thisThumbnail, thisImgHighResolution) {\n if (thisImgHighResolution && thisThumbnail.src !== thisImgHighResolution) {\n const highImageObj = new Image();\n highImageObj.src = thisImgHighResolution;\n highImageObj.addEventListener('load', () => {\n // if current image is still available\n if (this._getSrc(thisThumbnail) === this.img.src) {\n this.img.src = thisImgHighResolution;\n this._imageContainer.style.backgroundImage = 'url(' + thisImgHighResolution + ')';\n }\n });\n }\n }\n\n /**\n * Extracts the source of an image\n * @param target\n * @returns {String|null}\n * @private\n */\n _getSrc(target) {\n return target.getAttribute(ATTR_SRC) || target.src;\n }\n\n /**\n * Will show a lightBox on given target\n * @param {HTMLElement} target\n * @returns {$.Deferred|*}\n */\n open(target) {\n const self = this;\n\n if (!target) {\n return false;\n }\n\n this.target = target;\n\n // if lightBox is open, we just switch to the new target image\n if (this._isOpen && target) {\n return this.switchImage(target).then(() => {\n return this;\n });\n }\n\n this._isOpen = true;\n\n /**\n * Setup Widget for modal\n * @type {Widget}\n */\n this._widget = new Widget().setAsync(() => {\n // thumbnail is either target itself or expected to be first childNode\n const thumbnail = target.hasAttribute(ATTR_NO_THUMBNAIL) ? target : (target.children[0] || target);\n\n const imgHighResolution = target.getAttribute(ATTR_DATA_HREF) || target.getAttribute(ATTR_HREF);\n const imgSrc = this._getSrc(thumbnail) || imgHighResolution;\n\n const imageObj = new Image();\n imageObj.src = imgSrc;\n this._imageContainer = document.createElement('div');\n this._modalContainerDiv = document.createElement('div');\n this._closerContainerDiv = document.createElement('i');\n this._contentContainer = document.createElement('div');\n\n this._closerContainerDiv.className = 'modal-close modal-close-lightbox icon-cancel-1';\n this._closerContainerDiv.setAttribute(ATTR_CLOSE, ATTR_CLOSE);\n\n this._modalContainerDiv.className = 'modal image-modal';\n this._modalContainerDiv.appendChild(this._imageContainer);\n this._modalContainerDiv.appendChild(this._contentContainer);\n this._modalContainerDiv.appendChild(this._closerContainerDiv);\n this._contentContainer.className = 'content-container';\n this._isLoading = true;\n this._future = new Promise((resolve) => {\n imageObj.addEventListener('load', () => {\n this._imageContainer.className = 'image-container';\n const img = document.createElement('img');\n // current image\n this.img = img;\n\n img.src = imgSrc;\n LightBox._setupMaxWidthHeight(target, img, imageObj);\n this._imageContainer.appendChild(img);\n this._imageContainer.style.backgroundImage = 'url(' + imgSrc + ')';\n\n resolve(self._modalContainerDiv);\n this._isLoading = false;\n\n if (Settings.isIE()) {\n self._resizeEvent = global.addEventListener('resize', () => {\n setTimeout(() => {\n self._imageContainer.style.height = img.offsetHeight + 'px';\n }, 0);\n });\n }\n\n if (self.options.registerPrevNextEvents) {\n self._setupPrevNextStates();\n // prev or next on touch/click\n self._imageContainer.addEventListener(Settings.getTabEvent(), (e) => {\n if (self.isLoading()) {\n return;\n }\n e.preventDefault();\n\n const ev = e;\n const pageX = global.TouchEvent && ev instanceof TouchEvent ?\n ev.changedTouches[0].pageX : ev.pageX;\n const rect = self._imageContainer.getBoundingClientRect();\n const imgX = rect.left;\n const wrapperWidth = rect.width;\n const posX = pageX - imgX;\n\n self.switchImageByDirection(wrapperWidth / 2 > posX).catch(() => {\n self._runOptionalClose();\n });\n });\n\n // register keyboard events\n self._keyboardNextEvent = (e) => {\n if (e.keyCode === KEY_NEXT || e.keyCode === KEY_PREV) {\n if (self.isLoading()) {\n return;\n }\n self.switchImageByDirection(e.keyCode === KEY_PREV).catch(() => {\n self._runOptionalClose();\n });\n }\n };\n global.addEventListener('keydown', self._keyboardNextEvent);\n } else {\n self._imageContainer.addEventListener(Settings.getTabEvent(), () => {\n self._runOptionalClose();\n });\n }\n\n self.highRes(thumbnail, imgHighResolution);\n });\n });\n\n this._future.then(() => {\n self._calculateContainer(this.img);\n });\n\n self._modalContainerDiv.addEventListener(EVENT_MODAL_CLOSED, () => {\n // cleanup:\n this._modalContainerDiv.parentNode.removeChild(this._modalContainerDiv);\n this.options.onClose.apply(self);\n this._isOpen = false;\n this.modal.destroy();\n // unbind events\n if (this._keyboardNextEvent) {\n global.removeEventListener('keydown', self._keyboardNextEvent);\n }\n if (this._resizeEvent) {\n global.removeEventListener('resize', self._resizeEvent);\n }\n });\n\n return this._future;\n });\n\n this._nextFuture = this._future;\n\n if (self._widget) {\n this.modal = new Modal(this._modalAppend);\n // make sure we close stack before\n return this.modal.close().fromWidget(self._widget).then(() => {\n return self._future.then(() => {\n return self;\n });\n });\n }\n return false;\n }\n\n}\n\nexport default LightBox;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/LightBox.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.OffCanvas\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\nimport Settings from './util/Settings';\nimport Util from './util/Util';\nimport Event from './util/Event';\nimport FixedWindow from './lib/FixedWindow';\n\n/**\n * @type {string}\n */\nconst ATTR_CLOSE_SIDEBAR = 'data-close-offcanvas';\n\n/**\n * @type {string}\n */\nconst ATTR_TARGET = 'data-offcanvas';\n/**\n * @type {string}\n */\nconst INIT_CLASS = 'init';\n/**\n * @type {string}\n */\nconst OPEN_CLASS = 'open';\n/**\n * @type {number}\n */\nconst HIDE_FACTOR = 3;\n\n/**\n * @type {string}\n */\nexport const EVENT_TOGGLE = 'flexcss.offcanvas.toggle';\n\n/**\n * A OffCanvas Implementation\n */\nclass OffCanvas {\n\n /**\n * Creates an off-canvas navigation\n * @param {HTMLElement|String} NavigationId\n * @param {HTMLElement|String} Darkener\n * @param {int} factor positive will expect right sidebar, positive left\n * @param {bool} [disableTouch] if true all touch events are disabled\n * @constructor\n */\n constructor(NavigationId, Darkener, factor, disableTouch) {\n const doc = global.document;\n let touchedX = 0;\n const navigationContainer = NavigationId instanceof HTMLElement ?\n NavigationId : doc.getElementById(NavigationId);\n const darkener = Darkener instanceof HTMLElement ? Darkener : doc.getElementById(Darkener);\n const DARKENER_CLASS_TOGGLE = `toggle-${darkener.id}` || 'darkener';\n const DARKENER_CLASS_INSTANT_TOGGLE = `${DARKENER_CLASS_TOGGLE}-open`;\n\n const shouldNotTouch = () => {\n return window.innerWidth >= Settings.get().smallBreakpoint;\n };\n\n if (!darkener || !navigationContainer) {\n throw new Error('Could not find needed elements (Darkener and/or NavigationId)');\n }\n\n this.darkener = darkener;\n this.darkenerClassToggle = DARKENER_CLASS_TOGGLE;\n this.darkenerClassToggleInstant = DARKENER_CLASS_INSTANT_TOGGLE;\n this.globalToggleClass = Settings.get().canvasToggledClass;\n\n this.navigationContainer = navigationContainer;\n this.navigationContainerId = navigationContainer.id;\n\n // create id if id does not exist\n if (!this.navigationContainerId) {\n this.navigationContainerId = Util.guid();\n navigationContainer.id = this.navigationContainerId;\n }\n\n if (!disableTouch) {\n navigationContainer.addEventListener('touchstart', (e) => {\n if (shouldNotTouch()) {\n return;\n }\n touchedX = e.touches[0].clientX;\n navigationContainer.mustHide = false;\n });\n navigationContainer.addEventListener('touchmove', (e) => {\n if (shouldNotTouch()) {\n return;\n }\n const { clientX } = e.touches[0];\n const target = navigationContainer;\n const style = target.style;\n const calcX = touchedX - clientX;\n const bounds = target.getBoundingClientRect();\n const compare = factor > 0 ? calcX <= 0 : calcX >= 0;\n if (compare) {\n style.transition = 'transform 0s ease';\n style.webkitTransition = '-webkit-transform 0s ease';\n target.mustHide = factor > 0 ? calcX * -1 >\n bounds.width / HIDE_FACTOR : calcX > bounds.width / HIDE_FACTOR;\n const transform = `translate3d(${calcX * -1}px,0,0)`;\n style.transform = transform;\n style.webkitTransform = transform;\n }\n });\n navigationContainer.addEventListener('touchend', () => {\n if (shouldNotTouch()) {\n return;\n }\n const target = navigationContainer;\n const style = target.style;\n if (target.mustHide) {\n const width = target.getBoundingClientRect().width * factor;\n style.transition = 'transform .2s ease';\n style.webkitTransition = '-webkit-transform .2s ease';\n const transform = `translate3d(${width}px,0,0)`;\n style.transform = transform;\n style.webkitTransform = transform;\n this._remove().then(() => {\n this.resetTransform(style);\n });\n this._removeInstant();\n } else {\n this.resetTransform(style);\n }\n });\n }\n }\n\n /**\n * @param {Object} s\n */\n resetTransform(s) {\n s.transform = '';\n s.transition = '';\n s.webkitTransform = '';\n s.webkitTransition = '';\n }\n\n /**\n * @param {Object} [event]\n * @private\n */\n _remove(event) {\n return new Promise((resolve) => {\n Util.addEventOnce(Settings.getTransitionEvent(), this.navigationContainer, () => {\n // add timeout because transition event fires a little to early\n setTimeout(() => {\n requestAnimationFrame(() => {\n const body = global.document.body;\n OffCanvas.currentOpen = null;\n body.classList.remove(this.darkenerClassToggle);\n global.document.documentElement.classList.remove(this.globalToggleClass);\n if (!!event) {\n Event.dispatchAndFire(this.navigationContainer, EVENT_TOGGLE);\n }\n resolve();\n });\n }, Settings.get().darkenerFadeDelay);\n });\n });\n }\n\n /**\n * @private\n */\n _removeInstant() {\n this.navigationContainer.classList.remove(OPEN_CLASS);\n global.document.body.classList.remove(this.darkenerClassToggleInstant);\n this.darkener.classList.remove(INIT_CLASS);\n FixedWindow.getInstance().close();\n }\n\n /**\n * Toggles a an off-canvas element\n * @param [e]\n * @private\n */\n toggle(e) {\n if (e) {\n e.preventDefault();\n }\n this.resetTransform(this.navigationContainer.style);\n const bodyClass = global.document.body.classList;\n const darkenerClass = this.darkener.classList;\n const DARKENER_CLASS_TOGGLE = this.darkenerClassToggle;\n const DARKENER_CLASS_INSTANT_TOGGLE = this.darkenerClassToggleInstant;\n const navigationControllerClassList = this.navigationContainer.classList;\n if (!OffCanvas.currentOpen) {\n Util.addEventOnce(Settings.getTransitionEvent(), this.navigationContainer, () => {\n if (!!e) {\n Event.dispatchAndFire(this.navigationContainer, EVENT_TOGGLE);\n }\n });\n OffCanvas.currentOpen = this;\n FixedWindow.getInstance().open(this);\n global.document.documentElement.classList.add(this.globalToggleClass);\n bodyClass.add(DARKENER_CLASS_INSTANT_TOGGLE);\n bodyClass.add(DARKENER_CLASS_TOGGLE);\n darkenerClass.add(INIT_CLASS);\n navigationControllerClassList.add(OPEN_CLASS);\n } else {\n return this.close(e);\n }\n }\n\n close(event) {\n if (this.navigationContainer.classList.contains(OPEN_CLASS)) {\n const navigationControllerClassList = this.navigationContainer.classList;\n const promise = this._remove(event);\n this._removeInstant(navigationControllerClassList);\n return promise;\n }\n return new Promise(r => r());\n }\n\n /**\n * Register events\n * @param [delegate]\n */\n registerEvents(delegate) {\n const thisDelegate = delegate || global.document;\n FixedWindow.getInstance().addScreenConstraint(OffCanvas, (width) => width < Settings.get().smallBreakpoint);\n thisDelegate.addEventListener(Settings.getTabEvent(), (e) => {\n if (OffCanvas.currentOpen && OffCanvas.currentOpen !== this) {\n return;\n }\n const id = this.navigationContainerId;\n const validTarget = e.target.getAttribute(ATTR_TARGET) === id;\n if (!Util.isPartOfNode(e.target, this.navigationContainer)) {\n if (validTarget || (OffCanvas.currentOpen === this && e.target === this.darkener)) {\n this.toggle(e);\n }\n } else {\n if (e.target.hasAttribute(ATTR_CLOSE_SIDEBAR)) {\n this.toggle(e);\n }\n }\n });\n }\n}\n\nOffCanvas.currentOpen = null;\n\nexport default OffCanvas;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/OffCanvas.js\n **/","/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2015 David Heidrich, BowlingX \n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n/*!\n * FlexCss.Toggleable\n * Licensed under the MIT License (MIT)\n * Copyright (c) 2015 David Heidrich, BowlingX \n */\n\nimport Settings from './util/Settings';\nimport Widget from './Widget';\nimport Util from './util/Util';\nimport Event from './util/Event';\n\n/**\n * Event that is fired when a tab is closed\n * @type {string}\n */\n\nexport const EVENT_TAB_CLOSED = 'flexcss.tab.closed';\n\n/**\n * Event that is fired when a tab has been opened\n * @type {string}\n */\nexport const EVENT_TAB_OPENED = 'flexcss.tab.opened';\n/**\n * @type {string}\n */\nconst ATTR_NAME = 'data-toggle';\n/**\n * @type {string}\n */\nconst ACTIVE_CLASS = 'active';\n/**\n * @type {string}\n */\nconst LOADING_CLASS = 'loading';\n\n/**\n * @type {string}\n */\nconst ATTR_TOGGLE_LIST = 'data-toggle-list';\n\n/**\n * Creates a toggleable element, either for tabs or a single toggle\n */\nclass Toggleable {\n constructor(ContainerId) {\n const doc = global.document;\n\n this.container = ContainerId instanceof HTMLElement ? ContainerId :\n doc.getElementById(ContainerId);\n\n this.loading = false;\n\n if (!this.container) {\n throw new Error(`Toggleable container with id ${ContainerId} not found`);\n }\n }\n\n /**\n * Listener\n * @param {Event} e\n * @private\n */\n _listener(e) {\n let target = e.target;\n const parent = target.parentNode;\n const doc = global.document;\n\n // support target child element to clicked\n if (!target.hasAttribute(ATTR_NAME)) {\n if (parent && parent.hasAttribute(ATTR_NAME)) {\n target = parent;\n } else {\n return;\n }\n }\n\n if (!target.hasAttribute(ATTR_NAME)) {\n return;\n }\n\n const refId = target.getAttribute(ATTR_NAME);\n const ref = doc.getElementById(refId);\n\n e.preventDefault();\n\n if (this.loading) {\n return;\n }\n\n this.toggleTarget(ref, target);\n }\n\n /**\n * Registers Events for this instance\n * @returns {Toggleable}\n */\n registerEvents() {\n this.container.addEventListener(Settings.getTabEvent(), this._listener.bind(this));\n return this;\n }\n\n /**\n * Toggles given `ref`\n * @param {HTMLElement|Node} ref\n * @param {HTMLElement|Node} [selfTarget] optional target node\n */\n toggleTarget(ref, selfTarget) {\n let target = selfTarget;\n if (!target && !ref) {\n return;\n }\n if (!target) {\n target = document.querySelector(`[${ATTR_NAME}=\"${ref.id}\"]`);\n }\n\n let maybeToggleNode;\n let future;\n const elClassList = target.classList;\n let parentClassList;\n const parent = target.parentNode;\n const doc = global.document;\n\n future = new Promise((resolve, failure) => {\n if (ref) {\n resolve(ref);\n } else {\n const widget = Widget.findWidget(target);\n const async = widget ? widget.getAsync() : null;\n if (Widget.isWidget(widget) && async) {\n future = async.then((r) => {\n if (r instanceof HTMLElement) {\n const id = Util.guid();\n r.id = id;\n target.setAttribute(ATTR_NAME, id);\n resolve(r);\n } else {\n throw new Error(`Dynamically creating toggle-content is not supported right now.\n Return an HTMLElement instance`);\n }\n });\n } else {\n failure('Target not given');\n }\n }\n });\n\n if (parent) {\n maybeToggleNode = Util.parentsUntil(target, (node) => {\n return node && node.hasAttribute && node.hasAttribute(ATTR_TOGGLE_LIST);\n });\n\n parentClassList = parent.classList;\n // Abort if element is already active and if is part of a toggle list\n if (maybeToggleNode) {\n if (!parentClassList.contains(ACTIVE_CLASS)) {\n parentClassList.toggle(ACTIVE_CLASS);\n parentClassList.add(LOADING_CLASS);\n } else {\n return;\n }\n }\n\n if (maybeToggleNode) {\n for (let i = 0; i < maybeToggleNode.children.length; i++) {\n const n = maybeToggleNode.children[i];\n const targetRef = n.children[0];\n if (n !== parent) {\n n.classList.remove(ACTIVE_CLASS);\n if (targetRef) {\n const attr = targetRef.getAttribute(ATTR_NAME);\n const el = attr ? doc.getElementById(attr) : null;\n if (el) {\n Event.dispatchAndFire(el, EVENT_TAB_CLOSED);\n el.classList.remove(ACTIVE_CLASS);\n targetRef.classList.remove(ACTIVE_CLASS);\n }\n }\n }\n }\n }\n }\n if (elClassList) {\n elClassList.toggle(ACTIVE_CLASS);\n elClassList.add(LOADING_CLASS);\n }\n this.loading = true;\n future.then((r) => {\n Event.dispatchAndFire(r, EVENT_TAB_OPENED);\n Toggleable._handleLoaded(target);\n r.classList.toggle(ACTIVE_CLASS);\n this.loading = false;\n }).catch(() => {\n this.loading = false;\n Toggleable._handleLoaded(target);\n });\n }\n\n /**\n * @param el\n * @private\n */\n static _handleLoaded(el) {\n const parentClassList = el.parentNode.classList;\n el.classList.remove(LOADING_CLASS);\n if (parentClassList) {\n parentClassList.remove(LOADING_CLASS);\n }\n }\n}\n\nexport default Toggleable;\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/Toggleable.js\n **/","export default (fn, ms) => () => {\n clearTimeout(fn.timeout);\n fn.timeout = setTimeout(fn, ms);\n};\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/lib/debounce.js\n **/","import Form from '../Form';\nimport Tooltip from '../Tooltip';\nimport Modal from '../Modal';\nimport Widget from '../Widget';\nimport Settings from '../util/Settings';\nimport Toggleable from '../Toggleable';\nimport OffCanvas from '../OffCanvas';\nimport Dropdown from '../Dropdown';\nimport LightBox from '../LightBox';\nimport Util from '../util/Util';\n\nexport { Form, Tooltip, Modal, Widget, Settings, Util, Toggleable, OffCanvas, Dropdown, LightBox };\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/flexcss/src/main/modules/All.js\n **/","module.exports = { \"default\": require(\"core-js/library/fn/json/stringify\"), __esModule: true };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/json/stringify.js\n ** module id = 111\n ** module chunks = 0\n **/","var core = require('../../modules/$.core');\nmodule.exports = function stringify(it){ // eslint-disable-line no-unused-vars\n return (core.JSON && core.JSON.stringify || JSON.stringify).apply(JSON, arguments);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/json/stringify.js\n ** module id = 112\n ** module chunks = 0\n **/","// the whatwg-fetch polyfill installs the fetch() function\n// on the global object (window or self)\n//\n// Return that as the export for use in Webpack, Browserify etc.\nrequire('whatwg-fetch');\nmodule.exports = self.fetch.bind(self);\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/isomorphic-fetch/fetch-npm-browserify.js\n ** module id = 114\n ** module chunks = 0\n **/","(function(self) {\n 'use strict';\n\n if (self.fetch) {\n return\n }\n\n function normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(name)) {\n throw new TypeError('Invalid character in header field name')\n }\n return name.toLowerCase()\n }\n\n function normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n }\n\n function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n }\n\n Headers.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var list = this.map[name]\n if (!list) {\n list = []\n this.map[name] = list\n }\n list.push(value)\n }\n\n Headers.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n }\n\n Headers.prototype.get = function(name) {\n var values = this.map[normalizeName(name)]\n return values ? values[0] : null\n }\n\n Headers.prototype.getAll = function(name) {\n return this.map[normalizeName(name)] || []\n }\n\n Headers.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n }\n\n Headers.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = [normalizeValue(value)]\n }\n\n Headers.prototype.forEach = function(callback, thisArg) {\n Object.getOwnPropertyNames(this.map).forEach(function(name) {\n this.map[name].forEach(function(value) {\n callback.call(thisArg, value, name, this)\n }, this)\n }, this)\n }\n\n function consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n }\n\n function fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n }\n\n function readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n reader.readAsArrayBuffer(blob)\n return fileReaderReady(reader)\n }\n\n function readBlobAsText(blob) {\n var reader = new FileReader()\n reader.readAsText(blob)\n return fileReaderReady(reader)\n }\n\n var support = {\n blob: 'FileReader' in self && 'Blob' in self && (function() {\n try {\n new Blob();\n return true\n } catch(e) {\n return false\n }\n })(),\n formData: 'FormData' in self,\n arrayBuffer: 'ArrayBuffer' in self\n }\n\n function Body() {\n this.bodyUsed = false\n\n\n this._initBody = function(body) {\n this._bodyInit = body\n if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (!body) {\n this._bodyText = ''\n } else if (support.arrayBuffer && ArrayBuffer.prototype.isPrototypeOf(body)) {\n // Only support ArrayBuffers for POST method.\n // Receiving ArrayBuffers happens via Blobs, instead.\n } else {\n throw new Error('unsupported BodyInit type')\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n\n this.arrayBuffer = function() {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n } else {\n this.text = function() {\n var rejected = consumed(this)\n return rejected ? rejected : Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n }\n\n // HTTP methods whose capitalization should be normalized\n var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\n function normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return (methods.indexOf(upcased) > -1) ? upcased : method\n }\n\n function Request(input, options) {\n options = options || {}\n var body = options.body\n if (Request.prototype.isPrototypeOf(input)) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n if (!body) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = input\n }\n\n this.credentials = options.credentials || this.credentials || 'omit'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n }\n\n Request.prototype.clone = function() {\n return new Request(this)\n }\n\n function decode(body) {\n var form = new FormData()\n body.trim().split('&').forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n }\n\n function headers(xhr) {\n var head = new Headers()\n var pairs = xhr.getAllResponseHeaders().trim().split('\\n')\n pairs.forEach(function(header) {\n var split = header.trim().split(':')\n var key = split.shift().trim()\n var value = split.join(':').trim()\n head.append(key, value)\n })\n return head\n }\n\n Body.call(Request.prototype)\n\n function Response(bodyInit, options) {\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = options.status\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = options.statusText\n this.headers = options.headers instanceof Headers ? options.headers : new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n }\n\n Body.call(Response.prototype)\n\n Response.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n }\n\n Response.error = function() {\n var response = new Response(null, {status: 0, statusText: ''})\n response.type = 'error'\n return response\n }\n\n var redirectStatuses = [301, 302, 303, 307, 308]\n\n Response.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n }\n\n self.Headers = Headers;\n self.Request = Request;\n self.Response = Response;\n\n self.fetch = function(input, init) {\n return new Promise(function(resolve, reject) {\n var request\n if (Request.prototype.isPrototypeOf(input) && !init) {\n request = input\n } else {\n request = new Request(input, init)\n }\n\n var xhr = new XMLHttpRequest()\n\n function responseURL() {\n if ('responseURL' in xhr) {\n return xhr.responseURL\n }\n\n // Avoid security warnings on getResponseHeader when not allowed by CORS\n if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {\n return xhr.getResponseHeader('X-Request-URL')\n }\n\n return;\n }\n\n xhr.onload = function() {\n var status = (xhr.status === 1223) ? 204 : xhr.status\n if (status < 100 || status > 599) {\n reject(new TypeError('Network request failed'))\n return\n }\n var options = {\n status: status,\n statusText: xhr.statusText,\n headers: headers(xhr),\n url: responseURL()\n }\n var body = 'response' in xhr ? xhr.response : xhr.responseText;\n resolve(new Response(body, options))\n }\n\n xhr.onerror = function() {\n reject(new TypeError('Network request failed'))\n }\n\n xhr.open(request.method, request.url, true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n }\n\n if ('responseType' in xhr && support.blob) {\n xhr.responseType = 'blob'\n }\n\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n }\n self.fetch.polyfill = true\n})(typeof self !== 'undefined' ? self : this);\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/whatwg-fetch/fetch.js\n ** module id = 115\n ** module chunks = 0\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/build/js/styles.map b/build/js/styles.map index 75f8e84..f7e5ecd 100644 --- a/build/js/styles.map +++ b/build/js/styles.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack:///assets/assets/lib/_animations.scss","webpack:///webpack:///assets/assets/marklib.scss","webpack:///webpack:///assets/assets/lib/_highlighting.scss","webpack:///webpack:///assets/~/flexcss/assets/_base.scss","webpack:///webpack:///assets/~/flexcss/assets/_settings.scss","webpack:///webpack:///assets/~/flexcss/assets/lib/_mixins.scss","webpack:///webpack:///assets/~/flexcss/assets/lib/_animate.scss","webpack:///webpack:///assets/~/flexcss/assets/lib/_normalize.scss","webpack:///webpack:///assets/~/flexcss/assets/lib/_tooltip.scss"],"names":[],"mappings":"AAAA;EACE;IACE,WAAW;IACX,2CAA8B;GCC/B;EDGD;IACE,WAAW;IACX,wBAAwB;GCDzB;CACF;;ADID;EACE;IACE,WAAW;IACX,2CAAsB;YAAtB,mCAAsB;GCDvB;EDID;IACE,WAAW;IACX,wBAAgB;YAAhB,gBAAgB;GCFjB;CACF;;ADKD;EACE;IACE,WAAW;IACX,4CAA8B;GCF/B;EDMD;IACE,WAAW;IACX,wBAAwB;GCJzB;CACF;;ADOD;EACE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EACE,UAAS;CACV;;AACD;EACE,eAAc;EACd,uBAAuB;EACvB,iBAAgB;EAChB,cAAa;EACb,kCAAiC;CAClC;;AAMD;EACE,iBAAgB;CACjB;;AAED;EACE,+BAAuB;UAAvB,uBAAuB;EACvB,gCAAuB;UAAvB,wBAAuB;CACxB;;AAED;EAEE;IACE,cAAa;GACd;EAED;IACE,cAAa;GACd;CAw6CF","file":"css/styles.css","sourcesContent":["@-webkit-keyframes fadeInDown {\n 0% {\n opacity: 0;\n -webkit-transform: translate3d(0, -5px, 0);\n\n }\n\n 100% {\n opacity: 1;\n -webkit-transform: none;\n }\n}\n\n@keyframes fadeInDown {\n 0% {\n opacity: 0;\n transform: translate3d(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: none;\n }\n}\n\n@-webkit-keyframes fadeInDownSlow {\n 0% {\n opacity: 0;\n -webkit-transform: translate3d(0, -30px, 0);\n\n }\n\n 100% {\n opacity: 1;\n -webkit-transform: none;\n }\n}\n\n@keyframes fadeInDownSlow {\n 0% {\n opacity: 0;\n transform: translate3d(0, -30px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: none;\n }\n}\n\n\n@keyframes bubble {\n\n 0% {\n transform:translate3d(0, -4px, 0);\n }\n\n 100% {\n transform:translate3d(0,0,0);\n }\n}\n\n\n@-webkit-keyframes bubble {\n\n 0% {\n -webkit-transform:translate3d(0, -4px, 0);\n }\n\n 100% {\n -webkit-transform:translate3d(0,0,0);\n }\n}\n\n\n.fadeInDown {\n animation-name: fadeInDown;\n animation-duration: .2s;\n}\n\n.fadeInDownSlow {\n animation-name: fadeInDownSlow;\n animation-duration: 2s;\n}\n\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/assets/lib/_animations.scss\n **/","// Some settings:\n$markingColor: #2ecc71;\n$buttonBaseColor: #95a5a6;\n$buttonAltColor:#9b59b6;\n$buttonWarnColor:#e74c3c;\n$maxWidth:960px;\n$twitterColor:#00aced;\n$includeFontello:false;\n\n@import 'lib/animations';\n@import 'lib/highlighting';\n@import '~flexcss/assets/packages/tooltip';\n\nbody {\n font-family: \"Roboto\", sans-serif;\n padding:0;\n margin:0;\n font-weight:300;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.highlight {\n pre {\n max-width: $maxWidth;\n margin: 0 auto;\n }\n}\n\ncode {\n font-size:1.3rem;\n}\n\n.wrapper {\n max-width:$maxWidth;\n margin:0 auto;\n}\n\nstrong {\n font-weight:500;\n}\n\nheader {\n padding:10px;\n}\n\n.text-center {\n text-align:center;\n}\n\n.subline {\n font-size:2rem;\n font-weight:100;\n}\n\n.presentation {\n background: rgba(#34495e,.7);\n color:#fff;\n padding:40px;\n}\n\nh1, h2 {\n font-family: \"Shadows Into Light\", sans-serif;\n}\n\np {\n font-size:1rem;\n line-height:1.6;\n}\n\n.button, button {\n font:inherit;\n font-weight:400;\n background: $buttonBaseColor;\n border:none;\n padding:10px 15px;\n border-radius:5px;\n font-size:1rem;\n cursor:pointer;\n color:#fff;\n transition:background .5s ease, transform .5s ease;\n &:hover {\n background: lighten($buttonBaseColor, 10%);\n transform:translate3d(0,4px,0);\n }\n margin:10px;\n display:inline-block;\n text-decoration: none;\n > * {\n pointer-events:none;\n }\n\n &.alt {\n background:$buttonAltColor;\n &:hover {\n background:lighten($buttonAltColor, 10%);\n }\n }\n\n &.warn {\n background:$buttonWarnColor;\n &:hover {\n background:lighten($buttonWarnColor, 10%);\n }\n }\n\n &.twitter {\n background:$twitterColor;\n\n &:hover {\n background: lighten($twitterColor, 10%);\n }\n }\n}\n\n.marking {\n transition:background .5s ease;\n background: $markingColor;\n cursor:pointer;\n}\n\n.deleted {\n transition:background .5s ease;\n background: none !important;\n}\n\n.marking .marking {\n background: darken($markingColor, 10%);\n}\n\n.marking .marking .marking {\n background: darken($markingColor, 20%);\n}\n\n.marking.marklib--hover .marking,\n.marking.marklib--hover {\n background: lighten($markingColor, 25%) !important;\n}\n\n::selection {\n background: lighten($markingColor, 20%);\n}\n\npre {\n margin:0;\n}\npre > code {\n display:block;\n font-family: monospace;\n overflow-y:auto;\n padding:30px;\n -webkit-overflow-scrolling:touch;\n}\n\n.animate .wrapper {\n @extend .fadeInDownSlow;\n}\n\n.tight {\n margin-bottom:0;\n}\n\n.marking.bubble {\n animation-name: bubble;\n animation-duration:.3s;\n}\n\n@media (max-width:480px) {\n\n .presentation {\n padding:15px;\n }\n\n .hide-small {\n display:none;\n }\n}\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/assets/marklib.scss\n **/","/* \n Darkly Pygments Theme\n (c) 2014 Sourcey\n http://sourcey.com\n*/\n\n.highlight {\n white-space: pre;\n overflow: auto;\n word-wrap: normal; /* horizontal scrolling */\n background: #343642;\n color: #C1C2C3;\n}\n.highlight .hll { background-color: #ffc; }\n.highlight .gd { color: #2e3436; background-color: #0e1416; }\n.highlight .gr { color: #eeeeec; background-color: #c00; }\n.highlight .gi { color: #babdb6; background-color: #1f2b2d; }\n.highlight .go { color: #2c3032; background-color: #2c3032; }\n.highlight .kt { color: #e3e7df; }\n.highlight .ni { color: #888a85; }\n.highlight .c,.highlight .cm,.highlight .c1,.highlight .cs { color: #8D9684; }\n.highlight .err,.highlight .g,.highlight .l,.highlight .n,.highlight .x,.highlight .p,.highlight .ge,\n.highlight .gp,.highlight .gs,.highlight .gt,.highlight .ld,.highlight .s,.highlight .nc,.highlight .nd,\n.highlight .ne,.highlight .nl,.highlight .nn,.highlight .nx,.highlight .py,.highlight .ow,.highlight .w,.highlight .sb,\n.highlight .sc,.highlight .sd,.highlight .s2,.highlight .se,.highlight .sh,.highlight .si,.highlight .sx,.highlight .sr,\n.highlight .s1,.highlight .ss,.highlight .bp { color: #C1C2C3; }\n.highlight .k,.highlight .kc,.highlight .kd,.highlight .kn,.highlight .kp,.highlight .kr,\n.highlight .nt { color: #729fcf; }\n.highlight .cp,.highlight .gh,.highlight .gu,.highlight .na,.highlight .nf { color: #E9A94B ; }\n.highlight .m,.highlight .nb,.highlight .no,.highlight .mf,.highlight .mh,.highlight .mi,.highlight .mo,\n.highlight .il { color: #8ae234; }\n.highlight .o { color: #989DAA; }\n.highlight .nv,.highlight .vc,.highlight .vg,.highlight .vi { color: #fff; }\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/assets/lib/_highlighting.scss\n **/","/* Base File that contains all dependencies (mixins, vars etc.)*/\n\n// global settings\n@import \"settings\";\n// mixins used by components\n@import \"lib/mixins\";\n// animations\n@import \"lib/animate\";\n// bundled normalize library\n@import \"lib/normalize\";\n// bundled fonts\n@import \"lib/fontello\";\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/_base.scss\n **/","/**\n* Base Settings\n*/\n\n// Minimal footer height:\n$footerHeight: 100px !default;\n\n// maximum site width (before staying centered layout)\n$overallMaxWidth: 1200px !default;\n\n// a base padding, used by various components\n$overallPadding: 10px !default;\n$overallPaddingTopBottom: 25px !default;\n$overallPaddingTopBottomDesktop: 30px !default;\n$overallPaddingLarge: 50px !default;\n// padding when in desktop state\n$paddingRightLeftDesktop: 20px !default;\n\n// paragraphs:\n$paragraphMargin: 0 0 1rem 0;\n// some layout globals:\n$baseFontFamily: 'Open Sans', Arial, sans-serif !default;\n$baseFontSize: 14px !default;\n$baseColor: #262626 !default;\n$baseLineHeight: 1.3 !default;\n\n// grid columns\n$columns: one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve;\n\n// A Base gray color where other gray tones are inhered from\n$grayColor: #999 !default;\n$lighterGrayColor: #ccc !default;\n\n// A base light gray color for surfaces\n$lightGrayColor: #f1f1f1 !default;\n$globalHoverColor: #f8f8f8 !default;\n\n$smallFontSize: 12px !default;\n$smallFontSizeLineHeight: 1.5 !default;\n$extraSmallFontSize: $smallFontSize !default;\n\n$globalShortEaseTime: .2s !default;\n$globalMediumEaseTime: .35s !default;\n$globalLongEaseTime: .8s !default;\n$globalMenuEasing: ease !default;\n\n$h1FontSize: 18px !default;\n$h2FontSize: $h1FontSize - 1px !default;\n$h3FontSize: $h1FontSize - 3px !default;\n\n$h1DesktopFontSize: 20px !default;\n$h1Color: $baseColor !default;\n$headingMargin: 0 0 1rem 0 !default;\n\n$primaryColor: #258db8 !default;\n$secondaryColor: #e6007e !default;\n$actionColor: #83ba5e !default;\n$alertColor: #d84c3d !default;\n$dangerColor: #f08201 !default;\n$successColor: #43A047 !default;\n$globalRadius: 3px !default;\n\n// breakpoints\n\n$breakpointLarge: 1000px !default;\n$breakpointInBetween: 900px !default;\n$breakpointDesktop: 768px !default;\n\n$mediaDesktop: \"all and (min-width: #{$breakpointDesktop})\";\n$mediaLarge: \"all and (min-width: #{$breakpointLarge})\";\n$mediaInBetween: \"all and (min-width: #{$breakpointInBetween})\";\n$mediaSmall: \"all and (max-width: #{$breakpointDesktop - 1px})\";\n$mediaLandscape: \"only screen and (orientation: landscape)\" !default;\n$mediaPortrait: \"only screen and (orientation: portrait)\" !default;\n\n// sidebar\n$sidebarWidthLarge: 273px !default;\n$sidebarWidthDesktop: 220px !default;\n$sidebarBackground: #fafafa !default;\n\n// Navigation and Sidebar when in mobile state (left + right)\n$MainNavigationWidth: 250px !default;\n$MainSidebarWidth: 265px !default;\n$MainNavigationBg: #4a4a4a !default;\n\n// topbar\n$topbarHeight: 43px !default;\n$topbarHeightDesktop: 43px !default;\n$tabHeight: 40px !default;\n$topbarBg: #333333 !default;\n$topbarBgDesktop: #333 !default;\n$topbarColor: #aaa !default;\n$topbarActionColor: $topbarColor !default;\n$topbarActionColorHover: #fff !default;\n$navigationTogglerColor:#fff !default;\n\n$topBarFontSize: 18px !default;\n\n$topbarActionFontWeight: bold !default;\n$topbarNavActiveFontWeight: bold !default;\n$topbarNavActiveColor: #fff !default;\n$topbarNavHoverColor: $topbarNavActiveColor !default;\n\n// wide topbar\n$topbarNavActiveColorWide: $topbarNavActiveColor !default;\n$topbarNavHoverColorWide: $topbarNavHoverColor !default;\n$topbarColorWide: #aaa !default;\n\n\n\n// z-indexes:\n$indexModalContainer: 22 !default;\n$indexDarkener: 21 !default;\n$indexDropdown: 3 !default;\n$indexFixedDropdown: 22 !default;\n$indexTooltip: 31 !default;\n$indexMainNavigation: $indexDarkener + 1 !default;\n$indexSidebar: $indexDarkener + 1 !default;\n$indexModalCurrent: 10 !default;\n\n// Box Shadows:\n$globalBoxShadow: 0px 0px 3px rgba(#000, .7) !default;\n$globalBorderColor: $lightGrayColor !default;\n$globalBorder:1px solid $globalBorderColor !default;\n\n// subnav\n$subnavColor: #616161 !default;\n$subnavActiveColor: #616161 !default;\n$subnavHoverColor: lighten($subnavColor, 20%) !default;\n$subnavTriggerColor:$baseColor !default;\n// subnav\n$subnavBg: $lightGrayColor !default;\n$subnavBgDesktop: $subnavBg !default;\n$subnavActiveFontWeight: bold !default;\n$subnavBorderTop: false !default;\n$subnavBorderBottom: true !default;\n$subnavHeightDesktop: 43px !default;\n$subnavHeight: 43px !default;\n$subnavBorderTopBorder:$globalBorder !default;\n$subnavSlideBorder:$globalBorder !default;\n\n// Modal Settings:\n$modalAlertWidthDesktop: 320px !default;\n$modalWidthSmall: 360px !default;\n$modalAnimateName: bounceIn !default;\n$modalAnimateDuration: .6s !default;\n$modalBackground: #fff !default;\n$modalBoxShadow: $globalBoxShadow !default;\n$minWidthModalDesktop: 640px !default;\n$modalCloseHoverColor: lighten($baseColor, 40%) !default;\n$modalCloseHoverBackground: lighten($grayColor, 35%) !default;\n$modalCloseActiveColor: lighten($baseColor, 10%) !default;\n$modalCloseActiveBackground: lighten($grayColor, 30%) !default;\n\n//forms\n$inputBackground: $lightGrayColor !default;\n$inputColor: #616161 !default;\n$inputBorder: none !default;\n$inputBorderInvalid: none !default;\n$inputBackgroundInvalid: lighten($alertColor, 40%) !default;\n$inputDisabledBg: #fafafa !default;\n$inputDisabledColor: #bababa !default;\n$inputDisabledBorder: #e0e0e0 !default;\n$inputFocusColor: darken($inputBackground, 5%) !default;\n$inputFocusBorderColor: none !default;\n$inputFocusBoxShadow: none !default;\n$labelWidthDesktop: calc(25% + .375rem) !default;\n$labelMinWidth: 0 !default;\n$labelColor: $baseColor !default;\n$labelFontSize: $smallFontSize !default;\n$labelFontWeight:normal !default;\n$labelPaddingDesktop: 5px 1rem 0 0 !default;\n$inputHeight: 35px !default;\n$formMargin: 30px !default;\n$formMarginDesktop: 30px !default;\n$formActionsPadding: 40px !default;\n$formActionsPaddingDesktop: 60px !default;\n$formMinWidthControls: 330px !default;\n$appendMargin: 20px !default;\n// append Margins for different states (last-child etc.)\n$appendMarginTopNegative: -10px !default;\n$appendMarginTopPositive: 10px !default;\n$thirdColumnPaddingOffsetInBetween: $labelWidthDesktop !default;\n$inputMultiFormSpacing: 10px !default;\n$controlMargin: 20px !default;\n$formWidthControlsBetween: calc(50% - .75rem) !default;\n$formWidthControls: calc(75% - .5rem) !default;\n$inputPadding: 8px 10px !default;\n$textareaPadding: 10px !default;\n$legendMargin: $formMargin !default;\n$legendMarginDesktop: $formMarginDesktop !default;\n$uneditableInputPadding: 8px 10px !default;\n$inputBoxShadow: none !default;\n$legendFontSize: $baseFontSize !default;\n$legendFontWeight: bold !default;\n$legendColor: $baseColor !default;\n$placeholderColor: lighten($grayColor, 10%) !default;\n$selectPickerColor: #a6a6a6 !default;\n$selectChooseBackgroundColor: transparent !default;\n$labelMargin: 3px !default;\n$formParagraphMargin: $appendMarginTopPositive !default;\n$checkboxAndOptionHeight: 20px !default;\n$checkRadioColor: $primaryColor !default;\n$labelTextAlign: right !default;\n$copyTextFormsFontSize: $smallFontSize !default;\n$copyTextFormsLineHeight: $smallFontSizeLineHeight !default;\n$copyTextFormsMultipleMarginTop: .5rem !default;\n$inputFontSize: $baseFontSize !default;\n$inputTransitions: background .5s ease !default;\n$checkboxMargin: 0px 0 0 28px;\n$disabledThumbColor: lighten($lighterGrayColor, 10%);\n$inputBorderRadius: $globalRadius !default;\n// buttons\n$buttonColor: #fff !default;\n$btnPrimaryColor: $actionColor !default;\n$btnSecondaryColor: #c3c3c3 !default;\n$btnDangerColor: $dangerColor !default;\n$btnAlternativeColor: $primaryColor !default;\n$btnFontSize: $baseFontSize !default;\n$btnPadding: 11px 45px 10px !default;\n$btnBackgroundSize: 40px 40px !default;\n$btnSmallPadding: 7px 30px 7px !default;\n$btnFontWeight: bold !default;\n$btnRadius: $globalRadius !default;\n// tabs\n$tabBottomLineHeight: 2px !default;\n$tabsSmallPadding: 5px !default;\n$tabsSmallLineHeight: 1px !default;\n\n// loader\n\n$loaderSize: 40px !default;\n$loaderColor: lighten(#ccc, 5%) !default;\n$loaderBorder: 4px !default;\n$smallLoaderSize: 20px !default;\n$smallLoaderBorder: 2px !default;\n$loaderAlternate: false !default;\n$loaderAlternateColor: #ccc !default;\n// fonts\n$includeFontello: true !default;\n$fontelloFontPath: '../fonts/fontello' !default;\n$iconFontName: 'fontello';\n\n// Effects:\n$darkenerFadeOpacity: .35 !default;\n$darkenerColor: #000 !default;\n\n// darkener when using background-color (e.g. in modals)\n$backgroundDarkenerFadeOpacity: .35 !default;\n$backgroundDarkenerColor: #000 !default;\n\n// dropdowns:\n$dropdownBorderColor: lighten($grayColor, 20%) !default;\n$dropdownMaxHeight: 300px !default;\n\n// lightbox\n$lightboxImageBackground: black !default;\n$lightBoxMinHeightDesktop: 300px !default;\n$lightBoxWidthLarge: 60% !default;\n$lightBoxMinHeightLarge: calc(80vh - 40px) !default;\n\n// tooltips\n$tooltipBg: #333 !default;\n$tooltipFontSize: $smallFontSize !default;\n$alertTooltipColor: $tooltipBg !default;\n$tooltipFontWeight: 600 !default;\n\n// breadcrumbs\n$breadcrumbFontSize: $baseFontSize !default;\n$breadcrumbFontSizeLarge: 18px !default;\n$breadcrumbColor: #ccc !default;\n$breadcrumbSeparatorIcon: \" \\00B7 \";\n\n// labeled\n$labeledSpacing: 1rem !default;\n$labeledBorder: 1px solid $globalBorderColor !default;\n$labeledPaddingTopDesktop: 0 !default;\n\n// icons:\n$iconSpacingButton: .3rem !default;\n$iconSpacing: .1rem !default;\n\n// table\n$tableBorder: $globalBorder !default;\n$tableSpacing: 10px 1rem 10px 0 !default;\n$tableSpacingBreak: 6px 1rem 6px 0 !default;\n$tableSpacingLastAndFirst: 5px !default;\n$tableTransition: background .1s ease !default;\n$tableHeaderColor:$primaryColor !default;\n\n// listings:\n$listingMinHeight: 105px !default;\n$listingAvatarRowLarge: 84px !default;\n$listingAvatarRow: 84px !default;\n$listingAvatarRowSmall: 36px !default;\n$listingOuterPadding: 10px !default;\n$listingSpaceRight: 30px !default;\n$listingSmallWidth: 30% !default;\n\n// panel\n$panelBackground: $lightGrayColor !default;\n\n// links:\n$linkFontWeight: 600 !default;\n$linkHoverColor: lighten($primaryColor, 10%) !default;\n\n// code:\n$codeBackgroundColor: lighten($grayColor, 35%) !default;\n$codeBorderColor: lighten($grayColor, 20%) !default;\n\n// badge:\n$badgePadding: 0 5px !default;\n$badgeBackground: $secondaryColor !default;\n\n// selection\n$selectionBackground: lighten($primaryColor, 25%) !default;\n$selectionColor: #fff !default;\n\n// breadcrumbs\n$breadcrumbShortenPortrait: true !default;\n\n\n// Execute component mixins\n$executeDefaultMixins: true !default;\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/_settings.scss\n **/","/**\n* Utility mixins\n*/\n\n// interface\n@mixin interface($case: none) {\n user-select: $case;\n}\n\n@mixin font-smoothing() {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n// Creates an arrow at the bottom\n@mixin arrow-bottom($color: black, $left: 50%) {\n\n &:after {\n top: 100%;\n border: solid transparent;\n content: \" \";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n\n &:after {\n border-color: transparent;\n border-top-color: $color;\n border-width: 5px;\n left: $left;\n margin-left: -5px;\n }\n}\n\n@mixin arrow-bottom-color($color) {\n &:after {\n border-top-color: $color;\n }\n}\n\n// helper to fix flickering/blurry in different browsers\n@mixin perspectiveHelper($perspective: 1000px) {\n perspective: $perspective;\n transform-style: preserve-3d;\n backface-visibility: hidden;\n}\n\n@mixin perspective($perspective: 1000px) {\n perspective: $perspective;\n}\n\n// a central loader\n@mixin centralLoader() {\n left: calc(50% - #{$loaderSize - 10px});\n top: calc(50% - #{$loaderSize - 10px});\n background: #fff;\n padding: 10px;\n border-radius: $globalRadius;\n box-shadow: $globalBoxShadow;\n}\n\n// creates an arrow at top\n@mixin arrow-top($color: #fff, $left: 50%) {\n\n &:after, &:before {\n bottom: 100%;\n left: $left;\n border: solid transparent;\n content: \" \";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n\n &:after {\n border-color: transparent;\n border-bottom-color: $color;\n border-width: 5px;\n margin-left: -5px;\n }\n}\n\n@mixin arrow-top-color($color) {\n &:after {\n border-bottom-color: $color;\n }\n}\n\n// creates a link in a specific color\n@mixin link-color($color: $grayColor, $fontWeight:normal, $hoverColor:lighten($color, 10%),\n $activeColor:darken($color, 10%)) {\n color: $color;\n font-weight: $fontWeight;\n cursor: pointer;\n &:hover {\n color: $hoverColor;\n }\n\n &:active {\n color: $activeColor;\n }\n}\n\n// keyframes helper for different vendors\n@mixin keyframes($name) {\n @-webkit-keyframes #{$name} {\n @content;\n }\n @-moz-keyframes #{$name} {\n @content;\n }\n @-ms-keyframes #{$name} {\n @content;\n }\n @keyframes #{$name} {\n @content;\n }\n}\n\n// animations\n@mixin animate($name, $duration: .5s, $iterationCount: 1, $direction: normal) {\n animation-name: $name;\n animation-duration: $duration;\n animation-fill-mode: both;\n animation-iteration-count: $iterationCount;\n animation-direction: $direction;\n}\n\n// Creates an overflow container\n@mixin overflowContainer($color, $height: 100%, $width: 60px) {\n\n position: relative;\n transform: translateZ(0px);\n\n &:after {\n content: ' ';\n background: linear-gradient(to right, rgba($color, 0) 0%, $color 100%);;\n width: $width;\n height: $height;\n position: absolute;\n right: 0;\n top: 0;\n pointer-events: none;\n }\n}\n\n// creates a loading animation\n// Shamelessly stolen from bootstrap\n@mixin loadingContainer($color: #fff) {\n animation: progress-bar-stripes 2s linear infinite;\n cursor: wait;\n background-image: linear-gradient(45deg, rgba($color, .15) 25%, transparent 25%,\n transparent 50%, rgba($color, .15) 50%, rgba($color, .15) 75%,\n transparent 75%, transparent);\n background-size: 40px 40px;\n}\n\n// small helper for ellipsis\n@mixin ellipsis($max-width: 300px) {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n max-width: $max-width;\n}\n\n/**\n* Creates an icon, by default uses fontello\n* Nested spans are no icons anymore\n*/\n@mixin icon($font: $iconFontName) {\n font-family: $font;\n font-weight: normal !important;\n font-style: normal;\n text-decoration: inherit;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n display: inline-block;\n &:before {\n text-decoration: inherit;\n display: inline-block;\n speak: none;\n }\n span {\n font-family: $baseFontFamily;\n }\n}\n\n/**\n* A Mixin that creates a bottom border for a specific element and animates it on hover\n* On active state this border is always active\n* Don't forget to set position:relative to element\n*/\n@mixin borderWobble($color: $primaryColor, $height: $tabBottomLineHeight, $padding: $overallPadding) {\n\n &:hover, &.active {\n &:after {\n left: 0;\n width: calc(100% - (#{$padding*2}));\n opacity: 1;\n }\n }\n\n &:after {\n will-change: width, left, opacity;\n content: ' ';\n position: absolute;\n width: 0;\n background: $color;\n opacity: 0;\n height: $height;\n bottom: 0;\n left: calc(50% - (#{$padding}));\n margin: 0 $padding;\n transition: width .2s ease, left .2s ease, opacity .2s ease;\n }\n}\n\n/**\n* Mixin to clear floats\n*/\n@mixin clearfix() {\n *zoom: 1;\n &:before, &:after {\n content: \" \";\n display: table;\n }\n &:after {\n clear: both;\n }\n}\n\n/**\n* Mixin to support a specific retina display\n*/\n@mixin retinaDisplay($ratio: 1.3) {\n @media only screen and (-webkit-min-device-pixel-ratio: $ratio),\n only screen and (min--moz-device-pixel-ratio: $ratio),\n only screen and (-o-min-device-pixel-ratio: #{$ratio}/1),\n only screen and (min-device-pixel-ratio: $ratio),\n only screen and (min-resolution: #{$ratio}dppx) {\n @content;\n }\n}\n\n/**\n* Mixin to support retina displays on a specific size\n*/\n@mixin retinaDisplayScreenSize($ratio:1.3, $size:$breakpointDesktop) {\n @media only screen and (-webkit-min-device-pixel-ratio: $ratio) and (min-width: #{$breakpointDesktop}),\n only screen and (min--moz-device-pixel-ratio: $ratio) and (min-width: #{$breakpointDesktop}),\n only screen and (-o-min-device-pixel-ratio: #{$ratio}/1) and (min-width: #{$breakpointDesktop}),\n only screen and (min-device-pixel-ratio: $ratio) and (min-width: #{$breakpointDesktop}),\n only screen and (min-resolution: #{$ratio}dppx) and (min-width: #{$breakpointDesktop}) {\n @content;\n }\n}\n\n/**\n* Mixin that generates a simple grid\n*/\n@mixin generate-grid($columns: $columns) {\n $gridSize: length($columns);\n @for $i from 1 to $gridSize {\n $class: nth($columns, $i);\n &.#{$class} {\n width: #{$i/$gridSize *100}%;\n }\n }\n @media #{$mediaSmall} {\n @for $i from 1 to $gridSize {\n $class: nth($columns, $i);\n &.small-#{$class} {\n width: #{$i/$gridSize *100}%;\n }\n }\n }\n}\n\n/**\n * Mixin that creates a colored section that may include links\n */\n@mixin create-color-section($color, $decoration: underline, $fontWeight: normal, $hoverColor: darken($color, 20) ) {\n color: $color !important;\n a {\n color: $color !important;\n text-decoration: $decoration;\n font-weight: $fontWeight;\n &:hover {\n color: $hoverColor !important;\n }\n }\n}\n\n/* Form Mixins */\n\n/**\n* Inputs\n*/\n@mixin inputs() {\n .input, select, textarea,\n input:not([type=\"submit\"]):not([type=\"radio\"]):not([type=\"checkbox\"]) {\n @content;\n }\n}\n\n/**\n* Base Input Style\n*/\n@mixin input-style() {\n background-color: $inputBackground;\n border: $inputBorder;\n box-shadow: $inputBoxShadow;\n border-radius: $inputBorderRadius;\n}\n\n/**\n* Input style when focused\n*/\n@mixin focus-input-style() {\n background-color: $inputFocusColor;\n border-color: $inputFocusBorderColor !important;\n box-shadow: $inputFocusBoxShadow !important;\n outline: none;\n}\n\n/**\n* Mixin to create a button style\n*/\n@mixin button-style($color, $background) {\n background-color: $background;\n border-color: transparent;\n color: $color;\n\n $disabledColor: rgba($background, .4);\n $disabledOutlineColor: rgba($background, .2);\n &.outline {\n background-color: transparent;\n border-color: $background;\n color: $background;\n\n &:hover {\n background-color: $background;\n color: $color;\n }\n\n &.disabled, &[disabled] {\n background-color: transparent;\n color: $disabledOutlineColor;\n border-color: $disabledOutlineColor;\n }\n }\n\n &:hover {\n color: $color;\n background-color: rgba($background, .7);\n &.loading {\n background-color: $background;\n }\n }\n\n &:active, &:focus, &.outline:active, &.outline:focus {\n &:not(.disabled):not([disabled]) {\n transition: none;\n color: $color;\n background-color: darken($background, 10%);\n border-color: transparent;\n }\n }\n\n &.disabled, [disabled] {\n background-color: $disabledColor;\n color:$color;\n cursor: not-allowed;\n }\n}\n\n/**\n* Mixin to create a multine ellipsis\n*/\n@mixin multi-line-ellipsis($fontSize:14px, $lineHeight:1.4, $maxLines:3) {\n height: $fontSize*$lineHeight*$maxLines;\n display:block;\n display: -webkit-box;\n line-height: $lineHeight;\n -webkit-line-clamp: $maxLines;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: $fontSize;\n}\n\n@mixin multi-line-ellipsis-fade($lineHeight:1.5, $maxLines:6, $fontSize:15px, $fadeBackground:white) {\n\n $maxHeight: $fontSize*$lineHeight*$maxLines;\n $spacer:5px;\n\n &:before {\n content:\"\";\n float: left;\n width: $spacer;\n height: $maxHeight;\n }\n\n line-height: $lineHeight;\n overflow: hidden;\n height: $maxHeight;\n\n > *:first-child {\n float: right;\n width: 100%;\n margin:0;\n margin-left: $spacer*-1;\n }\n\n &:after {\n content: \"\\00a0\\00a0\\00a0\";\n box-sizing: content-box;\n float: right;\n position: relative;\n top: ($lineHeight*$fontSize) * -1;\n left: 100%;\n width: 50%;\n margin-left: -50%;\n padding-right: $spacer;\n text-align: right;\n background-size: 100% 100%;\n background: linear-gradient(to right, rgba(255, 255, 255, 0),\n $fadeBackground 100%, $fadeBackground);\n }\n}\n\n/**\n* Tooltips\n*/\n@mixin spaceTop() {\n &.open {\n transform: translate3d(0, 6px, 0);\n }\n}\n\n@mixin spaceBottom() {\n &.open {\n transform: translate3d(0, -3px, 0);\n }\n}\n\n@mixin tooltip-arrow-state($arrowColor) {\n &.is-collision-bottom:not(.is-collision-left) {\n @include spaceBottom();\n @include arrow-bottom($arrowColor);\n }\n\n &:not(.is-collision-bottom):not(.is-collision-left) {\n @include spaceTop();\n @include arrow-top($arrowColor);\n }\n\n // left collisions\n &.is-collision-left.is-collision-bottom {\n @include spaceBottom();\n @include arrow-bottom($arrowColor, 15px);\n }\n\n &.is-collision-left:not(.is-collision-bottom) {\n @include spaceTop();\n @include arrow-top($arrowColor, 15px);\n }\n\n // right collisions\n &.is-collision-right:not(.is-collision-bottom) {\n @include spaceTop();\n @include arrow-top($arrowColor, calc(100% - 15px));\n }\n\n &.is-collision-right.is-collision-bottom {\n @include spaceBottom();\n @include arrow-bottom($arrowColor, calc(100% - 15px));\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/lib/_mixins.scss\n **/","/**\n* Global Animations\n*/\n\n@include keyframes(progress-bar-stripes) {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n\n@include keyframes(backgroundFadeIn) {\n from {\n background: rgba($backgroundDarkenerColor, 0);\n }\n to {\n background: rgba($backgroundDarkenerColor, $backgroundDarkenerFadeOpacity);\n }\n}\n\n@include keyframes(fadeOut) {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n}\n\n/**\n* Creates a small bounce effect\n*/\n@include keyframes(bounceIn) {\n\n 0%, 40%, 100% {\n animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);\n }\n\n 0% {\n opacity: 0;\n transform: scale3d(.3, .3, .3);\n }\n\n 40% {\n opacity: 1;\n transform: scale3d(1.03, 1.03, 1.03);\n }\n\n 100% {\n opacity: 1;\n transform: scale3d(1, 1, 1);\n }\n}\n\n/**\n* FadeIn Effect\n*/\n@include keyframes(fadeIn) {\n 0%, 100% {\n animation-timing-function: ease;\n }\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n@include keyframes(darkenerFadeIn) {\n 0%, 100% {\n animation-timing-function: ease;\n }\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: $darkenerFadeOpacity;\n }\n}\n\n@include keyframes(darkenerFadeOut) {\n 0%, 100% {\n animation-timing-function: ease;\n }\n 0% {\n opacity: $darkenerFadeOpacity;\n }\n 100% {\n opacity: 0;\n }\n}\n\n/**\n* Endless spinner, used for loaders\n*/\n@include keyframes(spin) {\n 100% {\n transform: rotate(360deg);\n }\n}\n\n/**\n* used by alert modals\n*/\n@include keyframes(fromBottom) {\n 0% {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n}\n\n@include keyframes(tabWobbleLine) {\n 0% {\n opacity: 0;\n left: calc(50% - (#{$overallPadding}));\n width: 0%;\n\n }\n\n 100% {\n opacity: 1;\n left: 0;\n width: calc(100% - (#{$overallPadding*2}));\n }\n}\n\n@include keyframes(tabWobbleLineSmall) {\n 0% {\n opacity: 0;\n left: calc(50% - (#{$overallPadding}));\n width: 0%;\n }\n\n 100% {\n opacity: 1;\n left: 0;\n width: calc(100% - (#{$tabsSmallPadding*2}));\n }\n}\n\n.loader {\n display: block;\n margin: 0 auto;\n width: $loaderSize;\n height: $loaderSize;\n border-radius: 50%;\n border: $loaderBorder solid transparent;\n position: relative;\n animation: spin 1s infinite cubic-bezier(.37,.73,.62,.28);\n\n &:before {\n content: '';\n width: $loaderSize;\n height: $loaderSize;\n border-radius: 50%;\n display: block;\n position: absolute;\n left: $loaderBorder*-1;\n top: $loaderBorder*-1;\n\n border-right: $loaderBorder solid $loaderColor;\n border-top: $loaderBorder solid $loaderColor;\n border-left: $loaderBorder solid #fff;\n border-bottom: $loaderBorder solid $loaderColor;\n\n @if $loaderAlternate {\n border-right:none;\n border-bottom:none;\n border-top: $loaderBorder solid $loaderColor;\n border-left: $loaderBorder solid $loaderAlternateColor;\n }\n }\n\n &.small {\n width: $smallLoaderSize;\n height: $smallLoaderSize;\n border-width: $smallLoaderBorder;\n &:before {\n width: $smallLoaderSize;\n height: $smallLoaderSize;\n left: $smallLoaderBorder*-1;\n top: $smallLoaderBorder*-1;\n border-right-width: $smallLoaderBorder;\n border-top-width: $smallLoaderBorder;\n border-left-width: $smallLoaderBorder;\n border-bottom-width: $smallLoaderBorder;\n }\n }\n}\n\n.animate-bounceIn {\n @include animate(bounceIn);\n}\n\n.animate-fadeIn {\n @include animate(fadeIn);\n}\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/lib/_animate.scss\n **/","/*! normalize.css v3.0.2 | MIT License | git.io/normalize */\n\n/**\n * 1. Set default font family to sans-serif.\n * 2. Prevent iOS text size adjust after orientation change, without disabling\n * user zoom.\n */\n\nhtml {\n font-family: sans-serif; /* 1 */\n -ms-text-size-adjust: 100%; /* 2 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/**\n * Remove default margin.\n */\n\nbody {\n margin: 0;\n}\n\n/* HTML5 display definitions\n ========================================================================== */\n\n/**\n * Correct `block` display not defined for any HTML5 element in IE 8/9.\n * Correct `block` display not defined for `details` or `summary` in IE 10/11\n * and Firefox.\n * Correct `block` display not defined for `main` in IE 11.\n */\n\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\nsection,\nsummary {\n display: block;\n}\n\n/**\n * 1. Correct `inline-block` display not defined in IE 8/9.\n * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.\n */\n\naudio,\ncanvas,\nprogress,\nvideo {\n display: inline-block; /* 1 */\n vertical-align: baseline; /* 2 */\n}\n\n/**\n * Prevent modern browsers from displaying `audio` without controls.\n * Remove excess height in iOS 5 devices.\n */\n\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\n/**\n * Address `[hidden]` styling not present in IE 8/9/10.\n * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.\n */\n\n[hidden],\ntemplate {\n display: none;\n}\n\n/* Links\n ========================================================================== */\n\n/**\n * Remove the gray background color from active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * Improve readability when focused and also mouse hovered in all browsers.\n */\n\na:active,\na:hover {\n outline: 0;\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Address styling not present in IE 8/9/10/11, Safari, and Chrome.\n */\n\nabbr[title] {\n border-bottom: 1px dotted;\n}\n\n/**\n * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.\n */\n\nb,\nstrong {\n font-weight: bold;\n}\n\n/**\n * Address styling not present in Safari and Chrome.\n */\n\ndfn {\n font-style: italic;\n}\n\n/**\n * Address variable `h1` font-size and margin within `section` and `article`\n * contexts in Firefox 4+, Safari, and Chrome.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/**\n * Address styling not present in IE 8/9.\n */\n\nmark {\n background: #ff0;\n color: #000;\n}\n\n/**\n * Address inconsistent and variable font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` affecting `line-height` in all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsup {\n top: -0.5em;\n}\n\nsub {\n bottom: -0.25em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove border when inside `a` element in IE 8/9/10.\n */\n\nimg {\n border: 0;\n}\n\n/**\n * Correct overflow not hidden in IE 9/10/11.\n */\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * Address margin not present in IE 8/9 and Safari.\n */\n\nfigure {\n margin: 1em 40px;\n}\n\n/**\n * Address differences between Firefox and other browsers.\n */\n\nhr {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n height: 0;\n}\n\n/**\n * Contain overflow in all browsers.\n */\n\npre {\n overflow: auto;\n}\n\n/**\n * Address odd `em`-unit font size rendering in all browsers.\n */\n\ncode,\nkbd,\npre,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * Known limitation: by default, Chrome and Safari on OS X allow very limited\n * styling of `select`, unless a `border` property is set.\n */\n\n/**\n * 1. Correct color not being inherited.\n * Known issue: affects color of disabled elements.\n * 2. Correct font properties not being inherited.\n * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n color: inherit; /* 1 */\n font: inherit; /* 2 */\n margin: 0; /* 3 */\n}\n\n/**\n * Address `overflow` set to `hidden` in IE 8/9/10/11.\n */\n\nbutton {\n overflow: visible;\n}\n\n/**\n * Address inconsistent `text-transform` inheritance for `button` and `select`.\n * All other form control elements do not inherit `text-transform` values.\n * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.\n * Correct `select` style inheritance in Firefox.\n */\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/**\n * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`\n * and `video` controls.\n * 2. Correct inability to style clickable `input` types in iOS.\n * 3. Improve usability and consistency of cursor style between image-type\n * `input` and others.\n */\n\nbutton,\nhtml input[type=\"button\"], /* 1 */\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n -webkit-appearance: button; /* 2 */\n cursor: pointer; /* 3 */\n}\n\n/**\n * Re-set default cursor for disabled elements.\n */\n\nbutton[disabled],\nhtml input[disabled] {\n cursor: default;\n}\n\n/**\n * Remove inner padding and border in Firefox 4+.\n */\n\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\n\n/**\n * Address Firefox 4+ setting `line-height` on `input` using `!important` in\n * the UA stylesheet.\n */\n\ninput {\n line-height: normal;\n}\n\n/**\n * It's recommended that you don't attempt to style these elements.\n * Firefox's implementation doesn't respect box-sizing, padding, or width.\n *\n * 1. Address box sizing set to `content-box` in IE 8/9/10.\n * 2. Remove excess padding in IE 8/9/10.\n */\n\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Fix the cursor style for Chrome's increment/decrement buttons. For certain\n * `font-size` values of the `input`, it causes the cursor style of the\n * decrement button to change from `default` to `text`.\n */\n\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Address `appearance` set to `searchfield` in Safari and Chrome.\n * 2. Address `box-sizing` set to `border-box` in Safari and Chrome\n * (include `-moz` to future-proof).\n */\n\ninput[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n -moz-box-sizing: content-box;\n -webkit-box-sizing: content-box; /* 2 */\n box-sizing: content-box;\n}\n\n/**\n * Remove inner padding and search cancel button in Safari and Chrome on OS X.\n * Safari (but not Chrome) clips the cancel button when the search input has\n * padding (and `textfield` appearance).\n */\n\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * Define consistent border, margin, and padding.\n */\n\nfieldset {\n border: 1px solid #c0c0c0;\n margin: 0 2px;\n padding: 0.35em 0.625em 0.75em;\n}\n\n/**\n * 1. Correct `color` not being inherited in IE 8/9/10/11.\n * 2. Remove padding so people aren't caught out if they zero out fieldsets.\n */\n\nlegend {\n border: 0; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Remove default vertical scrollbar in IE 8/9/10/11.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * Don't inherit the `font-weight` (applied by a rule above).\n * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.\n */\n\noptgroup {\n font-weight: bold;\n}\n\n/* Tables\n ========================================================================== */\n\n/**\n * Remove most spacing between table cells.\n */\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\ntd,\nth {\n padding: 0;\n}\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/lib/_normalize.scss\n **/","// Global Tooltip\n@mixin tooltip-container() {\n z-index: $indexTooltip;\n pointer-events: none;\n display: inline-block;\n opacity: 0;\n position: absolute;\n color: #fff;\n border-radius: $globalRadius;\n padding: 7px 10px 7px;\n will-change: transform, opacity;\n transition: opacity $globalMediumEaseTime ease, transform $globalMediumEaseTime ease;\n font-size: $tooltipFontSize;\n font-weight: $tooltipFontWeight;\n transform: translate3d(0, -6px, 0);\n background: $tooltipBg;\n word-wrap: break-word;\n\n &.error-tooltip {\n word-break: normal;\n background: $alertTooltipColor;\n }\n &.open {\n opacity: 1;\n }\n max-width: 250px;\n text-align: center;\n\n @include tooltip-arrow-state($tooltipBg);\n &.error-tooltip {\n @include tooltip-arrow-state($alertTooltipColor);\n }\n}\n\n@if $executeDefaultMixins {\n .tooltip-container {\n @include tooltip-container();\n }\n}\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/lib/_tooltip.scss\n **/"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack:///assets/assets/lib/_animations.scss","webpack:///webpack:///assets/assets/marklib.scss","webpack:///webpack:///assets/assets/lib/_highlighting.scss","webpack:///webpack:///assets/~/flexcss/assets/_base.scss","webpack:///webpack:///assets/~/flexcss/assets/_settings.scss","webpack:///webpack:///assets/~/flexcss/assets/lib/_mixins.scss","webpack:///webpack:///assets/~/flexcss/assets/lib/_animate.scss","webpack:///webpack:///assets/~/flexcss/assets/lib/_normalize.scss","webpack:///webpack:///assets/~/flexcss/assets/lib/_tooltip.scss"],"names":[],"mappings":"AAAA;EACE;IACE,WAAW;IACX,2CAA8B;GCC/B;EDGD;IACE,WAAW;IACX,wBAAwB;GCDzB;CACF;;ADID;EACE;IACE,WAAW;IACX,2CAAsB;YAAtB,mCAAsB;GCDvB;EDID;IACE,WAAW;IACX,wBAAgB;YAAhB,gBAAgB;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;EACE,oBAAkB;CACnB;;AAED;EACE,oBAAkB;CACnB;;AAED;;EAEE,+BAAkD;CACnD;;AAED;EACE,oBAAmB;CACpB;;AAFD;EACE,oBAAmB;CACpB;;AAED;EACE,UAAS;CACV;;AACD;EACE,eAAc;EACd,uBAAuB;EACvB,iBAAgB;EAChB,cAAa;EACb,kCAAiC;CAClC;;AAMD;EACE,iBAAgB;CACjB;;AAED;EACE,+BAAuB;UAAvB,uBAAuB;EACvB,gCAAuB;UAAvB,wBAAuB;CACxB;;AAED;EAEE;IACE,cAAa;GACd;EAED;IACE,cAAa;GACd;CA26CF","file":"css/styles.css","sourcesContent":["@-webkit-keyframes fadeInDown {\n 0% {\n opacity: 0;\n -webkit-transform: translate3d(0, -5px, 0);\n\n }\n\n 100% {\n opacity: 1;\n -webkit-transform: none;\n }\n}\n\n@keyframes fadeInDown {\n 0% {\n opacity: 0;\n transform: translate3d(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: none;\n }\n}\n\n@-webkit-keyframes fadeInDownSlow {\n 0% {\n opacity: 0;\n -webkit-transform: translate3d(0, -30px, 0);\n\n }\n\n 100% {\n opacity: 1;\n -webkit-transform: none;\n }\n}\n\n@keyframes fadeInDownSlow {\n 0% {\n opacity: 0;\n transform: translate3d(0, -30px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: none;\n }\n}\n\n\n@keyframes bubble {\n\n 0% {\n transform:translate3d(0, -4px, 0);\n }\n\n 100% {\n transform:translate3d(0,0,0);\n }\n}\n\n\n@-webkit-keyframes bubble {\n\n 0% {\n -webkit-transform:translate3d(0, -4px, 0);\n }\n\n 100% {\n -webkit-transform:translate3d(0,0,0);\n }\n}\n\n\n.fadeInDown {\n animation-name: fadeInDown;\n animation-duration: .2s;\n}\n\n.fadeInDownSlow {\n animation-name: fadeInDownSlow;\n animation-duration: 2s;\n}\n\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/assets/lib/_animations.scss\n **/","// Some settings:\n$markingColor: #2ecc71;\n$buttonBaseColor: #95a5a6;\n$buttonAltColor:#9b59b6;\n$buttonWarnColor:#e74c3c;\n$maxWidth:960px;\n$twitterColor:#00aced;\n$includeFontello:false;\n\n@import 'lib/animations';\n@import 'lib/highlighting';\n@import '~flexcss/assets/packages/tooltip';\n\nbody {\n font-family: \"Roboto\", sans-serif;\n padding:0;\n margin:0;\n font-weight:300;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.highlight {\n margin:0;\n pre {\n max-width: $maxWidth;\n margin: 0 auto;\n }\n}\n\ncode {\n font-size:1.3rem;\n}\n\n.wrapper {\n max-width:$maxWidth;\n margin:0 auto;\n}\n\nstrong {\n font-weight:500;\n}\n\nheader {\n padding:10px;\n}\n\n.text-center {\n text-align:center;\n}\n\n.subline {\n font-size:2rem;\n font-weight:100;\n}\n\n.presentation {\n background: rgba(#34495e,.7);\n color:#fff;\n padding:40px;\n}\n\nh1, h2 {\n font-family: \"Shadows Into Light\", sans-serif;\n}\n\np {\n font-size:1rem;\n line-height:1.6;\n}\n\n.button, button {\n font:inherit;\n font-weight:400;\n background: $buttonBaseColor;\n border:none;\n padding:10px 15px;\n border-radius:5px;\n font-size:1rem;\n cursor:pointer;\n color:#fff;\n transition:background .5s ease, transform .5s ease;\n &:hover {\n background: lighten($buttonBaseColor, 10%);\n transform:translate3d(0,4px,0);\n }\n margin:10px;\n display:inline-block;\n text-decoration: none;\n > * {\n pointer-events:none;\n }\n\n &.alt {\n background:$buttonAltColor;\n &:hover {\n background:lighten($buttonAltColor, 10%);\n }\n }\n\n &.warn {\n background:$buttonWarnColor;\n &:hover {\n background:lighten($buttonWarnColor, 10%);\n }\n }\n\n &.twitter {\n background:$twitterColor;\n\n &:hover {\n background: lighten($twitterColor, 10%);\n }\n }\n}\n\n.marking {\n transition:background .5s ease;\n background: $markingColor;\n cursor:pointer;\n}\n\n.deleted {\n transition:background .5s ease;\n background: none !important;\n}\n\n.marking .marking {\n background: darken($markingColor, 10%);\n}\n\n.marking .marking .marking {\n background: darken($markingColor, 20%);\n}\n\n.marking.marklib--hover .marking,\n.marking.marklib--hover {\n background: lighten($markingColor, 25%) !important;\n}\n\n::selection {\n background: lighten($markingColor, 20%);\n}\n\npre {\n margin:0;\n}\npre > code {\n display:block;\n font-family: monospace;\n overflow-y:auto;\n padding:30px;\n -webkit-overflow-scrolling:touch;\n}\n\n.animate .wrapper {\n @extend .fadeInDownSlow;\n}\n\n.tight {\n margin-bottom:0;\n}\n\n.marking.bubble {\n animation-name: bubble;\n animation-duration:.3s;\n}\n\n@media (max-width:480px) {\n\n .presentation {\n padding:15px;\n }\n\n .hide-small {\n display:none;\n }\n}\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/assets/marklib.scss\n **/","/* \n Darkly Pygments Theme\n (c) 2014 Sourcey\n http://sourcey.com\n*/\n\n.highlight {\n white-space: pre;\n overflow: auto;\n word-wrap: normal; /* horizontal scrolling */\n background: #343642;\n color: #C1C2C3;\n}\n.highlight .hll { background-color: #ffc; }\n.highlight .gd { color: #2e3436; background-color: #0e1416; }\n.highlight .gr { color: #eeeeec; background-color: #c00; }\n.highlight .gi { color: #babdb6; background-color: #1f2b2d; }\n.highlight .go { color: #2c3032; background-color: #2c3032; }\n.highlight .kt { color: #e3e7df; }\n.highlight .ni { color: #888a85; }\n.highlight .c,.highlight .cm,.highlight .c1,.highlight .cs { color: #8D9684; }\n.highlight .err,.highlight .g,.highlight .l,.highlight .n,.highlight .x,.highlight .p,.highlight .ge,\n.highlight .gp,.highlight .gs,.highlight .gt,.highlight .ld,.highlight .s,.highlight .nc,.highlight .nd,\n.highlight .ne,.highlight .nl,.highlight .nn,.highlight .nx,.highlight .py,.highlight .ow,.highlight .w,.highlight .sb,\n.highlight .sc,.highlight .sd,.highlight .s2,.highlight .se,.highlight .sh,.highlight .si,.highlight .sx,.highlight .sr,\n.highlight .s1,.highlight .ss,.highlight .bp { color: #C1C2C3; }\n.highlight .k,.highlight .kc,.highlight .kd,.highlight .kn,.highlight .kp,.highlight .kr,\n.highlight .nt { color: #729fcf; }\n.highlight .cp,.highlight .gh,.highlight .gu,.highlight .na,.highlight .nf { color: #E9A94B ; }\n.highlight .m,.highlight .nb,.highlight .no,.highlight .mf,.highlight .mh,.highlight .mi,.highlight .mo,\n.highlight .il { color: #8ae234; }\n.highlight .o { color: #989DAA; }\n.highlight .nv,.highlight .vc,.highlight .vg,.highlight .vi { color: #fff; }\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/assets/lib/_highlighting.scss\n **/","/* Base File that contains all dependencies (mixins, vars etc.)*/\n\n// global settings\n@import \"settings\";\n// mixins used by components\n@import \"lib/mixins\";\n// animations\n@import \"lib/animate\";\n// bundled normalize library\n@import \"lib/normalize\";\n// bundled fonts\n@import \"lib/fontello\";\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/_base.scss\n **/","/**\n* Base Settings\n*/\n\n// Minimal footer height:\n$footerHeight: 100px !default;\n\n// maximum site width (before staying centered layout)\n$overallMaxWidth: 1200px !default;\n\n// a base padding, used by various components\n$overallPadding: 10px !default;\n$overallPaddingTopBottom: 25px !default;\n$overallPaddingTopBottomDesktop: 30px !default;\n$overallPaddingLarge: 50px !default;\n// padding when in desktop state\n$paddingRightLeftDesktop: 20px !default;\n\n// paragraphs:\n$paragraphMargin: 0 0 1rem 0;\n// some layout globals:\n$baseFontFamily: 'Open Sans', Arial, sans-serif !default;\n$baseFontSize: 14px !default;\n$baseColor: #262626 !default;\n$baseLineHeight: 1.3 !default;\n\n// grid columns\n$columns: one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve;\n\n// A Base gray color where other gray tones are inhered from\n$grayColor: #999 !default;\n$lighterGrayColor: #ccc !default;\n\n// A base light gray color for surfaces\n$lightGrayColor: #f1f1f1 !default;\n$globalHoverColor: #f8f8f8 !default;\n\n$smallFontSize: 12px !default;\n$smallFontSizeLineHeight: 1.5 !default;\n$extraSmallFontSize: $smallFontSize !default;\n\n$globalShortEaseTime: .2s !default;\n$globalMediumEaseTime: .35s !default;\n$globalLongEaseTime: .8s !default;\n$globalMenuEasing: ease !default;\n\n$h1FontSize: 18px !default;\n$h2FontSize: $h1FontSize - 1px !default;\n$h3FontSize: $h1FontSize - 3px !default;\n\n$h1DesktopFontSize: 20px !default;\n$h1Color: $baseColor !default;\n$headingMargin: 0 0 1rem 0 !default;\n\n$primaryColor: #258db8 !default;\n$secondaryColor: #e6007e !default;\n$actionColor: #83ba5e !default;\n$alertColor: #d84c3d !default;\n$dangerColor: #f08201 !default;\n$successColor: #43A047 !default;\n$globalRadius: 3px !default;\n\n// breakpoints\n\n$breakpointLarge: 1000px !default;\n$breakpointInBetween: 900px !default;\n$breakpointDesktop: 768px !default;\n\n$mediaDesktop: \"all and (min-width: #{$breakpointDesktop})\";\n$mediaLarge: \"all and (min-width: #{$breakpointLarge})\";\n$mediaInBetween: \"all and (min-width: #{$breakpointInBetween})\";\n$mediaSmall: \"all and (max-width: #{$breakpointDesktop - 1px})\";\n$mediaLandscape: \"only screen and (orientation: landscape)\" !default;\n$mediaPortrait: \"only screen and (orientation: portrait)\" !default;\n\n// sidebar\n$sidebarWidthLarge: 273px !default;\n$sidebarWidthDesktop: 220px !default;\n$sidebarBackground: #fafafa !default;\n\n// Navigation and Sidebar when in mobile state (left + right)\n$MainNavigationWidth: 250px !default;\n$MainSidebarWidth: 265px !default;\n$MainNavigationBg: #4a4a4a !default;\n\n// topbar\n$topbarHeight: 43px !default;\n$topbarHeightDesktop: 43px !default;\n$tabHeight: 40px !default;\n$topbarBg: #333333 !default;\n$topbarBgDesktop: #333 !default;\n$topbarColor: #aaa !default;\n$topbarActionColor: $topbarColor !default;\n$topbarActionColorHover: #fff !default;\n$navigationTogglerColor:#fff !default;\n\n$topBarFontSize: 18px !default;\n\n$topbarActionFontWeight: bold !default;\n$topbarNavActiveFontWeight: bold !default;\n$topbarNavActiveColor: #fff !default;\n$topbarNavHoverColor: $topbarNavActiveColor !default;\n\n// wide topbar\n$topbarNavActiveColorWide: $topbarNavActiveColor !default;\n$topbarNavHoverColorWide: $topbarNavHoverColor !default;\n$topbarColorWide: #aaa !default;\n\n\n\n// z-indexes:\n$indexModalContainer: 22 !default;\n$indexDarkener: 21 !default;\n$indexDropdown: 3 !default;\n$indexFixedDropdown: 22 !default;\n$indexTooltip: 31 !default;\n$indexMainNavigation: $indexDarkener + 1 !default;\n$indexSidebar: $indexDarkener + 1 !default;\n$indexModalCurrent: 10 !default;\n\n// Box Shadows:\n$globalBoxShadow: 0px 0px 3px rgba(#000, .7) !default;\n$globalBorderColor: $lightGrayColor !default;\n$globalBorder:1px solid $globalBorderColor !default;\n\n// subnav\n$subnavColor: #616161 !default;\n$subnavActiveColor: #616161 !default;\n$subnavHoverColor: lighten($subnavColor, 20%) !default;\n$subnavTriggerColor:$baseColor !default;\n// subnav\n$subnavBg: $lightGrayColor !default;\n$subnavBgDesktop: $subnavBg !default;\n$subnavActiveFontWeight: bold !default;\n$subnavBorderTop: false !default;\n$subnavBorderBottom: true !default;\n$subnavHeightDesktop: 43px !default;\n$subnavHeight: 43px !default;\n$subnavBorderTopBorder:$globalBorder !default;\n$subnavSlideBorder:$globalBorder !default;\n\n// Modal Settings:\n$modalAlertWidthDesktop: 320px !default;\n$modalWidthSmall: 360px !default;\n$modalAnimateName: bounceIn !default;\n$modalAnimateDuration: .6s !default;\n$modalBackground: #fff !default;\n$modalBoxShadow: $globalBoxShadow !default;\n$minWidthModalDesktop: 640px !default;\n$modalCloseHoverColor: lighten($baseColor, 40%) !default;\n$modalCloseHoverBackground: lighten($grayColor, 35%) !default;\n$modalCloseActiveColor: lighten($baseColor, 10%) !default;\n$modalCloseActiveBackground: lighten($grayColor, 30%) !default;\n\n//forms\n$inputBackground: $lightGrayColor !default;\n$inputColor: #616161 !default;\n$inputBorder: none !default;\n$inputBorderInvalid: none !default;\n$inputBackgroundInvalid: lighten($alertColor, 40%) !default;\n$inputDisabledBg: #fafafa !default;\n$inputDisabledColor: #bababa !default;\n$inputDisabledBorder: #e0e0e0 !default;\n$inputFocusColor: darken($inputBackground, 5%) !default;\n$inputFocusBorderColor: none !default;\n$inputFocusBoxShadow: none !default;\n$labelWidthDesktop: calc(25% + .375rem) !default;\n$labelMinWidth: 0 !default;\n$labelColor: $baseColor !default;\n$labelFontSize: $smallFontSize !default;\n$labelFontWeight:normal !default;\n$labelPaddingDesktop: 5px 1rem 0 0 !default;\n$inputHeight: 35px !default;\n$formMargin: 30px !default;\n$formMarginDesktop: 30px !default;\n$formActionsPadding: 40px !default;\n$formActionsPaddingDesktop: 60px !default;\n$formMinWidthControls: 330px !default;\n$appendMargin: 20px !default;\n// append Margins for different states (last-child etc.)\n$appendMarginTopNegative: -10px !default;\n$appendMarginTopPositive: 10px !default;\n$thirdColumnPaddingOffsetInBetween: $labelWidthDesktop !default;\n$inputMultiFormSpacing: 10px !default;\n$controlMargin: 20px !default;\n$formWidthControlsBetween: calc(50% - .75rem) !default;\n$formWidthControls: calc(75% - .5rem) !default;\n$inputPadding: 8px 10px !default;\n$textareaPadding: 10px !default;\n$legendMargin: $formMargin !default;\n$legendMarginDesktop: $formMarginDesktop !default;\n$uneditableInputPadding: 8px 10px !default;\n$inputBoxShadow: none !default;\n$legendFontSize: $baseFontSize !default;\n$legendFontWeight: bold !default;\n$legendColor: $baseColor !default;\n$placeholderColor: lighten($grayColor, 10%) !default;\n$selectPickerColor: #a6a6a6 !default;\n$selectChooseBackgroundColor: transparent !default;\n$labelMargin: 3px !default;\n$formParagraphMargin: $appendMarginTopPositive !default;\n$checkboxAndOptionHeight: 20px !default;\n$checkRadioColor: $primaryColor !default;\n$labelTextAlign: right !default;\n$copyTextFormsFontSize: $smallFontSize !default;\n$copyTextFormsLineHeight: $smallFontSizeLineHeight !default;\n$copyTextFormsMultipleMarginTop: .5rem !default;\n$inputFontSize: $baseFontSize !default;\n$inputTransitions: background .5s ease !default;\n$checkboxMargin: 0px 0 0 28px;\n$disabledThumbColor: lighten($lighterGrayColor, 10%);\n$inputBorderRadius: $globalRadius !default;\n// buttons\n$buttonColor: #fff !default;\n$btnPrimaryColor: $actionColor !default;\n$btnSecondaryColor: #c3c3c3 !default;\n$btnDangerColor: $dangerColor !default;\n$btnAlternativeColor: $primaryColor !default;\n$btnFontSize: $baseFontSize !default;\n$btnPadding: 11px 45px 10px !default;\n$btnBackgroundSize: 40px 40px !default;\n$btnSmallPadding: 7px 30px 7px !default;\n$btnFontWeight: bold !default;\n$btnRadius: $globalRadius !default;\n// tabs\n$tabBottomLineHeight: 2px !default;\n$tabsSmallPadding: 5px !default;\n$tabsSmallLineHeight: 1px !default;\n\n// loader\n\n$loaderSize: 40px !default;\n$loaderColor: lighten(#ccc, 5%) !default;\n$loaderBorder: 4px !default;\n$smallLoaderSize: 20px !default;\n$smallLoaderBorder: 2px !default;\n$loaderAlternate: false !default;\n$loaderAlternateColor: #ccc !default;\n// fonts\n$includeFontello: true !default;\n$fontelloFontPath: '../fonts/fontello' !default;\n$iconFontName: 'fontello';\n\n// Effects:\n$darkenerFadeOpacity: .35 !default;\n$darkenerColor: #000 !default;\n\n// darkener when using background-color (e.g. in modals)\n$backgroundDarkenerFadeOpacity: .35 !default;\n$backgroundDarkenerColor: #000 !default;\n\n// dropdowns:\n$dropdownBorderColor: lighten($grayColor, 20%) !default;\n$dropdownMaxHeight: 300px !default;\n\n// lightbox\n$lightboxImageBackground: black !default;\n$lightBoxMinHeightDesktop: 300px !default;\n$lightBoxWidthLarge: 60% !default;\n$lightBoxMinHeightLarge: calc(80vh - 40px) !default;\n\n// tooltips\n$tooltipBg: #333 !default;\n$tooltipFontSize: $smallFontSize !default;\n$alertTooltipColor: $tooltipBg !default;\n$tooltipFontWeight: 600 !default;\n\n// breadcrumbs\n$breadcrumbFontSize: $baseFontSize !default;\n$breadcrumbFontSizeLarge: 18px !default;\n$breadcrumbColor: #ccc !default;\n$breadcrumbSeparatorIcon: \" \\00B7 \";\n\n// labeled\n$labeledSpacing: 1rem !default;\n$labeledBorder: 1px solid $globalBorderColor !default;\n$labeledPaddingTopDesktop: 0 !default;\n\n// icons:\n$iconSpacingButton: .3rem !default;\n$iconSpacing: .1rem !default;\n\n// table\n$tableBorder: $globalBorder !default;\n$tableSpacing: 10px 1rem 10px 0 !default;\n$tableSpacingBreak: 6px 1rem 6px 0 !default;\n$tableSpacingLastAndFirst: 5px !default;\n$tableTransition: background .1s ease !default;\n$tableHeaderColor:$primaryColor !default;\n\n// listings:\n$listingMinHeight: 105px !default;\n$listingAvatarRowLarge: 84px !default;\n$listingAvatarRow: 84px !default;\n$listingAvatarRowSmall: 36px !default;\n$listingOuterPadding: 10px !default;\n$listingSpaceRight: 30px !default;\n$listingSmallWidth: 30% !default;\n\n// panel\n$panelBackground: $lightGrayColor !default;\n\n// links:\n$linkFontWeight: 600 !default;\n$linkHoverColor: lighten($primaryColor, 10%) !default;\n\n// code:\n$codeBackgroundColor: lighten($grayColor, 35%) !default;\n$codeBorderColor: lighten($grayColor, 20%) !default;\n\n// badge:\n$badgePadding: 0 5px !default;\n$badgeBackground: $secondaryColor !default;\n\n// selection\n$selectionBackground: lighten($primaryColor, 25%) !default;\n$selectionColor: #fff !default;\n\n// breadcrumbs\n$breadcrumbShortenPortrait: true !default;\n\n\n// Execute component mixins\n$executeDefaultMixins: true !default;\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/_settings.scss\n **/","/**\n* Utility mixins\n*/\n\n// interface\n@mixin interface($case: none) {\n user-select: $case;\n}\n\n@mixin font-smoothing() {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n// Creates an arrow at the bottom\n@mixin arrow-bottom($color: black, $left: 50%) {\n\n &:after {\n top: 100%;\n border: solid transparent;\n content: \" \";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n\n &:after {\n border-color: transparent;\n border-top-color: $color;\n border-width: 5px;\n left: $left;\n margin-left: -5px;\n }\n}\n\n@mixin arrow-bottom-color($color) {\n &:after {\n border-top-color: $color;\n }\n}\n\n// helper to fix flickering/blurry in different browsers\n@mixin perspectiveHelper($perspective: 1000px) {\n perspective: $perspective;\n transform-style: preserve-3d;\n backface-visibility: hidden;\n}\n\n@mixin perspective($perspective: 1000px) {\n perspective: $perspective;\n}\n\n// a central loader\n@mixin centralLoader() {\n left: calc(50% - #{$loaderSize - 10px});\n top: calc(50% - #{$loaderSize - 10px});\n background: #fff;\n padding: 10px;\n border-radius: $globalRadius;\n box-shadow: $globalBoxShadow;\n}\n\n// creates an arrow at top\n@mixin arrow-top($color: #fff, $left: 50%) {\n\n &:after, &:before {\n bottom: 100%;\n left: $left;\n border: solid transparent;\n content: \" \";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n\n &:after {\n border-color: transparent;\n border-bottom-color: $color;\n border-width: 5px;\n margin-left: -5px;\n }\n}\n\n@mixin arrow-top-color($color) {\n &:after {\n border-bottom-color: $color;\n }\n}\n\n// creates a link in a specific color\n@mixin link-color($color: $grayColor, $fontWeight:normal, $hoverColor:lighten($color, 10%),\n $activeColor:darken($color, 10%)) {\n color: $color;\n font-weight: $fontWeight;\n cursor: pointer;\n &:hover {\n color: $hoverColor;\n }\n\n &:active {\n color: $activeColor;\n }\n}\n\n// keyframes helper for different vendors\n@mixin keyframes($name) {\n @-webkit-keyframes #{$name} {\n @content;\n }\n @-moz-keyframes #{$name} {\n @content;\n }\n @-ms-keyframes #{$name} {\n @content;\n }\n @keyframes #{$name} {\n @content;\n }\n}\n\n// animations\n@mixin animate($name, $duration: .5s, $iterationCount: 1, $direction: normal) {\n animation-name: $name;\n animation-duration: $duration;\n animation-fill-mode: both;\n animation-iteration-count: $iterationCount;\n animation-direction: $direction;\n}\n\n// Creates an overflow container\n@mixin overflowContainer($color, $height: 100%, $width: 60px) {\n\n position: relative;\n transform: translateZ(0px);\n\n &:after {\n content: ' ';\n background: linear-gradient(to right, rgba($color, 0) 0%, $color 100%);;\n width: $width;\n height: $height;\n position: absolute;\n right: 0;\n top: 0;\n pointer-events: none;\n }\n}\n\n// creates a loading animation\n// Shamelessly stolen from bootstrap\n@mixin loadingContainer($color: #fff) {\n animation: progress-bar-stripes 2s linear infinite;\n cursor: wait;\n background-image: linear-gradient(45deg, rgba($color, .15) 25%, transparent 25%,\n transparent 50%, rgba($color, .15) 50%, rgba($color, .15) 75%,\n transparent 75%, transparent);\n background-size: 40px 40px;\n}\n\n// small helper for ellipsis\n@mixin ellipsis($max-width: 300px) {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n max-width: $max-width;\n}\n\n/**\n* Creates an icon, by default uses fontello\n* Nested spans are no icons anymore\n*/\n@mixin icon($font: $iconFontName) {\n font-family: $font;\n font-weight: normal !important;\n font-style: normal;\n text-decoration: inherit;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n display: inline-block;\n &:before {\n text-decoration: inherit;\n display: inline-block;\n speak: none;\n }\n span {\n font-family: $baseFontFamily;\n }\n}\n\n/**\n* A Mixin that creates a bottom border for a specific element and animates it on hover\n* On active state this border is always active\n* Don't forget to set position:relative to element\n*/\n@mixin borderWobble($color: $primaryColor, $height: $tabBottomLineHeight, $padding: $overallPadding) {\n\n &:hover, &.active {\n &:after {\n left: 0;\n width: calc(100% - (#{$padding*2}));\n opacity: 1;\n }\n }\n\n &:after {\n will-change: width, left, opacity;\n content: ' ';\n position: absolute;\n width: 0;\n background: $color;\n opacity: 0;\n height: $height;\n bottom: 0;\n left: calc(50% - (#{$padding}));\n margin: 0 $padding;\n transition: width .2s ease, left .2s ease, opacity .2s ease;\n }\n}\n\n/**\n* Mixin to clear floats\n*/\n@mixin clearfix() {\n *zoom: 1;\n &:before, &:after {\n content: \" \";\n display: table;\n }\n &:after {\n clear: both;\n }\n}\n\n/**\n* Mixin to support a specific retina display\n*/\n@mixin retinaDisplay($ratio: 1.3) {\n @media only screen and (-webkit-min-device-pixel-ratio: $ratio),\n only screen and (min--moz-device-pixel-ratio: $ratio),\n only screen and (-o-min-device-pixel-ratio: #{$ratio}/1),\n only screen and (min-device-pixel-ratio: $ratio),\n only screen and (min-resolution: #{$ratio}dppx) {\n @content;\n }\n}\n\n/**\n* Mixin to support retina displays on a specific size\n*/\n@mixin retinaDisplayScreenSize($ratio:1.3, $size:$breakpointDesktop) {\n @media only screen and (-webkit-min-device-pixel-ratio: $ratio) and (min-width: #{$breakpointDesktop}),\n only screen and (min--moz-device-pixel-ratio: $ratio) and (min-width: #{$breakpointDesktop}),\n only screen and (-o-min-device-pixel-ratio: #{$ratio}/1) and (min-width: #{$breakpointDesktop}),\n only screen and (min-device-pixel-ratio: $ratio) and (min-width: #{$breakpointDesktop}),\n only screen and (min-resolution: #{$ratio}dppx) and (min-width: #{$breakpointDesktop}) {\n @content;\n }\n}\n\n/**\n* Mixin that generates a simple grid\n*/\n@mixin generate-grid($columns: $columns) {\n $gridSize: length($columns);\n @for $i from 1 to $gridSize {\n $class: nth($columns, $i);\n &.#{$class} {\n width: #{$i/$gridSize *100}%;\n }\n }\n @media #{$mediaSmall} {\n @for $i from 1 to $gridSize {\n $class: nth($columns, $i);\n &.small-#{$class} {\n width: #{$i/$gridSize *100}%;\n }\n }\n }\n}\n\n/**\n * Mixin that creates a colored section that may include links\n */\n@mixin create-color-section($color, $decoration: underline, $fontWeight: normal, $hoverColor: darken($color, 20) ) {\n color: $color !important;\n a {\n color: $color !important;\n text-decoration: $decoration;\n font-weight: $fontWeight;\n &:hover {\n color: $hoverColor !important;\n }\n }\n}\n\n/* Form Mixins */\n\n/**\n* Inputs\n*/\n@mixin inputs() {\n .input, select, textarea,\n input:not([type=\"submit\"]):not([type=\"radio\"]):not([type=\"checkbox\"]) {\n @content;\n }\n}\n\n/**\n* Base Input Style\n*/\n@mixin input-style() {\n background-color: $inputBackground;\n border: $inputBorder;\n box-shadow: $inputBoxShadow;\n border-radius: $inputBorderRadius;\n}\n\n/**\n* Input style when focused\n*/\n@mixin focus-input-style() {\n background-color: $inputFocusColor;\n border-color: $inputFocusBorderColor !important;\n box-shadow: $inputFocusBoxShadow !important;\n outline: none;\n}\n\n/**\n* Mixin to create a button style\n*/\n@mixin button-style($color, $background) {\n background-color: $background;\n border-color: transparent;\n color: $color;\n\n $disabledColor: rgba($background, .4);\n $disabledOutlineColor: rgba($background, .2);\n &.outline {\n background-color: transparent;\n border-color: $background;\n color: $background;\n\n &:hover {\n background-color: $background;\n color: $color;\n }\n\n &.disabled, &[disabled] {\n background-color: transparent;\n color: $disabledOutlineColor;\n border-color: $disabledOutlineColor;\n }\n }\n\n &:hover {\n color: $color;\n background-color: rgba($background, .7);\n &.loading {\n background-color: $background;\n }\n }\n\n &:active, &:focus, &.outline:active, &.outline:focus {\n &:not(.disabled):not([disabled]) {\n transition: none;\n color: $color;\n background-color: darken($background, 10%);\n border-color: transparent;\n }\n }\n\n &.disabled, [disabled] {\n background-color: $disabledColor;\n color:$color;\n cursor: not-allowed;\n }\n}\n\n/**\n* Mixin to create a multine ellipsis\n*/\n@mixin multi-line-ellipsis($fontSize:14px, $lineHeight:1.4, $maxLines:3) {\n height: $fontSize*$lineHeight*$maxLines;\n display:block;\n display: -webkit-box;\n line-height: $lineHeight;\n -webkit-line-clamp: $maxLines;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: $fontSize;\n}\n\n@mixin multi-line-ellipsis-fade($lineHeight:1.5, $maxLines:6, $fontSize:15px, $fadeBackground:white) {\n\n $maxHeight: $fontSize*$lineHeight*$maxLines;\n $spacer:5px;\n\n &:before {\n content:\"\";\n float: left;\n width: $spacer;\n height: $maxHeight;\n }\n\n line-height: $lineHeight;\n overflow: hidden;\n height: $maxHeight;\n\n > *:first-child {\n float: right;\n width: 100%;\n margin:0;\n margin-left: $spacer*-1;\n }\n\n &:after {\n content: \"\\00a0\\00a0\\00a0\";\n box-sizing: content-box;\n float: right;\n position: relative;\n top: ($lineHeight*$fontSize) * -1;\n left: 100%;\n width: 50%;\n margin-left: -50%;\n padding-right: $spacer;\n text-align: right;\n background-size: 100% 100%;\n background: linear-gradient(to right, rgba(255, 255, 255, 0),\n $fadeBackground 100%, $fadeBackground);\n }\n}\n\n/**\n* Tooltips\n*/\n@mixin spaceTop() {\n &.open {\n transform: translate3d(0, 6px, 0);\n }\n}\n\n@mixin spaceBottom() {\n &.open {\n transform: translate3d(0, -3px, 0);\n }\n}\n\n@mixin tooltip-arrow-state($arrowColor) {\n &.is-collision-bottom:not(.is-collision-left) {\n @include spaceBottom();\n @include arrow-bottom($arrowColor);\n }\n\n &:not(.is-collision-bottom):not(.is-collision-left) {\n @include spaceTop();\n @include arrow-top($arrowColor);\n }\n\n // left collisions\n &.is-collision-left.is-collision-bottom {\n @include spaceBottom();\n @include arrow-bottom($arrowColor, 15px);\n }\n\n &.is-collision-left:not(.is-collision-bottom) {\n @include spaceTop();\n @include arrow-top($arrowColor, 15px);\n }\n\n // right collisions\n &.is-collision-right:not(.is-collision-bottom) {\n @include spaceTop();\n @include arrow-top($arrowColor, calc(100% - 15px));\n }\n\n &.is-collision-right.is-collision-bottom {\n @include spaceBottom();\n @include arrow-bottom($arrowColor, calc(100% - 15px));\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/lib/_mixins.scss\n **/","/**\n* Global Animations\n*/\n\n@include keyframes(progress-bar-stripes) {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n\n@include keyframes(backgroundFadeIn) {\n from {\n background: rgba($backgroundDarkenerColor, 0);\n }\n to {\n background: rgba($backgroundDarkenerColor, $backgroundDarkenerFadeOpacity);\n }\n}\n\n@include keyframes(fadeOut) {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n}\n\n/**\n* Creates a small bounce effect\n*/\n@include keyframes(bounceIn) {\n\n 0%, 40%, 100% {\n animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);\n }\n\n 0% {\n opacity: 0;\n transform: scale3d(.3, .3, .3);\n }\n\n 40% {\n opacity: 1;\n transform: scale3d(1.03, 1.03, 1.03);\n }\n\n 100% {\n opacity: 1;\n transform: scale3d(1, 1, 1);\n }\n}\n\n/**\n* FadeIn Effect\n*/\n@include keyframes(fadeIn) {\n 0%, 100% {\n animation-timing-function: ease;\n }\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n@include keyframes(darkenerFadeIn) {\n 0%, 100% {\n animation-timing-function: ease;\n }\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: $darkenerFadeOpacity;\n }\n}\n\n@include keyframes(darkenerFadeOut) {\n 0%, 100% {\n animation-timing-function: ease;\n }\n 0% {\n opacity: $darkenerFadeOpacity;\n }\n 100% {\n opacity: 0;\n }\n}\n\n/**\n* Endless spinner, used for loaders\n*/\n@include keyframes(spin) {\n 100% {\n transform: rotate(360deg);\n }\n}\n\n/**\n* used by alert modals\n*/\n@include keyframes(fromBottom) {\n 0% {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n}\n\n@include keyframes(tabWobbleLine) {\n 0% {\n opacity: 0;\n left: calc(50% - (#{$overallPadding}));\n width: 0%;\n\n }\n\n 100% {\n opacity: 1;\n left: 0;\n width: calc(100% - (#{$overallPadding*2}));\n }\n}\n\n@include keyframes(tabWobbleLineSmall) {\n 0% {\n opacity: 0;\n left: calc(50% - (#{$overallPadding}));\n width: 0%;\n }\n\n 100% {\n opacity: 1;\n left: 0;\n width: calc(100% - (#{$tabsSmallPadding*2}));\n }\n}\n\n.loader {\n display: block;\n margin: 0 auto;\n width: $loaderSize;\n height: $loaderSize;\n border-radius: 50%;\n border: $loaderBorder solid transparent;\n position: relative;\n animation: spin 1s infinite cubic-bezier(.37,.73,.62,.28);\n\n &:before {\n content: '';\n width: $loaderSize;\n height: $loaderSize;\n border-radius: 50%;\n display: block;\n position: absolute;\n left: $loaderBorder*-1;\n top: $loaderBorder*-1;\n\n border-right: $loaderBorder solid $loaderColor;\n border-top: $loaderBorder solid $loaderColor;\n border-left: $loaderBorder solid #fff;\n border-bottom: $loaderBorder solid $loaderColor;\n\n @if $loaderAlternate {\n border-right:none;\n border-bottom:none;\n border-top: $loaderBorder solid $loaderColor;\n border-left: $loaderBorder solid $loaderAlternateColor;\n }\n }\n\n &.small {\n width: $smallLoaderSize;\n height: $smallLoaderSize;\n border-width: $smallLoaderBorder;\n &:before {\n width: $smallLoaderSize;\n height: $smallLoaderSize;\n left: $smallLoaderBorder*-1;\n top: $smallLoaderBorder*-1;\n border-right-width: $smallLoaderBorder;\n border-top-width: $smallLoaderBorder;\n border-left-width: $smallLoaderBorder;\n border-bottom-width: $smallLoaderBorder;\n }\n }\n}\n\n.animate-bounceIn {\n @include animate(bounceIn);\n}\n\n.animate-fadeIn {\n @include animate(fadeIn);\n}\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/lib/_animate.scss\n **/","/*! normalize.css v3.0.2 | MIT License | git.io/normalize */\n\n/**\n * 1. Set default font family to sans-serif.\n * 2. Prevent iOS text size adjust after orientation change, without disabling\n * user zoom.\n */\n\nhtml {\n font-family: sans-serif; /* 1 */\n -ms-text-size-adjust: 100%; /* 2 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/**\n * Remove default margin.\n */\n\nbody {\n margin: 0;\n}\n\n/* HTML5 display definitions\n ========================================================================== */\n\n/**\n * Correct `block` display not defined for any HTML5 element in IE 8/9.\n * Correct `block` display not defined for `details` or `summary` in IE 10/11\n * and Firefox.\n * Correct `block` display not defined for `main` in IE 11.\n */\n\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\nsection,\nsummary {\n display: block;\n}\n\n/**\n * 1. Correct `inline-block` display not defined in IE 8/9.\n * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.\n */\n\naudio,\ncanvas,\nprogress,\nvideo {\n display: inline-block; /* 1 */\n vertical-align: baseline; /* 2 */\n}\n\n/**\n * Prevent modern browsers from displaying `audio` without controls.\n * Remove excess height in iOS 5 devices.\n */\n\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\n/**\n * Address `[hidden]` styling not present in IE 8/9/10.\n * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.\n */\n\n[hidden],\ntemplate {\n display: none;\n}\n\n/* Links\n ========================================================================== */\n\n/**\n * Remove the gray background color from active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * Improve readability when focused and also mouse hovered in all browsers.\n */\n\na:active,\na:hover {\n outline: 0;\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Address styling not present in IE 8/9/10/11, Safari, and Chrome.\n */\n\nabbr[title] {\n border-bottom: 1px dotted;\n}\n\n/**\n * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.\n */\n\nb,\nstrong {\n font-weight: bold;\n}\n\n/**\n * Address styling not present in Safari and Chrome.\n */\n\ndfn {\n font-style: italic;\n}\n\n/**\n * Address variable `h1` font-size and margin within `section` and `article`\n * contexts in Firefox 4+, Safari, and Chrome.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/**\n * Address styling not present in IE 8/9.\n */\n\nmark {\n background: #ff0;\n color: #000;\n}\n\n/**\n * Address inconsistent and variable font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` affecting `line-height` in all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsup {\n top: -0.5em;\n}\n\nsub {\n bottom: -0.25em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove border when inside `a` element in IE 8/9/10.\n */\n\nimg {\n border: 0;\n}\n\n/**\n * Correct overflow not hidden in IE 9/10/11.\n */\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * Address margin not present in IE 8/9 and Safari.\n */\n\nfigure {\n margin: 1em 40px;\n}\n\n/**\n * Address differences between Firefox and other browsers.\n */\n\nhr {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n height: 0;\n}\n\n/**\n * Contain overflow in all browsers.\n */\n\npre {\n overflow: auto;\n}\n\n/**\n * Address odd `em`-unit font size rendering in all browsers.\n */\n\ncode,\nkbd,\npre,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * Known limitation: by default, Chrome and Safari on OS X allow very limited\n * styling of `select`, unless a `border` property is set.\n */\n\n/**\n * 1. Correct color not being inherited.\n * Known issue: affects color of disabled elements.\n * 2. Correct font properties not being inherited.\n * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n color: inherit; /* 1 */\n font: inherit; /* 2 */\n margin: 0; /* 3 */\n}\n\n/**\n * Address `overflow` set to `hidden` in IE 8/9/10/11.\n */\n\nbutton {\n overflow: visible;\n}\n\n/**\n * Address inconsistent `text-transform` inheritance for `button` and `select`.\n * All other form control elements do not inherit `text-transform` values.\n * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.\n * Correct `select` style inheritance in Firefox.\n */\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/**\n * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`\n * and `video` controls.\n * 2. Correct inability to style clickable `input` types in iOS.\n * 3. Improve usability and consistency of cursor style between image-type\n * `input` and others.\n */\n\nbutton,\nhtml input[type=\"button\"], /* 1 */\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n -webkit-appearance: button; /* 2 */\n cursor: pointer; /* 3 */\n}\n\n/**\n * Re-set default cursor for disabled elements.\n */\n\nbutton[disabled],\nhtml input[disabled] {\n cursor: default;\n}\n\n/**\n * Remove inner padding and border in Firefox 4+.\n */\n\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\n\n/**\n * Address Firefox 4+ setting `line-height` on `input` using `!important` in\n * the UA stylesheet.\n */\n\ninput {\n line-height: normal;\n}\n\n/**\n * It's recommended that you don't attempt to style these elements.\n * Firefox's implementation doesn't respect box-sizing, padding, or width.\n *\n * 1. Address box sizing set to `content-box` in IE 8/9/10.\n * 2. Remove excess padding in IE 8/9/10.\n */\n\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Fix the cursor style for Chrome's increment/decrement buttons. For certain\n * `font-size` values of the `input`, it causes the cursor style of the\n * decrement button to change from `default` to `text`.\n */\n\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Address `appearance` set to `searchfield` in Safari and Chrome.\n * 2. Address `box-sizing` set to `border-box` in Safari and Chrome\n * (include `-moz` to future-proof).\n */\n\ninput[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n -moz-box-sizing: content-box;\n -webkit-box-sizing: content-box; /* 2 */\n box-sizing: content-box;\n}\n\n/**\n * Remove inner padding and search cancel button in Safari and Chrome on OS X.\n * Safari (but not Chrome) clips the cancel button when the search input has\n * padding (and `textfield` appearance).\n */\n\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * Define consistent border, margin, and padding.\n */\n\nfieldset {\n border: 1px solid #c0c0c0;\n margin: 0 2px;\n padding: 0.35em 0.625em 0.75em;\n}\n\n/**\n * 1. Correct `color` not being inherited in IE 8/9/10/11.\n * 2. Remove padding so people aren't caught out if they zero out fieldsets.\n */\n\nlegend {\n border: 0; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Remove default vertical scrollbar in IE 8/9/10/11.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * Don't inherit the `font-weight` (applied by a rule above).\n * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.\n */\n\noptgroup {\n font-weight: bold;\n}\n\n/* Tables\n ========================================================================== */\n\n/**\n * Remove most spacing between table cells.\n */\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\ntd,\nth {\n padding: 0;\n}\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/lib/_normalize.scss\n **/","// Global Tooltip\n@mixin tooltip-container() {\n z-index: $indexTooltip;\n pointer-events: none;\n display: inline-block;\n opacity: 0;\n position: absolute;\n color: #fff;\n border-radius: $globalRadius;\n padding: 7px 10px 7px;\n will-change: transform, opacity;\n transition: opacity $globalMediumEaseTime ease, transform $globalMediumEaseTime ease;\n font-size: $tooltipFontSize;\n font-weight: $tooltipFontWeight;\n transform: translate3d(0, -6px, 0);\n background: $tooltipBg;\n word-wrap: break-word;\n\n &.error-tooltip {\n word-break: normal;\n background: $alertTooltipColor;\n }\n &.open {\n opacity: 1;\n }\n max-width: 250px;\n text-align: center;\n\n @include tooltip-arrow-state($tooltipBg);\n &.error-tooltip {\n @include tooltip-arrow-state($alertTooltipColor);\n }\n}\n\n@if $executeDefaultMixins {\n .tooltip-container {\n @include tooltip-container();\n }\n}\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/lib/_tooltip.scss\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/build/js/styles.min.map b/build/js/styles.min.map index 03fcee0..548ca1e 100644 --- a/build/js/styles.min.map +++ b/build/js/styles.min.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack:///assets/assets/lib/_animations.scss","webpack:///webpack:///assets/assets/marklib.scss","webpack:///webpack:///assets/assets/lib/_highlighting.scss","webpack:///webpack:///assets/~/flexcss/assets/lib/_mixins.scss","webpack:///webpack:///assets/~/flexcss/assets/lib/_animate.scss","webpack:///webpack:///assets/~/flexcss/assets/_settings.scss","webpack:///webpack:///assets/~/flexcss/assets/lib/_normalize.scss","webpack:///webpack:///assets/~/flexcss/assets/lib/_toolt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EX,SACE,cACA,sBACA,gBACA,aACA,gCAAiC,CAOnC,OACE,eAAgB,CAGlB,gBACE,8BAAuB,sBACvB,+BAAuB,uBAGzB,yBAEE,cACE,YAAa,CAGf,YACE,YAAa,CACd","file":"css/styles.min.css","sourcesContent":["@-webkit-keyframes fadeInDown {\n 0% {\n opacity: 0;\n -webkit-transform: translate3d(0, -5px, 0);\n\n }\n\n 100% {\n opacity: 1;\n -webkit-transform: none;\n }\n}\n\n@keyframes fadeInDown {\n 0% {\n opacity: 0;\n transform: translate3d(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: none;\n }\n}\n\n@-webkit-keyframes fadeInDownSlow {\n 0% {\n opacity: 0;\n -webkit-transform: translate3d(0, -30px, 0);\n\n }\n\n 100% {\n opacity: 1;\n -webkit-transform: none;\n }\n}\n\n@keyframes fadeInDownSlow {\n 0% {\n opacity: 0;\n transform: translate3d(0, -30px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: none;\n }\n}\n\n\n@keyframes bubble {\n\n 0% {\n transform:translate3d(0, -4px, 0);\n }\n\n 100% {\n transform:translate3d(0,0,0);\n }\n}\n\n\n@-webkit-keyframes bubble {\n\n 0% {\n -webkit-transform:translate3d(0, -4px, 0);\n }\n\n 100% {\n -webkit-transform:translate3d(0,0,0);\n }\n}\n\n\n.fadeInDown {\n animation-name: fadeInDown;\n animation-duration: .2s;\n}\n\n.fadeInDownSlow {\n animation-name: fadeInDownSlow;\n animation-duration: 2s;\n}\n\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/assets/lib/_animations.scss\n **/","// Some settings:\n$markingColor: #2ecc71;\n$buttonBaseColor: #95a5a6;\n$buttonAltColor:#9b59b6;\n$buttonWarnColor:#e74c3c;\n$maxWidth:960px;\n$twitterColor:#00aced;\n$includeFontello:false;\n\n@import 'lib/animations';\n@import 'lib/highlighting';\n@import '~flexcss/assets/packages/tooltip';\n\nbody {\n font-family: \"Roboto\", sans-serif;\n padding:0;\n margin:0;\n font-weight:300;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.highlight {\n pre {\n max-width: $maxWidth;\n margin: 0 auto;\n }\n}\n\ncode {\n font-size:1.3rem;\n}\n\n.wrapper {\n max-width:$maxWidth;\n margin:0 auto;\n}\n\nstrong {\n font-weight:500;\n}\n\nheader {\n padding:10px;\n}\n\n.text-center {\n text-align:center;\n}\n\n.subline {\n font-size:2rem;\n font-weight:100;\n}\n\n.presentation {\n background: rgba(#34495e,.7);\n color:#fff;\n padding:40px;\n}\n\nh1, h2 {\n font-family: \"Shadows Into Light\", sans-serif;\n}\n\np {\n font-size:1rem;\n line-height:1.6;\n}\n\n.button, button {\n font:inherit;\n font-weight:400;\n background: $buttonBaseColor;\n border:none;\n padding:10px 15px;\n border-radius:5px;\n font-size:1rem;\n cursor:pointer;\n color:#fff;\n transition:background .5s ease, transform .5s ease;\n &:hover {\n background: lighten($buttonBaseColor, 10%);\n transform:translate3d(0,4px,0);\n }\n margin:10px;\n display:inline-block;\n text-decoration: none;\n > * {\n pointer-events:none;\n }\n\n &.alt {\n background:$buttonAltColor;\n &:hover {\n background:lighten($buttonAltColor, 10%);\n }\n }\n\n &.warn {\n background:$buttonWarnColor;\n &:hover {\n background:lighten($buttonWarnColor, 10%);\n }\n }\n\n &.twitter {\n background:$twitterColor;\n\n &:hover {\n background: lighten($twitterColor, 10%);\n }\n }\n}\n\n.marking {\n transition:background .5s ease;\n background: $markingColor;\n cursor:pointer;\n}\n\n.deleted {\n transition:background .5s ease;\n background: none !important;\n}\n\n.marking .marking {\n background: darken($markingColor, 10%);\n}\n\n.marking .marking .marking {\n background: darken($markingColor, 20%);\n}\n\n.marking.marklib--hover .marking,\n.marking.marklib--hover {\n background: lighten($markingColor, 25%) !important;\n}\n\n::selection {\n background: lighten($markingColor, 20%);\n}\n\npre {\n margin:0;\n}\npre > code {\n display:block;\n font-family: monospace;\n overflow-y:auto;\n padding:30px;\n -webkit-overflow-scrolling:touch;\n}\n\n.animate .wrapper {\n @extend .fadeInDownSlow;\n}\n\n.tight {\n margin-bottom:0;\n}\n\n.marking.bubble {\n animation-name: bubble;\n animation-duration:.3s;\n}\n\n@media (max-width:480px) {\n\n .presentation {\n padding:15px;\n }\n\n .hide-small {\n display:none;\n }\n}\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/assets/marklib.scss\n **/","/* \n Darkly Pygments Theme\n (c) 2014 Sourcey\n http://sourcey.com\n*/\n\n.highlight {\n white-space: pre;\n overflow: auto;\n word-wrap: normal; /* horizontal scrolling */\n background: #343642;\n color: #C1C2C3;\n}\n.highlight .hll { background-color: #ffc; }\n.highlight .gd { color: #2e3436; background-color: #0e1416; }\n.highlight .gr { color: #eeeeec; background-color: #c00; }\n.highlight .gi { color: #babdb6; background-color: #1f2b2d; }\n.highlight .go { color: #2c3032; background-color: #2c3032; }\n.highlight .kt { color: #e3e7df; }\n.highlight .ni { color: #888a85; }\n.highlight .c,.highlight .cm,.highlight .c1,.highlight .cs { color: #8D9684; }\n.highlight .err,.highlight .g,.highlight .l,.highlight .n,.highlight .x,.highlight .p,.highlight .ge,\n.highlight .gp,.highlight .gs,.highlight .gt,.highlight .ld,.highlight .s,.highlight .nc,.highlight .nd,\n.highlight .ne,.highlight .nl,.highlight .nn,.highlight .nx,.highlight .py,.highlight .ow,.highlight .w,.highlight .sb,\n.highlight .sc,.highlight .sd,.highlight .s2,.highlight .se,.highlight .sh,.highlight .si,.highlight .sx,.highlight .sr,\n.highlight .s1,.highlight .ss,.highlight .bp { color: #C1C2C3; }\n.highlight .k,.highlight .kc,.highlight .kd,.highlight .kn,.highlight .kp,.highlight .kr,\n.highlight .nt { color: #729fcf; }\n.highlight .cp,.highlight .gh,.highlight .gu,.highlight .na,.highlight .nf { color: #E9A94B ; }\n.highlight .m,.highlight .nb,.highlight .no,.highlight .mf,.highlight .mh,.highlight .mi,.highlight .mo,\n.highlight .il { color: #8ae234; }\n.highlight .o { color: #989DAA; }\n.highlight .nv,.highlight .vc,.highlight .vg,.highlight .vi { color: #fff; }\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/assets/lib/_highlighting.scss\n **/","/**\n* Utility mixins\n*/\n\n// interface\n@mixin interface($case: none) {\n user-select: $case;\n}\n\n@mixin font-smoothing() {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n// Creates an arrow at the bottom\n@mixin arrow-bottom($color: black, $left: 50%) {\n\n &:after {\n top: 100%;\n border: solid transparent;\n content: \" \";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n\n &:after {\n border-color: transparent;\n border-top-color: $color;\n border-width: 5px;\n left: $left;\n margin-left: -5px;\n }\n}\n\n@mixin arrow-bottom-color($color) {\n &:after {\n border-top-color: $color;\n }\n}\n\n// helper to fix flickering/blurry in different browsers\n@mixin perspectiveHelper($perspective: 1000px) {\n perspective: $perspective;\n transform-style: preserve-3d;\n backface-visibility: hidden;\n}\n\n@mixin perspective($perspective: 1000px) {\n perspective: $perspective;\n}\n\n// a central loader\n@mixin centralLoader() {\n left: calc(50% - #{$loaderSize - 10px});\n top: calc(50% - #{$loaderSize - 10px});\n background: #fff;\n padding: 10px;\n border-radius: $globalRadius;\n box-shadow: $globalBoxShadow;\n}\n\n// creates an arrow at top\n@mixin arrow-top($color: #fff, $left: 50%) {\n\n &:after, &:before {\n bottom: 100%;\n left: $left;\n border: solid transparent;\n content: \" \";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n\n &:after {\n border-color: transparent;\n border-bottom-color: $color;\n border-width: 5px;\n margin-left: -5px;\n }\n}\n\n@mixin arrow-top-color($color) {\n &:after {\n border-bottom-color: $color;\n }\n}\n\n// creates a link in a specific color\n@mixin link-color($color: $grayColor, $fontWeight:normal, $hoverColor:lighten($color, 10%),\n $activeColor:darken($color, 10%)) {\n color: $color;\n font-weight: $fontWeight;\n cursor: pointer;\n &:hover {\n color: $hoverColor;\n }\n\n &:active {\n color: $activeColor;\n }\n}\n\n// keyframes helper for different vendors\n@mixin keyframes($name) {\n @-webkit-keyframes #{$name} {\n @content;\n }\n @-moz-keyframes #{$name} {\n @content;\n }\n @-ms-keyframes #{$name} {\n @content;\n }\n @keyframes #{$name} {\n @content;\n }\n}\n\n// animations\n@mixin animate($name, $duration: .5s, $iterationCount: 1, $direction: normal) {\n animation-name: $name;\n animation-duration: $duration;\n animation-fill-mode: both;\n animation-iteration-count: $iterationCount;\n animation-direction: $direction;\n}\n\n// Creates an overflow container\n@mixin overflowContainer($color, $height: 100%, $width: 60px) {\n\n position: relative;\n transform: translateZ(0px);\n\n &:after {\n content: ' ';\n background: linear-gradient(to right, rgba($color, 0) 0%, $color 100%);;\n width: $width;\n height: $height;\n position: absolute;\n right: 0;\n top: 0;\n pointer-events: none;\n }\n}\n\n// creates a loading animation\n// Shamelessly stolen from bootstrap\n@mixin loadingContainer($color: #fff) {\n animation: progress-bar-stripes 2s linear infinite;\n cursor: wait;\n background-image: linear-gradient(45deg, rgba($color, .15) 25%, transparent 25%,\n transparent 50%, rgba($color, .15) 50%, rgba($color, .15) 75%,\n transparent 75%, transparent);\n background-size: 40px 40px;\n}\n\n// small helper for ellipsis\n@mixin ellipsis($max-width: 300px) {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n max-width: $max-width;\n}\n\n/**\n* Creates an icon, by default uses fontello\n* Nested spans are no icons anymore\n*/\n@mixin icon($font: $iconFontName) {\n font-family: $font;\n font-weight: normal !important;\n font-style: normal;\n text-decoration: inherit;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n display: inline-block;\n &:before {\n text-decoration: inherit;\n display: inline-block;\n speak: none;\n }\n span {\n font-family: $baseFontFamily;\n }\n}\n\n/**\n* A Mixin that creates a bottom border for a specific element and animates it on hover\n* On active state this border is always active\n* Don't forget to set position:relative to element\n*/\n@mixin borderWobble($color: $primaryColor, $height: $tabBottomLineHeight, $padding: $overallPadding) {\n\n &:hover, &.active {\n &:after {\n left: 0;\n width: calc(100% - (#{$padding*2}));\n opacity: 1;\n }\n }\n\n &:after {\n will-change: width, left, opacity;\n content: ' ';\n position: absolute;\n width: 0;\n background: $color;\n opacity: 0;\n height: $height;\n bottom: 0;\n left: calc(50% - (#{$padding}));\n margin: 0 $padding;\n transition: width .2s ease, left .2s ease, opacity .2s ease;\n }\n}\n\n/**\n* Mixin to clear floats\n*/\n@mixin clearfix() {\n *zoom: 1;\n &:before, &:after {\n content: \" \";\n display: table;\n }\n &:after {\n clear: both;\n }\n}\n\n/**\n* Mixin to support a specific retina display\n*/\n@mixin retinaDisplay($ratio: 1.3) {\n @media only screen and (-webkit-min-device-pixel-ratio: $ratio),\n only screen and (min--moz-device-pixel-ratio: $ratio),\n only screen and (-o-min-device-pixel-ratio: #{$ratio}/1),\n only screen and (min-device-pixel-ratio: $ratio),\n only screen and (min-resolution: #{$ratio}dppx) {\n @content;\n }\n}\n\n/**\n* Mixin to support retina displays on a specific size\n*/\n@mixin retinaDisplayScreenSize($ratio:1.3, $size:$breakpointDesktop) {\n @media only screen and (-webkit-min-device-pixel-ratio: $ratio) and (min-width: #{$breakpointDesktop}),\n only screen and (min--moz-device-pixel-ratio: $ratio) and (min-width: #{$breakpointDesktop}),\n only screen and (-o-min-device-pixel-ratio: #{$ratio}/1) and (min-width: #{$breakpointDesktop}),\n only screen and (min-device-pixel-ratio: $ratio) and (min-width: #{$breakpointDesktop}),\n only screen and (min-resolution: #{$ratio}dppx) and (min-width: #{$breakpointDesktop}) {\n @content;\n }\n}\n\n/**\n* Mixin that generates a simple grid\n*/\n@mixin generate-grid($columns: $columns) {\n $gridSize: length($columns);\n @for $i from 1 to $gridSize {\n $class: nth($columns, $i);\n &.#{$class} {\n width: #{$i/$gridSize *100}%;\n }\n }\n @media #{$mediaSmall} {\n @for $i from 1 to $gridSize {\n $class: nth($columns, $i);\n &.small-#{$class} {\n width: #{$i/$gridSize *100}%;\n }\n }\n }\n}\n\n/**\n * Mixin that creates a colored section that may include links\n */\n@mixin create-color-section($color, $decoration: underline, $fontWeight: normal, $hoverColor: darken($color, 20) ) {\n color: $color !important;\n a {\n color: $color !important;\n text-decoration: $decoration;\n font-weight: $fontWeight;\n &:hover {\n color: $hoverColor !important;\n }\n }\n}\n\n/* Form Mixins */\n\n/**\n* Inputs\n*/\n@mixin inputs() {\n .input, select, textarea,\n input:not([type=\"submit\"]):not([type=\"radio\"]):not([type=\"checkbox\"]) {\n @content;\n }\n}\n\n/**\n* Base Input Style\n*/\n@mixin input-style() {\n background-color: $inputBackground;\n border: $inputBorder;\n box-shadow: $inputBoxShadow;\n border-radius: $inputBorderRadius;\n}\n\n/**\n* Input style when focused\n*/\n@mixin focus-input-style() {\n background-color: $inputFocusColor;\n border-color: $inputFocusBorderColor !important;\n box-shadow: $inputFocusBoxShadow !important;\n outline: none;\n}\n\n/**\n* Mixin to create a button style\n*/\n@mixin button-style($color, $background) {\n background-color: $background;\n border-color: transparent;\n color: $color;\n\n $disabledColor: rgba($background, .4);\n $disabledOutlineColor: rgba($background, .2);\n &.outline {\n background-color: transparent;\n border-color: $background;\n color: $background;\n\n &:hover {\n background-color: $background;\n color: $color;\n }\n\n &.disabled, &[disabled] {\n background-color: transparent;\n color: $disabledOutlineColor;\n border-color: $disabledOutlineColor;\n }\n }\n\n &:hover {\n color: $color;\n background-color: rgba($background, .7);\n &.loading {\n background-color: $background;\n }\n }\n\n &:active, &:focus, &.outline:active, &.outline:focus {\n &:not(.disabled):not([disabled]) {\n transition: none;\n color: $color;\n background-color: darken($background, 10%);\n border-color: transparent;\n }\n }\n\n &.disabled, [disabled] {\n background-color: $disabledColor;\n color:$color;\n cursor: not-allowed;\n }\n}\n\n/**\n* Mixin to create a multine ellipsis\n*/\n@mixin multi-line-ellipsis($fontSize:14px, $lineHeight:1.4, $maxLines:3) {\n height: $fontSize*$lineHeight*$maxLines;\n display:block;\n display: -webkit-box;\n line-height: $lineHeight;\n -webkit-line-clamp: $maxLines;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: $fontSize;\n}\n\n@mixin multi-line-ellipsis-fade($lineHeight:1.5, $maxLines:6, $fontSize:15px, $fadeBackground:white) {\n\n $maxHeight: $fontSize*$lineHeight*$maxLines;\n $spacer:5px;\n\n &:before {\n content:\"\";\n float: left;\n width: $spacer;\n height: $maxHeight;\n }\n\n line-height: $lineHeight;\n overflow: hidden;\n height: $maxHeight;\n\n > *:first-child {\n float: right;\n width: 100%;\n margin:0;\n margin-left: $spacer*-1;\n }\n\n &:after {\n content: \"\\00a0\\00a0\\00a0\";\n box-sizing: content-box;\n float: right;\n position: relative;\n top: ($lineHeight*$fontSize) * -1;\n left: 100%;\n width: 50%;\n margin-left: -50%;\n padding-right: $spacer;\n text-align: right;\n background-size: 100% 100%;\n background: linear-gradient(to right, rgba(255, 255, 255, 0),\n $fadeBackground 100%, $fadeBackground);\n }\n}\n\n/**\n* Tooltips\n*/\n@mixin spaceTop() {\n &.open {\n transform: translate3d(0, 6px, 0);\n }\n}\n\n@mixin spaceBottom() {\n &.open {\n transform: translate3d(0, -3px, 0);\n }\n}\n\n@mixin tooltip-arrow-state($arrowColor) {\n &.is-collision-bottom:not(.is-collision-left) {\n @include spaceBottom();\n @include arrow-bottom($arrowColor);\n }\n\n &:not(.is-collision-bottom):not(.is-collision-left) {\n @include spaceTop();\n @include arrow-top($arrowColor);\n }\n\n // left collisions\n &.is-collision-left.is-collision-bottom {\n @include spaceBottom();\n @include arrow-bottom($arrowColor, 15px);\n }\n\n &.is-collision-left:not(.is-collision-bottom) {\n @include spaceTop();\n @include arrow-top($arrowColor, 15px);\n }\n\n // right collisions\n &.is-collision-right:not(.is-collision-bottom) {\n @include spaceTop();\n @include arrow-top($arrowColor, calc(100% - 15px));\n }\n\n &.is-collision-right.is-collision-bottom {\n @include spaceBottom();\n @include arrow-bottom($arrowColor, calc(100% - 15px));\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/lib/_mixins.scss\n **/","/**\n* Global Animations\n*/\n\n@include keyframes(progress-bar-stripes) {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n\n@include keyframes(backgroundFadeIn) {\n from {\n background: rgba($backgroundDarkenerColor, 0);\n }\n to {\n background: rgba($backgroundDarkenerColor, $backgroundDarkenerFadeOpacity);\n }\n}\n\n@include keyframes(fadeOut) {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n}\n\n/**\n* Creates a small bounce effect\n*/\n@include keyframes(bounceIn) {\n\n 0%, 40%, 100% {\n animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);\n }\n\n 0% {\n opacity: 0;\n transform: scale3d(.3, .3, .3);\n }\n\n 40% {\n opacity: 1;\n transform: scale3d(1.03, 1.03, 1.03);\n }\n\n 100% {\n opacity: 1;\n transform: scale3d(1, 1, 1);\n }\n}\n\n/**\n* FadeIn Effect\n*/\n@include keyframes(fadeIn) {\n 0%, 100% {\n animation-timing-function: ease;\n }\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n@include keyframes(darkenerFadeIn) {\n 0%, 100% {\n animation-timing-function: ease;\n }\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: $darkenerFadeOpacity;\n }\n}\n\n@include keyframes(darkenerFadeOut) {\n 0%, 100% {\n animation-timing-function: ease;\n }\n 0% {\n opacity: $darkenerFadeOpacity;\n }\n 100% {\n opacity: 0;\n }\n}\n\n/**\n* Endless spinner, used for loaders\n*/\n@include keyframes(spin) {\n 100% {\n transform: rotate(360deg);\n }\n}\n\n/**\n* used by alert modals\n*/\n@include keyframes(fromBottom) {\n 0% {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n}\n\n@include keyframes(tabWobbleLine) {\n 0% {\n opacity: 0;\n left: calc(50% - (#{$overallPadding}));\n width: 0%;\n\n }\n\n 100% {\n opacity: 1;\n left: 0;\n width: calc(100% - (#{$overallPadding*2}));\n }\n}\n\n@include keyframes(tabWobbleLineSmall) {\n 0% {\n opacity: 0;\n left: calc(50% - (#{$overallPadding}));\n width: 0%;\n }\n\n 100% {\n opacity: 1;\n left: 0;\n width: calc(100% - (#{$tabsSmallPadding*2}));\n }\n}\n\n.loader {\n display: block;\n margin: 0 auto;\n width: $loaderSize;\n height: $loaderSize;\n border-radius: 50%;\n border: $loaderBorder solid transparent;\n position: relative;\n animation: spin 1s infinite cubic-bezier(.37,.73,.62,.28);\n\n &:before {\n content: '';\n width: $loaderSize;\n height: $loaderSize;\n border-radius: 50%;\n display: block;\n position: absolute;\n left: $loaderBorder*-1;\n top: $loaderBorder*-1;\n\n border-right: $loaderBorder solid $loaderColor;\n border-top: $loaderBorder solid $loaderColor;\n border-left: $loaderBorder solid #fff;\n border-bottom: $loaderBorder solid $loaderColor;\n\n @if $loaderAlternate {\n border-right:none;\n border-bottom:none;\n border-top: $loaderBorder solid $loaderColor;\n border-left: $loaderBorder solid $loaderAlternateColor;\n }\n }\n\n &.small {\n width: $smallLoaderSize;\n height: $smallLoaderSize;\n border-width: $smallLoaderBorder;\n &:before {\n width: $smallLoaderSize;\n height: $smallLoaderSize;\n left: $smallLoaderBorder*-1;\n top: $smallLoaderBorder*-1;\n border-right-width: $smallLoaderBorder;\n border-top-width: $smallLoaderBorder;\n border-left-width: $smallLoaderBorder;\n border-bottom-width: $smallLoaderBorder;\n }\n }\n}\n\n.animate-bounceIn {\n @include animate(bounceIn);\n}\n\n.animate-fadeIn {\n @include animate(fadeIn);\n}\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/lib/_animate.scss\n **/","/**\n* Base Settings\n*/\n\n// Minimal footer height:\n$footerHeight: 100px !default;\n\n// maximum site width (before staying centered layout)\n$overallMaxWidth: 1200px !default;\n\n// a base padding, used by various components\n$overallPadding: 10px !default;\n$overallPaddingTopBottom: 25px !default;\n$overallPaddingTopBottomDesktop: 30px !default;\n$overallPaddingLarge: 50px !default;\n// padding when in desktop state\n$paddingRightLeftDesktop: 20px !default;\n\n// paragraphs:\n$paragraphMargin: 0 0 1rem 0;\n// some layout globals:\n$baseFontFamily: 'Open Sans', Arial, sans-serif !default;\n$baseFontSize: 14px !default;\n$baseColor: #262626 !default;\n$baseLineHeight: 1.3 !default;\n\n// grid columns\n$columns: one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve;\n\n// A Base gray color where other gray tones are inhered from\n$grayColor: #999 !default;\n$lighterGrayColor: #ccc !default;\n\n// A base light gray color for surfaces\n$lightGrayColor: #f1f1f1 !default;\n$globalHoverColor: #f8f8f8 !default;\n\n$smallFontSize: 12px !default;\n$smallFontSizeLineHeight: 1.5 !default;\n$extraSmallFontSize: $smallFontSize !default;\n\n$globalShortEaseTime: .2s !default;\n$globalMediumEaseTime: .35s !default;\n$globalLongEaseTime: .8s !default;\n$globalMenuEasing: ease !default;\n\n$h1FontSize: 18px !default;\n$h2FontSize: $h1FontSize - 1px !default;\n$h3FontSize: $h1FontSize - 3px !default;\n\n$h1DesktopFontSize: 20px !default;\n$h1Color: $baseColor !default;\n$headingMargin: 0 0 1rem 0 !default;\n\n$primaryColor: #258db8 !default;\n$secondaryColor: #e6007e !default;\n$actionColor: #83ba5e !default;\n$alertColor: #d84c3d !default;\n$dangerColor: #f08201 !default;\n$successColor: #43A047 !default;\n$globalRadius: 3px !default;\n\n// breakpoints\n\n$breakpointLarge: 1000px !default;\n$breakpointInBetween: 900px !default;\n$breakpointDesktop: 768px !default;\n\n$mediaDesktop: \"all and (min-width: #{$breakpointDesktop})\";\n$mediaLarge: \"all and (min-width: #{$breakpointLarge})\";\n$mediaInBetween: \"all and (min-width: #{$breakpointInBetween})\";\n$mediaSmall: \"all and (max-width: #{$breakpointDesktop - 1px})\";\n$mediaLandscape: \"only screen and (orientation: landscape)\" !default;\n$mediaPortrait: \"only screen and (orientation: portrait)\" !default;\n\n// sidebar\n$sidebarWidthLarge: 273px !default;\n$sidebarWidthDesktop: 220px !default;\n$sidebarBackground: #fafafa !default;\n\n// Navigation and Sidebar when in mobile state (left + right)\n$MainNavigationWidth: 250px !default;\n$MainSidebarWidth: 265px !default;\n$MainNavigationBg: #4a4a4a !default;\n\n// topbar\n$topbarHeight: 43px !default;\n$topbarHeightDesktop: 43px !default;\n$tabHeight: 40px !default;\n$topbarBg: #333333 !default;\n$topbarBgDesktop: #333 !default;\n$topbarColor: #aaa !default;\n$topbarActionColor: $topbarColor !default;\n$topbarActionColorHover: #fff !default;\n$navigationTogglerColor:#fff !default;\n\n$topBarFontSize: 18px !default;\n\n$topbarActionFontWeight: bold !default;\n$topbarNavActiveFontWeight: bold !default;\n$topbarNavActiveColor: #fff !default;\n$topbarNavHoverColor: $topbarNavActiveColor !default;\n\n// wide topbar\n$topbarNavActiveColorWide: $topbarNavActiveColor !default;\n$topbarNavHoverColorWide: $topbarNavHoverColor !default;\n$topbarColorWide: #aaa !default;\n\n\n\n// z-indexes:\n$indexModalContainer: 22 !default;\n$indexDarkener: 21 !default;\n$indexDropdown: 3 !default;\n$indexFixedDropdown: 22 !default;\n$indexTooltip: 31 !default;\n$indexMainNavigation: $indexDarkener + 1 !default;\n$indexSidebar: $indexDarkener + 1 !default;\n$indexModalCurrent: 10 !default;\n\n// Box Shadows:\n$globalBoxShadow: 0px 0px 3px rgba(#000, .7) !default;\n$globalBorderColor: $lightGrayColor !default;\n$globalBorder:1px solid $globalBorderColor !default;\n\n// subnav\n$subnavColor: #616161 !default;\n$subnavActiveColor: #616161 !default;\n$subnavHoverColor: lighten($subnavColor, 20%) !default;\n$subnavTriggerColor:$baseColor !default;\n// subnav\n$subnavBg: $lightGrayColor !default;\n$subnavBgDesktop: $subnavBg !default;\n$subnavActiveFontWeight: bold !default;\n$subnavBorderTop: false !default;\n$subnavBorderBottom: true !default;\n$subnavHeightDesktop: 43px !default;\n$subnavHeight: 43px !default;\n$subnavBorderTopBorder:$globalBorder !default;\n$subnavSlideBorder:$globalBorder !default;\n\n// Modal Settings:\n$modalAlertWidthDesktop: 320px !default;\n$modalWidthSmall: 360px !default;\n$modalAnimateName: bounceIn !default;\n$modalAnimateDuration: .6s !default;\n$modalBackground: #fff !default;\n$modalBoxShadow: $globalBoxShadow !default;\n$minWidthModalDesktop: 640px !default;\n$modalCloseHoverColor: lighten($baseColor, 40%) !default;\n$modalCloseHoverBackground: lighten($grayColor, 35%) !default;\n$modalCloseActiveColor: lighten($baseColor, 10%) !default;\n$modalCloseActiveBackground: lighten($grayColor, 30%) !default;\n\n//forms\n$inputBackground: $lightGrayColor !default;\n$inputColor: #616161 !default;\n$inputBorder: none !default;\n$inputBorderInvalid: none !default;\n$inputBackgroundInvalid: lighten($alertColor, 40%) !default;\n$inputDisabledBg: #fafafa !default;\n$inputDisabledColor: #bababa !default;\n$inputDisabledBorder: #e0e0e0 !default;\n$inputFocusColor: darken($inputBackground, 5%) !default;\n$inputFocusBorderColor: none !default;\n$inputFocusBoxShadow: none !default;\n$labelWidthDesktop: calc(25% + .375rem) !default;\n$labelMinWidth: 0 !default;\n$labelColor: $baseColor !default;\n$labelFontSize: $smallFontSize !default;\n$labelFontWeight:normal !default;\n$labelPaddingDesktop: 5px 1rem 0 0 !default;\n$inputHeight: 35px !default;\n$formMargin: 30px !default;\n$formMarginDesktop: 30px !default;\n$formActionsPadding: 40px !default;\n$formActionsPaddingDesktop: 60px !default;\n$formMinWidthControls: 330px !default;\n$appendMargin: 20px !default;\n// append Margins for different states (last-child etc.)\n$appendMarginTopNegative: -10px !default;\n$appendMarginTopPositive: 10px !default;\n$thirdColumnPaddingOffsetInBetween: $labelWidthDesktop !default;\n$inputMultiFormSpacing: 10px !default;\n$controlMargin: 20px !default;\n$formWidthControlsBetween: calc(50% - .75rem) !default;\n$formWidthControls: calc(75% - .5rem) !default;\n$inputPadding: 8px 10px !default;\n$textareaPadding: 10px !default;\n$legendMargin: $formMargin !default;\n$legendMarginDesktop: $formMarginDesktop !default;\n$uneditableInputPadding: 8px 10px !default;\n$inputBoxShadow: none !default;\n$legendFontSize: $baseFontSize !default;\n$legendFontWeight: bold !default;\n$legendColor: $baseColor !default;\n$placeholderColor: lighten($grayColor, 10%) !default;\n$selectPickerColor: #a6a6a6 !default;\n$selectChooseBackgroundColor: transparent !default;\n$labelMargin: 3px !default;\n$formParagraphMargin: $appendMarginTopPositive !default;\n$checkboxAndOptionHeight: 20px !default;\n$checkRadioColor: $primaryColor !default;\n$labelTextAlign: right !default;\n$copyTextFormsFontSize: $smallFontSize !default;\n$copyTextFormsLineHeight: $smallFontSizeLineHeight !default;\n$copyTextFormsMultipleMarginTop: .5rem !default;\n$inputFontSize: $baseFontSize !default;\n$inputTransitions: background .5s ease !default;\n$checkboxMargin: 0px 0 0 28px;\n$disabledThumbColor: lighten($lighterGrayColor, 10%);\n$inputBorderRadius: $globalRadius !default;\n// buttons\n$buttonColor: #fff !default;\n$btnPrimaryColor: $actionColor !default;\n$btnSecondaryColor: #c3c3c3 !default;\n$btnDangerColor: $dangerColor !default;\n$btnAlternativeColor: $primaryColor !default;\n$btnFontSize: $baseFontSize !default;\n$btnPadding: 11px 45px 10px !default;\n$btnBackgroundSize: 40px 40px !default;\n$btnSmallPadding: 7px 30px 7px !default;\n$btnFontWeight: bold !default;\n$btnRadius: $globalRadius !default;\n// tabs\n$tabBottomLineHeight: 2px !default;\n$tabsSmallPadding: 5px !default;\n$tabsSmallLineHeight: 1px !default;\n\n// loader\n\n$loaderSize: 40px !default;\n$loaderColor: lighten(#ccc, 5%) !default;\n$loaderBorder: 4px !default;\n$smallLoaderSize: 20px !default;\n$smallLoaderBorder: 2px !default;\n$loaderAlternate: false !default;\n$loaderAlternateColor: #ccc !default;\n// fonts\n$includeFontello: true !default;\n$fontelloFontPath: '../fonts/fontello' !default;\n$iconFontName: 'fontello';\n\n// Effects:\n$darkenerFadeOpacity: .35 !default;\n$darkenerColor: #000 !default;\n\n// darkener when using background-color (e.g. in modals)\n$backgroundDarkenerFadeOpacity: .35 !default;\n$backgroundDarkenerColor: #000 !default;\n\n// dropdowns:\n$dropdownBorderColor: lighten($grayColor, 20%) !default;\n$dropdownMaxHeight: 300px !default;\n\n// lightbox\n$lightboxImageBackground: black !default;\n$lightBoxMinHeightDesktop: 300px !default;\n$lightBoxWidthLarge: 60% !default;\n$lightBoxMinHeightLarge: calc(80vh - 40px) !default;\n\n// tooltips\n$tooltipBg: #333 !default;\n$tooltipFontSize: $smallFontSize !default;\n$alertTooltipColor: $tooltipBg !default;\n$tooltipFontWeight: 600 !default;\n\n// breadcrumbs\n$breadcrumbFontSize: $baseFontSize !default;\n$breadcrumbFontSizeLarge: 18px !default;\n$breadcrumbColor: #ccc !default;\n$breadcrumbSeparatorIcon: \" \\00B7 \";\n\n// labeled\n$labeledSpacing: 1rem !default;\n$labeledBorder: 1px solid $globalBorderColor !default;\n$labeledPaddingTopDesktop: 0 !default;\n\n// icons:\n$iconSpacingButton: .3rem !default;\n$iconSpacing: .1rem !default;\n\n// table\n$tableBorder: $globalBorder !default;\n$tableSpacing: 10px 1rem 10px 0 !default;\n$tableSpacingBreak: 6px 1rem 6px 0 !default;\n$tableSpacingLastAndFirst: 5px !default;\n$tableTransition: background .1s ease !default;\n$tableHeaderColor:$primaryColor !default;\n\n// listings:\n$listingMinHeight: 105px !default;\n$listingAvatarRowLarge: 84px !default;\n$listingAvatarRow: 84px !default;\n$listingAvatarRowSmall: 36px !default;\n$listingOuterPadding: 10px !default;\n$listingSpaceRight: 30px !default;\n$listingSmallWidth: 30% !default;\n\n// panel\n$panelBackground: $lightGrayColor !default;\n\n// links:\n$linkFontWeight: 600 !default;\n$linkHoverColor: lighten($primaryColor, 10%) !default;\n\n// code:\n$codeBackgroundColor: lighten($grayColor, 35%) !default;\n$codeBorderColor: lighten($grayColor, 20%) !default;\n\n// badge:\n$badgePadding: 0 5px !default;\n$badgeBackground: $secondaryColor !default;\n\n// selection\n$selectionBackground: lighten($primaryColor, 25%) !default;\n$selectionColor: #fff !default;\n\n// breadcrumbs\n$breadcrumbShortenPortrait: true !default;\n\n\n// Execute component mixins\n$executeDefaultMixins: true !default;\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/_settings.scss\n **/","/*! normalize.css v3.0.2 | MIT License | git.io/normalize */\n\n/**\n * 1. Set default font family to sans-serif.\n * 2. Prevent iOS text size adjust after orientation change, without disabling\n * user zoom.\n */\n\nhtml {\n font-family: sans-serif; /* 1 */\n -ms-text-size-adjust: 100%; /* 2 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/**\n * Remove default margin.\n */\n\nbody {\n margin: 0;\n}\n\n/* HTML5 display definitions\n ========================================================================== */\n\n/**\n * Correct `block` display not defined for any HTML5 element in IE 8/9.\n * Correct `block` display not defined for `details` or `summary` in IE 10/11\n * and Firefox.\n * Correct `block` display not defined for `main` in IE 11.\n */\n\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\nsection,\nsummary {\n display: block;\n}\n\n/**\n * 1. Correct `inline-block` display not defined in IE 8/9.\n * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.\n */\n\naudio,\ncanvas,\nprogress,\nvideo {\n display: inline-block; /* 1 */\n vertical-align: baseline; /* 2 */\n}\n\n/**\n * Prevent modern browsers from displaying `audio` without controls.\n * Remove excess height in iOS 5 devices.\n */\n\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\n/**\n * Address `[hidden]` styling not present in IE 8/9/10.\n * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.\n */\n\n[hidden],\ntemplate {\n display: none;\n}\n\n/* Links\n ========================================================================== */\n\n/**\n * Remove the gray background color from active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * Improve readability when focused and also mouse hovered in all browsers.\n */\n\na:active,\na:hover {\n outline: 0;\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Address styling not present in IE 8/9/10/11, Safari, and Chrome.\n */\n\nabbr[title] {\n border-bottom: 1px dotted;\n}\n\n/**\n * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.\n */\n\nb,\nstrong {\n font-weight: bold;\n}\n\n/**\n * Address styling not present in Safari and Chrome.\n */\n\ndfn {\n font-style: italic;\n}\n\n/**\n * Address variable `h1` font-size and margin within `section` and `article`\n * contexts in Firefox 4+, Safari, and Chrome.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/**\n * Address styling not present in IE 8/9.\n */\n\nmark {\n background: #ff0;\n color: #000;\n}\n\n/**\n * Address inconsistent and variable font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` affecting `line-height` in all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsup {\n top: -0.5em;\n}\n\nsub {\n bottom: -0.25em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove border when inside `a` element in IE 8/9/10.\n */\n\nimg {\n border: 0;\n}\n\n/**\n * Correct overflow not hidden in IE 9/10/11.\n */\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * Address margin not present in IE 8/9 and Safari.\n */\n\nfigure {\n margin: 1em 40px;\n}\n\n/**\n * Address differences between Firefox and other browsers.\n */\n\nhr {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n height: 0;\n}\n\n/**\n * Contain overflow in all browsers.\n */\n\npre {\n overflow: auto;\n}\n\n/**\n * Address odd `em`-unit font size rendering in all browsers.\n */\n\ncode,\nkbd,\npre,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * Known limitation: by default, Chrome and Safari on OS X allow very limited\n * styling of `select`, unless a `border` property is set.\n */\n\n/**\n * 1. Correct color not being inherited.\n * Known issue: affects color of disabled elements.\n * 2. Correct font properties not being inherited.\n * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n color: inherit; /* 1 */\n font: inherit; /* 2 */\n margin: 0; /* 3 */\n}\n\n/**\n * Address `overflow` set to `hidden` in IE 8/9/10/11.\n */\n\nbutton {\n overflow: visible;\n}\n\n/**\n * Address inconsistent `text-transform` inheritance for `button` and `select`.\n * All other form control elements do not inherit `text-transform` values.\n * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.\n * Correct `select` style inheritance in Firefox.\n */\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/**\n * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`\n * and `video` controls.\n * 2. Correct inability to style clickable `input` types in iOS.\n * 3. Improve usability and consistency of cursor style between image-type\n * `input` and others.\n */\n\nbutton,\nhtml input[type=\"button\"], /* 1 */\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n -webkit-appearance: button; /* 2 */\n cursor: pointer; /* 3 */\n}\n\n/**\n * Re-set default cursor for disabled elements.\n */\n\nbutton[disabled],\nhtml input[disabled] {\n cursor: default;\n}\n\n/**\n * Remove inner padding and border in Firefox 4+.\n */\n\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\n\n/**\n * Address Firefox 4+ setting `line-height` on `input` using `!important` in\n * the UA stylesheet.\n */\n\ninput {\n line-height: normal;\n}\n\n/**\n * It's recommended that you don't attempt to style these elements.\n * Firefox's implementation doesn't respect box-sizing, padding, or width.\n *\n * 1. Address box sizing set to `content-box` in IE 8/9/10.\n * 2. Remove excess padding in IE 8/9/10.\n */\n\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Fix the cursor style for Chrome's increment/decrement buttons. For certain\n * `font-size` values of the `input`, it causes the cursor style of the\n * decrement button to change from `default` to `text`.\n */\n\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Address `appearance` set to `searchfield` in Safari and Chrome.\n * 2. Address `box-sizing` set to `border-box` in Safari and Chrome\n * (include `-moz` to future-proof).\n */\n\ninput[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n -moz-box-sizing: content-box;\n -webkit-box-sizing: content-box; /* 2 */\n box-sizing: content-box;\n}\n\n/**\n * Remove inner padding and search cancel button in Safari and Chrome on OS X.\n * Safari (but not Chrome) clips the cancel button when the search input has\n * padding (and `textfield` appearance).\n */\n\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * Define consistent border, margin, and padding.\n */\n\nfieldset {\n border: 1px solid #c0c0c0;\n margin: 0 2px;\n padding: 0.35em 0.625em 0.75em;\n}\n\n/**\n * 1. Correct `color` not being inherited in IE 8/9/10/11.\n * 2. Remove padding so people aren't caught out if they zero out fieldsets.\n */\n\nlegend {\n border: 0; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Remove default vertical scrollbar in IE 8/9/10/11.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * Don't inherit the `font-weight` (applied by a rule above).\n * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.\n */\n\noptgroup {\n font-weight: bold;\n}\n\n/* Tables\n ========================================================================== */\n\n/**\n * Remove most spacing between table cells.\n */\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\ntd,\nth {\n padding: 0;\n}\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/lib/_normalize.scss\n **/","// Global Tooltip\n@mixin tooltip-container() {\n z-index: $indexTooltip;\n pointer-events: none;\n display: inline-block;\n opacity: 0;\n position: absolute;\n color: #fff;\n border-radius: $globalRadius;\n padding: 7px 10px 7px;\n will-change: transform, opacity;\n transition: opacity $globalMediumEaseTime ease, transform $globalMediumEaseTime ease;\n font-size: $tooltipFontSize;\n font-weight: $tooltipFontWeight;\n transform: translate3d(0, -6px, 0);\n background: $tooltipBg;\n word-wrap: break-word;\n\n &.error-tooltip {\n word-break: normal;\n background: $alertTooltipColor;\n }\n &.open {\n opacity: 1;\n }\n max-width: 250px;\n text-align: center;\n\n @include tooltip-arrow-state($tooltipBg);\n &.error-tooltip {\n @include tooltip-arrow-state($alertTooltipColor);\n }\n}\n\n@if $executeDefaultMixins {\n .tooltip-container {\n @include tooltip-container();\n }\n}\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/lib/_tooltip.scss\n **/"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack:///assets/assets/lib/_animations.scss","webpack:///webpack:///assets/assets/marklib.scss","webpack:///webpack:///assets/assets/lib/_highlighting.scss","webpack:///webpack:///assets/~/flexcss/assets/lib/_mixins.scss","webpack:///webpack:///assets/~/flexcss/assets/lib/_animate.scss","webpack:///webpack:///assets/~/flexcss/assets/_settings.scss","webpack:///webpack:///assets/~/flexcss/assets/lib/_normalize.scss","webpack:///webpack:///assets/~/flexcss/assets/lib/_tooltip.scss"],"names":[],"mappings":"AAAA,8BACE,GACE,UACA,uCAA8B,CCC/B,GDIC,UACA,sBAAwB,CCDzB,CACF,sBDKC,GACE,UACA,wCAAsB,gCCDvB,GDKC,UACA,uBAAgB,eCFjB,CACF,kCDMC,GACE,UACA,wCAA8B,CCF/B,GDOC,UACA,sBAAwB,CCJzB,CACF,0BDQC,GACE,UACA,yCAAsB,iCCJvB,GDQC,UACA,uBAAgB,eCLjB,CACF,kBDWC,GACE,wCAAqB,gCCPtB,GDWC,gCAAqB,wBCRtB,CACF,0BDcC,GACE,uCAA6B,CCV9B,GDcC,+BAA6B,CCX9B,CACF,YDgBC,kCAA2B,0BAC3B,+BAAwB,uBAG1B,kCACE,sCAA+B,8BAC/B,8BAAuB,sBE5EzB,WACE,gBACA,cACA,iBACA,mBACA,aAAe,CAEjB,gBAAkB,qBAAuB,CACzC,eAAiB,cAAiB,wBAA0B,C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AAe,CAInB,KACE,gBAAiB,CAGnB,SACE,gBACA,aAAc,CAGhB,OACE,eAAgB,CAGlB,OACE,YAAa,CAGf,aACE,iBAAkB,CAGpB,SACE,eACA,eAAgB,CAGlB,cACE,6BACA,WACA,YAAa,CAGf,MACE,yCAA8C,CAGhD,EACE,eACA,eAAgB,CAGlB,eACE,aACA,gBACA,mBACA,YACA,kBACA,kBACA,eACA,eACA,WACA,0DAAmD,+HAKnD,YACA,qBACA,oBAAsB,CA0BvB,2BA/BG,mBACA,uCAAqB,+BACtB,mBAKC,mBAAoB,CACrB,uBAGC,kBA3FmB,CA+FpB,mCAFG,kBAAkB,CACnB,yBAID,kBAjGoB,CAqGrB,qCAFG,kBAAkB,CACnB,+BAID,kBAtGiB,CA2GlB,2CAFG,kBAAmB,CAKzB,SAEE,mBACA,cAAe,CAGjB,kBALE,8BAA+B,CAQhC,SADC,yBAA4B,CAG9B,kBACE,kBAAkB,CAGpB,2BACE,kBAAkB,CAGpB,yDAEE,4BAAkD,CAGpD,iBACE,kBAAmB,CACpB,YADC,kBAAmB,CAGrB,IACE,QAAS,CAEX,SACE,cACA,sBACA,gBACA,aACA,gCAAiC,CAOnC,OACE,eAAgB,CAGlB,gBACE,8BAAuB,sBACvB,+BAAuB,uBAGzB,yBAEE,cACE,YAAa,CAGf,YACE,YAAa,CACd","file":"css/styles.min.css","sourcesContent":["@-webkit-keyframes fadeInDown {\n 0% {\n opacity: 0;\n -webkit-transform: translate3d(0, -5px, 0);\n\n }\n\n 100% {\n opacity: 1;\n -webkit-transform: none;\n }\n}\n\n@keyframes fadeInDown {\n 0% {\n opacity: 0;\n transform: translate3d(0, -5px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: none;\n }\n}\n\n@-webkit-keyframes fadeInDownSlow {\n 0% {\n opacity: 0;\n -webkit-transform: translate3d(0, -30px, 0);\n\n }\n\n 100% {\n opacity: 1;\n -webkit-transform: none;\n }\n}\n\n@keyframes fadeInDownSlow {\n 0% {\n opacity: 0;\n transform: translate3d(0, -30px, 0);\n }\n\n 100% {\n opacity: 1;\n transform: none;\n }\n}\n\n\n@keyframes bubble {\n\n 0% {\n transform:translate3d(0, -4px, 0);\n }\n\n 100% {\n transform:translate3d(0,0,0);\n }\n}\n\n\n@-webkit-keyframes bubble {\n\n 0% {\n -webkit-transform:translate3d(0, -4px, 0);\n }\n\n 100% {\n -webkit-transform:translate3d(0,0,0);\n }\n}\n\n\n.fadeInDown {\n animation-name: fadeInDown;\n animation-duration: .2s;\n}\n\n.fadeInDownSlow {\n animation-name: fadeInDownSlow;\n animation-duration: 2s;\n}\n\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/assets/lib/_animations.scss\n **/","// Some settings:\n$markingColor: #2ecc71;\n$buttonBaseColor: #95a5a6;\n$buttonAltColor:#9b59b6;\n$buttonWarnColor:#e74c3c;\n$maxWidth:960px;\n$twitterColor:#00aced;\n$includeFontello:false;\n\n@import 'lib/animations';\n@import 'lib/highlighting';\n@import '~flexcss/assets/packages/tooltip';\n\nbody {\n font-family: \"Roboto\", sans-serif;\n padding:0;\n margin:0;\n font-weight:300;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.highlight {\n margin:0;\n pre {\n max-width: $maxWidth;\n margin: 0 auto;\n }\n}\n\ncode {\n font-size:1.3rem;\n}\n\n.wrapper {\n max-width:$maxWidth;\n margin:0 auto;\n}\n\nstrong {\n font-weight:500;\n}\n\nheader {\n padding:10px;\n}\n\n.text-center {\n text-align:center;\n}\n\n.subline {\n font-size:2rem;\n font-weight:100;\n}\n\n.presentation {\n background: rgba(#34495e,.7);\n color:#fff;\n padding:40px;\n}\n\nh1, h2 {\n font-family: \"Shadows Into Light\", sans-serif;\n}\n\np {\n font-size:1rem;\n line-height:1.6;\n}\n\n.button, button {\n font:inherit;\n font-weight:400;\n background: $buttonBaseColor;\n border:none;\n padding:10px 15px;\n border-radius:5px;\n font-size:1rem;\n cursor:pointer;\n color:#fff;\n transition:background .5s ease, transform .5s ease;\n &:hover {\n background: lighten($buttonBaseColor, 10%);\n transform:translate3d(0,4px,0);\n }\n margin:10px;\n display:inline-block;\n text-decoration: none;\n > * {\n pointer-events:none;\n }\n\n &.alt {\n background:$buttonAltColor;\n &:hover {\n background:lighten($buttonAltColor, 10%);\n }\n }\n\n &.warn {\n background:$buttonWarnColor;\n &:hover {\n background:lighten($buttonWarnColor, 10%);\n }\n }\n\n &.twitter {\n background:$twitterColor;\n\n &:hover {\n background: lighten($twitterColor, 10%);\n }\n }\n}\n\n.marking {\n transition:background .5s ease;\n background: $markingColor;\n cursor:pointer;\n}\n\n.deleted {\n transition:background .5s ease;\n background: none !important;\n}\n\n.marking .marking {\n background: darken($markingColor, 10%);\n}\n\n.marking .marking .marking {\n background: darken($markingColor, 20%);\n}\n\n.marking.marklib--hover .marking,\n.marking.marklib--hover {\n background: lighten($markingColor, 25%) !important;\n}\n\n::selection {\n background: lighten($markingColor, 20%);\n}\n\npre {\n margin:0;\n}\npre > code {\n display:block;\n font-family: monospace;\n overflow-y:auto;\n padding:30px;\n -webkit-overflow-scrolling:touch;\n}\n\n.animate .wrapper {\n @extend .fadeInDownSlow;\n}\n\n.tight {\n margin-bottom:0;\n}\n\n.marking.bubble {\n animation-name: bubble;\n animation-duration:.3s;\n}\n\n@media (max-width:480px) {\n\n .presentation {\n padding:15px;\n }\n\n .hide-small {\n display:none;\n }\n}\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/assets/marklib.scss\n **/","/* \n Darkly Pygments Theme\n (c) 2014 Sourcey\n http://sourcey.com\n*/\n\n.highlight {\n white-space: pre;\n overflow: auto;\n word-wrap: normal; /* horizontal scrolling */\n background: #343642;\n color: #C1C2C3;\n}\n.highlight .hll { background-color: #ffc; }\n.highlight .gd { color: #2e3436; background-color: #0e1416; }\n.highlight .gr { color: #eeeeec; background-color: #c00; }\n.highlight .gi { color: #babdb6; background-color: #1f2b2d; }\n.highlight .go { color: #2c3032; background-color: #2c3032; }\n.highlight .kt { color: #e3e7df; }\n.highlight .ni { color: #888a85; }\n.highlight .c,.highlight .cm,.highlight .c1,.highlight .cs { color: #8D9684; }\n.highlight .err,.highlight .g,.highlight .l,.highlight .n,.highlight .x,.highlight .p,.highlight .ge,\n.highlight .gp,.highlight .gs,.highlight .gt,.highlight .ld,.highlight .s,.highlight .nc,.highlight .nd,\n.highlight .ne,.highlight .nl,.highlight .nn,.highlight .nx,.highlight .py,.highlight .ow,.highlight .w,.highlight .sb,\n.highlight .sc,.highlight .sd,.highlight .s2,.highlight .se,.highlight .sh,.highlight .si,.highlight .sx,.highlight .sr,\n.highlight .s1,.highlight .ss,.highlight .bp { color: #C1C2C3; }\n.highlight .k,.highlight .kc,.highlight .kd,.highlight .kn,.highlight .kp,.highlight .kr,\n.highlight .nt { color: #729fcf; }\n.highlight .cp,.highlight .gh,.highlight .gu,.highlight .na,.highlight .nf { color: #E9A94B ; }\n.highlight .m,.highlight .nb,.highlight .no,.highlight .mf,.highlight .mh,.highlight .mi,.highlight .mo,\n.highlight .il { color: #8ae234; }\n.highlight .o { color: #989DAA; }\n.highlight .nv,.highlight .vc,.highlight .vg,.highlight .vi { color: #fff; }\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/assets/lib/_highlighting.scss\n **/","/**\n* Utility mixins\n*/\n\n// interface\n@mixin interface($case: none) {\n user-select: $case;\n}\n\n@mixin font-smoothing() {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n// Creates an arrow at the bottom\n@mixin arrow-bottom($color: black, $left: 50%) {\n\n &:after {\n top: 100%;\n border: solid transparent;\n content: \" \";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n\n &:after {\n border-color: transparent;\n border-top-color: $color;\n border-width: 5px;\n left: $left;\n margin-left: -5px;\n }\n}\n\n@mixin arrow-bottom-color($color) {\n &:after {\n border-top-color: $color;\n }\n}\n\n// helper to fix flickering/blurry in different browsers\n@mixin perspectiveHelper($perspective: 1000px) {\n perspective: $perspective;\n transform-style: preserve-3d;\n backface-visibility: hidden;\n}\n\n@mixin perspective($perspective: 1000px) {\n perspective: $perspective;\n}\n\n// a central loader\n@mixin centralLoader() {\n left: calc(50% - #{$loaderSize - 10px});\n top: calc(50% - #{$loaderSize - 10px});\n background: #fff;\n padding: 10px;\n border-radius: $globalRadius;\n box-shadow: $globalBoxShadow;\n}\n\n// creates an arrow at top\n@mixin arrow-top($color: #fff, $left: 50%) {\n\n &:after, &:before {\n bottom: 100%;\n left: $left;\n border: solid transparent;\n content: \" \";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n\n &:after {\n border-color: transparent;\n border-bottom-color: $color;\n border-width: 5px;\n margin-left: -5px;\n }\n}\n\n@mixin arrow-top-color($color) {\n &:after {\n border-bottom-color: $color;\n }\n}\n\n// creates a link in a specific color\n@mixin link-color($color: $grayColor, $fontWeight:normal, $hoverColor:lighten($color, 10%),\n $activeColor:darken($color, 10%)) {\n color: $color;\n font-weight: $fontWeight;\n cursor: pointer;\n &:hover {\n color: $hoverColor;\n }\n\n &:active {\n color: $activeColor;\n }\n}\n\n// keyframes helper for different vendors\n@mixin keyframes($name) {\n @-webkit-keyframes #{$name} {\n @content;\n }\n @-moz-keyframes #{$name} {\n @content;\n }\n @-ms-keyframes #{$name} {\n @content;\n }\n @keyframes #{$name} {\n @content;\n }\n}\n\n// animations\n@mixin animate($name, $duration: .5s, $iterationCount: 1, $direction: normal) {\n animation-name: $name;\n animation-duration: $duration;\n animation-fill-mode: both;\n animation-iteration-count: $iterationCount;\n animation-direction: $direction;\n}\n\n// Creates an overflow container\n@mixin overflowContainer($color, $height: 100%, $width: 60px) {\n\n position: relative;\n transform: translateZ(0px);\n\n &:after {\n content: ' ';\n background: linear-gradient(to right, rgba($color, 0) 0%, $color 100%);;\n width: $width;\n height: $height;\n position: absolute;\n right: 0;\n top: 0;\n pointer-events: none;\n }\n}\n\n// creates a loading animation\n// Shamelessly stolen from bootstrap\n@mixin loadingContainer($color: #fff) {\n animation: progress-bar-stripes 2s linear infinite;\n cursor: wait;\n background-image: linear-gradient(45deg, rgba($color, .15) 25%, transparent 25%,\n transparent 50%, rgba($color, .15) 50%, rgba($color, .15) 75%,\n transparent 75%, transparent);\n background-size: 40px 40px;\n}\n\n// small helper for ellipsis\n@mixin ellipsis($max-width: 300px) {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n max-width: $max-width;\n}\n\n/**\n* Creates an icon, by default uses fontello\n* Nested spans are no icons anymore\n*/\n@mixin icon($font: $iconFontName) {\n font-family: $font;\n font-weight: normal !important;\n font-style: normal;\n text-decoration: inherit;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n display: inline-block;\n &:before {\n text-decoration: inherit;\n display: inline-block;\n speak: none;\n }\n span {\n font-family: $baseFontFamily;\n }\n}\n\n/**\n* A Mixin that creates a bottom border for a specific element and animates it on hover\n* On active state this border is always active\n* Don't forget to set position:relative to element\n*/\n@mixin borderWobble($color: $primaryColor, $height: $tabBottomLineHeight, $padding: $overallPadding) {\n\n &:hover, &.active {\n &:after {\n left: 0;\n width: calc(100% - (#{$padding*2}));\n opacity: 1;\n }\n }\n\n &:after {\n will-change: width, left, opacity;\n content: ' ';\n position: absolute;\n width: 0;\n background: $color;\n opacity: 0;\n height: $height;\n bottom: 0;\n left: calc(50% - (#{$padding}));\n margin: 0 $padding;\n transition: width .2s ease, left .2s ease, opacity .2s ease;\n }\n}\n\n/**\n* Mixin to clear floats\n*/\n@mixin clearfix() {\n *zoom: 1;\n &:before, &:after {\n content: \" \";\n display: table;\n }\n &:after {\n clear: both;\n }\n}\n\n/**\n* Mixin to support a specific retina display\n*/\n@mixin retinaDisplay($ratio: 1.3) {\n @media only screen and (-webkit-min-device-pixel-ratio: $ratio),\n only screen and (min--moz-device-pixel-ratio: $ratio),\n only screen and (-o-min-device-pixel-ratio: #{$ratio}/1),\n only screen and (min-device-pixel-ratio: $ratio),\n only screen and (min-resolution: #{$ratio}dppx) {\n @content;\n }\n}\n\n/**\n* Mixin to support retina displays on a specific size\n*/\n@mixin retinaDisplayScreenSize($ratio:1.3, $size:$breakpointDesktop) {\n @media only screen and (-webkit-min-device-pixel-ratio: $ratio) and (min-width: #{$breakpointDesktop}),\n only screen and (min--moz-device-pixel-ratio: $ratio) and (min-width: #{$breakpointDesktop}),\n only screen and (-o-min-device-pixel-ratio: #{$ratio}/1) and (min-width: #{$breakpointDesktop}),\n only screen and (min-device-pixel-ratio: $ratio) and (min-width: #{$breakpointDesktop}),\n only screen and (min-resolution: #{$ratio}dppx) and (min-width: #{$breakpointDesktop}) {\n @content;\n }\n}\n\n/**\n* Mixin that generates a simple grid\n*/\n@mixin generate-grid($columns: $columns) {\n $gridSize: length($columns);\n @for $i from 1 to $gridSize {\n $class: nth($columns, $i);\n &.#{$class} {\n width: #{$i/$gridSize *100}%;\n }\n }\n @media #{$mediaSmall} {\n @for $i from 1 to $gridSize {\n $class: nth($columns, $i);\n &.small-#{$class} {\n width: #{$i/$gridSize *100}%;\n }\n }\n }\n}\n\n/**\n * Mixin that creates a colored section that may include links\n */\n@mixin create-color-section($color, $decoration: underline, $fontWeight: normal, $hoverColor: darken($color, 20) ) {\n color: $color !important;\n a {\n color: $color !important;\n text-decoration: $decoration;\n font-weight: $fontWeight;\n &:hover {\n color: $hoverColor !important;\n }\n }\n}\n\n/* Form Mixins */\n\n/**\n* Inputs\n*/\n@mixin inputs() {\n .input, select, textarea,\n input:not([type=\"submit\"]):not([type=\"radio\"]):not([type=\"checkbox\"]) {\n @content;\n }\n}\n\n/**\n* Base Input Style\n*/\n@mixin input-style() {\n background-color: $inputBackground;\n border: $inputBorder;\n box-shadow: $inputBoxShadow;\n border-radius: $inputBorderRadius;\n}\n\n/**\n* Input style when focused\n*/\n@mixin focus-input-style() {\n background-color: $inputFocusColor;\n border-color: $inputFocusBorderColor !important;\n box-shadow: $inputFocusBoxShadow !important;\n outline: none;\n}\n\n/**\n* Mixin to create a button style\n*/\n@mixin button-style($color, $background) {\n background-color: $background;\n border-color: transparent;\n color: $color;\n\n $disabledColor: rgba($background, .4);\n $disabledOutlineColor: rgba($background, .2);\n &.outline {\n background-color: transparent;\n border-color: $background;\n color: $background;\n\n &:hover {\n background-color: $background;\n color: $color;\n }\n\n &.disabled, &[disabled] {\n background-color: transparent;\n color: $disabledOutlineColor;\n border-color: $disabledOutlineColor;\n }\n }\n\n &:hover {\n color: $color;\n background-color: rgba($background, .7);\n &.loading {\n background-color: $background;\n }\n }\n\n &:active, &:focus, &.outline:active, &.outline:focus {\n &:not(.disabled):not([disabled]) {\n transition: none;\n color: $color;\n background-color: darken($background, 10%);\n border-color: transparent;\n }\n }\n\n &.disabled, [disabled] {\n background-color: $disabledColor;\n color:$color;\n cursor: not-allowed;\n }\n}\n\n/**\n* Mixin to create a multine ellipsis\n*/\n@mixin multi-line-ellipsis($fontSize:14px, $lineHeight:1.4, $maxLines:3) {\n height: $fontSize*$lineHeight*$maxLines;\n display:block;\n display: -webkit-box;\n line-height: $lineHeight;\n -webkit-line-clamp: $maxLines;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: $fontSize;\n}\n\n@mixin multi-line-ellipsis-fade($lineHeight:1.5, $maxLines:6, $fontSize:15px, $fadeBackground:white) {\n\n $maxHeight: $fontSize*$lineHeight*$maxLines;\n $spacer:5px;\n\n &:before {\n content:\"\";\n float: left;\n width: $spacer;\n height: $maxHeight;\n }\n\n line-height: $lineHeight;\n overflow: hidden;\n height: $maxHeight;\n\n > *:first-child {\n float: right;\n width: 100%;\n margin:0;\n margin-left: $spacer*-1;\n }\n\n &:after {\n content: \"\\00a0\\00a0\\00a0\";\n box-sizing: content-box;\n float: right;\n position: relative;\n top: ($lineHeight*$fontSize) * -1;\n left: 100%;\n width: 50%;\n margin-left: -50%;\n padding-right: $spacer;\n text-align: right;\n background-size: 100% 100%;\n background: linear-gradient(to right, rgba(255, 255, 255, 0),\n $fadeBackground 100%, $fadeBackground);\n }\n}\n\n/**\n* Tooltips\n*/\n@mixin spaceTop() {\n &.open {\n transform: translate3d(0, 6px, 0);\n }\n}\n\n@mixin spaceBottom() {\n &.open {\n transform: translate3d(0, -3px, 0);\n }\n}\n\n@mixin tooltip-arrow-state($arrowColor) {\n &.is-collision-bottom:not(.is-collision-left) {\n @include spaceBottom();\n @include arrow-bottom($arrowColor);\n }\n\n &:not(.is-collision-bottom):not(.is-collision-left) {\n @include spaceTop();\n @include arrow-top($arrowColor);\n }\n\n // left collisions\n &.is-collision-left.is-collision-bottom {\n @include spaceBottom();\n @include arrow-bottom($arrowColor, 15px);\n }\n\n &.is-collision-left:not(.is-collision-bottom) {\n @include spaceTop();\n @include arrow-top($arrowColor, 15px);\n }\n\n // right collisions\n &.is-collision-right:not(.is-collision-bottom) {\n @include spaceTop();\n @include arrow-top($arrowColor, calc(100% - 15px));\n }\n\n &.is-collision-right.is-collision-bottom {\n @include spaceBottom();\n @include arrow-bottom($arrowColor, calc(100% - 15px));\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/lib/_mixins.scss\n **/","/**\n* Global Animations\n*/\n\n@include keyframes(progress-bar-stripes) {\n from {\n background-position: 40px 0;\n }\n to {\n background-position: 0 0;\n }\n}\n\n@include keyframes(backgroundFadeIn) {\n from {\n background: rgba($backgroundDarkenerColor, 0);\n }\n to {\n background: rgba($backgroundDarkenerColor, $backgroundDarkenerFadeOpacity);\n }\n}\n\n@include keyframes(fadeOut) {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n}\n\n/**\n* Creates a small bounce effect\n*/\n@include keyframes(bounceIn) {\n\n 0%, 40%, 100% {\n animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);\n }\n\n 0% {\n opacity: 0;\n transform: scale3d(.3, .3, .3);\n }\n\n 40% {\n opacity: 1;\n transform: scale3d(1.03, 1.03, 1.03);\n }\n\n 100% {\n opacity: 1;\n transform: scale3d(1, 1, 1);\n }\n}\n\n/**\n* FadeIn Effect\n*/\n@include keyframes(fadeIn) {\n 0%, 100% {\n animation-timing-function: ease;\n }\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n@include keyframes(darkenerFadeIn) {\n 0%, 100% {\n animation-timing-function: ease;\n }\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: $darkenerFadeOpacity;\n }\n}\n\n@include keyframes(darkenerFadeOut) {\n 0%, 100% {\n animation-timing-function: ease;\n }\n 0% {\n opacity: $darkenerFadeOpacity;\n }\n 100% {\n opacity: 0;\n }\n}\n\n/**\n* Endless spinner, used for loaders\n*/\n@include keyframes(spin) {\n 100% {\n transform: rotate(360deg);\n }\n}\n\n/**\n* used by alert modals\n*/\n@include keyframes(fromBottom) {\n 0% {\n opacity: 0;\n transform: translate3d(0, 100%, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3d(0, 0, 0);\n }\n}\n\n@include keyframes(tabWobbleLine) {\n 0% {\n opacity: 0;\n left: calc(50% - (#{$overallPadding}));\n width: 0%;\n\n }\n\n 100% {\n opacity: 1;\n left: 0;\n width: calc(100% - (#{$overallPadding*2}));\n }\n}\n\n@include keyframes(tabWobbleLineSmall) {\n 0% {\n opacity: 0;\n left: calc(50% - (#{$overallPadding}));\n width: 0%;\n }\n\n 100% {\n opacity: 1;\n left: 0;\n width: calc(100% - (#{$tabsSmallPadding*2}));\n }\n}\n\n.loader {\n display: block;\n margin: 0 auto;\n width: $loaderSize;\n height: $loaderSize;\n border-radius: 50%;\n border: $loaderBorder solid transparent;\n position: relative;\n animation: spin 1s infinite cubic-bezier(.37,.73,.62,.28);\n\n &:before {\n content: '';\n width: $loaderSize;\n height: $loaderSize;\n border-radius: 50%;\n display: block;\n position: absolute;\n left: $loaderBorder*-1;\n top: $loaderBorder*-1;\n\n border-right: $loaderBorder solid $loaderColor;\n border-top: $loaderBorder solid $loaderColor;\n border-left: $loaderBorder solid #fff;\n border-bottom: $loaderBorder solid $loaderColor;\n\n @if $loaderAlternate {\n border-right:none;\n border-bottom:none;\n border-top: $loaderBorder solid $loaderColor;\n border-left: $loaderBorder solid $loaderAlternateColor;\n }\n }\n\n &.small {\n width: $smallLoaderSize;\n height: $smallLoaderSize;\n border-width: $smallLoaderBorder;\n &:before {\n width: $smallLoaderSize;\n height: $smallLoaderSize;\n left: $smallLoaderBorder*-1;\n top: $smallLoaderBorder*-1;\n border-right-width: $smallLoaderBorder;\n border-top-width: $smallLoaderBorder;\n border-left-width: $smallLoaderBorder;\n border-bottom-width: $smallLoaderBorder;\n }\n }\n}\n\n.animate-bounceIn {\n @include animate(bounceIn);\n}\n\n.animate-fadeIn {\n @include animate(fadeIn);\n}\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/lib/_animate.scss\n **/","/**\n* Base Settings\n*/\n\n// Minimal footer height:\n$footerHeight: 100px !default;\n\n// maximum site width (before staying centered layout)\n$overallMaxWidth: 1200px !default;\n\n// a base padding, used by various components\n$overallPadding: 10px !default;\n$overallPaddingTopBottom: 25px !default;\n$overallPaddingTopBottomDesktop: 30px !default;\n$overallPaddingLarge: 50px !default;\n// padding when in desktop state\n$paddingRightLeftDesktop: 20px !default;\n\n// paragraphs:\n$paragraphMargin: 0 0 1rem 0;\n// some layout globals:\n$baseFontFamily: 'Open Sans', Arial, sans-serif !default;\n$baseFontSize: 14px !default;\n$baseColor: #262626 !default;\n$baseLineHeight: 1.3 !default;\n\n// grid columns\n$columns: one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve;\n\n// A Base gray color where other gray tones are inhered from\n$grayColor: #999 !default;\n$lighterGrayColor: #ccc !default;\n\n// A base light gray color for surfaces\n$lightGrayColor: #f1f1f1 !default;\n$globalHoverColor: #f8f8f8 !default;\n\n$smallFontSize: 12px !default;\n$smallFontSizeLineHeight: 1.5 !default;\n$extraSmallFontSize: $smallFontSize !default;\n\n$globalShortEaseTime: .2s !default;\n$globalMediumEaseTime: .35s !default;\n$globalLongEaseTime: .8s !default;\n$globalMenuEasing: ease !default;\n\n$h1FontSize: 18px !default;\n$h2FontSize: $h1FontSize - 1px !default;\n$h3FontSize: $h1FontSize - 3px !default;\n\n$h1DesktopFontSize: 20px !default;\n$h1Color: $baseColor !default;\n$headingMargin: 0 0 1rem 0 !default;\n\n$primaryColor: #258db8 !default;\n$secondaryColor: #e6007e !default;\n$actionColor: #83ba5e !default;\n$alertColor: #d84c3d !default;\n$dangerColor: #f08201 !default;\n$successColor: #43A047 !default;\n$globalRadius: 3px !default;\n\n// breakpoints\n\n$breakpointLarge: 1000px !default;\n$breakpointInBetween: 900px !default;\n$breakpointDesktop: 768px !default;\n\n$mediaDesktop: \"all and (min-width: #{$breakpointDesktop})\";\n$mediaLarge: \"all and (min-width: #{$breakpointLarge})\";\n$mediaInBetween: \"all and (min-width: #{$breakpointInBetween})\";\n$mediaSmall: \"all and (max-width: #{$breakpointDesktop - 1px})\";\n$mediaLandscape: \"only screen and (orientation: landscape)\" !default;\n$mediaPortrait: \"only screen and (orientation: portrait)\" !default;\n\n// sidebar\n$sidebarWidthLarge: 273px !default;\n$sidebarWidthDesktop: 220px !default;\n$sidebarBackground: #fafafa !default;\n\n// Navigation and Sidebar when in mobile state (left + right)\n$MainNavigationWidth: 250px !default;\n$MainSidebarWidth: 265px !default;\n$MainNavigationBg: #4a4a4a !default;\n\n// topbar\n$topbarHeight: 43px !default;\n$topbarHeightDesktop: 43px !default;\n$tabHeight: 40px !default;\n$topbarBg: #333333 !default;\n$topbarBgDesktop: #333 !default;\n$topbarColor: #aaa !default;\n$topbarActionColor: $topbarColor !default;\n$topbarActionColorHover: #fff !default;\n$navigationTogglerColor:#fff !default;\n\n$topBarFontSize: 18px !default;\n\n$topbarActionFontWeight: bold !default;\n$topbarNavActiveFontWeight: bold !default;\n$topbarNavActiveColor: #fff !default;\n$topbarNavHoverColor: $topbarNavActiveColor !default;\n\n// wide topbar\n$topbarNavActiveColorWide: $topbarNavActiveColor !default;\n$topbarNavHoverColorWide: $topbarNavHoverColor !default;\n$topbarColorWide: #aaa !default;\n\n\n\n// z-indexes:\n$indexModalContainer: 22 !default;\n$indexDarkener: 21 !default;\n$indexDropdown: 3 !default;\n$indexFixedDropdown: 22 !default;\n$indexTooltip: 31 !default;\n$indexMainNavigation: $indexDarkener + 1 !default;\n$indexSidebar: $indexDarkener + 1 !default;\n$indexModalCurrent: 10 !default;\n\n// Box Shadows:\n$globalBoxShadow: 0px 0px 3px rgba(#000, .7) !default;\n$globalBorderColor: $lightGrayColor !default;\n$globalBorder:1px solid $globalBorderColor !default;\n\n// subnav\n$subnavColor: #616161 !default;\n$subnavActiveColor: #616161 !default;\n$subnavHoverColor: lighten($subnavColor, 20%) !default;\n$subnavTriggerColor:$baseColor !default;\n// subnav\n$subnavBg: $lightGrayColor !default;\n$subnavBgDesktop: $subnavBg !default;\n$subnavActiveFontWeight: bold !default;\n$subnavBorderTop: false !default;\n$subnavBorderBottom: true !default;\n$subnavHeightDesktop: 43px !default;\n$subnavHeight: 43px !default;\n$subnavBorderTopBorder:$globalBorder !default;\n$subnavSlideBorder:$globalBorder !default;\n\n// Modal Settings:\n$modalAlertWidthDesktop: 320px !default;\n$modalWidthSmall: 360px !default;\n$modalAnimateName: bounceIn !default;\n$modalAnimateDuration: .6s !default;\n$modalBackground: #fff !default;\n$modalBoxShadow: $globalBoxShadow !default;\n$minWidthModalDesktop: 640px !default;\n$modalCloseHoverColor: lighten($baseColor, 40%) !default;\n$modalCloseHoverBackground: lighten($grayColor, 35%) !default;\n$modalCloseActiveColor: lighten($baseColor, 10%) !default;\n$modalCloseActiveBackground: lighten($grayColor, 30%) !default;\n\n//forms\n$inputBackground: $lightGrayColor !default;\n$inputColor: #616161 !default;\n$inputBorder: none !default;\n$inputBorderInvalid: none !default;\n$inputBackgroundInvalid: lighten($alertColor, 40%) !default;\n$inputDisabledBg: #fafafa !default;\n$inputDisabledColor: #bababa !default;\n$inputDisabledBorder: #e0e0e0 !default;\n$inputFocusColor: darken($inputBackground, 5%) !default;\n$inputFocusBorderColor: none !default;\n$inputFocusBoxShadow: none !default;\n$labelWidthDesktop: calc(25% + .375rem) !default;\n$labelMinWidth: 0 !default;\n$labelColor: $baseColor !default;\n$labelFontSize: $smallFontSize !default;\n$labelFontWeight:normal !default;\n$labelPaddingDesktop: 5px 1rem 0 0 !default;\n$inputHeight: 35px !default;\n$formMargin: 30px !default;\n$formMarginDesktop: 30px !default;\n$formActionsPadding: 40px !default;\n$formActionsPaddingDesktop: 60px !default;\n$formMinWidthControls: 330px !default;\n$appendMargin: 20px !default;\n// append Margins for different states (last-child etc.)\n$appendMarginTopNegative: -10px !default;\n$appendMarginTopPositive: 10px !default;\n$thirdColumnPaddingOffsetInBetween: $labelWidthDesktop !default;\n$inputMultiFormSpacing: 10px !default;\n$controlMargin: 20px !default;\n$formWidthControlsBetween: calc(50% - .75rem) !default;\n$formWidthControls: calc(75% - .5rem) !default;\n$inputPadding: 8px 10px !default;\n$textareaPadding: 10px !default;\n$legendMargin: $formMargin !default;\n$legendMarginDesktop: $formMarginDesktop !default;\n$uneditableInputPadding: 8px 10px !default;\n$inputBoxShadow: none !default;\n$legendFontSize: $baseFontSize !default;\n$legendFontWeight: bold !default;\n$legendColor: $baseColor !default;\n$placeholderColor: lighten($grayColor, 10%) !default;\n$selectPickerColor: #a6a6a6 !default;\n$selectChooseBackgroundColor: transparent !default;\n$labelMargin: 3px !default;\n$formParagraphMargin: $appendMarginTopPositive !default;\n$checkboxAndOptionHeight: 20px !default;\n$checkRadioColor: $primaryColor !default;\n$labelTextAlign: right !default;\n$copyTextFormsFontSize: $smallFontSize !default;\n$copyTextFormsLineHeight: $smallFontSizeLineHeight !default;\n$copyTextFormsMultipleMarginTop: .5rem !default;\n$inputFontSize: $baseFontSize !default;\n$inputTransitions: background .5s ease !default;\n$checkboxMargin: 0px 0 0 28px;\n$disabledThumbColor: lighten($lighterGrayColor, 10%);\n$inputBorderRadius: $globalRadius !default;\n// buttons\n$buttonColor: #fff !default;\n$btnPrimaryColor: $actionColor !default;\n$btnSecondaryColor: #c3c3c3 !default;\n$btnDangerColor: $dangerColor !default;\n$btnAlternativeColor: $primaryColor !default;\n$btnFontSize: $baseFontSize !default;\n$btnPadding: 11px 45px 10px !default;\n$btnBackgroundSize: 40px 40px !default;\n$btnSmallPadding: 7px 30px 7px !default;\n$btnFontWeight: bold !default;\n$btnRadius: $globalRadius !default;\n// tabs\n$tabBottomLineHeight: 2px !default;\n$tabsSmallPadding: 5px !default;\n$tabsSmallLineHeight: 1px !default;\n\n// loader\n\n$loaderSize: 40px !default;\n$loaderColor: lighten(#ccc, 5%) !default;\n$loaderBorder: 4px !default;\n$smallLoaderSize: 20px !default;\n$smallLoaderBorder: 2px !default;\n$loaderAlternate: false !default;\n$loaderAlternateColor: #ccc !default;\n// fonts\n$includeFontello: true !default;\n$fontelloFontPath: '../fonts/fontello' !default;\n$iconFontName: 'fontello';\n\n// Effects:\n$darkenerFadeOpacity: .35 !default;\n$darkenerColor: #000 !default;\n\n// darkener when using background-color (e.g. in modals)\n$backgroundDarkenerFadeOpacity: .35 !default;\n$backgroundDarkenerColor: #000 !default;\n\n// dropdowns:\n$dropdownBorderColor: lighten($grayColor, 20%) !default;\n$dropdownMaxHeight: 300px !default;\n\n// lightbox\n$lightboxImageBackground: black !default;\n$lightBoxMinHeightDesktop: 300px !default;\n$lightBoxWidthLarge: 60% !default;\n$lightBoxMinHeightLarge: calc(80vh - 40px) !default;\n\n// tooltips\n$tooltipBg: #333 !default;\n$tooltipFontSize: $smallFontSize !default;\n$alertTooltipColor: $tooltipBg !default;\n$tooltipFontWeight: 600 !default;\n\n// breadcrumbs\n$breadcrumbFontSize: $baseFontSize !default;\n$breadcrumbFontSizeLarge: 18px !default;\n$breadcrumbColor: #ccc !default;\n$breadcrumbSeparatorIcon: \" \\00B7 \";\n\n// labeled\n$labeledSpacing: 1rem !default;\n$labeledBorder: 1px solid $globalBorderColor !default;\n$labeledPaddingTopDesktop: 0 !default;\n\n// icons:\n$iconSpacingButton: .3rem !default;\n$iconSpacing: .1rem !default;\n\n// table\n$tableBorder: $globalBorder !default;\n$tableSpacing: 10px 1rem 10px 0 !default;\n$tableSpacingBreak: 6px 1rem 6px 0 !default;\n$tableSpacingLastAndFirst: 5px !default;\n$tableTransition: background .1s ease !default;\n$tableHeaderColor:$primaryColor !default;\n\n// listings:\n$listingMinHeight: 105px !default;\n$listingAvatarRowLarge: 84px !default;\n$listingAvatarRow: 84px !default;\n$listingAvatarRowSmall: 36px !default;\n$listingOuterPadding: 10px !default;\n$listingSpaceRight: 30px !default;\n$listingSmallWidth: 30% !default;\n\n// panel\n$panelBackground: $lightGrayColor !default;\n\n// links:\n$linkFontWeight: 600 !default;\n$linkHoverColor: lighten($primaryColor, 10%) !default;\n\n// code:\n$codeBackgroundColor: lighten($grayColor, 35%) !default;\n$codeBorderColor: lighten($grayColor, 20%) !default;\n\n// badge:\n$badgePadding: 0 5px !default;\n$badgeBackground: $secondaryColor !default;\n\n// selection\n$selectionBackground: lighten($primaryColor, 25%) !default;\n$selectionColor: #fff !default;\n\n// breadcrumbs\n$breadcrumbShortenPortrait: true !default;\n\n\n// Execute component mixins\n$executeDefaultMixins: true !default;\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/_settings.scss\n **/","/*! normalize.css v3.0.2 | MIT License | git.io/normalize */\n\n/**\n * 1. Set default font family to sans-serif.\n * 2. Prevent iOS text size adjust after orientation change, without disabling\n * user zoom.\n */\n\nhtml {\n font-family: sans-serif; /* 1 */\n -ms-text-size-adjust: 100%; /* 2 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/**\n * Remove default margin.\n */\n\nbody {\n margin: 0;\n}\n\n/* HTML5 display definitions\n ========================================================================== */\n\n/**\n * Correct `block` display not defined for any HTML5 element in IE 8/9.\n * Correct `block` display not defined for `details` or `summary` in IE 10/11\n * and Firefox.\n * Correct `block` display not defined for `main` in IE 11.\n */\n\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nmenu,\nnav,\nsection,\nsummary {\n display: block;\n}\n\n/**\n * 1. Correct `inline-block` display not defined in IE 8/9.\n * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.\n */\n\naudio,\ncanvas,\nprogress,\nvideo {\n display: inline-block; /* 1 */\n vertical-align: baseline; /* 2 */\n}\n\n/**\n * Prevent modern browsers from displaying `audio` without controls.\n * Remove excess height in iOS 5 devices.\n */\n\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\n/**\n * Address `[hidden]` styling not present in IE 8/9/10.\n * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.\n */\n\n[hidden],\ntemplate {\n display: none;\n}\n\n/* Links\n ========================================================================== */\n\n/**\n * Remove the gray background color from active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * Improve readability when focused and also mouse hovered in all browsers.\n */\n\na:active,\na:hover {\n outline: 0;\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Address styling not present in IE 8/9/10/11, Safari, and Chrome.\n */\n\nabbr[title] {\n border-bottom: 1px dotted;\n}\n\n/**\n * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.\n */\n\nb,\nstrong {\n font-weight: bold;\n}\n\n/**\n * Address styling not present in Safari and Chrome.\n */\n\ndfn {\n font-style: italic;\n}\n\n/**\n * Address variable `h1` font-size and margin within `section` and `article`\n * contexts in Firefox 4+, Safari, and Chrome.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/**\n * Address styling not present in IE 8/9.\n */\n\nmark {\n background: #ff0;\n color: #000;\n}\n\n/**\n * Address inconsistent and variable font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` affecting `line-height` in all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsup {\n top: -0.5em;\n}\n\nsub {\n bottom: -0.25em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove border when inside `a` element in IE 8/9/10.\n */\n\nimg {\n border: 0;\n}\n\n/**\n * Correct overflow not hidden in IE 9/10/11.\n */\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * Address margin not present in IE 8/9 and Safari.\n */\n\nfigure {\n margin: 1em 40px;\n}\n\n/**\n * Address differences between Firefox and other browsers.\n */\n\nhr {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n height: 0;\n}\n\n/**\n * Contain overflow in all browsers.\n */\n\npre {\n overflow: auto;\n}\n\n/**\n * Address odd `em`-unit font size rendering in all browsers.\n */\n\ncode,\nkbd,\npre,\nsamp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * Known limitation: by default, Chrome and Safari on OS X allow very limited\n * styling of `select`, unless a `border` property is set.\n */\n\n/**\n * 1. Correct color not being inherited.\n * Known issue: affects color of disabled elements.\n * 2. Correct font properties not being inherited.\n * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n color: inherit; /* 1 */\n font: inherit; /* 2 */\n margin: 0; /* 3 */\n}\n\n/**\n * Address `overflow` set to `hidden` in IE 8/9/10/11.\n */\n\nbutton {\n overflow: visible;\n}\n\n/**\n * Address inconsistent `text-transform` inheritance for `button` and `select`.\n * All other form control elements do not inherit `text-transform` values.\n * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.\n * Correct `select` style inheritance in Firefox.\n */\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/**\n * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`\n * and `video` controls.\n * 2. Correct inability to style clickable `input` types in iOS.\n * 3. Improve usability and consistency of cursor style between image-type\n * `input` and others.\n */\n\nbutton,\nhtml input[type=\"button\"], /* 1 */\ninput[type=\"reset\"],\ninput[type=\"submit\"] {\n -webkit-appearance: button; /* 2 */\n cursor: pointer; /* 3 */\n}\n\n/**\n * Re-set default cursor for disabled elements.\n */\n\nbutton[disabled],\nhtml input[disabled] {\n cursor: default;\n}\n\n/**\n * Remove inner padding and border in Firefox 4+.\n */\n\nbutton::-moz-focus-inner,\ninput::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\n\n/**\n * Address Firefox 4+ setting `line-height` on `input` using `!important` in\n * the UA stylesheet.\n */\n\ninput {\n line-height: normal;\n}\n\n/**\n * It's recommended that you don't attempt to style these elements.\n * Firefox's implementation doesn't respect box-sizing, padding, or width.\n *\n * 1. Address box sizing set to `content-box` in IE 8/9/10.\n * 2. Remove excess padding in IE 8/9/10.\n */\n\ninput[type=\"checkbox\"],\ninput[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Fix the cursor style for Chrome's increment/decrement buttons. For certain\n * `font-size` values of the `input`, it causes the cursor style of the\n * decrement button to change from `default` to `text`.\n */\n\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Address `appearance` set to `searchfield` in Safari and Chrome.\n * 2. Address `box-sizing` set to `border-box` in Safari and Chrome\n * (include `-moz` to future-proof).\n */\n\ninput[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n -moz-box-sizing: content-box;\n -webkit-box-sizing: content-box; /* 2 */\n box-sizing: content-box;\n}\n\n/**\n * Remove inner padding and search cancel button in Safari and Chrome on OS X.\n * Safari (but not Chrome) clips the cancel button when the search input has\n * padding (and `textfield` appearance).\n */\n\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * Define consistent border, margin, and padding.\n */\n\nfieldset {\n border: 1px solid #c0c0c0;\n margin: 0 2px;\n padding: 0.35em 0.625em 0.75em;\n}\n\n/**\n * 1. Correct `color` not being inherited in IE 8/9/10/11.\n * 2. Remove padding so people aren't caught out if they zero out fieldsets.\n */\n\nlegend {\n border: 0; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Remove default vertical scrollbar in IE 8/9/10/11.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * Don't inherit the `font-weight` (applied by a rule above).\n * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.\n */\n\noptgroup {\n font-weight: bold;\n}\n\n/* Tables\n ========================================================================== */\n\n/**\n * Remove most spacing between table cells.\n */\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\ntd,\nth {\n padding: 0;\n}\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/lib/_normalize.scss\n **/","// Global Tooltip\n@mixin tooltip-container() {\n z-index: $indexTooltip;\n pointer-events: none;\n display: inline-block;\n opacity: 0;\n position: absolute;\n color: #fff;\n border-radius: $globalRadius;\n padding: 7px 10px 7px;\n will-change: transform, opacity;\n transition: opacity $globalMediumEaseTime ease, transform $globalMediumEaseTime ease;\n font-size: $tooltipFontSize;\n font-weight: $tooltipFontWeight;\n transform: translate3d(0, -6px, 0);\n background: $tooltipBg;\n word-wrap: break-word;\n\n &.error-tooltip {\n word-break: normal;\n background: $alertTooltipColor;\n }\n &.open {\n opacity: 1;\n }\n max-width: 250px;\n text-align: center;\n\n @include tooltip-arrow-state($tooltipBg);\n &.error-tooltip {\n @include tooltip-arrow-state($alertTooltipColor);\n }\n}\n\n@if $executeDefaultMixins {\n .tooltip-container {\n @include tooltip-container();\n }\n}\n\n\n/** WEBPACK FOOTER **\n ** webpack:///assets/~/flexcss/assets/lib/_tooltip.scss\n **/"],"sourceRoot":""} \ No newline at end of file diff --git a/src/main/modules/Site.js b/src/main/modules/Site.js index 81b1cb2..6b8773a 100644 --- a/src/main/modules/Site.js +++ b/src/main/modules/Site.js @@ -1,6 +1,6 @@ /* global localStorage, document */ -import Marklib from 'modules/Marklib'; +import { Rendering } from 'modules/Marklib'; import { Tooltip } from 'flexcss'; const KEY_ENTER = 13; @@ -24,7 +24,7 @@ document.addEventListener("DOMContentLoaded", () => { const render = (autoMarkText, cp, length) => { let c = cp; - const r = new Marklib.Rendering(document, { + const r = new Rendering(document, { className: classNames }); const range = document.createRange(); @@ -80,7 +80,7 @@ document.addEventListener("DOMContentLoaded", () => { savedRanges.forEach((range) => { - const marker = new Marklib.Rendering(document); + const marker = new Rendering(document); try { marker.renderWithResult(range); allRanges.push(marker); @@ -109,7 +109,7 @@ document.addEventListener("DOMContentLoaded", () => { const actionMark = () => { try { const selection = document.getSelection(); - const renderer = new Marklib.Rendering(document); + const renderer = new Rendering(document); const result = renderer.renderWithRange(selection.getRangeAt(0)); renderer.on('click', onClick); @@ -141,4 +141,4 @@ document.addEventListener("DOMContentLoaded", () => { }); }); -export default Marklib; +export default Rendering;