From 00f9229eb2c19061f336a3dc9e4db1bd92220602 Mon Sep 17 00:00:00 2001 From: Ro Date: Mon, 26 Apr 2021 13:35:59 -0700 Subject: [PATCH 01/23] got rid of src files for styles and front end scripting, added base css and script assets --- .gitignore | 6 + public/assets/css/base.css | 539 ++++ public/assets/css/dash.css | 3485 ++++++++++++++++++++++++ public/assets/scripts/dash.min.js | 11 + public/assets/scripts/start.min.js | 376 +++ src/com/Base.js | 135 - src/com/Start.js | 9 - src/com/actions/Mailer.js | 30 - src/com/actions/NavActions.js | 37 - src/com/actions/PageActions.js | 77 - src/com/actions/SettingsActions.js | 67 - src/com/controllers/DashManager.js | 41 - src/com/controllers/NavIndex.js | 68 - src/com/controllers/PageEditor.js | 257 -- src/com/controllers/PostIndex.js | 30 - src/com/controllers/SettingsIndex.js | 223 -- src/com/events/AuthEvent.js | 21 - src/com/events/DataEvent.js | 49 - src/com/events/EditorEvent.js | 14 - src/com/events/EventEmitter.js | 52 - src/com/ui/Notifications.js | 87 - src/com/ui/TextEditor.js | 158 -- src/com/utils/DataUtils.js | 92 - src/com/utils/StringUtils.js | 68 - src/libraries/FipamoAPI.js | 158 -- src/libraries/FipamoAdminAPI.js | 310 --- src/package-lock.json | 28 - src/package.json | 16 - src/styles/dash.sass | 43 - src/styles/main/_calendar.sass | 242 -- src/styles/main/_colors.sass | 17 - src/styles/main/_editor-highlight.sass | 46 - src/styles/main/_editor.sass | 95 - src/styles/main/_error.sass | 22 - src/styles/main/_forms.sass | 59 - src/styles/main/_index.sass | 251 -- src/styles/main/_mixins.sass | 16 - src/styles/main/_navigation.sass | 62 - src/styles/main/_normalize.sass | 197 -- src/styles/main/_posts.sass | 384 --- src/styles/main/_settings.sass | 176 -- src/styles/main/_structure.sass | 177 -- src/styles/main/_typography.sass | 18 - 43 files changed, 4417 insertions(+), 3832 deletions(-) create mode 100644 public/assets/css/base.css create mode 100644 public/assets/css/dash.css create mode 100644 public/assets/scripts/dash.min.js create mode 100644 public/assets/scripts/start.min.js delete mode 100644 src/com/Base.js delete mode 100644 src/com/Start.js delete mode 100644 src/com/actions/Mailer.js delete mode 100644 src/com/actions/NavActions.js delete mode 100644 src/com/actions/PageActions.js delete mode 100644 src/com/actions/SettingsActions.js delete mode 100644 src/com/controllers/DashManager.js delete mode 100644 src/com/controllers/NavIndex.js delete mode 100644 src/com/controllers/PageEditor.js delete mode 100644 src/com/controllers/PostIndex.js delete mode 100644 src/com/controllers/SettingsIndex.js delete mode 100644 src/com/events/AuthEvent.js delete mode 100644 src/com/events/DataEvent.js delete mode 100644 src/com/events/EditorEvent.js delete mode 100644 src/com/events/EventEmitter.js delete mode 100644 src/com/ui/Notifications.js delete mode 100644 src/com/ui/TextEditor.js delete mode 100644 src/com/utils/DataUtils.js delete mode 100644 src/com/utils/StringUtils.js delete mode 100644 src/libraries/FipamoAPI.js delete mode 100644 src/libraries/FipamoAdminAPI.js delete mode 100644 src/package-lock.json delete mode 100644 src/package.json delete mode 100644 src/styles/dash.sass delete mode 100644 src/styles/main/_calendar.sass delete mode 100644 src/styles/main/_colors.sass delete mode 100644 src/styles/main/_editor-highlight.sass delete mode 100644 src/styles/main/_editor.sass delete mode 100644 src/styles/main/_error.sass delete mode 100644 src/styles/main/_forms.sass delete mode 100644 src/styles/main/_index.sass delete mode 100644 src/styles/main/_mixins.sass delete mode 100644 src/styles/main/_navigation.sass delete mode 100644 src/styles/main/_normalize.sass delete mode 100644 src/styles/main/_posts.sass delete mode 100644 src/styles/main/_settings.sass delete mode 100644 src/styles/main/_structure.sass delete mode 100644 src/styles/main/_typography.sass diff --git a/.gitignore b/.gitignore index a72b4e4..a46740e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,12 @@ public/* !public/index.php !public/assets public/assets/* +!public/assets/css +public/assets/css/base.css.map +public/assets/css/dash.css.map +!public/assets/scripts +public/assets/scripts/dash.min.js.map +public/assets/scripts/start.min.js.map !public/assets/images public/assets/images/* !public/assets/images/global/ diff --git a/public/assets/css/base.css b/public/assets/css/base.css new file mode 100644 index 0000000..9a07b07 --- /dev/null +++ b/public/assets/css/base.css @@ -0,0 +1,539 @@ +/** +------------------------------- +-- Typography +------------------------------- +**/ +/** +------------------------------- +-- Colors +------------------------------- +**/ +/** +------------------------------- +-- Mixins +------------------------------- +**/ +/** +------------------------------- +-- Normalize +------------------------------- +**/ +html { + line-height: 1.15; + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; +} +body { + margin: 0; +} +article, +aside, +footer, +header, +nav, +section { + display: block; +} +h1 { + font-size: 2em; + margin: 0.67em 0; + line-height: 1em; +} +figcaption, +figure, +main { + display: block; +} +figure { + margin: 1em 40px; +} +hr { + box-sizing: content-box; + height: 0; + overflow: visible; +} +pre { + font-family: monospace, monospace; + font-size: 1em; +} +a { + background-color: transparent; + -webkit-text-decoration-skip: objects; +} +a:active, +a:hover { + outline-width: 0; +} +abbr[title] { + border-bottom: none; + text-decoration: underline; + text-decoration: underline dotted; +} +b, +strong { + font-weight: inherit; + font-weight: bolder; +} +code, +kbd, +samp { + font-family: monospace, monospace; + font-size: 1em; +} +dfn { + font-style: italic; +} +mark { + background-color: #ff0; + color: #000; +} +small { + font-size: 80%; +} +sub, +sup { + font-size: 60%; + line-height: 0; + position: relative; + vertical-align: baseline; +} +sub { + bottom: -0.25em; +} +sup { + top: -0.55em; + background: #bdcbdb; + color: #151d26; + border-radius: 2px; + padding: 0 2px 0 2px; + margin: 0 2px 0 0; +} +audio, +video { + display: inline-block; +} +audio:not([controls]) { + display: none; + height: 0; +} +img { + border-style: none; +} +svg:not(:root) { + overflow: hidden; +} +button, +input, +optgroup, +select, +textarea { + font-family: sans-serif; + font-size: 100%; + line-height: 1.15; + margin: 0; +} +button, +input { + overflow: visible; +} +button, +select { + text-transform: none; +} +button, +html [type="button"], +[type="reset"], +[type="submit"] { + -webkit-appearance: button; +} +[type="button"]::-moz-focus-inner, +[type="reset"]::-moz-focus-inner, +[type="submit"]::-moz-focus-inner, +button::-moz-focus-inner { + border-style: none; + padding: 0; +} +[type="button"]:-moz-focusring, +[type="reset"]:-moz-focusring, +[type="submit"]:-moz-focusring, +button:-moz-focusring { + outline: 1px dotted ButtonText; +} +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} +legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; +} +progress { + display: inline-block; + vertical-align: baseline; +} +textarea { + overflow: auto; +} +[type="checkbox"], +[type="radio"] { + box-sizing: border-box; + padding: 0; +} +[type="number"]::-webkit-inner-spin-button, +[type="number"]::-webkit-outer-spin-button { + height: auto; +} +[type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; +} +[type="search"]::-webkit-search-cancel-button, +[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; +} +::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; +} +details, +menu { + display: block; +} +summary { + display: list-item; +} +canvas { + display: inline-block; +} +template { + display: none; +} +[hidden] { + display: none; +} +/** +------------------------------- +-- Main Structure +------------------------------- +**/ +html { + margin: 0; + padding: 0; + width: 100%; + height: 100%; + overflow: hidden; + font: 400 1.2em/1.4em Helvetica, Arial, sans-serif; +} +body { + background: #ebe5d4; + margin: 0; + padding: 0; + perspective: 1px; + transform-style: preserve-3d; + height: 100%; + width: 100%; + overflow-y: scroll; + overflow-x: hidden; +} +a { + color: #151d26; + text-decoration: none; + border-bottom: 1px solid #7ed07e; + -moz-transition: all 0.2s linear; + -webkit-transition: all 0.2s linear; + -o-transition: all 0.2s linear; + transition: all 0.2s linear; +} +a:hover { + border-bottom: 1px solid #fc6399; +} +svg.icons { + width: 25px; + fill: #ebe5d4; +} +header { + background: #151d26; + height: 90%; + width: 100%; + border-top: #ebe5d4 3px solid; +} +header nav { + width: 97%; + margin: 10px auto; + color: #151d26; +} +header nav .left, +header nav .right { + width: 50%; + display: inline-block; + vertical-align: top; +} +header nav .left a.logo-link { + border-bottom: none; + margin: 0 0 20px 0; + display: block; +} +header nav .left a.logo-link #logo { + width: 50px; + border-bottom: none; +} +header nav .right { + text-align: right; +} +header nav .right a.menu-link { + background: #fc6399; + margin-bottom: 4px; + padding: 3px; + border-radius: 2px; + display: inline-block; + font-size: 0.8em; + border-bottom: none; +} +header nav .right a.menu-link:hover { + background: #feb1cc; +} +.container { + z-index: 2; + background: #ebe5d4; + line-height: 30px; + font-weight: lighter; + width: 100%; + color: #32302f; +} +.container article { + position: relative; + width: 80%; + height: 80%; + max-width: 840px; + background: #ebe5d4; + vertical-align: top; + color: #32302f; + margin: 0 auto; +} +.container article .index, +.container article .page { + padding: 0 0 15px 0; +} +.container article .index img, +.container article .page img { + display: block; + width: 100%; +} +.container article .index h1, +.container article .page h1 { + color: #151d26; +} +.container article .index p, +.container article .page p { + font: 300 1.25em/1.6em Helvetica, Arial, sans-serif; +} +.container article .index .meta, +.container article .page .meta { + font: 500 0.8em/1.3em Helvetica, Arial, sans-serif; + padding: 5px 0 0 0; + border-top: 1px solid #151d26; + background: #ede8d8; +} +.container article .index .meta a, +.container article .page .meta a { + font-size: 0.8em; + font-weight: 400; +} +.container article .index .archive-item, +.container article .page .archive-item { + padding: 15px 0 20px 0; +} +.container article .index .archive-item span.year, +.container article .page .archive-item span.year { + font-size: 1.5em; + font-weight: 500; + padding: 5px; + display: block; + color: #151d26; +} +.container article .index .archive-item .archive-month, +.container article .page .archive-item .archive-month { + display: inline-block; + vertical-align: top; + width: 30%; + padding: 5px; +} +.container article .index .archive-item .archive-month span.month, +.container article .page .archive-item .archive-month span.month { + color: #fc6399; + font-size: 1.5em; + font-weight: 300; + padding: 5px; + display: block; +} +.container section { + padding: 0 0 20px 0; + background: #151d26; +} +.container section a { + color: #ebe5d4; +} +.container section .index-lists, +.container section .page-title { + max-width: 840px; + width: 80%; + margin: 0 auto; + padding: 20px 0 0 0; +} +.container section .index-lists span, +.container section .page-title span { + font: 600 2em/1.5 Helvetica, Arial, sans-serif; + color: #ebe5d4; +} +.container section .index-lists .recent, +.container section .page-title .recent, +.container section .index-lists .featured, +.container section .page-title .featured { + display: inline-block; + width: 50%; + vertical-align: top; +} +.container section .index-lists label, +.container section .page-title label { + background: #32302f; + color: #ebe5d4; + font-size: 1.5em; + line-height: 1.3; +} +footer { + background: #e4dcc5; + padding: 10px; + color: #151d26; + font-size: 0.8em; + font-weight: 600; + height: 100px; +} +footer .inner { + margin: 20px auto; + width: 80%; + max-width: 840px; +} +footer .inner a { + color: #fc6399; +} +@media only screen and (max-width: 640px) { + header nav { + width: 98%; + } + header span { + font-size: 2.5em; + } + .container article .index .archive-item .archive-month, + .container article .page .archive-item .archive-month { + width: 45%; + } +} +@media only screen and (max-width: 480px) { + header nav { + width: 96%; + } + .container article .index, + .container article .page { + margin: 0; + } + .container article .index p, + .container article .page p { + font: 300 1em/1.6em Helvetica, Arial, sans-serif; + } + .container section .index-lists .recent, + .container section .index-lists .featured { + width: 100% !important; + } +} +@media only screen and (max-width: 375px) { + header nav { + width: 95%; + } + .container article .index, + .container article .page { + margin: 0; + } + .container article .index p, + .container article .page p { + font: 300 0.9em/1.7em Helvetica, Arial, sans-serif; + } + .container article .index .archive-item .archive-month, + .container article .page .archive-item .archive-month { + width: 95%; + } +} +/** +------------------------------- +-- Forms +------------------------------- +**/ +form { + display: inline-block; +} +input[type=email], +input[type=password], +input[type=text] { + border: 0; + border-radius: 5px; + padding: 5px; + margin: 10px 5px 0 0; + font: 15px 'RobotoMono'; + display: inline-block; +} +textarea { + border: 0; + border-radius: 3px; + color: $type02; + font: 15px 'RobotoMono'; +} +button, +input[type=submit] { + background: #fc6399; + color: #ebe5d4; + font: 14px Helvetica, Arial, sans-serif; + border-radius: 5px; + position: relative; + cursor: pointer; + border: 0; + padding: 5px 5px 0 5px; + -moz-transition: all 0.3s linear; + -webkit-transition: all 0.3s linear; + -o-transition: all 0.3s linear; + transition: all 0.3s linear; +} +button:hover, +input[type=submit]:hover { + background: #fc7ca9; +} +select { + font: 14px 'RobotoMono'; + border: 1px solid #fc6399; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + color: #151d26; +} +::-webkit-input-placeholder { + font: 14px 'RobotoMono'; + color: #837e7c; +} +:-moz-placeholder { +/* Firefox 18- */ + font: 14px 'RobotoMono'; + color: #837e7c; +} +::-moz-placeholder { +/* Firefox 19+ */ + font: 14px 'RobotoMono'; + color: #837e7c; +} +:-ms-input-placeholder { + font: 14px 'RobotoMono'; + color: #837e7c; +} +/*# sourceMappingURL=base.css.map */ \ No newline at end of file diff --git a/public/assets/css/dash.css b/public/assets/css/dash.css new file mode 100644 index 0000000..14f31ec --- /dev/null +++ b/public/assets/css/dash.css @@ -0,0 +1,3485 @@ +/* Bulma Utilities */ +.column { + display: block; + flex-basis: 0; + flex-grow: 1; + flex-shrink: 1; + padding: 0.75rem; +} +.columns.is-mobile > .column.is-narrow { + flex: none; + width: unset; +} +.columns.is-mobile > .column.is-full { + flex: none; + width: 100%; +} +.columns.is-mobile > .column.is-three-quarters { + flex: none; + width: 75%; +} +.columns.is-mobile > .column.is-two-thirds { + flex: none; + width: 66.6666%; +} +.columns.is-mobile > .column.is-half { + flex: none; + width: 50%; +} +.columns.is-mobile > .column.is-one-third { + flex: none; + width: 33.3333%; +} +.columns.is-mobile > .column.is-one-quarter { + flex: none; + width: 25%; +} +.columns.is-mobile > .column.is-one-fifth { + flex: none; + width: 20%; +} +.columns.is-mobile > .column.is-two-fifths { + flex: none; + width: 40%; +} +.columns.is-mobile > .column.is-three-fifths { + flex: none; + width: 60%; +} +.columns.is-mobile > .column.is-four-fifths { + flex: none; + width: 80%; +} +.columns.is-mobile > .column.is-offset-three-quarters { + margin-left: 75%; +} +.columns.is-mobile > .column.is-offset-two-thirds { + margin-left: 66.6666%; +} +.columns.is-mobile > .column.is-offset-half { + margin-left: 50%; +} +.columns.is-mobile > .column.is-offset-one-third { + margin-left: 33.3333%; +} +.columns.is-mobile > .column.is-offset-one-quarter { + margin-left: 25%; +} +.columns.is-mobile > .column.is-offset-one-fifth { + margin-left: 20%; +} +.columns.is-mobile > .column.is-offset-two-fifths { + margin-left: 40%; +} +.columns.is-mobile > .column.is-offset-three-fifths { + margin-left: 60%; +} +.columns.is-mobile > .column.is-offset-four-fifths { + margin-left: 80%; +} +.columns.is-mobile > .column.is-0 { + flex: none; + width: 0%; +} +.columns.is-mobile > .column.is-offset-0 { + margin-left: 0%; +} +.columns.is-mobile > .column.is-1 { + flex: none; + width: 8.3333333333%; +} +.columns.is-mobile > .column.is-offset-1 { + margin-left: 8.3333333333%; +} +.columns.is-mobile > .column.is-2 { + flex: none; + width: 16.6666666667%; +} +.columns.is-mobile > .column.is-offset-2 { + margin-left: 16.6666666667%; +} +.columns.is-mobile > .column.is-3 { + flex: none; + width: 25%; +} +.columns.is-mobile > .column.is-offset-3 { + margin-left: 25%; +} +.columns.is-mobile > .column.is-4 { + flex: none; + width: 33.3333333333%; +} +.columns.is-mobile > .column.is-offset-4 { + margin-left: 33.3333333333%; +} +.columns.is-mobile > .column.is-5 { + flex: none; + width: 41.6666666667%; +} +.columns.is-mobile > .column.is-offset-5 { + margin-left: 41.6666666667%; +} +.columns.is-mobile > .column.is-6 { + flex: none; + width: 50%; +} +.columns.is-mobile > .column.is-offset-6 { + margin-left: 50%; +} +.columns.is-mobile > .column.is-7 { + flex: none; + width: 58.3333333333%; +} +.columns.is-mobile > .column.is-offset-7 { + margin-left: 58.3333333333%; +} +.columns.is-mobile > .column.is-8 { + flex: none; + width: 66.6666666667%; +} +.columns.is-mobile > .column.is-offset-8 { + margin-left: 66.6666666667%; +} +.columns.is-mobile > .column.is-9 { + flex: none; + width: 75%; +} +.columns.is-mobile > .column.is-offset-9 { + margin-left: 75%; +} +.columns.is-mobile > .column.is-10 { + flex: none; + width: 83.3333333333%; +} +.columns.is-mobile > .column.is-offset-10 { + margin-left: 83.3333333333%; +} +.columns.is-mobile > .column.is-11 { + flex: none; + width: 91.6666666667%; +} +.columns.is-mobile > .column.is-offset-11 { + margin-left: 91.6666666667%; +} +.columns.is-mobile > .column.is-12 { + flex: none; + width: 100%; +} +.columns.is-mobile > .column.is-offset-12 { + margin-left: 100%; +} +@media screen and (max-width: 768px) { + .column.is-narrow-mobile { + flex: none; + width: unset; + } + .column.is-full-mobile { + flex: none; + width: 100%; + } + .column.is-three-quarters-mobile { + flex: none; + width: 75%; + } + .column.is-two-thirds-mobile { + flex: none; + width: 66.6666%; + } + .column.is-half-mobile { + flex: none; + width: 50%; + } + .column.is-one-third-mobile { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter-mobile { + flex: none; + width: 25%; + } + .column.is-one-fifth-mobile { + flex: none; + width: 20%; + } + .column.is-two-fifths-mobile { + flex: none; + width: 40%; + } + .column.is-three-fifths-mobile { + flex: none; + width: 60%; + } + .column.is-four-fifths-mobile { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters-mobile { + margin-left: 75%; + } + .column.is-offset-two-thirds-mobile { + margin-left: 66.6666%; + } + .column.is-offset-half-mobile { + margin-left: 50%; + } + .column.is-offset-one-third-mobile { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter-mobile { + margin-left: 25%; + } + .column.is-offset-one-fifth-mobile { + margin-left: 20%; + } + .column.is-offset-two-fifths-mobile { + margin-left: 40%; + } + .column.is-offset-three-fifths-mobile { + margin-left: 60%; + } + .column.is-offset-four-fifths-mobile { + margin-left: 80%; + } + .column.is-0-mobile { + flex: none; + width: 0%; + } + .column.is-offset-0-mobile { + margin-left: 0%; + } + .column.is-1-mobile { + flex: none; + width: 8.3333333333%; + } + .column.is-offset-1-mobile { + margin-left: 8.3333333333%; + } + .column.is-2-mobile { + flex: none; + width: 16.6666666667%; + } + .column.is-offset-2-mobile { + margin-left: 16.6666666667%; + } + .column.is-3-mobile { + flex: none; + width: 25%; + } + .column.is-offset-3-mobile { + margin-left: 25%; + } + .column.is-4-mobile { + flex: none; + width: 33.3333333333%; + } + .column.is-offset-4-mobile { + margin-left: 33.3333333333%; + } + .column.is-5-mobile { + flex: none; + width: 41.6666666667%; + } + .column.is-offset-5-mobile { + margin-left: 41.6666666667%; + } + .column.is-6-mobile { + flex: none; + width: 50%; + } + .column.is-offset-6-mobile { + margin-left: 50%; + } + .column.is-7-mobile { + flex: none; + width: 58.3333333333%; + } + .column.is-offset-7-mobile { + margin-left: 58.3333333333%; + } + .column.is-8-mobile { + flex: none; + width: 66.6666666667%; + } + .column.is-offset-8-mobile { + margin-left: 66.6666666667%; + } + .column.is-9-mobile { + flex: none; + width: 75%; + } + .column.is-offset-9-mobile { + margin-left: 75%; + } + .column.is-10-mobile { + flex: none; + width: 83.3333333333%; + } + .column.is-offset-10-mobile { + margin-left: 83.3333333333%; + } + .column.is-11-mobile { + flex: none; + width: 91.6666666667%; + } + .column.is-offset-11-mobile { + margin-left: 91.6666666667%; + } + .column.is-12-mobile { + flex: none; + width: 100%; + } + .column.is-offset-12-mobile { + margin-left: 100%; + } +} +@media screen and (min-width: 769px), print { + .column.is-narrow, .column.is-narrow-tablet { + flex: none; + width: unset; + } + .column.is-full, .column.is-full-tablet { + flex: none; + width: 100%; + } + .column.is-three-quarters, .column.is-three-quarters-tablet { + flex: none; + width: 75%; + } + .column.is-two-thirds, .column.is-two-thirds-tablet { + flex: none; + width: 66.6666%; + } + .column.is-half, .column.is-half-tablet { + flex: none; + width: 50%; + } + .column.is-one-third, .column.is-one-third-tablet { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter, .column.is-one-quarter-tablet { + flex: none; + width: 25%; + } + .column.is-one-fifth, .column.is-one-fifth-tablet { + flex: none; + width: 20%; + } + .column.is-two-fifths, .column.is-two-fifths-tablet { + flex: none; + width: 40%; + } + .column.is-three-fifths, .column.is-three-fifths-tablet { + flex: none; + width: 60%; + } + .column.is-four-fifths, .column.is-four-fifths-tablet { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters, .column.is-offset-three-quarters-tablet { + margin-left: 75%; + } + .column.is-offset-two-thirds, .column.is-offset-two-thirds-tablet { + margin-left: 66.6666%; + } + .column.is-offset-half, .column.is-offset-half-tablet { + margin-left: 50%; + } + .column.is-offset-one-third, .column.is-offset-one-third-tablet { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter, .column.is-offset-one-quarter-tablet { + margin-left: 25%; + } + .column.is-offset-one-fifth, .column.is-offset-one-fifth-tablet { + margin-left: 20%; + } + .column.is-offset-two-fifths, .column.is-offset-two-fifths-tablet { + margin-left: 40%; + } + .column.is-offset-three-fifths, .column.is-offset-three-fifths-tablet { + margin-left: 60%; + } + .column.is-offset-four-fifths, .column.is-offset-four-fifths-tablet { + margin-left: 80%; + } + .column.is-0, .column.is-0-tablet { + flex: none; + width: 0%; + } + .column.is-offset-0, .column.is-offset-0-tablet { + margin-left: 0%; + } + .column.is-1, .column.is-1-tablet { + flex: none; + width: 8.3333333333%; + } + .column.is-offset-1, .column.is-offset-1-tablet { + margin-left: 8.3333333333%; + } + .column.is-2, .column.is-2-tablet { + flex: none; + width: 16.6666666667%; + } + .column.is-offset-2, .column.is-offset-2-tablet { + margin-left: 16.6666666667%; + } + .column.is-3, .column.is-3-tablet { + flex: none; + width: 25%; + } + .column.is-offset-3, .column.is-offset-3-tablet { + margin-left: 25%; + } + .column.is-4, .column.is-4-tablet { + flex: none; + width: 33.3333333333%; + } + .column.is-offset-4, .column.is-offset-4-tablet { + margin-left: 33.3333333333%; + } + .column.is-5, .column.is-5-tablet { + flex: none; + width: 41.6666666667%; + } + .column.is-offset-5, .column.is-offset-5-tablet { + margin-left: 41.6666666667%; + } + .column.is-6, .column.is-6-tablet { + flex: none; + width: 50%; + } + .column.is-offset-6, .column.is-offset-6-tablet { + margin-left: 50%; + } + .column.is-7, .column.is-7-tablet { + flex: none; + width: 58.3333333333%; + } + .column.is-offset-7, .column.is-offset-7-tablet { + margin-left: 58.3333333333%; + } + .column.is-8, .column.is-8-tablet { + flex: none; + width: 66.6666666667%; + } + .column.is-offset-8, .column.is-offset-8-tablet { + margin-left: 66.6666666667%; + } + .column.is-9, .column.is-9-tablet { + flex: none; + width: 75%; + } + .column.is-offset-9, .column.is-offset-9-tablet { + margin-left: 75%; + } + .column.is-10, .column.is-10-tablet { + flex: none; + width: 83.3333333333%; + } + .column.is-offset-10, .column.is-offset-10-tablet { + margin-left: 83.3333333333%; + } + .column.is-11, .column.is-11-tablet { + flex: none; + width: 91.6666666667%; + } + .column.is-offset-11, .column.is-offset-11-tablet { + margin-left: 91.6666666667%; + } + .column.is-12, .column.is-12-tablet { + flex: none; + width: 100%; + } + .column.is-offset-12, .column.is-offset-12-tablet { + margin-left: 100%; + } +} +@media screen and (max-width: 1023px) { + .column.is-narrow-touch { + flex: none; + width: unset; + } + .column.is-full-touch { + flex: none; + width: 100%; + } + .column.is-three-quarters-touch { + flex: none; + width: 75%; + } + .column.is-two-thirds-touch { + flex: none; + width: 66.6666%; + } + .column.is-half-touch { + flex: none; + width: 50%; + } + .column.is-one-third-touch { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter-touch { + flex: none; + width: 25%; + } + .column.is-one-fifth-touch { + flex: none; + width: 20%; + } + .column.is-two-fifths-touch { + flex: none; + width: 40%; + } + .column.is-three-fifths-touch { + flex: none; + width: 60%; + } + .column.is-four-fifths-touch { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters-touch { + margin-left: 75%; + } + .column.is-offset-two-thirds-touch { + margin-left: 66.6666%; + } + .column.is-offset-half-touch { + margin-left: 50%; + } + .column.is-offset-one-third-touch { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter-touch { + margin-left: 25%; + } + .column.is-offset-one-fifth-touch { + margin-left: 20%; + } + .column.is-offset-two-fifths-touch { + margin-left: 40%; + } + .column.is-offset-three-fifths-touch { + margin-left: 60%; + } + .column.is-offset-four-fifths-touch { + margin-left: 80%; + } + .column.is-0-touch { + flex: none; + width: 0%; + } + .column.is-offset-0-touch { + margin-left: 0%; + } + .column.is-1-touch { + flex: none; + width: 8.3333333333%; + } + .column.is-offset-1-touch { + margin-left: 8.3333333333%; + } + .column.is-2-touch { + flex: none; + width: 16.6666666667%; + } + .column.is-offset-2-touch { + margin-left: 16.6666666667%; + } + .column.is-3-touch { + flex: none; + width: 25%; + } + .column.is-offset-3-touch { + margin-left: 25%; + } + .column.is-4-touch { + flex: none; + width: 33.3333333333%; + } + .column.is-offset-4-touch { + margin-left: 33.3333333333%; + } + .column.is-5-touch { + flex: none; + width: 41.6666666667%; + } + .column.is-offset-5-touch { + margin-left: 41.6666666667%; + } + .column.is-6-touch { + flex: none; + width: 50%; + } + .column.is-offset-6-touch { + margin-left: 50%; + } + .column.is-7-touch { + flex: none; + width: 58.3333333333%; + } + .column.is-offset-7-touch { + margin-left: 58.3333333333%; + } + .column.is-8-touch { + flex: none; + width: 66.6666666667%; + } + .column.is-offset-8-touch { + margin-left: 66.6666666667%; + } + .column.is-9-touch { + flex: none; + width: 75%; + } + .column.is-offset-9-touch { + margin-left: 75%; + } + .column.is-10-touch { + flex: none; + width: 83.3333333333%; + } + .column.is-offset-10-touch { + margin-left: 83.3333333333%; + } + .column.is-11-touch { + flex: none; + width: 91.6666666667%; + } + .column.is-offset-11-touch { + margin-left: 91.6666666667%; + } + .column.is-12-touch { + flex: none; + width: 100%; + } + .column.is-offset-12-touch { + margin-left: 100%; + } +} +@media screen and (min-width: 1024px) { + .column.is-narrow-desktop { + flex: none; + width: unset; + } + .column.is-full-desktop { + flex: none; + width: 100%; + } + .column.is-three-quarters-desktop { + flex: none; + width: 75%; + } + .column.is-two-thirds-desktop { + flex: none; + width: 66.6666%; + } + .column.is-half-desktop { + flex: none; + width: 50%; + } + .column.is-one-third-desktop { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter-desktop { + flex: none; + width: 25%; + } + .column.is-one-fifth-desktop { + flex: none; + width: 20%; + } + .column.is-two-fifths-desktop { + flex: none; + width: 40%; + } + .column.is-three-fifths-desktop { + flex: none; + width: 60%; + } + .column.is-four-fifths-desktop { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters-desktop { + margin-left: 75%; + } + .column.is-offset-two-thirds-desktop { + margin-left: 66.6666%; + } + .column.is-offset-half-desktop { + margin-left: 50%; + } + .column.is-offset-one-third-desktop { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter-desktop { + margin-left: 25%; + } + .column.is-offset-one-fifth-desktop { + margin-left: 20%; + } + .column.is-offset-two-fifths-desktop { + margin-left: 40%; + } + .column.is-offset-three-fifths-desktop { + margin-left: 60%; + } + .column.is-offset-four-fifths-desktop { + margin-left: 80%; + } + .column.is-0-desktop { + flex: none; + width: 0%; + } + .column.is-offset-0-desktop { + margin-left: 0%; + } + .column.is-1-desktop { + flex: none; + width: 8.3333333333%; + } + .column.is-offset-1-desktop { + margin-left: 8.3333333333%; + } + .column.is-2-desktop { + flex: none; + width: 16.6666666667%; + } + .column.is-offset-2-desktop { + margin-left: 16.6666666667%; + } + .column.is-3-desktop { + flex: none; + width: 25%; + } + .column.is-offset-3-desktop { + margin-left: 25%; + } + .column.is-4-desktop { + flex: none; + width: 33.3333333333%; + } + .column.is-offset-4-desktop { + margin-left: 33.3333333333%; + } + .column.is-5-desktop { + flex: none; + width: 41.6666666667%; + } + .column.is-offset-5-desktop { + margin-left: 41.6666666667%; + } + .column.is-6-desktop { + flex: none; + width: 50%; + } + .column.is-offset-6-desktop { + margin-left: 50%; + } + .column.is-7-desktop { + flex: none; + width: 58.3333333333%; + } + .column.is-offset-7-desktop { + margin-left: 58.3333333333%; + } + .column.is-8-desktop { + flex: none; + width: 66.6666666667%; + } + .column.is-offset-8-desktop { + margin-left: 66.6666666667%; + } + .column.is-9-desktop { + flex: none; + width: 75%; + } + .column.is-offset-9-desktop { + margin-left: 75%; + } + .column.is-10-desktop { + flex: none; + width: 83.3333333333%; + } + .column.is-offset-10-desktop { + margin-left: 83.3333333333%; + } + .column.is-11-desktop { + flex: none; + width: 91.6666666667%; + } + .column.is-offset-11-desktop { + margin-left: 91.6666666667%; + } + .column.is-12-desktop { + flex: none; + width: 100%; + } + .column.is-offset-12-desktop { + margin-left: 100%; + } +} +@media screen and (min-width: 1216px) { + .column.is-narrow-widescreen { + flex: none; + width: unset; + } + .column.is-full-widescreen { + flex: none; + width: 100%; + } + .column.is-three-quarters-widescreen { + flex: none; + width: 75%; + } + .column.is-two-thirds-widescreen { + flex: none; + width: 66.6666%; + } + .column.is-half-widescreen { + flex: none; + width: 50%; + } + .column.is-one-third-widescreen { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter-widescreen { + flex: none; + width: 25%; + } + .column.is-one-fifth-widescreen { + flex: none; + width: 20%; + } + .column.is-two-fifths-widescreen { + flex: none; + width: 40%; + } + .column.is-three-fifths-widescreen { + flex: none; + width: 60%; + } + .column.is-four-fifths-widescreen { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters-widescreen { + margin-left: 75%; + } + .column.is-offset-two-thirds-widescreen { + margin-left: 66.6666%; + } + .column.is-offset-half-widescreen { + margin-left: 50%; + } + .column.is-offset-one-third-widescreen { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter-widescreen { + margin-left: 25%; + } + .column.is-offset-one-fifth-widescreen { + margin-left: 20%; + } + .column.is-offset-two-fifths-widescreen { + margin-left: 40%; + } + .column.is-offset-three-fifths-widescreen { + margin-left: 60%; + } + .column.is-offset-four-fifths-widescreen { + margin-left: 80%; + } + .column.is-0-widescreen { + flex: none; + width: 0%; + } + .column.is-offset-0-widescreen { + margin-left: 0%; + } + .column.is-1-widescreen { + flex: none; + width: 8.3333333333%; + } + .column.is-offset-1-widescreen { + margin-left: 8.3333333333%; + } + .column.is-2-widescreen { + flex: none; + width: 16.6666666667%; + } + .column.is-offset-2-widescreen { + margin-left: 16.6666666667%; + } + .column.is-3-widescreen { + flex: none; + width: 25%; + } + .column.is-offset-3-widescreen { + margin-left: 25%; + } + .column.is-4-widescreen { + flex: none; + width: 33.3333333333%; + } + .column.is-offset-4-widescreen { + margin-left: 33.3333333333%; + } + .column.is-5-widescreen { + flex: none; + width: 41.6666666667%; + } + .column.is-offset-5-widescreen { + margin-left: 41.6666666667%; + } + .column.is-6-widescreen { + flex: none; + width: 50%; + } + .column.is-offset-6-widescreen { + margin-left: 50%; + } + .column.is-7-widescreen { + flex: none; + width: 58.3333333333%; + } + .column.is-offset-7-widescreen { + margin-left: 58.3333333333%; + } + .column.is-8-widescreen { + flex: none; + width: 66.6666666667%; + } + .column.is-offset-8-widescreen { + margin-left: 66.6666666667%; + } + .column.is-9-widescreen { + flex: none; + width: 75%; + } + .column.is-offset-9-widescreen { + margin-left: 75%; + } + .column.is-10-widescreen { + flex: none; + width: 83.3333333333%; + } + .column.is-offset-10-widescreen { + margin-left: 83.3333333333%; + } + .column.is-11-widescreen { + flex: none; + width: 91.6666666667%; + } + .column.is-offset-11-widescreen { + margin-left: 91.6666666667%; + } + .column.is-12-widescreen { + flex: none; + width: 100%; + } + .column.is-offset-12-widescreen { + margin-left: 100%; + } +} +@media screen and (min-width: 1408px) { + .column.is-narrow-fullhd { + flex: none; + width: unset; + } + .column.is-full-fullhd { + flex: none; + width: 100%; + } + .column.is-three-quarters-fullhd { + flex: none; + width: 75%; + } + .column.is-two-thirds-fullhd { + flex: none; + width: 66.6666%; + } + .column.is-half-fullhd { + flex: none; + width: 50%; + } + .column.is-one-third-fullhd { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter-fullhd { + flex: none; + width: 25%; + } + .column.is-one-fifth-fullhd { + flex: none; + width: 20%; + } + .column.is-two-fifths-fullhd { + flex: none; + width: 40%; + } + .column.is-three-fifths-fullhd { + flex: none; + width: 60%; + } + .column.is-four-fifths-fullhd { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters-fullhd { + margin-left: 75%; + } + .column.is-offset-two-thirds-fullhd { + margin-left: 66.6666%; + } + .column.is-offset-half-fullhd { + margin-left: 50%; + } + .column.is-offset-one-third-fullhd { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter-fullhd { + margin-left: 25%; + } + .column.is-offset-one-fifth-fullhd { + margin-left: 20%; + } + .column.is-offset-two-fifths-fullhd { + margin-left: 40%; + } + .column.is-offset-three-fifths-fullhd { + margin-left: 60%; + } + .column.is-offset-four-fifths-fullhd { + margin-left: 80%; + } + .column.is-0-fullhd { + flex: none; + width: 0%; + } + .column.is-offset-0-fullhd { + margin-left: 0%; + } + .column.is-1-fullhd { + flex: none; + width: 8.3333333333%; + } + .column.is-offset-1-fullhd { + margin-left: 8.3333333333%; + } + .column.is-2-fullhd { + flex: none; + width: 16.6666666667%; + } + .column.is-offset-2-fullhd { + margin-left: 16.6666666667%; + } + .column.is-3-fullhd { + flex: none; + width: 25%; + } + .column.is-offset-3-fullhd { + margin-left: 25%; + } + .column.is-4-fullhd { + flex: none; + width: 33.3333333333%; + } + .column.is-offset-4-fullhd { + margin-left: 33.3333333333%; + } + .column.is-5-fullhd { + flex: none; + width: 41.6666666667%; + } + .column.is-offset-5-fullhd { + margin-left: 41.6666666667%; + } + .column.is-6-fullhd { + flex: none; + width: 50%; + } + .column.is-offset-6-fullhd { + margin-left: 50%; + } + .column.is-7-fullhd { + flex: none; + width: 58.3333333333%; + } + .column.is-offset-7-fullhd { + margin-left: 58.3333333333%; + } + .column.is-8-fullhd { + flex: none; + width: 66.6666666667%; + } + .column.is-offset-8-fullhd { + margin-left: 66.6666666667%; + } + .column.is-9-fullhd { + flex: none; + width: 75%; + } + .column.is-offset-9-fullhd { + margin-left: 75%; + } + .column.is-10-fullhd { + flex: none; + width: 83.3333333333%; + } + .column.is-offset-10-fullhd { + margin-left: 83.3333333333%; + } + .column.is-11-fullhd { + flex: none; + width: 91.6666666667%; + } + .column.is-offset-11-fullhd { + margin-left: 91.6666666667%; + } + .column.is-12-fullhd { + flex: none; + width: 100%; + } + .column.is-offset-12-fullhd { + margin-left: 100%; + } +} + +.columns { + margin-left: -0.75rem; + margin-right: -0.75rem; + margin-top: -0.75rem; +} +.columns:last-child { + margin-bottom: -0.75rem; +} +.columns:not(:last-child) { + margin-bottom: calc(1.5rem - 0.75rem); +} +.columns.is-centered { + justify-content: center; +} +.columns.is-gapless { + margin-left: 0; + margin-right: 0; + margin-top: 0; +} +.columns.is-gapless > .column { + margin: 0; + padding: 0 !important; +} +.columns.is-gapless:not(:last-child) { + margin-bottom: 1.5rem; +} +.columns.is-gapless:last-child { + margin-bottom: 0; +} +.columns.is-mobile { + display: flex; +} +.columns.is-multiline { + flex-wrap: wrap; +} +.columns.is-vcentered { + align-items: center; +} +@media screen and (min-width: 769px), print { + .columns:not(.is-desktop) { + display: flex; + } +} +@media screen and (min-width: 1024px) { + .columns.is-desktop { + display: flex; + } +} + +.columns.is-variable { + --columnGap: 0.75rem; + margin-left: calc(-1 * var(--columnGap)); + margin-right: calc(-1 * var(--columnGap)); +} +.columns.is-variable > .column { + padding-left: var(--columnGap); + padding-right: var(--columnGap); +} +.columns.is-variable.is-0 { + --columnGap: 0rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-0-mobile { + --columnGap: 0rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-0-tablet { + --columnGap: 0rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-0-tablet-only { + --columnGap: 0rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-0-touch { + --columnGap: 0rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-0-desktop { + --columnGap: 0rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-0-desktop-only { + --columnGap: 0rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-0-widescreen { + --columnGap: 0rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-0-widescreen-only { + --columnGap: 0rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-0-fullhd { + --columnGap: 0rem; + } +} +.columns.is-variable.is-1 { + --columnGap: 0.25rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-1-mobile { + --columnGap: 0.25rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-1-tablet { + --columnGap: 0.25rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-1-tablet-only { + --columnGap: 0.25rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-1-touch { + --columnGap: 0.25rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-1-desktop { + --columnGap: 0.25rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-1-desktop-only { + --columnGap: 0.25rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-1-widescreen { + --columnGap: 0.25rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-1-widescreen-only { + --columnGap: 0.25rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-1-fullhd { + --columnGap: 0.25rem; + } +} +.columns.is-variable.is-2 { + --columnGap: 0.5rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-2-mobile { + --columnGap: 0.5rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-2-tablet { + --columnGap: 0.5rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-2-tablet-only { + --columnGap: 0.5rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-2-touch { + --columnGap: 0.5rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-2-desktop { + --columnGap: 0.5rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-2-desktop-only { + --columnGap: 0.5rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-2-widescreen { + --columnGap: 0.5rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-2-widescreen-only { + --columnGap: 0.5rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-2-fullhd { + --columnGap: 0.5rem; + } +} +.columns.is-variable.is-3 { + --columnGap: 0.75rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-3-mobile { + --columnGap: 0.75rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-3-tablet { + --columnGap: 0.75rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-3-tablet-only { + --columnGap: 0.75rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-3-touch { + --columnGap: 0.75rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-3-desktop { + --columnGap: 0.75rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-3-desktop-only { + --columnGap: 0.75rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-3-widescreen { + --columnGap: 0.75rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-3-widescreen-only { + --columnGap: 0.75rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-3-fullhd { + --columnGap: 0.75rem; + } +} +.columns.is-variable.is-4 { + --columnGap: 1rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-4-mobile { + --columnGap: 1rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-4-tablet { + --columnGap: 1rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-4-tablet-only { + --columnGap: 1rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-4-touch { + --columnGap: 1rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-4-desktop { + --columnGap: 1rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-4-desktop-only { + --columnGap: 1rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-4-widescreen { + --columnGap: 1rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-4-widescreen-only { + --columnGap: 1rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-4-fullhd { + --columnGap: 1rem; + } +} +.columns.is-variable.is-5 { + --columnGap: 1.25rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-5-mobile { + --columnGap: 1.25rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-5-tablet { + --columnGap: 1.25rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-5-tablet-only { + --columnGap: 1.25rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-5-touch { + --columnGap: 1.25rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-5-desktop { + --columnGap: 1.25rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-5-desktop-only { + --columnGap: 1.25rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-5-widescreen { + --columnGap: 1.25rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-5-widescreen-only { + --columnGap: 1.25rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-5-fullhd { + --columnGap: 1.25rem; + } +} +.columns.is-variable.is-6 { + --columnGap: 1.5rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-6-mobile { + --columnGap: 1.5rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-6-tablet { + --columnGap: 1.5rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-6-tablet-only { + --columnGap: 1.5rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-6-touch { + --columnGap: 1.5rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-6-desktop { + --columnGap: 1.5rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-6-desktop-only { + --columnGap: 1.5rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-6-widescreen { + --columnGap: 1.5rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-6-widescreen-only { + --columnGap: 1.5rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-6-fullhd { + --columnGap: 1.5rem; + } +} +.columns.is-variable.is-7 { + --columnGap: 1.75rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-7-mobile { + --columnGap: 1.75rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-7-tablet { + --columnGap: 1.75rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-7-tablet-only { + --columnGap: 1.75rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-7-touch { + --columnGap: 1.75rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-7-desktop { + --columnGap: 1.75rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-7-desktop-only { + --columnGap: 1.75rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-7-widescreen { + --columnGap: 1.75rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-7-widescreen-only { + --columnGap: 1.75rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-7-fullhd { + --columnGap: 1.75rem; + } +} +.columns.is-variable.is-8 { + --columnGap: 2rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-8-mobile { + --columnGap: 2rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-8-tablet { + --columnGap: 2rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-8-tablet-only { + --columnGap: 2rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-8-touch { + --columnGap: 2rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-8-desktop { + --columnGap: 2rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-8-desktop-only { + --columnGap: 2rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-8-widescreen { + --columnGap: 2rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-8-widescreen-only { + --columnGap: 2rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-8-fullhd { + --columnGap: 2rem; + } +} + +html { + line-height: 1.15; + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; +} + +body { + margin: 0; +} + +article, +aside, +footer, +header, +nav, +section { + display: block; +} + +h1 { + font-size: 2em; + margin: 0.67em 0; + line-height: 1em; +} + +figcaption, +figure, +main { + display: block; +} + +figure { + margin: 1em 40px; +} + +hr { + box-sizing: content-box; + height: 0; + overflow: visible; +} + +pre { + font-family: monospace, monospace; + font-size: 1em; +} + +a { + background-color: transparent; + -webkit-text-decoration-skip: objects; +} + +a:active, +a:hover { + outline-width: 0; +} + +abbr[title] { + border-bottom: none; + text-decoration: underline; + text-decoration: underline dotted; +} + +b, +strong { + font-weight: inherit; + font-weight: bolder; +} + +code, +kbd, +samp { + font-family: monospace, monospace; + font-size: 1em; +} + +dfn { + font-style: italic; +} + +mark { + background-color: #ff0; + color: #000; +} + +small { + font-size: 80%; +} + +sub, +sup { + font-size: 60%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.55em; + background: #374857; + color: #374857; + border-radius: 2px; + padding: 0 2px 0 2px; + margin: 0 2px 0 0; +} + +audio, +video { + display: inline-block; +} + +audio:not([controls]) { + display: none; + height: 0; +} + +img { + border-style: none; +} + +svg:not(:root) { + overflow: hidden; +} + +button, +input, +optgroup, +select, +textarea { + font-family: sans-serif; + font-size: 100%; + line-height: 1.15; + margin: 0; +} + +button, +input { + overflow: visible; +} + +button, +select { + text-transform: none; +} + +button, html [type=button], +[type=reset], +[type=submit] { + -webkit-appearance: button; +} + +[type=button]::-moz-focus-inner, +[type=reset]::-moz-focus-inner, +[type=submit]::-moz-focus-inner, +button::-moz-focus-inner { + border-style: none; + padding: 0; +} + +[type=button]:-moz-focusring, +[type=reset]:-moz-focusring, +[type=submit]:-moz-focusring, +button:-moz-focusring { + outline: 1px dotted ButtonText; +} + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; +} + +progress { + display: inline-block; + vertical-align: baseline; +} + +textarea { + overflow: auto; +} + +[type=checkbox], +[type=radio] { + box-sizing: border-box; + padding: 0; +} + +[type=number]::-webkit-inner-spin-button, +[type=number]::-webkit-outer-spin-button { + height: auto; +} + +[type=search] { + -webkit-appearance: textfield; + outline-offset: -2px; +} + +[type=search]::-webkit-search-cancel-button, +[type=search]::-webkit-search-decoration { + -webkit-appearance: none; +} + +::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; +} + +details, +menu { + display: block; +} + +summary { + display: list-item; +} + +canvas { + display: inline-block; +} + +template { + display: none; +} + +[hidden] { + display: none; +} + +h1, h2, h3 { + color: #f2f1ef; +} + +h1 { + font-size: 2em; + font-weight: 400; +} + +h2 { + font-size: 1.75em; + font-weight: 400; +} + +h3 { + font-size: 1.5em; + font-weight: 300; +} + +html, body { + background-color: #0f1419; + font: 400 1em Helvetica, Arial, sans-serif; + height: 100%; +} + +a { + font: 300 1em Helvetica, Arial, sans-serif; + color: #b2cce5; + text-decoration: underline; + -moz-transition: all 0.1s linear; + -webkit-transition: all 0.1s linear; + -o-transition: all 0.1s linear; + transition: all 0.1s linear; +} +a:hover { + color: #d8e5f2; +} + +svg.icons { + width: 25px; + fill: #b2cce5; +} + +#notifications { + perspective: 1000px; + position: fixed; + z-index: 2000; + height: 55px; + width: 100%; + display: block; + align-items: center; + justify-content: center; + padding: 0; + margin-top: -55px; +} +#notifications #notifyMessage { + margin: 0 auto; + transition: all 0.6s cubic-bezier(0.83, 0.05, 0.28, 1); + height: 50px; + width: 500px; + display: flex; + align-items: center; + justify-content: center; + opacity: 1; + transform-style: preserve-3d; + transform: rotateX(-120deg); + transform-origin: 50% 0; +} +#notifications #notifyMessage #notify-good, #notifications #notifyMessage #notify-lame, #notifications #notifyMessage #notify-working { + display: block; +} +#notifications #notifyMessage #notify-working-box { + -webkit-animation: spin 2s linear infinite; + -moz-animation: spin 2s linear infinite; + animation: spin 2s linear infinite; +} +@-moz-keyframes spin { + 100% { + -moz-transform: rotate(360deg); + } +} +@-webkit-keyframes spin { + 100% { + -webkit-transform: rotate(360deg); + } +} +@keyframes spin { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +#notifications #notifyMessage .notify-icon { + background: #32302f; + padding: 8px 5px 5px 5px; + border-radius: 5px 0 0 5px; + height: 30px; + width: 30px; + text-align: center; + border: 2px solid #f2f1ef; +} +#notifications #notifyMessage p { + color: #f2f1ef; + background: black; + width: 400px; + height: 28px; + padding: 15px 0 0 5px; + border-radius: 0 5px 5px 0; + border: 2px solid #f2f1ef; + text-align: center; +} +#notifications #notifyMessage .icons { + fill: #f2f1ef; +} + +.notify-close { + transform-style: preserve-3d; + transform: rotateX(-120deg); +} + +.notify-open { + transform-style: preserve-3d; + transform: rotateX(0deg); +} + +.blog-container { + width: 100%; +} + +.main-container { + margin: 0 auto; + z-index: 10; + position: relative; +} +.main-container section header { + width: 100%; + max-width: 900px; + margin: 0 auto; +} +.main-container section header #wrapper { + padding: 0.75rem; +} +.main-container section header #wrapper #left, .main-container section header #wrapper #right { + width: 49.7%; + display: inline-block; + vertical-align: top; + min-height: 60px; +} +.main-container section header #wrapper #left #the-logo, .main-container section header #wrapper #right #the-logo { + width: 40px; +} +.main-container section header #wrapper #right { + text-align: right; + color: #f2f1ef; +} +.main-container section header #wrapper #right a { + text-decoration-color: #fc6399; + font-weight: 400; +} +.main-container section header #wrapper #right label#the-title { + font-size: 1.2em; + font-weight: 400; + color: #f5ab35; + text-decoration: none; + display: block; + line-height: 0.8; +} +.main-container section header #wrapper #right #dash-menu { + text-align: right; +} + +/* Mozilla based browsers */ +::-moz-selection { + background-color: #fc6399; + color: #f2f1ef; +} + +/* Works in Safari */ +::selection { + background-color: #fc6399; + color: #f2f1ef; +} + +/* Works in Opera */ +::-o-selection { + background-color: #fc6399; + color: #f2f1ef; +} + +::-ms-selection { + background-color: #fc6399; + color: #f2f1ef; +} + +/* Works in Internet Explorer */ +::-webkit-selection { + background-color: #fc6399; + color: #f2f1ef; +} + +@media only screen and (max-width: 800px) { + .main-container section header #wrapper #left, .main-container section header #wrapper #right { + display: inline-block; + } +} +@media only screen and (max-width: 480px) { + .main-container section header #wrapper #left { + width: 30%; + } + .main-container section header #wrapper #right { + width: 70%; + } +} +#dash-index-content { + width: 100%; + height: 100%; + margin: 0 auto; +} +#dash-index-content #dash-index { + width: 100%; + height: 100%; + z-index: 10; + position: relative; +} +#dash-index-content #dash-index #dash-index-wrapper { + width: 100%; + height: 100%; + margin: 0 auto; +} +#dash-index-content #dash-index #dash-index-wrapper .dash-init, #dash-index-content #dash-index #dash-index-wrapper .dash-restore { + width: 100%; + max-width: 900px; + margin: 0 auto; + color: #b2cce5; +} +#dash-index-content #dash-index #dash-index-wrapper .dash-init label, #dash-index-content #dash-index #dash-index-wrapper .dash-restore label { + color: #374857; +} +#dash-index-content #dash-index #dash-index-wrapper .dash-init form, #dash-index-content #dash-index #dash-index-wrapper .dash-restore form { + background: #f2f1ef; + padding: 15px; +} +#dash-index-content #dash-index #dash-index-wrapper .dash-init form h1, #dash-index-content #dash-index #dash-index-wrapper .dash-restore form h1 { + color: #374857; +} +#dash-index-content #dash-index #dash-index-wrapper .dash-init form p, #dash-index-content #dash-index #dash-index-wrapper .dash-restore form p { + color: black; + border-top: 1px solid #374857; + border-bottom: 1px solid #374857; + padding: 10px 0 10px 0; +} +#dash-index-content #dash-index #dash-index-wrapper .dash-init form input.large[type=email], #dash-index-content #dash-index #dash-index-wrapper .dash-init form input[type=password], #dash-index-content #dash-index #dash-index-wrapper .dash-init form input[type=text], #dash-index-content #dash-index #dash-index-wrapper .dash-restore form input.large[type=email], #dash-index-content #dash-index #dash-index-wrapper .dash-restore form input[type=password], #dash-index-content #dash-index #dash-index-wrapper .dash-restore form input[type=text] { + margin-bottom: 15px; + margin-top: 5px; +} +#dash-index-content #dash-index #dash-index-wrapper .dash-init form button, #dash-index-content #dash-index #dash-index-wrapper .dash-restore form button { + height: 30px; + width: 120px; + margin: 0 auto; + display: block; +} +#dash-index-content #dash-index #dash-index-wrapper .dash-restore { + display: none; + visibility: hidden; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-login { + width: 100%; + max-width: 900px; + margin: 0 auto; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-form { + width: 300px; + padding: 0.75em; + background: #374857; + border-radius: 3px; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-form input { + width: 290px; + margin: 0 0 10px 0; + height: 30px; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-form button { + width: 300px; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-menu { + padding: 10px; + width: 90%; + max-width: 900px; + margin: 50px auto; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-menu a { + display: inline-block; + vertical-align: top; + background: black; + width: 30%; + padding: 5px; + border-radius: 3px; + color: #f2f1ef; + margin: 0 10px 10px 0; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-menu a:hover { + background: black; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-menu a svg { + display: inline-block; + vertical-align: top; + fill: #f2f1ef; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-menu a label { + display: inline-block; + margin-top: 5px; + width: 85%; + text-align: center; + cursor: pointer; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent { + width: 100%; + max-width: 900px; + height: 100%; + padding: 5px 0 0 0; + margin: 0 auto; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list { + padding: 0.75em; + position: relative; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header { + height: 50px; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header h3 { + vertical-align: top; + display: inline-block; + width: 49%; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header .index-menu { + width: 50%; + text-align: right; + vertical-align: top; + display: inline-block; + margin: 24px 0 24px 0; + right: 10px; + color: #f2f1ef; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header .index-menu a { + text-decoration-color: #fc6399; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link { + font-size: 1.5em; + font-weight: 300; + display: inline-block; + border-radius: 3px; + vertical-align: top; + text-decoration: none; + position: relative; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link label { + font-size: 1.4em; + font-weight: 700; + color: #f2f1ef; + padding: 5px; + vertical-align: top; + display: inline-block; + word-wrap: break-word; + width: 100%; + text-align: center; + text-shadow: 2px 2px 0 #32302f; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link span { + vertical-align: top; + margin: 0 auto; + width: 300px; + display: block; + font-family: "Lucida Console", Monaco, monospace; + font-size: 0.5em; + padding: 7px; + color: #f2f1ef; + text-align: center; + border-radius: 0 0 3px 3px; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div { + width: 100%; + position: absolute; + bottom: 0; + border-radius: 0 0 3px 3px; + background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%); +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div #options { + display: block; + vertical-align: top; + width: 300px; + position: relative; + text-align: center; + margin: 0 auto; + background: none; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div #options .item-options { + border-radius: 3px; + margin: 5px; + display: inline-block; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div #options .item-options[data-active=false] { + width: 65px; + background: black; + color: #f2f1ef; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div #options .item-options[data-active=true] { + width: 70px; + background: #fad396; + color: black; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(3) { + width: 100%; + margin-bottom: 20px; + height: 500px; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(4) { + width: 48.7%; + height: 275px; + margin: 0 15px 15px 0; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(5) { + width: 48.7%; + height: 550px; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(6) { + width: 48.7%; + height: 550px; + margin: -260px 15px 0 0; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(7) { + width: 49%; + height: 275px; + margin: 15px 0 0 0; +} + +@media only screen and (max-width: 768px) { + #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(4), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(6) { + width: 48.9%; + } +} +@media only screen and (max-width: 640px) { + #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(4), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(6) { + width: 48.5%; + } +} +@media only screen and (max-width: 480px) { + #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header h3 { + width: 40%; + } + #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header .index-menu { + width: 60%; + } + #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(3), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(4), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(5), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(6), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(7) { + width: 100%; + margin: 15px 0 0 0; + height: 400px; + } +} +#settings-actions { + position: fixed; + width: 40%; + margin-top: -85px; + left: 50%; + margin-left: -20%; +} +#settings-actions #buttons { + width: 155px; + margin: 0 auto; +} +#settings-actions #buttons button { + margin: 5px; +} +#settings-actions #buttons button svg { + fill: #f2f1ef; +} +#settings-actions #buttons button[data-render=false] { + background: black; +} +#settings-actions #buttons button[data-render=false] svg { + fill: #f2f1ef; +} +#settings-actions #buttons button[data-render=true] { + background: white; +} +#settings-actions #buttons button[data-render=true] svg { + fill: black; +} + +#site-background { + margin: 0 0 10px 0; +} +#site-background img { + width: 100%; + border-radius: 0; + overflow: hidden; + cursor: pointer; +} +#site-background label { + position: absolute; + color: #f2f1ef; + margin: 5px; + background: black; + padding: 5px; + border-radius: 3px; +} +#site-background input { + visibility: hidden; + display: none; +} + +#settings-index { + width: 94%; + max-width: 900px; + margin: 0 auto; +} +#settings-index #settings-index-wrapper { + padding: 0.75rem; +} +#settings-index #settings-index-wrapper button { + margin-top: 5px; + width: 100%; + height: 45px; +} +#settings-index #settings-index-wrapper #member-settings, #settings-index #settings-index-wrapper #site-settings, #settings-index #settings-index-wrapper #option-settings, #settings-index #settings-index-wrapper #member-utils { + background: #374857; + padding: 5px; + border-radius: 5px 0 5px 0; + width: 100%; + margin: 20px auto; +} +#settings-index #settings-index-wrapper #member-settings label, #settings-index #settings-index-wrapper #site-settings label, #settings-index #settings-index-wrapper #option-settings label, #settings-index #settings-index-wrapper #member-utils label { + font-family: "Lucida Console", Monaco, monospace; + color: #f2f1ef; +} +#settings-index #settings-index-wrapper #member-settings span, #settings-index #settings-index-wrapper #site-settings span, #settings-index #settings-index-wrapper #option-settings span, #settings-index #settings-index-wrapper #member-utils span { + color: #b2cce5; +} +#settings-index #settings-index-wrapper #member-settings input, #settings-index #settings-index-wrapper #site-settings input, #settings-index #settings-index-wrapper #option-settings input, #settings-index #settings-index-wrapper #member-utils input { + width: 95%; + margin: 0 5px 10px 0; + height: 30px; + padding: 10px; +} +#settings-index #settings-index-wrapper #member-settings input#backup-upload, #settings-index #settings-index-wrapper #site-settings input#backup-upload, #settings-index #settings-index-wrapper #option-settings input#backup-upload, #settings-index #settings-index-wrapper #member-utils input#backup-upload { + visibility: hidden; + display: none; +} +#settings-index #settings-index-wrapper #member-settings .backup-meta, #settings-index #settings-index-wrapper #site-settings .backup-meta, #settings-index #settings-index-wrapper #option-settings .backup-meta, #settings-index #settings-index-wrapper #member-utils .backup-meta { + background: #0f1419; + color: #f2f1ef; + padding: 8px; + border-radius: 3px; + margin: 5px 0 0 0; +} +#settings-index #settings-index-wrapper #member-settings #member-avatar-drop, #settings-index #settings-index-wrapper #site-settings #member-avatar-drop, #settings-index #settings-index-wrapper #option-settings #member-avatar-drop, #settings-index #settings-index-wrapper #member-utils #member-avatar-drop { + display: inline-block; + margin: 0 0 10px 0; +} +#settings-index #settings-index-wrapper #member-settings #member-avatar-drop img, #settings-index #settings-index-wrapper #site-settings #member-avatar-drop img, #settings-index #settings-index-wrapper #option-settings #member-avatar-drop img, #settings-index #settings-index-wrapper #member-utils #member-avatar-drop img { + width: 100%; + border-radius: 5px; + overflow: hidden; + cursor: pointer; + display: block; + margin-bottom: 2px; +} +#settings-index #settings-index-wrapper #member-settings #member-avatar-drop input, #settings-index #settings-index-wrapper #site-settings #member-avatar-drop input, #settings-index #settings-index-wrapper #option-settings #member-avatar-drop input, #settings-index #settings-index-wrapper #member-utils #member-avatar-drop input { + visibility: hidden; + display: none; +} +#settings-index #settings-index-wrapper #member-settings #member-avatar-drop #privacy-toggle, #settings-index #settings-index-wrapper #site-settings #member-avatar-drop #privacy-toggle, #settings-index #settings-index-wrapper #option-settings #member-avatar-drop #privacy-toggle, #settings-index #settings-index-wrapper #member-utils #member-avatar-drop #privacy-toggle { + width: 50%; +} +#settings-index #settings-index-wrapper #member-settings #member-avatar-drop #render-toggle, #settings-index #settings-index-wrapper #site-settings #member-avatar-drop #render-toggle, #settings-index #settings-index-wrapper #option-settings #member-avatar-drop #render-toggle, #settings-index #settings-index-wrapper #member-utils #member-avatar-drop #render-toggle { + width: 50%; +} +#settings-index #settings-index-wrapper #member-settings #member-info, #settings-index #settings-index-wrapper #site-settings #member-info, #settings-index #settings-index-wrapper #option-settings #member-info, #settings-index #settings-index-wrapper #member-utils #member-info { + vertical-align: top; + display: inline-block; + width: 100%; +} +#settings-index #settings-index-wrapper #member-settings #member-info input, #settings-index #settings-index-wrapper #site-settings #member-info input, #settings-index #settings-index-wrapper #option-settings #member-info input, #settings-index #settings-index-wrapper #member-utils #member-info input { + width: 95%; + margin: 0 5px 10px 0; +} +#settings-index #settings-index-wrapper #member-settings textarea, #settings-index #settings-index-wrapper #site-settings textarea, #settings-index #settings-index-wrapper #option-settings textarea, #settings-index #settings-index-wrapper #member-utils textarea { + background: #0f1419; + width: 95%; + height: 155px; + color: #b2cce5; + padding: 10px; +} +#settings-index #settings-index-wrapper #option-settings #theme-settings a { + width: 95%; + margin: 0 5px 5px 0; + height: 25px; + padding: 10px; + display: inline-block; +} +#settings-index #settings-index-wrapper #option-settings #theme-settings a[data-enabled=false] { + background: black; + color: #b2cce5; + border-radius: 3px; +} +#settings-index #settings-index-wrapper #option-settings #theme-settings a[data-enabled=true] { + background: #b2cce5; + color: #374857; + border-radius: 3px; +} +#settings-index #settings-index-wrapper #option-settings #theme-settings a[data-enabled=true] svg { + fill: #374857; + display: inline-block; + float: right; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings { + min-height: 240px; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings a.mail-option { + float: right; + font-family: "Lucida Console", Monaco, monospace; + font-size: 0.9em; + border-radius: 3px; + text-decoration: none; + margin: 0 0 0 5px; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings a.mail-option[data-enabled=true] { + color: #fc6399; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings a.mail-option[data-enabled=false] { + color: #f2f1ef; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings input { + margin: 0 5px 5px 0; + vertical-align: top; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings div[data-enabled=false] { + display: none; + visibility: hidden; +} + +#error-index { + width: 100%; + max-width: 900px; + margin: 0 auto; + padding: 10px; + height: 100%; + z-index: 10; + position: relative; +} +#error-index label#title { + font-size: 100px; + color: #fc6399; + font-weight: 500; +} +#error-index label#message { + font-size: 50px; + color: #f5ab35; + font-weight: 500; +} +#error-index label#error { + font-size: 25px; + color: #F64747; + font-weight: 500; +} + +#nav-index { + width: 100%; + max-width: 900px; + margin: 0 auto; +} +#nav-index #nav-index-wrapper { + padding: 0.75rem; +} +#nav-index #nav-index-wrapper #nav-pages .nav-item { + display: block; + width: 98%; + background: #374857; + border-radius: 3px; + color: #f2f1ef; + height: 30px; + padding: 10px; + margin: 0 0 10px 0; + font-size: 1.5em; + cursor: move; +} +#nav-index #nav-index-wrapper #nav-pages label { + display: inline-block; + vertical-align: middle; + padding: 0; + margin: -15px 0 0 10px; + cursor: move; +} +#nav-index #nav-index-wrapper #nav-pages #nav-btns { + float: right; +} +#nav-index #nav-index-wrapper #nav-pages #nav-btns button { + font-size: 0.8em; + margin: 0 0 0 10px; +} + +@media only screen and (max-width: 375px) { + #nav-index #nav-index-wrapper #nav-pages .nav-item { + width: 94.5%; + font-size: 1em; + } + #nav-index #nav-index-wrapper #nav-pages .nav-item label { + width: 47%; + vertical-align: top; + margin-top: 0px; + line-height: 1em; + } +} +@media only screen and (max-width: 320px) { + #nav-index #nav-index-wrapper #nav-pages .nav-item { + width: 94.5%; + font-size: 1em; + } + #nav-index #nav-index-wrapper #nav-pages .nav-item label { + width: 37%; + vertical-align: top; + margin-top: 0px; + line-height: 1em; + } +} +form { + display: inline-block; +} + +input[type=email], input[type=password], input[type=text] { + border: 0; + border-radius: 5px; + padding: 5px; + margin: 10px 5px 0 0; + font: 15px "Lucida Console", Monaco, monospace; + display: inline-block; + background: #0f1419; + color: #f2f1ef; +} + +textarea { + border: 0; + border-radius: 3px; + color: #f2f1ef; + font: 15px "Lucida Console", Monaco, monospace; + ackground: #0f1419; +} + +button, input[type=submit] { + background: #fc6399; + color: #0f1419; + font: 14px Helvetica, Arial, sans-serif; + border-radius: 5px; + position: relative; + cursor: pointer; + border: 0; + padding: 5px 5px 0 5px; + -moz-transition: all 0.3s linear; + -webkit-transition: all 0.3s linear; + -o-transition: all 0.3s linear; + transition: all 0.3s linear; + font: 15px "Lucida Console", Monaco, monospace; +} + +select { + font: 14px "Lucida Console", Monaco, monospace; + border: 1px solid #b2cce5; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + color: #374857; +} + +::-webkit-input-placeholder { + font: 14px "Lucida Console", Monaco, monospace; + color: #bac7d3; +} + +:-moz-placeholder { + /* Firefox 18- */ + font: 14px "Lucida Console", Monaco, monospace; + color: #bac7d3; +} + +::-moz-placeholder { + /* Firefox 19+ */ + font: 14px "Lucida Console", Monaco, monospace; + color: #bac7d3; +} + +:-ms-input-placeholder { + font: 14px "Lucida Console", Monaco, monospace; + color: #bac7d3; +} + +#post-index { + width: 100%; + max-width: 900px; + margin: 0 auto; +} +#post-index #post-index-wrapper { + padding: 0.75rem; + overflow: hidden; +} +#post-index #post-index-wrapper #post-index-menu { + color: #f2f1ef; +} +#post-index #post-index-wrapper #post-index-menu a { + text-decoration-color: #fc6399; +} +#post-index #post-index-wrapper #post-index-menu a.add-new-post { + display: inline-block; + background: #fc6399; + border-radius: 3px; + padding: 3px; + color: #f2f1ef; + text-align: center; + margin-bottom: 10px; + float: right; +} +#post-index #post-index-wrapper #post-index-menu .current-filter { + color: #fc6399; + text-decoration-color: #b2cce5; +} +#post-index #post-index-wrapper #posts-list { + margin: 20px 0 0 0; +} +#post-index #post-index-wrapper #posts-list a.page-link { + background: #f2f1ef; + display: inline-block; + vertical-align: top; + width: 100%; + text-decoration: none; + margin: 0 0 20px 0; + border-radius: 3px; + overflow: hidden; + color: black; +} +#post-index #post-index-wrapper #posts-list a.page-link label { + font-size: 2em; + font-weight: 500; + padding: 10px; + display: inline-block; + vertical-align: top; + width: 100%; +} +#post-index #post-index-wrapper #posts-list a.page-link span { + display: inline-block; + vertical-align: top; + font-size: 0.8em; + font-family: "Lucida Console", Monaco, monospace; + width: 50%; + padding: 0 0 0 10px; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg { + width: 100%; + height: 350px; + background-color: #fc6399; + position: relative; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta { + width: 100%; + background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%); + border-radius: 3px; + margin: auto; + bottom: 0; + position: absolute; + padding: 0 0 20px 0; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta span { + color: #f2f1ef; + text-align: center; + margin: 0 auto; + display: block; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta label { + font-size: 1.4em; + font-weight: 700; + color: #f2f1ef; + padding: 5px; + vertical-align: top; + display: inline-block; + word-wrap: break-word; + width: 100%; + text-align: center; + text-shadow: 2px 2px 0 #32302f; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options { + margin: 0 auto; + width: 275px; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options .meta-options { + border-radius: 3px; + margin: 5px; + display: inline-block; + text-align: center; + padding: 2px; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options .meta-options[data-active=false] { + width: 70px; + background: black; + color: #f2f1ef; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options .meta-options[data-active=true] { + width: 75px; + background: white; + color: black; +} +#post-index #post-index-wrapper #posts-list a.page-link p { + padding: 5px 10px 5px 10px; + font-size: 1.2em; + font-weight: 400; +} +#post-index #post-index-wrapper .paginate { + width: 260px; + display: block; + margin: 0 auto; +} +#post-index #post-index-wrapper .paginate a { + display: inline-block; + vertical-align: top; +} +#post-index #post-index-wrapper .paginate span.count { + text-align: center; + padding: 5px; + margin-top: -2px; + display: inline-block; + width: 190px; + font-size: 1.5em; + color: #f5ab35; +} + +#post-edit-index { + width: 100%; + overflow: hidden; +} +#post-edit-index #post-edit-index-wrapper { + width: 100%; +} +#post-edit-index #post-edit-index-wrapper #post-header { + background: #fc6399; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper { + max-width: 900px; + margin: 0 auto; + padding: 0.75rem; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper label { + color: #f2f1ef; + font-size: 0.8em; + font-family: "Lucida Console", Monaco, monospace; + font-weight: 600; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper span { + color: black; + font-size: 1.5em; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-title #post_title { + background: #fd95ba; + font-family: Helvetica, Arial, sans-serif; + width: 97.6%; + height: 80px; + font-size: 2em; + color: black; + padding: 5px; + margin: 0 0 5px 0; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-title #calendar-icon { + background: #192128; + border-radius: 3px 0 0 3px; + display: inline-block; + padding: 5.2px; + color: #b2cce5; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post_tags { + background: #fd95ba; + font-family: Helvetica, Arial, sans-serif; + width: 97.6%; + height: 80px; + color: black; + padding: 5px; + margin: 0 0 5px 0; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options { + display: inline-block; + vertical-align: top; + width: 100%; + padding: 0; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button:nth-child(1) { + border-radius: 3px 0 0 3px; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button:nth-child(3) { + border-radius: 0 3px 3px 0; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button { + width: 33.3%; + height: 39px; + -moz-transition: all 0.3s linear; + -webkit-transition: all 0.3s linear; + -o-transition: all 0.3s linear; + transition: all 0.3s linear; + margin: 0; + border-radius: 0; + display: inline-block; + vertical-align: top; + text-align: center; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button[data-active=false] { + background: black; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button[data-active=false] svg { + fill: #f2f1ef; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button[data-active=true] { + background: #f6b54d; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button[data-active=true] svg { + fill: black; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #featured-image-upload, #post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-image-upload { + display: none; +} +#post-edit-index #post-edit-index-wrapper #post-feature { + width: 100%; +} +#post-edit-index #post-edit-index-wrapper #post-feature #featured-image-drop { + display: flex; + align-items: center; + justify-content: center; + width: 100%; + min-height: 200px; + background: black; + color: #374857; + vertical-align: middle; + font-family: "Lucida Console", Monaco, monospace; +} +#post-edit-index #post-edit-index-wrapper #post-feature #featured-image-drop label { + cursor: pointer; +} +#post-edit-index #post-edit-index-wrapper #post-feature #featured-image-drop img { + width: 100%; + margin: 0; + padding: 0; +} +#post-edit-index #post-edit-index-wrapper #post-feature #featured-new-image-btn { + position: absolute; + margin: 20px; +} +#post-edit-index #post-edit-index-wrapper #post-feature #featured-new-image-btn #new-feature-upload { + padding-top: 4px; + background: #f2f1ef; +} +#post-edit-index #post-edit-index-wrapper #post-feature #featured-new-image-btn #new-feature-upload svg { + fill: #fc6399; +} +#post-edit-index #post-edit-index-wrapper #edit-post { + width: 100%; + max-width: 880px; + margin: 0 auto; +} +#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper { + max-width: 900px; + border-radius: 5px; + margin: 40px 0 40px 0; + overflow: hidden; +} +#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper pre { + margin: 0; +} +#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper pre code { + font-family: "Lucida Console", Monaco, monospace; + padding: 5px; + border-radius: 5px; + line-height: 1.6em; + font-size: 1.25em; + color: #fde3a7; + word-wrap: normal; + white-space: pre-wrap; + line-break: normal; + -webkit-line-break: normal; + -o-line-break: normal; + -moz-line-break: normal; + display: inline-block; + width: 100%; + max-width: 900px; + min-height: 200px; +} + +@media only screen and (max-width: 800px) { + #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-date { + width: 37.6%; + } +} +@media only screen and (max-width: 768px) { + #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-date { + width: 43.1%; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control { + max-width: 100%; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control button { + width: 9.91%; + } +} +@media only screen and (max-width: 640px) { + #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-date { + width: 42%; + } +} +@media only screen and (max-width: 480px) { + #post-index #post-index-wrapper #post-index-menu a { + font-size: 0.95em; + } + #post-index #post-index-wrapper #post-index-menu a label { + display: none; + visibility: hidden; + } + + #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-options { + margin: 5px 0 0 0; + width: 100%; + padding: 0; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-date { + width: 89.2%; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control button { + width: 9.91%; + } +} +@media only screen and (max-width: 320px) { + #post-index #post-index-wrapper #post-index-menu a { + font-size: 0.95em; + } + #post-index #post-index-wrapper #post-index-menu a label { + display: none; + visibility: hidden; + } + + #post-edit-index #post-edit-index-wrapper #post-header #post-title #post_title { + width: 96.4%; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-options { + margin: 5px 0 0 0; + width: 100%; + padding: 0; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-date { + width: 83.1%; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-meta #post_tags { + width: 96.4%; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control .content-editor-btn-icon svg.icons { + width: 20px; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control .post-sumbit-btn svg.icons { + width: 20px; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control button { + width: 10%; + } +} +.dp-modal { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: rgba(0, 0, 0, 0.75); + z-index: 2000; +} + +.dp { + position: relative; + background: #374857; + box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.25); + line-height: 1.4; + border-radius: 4px; + max-height: 400px; + z-index: 5000; + padding-top: 6px; + overflow: hidden; + -webkit-tap-highlight-color: transparent; +} + +.dp:before { + content: " "; + height: 6px; + position: absolute; + top: 0; + left: 0; + right: 0; + background: #fc6399; +} + +.dp-permanent .dp { + padding-top: 0; + border: 1px solid #EEE; + box-shadow: none; +} + +.dp-permanent .dp:before { + display: none; +} + +.dp-cal { + min-height: 300px; +} + +.dp-below { + position: absolute; + font-size: 0.8em; + width: 400px; + max-width: 90vw; +} + +.dp-permanent { + position: relative; + font-size: 0.8em; + width: 400px; + max-width: 100vw; +} + +.dp-permanent .dp { + z-index: 0; +} + +.dp-modal .dp { + position: absolute; + top: 50%; + left: 50%; + max-width: 600px; + width: calc(100% - 4em); + transform: translate(-50%, -50%); + animation: slide-up 0.3s forwards; +} + +.dp-months { + padding: 24px; +} + +.dp-years { + box-sizing: border-box; + max-height: 400px; + padding: 8px 0; + /* HACK for Chrome on Android */ + overflow: auto !important; +} + +.dp-cal-month, .dp-cal-year, .dp-day, .dp-month, .dp-year { + box-sizing: border-box; + text-align: center; + text-decoration: none; + position: relative; + color: #f2f1ef; + border-radius: 2px; + border: 0; + background: transparent; +} + +.dp-cal-header { + position: relative; + text-align: center; + padding-bottom: 16px; + background: #232e38; +} + +.dp-next, .dp-prev { + position: absolute; + width: 30px; + height: 30px; + overflow: hidden; + top: 14px; + color: black; + border-radius: 2px; + border: 0; + background: transparent; +} + +.dp-next:focus, .dp-prev:focus, .dp-next:hover, .dp-prev:hover { + outline: none; + color: inherit; +} + +.dp-prev { + left: 24px; +} + +.dp-next { + right: 24px; +} + +.dp-prev:before, .dp-next:before { + content: ""; + border: 2px solid; + width: 10px; + height: 10px; + display: inline-block; + transform: rotate(-45deg); + transition: border-color 0.2s; + margin: 9px 0 40px 4px; +} + +.dp-prev:before { + border-right: 0; + border-bottom: 0; +} + +.dp-next:before { + border-left: 0; + border-top: 0; + margin-left: 0; + margin-right: 4px; +} + +.dp-cal-month, .dp-cal-year { + display: inline-block; + font-size: 1.4em; + padding: 16px 8px 8px; + outline: none; +} + +.dp-cal-footer { + text-align: center; + background: #232e38; +} + +.dp-day-today:after { + content: ""; + height: 0; + width: 0; + border: 7px solid #fc6399; + border-bottom-color: transparent; + border-left-color: transparent; + position: absolute; + top: 0; + right: 0; +} + +.dp-close, .dp-clear, .dp-today { + box-sizing: border-box; + display: inline-block; + width: 33%; + padding: 8px; + text-decoration: none; + color: black; + border: 0; + background: transparent; +} + +.dp-permanent .dp-close, .dp-permanent .dp-clear { + display: none; +} + +.dp-close:active, .dp-clear:active, .dp-today:active, .dp-next:active, .dp-prev:active, .dp-cal-month:active, .dp-cal-year:active { + background: #fc6399; + color: #f2f1ef; +} + +@media screen and (min-device-width: 1200px) { + .dp-close:hover, .dp-close:focus, .dp-clear:hover, .dp-clear:focus, .dp-today:hover, .dp-today:focus, .dp-next:hover, .dp-next:focus, .dp-prev:hover, .dp-prev:focus, .dp-cal-month:focus, .dp-cal-month:hover, .dp-cal-year:hover, .dp-cal-year:focus { + background: #fc6399; + color: #f2f1ef; + } +} +.dp-col-header, .dp-day { + width: 14.28571429%; + display: inline-block; + padding: 8px; + text-align: center; +} + +.dp-col-header { + color: #AAA; + text-transform: uppercase; + font-weight: 300; + font-size: 0.8em; + padding: 8px 0; +} + +.dp-month { + width: 33%; + display: inline-block; + padding: 8px; +} + +.dp-year { + display: block; + padding: 8px 40px; + width: 100%; +} + +.dp-edge-day { + color: #AAA; +} + +.dp-day:hover, .dp-month:hover, .dp-year:hover, .dp-current:focus, .dp-current, .dp-day:focus, .dp-month:focus, .dp-year:focus { + outline: none; + background: black; + color: #f2f1ef; +} + +.dp-selected:hover, .dp-selected:focus, .dp-selected { + background: #fc6399; + color: black; +} + +.dp-day-disabled { + background: transparent; + color: #DDD; +} + +.dp-day-disabled:focus, .dp-day-disabled:hover { + background: #DDD; +} + +.dp-focuser { + position: absolute; + z-index: 0; + top: 50%; + left: 50%; +} + +@media (max-width: 480px), (max-height: 480px) { + .dp-modal .dp { + font-size: 0.9em; + width: auto; + width: 100%; + } + + .dp-day-of-week, .dp-day { + padding: 8px; + } +} +@keyframes slide-up { + 0% { + transform: translate(-50%, 100%); + } + 100% { + transform: translate(-50%, -50%); + } +} +#edit-control { + top: 1px; + border-radius: 3px; + width: 100%; + max-width: 880px; + margin-top: 30px; + z-index: 2000; +} +#edit-control button:nth-child(1) { + border-radius: 3px 0 0 3px; +} +#edit-control button:nth-child(10) { + border-radius: 0 3px 3px 0; +} +#edit-control button { + background: #b2cce5; + width: 10%; + height: 39px; + -moz-transition: all 0.3s linear; + -webkit-transition: all 0.3s linear; + -o-transition: all 0.3s linear; + transition: all 0.3s linear; + margin: 0; + border-radius: 0; + display: inline-block; + vertical-align: top; + text-align: center; +} +#edit-control button:hover { + background: #6699cb; +} +#edit-control #option-update { + padding: 5px 5px 1px 5px; + display: inline-block; + vertical-align: top; + text-align: center; +} +#edit-control .icon-hide { + display: none; + visibility: hidden; +} +#edit-control .submit-start { + background: #f2f1ef; +} +#edit-control .submit-start svg { + fill: #32cd32; +} +#edit-control .submit-cool { + background: #32cd32; +} +#edit-control .submit-cool svg { + fill: #f2f1ef; +} +#edit-control .submit-delete { + background: #F64747 !important; +} +#edit-control .submit-delete svg { + fill: #f2f1ef !important; +} +#edit-control #option-date { + height: 30px; + padding-top: 6px; +} +#edit-control #option-date svg { + margin: -13px 5px 0 0; + display: inline-block; + vertical-align: top; + fill: #f2f1ef; +} +#edit-control .content-editor-btn-icon { + padding: 5px 5px 1px 5px; + color: #374857; +} +#edit-control .content-editor-btn-icon svg { + fill: #374857; +} +#edit-control .content-editor-btn-text { + padding: 5px; + color: #374857; +} +#edit-control #option-bold { + font-weight: bold; + text-decoration: none; +} +#edit-control #option-italic { + font-weight: bold; + text-decoration: none; + font-style: italic; +} +#edit-control #option-strikethrough { + font-weight: bold; + text-decoration: line-through; + font-style: italic; +} + +.hljs { + display: block; + overflow-x: auto; + padding: 0.5em; + background: #2b3844; +} + +.hljs, .hljs-subst { + color: #ebdbb2; +} + +.hljs-deletion, .hljs-formula, .hljs-keyword .hljs-selector-tag { + color: #fde3a7; + font-style: italic; +} + +.hljs-link { + color: #fc6399; +} + +.hljs-built_in, .hljs-emphasis, .hljs-name, .hljs-quote, .hljs-strong, .hljs-title, .hljs-variable { + color: #ffa07a; +} + +.hljs-attr, .hljs-params, .hljs-template-tag, .hljs-type { + color: #89c4f4; +} + +.hljs-builtin-name, .hljs-doctag, .hljs-literal, .hljs-number { + color: #8f3f71; +} + +.hljs-code, .hljs-meta, .hljs-regexp, .hljs-selector-id, .hljs-template-variable { + color: #f5ab35; +} + +.hljs-addition, .hljs-meta-string, .hljs-section, .hljs-selector-attr, .hljs-selector-class, .hljs-string, .hljs-symbol { + color: #f6dd74; +} + +.hljs-attribute, .hljs-bullet, .hljs-class, .hljs-function, .hljs-function .hljs-keyword, .hljs-meta-keyword, .hljs-selector-pseudo, .hljs-tag { + color: #bac7d3; +} + +.hljs-comment { + color: #928374; +} + +.hljs-link_label, .hljs-literal, .hljs-number { + color: #d3869b; +} + +.hljs-comment, .hljs-emphasis { + font-style: italic; +} + +.hljs-section, .hljs-strong, .hljs-tag { + font-weight: normal; +} + +/*# sourceMappingURL=dash.css.map */ diff --git a/public/assets/scripts/dash.min.js b/public/assets/scripts/dash.min.js new file mode 100644 index 0000000..781de13 --- /dev/null +++ b/public/assets/scripts/dash.min.js @@ -0,0 +1,11 @@ +!function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:D,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:P,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=this;return new Promise((function(t,i){var l=new XMLHttpRequest;if(l.upload.onprogress=a.handleLoadProgress,l.open(n,e,!0),l.onload=function(){if(200==l.status){var e=JSON.parse(l.response);t(e)}else{var n=JSON.parse(l.response);i(n)}},"PUT"==n||n==x)switch(r){case P:l.setRequestHeader("Content-type","application/"+r),l.send(JSON.stringify(o));break;case _:l.send(o)}else l.send()}))}},{key:"handleLoadProgress",value:function(e){this.percentComplete=Math.ceil(e.loaded/e.total*100)}}]),t}(),O="POST",C="createNewPage",A="editPage",M="deletePage",N="json",L="x-www-form-urlencoded",R=function(){function t(){var n=this;e(this,t),this.percentComplete=0,this.token=null,this._request("/api/v1/status").then((function(e){e.type===s&&(n.token=e.token)}))}return n(t,[{key:"syncSettings",value:function(e){var t=this;return new Promise((function(n,r){t._request("/api/v1/settings/sync",v,O,N,e).then((function(e){n(e)})).catch((function(e){r(e)}))}))}},{key:"imageUpload",value:function(e,t){var n=this;return new Promise((function(r,o){var a="";switch(e){case"avatar-upload":a="/api/v1/settings/add-avatar";break;case"background-upload":a="/api/v1/settings/add-feature-background";break;default:a="/api/v1/page/add-entry-image"}for(var i=new FormData,l=0;l2&&void 0!==arguments[2]?arguments[2]:"GET",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:N,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=this;return new Promise((function(i,l){var u=new XMLHttpRequest;if(u.upload.onprogress=a.handleLoadProgress,u.open(n,e,!0),u.onload=function(){if(200==u.status){var e=JSON.parse(u.response);i(e)}else{var t=JSON.parse(u.response);l(t)}},"PUT"==n||n==O)switch(t!==g&&t!==w&&t!==v&&t!==m&&t!==E&&t!==y&&t!==b&&t!==I||u.setRequestHeader("fipamo-access-token",a.token),r){case N:u.setRequestHeader("Content-type","application/"+r),u.send(JSON.stringify(o));break;case L:u.send(o)}else u.send()}))}},{key:"handleLoadProgress",value:function(e){this.percentComplete=Math.ceil(e.loaded/e.total*100)}}]),t}(),H=function(){function t(){e(this,t)}return n(t,[{key:"imgLoad",value:function(e){return new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){200===r.status?t(r.response):n(new Error("Image didn't load successfully; error code:"+r.statusText))},r.onerror=function(){n(new Error("There was a network error."))},r.send()}))}},{key:"loadImage",value:function(e){var t=this;return new Promise((function(n,r){(new Image).crossOrigin="",t.imgLoad(e).then((function(e){var t=window.URL.createObjectURL(e);n(t)}),(function(e){r(e)}))}))}},{key:"formDataToJSON",value:function(e){var t={};return new FormData(e).forEach((function(e,n){t.hasOwnProperty(n)?(Array.isArray(t[n])||(t[n]=[t[n]]),t[n].push(e)):t[n]=e})),t}}]),t}(),F=function(){function t(){e(this,t)}return n(t,[{key:"cleanString",value:function(e){return e.replace(/(^\-+|[^a-zA-Z0-9\/_| -]+|\-+$)/g,"").toLowerCase().replace(/[\/_| -]+/g,"-")}},{key:"decodeHTML",value:function(e,t){var n=0,r=0,o=!1;void 0===t&&(t=2),e=e.toString().replace(/</g,"<").replace(/>/g,">");var a={ENT_NOQUOTES:0,ENT_HTML_QUOTE_SINGLE:1,ENT_HTML_QUOTE_DOUBLE:2,ENT_COMPAT:2,ENT_QUOTES:3,ENT_IGNORE:4};if(0===t&&(o=!0),"number"!=typeof t){for(t=[].concat(t),r=0;r]*>/g,"\n"),r.append("id",document.getElementById("post-edit-index").getAttribute("data-index")),r.append("uuid",document.getElementById("post-edit-index").getAttribute("data-uuid")),r.append("layout",document.getElementById("post-edit-index").getAttribute("data-layout")),r.append("current_title",document.getElementById("post-edit-index").getAttribute("data-slug")),r.append("content",a),r.append("title",document.getElementById("post_title").value),r.append("created",document.getElementById("post-date").getAttribute("data-raw")),r.append("slug",(new F).cleanString(document.getElementById("post_title").value)),r.append("tags",document.getElementById("post_tags").value),r.append("menu",document.getElementById("option-menu-pin").getAttribute("data-active")),r.append("featured",document.getElementById("option-feature").getAttribute("data-active")),r.append("published",document.getElementById("option-published").getAttribute("data-active")),null!=e||null!=e)e.type.match("image.*")?r.append("feature_image",e,e.name):n("Not an image file");else{var i=document.getElementById("featured-image").src;null!=i||null!=i?r.append("feature_image",i):r.append("feature_image",null)}t(r)}))}}]),t}(),q="editorDelete",U="editorUploadImage",Y="editorSave",j="editorUpdate";new function t(){e(this,t)};var W=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle","borderTopWidth","boxSizing","fontFamily","fontSize","fontWeight","height","letterSpacing","lineHeight","marginBottom","marginLeft","marginRight","marginTop","outlineWidth","overflow","overflowX","overflowY","paddingBottom","paddingLeft","paddingRight","paddingTop","textAlign","textOverflow","textTransform","whiteSpace","wordBreak","wordWrap"],z=function(e,t){var n=document.createElement("div");return function(t){var r=function(){var t={position:"absolute",left:-9999,top:0,zIndex:-2e3};return"TEXTAREA"===e.tagName&&W.push("width"),W.forEach((function(n){t[n]=getComputedStyle(e)[n]})),t}();Object.keys(r).forEach((function(e){n.style[e]=r[e]})),n.innerHTML=t,e.parentNode.insertBefore(n,e.nextSibling)}(t),{rect:function(){var e=n.ownerDocument.getElementById("caret-position-marker"),t={left:e.offsetLeft,top:e.offsetTop,height:e.offsetHeight};return n.parentNode.removeChild(n),t}}};function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.customPos,n=e.iframe,r=e.noShadowCaret;return n?{iframe:n,window:n.contentWindow,document:n.contentDocument||n.contentWindow.document,noShadowCaret:r,customPos:t}:{window:window,document:document,noShadowCaret:r,customPos:t}},V=function(e){return"object"===G(e)&&null!==e},J=function(e,t){var n=function(){return e.selectionStart},r=function(r){var o=function(e){return e.replace(/<|>|`|"|&/g,"?").replace(/\r\n|\r|\n/g,"
")};(t.customPos||0===t.customPos)&&(r=t.customPos);var a=void 0===r?n():r,i=e.value.slice(0,a),l=e.value.slice(a),u=''.concat(o(i),"");u+='|',u+=''.concat(o(l),"");var s=z(e,u).rect();return s.pos=n(),s};return{getPos:n,setPos:function(t){return e.setSelectionRange(t,t),e},getOffset:function(n){var o=function(e,t){var n=t&&t.window||window,r=t&&t.document||document,o=e.getBoundingClientRect(),a=r.documentElement,i=n.pageXOffset||a.scrollLeft,l=n.pageYOffset||a.scrollTop;return{top:o.top+l,left:o.left+i}}(e),a=r(n);return{top:o.top+a.top+t.document.body.scrollTop,left:o.left+a.left+t.document.body.scrollLeft,height:a.height}},getPosition:r}},$=function(e,t){return function(e){return!!(e.contentEditable?"true"===e.contentEditable:"true"===e.getAttribute("contenteditable"))}(e)?function(e,t){var n=function(){var n=r(),o={height:0,left:0,right:0};if(!n)return o;var a=t.customPos||0===t.customPos;if(n.endOffset-1>0&&n.endContainer!==e||a){var i=n.cloneRange(),l=a?t.customPos:n.endOffset;i.setStart(n.endContainer,l-1<0?0:l-1),i.setEnd(n.endContainer,l);var u=i.getBoundingClientRect();o={height:u.height,left:u.left+u.width,top:u.top},i.detach()}if((!o||o&&0===o.height)&&!t.noShadowCaret){var s=n.cloneRange(),c=t.document.createTextNode("|");s.insertNode(c),s.selectNode(c);var d=s.getBoundingClientRect();o={height:d.height,left:d.left,top:d.top},c.parentNode.removeChild(c),s.detach()}if(o){var f=t.document.documentElement;o.top+=t.window.pageYOffset-(f.clientTop||0),o.left+=t.window.pageXOffset-(f.clientLeft||0)}return o},r=function(){if(t.window.getSelection){var e=t.window.getSelection();return e.rangeCount>0?e.getRangeAt(0):null}},o=function(){var t=r(),n=t.cloneRange();n.selectNodeContents(e),n.setEnd(t.endContainer,t.endOffset);var o=n.toString().length;return n.detach(),o};return{getPos:o,setPos:function(n){var r=t.window.getSelection();if(r){var o=0,a=!1;!function e(i,l){for(var u=0;u=i){a=!0;var c=t.document.createRange();c.setStart(s,i-o),r.removeAllRanges(),r.addRange(c);break}o+=s.length}else e(n,s)}}(n,e)}return e},getPosition:function(){var r=n(),a=o(),i=e.getBoundingClientRect(),l=i.top+t.document.body.scrollTop,u=i.left+t.document.body.scrollLeft;return r.left-=u,r.top-=l,r.pos=a,r},getOffset:n,getRange:r}}(e,t):J(e,t)},Z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;V(t)&&(r=t,t=null);var o=Q(r),a=$(e,o);return t||0===t?a.setPos(t):a.getPosition()},K=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(a,t);var r=i(a);function a(t,n){var o;return e(this,a),(o=r.call(this)).textEditor=t,o.fixLimit=n,o.caretPos=null,o.url="",o.setInputs(),window.addEventListener("scroll",(function(){})),o.refresh(),o}return n(a,[{key:"setInputs",value:function(){for(var e=this,t=this,n=document.querySelectorAll(".editor-button"),r=0,o=n.length;r/g)>-1){var o=Z(e.textEditor).pos;t.refresh(),Z(e.textEditor,o)}}))}},{key:"refresh",value:function(){var e=this.textEditor.innerText;e=e.replace(new RegExp("\r?\n","g"),"
");var t=document.createElement("div");t.innerText=e,this.textEditor.innerHTML=t.innerText,this.textEditor.style.maxWidth="900px"}},{key:"notify",value:function(e,t){switch(e){case void 0:document.getElementById("submit-update").classList.add("icon-hide"),document.getElementById("submit-good").classList.remove("icon-hide"),document.getElementById("edit-update").classList.remove("submit-start"),document.getElementById("edit-update").classList.add("submit-cool"),setTimeout((function(){document.getElementById("submit-update").classList.remove("icon-hide"),document.getElementById("submit-good").classList.add("icon-hide"),document.getElementById("edit-update").classList.add("submit-start"),document.getElementById("edit-update").classList.remove("submit-cool")}),2e3);break;case void 0:break;case U:var n,r;Z(this.textEditor,this.caretPos),(n=window.getSelection()).rangeCount&&((r=n.getRangeAt(0)).deleteContents(),r.insertNode(document.createTextNode("![image alt text]("+t+" 'image title')"))),this.refresh()}}},{key:"handleEditorOption",value:function(e){var t,n,r;if(e.preventDefault(),(t=window.getSelection()).rangeCount)switch(n=t.getRangeAt(0),r=t.getRangeAt(0).toString(),n.deleteContents(),e.target.id){case"edit-bold":n.insertNode(document.createTextNode("**"+r+"**"));break;case"edit-italic":n.insertNode(document.createTextNode("*"+r+"*"));break;case"edit-strikethrough":n.insertNode(document.createTextNode(""+r+""));break;case"edit-header1":n.insertNode(document.createTextNode("# "+r));break;case"edit-header2":n.insertNode(document.createTextNode("## "+r));break;case"edit-header3":n.insertNode(document.createTextNode("### "+r));break;case"edit-image":this.caretPos=Z(this.textEditor).pos,this.emitEvent(U);break;case"submit-save":case"edit-save":this.emitEvent(Y);break;case"submit-update":case"edit-update":this.emitEvent(j);break;case"edit-link":n.insertNode(document.createTextNode("["+r+"](PASTE URL HERE)"));break;case"edit-delete":this.emitEvent(q)}this.refresh()}}]),a}(function(){function t(){e(this,t),this.listeners=new Map}return n(t,[{key:"addListener",value:function(e,t){this.listeners.has(e)||this.listeners.set(e,[]),this.listeners.get(e).push(t)}},{key:"removeListener",value:function(e,t){var n,r=this.listeners.get(e);return!!(r&&r.length&&(n=r.reduce((function(e,n,r){return"function"==typeof n&&n===t?e=r:e}),-1))>-1)&&(r.splice(n,1),this.listeners.set(e,r),!0)}},{key:"emitEvent",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r-1}function ie(e,t){return e.apply(null,t)}var le={arr:function(e){return Array.isArray(e)},obj:function(e){return ae(Object.prototype.toString.call(e),"Object")},pth:function(e){return le.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||le.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return le.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return le.hex(e)||le.rgb(e)||le.hsl(e)},key:function(e){return!ee.hasOwnProperty(e)&&!te.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function ue(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function se(e,t){var n=ue(e),r=oe(le.und(n[0])?1:n[0],.1,100),o=oe(le.und(n[1])?100:n[1],.1,100),a=oe(le.und(n[2])?10:n[2],.1,100),i=oe(le.und(n[3])?0:n[3],.1,100),l=Math.sqrt(o/r),u=a/(2*Math.sqrt(o*r)),s=u<1?l*Math.sqrt(1-u*u):0,c=u<1?(u*l-i)/s:-i+l;function d(e){var n=t?t*e/1e3:e;return n=u<1?Math.exp(-n*u*l)*(1*Math.cos(s*n)+c*Math.sin(s*n)):(1+c*n)*Math.exp(-n*l),0===e||1===e?e:1-n}return t?d:function(){var t=re.springs[e];if(t)return t;for(var n=1/6,r=0,o=0;;)if(1===d(r+=n)){if(++o>=16)break}else o=0;var a=r*n*1e3;return re.springs[e]=a,a}}function ce(e){return void 0===e&&(e=10),function(t){return Math.ceil(oe(t,1e-6,1)*e)*(1/e)}}var de,fe,he=function(){var e=.1;function t(e,t){return 1-3*t+3*e}function n(e,t){return 3*t-6*e}function r(e){return 3*e}function o(e,o,a){return((t(o,a)*e+n(o,a))*e+r(o))*e}function a(e,o,a){return 3*t(o,a)*e*e+2*n(o,a)*e+r(o)}return function(t,n,r,i){if(0<=t&&t<=1&&0<=r&&r<=1){var l=new Float32Array(11);if(t!==n||r!==i)for(var u=0;u<11;++u)l[u]=o(u*e,t,r);return function(e){return t===n&&r===i||0===e||1===e?e:o(s(e),n,i)}}function s(n){for(var i=0,u=1;10!==u&&l[u]<=n;++u)i+=e;--u;var s=i+(n-l[u])/(l[u+1]-l[u])*e,c=a(s,t,r);return c>=.001?function(e,t,n,r){for(var i=0;i<4;++i){var l=a(t,n,r);if(0===l)return t;t-=(o(t,n,r)-e)/l}return t}(n,s,t,r):0===c?s:function(e,t,n,r,a){var i,l,u=0;do{(i=o(l=t+(n-t)/2,r,a)-e)>0?n=l:t=l}while(Math.abs(i)>1e-7&&++u<10);return l}(n,i,i+e,t,r)}}}(),pe=(de={linear:function(){return function(e){return e}}},fe={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var n=oe(e,1,10),r=oe(t,.1,2);return function(e){return 0===e||1===e?e:-n*Math.pow(2,10*(e-1))*Math.sin((e-1-r/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/r)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach((function(e,t){fe[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(fe).forEach((function(e){var t=fe[e];de["easeIn"+e]=t,de["easeOut"+e]=function(e,n){return function(r){return 1-t(e,n)(1-r)}},de["easeInOut"+e]=function(e,n){return function(r){return r<.5?t(e,n)(2*r)/2:1-t(e,n)(-2*r+2)/2}},de["easeOutIn"+e]=function(e,n){return function(r){return r<.5?(1-t(e,n)(1-2*r))/2:(t(e,n)(2*r-1)+1)/2}}})),de);function ge(e,t){if(le.fnc(e))return e;var n=e.split("(")[0],r=pe[n],o=ue(e);switch(n){case"spring":return se(e,t);case"cubicBezier":return ie(he,o);case"steps":return ie(ce,o);default:return ie(r,o)}}function me(e){try{return document.querySelectorAll(e)}catch(e){return}}function ve(e,t){for(var n=e.length,r=arguments.length>=2?t:void 0,o=[],a=0;a1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0==i)t=n=r=l;else{var c=l<.5?l*(1+i):l+i-l*i,d=2*l-c;t=s(d,c,a+1/3),n=s(d,c,a),r=s(d,c,a-1/3)}return"rgba("+255*t+","+255*n+","+255*r+","+u+")"}(e):void 0;var t,n}function Te(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function xe(e,t){return le.fnc(e)?e(t.target,t.id,t.total):e}function De(e,t){return e.getAttribute(t)}function Pe(e,t,n){if(we([n,"deg","rad","turn"],Te(t)))return t;var r=re.CSS[t+n];if(!le.und(r))return r;var o=document.createElement(e.tagName),a=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;a.appendChild(o),o.style.position="absolute",o.style.width=100+n;var i=100/o.offsetWidth;a.removeChild(o);var l=i*parseFloat(t);return re.CSS[t+n]=l,l}function _e(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?Pe(e,o,n):o}}function Be(e,t){return le.dom(e)&&!le.inp(e)&&(!le.nil(De(e,t))||le.svg(e)&&e[t])?"attribute":le.dom(e)&&we(ne,t)?"transform":le.dom(e)&&"transform"!==t&&_e(e,t)?"css":null!=e[t]?"object":void 0}function Oe(e){if(le.dom(e)){for(var t,n=e.style.transform||"",r=/(\w+)\(([^)]*)\)/g,o=new Map;t=r.exec(n);)o.set(t[1],t[2]);return o}}function Ce(e,t,n,r){var o=ae(t,"scale")?1:0+function(e){return ae(e,"translate")||"perspective"===e?"px":ae(e,"rotate")||ae(e,"skew")?"deg":void 0}(t),a=Oe(e).get(t)||o;return n&&(n.transforms.list.set(t,a),n.transforms.last=t),r?Pe(e,a,r):a}function Ae(e,t,n,r){switch(Be(e,t)){case"transform":return Ce(e,t,r,n);case"css":return _e(e,t,n);case"attribute":return De(e,t);default:return e[t]||0}}function Me(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=Te(e)||0,o=parseFloat(t),a=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return o+a+r;case"-":return o-a+r;case"*":return o*a+r}}function Ne(e,t){if(le.col(e))return Se(e);if(/\s/g.test(e))return e;var n=Te(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function Le(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Re(e){for(var t,n=e.points,r=0,o=0;o0&&(r+=Le(t,a)),t=a}return r}function He(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*De(e,"r")}(e);case"rect":return function(e){return 2*De(e,"width")+2*De(e,"height")}(e);case"line":return function(e){return Le({x:De(e,"x1"),y:De(e,"y1")},{x:De(e,"x2"),y:De(e,"y2")})}(e);case"polyline":return Re(e);case"polygon":return function(e){var t=e.points;return Re(e)+Le(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function Fe(e,t){var n=t||{},r=n.el||function(e){for(var t=e.parentNode;le.svg(t)&&le.svg(t.parentNode);)t=t.parentNode;return t}(e),o=r.getBoundingClientRect(),a=De(r,"viewBox"),i=o.width,l=o.height,u=n.viewBox||(a?a.split(" "):[0,0,i,l]);return{el:r,viewBox:u,x:u[0]/1,y:u[1]/1,w:i,h:l,vW:u[2],vH:u[3]}}function Xe(e,t,n){function r(n){void 0===n&&(n=0);var r=t+n>=1?t+n:0;return e.el.getPointAtLength(r)}var o=Fe(e.el,e.svg),a=r(),i=r(-1),l=r(1),u=n?1:o.w/o.vW,s=n?1:o.h/o.vH;switch(e.property){case"x":return(a.x-o.x)*u;case"y":return(a.y-o.y)*s;case"angle":return 180*Math.atan2(l.y-i.y,l.x-i.x)/Math.PI}}function qe(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=Ne(le.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:le.str(e)||t?r.split(n):[]}}function Ue(e){return ve(e?ye(le.arr(e)?e.map(be):be(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function Ye(e){var t=Ue(e);return t.map((function(e,n){return{target:e,id:n,total:t.length,transforms:{list:Oe(e)}}}))}function je(e,t){var n=Ee(t);if(/^spring/.test(n.easing)&&(n.duration=se(n.easing)),le.arr(e)){var r=e.length;2===r&&!le.obj(e[0])?e={value:e}:le.fnc(t.duration)||(n.duration=t.duration/r)}var o=le.arr(e)?e:[e];return o.map((function(e,n){var r=le.obj(e)&&!le.pth(e)?e:{value:e};return le.und(r.delay)&&(r.delay=n?0:t.delay),le.und(r.endDelay)&&(r.endDelay=n===o.length-1?t.endDelay:0),r})).map((function(e){return ke(e,n)}))}function We(e,t){var n=[],r=t.keyframes;for(var o in r&&(t=ke(function(e){for(var t=ve(ye(e.map((function(e){return Object.keys(e)}))),(function(e){return le.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),n={},r=function(r){var o=t[r];n[o]=e.map((function(e){var t={};for(var n in e)le.key(n)?n==o&&(t.value=e[n]):t[n]=e[n];return t}))},o=0;o0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){tt.suspendWhenDocumentHidden&&(et()?e=cancelAnimationFrame(e):(Ze.forEach((function(e){return e._onDocumentVisibility()})),Ke()))})),function(){e||et()&&tt.suspendWhenDocumentHidden||!(Ze.length>0)||(e=requestAnimationFrame(t))}}();function et(){return!!document&&document.hidden}function tt(e){void 0===e&&(e={});var t,n=0,r=0,o=0,a=0,i=null;function l(e){var t=window.Promise&&new Promise((function(e){return i=e}));return e.finished=t,t}var u=function(e){var t=Ie(ee,e),n=Ie(te,e),r=We(n,e),o=Ye(e.targets),a=Ve(o,r),i=Je(a,n),l=$e;return $e++,ke(t,{id:l,children:[],animatables:o,animations:a,duration:i.duration,delay:i.delay,endDelay:i.endDelay})}(e);function s(){var e=u.direction;"alternate"!==e&&(u.direction="normal"!==e?"normal":"reverse"),u.reversed=!u.reversed,t.forEach((function(e){return e.reversed=u.reversed}))}function c(e){return u.reversed?u.duration-e:e}function d(){n=0,r=c(u.currentTime)*(1/tt.speed)}function f(e,t){t&&t.seek(e-t.timelineOffset)}function h(e){for(var t=0,n=u.animations,r=n.length;t2||(y=Math.round(y*h)/h)),p.push(y)}var E=f.length;if(E){m=f[0];for(var I=0;I0&&(u.began=!0,p("begin")),!u.loopBegan&&u.currentTime>0&&(u.loopBegan=!0,p("loopBegin")),v<=g&&0!==u.currentTime&&h(0),(v>=m&&u.currentTime!==d||!d)&&h(d),v>g&&v=d&&(r=0,u.remaining&&!0!==u.remaining&&u.remaining--,u.remaining?(n=o,p("loopComplete"),u.loopBegan=!1,"alternate"===u.direction&&s()):(u.paused=!0,u.completed||(u.completed=!0,p("loopComplete"),p("complete"),!u.passThrough&&"Promise"in window&&(i(),l(u)))))}return l(u),u.reset=function(){var e=u.direction;u.passThrough=!1,u.currentTime=0,u.progress=0,u.paused=!0,u.began=!1,u.loopBegan=!1,u.changeBegan=!1,u.completed=!1,u.changeCompleted=!1,u.reversePlayback=!1,u.reversed="reverse"===e,u.remaining=u.loop,t=u.children;for(var n=a=t.length;n--;)u.children[n].reset();(u.reversed&&!0!==u.loop||"alternate"===e&&1===u.loop)&&u.remaining++,h(u.reversed?u.duration:0)},u._onDocumentVisibility=d,u.set=function(e,t){return Qe(e,t),u},u.tick=function(e){o=e,n||(n=o),g((o+(r-n))*tt.speed)},u.seek=function(e){g(c(e))},u.pause=function(){u.paused=!0,d()},u.play=function(){u.paused&&(u.completed&&u.reset(),u.paused=!1,Ze.push(u),d(),Ke())},u.reverse=function(){s(),u.completed=!u.reversed,d()},u.restart=function(){u.reset(),u.play()},u.remove=function(e){rt(Ue(e),u)},u.reset(),u.autoplay&&u.play(),u}function nt(e,t){for(var n=t.length;n--;)we(e,t[n].animatable.target)&&t.splice(n,1)}function rt(e,t){var n=t.animations,r=t.children;nt(e,n);for(var o=r.length;o--;){var a=r[o],i=a.animations;nt(e,i),i.length||a.children.length||r.splice(o,1)}n.length||r.length||t.pause()}tt.version="3.2.1",tt.speed=1,tt.suspendWhenDocumentHidden=!0,tt.running=Ze,tt.remove=function(e){for(var t=Ue(e),n=Ze.length;n--;){rt(t,Ze[n])}},tt.get=Ae,tt.set=Qe,tt.convertPx=Pe,tt.path=function(e,t){var n=le.str(e)?me(e)[0]:e,r=t||100;return function(e){return{property:e,el:n,svg:Fe(n),totalLength:He(n)*(r/100)}}},tt.setDashoffset=function(e){var t=He(e);return e.setAttribute("stroke-dasharray",t),t},tt.stagger=function(e,t){void 0===t&&(t={});var n=t.direction||"normal",r=t.easing?ge(t.easing):null,o=t.grid,a=t.axis,i=t.from||0,l="first"===i,u="center"===i,s="last"===i,c=le.arr(e),d=c?parseFloat(e[0]):parseFloat(e),f=c?parseFloat(e[1]):0,h=Te(c?e[1]:e)||0,p=t.start||0+(c?d:0),g=[],m=0;return function(e,t,v){if(l&&(i=0),u&&(i=(v-1)/2),s&&(i=v-1),!g.length){for(var y=0;y-1&&Ze.splice(o,1);for(var l=0;l'].join(""),document.getElementById("featured-image-drop").innerHTML="",document.getElementById("featured-image-drop").appendChild(n)}}(n),o.readAsDataURL(n)}}}},{key:"handleImageUpload",value:function(e,t){var n=this;dt.alert("Uploading Image",null),this.admin.imageUpload(e,t).then((function(e){e.type==d&&n.editor.notify(U,e.url),dt.alert("Image Added to Entry",!0)})).catch((function(){dt.alert("Uh oh. Image not added",!1)}))}}]),t}();ft.uploadFiles=[];var ht=function(){function t(n){e(this,t),this.currentPage=null,this.choosePage(n),this.start()}return n(t,[{key:"start",value:function(){}},{key:"choosePage",value:function(e){switch(this.currentPage="",e){case"edit":case"add":this.currentPage=new ft}}}]),t}(),pt=function(){function t(){e(this,t)}return n(t,[{key:"getInfo",value:function(){var e,t,n=document.getElementById("settings-handle").value,r=document.getElementById("settings-email").value,o=document.getElementById("settings-url").value,a=document.getElementById("settings-title").value,i=document.getElementById("settings-desc").value,l=document.getElementById("render-toggle").getAttribute("data-render"),u=document.getElementById("background").src,s="",c=document.querySelectorAll(".theme-select"),d=document.getElementById("smtp-domain").value,f=document.getElementById("smtp-email").value,h=document.getElementById("smtp-pass").value,p=document.getElementById("mg-domain").value,g=document.getElementById("mg-key").value,m="",v=document.querySelectorAll(".mail-option");for(e=0,t=c.length;e + * @author owenm + * @license MIT + */ +function wt(e){return(wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function It(){return(It=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Tt(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var xt=Tt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Dt=Tt(/Edge/i),Pt=Tt(/firefox/i),_t=Tt(/safari/i)&&!Tt(/chrome/i)&&!Tt(/android/i),Bt=Tt(/iP(ad|od|hone)/i),Ot=Tt(/chrome/i)&&Tt(/android/i),Ct={capture:!1,passive:!1};function At(e,t,n){e.addEventListener(t,n,!xt&&Ct)}function Mt(e,t,n){e.removeEventListener(t,n,!xt&&Ct)}function Nt(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function Lt(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Rt(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Nt(e,t):Nt(e,t))||r&&e===n)return e;if(e===n)break}while(e=Lt(e))}return null}var Ht,Ft=/\s+/g;function Xt(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(Ft," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(Ft," ")}}function qt(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function Ut(e,t){var n="";if("string"==typeof e)n=e;else do{var r=qt(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function Yt(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,a=r.length;if(n)for(;o=a:o<=a))return r;if(r===jt())break;r=$t(r,!1)}return!1}function Gt(e,t,n){for(var r=0,o=0,a=e.children;o2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=St(n,["evt"]);ln.pluginEvent.bind(er)(e,t,kt({dragEl:cn,parentEl:dn,ghostEl:fn,rootEl:hn,nextEl:pn,lastDownEl:gn,cloneEl:mn,cloneHidden:vn,dragStarted:Bn,putSortable:kn,activeSortable:er.active,originalEvent:r,oldIndex:yn,oldDraggableIndex:wn,newIndex:bn,newDraggableIndex:En,hideGhostForTarget:Jn,unhideGhostForTarget:$n,cloneNowHidden:function(){vn=!0},cloneNowShown:function(){vn=!1},dispatchSortableEvent:function(e){sn({sortable:t,name:e,originalEvent:r})}},o))};function sn(e){!function(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,a=e.cloneEl,i=e.toEl,l=e.fromEl,u=e.oldIndex,s=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,h=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[nn]){var g,m=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||xt||Dt?(g=document.createEvent("Event")).initEvent(r,!0,!0):g=new CustomEvent(r,{bubbles:!0,cancelable:!0}),g.to=i||n,g.from=l||n,g.item=o||n,g.clone=a,g.oldIndex=u,g.newIndex=s,g.oldDraggableIndex=c,g.newDraggableIndex=d,g.originalEvent=f,g.pullMode=h?h.lastPutMode:void 0;var y=kt({},p,ln.getEventProperties(r,t));for(var b in y)g[b]=y[b];n&&n.dispatchEvent(g),m[v]&&m[v].call(t,g)}}(kt({putSortable:kn,cloneEl:mn,targetEl:cn,rootEl:hn,oldIndex:yn,oldDraggableIndex:wn,newIndex:bn,newDraggableIndex:En},e))}var cn,dn,fn,hn,pn,gn,mn,vn,yn,bn,wn,En,In,kn,Sn,Tn,xn,Dn,Pn,_n,Bn,On,Cn,An,Mn,Nn=!1,Ln=!1,Rn=[],Hn=!1,Fn=!1,Xn=[],qn=!1,Un=[],Yn="undefined"!=typeof document,jn=Bt,Wn=Dt||xt?"cssFloat":"float",zn=Yn&&!Ot&&!Bt&&"draggable"in document.createElement("div"),Gn=function(){if(Yn){if(xt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Qn=function(e,t){var n=qt(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=Gt(e,0,t),a=Gt(e,1,t),i=o&&qt(o),l=a&&qt(a),u=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Wt(o).width,s=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Wt(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&i.float&&"none"!==i.float){var c="left"===i.float?"left":"right";return!a||"both"!==l.clear&&l.clear!==c?"horizontal":"vertical"}return o&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||u>=r&&"none"===n[Wn]||a&&"none"===n[Wn]&&u+s>r)?"vertical":"horizontal"},Vn=function(e){function t(e,n){return function(r,o,a,i){var l=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,a,i),n)(r,o,a,i);var u=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===u||e.join&&e.indexOf(u)>-1}}var n={},r=e.group;r&&"object"==wt(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Jn=function(){!Gn&&fn&&qt(fn,"display","none")},$n=function(){!Gn&&fn&&qt(fn,"display","")};Yn&&document.addEventListener("click",(function(e){if(Ln)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ln=!1,!1}),!0);var Zn=function(e){if(cn){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,a=e.clientY,Rn.some((function(e){if(!Qt(e)){var t=Wt(e),n=e[nn].options.emptyInsertThreshold,r=o>=t.left-n&&o<=t.right+n,l=a>=t.top-n&&a<=t.bottom+n;return n&&r&&l?i=e:void 0}})),i);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[nn]._onDragOver(n)}}var o,a,i},Kn=function(e){cn&&cn.parentNode[nn]._isOutsideThisEl(e.target)};function er(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=It({},t),e[nn]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Qn(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==er.supportPointer&&"PointerEvent"in window&&!_t,emptyInsertThreshold:5};for(var r in ln.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in Vn(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&zn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?At(e,"pointerdown",this._onTapStart):(At(e,"mousedown",this._onTapStart),At(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(At(e,"dragover",this),At(e,"dragenter",this)),Rn.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),It(this,rn())}function tr(e,t,n,r,o,a,i,l){var u,s,c=e[nn],d=c.options.onMove;return!window.CustomEvent||xt||Dt?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=t,u.from=e,u.dragged=n,u.draggedRect=r,u.related=o||t,u.relatedRect=a||Wt(t),u.willInsertAfter=l,u.originalEvent=i,e.dispatchEvent(u),d&&(s=d.call(c,u,i)),s}function nr(e){e.draggable=!1}function rr(){qn=!1}function or(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function ar(e){return setTimeout(e,0)}function ir(e){return clearTimeout(e)}er.prototype={constructor:er,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(On=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,cn):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,a=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(i||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,s=r.filter;if(function(e){Un.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Un.push(r)}}(n),!cn&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||r.disabled)&&!u.isContentEditable&&(this.nativeDraggable||!_t||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=Rt(l,r.draggable,n,!1))&&l.animated||gn===l)){if(yn=Vt(l),wn=Vt(l,r.draggable),"function"==typeof s){if(s.call(this,e,l,this))return sn({sortable:t,rootEl:u,name:"filter",targetEl:l,toEl:n,fromEl:n}),un("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(s&&(s=s.split(",").some((function(r){if(r=Rt(u,r.trim(),n,!1))return sn({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),un("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!Rt(u,r.handle,n,!1)||this._prepareDragStart(e,i,l)}}},_prepareDragStart:function(e,t,n){var r,o=this,a=o.el,i=o.options,l=a.ownerDocument;if(n&&!cn&&n.parentNode===a){var u=Wt(n);if(hn=a,dn=(cn=n).parentNode,pn=cn.nextSibling,gn=n,In=i.group,er.dragged=cn,Sn={target:cn,clientX:(t||e).clientX,clientY:(t||e).clientY},Pn=Sn.clientX-u.left,_n=Sn.clientY-u.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,cn.style["will-change"]="all",r=function(){un("delayEnded",o,{evt:e}),er.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!Pt&&o.nativeDraggable&&(cn.draggable=!0),o._triggerDragStart(e,t),sn({sortable:o,name:"choose",originalEvent:e}),Xt(cn,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){Yt(cn,e.trim(),nr)})),At(l,"dragover",Zn),At(l,"mousemove",Zn),At(l,"touchmove",Zn),At(l,"mouseup",o._onDrop),At(l,"touchend",o._onDrop),At(l,"touchcancel",o._onDrop),Pt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,cn.draggable=!0),un("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(Dt||xt))r();else{if(er.eventCanceled)return void this._onDrop();At(l,"mouseup",o._disableDelayedDrag),At(l,"touchend",o._disableDelayedDrag),At(l,"touchcancel",o._disableDelayedDrag),At(l,"mousemove",o._delayedDragTouchMoveHandler),At(l,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&At(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,i.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){cn&&nr(cn),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Mt(e,"mouseup",this._disableDelayedDrag),Mt(e,"touchend",this._disableDelayedDrag),Mt(e,"touchcancel",this._disableDelayedDrag),Mt(e,"mousemove",this._delayedDragTouchMoveHandler),Mt(e,"touchmove",this._delayedDragTouchMoveHandler),Mt(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?At(document,"pointermove",this._onTouchMove):At(document,t?"touchmove":"mousemove",this._onTouchMove):(At(cn,"dragend",this),At(hn,"dragstart",this._onDragStart));try{document.selection?ar((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Nn=!1,hn&&cn){un("dragStarted",this,{evt:t}),this.nativeDraggable&&At(document,"dragover",Kn);var n=this.options;!e&&Xt(cn,n.dragClass,!1),Xt(cn,n.ghostClass,!0),er.active=this,e&&this._appendGhost(),sn({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Tn){this._lastX=Tn.clientX,this._lastY=Tn.clientY,Jn();for(var e=document.elementFromPoint(Tn.clientX,Tn.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Tn.clientX,Tn.clientY))!==t;)t=e;if(cn.parentNode[nn]._isOutsideThisEl(e),t)do{if(t[nn]){if(t[nn]._onDragOver({clientX:Tn.clientX,clientY:Tn.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);$n()}},_onTouchMove:function(e){if(Sn){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,a=fn&&Ut(fn,!0),i=fn&&a&&a.a,l=fn&&a&&a.d,u=jn&&Mn&&Jt(Mn),s=(o.clientX-Sn.clientX+r.x)/(i||1)+(u?u[0]-Xn[0]:0)/(i||1),c=(o.clientY-Sn.clientY+r.y)/(l||1)+(u?u[1]-Xn[1]:0)/(l||1);if(!er.active&&!Nn){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}(e,o,this)&&!g.animated){if(g===cn)return B(!1);if(g&&a===e.target&&(i=g),i&&(n=Wt(i)),!1!==tr(hn,a,cn,t,i,n,e,!!i))return _(),a.appendChild(cn),dn=a,O(),B(!0)}else if(i.parentNode===a){n=Wt(i);var m,v,y,b=cn.parentNode!==a,w=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,a=n?e.width:e.height,i=n?t.left:t.top,l=n?t.right:t.bottom,u=n?t.width:t.height;return r===i||o===l||r+a/2===i+u/2}(cn.animated&&cn.toRect||t,i.animated&&i.toRect||n,o),E=o?"top":"left",I=zt(i,"top","top")||zt(cn,"top","top"),k=I?I.scrollTop:void 0;if(On!==i&&(v=n[E],Hn=!1,Fn=!w&&l.invertSwap||b),0!==(m=function(e,t,n,r,o,a,i,l){var u=r?e.clientY:e.clientX,s=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!i)if(l&&Anc+s*a/2:ud-An)return-Cn}else if(u>c+s*(1-o)/2&&ud-s*a/2))return u>c+s/2?1:-1;return 0}(e,i,n,o,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Fn,On===i))){var S=Vt(cn);do{S-=m,y=dn.children[S]}while(y&&("none"===qt(y,"display")||y===fn))}if(0===m||y===i)return B(!1);On=i,Cn=m;var T=i.nextElementSibling,x=!1,D=tr(hn,a,cn,t,i,n,e,x=1===m);if(!1!==D)return 1!==D&&-1!==D||(x=1===D),qn=!0,setTimeout(rr,30),_(),x&&!T?a.appendChild(cn):i.parentNode.insertBefore(cn,x?T:i),I&&en(I,0,k-I.scrollTop),dn=cn.parentNode,void 0===v||Fn||(An=Math.abs(v-Wt(i)[E])),O(),B(!0)}if(a.contains(cn))return B(!1)}return!1}function P(l,u){un(l,h,kt({evt:e,isOwner:c,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:i,completed:B,onMove:function(n,r){return tr(hn,a,cn,t,n,Wt(n),e,r)},changed:O},u))}function _(){P("dragOverAnimationCapture"),h.captureAnimationState(),h!==f&&f.captureAnimationState()}function B(t){return P("dragOverCompleted",{insertion:t}),t&&(c?s._hideClone():s._showClone(h),h!==f&&(Xt(cn,kn?kn.options.ghostClass:s.options.ghostClass,!1),Xt(cn,l.ghostClass,!0)),kn!==h&&h!==er.active?kn=h:h===er.active&&kn&&(kn=null),f===h&&(h._ignoreWhileAnimating=i),h.animateAll((function(){P("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(i===cn&&!cn.animated||i===a&&!i.animated)&&(On=null),l.dragoverBubble||e.rootEl||i===document||(cn.parentNode[nn]._isOutsideThisEl(e.target),!t&&Zn(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function O(){bn=Vt(cn),En=Vt(cn,l.draggable),sn({sortable:h,name:"change",toEl:a,newIndex:bn,newDraggableIndex:En,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Mt(document,"mousemove",this._onTouchMove),Mt(document,"touchmove",this._onTouchMove),Mt(document,"pointermove",this._onTouchMove),Mt(document,"dragover",Zn),Mt(document,"mousemove",Zn),Mt(document,"touchmove",Zn)},_offUpEvents:function(){var e=this.el.ownerDocument;Mt(e,"mouseup",this._onDrop),Mt(e,"touchend",this._onDrop),Mt(e,"pointerup",this._onDrop),Mt(e,"touchcancel",this._onDrop),Mt(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;bn=Vt(cn),En=Vt(cn,n.draggable),un("drop",this,{evt:e}),dn=cn&&cn.parentNode,bn=Vt(cn),En=Vt(cn,n.draggable),er.eventCanceled||(Nn=!1,Fn=!1,Hn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ir(this.cloneId),ir(this._dragStartId),this.nativeDraggable&&(Mt(document,"drop",this),Mt(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_t&&qt(document.body,"user-select",""),qt(cn,"transform",""),e&&(Bn&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),fn&&fn.parentNode&&fn.parentNode.removeChild(fn),(hn===dn||kn&&"clone"!==kn.lastPutMode)&&mn&&mn.parentNode&&mn.parentNode.removeChild(mn),cn&&(this.nativeDraggable&&Mt(cn,"dragend",this),nr(cn),cn.style["will-change"]="",Bn&&!Nn&&Xt(cn,kn?kn.options.ghostClass:this.options.ghostClass,!1),Xt(cn,this.options.chosenClass,!1),sn({sortable:this,name:"unchoose",toEl:dn,newIndex:null,newDraggableIndex:null,originalEvent:e}),hn!==dn?(bn>=0&&(sn({rootEl:dn,name:"add",toEl:dn,fromEl:hn,originalEvent:e}),sn({sortable:this,name:"remove",toEl:dn,originalEvent:e}),sn({rootEl:dn,name:"sort",toEl:dn,fromEl:hn,originalEvent:e}),sn({sortable:this,name:"sort",toEl:dn,originalEvent:e})),kn&&kn.save()):bn!==yn&&bn>=0&&(sn({sortable:this,name:"update",toEl:dn,originalEvent:e}),sn({sortable:this,name:"sort",toEl:dn,originalEvent:e})),er.active&&(null!=bn&&-1!==bn||(bn=yn,En=wn),sn({sortable:this,name:"end",toEl:dn,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){un("nulling",this),hn=cn=dn=fn=pn=mn=gn=vn=Sn=Tn=Bn=bn=En=yn=wn=On=Cn=kn=In=er.dragged=er.ghost=er.clone=er.active=null,Un.forEach((function(e){e.checked=!0})),Un.length=xn=Dn=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":cn&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,a=this.options;r numeric require +// +// anything defined in a previous bundle is accessed via the +// orig method which is the require for previous bundles +parcelRequire = (function (modules, cache, entry, globalName) { + // Save the require from previous bundle to this closure if any + var previousRequire = typeof parcelRequire === 'function' && parcelRequire; + var nodeRequire = typeof require === 'function' && require; + + function newRequire(name, jumped) { + if (!cache[name]) { + if (!modules[name]) { + // if we cannot find the module within our internal map or + // cache jump to the current global require ie. the last bundle + // that was added to the page. + var currentRequire = typeof parcelRequire === 'function' && parcelRequire; + if (!jumped && currentRequire) { + return currentRequire(name, true); + } + + // If there are other bundles on this page the require from the + // previous one is saved to 'previousRequire'. Repeat this as + // many times as there are bundles until the module is found or + // we exhaust the require chain. + if (previousRequire) { + return previousRequire(name, true); + } + + // Try the node require function if it exists. + if (nodeRequire && typeof name === 'string') { + return nodeRequire(name); + } + + var err = new Error('Cannot find module \'' + name + '\''); + err.code = 'MODULE_NOT_FOUND'; + throw err; + } + + localRequire.resolve = resolve; + localRequire.cache = {}; + + var module = cache[name] = new newRequire.Module(name); + + modules[name][0].call(module.exports, localRequire, module, module.exports, this); + } + + return cache[name].exports; + + function localRequire(x){ + return newRequire(localRequire.resolve(x)); + } + + function resolve(x){ + return modules[name][1][x] || x; + } + } + + function Module(moduleName) { + this.id = moduleName; + this.bundle = newRequire; + this.exports = {}; + } + + newRequire.isParcelRequire = true; + newRequire.Module = Module; + newRequire.modules = modules; + newRequire.cache = cache; + newRequire.parent = previousRequire; + newRequire.register = function (id, exports) { + modules[id] = [function (require, module) { + module.exports = exports; + }, {}]; + }; + + var error; + for (var i = 0; i < entry.length; i++) { + try { + newRequire(entry[i]); + } catch (e) { + // Save first error but execute all entries + if (!error) { + error = e; + } + } + } + + if (entry.length) { + // Expose entry point to Node, AMD or browser globals + // Based on https://github.com/ForbesLindesay/umd/blob/master/template.js + var mainExports = newRequire(entry[entry.length - 1]); + + // CommonJS + if (typeof exports === "object" && typeof module !== "undefined") { + module.exports = mainExports; + + // RequireJS + } else if (typeof define === "function" && define.amd) { + define(function () { + return mainExports; + }); + + // + {% endblock %} \ No newline at end of file diff --git a/composer.json b/composer.json index 2147fb3..3c7cf3b 100644 --- a/composer.json +++ b/composer.json @@ -8,6 +8,7 @@ "lodash-php/lodash-php": "^0.0.7", "rbdwllr/reallysimplejwt": "^4.0", "fightbulc/moment": "^1.33", - "tgalopin/html-sanitizer": "^1.4" + "tgalopin/html-sanitizer": "^1.4", + "phpmailer/phpmailer": "^6.4" } } diff --git a/composer.lock b/composer.lock index 6e0098f..34e2655 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f829b5451dc7ceba4625d240a185b162", + "content-hash": "c511eb33107b993cbfe6dfd51465be02", "packages": [ { "name": "erusev/parsedown", @@ -451,6 +451,82 @@ }, "time": "2018-02-13T20:26:39+00:00" }, + { + "name": "phpmailer/phpmailer", + "version": "v6.4.1", + "source": { + "type": "git", + "url": "https://github.com/PHPMailer/PHPMailer.git", + "reference": "9256f12d8fb0cd0500f93b19e18c356906cbed3d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/9256f12d8fb0cd0500f93b19e18c356906cbed3d", + "reference": "9256f12d8fb0cd0500f93b19e18c356906cbed3d", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "php": ">=5.5.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "doctrine/annotations": "^1.2", + "phpcompatibility/php-compatibility": "^9.3.5", + "roave/security-advisories": "dev-latest", + "squizlabs/php_codesniffer": "^3.5.6", + "yoast/phpunit-polyfills": "^0.2.0" + }, + "suggest": { + "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", + "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", + "league/oauth2-google": "Needed for Google XOAUTH2 authentication", + "psr/log": "For optional PSR-3 debug logging", + "stevenmaguire/oauth2-microsoft": "Needed for Microsoft XOAUTH2 authentication", + "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)" + }, + "type": "library", + "autoload": { + "psr-4": { + "PHPMailer\\PHPMailer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-only" + ], + "authors": [ + { + "name": "Marcus Bointon", + "email": "phpmailer@synchromedia.co.uk" + }, + { + "name": "Jim Jagielski", + "email": "jimjag@gmail.com" + }, + { + "name": "Andy Prevost", + "email": "codeworxtech@users.sourceforge.net" + }, + { + "name": "Brent R. Matzelle" + } + ], + "description": "PHPMailer is a full-featured email creation and transfer class for PHP", + "support": { + "issues": "https://github.com/PHPMailer/PHPMailer/issues", + "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.4.1" + }, + "funding": [ + { + "url": "https://github.com/Synchro", + "type": "github" + } + ], + "time": "2021-04-29T12:25:04+00:00" + }, { "name": "psr/container", "version": "1.1.1", diff --git a/public/assets/css/dash.css b/public/assets/css/dash.css index 14f31ec..0d34d82 100644 --- a/public/assets/css/dash.css +++ b/public/assets/css/dash.css @@ -2154,18 +2154,19 @@ svg.icons { max-width: 900px; margin: 0 auto; } -#dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-form { +#dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-form, #dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-reset { width: 300px; padding: 0.75em; background: #374857; border-radius: 3px; + color: #f2f1ef; } -#dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-form input { +#dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-form input, #dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-reset input { width: 290px; margin: 0 0 10px 0; height: 30px; } -#dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-form button { +#dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-form button, #dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-reset button { width: 300px; } #dash-index-content #dash-index #dash-index-wrapper #dash-menu { diff --git a/public/assets/scripts/dash.min.js b/public/assets/scripts/dash.min.js index 08a8360..2b81808 100644 --- a/public/assets/scripts/dash.min.js +++ b/public/assets/scripts/dash.min.js @@ -1,11 +1,11 @@ -!function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:D,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:P,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=this;return new Promise((function(t,a){var l=new XMLHttpRequest;if(l.upload.onprogress=i.handleLoadProgress,l.open(n,e,!0),l.onload=function(){if(200==l.status){var e=JSON.parse(l.response);t(e)}else{var n=JSON.parse(l.response);a(n)}},"PUT"==n||n==x)switch(r){case P:l.setRequestHeader("Content-type","application/"+r),l.send(JSON.stringify(o));break;case _:l.send(o)}else l.send()}))}},{key:"handleLoadProgress",value:function(e){this.percentComplete=Math.ceil(e.loaded/e.total*100)}}]),t}(),O="POST",C="createNewPage",A="editPage",M="deletePage",N="json",L="x-www-form-urlencoded",R=function(){function t(){var n=this;e(this,t),this.percentComplete=0,this.token=null,this._request("/api/v1/status").then((function(e){e.type===u&&(n.token=e.token)}))}return n(t,[{key:"syncSettings",value:function(e){var t=this;return new Promise((function(n,r){t._request("/api/v1/settings/sync",v,O,N,e).then((function(e){n(e)})).catch((function(e){r(e)}))}))}},{key:"imageUpload",value:function(e,t){var n=this;return new Promise((function(r,o){var i="";switch(e){case"avatar-upload":i="/api/v1/settings/add-avatar";break;case"background-upload":i="/api/v1/settings/add-feature-background";break;default:i="/api/v1/page/add-entry-image"}for(var a=new FormData,l=0;l2&&void 0!==arguments[2]?arguments[2]:"GET",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:N,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=this;return new Promise((function(a,l){var s=new XMLHttpRequest;if(s.upload.onprogress=i.handleLoadProgress,s.open(n,e,!0),s.onload=function(){if(200==s.status){var e=JSON.parse(s.response);a(e)}else{var t=JSON.parse(s.response);l(t)}},"PUT"==n||n==O)switch(t!==g&&t!==w&&t!==v&&t!==m&&t!==E&&t!==y&&t!==b&&t!==I||s.setRequestHeader("fipamo-access-token",i.token),r){case N:s.setRequestHeader("Content-type","application/"+r),s.send(JSON.stringify(o));break;case L:s.send(o)}else s.send()}))}},{key:"handleLoadProgress",value:function(e){this.percentComplete=Math.ceil(e.loaded/e.total*100)}}]),t}(),H=function(){function t(){e(this,t)}return n(t,[{key:"imgLoad",value:function(e){return new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){200===r.status?t(r.response):n(new Error("Image didn't load successfully; error code:"+r.statusText))},r.onerror=function(){n(new Error("There was a network error."))},r.send()}))}},{key:"loadImage",value:function(e){var t=this;return new Promise((function(n,r){(new Image).crossOrigin="",t.imgLoad(e).then((function(e){var t=window.URL.createObjectURL(e);n(t)}),(function(e){r(e)}))}))}},{key:"formDataToJSON",value:function(e){var t={};return new FormData(e).forEach((function(e,n){t.hasOwnProperty(n)?(Array.isArray(t[n])||(t[n]=[t[n]]),t[n].push(e)):t[n]=e})),t}}]),t}(),F=function(){function t(){e(this,t)}return n(t,[{key:"cleanString",value:function(e){return e.replace(/(^\-+|[^a-zA-Z0-9\/_| -]+|\-+$)/g,"").toLowerCase().replace(/[\/_| -]+/g,"-")}},{key:"decodeHTML",value:function(e,t){var n=0,r=0,o=!1;void 0===t&&(t=2),e=e.toString().replace(/</g,"<").replace(/>/g,">");var i={ENT_NOQUOTES:0,ENT_HTML_QUOTE_SINGLE:1,ENT_HTML_QUOTE_DOUBLE:2,ENT_COMPAT:2,ENT_QUOTES:3,ENT_IGNORE:4};if(0===t&&(o=!0),"number"!=typeof t){for(t=[].concat(t),r=0;r]*>/g,"\n"),r.append("id",document.getElementById("post-edit-index").getAttribute("data-index")),r.append("uuid",document.getElementById("post-edit-index").getAttribute("data-uuid")),r.append("layout",document.getElementById("post-edit-index").getAttribute("data-layout")),r.append("current_title",document.getElementById("post-edit-index").getAttribute("data-slug")),r.append("content",i),r.append("title",document.getElementById("post_title").value),r.append("created",document.getElementById("post-date").getAttribute("data-raw")),r.append("slug",(new F).cleanString(document.getElementById("post_title").value)),r.append("tags",document.getElementById("post_tags").value),r.append("menu",document.getElementById("option-menu-pin").getAttribute("data-active")),r.append("featured",document.getElementById("option-feature").getAttribute("data-active")),r.append("published",document.getElementById("option-published").getAttribute("data-active")),null!=e||null!=e)e.type.match("image.*")?r.append("feature_image",e,e.name):n("Not an image file");else{var a=document.getElementById("featured-image").src;null!=a||null!=a?r.append("feature_image",a):r.append("feature_image",null)}t(r)}))}}]),t}(),q="editorDelete",U="editorUploadImage",Y="editorSave",j="editorUpdate";new function t(){e(this,t)};var W=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle","borderTopWidth","boxSizing","fontFamily","fontSize","fontWeight","height","letterSpacing","lineHeight","marginBottom","marginLeft","marginRight","marginTop","outlineWidth","overflow","overflowX","overflowY","paddingBottom","paddingLeft","paddingRight","paddingTop","textAlign","textOverflow","textTransform","whiteSpace","wordBreak","wordWrap"],z=function(e,t){var n=document.createElement("div");return function(t){var r=function(){var t={position:"absolute",left:-9999,top:0,zIndex:-2e3};return"TEXTAREA"===e.tagName&&W.push("width"),W.forEach((function(n){t[n]=getComputedStyle(e)[n]})),t}();Object.keys(r).forEach((function(e){n.style[e]=r[e]})),n.innerHTML=t,e.parentNode.insertBefore(n,e.nextSibling)}(t),{rect:function(){var e=n.ownerDocument.getElementById("caret-position-marker"),t={left:e.offsetLeft,top:e.offsetTop,height:e.offsetHeight};return n.parentNode.removeChild(n),t}}};function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.customPos,n=e.iframe,r=e.noShadowCaret;return n?{iframe:n,window:n.contentWindow,document:n.contentDocument||n.contentWindow.document,noShadowCaret:r,customPos:t}:{window:window,document:document,noShadowCaret:r,customPos:t}},V=function(e){return"object"===G(e)&&null!==e},J=function(e,t){var n=function(){return e.selectionStart},r=function(r){var o=function(e){return e.replace(/<|>|`|"|&/g,"?").replace(/\r\n|\r|\n/g,"
")};(t.customPos||0===t.customPos)&&(r=t.customPos);var i=void 0===r?n():r,a=e.value.slice(0,i),l=e.value.slice(i),s=''.concat(o(a),"");s+='|',s+=''.concat(o(l),"");var u=z(e,s).rect();return u.pos=n(),u};return{getPos:n,setPos:function(t){return e.setSelectionRange(t,t),e},getOffset:function(n){var o=function(e,t){var n=t&&t.window||window,r=t&&t.document||document,o=e.getBoundingClientRect(),i=r.documentElement,a=n.pageXOffset||i.scrollLeft,l=n.pageYOffset||i.scrollTop;return{top:o.top+l,left:o.left+a}}(e),i=r(n);return{top:o.top+i.top+t.document.body.scrollTop,left:o.left+i.left+t.document.body.scrollLeft,height:i.height}},getPosition:r}},$=function(e,t){return function(e){return!!(e.contentEditable?"true"===e.contentEditable:"true"===e.getAttribute("contenteditable"))}(e)?function(e,t){var n=function(){var n=r(),o={height:0,left:0,right:0};if(!n)return o;var i=t.customPos||0===t.customPos;if(n.endOffset-1>0&&n.endContainer!==e||i){var a=n.cloneRange(),l=i?t.customPos:n.endOffset;a.setStart(n.endContainer,l-1<0?0:l-1),a.setEnd(n.endContainer,l);var s=a.getBoundingClientRect();o={height:s.height,left:s.left+s.width,top:s.top},a.detach()}if((!o||o&&0===o.height)&&!t.noShadowCaret){var u=n.cloneRange(),c=t.document.createTextNode("|");u.insertNode(c),u.selectNode(c);var d=u.getBoundingClientRect();o={height:d.height,left:d.left,top:d.top},c.parentNode.removeChild(c),u.detach()}if(o){var f=t.document.documentElement;o.top+=t.window.pageYOffset-(f.clientTop||0),o.left+=t.window.pageXOffset-(f.clientLeft||0)}return o},r=function(){if(t.window.getSelection){var e=t.window.getSelection();return e.rangeCount>0?e.getRangeAt(0):null}},o=function(){var t=r(),n=t.cloneRange();n.selectNodeContents(e),n.setEnd(t.endContainer,t.endOffset);var o=n.toString().length;return n.detach(),o};return{getPos:o,setPos:function(n){var r=t.window.getSelection();if(r){var o=0,i=!1;!function e(a,l){for(var s=0;s=a){i=!0;var c=t.document.createRange();c.setStart(u,a-o),r.removeAllRanges(),r.addRange(c);break}o+=u.length}else e(n,u)}}(n,e)}return e},getPosition:function(){var r=n(),i=o(),a=e.getBoundingClientRect(),l=a.top+t.document.body.scrollTop,s=a.left+t.document.body.scrollLeft;return r.left-=s,r.top-=l,r.pos=i,r},getOffset:n,getRange:r}}(e,t):J(e,t)},Z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;V(t)&&(r=t,t=null);var o=Q(r),i=$(e,o);return t||0===t?i.setPos(t):i.getPosition()},K=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(i,t);var r=a(i);function i(t,n){var o;return e(this,i),(o=r.call(this)).textEditor=t,o.fixLimit=n,o.caretPos=null,o.url="",o.setInputs(),window.addEventListener("scroll",(function(){})),o.refresh(),o}return n(i,[{key:"setInputs",value:function(){for(var e=this,t=this,n=document.querySelectorAll(".editor-button"),r=0,o=n.length;r/g)>-1){var o=Z(e.textEditor).pos;t.refresh(),Z(e.textEditor,o)}}))}},{key:"refresh",value:function(){var e=this.textEditor.innerText;e=e.replace(new RegExp("\r?\n","g"),"
");var t=document.createElement("div");t.innerText=e,this.textEditor.innerHTML=t.innerText,this.textEditor.style.maxWidth="900px"}},{key:"notify",value:function(e,t){switch(e){case void 0:document.getElementById("submit-update").classList.add("icon-hide"),document.getElementById("submit-good").classList.remove("icon-hide"),document.getElementById("edit-update").classList.remove("submit-start"),document.getElementById("edit-update").classList.add("submit-cool"),setTimeout((function(){document.getElementById("submit-update").classList.remove("icon-hide"),document.getElementById("submit-good").classList.add("icon-hide"),document.getElementById("edit-update").classList.add("submit-start"),document.getElementById("edit-update").classList.remove("submit-cool")}),2e3);break;case void 0:break;case U:var n,r;Z(this.textEditor,this.caretPos),(n=window.getSelection()).rangeCount&&((r=n.getRangeAt(0)).deleteContents(),r.insertNode(document.createTextNode("![image alt text]("+t+" 'image title')"))),this.refresh()}}},{key:"handleEditorOption",value:function(e){var t,n,r;if(e.preventDefault(),(t=window.getSelection()).rangeCount)switch(n=t.getRangeAt(0),r=t.getRangeAt(0).toString(),n.deleteContents(),e.target.id){case"edit-bold":n.insertNode(document.createTextNode("**"+r+"**"));break;case"edit-italic":n.insertNode(document.createTextNode("*"+r+"*"));break;case"edit-strikethrough":n.insertNode(document.createTextNode(""+r+""));break;case"edit-header1":n.insertNode(document.createTextNode("# "+r));break;case"edit-header2":n.insertNode(document.createTextNode("## "+r));break;case"edit-header3":n.insertNode(document.createTextNode("### "+r));break;case"edit-image":this.caretPos=Z(this.textEditor).pos,this.emitEvent(U);break;case"submit-save":case"edit-save":this.emitEvent(Y);break;case"submit-update":case"edit-update":this.emitEvent(j);break;case"edit-link":n.insertNode(document.createTextNode("["+r+"](PASTE URL HERE)"));break;case"edit-delete":this.emitEvent(q)}this.refresh()}}]),i}(function(){function t(){e(this,t),this.listeners=new Map}return n(t,[{key:"addListener",value:function(e,t){this.listeners.has(e)||this.listeners.set(e,[]),this.listeners.get(e).push(t)}},{key:"removeListener",value:function(e,t){var n,r=this.listeners.get(e);return!!(r&&r.length&&(n=r.reduce((function(e,n,r){return"function"==typeof n&&n===t?e=r:e}),-1))>-1)&&(r.splice(n,1),this.listeners.set(e,r),!0)}},{key:"emitEvent",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r-1}function ae(e,t){return e.apply(null,t)}var le={arr:function(e){return Array.isArray(e)},obj:function(e){return ie(Object.prototype.toString.call(e),"Object")},pth:function(e){return le.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||le.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return le.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return le.hex(e)||le.rgb(e)||le.hsl(e)},key:function(e){return!ee.hasOwnProperty(e)&&!te.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function se(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function ue(e,t){var n=se(e),r=oe(le.und(n[0])?1:n[0],.1,100),o=oe(le.und(n[1])?100:n[1],.1,100),i=oe(le.und(n[2])?10:n[2],.1,100),a=oe(le.und(n[3])?0:n[3],.1,100),l=Math.sqrt(o/r),s=i/(2*Math.sqrt(o*r)),u=s<1?l*Math.sqrt(1-s*s):0,c=s<1?(s*l-a)/u:-a+l;function d(e){var n=t?t*e/1e3:e;return n=s<1?Math.exp(-n*s*l)*(1*Math.cos(u*n)+c*Math.sin(u*n)):(1+c*n)*Math.exp(-n*l),0===e||1===e?e:1-n}return t?d:function(){var t=re.springs[e];if(t)return t;for(var n=1/6,r=0,o=0;;)if(1===d(r+=n)){if(++o>=16)break}else o=0;var i=r*n*1e3;return re.springs[e]=i,i}}function ce(e){return void 0===e&&(e=10),function(t){return Math.ceil(oe(t,1e-6,1)*e)*(1/e)}}var de,fe,he=function(){var e=.1;function t(e,t){return 1-3*t+3*e}function n(e,t){return 3*t-6*e}function r(e){return 3*e}function o(e,o,i){return((t(o,i)*e+n(o,i))*e+r(o))*e}function i(e,o,i){return 3*t(o,i)*e*e+2*n(o,i)*e+r(o)}return function(t,n,r,a){if(0<=t&&t<=1&&0<=r&&r<=1){var l=new Float32Array(11);if(t!==n||r!==a)for(var s=0;s<11;++s)l[s]=o(s*e,t,r);return function(e){return t===n&&r===a||0===e||1===e?e:o(u(e),n,a)}}function u(n){for(var a=0,s=1;10!==s&&l[s]<=n;++s)a+=e;--s;var u=a+(n-l[s])/(l[s+1]-l[s])*e,c=i(u,t,r);return c>=.001?function(e,t,n,r){for(var a=0;a<4;++a){var l=i(t,n,r);if(0===l)return t;t-=(o(t,n,r)-e)/l}return t}(n,u,t,r):0===c?u:function(e,t,n,r,i){var a,l,s=0;do{(a=o(l=t+(n-t)/2,r,i)-e)>0?n=l:t=l}while(Math.abs(a)>1e-7&&++s<10);return l}(n,a,a+e,t,r)}}}(),pe=(de={linear:function(){return function(e){return e}}},fe={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var n=oe(e,1,10),r=oe(t,.1,2);return function(e){return 0===e||1===e?e:-n*Math.pow(2,10*(e-1))*Math.sin((e-1-r/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/r)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach((function(e,t){fe[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(fe).forEach((function(e){var t=fe[e];de["easeIn"+e]=t,de["easeOut"+e]=function(e,n){return function(r){return 1-t(e,n)(1-r)}},de["easeInOut"+e]=function(e,n){return function(r){return r<.5?t(e,n)(2*r)/2:1-t(e,n)(-2*r+2)/2}},de["easeOutIn"+e]=function(e,n){return function(r){return r<.5?(1-t(e,n)(1-2*r))/2:(t(e,n)(2*r-1)+1)/2}}})),de);function ge(e,t){if(le.fnc(e))return e;var n=e.split("(")[0],r=pe[n],o=se(e);switch(n){case"spring":return ue(e,t);case"cubicBezier":return ae(he,o);case"steps":return ae(ce,o);default:return ae(r,o)}}function me(e){try{return document.querySelectorAll(e)}catch(e){return}}function ve(e,t){for(var n=e.length,r=arguments.length>=2?t:void 0,o=[],i=0;i1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0==a)t=n=r=l;else{var c=l<.5?l*(1+a):l+a-l*a,d=2*l-c;t=u(d,c,i+1/3),n=u(d,c,i),r=u(d,c,i-1/3)}return"rgba("+255*t+","+255*n+","+255*r+","+s+")"}(e):void 0;var t,n}function Te(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function xe(e,t){return le.fnc(e)?e(t.target,t.id,t.total):e}function De(e,t){return e.getAttribute(t)}function Pe(e,t,n){if(we([n,"deg","rad","turn"],Te(t)))return t;var r=re.CSS[t+n];if(!le.und(r))return r;var o=document.createElement(e.tagName),i=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;i.appendChild(o),o.style.position="absolute",o.style.width=100+n;var a=100/o.offsetWidth;i.removeChild(o);var l=a*parseFloat(t);return re.CSS[t+n]=l,l}function _e(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?Pe(e,o,n):o}}function Be(e,t){return le.dom(e)&&!le.inp(e)&&(!le.nil(De(e,t))||le.svg(e)&&e[t])?"attribute":le.dom(e)&&we(ne,t)?"transform":le.dom(e)&&"transform"!==t&&_e(e,t)?"css":null!=e[t]?"object":void 0}function Oe(e){if(le.dom(e)){for(var t,n=e.style.transform||"",r=/(\w+)\(([^)]*)\)/g,o=new Map;t=r.exec(n);)o.set(t[1],t[2]);return o}}function Ce(e,t,n,r){var o=ie(t,"scale")?1:0+function(e){return ie(e,"translate")||"perspective"===e?"px":ie(e,"rotate")||ie(e,"skew")?"deg":void 0}(t),i=Oe(e).get(t)||o;return n&&(n.transforms.list.set(t,i),n.transforms.last=t),r?Pe(e,i,r):i}function Ae(e,t,n,r){switch(Be(e,t)){case"transform":return Ce(e,t,r,n);case"css":return _e(e,t,n);case"attribute":return De(e,t);default:return e[t]||0}}function Me(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=Te(e)||0,o=parseFloat(t),i=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return o+i+r;case"-":return o-i+r;case"*":return o*i+r}}function Ne(e,t){if(le.col(e))return Se(e);if(/\s/g.test(e))return e;var n=Te(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function Le(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Re(e){for(var t,n=e.points,r=0,o=0;o0&&(r+=Le(t,i)),t=i}return r}function He(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*De(e,"r")}(e);case"rect":return function(e){return 2*De(e,"width")+2*De(e,"height")}(e);case"line":return function(e){return Le({x:De(e,"x1"),y:De(e,"y1")},{x:De(e,"x2"),y:De(e,"y2")})}(e);case"polyline":return Re(e);case"polygon":return function(e){var t=e.points;return Re(e)+Le(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function Fe(e,t){var n=t||{},r=n.el||function(e){for(var t=e.parentNode;le.svg(t)&&le.svg(t.parentNode);)t=t.parentNode;return t}(e),o=r.getBoundingClientRect(),i=De(r,"viewBox"),a=o.width,l=o.height,s=n.viewBox||(i?i.split(" "):[0,0,a,l]);return{el:r,viewBox:s,x:s[0]/1,y:s[1]/1,w:a,h:l,vW:s[2],vH:s[3]}}function Xe(e,t,n){function r(n){void 0===n&&(n=0);var r=t+n>=1?t+n:0;return e.el.getPointAtLength(r)}var o=Fe(e.el,e.svg),i=r(),a=r(-1),l=r(1),s=n?1:o.w/o.vW,u=n?1:o.h/o.vH;switch(e.property){case"x":return(i.x-o.x)*s;case"y":return(i.y-o.y)*u;case"angle":return 180*Math.atan2(l.y-a.y,l.x-a.x)/Math.PI}}function qe(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=Ne(le.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:le.str(e)||t?r.split(n):[]}}function Ue(e){return ve(e?ye(le.arr(e)?e.map(be):be(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function Ye(e){var t=Ue(e);return t.map((function(e,n){return{target:e,id:n,total:t.length,transforms:{list:Oe(e)}}}))}function je(e,t){var n=Ee(t);if(/^spring/.test(n.easing)&&(n.duration=ue(n.easing)),le.arr(e)){var r=e.length;2===r&&!le.obj(e[0])?e={value:e}:le.fnc(t.duration)||(n.duration=t.duration/r)}var o=le.arr(e)?e:[e];return o.map((function(e,n){var r=le.obj(e)&&!le.pth(e)?e:{value:e};return le.und(r.delay)&&(r.delay=n?0:t.delay),le.und(r.endDelay)&&(r.endDelay=n===o.length-1?t.endDelay:0),r})).map((function(e){return ke(e,n)}))}function We(e,t){var n=[],r=t.keyframes;for(var o in r&&(t=ke(function(e){for(var t=ve(ye(e.map((function(e){return Object.keys(e)}))),(function(e){return le.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),n={},r=function(r){var o=t[r];n[o]=e.map((function(e){var t={};for(var n in e)le.key(n)?n==o&&(t.value=e[n]):t[n]=e[n];return t}))},o=0;o0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){tt.suspendWhenDocumentHidden&&(et()?e=cancelAnimationFrame(e):(Ze.forEach((function(e){return e._onDocumentVisibility()})),Ke()))})),function(){e||et()&&tt.suspendWhenDocumentHidden||!(Ze.length>0)||(e=requestAnimationFrame(t))}}();function et(){return!!document&&document.hidden}function tt(e){void 0===e&&(e={});var t,n=0,r=0,o=0,i=0,a=null;function l(e){var t=window.Promise&&new Promise((function(e){return a=e}));return e.finished=t,t}var s=function(e){var t=Ie(ee,e),n=Ie(te,e),r=We(n,e),o=Ye(e.targets),i=Ve(o,r),a=Je(i,n),l=$e;return $e++,ke(t,{id:l,children:[],animatables:o,animations:i,duration:a.duration,delay:a.delay,endDelay:a.endDelay})}(e);function u(){var e=s.direction;"alternate"!==e&&(s.direction="normal"!==e?"normal":"reverse"),s.reversed=!s.reversed,t.forEach((function(e){return e.reversed=s.reversed}))}function c(e){return s.reversed?s.duration-e:e}function d(){n=0,r=c(s.currentTime)*(1/tt.speed)}function f(e,t){t&&t.seek(e-t.timelineOffset)}function h(e){for(var t=0,n=s.animations,r=n.length;t2||(y=Math.round(y*h)/h)),p.push(y)}var E=f.length;if(E){m=f[0];for(var I=0;I0&&(s.began=!0,p("begin")),!s.loopBegan&&s.currentTime>0&&(s.loopBegan=!0,p("loopBegin")),v<=g&&0!==s.currentTime&&h(0),(v>=m&&s.currentTime!==d||!d)&&h(d),v>g&&v=d&&(r=0,s.remaining&&!0!==s.remaining&&s.remaining--,s.remaining?(n=o,p("loopComplete"),s.loopBegan=!1,"alternate"===s.direction&&u()):(s.paused=!0,s.completed||(s.completed=!0,p("loopComplete"),p("complete"),!s.passThrough&&"Promise"in window&&(a(),l(s)))))}return l(s),s.reset=function(){var e=s.direction;s.passThrough=!1,s.currentTime=0,s.progress=0,s.paused=!0,s.began=!1,s.loopBegan=!1,s.changeBegan=!1,s.completed=!1,s.changeCompleted=!1,s.reversePlayback=!1,s.reversed="reverse"===e,s.remaining=s.loop,t=s.children;for(var n=i=t.length;n--;)s.children[n].reset();(s.reversed&&!0!==s.loop||"alternate"===e&&1===s.loop)&&s.remaining++,h(s.reversed?s.duration:0)},s._onDocumentVisibility=d,s.set=function(e,t){return Qe(e,t),s},s.tick=function(e){o=e,n||(n=o),g((o+(r-n))*tt.speed)},s.seek=function(e){g(c(e))},s.pause=function(){s.paused=!0,d()},s.play=function(){s.paused&&(s.completed&&s.reset(),s.paused=!1,Ze.push(s),d(),Ke())},s.reverse=function(){u(),s.completed=!s.reversed,d()},s.restart=function(){s.reset(),s.play()},s.remove=function(e){rt(Ue(e),s)},s.reset(),s.autoplay&&s.play(),s}function nt(e,t){for(var n=t.length;n--;)we(e,t[n].animatable.target)&&t.splice(n,1)}function rt(e,t){var n=t.animations,r=t.children;nt(e,n);for(var o=r.length;o--;){var i=r[o],a=i.animations;nt(e,a),a.length||i.children.length||r.splice(o,1)}n.length||r.length||t.pause()}tt.version="3.2.1",tt.speed=1,tt.suspendWhenDocumentHidden=!0,tt.running=Ze,tt.remove=function(e){for(var t=Ue(e),n=Ze.length;n--;){rt(t,Ze[n])}},tt.get=Ae,tt.set=Qe,tt.convertPx=Pe,tt.path=function(e,t){var n=le.str(e)?me(e)[0]:e,r=t||100;return function(e){return{property:e,el:n,svg:Fe(n),totalLength:He(n)*(r/100)}}},tt.setDashoffset=function(e){var t=He(e);return e.setAttribute("stroke-dasharray",t),t},tt.stagger=function(e,t){void 0===t&&(t={});var n=t.direction||"normal",r=t.easing?ge(t.easing):null,o=t.grid,i=t.axis,a=t.from||0,l="first"===a,s="center"===a,u="last"===a,c=le.arr(e),d=c?parseFloat(e[0]):parseFloat(e),f=c?parseFloat(e[1]):0,h=Te(c?e[1]:e)||0,p=t.start||0+(c?d:0),g=[],m=0;return function(e,t,v){if(l&&(a=0),s&&(a=(v-1)/2),u&&(a=v-1),!g.length){for(var y=0;y-1&&Ze.splice(o,1);for(var l=0;l'].join(""),document.getElementById("featured-image-drop").innerHTML="",document.getElementById("featured-image-drop").appendChild(n)}}(n),o.readAsDataURL(n)}}}},{key:"handleImageUpload",value:function(e,t){var n=this;dt.alert("Uploading Image",null),this.admin.imageUpload(e,t).then((function(e){e.type==d&&n.editor.notify(U,e.url),dt.alert("Image Added to Entry",!0)})).catch((function(){dt.alert("Uh oh. Image not added",!1)}))}}]),t}();ft.uploadFiles=[];var ht=function(){function t(n){e(this,t),this.currentPage=null,this.choosePage(n),this.start()}return n(t,[{key:"start",value:function(){}},{key:"choosePage",value:function(e){switch(this.currentPage="",e){case"edit":case"add":this.currentPage=new ft}}}]),t}(),pt=function(){function t(){e(this,t)}return n(t,[{key:"getInfo",value:function(){var e,t,n=document.getElementById("settings-handle").value,r=document.getElementById("settings-email").value,o=document.getElementById("settings-url").value,i=document.getElementById("settings-title").value,a=document.getElementById("settings-desc").value,l=document.getElementById("render-toggle").getAttribute("data-render"),s=document.getElementById("background").src,u="",c=document.querySelectorAll(".theme-select"),d=document.getElementById("smtp-domain").value,f=document.getElementById("smtp-email").value,h=document.getElementById("smtp-pass").value,p=document.getElementById("mg-domain").value,g=document.getElementById("mg-key").value,m="",v=document.querySelectorAll(".mail-option");for(e=0,t=c.length;e2&&void 0!==arguments[2]?arguments[2]:_,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:B,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=this;return new Promise((function(t,a){var s=new XMLHttpRequest;if(s.upload.onprogress=i.handleLoadProgress,s.open(n,e,!0),s.onload=function(){if(200==s.status){var e=JSON.parse(s.response);t(e)}else{var n=JSON.parse(s.response);a(n)}},"PUT"==n||n==P)switch(r){case B:s.setRequestHeader("Content-type","application/"+r),s.send(JSON.stringify(o));break;case C:s.send(o)}else s.send()}))}},{key:"handleLoadProgress",value:function(e){this.percentComplete=Math.ceil(e.loaded/e.total*100)}}]),t}(),M="POST",A="createNewPage",N="editPage",L="deletePage",R="json",H="x-www-form-urlencoded",F=function(){function t(){var n=this;e(this,t),this.percentComplete=0,this.token=null,this._request("/api/v1/status").then((function(e){e.type===u&&(n.token=e.token)}))}return n(t,[{key:"syncSettings",value:function(e){var t=this;return new Promise((function(n,r){t._request("/api/v1/settings/sync",v,M,R,e).then((function(e){n(e)})).catch((function(e){r(e)}))}))}},{key:"imageUpload",value:function(e,t){var n=this;return new Promise((function(r,o){var i="";switch(e){case"avatar-upload":i="/api/v1/settings/add-avatar";break;case"background-upload":i="/api/v1/settings/add-feature-background";break;default:i="/api/v1/page/add-entry-image"}for(var a=new FormData,s=0;s2&&void 0!==arguments[2]?arguments[2]:"GET",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=this;return new Promise((function(a,s){var l=new XMLHttpRequest;if(l.upload.onprogress=i.handleLoadProgress,l.open(n,e,!0),l.onload=function(){if(200==l.status){var e=JSON.parse(l.response);a(e)}else{var t=JSON.parse(l.response);s(t)}},"PUT"==n||n==M)switch(t!==g&&t!==w&&t!==v&&t!==m&&t!==E&&t!==y&&t!==b&&t!==I||l.setRequestHeader("fipamo-access-token",i.token),r){case R:l.setRequestHeader("Content-type","application/"+r),l.send(JSON.stringify(o));break;case H:l.send(o)}else l.send()}))}},{key:"handleLoadProgress",value:function(e){this.percentComplete=Math.ceil(e.loaded/e.total*100)}}]),t}(),X=function(){function t(){e(this,t)}return n(t,[{key:"imgLoad",value:function(e){return new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){200===r.status?t(r.response):n(new Error("Image didn't load successfully; error code:"+r.statusText))},r.onerror=function(){n(new Error("There was a network error."))},r.send()}))}},{key:"loadImage",value:function(e){var t=this;return new Promise((function(n,r){(new Image).crossOrigin="",t.imgLoad(e).then((function(e){var t=window.URL.createObjectURL(e);n(t)}),(function(e){r(e)}))}))}},{key:"formDataToJSON",value:function(e){var t={};return new FormData(e).forEach((function(e,n){t.hasOwnProperty(n)?(Array.isArray(t[n])||(t[n]=[t[n]]),t[n].push(e)):t[n]=e})),t}}]),t}(),q=function(){function t(){e(this,t)}return n(t,[{key:"cleanString",value:function(e){return e.replace(/(^\-+|[^a-zA-Z0-9\/_| -]+|\-+$)/g,"").toLowerCase().replace(/[\/_| -]+/g,"-")}},{key:"decodeHTML",value:function(e,t){var n=0,r=0,o=!1;void 0===t&&(t=2),e=e.toString().replace(/</g,"<").replace(/>/g,">");var i={ENT_NOQUOTES:0,ENT_HTML_QUOTE_SINGLE:1,ENT_HTML_QUOTE_DOUBLE:2,ENT_COMPAT:2,ENT_QUOTES:3,ENT_IGNORE:4};if(0===t&&(o=!0),"number"!=typeof t){for(t=[].concat(t),r=0;r]*>/g,"\n"),r.append("id",document.getElementById("post-edit-index").getAttribute("data-index")),r.append("uuid",document.getElementById("post-edit-index").getAttribute("data-uuid")),r.append("layout",document.getElementById("post-edit-index").getAttribute("data-layout")),r.append("current_title",document.getElementById("post-edit-index").getAttribute("data-slug")),r.append("content",i),r.append("title",document.getElementById("post_title").value),r.append("created",document.getElementById("post-date").getAttribute("data-raw")),r.append("slug",(new q).cleanString(document.getElementById("post_title").value)),r.append("tags",document.getElementById("post_tags").value),r.append("menu",document.getElementById("option-menu-pin").getAttribute("data-active")),r.append("featured",document.getElementById("option-feature").getAttribute("data-active")),r.append("published",document.getElementById("option-published").getAttribute("data-active")),null!=e||null!=e)e.type.match("image.*")?r.append("feature_image",e,e.name):n("Not an image file");else{var a=document.getElementById("featured-image").src;null!=a||null!=a?r.append("feature_image",a):r.append("feature_image",null)}t(r)}))}}]),t}(),Y="editorDelete",j="editorUploadImage",W="editorSave",z="editorUpdate";new function t(){e(this,t)};var G=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle","borderTopWidth","boxSizing","fontFamily","fontSize","fontWeight","height","letterSpacing","lineHeight","marginBottom","marginLeft","marginRight","marginTop","outlineWidth","overflow","overflowX","overflowY","paddingBottom","paddingLeft","paddingRight","paddingTop","textAlign","textOverflow","textTransform","whiteSpace","wordBreak","wordWrap"],Q=function(e,t){var n=document.createElement("div");return function(t){var r=function(){var t={position:"absolute",left:-9999,top:0,zIndex:-2e3};return"TEXTAREA"===e.tagName&&G.push("width"),G.forEach((function(n){t[n]=getComputedStyle(e)[n]})),t}();Object.keys(r).forEach((function(e){n.style[e]=r[e]})),n.innerHTML=t,e.parentNode.insertBefore(n,e.nextSibling)}(t),{rect:function(){var e=n.ownerDocument.getElementById("caret-position-marker"),t={left:e.offsetLeft,top:e.offsetTop,height:e.offsetHeight};return n.parentNode.removeChild(n),t}}};function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var J=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.customPos,n=e.iframe,r=e.noShadowCaret;return n?{iframe:n,window:n.contentWindow,document:n.contentDocument||n.contentWindow.document,noShadowCaret:r,customPos:t}:{window:window,document:document,noShadowCaret:r,customPos:t}},$=function(e){return"object"===V(e)&&null!==e},Z=function(e,t){var n=function(){return e.selectionStart},r=function(r){var o=function(e){return e.replace(/<|>|`|"|&/g,"?").replace(/\r\n|\r|\n/g,"
")};(t.customPos||0===t.customPos)&&(r=t.customPos);var i=void 0===r?n():r,a=e.value.slice(0,i),s=e.value.slice(i),l=''.concat(o(a),"");l+='|',l+=''.concat(o(s),"");var u=Q(e,l).rect();return u.pos=n(),u};return{getPos:n,setPos:function(t){return e.setSelectionRange(t,t),e},getOffset:function(n){var o=function(e,t){var n=t&&t.window||window,r=t&&t.document||document,o=e.getBoundingClientRect(),i=r.documentElement,a=n.pageXOffset||i.scrollLeft,s=n.pageYOffset||i.scrollTop;return{top:o.top+s,left:o.left+a}}(e),i=r(n);return{top:o.top+i.top+t.document.body.scrollTop,left:o.left+i.left+t.document.body.scrollLeft,height:i.height}},getPosition:r}},K=function(e,t){return function(e){return!!(e.contentEditable?"true"===e.contentEditable:"true"===e.getAttribute("contenteditable"))}(e)?function(e,t){var n=function(){var n=r(),o={height:0,left:0,right:0};if(!n)return o;var i=t.customPos||0===t.customPos;if(n.endOffset-1>0&&n.endContainer!==e||i){var a=n.cloneRange(),s=i?t.customPos:n.endOffset;a.setStart(n.endContainer,s-1<0?0:s-1),a.setEnd(n.endContainer,s);var l=a.getBoundingClientRect();o={height:l.height,left:l.left+l.width,top:l.top},a.detach()}if((!o||o&&0===o.height)&&!t.noShadowCaret){var u=n.cloneRange(),c=t.document.createTextNode("|");u.insertNode(c),u.selectNode(c);var d=u.getBoundingClientRect();o={height:d.height,left:d.left,top:d.top},c.parentNode.removeChild(c),u.detach()}if(o){var f=t.document.documentElement;o.top+=t.window.pageYOffset-(f.clientTop||0),o.left+=t.window.pageXOffset-(f.clientLeft||0)}return o},r=function(){if(t.window.getSelection){var e=t.window.getSelection();return e.rangeCount>0?e.getRangeAt(0):null}},o=function(){var t=r(),n=t.cloneRange();n.selectNodeContents(e),n.setEnd(t.endContainer,t.endOffset);var o=n.toString().length;return n.detach(),o};return{getPos:o,setPos:function(n){var r=t.window.getSelection();if(r){var o=0,i=!1;!function e(a,s){for(var l=0;l=a){i=!0;var c=t.document.createRange();c.setStart(u,a-o),r.removeAllRanges(),r.addRange(c);break}o+=u.length}else e(n,u)}}(n,e)}return e},getPosition:function(){var r=n(),i=o(),a=e.getBoundingClientRect(),s=a.top+t.document.body.scrollTop,l=a.left+t.document.body.scrollLeft;return r.left-=l,r.top-=s,r.pos=i,r},getOffset:n,getRange:r}}(e,t):Z(e,t)},ee=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;$(t)&&(r=t,t=null);var o=J(r),i=K(e,o);return t||0===t?i.setPos(t):i.getPosition()},te=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(i,t);var r=a(i);function i(t,n){var o;return e(this,i),(o=r.call(this)).textEditor=t,o.fixLimit=n,o.caretPos=null,o.url="",o.setInputs(),window.addEventListener("scroll",(function(){})),o.refresh(),o}return n(i,[{key:"setInputs",value:function(){for(var e=this,t=this,n=document.querySelectorAll(".editor-button"),r=0,o=n.length;r/g)>-1){var o=ee(e.textEditor).pos;t.refresh(),ee(e.textEditor,o)}}))}},{key:"refresh",value:function(){var e=this.textEditor.innerText;e=e.replace(new RegExp("\r?\n","g"),"
");var t=document.createElement("div");t.innerText=e,this.textEditor.innerHTML=t.innerText,this.textEditor.style.maxWidth="900px"}},{key:"notify",value:function(e,t){switch(e){case void 0:document.getElementById("submit-update").classList.add("icon-hide"),document.getElementById("submit-good").classList.remove("icon-hide"),document.getElementById("edit-update").classList.remove("submit-start"),document.getElementById("edit-update").classList.add("submit-cool"),setTimeout((function(){document.getElementById("submit-update").classList.remove("icon-hide"),document.getElementById("submit-good").classList.add("icon-hide"),document.getElementById("edit-update").classList.add("submit-start"),document.getElementById("edit-update").classList.remove("submit-cool")}),2e3);break;case void 0:break;case j:var n,r;ee(this.textEditor,this.caretPos),(n=window.getSelection()).rangeCount&&((r=n.getRangeAt(0)).deleteContents(),r.insertNode(document.createTextNode("![image alt text]("+t+" 'image title')"))),this.refresh()}}},{key:"handleEditorOption",value:function(e){var t,n,r;if(e.preventDefault(),(t=window.getSelection()).rangeCount)switch(n=t.getRangeAt(0),r=t.getRangeAt(0).toString(),n.deleteContents(),e.target.id){case"edit-bold":n.insertNode(document.createTextNode("**"+r+"**"));break;case"edit-italic":n.insertNode(document.createTextNode("*"+r+"*"));break;case"edit-strikethrough":n.insertNode(document.createTextNode(""+r+""));break;case"edit-header1":n.insertNode(document.createTextNode("# "+r));break;case"edit-header2":n.insertNode(document.createTextNode("## "+r));break;case"edit-header3":n.insertNode(document.createTextNode("### "+r));break;case"edit-image":this.caretPos=ee(this.textEditor).pos,this.emitEvent(j);break;case"submit-save":case"edit-save":this.emitEvent(W);break;case"submit-update":case"edit-update":this.emitEvent(z);break;case"edit-link":n.insertNode(document.createTextNode("["+r+"](PASTE URL HERE)"));break;case"edit-delete":this.emitEvent(Y)}this.refresh()}}]),i}(function(){function t(){e(this,t),this.listeners=new Map}return n(t,[{key:"addListener",value:function(e,t){this.listeners.has(e)||this.listeners.set(e,[]),this.listeners.get(e).push(t)}},{key:"removeListener",value:function(e,t){var n,r=this.listeners.get(e);return!!(r&&r.length&&(n=r.reduce((function(e,n,r){return"function"==typeof n&&n===t?e=r:e}),-1))>-1)&&(r.splice(n,1),this.listeners.set(e,r),!0)}},{key:"emitEvent",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r-1}function le(e,t){return e.apply(null,t)}var ue={arr:function(e){return Array.isArray(e)},obj:function(e){return se(Object.prototype.toString.call(e),"Object")},pth:function(e){return ue.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||ue.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return ue.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return ue.hex(e)||ue.rgb(e)||ue.hsl(e)},key:function(e){return!ne.hasOwnProperty(e)&&!re.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function ce(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function de(e,t){var n=ce(e),r=ae(ue.und(n[0])?1:n[0],.1,100),o=ae(ue.und(n[1])?100:n[1],.1,100),i=ae(ue.und(n[2])?10:n[2],.1,100),a=ae(ue.und(n[3])?0:n[3],.1,100),s=Math.sqrt(o/r),l=i/(2*Math.sqrt(o*r)),u=l<1?s*Math.sqrt(1-l*l):0,c=l<1?(l*s-a)/u:-a+s;function d(e){var n=t?t*e/1e3:e;return n=l<1?Math.exp(-n*l*s)*(1*Math.cos(u*n)+c*Math.sin(u*n)):(1+c*n)*Math.exp(-n*s),0===e||1===e?e:1-n}return t?d:function(){var t=ie.springs[e];if(t)return t;for(var n=1/6,r=0,o=0;;)if(1===d(r+=n)){if(++o>=16)break}else o=0;var i=r*n*1e3;return ie.springs[e]=i,i}}function fe(e){return void 0===e&&(e=10),function(t){return Math.ceil(ae(t,1e-6,1)*e)*(1/e)}}var he,pe,ge=function(){var e=.1;function t(e,t){return 1-3*t+3*e}function n(e,t){return 3*t-6*e}function r(e){return 3*e}function o(e,o,i){return((t(o,i)*e+n(o,i))*e+r(o))*e}function i(e,o,i){return 3*t(o,i)*e*e+2*n(o,i)*e+r(o)}return function(t,n,r,a){if(0<=t&&t<=1&&0<=r&&r<=1){var s=new Float32Array(11);if(t!==n||r!==a)for(var l=0;l<11;++l)s[l]=o(l*e,t,r);return function(e){return t===n&&r===a||0===e||1===e?e:o(u(e),n,a)}}function u(n){for(var a=0,l=1;10!==l&&s[l]<=n;++l)a+=e;--l;var u=a+(n-s[l])/(s[l+1]-s[l])*e,c=i(u,t,r);return c>=.001?function(e,t,n,r){for(var a=0;a<4;++a){var s=i(t,n,r);if(0===s)return t;t-=(o(t,n,r)-e)/s}return t}(n,u,t,r):0===c?u:function(e,t,n,r,i){var a,s,l=0;do{(a=o(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s}while(Math.abs(a)>1e-7&&++l<10);return s}(n,a,a+e,t,r)}}}(),me=(he={linear:function(){return function(e){return e}}},pe={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var n=ae(e,1,10),r=ae(t,.1,2);return function(e){return 0===e||1===e?e:-n*Math.pow(2,10*(e-1))*Math.sin((e-1-r/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/r)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach((function(e,t){pe[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(pe).forEach((function(e){var t=pe[e];he["easeIn"+e]=t,he["easeOut"+e]=function(e,n){return function(r){return 1-t(e,n)(1-r)}},he["easeInOut"+e]=function(e,n){return function(r){return r<.5?t(e,n)(2*r)/2:1-t(e,n)(-2*r+2)/2}},he["easeOutIn"+e]=function(e,n){return function(r){return r<.5?(1-t(e,n)(1-2*r))/2:(t(e,n)(2*r-1)+1)/2}}})),he);function ve(e,t){if(ue.fnc(e))return e;var n=e.split("(")[0],r=me[n],o=ce(e);switch(n){case"spring":return de(e,t);case"cubicBezier":return le(ge,o);case"steps":return le(fe,o);default:return le(r,o)}}function ye(e){try{return document.querySelectorAll(e)}catch(e){return}}function be(e,t){for(var n=e.length,r=arguments.length>=2?t:void 0,o=[],i=0;i1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0==a)t=n=r=s;else{var c=s<.5?s*(1+a):s+a-s*a,d=2*s-c;t=u(d,c,i+1/3),n=u(d,c,i),r=u(d,c,i-1/3)}return"rgba("+255*t+","+255*n+","+255*r+","+l+")"}(e):void 0;var t,n}function De(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function Pe(e,t){return ue.fnc(e)?e(t.target,t.id,t.total):e}function _e(e,t){return e.getAttribute(t)}function Be(e,t,n){if(Ie([n,"deg","rad","turn"],De(t)))return t;var r=ie.CSS[t+n];if(!ue.und(r))return r;var o=document.createElement(e.tagName),i=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;i.appendChild(o),o.style.position="absolute",o.style.width=100+n;var a=100/o.offsetWidth;i.removeChild(o);var s=a*parseFloat(t);return ie.CSS[t+n]=s,s}function Ce(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?Be(e,o,n):o}}function Oe(e,t){return ue.dom(e)&&!ue.inp(e)&&(!ue.nil(_e(e,t))||ue.svg(e)&&e[t])?"attribute":ue.dom(e)&&Ie(oe,t)?"transform":ue.dom(e)&&"transform"!==t&&Ce(e,t)?"css":null!=e[t]?"object":void 0}function Me(e){if(ue.dom(e)){for(var t,n=e.style.transform||"",r=/(\w+)\(([^)]*)\)/g,o=new Map;t=r.exec(n);)o.set(t[1],t[2]);return o}}function Ae(e,t,n,r){var o=se(t,"scale")?1:0+function(e){return se(e,"translate")||"perspective"===e?"px":se(e,"rotate")||se(e,"skew")?"deg":void 0}(t),i=Me(e).get(t)||o;return n&&(n.transforms.list.set(t,i),n.transforms.last=t),r?Be(e,i,r):i}function Ne(e,t,n,r){switch(Oe(e,t)){case"transform":return Ae(e,t,r,n);case"css":return Ce(e,t,n);case"attribute":return _e(e,t);default:return e[t]||0}}function Le(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=De(e)||0,o=parseFloat(t),i=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return o+i+r;case"-":return o-i+r;case"*":return o*i+r}}function Re(e,t){if(ue.col(e))return xe(e);if(/\s/g.test(e))return e;var n=De(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function He(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Fe(e){for(var t,n=e.points,r=0,o=0;o0&&(r+=He(t,i)),t=i}return r}function Xe(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*_e(e,"r")}(e);case"rect":return function(e){return 2*_e(e,"width")+2*_e(e,"height")}(e);case"line":return function(e){return He({x:_e(e,"x1"),y:_e(e,"y1")},{x:_e(e,"x2"),y:_e(e,"y2")})}(e);case"polyline":return Fe(e);case"polygon":return function(e){var t=e.points;return Fe(e)+He(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function qe(e,t){var n=t||{},r=n.el||function(e){for(var t=e.parentNode;ue.svg(t)&&ue.svg(t.parentNode);)t=t.parentNode;return t}(e),o=r.getBoundingClientRect(),i=_e(r,"viewBox"),a=o.width,s=o.height,l=n.viewBox||(i?i.split(" "):[0,0,a,s]);return{el:r,viewBox:l,x:l[0]/1,y:l[1]/1,w:a,h:s,vW:l[2],vH:l[3]}}function Ue(e,t,n){function r(n){void 0===n&&(n=0);var r=t+n>=1?t+n:0;return e.el.getPointAtLength(r)}var o=qe(e.el,e.svg),i=r(),a=r(-1),s=r(1),l=n?1:o.w/o.vW,u=n?1:o.h/o.vH;switch(e.property){case"x":return(i.x-o.x)*l;case"y":return(i.y-o.y)*u;case"angle":return 180*Math.atan2(s.y-a.y,s.x-a.x)/Math.PI}}function Ye(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=Re(ue.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:ue.str(e)||t?r.split(n):[]}}function je(e){return be(e?we(ue.arr(e)?e.map(Ee):Ee(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function We(e){var t=je(e);return t.map((function(e,n){return{target:e,id:n,total:t.length,transforms:{list:Me(e)}}}))}function ze(e,t){var n=ke(t);if(/^spring/.test(n.easing)&&(n.duration=de(n.easing)),ue.arr(e)){var r=e.length;2===r&&!ue.obj(e[0])?e={value:e}:ue.fnc(t.duration)||(n.duration=t.duration/r)}var o=ue.arr(e)?e:[e];return o.map((function(e,n){var r=ue.obj(e)&&!ue.pth(e)?e:{value:e};return ue.und(r.delay)&&(r.delay=n?0:t.delay),ue.und(r.endDelay)&&(r.endDelay=n===o.length-1?t.endDelay:0),r})).map((function(e){return Te(e,n)}))}function Ge(e,t){var n=[],r=t.keyframes;for(var o in r&&(t=Te(function(e){for(var t=be(we(e.map((function(e){return Object.keys(e)}))),(function(e){return ue.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),n={},r=function(r){var o=t[r];n[o]=e.map((function(e){var t={};for(var n in e)ue.key(n)?n==o&&(t.value=e[n]):t[n]=e[n];return t}))},o=0;o0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){rt.suspendWhenDocumentHidden&&(nt()?e=cancelAnimationFrame(e):(et.forEach((function(e){return e._onDocumentVisibility()})),tt()))})),function(){e||nt()&&rt.suspendWhenDocumentHidden||!(et.length>0)||(e=requestAnimationFrame(t))}}();function nt(){return!!document&&document.hidden}function rt(e){void 0===e&&(e={});var t,n=0,r=0,o=0,i=0,a=null;function s(e){var t=window.Promise&&new Promise((function(e){return a=e}));return e.finished=t,t}var l=function(e){var t=Se(ne,e),n=Se(re,e),r=Ge(n,e),o=We(e.targets),i=$e(o,r),a=Ze(i,n),s=Ke;return Ke++,Te(t,{id:s,children:[],animatables:o,animations:i,duration:a.duration,delay:a.delay,endDelay:a.endDelay})}(e);function u(){var e=l.direction;"alternate"!==e&&(l.direction="normal"!==e?"normal":"reverse"),l.reversed=!l.reversed,t.forEach((function(e){return e.reversed=l.reversed}))}function c(e){return l.reversed?l.duration-e:e}function d(){n=0,r=c(l.currentTime)*(1/rt.speed)}function f(e,t){t&&t.seek(e-t.timelineOffset)}function h(e){for(var t=0,n=l.animations,r=n.length;t2||(y=Math.round(y*h)/h)),p.push(y)}var E=f.length;if(E){m=f[0];for(var I=0;I0&&(l.began=!0,p("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,p("loopBegin")),v<=g&&0!==l.currentTime&&h(0),(v>=m&&l.currentTime!==d||!d)&&h(d),v>g&&v=d&&(r=0,l.remaining&&!0!==l.remaining&&l.remaining--,l.remaining?(n=o,p("loopComplete"),l.loopBegan=!1,"alternate"===l.direction&&u()):(l.paused=!0,l.completed||(l.completed=!0,p("loopComplete"),p("complete"),!l.passThrough&&"Promise"in window&&(a(),s(l)))))}return s(l),l.reset=function(){var e=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed="reverse"===e,l.remaining=l.loop,t=l.children;for(var n=i=t.length;n--;)l.children[n].reset();(l.reversed&&!0!==l.loop||"alternate"===e&&1===l.loop)&&l.remaining++,h(l.reversed?l.duration:0)},l._onDocumentVisibility=d,l.set=function(e,t){return Je(e,t),l},l.tick=function(e){o=e,n||(n=o),g((o+(r-n))*rt.speed)},l.seek=function(e){g(c(e))},l.pause=function(){l.paused=!0,d()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,et.push(l),d(),tt())},l.reverse=function(){u(),l.completed=!l.reversed,d()},l.restart=function(){l.reset(),l.play()},l.remove=function(e){it(je(e),l)},l.reset(),l.autoplay&&l.play(),l}function ot(e,t){for(var n=t.length;n--;)Ie(e,t[n].animatable.target)&&t.splice(n,1)}function it(e,t){var n=t.animations,r=t.children;ot(e,n);for(var o=r.length;o--;){var i=r[o],a=i.animations;ot(e,a),a.length||i.children.length||r.splice(o,1)}n.length||r.length||t.pause()}rt.version="3.2.1",rt.speed=1,rt.suspendWhenDocumentHidden=!0,rt.running=et,rt.remove=function(e){for(var t=je(e),n=et.length;n--;){it(t,et[n])}},rt.get=Ne,rt.set=Je,rt.convertPx=Be,rt.path=function(e,t){var n=ue.str(e)?ye(e)[0]:e,r=t||100;return function(e){return{property:e,el:n,svg:qe(n),totalLength:Xe(n)*(r/100)}}},rt.setDashoffset=function(e){var t=Xe(e);return e.setAttribute("stroke-dasharray",t),t},rt.stagger=function(e,t){void 0===t&&(t={});var n=t.direction||"normal",r=t.easing?ve(t.easing):null,o=t.grid,i=t.axis,a=t.from||0,s="first"===a,l="center"===a,u="last"===a,c=ue.arr(e),d=c?parseFloat(e[0]):parseFloat(e),f=c?parseFloat(e[1]):0,h=De(c?e[1]:e)||0,p=t.start||0+(c?d:0),g=[],m=0;return function(e,t,v){if(s&&(a=0),l&&(a=(v-1)/2),u&&(a=v-1),!g.length){for(var y=0;y-1&&et.splice(o,1);for(var s=0;s'].join(""),document.getElementById("featured-image-drop").innerHTML="",document.getElementById("featured-image-drop").appendChild(n)}}(n),o.readAsDataURL(n)}}}},{key:"handleImageUpload",value:function(e,t){var n=this;ht.alert("Uploading Image",null),this.admin.imageUpload(e,t).then((function(e){e.type==d&&n.editor.notify(j,e.url),ht.alert("Image Added to Entry",!0)})).catch((function(){ht.alert("Uh oh. Image not added",!1)}))}}]),t}();pt.uploadFiles=[];var gt=function(){function t(n){e(this,t),this.currentPage=null,this.choosePage(n),this.start()}return n(t,[{key:"start",value:function(){}},{key:"choosePage",value:function(e){switch(this.currentPage="",e){case"edit":case"add":this.currentPage=new pt}}}]),t}(),mt=function(){function t(){e(this,t)}return n(t,[{key:"getInfo",value:function(){var e,t,n=document.getElementById("settings-handle").value,r=document.getElementById("settings-email").value,o=document.getElementById("settings-url").value,i=document.getElementById("settings-title").value,a=document.getElementById("settings-desc").value,s=document.getElementById("render-toggle").getAttribute("data-render"),l=document.getElementById("background").src,u="",c=document.querySelectorAll(".theme-select"),d=document.getElementById("smtp-domain").value,f=document.getElementById("smtp-email").value,h=document.getElementById("smtp-pass").value,p=document.getElementById("mg-domain").value,g=document.getElementById("mg-key").value,m="",v=document.querySelectorAll(".mail-option");for(e=0,t=c.length;e * @author owenm * @license MIT */ -function yt(e){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wt(){return(wt=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function kt(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var St=kt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Tt=kt(/Edge/i),xt=kt(/firefox/i),Dt=kt(/safari/i)&&!kt(/chrome/i)&&!kt(/android/i),Pt=kt(/iP(ad|od|hone)/i),_t=kt(/chrome/i)&&kt(/android/i),Bt={capture:!1,passive:!1};function Ot(e,t,n){e.addEventListener(t,n,!St&&Bt)}function Ct(e,t,n){e.removeEventListener(t,n,!St&&Bt)}function At(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function Mt(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Nt(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&At(e,t):At(e,t))||r&&e===n)return e;if(e===n)break}while(e=Mt(e))}return null}var Lt,Rt=/\s+/g;function Ht(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(Rt," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(Rt," ")}}function Ft(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function Xt(e,t){var n="";if("string"==typeof e)n=e;else do{var r=Ft(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function qt(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o=i:o<=i))return r;if(r===Ut())break;r=Vt(r,!1)}return!1}function Wt(e,t,n){for(var r=0,o=0,i=e.children;o2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=It(n,["evt"]);on.pluginEvent.bind(Zn)(e,t,Et({dragEl:sn,parentEl:un,ghostEl:cn,rootEl:dn,nextEl:fn,lastDownEl:hn,cloneEl:pn,cloneHidden:gn,dragStarted:Pn,putSortable:En,activeSortable:Zn.active,originalEvent:r,oldIndex:mn,oldDraggableIndex:yn,newIndex:vn,newDraggableIndex:bn,hideGhostForTarget:Qn,unhideGhostForTarget:Vn,cloneNowHidden:function(){gn=!0},cloneNowShown:function(){gn=!1},dispatchSortableEvent:function(e){ln({sortable:t,name:e,originalEvent:r})}},o))};function ln(e){!function(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,i=e.cloneEl,a=e.toEl,l=e.fromEl,s=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,h=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[en]){var g,m=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||St||Tt?(g=document.createEvent("Event")).initEvent(r,!0,!0):g=new CustomEvent(r,{bubbles:!0,cancelable:!0}),g.to=a||n,g.from=l||n,g.item=o||n,g.clone=i,g.oldIndex=s,g.newIndex=u,g.oldDraggableIndex=c,g.newDraggableIndex=d,g.originalEvent=f,g.pullMode=h?h.lastPutMode:void 0;var y=Et({},p,on.getEventProperties(r,t));for(var b in y)g[b]=y[b];n&&n.dispatchEvent(g),m[v]&&m[v].call(t,g)}}(Et({putSortable:En,cloneEl:pn,targetEl:sn,rootEl:dn,oldIndex:mn,oldDraggableIndex:yn,newIndex:vn,newDraggableIndex:bn},e))}var sn,un,cn,dn,fn,hn,pn,gn,mn,vn,yn,bn,wn,En,In,kn,Sn,Tn,xn,Dn,Pn,_n,Bn,On,Cn,An=!1,Mn=!1,Nn=[],Ln=!1,Rn=!1,Hn=[],Fn=!1,Xn=[],qn="undefined"!=typeof document,Un=Pt,Yn=Tt||St?"cssFloat":"float",jn=qn&&!_t&&!Pt&&"draggable"in document.createElement("div"),Wn=function(){if(qn){if(St)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),zn=function(e,t){var n=Ft(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=Wt(e,0,t),i=Wt(e,1,t),a=o&&Ft(o),l=i&&Ft(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Yt(o).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Yt(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==c?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=r&&"none"===n[Yn]||i&&"none"===n[Yn]&&s+u>r)?"vertical":"horizontal"},Gn=function(e){function t(e,n){return function(r,o,i,a){var l=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,a),n)(r,o,i,a);var s=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},r=e.group;r&&"object"==yt(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Qn=function(){!Wn&&cn&&Ft(cn,"display","none")},Vn=function(){!Wn&&cn&&Ft(cn,"display","")};qn&&document.addEventListener("click",(function(e){if(Mn)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Mn=!1,!1}),!0);var Jn=function(e){if(sn){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,i=e.clientY,Nn.some((function(e){if(!zt(e)){var t=Yt(e),n=e[en].options.emptyInsertThreshold,r=o>=t.left-n&&o<=t.right+n,l=i>=t.top-n&&i<=t.bottom+n;return n&&r&&l?a=e:void 0}})),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[en]._onDragOver(n)}}var o,i,a},$n=function(e){sn&&sn.parentNode[en]._isOutsideThisEl(e.target)};function Zn(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=wt({},t),e[en]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return zn(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Zn.supportPointer&&"PointerEvent"in window&&!Dt,emptyInsertThreshold:5};for(var r in on.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in Gn(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&jn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Ot(e,"pointerdown",this._onTapStart):(Ot(e,"mousedown",this._onTapStart),Ot(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ot(e,"dragover",this),Ot(e,"dragenter",this)),Nn.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),wt(this,tn())}function Kn(e,t,n,r,o,i,a,l){var s,u,c=e[en],d=c.options.onMove;return!window.CustomEvent||St||Tt?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=r,s.related=o||t,s.relatedRect=i||Yt(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),d&&(u=d.call(c,s,a)),u}function er(e){e.draggable=!1}function tr(){Fn=!1}function nr(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function rr(e){return setTimeout(e,0)}function or(e){return clearTimeout(e)}Zn.prototype={constructor:Zn,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(_n=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,sn):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=r.filter;if(function(e){Xn.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Xn.push(r)}}(n),!sn&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!Dt||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=Nt(l,r.draggable,n,!1))&&l.animated||hn===l)){if(mn=Gt(l),yn=Gt(l,r.draggable),"function"==typeof u){if(u.call(this,e,l,this))return ln({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),an("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=Nt(s,r.trim(),n,!1))return ln({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),an("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!Nt(s,r.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,a=o.options,l=i.ownerDocument;if(n&&!sn&&n.parentNode===i){var s=Yt(n);if(dn=i,un=(sn=n).parentNode,fn=sn.nextSibling,hn=n,wn=a.group,Zn.dragged=sn,In={target:sn,clientX:(t||e).clientX,clientY:(t||e).clientY},xn=In.clientX-s.left,Dn=In.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,sn.style["will-change"]="all",r=function(){an("delayEnded",o,{evt:e}),Zn.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!xt&&o.nativeDraggable&&(sn.draggable=!0),o._triggerDragStart(e,t),ln({sortable:o,name:"choose",originalEvent:e}),Ht(sn,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){qt(sn,e.trim(),er)})),Ot(l,"dragover",Jn),Ot(l,"mousemove",Jn),Ot(l,"touchmove",Jn),Ot(l,"mouseup",o._onDrop),Ot(l,"touchend",o._onDrop),Ot(l,"touchcancel",o._onDrop),xt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,sn.draggable=!0),an("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(Tt||St))r();else{if(Zn.eventCanceled)return void this._onDrop();Ot(l,"mouseup",o._disableDelayedDrag),Ot(l,"touchend",o._disableDelayedDrag),Ot(l,"touchcancel",o._disableDelayedDrag),Ot(l,"mousemove",o._delayedDragTouchMoveHandler),Ot(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&Ot(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){sn&&er(sn),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ct(e,"mouseup",this._disableDelayedDrag),Ct(e,"touchend",this._disableDelayedDrag),Ct(e,"touchcancel",this._disableDelayedDrag),Ct(e,"mousemove",this._delayedDragTouchMoveHandler),Ct(e,"touchmove",this._delayedDragTouchMoveHandler),Ct(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Ot(document,"pointermove",this._onTouchMove):Ot(document,t?"touchmove":"mousemove",this._onTouchMove):(Ot(sn,"dragend",this),Ot(dn,"dragstart",this._onDragStart));try{document.selection?rr((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(An=!1,dn&&sn){an("dragStarted",this,{evt:t}),this.nativeDraggable&&Ot(document,"dragover",$n);var n=this.options;!e&&Ht(sn,n.dragClass,!1),Ht(sn,n.ghostClass,!0),Zn.active=this,e&&this._appendGhost(),ln({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(kn){this._lastX=kn.clientX,this._lastY=kn.clientY,Qn();for(var e=document.elementFromPoint(kn.clientX,kn.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(kn.clientX,kn.clientY))!==t;)t=e;if(sn.parentNode[en]._isOutsideThisEl(e),t)do{if(t[en]){if(t[en]._onDragOver({clientX:kn.clientX,clientY:kn.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Vn()}},_onTouchMove:function(e){if(In){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=cn&&Xt(cn,!0),a=cn&&i&&i.a,l=cn&&i&&i.d,s=Un&&Cn&&Qt(Cn),u=(o.clientX-In.clientX+r.x)/(a||1)+(s?s[0]-Hn[0]:0)/(a||1),c=(o.clientY-In.clientY+r.y)/(l||1)+(s?s[1]-Hn[1]:0)/(l||1);if(!Zn.active&&!An){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}(e,o,this)&&!g.animated){if(g===sn)return B(!1);if(g&&i===e.target&&(a=g),a&&(n=Yt(a)),!1!==Kn(dn,i,sn,t,a,n,e,!!a))return _(),i.appendChild(sn),un=i,O(),B(!0)}else if(a.parentNode===i){n=Yt(a);var m,v,y,b=sn.parentNode!==i,w=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return r===a||o===l||r+i/2===a+s/2}(sn.animated&&sn.toRect||t,a.animated&&a.toRect||n,o),E=o?"top":"left",I=jt(a,"top","top")||jt(sn,"top","top"),k=I?I.scrollTop:void 0;if(_n!==a&&(v=n[E],Ln=!1,Rn=!w&&l.invertSwap||b),0!==(m=function(e,t,n,r,o,i,a,l){var s=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!a)if(l&&Onc+u*i/2:sd-On)return-Bn}else if(s>c+u*(1-o)/2&&sd-u*i/2))return s>c+u/2?1:-1;return 0}(e,a,n,o,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Rn,_n===a))){var S=Gt(sn);do{S-=m,y=un.children[S]}while(y&&("none"===Ft(y,"display")||y===cn))}if(0===m||y===a)return B(!1);_n=a,Bn=m;var T=a.nextElementSibling,x=!1,D=Kn(dn,i,sn,t,a,n,e,x=1===m);if(!1!==D)return 1!==D&&-1!==D||(x=1===D),Fn=!0,setTimeout(tr,30),_(),x&&!T?i.appendChild(sn):a.parentNode.insertBefore(sn,x?T:a),I&&Zt(I,0,k-I.scrollTop),un=sn.parentNode,void 0===v||Rn||(On=Math.abs(v-Yt(a)[E])),O(),B(!0)}if(i.contains(sn))return B(!1)}return!1}function P(l,s){an(l,h,Et({evt:e,isOwner:c,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:a,completed:B,onMove:function(n,r){return Kn(dn,i,sn,t,n,Yt(n),e,r)},changed:O},s))}function _(){P("dragOverAnimationCapture"),h.captureAnimationState(),h!==f&&f.captureAnimationState()}function B(t){return P("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(h),h!==f&&(Ht(sn,En?En.options.ghostClass:u.options.ghostClass,!1),Ht(sn,l.ghostClass,!0)),En!==h&&h!==Zn.active?En=h:h===Zn.active&&En&&(En=null),f===h&&(h._ignoreWhileAnimating=a),h.animateAll((function(){P("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===sn&&!sn.animated||a===i&&!a.animated)&&(_n=null),l.dragoverBubble||e.rootEl||a===document||(sn.parentNode[en]._isOutsideThisEl(e.target),!t&&Jn(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function O(){vn=Gt(sn),bn=Gt(sn,l.draggable),ln({sortable:h,name:"change",toEl:i,newIndex:vn,newDraggableIndex:bn,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ct(document,"mousemove",this._onTouchMove),Ct(document,"touchmove",this._onTouchMove),Ct(document,"pointermove",this._onTouchMove),Ct(document,"dragover",Jn),Ct(document,"mousemove",Jn),Ct(document,"touchmove",Jn)},_offUpEvents:function(){var e=this.el.ownerDocument;Ct(e,"mouseup",this._onDrop),Ct(e,"touchend",this._onDrop),Ct(e,"pointerup",this._onDrop),Ct(e,"touchcancel",this._onDrop),Ct(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;vn=Gt(sn),bn=Gt(sn,n.draggable),an("drop",this,{evt:e}),un=sn&&sn.parentNode,vn=Gt(sn),bn=Gt(sn,n.draggable),Zn.eventCanceled||(An=!1,Rn=!1,Ln=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),or(this.cloneId),or(this._dragStartId),this.nativeDraggable&&(Ct(document,"drop",this),Ct(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Dt&&Ft(document.body,"user-select",""),Ft(sn,"transform",""),e&&(Pn&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),cn&&cn.parentNode&&cn.parentNode.removeChild(cn),(dn===un||En&&"clone"!==En.lastPutMode)&&pn&&pn.parentNode&&pn.parentNode.removeChild(pn),sn&&(this.nativeDraggable&&Ct(sn,"dragend",this),er(sn),sn.style["will-change"]="",Pn&&!An&&Ht(sn,En?En.options.ghostClass:this.options.ghostClass,!1),Ht(sn,this.options.chosenClass,!1),ln({sortable:this,name:"unchoose",toEl:un,newIndex:null,newDraggableIndex:null,originalEvent:e}),dn!==un?(vn>=0&&(ln({rootEl:un,name:"add",toEl:un,fromEl:dn,originalEvent:e}),ln({sortable:this,name:"remove",toEl:un,originalEvent:e}),ln({rootEl:un,name:"sort",toEl:un,fromEl:dn,originalEvent:e}),ln({sortable:this,name:"sort",toEl:un,originalEvent:e})),En&&En.save()):vn!==mn&&vn>=0&&(ln({sortable:this,name:"update",toEl:un,originalEvent:e}),ln({sortable:this,name:"sort",toEl:un,originalEvent:e})),Zn.active&&(null!=vn&&-1!==vn||(vn=mn,bn=yn),ln({sortable:this,name:"end",toEl:un,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){an("nulling",this),dn=sn=un=cn=fn=pn=hn=gn=In=kn=Pn=vn=bn=mn=yn=_n=Bn=En=wn=Zn.dragged=Zn.ghost=Zn.clone=Zn.active=null,Xn.forEach((function(e){e.checked=!0})),Xn.length=Sn=Tn=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":sn&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Dt(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Pt=Dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_t=Dt(/Edge/i),Bt=Dt(/firefox/i),Ct=Dt(/safari/i)&&!Dt(/chrome/i)&&!Dt(/android/i),Ot=Dt(/iP(ad|od|hone)/i),Mt=Dt(/chrome/i)&&Dt(/android/i),At={capture:!1,passive:!1};function Nt(e,t,n){e.addEventListener(t,n,!Pt&&At)}function Lt(e,t,n){e.removeEventListener(t,n,!Pt&&At)}function Rt(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function Ht(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ft(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Rt(e,t):Rt(e,t))||r&&e===n)return e;if(e===n)break}while(e=Ht(e))}return null}var Xt,qt=/\s+/g;function Ut(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(qt," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(qt," ")}}function Yt(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function jt(e,t){var n="";if("string"==typeof e)n=e;else do{var r=Yt(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function Wt(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o=i:o<=i))return r;if(r===zt())break;r=Kt(r,!1)}return!1}function Vt(e,t,n){for(var r=0,o=0,i=e.children;o2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=xt(n,["evt"]);un.pluginEvent.bind(nr)(e,t,Tt({dragEl:fn,parentEl:hn,ghostEl:pn,rootEl:gn,nextEl:mn,lastDownEl:vn,cloneEl:yn,cloneHidden:bn,dragStarted:On,putSortable:Tn,activeSortable:nr.active,originalEvent:r,oldIndex:wn,oldDraggableIndex:In,newIndex:En,newDraggableIndex:kn,hideGhostForTarget:Zn,unhideGhostForTarget:Kn,cloneNowHidden:function(){bn=!0},cloneNowShown:function(){bn=!1},dispatchSortableEvent:function(e){dn({sortable:t,name:e,originalEvent:r})}},o))};function dn(e){!function(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,i=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,h=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[on]){var g,m=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||Pt||_t?(g=document.createEvent("Event")).initEvent(r,!0,!0):g=new CustomEvent(r,{bubbles:!0,cancelable:!0}),g.to=a||n,g.from=s||n,g.item=o||n,g.clone=i,g.oldIndex=l,g.newIndex=u,g.oldDraggableIndex=c,g.newDraggableIndex=d,g.originalEvent=f,g.pullMode=h?h.lastPutMode:void 0;var y=Tt({},p,un.getEventProperties(r,t));for(var b in y)g[b]=y[b];n&&n.dispatchEvent(g),m[v]&&m[v].call(t,g)}}(Tt({putSortable:Tn,cloneEl:yn,targetEl:fn,rootEl:gn,oldIndex:wn,oldDraggableIndex:In,newIndex:En,newDraggableIndex:kn},e))}var fn,hn,pn,gn,mn,vn,yn,bn,wn,En,In,kn,Sn,Tn,xn,Dn,Pn,_n,Bn,Cn,On,Mn,An,Nn,Ln,Rn=!1,Hn=!1,Fn=[],Xn=!1,qn=!1,Un=[],Yn=!1,jn=[],Wn="undefined"!=typeof document,zn=Ot,Gn=_t||Pt?"cssFloat":"float",Qn=Wn&&!Mt&&!Ot&&"draggable"in document.createElement("div"),Vn=function(){if(Wn){if(Pt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Jn=function(e,t){var n=Yt(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=Vt(e,0,t),i=Vt(e,1,t),a=o&&Yt(o),s=i&&Yt(i),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Gt(o).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Gt(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!i||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[Gn]||i&&"none"===n[Gn]&&l+u>r)?"vertical":"horizontal"},$n=function(e){function t(e,n){return function(r,o,i,a){var s=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,a),n)(r,o,i,a);var l=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==It(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Zn=function(){!Vn&&pn&&Yt(pn,"display","none")},Kn=function(){!Vn&&pn&&Yt(pn,"display","")};Wn&&document.addEventListener("click",(function(e){if(Hn)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Hn=!1,!1}),!0);var er=function(e){if(fn){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,i=e.clientY,Fn.some((function(e){if(!Jt(e)){var t=Gt(e),n=e[on].options.emptyInsertThreshold,r=o>=t.left-n&&o<=t.right+n,s=i>=t.top-n&&i<=t.bottom+n;return n&&r&&s?a=e:void 0}})),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[on]._onDragOver(n)}}var o,i,a},tr=function(e){fn&&fn.parentNode[on]._isOutsideThisEl(e.target)};function nr(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=St({},t),e[on]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Jn(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==nr.supportPointer&&"PointerEvent"in window&&!Ct,emptyInsertThreshold:5};for(var r in un.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in $n(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&Qn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Nt(e,"pointerdown",this._onTapStart):(Nt(e,"mousedown",this._onTapStart),Nt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Nt(e,"dragover",this),Nt(e,"dragenter",this)),Fn.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),St(this,an())}function rr(e,t,n,r,o,i,a,s){var l,u,c=e[on],d=c.options.onMove;return!window.CustomEvent||Pt||_t?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=o||t,l.relatedRect=i||Gt(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),d&&(u=d.call(c,l,a)),u}function or(e){e.draggable=!1}function ir(){Yn=!1}function ar(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function sr(e){return setTimeout(e,0)}function lr(e){return clearTimeout(e)}nr.prototype={constructor:nr,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Mn=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,fn):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(function(e){jn.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&jn.push(r)}}(n),!fn&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!Ct||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=Ft(s,r.draggable,n,!1))&&s.animated||vn===s)){if(wn=$t(s),In=$t(s,r.draggable),"function"==typeof u){if(u.call(this,e,s,this))return dn({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),cn("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=Ft(l,r.trim(),n,!1))return dn({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),cn("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!Ft(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,a=o.options,s=i.ownerDocument;if(n&&!fn&&n.parentNode===i){var l=Gt(n);if(gn=i,hn=(fn=n).parentNode,mn=fn.nextSibling,vn=n,Sn=a.group,nr.dragged=fn,xn={target:fn,clientX:(t||e).clientX,clientY:(t||e).clientY},Bn=xn.clientX-l.left,Cn=xn.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,fn.style["will-change"]="all",r=function(){cn("delayEnded",o,{evt:e}),nr.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!Bt&&o.nativeDraggable&&(fn.draggable=!0),o._triggerDragStart(e,t),dn({sortable:o,name:"choose",originalEvent:e}),Ut(fn,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Wt(fn,e.trim(),or)})),Nt(s,"dragover",er),Nt(s,"mousemove",er),Nt(s,"touchmove",er),Nt(s,"mouseup",o._onDrop),Nt(s,"touchend",o._onDrop),Nt(s,"touchcancel",o._onDrop),Bt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,fn.draggable=!0),cn("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(_t||Pt))r();else{if(nr.eventCanceled)return void this._onDrop();Nt(s,"mouseup",o._disableDelayedDrag),Nt(s,"touchend",o._disableDelayedDrag),Nt(s,"touchcancel",o._disableDelayedDrag),Nt(s,"mousemove",o._delayedDragTouchMoveHandler),Nt(s,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&Nt(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){fn&&or(fn),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Lt(e,"mouseup",this._disableDelayedDrag),Lt(e,"touchend",this._disableDelayedDrag),Lt(e,"touchcancel",this._disableDelayedDrag),Lt(e,"mousemove",this._delayedDragTouchMoveHandler),Lt(e,"touchmove",this._delayedDragTouchMoveHandler),Lt(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Nt(document,"pointermove",this._onTouchMove):Nt(document,t?"touchmove":"mousemove",this._onTouchMove):(Nt(fn,"dragend",this),Nt(gn,"dragstart",this._onDragStart));try{document.selection?sr((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Rn=!1,gn&&fn){cn("dragStarted",this,{evt:t}),this.nativeDraggable&&Nt(document,"dragover",tr);var n=this.options;!e&&Ut(fn,n.dragClass,!1),Ut(fn,n.ghostClass,!0),nr.active=this,e&&this._appendGhost(),dn({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Dn){this._lastX=Dn.clientX,this._lastY=Dn.clientY,Zn();for(var e=document.elementFromPoint(Dn.clientX,Dn.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Dn.clientX,Dn.clientY))!==t;)t=e;if(fn.parentNode[on]._isOutsideThisEl(e),t)do{if(t[on]){if(t[on]._onDragOver({clientX:Dn.clientX,clientY:Dn.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Kn()}},_onTouchMove:function(e){if(xn){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=pn&&jt(pn,!0),a=pn&&i&&i.a,s=pn&&i&&i.d,l=zn&&Ln&&Zt(Ln),u=(o.clientX-xn.clientX+r.x)/(a||1)+(l?l[0]-Un[0]:0)/(a||1),c=(o.clientY-xn.clientY+r.y)/(s||1)+(l?l[1]-Un[1]:0)/(s||1);if(!nr.active&&!Rn){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}(e,o,this)&&!g.animated){if(g===fn)return B(!1);if(g&&i===e.target&&(a=g),a&&(n=Gt(a)),!1!==rr(gn,i,fn,t,a,n,e,!!a))return _(),i.appendChild(fn),hn=i,C(),B(!0)}else if(a.parentNode===i){n=Gt(a);var m,v,y,b=fn.parentNode!==i,w=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||o===s||r+i/2===a+l/2}(fn.animated&&fn.toRect||t,a.animated&&a.toRect||n,o),E=o?"top":"left",I=Qt(a,"top","top")||Qt(fn,"top","top"),k=I?I.scrollTop:void 0;if(Mn!==a&&(v=n[E],Xn=!1,qn=!w&&s.invertSwap||b),0!==(m=function(e,t,n,r,o,i,a,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!a)if(s&&Nnc+u*i/2:ld-Nn)return-An}else if(l>c+u*(1-o)/2&&ld-u*i/2))return l>c+u/2?1:-1;return 0}(e,a,n,o,w?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,qn,Mn===a))){var S=$t(fn);do{S-=m,y=hn.children[S]}while(y&&("none"===Yt(y,"display")||y===pn))}if(0===m||y===a)return B(!1);Mn=a,An=m;var T=a.nextElementSibling,x=!1,D=rr(gn,i,fn,t,a,n,e,x=1===m);if(!1!==D)return 1!==D&&-1!==D||(x=1===D),Yn=!0,setTimeout(ir,30),_(),x&&!T?i.appendChild(fn):a.parentNode.insertBefore(fn,x?T:a),I&&nn(I,0,k-I.scrollTop),hn=fn.parentNode,void 0===v||qn||(Nn=Math.abs(v-Gt(a)[E])),C(),B(!0)}if(i.contains(fn))return B(!1)}return!1}function P(s,l){cn(s,h,Tt({evt:e,isOwner:c,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:a,completed:B,onMove:function(n,r){return rr(gn,i,fn,t,n,Gt(n),e,r)},changed:C},l))}function _(){P("dragOverAnimationCapture"),h.captureAnimationState(),h!==f&&f.captureAnimationState()}function B(t){return P("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(h),h!==f&&(Ut(fn,Tn?Tn.options.ghostClass:u.options.ghostClass,!1),Ut(fn,s.ghostClass,!0)),Tn!==h&&h!==nr.active?Tn=h:h===nr.active&&Tn&&(Tn=null),f===h&&(h._ignoreWhileAnimating=a),h.animateAll((function(){P("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===fn&&!fn.animated||a===i&&!a.animated)&&(Mn=null),s.dragoverBubble||e.rootEl||a===document||(fn.parentNode[on]._isOutsideThisEl(e.target),!t&&er(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function C(){En=$t(fn),kn=$t(fn,s.draggable),dn({sortable:h,name:"change",toEl:i,newIndex:En,newDraggableIndex:kn,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Lt(document,"mousemove",this._onTouchMove),Lt(document,"touchmove",this._onTouchMove),Lt(document,"pointermove",this._onTouchMove),Lt(document,"dragover",er),Lt(document,"mousemove",er),Lt(document,"touchmove",er)},_offUpEvents:function(){var e=this.el.ownerDocument;Lt(e,"mouseup",this._onDrop),Lt(e,"touchend",this._onDrop),Lt(e,"pointerup",this._onDrop),Lt(e,"touchcancel",this._onDrop),Lt(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;En=$t(fn),kn=$t(fn,n.draggable),cn("drop",this,{evt:e}),hn=fn&&fn.parentNode,En=$t(fn),kn=$t(fn,n.draggable),nr.eventCanceled||(Rn=!1,qn=!1,Xn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),lr(this.cloneId),lr(this._dragStartId),this.nativeDraggable&&(Lt(document,"drop",this),Lt(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ct&&Yt(document.body,"user-select",""),Yt(fn,"transform",""),e&&(On&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),pn&&pn.parentNode&&pn.parentNode.removeChild(pn),(gn===hn||Tn&&"clone"!==Tn.lastPutMode)&&yn&&yn.parentNode&&yn.parentNode.removeChild(yn),fn&&(this.nativeDraggable&&Lt(fn,"dragend",this),or(fn),fn.style["will-change"]="",On&&!Rn&&Ut(fn,Tn?Tn.options.ghostClass:this.options.ghostClass,!1),Ut(fn,this.options.chosenClass,!1),dn({sortable:this,name:"unchoose",toEl:hn,newIndex:null,newDraggableIndex:null,originalEvent:e}),gn!==hn?(En>=0&&(dn({rootEl:hn,name:"add",toEl:hn,fromEl:gn,originalEvent:e}),dn({sortable:this,name:"remove",toEl:hn,originalEvent:e}),dn({rootEl:hn,name:"sort",toEl:hn,fromEl:gn,originalEvent:e}),dn({sortable:this,name:"sort",toEl:hn,originalEvent:e})),Tn&&Tn.save()):En!==wn&&En>=0&&(dn({sortable:this,name:"update",toEl:hn,originalEvent:e}),dn({sortable:this,name:"sort",toEl:hn,originalEvent:e})),nr.active&&(null!=En&&-1!==En||(En=wn,kn=In),dn({sortable:this,name:"end",toEl:hn,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){cn("nulling",this),gn=fn=hn=pn=mn=yn=vn=bn=xn=Dn=On=En=kn=wn=In=Mn=An=Tn=Sn=nr.dragged=nr.ghost=nr.clone=nr.active=null,jn.forEach((function(e){e.checked=!0})),jn.length=Pn=_n=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":fn&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r Date: Tue, 25 May 2021 11:09:42 -0700 Subject: [PATCH 05/23] updated ignore file --- .gitignore | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1ed5a58..95e2b1a 100644 --- a/.gitignore +++ b/.gitignore @@ -41,4 +41,31 @@ config/tags.json config.codekit3 /config/backups -/src \ No newline at end of file +/src +/src/com/Base.js +/src/com/controllers/SettingsIndex.js +/src/styles/main/_colors.sass +/src/styles/main/_forms.sass +/src/styles/main/_index.sass +/src/styles/main/_navigation.sass +/src/styles/main/_posts.sass +/src/styles/main/_settings.sass +/src/styles/main/_structure.sass +/src/com/Base.js +/src/com/controllers/SettingsIndex.js +/src/styles/main/_colors.sass +/src/styles/main/_forms.sass +/src/styles/main/_index.sass +/src/styles/main/_navigation.sass +/src/styles/main/_posts.sass +/src/styles/main/_settings.sass +/src/styles/main/_structure.sass +/src/com/Base.js +/src/com/controllers/SettingsIndex.js +/src/styles/main/_colors.sass +/src/styles/main/_forms.sass +/src/styles/main/_index.sass +/src/styles/main/_navigation.sass +/src/styles/main/_posts.sass +/src/styles/main/_settings.sass +/src/styles/main/_structure.sass \ No newline at end of file -- 2.25.1 From 3706a81c5f5266c589eb849db66acdb873c7166e Mon Sep 17 00:00:00 2001 From: Ro Date: Wed, 26 May 2021 19:19:35 +0000 Subject: [PATCH 06/23] quick fix for composer settings file --- composer.json | 52 +++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/composer.json b/composer.json index 4a76845..6bf31ba 100644 --- a/composer.json +++ b/composer.json @@ -1,29 +1,29 @@ { - "name":"fipamo", - "descriptions":"The most chill no database blog framework ever.", - "version":"2.1.0-beta", - "homepage":"https://fipamo.blog", - "authors": [ - { - "name": "Are0h", - "homepage": "https://roiskinda.cool" - } - ], - "support": { - "source": "https://code.playvicio.us/Are0h/Fipamo", - "wiki": "https://code.playvicio.us/Are0h/Fipamo/wiki/_pages", - "issues":"https://code.playvicio.us/Are0h/Fipamo/issues" - }, - "require": { - "slim/slim": "4.*", - "slim/psr7": "^1.2", - "twig/twig": "^3.0", - "slim/twig-view": "^3.0", - "mnapoli/front-yaml": "^1.8", - "lodash-php/lodash-php": "^0.0.7", - "rbdwllr/reallysimplejwt": "^4.0", - "fightbulc/moment": "^1.33", - "tgalopin/html-sanitizer": "^1.4", - "phpmailer/phpmailer": "^6.4" + "name": "are0h/fipamo", + "descriptions": "The most chill no database blog framework ever.", + "version": "2.1.0-beta", + "homepage": "https://fipamo.blog", + "authors": [ + { + "name": "Are0h", + "homepage": "https://roiskinda.cool" } + ], + "support": { + "source": "https://code.playvicio.us/Are0h/Fipamo", + "wiki": "https://code.playvicio.us/Are0h/Fipamo/wiki/_pages", + "issues": "https://code.playvicio.us/Are0h/Fipamo/issues" + }, + "require": { + "slim/slim": "4.*", + "slim/psr7": "^1.2", + "twig/twig": "^3.0", + "slim/twig-view": "^3.0", + "mnapoli/front-yaml": "^1.8", + "lodash-php/lodash-php": "^0.0.7", + "rbdwllr/reallysimplejwt": "^4.0", + "fightbulc/moment": "^1.33", + "tgalopin/html-sanitizer": "^1.4", + "phpmailer/phpmailer": "^6.4" + } } -- 2.25.1 From 46691b454d316fbad4280d13ca25ebcefc57dc11 Mon Sep 17 00:00:00 2001 From: Ro Date: Tue, 15 Jun 2021 12:48:17 -0700 Subject: [PATCH 07/23] added FipamoAPI class --- .gitignore | 42 +------ src/libraries/FipamoAPI.js | 227 +++++++++++++++++++++++++++++++++++++ 2 files changed, 230 insertions(+), 39 deletions(-) create mode 100644 src/libraries/FipamoAPI.js diff --git a/.gitignore b/.gitignore index 7865849..d2c8abd 100644 --- a/.gitignore +++ b/.gitignore @@ -41,42 +41,6 @@ config/tags.json config.codekit3 /config/backups -/src -/src/com/Base.js -/src/com/controllers/SettingsIndex.js -/src/styles/main/_colors.sass -/src/styles/main/_forms.sass -/src/styles/main/_index.sass -/src/styles/main/_navigation.sass -/src/styles/main/_posts.sass -/src/styles/main/_settings.sass -/src/styles/main/_structure.sass -/src/com/Base.js -/src/com/controllers/SettingsIndex.js -/src/styles/main/_colors.sass -/src/styles/main/_forms.sass -/src/styles/main/_index.sass -/src/styles/main/_navigation.sass -/src/styles/main/_posts.sass -/src/styles/main/_settings.sass -/src/styles/main/_structure.sass -/src/com/Base.js -/src/com/controllers/SettingsIndex.js -/src/styles/main/_colors.sass -/src/styles/main/_forms.sass -/src/styles/main/_index.sass -/src/styles/main/_navigation.sass -/src/styles/main/_posts.sass -/src/styles/main/_settings.sass -/src/styles/main/_structure.sass -/src/com/Base.js -/src/com/actions/Mailer.js -/src/com/actions/NavActions.js -/src/com/actions/SettingsActions.js -/src/com/controllers/NavIndex.js -/src/com/controllers/PageEditor.js -/src/com/controllers/SettingsIndex.js -/src/com/ui/TextEditor.js -/src/libraries/FipamoAPI.js -/src/styles/main/_settings.sass -/src/libraries/FipamoAPI.js \ No newline at end of file +/src/com +/src/style +/src/node_modules diff --git a/src/libraries/FipamoAPI.js b/src/libraries/FipamoAPI.js new file mode 100644 index 0000000..e2295fb --- /dev/null +++ b/src/libraries/FipamoAPI.js @@ -0,0 +1,227 @@ +//** REQUEST TYPES **// +export const REQUEST_TYPE_POST = "POST"; +export const REQUEST_TYPE_GET = "GET"; +export const REQUEST_TYPE_PUT = "PUT"; +export const REQUEST_TYPE_DELETE = "DELETE"; +//** POST CONTENT TYPES **// +export const CONTENT_TYPE_JSON = "json"; +export const CONTENT_TYPE_FORM = "x-www-form-urlencoded"; +//** API URLS **// +export const API_STATUS = "/api/v1/status"; +export const API_INIT = "/api/v1/init"; +export const API_RESTORE = "/api/v1/restore"; +export const API_LOGIN = "/api/v1/login"; +export const API_GET_PAGES = "/api/v1/page/published"; +export const API_GET_PAGE = "/api/v1/page/single"; +export const API_GET_SECRET = "/api/v1/get-secret"; +export const API_RESET_PASS = "/api/v1/reset-password"; +//** API TASKS **// +export const AUTH_STATUS = "getAuthStatus"; +export const TASK_SITE_INIT = "blogInit"; +export const TASK_BACKUP_RESTORE = "downloadBackup"; +export const TASK_GET_SECRET = "retrieveSecret"; +export const TASK_RESET_PASS = "resetPassword"; +export const TASK_GET_CONTENT = "retrieveContent"; + +export default class FipamoAPI { + //-------------------------- + // constructor + //-------------------------- + constructor(baseURL = null) { + this.baseURL = null; + if (baseURL) { + this.baseURL = baseURL; + } + } + //-------------------------- + // methods + //-------------------------- + + //** MEMBER AUTH METHODS **// + login(data) { + return new Promise((resolve, reject) => { + this._request( + this.baseURL ? this.baseURL + API_LOGIN : API_LOGIN, + AUTH_STATUS, + REQUEST_TYPE_POST, + CONTENT_TYPE_JSON, + data + ) + .then((result) => { + resolve(result); + }) + .catch((err) => { + reject(err); + }); + }); + } + init(data) { + return new Promise((resolve, reject) => { + this._request( + API_INIT, + TASK_SITE_INIT, + REQUEST_TYPE_POST, + CONTENT_TYPE_JSON, + data + ) + .then((result) => { + resolve(result); + }) + .catch((err) => { + reject(err); + }); + }); + } + + handleInitRestore(form) { + return new Promise((resolve, reject) => { + var url, event, method, type, data; + + url = API_RESTORE; + event = TASK_BACKUP_RESTORE; + method = REQUEST_TYPE_POST; + type = CONTENT_TYPE_FORM; + data = new FormData(form); + this._request(url, event, method, type, data) + .then((result) => { + resolve(result); + }) + .catch((err) => { + reject(err); + }); + }); + } + + getSecret(data) { + return new Promise((resolve, reject) => { + this._request( + API_GET_SECRET, + TASK_GET_SECRET, + REQUEST_TYPE_POST, + CONTENT_TYPE_JSON, + data + ) + .then((result) => { + resolve(result); + }) + .catch((err) => { + reject(err); + }); + }); + } + + setNewPass(data) { + return new Promise((resolve, reject) => { + this._request( + API_RESET_PASS, + TASK_RESET_PASS, + REQUEST_TYPE_POST, + CONTENT_TYPE_JSON, + data + ) + .then((result) => { + resolve(result); + }) + .catch((err) => { + reject(err); + }); + }); + } + + //** CONTENT API METHODS **// + + getPages(num, key) { + let pageNum = num; + if (pageNum === null || pageNum === "" || !pageNum) pageNum = 1; + return new Promise((resolve, reject) => { + this._request( + this.baseURL + ? this.baseURL + API_GET_PAGES + "?key=" + key + : API_GET_PAGES, + TASK_GET_CONTENT, + REQUEST_TYPE_GET + ) + .then((result) => { + resolve(result); + }) + .catch((err) => { + reject(err); + }); + }); + } + + getPage(id, key) { + return new Promise((resolve, reject) => { + this._request( + //API_GET_PAGE + "/" + id + "?key=" + key, + this.baseURL + ? this.baseURL + API_GET_PAGE + "/" + id + "?key=" + key + : API_GET_PAGE, + TASK_GET_CONTENT, + REQUEST_TYPE_GET + ) + .then((result) => { + resolve(result); + }) + .catch((err) => { + reject(err); + }); + }); + } + //-------------------------- + // private + //-------------------------- + _request( + requestURL, + eventType, + requestType = REQUEST_TYPE_GET, + contentType = CONTENT_TYPE_JSON, + requestData = null + ) { + var self = this; + return new Promise(function (resolve, reject) { + var request = new XMLHttpRequest(); + request.upload.onprogress = self.handleLoadProgress; + request.open(requestType, requestURL, true); + request.onload = () => { + if (request.status == 200) { + let response = JSON.parse(request["response"]); + resolve(response); + } else { + let error = JSON.parse(request["response"]); + reject(error); + } + }; + if (requestType == REQUEST_TYPE_PUT || requestType == REQUEST_TYPE_POST) { + switch (contentType) { + case CONTENT_TYPE_JSON: + request.setRequestHeader( + "Content-type", + "application/" + contentType + ); + /** + request.setRequestHeader( + "Access-Control-Allow-Origin", + self.baseURL + ); + **/ + request.send(JSON.stringify(requestData)); + break; + case CONTENT_TYPE_FORM: + request.send(requestData); + break; + } + } else { + request.send(); + } + }); + } + + //-------------------------- + // event handlers + //-------------------------- + handleLoadProgress(e) { + this.percentComplete = Math.ceil((e.loaded / e.total) * 100); + //pass element to display request progress + } +} -- 2.25.1 From 7f3be4c0c560a2cd5e10e12c47797b189e7a026d Mon Sep 17 00:00:00 2001 From: Ro Date: Wed, 30 Jun 2021 14:13:34 -0700 Subject: [PATCH 08/23] removed unnecessary script --- src/com/controllers/MaintenanceManager.js | 284 ---------------------- 1 file changed, 284 deletions(-) delete mode 100644 src/com/controllers/MaintenanceManager.js diff --git a/src/com/controllers/MaintenanceManager.js b/src/com/controllers/MaintenanceManager.js deleted file mode 100644 index 8c4d8bb..0000000 --- a/src/com/controllers/MaintenanceManager.js +++ /dev/null @@ -1,284 +0,0 @@ -//** REQUEST TYPES **// -export const REQUEST_TYPE_POST = "POST"; -export const REQUEST_TYPE_GET = "GET"; -export const REQUEST_TYPE_PUT = "PUT"; -export const REQUEST_TYPE_DELETE = "DELETE"; -//** POST CONTENT TYPES **// -export const CONTENT_TYPE_JSON = "json"; -export const CONTENT_TYPE_FORM = "x-www-form-urlencoded"; -//** API URLS **// -export const API_STATUS = "/api/v1/status"; -export const API_INIT = "/api/v1/init"; -export const API_RESTORE = "/api/v1/restore"; -export const API_GET_SECRET = "/api/v1/get-secret"; -export const API_RESET_PASS = "/api/v1/reset-password"; -export const API_CREATE_BACKUP = "/api/v1/backup"; -export const API_DOWNLOAD_BACKUP = "/api/v1/backup/download"; -export const API_RESTORE_BACKUP = "/api/v1/backup/restore"; -export const API_UPLOAD_AVATAR = "/api/v1/settings/add-avatar"; -export const API_UPLOAD_BACKGROUND = "/api/v1/settings/add-feature-background"; -export const API_IMAGE_UPLOAD = "/api/v1/page/add-entry-image"; -//** API TASKS **// -export const TASK_SITE_INIT = "blogInit"; -export const TASK_BACKUP_RESTORE = "restoreBackup"; -export const TASK_BACKUP_CREATE = "createBackup"; -export const TASK_GET_SECRET = "retrieveSecret"; -export const TASK_RESET_PASS = "resetPassword"; -export const TASK_UPLOAD_FILES = "uploadFiles"; - -/** - * A tub of methods for creating/restoring installs, resetting passwords and uploading images. - */ -class FipamoUtilityAPI { - /** - * @constructor - * @param {string} baseURL - url of site; uses local when empty - * @param {string} key - user api key - */ - constructor(baseURL = null, key = null) { - this.baseURL = null; - this.key = null; - if (key) this.key = key; - if (baseURL) this.baseURL = baseURL; - } - - /** - * Promise method used create new site from scratch. For local use only. - * @param {object} data - json object that contains data for set up - * @property {string} new_member_handle - handle for new user - * @property {string} new_member_email - email for new user - * @property {string} new_member_pass - password for new user - * @property {string} new_member_title - title for new user - */ - create(data) { - return new Promise((resolve, reject) => { - this._request( - API_INIT, - TASK_SITE_INIT, - REQUEST_TYPE_POST, - CONTENT_TYPE_JSON, - data - ) - .then((result) => { - resolve(result); - }) - .catch((err) => { - reject(err); - }); - }); - } - /** - * Promise method for restoring site from a previous back up. For local use only. - * @param {object} form - form object that contains restore data and files - * @property {string} restore_member_handle - handle for site user - * @property {string} restore_member_pass - password for site user - * @property {file} backup-upload - backup zip file - */ - restore(form) { - return new Promise((resolve, reject) => { - var url, event, method, type, data; - - url = API_RESTORE; - event = TASK_BACKUP_RESTORE; - method = REQUEST_TYPE_POST; - type = CONTENT_TYPE_FORM; - data = new FormData(form); - this._request(url, event, method, type, data) - .then((result) => { - resolve(result); - }) - .catch((err) => { - reject(err); - }); - }); - } - /** - * Promise method for creating a zip back up of current site. For local use only. - */ - - backup() { - return new Promise((resolve, reject) => { - var url, event, method, type, data; - - url = API_CREATE_BACKUP; - event = TASK_BACKUP_CREATE; - method = REQUEST_TYPE_POST; - type = CONTENT_TYPE_JSON; - data = { task: "create_backup" }; - - this._request(url, event, method, type, data) - .then((result) => { - resolve(result); - }) - .catch((err) => { - reject(err); - }); - }); - } - - /** - * Promise method for retrieving user secret key. For local use only. - * @param {object} data - json object that contains data for set up - * @property {string} email - email for site user - */ - - secret(data) { - return new Promise((resolve, reject) => { - this._request( - API_GET_SECRET, - TASK_GET_SECRET, - REQUEST_TYPE_POST, - CONTENT_TYPE_JSON, - data - ) - .then((result) => { - resolve(result); - }) - .catch((err) => { - reject(err); - }); - }); - } - /** - * Promise method for resetting password for user. For local use only. - * @param {object} data - json object that contains data for set up - * @property {string} new_password - password for user - * @property {string} new_password2 - confirm password for user - * @property {string} secret - secret key for user - */ - - newPass(data) { - return new Promise((resolve, reject) => { - this._request( - API_RESET_PASS, - TASK_RESET_PASS, - REQUEST_TYPE_POST, - CONTENT_TYPE_JSON, - data - ) - .then((result) => { - resolve(result); - }) - .catch((err) => { - reject(err); - }); - }); - } - - /** - * Promise method for uploading images [todo: change to uploading files] - * @param {string} type - type of upload - * @param {input} files - form input containing files - */ - imageUpload(type, files) { - return new Promise((resolve, reject) => { - let url = ""; - switch (type) { - case "avatar-upload": - url = API_UPLOAD_AVATAR; - break; - case "background-upload": - url = API_UPLOAD_BACKGROUND; - break; - default: - url = API_IMAGE_UPLOAD; - break; - } - var imageData = new FormData(); - - if (this.baseURL) { - imageData.append("key", this.key); - imageData.append("remote", true); - } else { - imageData.append("remote", false); - } - - for (var i = 0; i < files.length; i++) { - var file = files[i]; - // Check the file type. - if (!file.type.match("image.*")) { - continue; - } - if (type === "avatar-upload") { - imageData.append("avatar_upload", file, file.name); - } else if (type === "background-upload") { - imageData.append("background_upload", file, file.name); - } else { - imageData.append("post_image", file, file.name); - } - } - this._request( - url, - TASK_UPLOAD_FILES, - REQUEST_TYPE_POST, - CONTENT_TYPE_FORM, - imageData - ) - .then((r) => { - resolve(r); - }) - .catch((err) => { - reject(err); - }); - }); - } - - //-------------------------- - // private - //-------------------------- - _request( - requestURL, - eventType, - requestType = REQUEST_TYPE_GET, - contentType = CONTENT_TYPE_JSON, - requestData = null - ) { - var self = this; - return new Promise(function (resolve, reject) { - var request = new XMLHttpRequest(); - request.upload.onprogress = self.handleLoadProgress; - request.open(requestType, requestURL, true); - request.onload = () => { - if (request.status == 200) { - let response = JSON.parse(request["response"]); - resolve(response); - } else { - let error = JSON.parse(request["response"]); - reject(error); - } - }; - if (requestType == REQUEST_TYPE_PUT || requestType == REQUEST_TYPE_POST) { - switch (contentType) { - case CONTENT_TYPE_JSON: - request.setRequestHeader( - "Content-type", - "application/" + contentType - ); - /** - request.setRequestHeader( - "Access-Control-Allow-Origin", - self.baseURL - ); - **/ - request.send(JSON.stringify(requestData)); - break; - case CONTENT_TYPE_FORM: - request.send(requestData); - break; - } - } else { - request.send(); - } - }); - } - - //-------------------------- - // event handlers - //-------------------------- - handleLoadProgress(e) { - this.percentComplete = Math.ceil((e.loaded / e.total) * 100); - //pass element to display request progress - } -} - -export { FipamoUtilityAPI as default }; -- 2.25.1 From 4f4ee5dfc78b5f21f2c8723637170b88ab615c06 Mon Sep 17 00:00:00 2001 From: Ro Date: Mon, 8 Nov 2021 13:59:49 -0800 Subject: [PATCH 09/23] updated gitignore --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 48976be..e82f135 100644 --- a/.gitignore +++ b/.gitignore @@ -50,4 +50,6 @@ config.codekit3 /src/com/controllers/SettingsIndex.js /src/libraries/FipamoAPI.js /src/package-lock.json -/src/package.json \ No newline at end of file +/src/package.json +/public/assets/images/global/rikc-logo.svg +/src/styles/ \ No newline at end of file -- 2.25.1 From 55b16a0acdc08c2a1416a0be4b809f9efeff7ebd Mon Sep 17 00:00:00 2001 From: Ro Date: Tue, 4 Jan 2022 12:53:57 -0800 Subject: [PATCH 10/23] update ignore file --- .gitignore | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 8107c7f..980c9cd 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ public/assets/css/* !public/assets/scripts public/assets/scripts/* !public/assets/scripts/dash.min.js +/public/assets/images/global/rikc-logo.svg !public/assets/images public/assets/images/* @@ -43,14 +44,4 @@ config.codekit3 /config/backups /src/com -/src/style -/src/node_modules -/src/com/Base.js -/src/com/controllers/NavIndex.js -/src/com/controllers/PageEditor.js -/src/com/controllers/SettingsIndex.js -/src/libraries/FipamoAPI.js -/src/package-lock.json -/src/package.json -/public/assets/images/global/rikc-logo.svg -/src/styles/ \ No newline at end of file +/src/styles -- 2.25.1 From 2fdd7f40f03cc39245a1599404db766fb601b77b Mon Sep 17 00:00:00 2001 From: Ro Date: Tue, 4 Jan 2022 13:47:55 -0800 Subject: [PATCH 11/23] cleared conflict with git ignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 980c9cd..bef0b03 100644 --- a/.gitignore +++ b/.gitignore @@ -15,9 +15,10 @@ public/assets/css/* !public/assets/css/dash.css !public/assets/scripts public/assets/scripts/* -!public/assets/scripts/dash.min.js +!public/assets/scripts/Start.js /public/assets/images/global/rikc-logo.svg + !public/assets/images public/assets/images/* !public/assets/images/global/ -- 2.25.1 From 8502c4f0e028d7e0465670ca769787d284ac9e41 Mon Sep 17 00:00:00 2001 From: Ro Date: Tue, 4 Jan 2022 13:55:31 -0800 Subject: [PATCH 12/23] fixed start twig template --- brain/views/dash/start.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brain/views/dash/start.twig b/brain/views/dash/start.twig index dc2e777..9eabc15 100644 --- a/brain/views/dash/start.twig +++ b/brain/views/dash/start.twig @@ -23,5 +23,5 @@ {% endblock %} {% block javascripts %} - + {% endblock %} \ No newline at end of file -- 2.25.1 From 59e0f37b3e47bb947b03cb68e72c16c8b99f574c Mon Sep 17 00:00:00 2001 From: Ro Date: Sun, 16 Jan 2022 13:37:57 -0800 Subject: [PATCH 13/23] restored dash styles --- public/assets/css/dash.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/assets/css/dash.css b/public/assets/css/dash.css index 9ccf403..732ea79 100644 --- a/public/assets/css/dash.css +++ b/public/assets/css/dash.css @@ -3194,13 +3194,17 @@ select { width: 100%; max-width: 900px; border-radius: 5px; - margin: 10px 0 50px 0; position: relative; } +#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper textarea:focus { + outline: none; + border-color: #fc6399; +} #post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #edit, #post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #highlight { /* Both elements need the same text and space styling so they are directly on top of each other */ border: 0; width: 100%; + min-height: 300px; height: auto; position: absolute; top: 0; -- 2.25.1 From 0ee4083949b37a324796f9b50089e055ad8c9cb3 Mon Sep 17 00:00:00 2001 From: are0h Date: Sun, 20 Mar 2022 15:23:04 -0700 Subject: [PATCH 14/23] fix for dash css --- public/assets/css/dash.css | 3872 ------------------------------------ 1 file changed, 3872 deletions(-) delete mode 100644 public/assets/css/dash.css diff --git a/public/assets/css/dash.css b/public/assets/css/dash.css deleted file mode 100644 index 5c567e0..0000000 --- a/public/assets/css/dash.css +++ /dev/null @@ -1,3872 +0,0 @@ -/* Bulma Utilities */ -.column { - display: block; - flex-basis: 0; - flex-grow: 1; - flex-shrink: 1; - padding: 0.75rem; -} -.columns.is-mobile > .column.is-narrow { - flex: none; - width: unset; -} -.columns.is-mobile > .column.is-full { - flex: none; - width: 100%; -} -.columns.is-mobile > .column.is-three-quarters { - flex: none; - width: 75%; -} -.columns.is-mobile > .column.is-two-thirds { - flex: none; - width: 66.6666%; -} -.columns.is-mobile > .column.is-half { - flex: none; - width: 50%; -} -.columns.is-mobile > .column.is-one-third { - flex: none; - width: 33.3333%; -} -.columns.is-mobile > .column.is-one-quarter { - flex: none; - width: 25%; -} -.columns.is-mobile > .column.is-one-fifth { - flex: none; - width: 20%; -} -.columns.is-mobile > .column.is-two-fifths { - flex: none; - width: 40%; -} -.columns.is-mobile > .column.is-three-fifths { - flex: none; - width: 60%; -} -.columns.is-mobile > .column.is-four-fifths { - flex: none; - width: 80%; -} -.columns.is-mobile > .column.is-offset-three-quarters { - margin-left: 75%; -} -.columns.is-mobile > .column.is-offset-two-thirds { - margin-left: 66.6666%; -} -.columns.is-mobile > .column.is-offset-half { - margin-left: 50%; -} -.columns.is-mobile > .column.is-offset-one-third { - margin-left: 33.3333%; -} -.columns.is-mobile > .column.is-offset-one-quarter { - margin-left: 25%; -} -.columns.is-mobile > .column.is-offset-one-fifth { - margin-left: 20%; -} -.columns.is-mobile > .column.is-offset-two-fifths { - margin-left: 40%; -} -.columns.is-mobile > .column.is-offset-three-fifths { - margin-left: 60%; -} -.columns.is-mobile > .column.is-offset-four-fifths { - margin-left: 80%; -} -.columns.is-mobile > .column.is-0 { - flex: none; - width: 0%; -} -.columns.is-mobile > .column.is-offset-0 { - margin-left: 0%; -} -.columns.is-mobile > .column.is-1 { - flex: none; - width: 8.33333337%; -} -.columns.is-mobile > .column.is-offset-1 { - margin-left: 8.33333337%; -} -.columns.is-mobile > .column.is-2 { - flex: none; - width: 16.66666674%; -} -.columns.is-mobile > .column.is-offset-2 { - margin-left: 16.66666674%; -} -.columns.is-mobile > .column.is-3 { - flex: none; - width: 25%; -} -.columns.is-mobile > .column.is-offset-3 { - margin-left: 25%; -} -.columns.is-mobile > .column.is-4 { - flex: none; - width: 33.33333337%; -} -.columns.is-mobile > .column.is-offset-4 { - margin-left: 33.33333337%; -} -.columns.is-mobile > .column.is-5 { - flex: none; - width: 41.66666674%; -} -.columns.is-mobile > .column.is-offset-5 { - margin-left: 41.66666674%; -} -.columns.is-mobile > .column.is-6 { - flex: none; - width: 50%; -} -.columns.is-mobile > .column.is-offset-6 { - margin-left: 50%; -} -.columns.is-mobile > .column.is-7 { - flex: none; - width: 58.33333337%; -} -.columns.is-mobile > .column.is-offset-7 { - margin-left: 58.33333337%; -} -.columns.is-mobile > .column.is-8 { - flex: none; - width: 66.66666674%; -} -.columns.is-mobile > .column.is-offset-8 { - margin-left: 66.66666674%; -} -.columns.is-mobile > .column.is-9 { - flex: none; - width: 75%; -} -.columns.is-mobile > .column.is-offset-9 { - margin-left: 75%; -} -.columns.is-mobile > .column.is-10 { - flex: none; - width: 83.33333337%; -} -.columns.is-mobile > .column.is-offset-10 { - margin-left: 83.33333337%; -} -.columns.is-mobile > .column.is-11 { - flex: none; - width: 91.66666674%; -} -.columns.is-mobile > .column.is-offset-11 { - margin-left: 91.66666674%; -} -.columns.is-mobile > .column.is-12 { - flex: none; - width: 100%; -} -.columns.is-mobile > .column.is-offset-12 { - margin-left: 100%; -} -@media screen and (max-width: 768px) { - .column.is-narrow-mobile { - flex: none; - width: unset; - } - .column.is-full-mobile { - flex: none; - width: 100%; - } - .column.is-three-quarters-mobile { - flex: none; - width: 75%; - } - .column.is-two-thirds-mobile { - flex: none; - width: 66.6666%; - } - .column.is-half-mobile { - flex: none; - width: 50%; - } - .column.is-one-third-mobile { - flex: none; - width: 33.3333%; - } - .column.is-one-quarter-mobile { - flex: none; - width: 25%; - } - .column.is-one-fifth-mobile { - flex: none; - width: 20%; - } - .column.is-two-fifths-mobile { - flex: none; - width: 40%; - } - .column.is-three-fifths-mobile { - flex: none; - width: 60%; - } - .column.is-four-fifths-mobile { - flex: none; - width: 80%; - } - .column.is-offset-three-quarters-mobile { - margin-left: 75%; - } - .column.is-offset-two-thirds-mobile { - margin-left: 66.6666%; - } - .column.is-offset-half-mobile { - margin-left: 50%; - } - .column.is-offset-one-third-mobile { - margin-left: 33.3333%; - } - .column.is-offset-one-quarter-mobile { - margin-left: 25%; - } - .column.is-offset-one-fifth-mobile { - margin-left: 20%; - } - .column.is-offset-two-fifths-mobile { - margin-left: 40%; - } - .column.is-offset-three-fifths-mobile { - margin-left: 60%; - } - .column.is-offset-four-fifths-mobile { - margin-left: 80%; - } - .column.is-0-mobile { - flex: none; - width: 0%; - } - .column.is-offset-0-mobile { - margin-left: 0%; - } - .column.is-1-mobile { - flex: none; - width: 8.33333337%; - } - .column.is-offset-1-mobile { - margin-left: 8.33333337%; - } - .column.is-2-mobile { - flex: none; - width: 16.66666674%; - } - .column.is-offset-2-mobile { - margin-left: 16.66666674%; - } - .column.is-3-mobile { - flex: none; - width: 25%; - } - .column.is-offset-3-mobile { - margin-left: 25%; - } - .column.is-4-mobile { - flex: none; - width: 33.33333337%; - } - .column.is-offset-4-mobile { - margin-left: 33.33333337%; - } - .column.is-5-mobile { - flex: none; - width: 41.66666674%; - } - .column.is-offset-5-mobile { - margin-left: 41.66666674%; - } - .column.is-6-mobile { - flex: none; - width: 50%; - } - .column.is-offset-6-mobile { - margin-left: 50%; - } - .column.is-7-mobile { - flex: none; - width: 58.33333337%; - } - .column.is-offset-7-mobile { - margin-left: 58.33333337%; - } - .column.is-8-mobile { - flex: none; - width: 66.66666674%; - } - .column.is-offset-8-mobile { - margin-left: 66.66666674%; - } - .column.is-9-mobile { - flex: none; - width: 75%; - } - .column.is-offset-9-mobile { - margin-left: 75%; - } - .column.is-10-mobile { - flex: none; - width: 83.33333337%; - } - .column.is-offset-10-mobile { - margin-left: 83.33333337%; - } - .column.is-11-mobile { - flex: none; - width: 91.66666674%; - } - .column.is-offset-11-mobile { - margin-left: 91.66666674%; - } - .column.is-12-mobile { - flex: none; - width: 100%; - } - .column.is-offset-12-mobile { - margin-left: 100%; - } -} -@media screen and (min-width: 769px), print { - .column.is-narrow, .column.is-narrow-tablet { - flex: none; - width: unset; - } - .column.is-full, .column.is-full-tablet { - flex: none; - width: 100%; - } - .column.is-three-quarters, .column.is-three-quarters-tablet { - flex: none; - width: 75%; - } - .column.is-two-thirds, .column.is-two-thirds-tablet { - flex: none; - width: 66.6666%; - } - .column.is-half, .column.is-half-tablet { - flex: none; - width: 50%; - } - .column.is-one-third, .column.is-one-third-tablet { - flex: none; - width: 33.3333%; - } - .column.is-one-quarter, .column.is-one-quarter-tablet { - flex: none; - width: 25%; - } - .column.is-one-fifth, .column.is-one-fifth-tablet { - flex: none; - width: 20%; - } - .column.is-two-fifths, .column.is-two-fifths-tablet { - flex: none; - width: 40%; - } - .column.is-three-fifths, .column.is-three-fifths-tablet { - flex: none; - width: 60%; - } - .column.is-four-fifths, .column.is-four-fifths-tablet { - flex: none; - width: 80%; - } - .column.is-offset-three-quarters, .column.is-offset-three-quarters-tablet { - margin-left: 75%; - } - .column.is-offset-two-thirds, .column.is-offset-two-thirds-tablet { - margin-left: 66.6666%; - } - .column.is-offset-half, .column.is-offset-half-tablet { - margin-left: 50%; - } - .column.is-offset-one-third, .column.is-offset-one-third-tablet { - margin-left: 33.3333%; - } - .column.is-offset-one-quarter, .column.is-offset-one-quarter-tablet { - margin-left: 25%; - } - .column.is-offset-one-fifth, .column.is-offset-one-fifth-tablet { - margin-left: 20%; - } - .column.is-offset-two-fifths, .column.is-offset-two-fifths-tablet { - margin-left: 40%; - } - .column.is-offset-three-fifths, .column.is-offset-three-fifths-tablet { - margin-left: 60%; - } - .column.is-offset-four-fifths, .column.is-offset-four-fifths-tablet { - margin-left: 80%; - } - .column.is-0, .column.is-0-tablet { - flex: none; - width: 0%; - } - .column.is-offset-0, .column.is-offset-0-tablet { - margin-left: 0%; - } - .column.is-1, .column.is-1-tablet { - flex: none; - width: 8.33333337%; - } - .column.is-offset-1, .column.is-offset-1-tablet { - margin-left: 8.33333337%; - } - .column.is-2, .column.is-2-tablet { - flex: none; - width: 16.66666674%; - } - .column.is-offset-2, .column.is-offset-2-tablet { - margin-left: 16.66666674%; - } - .column.is-3, .column.is-3-tablet { - flex: none; - width: 25%; - } - .column.is-offset-3, .column.is-offset-3-tablet { - margin-left: 25%; - } - .column.is-4, .column.is-4-tablet { - flex: none; - width: 33.33333337%; - } - .column.is-offset-4, .column.is-offset-4-tablet { - margin-left: 33.33333337%; - } - .column.is-5, .column.is-5-tablet { - flex: none; - width: 41.66666674%; - } - .column.is-offset-5, .column.is-offset-5-tablet { - margin-left: 41.66666674%; - } - .column.is-6, .column.is-6-tablet { - flex: none; - width: 50%; - } - .column.is-offset-6, .column.is-offset-6-tablet { - margin-left: 50%; - } - .column.is-7, .column.is-7-tablet { - flex: none; - width: 58.33333337%; - } - .column.is-offset-7, .column.is-offset-7-tablet { - margin-left: 58.33333337%; - } - .column.is-8, .column.is-8-tablet { - flex: none; - width: 66.66666674%; - } - .column.is-offset-8, .column.is-offset-8-tablet { - margin-left: 66.66666674%; - } - .column.is-9, .column.is-9-tablet { - flex: none; - width: 75%; - } - .column.is-offset-9, .column.is-offset-9-tablet { - margin-left: 75%; - } - .column.is-10, .column.is-10-tablet { - flex: none; - width: 83.33333337%; - } - .column.is-offset-10, .column.is-offset-10-tablet { - margin-left: 83.33333337%; - } - .column.is-11, .column.is-11-tablet { - flex: none; - width: 91.66666674%; - } - .column.is-offset-11, .column.is-offset-11-tablet { - margin-left: 91.66666674%; - } - .column.is-12, .column.is-12-tablet { - flex: none; - width: 100%; - } - .column.is-offset-12, .column.is-offset-12-tablet { - margin-left: 100%; - } -} -@media screen and (max-width: 1023px) { - .column.is-narrow-touch { - flex: none; - width: unset; - } - .column.is-full-touch { - flex: none; - width: 100%; - } - .column.is-three-quarters-touch { - flex: none; - width: 75%; - } - .column.is-two-thirds-touch { - flex: none; - width: 66.6666%; - } - .column.is-half-touch { - flex: none; - width: 50%; - } - .column.is-one-third-touch { - flex: none; - width: 33.3333%; - } - .column.is-one-quarter-touch { - flex: none; - width: 25%; - } - .column.is-one-fifth-touch { - flex: none; - width: 20%; - } - .column.is-two-fifths-touch { - flex: none; - width: 40%; - } - .column.is-three-fifths-touch { - flex: none; - width: 60%; - } - .column.is-four-fifths-touch { - flex: none; - width: 80%; - } - .column.is-offset-three-quarters-touch { - margin-left: 75%; - } - .column.is-offset-two-thirds-touch { - margin-left: 66.6666%; - } - .column.is-offset-half-touch { - margin-left: 50%; - } - .column.is-offset-one-third-touch { - margin-left: 33.3333%; - } - .column.is-offset-one-quarter-touch { - margin-left: 25%; - } - .column.is-offset-one-fifth-touch { - margin-left: 20%; - } - .column.is-offset-two-fifths-touch { - margin-left: 40%; - } - .column.is-offset-three-fifths-touch { - margin-left: 60%; - } - .column.is-offset-four-fifths-touch { - margin-left: 80%; - } - .column.is-0-touch { - flex: none; - width: 0%; - } - .column.is-offset-0-touch { - margin-left: 0%; - } - .column.is-1-touch { - flex: none; - width: 8.33333337%; - } - .column.is-offset-1-touch { - margin-left: 8.33333337%; - } - .column.is-2-touch { - flex: none; - width: 16.66666674%; - } - .column.is-offset-2-touch { - margin-left: 16.66666674%; - } - .column.is-3-touch { - flex: none; - width: 25%; - } - .column.is-offset-3-touch { - margin-left: 25%; - } - .column.is-4-touch { - flex: none; - width: 33.33333337%; - } - .column.is-offset-4-touch { - margin-left: 33.33333337%; - } - .column.is-5-touch { - flex: none; - width: 41.66666674%; - } - .column.is-offset-5-touch { - margin-left: 41.66666674%; - } - .column.is-6-touch { - flex: none; - width: 50%; - } - .column.is-offset-6-touch { - margin-left: 50%; - } - .column.is-7-touch { - flex: none; - width: 58.33333337%; - } - .column.is-offset-7-touch { - margin-left: 58.33333337%; - } - .column.is-8-touch { - flex: none; - width: 66.66666674%; - } - .column.is-offset-8-touch { - margin-left: 66.66666674%; - } - .column.is-9-touch { - flex: none; - width: 75%; - } - .column.is-offset-9-touch { - margin-left: 75%; - } - .column.is-10-touch { - flex: none; - width: 83.33333337%; - } - .column.is-offset-10-touch { - margin-left: 83.33333337%; - } - .column.is-11-touch { - flex: none; - width: 91.66666674%; - } - .column.is-offset-11-touch { - margin-left: 91.66666674%; - } - .column.is-12-touch { - flex: none; - width: 100%; - } - .column.is-offset-12-touch { - margin-left: 100%; - } -} -@media screen and (min-width: 1024px) { - .column.is-narrow-desktop { - flex: none; - width: unset; - } - .column.is-full-desktop { - flex: none; - width: 100%; - } - .column.is-three-quarters-desktop { - flex: none; - width: 75%; - } - .column.is-two-thirds-desktop { - flex: none; - width: 66.6666%; - } - .column.is-half-desktop { - flex: none; - width: 50%; - } - .column.is-one-third-desktop { - flex: none; - width: 33.3333%; - } - .column.is-one-quarter-desktop { - flex: none; - width: 25%; - } - .column.is-one-fifth-desktop { - flex: none; - width: 20%; - } - .column.is-two-fifths-desktop { - flex: none; - width: 40%; - } - .column.is-three-fifths-desktop { - flex: none; - width: 60%; - } - .column.is-four-fifths-desktop { - flex: none; - width: 80%; - } - .column.is-offset-three-quarters-desktop { - margin-left: 75%; - } - .column.is-offset-two-thirds-desktop { - margin-left: 66.6666%; - } - .column.is-offset-half-desktop { - margin-left: 50%; - } - .column.is-offset-one-third-desktop { - margin-left: 33.3333%; - } - .column.is-offset-one-quarter-desktop { - margin-left: 25%; - } - .column.is-offset-one-fifth-desktop { - margin-left: 20%; - } - .column.is-offset-two-fifths-desktop { - margin-left: 40%; - } - .column.is-offset-three-fifths-desktop { - margin-left: 60%; - } - .column.is-offset-four-fifths-desktop { - margin-left: 80%; - } - .column.is-0-desktop { - flex: none; - width: 0%; - } - .column.is-offset-0-desktop { - margin-left: 0%; - } - .column.is-1-desktop { - flex: none; - width: 8.33333337%; - } - .column.is-offset-1-desktop { - margin-left: 8.33333337%; - } - .column.is-2-desktop { - flex: none; - width: 16.66666674%; - } - .column.is-offset-2-desktop { - margin-left: 16.66666674%; - } - .column.is-3-desktop { - flex: none; - width: 25%; - } - .column.is-offset-3-desktop { - margin-left: 25%; - } - .column.is-4-desktop { - flex: none; - width: 33.33333337%; - } - .column.is-offset-4-desktop { - margin-left: 33.33333337%; - } - .column.is-5-desktop { - flex: none; - width: 41.66666674%; - } - .column.is-offset-5-desktop { - margin-left: 41.66666674%; - } - .column.is-6-desktop { - flex: none; - width: 50%; - } - .column.is-offset-6-desktop { - margin-left: 50%; - } - .column.is-7-desktop { - flex: none; - width: 58.33333337%; - } - .column.is-offset-7-desktop { - margin-left: 58.33333337%; - } - .column.is-8-desktop { - flex: none; - width: 66.66666674%; - } - .column.is-offset-8-desktop { - margin-left: 66.66666674%; - } - .column.is-9-desktop { - flex: none; - width: 75%; - } - .column.is-offset-9-desktop { - margin-left: 75%; - } - .column.is-10-desktop { - flex: none; - width: 83.33333337%; - } - .column.is-offset-10-desktop { - margin-left: 83.33333337%; - } - .column.is-11-desktop { - flex: none; - width: 91.66666674%; - } - .column.is-offset-11-desktop { - margin-left: 91.66666674%; - } - .column.is-12-desktop { - flex: none; - width: 100%; - } - .column.is-offset-12-desktop { - margin-left: 100%; - } -} -@media screen and (min-width: 1216px) { - .column.is-narrow-widescreen { - flex: none; - width: unset; - } - .column.is-full-widescreen { - flex: none; - width: 100%; - } - .column.is-three-quarters-widescreen { - flex: none; - width: 75%; - } - .column.is-two-thirds-widescreen { - flex: none; - width: 66.6666%; - } - .column.is-half-widescreen { - flex: none; - width: 50%; - } - .column.is-one-third-widescreen { - flex: none; - width: 33.3333%; - } - .column.is-one-quarter-widescreen { - flex: none; - width: 25%; - } - .column.is-one-fifth-widescreen { - flex: none; - width: 20%; - } - .column.is-two-fifths-widescreen { - flex: none; - width: 40%; - } - .column.is-three-fifths-widescreen { - flex: none; - width: 60%; - } - .column.is-four-fifths-widescreen { - flex: none; - width: 80%; - } - .column.is-offset-three-quarters-widescreen { - margin-left: 75%; - } - .column.is-offset-two-thirds-widescreen { - margin-left: 66.6666%; - } - .column.is-offset-half-widescreen { - margin-left: 50%; - } - .column.is-offset-one-third-widescreen { - margin-left: 33.3333%; - } - .column.is-offset-one-quarter-widescreen { - margin-left: 25%; - } - .column.is-offset-one-fifth-widescreen { - margin-left: 20%; - } - .column.is-offset-two-fifths-widescreen { - margin-left: 40%; - } - .column.is-offset-three-fifths-widescreen { - margin-left: 60%; - } - .column.is-offset-four-fifths-widescreen { - margin-left: 80%; - } - .column.is-0-widescreen { - flex: none; - width: 0%; - } - .column.is-offset-0-widescreen { - margin-left: 0%; - } - .column.is-1-widescreen { - flex: none; - width: 8.33333337%; - } - .column.is-offset-1-widescreen { - margin-left: 8.33333337%; - } - .column.is-2-widescreen { - flex: none; - width: 16.66666674%; - } - .column.is-offset-2-widescreen { - margin-left: 16.66666674%; - } - .column.is-3-widescreen { - flex: none; - width: 25%; - } - .column.is-offset-3-widescreen { - margin-left: 25%; - } - .column.is-4-widescreen { - flex: none; - width: 33.33333337%; - } - .column.is-offset-4-widescreen { - margin-left: 33.33333337%; - } - .column.is-5-widescreen { - flex: none; - width: 41.66666674%; - } - .column.is-offset-5-widescreen { - margin-left: 41.66666674%; - } - .column.is-6-widescreen { - flex: none; - width: 50%; - } - .column.is-offset-6-widescreen { - margin-left: 50%; - } - .column.is-7-widescreen { - flex: none; - width: 58.33333337%; - } - .column.is-offset-7-widescreen { - margin-left: 58.33333337%; - } - .column.is-8-widescreen { - flex: none; - width: 66.66666674%; - } - .column.is-offset-8-widescreen { - margin-left: 66.66666674%; - } - .column.is-9-widescreen { - flex: none; - width: 75%; - } - .column.is-offset-9-widescreen { - margin-left: 75%; - } - .column.is-10-widescreen { - flex: none; - width: 83.33333337%; - } - .column.is-offset-10-widescreen { - margin-left: 83.33333337%; - } - .column.is-11-widescreen { - flex: none; - width: 91.66666674%; - } - .column.is-offset-11-widescreen { - margin-left: 91.66666674%; - } - .column.is-12-widescreen { - flex: none; - width: 100%; - } - .column.is-offset-12-widescreen { - margin-left: 100%; - } -} -@media screen and (min-width: 1408px) { - .column.is-narrow-fullhd { - flex: none; - width: unset; - } - .column.is-full-fullhd { - flex: none; - width: 100%; - } - .column.is-three-quarters-fullhd { - flex: none; - width: 75%; - } - .column.is-two-thirds-fullhd { - flex: none; - width: 66.6666%; - } - .column.is-half-fullhd { - flex: none; - width: 50%; - } - .column.is-one-third-fullhd { - flex: none; - width: 33.3333%; - } - .column.is-one-quarter-fullhd { - flex: none; - width: 25%; - } - .column.is-one-fifth-fullhd { - flex: none; - width: 20%; - } - .column.is-two-fifths-fullhd { - flex: none; - width: 40%; - } - .column.is-three-fifths-fullhd { - flex: none; - width: 60%; - } - .column.is-four-fifths-fullhd { - flex: none; - width: 80%; - } - .column.is-offset-three-quarters-fullhd { - margin-left: 75%; - } - .column.is-offset-two-thirds-fullhd { - margin-left: 66.6666%; - } - .column.is-offset-half-fullhd { - margin-left: 50%; - } - .column.is-offset-one-third-fullhd { - margin-left: 33.3333%; - } - .column.is-offset-one-quarter-fullhd { - margin-left: 25%; - } - .column.is-offset-one-fifth-fullhd { - margin-left: 20%; - } - .column.is-offset-two-fifths-fullhd { - margin-left: 40%; - } - .column.is-offset-three-fifths-fullhd { - margin-left: 60%; - } - .column.is-offset-four-fifths-fullhd { - margin-left: 80%; - } - .column.is-0-fullhd { - flex: none; - width: 0%; - } - .column.is-offset-0-fullhd { - margin-left: 0%; - } - .column.is-1-fullhd { - flex: none; - width: 8.33333337%; - } - .column.is-offset-1-fullhd { - margin-left: 8.33333337%; - } - .column.is-2-fullhd { - flex: none; - width: 16.66666674%; - } - .column.is-offset-2-fullhd { - margin-left: 16.66666674%; - } - .column.is-3-fullhd { - flex: none; - width: 25%; - } - .column.is-offset-3-fullhd { - margin-left: 25%; - } - .column.is-4-fullhd { - flex: none; - width: 33.33333337%; - } - .column.is-offset-4-fullhd { - margin-left: 33.33333337%; - } - .column.is-5-fullhd { - flex: none; - width: 41.66666674%; - } - .column.is-offset-5-fullhd { - margin-left: 41.66666674%; - } - .column.is-6-fullhd { - flex: none; - width: 50%; - } - .column.is-offset-6-fullhd { - margin-left: 50%; - } - .column.is-7-fullhd { - flex: none; - width: 58.33333337%; - } - .column.is-offset-7-fullhd { - margin-left: 58.33333337%; - } - .column.is-8-fullhd { - flex: none; - width: 66.66666674%; - } - .column.is-offset-8-fullhd { - margin-left: 66.66666674%; - } - .column.is-9-fullhd { - flex: none; - width: 75%; - } - .column.is-offset-9-fullhd { - margin-left: 75%; - } - .column.is-10-fullhd { - flex: none; - width: 83.33333337%; - } - .column.is-offset-10-fullhd { - margin-left: 83.33333337%; - } - .column.is-11-fullhd { - flex: none; - width: 91.66666674%; - } - .column.is-offset-11-fullhd { - margin-left: 91.66666674%; - } - .column.is-12-fullhd { - flex: none; - width: 100%; - } - .column.is-offset-12-fullhd { - margin-left: 100%; - } -} - -.columns { - margin-left: -0.75rem; - margin-right: -0.75rem; - margin-top: -0.75rem; -} -.columns:last-child { - margin-bottom: -0.75rem; -} -.columns:not(:last-child) { - margin-bottom: calc(1.5rem - 0.75rem); -} -.columns.is-centered { - justify-content: center; -} -.columns.is-gapless { - margin-left: 0; - margin-right: 0; - margin-top: 0; -} -.columns.is-gapless > .column { - margin: 0; - padding: 0 !important; -} -.columns.is-gapless:not(:last-child) { - margin-bottom: 1.5rem; -} -.columns.is-gapless:last-child { - margin-bottom: 0; -} -.columns.is-mobile { - display: flex; -} -.columns.is-multiline { - flex-wrap: wrap; -} -.columns.is-vcentered { - align-items: center; -} -@media screen and (min-width: 769px), print { - .columns:not(.is-desktop) { - display: flex; - } -} -@media screen and (min-width: 1024px) { - .columns.is-desktop { - display: flex; - } -} - -.columns.is-variable { - --columnGap: 0.75rem; - margin-left: calc(-1 * var(--columnGap)); - margin-right: calc(-1 * var(--columnGap)); -} -.columns.is-variable > .column { - padding-left: var(--columnGap); - padding-right: var(--columnGap); -} -.columns.is-variable.is-0 { - --columnGap: 0rem; -} -@media screen and (max-width: 768px) { - .columns.is-variable.is-0-mobile { - --columnGap: 0rem; - } -} -@media screen and (min-width: 769px), print { - .columns.is-variable.is-0-tablet { - --columnGap: 0rem; - } -} -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-0-tablet-only { - --columnGap: 0rem; - } -} -@media screen and (max-width: 1023px) { - .columns.is-variable.is-0-touch { - --columnGap: 0rem; - } -} -@media screen and (min-width: 1024px) { - .columns.is-variable.is-0-desktop { - --columnGap: 0rem; - } -} -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-0-desktop-only { - --columnGap: 0rem; - } -} -@media screen and (min-width: 1216px) { - .columns.is-variable.is-0-widescreen { - --columnGap: 0rem; - } -} -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-0-widescreen-only { - --columnGap: 0rem; - } -} -@media screen and (min-width: 1408px) { - .columns.is-variable.is-0-fullhd { - --columnGap: 0rem; - } -} -.columns.is-variable.is-1 { - --columnGap: 0.25rem; -} -@media screen and (max-width: 768px) { - .columns.is-variable.is-1-mobile { - --columnGap: 0.25rem; - } -} -@media screen and (min-width: 769px), print { - .columns.is-variable.is-1-tablet { - --columnGap: 0.25rem; - } -} -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-1-tablet-only { - --columnGap: 0.25rem; - } -} -@media screen and (max-width: 1023px) { - .columns.is-variable.is-1-touch { - --columnGap: 0.25rem; - } -} -@media screen and (min-width: 1024px) { - .columns.is-variable.is-1-desktop { - --columnGap: 0.25rem; - } -} -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-1-desktop-only { - --columnGap: 0.25rem; - } -} -@media screen and (min-width: 1216px) { - .columns.is-variable.is-1-widescreen { - --columnGap: 0.25rem; - } -} -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-1-widescreen-only { - --columnGap: 0.25rem; - } -} -@media screen and (min-width: 1408px) { - .columns.is-variable.is-1-fullhd { - --columnGap: 0.25rem; - } -} -.columns.is-variable.is-2 { - --columnGap: 0.5rem; -} -@media screen and (max-width: 768px) { - .columns.is-variable.is-2-mobile { - --columnGap: 0.5rem; - } -} -@media screen and (min-width: 769px), print { - .columns.is-variable.is-2-tablet { - --columnGap: 0.5rem; - } -} -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-2-tablet-only { - --columnGap: 0.5rem; - } -} -@media screen and (max-width: 1023px) { - .columns.is-variable.is-2-touch { - --columnGap: 0.5rem; - } -} -@media screen and (min-width: 1024px) { - .columns.is-variable.is-2-desktop { - --columnGap: 0.5rem; - } -} -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-2-desktop-only { - --columnGap: 0.5rem; - } -} -@media screen and (min-width: 1216px) { - .columns.is-variable.is-2-widescreen { - --columnGap: 0.5rem; - } -} -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-2-widescreen-only { - --columnGap: 0.5rem; - } -} -@media screen and (min-width: 1408px) { - .columns.is-variable.is-2-fullhd { - --columnGap: 0.5rem; - } -} -.columns.is-variable.is-3 { - --columnGap: 0.75rem; -} -@media screen and (max-width: 768px) { - .columns.is-variable.is-3-mobile { - --columnGap: 0.75rem; - } -} -@media screen and (min-width: 769px), print { - .columns.is-variable.is-3-tablet { - --columnGap: 0.75rem; - } -} -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-3-tablet-only { - --columnGap: 0.75rem; - } -} -@media screen and (max-width: 1023px) { - .columns.is-variable.is-3-touch { - --columnGap: 0.75rem; - } -} -@media screen and (min-width: 1024px) { - .columns.is-variable.is-3-desktop { - --columnGap: 0.75rem; - } -} -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-3-desktop-only { - --columnGap: 0.75rem; - } -} -@media screen and (min-width: 1216px) { - .columns.is-variable.is-3-widescreen { - --columnGap: 0.75rem; - } -} -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-3-widescreen-only { - --columnGap: 0.75rem; - } -} -@media screen and (min-width: 1408px) { - .columns.is-variable.is-3-fullhd { - --columnGap: 0.75rem; - } -} -.columns.is-variable.is-4 { - --columnGap: 1rem; -} -@media screen and (max-width: 768px) { - .columns.is-variable.is-4-mobile { - --columnGap: 1rem; - } -} -@media screen and (min-width: 769px), print { - .columns.is-variable.is-4-tablet { - --columnGap: 1rem; - } -} -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-4-tablet-only { - --columnGap: 1rem; - } -} -@media screen and (max-width: 1023px) { - .columns.is-variable.is-4-touch { - --columnGap: 1rem; - } -} -@media screen and (min-width: 1024px) { - .columns.is-variable.is-4-desktop { - --columnGap: 1rem; - } -} -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-4-desktop-only { - --columnGap: 1rem; - } -} -@media screen and (min-width: 1216px) { - .columns.is-variable.is-4-widescreen { - --columnGap: 1rem; - } -} -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-4-widescreen-only { - --columnGap: 1rem; - } -} -@media screen and (min-width: 1408px) { - .columns.is-variable.is-4-fullhd { - --columnGap: 1rem; - } -} -.columns.is-variable.is-5 { - --columnGap: 1.25rem; -} -@media screen and (max-width: 768px) { - .columns.is-variable.is-5-mobile { - --columnGap: 1.25rem; - } -} -@media screen and (min-width: 769px), print { - .columns.is-variable.is-5-tablet { - --columnGap: 1.25rem; - } -} -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-5-tablet-only { - --columnGap: 1.25rem; - } -} -@media screen and (max-width: 1023px) { - .columns.is-variable.is-5-touch { - --columnGap: 1.25rem; - } -} -@media screen and (min-width: 1024px) { - .columns.is-variable.is-5-desktop { - --columnGap: 1.25rem; - } -} -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-5-desktop-only { - --columnGap: 1.25rem; - } -} -@media screen and (min-width: 1216px) { - .columns.is-variable.is-5-widescreen { - --columnGap: 1.25rem; - } -} -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-5-widescreen-only { - --columnGap: 1.25rem; - } -} -@media screen and (min-width: 1408px) { - .columns.is-variable.is-5-fullhd { - --columnGap: 1.25rem; - } -} -.columns.is-variable.is-6 { - --columnGap: 1.5rem; -} -@media screen and (max-width: 768px) { - .columns.is-variable.is-6-mobile { - --columnGap: 1.5rem; - } -} -@media screen and (min-width: 769px), print { - .columns.is-variable.is-6-tablet { - --columnGap: 1.5rem; - } -} -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-6-tablet-only { - --columnGap: 1.5rem; - } -} -@media screen and (max-width: 1023px) { - .columns.is-variable.is-6-touch { - --columnGap: 1.5rem; - } -} -@media screen and (min-width: 1024px) { - .columns.is-variable.is-6-desktop { - --columnGap: 1.5rem; - } -} -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-6-desktop-only { - --columnGap: 1.5rem; - } -} -@media screen and (min-width: 1216px) { - .columns.is-variable.is-6-widescreen { - --columnGap: 1.5rem; - } -} -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-6-widescreen-only { - --columnGap: 1.5rem; - } -} -@media screen and (min-width: 1408px) { - .columns.is-variable.is-6-fullhd { - --columnGap: 1.5rem; - } -} -.columns.is-variable.is-7 { - --columnGap: 1.75rem; -} -@media screen and (max-width: 768px) { - .columns.is-variable.is-7-mobile { - --columnGap: 1.75rem; - } -} -@media screen and (min-width: 769px), print { - .columns.is-variable.is-7-tablet { - --columnGap: 1.75rem; - } -} -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-7-tablet-only { - --columnGap: 1.75rem; - } -} -@media screen and (max-width: 1023px) { - .columns.is-variable.is-7-touch { - --columnGap: 1.75rem; - } -} -@media screen and (min-width: 1024px) { - .columns.is-variable.is-7-desktop { - --columnGap: 1.75rem; - } -} -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-7-desktop-only { - --columnGap: 1.75rem; - } -} -@media screen and (min-width: 1216px) { - .columns.is-variable.is-7-widescreen { - --columnGap: 1.75rem; - } -} -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-7-widescreen-only { - --columnGap: 1.75rem; - } -} -@media screen and (min-width: 1408px) { - .columns.is-variable.is-7-fullhd { - --columnGap: 1.75rem; - } -} -.columns.is-variable.is-8 { - --columnGap: 2rem; -} -@media screen and (max-width: 768px) { - .columns.is-variable.is-8-mobile { - --columnGap: 2rem; - } -} -@media screen and (min-width: 769px), print { - .columns.is-variable.is-8-tablet { - --columnGap: 2rem; - } -} -@media screen and (min-width: 769px) and (max-width: 1023px) { - .columns.is-variable.is-8-tablet-only { - --columnGap: 2rem; - } -} -@media screen and (max-width: 1023px) { - .columns.is-variable.is-8-touch { - --columnGap: 2rem; - } -} -@media screen and (min-width: 1024px) { - .columns.is-variable.is-8-desktop { - --columnGap: 2rem; - } -} -@media screen and (min-width: 1024px) and (max-width: 1215px) { - .columns.is-variable.is-8-desktop-only { - --columnGap: 2rem; - } -} -@media screen and (min-width: 1216px) { - .columns.is-variable.is-8-widescreen { - --columnGap: 2rem; - } -} -@media screen and (min-width: 1216px) and (max-width: 1407px) { - .columns.is-variable.is-8-widescreen-only { - --columnGap: 2rem; - } -} -@media screen and (min-width: 1408px) { - .columns.is-variable.is-8-fullhd { - --columnGap: 2rem; - } -} - -html { - line-height: 1.15; - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100%; -} - -body { - margin: 0; -} - -article, -aside, -footer, -header, -nav, -section { - display: block; -} - -h1 { - font-size: 2em; - margin: 0.67em 0; - line-height: 1em; -} - -figcaption, -figure, -main { - display: block; -} - -figure { - margin: 1em 40px; -} - -hr { - box-sizing: content-box; - height: 0; - overflow: visible; -} - -pre { - font-family: monospace, monospace; - font-size: 1em; -} - -a { - background-color: transparent; - -webkit-text-decoration-skip: objects; -} - -a:active, -a:hover { - outline-width: 0; -} - -abbr[title] { - border-bottom: none; - text-decoration: underline; - text-decoration: underline dotted; -} - -b, -strong { - font-weight: inherit; - font-weight: bolder; -} - -kbd, -samp { - font-family: monospace, monospace; - font-size: 1em; -} - -dfn { - font-style: italic; -} - -mark { - background-color: #ff0; - color: #000; -} - -small { - font-size: 80%; -} - -sub, -sup { - font-size: 60%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sub { - bottom: -0.25em; -} - -sup { - top: -0.55em; - background: #1D3040; - color: #1D3040; - border-radius: 2px; - padding: 0 2px 0 2px; - margin: 0 2px 0 0; -} - -audio, -video { - display: inline-block; -} - -audio:not([controls]) { - display: none; - height: 0; -} - -img { - border-style: none; -} - -svg:not(:root) { - overflow: hidden; -} - -button, -input, -optgroup, -select, -textarea { - font-family: sans-serif; - font-size: 100%; - line-height: 1.15; - margin: 0; -} - -button, -input { - overflow: visible; -} - -button, -select { - text-transform: none; -} - -button, html [type=button], -[type=reset], -[type=submit] { - -webkit-appearance: button; -} - -[type=button]::-moz-focus-inner, -[type=reset]::-moz-focus-inner, -[type=submit]::-moz-focus-inner, -button::-moz-focus-inner { - border-style: none; - padding: 0; -} - -[type=button]:-moz-focusring, -[type=reset]:-moz-focusring, -[type=submit]:-moz-focusring, -button:-moz-focusring { - outline: 1px dotted ButtonText; -} - -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; -} - -legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; -} - -progress { - display: inline-block; - vertical-align: baseline; -} - -textarea { - overflow: auto; -} - -[type=checkbox], -[type=radio] { - box-sizing: border-box; - padding: 0; -} - -[type=number]::-webkit-inner-spin-button, -[type=number]::-webkit-outer-spin-button { - height: auto; -} - -[type=search] { - -webkit-appearance: textfield; - outline-offset: -2px; -} - -[type=search]::-webkit-search-cancel-button, -[type=search]::-webkit-search-decoration { - -webkit-appearance: none; -} - -::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; -} - -details, -menu { - display: block; -} - -summary { - display: list-item; -} - -canvas { - display: inline-block; -} - -template { - display: none; -} - -[hidden] { - display: none; -} - -h1, h2, h3 { - color: #EFEBE3; -} - -h1 { - font-size: 2em; - font-weight: 400; -} - -h2 { - font-size: 1.75em; - font-weight: 400; -} - -h3 { - font-size: 1.5em; - font-weight: 300; -} - -html, body { - background: #1D3040 linear-gradient(0deg, #1d3040 0%, #2d4a63 100%) no-repeat; - font: 400 1em Helvetica, Arial, sans-serif; - height: 100%; -} - -a { - font: 300 1em Helvetica, Arial, sans-serif; - color: #b2cce5; - text-decoration: underline; - transition: all 0.2s linear; -} - -svg.icons { - width: 25px; - fill: #b2cce5; -} - -#notifications { - perspective: 1000px; - position: fixed; - z-index: 2000; - height: 55px; - width: 100%; - display: block; - align-items: center; - justify-content: center; - padding: 0; - margin-top: -55px; -} -#notifications #notifyMessage { - margin: 0 auto; - transition: all 0.6s cubic-bezier(0.83, 0.05, 0.28, 1); - height: 50px; - width: 500px; - display: flex; - align-items: center; - justify-content: center; - opacity: 1; - transform-style: preserve-3d; - transform: rotateX(120deg); - transform-origin: 50% 0; - overflow: hidden; -} -#notifications #notifyMessage #notify-good, #notifications #notifyMessage #notify-lame, #notifications #notifyMessage #notify-working { - display: block; -} -#notifications #notifyMessage #notify-working-icon { - -webkit-animation: spin 2s linear infinite; - -moz-animation: spin 2s linear infinite; - animation: spin 2s linear infinite; -} -@keyframes spin { - transform: rotate(360deg); -} -#notifications #notifyMessage .notify-icon { - background: #32302f; - padding: 8px 5px 5px 5px; - border-radius: 5px 0 0 5px; - height: 30px; - width: 30px; - text-align: center; - border: 2px solid #EFEBE3; -} -#notifications #notifyMessage #notify-text { - color: #EFEBE3; - background: #32302f; - width: 400px; - height: 28px; - padding: 15px 0 0 0; - border-radius: 0 5px 5px 0; - border: 2px solid #EFEBE3; - text-align: center; - overflow: hidden; - position: relative; -} -#notifications #notifyMessage #notify-text #notify-progress { - width: 0; - background: #fc6399; - height: 43px; - position: absolute; - top: 0px; -} -#notifications #notifyMessage #notify-text p { - top: -15px; - display: block; - position: relative; -} -#notifications #notifyMessage .icons { - fill: #EFEBE3; -} - -.notify-close { - transform-style: preserve-3d; - transform: rotateX(-120deg); -} - -.notify-open { - transform-style: preserve-3d; - transform: rotateX(0deg); -} - -.blog-container { - width: 100%; -} - -.main-container { - margin: 0 auto; - z-index: 10; - position: relative; - height: 100%; -} -.main-container section header { - width: 100%; - max-width: 900px; - margin: 10px auto; - background: #EFEBE3; - height: 50px; - border-radius: 5px; -} -.main-container section header #wrapper { - padding: 5px; -} -.main-container section header #wrapper #left, .main-container section header #wrapper #right { - width: 49.7%; - display: inline-block; - vertical-align: top; - min-height: 60px; -} -.main-container section header #wrapper #left #the-logo, .main-container section header #wrapper #right #the-logo { - width: 29px; -} -.main-container section header #wrapper #right { - text-align: right; - color: #EFEBE3; -} -.main-container section header #wrapper #right #dash-menu { - text-align: right; -} -.main-container section header #wrapper #right #dash-menu a button { - border-radius: 50px; -} -.main-container section header #wrapper #right #dash-menu a button svg { - transition: all 0.2s linear; - width: 40px; - height: 20px; - fill: #EFEBE3; -} -.main-container section header #wrapper #right #dash-menu a:hover button { - background: #1D3040; -} -.main-container section header #wrapper #right #dash-menu a:hover svg { - fill: #b2cce5; -} - -/* Mozilla based browsers */ -::-moz-selection { - background-color: #fc6399; - color: #EFEBE3; -} - -/* Works in Safari */ -::selection { - background-color: #fc6399; - color: #EFEBE3; -} - -/* Works in Opera */ -::-o-selection { - background-color: #fc6399; - color: #EFEBE3; -} - -::-ms-selection { - background-color: #fc6399; - color: #EFEBE3; -} - -/* Works in Internet Explorer */ -::-webkit-selection { - background-color: #fc6399; - color: #EFEBE3; -} - -@media only screen and (max-width: 901px) { - .main-container { - padding: 10px; - } -} -@media only screen and (max-width: 800px) { - .main-container section header #wrapper #left, .main-container section header #wrapper #right { - display: inline-block; - } -} -@media only screen and (max-width: 480px) { - .main-container section header #wrapper #left { - width: 30%; - } - .main-container section header #wrapper #right { - width: 70%; - } -} -#dash-index-content { - width: 100%; - height: 100%; - margin: 0 auto; -} -#dash-index-content #dash-index { - width: 100%; - height: 100%; - z-index: 10; - position: relative; -} -#dash-index-content #dash-index #dash-index-wrapper { - width: 100%; - height: 100%; - margin: 0 auto; -} -#dash-index-content #dash-index #dash-index-wrapper .dash-init, #dash-index-content #dash-index #dash-index-wrapper .dash-restore { - width: 100%; - height: 100%; - display: flex; - align-items: center; - justify-content: center; - color: #1D3040; -} -#dash-index-content #dash-index #dash-index-wrapper .dash-init form, #dash-index-content #dash-index #dash-index-wrapper .dash-restore form { - background: #EFEBE3; - padding: 15px; - width: 300px; - border-radius: 5px; - text-align: center; -} -#dash-index-content #dash-index #dash-index-wrapper .dash-init form #the-logo, #dash-index-content #dash-index #dash-index-wrapper .dash-restore form #the-logo { - width: 40px; - margin: 20px; -} -#dash-index-content #dash-index #dash-index-wrapper .dash-init form input, #dash-index-content #dash-index #dash-index-wrapper .dash-restore form input { - width: 290px; - margin: 0 0 10px 0; - height: 30px; -} -#dash-index-content #dash-index #dash-index-wrapper .dash-init form button, #dash-index-content #dash-index #dash-index-wrapper .dash-restore form button { - width: 300px; -} -#dash-index-content #dash-index #dash-index-wrapper .dash-init form div, #dash-index-content #dash-index #dash-index-wrapper .dash-restore form div { - background: #1D3040; - color: #EFEBE3; - border-radius: 3px; - padding: 5px; -} -#dash-index-content #dash-index #dash-index-wrapper .dash-init form div label, #dash-index-content #dash-index #dash-index-wrapper .dash-restore form div label { - display: block; - padding: 5px; - color: #f5ab35; -} -#dash-index-content #dash-index #dash-index-wrapper .dash-restore { - display: none; - visibility: hidden; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-login { - width: 100%; - height: 100%; - margin: 0 auto; - display: flex; - align-items: center; - justify-content: center; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-form, #dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-reset { - width: 300px; - padding: 0.75em; - background: #EFEBE3; - border-radius: 5px; - color: #EFEBE3; - text-align: center; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-form #the-logo, #dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-reset #the-logo { - width: 40px; - margin: 20px; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-form input, #dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-reset input { - width: 290px; - margin: 0 0 10px 0; - height: 30px; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-form button, #dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-reset button { - width: 300px; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-menu { - padding: 10px; - width: 90%; - max-width: 900px; - margin: 50px auto; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-menu a { - display: inline-block; - vertical-align: top; - background: black; - width: 30%; - padding: 5px; - border-radius: 3px; - color: #EFEBE3; - margin: 0 10px 10px 0; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-menu a:hover { - background: black; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-menu a svg { - display: inline-block; - vertical-align: top; - fill: #EFEBE3; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-menu a label { - display: inline-block; - margin-top: 5px; - width: 85%; - text-align: center; - cursor: pointer; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent { - width: 100%; - max-width: 900px; - height: 100%; - padding: 5px 0 0 0; - margin: 0 auto; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list { - position: relative; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header { - height: 50px; - margin-top: 5px; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header .index-header-left { - vertical-align: top; - display: inline-block; - width: 50%; - color: #EFEBE3; - font-size: 3em; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header .index-header-right { - width: 50%; - text-align: right; - vertical-align: top; - display: inline-block; - right: 10px; - color: #EFEBE3; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header .index-header-right a button { - border-radius: 3px; - margin-left: 10px; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header .index-header-right a button svg { - transition: all 0.2s linear; - width: 40px; - height: 20px; - fill: #EFEBE3; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link { - font-size: 1.5em; - font-weight: 300; - display: inline-block; - border-radius: 3px; - vertical-align: top; - text-decoration: none; - position: relative; - overflow: hidden; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link .post-video, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link .post-video { - width: 100%; - height: 100%; - object-fit: cover; - position: absolute; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link label, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link label { - font-size: 1.4em; - font-weight: 700; - color: #EFEBE3; - padding: 5px; - vertical-align: top; - display: inline-block; - word-wrap: break-word; - width: 100%; - text-align: center; - position: relative; - top: 35%; - text-shadow: 2px 2px 0 #32302f; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options { - width: 100%; - position: absolute; - bottom: 0; - border-radius: 0 0 3px 3px; - background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%); -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-left, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-left { - display: inline-block; - vertical-align: top; - width: 50%; - position: relative; - background: none; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-left button, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-left button { - border-radius: 3px; - background: #1D3040; - margin: 0 0 10px 10px; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-left button svg, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-left button svg { - width: 40px; - height: 20px; - fill: #b2cce5; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-left .item-options, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-left .item-options { - border-radius: 3px; - margin: 5px; - display: inline-block; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-left button[data-active=false], #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-left button[data-active=false] { - background: #1D3040; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-left button[data-active=false] svg, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-left button[data-active=false] svg { - fill: #b2cce5; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-left button[data-active=true], #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-left button[data-active=true] { - background: #f5ab35; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-left button[data-active=true] svg, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-left button[data-active=true] svg { - fill: #1D3040; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-right, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-right { - display: inline-block; - width: 50%; - text-align: right; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-right span, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-right span { - font-weight: bold; - display: block; - background: #EFEBE3; - color: #1D3040; - border-radius: 3px; - font-size: 0.6em; - text-align: center; - position: relative; - padding: 5px; - float: right; - margin: 0 10px 0 0; - bottom: -15px; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(3) { - width: 100%; - margin-bottom: 20px; - height: 500px; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(4), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(6) { - width: 48.6%; - height: 350px; - margin: 0 10px 20px 0; -} -#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(5), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(7) { - width: 48.6%; - height: 350px; - margin: 0 0 20px 10px; -} - -@media only screen and (max-width: 768px) { - #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(4), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(6) { - width: 48.9%; - } -} -@media only screen and (max-width: 640px) { - #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(4), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(6) { - width: 48.5%; - } -} -@media only screen and (max-width: 480px) { - #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header h3 { - width: 40%; - } - #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header .index-menu { - width: 60%; - } - #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(3), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(4), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(5), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(6), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(7) { - width: 100%; - margin: 15px 0 0 0; - height: 400px; - } -} -#settings-actions { - position: fixed; - width: 40%; - margin-top: -85px; - left: 50%; - margin-left: -20%; -} -#settings-actions #buttons { - width: 185px; - margin: 28px auto; - text-align: center; - background: #EFEBE3; - padding: 2px; - border-radius: 3px; -} -#settings-actions #buttons button { - color: #EFEBE3; - border-radius: 3px; - width: 40px; - margin: 0 10px 0 10px; -} -#settings-actions #buttons button svg { - width: 25px; - height: 20px; - fill: #EFEBE3; -} -#settings-actions #buttons button[data-render=false] { - background: #b2cce5; -} -#settings-actions #buttons button[data-render=false] svg { - fill: #1D3040; -} -#settings-actions #buttons button[data-render=true] { - background: #fc6399; -} -#settings-actions #buttons button[data-render=true] svg { - fill: #EFEBE3; -} - -#settings-index { - width: 94%; - max-width: 900px; - margin: 0 auto; - overflow: hidden; -} -#settings-index #settings-index-wrapper { - padding: 0; -} -#settings-index #settings-index-wrapper button { - margin-top: 5px; - width: 100%; - height: 33px; -} -#settings-index #settings-index-wrapper #member-settings, #settings-index #settings-index-wrapper #feature-settings, #settings-index #settings-index-wrapper #option-settings, #settings-index #settings-index-wrapper #token-settings, #settings-index #settings-index-wrapper #backup-settings { - background: #EFEBE3; - padding: 0px; - border-radius: 5px 0 5px 0; - width: 100%; - margin: 20px auto; -} -#settings-index #settings-index-wrapper #member-settings label, #settings-index #settings-index-wrapper #feature-settings label, #settings-index #settings-index-wrapper #option-settings label, #settings-index #settings-index-wrapper #token-settings label, #settings-index #settings-index-wrapper #backup-settings label { - font-family: Helvetica, Arial, sans-serif; - color: #1D3040; - font-weight: bold; -} -#settings-index #settings-index-wrapper #member-settings span, #settings-index #settings-index-wrapper #feature-settings span, #settings-index #settings-index-wrapper #option-settings span, #settings-index #settings-index-wrapper #token-settings span, #settings-index #settings-index-wrapper #backup-settings span { - color: #b2cce5; -} -#settings-index #settings-index-wrapper #member-settings input, #settings-index #settings-index-wrapper #feature-settings input, #settings-index #settings-index-wrapper #option-settings input, #settings-index #settings-index-wrapper #token-settings input, #settings-index #settings-index-wrapper #backup-settings input { - width: 95%; - margin: 0 5px 10px 0; - height: 30px; - padding: 10px; -} -#settings-index #settings-index-wrapper #member-settings input#backup-upload, #settings-index #settings-index-wrapper #feature-settings input#backup-upload, #settings-index #settings-index-wrapper #option-settings input#backup-upload, #settings-index #settings-index-wrapper #token-settings input#backup-upload, #settings-index #settings-index-wrapper #backup-settings input#backup-upload { - visibility: hidden; - display: none; -} -#settings-index #settings-index-wrapper #member-settings .backup-meta, #settings-index #settings-index-wrapper #feature-settings .backup-meta, #settings-index #settings-index-wrapper #option-settings .backup-meta, #settings-index #settings-index-wrapper #token-settings .backup-meta, #settings-index #settings-index-wrapper #backup-settings .backup-meta { - background: #1D3040; - color: #EFEBE3; - padding: 8px; - border-radius: 3px; - margin: 5px 0 0 0; - text-align: center; -} -#settings-index #settings-index-wrapper #member-settings #member-images, #settings-index #settings-index-wrapper #feature-settings #member-images, #settings-index #settings-index-wrapper #option-settings #member-images, #settings-index #settings-index-wrapper #token-settings #member-images, #settings-index #settings-index-wrapper #backup-settings #member-images { - padding: 10px 15px 0 15px; -} -#settings-index #settings-index-wrapper #member-settings #member-images #member-avatar-drop, #settings-index #settings-index-wrapper #feature-settings #member-images #member-avatar-drop, #settings-index #settings-index-wrapper #option-settings #member-images #member-avatar-drop, #settings-index #settings-index-wrapper #token-settings #member-images #member-avatar-drop, #settings-index #settings-index-wrapper #backup-settings #member-images #member-avatar-drop { - display: inline-block; - margin: 0 0 10px 0; -} -#settings-index #settings-index-wrapper #member-settings #member-images #member-avatar-drop img, #settings-index #settings-index-wrapper #feature-settings #member-images #member-avatar-drop img, #settings-index #settings-index-wrapper #option-settings #member-images #member-avatar-drop img, #settings-index #settings-index-wrapper #token-settings #member-images #member-avatar-drop img, #settings-index #settings-index-wrapper #backup-settings #member-images #member-avatar-drop img { - width: 100%; - border-radius: 5px; - overflow: hidden; - cursor: pointer; - display: block; - margin-bottom: 2px; -} -#settings-index #settings-index-wrapper #member-settings #member-images #member-avatar-drop input, #settings-index #settings-index-wrapper #feature-settings #member-images #member-avatar-drop input, #settings-index #settings-index-wrapper #option-settings #member-images #member-avatar-drop input, #settings-index #settings-index-wrapper #token-settings #member-images #member-avatar-drop input, #settings-index #settings-index-wrapper #backup-settings #member-images #member-avatar-drop input { - visibility: hidden; - display: none; -} -#settings-index #settings-index-wrapper #member-settings #member-images #member-avatar-drop #privacy-toggle, #settings-index #settings-index-wrapper #feature-settings #member-images #member-avatar-drop #privacy-toggle, #settings-index #settings-index-wrapper #option-settings #member-images #member-avatar-drop #privacy-toggle, #settings-index #settings-index-wrapper #token-settings #member-images #member-avatar-drop #privacy-toggle, #settings-index #settings-index-wrapper #backup-settings #member-images #member-avatar-drop #privacy-toggle { - width: 50%; -} -#settings-index #settings-index-wrapper #member-settings #member-images #member-avatar-drop #render-toggle, #settings-index #settings-index-wrapper #feature-settings #member-images #member-avatar-drop #render-toggle, #settings-index #settings-index-wrapper #option-settings #member-images #member-avatar-drop #render-toggle, #settings-index #settings-index-wrapper #token-settings #member-images #member-avatar-drop #render-toggle, #settings-index #settings-index-wrapper #backup-settings #member-images #member-avatar-drop #render-toggle { - width: 50%; -} -#settings-index #settings-index-wrapper #member-settings #member-images #site-background, #settings-index #settings-index-wrapper #feature-settings #member-images #site-background, #settings-index #settings-index-wrapper #option-settings #member-images #site-background, #settings-index #settings-index-wrapper #token-settings #member-images #site-background, #settings-index #settings-index-wrapper #backup-settings #member-images #site-background { - margin: 0 0 10px 0; -} -#settings-index #settings-index-wrapper #member-settings #member-images #site-background img, #settings-index #settings-index-wrapper #feature-settings #member-images #site-background img, #settings-index #settings-index-wrapper #option-settings #member-images #site-background img, #settings-index #settings-index-wrapper #token-settings #member-images #site-background img, #settings-index #settings-index-wrapper #backup-settings #member-images #site-background img { - width: 92.1%; - height: 292px; - border-radius: 3px; - overflow: hidden; - cursor: pointer; -} -#settings-index #settings-index-wrapper #member-settings #member-images #site-background input, #settings-index #settings-index-wrapper #feature-settings #member-images #site-background input, #settings-index #settings-index-wrapper #option-settings #member-images #site-background input, #settings-index #settings-index-wrapper #token-settings #member-images #site-background input, #settings-index #settings-index-wrapper #backup-settings #member-images #site-background input { - visibility: hidden; - display: none; -} -#settings-index #settings-index-wrapper #member-settings #member-meta, #settings-index #settings-index-wrapper #feature-settings #member-meta, #settings-index #settings-index-wrapper #option-settings #member-meta, #settings-index #settings-index-wrapper #token-settings #member-meta, #settings-index #settings-index-wrapper #backup-settings #member-meta { - padding: 10px 15px 0 15px; - position: relative; - top: -30px; -} -#settings-index #settings-index-wrapper #member-settings #features, #settings-index #settings-index-wrapper #feature-settings #features, #settings-index #settings-index-wrapper #option-settings #features, #settings-index #settings-index-wrapper #token-settings #features, #settings-index #settings-index-wrapper #backup-settings #features { - padding: 10px 15px 0 15px; -} -#settings-index #settings-index-wrapper textarea { - background: #1D3040; - width: 70%; - height: 89.5px; - color: #f5ab35; - padding: 10px; - display: inline-block; - margin-bottom: 10px; -} -#settings-index #settings-index-wrapper span#key { - color: #EFEBE3; - background: #1D3040; - font-size: 0.9em; - border-radius: 3px; - padding: 5px; - display: block; - width: 95%; - overflow: hidden; -} -#settings-index #settings-index-wrapper #feature-settings #feature-api, #settings-index #settings-index-wrapper #feature-settings #dynamic-api { - background: #EFEBE3; - border-radius: 3px; - padding: 5px; -} -#settings-index #settings-index-wrapper #feature-settings #feature-api button, #settings-index #settings-index-wrapper #feature-settings #dynamic-api button { - color: #EFEBE3; - border-radius: 3px; - width: 200px; - margin: 0; - height: 200px; - font-size: 1em; -} -#settings-index #settings-index-wrapper #feature-settings #feature-api button svg, #settings-index #settings-index-wrapper #feature-settings #dynamic-api button svg { - width: 100px; - height: 90px; - fill: #EFEBE3; - position: relative; - display: block; - margin: 12px auto; -} -#settings-index #settings-index-wrapper #feature-settings #feature-api button span, #settings-index #settings-index-wrapper #feature-settings #dynamic-api button span { - color: #EFEBE3; - margin: 6px 0 0 5px; - position: relative; - vertical-align: middle; - display: inline-block; - font-weight: bold; -} -#settings-index #settings-index-wrapper #feature-settings #feature-api button[data-enabled=false], #settings-index #settings-index-wrapper #feature-settings #dynamic-api button[data-enabled=false] { - background: #b2cce5; -} -#settings-index #settings-index-wrapper #feature-settings #feature-api button[data-enabled=false] svg, #settings-index #settings-index-wrapper #feature-settings #dynamic-api button[data-enabled=false] svg { - fill: #1D3040; -} -#settings-index #settings-index-wrapper #feature-settings #feature-api button[data-enabled=false] span, #settings-index #settings-index-wrapper #feature-settings #dynamic-api button[data-enabled=false] span { - color: #1D3040; -} -#settings-index #settings-index-wrapper #feature-settings #feature-api button[data-enabled=true], #settings-index #settings-index-wrapper #feature-settings #dynamic-api button[data-enabled=true] { - background: #fc6399; -} -#settings-index #settings-index-wrapper #feature-settings #feature-api button[data-enabled=true] svg, #settings-index #settings-index-wrapper #feature-settings #dynamic-api button[data-enabled=true] svg { - fill: #EFEBE3; -} -#settings-index #settings-index-wrapper #token-settings #keys-tokens { - padding: 10px 15px 0 15px; -} -#settings-index #settings-index-wrapper #token-settings #keys-tokens #member-api-key, #settings-index #settings-index-wrapper #token-settings #keys-tokens #form-token { - background: #1D3040; - border-radius: 3px; - padding: 5px; - color: #EFEBE3; -} -#settings-index #settings-index-wrapper #option-settings #theme-settings a { - width: 95%; - margin: 0 5px 5px 0; - height: 15px; - padding: 10px; - display: inline-block; -} -#settings-index #settings-index-wrapper #option-settings #theme-settings a[data-enabled=false] { - background: #EFEBE3; - color: #1D3040; - border-radius: 3px; - font-weight: bold; - border-top: 1px #fc6399 solid; - border-bottom: 1px #fc6399 solid; -} -#settings-index #settings-index-wrapper #option-settings #theme-settings a[data-enabled=true] { - background: #fc6399; - color: #1D3040; - border-radius: 3px; - font-weight: bold; - border-top: 1px #1D3040 solid; - border-bottom: 1px #1D3040 solid; -} -#settings-index #settings-index-wrapper #option-settings #theme-settings a[data-enabled=true] svg { - fill: #1D3040; - display: inline-block; - float: right; -} -#settings-index #settings-index-wrapper #option-settings #mail-settings { - min-height: 240px; -} -#settings-index #settings-index-wrapper #option-settings #mail-settings a.mail-option { - float: right; - font-family: "Lucida Console", Monaco, monospace; - font-size: 0.9em; - border-radius: 3px; - text-decoration: none; - margin: 0 0 0 5px; -} -#settings-index #settings-index-wrapper #option-settings #mail-settings a.mail-option[data-enabled=true] { - color: #fc6399; -} -#settings-index #settings-index-wrapper #option-settings #mail-settings a.mail-option[data-enabled=false] { - color: #1D3040; -} -#settings-index #settings-index-wrapper #option-settings #mail-settings input { - margin: 0 5px 5px 0; - vertical-align: top; -} -#settings-index #settings-index-wrapper #option-settings #mail-settings div[data-enabled=false] { - display: none; - visibility: hidden; -} -#settings-index #settings-index-wrapper #option-settings #mail-settings #settings-api { - background: #1D3040; - border-radius: 3px; - padding: 10px; -} -#settings-index #settings-index-wrapper #option-settings #mail-settings #settings-api span { - color: #EFEBE3 !important; - margin: -13px 0 0 5px; - position: relative; - vertical-align: middle; - display: inline-block; - font-weight: bold; -} -#settings-index #settings-index-wrapper #option-settings #mail-settings #settings-api button { - color: #EFEBE3; - border-radius: 3px; - width: 40px; - margin: 0; -} -#settings-index #settings-index-wrapper #option-settings #mail-settings #settings-api button svg { - width: 25px; - height: 20px; - fill: #EFEBE3; -} -#settings-index #settings-index-wrapper #option-settings #mail-settings #settings-api button[data-enabled=false] { - background: #b2cce5; -} -#settings-index #settings-index-wrapper #option-settings #mail-settings #settings-api button[data-enabled=false] svg { - fill: #1D3040; -} -#settings-index #settings-index-wrapper #option-settings #mail-settings #settings-api button[data-enabled=true] { - background: #fc6399; -} -#settings-index #settings-index-wrapper #option-settings #mail-settings #settings-api button[data-enabled=true] svg { - fill: #EFEBE3; -} - -@media only screen and (max-width: 480px) { - #settings-actions { - margin-left: -42%; - } - #settings-actions #buttons { - width: 150px; - background: none; - } - #settings-actions #buttons button { - margin: 0 5px 0 5px; - } -} -#error-index { - width: 100%; - max-width: 900px; - margin: 0 auto; - padding: 10px; - height: 100%; - z-index: 10; - position: relative; -} -#error-index label#title { - font-size: 100px; - color: #fc6399; - font-weight: 500; -} -#error-index label#message { - font-size: 50px; - color: #f5ab35; - font-weight: 500; -} -#error-index label#error { - font-size: 25px; - color: #F64747; - font-weight: 500; -} - -#nav-index { - width: 100%; - max-width: 900px; - margin: 0 auto; -} -#nav-index #nav-index-wrapper #nav-pages .nav-item { - display: block; - width: 98%; - background: #EFEBE3; - border-radius: 3px; - color: #fc6399; - height: 30px; - padding: 10px; - margin: 0 0 10px 0; - font-size: 1.5em; - cursor: move; -} -#nav-index #nav-index-wrapper #nav-pages .nav-item #item-arrows { - fill: #1D3040; - width: 40px; - height: 30px; -} -#nav-index #nav-index-wrapper #nav-pages label { - display: inline-block; - vertical-align: middle; - padding: 0; - margin: -15px 0 0 10px; - cursor: move; -} -#nav-index #nav-index-wrapper #nav-pages #nav-btns { - float: right; - top: -5px; - position: relative; -} -#nav-index #nav-index-wrapper #nav-pages #nav-btns button { - color: #EFEBE3; - border-radius: 3px; - width: 40px; - margin: 0 10px 0 10px; -} -#nav-index #nav-index-wrapper #nav-pages #nav-btns button svg { - fill: #EFEBE3; - width: 25px; - height: 20px; -} - -@media only screen and (max-width: 375px) { - #nav-index #nav-index-wrapper #nav-pages .nav-item { - width: 94.5%; - font-size: 1em; - } - #nav-index #nav-index-wrapper #nav-pages .nav-item label { - width: 40%; - vertical-align: top; - margin-top: 0px; - line-height: 1em; - } -} -@media only screen and (max-width: 320px) { - #nav-index #nav-index-wrapper #nav-pages .nav-item { - width: 94.5%; - font-size: 1em; - } - #nav-index #nav-index-wrapper #nav-pages .nav-item label { - width: 37%; - vertical-align: top; - margin-top: 0px; - line-height: 1em; - } -} -form { - display: inline-block; -} -form a { - color: #1D3040; -} -form p { - background: #f5ab35; - color: #1D3040; - padding: 5px; - display: block; - border-radius: 5px; - text-align: left; -} - -input[type=email], input[type=password], input[type=text] { - border: 0; - border-radius: 5px; - padding: 5px; - margin: 10px 5px 0 0; - font: 18px Helvetica, Arial, sans-serif; - display: inline-block; - background: #1D3040; - color: #f5ab35; -} - -textarea { - border: 0; - border-radius: 3px; - color: #EFEBE3; - font: 15px Helvetica, Arial, sans-serif; - background: #1D3040; -} - -button, input[type=submit] { - background: #fc6399; - color: #1D3040; - font: 20px Helvetica, Arial, sans-serif; - border-radius: 5px; - position: relative; - cursor: pointer; - border: 0; - padding: 10px 0 5px 0; - transition: all 0.3s linear; -} - -select { - font: 14px Helvetica, Arial, sans-serif; - border: 1px solid #b2cce5; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - color: #1D3040; -} - -::-webkit-input-placeholder { - font: 25px Helvetica, Arial, sans-serif; - color: #EFEBE3; -} - -:-moz-placeholder { - /* Firefox 18- */ - font: 25px Helvetica, Arial, sans-serif; - color: #EFEBE3; -} - -::-moz-placeholder { - /* Firefox 19+ */ - font: 15px Helvetica, Arial, sans-serif; - color: #EFEBE3; -} - -:-ms-input-placeholder { - font: 25px Helvetica, Arial, sans-serif; - color: #EFEBE3; -} - -#post-index { - width: 100%; - max-width: 900px; - margin: 0 auto; -} -#post-index #post-index-wrapper { - overflow: hidden; -} -#post-index #post-index-wrapper #post-index-header { - margin: 10px 0 0 0; -} -#post-index #post-index-wrapper #post-index-header #post-index-header-left { - text-transform: capitalize; - display: inline-block; - width: 50%; - color: #EFEBE3; - font-size: 3em; -} -#post-index #post-index-wrapper #post-index-header #post-index-header-right { - text-align: right; - display: inline-block; - width: 50%; -} -#post-index #post-index-wrapper #post-index-header #post-index-header-right a button { - color: #EFEBE3; - border-radius: 3px; - margin-left: 10px; - width: 55px; -} -#post-index #post-index-wrapper #post-index-header #post-index-header-right a svg { - transition: all 0.1s linear; - width: 20px; - height: 17px; - fill: #EFEBE3; -} -#post-index #post-index-wrapper #post-index-header #post-index-header-right .current-filter { - color: #fc6399; - text-decoration-color: #b2cce5; -} -#post-index #post-index-wrapper #posts-list { - margin: 20px 0 0 0; -} -#post-index #post-index-wrapper #posts-list a.page-link { - background: #EFEBE3; - display: inline-block; - vertical-align: top; - width: 100%; - text-decoration: none; - margin: 0 0 20px 0; - border-radius: 3px; - overflow: hidden; - color: black; -} -#post-index #post-index-wrapper #posts-list a.page-link label { - font-size: 2em; - font-weight: 500; - padding: 10px; - display: inline-block; - vertical-align: top; - width: 100%; -} -#post-index #post-index-wrapper #posts-list a.page-link div.page-bg, #post-index #post-index-wrapper #posts-list a.page-link div.page-video { - width: 100%; - height: 350px; - background-color: #fc6399; - position: relative; -} -#post-index #post-index-wrapper #posts-list a.page-link div.page-bg video, #post-index #post-index-wrapper #posts-list a.page-link div.page-video video { - width: 100%; - position: absolute; -} -#post-index #post-index-wrapper #posts-list a.page-link div.page-bg label, #post-index #post-index-wrapper #posts-list a.page-link div.page-video label { - font-size: 2em; - font-weight: 700; - color: #EFEBE3; - padding: 5px; - vertical-align: top; - display: inline-block; - word-wrap: break-word; - width: 100%; - text-align: center; - position: relative; - top: 35%; - text-shadow: 2px 2px 0 #32302f; -} -#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta { - width: 100%; - background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%); - border-radius: 3px; - margin: auto; - bottom: 0; - position: absolute; - padding: 0 0 20px 0; -} -#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options { - width: 100%; - bottom: 0; - position: absolute; -} -#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-left, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-left { - display: inline-block; - vertical-align: top; - width: 50%; - position: relative; - background: none; -} -#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-left button, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-left button { - border-radius: 3px; - background: #1D3040; - margin: 0 0 10px 10px; -} -#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-left svg, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-left svg { - transition: all 0.2s linear; - width: 40px; - height: 20px; - fill: #b2cce5; -} -#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-left .item-options, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-left .item-options { - border-radius: 3px; - margin: 5px; - display: inline-block; -} -#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-left button[data-active=false], #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-left button[data-active=false] { - background: #1D3040; -} -#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-left button[data-active=false] svg, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-left button[data-active=false] svg { - fill: #b2cce5; -} -#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-left button[data-active=true], #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-left button[data-active=true] { - background: #f5ab35; -} -#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-left button[data-active=true] svg, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-left button[data-active=true] svg { - fill: #1D3040; -} -#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-right, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-right { - display: inline-block; - width: 50%; - text-align: right; -} -#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-right span, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-right span { - font-weight: bold; - display: block; - background: #EFEBE3; - color: #1D3040; - border-radius: 3px; - font-size: 0.6em; - text-align: center; - position: relative; - padding: 5px; - float: right; - margin: 0 10px 0 0; - bottom: -15px; -} -#post-index #post-index-wrapper #posts-list a.page-link p { - padding: 5px 10px 5px 10px; - font-size: 1.2em; - font-weight: 400; -} -#post-index #post-index-wrapper .paginate { - width: 260px; - display: block; - margin: 0 auto; -} -#post-index #post-index-wrapper .paginate a { - display: inline-block; - vertical-align: top; -} -#post-index #post-index-wrapper .paginate span.count { - text-align: center; - padding: 5px; - margin-top: -2px; - display: inline-block; - width: 190px; - font-size: 1.5em; - color: #f5ab35; -} - -#post-edit-index { - width: 100%; - overflow: hidden; -} -#post-edit-index #post-edit-index-wrapper { - width: 100%; -} -#post-edit-index #post-edit-index-wrapper #post-header { - background: #fc6399; -} -#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper { - max-width: 900px; - margin: 0 auto; - padding: 0.75rem; -} -#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper label { - color: #EFEBE3; - font-size: 0.9em; - font-family: Helvetica, Arial, sans-serif; - font-weight: 600; -} -#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper span { - color: #1D3040; - font-size: 0.9em; - font-weight: 600; - text-transform: uppercase; - float: right; -} -#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-title #post_title { - background: #EFEBE3; - font-family: Helvetica, Arial, sans-serif; - width: 97.6%; - height: 80px; - font-size: 2em; - color: #1D3040; - padding: 5px; - margin: 0 0 5px 0; -} -#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-title #calendar-icon { - background: #05090b; - border-radius: 3px 0 0 3px; - display: inline-block; - padding: 5.2px; - color: #b2cce5; -} -#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-title #layouts select { - background: #1D3040; - color: #b2cce5; - border-radius: 3px; - border-color: #1D3040; - margin: 0 0 10px 0; - width: 100%; - height: 45px; - padding: 5px; - font-size: 1.5em; -} -#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post_tags { - background: #EFEBE3; - font-family: Helvetica, Arial, sans-serif; - width: 97.6%; - height: 80px; - color: #1D3040; - padding: 5px; - margin: 0 0 5px 0; -} -#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options { - display: inline-block; - vertical-align: top; - width: 100%; - padding: 0; - margin: 0 0 10px 0; -} -#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button:nth-child(1) { - border-radius: 3px 0 0 3px; -} -#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button:nth-child(4) { - border-radius: 0 3px 3px 0; -} -#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options a button { - border-radius: 0 3px 3px 0 !important; -} -#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button { - width: 25%; - height: 45px; - transition: all 0.3s linear; - margin: 0; - border-radius: 0; - display: inline-block; - vertical-align: top; - text-align: center; -} -#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button[data-active=false] { - background: #1D3040; -} -#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button[data-active=false] svg { - fill: #b2cce5; -} -#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button[data-active=true] { - background: #f5ab35; -} -#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button[data-active=true] svg { - fill: #1D3040; -} -#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #page-files-upload, #post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-image-upload { - display: none; -} -#post-edit-index #post-edit-index-wrapper #post-feature { - width: 100%; -} -#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager { - background: #f5ab35; - width: 100%; - min-height: 300px; -} -#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper { - width: 100%; - max-width: 900px; - padding: 10px; - margin: 0 auto; - font-weight: bold; - font-color: #1D3040; - font-size: 1em; -} -#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-file-drop { - display: flex; - align-items: center; - justify-content: center; - width: 100%; - min-height: 100px; - background: #EFEBE3; - color: #1D3040; - vertical-align: middle; - border-radius: 5px; - margin: 0 0 10px 0; -} -#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-file-drop label { - cursor: pointer; - font-weight: 600px; - text-transform: capitalize; -} -#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-file-drop img { - width: 100%; - margin: 0; - padding: 0; -} -#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-images-list, #post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-files-list { - padding: 10px 0 0 0; -} -#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-images-list .img-item, #post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-files-list .img-item { - height: 150px; - width: 23.8%; - border-radius: 3px; - margin: 0 10px 10px 0; - display: inline-block; - cursor: pointer; -} -#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-images-list .audio-item, #post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-files-list .audio-item { - height: 150px; - width: 23.8%; - border-radius: 3px; - margin: 0 10px 10px 0; - display: inline-block; - cursor: pointer; - background: #1D3040; - background: url("/assets/images/global/upload-audio.png") no-repeat center center/cover; -} -#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-images-list .video-item, #post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-files-list .video-item { - height: 150px; - width: 23.8%; - border-radius: 3px; - margin: 0 10px 10px 0; - display: inline-block; - cursor: pointer; - background: #1D3040; - background: url("/assets/images/global/upload-video.png") no-repeat center center/cover; -} -#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-images-list .file-item, #post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-files-list .file-item { - height: 150px; - width: 23.8%; - border-radius: 3px; - margin: 0 10px 10px 0; - display: inline-block; - cursor: pointer; - background: #1D3040; - background: url("/assets/images/global/upload-doc.png") no-repeat center center/cover; -} -#post-edit-index #post-edit-index-wrapper #edit-post { - width: 100%; - max-width: 880px; - margin: 0 auto; -} -#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper { - width: 100%; - max-width: 900px; - border-radius: 5px; - position: relative; -} -#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper textarea:focus { - outline: none; - border-color: #fc6399; -} -#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #edit, #post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #highlight { - border: 0; - width: 100%; - min-height: 300px; - height: auto; - position: absolute; - top: 0; - left: 0; - overflow: auto; - word-wrap: normal; - white-space: pre-wrap; - line-break: normal; -} -#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #highlight-content { - word-wrap: normal; - white-space: pre-wrap; - line-break: normal; -} -#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #edit, #post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #highlight, #post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #hightlight * { - font-size: 1.2em; - font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; - line-height: 22pt; -} -#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #edit { - z-index: 1; - color: transparent; - background: transparent; - caret-color: #fc6399; -} -#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #highlight { - z-index: 0; -} -#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #highlight pre { - margin: 0; -} -#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #highlight pre code { - font-family: "Lucida Console", Monaco, monospace; - padding: 5px; - border-radius: 5px; - line-height: 1.6em; - font-size: 1.25em; - color: #fde3a7; - word-wrap: normal; - white-space: pre-wrap; - line-break: normal; - -webkit-line-break: normal; - -o-line-break: normal; - -moz-line-break: normal; - display: inline-block; - width: 100%; - max-width: 900px; - min-height: 200px; - caret-color: #fc6399; -} - -@media only screen and (max-width: 800px) { - #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-date { - width: 37.6%; - } -} -@media only screen and (max-width: 768px) { - #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-date { - width: 43.1%; - } - #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control { - max-width: 100%; - } - #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control button { - width: 9.91%; - } -} -@media only screen and (max-width: 640px) { - #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-date { - width: 42%; - } -} -@media only screen and (max-width: 480px) { - #post-index #post-index-wrapper #post-index-header #post-index-header-left { - font-size: 1.35em; - width: 30%; - } - #post-index #post-index-wrapper #post-index-header #post-index-header-right { - width: 70%; - vertical-align: top; - } - #post-index #post-index-wrapper #post-index-menu a { - font-size: 0.95em; - } - #post-index #post-index-wrapper #post-index-menu a label { - display: none; - visibility: hidden; - } - - #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-options { - margin: 5px 0 0 0; - width: 100%; - padding: 0; - } - #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-date { - width: 89.2%; - } - #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control button { - width: 9.91%; - } -} -@media only screen and (max-width: 320px) { - #post-index #post-index-wrapper #post-index-menu a { - font-size: 0.95em; - } - #post-index #post-index-wrapper #post-index-menu a label { - display: none; - visibility: hidden; - } - - #post-edit-index #post-edit-index-wrapper #post-header #post-title #post_title { - width: 96.4%; - } - #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-options { - margin: 5px 0 0 0; - width: 100%; - padding: 0; - } - #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-date { - width: 83.1%; - } - #post-edit-index #post-edit-index-wrapper #post-header #post-meta #post_tags { - width: 96.4%; - } - #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control .content-editor-btn-icon svg.icons { - width: 20px; - } - #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control .post-sumbit-btn svg.icons { - width: 20px; - } - #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control button { - width: 10%; - } -} -.dp-modal { - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - background: rgba(0, 0, 0, 0.75); - z-index: 2000; -} - -.dp { - position: relative; - background: #1D3040; - box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.25); - line-height: 1.4; - border-radius: 4px; - max-height: 400px; - z-index: 5000; - padding-top: 6px; - overflow: hidden; - -webkit-tap-highlight-color: transparent; -} - -.dp:before { - content: " "; - height: 6px; - position: absolute; - top: 0; - left: 0; - right: 0; - background: #fc6399; -} - -.dp-permanent .dp { - padding-top: 0; - border: 1px solid #EEE; - box-shadow: none; -} - -.dp-permanent .dp:before { - display: none; -} - -.dp-cal { - min-height: 300px; -} - -.dp-below { - position: absolute; - font-size: 0.8em; - width: 400px; - max-width: 90vw; -} - -.dp-permanent { - position: relative; - font-size: 0.8em; - width: 400px; - max-width: 100vw; -} - -.dp-permanent .dp { - z-index: 0; -} - -.dp-modal .dp { - position: absolute; - top: 50%; - left: 50%; - max-width: 600px; - width: calc(100% - 4em); - transform: translate(-50%, -50%); - animation: slide-up 0.3s forwards; -} - -.dp-months { - padding: 24px; -} - -.dp-years { - box-sizing: border-box; - max-height: 400px; - padding: 8px 0; - /* HACK for Chrome on Android */ - overflow: auto !important; -} - -.dp-cal-month, .dp-cal-year, .dp-day, .dp-month, .dp-year { - box-sizing: border-box; - text-align: center; - text-decoration: none; - position: relative; - color: #EFEBE3; - border-radius: 2px; - border: 0; - background: transparent; -} - -.dp-cal-header { - position: relative; - text-align: center; - padding-bottom: 16px; - background: #0d161d; -} - -.dp-next, .dp-prev { - position: absolute; - width: 30px; - height: 30px; - overflow: hidden; - top: 14px; - color: black; - border-radius: 2px; - border: 0; - background: transparent; -} - -.dp-next:focus, .dp-prev:focus, .dp-next:hover, .dp-prev:hover { - outline: none; - color: inherit; -} - -.dp-prev { - left: 24px; -} - -.dp-next { - right: 24px; -} - -.dp-prev:before, .dp-next:before { - content: ""; - border: 2px solid; - width: 10px; - height: 10px; - display: inline-block; - transform: rotate(-45deg); - transition: border-color 0.2s; - margin: 9px 0 40px 4px; -} - -.dp-prev:before { - border-right: 0; - border-bottom: 0; -} - -.dp-next:before { - border-left: 0; - border-top: 0; - margin-left: 0; - margin-right: 4px; -} - -.dp-cal-month, .dp-cal-year { - display: inline-block; - font-size: 1.4em; - padding: 16px 8px 8px; - outline: none; -} - -.dp-cal-footer { - text-align: center; - background: #0d161d; -} - -.dp-day-today:after { - content: ""; - height: 0; - width: 0; - border: 7px solid #fc6399; - border-bottom-color: transparent; - border-left-color: transparent; - position: absolute; - top: 0; - right: 0; -} - -.dp-close, .dp-clear, .dp-today { - box-sizing: border-box; - display: inline-block; - width: 33%; - padding: 8px; - text-decoration: none; - color: black; - border: 0; - background: transparent; -} - -.dp-permanent .dp-close, .dp-permanent .dp-clear { - display: none; -} - -.dp-close:active, .dp-clear:active, .dp-today:active, .dp-next:active, .dp-prev:active, .dp-cal-month:active, .dp-cal-year:active { - background: #fc6399; - color: #EFEBE3; -} - -@media screen and (min-device-width: 1200px) { - .dp-close:hover, .dp-close:focus, .dp-clear:hover, .dp-clear:focus, .dp-today:hover, .dp-today:focus, .dp-next:hover, .dp-next:focus, .dp-prev:hover, .dp-prev:focus, .dp-cal-month:focus, .dp-cal-month:hover, .dp-cal-year:hover, .dp-cal-year:focus { - background: #fc6399; - color: #EFEBE3; - } -} -.dp-col-header, .dp-day { - width: 14.28571429%; - display: inline-block; - padding: 8px; - text-align: center; -} - -.dp-col-header { - color: #AAA; - text-transform: uppercase; - font-weight: 300; - font-size: 0.8em; - padding: 8px 0; -} - -.dp-month { - width: 33%; - display: inline-block; - padding: 8px; -} - -.dp-year { - display: block; - padding: 8px 40px; - width: 100%; -} - -.dp-edge-day { - color: #AAA; -} - -.dp-day:hover, .dp-month:hover, .dp-year:hover, .dp-current:focus, .dp-current, .dp-day:focus, .dp-month:focus, .dp-year:focus { - outline: none; - background: black; - color: #EFEBE3; -} - -.dp-selected:hover, .dp-selected:focus, .dp-selected { - background: #fc6399; - color: black; -} - -.dp-day-disabled { - background: transparent; - color: #DDD; -} - -.dp-day-disabled:focus, .dp-day-disabled:hover { - background: #DDD; -} - -.dp-focuser { - position: absolute; - z-index: 0; - top: 50%; - left: 50%; -} - -@media (max-width: 480px), (max-height: 480px) { - .dp-modal .dp { - font-size: 0.9em; - width: auto; - width: 100%; - } - - .dp-day-of-week, .dp-day { - padding: 8px; - } -} -@keyframes slide-up { - 0% { - transform: translate(-50%, 100%); - } - 100% { - transform: translate(-50%, -50%); - } -} -#edit-control { - top: 1px; - border-radius: 3px; - width: 100%; - max-width: 880px; - margin-top: 30px; - z-index: 2000; -} -#edit-control button:nth-child(1) { - border-radius: 3px 0 0 3px; -} -#edit-control button:nth-child(10) { - border-radius: 0 3px 3px 0; -} -#edit-control button { - background: #b2cce5; - width: 10%; - height: 39px; - transition: all 0.3s linear; - margin: 0; - border-radius: 0; - display: inline-block; - vertical-align: top; - text-align: center; -} -#edit-control button:hover { - background: #6699cb; -} -#edit-control #option-update { - padding: 5px 5px 1px 5px; - display: inline-block; - vertical-align: top; - text-align: center; -} -#edit-control .icon-hide { - display: none; - visibility: hidden; -} -#edit-control .submit-start { - background: #EFEBE3; -} -#edit-control .submit-start svg { - fill: #32cd32; -} -#edit-control .submit-cool { - background: #32cd32; -} -#edit-control .submit-cool svg { - fill: #EFEBE3; -} -#edit-control .submit-delete { - background: #F64747 !important; -} -#edit-control .submit-delete svg { - fill: #EFEBE3 !important; -} -#edit-control #option-date { - height: 30px; - padding-top: 6px; -} -#edit-control #option-date svg { - margin: -13px 5px 0 0; - display: inline-block; - vertical-align: top; - fill: #EFEBE3; -} -#edit-control .content-editor-btn-icon { - padding: 5px 5px 1px 5px; - color: #1D3040; -} -#edit-control .content-editor-btn-icon svg { - fill: #1D3040; -} -#edit-control .content-editor-btn-text { - padding: 5px; - color: #1D3040; -} -#edit-control #option-bold { - font-weight: bold; - text-decoration: none; -} -#edit-control #option-italic { - font-weight: bold; - text-decoration: none; - font-style: italic; -} -#edit-control #option-strikethrough { - font-weight: bold; - text-decoration: line-through; - font-style: italic; -} - -code[class*=language-], -pre[class*=language-] { - color: #fde3a7; - background: none; - text-shadow: 0 1px rgba(0, 0, 0, 0.3); - font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; - font-size: 1em; - text-align: left; - white-space: pre; - word-spacing: normal; - word-break: normal; - word-wrap: normal; - line-height: 1.5; - -moz-tab-size: 4; - -o-tab-size: 4; - tab-size: 4; - -webkit-hyphens: none; - -moz-hyphens: none; - -ms-hyphens: none; - hyphens: none; -} - -pre[class*=language-] { - margin: 0.1em 0; - overflow: auto; - border-radius: 0.3em; -} - -:not(pre) > code[class*=language-], -pre[class*=language-] { - background: #1D3040; -} - -:not(pre) > code[class*=language-] { - padding: 0.1em; - border-radius: 0.3em; - white-space: normal; -} - -.token.comment, -.token.prolog, -.token.doctype, -.token.cdata { - color: #8292a2; -} - -.token.punctuation { - color: #e7903c; -} -.token.namespace { - opacity: 0.6; -} -.token.keyword { - color: #66d9ef; -} -.token.italic { - font-style: italic; -} -.token.entity { - cursor: help; -} -.token.content { - color: #6bb9f0; -} - -.token.property, -.token.tag, -.token.constant, -.token.symbol, -.token.deleted { - color: #e73c4e; -} - -.token.boolean, -.token.number { - color: #ae81ff; -} - -.token.selector, -.token.attr-name, -.token.string, -.token.char, -.token.builtin, -.token.inserted { - color: #a6e22e; -} - -.token.operator, -.token.entity, -.token.url, -.language-css .token.string, -.style .token.string, -.token.variable { - color: #dcc6e0; -} - -.token.atrule, -.token.attr-value, -.token.function, -.token.class-name { - color: #e6db74; -} - -.token.regex, -.token.important { - color: #e7903c; -} - -.token.important, -.token.bold { - font-weight: bold; -} - -/*# sourceMappingURL=dash.css.map */ -- 2.25.1 From 614c9859b17ab40359cd33724581a541ed7c8ede Mon Sep 17 00:00:00 2001 From: are0h Date: Sun, 20 Mar 2022 15:28:02 -0700 Subject: [PATCH 15/23] fix for weird css dahsh deletion bug --- public/assets/css/dash.css | 3872 ++++++++++++++++++++++++++++++++++++ src/com/ui/FileManager.js | 204 -- 2 files changed, 3872 insertions(+), 204 deletions(-) create mode 100644 public/assets/css/dash.css delete mode 100644 src/com/ui/FileManager.js diff --git a/public/assets/css/dash.css b/public/assets/css/dash.css new file mode 100644 index 0000000..5c567e0 --- /dev/null +++ b/public/assets/css/dash.css @@ -0,0 +1,3872 @@ +/* Bulma Utilities */ +.column { + display: block; + flex-basis: 0; + flex-grow: 1; + flex-shrink: 1; + padding: 0.75rem; +} +.columns.is-mobile > .column.is-narrow { + flex: none; + width: unset; +} +.columns.is-mobile > .column.is-full { + flex: none; + width: 100%; +} +.columns.is-mobile > .column.is-three-quarters { + flex: none; + width: 75%; +} +.columns.is-mobile > .column.is-two-thirds { + flex: none; + width: 66.6666%; +} +.columns.is-mobile > .column.is-half { + flex: none; + width: 50%; +} +.columns.is-mobile > .column.is-one-third { + flex: none; + width: 33.3333%; +} +.columns.is-mobile > .column.is-one-quarter { + flex: none; + width: 25%; +} +.columns.is-mobile > .column.is-one-fifth { + flex: none; + width: 20%; +} +.columns.is-mobile > .column.is-two-fifths { + flex: none; + width: 40%; +} +.columns.is-mobile > .column.is-three-fifths { + flex: none; + width: 60%; +} +.columns.is-mobile > .column.is-four-fifths { + flex: none; + width: 80%; +} +.columns.is-mobile > .column.is-offset-three-quarters { + margin-left: 75%; +} +.columns.is-mobile > .column.is-offset-two-thirds { + margin-left: 66.6666%; +} +.columns.is-mobile > .column.is-offset-half { + margin-left: 50%; +} +.columns.is-mobile > .column.is-offset-one-third { + margin-left: 33.3333%; +} +.columns.is-mobile > .column.is-offset-one-quarter { + margin-left: 25%; +} +.columns.is-mobile > .column.is-offset-one-fifth { + margin-left: 20%; +} +.columns.is-mobile > .column.is-offset-two-fifths { + margin-left: 40%; +} +.columns.is-mobile > .column.is-offset-three-fifths { + margin-left: 60%; +} +.columns.is-mobile > .column.is-offset-four-fifths { + margin-left: 80%; +} +.columns.is-mobile > .column.is-0 { + flex: none; + width: 0%; +} +.columns.is-mobile > .column.is-offset-0 { + margin-left: 0%; +} +.columns.is-mobile > .column.is-1 { + flex: none; + width: 8.33333337%; +} +.columns.is-mobile > .column.is-offset-1 { + margin-left: 8.33333337%; +} +.columns.is-mobile > .column.is-2 { + flex: none; + width: 16.66666674%; +} +.columns.is-mobile > .column.is-offset-2 { + margin-left: 16.66666674%; +} +.columns.is-mobile > .column.is-3 { + flex: none; + width: 25%; +} +.columns.is-mobile > .column.is-offset-3 { + margin-left: 25%; +} +.columns.is-mobile > .column.is-4 { + flex: none; + width: 33.33333337%; +} +.columns.is-mobile > .column.is-offset-4 { + margin-left: 33.33333337%; +} +.columns.is-mobile > .column.is-5 { + flex: none; + width: 41.66666674%; +} +.columns.is-mobile > .column.is-offset-5 { + margin-left: 41.66666674%; +} +.columns.is-mobile > .column.is-6 { + flex: none; + width: 50%; +} +.columns.is-mobile > .column.is-offset-6 { + margin-left: 50%; +} +.columns.is-mobile > .column.is-7 { + flex: none; + width: 58.33333337%; +} +.columns.is-mobile > .column.is-offset-7 { + margin-left: 58.33333337%; +} +.columns.is-mobile > .column.is-8 { + flex: none; + width: 66.66666674%; +} +.columns.is-mobile > .column.is-offset-8 { + margin-left: 66.66666674%; +} +.columns.is-mobile > .column.is-9 { + flex: none; + width: 75%; +} +.columns.is-mobile > .column.is-offset-9 { + margin-left: 75%; +} +.columns.is-mobile > .column.is-10 { + flex: none; + width: 83.33333337%; +} +.columns.is-mobile > .column.is-offset-10 { + margin-left: 83.33333337%; +} +.columns.is-mobile > .column.is-11 { + flex: none; + width: 91.66666674%; +} +.columns.is-mobile > .column.is-offset-11 { + margin-left: 91.66666674%; +} +.columns.is-mobile > .column.is-12 { + flex: none; + width: 100%; +} +.columns.is-mobile > .column.is-offset-12 { + margin-left: 100%; +} +@media screen and (max-width: 768px) { + .column.is-narrow-mobile { + flex: none; + width: unset; + } + .column.is-full-mobile { + flex: none; + width: 100%; + } + .column.is-three-quarters-mobile { + flex: none; + width: 75%; + } + .column.is-two-thirds-mobile { + flex: none; + width: 66.6666%; + } + .column.is-half-mobile { + flex: none; + width: 50%; + } + .column.is-one-third-mobile { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter-mobile { + flex: none; + width: 25%; + } + .column.is-one-fifth-mobile { + flex: none; + width: 20%; + } + .column.is-two-fifths-mobile { + flex: none; + width: 40%; + } + .column.is-three-fifths-mobile { + flex: none; + width: 60%; + } + .column.is-four-fifths-mobile { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters-mobile { + margin-left: 75%; + } + .column.is-offset-two-thirds-mobile { + margin-left: 66.6666%; + } + .column.is-offset-half-mobile { + margin-left: 50%; + } + .column.is-offset-one-third-mobile { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter-mobile { + margin-left: 25%; + } + .column.is-offset-one-fifth-mobile { + margin-left: 20%; + } + .column.is-offset-two-fifths-mobile { + margin-left: 40%; + } + .column.is-offset-three-fifths-mobile { + margin-left: 60%; + } + .column.is-offset-four-fifths-mobile { + margin-left: 80%; + } + .column.is-0-mobile { + flex: none; + width: 0%; + } + .column.is-offset-0-mobile { + margin-left: 0%; + } + .column.is-1-mobile { + flex: none; + width: 8.33333337%; + } + .column.is-offset-1-mobile { + margin-left: 8.33333337%; + } + .column.is-2-mobile { + flex: none; + width: 16.66666674%; + } + .column.is-offset-2-mobile { + margin-left: 16.66666674%; + } + .column.is-3-mobile { + flex: none; + width: 25%; + } + .column.is-offset-3-mobile { + margin-left: 25%; + } + .column.is-4-mobile { + flex: none; + width: 33.33333337%; + } + .column.is-offset-4-mobile { + margin-left: 33.33333337%; + } + .column.is-5-mobile { + flex: none; + width: 41.66666674%; + } + .column.is-offset-5-mobile { + margin-left: 41.66666674%; + } + .column.is-6-mobile { + flex: none; + width: 50%; + } + .column.is-offset-6-mobile { + margin-left: 50%; + } + .column.is-7-mobile { + flex: none; + width: 58.33333337%; + } + .column.is-offset-7-mobile { + margin-left: 58.33333337%; + } + .column.is-8-mobile { + flex: none; + width: 66.66666674%; + } + .column.is-offset-8-mobile { + margin-left: 66.66666674%; + } + .column.is-9-mobile { + flex: none; + width: 75%; + } + .column.is-offset-9-mobile { + margin-left: 75%; + } + .column.is-10-mobile { + flex: none; + width: 83.33333337%; + } + .column.is-offset-10-mobile { + margin-left: 83.33333337%; + } + .column.is-11-mobile { + flex: none; + width: 91.66666674%; + } + .column.is-offset-11-mobile { + margin-left: 91.66666674%; + } + .column.is-12-mobile { + flex: none; + width: 100%; + } + .column.is-offset-12-mobile { + margin-left: 100%; + } +} +@media screen and (min-width: 769px), print { + .column.is-narrow, .column.is-narrow-tablet { + flex: none; + width: unset; + } + .column.is-full, .column.is-full-tablet { + flex: none; + width: 100%; + } + .column.is-three-quarters, .column.is-three-quarters-tablet { + flex: none; + width: 75%; + } + .column.is-two-thirds, .column.is-two-thirds-tablet { + flex: none; + width: 66.6666%; + } + .column.is-half, .column.is-half-tablet { + flex: none; + width: 50%; + } + .column.is-one-third, .column.is-one-third-tablet { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter, .column.is-one-quarter-tablet { + flex: none; + width: 25%; + } + .column.is-one-fifth, .column.is-one-fifth-tablet { + flex: none; + width: 20%; + } + .column.is-two-fifths, .column.is-two-fifths-tablet { + flex: none; + width: 40%; + } + .column.is-three-fifths, .column.is-three-fifths-tablet { + flex: none; + width: 60%; + } + .column.is-four-fifths, .column.is-four-fifths-tablet { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters, .column.is-offset-three-quarters-tablet { + margin-left: 75%; + } + .column.is-offset-two-thirds, .column.is-offset-two-thirds-tablet { + margin-left: 66.6666%; + } + .column.is-offset-half, .column.is-offset-half-tablet { + margin-left: 50%; + } + .column.is-offset-one-third, .column.is-offset-one-third-tablet { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter, .column.is-offset-one-quarter-tablet { + margin-left: 25%; + } + .column.is-offset-one-fifth, .column.is-offset-one-fifth-tablet { + margin-left: 20%; + } + .column.is-offset-two-fifths, .column.is-offset-two-fifths-tablet { + margin-left: 40%; + } + .column.is-offset-three-fifths, .column.is-offset-three-fifths-tablet { + margin-left: 60%; + } + .column.is-offset-four-fifths, .column.is-offset-four-fifths-tablet { + margin-left: 80%; + } + .column.is-0, .column.is-0-tablet { + flex: none; + width: 0%; + } + .column.is-offset-0, .column.is-offset-0-tablet { + margin-left: 0%; + } + .column.is-1, .column.is-1-tablet { + flex: none; + width: 8.33333337%; + } + .column.is-offset-1, .column.is-offset-1-tablet { + margin-left: 8.33333337%; + } + .column.is-2, .column.is-2-tablet { + flex: none; + width: 16.66666674%; + } + .column.is-offset-2, .column.is-offset-2-tablet { + margin-left: 16.66666674%; + } + .column.is-3, .column.is-3-tablet { + flex: none; + width: 25%; + } + .column.is-offset-3, .column.is-offset-3-tablet { + margin-left: 25%; + } + .column.is-4, .column.is-4-tablet { + flex: none; + width: 33.33333337%; + } + .column.is-offset-4, .column.is-offset-4-tablet { + margin-left: 33.33333337%; + } + .column.is-5, .column.is-5-tablet { + flex: none; + width: 41.66666674%; + } + .column.is-offset-5, .column.is-offset-5-tablet { + margin-left: 41.66666674%; + } + .column.is-6, .column.is-6-tablet { + flex: none; + width: 50%; + } + .column.is-offset-6, .column.is-offset-6-tablet { + margin-left: 50%; + } + .column.is-7, .column.is-7-tablet { + flex: none; + width: 58.33333337%; + } + .column.is-offset-7, .column.is-offset-7-tablet { + margin-left: 58.33333337%; + } + .column.is-8, .column.is-8-tablet { + flex: none; + width: 66.66666674%; + } + .column.is-offset-8, .column.is-offset-8-tablet { + margin-left: 66.66666674%; + } + .column.is-9, .column.is-9-tablet { + flex: none; + width: 75%; + } + .column.is-offset-9, .column.is-offset-9-tablet { + margin-left: 75%; + } + .column.is-10, .column.is-10-tablet { + flex: none; + width: 83.33333337%; + } + .column.is-offset-10, .column.is-offset-10-tablet { + margin-left: 83.33333337%; + } + .column.is-11, .column.is-11-tablet { + flex: none; + width: 91.66666674%; + } + .column.is-offset-11, .column.is-offset-11-tablet { + margin-left: 91.66666674%; + } + .column.is-12, .column.is-12-tablet { + flex: none; + width: 100%; + } + .column.is-offset-12, .column.is-offset-12-tablet { + margin-left: 100%; + } +} +@media screen and (max-width: 1023px) { + .column.is-narrow-touch { + flex: none; + width: unset; + } + .column.is-full-touch { + flex: none; + width: 100%; + } + .column.is-three-quarters-touch { + flex: none; + width: 75%; + } + .column.is-two-thirds-touch { + flex: none; + width: 66.6666%; + } + .column.is-half-touch { + flex: none; + width: 50%; + } + .column.is-one-third-touch { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter-touch { + flex: none; + width: 25%; + } + .column.is-one-fifth-touch { + flex: none; + width: 20%; + } + .column.is-two-fifths-touch { + flex: none; + width: 40%; + } + .column.is-three-fifths-touch { + flex: none; + width: 60%; + } + .column.is-four-fifths-touch { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters-touch { + margin-left: 75%; + } + .column.is-offset-two-thirds-touch { + margin-left: 66.6666%; + } + .column.is-offset-half-touch { + margin-left: 50%; + } + .column.is-offset-one-third-touch { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter-touch { + margin-left: 25%; + } + .column.is-offset-one-fifth-touch { + margin-left: 20%; + } + .column.is-offset-two-fifths-touch { + margin-left: 40%; + } + .column.is-offset-three-fifths-touch { + margin-left: 60%; + } + .column.is-offset-four-fifths-touch { + margin-left: 80%; + } + .column.is-0-touch { + flex: none; + width: 0%; + } + .column.is-offset-0-touch { + margin-left: 0%; + } + .column.is-1-touch { + flex: none; + width: 8.33333337%; + } + .column.is-offset-1-touch { + margin-left: 8.33333337%; + } + .column.is-2-touch { + flex: none; + width: 16.66666674%; + } + .column.is-offset-2-touch { + margin-left: 16.66666674%; + } + .column.is-3-touch { + flex: none; + width: 25%; + } + .column.is-offset-3-touch { + margin-left: 25%; + } + .column.is-4-touch { + flex: none; + width: 33.33333337%; + } + .column.is-offset-4-touch { + margin-left: 33.33333337%; + } + .column.is-5-touch { + flex: none; + width: 41.66666674%; + } + .column.is-offset-5-touch { + margin-left: 41.66666674%; + } + .column.is-6-touch { + flex: none; + width: 50%; + } + .column.is-offset-6-touch { + margin-left: 50%; + } + .column.is-7-touch { + flex: none; + width: 58.33333337%; + } + .column.is-offset-7-touch { + margin-left: 58.33333337%; + } + .column.is-8-touch { + flex: none; + width: 66.66666674%; + } + .column.is-offset-8-touch { + margin-left: 66.66666674%; + } + .column.is-9-touch { + flex: none; + width: 75%; + } + .column.is-offset-9-touch { + margin-left: 75%; + } + .column.is-10-touch { + flex: none; + width: 83.33333337%; + } + .column.is-offset-10-touch { + margin-left: 83.33333337%; + } + .column.is-11-touch { + flex: none; + width: 91.66666674%; + } + .column.is-offset-11-touch { + margin-left: 91.66666674%; + } + .column.is-12-touch { + flex: none; + width: 100%; + } + .column.is-offset-12-touch { + margin-left: 100%; + } +} +@media screen and (min-width: 1024px) { + .column.is-narrow-desktop { + flex: none; + width: unset; + } + .column.is-full-desktop { + flex: none; + width: 100%; + } + .column.is-three-quarters-desktop { + flex: none; + width: 75%; + } + .column.is-two-thirds-desktop { + flex: none; + width: 66.6666%; + } + .column.is-half-desktop { + flex: none; + width: 50%; + } + .column.is-one-third-desktop { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter-desktop { + flex: none; + width: 25%; + } + .column.is-one-fifth-desktop { + flex: none; + width: 20%; + } + .column.is-two-fifths-desktop { + flex: none; + width: 40%; + } + .column.is-three-fifths-desktop { + flex: none; + width: 60%; + } + .column.is-four-fifths-desktop { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters-desktop { + margin-left: 75%; + } + .column.is-offset-two-thirds-desktop { + margin-left: 66.6666%; + } + .column.is-offset-half-desktop { + margin-left: 50%; + } + .column.is-offset-one-third-desktop { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter-desktop { + margin-left: 25%; + } + .column.is-offset-one-fifth-desktop { + margin-left: 20%; + } + .column.is-offset-two-fifths-desktop { + margin-left: 40%; + } + .column.is-offset-three-fifths-desktop { + margin-left: 60%; + } + .column.is-offset-four-fifths-desktop { + margin-left: 80%; + } + .column.is-0-desktop { + flex: none; + width: 0%; + } + .column.is-offset-0-desktop { + margin-left: 0%; + } + .column.is-1-desktop { + flex: none; + width: 8.33333337%; + } + .column.is-offset-1-desktop { + margin-left: 8.33333337%; + } + .column.is-2-desktop { + flex: none; + width: 16.66666674%; + } + .column.is-offset-2-desktop { + margin-left: 16.66666674%; + } + .column.is-3-desktop { + flex: none; + width: 25%; + } + .column.is-offset-3-desktop { + margin-left: 25%; + } + .column.is-4-desktop { + flex: none; + width: 33.33333337%; + } + .column.is-offset-4-desktop { + margin-left: 33.33333337%; + } + .column.is-5-desktop { + flex: none; + width: 41.66666674%; + } + .column.is-offset-5-desktop { + margin-left: 41.66666674%; + } + .column.is-6-desktop { + flex: none; + width: 50%; + } + .column.is-offset-6-desktop { + margin-left: 50%; + } + .column.is-7-desktop { + flex: none; + width: 58.33333337%; + } + .column.is-offset-7-desktop { + margin-left: 58.33333337%; + } + .column.is-8-desktop { + flex: none; + width: 66.66666674%; + } + .column.is-offset-8-desktop { + margin-left: 66.66666674%; + } + .column.is-9-desktop { + flex: none; + width: 75%; + } + .column.is-offset-9-desktop { + margin-left: 75%; + } + .column.is-10-desktop { + flex: none; + width: 83.33333337%; + } + .column.is-offset-10-desktop { + margin-left: 83.33333337%; + } + .column.is-11-desktop { + flex: none; + width: 91.66666674%; + } + .column.is-offset-11-desktop { + margin-left: 91.66666674%; + } + .column.is-12-desktop { + flex: none; + width: 100%; + } + .column.is-offset-12-desktop { + margin-left: 100%; + } +} +@media screen and (min-width: 1216px) { + .column.is-narrow-widescreen { + flex: none; + width: unset; + } + .column.is-full-widescreen { + flex: none; + width: 100%; + } + .column.is-three-quarters-widescreen { + flex: none; + width: 75%; + } + .column.is-two-thirds-widescreen { + flex: none; + width: 66.6666%; + } + .column.is-half-widescreen { + flex: none; + width: 50%; + } + .column.is-one-third-widescreen { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter-widescreen { + flex: none; + width: 25%; + } + .column.is-one-fifth-widescreen { + flex: none; + width: 20%; + } + .column.is-two-fifths-widescreen { + flex: none; + width: 40%; + } + .column.is-three-fifths-widescreen { + flex: none; + width: 60%; + } + .column.is-four-fifths-widescreen { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters-widescreen { + margin-left: 75%; + } + .column.is-offset-two-thirds-widescreen { + margin-left: 66.6666%; + } + .column.is-offset-half-widescreen { + margin-left: 50%; + } + .column.is-offset-one-third-widescreen { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter-widescreen { + margin-left: 25%; + } + .column.is-offset-one-fifth-widescreen { + margin-left: 20%; + } + .column.is-offset-two-fifths-widescreen { + margin-left: 40%; + } + .column.is-offset-three-fifths-widescreen { + margin-left: 60%; + } + .column.is-offset-four-fifths-widescreen { + margin-left: 80%; + } + .column.is-0-widescreen { + flex: none; + width: 0%; + } + .column.is-offset-0-widescreen { + margin-left: 0%; + } + .column.is-1-widescreen { + flex: none; + width: 8.33333337%; + } + .column.is-offset-1-widescreen { + margin-left: 8.33333337%; + } + .column.is-2-widescreen { + flex: none; + width: 16.66666674%; + } + .column.is-offset-2-widescreen { + margin-left: 16.66666674%; + } + .column.is-3-widescreen { + flex: none; + width: 25%; + } + .column.is-offset-3-widescreen { + margin-left: 25%; + } + .column.is-4-widescreen { + flex: none; + width: 33.33333337%; + } + .column.is-offset-4-widescreen { + margin-left: 33.33333337%; + } + .column.is-5-widescreen { + flex: none; + width: 41.66666674%; + } + .column.is-offset-5-widescreen { + margin-left: 41.66666674%; + } + .column.is-6-widescreen { + flex: none; + width: 50%; + } + .column.is-offset-6-widescreen { + margin-left: 50%; + } + .column.is-7-widescreen { + flex: none; + width: 58.33333337%; + } + .column.is-offset-7-widescreen { + margin-left: 58.33333337%; + } + .column.is-8-widescreen { + flex: none; + width: 66.66666674%; + } + .column.is-offset-8-widescreen { + margin-left: 66.66666674%; + } + .column.is-9-widescreen { + flex: none; + width: 75%; + } + .column.is-offset-9-widescreen { + margin-left: 75%; + } + .column.is-10-widescreen { + flex: none; + width: 83.33333337%; + } + .column.is-offset-10-widescreen { + margin-left: 83.33333337%; + } + .column.is-11-widescreen { + flex: none; + width: 91.66666674%; + } + .column.is-offset-11-widescreen { + margin-left: 91.66666674%; + } + .column.is-12-widescreen { + flex: none; + width: 100%; + } + .column.is-offset-12-widescreen { + margin-left: 100%; + } +} +@media screen and (min-width: 1408px) { + .column.is-narrow-fullhd { + flex: none; + width: unset; + } + .column.is-full-fullhd { + flex: none; + width: 100%; + } + .column.is-three-quarters-fullhd { + flex: none; + width: 75%; + } + .column.is-two-thirds-fullhd { + flex: none; + width: 66.6666%; + } + .column.is-half-fullhd { + flex: none; + width: 50%; + } + .column.is-one-third-fullhd { + flex: none; + width: 33.3333%; + } + .column.is-one-quarter-fullhd { + flex: none; + width: 25%; + } + .column.is-one-fifth-fullhd { + flex: none; + width: 20%; + } + .column.is-two-fifths-fullhd { + flex: none; + width: 40%; + } + .column.is-three-fifths-fullhd { + flex: none; + width: 60%; + } + .column.is-four-fifths-fullhd { + flex: none; + width: 80%; + } + .column.is-offset-three-quarters-fullhd { + margin-left: 75%; + } + .column.is-offset-two-thirds-fullhd { + margin-left: 66.6666%; + } + .column.is-offset-half-fullhd { + margin-left: 50%; + } + .column.is-offset-one-third-fullhd { + margin-left: 33.3333%; + } + .column.is-offset-one-quarter-fullhd { + margin-left: 25%; + } + .column.is-offset-one-fifth-fullhd { + margin-left: 20%; + } + .column.is-offset-two-fifths-fullhd { + margin-left: 40%; + } + .column.is-offset-three-fifths-fullhd { + margin-left: 60%; + } + .column.is-offset-four-fifths-fullhd { + margin-left: 80%; + } + .column.is-0-fullhd { + flex: none; + width: 0%; + } + .column.is-offset-0-fullhd { + margin-left: 0%; + } + .column.is-1-fullhd { + flex: none; + width: 8.33333337%; + } + .column.is-offset-1-fullhd { + margin-left: 8.33333337%; + } + .column.is-2-fullhd { + flex: none; + width: 16.66666674%; + } + .column.is-offset-2-fullhd { + margin-left: 16.66666674%; + } + .column.is-3-fullhd { + flex: none; + width: 25%; + } + .column.is-offset-3-fullhd { + margin-left: 25%; + } + .column.is-4-fullhd { + flex: none; + width: 33.33333337%; + } + .column.is-offset-4-fullhd { + margin-left: 33.33333337%; + } + .column.is-5-fullhd { + flex: none; + width: 41.66666674%; + } + .column.is-offset-5-fullhd { + margin-left: 41.66666674%; + } + .column.is-6-fullhd { + flex: none; + width: 50%; + } + .column.is-offset-6-fullhd { + margin-left: 50%; + } + .column.is-7-fullhd { + flex: none; + width: 58.33333337%; + } + .column.is-offset-7-fullhd { + margin-left: 58.33333337%; + } + .column.is-8-fullhd { + flex: none; + width: 66.66666674%; + } + .column.is-offset-8-fullhd { + margin-left: 66.66666674%; + } + .column.is-9-fullhd { + flex: none; + width: 75%; + } + .column.is-offset-9-fullhd { + margin-left: 75%; + } + .column.is-10-fullhd { + flex: none; + width: 83.33333337%; + } + .column.is-offset-10-fullhd { + margin-left: 83.33333337%; + } + .column.is-11-fullhd { + flex: none; + width: 91.66666674%; + } + .column.is-offset-11-fullhd { + margin-left: 91.66666674%; + } + .column.is-12-fullhd { + flex: none; + width: 100%; + } + .column.is-offset-12-fullhd { + margin-left: 100%; + } +} + +.columns { + margin-left: -0.75rem; + margin-right: -0.75rem; + margin-top: -0.75rem; +} +.columns:last-child { + margin-bottom: -0.75rem; +} +.columns:not(:last-child) { + margin-bottom: calc(1.5rem - 0.75rem); +} +.columns.is-centered { + justify-content: center; +} +.columns.is-gapless { + margin-left: 0; + margin-right: 0; + margin-top: 0; +} +.columns.is-gapless > .column { + margin: 0; + padding: 0 !important; +} +.columns.is-gapless:not(:last-child) { + margin-bottom: 1.5rem; +} +.columns.is-gapless:last-child { + margin-bottom: 0; +} +.columns.is-mobile { + display: flex; +} +.columns.is-multiline { + flex-wrap: wrap; +} +.columns.is-vcentered { + align-items: center; +} +@media screen and (min-width: 769px), print { + .columns:not(.is-desktop) { + display: flex; + } +} +@media screen and (min-width: 1024px) { + .columns.is-desktop { + display: flex; + } +} + +.columns.is-variable { + --columnGap: 0.75rem; + margin-left: calc(-1 * var(--columnGap)); + margin-right: calc(-1 * var(--columnGap)); +} +.columns.is-variable > .column { + padding-left: var(--columnGap); + padding-right: var(--columnGap); +} +.columns.is-variable.is-0 { + --columnGap: 0rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-0-mobile { + --columnGap: 0rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-0-tablet { + --columnGap: 0rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-0-tablet-only { + --columnGap: 0rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-0-touch { + --columnGap: 0rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-0-desktop { + --columnGap: 0rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-0-desktop-only { + --columnGap: 0rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-0-widescreen { + --columnGap: 0rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-0-widescreen-only { + --columnGap: 0rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-0-fullhd { + --columnGap: 0rem; + } +} +.columns.is-variable.is-1 { + --columnGap: 0.25rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-1-mobile { + --columnGap: 0.25rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-1-tablet { + --columnGap: 0.25rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-1-tablet-only { + --columnGap: 0.25rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-1-touch { + --columnGap: 0.25rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-1-desktop { + --columnGap: 0.25rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-1-desktop-only { + --columnGap: 0.25rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-1-widescreen { + --columnGap: 0.25rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-1-widescreen-only { + --columnGap: 0.25rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-1-fullhd { + --columnGap: 0.25rem; + } +} +.columns.is-variable.is-2 { + --columnGap: 0.5rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-2-mobile { + --columnGap: 0.5rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-2-tablet { + --columnGap: 0.5rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-2-tablet-only { + --columnGap: 0.5rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-2-touch { + --columnGap: 0.5rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-2-desktop { + --columnGap: 0.5rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-2-desktop-only { + --columnGap: 0.5rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-2-widescreen { + --columnGap: 0.5rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-2-widescreen-only { + --columnGap: 0.5rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-2-fullhd { + --columnGap: 0.5rem; + } +} +.columns.is-variable.is-3 { + --columnGap: 0.75rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-3-mobile { + --columnGap: 0.75rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-3-tablet { + --columnGap: 0.75rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-3-tablet-only { + --columnGap: 0.75rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-3-touch { + --columnGap: 0.75rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-3-desktop { + --columnGap: 0.75rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-3-desktop-only { + --columnGap: 0.75rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-3-widescreen { + --columnGap: 0.75rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-3-widescreen-only { + --columnGap: 0.75rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-3-fullhd { + --columnGap: 0.75rem; + } +} +.columns.is-variable.is-4 { + --columnGap: 1rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-4-mobile { + --columnGap: 1rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-4-tablet { + --columnGap: 1rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-4-tablet-only { + --columnGap: 1rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-4-touch { + --columnGap: 1rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-4-desktop { + --columnGap: 1rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-4-desktop-only { + --columnGap: 1rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-4-widescreen { + --columnGap: 1rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-4-widescreen-only { + --columnGap: 1rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-4-fullhd { + --columnGap: 1rem; + } +} +.columns.is-variable.is-5 { + --columnGap: 1.25rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-5-mobile { + --columnGap: 1.25rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-5-tablet { + --columnGap: 1.25rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-5-tablet-only { + --columnGap: 1.25rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-5-touch { + --columnGap: 1.25rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-5-desktop { + --columnGap: 1.25rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-5-desktop-only { + --columnGap: 1.25rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-5-widescreen { + --columnGap: 1.25rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-5-widescreen-only { + --columnGap: 1.25rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-5-fullhd { + --columnGap: 1.25rem; + } +} +.columns.is-variable.is-6 { + --columnGap: 1.5rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-6-mobile { + --columnGap: 1.5rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-6-tablet { + --columnGap: 1.5rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-6-tablet-only { + --columnGap: 1.5rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-6-touch { + --columnGap: 1.5rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-6-desktop { + --columnGap: 1.5rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-6-desktop-only { + --columnGap: 1.5rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-6-widescreen { + --columnGap: 1.5rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-6-widescreen-only { + --columnGap: 1.5rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-6-fullhd { + --columnGap: 1.5rem; + } +} +.columns.is-variable.is-7 { + --columnGap: 1.75rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-7-mobile { + --columnGap: 1.75rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-7-tablet { + --columnGap: 1.75rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-7-tablet-only { + --columnGap: 1.75rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-7-touch { + --columnGap: 1.75rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-7-desktop { + --columnGap: 1.75rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-7-desktop-only { + --columnGap: 1.75rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-7-widescreen { + --columnGap: 1.75rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-7-widescreen-only { + --columnGap: 1.75rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-7-fullhd { + --columnGap: 1.75rem; + } +} +.columns.is-variable.is-8 { + --columnGap: 2rem; +} +@media screen and (max-width: 768px) { + .columns.is-variable.is-8-mobile { + --columnGap: 2rem; + } +} +@media screen and (min-width: 769px), print { + .columns.is-variable.is-8-tablet { + --columnGap: 2rem; + } +} +@media screen and (min-width: 769px) and (max-width: 1023px) { + .columns.is-variable.is-8-tablet-only { + --columnGap: 2rem; + } +} +@media screen and (max-width: 1023px) { + .columns.is-variable.is-8-touch { + --columnGap: 2rem; + } +} +@media screen and (min-width: 1024px) { + .columns.is-variable.is-8-desktop { + --columnGap: 2rem; + } +} +@media screen and (min-width: 1024px) and (max-width: 1215px) { + .columns.is-variable.is-8-desktop-only { + --columnGap: 2rem; + } +} +@media screen and (min-width: 1216px) { + .columns.is-variable.is-8-widescreen { + --columnGap: 2rem; + } +} +@media screen and (min-width: 1216px) and (max-width: 1407px) { + .columns.is-variable.is-8-widescreen-only { + --columnGap: 2rem; + } +} +@media screen and (min-width: 1408px) { + .columns.is-variable.is-8-fullhd { + --columnGap: 2rem; + } +} + +html { + line-height: 1.15; + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; +} + +body { + margin: 0; +} + +article, +aside, +footer, +header, +nav, +section { + display: block; +} + +h1 { + font-size: 2em; + margin: 0.67em 0; + line-height: 1em; +} + +figcaption, +figure, +main { + display: block; +} + +figure { + margin: 1em 40px; +} + +hr { + box-sizing: content-box; + height: 0; + overflow: visible; +} + +pre { + font-family: monospace, monospace; + font-size: 1em; +} + +a { + background-color: transparent; + -webkit-text-decoration-skip: objects; +} + +a:active, +a:hover { + outline-width: 0; +} + +abbr[title] { + border-bottom: none; + text-decoration: underline; + text-decoration: underline dotted; +} + +b, +strong { + font-weight: inherit; + font-weight: bolder; +} + +kbd, +samp { + font-family: monospace, monospace; + font-size: 1em; +} + +dfn { + font-style: italic; +} + +mark { + background-color: #ff0; + color: #000; +} + +small { + font-size: 80%; +} + +sub, +sup { + font-size: 60%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sub { + bottom: -0.25em; +} + +sup { + top: -0.55em; + background: #1D3040; + color: #1D3040; + border-radius: 2px; + padding: 0 2px 0 2px; + margin: 0 2px 0 0; +} + +audio, +video { + display: inline-block; +} + +audio:not([controls]) { + display: none; + height: 0; +} + +img { + border-style: none; +} + +svg:not(:root) { + overflow: hidden; +} + +button, +input, +optgroup, +select, +textarea { + font-family: sans-serif; + font-size: 100%; + line-height: 1.15; + margin: 0; +} + +button, +input { + overflow: visible; +} + +button, +select { + text-transform: none; +} + +button, html [type=button], +[type=reset], +[type=submit] { + -webkit-appearance: button; +} + +[type=button]::-moz-focus-inner, +[type=reset]::-moz-focus-inner, +[type=submit]::-moz-focus-inner, +button::-moz-focus-inner { + border-style: none; + padding: 0; +} + +[type=button]:-moz-focusring, +[type=reset]:-moz-focusring, +[type=submit]:-moz-focusring, +button:-moz-focusring { + outline: 1px dotted ButtonText; +} + +fieldset { + border: 1px solid #c0c0c0; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; +} + +progress { + display: inline-block; + vertical-align: baseline; +} + +textarea { + overflow: auto; +} + +[type=checkbox], +[type=radio] { + box-sizing: border-box; + padding: 0; +} + +[type=number]::-webkit-inner-spin-button, +[type=number]::-webkit-outer-spin-button { + height: auto; +} + +[type=search] { + -webkit-appearance: textfield; + outline-offset: -2px; +} + +[type=search]::-webkit-search-cancel-button, +[type=search]::-webkit-search-decoration { + -webkit-appearance: none; +} + +::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; +} + +details, +menu { + display: block; +} + +summary { + display: list-item; +} + +canvas { + display: inline-block; +} + +template { + display: none; +} + +[hidden] { + display: none; +} + +h1, h2, h3 { + color: #EFEBE3; +} + +h1 { + font-size: 2em; + font-weight: 400; +} + +h2 { + font-size: 1.75em; + font-weight: 400; +} + +h3 { + font-size: 1.5em; + font-weight: 300; +} + +html, body { + background: #1D3040 linear-gradient(0deg, #1d3040 0%, #2d4a63 100%) no-repeat; + font: 400 1em Helvetica, Arial, sans-serif; + height: 100%; +} + +a { + font: 300 1em Helvetica, Arial, sans-serif; + color: #b2cce5; + text-decoration: underline; + transition: all 0.2s linear; +} + +svg.icons { + width: 25px; + fill: #b2cce5; +} + +#notifications { + perspective: 1000px; + position: fixed; + z-index: 2000; + height: 55px; + width: 100%; + display: block; + align-items: center; + justify-content: center; + padding: 0; + margin-top: -55px; +} +#notifications #notifyMessage { + margin: 0 auto; + transition: all 0.6s cubic-bezier(0.83, 0.05, 0.28, 1); + height: 50px; + width: 500px; + display: flex; + align-items: center; + justify-content: center; + opacity: 1; + transform-style: preserve-3d; + transform: rotateX(120deg); + transform-origin: 50% 0; + overflow: hidden; +} +#notifications #notifyMessage #notify-good, #notifications #notifyMessage #notify-lame, #notifications #notifyMessage #notify-working { + display: block; +} +#notifications #notifyMessage #notify-working-icon { + -webkit-animation: spin 2s linear infinite; + -moz-animation: spin 2s linear infinite; + animation: spin 2s linear infinite; +} +@keyframes spin { + transform: rotate(360deg); +} +#notifications #notifyMessage .notify-icon { + background: #32302f; + padding: 8px 5px 5px 5px; + border-radius: 5px 0 0 5px; + height: 30px; + width: 30px; + text-align: center; + border: 2px solid #EFEBE3; +} +#notifications #notifyMessage #notify-text { + color: #EFEBE3; + background: #32302f; + width: 400px; + height: 28px; + padding: 15px 0 0 0; + border-radius: 0 5px 5px 0; + border: 2px solid #EFEBE3; + text-align: center; + overflow: hidden; + position: relative; +} +#notifications #notifyMessage #notify-text #notify-progress { + width: 0; + background: #fc6399; + height: 43px; + position: absolute; + top: 0px; +} +#notifications #notifyMessage #notify-text p { + top: -15px; + display: block; + position: relative; +} +#notifications #notifyMessage .icons { + fill: #EFEBE3; +} + +.notify-close { + transform-style: preserve-3d; + transform: rotateX(-120deg); +} + +.notify-open { + transform-style: preserve-3d; + transform: rotateX(0deg); +} + +.blog-container { + width: 100%; +} + +.main-container { + margin: 0 auto; + z-index: 10; + position: relative; + height: 100%; +} +.main-container section header { + width: 100%; + max-width: 900px; + margin: 10px auto; + background: #EFEBE3; + height: 50px; + border-radius: 5px; +} +.main-container section header #wrapper { + padding: 5px; +} +.main-container section header #wrapper #left, .main-container section header #wrapper #right { + width: 49.7%; + display: inline-block; + vertical-align: top; + min-height: 60px; +} +.main-container section header #wrapper #left #the-logo, .main-container section header #wrapper #right #the-logo { + width: 29px; +} +.main-container section header #wrapper #right { + text-align: right; + color: #EFEBE3; +} +.main-container section header #wrapper #right #dash-menu { + text-align: right; +} +.main-container section header #wrapper #right #dash-menu a button { + border-radius: 50px; +} +.main-container section header #wrapper #right #dash-menu a button svg { + transition: all 0.2s linear; + width: 40px; + height: 20px; + fill: #EFEBE3; +} +.main-container section header #wrapper #right #dash-menu a:hover button { + background: #1D3040; +} +.main-container section header #wrapper #right #dash-menu a:hover svg { + fill: #b2cce5; +} + +/* Mozilla based browsers */ +::-moz-selection { + background-color: #fc6399; + color: #EFEBE3; +} + +/* Works in Safari */ +::selection { + background-color: #fc6399; + color: #EFEBE3; +} + +/* Works in Opera */ +::-o-selection { + background-color: #fc6399; + color: #EFEBE3; +} + +::-ms-selection { + background-color: #fc6399; + color: #EFEBE3; +} + +/* Works in Internet Explorer */ +::-webkit-selection { + background-color: #fc6399; + color: #EFEBE3; +} + +@media only screen and (max-width: 901px) { + .main-container { + padding: 10px; + } +} +@media only screen and (max-width: 800px) { + .main-container section header #wrapper #left, .main-container section header #wrapper #right { + display: inline-block; + } +} +@media only screen and (max-width: 480px) { + .main-container section header #wrapper #left { + width: 30%; + } + .main-container section header #wrapper #right { + width: 70%; + } +} +#dash-index-content { + width: 100%; + height: 100%; + margin: 0 auto; +} +#dash-index-content #dash-index { + width: 100%; + height: 100%; + z-index: 10; + position: relative; +} +#dash-index-content #dash-index #dash-index-wrapper { + width: 100%; + height: 100%; + margin: 0 auto; +} +#dash-index-content #dash-index #dash-index-wrapper .dash-init, #dash-index-content #dash-index #dash-index-wrapper .dash-restore { + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + color: #1D3040; +} +#dash-index-content #dash-index #dash-index-wrapper .dash-init form, #dash-index-content #dash-index #dash-index-wrapper .dash-restore form { + background: #EFEBE3; + padding: 15px; + width: 300px; + border-radius: 5px; + text-align: center; +} +#dash-index-content #dash-index #dash-index-wrapper .dash-init form #the-logo, #dash-index-content #dash-index #dash-index-wrapper .dash-restore form #the-logo { + width: 40px; + margin: 20px; +} +#dash-index-content #dash-index #dash-index-wrapper .dash-init form input, #dash-index-content #dash-index #dash-index-wrapper .dash-restore form input { + width: 290px; + margin: 0 0 10px 0; + height: 30px; +} +#dash-index-content #dash-index #dash-index-wrapper .dash-init form button, #dash-index-content #dash-index #dash-index-wrapper .dash-restore form button { + width: 300px; +} +#dash-index-content #dash-index #dash-index-wrapper .dash-init form div, #dash-index-content #dash-index #dash-index-wrapper .dash-restore form div { + background: #1D3040; + color: #EFEBE3; + border-radius: 3px; + padding: 5px; +} +#dash-index-content #dash-index #dash-index-wrapper .dash-init form div label, #dash-index-content #dash-index #dash-index-wrapper .dash-restore form div label { + display: block; + padding: 5px; + color: #f5ab35; +} +#dash-index-content #dash-index #dash-index-wrapper .dash-restore { + display: none; + visibility: hidden; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-login { + width: 100%; + height: 100%; + margin: 0 auto; + display: flex; + align-items: center; + justify-content: center; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-form, #dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-reset { + width: 300px; + padding: 0.75em; + background: #EFEBE3; + border-radius: 5px; + color: #EFEBE3; + text-align: center; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-form #the-logo, #dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-reset #the-logo { + width: 40px; + margin: 20px; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-form input, #dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-reset input { + width: 290px; + margin: 0 0 10px 0; + height: 30px; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-form button, #dash-index-content #dash-index #dash-index-wrapper #dash-login #dash-reset button { + width: 300px; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-menu { + padding: 10px; + width: 90%; + max-width: 900px; + margin: 50px auto; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-menu a { + display: inline-block; + vertical-align: top; + background: black; + width: 30%; + padding: 5px; + border-radius: 3px; + color: #EFEBE3; + margin: 0 10px 10px 0; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-menu a:hover { + background: black; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-menu a svg { + display: inline-block; + vertical-align: top; + fill: #EFEBE3; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-menu a label { + display: inline-block; + margin-top: 5px; + width: 85%; + text-align: center; + cursor: pointer; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent { + width: 100%; + max-width: 900px; + height: 100%; + padding: 5px 0 0 0; + margin: 0 auto; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list { + position: relative; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header { + height: 50px; + margin-top: 5px; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header .index-header-left { + vertical-align: top; + display: inline-block; + width: 50%; + color: #EFEBE3; + font-size: 3em; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header .index-header-right { + width: 50%; + text-align: right; + vertical-align: top; + display: inline-block; + right: 10px; + color: #EFEBE3; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header .index-header-right a button { + border-radius: 3px; + margin-left: 10px; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header .index-header-right a button svg { + transition: all 0.2s linear; + width: 40px; + height: 20px; + fill: #EFEBE3; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link { + font-size: 1.5em; + font-weight: 300; + display: inline-block; + border-radius: 3px; + vertical-align: top; + text-decoration: none; + position: relative; + overflow: hidden; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link .post-video, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link .post-video { + width: 100%; + height: 100%; + object-fit: cover; + position: absolute; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link label, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link label { + font-size: 1.4em; + font-weight: 700; + color: #EFEBE3; + padding: 5px; + vertical-align: top; + display: inline-block; + word-wrap: break-word; + width: 100%; + text-align: center; + position: relative; + top: 35%; + text-shadow: 2px 2px 0 #32302f; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options { + width: 100%; + position: absolute; + bottom: 0; + border-radius: 0 0 3px 3px; + background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%); +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-left, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-left { + display: inline-block; + vertical-align: top; + width: 50%; + position: relative; + background: none; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-left button, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-left button { + border-radius: 3px; + background: #1D3040; + margin: 0 0 10px 10px; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-left button svg, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-left button svg { + width: 40px; + height: 20px; + fill: #b2cce5; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-left .item-options, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-left .item-options { + border-radius: 3px; + margin: 5px; + display: inline-block; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-left button[data-active=false], #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-left button[data-active=false] { + background: #1D3040; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-left button[data-active=false] svg, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-left button[data-active=false] svg { + fill: #b2cce5; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-left button[data-active=true], #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-left button[data-active=true] { + background: #f5ab35; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-left button[data-active=true] svg, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-left button[data-active=true] svg { + fill: #1D3040; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-right, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-right { + display: inline-block; + width: 50%; + text-align: right; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-link div#options #option-right span, #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a.post-video-link div#options #option-right span { + font-weight: bold; + display: block; + background: #EFEBE3; + color: #1D3040; + border-radius: 3px; + font-size: 0.6em; + text-align: center; + position: relative; + padding: 5px; + float: right; + margin: 0 10px 0 0; + bottom: -15px; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(3) { + width: 100%; + margin-bottom: 20px; + height: 500px; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(4), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(6) { + width: 48.6%; + height: 350px; + margin: 0 10px 20px 0; +} +#dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(5), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(7) { + width: 48.6%; + height: 350px; + margin: 0 0 20px 10px; +} + +@media only screen and (max-width: 768px) { + #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(4), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(6) { + width: 48.9%; + } +} +@media only screen and (max-width: 640px) { + #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(4), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(6) { + width: 48.5%; + } +} +@media only screen and (max-width: 480px) { + #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header h3 { + width: 40%; + } + #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list .recent-header .index-menu { + width: 60%; + } + #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(3), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(4), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(5), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(6), #dash-index-content #dash-index #dash-index-wrapper #dash-recent #recent-list a:nth-child(7) { + width: 100%; + margin: 15px 0 0 0; + height: 400px; + } +} +#settings-actions { + position: fixed; + width: 40%; + margin-top: -85px; + left: 50%; + margin-left: -20%; +} +#settings-actions #buttons { + width: 185px; + margin: 28px auto; + text-align: center; + background: #EFEBE3; + padding: 2px; + border-radius: 3px; +} +#settings-actions #buttons button { + color: #EFEBE3; + border-radius: 3px; + width: 40px; + margin: 0 10px 0 10px; +} +#settings-actions #buttons button svg { + width: 25px; + height: 20px; + fill: #EFEBE3; +} +#settings-actions #buttons button[data-render=false] { + background: #b2cce5; +} +#settings-actions #buttons button[data-render=false] svg { + fill: #1D3040; +} +#settings-actions #buttons button[data-render=true] { + background: #fc6399; +} +#settings-actions #buttons button[data-render=true] svg { + fill: #EFEBE3; +} + +#settings-index { + width: 94%; + max-width: 900px; + margin: 0 auto; + overflow: hidden; +} +#settings-index #settings-index-wrapper { + padding: 0; +} +#settings-index #settings-index-wrapper button { + margin-top: 5px; + width: 100%; + height: 33px; +} +#settings-index #settings-index-wrapper #member-settings, #settings-index #settings-index-wrapper #feature-settings, #settings-index #settings-index-wrapper #option-settings, #settings-index #settings-index-wrapper #token-settings, #settings-index #settings-index-wrapper #backup-settings { + background: #EFEBE3; + padding: 0px; + border-radius: 5px 0 5px 0; + width: 100%; + margin: 20px auto; +} +#settings-index #settings-index-wrapper #member-settings label, #settings-index #settings-index-wrapper #feature-settings label, #settings-index #settings-index-wrapper #option-settings label, #settings-index #settings-index-wrapper #token-settings label, #settings-index #settings-index-wrapper #backup-settings label { + font-family: Helvetica, Arial, sans-serif; + color: #1D3040; + font-weight: bold; +} +#settings-index #settings-index-wrapper #member-settings span, #settings-index #settings-index-wrapper #feature-settings span, #settings-index #settings-index-wrapper #option-settings span, #settings-index #settings-index-wrapper #token-settings span, #settings-index #settings-index-wrapper #backup-settings span { + color: #b2cce5; +} +#settings-index #settings-index-wrapper #member-settings input, #settings-index #settings-index-wrapper #feature-settings input, #settings-index #settings-index-wrapper #option-settings input, #settings-index #settings-index-wrapper #token-settings input, #settings-index #settings-index-wrapper #backup-settings input { + width: 95%; + margin: 0 5px 10px 0; + height: 30px; + padding: 10px; +} +#settings-index #settings-index-wrapper #member-settings input#backup-upload, #settings-index #settings-index-wrapper #feature-settings input#backup-upload, #settings-index #settings-index-wrapper #option-settings input#backup-upload, #settings-index #settings-index-wrapper #token-settings input#backup-upload, #settings-index #settings-index-wrapper #backup-settings input#backup-upload { + visibility: hidden; + display: none; +} +#settings-index #settings-index-wrapper #member-settings .backup-meta, #settings-index #settings-index-wrapper #feature-settings .backup-meta, #settings-index #settings-index-wrapper #option-settings .backup-meta, #settings-index #settings-index-wrapper #token-settings .backup-meta, #settings-index #settings-index-wrapper #backup-settings .backup-meta { + background: #1D3040; + color: #EFEBE3; + padding: 8px; + border-radius: 3px; + margin: 5px 0 0 0; + text-align: center; +} +#settings-index #settings-index-wrapper #member-settings #member-images, #settings-index #settings-index-wrapper #feature-settings #member-images, #settings-index #settings-index-wrapper #option-settings #member-images, #settings-index #settings-index-wrapper #token-settings #member-images, #settings-index #settings-index-wrapper #backup-settings #member-images { + padding: 10px 15px 0 15px; +} +#settings-index #settings-index-wrapper #member-settings #member-images #member-avatar-drop, #settings-index #settings-index-wrapper #feature-settings #member-images #member-avatar-drop, #settings-index #settings-index-wrapper #option-settings #member-images #member-avatar-drop, #settings-index #settings-index-wrapper #token-settings #member-images #member-avatar-drop, #settings-index #settings-index-wrapper #backup-settings #member-images #member-avatar-drop { + display: inline-block; + margin: 0 0 10px 0; +} +#settings-index #settings-index-wrapper #member-settings #member-images #member-avatar-drop img, #settings-index #settings-index-wrapper #feature-settings #member-images #member-avatar-drop img, #settings-index #settings-index-wrapper #option-settings #member-images #member-avatar-drop img, #settings-index #settings-index-wrapper #token-settings #member-images #member-avatar-drop img, #settings-index #settings-index-wrapper #backup-settings #member-images #member-avatar-drop img { + width: 100%; + border-radius: 5px; + overflow: hidden; + cursor: pointer; + display: block; + margin-bottom: 2px; +} +#settings-index #settings-index-wrapper #member-settings #member-images #member-avatar-drop input, #settings-index #settings-index-wrapper #feature-settings #member-images #member-avatar-drop input, #settings-index #settings-index-wrapper #option-settings #member-images #member-avatar-drop input, #settings-index #settings-index-wrapper #token-settings #member-images #member-avatar-drop input, #settings-index #settings-index-wrapper #backup-settings #member-images #member-avatar-drop input { + visibility: hidden; + display: none; +} +#settings-index #settings-index-wrapper #member-settings #member-images #member-avatar-drop #privacy-toggle, #settings-index #settings-index-wrapper #feature-settings #member-images #member-avatar-drop #privacy-toggle, #settings-index #settings-index-wrapper #option-settings #member-images #member-avatar-drop #privacy-toggle, #settings-index #settings-index-wrapper #token-settings #member-images #member-avatar-drop #privacy-toggle, #settings-index #settings-index-wrapper #backup-settings #member-images #member-avatar-drop #privacy-toggle { + width: 50%; +} +#settings-index #settings-index-wrapper #member-settings #member-images #member-avatar-drop #render-toggle, #settings-index #settings-index-wrapper #feature-settings #member-images #member-avatar-drop #render-toggle, #settings-index #settings-index-wrapper #option-settings #member-images #member-avatar-drop #render-toggle, #settings-index #settings-index-wrapper #token-settings #member-images #member-avatar-drop #render-toggle, #settings-index #settings-index-wrapper #backup-settings #member-images #member-avatar-drop #render-toggle { + width: 50%; +} +#settings-index #settings-index-wrapper #member-settings #member-images #site-background, #settings-index #settings-index-wrapper #feature-settings #member-images #site-background, #settings-index #settings-index-wrapper #option-settings #member-images #site-background, #settings-index #settings-index-wrapper #token-settings #member-images #site-background, #settings-index #settings-index-wrapper #backup-settings #member-images #site-background { + margin: 0 0 10px 0; +} +#settings-index #settings-index-wrapper #member-settings #member-images #site-background img, #settings-index #settings-index-wrapper #feature-settings #member-images #site-background img, #settings-index #settings-index-wrapper #option-settings #member-images #site-background img, #settings-index #settings-index-wrapper #token-settings #member-images #site-background img, #settings-index #settings-index-wrapper #backup-settings #member-images #site-background img { + width: 92.1%; + height: 292px; + border-radius: 3px; + overflow: hidden; + cursor: pointer; +} +#settings-index #settings-index-wrapper #member-settings #member-images #site-background input, #settings-index #settings-index-wrapper #feature-settings #member-images #site-background input, #settings-index #settings-index-wrapper #option-settings #member-images #site-background input, #settings-index #settings-index-wrapper #token-settings #member-images #site-background input, #settings-index #settings-index-wrapper #backup-settings #member-images #site-background input { + visibility: hidden; + display: none; +} +#settings-index #settings-index-wrapper #member-settings #member-meta, #settings-index #settings-index-wrapper #feature-settings #member-meta, #settings-index #settings-index-wrapper #option-settings #member-meta, #settings-index #settings-index-wrapper #token-settings #member-meta, #settings-index #settings-index-wrapper #backup-settings #member-meta { + padding: 10px 15px 0 15px; + position: relative; + top: -30px; +} +#settings-index #settings-index-wrapper #member-settings #features, #settings-index #settings-index-wrapper #feature-settings #features, #settings-index #settings-index-wrapper #option-settings #features, #settings-index #settings-index-wrapper #token-settings #features, #settings-index #settings-index-wrapper #backup-settings #features { + padding: 10px 15px 0 15px; +} +#settings-index #settings-index-wrapper textarea { + background: #1D3040; + width: 70%; + height: 89.5px; + color: #f5ab35; + padding: 10px; + display: inline-block; + margin-bottom: 10px; +} +#settings-index #settings-index-wrapper span#key { + color: #EFEBE3; + background: #1D3040; + font-size: 0.9em; + border-radius: 3px; + padding: 5px; + display: block; + width: 95%; + overflow: hidden; +} +#settings-index #settings-index-wrapper #feature-settings #feature-api, #settings-index #settings-index-wrapper #feature-settings #dynamic-api { + background: #EFEBE3; + border-radius: 3px; + padding: 5px; +} +#settings-index #settings-index-wrapper #feature-settings #feature-api button, #settings-index #settings-index-wrapper #feature-settings #dynamic-api button { + color: #EFEBE3; + border-radius: 3px; + width: 200px; + margin: 0; + height: 200px; + font-size: 1em; +} +#settings-index #settings-index-wrapper #feature-settings #feature-api button svg, #settings-index #settings-index-wrapper #feature-settings #dynamic-api button svg { + width: 100px; + height: 90px; + fill: #EFEBE3; + position: relative; + display: block; + margin: 12px auto; +} +#settings-index #settings-index-wrapper #feature-settings #feature-api button span, #settings-index #settings-index-wrapper #feature-settings #dynamic-api button span { + color: #EFEBE3; + margin: 6px 0 0 5px; + position: relative; + vertical-align: middle; + display: inline-block; + font-weight: bold; +} +#settings-index #settings-index-wrapper #feature-settings #feature-api button[data-enabled=false], #settings-index #settings-index-wrapper #feature-settings #dynamic-api button[data-enabled=false] { + background: #b2cce5; +} +#settings-index #settings-index-wrapper #feature-settings #feature-api button[data-enabled=false] svg, #settings-index #settings-index-wrapper #feature-settings #dynamic-api button[data-enabled=false] svg { + fill: #1D3040; +} +#settings-index #settings-index-wrapper #feature-settings #feature-api button[data-enabled=false] span, #settings-index #settings-index-wrapper #feature-settings #dynamic-api button[data-enabled=false] span { + color: #1D3040; +} +#settings-index #settings-index-wrapper #feature-settings #feature-api button[data-enabled=true], #settings-index #settings-index-wrapper #feature-settings #dynamic-api button[data-enabled=true] { + background: #fc6399; +} +#settings-index #settings-index-wrapper #feature-settings #feature-api button[data-enabled=true] svg, #settings-index #settings-index-wrapper #feature-settings #dynamic-api button[data-enabled=true] svg { + fill: #EFEBE3; +} +#settings-index #settings-index-wrapper #token-settings #keys-tokens { + padding: 10px 15px 0 15px; +} +#settings-index #settings-index-wrapper #token-settings #keys-tokens #member-api-key, #settings-index #settings-index-wrapper #token-settings #keys-tokens #form-token { + background: #1D3040; + border-radius: 3px; + padding: 5px; + color: #EFEBE3; +} +#settings-index #settings-index-wrapper #option-settings #theme-settings a { + width: 95%; + margin: 0 5px 5px 0; + height: 15px; + padding: 10px; + display: inline-block; +} +#settings-index #settings-index-wrapper #option-settings #theme-settings a[data-enabled=false] { + background: #EFEBE3; + color: #1D3040; + border-radius: 3px; + font-weight: bold; + border-top: 1px #fc6399 solid; + border-bottom: 1px #fc6399 solid; +} +#settings-index #settings-index-wrapper #option-settings #theme-settings a[data-enabled=true] { + background: #fc6399; + color: #1D3040; + border-radius: 3px; + font-weight: bold; + border-top: 1px #1D3040 solid; + border-bottom: 1px #1D3040 solid; +} +#settings-index #settings-index-wrapper #option-settings #theme-settings a[data-enabled=true] svg { + fill: #1D3040; + display: inline-block; + float: right; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings { + min-height: 240px; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings a.mail-option { + float: right; + font-family: "Lucida Console", Monaco, monospace; + font-size: 0.9em; + border-radius: 3px; + text-decoration: none; + margin: 0 0 0 5px; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings a.mail-option[data-enabled=true] { + color: #fc6399; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings a.mail-option[data-enabled=false] { + color: #1D3040; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings input { + margin: 0 5px 5px 0; + vertical-align: top; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings div[data-enabled=false] { + display: none; + visibility: hidden; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings #settings-api { + background: #1D3040; + border-radius: 3px; + padding: 10px; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings #settings-api span { + color: #EFEBE3 !important; + margin: -13px 0 0 5px; + position: relative; + vertical-align: middle; + display: inline-block; + font-weight: bold; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings #settings-api button { + color: #EFEBE3; + border-radius: 3px; + width: 40px; + margin: 0; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings #settings-api button svg { + width: 25px; + height: 20px; + fill: #EFEBE3; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings #settings-api button[data-enabled=false] { + background: #b2cce5; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings #settings-api button[data-enabled=false] svg { + fill: #1D3040; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings #settings-api button[data-enabled=true] { + background: #fc6399; +} +#settings-index #settings-index-wrapper #option-settings #mail-settings #settings-api button[data-enabled=true] svg { + fill: #EFEBE3; +} + +@media only screen and (max-width: 480px) { + #settings-actions { + margin-left: -42%; + } + #settings-actions #buttons { + width: 150px; + background: none; + } + #settings-actions #buttons button { + margin: 0 5px 0 5px; + } +} +#error-index { + width: 100%; + max-width: 900px; + margin: 0 auto; + padding: 10px; + height: 100%; + z-index: 10; + position: relative; +} +#error-index label#title { + font-size: 100px; + color: #fc6399; + font-weight: 500; +} +#error-index label#message { + font-size: 50px; + color: #f5ab35; + font-weight: 500; +} +#error-index label#error { + font-size: 25px; + color: #F64747; + font-weight: 500; +} + +#nav-index { + width: 100%; + max-width: 900px; + margin: 0 auto; +} +#nav-index #nav-index-wrapper #nav-pages .nav-item { + display: block; + width: 98%; + background: #EFEBE3; + border-radius: 3px; + color: #fc6399; + height: 30px; + padding: 10px; + margin: 0 0 10px 0; + font-size: 1.5em; + cursor: move; +} +#nav-index #nav-index-wrapper #nav-pages .nav-item #item-arrows { + fill: #1D3040; + width: 40px; + height: 30px; +} +#nav-index #nav-index-wrapper #nav-pages label { + display: inline-block; + vertical-align: middle; + padding: 0; + margin: -15px 0 0 10px; + cursor: move; +} +#nav-index #nav-index-wrapper #nav-pages #nav-btns { + float: right; + top: -5px; + position: relative; +} +#nav-index #nav-index-wrapper #nav-pages #nav-btns button { + color: #EFEBE3; + border-radius: 3px; + width: 40px; + margin: 0 10px 0 10px; +} +#nav-index #nav-index-wrapper #nav-pages #nav-btns button svg { + fill: #EFEBE3; + width: 25px; + height: 20px; +} + +@media only screen and (max-width: 375px) { + #nav-index #nav-index-wrapper #nav-pages .nav-item { + width: 94.5%; + font-size: 1em; + } + #nav-index #nav-index-wrapper #nav-pages .nav-item label { + width: 40%; + vertical-align: top; + margin-top: 0px; + line-height: 1em; + } +} +@media only screen and (max-width: 320px) { + #nav-index #nav-index-wrapper #nav-pages .nav-item { + width: 94.5%; + font-size: 1em; + } + #nav-index #nav-index-wrapper #nav-pages .nav-item label { + width: 37%; + vertical-align: top; + margin-top: 0px; + line-height: 1em; + } +} +form { + display: inline-block; +} +form a { + color: #1D3040; +} +form p { + background: #f5ab35; + color: #1D3040; + padding: 5px; + display: block; + border-radius: 5px; + text-align: left; +} + +input[type=email], input[type=password], input[type=text] { + border: 0; + border-radius: 5px; + padding: 5px; + margin: 10px 5px 0 0; + font: 18px Helvetica, Arial, sans-serif; + display: inline-block; + background: #1D3040; + color: #f5ab35; +} + +textarea { + border: 0; + border-radius: 3px; + color: #EFEBE3; + font: 15px Helvetica, Arial, sans-serif; + background: #1D3040; +} + +button, input[type=submit] { + background: #fc6399; + color: #1D3040; + font: 20px Helvetica, Arial, sans-serif; + border-radius: 5px; + position: relative; + cursor: pointer; + border: 0; + padding: 10px 0 5px 0; + transition: all 0.3s linear; +} + +select { + font: 14px Helvetica, Arial, sans-serif; + border: 1px solid #b2cce5; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + color: #1D3040; +} + +::-webkit-input-placeholder { + font: 25px Helvetica, Arial, sans-serif; + color: #EFEBE3; +} + +:-moz-placeholder { + /* Firefox 18- */ + font: 25px Helvetica, Arial, sans-serif; + color: #EFEBE3; +} + +::-moz-placeholder { + /* Firefox 19+ */ + font: 15px Helvetica, Arial, sans-serif; + color: #EFEBE3; +} + +:-ms-input-placeholder { + font: 25px Helvetica, Arial, sans-serif; + color: #EFEBE3; +} + +#post-index { + width: 100%; + max-width: 900px; + margin: 0 auto; +} +#post-index #post-index-wrapper { + overflow: hidden; +} +#post-index #post-index-wrapper #post-index-header { + margin: 10px 0 0 0; +} +#post-index #post-index-wrapper #post-index-header #post-index-header-left { + text-transform: capitalize; + display: inline-block; + width: 50%; + color: #EFEBE3; + font-size: 3em; +} +#post-index #post-index-wrapper #post-index-header #post-index-header-right { + text-align: right; + display: inline-block; + width: 50%; +} +#post-index #post-index-wrapper #post-index-header #post-index-header-right a button { + color: #EFEBE3; + border-radius: 3px; + margin-left: 10px; + width: 55px; +} +#post-index #post-index-wrapper #post-index-header #post-index-header-right a svg { + transition: all 0.1s linear; + width: 20px; + height: 17px; + fill: #EFEBE3; +} +#post-index #post-index-wrapper #post-index-header #post-index-header-right .current-filter { + color: #fc6399; + text-decoration-color: #b2cce5; +} +#post-index #post-index-wrapper #posts-list { + margin: 20px 0 0 0; +} +#post-index #post-index-wrapper #posts-list a.page-link { + background: #EFEBE3; + display: inline-block; + vertical-align: top; + width: 100%; + text-decoration: none; + margin: 0 0 20px 0; + border-radius: 3px; + overflow: hidden; + color: black; +} +#post-index #post-index-wrapper #posts-list a.page-link label { + font-size: 2em; + font-weight: 500; + padding: 10px; + display: inline-block; + vertical-align: top; + width: 100%; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg, #post-index #post-index-wrapper #posts-list a.page-link div.page-video { + width: 100%; + height: 350px; + background-color: #fc6399; + position: relative; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg video, #post-index #post-index-wrapper #posts-list a.page-link div.page-video video { + width: 100%; + position: absolute; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg label, #post-index #post-index-wrapper #posts-list a.page-link div.page-video label { + font-size: 2em; + font-weight: 700; + color: #EFEBE3; + padding: 5px; + vertical-align: top; + display: inline-block; + word-wrap: break-word; + width: 100%; + text-align: center; + position: relative; + top: 35%; + text-shadow: 2px 2px 0 #32302f; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta { + width: 100%; + background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%); + border-radius: 3px; + margin: auto; + bottom: 0; + position: absolute; + padding: 0 0 20px 0; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options { + width: 100%; + bottom: 0; + position: absolute; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-left, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-left { + display: inline-block; + vertical-align: top; + width: 50%; + position: relative; + background: none; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-left button, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-left button { + border-radius: 3px; + background: #1D3040; + margin: 0 0 10px 10px; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-left svg, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-left svg { + transition: all 0.2s linear; + width: 40px; + height: 20px; + fill: #b2cce5; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-left .item-options, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-left .item-options { + border-radius: 3px; + margin: 5px; + display: inline-block; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-left button[data-active=false], #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-left button[data-active=false] { + background: #1D3040; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-left button[data-active=false] svg, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-left button[data-active=false] svg { + fill: #b2cce5; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-left button[data-active=true], #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-left button[data-active=true] { + background: #f5ab35; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-left button[data-active=true] svg, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-left button[data-active=true] svg { + fill: #1D3040; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-right, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-right { + display: inline-block; + width: 50%; + text-align: right; +} +#post-index #post-index-wrapper #posts-list a.page-link div.page-bg #meta #options #option-right span, #post-index #post-index-wrapper #posts-list a.page-link div.page-video #meta #options #option-right span { + font-weight: bold; + display: block; + background: #EFEBE3; + color: #1D3040; + border-radius: 3px; + font-size: 0.6em; + text-align: center; + position: relative; + padding: 5px; + float: right; + margin: 0 10px 0 0; + bottom: -15px; +} +#post-index #post-index-wrapper #posts-list a.page-link p { + padding: 5px 10px 5px 10px; + font-size: 1.2em; + font-weight: 400; +} +#post-index #post-index-wrapper .paginate { + width: 260px; + display: block; + margin: 0 auto; +} +#post-index #post-index-wrapper .paginate a { + display: inline-block; + vertical-align: top; +} +#post-index #post-index-wrapper .paginate span.count { + text-align: center; + padding: 5px; + margin-top: -2px; + display: inline-block; + width: 190px; + font-size: 1.5em; + color: #f5ab35; +} + +#post-edit-index { + width: 100%; + overflow: hidden; +} +#post-edit-index #post-edit-index-wrapper { + width: 100%; +} +#post-edit-index #post-edit-index-wrapper #post-header { + background: #fc6399; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper { + max-width: 900px; + margin: 0 auto; + padding: 0.75rem; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper label { + color: #EFEBE3; + font-size: 0.9em; + font-family: Helvetica, Arial, sans-serif; + font-weight: 600; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper span { + color: #1D3040; + font-size: 0.9em; + font-weight: 600; + text-transform: uppercase; + float: right; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-title #post_title { + background: #EFEBE3; + font-family: Helvetica, Arial, sans-serif; + width: 97.6%; + height: 80px; + font-size: 2em; + color: #1D3040; + padding: 5px; + margin: 0 0 5px 0; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-title #calendar-icon { + background: #05090b; + border-radius: 3px 0 0 3px; + display: inline-block; + padding: 5.2px; + color: #b2cce5; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-title #layouts select { + background: #1D3040; + color: #b2cce5; + border-radius: 3px; + border-color: #1D3040; + margin: 0 0 10px 0; + width: 100%; + height: 45px; + padding: 5px; + font-size: 1.5em; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post_tags { + background: #EFEBE3; + font-family: Helvetica, Arial, sans-serif; + width: 97.6%; + height: 80px; + color: #1D3040; + padding: 5px; + margin: 0 0 5px 0; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options { + display: inline-block; + vertical-align: top; + width: 100%; + padding: 0; + margin: 0 0 10px 0; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button:nth-child(1) { + border-radius: 3px 0 0 3px; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button:nth-child(4) { + border-radius: 0 3px 3px 0; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options a button { + border-radius: 0 3px 3px 0 !important; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button { + width: 25%; + height: 45px; + transition: all 0.3s linear; + margin: 0; + border-radius: 0; + display: inline-block; + vertical-align: top; + text-align: center; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button[data-active=false] { + background: #1D3040; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button[data-active=false] svg { + fill: #b2cce5; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button[data-active=true] { + background: #f5ab35; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-options button[data-active=true] svg { + fill: #1D3040; +} +#post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #page-files-upload, #post-edit-index #post-edit-index-wrapper #post-header #post-header-wrapper #post-meta #post-image-upload { + display: none; +} +#post-edit-index #post-edit-index-wrapper #post-feature { + width: 100%; +} +#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager { + background: #f5ab35; + width: 100%; + min-height: 300px; +} +#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper { + width: 100%; + max-width: 900px; + padding: 10px; + margin: 0 auto; + font-weight: bold; + font-color: #1D3040; + font-size: 1em; +} +#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-file-drop { + display: flex; + align-items: center; + justify-content: center; + width: 100%; + min-height: 100px; + background: #EFEBE3; + color: #1D3040; + vertical-align: middle; + border-radius: 5px; + margin: 0 0 10px 0; +} +#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-file-drop label { + cursor: pointer; + font-weight: 600px; + text-transform: capitalize; +} +#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-file-drop img { + width: 100%; + margin: 0; + padding: 0; +} +#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-images-list, #post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-files-list { + padding: 10px 0 0 0; +} +#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-images-list .img-item, #post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-files-list .img-item { + height: 150px; + width: 23.8%; + border-radius: 3px; + margin: 0 10px 10px 0; + display: inline-block; + cursor: pointer; +} +#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-images-list .audio-item, #post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-files-list .audio-item { + height: 150px; + width: 23.8%; + border-radius: 3px; + margin: 0 10px 10px 0; + display: inline-block; + cursor: pointer; + background: #1D3040; + background: url("/assets/images/global/upload-audio.png") no-repeat center center/cover; +} +#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-images-list .video-item, #post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-files-list .video-item { + height: 150px; + width: 23.8%; + border-radius: 3px; + margin: 0 10px 10px 0; + display: inline-block; + cursor: pointer; + background: #1D3040; + background: url("/assets/images/global/upload-video.png") no-repeat center center/cover; +} +#post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-images-list .file-item, #post-edit-index #post-edit-index-wrapper #post-feature #page-file-manager #page-file-wrapper #page-files-list .file-item { + height: 150px; + width: 23.8%; + border-radius: 3px; + margin: 0 10px 10px 0; + display: inline-block; + cursor: pointer; + background: #1D3040; + background: url("/assets/images/global/upload-doc.png") no-repeat center center/cover; +} +#post-edit-index #post-edit-index-wrapper #edit-post { + width: 100%; + max-width: 880px; + margin: 0 auto; +} +#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper { + width: 100%; + max-width: 900px; + border-radius: 5px; + position: relative; +} +#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper textarea:focus { + outline: none; + border-color: #fc6399; +} +#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #edit, #post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #highlight { + border: 0; + width: 100%; + min-height: 300px; + height: auto; + position: absolute; + top: 0; + left: 0; + overflow: auto; + word-wrap: normal; + white-space: pre-wrap; + line-break: normal; +} +#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #highlight-content { + word-wrap: normal; + white-space: pre-wrap; + line-break: normal; +} +#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #edit, #post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #highlight, #post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #hightlight * { + font-size: 1.2em; + font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; + line-height: 22pt; +} +#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #edit { + z-index: 1; + color: transparent; + background: transparent; + caret-color: #fc6399; +} +#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #highlight { + z-index: 0; +} +#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #highlight pre { + margin: 0; +} +#post-edit-index #post-edit-index-wrapper #edit-post #edit-post-wrapper #highlight pre code { + font-family: "Lucida Console", Monaco, monospace; + padding: 5px; + border-radius: 5px; + line-height: 1.6em; + font-size: 1.25em; + color: #fde3a7; + word-wrap: normal; + white-space: pre-wrap; + line-break: normal; + -webkit-line-break: normal; + -o-line-break: normal; + -moz-line-break: normal; + display: inline-block; + width: 100%; + max-width: 900px; + min-height: 200px; + caret-color: #fc6399; +} + +@media only screen and (max-width: 800px) { + #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-date { + width: 37.6%; + } +} +@media only screen and (max-width: 768px) { + #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-date { + width: 43.1%; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control { + max-width: 100%; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control button { + width: 9.91%; + } +} +@media only screen and (max-width: 640px) { + #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-date { + width: 42%; + } +} +@media only screen and (max-width: 480px) { + #post-index #post-index-wrapper #post-index-header #post-index-header-left { + font-size: 1.35em; + width: 30%; + } + #post-index #post-index-wrapper #post-index-header #post-index-header-right { + width: 70%; + vertical-align: top; + } + #post-index #post-index-wrapper #post-index-menu a { + font-size: 0.95em; + } + #post-index #post-index-wrapper #post-index-menu a label { + display: none; + visibility: hidden; + } + + #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-options { + margin: 5px 0 0 0; + width: 100%; + padding: 0; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-date { + width: 89.2%; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control button { + width: 9.91%; + } +} +@media only screen and (max-width: 320px) { + #post-index #post-index-wrapper #post-index-menu a { + font-size: 0.95em; + } + #post-index #post-index-wrapper #post-index-menu a label { + display: none; + visibility: hidden; + } + + #post-edit-index #post-edit-index-wrapper #post-header #post-title #post_title { + width: 96.4%; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-options { + margin: 5px 0 0 0; + width: 100%; + padding: 0; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-title #post-date { + width: 83.1%; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-meta #post_tags { + width: 96.4%; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control .content-editor-btn-icon svg.icons { + width: 20px; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control .post-sumbit-btn svg.icons { + width: 20px; + } + #post-edit-index #post-edit-index-wrapper #post-header #post-meta #edit-control button { + width: 10%; + } +} +.dp-modal { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: rgba(0, 0, 0, 0.75); + z-index: 2000; +} + +.dp { + position: relative; + background: #1D3040; + box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.25); + line-height: 1.4; + border-radius: 4px; + max-height: 400px; + z-index: 5000; + padding-top: 6px; + overflow: hidden; + -webkit-tap-highlight-color: transparent; +} + +.dp:before { + content: " "; + height: 6px; + position: absolute; + top: 0; + left: 0; + right: 0; + background: #fc6399; +} + +.dp-permanent .dp { + padding-top: 0; + border: 1px solid #EEE; + box-shadow: none; +} + +.dp-permanent .dp:before { + display: none; +} + +.dp-cal { + min-height: 300px; +} + +.dp-below { + position: absolute; + font-size: 0.8em; + width: 400px; + max-width: 90vw; +} + +.dp-permanent { + position: relative; + font-size: 0.8em; + width: 400px; + max-width: 100vw; +} + +.dp-permanent .dp { + z-index: 0; +} + +.dp-modal .dp { + position: absolute; + top: 50%; + left: 50%; + max-width: 600px; + width: calc(100% - 4em); + transform: translate(-50%, -50%); + animation: slide-up 0.3s forwards; +} + +.dp-months { + padding: 24px; +} + +.dp-years { + box-sizing: border-box; + max-height: 400px; + padding: 8px 0; + /* HACK for Chrome on Android */ + overflow: auto !important; +} + +.dp-cal-month, .dp-cal-year, .dp-day, .dp-month, .dp-year { + box-sizing: border-box; + text-align: center; + text-decoration: none; + position: relative; + color: #EFEBE3; + border-radius: 2px; + border: 0; + background: transparent; +} + +.dp-cal-header { + position: relative; + text-align: center; + padding-bottom: 16px; + background: #0d161d; +} + +.dp-next, .dp-prev { + position: absolute; + width: 30px; + height: 30px; + overflow: hidden; + top: 14px; + color: black; + border-radius: 2px; + border: 0; + background: transparent; +} + +.dp-next:focus, .dp-prev:focus, .dp-next:hover, .dp-prev:hover { + outline: none; + color: inherit; +} + +.dp-prev { + left: 24px; +} + +.dp-next { + right: 24px; +} + +.dp-prev:before, .dp-next:before { + content: ""; + border: 2px solid; + width: 10px; + height: 10px; + display: inline-block; + transform: rotate(-45deg); + transition: border-color 0.2s; + margin: 9px 0 40px 4px; +} + +.dp-prev:before { + border-right: 0; + border-bottom: 0; +} + +.dp-next:before { + border-left: 0; + border-top: 0; + margin-left: 0; + margin-right: 4px; +} + +.dp-cal-month, .dp-cal-year { + display: inline-block; + font-size: 1.4em; + padding: 16px 8px 8px; + outline: none; +} + +.dp-cal-footer { + text-align: center; + background: #0d161d; +} + +.dp-day-today:after { + content: ""; + height: 0; + width: 0; + border: 7px solid #fc6399; + border-bottom-color: transparent; + border-left-color: transparent; + position: absolute; + top: 0; + right: 0; +} + +.dp-close, .dp-clear, .dp-today { + box-sizing: border-box; + display: inline-block; + width: 33%; + padding: 8px; + text-decoration: none; + color: black; + border: 0; + background: transparent; +} + +.dp-permanent .dp-close, .dp-permanent .dp-clear { + display: none; +} + +.dp-close:active, .dp-clear:active, .dp-today:active, .dp-next:active, .dp-prev:active, .dp-cal-month:active, .dp-cal-year:active { + background: #fc6399; + color: #EFEBE3; +} + +@media screen and (min-device-width: 1200px) { + .dp-close:hover, .dp-close:focus, .dp-clear:hover, .dp-clear:focus, .dp-today:hover, .dp-today:focus, .dp-next:hover, .dp-next:focus, .dp-prev:hover, .dp-prev:focus, .dp-cal-month:focus, .dp-cal-month:hover, .dp-cal-year:hover, .dp-cal-year:focus { + background: #fc6399; + color: #EFEBE3; + } +} +.dp-col-header, .dp-day { + width: 14.28571429%; + display: inline-block; + padding: 8px; + text-align: center; +} + +.dp-col-header { + color: #AAA; + text-transform: uppercase; + font-weight: 300; + font-size: 0.8em; + padding: 8px 0; +} + +.dp-month { + width: 33%; + display: inline-block; + padding: 8px; +} + +.dp-year { + display: block; + padding: 8px 40px; + width: 100%; +} + +.dp-edge-day { + color: #AAA; +} + +.dp-day:hover, .dp-month:hover, .dp-year:hover, .dp-current:focus, .dp-current, .dp-day:focus, .dp-month:focus, .dp-year:focus { + outline: none; + background: black; + color: #EFEBE3; +} + +.dp-selected:hover, .dp-selected:focus, .dp-selected { + background: #fc6399; + color: black; +} + +.dp-day-disabled { + background: transparent; + color: #DDD; +} + +.dp-day-disabled:focus, .dp-day-disabled:hover { + background: #DDD; +} + +.dp-focuser { + position: absolute; + z-index: 0; + top: 50%; + left: 50%; +} + +@media (max-width: 480px), (max-height: 480px) { + .dp-modal .dp { + font-size: 0.9em; + width: auto; + width: 100%; + } + + .dp-day-of-week, .dp-day { + padding: 8px; + } +} +@keyframes slide-up { + 0% { + transform: translate(-50%, 100%); + } + 100% { + transform: translate(-50%, -50%); + } +} +#edit-control { + top: 1px; + border-radius: 3px; + width: 100%; + max-width: 880px; + margin-top: 30px; + z-index: 2000; +} +#edit-control button:nth-child(1) { + border-radius: 3px 0 0 3px; +} +#edit-control button:nth-child(10) { + border-radius: 0 3px 3px 0; +} +#edit-control button { + background: #b2cce5; + width: 10%; + height: 39px; + transition: all 0.3s linear; + margin: 0; + border-radius: 0; + display: inline-block; + vertical-align: top; + text-align: center; +} +#edit-control button:hover { + background: #6699cb; +} +#edit-control #option-update { + padding: 5px 5px 1px 5px; + display: inline-block; + vertical-align: top; + text-align: center; +} +#edit-control .icon-hide { + display: none; + visibility: hidden; +} +#edit-control .submit-start { + background: #EFEBE3; +} +#edit-control .submit-start svg { + fill: #32cd32; +} +#edit-control .submit-cool { + background: #32cd32; +} +#edit-control .submit-cool svg { + fill: #EFEBE3; +} +#edit-control .submit-delete { + background: #F64747 !important; +} +#edit-control .submit-delete svg { + fill: #EFEBE3 !important; +} +#edit-control #option-date { + height: 30px; + padding-top: 6px; +} +#edit-control #option-date svg { + margin: -13px 5px 0 0; + display: inline-block; + vertical-align: top; + fill: #EFEBE3; +} +#edit-control .content-editor-btn-icon { + padding: 5px 5px 1px 5px; + color: #1D3040; +} +#edit-control .content-editor-btn-icon svg { + fill: #1D3040; +} +#edit-control .content-editor-btn-text { + padding: 5px; + color: #1D3040; +} +#edit-control #option-bold { + font-weight: bold; + text-decoration: none; +} +#edit-control #option-italic { + font-weight: bold; + text-decoration: none; + font-style: italic; +} +#edit-control #option-strikethrough { + font-weight: bold; + text-decoration: line-through; + font-style: italic; +} + +code[class*=language-], +pre[class*=language-] { + color: #fde3a7; + background: none; + text-shadow: 0 1px rgba(0, 0, 0, 0.3); + font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; + font-size: 1em; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + line-height: 1.5; + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; +} + +pre[class*=language-] { + margin: 0.1em 0; + overflow: auto; + border-radius: 0.3em; +} + +:not(pre) > code[class*=language-], +pre[class*=language-] { + background: #1D3040; +} + +:not(pre) > code[class*=language-] { + padding: 0.1em; + border-radius: 0.3em; + white-space: normal; +} + +.token.comment, +.token.prolog, +.token.doctype, +.token.cdata { + color: #8292a2; +} + +.token.punctuation { + color: #e7903c; +} +.token.namespace { + opacity: 0.6; +} +.token.keyword { + color: #66d9ef; +} +.token.italic { + font-style: italic; +} +.token.entity { + cursor: help; +} +.token.content { + color: #6bb9f0; +} + +.token.property, +.token.tag, +.token.constant, +.token.symbol, +.token.deleted { + color: #e73c4e; +} + +.token.boolean, +.token.number { + color: #ae81ff; +} + +.token.selector, +.token.attr-name, +.token.string, +.token.char, +.token.builtin, +.token.inserted { + color: #a6e22e; +} + +.token.operator, +.token.entity, +.token.url, +.language-css .token.string, +.style .token.string, +.token.variable { + color: #dcc6e0; +} + +.token.atrule, +.token.attr-value, +.token.function, +.token.class-name { + color: #e6db74; +} + +.token.regex, +.token.important { + color: #e7903c; +} + +.token.important, +.token.bold { + font-weight: bold; +} + +/*# sourceMappingURL=dash.css.map */ diff --git a/src/com/ui/FileManager.js b/src/com/ui/FileManager.js deleted file mode 100644 index e6631ac..0000000 --- a/src/com/ui/FileManager.js +++ /dev/null @@ -1,204 +0,0 @@ -import Sortable from 'sortablejs'; -import DataUtils from '../utils/DataUtils'; -import Notfications from './Notifications.js'; -const notify = new Notfications(); - -export default class FileManager { - //-------------------------- - // constructor - //-------------------------- - constructor(upload, input, imageList, fileList) { - this.upload = upload; - this.input = input; - this.imageList = imageList; - this.fileList = fileList; - this.accetableFiles = [ - 'image/jpeg', - 'image/gif', - 'image/png', - 'image/svg', - 'audio/mpeg', - 'video/mp4', - 'application/pdf', - 'text/plain', - 'text/rtf' - ]; - this.files = []; - this.sortedFiles = []; - this.storage = []; - this.start(); - } - //-------------------------- - // methods - //-------------------------- - start() { - this.upload.addEventListener('dragover', e => this.handleFileActions(e), false); - this.upload.addEventListener('drop', e => this.handleFileActions(e), false); - this.input.addEventListener('change', e => this.handleFileActions(e), false); - - Sortable.create(this.imageList, { - onUpdate: e => { - notify.alert('REINDEXING FILES', null); - let currentFiles = []; //store current list - let items = e.target.children; - for (let index = 0; index < items.length; index++) { - var item = items[index]; - let url = ''; - if (item.className == 'img-item') { - url = item.style.backgroundImage.slice(4, -1).replace(/"/g, ''); - } else { - url = item.getAttribute('data-source'); - } - - currentFiles.push({ - earl: url - }); - } - this.reindexFiles(currentFiles, 0); - } - }); - - Sortable.create(this.fileList, { - onUpdate: e => { - notify.alert('REINDEXING FILES', null); - let currentFiles = []; - let items = e.target.children; - for (let index = 0; index < items.length; index++) { - var item = items[index]; - let url = item.getAttribute('data-source'); - currentFiles.push({ - earl: url - }); - } - this.reindexFiles(currentFiles, 0); - } - }); - } - - getFiles() { - return this.files; - } - - reindexFiles(sortOrder, step) { - let count = sortOrder.length; - if (step == 0) this.files = []; - var utils = new DataUtils(); - var path = sortOrder[step].earl.split('/'); - utils.imgLoad(sortOrder[step].earl).then(blob => { - var fresh = new File([blob], path[6], { type: blob.type }); - this.files.push(fresh); - if (this.files.length <= count - 1) { - this.reindexFiles(sortOrder, ++step); - } else { - notify.alert('FILES READY TO UPLOAD', true); - } - }); - } - - sortFiles(files) { - var self = this; - this.files = []; //clear files array - this.imageList.innerHTML = ''; - this.fileList.innerHTML = ''; - for (var i = 0, file; (file = files[i]); i++) { - var reader = new FileReader(); - // Closure to capture the file information - - reader.onload = (theFile => { - return function (f) { - // sort files - switch (theFile.type) { - case 'image/jpg': - case 'image/jpeg': - case 'image/gif': - case 'image/svg': - case 'image/png': - //create element and add to list - var image = document.createElement('img'); - image.src = f.target.result; - image.title = escape(theFile.name); - var span = document.createElement('div'); - span.style.background = - 'url(' + - f.target.result + - ') no-repeat center center / cover'; - span.className = 'img-item'; - image.setAttribute('id', i); - self.storage.push([ - { - id: 'page_image' + i, - data: f.target.result, - type: theFile.type, - name: escape(theFile.name) - } - ]); - self.imageList.appendChild(span); - //add to files list - self.files.push(theFile); - - break; - case 'video/mp4': - var video = document.createElement('div'); - video.className = 'video-item'; - video.setAttribute('data-source', f.target.result); - self.imageList.appendChild(video); - self.files.push(theFile); - break; - case 'audio/mpeg': - var sound = document.createElement('div'); - sound.className = 'audio-item'; - sound.setAttribute('data-source', f.target.result); - self.fileList.appendChild(sound); - self.files.push(theFile); - break; - case 'application/pdf': - case 'text/plain': - case 'text/rtf': - var file = document.createElement('div'); - file.className = 'file-item'; - file.setAttribute('data-source', f.target.result); - self.fileList.appendChild(file); - self.files.push(theFile); - break; - } - }; - })(file); - // Read in the image file as a data URL. - reader.readAsDataURL(file); - } - } - - //-------------------------- - // event handlers - //-------------------------- - handleFileActions(e) { - e.stopPropagation(); - e.preventDefault(); - let self = this; - let rawList = []; - let sortedList = []; - let notOnTheList = []; - - switch (e.type) { - case 'dragover': - e.dataTransfer.dropEffect = 'copy'; // Explicitly show this is a copy. - break; - case 'change': - case 'drop': - e.type == 'drop' - ? (rawList = e.dataTransfer.files) - : (rawList = e.target.files); - for (var i = 0, f; (f = rawList[i]); i++) { - // check witch files are cool to upload - if (this.accetableFiles.includes(f.type)) { - sortedList.push(f); - } else { - notOnTheList.push(f); - } - } - //send for sorting - self.sortFiles(sortedList); - break; - } - } -} -- 2.25.1 From 2f0b83b492300ebd9f98ddcc031298b64af1ff0a Mon Sep 17 00:00:00 2001 From: Ro Date: Tue, 16 May 2023 15:08:48 -0700 Subject: [PATCH 16/23] Added License Decided to go with GNU General Public License v3.0 because all improvements to the codebase should be shared with the public --- LICENSE | 674 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 674 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..1acb731 --- /dev/null +++ b/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. -- 2.25.1 From ac08c7781334a5ef1bb5c918499a1e4ab390a23c Mon Sep 17 00:00:00 2001 From: Ro Date: Fri, 28 Jul 2023 15:55:16 -0700 Subject: [PATCH 17/23] Removed role from header, notification and login Began the process of removing all invalid role attributes starting with the header, login, and notifications components. Updated the corresponding scripts as well. Made a few structural changes to the header to simply it and then tested it to ensure notification still worked. --- brain/views/dash/_frame.twig | 16 ++++------- brain/views/dash/forms/login.twig | 2 +- brain/views/dash/partials/navigation.twig | 6 ++-- brain/views/dash/partials/notifications.twig | 14 +++++----- .../views/dash/partials/submenu_settings.twig | 2 +- brain/views/dash/partials/submenu_start.twig | 2 +- public/assets/css/dash/frame.css | 28 ++++++++----------- public/assets/css/dash/init.css | 14 +++++----- public/assets/css/dash/notifications.css | 28 ++++++------------- public/assets/scripts/dash.js | 26 ++++++++--------- public/assets/scripts/dash.js.map | 2 +- src/com/ui/Menu.js | 4 +-- src/com/ui/Notifications.js | 22 +++++++-------- 13 files changed, 74 insertions(+), 92 deletions(-) diff --git a/brain/views/dash/_frame.twig b/brain/views/dash/_frame.twig index 4d42566..5da247a 100644 --- a/brain/views/dash/_frame.twig +++ b/brain/views/dash/_frame.twig @@ -2,7 +2,7 @@ - + {% block title %} @@ -15,14 +15,10 @@ {% if status %} <header> {% apply spaceless %} - <nav role="top-nav"> - <div role="nav-left"> - <a href="/dashboard"><img id="the-logo" src="/assets/images/global/fipamo-logo.svg"/></a> - </div> - <div role="title"> - <h1>{{ title }}</h1> - </div> - <div role="nav-right"> + <nav class="top-nav"> + <a href="/dashboard"><img id="the-logo" src="/assets/images/global/fipamo-logo.svg"/></a> + <h1>{{ title }}</h1> + <div class="nav-right"> {% if status %} {% apply spaceless %} {{ include("dash/partials/navigation.twig") }} @@ -30,7 +26,7 @@ {% endif %} </div> </nav> - <div role="notify"> + <div class="notify" role="note"> {% apply spaceless %} {{ include("dash/partials/notifications.twig") }} {% endapply %} diff --git a/brain/views/dash/forms/login.twig b/brain/views/dash/forms/login.twig index 5c2b285..12b4d06 100644 --- a/brain/views/dash/forms/login.twig +++ b/brain/views/dash/forms/login.twig @@ -1,4 +1,4 @@ -<section role="login"> +<section class="login"> <div> <img id="the-logo" src="/assets/images/global/fipamo-logo.svg"/> </div> diff --git a/brain/views/dash/partials/navigation.twig b/brain/views/dash/partials/navigation.twig index b0afcdb..f62b038 100644 --- a/brain/views/dash/partials/navigation.twig +++ b/brain/views/dash/partials/navigation.twig @@ -1,4 +1,4 @@ -<div role="menu"> +<div class="menu"> {% if title == "Settings" %} {% apply spaceless %} {{ include("dash/partials/submenu_settings.twig") }} @@ -25,11 +25,11 @@ </a> </div> -<button role="menu-toggle"> +<button class="menu-toggle"> <i class="ti ti-menu-2"></i> </button> -<div role="mobile-menu"> +<div class="mobile-menu"> {% if title == "Settings" %} {% apply spaceless %} {{ include("dash/partials/submenu_settings.twig") }} diff --git a/brain/views/dash/partials/notifications.twig b/brain/views/dash/partials/notifications.twig index 638c4df..7c34058 100644 --- a/brain/views/dash/partials/notifications.twig +++ b/brain/views/dash/partials/notifications.twig @@ -1,10 +1,10 @@ -<div role="notify-message"> - <div role="notify-icons"> - <i class="ti ti-mood-smile" role="notify-good"></i> - <i class="ti ti-mood-sad" role="notify-notgood"></i> - <i class="ti ti-settings" role="notify-working"></i> +<div class="notify-message"> + <div class="notify-icons"> + <i class="ti ti-mood-smile notify-good"></i> + <i class="ti ti-mood-sad notify-notgood"></i> + <i class="ti ti-settings notify-working"></i> </div> - <div role="notify-text"> - <span role="response-text">Hey Hey</span> + <div class="notify-text"> + <span class="response-text">Hey Hey</span> </div> </div> diff --git a/brain/views/dash/partials/submenu_settings.twig b/brain/views/dash/partials/submenu_settings.twig index fa6a85e..eabb29e 100644 --- a/brain/views/dash/partials/submenu_settings.twig +++ b/brain/views/dash/partials/submenu_settings.twig @@ -1,4 +1,4 @@ -<div role="submenu"> +<div class="submenu"> <button id="save-toggle" title="save settings"> <i class="ti ti-device-floppy"></i> </button> diff --git a/brain/views/dash/partials/submenu_start.twig b/brain/views/dash/partials/submenu_start.twig index 38d3637..8e198a7 100644 --- a/brain/views/dash/partials/submenu_start.twig +++ b/brain/views/dash/partials/submenu_start.twig @@ -1,4 +1,4 @@ -<div role="submenu"> +<div class="submenu"> <a href='/dashboard/pages' title="view pages"> <button> <i class="ti ti-book-2"></i> diff --git a/public/assets/css/dash/frame.css b/public/assets/css/dash/frame.css index 6f7bdc5..8dca897 100644 --- a/public/assets/css/dash/frame.css +++ b/public/assets/css/dash/frame.css @@ -73,26 +73,26 @@ header { z-index: 500; } -header > nav > div[role="nav-left"] img { +header > nav > a img { width: 40px; padding: 5px; } -header > nav > div[role="title"] { +header > nav > h1 { text-align: left; height: 100%; } -header > nav > div[role="title"] h1 { +header > nav > h1 { color: var(--primary); margin: 15px; } -header > nav > div[role="nav-right"] { +header > nav > div.nav-right { padding: 5px; } -header > nav > div > div[role="mobile-menu"] { +header > nav > div > div.mobile-menu { display: none; position: fixed; z-index: 1000; @@ -101,7 +101,7 @@ header > nav > div > div[role="mobile-menu"] { background: var(--white); } -header > nav > div[role="nav-right"] button { +header > nav > div.nav-right button { width: 40px; height: 40px; margin-left: 5px; @@ -109,25 +109,21 @@ header > nav > div[role="nav-right"] button { color: var(--white); } -header > nav > div[role="nav-right"] > button[role="menu-toggle"] { +header > nav > div.nav-right > button.menu-toggle { display: none; } -header > nav > div[role="nav-right"] div[role="submenu"] { +header > nav > div.nav-right div.submenu { display: inline; } -header > nav > div[role="nav-right"] div[role="submenu"] button { +header > nav > div.nav-right div.submenu button { background: var(--primary); color: var(--white); font-size: 0.8em; } -header - > nav - > div[role="nav-right"] - div[role="submenu"] - button[data-render="true"] { +header > nav > div.nav-right div.submenu button[data-render="true"] { background: var(--tertiary); color: var(--primary); } @@ -141,11 +137,11 @@ header } @media only screen and (max-width: 530px) { - header > nav > div[role="nav-right"] > button[role="menu-toggle"] { + header > nav > div.nav-right > button.menu-toggle { display: inline; } - header > nav > div > div[role="menu"] { + header > nav > div > div.menu { display: none; } } diff --git a/public/assets/css/dash/init.css b/public/assets/css/dash/init.css index a3b88c2..5d23f4d 100644 --- a/public/assets/css/dash/init.css +++ b/public/assets/css/dash/init.css @@ -1,6 +1,6 @@ /* LOGIN */ -section[role="login"], +section.login, section[role="password-reset"], section[role="restore-fresh"], section[role="restore-backup"] { @@ -20,19 +20,19 @@ section[role="restore-backup"] { color: var(--white); } -section[role="login"] form input { +section.login form input { width: 95%; height: 30px; padding: 5px; margin-bottom: 10px; } -section[role="login"] form button { +section.login form button { padding: 10px 5px; width: 82%; } -section[role="login"] form a { +section.login form a { padding: 10px 5px; border-radius: 5px; width: 10%; @@ -88,7 +88,7 @@ section[role="restore-backup"] form input { /* RESPONSIVE */ @media only screen and (max-width: 500px) { - section[role="login"], + section.login, section[role="password-reset"], section[role="restore-fresh"], section[role="restore-backup"] { @@ -97,14 +97,14 @@ section[role="restore-backup"] form input { } @media only screen and (max-width: 375px) { - section[role="login"], + section.login, section[role="password-reset"], section[role="restore-fresh"], section[role="restore-backup"] { grid-template-columns: 1fr; } - section[role="login"] img, + section.login img, section[role="password-reset"] img, section[role="restore-fresh"] img, section[role="restore-backup"] img { diff --git a/public/assets/css/dash/notifications.css b/public/assets/css/dash/notifications.css index b796b17..8481c20 100644 --- a/public/assets/css/dash/notifications.css +++ b/public/assets/css/dash/notifications.css @@ -1,4 +1,4 @@ -header > nav[role="top-nav"] { +header > nav.top-nav { display: grid; text-align: right; grid-template-columns: 50px auto auto; @@ -15,7 +15,7 @@ header > nav[role="top-nav"] { box-shadow: 2px 2px 0 rgba(var(--primary-rgb) / 30%); } -header > div[role="notify"] { +header > div.notify { display: grid; height: 100%; position: relative; @@ -31,20 +31,17 @@ header > div[role="notify"] { box-shadow: 2px 2px 0 rgba(var(--primary-rgb) / 30%); } -header > div[role="notify"] > div[role="notify-message"] { +header > div.notify > div.notify-message { display: flex; height: 86%; } -header > div[role="notify"] > div[role="notify-message"] div { +header > div.notify > div.notify-message div { display: inline-block; transition: all 0.2s linear; } -header - > div[role="notify"] - > div[role="notify-message"] - > div[role="notify-text"] { +header > div.notify > div.notify-message > div.notify-text { color: var(--white); border-radius: 5px; height: 79%; @@ -52,30 +49,23 @@ header opacity: 0; } -header - > div[role="notify"] - > div[role="notify-message"] - > div[role="notify-icons"] { +header > div.notify > div.notify-message > div.notify-icons { margin: 5px; width: 40px; opacity: 0; } -header - > div[role="notify"] - > div[role="notify-message"] - > div[role="notify-text"] - span { +header > div.notify > div.notify-message > div.notify-text span { display: block; padding: 5px; } -header > div[role="notify"] > div[role="notify-message"] i { +header > div.notify > div.notify-message i { display: none; color: var(--white); } -i[role="notify-working"] { +i.notify-working { animation: 2s infinite linear spin; height: 40px; width: 40px; diff --git a/public/assets/scripts/dash.js b/public/assets/scripts/dash.js index ec96671..2ba3b07 100644 --- a/public/assets/scripts/dash.js +++ b/public/assets/scripts/dash.js @@ -3767,15 +3767,15 @@ $8b9e2899b2e82f52$var$anime.random = function(min, max) { var $8b9e2899b2e82f52$export$2e2bcd8739ae039 = $8b9e2899b2e82f52$var$anime; -const $accfb6154319a04b$var$notifcation = document.querySelector('[role="notify-message"]'); +const $accfb6154319a04b$var$notifcation = document.querySelector(".notify-message"); const $accfb6154319a04b$var$notify = document.getElementById("notify-message"); -const $accfb6154319a04b$var$responseText = document.querySelector('[role="response-text"]'); -const $accfb6154319a04b$var$notifyText = document.querySelector('[role="notify-text"]'); -const $accfb6154319a04b$var$notifyIcons = document.querySelector('[role="notify-icons"]'); +const $accfb6154319a04b$var$responseText = document.querySelector(".response-text"); +const $accfb6154319a04b$var$notifyText = document.querySelector(".notify-text"); +const $accfb6154319a04b$var$notifyIcons = document.querySelector(".notify-icons"); //const notifyProgress = document.getElementById('notify-progress'); -const $accfb6154319a04b$var$iconGood = document.querySelector('[role="notify-good"]'); -const $accfb6154319a04b$var$iconNotGood = document.querySelector('[role="notify-notgood"]'); -const $accfb6154319a04b$var$iconWorking = document.querySelector('[role="notify-working"]'); +const $accfb6154319a04b$var$iconGood = document.querySelector(".notify-good"); +const $accfb6154319a04b$var$iconNotGood = document.querySelector(".notify-notgood"); +const $accfb6154319a04b$var$iconWorking = document.querySelector(".notify-working"); class $accfb6154319a04b$export$2e2bcd8739ae039 { //-------------------------- // constructor @@ -3805,12 +3805,12 @@ class $accfb6154319a04b$export$2e2bcd8739ae039 { $accfb6154319a04b$var$iconWorking.style.display = "block"; } new (0, $8b9e2899b2e82f52$export$2e2bcd8739ae039)({ - targets: document.querySelector('[role="top-nav"]'), + targets: document.querySelector(".top-nav"), rotateX: "180deg", easing: "easeOutQuint" }); new (0, $8b9e2899b2e82f52$export$2e2bcd8739ae039)({ - targets: document.querySelector('[role="notify"]'), + targets: document.querySelector(".notify"), rotateX: "10deg", easing: "easeOutQuint", complete: ()=>{ @@ -3845,12 +3845,12 @@ class $accfb6154319a04b$export$2e2bcd8739ae039 { duration: 350 }); new (0, $8b9e2899b2e82f52$export$2e2bcd8739ae039)({ - targets: document.querySelector('[role="top-nav"]'), + targets: document.querySelector(".top-nav"), rotateX: "0deg", easing: "easeOutQuint" }); new (0, $8b9e2899b2e82f52$export$2e2bcd8739ae039)({ - targets: document.querySelector('[role="notify"]'), + targets: document.querySelector(".notify"), rotateX: "180deg", easing: "easeOutQuint" }); @@ -7201,8 +7201,8 @@ class $f32c20539eb29606$export$2e2bcd8739ae039 { //-------------------------- constructor(){ this.mobile = false; - this.mobileMenu = document.querySelector('[role="mobile-menu"]'); - document.querySelector('[role="menu-toggle"]').addEventListener("click", (e)=>this.handleMobile(e)); + this.mobileMenu = document.querySelector(".mobile-menu"); + document.querySelector(".menu-toggle").addEventListener("click", (e)=>this.handleMobile(e)); } //-------------------------- // methods diff --git a/public/assets/scripts/dash.js.map b/public/assets/scripts/dash.js.map index 892a937..96bc462 100644 --- a/public/assets/scripts/dash.js.map +++ b/public/assets/scripts/dash.js.map @@ -1 +1 @@ -{"mappings":";;;;;;;;;;;;;AEAA,uBAAA;AACO,MAAM+D,4CAAoB;AAC1B,MAAMC,4CAAmB;AACzB,MAAMC,4CAAmB;AACzB,MAAMC,4CAAsB;AAE5B,MAAMC,4CAAoB;AAC1B,MAAMC,4CAAoB;AAE1B,MAAMC,4CAAa;AACnB,MAAMC,4CAAmB;AACzB,MAAMC,4CAAsB;AAC5B,MAAMC,4CAAe;AACrB,MAAMC,4CAAgB;AACtB,MAAMC,4CAAkB;AACxB,MAAMC,4CAAoB;AAC1B,MAAMC,4CAAoB;AAC1B,MAAMC,2CAAe;AACrB,MAAMC,4CAAoB;AAC1B,MAAMC,4CAAgB;AACtB,MAAMC,4CAAY;AAElB,MAAMC,4CAAc;AACpB,MAAMC,4CAAsB;AAC5B,MAAMC,4CAAoB;AAC1B,MAAMC,4CAAmB;AACzB,MAAMC,4CAAiB;AACvB,MAAMC,4CAAmB;AACzB,MAAMC,4CAAiB;AACvB,MAAMC,4CAAoB;AAC1B,MAAMC,4CAAqB;AAC3B,MAAMC,4CAAgB;AACtB,MAAMC,4CAAoB;AAC1B,MAAMC,4CAAuB;AAE7B,MAAMC,4CAAkB;AACxB,MAAMC,4CA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AA,WAAY;gBACjBP,KAAKd,UAAU,GAAG,KAAK;gBACvB,IAAIqB,SAASC,IAAI,IAAI,kBACpBxB,6BAAO8C,KAAK,CAACvB,SAASK,OAAO,EAAE,KAAK;qBAC9B;oBACN5B,6BAAO8C,KAAK,CAACvB,SAASK,OAAO,EAAE,IAAI;oBACnCC,WAAW,IAAM;wBAChBC,OAAOC,QAAQ,GAAG;oBACnB,GAAG;gBACJ,CAAA;YACD,GACCC,KAAK,CAACC,CAAAA,MAAO;gBACbjB,KAAKd,UAAU,GAAG,KAAK;gBACvBF,6BAAO8C,KAAK,CAACb,KAAK,KAAK;YACxB;QACF,CAAA;IACD;IACAtB,cAAcD,CAAC,EAAE;QAChBA,EAAEwB,eAAe;QACjBxB,EAAEO,cAAc;QAChB,IAAIgC,OAAO1D,SAASc,aAAa,CAAC;QAClC,IAAImC,UAAUjD,SAASc,aAAa,CAAC;QACrC,IAAIK,EAAEgB,MAAM,CAACe,EAAE,KAAK,uBAAuB;YAC1CQ,KAAKC,KAAK,CAACC,OAAO,GAAG;YACrBF,KAAKC,KAAK,CAACE,UAAU,GAAG;YAExBZ,QAAQU,KAAK,CAACC,OAAO,GAAG;YACxBX,QAAQU,KAAK,CAACE,UAAU,GAAG;QAC5B,OAAO;YACNH,KAAKC,KAAK,CAACC,OAAO,GAAG;YACrBF,KAAKC,KAAK,CAACE,UAAU,GAAG;YAExBZ,QAAQU,KAAK,CAACC,OAAO,GAAG;YACxBX,QAAQU,KAAK,CAACE,UAAU,GAAG;QAC5B,CAAA;IACD;AACD;;ADlNA;AAEA7D,SAASC,gBAAgB,CACxB,oBACA,WAAY;IACX,IAAIF,CAAAA,GAAAA,wCAAAA;AACL,GACA,KAAK","sources":["src/com/Start.js","src/com/Base.js","src/libraries/FipamoAdminAPI.js","src/com/controllers/MaintenanceManager.js","src/com/utils/DataUtils.js","src/com/events/DataEvent.js","src/com/controllers/DashManager.js","src/com/controllers/PostIndex.js","src/com/controllers/PageEditor.js","src/com/actions/PageActions.js","src/com/utils/StringUtils.js","src/com/events/EditorEvent.js","src/com/ui/TextEditor.js","src/com/events/EventEmitter.js","node_modules/prismjs/components/prism-core.js","node_modules/prismjs/components/prism-markup.js","node_modules/prismjs/components/prism-markdown.js","src/com/ui/Notifications.js","node_modules/animejs/lib/anime.es.js","src/com/ui/FileManager.js","node_modules/sortablejs/modular/sortable.esm.js","src/com/controllers/SettingsIndex.js","src/com/actions/SettingsActions.js","src/com/actions/Mailer.js","src/com/controllers/NavIndex.js","src/com/actions/NavActions.js","src/com/ui/Menu.js"],"sourcesContent":["import Base from './Base';\n\ndocument.addEventListener(\n\t'DOMContentLoaded',\n\tfunction () {\n\t\tnew Base();\n\t},\n\tfalse\n);\n","import FipamoAdminAPI from '../libraries/FipamoAdminAPI';\nimport Maintenance from './controllers/MaintenanceManager';\nimport DataUitls from './utils/DataUtils';\nimport * as DataEvent from './events/DataEvent';\nimport DashManager from './controllers/DashManager';\nimport Notfications from './ui/Notifications';\nconst data = new DataUitls();\nconst notify = new Notfications();\n\nexport default class Base {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tthis.start();\n\t}\n\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\n\t//TODO: Move init functions and set up to their own class\n\tstart() {\n\t\tif (\n\t\t\tdocument.getElementById('login') ||\n\t\t\tdocument.querySelector('[role=\"site-restore\"]')\n\t\t) {\n\t\t\tvar options = document.getElementsByClassName('init-option');\n\t\t\tfor (let index = 0; index < options.length; index++) {\n\t\t\t\toptions[index].addEventListener('click', e => this.handleOptions(e));\n\t\t\t}\n\t\t\tif (document.getElementById('login')) {\n\t\t\t\tdocument\n\t\t\t\t\t.getElementById('login-btn')\n\t\t\t\t\t.addEventListener('click', e => this.handleLogin(e));\n\t\t\t} else {\n\t\t\t\tdocument\n\t\t\t\t\t.getElementById('init-blog')\n\t\t\t\t\t.addEventListener('click', e => this.handleSetup(e));\n\t\t\t\tdocument\n\t\t\t\t\t.getElementById('blog-restore')\n\t\t\t\t\t.addEventListener('click', e => this.handleRestore(e));\n\t\t\t}\n\t\t} else if (document.getElementById('dash-reset')) {\n\t\t\tdocument\n\t\t\t\t.getElementById('get-secret-btn')\n\t\t\t\t.addEventListener('click', e => this.handleReset(e));\n\n\t\t\tdocument\n\t\t\t\t.getElementById('reset-btn')\n\t\t\t\t.addEventListener('click', e => this.handleReset(e));\n\t\t} else {\n\t\t\tnew DashManager();\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleLogin(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.preventDefault();\n\t\tlet authForm = data.formDataToJSON(document.getElementById('login'));\n\t\t//notify.alert('Looking, hold up', null);\n\t\tlet api = new FipamoAdminAPI();\n\t\tthis.processing = true;\n\t\tapi.login(authForm)\n\t\t\t.then(response => {\n\t\t\t\tself.processing = false;\n\t\t\t\tif (response.type === DataEvent.REQUEST_LAME) {\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t} else {\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t}, 500);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t});\n\t}\n\n\thandleSetup(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet setUpForm = data.formDataToJSON(document.getElementById('init-form'));\n\t\tlet mm = new Maintenance();\n\t\tthis.processing = true;\n\t\tmm.create(setUpForm)\n\t\t\t.then(response => {\n\t\t\t\tif (response.type === DataEvent.API_INIT_LAME) {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t} else {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t}, 700);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\t//notify.alert(err, false);\n\t\t\t});\n\t}\n\n\thandleRestore(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet mm = new Maintenance();\n\t\tvar form = document.getElementById('init-restore');\n\t\tthis.processing = true;\n\t\tmm.restore(form)\n\t\t\t.then(response => {\n\t\t\t\tif (response.type === DataEvent.REQUEST_LAME) {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t} else {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t}, 1500);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\te.target.innerHTML = err;\n\t\t\t});\n\t}\n\n\thandleReset(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet self = this;\n\t\tlet mm = new Maintenance();\n\t\tif (e.target.id == 'get-secret-btn') {\n\t\t\tlet data = {\n\t\t\t\temail: document.getElementById('email').value,\n\t\t\t\ttask: 'retrieveSecret'\n\t\t\t};\n\t\t\tthis.processing = true;\n\t\t\tmm.secret(data)\n\t\t\t\t.then(response => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tif (response.secret) {\n\t\t\t\t\t\tdocument.getElementById('secret').value = response.secret;\n\t\t\t\t\t\tnotify.alert(response.message, true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (response.type == 'mailSent') {\n\t\t\t\t\t\t\tnotify.alert(response.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(response.message, false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t});\n\t\t} else {\n\t\t\tlet data = {\n\t\t\t\tnewPass: document.getElementById('new_password').value,\n\t\t\t\tnewPassConfirm: document.getElementById('new_password2').value,\n\t\t\t\tsecret: document.getElementById('secret').value\n\t\t\t};\n\t\t\tmm.newPass(data)\n\t\t\t\t.then(response => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tif (response.type == 'passNotCreated') {\n\t\t\t\t\t\tnotify.alert(response.message, false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnotify.alert(response.message, true);\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t\t}, 1000);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t});\n\t\t}\n\t}\n\thandleOptions(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet init = document.querySelector('[role=\"restore-fresh\"]');\n\t\tlet restore = document.querySelector('[role=\"restore-backup\"]');\n\t\tif (e.target.id === 'init-switch-restore') {\n\t\t\tinit.style.display = 'none';\n\t\t\tinit.style.visibility = 'hidden';\n\n\t\t\trestore.style.display = 'grid';\n\t\t\trestore.style.visibility = 'visible';\n\t\t} else {\n\t\t\tinit.style.display = 'grid';\n\t\t\tinit.style.visibility = 'visible';\n\n\t\t\trestore.style.display = 'none';\n\t\t\trestore.style.visibility = 'hidden';\n\t\t}\n\t}\n}\n","//** REQUEST TYPES **//\nexport const REQUEST_TYPE_POST = 'POST';\nexport const REQUEST_TYPE_GET = 'GET';\nexport const REQUEST_TYPE_PUT = 'PUT';\nexport const REQUEST_TYPE_DELETE = 'DELETE';\n//** POST CONTENT TYPES **//\nexport const CONTENT_TYPE_JSON = 'json';\nexport const CONTENT_TYPE_FORM = 'x-www-form-urlencoded';\n//** API URLS **//\nexport const API_STATUS = '/api/v1/status';\nexport const API_GET_SETTINGS = '/api/v1/settings/site';\nexport const API_GET_MEMBER_INFO = '/api/v1/settings/member';\nexport const API_NEW_PAGE = '/api/v1/page/create';\nexport const API_EDIT_PAGE = '/api/v1/page/write';\nexport const API_DELETE_PAGE = '/api/v1/page/delete';\nexport const API_SETTINGS_SYNC = '/api/v1/settings/sync';\nexport const API_PUBLISH_PAGES = '/api/v1/settings/publish';\nexport const API_NAV_SYNC = '/api/v1/settings/nav-sync';\nexport const API_REINDEX_PAGES = '/api/v1/settings/reindex';\nexport const API_SEND_MAIL = '/api/v1/mailer';\nexport const API_LOGIN = '/api/v1/login';\n//** API TASKS **//\nexport const AUTH_STATUS = 'getAuthStatus';\nexport const TASK_SETTINGS_WRITE = 'writeSettings';\nexport const TASK_PUBLISH_SITE = 'publishSite';\nexport const TASK_PAGE_CREATE = 'createNewPage';\nexport const TASK_PAGE_EDIT = 'editPage';\nexport const TASK_PAGE_DELETE = 'deletePage';\nexport const TASK_SEND_MAIL = 'sendMail';\nexport const TASK_REINDEX_PAGE = 'reIndexPages';\nexport const TASK_SYNC_SETTNIGS = 'syncSite';\nexport const TASK_SYNC_NAV = 'syncNav';\nexport const TASK_GET_SETTINGS = 'getSiteSettings';\nexport const TASK_GET_MEMBER_INFO = 'getMemberInfo';\n//** API STATUS **//\nexport const API_ACCESS_GOOD = 'apiUseAuthorized';\nexport const API_ACCESS_BAD = 'apiUseNotAuthorized';\n\n/**\n * A can of methods used to edit install settings, navigation pages and content pages\n */\n\nclass FipamoAdminAPI {\n\t/**\n\t * @constructor\n\t * @param {string} baseURL - url of site; uses local when empty\n\t * @param {object} progressBar - element to be used to display upload progress\n\t */\n\tconstructor(baseURL = null, progressBar = null) {\n\t\tthis.percentComplete = 0; //for later\n\t\tthis.baseURL = null;\n\t\tthis.progressBar = progressBar;\n\t\tthis.status = false;\n\t\tif (baseURL) this.baseURL = baseURL;\n\t\t//asks server if a session is active\n\t\tthis._request(this.baseURL ? this.baseURL + API_STATUS : API_STATUS).then(\n\t\t\tresponse => {\n\t\t\t\tif (response.type === API_ACCESS_GOOD) {\n\t\t\t\t\tthis.token = response.token;\n\t\t\t\t} else {\n\t\t\t\t\t//don't set token\n\t\t\t\t\t//console.log(\"NO TOKEN\");\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t}\n\t/**\n * Promise method for authenticating and starting a session\\\n * **POST**`/api/v1/login`\n * @param {Object[]} data - json object that contains data for set up\n * @param {string} data[].handle - handle for site user\n * @param {string} data[].password - password for site user\n * @example\n * api.login(data).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of login request\n ```\n {\n \"message\":\"Example Message of Affirmation or what you're missing!\",\n \"type\":\"exampleType\",\n }\n ```\n */\n\tlogin(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.baseURL ? (data.remote = true) : (data.remote = false);\n\t\t\tthis.key ? (data.key = this.key) : (data.key = null);\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + API_LOGIN : API_LOGIN,\n\t\t\t\tAUTH_STATUS,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n * Method for saving site and navigation settings\\\n * **POST**`/api/v1/settings/:task`\n * @param {string} task - settings being synced `config | navigation`\n * @param {object[]} data - json object that contains settings data for [site] or [nav]\n * @param {string} data[].global.base_url - base url for site [site]\n * @param {string} data[].global.title - site title [site]\n * @param {string} data[].global.descriptions - brief site summary [site]\n * @param {string} data[].global.background - url for site feature image for header [site]\n * @param {boolean} data[].global.private - privacy state for site [disabled] [site]\n * @param {boolean} data[].global.renderOnSave - property for publishing site when page saved [disabled] [site]\n * @param {string} data[].global.theme - current theme for site [site]\n * @param {boolean} data[].global.externalAPI - toggle for external API access [site]\n * @param {string} data[].member.handle - current member handle [site]\n * @param {string} data[].member.email - current member email [site]\n * @param {string} data[].email.active - current email protocol being used [site]\n * @param {string} data[].email.smtp.domain - url of smtp service being [site]\n * @param {string} data[].email.smtp.email - email account of smtp service [site]\n * @param {string} data[].email.smtp.password - password for email of smtp service [site]\n * @param {string} data[].email.mailgun.domain - mailgun domain url [site]\n * @param {string} data[].email.mailgun.key - mailgun key [site]\n *\n * @param {string} data[].item.title - page title [nav]\n * @param {string} data[].item.slug - url safe title [nav]\n * @param {string} data[].item.uuid - unique identifier [nav]\n * @param {string} data[].item.path - directory path to associated markdown file [nav]\n * @example\n * api.sync(TASK, data).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of sync request\n ```\n *\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\",\n }\n ```\n */\n\tsync(task, data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet url = '';\n\t\t\tswitch (task) {\n\t\t\t\tcase 'syncSite':\n\t\t\t\t\turl = API_SETTINGS_SYNC;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'syncNav':\n\t\t\t\t\turl = API_NAV_SYNC;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + url : url,\n\t\t\t\tTASK_SETTINGS_WRITE,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * Method for retrieving user authorizing user login\n * @param {object[]} data - json object that contains task\n * @param {string} data[].task - publishing task\n * @example\n * api.publish(TASK).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of publis request\n * ```\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\",\n }\n * ```\n */\n\tpublish(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\t//API_PUBLISH_PAGES,\n\t\t\t\tthis.baseURL ? this.baseURL + API_PUBLISH_PAGES : API_PUBLISH_PAGES,\n\t\t\t\tTASK_PUBLISH_SITE,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * Method for handling page creating and editing\\\n * **POST**`/api/v1/page/:task`\n * @param {string} task - current page action\n * @param {object[]} form - form object that contains info for current page being edited/created\n * @param {string} form[].id - sequence id for page, leave empty for new page\n * @param {string} form[].uuid - unique identifier for page, leave empty for new page\n * @param {string} form[].layout - current page layout\n * @param {string} form[].current_title - saved url save title for persistence when changing title, leave empty for new page\n * @param {string} form[].content - markdown body of page\n * @param {string} form[].title - current title of page\n * @param {string} form[].created - date page was created, leave empty for new page\n * @param {string} form[].slug - url safe string of page title\n * @param {string} form[].tags - comma separated list of tags\n * @param {boolean} form[].menu - property that indicates page is included in site menu\n * @param {boolean} form[].featured - property that indicates page is featured\n * @param {boolean} form[].published - property that indicates page is public\n * @param {string} form[].form_token - hidden property to authenticate form submission\n * @param {input} form[].feature_image - main image for page\n * @example\n * api.pageActions(TASK, data).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of page edit request\n ```\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\",\n }\n ```\n */\n\tpageActions(task, data) {\n\t\tlet url, event, content;\n\t\tswitch (task) {\n\t\t\tcase TASK_PAGE_CREATE:\n\t\t\t\turl = API_NEW_PAGE;\n\t\t\t\tevent = TASK_PAGE_CREATE;\n\t\t\t\tcontent = CONTENT_TYPE_JSON;\n\t\t\t\tbreak;\n\t\t\tcase TASK_PAGE_EDIT:\n\t\t\t\turl = API_EDIT_PAGE;\n\t\t\t\tevent = TASK_PAGE_EDIT;\n\t\t\t\tcontent = CONTENT_TYPE_JSON;\n\t\t\t\tbreak;\n\n\t\t\tcase TASK_PAGE_DELETE:\n\t\t\t\turl = API_DELETE_PAGE;\n\t\t\t\tevent = TASK_PAGE_DELETE;\n\t\t\t\tcontent = CONTENT_TYPE_JSON;\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif (this.baseURL) {\n\t\t\t//data.key = this.key;\n\t\t\tdata.remote = true;\n\t\t} else {\n\t\t\tdata.remote = false;\n\t\t}\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + url : url,\n\t\t\t\tevent,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tcontent,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * Method for sending mail (if completed in settings)\\\n * **POST**`/api/v1/mailer`\n * @param {object[]} message - json object that contains items to be included in main site navigation\n * @param {string} message[].content - message to send\n * @example\n * api.sendMail(message).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of page edit request\n ```\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\"\n }\n ```\n */\n\tsendMail(message) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + API_SEND_MAIL : API_SEND_MAIL,\n\t\t\t\tTASK_SEND_MAIL,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tmessage\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * *Promise method for retrieving site and member info*\\\n * **GET** `/api/v1/settings/:type`\n * @param {string} type - type of info requested ['site'|'member'];\n * @example\n * api.getInfo(\"type\").then(data=>{\n console.log(\"Info Object\", data);\n * })\n * @returns {object} json object that contains data for requested information\n *\n * *info object example*\n * ```\n {\n \"message\":\"message of affirmation!\",\n \"task\":\"type of info request\",\n \"data\":json-data-object,\n }\n * ```\n */\n\n\tgetInfo(type) {\n\t\tlet url, task;\n\t\tif (type == 'site') {\n\t\t\turl = API_GET_SETTINGS;\n\t\t\ttask = TASK_GET_SETTINGS;\n\t\t} else {\n\t\t\turl = API_GET_MEMBER_INFO;\n\t\t\ttask = TASK_GET_MEMBER_INFO;\n\t\t}\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(this.baseURL ? this.baseURL + url : url, task)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t//--------------------------\n\t// private\n\t//--------------------------\n\t_request(\n\t\trequestURL,\n\t\teventType,\n\t\trequestType = REQUEST_TYPE_GET,\n\t\tcontentType = CONTENT_TYPE_JSON,\n\t\trequestData = null\n\t) {\n\t\tvar self = this;\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\tvar request = new XMLHttpRequest();\n\t\t\trequest.upload.addEventListener('progress', e =>\n\t\t\t\tself.handleLoadProgress(e, self.progressBar)\n\t\t\t);\n\t\t\trequest.open(requestType, requestURL, true);\n\t\t\trequest.onload = () => {\n\t\t\t\tif (request.status == 200) {\n\t\t\t\t\tlet response = JSON.parse(request['response']);\n\t\t\t\t\tresolve(response);\n\t\t\t\t} else {\n\t\t\t\t\tlet error = JSON.parse(request['response']);\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\t\t\t};\n\t\t\tif (requestType == REQUEST_TYPE_PUT || requestType == REQUEST_TYPE_POST) {\n\t\t\t\tif (\n\t\t\t\t\teventType === TASK_SETTINGS_WRITE ||\n\t\t\t\t\teventType === TASK_PAGE_EDIT ||\n\t\t\t\t\teventType === TASK_PAGE_CREATE ||\n\t\t\t\t\teventType === TASK_PAGE_DELETE ||\n\t\t\t\t\teventType === TASK_PUBLISH_SITE ||\n\t\t\t\t\teventType === TASK_REINDEX_PAGE\n\t\t\t\t)\n\t\t\t\t\trequest.setRequestHeader('fipamo-access-token', self.token);\n\n\t\t\t\tswitch (contentType) {\n\t\t\t\t\tcase CONTENT_TYPE_JSON:\n\t\t\t\t\t\trequest.setRequestHeader(\n\t\t\t\t\t\t\t'Content-type',\n\t\t\t\t\t\t\t'application/' + contentType\n\t\t\t\t\t\t);\n\t\t\t\t\t\trequest.send(JSON.stringify(requestData));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CONTENT_TYPE_FORM:\n\t\t\t\t\t\trequest.send(requestData);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (\n\t\t\t\t\teventType === TASK_GET_SETTINGS ||\n\t\t\t\t\teventType === TASK_GET_MEMBER_INFO\n\t\t\t\t) {\n\t\t\t\t\trequest.setRequestHeader('fipamo-access-token', self.token);\n\t\t\t\t}\n\t\t\t\trequest.send();\n\t\t\t}\n\t\t});\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleLoadProgress(e, progressBar) {\n\t\tlet percent = Math.ceil((e.loaded / e.total) * 100);\n\t\t//if a progress bar element is present, talk to it\n\t\tif (progressBar != null) {\n\t\t\tprogressBar.style.width = percent + '%';\n\t\t}\n\t}\n}\n\nexport { FipamoAdminAPI as default };\n","//** REQUEST TYPES **//\nexport const REQUEST_TYPE_POST = 'POST';\nexport const REQUEST_TYPE_GET = 'GET';\nexport const REQUEST_TYPE_PUT = 'PUT';\nexport const REQUEST_TYPE_DELETE = 'DELETE';\n//** POST CONTENT TYPES **//\nexport const CONTENT_TYPE_JSON = 'json';\nexport const CONTENT_TYPE_FORM = 'x-www-form-urlencoded';\n//** API URLS **//\nexport const API_STATUS = '/api/v1/status';\nexport const API_INIT = '/api/v1/init';\nexport const API_RESTORE = '/api/v1/restore';\nexport const API_GET_SECRET = '/api/v1/get-secret';\nexport const API_RESET_PASS = '/api/v1/reset-password';\nexport const API_CREATE_BACKUP = '/api/v1/backup';\nexport const API_DOWNLOAD_BACKUP = '/api/v1/backup/download';\nexport const API_RESTORE_BACKUP = '/api/v1/backup/restore';\nexport const API_UPLOAD_AVATAR = '/api/v1/settings/add-avatar';\nexport const API_UPLOAD_BACKGROUND = '/api/v1/settings/add-feature-background';\nexport const API_IMAGE_UPLOAD = '/api/v1/page/add-entry-image';\nexport const API_FILES_UPLOAD = '/api/v1/files';\n//** API TASKS **//\nexport const TASK_SITE_INIT = 'blogInit';\nexport const TASK_BACKUP_RESTORE = 'restoreBackup';\nexport const TASK_BACKUP_CREATE = 'createBackup';\nexport const TASK_GET_SECRET = 'retrieveSecret';\nexport const TASK_RESET_PASS = 'resetPassword';\nexport const TASK_UPLOAD_FILES = 'uploadFiles';\n//** API STATUS **//\nexport const API_ACCESS_GOOD = 'apiUseAuthorized';\nexport const API_ACCESS_BAD = 'apiUseNotAuthorized';\n\n/**\n * A tub of methods for creating/restoring installs, resetting passwords and uploading images.\n */\nclass MaintenanceManager {\n\t/**\n\t * @constructor\n\t * @param {string} baseURL - url of site; uses local when empty\n\t * @param {string} key - user api key\n\t */\n\tconstructor(baseURL = null, key = null) {\n\t\tthis.accetableFiles = [\n\t\t\t'image/jpeg',\n\t\t\t'image/gif',\n\t\t\t'image/png',\n\t\t\t'image/svg',\n\t\t\t'audio/mpeg',\n\t\t\t'video/mp4',\n\t\t\t'application/pdf',\n\t\t\t'text/plain',\n\t\t\t'text/rtf'\n\t\t];\n\t\tthis.percentComplete = 0; //for later\n\t\tthis.token = null;\n\t\tthis.baseURL = null;\n\t\tthis.key = null;\n\t\tif (key) this.key = key;\n\t\tif (baseURL) this.baseURL = baseURL;\n\t\t//if key is valid, checks to see if a session is active and returns\n\t\tthis._request(\n\t\t\tthis.baseURL\n\t\t\t\t? this.baseURL + API_STATUS + '?key=' + this.key\n\t\t\t\t: API_STATUS + '?key=' + this.key\n\t\t).then(response => {\n\t\t\tif (response.type === API_ACCESS_GOOD) {\n\t\t\t\tthis.token = response.token;\n\t\t\t} else {\n\t\t\t\t//don't set token\n\t\t\t\t//console.log(\"NO TOKEN\");\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Promise method used create new site from scratch. For local use only.\n\t * @param {object} data - json object that contains data for set up\n\t * @property {string} new_member_handle - handle for new user\n\t * @property {string} new_member_email - email for new user\n\t * @property {string} new_member_pass - password for new user\n\t * @property {string} new_member_title - title for new user\n\t */\n\tcreate(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tAPI_INIT,\n\t\t\t\tnull,\n\t\t\t\tTASK_SITE_INIT,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Promise method for restoring site from a previous back up. For local use only.\n\t * @param {object} form - form object that contains restore data and files\n\t * @property {string} restore_member_handle - handle for site user\n\t * @property {string} restore_member_pass - password for site user\n\t * @property {file} backup-upload - backup zip file\n\t */\n\trestore(form) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tvar url, event, method, type, data;\n\n\t\t\turl = API_RESTORE;\n\t\t\tevent = TASK_BACKUP_RESTORE;\n\t\t\tmethod = REQUEST_TYPE_POST;\n\t\t\ttype = CONTENT_TYPE_FORM;\n\t\t\tdata = new FormData(form);\n\t\t\tthis._request(url, null, event, method, type, data)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Promise method for creating a zip back up of current site. For local use only.\n\t */\n\n\tbackup() {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tvar url, event, method, type, data;\n\n\t\t\turl = API_CREATE_BACKUP;\n\t\t\tevent = TASK_BACKUP_CREATE;\n\t\t\tmethod = REQUEST_TYPE_POST;\n\t\t\ttype = CONTENT_TYPE_JSON;\n\t\t\tdata = { task: 'create_backup' };\n\t\t\tthis._request(url, null, event, method, type, data)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n\t * Promise method for retrieving user secret key. For local use only.\n\t * @param {object} data - json object that contains data for set up\n\t * @property {string} email - email for site user\n\t */\n\n\tsecret(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tAPI_GET_SECRET,\n\t\t\t\tTASK_GET_SECRET,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Promise method for resetting password for user. For local use only.\n\t * @param {object} data - json object that contains data for set up\n\t * @property {string} new_password - password for user\n\t * @property {string} new_password2 - confirm password for user\n\t * @property {string} secret - secret key for user\n\t */\n\n\tnewPass(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tAPI_RESET_PASS,\n\t\t\t\tTASK_RESET_PASS,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n\t * Promise method for uploading files [todo: change to uploading files]\n\t * @param {string} type - type of upload\n\t * @param {input} files - form input containing files\n\t */\n\tfilesUpload(type, files, progress = null) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet url = API_FILES_UPLOAD;\n\n\t\t\tif (this.baseURL) {\n\t\t\t\tfiles.append('key', this.key);\n\t\t\t\tfiles.append('remote', true);\n\t\t\t} else {\n\t\t\t\tfiles.append('remote', false);\n\t\t\t}\n\n\t\t\tthis._request(\n\t\t\t\turl,\n\t\t\t\tprogress,\n\t\t\t\tTASK_UPLOAD_FILES,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_FORM,\n\t\t\t\tfiles\n\t\t\t)\n\t\t\t\t.then(r => {\n\t\t\t\t\tresolve(r);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t//--------------------------\n\t// private\n\t//--------------------------\n\t_request(\n\t\trequestURL,\n\t\tprogressBar = null,\n\t\teventType,\n\t\trequestType = REQUEST_TYPE_GET,\n\t\tcontentType = CONTENT_TYPE_JSON,\n\t\trequestData = null\n\t) {\n\t\tvar self = this;\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\tvar request = new XMLHttpRequest();\n\n\t\t\trequest.upload.addEventListener('progress', e =>\n\t\t\t\tself.handleLoadProgress(e, progressBar)\n\t\t\t);\n\t\t\trequest.open(requestType, requestURL, true);\n\t\t\trequest.onload = () => {\n\t\t\t\tif (request.status == 200) {\n\t\t\t\t\tlet response = JSON.parse(request['response']);\n\t\t\t\t\tresolve(response);\n\t\t\t\t} else {\n\t\t\t\t\tlet error = JSON.parse(request['response']);\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\t\t\t};\n\t\t\tif (requestType == REQUEST_TYPE_PUT || requestType == REQUEST_TYPE_POST) {\n\t\t\t\tif (eventType === TASK_UPLOAD_FILES)\n\t\t\t\t\trequest.setRequestHeader('fipamo-access-token', self.token);\n\t\t\t\tswitch (contentType) {\n\t\t\t\t\tcase CONTENT_TYPE_JSON:\n\t\t\t\t\t\trequest.setRequestHeader(\n\t\t\t\t\t\t\t'Content-type',\n\t\t\t\t\t\t\t'application/' + contentType\n\t\t\t\t\t\t);\n\t\t\t\t\t\trequest.send(JSON.stringify(requestData));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CONTENT_TYPE_FORM:\n\t\t\t\t\t\trequest.send(requestData);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\trequest.send();\n\t\t\t}\n\t\t});\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleLoadProgress(e, progressBar) {\n\t\tlet percent = Math.ceil((e.loaded / e.total) * 100);\n\t\t//if a progress bar element is present, talk to it\n\t\tif (progressBar != null) {\n\t\t\tprogressBar.style.width = percent + '%';\n\t\t}\n\t}\n}\n\nexport { MaintenanceManager as default };\n","export default class DataUtils {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\n\timgLoad(url) {\n\t\t'use strict';\n\t\t// Create new promise with the Promise() constructor;\n\t\t// This has as its argument a function with two parameters, resolve and reject\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\t// Standard XHR to load an image\n\t\t\tvar request = new XMLHttpRequest();\n\t\t\trequest.open('GET', url);\n\t\t\trequest.responseType = 'blob';\n\t\t\t// When the request loads, check whether it was successful\n\t\t\trequest.onload = function () {\n\t\t\t\tif (request.status === 200) {\n\t\t\t\t\t// If successful, resolve the promise by passing back the request response\n\t\t\t\t\tresolve(request.response);\n\t\t\t\t} else {\n\t\t\t\t\t// If it fails, reject the promise with a error message\n\t\t\t\t\treject(\n\t\t\t\t\t\tnew Error(\n\t\t\t\t\t\t\t\"Image didn't load successfully; error code: \" +\n\t\t\t\t\t\t\t\trequest.status +\n\t\t\t\t\t\t\t\t' ' +\n\t\t\t\t\t\t\t\trequest.statusText\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t};\n\t\t\trequest.onerror = function () {\n\t\t\t\t// Also deal with the case when the entire request fails to begin with\n\t\t\t\t// This is probably a network error, so reject the promise with an appropriate message\n\t\t\t\treject(new Error('There was a network error.'));\n\t\t\t};\n\t\t\t// Send the request\n\t\t\trequest.send();\n\t\t});\n\t}\n\tloadImage(src) {\n\t\t'use strict';\n\t\tlet self = this;\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\t// Get a reference to the body element, and create a new image object\n\t\t\tvar myImage = new Image();\n\t\t\tmyImage.crossOrigin = ''; // or \"anonymous\"\n\t\t\t// Call the function with the URL we want to load, but then chain the\n\t\t\t// promise then() method on to the end of it. This contains two callbacks\n\t\t\tself.imgLoad(src).then(\n\t\t\t\tfunction (response) {\n\t\t\t\t\t// The first runs when the promise resolves, with the request.reponse specified within the resolve() method.\n\t\t\t\t\tvar imageURL = window.URL.createObjectURL(response);\n\t\t\t\t\tresolve(imageURL);\n\t\t\t\t\t//$('background-content').setStyle('background-image', 'url('+imageURL+')') //myImage.src = imageURL;\n\t\t\t\t\t//console.log(imageURL);\n\t\t\t\t\t//body.appendChild(myImage);\n\t\t\t\t\t// The second runs when the promise is rejected, and logs the Error specified with the reject() method.\n\t\t\t\t},\n\t\t\t\tfunction (Error) {\n\t\t\t\t\treject(Error);\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t}\n\n\t/**\n\t * Create a function to convert the serialize and convert the form data to JSON\n\t * @param : $('#form_example');\n\t * @return a JSON Stringify\n\t */\n\tformDataToJSON(form) {\n\t\tlet object = {};\n\t\tlet formData = new FormData(form);\n\t\tformData.forEach((value, key) => {\n\t\t\tif (!object.hasOwnProperty(key)) {\n\t\t\t\tobject[key] = value;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!Array.isArray(object[key])) {\n\t\t\t\tobject[key] = [object[key]];\n\t\t\t}\n\t\t\tobject[key].push(value);\n\t\t});\n\t\t//let json = JSON.stringify(object);\n\t\treturn object;\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","export const AUTH_STATUS = \"getAuthStatus\";\nexport const REQUEST_GOOD = \"requestGood\";\nexport const REQUEST_LAME = \"requestLame\";\nexport const API_REQUEST_GOOD = \"apiUseAuthorized\";\nexport const API_REQUEST_LAME = \"apiUseNotAuthorized\";\nexport const IMG_REQUEST_GOOD = \"imgRequestGood\";\nexport const IMG_REQUEST_LAME = \"imgRequestLame\";\nexport const SETTINGS_LOADED = \"settingsLoaded\";\nexport const POST_IMAGE_ADDED = \"postImageAdded\";\nexport const FEATURE_IMAGE_ADDED = \"featureImageAdded\";\nexport const PAGE_ERROR = \"postError\";\nexport const PAGE_ADDED = \"postAdded\";\nexport const PAGE_UPDATED = \"postUpdated\";\nexport const PAGE_DELETED = \"postImageAdded\";\nexport const PAGES_RENDERED = \"pagesRendered\";\nexport const PAGES_NOT_RENDERED = \"pagesNotRendered\";\nexport const TAG_PAGES_RENDERED = \"tagPagesRendered\";\nexport const TAG_PAGES_NOT_RENDERED = \"tagPagesNotRendered\";\nexport const SETTINGS_UPDATED = \"settingsUpdated\";\nexport const SETTINGS_NOT_UPDATED = \"settingsNotUpdated\";\nexport const MENU_ADD_ITEM = \"menuAddItem\";\nexport const MENU_DELETE_ITEM = \"menuDeleteItem\";\nexport const MENU_UPDATED = \"menuUpdated\";\nexport const AVATAR_UPLOADED = \"avatarUploaded\";\nexport const SITE_BACKGROUND_UPLOADED = \"siteBackgroundUploaded\";\nexport const UPLOAD_PROGRESS = \"uploadProgress\";\nexport const API_PAGE_WRITE = \"writingItDown\";\nexport const API_PAGE_CREATE = \"writingNewEntry\";\nexport const API_PAGE_DELETE = \"erasingPage\";\nexport const API_SETTINGS_WRITE = \"savingSettings\";\nexport const API_BACKUP_CREATE = \"createBackup\";\nexport const API_BACKUP_DOWNLOAD = \"downloadBackup\";\nexport const API_BACKUP_RESTORE = \"downloadBackup\";\nexport const API_IMAGES_UPLOAD = \"uploadProfileImages\";\nexport const API_RENDER_PAGES = \"renderPages\";\nexport const API_REINDEX_PAGES = \"reindexPages\";\nexport const API_INIT = \"blogInit\";\nexport const API_INIT_GOOD = \"blogInitGood\";\nexport const API_INIT_LAME = \"blogInitLame\";\nexport const API_GET_SECRET = \"retrieveSecret\";\nexport const API_RESET_PASS = \"resetPassword\";\nexport const SEND_MAIL = \"sendMail\";\nclass DataEvent {\n //--------------------------\n // methods\n //--------------------------\n //--------------------------\n // event handlers\n //--------------------------\n}\nexport default new DataEvent();\n","import PostIndex from './PostIndex';\nimport SettingsIndex from './SettingsIndex';\nimport NaviIndex from './NavIndex';\nimport Menu from '../ui/Menu';\n\nexport default class DashManager {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.currentDisplay = '';\n\t\tthis.urlPieces = document.URL.split('/');\n\t\tthis.chooseDisplay(this.urlPieces[4], this.urlPieces[5]);\n\t\t//start main menu handler\n\t\tnew Menu();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {}\n\n\tchooseDisplay(section, page) {\n\t\tthis.currentDisplay = '';\n\t\tswitch (section) {\n\t\t\tcase 'page':\n\t\t\t\tthis.currentDisplay = new PostIndex(page);\n\t\t\t\tbreak;\n\t\t\tcase 'settings':\n\t\t\t\tthis.currentDisplay = new SettingsIndex();\n\t\t\t\tbreak;\n\t\t\tcase 'navigation':\n\t\t\t\tthis.currentDisplay = new NaviIndex();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t//just chill\n\t\t\t\tbreak;\n\t\t}\n\t\tthis.start();\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","import PageEditor from \"./PageEditor\";\nexport default class PostIndex {\n //--------------------------\n // constructor\n //--------------------------\n constructor(page) {\n this.currentPage = null;\n this.choosePage(page);\n this.start();\n }\n //--------------------------\n // methods\n //--------------------------\n start() {}\n choosePage(page) {\n this.currentPage = \"\";\n switch (page) {\n case \"edit\":\n case \"add\":\n this.currentPage = new PageEditor();\n break;\n default:\n //just chill\n break;\n }\n }\n //--------------------------\n // event handlers\n //--------------------------\n}\n","//TOOLS\nimport FipamoAdminAPI, {\n\tTASK_PAGE_CREATE,\n\tTASK_PAGE_EDIT,\n\tTASK_PAGE_DELETE\n} from '../../libraries/FipamoAdminAPI';\nimport Maintenance from './MaintenanceManager';\nimport * as DataEvent from '../events/DataEvent';\nimport PageActions from '../actions/PageActions';\nimport * as EditorEvent from '../events/EditorEvent';\n//import TinyDatePicker from 'tiny-date-picker'; TODO: Reactivate for scheduled publishing\nimport TextEditor from '../ui/TextEditor';\nimport Notfications from '../ui/Notifications';\nimport FileManager from '../ui/FileManager';\nconst notify = new Notfications();\nexport default class PostEditor {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tlet self = 'this';\n\t\tthis.admin = new FipamoAdminAPI(null, document.getElementById('notify-progress'));\n\t\tthis.mm = new Maintenance(null, null);\n\t\tthis.urlPieces = document.URL.split('/');\n\t\tthis.post = [];\n\t\tthis.postID = null;\n\t\tthis.postUUID = null;\n\t\tthis.postLayout = null;\n\t\tthis.fm = null;\n\t\tif (document.querySelector('[role=\"file-manager\"]').getAttribute('data-index')) {\n\t\t\tthis.postID = document\n\t\t\t\t.querySelector('[role=\"file-manager\"]')\n\t\t\t\t.getAttribute('data-index');\n\t\t\tthis.postUUID = document\n\t\t\t\t.querySelector('[role=\"file-manager\"]')\n\t\t\t\t.getAttribute('data-uuid');\n\t\t\tthis.postLayout = document\n\t\t\t\t.querySelector('[role=\"file-manager\"]')\n\t\t\t\t.getAttribute('data-layout');\n\t\t}\n\t\tif (document.getElementById('edit')) {\n\t\t\tthis.editor = new TextEditor(\n\t\t\t\tdocument.getElementById('edit'),\n\t\t\t\tdocument.querySelector('[role=\"file-manager\"]').offsetHeight +\n\t\t\t\t\tdocument.querySelector('[role=\"page-meta\"]').offsetHeight +\n\t\t\t\t\tdocument.querySelector('[role=\"text-editor\"]').offsetHeight\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_DELETE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_DELETE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_UPLOAD_POST_IMAGE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_UPLOAD_POST_IMAGE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_UPDATE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_UPDATE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_SAVE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_SAVE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tdocument.getElementById('post-image-upload').addEventListener(\n\t\t\t\t'change',\n\t\t\t\te => {\n\t\t\t\t\tthis.handleImageUpload(e.target.id, e.target.files);\n\t\t\t\t},\n\t\t\t\tfalse\n\t\t\t);\n\t\t\t/*\n\t\t\tTinyDatePicker(document.getElementById('post-date'), {\n\t\t\t\tmode: 'dp-below',\n\t\t\t\tformat() {\n\t\t\t\t\t//return self.dateUtils.getDate('origin', date);\n\t\t\t\t}\n\t\t\t});\n\t\t\t*/\n\n\t\t\tthis.start();\n\t\t}\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\tif (document.querySelector('[role=\"file-drop\"]')) {\n\t\t\t//insert fileManager here\n\t\t\tthis.fm = new FileManager(\n\t\t\t\tdocument.querySelector('[role=\"file-drop\"]'),\n\t\t\t\tdocument.getElementById('page-files-upload'),\n\t\t\t\tdocument.querySelector('[role=\"page-images-list\"]'),\n\t\t\t\tdocument.querySelector('[role=\"page-files-list\"]')\n\t\t\t);\n\t\t\tvar optionButtons = document.querySelectorAll('.post-option-btn');\n\t\t\tfor (var i = 0, length = optionButtons.length; i < length; i++) {\n\t\t\t\toptionButtons[i].addEventListener(\n\t\t\t\t\t'click',\n\t\t\t\t\te => this.handlePostOptions(e),\n\t\t\t\t\tfalse\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandlePostOptions(e) {\n\t\tlet currentOption = null;\n\t\tswitch (e.target.id) {\n\t\t\tcase 'option-page-icon':\n\t\t\tcase 'option-menu-pin':\n\t\t\t\tcurrentOption = document.getElementById('option-menu-pin');\n\t\t\t\tbreak;\n\t\t\tcase 'option-feature-icon':\n\t\t\tcase 'option-feature':\n\t\t\t\tcurrentOption = document.getElementById('option-feature');\n\t\t\t\tbreak;\n\t\t\tcase 'option-published-icon':\n\t\t\tcase 'option-published':\n\t\t\t\tcurrentOption = document.getElementById('option-published');\n\t\t\t\tbreak;\n\t\t}\n\t\tif (currentOption != null) {\n\t\t\tlet active = currentOption.getAttribute('data-active');\n\t\t\tactive == 'false'\n\t\t\t\t? currentOption.setAttribute('data-active', 'true')\n\t\t\t\t: currentOption.setAttribute('data-active', 'false');\n\t\t}\n\t}\n\thandleEditorOptions(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\tswitch (e) {\n\t\t\tcase EditorEvent.EDITOR_SAVE:\n\t\t\tcase EditorEvent.EDITOR_UPDATE:\n\t\t\t\tvar task = '';\n\t\t\t\te === EditorEvent.EDITOR_SAVE\n\t\t\t\t\t? (task = TASK_PAGE_CREATE)\n\t\t\t\t\t: (task = TASK_PAGE_EDIT);\n\t\t\t\tnew PageActions().collectInfo(this.fm.getFileOrder()).then(page => {\n\t\t\t\t\tself.processing = true;\n\t\t\t\t\tnotify.alert('Writing down changes', null);\n\t\t\t\t\tself.admin\n\t\t\t\t\t\t.pageActions(task, page)\n\t\t\t\t\t\t.then(r => {\n\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tr.type === DataEvent.PAGE_ERROR ||\n\t\t\t\t\t\t\t\tr.type === DataEvent.API_REQUEST_LAME\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tnotify.alert(r.message, false);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (r.type === DataEvent.PAGE_UPDATED) {\n\t\t\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t\t\t\twindow.location = '/dashboard/page/edit/' + r.id;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch(err => {\n\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\tcase EditorEvent.EDITOR_DELETE:\n\t\t\t\tif (this.postLayout === 'index') {\n\t\t\t\t\tnotify.alert('Index cannot be deleted', false);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (confirm(\"AYE! You know you're deleting this post, right?\")) {\n\t\t\t\t\tnew PageActions()\n\t\t\t\t\t\t.collectInfo(this.fm.getFileOrder())\n\t\t\t\t\t\t.then(page => {\n\t\t\t\t\t\t\tself.processing = true;\n\t\t\t\t\t\t\tthis.admin\n\t\t\t\t\t\t\t\t.pageActions(TASK_PAGE_DELETE, page)\n\t\t\t\t\t\t\t\t.then(() => {\n\t\t\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\t\t\twindow.location = '/dashboard/pages';\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t.catch(err => {\n\t\t\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch(() => {});\n\t\t\t\t} else {\n\t\t\t\t\t// Do nothing!\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase EditorEvent.EDITOR_UPLOAD_POST_IMAGE:\n\t\t\t\tdocument.getElementById('post-image-upload').click();\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\thandleImageUpload(type, files) {\n\t\tlet self = this;\n\t\tnotify.alert('Uploading Image', null);\n\t\tlet upload = new FormData();\n\t\tupload.enctype = 'multipart/form-data';\n\t\tupload.append('upload_files[]', files[0], files[0].name);\n\t\tthis.mm\n\t\t\t.filesUpload(files[0].type, upload)\n\t\t\t.then(result => {\n\t\t\t\tif (result.message == 'File Uploaded. Great!') {\n\t\t\t\t\tself.editor.notify(\n\t\t\t\t\t\tEditorEvent.EDITOR_UPLOAD_POST_IMAGE,\n\t\t\t\t\t\tresult.filePath\n\t\t\t\t\t);\n\t\t\t\t\tnotify.alert('Image Added to Entry', true);\n\t\t\t\t} else {\n\t\t\t\t\tnotify.alert('Uh oh. Image not added', false);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(() => {\n\t\t\t\tnotify.alert('Uh oh. Image not added', false);\n\t\t\t});\n\t}\n}\n","import StringUtils from '../utils/StringUtils';\nexport default class PostActions {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tcollectInfo(files) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet pageInfo = [];\n\t\t\tlet pageRef = document.querySelector('[role=\"file-manager\"]');\n\t\t\t//process html content for storage\n\t\t\tlet txt = document.createElement('textarea');\n\t\t\ttxt.innerHTML = document.getElementById('highlight-content').innerHTML;\n\t\t\tlet html = txt.value;\n\t\t\thtml = html.replace(/<\\/?span[^>]*>/g, ''); //removes prism styling\n\t\t\thtml = html.replace(/<\\/?br[^>]*>/g, '\\n'); //convert back to encoded line break for storage\n\t\t\t//build data object\n\t\t\tpageInfo = {\n\t\t\t\tid: pageRef.getAttribute('data-index'),\n\t\t\t\tuuid: pageRef.getAttribute('data-uuid'),\n\t\t\t\tlayout: document.getElementById('page-templates').value,\n\t\t\t\tcurrent_title: pageRef.getAttribute('data-slug'),\n\t\t\t\tcontent: html,\n\t\t\t\ttitle: document.getElementById('post-title-text').value,\n\t\t\t\tcreated: document.getElementById('post-date').getAttribute('data-raw'),\n\t\t\t\tslug: new StringUtils().cleanString(\n\t\t\t\t\tdocument.getElementById('post-title-text').value\n\t\t\t\t),\n\t\t\t\ttags: document.getElementById('post-tags').value,\n\t\t\t\tmenu: document\n\t\t\t\t\t.getElementById('option-menu-pin')\n\t\t\t\t\t.getAttribute('data-active'),\n\t\t\t\tfeatured: document\n\t\t\t\t\t.getElementById('option-feature')\n\t\t\t\t\t.getAttribute('data-active'),\n\t\t\t\tpublished: document\n\t\t\t\t\t.getElementById('option-published')\n\t\t\t\t\t.getAttribute('data-active'),\n\t\t\t\tform_token: document.getElementById('form_token').value,\n\t\t\t\timageList: files.images,\n\t\t\t\tfileList: files.files\n\t\t\t};\n\n\t\t\tresolve(pageInfo);\n\t\t});\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","class StringUtils {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tcleanString(string) {\n\t\tvar clean = string\n\t\t\t.replace(/(^\\-+|[^a-zA-Z0-9\\/_| -]+|\\-+$)/g, '')\n\t\t\t.toLowerCase()\n\t\t\t.replace(/[\\/_| -]+/g, '-');\n\t\treturn clean;\n\t}\n\n\tdecodeHTML(string, quote_style) {\n\t\tvar optTemp = 0,\n\t\t\ti = 0,\n\t\t\tnoquotes = false;\n\t\tif (typeof quote_style === 'undefined') {\n\t\t\tquote_style = 2;\n\t\t}\n\t\tstring = string\n\t\t\t.toString()\n\t\t\t.replace(/</g, '<')\n\t\t\t.replace(/>/g, '>');\n\t\tvar OPTS = {\n\t\t\tENT_NOQUOTES: 0,\n\t\t\tENT_HTML_QUOTE_SINGLE: 1,\n\t\t\tENT_HTML_QUOTE_DOUBLE: 2,\n\t\t\tENT_COMPAT: 2,\n\t\t\tENT_QUOTES: 3,\n\t\t\tENT_IGNORE: 4\n\t\t};\n\t\tif (quote_style === 0) {\n\t\t\tnoquotes = true;\n\t\t}\n\t\tif (typeof quote_style !== 'number') {\n\t\t\t// Allow for a single string or an array of string flags\n\t\t\tquote_style = [].concat(quote_style);\n\t\t\tfor (i = 0; i < quote_style.length; i++) {\n\t\t\t\t// Resolve string input to bitwise e.g. 'PATHINFO_EXTENSION' becomes 4\n\t\t\t\tif (OPTS[quote_style[i]] === 0) {\n\t\t\t\t\tnoquotes = true;\n\t\t\t\t} else if (OPTS[quote_style[i]]) {\n\t\t\t\t\toptTemp = optTemp | OPTS[quote_style[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t\tquote_style = optTemp;\n\t\t}\n\t\tif (quote_style & OPTS.ENT_HTML_QUOTE_SINGLE) {\n\t\t\tstring = string.replace(/�*39;/g, \"'\"); // PHP doesn't currently escape if more than one 0, but it should\n\t\t\t// string = string.replace(/'|�*27;/g, \"'\"); // This would also be useful here, but not a part of PHP\n\t\t}\n\t\tif (!noquotes) {\n\t\t\tstring = string.replace(/"/g, '\"');\n\t\t}\n\t\t// Put this in last place to avoid escape being double-decoded\n\t\tstring = string.replace(/&/g, '&');\n\t\treturn string;\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\nexport default StringUtils;\n","export const EDITOR_DELETE = 'editorDelete';\nexport const EDITOR_UPLOAD_POST_IMAGE = 'editorUploadImage';\nexport const EDITOR_SAVE = 'editorSave';\nexport const EDITOR_UPDATE = 'editorUpdate';\n\nclass EditorEvent {\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\nexport default new EditorEvent();\n","import * as DataEvent from '../events/DataEvent';\nimport EventEmitter from '../events/EventEmitter';\nimport * as EditorEvent from '../events/EditorEvent';\nimport Prism from 'prismjs';\nclass TextEditor extends EventEmitter {\n\t/**\n\t * Text Editor UI Component\n\t * @constructor\n\t * @param {object} textEditor - Text area that will edit text\n\t * @param {number} scrollLimit - YPos where editor position will become fixed\n\t */\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor(textEditor, scrollLimit) {\n\t\tsuper();\n\n\t\tdocument\n\t\t\t.querySelector('[role=\"text-editor-control\"]')\n\t\t\t.addEventListener('scroll', e => {\n\t\t\t\tconsole.log('HERE');\n\t\t\t});\n\n\t\tdocument.body.addEventListener('scroll', e => {\n\t\t\tvar fixLimit = scrollLimit;\n\t\t\tconsole.log('POSITION', document.body.scrollTop + ' : ' + fixLimit);\n\t\t\tif (document.body.scrollTop + 5 >= fixLimit) {\n\t\t\t\tdocument\n\t\t\t\t\t.querySelector('[role=\"text-editor-control\"]')\n\t\t\t\t\t.classList.add('control-freeze');\n\t\t\t} else {\n\t\t\t\tdocument\n\t\t\t\t\t.querySelector('[role=\"text-editor-control\"]')\n\t\t\t\t\t.classList.remove('control-freeze');\n\t\t\t}\n\t\t});\n\t\tdocument.getElementById('edit').addEventListener('input', e => {\n\t\t\tlet result_element = document.querySelector('#highlight-content');\n\t\t\tthis.textEditor = textEditor;\n\n\t\t\t// Update code\n\t\t\tlet text = e.target.value;\n\t\t\tresult_element.innerHTML = text\n\t\t\t\t.replace(new RegExp('&', 'g'), '&')\n\t\t\t\t.replace(new RegExp('<', 'g'), '<');\n\t\t\tlet editorHeight = document.getElementById('highlight').offsetHeight;\n\t\t\tdocument.querySelector('[role=\"edit-post-wrapper\"]').style.height =\n\t\t\t\teditorHeight + 'px';\n\t\t\te.target.style.height = editorHeight + 30 + 'px'; //TODO: yeah, it's ugly but it works for now, fix soon\n\t\t\t// Syntax Highlight\n\t\t\tPrism.highlightElement(result_element);\n\t\t});\n\t\tdocument.getElementById('edit').addEventListener('scroll', e => {\n\t\t\t/* Scroll result to scroll coords of event - sync with textarea */\n\t\t\tlet result_element = document.querySelector('#highlight');\n\t\t\t// Get and set x and y\n\t\t\tresult_element.scrollTop = e.scrollTop;\n\t\t\tresult_element.scrollLeft = e.scrollLeft;\n\t\t});\n\t\tdocument.getElementById('edit').dispatchEvent(new Event('input'));\n\t\tthis.setInputs();\n\n\t\t//freeze editor formatting so it doesn't scroll off screen\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tsetInputs() {\n\t\tvar editorButtons = document.querySelectorAll('.editor-button');\n\t\tfor (var i = 0, length = editorButtons.length; i < length; i++) {\n\t\t\teditorButtons[i].addEventListener(\n\t\t\t\t'click',\n\t\t\t\te => this.handleEditorOption(e),\n\t\t\t\tfalse\n\t\t\t);\n\t\t}\n\t}\n\tnotify(type, data) {\n\t\tswitch (type) {\n\t\t\tcase DataEvent.PAGE_UPDATED:\n\t\t\t\tdocument.getElementById('submit-update').classList.add('icon-hide');\n\t\t\t\tdocument.getElementById('submit-good').classList.remove('icon-hide');\n\t\t\t\tdocument.getElementById('edit-update').classList.remove('submit-start');\n\t\t\t\tdocument.getElementById('edit-update').classList.add('submit-cool');\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tdocument\n\t\t\t\t\t\t.getElementById('submit-update')\n\t\t\t\t\t\t.classList.remove('icon-hide');\n\t\t\t\t\tdocument.getElementById('submit-good').classList.add('icon-hide');\n\t\t\t\t\tdocument.getElementById('edit-update').classList.add('submit-start');\n\t\t\t\t\tdocument\n\t\t\t\t\t\t.getElementById('edit-update')\n\t\t\t\t\t\t.classList.remove('submit-cool');\n\t\t\t\t}, 2000);\n\t\t\t\tbreak;\n\t\t\tcase DataEvent.PAGE_ADDED:\n\t\t\t\t// do nothing\n\t\t\t\tbreak;\n\t\t\tcase EditorEvent.EDITOR_UPLOAD_POST_IMAGE: {\n\t\t\t\tlet len = this.textEditor.value.length;\n\t\t\t\tlet start = this.textEditor.selectionStart;\n\t\t\t\tlet end = this.textEditor.selectionEnd;\n\t\t\t\tlet insert = '![image alt text](' + data + ')';\n\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tdocument.getElementById('edit').dispatchEvent(new Event('input'));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleEditorOption(e) {\n\t\te.preventDefault();\n\t\tlet len = this.textEditor.value.length;\n\t\tlet start = this.textEditor.selectionStart;\n\t\tlet end = this.textEditor.selectionEnd;\n\n\t\tlet selectedText = this.textEditor.value.substring(start, end);\n\t\tlet insert = '';\n\t\tswitch (e.target.id) {\n\t\t\tcase 'edit-bold':\n\t\t\t\tinsert = '**' + selectedText + '**';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\n\t\t\t\tbreak;\n\t\t\tcase 'edit-italic':\n\t\t\t\tinsert = '*' + selectedText + '*';\n\t\t\t\t//console.log(this.textEditor);\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-strikethrough':\n\t\t\t\tinsert = '~~' + selectedText + '~~';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-header1':\n\t\t\t\tinsert = '# ' + selectedText + '\\n';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-header2':\n\t\t\t\tinsert = '## ' + selectedText + '\\n';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-header3':\n\t\t\t\tinsert = '### ' + selectedText + '\\n';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-link':\n\t\t\t\t{\n\t\t\t\t\tlet url = prompt(\"Let's get that url, boss\");\n\t\t\t\t\tlet link = url.toLowerCase();\n\t\t\t\t\tinsert = '[' + selectedText + '](' + link + ')';\n\t\t\t\t\tthis.textEditor.value =\n\t\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\t\tinsert +\n\t\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'edit-image':\n\t\t\t\t//this.caretPos = position(this.textEditor).pos;\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_UPLOAD_POST_IMAGE);\n\t\t\t\tbreak;\n\t\t\tcase 'submit-save':\n\t\t\tcase 'edit-save':\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_SAVE);\n\t\t\t\tbreak;\n\t\t\tcase 'submit-update':\n\t\t\tcase 'edit-update':\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_UPDATE);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-delete':\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_DELETE);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t//do stuff\n\t\t\t\tbreak;\n\t\t}\n\t\tdocument.getElementById('edit').dispatchEvent(new Event('input'));\n\t}\n}\nexport default TextEditor;\n","class EventEmitter {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.listeners = new Map();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\taddListener(label, callback) {\n\t\tthis.listeners.has(label) || this.listeners.set(label, []);\n\t\tthis.listeners.get(label).push(callback);\n\t}\n\n\tremoveListener(label, callback) {\n\t\tvar isFunction = function(obj) {\n\t\t\treturn typeof obj == 'function' || false;\n\t\t};\n\n\t\tvar listeners = this.listeners.get(label),\n\t\t\tindex;\n\n\t\tif (listeners && listeners.length) {\n\t\t\tindex = listeners.reduce((i, listener, index) => {\n\t\t\t\treturn isFunction(listener) && listener === callback ? (i = index) : i;\n\t\t\t}, -1);\n\n\t\t\tif (index > -1) {\n\t\t\t\tlisteners.splice(index, 1);\n\t\t\t\tthis.listeners.set(label, listeners);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\temitEvent(label, ...args) {\n\t\tvar listeners = this.listeners.get(label);\n\t\tif (listeners && listeners.length) {\n\t\t\tlisteners.forEach(listener => {\n\t\t\t\tlistener(...args);\n\t\t\t});\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\nexport default EventEmitter;\n","/// <reference lib=\"WebWorker\"/>\n\nvar _self = (typeof window !== 'undefined')\n\t? window // if in browser\n\t: (\n\t\t(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)\n\t\t\t? self // if in worker\n\t\t\t: {} // if in node js\n\t);\n\n/**\n * Prism: Lightweight, robust, elegant syntax highlighting\n *\n * @license MIT <https://opensource.org/licenses/MIT>\n * @author Lea Verou <https://lea.verou.me>\n * @namespace\n * @public\n */\nvar Prism = (function (_self) {\n\n\t// Private helper vars\n\tvar lang = /(?:^|\\s)lang(?:uage)?-([\\w-]+)(?=\\s|$)/i;\n\tvar uniqueId = 0;\n\n\t// The grammar object for plaintext\n\tvar plainTextGrammar = {};\n\n\n\tvar _ = {\n\t\t/**\n\t\t * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the\n\t\t * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load\n\t\t * additional languages or plugins yourself.\n\t\t *\n\t\t * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.\n\t\t *\n\t\t * You obviously have to change this value before the automatic highlighting started. To do this, you can add an\n\t\t * empty Prism object into the global scope before loading the Prism script like this:\n\t\t *\n\t\t * ```js\n\t\t * window.Prism = window.Prism || {};\n\t\t * Prism.manual = true;\n\t\t * // add a new <script> to load Prism's script\n\t\t * ```\n\t\t *\n\t\t * @default false\n\t\t * @type {boolean}\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\tmanual: _self.Prism && _self.Prism.manual,\n\t\t/**\n\t\t * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses\n\t\t * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your\n\t\t * own worker, you don't want it to do this.\n\t\t *\n\t\t * By setting this value to `true`, Prism will not add its own listeners to the worker.\n\t\t *\n\t\t * You obviously have to change this value before Prism executes. To do this, you can add an\n\t\t * empty Prism object into the global scope before loading the Prism script like this:\n\t\t *\n\t\t * ```js\n\t\t * window.Prism = window.Prism || {};\n\t\t * Prism.disableWorkerMessageHandler = true;\n\t\t * // Load Prism's script\n\t\t * ```\n\t\t *\n\t\t * @default false\n\t\t * @type {boolean}\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\tdisableWorkerMessageHandler: _self.Prism && _self.Prism.disableWorkerMessageHandler,\n\n\t\t/**\n\t\t * A namespace for utility methods.\n\t\t *\n\t\t * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may\n\t\t * change or disappear at any time.\n\t\t *\n\t\t * @namespace\n\t\t * @memberof Prism\n\t\t */\n\t\tutil: {\n\t\t\tencode: function encode(tokens) {\n\t\t\t\tif (tokens instanceof Token) {\n\t\t\t\t\treturn new Token(tokens.type, encode(tokens.content), tokens.alias);\n\t\t\t\t} else if (Array.isArray(tokens)) {\n\t\t\t\t\treturn tokens.map(encode);\n\t\t\t\t} else {\n\t\t\t\t\treturn tokens.replace(/&/g, '&').replace(/</g, '<').replace(/\\u00a0/g, ' ');\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns the name of the type of the given value.\n\t\t\t *\n\t\t\t * @param {any} o\n\t\t\t * @returns {string}\n\t\t\t * @example\n\t\t\t * type(null) === 'Null'\n\t\t\t * type(undefined) === 'Undefined'\n\t\t\t * type(123) === 'Number'\n\t\t\t * type('foo') === 'String'\n\t\t\t * type(true) === 'Boolean'\n\t\t\t * type([1, 2]) === 'Array'\n\t\t\t * type({}) === 'Object'\n\t\t\t * type(String) === 'Function'\n\t\t\t * type(/abc+/) === 'RegExp'\n\t\t\t */\n\t\t\ttype: function (o) {\n\t\t\t\treturn Object.prototype.toString.call(o).slice(8, -1);\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns a unique number for the given object. Later calls will still return the same number.\n\t\t\t *\n\t\t\t * @param {Object} obj\n\t\t\t * @returns {number}\n\t\t\t */\n\t\t\tobjId: function (obj) {\n\t\t\t\tif (!obj['__id']) {\n\t\t\t\t\tObject.defineProperty(obj, '__id', { value: ++uniqueId });\n\t\t\t\t}\n\t\t\t\treturn obj['__id'];\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Creates a deep clone of the given object.\n\t\t\t *\n\t\t\t * The main intended use of this function is to clone language definitions.\n\t\t\t *\n\t\t\t * @param {T} o\n\t\t\t * @param {Record<number, any>} [visited]\n\t\t\t * @returns {T}\n\t\t\t * @template T\n\t\t\t */\n\t\t\tclone: function deepClone(o, visited) {\n\t\t\t\tvisited = visited || {};\n\n\t\t\t\tvar clone; var id;\n\t\t\t\tswitch (_.util.type(o)) {\n\t\t\t\t\tcase 'Object':\n\t\t\t\t\t\tid = _.util.objId(o);\n\t\t\t\t\t\tif (visited[id]) {\n\t\t\t\t\t\t\treturn visited[id];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tclone = /** @type {Record<string, any>} */ ({});\n\t\t\t\t\t\tvisited[id] = clone;\n\n\t\t\t\t\t\tfor (var key in o) {\n\t\t\t\t\t\t\tif (o.hasOwnProperty(key)) {\n\t\t\t\t\t\t\t\tclone[key] = deepClone(o[key], visited);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn /** @type {any} */ (clone);\n\n\t\t\t\t\tcase 'Array':\n\t\t\t\t\t\tid = _.util.objId(o);\n\t\t\t\t\t\tif (visited[id]) {\n\t\t\t\t\t\t\treturn visited[id];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tclone = [];\n\t\t\t\t\t\tvisited[id] = clone;\n\n\t\t\t\t\t\t(/** @type {Array} */(/** @type {any} */(o))).forEach(function (v, i) {\n\t\t\t\t\t\t\tclone[i] = deepClone(v, visited);\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\treturn /** @type {any} */ (clone);\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\treturn o;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.\n\t\t\t *\n\t\t\t * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.\n\t\t\t *\n\t\t\t * @param {Element} element\n\t\t\t * @returns {string}\n\t\t\t */\n\t\t\tgetLanguage: function (element) {\n\t\t\t\twhile (element) {\n\t\t\t\t\tvar m = lang.exec(element.className);\n\t\t\t\t\tif (m) {\n\t\t\t\t\t\treturn m[1].toLowerCase();\n\t\t\t\t\t}\n\t\t\t\t\telement = element.parentElement;\n\t\t\t\t}\n\t\t\t\treturn 'none';\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Sets the Prism `language-xxxx` class of the given element.\n\t\t\t *\n\t\t\t * @param {Element} element\n\t\t\t * @param {string} language\n\t\t\t * @returns {void}\n\t\t\t */\n\t\t\tsetLanguage: function (element, language) {\n\t\t\t\t// remove all `language-xxxx` classes\n\t\t\t\t// (this might leave behind a leading space)\n\t\t\t\telement.className = element.className.replace(RegExp(lang, 'gi'), '');\n\n\t\t\t\t// add the new `language-xxxx` class\n\t\t\t\t// (using `classList` will automatically clean up spaces for us)\n\t\t\t\telement.classList.add('language-' + language);\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns the script element that is currently executing.\n\t\t\t *\n\t\t\t * This does __not__ work for line script element.\n\t\t\t *\n\t\t\t * @returns {HTMLScriptElement | null}\n\t\t\t */\n\t\t\tcurrentScript: function () {\n\t\t\t\tif (typeof document === 'undefined') {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tif ('currentScript' in document && 1 < 2 /* hack to trip TS' flow analysis */) {\n\t\t\t\t\treturn /** @type {any} */ (document.currentScript);\n\t\t\t\t}\n\n\t\t\t\t// IE11 workaround\n\t\t\t\t// we'll get the src of the current script by parsing IE11's error stack trace\n\t\t\t\t// this will not work for inline scripts\n\n\t\t\t\ttry {\n\t\t\t\t\tthrow new Error();\n\t\t\t\t} catch (err) {\n\t\t\t\t\t// Get file src url from stack. Specifically works with the format of stack traces in IE.\n\t\t\t\t\t// A stack will look like this:\n\t\t\t\t\t//\n\t\t\t\t\t// Error\n\t\t\t\t\t// at _.util.currentScript (http://localhost/components/prism-core.js:119:5)\n\t\t\t\t\t// at Global code (http://localhost/components/prism-core.js:606:1)\n\n\t\t\t\t\tvar src = (/at [^(\\r\\n]*\\((.*):[^:]+:[^:]+\\)$/i.exec(err.stack) || [])[1];\n\t\t\t\t\tif (src) {\n\t\t\t\t\t\tvar scripts = document.getElementsByTagName('script');\n\t\t\t\t\t\tfor (var i in scripts) {\n\t\t\t\t\t\t\tif (scripts[i].src == src) {\n\t\t\t\t\t\t\t\treturn scripts[i];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns whether a given class is active for `element`.\n\t\t\t *\n\t\t\t * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated\n\t\t\t * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the\n\t\t\t * given class is just the given class with a `no-` prefix.\n\t\t\t *\n\t\t\t * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is\n\t\t\t * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its\n\t\t\t * ancestors have the given class or the negated version of it, then the default activation will be returned.\n\t\t\t *\n\t\t\t * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated\n\t\t\t * version of it, the class is considered active.\n\t\t\t *\n\t\t\t * @param {Element} element\n\t\t\t * @param {string} className\n\t\t\t * @param {boolean} [defaultActivation=false]\n\t\t\t * @returns {boolean}\n\t\t\t */\n\t\t\tisActive: function (element, className, defaultActivation) {\n\t\t\t\tvar no = 'no-' + className;\n\n\t\t\t\twhile (element) {\n\t\t\t\t\tvar classList = element.classList;\n\t\t\t\t\tif (classList.contains(className)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tif (classList.contains(no)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\telement = element.parentElement;\n\t\t\t\t}\n\t\t\t\treturn !!defaultActivation;\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.\n\t\t *\n\t\t * @namespace\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\tlanguages: {\n\t\t\t/**\n\t\t\t * The grammar for plain, unformatted text.\n\t\t\t */\n\t\t\tplain: plainTextGrammar,\n\t\t\tplaintext: plainTextGrammar,\n\t\t\ttext: plainTextGrammar,\n\t\t\ttxt: plainTextGrammar,\n\n\t\t\t/**\n\t\t\t * Creates a deep copy of the language with the given id and appends the given tokens.\n\t\t\t *\n\t\t\t * If a token in `redef` also appears in the copied language, then the existing token in the copied language\n\t\t\t * will be overwritten at its original position.\n\t\t\t *\n\t\t\t * ## Best practices\n\t\t\t *\n\t\t\t * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)\n\t\t\t * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to\n\t\t\t * understand the language definition because, normally, the order of tokens matters in Prism grammars.\n\t\t\t *\n\t\t\t * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.\n\t\t\t * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.\n\t\t\t *\n\t\t\t * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.\n\t\t\t * @param {Grammar} redef The new tokens to append.\n\t\t\t * @returns {Grammar} The new language created.\n\t\t\t * @public\n\t\t\t * @example\n\t\t\t * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {\n\t\t\t * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token\n\t\t\t * // at its original position\n\t\t\t * 'comment': { ... },\n\t\t\t * // CSS doesn't have a 'color' token, so this token will be appended\n\t\t\t * 'color': /\\b(?:red|green|blue)\\b/\n\t\t\t * });\n\t\t\t */\n\t\t\textend: function (id, redef) {\n\t\t\t\tvar lang = _.util.clone(_.languages[id]);\n\n\t\t\t\tfor (var key in redef) {\n\t\t\t\t\tlang[key] = redef[key];\n\t\t\t\t}\n\n\t\t\t\treturn lang;\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Inserts tokens _before_ another token in a language definition or any other grammar.\n\t\t\t *\n\t\t\t * ## Usage\n\t\t\t *\n\t\t\t * This helper method makes it easy to modify existing languages. For example, the CSS language definition\n\t\t\t * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded\n\t\t\t * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the\n\t\t\t * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do\n\t\t\t * this:\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * Prism.languages.markup.style = {\n\t\t\t * // token\n\t\t\t * };\n\t\t\t * ```\n\t\t\t *\n\t\t\t * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens\n\t\t\t * before existing tokens. For the CSS example above, you would use it like this:\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * Prism.languages.insertBefore('markup', 'cdata', {\n\t\t\t * 'style': {\n\t\t\t * // token\n\t\t\t * }\n\t\t\t * });\n\t\t\t * ```\n\t\t\t *\n\t\t\t * ## Special cases\n\t\t\t *\n\t\t\t * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar\n\t\t\t * will be ignored.\n\t\t\t *\n\t\t\t * This behavior can be used to insert tokens after `before`:\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * Prism.languages.insertBefore('markup', 'comment', {\n\t\t\t * 'comment': Prism.languages.markup.comment,\n\t\t\t * // tokens after 'comment'\n\t\t\t * });\n\t\t\t * ```\n\t\t\t *\n\t\t\t * ## Limitations\n\t\t\t *\n\t\t\t * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object\n\t\t\t * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave\n\t\t\t * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily\n\t\t\t * deleting properties which is necessary to insert at arbitrary positions.\n\t\t\t *\n\t\t\t * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.\n\t\t\t * Instead, it will create a new object and replace all references to the target object with the new one. This\n\t\t\t * can be done without temporarily deleting properties, so the iteration order is well-defined.\n\t\t\t *\n\t\t\t * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if\n\t\t\t * you hold the target object in a variable, then the value of the variable will not change.\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * var oldMarkup = Prism.languages.markup;\n\t\t\t * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });\n\t\t\t *\n\t\t\t * assert(oldMarkup !== Prism.languages.markup);\n\t\t\t * assert(newMarkup === Prism.languages.markup);\n\t\t\t * ```\n\t\t\t *\n\t\t\t * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the\n\t\t\t * object to be modified.\n\t\t\t * @param {string} before The key to insert before.\n\t\t\t * @param {Grammar} insert An object containing the key-value pairs to be inserted.\n\t\t\t * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the\n\t\t\t * object to be modified.\n\t\t\t *\n\t\t\t * Defaults to `Prism.languages`.\n\t\t\t * @returns {Grammar} The new grammar object.\n\t\t\t * @public\n\t\t\t */\n\t\t\tinsertBefore: function (inside, before, insert, root) {\n\t\t\t\troot = root || /** @type {any} */ (_.languages);\n\t\t\t\tvar grammar = root[inside];\n\t\t\t\t/** @type {Grammar} */\n\t\t\t\tvar ret = {};\n\n\t\t\t\tfor (var token in grammar) {\n\t\t\t\t\tif (grammar.hasOwnProperty(token)) {\n\n\t\t\t\t\t\tif (token == before) {\n\t\t\t\t\t\t\tfor (var newToken in insert) {\n\t\t\t\t\t\t\t\tif (insert.hasOwnProperty(newToken)) {\n\t\t\t\t\t\t\t\t\tret[newToken] = insert[newToken];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Do not insert token which also occur in insert. See #1525\n\t\t\t\t\t\tif (!insert.hasOwnProperty(token)) {\n\t\t\t\t\t\t\tret[token] = grammar[token];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tvar old = root[inside];\n\t\t\t\troot[inside] = ret;\n\n\t\t\t\t// Update references in other language definitions\n\t\t\t\t_.languages.DFS(_.languages, function (key, value) {\n\t\t\t\t\tif (value === old && key != inside) {\n\t\t\t\t\t\tthis[key] = ret;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\treturn ret;\n\t\t\t},\n\n\t\t\t// Traverse a language definition with Depth First Search\n\t\t\tDFS: function DFS(o, callback, type, visited) {\n\t\t\t\tvisited = visited || {};\n\n\t\t\t\tvar objId = _.util.objId;\n\n\t\t\t\tfor (var i in o) {\n\t\t\t\t\tif (o.hasOwnProperty(i)) {\n\t\t\t\t\t\tcallback.call(o, i, o[i], type || i);\n\n\t\t\t\t\t\tvar property = o[i];\n\t\t\t\t\t\tvar propertyType = _.util.type(property);\n\n\t\t\t\t\t\tif (propertyType === 'Object' && !visited[objId(property)]) {\n\t\t\t\t\t\t\tvisited[objId(property)] = true;\n\t\t\t\t\t\t\tDFS(property, callback, null, visited);\n\t\t\t\t\t\t} else if (propertyType === 'Array' && !visited[objId(property)]) {\n\t\t\t\t\t\t\tvisited[objId(property)] = true;\n\t\t\t\t\t\t\tDFS(property, callback, i, visited);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tplugins: {},\n\n\t\t/**\n\t\t * This is the most high-level function in Prism’s API.\n\t\t * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on\n\t\t * each one of them.\n\t\t *\n\t\t * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.\n\t\t *\n\t\t * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.\n\t\t * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thighlightAll: function (async, callback) {\n\t\t\t_.highlightAllUnder(document, async, callback);\n\t\t},\n\n\t\t/**\n\t\t * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls\n\t\t * {@link Prism.highlightElement} on each one of them.\n\t\t *\n\t\t * The following hooks will be run:\n\t\t * 1. `before-highlightall`\n\t\t * 2. `before-all-elements-highlight`\n\t\t * 3. All hooks of {@link Prism.highlightElement} for each element.\n\t\t *\n\t\t * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.\n\t\t * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.\n\t\t * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thighlightAllUnder: function (container, async, callback) {\n\t\t\tvar env = {\n\t\t\t\tcallback: callback,\n\t\t\t\tcontainer: container,\n\t\t\t\tselector: 'code[class*=\"language-\"], [class*=\"language-\"] code, code[class*=\"lang-\"], [class*=\"lang-\"] code'\n\t\t\t};\n\n\t\t\t_.hooks.run('before-highlightall', env);\n\n\t\t\tenv.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector));\n\n\t\t\t_.hooks.run('before-all-elements-highlight', env);\n\n\t\t\tfor (var i = 0, element; (element = env.elements[i++]);) {\n\t\t\t\t_.highlightElement(element, async === true, env.callback);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Highlights the code inside a single element.\n\t\t *\n\t\t * The following hooks will be run:\n\t\t * 1. `before-sanity-check`\n\t\t * 2. `before-highlight`\n\t\t * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.\n\t\t * 4. `before-insert`\n\t\t * 5. `after-highlight`\n\t\t * 6. `complete`\n\t\t *\n\t\t * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for\n\t\t * the element's language.\n\t\t *\n\t\t * @param {Element} element The element containing the code.\n\t\t * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.\n\t\t * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers\n\t\t * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is\n\t\t * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).\n\t\t *\n\t\t * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for\n\t\t * asynchronous highlighting to work. You can build your own bundle on the\n\t\t * [Download page](https://prismjs.com/download.html).\n\t\t * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.\n\t\t * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thighlightElement: function (element, async, callback) {\n\t\t\t// Find language\n\t\t\tvar language = _.util.getLanguage(element);\n\t\t\tvar grammar = _.languages[language];\n\n\t\t\t// Set language on the element, if not present\n\t\t\t_.util.setLanguage(element, language);\n\n\t\t\t// Set language on the parent, for styling\n\t\t\tvar parent = element.parentElement;\n\t\t\tif (parent && parent.nodeName.toLowerCase() === 'pre') {\n\t\t\t\t_.util.setLanguage(parent, language);\n\t\t\t}\n\n\t\t\tvar code = element.textContent;\n\n\t\t\tvar env = {\n\t\t\t\telement: element,\n\t\t\t\tlanguage: language,\n\t\t\t\tgrammar: grammar,\n\t\t\t\tcode: code\n\t\t\t};\n\n\t\t\tfunction insertHighlightedCode(highlightedCode) {\n\t\t\t\tenv.highlightedCode = highlightedCode;\n\n\t\t\t\t_.hooks.run('before-insert', env);\n\n\t\t\t\tenv.element.innerHTML = env.highlightedCode;\n\n\t\t\t\t_.hooks.run('after-highlight', env);\n\t\t\t\t_.hooks.run('complete', env);\n\t\t\t\tcallback && callback.call(env.element);\n\t\t\t}\n\n\t\t\t_.hooks.run('before-sanity-check', env);\n\n\t\t\t// plugins may change/add the parent/element\n\t\t\tparent = env.element.parentElement;\n\t\t\tif (parent && parent.nodeName.toLowerCase() === 'pre' && !parent.hasAttribute('tabindex')) {\n\t\t\t\tparent.setAttribute('tabindex', '0');\n\t\t\t}\n\n\t\t\tif (!env.code) {\n\t\t\t\t_.hooks.run('complete', env);\n\t\t\t\tcallback && callback.call(env.element);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t_.hooks.run('before-highlight', env);\n\n\t\t\tif (!env.grammar) {\n\t\t\t\tinsertHighlightedCode(_.util.encode(env.code));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (async && _self.Worker) {\n\t\t\t\tvar worker = new Worker(_.filename);\n\n\t\t\t\tworker.onmessage = function (evt) {\n\t\t\t\t\tinsertHighlightedCode(evt.data);\n\t\t\t\t};\n\n\t\t\t\tworker.postMessage(JSON.stringify({\n\t\t\t\t\tlanguage: env.language,\n\t\t\t\t\tcode: env.code,\n\t\t\t\t\timmediateClose: true\n\t\t\t\t}));\n\t\t\t} else {\n\t\t\t\tinsertHighlightedCode(_.highlight(env.code, env.grammar, env.language));\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Low-level function, only use if you know what you’re doing. It accepts a string of text as input\n\t\t * and the language definitions to use, and returns a string with the HTML produced.\n\t\t *\n\t\t * The following hooks will be run:\n\t\t * 1. `before-tokenize`\n\t\t * 2. `after-tokenize`\n\t\t * 3. `wrap`: On each {@link Token}.\n\t\t *\n\t\t * @param {string} text A string with the code to be highlighted.\n\t\t * @param {Grammar} grammar An object containing the tokens to use.\n\t\t *\n\t\t * Usually a language definition like `Prism.languages.markup`.\n\t\t * @param {string} language The name of the language definition passed to `grammar`.\n\t\t * @returns {string} The highlighted HTML.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t * @example\n\t\t * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');\n\t\t */\n\t\thighlight: function (text, grammar, language) {\n\t\t\tvar env = {\n\t\t\t\tcode: text,\n\t\t\t\tgrammar: grammar,\n\t\t\t\tlanguage: language\n\t\t\t};\n\t\t\t_.hooks.run('before-tokenize', env);\n\t\t\tif (!env.grammar) {\n\t\t\t\tthrow new Error('The language \"' + env.language + '\" has no grammar.');\n\t\t\t}\n\t\t\tenv.tokens = _.tokenize(env.code, env.grammar);\n\t\t\t_.hooks.run('after-tokenize', env);\n\t\t\treturn Token.stringify(_.util.encode(env.tokens), env.language);\n\t\t},\n\n\t\t/**\n\t\t * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input\n\t\t * and the language definitions to use, and returns an array with the tokenized code.\n\t\t *\n\t\t * When the language definition includes nested tokens, the function is called recursively on each of these tokens.\n\t\t *\n\t\t * This method could be useful in other contexts as well, as a very crude parser.\n\t\t *\n\t\t * @param {string} text A string with the code to be highlighted.\n\t\t * @param {Grammar} grammar An object containing the tokens to use.\n\t\t *\n\t\t * Usually a language definition like `Prism.languages.markup`.\n\t\t * @returns {TokenStream} An array of strings and tokens, a token stream.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t * @example\n\t\t * let code = `var foo = 0;`;\n\t\t * let tokens = Prism.tokenize(code, Prism.languages.javascript);\n\t\t * tokens.forEach(token => {\n\t\t * if (token instanceof Prism.Token && token.type === 'number') {\n\t\t * console.log(`Found numeric literal: ${token.content}`);\n\t\t * }\n\t\t * });\n\t\t */\n\t\ttokenize: function (text, grammar) {\n\t\t\tvar rest = grammar.rest;\n\t\t\tif (rest) {\n\t\t\t\tfor (var token in rest) {\n\t\t\t\t\tgrammar[token] = rest[token];\n\t\t\t\t}\n\n\t\t\t\tdelete grammar.rest;\n\t\t\t}\n\n\t\t\tvar tokenList = new LinkedList();\n\t\t\taddAfter(tokenList, tokenList.head, text);\n\n\t\t\tmatchGrammar(text, tokenList, grammar, tokenList.head, 0);\n\n\t\t\treturn toArray(tokenList);\n\t\t},\n\n\t\t/**\n\t\t * @namespace\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thooks: {\n\t\t\tall: {},\n\n\t\t\t/**\n\t\t\t * Adds the given callback to the list of callbacks for the given hook.\n\t\t\t *\n\t\t\t * The callback will be invoked when the hook it is registered for is run.\n\t\t\t * Hooks are usually directly run by a highlight function but you can also run hooks yourself.\n\t\t\t *\n\t\t\t * One callback function can be registered to multiple hooks and the same hook multiple times.\n\t\t\t *\n\t\t\t * @param {string} name The name of the hook.\n\t\t\t * @param {HookCallback} callback The callback function which is given environment variables.\n\t\t\t * @public\n\t\t\t */\n\t\t\tadd: function (name, callback) {\n\t\t\t\tvar hooks = _.hooks.all;\n\n\t\t\t\thooks[name] = hooks[name] || [];\n\n\t\t\t\thooks[name].push(callback);\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Runs a hook invoking all registered callbacks with the given environment variables.\n\t\t\t *\n\t\t\t * Callbacks will be invoked synchronously and in the order in which they were registered.\n\t\t\t *\n\t\t\t * @param {string} name The name of the hook.\n\t\t\t * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.\n\t\t\t * @public\n\t\t\t */\n\t\t\trun: function (name, env) {\n\t\t\t\tvar callbacks = _.hooks.all[name];\n\n\t\t\t\tif (!callbacks || !callbacks.length) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tfor (var i = 0, callback; (callback = callbacks[i++]);) {\n\t\t\t\t\tcallback(env);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tToken: Token\n\t};\n\t_self.Prism = _;\n\n\n\t// Typescript note:\n\t// The following can be used to import the Token type in JSDoc:\n\t//\n\t// @typedef {InstanceType<import(\"./prism-core\")[\"Token\"]>} Token\n\n\t/**\n\t * Creates a new token.\n\t *\n\t * @param {string} type See {@link Token#type type}\n\t * @param {string | TokenStream} content See {@link Token#content content}\n\t * @param {string|string[]} [alias] The alias(es) of the token.\n\t * @param {string} [matchedStr=\"\"] A copy of the full string this token was created from.\n\t * @class\n\t * @global\n\t * @public\n\t */\n\tfunction Token(type, content, alias, matchedStr) {\n\t\t/**\n\t\t * The type of the token.\n\t\t *\n\t\t * This is usually the key of a pattern in a {@link Grammar}.\n\t\t *\n\t\t * @type {string}\n\t\t * @see GrammarToken\n\t\t * @public\n\t\t */\n\t\tthis.type = type;\n\t\t/**\n\t\t * The strings or tokens contained by this token.\n\t\t *\n\t\t * This will be a token stream if the pattern matched also defined an `inside` grammar.\n\t\t *\n\t\t * @type {string | TokenStream}\n\t\t * @public\n\t\t */\n\t\tthis.content = content;\n\t\t/**\n\t\t * The alias(es) of the token.\n\t\t *\n\t\t * @type {string|string[]}\n\t\t * @see GrammarToken\n\t\t * @public\n\t\t */\n\t\tthis.alias = alias;\n\t\t// Copy of the full string this token was created from\n\t\tthis.length = (matchedStr || '').length | 0;\n\t}\n\n\t/**\n\t * A token stream is an array of strings and {@link Token Token} objects.\n\t *\n\t * Token streams have to fulfill a few properties that are assumed by most functions (mostly internal ones) that process\n\t * them.\n\t *\n\t * 1. No adjacent strings.\n\t * 2. No empty strings.\n\t *\n\t * The only exception here is the token stream that only contains the empty string and nothing else.\n\t *\n\t * @typedef {Array<string | Token>} TokenStream\n\t * @global\n\t * @public\n\t */\n\n\t/**\n\t * Converts the given token or token stream to an HTML representation.\n\t *\n\t * The following hooks will be run:\n\t * 1. `wrap`: On each {@link Token}.\n\t *\n\t * @param {string | Token | TokenStream} o The token or token stream to be converted.\n\t * @param {string} language The name of current language.\n\t * @returns {string} The HTML representation of the token or token stream.\n\t * @memberof Token\n\t * @static\n\t */\n\tToken.stringify = function stringify(o, language) {\n\t\tif (typeof o == 'string') {\n\t\t\treturn o;\n\t\t}\n\t\tif (Array.isArray(o)) {\n\t\t\tvar s = '';\n\t\t\to.forEach(function (e) {\n\t\t\t\ts += stringify(e, language);\n\t\t\t});\n\t\t\treturn s;\n\t\t}\n\n\t\tvar env = {\n\t\t\ttype: o.type,\n\t\t\tcontent: stringify(o.content, language),\n\t\t\ttag: 'span',\n\t\t\tclasses: ['token', o.type],\n\t\t\tattributes: {},\n\t\t\tlanguage: language\n\t\t};\n\n\t\tvar aliases = o.alias;\n\t\tif (aliases) {\n\t\t\tif (Array.isArray(aliases)) {\n\t\t\t\tArray.prototype.push.apply(env.classes, aliases);\n\t\t\t} else {\n\t\t\t\tenv.classes.push(aliases);\n\t\t\t}\n\t\t}\n\n\t\t_.hooks.run('wrap', env);\n\n\t\tvar attributes = '';\n\t\tfor (var name in env.attributes) {\n\t\t\tattributes += ' ' + name + '=\"' + (env.attributes[name] || '').replace(/\"/g, '"') + '\"';\n\t\t}\n\n\t\treturn '<' + env.tag + ' class=\"' + env.classes.join(' ') + '\"' + attributes + '>' + env.content + '</' + env.tag + '>';\n\t};\n\n\t/**\n\t * @param {RegExp} pattern\n\t * @param {number} pos\n\t * @param {string} text\n\t * @param {boolean} lookbehind\n\t * @returns {RegExpExecArray | null}\n\t */\n\tfunction matchPattern(pattern, pos, text, lookbehind) {\n\t\tpattern.lastIndex = pos;\n\t\tvar match = pattern.exec(text);\n\t\tif (match && lookbehind && match[1]) {\n\t\t\t// change the match to remove the text matched by the Prism lookbehind group\n\t\t\tvar lookbehindLength = match[1].length;\n\t\t\tmatch.index += lookbehindLength;\n\t\t\tmatch[0] = match[0].slice(lookbehindLength);\n\t\t}\n\t\treturn match;\n\t}\n\n\t/**\n\t * @param {string} text\n\t * @param {LinkedList<string | Token>} tokenList\n\t * @param {any} grammar\n\t * @param {LinkedListNode<string | Token>} startNode\n\t * @param {number} startPos\n\t * @param {RematchOptions} [rematch]\n\t * @returns {void}\n\t * @private\n\t *\n\t * @typedef RematchOptions\n\t * @property {string} cause\n\t * @property {number} reach\n\t */\n\tfunction matchGrammar(text, tokenList, grammar, startNode, startPos, rematch) {\n\t\tfor (var token in grammar) {\n\t\t\tif (!grammar.hasOwnProperty(token) || !grammar[token]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tvar patterns = grammar[token];\n\t\t\tpatterns = Array.isArray(patterns) ? patterns : [patterns];\n\n\t\t\tfor (var j = 0; j < patterns.length; ++j) {\n\t\t\t\tif (rematch && rematch.cause == token + ',' + j) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tvar patternObj = patterns[j];\n\t\t\t\tvar inside = patternObj.inside;\n\t\t\t\tvar lookbehind = !!patternObj.lookbehind;\n\t\t\t\tvar greedy = !!patternObj.greedy;\n\t\t\t\tvar alias = patternObj.alias;\n\n\t\t\t\tif (greedy && !patternObj.pattern.global) {\n\t\t\t\t\t// Without the global flag, lastIndex won't work\n\t\t\t\t\tvar flags = patternObj.pattern.toString().match(/[imsuy]*$/)[0];\n\t\t\t\t\tpatternObj.pattern = RegExp(patternObj.pattern.source, flags + 'g');\n\t\t\t\t}\n\n\t\t\t\t/** @type {RegExp} */\n\t\t\t\tvar pattern = patternObj.pattern || patternObj;\n\n\t\t\t\tfor ( // iterate the token list and keep track of the current token/string position\n\t\t\t\t\tvar currentNode = startNode.next, pos = startPos;\n\t\t\t\t\tcurrentNode !== tokenList.tail;\n\t\t\t\t\tpos += currentNode.value.length, currentNode = currentNode.next\n\t\t\t\t) {\n\n\t\t\t\t\tif (rematch && pos >= rematch.reach) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar str = currentNode.value;\n\n\t\t\t\t\tif (tokenList.length > text.length) {\n\t\t\t\t\t\t// Something went terribly wrong, ABORT, ABORT!\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (str instanceof Token) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar removeCount = 1; // this is the to parameter of removeBetween\n\t\t\t\t\tvar match;\n\n\t\t\t\t\tif (greedy) {\n\t\t\t\t\t\tmatch = matchPattern(pattern, pos, text, lookbehind);\n\t\t\t\t\t\tif (!match || match.index >= text.length) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar from = match.index;\n\t\t\t\t\t\tvar to = match.index + match[0].length;\n\t\t\t\t\t\tvar p = pos;\n\n\t\t\t\t\t\t// find the node that contains the match\n\t\t\t\t\t\tp += currentNode.value.length;\n\t\t\t\t\t\twhile (from >= p) {\n\t\t\t\t\t\t\tcurrentNode = currentNode.next;\n\t\t\t\t\t\t\tp += currentNode.value.length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// adjust pos (and p)\n\t\t\t\t\t\tp -= currentNode.value.length;\n\t\t\t\t\t\tpos = p;\n\n\t\t\t\t\t\t// the current node is a Token, then the match starts inside another Token, which is invalid\n\t\t\t\t\t\tif (currentNode.value instanceof Token) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// find the last node which is affected by this match\n\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\tvar k = currentNode;\n\t\t\t\t\t\t\tk !== tokenList.tail && (p < to || typeof k.value === 'string');\n\t\t\t\t\t\t\tk = k.next\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tremoveCount++;\n\t\t\t\t\t\t\tp += k.value.length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tremoveCount--;\n\n\t\t\t\t\t\t// replace with the new match\n\t\t\t\t\t\tstr = text.slice(pos, p);\n\t\t\t\t\t\tmatch.index -= pos;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmatch = matchPattern(pattern, 0, str, lookbehind);\n\t\t\t\t\t\tif (!match) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// eslint-disable-next-line no-redeclare\n\t\t\t\t\tvar from = match.index;\n\t\t\t\t\tvar matchStr = match[0];\n\t\t\t\t\tvar before = str.slice(0, from);\n\t\t\t\t\tvar after = str.slice(from + matchStr.length);\n\n\t\t\t\t\tvar reach = pos + str.length;\n\t\t\t\t\tif (rematch && reach > rematch.reach) {\n\t\t\t\t\t\trematch.reach = reach;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar removeFrom = currentNode.prev;\n\n\t\t\t\t\tif (before) {\n\t\t\t\t\t\tremoveFrom = addAfter(tokenList, removeFrom, before);\n\t\t\t\t\t\tpos += before.length;\n\t\t\t\t\t}\n\n\t\t\t\t\tremoveRange(tokenList, removeFrom, removeCount);\n\n\t\t\t\t\tvar wrapped = new Token(token, inside ? _.tokenize(matchStr, inside) : matchStr, alias, matchStr);\n\t\t\t\t\tcurrentNode = addAfter(tokenList, removeFrom, wrapped);\n\n\t\t\t\t\tif (after) {\n\t\t\t\t\t\taddAfter(tokenList, currentNode, after);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (removeCount > 1) {\n\t\t\t\t\t\t// at least one Token object was removed, so we have to do some rematching\n\t\t\t\t\t\t// this can only happen if the current pattern is greedy\n\n\t\t\t\t\t\t/** @type {RematchOptions} */\n\t\t\t\t\t\tvar nestedRematch = {\n\t\t\t\t\t\t\tcause: token + ',' + j,\n\t\t\t\t\t\t\treach: reach\n\t\t\t\t\t\t};\n\t\t\t\t\t\tmatchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch);\n\n\t\t\t\t\t\t// the reach might have been extended because of the rematching\n\t\t\t\t\t\tif (rematch && nestedRematch.reach > rematch.reach) {\n\t\t\t\t\t\t\trematch.reach = nestedRematch.reach;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @typedef LinkedListNode\n\t * @property {T} value\n\t * @property {LinkedListNode<T> | null} prev The previous node.\n\t * @property {LinkedListNode<T> | null} next The next node.\n\t * @template T\n\t * @private\n\t */\n\n\t/**\n\t * @template T\n\t * @private\n\t */\n\tfunction LinkedList() {\n\t\t/** @type {LinkedListNode<T>} */\n\t\tvar head = { value: null, prev: null, next: null };\n\t\t/** @type {LinkedListNode<T>} */\n\t\tvar tail = { value: null, prev: head, next: null };\n\t\thead.next = tail;\n\n\t\t/** @type {LinkedListNode<T>} */\n\t\tthis.head = head;\n\t\t/** @type {LinkedListNode<T>} */\n\t\tthis.tail = tail;\n\t\tthis.length = 0;\n\t}\n\n\t/**\n\t * Adds a new node with the given value to the list.\n\t *\n\t * @param {LinkedList<T>} list\n\t * @param {LinkedListNode<T>} node\n\t * @param {T} value\n\t * @returns {LinkedListNode<T>} The added node.\n\t * @template T\n\t */\n\tfunction addAfter(list, node, value) {\n\t\t// assumes that node != list.tail && values.length >= 0\n\t\tvar next = node.next;\n\n\t\tvar newNode = { value: value, prev: node, next: next };\n\t\tnode.next = newNode;\n\t\tnext.prev = newNode;\n\t\tlist.length++;\n\n\t\treturn newNode;\n\t}\n\t/**\n\t * Removes `count` nodes after the given node. The given node will not be removed.\n\t *\n\t * @param {LinkedList<T>} list\n\t * @param {LinkedListNode<T>} node\n\t * @param {number} count\n\t * @template T\n\t */\n\tfunction removeRange(list, node, count) {\n\t\tvar next = node.next;\n\t\tfor (var i = 0; i < count && next !== list.tail; i++) {\n\t\t\tnext = next.next;\n\t\t}\n\t\tnode.next = next;\n\t\tnext.prev = node;\n\t\tlist.length -= i;\n\t}\n\t/**\n\t * @param {LinkedList<T>} list\n\t * @returns {T[]}\n\t * @template T\n\t */\n\tfunction toArray(list) {\n\t\tvar array = [];\n\t\tvar node = list.head.next;\n\t\twhile (node !== list.tail) {\n\t\t\tarray.push(node.value);\n\t\t\tnode = node.next;\n\t\t}\n\t\treturn array;\n\t}\n\n\n\tif (!_self.document) {\n\t\tif (!_self.addEventListener) {\n\t\t\t// in Node.js\n\t\t\treturn _;\n\t\t}\n\n\t\tif (!_.disableWorkerMessageHandler) {\n\t\t\t// In worker\n\t\t\t_self.addEventListener('message', function (evt) {\n\t\t\t\tvar message = JSON.parse(evt.data);\n\t\t\t\tvar lang = message.language;\n\t\t\t\tvar code = message.code;\n\t\t\t\tvar immediateClose = message.immediateClose;\n\n\t\t\t\t_self.postMessage(_.highlight(code, _.languages[lang], lang));\n\t\t\t\tif (immediateClose) {\n\t\t\t\t\t_self.close();\n\t\t\t\t}\n\t\t\t}, false);\n\t\t}\n\n\t\treturn _;\n\t}\n\n\t// Get current script and highlight\n\tvar script = _.util.currentScript();\n\n\tif (script) {\n\t\t_.filename = script.src;\n\n\t\tif (script.hasAttribute('data-manual')) {\n\t\t\t_.manual = true;\n\t\t}\n\t}\n\n\tfunction highlightAutomaticallyCallback() {\n\t\tif (!_.manual) {\n\t\t\t_.highlightAll();\n\t\t}\n\t}\n\n\tif (!_.manual) {\n\t\t// If the document state is \"loading\", then we'll use DOMContentLoaded.\n\t\t// If the document state is \"interactive\" and the prism.js script is deferred, then we'll also use the\n\t\t// DOMContentLoaded event because there might be some plugins or languages which have also been deferred and they\n\t\t// might take longer one animation frame to execute which can create a race condition where only some plugins have\n\t\t// been loaded when Prism.highlightAll() is executed, depending on how fast resources are loaded.\n\t\t// See https://github.com/PrismJS/prism/issues/2102\n\t\tvar readyState = document.readyState;\n\t\tif (readyState === 'loading' || readyState === 'interactive' && script && script.defer) {\n\t\t\tdocument.addEventListener('DOMContentLoaded', highlightAutomaticallyCallback);\n\t\t} else {\n\t\t\tif (window.requestAnimationFrame) {\n\t\t\t\twindow.requestAnimationFrame(highlightAutomaticallyCallback);\n\t\t\t} else {\n\t\t\t\twindow.setTimeout(highlightAutomaticallyCallback, 16);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn _;\n\n}(_self));\n\nif (typeof module !== 'undefined' && module.exports) {\n\tmodule.exports = Prism;\n}\n\n// hack for components to work correctly in node.js\nif (typeof global !== 'undefined') {\n\tglobal.Prism = Prism;\n}\n\n// some additional documentation/types\n\n/**\n * The expansion of a simple `RegExp` literal to support additional properties.\n *\n * @typedef GrammarToken\n * @property {RegExp} pattern The regular expression of the token.\n * @property {boolean} [lookbehind=false] If `true`, then the first capturing group of `pattern` will (effectively)\n * behave as a lookbehind group meaning that the captured text will not be part of the matched text of the new token.\n * @property {boolean} [greedy=false] Whether the token is greedy.\n * @property {string|string[]} [alias] An optional alias or list of aliases.\n * @property {Grammar} [inside] The nested grammar of this token.\n *\n * The `inside` grammar will be used to tokenize the text value of each token of this kind.\n *\n * This can be used to make nested and even recursive language definitions.\n *\n * Note: This can cause infinite recursion. Be careful when you embed different languages or even the same language into\n * each another.\n * @global\n * @public\n */\n\n/**\n * @typedef Grammar\n * @type {Object<string, RegExp | GrammarToken | Array<RegExp | GrammarToken>>}\n * @property {Grammar} [rest] An optional grammar object that will be appended to this grammar.\n * @global\n * @public\n */\n\n/**\n * A function which will invoked after an element was successfully highlighted.\n *\n * @callback HighlightCallback\n * @param {Element} element The element successfully highlighted.\n * @returns {void}\n * @global\n * @public\n */\n\n/**\n * @callback HookCallback\n * @param {Object<string, any>} env The environment variables of the hook.\n * @returns {void}\n * @global\n * @public\n */\n","Prism.languages.markup = {\n\t'comment': {\n\t\tpattern: /<!--(?:(?!<!--)[\\s\\S])*?-->/,\n\t\tgreedy: true\n\t},\n\t'prolog': {\n\t\tpattern: /<\\?[\\s\\S]+?\\?>/,\n\t\tgreedy: true\n\t},\n\t'doctype': {\n\t\t// https://www.w3.org/TR/xml/#NT-doctypedecl\n\t\tpattern: /<!DOCTYPE(?:[^>\"'[\\]]|\"[^\"]*\"|'[^']*')+(?:\\[(?:[^<\"'\\]]|\"[^\"]*\"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\\]\\s*)?>/i,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'internal-subset': {\n\t\t\t\tpattern: /(^[^\\[]*\\[)[\\s\\S]+(?=\\]>$)/,\n\t\t\t\tlookbehind: true,\n\t\t\t\tgreedy: true,\n\t\t\t\tinside: null // see below\n\t\t\t},\n\t\t\t'string': {\n\t\t\t\tpattern: /\"[^\"]*\"|'[^']*'/,\n\t\t\t\tgreedy: true\n\t\t\t},\n\t\t\t'punctuation': /^<!|>$|[[\\]]/,\n\t\t\t'doctype-tag': /^DOCTYPE/i,\n\t\t\t'name': /[^\\s<>'\"]+/\n\t\t}\n\t},\n\t'cdata': {\n\t\tpattern: /<!\\[CDATA\\[[\\s\\S]*?\\]\\]>/i,\n\t\tgreedy: true\n\t},\n\t'tag': {\n\t\tpattern: /<\\/?(?!\\d)[^\\s>\\/=$<%]+(?:\\s(?:\\s*[^\\s>\\/=]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))|(?=[\\s/>])))+)?\\s*\\/?>/,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'tag': {\n\t\t\t\tpattern: /^<\\/?[^\\s>\\/]+/,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': /^<\\/?/,\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t},\n\t\t\t'special-attr': [],\n\t\t\t'attr-value': {\n\t\t\t\tpattern: /=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+)/,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpattern: /^=/,\n\t\t\t\t\t\t\talias: 'attr-equals'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpattern: /^(\\s*)[\"']|[\"']$/,\n\t\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t},\n\t\t\t'punctuation': /\\/?>/,\n\t\t\t'attr-name': {\n\t\t\t\tpattern: /[^\\s>\\/]+/,\n\t\t\t\tinside: {\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t},\n\t'entity': [\n\t\t{\n\t\t\tpattern: /&[\\da-z]{1,8};/i,\n\t\t\talias: 'named-entity'\n\t\t},\n\t\t/&#x?[\\da-f]{1,8};/i\n\t]\n};\n\nPrism.languages.markup['tag'].inside['attr-value'].inside['entity'] =\n\tPrism.languages.markup['entity'];\nPrism.languages.markup['doctype'].inside['internal-subset'].inside = Prism.languages.markup;\n\n// Plugin to make entity title show the real entity, idea by Roman Komarov\nPrism.hooks.add('wrap', function (env) {\n\n\tif (env.type === 'entity') {\n\t\tenv.attributes['title'] = env.content.replace(/&/, '&');\n\t}\n});\n\nObject.defineProperty(Prism.languages.markup.tag, 'addInlined', {\n\t/**\n\t * Adds an inlined language to markup.\n\t *\n\t * An example of an inlined language is CSS with `<style>` tags.\n\t *\n\t * @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as\n\t * case insensitive.\n\t * @param {string} lang The language key.\n\t * @example\n\t * addInlined('style', 'css');\n\t */\n\tvalue: function addInlined(tagName, lang) {\n\t\tvar includedCdataInside = {};\n\t\tincludedCdataInside['language-' + lang] = {\n\t\t\tpattern: /(^<!\\[CDATA\\[)[\\s\\S]+?(?=\\]\\]>$)/i,\n\t\t\tlookbehind: true,\n\t\t\tinside: Prism.languages[lang]\n\t\t};\n\t\tincludedCdataInside['cdata'] = /^<!\\[CDATA\\[|\\]\\]>$/i;\n\n\t\tvar inside = {\n\t\t\t'included-cdata': {\n\t\t\t\tpattern: /<!\\[CDATA\\[[\\s\\S]*?\\]\\]>/i,\n\t\t\t\tinside: includedCdataInside\n\t\t\t}\n\t\t};\n\t\tinside['language-' + lang] = {\n\t\t\tpattern: /[\\s\\S]+/,\n\t\t\tinside: Prism.languages[lang]\n\t\t};\n\n\t\tvar def = {};\n\t\tdef[tagName] = {\n\t\t\tpattern: RegExp(/(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)/.source.replace(/__/g, function () { return tagName; }), 'i'),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: inside\n\t\t};\n\n\t\tPrism.languages.insertBefore('markup', 'cdata', def);\n\t}\n});\nObject.defineProperty(Prism.languages.markup.tag, 'addAttribute', {\n\t/**\n\t * Adds an pattern to highlight languages embedded in HTML attributes.\n\t *\n\t * An example of an inlined language is CSS with `style` attributes.\n\t *\n\t * @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as\n\t * case insensitive.\n\t * @param {string} lang The language key.\n\t * @example\n\t * addAttribute('style', 'css');\n\t */\n\tvalue: function (attrName, lang) {\n\t\tPrism.languages.markup.tag.inside['special-attr'].push({\n\t\t\tpattern: RegExp(\n\t\t\t\t/(^|[\"'\\s])/.source + '(?:' + attrName + ')' + /\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))/.source,\n\t\t\t\t'i'\n\t\t\t),\n\t\t\tlookbehind: true,\n\t\t\tinside: {\n\t\t\t\t'attr-name': /^[^\\s=]+/,\n\t\t\t\t'attr-value': {\n\t\t\t\t\tpattern: /=[\\s\\S]+/,\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'value': {\n\t\t\t\t\t\t\tpattern: /(^=\\s*([\"']|(?![\"'])))\\S[\\s\\S]*(?=\\2$)/,\n\t\t\t\t\t\t\tlookbehind: true,\n\t\t\t\t\t\t\talias: [lang, 'language-' + lang],\n\t\t\t\t\t\t\tinside: Prism.languages[lang]\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'punctuation': [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpattern: /^=/,\n\t\t\t\t\t\t\t\talias: 'attr-equals'\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t/\"|'/\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n});\n\nPrism.languages.html = Prism.languages.markup;\nPrism.languages.mathml = Prism.languages.markup;\nPrism.languages.svg = Prism.languages.markup;\n\nPrism.languages.xml = Prism.languages.extend('markup', {});\nPrism.languages.ssml = Prism.languages.xml;\nPrism.languages.atom = Prism.languages.xml;\nPrism.languages.rss = Prism.languages.xml;\n","(function (Prism) {\n\n\t// Allow only one line break\n\tvar inner = /(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))/.source;\n\n\t/**\n\t * This function is intended for the creation of the bold or italic pattern.\n\t *\n\t * This also adds a lookbehind group to the given pattern to ensure that the pattern is not backslash-escaped.\n\t *\n\t * _Note:_ Keep in mind that this adds a capturing group.\n\t *\n\t * @param {string} pattern\n\t * @returns {RegExp}\n\t */\n\tfunction createInline(pattern) {\n\t\tpattern = pattern.replace(/<inner>/g, function () { return inner; });\n\t\treturn RegExp(/((?:^|[^\\\\])(?:\\\\{2})*)/.source + '(?:' + pattern + ')');\n\t}\n\n\n\tvar tableCell = /(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+/.source;\n\tvar tableRow = /\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))/.source.replace(/__/g, function () { return tableCell; });\n\tvar tableLine = /\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)/.source;\n\n\n\tPrism.languages.markdown = Prism.languages.extend('markup', {});\n\tPrism.languages.insertBefore('markdown', 'prolog', {\n\t\t'front-matter-block': {\n\t\t\tpattern: /(^(?:\\s*[\\r\\n])?)---(?!.)[\\s\\S]*?[\\r\\n]---(?!.)/,\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'punctuation': /^---|---$/,\n\t\t\t\t'front-matter': {\n\t\t\t\t\tpattern: /\\S+(?:\\s+\\S+)*/,\n\t\t\t\t\talias: ['yaml', 'language-yaml'],\n\t\t\t\t\tinside: Prism.languages.yaml\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t'blockquote': {\n\t\t\t// > ...\n\t\t\tpattern: /^>(?:[\\t ]*>)*/m,\n\t\t\talias: 'punctuation'\n\t\t},\n\t\t'table': {\n\t\t\tpattern: RegExp('^' + tableRow + tableLine + '(?:' + tableRow + ')*', 'm'),\n\t\t\tinside: {\n\t\t\t\t'table-data-rows': {\n\t\t\t\t\tpattern: RegExp('^(' + tableRow + tableLine + ')(?:' + tableRow + ')*$'),\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'table-data': {\n\t\t\t\t\t\t\tpattern: RegExp(tableCell),\n\t\t\t\t\t\t\tinside: Prism.languages.markdown\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'punctuation': /\\|/\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t'table-line': {\n\t\t\t\t\tpattern: RegExp('^(' + tableRow + ')' + tableLine + '$'),\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'punctuation': /\\||:?-{3,}:?/\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t'table-header-row': {\n\t\t\t\t\tpattern: RegExp('^' + tableRow + '$'),\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'table-header': {\n\t\t\t\t\t\t\tpattern: RegExp(tableCell),\n\t\t\t\t\t\t\talias: 'important',\n\t\t\t\t\t\t\tinside: Prism.languages.markdown\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'punctuation': /\\|/\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t'code': [\n\t\t\t{\n\t\t\t\t// Prefixed by 4 spaces or 1 tab and preceded by an empty line\n\t\t\t\tpattern: /((?:^|\\n)[ \\t]*\\n|(?:^|\\r\\n?)[ \\t]*\\r\\n?)(?: {4}|\\t).+(?:(?:\\n|\\r\\n?)(?: {4}|\\t).+)*/,\n\t\t\t\tlookbehind: true,\n\t\t\t\talias: 'keyword'\n\t\t\t},\n\t\t\t{\n\t\t\t\t// ```optional language\n\t\t\t\t// code block\n\t\t\t\t// ```\n\t\t\t\tpattern: /^```[\\s\\S]*?^```$/m,\n\t\t\t\tgreedy: true,\n\t\t\t\tinside: {\n\t\t\t\t\t'code-block': {\n\t\t\t\t\t\tpattern: /^(```.*(?:\\n|\\r\\n?))[\\s\\S]+?(?=(?:\\n|\\r\\n?)^```$)/m,\n\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t},\n\t\t\t\t\t'code-language': {\n\t\t\t\t\t\tpattern: /^(```).+/,\n\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t},\n\t\t\t\t\t'punctuation': /```/\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\t'title': [\n\t\t\t{\n\t\t\t\t// title 1\n\t\t\t\t// =======\n\n\t\t\t\t// title 2\n\t\t\t\t// -------\n\t\t\t\tpattern: /\\S.*(?:\\n|\\r\\n?)(?:==+|--+)(?=[ \\t]*$)/m,\n\t\t\t\talias: 'important',\n\t\t\t\tinside: {\n\t\t\t\t\tpunctuation: /==+$|--+$/\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\t// # title 1\n\t\t\t\t// ###### title 6\n\t\t\t\tpattern: /(^\\s*)#.+/m,\n\t\t\t\tlookbehind: true,\n\t\t\t\talias: 'important',\n\t\t\t\tinside: {\n\t\t\t\t\tpunctuation: /^#+|#+$/\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\t'hr': {\n\t\t\t// ***\n\t\t\t// ---\n\t\t\t// * * *\n\t\t\t// -----------\n\t\t\tpattern: /(^\\s*)([*-])(?:[\\t ]*\\2){2,}(?=\\s*$)/m,\n\t\t\tlookbehind: true,\n\t\t\talias: 'punctuation'\n\t\t},\n\t\t'list': {\n\t\t\t// * item\n\t\t\t// + item\n\t\t\t// - item\n\t\t\t// 1. item\n\t\t\tpattern: /(^\\s*)(?:[*+-]|\\d+\\.)(?=[\\t ].)/m,\n\t\t\tlookbehind: true,\n\t\t\talias: 'punctuation'\n\t\t},\n\t\t'url-reference': {\n\t\t\t// [id]: http://example.com \"Optional title\"\n\t\t\t// [id]: http://example.com 'Optional title'\n\t\t\t// [id]: http://example.com (Optional title)\n\t\t\t// [id]: <http://example.com> \"Optional title\"\n\t\t\tpattern: /!?\\[[^\\]]+\\]:[\\t ]+(?:\\S+|<(?:\\\\.|[^>\\\\])+>)(?:[\\t ]+(?:\"(?:\\\\.|[^\"\\\\])*\"|'(?:\\\\.|[^'\\\\])*'|\\((?:\\\\.|[^)\\\\])*\\)))?/,\n\t\t\tinside: {\n\t\t\t\t'variable': {\n\t\t\t\t\tpattern: /^(!?\\[)[^\\]]+/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t},\n\t\t\t\t'string': /(?:\"(?:\\\\.|[^\"\\\\])*\"|'(?:\\\\.|[^'\\\\])*'|\\((?:\\\\.|[^)\\\\])*\\))$/,\n\t\t\t\t'punctuation': /^[\\[\\]!:]|[<>]/\n\t\t\t},\n\t\t\talias: 'url'\n\t\t},\n\t\t'bold': {\n\t\t\t// **strong**\n\t\t\t// __strong__\n\n\t\t\t// allow one nested instance of italic text using the same delimiter\n\t\t\tpattern: createInline(/\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^..)[\\s\\S]+(?=..$)/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'punctuation': /\\*\\*|__/\n\t\t\t}\n\t\t},\n\t\t'italic': {\n\t\t\t// *em*\n\t\t\t// _em_\n\n\t\t\t// allow one nested instance of bold text using the same delimiter\n\t\t\tpattern: createInline(/\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^.)[\\s\\S]+(?=.$)/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'punctuation': /[*_]/\n\t\t\t}\n\t\t},\n\t\t'strike': {\n\t\t\t// ~~strike through~~\n\t\t\t// ~strike~\n\t\t\t// eslint-disable-next-line regexp/strict\n\t\t\tpattern: createInline(/(~~?)(?:(?!~)<inner>)+\\2/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^~~?)[\\s\\S]+(?=\\1$)/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'punctuation': /~~?/\n\t\t\t}\n\t\t},\n\t\t'code-snippet': {\n\t\t\t// `code`\n\t\t\t// ``code``\n\t\t\tpattern: /(^|[^\\\\`])(?:``[^`\\r\\n]+(?:`[^`\\r\\n]+)*``(?!`)|`[^`\\r\\n]+`(?!`))/,\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\talias: ['code', 'keyword']\n\t\t},\n\t\t'url': {\n\t\t\t// [example](http://example.com \"Optional title\")\n\t\t\t// [example][id]\n\t\t\t// [example] [id]\n\t\t\tpattern: createInline(/!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+\"(?:\\\\.|[^\"\\\\])*\")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'operator': /^!/,\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^\\[)[^\\]]+(?=\\])/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'variable': {\n\t\t\t\t\tpattern: /(^\\][ \\t]?\\[)[^\\]]+(?=\\]$)/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t},\n\t\t\t\t'url': {\n\t\t\t\t\tpattern: /(^\\]\\()[^\\s)]+/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t},\n\t\t\t\t'string': {\n\t\t\t\t\tpattern: /(^[ \\t]+)\"(?:\\\\.|[^\"\\\\])*\"(?=\\)$)/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\t['url', 'bold', 'italic', 'strike'].forEach(function (token) {\n\t\t['url', 'bold', 'italic', 'strike', 'code-snippet'].forEach(function (inside) {\n\t\t\tif (token !== inside) {\n\t\t\t\tPrism.languages.markdown[token].inside.content.inside[inside] = Prism.languages.markdown[inside];\n\t\t\t}\n\t\t});\n\t});\n\n\tPrism.hooks.add('after-tokenize', function (env) {\n\t\tif (env.language !== 'markdown' && env.language !== 'md') {\n\t\t\treturn;\n\t\t}\n\n\t\tfunction walkTokens(tokens) {\n\t\t\tif (!tokens || typeof tokens === 'string') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor (var i = 0, l = tokens.length; i < l; i++) {\n\t\t\t\tvar token = tokens[i];\n\n\t\t\t\tif (token.type !== 'code') {\n\t\t\t\t\twalkTokens(token.content);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * Add the correct `language-xxxx` class to this code block. Keep in mind that the `code-language` token\n\t\t\t\t * is optional. But the grammar is defined so that there is only one case we have to handle:\n\t\t\t\t *\n\t\t\t\t * token.content = [\n\t\t\t\t * <span class=\"punctuation\">```</span>,\n\t\t\t\t * <span class=\"code-language\">xxxx</span>,\n\t\t\t\t * '\\n', // exactly one new lines (\\r or \\n or \\r\\n)\n\t\t\t\t * <span class=\"code-block\">...</span>,\n\t\t\t\t * '\\n', // exactly one new lines again\n\t\t\t\t * <span class=\"punctuation\">```</span>\n\t\t\t\t * ];\n\t\t\t\t */\n\n\t\t\t\tvar codeLang = token.content[1];\n\t\t\t\tvar codeBlock = token.content[3];\n\n\t\t\t\tif (codeLang && codeBlock &&\n\t\t\t\t\tcodeLang.type === 'code-language' && codeBlock.type === 'code-block' &&\n\t\t\t\t\ttypeof codeLang.content === 'string') {\n\n\t\t\t\t\t// this might be a language that Prism does not support\n\n\t\t\t\t\t// do some replacements to support C++, C#, and F#\n\t\t\t\t\tvar lang = codeLang.content.replace(/\\b#/g, 'sharp').replace(/\\b\\+\\+/g, 'pp');\n\t\t\t\t\t// only use the first word\n\t\t\t\t\tlang = (/[a-z][\\w-]*/i.exec(lang) || [''])[0].toLowerCase();\n\t\t\t\t\tvar alias = 'language-' + lang;\n\n\t\t\t\t\t// add alias\n\t\t\t\t\tif (!codeBlock.alias) {\n\t\t\t\t\t\tcodeBlock.alias = [alias];\n\t\t\t\t\t} else if (typeof codeBlock.alias === 'string') {\n\t\t\t\t\t\tcodeBlock.alias = [codeBlock.alias, alias];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcodeBlock.alias.push(alias);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\twalkTokens(env.tokens);\n\t});\n\n\tPrism.hooks.add('wrap', function (env) {\n\t\tif (env.type !== 'code-block') {\n\t\t\treturn;\n\t\t}\n\n\t\tvar codeLang = '';\n\t\tfor (var i = 0, l = env.classes.length; i < l; i++) {\n\t\t\tvar cls = env.classes[i];\n\t\t\tvar match = /language-(.+)/.exec(cls);\n\t\t\tif (match) {\n\t\t\t\tcodeLang = match[1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tvar grammar = Prism.languages[codeLang];\n\n\t\tif (!grammar) {\n\t\t\tif (codeLang && codeLang !== 'none' && Prism.plugins.autoloader) {\n\t\t\t\tvar id = 'md-' + new Date().valueOf() + '-' + Math.floor(Math.random() * 1e16);\n\t\t\t\tenv.attributes['id'] = id;\n\n\t\t\t\tPrism.plugins.autoloader.loadLanguages(codeLang, function () {\n\t\t\t\t\tvar ele = document.getElementById(id);\n\t\t\t\t\tif (ele) {\n\t\t\t\t\t\tele.innerHTML = Prism.highlight(ele.textContent, Prism.languages[codeLang], codeLang);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tenv.content = Prism.highlight(textContent(env.content), grammar, codeLang);\n\t\t}\n\t});\n\n\tvar tagPattern = RegExp(Prism.languages.markup.tag.pattern.source, 'gi');\n\n\t/**\n\t * A list of known entity names.\n\t *\n\t * This will always be incomplete to save space. The current list is the one used by lowdash's unescape function.\n\t *\n\t * @see {@link https://github.com/lodash/lodash/blob/2da024c3b4f9947a48517639de7560457cd4ec6c/unescape.js#L2}\n\t */\n\tvar KNOWN_ENTITY_NAMES = {\n\t\t'amp': '&',\n\t\t'lt': '<',\n\t\t'gt': '>',\n\t\t'quot': '\"',\n\t};\n\n\t// IE 11 doesn't support `String.fromCodePoint`\n\tvar fromCodePoint = String.fromCodePoint || String.fromCharCode;\n\n\t/**\n\t * Returns the text content of a given HTML source code string.\n\t *\n\t * @param {string} html\n\t * @returns {string}\n\t */\n\tfunction textContent(html) {\n\t\t// remove all tags\n\t\tvar text = html.replace(tagPattern, '');\n\n\t\t// decode known entities\n\t\ttext = text.replace(/&(\\w{1,8}|#x?[\\da-f]{1,8});/gi, function (m, code) {\n\t\t\tcode = code.toLowerCase();\n\n\t\t\tif (code[0] === '#') {\n\t\t\t\tvar value;\n\t\t\t\tif (code[1] === 'x') {\n\t\t\t\t\tvalue = parseInt(code.slice(2), 16);\n\t\t\t\t} else {\n\t\t\t\t\tvalue = Number(code.slice(1));\n\t\t\t\t}\n\n\t\t\t\treturn fromCodePoint(value);\n\t\t\t} else {\n\t\t\t\tvar known = KNOWN_ENTITY_NAMES[code];\n\t\t\t\tif (known) {\n\t\t\t\t\treturn known;\n\t\t\t\t}\n\n\t\t\t\t// unable to decode\n\t\t\t\treturn m;\n\t\t\t}\n\t\t});\n\n\t\treturn text;\n\t}\n\n\tPrism.languages.md = Prism.languages.markdown;\n\n}(Prism));\n","import anime from 'animejs/lib/anime.es.js';\nconst notifcation = document.querySelector('[role=\"notify-message\"]');\nconst notify = document.getElementById('notify-message');\nconst responseText = document.querySelector('[role=\"response-text\"]');\nconst notifyText = document.querySelector('[role=\"notify-text\"]');\nconst notifyIcons = document.querySelector('[role=\"notify-icons\"]');\n//const notifyProgress = document.getElementById('notify-progress');\nconst iconGood = document.querySelector('[role=\"notify-good\"]');\nconst iconNotGood = document.querySelector('[role=\"notify-notgood\"]');\nconst iconWorking = document.querySelector('[role=\"notify-working\"]');\n\nexport default class Notfications {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\n\talert(text, status) {\n\t\ticonWorking.style.display = 'none';\n\t\ticonGood.style.display = 'none';\n\t\ticonNotGood.style.display = 'none';\n\n\t\tvar color = '';\n\t\tresponseText.innerHTML = text;\n\t\tif (status !== null) {\n\t\t\tif (status) {\n\t\t\t\tcolor = '#32cd32';\n\t\t\t\ticonWorking.style.display = 'none';\n\t\t\t\ticonGood.style.display = 'block';\n\t\t\t} else {\n\t\t\t\tcolor = '#F64747';\n\t\t\t\ticonWorking.style.display = 'none';\n\t\t\t\ticonNotGood.style.display = 'block';\n\t\t\t}\n\t\t} else {\n\t\t\tcolor = '#200317';\n\t\t\ticonWorking.style.display = 'block';\n\t\t}\n\n\t\tnew anime({\n\t\t\ttargets: document.querySelector('[role=\"top-nav\"]'),\n\t\t\trotateX: '180deg',\n\t\t\teasing: 'easeOutQuint'\n\t\t});\n\n\t\tnew anime({\n\t\t\ttargets: document.querySelector('[role=\"notify\"]'),\n\t\t\trotateX: '10deg',\n\t\t\teasing: 'easeOutQuint',\n\t\t\tcomplete: () => {\n\t\t\t\tnew anime({\n\t\t\t\t\ttargets: notifyIcons,\n\t\t\t\t\twidth: 39,\n\t\t\t\t\topacity: 1,\n\t\t\t\t\teasing: 'easeInQuint',\n\t\t\t\t\tduration: 300\n\t\t\t\t});\n\n\t\t\t\tnew anime({\n\t\t\t\t\ttargets: notifyText,\n\t\t\t\t\tbackgroundColor: color,\n\t\t\t\t\topacity: 1,\n\t\t\t\t\teasing: 'easeInOutQuad',\n\t\t\t\t\tduration: 400,\n\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\tif (status !== null) {\n\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\ttargets: notifyText,\n\t\t\t\t\t\t\t\t\tbackgroundColor: color,\n\t\t\t\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuad',\n\t\t\t\t\t\t\t\t\tduration: 400\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\ttargets: notifyIcons,\n\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\t\t\t\teasing: 'easeOutQuint',\n\t\t\t\t\t\t\t\t\tduration: 350\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tnew anime({\n\t\t\t\t\t\t\t\t\ttargets: document.querySelector('[role=\"top-nav\"]'),\n\t\t\t\t\t\t\t\t\trotateX: '0deg',\n\t\t\t\t\t\t\t\t\teasing: 'easeOutQuint'\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tnew anime({\n\t\t\t\t\t\t\t\t\ttargets: document.querySelector('[role=\"notify\"]'),\n\t\t\t\t\t\t\t\t\trotateX: '180deg',\n\t\t\t\t\t\t\t\t\teasing: 'easeOutQuint'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 2500);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","/*\n * anime.js v3.2.1\n * (c) 2020 Julian Garnier\n * Released under the MIT license\n * animejs.com\n */\n\n// Defaults\n\nvar defaultInstanceSettings = {\n update: null,\n begin: null,\n loopBegin: null,\n changeBegin: null,\n change: null,\n changeComplete: null,\n loopComplete: null,\n complete: null,\n loop: 1,\n direction: 'normal',\n autoplay: true,\n timelineOffset: 0\n};\n\nvar defaultTweenSettings = {\n duration: 1000,\n delay: 0,\n endDelay: 0,\n easing: 'easeOutElastic(1, .5)',\n round: 0\n};\n\nvar validTransforms = ['translateX', 'translateY', 'translateZ', 'rotate', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'perspective', 'matrix', 'matrix3d'];\n\n// Caching\n\nvar cache = {\n CSS: {},\n springs: {}\n};\n\n// Utils\n\nfunction minMax(val, min, max) {\n return Math.min(Math.max(val, min), max);\n}\n\nfunction stringContains(str, text) {\n return str.indexOf(text) > -1;\n}\n\nfunction applyArguments(func, args) {\n return func.apply(null, args);\n}\n\nvar is = {\n arr: function (a) { return Array.isArray(a); },\n obj: function (a) { return stringContains(Object.prototype.toString.call(a), 'Object'); },\n pth: function (a) { return is.obj(a) && a.hasOwnProperty('totalLength'); },\n svg: function (a) { return a instanceof SVGElement; },\n inp: function (a) { return a instanceof HTMLInputElement; },\n dom: function (a) { return a.nodeType || is.svg(a); },\n str: function (a) { return typeof a === 'string'; },\n fnc: function (a) { return typeof a === 'function'; },\n und: function (a) { return typeof a === 'undefined'; },\n nil: function (a) { return is.und(a) || a === null; },\n hex: function (a) { return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a); },\n rgb: function (a) { return /^rgb/.test(a); },\n hsl: function (a) { return /^hsl/.test(a); },\n col: function (a) { return (is.hex(a) || is.rgb(a) || is.hsl(a)); },\n key: function (a) { return !defaultInstanceSettings.hasOwnProperty(a) && !defaultTweenSettings.hasOwnProperty(a) && a !== 'targets' && a !== 'keyframes'; },\n};\n\n// Easings\n\nfunction parseEasingParameters(string) {\n var match = /\\(([^)]+)\\)/.exec(string);\n return match ? match[1].split(',').map(function (p) { return parseFloat(p); }) : [];\n}\n\n// Spring solver inspired by Webkit Copyright © 2016 Apple Inc. All rights reserved. https://webkit.org/demos/spring/spring.js\n\nfunction spring(string, duration) {\n\n var params = parseEasingParameters(string);\n var mass = minMax(is.und(params[0]) ? 1 : params[0], .1, 100);\n var stiffness = minMax(is.und(params[1]) ? 100 : params[1], .1, 100);\n var damping = minMax(is.und(params[2]) ? 10 : params[2], .1, 100);\n var velocity = minMax(is.und(params[3]) ? 0 : params[3], .1, 100);\n var w0 = Math.sqrt(stiffness / mass);\n var zeta = damping / (2 * Math.sqrt(stiffness * mass));\n var wd = zeta < 1 ? w0 * Math.sqrt(1 - zeta * zeta) : 0;\n var a = 1;\n var b = zeta < 1 ? (zeta * w0 + -velocity) / wd : -velocity + w0;\n\n function solver(t) {\n var progress = duration ? (duration * t) / 1000 : t;\n if (zeta < 1) {\n progress = Math.exp(-progress * zeta * w0) * (a * Math.cos(wd * progress) + b * Math.sin(wd * progress));\n } else {\n progress = (a + b * progress) * Math.exp(-progress * w0);\n }\n if (t === 0 || t === 1) { return t; }\n return 1 - progress;\n }\n\n function getDuration() {\n var cached = cache.springs[string];\n if (cached) { return cached; }\n var frame = 1/6;\n var elapsed = 0;\n var rest = 0;\n while(true) {\n elapsed += frame;\n if (solver(elapsed) === 1) {\n rest++;\n if (rest >= 16) { break; }\n } else {\n rest = 0;\n }\n }\n var duration = elapsed * frame * 1000;\n cache.springs[string] = duration;\n return duration;\n }\n\n return duration ? solver : getDuration;\n\n}\n\n// Basic steps easing implementation https://developer.mozilla.org/fr/docs/Web/CSS/transition-timing-function\n\nfunction steps(steps) {\n if ( steps === void 0 ) steps = 10;\n\n return function (t) { return Math.ceil((minMax(t, 0.000001, 1)) * steps) * (1 / steps); };\n}\n\n// BezierEasing https://github.com/gre/bezier-easing\n\nvar bezier = (function () {\n\n var kSplineTableSize = 11;\n var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);\n\n function A(aA1, aA2) { return 1.0 - 3.0 * aA2 + 3.0 * aA1 }\n function B(aA1, aA2) { return 3.0 * aA2 - 6.0 * aA1 }\n function C(aA1) { return 3.0 * aA1 }\n\n function calcBezier(aT, aA1, aA2) { return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT }\n function getSlope(aT, aA1, aA2) { return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1) }\n\n function binarySubdivide(aX, aA, aB, mX1, mX2) {\n var currentX, currentT, i = 0;\n do {\n currentT = aA + (aB - aA) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - aX;\n if (currentX > 0.0) { aB = currentT; } else { aA = currentT; }\n } while (Math.abs(currentX) > 0.0000001 && ++i < 10);\n return currentT;\n }\n\n function newtonRaphsonIterate(aX, aGuessT, mX1, mX2) {\n for (var i = 0; i < 4; ++i) {\n var currentSlope = getSlope(aGuessT, mX1, mX2);\n if (currentSlope === 0.0) { return aGuessT; }\n var currentX = calcBezier(aGuessT, mX1, mX2) - aX;\n aGuessT -= currentX / currentSlope;\n }\n return aGuessT;\n }\n\n function bezier(mX1, mY1, mX2, mY2) {\n\n if (!(0 <= mX1 && mX1 <= 1 && 0 <= mX2 && mX2 <= 1)) { return; }\n var sampleValues = new Float32Array(kSplineTableSize);\n\n if (mX1 !== mY1 || mX2 !== mY2) {\n for (var i = 0; i < kSplineTableSize; ++i) {\n sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);\n }\n }\n\n function getTForX(aX) {\n\n var intervalStart = 0;\n var currentSample = 1;\n var lastSample = kSplineTableSize - 1;\n\n for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) {\n intervalStart += kSampleStepSize;\n }\n\n --currentSample;\n\n var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]);\n var guessForT = intervalStart + dist * kSampleStepSize;\n var initialSlope = getSlope(guessForT, mX1, mX2);\n\n if (initialSlope >= 0.001) {\n return newtonRaphsonIterate(aX, guessForT, mX1, mX2);\n } else if (initialSlope === 0.0) {\n return guessForT;\n } else {\n return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2);\n }\n\n }\n\n return function (x) {\n if (mX1 === mY1 && mX2 === mY2) { return x; }\n if (x === 0 || x === 1) { return x; }\n return calcBezier(getTForX(x), mY1, mY2);\n }\n\n }\n\n return bezier;\n\n})();\n\nvar penner = (function () {\n\n // Based on jQuery UI's implemenation of easing equations from Robert Penner (http://www.robertpenner.com/easing)\n\n var eases = { linear: function () { return function (t) { return t; }; } };\n\n var functionEasings = {\n Sine: function () { return function (t) { return 1 - Math.cos(t * Math.PI / 2); }; },\n Circ: function () { return function (t) { return 1 - Math.sqrt(1 - t * t); }; },\n Back: function () { return function (t) { return t * t * (3 * t - 2); }; },\n Bounce: function () { return function (t) {\n var pow2, b = 4;\n while (t < (( pow2 = Math.pow(2, --b)) - 1) / 11) {}\n return 1 / Math.pow(4, 3 - b) - 7.5625 * Math.pow(( pow2 * 3 - 2 ) / 22 - t, 2)\n }; },\n Elastic: function (amplitude, period) {\n if ( amplitude === void 0 ) amplitude = 1;\n if ( period === void 0 ) period = .5;\n\n var a = minMax(amplitude, 1, 10);\n var p = minMax(period, .1, 2);\n return function (t) {\n return (t === 0 || t === 1) ? t : \n -a * Math.pow(2, 10 * (t - 1)) * Math.sin((((t - 1) - (p / (Math.PI * 2) * Math.asin(1 / a))) * (Math.PI * 2)) / p);\n }\n }\n };\n\n var baseEasings = ['Quad', 'Cubic', 'Quart', 'Quint', 'Expo'];\n\n baseEasings.forEach(function (name, i) {\n functionEasings[name] = function () { return function (t) { return Math.pow(t, i + 2); }; };\n });\n\n Object.keys(functionEasings).forEach(function (name) {\n var easeIn = functionEasings[name];\n eases['easeIn' + name] = easeIn;\n eases['easeOut' + name] = function (a, b) { return function (t) { return 1 - easeIn(a, b)(1 - t); }; };\n eases['easeInOut' + name] = function (a, b) { return function (t) { return t < 0.5 ? easeIn(a, b)(t * 2) / 2 : \n 1 - easeIn(a, b)(t * -2 + 2) / 2; }; };\n eases['easeOutIn' + name] = function (a, b) { return function (t) { return t < 0.5 ? (1 - easeIn(a, b)(1 - t * 2)) / 2 : \n (easeIn(a, b)(t * 2 - 1) + 1) / 2; }; };\n });\n\n return eases;\n\n})();\n\nfunction parseEasings(easing, duration) {\n if (is.fnc(easing)) { return easing; }\n var name = easing.split('(')[0];\n var ease = penner[name];\n var args = parseEasingParameters(easing);\n switch (name) {\n case 'spring' : return spring(easing, duration);\n case 'cubicBezier' : return applyArguments(bezier, args);\n case 'steps' : return applyArguments(steps, args);\n default : return applyArguments(ease, args);\n }\n}\n\n// Strings\n\nfunction selectString(str) {\n try {\n var nodes = document.querySelectorAll(str);\n return nodes;\n } catch(e) {\n return;\n }\n}\n\n// Arrays\n\nfunction filterArray(arr, callback) {\n var len = arr.length;\n var thisArg = arguments.length >= 2 ? arguments[1] : void 0;\n var result = [];\n for (var i = 0; i < len; i++) {\n if (i in arr) {\n var val = arr[i];\n if (callback.call(thisArg, val, i, arr)) {\n result.push(val);\n }\n }\n }\n return result;\n}\n\nfunction flattenArray(arr) {\n return arr.reduce(function (a, b) { return a.concat(is.arr(b) ? flattenArray(b) : b); }, []);\n}\n\nfunction toArray(o) {\n if (is.arr(o)) { return o; }\n if (is.str(o)) { o = selectString(o) || o; }\n if (o instanceof NodeList || o instanceof HTMLCollection) { return [].slice.call(o); }\n return [o];\n}\n\nfunction arrayContains(arr, val) {\n return arr.some(function (a) { return a === val; });\n}\n\n// Objects\n\nfunction cloneObject(o) {\n var clone = {};\n for (var p in o) { clone[p] = o[p]; }\n return clone;\n}\n\nfunction replaceObjectProps(o1, o2) {\n var o = cloneObject(o1);\n for (var p in o1) { o[p] = o2.hasOwnProperty(p) ? o2[p] : o1[p]; }\n return o;\n}\n\nfunction mergeObjects(o1, o2) {\n var o = cloneObject(o1);\n for (var p in o2) { o[p] = is.und(o1[p]) ? o2[p] : o1[p]; }\n return o;\n}\n\n// Colors\n\nfunction rgbToRgba(rgbValue) {\n var rgb = /rgb\\((\\d+,\\s*[\\d]+,\\s*[\\d]+)\\)/g.exec(rgbValue);\n return rgb ? (\"rgba(\" + (rgb[1]) + \",1)\") : rgbValue;\n}\n\nfunction hexToRgba(hexValue) {\n var rgx = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n var hex = hexValue.replace(rgx, function (m, r, g, b) { return r + r + g + g + b + b; } );\n var rgb = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n var r = parseInt(rgb[1], 16);\n var g = parseInt(rgb[2], 16);\n var b = parseInt(rgb[3], 16);\n return (\"rgba(\" + r + \",\" + g + \",\" + b + \",1)\");\n}\n\nfunction hslToRgba(hslValue) {\n var hsl = /hsl\\((\\d+),\\s*([\\d.]+)%,\\s*([\\d.]+)%\\)/g.exec(hslValue) || /hsla\\((\\d+),\\s*([\\d.]+)%,\\s*([\\d.]+)%,\\s*([\\d.]+)\\)/g.exec(hslValue);\n var h = parseInt(hsl[1], 10) / 360;\n var s = parseInt(hsl[2], 10) / 100;\n var l = parseInt(hsl[3], 10) / 100;\n var a = hsl[4] || 1;\n function hue2rgb(p, q, t) {\n if (t < 0) { t += 1; }\n if (t > 1) { t -= 1; }\n if (t < 1/6) { return p + (q - p) * 6 * t; }\n if (t < 1/2) { return q; }\n if (t < 2/3) { return p + (q - p) * (2/3 - t) * 6; }\n return p;\n }\n var r, g, b;\n if (s == 0) {\n r = g = b = l;\n } else {\n var q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n var p = 2 * l - q;\n r = hue2rgb(p, q, h + 1/3);\n g = hue2rgb(p, q, h);\n b = hue2rgb(p, q, h - 1/3);\n }\n return (\"rgba(\" + (r * 255) + \",\" + (g * 255) + \",\" + (b * 255) + \",\" + a + \")\");\n}\n\nfunction colorToRgb(val) {\n if (is.rgb(val)) { return rgbToRgba(val); }\n if (is.hex(val)) { return hexToRgba(val); }\n if (is.hsl(val)) { return hslToRgba(val); }\n}\n\n// Units\n\nfunction getUnit(val) {\n var split = /[+-]?\\d*\\.?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(val);\n if (split) { return split[1]; }\n}\n\nfunction getTransformUnit(propName) {\n if (stringContains(propName, 'translate') || propName === 'perspective') { return 'px'; }\n if (stringContains(propName, 'rotate') || stringContains(propName, 'skew')) { return 'deg'; }\n}\n\n// Values\n\nfunction getFunctionValue(val, animatable) {\n if (!is.fnc(val)) { return val; }\n return val(animatable.target, animatable.id, animatable.total);\n}\n\nfunction getAttribute(el, prop) {\n return el.getAttribute(prop);\n}\n\nfunction convertPxToUnit(el, value, unit) {\n var valueUnit = getUnit(value);\n if (arrayContains([unit, 'deg', 'rad', 'turn'], valueUnit)) { return value; }\n var cached = cache.CSS[value + unit];\n if (!is.und(cached)) { return cached; }\n var baseline = 100;\n var tempEl = document.createElement(el.tagName);\n var parentEl = (el.parentNode && (el.parentNode !== document)) ? el.parentNode : document.body;\n parentEl.appendChild(tempEl);\n tempEl.style.position = 'absolute';\n tempEl.style.width = baseline + unit;\n var factor = baseline / tempEl.offsetWidth;\n parentEl.removeChild(tempEl);\n var convertedUnit = factor * parseFloat(value);\n cache.CSS[value + unit] = convertedUnit;\n return convertedUnit;\n}\n\nfunction getCSSValue(el, prop, unit) {\n if (prop in el.style) {\n var uppercasePropName = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n var value = el.style[prop] || getComputedStyle(el).getPropertyValue(uppercasePropName) || '0';\n return unit ? convertPxToUnit(el, value, unit) : value;\n }\n}\n\nfunction getAnimationType(el, prop) {\n if (is.dom(el) && !is.inp(el) && (!is.nil(getAttribute(el, prop)) || (is.svg(el) && el[prop]))) { return 'attribute'; }\n if (is.dom(el) && arrayContains(validTransforms, prop)) { return 'transform'; }\n if (is.dom(el) && (prop !== 'transform' && getCSSValue(el, prop))) { return 'css'; }\n if (el[prop] != null) { return 'object'; }\n}\n\nfunction getElementTransforms(el) {\n if (!is.dom(el)) { return; }\n var str = el.style.transform || '';\n var reg = /(\\w+)\\(([^)]*)\\)/g;\n var transforms = new Map();\n var m; while (m = reg.exec(str)) { transforms.set(m[1], m[2]); }\n return transforms;\n}\n\nfunction getTransformValue(el, propName, animatable, unit) {\n var defaultVal = stringContains(propName, 'scale') ? 1 : 0 + getTransformUnit(propName);\n var value = getElementTransforms(el).get(propName) || defaultVal;\n if (animatable) {\n animatable.transforms.list.set(propName, value);\n animatable.transforms['last'] = propName;\n }\n return unit ? convertPxToUnit(el, value, unit) : value;\n}\n\nfunction getOriginalTargetValue(target, propName, unit, animatable) {\n switch (getAnimationType(target, propName)) {\n case 'transform': return getTransformValue(target, propName, animatable, unit);\n case 'css': return getCSSValue(target, propName, unit);\n case 'attribute': return getAttribute(target, propName);\n default: return target[propName] || 0;\n }\n}\n\nfunction getRelativeValue(to, from) {\n var operator = /^(\\*=|\\+=|-=)/.exec(to);\n if (!operator) { return to; }\n var u = getUnit(to) || 0;\n var x = parseFloat(from);\n var y = parseFloat(to.replace(operator[0], ''));\n switch (operator[0][0]) {\n case '+': return x + y + u;\n case '-': return x - y + u;\n case '*': return x * y + u;\n }\n}\n\nfunction validateValue(val, unit) {\n if (is.col(val)) { return colorToRgb(val); }\n if (/\\s/g.test(val)) { return val; }\n var originalUnit = getUnit(val);\n var unitLess = originalUnit ? val.substr(0, val.length - originalUnit.length) : val;\n if (unit) { return unitLess + unit; }\n return unitLess;\n}\n\n// getTotalLength() equivalent for circle, rect, polyline, polygon and line shapes\n// adapted from https://gist.github.com/SebLambla/3e0550c496c236709744\n\nfunction getDistance(p1, p2) {\n return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));\n}\n\nfunction getCircleLength(el) {\n return Math.PI * 2 * getAttribute(el, 'r');\n}\n\nfunction getRectLength(el) {\n return (getAttribute(el, 'width') * 2) + (getAttribute(el, 'height') * 2);\n}\n\nfunction getLineLength(el) {\n return getDistance(\n {x: getAttribute(el, 'x1'), y: getAttribute(el, 'y1')}, \n {x: getAttribute(el, 'x2'), y: getAttribute(el, 'y2')}\n );\n}\n\nfunction getPolylineLength(el) {\n var points = el.points;\n var totalLength = 0;\n var previousPos;\n for (var i = 0 ; i < points.numberOfItems; i++) {\n var currentPos = points.getItem(i);\n if (i > 0) { totalLength += getDistance(previousPos, currentPos); }\n previousPos = currentPos;\n }\n return totalLength;\n}\n\nfunction getPolygonLength(el) {\n var points = el.points;\n return getPolylineLength(el) + getDistance(points.getItem(points.numberOfItems - 1), points.getItem(0));\n}\n\n// Path animation\n\nfunction getTotalLength(el) {\n if (el.getTotalLength) { return el.getTotalLength(); }\n switch(el.tagName.toLowerCase()) {\n case 'circle': return getCircleLength(el);\n case 'rect': return getRectLength(el);\n case 'line': return getLineLength(el);\n case 'polyline': return getPolylineLength(el);\n case 'polygon': return getPolygonLength(el);\n }\n}\n\nfunction setDashoffset(el) {\n var pathLength = getTotalLength(el);\n el.setAttribute('stroke-dasharray', pathLength);\n return pathLength;\n}\n\n// Motion path\n\nfunction getParentSvgEl(el) {\n var parentEl = el.parentNode;\n while (is.svg(parentEl)) {\n if (!is.svg(parentEl.parentNode)) { break; }\n parentEl = parentEl.parentNode;\n }\n return parentEl;\n}\n\nfunction getParentSvg(pathEl, svgData) {\n var svg = svgData || {};\n var parentSvgEl = svg.el || getParentSvgEl(pathEl);\n var rect = parentSvgEl.getBoundingClientRect();\n var viewBoxAttr = getAttribute(parentSvgEl, 'viewBox');\n var width = rect.width;\n var height = rect.height;\n var viewBox = svg.viewBox || (viewBoxAttr ? viewBoxAttr.split(' ') : [0, 0, width, height]);\n return {\n el: parentSvgEl,\n viewBox: viewBox,\n x: viewBox[0] / 1,\n y: viewBox[1] / 1,\n w: width,\n h: height,\n vW: viewBox[2],\n vH: viewBox[3]\n }\n}\n\nfunction getPath(path, percent) {\n var pathEl = is.str(path) ? selectString(path)[0] : path;\n var p = percent || 100;\n return function(property) {\n return {\n property: property,\n el: pathEl,\n svg: getParentSvg(pathEl),\n totalLength: getTotalLength(pathEl) * (p / 100)\n }\n }\n}\n\nfunction getPathProgress(path, progress, isPathTargetInsideSVG) {\n function point(offset) {\n if ( offset === void 0 ) offset = 0;\n\n var l = progress + offset >= 1 ? progress + offset : 0;\n return path.el.getPointAtLength(l);\n }\n var svg = getParentSvg(path.el, path.svg);\n var p = point();\n var p0 = point(-1);\n var p1 = point(+1);\n var scaleX = isPathTargetInsideSVG ? 1 : svg.w / svg.vW;\n var scaleY = isPathTargetInsideSVG ? 1 : svg.h / svg.vH;\n switch (path.property) {\n case 'x': return (p.x - svg.x) * scaleX;\n case 'y': return (p.y - svg.y) * scaleY;\n case 'angle': return Math.atan2(p1.y - p0.y, p1.x - p0.x) * 180 / Math.PI;\n }\n}\n\n// Decompose value\n\nfunction decomposeValue(val, unit) {\n // const rgx = /-?\\d*\\.?\\d+/g; // handles basic numbers\n // const rgx = /[+-]?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?/g; // handles exponents notation\n var rgx = /[+-]?\\d*\\.?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?/g; // handles exponents notation\n var value = validateValue((is.pth(val) ? val.totalLength : val), unit) + '';\n return {\n original: value,\n numbers: value.match(rgx) ? value.match(rgx).map(Number) : [0],\n strings: (is.str(val) || unit) ? value.split(rgx) : []\n }\n}\n\n// Animatables\n\nfunction parseTargets(targets) {\n var targetsArray = targets ? (flattenArray(is.arr(targets) ? targets.map(toArray) : toArray(targets))) : [];\n return filterArray(targetsArray, function (item, pos, self) { return self.indexOf(item) === pos; });\n}\n\nfunction getAnimatables(targets) {\n var parsed = parseTargets(targets);\n return parsed.map(function (t, i) {\n return {target: t, id: i, total: parsed.length, transforms: { list: getElementTransforms(t) } };\n });\n}\n\n// Properties\n\nfunction normalizePropertyTweens(prop, tweenSettings) {\n var settings = cloneObject(tweenSettings);\n // Override duration if easing is a spring\n if (/^spring/.test(settings.easing)) { settings.duration = spring(settings.easing); }\n if (is.arr(prop)) {\n var l = prop.length;\n var isFromTo = (l === 2 && !is.obj(prop[0]));\n if (!isFromTo) {\n // Duration divided by the number of tweens\n if (!is.fnc(tweenSettings.duration)) { settings.duration = tweenSettings.duration / l; }\n } else {\n // Transform [from, to] values shorthand to a valid tween value\n prop = {value: prop};\n }\n }\n var propArray = is.arr(prop) ? prop : [prop];\n return propArray.map(function (v, i) {\n var obj = (is.obj(v) && !is.pth(v)) ? v : {value: v};\n // Default delay value should only be applied to the first tween\n if (is.und(obj.delay)) { obj.delay = !i ? tweenSettings.delay : 0; }\n // Default endDelay value should only be applied to the last tween\n if (is.und(obj.endDelay)) { obj.endDelay = i === propArray.length - 1 ? tweenSettings.endDelay : 0; }\n return obj;\n }).map(function (k) { return mergeObjects(k, settings); });\n}\n\n\nfunction flattenKeyframes(keyframes) {\n var propertyNames = filterArray(flattenArray(keyframes.map(function (key) { return Object.keys(key); })), function (p) { return is.key(p); })\n .reduce(function (a,b) { if (a.indexOf(b) < 0) { a.push(b); } return a; }, []);\n var properties = {};\n var loop = function ( i ) {\n var propName = propertyNames[i];\n properties[propName] = keyframes.map(function (key) {\n var newKey = {};\n for (var p in key) {\n if (is.key(p)) {\n if (p == propName) { newKey.value = key[p]; }\n } else {\n newKey[p] = key[p];\n }\n }\n return newKey;\n });\n };\n\n for (var i = 0; i < propertyNames.length; i++) loop( i );\n return properties;\n}\n\nfunction getProperties(tweenSettings, params) {\n var properties = [];\n var keyframes = params.keyframes;\n if (keyframes) { params = mergeObjects(flattenKeyframes(keyframes), params); }\n for (var p in params) {\n if (is.key(p)) {\n properties.push({\n name: p,\n tweens: normalizePropertyTweens(params[p], tweenSettings)\n });\n }\n }\n return properties;\n}\n\n// Tweens\n\nfunction normalizeTweenValues(tween, animatable) {\n var t = {};\n for (var p in tween) {\n var value = getFunctionValue(tween[p], animatable);\n if (is.arr(value)) {\n value = value.map(function (v) { return getFunctionValue(v, animatable); });\n if (value.length === 1) { value = value[0]; }\n }\n t[p] = value;\n }\n t.duration = parseFloat(t.duration);\n t.delay = parseFloat(t.delay);\n return t;\n}\n\nfunction normalizeTweens(prop, animatable) {\n var previousTween;\n return prop.tweens.map(function (t) {\n var tween = normalizeTweenValues(t, animatable);\n var tweenValue = tween.value;\n var to = is.arr(tweenValue) ? tweenValue[1] : tweenValue;\n var toUnit = getUnit(to);\n var originalValue = getOriginalTargetValue(animatable.target, prop.name, toUnit, animatable);\n var previousValue = previousTween ? previousTween.to.original : originalValue;\n var from = is.arr(tweenValue) ? tweenValue[0] : previousValue;\n var fromUnit = getUnit(from) || getUnit(originalValue);\n var unit = toUnit || fromUnit;\n if (is.und(to)) { to = previousValue; }\n tween.from = decomposeValue(from, unit);\n tween.to = decomposeValue(getRelativeValue(to, from), unit);\n tween.start = previousTween ? previousTween.end : 0;\n tween.end = tween.start + tween.delay + tween.duration + tween.endDelay;\n tween.easing = parseEasings(tween.easing, tween.duration);\n tween.isPath = is.pth(tweenValue);\n tween.isPathTargetInsideSVG = tween.isPath && is.svg(animatable.target);\n tween.isColor = is.col(tween.from.original);\n if (tween.isColor) { tween.round = 1; }\n previousTween = tween;\n return tween;\n });\n}\n\n// Tween progress\n\nvar setProgressValue = {\n css: function (t, p, v) { return t.style[p] = v; },\n attribute: function (t, p, v) { return t.setAttribute(p, v); },\n object: function (t, p, v) { return t[p] = v; },\n transform: function (t, p, v, transforms, manual) {\n transforms.list.set(p, v);\n if (p === transforms.last || manual) {\n var str = '';\n transforms.list.forEach(function (value, prop) { str += prop + \"(\" + value + \") \"; });\n t.style.transform = str;\n }\n }\n};\n\n// Set Value helper\n\nfunction setTargetsValue(targets, properties) {\n var animatables = getAnimatables(targets);\n animatables.forEach(function (animatable) {\n for (var property in properties) {\n var value = getFunctionValue(properties[property], animatable);\n var target = animatable.target;\n var valueUnit = getUnit(value);\n var originalValue = getOriginalTargetValue(target, property, valueUnit, animatable);\n var unit = valueUnit || getUnit(originalValue);\n var to = getRelativeValue(validateValue(value, unit), originalValue);\n var animType = getAnimationType(target, property);\n setProgressValue[animType](target, property, to, animatable.transforms, true);\n }\n });\n}\n\n// Animations\n\nfunction createAnimation(animatable, prop) {\n var animType = getAnimationType(animatable.target, prop.name);\n if (animType) {\n var tweens = normalizeTweens(prop, animatable);\n var lastTween = tweens[tweens.length - 1];\n return {\n type: animType,\n property: prop.name,\n animatable: animatable,\n tweens: tweens,\n duration: lastTween.end,\n delay: tweens[0].delay,\n endDelay: lastTween.endDelay\n }\n }\n}\n\nfunction getAnimations(animatables, properties) {\n return filterArray(flattenArray(animatables.map(function (animatable) {\n return properties.map(function (prop) {\n return createAnimation(animatable, prop);\n });\n })), function (a) { return !is.und(a); });\n}\n\n// Create Instance\n\nfunction getInstanceTimings(animations, tweenSettings) {\n var animLength = animations.length;\n var getTlOffset = function (anim) { return anim.timelineOffset ? anim.timelineOffset : 0; };\n var timings = {};\n timings.duration = animLength ? Math.max.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.duration; })) : tweenSettings.duration;\n timings.delay = animLength ? Math.min.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.delay; })) : tweenSettings.delay;\n timings.endDelay = animLength ? timings.duration - Math.max.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.duration - anim.endDelay; })) : tweenSettings.endDelay;\n return timings;\n}\n\nvar instanceID = 0;\n\nfunction createNewInstance(params) {\n var instanceSettings = replaceObjectProps(defaultInstanceSettings, params);\n var tweenSettings = replaceObjectProps(defaultTweenSettings, params);\n var properties = getProperties(tweenSettings, params);\n var animatables = getAnimatables(params.targets);\n var animations = getAnimations(animatables, properties);\n var timings = getInstanceTimings(animations, tweenSettings);\n var id = instanceID;\n instanceID++;\n return mergeObjects(instanceSettings, {\n id: id,\n children: [],\n animatables: animatables,\n animations: animations,\n duration: timings.duration,\n delay: timings.delay,\n endDelay: timings.endDelay\n });\n}\n\n// Core\n\nvar activeInstances = [];\n\nvar engine = (function () {\n var raf;\n\n function play() {\n if (!raf && (!isDocumentHidden() || !anime.suspendWhenDocumentHidden) && activeInstances.length > 0) {\n raf = requestAnimationFrame(step);\n }\n }\n function step(t) {\n // memo on algorithm issue:\n // dangerous iteration over mutable `activeInstances`\n // (that collection may be updated from within callbacks of `tick`-ed animation instances)\n var activeInstancesLength = activeInstances.length;\n var i = 0;\n while (i < activeInstancesLength) {\n var activeInstance = activeInstances[i];\n if (!activeInstance.paused) {\n activeInstance.tick(t);\n i++;\n } else {\n activeInstances.splice(i, 1);\n activeInstancesLength--;\n }\n }\n raf = i > 0 ? requestAnimationFrame(step) : undefined;\n }\n\n function handleVisibilityChange() {\n if (!anime.suspendWhenDocumentHidden) { return; }\n\n if (isDocumentHidden()) {\n // suspend ticks\n raf = cancelAnimationFrame(raf);\n } else { // is back to active tab\n // first adjust animations to consider the time that ticks were suspended\n activeInstances.forEach(\n function (instance) { return instance ._onDocumentVisibility(); }\n );\n engine();\n }\n }\n if (typeof document !== 'undefined') {\n document.addEventListener('visibilitychange', handleVisibilityChange);\n }\n\n return play;\n})();\n\nfunction isDocumentHidden() {\n return !!document && document.hidden;\n}\n\n// Public Instance\n\nfunction anime(params) {\n if ( params === void 0 ) params = {};\n\n\n var startTime = 0, lastTime = 0, now = 0;\n var children, childrenLength = 0;\n var resolve = null;\n\n function makePromise(instance) {\n var promise = window.Promise && new Promise(function (_resolve) { return resolve = _resolve; });\n instance.finished = promise;\n return promise;\n }\n\n var instance = createNewInstance(params);\n var promise = makePromise(instance);\n\n function toggleInstanceDirection() {\n var direction = instance.direction;\n if (direction !== 'alternate') {\n instance.direction = direction !== 'normal' ? 'normal' : 'reverse';\n }\n instance.reversed = !instance.reversed;\n children.forEach(function (child) { return child.reversed = instance.reversed; });\n }\n\n function adjustTime(time) {\n return instance.reversed ? instance.duration - time : time;\n }\n\n function resetTime() {\n startTime = 0;\n lastTime = adjustTime(instance.currentTime) * (1 / anime.speed);\n }\n\n function seekChild(time, child) {\n if (child) { child.seek(time - child.timelineOffset); }\n }\n\n function syncInstanceChildren(time) {\n if (!instance.reversePlayback) {\n for (var i = 0; i < childrenLength; i++) { seekChild(time, children[i]); }\n } else {\n for (var i$1 = childrenLength; i$1--;) { seekChild(time, children[i$1]); }\n }\n }\n\n function setAnimationsProgress(insTime) {\n var i = 0;\n var animations = instance.animations;\n var animationsLength = animations.length;\n while (i < animationsLength) {\n var anim = animations[i];\n var animatable = anim.animatable;\n var tweens = anim.tweens;\n var tweenLength = tweens.length - 1;\n var tween = tweens[tweenLength];\n // Only check for keyframes if there is more than one tween\n if (tweenLength) { tween = filterArray(tweens, function (t) { return (insTime < t.end); })[0] || tween; }\n var elapsed = minMax(insTime - tween.start - tween.delay, 0, tween.duration) / tween.duration;\n var eased = isNaN(elapsed) ? 1 : tween.easing(elapsed);\n var strings = tween.to.strings;\n var round = tween.round;\n var numbers = [];\n var toNumbersLength = tween.to.numbers.length;\n var progress = (void 0);\n for (var n = 0; n < toNumbersLength; n++) {\n var value = (void 0);\n var toNumber = tween.to.numbers[n];\n var fromNumber = tween.from.numbers[n] || 0;\n if (!tween.isPath) {\n value = fromNumber + (eased * (toNumber - fromNumber));\n } else {\n value = getPathProgress(tween.value, eased * toNumber, tween.isPathTargetInsideSVG);\n }\n if (round) {\n if (!(tween.isColor && n > 2)) {\n value = Math.round(value * round) / round;\n }\n }\n numbers.push(value);\n }\n // Manual Array.reduce for better performances\n var stringsLength = strings.length;\n if (!stringsLength) {\n progress = numbers[0];\n } else {\n progress = strings[0];\n for (var s = 0; s < stringsLength; s++) {\n var a = strings[s];\n var b = strings[s + 1];\n var n$1 = numbers[s];\n if (!isNaN(n$1)) {\n if (!b) {\n progress += n$1 + ' ';\n } else {\n progress += n$1 + b;\n }\n }\n }\n }\n setProgressValue[anim.type](animatable.target, anim.property, progress, animatable.transforms);\n anim.currentValue = progress;\n i++;\n }\n }\n\n function setCallback(cb) {\n if (instance[cb] && !instance.passThrough) { instance[cb](instance); }\n }\n\n function countIteration() {\n if (instance.remaining && instance.remaining !== true) {\n instance.remaining--;\n }\n }\n\n function setInstanceProgress(engineTime) {\n var insDuration = instance.duration;\n var insDelay = instance.delay;\n var insEndDelay = insDuration - instance.endDelay;\n var insTime = adjustTime(engineTime);\n instance.progress = minMax((insTime / insDuration) * 100, 0, 100);\n instance.reversePlayback = insTime < instance.currentTime;\n if (children) { syncInstanceChildren(insTime); }\n if (!instance.began && instance.currentTime > 0) {\n instance.began = true;\n setCallback('begin');\n }\n if (!instance.loopBegan && instance.currentTime > 0) {\n instance.loopBegan = true;\n setCallback('loopBegin');\n }\n if (insTime <= insDelay && instance.currentTime !== 0) {\n setAnimationsProgress(0);\n }\n if ((insTime >= insEndDelay && instance.currentTime !== insDuration) || !insDuration) {\n setAnimationsProgress(insDuration);\n }\n if (insTime > insDelay && insTime < insEndDelay) {\n if (!instance.changeBegan) {\n instance.changeBegan = true;\n instance.changeCompleted = false;\n setCallback('changeBegin');\n }\n setCallback('change');\n setAnimationsProgress(insTime);\n } else {\n if (instance.changeBegan) {\n instance.changeCompleted = true;\n instance.changeBegan = false;\n setCallback('changeComplete');\n }\n }\n instance.currentTime = minMax(insTime, 0, insDuration);\n if (instance.began) { setCallback('update'); }\n if (engineTime >= insDuration) {\n lastTime = 0;\n countIteration();\n if (!instance.remaining) {\n instance.paused = true;\n if (!instance.completed) {\n instance.completed = true;\n setCallback('loopComplete');\n setCallback('complete');\n if (!instance.passThrough && 'Promise' in window) {\n resolve();\n promise = makePromise(instance);\n }\n }\n } else {\n startTime = now;\n setCallback('loopComplete');\n instance.loopBegan = false;\n if (instance.direction === 'alternate') {\n toggleInstanceDirection();\n }\n }\n }\n }\n\n instance.reset = function() {\n var direction = instance.direction;\n instance.passThrough = false;\n instance.currentTime = 0;\n instance.progress = 0;\n instance.paused = true;\n instance.began = false;\n instance.loopBegan = false;\n instance.changeBegan = false;\n instance.completed = false;\n instance.changeCompleted = false;\n instance.reversePlayback = false;\n instance.reversed = direction === 'reverse';\n instance.remaining = instance.loop;\n children = instance.children;\n childrenLength = children.length;\n for (var i = childrenLength; i--;) { instance.children[i].reset(); }\n if (instance.reversed && instance.loop !== true || (direction === 'alternate' && instance.loop === 1)) { instance.remaining++; }\n setAnimationsProgress(instance.reversed ? instance.duration : 0);\n };\n\n // internal method (for engine) to adjust animation timings before restoring engine ticks (rAF)\n instance._onDocumentVisibility = resetTime;\n\n // Set Value helper\n\n instance.set = function(targets, properties) {\n setTargetsValue(targets, properties);\n return instance;\n };\n\n instance.tick = function(t) {\n now = t;\n if (!startTime) { startTime = now; }\n setInstanceProgress((now + (lastTime - startTime)) * anime.speed);\n };\n\n instance.seek = function(time) {\n setInstanceProgress(adjustTime(time));\n };\n\n instance.pause = function() {\n instance.paused = true;\n resetTime();\n };\n\n instance.play = function() {\n if (!instance.paused) { return; }\n if (instance.completed) { instance.reset(); }\n instance.paused = false;\n activeInstances.push(instance);\n resetTime();\n engine();\n };\n\n instance.reverse = function() {\n toggleInstanceDirection();\n instance.completed = instance.reversed ? false : true;\n resetTime();\n };\n\n instance.restart = function() {\n instance.reset();\n instance.play();\n };\n\n instance.remove = function(targets) {\n var targetsArray = parseTargets(targets);\n removeTargetsFromInstance(targetsArray, instance);\n };\n\n instance.reset();\n\n if (instance.autoplay) { instance.play(); }\n\n return instance;\n\n}\n\n// Remove targets from animation\n\nfunction removeTargetsFromAnimations(targetsArray, animations) {\n for (var a = animations.length; a--;) {\n if (arrayContains(targetsArray, animations[a].animatable.target)) {\n animations.splice(a, 1);\n }\n }\n}\n\nfunction removeTargetsFromInstance(targetsArray, instance) {\n var animations = instance.animations;\n var children = instance.children;\n removeTargetsFromAnimations(targetsArray, animations);\n for (var c = children.length; c--;) {\n var child = children[c];\n var childAnimations = child.animations;\n removeTargetsFromAnimations(targetsArray, childAnimations);\n if (!childAnimations.length && !child.children.length) { children.splice(c, 1); }\n }\n if (!animations.length && !children.length) { instance.pause(); }\n}\n\nfunction removeTargetsFromActiveInstances(targets) {\n var targetsArray = parseTargets(targets);\n for (var i = activeInstances.length; i--;) {\n var instance = activeInstances[i];\n removeTargetsFromInstance(targetsArray, instance);\n }\n}\n\n// Stagger helpers\n\nfunction stagger(val, params) {\n if ( params === void 0 ) params = {};\n\n var direction = params.direction || 'normal';\n var easing = params.easing ? parseEasings(params.easing) : null;\n var grid = params.grid;\n var axis = params.axis;\n var fromIndex = params.from || 0;\n var fromFirst = fromIndex === 'first';\n var fromCenter = fromIndex === 'center';\n var fromLast = fromIndex === 'last';\n var isRange = is.arr(val);\n var val1 = isRange ? parseFloat(val[0]) : parseFloat(val);\n var val2 = isRange ? parseFloat(val[1]) : 0;\n var unit = getUnit(isRange ? val[1] : val) || 0;\n var start = params.start || 0 + (isRange ? val1 : 0);\n var values = [];\n var maxValue = 0;\n return function (el, i, t) {\n if (fromFirst) { fromIndex = 0; }\n if (fromCenter) { fromIndex = (t - 1) / 2; }\n if (fromLast) { fromIndex = t - 1; }\n if (!values.length) {\n for (var index = 0; index < t; index++) {\n if (!grid) {\n values.push(Math.abs(fromIndex - index));\n } else {\n var fromX = !fromCenter ? fromIndex%grid[0] : (grid[0]-1)/2;\n var fromY = !fromCenter ? Math.floor(fromIndex/grid[0]) : (grid[1]-1)/2;\n var toX = index%grid[0];\n var toY = Math.floor(index/grid[0]);\n var distanceX = fromX - toX;\n var distanceY = fromY - toY;\n var value = Math.sqrt(distanceX * distanceX + distanceY * distanceY);\n if (axis === 'x') { value = -distanceX; }\n if (axis === 'y') { value = -distanceY; }\n values.push(value);\n }\n maxValue = Math.max.apply(Math, values);\n }\n if (easing) { values = values.map(function (val) { return easing(val / maxValue) * maxValue; }); }\n if (direction === 'reverse') { values = values.map(function (val) { return axis ? (val < 0) ? val * -1 : -val : Math.abs(maxValue - val); }); }\n }\n var spacing = isRange ? (val2 - val1) / maxValue : val1;\n return start + (spacing * (Math.round(values[i] * 100) / 100)) + unit;\n }\n}\n\n// Timeline\n\nfunction timeline(params) {\n if ( params === void 0 ) params = {};\n\n var tl = anime(params);\n tl.duration = 0;\n tl.add = function(instanceParams, timelineOffset) {\n var tlIndex = activeInstances.indexOf(tl);\n var children = tl.children;\n if (tlIndex > -1) { activeInstances.splice(tlIndex, 1); }\n function passThrough(ins) { ins.passThrough = true; }\n for (var i = 0; i < children.length; i++) { passThrough(children[i]); }\n var insParams = mergeObjects(instanceParams, replaceObjectProps(defaultTweenSettings, params));\n insParams.targets = insParams.targets || params.targets;\n var tlDuration = tl.duration;\n insParams.autoplay = false;\n insParams.direction = tl.direction;\n insParams.timelineOffset = is.und(timelineOffset) ? tlDuration : getRelativeValue(timelineOffset, tlDuration);\n passThrough(tl);\n tl.seek(insParams.timelineOffset);\n var ins = anime(insParams);\n passThrough(ins);\n children.push(ins);\n var timings = getInstanceTimings(children, params);\n tl.delay = timings.delay;\n tl.endDelay = timings.endDelay;\n tl.duration = timings.duration;\n tl.seek(0);\n tl.reset();\n if (tl.autoplay) { tl.play(); }\n return tl;\n };\n return tl;\n}\n\nanime.version = '3.2.1';\nanime.speed = 1;\n// TODO:#review: naming, documentation\nanime.suspendWhenDocumentHidden = true;\nanime.running = activeInstances;\nanime.remove = removeTargetsFromActiveInstances;\nanime.get = getOriginalTargetValue;\nanime.set = setTargetsValue;\nanime.convertPx = convertPxToUnit;\nanime.path = getPath;\nanime.setDashoffset = setDashoffset;\nanime.stagger = stagger;\nanime.timeline = timeline;\nanime.easing = parseEasings;\nanime.penner = penner;\nanime.random = function (min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; };\n\nexport default anime;\n","import Sortable from 'sortablejs';\nimport anime from 'animejs/lib/anime.es.js';\nimport DataUtils from '../utils/DataUtils';\nimport Notfications from './Notifications.js';\nimport Maintenance from '../controllers/MaintenanceManager';\nconst notify = new Notfications();\n\nexport default class FileManager {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor(upload, input, imageList, fileList) {\n\t\tthis.mm = new Maintenance(null, null, document.getElementById('notify-progress'));\n\t\tthis.upload = upload;\n\t\tthis.input = input;\n\t\tthis.imageList = imageList;\n\t\tthis.fileList = fileList;\n\t\tthis.accetableFiles = [\n\t\t\t'image/jpeg',\n\t\t\t'image/gif',\n\t\t\t'image/png',\n\t\t\t'image/svg',\n\t\t\t'audio/mpeg',\n\t\t\t'video/mp4',\n\t\t\t'application/pdf',\n\t\t\t'text/plain',\n\t\t\t'text/rtf'\n\t\t];\n\t\tthis.files = [];\n\t\tthis.sortedFiles = [];\n\t\tthis.storage = [];\n\t\tthis.mediaSort = Sortable.create(this.imageList, {\n\t\t\tanimation: 150,\n\t\t\tonUpdate: () => {\n\t\t\t\t//notify.alert('REINDEXING MEDIA', null);\n\t\t\t\t//this.updateFiles();\n\t\t\t}\n\t\t});\n\t\tthis.fileSort = Sortable.create(this.fileList, {\n\t\t\tanimation: 150,\n\t\t\tonUpdate: () => {\n\t\t\t\t//notify.alert('REINDEXING FILES', null);\n\t\t\t\t//this.updateFiles();\n\t\t\t}\n\t\t});\n\t\tthis.start();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\tthis.upload.addEventListener('dragover', e => this.handleFileActions(e), false);\n\t\tthis.upload.addEventListener('drop', e => this.handleFileActions(e), false);\n\t\tthis.input.addEventListener('change', e => this.handleFileActions(e), false);\n\t\tvar removeMedia = document.querySelectorAll('.media-remove');\n\t\tfor (var i = 0, length = removeMedia.length; i < length; i++) {\n\t\t\tremoveMedia[i].addEventListener(\n\t\t\t\t'click',\n\t\t\t\te => this.removeFile(e, 'media'),\n\t\t\t\tfalse\n\t\t\t);\n\t\t}\n\t}\n\tgetFileOrder() {\n\t\tlet imgList = '';\n\t\tlet fileList = '';\n\t\tfor (var i = 0, length = this.imageList.childNodes.length; i < length; i++) {\n\t\t\tlet div = this.imageList.childNodes[i];\n\t\t\timgList = imgList + div.getAttribute('data-source') + ',';\n\t\t}\n\t\tfor (var i = 0, length = this.fileList.childNodes.length; i < length; i++) {\n\t\t\tlet div = this.fileList.childNodes[i];\n\t\t\tfileList = fileList + div.getAttribute('data-source') + ',';\n\t\t}\n\t\tlet media = { images: imgList, files: fileList };\n\t\treturn media;\n\t}\n\n\tsortFiles(files) {\n\t\tvar self = this;\n\t\tfor (var i = 0, file; (file = files[i]); i++) {\n\t\t\tvar reader = new FileReader();\n\t\t\t// Closure to capture the file information\n\t\t\treader.onload = (theFile => {\n\t\t\t\treturn function (f) {\n\t\t\t\t\t//create remove button object\n\t\t\t\t\tvar remove = document.createElement('button');\n\t\t\t\t\tvar removeIcon = document.createElement('i');\n\t\t\t\t\tremoveIcon.classList.add('ti', 'ti-x');\n\t\t\t\t\tremove.className = 'media-remove';\n\t\t\t\t\tremove.appendChild(removeIcon);\n\t\t\t\t\t//remove.setAttribute('id', mediaCount);\n\t\t\t\t\tremove.addEventListener(\n\t\t\t\t\t\t'click',\n\t\t\t\t\t\te => self.removeFile(e, 'media'),\n\t\t\t\t\t\tfalse\n\t\t\t\t\t);\n\n\t\t\t\t\t//upload the file\n\t\t\t\t\tlet upload = new FormData();\n\t\t\t\t\tupload.enctype = 'multipart/form-data';\n\t\t\t\t\tupload.append('upload_files[]', theFile, theFile.name);\n\t\t\t\t\tlet item = null;\n\t\t\t\t\tlet progress = null;\n\n\t\t\t\t\t// sort files\n\t\t\t\t\tswitch (theFile.type) {\n\t\t\t\t\t\tcase 'image/jpg':\n\t\t\t\t\t\tcase 'image/jpeg':\n\t\t\t\t\t\tcase 'image/gif':\n\t\t\t\t\t\tcase 'image/svg':\n\t\t\t\t\t\tcase 'image/png':\n\t\t\t\t\t\t\titem = self.itemFactory('img-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\titem.style.background =\n\t\t\t\t\t\t\t\t\t\t'url(' +\n\t\t\t\t\t\t\t\t\t\tf.target.result +\n\t\t\t\t\t\t\t\t\t\t') no-repeat center center / cover';\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'video/mp4':\n\t\t\t\t\t\t\titem = self.itemFactory('video-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\tlet video = document.createElement('video');\n\t\t\t\t\t\t\t\t\tlet source = document.createElement('source');\n\t\t\t\t\t\t\t\t\tsource.src = f.target.result;\n\t\t\t\t\t\t\t\t\tvideo.appendChild(source);\n\t\t\t\t\t\t\t\t\titem.appendChild(video);\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'audio/mpeg':\n\t\t\t\t\t\t\titem = self.itemFactory('audio-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\tlet audio = document.createElement('audio');\n\t\t\t\t\t\t\t\t\taudio.setAttribute('controls', true);\n\t\t\t\t\t\t\t\t\tlet source = document.createElement('source');\n\t\t\t\t\t\t\t\t\tsource.src = f.target.result;\n\t\t\t\t\t\t\t\t\taudio.appendChild(source);\n\t\t\t\t\t\t\t\t\titem.appendChild(audio);\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'application/pdf':\n\t\t\t\t\t\tcase 'text/plain':\n\t\t\t\t\t\tcase 'text/rtf':\n\t\t\t\t\t\t\titem = self.itemFactory('file-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\tlet link = document.createElement('a');\n\t\t\t\t\t\t\t\t\tlink.href = result.filePath;\n\t\t\t\t\t\t\t\t\tlink.innerHTML = result.fileName;\n\t\t\t\t\t\t\t\t\titem.appendChild(link);\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t})(file);\n\t\t\t// Read in the image file as a data URL.\n\t\t\treader.readAsDataURL(file);\n\t\t}\n\t}\n\titemFactory(type = null) {\n\t\t//get counts for lists\n\t\tvar mediaCount = this.imageList.childNodes.length;\n\t\tvar fileCount = this.fileList.childNodes.length;\n\t\tif (mediaCount < 0) mediaCount = 0;\n\t\tif (fileCount < 0) fileCount = 0;\n\t\tvar item = document.createElement('div');\n\t\titem.className = type;\n\t\tvar progress = document.createElement('div');\n\t\tprogress.className = 'item-progress';\n\t\titem.appendChild(progress);\n\n\t\tif (type == 'img-item' || type == 'video-item') {\n\t\t\tthis.imageList.appendChild(item);\n\t\t\tprogress.setAttribute('id', 'pgs' + mediaCount);\n\t\t\titem.setAttribute('id', mediaCount);\n\t\t} else {\n\t\t\tthis.fileList.appendChild(item);\n\t\t\tprogress.setAttribute('id', 'pgs' + fileCount);\n\t\t\titem.setAttribute('id', fileCount);\n\t\t}\n\t\treturn item;\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\tremoveFile(e) {\n\t\tvar item = e.target.parentNode.parentNode;\n\t\tswitch (item.className) {\n\t\t\tcase 'img-item':\n\t\t\tcase 'video-item':\n\t\t\t\tthis.imageList.removeChild(item);\n\t\t\t\tbreak;\n\t\t\tcase 'audio-item':\n\t\t\tcase 'file-item':\n\t\t\t\tthis.fileList.removeChild(item);\n\t\t\t\tbreak;\n\t\t}\n\t\tnotify.alert('File Removed!', true);\n\t}\n\n\thandleFileActions(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet self = this;\n\t\tlet rawList = [];\n\t\tlet sortedList = [];\n\t\tlet notOnTheList = [];\n\n\t\tswitch (e.type) {\n\t\t\tcase 'dragover':\n\t\t\t\te.dataTransfer.dropEffect = 'copy'; // Explicitly show this is a copy.\n\t\t\t\tbreak;\n\t\t\tcase 'change':\n\t\t\tcase 'drop':\n\t\t\t\te.type == 'drop'\n\t\t\t\t\t? (rawList = e.dataTransfer.files)\n\t\t\t\t\t: (rawList = e.target.files);\n\t\t\t\tfor (var i = 0, f; (f = rawList[i]); i++) {\n\t\t\t\t\t// check witch files are cool to upload\n\t\t\t\t\tif (this.accetableFiles.includes(f.type)) {\n\t\t\t\t\t\tsortedList.push(f);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnotOnTheList.push(f);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//send for sorting\n\t\t\t\tself.sortFiles(sortedList);\n\t\t\t\tbreak;\n\t\t}\n\t}\n}\n","/**!\n * Sortable 1.15.0\n * @author\tRubaXa <trash@rubaxa.org>\n * @author\towenm <owen23355@gmail.com>\n * @license MIT\n */\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nvar version = \"1.15.0\";\n\nfunction userAgent(pattern) {\n if (typeof window !== 'undefined' && window.navigator) {\n return !! /*@__PURE__*/navigator.userAgent.match(pattern);\n }\n}\n\nvar IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\\.|msie|iemobile|Windows Phone)/i);\nvar Edge = userAgent(/Edge/i);\nvar FireFox = userAgent(/firefox/i);\nvar Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);\nvar IOS = userAgent(/iP(ad|od|hone)/i);\nvar ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);\n\nvar captureMode = {\n capture: false,\n passive: false\n};\n\nfunction on(el, event, fn) {\n el.addEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction off(el, event, fn) {\n el.removeEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction matches(\n/**HTMLElement*/\nel,\n/**String*/\nselector) {\n if (!selector) return;\n selector[0] === '>' && (selector = selector.substring(1));\n\n if (el) {\n try {\n if (el.matches) {\n return el.matches(selector);\n } else if (el.msMatchesSelector) {\n return el.msMatchesSelector(selector);\n } else if (el.webkitMatchesSelector) {\n return el.webkitMatchesSelector(selector);\n }\n } catch (_) {\n return false;\n }\n }\n\n return false;\n}\n\nfunction getParentOrHost(el) {\n return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;\n}\n\nfunction closest(\n/**HTMLElement*/\nel,\n/**String*/\nselector,\n/**HTMLElement*/\nctx, includeCTX) {\n if (el) {\n ctx = ctx || document;\n\n do {\n if (selector != null && (selector[0] === '>' ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {\n return el;\n }\n\n if (el === ctx) break;\n /* jshint boss:true */\n } while (el = getParentOrHost(el));\n }\n\n return null;\n}\n\nvar R_SPACE = /\\s+/g;\n\nfunction toggleClass(el, name, state) {\n if (el && name) {\n if (el.classList) {\n el.classList[state ? 'add' : 'remove'](name);\n } else {\n var className = (' ' + el.className + ' ').replace(R_SPACE, ' ').replace(' ' + name + ' ', ' ');\n el.className = (className + (state ? ' ' + name : '')).replace(R_SPACE, ' ');\n }\n }\n}\n\nfunction css(el, prop, val) {\n var style = el && el.style;\n\n if (style) {\n if (val === void 0) {\n if (document.defaultView && document.defaultView.getComputedStyle) {\n val = document.defaultView.getComputedStyle(el, '');\n } else if (el.currentStyle) {\n val = el.currentStyle;\n }\n\n return prop === void 0 ? val : val[prop];\n } else {\n if (!(prop in style) && prop.indexOf('webkit') === -1) {\n prop = '-webkit-' + prop;\n }\n\n style[prop] = val + (typeof val === 'string' ? '' : 'px');\n }\n }\n}\n\nfunction matrix(el, selfOnly) {\n var appliedTransforms = '';\n\n if (typeof el === 'string') {\n appliedTransforms = el;\n } else {\n do {\n var transform = css(el, 'transform');\n\n if (transform && transform !== 'none') {\n appliedTransforms = transform + ' ' + appliedTransforms;\n }\n /* jshint boss:true */\n\n } while (!selfOnly && (el = el.parentNode));\n }\n\n var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;\n /*jshint -W056 */\n\n return matrixFn && new matrixFn(appliedTransforms);\n}\n\nfunction find(ctx, tagName, iterator) {\n if (ctx) {\n var list = ctx.getElementsByTagName(tagName),\n i = 0,\n n = list.length;\n\n if (iterator) {\n for (; i < n; i++) {\n iterator(list[i], i);\n }\n }\n\n return list;\n }\n\n return [];\n}\n\nfunction getWindowScrollingElement() {\n var scrollingElement = document.scrollingElement;\n\n if (scrollingElement) {\n return scrollingElement;\n } else {\n return document.documentElement;\n }\n}\n/**\n * Returns the \"bounding client rect\" of given element\n * @param {HTMLElement} el The element whose boundingClientRect is wanted\n * @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container\n * @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr\n * @param {[Boolean]} undoScale Whether the container's scale() should be undone\n * @param {[HTMLElement]} container The parent the element will be placed in\n * @return {Object} The boundingClientRect of el, with specified adjustments\n */\n\n\nfunction getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {\n if (!el.getBoundingClientRect && el !== window) return;\n var elRect, top, left, bottom, right, height, width;\n\n if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {\n elRect = el.getBoundingClientRect();\n top = elRect.top;\n left = elRect.left;\n bottom = elRect.bottom;\n right = elRect.right;\n height = elRect.height;\n width = elRect.width;\n } else {\n top = 0;\n left = 0;\n bottom = window.innerHeight;\n right = window.innerWidth;\n height = window.innerHeight;\n width = window.innerWidth;\n }\n\n if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {\n // Adjust for translate()\n container = container || el.parentNode; // solves #1123 (see: https://stackoverflow.com/a/37953806/6088312)\n // Not needed on <= IE11\n\n if (!IE11OrLess) {\n do {\n if (container && container.getBoundingClientRect && (css(container, 'transform') !== 'none' || relativeToNonStaticParent && css(container, 'position') !== 'static')) {\n var containerRect = container.getBoundingClientRect(); // Set relative to edges of padding box of container\n\n top -= containerRect.top + parseInt(css(container, 'border-top-width'));\n left -= containerRect.left + parseInt(css(container, 'border-left-width'));\n bottom = top + elRect.height;\n right = left + elRect.width;\n break;\n }\n /* jshint boss:true */\n\n } while (container = container.parentNode);\n }\n }\n\n if (undoScale && el !== window) {\n // Adjust for scale()\n var elMatrix = matrix(container || el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d;\n\n if (elMatrix) {\n top /= scaleY;\n left /= scaleX;\n width /= scaleX;\n height /= scaleY;\n bottom = top + height;\n right = left + width;\n }\n }\n\n return {\n top: top,\n left: left,\n bottom: bottom,\n right: right,\n width: width,\n height: height\n };\n}\n/**\n * Checks if a side of an element is scrolled past a side of its parents\n * @param {HTMLElement} el The element who's side being scrolled out of view is in question\n * @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')\n * @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')\n * @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element\n */\n\n\nfunction isScrolledPast(el, elSide, parentSide) {\n var parent = getParentAutoScrollElement(el, true),\n elSideVal = getRect(el)[elSide];\n /* jshint boss:true */\n\n while (parent) {\n var parentSideVal = getRect(parent)[parentSide],\n visible = void 0;\n\n if (parentSide === 'top' || parentSide === 'left') {\n visible = elSideVal >= parentSideVal;\n } else {\n visible = elSideVal <= parentSideVal;\n }\n\n if (!visible) return parent;\n if (parent === getWindowScrollingElement()) break;\n parent = getParentAutoScrollElement(parent, false);\n }\n\n return false;\n}\n/**\n * Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)\n * and non-draggable elements\n * @param {HTMLElement} el The parent element\n * @param {Number} childNum The index of the child\n * @param {Object} options Parent Sortable's options\n * @return {HTMLElement} The child at index childNum, or null if not found\n */\n\n\nfunction getChild(el, childNum, options, includeDragEl) {\n var currentChild = 0,\n i = 0,\n children = el.children;\n\n while (i < children.length) {\n if (children[i].style.display !== 'none' && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {\n if (currentChild === childNum) {\n return children[i];\n }\n\n currentChild++;\n }\n\n i++;\n }\n\n return null;\n}\n/**\n * Gets the last child in the el, ignoring ghostEl or invisible elements (clones)\n * @param {HTMLElement} el Parent element\n * @param {selector} selector Any other elements that should be ignored\n * @return {HTMLElement} The last child, ignoring ghostEl\n */\n\n\nfunction lastChild(el, selector) {\n var last = el.lastElementChild;\n\n while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) {\n last = last.previousElementSibling;\n }\n\n return last || null;\n}\n/**\n * Returns the index of an element within its parent for a selected set of\n * elements\n * @param {HTMLElement} el\n * @param {selector} selector\n * @return {number}\n */\n\n\nfunction index(el, selector) {\n var index = 0;\n\n if (!el || !el.parentNode) {\n return -1;\n }\n /* jshint boss:true */\n\n\n while (el = el.previousElementSibling) {\n if (el.nodeName.toUpperCase() !== 'TEMPLATE' && el !== Sortable.clone && (!selector || matches(el, selector))) {\n index++;\n }\n }\n\n return index;\n}\n/**\n * Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.\n * The value is returned in real pixels.\n * @param {HTMLElement} el\n * @return {Array} Offsets in the format of [left, top]\n */\n\n\nfunction getRelativeScrollOffset(el) {\n var offsetLeft = 0,\n offsetTop = 0,\n winScroller = getWindowScrollingElement();\n\n if (el) {\n do {\n var elMatrix = matrix(el),\n scaleX = elMatrix.a,\n scaleY = elMatrix.d;\n offsetLeft += el.scrollLeft * scaleX;\n offsetTop += el.scrollTop * scaleY;\n } while (el !== winScroller && (el = el.parentNode));\n }\n\n return [offsetLeft, offsetTop];\n}\n/**\n * Returns the index of the object within the given array\n * @param {Array} arr Array that may or may not hold the object\n * @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find\n * @return {Number} The index of the object in the array, or -1\n */\n\n\nfunction indexOfObject(arr, obj) {\n for (var i in arr) {\n if (!arr.hasOwnProperty(i)) continue;\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);\n }\n }\n\n return -1;\n}\n\nfunction getParentAutoScrollElement(el, includeSelf) {\n // skip to window\n if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();\n var elem = el;\n var gotSelf = false;\n\n do {\n // we don't need to get elem css if it isn't even overflowing in the first place (performance)\n if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {\n var elemCSS = css(elem);\n\n if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == 'auto' || elemCSS.overflowX == 'scroll') || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == 'auto' || elemCSS.overflowY == 'scroll')) {\n if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();\n if (gotSelf || includeSelf) return elem;\n gotSelf = true;\n }\n }\n /* jshint boss:true */\n\n } while (elem = elem.parentNode);\n\n return getWindowScrollingElement();\n}\n\nfunction extend(dst, src) {\n if (dst && src) {\n for (var key in src) {\n if (src.hasOwnProperty(key)) {\n dst[key] = src[key];\n }\n }\n }\n\n return dst;\n}\n\nfunction isRectEqual(rect1, rect2) {\n return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);\n}\n\nvar _throttleTimeout;\n\nfunction throttle(callback, ms) {\n return function () {\n if (!_throttleTimeout) {\n var args = arguments,\n _this = this;\n\n if (args.length === 1) {\n callback.call(_this, args[0]);\n } else {\n callback.apply(_this, args);\n }\n\n _throttleTimeout = setTimeout(function () {\n _throttleTimeout = void 0;\n }, ms);\n }\n };\n}\n\nfunction cancelThrottle() {\n clearTimeout(_throttleTimeout);\n _throttleTimeout = void 0;\n}\n\nfunction scrollBy(el, x, y) {\n el.scrollLeft += x;\n el.scrollTop += y;\n}\n\nfunction clone(el) {\n var Polymer = window.Polymer;\n var $ = window.jQuery || window.Zepto;\n\n if (Polymer && Polymer.dom) {\n return Polymer.dom(el).cloneNode(true);\n } else if ($) {\n return $(el).clone(true)[0];\n } else {\n return el.cloneNode(true);\n }\n}\n\nfunction setRect(el, rect) {\n css(el, 'position', 'absolute');\n css(el, 'top', rect.top);\n css(el, 'left', rect.left);\n css(el, 'width', rect.width);\n css(el, 'height', rect.height);\n}\n\nfunction unsetRect(el) {\n css(el, 'position', '');\n css(el, 'top', '');\n css(el, 'left', '');\n css(el, 'width', '');\n css(el, 'height', '');\n}\n\nvar expando = 'Sortable' + new Date().getTime();\n\nfunction AnimationStateManager() {\n var animationStates = [],\n animationCallbackId;\n return {\n captureAnimationState: function captureAnimationState() {\n animationStates = [];\n if (!this.options.animation) return;\n var children = [].slice.call(this.el.children);\n children.forEach(function (child) {\n if (css(child, 'display') === 'none' || child === Sortable.ghost) return;\n animationStates.push({\n target: child,\n rect: getRect(child)\n });\n\n var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect); // If animating: compensate for current animation\n\n\n if (child.thisAnimationDuration) {\n var childMatrix = matrix(child, true);\n\n if (childMatrix) {\n fromRect.top -= childMatrix.f;\n fromRect.left -= childMatrix.e;\n }\n }\n\n child.fromRect = fromRect;\n });\n },\n addAnimationState: function addAnimationState(state) {\n animationStates.push(state);\n },\n removeAnimationState: function removeAnimationState(target) {\n animationStates.splice(indexOfObject(animationStates, {\n target: target\n }), 1);\n },\n animateAll: function animateAll(callback) {\n var _this = this;\n\n if (!this.options.animation) {\n clearTimeout(animationCallbackId);\n if (typeof callback === 'function') callback();\n return;\n }\n\n var animating = false,\n animationTime = 0;\n animationStates.forEach(function (state) {\n var time = 0,\n target = state.target,\n fromRect = target.fromRect,\n toRect = getRect(target),\n prevFromRect = target.prevFromRect,\n prevToRect = target.prevToRect,\n animatingRect = state.rect,\n targetMatrix = matrix(target, true);\n\n if (targetMatrix) {\n // Compensate for current animation\n toRect.top -= targetMatrix.f;\n toRect.left -= targetMatrix.e;\n }\n\n target.toRect = toRect;\n\n if (target.thisAnimationDuration) {\n // Could also check if animatingRect is between fromRect and toRect\n if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect\n (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {\n // If returning to same place as started from animation and on same axis\n time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);\n }\n } // if fromRect != toRect: animate\n\n\n if (!isRectEqual(toRect, fromRect)) {\n target.prevFromRect = fromRect;\n target.prevToRect = toRect;\n\n if (!time) {\n time = _this.options.animation;\n }\n\n _this.animate(target, animatingRect, toRect, time);\n }\n\n if (time) {\n animating = true;\n animationTime = Math.max(animationTime, time);\n clearTimeout(target.animationResetTimer);\n target.animationResetTimer = setTimeout(function () {\n target.animationTime = 0;\n target.prevFromRect = null;\n target.fromRect = null;\n target.prevToRect = null;\n target.thisAnimationDuration = null;\n }, time);\n target.thisAnimationDuration = time;\n }\n });\n clearTimeout(animationCallbackId);\n\n if (!animating) {\n if (typeof callback === 'function') callback();\n } else {\n animationCallbackId = setTimeout(function () {\n if (typeof callback === 'function') callback();\n }, animationTime);\n }\n\n animationStates = [];\n },\n animate: function animate(target, currentRect, toRect, duration) {\n if (duration) {\n css(target, 'transition', '');\n css(target, 'transform', '');\n var elMatrix = matrix(this.el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d,\n translateX = (currentRect.left - toRect.left) / (scaleX || 1),\n translateY = (currentRect.top - toRect.top) / (scaleY || 1);\n target.animatingX = !!translateX;\n target.animatingY = !!translateY;\n css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');\n this.forRepaintDummy = repaint(target); // repaint\n\n css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : ''));\n css(target, 'transform', 'translate3d(0,0,0)');\n typeof target.animated === 'number' && clearTimeout(target.animated);\n target.animated = setTimeout(function () {\n css(target, 'transition', '');\n css(target, 'transform', '');\n target.animated = false;\n target.animatingX = false;\n target.animatingY = false;\n }, duration);\n }\n }\n };\n}\n\nfunction repaint(target) {\n return target.offsetWidth;\n}\n\nfunction calculateRealTime(animatingRect, fromRect, toRect, options) {\n return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;\n}\n\nvar plugins = [];\nvar defaults = {\n initializeByDefault: true\n};\nvar PluginManager = {\n mount: function mount(plugin) {\n // Set default static properties\n for (var option in defaults) {\n if (defaults.hasOwnProperty(option) && !(option in plugin)) {\n plugin[option] = defaults[option];\n }\n }\n\n plugins.forEach(function (p) {\n if (p.pluginName === plugin.pluginName) {\n throw \"Sortable: Cannot mount plugin \".concat(plugin.pluginName, \" more than once\");\n }\n });\n plugins.push(plugin);\n },\n pluginEvent: function pluginEvent(eventName, sortable, evt) {\n var _this = this;\n\n this.eventCanceled = false;\n\n evt.cancel = function () {\n _this.eventCanceled = true;\n };\n\n var eventNameGlobal = eventName + 'Global';\n plugins.forEach(function (plugin) {\n if (!sortable[plugin.pluginName]) return; // Fire global events if it exists in this sortable\n\n if (sortable[plugin.pluginName][eventNameGlobal]) {\n sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({\n sortable: sortable\n }, evt));\n } // Only fire plugin event if plugin is enabled in this sortable,\n // and plugin has event defined\n\n\n if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {\n sortable[plugin.pluginName][eventName](_objectSpread2({\n sortable: sortable\n }, evt));\n }\n });\n },\n initializePlugins: function initializePlugins(sortable, el, defaults, options) {\n plugins.forEach(function (plugin) {\n var pluginName = plugin.pluginName;\n if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;\n var initialized = new plugin(sortable, el, sortable.options);\n initialized.sortable = sortable;\n initialized.options = sortable.options;\n sortable[pluginName] = initialized; // Add default options from plugin\n\n _extends(defaults, initialized.defaults);\n });\n\n for (var option in sortable.options) {\n if (!sortable.options.hasOwnProperty(option)) continue;\n var modified = this.modifyOption(sortable, option, sortable.options[option]);\n\n if (typeof modified !== 'undefined') {\n sortable.options[option] = modified;\n }\n }\n },\n getEventProperties: function getEventProperties(name, sortable) {\n var eventProperties = {};\n plugins.forEach(function (plugin) {\n if (typeof plugin.eventProperties !== 'function') return;\n\n _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));\n });\n return eventProperties;\n },\n modifyOption: function modifyOption(sortable, name, value) {\n var modifiedValue;\n plugins.forEach(function (plugin) {\n // Plugin must exist on the Sortable\n if (!sortable[plugin.pluginName]) return; // If static option listener exists for this option, call in the context of the Sortable's instance of this plugin\n\n if (plugin.optionListeners && typeof plugin.optionListeners[name] === 'function') {\n modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);\n }\n });\n return modifiedValue;\n }\n};\n\nfunction dispatchEvent(_ref) {\n var sortable = _ref.sortable,\n rootEl = _ref.rootEl,\n name = _ref.name,\n targetEl = _ref.targetEl,\n cloneEl = _ref.cloneEl,\n toEl = _ref.toEl,\n fromEl = _ref.fromEl,\n oldIndex = _ref.oldIndex,\n newIndex = _ref.newIndex,\n oldDraggableIndex = _ref.oldDraggableIndex,\n newDraggableIndex = _ref.newDraggableIndex,\n originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n extraEventProperties = _ref.extraEventProperties;\n sortable = sortable || rootEl && rootEl[expando];\n if (!sortable) return;\n var evt,\n options = sortable.options,\n onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1); // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent(name, {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent(name, true, true);\n }\n\n evt.to = toEl || rootEl;\n evt.from = fromEl || rootEl;\n evt.item = targetEl || rootEl;\n evt.clone = cloneEl;\n evt.oldIndex = oldIndex;\n evt.newIndex = newIndex;\n evt.oldDraggableIndex = oldDraggableIndex;\n evt.newDraggableIndex = newDraggableIndex;\n evt.originalEvent = originalEvent;\n evt.pullMode = putSortable ? putSortable.lastPutMode : undefined;\n\n var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));\n\n for (var option in allEventProperties) {\n evt[option] = allEventProperties[option];\n }\n\n if (rootEl) {\n rootEl.dispatchEvent(evt);\n }\n\n if (options[onName]) {\n options[onName].call(sortable, evt);\n }\n}\n\nvar _excluded = [\"evt\"];\n\nvar pluginEvent = function pluginEvent(eventName, sortable) {\n var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n originalEvent = _ref.evt,\n data = _objectWithoutProperties(_ref, _excluded);\n\n PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({\n dragEl: dragEl,\n parentEl: parentEl,\n ghostEl: ghostEl,\n rootEl: rootEl,\n nextEl: nextEl,\n lastDownEl: lastDownEl,\n cloneEl: cloneEl,\n cloneHidden: cloneHidden,\n dragStarted: moved,\n putSortable: putSortable,\n activeSortable: Sortable.active,\n originalEvent: originalEvent,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n hideGhostForTarget: _hideGhostForTarget,\n unhideGhostForTarget: _unhideGhostForTarget,\n cloneNowHidden: function cloneNowHidden() {\n cloneHidden = true;\n },\n cloneNowShown: function cloneNowShown() {\n cloneHidden = false;\n },\n dispatchSortableEvent: function dispatchSortableEvent(name) {\n _dispatchEvent({\n sortable: sortable,\n name: name,\n originalEvent: originalEvent\n });\n }\n }, data));\n};\n\nfunction _dispatchEvent(info) {\n dispatchEvent(_objectSpread2({\n putSortable: putSortable,\n cloneEl: cloneEl,\n targetEl: dragEl,\n rootEl: rootEl,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex\n }, info));\n}\n\nvar dragEl,\n parentEl,\n ghostEl,\n rootEl,\n nextEl,\n lastDownEl,\n cloneEl,\n cloneHidden,\n oldIndex,\n newIndex,\n oldDraggableIndex,\n newDraggableIndex,\n activeGroup,\n putSortable,\n awaitingDragStarted = false,\n ignoreNextClick = false,\n sortables = [],\n tapEvt,\n touchEvt,\n lastDx,\n lastDy,\n tapDistanceLeft,\n tapDistanceTop,\n moved,\n lastTarget,\n lastDirection,\n pastFirstInvertThresh = false,\n isCircumstantialInvert = false,\n targetMoveDistance,\n // For positioning ghost absolutely\nghostRelativeParent,\n ghostRelativeParentInitialScroll = [],\n // (left, top)\n_silent = false,\n savedInputChecked = [];\n/** @const */\n\nvar documentExists = typeof document !== 'undefined',\n PositionGhostAbsolutely = IOS,\n CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float',\n // This will not pass for IE9, because IE9 DnD only works on anchors\nsupportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'),\n supportCssPointerEvents = function () {\n if (!documentExists) return; // false when <= IE11\n\n if (IE11OrLess) {\n return false;\n }\n\n var el = document.createElement('x');\n el.style.cssText = 'pointer-events:auto';\n return el.style.pointerEvents === 'auto';\n}(),\n _detectDirection = function _detectDirection(el, options) {\n var elCSS = css(el),\n elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth),\n child1 = getChild(el, 0, options),\n child2 = getChild(el, 1, options),\n firstChildCSS = child1 && css(child1),\n secondChildCSS = child2 && css(child2),\n firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width,\n secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;\n\n if (elCSS.display === 'flex') {\n return elCSS.flexDirection === 'column' || elCSS.flexDirection === 'column-reverse' ? 'vertical' : 'horizontal';\n }\n\n if (elCSS.display === 'grid') {\n return elCSS.gridTemplateColumns.split(' ').length <= 1 ? 'vertical' : 'horizontal';\n }\n\n if (child1 && firstChildCSS[\"float\"] && firstChildCSS[\"float\"] !== 'none') {\n var touchingSideChild2 = firstChildCSS[\"float\"] === 'left' ? 'left' : 'right';\n return child2 && (secondChildCSS.clear === 'both' || secondChildCSS.clear === touchingSideChild2) ? 'vertical' : 'horizontal';\n }\n\n return child1 && (firstChildCSS.display === 'block' || firstChildCSS.display === 'flex' || firstChildCSS.display === 'table' || firstChildCSS.display === 'grid' || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === 'none' || child2 && elCSS[CSSFloatProperty] === 'none' && firstChildWidth + secondChildWidth > elWidth) ? 'vertical' : 'horizontal';\n},\n _dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {\n var dragElS1Opp = vertical ? dragRect.left : dragRect.top,\n dragElS2Opp = vertical ? dragRect.right : dragRect.bottom,\n dragElOppLength = vertical ? dragRect.width : dragRect.height,\n targetS1Opp = vertical ? targetRect.left : targetRect.top,\n targetS2Opp = vertical ? targetRect.right : targetRect.bottom,\n targetOppLength = vertical ? targetRect.width : targetRect.height;\n return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;\n},\n\n/**\r\n * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.\r\n * @param {Number} x X position\r\n * @param {Number} y Y position\r\n * @return {HTMLElement} Element of the first found nearest Sortable\r\n */\n_detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {\n var ret;\n sortables.some(function (sortable) {\n var threshold = sortable[expando].options.emptyInsertThreshold;\n if (!threshold || lastChild(sortable)) return;\n var rect = getRect(sortable),\n insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold,\n insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;\n\n if (insideHorizontally && insideVertically) {\n return ret = sortable;\n }\n });\n return ret;\n},\n _prepareGroup = function _prepareGroup(options) {\n function toFn(value, pull) {\n return function (to, from, dragEl, evt) {\n var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;\n\n if (value == null && (pull || sameGroup)) {\n // Default pull value\n // Default pull and put value if same group\n return true;\n } else if (value == null || value === false) {\n return false;\n } else if (pull && value === 'clone') {\n return value;\n } else if (typeof value === 'function') {\n return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);\n } else {\n var otherGroup = (pull ? to : from).options.group.name;\n return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;\n }\n };\n }\n\n var group = {};\n var originalGroup = options.group;\n\n if (!originalGroup || _typeof(originalGroup) != 'object') {\n originalGroup = {\n name: originalGroup\n };\n }\n\n group.name = originalGroup.name;\n group.checkPull = toFn(originalGroup.pull, true);\n group.checkPut = toFn(originalGroup.put);\n group.revertClone = originalGroup.revertClone;\n options.group = group;\n},\n _hideGhostForTarget = function _hideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', 'none');\n }\n},\n _unhideGhostForTarget = function _unhideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', '');\n }\n}; // #1184 fix - Prevent click event on fallback if dragged but item not changed position\n\n\nif (documentExists && !ChromeForAndroid) {\n document.addEventListener('click', function (evt) {\n if (ignoreNextClick) {\n evt.preventDefault();\n evt.stopPropagation && evt.stopPropagation();\n evt.stopImmediatePropagation && evt.stopImmediatePropagation();\n ignoreNextClick = false;\n return false;\n }\n }, true);\n}\n\nvar nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {\n if (dragEl) {\n evt = evt.touches ? evt.touches[0] : evt;\n\n var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);\n\n if (nearest) {\n // Create imitation event\n var event = {};\n\n for (var i in evt) {\n if (evt.hasOwnProperty(i)) {\n event[i] = evt[i];\n }\n }\n\n event.target = event.rootEl = nearest;\n event.preventDefault = void 0;\n event.stopPropagation = void 0;\n\n nearest[expando]._onDragOver(event);\n }\n }\n};\n\nvar _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {\n if (dragEl) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target);\n }\n};\n/**\r\n * @class Sortable\r\n * @param {HTMLElement} el\r\n * @param {Object} [options]\r\n */\n\n\nfunction Sortable(el, options) {\n if (!(el && el.nodeType && el.nodeType === 1)) {\n throw \"Sortable: `el` must be an HTMLElement, not \".concat({}.toString.call(el));\n }\n\n this.el = el; // root element\n\n this.options = options = _extends({}, options); // Export instance\n\n el[expando] = this;\n var defaults = {\n group: null,\n sort: true,\n disabled: false,\n store: null,\n handle: null,\n draggable: /^[uo]l$/i.test(el.nodeName) ? '>li' : '>*',\n swapThreshold: 1,\n // percentage; 0 <= x <= 1\n invertSwap: false,\n // invert always\n invertedSwapThreshold: null,\n // will be set to same as swapThreshold if default\n removeCloneOnHide: true,\n direction: function direction() {\n return _detectDirection(el, this.options);\n },\n ghostClass: 'sortable-ghost',\n chosenClass: 'sortable-chosen',\n dragClass: 'sortable-drag',\n ignore: 'a, img',\n filter: null,\n preventOnFilter: true,\n animation: 0,\n easing: null,\n setData: function setData(dataTransfer, dragEl) {\n dataTransfer.setData('Text', dragEl.textContent);\n },\n dropBubble: false,\n dragoverBubble: false,\n dataIdAttr: 'data-id',\n delay: 0,\n delayOnTouchOnly: false,\n touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,\n forceFallback: false,\n fallbackClass: 'sortable-fallback',\n fallbackOnBody: false,\n fallbackTolerance: 0,\n fallbackOffset: {\n x: 0,\n y: 0\n },\n supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,\n emptyInsertThreshold: 5\n };\n PluginManager.initializePlugins(this, el, defaults); // Set default options\n\n for (var name in defaults) {\n !(name in options) && (options[name] = defaults[name]);\n }\n\n _prepareGroup(options); // Bind all private methods\n\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n } // Setup drag mode\n\n\n this.nativeDraggable = options.forceFallback ? false : supportDraggable;\n\n if (this.nativeDraggable) {\n // Touch start threshold cannot be greater than the native dragstart threshold\n this.options.touchStartThreshold = 1;\n } // Bind events\n\n\n if (options.supportPointer) {\n on(el, 'pointerdown', this._onTapStart);\n } else {\n on(el, 'mousedown', this._onTapStart);\n on(el, 'touchstart', this._onTapStart);\n }\n\n if (this.nativeDraggable) {\n on(el, 'dragover', this);\n on(el, 'dragenter', this);\n }\n\n sortables.push(this.el); // Restore sorting\n\n options.store && options.store.get && this.sort(options.store.get(this) || []); // Add animation state manager\n\n _extends(this, AnimationStateManager());\n}\n\nSortable.prototype =\n/** @lends Sortable.prototype */\n{\n constructor: Sortable,\n _isOutsideThisEl: function _isOutsideThisEl(target) {\n if (!this.el.contains(target) && target !== this.el) {\n lastTarget = null;\n }\n },\n _getDirection: function _getDirection(evt, target) {\n return typeof this.options.direction === 'function' ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;\n },\n _onTapStart: function _onTapStart(\n /** Event|TouchEvent */\n evt) {\n if (!evt.cancelable) return;\n\n var _this = this,\n el = this.el,\n options = this.options,\n preventOnFilter = options.preventOnFilter,\n type = evt.type,\n touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === 'touch' && evt,\n target = (touch || evt).target,\n originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target,\n filter = options.filter;\n\n _saveInputCheckedState(el); // Don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group.\n\n\n if (dragEl) {\n return;\n }\n\n if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {\n return; // only left button and enabled\n } // cancel dnd if original target is content editable\n\n\n if (originalTarget.isContentEditable) {\n return;\n } // Safari ignores further event handling after mousedown\n\n\n if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {\n return;\n }\n\n target = closest(target, options.draggable, el, false);\n\n if (target && target.animated) {\n return;\n }\n\n if (lastDownEl === target) {\n // Ignoring duplicate `down`\n return;\n } // Get the index of the dragged element within its parent\n\n\n oldIndex = index(target);\n oldDraggableIndex = index(target, options.draggable); // Check filter\n\n if (typeof filter === 'function') {\n if (filter.call(this, evt, target, this)) {\n _dispatchEvent({\n sortable: _this,\n rootEl: originalTarget,\n name: 'filter',\n targetEl: target,\n toEl: el,\n fromEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n } else if (filter) {\n filter = filter.split(',').some(function (criteria) {\n criteria = closest(originalTarget, criteria.trim(), el, false);\n\n if (criteria) {\n _dispatchEvent({\n sortable: _this,\n rootEl: criteria,\n name: 'filter',\n targetEl: target,\n fromEl: el,\n toEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n return true;\n }\n });\n\n if (filter) {\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n }\n\n if (options.handle && !closest(originalTarget, options.handle, el, false)) {\n return;\n } // Prepare `dragstart`\n\n\n this._prepareDragStart(evt, touch, target);\n },\n _prepareDragStart: function _prepareDragStart(\n /** Event */\n evt,\n /** Touch */\n touch,\n /** HTMLElement */\n target) {\n var _this = this,\n el = _this.el,\n options = _this.options,\n ownerDocument = el.ownerDocument,\n dragStartFn;\n\n if (target && !dragEl && target.parentNode === el) {\n var dragRect = getRect(target);\n rootEl = el;\n dragEl = target;\n parentEl = dragEl.parentNode;\n nextEl = dragEl.nextSibling;\n lastDownEl = target;\n activeGroup = options.group;\n Sortable.dragged = dragEl;\n tapEvt = {\n target: dragEl,\n clientX: (touch || evt).clientX,\n clientY: (touch || evt).clientY\n };\n tapDistanceLeft = tapEvt.clientX - dragRect.left;\n tapDistanceTop = tapEvt.clientY - dragRect.top;\n this._lastX = (touch || evt).clientX;\n this._lastY = (touch || evt).clientY;\n dragEl.style['will-change'] = 'all';\n\n dragStartFn = function dragStartFn() {\n pluginEvent('delayEnded', _this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n _this._onDrop();\n\n return;\n } // Delayed drag has been triggered\n // we can re-enable the events: touchmove/mousemove\n\n\n _this._disableDelayedDragEvents();\n\n if (!FireFox && _this.nativeDraggable) {\n dragEl.draggable = true;\n } // Bind the events: dragstart/dragend\n\n\n _this._triggerDragStart(evt, touch); // Drag start event\n\n\n _dispatchEvent({\n sortable: _this,\n name: 'choose',\n originalEvent: evt\n }); // Chosen item\n\n\n toggleClass(dragEl, options.chosenClass, true);\n }; // Disable \"draggable\"\n\n\n options.ignore.split(',').forEach(function (criteria) {\n find(dragEl, criteria.trim(), _disableDraggable);\n });\n on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mouseup', _this._onDrop);\n on(ownerDocument, 'touchend', _this._onDrop);\n on(ownerDocument, 'touchcancel', _this._onDrop); // Make dragEl draggable (must be before delay for FireFox)\n\n if (FireFox && this.nativeDraggable) {\n this.options.touchStartThreshold = 4;\n dragEl.draggable = true;\n }\n\n pluginEvent('delayStart', this, {\n evt: evt\n }); // Delay is impossible for native DnD in Edge or IE\n\n if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n } // If the user moves the pointer or let go the click or touch\n // before the delay has been reached:\n // disable the delayed drag\n\n\n on(ownerDocument, 'mouseup', _this._disableDelayedDrag);\n on(ownerDocument, 'touchend', _this._disableDelayedDrag);\n on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);\n on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler);\n on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);\n options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);\n _this._dragStartTimer = setTimeout(dragStartFn, options.delay);\n } else {\n dragStartFn();\n }\n }\n },\n _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(\n /** TouchEvent|PointerEvent **/\n e) {\n var touch = e.touches ? e.touches[0] : e;\n\n if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) {\n this._disableDelayedDrag();\n }\n },\n _disableDelayedDrag: function _disableDelayedDrag() {\n dragEl && _disableDraggable(dragEl);\n clearTimeout(this._dragStartTimer);\n\n this._disableDelayedDragEvents();\n },\n _disableDelayedDragEvents: function _disableDelayedDragEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._disableDelayedDrag);\n off(ownerDocument, 'touchend', this._disableDelayedDrag);\n off(ownerDocument, 'touchcancel', this._disableDelayedDrag);\n off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler);\n },\n _triggerDragStart: function _triggerDragStart(\n /** Event */\n evt,\n /** Touch */\n touch) {\n touch = touch || evt.pointerType == 'touch' && evt;\n\n if (!this.nativeDraggable || touch) {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._onTouchMove);\n } else if (touch) {\n on(document, 'touchmove', this._onTouchMove);\n } else {\n on(document, 'mousemove', this._onTouchMove);\n }\n } else {\n on(dragEl, 'dragend', this);\n on(rootEl, 'dragstart', this._onDragStart);\n }\n\n try {\n if (document.selection) {\n // Timeout neccessary for IE9\n _nextTick(function () {\n document.selection.empty();\n });\n } else {\n window.getSelection().removeAllRanges();\n }\n } catch (err) {}\n },\n _dragStarted: function _dragStarted(fallback, evt) {\n\n awaitingDragStarted = false;\n\n if (rootEl && dragEl) {\n pluginEvent('dragStarted', this, {\n evt: evt\n });\n\n if (this.nativeDraggable) {\n on(document, 'dragover', _checkOutsideTargetEl);\n }\n\n var options = this.options; // Apply effect\n\n !fallback && toggleClass(dragEl, options.dragClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n Sortable.active = this;\n fallback && this._appendGhost(); // Drag start event\n\n _dispatchEvent({\n sortable: this,\n name: 'start',\n originalEvent: evt\n });\n } else {\n this._nulling();\n }\n },\n _emulateDragOver: function _emulateDragOver() {\n if (touchEvt) {\n this._lastX = touchEvt.clientX;\n this._lastY = touchEvt.clientY;\n\n _hideGhostForTarget();\n\n var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n var parent = target;\n\n while (target && target.shadowRoot) {\n target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n if (target === parent) break;\n parent = target;\n }\n\n dragEl.parentNode[expando]._isOutsideThisEl(target);\n\n if (parent) {\n do {\n if (parent[expando]) {\n var inserted = void 0;\n inserted = parent[expando]._onDragOver({\n clientX: touchEvt.clientX,\n clientY: touchEvt.clientY,\n target: target,\n rootEl: parent\n });\n\n if (inserted && !this.options.dragoverBubble) {\n break;\n }\n }\n\n target = parent; // store last element\n }\n /* jshint boss:true */\n while (parent = parent.parentNode);\n }\n\n _unhideGhostForTarget();\n }\n },\n _onTouchMove: function _onTouchMove(\n /**TouchEvent*/\n evt) {\n if (tapEvt) {\n var options = this.options,\n fallbackTolerance = options.fallbackTolerance,\n fallbackOffset = options.fallbackOffset,\n touch = evt.touches ? evt.touches[0] : evt,\n ghostMatrix = ghostEl && matrix(ghostEl, true),\n scaleX = ghostEl && ghostMatrix && ghostMatrix.a,\n scaleY = ghostEl && ghostMatrix && ghostMatrix.d,\n relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent),\n dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1),\n dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1); // only set the status to dragging, when we are actually dragging\n\n if (!Sortable.active && !awaitingDragStarted) {\n if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {\n return;\n }\n\n this._onDragStart(evt, true);\n }\n\n if (ghostEl) {\n if (ghostMatrix) {\n ghostMatrix.e += dx - (lastDx || 0);\n ghostMatrix.f += dy - (lastDy || 0);\n } else {\n ghostMatrix = {\n a: 1,\n b: 0,\n c: 0,\n d: 1,\n e: dx,\n f: dy\n };\n }\n\n var cssMatrix = \"matrix(\".concat(ghostMatrix.a, \",\").concat(ghostMatrix.b, \",\").concat(ghostMatrix.c, \",\").concat(ghostMatrix.d, \",\").concat(ghostMatrix.e, \",\").concat(ghostMatrix.f, \")\");\n css(ghostEl, 'webkitTransform', cssMatrix);\n css(ghostEl, 'mozTransform', cssMatrix);\n css(ghostEl, 'msTransform', cssMatrix);\n css(ghostEl, 'transform', cssMatrix);\n lastDx = dx;\n lastDy = dy;\n touchEvt = touch;\n }\n\n evt.cancelable && evt.preventDefault();\n }\n },\n _appendGhost: function _appendGhost() {\n // Bug if using scale(): https://stackoverflow.com/questions/2637058\n // Not being adjusted for\n if (!ghostEl) {\n var container = this.options.fallbackOnBody ? document.body : rootEl,\n rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container),\n options = this.options; // Position absolutely\n\n if (PositionGhostAbsolutely) {\n // Get relatively positioned parent\n ghostRelativeParent = container;\n\n while (css(ghostRelativeParent, 'position') === 'static' && css(ghostRelativeParent, 'transform') === 'none' && ghostRelativeParent !== document) {\n ghostRelativeParent = ghostRelativeParent.parentNode;\n }\n\n if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {\n if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();\n rect.top += ghostRelativeParent.scrollTop;\n rect.left += ghostRelativeParent.scrollLeft;\n } else {\n ghostRelativeParent = getWindowScrollingElement();\n }\n\n ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);\n }\n\n ghostEl = dragEl.cloneNode(true);\n toggleClass(ghostEl, options.ghostClass, false);\n toggleClass(ghostEl, options.fallbackClass, true);\n toggleClass(ghostEl, options.dragClass, true);\n css(ghostEl, 'transition', '');\n css(ghostEl, 'transform', '');\n css(ghostEl, 'box-sizing', 'border-box');\n css(ghostEl, 'margin', 0);\n css(ghostEl, 'top', rect.top);\n css(ghostEl, 'left', rect.left);\n css(ghostEl, 'width', rect.width);\n css(ghostEl, 'height', rect.height);\n css(ghostEl, 'opacity', '0.8');\n css(ghostEl, 'position', PositionGhostAbsolutely ? 'absolute' : 'fixed');\n css(ghostEl, 'zIndex', '100000');\n css(ghostEl, 'pointerEvents', 'none');\n Sortable.ghost = ghostEl;\n container.appendChild(ghostEl); // Set transform-origin\n\n css(ghostEl, 'transform-origin', tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + '% ' + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + '%');\n }\n },\n _onDragStart: function _onDragStart(\n /**Event*/\n evt,\n /**boolean*/\n fallback) {\n var _this = this;\n\n var dataTransfer = evt.dataTransfer;\n var options = _this.options;\n pluginEvent('dragStart', this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n }\n\n pluginEvent('setupClone', this);\n\n if (!Sortable.eventCanceled) {\n cloneEl = clone(dragEl);\n cloneEl.removeAttribute(\"id\");\n cloneEl.draggable = false;\n cloneEl.style['will-change'] = '';\n\n this._hideClone();\n\n toggleClass(cloneEl, this.options.chosenClass, false);\n Sortable.clone = cloneEl;\n } // #1143: IFrame support workaround\n\n\n _this.cloneId = _nextTick(function () {\n pluginEvent('clone', _this);\n if (Sortable.eventCanceled) return;\n\n if (!_this.options.removeCloneOnHide) {\n rootEl.insertBefore(cloneEl, dragEl);\n }\n\n _this._hideClone();\n\n _dispatchEvent({\n sortable: _this,\n name: 'clone'\n });\n });\n !fallback && toggleClass(dragEl, options.dragClass, true); // Set proper drop events\n\n if (fallback) {\n ignoreNextClick = true;\n _this._loopId = setInterval(_this._emulateDragOver, 50);\n } else {\n // Undo what was set in _prepareDragStart before drag started\n off(document, 'mouseup', _this._onDrop);\n off(document, 'touchend', _this._onDrop);\n off(document, 'touchcancel', _this._onDrop);\n\n if (dataTransfer) {\n dataTransfer.effectAllowed = 'move';\n options.setData && options.setData.call(_this, dataTransfer, dragEl);\n }\n\n on(document, 'drop', _this); // #1276 fix:\n\n css(dragEl, 'transform', 'translateZ(0)');\n }\n\n awaitingDragStarted = true;\n _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));\n on(document, 'selectstart', _this);\n moved = true;\n\n if (Safari) {\n css(document.body, 'user-select', 'none');\n }\n },\n // Returns true - if no further action is needed (either inserted or another condition)\n _onDragOver: function _onDragOver(\n /**Event*/\n evt) {\n var el = this.el,\n target = evt.target,\n dragRect,\n targetRect,\n revert,\n options = this.options,\n group = options.group,\n activeSortable = Sortable.active,\n isOwner = activeGroup === group,\n canSort = options.sort,\n fromSortable = putSortable || activeSortable,\n vertical,\n _this = this,\n completedFired = false;\n\n if (_silent) return;\n\n function dragOverEvent(name, extra) {\n pluginEvent(name, _this, _objectSpread2({\n evt: evt,\n isOwner: isOwner,\n axis: vertical ? 'vertical' : 'horizontal',\n revert: revert,\n dragRect: dragRect,\n targetRect: targetRect,\n canSort: canSort,\n fromSortable: fromSortable,\n target: target,\n completed: completed,\n onMove: function onMove(target, after) {\n return _onMove(rootEl, el, dragEl, dragRect, target, getRect(target), evt, after);\n },\n changed: changed\n }, extra));\n } // Capture animation state\n\n\n function capture() {\n dragOverEvent('dragOverAnimationCapture');\n\n _this.captureAnimationState();\n\n if (_this !== fromSortable) {\n fromSortable.captureAnimationState();\n }\n } // Return invocation when dragEl is inserted (or completed)\n\n\n function completed(insertion) {\n dragOverEvent('dragOverCompleted', {\n insertion: insertion\n });\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n } else {\n activeSortable._showClone(_this);\n }\n\n if (_this !== fromSortable) {\n // Set ghost class to new sortable's ghost class\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n }\n\n if (putSortable !== _this && _this !== Sortable.active) {\n putSortable = _this;\n } else if (_this === Sortable.active && putSortable) {\n putSortable = null;\n } // Animation\n\n\n if (fromSortable === _this) {\n _this._ignoreWhileAnimating = target;\n }\n\n _this.animateAll(function () {\n dragOverEvent('dragOverAnimationComplete');\n _this._ignoreWhileAnimating = null;\n });\n\n if (_this !== fromSortable) {\n fromSortable.animateAll();\n fromSortable._ignoreWhileAnimating = null;\n }\n } // Null lastTarget if it is not inside a previously swapped element\n\n\n if (target === dragEl && !dragEl.animated || target === el && !target.animated) {\n lastTarget = null;\n } // no bubbling and not fallback\n\n\n if (!options.dragoverBubble && !evt.rootEl && target !== document) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target); // Do not detect for empty insert if already inserted\n\n\n !insertion && nearestEmptyInsertDetectEvent(evt);\n }\n\n !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();\n return completedFired = true;\n } // Call when dragEl has been inserted\n\n\n function changed() {\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n _dispatchEvent({\n sortable: _this,\n name: 'change',\n toEl: el,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n originalEvent: evt\n });\n }\n\n if (evt.preventDefault !== void 0) {\n evt.cancelable && evt.preventDefault();\n }\n\n target = closest(target, options.draggable, el, true);\n dragOverEvent('dragOver');\n if (Sortable.eventCanceled) return completedFired;\n\n if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {\n return completed(false);\n }\n\n ignoreNextClick = false;\n\n if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list\n : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {\n vertical = this._getDirection(evt, target) === 'vertical';\n dragRect = getRect(dragEl);\n dragOverEvent('dragOverValid');\n if (Sortable.eventCanceled) return completedFired;\n\n if (revert) {\n parentEl = rootEl; // actualization\n\n capture();\n\n this._hideClone();\n\n dragOverEvent('revert');\n\n if (!Sortable.eventCanceled) {\n if (nextEl) {\n rootEl.insertBefore(dragEl, nextEl);\n } else {\n rootEl.appendChild(dragEl);\n }\n }\n\n return completed(true);\n }\n\n var elLastChild = lastChild(el, options.draggable);\n\n if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {\n // Insert to end of list\n // If already at end of list: Do not insert\n if (elLastChild === dragEl) {\n return completed(false);\n } // if there is a last element, it is the target\n\n\n if (elLastChild && el === evt.target) {\n target = elLastChild;\n }\n\n if (target) {\n targetRect = getRect(target);\n }\n\n if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {\n capture();\n\n if (elLastChild && elLastChild.nextSibling) {\n // the last draggable element is not the last node\n el.insertBefore(dragEl, elLastChild.nextSibling);\n } else {\n el.appendChild(dragEl);\n }\n\n parentEl = el; // actualization\n\n changed();\n return completed(true);\n }\n } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {\n // Insert to start of list\n var firstChild = getChild(el, 0, options, true);\n\n if (firstChild === dragEl) {\n return completed(false);\n }\n\n target = firstChild;\n targetRect = getRect(target);\n\n if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {\n capture();\n el.insertBefore(dragEl, firstChild);\n parentEl = el; // actualization\n\n changed();\n return completed(true);\n }\n } else if (target.parentNode === el) {\n targetRect = getRect(target);\n var direction = 0,\n targetBeforeFirstSwap,\n differentLevel = dragEl.parentNode !== el,\n differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical),\n side1 = vertical ? 'top' : 'left',\n scrolledPastTop = isScrolledPast(target, 'top', 'top') || isScrolledPast(dragEl, 'top', 'top'),\n scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;\n\n if (lastTarget !== target) {\n targetBeforeFirstSwap = targetRect[side1];\n pastFirstInvertThresh = false;\n isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;\n }\n\n direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);\n var sibling;\n\n if (direction !== 0) {\n // Check if target is beside dragEl in respective direction (ignoring hidden elements)\n var dragIndex = index(dragEl);\n\n do {\n dragIndex -= direction;\n sibling = parentEl.children[dragIndex];\n } while (sibling && (css(sibling, 'display') === 'none' || sibling === ghostEl));\n } // If dragEl is already beside target: Do not insert\n\n\n if (direction === 0 || sibling === target) {\n return completed(false);\n }\n\n lastTarget = target;\n lastDirection = direction;\n var nextSibling = target.nextElementSibling,\n after = false;\n after = direction === 1;\n\n var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);\n\n if (moveVector !== false) {\n if (moveVector === 1 || moveVector === -1) {\n after = moveVector === 1;\n }\n\n _silent = true;\n setTimeout(_unsilent, 30);\n capture();\n\n if (after && !nextSibling) {\n el.appendChild(dragEl);\n } else {\n target.parentNode.insertBefore(dragEl, after ? nextSibling : target);\n } // Undo chrome's scroll adjustment (has no effect on other browsers)\n\n\n if (scrolledPastTop) {\n scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);\n }\n\n parentEl = dragEl.parentNode; // actualization\n // must be done before animation\n\n if (targetBeforeFirstSwap !== undefined && !isCircumstantialInvert) {\n targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);\n }\n\n changed();\n return completed(true);\n }\n }\n\n if (el.contains(dragEl)) {\n return completed(false);\n }\n }\n\n return false;\n },\n _ignoreWhileAnimating: null,\n _offMoveEvents: function _offMoveEvents() {\n off(document, 'mousemove', this._onTouchMove);\n off(document, 'touchmove', this._onTouchMove);\n off(document, 'pointermove', this._onTouchMove);\n off(document, 'dragover', nearestEmptyInsertDetectEvent);\n off(document, 'mousemove', nearestEmptyInsertDetectEvent);\n off(document, 'touchmove', nearestEmptyInsertDetectEvent);\n },\n _offUpEvents: function _offUpEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._onDrop);\n off(ownerDocument, 'touchend', this._onDrop);\n off(ownerDocument, 'pointerup', this._onDrop);\n off(ownerDocument, 'touchcancel', this._onDrop);\n off(document, 'selectstart', this);\n },\n _onDrop: function _onDrop(\n /**Event*/\n evt) {\n var el = this.el,\n options = this.options; // Get the index of the dragged element within its parent\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n pluginEvent('drop', this, {\n evt: evt\n });\n parentEl = dragEl && dragEl.parentNode; // Get again after plugin event\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n if (Sortable.eventCanceled) {\n this._nulling();\n\n return;\n }\n\n awaitingDragStarted = false;\n isCircumstantialInvert = false;\n pastFirstInvertThresh = false;\n clearInterval(this._loopId);\n clearTimeout(this._dragStartTimer);\n\n _cancelNextTick(this.cloneId);\n\n _cancelNextTick(this._dragStartId); // Unbind events\n\n\n if (this.nativeDraggable) {\n off(document, 'drop', this);\n off(el, 'dragstart', this._onDragStart);\n }\n\n this._offMoveEvents();\n\n this._offUpEvents();\n\n if (Safari) {\n css(document.body, 'user-select', '');\n }\n\n css(dragEl, 'transform', '');\n\n if (evt) {\n if (moved) {\n evt.cancelable && evt.preventDefault();\n !options.dropBubble && evt.stopPropagation();\n }\n\n ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n // Remove clone(s)\n cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);\n }\n\n if (dragEl) {\n if (this.nativeDraggable) {\n off(dragEl, 'dragend', this);\n }\n\n _disableDraggable(dragEl);\n\n dragEl.style['will-change'] = ''; // Remove classes\n // ghostClass is added in dragStarted\n\n if (moved && !awaitingDragStarted) {\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);\n }\n\n toggleClass(dragEl, this.options.chosenClass, false); // Drag stop event\n\n _dispatchEvent({\n sortable: this,\n name: 'unchoose',\n toEl: parentEl,\n newIndex: null,\n newDraggableIndex: null,\n originalEvent: evt\n });\n\n if (rootEl !== parentEl) {\n if (newIndex >= 0) {\n // Add event\n _dispatchEvent({\n rootEl: parentEl,\n name: 'add',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n }); // Remove event\n\n\n _dispatchEvent({\n sortable: this,\n name: 'remove',\n toEl: parentEl,\n originalEvent: evt\n }); // drag from one list and drop into another\n\n\n _dispatchEvent({\n rootEl: parentEl,\n name: 'sort',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n\n putSortable && putSortable.save();\n } else {\n if (newIndex !== oldIndex) {\n if (newIndex >= 0) {\n // drag & drop within the same list\n _dispatchEvent({\n sortable: this,\n name: 'update',\n toEl: parentEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n }\n }\n\n if (Sortable.active) {\n /* jshint eqnull:true */\n if (newIndex == null || newIndex === -1) {\n newIndex = oldIndex;\n newDraggableIndex = oldDraggableIndex;\n }\n\n _dispatchEvent({\n sortable: this,\n name: 'end',\n toEl: parentEl,\n originalEvent: evt\n }); // Save sorting\n\n\n this.save();\n }\n }\n }\n\n this._nulling();\n },\n _nulling: function _nulling() {\n pluginEvent('nulling', this);\n rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;\n savedInputChecked.forEach(function (el) {\n el.checked = true;\n });\n savedInputChecked.length = lastDx = lastDy = 0;\n },\n handleEvent: function handleEvent(\n /**Event*/\n evt) {\n switch (evt.type) {\n case 'drop':\n case 'dragend':\n this._onDrop(evt);\n\n break;\n\n case 'dragenter':\n case 'dragover':\n if (dragEl) {\n this._onDragOver(evt);\n\n _globalDragOver(evt);\n }\n\n break;\n\n case 'selectstart':\n evt.preventDefault();\n break;\n }\n },\n\n /**\r\n * Serializes the item into an array of string.\r\n * @returns {String[]}\r\n */\n toArray: function toArray() {\n var order = [],\n el,\n children = this.el.children,\n i = 0,\n n = children.length,\n options = this.options;\n\n for (; i < n; i++) {\n el = children[i];\n\n if (closest(el, options.draggable, this.el, false)) {\n order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));\n }\n }\n\n return order;\n },\n\n /**\r\n * Sorts the elements according to the array.\r\n * @param {String[]} order order of the items\r\n */\n sort: function sort(order, useAnimation) {\n var items = {},\n rootEl = this.el;\n this.toArray().forEach(function (id, i) {\n var el = rootEl.children[i];\n\n if (closest(el, this.options.draggable, rootEl, false)) {\n items[id] = el;\n }\n }, this);\n useAnimation && this.captureAnimationState();\n order.forEach(function (id) {\n if (items[id]) {\n rootEl.removeChild(items[id]);\n rootEl.appendChild(items[id]);\n }\n });\n useAnimation && this.animateAll();\n },\n\n /**\r\n * Save the current sorting\r\n */\n save: function save() {\n var store = this.options.store;\n store && store.set && store.set(this);\n },\n\n /**\r\n * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.\r\n * @param {HTMLElement} el\r\n * @param {String} [selector] default: `options.draggable`\r\n * @returns {HTMLElement|null}\r\n */\n closest: function closest$1(el, selector) {\n return closest(el, selector || this.options.draggable, this.el, false);\n },\n\n /**\r\n * Set/get option\r\n * @param {string} name\r\n * @param {*} [value]\r\n * @returns {*}\r\n */\n option: function option(name, value) {\n var options = this.options;\n\n if (value === void 0) {\n return options[name];\n } else {\n var modifiedValue = PluginManager.modifyOption(this, name, value);\n\n if (typeof modifiedValue !== 'undefined') {\n options[name] = modifiedValue;\n } else {\n options[name] = value;\n }\n\n if (name === 'group') {\n _prepareGroup(options);\n }\n }\n },\n\n /**\r\n * Destroy\r\n */\n destroy: function destroy() {\n pluginEvent('destroy', this);\n var el = this.el;\n el[expando] = null;\n off(el, 'mousedown', this._onTapStart);\n off(el, 'touchstart', this._onTapStart);\n off(el, 'pointerdown', this._onTapStart);\n\n if (this.nativeDraggable) {\n off(el, 'dragover', this);\n off(el, 'dragenter', this);\n } // Remove draggable attributes\n\n\n Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function (el) {\n el.removeAttribute('draggable');\n });\n\n this._onDrop();\n\n this._disableDelayedDragEvents();\n\n sortables.splice(sortables.indexOf(this.el), 1);\n this.el = el = null;\n },\n _hideClone: function _hideClone() {\n if (!cloneHidden) {\n pluginEvent('hideClone', this);\n if (Sortable.eventCanceled) return;\n css(cloneEl, 'display', 'none');\n\n if (this.options.removeCloneOnHide && cloneEl.parentNode) {\n cloneEl.parentNode.removeChild(cloneEl);\n }\n\n cloneHidden = true;\n }\n },\n _showClone: function _showClone(putSortable) {\n if (putSortable.lastPutMode !== 'clone') {\n this._hideClone();\n\n return;\n }\n\n if (cloneHidden) {\n pluginEvent('showClone', this);\n if (Sortable.eventCanceled) return; // show clone at dragEl or original position\n\n if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {\n rootEl.insertBefore(cloneEl, dragEl);\n } else if (nextEl) {\n rootEl.insertBefore(cloneEl, nextEl);\n } else {\n rootEl.appendChild(cloneEl);\n }\n\n if (this.options.group.revertClone) {\n this.animate(dragEl, cloneEl);\n }\n\n css(cloneEl, 'display', '');\n cloneHidden = false;\n }\n }\n};\n\nfunction _globalDragOver(\n/**Event*/\nevt) {\n if (evt.dataTransfer) {\n evt.dataTransfer.dropEffect = 'move';\n }\n\n evt.cancelable && evt.preventDefault();\n}\n\nfunction _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {\n var evt,\n sortable = fromEl[expando],\n onMoveFn = sortable.options.onMove,\n retVal; // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent('move', {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent('move', true, true);\n }\n\n evt.to = toEl;\n evt.from = fromEl;\n evt.dragged = dragEl;\n evt.draggedRect = dragRect;\n evt.related = targetEl || toEl;\n evt.relatedRect = targetRect || getRect(toEl);\n evt.willInsertAfter = willInsertAfter;\n evt.originalEvent = originalEvent;\n fromEl.dispatchEvent(evt);\n\n if (onMoveFn) {\n retVal = onMoveFn.call(sortable, evt, originalEvent);\n }\n\n return retVal;\n}\n\nfunction _disableDraggable(el) {\n el.draggable = false;\n}\n\nfunction _unsilent() {\n _silent = false;\n}\n\nfunction _ghostIsFirst(evt, vertical, sortable) {\n var rect = getRect(getChild(sortable.el, 0, sortable.options, true));\n var spacer = 10;\n return vertical ? evt.clientX < rect.left - spacer || evt.clientY < rect.top && evt.clientX < rect.right : evt.clientY < rect.top - spacer || evt.clientY < rect.bottom && evt.clientX < rect.left;\n}\n\nfunction _ghostIsLast(evt, vertical, sortable) {\n var rect = getRect(lastChild(sortable.el, sortable.options.draggable));\n var spacer = 10;\n return vertical ? evt.clientX > rect.right + spacer || evt.clientX <= rect.right && evt.clientY > rect.bottom && evt.clientX >= rect.left : evt.clientX > rect.right && evt.clientY > rect.top || evt.clientX <= rect.right && evt.clientY > rect.bottom + spacer;\n}\n\nfunction _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {\n var mouseOnAxis = vertical ? evt.clientY : evt.clientX,\n targetLength = vertical ? targetRect.height : targetRect.width,\n targetS1 = vertical ? targetRect.top : targetRect.left,\n targetS2 = vertical ? targetRect.bottom : targetRect.right,\n invert = false;\n\n if (!invertSwap) {\n // Never invert or create dragEl shadow when target movemenet causes mouse to move past the end of regular swapThreshold\n if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {\n // multiplied only by swapThreshold because mouse will already be inside target by (1 - threshold) * targetLength / 2\n // check if past first invert threshold on side opposite of lastDirection\n if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {\n // past first invert threshold, do not restrict inverted threshold to dragEl shadow\n pastFirstInvertThresh = true;\n }\n\n if (!pastFirstInvertThresh) {\n // dragEl shadow (target move distance shadow)\n if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance // over dragEl shadow\n : mouseOnAxis > targetS2 - targetMoveDistance) {\n return -lastDirection;\n }\n } else {\n invert = true;\n }\n } else {\n // Regular\n if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {\n return _getInsertDirection(target);\n }\n }\n }\n\n invert = invert || invertSwap;\n\n if (invert) {\n // Invert of regular\n if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {\n return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;\n }\n }\n\n return 0;\n}\n/**\r\n * Gets the direction dragEl must be swapped relative to target in order to make it\r\n * seem that dragEl has been \"inserted\" into that element's position\r\n * @param {HTMLElement} target The target whose position dragEl is being inserted at\r\n * @return {Number} Direction dragEl must be swapped\r\n */\n\n\nfunction _getInsertDirection(target) {\n if (index(dragEl) < index(target)) {\n return 1;\n } else {\n return -1;\n }\n}\n/**\r\n * Generate id\r\n * @param {HTMLElement} el\r\n * @returns {String}\r\n * @private\r\n */\n\n\nfunction _generateId(el) {\n var str = el.tagName + el.className + el.src + el.href + el.textContent,\n i = str.length,\n sum = 0;\n\n while (i--) {\n sum += str.charCodeAt(i);\n }\n\n return sum.toString(36);\n}\n\nfunction _saveInputCheckedState(root) {\n savedInputChecked.length = 0;\n var inputs = root.getElementsByTagName('input');\n var idx = inputs.length;\n\n while (idx--) {\n var el = inputs[idx];\n el.checked && savedInputChecked.push(el);\n }\n}\n\nfunction _nextTick(fn) {\n return setTimeout(fn, 0);\n}\n\nfunction _cancelNextTick(id) {\n return clearTimeout(id);\n} // Fixed #973:\n\n\nif (documentExists) {\n on(document, 'touchmove', function (evt) {\n if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {\n evt.preventDefault();\n }\n });\n} // Export utils\n\n\nSortable.utils = {\n on: on,\n off: off,\n css: css,\n find: find,\n is: function is(el, selector) {\n return !!closest(el, selector, el, false);\n },\n extend: extend,\n throttle: throttle,\n closest: closest,\n toggleClass: toggleClass,\n clone: clone,\n index: index,\n nextTick: _nextTick,\n cancelNextTick: _cancelNextTick,\n detectDirection: _detectDirection,\n getChild: getChild\n};\n/**\r\n * Get the Sortable instance of an element\r\n * @param {HTMLElement} element The element\r\n * @return {Sortable|undefined} The instance of Sortable\r\n */\n\nSortable.get = function (element) {\n return element[expando];\n};\n/**\r\n * Mount a plugin to Sortable\r\n * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted\r\n */\n\n\nSortable.mount = function () {\n for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {\n plugins[_key] = arguments[_key];\n }\n\n if (plugins[0].constructor === Array) plugins = plugins[0];\n plugins.forEach(function (plugin) {\n if (!plugin.prototype || !plugin.prototype.constructor) {\n throw \"Sortable: Mounted plugin must be a constructor function, not \".concat({}.toString.call(plugin));\n }\n\n if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);\n PluginManager.mount(plugin);\n });\n};\n/**\r\n * Create sortable instance\r\n * @param {HTMLElement} el\r\n * @param {Object} [options]\r\n */\n\n\nSortable.create = function (el, options) {\n return new Sortable(el, options);\n}; // Export\n\n\nSortable.version = version;\n\nvar autoScrolls = [],\n scrollEl,\n scrollRootEl,\n scrolling = false,\n lastAutoScrollX,\n lastAutoScrollY,\n touchEvt$1,\n pointerElemChangedInterval;\n\nfunction AutoScrollPlugin() {\n function AutoScroll() {\n this.defaults = {\n scroll: true,\n forceAutoScrollFallback: false,\n scrollSensitivity: 30,\n scrollSpeed: 10,\n bubbleScroll: true\n }; // Bind all private methods\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n }\n\n AutoScroll.prototype = {\n dragStarted: function dragStarted(_ref) {\n var originalEvent = _ref.originalEvent;\n\n if (this.sortable.nativeDraggable) {\n on(document, 'dragover', this._handleAutoScroll);\n } else {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._handleFallbackAutoScroll);\n } else if (originalEvent.touches) {\n on(document, 'touchmove', this._handleFallbackAutoScroll);\n } else {\n on(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref2) {\n var originalEvent = _ref2.originalEvent;\n\n // For when bubbling is canceled and using fallback (fallback 'touchmove' always reached)\n if (!this.options.dragOverBubble && !originalEvent.rootEl) {\n this._handleAutoScroll(originalEvent);\n }\n },\n drop: function drop() {\n if (this.sortable.nativeDraggable) {\n off(document, 'dragover', this._handleAutoScroll);\n } else {\n off(document, 'pointermove', this._handleFallbackAutoScroll);\n off(document, 'touchmove', this._handleFallbackAutoScroll);\n off(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n\n clearPointerElemChangedInterval();\n clearAutoScrolls();\n cancelThrottle();\n },\n nulling: function nulling() {\n touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;\n autoScrolls.length = 0;\n },\n _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {\n this._handleAutoScroll(evt, true);\n },\n _handleAutoScroll: function _handleAutoScroll(evt, fallback) {\n var _this = this;\n\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n elem = document.elementFromPoint(x, y);\n touchEvt$1 = evt; // IE does not seem to have native autoscroll,\n // Edge's autoscroll seems too conditional,\n // MACOS Safari does not have autoscroll,\n // Firefox and Chrome are good\n\n if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {\n autoScroll(evt, this.options, elem, fallback); // Listener for pointer element change\n\n var ogElemScroller = getParentAutoScrollElement(elem, true);\n\n if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {\n pointerElemChangedInterval && clearPointerElemChangedInterval(); // Detect for pointer elem change, emulating native DnD behaviour\n\n pointerElemChangedInterval = setInterval(function () {\n var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);\n\n if (newElem !== ogElemScroller) {\n ogElemScroller = newElem;\n clearAutoScrolls();\n }\n\n autoScroll(evt, _this.options, newElem, fallback);\n }, 10);\n lastAutoScrollX = x;\n lastAutoScrollY = y;\n }\n } else {\n // if DnD is enabled (and browser has good autoscrolling), first autoscroll will already scroll, so get parent autoscroll of first autoscroll\n if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {\n clearAutoScrolls();\n return;\n }\n\n autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);\n }\n }\n };\n return _extends(AutoScroll, {\n pluginName: 'scroll',\n initializeByDefault: true\n });\n}\n\nfunction clearAutoScrolls() {\n autoScrolls.forEach(function (autoScroll) {\n clearInterval(autoScroll.pid);\n });\n autoScrolls = [];\n}\n\nfunction clearPointerElemChangedInterval() {\n clearInterval(pointerElemChangedInterval);\n}\n\nvar autoScroll = throttle(function (evt, options, rootEl, isFallback) {\n // Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521\n if (!options.scroll) return;\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n sens = options.scrollSensitivity,\n speed = options.scrollSpeed,\n winScroller = getWindowScrollingElement();\n var scrollThisInstance = false,\n scrollCustomFn; // New scroll root, set scrollEl\n\n if (scrollRootEl !== rootEl) {\n scrollRootEl = rootEl;\n clearAutoScrolls();\n scrollEl = options.scroll;\n scrollCustomFn = options.scrollFn;\n\n if (scrollEl === true) {\n scrollEl = getParentAutoScrollElement(rootEl, true);\n }\n }\n\n var layersOut = 0;\n var currentParent = scrollEl;\n\n do {\n var el = currentParent,\n rect = getRect(el),\n top = rect.top,\n bottom = rect.bottom,\n left = rect.left,\n right = rect.right,\n width = rect.width,\n height = rect.height,\n canScrollX = void 0,\n canScrollY = void 0,\n scrollWidth = el.scrollWidth,\n scrollHeight = el.scrollHeight,\n elCSS = css(el),\n scrollPosX = el.scrollLeft,\n scrollPosY = el.scrollTop;\n\n if (el === winScroller) {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll' || elCSS.overflowX === 'visible');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll' || elCSS.overflowY === 'visible');\n } else {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll');\n }\n\n var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);\n var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);\n\n if (!autoScrolls[layersOut]) {\n for (var i = 0; i <= layersOut; i++) {\n if (!autoScrolls[i]) {\n autoScrolls[i] = {};\n }\n }\n }\n\n if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {\n autoScrolls[layersOut].el = el;\n autoScrolls[layersOut].vx = vx;\n autoScrolls[layersOut].vy = vy;\n clearInterval(autoScrolls[layersOut].pid);\n\n if (vx != 0 || vy != 0) {\n scrollThisInstance = true;\n /* jshint loopfunc:true */\n\n autoScrolls[layersOut].pid = setInterval(function () {\n // emulate drag over during autoscroll (fallback), emulating native DnD behaviour\n if (isFallback && this.layer === 0) {\n Sortable.active._onTouchMove(touchEvt$1); // To move ghost if it is positioned absolutely\n\n }\n\n var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;\n var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;\n\n if (typeof scrollCustomFn === 'function') {\n if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== 'continue') {\n return;\n }\n }\n\n scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);\n }.bind({\n layer: layersOut\n }), 24);\n }\n }\n\n layersOut++;\n } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));\n\n scrolling = scrollThisInstance; // in case another function catches scrolling as false in between when it is not\n}, 30);\n\nvar drop = function drop(_ref) {\n var originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n dragEl = _ref.dragEl,\n activeSortable = _ref.activeSortable,\n dispatchSortableEvent = _ref.dispatchSortableEvent,\n hideGhostForTarget = _ref.hideGhostForTarget,\n unhideGhostForTarget = _ref.unhideGhostForTarget;\n if (!originalEvent) return;\n var toSortable = putSortable || activeSortable;\n hideGhostForTarget();\n var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;\n var target = document.elementFromPoint(touch.clientX, touch.clientY);\n unhideGhostForTarget();\n\n if (toSortable && !toSortable.el.contains(target)) {\n dispatchSortableEvent('spill');\n this.onSpill({\n dragEl: dragEl,\n putSortable: putSortable\n });\n }\n};\n\nfunction Revert() {}\n\nRevert.prototype = {\n startIndex: null,\n dragStart: function dragStart(_ref2) {\n var oldDraggableIndex = _ref2.oldDraggableIndex;\n this.startIndex = oldDraggableIndex;\n },\n onSpill: function onSpill(_ref3) {\n var dragEl = _ref3.dragEl,\n putSortable = _ref3.putSortable;\n this.sortable.captureAnimationState();\n\n if (putSortable) {\n putSortable.captureAnimationState();\n }\n\n var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);\n\n if (nextSibling) {\n this.sortable.el.insertBefore(dragEl, nextSibling);\n } else {\n this.sortable.el.appendChild(dragEl);\n }\n\n this.sortable.animateAll();\n\n if (putSortable) {\n putSortable.animateAll();\n }\n },\n drop: drop\n};\n\n_extends(Revert, {\n pluginName: 'revertOnSpill'\n});\n\nfunction Remove() {}\n\nRemove.prototype = {\n onSpill: function onSpill(_ref4) {\n var dragEl = _ref4.dragEl,\n putSortable = _ref4.putSortable;\n var parentSortable = putSortable || this.sortable;\n parentSortable.captureAnimationState();\n dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);\n parentSortable.animateAll();\n },\n drop: drop\n};\n\n_extends(Remove, {\n pluginName: 'removeOnSpill'\n});\n\nvar lastSwapEl;\n\nfunction SwapPlugin() {\n function Swap() {\n this.defaults = {\n swapClass: 'sortable-swap-highlight'\n };\n }\n\n Swap.prototype = {\n dragStart: function dragStart(_ref) {\n var dragEl = _ref.dragEl;\n lastSwapEl = dragEl;\n },\n dragOverValid: function dragOverValid(_ref2) {\n var completed = _ref2.completed,\n target = _ref2.target,\n onMove = _ref2.onMove,\n activeSortable = _ref2.activeSortable,\n changed = _ref2.changed,\n cancel = _ref2.cancel;\n if (!activeSortable.options.swap) return;\n var el = this.sortable.el,\n options = this.options;\n\n if (target && target !== el) {\n var prevSwapEl = lastSwapEl;\n\n if (onMove(target) !== false) {\n toggleClass(target, options.swapClass, true);\n lastSwapEl = target;\n } else {\n lastSwapEl = null;\n }\n\n if (prevSwapEl && prevSwapEl !== lastSwapEl) {\n toggleClass(prevSwapEl, options.swapClass, false);\n }\n }\n\n changed();\n completed(true);\n cancel();\n },\n drop: function drop(_ref3) {\n var activeSortable = _ref3.activeSortable,\n putSortable = _ref3.putSortable,\n dragEl = _ref3.dragEl;\n var toSortable = putSortable || this.sortable;\n var options = this.options;\n lastSwapEl && toggleClass(lastSwapEl, options.swapClass, false);\n\n if (lastSwapEl && (options.swap || putSortable && putSortable.options.swap)) {\n if (dragEl !== lastSwapEl) {\n toSortable.captureAnimationState();\n if (toSortable !== activeSortable) activeSortable.captureAnimationState();\n swapNodes(dragEl, lastSwapEl);\n toSortable.animateAll();\n if (toSortable !== activeSortable) activeSortable.animateAll();\n }\n }\n },\n nulling: function nulling() {\n lastSwapEl = null;\n }\n };\n return _extends(Swap, {\n pluginName: 'swap',\n eventProperties: function eventProperties() {\n return {\n swapItem: lastSwapEl\n };\n }\n });\n}\n\nfunction swapNodes(n1, n2) {\n var p1 = n1.parentNode,\n p2 = n2.parentNode,\n i1,\n i2;\n if (!p1 || !p2 || p1.isEqualNode(n2) || p2.isEqualNode(n1)) return;\n i1 = index(n1);\n i2 = index(n2);\n\n if (p1.isEqualNode(p2) && i1 < i2) {\n i2++;\n }\n\n p1.insertBefore(n2, p1.children[i1]);\n p2.insertBefore(n1, p2.children[i2]);\n}\n\nvar multiDragElements = [],\n multiDragClones = [],\n lastMultiDragSelect,\n // for selection with modifier key down (SHIFT)\nmultiDragSortable,\n initialFolding = false,\n // Initial multi-drag fold when drag started\nfolding = false,\n // Folding any other time\ndragStarted = false,\n dragEl$1,\n clonesFromRect,\n clonesHidden;\n\nfunction MultiDragPlugin() {\n function MultiDrag(sortable) {\n // Bind all private methods\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n\n if (!sortable.options.avoidImplicitDeselect) {\n if (sortable.options.supportPointer) {\n on(document, 'pointerup', this._deselectMultiDrag);\n } else {\n on(document, 'mouseup', this._deselectMultiDrag);\n on(document, 'touchend', this._deselectMultiDrag);\n }\n }\n\n on(document, 'keydown', this._checkKeyDown);\n on(document, 'keyup', this._checkKeyUp);\n this.defaults = {\n selectedClass: 'sortable-selected',\n multiDragKey: null,\n avoidImplicitDeselect: false,\n setData: function setData(dataTransfer, dragEl) {\n var data = '';\n\n if (multiDragElements.length && multiDragSortable === sortable) {\n multiDragElements.forEach(function (multiDragElement, i) {\n data += (!i ? '' : ', ') + multiDragElement.textContent;\n });\n } else {\n data = dragEl.textContent;\n }\n\n dataTransfer.setData('Text', data);\n }\n };\n }\n\n MultiDrag.prototype = {\n multiDragKeyDown: false,\n isMultiDrag: false,\n delayStartGlobal: function delayStartGlobal(_ref) {\n var dragged = _ref.dragEl;\n dragEl$1 = dragged;\n },\n delayEnded: function delayEnded() {\n this.isMultiDrag = ~multiDragElements.indexOf(dragEl$1);\n },\n setupClone: function setupClone(_ref2) {\n var sortable = _ref2.sortable,\n cancel = _ref2.cancel;\n if (!this.isMultiDrag) return;\n\n for (var i = 0; i < multiDragElements.length; i++) {\n multiDragClones.push(clone(multiDragElements[i]));\n multiDragClones[i].sortableIndex = multiDragElements[i].sortableIndex;\n multiDragClones[i].draggable = false;\n multiDragClones[i].style['will-change'] = '';\n toggleClass(multiDragClones[i], this.options.selectedClass, false);\n multiDragElements[i] === dragEl$1 && toggleClass(multiDragClones[i], this.options.chosenClass, false);\n }\n\n sortable._hideClone();\n\n cancel();\n },\n clone: function clone(_ref3) {\n var sortable = _ref3.sortable,\n rootEl = _ref3.rootEl,\n dispatchSortableEvent = _ref3.dispatchSortableEvent,\n cancel = _ref3.cancel;\n if (!this.isMultiDrag) return;\n\n if (!this.options.removeCloneOnHide) {\n if (multiDragElements.length && multiDragSortable === sortable) {\n insertMultiDragClones(true, rootEl);\n dispatchSortableEvent('clone');\n cancel();\n }\n }\n },\n showClone: function showClone(_ref4) {\n var cloneNowShown = _ref4.cloneNowShown,\n rootEl = _ref4.rootEl,\n cancel = _ref4.cancel;\n if (!this.isMultiDrag) return;\n insertMultiDragClones(false, rootEl);\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', '');\n });\n cloneNowShown();\n clonesHidden = false;\n cancel();\n },\n hideClone: function hideClone(_ref5) {\n var _this = this;\n\n var sortable = _ref5.sortable,\n cloneNowHidden = _ref5.cloneNowHidden,\n cancel = _ref5.cancel;\n if (!this.isMultiDrag) return;\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', 'none');\n\n if (_this.options.removeCloneOnHide && clone.parentNode) {\n clone.parentNode.removeChild(clone);\n }\n });\n cloneNowHidden();\n clonesHidden = true;\n cancel();\n },\n dragStartGlobal: function dragStartGlobal(_ref6) {\n var sortable = _ref6.sortable;\n\n if (!this.isMultiDrag && multiDragSortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n }\n\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.sortableIndex = index(multiDragElement);\n }); // Sort multi-drag elements\n\n multiDragElements = multiDragElements.sort(function (a, b) {\n return a.sortableIndex - b.sortableIndex;\n });\n dragStarted = true;\n },\n dragStarted: function dragStarted(_ref7) {\n var _this2 = this;\n\n var sortable = _ref7.sortable;\n if (!this.isMultiDrag) return;\n\n if (this.options.sort) {\n // Capture rects,\n // hide multi drag elements (by positioning them absolute),\n // set multi drag elements rects to dragRect,\n // show multi drag elements,\n // animate to rects,\n // unset rects & remove from DOM\n sortable.captureAnimationState();\n\n if (this.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n css(multiDragElement, 'position', 'absolute');\n });\n var dragRect = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRect);\n });\n folding = true;\n initialFolding = true;\n }\n }\n\n sortable.animateAll(function () {\n folding = false;\n initialFolding = false;\n\n if (_this2.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n } // Remove all auxiliary multidrag items from el, if sorting enabled\n\n\n if (_this2.options.sort) {\n removeMultiDragElements();\n }\n });\n },\n dragOver: function dragOver(_ref8) {\n var target = _ref8.target,\n completed = _ref8.completed,\n cancel = _ref8.cancel;\n\n if (folding && ~multiDragElements.indexOf(target)) {\n completed(false);\n cancel();\n }\n },\n revert: function revert(_ref9) {\n var fromSortable = _ref9.fromSortable,\n rootEl = _ref9.rootEl,\n sortable = _ref9.sortable,\n dragRect = _ref9.dragRect;\n\n if (multiDragElements.length > 1) {\n // Setup unfold animation\n multiDragElements.forEach(function (multiDragElement) {\n sortable.addAnimationState({\n target: multiDragElement,\n rect: folding ? getRect(multiDragElement) : dragRect\n });\n unsetRect(multiDragElement);\n multiDragElement.fromRect = dragRect;\n fromSortable.removeAnimationState(multiDragElement);\n });\n folding = false;\n insertMultiDragElements(!this.options.removeCloneOnHide, rootEl);\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref10) {\n var sortable = _ref10.sortable,\n isOwner = _ref10.isOwner,\n insertion = _ref10.insertion,\n activeSortable = _ref10.activeSortable,\n parentEl = _ref10.parentEl,\n putSortable = _ref10.putSortable;\n var options = this.options;\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n }\n\n initialFolding = false; // If leaving sort:false root, or already folding - Fold to new location\n\n if (options.animation && multiDragElements.length > 1 && (folding || !isOwner && !activeSortable.options.sort && !putSortable)) {\n // Fold: Set all multi drag elements's rects to dragEl's rect when multi-drag elements are invisible\n var dragRectAbsolute = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRectAbsolute); // Move element(s) to end of parentEl so that it does not interfere with multi-drag clones insertion if they are inserted\n // while folding, and so that we can capture them again because old sortable will no longer be fromSortable\n\n parentEl.appendChild(multiDragElement);\n });\n folding = true;\n } // Clones must be shown (and check to remove multi drags) after folding when interfering multiDragElements are moved out\n\n\n if (!isOwner) {\n // Only remove if not folding (folding will remove them anyways)\n if (!folding) {\n removeMultiDragElements();\n }\n\n if (multiDragElements.length > 1) {\n var clonesHiddenBefore = clonesHidden;\n\n activeSortable._showClone(sortable); // Unfold animation for clones if showing from hidden\n\n\n if (activeSortable.options.animation && !clonesHidden && clonesHiddenBefore) {\n multiDragClones.forEach(function (clone) {\n activeSortable.addAnimationState({\n target: clone,\n rect: clonesFromRect\n });\n clone.fromRect = clonesFromRect;\n clone.thisAnimationDuration = null;\n });\n }\n } else {\n activeSortable._showClone(sortable);\n }\n }\n }\n },\n dragOverAnimationCapture: function dragOverAnimationCapture(_ref11) {\n var dragRect = _ref11.dragRect,\n isOwner = _ref11.isOwner,\n activeSortable = _ref11.activeSortable;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n });\n\n if (activeSortable.options.animation && !isOwner && activeSortable.multiDrag.isMultiDrag) {\n clonesFromRect = _extends({}, dragRect);\n var dragMatrix = matrix(dragEl$1, true);\n clonesFromRect.top -= dragMatrix.f;\n clonesFromRect.left -= dragMatrix.e;\n }\n },\n dragOverAnimationComplete: function dragOverAnimationComplete() {\n if (folding) {\n folding = false;\n removeMultiDragElements();\n }\n },\n drop: function drop(_ref12) {\n var evt = _ref12.originalEvent,\n rootEl = _ref12.rootEl,\n parentEl = _ref12.parentEl,\n sortable = _ref12.sortable,\n dispatchSortableEvent = _ref12.dispatchSortableEvent,\n oldIndex = _ref12.oldIndex,\n putSortable = _ref12.putSortable;\n var toSortable = putSortable || this.sortable;\n if (!evt) return;\n var options = this.options,\n children = parentEl.children; // Multi-drag selection\n\n if (!dragStarted) {\n if (options.multiDragKey && !this.multiDragKeyDown) {\n this._deselectMultiDrag();\n }\n\n toggleClass(dragEl$1, options.selectedClass, !~multiDragElements.indexOf(dragEl$1));\n\n if (!~multiDragElements.indexOf(dragEl$1)) {\n multiDragElements.push(dragEl$1);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: dragEl$1,\n originalEvent: evt\n }); // Modifier activated, select from last to dragEl\n\n if (evt.shiftKey && lastMultiDragSelect && sortable.el.contains(lastMultiDragSelect)) {\n var lastIndex = index(lastMultiDragSelect),\n currentIndex = index(dragEl$1);\n\n if (~lastIndex && ~currentIndex && lastIndex !== currentIndex) {\n // Must include lastMultiDragSelect (select it), in case modified selection from no selection\n // (but previous selection existed)\n var n, i;\n\n if (currentIndex > lastIndex) {\n i = lastIndex;\n n = currentIndex;\n } else {\n i = currentIndex;\n n = lastIndex + 1;\n }\n\n for (; i < n; i++) {\n if (~multiDragElements.indexOf(children[i])) continue;\n toggleClass(children[i], options.selectedClass, true);\n multiDragElements.push(children[i]);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: children[i],\n originalEvent: evt\n });\n }\n }\n } else {\n lastMultiDragSelect = dragEl$1;\n }\n\n multiDragSortable = toSortable;\n } else {\n multiDragElements.splice(multiDragElements.indexOf(dragEl$1), 1);\n lastMultiDragSelect = null;\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'deselect',\n targetEl: dragEl$1,\n originalEvent: evt\n });\n }\n } // Multi-drag drop\n\n\n if (dragStarted && this.isMultiDrag) {\n folding = false; // Do not \"unfold\" after around dragEl if reverted\n\n if ((parentEl[expando].options.sort || parentEl !== rootEl) && multiDragElements.length > 1) {\n var dragRect = getRect(dragEl$1),\n multiDragIndex = index(dragEl$1, ':not(.' + this.options.selectedClass + ')');\n if (!initialFolding && options.animation) dragEl$1.thisAnimationDuration = null;\n toSortable.captureAnimationState();\n\n if (!initialFolding) {\n if (options.animation) {\n dragEl$1.fromRect = dragRect;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n\n if (multiDragElement !== dragEl$1) {\n var rect = folding ? getRect(multiDragElement) : dragRect;\n multiDragElement.fromRect = rect; // Prepare unfold animation\n\n toSortable.addAnimationState({\n target: multiDragElement,\n rect: rect\n });\n }\n });\n } // Multi drag elements are not necessarily removed from the DOM on drop, so to reinsert\n // properly they must all be removed\n\n\n removeMultiDragElements();\n multiDragElements.forEach(function (multiDragElement) {\n if (children[multiDragIndex]) {\n parentEl.insertBefore(multiDragElement, children[multiDragIndex]);\n } else {\n parentEl.appendChild(multiDragElement);\n }\n\n multiDragIndex++;\n }); // If initial folding is done, the elements may have changed position because they are now\n // unfolding around dragEl, even though dragEl may not have his index changed, so update event\n // must be fired here as Sortable will not.\n\n if (oldIndex === index(dragEl$1)) {\n var update = false;\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement.sortableIndex !== index(multiDragElement)) {\n update = true;\n return;\n }\n });\n\n if (update) {\n dispatchSortableEvent('update');\n }\n }\n } // Must be done after capturing individual rects (scroll bar)\n\n\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n toSortable.animateAll();\n }\n\n multiDragSortable = toSortable;\n } // Remove clones if necessary\n\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n multiDragClones.forEach(function (clone) {\n clone.parentNode && clone.parentNode.removeChild(clone);\n });\n }\n },\n nullingGlobal: function nullingGlobal() {\n this.isMultiDrag = dragStarted = false;\n multiDragClones.length = 0;\n },\n destroyGlobal: function destroyGlobal() {\n this._deselectMultiDrag();\n\n off(document, 'pointerup', this._deselectMultiDrag);\n off(document, 'mouseup', this._deselectMultiDrag);\n off(document, 'touchend', this._deselectMultiDrag);\n off(document, 'keydown', this._checkKeyDown);\n off(document, 'keyup', this._checkKeyUp);\n },\n _deselectMultiDrag: function _deselectMultiDrag(evt) {\n if (typeof dragStarted !== \"undefined\" && dragStarted) return; // Only deselect if selection is in this sortable\n\n if (multiDragSortable !== this.sortable) return; // Only deselect if target is not item in this sortable\n\n if (evt && closest(evt.target, this.options.draggable, this.sortable.el, false)) return; // Only deselect if left click\n\n if (evt && evt.button !== 0) return;\n\n while (multiDragElements.length) {\n var el = multiDragElements[0];\n toggleClass(el, this.options.selectedClass, false);\n multiDragElements.shift();\n dispatchEvent({\n sortable: this.sortable,\n rootEl: this.sortable.el,\n name: 'deselect',\n targetEl: el,\n originalEvent: evt\n });\n }\n },\n _checkKeyDown: function _checkKeyDown(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = true;\n }\n },\n _checkKeyUp: function _checkKeyUp(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = false;\n }\n }\n };\n return _extends(MultiDrag, {\n // Static methods & properties\n pluginName: 'multiDrag',\n utils: {\n /**\r\n * Selects the provided multi-drag item\r\n * @param {HTMLElement} el The element to be selected\r\n */\n select: function select(el) {\n var sortable = el.parentNode[expando];\n if (!sortable || !sortable.options.multiDrag || ~multiDragElements.indexOf(el)) return;\n\n if (multiDragSortable && multiDragSortable !== sortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n\n multiDragSortable = sortable;\n }\n\n toggleClass(el, sortable.options.selectedClass, true);\n multiDragElements.push(el);\n },\n\n /**\r\n * Deselects the provided multi-drag item\r\n * @param {HTMLElement} el The element to be deselected\r\n */\n deselect: function deselect(el) {\n var sortable = el.parentNode[expando],\n index = multiDragElements.indexOf(el);\n if (!sortable || !sortable.options.multiDrag || !~index) return;\n toggleClass(el, sortable.options.selectedClass, false);\n multiDragElements.splice(index, 1);\n }\n },\n eventProperties: function eventProperties() {\n var _this3 = this;\n\n var oldIndicies = [],\n newIndicies = [];\n multiDragElements.forEach(function (multiDragElement) {\n oldIndicies.push({\n multiDragElement: multiDragElement,\n index: multiDragElement.sortableIndex\n }); // multiDragElements will already be sorted if folding\n\n var newIndex;\n\n if (folding && multiDragElement !== dragEl$1) {\n newIndex = -1;\n } else if (folding) {\n newIndex = index(multiDragElement, ':not(.' + _this3.options.selectedClass + ')');\n } else {\n newIndex = index(multiDragElement);\n }\n\n newIndicies.push({\n multiDragElement: multiDragElement,\n index: newIndex\n });\n });\n return {\n items: _toConsumableArray(multiDragElements),\n clones: [].concat(multiDragClones),\n oldIndicies: oldIndicies,\n newIndicies: newIndicies\n };\n },\n optionListeners: {\n multiDragKey: function multiDragKey(key) {\n key = key.toLowerCase();\n\n if (key === 'ctrl') {\n key = 'Control';\n } else if (key.length > 1) {\n key = key.charAt(0).toUpperCase() + key.substr(1);\n }\n\n return key;\n }\n }\n });\n}\n\nfunction insertMultiDragElements(clonesInserted, rootEl) {\n multiDragElements.forEach(function (multiDragElement, i) {\n var target = rootEl.children[multiDragElement.sortableIndex + (clonesInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(multiDragElement, target);\n } else {\n rootEl.appendChild(multiDragElement);\n }\n });\n}\n/**\r\n * Insert multi-drag clones\r\n * @param {[Boolean]} elementsInserted Whether the multi-drag elements are inserted\r\n * @param {HTMLElement} rootEl\r\n */\n\n\nfunction insertMultiDragClones(elementsInserted, rootEl) {\n multiDragClones.forEach(function (clone, i) {\n var target = rootEl.children[clone.sortableIndex + (elementsInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(clone, target);\n } else {\n rootEl.appendChild(clone);\n }\n });\n}\n\nfunction removeMultiDragElements() {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n multiDragElement.parentNode && multiDragElement.parentNode.removeChild(multiDragElement);\n });\n}\n\nSortable.mount(new AutoScrollPlugin());\nSortable.mount(Remove, Revert);\n\nexport default Sortable;\nexport { MultiDragPlugin as MultiDrag, Sortable, SwapPlugin as Swap };\n","import SettingsActions from '../actions/SettingsActions';\nimport Maintenance from './MaintenanceManager';\nimport FipamoAdminAPI, { TASK_SYNC_SETTNIGS } from '../../libraries/FipamoAdminAPI';\nimport * as DataEvent from '../../../src/com/events/DataEvent';\nimport Mailer from '../actions/Mailer';\nimport Notifications from '../ui/Notifications';\nconst notify = new Notifications();\nexport default class SettingsIndex {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tthis.start();\n\t\tthis.admin = new FipamoAdminAPI(null);\n\t\tthis.mm = new Maintenance(null, null);\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\tlet self = this;\n\t\t//handle save button\n\t\tdocument.getElementById('save-toggle').addEventListener('click', () =>\n\t\t\tnew SettingsActions()\n\t\t\t\t.getInfo()\n\t\t\t\t.then(data => {\n\t\t\t\t\tnotify.alert('Saving Settings', null);\n\t\t\t\t\tself.admin.sync(TASK_SYNC_SETTNIGS, data).then(r => {\n\t\t\t\t\t\tif (r.type == DataEvent.SETTINGS_UPDATED) {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t\t.catch(() => {\n\t\t\t\t\t//console.log(err);\n\t\t\t\t})\n\t\t);\n\t\t//handle set up image uploads\n\t\tdocument.querySelector('[role=\"avatar\"]').addEventListener('click', () => {\n\t\t\tdocument.getElementById('avatar-upload').click();\n\t\t});\n\t\tdocument.querySelector('[role=\"background\"]').addEventListener('click', () => {\n\t\t\tdocument.getElementById('background-upload').click();\n\t\t});\n\t\tdocument.getElementById('avatar-upload').addEventListener(\n\t\t\t'change',\n\t\t\te => {\n\t\t\t\tself.handleImageUpload(e.target.id, e.target.files);\n\t\t\t},\n\t\t\tfalse\n\t\t);\n\t\tdocument.getElementById('background-upload').addEventListener(\n\t\t\t'change',\n\t\t\te => {\n\t\t\t\tself.handleImageUpload(e.target.id, e.target.files);\n\t\t\t},\n\t\t\tfalse\n\t\t);\n\t\t//handle api access toggle\n\t\tvar apiButton = document.getElementById('api-access-toggle');\n\t\tvar apiStatus = document.getElementById('api-status');\n\t\tapiButton.addEventListener('click', e => {\n\t\t\te.stopPropagation();\n\t\t\te.preventDefault();\n\t\t\tif (apiButton.getAttribute('data-enabled') == 'false') {\n\t\t\t\tapiButton.setAttribute('data-enabled', 'true');\n\t\t\t\tapiStatus.innerHTML = 'API ACCESS IS ENABLED';\n\t\t\t} else {\n\t\t\t\tapiButton.setAttribute('data-enabled', 'false');\n\t\t\t\tapiStatus.innerHTML = 'API ACCESS IS DISABLED';\n\t\t\t}\n\t\t});\n\n\t\t//handle dynamic page rendering\n\t\tvar dynamicRenderButton = document.getElementById('dynamic-render-toggle');\n\t\tvar dynamicRenderStatus = document.getElementById('dynamic-render-status');\n\t\tdynamicRenderButton.addEventListener('click', e => {\n\t\t\te.stopPropagation();\n\t\t\te.preventDefault();\n\t\t\tif (dynamicRenderButton.getAttribute('data-enabled') == 'false') {\n\t\t\t\tdynamicRenderButton.setAttribute('data-enabled', 'true');\n\t\t\t\tdynamicRenderStatus.innerHTML = 'DYNAMIC PAGE RENDERING';\n\t\t\t} else {\n\t\t\t\tdynamicRenderButton.setAttribute('data-enabled', 'false');\n\t\t\t\tdynamicRenderStatus.innerHTML = 'STATIC PAGE RENDERING';\n\t\t\t}\n\t\t});\n\n\t\tdocument\n\t\t\t.getElementById('send-mail')\n\t\t\t.addEventListener('click', e => this.handleMailer(e));\n\t\tdocument\n\t\t\t.getElementById('publish-pages')\n\t\t\t.addEventListener('click', e => this.handlePublished(e));\n\t\t//handle page render on save toggle\n\t\tdocument\n\t\t\t.getElementById('render-toggle')\n\t\t\t.addEventListener('click', e => this.toggleRender(e));\n\t\t//handle theme toggle\n\t\tlet themeBtns = document.querySelectorAll('.theme-select');\n\t\tfor (var i = 0, length = themeBtns.length; i < length; i++) {\n\t\t\tthemeBtns[i].addEventListener('click', e => this.handleThemes(e));\n\t\t}\n\t\t//handle mail options\n\t\tlet mailBtn = document.querySelectorAll('.mail-option');\n\t\tfor (i = 0, length = mailBtn.length; i < length; i++) {\n\t\t\tmailBtn[i].addEventListener('click', e => this.handleMailOptions(e));\n\t\t}\n\t\t//handle backup from settings [disabled]\n\n\t\tdocument\n\t\t\t.getElementById('create-backup')\n\t\t\t.addEventListener('click', e => this.handleBackup(e));\n\n\t\t/*\n document\n .getElementById(\"reindex-pages\")\n .addEventListener(\"click\", (e) => this.handleReindex(e));\n */\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\ttogglePrivacy(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tif (e.target.getAttribute('data-private') == 'false') {\n\t\t\te.target.setAttribute('data-private', 'true');\n\t\t\te.target.innerHTML = 'SITE IS PUBLIC';\n\t\t} else {\n\t\t\te.target.setAttribute('data-private', 'false');\n\t\t\te.target.innerHTML = 'SITE IS PRIVATE';\n\t\t}\n\t}\n\ttoggleRender(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet button = document.getElementById('render-toggle');\n\t\tif (button.getAttribute('data-render') == 'false') {\n\t\t\tbutton.setAttribute('data-render', 'true');\n\t\t\t//e.target.innerHTML = 'RENDER PAGES ON SAVE';\n\t\t} else {\n\t\t\tbutton.setAttribute('data-render', 'false');\n\t\t\t//e.target.innerHTML = \"DON'T RENDER PAGES ON SAVE\";\n\t\t}\n\t}\n\thandleMailer() {\n\t\tlet mailer = new Mailer();\n\t\tmailer.testMail();\n\t\t//mailer.sendMail();\n\t}\n\thandleThemes(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet themes = document.querySelectorAll('.theme-select');\n\t\tfor (var i = 0, length = themes.length; i < length; i++) {\n\t\t\te.target.id == themes[i].id\n\t\t\t\t? themes[i].setAttribute('data-enabled', 'true')\n\t\t\t\t: themes[i].setAttribute('data-enabled', 'false');\n\t\t}\n\t}\n\thandleMailOptions(e) {\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tlet smtp = document.getElementById('mail-smtp');\n\t\tlet mailgun = document.getElementById('mail-mg');\n\t\tlet mail = document.querySelectorAll('.mail-option');\n\t\tfor (var i = 0, length = mail.length; i < length; i++) {\n\t\t\tif (e.target.id == mail[i].id) {\n\t\t\t\tmail[i].setAttribute('data-enabled', 'true');\n\t\t\t\tif (e.target.id == 'option-smtp') {\n\t\t\t\t\tsmtp.setAttribute('data-enabled', 'true');\n\t\t\t\t\tmailgun.setAttribute('data-enabled', 'false');\n\t\t\t\t} else if (e.target.id == 'option-none') {\n\t\t\t\t\tsmtp.setAttribute('data-enabled', 'false');\n\t\t\t\t\tmailgun.setAttribute('data-enabled', 'false');\n\t\t\t\t} else {\n\t\t\t\t\tsmtp.setAttribute('data-enabled', 'false');\n\t\t\t\t\tmailgun.setAttribute('data-enabled', 'true');\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tmail[i].setAttribute('data-enabled', 'false');\n\t\t\t}\n\t\t}\n\t}\n\thandleImageUpload(type, files) {\n\t\tnotify.alert('Uploading Image... ', null);\n\t\tlet self = this;\n\t\tnotify.alert('Uploading Image', null);\n\t\tlet upload = new FormData();\n\t\tupload.enctype = 'multipart/form-data';\n\t\tupload.append('source', type);\n\t\tupload.append('upload_files[]', files[0], files[0].name);\n\n\t\tthis.mm\n\t\t\t.filesUpload(files[0].type, upload)\n\t\t\t.then(r => {\n\t\t\t\tif (type == 'avatar-upload') {\n\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\tdocument.querySelector('[role=\"avatar\"]').style.background =\n\t\t\t\t\t\t'url(' + r.filePath + ') no-repeat center center / cover';\n\t\t\t\t} else {\n\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\tdocument.querySelector('[role=\"background\"]').style.background =\n\t\t\t\t\t\t'url(' + r.filePath + ') no-repeat center center / cover';\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(() => {\n\t\t\t\t//console.log(err)\n\t\t\t});\n\t}\n\thandlePublished(e) {\n\t\tif (this.processing) return;\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tlet self = this;\n\t\tlet task = { task: 'PUBLISH_ALL' };\n\t\tthis.processing = true;\n\t\tnotify.alert('Publishing site...', null);\n\t\tthis.admin\n\t\t\t.publish(task)\n\t\t\t.then(r => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(r.message, true);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(err, false);\n\t\t\t});\n\t}\n\n\thandleBackup(e) {\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tnotify.alert('Creating backup', null);\n\t\tthis.mm\n\t\t\t.backup()\n\t\t\t.then(r => {\n\t\t\t\tnotify.alert(r.message, true);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tnotify.alert(err, false);\n\t\t\t});\n\t}\n\n\thandleReindex(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tlet task = { task: 'cleanup pages indexes' };\n\t\tthis.processing = true;\n\t\tnotify.alert('Cleaning up page indexes', null);\n\t\tthis.admin\n\t\t\t.handleReindex(task)\n\t\t\t.then(r => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(r.message, true);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(err, false);\n\t\t\t});\n\t}\n}\n","export default class SettingsActions {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tgetInfo() {\n\t\tlet handle = document.getElementById('settings-handle').value;\n\t\tlet email = document.getElementById('settings-email').value;\n\t\tlet url = document.getElementById('settings-url').value;\n\t\tlet title = document.getElementById('settings-title').value;\n\t\tlet desc = document.getElementById('settings-desc').value;\n\t\t//let privacy = document.getElementById('privacy-toggle').getAttribute('data-private');\n\t\tlet render = document.getElementById('render-toggle').getAttribute('data-render');\n\t\tlet background = document\n\t\t\t.querySelector('[role=\"background\"]')\n\t\t\t.style.backgroundImage.slice(4, -1)\n\t\t\t.replace(/\"/g, '');\n\t\tlet selected = '';\n\t\tlet selects = document.querySelectorAll('.theme-select');\n\t\tlet smtpDomain = document.getElementById('smtp-domain').value;\n\t\tlet smtpEmail = document.getElementById('smtp-email').value;\n\t\tlet smtpPass = document.getElementById('smtp-pass').value;\n\t\tlet mgDomain = document.getElementById('mg-domain').value;\n\t\tlet mgKey = document.getElementById('mg-key').value;\n\t\tlet mailActive = '';\n\t\tlet mailOptions = document.querySelectorAll('.mail-option');\n\t\tlet apiStatus = document\n\t\t\t.getElementById('api-access-toggle')\n\t\t\t.getAttribute('data-enabled');\n\t\tlet dynamicRenderStatus = document\n\t\t\t.getElementById('dynamic-render-toggle')\n\t\t\t.getAttribute('data-enabled');\n\t\tvar i, count;\n\t\tfor (i = 0, count = selects.length; i < count; i++) {\n\t\t\tif (selects[i].getAttribute('data-enabled') == 'true')\n\t\t\t\tselected = selects[i].id;\n\t\t}\n\n\t\tfor (i = 0, count = mailOptions.length; i < count; i++) {\n\t\t\tif (mailOptions[i].getAttribute('data-enabled') == 'true')\n\t\t\t\tmailActive = mailOptions[i].id;\n\t\t}\n\t\tlet settingsData = {\n\t\t\tglobal: {\n\t\t\t\tbase_url: url,\n\t\t\t\ttitle: title,\n\t\t\t\tdescriptions: desc,\n\t\t\t\tbackground: background,\n\t\t\t\tprivate: false,\n\t\t\t\trenderOnSave: render,\n\t\t\t\ttheme: selected,\n\t\t\t\texternalAPI: apiStatus,\n\t\t\t\tdynamicRender: dynamicRenderStatus\n\t\t\t},\n\t\t\tmember: { handle: handle, email: email },\n\t\t\temail: {\n\t\t\t\tactive: mailActive,\n\t\t\t\tsmtp: {\n\t\t\t\t\tdomain: smtpDomain,\n\t\t\t\t\temail: smtpEmail,\n\t\t\t\t\tpassword: smtpPass\n\t\t\t\t},\n\t\t\t\tmailgun: {\n\t\t\t\t\tdomain: mgDomain,\n\t\t\t\t\tkey: mgKey\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn new Promise(function (resolve) {\n\t\t\tresolve(settingsData);\n\t\t});\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","import FipamoAdminAPI from \"../../libraries/FipamoAdminAPI\";\nimport Notficaton from \"../ui/Notifications\";\nconst notify = new Notficaton();\nexport default class Mailer {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {}\n //--------------------------\n // methods\n //--------------------------\n sendMail() {\n let mailData = {\n content: \"This is a test email\"\n };\n let admin = new FipamoAdminAPI();\n admin\n .sendMail(mailData)\n .then((result) => {\n notify.alert(result.message, true);\n })\n .catch((err) => {\n notify.alert(err.message, false);\n });\n }\n testMail() {\n let mailData = {\n content: \"This is a test email\",\n mail_task: \"TESTING\"\n };\n let admin = new FipamoAdminAPI();\n admin\n .sendMail(mailData)\n .then((result) => {\n notify.alert(result.message, true);\n })\n .catch((err) => {\n notify.alert(err.message, false);\n });\n }\n //--------------------------\n // event handlers\n //--------------------------\n}\n","import FipamoAdminAPI, { TASK_SYNC_NAV } from '../../libraries/FipamoAdminAPI';\nimport NavActions from '../actions/NavActions';\nimport * as DataEvent from '../events/DataEvent';\nimport Notifications from '../ui/Notifications';\nimport Sortable from 'sortablejs';\nconst notify = new Notifications();\n\nexport default class NavIndex {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tthis.admin = new FipamoAdminAPI(null);\n\t\tthis.start();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\t//grabs elements and makes them sortables\n\t\tlet self = this;\n\t\tSortable.create(document.getElementById('nav-items'), {\n\t\t\tonUpdate: () => {\n\t\t\t\tnew NavActions().syncMenu().then(data => {\n\t\t\t\t\tnotify.alert('Updating Menu', null);\n\t\t\t\t\tself.admin.sync(TASK_SYNC_NAV, data).then(r => {\n\t\t\t\t\t\tif (r.type == DataEvent.MENU_UPDATED) {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\tvar nav = document.querySelectorAll('.nav-btn');\n\t\tfor (var i = 0, length = nav.length; i < length; i++) {\n\t\t\tnav[i].addEventListener('click', e => this.handleNavButton(e), false);\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleNavButton(e) {\n\t\tif (this.processing) return;\n\t\tlet id = '';\n\t\tlet self = this;\n\t\tswitch (e.target.id) {\n\t\t\tcase 'remove-item':\n\t\t\t\tid = e.target.getAttribute('data-id');\n\t\t\t\tnew NavActions().removeItem(id);\n\t\t\t\tnew NavActions().syncMenu().then(data => {\n\t\t\t\t\tdata.remove = e.target.getAttribute('data-uuid');\n\t\t\t\t\tnotify.alert('Editing Menu', null);\n\t\t\t\t\tself.processing = true;\n\t\t\t\t\tself.admin.sync(TASK_SYNC_NAV, data).then(r => {\n\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\tif (r.type == DataEvent.MENU_UPDATED) {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\tcase 'edit-item':\n\t\t\t\tself.processing = false;\n\t\t\t\twindow.location =\n\t\t\t\t\t'/dashboard/page/edit/' + e.target.getAttribute('data-id');\n\t\t\t\tbreak;\n\t\t}\n\t}\n}\n","export default class NavActions {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tsyncMenu() {\n\t\tlet navData = [];\n\t\tlet items = document.getElementById('nav-items').children;\n\t\tfor (let index = 0; index < items.length; index++) {\n\t\t\tnavData.push({\n\t\t\t\ttitle: items[index].getElementsByTagName('label')[0].innerHTML,\n\t\t\t\tid: items[index].id,\n\t\t\t\tslug: items[index].getAttribute('data-slug'),\n\t\t\t\tuuid: items[index].getAttribute('data-uuid'),\n\t\t\t\tpath: items[index].getAttribute('data-path')\n\t\t\t});\n\t\t}\n\n\t\tlet data = { menu: navData, remove: null };\n\t\treturn new Promise(function (resolve) {\n\t\t\tresolve(data);\n\t\t});\n\t}\n\n\tremoveItem(id) {\n\t\tdocument.getElementById('nav-items').removeChild(document.getElementById(id));\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","export default class Menu {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.mobile = false;\n\t\tthis.mobileMenu = document.querySelector('[role=\"mobile-menu\"]');\n\t\tdocument\n\t\t\t.querySelector('[role=\"menu-toggle\"]')\n\t\t\t.addEventListener('click', e => this.handleMobile(e));\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleMobile(e) {\n\t\tif (this.mobile) {\n\t\t\tthis.mobile = false;\n\t\t\tthis.mobileMenu.style.display = 'none';\n\t\t} else {\n\t\t\tthis.mobile = true;\n\t\t\tthis.mobileMenu.style.display = 'inline';\n\t\t}\n\t}\n}\n"],"names":["Base","document","addEventListener","FipamoAdminAPI","Maintenance","DataUitls","DataEvent","DashManager","Notfications","data","notify","constructor","processing","start","getElementById","querySelector","options","getElementsByClassName","index","length","e","handleOptions","handleLogin","handleSetup","handleRestore","handleReset","self","preventDefault","authForm","formDataToJSON","api","login","then","response","type","REQUEST_LAME","target","innerHTML","message","setTimeout","window","location","catch","err","stopPropagation","setUpForm","mm","create","API_INIT_LAME","form","restore","id","email","value","task","secret","alert","newPass","newPassConfirm","init","style","display","visibility","REQUEST_TYPE_POST","REQUEST_TYPE_GET","REQUEST_TYPE_PUT","REQUEST_TYPE_DELETE","CONTENT_TYPE_JSON","CONTENT_TYPE_FORM","API_STATUS","API_GET_SETTINGS","API_GET_MEMBER_INFO","API_NEW_PAGE","API_EDIT_PAGE","API_DELETE_PAGE","API_SETTINGS_SYNC","API_PUBLISH_PAGES","API_NAV_SYNC","API_REINDEX_PAGES","API_SEND_MAIL","API_LOGIN","AUTH_STATUS","TASK_SETTINGS_WRITE","TASK_PUBLISH_SITE","TASK_PAGE_CREATE","TASK_PAGE_EDIT","TASK_PAGE_DELETE","TASK_SEND_MAIL","TASK_REINDEX_PAGE","TASK_SYNC_SETTNIGS","TASK_SYNC_NAV","TASK_GET_SETTINGS","TASK_GET_MEMBER_INFO","API_ACCESS_GOOD","API_ACCESS_BAD","baseURL","progressBar","percentComplete","status","_request","token","Promise","resolve","reject","remote","key","result","sync","url","publish","pageActions","event","content","sendMail","getInfo","requestURL","eventType","requestType","contentType","requestData","request","XMLHttpRequest","upload","handleLoadProgress","open","onload","JSON","parse","error","setRequestHeader","send","stringify","percent","Math","ceil","loaded","total","width","default","API_INIT","API_RESTORE","API_GET_SECRET","API_RESET_PASS","API_CREATE_BACKUP","API_DOWNLOAD_BACKUP","API_RESTORE_BACKUP","API_UPLOAD_AVATAR","API_UPLOAD_BACKGROUND","API_IMAGE_UPLOAD","API_FILES_UPLOAD","TASK_SITE_INIT","TASK_BACKUP_RESTORE","TASK_BACKUP_CREATE","TASK_GET_SECRET","TASK_RESET_PASS","TASK_UPLOAD_FILES","MaintenanceManager","accetableFiles","method","FormData","backup","filesUpload","files","progress","append","r","DataUtils","imgLoad","responseType","Error","statusText","onerror","loadImage","src","myImage","Image","crossOrigin","imageURL","URL","createObjectURL","object","formData","forEach","hasOwnProperty","Array","isArray","push","REQUEST_GOOD","API_REQUEST_GOOD","API_REQUEST_LAME","IMG_REQUEST_GOOD","IMG_REQUEST_LAME","SETTINGS_LOADED","POST_IMAGE_ADDED","FEATURE_IMAGE_ADDED","PAGE_ERROR","PAGE_ADDED","PAGE_UPDATED","PAGE_DELETED","PAGES_RENDERED","PAGES_NOT_RENDERED","TAG_PAGES_RENDERED","TAG_PAGES_NOT_RENDERED","SETTINGS_UPDATED","SETTINGS_NOT_UPDATED","MENU_ADD_ITEM","MENU_DELETE_ITEM","MENU_UPDATED","AVATAR_UPLOADED","SITE_BACKGROUND_UPLOADED","UPLOAD_PROGRESS","API_PAGE_WRITE","API_PAGE_CREATE","API_PAGE_DELETE","API_SETTINGS_WRITE","API_BACKUP_CREATE","API_BACKUP_DOWNLOAD","API_BACKUP_RESTORE","API_IMAGES_UPLOAD","API_RENDER_PAGES","API_INIT_GOOD","SEND_MAIL","PostIndex","SettingsIndex","NaviIndex","Menu","currentDisplay","urlPieces","split","chooseDisplay","section","page","PageEditor","currentPage","choosePage","PageActions","EditorEvent","TextEditor","FileManager","PostEditor","admin","post","postID","postUUID","postLayout","fm","getAttribute","editor","offsetHeight","addListener","EDITOR_DELETE","handleEditorOptions","EDITOR_UPLOAD_POST_IMAGE","EDITOR_UPDATE","EDITOR_SAVE","handleImageUpload","optionButtons","querySelectorAll","i","handlePostOptions","currentOption","active","setAttribute","collectInfo","getFileOrder","confirm","click","enctype","name","filePath","StringUtils","PostActions","pageInfo","pageRef","txt","createElement","html","replace","uuid","layout","current_title","title","created","slug","cleanString","tags","menu","featured","published","form_token","imageList","images","fileList","string","clean","toLowerCase","decodeHTML","quote_style","optTemp","noquotes","toString","OPTS","ENT_NOQUOTES","ENT_HTML_QUOTE_SINGLE","ENT_HTML_QUOTE_DOUBLE","ENT_COMPAT","ENT_QUOTES","ENT_IGNORE","concat","EventEmitter","Prism","textEditor","scrollLimit","console","log","body","fixLimit","scrollTop","classList","add","remove","result_element","text","RegExp","editorHeight","height","highlightElement","scrollLeft","dispatchEvent","Event","setInputs","editorButtons","handleEditorOption","len","selectionStart","end","selectionEnd","insert","substring","selectedText","prompt","link","emitEvent","listeners","Map","label","callback","has","set","get","removeListener","isFunction","obj","reduce","listener","splice","args","anime","notifcation","responseText","notifyText","notifyIcons","iconGood","iconNotGood","iconWorking","color","targets","rotateX","easing","complete","opacity","duration","backgroundColor","Sortable","input","sortedFiles","storage","mediaSort","animation","onUpdate","fileSort","handleFileActions","removeMedia","removeFile","imgList","childNodes","div","media","sortFiles","file","reader","FileReader","theFile","f","removeIcon","className","appendChild","item","itemFactory","background","removeChild","video","source","audio","href","fileName","readAsDataURL","mediaCount","fileCount","parentNode","rawList","sortedList","notOnTheList","dataTransfer","dropEffect","includes","SettingsActions","Mailer","Notifications","apiButton","apiStatus","dynamicRenderButton","dynamicRenderStatus","handleMailer","handlePublished","toggleRender","themeBtns","handleThemes","mailBtn","handleMailOptions","handleBackup","togglePrivacy","button","mailer","testMail","themes","smtp","mailgun","mail","handleReindex","handle","desc","render","backgroundImage","slice","selected","selects","smtpDomain","smtpEmail","smtpPass","mgDomain","mgKey","mailActive","mailOptions","count","settingsData","global","base_url","descriptions","private","renderOnSave","theme","externalAPI","dynamicRender","member","domain","password","Notficaton","mailData","mail_task","NavActions","NavIndex","syncMenu","nav","handleNavButton","removeItem","navData","items","children","getElementsByTagName","path","mobile","mobileMenu","handleMobile"],"version":3,"file":"dash.js.map","sourceRoot":"../../../"} \ No newline at end of file +{"mappings":";;;;;;;;;;;;;AEAA,uBAAA;AACO,MAAM+D,4CAAoB;AAC1B,MAAMC,4CAAmB;AACzB,MAAMC,4CAAmB;AACzB,MAAMC,4CAAsB;AAE5B,MAAMC,4CAAoB;AAC1B,MAAMC,4CAAoB;AAE1B,MAAMC,4CAAa;AACnB,MAAMC,4CAAmB;AACzB,MAAMC,4CAAsB;AAC5B,MAAMC,4CAAe;AACrB,MAAMC,4CAAgB;AACtB,MAAMC,4CAAkB;AACxB,MAAMC,4CAAoB;AAC1B,MAAMC,4CAAoB;AAC1B,MAAMC,2CAAe;AACrB,MAAMC,4CAAoB;AAC1B,MAAMC,4CAAgB;AACtB,MAAMC,4CAAY;AAElB,MAAMC,4CAAc;AACpB,MAAMC,4CA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A;AAEA7D,SAASC,gBAAgB,CACxB,oBACA,WAAY;IACX,IAAIF,CAAAA,GAAAA,wCAAAA;AACL,GACA,KAAK","sources":["src/com/Start.js","src/com/Base.js","src/libraries/FipamoAdminAPI.js","src/com/controllers/MaintenanceManager.js","src/com/utils/DataUtils.js","src/com/events/DataEvent.js","src/com/controllers/DashManager.js","src/com/controllers/PostIndex.js","src/com/controllers/PageEditor.js","src/com/actions/PageActions.js","src/com/utils/StringUtils.js","src/com/events/EditorEvent.js","src/com/ui/TextEditor.js","src/com/events/EventEmitter.js","node_modules/prismjs/components/prism-core.js","node_modules/prismjs/components/prism-markup.js","node_modules/prismjs/components/prism-markdown.js","src/com/ui/Notifications.js","node_modules/animejs/lib/anime.es.js","src/com/ui/FileManager.js","node_modules/sortablejs/modular/sortable.esm.js","src/com/controllers/SettingsIndex.js","src/com/actions/SettingsActions.js","src/com/actions/Mailer.js","src/com/controllers/NavIndex.js","src/com/actions/NavActions.js","src/com/ui/Menu.js"],"sourcesContent":["import Base from './Base';\n\ndocument.addEventListener(\n\t'DOMContentLoaded',\n\tfunction () {\n\t\tnew Base();\n\t},\n\tfalse\n);\n","import FipamoAdminAPI from '../libraries/FipamoAdminAPI';\nimport Maintenance from './controllers/MaintenanceManager';\nimport DataUitls from './utils/DataUtils';\nimport * as DataEvent from './events/DataEvent';\nimport DashManager from './controllers/DashManager';\nimport Notfications from './ui/Notifications';\nconst data = new DataUitls();\nconst notify = new Notfications();\n\nexport default class Base {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tthis.start();\n\t}\n\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\n\t//TODO: Move init functions and set up to their own class\n\tstart() {\n\t\tif (\n\t\t\tdocument.getElementById('login') ||\n\t\t\tdocument.querySelector('[role=\"site-restore\"]')\n\t\t) {\n\t\t\tvar options = document.getElementsByClassName('init-option');\n\t\t\tfor (let index = 0; index < options.length; index++) {\n\t\t\t\toptions[index].addEventListener('click', e => this.handleOptions(e));\n\t\t\t}\n\t\t\tif (document.getElementById('login')) {\n\t\t\t\tdocument\n\t\t\t\t\t.getElementById('login-btn')\n\t\t\t\t\t.addEventListener('click', e => this.handleLogin(e));\n\t\t\t} else {\n\t\t\t\tdocument\n\t\t\t\t\t.getElementById('init-blog')\n\t\t\t\t\t.addEventListener('click', e => this.handleSetup(e));\n\t\t\t\tdocument\n\t\t\t\t\t.getElementById('blog-restore')\n\t\t\t\t\t.addEventListener('click', e => this.handleRestore(e));\n\t\t\t}\n\t\t} else if (document.getElementById('dash-reset')) {\n\t\t\tdocument\n\t\t\t\t.getElementById('get-secret-btn')\n\t\t\t\t.addEventListener('click', e => this.handleReset(e));\n\n\t\t\tdocument\n\t\t\t\t.getElementById('reset-btn')\n\t\t\t\t.addEventListener('click', e => this.handleReset(e));\n\t\t} else {\n\t\t\tnew DashManager();\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleLogin(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.preventDefault();\n\t\tlet authForm = data.formDataToJSON(document.getElementById('login'));\n\t\t//notify.alert('Looking, hold up', null);\n\t\tlet api = new FipamoAdminAPI();\n\t\tthis.processing = true;\n\t\tapi.login(authForm)\n\t\t\t.then(response => {\n\t\t\t\tself.processing = false;\n\t\t\t\tif (response.type === DataEvent.REQUEST_LAME) {\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t} else {\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t}, 500);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t});\n\t}\n\n\thandleSetup(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet setUpForm = data.formDataToJSON(document.getElementById('init-form'));\n\t\tlet mm = new Maintenance();\n\t\tthis.processing = true;\n\t\tmm.create(setUpForm)\n\t\t\t.then(response => {\n\t\t\t\tif (response.type === DataEvent.API_INIT_LAME) {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t} else {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t}, 700);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\t//notify.alert(err, false);\n\t\t\t});\n\t}\n\n\thandleRestore(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet mm = new Maintenance();\n\t\tvar form = document.getElementById('init-restore');\n\t\tthis.processing = true;\n\t\tmm.restore(form)\n\t\t\t.then(response => {\n\t\t\t\tif (response.type === DataEvent.REQUEST_LAME) {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t} else {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t}, 1500);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\te.target.innerHTML = err;\n\t\t\t});\n\t}\n\n\thandleReset(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet self = this;\n\t\tlet mm = new Maintenance();\n\t\tif (e.target.id == 'get-secret-btn') {\n\t\t\tlet data = {\n\t\t\t\temail: document.getElementById('email').value,\n\t\t\t\ttask: 'retrieveSecret'\n\t\t\t};\n\t\t\tthis.processing = true;\n\t\t\tmm.secret(data)\n\t\t\t\t.then(response => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tif (response.secret) {\n\t\t\t\t\t\tdocument.getElementById('secret').value = response.secret;\n\t\t\t\t\t\tnotify.alert(response.message, true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (response.type == 'mailSent') {\n\t\t\t\t\t\t\tnotify.alert(response.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(response.message, false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t});\n\t\t} else {\n\t\t\tlet data = {\n\t\t\t\tnewPass: document.getElementById('new_password').value,\n\t\t\t\tnewPassConfirm: document.getElementById('new_password2').value,\n\t\t\t\tsecret: document.getElementById('secret').value\n\t\t\t};\n\t\t\tmm.newPass(data)\n\t\t\t\t.then(response => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tif (response.type == 'passNotCreated') {\n\t\t\t\t\t\tnotify.alert(response.message, false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnotify.alert(response.message, true);\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t\t}, 1000);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t});\n\t\t}\n\t}\n\thandleOptions(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet init = document.querySelector('[role=\"restore-fresh\"]');\n\t\tlet restore = document.querySelector('[role=\"restore-backup\"]');\n\t\tif (e.target.id === 'init-switch-restore') {\n\t\t\tinit.style.display = 'none';\n\t\t\tinit.style.visibility = 'hidden';\n\n\t\t\trestore.style.display = 'grid';\n\t\t\trestore.style.visibility = 'visible';\n\t\t} else {\n\t\t\tinit.style.display = 'grid';\n\t\t\tinit.style.visibility = 'visible';\n\n\t\t\trestore.style.display = 'none';\n\t\t\trestore.style.visibility = 'hidden';\n\t\t}\n\t}\n}\n","//** REQUEST TYPES **//\nexport const REQUEST_TYPE_POST = 'POST';\nexport const REQUEST_TYPE_GET = 'GET';\nexport const REQUEST_TYPE_PUT = 'PUT';\nexport const REQUEST_TYPE_DELETE = 'DELETE';\n//** POST CONTENT TYPES **//\nexport const CONTENT_TYPE_JSON = 'json';\nexport const CONTENT_TYPE_FORM = 'x-www-form-urlencoded';\n//** API URLS **//\nexport const API_STATUS = '/api/v1/status';\nexport const API_GET_SETTINGS = '/api/v1/settings/site';\nexport const API_GET_MEMBER_INFO = '/api/v1/settings/member';\nexport const API_NEW_PAGE = '/api/v1/page/create';\nexport const API_EDIT_PAGE = '/api/v1/page/write';\nexport const API_DELETE_PAGE = '/api/v1/page/delete';\nexport const API_SETTINGS_SYNC = '/api/v1/settings/sync';\nexport const API_PUBLISH_PAGES = '/api/v1/settings/publish';\nexport const API_NAV_SYNC = '/api/v1/settings/nav-sync';\nexport const API_REINDEX_PAGES = '/api/v1/settings/reindex';\nexport const API_SEND_MAIL = '/api/v1/mailer';\nexport const API_LOGIN = '/api/v1/login';\n//** API TASKS **//\nexport const AUTH_STATUS = 'getAuthStatus';\nexport const TASK_SETTINGS_WRITE = 'writeSettings';\nexport const TASK_PUBLISH_SITE = 'publishSite';\nexport const TASK_PAGE_CREATE = 'createNewPage';\nexport const TASK_PAGE_EDIT = 'editPage';\nexport const TASK_PAGE_DELETE = 'deletePage';\nexport const TASK_SEND_MAIL = 'sendMail';\nexport const TASK_REINDEX_PAGE = 'reIndexPages';\nexport const TASK_SYNC_SETTNIGS = 'syncSite';\nexport const TASK_SYNC_NAV = 'syncNav';\nexport const TASK_GET_SETTINGS = 'getSiteSettings';\nexport const TASK_GET_MEMBER_INFO = 'getMemberInfo';\n//** API STATUS **//\nexport const API_ACCESS_GOOD = 'apiUseAuthorized';\nexport const API_ACCESS_BAD = 'apiUseNotAuthorized';\n\n/**\n * A can of methods used to edit install settings, navigation pages and content pages\n */\n\nclass FipamoAdminAPI {\n\t/**\n\t * @constructor\n\t * @param {string} baseURL - url of site; uses local when empty\n\t * @param {object} progressBar - element to be used to display upload progress\n\t */\n\tconstructor(baseURL = null, progressBar = null) {\n\t\tthis.percentComplete = 0; //for later\n\t\tthis.baseURL = null;\n\t\tthis.progressBar = progressBar;\n\t\tthis.status = false;\n\t\tif (baseURL) this.baseURL = baseURL;\n\t\t//asks server if a session is active\n\t\tthis._request(this.baseURL ? this.baseURL + API_STATUS : API_STATUS).then(\n\t\t\tresponse => {\n\t\t\t\tif (response.type === API_ACCESS_GOOD) {\n\t\t\t\t\tthis.token = response.token;\n\t\t\t\t} else {\n\t\t\t\t\t//don't set token\n\t\t\t\t\t//console.log(\"NO TOKEN\");\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t}\n\t/**\n * Promise method for authenticating and starting a session\\\n * **POST**`/api/v1/login`\n * @param {Object[]} data - json object that contains data for set up\n * @param {string} data[].handle - handle for site user\n * @param {string} data[].password - password for site user\n * @example\n * api.login(data).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of login request\n ```\n {\n \"message\":\"Example Message of Affirmation or what you're missing!\",\n \"type\":\"exampleType\",\n }\n ```\n */\n\tlogin(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.baseURL ? (data.remote = true) : (data.remote = false);\n\t\t\tthis.key ? (data.key = this.key) : (data.key = null);\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + API_LOGIN : API_LOGIN,\n\t\t\t\tAUTH_STATUS,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n * Method for saving site and navigation settings\\\n * **POST**`/api/v1/settings/:task`\n * @param {string} task - settings being synced `config | navigation`\n * @param {object[]} data - json object that contains settings data for [site] or [nav]\n * @param {string} data[].global.base_url - base url for site [site]\n * @param {string} data[].global.title - site title [site]\n * @param {string} data[].global.descriptions - brief site summary [site]\n * @param {string} data[].global.background - url for site feature image for header [site]\n * @param {boolean} data[].global.private - privacy state for site [disabled] [site]\n * @param {boolean} data[].global.renderOnSave - property for publishing site when page saved [disabled] [site]\n * @param {string} data[].global.theme - current theme for site [site]\n * @param {boolean} data[].global.externalAPI - toggle for external API access [site]\n * @param {string} data[].member.handle - current member handle [site]\n * @param {string} data[].member.email - current member email [site]\n * @param {string} data[].email.active - current email protocol being used [site]\n * @param {string} data[].email.smtp.domain - url of smtp service being [site]\n * @param {string} data[].email.smtp.email - email account of smtp service [site]\n * @param {string} data[].email.smtp.password - password for email of smtp service [site]\n * @param {string} data[].email.mailgun.domain - mailgun domain url [site]\n * @param {string} data[].email.mailgun.key - mailgun key [site]\n *\n * @param {string} data[].item.title - page title [nav]\n * @param {string} data[].item.slug - url safe title [nav]\n * @param {string} data[].item.uuid - unique identifier [nav]\n * @param {string} data[].item.path - directory path to associated markdown file [nav]\n * @example\n * api.sync(TASK, data).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of sync request\n ```\n *\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\",\n }\n ```\n */\n\tsync(task, data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet url = '';\n\t\t\tswitch (task) {\n\t\t\t\tcase 'syncSite':\n\t\t\t\t\turl = API_SETTINGS_SYNC;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'syncNav':\n\t\t\t\t\turl = API_NAV_SYNC;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + url : url,\n\t\t\t\tTASK_SETTINGS_WRITE,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * Method for retrieving user authorizing user login\n * @param {object[]} data - json object that contains task\n * @param {string} data[].task - publishing task\n * @example\n * api.publish(TASK).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of publis request\n * ```\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\",\n }\n * ```\n */\n\tpublish(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\t//API_PUBLISH_PAGES,\n\t\t\t\tthis.baseURL ? this.baseURL + API_PUBLISH_PAGES : API_PUBLISH_PAGES,\n\t\t\t\tTASK_PUBLISH_SITE,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * Method for handling page creating and editing\\\n * **POST**`/api/v1/page/:task`\n * @param {string} task - current page action\n * @param {object[]} form - form object that contains info for current page being edited/created\n * @param {string} form[].id - sequence id for page, leave empty for new page\n * @param {string} form[].uuid - unique identifier for page, leave empty for new page\n * @param {string} form[].layout - current page layout\n * @param {string} form[].current_title - saved url save title for persistence when changing title, leave empty for new page\n * @param {string} form[].content - markdown body of page\n * @param {string} form[].title - current title of page\n * @param {string} form[].created - date page was created, leave empty for new page\n * @param {string} form[].slug - url safe string of page title\n * @param {string} form[].tags - comma separated list of tags\n * @param {boolean} form[].menu - property that indicates page is included in site menu\n * @param {boolean} form[].featured - property that indicates page is featured\n * @param {boolean} form[].published - property that indicates page is public\n * @param {string} form[].form_token - hidden property to authenticate form submission\n * @param {input} form[].feature_image - main image for page\n * @example\n * api.pageActions(TASK, data).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of page edit request\n ```\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\",\n }\n ```\n */\n\tpageActions(task, data) {\n\t\tlet url, event, content;\n\t\tswitch (task) {\n\t\t\tcase TASK_PAGE_CREATE:\n\t\t\t\turl = API_NEW_PAGE;\n\t\t\t\tevent = TASK_PAGE_CREATE;\n\t\t\t\tcontent = CONTENT_TYPE_JSON;\n\t\t\t\tbreak;\n\t\t\tcase TASK_PAGE_EDIT:\n\t\t\t\turl = API_EDIT_PAGE;\n\t\t\t\tevent = TASK_PAGE_EDIT;\n\t\t\t\tcontent = CONTENT_TYPE_JSON;\n\t\t\t\tbreak;\n\n\t\t\tcase TASK_PAGE_DELETE:\n\t\t\t\turl = API_DELETE_PAGE;\n\t\t\t\tevent = TASK_PAGE_DELETE;\n\t\t\t\tcontent = CONTENT_TYPE_JSON;\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif (this.baseURL) {\n\t\t\t//data.key = this.key;\n\t\t\tdata.remote = true;\n\t\t} else {\n\t\t\tdata.remote = false;\n\t\t}\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + url : url,\n\t\t\t\tevent,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tcontent,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * Method for sending mail (if completed in settings)\\\n * **POST**`/api/v1/mailer`\n * @param {object[]} message - json object that contains items to be included in main site navigation\n * @param {string} message[].content - message to send\n * @example\n * api.sendMail(message).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of page edit request\n ```\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\"\n }\n ```\n */\n\tsendMail(message) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + API_SEND_MAIL : API_SEND_MAIL,\n\t\t\t\tTASK_SEND_MAIL,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tmessage\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * *Promise method for retrieving site and member info*\\\n * **GET** `/api/v1/settings/:type`\n * @param {string} type - type of info requested ['site'|'member'];\n * @example\n * api.getInfo(\"type\").then(data=>{\n console.log(\"Info Object\", data);\n * })\n * @returns {object} json object that contains data for requested information\n *\n * *info object example*\n * ```\n {\n \"message\":\"message of affirmation!\",\n \"task\":\"type of info request\",\n \"data\":json-data-object,\n }\n * ```\n */\n\n\tgetInfo(type) {\n\t\tlet url, task;\n\t\tif (type == 'site') {\n\t\t\turl = API_GET_SETTINGS;\n\t\t\ttask = TASK_GET_SETTINGS;\n\t\t} else {\n\t\t\turl = API_GET_MEMBER_INFO;\n\t\t\ttask = TASK_GET_MEMBER_INFO;\n\t\t}\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(this.baseURL ? this.baseURL + url : url, task)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t//--------------------------\n\t// private\n\t//--------------------------\n\t_request(\n\t\trequestURL,\n\t\teventType,\n\t\trequestType = REQUEST_TYPE_GET,\n\t\tcontentType = CONTENT_TYPE_JSON,\n\t\trequestData = null\n\t) {\n\t\tvar self = this;\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\tvar request = new XMLHttpRequest();\n\t\t\trequest.upload.addEventListener('progress', e =>\n\t\t\t\tself.handleLoadProgress(e, self.progressBar)\n\t\t\t);\n\t\t\trequest.open(requestType, requestURL, true);\n\t\t\trequest.onload = () => {\n\t\t\t\tif (request.status == 200) {\n\t\t\t\t\tlet response = JSON.parse(request['response']);\n\t\t\t\t\tresolve(response);\n\t\t\t\t} else {\n\t\t\t\t\tlet error = JSON.parse(request['response']);\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\t\t\t};\n\t\t\tif (requestType == REQUEST_TYPE_PUT || requestType == REQUEST_TYPE_POST) {\n\t\t\t\tif (\n\t\t\t\t\teventType === TASK_SETTINGS_WRITE ||\n\t\t\t\t\teventType === TASK_PAGE_EDIT ||\n\t\t\t\t\teventType === TASK_PAGE_CREATE ||\n\t\t\t\t\teventType === TASK_PAGE_DELETE ||\n\t\t\t\t\teventType === TASK_PUBLISH_SITE ||\n\t\t\t\t\teventType === TASK_REINDEX_PAGE\n\t\t\t\t)\n\t\t\t\t\trequest.setRequestHeader('fipamo-access-token', self.token);\n\n\t\t\t\tswitch (contentType) {\n\t\t\t\t\tcase CONTENT_TYPE_JSON:\n\t\t\t\t\t\trequest.setRequestHeader(\n\t\t\t\t\t\t\t'Content-type',\n\t\t\t\t\t\t\t'application/' + contentType\n\t\t\t\t\t\t);\n\t\t\t\t\t\trequest.send(JSON.stringify(requestData));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CONTENT_TYPE_FORM:\n\t\t\t\t\t\trequest.send(requestData);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (\n\t\t\t\t\teventType === TASK_GET_SETTINGS ||\n\t\t\t\t\teventType === TASK_GET_MEMBER_INFO\n\t\t\t\t) {\n\t\t\t\t\trequest.setRequestHeader('fipamo-access-token', self.token);\n\t\t\t\t}\n\t\t\t\trequest.send();\n\t\t\t}\n\t\t});\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleLoadProgress(e, progressBar) {\n\t\tlet percent = Math.ceil((e.loaded / e.total) * 100);\n\t\t//if a progress bar element is present, talk to it\n\t\tif (progressBar != null) {\n\t\t\tprogressBar.style.width = percent + '%';\n\t\t}\n\t}\n}\n\nexport { FipamoAdminAPI as default };\n","//** REQUEST TYPES **//\nexport const REQUEST_TYPE_POST = 'POST';\nexport const REQUEST_TYPE_GET = 'GET';\nexport const REQUEST_TYPE_PUT = 'PUT';\nexport const REQUEST_TYPE_DELETE = 'DELETE';\n//** POST CONTENT TYPES **//\nexport const CONTENT_TYPE_JSON = 'json';\nexport const CONTENT_TYPE_FORM = 'x-www-form-urlencoded';\n//** API URLS **//\nexport const API_STATUS = '/api/v1/status';\nexport const API_INIT = '/api/v1/init';\nexport const API_RESTORE = '/api/v1/restore';\nexport const API_GET_SECRET = '/api/v1/get-secret';\nexport const API_RESET_PASS = '/api/v1/reset-password';\nexport const API_CREATE_BACKUP = '/api/v1/backup';\nexport const API_DOWNLOAD_BACKUP = '/api/v1/backup/download';\nexport const API_RESTORE_BACKUP = '/api/v1/backup/restore';\nexport const API_UPLOAD_AVATAR = '/api/v1/settings/add-avatar';\nexport const API_UPLOAD_BACKGROUND = '/api/v1/settings/add-feature-background';\nexport const API_IMAGE_UPLOAD = '/api/v1/page/add-entry-image';\nexport const API_FILES_UPLOAD = '/api/v1/files';\n//** API TASKS **//\nexport const TASK_SITE_INIT = 'blogInit';\nexport const TASK_BACKUP_RESTORE = 'restoreBackup';\nexport const TASK_BACKUP_CREATE = 'createBackup';\nexport const TASK_GET_SECRET = 'retrieveSecret';\nexport const TASK_RESET_PASS = 'resetPassword';\nexport const TASK_UPLOAD_FILES = 'uploadFiles';\n//** API STATUS **//\nexport const API_ACCESS_GOOD = 'apiUseAuthorized';\nexport const API_ACCESS_BAD = 'apiUseNotAuthorized';\n\n/**\n * A tub of methods for creating/restoring installs, resetting passwords and uploading images.\n */\nclass MaintenanceManager {\n\t/**\n\t * @constructor\n\t * @param {string} baseURL - url of site; uses local when empty\n\t * @param {string} key - user api key\n\t */\n\tconstructor(baseURL = null, key = null) {\n\t\tthis.accetableFiles = [\n\t\t\t'image/jpeg',\n\t\t\t'image/gif',\n\t\t\t'image/png',\n\t\t\t'image/svg',\n\t\t\t'audio/mpeg',\n\t\t\t'video/mp4',\n\t\t\t'application/pdf',\n\t\t\t'text/plain',\n\t\t\t'text/rtf'\n\t\t];\n\t\tthis.percentComplete = 0; //for later\n\t\tthis.token = null;\n\t\tthis.baseURL = null;\n\t\tthis.key = null;\n\t\tif (key) this.key = key;\n\t\tif (baseURL) this.baseURL = baseURL;\n\t\t//if key is valid, checks to see if a session is active and returns\n\t\tthis._request(\n\t\t\tthis.baseURL\n\t\t\t\t? this.baseURL + API_STATUS + '?key=' + this.key\n\t\t\t\t: API_STATUS + '?key=' + this.key\n\t\t).then(response => {\n\t\t\tif (response.type === API_ACCESS_GOOD) {\n\t\t\t\tthis.token = response.token;\n\t\t\t} else {\n\t\t\t\t//don't set token\n\t\t\t\t//console.log(\"NO TOKEN\");\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Promise method used create new site from scratch. For local use only.\n\t * @param {object} data - json object that contains data for set up\n\t * @property {string} new_member_handle - handle for new user\n\t * @property {string} new_member_email - email for new user\n\t * @property {string} new_member_pass - password for new user\n\t * @property {string} new_member_title - title for new user\n\t */\n\tcreate(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tAPI_INIT,\n\t\t\t\tnull,\n\t\t\t\tTASK_SITE_INIT,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Promise method for restoring site from a previous back up. For local use only.\n\t * @param {object} form - form object that contains restore data and files\n\t * @property {string} restore_member_handle - handle for site user\n\t * @property {string} restore_member_pass - password for site user\n\t * @property {file} backup-upload - backup zip file\n\t */\n\trestore(form) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tvar url, event, method, type, data;\n\n\t\t\turl = API_RESTORE;\n\t\t\tevent = TASK_BACKUP_RESTORE;\n\t\t\tmethod = REQUEST_TYPE_POST;\n\t\t\ttype = CONTENT_TYPE_FORM;\n\t\t\tdata = new FormData(form);\n\t\t\tthis._request(url, null, event, method, type, data)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Promise method for creating a zip back up of current site. For local use only.\n\t */\n\n\tbackup() {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tvar url, event, method, type, data;\n\n\t\t\turl = API_CREATE_BACKUP;\n\t\t\tevent = TASK_BACKUP_CREATE;\n\t\t\tmethod = REQUEST_TYPE_POST;\n\t\t\ttype = CONTENT_TYPE_JSON;\n\t\t\tdata = { task: 'create_backup' };\n\t\t\tthis._request(url, null, event, method, type, data)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n\t * Promise method for retrieving user secret key. For local use only.\n\t * @param {object} data - json object that contains data for set up\n\t * @property {string} email - email for site user\n\t */\n\n\tsecret(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tAPI_GET_SECRET,\n\t\t\t\tTASK_GET_SECRET,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Promise method for resetting password for user. For local use only.\n\t * @param {object} data - json object that contains data for set up\n\t * @property {string} new_password - password for user\n\t * @property {string} new_password2 - confirm password for user\n\t * @property {string} secret - secret key for user\n\t */\n\n\tnewPass(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tAPI_RESET_PASS,\n\t\t\t\tTASK_RESET_PASS,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n\t * Promise method for uploading files [todo: change to uploading files]\n\t * @param {string} type - type of upload\n\t * @param {input} files - form input containing files\n\t */\n\tfilesUpload(type, files, progress = null) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet url = API_FILES_UPLOAD;\n\n\t\t\tif (this.baseURL) {\n\t\t\t\tfiles.append('key', this.key);\n\t\t\t\tfiles.append('remote', true);\n\t\t\t} else {\n\t\t\t\tfiles.append('remote', false);\n\t\t\t}\n\n\t\t\tthis._request(\n\t\t\t\turl,\n\t\t\t\tprogress,\n\t\t\t\tTASK_UPLOAD_FILES,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_FORM,\n\t\t\t\tfiles\n\t\t\t)\n\t\t\t\t.then(r => {\n\t\t\t\t\tresolve(r);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t//--------------------------\n\t// private\n\t//--------------------------\n\t_request(\n\t\trequestURL,\n\t\tprogressBar = null,\n\t\teventType,\n\t\trequestType = REQUEST_TYPE_GET,\n\t\tcontentType = CONTENT_TYPE_JSON,\n\t\trequestData = null\n\t) {\n\t\tvar self = this;\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\tvar request = new XMLHttpRequest();\n\n\t\t\trequest.upload.addEventListener('progress', e =>\n\t\t\t\tself.handleLoadProgress(e, progressBar)\n\t\t\t);\n\t\t\trequest.open(requestType, requestURL, true);\n\t\t\trequest.onload = () => {\n\t\t\t\tif (request.status == 200) {\n\t\t\t\t\tlet response = JSON.parse(request['response']);\n\t\t\t\t\tresolve(response);\n\t\t\t\t} else {\n\t\t\t\t\tlet error = JSON.parse(request['response']);\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\t\t\t};\n\t\t\tif (requestType == REQUEST_TYPE_PUT || requestType == REQUEST_TYPE_POST) {\n\t\t\t\tif (eventType === TASK_UPLOAD_FILES)\n\t\t\t\t\trequest.setRequestHeader('fipamo-access-token', self.token);\n\t\t\t\tswitch (contentType) {\n\t\t\t\t\tcase CONTENT_TYPE_JSON:\n\t\t\t\t\t\trequest.setRequestHeader(\n\t\t\t\t\t\t\t'Content-type',\n\t\t\t\t\t\t\t'application/' + contentType\n\t\t\t\t\t\t);\n\t\t\t\t\t\trequest.send(JSON.stringify(requestData));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CONTENT_TYPE_FORM:\n\t\t\t\t\t\trequest.send(requestData);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\trequest.send();\n\t\t\t}\n\t\t});\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleLoadProgress(e, progressBar) {\n\t\tlet percent = Math.ceil((e.loaded / e.total) * 100);\n\t\t//if a progress bar element is present, talk to it\n\t\tif (progressBar != null) {\n\t\t\tprogressBar.style.width = percent + '%';\n\t\t}\n\t}\n}\n\nexport { MaintenanceManager as default };\n","export default class DataUtils {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\n\timgLoad(url) {\n\t\t'use strict';\n\t\t// Create new promise with the Promise() constructor;\n\t\t// This has as its argument a function with two parameters, resolve and reject\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\t// Standard XHR to load an image\n\t\t\tvar request = new XMLHttpRequest();\n\t\t\trequest.open('GET', url);\n\t\t\trequest.responseType = 'blob';\n\t\t\t// When the request loads, check whether it was successful\n\t\t\trequest.onload = function () {\n\t\t\t\tif (request.status === 200) {\n\t\t\t\t\t// If successful, resolve the promise by passing back the request response\n\t\t\t\t\tresolve(request.response);\n\t\t\t\t} else {\n\t\t\t\t\t// If it fails, reject the promise with a error message\n\t\t\t\t\treject(\n\t\t\t\t\t\tnew Error(\n\t\t\t\t\t\t\t\"Image didn't load successfully; error code: \" +\n\t\t\t\t\t\t\t\trequest.status +\n\t\t\t\t\t\t\t\t' ' +\n\t\t\t\t\t\t\t\trequest.statusText\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t};\n\t\t\trequest.onerror = function () {\n\t\t\t\t// Also deal with the case when the entire request fails to begin with\n\t\t\t\t// This is probably a network error, so reject the promise with an appropriate message\n\t\t\t\treject(new Error('There was a network error.'));\n\t\t\t};\n\t\t\t// Send the request\n\t\t\trequest.send();\n\t\t});\n\t}\n\tloadImage(src) {\n\t\t'use strict';\n\t\tlet self = this;\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\t// Get a reference to the body element, and create a new image object\n\t\t\tvar myImage = new Image();\n\t\t\tmyImage.crossOrigin = ''; // or \"anonymous\"\n\t\t\t// Call the function with the URL we want to load, but then chain the\n\t\t\t// promise then() method on to the end of it. This contains two callbacks\n\t\t\tself.imgLoad(src).then(\n\t\t\t\tfunction (response) {\n\t\t\t\t\t// The first runs when the promise resolves, with the request.reponse specified within the resolve() method.\n\t\t\t\t\tvar imageURL = window.URL.createObjectURL(response);\n\t\t\t\t\tresolve(imageURL);\n\t\t\t\t\t//$('background-content').setStyle('background-image', 'url('+imageURL+')') //myImage.src = imageURL;\n\t\t\t\t\t//console.log(imageURL);\n\t\t\t\t\t//body.appendChild(myImage);\n\t\t\t\t\t// The second runs when the promise is rejected, and logs the Error specified with the reject() method.\n\t\t\t\t},\n\t\t\t\tfunction (Error) {\n\t\t\t\t\treject(Error);\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t}\n\n\t/**\n\t * Create a function to convert the serialize and convert the form data to JSON\n\t * @param : $('#form_example');\n\t * @return a JSON Stringify\n\t */\n\tformDataToJSON(form) {\n\t\tlet object = {};\n\t\tlet formData = new FormData(form);\n\t\tformData.forEach((value, key) => {\n\t\t\tif (!object.hasOwnProperty(key)) {\n\t\t\t\tobject[key] = value;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!Array.isArray(object[key])) {\n\t\t\t\tobject[key] = [object[key]];\n\t\t\t}\n\t\t\tobject[key].push(value);\n\t\t});\n\t\t//let json = JSON.stringify(object);\n\t\treturn object;\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","export const AUTH_STATUS = \"getAuthStatus\";\nexport const REQUEST_GOOD = \"requestGood\";\nexport const REQUEST_LAME = \"requestLame\";\nexport const API_REQUEST_GOOD = \"apiUseAuthorized\";\nexport const API_REQUEST_LAME = \"apiUseNotAuthorized\";\nexport const IMG_REQUEST_GOOD = \"imgRequestGood\";\nexport const IMG_REQUEST_LAME = \"imgRequestLame\";\nexport const SETTINGS_LOADED = \"settingsLoaded\";\nexport const POST_IMAGE_ADDED = \"postImageAdded\";\nexport const FEATURE_IMAGE_ADDED = \"featureImageAdded\";\nexport const PAGE_ERROR = \"postError\";\nexport const PAGE_ADDED = \"postAdded\";\nexport const PAGE_UPDATED = \"postUpdated\";\nexport const PAGE_DELETED = \"postImageAdded\";\nexport const PAGES_RENDERED = \"pagesRendered\";\nexport const PAGES_NOT_RENDERED = \"pagesNotRendered\";\nexport const TAG_PAGES_RENDERED = \"tagPagesRendered\";\nexport const TAG_PAGES_NOT_RENDERED = \"tagPagesNotRendered\";\nexport const SETTINGS_UPDATED = \"settingsUpdated\";\nexport const SETTINGS_NOT_UPDATED = \"settingsNotUpdated\";\nexport const MENU_ADD_ITEM = \"menuAddItem\";\nexport const MENU_DELETE_ITEM = \"menuDeleteItem\";\nexport const MENU_UPDATED = \"menuUpdated\";\nexport const AVATAR_UPLOADED = \"avatarUploaded\";\nexport const SITE_BACKGROUND_UPLOADED = \"siteBackgroundUploaded\";\nexport const UPLOAD_PROGRESS = \"uploadProgress\";\nexport const API_PAGE_WRITE = \"writingItDown\";\nexport const API_PAGE_CREATE = \"writingNewEntry\";\nexport const API_PAGE_DELETE = \"erasingPage\";\nexport const API_SETTINGS_WRITE = \"savingSettings\";\nexport const API_BACKUP_CREATE = \"createBackup\";\nexport const API_BACKUP_DOWNLOAD = \"downloadBackup\";\nexport const API_BACKUP_RESTORE = \"downloadBackup\";\nexport const API_IMAGES_UPLOAD = \"uploadProfileImages\";\nexport const API_RENDER_PAGES = \"renderPages\";\nexport const API_REINDEX_PAGES = \"reindexPages\";\nexport const API_INIT = \"blogInit\";\nexport const API_INIT_GOOD = \"blogInitGood\";\nexport const API_INIT_LAME = \"blogInitLame\";\nexport const API_GET_SECRET = \"retrieveSecret\";\nexport const API_RESET_PASS = \"resetPassword\";\nexport const SEND_MAIL = \"sendMail\";\nclass DataEvent {\n //--------------------------\n // methods\n //--------------------------\n //--------------------------\n // event handlers\n //--------------------------\n}\nexport default new DataEvent();\n","import PostIndex from './PostIndex';\nimport SettingsIndex from './SettingsIndex';\nimport NaviIndex from './NavIndex';\nimport Menu from '../ui/Menu';\n\nexport default class DashManager {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.currentDisplay = '';\n\t\tthis.urlPieces = document.URL.split('/');\n\t\tthis.chooseDisplay(this.urlPieces[4], this.urlPieces[5]);\n\t\t//start main menu handler\n\t\tnew Menu();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {}\n\n\tchooseDisplay(section, page) {\n\t\tthis.currentDisplay = '';\n\t\tswitch (section) {\n\t\t\tcase 'page':\n\t\t\t\tthis.currentDisplay = new PostIndex(page);\n\t\t\t\tbreak;\n\t\t\tcase 'settings':\n\t\t\t\tthis.currentDisplay = new SettingsIndex();\n\t\t\t\tbreak;\n\t\t\tcase 'navigation':\n\t\t\t\tthis.currentDisplay = new NaviIndex();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t//just chill\n\t\t\t\tbreak;\n\t\t}\n\t\tthis.start();\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","import PageEditor from \"./PageEditor\";\nexport default class PostIndex {\n //--------------------------\n // constructor\n //--------------------------\n constructor(page) {\n this.currentPage = null;\n this.choosePage(page);\n this.start();\n }\n //--------------------------\n // methods\n //--------------------------\n start() {}\n choosePage(page) {\n this.currentPage = \"\";\n switch (page) {\n case \"edit\":\n case \"add\":\n this.currentPage = new PageEditor();\n break;\n default:\n //just chill\n break;\n }\n }\n //--------------------------\n // event handlers\n //--------------------------\n}\n","//TOOLS\nimport FipamoAdminAPI, {\n\tTASK_PAGE_CREATE,\n\tTASK_PAGE_EDIT,\n\tTASK_PAGE_DELETE\n} from '../../libraries/FipamoAdminAPI';\nimport Maintenance from './MaintenanceManager';\nimport * as DataEvent from '../events/DataEvent';\nimport PageActions from '../actions/PageActions';\nimport * as EditorEvent from '../events/EditorEvent';\n//import TinyDatePicker from 'tiny-date-picker'; TODO: Reactivate for scheduled publishing\nimport TextEditor from '../ui/TextEditor';\nimport Notfications from '../ui/Notifications';\nimport FileManager from '../ui/FileManager';\nconst notify = new Notfications();\nexport default class PostEditor {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tlet self = 'this';\n\t\tthis.admin = new FipamoAdminAPI(null, document.getElementById('notify-progress'));\n\t\tthis.mm = new Maintenance(null, null);\n\t\tthis.urlPieces = document.URL.split('/');\n\t\tthis.post = [];\n\t\tthis.postID = null;\n\t\tthis.postUUID = null;\n\t\tthis.postLayout = null;\n\t\tthis.fm = null;\n\t\tif (document.querySelector('[role=\"file-manager\"]').getAttribute('data-index')) {\n\t\t\tthis.postID = document\n\t\t\t\t.querySelector('[role=\"file-manager\"]')\n\t\t\t\t.getAttribute('data-index');\n\t\t\tthis.postUUID = document\n\t\t\t\t.querySelector('[role=\"file-manager\"]')\n\t\t\t\t.getAttribute('data-uuid');\n\t\t\tthis.postLayout = document\n\t\t\t\t.querySelector('[role=\"file-manager\"]')\n\t\t\t\t.getAttribute('data-layout');\n\t\t}\n\t\tif (document.getElementById('edit')) {\n\t\t\tthis.editor = new TextEditor(\n\t\t\t\tdocument.getElementById('edit'),\n\t\t\t\tdocument.querySelector('[role=\"file-manager\"]').offsetHeight +\n\t\t\t\t\tdocument.querySelector('[role=\"page-meta\"]').offsetHeight +\n\t\t\t\t\tdocument.querySelector('[role=\"text-editor\"]').offsetHeight\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_DELETE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_DELETE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_UPLOAD_POST_IMAGE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_UPLOAD_POST_IMAGE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_UPDATE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_UPDATE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_SAVE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_SAVE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tdocument.getElementById('post-image-upload').addEventListener(\n\t\t\t\t'change',\n\t\t\t\te => {\n\t\t\t\t\tthis.handleImageUpload(e.target.id, e.target.files);\n\t\t\t\t},\n\t\t\t\tfalse\n\t\t\t);\n\t\t\t/*\n\t\t\tTinyDatePicker(document.getElementById('post-date'), {\n\t\t\t\tmode: 'dp-below',\n\t\t\t\tformat() {\n\t\t\t\t\t//return self.dateUtils.getDate('origin', date);\n\t\t\t\t}\n\t\t\t});\n\t\t\t*/\n\n\t\t\tthis.start();\n\t\t}\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\tif (document.querySelector('[role=\"file-drop\"]')) {\n\t\t\t//insert fileManager here\n\t\t\tthis.fm = new FileManager(\n\t\t\t\tdocument.querySelector('[role=\"file-drop\"]'),\n\t\t\t\tdocument.getElementById('page-files-upload'),\n\t\t\t\tdocument.querySelector('[role=\"page-images-list\"]'),\n\t\t\t\tdocument.querySelector('[role=\"page-files-list\"]')\n\t\t\t);\n\t\t\tvar optionButtons = document.querySelectorAll('.post-option-btn');\n\t\t\tfor (var i = 0, length = optionButtons.length; i < length; i++) {\n\t\t\t\toptionButtons[i].addEventListener(\n\t\t\t\t\t'click',\n\t\t\t\t\te => this.handlePostOptions(e),\n\t\t\t\t\tfalse\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandlePostOptions(e) {\n\t\tlet currentOption = null;\n\t\tswitch (e.target.id) {\n\t\t\tcase 'option-page-icon':\n\t\t\tcase 'option-menu-pin':\n\t\t\t\tcurrentOption = document.getElementById('option-menu-pin');\n\t\t\t\tbreak;\n\t\t\tcase 'option-feature-icon':\n\t\t\tcase 'option-feature':\n\t\t\t\tcurrentOption = document.getElementById('option-feature');\n\t\t\t\tbreak;\n\t\t\tcase 'option-published-icon':\n\t\t\tcase 'option-published':\n\t\t\t\tcurrentOption = document.getElementById('option-published');\n\t\t\t\tbreak;\n\t\t}\n\t\tif (currentOption != null) {\n\t\t\tlet active = currentOption.getAttribute('data-active');\n\t\t\tactive == 'false'\n\t\t\t\t? currentOption.setAttribute('data-active', 'true')\n\t\t\t\t: currentOption.setAttribute('data-active', 'false');\n\t\t}\n\t}\n\thandleEditorOptions(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\tswitch (e) {\n\t\t\tcase EditorEvent.EDITOR_SAVE:\n\t\t\tcase EditorEvent.EDITOR_UPDATE:\n\t\t\t\tvar task = '';\n\t\t\t\te === EditorEvent.EDITOR_SAVE\n\t\t\t\t\t? (task = TASK_PAGE_CREATE)\n\t\t\t\t\t: (task = TASK_PAGE_EDIT);\n\t\t\t\tnew PageActions().collectInfo(this.fm.getFileOrder()).then(page => {\n\t\t\t\t\tself.processing = true;\n\t\t\t\t\tnotify.alert('Writing down changes', null);\n\t\t\t\t\tself.admin\n\t\t\t\t\t\t.pageActions(task, page)\n\t\t\t\t\t\t.then(r => {\n\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tr.type === DataEvent.PAGE_ERROR ||\n\t\t\t\t\t\t\t\tr.type === DataEvent.API_REQUEST_LAME\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tnotify.alert(r.message, false);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (r.type === DataEvent.PAGE_UPDATED) {\n\t\t\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t\t\t\twindow.location = '/dashboard/page/edit/' + r.id;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch(err => {\n\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\tcase EditorEvent.EDITOR_DELETE:\n\t\t\t\tif (this.postLayout === 'index') {\n\t\t\t\t\tnotify.alert('Index cannot be deleted', false);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (confirm(\"AYE! You know you're deleting this post, right?\")) {\n\t\t\t\t\tnew PageActions()\n\t\t\t\t\t\t.collectInfo(this.fm.getFileOrder())\n\t\t\t\t\t\t.then(page => {\n\t\t\t\t\t\t\tself.processing = true;\n\t\t\t\t\t\t\tthis.admin\n\t\t\t\t\t\t\t\t.pageActions(TASK_PAGE_DELETE, page)\n\t\t\t\t\t\t\t\t.then(() => {\n\t\t\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\t\t\twindow.location = '/dashboard/pages';\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t.catch(err => {\n\t\t\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch(() => {});\n\t\t\t\t} else {\n\t\t\t\t\t// Do nothing!\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase EditorEvent.EDITOR_UPLOAD_POST_IMAGE:\n\t\t\t\tdocument.getElementById('post-image-upload').click();\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\thandleImageUpload(type, files) {\n\t\tlet self = this;\n\t\tnotify.alert('Uploading Image', null);\n\t\tlet upload = new FormData();\n\t\tupload.enctype = 'multipart/form-data';\n\t\tupload.append('upload_files[]', files[0], files[0].name);\n\t\tthis.mm\n\t\t\t.filesUpload(files[0].type, upload)\n\t\t\t.then(result => {\n\t\t\t\tif (result.message == 'File Uploaded. Great!') {\n\t\t\t\t\tself.editor.notify(\n\t\t\t\t\t\tEditorEvent.EDITOR_UPLOAD_POST_IMAGE,\n\t\t\t\t\t\tresult.filePath\n\t\t\t\t\t);\n\t\t\t\t\tnotify.alert('Image Added to Entry', true);\n\t\t\t\t} else {\n\t\t\t\t\tnotify.alert('Uh oh. Image not added', false);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(() => {\n\t\t\t\tnotify.alert('Uh oh. Image not added', false);\n\t\t\t});\n\t}\n}\n","import StringUtils from '../utils/StringUtils';\nexport default class PostActions {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tcollectInfo(files) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet pageInfo = [];\n\t\t\tlet pageRef = document.querySelector('[role=\"file-manager\"]');\n\t\t\t//process html content for storage\n\t\t\tlet txt = document.createElement('textarea');\n\t\t\ttxt.innerHTML = document.getElementById('highlight-content').innerHTML;\n\t\t\tlet html = txt.value;\n\t\t\thtml = html.replace(/<\\/?span[^>]*>/g, ''); //removes prism styling\n\t\t\thtml = html.replace(/<\\/?br[^>]*>/g, '\\n'); //convert back to encoded line break for storage\n\t\t\t//build data object\n\t\t\tpageInfo = {\n\t\t\t\tid: pageRef.getAttribute('data-index'),\n\t\t\t\tuuid: pageRef.getAttribute('data-uuid'),\n\t\t\t\tlayout: document.getElementById('page-templates').value,\n\t\t\t\tcurrent_title: pageRef.getAttribute('data-slug'),\n\t\t\t\tcontent: html,\n\t\t\t\ttitle: document.getElementById('post-title-text').value,\n\t\t\t\tcreated: document.getElementById('post-date').getAttribute('data-raw'),\n\t\t\t\tslug: new StringUtils().cleanString(\n\t\t\t\t\tdocument.getElementById('post-title-text').value\n\t\t\t\t),\n\t\t\t\ttags: document.getElementById('post-tags').value,\n\t\t\t\tmenu: document\n\t\t\t\t\t.getElementById('option-menu-pin')\n\t\t\t\t\t.getAttribute('data-active'),\n\t\t\t\tfeatured: document\n\t\t\t\t\t.getElementById('option-feature')\n\t\t\t\t\t.getAttribute('data-active'),\n\t\t\t\tpublished: document\n\t\t\t\t\t.getElementById('option-published')\n\t\t\t\t\t.getAttribute('data-active'),\n\t\t\t\tform_token: document.getElementById('form_token').value,\n\t\t\t\timageList: files.images,\n\t\t\t\tfileList: files.files\n\t\t\t};\n\n\t\t\tresolve(pageInfo);\n\t\t});\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","class StringUtils {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tcleanString(string) {\n\t\tvar clean = string\n\t\t\t.replace(/(^\\-+|[^a-zA-Z0-9\\/_| -]+|\\-+$)/g, '')\n\t\t\t.toLowerCase()\n\t\t\t.replace(/[\\/_| -]+/g, '-');\n\t\treturn clean;\n\t}\n\n\tdecodeHTML(string, quote_style) {\n\t\tvar optTemp = 0,\n\t\t\ti = 0,\n\t\t\tnoquotes = false;\n\t\tif (typeof quote_style === 'undefined') {\n\t\t\tquote_style = 2;\n\t\t}\n\t\tstring = string\n\t\t\t.toString()\n\t\t\t.replace(/</g, '<')\n\t\t\t.replace(/>/g, '>');\n\t\tvar OPTS = {\n\t\t\tENT_NOQUOTES: 0,\n\t\t\tENT_HTML_QUOTE_SINGLE: 1,\n\t\t\tENT_HTML_QUOTE_DOUBLE: 2,\n\t\t\tENT_COMPAT: 2,\n\t\t\tENT_QUOTES: 3,\n\t\t\tENT_IGNORE: 4\n\t\t};\n\t\tif (quote_style === 0) {\n\t\t\tnoquotes = true;\n\t\t}\n\t\tif (typeof quote_style !== 'number') {\n\t\t\t// Allow for a single string or an array of string flags\n\t\t\tquote_style = [].concat(quote_style);\n\t\t\tfor (i = 0; i < quote_style.length; i++) {\n\t\t\t\t// Resolve string input to bitwise e.g. 'PATHINFO_EXTENSION' becomes 4\n\t\t\t\tif (OPTS[quote_style[i]] === 0) {\n\t\t\t\t\tnoquotes = true;\n\t\t\t\t} else if (OPTS[quote_style[i]]) {\n\t\t\t\t\toptTemp = optTemp | OPTS[quote_style[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t\tquote_style = optTemp;\n\t\t}\n\t\tif (quote_style & OPTS.ENT_HTML_QUOTE_SINGLE) {\n\t\t\tstring = string.replace(/�*39;/g, \"'\"); // PHP doesn't currently escape if more than one 0, but it should\n\t\t\t// string = string.replace(/'|�*27;/g, \"'\"); // This would also be useful here, but not a part of PHP\n\t\t}\n\t\tif (!noquotes) {\n\t\t\tstring = string.replace(/"/g, '\"');\n\t\t}\n\t\t// Put this in last place to avoid escape being double-decoded\n\t\tstring = string.replace(/&/g, '&');\n\t\treturn string;\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\nexport default StringUtils;\n","export const EDITOR_DELETE = 'editorDelete';\nexport const EDITOR_UPLOAD_POST_IMAGE = 'editorUploadImage';\nexport const EDITOR_SAVE = 'editorSave';\nexport const EDITOR_UPDATE = 'editorUpdate';\n\nclass EditorEvent {\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\nexport default new EditorEvent();\n","import * as DataEvent from '../events/DataEvent';\nimport EventEmitter from '../events/EventEmitter';\nimport * as EditorEvent from '../events/EditorEvent';\nimport Prism from 'prismjs';\nclass TextEditor extends EventEmitter {\n\t/**\n\t * Text Editor UI Component\n\t * @constructor\n\t * @param {object} textEditor - Text area that will edit text\n\t * @param {number} scrollLimit - YPos where editor position will become fixed\n\t */\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor(textEditor, scrollLimit) {\n\t\tsuper();\n\n\t\tdocument\n\t\t\t.querySelector('[role=\"text-editor-control\"]')\n\t\t\t.addEventListener('scroll', e => {\n\t\t\t\tconsole.log('HERE');\n\t\t\t});\n\n\t\tdocument.body.addEventListener('scroll', e => {\n\t\t\tvar fixLimit = scrollLimit;\n\t\t\tconsole.log('POSITION', document.body.scrollTop + ' : ' + fixLimit);\n\t\t\tif (document.body.scrollTop + 5 >= fixLimit) {\n\t\t\t\tdocument\n\t\t\t\t\t.querySelector('[role=\"text-editor-control\"]')\n\t\t\t\t\t.classList.add('control-freeze');\n\t\t\t} else {\n\t\t\t\tdocument\n\t\t\t\t\t.querySelector('[role=\"text-editor-control\"]')\n\t\t\t\t\t.classList.remove('control-freeze');\n\t\t\t}\n\t\t});\n\t\tdocument.getElementById('edit').addEventListener('input', e => {\n\t\t\tlet result_element = document.querySelector('#highlight-content');\n\t\t\tthis.textEditor = textEditor;\n\n\t\t\t// Update code\n\t\t\tlet text = e.target.value;\n\t\t\tresult_element.innerHTML = text\n\t\t\t\t.replace(new RegExp('&', 'g'), '&')\n\t\t\t\t.replace(new RegExp('<', 'g'), '<');\n\t\t\tlet editorHeight = document.getElementById('highlight').offsetHeight;\n\t\t\tdocument.querySelector('[role=\"edit-post-wrapper\"]').style.height =\n\t\t\t\teditorHeight + 'px';\n\t\t\te.target.style.height = editorHeight + 30 + 'px'; //TODO: yeah, it's ugly but it works for now, fix soon\n\t\t\t// Syntax Highlight\n\t\t\tPrism.highlightElement(result_element);\n\t\t});\n\t\tdocument.getElementById('edit').addEventListener('scroll', e => {\n\t\t\t/* Scroll result to scroll coords of event - sync with textarea */\n\t\t\tlet result_element = document.querySelector('#highlight');\n\t\t\t// Get and set x and y\n\t\t\tresult_element.scrollTop = e.scrollTop;\n\t\t\tresult_element.scrollLeft = e.scrollLeft;\n\t\t});\n\t\tdocument.getElementById('edit').dispatchEvent(new Event('input'));\n\t\tthis.setInputs();\n\n\t\t//freeze editor formatting so it doesn't scroll off screen\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tsetInputs() {\n\t\tvar editorButtons = document.querySelectorAll('.editor-button');\n\t\tfor (var i = 0, length = editorButtons.length; i < length; i++) {\n\t\t\teditorButtons[i].addEventListener(\n\t\t\t\t'click',\n\t\t\t\te => this.handleEditorOption(e),\n\t\t\t\tfalse\n\t\t\t);\n\t\t}\n\t}\n\tnotify(type, data) {\n\t\tswitch (type) {\n\t\t\tcase DataEvent.PAGE_UPDATED:\n\t\t\t\tdocument.getElementById('submit-update').classList.add('icon-hide');\n\t\t\t\tdocument.getElementById('submit-good').classList.remove('icon-hide');\n\t\t\t\tdocument.getElementById('edit-update').classList.remove('submit-start');\n\t\t\t\tdocument.getElementById('edit-update').classList.add('submit-cool');\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tdocument\n\t\t\t\t\t\t.getElementById('submit-update')\n\t\t\t\t\t\t.classList.remove('icon-hide');\n\t\t\t\t\tdocument.getElementById('submit-good').classList.add('icon-hide');\n\t\t\t\t\tdocument.getElementById('edit-update').classList.add('submit-start');\n\t\t\t\t\tdocument\n\t\t\t\t\t\t.getElementById('edit-update')\n\t\t\t\t\t\t.classList.remove('submit-cool');\n\t\t\t\t}, 2000);\n\t\t\t\tbreak;\n\t\t\tcase DataEvent.PAGE_ADDED:\n\t\t\t\t// do nothing\n\t\t\t\tbreak;\n\t\t\tcase EditorEvent.EDITOR_UPLOAD_POST_IMAGE: {\n\t\t\t\tlet len = this.textEditor.value.length;\n\t\t\t\tlet start = this.textEditor.selectionStart;\n\t\t\t\tlet end = this.textEditor.selectionEnd;\n\t\t\t\tlet insert = '![image alt text](' + data + ')';\n\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tdocument.getElementById('edit').dispatchEvent(new Event('input'));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleEditorOption(e) {\n\t\te.preventDefault();\n\t\tlet len = this.textEditor.value.length;\n\t\tlet start = this.textEditor.selectionStart;\n\t\tlet end = this.textEditor.selectionEnd;\n\n\t\tlet selectedText = this.textEditor.value.substring(start, end);\n\t\tlet insert = '';\n\t\tswitch (e.target.id) {\n\t\t\tcase 'edit-bold':\n\t\t\t\tinsert = '**' + selectedText + '**';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\n\t\t\t\tbreak;\n\t\t\tcase 'edit-italic':\n\t\t\t\tinsert = '*' + selectedText + '*';\n\t\t\t\t//console.log(this.textEditor);\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-strikethrough':\n\t\t\t\tinsert = '~~' + selectedText + '~~';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-header1':\n\t\t\t\tinsert = '# ' + selectedText + '\\n';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-header2':\n\t\t\t\tinsert = '## ' + selectedText + '\\n';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-header3':\n\t\t\t\tinsert = '### ' + selectedText + '\\n';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-link':\n\t\t\t\t{\n\t\t\t\t\tlet url = prompt(\"Let's get that url, boss\");\n\t\t\t\t\tlet link = url.toLowerCase();\n\t\t\t\t\tinsert = '[' + selectedText + '](' + link + ')';\n\t\t\t\t\tthis.textEditor.value =\n\t\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\t\tinsert +\n\t\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'edit-image':\n\t\t\t\t//this.caretPos = position(this.textEditor).pos;\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_UPLOAD_POST_IMAGE);\n\t\t\t\tbreak;\n\t\t\tcase 'submit-save':\n\t\t\tcase 'edit-save':\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_SAVE);\n\t\t\t\tbreak;\n\t\t\tcase 'submit-update':\n\t\t\tcase 'edit-update':\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_UPDATE);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-delete':\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_DELETE);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t//do stuff\n\t\t\t\tbreak;\n\t\t}\n\t\tdocument.getElementById('edit').dispatchEvent(new Event('input'));\n\t}\n}\nexport default TextEditor;\n","class EventEmitter {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.listeners = new Map();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\taddListener(label, callback) {\n\t\tthis.listeners.has(label) || this.listeners.set(label, []);\n\t\tthis.listeners.get(label).push(callback);\n\t}\n\n\tremoveListener(label, callback) {\n\t\tvar isFunction = function(obj) {\n\t\t\treturn typeof obj == 'function' || false;\n\t\t};\n\n\t\tvar listeners = this.listeners.get(label),\n\t\t\tindex;\n\n\t\tif (listeners && listeners.length) {\n\t\t\tindex = listeners.reduce((i, listener, index) => {\n\t\t\t\treturn isFunction(listener) && listener === callback ? (i = index) : i;\n\t\t\t}, -1);\n\n\t\t\tif (index > -1) {\n\t\t\t\tlisteners.splice(index, 1);\n\t\t\t\tthis.listeners.set(label, listeners);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\temitEvent(label, ...args) {\n\t\tvar listeners = this.listeners.get(label);\n\t\tif (listeners && listeners.length) {\n\t\t\tlisteners.forEach(listener => {\n\t\t\t\tlistener(...args);\n\t\t\t});\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\nexport default EventEmitter;\n","/// <reference lib=\"WebWorker\"/>\n\nvar _self = (typeof window !== 'undefined')\n\t? window // if in browser\n\t: (\n\t\t(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)\n\t\t\t? self // if in worker\n\t\t\t: {} // if in node js\n\t);\n\n/**\n * Prism: Lightweight, robust, elegant syntax highlighting\n *\n * @license MIT <https://opensource.org/licenses/MIT>\n * @author Lea Verou <https://lea.verou.me>\n * @namespace\n * @public\n */\nvar Prism = (function (_self) {\n\n\t// Private helper vars\n\tvar lang = /(?:^|\\s)lang(?:uage)?-([\\w-]+)(?=\\s|$)/i;\n\tvar uniqueId = 0;\n\n\t// The grammar object for plaintext\n\tvar plainTextGrammar = {};\n\n\n\tvar _ = {\n\t\t/**\n\t\t * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the\n\t\t * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load\n\t\t * additional languages or plugins yourself.\n\t\t *\n\t\t * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.\n\t\t *\n\t\t * You obviously have to change this value before the automatic highlighting started. To do this, you can add an\n\t\t * empty Prism object into the global scope before loading the Prism script like this:\n\t\t *\n\t\t * ```js\n\t\t * window.Prism = window.Prism || {};\n\t\t * Prism.manual = true;\n\t\t * // add a new <script> to load Prism's script\n\t\t * ```\n\t\t *\n\t\t * @default false\n\t\t * @type {boolean}\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\tmanual: _self.Prism && _self.Prism.manual,\n\t\t/**\n\t\t * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses\n\t\t * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your\n\t\t * own worker, you don't want it to do this.\n\t\t *\n\t\t * By setting this value to `true`, Prism will not add its own listeners to the worker.\n\t\t *\n\t\t * You obviously have to change this value before Prism executes. To do this, you can add an\n\t\t * empty Prism object into the global scope before loading the Prism script like this:\n\t\t *\n\t\t * ```js\n\t\t * window.Prism = window.Prism || {};\n\t\t * Prism.disableWorkerMessageHandler = true;\n\t\t * // Load Prism's script\n\t\t * ```\n\t\t *\n\t\t * @default false\n\t\t * @type {boolean}\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\tdisableWorkerMessageHandler: _self.Prism && _self.Prism.disableWorkerMessageHandler,\n\n\t\t/**\n\t\t * A namespace for utility methods.\n\t\t *\n\t\t * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may\n\t\t * change or disappear at any time.\n\t\t *\n\t\t * @namespace\n\t\t * @memberof Prism\n\t\t */\n\t\tutil: {\n\t\t\tencode: function encode(tokens) {\n\t\t\t\tif (tokens instanceof Token) {\n\t\t\t\t\treturn new Token(tokens.type, encode(tokens.content), tokens.alias);\n\t\t\t\t} else if (Array.isArray(tokens)) {\n\t\t\t\t\treturn tokens.map(encode);\n\t\t\t\t} else {\n\t\t\t\t\treturn tokens.replace(/&/g, '&').replace(/</g, '<').replace(/\\u00a0/g, ' ');\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns the name of the type of the given value.\n\t\t\t *\n\t\t\t * @param {any} o\n\t\t\t * @returns {string}\n\t\t\t * @example\n\t\t\t * type(null) === 'Null'\n\t\t\t * type(undefined) === 'Undefined'\n\t\t\t * type(123) === 'Number'\n\t\t\t * type('foo') === 'String'\n\t\t\t * type(true) === 'Boolean'\n\t\t\t * type([1, 2]) === 'Array'\n\t\t\t * type({}) === 'Object'\n\t\t\t * type(String) === 'Function'\n\t\t\t * type(/abc+/) === 'RegExp'\n\t\t\t */\n\t\t\ttype: function (o) {\n\t\t\t\treturn Object.prototype.toString.call(o).slice(8, -1);\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns a unique number for the given object. Later calls will still return the same number.\n\t\t\t *\n\t\t\t * @param {Object} obj\n\t\t\t * @returns {number}\n\t\t\t */\n\t\t\tobjId: function (obj) {\n\t\t\t\tif (!obj['__id']) {\n\t\t\t\t\tObject.defineProperty(obj, '__id', { value: ++uniqueId });\n\t\t\t\t}\n\t\t\t\treturn obj['__id'];\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Creates a deep clone of the given object.\n\t\t\t *\n\t\t\t * The main intended use of this function is to clone language definitions.\n\t\t\t *\n\t\t\t * @param {T} o\n\t\t\t * @param {Record<number, any>} [visited]\n\t\t\t * @returns {T}\n\t\t\t * @template T\n\t\t\t */\n\t\t\tclone: function deepClone(o, visited) {\n\t\t\t\tvisited = visited || {};\n\n\t\t\t\tvar clone; var id;\n\t\t\t\tswitch (_.util.type(o)) {\n\t\t\t\t\tcase 'Object':\n\t\t\t\t\t\tid = _.util.objId(o);\n\t\t\t\t\t\tif (visited[id]) {\n\t\t\t\t\t\t\treturn visited[id];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tclone = /** @type {Record<string, any>} */ ({});\n\t\t\t\t\t\tvisited[id] = clone;\n\n\t\t\t\t\t\tfor (var key in o) {\n\t\t\t\t\t\t\tif (o.hasOwnProperty(key)) {\n\t\t\t\t\t\t\t\tclone[key] = deepClone(o[key], visited);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn /** @type {any} */ (clone);\n\n\t\t\t\t\tcase 'Array':\n\t\t\t\t\t\tid = _.util.objId(o);\n\t\t\t\t\t\tif (visited[id]) {\n\t\t\t\t\t\t\treturn visited[id];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tclone = [];\n\t\t\t\t\t\tvisited[id] = clone;\n\n\t\t\t\t\t\t(/** @type {Array} */(/** @type {any} */(o))).forEach(function (v, i) {\n\t\t\t\t\t\t\tclone[i] = deepClone(v, visited);\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\treturn /** @type {any} */ (clone);\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\treturn o;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.\n\t\t\t *\n\t\t\t * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.\n\t\t\t *\n\t\t\t * @param {Element} element\n\t\t\t * @returns {string}\n\t\t\t */\n\t\t\tgetLanguage: function (element) {\n\t\t\t\twhile (element) {\n\t\t\t\t\tvar m = lang.exec(element.className);\n\t\t\t\t\tif (m) {\n\t\t\t\t\t\treturn m[1].toLowerCase();\n\t\t\t\t\t}\n\t\t\t\t\telement = element.parentElement;\n\t\t\t\t}\n\t\t\t\treturn 'none';\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Sets the Prism `language-xxxx` class of the given element.\n\t\t\t *\n\t\t\t * @param {Element} element\n\t\t\t * @param {string} language\n\t\t\t * @returns {void}\n\t\t\t */\n\t\t\tsetLanguage: function (element, language) {\n\t\t\t\t// remove all `language-xxxx` classes\n\t\t\t\t// (this might leave behind a leading space)\n\t\t\t\telement.className = element.className.replace(RegExp(lang, 'gi'), '');\n\n\t\t\t\t// add the new `language-xxxx` class\n\t\t\t\t// (using `classList` will automatically clean up spaces for us)\n\t\t\t\telement.classList.add('language-' + language);\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns the script element that is currently executing.\n\t\t\t *\n\t\t\t * This does __not__ work for line script element.\n\t\t\t *\n\t\t\t * @returns {HTMLScriptElement | null}\n\t\t\t */\n\t\t\tcurrentScript: function () {\n\t\t\t\tif (typeof document === 'undefined') {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tif ('currentScript' in document && 1 < 2 /* hack to trip TS' flow analysis */) {\n\t\t\t\t\treturn /** @type {any} */ (document.currentScript);\n\t\t\t\t}\n\n\t\t\t\t// IE11 workaround\n\t\t\t\t// we'll get the src of the current script by parsing IE11's error stack trace\n\t\t\t\t// this will not work for inline scripts\n\n\t\t\t\ttry {\n\t\t\t\t\tthrow new Error();\n\t\t\t\t} catch (err) {\n\t\t\t\t\t// Get file src url from stack. Specifically works with the format of stack traces in IE.\n\t\t\t\t\t// A stack will look like this:\n\t\t\t\t\t//\n\t\t\t\t\t// Error\n\t\t\t\t\t// at _.util.currentScript (http://localhost/components/prism-core.js:119:5)\n\t\t\t\t\t// at Global code (http://localhost/components/prism-core.js:606:1)\n\n\t\t\t\t\tvar src = (/at [^(\\r\\n]*\\((.*):[^:]+:[^:]+\\)$/i.exec(err.stack) || [])[1];\n\t\t\t\t\tif (src) {\n\t\t\t\t\t\tvar scripts = document.getElementsByTagName('script');\n\t\t\t\t\t\tfor (var i in scripts) {\n\t\t\t\t\t\t\tif (scripts[i].src == src) {\n\t\t\t\t\t\t\t\treturn scripts[i];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns whether a given class is active for `element`.\n\t\t\t *\n\t\t\t * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated\n\t\t\t * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the\n\t\t\t * given class is just the given class with a `no-` prefix.\n\t\t\t *\n\t\t\t * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is\n\t\t\t * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its\n\t\t\t * ancestors have the given class or the negated version of it, then the default activation will be returned.\n\t\t\t *\n\t\t\t * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated\n\t\t\t * version of it, the class is considered active.\n\t\t\t *\n\t\t\t * @param {Element} element\n\t\t\t * @param {string} className\n\t\t\t * @param {boolean} [defaultActivation=false]\n\t\t\t * @returns {boolean}\n\t\t\t */\n\t\t\tisActive: function (element, className, defaultActivation) {\n\t\t\t\tvar no = 'no-' + className;\n\n\t\t\t\twhile (element) {\n\t\t\t\t\tvar classList = element.classList;\n\t\t\t\t\tif (classList.contains(className)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tif (classList.contains(no)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\telement = element.parentElement;\n\t\t\t\t}\n\t\t\t\treturn !!defaultActivation;\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.\n\t\t *\n\t\t * @namespace\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\tlanguages: {\n\t\t\t/**\n\t\t\t * The grammar for plain, unformatted text.\n\t\t\t */\n\t\t\tplain: plainTextGrammar,\n\t\t\tplaintext: plainTextGrammar,\n\t\t\ttext: plainTextGrammar,\n\t\t\ttxt: plainTextGrammar,\n\n\t\t\t/**\n\t\t\t * Creates a deep copy of the language with the given id and appends the given tokens.\n\t\t\t *\n\t\t\t * If a token in `redef` also appears in the copied language, then the existing token in the copied language\n\t\t\t * will be overwritten at its original position.\n\t\t\t *\n\t\t\t * ## Best practices\n\t\t\t *\n\t\t\t * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)\n\t\t\t * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to\n\t\t\t * understand the language definition because, normally, the order of tokens matters in Prism grammars.\n\t\t\t *\n\t\t\t * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.\n\t\t\t * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.\n\t\t\t *\n\t\t\t * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.\n\t\t\t * @param {Grammar} redef The new tokens to append.\n\t\t\t * @returns {Grammar} The new language created.\n\t\t\t * @public\n\t\t\t * @example\n\t\t\t * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {\n\t\t\t * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token\n\t\t\t * // at its original position\n\t\t\t * 'comment': { ... },\n\t\t\t * // CSS doesn't have a 'color' token, so this token will be appended\n\t\t\t * 'color': /\\b(?:red|green|blue)\\b/\n\t\t\t * });\n\t\t\t */\n\t\t\textend: function (id, redef) {\n\t\t\t\tvar lang = _.util.clone(_.languages[id]);\n\n\t\t\t\tfor (var key in redef) {\n\t\t\t\t\tlang[key] = redef[key];\n\t\t\t\t}\n\n\t\t\t\treturn lang;\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Inserts tokens _before_ another token in a language definition or any other grammar.\n\t\t\t *\n\t\t\t * ## Usage\n\t\t\t *\n\t\t\t * This helper method makes it easy to modify existing languages. For example, the CSS language definition\n\t\t\t * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded\n\t\t\t * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the\n\t\t\t * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do\n\t\t\t * this:\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * Prism.languages.markup.style = {\n\t\t\t * // token\n\t\t\t * };\n\t\t\t * ```\n\t\t\t *\n\t\t\t * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens\n\t\t\t * before existing tokens. For the CSS example above, you would use it like this:\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * Prism.languages.insertBefore('markup', 'cdata', {\n\t\t\t * 'style': {\n\t\t\t * // token\n\t\t\t * }\n\t\t\t * });\n\t\t\t * ```\n\t\t\t *\n\t\t\t * ## Special cases\n\t\t\t *\n\t\t\t * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar\n\t\t\t * will be ignored.\n\t\t\t *\n\t\t\t * This behavior can be used to insert tokens after `before`:\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * Prism.languages.insertBefore('markup', 'comment', {\n\t\t\t * 'comment': Prism.languages.markup.comment,\n\t\t\t * // tokens after 'comment'\n\t\t\t * });\n\t\t\t * ```\n\t\t\t *\n\t\t\t * ## Limitations\n\t\t\t *\n\t\t\t * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object\n\t\t\t * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave\n\t\t\t * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily\n\t\t\t * deleting properties which is necessary to insert at arbitrary positions.\n\t\t\t *\n\t\t\t * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.\n\t\t\t * Instead, it will create a new object and replace all references to the target object with the new one. This\n\t\t\t * can be done without temporarily deleting properties, so the iteration order is well-defined.\n\t\t\t *\n\t\t\t * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if\n\t\t\t * you hold the target object in a variable, then the value of the variable will not change.\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * var oldMarkup = Prism.languages.markup;\n\t\t\t * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });\n\t\t\t *\n\t\t\t * assert(oldMarkup !== Prism.languages.markup);\n\t\t\t * assert(newMarkup === Prism.languages.markup);\n\t\t\t * ```\n\t\t\t *\n\t\t\t * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the\n\t\t\t * object to be modified.\n\t\t\t * @param {string} before The key to insert before.\n\t\t\t * @param {Grammar} insert An object containing the key-value pairs to be inserted.\n\t\t\t * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the\n\t\t\t * object to be modified.\n\t\t\t *\n\t\t\t * Defaults to `Prism.languages`.\n\t\t\t * @returns {Grammar} The new grammar object.\n\t\t\t * @public\n\t\t\t */\n\t\t\tinsertBefore: function (inside, before, insert, root) {\n\t\t\t\troot = root || /** @type {any} */ (_.languages);\n\t\t\t\tvar grammar = root[inside];\n\t\t\t\t/** @type {Grammar} */\n\t\t\t\tvar ret = {};\n\n\t\t\t\tfor (var token in grammar) {\n\t\t\t\t\tif (grammar.hasOwnProperty(token)) {\n\n\t\t\t\t\t\tif (token == before) {\n\t\t\t\t\t\t\tfor (var newToken in insert) {\n\t\t\t\t\t\t\t\tif (insert.hasOwnProperty(newToken)) {\n\t\t\t\t\t\t\t\t\tret[newToken] = insert[newToken];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Do not insert token which also occur in insert. See #1525\n\t\t\t\t\t\tif (!insert.hasOwnProperty(token)) {\n\t\t\t\t\t\t\tret[token] = grammar[token];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tvar old = root[inside];\n\t\t\t\troot[inside] = ret;\n\n\t\t\t\t// Update references in other language definitions\n\t\t\t\t_.languages.DFS(_.languages, function (key, value) {\n\t\t\t\t\tif (value === old && key != inside) {\n\t\t\t\t\t\tthis[key] = ret;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\treturn ret;\n\t\t\t},\n\n\t\t\t// Traverse a language definition with Depth First Search\n\t\t\tDFS: function DFS(o, callback, type, visited) {\n\t\t\t\tvisited = visited || {};\n\n\t\t\t\tvar objId = _.util.objId;\n\n\t\t\t\tfor (var i in o) {\n\t\t\t\t\tif (o.hasOwnProperty(i)) {\n\t\t\t\t\t\tcallback.call(o, i, o[i], type || i);\n\n\t\t\t\t\t\tvar property = o[i];\n\t\t\t\t\t\tvar propertyType = _.util.type(property);\n\n\t\t\t\t\t\tif (propertyType === 'Object' && !visited[objId(property)]) {\n\t\t\t\t\t\t\tvisited[objId(property)] = true;\n\t\t\t\t\t\t\tDFS(property, callback, null, visited);\n\t\t\t\t\t\t} else if (propertyType === 'Array' && !visited[objId(property)]) {\n\t\t\t\t\t\t\tvisited[objId(property)] = true;\n\t\t\t\t\t\t\tDFS(property, callback, i, visited);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tplugins: {},\n\n\t\t/**\n\t\t * This is the most high-level function in Prism’s API.\n\t\t * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on\n\t\t * each one of them.\n\t\t *\n\t\t * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.\n\t\t *\n\t\t * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.\n\t\t * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thighlightAll: function (async, callback) {\n\t\t\t_.highlightAllUnder(document, async, callback);\n\t\t},\n\n\t\t/**\n\t\t * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls\n\t\t * {@link Prism.highlightElement} on each one of them.\n\t\t *\n\t\t * The following hooks will be run:\n\t\t * 1. `before-highlightall`\n\t\t * 2. `before-all-elements-highlight`\n\t\t * 3. All hooks of {@link Prism.highlightElement} for each element.\n\t\t *\n\t\t * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.\n\t\t * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.\n\t\t * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thighlightAllUnder: function (container, async, callback) {\n\t\t\tvar env = {\n\t\t\t\tcallback: callback,\n\t\t\t\tcontainer: container,\n\t\t\t\tselector: 'code[class*=\"language-\"], [class*=\"language-\"] code, code[class*=\"lang-\"], [class*=\"lang-\"] code'\n\t\t\t};\n\n\t\t\t_.hooks.run('before-highlightall', env);\n\n\t\t\tenv.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector));\n\n\t\t\t_.hooks.run('before-all-elements-highlight', env);\n\n\t\t\tfor (var i = 0, element; (element = env.elements[i++]);) {\n\t\t\t\t_.highlightElement(element, async === true, env.callback);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Highlights the code inside a single element.\n\t\t *\n\t\t * The following hooks will be run:\n\t\t * 1. `before-sanity-check`\n\t\t * 2. `before-highlight`\n\t\t * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.\n\t\t * 4. `before-insert`\n\t\t * 5. `after-highlight`\n\t\t * 6. `complete`\n\t\t *\n\t\t * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for\n\t\t * the element's language.\n\t\t *\n\t\t * @param {Element} element The element containing the code.\n\t\t * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.\n\t\t * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers\n\t\t * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is\n\t\t * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).\n\t\t *\n\t\t * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for\n\t\t * asynchronous highlighting to work. You can build your own bundle on the\n\t\t * [Download page](https://prismjs.com/download.html).\n\t\t * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.\n\t\t * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thighlightElement: function (element, async, callback) {\n\t\t\t// Find language\n\t\t\tvar language = _.util.getLanguage(element);\n\t\t\tvar grammar = _.languages[language];\n\n\t\t\t// Set language on the element, if not present\n\t\t\t_.util.setLanguage(element, language);\n\n\t\t\t// Set language on the parent, for styling\n\t\t\tvar parent = element.parentElement;\n\t\t\tif (parent && parent.nodeName.toLowerCase() === 'pre') {\n\t\t\t\t_.util.setLanguage(parent, language);\n\t\t\t}\n\n\t\t\tvar code = element.textContent;\n\n\t\t\tvar env = {\n\t\t\t\telement: element,\n\t\t\t\tlanguage: language,\n\t\t\t\tgrammar: grammar,\n\t\t\t\tcode: code\n\t\t\t};\n\n\t\t\tfunction insertHighlightedCode(highlightedCode) {\n\t\t\t\tenv.highlightedCode = highlightedCode;\n\n\t\t\t\t_.hooks.run('before-insert', env);\n\n\t\t\t\tenv.element.innerHTML = env.highlightedCode;\n\n\t\t\t\t_.hooks.run('after-highlight', env);\n\t\t\t\t_.hooks.run('complete', env);\n\t\t\t\tcallback && callback.call(env.element);\n\t\t\t}\n\n\t\t\t_.hooks.run('before-sanity-check', env);\n\n\t\t\t// plugins may change/add the parent/element\n\t\t\tparent = env.element.parentElement;\n\t\t\tif (parent && parent.nodeName.toLowerCase() === 'pre' && !parent.hasAttribute('tabindex')) {\n\t\t\t\tparent.setAttribute('tabindex', '0');\n\t\t\t}\n\n\t\t\tif (!env.code) {\n\t\t\t\t_.hooks.run('complete', env);\n\t\t\t\tcallback && callback.call(env.element);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t_.hooks.run('before-highlight', env);\n\n\t\t\tif (!env.grammar) {\n\t\t\t\tinsertHighlightedCode(_.util.encode(env.code));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (async && _self.Worker) {\n\t\t\t\tvar worker = new Worker(_.filename);\n\n\t\t\t\tworker.onmessage = function (evt) {\n\t\t\t\t\tinsertHighlightedCode(evt.data);\n\t\t\t\t};\n\n\t\t\t\tworker.postMessage(JSON.stringify({\n\t\t\t\t\tlanguage: env.language,\n\t\t\t\t\tcode: env.code,\n\t\t\t\t\timmediateClose: true\n\t\t\t\t}));\n\t\t\t} else {\n\t\t\t\tinsertHighlightedCode(_.highlight(env.code, env.grammar, env.language));\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Low-level function, only use if you know what you’re doing. It accepts a string of text as input\n\t\t * and the language definitions to use, and returns a string with the HTML produced.\n\t\t *\n\t\t * The following hooks will be run:\n\t\t * 1. `before-tokenize`\n\t\t * 2. `after-tokenize`\n\t\t * 3. `wrap`: On each {@link Token}.\n\t\t *\n\t\t * @param {string} text A string with the code to be highlighted.\n\t\t * @param {Grammar} grammar An object containing the tokens to use.\n\t\t *\n\t\t * Usually a language definition like `Prism.languages.markup`.\n\t\t * @param {string} language The name of the language definition passed to `grammar`.\n\t\t * @returns {string} The highlighted HTML.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t * @example\n\t\t * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');\n\t\t */\n\t\thighlight: function (text, grammar, language) {\n\t\t\tvar env = {\n\t\t\t\tcode: text,\n\t\t\t\tgrammar: grammar,\n\t\t\t\tlanguage: language\n\t\t\t};\n\t\t\t_.hooks.run('before-tokenize', env);\n\t\t\tif (!env.grammar) {\n\t\t\t\tthrow new Error('The language \"' + env.language + '\" has no grammar.');\n\t\t\t}\n\t\t\tenv.tokens = _.tokenize(env.code, env.grammar);\n\t\t\t_.hooks.run('after-tokenize', env);\n\t\t\treturn Token.stringify(_.util.encode(env.tokens), env.language);\n\t\t},\n\n\t\t/**\n\t\t * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input\n\t\t * and the language definitions to use, and returns an array with the tokenized code.\n\t\t *\n\t\t * When the language definition includes nested tokens, the function is called recursively on each of these tokens.\n\t\t *\n\t\t * This method could be useful in other contexts as well, as a very crude parser.\n\t\t *\n\t\t * @param {string} text A string with the code to be highlighted.\n\t\t * @param {Grammar} grammar An object containing the tokens to use.\n\t\t *\n\t\t * Usually a language definition like `Prism.languages.markup`.\n\t\t * @returns {TokenStream} An array of strings and tokens, a token stream.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t * @example\n\t\t * let code = `var foo = 0;`;\n\t\t * let tokens = Prism.tokenize(code, Prism.languages.javascript);\n\t\t * tokens.forEach(token => {\n\t\t * if (token instanceof Prism.Token && token.type === 'number') {\n\t\t * console.log(`Found numeric literal: ${token.content}`);\n\t\t * }\n\t\t * });\n\t\t */\n\t\ttokenize: function (text, grammar) {\n\t\t\tvar rest = grammar.rest;\n\t\t\tif (rest) {\n\t\t\t\tfor (var token in rest) {\n\t\t\t\t\tgrammar[token] = rest[token];\n\t\t\t\t}\n\n\t\t\t\tdelete grammar.rest;\n\t\t\t}\n\n\t\t\tvar tokenList = new LinkedList();\n\t\t\taddAfter(tokenList, tokenList.head, text);\n\n\t\t\tmatchGrammar(text, tokenList, grammar, tokenList.head, 0);\n\n\t\t\treturn toArray(tokenList);\n\t\t},\n\n\t\t/**\n\t\t * @namespace\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thooks: {\n\t\t\tall: {},\n\n\t\t\t/**\n\t\t\t * Adds the given callback to the list of callbacks for the given hook.\n\t\t\t *\n\t\t\t * The callback will be invoked when the hook it is registered for is run.\n\t\t\t * Hooks are usually directly run by a highlight function but you can also run hooks yourself.\n\t\t\t *\n\t\t\t * One callback function can be registered to multiple hooks and the same hook multiple times.\n\t\t\t *\n\t\t\t * @param {string} name The name of the hook.\n\t\t\t * @param {HookCallback} callback The callback function which is given environment variables.\n\t\t\t * @public\n\t\t\t */\n\t\t\tadd: function (name, callback) {\n\t\t\t\tvar hooks = _.hooks.all;\n\n\t\t\t\thooks[name] = hooks[name] || [];\n\n\t\t\t\thooks[name].push(callback);\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Runs a hook invoking all registered callbacks with the given environment variables.\n\t\t\t *\n\t\t\t * Callbacks will be invoked synchronously and in the order in which they were registered.\n\t\t\t *\n\t\t\t * @param {string} name The name of the hook.\n\t\t\t * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.\n\t\t\t * @public\n\t\t\t */\n\t\t\trun: function (name, env) {\n\t\t\t\tvar callbacks = _.hooks.all[name];\n\n\t\t\t\tif (!callbacks || !callbacks.length) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tfor (var i = 0, callback; (callback = callbacks[i++]);) {\n\t\t\t\t\tcallback(env);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tToken: Token\n\t};\n\t_self.Prism = _;\n\n\n\t// Typescript note:\n\t// The following can be used to import the Token type in JSDoc:\n\t//\n\t// @typedef {InstanceType<import(\"./prism-core\")[\"Token\"]>} Token\n\n\t/**\n\t * Creates a new token.\n\t *\n\t * @param {string} type See {@link Token#type type}\n\t * @param {string | TokenStream} content See {@link Token#content content}\n\t * @param {string|string[]} [alias] The alias(es) of the token.\n\t * @param {string} [matchedStr=\"\"] A copy of the full string this token was created from.\n\t * @class\n\t * @global\n\t * @public\n\t */\n\tfunction Token(type, content, alias, matchedStr) {\n\t\t/**\n\t\t * The type of the token.\n\t\t *\n\t\t * This is usually the key of a pattern in a {@link Grammar}.\n\t\t *\n\t\t * @type {string}\n\t\t * @see GrammarToken\n\t\t * @public\n\t\t */\n\t\tthis.type = type;\n\t\t/**\n\t\t * The strings or tokens contained by this token.\n\t\t *\n\t\t * This will be a token stream if the pattern matched also defined an `inside` grammar.\n\t\t *\n\t\t * @type {string | TokenStream}\n\t\t * @public\n\t\t */\n\t\tthis.content = content;\n\t\t/**\n\t\t * The alias(es) of the token.\n\t\t *\n\t\t * @type {string|string[]}\n\t\t * @see GrammarToken\n\t\t * @public\n\t\t */\n\t\tthis.alias = alias;\n\t\t// Copy of the full string this token was created from\n\t\tthis.length = (matchedStr || '').length | 0;\n\t}\n\n\t/**\n\t * A token stream is an array of strings and {@link Token Token} objects.\n\t *\n\t * Token streams have to fulfill a few properties that are assumed by most functions (mostly internal ones) that process\n\t * them.\n\t *\n\t * 1. No adjacent strings.\n\t * 2. No empty strings.\n\t *\n\t * The only exception here is the token stream that only contains the empty string and nothing else.\n\t *\n\t * @typedef {Array<string | Token>} TokenStream\n\t * @global\n\t * @public\n\t */\n\n\t/**\n\t * Converts the given token or token stream to an HTML representation.\n\t *\n\t * The following hooks will be run:\n\t * 1. `wrap`: On each {@link Token}.\n\t *\n\t * @param {string | Token | TokenStream} o The token or token stream to be converted.\n\t * @param {string} language The name of current language.\n\t * @returns {string} The HTML representation of the token or token stream.\n\t * @memberof Token\n\t * @static\n\t */\n\tToken.stringify = function stringify(o, language) {\n\t\tif (typeof o == 'string') {\n\t\t\treturn o;\n\t\t}\n\t\tif (Array.isArray(o)) {\n\t\t\tvar s = '';\n\t\t\to.forEach(function (e) {\n\t\t\t\ts += stringify(e, language);\n\t\t\t});\n\t\t\treturn s;\n\t\t}\n\n\t\tvar env = {\n\t\t\ttype: o.type,\n\t\t\tcontent: stringify(o.content, language),\n\t\t\ttag: 'span',\n\t\t\tclasses: ['token', o.type],\n\t\t\tattributes: {},\n\t\t\tlanguage: language\n\t\t};\n\n\t\tvar aliases = o.alias;\n\t\tif (aliases) {\n\t\t\tif (Array.isArray(aliases)) {\n\t\t\t\tArray.prototype.push.apply(env.classes, aliases);\n\t\t\t} else {\n\t\t\t\tenv.classes.push(aliases);\n\t\t\t}\n\t\t}\n\n\t\t_.hooks.run('wrap', env);\n\n\t\tvar attributes = '';\n\t\tfor (var name in env.attributes) {\n\t\t\tattributes += ' ' + name + '=\"' + (env.attributes[name] || '').replace(/\"/g, '"') + '\"';\n\t\t}\n\n\t\treturn '<' + env.tag + ' class=\"' + env.classes.join(' ') + '\"' + attributes + '>' + env.content + '</' + env.tag + '>';\n\t};\n\n\t/**\n\t * @param {RegExp} pattern\n\t * @param {number} pos\n\t * @param {string} text\n\t * @param {boolean} lookbehind\n\t * @returns {RegExpExecArray | null}\n\t */\n\tfunction matchPattern(pattern, pos, text, lookbehind) {\n\t\tpattern.lastIndex = pos;\n\t\tvar match = pattern.exec(text);\n\t\tif (match && lookbehind && match[1]) {\n\t\t\t// change the match to remove the text matched by the Prism lookbehind group\n\t\t\tvar lookbehindLength = match[1].length;\n\t\t\tmatch.index += lookbehindLength;\n\t\t\tmatch[0] = match[0].slice(lookbehindLength);\n\t\t}\n\t\treturn match;\n\t}\n\n\t/**\n\t * @param {string} text\n\t * @param {LinkedList<string | Token>} tokenList\n\t * @param {any} grammar\n\t * @param {LinkedListNode<string | Token>} startNode\n\t * @param {number} startPos\n\t * @param {RematchOptions} [rematch]\n\t * @returns {void}\n\t * @private\n\t *\n\t * @typedef RematchOptions\n\t * @property {string} cause\n\t * @property {number} reach\n\t */\n\tfunction matchGrammar(text, tokenList, grammar, startNode, startPos, rematch) {\n\t\tfor (var token in grammar) {\n\t\t\tif (!grammar.hasOwnProperty(token) || !grammar[token]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tvar patterns = grammar[token];\n\t\t\tpatterns = Array.isArray(patterns) ? patterns : [patterns];\n\n\t\t\tfor (var j = 0; j < patterns.length; ++j) {\n\t\t\t\tif (rematch && rematch.cause == token + ',' + j) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tvar patternObj = patterns[j];\n\t\t\t\tvar inside = patternObj.inside;\n\t\t\t\tvar lookbehind = !!patternObj.lookbehind;\n\t\t\t\tvar greedy = !!patternObj.greedy;\n\t\t\t\tvar alias = patternObj.alias;\n\n\t\t\t\tif (greedy && !patternObj.pattern.global) {\n\t\t\t\t\t// Without the global flag, lastIndex won't work\n\t\t\t\t\tvar flags = patternObj.pattern.toString().match(/[imsuy]*$/)[0];\n\t\t\t\t\tpatternObj.pattern = RegExp(patternObj.pattern.source, flags + 'g');\n\t\t\t\t}\n\n\t\t\t\t/** @type {RegExp} */\n\t\t\t\tvar pattern = patternObj.pattern || patternObj;\n\n\t\t\t\tfor ( // iterate the token list and keep track of the current token/string position\n\t\t\t\t\tvar currentNode = startNode.next, pos = startPos;\n\t\t\t\t\tcurrentNode !== tokenList.tail;\n\t\t\t\t\tpos += currentNode.value.length, currentNode = currentNode.next\n\t\t\t\t) {\n\n\t\t\t\t\tif (rematch && pos >= rematch.reach) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar str = currentNode.value;\n\n\t\t\t\t\tif (tokenList.length > text.length) {\n\t\t\t\t\t\t// Something went terribly wrong, ABORT, ABORT!\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (str instanceof Token) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar removeCount = 1; // this is the to parameter of removeBetween\n\t\t\t\t\tvar match;\n\n\t\t\t\t\tif (greedy) {\n\t\t\t\t\t\tmatch = matchPattern(pattern, pos, text, lookbehind);\n\t\t\t\t\t\tif (!match || match.index >= text.length) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar from = match.index;\n\t\t\t\t\t\tvar to = match.index + match[0].length;\n\t\t\t\t\t\tvar p = pos;\n\n\t\t\t\t\t\t// find the node that contains the match\n\t\t\t\t\t\tp += currentNode.value.length;\n\t\t\t\t\t\twhile (from >= p) {\n\t\t\t\t\t\t\tcurrentNode = currentNode.next;\n\t\t\t\t\t\t\tp += currentNode.value.length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// adjust pos (and p)\n\t\t\t\t\t\tp -= currentNode.value.length;\n\t\t\t\t\t\tpos = p;\n\n\t\t\t\t\t\t// the current node is a Token, then the match starts inside another Token, which is invalid\n\t\t\t\t\t\tif (currentNode.value instanceof Token) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// find the last node which is affected by this match\n\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\tvar k = currentNode;\n\t\t\t\t\t\t\tk !== tokenList.tail && (p < to || typeof k.value === 'string');\n\t\t\t\t\t\t\tk = k.next\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tremoveCount++;\n\t\t\t\t\t\t\tp += k.value.length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tremoveCount--;\n\n\t\t\t\t\t\t// replace with the new match\n\t\t\t\t\t\tstr = text.slice(pos, p);\n\t\t\t\t\t\tmatch.index -= pos;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmatch = matchPattern(pattern, 0, str, lookbehind);\n\t\t\t\t\t\tif (!match) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// eslint-disable-next-line no-redeclare\n\t\t\t\t\tvar from = match.index;\n\t\t\t\t\tvar matchStr = match[0];\n\t\t\t\t\tvar before = str.slice(0, from);\n\t\t\t\t\tvar after = str.slice(from + matchStr.length);\n\n\t\t\t\t\tvar reach = pos + str.length;\n\t\t\t\t\tif (rematch && reach > rematch.reach) {\n\t\t\t\t\t\trematch.reach = reach;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar removeFrom = currentNode.prev;\n\n\t\t\t\t\tif (before) {\n\t\t\t\t\t\tremoveFrom = addAfter(tokenList, removeFrom, before);\n\t\t\t\t\t\tpos += before.length;\n\t\t\t\t\t}\n\n\t\t\t\t\tremoveRange(tokenList, removeFrom, removeCount);\n\n\t\t\t\t\tvar wrapped = new Token(token, inside ? _.tokenize(matchStr, inside) : matchStr, alias, matchStr);\n\t\t\t\t\tcurrentNode = addAfter(tokenList, removeFrom, wrapped);\n\n\t\t\t\t\tif (after) {\n\t\t\t\t\t\taddAfter(tokenList, currentNode, after);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (removeCount > 1) {\n\t\t\t\t\t\t// at least one Token object was removed, so we have to do some rematching\n\t\t\t\t\t\t// this can only happen if the current pattern is greedy\n\n\t\t\t\t\t\t/** @type {RematchOptions} */\n\t\t\t\t\t\tvar nestedRematch = {\n\t\t\t\t\t\t\tcause: token + ',' + j,\n\t\t\t\t\t\t\treach: reach\n\t\t\t\t\t\t};\n\t\t\t\t\t\tmatchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch);\n\n\t\t\t\t\t\t// the reach might have been extended because of the rematching\n\t\t\t\t\t\tif (rematch && nestedRematch.reach > rematch.reach) {\n\t\t\t\t\t\t\trematch.reach = nestedRematch.reach;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @typedef LinkedListNode\n\t * @property {T} value\n\t * @property {LinkedListNode<T> | null} prev The previous node.\n\t * @property {LinkedListNode<T> | null} next The next node.\n\t * @template T\n\t * @private\n\t */\n\n\t/**\n\t * @template T\n\t * @private\n\t */\n\tfunction LinkedList() {\n\t\t/** @type {LinkedListNode<T>} */\n\t\tvar head = { value: null, prev: null, next: null };\n\t\t/** @type {LinkedListNode<T>} */\n\t\tvar tail = { value: null, prev: head, next: null };\n\t\thead.next = tail;\n\n\t\t/** @type {LinkedListNode<T>} */\n\t\tthis.head = head;\n\t\t/** @type {LinkedListNode<T>} */\n\t\tthis.tail = tail;\n\t\tthis.length = 0;\n\t}\n\n\t/**\n\t * Adds a new node with the given value to the list.\n\t *\n\t * @param {LinkedList<T>} list\n\t * @param {LinkedListNode<T>} node\n\t * @param {T} value\n\t * @returns {LinkedListNode<T>} The added node.\n\t * @template T\n\t */\n\tfunction addAfter(list, node, value) {\n\t\t// assumes that node != list.tail && values.length >= 0\n\t\tvar next = node.next;\n\n\t\tvar newNode = { value: value, prev: node, next: next };\n\t\tnode.next = newNode;\n\t\tnext.prev = newNode;\n\t\tlist.length++;\n\n\t\treturn newNode;\n\t}\n\t/**\n\t * Removes `count` nodes after the given node. The given node will not be removed.\n\t *\n\t * @param {LinkedList<T>} list\n\t * @param {LinkedListNode<T>} node\n\t * @param {number} count\n\t * @template T\n\t */\n\tfunction removeRange(list, node, count) {\n\t\tvar next = node.next;\n\t\tfor (var i = 0; i < count && next !== list.tail; i++) {\n\t\t\tnext = next.next;\n\t\t}\n\t\tnode.next = next;\n\t\tnext.prev = node;\n\t\tlist.length -= i;\n\t}\n\t/**\n\t * @param {LinkedList<T>} list\n\t * @returns {T[]}\n\t * @template T\n\t */\n\tfunction toArray(list) {\n\t\tvar array = [];\n\t\tvar node = list.head.next;\n\t\twhile (node !== list.tail) {\n\t\t\tarray.push(node.value);\n\t\t\tnode = node.next;\n\t\t}\n\t\treturn array;\n\t}\n\n\n\tif (!_self.document) {\n\t\tif (!_self.addEventListener) {\n\t\t\t// in Node.js\n\t\t\treturn _;\n\t\t}\n\n\t\tif (!_.disableWorkerMessageHandler) {\n\t\t\t// In worker\n\t\t\t_self.addEventListener('message', function (evt) {\n\t\t\t\tvar message = JSON.parse(evt.data);\n\t\t\t\tvar lang = message.language;\n\t\t\t\tvar code = message.code;\n\t\t\t\tvar immediateClose = message.immediateClose;\n\n\t\t\t\t_self.postMessage(_.highlight(code, _.languages[lang], lang));\n\t\t\t\tif (immediateClose) {\n\t\t\t\t\t_self.close();\n\t\t\t\t}\n\t\t\t}, false);\n\t\t}\n\n\t\treturn _;\n\t}\n\n\t// Get current script and highlight\n\tvar script = _.util.currentScript();\n\n\tif (script) {\n\t\t_.filename = script.src;\n\n\t\tif (script.hasAttribute('data-manual')) {\n\t\t\t_.manual = true;\n\t\t}\n\t}\n\n\tfunction highlightAutomaticallyCallback() {\n\t\tif (!_.manual) {\n\t\t\t_.highlightAll();\n\t\t}\n\t}\n\n\tif (!_.manual) {\n\t\t// If the document state is \"loading\", then we'll use DOMContentLoaded.\n\t\t// If the document state is \"interactive\" and the prism.js script is deferred, then we'll also use the\n\t\t// DOMContentLoaded event because there might be some plugins or languages which have also been deferred and they\n\t\t// might take longer one animation frame to execute which can create a race condition where only some plugins have\n\t\t// been loaded when Prism.highlightAll() is executed, depending on how fast resources are loaded.\n\t\t// See https://github.com/PrismJS/prism/issues/2102\n\t\tvar readyState = document.readyState;\n\t\tif (readyState === 'loading' || readyState === 'interactive' && script && script.defer) {\n\t\t\tdocument.addEventListener('DOMContentLoaded', highlightAutomaticallyCallback);\n\t\t} else {\n\t\t\tif (window.requestAnimationFrame) {\n\t\t\t\twindow.requestAnimationFrame(highlightAutomaticallyCallback);\n\t\t\t} else {\n\t\t\t\twindow.setTimeout(highlightAutomaticallyCallback, 16);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn _;\n\n}(_self));\n\nif (typeof module !== 'undefined' && module.exports) {\n\tmodule.exports = Prism;\n}\n\n// hack for components to work correctly in node.js\nif (typeof global !== 'undefined') {\n\tglobal.Prism = Prism;\n}\n\n// some additional documentation/types\n\n/**\n * The expansion of a simple `RegExp` literal to support additional properties.\n *\n * @typedef GrammarToken\n * @property {RegExp} pattern The regular expression of the token.\n * @property {boolean} [lookbehind=false] If `true`, then the first capturing group of `pattern` will (effectively)\n * behave as a lookbehind group meaning that the captured text will not be part of the matched text of the new token.\n * @property {boolean} [greedy=false] Whether the token is greedy.\n * @property {string|string[]} [alias] An optional alias or list of aliases.\n * @property {Grammar} [inside] The nested grammar of this token.\n *\n * The `inside` grammar will be used to tokenize the text value of each token of this kind.\n *\n * This can be used to make nested and even recursive language definitions.\n *\n * Note: This can cause infinite recursion. Be careful when you embed different languages or even the same language into\n * each another.\n * @global\n * @public\n */\n\n/**\n * @typedef Grammar\n * @type {Object<string, RegExp | GrammarToken | Array<RegExp | GrammarToken>>}\n * @property {Grammar} [rest] An optional grammar object that will be appended to this grammar.\n * @global\n * @public\n */\n\n/**\n * A function which will invoked after an element was successfully highlighted.\n *\n * @callback HighlightCallback\n * @param {Element} element The element successfully highlighted.\n * @returns {void}\n * @global\n * @public\n */\n\n/**\n * @callback HookCallback\n * @param {Object<string, any>} env The environment variables of the hook.\n * @returns {void}\n * @global\n * @public\n */\n","Prism.languages.markup = {\n\t'comment': {\n\t\tpattern: /<!--(?:(?!<!--)[\\s\\S])*?-->/,\n\t\tgreedy: true\n\t},\n\t'prolog': {\n\t\tpattern: /<\\?[\\s\\S]+?\\?>/,\n\t\tgreedy: true\n\t},\n\t'doctype': {\n\t\t// https://www.w3.org/TR/xml/#NT-doctypedecl\n\t\tpattern: /<!DOCTYPE(?:[^>\"'[\\]]|\"[^\"]*\"|'[^']*')+(?:\\[(?:[^<\"'\\]]|\"[^\"]*\"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\\]\\s*)?>/i,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'internal-subset': {\n\t\t\t\tpattern: /(^[^\\[]*\\[)[\\s\\S]+(?=\\]>$)/,\n\t\t\t\tlookbehind: true,\n\t\t\t\tgreedy: true,\n\t\t\t\tinside: null // see below\n\t\t\t},\n\t\t\t'string': {\n\t\t\t\tpattern: /\"[^\"]*\"|'[^']*'/,\n\t\t\t\tgreedy: true\n\t\t\t},\n\t\t\t'punctuation': /^<!|>$|[[\\]]/,\n\t\t\t'doctype-tag': /^DOCTYPE/i,\n\t\t\t'name': /[^\\s<>'\"]+/\n\t\t}\n\t},\n\t'cdata': {\n\t\tpattern: /<!\\[CDATA\\[[\\s\\S]*?\\]\\]>/i,\n\t\tgreedy: true\n\t},\n\t'tag': {\n\t\tpattern: /<\\/?(?!\\d)[^\\s>\\/=$<%]+(?:\\s(?:\\s*[^\\s>\\/=]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))|(?=[\\s/>])))+)?\\s*\\/?>/,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'tag': {\n\t\t\t\tpattern: /^<\\/?[^\\s>\\/]+/,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': /^<\\/?/,\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t},\n\t\t\t'special-attr': [],\n\t\t\t'attr-value': {\n\t\t\t\tpattern: /=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+)/,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpattern: /^=/,\n\t\t\t\t\t\t\talias: 'attr-equals'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpattern: /^(\\s*)[\"']|[\"']$/,\n\t\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t},\n\t\t\t'punctuation': /\\/?>/,\n\t\t\t'attr-name': {\n\t\t\t\tpattern: /[^\\s>\\/]+/,\n\t\t\t\tinside: {\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t},\n\t'entity': [\n\t\t{\n\t\t\tpattern: /&[\\da-z]{1,8};/i,\n\t\t\talias: 'named-entity'\n\t\t},\n\t\t/&#x?[\\da-f]{1,8};/i\n\t]\n};\n\nPrism.languages.markup['tag'].inside['attr-value'].inside['entity'] =\n\tPrism.languages.markup['entity'];\nPrism.languages.markup['doctype'].inside['internal-subset'].inside = Prism.languages.markup;\n\n// Plugin to make entity title show the real entity, idea by Roman Komarov\nPrism.hooks.add('wrap', function (env) {\n\n\tif (env.type === 'entity') {\n\t\tenv.attributes['title'] = env.content.replace(/&/, '&');\n\t}\n});\n\nObject.defineProperty(Prism.languages.markup.tag, 'addInlined', {\n\t/**\n\t * Adds an inlined language to markup.\n\t *\n\t * An example of an inlined language is CSS with `<style>` tags.\n\t *\n\t * @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as\n\t * case insensitive.\n\t * @param {string} lang The language key.\n\t * @example\n\t * addInlined('style', 'css');\n\t */\n\tvalue: function addInlined(tagName, lang) {\n\t\tvar includedCdataInside = {};\n\t\tincludedCdataInside['language-' + lang] = {\n\t\t\tpattern: /(^<!\\[CDATA\\[)[\\s\\S]+?(?=\\]\\]>$)/i,\n\t\t\tlookbehind: true,\n\t\t\tinside: Prism.languages[lang]\n\t\t};\n\t\tincludedCdataInside['cdata'] = /^<!\\[CDATA\\[|\\]\\]>$/i;\n\n\t\tvar inside = {\n\t\t\t'included-cdata': {\n\t\t\t\tpattern: /<!\\[CDATA\\[[\\s\\S]*?\\]\\]>/i,\n\t\t\t\tinside: includedCdataInside\n\t\t\t}\n\t\t};\n\t\tinside['language-' + lang] = {\n\t\t\tpattern: /[\\s\\S]+/,\n\t\t\tinside: Prism.languages[lang]\n\t\t};\n\n\t\tvar def = {};\n\t\tdef[tagName] = {\n\t\t\tpattern: RegExp(/(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)/.source.replace(/__/g, function () { return tagName; }), 'i'),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: inside\n\t\t};\n\n\t\tPrism.languages.insertBefore('markup', 'cdata', def);\n\t}\n});\nObject.defineProperty(Prism.languages.markup.tag, 'addAttribute', {\n\t/**\n\t * Adds an pattern to highlight languages embedded in HTML attributes.\n\t *\n\t * An example of an inlined language is CSS with `style` attributes.\n\t *\n\t * @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as\n\t * case insensitive.\n\t * @param {string} lang The language key.\n\t * @example\n\t * addAttribute('style', 'css');\n\t */\n\tvalue: function (attrName, lang) {\n\t\tPrism.languages.markup.tag.inside['special-attr'].push({\n\t\t\tpattern: RegExp(\n\t\t\t\t/(^|[\"'\\s])/.source + '(?:' + attrName + ')' + /\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))/.source,\n\t\t\t\t'i'\n\t\t\t),\n\t\t\tlookbehind: true,\n\t\t\tinside: {\n\t\t\t\t'attr-name': /^[^\\s=]+/,\n\t\t\t\t'attr-value': {\n\t\t\t\t\tpattern: /=[\\s\\S]+/,\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'value': {\n\t\t\t\t\t\t\tpattern: /(^=\\s*([\"']|(?![\"'])))\\S[\\s\\S]*(?=\\2$)/,\n\t\t\t\t\t\t\tlookbehind: true,\n\t\t\t\t\t\t\talias: [lang, 'language-' + lang],\n\t\t\t\t\t\t\tinside: Prism.languages[lang]\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'punctuation': [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpattern: /^=/,\n\t\t\t\t\t\t\t\talias: 'attr-equals'\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t/\"|'/\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n});\n\nPrism.languages.html = Prism.languages.markup;\nPrism.languages.mathml = Prism.languages.markup;\nPrism.languages.svg = Prism.languages.markup;\n\nPrism.languages.xml = Prism.languages.extend('markup', {});\nPrism.languages.ssml = Prism.languages.xml;\nPrism.languages.atom = Prism.languages.xml;\nPrism.languages.rss = Prism.languages.xml;\n","(function (Prism) {\n\n\t// Allow only one line break\n\tvar inner = /(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))/.source;\n\n\t/**\n\t * This function is intended for the creation of the bold or italic pattern.\n\t *\n\t * This also adds a lookbehind group to the given pattern to ensure that the pattern is not backslash-escaped.\n\t *\n\t * _Note:_ Keep in mind that this adds a capturing group.\n\t *\n\t * @param {string} pattern\n\t * @returns {RegExp}\n\t */\n\tfunction createInline(pattern) {\n\t\tpattern = pattern.replace(/<inner>/g, function () { return inner; });\n\t\treturn RegExp(/((?:^|[^\\\\])(?:\\\\{2})*)/.source + '(?:' + pattern + ')');\n\t}\n\n\n\tvar tableCell = /(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+/.source;\n\tvar tableRow = /\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))/.source.replace(/__/g, function () { return tableCell; });\n\tvar tableLine = /\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)/.source;\n\n\n\tPrism.languages.markdown = Prism.languages.extend('markup', {});\n\tPrism.languages.insertBefore('markdown', 'prolog', {\n\t\t'front-matter-block': {\n\t\t\tpattern: /(^(?:\\s*[\\r\\n])?)---(?!.)[\\s\\S]*?[\\r\\n]---(?!.)/,\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'punctuation': /^---|---$/,\n\t\t\t\t'front-matter': {\n\t\t\t\t\tpattern: /\\S+(?:\\s+\\S+)*/,\n\t\t\t\t\talias: ['yaml', 'language-yaml'],\n\t\t\t\t\tinside: Prism.languages.yaml\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t'blockquote': {\n\t\t\t// > ...\n\t\t\tpattern: /^>(?:[\\t ]*>)*/m,\n\t\t\talias: 'punctuation'\n\t\t},\n\t\t'table': {\n\t\t\tpattern: RegExp('^' + tableRow + tableLine + '(?:' + tableRow + ')*', 'm'),\n\t\t\tinside: {\n\t\t\t\t'table-data-rows': {\n\t\t\t\t\tpattern: RegExp('^(' + tableRow + tableLine + ')(?:' + tableRow + ')*$'),\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'table-data': {\n\t\t\t\t\t\t\tpattern: RegExp(tableCell),\n\t\t\t\t\t\t\tinside: Prism.languages.markdown\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'punctuation': /\\|/\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t'table-line': {\n\t\t\t\t\tpattern: RegExp('^(' + tableRow + ')' + tableLine + '$'),\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'punctuation': /\\||:?-{3,}:?/\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t'table-header-row': {\n\t\t\t\t\tpattern: RegExp('^' + tableRow + '$'),\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'table-header': {\n\t\t\t\t\t\t\tpattern: RegExp(tableCell),\n\t\t\t\t\t\t\talias: 'important',\n\t\t\t\t\t\t\tinside: Prism.languages.markdown\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'punctuation': /\\|/\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t'code': [\n\t\t\t{\n\t\t\t\t// Prefixed by 4 spaces or 1 tab and preceded by an empty line\n\t\t\t\tpattern: /((?:^|\\n)[ \\t]*\\n|(?:^|\\r\\n?)[ \\t]*\\r\\n?)(?: {4}|\\t).+(?:(?:\\n|\\r\\n?)(?: {4}|\\t).+)*/,\n\t\t\t\tlookbehind: true,\n\t\t\t\talias: 'keyword'\n\t\t\t},\n\t\t\t{\n\t\t\t\t// ```optional language\n\t\t\t\t// code block\n\t\t\t\t// ```\n\t\t\t\tpattern: /^```[\\s\\S]*?^```$/m,\n\t\t\t\tgreedy: true,\n\t\t\t\tinside: {\n\t\t\t\t\t'code-block': {\n\t\t\t\t\t\tpattern: /^(```.*(?:\\n|\\r\\n?))[\\s\\S]+?(?=(?:\\n|\\r\\n?)^```$)/m,\n\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t},\n\t\t\t\t\t'code-language': {\n\t\t\t\t\t\tpattern: /^(```).+/,\n\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t},\n\t\t\t\t\t'punctuation': /```/\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\t'title': [\n\t\t\t{\n\t\t\t\t// title 1\n\t\t\t\t// =======\n\n\t\t\t\t// title 2\n\t\t\t\t// -------\n\t\t\t\tpattern: /\\S.*(?:\\n|\\r\\n?)(?:==+|--+)(?=[ \\t]*$)/m,\n\t\t\t\talias: 'important',\n\t\t\t\tinside: {\n\t\t\t\t\tpunctuation: /==+$|--+$/\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\t// # title 1\n\t\t\t\t// ###### title 6\n\t\t\t\tpattern: /(^\\s*)#.+/m,\n\t\t\t\tlookbehind: true,\n\t\t\t\talias: 'important',\n\t\t\t\tinside: {\n\t\t\t\t\tpunctuation: /^#+|#+$/\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\t'hr': {\n\t\t\t// ***\n\t\t\t// ---\n\t\t\t// * * *\n\t\t\t// -----------\n\t\t\tpattern: /(^\\s*)([*-])(?:[\\t ]*\\2){2,}(?=\\s*$)/m,\n\t\t\tlookbehind: true,\n\t\t\talias: 'punctuation'\n\t\t},\n\t\t'list': {\n\t\t\t// * item\n\t\t\t// + item\n\t\t\t// - item\n\t\t\t// 1. item\n\t\t\tpattern: /(^\\s*)(?:[*+-]|\\d+\\.)(?=[\\t ].)/m,\n\t\t\tlookbehind: true,\n\t\t\talias: 'punctuation'\n\t\t},\n\t\t'url-reference': {\n\t\t\t// [id]: http://example.com \"Optional title\"\n\t\t\t// [id]: http://example.com 'Optional title'\n\t\t\t// [id]: http://example.com (Optional title)\n\t\t\t// [id]: <http://example.com> \"Optional title\"\n\t\t\tpattern: /!?\\[[^\\]]+\\]:[\\t ]+(?:\\S+|<(?:\\\\.|[^>\\\\])+>)(?:[\\t ]+(?:\"(?:\\\\.|[^\"\\\\])*\"|'(?:\\\\.|[^'\\\\])*'|\\((?:\\\\.|[^)\\\\])*\\)))?/,\n\t\t\tinside: {\n\t\t\t\t'variable': {\n\t\t\t\t\tpattern: /^(!?\\[)[^\\]]+/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t},\n\t\t\t\t'string': /(?:\"(?:\\\\.|[^\"\\\\])*\"|'(?:\\\\.|[^'\\\\])*'|\\((?:\\\\.|[^)\\\\])*\\))$/,\n\t\t\t\t'punctuation': /^[\\[\\]!:]|[<>]/\n\t\t\t},\n\t\t\talias: 'url'\n\t\t},\n\t\t'bold': {\n\t\t\t// **strong**\n\t\t\t// __strong__\n\n\t\t\t// allow one nested instance of italic text using the same delimiter\n\t\t\tpattern: createInline(/\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^..)[\\s\\S]+(?=..$)/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'punctuation': /\\*\\*|__/\n\t\t\t}\n\t\t},\n\t\t'italic': {\n\t\t\t// *em*\n\t\t\t// _em_\n\n\t\t\t// allow one nested instance of bold text using the same delimiter\n\t\t\tpattern: createInline(/\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^.)[\\s\\S]+(?=.$)/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'punctuation': /[*_]/\n\t\t\t}\n\t\t},\n\t\t'strike': {\n\t\t\t// ~~strike through~~\n\t\t\t// ~strike~\n\t\t\t// eslint-disable-next-line regexp/strict\n\t\t\tpattern: createInline(/(~~?)(?:(?!~)<inner>)+\\2/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^~~?)[\\s\\S]+(?=\\1$)/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'punctuation': /~~?/\n\t\t\t}\n\t\t},\n\t\t'code-snippet': {\n\t\t\t// `code`\n\t\t\t// ``code``\n\t\t\tpattern: /(^|[^\\\\`])(?:``[^`\\r\\n]+(?:`[^`\\r\\n]+)*``(?!`)|`[^`\\r\\n]+`(?!`))/,\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\talias: ['code', 'keyword']\n\t\t},\n\t\t'url': {\n\t\t\t// [example](http://example.com \"Optional title\")\n\t\t\t// [example][id]\n\t\t\t// [example] [id]\n\t\t\tpattern: createInline(/!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+\"(?:\\\\.|[^\"\\\\])*\")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'operator': /^!/,\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^\\[)[^\\]]+(?=\\])/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'variable': {\n\t\t\t\t\tpattern: /(^\\][ \\t]?\\[)[^\\]]+(?=\\]$)/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t},\n\t\t\t\t'url': {\n\t\t\t\t\tpattern: /(^\\]\\()[^\\s)]+/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t},\n\t\t\t\t'string': {\n\t\t\t\t\tpattern: /(^[ \\t]+)\"(?:\\\\.|[^\"\\\\])*\"(?=\\)$)/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\t['url', 'bold', 'italic', 'strike'].forEach(function (token) {\n\t\t['url', 'bold', 'italic', 'strike', 'code-snippet'].forEach(function (inside) {\n\t\t\tif (token !== inside) {\n\t\t\t\tPrism.languages.markdown[token].inside.content.inside[inside] = Prism.languages.markdown[inside];\n\t\t\t}\n\t\t});\n\t});\n\n\tPrism.hooks.add('after-tokenize', function (env) {\n\t\tif (env.language !== 'markdown' && env.language !== 'md') {\n\t\t\treturn;\n\t\t}\n\n\t\tfunction walkTokens(tokens) {\n\t\t\tif (!tokens || typeof tokens === 'string') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor (var i = 0, l = tokens.length; i < l; i++) {\n\t\t\t\tvar token = tokens[i];\n\n\t\t\t\tif (token.type !== 'code') {\n\t\t\t\t\twalkTokens(token.content);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * Add the correct `language-xxxx` class to this code block. Keep in mind that the `code-language` token\n\t\t\t\t * is optional. But the grammar is defined so that there is only one case we have to handle:\n\t\t\t\t *\n\t\t\t\t * token.content = [\n\t\t\t\t * <span class=\"punctuation\">```</span>,\n\t\t\t\t * <span class=\"code-language\">xxxx</span>,\n\t\t\t\t * '\\n', // exactly one new lines (\\r or \\n or \\r\\n)\n\t\t\t\t * <span class=\"code-block\">...</span>,\n\t\t\t\t * '\\n', // exactly one new lines again\n\t\t\t\t * <span class=\"punctuation\">```</span>\n\t\t\t\t * ];\n\t\t\t\t */\n\n\t\t\t\tvar codeLang = token.content[1];\n\t\t\t\tvar codeBlock = token.content[3];\n\n\t\t\t\tif (codeLang && codeBlock &&\n\t\t\t\t\tcodeLang.type === 'code-language' && codeBlock.type === 'code-block' &&\n\t\t\t\t\ttypeof codeLang.content === 'string') {\n\n\t\t\t\t\t// this might be a language that Prism does not support\n\n\t\t\t\t\t// do some replacements to support C++, C#, and F#\n\t\t\t\t\tvar lang = codeLang.content.replace(/\\b#/g, 'sharp').replace(/\\b\\+\\+/g, 'pp');\n\t\t\t\t\t// only use the first word\n\t\t\t\t\tlang = (/[a-z][\\w-]*/i.exec(lang) || [''])[0].toLowerCase();\n\t\t\t\t\tvar alias = 'language-' + lang;\n\n\t\t\t\t\t// add alias\n\t\t\t\t\tif (!codeBlock.alias) {\n\t\t\t\t\t\tcodeBlock.alias = [alias];\n\t\t\t\t\t} else if (typeof codeBlock.alias === 'string') {\n\t\t\t\t\t\tcodeBlock.alias = [codeBlock.alias, alias];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcodeBlock.alias.push(alias);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\twalkTokens(env.tokens);\n\t});\n\n\tPrism.hooks.add('wrap', function (env) {\n\t\tif (env.type !== 'code-block') {\n\t\t\treturn;\n\t\t}\n\n\t\tvar codeLang = '';\n\t\tfor (var i = 0, l = env.classes.length; i < l; i++) {\n\t\t\tvar cls = env.classes[i];\n\t\t\tvar match = /language-(.+)/.exec(cls);\n\t\t\tif (match) {\n\t\t\t\tcodeLang = match[1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tvar grammar = Prism.languages[codeLang];\n\n\t\tif (!grammar) {\n\t\t\tif (codeLang && codeLang !== 'none' && Prism.plugins.autoloader) {\n\t\t\t\tvar id = 'md-' + new Date().valueOf() + '-' + Math.floor(Math.random() * 1e16);\n\t\t\t\tenv.attributes['id'] = id;\n\n\t\t\t\tPrism.plugins.autoloader.loadLanguages(codeLang, function () {\n\t\t\t\t\tvar ele = document.getElementById(id);\n\t\t\t\t\tif (ele) {\n\t\t\t\t\t\tele.innerHTML = Prism.highlight(ele.textContent, Prism.languages[codeLang], codeLang);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tenv.content = Prism.highlight(textContent(env.content), grammar, codeLang);\n\t\t}\n\t});\n\n\tvar tagPattern = RegExp(Prism.languages.markup.tag.pattern.source, 'gi');\n\n\t/**\n\t * A list of known entity names.\n\t *\n\t * This will always be incomplete to save space. The current list is the one used by lowdash's unescape function.\n\t *\n\t * @see {@link https://github.com/lodash/lodash/blob/2da024c3b4f9947a48517639de7560457cd4ec6c/unescape.js#L2}\n\t */\n\tvar KNOWN_ENTITY_NAMES = {\n\t\t'amp': '&',\n\t\t'lt': '<',\n\t\t'gt': '>',\n\t\t'quot': '\"',\n\t};\n\n\t// IE 11 doesn't support `String.fromCodePoint`\n\tvar fromCodePoint = String.fromCodePoint || String.fromCharCode;\n\n\t/**\n\t * Returns the text content of a given HTML source code string.\n\t *\n\t * @param {string} html\n\t * @returns {string}\n\t */\n\tfunction textContent(html) {\n\t\t// remove all tags\n\t\tvar text = html.replace(tagPattern, '');\n\n\t\t// decode known entities\n\t\ttext = text.replace(/&(\\w{1,8}|#x?[\\da-f]{1,8});/gi, function (m, code) {\n\t\t\tcode = code.toLowerCase();\n\n\t\t\tif (code[0] === '#') {\n\t\t\t\tvar value;\n\t\t\t\tif (code[1] === 'x') {\n\t\t\t\t\tvalue = parseInt(code.slice(2), 16);\n\t\t\t\t} else {\n\t\t\t\t\tvalue = Number(code.slice(1));\n\t\t\t\t}\n\n\t\t\t\treturn fromCodePoint(value);\n\t\t\t} else {\n\t\t\t\tvar known = KNOWN_ENTITY_NAMES[code];\n\t\t\t\tif (known) {\n\t\t\t\t\treturn known;\n\t\t\t\t}\n\n\t\t\t\t// unable to decode\n\t\t\t\treturn m;\n\t\t\t}\n\t\t});\n\n\t\treturn text;\n\t}\n\n\tPrism.languages.md = Prism.languages.markdown;\n\n}(Prism));\n","import anime from 'animejs/lib/anime.es.js';\nconst notifcation = document.querySelector('.notify-message');\nconst notify = document.getElementById('notify-message');\nconst responseText = document.querySelector('.response-text');\nconst notifyText = document.querySelector('.notify-text');\nconst notifyIcons = document.querySelector('.notify-icons');\n//const notifyProgress = document.getElementById('notify-progress');\nconst iconGood = document.querySelector('.notify-good');\nconst iconNotGood = document.querySelector('.notify-notgood');\nconst iconWorking = document.querySelector('.notify-working');\n\nexport default class Notfications {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\n\talert(text, status) {\n\t\ticonWorking.style.display = 'none';\n\t\ticonGood.style.display = 'none';\n\t\ticonNotGood.style.display = 'none';\n\n\t\tvar color = '';\n\t\tresponseText.innerHTML = text;\n\t\tif (status !== null) {\n\t\t\tif (status) {\n\t\t\t\tcolor = '#32cd32';\n\t\t\t\ticonWorking.style.display = 'none';\n\t\t\t\ticonGood.style.display = 'block';\n\t\t\t} else {\n\t\t\t\tcolor = '#F64747';\n\t\t\t\ticonWorking.style.display = 'none';\n\t\t\t\ticonNotGood.style.display = 'block';\n\t\t\t}\n\t\t} else {\n\t\t\tcolor = '#200317';\n\t\t\ticonWorking.style.display = 'block';\n\t\t}\n\n\t\tnew anime({\n\t\t\ttargets: document.querySelector('.top-nav'),\n\t\t\trotateX: '180deg',\n\t\t\teasing: 'easeOutQuint'\n\t\t});\n\n\t\tnew anime({\n\t\t\ttargets: document.querySelector('.notify'),\n\t\t\trotateX: '10deg',\n\t\t\teasing: 'easeOutQuint',\n\t\t\tcomplete: () => {\n\t\t\t\tnew anime({\n\t\t\t\t\ttargets: notifyIcons,\n\t\t\t\t\twidth: 39,\n\t\t\t\t\topacity: 1,\n\t\t\t\t\teasing: 'easeInQuint',\n\t\t\t\t\tduration: 300\n\t\t\t\t});\n\n\t\t\t\tnew anime({\n\t\t\t\t\ttargets: notifyText,\n\t\t\t\t\tbackgroundColor: color,\n\t\t\t\t\topacity: 1,\n\t\t\t\t\teasing: 'easeInOutQuad',\n\t\t\t\t\tduration: 400,\n\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\tif (status !== null) {\n\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\ttargets: notifyText,\n\t\t\t\t\t\t\t\t\tbackgroundColor: color,\n\t\t\t\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuad',\n\t\t\t\t\t\t\t\t\tduration: 400\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\ttargets: notifyIcons,\n\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\t\t\t\teasing: 'easeOutQuint',\n\t\t\t\t\t\t\t\t\tduration: 350\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tnew anime({\n\t\t\t\t\t\t\t\t\ttargets: document.querySelector('.top-nav'),\n\t\t\t\t\t\t\t\t\trotateX: '0deg',\n\t\t\t\t\t\t\t\t\teasing: 'easeOutQuint'\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tnew anime({\n\t\t\t\t\t\t\t\t\ttargets: document.querySelector('.notify'),\n\t\t\t\t\t\t\t\t\trotateX: '180deg',\n\t\t\t\t\t\t\t\t\teasing: 'easeOutQuint'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 2500);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","/*\n * anime.js v3.2.1\n * (c) 2020 Julian Garnier\n * Released under the MIT license\n * animejs.com\n */\n\n// Defaults\n\nvar defaultInstanceSettings = {\n update: null,\n begin: null,\n loopBegin: null,\n changeBegin: null,\n change: null,\n changeComplete: null,\n loopComplete: null,\n complete: null,\n loop: 1,\n direction: 'normal',\n autoplay: true,\n timelineOffset: 0\n};\n\nvar defaultTweenSettings = {\n duration: 1000,\n delay: 0,\n endDelay: 0,\n easing: 'easeOutElastic(1, .5)',\n round: 0\n};\n\nvar validTransforms = ['translateX', 'translateY', 'translateZ', 'rotate', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'perspective', 'matrix', 'matrix3d'];\n\n// Caching\n\nvar cache = {\n CSS: {},\n springs: {}\n};\n\n// Utils\n\nfunction minMax(val, min, max) {\n return Math.min(Math.max(val, min), max);\n}\n\nfunction stringContains(str, text) {\n return str.indexOf(text) > -1;\n}\n\nfunction applyArguments(func, args) {\n return func.apply(null, args);\n}\n\nvar is = {\n arr: function (a) { return Array.isArray(a); },\n obj: function (a) { return stringContains(Object.prototype.toString.call(a), 'Object'); },\n pth: function (a) { return is.obj(a) && a.hasOwnProperty('totalLength'); },\n svg: function (a) { return a instanceof SVGElement; },\n inp: function (a) { return a instanceof HTMLInputElement; },\n dom: function (a) { return a.nodeType || is.svg(a); },\n str: function (a) { return typeof a === 'string'; },\n fnc: function (a) { return typeof a === 'function'; },\n und: function (a) { return typeof a === 'undefined'; },\n nil: function (a) { return is.und(a) || a === null; },\n hex: function (a) { return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a); },\n rgb: function (a) { return /^rgb/.test(a); },\n hsl: function (a) { return /^hsl/.test(a); },\n col: function (a) { return (is.hex(a) || is.rgb(a) || is.hsl(a)); },\n key: function (a) { return !defaultInstanceSettings.hasOwnProperty(a) && !defaultTweenSettings.hasOwnProperty(a) && a !== 'targets' && a !== 'keyframes'; },\n};\n\n// Easings\n\nfunction parseEasingParameters(string) {\n var match = /\\(([^)]+)\\)/.exec(string);\n return match ? match[1].split(',').map(function (p) { return parseFloat(p); }) : [];\n}\n\n// Spring solver inspired by Webkit Copyright © 2016 Apple Inc. All rights reserved. https://webkit.org/demos/spring/spring.js\n\nfunction spring(string, duration) {\n\n var params = parseEasingParameters(string);\n var mass = minMax(is.und(params[0]) ? 1 : params[0], .1, 100);\n var stiffness = minMax(is.und(params[1]) ? 100 : params[1], .1, 100);\n var damping = minMax(is.und(params[2]) ? 10 : params[2], .1, 100);\n var velocity = minMax(is.und(params[3]) ? 0 : params[3], .1, 100);\n var w0 = Math.sqrt(stiffness / mass);\n var zeta = damping / (2 * Math.sqrt(stiffness * mass));\n var wd = zeta < 1 ? w0 * Math.sqrt(1 - zeta * zeta) : 0;\n var a = 1;\n var b = zeta < 1 ? (zeta * w0 + -velocity) / wd : -velocity + w0;\n\n function solver(t) {\n var progress = duration ? (duration * t) / 1000 : t;\n if (zeta < 1) {\n progress = Math.exp(-progress * zeta * w0) * (a * Math.cos(wd * progress) + b * Math.sin(wd * progress));\n } else {\n progress = (a + b * progress) * Math.exp(-progress * w0);\n }\n if (t === 0 || t === 1) { return t; }\n return 1 - progress;\n }\n\n function getDuration() {\n var cached = cache.springs[string];\n if (cached) { return cached; }\n var frame = 1/6;\n var elapsed = 0;\n var rest = 0;\n while(true) {\n elapsed += frame;\n if (solver(elapsed) === 1) {\n rest++;\n if (rest >= 16) { break; }\n } else {\n rest = 0;\n }\n }\n var duration = elapsed * frame * 1000;\n cache.springs[string] = duration;\n return duration;\n }\n\n return duration ? solver : getDuration;\n\n}\n\n// Basic steps easing implementation https://developer.mozilla.org/fr/docs/Web/CSS/transition-timing-function\n\nfunction steps(steps) {\n if ( steps === void 0 ) steps = 10;\n\n return function (t) { return Math.ceil((minMax(t, 0.000001, 1)) * steps) * (1 / steps); };\n}\n\n// BezierEasing https://github.com/gre/bezier-easing\n\nvar bezier = (function () {\n\n var kSplineTableSize = 11;\n var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);\n\n function A(aA1, aA2) { return 1.0 - 3.0 * aA2 + 3.0 * aA1 }\n function B(aA1, aA2) { return 3.0 * aA2 - 6.0 * aA1 }\n function C(aA1) { return 3.0 * aA1 }\n\n function calcBezier(aT, aA1, aA2) { return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT }\n function getSlope(aT, aA1, aA2) { return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1) }\n\n function binarySubdivide(aX, aA, aB, mX1, mX2) {\n var currentX, currentT, i = 0;\n do {\n currentT = aA + (aB - aA) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - aX;\n if (currentX > 0.0) { aB = currentT; } else { aA = currentT; }\n } while (Math.abs(currentX) > 0.0000001 && ++i < 10);\n return currentT;\n }\n\n function newtonRaphsonIterate(aX, aGuessT, mX1, mX2) {\n for (var i = 0; i < 4; ++i) {\n var currentSlope = getSlope(aGuessT, mX1, mX2);\n if (currentSlope === 0.0) { return aGuessT; }\n var currentX = calcBezier(aGuessT, mX1, mX2) - aX;\n aGuessT -= currentX / currentSlope;\n }\n return aGuessT;\n }\n\n function bezier(mX1, mY1, mX2, mY2) {\n\n if (!(0 <= mX1 && mX1 <= 1 && 0 <= mX2 && mX2 <= 1)) { return; }\n var sampleValues = new Float32Array(kSplineTableSize);\n\n if (mX1 !== mY1 || mX2 !== mY2) {\n for (var i = 0; i < kSplineTableSize; ++i) {\n sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);\n }\n }\n\n function getTForX(aX) {\n\n var intervalStart = 0;\n var currentSample = 1;\n var lastSample = kSplineTableSize - 1;\n\n for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) {\n intervalStart += kSampleStepSize;\n }\n\n --currentSample;\n\n var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]);\n var guessForT = intervalStart + dist * kSampleStepSize;\n var initialSlope = getSlope(guessForT, mX1, mX2);\n\n if (initialSlope >= 0.001) {\n return newtonRaphsonIterate(aX, guessForT, mX1, mX2);\n } else if (initialSlope === 0.0) {\n return guessForT;\n } else {\n return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2);\n }\n\n }\n\n return function (x) {\n if (mX1 === mY1 && mX2 === mY2) { return x; }\n if (x === 0 || x === 1) { return x; }\n return calcBezier(getTForX(x), mY1, mY2);\n }\n\n }\n\n return bezier;\n\n})();\n\nvar penner = (function () {\n\n // Based on jQuery UI's implemenation of easing equations from Robert Penner (http://www.robertpenner.com/easing)\n\n var eases = { linear: function () { return function (t) { return t; }; } };\n\n var functionEasings = {\n Sine: function () { return function (t) { return 1 - Math.cos(t * Math.PI / 2); }; },\n Circ: function () { return function (t) { return 1 - Math.sqrt(1 - t * t); }; },\n Back: function () { return function (t) { return t * t * (3 * t - 2); }; },\n Bounce: function () { return function (t) {\n var pow2, b = 4;\n while (t < (( pow2 = Math.pow(2, --b)) - 1) / 11) {}\n return 1 / Math.pow(4, 3 - b) - 7.5625 * Math.pow(( pow2 * 3 - 2 ) / 22 - t, 2)\n }; },\n Elastic: function (amplitude, period) {\n if ( amplitude === void 0 ) amplitude = 1;\n if ( period === void 0 ) period = .5;\n\n var a = minMax(amplitude, 1, 10);\n var p = minMax(period, .1, 2);\n return function (t) {\n return (t === 0 || t === 1) ? t : \n -a * Math.pow(2, 10 * (t - 1)) * Math.sin((((t - 1) - (p / (Math.PI * 2) * Math.asin(1 / a))) * (Math.PI * 2)) / p);\n }\n }\n };\n\n var baseEasings = ['Quad', 'Cubic', 'Quart', 'Quint', 'Expo'];\n\n baseEasings.forEach(function (name, i) {\n functionEasings[name] = function () { return function (t) { return Math.pow(t, i + 2); }; };\n });\n\n Object.keys(functionEasings).forEach(function (name) {\n var easeIn = functionEasings[name];\n eases['easeIn' + name] = easeIn;\n eases['easeOut' + name] = function (a, b) { return function (t) { return 1 - easeIn(a, b)(1 - t); }; };\n eases['easeInOut' + name] = function (a, b) { return function (t) { return t < 0.5 ? easeIn(a, b)(t * 2) / 2 : \n 1 - easeIn(a, b)(t * -2 + 2) / 2; }; };\n eases['easeOutIn' + name] = function (a, b) { return function (t) { return t < 0.5 ? (1 - easeIn(a, b)(1 - t * 2)) / 2 : \n (easeIn(a, b)(t * 2 - 1) + 1) / 2; }; };\n });\n\n return eases;\n\n})();\n\nfunction parseEasings(easing, duration) {\n if (is.fnc(easing)) { return easing; }\n var name = easing.split('(')[0];\n var ease = penner[name];\n var args = parseEasingParameters(easing);\n switch (name) {\n case 'spring' : return spring(easing, duration);\n case 'cubicBezier' : return applyArguments(bezier, args);\n case 'steps' : return applyArguments(steps, args);\n default : return applyArguments(ease, args);\n }\n}\n\n// Strings\n\nfunction selectString(str) {\n try {\n var nodes = document.querySelectorAll(str);\n return nodes;\n } catch(e) {\n return;\n }\n}\n\n// Arrays\n\nfunction filterArray(arr, callback) {\n var len = arr.length;\n var thisArg = arguments.length >= 2 ? arguments[1] : void 0;\n var result = [];\n for (var i = 0; i < len; i++) {\n if (i in arr) {\n var val = arr[i];\n if (callback.call(thisArg, val, i, arr)) {\n result.push(val);\n }\n }\n }\n return result;\n}\n\nfunction flattenArray(arr) {\n return arr.reduce(function (a, b) { return a.concat(is.arr(b) ? flattenArray(b) : b); }, []);\n}\n\nfunction toArray(o) {\n if (is.arr(o)) { return o; }\n if (is.str(o)) { o = selectString(o) || o; }\n if (o instanceof NodeList || o instanceof HTMLCollection) { return [].slice.call(o); }\n return [o];\n}\n\nfunction arrayContains(arr, val) {\n return arr.some(function (a) { return a === val; });\n}\n\n// Objects\n\nfunction cloneObject(o) {\n var clone = {};\n for (var p in o) { clone[p] = o[p]; }\n return clone;\n}\n\nfunction replaceObjectProps(o1, o2) {\n var o = cloneObject(o1);\n for (var p in o1) { o[p] = o2.hasOwnProperty(p) ? o2[p] : o1[p]; }\n return o;\n}\n\nfunction mergeObjects(o1, o2) {\n var o = cloneObject(o1);\n for (var p in o2) { o[p] = is.und(o1[p]) ? o2[p] : o1[p]; }\n return o;\n}\n\n// Colors\n\nfunction rgbToRgba(rgbValue) {\n var rgb = /rgb\\((\\d+,\\s*[\\d]+,\\s*[\\d]+)\\)/g.exec(rgbValue);\n return rgb ? (\"rgba(\" + (rgb[1]) + \",1)\") : rgbValue;\n}\n\nfunction hexToRgba(hexValue) {\n var rgx = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n var hex = hexValue.replace(rgx, function (m, r, g, b) { return r + r + g + g + b + b; } );\n var rgb = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n var r = parseInt(rgb[1], 16);\n var g = parseInt(rgb[2], 16);\n var b = parseInt(rgb[3], 16);\n return (\"rgba(\" + r + \",\" + g + \",\" + b + \",1)\");\n}\n\nfunction hslToRgba(hslValue) {\n var hsl = /hsl\\((\\d+),\\s*([\\d.]+)%,\\s*([\\d.]+)%\\)/g.exec(hslValue) || /hsla\\((\\d+),\\s*([\\d.]+)%,\\s*([\\d.]+)%,\\s*([\\d.]+)\\)/g.exec(hslValue);\n var h = parseInt(hsl[1], 10) / 360;\n var s = parseInt(hsl[2], 10) / 100;\n var l = parseInt(hsl[3], 10) / 100;\n var a = hsl[4] || 1;\n function hue2rgb(p, q, t) {\n if (t < 0) { t += 1; }\n if (t > 1) { t -= 1; }\n if (t < 1/6) { return p + (q - p) * 6 * t; }\n if (t < 1/2) { return q; }\n if (t < 2/3) { return p + (q - p) * (2/3 - t) * 6; }\n return p;\n }\n var r, g, b;\n if (s == 0) {\n r = g = b = l;\n } else {\n var q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n var p = 2 * l - q;\n r = hue2rgb(p, q, h + 1/3);\n g = hue2rgb(p, q, h);\n b = hue2rgb(p, q, h - 1/3);\n }\n return (\"rgba(\" + (r * 255) + \",\" + (g * 255) + \",\" + (b * 255) + \",\" + a + \")\");\n}\n\nfunction colorToRgb(val) {\n if (is.rgb(val)) { return rgbToRgba(val); }\n if (is.hex(val)) { return hexToRgba(val); }\n if (is.hsl(val)) { return hslToRgba(val); }\n}\n\n// Units\n\nfunction getUnit(val) {\n var split = /[+-]?\\d*\\.?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(val);\n if (split) { return split[1]; }\n}\n\nfunction getTransformUnit(propName) {\n if (stringContains(propName, 'translate') || propName === 'perspective') { return 'px'; }\n if (stringContains(propName, 'rotate') || stringContains(propName, 'skew')) { return 'deg'; }\n}\n\n// Values\n\nfunction getFunctionValue(val, animatable) {\n if (!is.fnc(val)) { return val; }\n return val(animatable.target, animatable.id, animatable.total);\n}\n\nfunction getAttribute(el, prop) {\n return el.getAttribute(prop);\n}\n\nfunction convertPxToUnit(el, value, unit) {\n var valueUnit = getUnit(value);\n if (arrayContains([unit, 'deg', 'rad', 'turn'], valueUnit)) { return value; }\n var cached = cache.CSS[value + unit];\n if (!is.und(cached)) { return cached; }\n var baseline = 100;\n var tempEl = document.createElement(el.tagName);\n var parentEl = (el.parentNode && (el.parentNode !== document)) ? el.parentNode : document.body;\n parentEl.appendChild(tempEl);\n tempEl.style.position = 'absolute';\n tempEl.style.width = baseline + unit;\n var factor = baseline / tempEl.offsetWidth;\n parentEl.removeChild(tempEl);\n var convertedUnit = factor * parseFloat(value);\n cache.CSS[value + unit] = convertedUnit;\n return convertedUnit;\n}\n\nfunction getCSSValue(el, prop, unit) {\n if (prop in el.style) {\n var uppercasePropName = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n var value = el.style[prop] || getComputedStyle(el).getPropertyValue(uppercasePropName) || '0';\n return unit ? convertPxToUnit(el, value, unit) : value;\n }\n}\n\nfunction getAnimationType(el, prop) {\n if (is.dom(el) && !is.inp(el) && (!is.nil(getAttribute(el, prop)) || (is.svg(el) && el[prop]))) { return 'attribute'; }\n if (is.dom(el) && arrayContains(validTransforms, prop)) { return 'transform'; }\n if (is.dom(el) && (prop !== 'transform' && getCSSValue(el, prop))) { return 'css'; }\n if (el[prop] != null) { return 'object'; }\n}\n\nfunction getElementTransforms(el) {\n if (!is.dom(el)) { return; }\n var str = el.style.transform || '';\n var reg = /(\\w+)\\(([^)]*)\\)/g;\n var transforms = new Map();\n var m; while (m = reg.exec(str)) { transforms.set(m[1], m[2]); }\n return transforms;\n}\n\nfunction getTransformValue(el, propName, animatable, unit) {\n var defaultVal = stringContains(propName, 'scale') ? 1 : 0 + getTransformUnit(propName);\n var value = getElementTransforms(el).get(propName) || defaultVal;\n if (animatable) {\n animatable.transforms.list.set(propName, value);\n animatable.transforms['last'] = propName;\n }\n return unit ? convertPxToUnit(el, value, unit) : value;\n}\n\nfunction getOriginalTargetValue(target, propName, unit, animatable) {\n switch (getAnimationType(target, propName)) {\n case 'transform': return getTransformValue(target, propName, animatable, unit);\n case 'css': return getCSSValue(target, propName, unit);\n case 'attribute': return getAttribute(target, propName);\n default: return target[propName] || 0;\n }\n}\n\nfunction getRelativeValue(to, from) {\n var operator = /^(\\*=|\\+=|-=)/.exec(to);\n if (!operator) { return to; }\n var u = getUnit(to) || 0;\n var x = parseFloat(from);\n var y = parseFloat(to.replace(operator[0], ''));\n switch (operator[0][0]) {\n case '+': return x + y + u;\n case '-': return x - y + u;\n case '*': return x * y + u;\n }\n}\n\nfunction validateValue(val, unit) {\n if (is.col(val)) { return colorToRgb(val); }\n if (/\\s/g.test(val)) { return val; }\n var originalUnit = getUnit(val);\n var unitLess = originalUnit ? val.substr(0, val.length - originalUnit.length) : val;\n if (unit) { return unitLess + unit; }\n return unitLess;\n}\n\n// getTotalLength() equivalent for circle, rect, polyline, polygon and line shapes\n// adapted from https://gist.github.com/SebLambla/3e0550c496c236709744\n\nfunction getDistance(p1, p2) {\n return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));\n}\n\nfunction getCircleLength(el) {\n return Math.PI * 2 * getAttribute(el, 'r');\n}\n\nfunction getRectLength(el) {\n return (getAttribute(el, 'width') * 2) + (getAttribute(el, 'height') * 2);\n}\n\nfunction getLineLength(el) {\n return getDistance(\n {x: getAttribute(el, 'x1'), y: getAttribute(el, 'y1')}, \n {x: getAttribute(el, 'x2'), y: getAttribute(el, 'y2')}\n );\n}\n\nfunction getPolylineLength(el) {\n var points = el.points;\n var totalLength = 0;\n var previousPos;\n for (var i = 0 ; i < points.numberOfItems; i++) {\n var currentPos = points.getItem(i);\n if (i > 0) { totalLength += getDistance(previousPos, currentPos); }\n previousPos = currentPos;\n }\n return totalLength;\n}\n\nfunction getPolygonLength(el) {\n var points = el.points;\n return getPolylineLength(el) + getDistance(points.getItem(points.numberOfItems - 1), points.getItem(0));\n}\n\n// Path animation\n\nfunction getTotalLength(el) {\n if (el.getTotalLength) { return el.getTotalLength(); }\n switch(el.tagName.toLowerCase()) {\n case 'circle': return getCircleLength(el);\n case 'rect': return getRectLength(el);\n case 'line': return getLineLength(el);\n case 'polyline': return getPolylineLength(el);\n case 'polygon': return getPolygonLength(el);\n }\n}\n\nfunction setDashoffset(el) {\n var pathLength = getTotalLength(el);\n el.setAttribute('stroke-dasharray', pathLength);\n return pathLength;\n}\n\n// Motion path\n\nfunction getParentSvgEl(el) {\n var parentEl = el.parentNode;\n while (is.svg(parentEl)) {\n if (!is.svg(parentEl.parentNode)) { break; }\n parentEl = parentEl.parentNode;\n }\n return parentEl;\n}\n\nfunction getParentSvg(pathEl, svgData) {\n var svg = svgData || {};\n var parentSvgEl = svg.el || getParentSvgEl(pathEl);\n var rect = parentSvgEl.getBoundingClientRect();\n var viewBoxAttr = getAttribute(parentSvgEl, 'viewBox');\n var width = rect.width;\n var height = rect.height;\n var viewBox = svg.viewBox || (viewBoxAttr ? viewBoxAttr.split(' ') : [0, 0, width, height]);\n return {\n el: parentSvgEl,\n viewBox: viewBox,\n x: viewBox[0] / 1,\n y: viewBox[1] / 1,\n w: width,\n h: height,\n vW: viewBox[2],\n vH: viewBox[3]\n }\n}\n\nfunction getPath(path, percent) {\n var pathEl = is.str(path) ? selectString(path)[0] : path;\n var p = percent || 100;\n return function(property) {\n return {\n property: property,\n el: pathEl,\n svg: getParentSvg(pathEl),\n totalLength: getTotalLength(pathEl) * (p / 100)\n }\n }\n}\n\nfunction getPathProgress(path, progress, isPathTargetInsideSVG) {\n function point(offset) {\n if ( offset === void 0 ) offset = 0;\n\n var l = progress + offset >= 1 ? progress + offset : 0;\n return path.el.getPointAtLength(l);\n }\n var svg = getParentSvg(path.el, path.svg);\n var p = point();\n var p0 = point(-1);\n var p1 = point(+1);\n var scaleX = isPathTargetInsideSVG ? 1 : svg.w / svg.vW;\n var scaleY = isPathTargetInsideSVG ? 1 : svg.h / svg.vH;\n switch (path.property) {\n case 'x': return (p.x - svg.x) * scaleX;\n case 'y': return (p.y - svg.y) * scaleY;\n case 'angle': return Math.atan2(p1.y - p0.y, p1.x - p0.x) * 180 / Math.PI;\n }\n}\n\n// Decompose value\n\nfunction decomposeValue(val, unit) {\n // const rgx = /-?\\d*\\.?\\d+/g; // handles basic numbers\n // const rgx = /[+-]?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?/g; // handles exponents notation\n var rgx = /[+-]?\\d*\\.?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?/g; // handles exponents notation\n var value = validateValue((is.pth(val) ? val.totalLength : val), unit) + '';\n return {\n original: value,\n numbers: value.match(rgx) ? value.match(rgx).map(Number) : [0],\n strings: (is.str(val) || unit) ? value.split(rgx) : []\n }\n}\n\n// Animatables\n\nfunction parseTargets(targets) {\n var targetsArray = targets ? (flattenArray(is.arr(targets) ? targets.map(toArray) : toArray(targets))) : [];\n return filterArray(targetsArray, function (item, pos, self) { return self.indexOf(item) === pos; });\n}\n\nfunction getAnimatables(targets) {\n var parsed = parseTargets(targets);\n return parsed.map(function (t, i) {\n return {target: t, id: i, total: parsed.length, transforms: { list: getElementTransforms(t) } };\n });\n}\n\n// Properties\n\nfunction normalizePropertyTweens(prop, tweenSettings) {\n var settings = cloneObject(tweenSettings);\n // Override duration if easing is a spring\n if (/^spring/.test(settings.easing)) { settings.duration = spring(settings.easing); }\n if (is.arr(prop)) {\n var l = prop.length;\n var isFromTo = (l === 2 && !is.obj(prop[0]));\n if (!isFromTo) {\n // Duration divided by the number of tweens\n if (!is.fnc(tweenSettings.duration)) { settings.duration = tweenSettings.duration / l; }\n } else {\n // Transform [from, to] values shorthand to a valid tween value\n prop = {value: prop};\n }\n }\n var propArray = is.arr(prop) ? prop : [prop];\n return propArray.map(function (v, i) {\n var obj = (is.obj(v) && !is.pth(v)) ? v : {value: v};\n // Default delay value should only be applied to the first tween\n if (is.und(obj.delay)) { obj.delay = !i ? tweenSettings.delay : 0; }\n // Default endDelay value should only be applied to the last tween\n if (is.und(obj.endDelay)) { obj.endDelay = i === propArray.length - 1 ? tweenSettings.endDelay : 0; }\n return obj;\n }).map(function (k) { return mergeObjects(k, settings); });\n}\n\n\nfunction flattenKeyframes(keyframes) {\n var propertyNames = filterArray(flattenArray(keyframes.map(function (key) { return Object.keys(key); })), function (p) { return is.key(p); })\n .reduce(function (a,b) { if (a.indexOf(b) < 0) { a.push(b); } return a; }, []);\n var properties = {};\n var loop = function ( i ) {\n var propName = propertyNames[i];\n properties[propName] = keyframes.map(function (key) {\n var newKey = {};\n for (var p in key) {\n if (is.key(p)) {\n if (p == propName) { newKey.value = key[p]; }\n } else {\n newKey[p] = key[p];\n }\n }\n return newKey;\n });\n };\n\n for (var i = 0; i < propertyNames.length; i++) loop( i );\n return properties;\n}\n\nfunction getProperties(tweenSettings, params) {\n var properties = [];\n var keyframes = params.keyframes;\n if (keyframes) { params = mergeObjects(flattenKeyframes(keyframes), params); }\n for (var p in params) {\n if (is.key(p)) {\n properties.push({\n name: p,\n tweens: normalizePropertyTweens(params[p], tweenSettings)\n });\n }\n }\n return properties;\n}\n\n// Tweens\n\nfunction normalizeTweenValues(tween, animatable) {\n var t = {};\n for (var p in tween) {\n var value = getFunctionValue(tween[p], animatable);\n if (is.arr(value)) {\n value = value.map(function (v) { return getFunctionValue(v, animatable); });\n if (value.length === 1) { value = value[0]; }\n }\n t[p] = value;\n }\n t.duration = parseFloat(t.duration);\n t.delay = parseFloat(t.delay);\n return t;\n}\n\nfunction normalizeTweens(prop, animatable) {\n var previousTween;\n return prop.tweens.map(function (t) {\n var tween = normalizeTweenValues(t, animatable);\n var tweenValue = tween.value;\n var to = is.arr(tweenValue) ? tweenValue[1] : tweenValue;\n var toUnit = getUnit(to);\n var originalValue = getOriginalTargetValue(animatable.target, prop.name, toUnit, animatable);\n var previousValue = previousTween ? previousTween.to.original : originalValue;\n var from = is.arr(tweenValue) ? tweenValue[0] : previousValue;\n var fromUnit = getUnit(from) || getUnit(originalValue);\n var unit = toUnit || fromUnit;\n if (is.und(to)) { to = previousValue; }\n tween.from = decomposeValue(from, unit);\n tween.to = decomposeValue(getRelativeValue(to, from), unit);\n tween.start = previousTween ? previousTween.end : 0;\n tween.end = tween.start + tween.delay + tween.duration + tween.endDelay;\n tween.easing = parseEasings(tween.easing, tween.duration);\n tween.isPath = is.pth(tweenValue);\n tween.isPathTargetInsideSVG = tween.isPath && is.svg(animatable.target);\n tween.isColor = is.col(tween.from.original);\n if (tween.isColor) { tween.round = 1; }\n previousTween = tween;\n return tween;\n });\n}\n\n// Tween progress\n\nvar setProgressValue = {\n css: function (t, p, v) { return t.style[p] = v; },\n attribute: function (t, p, v) { return t.setAttribute(p, v); },\n object: function (t, p, v) { return t[p] = v; },\n transform: function (t, p, v, transforms, manual) {\n transforms.list.set(p, v);\n if (p === transforms.last || manual) {\n var str = '';\n transforms.list.forEach(function (value, prop) { str += prop + \"(\" + value + \") \"; });\n t.style.transform = str;\n }\n }\n};\n\n// Set Value helper\n\nfunction setTargetsValue(targets, properties) {\n var animatables = getAnimatables(targets);\n animatables.forEach(function (animatable) {\n for (var property in properties) {\n var value = getFunctionValue(properties[property], animatable);\n var target = animatable.target;\n var valueUnit = getUnit(value);\n var originalValue = getOriginalTargetValue(target, property, valueUnit, animatable);\n var unit = valueUnit || getUnit(originalValue);\n var to = getRelativeValue(validateValue(value, unit), originalValue);\n var animType = getAnimationType(target, property);\n setProgressValue[animType](target, property, to, animatable.transforms, true);\n }\n });\n}\n\n// Animations\n\nfunction createAnimation(animatable, prop) {\n var animType = getAnimationType(animatable.target, prop.name);\n if (animType) {\n var tweens = normalizeTweens(prop, animatable);\n var lastTween = tweens[tweens.length - 1];\n return {\n type: animType,\n property: prop.name,\n animatable: animatable,\n tweens: tweens,\n duration: lastTween.end,\n delay: tweens[0].delay,\n endDelay: lastTween.endDelay\n }\n }\n}\n\nfunction getAnimations(animatables, properties) {\n return filterArray(flattenArray(animatables.map(function (animatable) {\n return properties.map(function (prop) {\n return createAnimation(animatable, prop);\n });\n })), function (a) { return !is.und(a); });\n}\n\n// Create Instance\n\nfunction getInstanceTimings(animations, tweenSettings) {\n var animLength = animations.length;\n var getTlOffset = function (anim) { return anim.timelineOffset ? anim.timelineOffset : 0; };\n var timings = {};\n timings.duration = animLength ? Math.max.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.duration; })) : tweenSettings.duration;\n timings.delay = animLength ? Math.min.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.delay; })) : tweenSettings.delay;\n timings.endDelay = animLength ? timings.duration - Math.max.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.duration - anim.endDelay; })) : tweenSettings.endDelay;\n return timings;\n}\n\nvar instanceID = 0;\n\nfunction createNewInstance(params) {\n var instanceSettings = replaceObjectProps(defaultInstanceSettings, params);\n var tweenSettings = replaceObjectProps(defaultTweenSettings, params);\n var properties = getProperties(tweenSettings, params);\n var animatables = getAnimatables(params.targets);\n var animations = getAnimations(animatables, properties);\n var timings = getInstanceTimings(animations, tweenSettings);\n var id = instanceID;\n instanceID++;\n return mergeObjects(instanceSettings, {\n id: id,\n children: [],\n animatables: animatables,\n animations: animations,\n duration: timings.duration,\n delay: timings.delay,\n endDelay: timings.endDelay\n });\n}\n\n// Core\n\nvar activeInstances = [];\n\nvar engine = (function () {\n var raf;\n\n function play() {\n if (!raf && (!isDocumentHidden() || !anime.suspendWhenDocumentHidden) && activeInstances.length > 0) {\n raf = requestAnimationFrame(step);\n }\n }\n function step(t) {\n // memo on algorithm issue:\n // dangerous iteration over mutable `activeInstances`\n // (that collection may be updated from within callbacks of `tick`-ed animation instances)\n var activeInstancesLength = activeInstances.length;\n var i = 0;\n while (i < activeInstancesLength) {\n var activeInstance = activeInstances[i];\n if (!activeInstance.paused) {\n activeInstance.tick(t);\n i++;\n } else {\n activeInstances.splice(i, 1);\n activeInstancesLength--;\n }\n }\n raf = i > 0 ? requestAnimationFrame(step) : undefined;\n }\n\n function handleVisibilityChange() {\n if (!anime.suspendWhenDocumentHidden) { return; }\n\n if (isDocumentHidden()) {\n // suspend ticks\n raf = cancelAnimationFrame(raf);\n } else { // is back to active tab\n // first adjust animations to consider the time that ticks were suspended\n activeInstances.forEach(\n function (instance) { return instance ._onDocumentVisibility(); }\n );\n engine();\n }\n }\n if (typeof document !== 'undefined') {\n document.addEventListener('visibilitychange', handleVisibilityChange);\n }\n\n return play;\n})();\n\nfunction isDocumentHidden() {\n return !!document && document.hidden;\n}\n\n// Public Instance\n\nfunction anime(params) {\n if ( params === void 0 ) params = {};\n\n\n var startTime = 0, lastTime = 0, now = 0;\n var children, childrenLength = 0;\n var resolve = null;\n\n function makePromise(instance) {\n var promise = window.Promise && new Promise(function (_resolve) { return resolve = _resolve; });\n instance.finished = promise;\n return promise;\n }\n\n var instance = createNewInstance(params);\n var promise = makePromise(instance);\n\n function toggleInstanceDirection() {\n var direction = instance.direction;\n if (direction !== 'alternate') {\n instance.direction = direction !== 'normal' ? 'normal' : 'reverse';\n }\n instance.reversed = !instance.reversed;\n children.forEach(function (child) { return child.reversed = instance.reversed; });\n }\n\n function adjustTime(time) {\n return instance.reversed ? instance.duration - time : time;\n }\n\n function resetTime() {\n startTime = 0;\n lastTime = adjustTime(instance.currentTime) * (1 / anime.speed);\n }\n\n function seekChild(time, child) {\n if (child) { child.seek(time - child.timelineOffset); }\n }\n\n function syncInstanceChildren(time) {\n if (!instance.reversePlayback) {\n for (var i = 0; i < childrenLength; i++) { seekChild(time, children[i]); }\n } else {\n for (var i$1 = childrenLength; i$1--;) { seekChild(time, children[i$1]); }\n }\n }\n\n function setAnimationsProgress(insTime) {\n var i = 0;\n var animations = instance.animations;\n var animationsLength = animations.length;\n while (i < animationsLength) {\n var anim = animations[i];\n var animatable = anim.animatable;\n var tweens = anim.tweens;\n var tweenLength = tweens.length - 1;\n var tween = tweens[tweenLength];\n // Only check for keyframes if there is more than one tween\n if (tweenLength) { tween = filterArray(tweens, function (t) { return (insTime < t.end); })[0] || tween; }\n var elapsed = minMax(insTime - tween.start - tween.delay, 0, tween.duration) / tween.duration;\n var eased = isNaN(elapsed) ? 1 : tween.easing(elapsed);\n var strings = tween.to.strings;\n var round = tween.round;\n var numbers = [];\n var toNumbersLength = tween.to.numbers.length;\n var progress = (void 0);\n for (var n = 0; n < toNumbersLength; n++) {\n var value = (void 0);\n var toNumber = tween.to.numbers[n];\n var fromNumber = tween.from.numbers[n] || 0;\n if (!tween.isPath) {\n value = fromNumber + (eased * (toNumber - fromNumber));\n } else {\n value = getPathProgress(tween.value, eased * toNumber, tween.isPathTargetInsideSVG);\n }\n if (round) {\n if (!(tween.isColor && n > 2)) {\n value = Math.round(value * round) / round;\n }\n }\n numbers.push(value);\n }\n // Manual Array.reduce for better performances\n var stringsLength = strings.length;\n if (!stringsLength) {\n progress = numbers[0];\n } else {\n progress = strings[0];\n for (var s = 0; s < stringsLength; s++) {\n var a = strings[s];\n var b = strings[s + 1];\n var n$1 = numbers[s];\n if (!isNaN(n$1)) {\n if (!b) {\n progress += n$1 + ' ';\n } else {\n progress += n$1 + b;\n }\n }\n }\n }\n setProgressValue[anim.type](animatable.target, anim.property, progress, animatable.transforms);\n anim.currentValue = progress;\n i++;\n }\n }\n\n function setCallback(cb) {\n if (instance[cb] && !instance.passThrough) { instance[cb](instance); }\n }\n\n function countIteration() {\n if (instance.remaining && instance.remaining !== true) {\n instance.remaining--;\n }\n }\n\n function setInstanceProgress(engineTime) {\n var insDuration = instance.duration;\n var insDelay = instance.delay;\n var insEndDelay = insDuration - instance.endDelay;\n var insTime = adjustTime(engineTime);\n instance.progress = minMax((insTime / insDuration) * 100, 0, 100);\n instance.reversePlayback = insTime < instance.currentTime;\n if (children) { syncInstanceChildren(insTime); }\n if (!instance.began && instance.currentTime > 0) {\n instance.began = true;\n setCallback('begin');\n }\n if (!instance.loopBegan && instance.currentTime > 0) {\n instance.loopBegan = true;\n setCallback('loopBegin');\n }\n if (insTime <= insDelay && instance.currentTime !== 0) {\n setAnimationsProgress(0);\n }\n if ((insTime >= insEndDelay && instance.currentTime !== insDuration) || !insDuration) {\n setAnimationsProgress(insDuration);\n }\n if (insTime > insDelay && insTime < insEndDelay) {\n if (!instance.changeBegan) {\n instance.changeBegan = true;\n instance.changeCompleted = false;\n setCallback('changeBegin');\n }\n setCallback('change');\n setAnimationsProgress(insTime);\n } else {\n if (instance.changeBegan) {\n instance.changeCompleted = true;\n instance.changeBegan = false;\n setCallback('changeComplete');\n }\n }\n instance.currentTime = minMax(insTime, 0, insDuration);\n if (instance.began) { setCallback('update'); }\n if (engineTime >= insDuration) {\n lastTime = 0;\n countIteration();\n if (!instance.remaining) {\n instance.paused = true;\n if (!instance.completed) {\n instance.completed = true;\n setCallback('loopComplete');\n setCallback('complete');\n if (!instance.passThrough && 'Promise' in window) {\n resolve();\n promise = makePromise(instance);\n }\n }\n } else {\n startTime = now;\n setCallback('loopComplete');\n instance.loopBegan = false;\n if (instance.direction === 'alternate') {\n toggleInstanceDirection();\n }\n }\n }\n }\n\n instance.reset = function() {\n var direction = instance.direction;\n instance.passThrough = false;\n instance.currentTime = 0;\n instance.progress = 0;\n instance.paused = true;\n instance.began = false;\n instance.loopBegan = false;\n instance.changeBegan = false;\n instance.completed = false;\n instance.changeCompleted = false;\n instance.reversePlayback = false;\n instance.reversed = direction === 'reverse';\n instance.remaining = instance.loop;\n children = instance.children;\n childrenLength = children.length;\n for (var i = childrenLength; i--;) { instance.children[i].reset(); }\n if (instance.reversed && instance.loop !== true || (direction === 'alternate' && instance.loop === 1)) { instance.remaining++; }\n setAnimationsProgress(instance.reversed ? instance.duration : 0);\n };\n\n // internal method (for engine) to adjust animation timings before restoring engine ticks (rAF)\n instance._onDocumentVisibility = resetTime;\n\n // Set Value helper\n\n instance.set = function(targets, properties) {\n setTargetsValue(targets, properties);\n return instance;\n };\n\n instance.tick = function(t) {\n now = t;\n if (!startTime) { startTime = now; }\n setInstanceProgress((now + (lastTime - startTime)) * anime.speed);\n };\n\n instance.seek = function(time) {\n setInstanceProgress(adjustTime(time));\n };\n\n instance.pause = function() {\n instance.paused = true;\n resetTime();\n };\n\n instance.play = function() {\n if (!instance.paused) { return; }\n if (instance.completed) { instance.reset(); }\n instance.paused = false;\n activeInstances.push(instance);\n resetTime();\n engine();\n };\n\n instance.reverse = function() {\n toggleInstanceDirection();\n instance.completed = instance.reversed ? false : true;\n resetTime();\n };\n\n instance.restart = function() {\n instance.reset();\n instance.play();\n };\n\n instance.remove = function(targets) {\n var targetsArray = parseTargets(targets);\n removeTargetsFromInstance(targetsArray, instance);\n };\n\n instance.reset();\n\n if (instance.autoplay) { instance.play(); }\n\n return instance;\n\n}\n\n// Remove targets from animation\n\nfunction removeTargetsFromAnimations(targetsArray, animations) {\n for (var a = animations.length; a--;) {\n if (arrayContains(targetsArray, animations[a].animatable.target)) {\n animations.splice(a, 1);\n }\n }\n}\n\nfunction removeTargetsFromInstance(targetsArray, instance) {\n var animations = instance.animations;\n var children = instance.children;\n removeTargetsFromAnimations(targetsArray, animations);\n for (var c = children.length; c--;) {\n var child = children[c];\n var childAnimations = child.animations;\n removeTargetsFromAnimations(targetsArray, childAnimations);\n if (!childAnimations.length && !child.children.length) { children.splice(c, 1); }\n }\n if (!animations.length && !children.length) { instance.pause(); }\n}\n\nfunction removeTargetsFromActiveInstances(targets) {\n var targetsArray = parseTargets(targets);\n for (var i = activeInstances.length; i--;) {\n var instance = activeInstances[i];\n removeTargetsFromInstance(targetsArray, instance);\n }\n}\n\n// Stagger helpers\n\nfunction stagger(val, params) {\n if ( params === void 0 ) params = {};\n\n var direction = params.direction || 'normal';\n var easing = params.easing ? parseEasings(params.easing) : null;\n var grid = params.grid;\n var axis = params.axis;\n var fromIndex = params.from || 0;\n var fromFirst = fromIndex === 'first';\n var fromCenter = fromIndex === 'center';\n var fromLast = fromIndex === 'last';\n var isRange = is.arr(val);\n var val1 = isRange ? parseFloat(val[0]) : parseFloat(val);\n var val2 = isRange ? parseFloat(val[1]) : 0;\n var unit = getUnit(isRange ? val[1] : val) || 0;\n var start = params.start || 0 + (isRange ? val1 : 0);\n var values = [];\n var maxValue = 0;\n return function (el, i, t) {\n if (fromFirst) { fromIndex = 0; }\n if (fromCenter) { fromIndex = (t - 1) / 2; }\n if (fromLast) { fromIndex = t - 1; }\n if (!values.length) {\n for (var index = 0; index < t; index++) {\n if (!grid) {\n values.push(Math.abs(fromIndex - index));\n } else {\n var fromX = !fromCenter ? fromIndex%grid[0] : (grid[0]-1)/2;\n var fromY = !fromCenter ? Math.floor(fromIndex/grid[0]) : (grid[1]-1)/2;\n var toX = index%grid[0];\n var toY = Math.floor(index/grid[0]);\n var distanceX = fromX - toX;\n var distanceY = fromY - toY;\n var value = Math.sqrt(distanceX * distanceX + distanceY * distanceY);\n if (axis === 'x') { value = -distanceX; }\n if (axis === 'y') { value = -distanceY; }\n values.push(value);\n }\n maxValue = Math.max.apply(Math, values);\n }\n if (easing) { values = values.map(function (val) { return easing(val / maxValue) * maxValue; }); }\n if (direction === 'reverse') { values = values.map(function (val) { return axis ? (val < 0) ? val * -1 : -val : Math.abs(maxValue - val); }); }\n }\n var spacing = isRange ? (val2 - val1) / maxValue : val1;\n return start + (spacing * (Math.round(values[i] * 100) / 100)) + unit;\n }\n}\n\n// Timeline\n\nfunction timeline(params) {\n if ( params === void 0 ) params = {};\n\n var tl = anime(params);\n tl.duration = 0;\n tl.add = function(instanceParams, timelineOffset) {\n var tlIndex = activeInstances.indexOf(tl);\n var children = tl.children;\n if (tlIndex > -1) { activeInstances.splice(tlIndex, 1); }\n function passThrough(ins) { ins.passThrough = true; }\n for (var i = 0; i < children.length; i++) { passThrough(children[i]); }\n var insParams = mergeObjects(instanceParams, replaceObjectProps(defaultTweenSettings, params));\n insParams.targets = insParams.targets || params.targets;\n var tlDuration = tl.duration;\n insParams.autoplay = false;\n insParams.direction = tl.direction;\n insParams.timelineOffset = is.und(timelineOffset) ? tlDuration : getRelativeValue(timelineOffset, tlDuration);\n passThrough(tl);\n tl.seek(insParams.timelineOffset);\n var ins = anime(insParams);\n passThrough(ins);\n children.push(ins);\n var timings = getInstanceTimings(children, params);\n tl.delay = timings.delay;\n tl.endDelay = timings.endDelay;\n tl.duration = timings.duration;\n tl.seek(0);\n tl.reset();\n if (tl.autoplay) { tl.play(); }\n return tl;\n };\n return tl;\n}\n\nanime.version = '3.2.1';\nanime.speed = 1;\n// TODO:#review: naming, documentation\nanime.suspendWhenDocumentHidden = true;\nanime.running = activeInstances;\nanime.remove = removeTargetsFromActiveInstances;\nanime.get = getOriginalTargetValue;\nanime.set = setTargetsValue;\nanime.convertPx = convertPxToUnit;\nanime.path = getPath;\nanime.setDashoffset = setDashoffset;\nanime.stagger = stagger;\nanime.timeline = timeline;\nanime.easing = parseEasings;\nanime.penner = penner;\nanime.random = function (min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; };\n\nexport default anime;\n","import Sortable from 'sortablejs';\nimport anime from 'animejs/lib/anime.es.js';\nimport DataUtils from '../utils/DataUtils';\nimport Notfications from './Notifications.js';\nimport Maintenance from '../controllers/MaintenanceManager';\nconst notify = new Notfications();\n\nexport default class FileManager {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor(upload, input, imageList, fileList) {\n\t\tthis.mm = new Maintenance(null, null, document.getElementById('notify-progress'));\n\t\tthis.upload = upload;\n\t\tthis.input = input;\n\t\tthis.imageList = imageList;\n\t\tthis.fileList = fileList;\n\t\tthis.accetableFiles = [\n\t\t\t'image/jpeg',\n\t\t\t'image/gif',\n\t\t\t'image/png',\n\t\t\t'image/svg',\n\t\t\t'audio/mpeg',\n\t\t\t'video/mp4',\n\t\t\t'application/pdf',\n\t\t\t'text/plain',\n\t\t\t'text/rtf'\n\t\t];\n\t\tthis.files = [];\n\t\tthis.sortedFiles = [];\n\t\tthis.storage = [];\n\t\tthis.mediaSort = Sortable.create(this.imageList, {\n\t\t\tanimation: 150,\n\t\t\tonUpdate: () => {\n\t\t\t\t//notify.alert('REINDEXING MEDIA', null);\n\t\t\t\t//this.updateFiles();\n\t\t\t}\n\t\t});\n\t\tthis.fileSort = Sortable.create(this.fileList, {\n\t\t\tanimation: 150,\n\t\t\tonUpdate: () => {\n\t\t\t\t//notify.alert('REINDEXING FILES', null);\n\t\t\t\t//this.updateFiles();\n\t\t\t}\n\t\t});\n\t\tthis.start();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\tthis.upload.addEventListener('dragover', e => this.handleFileActions(e), false);\n\t\tthis.upload.addEventListener('drop', e => this.handleFileActions(e), false);\n\t\tthis.input.addEventListener('change', e => this.handleFileActions(e), false);\n\t\tvar removeMedia = document.querySelectorAll('.media-remove');\n\t\tfor (var i = 0, length = removeMedia.length; i < length; i++) {\n\t\t\tremoveMedia[i].addEventListener(\n\t\t\t\t'click',\n\t\t\t\te => this.removeFile(e, 'media'),\n\t\t\t\tfalse\n\t\t\t);\n\t\t}\n\t}\n\tgetFileOrder() {\n\t\tlet imgList = '';\n\t\tlet fileList = '';\n\t\tfor (var i = 0, length = this.imageList.childNodes.length; i < length; i++) {\n\t\t\tlet div = this.imageList.childNodes[i];\n\t\t\timgList = imgList + div.getAttribute('data-source') + ',';\n\t\t}\n\t\tfor (var i = 0, length = this.fileList.childNodes.length; i < length; i++) {\n\t\t\tlet div = this.fileList.childNodes[i];\n\t\t\tfileList = fileList + div.getAttribute('data-source') + ',';\n\t\t}\n\t\tlet media = { images: imgList, files: fileList };\n\t\treturn media;\n\t}\n\n\tsortFiles(files) {\n\t\tvar self = this;\n\t\tfor (var i = 0, file; (file = files[i]); i++) {\n\t\t\tvar reader = new FileReader();\n\t\t\t// Closure to capture the file information\n\t\t\treader.onload = (theFile => {\n\t\t\t\treturn function (f) {\n\t\t\t\t\t//create remove button object\n\t\t\t\t\tvar remove = document.createElement('button');\n\t\t\t\t\tvar removeIcon = document.createElement('i');\n\t\t\t\t\tremoveIcon.classList.add('ti', 'ti-x');\n\t\t\t\t\tremove.className = 'media-remove';\n\t\t\t\t\tremove.appendChild(removeIcon);\n\t\t\t\t\t//remove.setAttribute('id', mediaCount);\n\t\t\t\t\tremove.addEventListener(\n\t\t\t\t\t\t'click',\n\t\t\t\t\t\te => self.removeFile(e, 'media'),\n\t\t\t\t\t\tfalse\n\t\t\t\t\t);\n\n\t\t\t\t\t//upload the file\n\t\t\t\t\tlet upload = new FormData();\n\t\t\t\t\tupload.enctype = 'multipart/form-data';\n\t\t\t\t\tupload.append('upload_files[]', theFile, theFile.name);\n\t\t\t\t\tlet item = null;\n\t\t\t\t\tlet progress = null;\n\n\t\t\t\t\t// sort files\n\t\t\t\t\tswitch (theFile.type) {\n\t\t\t\t\t\tcase 'image/jpg':\n\t\t\t\t\t\tcase 'image/jpeg':\n\t\t\t\t\t\tcase 'image/gif':\n\t\t\t\t\t\tcase 'image/svg':\n\t\t\t\t\t\tcase 'image/png':\n\t\t\t\t\t\t\titem = self.itemFactory('img-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\titem.style.background =\n\t\t\t\t\t\t\t\t\t\t'url(' +\n\t\t\t\t\t\t\t\t\t\tf.target.result +\n\t\t\t\t\t\t\t\t\t\t') no-repeat center center / cover';\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'video/mp4':\n\t\t\t\t\t\t\titem = self.itemFactory('video-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\tlet video = document.createElement('video');\n\t\t\t\t\t\t\t\t\tlet source = document.createElement('source');\n\t\t\t\t\t\t\t\t\tsource.src = f.target.result;\n\t\t\t\t\t\t\t\t\tvideo.appendChild(source);\n\t\t\t\t\t\t\t\t\titem.appendChild(video);\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'audio/mpeg':\n\t\t\t\t\t\t\titem = self.itemFactory('audio-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\tlet audio = document.createElement('audio');\n\t\t\t\t\t\t\t\t\taudio.setAttribute('controls', true);\n\t\t\t\t\t\t\t\t\tlet source = document.createElement('source');\n\t\t\t\t\t\t\t\t\tsource.src = f.target.result;\n\t\t\t\t\t\t\t\t\taudio.appendChild(source);\n\t\t\t\t\t\t\t\t\titem.appendChild(audio);\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'application/pdf':\n\t\t\t\t\t\tcase 'text/plain':\n\t\t\t\t\t\tcase 'text/rtf':\n\t\t\t\t\t\t\titem = self.itemFactory('file-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\tlet link = document.createElement('a');\n\t\t\t\t\t\t\t\t\tlink.href = result.filePath;\n\t\t\t\t\t\t\t\t\tlink.innerHTML = result.fileName;\n\t\t\t\t\t\t\t\t\titem.appendChild(link);\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t})(file);\n\t\t\t// Read in the image file as a data URL.\n\t\t\treader.readAsDataURL(file);\n\t\t}\n\t}\n\titemFactory(type = null) {\n\t\t//get counts for lists\n\t\tvar mediaCount = this.imageList.childNodes.length;\n\t\tvar fileCount = this.fileList.childNodes.length;\n\t\tif (mediaCount < 0) mediaCount = 0;\n\t\tif (fileCount < 0) fileCount = 0;\n\t\tvar item = document.createElement('div');\n\t\titem.className = type;\n\t\tvar progress = document.createElement('div');\n\t\tprogress.className = 'item-progress';\n\t\titem.appendChild(progress);\n\n\t\tif (type == 'img-item' || type == 'video-item') {\n\t\t\tthis.imageList.appendChild(item);\n\t\t\tprogress.setAttribute('id', 'pgs' + mediaCount);\n\t\t\titem.setAttribute('id', mediaCount);\n\t\t} else {\n\t\t\tthis.fileList.appendChild(item);\n\t\t\tprogress.setAttribute('id', 'pgs' + fileCount);\n\t\t\titem.setAttribute('id', fileCount);\n\t\t}\n\t\treturn item;\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\tremoveFile(e) {\n\t\tvar item = e.target.parentNode.parentNode;\n\t\tswitch (item.className) {\n\t\t\tcase 'img-item':\n\t\t\tcase 'video-item':\n\t\t\t\tthis.imageList.removeChild(item);\n\t\t\t\tbreak;\n\t\t\tcase 'audio-item':\n\t\t\tcase 'file-item':\n\t\t\t\tthis.fileList.removeChild(item);\n\t\t\t\tbreak;\n\t\t}\n\t\tnotify.alert('File Removed!', true);\n\t}\n\n\thandleFileActions(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet self = this;\n\t\tlet rawList = [];\n\t\tlet sortedList = [];\n\t\tlet notOnTheList = [];\n\n\t\tswitch (e.type) {\n\t\t\tcase 'dragover':\n\t\t\t\te.dataTransfer.dropEffect = 'copy'; // Explicitly show this is a copy.\n\t\t\t\tbreak;\n\t\t\tcase 'change':\n\t\t\tcase 'drop':\n\t\t\t\te.type == 'drop'\n\t\t\t\t\t? (rawList = e.dataTransfer.files)\n\t\t\t\t\t: (rawList = e.target.files);\n\t\t\t\tfor (var i = 0, f; (f = rawList[i]); i++) {\n\t\t\t\t\t// check witch files are cool to upload\n\t\t\t\t\tif (this.accetableFiles.includes(f.type)) {\n\t\t\t\t\t\tsortedList.push(f);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnotOnTheList.push(f);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//send for sorting\n\t\t\t\tself.sortFiles(sortedList);\n\t\t\t\tbreak;\n\t\t}\n\t}\n}\n","/**!\n * Sortable 1.15.0\n * @author\tRubaXa <trash@rubaxa.org>\n * @author\towenm <owen23355@gmail.com>\n * @license MIT\n */\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nvar version = \"1.15.0\";\n\nfunction userAgent(pattern) {\n if (typeof window !== 'undefined' && window.navigator) {\n return !! /*@__PURE__*/navigator.userAgent.match(pattern);\n }\n}\n\nvar IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\\.|msie|iemobile|Windows Phone)/i);\nvar Edge = userAgent(/Edge/i);\nvar FireFox = userAgent(/firefox/i);\nvar Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);\nvar IOS = userAgent(/iP(ad|od|hone)/i);\nvar ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);\n\nvar captureMode = {\n capture: false,\n passive: false\n};\n\nfunction on(el, event, fn) {\n el.addEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction off(el, event, fn) {\n el.removeEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction matches(\n/**HTMLElement*/\nel,\n/**String*/\nselector) {\n if (!selector) return;\n selector[0] === '>' && (selector = selector.substring(1));\n\n if (el) {\n try {\n if (el.matches) {\n return el.matches(selector);\n } else if (el.msMatchesSelector) {\n return el.msMatchesSelector(selector);\n } else if (el.webkitMatchesSelector) {\n return el.webkitMatchesSelector(selector);\n }\n } catch (_) {\n return false;\n }\n }\n\n return false;\n}\n\nfunction getParentOrHost(el) {\n return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;\n}\n\nfunction closest(\n/**HTMLElement*/\nel,\n/**String*/\nselector,\n/**HTMLElement*/\nctx, includeCTX) {\n if (el) {\n ctx = ctx || document;\n\n do {\n if (selector != null && (selector[0] === '>' ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {\n return el;\n }\n\n if (el === ctx) break;\n /* jshint boss:true */\n } while (el = getParentOrHost(el));\n }\n\n return null;\n}\n\nvar R_SPACE = /\\s+/g;\n\nfunction toggleClass(el, name, state) {\n if (el && name) {\n if (el.classList) {\n el.classList[state ? 'add' : 'remove'](name);\n } else {\n var className = (' ' + el.className + ' ').replace(R_SPACE, ' ').replace(' ' + name + ' ', ' ');\n el.className = (className + (state ? ' ' + name : '')).replace(R_SPACE, ' ');\n }\n }\n}\n\nfunction css(el, prop, val) {\n var style = el && el.style;\n\n if (style) {\n if (val === void 0) {\n if (document.defaultView && document.defaultView.getComputedStyle) {\n val = document.defaultView.getComputedStyle(el, '');\n } else if (el.currentStyle) {\n val = el.currentStyle;\n }\n\n return prop === void 0 ? val : val[prop];\n } else {\n if (!(prop in style) && prop.indexOf('webkit') === -1) {\n prop = '-webkit-' + prop;\n }\n\n style[prop] = val + (typeof val === 'string' ? '' : 'px');\n }\n }\n}\n\nfunction matrix(el, selfOnly) {\n var appliedTransforms = '';\n\n if (typeof el === 'string') {\n appliedTransforms = el;\n } else {\n do {\n var transform = css(el, 'transform');\n\n if (transform && transform !== 'none') {\n appliedTransforms = transform + ' ' + appliedTransforms;\n }\n /* jshint boss:true */\n\n } while (!selfOnly && (el = el.parentNode));\n }\n\n var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;\n /*jshint -W056 */\n\n return matrixFn && new matrixFn(appliedTransforms);\n}\n\nfunction find(ctx, tagName, iterator) {\n if (ctx) {\n var list = ctx.getElementsByTagName(tagName),\n i = 0,\n n = list.length;\n\n if (iterator) {\n for (; i < n; i++) {\n iterator(list[i], i);\n }\n }\n\n return list;\n }\n\n return [];\n}\n\nfunction getWindowScrollingElement() {\n var scrollingElement = document.scrollingElement;\n\n if (scrollingElement) {\n return scrollingElement;\n } else {\n return document.documentElement;\n }\n}\n/**\n * Returns the \"bounding client rect\" of given element\n * @param {HTMLElement} el The element whose boundingClientRect is wanted\n * @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container\n * @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr\n * @param {[Boolean]} undoScale Whether the container's scale() should be undone\n * @param {[HTMLElement]} container The parent the element will be placed in\n * @return {Object} The boundingClientRect of el, with specified adjustments\n */\n\n\nfunction getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {\n if (!el.getBoundingClientRect && el !== window) return;\n var elRect, top, left, bottom, right, height, width;\n\n if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {\n elRect = el.getBoundingClientRect();\n top = elRect.top;\n left = elRect.left;\n bottom = elRect.bottom;\n right = elRect.right;\n height = elRect.height;\n width = elRect.width;\n } else {\n top = 0;\n left = 0;\n bottom = window.innerHeight;\n right = window.innerWidth;\n height = window.innerHeight;\n width = window.innerWidth;\n }\n\n if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {\n // Adjust for translate()\n container = container || el.parentNode; // solves #1123 (see: https://stackoverflow.com/a/37953806/6088312)\n // Not needed on <= IE11\n\n if (!IE11OrLess) {\n do {\n if (container && container.getBoundingClientRect && (css(container, 'transform') !== 'none' || relativeToNonStaticParent && css(container, 'position') !== 'static')) {\n var containerRect = container.getBoundingClientRect(); // Set relative to edges of padding box of container\n\n top -= containerRect.top + parseInt(css(container, 'border-top-width'));\n left -= containerRect.left + parseInt(css(container, 'border-left-width'));\n bottom = top + elRect.height;\n right = left + elRect.width;\n break;\n }\n /* jshint boss:true */\n\n } while (container = container.parentNode);\n }\n }\n\n if (undoScale && el !== window) {\n // Adjust for scale()\n var elMatrix = matrix(container || el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d;\n\n if (elMatrix) {\n top /= scaleY;\n left /= scaleX;\n width /= scaleX;\n height /= scaleY;\n bottom = top + height;\n right = left + width;\n }\n }\n\n return {\n top: top,\n left: left,\n bottom: bottom,\n right: right,\n width: width,\n height: height\n };\n}\n/**\n * Checks if a side of an element is scrolled past a side of its parents\n * @param {HTMLElement} el The element who's side being scrolled out of view is in question\n * @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')\n * @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')\n * @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element\n */\n\n\nfunction isScrolledPast(el, elSide, parentSide) {\n var parent = getParentAutoScrollElement(el, true),\n elSideVal = getRect(el)[elSide];\n /* jshint boss:true */\n\n while (parent) {\n var parentSideVal = getRect(parent)[parentSide],\n visible = void 0;\n\n if (parentSide === 'top' || parentSide === 'left') {\n visible = elSideVal >= parentSideVal;\n } else {\n visible = elSideVal <= parentSideVal;\n }\n\n if (!visible) return parent;\n if (parent === getWindowScrollingElement()) break;\n parent = getParentAutoScrollElement(parent, false);\n }\n\n return false;\n}\n/**\n * Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)\n * and non-draggable elements\n * @param {HTMLElement} el The parent element\n * @param {Number} childNum The index of the child\n * @param {Object} options Parent Sortable's options\n * @return {HTMLElement} The child at index childNum, or null if not found\n */\n\n\nfunction getChild(el, childNum, options, includeDragEl) {\n var currentChild = 0,\n i = 0,\n children = el.children;\n\n while (i < children.length) {\n if (children[i].style.display !== 'none' && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {\n if (currentChild === childNum) {\n return children[i];\n }\n\n currentChild++;\n }\n\n i++;\n }\n\n return null;\n}\n/**\n * Gets the last child in the el, ignoring ghostEl or invisible elements (clones)\n * @param {HTMLElement} el Parent element\n * @param {selector} selector Any other elements that should be ignored\n * @return {HTMLElement} The last child, ignoring ghostEl\n */\n\n\nfunction lastChild(el, selector) {\n var last = el.lastElementChild;\n\n while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) {\n last = last.previousElementSibling;\n }\n\n return last || null;\n}\n/**\n * Returns the index of an element within its parent for a selected set of\n * elements\n * @param {HTMLElement} el\n * @param {selector} selector\n * @return {number}\n */\n\n\nfunction index(el, selector) {\n var index = 0;\n\n if (!el || !el.parentNode) {\n return -1;\n }\n /* jshint boss:true */\n\n\n while (el = el.previousElementSibling) {\n if (el.nodeName.toUpperCase() !== 'TEMPLATE' && el !== Sortable.clone && (!selector || matches(el, selector))) {\n index++;\n }\n }\n\n return index;\n}\n/**\n * Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.\n * The value is returned in real pixels.\n * @param {HTMLElement} el\n * @return {Array} Offsets in the format of [left, top]\n */\n\n\nfunction getRelativeScrollOffset(el) {\n var offsetLeft = 0,\n offsetTop = 0,\n winScroller = getWindowScrollingElement();\n\n if (el) {\n do {\n var elMatrix = matrix(el),\n scaleX = elMatrix.a,\n scaleY = elMatrix.d;\n offsetLeft += el.scrollLeft * scaleX;\n offsetTop += el.scrollTop * scaleY;\n } while (el !== winScroller && (el = el.parentNode));\n }\n\n return [offsetLeft, offsetTop];\n}\n/**\n * Returns the index of the object within the given array\n * @param {Array} arr Array that may or may not hold the object\n * @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find\n * @return {Number} The index of the object in the array, or -1\n */\n\n\nfunction indexOfObject(arr, obj) {\n for (var i in arr) {\n if (!arr.hasOwnProperty(i)) continue;\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);\n }\n }\n\n return -1;\n}\n\nfunction getParentAutoScrollElement(el, includeSelf) {\n // skip to window\n if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();\n var elem = el;\n var gotSelf = false;\n\n do {\n // we don't need to get elem css if it isn't even overflowing in the first place (performance)\n if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {\n var elemCSS = css(elem);\n\n if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == 'auto' || elemCSS.overflowX == 'scroll') || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == 'auto' || elemCSS.overflowY == 'scroll')) {\n if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();\n if (gotSelf || includeSelf) return elem;\n gotSelf = true;\n }\n }\n /* jshint boss:true */\n\n } while (elem = elem.parentNode);\n\n return getWindowScrollingElement();\n}\n\nfunction extend(dst, src) {\n if (dst && src) {\n for (var key in src) {\n if (src.hasOwnProperty(key)) {\n dst[key] = src[key];\n }\n }\n }\n\n return dst;\n}\n\nfunction isRectEqual(rect1, rect2) {\n return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);\n}\n\nvar _throttleTimeout;\n\nfunction throttle(callback, ms) {\n return function () {\n if (!_throttleTimeout) {\n var args = arguments,\n _this = this;\n\n if (args.length === 1) {\n callback.call(_this, args[0]);\n } else {\n callback.apply(_this, args);\n }\n\n _throttleTimeout = setTimeout(function () {\n _throttleTimeout = void 0;\n }, ms);\n }\n };\n}\n\nfunction cancelThrottle() {\n clearTimeout(_throttleTimeout);\n _throttleTimeout = void 0;\n}\n\nfunction scrollBy(el, x, y) {\n el.scrollLeft += x;\n el.scrollTop += y;\n}\n\nfunction clone(el) {\n var Polymer = window.Polymer;\n var $ = window.jQuery || window.Zepto;\n\n if (Polymer && Polymer.dom) {\n return Polymer.dom(el).cloneNode(true);\n } else if ($) {\n return $(el).clone(true)[0];\n } else {\n return el.cloneNode(true);\n }\n}\n\nfunction setRect(el, rect) {\n css(el, 'position', 'absolute');\n css(el, 'top', rect.top);\n css(el, 'left', rect.left);\n css(el, 'width', rect.width);\n css(el, 'height', rect.height);\n}\n\nfunction unsetRect(el) {\n css(el, 'position', '');\n css(el, 'top', '');\n css(el, 'left', '');\n css(el, 'width', '');\n css(el, 'height', '');\n}\n\nvar expando = 'Sortable' + new Date().getTime();\n\nfunction AnimationStateManager() {\n var animationStates = [],\n animationCallbackId;\n return {\n captureAnimationState: function captureAnimationState() {\n animationStates = [];\n if (!this.options.animation) return;\n var children = [].slice.call(this.el.children);\n children.forEach(function (child) {\n if (css(child, 'display') === 'none' || child === Sortable.ghost) return;\n animationStates.push({\n target: child,\n rect: getRect(child)\n });\n\n var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect); // If animating: compensate for current animation\n\n\n if (child.thisAnimationDuration) {\n var childMatrix = matrix(child, true);\n\n if (childMatrix) {\n fromRect.top -= childMatrix.f;\n fromRect.left -= childMatrix.e;\n }\n }\n\n child.fromRect = fromRect;\n });\n },\n addAnimationState: function addAnimationState(state) {\n animationStates.push(state);\n },\n removeAnimationState: function removeAnimationState(target) {\n animationStates.splice(indexOfObject(animationStates, {\n target: target\n }), 1);\n },\n animateAll: function animateAll(callback) {\n var _this = this;\n\n if (!this.options.animation) {\n clearTimeout(animationCallbackId);\n if (typeof callback === 'function') callback();\n return;\n }\n\n var animating = false,\n animationTime = 0;\n animationStates.forEach(function (state) {\n var time = 0,\n target = state.target,\n fromRect = target.fromRect,\n toRect = getRect(target),\n prevFromRect = target.prevFromRect,\n prevToRect = target.prevToRect,\n animatingRect = state.rect,\n targetMatrix = matrix(target, true);\n\n if (targetMatrix) {\n // Compensate for current animation\n toRect.top -= targetMatrix.f;\n toRect.left -= targetMatrix.e;\n }\n\n target.toRect = toRect;\n\n if (target.thisAnimationDuration) {\n // Could also check if animatingRect is between fromRect and toRect\n if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect\n (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {\n // If returning to same place as started from animation and on same axis\n time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);\n }\n } // if fromRect != toRect: animate\n\n\n if (!isRectEqual(toRect, fromRect)) {\n target.prevFromRect = fromRect;\n target.prevToRect = toRect;\n\n if (!time) {\n time = _this.options.animation;\n }\n\n _this.animate(target, animatingRect, toRect, time);\n }\n\n if (time) {\n animating = true;\n animationTime = Math.max(animationTime, time);\n clearTimeout(target.animationResetTimer);\n target.animationResetTimer = setTimeout(function () {\n target.animationTime = 0;\n target.prevFromRect = null;\n target.fromRect = null;\n target.prevToRect = null;\n target.thisAnimationDuration = null;\n }, time);\n target.thisAnimationDuration = time;\n }\n });\n clearTimeout(animationCallbackId);\n\n if (!animating) {\n if (typeof callback === 'function') callback();\n } else {\n animationCallbackId = setTimeout(function () {\n if (typeof callback === 'function') callback();\n }, animationTime);\n }\n\n animationStates = [];\n },\n animate: function animate(target, currentRect, toRect, duration) {\n if (duration) {\n css(target, 'transition', '');\n css(target, 'transform', '');\n var elMatrix = matrix(this.el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d,\n translateX = (currentRect.left - toRect.left) / (scaleX || 1),\n translateY = (currentRect.top - toRect.top) / (scaleY || 1);\n target.animatingX = !!translateX;\n target.animatingY = !!translateY;\n css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');\n this.forRepaintDummy = repaint(target); // repaint\n\n css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : ''));\n css(target, 'transform', 'translate3d(0,0,0)');\n typeof target.animated === 'number' && clearTimeout(target.animated);\n target.animated = setTimeout(function () {\n css(target, 'transition', '');\n css(target, 'transform', '');\n target.animated = false;\n target.animatingX = false;\n target.animatingY = false;\n }, duration);\n }\n }\n };\n}\n\nfunction repaint(target) {\n return target.offsetWidth;\n}\n\nfunction calculateRealTime(animatingRect, fromRect, toRect, options) {\n return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;\n}\n\nvar plugins = [];\nvar defaults = {\n initializeByDefault: true\n};\nvar PluginManager = {\n mount: function mount(plugin) {\n // Set default static properties\n for (var option in defaults) {\n if (defaults.hasOwnProperty(option) && !(option in plugin)) {\n plugin[option] = defaults[option];\n }\n }\n\n plugins.forEach(function (p) {\n if (p.pluginName === plugin.pluginName) {\n throw \"Sortable: Cannot mount plugin \".concat(plugin.pluginName, \" more than once\");\n }\n });\n plugins.push(plugin);\n },\n pluginEvent: function pluginEvent(eventName, sortable, evt) {\n var _this = this;\n\n this.eventCanceled = false;\n\n evt.cancel = function () {\n _this.eventCanceled = true;\n };\n\n var eventNameGlobal = eventName + 'Global';\n plugins.forEach(function (plugin) {\n if (!sortable[plugin.pluginName]) return; // Fire global events if it exists in this sortable\n\n if (sortable[plugin.pluginName][eventNameGlobal]) {\n sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({\n sortable: sortable\n }, evt));\n } // Only fire plugin event if plugin is enabled in this sortable,\n // and plugin has event defined\n\n\n if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {\n sortable[plugin.pluginName][eventName](_objectSpread2({\n sortable: sortable\n }, evt));\n }\n });\n },\n initializePlugins: function initializePlugins(sortable, el, defaults, options) {\n plugins.forEach(function (plugin) {\n var pluginName = plugin.pluginName;\n if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;\n var initialized = new plugin(sortable, el, sortable.options);\n initialized.sortable = sortable;\n initialized.options = sortable.options;\n sortable[pluginName] = initialized; // Add default options from plugin\n\n _extends(defaults, initialized.defaults);\n });\n\n for (var option in sortable.options) {\n if (!sortable.options.hasOwnProperty(option)) continue;\n var modified = this.modifyOption(sortable, option, sortable.options[option]);\n\n if (typeof modified !== 'undefined') {\n sortable.options[option] = modified;\n }\n }\n },\n getEventProperties: function getEventProperties(name, sortable) {\n var eventProperties = {};\n plugins.forEach(function (plugin) {\n if (typeof plugin.eventProperties !== 'function') return;\n\n _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));\n });\n return eventProperties;\n },\n modifyOption: function modifyOption(sortable, name, value) {\n var modifiedValue;\n plugins.forEach(function (plugin) {\n // Plugin must exist on the Sortable\n if (!sortable[plugin.pluginName]) return; // If static option listener exists for this option, call in the context of the Sortable's instance of this plugin\n\n if (plugin.optionListeners && typeof plugin.optionListeners[name] === 'function') {\n modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);\n }\n });\n return modifiedValue;\n }\n};\n\nfunction dispatchEvent(_ref) {\n var sortable = _ref.sortable,\n rootEl = _ref.rootEl,\n name = _ref.name,\n targetEl = _ref.targetEl,\n cloneEl = _ref.cloneEl,\n toEl = _ref.toEl,\n fromEl = _ref.fromEl,\n oldIndex = _ref.oldIndex,\n newIndex = _ref.newIndex,\n oldDraggableIndex = _ref.oldDraggableIndex,\n newDraggableIndex = _ref.newDraggableIndex,\n originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n extraEventProperties = _ref.extraEventProperties;\n sortable = sortable || rootEl && rootEl[expando];\n if (!sortable) return;\n var evt,\n options = sortable.options,\n onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1); // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent(name, {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent(name, true, true);\n }\n\n evt.to = toEl || rootEl;\n evt.from = fromEl || rootEl;\n evt.item = targetEl || rootEl;\n evt.clone = cloneEl;\n evt.oldIndex = oldIndex;\n evt.newIndex = newIndex;\n evt.oldDraggableIndex = oldDraggableIndex;\n evt.newDraggableIndex = newDraggableIndex;\n evt.originalEvent = originalEvent;\n evt.pullMode = putSortable ? putSortable.lastPutMode : undefined;\n\n var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));\n\n for (var option in allEventProperties) {\n evt[option] = allEventProperties[option];\n }\n\n if (rootEl) {\n rootEl.dispatchEvent(evt);\n }\n\n if (options[onName]) {\n options[onName].call(sortable, evt);\n }\n}\n\nvar _excluded = [\"evt\"];\n\nvar pluginEvent = function pluginEvent(eventName, sortable) {\n var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n originalEvent = _ref.evt,\n data = _objectWithoutProperties(_ref, _excluded);\n\n PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({\n dragEl: dragEl,\n parentEl: parentEl,\n ghostEl: ghostEl,\n rootEl: rootEl,\n nextEl: nextEl,\n lastDownEl: lastDownEl,\n cloneEl: cloneEl,\n cloneHidden: cloneHidden,\n dragStarted: moved,\n putSortable: putSortable,\n activeSortable: Sortable.active,\n originalEvent: originalEvent,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n hideGhostForTarget: _hideGhostForTarget,\n unhideGhostForTarget: _unhideGhostForTarget,\n cloneNowHidden: function cloneNowHidden() {\n cloneHidden = true;\n },\n cloneNowShown: function cloneNowShown() {\n cloneHidden = false;\n },\n dispatchSortableEvent: function dispatchSortableEvent(name) {\n _dispatchEvent({\n sortable: sortable,\n name: name,\n originalEvent: originalEvent\n });\n }\n }, data));\n};\n\nfunction _dispatchEvent(info) {\n dispatchEvent(_objectSpread2({\n putSortable: putSortable,\n cloneEl: cloneEl,\n targetEl: dragEl,\n rootEl: rootEl,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex\n }, info));\n}\n\nvar dragEl,\n parentEl,\n ghostEl,\n rootEl,\n nextEl,\n lastDownEl,\n cloneEl,\n cloneHidden,\n oldIndex,\n newIndex,\n oldDraggableIndex,\n newDraggableIndex,\n activeGroup,\n putSortable,\n awaitingDragStarted = false,\n ignoreNextClick = false,\n sortables = [],\n tapEvt,\n touchEvt,\n lastDx,\n lastDy,\n tapDistanceLeft,\n tapDistanceTop,\n moved,\n lastTarget,\n lastDirection,\n pastFirstInvertThresh = false,\n isCircumstantialInvert = false,\n targetMoveDistance,\n // For positioning ghost absolutely\nghostRelativeParent,\n ghostRelativeParentInitialScroll = [],\n // (left, top)\n_silent = false,\n savedInputChecked = [];\n/** @const */\n\nvar documentExists = typeof document !== 'undefined',\n PositionGhostAbsolutely = IOS,\n CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float',\n // This will not pass for IE9, because IE9 DnD only works on anchors\nsupportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'),\n supportCssPointerEvents = function () {\n if (!documentExists) return; // false when <= IE11\n\n if (IE11OrLess) {\n return false;\n }\n\n var el = document.createElement('x');\n el.style.cssText = 'pointer-events:auto';\n return el.style.pointerEvents === 'auto';\n}(),\n _detectDirection = function _detectDirection(el, options) {\n var elCSS = css(el),\n elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth),\n child1 = getChild(el, 0, options),\n child2 = getChild(el, 1, options),\n firstChildCSS = child1 && css(child1),\n secondChildCSS = child2 && css(child2),\n firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width,\n secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;\n\n if (elCSS.display === 'flex') {\n return elCSS.flexDirection === 'column' || elCSS.flexDirection === 'column-reverse' ? 'vertical' : 'horizontal';\n }\n\n if (elCSS.display === 'grid') {\n return elCSS.gridTemplateColumns.split(' ').length <= 1 ? 'vertical' : 'horizontal';\n }\n\n if (child1 && firstChildCSS[\"float\"] && firstChildCSS[\"float\"] !== 'none') {\n var touchingSideChild2 = firstChildCSS[\"float\"] === 'left' ? 'left' : 'right';\n return child2 && (secondChildCSS.clear === 'both' || secondChildCSS.clear === touchingSideChild2) ? 'vertical' : 'horizontal';\n }\n\n return child1 && (firstChildCSS.display === 'block' || firstChildCSS.display === 'flex' || firstChildCSS.display === 'table' || firstChildCSS.display === 'grid' || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === 'none' || child2 && elCSS[CSSFloatProperty] === 'none' && firstChildWidth + secondChildWidth > elWidth) ? 'vertical' : 'horizontal';\n},\n _dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {\n var dragElS1Opp = vertical ? dragRect.left : dragRect.top,\n dragElS2Opp = vertical ? dragRect.right : dragRect.bottom,\n dragElOppLength = vertical ? dragRect.width : dragRect.height,\n targetS1Opp = vertical ? targetRect.left : targetRect.top,\n targetS2Opp = vertical ? targetRect.right : targetRect.bottom,\n targetOppLength = vertical ? targetRect.width : targetRect.height;\n return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;\n},\n\n/**\r\n * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.\r\n * @param {Number} x X position\r\n * @param {Number} y Y position\r\n * @return {HTMLElement} Element of the first found nearest Sortable\r\n */\n_detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {\n var ret;\n sortables.some(function (sortable) {\n var threshold = sortable[expando].options.emptyInsertThreshold;\n if (!threshold || lastChild(sortable)) return;\n var rect = getRect(sortable),\n insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold,\n insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;\n\n if (insideHorizontally && insideVertically) {\n return ret = sortable;\n }\n });\n return ret;\n},\n _prepareGroup = function _prepareGroup(options) {\n function toFn(value, pull) {\n return function (to, from, dragEl, evt) {\n var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;\n\n if (value == null && (pull || sameGroup)) {\n // Default pull value\n // Default pull and put value if same group\n return true;\n } else if (value == null || value === false) {\n return false;\n } else if (pull && value === 'clone') {\n return value;\n } else if (typeof value === 'function') {\n return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);\n } else {\n var otherGroup = (pull ? to : from).options.group.name;\n return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;\n }\n };\n }\n\n var group = {};\n var originalGroup = options.group;\n\n if (!originalGroup || _typeof(originalGroup) != 'object') {\n originalGroup = {\n name: originalGroup\n };\n }\n\n group.name = originalGroup.name;\n group.checkPull = toFn(originalGroup.pull, true);\n group.checkPut = toFn(originalGroup.put);\n group.revertClone = originalGroup.revertClone;\n options.group = group;\n},\n _hideGhostForTarget = function _hideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', 'none');\n }\n},\n _unhideGhostForTarget = function _unhideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', '');\n }\n}; // #1184 fix - Prevent click event on fallback if dragged but item not changed position\n\n\nif (documentExists && !ChromeForAndroid) {\n document.addEventListener('click', function (evt) {\n if (ignoreNextClick) {\n evt.preventDefault();\n evt.stopPropagation && evt.stopPropagation();\n evt.stopImmediatePropagation && evt.stopImmediatePropagation();\n ignoreNextClick = false;\n return false;\n }\n }, true);\n}\n\nvar nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {\n if (dragEl) {\n evt = evt.touches ? evt.touches[0] : evt;\n\n var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);\n\n if (nearest) {\n // Create imitation event\n var event = {};\n\n for (var i in evt) {\n if (evt.hasOwnProperty(i)) {\n event[i] = evt[i];\n }\n }\n\n event.target = event.rootEl = nearest;\n event.preventDefault = void 0;\n event.stopPropagation = void 0;\n\n nearest[expando]._onDragOver(event);\n }\n }\n};\n\nvar _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {\n if (dragEl) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target);\n }\n};\n/**\r\n * @class Sortable\r\n * @param {HTMLElement} el\r\n * @param {Object} [options]\r\n */\n\n\nfunction Sortable(el, options) {\n if (!(el && el.nodeType && el.nodeType === 1)) {\n throw \"Sortable: `el` must be an HTMLElement, not \".concat({}.toString.call(el));\n }\n\n this.el = el; // root element\n\n this.options = options = _extends({}, options); // Export instance\n\n el[expando] = this;\n var defaults = {\n group: null,\n sort: true,\n disabled: false,\n store: null,\n handle: null,\n draggable: /^[uo]l$/i.test(el.nodeName) ? '>li' : '>*',\n swapThreshold: 1,\n // percentage; 0 <= x <= 1\n invertSwap: false,\n // invert always\n invertedSwapThreshold: null,\n // will be set to same as swapThreshold if default\n removeCloneOnHide: true,\n direction: function direction() {\n return _detectDirection(el, this.options);\n },\n ghostClass: 'sortable-ghost',\n chosenClass: 'sortable-chosen',\n dragClass: 'sortable-drag',\n ignore: 'a, img',\n filter: null,\n preventOnFilter: true,\n animation: 0,\n easing: null,\n setData: function setData(dataTransfer, dragEl) {\n dataTransfer.setData('Text', dragEl.textContent);\n },\n dropBubble: false,\n dragoverBubble: false,\n dataIdAttr: 'data-id',\n delay: 0,\n delayOnTouchOnly: false,\n touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,\n forceFallback: false,\n fallbackClass: 'sortable-fallback',\n fallbackOnBody: false,\n fallbackTolerance: 0,\n fallbackOffset: {\n x: 0,\n y: 0\n },\n supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,\n emptyInsertThreshold: 5\n };\n PluginManager.initializePlugins(this, el, defaults); // Set default options\n\n for (var name in defaults) {\n !(name in options) && (options[name] = defaults[name]);\n }\n\n _prepareGroup(options); // Bind all private methods\n\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n } // Setup drag mode\n\n\n this.nativeDraggable = options.forceFallback ? false : supportDraggable;\n\n if (this.nativeDraggable) {\n // Touch start threshold cannot be greater than the native dragstart threshold\n this.options.touchStartThreshold = 1;\n } // Bind events\n\n\n if (options.supportPointer) {\n on(el, 'pointerdown', this._onTapStart);\n } else {\n on(el, 'mousedown', this._onTapStart);\n on(el, 'touchstart', this._onTapStart);\n }\n\n if (this.nativeDraggable) {\n on(el, 'dragover', this);\n on(el, 'dragenter', this);\n }\n\n sortables.push(this.el); // Restore sorting\n\n options.store && options.store.get && this.sort(options.store.get(this) || []); // Add animation state manager\n\n _extends(this, AnimationStateManager());\n}\n\nSortable.prototype =\n/** @lends Sortable.prototype */\n{\n constructor: Sortable,\n _isOutsideThisEl: function _isOutsideThisEl(target) {\n if (!this.el.contains(target) && target !== this.el) {\n lastTarget = null;\n }\n },\n _getDirection: function _getDirection(evt, target) {\n return typeof this.options.direction === 'function' ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;\n },\n _onTapStart: function _onTapStart(\n /** Event|TouchEvent */\n evt) {\n if (!evt.cancelable) return;\n\n var _this = this,\n el = this.el,\n options = this.options,\n preventOnFilter = options.preventOnFilter,\n type = evt.type,\n touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === 'touch' && evt,\n target = (touch || evt).target,\n originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target,\n filter = options.filter;\n\n _saveInputCheckedState(el); // Don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group.\n\n\n if (dragEl) {\n return;\n }\n\n if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {\n return; // only left button and enabled\n } // cancel dnd if original target is content editable\n\n\n if (originalTarget.isContentEditable) {\n return;\n } // Safari ignores further event handling after mousedown\n\n\n if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {\n return;\n }\n\n target = closest(target, options.draggable, el, false);\n\n if (target && target.animated) {\n return;\n }\n\n if (lastDownEl === target) {\n // Ignoring duplicate `down`\n return;\n } // Get the index of the dragged element within its parent\n\n\n oldIndex = index(target);\n oldDraggableIndex = index(target, options.draggable); // Check filter\n\n if (typeof filter === 'function') {\n if (filter.call(this, evt, target, this)) {\n _dispatchEvent({\n sortable: _this,\n rootEl: originalTarget,\n name: 'filter',\n targetEl: target,\n toEl: el,\n fromEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n } else if (filter) {\n filter = filter.split(',').some(function (criteria) {\n criteria = closest(originalTarget, criteria.trim(), el, false);\n\n if (criteria) {\n _dispatchEvent({\n sortable: _this,\n rootEl: criteria,\n name: 'filter',\n targetEl: target,\n fromEl: el,\n toEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n return true;\n }\n });\n\n if (filter) {\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n }\n\n if (options.handle && !closest(originalTarget, options.handle, el, false)) {\n return;\n } // Prepare `dragstart`\n\n\n this._prepareDragStart(evt, touch, target);\n },\n _prepareDragStart: function _prepareDragStart(\n /** Event */\n evt,\n /** Touch */\n touch,\n /** HTMLElement */\n target) {\n var _this = this,\n el = _this.el,\n options = _this.options,\n ownerDocument = el.ownerDocument,\n dragStartFn;\n\n if (target && !dragEl && target.parentNode === el) {\n var dragRect = getRect(target);\n rootEl = el;\n dragEl = target;\n parentEl = dragEl.parentNode;\n nextEl = dragEl.nextSibling;\n lastDownEl = target;\n activeGroup = options.group;\n Sortable.dragged = dragEl;\n tapEvt = {\n target: dragEl,\n clientX: (touch || evt).clientX,\n clientY: (touch || evt).clientY\n };\n tapDistanceLeft = tapEvt.clientX - dragRect.left;\n tapDistanceTop = tapEvt.clientY - dragRect.top;\n this._lastX = (touch || evt).clientX;\n this._lastY = (touch || evt).clientY;\n dragEl.style['will-change'] = 'all';\n\n dragStartFn = function dragStartFn() {\n pluginEvent('delayEnded', _this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n _this._onDrop();\n\n return;\n } // Delayed drag has been triggered\n // we can re-enable the events: touchmove/mousemove\n\n\n _this._disableDelayedDragEvents();\n\n if (!FireFox && _this.nativeDraggable) {\n dragEl.draggable = true;\n } // Bind the events: dragstart/dragend\n\n\n _this._triggerDragStart(evt, touch); // Drag start event\n\n\n _dispatchEvent({\n sortable: _this,\n name: 'choose',\n originalEvent: evt\n }); // Chosen item\n\n\n toggleClass(dragEl, options.chosenClass, true);\n }; // Disable \"draggable\"\n\n\n options.ignore.split(',').forEach(function (criteria) {\n find(dragEl, criteria.trim(), _disableDraggable);\n });\n on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mouseup', _this._onDrop);\n on(ownerDocument, 'touchend', _this._onDrop);\n on(ownerDocument, 'touchcancel', _this._onDrop); // Make dragEl draggable (must be before delay for FireFox)\n\n if (FireFox && this.nativeDraggable) {\n this.options.touchStartThreshold = 4;\n dragEl.draggable = true;\n }\n\n pluginEvent('delayStart', this, {\n evt: evt\n }); // Delay is impossible for native DnD in Edge or IE\n\n if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n } // If the user moves the pointer or let go the click or touch\n // before the delay has been reached:\n // disable the delayed drag\n\n\n on(ownerDocument, 'mouseup', _this._disableDelayedDrag);\n on(ownerDocument, 'touchend', _this._disableDelayedDrag);\n on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);\n on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler);\n on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);\n options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);\n _this._dragStartTimer = setTimeout(dragStartFn, options.delay);\n } else {\n dragStartFn();\n }\n }\n },\n _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(\n /** TouchEvent|PointerEvent **/\n e) {\n var touch = e.touches ? e.touches[0] : e;\n\n if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) {\n this._disableDelayedDrag();\n }\n },\n _disableDelayedDrag: function _disableDelayedDrag() {\n dragEl && _disableDraggable(dragEl);\n clearTimeout(this._dragStartTimer);\n\n this._disableDelayedDragEvents();\n },\n _disableDelayedDragEvents: function _disableDelayedDragEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._disableDelayedDrag);\n off(ownerDocument, 'touchend', this._disableDelayedDrag);\n off(ownerDocument, 'touchcancel', this._disableDelayedDrag);\n off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler);\n },\n _triggerDragStart: function _triggerDragStart(\n /** Event */\n evt,\n /** Touch */\n touch) {\n touch = touch || evt.pointerType == 'touch' && evt;\n\n if (!this.nativeDraggable || touch) {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._onTouchMove);\n } else if (touch) {\n on(document, 'touchmove', this._onTouchMove);\n } else {\n on(document, 'mousemove', this._onTouchMove);\n }\n } else {\n on(dragEl, 'dragend', this);\n on(rootEl, 'dragstart', this._onDragStart);\n }\n\n try {\n if (document.selection) {\n // Timeout neccessary for IE9\n _nextTick(function () {\n document.selection.empty();\n });\n } else {\n window.getSelection().removeAllRanges();\n }\n } catch (err) {}\n },\n _dragStarted: function _dragStarted(fallback, evt) {\n\n awaitingDragStarted = false;\n\n if (rootEl && dragEl) {\n pluginEvent('dragStarted', this, {\n evt: evt\n });\n\n if (this.nativeDraggable) {\n on(document, 'dragover', _checkOutsideTargetEl);\n }\n\n var options = this.options; // Apply effect\n\n !fallback && toggleClass(dragEl, options.dragClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n Sortable.active = this;\n fallback && this._appendGhost(); // Drag start event\n\n _dispatchEvent({\n sortable: this,\n name: 'start',\n originalEvent: evt\n });\n } else {\n this._nulling();\n }\n },\n _emulateDragOver: function _emulateDragOver() {\n if (touchEvt) {\n this._lastX = touchEvt.clientX;\n this._lastY = touchEvt.clientY;\n\n _hideGhostForTarget();\n\n var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n var parent = target;\n\n while (target && target.shadowRoot) {\n target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n if (target === parent) break;\n parent = target;\n }\n\n dragEl.parentNode[expando]._isOutsideThisEl(target);\n\n if (parent) {\n do {\n if (parent[expando]) {\n var inserted = void 0;\n inserted = parent[expando]._onDragOver({\n clientX: touchEvt.clientX,\n clientY: touchEvt.clientY,\n target: target,\n rootEl: parent\n });\n\n if (inserted && !this.options.dragoverBubble) {\n break;\n }\n }\n\n target = parent; // store last element\n }\n /* jshint boss:true */\n while (parent = parent.parentNode);\n }\n\n _unhideGhostForTarget();\n }\n },\n _onTouchMove: function _onTouchMove(\n /**TouchEvent*/\n evt) {\n if (tapEvt) {\n var options = this.options,\n fallbackTolerance = options.fallbackTolerance,\n fallbackOffset = options.fallbackOffset,\n touch = evt.touches ? evt.touches[0] : evt,\n ghostMatrix = ghostEl && matrix(ghostEl, true),\n scaleX = ghostEl && ghostMatrix && ghostMatrix.a,\n scaleY = ghostEl && ghostMatrix && ghostMatrix.d,\n relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent),\n dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1),\n dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1); // only set the status to dragging, when we are actually dragging\n\n if (!Sortable.active && !awaitingDragStarted) {\n if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {\n return;\n }\n\n this._onDragStart(evt, true);\n }\n\n if (ghostEl) {\n if (ghostMatrix) {\n ghostMatrix.e += dx - (lastDx || 0);\n ghostMatrix.f += dy - (lastDy || 0);\n } else {\n ghostMatrix = {\n a: 1,\n b: 0,\n c: 0,\n d: 1,\n e: dx,\n f: dy\n };\n }\n\n var cssMatrix = \"matrix(\".concat(ghostMatrix.a, \",\").concat(ghostMatrix.b, \",\").concat(ghostMatrix.c, \",\").concat(ghostMatrix.d, \",\").concat(ghostMatrix.e, \",\").concat(ghostMatrix.f, \")\");\n css(ghostEl, 'webkitTransform', cssMatrix);\n css(ghostEl, 'mozTransform', cssMatrix);\n css(ghostEl, 'msTransform', cssMatrix);\n css(ghostEl, 'transform', cssMatrix);\n lastDx = dx;\n lastDy = dy;\n touchEvt = touch;\n }\n\n evt.cancelable && evt.preventDefault();\n }\n },\n _appendGhost: function _appendGhost() {\n // Bug if using scale(): https://stackoverflow.com/questions/2637058\n // Not being adjusted for\n if (!ghostEl) {\n var container = this.options.fallbackOnBody ? document.body : rootEl,\n rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container),\n options = this.options; // Position absolutely\n\n if (PositionGhostAbsolutely) {\n // Get relatively positioned parent\n ghostRelativeParent = container;\n\n while (css(ghostRelativeParent, 'position') === 'static' && css(ghostRelativeParent, 'transform') === 'none' && ghostRelativeParent !== document) {\n ghostRelativeParent = ghostRelativeParent.parentNode;\n }\n\n if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {\n if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();\n rect.top += ghostRelativeParent.scrollTop;\n rect.left += ghostRelativeParent.scrollLeft;\n } else {\n ghostRelativeParent = getWindowScrollingElement();\n }\n\n ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);\n }\n\n ghostEl = dragEl.cloneNode(true);\n toggleClass(ghostEl, options.ghostClass, false);\n toggleClass(ghostEl, options.fallbackClass, true);\n toggleClass(ghostEl, options.dragClass, true);\n css(ghostEl, 'transition', '');\n css(ghostEl, 'transform', '');\n css(ghostEl, 'box-sizing', 'border-box');\n css(ghostEl, 'margin', 0);\n css(ghostEl, 'top', rect.top);\n css(ghostEl, 'left', rect.left);\n css(ghostEl, 'width', rect.width);\n css(ghostEl, 'height', rect.height);\n css(ghostEl, 'opacity', '0.8');\n css(ghostEl, 'position', PositionGhostAbsolutely ? 'absolute' : 'fixed');\n css(ghostEl, 'zIndex', '100000');\n css(ghostEl, 'pointerEvents', 'none');\n Sortable.ghost = ghostEl;\n container.appendChild(ghostEl); // Set transform-origin\n\n css(ghostEl, 'transform-origin', tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + '% ' + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + '%');\n }\n },\n _onDragStart: function _onDragStart(\n /**Event*/\n evt,\n /**boolean*/\n fallback) {\n var _this = this;\n\n var dataTransfer = evt.dataTransfer;\n var options = _this.options;\n pluginEvent('dragStart', this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n }\n\n pluginEvent('setupClone', this);\n\n if (!Sortable.eventCanceled) {\n cloneEl = clone(dragEl);\n cloneEl.removeAttribute(\"id\");\n cloneEl.draggable = false;\n cloneEl.style['will-change'] = '';\n\n this._hideClone();\n\n toggleClass(cloneEl, this.options.chosenClass, false);\n Sortable.clone = cloneEl;\n } // #1143: IFrame support workaround\n\n\n _this.cloneId = _nextTick(function () {\n pluginEvent('clone', _this);\n if (Sortable.eventCanceled) return;\n\n if (!_this.options.removeCloneOnHide) {\n rootEl.insertBefore(cloneEl, dragEl);\n }\n\n _this._hideClone();\n\n _dispatchEvent({\n sortable: _this,\n name: 'clone'\n });\n });\n !fallback && toggleClass(dragEl, options.dragClass, true); // Set proper drop events\n\n if (fallback) {\n ignoreNextClick = true;\n _this._loopId = setInterval(_this._emulateDragOver, 50);\n } else {\n // Undo what was set in _prepareDragStart before drag started\n off(document, 'mouseup', _this._onDrop);\n off(document, 'touchend', _this._onDrop);\n off(document, 'touchcancel', _this._onDrop);\n\n if (dataTransfer) {\n dataTransfer.effectAllowed = 'move';\n options.setData && options.setData.call(_this, dataTransfer, dragEl);\n }\n\n on(document, 'drop', _this); // #1276 fix:\n\n css(dragEl, 'transform', 'translateZ(0)');\n }\n\n awaitingDragStarted = true;\n _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));\n on(document, 'selectstart', _this);\n moved = true;\n\n if (Safari) {\n css(document.body, 'user-select', 'none');\n }\n },\n // Returns true - if no further action is needed (either inserted or another condition)\n _onDragOver: function _onDragOver(\n /**Event*/\n evt) {\n var el = this.el,\n target = evt.target,\n dragRect,\n targetRect,\n revert,\n options = this.options,\n group = options.group,\n activeSortable = Sortable.active,\n isOwner = activeGroup === group,\n canSort = options.sort,\n fromSortable = putSortable || activeSortable,\n vertical,\n _this = this,\n completedFired = false;\n\n if (_silent) return;\n\n function dragOverEvent(name, extra) {\n pluginEvent(name, _this, _objectSpread2({\n evt: evt,\n isOwner: isOwner,\n axis: vertical ? 'vertical' : 'horizontal',\n revert: revert,\n dragRect: dragRect,\n targetRect: targetRect,\n canSort: canSort,\n fromSortable: fromSortable,\n target: target,\n completed: completed,\n onMove: function onMove(target, after) {\n return _onMove(rootEl, el, dragEl, dragRect, target, getRect(target), evt, after);\n },\n changed: changed\n }, extra));\n } // Capture animation state\n\n\n function capture() {\n dragOverEvent('dragOverAnimationCapture');\n\n _this.captureAnimationState();\n\n if (_this !== fromSortable) {\n fromSortable.captureAnimationState();\n }\n } // Return invocation when dragEl is inserted (or completed)\n\n\n function completed(insertion) {\n dragOverEvent('dragOverCompleted', {\n insertion: insertion\n });\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n } else {\n activeSortable._showClone(_this);\n }\n\n if (_this !== fromSortable) {\n // Set ghost class to new sortable's ghost class\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n }\n\n if (putSortable !== _this && _this !== Sortable.active) {\n putSortable = _this;\n } else if (_this === Sortable.active && putSortable) {\n putSortable = null;\n } // Animation\n\n\n if (fromSortable === _this) {\n _this._ignoreWhileAnimating = target;\n }\n\n _this.animateAll(function () {\n dragOverEvent('dragOverAnimationComplete');\n _this._ignoreWhileAnimating = null;\n });\n\n if (_this !== fromSortable) {\n fromSortable.animateAll();\n fromSortable._ignoreWhileAnimating = null;\n }\n } // Null lastTarget if it is not inside a previously swapped element\n\n\n if (target === dragEl && !dragEl.animated || target === el && !target.animated) {\n lastTarget = null;\n } // no bubbling and not fallback\n\n\n if (!options.dragoverBubble && !evt.rootEl && target !== document) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target); // Do not detect for empty insert if already inserted\n\n\n !insertion && nearestEmptyInsertDetectEvent(evt);\n }\n\n !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();\n return completedFired = true;\n } // Call when dragEl has been inserted\n\n\n function changed() {\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n _dispatchEvent({\n sortable: _this,\n name: 'change',\n toEl: el,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n originalEvent: evt\n });\n }\n\n if (evt.preventDefault !== void 0) {\n evt.cancelable && evt.preventDefault();\n }\n\n target = closest(target, options.draggable, el, true);\n dragOverEvent('dragOver');\n if (Sortable.eventCanceled) return completedFired;\n\n if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {\n return completed(false);\n }\n\n ignoreNextClick = false;\n\n if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list\n : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {\n vertical = this._getDirection(evt, target) === 'vertical';\n dragRect = getRect(dragEl);\n dragOverEvent('dragOverValid');\n if (Sortable.eventCanceled) return completedFired;\n\n if (revert) {\n parentEl = rootEl; // actualization\n\n capture();\n\n this._hideClone();\n\n dragOverEvent('revert');\n\n if (!Sortable.eventCanceled) {\n if (nextEl) {\n rootEl.insertBefore(dragEl, nextEl);\n } else {\n rootEl.appendChild(dragEl);\n }\n }\n\n return completed(true);\n }\n\n var elLastChild = lastChild(el, options.draggable);\n\n if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {\n // Insert to end of list\n // If already at end of list: Do not insert\n if (elLastChild === dragEl) {\n return completed(false);\n } // if there is a last element, it is the target\n\n\n if (elLastChild && el === evt.target) {\n target = elLastChild;\n }\n\n if (target) {\n targetRect = getRect(target);\n }\n\n if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {\n capture();\n\n if (elLastChild && elLastChild.nextSibling) {\n // the last draggable element is not the last node\n el.insertBefore(dragEl, elLastChild.nextSibling);\n } else {\n el.appendChild(dragEl);\n }\n\n parentEl = el; // actualization\n\n changed();\n return completed(true);\n }\n } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {\n // Insert to start of list\n var firstChild = getChild(el, 0, options, true);\n\n if (firstChild === dragEl) {\n return completed(false);\n }\n\n target = firstChild;\n targetRect = getRect(target);\n\n if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {\n capture();\n el.insertBefore(dragEl, firstChild);\n parentEl = el; // actualization\n\n changed();\n return completed(true);\n }\n } else if (target.parentNode === el) {\n targetRect = getRect(target);\n var direction = 0,\n targetBeforeFirstSwap,\n differentLevel = dragEl.parentNode !== el,\n differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical),\n side1 = vertical ? 'top' : 'left',\n scrolledPastTop = isScrolledPast(target, 'top', 'top') || isScrolledPast(dragEl, 'top', 'top'),\n scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;\n\n if (lastTarget !== target) {\n targetBeforeFirstSwap = targetRect[side1];\n pastFirstInvertThresh = false;\n isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;\n }\n\n direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);\n var sibling;\n\n if (direction !== 0) {\n // Check if target is beside dragEl in respective direction (ignoring hidden elements)\n var dragIndex = index(dragEl);\n\n do {\n dragIndex -= direction;\n sibling = parentEl.children[dragIndex];\n } while (sibling && (css(sibling, 'display') === 'none' || sibling === ghostEl));\n } // If dragEl is already beside target: Do not insert\n\n\n if (direction === 0 || sibling === target) {\n return completed(false);\n }\n\n lastTarget = target;\n lastDirection = direction;\n var nextSibling = target.nextElementSibling,\n after = false;\n after = direction === 1;\n\n var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);\n\n if (moveVector !== false) {\n if (moveVector === 1 || moveVector === -1) {\n after = moveVector === 1;\n }\n\n _silent = true;\n setTimeout(_unsilent, 30);\n capture();\n\n if (after && !nextSibling) {\n el.appendChild(dragEl);\n } else {\n target.parentNode.insertBefore(dragEl, after ? nextSibling : target);\n } // Undo chrome's scroll adjustment (has no effect on other browsers)\n\n\n if (scrolledPastTop) {\n scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);\n }\n\n parentEl = dragEl.parentNode; // actualization\n // must be done before animation\n\n if (targetBeforeFirstSwap !== undefined && !isCircumstantialInvert) {\n targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);\n }\n\n changed();\n return completed(true);\n }\n }\n\n if (el.contains(dragEl)) {\n return completed(false);\n }\n }\n\n return false;\n },\n _ignoreWhileAnimating: null,\n _offMoveEvents: function _offMoveEvents() {\n off(document, 'mousemove', this._onTouchMove);\n off(document, 'touchmove', this._onTouchMove);\n off(document, 'pointermove', this._onTouchMove);\n off(document, 'dragover', nearestEmptyInsertDetectEvent);\n off(document, 'mousemove', nearestEmptyInsertDetectEvent);\n off(document, 'touchmove', nearestEmptyInsertDetectEvent);\n },\n _offUpEvents: function _offUpEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._onDrop);\n off(ownerDocument, 'touchend', this._onDrop);\n off(ownerDocument, 'pointerup', this._onDrop);\n off(ownerDocument, 'touchcancel', this._onDrop);\n off(document, 'selectstart', this);\n },\n _onDrop: function _onDrop(\n /**Event*/\n evt) {\n var el = this.el,\n options = this.options; // Get the index of the dragged element within its parent\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n pluginEvent('drop', this, {\n evt: evt\n });\n parentEl = dragEl && dragEl.parentNode; // Get again after plugin event\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n if (Sortable.eventCanceled) {\n this._nulling();\n\n return;\n }\n\n awaitingDragStarted = false;\n isCircumstantialInvert = false;\n pastFirstInvertThresh = false;\n clearInterval(this._loopId);\n clearTimeout(this._dragStartTimer);\n\n _cancelNextTick(this.cloneId);\n\n _cancelNextTick(this._dragStartId); // Unbind events\n\n\n if (this.nativeDraggable) {\n off(document, 'drop', this);\n off(el, 'dragstart', this._onDragStart);\n }\n\n this._offMoveEvents();\n\n this._offUpEvents();\n\n if (Safari) {\n css(document.body, 'user-select', '');\n }\n\n css(dragEl, 'transform', '');\n\n if (evt) {\n if (moved) {\n evt.cancelable && evt.preventDefault();\n !options.dropBubble && evt.stopPropagation();\n }\n\n ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n // Remove clone(s)\n cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);\n }\n\n if (dragEl) {\n if (this.nativeDraggable) {\n off(dragEl, 'dragend', this);\n }\n\n _disableDraggable(dragEl);\n\n dragEl.style['will-change'] = ''; // Remove classes\n // ghostClass is added in dragStarted\n\n if (moved && !awaitingDragStarted) {\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);\n }\n\n toggleClass(dragEl, this.options.chosenClass, false); // Drag stop event\n\n _dispatchEvent({\n sortable: this,\n name: 'unchoose',\n toEl: parentEl,\n newIndex: null,\n newDraggableIndex: null,\n originalEvent: evt\n });\n\n if (rootEl !== parentEl) {\n if (newIndex >= 0) {\n // Add event\n _dispatchEvent({\n rootEl: parentEl,\n name: 'add',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n }); // Remove event\n\n\n _dispatchEvent({\n sortable: this,\n name: 'remove',\n toEl: parentEl,\n originalEvent: evt\n }); // drag from one list and drop into another\n\n\n _dispatchEvent({\n rootEl: parentEl,\n name: 'sort',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n\n putSortable && putSortable.save();\n } else {\n if (newIndex !== oldIndex) {\n if (newIndex >= 0) {\n // drag & drop within the same list\n _dispatchEvent({\n sortable: this,\n name: 'update',\n toEl: parentEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n }\n }\n\n if (Sortable.active) {\n /* jshint eqnull:true */\n if (newIndex == null || newIndex === -1) {\n newIndex = oldIndex;\n newDraggableIndex = oldDraggableIndex;\n }\n\n _dispatchEvent({\n sortable: this,\n name: 'end',\n toEl: parentEl,\n originalEvent: evt\n }); // Save sorting\n\n\n this.save();\n }\n }\n }\n\n this._nulling();\n },\n _nulling: function _nulling() {\n pluginEvent('nulling', this);\n rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;\n savedInputChecked.forEach(function (el) {\n el.checked = true;\n });\n savedInputChecked.length = lastDx = lastDy = 0;\n },\n handleEvent: function handleEvent(\n /**Event*/\n evt) {\n switch (evt.type) {\n case 'drop':\n case 'dragend':\n this._onDrop(evt);\n\n break;\n\n case 'dragenter':\n case 'dragover':\n if (dragEl) {\n this._onDragOver(evt);\n\n _globalDragOver(evt);\n }\n\n break;\n\n case 'selectstart':\n evt.preventDefault();\n break;\n }\n },\n\n /**\r\n * Serializes the item into an array of string.\r\n * @returns {String[]}\r\n */\n toArray: function toArray() {\n var order = [],\n el,\n children = this.el.children,\n i = 0,\n n = children.length,\n options = this.options;\n\n for (; i < n; i++) {\n el = children[i];\n\n if (closest(el, options.draggable, this.el, false)) {\n order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));\n }\n }\n\n return order;\n },\n\n /**\r\n * Sorts the elements according to the array.\r\n * @param {String[]} order order of the items\r\n */\n sort: function sort(order, useAnimation) {\n var items = {},\n rootEl = this.el;\n this.toArray().forEach(function (id, i) {\n var el = rootEl.children[i];\n\n if (closest(el, this.options.draggable, rootEl, false)) {\n items[id] = el;\n }\n }, this);\n useAnimation && this.captureAnimationState();\n order.forEach(function (id) {\n if (items[id]) {\n rootEl.removeChild(items[id]);\n rootEl.appendChild(items[id]);\n }\n });\n useAnimation && this.animateAll();\n },\n\n /**\r\n * Save the current sorting\r\n */\n save: function save() {\n var store = this.options.store;\n store && store.set && store.set(this);\n },\n\n /**\r\n * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.\r\n * @param {HTMLElement} el\r\n * @param {String} [selector] default: `options.draggable`\r\n * @returns {HTMLElement|null}\r\n */\n closest: function closest$1(el, selector) {\n return closest(el, selector || this.options.draggable, this.el, false);\n },\n\n /**\r\n * Set/get option\r\n * @param {string} name\r\n * @param {*} [value]\r\n * @returns {*}\r\n */\n option: function option(name, value) {\n var options = this.options;\n\n if (value === void 0) {\n return options[name];\n } else {\n var modifiedValue = PluginManager.modifyOption(this, name, value);\n\n if (typeof modifiedValue !== 'undefined') {\n options[name] = modifiedValue;\n } else {\n options[name] = value;\n }\n\n if (name === 'group') {\n _prepareGroup(options);\n }\n }\n },\n\n /**\r\n * Destroy\r\n */\n destroy: function destroy() {\n pluginEvent('destroy', this);\n var el = this.el;\n el[expando] = null;\n off(el, 'mousedown', this._onTapStart);\n off(el, 'touchstart', this._onTapStart);\n off(el, 'pointerdown', this._onTapStart);\n\n if (this.nativeDraggable) {\n off(el, 'dragover', this);\n off(el, 'dragenter', this);\n } // Remove draggable attributes\n\n\n Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function (el) {\n el.removeAttribute('draggable');\n });\n\n this._onDrop();\n\n this._disableDelayedDragEvents();\n\n sortables.splice(sortables.indexOf(this.el), 1);\n this.el = el = null;\n },\n _hideClone: function _hideClone() {\n if (!cloneHidden) {\n pluginEvent('hideClone', this);\n if (Sortable.eventCanceled) return;\n css(cloneEl, 'display', 'none');\n\n if (this.options.removeCloneOnHide && cloneEl.parentNode) {\n cloneEl.parentNode.removeChild(cloneEl);\n }\n\n cloneHidden = true;\n }\n },\n _showClone: function _showClone(putSortable) {\n if (putSortable.lastPutMode !== 'clone') {\n this._hideClone();\n\n return;\n }\n\n if (cloneHidden) {\n pluginEvent('showClone', this);\n if (Sortable.eventCanceled) return; // show clone at dragEl or original position\n\n if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {\n rootEl.insertBefore(cloneEl, dragEl);\n } else if (nextEl) {\n rootEl.insertBefore(cloneEl, nextEl);\n } else {\n rootEl.appendChild(cloneEl);\n }\n\n if (this.options.group.revertClone) {\n this.animate(dragEl, cloneEl);\n }\n\n css(cloneEl, 'display', '');\n cloneHidden = false;\n }\n }\n};\n\nfunction _globalDragOver(\n/**Event*/\nevt) {\n if (evt.dataTransfer) {\n evt.dataTransfer.dropEffect = 'move';\n }\n\n evt.cancelable && evt.preventDefault();\n}\n\nfunction _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {\n var evt,\n sortable = fromEl[expando],\n onMoveFn = sortable.options.onMove,\n retVal; // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent('move', {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent('move', true, true);\n }\n\n evt.to = toEl;\n evt.from = fromEl;\n evt.dragged = dragEl;\n evt.draggedRect = dragRect;\n evt.related = targetEl || toEl;\n evt.relatedRect = targetRect || getRect(toEl);\n evt.willInsertAfter = willInsertAfter;\n evt.originalEvent = originalEvent;\n fromEl.dispatchEvent(evt);\n\n if (onMoveFn) {\n retVal = onMoveFn.call(sortable, evt, originalEvent);\n }\n\n return retVal;\n}\n\nfunction _disableDraggable(el) {\n el.draggable = false;\n}\n\nfunction _unsilent() {\n _silent = false;\n}\n\nfunction _ghostIsFirst(evt, vertical, sortable) {\n var rect = getRect(getChild(sortable.el, 0, sortable.options, true));\n var spacer = 10;\n return vertical ? evt.clientX < rect.left - spacer || evt.clientY < rect.top && evt.clientX < rect.right : evt.clientY < rect.top - spacer || evt.clientY < rect.bottom && evt.clientX < rect.left;\n}\n\nfunction _ghostIsLast(evt, vertical, sortable) {\n var rect = getRect(lastChild(sortable.el, sortable.options.draggable));\n var spacer = 10;\n return vertical ? evt.clientX > rect.right + spacer || evt.clientX <= rect.right && evt.clientY > rect.bottom && evt.clientX >= rect.left : evt.clientX > rect.right && evt.clientY > rect.top || evt.clientX <= rect.right && evt.clientY > rect.bottom + spacer;\n}\n\nfunction _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {\n var mouseOnAxis = vertical ? evt.clientY : evt.clientX,\n targetLength = vertical ? targetRect.height : targetRect.width,\n targetS1 = vertical ? targetRect.top : targetRect.left,\n targetS2 = vertical ? targetRect.bottom : targetRect.right,\n invert = false;\n\n if (!invertSwap) {\n // Never invert or create dragEl shadow when target movemenet causes mouse to move past the end of regular swapThreshold\n if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {\n // multiplied only by swapThreshold because mouse will already be inside target by (1 - threshold) * targetLength / 2\n // check if past first invert threshold on side opposite of lastDirection\n if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {\n // past first invert threshold, do not restrict inverted threshold to dragEl shadow\n pastFirstInvertThresh = true;\n }\n\n if (!pastFirstInvertThresh) {\n // dragEl shadow (target move distance shadow)\n if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance // over dragEl shadow\n : mouseOnAxis > targetS2 - targetMoveDistance) {\n return -lastDirection;\n }\n } else {\n invert = true;\n }\n } else {\n // Regular\n if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {\n return _getInsertDirection(target);\n }\n }\n }\n\n invert = invert || invertSwap;\n\n if (invert) {\n // Invert of regular\n if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {\n return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;\n }\n }\n\n return 0;\n}\n/**\r\n * Gets the direction dragEl must be swapped relative to target in order to make it\r\n * seem that dragEl has been \"inserted\" into that element's position\r\n * @param {HTMLElement} target The target whose position dragEl is being inserted at\r\n * @return {Number} Direction dragEl must be swapped\r\n */\n\n\nfunction _getInsertDirection(target) {\n if (index(dragEl) < index(target)) {\n return 1;\n } else {\n return -1;\n }\n}\n/**\r\n * Generate id\r\n * @param {HTMLElement} el\r\n * @returns {String}\r\n * @private\r\n */\n\n\nfunction _generateId(el) {\n var str = el.tagName + el.className + el.src + el.href + el.textContent,\n i = str.length,\n sum = 0;\n\n while (i--) {\n sum += str.charCodeAt(i);\n }\n\n return sum.toString(36);\n}\n\nfunction _saveInputCheckedState(root) {\n savedInputChecked.length = 0;\n var inputs = root.getElementsByTagName('input');\n var idx = inputs.length;\n\n while (idx--) {\n var el = inputs[idx];\n el.checked && savedInputChecked.push(el);\n }\n}\n\nfunction _nextTick(fn) {\n return setTimeout(fn, 0);\n}\n\nfunction _cancelNextTick(id) {\n return clearTimeout(id);\n} // Fixed #973:\n\n\nif (documentExists) {\n on(document, 'touchmove', function (evt) {\n if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {\n evt.preventDefault();\n }\n });\n} // Export utils\n\n\nSortable.utils = {\n on: on,\n off: off,\n css: css,\n find: find,\n is: function is(el, selector) {\n return !!closest(el, selector, el, false);\n },\n extend: extend,\n throttle: throttle,\n closest: closest,\n toggleClass: toggleClass,\n clone: clone,\n index: index,\n nextTick: _nextTick,\n cancelNextTick: _cancelNextTick,\n detectDirection: _detectDirection,\n getChild: getChild\n};\n/**\r\n * Get the Sortable instance of an element\r\n * @param {HTMLElement} element The element\r\n * @return {Sortable|undefined} The instance of Sortable\r\n */\n\nSortable.get = function (element) {\n return element[expando];\n};\n/**\r\n * Mount a plugin to Sortable\r\n * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted\r\n */\n\n\nSortable.mount = function () {\n for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {\n plugins[_key] = arguments[_key];\n }\n\n if (plugins[0].constructor === Array) plugins = plugins[0];\n plugins.forEach(function (plugin) {\n if (!plugin.prototype || !plugin.prototype.constructor) {\n throw \"Sortable: Mounted plugin must be a constructor function, not \".concat({}.toString.call(plugin));\n }\n\n if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);\n PluginManager.mount(plugin);\n });\n};\n/**\r\n * Create sortable instance\r\n * @param {HTMLElement} el\r\n * @param {Object} [options]\r\n */\n\n\nSortable.create = function (el, options) {\n return new Sortable(el, options);\n}; // Export\n\n\nSortable.version = version;\n\nvar autoScrolls = [],\n scrollEl,\n scrollRootEl,\n scrolling = false,\n lastAutoScrollX,\n lastAutoScrollY,\n touchEvt$1,\n pointerElemChangedInterval;\n\nfunction AutoScrollPlugin() {\n function AutoScroll() {\n this.defaults = {\n scroll: true,\n forceAutoScrollFallback: false,\n scrollSensitivity: 30,\n scrollSpeed: 10,\n bubbleScroll: true\n }; // Bind all private methods\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n }\n\n AutoScroll.prototype = {\n dragStarted: function dragStarted(_ref) {\n var originalEvent = _ref.originalEvent;\n\n if (this.sortable.nativeDraggable) {\n on(document, 'dragover', this._handleAutoScroll);\n } else {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._handleFallbackAutoScroll);\n } else if (originalEvent.touches) {\n on(document, 'touchmove', this._handleFallbackAutoScroll);\n } else {\n on(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref2) {\n var originalEvent = _ref2.originalEvent;\n\n // For when bubbling is canceled and using fallback (fallback 'touchmove' always reached)\n if (!this.options.dragOverBubble && !originalEvent.rootEl) {\n this._handleAutoScroll(originalEvent);\n }\n },\n drop: function drop() {\n if (this.sortable.nativeDraggable) {\n off(document, 'dragover', this._handleAutoScroll);\n } else {\n off(document, 'pointermove', this._handleFallbackAutoScroll);\n off(document, 'touchmove', this._handleFallbackAutoScroll);\n off(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n\n clearPointerElemChangedInterval();\n clearAutoScrolls();\n cancelThrottle();\n },\n nulling: function nulling() {\n touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;\n autoScrolls.length = 0;\n },\n _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {\n this._handleAutoScroll(evt, true);\n },\n _handleAutoScroll: function _handleAutoScroll(evt, fallback) {\n var _this = this;\n\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n elem = document.elementFromPoint(x, y);\n touchEvt$1 = evt; // IE does not seem to have native autoscroll,\n // Edge's autoscroll seems too conditional,\n // MACOS Safari does not have autoscroll,\n // Firefox and Chrome are good\n\n if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {\n autoScroll(evt, this.options, elem, fallback); // Listener for pointer element change\n\n var ogElemScroller = getParentAutoScrollElement(elem, true);\n\n if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {\n pointerElemChangedInterval && clearPointerElemChangedInterval(); // Detect for pointer elem change, emulating native DnD behaviour\n\n pointerElemChangedInterval = setInterval(function () {\n var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);\n\n if (newElem !== ogElemScroller) {\n ogElemScroller = newElem;\n clearAutoScrolls();\n }\n\n autoScroll(evt, _this.options, newElem, fallback);\n }, 10);\n lastAutoScrollX = x;\n lastAutoScrollY = y;\n }\n } else {\n // if DnD is enabled (and browser has good autoscrolling), first autoscroll will already scroll, so get parent autoscroll of first autoscroll\n if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {\n clearAutoScrolls();\n return;\n }\n\n autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);\n }\n }\n };\n return _extends(AutoScroll, {\n pluginName: 'scroll',\n initializeByDefault: true\n });\n}\n\nfunction clearAutoScrolls() {\n autoScrolls.forEach(function (autoScroll) {\n clearInterval(autoScroll.pid);\n });\n autoScrolls = [];\n}\n\nfunction clearPointerElemChangedInterval() {\n clearInterval(pointerElemChangedInterval);\n}\n\nvar autoScroll = throttle(function (evt, options, rootEl, isFallback) {\n // Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521\n if (!options.scroll) return;\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n sens = options.scrollSensitivity,\n speed = options.scrollSpeed,\n winScroller = getWindowScrollingElement();\n var scrollThisInstance = false,\n scrollCustomFn; // New scroll root, set scrollEl\n\n if (scrollRootEl !== rootEl) {\n scrollRootEl = rootEl;\n clearAutoScrolls();\n scrollEl = options.scroll;\n scrollCustomFn = options.scrollFn;\n\n if (scrollEl === true) {\n scrollEl = getParentAutoScrollElement(rootEl, true);\n }\n }\n\n var layersOut = 0;\n var currentParent = scrollEl;\n\n do {\n var el = currentParent,\n rect = getRect(el),\n top = rect.top,\n bottom = rect.bottom,\n left = rect.left,\n right = rect.right,\n width = rect.width,\n height = rect.height,\n canScrollX = void 0,\n canScrollY = void 0,\n scrollWidth = el.scrollWidth,\n scrollHeight = el.scrollHeight,\n elCSS = css(el),\n scrollPosX = el.scrollLeft,\n scrollPosY = el.scrollTop;\n\n if (el === winScroller) {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll' || elCSS.overflowX === 'visible');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll' || elCSS.overflowY === 'visible');\n } else {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll');\n }\n\n var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);\n var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);\n\n if (!autoScrolls[layersOut]) {\n for (var i = 0; i <= layersOut; i++) {\n if (!autoScrolls[i]) {\n autoScrolls[i] = {};\n }\n }\n }\n\n if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {\n autoScrolls[layersOut].el = el;\n autoScrolls[layersOut].vx = vx;\n autoScrolls[layersOut].vy = vy;\n clearInterval(autoScrolls[layersOut].pid);\n\n if (vx != 0 || vy != 0) {\n scrollThisInstance = true;\n /* jshint loopfunc:true */\n\n autoScrolls[layersOut].pid = setInterval(function () {\n // emulate drag over during autoscroll (fallback), emulating native DnD behaviour\n if (isFallback && this.layer === 0) {\n Sortable.active._onTouchMove(touchEvt$1); // To move ghost if it is positioned absolutely\n\n }\n\n var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;\n var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;\n\n if (typeof scrollCustomFn === 'function') {\n if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== 'continue') {\n return;\n }\n }\n\n scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);\n }.bind({\n layer: layersOut\n }), 24);\n }\n }\n\n layersOut++;\n } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));\n\n scrolling = scrollThisInstance; // in case another function catches scrolling as false in between when it is not\n}, 30);\n\nvar drop = function drop(_ref) {\n var originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n dragEl = _ref.dragEl,\n activeSortable = _ref.activeSortable,\n dispatchSortableEvent = _ref.dispatchSortableEvent,\n hideGhostForTarget = _ref.hideGhostForTarget,\n unhideGhostForTarget = _ref.unhideGhostForTarget;\n if (!originalEvent) return;\n var toSortable = putSortable || activeSortable;\n hideGhostForTarget();\n var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;\n var target = document.elementFromPoint(touch.clientX, touch.clientY);\n unhideGhostForTarget();\n\n if (toSortable && !toSortable.el.contains(target)) {\n dispatchSortableEvent('spill');\n this.onSpill({\n dragEl: dragEl,\n putSortable: putSortable\n });\n }\n};\n\nfunction Revert() {}\n\nRevert.prototype = {\n startIndex: null,\n dragStart: function dragStart(_ref2) {\n var oldDraggableIndex = _ref2.oldDraggableIndex;\n this.startIndex = oldDraggableIndex;\n },\n onSpill: function onSpill(_ref3) {\n var dragEl = _ref3.dragEl,\n putSortable = _ref3.putSortable;\n this.sortable.captureAnimationState();\n\n if (putSortable) {\n putSortable.captureAnimationState();\n }\n\n var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);\n\n if (nextSibling) {\n this.sortable.el.insertBefore(dragEl, nextSibling);\n } else {\n this.sortable.el.appendChild(dragEl);\n }\n\n this.sortable.animateAll();\n\n if (putSortable) {\n putSortable.animateAll();\n }\n },\n drop: drop\n};\n\n_extends(Revert, {\n pluginName: 'revertOnSpill'\n});\n\nfunction Remove() {}\n\nRemove.prototype = {\n onSpill: function onSpill(_ref4) {\n var dragEl = _ref4.dragEl,\n putSortable = _ref4.putSortable;\n var parentSortable = putSortable || this.sortable;\n parentSortable.captureAnimationState();\n dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);\n parentSortable.animateAll();\n },\n drop: drop\n};\n\n_extends(Remove, {\n pluginName: 'removeOnSpill'\n});\n\nvar lastSwapEl;\n\nfunction SwapPlugin() {\n function Swap() {\n this.defaults = {\n swapClass: 'sortable-swap-highlight'\n };\n }\n\n Swap.prototype = {\n dragStart: function dragStart(_ref) {\n var dragEl = _ref.dragEl;\n lastSwapEl = dragEl;\n },\n dragOverValid: function dragOverValid(_ref2) {\n var completed = _ref2.completed,\n target = _ref2.target,\n onMove = _ref2.onMove,\n activeSortable = _ref2.activeSortable,\n changed = _ref2.changed,\n cancel = _ref2.cancel;\n if (!activeSortable.options.swap) return;\n var el = this.sortable.el,\n options = this.options;\n\n if (target && target !== el) {\n var prevSwapEl = lastSwapEl;\n\n if (onMove(target) !== false) {\n toggleClass(target, options.swapClass, true);\n lastSwapEl = target;\n } else {\n lastSwapEl = null;\n }\n\n if (prevSwapEl && prevSwapEl !== lastSwapEl) {\n toggleClass(prevSwapEl, options.swapClass, false);\n }\n }\n\n changed();\n completed(true);\n cancel();\n },\n drop: function drop(_ref3) {\n var activeSortable = _ref3.activeSortable,\n putSortable = _ref3.putSortable,\n dragEl = _ref3.dragEl;\n var toSortable = putSortable || this.sortable;\n var options = this.options;\n lastSwapEl && toggleClass(lastSwapEl, options.swapClass, false);\n\n if (lastSwapEl && (options.swap || putSortable && putSortable.options.swap)) {\n if (dragEl !== lastSwapEl) {\n toSortable.captureAnimationState();\n if (toSortable !== activeSortable) activeSortable.captureAnimationState();\n swapNodes(dragEl, lastSwapEl);\n toSortable.animateAll();\n if (toSortable !== activeSortable) activeSortable.animateAll();\n }\n }\n },\n nulling: function nulling() {\n lastSwapEl = null;\n }\n };\n return _extends(Swap, {\n pluginName: 'swap',\n eventProperties: function eventProperties() {\n return {\n swapItem: lastSwapEl\n };\n }\n });\n}\n\nfunction swapNodes(n1, n2) {\n var p1 = n1.parentNode,\n p2 = n2.parentNode,\n i1,\n i2;\n if (!p1 || !p2 || p1.isEqualNode(n2) || p2.isEqualNode(n1)) return;\n i1 = index(n1);\n i2 = index(n2);\n\n if (p1.isEqualNode(p2) && i1 < i2) {\n i2++;\n }\n\n p1.insertBefore(n2, p1.children[i1]);\n p2.insertBefore(n1, p2.children[i2]);\n}\n\nvar multiDragElements = [],\n multiDragClones = [],\n lastMultiDragSelect,\n // for selection with modifier key down (SHIFT)\nmultiDragSortable,\n initialFolding = false,\n // Initial multi-drag fold when drag started\nfolding = false,\n // Folding any other time\ndragStarted = false,\n dragEl$1,\n clonesFromRect,\n clonesHidden;\n\nfunction MultiDragPlugin() {\n function MultiDrag(sortable) {\n // Bind all private methods\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n\n if (!sortable.options.avoidImplicitDeselect) {\n if (sortable.options.supportPointer) {\n on(document, 'pointerup', this._deselectMultiDrag);\n } else {\n on(document, 'mouseup', this._deselectMultiDrag);\n on(document, 'touchend', this._deselectMultiDrag);\n }\n }\n\n on(document, 'keydown', this._checkKeyDown);\n on(document, 'keyup', this._checkKeyUp);\n this.defaults = {\n selectedClass: 'sortable-selected',\n multiDragKey: null,\n avoidImplicitDeselect: false,\n setData: function setData(dataTransfer, dragEl) {\n var data = '';\n\n if (multiDragElements.length && multiDragSortable === sortable) {\n multiDragElements.forEach(function (multiDragElement, i) {\n data += (!i ? '' : ', ') + multiDragElement.textContent;\n });\n } else {\n data = dragEl.textContent;\n }\n\n dataTransfer.setData('Text', data);\n }\n };\n }\n\n MultiDrag.prototype = {\n multiDragKeyDown: false,\n isMultiDrag: false,\n delayStartGlobal: function delayStartGlobal(_ref) {\n var dragged = _ref.dragEl;\n dragEl$1 = dragged;\n },\n delayEnded: function delayEnded() {\n this.isMultiDrag = ~multiDragElements.indexOf(dragEl$1);\n },\n setupClone: function setupClone(_ref2) {\n var sortable = _ref2.sortable,\n cancel = _ref2.cancel;\n if (!this.isMultiDrag) return;\n\n for (var i = 0; i < multiDragElements.length; i++) {\n multiDragClones.push(clone(multiDragElements[i]));\n multiDragClones[i].sortableIndex = multiDragElements[i].sortableIndex;\n multiDragClones[i].draggable = false;\n multiDragClones[i].style['will-change'] = '';\n toggleClass(multiDragClones[i], this.options.selectedClass, false);\n multiDragElements[i] === dragEl$1 && toggleClass(multiDragClones[i], this.options.chosenClass, false);\n }\n\n sortable._hideClone();\n\n cancel();\n },\n clone: function clone(_ref3) {\n var sortable = _ref3.sortable,\n rootEl = _ref3.rootEl,\n dispatchSortableEvent = _ref3.dispatchSortableEvent,\n cancel = _ref3.cancel;\n if (!this.isMultiDrag) return;\n\n if (!this.options.removeCloneOnHide) {\n if (multiDragElements.length && multiDragSortable === sortable) {\n insertMultiDragClones(true, rootEl);\n dispatchSortableEvent('clone');\n cancel();\n }\n }\n },\n showClone: function showClone(_ref4) {\n var cloneNowShown = _ref4.cloneNowShown,\n rootEl = _ref4.rootEl,\n cancel = _ref4.cancel;\n if (!this.isMultiDrag) return;\n insertMultiDragClones(false, rootEl);\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', '');\n });\n cloneNowShown();\n clonesHidden = false;\n cancel();\n },\n hideClone: function hideClone(_ref5) {\n var _this = this;\n\n var sortable = _ref5.sortable,\n cloneNowHidden = _ref5.cloneNowHidden,\n cancel = _ref5.cancel;\n if (!this.isMultiDrag) return;\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', 'none');\n\n if (_this.options.removeCloneOnHide && clone.parentNode) {\n clone.parentNode.removeChild(clone);\n }\n });\n cloneNowHidden();\n clonesHidden = true;\n cancel();\n },\n dragStartGlobal: function dragStartGlobal(_ref6) {\n var sortable = _ref6.sortable;\n\n if (!this.isMultiDrag && multiDragSortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n }\n\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.sortableIndex = index(multiDragElement);\n }); // Sort multi-drag elements\n\n multiDragElements = multiDragElements.sort(function (a, b) {\n return a.sortableIndex - b.sortableIndex;\n });\n dragStarted = true;\n },\n dragStarted: function dragStarted(_ref7) {\n var _this2 = this;\n\n var sortable = _ref7.sortable;\n if (!this.isMultiDrag) return;\n\n if (this.options.sort) {\n // Capture rects,\n // hide multi drag elements (by positioning them absolute),\n // set multi drag elements rects to dragRect,\n // show multi drag elements,\n // animate to rects,\n // unset rects & remove from DOM\n sortable.captureAnimationState();\n\n if (this.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n css(multiDragElement, 'position', 'absolute');\n });\n var dragRect = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRect);\n });\n folding = true;\n initialFolding = true;\n }\n }\n\n sortable.animateAll(function () {\n folding = false;\n initialFolding = false;\n\n if (_this2.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n } // Remove all auxiliary multidrag items from el, if sorting enabled\n\n\n if (_this2.options.sort) {\n removeMultiDragElements();\n }\n });\n },\n dragOver: function dragOver(_ref8) {\n var target = _ref8.target,\n completed = _ref8.completed,\n cancel = _ref8.cancel;\n\n if (folding && ~multiDragElements.indexOf(target)) {\n completed(false);\n cancel();\n }\n },\n revert: function revert(_ref9) {\n var fromSortable = _ref9.fromSortable,\n rootEl = _ref9.rootEl,\n sortable = _ref9.sortable,\n dragRect = _ref9.dragRect;\n\n if (multiDragElements.length > 1) {\n // Setup unfold animation\n multiDragElements.forEach(function (multiDragElement) {\n sortable.addAnimationState({\n target: multiDragElement,\n rect: folding ? getRect(multiDragElement) : dragRect\n });\n unsetRect(multiDragElement);\n multiDragElement.fromRect = dragRect;\n fromSortable.removeAnimationState(multiDragElement);\n });\n folding = false;\n insertMultiDragElements(!this.options.removeCloneOnHide, rootEl);\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref10) {\n var sortable = _ref10.sortable,\n isOwner = _ref10.isOwner,\n insertion = _ref10.insertion,\n activeSortable = _ref10.activeSortable,\n parentEl = _ref10.parentEl,\n putSortable = _ref10.putSortable;\n var options = this.options;\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n }\n\n initialFolding = false; // If leaving sort:false root, or already folding - Fold to new location\n\n if (options.animation && multiDragElements.length > 1 && (folding || !isOwner && !activeSortable.options.sort && !putSortable)) {\n // Fold: Set all multi drag elements's rects to dragEl's rect when multi-drag elements are invisible\n var dragRectAbsolute = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRectAbsolute); // Move element(s) to end of parentEl so that it does not interfere with multi-drag clones insertion if they are inserted\n // while folding, and so that we can capture them again because old sortable will no longer be fromSortable\n\n parentEl.appendChild(multiDragElement);\n });\n folding = true;\n } // Clones must be shown (and check to remove multi drags) after folding when interfering multiDragElements are moved out\n\n\n if (!isOwner) {\n // Only remove if not folding (folding will remove them anyways)\n if (!folding) {\n removeMultiDragElements();\n }\n\n if (multiDragElements.length > 1) {\n var clonesHiddenBefore = clonesHidden;\n\n activeSortable._showClone(sortable); // Unfold animation for clones if showing from hidden\n\n\n if (activeSortable.options.animation && !clonesHidden && clonesHiddenBefore) {\n multiDragClones.forEach(function (clone) {\n activeSortable.addAnimationState({\n target: clone,\n rect: clonesFromRect\n });\n clone.fromRect = clonesFromRect;\n clone.thisAnimationDuration = null;\n });\n }\n } else {\n activeSortable._showClone(sortable);\n }\n }\n }\n },\n dragOverAnimationCapture: function dragOverAnimationCapture(_ref11) {\n var dragRect = _ref11.dragRect,\n isOwner = _ref11.isOwner,\n activeSortable = _ref11.activeSortable;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n });\n\n if (activeSortable.options.animation && !isOwner && activeSortable.multiDrag.isMultiDrag) {\n clonesFromRect = _extends({}, dragRect);\n var dragMatrix = matrix(dragEl$1, true);\n clonesFromRect.top -= dragMatrix.f;\n clonesFromRect.left -= dragMatrix.e;\n }\n },\n dragOverAnimationComplete: function dragOverAnimationComplete() {\n if (folding) {\n folding = false;\n removeMultiDragElements();\n }\n },\n drop: function drop(_ref12) {\n var evt = _ref12.originalEvent,\n rootEl = _ref12.rootEl,\n parentEl = _ref12.parentEl,\n sortable = _ref12.sortable,\n dispatchSortableEvent = _ref12.dispatchSortableEvent,\n oldIndex = _ref12.oldIndex,\n putSortable = _ref12.putSortable;\n var toSortable = putSortable || this.sortable;\n if (!evt) return;\n var options = this.options,\n children = parentEl.children; // Multi-drag selection\n\n if (!dragStarted) {\n if (options.multiDragKey && !this.multiDragKeyDown) {\n this._deselectMultiDrag();\n }\n\n toggleClass(dragEl$1, options.selectedClass, !~multiDragElements.indexOf(dragEl$1));\n\n if (!~multiDragElements.indexOf(dragEl$1)) {\n multiDragElements.push(dragEl$1);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: dragEl$1,\n originalEvent: evt\n }); // Modifier activated, select from last to dragEl\n\n if (evt.shiftKey && lastMultiDragSelect && sortable.el.contains(lastMultiDragSelect)) {\n var lastIndex = index(lastMultiDragSelect),\n currentIndex = index(dragEl$1);\n\n if (~lastIndex && ~currentIndex && lastIndex !== currentIndex) {\n // Must include lastMultiDragSelect (select it), in case modified selection from no selection\n // (but previous selection existed)\n var n, i;\n\n if (currentIndex > lastIndex) {\n i = lastIndex;\n n = currentIndex;\n } else {\n i = currentIndex;\n n = lastIndex + 1;\n }\n\n for (; i < n; i++) {\n if (~multiDragElements.indexOf(children[i])) continue;\n toggleClass(children[i], options.selectedClass, true);\n multiDragElements.push(children[i]);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: children[i],\n originalEvent: evt\n });\n }\n }\n } else {\n lastMultiDragSelect = dragEl$1;\n }\n\n multiDragSortable = toSortable;\n } else {\n multiDragElements.splice(multiDragElements.indexOf(dragEl$1), 1);\n lastMultiDragSelect = null;\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'deselect',\n targetEl: dragEl$1,\n originalEvent: evt\n });\n }\n } // Multi-drag drop\n\n\n if (dragStarted && this.isMultiDrag) {\n folding = false; // Do not \"unfold\" after around dragEl if reverted\n\n if ((parentEl[expando].options.sort || parentEl !== rootEl) && multiDragElements.length > 1) {\n var dragRect = getRect(dragEl$1),\n multiDragIndex = index(dragEl$1, ':not(.' + this.options.selectedClass + ')');\n if (!initialFolding && options.animation) dragEl$1.thisAnimationDuration = null;\n toSortable.captureAnimationState();\n\n if (!initialFolding) {\n if (options.animation) {\n dragEl$1.fromRect = dragRect;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n\n if (multiDragElement !== dragEl$1) {\n var rect = folding ? getRect(multiDragElement) : dragRect;\n multiDragElement.fromRect = rect; // Prepare unfold animation\n\n toSortable.addAnimationState({\n target: multiDragElement,\n rect: rect\n });\n }\n });\n } // Multi drag elements are not necessarily removed from the DOM on drop, so to reinsert\n // properly they must all be removed\n\n\n removeMultiDragElements();\n multiDragElements.forEach(function (multiDragElement) {\n if (children[multiDragIndex]) {\n parentEl.insertBefore(multiDragElement, children[multiDragIndex]);\n } else {\n parentEl.appendChild(multiDragElement);\n }\n\n multiDragIndex++;\n }); // If initial folding is done, the elements may have changed position because they are now\n // unfolding around dragEl, even though dragEl may not have his index changed, so update event\n // must be fired here as Sortable will not.\n\n if (oldIndex === index(dragEl$1)) {\n var update = false;\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement.sortableIndex !== index(multiDragElement)) {\n update = true;\n return;\n }\n });\n\n if (update) {\n dispatchSortableEvent('update');\n }\n }\n } // Must be done after capturing individual rects (scroll bar)\n\n\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n toSortable.animateAll();\n }\n\n multiDragSortable = toSortable;\n } // Remove clones if necessary\n\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n multiDragClones.forEach(function (clone) {\n clone.parentNode && clone.parentNode.removeChild(clone);\n });\n }\n },\n nullingGlobal: function nullingGlobal() {\n this.isMultiDrag = dragStarted = false;\n multiDragClones.length = 0;\n },\n destroyGlobal: function destroyGlobal() {\n this._deselectMultiDrag();\n\n off(document, 'pointerup', this._deselectMultiDrag);\n off(document, 'mouseup', this._deselectMultiDrag);\n off(document, 'touchend', this._deselectMultiDrag);\n off(document, 'keydown', this._checkKeyDown);\n off(document, 'keyup', this._checkKeyUp);\n },\n _deselectMultiDrag: function _deselectMultiDrag(evt) {\n if (typeof dragStarted !== \"undefined\" && dragStarted) return; // Only deselect if selection is in this sortable\n\n if (multiDragSortable !== this.sortable) return; // Only deselect if target is not item in this sortable\n\n if (evt && closest(evt.target, this.options.draggable, this.sortable.el, false)) return; // Only deselect if left click\n\n if (evt && evt.button !== 0) return;\n\n while (multiDragElements.length) {\n var el = multiDragElements[0];\n toggleClass(el, this.options.selectedClass, false);\n multiDragElements.shift();\n dispatchEvent({\n sortable: this.sortable,\n rootEl: this.sortable.el,\n name: 'deselect',\n targetEl: el,\n originalEvent: evt\n });\n }\n },\n _checkKeyDown: function _checkKeyDown(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = true;\n }\n },\n _checkKeyUp: function _checkKeyUp(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = false;\n }\n }\n };\n return _extends(MultiDrag, {\n // Static methods & properties\n pluginName: 'multiDrag',\n utils: {\n /**\r\n * Selects the provided multi-drag item\r\n * @param {HTMLElement} el The element to be selected\r\n */\n select: function select(el) {\n var sortable = el.parentNode[expando];\n if (!sortable || !sortable.options.multiDrag || ~multiDragElements.indexOf(el)) return;\n\n if (multiDragSortable && multiDragSortable !== sortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n\n multiDragSortable = sortable;\n }\n\n toggleClass(el, sortable.options.selectedClass, true);\n multiDragElements.push(el);\n },\n\n /**\r\n * Deselects the provided multi-drag item\r\n * @param {HTMLElement} el The element to be deselected\r\n */\n deselect: function deselect(el) {\n var sortable = el.parentNode[expando],\n index = multiDragElements.indexOf(el);\n if (!sortable || !sortable.options.multiDrag || !~index) return;\n toggleClass(el, sortable.options.selectedClass, false);\n multiDragElements.splice(index, 1);\n }\n },\n eventProperties: function eventProperties() {\n var _this3 = this;\n\n var oldIndicies = [],\n newIndicies = [];\n multiDragElements.forEach(function (multiDragElement) {\n oldIndicies.push({\n multiDragElement: multiDragElement,\n index: multiDragElement.sortableIndex\n }); // multiDragElements will already be sorted if folding\n\n var newIndex;\n\n if (folding && multiDragElement !== dragEl$1) {\n newIndex = -1;\n } else if (folding) {\n newIndex = index(multiDragElement, ':not(.' + _this3.options.selectedClass + ')');\n } else {\n newIndex = index(multiDragElement);\n }\n\n newIndicies.push({\n multiDragElement: multiDragElement,\n index: newIndex\n });\n });\n return {\n items: _toConsumableArray(multiDragElements),\n clones: [].concat(multiDragClones),\n oldIndicies: oldIndicies,\n newIndicies: newIndicies\n };\n },\n optionListeners: {\n multiDragKey: function multiDragKey(key) {\n key = key.toLowerCase();\n\n if (key === 'ctrl') {\n key = 'Control';\n } else if (key.length > 1) {\n key = key.charAt(0).toUpperCase() + key.substr(1);\n }\n\n return key;\n }\n }\n });\n}\n\nfunction insertMultiDragElements(clonesInserted, rootEl) {\n multiDragElements.forEach(function (multiDragElement, i) {\n var target = rootEl.children[multiDragElement.sortableIndex + (clonesInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(multiDragElement, target);\n } else {\n rootEl.appendChild(multiDragElement);\n }\n });\n}\n/**\r\n * Insert multi-drag clones\r\n * @param {[Boolean]} elementsInserted Whether the multi-drag elements are inserted\r\n * @param {HTMLElement} rootEl\r\n */\n\n\nfunction insertMultiDragClones(elementsInserted, rootEl) {\n multiDragClones.forEach(function (clone, i) {\n var target = rootEl.children[clone.sortableIndex + (elementsInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(clone, target);\n } else {\n rootEl.appendChild(clone);\n }\n });\n}\n\nfunction removeMultiDragElements() {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n multiDragElement.parentNode && multiDragElement.parentNode.removeChild(multiDragElement);\n });\n}\n\nSortable.mount(new AutoScrollPlugin());\nSortable.mount(Remove, Revert);\n\nexport default Sortable;\nexport { MultiDragPlugin as MultiDrag, Sortable, SwapPlugin as Swap };\n","import SettingsActions from '../actions/SettingsActions';\nimport Maintenance from './MaintenanceManager';\nimport FipamoAdminAPI, { TASK_SYNC_SETTNIGS } from '../../libraries/FipamoAdminAPI';\nimport * as DataEvent from '../../../src/com/events/DataEvent';\nimport Mailer from '../actions/Mailer';\nimport Notifications from '../ui/Notifications';\nconst notify = new Notifications();\nexport default class SettingsIndex {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tthis.start();\n\t\tthis.admin = new FipamoAdminAPI(null);\n\t\tthis.mm = new Maintenance(null, null);\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\tlet self = this;\n\t\t//handle save button\n\t\tdocument.getElementById('save-toggle').addEventListener('click', () =>\n\t\t\tnew SettingsActions()\n\t\t\t\t.getInfo()\n\t\t\t\t.then(data => {\n\t\t\t\t\tnotify.alert('Saving Settings', null);\n\t\t\t\t\tself.admin.sync(TASK_SYNC_SETTNIGS, data).then(r => {\n\t\t\t\t\t\tif (r.type == DataEvent.SETTINGS_UPDATED) {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t\t.catch(() => {\n\t\t\t\t\t//console.log(err);\n\t\t\t\t})\n\t\t);\n\t\t//handle set up image uploads\n\t\tdocument.querySelector('[role=\"avatar\"]').addEventListener('click', () => {\n\t\t\tdocument.getElementById('avatar-upload').click();\n\t\t});\n\t\tdocument.querySelector('[role=\"background\"]').addEventListener('click', () => {\n\t\t\tdocument.getElementById('background-upload').click();\n\t\t});\n\t\tdocument.getElementById('avatar-upload').addEventListener(\n\t\t\t'change',\n\t\t\te => {\n\t\t\t\tself.handleImageUpload(e.target.id, e.target.files);\n\t\t\t},\n\t\t\tfalse\n\t\t);\n\t\tdocument.getElementById('background-upload').addEventListener(\n\t\t\t'change',\n\t\t\te => {\n\t\t\t\tself.handleImageUpload(e.target.id, e.target.files);\n\t\t\t},\n\t\t\tfalse\n\t\t);\n\t\t//handle api access toggle\n\t\tvar apiButton = document.getElementById('api-access-toggle');\n\t\tvar apiStatus = document.getElementById('api-status');\n\t\tapiButton.addEventListener('click', e => {\n\t\t\te.stopPropagation();\n\t\t\te.preventDefault();\n\t\t\tif (apiButton.getAttribute('data-enabled') == 'false') {\n\t\t\t\tapiButton.setAttribute('data-enabled', 'true');\n\t\t\t\tapiStatus.innerHTML = 'API ACCESS IS ENABLED';\n\t\t\t} else {\n\t\t\t\tapiButton.setAttribute('data-enabled', 'false');\n\t\t\t\tapiStatus.innerHTML = 'API ACCESS IS DISABLED';\n\t\t\t}\n\t\t});\n\n\t\t//handle dynamic page rendering\n\t\tvar dynamicRenderButton = document.getElementById('dynamic-render-toggle');\n\t\tvar dynamicRenderStatus = document.getElementById('dynamic-render-status');\n\t\tdynamicRenderButton.addEventListener('click', e => {\n\t\t\te.stopPropagation();\n\t\t\te.preventDefault();\n\t\t\tif (dynamicRenderButton.getAttribute('data-enabled') == 'false') {\n\t\t\t\tdynamicRenderButton.setAttribute('data-enabled', 'true');\n\t\t\t\tdynamicRenderStatus.innerHTML = 'DYNAMIC PAGE RENDERING';\n\t\t\t} else {\n\t\t\t\tdynamicRenderButton.setAttribute('data-enabled', 'false');\n\t\t\t\tdynamicRenderStatus.innerHTML = 'STATIC PAGE RENDERING';\n\t\t\t}\n\t\t});\n\n\t\tdocument\n\t\t\t.getElementById('send-mail')\n\t\t\t.addEventListener('click', e => this.handleMailer(e));\n\t\tdocument\n\t\t\t.getElementById('publish-pages')\n\t\t\t.addEventListener('click', e => this.handlePublished(e));\n\t\t//handle page render on save toggle\n\t\tdocument\n\t\t\t.getElementById('render-toggle')\n\t\t\t.addEventListener('click', e => this.toggleRender(e));\n\t\t//handle theme toggle\n\t\tlet themeBtns = document.querySelectorAll('.theme-select');\n\t\tfor (var i = 0, length = themeBtns.length; i < length; i++) {\n\t\t\tthemeBtns[i].addEventListener('click', e => this.handleThemes(e));\n\t\t}\n\t\t//handle mail options\n\t\tlet mailBtn = document.querySelectorAll('.mail-option');\n\t\tfor (i = 0, length = mailBtn.length; i < length; i++) {\n\t\t\tmailBtn[i].addEventListener('click', e => this.handleMailOptions(e));\n\t\t}\n\t\t//handle backup from settings [disabled]\n\n\t\tdocument\n\t\t\t.getElementById('create-backup')\n\t\t\t.addEventListener('click', e => this.handleBackup(e));\n\n\t\t/*\n document\n .getElementById(\"reindex-pages\")\n .addEventListener(\"click\", (e) => this.handleReindex(e));\n */\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\ttogglePrivacy(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tif (e.target.getAttribute('data-private') == 'false') {\n\t\t\te.target.setAttribute('data-private', 'true');\n\t\t\te.target.innerHTML = 'SITE IS PUBLIC';\n\t\t} else {\n\t\t\te.target.setAttribute('data-private', 'false');\n\t\t\te.target.innerHTML = 'SITE IS PRIVATE';\n\t\t}\n\t}\n\ttoggleRender(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet button = document.getElementById('render-toggle');\n\t\tif (button.getAttribute('data-render') == 'false') {\n\t\t\tbutton.setAttribute('data-render', 'true');\n\t\t\t//e.target.innerHTML = 'RENDER PAGES ON SAVE';\n\t\t} else {\n\t\t\tbutton.setAttribute('data-render', 'false');\n\t\t\t//e.target.innerHTML = \"DON'T RENDER PAGES ON SAVE\";\n\t\t}\n\t}\n\thandleMailer() {\n\t\tlet mailer = new Mailer();\n\t\tmailer.testMail();\n\t\t//mailer.sendMail();\n\t}\n\thandleThemes(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet themes = document.querySelectorAll('.theme-select');\n\t\tfor (var i = 0, length = themes.length; i < length; i++) {\n\t\t\te.target.id == themes[i].id\n\t\t\t\t? themes[i].setAttribute('data-enabled', 'true')\n\t\t\t\t: themes[i].setAttribute('data-enabled', 'false');\n\t\t}\n\t}\n\thandleMailOptions(e) {\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tlet smtp = document.getElementById('mail-smtp');\n\t\tlet mailgun = document.getElementById('mail-mg');\n\t\tlet mail = document.querySelectorAll('.mail-option');\n\t\tfor (var i = 0, length = mail.length; i < length; i++) {\n\t\t\tif (e.target.id == mail[i].id) {\n\t\t\t\tmail[i].setAttribute('data-enabled', 'true');\n\t\t\t\tif (e.target.id == 'option-smtp') {\n\t\t\t\t\tsmtp.setAttribute('data-enabled', 'true');\n\t\t\t\t\tmailgun.setAttribute('data-enabled', 'false');\n\t\t\t\t} else if (e.target.id == 'option-none') {\n\t\t\t\t\tsmtp.setAttribute('data-enabled', 'false');\n\t\t\t\t\tmailgun.setAttribute('data-enabled', 'false');\n\t\t\t\t} else {\n\t\t\t\t\tsmtp.setAttribute('data-enabled', 'false');\n\t\t\t\t\tmailgun.setAttribute('data-enabled', 'true');\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tmail[i].setAttribute('data-enabled', 'false');\n\t\t\t}\n\t\t}\n\t}\n\thandleImageUpload(type, files) {\n\t\tnotify.alert('Uploading Image... ', null);\n\t\tlet self = this;\n\t\tnotify.alert('Uploading Image', null);\n\t\tlet upload = new FormData();\n\t\tupload.enctype = 'multipart/form-data';\n\t\tupload.append('source', type);\n\t\tupload.append('upload_files[]', files[0], files[0].name);\n\n\t\tthis.mm\n\t\t\t.filesUpload(files[0].type, upload)\n\t\t\t.then(r => {\n\t\t\t\tif (type == 'avatar-upload') {\n\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\tdocument.querySelector('[role=\"avatar\"]').style.background =\n\t\t\t\t\t\t'url(' + r.filePath + ') no-repeat center center / cover';\n\t\t\t\t} else {\n\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\tdocument.querySelector('[role=\"background\"]').style.background =\n\t\t\t\t\t\t'url(' + r.filePath + ') no-repeat center center / cover';\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(() => {\n\t\t\t\t//console.log(err)\n\t\t\t});\n\t}\n\thandlePublished(e) {\n\t\tif (this.processing) return;\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tlet self = this;\n\t\tlet task = { task: 'PUBLISH_ALL' };\n\t\tthis.processing = true;\n\t\tnotify.alert('Publishing site...', null);\n\t\tthis.admin\n\t\t\t.publish(task)\n\t\t\t.then(r => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(r.message, true);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(err, false);\n\t\t\t});\n\t}\n\n\thandleBackup(e) {\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tnotify.alert('Creating backup', null);\n\t\tthis.mm\n\t\t\t.backup()\n\t\t\t.then(r => {\n\t\t\t\tnotify.alert(r.message, true);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tnotify.alert(err, false);\n\t\t\t});\n\t}\n\n\thandleReindex(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tlet task = { task: 'cleanup pages indexes' };\n\t\tthis.processing = true;\n\t\tnotify.alert('Cleaning up page indexes', null);\n\t\tthis.admin\n\t\t\t.handleReindex(task)\n\t\t\t.then(r => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(r.message, true);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(err, false);\n\t\t\t});\n\t}\n}\n","export default class SettingsActions {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tgetInfo() {\n\t\tlet handle = document.getElementById('settings-handle').value;\n\t\tlet email = document.getElementById('settings-email').value;\n\t\tlet url = document.getElementById('settings-url').value;\n\t\tlet title = document.getElementById('settings-title').value;\n\t\tlet desc = document.getElementById('settings-desc').value;\n\t\t//let privacy = document.getElementById('privacy-toggle').getAttribute('data-private');\n\t\tlet render = document.getElementById('render-toggle').getAttribute('data-render');\n\t\tlet background = document\n\t\t\t.querySelector('[role=\"background\"]')\n\t\t\t.style.backgroundImage.slice(4, -1)\n\t\t\t.replace(/\"/g, '');\n\t\tlet selected = '';\n\t\tlet selects = document.querySelectorAll('.theme-select');\n\t\tlet smtpDomain = document.getElementById('smtp-domain').value;\n\t\tlet smtpEmail = document.getElementById('smtp-email').value;\n\t\tlet smtpPass = document.getElementById('smtp-pass').value;\n\t\tlet mgDomain = document.getElementById('mg-domain').value;\n\t\tlet mgKey = document.getElementById('mg-key').value;\n\t\tlet mailActive = '';\n\t\tlet mailOptions = document.querySelectorAll('.mail-option');\n\t\tlet apiStatus = document\n\t\t\t.getElementById('api-access-toggle')\n\t\t\t.getAttribute('data-enabled');\n\t\tlet dynamicRenderStatus = document\n\t\t\t.getElementById('dynamic-render-toggle')\n\t\t\t.getAttribute('data-enabled');\n\t\tvar i, count;\n\t\tfor (i = 0, count = selects.length; i < count; i++) {\n\t\t\tif (selects[i].getAttribute('data-enabled') == 'true')\n\t\t\t\tselected = selects[i].id;\n\t\t}\n\n\t\tfor (i = 0, count = mailOptions.length; i < count; i++) {\n\t\t\tif (mailOptions[i].getAttribute('data-enabled') == 'true')\n\t\t\t\tmailActive = mailOptions[i].id;\n\t\t}\n\t\tlet settingsData = {\n\t\t\tglobal: {\n\t\t\t\tbase_url: url,\n\t\t\t\ttitle: title,\n\t\t\t\tdescriptions: desc,\n\t\t\t\tbackground: background,\n\t\t\t\tprivate: false,\n\t\t\t\trenderOnSave: render,\n\t\t\t\ttheme: selected,\n\t\t\t\texternalAPI: apiStatus,\n\t\t\t\tdynamicRender: dynamicRenderStatus\n\t\t\t},\n\t\t\tmember: { handle: handle, email: email },\n\t\t\temail: {\n\t\t\t\tactive: mailActive,\n\t\t\t\tsmtp: {\n\t\t\t\t\tdomain: smtpDomain,\n\t\t\t\t\temail: smtpEmail,\n\t\t\t\t\tpassword: smtpPass\n\t\t\t\t},\n\t\t\t\tmailgun: {\n\t\t\t\t\tdomain: mgDomain,\n\t\t\t\t\tkey: mgKey\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn new Promise(function (resolve) {\n\t\t\tresolve(settingsData);\n\t\t});\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","import FipamoAdminAPI from \"../../libraries/FipamoAdminAPI\";\nimport Notficaton from \"../ui/Notifications\";\nconst notify = new Notficaton();\nexport default class Mailer {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {}\n //--------------------------\n // methods\n //--------------------------\n sendMail() {\n let mailData = {\n content: \"This is a test email\"\n };\n let admin = new FipamoAdminAPI();\n admin\n .sendMail(mailData)\n .then((result) => {\n notify.alert(result.message, true);\n })\n .catch((err) => {\n notify.alert(err.message, false);\n });\n }\n testMail() {\n let mailData = {\n content: \"This is a test email\",\n mail_task: \"TESTING\"\n };\n let admin = new FipamoAdminAPI();\n admin\n .sendMail(mailData)\n .then((result) => {\n notify.alert(result.message, true);\n })\n .catch((err) => {\n notify.alert(err.message, false);\n });\n }\n //--------------------------\n // event handlers\n //--------------------------\n}\n","import FipamoAdminAPI, { TASK_SYNC_NAV } from '../../libraries/FipamoAdminAPI';\nimport NavActions from '../actions/NavActions';\nimport * as DataEvent from '../events/DataEvent';\nimport Notifications from '../ui/Notifications';\nimport Sortable from 'sortablejs';\nconst notify = new Notifications();\n\nexport default class NavIndex {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tthis.admin = new FipamoAdminAPI(null);\n\t\tthis.start();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\t//grabs elements and makes them sortables\n\t\tlet self = this;\n\t\tSortable.create(document.getElementById('nav-items'), {\n\t\t\tonUpdate: () => {\n\t\t\t\tnew NavActions().syncMenu().then(data => {\n\t\t\t\t\tnotify.alert('Updating Menu', null);\n\t\t\t\t\tself.admin.sync(TASK_SYNC_NAV, data).then(r => {\n\t\t\t\t\t\tif (r.type == DataEvent.MENU_UPDATED) {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\tvar nav = document.querySelectorAll('.nav-btn');\n\t\tfor (var i = 0, length = nav.length; i < length; i++) {\n\t\t\tnav[i].addEventListener('click', e => this.handleNavButton(e), false);\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleNavButton(e) {\n\t\tif (this.processing) return;\n\t\tlet id = '';\n\t\tlet self = this;\n\t\tswitch (e.target.id) {\n\t\t\tcase 'remove-item':\n\t\t\t\tid = e.target.getAttribute('data-id');\n\t\t\t\tnew NavActions().removeItem(id);\n\t\t\t\tnew NavActions().syncMenu().then(data => {\n\t\t\t\t\tdata.remove = e.target.getAttribute('data-uuid');\n\t\t\t\t\tnotify.alert('Editing Menu', null);\n\t\t\t\t\tself.processing = true;\n\t\t\t\t\tself.admin.sync(TASK_SYNC_NAV, data).then(r => {\n\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\tif (r.type == DataEvent.MENU_UPDATED) {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\tcase 'edit-item':\n\t\t\t\tself.processing = false;\n\t\t\t\twindow.location =\n\t\t\t\t\t'/dashboard/page/edit/' + e.target.getAttribute('data-id');\n\t\t\t\tbreak;\n\t\t}\n\t}\n}\n","export default class NavActions {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tsyncMenu() {\n\t\tlet navData = [];\n\t\tlet items = document.getElementById('nav-items').children;\n\t\tfor (let index = 0; index < items.length; index++) {\n\t\t\tnavData.push({\n\t\t\t\ttitle: items[index].getElementsByTagName('label')[0].innerHTML,\n\t\t\t\tid: items[index].id,\n\t\t\t\tslug: items[index].getAttribute('data-slug'),\n\t\t\t\tuuid: items[index].getAttribute('data-uuid'),\n\t\t\t\tpath: items[index].getAttribute('data-path')\n\t\t\t});\n\t\t}\n\n\t\tlet data = { menu: navData, remove: null };\n\t\treturn new Promise(function (resolve) {\n\t\t\tresolve(data);\n\t\t});\n\t}\n\n\tremoveItem(id) {\n\t\tdocument.getElementById('nav-items').removeChild(document.getElementById(id));\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","export default class Menu {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.mobile = false;\n\t\tthis.mobileMenu = document.querySelector('.mobile-menu');\n\t\tdocument\n\t\t\t.querySelector('.menu-toggle')\n\t\t\t.addEventListener('click', e => this.handleMobile(e));\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleMobile(e) {\n\t\tif (this.mobile) {\n\t\t\tthis.mobile = false;\n\t\t\tthis.mobileMenu.style.display = 'none';\n\t\t} else {\n\t\t\tthis.mobile = true;\n\t\t\tthis.mobileMenu.style.display = 'inline';\n\t\t}\n\t}\n}\n"],"names":["Base","document","addEventListener","FipamoAdminAPI","Maintenance","DataUitls","DataEvent","DashManager","Notfications","data","notify","constructor","processing","start","getElementById","querySelector","options","getElementsByClassName","index","length","e","handleOptions","handleLogin","handleSetup","handleRestore","handleReset","self","preventDefault","authForm","formDataToJSON","api","login","then","response","type","REQUEST_LAME","target","innerHTML","message","setTimeout","window","location","catch","err","stopPropagation","setUpForm","mm","create","API_INIT_LAME","form","restore","id","email","value","task","secret","alert","newPass","newPassConfirm","init","style","display","visibility","REQUEST_TYPE_POST","REQUEST_TYPE_GET","REQUEST_TYPE_PUT","REQUEST_TYPE_DELETE","CONTENT_TYPE_JSON","CONTENT_TYPE_FORM","API_STATUS","API_GET_SETTINGS","API_GET_MEMBER_INFO","API_NEW_PAGE","API_EDIT_PAGE","API_DELETE_PAGE","API_SETTINGS_SYNC","API_PUBLISH_PAGES","API_NAV_SYNC","API_REINDEX_PAGES","API_SEND_MAIL","API_LOGIN","AUTH_STATUS","TASK_SETTINGS_WRITE","TASK_PUBLISH_SITE","TASK_PAGE_CREATE","TASK_PAGE_EDIT","TASK_PAGE_DELETE","TASK_SEND_MAIL","TASK_REINDEX_PAGE","TASK_SYNC_SETTNIGS","TASK_SYNC_NAV","TASK_GET_SETTINGS","TASK_GET_MEMBER_INFO","API_ACCESS_GOOD","API_ACCESS_BAD","baseURL","progressBar","percentComplete","status","_request","token","Promise","resolve","reject","remote","key","result","sync","url","publish","pageActions","event","content","sendMail","getInfo","requestURL","eventType","requestType","contentType","requestData","request","XMLHttpRequest","upload","handleLoadProgress","open","onload","JSON","parse","error","setRequestHeader","send","stringify","percent","Math","ceil","loaded","total","width","default","API_INIT","API_RESTORE","API_GET_SECRET","API_RESET_PASS","API_CREATE_BACKUP","API_DOWNLOAD_BACKUP","API_RESTORE_BACKUP","API_UPLOAD_AVATAR","API_UPLOAD_BACKGROUND","API_IMAGE_UPLOAD","API_FILES_UPLOAD","TASK_SITE_INIT","TASK_BACKUP_RESTORE","TASK_BACKUP_CREATE","TASK_GET_SECRET","TASK_RESET_PASS","TASK_UPLOAD_FILES","MaintenanceManager","accetableFiles","method","FormData","backup","filesUpload","files","progress","append","r","DataUtils","imgLoad","responseType","Error","statusText","onerror","loadImage","src","myImage","Image","crossOrigin","imageURL","URL","createObjectURL","object","formData","forEach","hasOwnProperty","Array","isArray","push","REQUEST_GOOD","API_REQUEST_GOOD","API_REQUEST_LAME","IMG_REQUEST_GOOD","IMG_REQUEST_LAME","SETTINGS_LOADED","POST_IMAGE_ADDED","FEATURE_IMAGE_ADDED","PAGE_ERROR","PAGE_ADDED","PAGE_UPDATED","PAGE_DELETED","PAGES_RENDERED","PAGES_NOT_RENDERED","TAG_PAGES_RENDERED","TAG_PAGES_NOT_RENDERED","SETTINGS_UPDATED","SETTINGS_NOT_UPDATED","MENU_ADD_ITEM","MENU_DELETE_ITEM","MENU_UPDATED","AVATAR_UPLOADED","SITE_BACKGROUND_UPLOADED","UPLOAD_PROGRESS","API_PAGE_WRITE","API_PAGE_CREATE","API_PAGE_DELETE","API_SETTINGS_WRITE","API_BACKUP_CREATE","API_BACKUP_DOWNLOAD","API_BACKUP_RESTORE","API_IMAGES_UPLOAD","API_RENDER_PAGES","API_INIT_GOOD","SEND_MAIL","PostIndex","SettingsIndex","NaviIndex","Menu","currentDisplay","urlPieces","split","chooseDisplay","section","page","PageEditor","currentPage","choosePage","PageActions","EditorEvent","TextEditor","FileManager","PostEditor","admin","post","postID","postUUID","postLayout","fm","getAttribute","editor","offsetHeight","addListener","EDITOR_DELETE","handleEditorOptions","EDITOR_UPLOAD_POST_IMAGE","EDITOR_UPDATE","EDITOR_SAVE","handleImageUpload","optionButtons","querySelectorAll","i","handlePostOptions","currentOption","active","setAttribute","collectInfo","getFileOrder","confirm","click","enctype","name","filePath","StringUtils","PostActions","pageInfo","pageRef","txt","createElement","html","replace","uuid","layout","current_title","title","created","slug","cleanString","tags","menu","featured","published","form_token","imageList","images","fileList","string","clean","toLowerCase","decodeHTML","quote_style","optTemp","noquotes","toString","OPTS","ENT_NOQUOTES","ENT_HTML_QUOTE_SINGLE","ENT_HTML_QUOTE_DOUBLE","ENT_COMPAT","ENT_QUOTES","ENT_IGNORE","concat","EventEmitter","Prism","textEditor","scrollLimit","console","log","body","fixLimit","scrollTop","classList","add","remove","result_element","text","RegExp","editorHeight","height","highlightElement","scrollLeft","dispatchEvent","Event","setInputs","editorButtons","handleEditorOption","len","selectionStart","end","selectionEnd","insert","substring","selectedText","prompt","link","emitEvent","listeners","Map","label","callback","has","set","get","removeListener","isFunction","obj","reduce","listener","splice","args","anime","notifcation","responseText","notifyText","notifyIcons","iconGood","iconNotGood","iconWorking","color","targets","rotateX","easing","complete","opacity","duration","backgroundColor","Sortable","input","sortedFiles","storage","mediaSort","animation","onUpdate","fileSort","handleFileActions","removeMedia","removeFile","imgList","childNodes","div","media","sortFiles","file","reader","FileReader","theFile","f","removeIcon","className","appendChild","item","itemFactory","background","removeChild","video","source","audio","href","fileName","readAsDataURL","mediaCount","fileCount","parentNode","rawList","sortedList","notOnTheList","dataTransfer","dropEffect","includes","SettingsActions","Mailer","Notifications","apiButton","apiStatus","dynamicRenderButton","dynamicRenderStatus","handleMailer","handlePublished","toggleRender","themeBtns","handleThemes","mailBtn","handleMailOptions","handleBackup","togglePrivacy","button","mailer","testMail","themes","smtp","mailgun","mail","handleReindex","handle","desc","render","backgroundImage","slice","selected","selects","smtpDomain","smtpEmail","smtpPass","mgDomain","mgKey","mailActive","mailOptions","count","settingsData","global","base_url","descriptions","private","renderOnSave","theme","externalAPI","dynamicRender","member","domain","password","Notficaton","mailData","mail_task","NavActions","NavIndex","syncMenu","nav","handleNavButton","removeItem","navData","items","children","getElementsByTagName","path","mobile","mobileMenu","handleMobile"],"version":3,"file":"dash.js.map","sourceRoot":"../../../"} \ No newline at end of file diff --git a/src/com/ui/Menu.js b/src/com/ui/Menu.js index 53087be..468fe50 100644 --- a/src/com/ui/Menu.js +++ b/src/com/ui/Menu.js @@ -4,9 +4,9 @@ export default class Menu { //-------------------------- constructor() { this.mobile = false; - this.mobileMenu = document.querySelector('[role="mobile-menu"]'); + this.mobileMenu = document.querySelector('.mobile-menu'); document - .querySelector('[role="menu-toggle"]') + .querySelector('.menu-toggle') .addEventListener('click', e => this.handleMobile(e)); } //-------------------------- diff --git a/src/com/ui/Notifications.js b/src/com/ui/Notifications.js index 4e30fb6..bdc4313 100644 --- a/src/com/ui/Notifications.js +++ b/src/com/ui/Notifications.js @@ -1,13 +1,13 @@ import anime from 'animejs/lib/anime.es.js'; -const notifcation = document.querySelector('[role="notify-message"]'); +const notifcation = document.querySelector('.notify-message'); const notify = document.getElementById('notify-message'); -const responseText = document.querySelector('[role="response-text"]'); -const notifyText = document.querySelector('[role="notify-text"]'); -const notifyIcons = document.querySelector('[role="notify-icons"]'); +const responseText = document.querySelector('.response-text'); +const notifyText = document.querySelector('.notify-text'); +const notifyIcons = document.querySelector('.notify-icons'); //const notifyProgress = document.getElementById('notify-progress'); -const iconGood = document.querySelector('[role="notify-good"]'); -const iconNotGood = document.querySelector('[role="notify-notgood"]'); -const iconWorking = document.querySelector('[role="notify-working"]'); +const iconGood = document.querySelector('.notify-good'); +const iconNotGood = document.querySelector('.notify-notgood'); +const iconWorking = document.querySelector('.notify-working'); export default class Notfications { //-------------------------- @@ -41,13 +41,13 @@ export default class Notfications { } new anime({ - targets: document.querySelector('[role="top-nav"]'), + targets: document.querySelector('.top-nav'), rotateX: '180deg', easing: 'easeOutQuint' }); new anime({ - targets: document.querySelector('[role="notify"]'), + targets: document.querySelector('.notify'), rotateX: '10deg', easing: 'easeOutQuint', complete: () => { @@ -85,13 +85,13 @@ export default class Notfications { }); new anime({ - targets: document.querySelector('[role="top-nav"]'), + targets: document.querySelector('.top-nav'), rotateX: '0deg', easing: 'easeOutQuint' }); new anime({ - targets: document.querySelector('[role="notify"]'), + targets: document.querySelector('.notify'), rotateX: '180deg', easing: 'easeOutQuint' }); -- 2.25.1 From 16de29c3990736fef2216c9ae5f818c7674800c1 Mon Sep 17 00:00:00 2001 From: Ro <are0h@ubiqueros.com> Date: Fri, 28 Jul 2023 16:01:00 -0700 Subject: [PATCH 18/23] testing verified commits --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b554f92..65dc0bb 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ The Fipamo project was born from a need for a simple, easy to use no data blog platform that doesn't require much effort to set up and maintain. Fipamo uses Markdown to handle posts and renders them to flat html so you can serve them from anywhere. No complicated set ups. No long list of dependencies. Just set up and go. -Because nobody has time for all that. +Because it should be easy. ## Check the (WIP) Docs to get you started. <br> -- 2.25.1 From df8e301a0bfc1cd0ecbb23e76f800ab5f4f28220 Mon Sep 17 00:00:00 2001 From: Ro <are0h@ubiqueros.com> Date: Fri, 28 Jul 2023 16:03:40 -0700 Subject: [PATCH 19/23] Confirming Verify Commit Error I tried submitting an updated through and IDE and it does not properly verify signed commits. Using git from the command line works fine. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 65dc0bb..55dfe00 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ The Fipamo project was born from a need for a simple, easy to use no data blog platform that doesn't require much effort to set up and maintain. Fipamo uses Markdown to handle posts and renders them to flat html so you can serve them from anywhere. No complicated set ups. No long list of dependencies. Just set up and go. -Because it should be easy. +Because it's the 21 century. It should be easy. ## Check the (WIP) Docs to get you started. <br> -- 2.25.1 From bea40049fc91f86d208c8b20288c2971d23552a8 Mon Sep 17 00:00:00 2001 From: Ro <are0h@ubiqueros.com> Date: Mon, 31 Jul 2023 14:21:54 -0700 Subject: [PATCH 20/23] Removed invalid role attributes from dash index Converted role tags to class to remove the invalid role attributes used. --- brain/views/dash/partials/index.twig | 8 ++--- public/assets/css/dash/index.css | 54 ++++++++++++++-------------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/brain/views/dash/partials/index.twig b/brain/views/dash/partials/index.twig index 81073d6..b586594 100644 --- a/brain/views/dash/partials/index.twig +++ b/brain/views/dash/partials/index.twig @@ -1,10 +1,10 @@ -<section role="index-header"> - <div role="index-header-left"> +<section class="index-header"> + <div class="index-header-left"> <h1>Recent</h1> </div> - <div role="index-header-right"></div> + <div class="index-header-right"></div> </section> -<section role="index-recent-pages"> +<section class="index-recent-pages"> {% if data["entryCount"] != 0 %} {% for page in data['pages'] %} {% if page.media[0].type == 'mp4' %} diff --git a/public/assets/css/dash/index.css b/public/assets/css/dash/index.css index 7182b07..61cdad1 100644 --- a/public/assets/css/dash/index.css +++ b/public/assets/css/dash/index.css @@ -1,4 +1,4 @@ -section[role="index-header"] { +section[class="index-header"] { display: grid; grid-template-columns: 1fr 1fr; width: 100%; @@ -6,7 +6,7 @@ section[role="index-header"] { margin: 60px auto 0; } -section[role="index-recent-pages"] a { +section[class="index-recent-pages"] a { width: 100%; height: 100%; display: flex; @@ -17,7 +17,7 @@ section[role="index-recent-pages"] a { position: relative; } -section[role="index-recent-pages"] a video { +section[class="index-recent-pages"] a video { width: 100%; position: absolute; object-fit: cover; @@ -25,32 +25,32 @@ section[role="index-recent-pages"] a video { border-radius: 5px; } -section[role="index-recent-pages"] a:nth-child(1) { +section[class="index-recent-pages"] a:nth-child(1) { grid-column: 1/4; grid-row: 1/3; } -section[role="index-recent-pages"] a:nth-child(2) { +section[class="index-recent-pages"] a:nth-child(2) { grid-row: 3/6; } -section[role="index-recent-pages"] a:nth-child(3) { +section[class="index-recent-pages"] a:nth-child(3) { grid-column: 2/4; grid-row: 3/5; } -section[role="index-header"] div[role="index-header-right"] { +section[class="index-header"] div[class="index-header-right"] { display: flex; justify-content: right; align-items: center; } -section[role="index-header"] div[role="index-header-right"] a { +section[class="index-header"] div[class="index-header-right"] a { border-bottom: none; margin-left: 5px; } -section[role="index-recent-pages"] { +section[class="index-recent-pages"] { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-auto-rows: minmax(200px, auto); @@ -60,31 +60,31 @@ section[role="index-recent-pages"] { margin: 10px auto; } -section[role="index-recent-pages"] a button { +section[class="index-recent-pages"] a button { padding: 1px 5px; } -section[role="index-recent-pages"] button i { +section[class="index-recent-pages"] button i { font-size: 1.8em; } -section[role="index-recent-pages"] button[data-active="true"] { +section[class="index-recent-pages"] button[data-active="true"] { background: var(--primary); } -section[role="index-recent-pages"] button[data-active="true"] i { +section[class="index-recent-pages"] button[data-active="true"] i { color: var(--tertiary); } -section[role="index-recent-pages"] button[data-active="false"] { +section[class="index-recent-pages"] button[data-active="false"] { background: var(--secondary); } -section[role="index-recent-pages"] button[data-active="false"] i { +section[class="index-recent-pages"] button[data-active="false"] i { fill: var(--primary); } -section[role="index-recent-pages"] aside { +section[class="index-recent-pages"] aside { font-size: 1.1em; color: var(--white); text-shadow: 2px 2px 2px var(--black); @@ -92,57 +92,57 @@ section[role="index-recent-pages"] aside { z-index: 10; } -section[role="index-recent-pages"] hr { +section[class="index-recent-pages"] hr { color: var(--white); border: 0.1px solid; margin: 7px 0; } @media only screen and (max-width: 900px) { - section[role="index-header"], - section[role="index-recent-pages"] { + section[class="index-header"], + section[class="index-recent-pages"] { width: 97%; } } @media only screen and (max-width: 520px) { - section[role="index-recent-pages"] { + section[class="index-recent-pages"] { grid-template-columns: 1fr 1fr; } - section[role="index-recent-pages"] a:nth-child(1) { + section[class="index-recent-pages"] a:nth-child(1) { grid-column: 1/3; grid-row: 1/2; } - section[role="index-recent-pages"] a:nth-child(2) { + section[class="index-recent-pages"] a:nth-child(2) { grid-row: 2/3; grid-column: 1/2; } - section[role="index-recent-pages"] a:nth-child(3) { + section[class="index-recent-pages"] a:nth-child(3) { grid-column: 2/3; grid-row: 2/3; } } @media only screen and (max-width: 350px) { - section[role="index-recent-pages"] a:nth-child(2) { + section[class="index-recent-pages"] a:nth-child(2) { grid-column: 1/3; grid-row: 2/3; } - section[role="index-recent-pages"] a:nth-child(3) { + section[class="index-recent-pages"] a:nth-child(3) { grid-column: 1/3; grid-row: 3/4; } - section[role="index-recent-pages"] a:nth-child(4) { + section[class="index-recent-pages"] a:nth-child(4) { grid-column: 1/3; grid-row: 4/5; } - section[role="index-recent-pages"] a:nth-child(5) { + section[class="index-recent-pages"] a:nth-child(5) { grid-column: 1/3; grid-row: 5/6; } -- 2.25.1 From 599fca18f1d8aeda2ca9337bc5caebfac2d1aebb Mon Sep 17 00:00:00 2001 From: Ro <are0h@ubiqueros.com> Date: Tue, 1 Aug 2023 15:51:33 -0700 Subject: [PATCH 21/23] Removed invalid role attributes from Settings page Cleaned up the settings page by removing the improper usage of the role tag and replaced it with class to maintain current design integrity. Also updated the script files that was referencing the old role tags --- brain/views/dash/settings.twig | 18 ++--- public/assets/css/dash/settings.css | 114 +++++++++++++-------------- public/assets/scripts/dash.js | 4 +- public/assets/scripts/dash.js.map | 2 +- src/com/controllers/SettingsIndex.js | 4 +- 5 files changed, 71 insertions(+), 71 deletions(-) diff --git a/brain/views/dash/settings.twig b/brain/views/dash/settings.twig index b7d7ec0..6f61e1d 100644 --- a/brain/views/dash/settings.twig +++ b/brain/views/dash/settings.twig @@ -9,14 +9,14 @@ {% endblock %} {% block mainContent %} - <article role="settings"> - <section role="member-settings"> - <div role="member-avatar"> - <div role="avatar" style="background: url({{ member['avatar'] }} ) no-repeat center center / cover"></div> + <article class="settings"> + <section class="member-settings"> + <div class="member-avatar"> + <div class="avatar" style="background: url({{ member['avatar'] }} ) no-repeat center center / cover"></div> <input id="avatar-upload" type="file" name="avatar-upload"/> </div> - <div role="site-background"> - <div role="background" style="background: url({{ background }} ) no-repeat center center / cover"></div> + <div class="site-background"> + <div class="background" style="background: url({{ background }} ) no-repeat center center / cover"></div> <input id="background-upload" type="file" name="backgrond-upload"/> </div> <div> @@ -39,7 +39,7 @@ <span>span No back ups. Frowny face.</span> {% endif %} </div> - <div role="features"> + <div class="features"> {% if apiStatus is defined and apiStatus == "true" %} <button id="api-access-toggle" title="allow external api" data-enabled="true"> <i class="ti ti-phone-incoming"></i> @@ -67,7 +67,7 @@ {% endif %} </div> - <div role="theme"> + <div class="theme"> <label>Themes</label><br/> {% for theme in themes %} {% if theme.name == currentTheme %} @@ -84,7 +84,7 @@ {% endfor %} </div> - <div role="mail"> + <div class="mail"> <label>Email</label><br/> {% if mailOption == "option-none" or mailOption == "" %} <a href="#" class="mail-option" id="option-none" data-enabled="true">NONE</a> diff --git a/public/assets/css/dash/settings.css b/public/assets/css/dash/settings.css index 49e425f..b4c3fbb 100644 --- a/public/assets/css/dash/settings.css +++ b/public/assets/css/dash/settings.css @@ -1,22 +1,22 @@ -article[role="settings"] { +article[class="settings"] { margin: 100px auto; width: 100%; max-width: 900px; transition: all 0.8s linear; } -article[role="settings"] h1 { +article[class="settings"] h1 { color: var(--white); } -article[role="settings"] label { +article[class="settings"] label { color: var(--secondary); margin-bottom: 10px; display: inline-block; font-weight: 400; } -section[role="member-settings"] { +section[class="member-settings"] { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; grid-auto-columns: auto; @@ -26,100 +26,100 @@ section[role="member-settings"] { margin: 10px auto; } -section[role="member-settings"] > div:nth-child(1) { +section[class="member-settings"] > div:nth-child(1) { grid-column: 1/2; grid-row: 1/3; } -section[role="member-settings"] > div:nth-child(2) { +section[class="member-settings"] > div:nth-child(2) { grid-column: 2/4; grid-row: 1/3; } -section[role="member-settings"] > div:nth-child(3) { +section[class="member-settings"] > div:nth-child(3) { grid-row: 1/3; } -section[role="member-settings"] > div:nth-child(4) { +section[class="member-settings"] > div:nth-child(4) { color: var(--white); } -section[role="member-settings"] > div:nth-child(4) a { +section[class="member-settings"] > div:nth-child(4) a { font-weight: bold; text-decoration: underline; color: var(--tertiary); } -section[role="member-settings"] > div:nth-child(5) { +section[class="member-settings"] > div:nth-child(5) { grid-column: 2/4; } -section[role="member-settings"] > div:nth-child(6) { +section[class="member-settings"] > div:nth-child(6) { grid-column: 1/3; } -section[role="member-settings"] > div:nth-child(7) { +section[class="member-settings"] > div:nth-child(7) { grid-column: 3/5; min-height: 325px; } -section[role="member-settings"] > div:nth-child(8) { +section[class="member-settings"] > div:nth-child(8) { grid-column: 1/4; color: var(--white); word-wrap: break-word; } -section[role="member-settings"] > div[role="member-avatar"] div, -section[role="member-settings"] > div[role="site-background"] div { +section[class="member-settings"] > div[class="member-avatar"] div, +section[class="member-settings"] > div[class="site-background"] div { height: 100%; border-radius: 3px; } -section[role="member-settings"] div input[type="file"] { +section[class="member-settings"] div input[type="file"] { display: none; visibility: hidden; } -section[role="member-settings"] div input[type="text"] { +section[class="member-settings"] div input[type="text"] { width: 98.4%; height: 40px; margin-bottom: 10px; } -section[role="member-settings"] div textarea { +section[class="member-settings"] div textarea { width: 98.4%; height: 63%; } -article[role="settings"] button { +article[class="settings"] button { width: 100%; text-align: left; height: 50px; margin-bottom: 5px; } -article[role="settings"] button > span { +article[class="settings"] button > span { font-size: 0.8em; display: inline; top: -10px; position: relative; } -section[role="member-settings"] - > div[role="features"] +section[class="member-settings"] + > div[class="features"] button[data-enabled="true"] { color: var(--white); } -section[role="member-settings"] - > div[role="features"] +section[class="member-settings"] + > div[class="features"] button[data-enabled="false"] { color: var(--primary); background: var(--secondary); } -section[role="member-settings"] - > div[role="theme"] +section[class="member-settings"] + > div[class="theme"] button[data-enabled="true"] { color: var(--white); background: var(--highlight); @@ -128,8 +128,8 @@ section[role="member-settings"] padding: 3px; } -section[role="member-settings"] - > div[role="theme"] +section[class="member-settings"] + > div[class="theme"] button[data-enabled="false"] { color: var(--primary); background: var(--secondary); @@ -138,7 +138,7 @@ section[role="member-settings"] padding: 3px; } -section[role="member-settings"] > div[role="mail"] a { +section[class="member-settings"] > div[class="mail"] a { margin-right: 3px; color: var(--secondary); display: inline-block; @@ -147,129 +147,129 @@ section[role="member-settings"] > div[role="mail"] a { border-top: var(--primary) 1px solid; } -section[role="member-settings"] > div[role="mail"] a[data-enabled="true"] { +section[class="member-settings"] > div[class="mail"] a[data-enabled="true"] { color: var(--tertiary); font-weight: bold; border-top: var(--highlight) 1px solid; } -section[role="member-settings"] > div[role="mail"] div[data-enabled="false"] { +section[class="member-settings"] > div[class="mail"] div[data-enabled="false"] { visibility: hidden; display: none; } -section[role="member-settings"] > div[role="mail"] input { +section[class="member-settings"] > div[class="mail"] input { width: 98.4%; height: 40px; padding-left: 5px; margin-bottom: 10px; } -section[role="data-settings"] { +section[class="data-settings"] { color: var(--white); } @media only screen and (max-width: 900px) { - main > article[role="settings"] { + main > article[class="settings"] { width: 97%; } } @media only screen and (max-width: 650px) { - section[role="member-settings"] div input[type="text"] { + section[class="member-settings"] div input[type="text"] { width: 99.3%; height: 40px; margin-bottom: 10px; } - section[role="member-settings"] { + section[class="member-settings"] { grid-template-columns: 1fr 1fr; } - section[role="member-settings"] > div[role="mail"] input { + section[class="member-settings"] > div[class="mail"] input { width: 97.7%; height: 40px; padding-left: 5px; margin-bottom: 10px; } - section[role="member-settings"] div textarea { + section[class="member-settings"] div textarea { height: 80px; width: 99.3%; } - section[role="member-settings"] > div:nth-child(1) { + section[class="member-settings"] > div:nth-child(1) { grid-column: 1/2; grid-row: 1/3; height: 200px; } - section[role="member-settings"] > div:nth-child(2) { + section[class="member-settings"] > div:nth-child(2) { grid-column: 2/3; grid-row: 1/3; } - section[role="member-settings"] > div:nth-child(3) { + section[class="member-settings"] > div:nth-child(3) { grid-column: 1/3; grid-row: 3/5; } - section[role="member-settings"] > div:nth-child(4) { + section[class="member-settings"] > div:nth-child(4) { grid-column: 1/2; } - section[role="member-settings"] > div:nth-child(5) { + section[class="member-settings"] > div:nth-child(5) { grid-column: 2/3; } - section[role="member-settings"] > div:nth-child(6) { + section[class="member-settings"] > div:nth-child(6) { grid-column: 1/2; } - section[role="member-settings"] > div:nth-child(7) { + section[class="member-settings"] > div:nth-child(7) { grid-column: 2/3; min-height: 325px; } - section[role="member-settings"] > div:nth-child(8) { + section[class="member-settings"] > div:nth-child(8) { grid-column: 1/3; } } @media only screen and (max-width: 530px) { - section[role="member-settings"] > div[role="mail"] input { + section[class="member-settings"] > div[class="mail"] input { width: 98.5%; } - section[role="member-settings"] { + section[class="member-settings"] { grid-template-columns: 100%; } - section[role="member-settings"] div textarea { + section[class="member-settings"] div textarea { height: 80px; } - section[role="member-settings"] > div:nth-child(1) { + section[class="member-settings"] > div:nth-child(1) { grid-row: 1/3; height: 200px; } - section[role="member-settings"] > div:nth-child(2) { + section[class="member-settings"] > div:nth-child(2) { grid-row: 3/5; grid-column: 1; height: 200px; } - section[role="member-settings"] > div:nth-child(3) { + section[class="member-settings"] > div:nth-child(3) { grid-column: 1; grid-row: 5/7; } - section[role="member-settings"] > div:nth-child(4), - section[role="member-settings"] > div:nth-child(5), - section[role="member-settings"] > div:nth-child(6), - section[role="member-settings"] > div:nth-child(7), - section[role="member-settings"] > div:nth-child(8) { + section[class="member-settings"] > div:nth-child(4), + section[class="member-settings"] > div:nth-child(5), + section[class="member-settings"] > div:nth-child(6), + section[class="member-settings"] > div:nth-child(7), + section[class="member-settings"] > div:nth-child(8) { grid-column: 1; } } diff --git a/public/assets/scripts/dash.js b/public/assets/scripts/dash.js index 2ba3b07..34b3524 100644 --- a/public/assets/scripts/dash.js +++ b/public/assets/scripts/dash.js @@ -6920,10 +6920,10 @@ class $b33d1a942dce8554$export$2e2bcd8739ae039 { //console.log(err); })); //handle set up image uploads - document.querySelector('[role="avatar"]').addEventListener("click", ()=>{ + document.querySelector(".avatar").addEventListener("click", ()=>{ document.getElementById("avatar-upload").click(); }); - document.querySelector('[role="background"]').addEventListener("click", ()=>{ + document.querySelector(".background").addEventListener("click", ()=>{ document.getElementById("background-upload").click(); }); document.getElementById("avatar-upload").addEventListener("change", (e)=>{ diff --git a/public/assets/scripts/dash.js.map b/public/assets/scripts/dash.js.map index 96bc462..d625f32 100644 --- a/public/assets/scripts/dash.js.map +++ b/public/assets/scripts/dash.js.map @@ -1 +1 @@ -{"mappings":";;;;;;;;;;;;;AEAA,uBAAA;AACO,MAAM+D,4CAAoB;AAC1B,MAAMC,4CAAmB;AACzB,MAAMC,4CAAmB;AACzB,MAAMC,4CAAsB;AAE5B,MAAMC,4CAAoB;AAC1B,MAAMC,4CAAoB;AAE1B,MAAMC,4CAAa;AACnB,MAAMC,4CAAmB;AACzB,MAAMC,4CAAsB;AAC5B,MAAMC,4CAAe;AACrB,MAAMC,4CAAgB;AACtB,MAAMC,4CAAkB;AACxB,MAAMC,4CAAoB;AAC1B,MAA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AKC,KAAK,CAACE,UAAU,GAAG;YAExBZ,QAAQU,KAAK,CAACC,OAAO,GAAG;YACxBX,QAAQU,KAAK,CAACE,UAAU,GAAG;QAC5B,CAAA;IACD;AACD;;ADlNA;AAEA7D,SAASC,gBAAgB,CACxB,oBACA,WAAY;IACX,IAAIF,CAAAA,GAAAA,wCAAAA;AACL,GACA,KAAK","sources":["src/com/Start.js","src/com/Base.js","src/libraries/FipamoAdminAPI.js","src/com/controllers/MaintenanceManager.js","src/com/utils/DataUtils.js","src/com/events/DataEvent.js","src/com/controllers/DashManager.js","src/com/controllers/PostIndex.js","src/com/controllers/PageEditor.js","src/com/actions/PageActions.js","src/com/utils/StringUtils.js","src/com/events/EditorEvent.js","src/com/ui/TextEditor.js","src/com/events/EventEmitter.js","node_modules/prismjs/components/prism-core.js","node_modules/prismjs/components/prism-markup.js","node_modules/prismjs/components/prism-markdown.js","src/com/ui/Notifications.js","node_modules/animejs/lib/anime.es.js","src/com/ui/FileManager.js","node_modules/sortablejs/modular/sortable.esm.js","src/com/controllers/SettingsIndex.js","src/com/actions/SettingsActions.js","src/com/actions/Mailer.js","src/com/controllers/NavIndex.js","src/com/actions/NavActions.js","src/com/ui/Menu.js"],"sourcesContent":["import Base from './Base';\n\ndocument.addEventListener(\n\t'DOMContentLoaded',\n\tfunction () {\n\t\tnew Base();\n\t},\n\tfalse\n);\n","import FipamoAdminAPI from '../libraries/FipamoAdminAPI';\nimport Maintenance from './controllers/MaintenanceManager';\nimport DataUitls from './utils/DataUtils';\nimport * as DataEvent from './events/DataEvent';\nimport DashManager from './controllers/DashManager';\nimport Notfications from './ui/Notifications';\nconst data = new DataUitls();\nconst notify = new Notfications();\n\nexport default class Base {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tthis.start();\n\t}\n\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\n\t//TODO: Move init functions and set up to their own class\n\tstart() {\n\t\tif (\n\t\t\tdocument.getElementById('login') ||\n\t\t\tdocument.querySelector('[role=\"site-restore\"]')\n\t\t) {\n\t\t\tvar options = document.getElementsByClassName('init-option');\n\t\t\tfor (let index = 0; index < options.length; index++) {\n\t\t\t\toptions[index].addEventListener('click', e => this.handleOptions(e));\n\t\t\t}\n\t\t\tif (document.getElementById('login')) {\n\t\t\t\tdocument\n\t\t\t\t\t.getElementById('login-btn')\n\t\t\t\t\t.addEventListener('click', e => this.handleLogin(e));\n\t\t\t} else {\n\t\t\t\tdocument\n\t\t\t\t\t.getElementById('init-blog')\n\t\t\t\t\t.addEventListener('click', e => this.handleSetup(e));\n\t\t\t\tdocument\n\t\t\t\t\t.getElementById('blog-restore')\n\t\t\t\t\t.addEventListener('click', e => this.handleRestore(e));\n\t\t\t}\n\t\t} else if (document.getElementById('dash-reset')) {\n\t\t\tdocument\n\t\t\t\t.getElementById('get-secret-btn')\n\t\t\t\t.addEventListener('click', e => this.handleReset(e));\n\n\t\t\tdocument\n\t\t\t\t.getElementById('reset-btn')\n\t\t\t\t.addEventListener('click', e => this.handleReset(e));\n\t\t} else {\n\t\t\tnew DashManager();\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleLogin(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.preventDefault();\n\t\tlet authForm = data.formDataToJSON(document.getElementById('login'));\n\t\t//notify.alert('Looking, hold up', null);\n\t\tlet api = new FipamoAdminAPI();\n\t\tthis.processing = true;\n\t\tapi.login(authForm)\n\t\t\t.then(response => {\n\t\t\t\tself.processing = false;\n\t\t\t\tif (response.type === DataEvent.REQUEST_LAME) {\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t} else {\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t}, 500);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t});\n\t}\n\n\thandleSetup(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet setUpForm = data.formDataToJSON(document.getElementById('init-form'));\n\t\tlet mm = new Maintenance();\n\t\tthis.processing = true;\n\t\tmm.create(setUpForm)\n\t\t\t.then(response => {\n\t\t\t\tif (response.type === DataEvent.API_INIT_LAME) {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t} else {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t}, 700);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\t//notify.alert(err, false);\n\t\t\t});\n\t}\n\n\thandleRestore(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet mm = new Maintenance();\n\t\tvar form = document.getElementById('init-restore');\n\t\tthis.processing = true;\n\t\tmm.restore(form)\n\t\t\t.then(response => {\n\t\t\t\tif (response.type === DataEvent.REQUEST_LAME) {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t} else {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t}, 1500);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\te.target.innerHTML = err;\n\t\t\t});\n\t}\n\n\thandleReset(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet self = this;\n\t\tlet mm = new Maintenance();\n\t\tif (e.target.id == 'get-secret-btn') {\n\t\t\tlet data = {\n\t\t\t\temail: document.getElementById('email').value,\n\t\t\t\ttask: 'retrieveSecret'\n\t\t\t};\n\t\t\tthis.processing = true;\n\t\t\tmm.secret(data)\n\t\t\t\t.then(response => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tif (response.secret) {\n\t\t\t\t\t\tdocument.getElementById('secret').value = response.secret;\n\t\t\t\t\t\tnotify.alert(response.message, true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (response.type == 'mailSent') {\n\t\t\t\t\t\t\tnotify.alert(response.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(response.message, false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t});\n\t\t} else {\n\t\t\tlet data = {\n\t\t\t\tnewPass: document.getElementById('new_password').value,\n\t\t\t\tnewPassConfirm: document.getElementById('new_password2').value,\n\t\t\t\tsecret: document.getElementById('secret').value\n\t\t\t};\n\t\t\tmm.newPass(data)\n\t\t\t\t.then(response => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tif (response.type == 'passNotCreated') {\n\t\t\t\t\t\tnotify.alert(response.message, false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnotify.alert(response.message, true);\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t\t}, 1000);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t});\n\t\t}\n\t}\n\thandleOptions(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet init = document.querySelector('[role=\"restore-fresh\"]');\n\t\tlet restore = document.querySelector('[role=\"restore-backup\"]');\n\t\tif (e.target.id === 'init-switch-restore') {\n\t\t\tinit.style.display = 'none';\n\t\t\tinit.style.visibility = 'hidden';\n\n\t\t\trestore.style.display = 'grid';\n\t\t\trestore.style.visibility = 'visible';\n\t\t} else {\n\t\t\tinit.style.display = 'grid';\n\t\t\tinit.style.visibility = 'visible';\n\n\t\t\trestore.style.display = 'none';\n\t\t\trestore.style.visibility = 'hidden';\n\t\t}\n\t}\n}\n","//** REQUEST TYPES **//\nexport const REQUEST_TYPE_POST = 'POST';\nexport const REQUEST_TYPE_GET = 'GET';\nexport const REQUEST_TYPE_PUT = 'PUT';\nexport const REQUEST_TYPE_DELETE = 'DELETE';\n//** POST CONTENT TYPES **//\nexport const CONTENT_TYPE_JSON = 'json';\nexport const CONTENT_TYPE_FORM = 'x-www-form-urlencoded';\n//** API URLS **//\nexport const API_STATUS = '/api/v1/status';\nexport const API_GET_SETTINGS = '/api/v1/settings/site';\nexport const API_GET_MEMBER_INFO = '/api/v1/settings/member';\nexport const API_NEW_PAGE = '/api/v1/page/create';\nexport const API_EDIT_PAGE = '/api/v1/page/write';\nexport const API_DELETE_PAGE = '/api/v1/page/delete';\nexport const API_SETTINGS_SYNC = '/api/v1/settings/sync';\nexport const API_PUBLISH_PAGES = '/api/v1/settings/publish';\nexport const API_NAV_SYNC = '/api/v1/settings/nav-sync';\nexport const API_REINDEX_PAGES = '/api/v1/settings/reindex';\nexport const API_SEND_MAIL = '/api/v1/mailer';\nexport const API_LOGIN = '/api/v1/login';\n//** API TASKS **//\nexport const AUTH_STATUS = 'getAuthStatus';\nexport const TASK_SETTINGS_WRITE = 'writeSettings';\nexport const TASK_PUBLISH_SITE = 'publishSite';\nexport const TASK_PAGE_CREATE = 'createNewPage';\nexport const TASK_PAGE_EDIT = 'editPage';\nexport const TASK_PAGE_DELETE = 'deletePage';\nexport const TASK_SEND_MAIL = 'sendMail';\nexport const TASK_REINDEX_PAGE = 'reIndexPages';\nexport const TASK_SYNC_SETTNIGS = 'syncSite';\nexport const TASK_SYNC_NAV = 'syncNav';\nexport const TASK_GET_SETTINGS = 'getSiteSettings';\nexport const TASK_GET_MEMBER_INFO = 'getMemberInfo';\n//** API STATUS **//\nexport const API_ACCESS_GOOD = 'apiUseAuthorized';\nexport const API_ACCESS_BAD = 'apiUseNotAuthorized';\n\n/**\n * A can of methods used to edit install settings, navigation pages and content pages\n */\n\nclass FipamoAdminAPI {\n\t/**\n\t * @constructor\n\t * @param {string} baseURL - url of site; uses local when empty\n\t * @param {object} progressBar - element to be used to display upload progress\n\t */\n\tconstructor(baseURL = null, progressBar = null) {\n\t\tthis.percentComplete = 0; //for later\n\t\tthis.baseURL = null;\n\t\tthis.progressBar = progressBar;\n\t\tthis.status = false;\n\t\tif (baseURL) this.baseURL = baseURL;\n\t\t//asks server if a session is active\n\t\tthis._request(this.baseURL ? this.baseURL + API_STATUS : API_STATUS).then(\n\t\t\tresponse => {\n\t\t\t\tif (response.type === API_ACCESS_GOOD) {\n\t\t\t\t\tthis.token = response.token;\n\t\t\t\t} else {\n\t\t\t\t\t//don't set token\n\t\t\t\t\t//console.log(\"NO TOKEN\");\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t}\n\t/**\n * Promise method for authenticating and starting a session\\\n * **POST**`/api/v1/login`\n * @param {Object[]} data - json object that contains data for set up\n * @param {string} data[].handle - handle for site user\n * @param {string} data[].password - password for site user\n * @example\n * api.login(data).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of login request\n ```\n {\n \"message\":\"Example Message of Affirmation or what you're missing!\",\n \"type\":\"exampleType\",\n }\n ```\n */\n\tlogin(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.baseURL ? (data.remote = true) : (data.remote = false);\n\t\t\tthis.key ? (data.key = this.key) : (data.key = null);\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + API_LOGIN : API_LOGIN,\n\t\t\t\tAUTH_STATUS,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n * Method for saving site and navigation settings\\\n * **POST**`/api/v1/settings/:task`\n * @param {string} task - settings being synced `config | navigation`\n * @param {object[]} data - json object that contains settings data for [site] or [nav]\n * @param {string} data[].global.base_url - base url for site [site]\n * @param {string} data[].global.title - site title [site]\n * @param {string} data[].global.descriptions - brief site summary [site]\n * @param {string} data[].global.background - url for site feature image for header [site]\n * @param {boolean} data[].global.private - privacy state for site [disabled] [site]\n * @param {boolean} data[].global.renderOnSave - property for publishing site when page saved [disabled] [site]\n * @param {string} data[].global.theme - current theme for site [site]\n * @param {boolean} data[].global.externalAPI - toggle for external API access [site]\n * @param {string} data[].member.handle - current member handle [site]\n * @param {string} data[].member.email - current member email [site]\n * @param {string} data[].email.active - current email protocol being used [site]\n * @param {string} data[].email.smtp.domain - url of smtp service being [site]\n * @param {string} data[].email.smtp.email - email account of smtp service [site]\n * @param {string} data[].email.smtp.password - password for email of smtp service [site]\n * @param {string} data[].email.mailgun.domain - mailgun domain url [site]\n * @param {string} data[].email.mailgun.key - mailgun key [site]\n *\n * @param {string} data[].item.title - page title [nav]\n * @param {string} data[].item.slug - url safe title [nav]\n * @param {string} data[].item.uuid - unique identifier [nav]\n * @param {string} data[].item.path - directory path to associated markdown file [nav]\n * @example\n * api.sync(TASK, data).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of sync request\n ```\n *\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\",\n }\n ```\n */\n\tsync(task, data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet url = '';\n\t\t\tswitch (task) {\n\t\t\t\tcase 'syncSite':\n\t\t\t\t\turl = API_SETTINGS_SYNC;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'syncNav':\n\t\t\t\t\turl = API_NAV_SYNC;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + url : url,\n\t\t\t\tTASK_SETTINGS_WRITE,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * Method for retrieving user authorizing user login\n * @param {object[]} data - json object that contains task\n * @param {string} data[].task - publishing task\n * @example\n * api.publish(TASK).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of publis request\n * ```\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\",\n }\n * ```\n */\n\tpublish(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\t//API_PUBLISH_PAGES,\n\t\t\t\tthis.baseURL ? this.baseURL + API_PUBLISH_PAGES : API_PUBLISH_PAGES,\n\t\t\t\tTASK_PUBLISH_SITE,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * Method for handling page creating and editing\\\n * **POST**`/api/v1/page/:task`\n * @param {string} task - current page action\n * @param {object[]} form - form object that contains info for current page being edited/created\n * @param {string} form[].id - sequence id for page, leave empty for new page\n * @param {string} form[].uuid - unique identifier for page, leave empty for new page\n * @param {string} form[].layout - current page layout\n * @param {string} form[].current_title - saved url save title for persistence when changing title, leave empty for new page\n * @param {string} form[].content - markdown body of page\n * @param {string} form[].title - current title of page\n * @param {string} form[].created - date page was created, leave empty for new page\n * @param {string} form[].slug - url safe string of page title\n * @param {string} form[].tags - comma separated list of tags\n * @param {boolean} form[].menu - property that indicates page is included in site menu\n * @param {boolean} form[].featured - property that indicates page is featured\n * @param {boolean} form[].published - property that indicates page is public\n * @param {string} form[].form_token - hidden property to authenticate form submission\n * @param {input} form[].feature_image - main image for page\n * @example\n * api.pageActions(TASK, data).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of page edit request\n ```\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\",\n }\n ```\n */\n\tpageActions(task, data) {\n\t\tlet url, event, content;\n\t\tswitch (task) {\n\t\t\tcase TASK_PAGE_CREATE:\n\t\t\t\turl = API_NEW_PAGE;\n\t\t\t\tevent = TASK_PAGE_CREATE;\n\t\t\t\tcontent = CONTENT_TYPE_JSON;\n\t\t\t\tbreak;\n\t\t\tcase TASK_PAGE_EDIT:\n\t\t\t\turl = API_EDIT_PAGE;\n\t\t\t\tevent = TASK_PAGE_EDIT;\n\t\t\t\tcontent = CONTENT_TYPE_JSON;\n\t\t\t\tbreak;\n\n\t\t\tcase TASK_PAGE_DELETE:\n\t\t\t\turl = API_DELETE_PAGE;\n\t\t\t\tevent = TASK_PAGE_DELETE;\n\t\t\t\tcontent = CONTENT_TYPE_JSON;\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif (this.baseURL) {\n\t\t\t//data.key = this.key;\n\t\t\tdata.remote = true;\n\t\t} else {\n\t\t\tdata.remote = false;\n\t\t}\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + url : url,\n\t\t\t\tevent,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tcontent,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * Method for sending mail (if completed in settings)\\\n * **POST**`/api/v1/mailer`\n * @param {object[]} message - json object that contains items to be included in main site navigation\n * @param {string} message[].content - message to send\n * @example\n * api.sendMail(message).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of page edit request\n ```\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\"\n }\n ```\n */\n\tsendMail(message) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + API_SEND_MAIL : API_SEND_MAIL,\n\t\t\t\tTASK_SEND_MAIL,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tmessage\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * *Promise method for retrieving site and member info*\\\n * **GET** `/api/v1/settings/:type`\n * @param {string} type - type of info requested ['site'|'member'];\n * @example\n * api.getInfo(\"type\").then(data=>{\n console.log(\"Info Object\", data);\n * })\n * @returns {object} json object that contains data for requested information\n *\n * *info object example*\n * ```\n {\n \"message\":\"message of affirmation!\",\n \"task\":\"type of info request\",\n \"data\":json-data-object,\n }\n * ```\n */\n\n\tgetInfo(type) {\n\t\tlet url, task;\n\t\tif (type == 'site') {\n\t\t\turl = API_GET_SETTINGS;\n\t\t\ttask = TASK_GET_SETTINGS;\n\t\t} else {\n\t\t\turl = API_GET_MEMBER_INFO;\n\t\t\ttask = TASK_GET_MEMBER_INFO;\n\t\t}\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(this.baseURL ? this.baseURL + url : url, task)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t//--------------------------\n\t// private\n\t//--------------------------\n\t_request(\n\t\trequestURL,\n\t\teventType,\n\t\trequestType = REQUEST_TYPE_GET,\n\t\tcontentType = CONTENT_TYPE_JSON,\n\t\trequestData = null\n\t) {\n\t\tvar self = this;\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\tvar request = new XMLHttpRequest();\n\t\t\trequest.upload.addEventListener('progress', e =>\n\t\t\t\tself.handleLoadProgress(e, self.progressBar)\n\t\t\t);\n\t\t\trequest.open(requestType, requestURL, true);\n\t\t\trequest.onload = () => {\n\t\t\t\tif (request.status == 200) {\n\t\t\t\t\tlet response = JSON.parse(request['response']);\n\t\t\t\t\tresolve(response);\n\t\t\t\t} else {\n\t\t\t\t\tlet error = JSON.parse(request['response']);\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\t\t\t};\n\t\t\tif (requestType == REQUEST_TYPE_PUT || requestType == REQUEST_TYPE_POST) {\n\t\t\t\tif (\n\t\t\t\t\teventType === TASK_SETTINGS_WRITE ||\n\t\t\t\t\teventType === TASK_PAGE_EDIT ||\n\t\t\t\t\teventType === TASK_PAGE_CREATE ||\n\t\t\t\t\teventType === TASK_PAGE_DELETE ||\n\t\t\t\t\teventType === TASK_PUBLISH_SITE ||\n\t\t\t\t\teventType === TASK_REINDEX_PAGE\n\t\t\t\t)\n\t\t\t\t\trequest.setRequestHeader('fipamo-access-token', self.token);\n\n\t\t\t\tswitch (contentType) {\n\t\t\t\t\tcase CONTENT_TYPE_JSON:\n\t\t\t\t\t\trequest.setRequestHeader(\n\t\t\t\t\t\t\t'Content-type',\n\t\t\t\t\t\t\t'application/' + contentType\n\t\t\t\t\t\t);\n\t\t\t\t\t\trequest.send(JSON.stringify(requestData));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CONTENT_TYPE_FORM:\n\t\t\t\t\t\trequest.send(requestData);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (\n\t\t\t\t\teventType === TASK_GET_SETTINGS ||\n\t\t\t\t\teventType === TASK_GET_MEMBER_INFO\n\t\t\t\t) {\n\t\t\t\t\trequest.setRequestHeader('fipamo-access-token', self.token);\n\t\t\t\t}\n\t\t\t\trequest.send();\n\t\t\t}\n\t\t});\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleLoadProgress(e, progressBar) {\n\t\tlet percent = Math.ceil((e.loaded / e.total) * 100);\n\t\t//if a progress bar element is present, talk to it\n\t\tif (progressBar != null) {\n\t\t\tprogressBar.style.width = percent + '%';\n\t\t}\n\t}\n}\n\nexport { FipamoAdminAPI as default };\n","//** REQUEST TYPES **//\nexport const REQUEST_TYPE_POST = 'POST';\nexport const REQUEST_TYPE_GET = 'GET';\nexport const REQUEST_TYPE_PUT = 'PUT';\nexport const REQUEST_TYPE_DELETE = 'DELETE';\n//** POST CONTENT TYPES **//\nexport const CONTENT_TYPE_JSON = 'json';\nexport const CONTENT_TYPE_FORM = 'x-www-form-urlencoded';\n//** API URLS **//\nexport const API_STATUS = '/api/v1/status';\nexport const API_INIT = '/api/v1/init';\nexport const API_RESTORE = '/api/v1/restore';\nexport const API_GET_SECRET = '/api/v1/get-secret';\nexport const API_RESET_PASS = '/api/v1/reset-password';\nexport const API_CREATE_BACKUP = '/api/v1/backup';\nexport const API_DOWNLOAD_BACKUP = '/api/v1/backup/download';\nexport const API_RESTORE_BACKUP = '/api/v1/backup/restore';\nexport const API_UPLOAD_AVATAR = '/api/v1/settings/add-avatar';\nexport const API_UPLOAD_BACKGROUND = '/api/v1/settings/add-feature-background';\nexport const API_IMAGE_UPLOAD = '/api/v1/page/add-entry-image';\nexport const API_FILES_UPLOAD = '/api/v1/files';\n//** API TASKS **//\nexport const TASK_SITE_INIT = 'blogInit';\nexport const TASK_BACKUP_RESTORE = 'restoreBackup';\nexport const TASK_BACKUP_CREATE = 'createBackup';\nexport const TASK_GET_SECRET = 'retrieveSecret';\nexport const TASK_RESET_PASS = 'resetPassword';\nexport const TASK_UPLOAD_FILES = 'uploadFiles';\n//** API STATUS **//\nexport const API_ACCESS_GOOD = 'apiUseAuthorized';\nexport const API_ACCESS_BAD = 'apiUseNotAuthorized';\n\n/**\n * A tub of methods for creating/restoring installs, resetting passwords and uploading images.\n */\nclass MaintenanceManager {\n\t/**\n\t * @constructor\n\t * @param {string} baseURL - url of site; uses local when empty\n\t * @param {string} key - user api key\n\t */\n\tconstructor(baseURL = null, key = null) {\n\t\tthis.accetableFiles = [\n\t\t\t'image/jpeg',\n\t\t\t'image/gif',\n\t\t\t'image/png',\n\t\t\t'image/svg',\n\t\t\t'audio/mpeg',\n\t\t\t'video/mp4',\n\t\t\t'application/pdf',\n\t\t\t'text/plain',\n\t\t\t'text/rtf'\n\t\t];\n\t\tthis.percentComplete = 0; //for later\n\t\tthis.token = null;\n\t\tthis.baseURL = null;\n\t\tthis.key = null;\n\t\tif (key) this.key = key;\n\t\tif (baseURL) this.baseURL = baseURL;\n\t\t//if key is valid, checks to see if a session is active and returns\n\t\tthis._request(\n\t\t\tthis.baseURL\n\t\t\t\t? this.baseURL + API_STATUS + '?key=' + this.key\n\t\t\t\t: API_STATUS + '?key=' + this.key\n\t\t).then(response => {\n\t\t\tif (response.type === API_ACCESS_GOOD) {\n\t\t\t\tthis.token = response.token;\n\t\t\t} else {\n\t\t\t\t//don't set token\n\t\t\t\t//console.log(\"NO TOKEN\");\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Promise method used create new site from scratch. For local use only.\n\t * @param {object} data - json object that contains data for set up\n\t * @property {string} new_member_handle - handle for new user\n\t * @property {string} new_member_email - email for new user\n\t * @property {string} new_member_pass - password for new user\n\t * @property {string} new_member_title - title for new user\n\t */\n\tcreate(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tAPI_INIT,\n\t\t\t\tnull,\n\t\t\t\tTASK_SITE_INIT,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Promise method for restoring site from a previous back up. For local use only.\n\t * @param {object} form - form object that contains restore data and files\n\t * @property {string} restore_member_handle - handle for site user\n\t * @property {string} restore_member_pass - password for site user\n\t * @property {file} backup-upload - backup zip file\n\t */\n\trestore(form) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tvar url, event, method, type, data;\n\n\t\t\turl = API_RESTORE;\n\t\t\tevent = TASK_BACKUP_RESTORE;\n\t\t\tmethod = REQUEST_TYPE_POST;\n\t\t\ttype = CONTENT_TYPE_FORM;\n\t\t\tdata = new FormData(form);\n\t\t\tthis._request(url, null, event, method, type, data)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Promise method for creating a zip back up of current site. For local use only.\n\t */\n\n\tbackup() {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tvar url, event, method, type, data;\n\n\t\t\turl = API_CREATE_BACKUP;\n\t\t\tevent = TASK_BACKUP_CREATE;\n\t\t\tmethod = REQUEST_TYPE_POST;\n\t\t\ttype = CONTENT_TYPE_JSON;\n\t\t\tdata = { task: 'create_backup' };\n\t\t\tthis._request(url, null, event, method, type, data)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n\t * Promise method for retrieving user secret key. For local use only.\n\t * @param {object} data - json object that contains data for set up\n\t * @property {string} email - email for site user\n\t */\n\n\tsecret(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tAPI_GET_SECRET,\n\t\t\t\tTASK_GET_SECRET,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Promise method for resetting password for user. For local use only.\n\t * @param {object} data - json object that contains data for set up\n\t * @property {string} new_password - password for user\n\t * @property {string} new_password2 - confirm password for user\n\t * @property {string} secret - secret key for user\n\t */\n\n\tnewPass(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tAPI_RESET_PASS,\n\t\t\t\tTASK_RESET_PASS,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n\t * Promise method for uploading files [todo: change to uploading files]\n\t * @param {string} type - type of upload\n\t * @param {input} files - form input containing files\n\t */\n\tfilesUpload(type, files, progress = null) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet url = API_FILES_UPLOAD;\n\n\t\t\tif (this.baseURL) {\n\t\t\t\tfiles.append('key', this.key);\n\t\t\t\tfiles.append('remote', true);\n\t\t\t} else {\n\t\t\t\tfiles.append('remote', false);\n\t\t\t}\n\n\t\t\tthis._request(\n\t\t\t\turl,\n\t\t\t\tprogress,\n\t\t\t\tTASK_UPLOAD_FILES,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_FORM,\n\t\t\t\tfiles\n\t\t\t)\n\t\t\t\t.then(r => {\n\t\t\t\t\tresolve(r);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t//--------------------------\n\t// private\n\t//--------------------------\n\t_request(\n\t\trequestURL,\n\t\tprogressBar = null,\n\t\teventType,\n\t\trequestType = REQUEST_TYPE_GET,\n\t\tcontentType = CONTENT_TYPE_JSON,\n\t\trequestData = null\n\t) {\n\t\tvar self = this;\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\tvar request = new XMLHttpRequest();\n\n\t\t\trequest.upload.addEventListener('progress', e =>\n\t\t\t\tself.handleLoadProgress(e, progressBar)\n\t\t\t);\n\t\t\trequest.open(requestType, requestURL, true);\n\t\t\trequest.onload = () => {\n\t\t\t\tif (request.status == 200) {\n\t\t\t\t\tlet response = JSON.parse(request['response']);\n\t\t\t\t\tresolve(response);\n\t\t\t\t} else {\n\t\t\t\t\tlet error = JSON.parse(request['response']);\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\t\t\t};\n\t\t\tif (requestType == REQUEST_TYPE_PUT || requestType == REQUEST_TYPE_POST) {\n\t\t\t\tif (eventType === TASK_UPLOAD_FILES)\n\t\t\t\t\trequest.setRequestHeader('fipamo-access-token', self.token);\n\t\t\t\tswitch (contentType) {\n\t\t\t\t\tcase CONTENT_TYPE_JSON:\n\t\t\t\t\t\trequest.setRequestHeader(\n\t\t\t\t\t\t\t'Content-type',\n\t\t\t\t\t\t\t'application/' + contentType\n\t\t\t\t\t\t);\n\t\t\t\t\t\trequest.send(JSON.stringify(requestData));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CONTENT_TYPE_FORM:\n\t\t\t\t\t\trequest.send(requestData);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\trequest.send();\n\t\t\t}\n\t\t});\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleLoadProgress(e, progressBar) {\n\t\tlet percent = Math.ceil((e.loaded / e.total) * 100);\n\t\t//if a progress bar element is present, talk to it\n\t\tif (progressBar != null) {\n\t\t\tprogressBar.style.width = percent + '%';\n\t\t}\n\t}\n}\n\nexport { MaintenanceManager as default };\n","export default class DataUtils {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\n\timgLoad(url) {\n\t\t'use strict';\n\t\t// Create new promise with the Promise() constructor;\n\t\t// This has as its argument a function with two parameters, resolve and reject\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\t// Standard XHR to load an image\n\t\t\tvar request = new XMLHttpRequest();\n\t\t\trequest.open('GET', url);\n\t\t\trequest.responseType = 'blob';\n\t\t\t// When the request loads, check whether it was successful\n\t\t\trequest.onload = function () {\n\t\t\t\tif (request.status === 200) {\n\t\t\t\t\t// If successful, resolve the promise by passing back the request response\n\t\t\t\t\tresolve(request.response);\n\t\t\t\t} else {\n\t\t\t\t\t// If it fails, reject the promise with a error message\n\t\t\t\t\treject(\n\t\t\t\t\t\tnew Error(\n\t\t\t\t\t\t\t\"Image didn't load successfully; error code: \" +\n\t\t\t\t\t\t\t\trequest.status +\n\t\t\t\t\t\t\t\t' ' +\n\t\t\t\t\t\t\t\trequest.statusText\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t};\n\t\t\trequest.onerror = function () {\n\t\t\t\t// Also deal with the case when the entire request fails to begin with\n\t\t\t\t// This is probably a network error, so reject the promise with an appropriate message\n\t\t\t\treject(new Error('There was a network error.'));\n\t\t\t};\n\t\t\t// Send the request\n\t\t\trequest.send();\n\t\t});\n\t}\n\tloadImage(src) {\n\t\t'use strict';\n\t\tlet self = this;\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\t// Get a reference to the body element, and create a new image object\n\t\t\tvar myImage = new Image();\n\t\t\tmyImage.crossOrigin = ''; // or \"anonymous\"\n\t\t\t// Call the function with the URL we want to load, but then chain the\n\t\t\t// promise then() method on to the end of it. This contains two callbacks\n\t\t\tself.imgLoad(src).then(\n\t\t\t\tfunction (response) {\n\t\t\t\t\t// The first runs when the promise resolves, with the request.reponse specified within the resolve() method.\n\t\t\t\t\tvar imageURL = window.URL.createObjectURL(response);\n\t\t\t\t\tresolve(imageURL);\n\t\t\t\t\t//$('background-content').setStyle('background-image', 'url('+imageURL+')') //myImage.src = imageURL;\n\t\t\t\t\t//console.log(imageURL);\n\t\t\t\t\t//body.appendChild(myImage);\n\t\t\t\t\t// The second runs when the promise is rejected, and logs the Error specified with the reject() method.\n\t\t\t\t},\n\t\t\t\tfunction (Error) {\n\t\t\t\t\treject(Error);\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t}\n\n\t/**\n\t * Create a function to convert the serialize and convert the form data to JSON\n\t * @param : $('#form_example');\n\t * @return a JSON Stringify\n\t */\n\tformDataToJSON(form) {\n\t\tlet object = {};\n\t\tlet formData = new FormData(form);\n\t\tformData.forEach((value, key) => {\n\t\t\tif (!object.hasOwnProperty(key)) {\n\t\t\t\tobject[key] = value;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!Array.isArray(object[key])) {\n\t\t\t\tobject[key] = [object[key]];\n\t\t\t}\n\t\t\tobject[key].push(value);\n\t\t});\n\t\t//let json = JSON.stringify(object);\n\t\treturn object;\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","export const AUTH_STATUS = \"getAuthStatus\";\nexport const REQUEST_GOOD = \"requestGood\";\nexport const REQUEST_LAME = \"requestLame\";\nexport const API_REQUEST_GOOD = \"apiUseAuthorized\";\nexport const API_REQUEST_LAME = \"apiUseNotAuthorized\";\nexport const IMG_REQUEST_GOOD = \"imgRequestGood\";\nexport const IMG_REQUEST_LAME = \"imgRequestLame\";\nexport const SETTINGS_LOADED = \"settingsLoaded\";\nexport const POST_IMAGE_ADDED = \"postImageAdded\";\nexport const FEATURE_IMAGE_ADDED = \"featureImageAdded\";\nexport const PAGE_ERROR = \"postError\";\nexport const PAGE_ADDED = \"postAdded\";\nexport const PAGE_UPDATED = \"postUpdated\";\nexport const PAGE_DELETED = \"postImageAdded\";\nexport const PAGES_RENDERED = \"pagesRendered\";\nexport const PAGES_NOT_RENDERED = \"pagesNotRendered\";\nexport const TAG_PAGES_RENDERED = \"tagPagesRendered\";\nexport const TAG_PAGES_NOT_RENDERED = \"tagPagesNotRendered\";\nexport const SETTINGS_UPDATED = \"settingsUpdated\";\nexport const SETTINGS_NOT_UPDATED = \"settingsNotUpdated\";\nexport const MENU_ADD_ITEM = \"menuAddItem\";\nexport const MENU_DELETE_ITEM = \"menuDeleteItem\";\nexport const MENU_UPDATED = \"menuUpdated\";\nexport const AVATAR_UPLOADED = \"avatarUploaded\";\nexport const SITE_BACKGROUND_UPLOADED = \"siteBackgroundUploaded\";\nexport const UPLOAD_PROGRESS = \"uploadProgress\";\nexport const API_PAGE_WRITE = \"writingItDown\";\nexport const API_PAGE_CREATE = \"writingNewEntry\";\nexport const API_PAGE_DELETE = \"erasingPage\";\nexport const API_SETTINGS_WRITE = \"savingSettings\";\nexport const API_BACKUP_CREATE = \"createBackup\";\nexport const API_BACKUP_DOWNLOAD = \"downloadBackup\";\nexport const API_BACKUP_RESTORE = \"downloadBackup\";\nexport const API_IMAGES_UPLOAD = \"uploadProfileImages\";\nexport const API_RENDER_PAGES = \"renderPages\";\nexport const API_REINDEX_PAGES = \"reindexPages\";\nexport const API_INIT = \"blogInit\";\nexport const API_INIT_GOOD = \"blogInitGood\";\nexport const API_INIT_LAME = \"blogInitLame\";\nexport const API_GET_SECRET = \"retrieveSecret\";\nexport const API_RESET_PASS = \"resetPassword\";\nexport const SEND_MAIL = \"sendMail\";\nclass DataEvent {\n //--------------------------\n // methods\n //--------------------------\n //--------------------------\n // event handlers\n //--------------------------\n}\nexport default new DataEvent();\n","import PostIndex from './PostIndex';\nimport SettingsIndex from './SettingsIndex';\nimport NaviIndex from './NavIndex';\nimport Menu from '../ui/Menu';\n\nexport default class DashManager {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.currentDisplay = '';\n\t\tthis.urlPieces = document.URL.split('/');\n\t\tthis.chooseDisplay(this.urlPieces[4], this.urlPieces[5]);\n\t\t//start main menu handler\n\t\tnew Menu();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {}\n\n\tchooseDisplay(section, page) {\n\t\tthis.currentDisplay = '';\n\t\tswitch (section) {\n\t\t\tcase 'page':\n\t\t\t\tthis.currentDisplay = new PostIndex(page);\n\t\t\t\tbreak;\n\t\t\tcase 'settings':\n\t\t\t\tthis.currentDisplay = new SettingsIndex();\n\t\t\t\tbreak;\n\t\t\tcase 'navigation':\n\t\t\t\tthis.currentDisplay = new NaviIndex();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t//just chill\n\t\t\t\tbreak;\n\t\t}\n\t\tthis.start();\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","import PageEditor from \"./PageEditor\";\nexport default class PostIndex {\n //--------------------------\n // constructor\n //--------------------------\n constructor(page) {\n this.currentPage = null;\n this.choosePage(page);\n this.start();\n }\n //--------------------------\n // methods\n //--------------------------\n start() {}\n choosePage(page) {\n this.currentPage = \"\";\n switch (page) {\n case \"edit\":\n case \"add\":\n this.currentPage = new PageEditor();\n break;\n default:\n //just chill\n break;\n }\n }\n //--------------------------\n // event handlers\n //--------------------------\n}\n","//TOOLS\nimport FipamoAdminAPI, {\n\tTASK_PAGE_CREATE,\n\tTASK_PAGE_EDIT,\n\tTASK_PAGE_DELETE\n} from '../../libraries/FipamoAdminAPI';\nimport Maintenance from './MaintenanceManager';\nimport * as DataEvent from '../events/DataEvent';\nimport PageActions from '../actions/PageActions';\nimport * as EditorEvent from '../events/EditorEvent';\n//import TinyDatePicker from 'tiny-date-picker'; TODO: Reactivate for scheduled publishing\nimport TextEditor from '../ui/TextEditor';\nimport Notfications from '../ui/Notifications';\nimport FileManager from '../ui/FileManager';\nconst notify = new Notfications();\nexport default class PostEditor {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tlet self = 'this';\n\t\tthis.admin = new FipamoAdminAPI(null, document.getElementById('notify-progress'));\n\t\tthis.mm = new Maintenance(null, null);\n\t\tthis.urlPieces = document.URL.split('/');\n\t\tthis.post = [];\n\t\tthis.postID = null;\n\t\tthis.postUUID = null;\n\t\tthis.postLayout = null;\n\t\tthis.fm = null;\n\t\tif (document.querySelector('[role=\"file-manager\"]').getAttribute('data-index')) {\n\t\t\tthis.postID = document\n\t\t\t\t.querySelector('[role=\"file-manager\"]')\n\t\t\t\t.getAttribute('data-index');\n\t\t\tthis.postUUID = document\n\t\t\t\t.querySelector('[role=\"file-manager\"]')\n\t\t\t\t.getAttribute('data-uuid');\n\t\t\tthis.postLayout = document\n\t\t\t\t.querySelector('[role=\"file-manager\"]')\n\t\t\t\t.getAttribute('data-layout');\n\t\t}\n\t\tif (document.getElementById('edit')) {\n\t\t\tthis.editor = new TextEditor(\n\t\t\t\tdocument.getElementById('edit'),\n\t\t\t\tdocument.querySelector('[role=\"file-manager\"]').offsetHeight +\n\t\t\t\t\tdocument.querySelector('[role=\"page-meta\"]').offsetHeight +\n\t\t\t\t\tdocument.querySelector('[role=\"text-editor\"]').offsetHeight\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_DELETE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_DELETE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_UPLOAD_POST_IMAGE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_UPLOAD_POST_IMAGE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_UPDATE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_UPDATE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_SAVE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_SAVE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tdocument.getElementById('post-image-upload').addEventListener(\n\t\t\t\t'change',\n\t\t\t\te => {\n\t\t\t\t\tthis.handleImageUpload(e.target.id, e.target.files);\n\t\t\t\t},\n\t\t\t\tfalse\n\t\t\t);\n\t\t\t/*\n\t\t\tTinyDatePicker(document.getElementById('post-date'), {\n\t\t\t\tmode: 'dp-below',\n\t\t\t\tformat() {\n\t\t\t\t\t//return self.dateUtils.getDate('origin', date);\n\t\t\t\t}\n\t\t\t});\n\t\t\t*/\n\n\t\t\tthis.start();\n\t\t}\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\tif (document.querySelector('[role=\"file-drop\"]')) {\n\t\t\t//insert fileManager here\n\t\t\tthis.fm = new FileManager(\n\t\t\t\tdocument.querySelector('[role=\"file-drop\"]'),\n\t\t\t\tdocument.getElementById('page-files-upload'),\n\t\t\t\tdocument.querySelector('[role=\"page-images-list\"]'),\n\t\t\t\tdocument.querySelector('[role=\"page-files-list\"]')\n\t\t\t);\n\t\t\tvar optionButtons = document.querySelectorAll('.post-option-btn');\n\t\t\tfor (var i = 0, length = optionButtons.length; i < length; i++) {\n\t\t\t\toptionButtons[i].addEventListener(\n\t\t\t\t\t'click',\n\t\t\t\t\te => this.handlePostOptions(e),\n\t\t\t\t\tfalse\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandlePostOptions(e) {\n\t\tlet currentOption = null;\n\t\tswitch (e.target.id) {\n\t\t\tcase 'option-page-icon':\n\t\t\tcase 'option-menu-pin':\n\t\t\t\tcurrentOption = document.getElementById('option-menu-pin');\n\t\t\t\tbreak;\n\t\t\tcase 'option-feature-icon':\n\t\t\tcase 'option-feature':\n\t\t\t\tcurrentOption = document.getElementById('option-feature');\n\t\t\t\tbreak;\n\t\t\tcase 'option-published-icon':\n\t\t\tcase 'option-published':\n\t\t\t\tcurrentOption = document.getElementById('option-published');\n\t\t\t\tbreak;\n\t\t}\n\t\tif (currentOption != null) {\n\t\t\tlet active = currentOption.getAttribute('data-active');\n\t\t\tactive == 'false'\n\t\t\t\t? currentOption.setAttribute('data-active', 'true')\n\t\t\t\t: currentOption.setAttribute('data-active', 'false');\n\t\t}\n\t}\n\thandleEditorOptions(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\tswitch (e) {\n\t\t\tcase EditorEvent.EDITOR_SAVE:\n\t\t\tcase EditorEvent.EDITOR_UPDATE:\n\t\t\t\tvar task = '';\n\t\t\t\te === EditorEvent.EDITOR_SAVE\n\t\t\t\t\t? (task = TASK_PAGE_CREATE)\n\t\t\t\t\t: (task = TASK_PAGE_EDIT);\n\t\t\t\tnew PageActions().collectInfo(this.fm.getFileOrder()).then(page => {\n\t\t\t\t\tself.processing = true;\n\t\t\t\t\tnotify.alert('Writing down changes', null);\n\t\t\t\t\tself.admin\n\t\t\t\t\t\t.pageActions(task, page)\n\t\t\t\t\t\t.then(r => {\n\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tr.type === DataEvent.PAGE_ERROR ||\n\t\t\t\t\t\t\t\tr.type === DataEvent.API_REQUEST_LAME\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tnotify.alert(r.message, false);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (r.type === DataEvent.PAGE_UPDATED) {\n\t\t\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t\t\t\twindow.location = '/dashboard/page/edit/' + r.id;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch(err => {\n\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\tcase EditorEvent.EDITOR_DELETE:\n\t\t\t\tif (this.postLayout === 'index') {\n\t\t\t\t\tnotify.alert('Index cannot be deleted', false);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (confirm(\"AYE! You know you're deleting this post, right?\")) {\n\t\t\t\t\tnew PageActions()\n\t\t\t\t\t\t.collectInfo(this.fm.getFileOrder())\n\t\t\t\t\t\t.then(page => {\n\t\t\t\t\t\t\tself.processing = true;\n\t\t\t\t\t\t\tthis.admin\n\t\t\t\t\t\t\t\t.pageActions(TASK_PAGE_DELETE, page)\n\t\t\t\t\t\t\t\t.then(() => {\n\t\t\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\t\t\twindow.location = '/dashboard/pages';\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t.catch(err => {\n\t\t\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch(() => {});\n\t\t\t\t} else {\n\t\t\t\t\t// Do nothing!\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase EditorEvent.EDITOR_UPLOAD_POST_IMAGE:\n\t\t\t\tdocument.getElementById('post-image-upload').click();\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\thandleImageUpload(type, files) {\n\t\tlet self = this;\n\t\tnotify.alert('Uploading Image', null);\n\t\tlet upload = new FormData();\n\t\tupload.enctype = 'multipart/form-data';\n\t\tupload.append('upload_files[]', files[0], files[0].name);\n\t\tthis.mm\n\t\t\t.filesUpload(files[0].type, upload)\n\t\t\t.then(result => {\n\t\t\t\tif (result.message == 'File Uploaded. Great!') {\n\t\t\t\t\tself.editor.notify(\n\t\t\t\t\t\tEditorEvent.EDITOR_UPLOAD_POST_IMAGE,\n\t\t\t\t\t\tresult.filePath\n\t\t\t\t\t);\n\t\t\t\t\tnotify.alert('Image Added to Entry', true);\n\t\t\t\t} else {\n\t\t\t\t\tnotify.alert('Uh oh. Image not added', false);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(() => {\n\t\t\t\tnotify.alert('Uh oh. Image not added', false);\n\t\t\t});\n\t}\n}\n","import StringUtils from '../utils/StringUtils';\nexport default class PostActions {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tcollectInfo(files) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet pageInfo = [];\n\t\t\tlet pageRef = document.querySelector('[role=\"file-manager\"]');\n\t\t\t//process html content for storage\n\t\t\tlet txt = document.createElement('textarea');\n\t\t\ttxt.innerHTML = document.getElementById('highlight-content').innerHTML;\n\t\t\tlet html = txt.value;\n\t\t\thtml = html.replace(/<\\/?span[^>]*>/g, ''); //removes prism styling\n\t\t\thtml = html.replace(/<\\/?br[^>]*>/g, '\\n'); //convert back to encoded line break for storage\n\t\t\t//build data object\n\t\t\tpageInfo = {\n\t\t\t\tid: pageRef.getAttribute('data-index'),\n\t\t\t\tuuid: pageRef.getAttribute('data-uuid'),\n\t\t\t\tlayout: document.getElementById('page-templates').value,\n\t\t\t\tcurrent_title: pageRef.getAttribute('data-slug'),\n\t\t\t\tcontent: html,\n\t\t\t\ttitle: document.getElementById('post-title-text').value,\n\t\t\t\tcreated: document.getElementById('post-date').getAttribute('data-raw'),\n\t\t\t\tslug: new StringUtils().cleanString(\n\t\t\t\t\tdocument.getElementById('post-title-text').value\n\t\t\t\t),\n\t\t\t\ttags: document.getElementById('post-tags').value,\n\t\t\t\tmenu: document\n\t\t\t\t\t.getElementById('option-menu-pin')\n\t\t\t\t\t.getAttribute('data-active'),\n\t\t\t\tfeatured: document\n\t\t\t\t\t.getElementById('option-feature')\n\t\t\t\t\t.getAttribute('data-active'),\n\t\t\t\tpublished: document\n\t\t\t\t\t.getElementById('option-published')\n\t\t\t\t\t.getAttribute('data-active'),\n\t\t\t\tform_token: document.getElementById('form_token').value,\n\t\t\t\timageList: files.images,\n\t\t\t\tfileList: files.files\n\t\t\t};\n\n\t\t\tresolve(pageInfo);\n\t\t});\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","class StringUtils {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tcleanString(string) {\n\t\tvar clean = string\n\t\t\t.replace(/(^\\-+|[^a-zA-Z0-9\\/_| -]+|\\-+$)/g, '')\n\t\t\t.toLowerCase()\n\t\t\t.replace(/[\\/_| -]+/g, '-');\n\t\treturn clean;\n\t}\n\n\tdecodeHTML(string, quote_style) {\n\t\tvar optTemp = 0,\n\t\t\ti = 0,\n\t\t\tnoquotes = false;\n\t\tif (typeof quote_style === 'undefined') {\n\t\t\tquote_style = 2;\n\t\t}\n\t\tstring = string\n\t\t\t.toString()\n\t\t\t.replace(/</g, '<')\n\t\t\t.replace(/>/g, '>');\n\t\tvar OPTS = {\n\t\t\tENT_NOQUOTES: 0,\n\t\t\tENT_HTML_QUOTE_SINGLE: 1,\n\t\t\tENT_HTML_QUOTE_DOUBLE: 2,\n\t\t\tENT_COMPAT: 2,\n\t\t\tENT_QUOTES: 3,\n\t\t\tENT_IGNORE: 4\n\t\t};\n\t\tif (quote_style === 0) {\n\t\t\tnoquotes = true;\n\t\t}\n\t\tif (typeof quote_style !== 'number') {\n\t\t\t// Allow for a single string or an array of string flags\n\t\t\tquote_style = [].concat(quote_style);\n\t\t\tfor (i = 0; i < quote_style.length; i++) {\n\t\t\t\t// Resolve string input to bitwise e.g. 'PATHINFO_EXTENSION' becomes 4\n\t\t\t\tif (OPTS[quote_style[i]] === 0) {\n\t\t\t\t\tnoquotes = true;\n\t\t\t\t} else if (OPTS[quote_style[i]]) {\n\t\t\t\t\toptTemp = optTemp | OPTS[quote_style[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t\tquote_style = optTemp;\n\t\t}\n\t\tif (quote_style & OPTS.ENT_HTML_QUOTE_SINGLE) {\n\t\t\tstring = string.replace(/�*39;/g, \"'\"); // PHP doesn't currently escape if more than one 0, but it should\n\t\t\t// string = string.replace(/'|�*27;/g, \"'\"); // This would also be useful here, but not a part of PHP\n\t\t}\n\t\tif (!noquotes) {\n\t\t\tstring = string.replace(/"/g, '\"');\n\t\t}\n\t\t// Put this in last place to avoid escape being double-decoded\n\t\tstring = string.replace(/&/g, '&');\n\t\treturn string;\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\nexport default StringUtils;\n","export const EDITOR_DELETE = 'editorDelete';\nexport const EDITOR_UPLOAD_POST_IMAGE = 'editorUploadImage';\nexport const EDITOR_SAVE = 'editorSave';\nexport const EDITOR_UPDATE = 'editorUpdate';\n\nclass EditorEvent {\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\nexport default new EditorEvent();\n","import * as DataEvent from '../events/DataEvent';\nimport EventEmitter from '../events/EventEmitter';\nimport * as EditorEvent from '../events/EditorEvent';\nimport Prism from 'prismjs';\nclass TextEditor extends EventEmitter {\n\t/**\n\t * Text Editor UI Component\n\t * @constructor\n\t * @param {object} textEditor - Text area that will edit text\n\t * @param {number} scrollLimit - YPos where editor position will become fixed\n\t */\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor(textEditor, scrollLimit) {\n\t\tsuper();\n\n\t\tdocument\n\t\t\t.querySelector('[role=\"text-editor-control\"]')\n\t\t\t.addEventListener('scroll', e => {\n\t\t\t\tconsole.log('HERE');\n\t\t\t});\n\n\t\tdocument.body.addEventListener('scroll', e => {\n\t\t\tvar fixLimit = scrollLimit;\n\t\t\tconsole.log('POSITION', document.body.scrollTop + ' : ' + fixLimit);\n\t\t\tif (document.body.scrollTop + 5 >= fixLimit) {\n\t\t\t\tdocument\n\t\t\t\t\t.querySelector('[role=\"text-editor-control\"]')\n\t\t\t\t\t.classList.add('control-freeze');\n\t\t\t} else {\n\t\t\t\tdocument\n\t\t\t\t\t.querySelector('[role=\"text-editor-control\"]')\n\t\t\t\t\t.classList.remove('control-freeze');\n\t\t\t}\n\t\t});\n\t\tdocument.getElementById('edit').addEventListener('input', e => {\n\t\t\tlet result_element = document.querySelector('#highlight-content');\n\t\t\tthis.textEditor = textEditor;\n\n\t\t\t// Update code\n\t\t\tlet text = e.target.value;\n\t\t\tresult_element.innerHTML = text\n\t\t\t\t.replace(new RegExp('&', 'g'), '&')\n\t\t\t\t.replace(new RegExp('<', 'g'), '<');\n\t\t\tlet editorHeight = document.getElementById('highlight').offsetHeight;\n\t\t\tdocument.querySelector('[role=\"edit-post-wrapper\"]').style.height =\n\t\t\t\teditorHeight + 'px';\n\t\t\te.target.style.height = editorHeight + 30 + 'px'; //TODO: yeah, it's ugly but it works for now, fix soon\n\t\t\t// Syntax Highlight\n\t\t\tPrism.highlightElement(result_element);\n\t\t});\n\t\tdocument.getElementById('edit').addEventListener('scroll', e => {\n\t\t\t/* Scroll result to scroll coords of event - sync with textarea */\n\t\t\tlet result_element = document.querySelector('#highlight');\n\t\t\t// Get and set x and y\n\t\t\tresult_element.scrollTop = e.scrollTop;\n\t\t\tresult_element.scrollLeft = e.scrollLeft;\n\t\t});\n\t\tdocument.getElementById('edit').dispatchEvent(new Event('input'));\n\t\tthis.setInputs();\n\n\t\t//freeze editor formatting so it doesn't scroll off screen\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tsetInputs() {\n\t\tvar editorButtons = document.querySelectorAll('.editor-button');\n\t\tfor (var i = 0, length = editorButtons.length; i < length; i++) {\n\t\t\teditorButtons[i].addEventListener(\n\t\t\t\t'click',\n\t\t\t\te => this.handleEditorOption(e),\n\t\t\t\tfalse\n\t\t\t);\n\t\t}\n\t}\n\tnotify(type, data) {\n\t\tswitch (type) {\n\t\t\tcase DataEvent.PAGE_UPDATED:\n\t\t\t\tdocument.getElementById('submit-update').classList.add('icon-hide');\n\t\t\t\tdocument.getElementById('submit-good').classList.remove('icon-hide');\n\t\t\t\tdocument.getElementById('edit-update').classList.remove('submit-start');\n\t\t\t\tdocument.getElementById('edit-update').classList.add('submit-cool');\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tdocument\n\t\t\t\t\t\t.getElementById('submit-update')\n\t\t\t\t\t\t.classList.remove('icon-hide');\n\t\t\t\t\tdocument.getElementById('submit-good').classList.add('icon-hide');\n\t\t\t\t\tdocument.getElementById('edit-update').classList.add('submit-start');\n\t\t\t\t\tdocument\n\t\t\t\t\t\t.getElementById('edit-update')\n\t\t\t\t\t\t.classList.remove('submit-cool');\n\t\t\t\t}, 2000);\n\t\t\t\tbreak;\n\t\t\tcase DataEvent.PAGE_ADDED:\n\t\t\t\t// do nothing\n\t\t\t\tbreak;\n\t\t\tcase EditorEvent.EDITOR_UPLOAD_POST_IMAGE: {\n\t\t\t\tlet len = this.textEditor.value.length;\n\t\t\t\tlet start = this.textEditor.selectionStart;\n\t\t\t\tlet end = this.textEditor.selectionEnd;\n\t\t\t\tlet insert = '![image alt text](' + data + ')';\n\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tdocument.getElementById('edit').dispatchEvent(new Event('input'));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleEditorOption(e) {\n\t\te.preventDefault();\n\t\tlet len = this.textEditor.value.length;\n\t\tlet start = this.textEditor.selectionStart;\n\t\tlet end = this.textEditor.selectionEnd;\n\n\t\tlet selectedText = this.textEditor.value.substring(start, end);\n\t\tlet insert = '';\n\t\tswitch (e.target.id) {\n\t\t\tcase 'edit-bold':\n\t\t\t\tinsert = '**' + selectedText + '**';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\n\t\t\t\tbreak;\n\t\t\tcase 'edit-italic':\n\t\t\t\tinsert = '*' + selectedText + '*';\n\t\t\t\t//console.log(this.textEditor);\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-strikethrough':\n\t\t\t\tinsert = '~~' + selectedText + '~~';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-header1':\n\t\t\t\tinsert = '# ' + selectedText + '\\n';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-header2':\n\t\t\t\tinsert = '## ' + selectedText + '\\n';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-header3':\n\t\t\t\tinsert = '### ' + selectedText + '\\n';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-link':\n\t\t\t\t{\n\t\t\t\t\tlet url = prompt(\"Let's get that url, boss\");\n\t\t\t\t\tlet link = url.toLowerCase();\n\t\t\t\t\tinsert = '[' + selectedText + '](' + link + ')';\n\t\t\t\t\tthis.textEditor.value =\n\t\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\t\tinsert +\n\t\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'edit-image':\n\t\t\t\t//this.caretPos = position(this.textEditor).pos;\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_UPLOAD_POST_IMAGE);\n\t\t\t\tbreak;\n\t\t\tcase 'submit-save':\n\t\t\tcase 'edit-save':\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_SAVE);\n\t\t\t\tbreak;\n\t\t\tcase 'submit-update':\n\t\t\tcase 'edit-update':\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_UPDATE);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-delete':\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_DELETE);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t//do stuff\n\t\t\t\tbreak;\n\t\t}\n\t\tdocument.getElementById('edit').dispatchEvent(new Event('input'));\n\t}\n}\nexport default TextEditor;\n","class EventEmitter {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.listeners = new Map();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\taddListener(label, callback) {\n\t\tthis.listeners.has(label) || this.listeners.set(label, []);\n\t\tthis.listeners.get(label).push(callback);\n\t}\n\n\tremoveListener(label, callback) {\n\t\tvar isFunction = function(obj) {\n\t\t\treturn typeof obj == 'function' || false;\n\t\t};\n\n\t\tvar listeners = this.listeners.get(label),\n\t\t\tindex;\n\n\t\tif (listeners && listeners.length) {\n\t\t\tindex = listeners.reduce((i, listener, index) => {\n\t\t\t\treturn isFunction(listener) && listener === callback ? (i = index) : i;\n\t\t\t}, -1);\n\n\t\t\tif (index > -1) {\n\t\t\t\tlisteners.splice(index, 1);\n\t\t\t\tthis.listeners.set(label, listeners);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\temitEvent(label, ...args) {\n\t\tvar listeners = this.listeners.get(label);\n\t\tif (listeners && listeners.length) {\n\t\t\tlisteners.forEach(listener => {\n\t\t\t\tlistener(...args);\n\t\t\t});\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\nexport default EventEmitter;\n","/// <reference lib=\"WebWorker\"/>\n\nvar _self = (typeof window !== 'undefined')\n\t? window // if in browser\n\t: (\n\t\t(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)\n\t\t\t? self // if in worker\n\t\t\t: {} // if in node js\n\t);\n\n/**\n * Prism: Lightweight, robust, elegant syntax highlighting\n *\n * @license MIT <https://opensource.org/licenses/MIT>\n * @author Lea Verou <https://lea.verou.me>\n * @namespace\n * @public\n */\nvar Prism = (function (_self) {\n\n\t// Private helper vars\n\tvar lang = /(?:^|\\s)lang(?:uage)?-([\\w-]+)(?=\\s|$)/i;\n\tvar uniqueId = 0;\n\n\t// The grammar object for plaintext\n\tvar plainTextGrammar = {};\n\n\n\tvar _ = {\n\t\t/**\n\t\t * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the\n\t\t * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load\n\t\t * additional languages or plugins yourself.\n\t\t *\n\t\t * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.\n\t\t *\n\t\t * You obviously have to change this value before the automatic highlighting started. To do this, you can add an\n\t\t * empty Prism object into the global scope before loading the Prism script like this:\n\t\t *\n\t\t * ```js\n\t\t * window.Prism = window.Prism || {};\n\t\t * Prism.manual = true;\n\t\t * // add a new <script> to load Prism's script\n\t\t * ```\n\t\t *\n\t\t * @default false\n\t\t * @type {boolean}\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\tmanual: _self.Prism && _self.Prism.manual,\n\t\t/**\n\t\t * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses\n\t\t * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your\n\t\t * own worker, you don't want it to do this.\n\t\t *\n\t\t * By setting this value to `true`, Prism will not add its own listeners to the worker.\n\t\t *\n\t\t * You obviously have to change this value before Prism executes. To do this, you can add an\n\t\t * empty Prism object into the global scope before loading the Prism script like this:\n\t\t *\n\t\t * ```js\n\t\t * window.Prism = window.Prism || {};\n\t\t * Prism.disableWorkerMessageHandler = true;\n\t\t * // Load Prism's script\n\t\t * ```\n\t\t *\n\t\t * @default false\n\t\t * @type {boolean}\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\tdisableWorkerMessageHandler: _self.Prism && _self.Prism.disableWorkerMessageHandler,\n\n\t\t/**\n\t\t * A namespace for utility methods.\n\t\t *\n\t\t * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may\n\t\t * change or disappear at any time.\n\t\t *\n\t\t * @namespace\n\t\t * @memberof Prism\n\t\t */\n\t\tutil: {\n\t\t\tencode: function encode(tokens) {\n\t\t\t\tif (tokens instanceof Token) {\n\t\t\t\t\treturn new Token(tokens.type, encode(tokens.content), tokens.alias);\n\t\t\t\t} else if (Array.isArray(tokens)) {\n\t\t\t\t\treturn tokens.map(encode);\n\t\t\t\t} else {\n\t\t\t\t\treturn tokens.replace(/&/g, '&').replace(/</g, '<').replace(/\\u00a0/g, ' ');\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns the name of the type of the given value.\n\t\t\t *\n\t\t\t * @param {any} o\n\t\t\t * @returns {string}\n\t\t\t * @example\n\t\t\t * type(null) === 'Null'\n\t\t\t * type(undefined) === 'Undefined'\n\t\t\t * type(123) === 'Number'\n\t\t\t * type('foo') === 'String'\n\t\t\t * type(true) === 'Boolean'\n\t\t\t * type([1, 2]) === 'Array'\n\t\t\t * type({}) === 'Object'\n\t\t\t * type(String) === 'Function'\n\t\t\t * type(/abc+/) === 'RegExp'\n\t\t\t */\n\t\t\ttype: function (o) {\n\t\t\t\treturn Object.prototype.toString.call(o).slice(8, -1);\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns a unique number for the given object. Later calls will still return the same number.\n\t\t\t *\n\t\t\t * @param {Object} obj\n\t\t\t * @returns {number}\n\t\t\t */\n\t\t\tobjId: function (obj) {\n\t\t\t\tif (!obj['__id']) {\n\t\t\t\t\tObject.defineProperty(obj, '__id', { value: ++uniqueId });\n\t\t\t\t}\n\t\t\t\treturn obj['__id'];\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Creates a deep clone of the given object.\n\t\t\t *\n\t\t\t * The main intended use of this function is to clone language definitions.\n\t\t\t *\n\t\t\t * @param {T} o\n\t\t\t * @param {Record<number, any>} [visited]\n\t\t\t * @returns {T}\n\t\t\t * @template T\n\t\t\t */\n\t\t\tclone: function deepClone(o, visited) {\n\t\t\t\tvisited = visited || {};\n\n\t\t\t\tvar clone; var id;\n\t\t\t\tswitch (_.util.type(o)) {\n\t\t\t\t\tcase 'Object':\n\t\t\t\t\t\tid = _.util.objId(o);\n\t\t\t\t\t\tif (visited[id]) {\n\t\t\t\t\t\t\treturn visited[id];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tclone = /** @type {Record<string, any>} */ ({});\n\t\t\t\t\t\tvisited[id] = clone;\n\n\t\t\t\t\t\tfor (var key in o) {\n\t\t\t\t\t\t\tif (o.hasOwnProperty(key)) {\n\t\t\t\t\t\t\t\tclone[key] = deepClone(o[key], visited);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn /** @type {any} */ (clone);\n\n\t\t\t\t\tcase 'Array':\n\t\t\t\t\t\tid = _.util.objId(o);\n\t\t\t\t\t\tif (visited[id]) {\n\t\t\t\t\t\t\treturn visited[id];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tclone = [];\n\t\t\t\t\t\tvisited[id] = clone;\n\n\t\t\t\t\t\t(/** @type {Array} */(/** @type {any} */(o))).forEach(function (v, i) {\n\t\t\t\t\t\t\tclone[i] = deepClone(v, visited);\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\treturn /** @type {any} */ (clone);\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\treturn o;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.\n\t\t\t *\n\t\t\t * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.\n\t\t\t *\n\t\t\t * @param {Element} element\n\t\t\t * @returns {string}\n\t\t\t */\n\t\t\tgetLanguage: function (element) {\n\t\t\t\twhile (element) {\n\t\t\t\t\tvar m = lang.exec(element.className);\n\t\t\t\t\tif (m) {\n\t\t\t\t\t\treturn m[1].toLowerCase();\n\t\t\t\t\t}\n\t\t\t\t\telement = element.parentElement;\n\t\t\t\t}\n\t\t\t\treturn 'none';\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Sets the Prism `language-xxxx` class of the given element.\n\t\t\t *\n\t\t\t * @param {Element} element\n\t\t\t * @param {string} language\n\t\t\t * @returns {void}\n\t\t\t */\n\t\t\tsetLanguage: function (element, language) {\n\t\t\t\t// remove all `language-xxxx` classes\n\t\t\t\t// (this might leave behind a leading space)\n\t\t\t\telement.className = element.className.replace(RegExp(lang, 'gi'), '');\n\n\t\t\t\t// add the new `language-xxxx` class\n\t\t\t\t// (using `classList` will automatically clean up spaces for us)\n\t\t\t\telement.classList.add('language-' + language);\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns the script element that is currently executing.\n\t\t\t *\n\t\t\t * This does __not__ work for line script element.\n\t\t\t *\n\t\t\t * @returns {HTMLScriptElement | null}\n\t\t\t */\n\t\t\tcurrentScript: function () {\n\t\t\t\tif (typeof document === 'undefined') {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tif ('currentScript' in document && 1 < 2 /* hack to trip TS' flow analysis */) {\n\t\t\t\t\treturn /** @type {any} */ (document.currentScript);\n\t\t\t\t}\n\n\t\t\t\t// IE11 workaround\n\t\t\t\t// we'll get the src of the current script by parsing IE11's error stack trace\n\t\t\t\t// this will not work for inline scripts\n\n\t\t\t\ttry {\n\t\t\t\t\tthrow new Error();\n\t\t\t\t} catch (err) {\n\t\t\t\t\t// Get file src url from stack. Specifically works with the format of stack traces in IE.\n\t\t\t\t\t// A stack will look like this:\n\t\t\t\t\t//\n\t\t\t\t\t// Error\n\t\t\t\t\t// at _.util.currentScript (http://localhost/components/prism-core.js:119:5)\n\t\t\t\t\t// at Global code (http://localhost/components/prism-core.js:606:1)\n\n\t\t\t\t\tvar src = (/at [^(\\r\\n]*\\((.*):[^:]+:[^:]+\\)$/i.exec(err.stack) || [])[1];\n\t\t\t\t\tif (src) {\n\t\t\t\t\t\tvar scripts = document.getElementsByTagName('script');\n\t\t\t\t\t\tfor (var i in scripts) {\n\t\t\t\t\t\t\tif (scripts[i].src == src) {\n\t\t\t\t\t\t\t\treturn scripts[i];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns whether a given class is active for `element`.\n\t\t\t *\n\t\t\t * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated\n\t\t\t * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the\n\t\t\t * given class is just the given class with a `no-` prefix.\n\t\t\t *\n\t\t\t * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is\n\t\t\t * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its\n\t\t\t * ancestors have the given class or the negated version of it, then the default activation will be returned.\n\t\t\t *\n\t\t\t * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated\n\t\t\t * version of it, the class is considered active.\n\t\t\t *\n\t\t\t * @param {Element} element\n\t\t\t * @param {string} className\n\t\t\t * @param {boolean} [defaultActivation=false]\n\t\t\t * @returns {boolean}\n\t\t\t */\n\t\t\tisActive: function (element, className, defaultActivation) {\n\t\t\t\tvar no = 'no-' + className;\n\n\t\t\t\twhile (element) {\n\t\t\t\t\tvar classList = element.classList;\n\t\t\t\t\tif (classList.contains(className)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tif (classList.contains(no)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\telement = element.parentElement;\n\t\t\t\t}\n\t\t\t\treturn !!defaultActivation;\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.\n\t\t *\n\t\t * @namespace\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\tlanguages: {\n\t\t\t/**\n\t\t\t * The grammar for plain, unformatted text.\n\t\t\t */\n\t\t\tplain: plainTextGrammar,\n\t\t\tplaintext: plainTextGrammar,\n\t\t\ttext: plainTextGrammar,\n\t\t\ttxt: plainTextGrammar,\n\n\t\t\t/**\n\t\t\t * Creates a deep copy of the language with the given id and appends the given tokens.\n\t\t\t *\n\t\t\t * If a token in `redef` also appears in the copied language, then the existing token in the copied language\n\t\t\t * will be overwritten at its original position.\n\t\t\t *\n\t\t\t * ## Best practices\n\t\t\t *\n\t\t\t * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)\n\t\t\t * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to\n\t\t\t * understand the language definition because, normally, the order of tokens matters in Prism grammars.\n\t\t\t *\n\t\t\t * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.\n\t\t\t * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.\n\t\t\t *\n\t\t\t * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.\n\t\t\t * @param {Grammar} redef The new tokens to append.\n\t\t\t * @returns {Grammar} The new language created.\n\t\t\t * @public\n\t\t\t * @example\n\t\t\t * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {\n\t\t\t * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token\n\t\t\t * // at its original position\n\t\t\t * 'comment': { ... },\n\t\t\t * // CSS doesn't have a 'color' token, so this token will be appended\n\t\t\t * 'color': /\\b(?:red|green|blue)\\b/\n\t\t\t * });\n\t\t\t */\n\t\t\textend: function (id, redef) {\n\t\t\t\tvar lang = _.util.clone(_.languages[id]);\n\n\t\t\t\tfor (var key in redef) {\n\t\t\t\t\tlang[key] = redef[key];\n\t\t\t\t}\n\n\t\t\t\treturn lang;\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Inserts tokens _before_ another token in a language definition or any other grammar.\n\t\t\t *\n\t\t\t * ## Usage\n\t\t\t *\n\t\t\t * This helper method makes it easy to modify existing languages. For example, the CSS language definition\n\t\t\t * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded\n\t\t\t * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the\n\t\t\t * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do\n\t\t\t * this:\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * Prism.languages.markup.style = {\n\t\t\t * // token\n\t\t\t * };\n\t\t\t * ```\n\t\t\t *\n\t\t\t * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens\n\t\t\t * before existing tokens. For the CSS example above, you would use it like this:\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * Prism.languages.insertBefore('markup', 'cdata', {\n\t\t\t * 'style': {\n\t\t\t * // token\n\t\t\t * }\n\t\t\t * });\n\t\t\t * ```\n\t\t\t *\n\t\t\t * ## Special cases\n\t\t\t *\n\t\t\t * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar\n\t\t\t * will be ignored.\n\t\t\t *\n\t\t\t * This behavior can be used to insert tokens after `before`:\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * Prism.languages.insertBefore('markup', 'comment', {\n\t\t\t * 'comment': Prism.languages.markup.comment,\n\t\t\t * // tokens after 'comment'\n\t\t\t * });\n\t\t\t * ```\n\t\t\t *\n\t\t\t * ## Limitations\n\t\t\t *\n\t\t\t * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object\n\t\t\t * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave\n\t\t\t * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily\n\t\t\t * deleting properties which is necessary to insert at arbitrary positions.\n\t\t\t *\n\t\t\t * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.\n\t\t\t * Instead, it will create a new object and replace all references to the target object with the new one. This\n\t\t\t * can be done without temporarily deleting properties, so the iteration order is well-defined.\n\t\t\t *\n\t\t\t * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if\n\t\t\t * you hold the target object in a variable, then the value of the variable will not change.\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * var oldMarkup = Prism.languages.markup;\n\t\t\t * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });\n\t\t\t *\n\t\t\t * assert(oldMarkup !== Prism.languages.markup);\n\t\t\t * assert(newMarkup === Prism.languages.markup);\n\t\t\t * ```\n\t\t\t *\n\t\t\t * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the\n\t\t\t * object to be modified.\n\t\t\t * @param {string} before The key to insert before.\n\t\t\t * @param {Grammar} insert An object containing the key-value pairs to be inserted.\n\t\t\t * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the\n\t\t\t * object to be modified.\n\t\t\t *\n\t\t\t * Defaults to `Prism.languages`.\n\t\t\t * @returns {Grammar} The new grammar object.\n\t\t\t * @public\n\t\t\t */\n\t\t\tinsertBefore: function (inside, before, insert, root) {\n\t\t\t\troot = root || /** @type {any} */ (_.languages);\n\t\t\t\tvar grammar = root[inside];\n\t\t\t\t/** @type {Grammar} */\n\t\t\t\tvar ret = {};\n\n\t\t\t\tfor (var token in grammar) {\n\t\t\t\t\tif (grammar.hasOwnProperty(token)) {\n\n\t\t\t\t\t\tif (token == before) {\n\t\t\t\t\t\t\tfor (var newToken in insert) {\n\t\t\t\t\t\t\t\tif (insert.hasOwnProperty(newToken)) {\n\t\t\t\t\t\t\t\t\tret[newToken] = insert[newToken];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Do not insert token which also occur in insert. See #1525\n\t\t\t\t\t\tif (!insert.hasOwnProperty(token)) {\n\t\t\t\t\t\t\tret[token] = grammar[token];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tvar old = root[inside];\n\t\t\t\troot[inside] = ret;\n\n\t\t\t\t// Update references in other language definitions\n\t\t\t\t_.languages.DFS(_.languages, function (key, value) {\n\t\t\t\t\tif (value === old && key != inside) {\n\t\t\t\t\t\tthis[key] = ret;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\treturn ret;\n\t\t\t},\n\n\t\t\t// Traverse a language definition with Depth First Search\n\t\t\tDFS: function DFS(o, callback, type, visited) {\n\t\t\t\tvisited = visited || {};\n\n\t\t\t\tvar objId = _.util.objId;\n\n\t\t\t\tfor (var i in o) {\n\t\t\t\t\tif (o.hasOwnProperty(i)) {\n\t\t\t\t\t\tcallback.call(o, i, o[i], type || i);\n\n\t\t\t\t\t\tvar property = o[i];\n\t\t\t\t\t\tvar propertyType = _.util.type(property);\n\n\t\t\t\t\t\tif (propertyType === 'Object' && !visited[objId(property)]) {\n\t\t\t\t\t\t\tvisited[objId(property)] = true;\n\t\t\t\t\t\t\tDFS(property, callback, null, visited);\n\t\t\t\t\t\t} else if (propertyType === 'Array' && !visited[objId(property)]) {\n\t\t\t\t\t\t\tvisited[objId(property)] = true;\n\t\t\t\t\t\t\tDFS(property, callback, i, visited);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tplugins: {},\n\n\t\t/**\n\t\t * This is the most high-level function in Prism’s API.\n\t\t * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on\n\t\t * each one of them.\n\t\t *\n\t\t * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.\n\t\t *\n\t\t * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.\n\t\t * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thighlightAll: function (async, callback) {\n\t\t\t_.highlightAllUnder(document, async, callback);\n\t\t},\n\n\t\t/**\n\t\t * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls\n\t\t * {@link Prism.highlightElement} on each one of them.\n\t\t *\n\t\t * The following hooks will be run:\n\t\t * 1. `before-highlightall`\n\t\t * 2. `before-all-elements-highlight`\n\t\t * 3. All hooks of {@link Prism.highlightElement} for each element.\n\t\t *\n\t\t * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.\n\t\t * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.\n\t\t * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thighlightAllUnder: function (container, async, callback) {\n\t\t\tvar env = {\n\t\t\t\tcallback: callback,\n\t\t\t\tcontainer: container,\n\t\t\t\tselector: 'code[class*=\"language-\"], [class*=\"language-\"] code, code[class*=\"lang-\"], [class*=\"lang-\"] code'\n\t\t\t};\n\n\t\t\t_.hooks.run('before-highlightall', env);\n\n\t\t\tenv.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector));\n\n\t\t\t_.hooks.run('before-all-elements-highlight', env);\n\n\t\t\tfor (var i = 0, element; (element = env.elements[i++]);) {\n\t\t\t\t_.highlightElement(element, async === true, env.callback);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Highlights the code inside a single element.\n\t\t *\n\t\t * The following hooks will be run:\n\t\t * 1. `before-sanity-check`\n\t\t * 2. `before-highlight`\n\t\t * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.\n\t\t * 4. `before-insert`\n\t\t * 5. `after-highlight`\n\t\t * 6. `complete`\n\t\t *\n\t\t * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for\n\t\t * the element's language.\n\t\t *\n\t\t * @param {Element} element The element containing the code.\n\t\t * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.\n\t\t * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers\n\t\t * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is\n\t\t * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).\n\t\t *\n\t\t * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for\n\t\t * asynchronous highlighting to work. You can build your own bundle on the\n\t\t * [Download page](https://prismjs.com/download.html).\n\t\t * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.\n\t\t * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thighlightElement: function (element, async, callback) {\n\t\t\t// Find language\n\t\t\tvar language = _.util.getLanguage(element);\n\t\t\tvar grammar = _.languages[language];\n\n\t\t\t// Set language on the element, if not present\n\t\t\t_.util.setLanguage(element, language);\n\n\t\t\t// Set language on the parent, for styling\n\t\t\tvar parent = element.parentElement;\n\t\t\tif (parent && parent.nodeName.toLowerCase() === 'pre') {\n\t\t\t\t_.util.setLanguage(parent, language);\n\t\t\t}\n\n\t\t\tvar code = element.textContent;\n\n\t\t\tvar env = {\n\t\t\t\telement: element,\n\t\t\t\tlanguage: language,\n\t\t\t\tgrammar: grammar,\n\t\t\t\tcode: code\n\t\t\t};\n\n\t\t\tfunction insertHighlightedCode(highlightedCode) {\n\t\t\t\tenv.highlightedCode = highlightedCode;\n\n\t\t\t\t_.hooks.run('before-insert', env);\n\n\t\t\t\tenv.element.innerHTML = env.highlightedCode;\n\n\t\t\t\t_.hooks.run('after-highlight', env);\n\t\t\t\t_.hooks.run('complete', env);\n\t\t\t\tcallback && callback.call(env.element);\n\t\t\t}\n\n\t\t\t_.hooks.run('before-sanity-check', env);\n\n\t\t\t// plugins may change/add the parent/element\n\t\t\tparent = env.element.parentElement;\n\t\t\tif (parent && parent.nodeName.toLowerCase() === 'pre' && !parent.hasAttribute('tabindex')) {\n\t\t\t\tparent.setAttribute('tabindex', '0');\n\t\t\t}\n\n\t\t\tif (!env.code) {\n\t\t\t\t_.hooks.run('complete', env);\n\t\t\t\tcallback && callback.call(env.element);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t_.hooks.run('before-highlight', env);\n\n\t\t\tif (!env.grammar) {\n\t\t\t\tinsertHighlightedCode(_.util.encode(env.code));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (async && _self.Worker) {\n\t\t\t\tvar worker = new Worker(_.filename);\n\n\t\t\t\tworker.onmessage = function (evt) {\n\t\t\t\t\tinsertHighlightedCode(evt.data);\n\t\t\t\t};\n\n\t\t\t\tworker.postMessage(JSON.stringify({\n\t\t\t\t\tlanguage: env.language,\n\t\t\t\t\tcode: env.code,\n\t\t\t\t\timmediateClose: true\n\t\t\t\t}));\n\t\t\t} else {\n\t\t\t\tinsertHighlightedCode(_.highlight(env.code, env.grammar, env.language));\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Low-level function, only use if you know what you’re doing. It accepts a string of text as input\n\t\t * and the language definitions to use, and returns a string with the HTML produced.\n\t\t *\n\t\t * The following hooks will be run:\n\t\t * 1. `before-tokenize`\n\t\t * 2. `after-tokenize`\n\t\t * 3. `wrap`: On each {@link Token}.\n\t\t *\n\t\t * @param {string} text A string with the code to be highlighted.\n\t\t * @param {Grammar} grammar An object containing the tokens to use.\n\t\t *\n\t\t * Usually a language definition like `Prism.languages.markup`.\n\t\t * @param {string} language The name of the language definition passed to `grammar`.\n\t\t * @returns {string} The highlighted HTML.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t * @example\n\t\t * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');\n\t\t */\n\t\thighlight: function (text, grammar, language) {\n\t\t\tvar env = {\n\t\t\t\tcode: text,\n\t\t\t\tgrammar: grammar,\n\t\t\t\tlanguage: language\n\t\t\t};\n\t\t\t_.hooks.run('before-tokenize', env);\n\t\t\tif (!env.grammar) {\n\t\t\t\tthrow new Error('The language \"' + env.language + '\" has no grammar.');\n\t\t\t}\n\t\t\tenv.tokens = _.tokenize(env.code, env.grammar);\n\t\t\t_.hooks.run('after-tokenize', env);\n\t\t\treturn Token.stringify(_.util.encode(env.tokens), env.language);\n\t\t},\n\n\t\t/**\n\t\t * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input\n\t\t * and the language definitions to use, and returns an array with the tokenized code.\n\t\t *\n\t\t * When the language definition includes nested tokens, the function is called recursively on each of these tokens.\n\t\t *\n\t\t * This method could be useful in other contexts as well, as a very crude parser.\n\t\t *\n\t\t * @param {string} text A string with the code to be highlighted.\n\t\t * @param {Grammar} grammar An object containing the tokens to use.\n\t\t *\n\t\t * Usually a language definition like `Prism.languages.markup`.\n\t\t * @returns {TokenStream} An array of strings and tokens, a token stream.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t * @example\n\t\t * let code = `var foo = 0;`;\n\t\t * let tokens = Prism.tokenize(code, Prism.languages.javascript);\n\t\t * tokens.forEach(token => {\n\t\t * if (token instanceof Prism.Token && token.type === 'number') {\n\t\t * console.log(`Found numeric literal: ${token.content}`);\n\t\t * }\n\t\t * });\n\t\t */\n\t\ttokenize: function (text, grammar) {\n\t\t\tvar rest = grammar.rest;\n\t\t\tif (rest) {\n\t\t\t\tfor (var token in rest) {\n\t\t\t\t\tgrammar[token] = rest[token];\n\t\t\t\t}\n\n\t\t\t\tdelete grammar.rest;\n\t\t\t}\n\n\t\t\tvar tokenList = new LinkedList();\n\t\t\taddAfter(tokenList, tokenList.head, text);\n\n\t\t\tmatchGrammar(text, tokenList, grammar, tokenList.head, 0);\n\n\t\t\treturn toArray(tokenList);\n\t\t},\n\n\t\t/**\n\t\t * @namespace\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thooks: {\n\t\t\tall: {},\n\n\t\t\t/**\n\t\t\t * Adds the given callback to the list of callbacks for the given hook.\n\t\t\t *\n\t\t\t * The callback will be invoked when the hook it is registered for is run.\n\t\t\t * Hooks are usually directly run by a highlight function but you can also run hooks yourself.\n\t\t\t *\n\t\t\t * One callback function can be registered to multiple hooks and the same hook multiple times.\n\t\t\t *\n\t\t\t * @param {string} name The name of the hook.\n\t\t\t * @param {HookCallback} callback The callback function which is given environment variables.\n\t\t\t * @public\n\t\t\t */\n\t\t\tadd: function (name, callback) {\n\t\t\t\tvar hooks = _.hooks.all;\n\n\t\t\t\thooks[name] = hooks[name] || [];\n\n\t\t\t\thooks[name].push(callback);\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Runs a hook invoking all registered callbacks with the given environment variables.\n\t\t\t *\n\t\t\t * Callbacks will be invoked synchronously and in the order in which they were registered.\n\t\t\t *\n\t\t\t * @param {string} name The name of the hook.\n\t\t\t * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.\n\t\t\t * @public\n\t\t\t */\n\t\t\trun: function (name, env) {\n\t\t\t\tvar callbacks = _.hooks.all[name];\n\n\t\t\t\tif (!callbacks || !callbacks.length) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tfor (var i = 0, callback; (callback = callbacks[i++]);) {\n\t\t\t\t\tcallback(env);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tToken: Token\n\t};\n\t_self.Prism = _;\n\n\n\t// Typescript note:\n\t// The following can be used to import the Token type in JSDoc:\n\t//\n\t// @typedef {InstanceType<import(\"./prism-core\")[\"Token\"]>} Token\n\n\t/**\n\t * Creates a new token.\n\t *\n\t * @param {string} type See {@link Token#type type}\n\t * @param {string | TokenStream} content See {@link Token#content content}\n\t * @param {string|string[]} [alias] The alias(es) of the token.\n\t * @param {string} [matchedStr=\"\"] A copy of the full string this token was created from.\n\t * @class\n\t * @global\n\t * @public\n\t */\n\tfunction Token(type, content, alias, matchedStr) {\n\t\t/**\n\t\t * The type of the token.\n\t\t *\n\t\t * This is usually the key of a pattern in a {@link Grammar}.\n\t\t *\n\t\t * @type {string}\n\t\t * @see GrammarToken\n\t\t * @public\n\t\t */\n\t\tthis.type = type;\n\t\t/**\n\t\t * The strings or tokens contained by this token.\n\t\t *\n\t\t * This will be a token stream if the pattern matched also defined an `inside` grammar.\n\t\t *\n\t\t * @type {string | TokenStream}\n\t\t * @public\n\t\t */\n\t\tthis.content = content;\n\t\t/**\n\t\t * The alias(es) of the token.\n\t\t *\n\t\t * @type {string|string[]}\n\t\t * @see GrammarToken\n\t\t * @public\n\t\t */\n\t\tthis.alias = alias;\n\t\t// Copy of the full string this token was created from\n\t\tthis.length = (matchedStr || '').length | 0;\n\t}\n\n\t/**\n\t * A token stream is an array of strings and {@link Token Token} objects.\n\t *\n\t * Token streams have to fulfill a few properties that are assumed by most functions (mostly internal ones) that process\n\t * them.\n\t *\n\t * 1. No adjacent strings.\n\t * 2. No empty strings.\n\t *\n\t * The only exception here is the token stream that only contains the empty string and nothing else.\n\t *\n\t * @typedef {Array<string | Token>} TokenStream\n\t * @global\n\t * @public\n\t */\n\n\t/**\n\t * Converts the given token or token stream to an HTML representation.\n\t *\n\t * The following hooks will be run:\n\t * 1. `wrap`: On each {@link Token}.\n\t *\n\t * @param {string | Token | TokenStream} o The token or token stream to be converted.\n\t * @param {string} language The name of current language.\n\t * @returns {string} The HTML representation of the token or token stream.\n\t * @memberof Token\n\t * @static\n\t */\n\tToken.stringify = function stringify(o, language) {\n\t\tif (typeof o == 'string') {\n\t\t\treturn o;\n\t\t}\n\t\tif (Array.isArray(o)) {\n\t\t\tvar s = '';\n\t\t\to.forEach(function (e) {\n\t\t\t\ts += stringify(e, language);\n\t\t\t});\n\t\t\treturn s;\n\t\t}\n\n\t\tvar env = {\n\t\t\ttype: o.type,\n\t\t\tcontent: stringify(o.content, language),\n\t\t\ttag: 'span',\n\t\t\tclasses: ['token', o.type],\n\t\t\tattributes: {},\n\t\t\tlanguage: language\n\t\t};\n\n\t\tvar aliases = o.alias;\n\t\tif (aliases) {\n\t\t\tif (Array.isArray(aliases)) {\n\t\t\t\tArray.prototype.push.apply(env.classes, aliases);\n\t\t\t} else {\n\t\t\t\tenv.classes.push(aliases);\n\t\t\t}\n\t\t}\n\n\t\t_.hooks.run('wrap', env);\n\n\t\tvar attributes = '';\n\t\tfor (var name in env.attributes) {\n\t\t\tattributes += ' ' + name + '=\"' + (env.attributes[name] || '').replace(/\"/g, '"') + '\"';\n\t\t}\n\n\t\treturn '<' + env.tag + ' class=\"' + env.classes.join(' ') + '\"' + attributes + '>' + env.content + '</' + env.tag + '>';\n\t};\n\n\t/**\n\t * @param {RegExp} pattern\n\t * @param {number} pos\n\t * @param {string} text\n\t * @param {boolean} lookbehind\n\t * @returns {RegExpExecArray | null}\n\t */\n\tfunction matchPattern(pattern, pos, text, lookbehind) {\n\t\tpattern.lastIndex = pos;\n\t\tvar match = pattern.exec(text);\n\t\tif (match && lookbehind && match[1]) {\n\t\t\t// change the match to remove the text matched by the Prism lookbehind group\n\t\t\tvar lookbehindLength = match[1].length;\n\t\t\tmatch.index += lookbehindLength;\n\t\t\tmatch[0] = match[0].slice(lookbehindLength);\n\t\t}\n\t\treturn match;\n\t}\n\n\t/**\n\t * @param {string} text\n\t * @param {LinkedList<string | Token>} tokenList\n\t * @param {any} grammar\n\t * @param {LinkedListNode<string | Token>} startNode\n\t * @param {number} startPos\n\t * @param {RematchOptions} [rematch]\n\t * @returns {void}\n\t * @private\n\t *\n\t * @typedef RematchOptions\n\t * @property {string} cause\n\t * @property {number} reach\n\t */\n\tfunction matchGrammar(text, tokenList, grammar, startNode, startPos, rematch) {\n\t\tfor (var token in grammar) {\n\t\t\tif (!grammar.hasOwnProperty(token) || !grammar[token]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tvar patterns = grammar[token];\n\t\t\tpatterns = Array.isArray(patterns) ? patterns : [patterns];\n\n\t\t\tfor (var j = 0; j < patterns.length; ++j) {\n\t\t\t\tif (rematch && rematch.cause == token + ',' + j) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tvar patternObj = patterns[j];\n\t\t\t\tvar inside = patternObj.inside;\n\t\t\t\tvar lookbehind = !!patternObj.lookbehind;\n\t\t\t\tvar greedy = !!patternObj.greedy;\n\t\t\t\tvar alias = patternObj.alias;\n\n\t\t\t\tif (greedy && !patternObj.pattern.global) {\n\t\t\t\t\t// Without the global flag, lastIndex won't work\n\t\t\t\t\tvar flags = patternObj.pattern.toString().match(/[imsuy]*$/)[0];\n\t\t\t\t\tpatternObj.pattern = RegExp(patternObj.pattern.source, flags + 'g');\n\t\t\t\t}\n\n\t\t\t\t/** @type {RegExp} */\n\t\t\t\tvar pattern = patternObj.pattern || patternObj;\n\n\t\t\t\tfor ( // iterate the token list and keep track of the current token/string position\n\t\t\t\t\tvar currentNode = startNode.next, pos = startPos;\n\t\t\t\t\tcurrentNode !== tokenList.tail;\n\t\t\t\t\tpos += currentNode.value.length, currentNode = currentNode.next\n\t\t\t\t) {\n\n\t\t\t\t\tif (rematch && pos >= rematch.reach) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar str = currentNode.value;\n\n\t\t\t\t\tif (tokenList.length > text.length) {\n\t\t\t\t\t\t// Something went terribly wrong, ABORT, ABORT!\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (str instanceof Token) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar removeCount = 1; // this is the to parameter of removeBetween\n\t\t\t\t\tvar match;\n\n\t\t\t\t\tif (greedy) {\n\t\t\t\t\t\tmatch = matchPattern(pattern, pos, text, lookbehind);\n\t\t\t\t\t\tif (!match || match.index >= text.length) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar from = match.index;\n\t\t\t\t\t\tvar to = match.index + match[0].length;\n\t\t\t\t\t\tvar p = pos;\n\n\t\t\t\t\t\t// find the node that contains the match\n\t\t\t\t\t\tp += currentNode.value.length;\n\t\t\t\t\t\twhile (from >= p) {\n\t\t\t\t\t\t\tcurrentNode = currentNode.next;\n\t\t\t\t\t\t\tp += currentNode.value.length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// adjust pos (and p)\n\t\t\t\t\t\tp -= currentNode.value.length;\n\t\t\t\t\t\tpos = p;\n\n\t\t\t\t\t\t// the current node is a Token, then the match starts inside another Token, which is invalid\n\t\t\t\t\t\tif (currentNode.value instanceof Token) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// find the last node which is affected by this match\n\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\tvar k = currentNode;\n\t\t\t\t\t\t\tk !== tokenList.tail && (p < to || typeof k.value === 'string');\n\t\t\t\t\t\t\tk = k.next\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tremoveCount++;\n\t\t\t\t\t\t\tp += k.value.length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tremoveCount--;\n\n\t\t\t\t\t\t// replace with the new match\n\t\t\t\t\t\tstr = text.slice(pos, p);\n\t\t\t\t\t\tmatch.index -= pos;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmatch = matchPattern(pattern, 0, str, lookbehind);\n\t\t\t\t\t\tif (!match) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// eslint-disable-next-line no-redeclare\n\t\t\t\t\tvar from = match.index;\n\t\t\t\t\tvar matchStr = match[0];\n\t\t\t\t\tvar before = str.slice(0, from);\n\t\t\t\t\tvar after = str.slice(from + matchStr.length);\n\n\t\t\t\t\tvar reach = pos + str.length;\n\t\t\t\t\tif (rematch && reach > rematch.reach) {\n\t\t\t\t\t\trematch.reach = reach;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar removeFrom = currentNode.prev;\n\n\t\t\t\t\tif (before) {\n\t\t\t\t\t\tremoveFrom = addAfter(tokenList, removeFrom, before);\n\t\t\t\t\t\tpos += before.length;\n\t\t\t\t\t}\n\n\t\t\t\t\tremoveRange(tokenList, removeFrom, removeCount);\n\n\t\t\t\t\tvar wrapped = new Token(token, inside ? _.tokenize(matchStr, inside) : matchStr, alias, matchStr);\n\t\t\t\t\tcurrentNode = addAfter(tokenList, removeFrom, wrapped);\n\n\t\t\t\t\tif (after) {\n\t\t\t\t\t\taddAfter(tokenList, currentNode, after);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (removeCount > 1) {\n\t\t\t\t\t\t// at least one Token object was removed, so we have to do some rematching\n\t\t\t\t\t\t// this can only happen if the current pattern is greedy\n\n\t\t\t\t\t\t/** @type {RematchOptions} */\n\t\t\t\t\t\tvar nestedRematch = {\n\t\t\t\t\t\t\tcause: token + ',' + j,\n\t\t\t\t\t\t\treach: reach\n\t\t\t\t\t\t};\n\t\t\t\t\t\tmatchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch);\n\n\t\t\t\t\t\t// the reach might have been extended because of the rematching\n\t\t\t\t\t\tif (rematch && nestedRematch.reach > rematch.reach) {\n\t\t\t\t\t\t\trematch.reach = nestedRematch.reach;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @typedef LinkedListNode\n\t * @property {T} value\n\t * @property {LinkedListNode<T> | null} prev The previous node.\n\t * @property {LinkedListNode<T> | null} next The next node.\n\t * @template T\n\t * @private\n\t */\n\n\t/**\n\t * @template T\n\t * @private\n\t */\n\tfunction LinkedList() {\n\t\t/** @type {LinkedListNode<T>} */\n\t\tvar head = { value: null, prev: null, next: null };\n\t\t/** @type {LinkedListNode<T>} */\n\t\tvar tail = { value: null, prev: head, next: null };\n\t\thead.next = tail;\n\n\t\t/** @type {LinkedListNode<T>} */\n\t\tthis.head = head;\n\t\t/** @type {LinkedListNode<T>} */\n\t\tthis.tail = tail;\n\t\tthis.length = 0;\n\t}\n\n\t/**\n\t * Adds a new node with the given value to the list.\n\t *\n\t * @param {LinkedList<T>} list\n\t * @param {LinkedListNode<T>} node\n\t * @param {T} value\n\t * @returns {LinkedListNode<T>} The added node.\n\t * @template T\n\t */\n\tfunction addAfter(list, node, value) {\n\t\t// assumes that node != list.tail && values.length >= 0\n\t\tvar next = node.next;\n\n\t\tvar newNode = { value: value, prev: node, next: next };\n\t\tnode.next = newNode;\n\t\tnext.prev = newNode;\n\t\tlist.length++;\n\n\t\treturn newNode;\n\t}\n\t/**\n\t * Removes `count` nodes after the given node. The given node will not be removed.\n\t *\n\t * @param {LinkedList<T>} list\n\t * @param {LinkedListNode<T>} node\n\t * @param {number} count\n\t * @template T\n\t */\n\tfunction removeRange(list, node, count) {\n\t\tvar next = node.next;\n\t\tfor (var i = 0; i < count && next !== list.tail; i++) {\n\t\t\tnext = next.next;\n\t\t}\n\t\tnode.next = next;\n\t\tnext.prev = node;\n\t\tlist.length -= i;\n\t}\n\t/**\n\t * @param {LinkedList<T>} list\n\t * @returns {T[]}\n\t * @template T\n\t */\n\tfunction toArray(list) {\n\t\tvar array = [];\n\t\tvar node = list.head.next;\n\t\twhile (node !== list.tail) {\n\t\t\tarray.push(node.value);\n\t\t\tnode = node.next;\n\t\t}\n\t\treturn array;\n\t}\n\n\n\tif (!_self.document) {\n\t\tif (!_self.addEventListener) {\n\t\t\t// in Node.js\n\t\t\treturn _;\n\t\t}\n\n\t\tif (!_.disableWorkerMessageHandler) {\n\t\t\t// In worker\n\t\t\t_self.addEventListener('message', function (evt) {\n\t\t\t\tvar message = JSON.parse(evt.data);\n\t\t\t\tvar lang = message.language;\n\t\t\t\tvar code = message.code;\n\t\t\t\tvar immediateClose = message.immediateClose;\n\n\t\t\t\t_self.postMessage(_.highlight(code, _.languages[lang], lang));\n\t\t\t\tif (immediateClose) {\n\t\t\t\t\t_self.close();\n\t\t\t\t}\n\t\t\t}, false);\n\t\t}\n\n\t\treturn _;\n\t}\n\n\t// Get current script and highlight\n\tvar script = _.util.currentScript();\n\n\tif (script) {\n\t\t_.filename = script.src;\n\n\t\tif (script.hasAttribute('data-manual')) {\n\t\t\t_.manual = true;\n\t\t}\n\t}\n\n\tfunction highlightAutomaticallyCallback() {\n\t\tif (!_.manual) {\n\t\t\t_.highlightAll();\n\t\t}\n\t}\n\n\tif (!_.manual) {\n\t\t// If the document state is \"loading\", then we'll use DOMContentLoaded.\n\t\t// If the document state is \"interactive\" and the prism.js script is deferred, then we'll also use the\n\t\t// DOMContentLoaded event because there might be some plugins or languages which have also been deferred and they\n\t\t// might take longer one animation frame to execute which can create a race condition where only some plugins have\n\t\t// been loaded when Prism.highlightAll() is executed, depending on how fast resources are loaded.\n\t\t// See https://github.com/PrismJS/prism/issues/2102\n\t\tvar readyState = document.readyState;\n\t\tif (readyState === 'loading' || readyState === 'interactive' && script && script.defer) {\n\t\t\tdocument.addEventListener('DOMContentLoaded', highlightAutomaticallyCallback);\n\t\t} else {\n\t\t\tif (window.requestAnimationFrame) {\n\t\t\t\twindow.requestAnimationFrame(highlightAutomaticallyCallback);\n\t\t\t} else {\n\t\t\t\twindow.setTimeout(highlightAutomaticallyCallback, 16);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn _;\n\n}(_self));\n\nif (typeof module !== 'undefined' && module.exports) {\n\tmodule.exports = Prism;\n}\n\n// hack for components to work correctly in node.js\nif (typeof global !== 'undefined') {\n\tglobal.Prism = Prism;\n}\n\n// some additional documentation/types\n\n/**\n * The expansion of a simple `RegExp` literal to support additional properties.\n *\n * @typedef GrammarToken\n * @property {RegExp} pattern The regular expression of the token.\n * @property {boolean} [lookbehind=false] If `true`, then the first capturing group of `pattern` will (effectively)\n * behave as a lookbehind group meaning that the captured text will not be part of the matched text of the new token.\n * @property {boolean} [greedy=false] Whether the token is greedy.\n * @property {string|string[]} [alias] An optional alias or list of aliases.\n * @property {Grammar} [inside] The nested grammar of this token.\n *\n * The `inside` grammar will be used to tokenize the text value of each token of this kind.\n *\n * This can be used to make nested and even recursive language definitions.\n *\n * Note: This can cause infinite recursion. Be careful when you embed different languages or even the same language into\n * each another.\n * @global\n * @public\n */\n\n/**\n * @typedef Grammar\n * @type {Object<string, RegExp | GrammarToken | Array<RegExp | GrammarToken>>}\n * @property {Grammar} [rest] An optional grammar object that will be appended to this grammar.\n * @global\n * @public\n */\n\n/**\n * A function which will invoked after an element was successfully highlighted.\n *\n * @callback HighlightCallback\n * @param {Element} element The element successfully highlighted.\n * @returns {void}\n * @global\n * @public\n */\n\n/**\n * @callback HookCallback\n * @param {Object<string, any>} env The environment variables of the hook.\n * @returns {void}\n * @global\n * @public\n */\n","Prism.languages.markup = {\n\t'comment': {\n\t\tpattern: /<!--(?:(?!<!--)[\\s\\S])*?-->/,\n\t\tgreedy: true\n\t},\n\t'prolog': {\n\t\tpattern: /<\\?[\\s\\S]+?\\?>/,\n\t\tgreedy: true\n\t},\n\t'doctype': {\n\t\t// https://www.w3.org/TR/xml/#NT-doctypedecl\n\t\tpattern: /<!DOCTYPE(?:[^>\"'[\\]]|\"[^\"]*\"|'[^']*')+(?:\\[(?:[^<\"'\\]]|\"[^\"]*\"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\\]\\s*)?>/i,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'internal-subset': {\n\t\t\t\tpattern: /(^[^\\[]*\\[)[\\s\\S]+(?=\\]>$)/,\n\t\t\t\tlookbehind: true,\n\t\t\t\tgreedy: true,\n\t\t\t\tinside: null // see below\n\t\t\t},\n\t\t\t'string': {\n\t\t\t\tpattern: /\"[^\"]*\"|'[^']*'/,\n\t\t\t\tgreedy: true\n\t\t\t},\n\t\t\t'punctuation': /^<!|>$|[[\\]]/,\n\t\t\t'doctype-tag': /^DOCTYPE/i,\n\t\t\t'name': /[^\\s<>'\"]+/\n\t\t}\n\t},\n\t'cdata': {\n\t\tpattern: /<!\\[CDATA\\[[\\s\\S]*?\\]\\]>/i,\n\t\tgreedy: true\n\t},\n\t'tag': {\n\t\tpattern: /<\\/?(?!\\d)[^\\s>\\/=$<%]+(?:\\s(?:\\s*[^\\s>\\/=]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))|(?=[\\s/>])))+)?\\s*\\/?>/,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'tag': {\n\t\t\t\tpattern: /^<\\/?[^\\s>\\/]+/,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': /^<\\/?/,\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t},\n\t\t\t'special-attr': [],\n\t\t\t'attr-value': {\n\t\t\t\tpattern: /=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+)/,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpattern: /^=/,\n\t\t\t\t\t\t\talias: 'attr-equals'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpattern: /^(\\s*)[\"']|[\"']$/,\n\t\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t},\n\t\t\t'punctuation': /\\/?>/,\n\t\t\t'attr-name': {\n\t\t\t\tpattern: /[^\\s>\\/]+/,\n\t\t\t\tinside: {\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t},\n\t'entity': [\n\t\t{\n\t\t\tpattern: /&[\\da-z]{1,8};/i,\n\t\t\talias: 'named-entity'\n\t\t},\n\t\t/&#x?[\\da-f]{1,8};/i\n\t]\n};\n\nPrism.languages.markup['tag'].inside['attr-value'].inside['entity'] =\n\tPrism.languages.markup['entity'];\nPrism.languages.markup['doctype'].inside['internal-subset'].inside = Prism.languages.markup;\n\n// Plugin to make entity title show the real entity, idea by Roman Komarov\nPrism.hooks.add('wrap', function (env) {\n\n\tif (env.type === 'entity') {\n\t\tenv.attributes['title'] = env.content.replace(/&/, '&');\n\t}\n});\n\nObject.defineProperty(Prism.languages.markup.tag, 'addInlined', {\n\t/**\n\t * Adds an inlined language to markup.\n\t *\n\t * An example of an inlined language is CSS with `<style>` tags.\n\t *\n\t * @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as\n\t * case insensitive.\n\t * @param {string} lang The language key.\n\t * @example\n\t * addInlined('style', 'css');\n\t */\n\tvalue: function addInlined(tagName, lang) {\n\t\tvar includedCdataInside = {};\n\t\tincludedCdataInside['language-' + lang] = {\n\t\t\tpattern: /(^<!\\[CDATA\\[)[\\s\\S]+?(?=\\]\\]>$)/i,\n\t\t\tlookbehind: true,\n\t\t\tinside: Prism.languages[lang]\n\t\t};\n\t\tincludedCdataInside['cdata'] = /^<!\\[CDATA\\[|\\]\\]>$/i;\n\n\t\tvar inside = {\n\t\t\t'included-cdata': {\n\t\t\t\tpattern: /<!\\[CDATA\\[[\\s\\S]*?\\]\\]>/i,\n\t\t\t\tinside: includedCdataInside\n\t\t\t}\n\t\t};\n\t\tinside['language-' + lang] = {\n\t\t\tpattern: /[\\s\\S]+/,\n\t\t\tinside: Prism.languages[lang]\n\t\t};\n\n\t\tvar def = {};\n\t\tdef[tagName] = {\n\t\t\tpattern: RegExp(/(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)/.source.replace(/__/g, function () { return tagName; }), 'i'),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: inside\n\t\t};\n\n\t\tPrism.languages.insertBefore('markup', 'cdata', def);\n\t}\n});\nObject.defineProperty(Prism.languages.markup.tag, 'addAttribute', {\n\t/**\n\t * Adds an pattern to highlight languages embedded in HTML attributes.\n\t *\n\t * An example of an inlined language is CSS with `style` attributes.\n\t *\n\t * @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as\n\t * case insensitive.\n\t * @param {string} lang The language key.\n\t * @example\n\t * addAttribute('style', 'css');\n\t */\n\tvalue: function (attrName, lang) {\n\t\tPrism.languages.markup.tag.inside['special-attr'].push({\n\t\t\tpattern: RegExp(\n\t\t\t\t/(^|[\"'\\s])/.source + '(?:' + attrName + ')' + /\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))/.source,\n\t\t\t\t'i'\n\t\t\t),\n\t\t\tlookbehind: true,\n\t\t\tinside: {\n\t\t\t\t'attr-name': /^[^\\s=]+/,\n\t\t\t\t'attr-value': {\n\t\t\t\t\tpattern: /=[\\s\\S]+/,\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'value': {\n\t\t\t\t\t\t\tpattern: /(^=\\s*([\"']|(?![\"'])))\\S[\\s\\S]*(?=\\2$)/,\n\t\t\t\t\t\t\tlookbehind: true,\n\t\t\t\t\t\t\talias: [lang, 'language-' + lang],\n\t\t\t\t\t\t\tinside: Prism.languages[lang]\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'punctuation': [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpattern: /^=/,\n\t\t\t\t\t\t\t\talias: 'attr-equals'\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t/\"|'/\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n});\n\nPrism.languages.html = Prism.languages.markup;\nPrism.languages.mathml = Prism.languages.markup;\nPrism.languages.svg = Prism.languages.markup;\n\nPrism.languages.xml = Prism.languages.extend('markup', {});\nPrism.languages.ssml = Prism.languages.xml;\nPrism.languages.atom = Prism.languages.xml;\nPrism.languages.rss = Prism.languages.xml;\n","(function (Prism) {\n\n\t// Allow only one line break\n\tvar inner = /(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))/.source;\n\n\t/**\n\t * This function is intended for the creation of the bold or italic pattern.\n\t *\n\t * This also adds a lookbehind group to the given pattern to ensure that the pattern is not backslash-escaped.\n\t *\n\t * _Note:_ Keep in mind that this adds a capturing group.\n\t *\n\t * @param {string} pattern\n\t * @returns {RegExp}\n\t */\n\tfunction createInline(pattern) {\n\t\tpattern = pattern.replace(/<inner>/g, function () { return inner; });\n\t\treturn RegExp(/((?:^|[^\\\\])(?:\\\\{2})*)/.source + '(?:' + pattern + ')');\n\t}\n\n\n\tvar tableCell = /(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+/.source;\n\tvar tableRow = /\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))/.source.replace(/__/g, function () { return tableCell; });\n\tvar tableLine = /\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)/.source;\n\n\n\tPrism.languages.markdown = Prism.languages.extend('markup', {});\n\tPrism.languages.insertBefore('markdown', 'prolog', {\n\t\t'front-matter-block': {\n\t\t\tpattern: /(^(?:\\s*[\\r\\n])?)---(?!.)[\\s\\S]*?[\\r\\n]---(?!.)/,\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'punctuation': /^---|---$/,\n\t\t\t\t'front-matter': {\n\t\t\t\t\tpattern: /\\S+(?:\\s+\\S+)*/,\n\t\t\t\t\talias: ['yaml', 'language-yaml'],\n\t\t\t\t\tinside: Prism.languages.yaml\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t'blockquote': {\n\t\t\t// > ...\n\t\t\tpattern: /^>(?:[\\t ]*>)*/m,\n\t\t\talias: 'punctuation'\n\t\t},\n\t\t'table': {\n\t\t\tpattern: RegExp('^' + tableRow + tableLine + '(?:' + tableRow + ')*', 'm'),\n\t\t\tinside: {\n\t\t\t\t'table-data-rows': {\n\t\t\t\t\tpattern: RegExp('^(' + tableRow + tableLine + ')(?:' + tableRow + ')*$'),\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'table-data': {\n\t\t\t\t\t\t\tpattern: RegExp(tableCell),\n\t\t\t\t\t\t\tinside: Prism.languages.markdown\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'punctuation': /\\|/\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t'table-line': {\n\t\t\t\t\tpattern: RegExp('^(' + tableRow + ')' + tableLine + '$'),\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'punctuation': /\\||:?-{3,}:?/\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t'table-header-row': {\n\t\t\t\t\tpattern: RegExp('^' + tableRow + '$'),\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'table-header': {\n\t\t\t\t\t\t\tpattern: RegExp(tableCell),\n\t\t\t\t\t\t\talias: 'important',\n\t\t\t\t\t\t\tinside: Prism.languages.markdown\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'punctuation': /\\|/\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t'code': [\n\t\t\t{\n\t\t\t\t// Prefixed by 4 spaces or 1 tab and preceded by an empty line\n\t\t\t\tpattern: /((?:^|\\n)[ \\t]*\\n|(?:^|\\r\\n?)[ \\t]*\\r\\n?)(?: {4}|\\t).+(?:(?:\\n|\\r\\n?)(?: {4}|\\t).+)*/,\n\t\t\t\tlookbehind: true,\n\t\t\t\talias: 'keyword'\n\t\t\t},\n\t\t\t{\n\t\t\t\t// ```optional language\n\t\t\t\t// code block\n\t\t\t\t// ```\n\t\t\t\tpattern: /^```[\\s\\S]*?^```$/m,\n\t\t\t\tgreedy: true,\n\t\t\t\tinside: {\n\t\t\t\t\t'code-block': {\n\t\t\t\t\t\tpattern: /^(```.*(?:\\n|\\r\\n?))[\\s\\S]+?(?=(?:\\n|\\r\\n?)^```$)/m,\n\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t},\n\t\t\t\t\t'code-language': {\n\t\t\t\t\t\tpattern: /^(```).+/,\n\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t},\n\t\t\t\t\t'punctuation': /```/\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\t'title': [\n\t\t\t{\n\t\t\t\t// title 1\n\t\t\t\t// =======\n\n\t\t\t\t// title 2\n\t\t\t\t// -------\n\t\t\t\tpattern: /\\S.*(?:\\n|\\r\\n?)(?:==+|--+)(?=[ \\t]*$)/m,\n\t\t\t\talias: 'important',\n\t\t\t\tinside: {\n\t\t\t\t\tpunctuation: /==+$|--+$/\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\t// # title 1\n\t\t\t\t// ###### title 6\n\t\t\t\tpattern: /(^\\s*)#.+/m,\n\t\t\t\tlookbehind: true,\n\t\t\t\talias: 'important',\n\t\t\t\tinside: {\n\t\t\t\t\tpunctuation: /^#+|#+$/\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\t'hr': {\n\t\t\t// ***\n\t\t\t// ---\n\t\t\t// * * *\n\t\t\t// -----------\n\t\t\tpattern: /(^\\s*)([*-])(?:[\\t ]*\\2){2,}(?=\\s*$)/m,\n\t\t\tlookbehind: true,\n\t\t\talias: 'punctuation'\n\t\t},\n\t\t'list': {\n\t\t\t// * item\n\t\t\t// + item\n\t\t\t// - item\n\t\t\t// 1. item\n\t\t\tpattern: /(^\\s*)(?:[*+-]|\\d+\\.)(?=[\\t ].)/m,\n\t\t\tlookbehind: true,\n\t\t\talias: 'punctuation'\n\t\t},\n\t\t'url-reference': {\n\t\t\t// [id]: http://example.com \"Optional title\"\n\t\t\t// [id]: http://example.com 'Optional title'\n\t\t\t// [id]: http://example.com (Optional title)\n\t\t\t// [id]: <http://example.com> \"Optional title\"\n\t\t\tpattern: /!?\\[[^\\]]+\\]:[\\t ]+(?:\\S+|<(?:\\\\.|[^>\\\\])+>)(?:[\\t ]+(?:\"(?:\\\\.|[^\"\\\\])*\"|'(?:\\\\.|[^'\\\\])*'|\\((?:\\\\.|[^)\\\\])*\\)))?/,\n\t\t\tinside: {\n\t\t\t\t'variable': {\n\t\t\t\t\tpattern: /^(!?\\[)[^\\]]+/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t},\n\t\t\t\t'string': /(?:\"(?:\\\\.|[^\"\\\\])*\"|'(?:\\\\.|[^'\\\\])*'|\\((?:\\\\.|[^)\\\\])*\\))$/,\n\t\t\t\t'punctuation': /^[\\[\\]!:]|[<>]/\n\t\t\t},\n\t\t\talias: 'url'\n\t\t},\n\t\t'bold': {\n\t\t\t// **strong**\n\t\t\t// __strong__\n\n\t\t\t// allow one nested instance of italic text using the same delimiter\n\t\t\tpattern: createInline(/\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^..)[\\s\\S]+(?=..$)/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'punctuation': /\\*\\*|__/\n\t\t\t}\n\t\t},\n\t\t'italic': {\n\t\t\t// *em*\n\t\t\t// _em_\n\n\t\t\t// allow one nested instance of bold text using the same delimiter\n\t\t\tpattern: createInline(/\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^.)[\\s\\S]+(?=.$)/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'punctuation': /[*_]/\n\t\t\t}\n\t\t},\n\t\t'strike': {\n\t\t\t// ~~strike through~~\n\t\t\t// ~strike~\n\t\t\t// eslint-disable-next-line regexp/strict\n\t\t\tpattern: createInline(/(~~?)(?:(?!~)<inner>)+\\2/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^~~?)[\\s\\S]+(?=\\1$)/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'punctuation': /~~?/\n\t\t\t}\n\t\t},\n\t\t'code-snippet': {\n\t\t\t// `code`\n\t\t\t// ``code``\n\t\t\tpattern: /(^|[^\\\\`])(?:``[^`\\r\\n]+(?:`[^`\\r\\n]+)*``(?!`)|`[^`\\r\\n]+`(?!`))/,\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\talias: ['code', 'keyword']\n\t\t},\n\t\t'url': {\n\t\t\t// [example](http://example.com \"Optional title\")\n\t\t\t// [example][id]\n\t\t\t// [example] [id]\n\t\t\tpattern: createInline(/!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+\"(?:\\\\.|[^\"\\\\])*\")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'operator': /^!/,\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^\\[)[^\\]]+(?=\\])/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'variable': {\n\t\t\t\t\tpattern: /(^\\][ \\t]?\\[)[^\\]]+(?=\\]$)/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t},\n\t\t\t\t'url': {\n\t\t\t\t\tpattern: /(^\\]\\()[^\\s)]+/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t},\n\t\t\t\t'string': {\n\t\t\t\t\tpattern: /(^[ \\t]+)\"(?:\\\\.|[^\"\\\\])*\"(?=\\)$)/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\t['url', 'bold', 'italic', 'strike'].forEach(function (token) {\n\t\t['url', 'bold', 'italic', 'strike', 'code-snippet'].forEach(function (inside) {\n\t\t\tif (token !== inside) {\n\t\t\t\tPrism.languages.markdown[token].inside.content.inside[inside] = Prism.languages.markdown[inside];\n\t\t\t}\n\t\t});\n\t});\n\n\tPrism.hooks.add('after-tokenize', function (env) {\n\t\tif (env.language !== 'markdown' && env.language !== 'md') {\n\t\t\treturn;\n\t\t}\n\n\t\tfunction walkTokens(tokens) {\n\t\t\tif (!tokens || typeof tokens === 'string') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor (var i = 0, l = tokens.length; i < l; i++) {\n\t\t\t\tvar token = tokens[i];\n\n\t\t\t\tif (token.type !== 'code') {\n\t\t\t\t\twalkTokens(token.content);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * Add the correct `language-xxxx` class to this code block. Keep in mind that the `code-language` token\n\t\t\t\t * is optional. But the grammar is defined so that there is only one case we have to handle:\n\t\t\t\t *\n\t\t\t\t * token.content = [\n\t\t\t\t * <span class=\"punctuation\">```</span>,\n\t\t\t\t * <span class=\"code-language\">xxxx</span>,\n\t\t\t\t * '\\n', // exactly one new lines (\\r or \\n or \\r\\n)\n\t\t\t\t * <span class=\"code-block\">...</span>,\n\t\t\t\t * '\\n', // exactly one new lines again\n\t\t\t\t * <span class=\"punctuation\">```</span>\n\t\t\t\t * ];\n\t\t\t\t */\n\n\t\t\t\tvar codeLang = token.content[1];\n\t\t\t\tvar codeBlock = token.content[3];\n\n\t\t\t\tif (codeLang && codeBlock &&\n\t\t\t\t\tcodeLang.type === 'code-language' && codeBlock.type === 'code-block' &&\n\t\t\t\t\ttypeof codeLang.content === 'string') {\n\n\t\t\t\t\t// this might be a language that Prism does not support\n\n\t\t\t\t\t// do some replacements to support C++, C#, and F#\n\t\t\t\t\tvar lang = codeLang.content.replace(/\\b#/g, 'sharp').replace(/\\b\\+\\+/g, 'pp');\n\t\t\t\t\t// only use the first word\n\t\t\t\t\tlang = (/[a-z][\\w-]*/i.exec(lang) || [''])[0].toLowerCase();\n\t\t\t\t\tvar alias = 'language-' + lang;\n\n\t\t\t\t\t// add alias\n\t\t\t\t\tif (!codeBlock.alias) {\n\t\t\t\t\t\tcodeBlock.alias = [alias];\n\t\t\t\t\t} else if (typeof codeBlock.alias === 'string') {\n\t\t\t\t\t\tcodeBlock.alias = [codeBlock.alias, alias];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcodeBlock.alias.push(alias);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\twalkTokens(env.tokens);\n\t});\n\n\tPrism.hooks.add('wrap', function (env) {\n\t\tif (env.type !== 'code-block') {\n\t\t\treturn;\n\t\t}\n\n\t\tvar codeLang = '';\n\t\tfor (var i = 0, l = env.classes.length; i < l; i++) {\n\t\t\tvar cls = env.classes[i];\n\t\t\tvar match = /language-(.+)/.exec(cls);\n\t\t\tif (match) {\n\t\t\t\tcodeLang = match[1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tvar grammar = Prism.languages[codeLang];\n\n\t\tif (!grammar) {\n\t\t\tif (codeLang && codeLang !== 'none' && Prism.plugins.autoloader) {\n\t\t\t\tvar id = 'md-' + new Date().valueOf() + '-' + Math.floor(Math.random() * 1e16);\n\t\t\t\tenv.attributes['id'] = id;\n\n\t\t\t\tPrism.plugins.autoloader.loadLanguages(codeLang, function () {\n\t\t\t\t\tvar ele = document.getElementById(id);\n\t\t\t\t\tif (ele) {\n\t\t\t\t\t\tele.innerHTML = Prism.highlight(ele.textContent, Prism.languages[codeLang], codeLang);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tenv.content = Prism.highlight(textContent(env.content), grammar, codeLang);\n\t\t}\n\t});\n\n\tvar tagPattern = RegExp(Prism.languages.markup.tag.pattern.source, 'gi');\n\n\t/**\n\t * A list of known entity names.\n\t *\n\t * This will always be incomplete to save space. The current list is the one used by lowdash's unescape function.\n\t *\n\t * @see {@link https://github.com/lodash/lodash/blob/2da024c3b4f9947a48517639de7560457cd4ec6c/unescape.js#L2}\n\t */\n\tvar KNOWN_ENTITY_NAMES = {\n\t\t'amp': '&',\n\t\t'lt': '<',\n\t\t'gt': '>',\n\t\t'quot': '\"',\n\t};\n\n\t// IE 11 doesn't support `String.fromCodePoint`\n\tvar fromCodePoint = String.fromCodePoint || String.fromCharCode;\n\n\t/**\n\t * Returns the text content of a given HTML source code string.\n\t *\n\t * @param {string} html\n\t * @returns {string}\n\t */\n\tfunction textContent(html) {\n\t\t// remove all tags\n\t\tvar text = html.replace(tagPattern, '');\n\n\t\t// decode known entities\n\t\ttext = text.replace(/&(\\w{1,8}|#x?[\\da-f]{1,8});/gi, function (m, code) {\n\t\t\tcode = code.toLowerCase();\n\n\t\t\tif (code[0] === '#') {\n\t\t\t\tvar value;\n\t\t\t\tif (code[1] === 'x') {\n\t\t\t\t\tvalue = parseInt(code.slice(2), 16);\n\t\t\t\t} else {\n\t\t\t\t\tvalue = Number(code.slice(1));\n\t\t\t\t}\n\n\t\t\t\treturn fromCodePoint(value);\n\t\t\t} else {\n\t\t\t\tvar known = KNOWN_ENTITY_NAMES[code];\n\t\t\t\tif (known) {\n\t\t\t\t\treturn known;\n\t\t\t\t}\n\n\t\t\t\t// unable to decode\n\t\t\t\treturn m;\n\t\t\t}\n\t\t});\n\n\t\treturn text;\n\t}\n\n\tPrism.languages.md = Prism.languages.markdown;\n\n}(Prism));\n","import anime from 'animejs/lib/anime.es.js';\nconst notifcation = document.querySelector('.notify-message');\nconst notify = document.getElementById('notify-message');\nconst responseText = document.querySelector('.response-text');\nconst notifyText = document.querySelector('.notify-text');\nconst notifyIcons = document.querySelector('.notify-icons');\n//const notifyProgress = document.getElementById('notify-progress');\nconst iconGood = document.querySelector('.notify-good');\nconst iconNotGood = document.querySelector('.notify-notgood');\nconst iconWorking = document.querySelector('.notify-working');\n\nexport default class Notfications {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\n\talert(text, status) {\n\t\ticonWorking.style.display = 'none';\n\t\ticonGood.style.display = 'none';\n\t\ticonNotGood.style.display = 'none';\n\n\t\tvar color = '';\n\t\tresponseText.innerHTML = text;\n\t\tif (status !== null) {\n\t\t\tif (status) {\n\t\t\t\tcolor = '#32cd32';\n\t\t\t\ticonWorking.style.display = 'none';\n\t\t\t\ticonGood.style.display = 'block';\n\t\t\t} else {\n\t\t\t\tcolor = '#F64747';\n\t\t\t\ticonWorking.style.display = 'none';\n\t\t\t\ticonNotGood.style.display = 'block';\n\t\t\t}\n\t\t} else {\n\t\t\tcolor = '#200317';\n\t\t\ticonWorking.style.display = 'block';\n\t\t}\n\n\t\tnew anime({\n\t\t\ttargets: document.querySelector('.top-nav'),\n\t\t\trotateX: '180deg',\n\t\t\teasing: 'easeOutQuint'\n\t\t});\n\n\t\tnew anime({\n\t\t\ttargets: document.querySelector('.notify'),\n\t\t\trotateX: '10deg',\n\t\t\teasing: 'easeOutQuint',\n\t\t\tcomplete: () => {\n\t\t\t\tnew anime({\n\t\t\t\t\ttargets: notifyIcons,\n\t\t\t\t\twidth: 39,\n\t\t\t\t\topacity: 1,\n\t\t\t\t\teasing: 'easeInQuint',\n\t\t\t\t\tduration: 300\n\t\t\t\t});\n\n\t\t\t\tnew anime({\n\t\t\t\t\ttargets: notifyText,\n\t\t\t\t\tbackgroundColor: color,\n\t\t\t\t\topacity: 1,\n\t\t\t\t\teasing: 'easeInOutQuad',\n\t\t\t\t\tduration: 400,\n\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\tif (status !== null) {\n\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\ttargets: notifyText,\n\t\t\t\t\t\t\t\t\tbackgroundColor: color,\n\t\t\t\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuad',\n\t\t\t\t\t\t\t\t\tduration: 400\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\ttargets: notifyIcons,\n\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\t\t\t\teasing: 'easeOutQuint',\n\t\t\t\t\t\t\t\t\tduration: 350\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tnew anime({\n\t\t\t\t\t\t\t\t\ttargets: document.querySelector('.top-nav'),\n\t\t\t\t\t\t\t\t\trotateX: '0deg',\n\t\t\t\t\t\t\t\t\teasing: 'easeOutQuint'\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tnew anime({\n\t\t\t\t\t\t\t\t\ttargets: document.querySelector('.notify'),\n\t\t\t\t\t\t\t\t\trotateX: '180deg',\n\t\t\t\t\t\t\t\t\teasing: 'easeOutQuint'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 2500);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","/*\n * anime.js v3.2.1\n * (c) 2020 Julian Garnier\n * Released under the MIT license\n * animejs.com\n */\n\n// Defaults\n\nvar defaultInstanceSettings = {\n update: null,\n begin: null,\n loopBegin: null,\n changeBegin: null,\n change: null,\n changeComplete: null,\n loopComplete: null,\n complete: null,\n loop: 1,\n direction: 'normal',\n autoplay: true,\n timelineOffset: 0\n};\n\nvar defaultTweenSettings = {\n duration: 1000,\n delay: 0,\n endDelay: 0,\n easing: 'easeOutElastic(1, .5)',\n round: 0\n};\n\nvar validTransforms = ['translateX', 'translateY', 'translateZ', 'rotate', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'perspective', 'matrix', 'matrix3d'];\n\n// Caching\n\nvar cache = {\n CSS: {},\n springs: {}\n};\n\n// Utils\n\nfunction minMax(val, min, max) {\n return Math.min(Math.max(val, min), max);\n}\n\nfunction stringContains(str, text) {\n return str.indexOf(text) > -1;\n}\n\nfunction applyArguments(func, args) {\n return func.apply(null, args);\n}\n\nvar is = {\n arr: function (a) { return Array.isArray(a); },\n obj: function (a) { return stringContains(Object.prototype.toString.call(a), 'Object'); },\n pth: function (a) { return is.obj(a) && a.hasOwnProperty('totalLength'); },\n svg: function (a) { return a instanceof SVGElement; },\n inp: function (a) { return a instanceof HTMLInputElement; },\n dom: function (a) { return a.nodeType || is.svg(a); },\n str: function (a) { return typeof a === 'string'; },\n fnc: function (a) { return typeof a === 'function'; },\n und: function (a) { return typeof a === 'undefined'; },\n nil: function (a) { return is.und(a) || a === null; },\n hex: function (a) { return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a); },\n rgb: function (a) { return /^rgb/.test(a); },\n hsl: function (a) { return /^hsl/.test(a); },\n col: function (a) { return (is.hex(a) || is.rgb(a) || is.hsl(a)); },\n key: function (a) { return !defaultInstanceSettings.hasOwnProperty(a) && !defaultTweenSettings.hasOwnProperty(a) && a !== 'targets' && a !== 'keyframes'; },\n};\n\n// Easings\n\nfunction parseEasingParameters(string) {\n var match = /\\(([^)]+)\\)/.exec(string);\n return match ? match[1].split(',').map(function (p) { return parseFloat(p); }) : [];\n}\n\n// Spring solver inspired by Webkit Copyright © 2016 Apple Inc. All rights reserved. https://webkit.org/demos/spring/spring.js\n\nfunction spring(string, duration) {\n\n var params = parseEasingParameters(string);\n var mass = minMax(is.und(params[0]) ? 1 : params[0], .1, 100);\n var stiffness = minMax(is.und(params[1]) ? 100 : params[1], .1, 100);\n var damping = minMax(is.und(params[2]) ? 10 : params[2], .1, 100);\n var velocity = minMax(is.und(params[3]) ? 0 : params[3], .1, 100);\n var w0 = Math.sqrt(stiffness / mass);\n var zeta = damping / (2 * Math.sqrt(stiffness * mass));\n var wd = zeta < 1 ? w0 * Math.sqrt(1 - zeta * zeta) : 0;\n var a = 1;\n var b = zeta < 1 ? (zeta * w0 + -velocity) / wd : -velocity + w0;\n\n function solver(t) {\n var progress = duration ? (duration * t) / 1000 : t;\n if (zeta < 1) {\n progress = Math.exp(-progress * zeta * w0) * (a * Math.cos(wd * progress) + b * Math.sin(wd * progress));\n } else {\n progress = (a + b * progress) * Math.exp(-progress * w0);\n }\n if (t === 0 || t === 1) { return t; }\n return 1 - progress;\n }\n\n function getDuration() {\n var cached = cache.springs[string];\n if (cached) { return cached; }\n var frame = 1/6;\n var elapsed = 0;\n var rest = 0;\n while(true) {\n elapsed += frame;\n if (solver(elapsed) === 1) {\n rest++;\n if (rest >= 16) { break; }\n } else {\n rest = 0;\n }\n }\n var duration = elapsed * frame * 1000;\n cache.springs[string] = duration;\n return duration;\n }\n\n return duration ? solver : getDuration;\n\n}\n\n// Basic steps easing implementation https://developer.mozilla.org/fr/docs/Web/CSS/transition-timing-function\n\nfunction steps(steps) {\n if ( steps === void 0 ) steps = 10;\n\n return function (t) { return Math.ceil((minMax(t, 0.000001, 1)) * steps) * (1 / steps); };\n}\n\n// BezierEasing https://github.com/gre/bezier-easing\n\nvar bezier = (function () {\n\n var kSplineTableSize = 11;\n var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);\n\n function A(aA1, aA2) { return 1.0 - 3.0 * aA2 + 3.0 * aA1 }\n function B(aA1, aA2) { return 3.0 * aA2 - 6.0 * aA1 }\n function C(aA1) { return 3.0 * aA1 }\n\n function calcBezier(aT, aA1, aA2) { return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT }\n function getSlope(aT, aA1, aA2) { return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1) }\n\n function binarySubdivide(aX, aA, aB, mX1, mX2) {\n var currentX, currentT, i = 0;\n do {\n currentT = aA + (aB - aA) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - aX;\n if (currentX > 0.0) { aB = currentT; } else { aA = currentT; }\n } while (Math.abs(currentX) > 0.0000001 && ++i < 10);\n return currentT;\n }\n\n function newtonRaphsonIterate(aX, aGuessT, mX1, mX2) {\n for (var i = 0; i < 4; ++i) {\n var currentSlope = getSlope(aGuessT, mX1, mX2);\n if (currentSlope === 0.0) { return aGuessT; }\n var currentX = calcBezier(aGuessT, mX1, mX2) - aX;\n aGuessT -= currentX / currentSlope;\n }\n return aGuessT;\n }\n\n function bezier(mX1, mY1, mX2, mY2) {\n\n if (!(0 <= mX1 && mX1 <= 1 && 0 <= mX2 && mX2 <= 1)) { return; }\n var sampleValues = new Float32Array(kSplineTableSize);\n\n if (mX1 !== mY1 || mX2 !== mY2) {\n for (var i = 0; i < kSplineTableSize; ++i) {\n sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);\n }\n }\n\n function getTForX(aX) {\n\n var intervalStart = 0;\n var currentSample = 1;\n var lastSample = kSplineTableSize - 1;\n\n for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) {\n intervalStart += kSampleStepSize;\n }\n\n --currentSample;\n\n var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]);\n var guessForT = intervalStart + dist * kSampleStepSize;\n var initialSlope = getSlope(guessForT, mX1, mX2);\n\n if (initialSlope >= 0.001) {\n return newtonRaphsonIterate(aX, guessForT, mX1, mX2);\n } else if (initialSlope === 0.0) {\n return guessForT;\n } else {\n return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2);\n }\n\n }\n\n return function (x) {\n if (mX1 === mY1 && mX2 === mY2) { return x; }\n if (x === 0 || x === 1) { return x; }\n return calcBezier(getTForX(x), mY1, mY2);\n }\n\n }\n\n return bezier;\n\n})();\n\nvar penner = (function () {\n\n // Based on jQuery UI's implemenation of easing equations from Robert Penner (http://www.robertpenner.com/easing)\n\n var eases = { linear: function () { return function (t) { return t; }; } };\n\n var functionEasings = {\n Sine: function () { return function (t) { return 1 - Math.cos(t * Math.PI / 2); }; },\n Circ: function () { return function (t) { return 1 - Math.sqrt(1 - t * t); }; },\n Back: function () { return function (t) { return t * t * (3 * t - 2); }; },\n Bounce: function () { return function (t) {\n var pow2, b = 4;\n while (t < (( pow2 = Math.pow(2, --b)) - 1) / 11) {}\n return 1 / Math.pow(4, 3 - b) - 7.5625 * Math.pow(( pow2 * 3 - 2 ) / 22 - t, 2)\n }; },\n Elastic: function (amplitude, period) {\n if ( amplitude === void 0 ) amplitude = 1;\n if ( period === void 0 ) period = .5;\n\n var a = minMax(amplitude, 1, 10);\n var p = minMax(period, .1, 2);\n return function (t) {\n return (t === 0 || t === 1) ? t : \n -a * Math.pow(2, 10 * (t - 1)) * Math.sin((((t - 1) - (p / (Math.PI * 2) * Math.asin(1 / a))) * (Math.PI * 2)) / p);\n }\n }\n };\n\n var baseEasings = ['Quad', 'Cubic', 'Quart', 'Quint', 'Expo'];\n\n baseEasings.forEach(function (name, i) {\n functionEasings[name] = function () { return function (t) { return Math.pow(t, i + 2); }; };\n });\n\n Object.keys(functionEasings).forEach(function (name) {\n var easeIn = functionEasings[name];\n eases['easeIn' + name] = easeIn;\n eases['easeOut' + name] = function (a, b) { return function (t) { return 1 - easeIn(a, b)(1 - t); }; };\n eases['easeInOut' + name] = function (a, b) { return function (t) { return t < 0.5 ? easeIn(a, b)(t * 2) / 2 : \n 1 - easeIn(a, b)(t * -2 + 2) / 2; }; };\n eases['easeOutIn' + name] = function (a, b) { return function (t) { return t < 0.5 ? (1 - easeIn(a, b)(1 - t * 2)) / 2 : \n (easeIn(a, b)(t * 2 - 1) + 1) / 2; }; };\n });\n\n return eases;\n\n})();\n\nfunction parseEasings(easing, duration) {\n if (is.fnc(easing)) { return easing; }\n var name = easing.split('(')[0];\n var ease = penner[name];\n var args = parseEasingParameters(easing);\n switch (name) {\n case 'spring' : return spring(easing, duration);\n case 'cubicBezier' : return applyArguments(bezier, args);\n case 'steps' : return applyArguments(steps, args);\n default : return applyArguments(ease, args);\n }\n}\n\n// Strings\n\nfunction selectString(str) {\n try {\n var nodes = document.querySelectorAll(str);\n return nodes;\n } catch(e) {\n return;\n }\n}\n\n// Arrays\n\nfunction filterArray(arr, callback) {\n var len = arr.length;\n var thisArg = arguments.length >= 2 ? arguments[1] : void 0;\n var result = [];\n for (var i = 0; i < len; i++) {\n if (i in arr) {\n var val = arr[i];\n if (callback.call(thisArg, val, i, arr)) {\n result.push(val);\n }\n }\n }\n return result;\n}\n\nfunction flattenArray(arr) {\n return arr.reduce(function (a, b) { return a.concat(is.arr(b) ? flattenArray(b) : b); }, []);\n}\n\nfunction toArray(o) {\n if (is.arr(o)) { return o; }\n if (is.str(o)) { o = selectString(o) || o; }\n if (o instanceof NodeList || o instanceof HTMLCollection) { return [].slice.call(o); }\n return [o];\n}\n\nfunction arrayContains(arr, val) {\n return arr.some(function (a) { return a === val; });\n}\n\n// Objects\n\nfunction cloneObject(o) {\n var clone = {};\n for (var p in o) { clone[p] = o[p]; }\n return clone;\n}\n\nfunction replaceObjectProps(o1, o2) {\n var o = cloneObject(o1);\n for (var p in o1) { o[p] = o2.hasOwnProperty(p) ? o2[p] : o1[p]; }\n return o;\n}\n\nfunction mergeObjects(o1, o2) {\n var o = cloneObject(o1);\n for (var p in o2) { o[p] = is.und(o1[p]) ? o2[p] : o1[p]; }\n return o;\n}\n\n// Colors\n\nfunction rgbToRgba(rgbValue) {\n var rgb = /rgb\\((\\d+,\\s*[\\d]+,\\s*[\\d]+)\\)/g.exec(rgbValue);\n return rgb ? (\"rgba(\" + (rgb[1]) + \",1)\") : rgbValue;\n}\n\nfunction hexToRgba(hexValue) {\n var rgx = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n var hex = hexValue.replace(rgx, function (m, r, g, b) { return r + r + g + g + b + b; } );\n var rgb = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n var r = parseInt(rgb[1], 16);\n var g = parseInt(rgb[2], 16);\n var b = parseInt(rgb[3], 16);\n return (\"rgba(\" + r + \",\" + g + \",\" + b + \",1)\");\n}\n\nfunction hslToRgba(hslValue) {\n var hsl = /hsl\\((\\d+),\\s*([\\d.]+)%,\\s*([\\d.]+)%\\)/g.exec(hslValue) || /hsla\\((\\d+),\\s*([\\d.]+)%,\\s*([\\d.]+)%,\\s*([\\d.]+)\\)/g.exec(hslValue);\n var h = parseInt(hsl[1], 10) / 360;\n var s = parseInt(hsl[2], 10) / 100;\n var l = parseInt(hsl[3], 10) / 100;\n var a = hsl[4] || 1;\n function hue2rgb(p, q, t) {\n if (t < 0) { t += 1; }\n if (t > 1) { t -= 1; }\n if (t < 1/6) { return p + (q - p) * 6 * t; }\n if (t < 1/2) { return q; }\n if (t < 2/3) { return p + (q - p) * (2/3 - t) * 6; }\n return p;\n }\n var r, g, b;\n if (s == 0) {\n r = g = b = l;\n } else {\n var q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n var p = 2 * l - q;\n r = hue2rgb(p, q, h + 1/3);\n g = hue2rgb(p, q, h);\n b = hue2rgb(p, q, h - 1/3);\n }\n return (\"rgba(\" + (r * 255) + \",\" + (g * 255) + \",\" + (b * 255) + \",\" + a + \")\");\n}\n\nfunction colorToRgb(val) {\n if (is.rgb(val)) { return rgbToRgba(val); }\n if (is.hex(val)) { return hexToRgba(val); }\n if (is.hsl(val)) { return hslToRgba(val); }\n}\n\n// Units\n\nfunction getUnit(val) {\n var split = /[+-]?\\d*\\.?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(val);\n if (split) { return split[1]; }\n}\n\nfunction getTransformUnit(propName) {\n if (stringContains(propName, 'translate') || propName === 'perspective') { return 'px'; }\n if (stringContains(propName, 'rotate') || stringContains(propName, 'skew')) { return 'deg'; }\n}\n\n// Values\n\nfunction getFunctionValue(val, animatable) {\n if (!is.fnc(val)) { return val; }\n return val(animatable.target, animatable.id, animatable.total);\n}\n\nfunction getAttribute(el, prop) {\n return el.getAttribute(prop);\n}\n\nfunction convertPxToUnit(el, value, unit) {\n var valueUnit = getUnit(value);\n if (arrayContains([unit, 'deg', 'rad', 'turn'], valueUnit)) { return value; }\n var cached = cache.CSS[value + unit];\n if (!is.und(cached)) { return cached; }\n var baseline = 100;\n var tempEl = document.createElement(el.tagName);\n var parentEl = (el.parentNode && (el.parentNode !== document)) ? el.parentNode : document.body;\n parentEl.appendChild(tempEl);\n tempEl.style.position = 'absolute';\n tempEl.style.width = baseline + unit;\n var factor = baseline / tempEl.offsetWidth;\n parentEl.removeChild(tempEl);\n var convertedUnit = factor * parseFloat(value);\n cache.CSS[value + unit] = convertedUnit;\n return convertedUnit;\n}\n\nfunction getCSSValue(el, prop, unit) {\n if (prop in el.style) {\n var uppercasePropName = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n var value = el.style[prop] || getComputedStyle(el).getPropertyValue(uppercasePropName) || '0';\n return unit ? convertPxToUnit(el, value, unit) : value;\n }\n}\n\nfunction getAnimationType(el, prop) {\n if (is.dom(el) && !is.inp(el) && (!is.nil(getAttribute(el, prop)) || (is.svg(el) && el[prop]))) { return 'attribute'; }\n if (is.dom(el) && arrayContains(validTransforms, prop)) { return 'transform'; }\n if (is.dom(el) && (prop !== 'transform' && getCSSValue(el, prop))) { return 'css'; }\n if (el[prop] != null) { return 'object'; }\n}\n\nfunction getElementTransforms(el) {\n if (!is.dom(el)) { return; }\n var str = el.style.transform || '';\n var reg = /(\\w+)\\(([^)]*)\\)/g;\n var transforms = new Map();\n var m; while (m = reg.exec(str)) { transforms.set(m[1], m[2]); }\n return transforms;\n}\n\nfunction getTransformValue(el, propName, animatable, unit) {\n var defaultVal = stringContains(propName, 'scale') ? 1 : 0 + getTransformUnit(propName);\n var value = getElementTransforms(el).get(propName) || defaultVal;\n if (animatable) {\n animatable.transforms.list.set(propName, value);\n animatable.transforms['last'] = propName;\n }\n return unit ? convertPxToUnit(el, value, unit) : value;\n}\n\nfunction getOriginalTargetValue(target, propName, unit, animatable) {\n switch (getAnimationType(target, propName)) {\n case 'transform': return getTransformValue(target, propName, animatable, unit);\n case 'css': return getCSSValue(target, propName, unit);\n case 'attribute': return getAttribute(target, propName);\n default: return target[propName] || 0;\n }\n}\n\nfunction getRelativeValue(to, from) {\n var operator = /^(\\*=|\\+=|-=)/.exec(to);\n if (!operator) { return to; }\n var u = getUnit(to) || 0;\n var x = parseFloat(from);\n var y = parseFloat(to.replace(operator[0], ''));\n switch (operator[0][0]) {\n case '+': return x + y + u;\n case '-': return x - y + u;\n case '*': return x * y + u;\n }\n}\n\nfunction validateValue(val, unit) {\n if (is.col(val)) { return colorToRgb(val); }\n if (/\\s/g.test(val)) { return val; }\n var originalUnit = getUnit(val);\n var unitLess = originalUnit ? val.substr(0, val.length - originalUnit.length) : val;\n if (unit) { return unitLess + unit; }\n return unitLess;\n}\n\n// getTotalLength() equivalent for circle, rect, polyline, polygon and line shapes\n// adapted from https://gist.github.com/SebLambla/3e0550c496c236709744\n\nfunction getDistance(p1, p2) {\n return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));\n}\n\nfunction getCircleLength(el) {\n return Math.PI * 2 * getAttribute(el, 'r');\n}\n\nfunction getRectLength(el) {\n return (getAttribute(el, 'width') * 2) + (getAttribute(el, 'height') * 2);\n}\n\nfunction getLineLength(el) {\n return getDistance(\n {x: getAttribute(el, 'x1'), y: getAttribute(el, 'y1')}, \n {x: getAttribute(el, 'x2'), y: getAttribute(el, 'y2')}\n );\n}\n\nfunction getPolylineLength(el) {\n var points = el.points;\n var totalLength = 0;\n var previousPos;\n for (var i = 0 ; i < points.numberOfItems; i++) {\n var currentPos = points.getItem(i);\n if (i > 0) { totalLength += getDistance(previousPos, currentPos); }\n previousPos = currentPos;\n }\n return totalLength;\n}\n\nfunction getPolygonLength(el) {\n var points = el.points;\n return getPolylineLength(el) + getDistance(points.getItem(points.numberOfItems - 1), points.getItem(0));\n}\n\n// Path animation\n\nfunction getTotalLength(el) {\n if (el.getTotalLength) { return el.getTotalLength(); }\n switch(el.tagName.toLowerCase()) {\n case 'circle': return getCircleLength(el);\n case 'rect': return getRectLength(el);\n case 'line': return getLineLength(el);\n case 'polyline': return getPolylineLength(el);\n case 'polygon': return getPolygonLength(el);\n }\n}\n\nfunction setDashoffset(el) {\n var pathLength = getTotalLength(el);\n el.setAttribute('stroke-dasharray', pathLength);\n return pathLength;\n}\n\n// Motion path\n\nfunction getParentSvgEl(el) {\n var parentEl = el.parentNode;\n while (is.svg(parentEl)) {\n if (!is.svg(parentEl.parentNode)) { break; }\n parentEl = parentEl.parentNode;\n }\n return parentEl;\n}\n\nfunction getParentSvg(pathEl, svgData) {\n var svg = svgData || {};\n var parentSvgEl = svg.el || getParentSvgEl(pathEl);\n var rect = parentSvgEl.getBoundingClientRect();\n var viewBoxAttr = getAttribute(parentSvgEl, 'viewBox');\n var width = rect.width;\n var height = rect.height;\n var viewBox = svg.viewBox || (viewBoxAttr ? viewBoxAttr.split(' ') : [0, 0, width, height]);\n return {\n el: parentSvgEl,\n viewBox: viewBox,\n x: viewBox[0] / 1,\n y: viewBox[1] / 1,\n w: width,\n h: height,\n vW: viewBox[2],\n vH: viewBox[3]\n }\n}\n\nfunction getPath(path, percent) {\n var pathEl = is.str(path) ? selectString(path)[0] : path;\n var p = percent || 100;\n return function(property) {\n return {\n property: property,\n el: pathEl,\n svg: getParentSvg(pathEl),\n totalLength: getTotalLength(pathEl) * (p / 100)\n }\n }\n}\n\nfunction getPathProgress(path, progress, isPathTargetInsideSVG) {\n function point(offset) {\n if ( offset === void 0 ) offset = 0;\n\n var l = progress + offset >= 1 ? progress + offset : 0;\n return path.el.getPointAtLength(l);\n }\n var svg = getParentSvg(path.el, path.svg);\n var p = point();\n var p0 = point(-1);\n var p1 = point(+1);\n var scaleX = isPathTargetInsideSVG ? 1 : svg.w / svg.vW;\n var scaleY = isPathTargetInsideSVG ? 1 : svg.h / svg.vH;\n switch (path.property) {\n case 'x': return (p.x - svg.x) * scaleX;\n case 'y': return (p.y - svg.y) * scaleY;\n case 'angle': return Math.atan2(p1.y - p0.y, p1.x - p0.x) * 180 / Math.PI;\n }\n}\n\n// Decompose value\n\nfunction decomposeValue(val, unit) {\n // const rgx = /-?\\d*\\.?\\d+/g; // handles basic numbers\n // const rgx = /[+-]?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?/g; // handles exponents notation\n var rgx = /[+-]?\\d*\\.?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?/g; // handles exponents notation\n var value = validateValue((is.pth(val) ? val.totalLength : val), unit) + '';\n return {\n original: value,\n numbers: value.match(rgx) ? value.match(rgx).map(Number) : [0],\n strings: (is.str(val) || unit) ? value.split(rgx) : []\n }\n}\n\n// Animatables\n\nfunction parseTargets(targets) {\n var targetsArray = targets ? (flattenArray(is.arr(targets) ? targets.map(toArray) : toArray(targets))) : [];\n return filterArray(targetsArray, function (item, pos, self) { return self.indexOf(item) === pos; });\n}\n\nfunction getAnimatables(targets) {\n var parsed = parseTargets(targets);\n return parsed.map(function (t, i) {\n return {target: t, id: i, total: parsed.length, transforms: { list: getElementTransforms(t) } };\n });\n}\n\n// Properties\n\nfunction normalizePropertyTweens(prop, tweenSettings) {\n var settings = cloneObject(tweenSettings);\n // Override duration if easing is a spring\n if (/^spring/.test(settings.easing)) { settings.duration = spring(settings.easing); }\n if (is.arr(prop)) {\n var l = prop.length;\n var isFromTo = (l === 2 && !is.obj(prop[0]));\n if (!isFromTo) {\n // Duration divided by the number of tweens\n if (!is.fnc(tweenSettings.duration)) { settings.duration = tweenSettings.duration / l; }\n } else {\n // Transform [from, to] values shorthand to a valid tween value\n prop = {value: prop};\n }\n }\n var propArray = is.arr(prop) ? prop : [prop];\n return propArray.map(function (v, i) {\n var obj = (is.obj(v) && !is.pth(v)) ? v : {value: v};\n // Default delay value should only be applied to the first tween\n if (is.und(obj.delay)) { obj.delay = !i ? tweenSettings.delay : 0; }\n // Default endDelay value should only be applied to the last tween\n if (is.und(obj.endDelay)) { obj.endDelay = i === propArray.length - 1 ? tweenSettings.endDelay : 0; }\n return obj;\n }).map(function (k) { return mergeObjects(k, settings); });\n}\n\n\nfunction flattenKeyframes(keyframes) {\n var propertyNames = filterArray(flattenArray(keyframes.map(function (key) { return Object.keys(key); })), function (p) { return is.key(p); })\n .reduce(function (a,b) { if (a.indexOf(b) < 0) { a.push(b); } return a; }, []);\n var properties = {};\n var loop = function ( i ) {\n var propName = propertyNames[i];\n properties[propName] = keyframes.map(function (key) {\n var newKey = {};\n for (var p in key) {\n if (is.key(p)) {\n if (p == propName) { newKey.value = key[p]; }\n } else {\n newKey[p] = key[p];\n }\n }\n return newKey;\n });\n };\n\n for (var i = 0; i < propertyNames.length; i++) loop( i );\n return properties;\n}\n\nfunction getProperties(tweenSettings, params) {\n var properties = [];\n var keyframes = params.keyframes;\n if (keyframes) { params = mergeObjects(flattenKeyframes(keyframes), params); }\n for (var p in params) {\n if (is.key(p)) {\n properties.push({\n name: p,\n tweens: normalizePropertyTweens(params[p], tweenSettings)\n });\n }\n }\n return properties;\n}\n\n// Tweens\n\nfunction normalizeTweenValues(tween, animatable) {\n var t = {};\n for (var p in tween) {\n var value = getFunctionValue(tween[p], animatable);\n if (is.arr(value)) {\n value = value.map(function (v) { return getFunctionValue(v, animatable); });\n if (value.length === 1) { value = value[0]; }\n }\n t[p] = value;\n }\n t.duration = parseFloat(t.duration);\n t.delay = parseFloat(t.delay);\n return t;\n}\n\nfunction normalizeTweens(prop, animatable) {\n var previousTween;\n return prop.tweens.map(function (t) {\n var tween = normalizeTweenValues(t, animatable);\n var tweenValue = tween.value;\n var to = is.arr(tweenValue) ? tweenValue[1] : tweenValue;\n var toUnit = getUnit(to);\n var originalValue = getOriginalTargetValue(animatable.target, prop.name, toUnit, animatable);\n var previousValue = previousTween ? previousTween.to.original : originalValue;\n var from = is.arr(tweenValue) ? tweenValue[0] : previousValue;\n var fromUnit = getUnit(from) || getUnit(originalValue);\n var unit = toUnit || fromUnit;\n if (is.und(to)) { to = previousValue; }\n tween.from = decomposeValue(from, unit);\n tween.to = decomposeValue(getRelativeValue(to, from), unit);\n tween.start = previousTween ? previousTween.end : 0;\n tween.end = tween.start + tween.delay + tween.duration + tween.endDelay;\n tween.easing = parseEasings(tween.easing, tween.duration);\n tween.isPath = is.pth(tweenValue);\n tween.isPathTargetInsideSVG = tween.isPath && is.svg(animatable.target);\n tween.isColor = is.col(tween.from.original);\n if (tween.isColor) { tween.round = 1; }\n previousTween = tween;\n return tween;\n });\n}\n\n// Tween progress\n\nvar setProgressValue = {\n css: function (t, p, v) { return t.style[p] = v; },\n attribute: function (t, p, v) { return t.setAttribute(p, v); },\n object: function (t, p, v) { return t[p] = v; },\n transform: function (t, p, v, transforms, manual) {\n transforms.list.set(p, v);\n if (p === transforms.last || manual) {\n var str = '';\n transforms.list.forEach(function (value, prop) { str += prop + \"(\" + value + \") \"; });\n t.style.transform = str;\n }\n }\n};\n\n// Set Value helper\n\nfunction setTargetsValue(targets, properties) {\n var animatables = getAnimatables(targets);\n animatables.forEach(function (animatable) {\n for (var property in properties) {\n var value = getFunctionValue(properties[property], animatable);\n var target = animatable.target;\n var valueUnit = getUnit(value);\n var originalValue = getOriginalTargetValue(target, property, valueUnit, animatable);\n var unit = valueUnit || getUnit(originalValue);\n var to = getRelativeValue(validateValue(value, unit), originalValue);\n var animType = getAnimationType(target, property);\n setProgressValue[animType](target, property, to, animatable.transforms, true);\n }\n });\n}\n\n// Animations\n\nfunction createAnimation(animatable, prop) {\n var animType = getAnimationType(animatable.target, prop.name);\n if (animType) {\n var tweens = normalizeTweens(prop, animatable);\n var lastTween = tweens[tweens.length - 1];\n return {\n type: animType,\n property: prop.name,\n animatable: animatable,\n tweens: tweens,\n duration: lastTween.end,\n delay: tweens[0].delay,\n endDelay: lastTween.endDelay\n }\n }\n}\n\nfunction getAnimations(animatables, properties) {\n return filterArray(flattenArray(animatables.map(function (animatable) {\n return properties.map(function (prop) {\n return createAnimation(animatable, prop);\n });\n })), function (a) { return !is.und(a); });\n}\n\n// Create Instance\n\nfunction getInstanceTimings(animations, tweenSettings) {\n var animLength = animations.length;\n var getTlOffset = function (anim) { return anim.timelineOffset ? anim.timelineOffset : 0; };\n var timings = {};\n timings.duration = animLength ? Math.max.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.duration; })) : tweenSettings.duration;\n timings.delay = animLength ? Math.min.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.delay; })) : tweenSettings.delay;\n timings.endDelay = animLength ? timings.duration - Math.max.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.duration - anim.endDelay; })) : tweenSettings.endDelay;\n return timings;\n}\n\nvar instanceID = 0;\n\nfunction createNewInstance(params) {\n var instanceSettings = replaceObjectProps(defaultInstanceSettings, params);\n var tweenSettings = replaceObjectProps(defaultTweenSettings, params);\n var properties = getProperties(tweenSettings, params);\n var animatables = getAnimatables(params.targets);\n var animations = getAnimations(animatables, properties);\n var timings = getInstanceTimings(animations, tweenSettings);\n var id = instanceID;\n instanceID++;\n return mergeObjects(instanceSettings, {\n id: id,\n children: [],\n animatables: animatables,\n animations: animations,\n duration: timings.duration,\n delay: timings.delay,\n endDelay: timings.endDelay\n });\n}\n\n// Core\n\nvar activeInstances = [];\n\nvar engine = (function () {\n var raf;\n\n function play() {\n if (!raf && (!isDocumentHidden() || !anime.suspendWhenDocumentHidden) && activeInstances.length > 0) {\n raf = requestAnimationFrame(step);\n }\n }\n function step(t) {\n // memo on algorithm issue:\n // dangerous iteration over mutable `activeInstances`\n // (that collection may be updated from within callbacks of `tick`-ed animation instances)\n var activeInstancesLength = activeInstances.length;\n var i = 0;\n while (i < activeInstancesLength) {\n var activeInstance = activeInstances[i];\n if (!activeInstance.paused) {\n activeInstance.tick(t);\n i++;\n } else {\n activeInstances.splice(i, 1);\n activeInstancesLength--;\n }\n }\n raf = i > 0 ? requestAnimationFrame(step) : undefined;\n }\n\n function handleVisibilityChange() {\n if (!anime.suspendWhenDocumentHidden) { return; }\n\n if (isDocumentHidden()) {\n // suspend ticks\n raf = cancelAnimationFrame(raf);\n } else { // is back to active tab\n // first adjust animations to consider the time that ticks were suspended\n activeInstances.forEach(\n function (instance) { return instance ._onDocumentVisibility(); }\n );\n engine();\n }\n }\n if (typeof document !== 'undefined') {\n document.addEventListener('visibilitychange', handleVisibilityChange);\n }\n\n return play;\n})();\n\nfunction isDocumentHidden() {\n return !!document && document.hidden;\n}\n\n// Public Instance\n\nfunction anime(params) {\n if ( params === void 0 ) params = {};\n\n\n var startTime = 0, lastTime = 0, now = 0;\n var children, childrenLength = 0;\n var resolve = null;\n\n function makePromise(instance) {\n var promise = window.Promise && new Promise(function (_resolve) { return resolve = _resolve; });\n instance.finished = promise;\n return promise;\n }\n\n var instance = createNewInstance(params);\n var promise = makePromise(instance);\n\n function toggleInstanceDirection() {\n var direction = instance.direction;\n if (direction !== 'alternate') {\n instance.direction = direction !== 'normal' ? 'normal' : 'reverse';\n }\n instance.reversed = !instance.reversed;\n children.forEach(function (child) { return child.reversed = instance.reversed; });\n }\n\n function adjustTime(time) {\n return instance.reversed ? instance.duration - time : time;\n }\n\n function resetTime() {\n startTime = 0;\n lastTime = adjustTime(instance.currentTime) * (1 / anime.speed);\n }\n\n function seekChild(time, child) {\n if (child) { child.seek(time - child.timelineOffset); }\n }\n\n function syncInstanceChildren(time) {\n if (!instance.reversePlayback) {\n for (var i = 0; i < childrenLength; i++) { seekChild(time, children[i]); }\n } else {\n for (var i$1 = childrenLength; i$1--;) { seekChild(time, children[i$1]); }\n }\n }\n\n function setAnimationsProgress(insTime) {\n var i = 0;\n var animations = instance.animations;\n var animationsLength = animations.length;\n while (i < animationsLength) {\n var anim = animations[i];\n var animatable = anim.animatable;\n var tweens = anim.tweens;\n var tweenLength = tweens.length - 1;\n var tween = tweens[tweenLength];\n // Only check for keyframes if there is more than one tween\n if (tweenLength) { tween = filterArray(tweens, function (t) { return (insTime < t.end); })[0] || tween; }\n var elapsed = minMax(insTime - tween.start - tween.delay, 0, tween.duration) / tween.duration;\n var eased = isNaN(elapsed) ? 1 : tween.easing(elapsed);\n var strings = tween.to.strings;\n var round = tween.round;\n var numbers = [];\n var toNumbersLength = tween.to.numbers.length;\n var progress = (void 0);\n for (var n = 0; n < toNumbersLength; n++) {\n var value = (void 0);\n var toNumber = tween.to.numbers[n];\n var fromNumber = tween.from.numbers[n] || 0;\n if (!tween.isPath) {\n value = fromNumber + (eased * (toNumber - fromNumber));\n } else {\n value = getPathProgress(tween.value, eased * toNumber, tween.isPathTargetInsideSVG);\n }\n if (round) {\n if (!(tween.isColor && n > 2)) {\n value = Math.round(value * round) / round;\n }\n }\n numbers.push(value);\n }\n // Manual Array.reduce for better performances\n var stringsLength = strings.length;\n if (!stringsLength) {\n progress = numbers[0];\n } else {\n progress = strings[0];\n for (var s = 0; s < stringsLength; s++) {\n var a = strings[s];\n var b = strings[s + 1];\n var n$1 = numbers[s];\n if (!isNaN(n$1)) {\n if (!b) {\n progress += n$1 + ' ';\n } else {\n progress += n$1 + b;\n }\n }\n }\n }\n setProgressValue[anim.type](animatable.target, anim.property, progress, animatable.transforms);\n anim.currentValue = progress;\n i++;\n }\n }\n\n function setCallback(cb) {\n if (instance[cb] && !instance.passThrough) { instance[cb](instance); }\n }\n\n function countIteration() {\n if (instance.remaining && instance.remaining !== true) {\n instance.remaining--;\n }\n }\n\n function setInstanceProgress(engineTime) {\n var insDuration = instance.duration;\n var insDelay = instance.delay;\n var insEndDelay = insDuration - instance.endDelay;\n var insTime = adjustTime(engineTime);\n instance.progress = minMax((insTime / insDuration) * 100, 0, 100);\n instance.reversePlayback = insTime < instance.currentTime;\n if (children) { syncInstanceChildren(insTime); }\n if (!instance.began && instance.currentTime > 0) {\n instance.began = true;\n setCallback('begin');\n }\n if (!instance.loopBegan && instance.currentTime > 0) {\n instance.loopBegan = true;\n setCallback('loopBegin');\n }\n if (insTime <= insDelay && instance.currentTime !== 0) {\n setAnimationsProgress(0);\n }\n if ((insTime >= insEndDelay && instance.currentTime !== insDuration) || !insDuration) {\n setAnimationsProgress(insDuration);\n }\n if (insTime > insDelay && insTime < insEndDelay) {\n if (!instance.changeBegan) {\n instance.changeBegan = true;\n instance.changeCompleted = false;\n setCallback('changeBegin');\n }\n setCallback('change');\n setAnimationsProgress(insTime);\n } else {\n if (instance.changeBegan) {\n instance.changeCompleted = true;\n instance.changeBegan = false;\n setCallback('changeComplete');\n }\n }\n instance.currentTime = minMax(insTime, 0, insDuration);\n if (instance.began) { setCallback('update'); }\n if (engineTime >= insDuration) {\n lastTime = 0;\n countIteration();\n if (!instance.remaining) {\n instance.paused = true;\n if (!instance.completed) {\n instance.completed = true;\n setCallback('loopComplete');\n setCallback('complete');\n if (!instance.passThrough && 'Promise' in window) {\n resolve();\n promise = makePromise(instance);\n }\n }\n } else {\n startTime = now;\n setCallback('loopComplete');\n instance.loopBegan = false;\n if (instance.direction === 'alternate') {\n toggleInstanceDirection();\n }\n }\n }\n }\n\n instance.reset = function() {\n var direction = instance.direction;\n instance.passThrough = false;\n instance.currentTime = 0;\n instance.progress = 0;\n instance.paused = true;\n instance.began = false;\n instance.loopBegan = false;\n instance.changeBegan = false;\n instance.completed = false;\n instance.changeCompleted = false;\n instance.reversePlayback = false;\n instance.reversed = direction === 'reverse';\n instance.remaining = instance.loop;\n children = instance.children;\n childrenLength = children.length;\n for (var i = childrenLength; i--;) { instance.children[i].reset(); }\n if (instance.reversed && instance.loop !== true || (direction === 'alternate' && instance.loop === 1)) { instance.remaining++; }\n setAnimationsProgress(instance.reversed ? instance.duration : 0);\n };\n\n // internal method (for engine) to adjust animation timings before restoring engine ticks (rAF)\n instance._onDocumentVisibility = resetTime;\n\n // Set Value helper\n\n instance.set = function(targets, properties) {\n setTargetsValue(targets, properties);\n return instance;\n };\n\n instance.tick = function(t) {\n now = t;\n if (!startTime) { startTime = now; }\n setInstanceProgress((now + (lastTime - startTime)) * anime.speed);\n };\n\n instance.seek = function(time) {\n setInstanceProgress(adjustTime(time));\n };\n\n instance.pause = function() {\n instance.paused = true;\n resetTime();\n };\n\n instance.play = function() {\n if (!instance.paused) { return; }\n if (instance.completed) { instance.reset(); }\n instance.paused = false;\n activeInstances.push(instance);\n resetTime();\n engine();\n };\n\n instance.reverse = function() {\n toggleInstanceDirection();\n instance.completed = instance.reversed ? false : true;\n resetTime();\n };\n\n instance.restart = function() {\n instance.reset();\n instance.play();\n };\n\n instance.remove = function(targets) {\n var targetsArray = parseTargets(targets);\n removeTargetsFromInstance(targetsArray, instance);\n };\n\n instance.reset();\n\n if (instance.autoplay) { instance.play(); }\n\n return instance;\n\n}\n\n// Remove targets from animation\n\nfunction removeTargetsFromAnimations(targetsArray, animations) {\n for (var a = animations.length; a--;) {\n if (arrayContains(targetsArray, animations[a].animatable.target)) {\n animations.splice(a, 1);\n }\n }\n}\n\nfunction removeTargetsFromInstance(targetsArray, instance) {\n var animations = instance.animations;\n var children = instance.children;\n removeTargetsFromAnimations(targetsArray, animations);\n for (var c = children.length; c--;) {\n var child = children[c];\n var childAnimations = child.animations;\n removeTargetsFromAnimations(targetsArray, childAnimations);\n if (!childAnimations.length && !child.children.length) { children.splice(c, 1); }\n }\n if (!animations.length && !children.length) { instance.pause(); }\n}\n\nfunction removeTargetsFromActiveInstances(targets) {\n var targetsArray = parseTargets(targets);\n for (var i = activeInstances.length; i--;) {\n var instance = activeInstances[i];\n removeTargetsFromInstance(targetsArray, instance);\n }\n}\n\n// Stagger helpers\n\nfunction stagger(val, params) {\n if ( params === void 0 ) params = {};\n\n var direction = params.direction || 'normal';\n var easing = params.easing ? parseEasings(params.easing) : null;\n var grid = params.grid;\n var axis = params.axis;\n var fromIndex = params.from || 0;\n var fromFirst = fromIndex === 'first';\n var fromCenter = fromIndex === 'center';\n var fromLast = fromIndex === 'last';\n var isRange = is.arr(val);\n var val1 = isRange ? parseFloat(val[0]) : parseFloat(val);\n var val2 = isRange ? parseFloat(val[1]) : 0;\n var unit = getUnit(isRange ? val[1] : val) || 0;\n var start = params.start || 0 + (isRange ? val1 : 0);\n var values = [];\n var maxValue = 0;\n return function (el, i, t) {\n if (fromFirst) { fromIndex = 0; }\n if (fromCenter) { fromIndex = (t - 1) / 2; }\n if (fromLast) { fromIndex = t - 1; }\n if (!values.length) {\n for (var index = 0; index < t; index++) {\n if (!grid) {\n values.push(Math.abs(fromIndex - index));\n } else {\n var fromX = !fromCenter ? fromIndex%grid[0] : (grid[0]-1)/2;\n var fromY = !fromCenter ? Math.floor(fromIndex/grid[0]) : (grid[1]-1)/2;\n var toX = index%grid[0];\n var toY = Math.floor(index/grid[0]);\n var distanceX = fromX - toX;\n var distanceY = fromY - toY;\n var value = Math.sqrt(distanceX * distanceX + distanceY * distanceY);\n if (axis === 'x') { value = -distanceX; }\n if (axis === 'y') { value = -distanceY; }\n values.push(value);\n }\n maxValue = Math.max.apply(Math, values);\n }\n if (easing) { values = values.map(function (val) { return easing(val / maxValue) * maxValue; }); }\n if (direction === 'reverse') { values = values.map(function (val) { return axis ? (val < 0) ? val * -1 : -val : Math.abs(maxValue - val); }); }\n }\n var spacing = isRange ? (val2 - val1) / maxValue : val1;\n return start + (spacing * (Math.round(values[i] * 100) / 100)) + unit;\n }\n}\n\n// Timeline\n\nfunction timeline(params) {\n if ( params === void 0 ) params = {};\n\n var tl = anime(params);\n tl.duration = 0;\n tl.add = function(instanceParams, timelineOffset) {\n var tlIndex = activeInstances.indexOf(tl);\n var children = tl.children;\n if (tlIndex > -1) { activeInstances.splice(tlIndex, 1); }\n function passThrough(ins) { ins.passThrough = true; }\n for (var i = 0; i < children.length; i++) { passThrough(children[i]); }\n var insParams = mergeObjects(instanceParams, replaceObjectProps(defaultTweenSettings, params));\n insParams.targets = insParams.targets || params.targets;\n var tlDuration = tl.duration;\n insParams.autoplay = false;\n insParams.direction = tl.direction;\n insParams.timelineOffset = is.und(timelineOffset) ? tlDuration : getRelativeValue(timelineOffset, tlDuration);\n passThrough(tl);\n tl.seek(insParams.timelineOffset);\n var ins = anime(insParams);\n passThrough(ins);\n children.push(ins);\n var timings = getInstanceTimings(children, params);\n tl.delay = timings.delay;\n tl.endDelay = timings.endDelay;\n tl.duration = timings.duration;\n tl.seek(0);\n tl.reset();\n if (tl.autoplay) { tl.play(); }\n return tl;\n };\n return tl;\n}\n\nanime.version = '3.2.1';\nanime.speed = 1;\n// TODO:#review: naming, documentation\nanime.suspendWhenDocumentHidden = true;\nanime.running = activeInstances;\nanime.remove = removeTargetsFromActiveInstances;\nanime.get = getOriginalTargetValue;\nanime.set = setTargetsValue;\nanime.convertPx = convertPxToUnit;\nanime.path = getPath;\nanime.setDashoffset = setDashoffset;\nanime.stagger = stagger;\nanime.timeline = timeline;\nanime.easing = parseEasings;\nanime.penner = penner;\nanime.random = function (min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; };\n\nexport default anime;\n","import Sortable from 'sortablejs';\nimport anime from 'animejs/lib/anime.es.js';\nimport DataUtils from '../utils/DataUtils';\nimport Notfications from './Notifications.js';\nimport Maintenance from '../controllers/MaintenanceManager';\nconst notify = new Notfications();\n\nexport default class FileManager {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor(upload, input, imageList, fileList) {\n\t\tthis.mm = new Maintenance(null, null, document.getElementById('notify-progress'));\n\t\tthis.upload = upload;\n\t\tthis.input = input;\n\t\tthis.imageList = imageList;\n\t\tthis.fileList = fileList;\n\t\tthis.accetableFiles = [\n\t\t\t'image/jpeg',\n\t\t\t'image/gif',\n\t\t\t'image/png',\n\t\t\t'image/svg',\n\t\t\t'audio/mpeg',\n\t\t\t'video/mp4',\n\t\t\t'application/pdf',\n\t\t\t'text/plain',\n\t\t\t'text/rtf'\n\t\t];\n\t\tthis.files = [];\n\t\tthis.sortedFiles = [];\n\t\tthis.storage = [];\n\t\tthis.mediaSort = Sortable.create(this.imageList, {\n\t\t\tanimation: 150,\n\t\t\tonUpdate: () => {\n\t\t\t\t//notify.alert('REINDEXING MEDIA', null);\n\t\t\t\t//this.updateFiles();\n\t\t\t}\n\t\t});\n\t\tthis.fileSort = Sortable.create(this.fileList, {\n\t\t\tanimation: 150,\n\t\t\tonUpdate: () => {\n\t\t\t\t//notify.alert('REINDEXING FILES', null);\n\t\t\t\t//this.updateFiles();\n\t\t\t}\n\t\t});\n\t\tthis.start();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\tthis.upload.addEventListener('dragover', e => this.handleFileActions(e), false);\n\t\tthis.upload.addEventListener('drop', e => this.handleFileActions(e), false);\n\t\tthis.input.addEventListener('change', e => this.handleFileActions(e), false);\n\t\tvar removeMedia = document.querySelectorAll('.media-remove');\n\t\tfor (var i = 0, length = removeMedia.length; i < length; i++) {\n\t\t\tremoveMedia[i].addEventListener(\n\t\t\t\t'click',\n\t\t\t\te => this.removeFile(e, 'media'),\n\t\t\t\tfalse\n\t\t\t);\n\t\t}\n\t}\n\tgetFileOrder() {\n\t\tlet imgList = '';\n\t\tlet fileList = '';\n\t\tfor (var i = 0, length = this.imageList.childNodes.length; i < length; i++) {\n\t\t\tlet div = this.imageList.childNodes[i];\n\t\t\timgList = imgList + div.getAttribute('data-source') + ',';\n\t\t}\n\t\tfor (var i = 0, length = this.fileList.childNodes.length; i < length; i++) {\n\t\t\tlet div = this.fileList.childNodes[i];\n\t\t\tfileList = fileList + div.getAttribute('data-source') + ',';\n\t\t}\n\t\tlet media = { images: imgList, files: fileList };\n\t\treturn media;\n\t}\n\n\tsortFiles(files) {\n\t\tvar self = this;\n\t\tfor (var i = 0, file; (file = files[i]); i++) {\n\t\t\tvar reader = new FileReader();\n\t\t\t// Closure to capture the file information\n\t\t\treader.onload = (theFile => {\n\t\t\t\treturn function (f) {\n\t\t\t\t\t//create remove button object\n\t\t\t\t\tvar remove = document.createElement('button');\n\t\t\t\t\tvar removeIcon = document.createElement('i');\n\t\t\t\t\tremoveIcon.classList.add('ti', 'ti-x');\n\t\t\t\t\tremove.className = 'media-remove';\n\t\t\t\t\tremove.appendChild(removeIcon);\n\t\t\t\t\t//remove.setAttribute('id', mediaCount);\n\t\t\t\t\tremove.addEventListener(\n\t\t\t\t\t\t'click',\n\t\t\t\t\t\te => self.removeFile(e, 'media'),\n\t\t\t\t\t\tfalse\n\t\t\t\t\t);\n\n\t\t\t\t\t//upload the file\n\t\t\t\t\tlet upload = new FormData();\n\t\t\t\t\tupload.enctype = 'multipart/form-data';\n\t\t\t\t\tupload.append('upload_files[]', theFile, theFile.name);\n\t\t\t\t\tlet item = null;\n\t\t\t\t\tlet progress = null;\n\n\t\t\t\t\t// sort files\n\t\t\t\t\tswitch (theFile.type) {\n\t\t\t\t\t\tcase 'image/jpg':\n\t\t\t\t\t\tcase 'image/jpeg':\n\t\t\t\t\t\tcase 'image/gif':\n\t\t\t\t\t\tcase 'image/svg':\n\t\t\t\t\t\tcase 'image/png':\n\t\t\t\t\t\t\titem = self.itemFactory('img-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\titem.style.background =\n\t\t\t\t\t\t\t\t\t\t'url(' +\n\t\t\t\t\t\t\t\t\t\tf.target.result +\n\t\t\t\t\t\t\t\t\t\t') no-repeat center center / cover';\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'video/mp4':\n\t\t\t\t\t\t\titem = self.itemFactory('video-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\tlet video = document.createElement('video');\n\t\t\t\t\t\t\t\t\tlet source = document.createElement('source');\n\t\t\t\t\t\t\t\t\tsource.src = f.target.result;\n\t\t\t\t\t\t\t\t\tvideo.appendChild(source);\n\t\t\t\t\t\t\t\t\titem.appendChild(video);\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'audio/mpeg':\n\t\t\t\t\t\t\titem = self.itemFactory('audio-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\tlet audio = document.createElement('audio');\n\t\t\t\t\t\t\t\t\taudio.setAttribute('controls', true);\n\t\t\t\t\t\t\t\t\tlet source = document.createElement('source');\n\t\t\t\t\t\t\t\t\tsource.src = f.target.result;\n\t\t\t\t\t\t\t\t\taudio.appendChild(source);\n\t\t\t\t\t\t\t\t\titem.appendChild(audio);\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'application/pdf':\n\t\t\t\t\t\tcase 'text/plain':\n\t\t\t\t\t\tcase 'text/rtf':\n\t\t\t\t\t\t\titem = self.itemFactory('file-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\tlet link = document.createElement('a');\n\t\t\t\t\t\t\t\t\tlink.href = result.filePath;\n\t\t\t\t\t\t\t\t\tlink.innerHTML = result.fileName;\n\t\t\t\t\t\t\t\t\titem.appendChild(link);\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t})(file);\n\t\t\t// Read in the image file as a data URL.\n\t\t\treader.readAsDataURL(file);\n\t\t}\n\t}\n\titemFactory(type = null) {\n\t\t//get counts for lists\n\t\tvar mediaCount = this.imageList.childNodes.length;\n\t\tvar fileCount = this.fileList.childNodes.length;\n\t\tif (mediaCount < 0) mediaCount = 0;\n\t\tif (fileCount < 0) fileCount = 0;\n\t\tvar item = document.createElement('div');\n\t\titem.className = type;\n\t\tvar progress = document.createElement('div');\n\t\tprogress.className = 'item-progress';\n\t\titem.appendChild(progress);\n\n\t\tif (type == 'img-item' || type == 'video-item') {\n\t\t\tthis.imageList.appendChild(item);\n\t\t\tprogress.setAttribute('id', 'pgs' + mediaCount);\n\t\t\titem.setAttribute('id', mediaCount);\n\t\t} else {\n\t\t\tthis.fileList.appendChild(item);\n\t\t\tprogress.setAttribute('id', 'pgs' + fileCount);\n\t\t\titem.setAttribute('id', fileCount);\n\t\t}\n\t\treturn item;\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\tremoveFile(e) {\n\t\tvar item = e.target.parentNode.parentNode;\n\t\tswitch (item.className) {\n\t\t\tcase 'img-item':\n\t\t\tcase 'video-item':\n\t\t\t\tthis.imageList.removeChild(item);\n\t\t\t\tbreak;\n\t\t\tcase 'audio-item':\n\t\t\tcase 'file-item':\n\t\t\t\tthis.fileList.removeChild(item);\n\t\t\t\tbreak;\n\t\t}\n\t\tnotify.alert('File Removed!', true);\n\t}\n\n\thandleFileActions(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet self = this;\n\t\tlet rawList = [];\n\t\tlet sortedList = [];\n\t\tlet notOnTheList = [];\n\n\t\tswitch (e.type) {\n\t\t\tcase 'dragover':\n\t\t\t\te.dataTransfer.dropEffect = 'copy'; // Explicitly show this is a copy.\n\t\t\t\tbreak;\n\t\t\tcase 'change':\n\t\t\tcase 'drop':\n\t\t\t\te.type == 'drop'\n\t\t\t\t\t? (rawList = e.dataTransfer.files)\n\t\t\t\t\t: (rawList = e.target.files);\n\t\t\t\tfor (var i = 0, f; (f = rawList[i]); i++) {\n\t\t\t\t\t// check witch files are cool to upload\n\t\t\t\t\tif (this.accetableFiles.includes(f.type)) {\n\t\t\t\t\t\tsortedList.push(f);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnotOnTheList.push(f);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//send for sorting\n\t\t\t\tself.sortFiles(sortedList);\n\t\t\t\tbreak;\n\t\t}\n\t}\n}\n","/**!\n * Sortable 1.15.0\n * @author\tRubaXa <trash@rubaxa.org>\n * @author\towenm <owen23355@gmail.com>\n * @license MIT\n */\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nvar version = \"1.15.0\";\n\nfunction userAgent(pattern) {\n if (typeof window !== 'undefined' && window.navigator) {\n return !! /*@__PURE__*/navigator.userAgent.match(pattern);\n }\n}\n\nvar IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\\.|msie|iemobile|Windows Phone)/i);\nvar Edge = userAgent(/Edge/i);\nvar FireFox = userAgent(/firefox/i);\nvar Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);\nvar IOS = userAgent(/iP(ad|od|hone)/i);\nvar ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);\n\nvar captureMode = {\n capture: false,\n passive: false\n};\n\nfunction on(el, event, fn) {\n el.addEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction off(el, event, fn) {\n el.removeEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction matches(\n/**HTMLElement*/\nel,\n/**String*/\nselector) {\n if (!selector) return;\n selector[0] === '>' && (selector = selector.substring(1));\n\n if (el) {\n try {\n if (el.matches) {\n return el.matches(selector);\n } else if (el.msMatchesSelector) {\n return el.msMatchesSelector(selector);\n } else if (el.webkitMatchesSelector) {\n return el.webkitMatchesSelector(selector);\n }\n } catch (_) {\n return false;\n }\n }\n\n return false;\n}\n\nfunction getParentOrHost(el) {\n return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;\n}\n\nfunction closest(\n/**HTMLElement*/\nel,\n/**String*/\nselector,\n/**HTMLElement*/\nctx, includeCTX) {\n if (el) {\n ctx = ctx || document;\n\n do {\n if (selector != null && (selector[0] === '>' ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {\n return el;\n }\n\n if (el === ctx) break;\n /* jshint boss:true */\n } while (el = getParentOrHost(el));\n }\n\n return null;\n}\n\nvar R_SPACE = /\\s+/g;\n\nfunction toggleClass(el, name, state) {\n if (el && name) {\n if (el.classList) {\n el.classList[state ? 'add' : 'remove'](name);\n } else {\n var className = (' ' + el.className + ' ').replace(R_SPACE, ' ').replace(' ' + name + ' ', ' ');\n el.className = (className + (state ? ' ' + name : '')).replace(R_SPACE, ' ');\n }\n }\n}\n\nfunction css(el, prop, val) {\n var style = el && el.style;\n\n if (style) {\n if (val === void 0) {\n if (document.defaultView && document.defaultView.getComputedStyle) {\n val = document.defaultView.getComputedStyle(el, '');\n } else if (el.currentStyle) {\n val = el.currentStyle;\n }\n\n return prop === void 0 ? val : val[prop];\n } else {\n if (!(prop in style) && prop.indexOf('webkit') === -1) {\n prop = '-webkit-' + prop;\n }\n\n style[prop] = val + (typeof val === 'string' ? '' : 'px');\n }\n }\n}\n\nfunction matrix(el, selfOnly) {\n var appliedTransforms = '';\n\n if (typeof el === 'string') {\n appliedTransforms = el;\n } else {\n do {\n var transform = css(el, 'transform');\n\n if (transform && transform !== 'none') {\n appliedTransforms = transform + ' ' + appliedTransforms;\n }\n /* jshint boss:true */\n\n } while (!selfOnly && (el = el.parentNode));\n }\n\n var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;\n /*jshint -W056 */\n\n return matrixFn && new matrixFn(appliedTransforms);\n}\n\nfunction find(ctx, tagName, iterator) {\n if (ctx) {\n var list = ctx.getElementsByTagName(tagName),\n i = 0,\n n = list.length;\n\n if (iterator) {\n for (; i < n; i++) {\n iterator(list[i], i);\n }\n }\n\n return list;\n }\n\n return [];\n}\n\nfunction getWindowScrollingElement() {\n var scrollingElement = document.scrollingElement;\n\n if (scrollingElement) {\n return scrollingElement;\n } else {\n return document.documentElement;\n }\n}\n/**\n * Returns the \"bounding client rect\" of given element\n * @param {HTMLElement} el The element whose boundingClientRect is wanted\n * @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container\n * @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr\n * @param {[Boolean]} undoScale Whether the container's scale() should be undone\n * @param {[HTMLElement]} container The parent the element will be placed in\n * @return {Object} The boundingClientRect of el, with specified adjustments\n */\n\n\nfunction getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {\n if (!el.getBoundingClientRect && el !== window) return;\n var elRect, top, left, bottom, right, height, width;\n\n if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {\n elRect = el.getBoundingClientRect();\n top = elRect.top;\n left = elRect.left;\n bottom = elRect.bottom;\n right = elRect.right;\n height = elRect.height;\n width = elRect.width;\n } else {\n top = 0;\n left = 0;\n bottom = window.innerHeight;\n right = window.innerWidth;\n height = window.innerHeight;\n width = window.innerWidth;\n }\n\n if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {\n // Adjust for translate()\n container = container || el.parentNode; // solves #1123 (see: https://stackoverflow.com/a/37953806/6088312)\n // Not needed on <= IE11\n\n if (!IE11OrLess) {\n do {\n if (container && container.getBoundingClientRect && (css(container, 'transform') !== 'none' || relativeToNonStaticParent && css(container, 'position') !== 'static')) {\n var containerRect = container.getBoundingClientRect(); // Set relative to edges of padding box of container\n\n top -= containerRect.top + parseInt(css(container, 'border-top-width'));\n left -= containerRect.left + parseInt(css(container, 'border-left-width'));\n bottom = top + elRect.height;\n right = left + elRect.width;\n break;\n }\n /* jshint boss:true */\n\n } while (container = container.parentNode);\n }\n }\n\n if (undoScale && el !== window) {\n // Adjust for scale()\n var elMatrix = matrix(container || el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d;\n\n if (elMatrix) {\n top /= scaleY;\n left /= scaleX;\n width /= scaleX;\n height /= scaleY;\n bottom = top + height;\n right = left + width;\n }\n }\n\n return {\n top: top,\n left: left,\n bottom: bottom,\n right: right,\n width: width,\n height: height\n };\n}\n/**\n * Checks if a side of an element is scrolled past a side of its parents\n * @param {HTMLElement} el The element who's side being scrolled out of view is in question\n * @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')\n * @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')\n * @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element\n */\n\n\nfunction isScrolledPast(el, elSide, parentSide) {\n var parent = getParentAutoScrollElement(el, true),\n elSideVal = getRect(el)[elSide];\n /* jshint boss:true */\n\n while (parent) {\n var parentSideVal = getRect(parent)[parentSide],\n visible = void 0;\n\n if (parentSide === 'top' || parentSide === 'left') {\n visible = elSideVal >= parentSideVal;\n } else {\n visible = elSideVal <= parentSideVal;\n }\n\n if (!visible) return parent;\n if (parent === getWindowScrollingElement()) break;\n parent = getParentAutoScrollElement(parent, false);\n }\n\n return false;\n}\n/**\n * Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)\n * and non-draggable elements\n * @param {HTMLElement} el The parent element\n * @param {Number} childNum The index of the child\n * @param {Object} options Parent Sortable's options\n * @return {HTMLElement} The child at index childNum, or null if not found\n */\n\n\nfunction getChild(el, childNum, options, includeDragEl) {\n var currentChild = 0,\n i = 0,\n children = el.children;\n\n while (i < children.length) {\n if (children[i].style.display !== 'none' && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {\n if (currentChild === childNum) {\n return children[i];\n }\n\n currentChild++;\n }\n\n i++;\n }\n\n return null;\n}\n/**\n * Gets the last child in the el, ignoring ghostEl or invisible elements (clones)\n * @param {HTMLElement} el Parent element\n * @param {selector} selector Any other elements that should be ignored\n * @return {HTMLElement} The last child, ignoring ghostEl\n */\n\n\nfunction lastChild(el, selector) {\n var last = el.lastElementChild;\n\n while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) {\n last = last.previousElementSibling;\n }\n\n return last || null;\n}\n/**\n * Returns the index of an element within its parent for a selected set of\n * elements\n * @param {HTMLElement} el\n * @param {selector} selector\n * @return {number}\n */\n\n\nfunction index(el, selector) {\n var index = 0;\n\n if (!el || !el.parentNode) {\n return -1;\n }\n /* jshint boss:true */\n\n\n while (el = el.previousElementSibling) {\n if (el.nodeName.toUpperCase() !== 'TEMPLATE' && el !== Sortable.clone && (!selector || matches(el, selector))) {\n index++;\n }\n }\n\n return index;\n}\n/**\n * Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.\n * The value is returned in real pixels.\n * @param {HTMLElement} el\n * @return {Array} Offsets in the format of [left, top]\n */\n\n\nfunction getRelativeScrollOffset(el) {\n var offsetLeft = 0,\n offsetTop = 0,\n winScroller = getWindowScrollingElement();\n\n if (el) {\n do {\n var elMatrix = matrix(el),\n scaleX = elMatrix.a,\n scaleY = elMatrix.d;\n offsetLeft += el.scrollLeft * scaleX;\n offsetTop += el.scrollTop * scaleY;\n } while (el !== winScroller && (el = el.parentNode));\n }\n\n return [offsetLeft, offsetTop];\n}\n/**\n * Returns the index of the object within the given array\n * @param {Array} arr Array that may or may not hold the object\n * @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find\n * @return {Number} The index of the object in the array, or -1\n */\n\n\nfunction indexOfObject(arr, obj) {\n for (var i in arr) {\n if (!arr.hasOwnProperty(i)) continue;\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);\n }\n }\n\n return -1;\n}\n\nfunction getParentAutoScrollElement(el, includeSelf) {\n // skip to window\n if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();\n var elem = el;\n var gotSelf = false;\n\n do {\n // we don't need to get elem css if it isn't even overflowing in the first place (performance)\n if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {\n var elemCSS = css(elem);\n\n if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == 'auto' || elemCSS.overflowX == 'scroll') || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == 'auto' || elemCSS.overflowY == 'scroll')) {\n if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();\n if (gotSelf || includeSelf) return elem;\n gotSelf = true;\n }\n }\n /* jshint boss:true */\n\n } while (elem = elem.parentNode);\n\n return getWindowScrollingElement();\n}\n\nfunction extend(dst, src) {\n if (dst && src) {\n for (var key in src) {\n if (src.hasOwnProperty(key)) {\n dst[key] = src[key];\n }\n }\n }\n\n return dst;\n}\n\nfunction isRectEqual(rect1, rect2) {\n return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);\n}\n\nvar _throttleTimeout;\n\nfunction throttle(callback, ms) {\n return function () {\n if (!_throttleTimeout) {\n var args = arguments,\n _this = this;\n\n if (args.length === 1) {\n callback.call(_this, args[0]);\n } else {\n callback.apply(_this, args);\n }\n\n _throttleTimeout = setTimeout(function () {\n _throttleTimeout = void 0;\n }, ms);\n }\n };\n}\n\nfunction cancelThrottle() {\n clearTimeout(_throttleTimeout);\n _throttleTimeout = void 0;\n}\n\nfunction scrollBy(el, x, y) {\n el.scrollLeft += x;\n el.scrollTop += y;\n}\n\nfunction clone(el) {\n var Polymer = window.Polymer;\n var $ = window.jQuery || window.Zepto;\n\n if (Polymer && Polymer.dom) {\n return Polymer.dom(el).cloneNode(true);\n } else if ($) {\n return $(el).clone(true)[0];\n } else {\n return el.cloneNode(true);\n }\n}\n\nfunction setRect(el, rect) {\n css(el, 'position', 'absolute');\n css(el, 'top', rect.top);\n css(el, 'left', rect.left);\n css(el, 'width', rect.width);\n css(el, 'height', rect.height);\n}\n\nfunction unsetRect(el) {\n css(el, 'position', '');\n css(el, 'top', '');\n css(el, 'left', '');\n css(el, 'width', '');\n css(el, 'height', '');\n}\n\nvar expando = 'Sortable' + new Date().getTime();\n\nfunction AnimationStateManager() {\n var animationStates = [],\n animationCallbackId;\n return {\n captureAnimationState: function captureAnimationState() {\n animationStates = [];\n if (!this.options.animation) return;\n var children = [].slice.call(this.el.children);\n children.forEach(function (child) {\n if (css(child, 'display') === 'none' || child === Sortable.ghost) return;\n animationStates.push({\n target: child,\n rect: getRect(child)\n });\n\n var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect); // If animating: compensate for current animation\n\n\n if (child.thisAnimationDuration) {\n var childMatrix = matrix(child, true);\n\n if (childMatrix) {\n fromRect.top -= childMatrix.f;\n fromRect.left -= childMatrix.e;\n }\n }\n\n child.fromRect = fromRect;\n });\n },\n addAnimationState: function addAnimationState(state) {\n animationStates.push(state);\n },\n removeAnimationState: function removeAnimationState(target) {\n animationStates.splice(indexOfObject(animationStates, {\n target: target\n }), 1);\n },\n animateAll: function animateAll(callback) {\n var _this = this;\n\n if (!this.options.animation) {\n clearTimeout(animationCallbackId);\n if (typeof callback === 'function') callback();\n return;\n }\n\n var animating = false,\n animationTime = 0;\n animationStates.forEach(function (state) {\n var time = 0,\n target = state.target,\n fromRect = target.fromRect,\n toRect = getRect(target),\n prevFromRect = target.prevFromRect,\n prevToRect = target.prevToRect,\n animatingRect = state.rect,\n targetMatrix = matrix(target, true);\n\n if (targetMatrix) {\n // Compensate for current animation\n toRect.top -= targetMatrix.f;\n toRect.left -= targetMatrix.e;\n }\n\n target.toRect = toRect;\n\n if (target.thisAnimationDuration) {\n // Could also check if animatingRect is between fromRect and toRect\n if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect\n (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {\n // If returning to same place as started from animation and on same axis\n time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);\n }\n } // if fromRect != toRect: animate\n\n\n if (!isRectEqual(toRect, fromRect)) {\n target.prevFromRect = fromRect;\n target.prevToRect = toRect;\n\n if (!time) {\n time = _this.options.animation;\n }\n\n _this.animate(target, animatingRect, toRect, time);\n }\n\n if (time) {\n animating = true;\n animationTime = Math.max(animationTime, time);\n clearTimeout(target.animationResetTimer);\n target.animationResetTimer = setTimeout(function () {\n target.animationTime = 0;\n target.prevFromRect = null;\n target.fromRect = null;\n target.prevToRect = null;\n target.thisAnimationDuration = null;\n }, time);\n target.thisAnimationDuration = time;\n }\n });\n clearTimeout(animationCallbackId);\n\n if (!animating) {\n if (typeof callback === 'function') callback();\n } else {\n animationCallbackId = setTimeout(function () {\n if (typeof callback === 'function') callback();\n }, animationTime);\n }\n\n animationStates = [];\n },\n animate: function animate(target, currentRect, toRect, duration) {\n if (duration) {\n css(target, 'transition', '');\n css(target, 'transform', '');\n var elMatrix = matrix(this.el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d,\n translateX = (currentRect.left - toRect.left) / (scaleX || 1),\n translateY = (currentRect.top - toRect.top) / (scaleY || 1);\n target.animatingX = !!translateX;\n target.animatingY = !!translateY;\n css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');\n this.forRepaintDummy = repaint(target); // repaint\n\n css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : ''));\n css(target, 'transform', 'translate3d(0,0,0)');\n typeof target.animated === 'number' && clearTimeout(target.animated);\n target.animated = setTimeout(function () {\n css(target, 'transition', '');\n css(target, 'transform', '');\n target.animated = false;\n target.animatingX = false;\n target.animatingY = false;\n }, duration);\n }\n }\n };\n}\n\nfunction repaint(target) {\n return target.offsetWidth;\n}\n\nfunction calculateRealTime(animatingRect, fromRect, toRect, options) {\n return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;\n}\n\nvar plugins = [];\nvar defaults = {\n initializeByDefault: true\n};\nvar PluginManager = {\n mount: function mount(plugin) {\n // Set default static properties\n for (var option in defaults) {\n if (defaults.hasOwnProperty(option) && !(option in plugin)) {\n plugin[option] = defaults[option];\n }\n }\n\n plugins.forEach(function (p) {\n if (p.pluginName === plugin.pluginName) {\n throw \"Sortable: Cannot mount plugin \".concat(plugin.pluginName, \" more than once\");\n }\n });\n plugins.push(plugin);\n },\n pluginEvent: function pluginEvent(eventName, sortable, evt) {\n var _this = this;\n\n this.eventCanceled = false;\n\n evt.cancel = function () {\n _this.eventCanceled = true;\n };\n\n var eventNameGlobal = eventName + 'Global';\n plugins.forEach(function (plugin) {\n if (!sortable[plugin.pluginName]) return; // Fire global events if it exists in this sortable\n\n if (sortable[plugin.pluginName][eventNameGlobal]) {\n sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({\n sortable: sortable\n }, evt));\n } // Only fire plugin event if plugin is enabled in this sortable,\n // and plugin has event defined\n\n\n if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {\n sortable[plugin.pluginName][eventName](_objectSpread2({\n sortable: sortable\n }, evt));\n }\n });\n },\n initializePlugins: function initializePlugins(sortable, el, defaults, options) {\n plugins.forEach(function (plugin) {\n var pluginName = plugin.pluginName;\n if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;\n var initialized = new plugin(sortable, el, sortable.options);\n initialized.sortable = sortable;\n initialized.options = sortable.options;\n sortable[pluginName] = initialized; // Add default options from plugin\n\n _extends(defaults, initialized.defaults);\n });\n\n for (var option in sortable.options) {\n if (!sortable.options.hasOwnProperty(option)) continue;\n var modified = this.modifyOption(sortable, option, sortable.options[option]);\n\n if (typeof modified !== 'undefined') {\n sortable.options[option] = modified;\n }\n }\n },\n getEventProperties: function getEventProperties(name, sortable) {\n var eventProperties = {};\n plugins.forEach(function (plugin) {\n if (typeof plugin.eventProperties !== 'function') return;\n\n _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));\n });\n return eventProperties;\n },\n modifyOption: function modifyOption(sortable, name, value) {\n var modifiedValue;\n plugins.forEach(function (plugin) {\n // Plugin must exist on the Sortable\n if (!sortable[plugin.pluginName]) return; // If static option listener exists for this option, call in the context of the Sortable's instance of this plugin\n\n if (plugin.optionListeners && typeof plugin.optionListeners[name] === 'function') {\n modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);\n }\n });\n return modifiedValue;\n }\n};\n\nfunction dispatchEvent(_ref) {\n var sortable = _ref.sortable,\n rootEl = _ref.rootEl,\n name = _ref.name,\n targetEl = _ref.targetEl,\n cloneEl = _ref.cloneEl,\n toEl = _ref.toEl,\n fromEl = _ref.fromEl,\n oldIndex = _ref.oldIndex,\n newIndex = _ref.newIndex,\n oldDraggableIndex = _ref.oldDraggableIndex,\n newDraggableIndex = _ref.newDraggableIndex,\n originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n extraEventProperties = _ref.extraEventProperties;\n sortable = sortable || rootEl && rootEl[expando];\n if (!sortable) return;\n var evt,\n options = sortable.options,\n onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1); // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent(name, {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent(name, true, true);\n }\n\n evt.to = toEl || rootEl;\n evt.from = fromEl || rootEl;\n evt.item = targetEl || rootEl;\n evt.clone = cloneEl;\n evt.oldIndex = oldIndex;\n evt.newIndex = newIndex;\n evt.oldDraggableIndex = oldDraggableIndex;\n evt.newDraggableIndex = newDraggableIndex;\n evt.originalEvent = originalEvent;\n evt.pullMode = putSortable ? putSortable.lastPutMode : undefined;\n\n var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));\n\n for (var option in allEventProperties) {\n evt[option] = allEventProperties[option];\n }\n\n if (rootEl) {\n rootEl.dispatchEvent(evt);\n }\n\n if (options[onName]) {\n options[onName].call(sortable, evt);\n }\n}\n\nvar _excluded = [\"evt\"];\n\nvar pluginEvent = function pluginEvent(eventName, sortable) {\n var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n originalEvent = _ref.evt,\n data = _objectWithoutProperties(_ref, _excluded);\n\n PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({\n dragEl: dragEl,\n parentEl: parentEl,\n ghostEl: ghostEl,\n rootEl: rootEl,\n nextEl: nextEl,\n lastDownEl: lastDownEl,\n cloneEl: cloneEl,\n cloneHidden: cloneHidden,\n dragStarted: moved,\n putSortable: putSortable,\n activeSortable: Sortable.active,\n originalEvent: originalEvent,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n hideGhostForTarget: _hideGhostForTarget,\n unhideGhostForTarget: _unhideGhostForTarget,\n cloneNowHidden: function cloneNowHidden() {\n cloneHidden = true;\n },\n cloneNowShown: function cloneNowShown() {\n cloneHidden = false;\n },\n dispatchSortableEvent: function dispatchSortableEvent(name) {\n _dispatchEvent({\n sortable: sortable,\n name: name,\n originalEvent: originalEvent\n });\n }\n }, data));\n};\n\nfunction _dispatchEvent(info) {\n dispatchEvent(_objectSpread2({\n putSortable: putSortable,\n cloneEl: cloneEl,\n targetEl: dragEl,\n rootEl: rootEl,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex\n }, info));\n}\n\nvar dragEl,\n parentEl,\n ghostEl,\n rootEl,\n nextEl,\n lastDownEl,\n cloneEl,\n cloneHidden,\n oldIndex,\n newIndex,\n oldDraggableIndex,\n newDraggableIndex,\n activeGroup,\n putSortable,\n awaitingDragStarted = false,\n ignoreNextClick = false,\n sortables = [],\n tapEvt,\n touchEvt,\n lastDx,\n lastDy,\n tapDistanceLeft,\n tapDistanceTop,\n moved,\n lastTarget,\n lastDirection,\n pastFirstInvertThresh = false,\n isCircumstantialInvert = false,\n targetMoveDistance,\n // For positioning ghost absolutely\nghostRelativeParent,\n ghostRelativeParentInitialScroll = [],\n // (left, top)\n_silent = false,\n savedInputChecked = [];\n/** @const */\n\nvar documentExists = typeof document !== 'undefined',\n PositionGhostAbsolutely = IOS,\n CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float',\n // This will not pass for IE9, because IE9 DnD only works on anchors\nsupportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'),\n supportCssPointerEvents = function () {\n if (!documentExists) return; // false when <= IE11\n\n if (IE11OrLess) {\n return false;\n }\n\n var el = document.createElement('x');\n el.style.cssText = 'pointer-events:auto';\n return el.style.pointerEvents === 'auto';\n}(),\n _detectDirection = function _detectDirection(el, options) {\n var elCSS = css(el),\n elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth),\n child1 = getChild(el, 0, options),\n child2 = getChild(el, 1, options),\n firstChildCSS = child1 && css(child1),\n secondChildCSS = child2 && css(child2),\n firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width,\n secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;\n\n if (elCSS.display === 'flex') {\n return elCSS.flexDirection === 'column' || elCSS.flexDirection === 'column-reverse' ? 'vertical' : 'horizontal';\n }\n\n if (elCSS.display === 'grid') {\n return elCSS.gridTemplateColumns.split(' ').length <= 1 ? 'vertical' : 'horizontal';\n }\n\n if (child1 && firstChildCSS[\"float\"] && firstChildCSS[\"float\"] !== 'none') {\n var touchingSideChild2 = firstChildCSS[\"float\"] === 'left' ? 'left' : 'right';\n return child2 && (secondChildCSS.clear === 'both' || secondChildCSS.clear === touchingSideChild2) ? 'vertical' : 'horizontal';\n }\n\n return child1 && (firstChildCSS.display === 'block' || firstChildCSS.display === 'flex' || firstChildCSS.display === 'table' || firstChildCSS.display === 'grid' || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === 'none' || child2 && elCSS[CSSFloatProperty] === 'none' && firstChildWidth + secondChildWidth > elWidth) ? 'vertical' : 'horizontal';\n},\n _dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {\n var dragElS1Opp = vertical ? dragRect.left : dragRect.top,\n dragElS2Opp = vertical ? dragRect.right : dragRect.bottom,\n dragElOppLength = vertical ? dragRect.width : dragRect.height,\n targetS1Opp = vertical ? targetRect.left : targetRect.top,\n targetS2Opp = vertical ? targetRect.right : targetRect.bottom,\n targetOppLength = vertical ? targetRect.width : targetRect.height;\n return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;\n},\n\n/**\r\n * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.\r\n * @param {Number} x X position\r\n * @param {Number} y Y position\r\n * @return {HTMLElement} Element of the first found nearest Sortable\r\n */\n_detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {\n var ret;\n sortables.some(function (sortable) {\n var threshold = sortable[expando].options.emptyInsertThreshold;\n if (!threshold || lastChild(sortable)) return;\n var rect = getRect(sortable),\n insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold,\n insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;\n\n if (insideHorizontally && insideVertically) {\n return ret = sortable;\n }\n });\n return ret;\n},\n _prepareGroup = function _prepareGroup(options) {\n function toFn(value, pull) {\n return function (to, from, dragEl, evt) {\n var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;\n\n if (value == null && (pull || sameGroup)) {\n // Default pull value\n // Default pull and put value if same group\n return true;\n } else if (value == null || value === false) {\n return false;\n } else if (pull && value === 'clone') {\n return value;\n } else if (typeof value === 'function') {\n return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);\n } else {\n var otherGroup = (pull ? to : from).options.group.name;\n return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;\n }\n };\n }\n\n var group = {};\n var originalGroup = options.group;\n\n if (!originalGroup || _typeof(originalGroup) != 'object') {\n originalGroup = {\n name: originalGroup\n };\n }\n\n group.name = originalGroup.name;\n group.checkPull = toFn(originalGroup.pull, true);\n group.checkPut = toFn(originalGroup.put);\n group.revertClone = originalGroup.revertClone;\n options.group = group;\n},\n _hideGhostForTarget = function _hideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', 'none');\n }\n},\n _unhideGhostForTarget = function _unhideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', '');\n }\n}; // #1184 fix - Prevent click event on fallback if dragged but item not changed position\n\n\nif (documentExists && !ChromeForAndroid) {\n document.addEventListener('click', function (evt) {\n if (ignoreNextClick) {\n evt.preventDefault();\n evt.stopPropagation && evt.stopPropagation();\n evt.stopImmediatePropagation && evt.stopImmediatePropagation();\n ignoreNextClick = false;\n return false;\n }\n }, true);\n}\n\nvar nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {\n if (dragEl) {\n evt = evt.touches ? evt.touches[0] : evt;\n\n var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);\n\n if (nearest) {\n // Create imitation event\n var event = {};\n\n for (var i in evt) {\n if (evt.hasOwnProperty(i)) {\n event[i] = evt[i];\n }\n }\n\n event.target = event.rootEl = nearest;\n event.preventDefault = void 0;\n event.stopPropagation = void 0;\n\n nearest[expando]._onDragOver(event);\n }\n }\n};\n\nvar _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {\n if (dragEl) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target);\n }\n};\n/**\r\n * @class Sortable\r\n * @param {HTMLElement} el\r\n * @param {Object} [options]\r\n */\n\n\nfunction Sortable(el, options) {\n if (!(el && el.nodeType && el.nodeType === 1)) {\n throw \"Sortable: `el` must be an HTMLElement, not \".concat({}.toString.call(el));\n }\n\n this.el = el; // root element\n\n this.options = options = _extends({}, options); // Export instance\n\n el[expando] = this;\n var defaults = {\n group: null,\n sort: true,\n disabled: false,\n store: null,\n handle: null,\n draggable: /^[uo]l$/i.test(el.nodeName) ? '>li' : '>*',\n swapThreshold: 1,\n // percentage; 0 <= x <= 1\n invertSwap: false,\n // invert always\n invertedSwapThreshold: null,\n // will be set to same as swapThreshold if default\n removeCloneOnHide: true,\n direction: function direction() {\n return _detectDirection(el, this.options);\n },\n ghostClass: 'sortable-ghost',\n chosenClass: 'sortable-chosen',\n dragClass: 'sortable-drag',\n ignore: 'a, img',\n filter: null,\n preventOnFilter: true,\n animation: 0,\n easing: null,\n setData: function setData(dataTransfer, dragEl) {\n dataTransfer.setData('Text', dragEl.textContent);\n },\n dropBubble: false,\n dragoverBubble: false,\n dataIdAttr: 'data-id',\n delay: 0,\n delayOnTouchOnly: false,\n touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,\n forceFallback: false,\n fallbackClass: 'sortable-fallback',\n fallbackOnBody: false,\n fallbackTolerance: 0,\n fallbackOffset: {\n x: 0,\n y: 0\n },\n supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,\n emptyInsertThreshold: 5\n };\n PluginManager.initializePlugins(this, el, defaults); // Set default options\n\n for (var name in defaults) {\n !(name in options) && (options[name] = defaults[name]);\n }\n\n _prepareGroup(options); // Bind all private methods\n\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n } // Setup drag mode\n\n\n this.nativeDraggable = options.forceFallback ? false : supportDraggable;\n\n if (this.nativeDraggable) {\n // Touch start threshold cannot be greater than the native dragstart threshold\n this.options.touchStartThreshold = 1;\n } // Bind events\n\n\n if (options.supportPointer) {\n on(el, 'pointerdown', this._onTapStart);\n } else {\n on(el, 'mousedown', this._onTapStart);\n on(el, 'touchstart', this._onTapStart);\n }\n\n if (this.nativeDraggable) {\n on(el, 'dragover', this);\n on(el, 'dragenter', this);\n }\n\n sortables.push(this.el); // Restore sorting\n\n options.store && options.store.get && this.sort(options.store.get(this) || []); // Add animation state manager\n\n _extends(this, AnimationStateManager());\n}\n\nSortable.prototype =\n/** @lends Sortable.prototype */\n{\n constructor: Sortable,\n _isOutsideThisEl: function _isOutsideThisEl(target) {\n if (!this.el.contains(target) && target !== this.el) {\n lastTarget = null;\n }\n },\n _getDirection: function _getDirection(evt, target) {\n return typeof this.options.direction === 'function' ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;\n },\n _onTapStart: function _onTapStart(\n /** Event|TouchEvent */\n evt) {\n if (!evt.cancelable) return;\n\n var _this = this,\n el = this.el,\n options = this.options,\n preventOnFilter = options.preventOnFilter,\n type = evt.type,\n touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === 'touch' && evt,\n target = (touch || evt).target,\n originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target,\n filter = options.filter;\n\n _saveInputCheckedState(el); // Don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group.\n\n\n if (dragEl) {\n return;\n }\n\n if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {\n return; // only left button and enabled\n } // cancel dnd if original target is content editable\n\n\n if (originalTarget.isContentEditable) {\n return;\n } // Safari ignores further event handling after mousedown\n\n\n if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {\n return;\n }\n\n target = closest(target, options.draggable, el, false);\n\n if (target && target.animated) {\n return;\n }\n\n if (lastDownEl === target) {\n // Ignoring duplicate `down`\n return;\n } // Get the index of the dragged element within its parent\n\n\n oldIndex = index(target);\n oldDraggableIndex = index(target, options.draggable); // Check filter\n\n if (typeof filter === 'function') {\n if (filter.call(this, evt, target, this)) {\n _dispatchEvent({\n sortable: _this,\n rootEl: originalTarget,\n name: 'filter',\n targetEl: target,\n toEl: el,\n fromEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n } else if (filter) {\n filter = filter.split(',').some(function (criteria) {\n criteria = closest(originalTarget, criteria.trim(), el, false);\n\n if (criteria) {\n _dispatchEvent({\n sortable: _this,\n rootEl: criteria,\n name: 'filter',\n targetEl: target,\n fromEl: el,\n toEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n return true;\n }\n });\n\n if (filter) {\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n }\n\n if (options.handle && !closest(originalTarget, options.handle, el, false)) {\n return;\n } // Prepare `dragstart`\n\n\n this._prepareDragStart(evt, touch, target);\n },\n _prepareDragStart: function _prepareDragStart(\n /** Event */\n evt,\n /** Touch */\n touch,\n /** HTMLElement */\n target) {\n var _this = this,\n el = _this.el,\n options = _this.options,\n ownerDocument = el.ownerDocument,\n dragStartFn;\n\n if (target && !dragEl && target.parentNode === el) {\n var dragRect = getRect(target);\n rootEl = el;\n dragEl = target;\n parentEl = dragEl.parentNode;\n nextEl = dragEl.nextSibling;\n lastDownEl = target;\n activeGroup = options.group;\n Sortable.dragged = dragEl;\n tapEvt = {\n target: dragEl,\n clientX: (touch || evt).clientX,\n clientY: (touch || evt).clientY\n };\n tapDistanceLeft = tapEvt.clientX - dragRect.left;\n tapDistanceTop = tapEvt.clientY - dragRect.top;\n this._lastX = (touch || evt).clientX;\n this._lastY = (touch || evt).clientY;\n dragEl.style['will-change'] = 'all';\n\n dragStartFn = function dragStartFn() {\n pluginEvent('delayEnded', _this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n _this._onDrop();\n\n return;\n } // Delayed drag has been triggered\n // we can re-enable the events: touchmove/mousemove\n\n\n _this._disableDelayedDragEvents();\n\n if (!FireFox && _this.nativeDraggable) {\n dragEl.draggable = true;\n } // Bind the events: dragstart/dragend\n\n\n _this._triggerDragStart(evt, touch); // Drag start event\n\n\n _dispatchEvent({\n sortable: _this,\n name: 'choose',\n originalEvent: evt\n }); // Chosen item\n\n\n toggleClass(dragEl, options.chosenClass, true);\n }; // Disable \"draggable\"\n\n\n options.ignore.split(',').forEach(function (criteria) {\n find(dragEl, criteria.trim(), _disableDraggable);\n });\n on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mouseup', _this._onDrop);\n on(ownerDocument, 'touchend', _this._onDrop);\n on(ownerDocument, 'touchcancel', _this._onDrop); // Make dragEl draggable (must be before delay for FireFox)\n\n if (FireFox && this.nativeDraggable) {\n this.options.touchStartThreshold = 4;\n dragEl.draggable = true;\n }\n\n pluginEvent('delayStart', this, {\n evt: evt\n }); // Delay is impossible for native DnD in Edge or IE\n\n if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n } // If the user moves the pointer or let go the click or touch\n // before the delay has been reached:\n // disable the delayed drag\n\n\n on(ownerDocument, 'mouseup', _this._disableDelayedDrag);\n on(ownerDocument, 'touchend', _this._disableDelayedDrag);\n on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);\n on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler);\n on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);\n options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);\n _this._dragStartTimer = setTimeout(dragStartFn, options.delay);\n } else {\n dragStartFn();\n }\n }\n },\n _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(\n /** TouchEvent|PointerEvent **/\n e) {\n var touch = e.touches ? e.touches[0] : e;\n\n if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) {\n this._disableDelayedDrag();\n }\n },\n _disableDelayedDrag: function _disableDelayedDrag() {\n dragEl && _disableDraggable(dragEl);\n clearTimeout(this._dragStartTimer);\n\n this._disableDelayedDragEvents();\n },\n _disableDelayedDragEvents: function _disableDelayedDragEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._disableDelayedDrag);\n off(ownerDocument, 'touchend', this._disableDelayedDrag);\n off(ownerDocument, 'touchcancel', this._disableDelayedDrag);\n off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler);\n },\n _triggerDragStart: function _triggerDragStart(\n /** Event */\n evt,\n /** Touch */\n touch) {\n touch = touch || evt.pointerType == 'touch' && evt;\n\n if (!this.nativeDraggable || touch) {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._onTouchMove);\n } else if (touch) {\n on(document, 'touchmove', this._onTouchMove);\n } else {\n on(document, 'mousemove', this._onTouchMove);\n }\n } else {\n on(dragEl, 'dragend', this);\n on(rootEl, 'dragstart', this._onDragStart);\n }\n\n try {\n if (document.selection) {\n // Timeout neccessary for IE9\n _nextTick(function () {\n document.selection.empty();\n });\n } else {\n window.getSelection().removeAllRanges();\n }\n } catch (err) {}\n },\n _dragStarted: function _dragStarted(fallback, evt) {\n\n awaitingDragStarted = false;\n\n if (rootEl && dragEl) {\n pluginEvent('dragStarted', this, {\n evt: evt\n });\n\n if (this.nativeDraggable) {\n on(document, 'dragover', _checkOutsideTargetEl);\n }\n\n var options = this.options; // Apply effect\n\n !fallback && toggleClass(dragEl, options.dragClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n Sortable.active = this;\n fallback && this._appendGhost(); // Drag start event\n\n _dispatchEvent({\n sortable: this,\n name: 'start',\n originalEvent: evt\n });\n } else {\n this._nulling();\n }\n },\n _emulateDragOver: function _emulateDragOver() {\n if (touchEvt) {\n this._lastX = touchEvt.clientX;\n this._lastY = touchEvt.clientY;\n\n _hideGhostForTarget();\n\n var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n var parent = target;\n\n while (target && target.shadowRoot) {\n target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n if (target === parent) break;\n parent = target;\n }\n\n dragEl.parentNode[expando]._isOutsideThisEl(target);\n\n if (parent) {\n do {\n if (parent[expando]) {\n var inserted = void 0;\n inserted = parent[expando]._onDragOver({\n clientX: touchEvt.clientX,\n clientY: touchEvt.clientY,\n target: target,\n rootEl: parent\n });\n\n if (inserted && !this.options.dragoverBubble) {\n break;\n }\n }\n\n target = parent; // store last element\n }\n /* jshint boss:true */\n while (parent = parent.parentNode);\n }\n\n _unhideGhostForTarget();\n }\n },\n _onTouchMove: function _onTouchMove(\n /**TouchEvent*/\n evt) {\n if (tapEvt) {\n var options = this.options,\n fallbackTolerance = options.fallbackTolerance,\n fallbackOffset = options.fallbackOffset,\n touch = evt.touches ? evt.touches[0] : evt,\n ghostMatrix = ghostEl && matrix(ghostEl, true),\n scaleX = ghostEl && ghostMatrix && ghostMatrix.a,\n scaleY = ghostEl && ghostMatrix && ghostMatrix.d,\n relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent),\n dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1),\n dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1); // only set the status to dragging, when we are actually dragging\n\n if (!Sortable.active && !awaitingDragStarted) {\n if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {\n return;\n }\n\n this._onDragStart(evt, true);\n }\n\n if (ghostEl) {\n if (ghostMatrix) {\n ghostMatrix.e += dx - (lastDx || 0);\n ghostMatrix.f += dy - (lastDy || 0);\n } else {\n ghostMatrix = {\n a: 1,\n b: 0,\n c: 0,\n d: 1,\n e: dx,\n f: dy\n };\n }\n\n var cssMatrix = \"matrix(\".concat(ghostMatrix.a, \",\").concat(ghostMatrix.b, \",\").concat(ghostMatrix.c, \",\").concat(ghostMatrix.d, \",\").concat(ghostMatrix.e, \",\").concat(ghostMatrix.f, \")\");\n css(ghostEl, 'webkitTransform', cssMatrix);\n css(ghostEl, 'mozTransform', cssMatrix);\n css(ghostEl, 'msTransform', cssMatrix);\n css(ghostEl, 'transform', cssMatrix);\n lastDx = dx;\n lastDy = dy;\n touchEvt = touch;\n }\n\n evt.cancelable && evt.preventDefault();\n }\n },\n _appendGhost: function _appendGhost() {\n // Bug if using scale(): https://stackoverflow.com/questions/2637058\n // Not being adjusted for\n if (!ghostEl) {\n var container = this.options.fallbackOnBody ? document.body : rootEl,\n rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container),\n options = this.options; // Position absolutely\n\n if (PositionGhostAbsolutely) {\n // Get relatively positioned parent\n ghostRelativeParent = container;\n\n while (css(ghostRelativeParent, 'position') === 'static' && css(ghostRelativeParent, 'transform') === 'none' && ghostRelativeParent !== document) {\n ghostRelativeParent = ghostRelativeParent.parentNode;\n }\n\n if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {\n if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();\n rect.top += ghostRelativeParent.scrollTop;\n rect.left += ghostRelativeParent.scrollLeft;\n } else {\n ghostRelativeParent = getWindowScrollingElement();\n }\n\n ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);\n }\n\n ghostEl = dragEl.cloneNode(true);\n toggleClass(ghostEl, options.ghostClass, false);\n toggleClass(ghostEl, options.fallbackClass, true);\n toggleClass(ghostEl, options.dragClass, true);\n css(ghostEl, 'transition', '');\n css(ghostEl, 'transform', '');\n css(ghostEl, 'box-sizing', 'border-box');\n css(ghostEl, 'margin', 0);\n css(ghostEl, 'top', rect.top);\n css(ghostEl, 'left', rect.left);\n css(ghostEl, 'width', rect.width);\n css(ghostEl, 'height', rect.height);\n css(ghostEl, 'opacity', '0.8');\n css(ghostEl, 'position', PositionGhostAbsolutely ? 'absolute' : 'fixed');\n css(ghostEl, 'zIndex', '100000');\n css(ghostEl, 'pointerEvents', 'none');\n Sortable.ghost = ghostEl;\n container.appendChild(ghostEl); // Set transform-origin\n\n css(ghostEl, 'transform-origin', tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + '% ' + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + '%');\n }\n },\n _onDragStart: function _onDragStart(\n /**Event*/\n evt,\n /**boolean*/\n fallback) {\n var _this = this;\n\n var dataTransfer = evt.dataTransfer;\n var options = _this.options;\n pluginEvent('dragStart', this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n }\n\n pluginEvent('setupClone', this);\n\n if (!Sortable.eventCanceled) {\n cloneEl = clone(dragEl);\n cloneEl.removeAttribute(\"id\");\n cloneEl.draggable = false;\n cloneEl.style['will-change'] = '';\n\n this._hideClone();\n\n toggleClass(cloneEl, this.options.chosenClass, false);\n Sortable.clone = cloneEl;\n } // #1143: IFrame support workaround\n\n\n _this.cloneId = _nextTick(function () {\n pluginEvent('clone', _this);\n if (Sortable.eventCanceled) return;\n\n if (!_this.options.removeCloneOnHide) {\n rootEl.insertBefore(cloneEl, dragEl);\n }\n\n _this._hideClone();\n\n _dispatchEvent({\n sortable: _this,\n name: 'clone'\n });\n });\n !fallback && toggleClass(dragEl, options.dragClass, true); // Set proper drop events\n\n if (fallback) {\n ignoreNextClick = true;\n _this._loopId = setInterval(_this._emulateDragOver, 50);\n } else {\n // Undo what was set in _prepareDragStart before drag started\n off(document, 'mouseup', _this._onDrop);\n off(document, 'touchend', _this._onDrop);\n off(document, 'touchcancel', _this._onDrop);\n\n if (dataTransfer) {\n dataTransfer.effectAllowed = 'move';\n options.setData && options.setData.call(_this, dataTransfer, dragEl);\n }\n\n on(document, 'drop', _this); // #1276 fix:\n\n css(dragEl, 'transform', 'translateZ(0)');\n }\n\n awaitingDragStarted = true;\n _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));\n on(document, 'selectstart', _this);\n moved = true;\n\n if (Safari) {\n css(document.body, 'user-select', 'none');\n }\n },\n // Returns true - if no further action is needed (either inserted or another condition)\n _onDragOver: function _onDragOver(\n /**Event*/\n evt) {\n var el = this.el,\n target = evt.target,\n dragRect,\n targetRect,\n revert,\n options = this.options,\n group = options.group,\n activeSortable = Sortable.active,\n isOwner = activeGroup === group,\n canSort = options.sort,\n fromSortable = putSortable || activeSortable,\n vertical,\n _this = this,\n completedFired = false;\n\n if (_silent) return;\n\n function dragOverEvent(name, extra) {\n pluginEvent(name, _this, _objectSpread2({\n evt: evt,\n isOwner: isOwner,\n axis: vertical ? 'vertical' : 'horizontal',\n revert: revert,\n dragRect: dragRect,\n targetRect: targetRect,\n canSort: canSort,\n fromSortable: fromSortable,\n target: target,\n completed: completed,\n onMove: function onMove(target, after) {\n return _onMove(rootEl, el, dragEl, dragRect, target, getRect(target), evt, after);\n },\n changed: changed\n }, extra));\n } // Capture animation state\n\n\n function capture() {\n dragOverEvent('dragOverAnimationCapture');\n\n _this.captureAnimationState();\n\n if (_this !== fromSortable) {\n fromSortable.captureAnimationState();\n }\n } // Return invocation when dragEl is inserted (or completed)\n\n\n function completed(insertion) {\n dragOverEvent('dragOverCompleted', {\n insertion: insertion\n });\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n } else {\n activeSortable._showClone(_this);\n }\n\n if (_this !== fromSortable) {\n // Set ghost class to new sortable's ghost class\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n }\n\n if (putSortable !== _this && _this !== Sortable.active) {\n putSortable = _this;\n } else if (_this === Sortable.active && putSortable) {\n putSortable = null;\n } // Animation\n\n\n if (fromSortable === _this) {\n _this._ignoreWhileAnimating = target;\n }\n\n _this.animateAll(function () {\n dragOverEvent('dragOverAnimationComplete');\n _this._ignoreWhileAnimating = null;\n });\n\n if (_this !== fromSortable) {\n fromSortable.animateAll();\n fromSortable._ignoreWhileAnimating = null;\n }\n } // Null lastTarget if it is not inside a previously swapped element\n\n\n if (target === dragEl && !dragEl.animated || target === el && !target.animated) {\n lastTarget = null;\n } // no bubbling and not fallback\n\n\n if (!options.dragoverBubble && !evt.rootEl && target !== document) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target); // Do not detect for empty insert if already inserted\n\n\n !insertion && nearestEmptyInsertDetectEvent(evt);\n }\n\n !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();\n return completedFired = true;\n } // Call when dragEl has been inserted\n\n\n function changed() {\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n _dispatchEvent({\n sortable: _this,\n name: 'change',\n toEl: el,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n originalEvent: evt\n });\n }\n\n if (evt.preventDefault !== void 0) {\n evt.cancelable && evt.preventDefault();\n }\n\n target = closest(target, options.draggable, el, true);\n dragOverEvent('dragOver');\n if (Sortable.eventCanceled) return completedFired;\n\n if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {\n return completed(false);\n }\n\n ignoreNextClick = false;\n\n if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list\n : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {\n vertical = this._getDirection(evt, target) === 'vertical';\n dragRect = getRect(dragEl);\n dragOverEvent('dragOverValid');\n if (Sortable.eventCanceled) return completedFired;\n\n if (revert) {\n parentEl = rootEl; // actualization\n\n capture();\n\n this._hideClone();\n\n dragOverEvent('revert');\n\n if (!Sortable.eventCanceled) {\n if (nextEl) {\n rootEl.insertBefore(dragEl, nextEl);\n } else {\n rootEl.appendChild(dragEl);\n }\n }\n\n return completed(true);\n }\n\n var elLastChild = lastChild(el, options.draggable);\n\n if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {\n // Insert to end of list\n // If already at end of list: Do not insert\n if (elLastChild === dragEl) {\n return completed(false);\n } // if there is a last element, it is the target\n\n\n if (elLastChild && el === evt.target) {\n target = elLastChild;\n }\n\n if (target) {\n targetRect = getRect(target);\n }\n\n if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {\n capture();\n\n if (elLastChild && elLastChild.nextSibling) {\n // the last draggable element is not the last node\n el.insertBefore(dragEl, elLastChild.nextSibling);\n } else {\n el.appendChild(dragEl);\n }\n\n parentEl = el; // actualization\n\n changed();\n return completed(true);\n }\n } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {\n // Insert to start of list\n var firstChild = getChild(el, 0, options, true);\n\n if (firstChild === dragEl) {\n return completed(false);\n }\n\n target = firstChild;\n targetRect = getRect(target);\n\n if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {\n capture();\n el.insertBefore(dragEl, firstChild);\n parentEl = el; // actualization\n\n changed();\n return completed(true);\n }\n } else if (target.parentNode === el) {\n targetRect = getRect(target);\n var direction = 0,\n targetBeforeFirstSwap,\n differentLevel = dragEl.parentNode !== el,\n differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical),\n side1 = vertical ? 'top' : 'left',\n scrolledPastTop = isScrolledPast(target, 'top', 'top') || isScrolledPast(dragEl, 'top', 'top'),\n scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;\n\n if (lastTarget !== target) {\n targetBeforeFirstSwap = targetRect[side1];\n pastFirstInvertThresh = false;\n isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;\n }\n\n direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);\n var sibling;\n\n if (direction !== 0) {\n // Check if target is beside dragEl in respective direction (ignoring hidden elements)\n var dragIndex = index(dragEl);\n\n do {\n dragIndex -= direction;\n sibling = parentEl.children[dragIndex];\n } while (sibling && (css(sibling, 'display') === 'none' || sibling === ghostEl));\n } // If dragEl is already beside target: Do not insert\n\n\n if (direction === 0 || sibling === target) {\n return completed(false);\n }\n\n lastTarget = target;\n lastDirection = direction;\n var nextSibling = target.nextElementSibling,\n after = false;\n after = direction === 1;\n\n var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);\n\n if (moveVector !== false) {\n if (moveVector === 1 || moveVector === -1) {\n after = moveVector === 1;\n }\n\n _silent = true;\n setTimeout(_unsilent, 30);\n capture();\n\n if (after && !nextSibling) {\n el.appendChild(dragEl);\n } else {\n target.parentNode.insertBefore(dragEl, after ? nextSibling : target);\n } // Undo chrome's scroll adjustment (has no effect on other browsers)\n\n\n if (scrolledPastTop) {\n scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);\n }\n\n parentEl = dragEl.parentNode; // actualization\n // must be done before animation\n\n if (targetBeforeFirstSwap !== undefined && !isCircumstantialInvert) {\n targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);\n }\n\n changed();\n return completed(true);\n }\n }\n\n if (el.contains(dragEl)) {\n return completed(false);\n }\n }\n\n return false;\n },\n _ignoreWhileAnimating: null,\n _offMoveEvents: function _offMoveEvents() {\n off(document, 'mousemove', this._onTouchMove);\n off(document, 'touchmove', this._onTouchMove);\n off(document, 'pointermove', this._onTouchMove);\n off(document, 'dragover', nearestEmptyInsertDetectEvent);\n off(document, 'mousemove', nearestEmptyInsertDetectEvent);\n off(document, 'touchmove', nearestEmptyInsertDetectEvent);\n },\n _offUpEvents: function _offUpEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._onDrop);\n off(ownerDocument, 'touchend', this._onDrop);\n off(ownerDocument, 'pointerup', this._onDrop);\n off(ownerDocument, 'touchcancel', this._onDrop);\n off(document, 'selectstart', this);\n },\n _onDrop: function _onDrop(\n /**Event*/\n evt) {\n var el = this.el,\n options = this.options; // Get the index of the dragged element within its parent\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n pluginEvent('drop', this, {\n evt: evt\n });\n parentEl = dragEl && dragEl.parentNode; // Get again after plugin event\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n if (Sortable.eventCanceled) {\n this._nulling();\n\n return;\n }\n\n awaitingDragStarted = false;\n isCircumstantialInvert = false;\n pastFirstInvertThresh = false;\n clearInterval(this._loopId);\n clearTimeout(this._dragStartTimer);\n\n _cancelNextTick(this.cloneId);\n\n _cancelNextTick(this._dragStartId); // Unbind events\n\n\n if (this.nativeDraggable) {\n off(document, 'drop', this);\n off(el, 'dragstart', this._onDragStart);\n }\n\n this._offMoveEvents();\n\n this._offUpEvents();\n\n if (Safari) {\n css(document.body, 'user-select', '');\n }\n\n css(dragEl, 'transform', '');\n\n if (evt) {\n if (moved) {\n evt.cancelable && evt.preventDefault();\n !options.dropBubble && evt.stopPropagation();\n }\n\n ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n // Remove clone(s)\n cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);\n }\n\n if (dragEl) {\n if (this.nativeDraggable) {\n off(dragEl, 'dragend', this);\n }\n\n _disableDraggable(dragEl);\n\n dragEl.style['will-change'] = ''; // Remove classes\n // ghostClass is added in dragStarted\n\n if (moved && !awaitingDragStarted) {\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);\n }\n\n toggleClass(dragEl, this.options.chosenClass, false); // Drag stop event\n\n _dispatchEvent({\n sortable: this,\n name: 'unchoose',\n toEl: parentEl,\n newIndex: null,\n newDraggableIndex: null,\n originalEvent: evt\n });\n\n if (rootEl !== parentEl) {\n if (newIndex >= 0) {\n // Add event\n _dispatchEvent({\n rootEl: parentEl,\n name: 'add',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n }); // Remove event\n\n\n _dispatchEvent({\n sortable: this,\n name: 'remove',\n toEl: parentEl,\n originalEvent: evt\n }); // drag from one list and drop into another\n\n\n _dispatchEvent({\n rootEl: parentEl,\n name: 'sort',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n\n putSortable && putSortable.save();\n } else {\n if (newIndex !== oldIndex) {\n if (newIndex >= 0) {\n // drag & drop within the same list\n _dispatchEvent({\n sortable: this,\n name: 'update',\n toEl: parentEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n }\n }\n\n if (Sortable.active) {\n /* jshint eqnull:true */\n if (newIndex == null || newIndex === -1) {\n newIndex = oldIndex;\n newDraggableIndex = oldDraggableIndex;\n }\n\n _dispatchEvent({\n sortable: this,\n name: 'end',\n toEl: parentEl,\n originalEvent: evt\n }); // Save sorting\n\n\n this.save();\n }\n }\n }\n\n this._nulling();\n },\n _nulling: function _nulling() {\n pluginEvent('nulling', this);\n rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;\n savedInputChecked.forEach(function (el) {\n el.checked = true;\n });\n savedInputChecked.length = lastDx = lastDy = 0;\n },\n handleEvent: function handleEvent(\n /**Event*/\n evt) {\n switch (evt.type) {\n case 'drop':\n case 'dragend':\n this._onDrop(evt);\n\n break;\n\n case 'dragenter':\n case 'dragover':\n if (dragEl) {\n this._onDragOver(evt);\n\n _globalDragOver(evt);\n }\n\n break;\n\n case 'selectstart':\n evt.preventDefault();\n break;\n }\n },\n\n /**\r\n * Serializes the item into an array of string.\r\n * @returns {String[]}\r\n */\n toArray: function toArray() {\n var order = [],\n el,\n children = this.el.children,\n i = 0,\n n = children.length,\n options = this.options;\n\n for (; i < n; i++) {\n el = children[i];\n\n if (closest(el, options.draggable, this.el, false)) {\n order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));\n }\n }\n\n return order;\n },\n\n /**\r\n * Sorts the elements according to the array.\r\n * @param {String[]} order order of the items\r\n */\n sort: function sort(order, useAnimation) {\n var items = {},\n rootEl = this.el;\n this.toArray().forEach(function (id, i) {\n var el = rootEl.children[i];\n\n if (closest(el, this.options.draggable, rootEl, false)) {\n items[id] = el;\n }\n }, this);\n useAnimation && this.captureAnimationState();\n order.forEach(function (id) {\n if (items[id]) {\n rootEl.removeChild(items[id]);\n rootEl.appendChild(items[id]);\n }\n });\n useAnimation && this.animateAll();\n },\n\n /**\r\n * Save the current sorting\r\n */\n save: function save() {\n var store = this.options.store;\n store && store.set && store.set(this);\n },\n\n /**\r\n * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.\r\n * @param {HTMLElement} el\r\n * @param {String} [selector] default: `options.draggable`\r\n * @returns {HTMLElement|null}\r\n */\n closest: function closest$1(el, selector) {\n return closest(el, selector || this.options.draggable, this.el, false);\n },\n\n /**\r\n * Set/get option\r\n * @param {string} name\r\n * @param {*} [value]\r\n * @returns {*}\r\n */\n option: function option(name, value) {\n var options = this.options;\n\n if (value === void 0) {\n return options[name];\n } else {\n var modifiedValue = PluginManager.modifyOption(this, name, value);\n\n if (typeof modifiedValue !== 'undefined') {\n options[name] = modifiedValue;\n } else {\n options[name] = value;\n }\n\n if (name === 'group') {\n _prepareGroup(options);\n }\n }\n },\n\n /**\r\n * Destroy\r\n */\n destroy: function destroy() {\n pluginEvent('destroy', this);\n var el = this.el;\n el[expando] = null;\n off(el, 'mousedown', this._onTapStart);\n off(el, 'touchstart', this._onTapStart);\n off(el, 'pointerdown', this._onTapStart);\n\n if (this.nativeDraggable) {\n off(el, 'dragover', this);\n off(el, 'dragenter', this);\n } // Remove draggable attributes\n\n\n Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function (el) {\n el.removeAttribute('draggable');\n });\n\n this._onDrop();\n\n this._disableDelayedDragEvents();\n\n sortables.splice(sortables.indexOf(this.el), 1);\n this.el = el = null;\n },\n _hideClone: function _hideClone() {\n if (!cloneHidden) {\n pluginEvent('hideClone', this);\n if (Sortable.eventCanceled) return;\n css(cloneEl, 'display', 'none');\n\n if (this.options.removeCloneOnHide && cloneEl.parentNode) {\n cloneEl.parentNode.removeChild(cloneEl);\n }\n\n cloneHidden = true;\n }\n },\n _showClone: function _showClone(putSortable) {\n if (putSortable.lastPutMode !== 'clone') {\n this._hideClone();\n\n return;\n }\n\n if (cloneHidden) {\n pluginEvent('showClone', this);\n if (Sortable.eventCanceled) return; // show clone at dragEl or original position\n\n if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {\n rootEl.insertBefore(cloneEl, dragEl);\n } else if (nextEl) {\n rootEl.insertBefore(cloneEl, nextEl);\n } else {\n rootEl.appendChild(cloneEl);\n }\n\n if (this.options.group.revertClone) {\n this.animate(dragEl, cloneEl);\n }\n\n css(cloneEl, 'display', '');\n cloneHidden = false;\n }\n }\n};\n\nfunction _globalDragOver(\n/**Event*/\nevt) {\n if (evt.dataTransfer) {\n evt.dataTransfer.dropEffect = 'move';\n }\n\n evt.cancelable && evt.preventDefault();\n}\n\nfunction _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {\n var evt,\n sortable = fromEl[expando],\n onMoveFn = sortable.options.onMove,\n retVal; // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent('move', {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent('move', true, true);\n }\n\n evt.to = toEl;\n evt.from = fromEl;\n evt.dragged = dragEl;\n evt.draggedRect = dragRect;\n evt.related = targetEl || toEl;\n evt.relatedRect = targetRect || getRect(toEl);\n evt.willInsertAfter = willInsertAfter;\n evt.originalEvent = originalEvent;\n fromEl.dispatchEvent(evt);\n\n if (onMoveFn) {\n retVal = onMoveFn.call(sortable, evt, originalEvent);\n }\n\n return retVal;\n}\n\nfunction _disableDraggable(el) {\n el.draggable = false;\n}\n\nfunction _unsilent() {\n _silent = false;\n}\n\nfunction _ghostIsFirst(evt, vertical, sortable) {\n var rect = getRect(getChild(sortable.el, 0, sortable.options, true));\n var spacer = 10;\n return vertical ? evt.clientX < rect.left - spacer || evt.clientY < rect.top && evt.clientX < rect.right : evt.clientY < rect.top - spacer || evt.clientY < rect.bottom && evt.clientX < rect.left;\n}\n\nfunction _ghostIsLast(evt, vertical, sortable) {\n var rect = getRect(lastChild(sortable.el, sortable.options.draggable));\n var spacer = 10;\n return vertical ? evt.clientX > rect.right + spacer || evt.clientX <= rect.right && evt.clientY > rect.bottom && evt.clientX >= rect.left : evt.clientX > rect.right && evt.clientY > rect.top || evt.clientX <= rect.right && evt.clientY > rect.bottom + spacer;\n}\n\nfunction _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {\n var mouseOnAxis = vertical ? evt.clientY : evt.clientX,\n targetLength = vertical ? targetRect.height : targetRect.width,\n targetS1 = vertical ? targetRect.top : targetRect.left,\n targetS2 = vertical ? targetRect.bottom : targetRect.right,\n invert = false;\n\n if (!invertSwap) {\n // Never invert or create dragEl shadow when target movemenet causes mouse to move past the end of regular swapThreshold\n if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {\n // multiplied only by swapThreshold because mouse will already be inside target by (1 - threshold) * targetLength / 2\n // check if past first invert threshold on side opposite of lastDirection\n if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {\n // past first invert threshold, do not restrict inverted threshold to dragEl shadow\n pastFirstInvertThresh = true;\n }\n\n if (!pastFirstInvertThresh) {\n // dragEl shadow (target move distance shadow)\n if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance // over dragEl shadow\n : mouseOnAxis > targetS2 - targetMoveDistance) {\n return -lastDirection;\n }\n } else {\n invert = true;\n }\n } else {\n // Regular\n if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {\n return _getInsertDirection(target);\n }\n }\n }\n\n invert = invert || invertSwap;\n\n if (invert) {\n // Invert of regular\n if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {\n return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;\n }\n }\n\n return 0;\n}\n/**\r\n * Gets the direction dragEl must be swapped relative to target in order to make it\r\n * seem that dragEl has been \"inserted\" into that element's position\r\n * @param {HTMLElement} target The target whose position dragEl is being inserted at\r\n * @return {Number} Direction dragEl must be swapped\r\n */\n\n\nfunction _getInsertDirection(target) {\n if (index(dragEl) < index(target)) {\n return 1;\n } else {\n return -1;\n }\n}\n/**\r\n * Generate id\r\n * @param {HTMLElement} el\r\n * @returns {String}\r\n * @private\r\n */\n\n\nfunction _generateId(el) {\n var str = el.tagName + el.className + el.src + el.href + el.textContent,\n i = str.length,\n sum = 0;\n\n while (i--) {\n sum += str.charCodeAt(i);\n }\n\n return sum.toString(36);\n}\n\nfunction _saveInputCheckedState(root) {\n savedInputChecked.length = 0;\n var inputs = root.getElementsByTagName('input');\n var idx = inputs.length;\n\n while (idx--) {\n var el = inputs[idx];\n el.checked && savedInputChecked.push(el);\n }\n}\n\nfunction _nextTick(fn) {\n return setTimeout(fn, 0);\n}\n\nfunction _cancelNextTick(id) {\n return clearTimeout(id);\n} // Fixed #973:\n\n\nif (documentExists) {\n on(document, 'touchmove', function (evt) {\n if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {\n evt.preventDefault();\n }\n });\n} // Export utils\n\n\nSortable.utils = {\n on: on,\n off: off,\n css: css,\n find: find,\n is: function is(el, selector) {\n return !!closest(el, selector, el, false);\n },\n extend: extend,\n throttle: throttle,\n closest: closest,\n toggleClass: toggleClass,\n clone: clone,\n index: index,\n nextTick: _nextTick,\n cancelNextTick: _cancelNextTick,\n detectDirection: _detectDirection,\n getChild: getChild\n};\n/**\r\n * Get the Sortable instance of an element\r\n * @param {HTMLElement} element The element\r\n * @return {Sortable|undefined} The instance of Sortable\r\n */\n\nSortable.get = function (element) {\n return element[expando];\n};\n/**\r\n * Mount a plugin to Sortable\r\n * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted\r\n */\n\n\nSortable.mount = function () {\n for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {\n plugins[_key] = arguments[_key];\n }\n\n if (plugins[0].constructor === Array) plugins = plugins[0];\n plugins.forEach(function (plugin) {\n if (!plugin.prototype || !plugin.prototype.constructor) {\n throw \"Sortable: Mounted plugin must be a constructor function, not \".concat({}.toString.call(plugin));\n }\n\n if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);\n PluginManager.mount(plugin);\n });\n};\n/**\r\n * Create sortable instance\r\n * @param {HTMLElement} el\r\n * @param {Object} [options]\r\n */\n\n\nSortable.create = function (el, options) {\n return new Sortable(el, options);\n}; // Export\n\n\nSortable.version = version;\n\nvar autoScrolls = [],\n scrollEl,\n scrollRootEl,\n scrolling = false,\n lastAutoScrollX,\n lastAutoScrollY,\n touchEvt$1,\n pointerElemChangedInterval;\n\nfunction AutoScrollPlugin() {\n function AutoScroll() {\n this.defaults = {\n scroll: true,\n forceAutoScrollFallback: false,\n scrollSensitivity: 30,\n scrollSpeed: 10,\n bubbleScroll: true\n }; // Bind all private methods\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n }\n\n AutoScroll.prototype = {\n dragStarted: function dragStarted(_ref) {\n var originalEvent = _ref.originalEvent;\n\n if (this.sortable.nativeDraggable) {\n on(document, 'dragover', this._handleAutoScroll);\n } else {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._handleFallbackAutoScroll);\n } else if (originalEvent.touches) {\n on(document, 'touchmove', this._handleFallbackAutoScroll);\n } else {\n on(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref2) {\n var originalEvent = _ref2.originalEvent;\n\n // For when bubbling is canceled and using fallback (fallback 'touchmove' always reached)\n if (!this.options.dragOverBubble && !originalEvent.rootEl) {\n this._handleAutoScroll(originalEvent);\n }\n },\n drop: function drop() {\n if (this.sortable.nativeDraggable) {\n off(document, 'dragover', this._handleAutoScroll);\n } else {\n off(document, 'pointermove', this._handleFallbackAutoScroll);\n off(document, 'touchmove', this._handleFallbackAutoScroll);\n off(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n\n clearPointerElemChangedInterval();\n clearAutoScrolls();\n cancelThrottle();\n },\n nulling: function nulling() {\n touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;\n autoScrolls.length = 0;\n },\n _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {\n this._handleAutoScroll(evt, true);\n },\n _handleAutoScroll: function _handleAutoScroll(evt, fallback) {\n var _this = this;\n\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n elem = document.elementFromPoint(x, y);\n touchEvt$1 = evt; // IE does not seem to have native autoscroll,\n // Edge's autoscroll seems too conditional,\n // MACOS Safari does not have autoscroll,\n // Firefox and Chrome are good\n\n if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {\n autoScroll(evt, this.options, elem, fallback); // Listener for pointer element change\n\n var ogElemScroller = getParentAutoScrollElement(elem, true);\n\n if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {\n pointerElemChangedInterval && clearPointerElemChangedInterval(); // Detect for pointer elem change, emulating native DnD behaviour\n\n pointerElemChangedInterval = setInterval(function () {\n var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);\n\n if (newElem !== ogElemScroller) {\n ogElemScroller = newElem;\n clearAutoScrolls();\n }\n\n autoScroll(evt, _this.options, newElem, fallback);\n }, 10);\n lastAutoScrollX = x;\n lastAutoScrollY = y;\n }\n } else {\n // if DnD is enabled (and browser has good autoscrolling), first autoscroll will already scroll, so get parent autoscroll of first autoscroll\n if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {\n clearAutoScrolls();\n return;\n }\n\n autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);\n }\n }\n };\n return _extends(AutoScroll, {\n pluginName: 'scroll',\n initializeByDefault: true\n });\n}\n\nfunction clearAutoScrolls() {\n autoScrolls.forEach(function (autoScroll) {\n clearInterval(autoScroll.pid);\n });\n autoScrolls = [];\n}\n\nfunction clearPointerElemChangedInterval() {\n clearInterval(pointerElemChangedInterval);\n}\n\nvar autoScroll = throttle(function (evt, options, rootEl, isFallback) {\n // Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521\n if (!options.scroll) return;\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n sens = options.scrollSensitivity,\n speed = options.scrollSpeed,\n winScroller = getWindowScrollingElement();\n var scrollThisInstance = false,\n scrollCustomFn; // New scroll root, set scrollEl\n\n if (scrollRootEl !== rootEl) {\n scrollRootEl = rootEl;\n clearAutoScrolls();\n scrollEl = options.scroll;\n scrollCustomFn = options.scrollFn;\n\n if (scrollEl === true) {\n scrollEl = getParentAutoScrollElement(rootEl, true);\n }\n }\n\n var layersOut = 0;\n var currentParent = scrollEl;\n\n do {\n var el = currentParent,\n rect = getRect(el),\n top = rect.top,\n bottom = rect.bottom,\n left = rect.left,\n right = rect.right,\n width = rect.width,\n height = rect.height,\n canScrollX = void 0,\n canScrollY = void 0,\n scrollWidth = el.scrollWidth,\n scrollHeight = el.scrollHeight,\n elCSS = css(el),\n scrollPosX = el.scrollLeft,\n scrollPosY = el.scrollTop;\n\n if (el === winScroller) {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll' || elCSS.overflowX === 'visible');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll' || elCSS.overflowY === 'visible');\n } else {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll');\n }\n\n var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);\n var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);\n\n if (!autoScrolls[layersOut]) {\n for (var i = 0; i <= layersOut; i++) {\n if (!autoScrolls[i]) {\n autoScrolls[i] = {};\n }\n }\n }\n\n if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {\n autoScrolls[layersOut].el = el;\n autoScrolls[layersOut].vx = vx;\n autoScrolls[layersOut].vy = vy;\n clearInterval(autoScrolls[layersOut].pid);\n\n if (vx != 0 || vy != 0) {\n scrollThisInstance = true;\n /* jshint loopfunc:true */\n\n autoScrolls[layersOut].pid = setInterval(function () {\n // emulate drag over during autoscroll (fallback), emulating native DnD behaviour\n if (isFallback && this.layer === 0) {\n Sortable.active._onTouchMove(touchEvt$1); // To move ghost if it is positioned absolutely\n\n }\n\n var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;\n var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;\n\n if (typeof scrollCustomFn === 'function') {\n if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== 'continue') {\n return;\n }\n }\n\n scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);\n }.bind({\n layer: layersOut\n }), 24);\n }\n }\n\n layersOut++;\n } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));\n\n scrolling = scrollThisInstance; // in case another function catches scrolling as false in between when it is not\n}, 30);\n\nvar drop = function drop(_ref) {\n var originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n dragEl = _ref.dragEl,\n activeSortable = _ref.activeSortable,\n dispatchSortableEvent = _ref.dispatchSortableEvent,\n hideGhostForTarget = _ref.hideGhostForTarget,\n unhideGhostForTarget = _ref.unhideGhostForTarget;\n if (!originalEvent) return;\n var toSortable = putSortable || activeSortable;\n hideGhostForTarget();\n var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;\n var target = document.elementFromPoint(touch.clientX, touch.clientY);\n unhideGhostForTarget();\n\n if (toSortable && !toSortable.el.contains(target)) {\n dispatchSortableEvent('spill');\n this.onSpill({\n dragEl: dragEl,\n putSortable: putSortable\n });\n }\n};\n\nfunction Revert() {}\n\nRevert.prototype = {\n startIndex: null,\n dragStart: function dragStart(_ref2) {\n var oldDraggableIndex = _ref2.oldDraggableIndex;\n this.startIndex = oldDraggableIndex;\n },\n onSpill: function onSpill(_ref3) {\n var dragEl = _ref3.dragEl,\n putSortable = _ref3.putSortable;\n this.sortable.captureAnimationState();\n\n if (putSortable) {\n putSortable.captureAnimationState();\n }\n\n var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);\n\n if (nextSibling) {\n this.sortable.el.insertBefore(dragEl, nextSibling);\n } else {\n this.sortable.el.appendChild(dragEl);\n }\n\n this.sortable.animateAll();\n\n if (putSortable) {\n putSortable.animateAll();\n }\n },\n drop: drop\n};\n\n_extends(Revert, {\n pluginName: 'revertOnSpill'\n});\n\nfunction Remove() {}\n\nRemove.prototype = {\n onSpill: function onSpill(_ref4) {\n var dragEl = _ref4.dragEl,\n putSortable = _ref4.putSortable;\n var parentSortable = putSortable || this.sortable;\n parentSortable.captureAnimationState();\n dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);\n parentSortable.animateAll();\n },\n drop: drop\n};\n\n_extends(Remove, {\n pluginName: 'removeOnSpill'\n});\n\nvar lastSwapEl;\n\nfunction SwapPlugin() {\n function Swap() {\n this.defaults = {\n swapClass: 'sortable-swap-highlight'\n };\n }\n\n Swap.prototype = {\n dragStart: function dragStart(_ref) {\n var dragEl = _ref.dragEl;\n lastSwapEl = dragEl;\n },\n dragOverValid: function dragOverValid(_ref2) {\n var completed = _ref2.completed,\n target = _ref2.target,\n onMove = _ref2.onMove,\n activeSortable = _ref2.activeSortable,\n changed = _ref2.changed,\n cancel = _ref2.cancel;\n if (!activeSortable.options.swap) return;\n var el = this.sortable.el,\n options = this.options;\n\n if (target && target !== el) {\n var prevSwapEl = lastSwapEl;\n\n if (onMove(target) !== false) {\n toggleClass(target, options.swapClass, true);\n lastSwapEl = target;\n } else {\n lastSwapEl = null;\n }\n\n if (prevSwapEl && prevSwapEl !== lastSwapEl) {\n toggleClass(prevSwapEl, options.swapClass, false);\n }\n }\n\n changed();\n completed(true);\n cancel();\n },\n drop: function drop(_ref3) {\n var activeSortable = _ref3.activeSortable,\n putSortable = _ref3.putSortable,\n dragEl = _ref3.dragEl;\n var toSortable = putSortable || this.sortable;\n var options = this.options;\n lastSwapEl && toggleClass(lastSwapEl, options.swapClass, false);\n\n if (lastSwapEl && (options.swap || putSortable && putSortable.options.swap)) {\n if (dragEl !== lastSwapEl) {\n toSortable.captureAnimationState();\n if (toSortable !== activeSortable) activeSortable.captureAnimationState();\n swapNodes(dragEl, lastSwapEl);\n toSortable.animateAll();\n if (toSortable !== activeSortable) activeSortable.animateAll();\n }\n }\n },\n nulling: function nulling() {\n lastSwapEl = null;\n }\n };\n return _extends(Swap, {\n pluginName: 'swap',\n eventProperties: function eventProperties() {\n return {\n swapItem: lastSwapEl\n };\n }\n });\n}\n\nfunction swapNodes(n1, n2) {\n var p1 = n1.parentNode,\n p2 = n2.parentNode,\n i1,\n i2;\n if (!p1 || !p2 || p1.isEqualNode(n2) || p2.isEqualNode(n1)) return;\n i1 = index(n1);\n i2 = index(n2);\n\n if (p1.isEqualNode(p2) && i1 < i2) {\n i2++;\n }\n\n p1.insertBefore(n2, p1.children[i1]);\n p2.insertBefore(n1, p2.children[i2]);\n}\n\nvar multiDragElements = [],\n multiDragClones = [],\n lastMultiDragSelect,\n // for selection with modifier key down (SHIFT)\nmultiDragSortable,\n initialFolding = false,\n // Initial multi-drag fold when drag started\nfolding = false,\n // Folding any other time\ndragStarted = false,\n dragEl$1,\n clonesFromRect,\n clonesHidden;\n\nfunction MultiDragPlugin() {\n function MultiDrag(sortable) {\n // Bind all private methods\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n\n if (!sortable.options.avoidImplicitDeselect) {\n if (sortable.options.supportPointer) {\n on(document, 'pointerup', this._deselectMultiDrag);\n } else {\n on(document, 'mouseup', this._deselectMultiDrag);\n on(document, 'touchend', this._deselectMultiDrag);\n }\n }\n\n on(document, 'keydown', this._checkKeyDown);\n on(document, 'keyup', this._checkKeyUp);\n this.defaults = {\n selectedClass: 'sortable-selected',\n multiDragKey: null,\n avoidImplicitDeselect: false,\n setData: function setData(dataTransfer, dragEl) {\n var data = '';\n\n if (multiDragElements.length && multiDragSortable === sortable) {\n multiDragElements.forEach(function (multiDragElement, i) {\n data += (!i ? '' : ', ') + multiDragElement.textContent;\n });\n } else {\n data = dragEl.textContent;\n }\n\n dataTransfer.setData('Text', data);\n }\n };\n }\n\n MultiDrag.prototype = {\n multiDragKeyDown: false,\n isMultiDrag: false,\n delayStartGlobal: function delayStartGlobal(_ref) {\n var dragged = _ref.dragEl;\n dragEl$1 = dragged;\n },\n delayEnded: function delayEnded() {\n this.isMultiDrag = ~multiDragElements.indexOf(dragEl$1);\n },\n setupClone: function setupClone(_ref2) {\n var sortable = _ref2.sortable,\n cancel = _ref2.cancel;\n if (!this.isMultiDrag) return;\n\n for (var i = 0; i < multiDragElements.length; i++) {\n multiDragClones.push(clone(multiDragElements[i]));\n multiDragClones[i].sortableIndex = multiDragElements[i].sortableIndex;\n multiDragClones[i].draggable = false;\n multiDragClones[i].style['will-change'] = '';\n toggleClass(multiDragClones[i], this.options.selectedClass, false);\n multiDragElements[i] === dragEl$1 && toggleClass(multiDragClones[i], this.options.chosenClass, false);\n }\n\n sortable._hideClone();\n\n cancel();\n },\n clone: function clone(_ref3) {\n var sortable = _ref3.sortable,\n rootEl = _ref3.rootEl,\n dispatchSortableEvent = _ref3.dispatchSortableEvent,\n cancel = _ref3.cancel;\n if (!this.isMultiDrag) return;\n\n if (!this.options.removeCloneOnHide) {\n if (multiDragElements.length && multiDragSortable === sortable) {\n insertMultiDragClones(true, rootEl);\n dispatchSortableEvent('clone');\n cancel();\n }\n }\n },\n showClone: function showClone(_ref4) {\n var cloneNowShown = _ref4.cloneNowShown,\n rootEl = _ref4.rootEl,\n cancel = _ref4.cancel;\n if (!this.isMultiDrag) return;\n insertMultiDragClones(false, rootEl);\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', '');\n });\n cloneNowShown();\n clonesHidden = false;\n cancel();\n },\n hideClone: function hideClone(_ref5) {\n var _this = this;\n\n var sortable = _ref5.sortable,\n cloneNowHidden = _ref5.cloneNowHidden,\n cancel = _ref5.cancel;\n if (!this.isMultiDrag) return;\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', 'none');\n\n if (_this.options.removeCloneOnHide && clone.parentNode) {\n clone.parentNode.removeChild(clone);\n }\n });\n cloneNowHidden();\n clonesHidden = true;\n cancel();\n },\n dragStartGlobal: function dragStartGlobal(_ref6) {\n var sortable = _ref6.sortable;\n\n if (!this.isMultiDrag && multiDragSortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n }\n\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.sortableIndex = index(multiDragElement);\n }); // Sort multi-drag elements\n\n multiDragElements = multiDragElements.sort(function (a, b) {\n return a.sortableIndex - b.sortableIndex;\n });\n dragStarted = true;\n },\n dragStarted: function dragStarted(_ref7) {\n var _this2 = this;\n\n var sortable = _ref7.sortable;\n if (!this.isMultiDrag) return;\n\n if (this.options.sort) {\n // Capture rects,\n // hide multi drag elements (by positioning them absolute),\n // set multi drag elements rects to dragRect,\n // show multi drag elements,\n // animate to rects,\n // unset rects & remove from DOM\n sortable.captureAnimationState();\n\n if (this.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n css(multiDragElement, 'position', 'absolute');\n });\n var dragRect = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRect);\n });\n folding = true;\n initialFolding = true;\n }\n }\n\n sortable.animateAll(function () {\n folding = false;\n initialFolding = false;\n\n if (_this2.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n } // Remove all auxiliary multidrag items from el, if sorting enabled\n\n\n if (_this2.options.sort) {\n removeMultiDragElements();\n }\n });\n },\n dragOver: function dragOver(_ref8) {\n var target = _ref8.target,\n completed = _ref8.completed,\n cancel = _ref8.cancel;\n\n if (folding && ~multiDragElements.indexOf(target)) {\n completed(false);\n cancel();\n }\n },\n revert: function revert(_ref9) {\n var fromSortable = _ref9.fromSortable,\n rootEl = _ref9.rootEl,\n sortable = _ref9.sortable,\n dragRect = _ref9.dragRect;\n\n if (multiDragElements.length > 1) {\n // Setup unfold animation\n multiDragElements.forEach(function (multiDragElement) {\n sortable.addAnimationState({\n target: multiDragElement,\n rect: folding ? getRect(multiDragElement) : dragRect\n });\n unsetRect(multiDragElement);\n multiDragElement.fromRect = dragRect;\n fromSortable.removeAnimationState(multiDragElement);\n });\n folding = false;\n insertMultiDragElements(!this.options.removeCloneOnHide, rootEl);\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref10) {\n var sortable = _ref10.sortable,\n isOwner = _ref10.isOwner,\n insertion = _ref10.insertion,\n activeSortable = _ref10.activeSortable,\n parentEl = _ref10.parentEl,\n putSortable = _ref10.putSortable;\n var options = this.options;\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n }\n\n initialFolding = false; // If leaving sort:false root, or already folding - Fold to new location\n\n if (options.animation && multiDragElements.length > 1 && (folding || !isOwner && !activeSortable.options.sort && !putSortable)) {\n // Fold: Set all multi drag elements's rects to dragEl's rect when multi-drag elements are invisible\n var dragRectAbsolute = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRectAbsolute); // Move element(s) to end of parentEl so that it does not interfere with multi-drag clones insertion if they are inserted\n // while folding, and so that we can capture them again because old sortable will no longer be fromSortable\n\n parentEl.appendChild(multiDragElement);\n });\n folding = true;\n } // Clones must be shown (and check to remove multi drags) after folding when interfering multiDragElements are moved out\n\n\n if (!isOwner) {\n // Only remove if not folding (folding will remove them anyways)\n if (!folding) {\n removeMultiDragElements();\n }\n\n if (multiDragElements.length > 1) {\n var clonesHiddenBefore = clonesHidden;\n\n activeSortable._showClone(sortable); // Unfold animation for clones if showing from hidden\n\n\n if (activeSortable.options.animation && !clonesHidden && clonesHiddenBefore) {\n multiDragClones.forEach(function (clone) {\n activeSortable.addAnimationState({\n target: clone,\n rect: clonesFromRect\n });\n clone.fromRect = clonesFromRect;\n clone.thisAnimationDuration = null;\n });\n }\n } else {\n activeSortable._showClone(sortable);\n }\n }\n }\n },\n dragOverAnimationCapture: function dragOverAnimationCapture(_ref11) {\n var dragRect = _ref11.dragRect,\n isOwner = _ref11.isOwner,\n activeSortable = _ref11.activeSortable;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n });\n\n if (activeSortable.options.animation && !isOwner && activeSortable.multiDrag.isMultiDrag) {\n clonesFromRect = _extends({}, dragRect);\n var dragMatrix = matrix(dragEl$1, true);\n clonesFromRect.top -= dragMatrix.f;\n clonesFromRect.left -= dragMatrix.e;\n }\n },\n dragOverAnimationComplete: function dragOverAnimationComplete() {\n if (folding) {\n folding = false;\n removeMultiDragElements();\n }\n },\n drop: function drop(_ref12) {\n var evt = _ref12.originalEvent,\n rootEl = _ref12.rootEl,\n parentEl = _ref12.parentEl,\n sortable = _ref12.sortable,\n dispatchSortableEvent = _ref12.dispatchSortableEvent,\n oldIndex = _ref12.oldIndex,\n putSortable = _ref12.putSortable;\n var toSortable = putSortable || this.sortable;\n if (!evt) return;\n var options = this.options,\n children = parentEl.children; // Multi-drag selection\n\n if (!dragStarted) {\n if (options.multiDragKey && !this.multiDragKeyDown) {\n this._deselectMultiDrag();\n }\n\n toggleClass(dragEl$1, options.selectedClass, !~multiDragElements.indexOf(dragEl$1));\n\n if (!~multiDragElements.indexOf(dragEl$1)) {\n multiDragElements.push(dragEl$1);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: dragEl$1,\n originalEvent: evt\n }); // Modifier activated, select from last to dragEl\n\n if (evt.shiftKey && lastMultiDragSelect && sortable.el.contains(lastMultiDragSelect)) {\n var lastIndex = index(lastMultiDragSelect),\n currentIndex = index(dragEl$1);\n\n if (~lastIndex && ~currentIndex && lastIndex !== currentIndex) {\n // Must include lastMultiDragSelect (select it), in case modified selection from no selection\n // (but previous selection existed)\n var n, i;\n\n if (currentIndex > lastIndex) {\n i = lastIndex;\n n = currentIndex;\n } else {\n i = currentIndex;\n n = lastIndex + 1;\n }\n\n for (; i < n; i++) {\n if (~multiDragElements.indexOf(children[i])) continue;\n toggleClass(children[i], options.selectedClass, true);\n multiDragElements.push(children[i]);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: children[i],\n originalEvent: evt\n });\n }\n }\n } else {\n lastMultiDragSelect = dragEl$1;\n }\n\n multiDragSortable = toSortable;\n } else {\n multiDragElements.splice(multiDragElements.indexOf(dragEl$1), 1);\n lastMultiDragSelect = null;\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'deselect',\n targetEl: dragEl$1,\n originalEvent: evt\n });\n }\n } // Multi-drag drop\n\n\n if (dragStarted && this.isMultiDrag) {\n folding = false; // Do not \"unfold\" after around dragEl if reverted\n\n if ((parentEl[expando].options.sort || parentEl !== rootEl) && multiDragElements.length > 1) {\n var dragRect = getRect(dragEl$1),\n multiDragIndex = index(dragEl$1, ':not(.' + this.options.selectedClass + ')');\n if (!initialFolding && options.animation) dragEl$1.thisAnimationDuration = null;\n toSortable.captureAnimationState();\n\n if (!initialFolding) {\n if (options.animation) {\n dragEl$1.fromRect = dragRect;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n\n if (multiDragElement !== dragEl$1) {\n var rect = folding ? getRect(multiDragElement) : dragRect;\n multiDragElement.fromRect = rect; // Prepare unfold animation\n\n toSortable.addAnimationState({\n target: multiDragElement,\n rect: rect\n });\n }\n });\n } // Multi drag elements are not necessarily removed from the DOM on drop, so to reinsert\n // properly they must all be removed\n\n\n removeMultiDragElements();\n multiDragElements.forEach(function (multiDragElement) {\n if (children[multiDragIndex]) {\n parentEl.insertBefore(multiDragElement, children[multiDragIndex]);\n } else {\n parentEl.appendChild(multiDragElement);\n }\n\n multiDragIndex++;\n }); // If initial folding is done, the elements may have changed position because they are now\n // unfolding around dragEl, even though dragEl may not have his index changed, so update event\n // must be fired here as Sortable will not.\n\n if (oldIndex === index(dragEl$1)) {\n var update = false;\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement.sortableIndex !== index(multiDragElement)) {\n update = true;\n return;\n }\n });\n\n if (update) {\n dispatchSortableEvent('update');\n }\n }\n } // Must be done after capturing individual rects (scroll bar)\n\n\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n toSortable.animateAll();\n }\n\n multiDragSortable = toSortable;\n } // Remove clones if necessary\n\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n multiDragClones.forEach(function (clone) {\n clone.parentNode && clone.parentNode.removeChild(clone);\n });\n }\n },\n nullingGlobal: function nullingGlobal() {\n this.isMultiDrag = dragStarted = false;\n multiDragClones.length = 0;\n },\n destroyGlobal: function destroyGlobal() {\n this._deselectMultiDrag();\n\n off(document, 'pointerup', this._deselectMultiDrag);\n off(document, 'mouseup', this._deselectMultiDrag);\n off(document, 'touchend', this._deselectMultiDrag);\n off(document, 'keydown', this._checkKeyDown);\n off(document, 'keyup', this._checkKeyUp);\n },\n _deselectMultiDrag: function _deselectMultiDrag(evt) {\n if (typeof dragStarted !== \"undefined\" && dragStarted) return; // Only deselect if selection is in this sortable\n\n if (multiDragSortable !== this.sortable) return; // Only deselect if target is not item in this sortable\n\n if (evt && closest(evt.target, this.options.draggable, this.sortable.el, false)) return; // Only deselect if left click\n\n if (evt && evt.button !== 0) return;\n\n while (multiDragElements.length) {\n var el = multiDragElements[0];\n toggleClass(el, this.options.selectedClass, false);\n multiDragElements.shift();\n dispatchEvent({\n sortable: this.sortable,\n rootEl: this.sortable.el,\n name: 'deselect',\n targetEl: el,\n originalEvent: evt\n });\n }\n },\n _checkKeyDown: function _checkKeyDown(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = true;\n }\n },\n _checkKeyUp: function _checkKeyUp(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = false;\n }\n }\n };\n return _extends(MultiDrag, {\n // Static methods & properties\n pluginName: 'multiDrag',\n utils: {\n /**\r\n * Selects the provided multi-drag item\r\n * @param {HTMLElement} el The element to be selected\r\n */\n select: function select(el) {\n var sortable = el.parentNode[expando];\n if (!sortable || !sortable.options.multiDrag || ~multiDragElements.indexOf(el)) return;\n\n if (multiDragSortable && multiDragSortable !== sortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n\n multiDragSortable = sortable;\n }\n\n toggleClass(el, sortable.options.selectedClass, true);\n multiDragElements.push(el);\n },\n\n /**\r\n * Deselects the provided multi-drag item\r\n * @param {HTMLElement} el The element to be deselected\r\n */\n deselect: function deselect(el) {\n var sortable = el.parentNode[expando],\n index = multiDragElements.indexOf(el);\n if (!sortable || !sortable.options.multiDrag || !~index) return;\n toggleClass(el, sortable.options.selectedClass, false);\n multiDragElements.splice(index, 1);\n }\n },\n eventProperties: function eventProperties() {\n var _this3 = this;\n\n var oldIndicies = [],\n newIndicies = [];\n multiDragElements.forEach(function (multiDragElement) {\n oldIndicies.push({\n multiDragElement: multiDragElement,\n index: multiDragElement.sortableIndex\n }); // multiDragElements will already be sorted if folding\n\n var newIndex;\n\n if (folding && multiDragElement !== dragEl$1) {\n newIndex = -1;\n } else if (folding) {\n newIndex = index(multiDragElement, ':not(.' + _this3.options.selectedClass + ')');\n } else {\n newIndex = index(multiDragElement);\n }\n\n newIndicies.push({\n multiDragElement: multiDragElement,\n index: newIndex\n });\n });\n return {\n items: _toConsumableArray(multiDragElements),\n clones: [].concat(multiDragClones),\n oldIndicies: oldIndicies,\n newIndicies: newIndicies\n };\n },\n optionListeners: {\n multiDragKey: function multiDragKey(key) {\n key = key.toLowerCase();\n\n if (key === 'ctrl') {\n key = 'Control';\n } else if (key.length > 1) {\n key = key.charAt(0).toUpperCase() + key.substr(1);\n }\n\n return key;\n }\n }\n });\n}\n\nfunction insertMultiDragElements(clonesInserted, rootEl) {\n multiDragElements.forEach(function (multiDragElement, i) {\n var target = rootEl.children[multiDragElement.sortableIndex + (clonesInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(multiDragElement, target);\n } else {\n rootEl.appendChild(multiDragElement);\n }\n });\n}\n/**\r\n * Insert multi-drag clones\r\n * @param {[Boolean]} elementsInserted Whether the multi-drag elements are inserted\r\n * @param {HTMLElement} rootEl\r\n */\n\n\nfunction insertMultiDragClones(elementsInserted, rootEl) {\n multiDragClones.forEach(function (clone, i) {\n var target = rootEl.children[clone.sortableIndex + (elementsInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(clone, target);\n } else {\n rootEl.appendChild(clone);\n }\n });\n}\n\nfunction removeMultiDragElements() {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n multiDragElement.parentNode && multiDragElement.parentNode.removeChild(multiDragElement);\n });\n}\n\nSortable.mount(new AutoScrollPlugin());\nSortable.mount(Remove, Revert);\n\nexport default Sortable;\nexport { MultiDragPlugin as MultiDrag, Sortable, SwapPlugin as Swap };\n","import SettingsActions from '../actions/SettingsActions';\nimport Maintenance from './MaintenanceManager';\nimport FipamoAdminAPI, { TASK_SYNC_SETTNIGS } from '../../libraries/FipamoAdminAPI';\nimport * as DataEvent from '../../../src/com/events/DataEvent';\nimport Mailer from '../actions/Mailer';\nimport Notifications from '../ui/Notifications';\nconst notify = new Notifications();\nexport default class SettingsIndex {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tthis.start();\n\t\tthis.admin = new FipamoAdminAPI(null);\n\t\tthis.mm = new Maintenance(null, null);\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\tlet self = this;\n\t\t//handle save button\n\t\tdocument.getElementById('save-toggle').addEventListener('click', () =>\n\t\t\tnew SettingsActions()\n\t\t\t\t.getInfo()\n\t\t\t\t.then(data => {\n\t\t\t\t\tnotify.alert('Saving Settings', null);\n\t\t\t\t\tself.admin.sync(TASK_SYNC_SETTNIGS, data).then(r => {\n\t\t\t\t\t\tif (r.type == DataEvent.SETTINGS_UPDATED) {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t\t.catch(() => {\n\t\t\t\t\t//console.log(err);\n\t\t\t\t})\n\t\t);\n\t\t//handle set up image uploads\n\t\tdocument.querySelector('[role=\"avatar\"]').addEventListener('click', () => {\n\t\t\tdocument.getElementById('avatar-upload').click();\n\t\t});\n\t\tdocument.querySelector('[role=\"background\"]').addEventListener('click', () => {\n\t\t\tdocument.getElementById('background-upload').click();\n\t\t});\n\t\tdocument.getElementById('avatar-upload').addEventListener(\n\t\t\t'change',\n\t\t\te => {\n\t\t\t\tself.handleImageUpload(e.target.id, e.target.files);\n\t\t\t},\n\t\t\tfalse\n\t\t);\n\t\tdocument.getElementById('background-upload').addEventListener(\n\t\t\t'change',\n\t\t\te => {\n\t\t\t\tself.handleImageUpload(e.target.id, e.target.files);\n\t\t\t},\n\t\t\tfalse\n\t\t);\n\t\t//handle api access toggle\n\t\tvar apiButton = document.getElementById('api-access-toggle');\n\t\tvar apiStatus = document.getElementById('api-status');\n\t\tapiButton.addEventListener('click', e => {\n\t\t\te.stopPropagation();\n\t\t\te.preventDefault();\n\t\t\tif (apiButton.getAttribute('data-enabled') == 'false') {\n\t\t\t\tapiButton.setAttribute('data-enabled', 'true');\n\t\t\t\tapiStatus.innerHTML = 'API ACCESS IS ENABLED';\n\t\t\t} else {\n\t\t\t\tapiButton.setAttribute('data-enabled', 'false');\n\t\t\t\tapiStatus.innerHTML = 'API ACCESS IS DISABLED';\n\t\t\t}\n\t\t});\n\n\t\t//handle dynamic page rendering\n\t\tvar dynamicRenderButton = document.getElementById('dynamic-render-toggle');\n\t\tvar dynamicRenderStatus = document.getElementById('dynamic-render-status');\n\t\tdynamicRenderButton.addEventListener('click', e => {\n\t\t\te.stopPropagation();\n\t\t\te.preventDefault();\n\t\t\tif (dynamicRenderButton.getAttribute('data-enabled') == 'false') {\n\t\t\t\tdynamicRenderButton.setAttribute('data-enabled', 'true');\n\t\t\t\tdynamicRenderStatus.innerHTML = 'DYNAMIC PAGE RENDERING';\n\t\t\t} else {\n\t\t\t\tdynamicRenderButton.setAttribute('data-enabled', 'false');\n\t\t\t\tdynamicRenderStatus.innerHTML = 'STATIC PAGE RENDERING';\n\t\t\t}\n\t\t});\n\n\t\tdocument\n\t\t\t.getElementById('send-mail')\n\t\t\t.addEventListener('click', e => this.handleMailer(e));\n\t\tdocument\n\t\t\t.getElementById('publish-pages')\n\t\t\t.addEventListener('click', e => this.handlePublished(e));\n\t\t//handle page render on save toggle\n\t\tdocument\n\t\t\t.getElementById('render-toggle')\n\t\t\t.addEventListener('click', e => this.toggleRender(e));\n\t\t//handle theme toggle\n\t\tlet themeBtns = document.querySelectorAll('.theme-select');\n\t\tfor (var i = 0, length = themeBtns.length; i < length; i++) {\n\t\t\tthemeBtns[i].addEventListener('click', e => this.handleThemes(e));\n\t\t}\n\t\t//handle mail options\n\t\tlet mailBtn = document.querySelectorAll('.mail-option');\n\t\tfor (i = 0, length = mailBtn.length; i < length; i++) {\n\t\t\tmailBtn[i].addEventListener('click', e => this.handleMailOptions(e));\n\t\t}\n\t\t//handle backup from settings [disabled]\n\n\t\tdocument\n\t\t\t.getElementById('create-backup')\n\t\t\t.addEventListener('click', e => this.handleBackup(e));\n\n\t\t/*\n document\n .getElementById(\"reindex-pages\")\n .addEventListener(\"click\", (e) => this.handleReindex(e));\n */\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\ttogglePrivacy(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tif (e.target.getAttribute('data-private') == 'false') {\n\t\t\te.target.setAttribute('data-private', 'true');\n\t\t\te.target.innerHTML = 'SITE IS PUBLIC';\n\t\t} else {\n\t\t\te.target.setAttribute('data-private', 'false');\n\t\t\te.target.innerHTML = 'SITE IS PRIVATE';\n\t\t}\n\t}\n\ttoggleRender(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet button = document.getElementById('render-toggle');\n\t\tif (button.getAttribute('data-render') == 'false') {\n\t\t\tbutton.setAttribute('data-render', 'true');\n\t\t\t//e.target.innerHTML = 'RENDER PAGES ON SAVE';\n\t\t} else {\n\t\t\tbutton.setAttribute('data-render', 'false');\n\t\t\t//e.target.innerHTML = \"DON'T RENDER PAGES ON SAVE\";\n\t\t}\n\t}\n\thandleMailer() {\n\t\tlet mailer = new Mailer();\n\t\tmailer.testMail();\n\t\t//mailer.sendMail();\n\t}\n\thandleThemes(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet themes = document.querySelectorAll('.theme-select');\n\t\tfor (var i = 0, length = themes.length; i < length; i++) {\n\t\t\te.target.id == themes[i].id\n\t\t\t\t? themes[i].setAttribute('data-enabled', 'true')\n\t\t\t\t: themes[i].setAttribute('data-enabled', 'false');\n\t\t}\n\t}\n\thandleMailOptions(e) {\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tlet smtp = document.getElementById('mail-smtp');\n\t\tlet mailgun = document.getElementById('mail-mg');\n\t\tlet mail = document.querySelectorAll('.mail-option');\n\t\tfor (var i = 0, length = mail.length; i < length; i++) {\n\t\t\tif (e.target.id == mail[i].id) {\n\t\t\t\tmail[i].setAttribute('data-enabled', 'true');\n\t\t\t\tif (e.target.id == 'option-smtp') {\n\t\t\t\t\tsmtp.setAttribute('data-enabled', 'true');\n\t\t\t\t\tmailgun.setAttribute('data-enabled', 'false');\n\t\t\t\t} else if (e.target.id == 'option-none') {\n\t\t\t\t\tsmtp.setAttribute('data-enabled', 'false');\n\t\t\t\t\tmailgun.setAttribute('data-enabled', 'false');\n\t\t\t\t} else {\n\t\t\t\t\tsmtp.setAttribute('data-enabled', 'false');\n\t\t\t\t\tmailgun.setAttribute('data-enabled', 'true');\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tmail[i].setAttribute('data-enabled', 'false');\n\t\t\t}\n\t\t}\n\t}\n\thandleImageUpload(type, files) {\n\t\tnotify.alert('Uploading Image... ', null);\n\t\tlet self = this;\n\t\tnotify.alert('Uploading Image', null);\n\t\tlet upload = new FormData();\n\t\tupload.enctype = 'multipart/form-data';\n\t\tupload.append('source', type);\n\t\tupload.append('upload_files[]', files[0], files[0].name);\n\n\t\tthis.mm\n\t\t\t.filesUpload(files[0].type, upload)\n\t\t\t.then(r => {\n\t\t\t\tif (type == 'avatar-upload') {\n\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\tdocument.querySelector('[role=\"avatar\"]').style.background =\n\t\t\t\t\t\t'url(' + r.filePath + ') no-repeat center center / cover';\n\t\t\t\t} else {\n\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\tdocument.querySelector('[role=\"background\"]').style.background =\n\t\t\t\t\t\t'url(' + r.filePath + ') no-repeat center center / cover';\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(() => {\n\t\t\t\t//console.log(err)\n\t\t\t});\n\t}\n\thandlePublished(e) {\n\t\tif (this.processing) return;\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tlet self = this;\n\t\tlet task = { task: 'PUBLISH_ALL' };\n\t\tthis.processing = true;\n\t\tnotify.alert('Publishing site...', null);\n\t\tthis.admin\n\t\t\t.publish(task)\n\t\t\t.then(r => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(r.message, true);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(err, false);\n\t\t\t});\n\t}\n\n\thandleBackup(e) {\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tnotify.alert('Creating backup', null);\n\t\tthis.mm\n\t\t\t.backup()\n\t\t\t.then(r => {\n\t\t\t\tnotify.alert(r.message, true);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tnotify.alert(err, false);\n\t\t\t});\n\t}\n\n\thandleReindex(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tlet task = { task: 'cleanup pages indexes' };\n\t\tthis.processing = true;\n\t\tnotify.alert('Cleaning up page indexes', null);\n\t\tthis.admin\n\t\t\t.handleReindex(task)\n\t\t\t.then(r => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(r.message, true);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(err, false);\n\t\t\t});\n\t}\n}\n","export default class SettingsActions {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tgetInfo() {\n\t\tlet handle = document.getElementById('settings-handle').value;\n\t\tlet email = document.getElementById('settings-email').value;\n\t\tlet url = document.getElementById('settings-url').value;\n\t\tlet title = document.getElementById('settings-title').value;\n\t\tlet desc = document.getElementById('settings-desc').value;\n\t\t//let privacy = document.getElementById('privacy-toggle').getAttribute('data-private');\n\t\tlet render = document.getElementById('render-toggle').getAttribute('data-render');\n\t\tlet background = document\n\t\t\t.querySelector('[role=\"background\"]')\n\t\t\t.style.backgroundImage.slice(4, -1)\n\t\t\t.replace(/\"/g, '');\n\t\tlet selected = '';\n\t\tlet selects = document.querySelectorAll('.theme-select');\n\t\tlet smtpDomain = document.getElementById('smtp-domain').value;\n\t\tlet smtpEmail = document.getElementById('smtp-email').value;\n\t\tlet smtpPass = document.getElementById('smtp-pass').value;\n\t\tlet mgDomain = document.getElementById('mg-domain').value;\n\t\tlet mgKey = document.getElementById('mg-key').value;\n\t\tlet mailActive = '';\n\t\tlet mailOptions = document.querySelectorAll('.mail-option');\n\t\tlet apiStatus = document\n\t\t\t.getElementById('api-access-toggle')\n\t\t\t.getAttribute('data-enabled');\n\t\tlet dynamicRenderStatus = document\n\t\t\t.getElementById('dynamic-render-toggle')\n\t\t\t.getAttribute('data-enabled');\n\t\tvar i, count;\n\t\tfor (i = 0, count = selects.length; i < count; i++) {\n\t\t\tif (selects[i].getAttribute('data-enabled') == 'true')\n\t\t\t\tselected = selects[i].id;\n\t\t}\n\n\t\tfor (i = 0, count = mailOptions.length; i < count; i++) {\n\t\t\tif (mailOptions[i].getAttribute('data-enabled') == 'true')\n\t\t\t\tmailActive = mailOptions[i].id;\n\t\t}\n\t\tlet settingsData = {\n\t\t\tglobal: {\n\t\t\t\tbase_url: url,\n\t\t\t\ttitle: title,\n\t\t\t\tdescriptions: desc,\n\t\t\t\tbackground: background,\n\t\t\t\tprivate: false,\n\t\t\t\trenderOnSave: render,\n\t\t\t\ttheme: selected,\n\t\t\t\texternalAPI: apiStatus,\n\t\t\t\tdynamicRender: dynamicRenderStatus\n\t\t\t},\n\t\t\tmember: { handle: handle, email: email },\n\t\t\temail: {\n\t\t\t\tactive: mailActive,\n\t\t\t\tsmtp: {\n\t\t\t\t\tdomain: smtpDomain,\n\t\t\t\t\temail: smtpEmail,\n\t\t\t\t\tpassword: smtpPass\n\t\t\t\t},\n\t\t\t\tmailgun: {\n\t\t\t\t\tdomain: mgDomain,\n\t\t\t\t\tkey: mgKey\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn new Promise(function (resolve) {\n\t\t\tresolve(settingsData);\n\t\t});\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","import FipamoAdminAPI from \"../../libraries/FipamoAdminAPI\";\nimport Notficaton from \"../ui/Notifications\";\nconst notify = new Notficaton();\nexport default class Mailer {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {}\n //--------------------------\n // methods\n //--------------------------\n sendMail() {\n let mailData = {\n content: \"This is a test email\"\n };\n let admin = new FipamoAdminAPI();\n admin\n .sendMail(mailData)\n .then((result) => {\n notify.alert(result.message, true);\n })\n .catch((err) => {\n notify.alert(err.message, false);\n });\n }\n testMail() {\n let mailData = {\n content: \"This is a test email\",\n mail_task: \"TESTING\"\n };\n let admin = new FipamoAdminAPI();\n admin\n .sendMail(mailData)\n .then((result) => {\n notify.alert(result.message, true);\n })\n .catch((err) => {\n notify.alert(err.message, false);\n });\n }\n //--------------------------\n // event handlers\n //--------------------------\n}\n","import FipamoAdminAPI, { TASK_SYNC_NAV } from '../../libraries/FipamoAdminAPI';\nimport NavActions from '../actions/NavActions';\nimport * as DataEvent from '../events/DataEvent';\nimport Notifications from '../ui/Notifications';\nimport Sortable from 'sortablejs';\nconst notify = new Notifications();\n\nexport default class NavIndex {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tthis.admin = new FipamoAdminAPI(null);\n\t\tthis.start();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\t//grabs elements and makes them sortables\n\t\tlet self = this;\n\t\tSortable.create(document.getElementById('nav-items'), {\n\t\t\tonUpdate: () => {\n\t\t\t\tnew NavActions().syncMenu().then(data => {\n\t\t\t\t\tnotify.alert('Updating Menu', null);\n\t\t\t\t\tself.admin.sync(TASK_SYNC_NAV, data).then(r => {\n\t\t\t\t\t\tif (r.type == DataEvent.MENU_UPDATED) {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\tvar nav = document.querySelectorAll('.nav-btn');\n\t\tfor (var i = 0, length = nav.length; i < length; i++) {\n\t\t\tnav[i].addEventListener('click', e => this.handleNavButton(e), false);\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleNavButton(e) {\n\t\tif (this.processing) return;\n\t\tlet id = '';\n\t\tlet self = this;\n\t\tswitch (e.target.id) {\n\t\t\tcase 'remove-item':\n\t\t\t\tid = e.target.getAttribute('data-id');\n\t\t\t\tnew NavActions().removeItem(id);\n\t\t\t\tnew NavActions().syncMenu().then(data => {\n\t\t\t\t\tdata.remove = e.target.getAttribute('data-uuid');\n\t\t\t\t\tnotify.alert('Editing Menu', null);\n\t\t\t\t\tself.processing = true;\n\t\t\t\t\tself.admin.sync(TASK_SYNC_NAV, data).then(r => {\n\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\tif (r.type == DataEvent.MENU_UPDATED) {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\tcase 'edit-item':\n\t\t\t\tself.processing = false;\n\t\t\t\twindow.location =\n\t\t\t\t\t'/dashboard/page/edit/' + e.target.getAttribute('data-id');\n\t\t\t\tbreak;\n\t\t}\n\t}\n}\n","export default class NavActions {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tsyncMenu() {\n\t\tlet navData = [];\n\t\tlet items = document.getElementById('nav-items').children;\n\t\tfor (let index = 0; index < items.length; index++) {\n\t\t\tnavData.push({\n\t\t\t\ttitle: items[index].getElementsByTagName('label')[0].innerHTML,\n\t\t\t\tid: items[index].id,\n\t\t\t\tslug: items[index].getAttribute('data-slug'),\n\t\t\t\tuuid: items[index].getAttribute('data-uuid'),\n\t\t\t\tpath: items[index].getAttribute('data-path')\n\t\t\t});\n\t\t}\n\n\t\tlet data = { menu: navData, remove: null };\n\t\treturn new Promise(function (resolve) {\n\t\t\tresolve(data);\n\t\t});\n\t}\n\n\tremoveItem(id) {\n\t\tdocument.getElementById('nav-items').removeChild(document.getElementById(id));\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","export default class Menu {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.mobile = false;\n\t\tthis.mobileMenu = document.querySelector('.mobile-menu');\n\t\tdocument\n\t\t\t.querySelector('.menu-toggle')\n\t\t\t.addEventListener('click', e => this.handleMobile(e));\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleMobile(e) {\n\t\tif (this.mobile) {\n\t\t\tthis.mobile = false;\n\t\t\tthis.mobileMenu.style.display = 'none';\n\t\t} else {\n\t\t\tthis.mobile = true;\n\t\t\tthis.mobileMenu.style.display = 'inline';\n\t\t}\n\t}\n}\n"],"names":["Base","document","addEventListener","FipamoAdminAPI","Maintenance","DataUitls","DataEvent","DashManager","Notfications","data","notify","constructor","processing","start","getElementById","querySelector","options","getElementsByClassName","index","length","e","handleOptions","handleLogin","handleSetup","handleRestore","handleReset","self","preventDefault","authForm","formDataToJSON","api","login","then","response","type","REQUEST_LAME","target","innerHTML","message","setTimeout","window","location","catch","err","stopPropagation","setUpForm","mm","create","API_INIT_LAME","form","restore","id","email","value","task","secret","alert","newPass","newPassConfirm","init","style","display","visibility","REQUEST_TYPE_POST","REQUEST_TYPE_GET","REQUEST_TYPE_PUT","REQUEST_TYPE_DELETE","CONTENT_TYPE_JSON","CONTENT_TYPE_FORM","API_STATUS","API_GET_SETTINGS","API_GET_MEMBER_INFO","API_NEW_PAGE","API_EDIT_PAGE","API_DELETE_PAGE","API_SETTINGS_SYNC","API_PUBLISH_PAGES","API_NAV_SYNC","API_REINDEX_PAGES","API_SEND_MAIL","API_LOGIN","AUTH_STATUS","TASK_SETTINGS_WRITE","TASK_PUBLISH_SITE","TASK_PAGE_CREATE","TASK_PAGE_EDIT","TASK_PAGE_DELETE","TASK_SEND_MAIL","TASK_REINDEX_PAGE","TASK_SYNC_SETTNIGS","TASK_SYNC_NAV","TASK_GET_SETTINGS","TASK_GET_MEMBER_INFO","API_ACCESS_GOOD","API_ACCESS_BAD","baseURL","progressBar","percentComplete","status","_request","token","Promise","resolve","reject","remote","key","result","sync","url","publish","pageActions","event","content","sendMail","getInfo","requestURL","eventType","requestType","contentType","requestData","request","XMLHttpRequest","upload","handleLoadProgress","open","onload","JSON","parse","error","setRequestHeader","send","stringify","percent","Math","ceil","loaded","total","width","default","API_INIT","API_RESTORE","API_GET_SECRET","API_RESET_PASS","API_CREATE_BACKUP","API_DOWNLOAD_BACKUP","API_RESTORE_BACKUP","API_UPLOAD_AVATAR","API_UPLOAD_BACKGROUND","API_IMAGE_UPLOAD","API_FILES_UPLOAD","TASK_SITE_INIT","TASK_BACKUP_RESTORE","TASK_BACKUP_CREATE","TASK_GET_SECRET","TASK_RESET_PASS","TASK_UPLOAD_FILES","MaintenanceManager","accetableFiles","method","FormData","backup","filesUpload","files","progress","append","r","DataUtils","imgLoad","responseType","Error","statusText","onerror","loadImage","src","myImage","Image","crossOrigin","imageURL","URL","createObjectURL","object","formData","forEach","hasOwnProperty","Array","isArray","push","REQUEST_GOOD","API_REQUEST_GOOD","API_REQUEST_LAME","IMG_REQUEST_GOOD","IMG_REQUEST_LAME","SETTINGS_LOADED","POST_IMAGE_ADDED","FEATURE_IMAGE_ADDED","PAGE_ERROR","PAGE_ADDED","PAGE_UPDATED","PAGE_DELETED","PAGES_RENDERED","PAGES_NOT_RENDERED","TAG_PAGES_RENDERED","TAG_PAGES_NOT_RENDERED","SETTINGS_UPDATED","SETTINGS_NOT_UPDATED","MENU_ADD_ITEM","MENU_DELETE_ITEM","MENU_UPDATED","AVATAR_UPLOADED","SITE_BACKGROUND_UPLOADED","UPLOAD_PROGRESS","API_PAGE_WRITE","API_PAGE_CREATE","API_PAGE_DELETE","API_SETTINGS_WRITE","API_BACKUP_CREATE","API_BACKUP_DOWNLOAD","API_BACKUP_RESTORE","API_IMAGES_UPLOAD","API_RENDER_PAGES","API_INIT_GOOD","SEND_MAIL","PostIndex","SettingsIndex","NaviIndex","Menu","currentDisplay","urlPieces","split","chooseDisplay","section","page","PageEditor","currentPage","choosePage","PageActions","EditorEvent","TextEditor","FileManager","PostEditor","admin","post","postID","postUUID","postLayout","fm","getAttribute","editor","offsetHeight","addListener","EDITOR_DELETE","handleEditorOptions","EDITOR_UPLOAD_POST_IMAGE","EDITOR_UPDATE","EDITOR_SAVE","handleImageUpload","optionButtons","querySelectorAll","i","handlePostOptions","currentOption","active","setAttribute","collectInfo","getFileOrder","confirm","click","enctype","name","filePath","StringUtils","PostActions","pageInfo","pageRef","txt","createElement","html","replace","uuid","layout","current_title","title","created","slug","cleanString","tags","menu","featured","published","form_token","imageList","images","fileList","string","clean","toLowerCase","decodeHTML","quote_style","optTemp","noquotes","toString","OPTS","ENT_NOQUOTES","ENT_HTML_QUOTE_SINGLE","ENT_HTML_QUOTE_DOUBLE","ENT_COMPAT","ENT_QUOTES","ENT_IGNORE","concat","EventEmitter","Prism","textEditor","scrollLimit","console","log","body","fixLimit","scrollTop","classList","add","remove","result_element","text","RegExp","editorHeight","height","highlightElement","scrollLeft","dispatchEvent","Event","setInputs","editorButtons","handleEditorOption","len","selectionStart","end","selectionEnd","insert","substring","selectedText","prompt","link","emitEvent","listeners","Map","label","callback","has","set","get","removeListener","isFunction","obj","reduce","listener","splice","args","anime","notifcation","responseText","notifyText","notifyIcons","iconGood","iconNotGood","iconWorking","color","targets","rotateX","easing","complete","opacity","duration","backgroundColor","Sortable","input","sortedFiles","storage","mediaSort","animation","onUpdate","fileSort","handleFileActions","removeMedia","removeFile","imgList","childNodes","div","media","sortFiles","file","reader","FileReader","theFile","f","removeIcon","className","appendChild","item","itemFactory","background","removeChild","video","source","audio","href","fileName","readAsDataURL","mediaCount","fileCount","parentNode","rawList","sortedList","notOnTheList","dataTransfer","dropEffect","includes","SettingsActions","Mailer","Notifications","apiButton","apiStatus","dynamicRenderButton","dynamicRenderStatus","handleMailer","handlePublished","toggleRender","themeBtns","handleThemes","mailBtn","handleMailOptions","handleBackup","togglePrivacy","button","mailer","testMail","themes","smtp","mailgun","mail","handleReindex","handle","desc","render","backgroundImage","slice","selected","selects","smtpDomain","smtpEmail","smtpPass","mgDomain","mgKey","mailActive","mailOptions","count","settingsData","global","base_url","descriptions","private","renderOnSave","theme","externalAPI","dynamicRender","member","domain","password","Notficaton","mailData","mail_task","NavActions","NavIndex","syncMenu","nav","handleNavButton","removeItem","navData","items","children","getElementsByTagName","path","mobile","mobileMenu","handleMobile"],"version":3,"file":"dash.js.map","sourceRoot":"../../../"} \ No newline at end of file +{"mappings":";;;;;;;;;;;;;AEAA,uBAAA;AACO,MAAM+D,4CAAoB;AAC1B,MAAMC,4CAAmB;AACzB,MAAMC,4CAAmB;AACzB,MAAMC,4CAAsB;AAE5B,MAAMC,4CAAoB;AAC1B,MAAMC,4CAAoB;AAE1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UAAU,GAAG;YAExBZ,QAAQU,KAAK,CAACC,OAAO,GAAG;YACxBX,QAAQU,KAAK,CAACE,UAAU,GAAG;QAC5B,OAAO;YACNH,KAAKC,KAAK,CAACC,OAAO,GAAG;YACrBF,KAAKC,KAAK,CAACE,UAAU,GAAG;YAExBZ,QAAQU,KAAK,CAACC,OAAO,GAAG;YACxBX,QAAQU,KAAK,CAACE,UAAU,GAAG;QAC5B,CAAA;IACD;AACD;;ADlNA;AAEA7D,SAASC,gBAAgB,CACxB,oBACA,WAAY;IACX,IAAIF,CAAAA,GAAAA,wCAAAA;AACL,GACA,KAAK","sources":["src/com/Start.js","src/com/Base.js","src/libraries/FipamoAdminAPI.js","src/com/controllers/MaintenanceManager.js","src/com/utils/DataUtils.js","src/com/events/DataEvent.js","src/com/controllers/DashManager.js","src/com/controllers/PostIndex.js","src/com/controllers/PageEditor.js","src/com/actions/PageActions.js","src/com/utils/StringUtils.js","src/com/events/EditorEvent.js","src/com/ui/TextEditor.js","src/com/events/EventEmitter.js","node_modules/prismjs/components/prism-core.js","node_modules/prismjs/components/prism-markup.js","node_modules/prismjs/components/prism-markdown.js","src/com/ui/Notifications.js","node_modules/animejs/lib/anime.es.js","src/com/ui/FileManager.js","node_modules/sortablejs/modular/sortable.esm.js","src/com/controllers/SettingsIndex.js","src/com/actions/SettingsActions.js","src/com/actions/Mailer.js","src/com/controllers/NavIndex.js","src/com/actions/NavActions.js","src/com/ui/Menu.js"],"sourcesContent":["import Base from './Base';\n\ndocument.addEventListener(\n\t'DOMContentLoaded',\n\tfunction () {\n\t\tnew Base();\n\t},\n\tfalse\n);\n","import FipamoAdminAPI from '../libraries/FipamoAdminAPI';\nimport Maintenance from './controllers/MaintenanceManager';\nimport DataUitls from './utils/DataUtils';\nimport * as DataEvent from './events/DataEvent';\nimport DashManager from './controllers/DashManager';\nimport Notfications from './ui/Notifications';\nconst data = new DataUitls();\nconst notify = new Notfications();\n\nexport default class Base {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tthis.start();\n\t}\n\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\n\t//TODO: Move init functions and set up to their own class\n\tstart() {\n\t\tif (\n\t\t\tdocument.getElementById('login') ||\n\t\t\tdocument.querySelector('[role=\"site-restore\"]')\n\t\t) {\n\t\t\tvar options = document.getElementsByClassName('init-option');\n\t\t\tfor (let index = 0; index < options.length; index++) {\n\t\t\t\toptions[index].addEventListener('click', e => this.handleOptions(e));\n\t\t\t}\n\t\t\tif (document.getElementById('login')) {\n\t\t\t\tdocument\n\t\t\t\t\t.getElementById('login-btn')\n\t\t\t\t\t.addEventListener('click', e => this.handleLogin(e));\n\t\t\t} else {\n\t\t\t\tdocument\n\t\t\t\t\t.getElementById('init-blog')\n\t\t\t\t\t.addEventListener('click', e => this.handleSetup(e));\n\t\t\t\tdocument\n\t\t\t\t\t.getElementById('blog-restore')\n\t\t\t\t\t.addEventListener('click', e => this.handleRestore(e));\n\t\t\t}\n\t\t} else if (document.getElementById('dash-reset')) {\n\t\t\tdocument\n\t\t\t\t.getElementById('get-secret-btn')\n\t\t\t\t.addEventListener('click', e => this.handleReset(e));\n\n\t\t\tdocument\n\t\t\t\t.getElementById('reset-btn')\n\t\t\t\t.addEventListener('click', e => this.handleReset(e));\n\t\t} else {\n\t\t\tnew DashManager();\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleLogin(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.preventDefault();\n\t\tlet authForm = data.formDataToJSON(document.getElementById('login'));\n\t\t//notify.alert('Looking, hold up', null);\n\t\tlet api = new FipamoAdminAPI();\n\t\tthis.processing = true;\n\t\tapi.login(authForm)\n\t\t\t.then(response => {\n\t\t\t\tself.processing = false;\n\t\t\t\tif (response.type === DataEvent.REQUEST_LAME) {\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t} else {\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t}, 500);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t});\n\t}\n\n\thandleSetup(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet setUpForm = data.formDataToJSON(document.getElementById('init-form'));\n\t\tlet mm = new Maintenance();\n\t\tthis.processing = true;\n\t\tmm.create(setUpForm)\n\t\t\t.then(response => {\n\t\t\t\tif (response.type === DataEvent.API_INIT_LAME) {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t} else {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t}, 700);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\t//notify.alert(err, false);\n\t\t\t});\n\t}\n\n\thandleRestore(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet mm = new Maintenance();\n\t\tvar form = document.getElementById('init-restore');\n\t\tthis.processing = true;\n\t\tmm.restore(form)\n\t\t\t.then(response => {\n\t\t\t\tif (response.type === DataEvent.REQUEST_LAME) {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t} else {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\te.target.innerHTML = response.message;\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t}, 1500);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\te.target.innerHTML = err;\n\t\t\t});\n\t}\n\n\thandleReset(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet self = this;\n\t\tlet mm = new Maintenance();\n\t\tif (e.target.id == 'get-secret-btn') {\n\t\t\tlet data = {\n\t\t\t\temail: document.getElementById('email').value,\n\t\t\t\ttask: 'retrieveSecret'\n\t\t\t};\n\t\t\tthis.processing = true;\n\t\t\tmm.secret(data)\n\t\t\t\t.then(response => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tif (response.secret) {\n\t\t\t\t\t\tdocument.getElementById('secret').value = response.secret;\n\t\t\t\t\t\tnotify.alert(response.message, true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (response.type == 'mailSent') {\n\t\t\t\t\t\t\tnotify.alert(response.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(response.message, false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t});\n\t\t} else {\n\t\t\tlet data = {\n\t\t\t\tnewPass: document.getElementById('new_password').value,\n\t\t\t\tnewPassConfirm: document.getElementById('new_password2').value,\n\t\t\t\tsecret: document.getElementById('secret').value\n\t\t\t};\n\t\t\tmm.newPass(data)\n\t\t\t\t.then(response => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tif (response.type == 'passNotCreated') {\n\t\t\t\t\t\tnotify.alert(response.message, false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnotify.alert(response.message, true);\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\twindow.location = '/dashboard';\n\t\t\t\t\t\t}, 1000);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\tself.processing = false;\n\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t});\n\t\t}\n\t}\n\thandleOptions(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet init = document.querySelector('[role=\"restore-fresh\"]');\n\t\tlet restore = document.querySelector('[role=\"restore-backup\"]');\n\t\tif (e.target.id === 'init-switch-restore') {\n\t\t\tinit.style.display = 'none';\n\t\t\tinit.style.visibility = 'hidden';\n\n\t\t\trestore.style.display = 'grid';\n\t\t\trestore.style.visibility = 'visible';\n\t\t} else {\n\t\t\tinit.style.display = 'grid';\n\t\t\tinit.style.visibility = 'visible';\n\n\t\t\trestore.style.display = 'none';\n\t\t\trestore.style.visibility = 'hidden';\n\t\t}\n\t}\n}\n","//** REQUEST TYPES **//\nexport const REQUEST_TYPE_POST = 'POST';\nexport const REQUEST_TYPE_GET = 'GET';\nexport const REQUEST_TYPE_PUT = 'PUT';\nexport const REQUEST_TYPE_DELETE = 'DELETE';\n//** POST CONTENT TYPES **//\nexport const CONTENT_TYPE_JSON = 'json';\nexport const CONTENT_TYPE_FORM = 'x-www-form-urlencoded';\n//** API URLS **//\nexport const API_STATUS = '/api/v1/status';\nexport const API_GET_SETTINGS = '/api/v1/settings/site';\nexport const API_GET_MEMBER_INFO = '/api/v1/settings/member';\nexport const API_NEW_PAGE = '/api/v1/page/create';\nexport const API_EDIT_PAGE = '/api/v1/page/write';\nexport const API_DELETE_PAGE = '/api/v1/page/delete';\nexport const API_SETTINGS_SYNC = '/api/v1/settings/sync';\nexport const API_PUBLISH_PAGES = '/api/v1/settings/publish';\nexport const API_NAV_SYNC = '/api/v1/settings/nav-sync';\nexport const API_REINDEX_PAGES = '/api/v1/settings/reindex';\nexport const API_SEND_MAIL = '/api/v1/mailer';\nexport const API_LOGIN = '/api/v1/login';\n//** API TASKS **//\nexport const AUTH_STATUS = 'getAuthStatus';\nexport const TASK_SETTINGS_WRITE = 'writeSettings';\nexport const TASK_PUBLISH_SITE = 'publishSite';\nexport const TASK_PAGE_CREATE = 'createNewPage';\nexport const TASK_PAGE_EDIT = 'editPage';\nexport const TASK_PAGE_DELETE = 'deletePage';\nexport const TASK_SEND_MAIL = 'sendMail';\nexport const TASK_REINDEX_PAGE = 'reIndexPages';\nexport const TASK_SYNC_SETTNIGS = 'syncSite';\nexport const TASK_SYNC_NAV = 'syncNav';\nexport const TASK_GET_SETTINGS = 'getSiteSettings';\nexport const TASK_GET_MEMBER_INFO = 'getMemberInfo';\n//** API STATUS **//\nexport const API_ACCESS_GOOD = 'apiUseAuthorized';\nexport const API_ACCESS_BAD = 'apiUseNotAuthorized';\n\n/**\n * A can of methods used to edit install settings, navigation pages and content pages\n */\n\nclass FipamoAdminAPI {\n\t/**\n\t * @constructor\n\t * @param {string} baseURL - url of site; uses local when empty\n\t * @param {object} progressBar - element to be used to display upload progress\n\t */\n\tconstructor(baseURL = null, progressBar = null) {\n\t\tthis.percentComplete = 0; //for later\n\t\tthis.baseURL = null;\n\t\tthis.progressBar = progressBar;\n\t\tthis.status = false;\n\t\tif (baseURL) this.baseURL = baseURL;\n\t\t//asks server if a session is active\n\t\tthis._request(this.baseURL ? this.baseURL + API_STATUS : API_STATUS).then(\n\t\t\tresponse => {\n\t\t\t\tif (response.type === API_ACCESS_GOOD) {\n\t\t\t\t\tthis.token = response.token;\n\t\t\t\t} else {\n\t\t\t\t\t//don't set token\n\t\t\t\t\t//console.log(\"NO TOKEN\");\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t}\n\t/**\n * Promise method for authenticating and starting a session\\\n * **POST**`/api/v1/login`\n * @param {Object[]} data - json object that contains data for set up\n * @param {string} data[].handle - handle for site user\n * @param {string} data[].password - password for site user\n * @example\n * api.login(data).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of login request\n ```\n {\n \"message\":\"Example Message of Affirmation or what you're missing!\",\n \"type\":\"exampleType\",\n }\n ```\n */\n\tlogin(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis.baseURL ? (data.remote = true) : (data.remote = false);\n\t\t\tthis.key ? (data.key = this.key) : (data.key = null);\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + API_LOGIN : API_LOGIN,\n\t\t\t\tAUTH_STATUS,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n * Method for saving site and navigation settings\\\n * **POST**`/api/v1/settings/:task`\n * @param {string} task - settings being synced `config | navigation`\n * @param {object[]} data - json object that contains settings data for [site] or [nav]\n * @param {string} data[].global.base_url - base url for site [site]\n * @param {string} data[].global.title - site title [site]\n * @param {string} data[].global.descriptions - brief site summary [site]\n * @param {string} data[].global.background - url for site feature image for header [site]\n * @param {boolean} data[].global.private - privacy state for site [disabled] [site]\n * @param {boolean} data[].global.renderOnSave - property for publishing site when page saved [disabled] [site]\n * @param {string} data[].global.theme - current theme for site [site]\n * @param {boolean} data[].global.externalAPI - toggle for external API access [site]\n * @param {string} data[].member.handle - current member handle [site]\n * @param {string} data[].member.email - current member email [site]\n * @param {string} data[].email.active - current email protocol being used [site]\n * @param {string} data[].email.smtp.domain - url of smtp service being [site]\n * @param {string} data[].email.smtp.email - email account of smtp service [site]\n * @param {string} data[].email.smtp.password - password for email of smtp service [site]\n * @param {string} data[].email.mailgun.domain - mailgun domain url [site]\n * @param {string} data[].email.mailgun.key - mailgun key [site]\n *\n * @param {string} data[].item.title - page title [nav]\n * @param {string} data[].item.slug - url safe title [nav]\n * @param {string} data[].item.uuid - unique identifier [nav]\n * @param {string} data[].item.path - directory path to associated markdown file [nav]\n * @example\n * api.sync(TASK, data).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of sync request\n ```\n *\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\",\n }\n ```\n */\n\tsync(task, data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet url = '';\n\t\t\tswitch (task) {\n\t\t\t\tcase 'syncSite':\n\t\t\t\t\turl = API_SETTINGS_SYNC;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'syncNav':\n\t\t\t\t\turl = API_NAV_SYNC;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + url : url,\n\t\t\t\tTASK_SETTINGS_WRITE,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * Method for retrieving user authorizing user login\n * @param {object[]} data - json object that contains task\n * @param {string} data[].task - publishing task\n * @example\n * api.publish(TASK).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of publis request\n * ```\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\",\n }\n * ```\n */\n\tpublish(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\t//API_PUBLISH_PAGES,\n\t\t\t\tthis.baseURL ? this.baseURL + API_PUBLISH_PAGES : API_PUBLISH_PAGES,\n\t\t\t\tTASK_PUBLISH_SITE,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * Method for handling page creating and editing\\\n * **POST**`/api/v1/page/:task`\n * @param {string} task - current page action\n * @param {object[]} form - form object that contains info for current page being edited/created\n * @param {string} form[].id - sequence id for page, leave empty for new page\n * @param {string} form[].uuid - unique identifier for page, leave empty for new page\n * @param {string} form[].layout - current page layout\n * @param {string} form[].current_title - saved url save title for persistence when changing title, leave empty for new page\n * @param {string} form[].content - markdown body of page\n * @param {string} form[].title - current title of page\n * @param {string} form[].created - date page was created, leave empty for new page\n * @param {string} form[].slug - url safe string of page title\n * @param {string} form[].tags - comma separated list of tags\n * @param {boolean} form[].menu - property that indicates page is included in site menu\n * @param {boolean} form[].featured - property that indicates page is featured\n * @param {boolean} form[].published - property that indicates page is public\n * @param {string} form[].form_token - hidden property to authenticate form submission\n * @param {input} form[].feature_image - main image for page\n * @example\n * api.pageActions(TASK, data).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of page edit request\n ```\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\",\n }\n ```\n */\n\tpageActions(task, data) {\n\t\tlet url, event, content;\n\t\tswitch (task) {\n\t\t\tcase TASK_PAGE_CREATE:\n\t\t\t\turl = API_NEW_PAGE;\n\t\t\t\tevent = TASK_PAGE_CREATE;\n\t\t\t\tcontent = CONTENT_TYPE_JSON;\n\t\t\t\tbreak;\n\t\t\tcase TASK_PAGE_EDIT:\n\t\t\t\turl = API_EDIT_PAGE;\n\t\t\t\tevent = TASK_PAGE_EDIT;\n\t\t\t\tcontent = CONTENT_TYPE_JSON;\n\t\t\t\tbreak;\n\n\t\t\tcase TASK_PAGE_DELETE:\n\t\t\t\turl = API_DELETE_PAGE;\n\t\t\t\tevent = TASK_PAGE_DELETE;\n\t\t\t\tcontent = CONTENT_TYPE_JSON;\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif (this.baseURL) {\n\t\t\t//data.key = this.key;\n\t\t\tdata.remote = true;\n\t\t} else {\n\t\t\tdata.remote = false;\n\t\t}\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + url : url,\n\t\t\t\tevent,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tcontent,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * Method for sending mail (if completed in settings)\\\n * **POST**`/api/v1/mailer`\n * @param {object[]} message - json object that contains items to be included in main site navigation\n * @param {string} message[].content - message to send\n * @example\n * api.sendMail(message).then(response=>{\n * console.log(\"RESPONSE\", response);\n * })\n * @returns {object} json object that contains type and status of page edit request\n ```\n {\n \"message\":\"Example Message of Affirmation!\",\n \"type\":\"exampleType\"\n }\n ```\n */\n\tsendMail(message) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tthis.baseURL ? this.baseURL + API_SEND_MAIL : API_SEND_MAIL,\n\t\t\t\tTASK_SEND_MAIL,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tmessage\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n * *Promise method for retrieving site and member info*\\\n * **GET** `/api/v1/settings/:type`\n * @param {string} type - type of info requested ['site'|'member'];\n * @example\n * api.getInfo(\"type\").then(data=>{\n console.log(\"Info Object\", data);\n * })\n * @returns {object} json object that contains data for requested information\n *\n * *info object example*\n * ```\n {\n \"message\":\"message of affirmation!\",\n \"task\":\"type of info request\",\n \"data\":json-data-object,\n }\n * ```\n */\n\n\tgetInfo(type) {\n\t\tlet url, task;\n\t\tif (type == 'site') {\n\t\t\turl = API_GET_SETTINGS;\n\t\t\ttask = TASK_GET_SETTINGS;\n\t\t} else {\n\t\t\turl = API_GET_MEMBER_INFO;\n\t\t\ttask = TASK_GET_MEMBER_INFO;\n\t\t}\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(this.baseURL ? this.baseURL + url : url, task)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t//--------------------------\n\t// private\n\t//--------------------------\n\t_request(\n\t\trequestURL,\n\t\teventType,\n\t\trequestType = REQUEST_TYPE_GET,\n\t\tcontentType = CONTENT_TYPE_JSON,\n\t\trequestData = null\n\t) {\n\t\tvar self = this;\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\tvar request = new XMLHttpRequest();\n\t\t\trequest.upload.addEventListener('progress', e =>\n\t\t\t\tself.handleLoadProgress(e, self.progressBar)\n\t\t\t);\n\t\t\trequest.open(requestType, requestURL, true);\n\t\t\trequest.onload = () => {\n\t\t\t\tif (request.status == 200) {\n\t\t\t\t\tlet response = JSON.parse(request['response']);\n\t\t\t\t\tresolve(response);\n\t\t\t\t} else {\n\t\t\t\t\tlet error = JSON.parse(request['response']);\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\t\t\t};\n\t\t\tif (requestType == REQUEST_TYPE_PUT || requestType == REQUEST_TYPE_POST) {\n\t\t\t\tif (\n\t\t\t\t\teventType === TASK_SETTINGS_WRITE ||\n\t\t\t\t\teventType === TASK_PAGE_EDIT ||\n\t\t\t\t\teventType === TASK_PAGE_CREATE ||\n\t\t\t\t\teventType === TASK_PAGE_DELETE ||\n\t\t\t\t\teventType === TASK_PUBLISH_SITE ||\n\t\t\t\t\teventType === TASK_REINDEX_PAGE\n\t\t\t\t)\n\t\t\t\t\trequest.setRequestHeader('fipamo-access-token', self.token);\n\n\t\t\t\tswitch (contentType) {\n\t\t\t\t\tcase CONTENT_TYPE_JSON:\n\t\t\t\t\t\trequest.setRequestHeader(\n\t\t\t\t\t\t\t'Content-type',\n\t\t\t\t\t\t\t'application/' + contentType\n\t\t\t\t\t\t);\n\t\t\t\t\t\trequest.send(JSON.stringify(requestData));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CONTENT_TYPE_FORM:\n\t\t\t\t\t\trequest.send(requestData);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (\n\t\t\t\t\teventType === TASK_GET_SETTINGS ||\n\t\t\t\t\teventType === TASK_GET_MEMBER_INFO\n\t\t\t\t) {\n\t\t\t\t\trequest.setRequestHeader('fipamo-access-token', self.token);\n\t\t\t\t}\n\t\t\t\trequest.send();\n\t\t\t}\n\t\t});\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleLoadProgress(e, progressBar) {\n\t\tlet percent = Math.ceil((e.loaded / e.total) * 100);\n\t\t//if a progress bar element is present, talk to it\n\t\tif (progressBar != null) {\n\t\t\tprogressBar.style.width = percent + '%';\n\t\t}\n\t}\n}\n\nexport { FipamoAdminAPI as default };\n","//** REQUEST TYPES **//\nexport const REQUEST_TYPE_POST = 'POST';\nexport const REQUEST_TYPE_GET = 'GET';\nexport const REQUEST_TYPE_PUT = 'PUT';\nexport const REQUEST_TYPE_DELETE = 'DELETE';\n//** POST CONTENT TYPES **//\nexport const CONTENT_TYPE_JSON = 'json';\nexport const CONTENT_TYPE_FORM = 'x-www-form-urlencoded';\n//** API URLS **//\nexport const API_STATUS = '/api/v1/status';\nexport const API_INIT = '/api/v1/init';\nexport const API_RESTORE = '/api/v1/restore';\nexport const API_GET_SECRET = '/api/v1/get-secret';\nexport const API_RESET_PASS = '/api/v1/reset-password';\nexport const API_CREATE_BACKUP = '/api/v1/backup';\nexport const API_DOWNLOAD_BACKUP = '/api/v1/backup/download';\nexport const API_RESTORE_BACKUP = '/api/v1/backup/restore';\nexport const API_UPLOAD_AVATAR = '/api/v1/settings/add-avatar';\nexport const API_UPLOAD_BACKGROUND = '/api/v1/settings/add-feature-background';\nexport const API_IMAGE_UPLOAD = '/api/v1/page/add-entry-image';\nexport const API_FILES_UPLOAD = '/api/v1/files';\n//** API TASKS **//\nexport const TASK_SITE_INIT = 'blogInit';\nexport const TASK_BACKUP_RESTORE = 'restoreBackup';\nexport const TASK_BACKUP_CREATE = 'createBackup';\nexport const TASK_GET_SECRET = 'retrieveSecret';\nexport const TASK_RESET_PASS = 'resetPassword';\nexport const TASK_UPLOAD_FILES = 'uploadFiles';\n//** API STATUS **//\nexport const API_ACCESS_GOOD = 'apiUseAuthorized';\nexport const API_ACCESS_BAD = 'apiUseNotAuthorized';\n\n/**\n * A tub of methods for creating/restoring installs, resetting passwords and uploading images.\n */\nclass MaintenanceManager {\n\t/**\n\t * @constructor\n\t * @param {string} baseURL - url of site; uses local when empty\n\t * @param {string} key - user api key\n\t */\n\tconstructor(baseURL = null, key = null) {\n\t\tthis.accetableFiles = [\n\t\t\t'image/jpeg',\n\t\t\t'image/gif',\n\t\t\t'image/png',\n\t\t\t'image/svg',\n\t\t\t'audio/mpeg',\n\t\t\t'video/mp4',\n\t\t\t'application/pdf',\n\t\t\t'text/plain',\n\t\t\t'text/rtf'\n\t\t];\n\t\tthis.percentComplete = 0; //for later\n\t\tthis.token = null;\n\t\tthis.baseURL = null;\n\t\tthis.key = null;\n\t\tif (key) this.key = key;\n\t\tif (baseURL) this.baseURL = baseURL;\n\t\t//if key is valid, checks to see if a session is active and returns\n\t\tthis._request(\n\t\t\tthis.baseURL\n\t\t\t\t? this.baseURL + API_STATUS + '?key=' + this.key\n\t\t\t\t: API_STATUS + '?key=' + this.key\n\t\t).then(response => {\n\t\t\tif (response.type === API_ACCESS_GOOD) {\n\t\t\t\tthis.token = response.token;\n\t\t\t} else {\n\t\t\t\t//don't set token\n\t\t\t\t//console.log(\"NO TOKEN\");\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Promise method used create new site from scratch. For local use only.\n\t * @param {object} data - json object that contains data for set up\n\t * @property {string} new_member_handle - handle for new user\n\t * @property {string} new_member_email - email for new user\n\t * @property {string} new_member_pass - password for new user\n\t * @property {string} new_member_title - title for new user\n\t */\n\tcreate(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tAPI_INIT,\n\t\t\t\tnull,\n\t\t\t\tTASK_SITE_INIT,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Promise method for restoring site from a previous back up. For local use only.\n\t * @param {object} form - form object that contains restore data and files\n\t * @property {string} restore_member_handle - handle for site user\n\t * @property {string} restore_member_pass - password for site user\n\t * @property {file} backup-upload - backup zip file\n\t */\n\trestore(form) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tvar url, event, method, type, data;\n\n\t\t\turl = API_RESTORE;\n\t\t\tevent = TASK_BACKUP_RESTORE;\n\t\t\tmethod = REQUEST_TYPE_POST;\n\t\t\ttype = CONTENT_TYPE_FORM;\n\t\t\tdata = new FormData(form);\n\t\t\tthis._request(url, null, event, method, type, data)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Promise method for creating a zip back up of current site. For local use only.\n\t */\n\n\tbackup() {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tvar url, event, method, type, data;\n\n\t\t\turl = API_CREATE_BACKUP;\n\t\t\tevent = TASK_BACKUP_CREATE;\n\t\t\tmethod = REQUEST_TYPE_POST;\n\t\t\ttype = CONTENT_TYPE_JSON;\n\t\t\tdata = { task: 'create_backup' };\n\t\t\tthis._request(url, null, event, method, type, data)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n\t * Promise method for retrieving user secret key. For local use only.\n\t * @param {object} data - json object that contains data for set up\n\t * @property {string} email - email for site user\n\t */\n\n\tsecret(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tAPI_GET_SECRET,\n\t\t\t\tTASK_GET_SECRET,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Promise method for resetting password for user. For local use only.\n\t * @param {object} data - json object that contains data for set up\n\t * @property {string} new_password - password for user\n\t * @property {string} new_password2 - confirm password for user\n\t * @property {string} secret - secret key for user\n\t */\n\n\tnewPass(data) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._request(\n\t\t\t\tAPI_RESET_PASS,\n\t\t\t\tTASK_RESET_PASS,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_JSON,\n\t\t\t\tdata\n\t\t\t)\n\t\t\t\t.then(result => {\n\t\t\t\t\tresolve(result);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t/**\n\t * Promise method for uploading files [todo: change to uploading files]\n\t * @param {string} type - type of upload\n\t * @param {input} files - form input containing files\n\t */\n\tfilesUpload(type, files, progress = null) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet url = API_FILES_UPLOAD;\n\n\t\t\tif (this.baseURL) {\n\t\t\t\tfiles.append('key', this.key);\n\t\t\t\tfiles.append('remote', true);\n\t\t\t} else {\n\t\t\t\tfiles.append('remote', false);\n\t\t\t}\n\n\t\t\tthis._request(\n\t\t\t\turl,\n\t\t\t\tprogress,\n\t\t\t\tTASK_UPLOAD_FILES,\n\t\t\t\tREQUEST_TYPE_POST,\n\t\t\t\tCONTENT_TYPE_FORM,\n\t\t\t\tfiles\n\t\t\t)\n\t\t\t\t.then(r => {\n\t\t\t\t\tresolve(r);\n\t\t\t\t})\n\t\t\t\t.catch(err => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t}\n\n\t//--------------------------\n\t// private\n\t//--------------------------\n\t_request(\n\t\trequestURL,\n\t\tprogressBar = null,\n\t\teventType,\n\t\trequestType = REQUEST_TYPE_GET,\n\t\tcontentType = CONTENT_TYPE_JSON,\n\t\trequestData = null\n\t) {\n\t\tvar self = this;\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\tvar request = new XMLHttpRequest();\n\n\t\t\trequest.upload.addEventListener('progress', e =>\n\t\t\t\tself.handleLoadProgress(e, progressBar)\n\t\t\t);\n\t\t\trequest.open(requestType, requestURL, true);\n\t\t\trequest.onload = () => {\n\t\t\t\tif (request.status == 200) {\n\t\t\t\t\tlet response = JSON.parse(request['response']);\n\t\t\t\t\tresolve(response);\n\t\t\t\t} else {\n\t\t\t\t\tlet error = JSON.parse(request['response']);\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\t\t\t};\n\t\t\tif (requestType == REQUEST_TYPE_PUT || requestType == REQUEST_TYPE_POST) {\n\t\t\t\tif (eventType === TASK_UPLOAD_FILES)\n\t\t\t\t\trequest.setRequestHeader('fipamo-access-token', self.token);\n\t\t\t\tswitch (contentType) {\n\t\t\t\t\tcase CONTENT_TYPE_JSON:\n\t\t\t\t\t\trequest.setRequestHeader(\n\t\t\t\t\t\t\t'Content-type',\n\t\t\t\t\t\t\t'application/' + contentType\n\t\t\t\t\t\t);\n\t\t\t\t\t\trequest.send(JSON.stringify(requestData));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CONTENT_TYPE_FORM:\n\t\t\t\t\t\trequest.send(requestData);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\trequest.send();\n\t\t\t}\n\t\t});\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleLoadProgress(e, progressBar) {\n\t\tlet percent = Math.ceil((e.loaded / e.total) * 100);\n\t\t//if a progress bar element is present, talk to it\n\t\tif (progressBar != null) {\n\t\t\tprogressBar.style.width = percent + '%';\n\t\t}\n\t}\n}\n\nexport { MaintenanceManager as default };\n","export default class DataUtils {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\n\timgLoad(url) {\n\t\t'use strict';\n\t\t// Create new promise with the Promise() constructor;\n\t\t// This has as its argument a function with two parameters, resolve and reject\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\t// Standard XHR to load an image\n\t\t\tvar request = new XMLHttpRequest();\n\t\t\trequest.open('GET', url);\n\t\t\trequest.responseType = 'blob';\n\t\t\t// When the request loads, check whether it was successful\n\t\t\trequest.onload = function () {\n\t\t\t\tif (request.status === 200) {\n\t\t\t\t\t// If successful, resolve the promise by passing back the request response\n\t\t\t\t\tresolve(request.response);\n\t\t\t\t} else {\n\t\t\t\t\t// If it fails, reject the promise with a error message\n\t\t\t\t\treject(\n\t\t\t\t\t\tnew Error(\n\t\t\t\t\t\t\t\"Image didn't load successfully; error code: \" +\n\t\t\t\t\t\t\t\trequest.status +\n\t\t\t\t\t\t\t\t' ' +\n\t\t\t\t\t\t\t\trequest.statusText\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t};\n\t\t\trequest.onerror = function () {\n\t\t\t\t// Also deal with the case when the entire request fails to begin with\n\t\t\t\t// This is probably a network error, so reject the promise with an appropriate message\n\t\t\t\treject(new Error('There was a network error.'));\n\t\t\t};\n\t\t\t// Send the request\n\t\t\trequest.send();\n\t\t});\n\t}\n\tloadImage(src) {\n\t\t'use strict';\n\t\tlet self = this;\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\t// Get a reference to the body element, and create a new image object\n\t\t\tvar myImage = new Image();\n\t\t\tmyImage.crossOrigin = ''; // or \"anonymous\"\n\t\t\t// Call the function with the URL we want to load, but then chain the\n\t\t\t// promise then() method on to the end of it. This contains two callbacks\n\t\t\tself.imgLoad(src).then(\n\t\t\t\tfunction (response) {\n\t\t\t\t\t// The first runs when the promise resolves, with the request.reponse specified within the resolve() method.\n\t\t\t\t\tvar imageURL = window.URL.createObjectURL(response);\n\t\t\t\t\tresolve(imageURL);\n\t\t\t\t\t//$('background-content').setStyle('background-image', 'url('+imageURL+')') //myImage.src = imageURL;\n\t\t\t\t\t//console.log(imageURL);\n\t\t\t\t\t//body.appendChild(myImage);\n\t\t\t\t\t// The second runs when the promise is rejected, and logs the Error specified with the reject() method.\n\t\t\t\t},\n\t\t\t\tfunction (Error) {\n\t\t\t\t\treject(Error);\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t}\n\n\t/**\n\t * Create a function to convert the serialize and convert the form data to JSON\n\t * @param : $('#form_example');\n\t * @return a JSON Stringify\n\t */\n\tformDataToJSON(form) {\n\t\tlet object = {};\n\t\tlet formData = new FormData(form);\n\t\tformData.forEach((value, key) => {\n\t\t\tif (!object.hasOwnProperty(key)) {\n\t\t\t\tobject[key] = value;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!Array.isArray(object[key])) {\n\t\t\t\tobject[key] = [object[key]];\n\t\t\t}\n\t\t\tobject[key].push(value);\n\t\t});\n\t\t//let json = JSON.stringify(object);\n\t\treturn object;\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","export const AUTH_STATUS = \"getAuthStatus\";\nexport const REQUEST_GOOD = \"requestGood\";\nexport const REQUEST_LAME = \"requestLame\";\nexport const API_REQUEST_GOOD = \"apiUseAuthorized\";\nexport const API_REQUEST_LAME = \"apiUseNotAuthorized\";\nexport const IMG_REQUEST_GOOD = \"imgRequestGood\";\nexport const IMG_REQUEST_LAME = \"imgRequestLame\";\nexport const SETTINGS_LOADED = \"settingsLoaded\";\nexport const POST_IMAGE_ADDED = \"postImageAdded\";\nexport const FEATURE_IMAGE_ADDED = \"featureImageAdded\";\nexport const PAGE_ERROR = \"postError\";\nexport const PAGE_ADDED = \"postAdded\";\nexport const PAGE_UPDATED = \"postUpdated\";\nexport const PAGE_DELETED = \"postImageAdded\";\nexport const PAGES_RENDERED = \"pagesRendered\";\nexport const PAGES_NOT_RENDERED = \"pagesNotRendered\";\nexport const TAG_PAGES_RENDERED = \"tagPagesRendered\";\nexport const TAG_PAGES_NOT_RENDERED = \"tagPagesNotRendered\";\nexport const SETTINGS_UPDATED = \"settingsUpdated\";\nexport const SETTINGS_NOT_UPDATED = \"settingsNotUpdated\";\nexport const MENU_ADD_ITEM = \"menuAddItem\";\nexport const MENU_DELETE_ITEM = \"menuDeleteItem\";\nexport const MENU_UPDATED = \"menuUpdated\";\nexport const AVATAR_UPLOADED = \"avatarUploaded\";\nexport const SITE_BACKGROUND_UPLOADED = \"siteBackgroundUploaded\";\nexport const UPLOAD_PROGRESS = \"uploadProgress\";\nexport const API_PAGE_WRITE = \"writingItDown\";\nexport const API_PAGE_CREATE = \"writingNewEntry\";\nexport const API_PAGE_DELETE = \"erasingPage\";\nexport const API_SETTINGS_WRITE = \"savingSettings\";\nexport const API_BACKUP_CREATE = \"createBackup\";\nexport const API_BACKUP_DOWNLOAD = \"downloadBackup\";\nexport const API_BACKUP_RESTORE = \"downloadBackup\";\nexport const API_IMAGES_UPLOAD = \"uploadProfileImages\";\nexport const API_RENDER_PAGES = \"renderPages\";\nexport const API_REINDEX_PAGES = \"reindexPages\";\nexport const API_INIT = \"blogInit\";\nexport const API_INIT_GOOD = \"blogInitGood\";\nexport const API_INIT_LAME = \"blogInitLame\";\nexport const API_GET_SECRET = \"retrieveSecret\";\nexport const API_RESET_PASS = \"resetPassword\";\nexport const SEND_MAIL = \"sendMail\";\nclass DataEvent {\n //--------------------------\n // methods\n //--------------------------\n //--------------------------\n // event handlers\n //--------------------------\n}\nexport default new DataEvent();\n","import PostIndex from './PostIndex';\nimport SettingsIndex from './SettingsIndex';\nimport NaviIndex from './NavIndex';\nimport Menu from '../ui/Menu';\n\nexport default class DashManager {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.currentDisplay = '';\n\t\tthis.urlPieces = document.URL.split('/');\n\t\tthis.chooseDisplay(this.urlPieces[4], this.urlPieces[5]);\n\t\t//start main menu handler\n\t\tnew Menu();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {}\n\n\tchooseDisplay(section, page) {\n\t\tthis.currentDisplay = '';\n\t\tswitch (section) {\n\t\t\tcase 'page':\n\t\t\t\tthis.currentDisplay = new PostIndex(page);\n\t\t\t\tbreak;\n\t\t\tcase 'settings':\n\t\t\t\tthis.currentDisplay = new SettingsIndex();\n\t\t\t\tbreak;\n\t\t\tcase 'navigation':\n\t\t\t\tthis.currentDisplay = new NaviIndex();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t//just chill\n\t\t\t\tbreak;\n\t\t}\n\t\tthis.start();\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","import PageEditor from \"./PageEditor\";\nexport default class PostIndex {\n //--------------------------\n // constructor\n //--------------------------\n constructor(page) {\n this.currentPage = null;\n this.choosePage(page);\n this.start();\n }\n //--------------------------\n // methods\n //--------------------------\n start() {}\n choosePage(page) {\n this.currentPage = \"\";\n switch (page) {\n case \"edit\":\n case \"add\":\n this.currentPage = new PageEditor();\n break;\n default:\n //just chill\n break;\n }\n }\n //--------------------------\n // event handlers\n //--------------------------\n}\n","//TOOLS\nimport FipamoAdminAPI, {\n\tTASK_PAGE_CREATE,\n\tTASK_PAGE_EDIT,\n\tTASK_PAGE_DELETE\n} from '../../libraries/FipamoAdminAPI';\nimport Maintenance from './MaintenanceManager';\nimport * as DataEvent from '../events/DataEvent';\nimport PageActions from '../actions/PageActions';\nimport * as EditorEvent from '../events/EditorEvent';\n//import TinyDatePicker from 'tiny-date-picker'; TODO: Reactivate for scheduled publishing\nimport TextEditor from '../ui/TextEditor';\nimport Notfications from '../ui/Notifications';\nimport FileManager from '../ui/FileManager';\nconst notify = new Notfications();\nexport default class PostEditor {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tlet self = 'this';\n\t\tthis.admin = new FipamoAdminAPI(null, document.getElementById('notify-progress'));\n\t\tthis.mm = new Maintenance(null, null);\n\t\tthis.urlPieces = document.URL.split('/');\n\t\tthis.post = [];\n\t\tthis.postID = null;\n\t\tthis.postUUID = null;\n\t\tthis.postLayout = null;\n\t\tthis.fm = null;\n\t\tif (document.querySelector('[role=\"file-manager\"]').getAttribute('data-index')) {\n\t\t\tthis.postID = document\n\t\t\t\t.querySelector('[role=\"file-manager\"]')\n\t\t\t\t.getAttribute('data-index');\n\t\t\tthis.postUUID = document\n\t\t\t\t.querySelector('[role=\"file-manager\"]')\n\t\t\t\t.getAttribute('data-uuid');\n\t\t\tthis.postLayout = document\n\t\t\t\t.querySelector('[role=\"file-manager\"]')\n\t\t\t\t.getAttribute('data-layout');\n\t\t}\n\t\tif (document.getElementById('edit')) {\n\t\t\tthis.editor = new TextEditor(\n\t\t\t\tdocument.getElementById('edit'),\n\t\t\t\tdocument.querySelector('[role=\"file-manager\"]').offsetHeight +\n\t\t\t\t\tdocument.querySelector('[role=\"page-meta\"]').offsetHeight +\n\t\t\t\t\tdocument.querySelector('[role=\"text-editor\"]').offsetHeight\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_DELETE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_DELETE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_UPLOAD_POST_IMAGE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_UPLOAD_POST_IMAGE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_UPDATE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_UPDATE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tthis.editor.addListener(\n\t\t\t\tEditorEvent.EDITOR_SAVE,\n\t\t\t\t() => this.handleEditorOptions(EditorEvent.EDITOR_SAVE),\n\t\t\t\tfalse\n\t\t\t);\n\t\t\tdocument.getElementById('post-image-upload').addEventListener(\n\t\t\t\t'change',\n\t\t\t\te => {\n\t\t\t\t\tthis.handleImageUpload(e.target.id, e.target.files);\n\t\t\t\t},\n\t\t\t\tfalse\n\t\t\t);\n\t\t\t/*\n\t\t\tTinyDatePicker(document.getElementById('post-date'), {\n\t\t\t\tmode: 'dp-below',\n\t\t\t\tformat() {\n\t\t\t\t\t//return self.dateUtils.getDate('origin', date);\n\t\t\t\t}\n\t\t\t});\n\t\t\t*/\n\n\t\t\tthis.start();\n\t\t}\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\tif (document.querySelector('[role=\"file-drop\"]')) {\n\t\t\t//insert fileManager here\n\t\t\tthis.fm = new FileManager(\n\t\t\t\tdocument.querySelector('[role=\"file-drop\"]'),\n\t\t\t\tdocument.getElementById('page-files-upload'),\n\t\t\t\tdocument.querySelector('[role=\"page-images-list\"]'),\n\t\t\t\tdocument.querySelector('[role=\"page-files-list\"]')\n\t\t\t);\n\t\t\tvar optionButtons = document.querySelectorAll('.post-option-btn');\n\t\t\tfor (var i = 0, length = optionButtons.length; i < length; i++) {\n\t\t\t\toptionButtons[i].addEventListener(\n\t\t\t\t\t'click',\n\t\t\t\t\te => this.handlePostOptions(e),\n\t\t\t\t\tfalse\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandlePostOptions(e) {\n\t\tlet currentOption = null;\n\t\tswitch (e.target.id) {\n\t\t\tcase 'option-page-icon':\n\t\t\tcase 'option-menu-pin':\n\t\t\t\tcurrentOption = document.getElementById('option-menu-pin');\n\t\t\t\tbreak;\n\t\t\tcase 'option-feature-icon':\n\t\t\tcase 'option-feature':\n\t\t\t\tcurrentOption = document.getElementById('option-feature');\n\t\t\t\tbreak;\n\t\t\tcase 'option-published-icon':\n\t\t\tcase 'option-published':\n\t\t\t\tcurrentOption = document.getElementById('option-published');\n\t\t\t\tbreak;\n\t\t}\n\t\tif (currentOption != null) {\n\t\t\tlet active = currentOption.getAttribute('data-active');\n\t\t\tactive == 'false'\n\t\t\t\t? currentOption.setAttribute('data-active', 'true')\n\t\t\t\t: currentOption.setAttribute('data-active', 'false');\n\t\t}\n\t}\n\thandleEditorOptions(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\tswitch (e) {\n\t\t\tcase EditorEvent.EDITOR_SAVE:\n\t\t\tcase EditorEvent.EDITOR_UPDATE:\n\t\t\t\tvar task = '';\n\t\t\t\te === EditorEvent.EDITOR_SAVE\n\t\t\t\t\t? (task = TASK_PAGE_CREATE)\n\t\t\t\t\t: (task = TASK_PAGE_EDIT);\n\t\t\t\tnew PageActions().collectInfo(this.fm.getFileOrder()).then(page => {\n\t\t\t\t\tself.processing = true;\n\t\t\t\t\tnotify.alert('Writing down changes', null);\n\t\t\t\t\tself.admin\n\t\t\t\t\t\t.pageActions(task, page)\n\t\t\t\t\t\t.then(r => {\n\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tr.type === DataEvent.PAGE_ERROR ||\n\t\t\t\t\t\t\t\tr.type === DataEvent.API_REQUEST_LAME\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tnotify.alert(r.message, false);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (r.type === DataEvent.PAGE_UPDATED) {\n\t\t\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t\t\t\twindow.location = '/dashboard/page/edit/' + r.id;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch(err => {\n\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\tcase EditorEvent.EDITOR_DELETE:\n\t\t\t\tif (this.postLayout === 'index') {\n\t\t\t\t\tnotify.alert('Index cannot be deleted', false);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (confirm(\"AYE! You know you're deleting this post, right?\")) {\n\t\t\t\t\tnew PageActions()\n\t\t\t\t\t\t.collectInfo(this.fm.getFileOrder())\n\t\t\t\t\t\t.then(page => {\n\t\t\t\t\t\t\tself.processing = true;\n\t\t\t\t\t\t\tthis.admin\n\t\t\t\t\t\t\t\t.pageActions(TASK_PAGE_DELETE, page)\n\t\t\t\t\t\t\t\t.then(() => {\n\t\t\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\t\t\twindow.location = '/dashboard/pages';\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t.catch(err => {\n\t\t\t\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\t\t\t\tnotify.alert(err, false);\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch(() => {});\n\t\t\t\t} else {\n\t\t\t\t\t// Do nothing!\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase EditorEvent.EDITOR_UPLOAD_POST_IMAGE:\n\t\t\t\tdocument.getElementById('post-image-upload').click();\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\thandleImageUpload(type, files) {\n\t\tlet self = this;\n\t\tnotify.alert('Uploading Image', null);\n\t\tlet upload = new FormData();\n\t\tupload.enctype = 'multipart/form-data';\n\t\tupload.append('upload_files[]', files[0], files[0].name);\n\t\tthis.mm\n\t\t\t.filesUpload(files[0].type, upload)\n\t\t\t.then(result => {\n\t\t\t\tif (result.message == 'File Uploaded. Great!') {\n\t\t\t\t\tself.editor.notify(\n\t\t\t\t\t\tEditorEvent.EDITOR_UPLOAD_POST_IMAGE,\n\t\t\t\t\t\tresult.filePath\n\t\t\t\t\t);\n\t\t\t\t\tnotify.alert('Image Added to Entry', true);\n\t\t\t\t} else {\n\t\t\t\t\tnotify.alert('Uh oh. Image not added', false);\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(() => {\n\t\t\t\tnotify.alert('Uh oh. Image not added', false);\n\t\t\t});\n\t}\n}\n","import StringUtils from '../utils/StringUtils';\nexport default class PostActions {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tcollectInfo(files) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlet pageInfo = [];\n\t\t\tlet pageRef = document.querySelector('[role=\"file-manager\"]');\n\t\t\t//process html content for storage\n\t\t\tlet txt = document.createElement('textarea');\n\t\t\ttxt.innerHTML = document.getElementById('highlight-content').innerHTML;\n\t\t\tlet html = txt.value;\n\t\t\thtml = html.replace(/<\\/?span[^>]*>/g, ''); //removes prism styling\n\t\t\thtml = html.replace(/<\\/?br[^>]*>/g, '\\n'); //convert back to encoded line break for storage\n\t\t\t//build data object\n\t\t\tpageInfo = {\n\t\t\t\tid: pageRef.getAttribute('data-index'),\n\t\t\t\tuuid: pageRef.getAttribute('data-uuid'),\n\t\t\t\tlayout: document.getElementById('page-templates').value,\n\t\t\t\tcurrent_title: pageRef.getAttribute('data-slug'),\n\t\t\t\tcontent: html,\n\t\t\t\ttitle: document.getElementById('post-title-text').value,\n\t\t\t\tcreated: document.getElementById('post-date').getAttribute('data-raw'),\n\t\t\t\tslug: new StringUtils().cleanString(\n\t\t\t\t\tdocument.getElementById('post-title-text').value\n\t\t\t\t),\n\t\t\t\ttags: document.getElementById('post-tags').value,\n\t\t\t\tmenu: document\n\t\t\t\t\t.getElementById('option-menu-pin')\n\t\t\t\t\t.getAttribute('data-active'),\n\t\t\t\tfeatured: document\n\t\t\t\t\t.getElementById('option-feature')\n\t\t\t\t\t.getAttribute('data-active'),\n\t\t\t\tpublished: document\n\t\t\t\t\t.getElementById('option-published')\n\t\t\t\t\t.getAttribute('data-active'),\n\t\t\t\tform_token: document.getElementById('form_token').value,\n\t\t\t\timageList: files.images,\n\t\t\t\tfileList: files.files\n\t\t\t};\n\n\t\t\tresolve(pageInfo);\n\t\t});\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","class StringUtils {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tcleanString(string) {\n\t\tvar clean = string\n\t\t\t.replace(/(^\\-+|[^a-zA-Z0-9\\/_| -]+|\\-+$)/g, '')\n\t\t\t.toLowerCase()\n\t\t\t.replace(/[\\/_| -]+/g, '-');\n\t\treturn clean;\n\t}\n\n\tdecodeHTML(string, quote_style) {\n\t\tvar optTemp = 0,\n\t\t\ti = 0,\n\t\t\tnoquotes = false;\n\t\tif (typeof quote_style === 'undefined') {\n\t\t\tquote_style = 2;\n\t\t}\n\t\tstring = string\n\t\t\t.toString()\n\t\t\t.replace(/</g, '<')\n\t\t\t.replace(/>/g, '>');\n\t\tvar OPTS = {\n\t\t\tENT_NOQUOTES: 0,\n\t\t\tENT_HTML_QUOTE_SINGLE: 1,\n\t\t\tENT_HTML_QUOTE_DOUBLE: 2,\n\t\t\tENT_COMPAT: 2,\n\t\t\tENT_QUOTES: 3,\n\t\t\tENT_IGNORE: 4\n\t\t};\n\t\tif (quote_style === 0) {\n\t\t\tnoquotes = true;\n\t\t}\n\t\tif (typeof quote_style !== 'number') {\n\t\t\t// Allow for a single string or an array of string flags\n\t\t\tquote_style = [].concat(quote_style);\n\t\t\tfor (i = 0; i < quote_style.length; i++) {\n\t\t\t\t// Resolve string input to bitwise e.g. 'PATHINFO_EXTENSION' becomes 4\n\t\t\t\tif (OPTS[quote_style[i]] === 0) {\n\t\t\t\t\tnoquotes = true;\n\t\t\t\t} else if (OPTS[quote_style[i]]) {\n\t\t\t\t\toptTemp = optTemp | OPTS[quote_style[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t\tquote_style = optTemp;\n\t\t}\n\t\tif (quote_style & OPTS.ENT_HTML_QUOTE_SINGLE) {\n\t\t\tstring = string.replace(/�*39;/g, \"'\"); // PHP doesn't currently escape if more than one 0, but it should\n\t\t\t// string = string.replace(/'|�*27;/g, \"'\"); // This would also be useful here, but not a part of PHP\n\t\t}\n\t\tif (!noquotes) {\n\t\t\tstring = string.replace(/"/g, '\"');\n\t\t}\n\t\t// Put this in last place to avoid escape being double-decoded\n\t\tstring = string.replace(/&/g, '&');\n\t\treturn string;\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\nexport default StringUtils;\n","export const EDITOR_DELETE = 'editorDelete';\nexport const EDITOR_UPLOAD_POST_IMAGE = 'editorUploadImage';\nexport const EDITOR_SAVE = 'editorSave';\nexport const EDITOR_UPDATE = 'editorUpdate';\n\nclass EditorEvent {\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\nexport default new EditorEvent();\n","import * as DataEvent from '../events/DataEvent';\nimport EventEmitter from '../events/EventEmitter';\nimport * as EditorEvent from '../events/EditorEvent';\nimport Prism from 'prismjs';\nclass TextEditor extends EventEmitter {\n\t/**\n\t * Text Editor UI Component\n\t * @constructor\n\t * @param {object} textEditor - Text area that will edit text\n\t * @param {number} scrollLimit - YPos where editor position will become fixed\n\t */\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor(textEditor, scrollLimit) {\n\t\tsuper();\n\n\t\tdocument\n\t\t\t.querySelector('[role=\"text-editor-control\"]')\n\t\t\t.addEventListener('scroll', e => {\n\t\t\t\tconsole.log('HERE');\n\t\t\t});\n\n\t\tdocument.body.addEventListener('scroll', e => {\n\t\t\tvar fixLimit = scrollLimit;\n\t\t\tconsole.log('POSITION', document.body.scrollTop + ' : ' + fixLimit);\n\t\t\tif (document.body.scrollTop + 5 >= fixLimit) {\n\t\t\t\tdocument\n\t\t\t\t\t.querySelector('[role=\"text-editor-control\"]')\n\t\t\t\t\t.classList.add('control-freeze');\n\t\t\t} else {\n\t\t\t\tdocument\n\t\t\t\t\t.querySelector('[role=\"text-editor-control\"]')\n\t\t\t\t\t.classList.remove('control-freeze');\n\t\t\t}\n\t\t});\n\t\tdocument.getElementById('edit').addEventListener('input', e => {\n\t\t\tlet result_element = document.querySelector('#highlight-content');\n\t\t\tthis.textEditor = textEditor;\n\n\t\t\t// Update code\n\t\t\tlet text = e.target.value;\n\t\t\tresult_element.innerHTML = text\n\t\t\t\t.replace(new RegExp('&', 'g'), '&')\n\t\t\t\t.replace(new RegExp('<', 'g'), '<');\n\t\t\tlet editorHeight = document.getElementById('highlight').offsetHeight;\n\t\t\tdocument.querySelector('[role=\"edit-post-wrapper\"]').style.height =\n\t\t\t\teditorHeight + 'px';\n\t\t\te.target.style.height = editorHeight + 30 + 'px'; //TODO: yeah, it's ugly but it works for now, fix soon\n\t\t\t// Syntax Highlight\n\t\t\tPrism.highlightElement(result_element);\n\t\t});\n\t\tdocument.getElementById('edit').addEventListener('scroll', e => {\n\t\t\t/* Scroll result to scroll coords of event - sync with textarea */\n\t\t\tlet result_element = document.querySelector('#highlight');\n\t\t\t// Get and set x and y\n\t\t\tresult_element.scrollTop = e.scrollTop;\n\t\t\tresult_element.scrollLeft = e.scrollLeft;\n\t\t});\n\t\tdocument.getElementById('edit').dispatchEvent(new Event('input'));\n\t\tthis.setInputs();\n\n\t\t//freeze editor formatting so it doesn't scroll off screen\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tsetInputs() {\n\t\tvar editorButtons = document.querySelectorAll('.editor-button');\n\t\tfor (var i = 0, length = editorButtons.length; i < length; i++) {\n\t\t\teditorButtons[i].addEventListener(\n\t\t\t\t'click',\n\t\t\t\te => this.handleEditorOption(e),\n\t\t\t\tfalse\n\t\t\t);\n\t\t}\n\t}\n\tnotify(type, data) {\n\t\tswitch (type) {\n\t\t\tcase DataEvent.PAGE_UPDATED:\n\t\t\t\tdocument.getElementById('submit-update').classList.add('icon-hide');\n\t\t\t\tdocument.getElementById('submit-good').classList.remove('icon-hide');\n\t\t\t\tdocument.getElementById('edit-update').classList.remove('submit-start');\n\t\t\t\tdocument.getElementById('edit-update').classList.add('submit-cool');\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tdocument\n\t\t\t\t\t\t.getElementById('submit-update')\n\t\t\t\t\t\t.classList.remove('icon-hide');\n\t\t\t\t\tdocument.getElementById('submit-good').classList.add('icon-hide');\n\t\t\t\t\tdocument.getElementById('edit-update').classList.add('submit-start');\n\t\t\t\t\tdocument\n\t\t\t\t\t\t.getElementById('edit-update')\n\t\t\t\t\t\t.classList.remove('submit-cool');\n\t\t\t\t}, 2000);\n\t\t\t\tbreak;\n\t\t\tcase DataEvent.PAGE_ADDED:\n\t\t\t\t// do nothing\n\t\t\t\tbreak;\n\t\t\tcase EditorEvent.EDITOR_UPLOAD_POST_IMAGE: {\n\t\t\t\tlet len = this.textEditor.value.length;\n\t\t\t\tlet start = this.textEditor.selectionStart;\n\t\t\t\tlet end = this.textEditor.selectionEnd;\n\t\t\t\tlet insert = '![image alt text](' + data + ')';\n\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tdocument.getElementById('edit').dispatchEvent(new Event('input'));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleEditorOption(e) {\n\t\te.preventDefault();\n\t\tlet len = this.textEditor.value.length;\n\t\tlet start = this.textEditor.selectionStart;\n\t\tlet end = this.textEditor.selectionEnd;\n\n\t\tlet selectedText = this.textEditor.value.substring(start, end);\n\t\tlet insert = '';\n\t\tswitch (e.target.id) {\n\t\t\tcase 'edit-bold':\n\t\t\t\tinsert = '**' + selectedText + '**';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\n\t\t\t\tbreak;\n\t\t\tcase 'edit-italic':\n\t\t\t\tinsert = '*' + selectedText + '*';\n\t\t\t\t//console.log(this.textEditor);\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-strikethrough':\n\t\t\t\tinsert = '~~' + selectedText + '~~';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-header1':\n\t\t\t\tinsert = '# ' + selectedText + '\\n';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-header2':\n\t\t\t\tinsert = '## ' + selectedText + '\\n';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-header3':\n\t\t\t\tinsert = '### ' + selectedText + '\\n';\n\t\t\t\tthis.textEditor.value =\n\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\tinsert +\n\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-link':\n\t\t\t\t{\n\t\t\t\t\tlet url = prompt(\"Let's get that url, boss\");\n\t\t\t\t\tlet link = url.toLowerCase();\n\t\t\t\t\tinsert = '[' + selectedText + '](' + link + ')';\n\t\t\t\t\tthis.textEditor.value =\n\t\t\t\t\t\tthis.textEditor.value.substring(0, start) +\n\t\t\t\t\t\tinsert +\n\t\t\t\t\t\tthis.textEditor.value.substring(end, len);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'edit-image':\n\t\t\t\t//this.caretPos = position(this.textEditor).pos;\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_UPLOAD_POST_IMAGE);\n\t\t\t\tbreak;\n\t\t\tcase 'submit-save':\n\t\t\tcase 'edit-save':\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_SAVE);\n\t\t\t\tbreak;\n\t\t\tcase 'submit-update':\n\t\t\tcase 'edit-update':\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_UPDATE);\n\t\t\t\tbreak;\n\t\t\tcase 'edit-delete':\n\t\t\t\tthis.emitEvent(EditorEvent.EDITOR_DELETE);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t//do stuff\n\t\t\t\tbreak;\n\t\t}\n\t\tdocument.getElementById('edit').dispatchEvent(new Event('input'));\n\t}\n}\nexport default TextEditor;\n","class EventEmitter {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.listeners = new Map();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\taddListener(label, callback) {\n\t\tthis.listeners.has(label) || this.listeners.set(label, []);\n\t\tthis.listeners.get(label).push(callback);\n\t}\n\n\tremoveListener(label, callback) {\n\t\tvar isFunction = function(obj) {\n\t\t\treturn typeof obj == 'function' || false;\n\t\t};\n\n\t\tvar listeners = this.listeners.get(label),\n\t\t\tindex;\n\n\t\tif (listeners && listeners.length) {\n\t\t\tindex = listeners.reduce((i, listener, index) => {\n\t\t\t\treturn isFunction(listener) && listener === callback ? (i = index) : i;\n\t\t\t}, -1);\n\n\t\t\tif (index > -1) {\n\t\t\t\tlisteners.splice(index, 1);\n\t\t\t\tthis.listeners.set(label, listeners);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\temitEvent(label, ...args) {\n\t\tvar listeners = this.listeners.get(label);\n\t\tif (listeners && listeners.length) {\n\t\t\tlisteners.forEach(listener => {\n\t\t\t\tlistener(...args);\n\t\t\t});\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\nexport default EventEmitter;\n","/// <reference lib=\"WebWorker\"/>\n\nvar _self = (typeof window !== 'undefined')\n\t? window // if in browser\n\t: (\n\t\t(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)\n\t\t\t? self // if in worker\n\t\t\t: {} // if in node js\n\t);\n\n/**\n * Prism: Lightweight, robust, elegant syntax highlighting\n *\n * @license MIT <https://opensource.org/licenses/MIT>\n * @author Lea Verou <https://lea.verou.me>\n * @namespace\n * @public\n */\nvar Prism = (function (_self) {\n\n\t// Private helper vars\n\tvar lang = /(?:^|\\s)lang(?:uage)?-([\\w-]+)(?=\\s|$)/i;\n\tvar uniqueId = 0;\n\n\t// The grammar object for plaintext\n\tvar plainTextGrammar = {};\n\n\n\tvar _ = {\n\t\t/**\n\t\t * By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the\n\t\t * current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load\n\t\t * additional languages or plugins yourself.\n\t\t *\n\t\t * By setting this value to `true`, Prism will not automatically highlight all code elements on the page.\n\t\t *\n\t\t * You obviously have to change this value before the automatic highlighting started. To do this, you can add an\n\t\t * empty Prism object into the global scope before loading the Prism script like this:\n\t\t *\n\t\t * ```js\n\t\t * window.Prism = window.Prism || {};\n\t\t * Prism.manual = true;\n\t\t * // add a new <script> to load Prism's script\n\t\t * ```\n\t\t *\n\t\t * @default false\n\t\t * @type {boolean}\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\tmanual: _self.Prism && _self.Prism.manual,\n\t\t/**\n\t\t * By default, if Prism is in a web worker, it assumes that it is in a worker it created itself, so it uses\n\t\t * `addEventListener` to communicate with its parent instance. However, if you're using Prism manually in your\n\t\t * own worker, you don't want it to do this.\n\t\t *\n\t\t * By setting this value to `true`, Prism will not add its own listeners to the worker.\n\t\t *\n\t\t * You obviously have to change this value before Prism executes. To do this, you can add an\n\t\t * empty Prism object into the global scope before loading the Prism script like this:\n\t\t *\n\t\t * ```js\n\t\t * window.Prism = window.Prism || {};\n\t\t * Prism.disableWorkerMessageHandler = true;\n\t\t * // Load Prism's script\n\t\t * ```\n\t\t *\n\t\t * @default false\n\t\t * @type {boolean}\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\tdisableWorkerMessageHandler: _self.Prism && _self.Prism.disableWorkerMessageHandler,\n\n\t\t/**\n\t\t * A namespace for utility methods.\n\t\t *\n\t\t * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may\n\t\t * change or disappear at any time.\n\t\t *\n\t\t * @namespace\n\t\t * @memberof Prism\n\t\t */\n\t\tutil: {\n\t\t\tencode: function encode(tokens) {\n\t\t\t\tif (tokens instanceof Token) {\n\t\t\t\t\treturn new Token(tokens.type, encode(tokens.content), tokens.alias);\n\t\t\t\t} else if (Array.isArray(tokens)) {\n\t\t\t\t\treturn tokens.map(encode);\n\t\t\t\t} else {\n\t\t\t\t\treturn tokens.replace(/&/g, '&').replace(/</g, '<').replace(/\\u00a0/g, ' ');\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns the name of the type of the given value.\n\t\t\t *\n\t\t\t * @param {any} o\n\t\t\t * @returns {string}\n\t\t\t * @example\n\t\t\t * type(null) === 'Null'\n\t\t\t * type(undefined) === 'Undefined'\n\t\t\t * type(123) === 'Number'\n\t\t\t * type('foo') === 'String'\n\t\t\t * type(true) === 'Boolean'\n\t\t\t * type([1, 2]) === 'Array'\n\t\t\t * type({}) === 'Object'\n\t\t\t * type(String) === 'Function'\n\t\t\t * type(/abc+/) === 'RegExp'\n\t\t\t */\n\t\t\ttype: function (o) {\n\t\t\t\treturn Object.prototype.toString.call(o).slice(8, -1);\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns a unique number for the given object. Later calls will still return the same number.\n\t\t\t *\n\t\t\t * @param {Object} obj\n\t\t\t * @returns {number}\n\t\t\t */\n\t\t\tobjId: function (obj) {\n\t\t\t\tif (!obj['__id']) {\n\t\t\t\t\tObject.defineProperty(obj, '__id', { value: ++uniqueId });\n\t\t\t\t}\n\t\t\t\treturn obj['__id'];\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Creates a deep clone of the given object.\n\t\t\t *\n\t\t\t * The main intended use of this function is to clone language definitions.\n\t\t\t *\n\t\t\t * @param {T} o\n\t\t\t * @param {Record<number, any>} [visited]\n\t\t\t * @returns {T}\n\t\t\t * @template T\n\t\t\t */\n\t\t\tclone: function deepClone(o, visited) {\n\t\t\t\tvisited = visited || {};\n\n\t\t\t\tvar clone; var id;\n\t\t\t\tswitch (_.util.type(o)) {\n\t\t\t\t\tcase 'Object':\n\t\t\t\t\t\tid = _.util.objId(o);\n\t\t\t\t\t\tif (visited[id]) {\n\t\t\t\t\t\t\treturn visited[id];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tclone = /** @type {Record<string, any>} */ ({});\n\t\t\t\t\t\tvisited[id] = clone;\n\n\t\t\t\t\t\tfor (var key in o) {\n\t\t\t\t\t\t\tif (o.hasOwnProperty(key)) {\n\t\t\t\t\t\t\t\tclone[key] = deepClone(o[key], visited);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn /** @type {any} */ (clone);\n\n\t\t\t\t\tcase 'Array':\n\t\t\t\t\t\tid = _.util.objId(o);\n\t\t\t\t\t\tif (visited[id]) {\n\t\t\t\t\t\t\treturn visited[id];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tclone = [];\n\t\t\t\t\t\tvisited[id] = clone;\n\n\t\t\t\t\t\t(/** @type {Array} */(/** @type {any} */(o))).forEach(function (v, i) {\n\t\t\t\t\t\t\tclone[i] = deepClone(v, visited);\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\treturn /** @type {any} */ (clone);\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\treturn o;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.\n\t\t\t *\n\t\t\t * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.\n\t\t\t *\n\t\t\t * @param {Element} element\n\t\t\t * @returns {string}\n\t\t\t */\n\t\t\tgetLanguage: function (element) {\n\t\t\t\twhile (element) {\n\t\t\t\t\tvar m = lang.exec(element.className);\n\t\t\t\t\tif (m) {\n\t\t\t\t\t\treturn m[1].toLowerCase();\n\t\t\t\t\t}\n\t\t\t\t\telement = element.parentElement;\n\t\t\t\t}\n\t\t\t\treturn 'none';\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Sets the Prism `language-xxxx` class of the given element.\n\t\t\t *\n\t\t\t * @param {Element} element\n\t\t\t * @param {string} language\n\t\t\t * @returns {void}\n\t\t\t */\n\t\t\tsetLanguage: function (element, language) {\n\t\t\t\t// remove all `language-xxxx` classes\n\t\t\t\t// (this might leave behind a leading space)\n\t\t\t\telement.className = element.className.replace(RegExp(lang, 'gi'), '');\n\n\t\t\t\t// add the new `language-xxxx` class\n\t\t\t\t// (using `classList` will automatically clean up spaces for us)\n\t\t\t\telement.classList.add('language-' + language);\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns the script element that is currently executing.\n\t\t\t *\n\t\t\t * This does __not__ work for line script element.\n\t\t\t *\n\t\t\t * @returns {HTMLScriptElement | null}\n\t\t\t */\n\t\t\tcurrentScript: function () {\n\t\t\t\tif (typeof document === 'undefined') {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tif ('currentScript' in document && 1 < 2 /* hack to trip TS' flow analysis */) {\n\t\t\t\t\treturn /** @type {any} */ (document.currentScript);\n\t\t\t\t}\n\n\t\t\t\t// IE11 workaround\n\t\t\t\t// we'll get the src of the current script by parsing IE11's error stack trace\n\t\t\t\t// this will not work for inline scripts\n\n\t\t\t\ttry {\n\t\t\t\t\tthrow new Error();\n\t\t\t\t} catch (err) {\n\t\t\t\t\t// Get file src url from stack. Specifically works with the format of stack traces in IE.\n\t\t\t\t\t// A stack will look like this:\n\t\t\t\t\t//\n\t\t\t\t\t// Error\n\t\t\t\t\t// at _.util.currentScript (http://localhost/components/prism-core.js:119:5)\n\t\t\t\t\t// at Global code (http://localhost/components/prism-core.js:606:1)\n\n\t\t\t\t\tvar src = (/at [^(\\r\\n]*\\((.*):[^:]+:[^:]+\\)$/i.exec(err.stack) || [])[1];\n\t\t\t\t\tif (src) {\n\t\t\t\t\t\tvar scripts = document.getElementsByTagName('script');\n\t\t\t\t\t\tfor (var i in scripts) {\n\t\t\t\t\t\t\tif (scripts[i].src == src) {\n\t\t\t\t\t\t\t\treturn scripts[i];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Returns whether a given class is active for `element`.\n\t\t\t *\n\t\t\t * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated\n\t\t\t * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the\n\t\t\t * given class is just the given class with a `no-` prefix.\n\t\t\t *\n\t\t\t * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is\n\t\t\t * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its\n\t\t\t * ancestors have the given class or the negated version of it, then the default activation will be returned.\n\t\t\t *\n\t\t\t * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated\n\t\t\t * version of it, the class is considered active.\n\t\t\t *\n\t\t\t * @param {Element} element\n\t\t\t * @param {string} className\n\t\t\t * @param {boolean} [defaultActivation=false]\n\t\t\t * @returns {boolean}\n\t\t\t */\n\t\t\tisActive: function (element, className, defaultActivation) {\n\t\t\t\tvar no = 'no-' + className;\n\n\t\t\t\twhile (element) {\n\t\t\t\t\tvar classList = element.classList;\n\t\t\t\t\tif (classList.contains(className)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tif (classList.contains(no)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\telement = element.parentElement;\n\t\t\t\t}\n\t\t\t\treturn !!defaultActivation;\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.\n\t\t *\n\t\t * @namespace\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\tlanguages: {\n\t\t\t/**\n\t\t\t * The grammar for plain, unformatted text.\n\t\t\t */\n\t\t\tplain: plainTextGrammar,\n\t\t\tplaintext: plainTextGrammar,\n\t\t\ttext: plainTextGrammar,\n\t\t\ttxt: plainTextGrammar,\n\n\t\t\t/**\n\t\t\t * Creates a deep copy of the language with the given id and appends the given tokens.\n\t\t\t *\n\t\t\t * If a token in `redef` also appears in the copied language, then the existing token in the copied language\n\t\t\t * will be overwritten at its original position.\n\t\t\t *\n\t\t\t * ## Best practices\n\t\t\t *\n\t\t\t * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)\n\t\t\t * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to\n\t\t\t * understand the language definition because, normally, the order of tokens matters in Prism grammars.\n\t\t\t *\n\t\t\t * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.\n\t\t\t * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.\n\t\t\t *\n\t\t\t * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.\n\t\t\t * @param {Grammar} redef The new tokens to append.\n\t\t\t * @returns {Grammar} The new language created.\n\t\t\t * @public\n\t\t\t * @example\n\t\t\t * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {\n\t\t\t * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token\n\t\t\t * // at its original position\n\t\t\t * 'comment': { ... },\n\t\t\t * // CSS doesn't have a 'color' token, so this token will be appended\n\t\t\t * 'color': /\\b(?:red|green|blue)\\b/\n\t\t\t * });\n\t\t\t */\n\t\t\textend: function (id, redef) {\n\t\t\t\tvar lang = _.util.clone(_.languages[id]);\n\n\t\t\t\tfor (var key in redef) {\n\t\t\t\t\tlang[key] = redef[key];\n\t\t\t\t}\n\n\t\t\t\treturn lang;\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Inserts tokens _before_ another token in a language definition or any other grammar.\n\t\t\t *\n\t\t\t * ## Usage\n\t\t\t *\n\t\t\t * This helper method makes it easy to modify existing languages. For example, the CSS language definition\n\t\t\t * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded\n\t\t\t * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the\n\t\t\t * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do\n\t\t\t * this:\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * Prism.languages.markup.style = {\n\t\t\t * // token\n\t\t\t * };\n\t\t\t * ```\n\t\t\t *\n\t\t\t * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens\n\t\t\t * before existing tokens. For the CSS example above, you would use it like this:\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * Prism.languages.insertBefore('markup', 'cdata', {\n\t\t\t * 'style': {\n\t\t\t * // token\n\t\t\t * }\n\t\t\t * });\n\t\t\t * ```\n\t\t\t *\n\t\t\t * ## Special cases\n\t\t\t *\n\t\t\t * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar\n\t\t\t * will be ignored.\n\t\t\t *\n\t\t\t * This behavior can be used to insert tokens after `before`:\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * Prism.languages.insertBefore('markup', 'comment', {\n\t\t\t * 'comment': Prism.languages.markup.comment,\n\t\t\t * // tokens after 'comment'\n\t\t\t * });\n\t\t\t * ```\n\t\t\t *\n\t\t\t * ## Limitations\n\t\t\t *\n\t\t\t * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object\n\t\t\t * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave\n\t\t\t * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily\n\t\t\t * deleting properties which is necessary to insert at arbitrary positions.\n\t\t\t *\n\t\t\t * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.\n\t\t\t * Instead, it will create a new object and replace all references to the target object with the new one. This\n\t\t\t * can be done without temporarily deleting properties, so the iteration order is well-defined.\n\t\t\t *\n\t\t\t * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if\n\t\t\t * you hold the target object in a variable, then the value of the variable will not change.\n\t\t\t *\n\t\t\t * ```js\n\t\t\t * var oldMarkup = Prism.languages.markup;\n\t\t\t * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });\n\t\t\t *\n\t\t\t * assert(oldMarkup !== Prism.languages.markup);\n\t\t\t * assert(newMarkup === Prism.languages.markup);\n\t\t\t * ```\n\t\t\t *\n\t\t\t * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the\n\t\t\t * object to be modified.\n\t\t\t * @param {string} before The key to insert before.\n\t\t\t * @param {Grammar} insert An object containing the key-value pairs to be inserted.\n\t\t\t * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the\n\t\t\t * object to be modified.\n\t\t\t *\n\t\t\t * Defaults to `Prism.languages`.\n\t\t\t * @returns {Grammar} The new grammar object.\n\t\t\t * @public\n\t\t\t */\n\t\t\tinsertBefore: function (inside, before, insert, root) {\n\t\t\t\troot = root || /** @type {any} */ (_.languages);\n\t\t\t\tvar grammar = root[inside];\n\t\t\t\t/** @type {Grammar} */\n\t\t\t\tvar ret = {};\n\n\t\t\t\tfor (var token in grammar) {\n\t\t\t\t\tif (grammar.hasOwnProperty(token)) {\n\n\t\t\t\t\t\tif (token == before) {\n\t\t\t\t\t\t\tfor (var newToken in insert) {\n\t\t\t\t\t\t\t\tif (insert.hasOwnProperty(newToken)) {\n\t\t\t\t\t\t\t\t\tret[newToken] = insert[newToken];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Do not insert token which also occur in insert. See #1525\n\t\t\t\t\t\tif (!insert.hasOwnProperty(token)) {\n\t\t\t\t\t\t\tret[token] = grammar[token];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tvar old = root[inside];\n\t\t\t\troot[inside] = ret;\n\n\t\t\t\t// Update references in other language definitions\n\t\t\t\t_.languages.DFS(_.languages, function (key, value) {\n\t\t\t\t\tif (value === old && key != inside) {\n\t\t\t\t\t\tthis[key] = ret;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\treturn ret;\n\t\t\t},\n\n\t\t\t// Traverse a language definition with Depth First Search\n\t\t\tDFS: function DFS(o, callback, type, visited) {\n\t\t\t\tvisited = visited || {};\n\n\t\t\t\tvar objId = _.util.objId;\n\n\t\t\t\tfor (var i in o) {\n\t\t\t\t\tif (o.hasOwnProperty(i)) {\n\t\t\t\t\t\tcallback.call(o, i, o[i], type || i);\n\n\t\t\t\t\t\tvar property = o[i];\n\t\t\t\t\t\tvar propertyType = _.util.type(property);\n\n\t\t\t\t\t\tif (propertyType === 'Object' && !visited[objId(property)]) {\n\t\t\t\t\t\t\tvisited[objId(property)] = true;\n\t\t\t\t\t\t\tDFS(property, callback, null, visited);\n\t\t\t\t\t\t} else if (propertyType === 'Array' && !visited[objId(property)]) {\n\t\t\t\t\t\t\tvisited[objId(property)] = true;\n\t\t\t\t\t\t\tDFS(property, callback, i, visited);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tplugins: {},\n\n\t\t/**\n\t\t * This is the most high-level function in Prism’s API.\n\t\t * It fetches all the elements that have a `.language-xxxx` class and then calls {@link Prism.highlightElement} on\n\t\t * each one of them.\n\t\t *\n\t\t * This is equivalent to `Prism.highlightAllUnder(document, async, callback)`.\n\t\t *\n\t\t * @param {boolean} [async=false] Same as in {@link Prism.highlightAllUnder}.\n\t\t * @param {HighlightCallback} [callback] Same as in {@link Prism.highlightAllUnder}.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thighlightAll: function (async, callback) {\n\t\t\t_.highlightAllUnder(document, async, callback);\n\t\t},\n\n\t\t/**\n\t\t * Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls\n\t\t * {@link Prism.highlightElement} on each one of them.\n\t\t *\n\t\t * The following hooks will be run:\n\t\t * 1. `before-highlightall`\n\t\t * 2. `before-all-elements-highlight`\n\t\t * 3. All hooks of {@link Prism.highlightElement} for each element.\n\t\t *\n\t\t * @param {ParentNode} container The root element, whose descendants that have a `.language-xxxx` class will be highlighted.\n\t\t * @param {boolean} [async=false] Whether each element is to be highlighted asynchronously using Web Workers.\n\t\t * @param {HighlightCallback} [callback] An optional callback to be invoked on each element after its highlighting is done.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thighlightAllUnder: function (container, async, callback) {\n\t\t\tvar env = {\n\t\t\t\tcallback: callback,\n\t\t\t\tcontainer: container,\n\t\t\t\tselector: 'code[class*=\"language-\"], [class*=\"language-\"] code, code[class*=\"lang-\"], [class*=\"lang-\"] code'\n\t\t\t};\n\n\t\t\t_.hooks.run('before-highlightall', env);\n\n\t\t\tenv.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector));\n\n\t\t\t_.hooks.run('before-all-elements-highlight', env);\n\n\t\t\tfor (var i = 0, element; (element = env.elements[i++]);) {\n\t\t\t\t_.highlightElement(element, async === true, env.callback);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Highlights the code inside a single element.\n\t\t *\n\t\t * The following hooks will be run:\n\t\t * 1. `before-sanity-check`\n\t\t * 2. `before-highlight`\n\t\t * 3. All hooks of {@link Prism.highlight}. These hooks will be run by an asynchronous worker if `async` is `true`.\n\t\t * 4. `before-insert`\n\t\t * 5. `after-highlight`\n\t\t * 6. `complete`\n\t\t *\n\t\t * Some the above hooks will be skipped if the element doesn't contain any text or there is no grammar loaded for\n\t\t * the element's language.\n\t\t *\n\t\t * @param {Element} element The element containing the code.\n\t\t * It must have a class of `language-xxxx` to be processed, where `xxxx` is a valid language identifier.\n\t\t * @param {boolean} [async=false] Whether the element is to be highlighted asynchronously using Web Workers\n\t\t * to improve performance and avoid blocking the UI when highlighting very large chunks of code. This option is\n\t\t * [disabled by default](https://prismjs.com/faq.html#why-is-asynchronous-highlighting-disabled-by-default).\n\t\t *\n\t\t * Note: All language definitions required to highlight the code must be included in the main `prism.js` file for\n\t\t * asynchronous highlighting to work. You can build your own bundle on the\n\t\t * [Download page](https://prismjs.com/download.html).\n\t\t * @param {HighlightCallback} [callback] An optional callback to be invoked after the highlighting is done.\n\t\t * Mostly useful when `async` is `true`, since in that case, the highlighting is done asynchronously.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thighlightElement: function (element, async, callback) {\n\t\t\t// Find language\n\t\t\tvar language = _.util.getLanguage(element);\n\t\t\tvar grammar = _.languages[language];\n\n\t\t\t// Set language on the element, if not present\n\t\t\t_.util.setLanguage(element, language);\n\n\t\t\t// Set language on the parent, for styling\n\t\t\tvar parent = element.parentElement;\n\t\t\tif (parent && parent.nodeName.toLowerCase() === 'pre') {\n\t\t\t\t_.util.setLanguage(parent, language);\n\t\t\t}\n\n\t\t\tvar code = element.textContent;\n\n\t\t\tvar env = {\n\t\t\t\telement: element,\n\t\t\t\tlanguage: language,\n\t\t\t\tgrammar: grammar,\n\t\t\t\tcode: code\n\t\t\t};\n\n\t\t\tfunction insertHighlightedCode(highlightedCode) {\n\t\t\t\tenv.highlightedCode = highlightedCode;\n\n\t\t\t\t_.hooks.run('before-insert', env);\n\n\t\t\t\tenv.element.innerHTML = env.highlightedCode;\n\n\t\t\t\t_.hooks.run('after-highlight', env);\n\t\t\t\t_.hooks.run('complete', env);\n\t\t\t\tcallback && callback.call(env.element);\n\t\t\t}\n\n\t\t\t_.hooks.run('before-sanity-check', env);\n\n\t\t\t// plugins may change/add the parent/element\n\t\t\tparent = env.element.parentElement;\n\t\t\tif (parent && parent.nodeName.toLowerCase() === 'pre' && !parent.hasAttribute('tabindex')) {\n\t\t\t\tparent.setAttribute('tabindex', '0');\n\t\t\t}\n\n\t\t\tif (!env.code) {\n\t\t\t\t_.hooks.run('complete', env);\n\t\t\t\tcallback && callback.call(env.element);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t_.hooks.run('before-highlight', env);\n\n\t\t\tif (!env.grammar) {\n\t\t\t\tinsertHighlightedCode(_.util.encode(env.code));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (async && _self.Worker) {\n\t\t\t\tvar worker = new Worker(_.filename);\n\n\t\t\t\tworker.onmessage = function (evt) {\n\t\t\t\t\tinsertHighlightedCode(evt.data);\n\t\t\t\t};\n\n\t\t\t\tworker.postMessage(JSON.stringify({\n\t\t\t\t\tlanguage: env.language,\n\t\t\t\t\tcode: env.code,\n\t\t\t\t\timmediateClose: true\n\t\t\t\t}));\n\t\t\t} else {\n\t\t\t\tinsertHighlightedCode(_.highlight(env.code, env.grammar, env.language));\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Low-level function, only use if you know what you’re doing. It accepts a string of text as input\n\t\t * and the language definitions to use, and returns a string with the HTML produced.\n\t\t *\n\t\t * The following hooks will be run:\n\t\t * 1. `before-tokenize`\n\t\t * 2. `after-tokenize`\n\t\t * 3. `wrap`: On each {@link Token}.\n\t\t *\n\t\t * @param {string} text A string with the code to be highlighted.\n\t\t * @param {Grammar} grammar An object containing the tokens to use.\n\t\t *\n\t\t * Usually a language definition like `Prism.languages.markup`.\n\t\t * @param {string} language The name of the language definition passed to `grammar`.\n\t\t * @returns {string} The highlighted HTML.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t * @example\n\t\t * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');\n\t\t */\n\t\thighlight: function (text, grammar, language) {\n\t\t\tvar env = {\n\t\t\t\tcode: text,\n\t\t\t\tgrammar: grammar,\n\t\t\t\tlanguage: language\n\t\t\t};\n\t\t\t_.hooks.run('before-tokenize', env);\n\t\t\tif (!env.grammar) {\n\t\t\t\tthrow new Error('The language \"' + env.language + '\" has no grammar.');\n\t\t\t}\n\t\t\tenv.tokens = _.tokenize(env.code, env.grammar);\n\t\t\t_.hooks.run('after-tokenize', env);\n\t\t\treturn Token.stringify(_.util.encode(env.tokens), env.language);\n\t\t},\n\n\t\t/**\n\t\t * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input\n\t\t * and the language definitions to use, and returns an array with the tokenized code.\n\t\t *\n\t\t * When the language definition includes nested tokens, the function is called recursively on each of these tokens.\n\t\t *\n\t\t * This method could be useful in other contexts as well, as a very crude parser.\n\t\t *\n\t\t * @param {string} text A string with the code to be highlighted.\n\t\t * @param {Grammar} grammar An object containing the tokens to use.\n\t\t *\n\t\t * Usually a language definition like `Prism.languages.markup`.\n\t\t * @returns {TokenStream} An array of strings and tokens, a token stream.\n\t\t * @memberof Prism\n\t\t * @public\n\t\t * @example\n\t\t * let code = `var foo = 0;`;\n\t\t * let tokens = Prism.tokenize(code, Prism.languages.javascript);\n\t\t * tokens.forEach(token => {\n\t\t * if (token instanceof Prism.Token && token.type === 'number') {\n\t\t * console.log(`Found numeric literal: ${token.content}`);\n\t\t * }\n\t\t * });\n\t\t */\n\t\ttokenize: function (text, grammar) {\n\t\t\tvar rest = grammar.rest;\n\t\t\tif (rest) {\n\t\t\t\tfor (var token in rest) {\n\t\t\t\t\tgrammar[token] = rest[token];\n\t\t\t\t}\n\n\t\t\t\tdelete grammar.rest;\n\t\t\t}\n\n\t\t\tvar tokenList = new LinkedList();\n\t\t\taddAfter(tokenList, tokenList.head, text);\n\n\t\t\tmatchGrammar(text, tokenList, grammar, tokenList.head, 0);\n\n\t\t\treturn toArray(tokenList);\n\t\t},\n\n\t\t/**\n\t\t * @namespace\n\t\t * @memberof Prism\n\t\t * @public\n\t\t */\n\t\thooks: {\n\t\t\tall: {},\n\n\t\t\t/**\n\t\t\t * Adds the given callback to the list of callbacks for the given hook.\n\t\t\t *\n\t\t\t * The callback will be invoked when the hook it is registered for is run.\n\t\t\t * Hooks are usually directly run by a highlight function but you can also run hooks yourself.\n\t\t\t *\n\t\t\t * One callback function can be registered to multiple hooks and the same hook multiple times.\n\t\t\t *\n\t\t\t * @param {string} name The name of the hook.\n\t\t\t * @param {HookCallback} callback The callback function which is given environment variables.\n\t\t\t * @public\n\t\t\t */\n\t\t\tadd: function (name, callback) {\n\t\t\t\tvar hooks = _.hooks.all;\n\n\t\t\t\thooks[name] = hooks[name] || [];\n\n\t\t\t\thooks[name].push(callback);\n\t\t\t},\n\n\t\t\t/**\n\t\t\t * Runs a hook invoking all registered callbacks with the given environment variables.\n\t\t\t *\n\t\t\t * Callbacks will be invoked synchronously and in the order in which they were registered.\n\t\t\t *\n\t\t\t * @param {string} name The name of the hook.\n\t\t\t * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.\n\t\t\t * @public\n\t\t\t */\n\t\t\trun: function (name, env) {\n\t\t\t\tvar callbacks = _.hooks.all[name];\n\n\t\t\t\tif (!callbacks || !callbacks.length) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tfor (var i = 0, callback; (callback = callbacks[i++]);) {\n\t\t\t\t\tcallback(env);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tToken: Token\n\t};\n\t_self.Prism = _;\n\n\n\t// Typescript note:\n\t// The following can be used to import the Token type in JSDoc:\n\t//\n\t// @typedef {InstanceType<import(\"./prism-core\")[\"Token\"]>} Token\n\n\t/**\n\t * Creates a new token.\n\t *\n\t * @param {string} type See {@link Token#type type}\n\t * @param {string | TokenStream} content See {@link Token#content content}\n\t * @param {string|string[]} [alias] The alias(es) of the token.\n\t * @param {string} [matchedStr=\"\"] A copy of the full string this token was created from.\n\t * @class\n\t * @global\n\t * @public\n\t */\n\tfunction Token(type, content, alias, matchedStr) {\n\t\t/**\n\t\t * The type of the token.\n\t\t *\n\t\t * This is usually the key of a pattern in a {@link Grammar}.\n\t\t *\n\t\t * @type {string}\n\t\t * @see GrammarToken\n\t\t * @public\n\t\t */\n\t\tthis.type = type;\n\t\t/**\n\t\t * The strings or tokens contained by this token.\n\t\t *\n\t\t * This will be a token stream if the pattern matched also defined an `inside` grammar.\n\t\t *\n\t\t * @type {string | TokenStream}\n\t\t * @public\n\t\t */\n\t\tthis.content = content;\n\t\t/**\n\t\t * The alias(es) of the token.\n\t\t *\n\t\t * @type {string|string[]}\n\t\t * @see GrammarToken\n\t\t * @public\n\t\t */\n\t\tthis.alias = alias;\n\t\t// Copy of the full string this token was created from\n\t\tthis.length = (matchedStr || '').length | 0;\n\t}\n\n\t/**\n\t * A token stream is an array of strings and {@link Token Token} objects.\n\t *\n\t * Token streams have to fulfill a few properties that are assumed by most functions (mostly internal ones) that process\n\t * them.\n\t *\n\t * 1. No adjacent strings.\n\t * 2. No empty strings.\n\t *\n\t * The only exception here is the token stream that only contains the empty string and nothing else.\n\t *\n\t * @typedef {Array<string | Token>} TokenStream\n\t * @global\n\t * @public\n\t */\n\n\t/**\n\t * Converts the given token or token stream to an HTML representation.\n\t *\n\t * The following hooks will be run:\n\t * 1. `wrap`: On each {@link Token}.\n\t *\n\t * @param {string | Token | TokenStream} o The token or token stream to be converted.\n\t * @param {string} language The name of current language.\n\t * @returns {string} The HTML representation of the token or token stream.\n\t * @memberof Token\n\t * @static\n\t */\n\tToken.stringify = function stringify(o, language) {\n\t\tif (typeof o == 'string') {\n\t\t\treturn o;\n\t\t}\n\t\tif (Array.isArray(o)) {\n\t\t\tvar s = '';\n\t\t\to.forEach(function (e) {\n\t\t\t\ts += stringify(e, language);\n\t\t\t});\n\t\t\treturn s;\n\t\t}\n\n\t\tvar env = {\n\t\t\ttype: o.type,\n\t\t\tcontent: stringify(o.content, language),\n\t\t\ttag: 'span',\n\t\t\tclasses: ['token', o.type],\n\t\t\tattributes: {},\n\t\t\tlanguage: language\n\t\t};\n\n\t\tvar aliases = o.alias;\n\t\tif (aliases) {\n\t\t\tif (Array.isArray(aliases)) {\n\t\t\t\tArray.prototype.push.apply(env.classes, aliases);\n\t\t\t} else {\n\t\t\t\tenv.classes.push(aliases);\n\t\t\t}\n\t\t}\n\n\t\t_.hooks.run('wrap', env);\n\n\t\tvar attributes = '';\n\t\tfor (var name in env.attributes) {\n\t\t\tattributes += ' ' + name + '=\"' + (env.attributes[name] || '').replace(/\"/g, '"') + '\"';\n\t\t}\n\n\t\treturn '<' + env.tag + ' class=\"' + env.classes.join(' ') + '\"' + attributes + '>' + env.content + '</' + env.tag + '>';\n\t};\n\n\t/**\n\t * @param {RegExp} pattern\n\t * @param {number} pos\n\t * @param {string} text\n\t * @param {boolean} lookbehind\n\t * @returns {RegExpExecArray | null}\n\t */\n\tfunction matchPattern(pattern, pos, text, lookbehind) {\n\t\tpattern.lastIndex = pos;\n\t\tvar match = pattern.exec(text);\n\t\tif (match && lookbehind && match[1]) {\n\t\t\t// change the match to remove the text matched by the Prism lookbehind group\n\t\t\tvar lookbehindLength = match[1].length;\n\t\t\tmatch.index += lookbehindLength;\n\t\t\tmatch[0] = match[0].slice(lookbehindLength);\n\t\t}\n\t\treturn match;\n\t}\n\n\t/**\n\t * @param {string} text\n\t * @param {LinkedList<string | Token>} tokenList\n\t * @param {any} grammar\n\t * @param {LinkedListNode<string | Token>} startNode\n\t * @param {number} startPos\n\t * @param {RematchOptions} [rematch]\n\t * @returns {void}\n\t * @private\n\t *\n\t * @typedef RematchOptions\n\t * @property {string} cause\n\t * @property {number} reach\n\t */\n\tfunction matchGrammar(text, tokenList, grammar, startNode, startPos, rematch) {\n\t\tfor (var token in grammar) {\n\t\t\tif (!grammar.hasOwnProperty(token) || !grammar[token]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tvar patterns = grammar[token];\n\t\t\tpatterns = Array.isArray(patterns) ? patterns : [patterns];\n\n\t\t\tfor (var j = 0; j < patterns.length; ++j) {\n\t\t\t\tif (rematch && rematch.cause == token + ',' + j) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tvar patternObj = patterns[j];\n\t\t\t\tvar inside = patternObj.inside;\n\t\t\t\tvar lookbehind = !!patternObj.lookbehind;\n\t\t\t\tvar greedy = !!patternObj.greedy;\n\t\t\t\tvar alias = patternObj.alias;\n\n\t\t\t\tif (greedy && !patternObj.pattern.global) {\n\t\t\t\t\t// Without the global flag, lastIndex won't work\n\t\t\t\t\tvar flags = patternObj.pattern.toString().match(/[imsuy]*$/)[0];\n\t\t\t\t\tpatternObj.pattern = RegExp(patternObj.pattern.source, flags + 'g');\n\t\t\t\t}\n\n\t\t\t\t/** @type {RegExp} */\n\t\t\t\tvar pattern = patternObj.pattern || patternObj;\n\n\t\t\t\tfor ( // iterate the token list and keep track of the current token/string position\n\t\t\t\t\tvar currentNode = startNode.next, pos = startPos;\n\t\t\t\t\tcurrentNode !== tokenList.tail;\n\t\t\t\t\tpos += currentNode.value.length, currentNode = currentNode.next\n\t\t\t\t) {\n\n\t\t\t\t\tif (rematch && pos >= rematch.reach) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar str = currentNode.value;\n\n\t\t\t\t\tif (tokenList.length > text.length) {\n\t\t\t\t\t\t// Something went terribly wrong, ABORT, ABORT!\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (str instanceof Token) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar removeCount = 1; // this is the to parameter of removeBetween\n\t\t\t\t\tvar match;\n\n\t\t\t\t\tif (greedy) {\n\t\t\t\t\t\tmatch = matchPattern(pattern, pos, text, lookbehind);\n\t\t\t\t\t\tif (!match || match.index >= text.length) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar from = match.index;\n\t\t\t\t\t\tvar to = match.index + match[0].length;\n\t\t\t\t\t\tvar p = pos;\n\n\t\t\t\t\t\t// find the node that contains the match\n\t\t\t\t\t\tp += currentNode.value.length;\n\t\t\t\t\t\twhile (from >= p) {\n\t\t\t\t\t\t\tcurrentNode = currentNode.next;\n\t\t\t\t\t\t\tp += currentNode.value.length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// adjust pos (and p)\n\t\t\t\t\t\tp -= currentNode.value.length;\n\t\t\t\t\t\tpos = p;\n\n\t\t\t\t\t\t// the current node is a Token, then the match starts inside another Token, which is invalid\n\t\t\t\t\t\tif (currentNode.value instanceof Token) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// find the last node which is affected by this match\n\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\tvar k = currentNode;\n\t\t\t\t\t\t\tk !== tokenList.tail && (p < to || typeof k.value === 'string');\n\t\t\t\t\t\t\tk = k.next\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tremoveCount++;\n\t\t\t\t\t\t\tp += k.value.length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tremoveCount--;\n\n\t\t\t\t\t\t// replace with the new match\n\t\t\t\t\t\tstr = text.slice(pos, p);\n\t\t\t\t\t\tmatch.index -= pos;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmatch = matchPattern(pattern, 0, str, lookbehind);\n\t\t\t\t\t\tif (!match) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// eslint-disable-next-line no-redeclare\n\t\t\t\t\tvar from = match.index;\n\t\t\t\t\tvar matchStr = match[0];\n\t\t\t\t\tvar before = str.slice(0, from);\n\t\t\t\t\tvar after = str.slice(from + matchStr.length);\n\n\t\t\t\t\tvar reach = pos + str.length;\n\t\t\t\t\tif (rematch && reach > rematch.reach) {\n\t\t\t\t\t\trematch.reach = reach;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar removeFrom = currentNode.prev;\n\n\t\t\t\t\tif (before) {\n\t\t\t\t\t\tremoveFrom = addAfter(tokenList, removeFrom, before);\n\t\t\t\t\t\tpos += before.length;\n\t\t\t\t\t}\n\n\t\t\t\t\tremoveRange(tokenList, removeFrom, removeCount);\n\n\t\t\t\t\tvar wrapped = new Token(token, inside ? _.tokenize(matchStr, inside) : matchStr, alias, matchStr);\n\t\t\t\t\tcurrentNode = addAfter(tokenList, removeFrom, wrapped);\n\n\t\t\t\t\tif (after) {\n\t\t\t\t\t\taddAfter(tokenList, currentNode, after);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (removeCount > 1) {\n\t\t\t\t\t\t// at least one Token object was removed, so we have to do some rematching\n\t\t\t\t\t\t// this can only happen if the current pattern is greedy\n\n\t\t\t\t\t\t/** @type {RematchOptions} */\n\t\t\t\t\t\tvar nestedRematch = {\n\t\t\t\t\t\t\tcause: token + ',' + j,\n\t\t\t\t\t\t\treach: reach\n\t\t\t\t\t\t};\n\t\t\t\t\t\tmatchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch);\n\n\t\t\t\t\t\t// the reach might have been extended because of the rematching\n\t\t\t\t\t\tif (rematch && nestedRematch.reach > rematch.reach) {\n\t\t\t\t\t\t\trematch.reach = nestedRematch.reach;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @typedef LinkedListNode\n\t * @property {T} value\n\t * @property {LinkedListNode<T> | null} prev The previous node.\n\t * @property {LinkedListNode<T> | null} next The next node.\n\t * @template T\n\t * @private\n\t */\n\n\t/**\n\t * @template T\n\t * @private\n\t */\n\tfunction LinkedList() {\n\t\t/** @type {LinkedListNode<T>} */\n\t\tvar head = { value: null, prev: null, next: null };\n\t\t/** @type {LinkedListNode<T>} */\n\t\tvar tail = { value: null, prev: head, next: null };\n\t\thead.next = tail;\n\n\t\t/** @type {LinkedListNode<T>} */\n\t\tthis.head = head;\n\t\t/** @type {LinkedListNode<T>} */\n\t\tthis.tail = tail;\n\t\tthis.length = 0;\n\t}\n\n\t/**\n\t * Adds a new node with the given value to the list.\n\t *\n\t * @param {LinkedList<T>} list\n\t * @param {LinkedListNode<T>} node\n\t * @param {T} value\n\t * @returns {LinkedListNode<T>} The added node.\n\t * @template T\n\t */\n\tfunction addAfter(list, node, value) {\n\t\t// assumes that node != list.tail && values.length >= 0\n\t\tvar next = node.next;\n\n\t\tvar newNode = { value: value, prev: node, next: next };\n\t\tnode.next = newNode;\n\t\tnext.prev = newNode;\n\t\tlist.length++;\n\n\t\treturn newNode;\n\t}\n\t/**\n\t * Removes `count` nodes after the given node. The given node will not be removed.\n\t *\n\t * @param {LinkedList<T>} list\n\t * @param {LinkedListNode<T>} node\n\t * @param {number} count\n\t * @template T\n\t */\n\tfunction removeRange(list, node, count) {\n\t\tvar next = node.next;\n\t\tfor (var i = 0; i < count && next !== list.tail; i++) {\n\t\t\tnext = next.next;\n\t\t}\n\t\tnode.next = next;\n\t\tnext.prev = node;\n\t\tlist.length -= i;\n\t}\n\t/**\n\t * @param {LinkedList<T>} list\n\t * @returns {T[]}\n\t * @template T\n\t */\n\tfunction toArray(list) {\n\t\tvar array = [];\n\t\tvar node = list.head.next;\n\t\twhile (node !== list.tail) {\n\t\t\tarray.push(node.value);\n\t\t\tnode = node.next;\n\t\t}\n\t\treturn array;\n\t}\n\n\n\tif (!_self.document) {\n\t\tif (!_self.addEventListener) {\n\t\t\t// in Node.js\n\t\t\treturn _;\n\t\t}\n\n\t\tif (!_.disableWorkerMessageHandler) {\n\t\t\t// In worker\n\t\t\t_self.addEventListener('message', function (evt) {\n\t\t\t\tvar message = JSON.parse(evt.data);\n\t\t\t\tvar lang = message.language;\n\t\t\t\tvar code = message.code;\n\t\t\t\tvar immediateClose = message.immediateClose;\n\n\t\t\t\t_self.postMessage(_.highlight(code, _.languages[lang], lang));\n\t\t\t\tif (immediateClose) {\n\t\t\t\t\t_self.close();\n\t\t\t\t}\n\t\t\t}, false);\n\t\t}\n\n\t\treturn _;\n\t}\n\n\t// Get current script and highlight\n\tvar script = _.util.currentScript();\n\n\tif (script) {\n\t\t_.filename = script.src;\n\n\t\tif (script.hasAttribute('data-manual')) {\n\t\t\t_.manual = true;\n\t\t}\n\t}\n\n\tfunction highlightAutomaticallyCallback() {\n\t\tif (!_.manual) {\n\t\t\t_.highlightAll();\n\t\t}\n\t}\n\n\tif (!_.manual) {\n\t\t// If the document state is \"loading\", then we'll use DOMContentLoaded.\n\t\t// If the document state is \"interactive\" and the prism.js script is deferred, then we'll also use the\n\t\t// DOMContentLoaded event because there might be some plugins or languages which have also been deferred and they\n\t\t// might take longer one animation frame to execute which can create a race condition where only some plugins have\n\t\t// been loaded when Prism.highlightAll() is executed, depending on how fast resources are loaded.\n\t\t// See https://github.com/PrismJS/prism/issues/2102\n\t\tvar readyState = document.readyState;\n\t\tif (readyState === 'loading' || readyState === 'interactive' && script && script.defer) {\n\t\t\tdocument.addEventListener('DOMContentLoaded', highlightAutomaticallyCallback);\n\t\t} else {\n\t\t\tif (window.requestAnimationFrame) {\n\t\t\t\twindow.requestAnimationFrame(highlightAutomaticallyCallback);\n\t\t\t} else {\n\t\t\t\twindow.setTimeout(highlightAutomaticallyCallback, 16);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn _;\n\n}(_self));\n\nif (typeof module !== 'undefined' && module.exports) {\n\tmodule.exports = Prism;\n}\n\n// hack for components to work correctly in node.js\nif (typeof global !== 'undefined') {\n\tglobal.Prism = Prism;\n}\n\n// some additional documentation/types\n\n/**\n * The expansion of a simple `RegExp` literal to support additional properties.\n *\n * @typedef GrammarToken\n * @property {RegExp} pattern The regular expression of the token.\n * @property {boolean} [lookbehind=false] If `true`, then the first capturing group of `pattern` will (effectively)\n * behave as a lookbehind group meaning that the captured text will not be part of the matched text of the new token.\n * @property {boolean} [greedy=false] Whether the token is greedy.\n * @property {string|string[]} [alias] An optional alias or list of aliases.\n * @property {Grammar} [inside] The nested grammar of this token.\n *\n * The `inside` grammar will be used to tokenize the text value of each token of this kind.\n *\n * This can be used to make nested and even recursive language definitions.\n *\n * Note: This can cause infinite recursion. Be careful when you embed different languages or even the same language into\n * each another.\n * @global\n * @public\n */\n\n/**\n * @typedef Grammar\n * @type {Object<string, RegExp | GrammarToken | Array<RegExp | GrammarToken>>}\n * @property {Grammar} [rest] An optional grammar object that will be appended to this grammar.\n * @global\n * @public\n */\n\n/**\n * A function which will invoked after an element was successfully highlighted.\n *\n * @callback HighlightCallback\n * @param {Element} element The element successfully highlighted.\n * @returns {void}\n * @global\n * @public\n */\n\n/**\n * @callback HookCallback\n * @param {Object<string, any>} env The environment variables of the hook.\n * @returns {void}\n * @global\n * @public\n */\n","Prism.languages.markup = {\n\t'comment': {\n\t\tpattern: /<!--(?:(?!<!--)[\\s\\S])*?-->/,\n\t\tgreedy: true\n\t},\n\t'prolog': {\n\t\tpattern: /<\\?[\\s\\S]+?\\?>/,\n\t\tgreedy: true\n\t},\n\t'doctype': {\n\t\t// https://www.w3.org/TR/xml/#NT-doctypedecl\n\t\tpattern: /<!DOCTYPE(?:[^>\"'[\\]]|\"[^\"]*\"|'[^']*')+(?:\\[(?:[^<\"'\\]]|\"[^\"]*\"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\\]\\s*)?>/i,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'internal-subset': {\n\t\t\t\tpattern: /(^[^\\[]*\\[)[\\s\\S]+(?=\\]>$)/,\n\t\t\t\tlookbehind: true,\n\t\t\t\tgreedy: true,\n\t\t\t\tinside: null // see below\n\t\t\t},\n\t\t\t'string': {\n\t\t\t\tpattern: /\"[^\"]*\"|'[^']*'/,\n\t\t\t\tgreedy: true\n\t\t\t},\n\t\t\t'punctuation': /^<!|>$|[[\\]]/,\n\t\t\t'doctype-tag': /^DOCTYPE/i,\n\t\t\t'name': /[^\\s<>'\"]+/\n\t\t}\n\t},\n\t'cdata': {\n\t\tpattern: /<!\\[CDATA\\[[\\s\\S]*?\\]\\]>/i,\n\t\tgreedy: true\n\t},\n\t'tag': {\n\t\tpattern: /<\\/?(?!\\d)[^\\s>\\/=$<%]+(?:\\s(?:\\s*[^\\s>\\/=]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))|(?=[\\s/>])))+)?\\s*\\/?>/,\n\t\tgreedy: true,\n\t\tinside: {\n\t\t\t'tag': {\n\t\t\t\tpattern: /^<\\/?[^\\s>\\/]+/,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': /^<\\/?/,\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t},\n\t\t\t'special-attr': [],\n\t\t\t'attr-value': {\n\t\t\t\tpattern: /=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+)/,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpattern: /^=/,\n\t\t\t\t\t\t\talias: 'attr-equals'\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpattern: /^(\\s*)[\"']|[\"']$/,\n\t\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t},\n\t\t\t'punctuation': /\\/?>/,\n\t\t\t'attr-name': {\n\t\t\t\tpattern: /[^\\s>\\/]+/,\n\t\t\t\tinside: {\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t},\n\t'entity': [\n\t\t{\n\t\t\tpattern: /&[\\da-z]{1,8};/i,\n\t\t\talias: 'named-entity'\n\t\t},\n\t\t/&#x?[\\da-f]{1,8};/i\n\t]\n};\n\nPrism.languages.markup['tag'].inside['attr-value'].inside['entity'] =\n\tPrism.languages.markup['entity'];\nPrism.languages.markup['doctype'].inside['internal-subset'].inside = Prism.languages.markup;\n\n// Plugin to make entity title show the real entity, idea by Roman Komarov\nPrism.hooks.add('wrap', function (env) {\n\n\tif (env.type === 'entity') {\n\t\tenv.attributes['title'] = env.content.replace(/&/, '&');\n\t}\n});\n\nObject.defineProperty(Prism.languages.markup.tag, 'addInlined', {\n\t/**\n\t * Adds an inlined language to markup.\n\t *\n\t * An example of an inlined language is CSS with `<style>` tags.\n\t *\n\t * @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as\n\t * case insensitive.\n\t * @param {string} lang The language key.\n\t * @example\n\t * addInlined('style', 'css');\n\t */\n\tvalue: function addInlined(tagName, lang) {\n\t\tvar includedCdataInside = {};\n\t\tincludedCdataInside['language-' + lang] = {\n\t\t\tpattern: /(^<!\\[CDATA\\[)[\\s\\S]+?(?=\\]\\]>$)/i,\n\t\t\tlookbehind: true,\n\t\t\tinside: Prism.languages[lang]\n\t\t};\n\t\tincludedCdataInside['cdata'] = /^<!\\[CDATA\\[|\\]\\]>$/i;\n\n\t\tvar inside = {\n\t\t\t'included-cdata': {\n\t\t\t\tpattern: /<!\\[CDATA\\[[\\s\\S]*?\\]\\]>/i,\n\t\t\t\tinside: includedCdataInside\n\t\t\t}\n\t\t};\n\t\tinside['language-' + lang] = {\n\t\t\tpattern: /[\\s\\S]+/,\n\t\t\tinside: Prism.languages[lang]\n\t\t};\n\n\t\tvar def = {};\n\t\tdef[tagName] = {\n\t\t\tpattern: RegExp(/(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)/.source.replace(/__/g, function () { return tagName; }), 'i'),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: inside\n\t\t};\n\n\t\tPrism.languages.insertBefore('markup', 'cdata', def);\n\t}\n});\nObject.defineProperty(Prism.languages.markup.tag, 'addAttribute', {\n\t/**\n\t * Adds an pattern to highlight languages embedded in HTML attributes.\n\t *\n\t * An example of an inlined language is CSS with `style` attributes.\n\t *\n\t * @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as\n\t * case insensitive.\n\t * @param {string} lang The language key.\n\t * @example\n\t * addAttribute('style', 'css');\n\t */\n\tvalue: function (attrName, lang) {\n\t\tPrism.languages.markup.tag.inside['special-attr'].push({\n\t\t\tpattern: RegExp(\n\t\t\t\t/(^|[\"'\\s])/.source + '(?:' + attrName + ')' + /\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))/.source,\n\t\t\t\t'i'\n\t\t\t),\n\t\t\tlookbehind: true,\n\t\t\tinside: {\n\t\t\t\t'attr-name': /^[^\\s=]+/,\n\t\t\t\t'attr-value': {\n\t\t\t\t\tpattern: /=[\\s\\S]+/,\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'value': {\n\t\t\t\t\t\t\tpattern: /(^=\\s*([\"']|(?![\"'])))\\S[\\s\\S]*(?=\\2$)/,\n\t\t\t\t\t\t\tlookbehind: true,\n\t\t\t\t\t\t\talias: [lang, 'language-' + lang],\n\t\t\t\t\t\t\tinside: Prism.languages[lang]\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'punctuation': [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpattern: /^=/,\n\t\t\t\t\t\t\t\talias: 'attr-equals'\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t/\"|'/\n\t\t\t\t\t\t]\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n});\n\nPrism.languages.html = Prism.languages.markup;\nPrism.languages.mathml = Prism.languages.markup;\nPrism.languages.svg = Prism.languages.markup;\n\nPrism.languages.xml = Prism.languages.extend('markup', {});\nPrism.languages.ssml = Prism.languages.xml;\nPrism.languages.atom = Prism.languages.xml;\nPrism.languages.rss = Prism.languages.xml;\n","(function (Prism) {\n\n\t// Allow only one line break\n\tvar inner = /(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))/.source;\n\n\t/**\n\t * This function is intended for the creation of the bold or italic pattern.\n\t *\n\t * This also adds a lookbehind group to the given pattern to ensure that the pattern is not backslash-escaped.\n\t *\n\t * _Note:_ Keep in mind that this adds a capturing group.\n\t *\n\t * @param {string} pattern\n\t * @returns {RegExp}\n\t */\n\tfunction createInline(pattern) {\n\t\tpattern = pattern.replace(/<inner>/g, function () { return inner; });\n\t\treturn RegExp(/((?:^|[^\\\\])(?:\\\\{2})*)/.source + '(?:' + pattern + ')');\n\t}\n\n\n\tvar tableCell = /(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+/.source;\n\tvar tableRow = /\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))/.source.replace(/__/g, function () { return tableCell; });\n\tvar tableLine = /\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)/.source;\n\n\n\tPrism.languages.markdown = Prism.languages.extend('markup', {});\n\tPrism.languages.insertBefore('markdown', 'prolog', {\n\t\t'front-matter-block': {\n\t\t\tpattern: /(^(?:\\s*[\\r\\n])?)---(?!.)[\\s\\S]*?[\\r\\n]---(?!.)/,\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'punctuation': /^---|---$/,\n\t\t\t\t'front-matter': {\n\t\t\t\t\tpattern: /\\S+(?:\\s+\\S+)*/,\n\t\t\t\t\talias: ['yaml', 'language-yaml'],\n\t\t\t\t\tinside: Prism.languages.yaml\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t'blockquote': {\n\t\t\t// > ...\n\t\t\tpattern: /^>(?:[\\t ]*>)*/m,\n\t\t\talias: 'punctuation'\n\t\t},\n\t\t'table': {\n\t\t\tpattern: RegExp('^' + tableRow + tableLine + '(?:' + tableRow + ')*', 'm'),\n\t\t\tinside: {\n\t\t\t\t'table-data-rows': {\n\t\t\t\t\tpattern: RegExp('^(' + tableRow + tableLine + ')(?:' + tableRow + ')*$'),\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'table-data': {\n\t\t\t\t\t\t\tpattern: RegExp(tableCell),\n\t\t\t\t\t\t\tinside: Prism.languages.markdown\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'punctuation': /\\|/\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t'table-line': {\n\t\t\t\t\tpattern: RegExp('^(' + tableRow + ')' + tableLine + '$'),\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'punctuation': /\\||:?-{3,}:?/\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t'table-header-row': {\n\t\t\t\t\tpattern: RegExp('^' + tableRow + '$'),\n\t\t\t\t\tinside: {\n\t\t\t\t\t\t'table-header': {\n\t\t\t\t\t\t\tpattern: RegExp(tableCell),\n\t\t\t\t\t\t\talias: 'important',\n\t\t\t\t\t\t\tinside: Prism.languages.markdown\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'punctuation': /\\|/\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t'code': [\n\t\t\t{\n\t\t\t\t// Prefixed by 4 spaces or 1 tab and preceded by an empty line\n\t\t\t\tpattern: /((?:^|\\n)[ \\t]*\\n|(?:^|\\r\\n?)[ \\t]*\\r\\n?)(?: {4}|\\t).+(?:(?:\\n|\\r\\n?)(?: {4}|\\t).+)*/,\n\t\t\t\tlookbehind: true,\n\t\t\t\talias: 'keyword'\n\t\t\t},\n\t\t\t{\n\t\t\t\t// ```optional language\n\t\t\t\t// code block\n\t\t\t\t// ```\n\t\t\t\tpattern: /^```[\\s\\S]*?^```$/m,\n\t\t\t\tgreedy: true,\n\t\t\t\tinside: {\n\t\t\t\t\t'code-block': {\n\t\t\t\t\t\tpattern: /^(```.*(?:\\n|\\r\\n?))[\\s\\S]+?(?=(?:\\n|\\r\\n?)^```$)/m,\n\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t},\n\t\t\t\t\t'code-language': {\n\t\t\t\t\t\tpattern: /^(```).+/,\n\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t},\n\t\t\t\t\t'punctuation': /```/\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\t'title': [\n\t\t\t{\n\t\t\t\t// title 1\n\t\t\t\t// =======\n\n\t\t\t\t// title 2\n\t\t\t\t// -------\n\t\t\t\tpattern: /\\S.*(?:\\n|\\r\\n?)(?:==+|--+)(?=[ \\t]*$)/m,\n\t\t\t\talias: 'important',\n\t\t\t\tinside: {\n\t\t\t\t\tpunctuation: /==+$|--+$/\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\t// # title 1\n\t\t\t\t// ###### title 6\n\t\t\t\tpattern: /(^\\s*)#.+/m,\n\t\t\t\tlookbehind: true,\n\t\t\t\talias: 'important',\n\t\t\t\tinside: {\n\t\t\t\t\tpunctuation: /^#+|#+$/\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\t'hr': {\n\t\t\t// ***\n\t\t\t// ---\n\t\t\t// * * *\n\t\t\t// -----------\n\t\t\tpattern: /(^\\s*)([*-])(?:[\\t ]*\\2){2,}(?=\\s*$)/m,\n\t\t\tlookbehind: true,\n\t\t\talias: 'punctuation'\n\t\t},\n\t\t'list': {\n\t\t\t// * item\n\t\t\t// + item\n\t\t\t// - item\n\t\t\t// 1. item\n\t\t\tpattern: /(^\\s*)(?:[*+-]|\\d+\\.)(?=[\\t ].)/m,\n\t\t\tlookbehind: true,\n\t\t\talias: 'punctuation'\n\t\t},\n\t\t'url-reference': {\n\t\t\t// [id]: http://example.com \"Optional title\"\n\t\t\t// [id]: http://example.com 'Optional title'\n\t\t\t// [id]: http://example.com (Optional title)\n\t\t\t// [id]: <http://example.com> \"Optional title\"\n\t\t\tpattern: /!?\\[[^\\]]+\\]:[\\t ]+(?:\\S+|<(?:\\\\.|[^>\\\\])+>)(?:[\\t ]+(?:\"(?:\\\\.|[^\"\\\\])*\"|'(?:\\\\.|[^'\\\\])*'|\\((?:\\\\.|[^)\\\\])*\\)))?/,\n\t\t\tinside: {\n\t\t\t\t'variable': {\n\t\t\t\t\tpattern: /^(!?\\[)[^\\]]+/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t},\n\t\t\t\t'string': /(?:\"(?:\\\\.|[^\"\\\\])*\"|'(?:\\\\.|[^'\\\\])*'|\\((?:\\\\.|[^)\\\\])*\\))$/,\n\t\t\t\t'punctuation': /^[\\[\\]!:]|[<>]/\n\t\t\t},\n\t\t\talias: 'url'\n\t\t},\n\t\t'bold': {\n\t\t\t// **strong**\n\t\t\t// __strong__\n\n\t\t\t// allow one nested instance of italic text using the same delimiter\n\t\t\tpattern: createInline(/\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^..)[\\s\\S]+(?=..$)/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'punctuation': /\\*\\*|__/\n\t\t\t}\n\t\t},\n\t\t'italic': {\n\t\t\t// *em*\n\t\t\t// _em_\n\n\t\t\t// allow one nested instance of bold text using the same delimiter\n\t\t\tpattern: createInline(/\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^.)[\\s\\S]+(?=.$)/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'punctuation': /[*_]/\n\t\t\t}\n\t\t},\n\t\t'strike': {\n\t\t\t// ~~strike through~~\n\t\t\t// ~strike~\n\t\t\t// eslint-disable-next-line regexp/strict\n\t\t\tpattern: createInline(/(~~?)(?:(?!~)<inner>)+\\2/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^~~?)[\\s\\S]+(?=\\1$)/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'punctuation': /~~?/\n\t\t\t}\n\t\t},\n\t\t'code-snippet': {\n\t\t\t// `code`\n\t\t\t// ``code``\n\t\t\tpattern: /(^|[^\\\\`])(?:``[^`\\r\\n]+(?:`[^`\\r\\n]+)*``(?!`)|`[^`\\r\\n]+`(?!`))/,\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\talias: ['code', 'keyword']\n\t\t},\n\t\t'url': {\n\t\t\t// [example](http://example.com \"Optional title\")\n\t\t\t// [example][id]\n\t\t\t// [example] [id]\n\t\t\tpattern: createInline(/!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+\"(?:\\\\.|[^\"\\\\])*\")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])/.source),\n\t\t\tlookbehind: true,\n\t\t\tgreedy: true,\n\t\t\tinside: {\n\t\t\t\t'operator': /^!/,\n\t\t\t\t'content': {\n\t\t\t\t\tpattern: /(^\\[)[^\\]]+(?=\\])/,\n\t\t\t\t\tlookbehind: true,\n\t\t\t\t\tinside: {} // see below\n\t\t\t\t},\n\t\t\t\t'variable': {\n\t\t\t\t\tpattern: /(^\\][ \\t]?\\[)[^\\]]+(?=\\]$)/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t},\n\t\t\t\t'url': {\n\t\t\t\t\tpattern: /(^\\]\\()[^\\s)]+/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t},\n\t\t\t\t'string': {\n\t\t\t\t\tpattern: /(^[ \\t]+)\"(?:\\\\.|[^\"\\\\])*\"(?=\\)$)/,\n\t\t\t\t\tlookbehind: true\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\t['url', 'bold', 'italic', 'strike'].forEach(function (token) {\n\t\t['url', 'bold', 'italic', 'strike', 'code-snippet'].forEach(function (inside) {\n\t\t\tif (token !== inside) {\n\t\t\t\tPrism.languages.markdown[token].inside.content.inside[inside] = Prism.languages.markdown[inside];\n\t\t\t}\n\t\t});\n\t});\n\n\tPrism.hooks.add('after-tokenize', function (env) {\n\t\tif (env.language !== 'markdown' && env.language !== 'md') {\n\t\t\treturn;\n\t\t}\n\n\t\tfunction walkTokens(tokens) {\n\t\t\tif (!tokens || typeof tokens === 'string') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor (var i = 0, l = tokens.length; i < l; i++) {\n\t\t\t\tvar token = tokens[i];\n\n\t\t\t\tif (token.type !== 'code') {\n\t\t\t\t\twalkTokens(token.content);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * Add the correct `language-xxxx` class to this code block. Keep in mind that the `code-language` token\n\t\t\t\t * is optional. But the grammar is defined so that there is only one case we have to handle:\n\t\t\t\t *\n\t\t\t\t * token.content = [\n\t\t\t\t * <span class=\"punctuation\">```</span>,\n\t\t\t\t * <span class=\"code-language\">xxxx</span>,\n\t\t\t\t * '\\n', // exactly one new lines (\\r or \\n or \\r\\n)\n\t\t\t\t * <span class=\"code-block\">...</span>,\n\t\t\t\t * '\\n', // exactly one new lines again\n\t\t\t\t * <span class=\"punctuation\">```</span>\n\t\t\t\t * ];\n\t\t\t\t */\n\n\t\t\t\tvar codeLang = token.content[1];\n\t\t\t\tvar codeBlock = token.content[3];\n\n\t\t\t\tif (codeLang && codeBlock &&\n\t\t\t\t\tcodeLang.type === 'code-language' && codeBlock.type === 'code-block' &&\n\t\t\t\t\ttypeof codeLang.content === 'string') {\n\n\t\t\t\t\t// this might be a language that Prism does not support\n\n\t\t\t\t\t// do some replacements to support C++, C#, and F#\n\t\t\t\t\tvar lang = codeLang.content.replace(/\\b#/g, 'sharp').replace(/\\b\\+\\+/g, 'pp');\n\t\t\t\t\t// only use the first word\n\t\t\t\t\tlang = (/[a-z][\\w-]*/i.exec(lang) || [''])[0].toLowerCase();\n\t\t\t\t\tvar alias = 'language-' + lang;\n\n\t\t\t\t\t// add alias\n\t\t\t\t\tif (!codeBlock.alias) {\n\t\t\t\t\t\tcodeBlock.alias = [alias];\n\t\t\t\t\t} else if (typeof codeBlock.alias === 'string') {\n\t\t\t\t\t\tcodeBlock.alias = [codeBlock.alias, alias];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcodeBlock.alias.push(alias);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\twalkTokens(env.tokens);\n\t});\n\n\tPrism.hooks.add('wrap', function (env) {\n\t\tif (env.type !== 'code-block') {\n\t\t\treturn;\n\t\t}\n\n\t\tvar codeLang = '';\n\t\tfor (var i = 0, l = env.classes.length; i < l; i++) {\n\t\t\tvar cls = env.classes[i];\n\t\t\tvar match = /language-(.+)/.exec(cls);\n\t\t\tif (match) {\n\t\t\t\tcodeLang = match[1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tvar grammar = Prism.languages[codeLang];\n\n\t\tif (!grammar) {\n\t\t\tif (codeLang && codeLang !== 'none' && Prism.plugins.autoloader) {\n\t\t\t\tvar id = 'md-' + new Date().valueOf() + '-' + Math.floor(Math.random() * 1e16);\n\t\t\t\tenv.attributes['id'] = id;\n\n\t\t\t\tPrism.plugins.autoloader.loadLanguages(codeLang, function () {\n\t\t\t\t\tvar ele = document.getElementById(id);\n\t\t\t\t\tif (ele) {\n\t\t\t\t\t\tele.innerHTML = Prism.highlight(ele.textContent, Prism.languages[codeLang], codeLang);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tenv.content = Prism.highlight(textContent(env.content), grammar, codeLang);\n\t\t}\n\t});\n\n\tvar tagPattern = RegExp(Prism.languages.markup.tag.pattern.source, 'gi');\n\n\t/**\n\t * A list of known entity names.\n\t *\n\t * This will always be incomplete to save space. The current list is the one used by lowdash's unescape function.\n\t *\n\t * @see {@link https://github.com/lodash/lodash/blob/2da024c3b4f9947a48517639de7560457cd4ec6c/unescape.js#L2}\n\t */\n\tvar KNOWN_ENTITY_NAMES = {\n\t\t'amp': '&',\n\t\t'lt': '<',\n\t\t'gt': '>',\n\t\t'quot': '\"',\n\t};\n\n\t// IE 11 doesn't support `String.fromCodePoint`\n\tvar fromCodePoint = String.fromCodePoint || String.fromCharCode;\n\n\t/**\n\t * Returns the text content of a given HTML source code string.\n\t *\n\t * @param {string} html\n\t * @returns {string}\n\t */\n\tfunction textContent(html) {\n\t\t// remove all tags\n\t\tvar text = html.replace(tagPattern, '');\n\n\t\t// decode known entities\n\t\ttext = text.replace(/&(\\w{1,8}|#x?[\\da-f]{1,8});/gi, function (m, code) {\n\t\t\tcode = code.toLowerCase();\n\n\t\t\tif (code[0] === '#') {\n\t\t\t\tvar value;\n\t\t\t\tif (code[1] === 'x') {\n\t\t\t\t\tvalue = parseInt(code.slice(2), 16);\n\t\t\t\t} else {\n\t\t\t\t\tvalue = Number(code.slice(1));\n\t\t\t\t}\n\n\t\t\t\treturn fromCodePoint(value);\n\t\t\t} else {\n\t\t\t\tvar known = KNOWN_ENTITY_NAMES[code];\n\t\t\t\tif (known) {\n\t\t\t\t\treturn known;\n\t\t\t\t}\n\n\t\t\t\t// unable to decode\n\t\t\t\treturn m;\n\t\t\t}\n\t\t});\n\n\t\treturn text;\n\t}\n\n\tPrism.languages.md = Prism.languages.markdown;\n\n}(Prism));\n","import anime from 'animejs/lib/anime.es.js';\nconst notifcation = document.querySelector('.notify-message');\nconst notify = document.getElementById('notify-message');\nconst responseText = document.querySelector('.response-text');\nconst notifyText = document.querySelector('.notify-text');\nconst notifyIcons = document.querySelector('.notify-icons');\n//const notifyProgress = document.getElementById('notify-progress');\nconst iconGood = document.querySelector('.notify-good');\nconst iconNotGood = document.querySelector('.notify-notgood');\nconst iconWorking = document.querySelector('.notify-working');\n\nexport default class Notfications {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\n\talert(text, status) {\n\t\ticonWorking.style.display = 'none';\n\t\ticonGood.style.display = 'none';\n\t\ticonNotGood.style.display = 'none';\n\n\t\tvar color = '';\n\t\tresponseText.innerHTML = text;\n\t\tif (status !== null) {\n\t\t\tif (status) {\n\t\t\t\tcolor = '#32cd32';\n\t\t\t\ticonWorking.style.display = 'none';\n\t\t\t\ticonGood.style.display = 'block';\n\t\t\t} else {\n\t\t\t\tcolor = '#F64747';\n\t\t\t\ticonWorking.style.display = 'none';\n\t\t\t\ticonNotGood.style.display = 'block';\n\t\t\t}\n\t\t} else {\n\t\t\tcolor = '#200317';\n\t\t\ticonWorking.style.display = 'block';\n\t\t}\n\n\t\tnew anime({\n\t\t\ttargets: document.querySelector('.top-nav'),\n\t\t\trotateX: '180deg',\n\t\t\teasing: 'easeOutQuint'\n\t\t});\n\n\t\tnew anime({\n\t\t\ttargets: document.querySelector('.notify'),\n\t\t\trotateX: '10deg',\n\t\t\teasing: 'easeOutQuint',\n\t\t\tcomplete: () => {\n\t\t\t\tnew anime({\n\t\t\t\t\ttargets: notifyIcons,\n\t\t\t\t\twidth: 39,\n\t\t\t\t\topacity: 1,\n\t\t\t\t\teasing: 'easeInQuint',\n\t\t\t\t\tduration: 300\n\t\t\t\t});\n\n\t\t\t\tnew anime({\n\t\t\t\t\ttargets: notifyText,\n\t\t\t\t\tbackgroundColor: color,\n\t\t\t\t\topacity: 1,\n\t\t\t\t\teasing: 'easeInOutQuad',\n\t\t\t\t\tduration: 400,\n\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\tif (status !== null) {\n\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\ttargets: notifyText,\n\t\t\t\t\t\t\t\t\tbackgroundColor: color,\n\t\t\t\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuad',\n\t\t\t\t\t\t\t\t\tduration: 400\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\ttargets: notifyIcons,\n\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\t\t\t\teasing: 'easeOutQuint',\n\t\t\t\t\t\t\t\t\tduration: 350\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tnew anime({\n\t\t\t\t\t\t\t\t\ttargets: document.querySelector('.top-nav'),\n\t\t\t\t\t\t\t\t\trotateX: '0deg',\n\t\t\t\t\t\t\t\t\teasing: 'easeOutQuint'\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\tnew anime({\n\t\t\t\t\t\t\t\t\ttargets: document.querySelector('.notify'),\n\t\t\t\t\t\t\t\t\trotateX: '180deg',\n\t\t\t\t\t\t\t\t\teasing: 'easeOutQuint'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 2500);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","/*\n * anime.js v3.2.1\n * (c) 2020 Julian Garnier\n * Released under the MIT license\n * animejs.com\n */\n\n// Defaults\n\nvar defaultInstanceSettings = {\n update: null,\n begin: null,\n loopBegin: null,\n changeBegin: null,\n change: null,\n changeComplete: null,\n loopComplete: null,\n complete: null,\n loop: 1,\n direction: 'normal',\n autoplay: true,\n timelineOffset: 0\n};\n\nvar defaultTweenSettings = {\n duration: 1000,\n delay: 0,\n endDelay: 0,\n easing: 'easeOutElastic(1, .5)',\n round: 0\n};\n\nvar validTransforms = ['translateX', 'translateY', 'translateZ', 'rotate', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'perspective', 'matrix', 'matrix3d'];\n\n// Caching\n\nvar cache = {\n CSS: {},\n springs: {}\n};\n\n// Utils\n\nfunction minMax(val, min, max) {\n return Math.min(Math.max(val, min), max);\n}\n\nfunction stringContains(str, text) {\n return str.indexOf(text) > -1;\n}\n\nfunction applyArguments(func, args) {\n return func.apply(null, args);\n}\n\nvar is = {\n arr: function (a) { return Array.isArray(a); },\n obj: function (a) { return stringContains(Object.prototype.toString.call(a), 'Object'); },\n pth: function (a) { return is.obj(a) && a.hasOwnProperty('totalLength'); },\n svg: function (a) { return a instanceof SVGElement; },\n inp: function (a) { return a instanceof HTMLInputElement; },\n dom: function (a) { return a.nodeType || is.svg(a); },\n str: function (a) { return typeof a === 'string'; },\n fnc: function (a) { return typeof a === 'function'; },\n und: function (a) { return typeof a === 'undefined'; },\n nil: function (a) { return is.und(a) || a === null; },\n hex: function (a) { return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a); },\n rgb: function (a) { return /^rgb/.test(a); },\n hsl: function (a) { return /^hsl/.test(a); },\n col: function (a) { return (is.hex(a) || is.rgb(a) || is.hsl(a)); },\n key: function (a) { return !defaultInstanceSettings.hasOwnProperty(a) && !defaultTweenSettings.hasOwnProperty(a) && a !== 'targets' && a !== 'keyframes'; },\n};\n\n// Easings\n\nfunction parseEasingParameters(string) {\n var match = /\\(([^)]+)\\)/.exec(string);\n return match ? match[1].split(',').map(function (p) { return parseFloat(p); }) : [];\n}\n\n// Spring solver inspired by Webkit Copyright © 2016 Apple Inc. All rights reserved. https://webkit.org/demos/spring/spring.js\n\nfunction spring(string, duration) {\n\n var params = parseEasingParameters(string);\n var mass = minMax(is.und(params[0]) ? 1 : params[0], .1, 100);\n var stiffness = minMax(is.und(params[1]) ? 100 : params[1], .1, 100);\n var damping = minMax(is.und(params[2]) ? 10 : params[2], .1, 100);\n var velocity = minMax(is.und(params[3]) ? 0 : params[3], .1, 100);\n var w0 = Math.sqrt(stiffness / mass);\n var zeta = damping / (2 * Math.sqrt(stiffness * mass));\n var wd = zeta < 1 ? w0 * Math.sqrt(1 - zeta * zeta) : 0;\n var a = 1;\n var b = zeta < 1 ? (zeta * w0 + -velocity) / wd : -velocity + w0;\n\n function solver(t) {\n var progress = duration ? (duration * t) / 1000 : t;\n if (zeta < 1) {\n progress = Math.exp(-progress * zeta * w0) * (a * Math.cos(wd * progress) + b * Math.sin(wd * progress));\n } else {\n progress = (a + b * progress) * Math.exp(-progress * w0);\n }\n if (t === 0 || t === 1) { return t; }\n return 1 - progress;\n }\n\n function getDuration() {\n var cached = cache.springs[string];\n if (cached) { return cached; }\n var frame = 1/6;\n var elapsed = 0;\n var rest = 0;\n while(true) {\n elapsed += frame;\n if (solver(elapsed) === 1) {\n rest++;\n if (rest >= 16) { break; }\n } else {\n rest = 0;\n }\n }\n var duration = elapsed * frame * 1000;\n cache.springs[string] = duration;\n return duration;\n }\n\n return duration ? solver : getDuration;\n\n}\n\n// Basic steps easing implementation https://developer.mozilla.org/fr/docs/Web/CSS/transition-timing-function\n\nfunction steps(steps) {\n if ( steps === void 0 ) steps = 10;\n\n return function (t) { return Math.ceil((minMax(t, 0.000001, 1)) * steps) * (1 / steps); };\n}\n\n// BezierEasing https://github.com/gre/bezier-easing\n\nvar bezier = (function () {\n\n var kSplineTableSize = 11;\n var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);\n\n function A(aA1, aA2) { return 1.0 - 3.0 * aA2 + 3.0 * aA1 }\n function B(aA1, aA2) { return 3.0 * aA2 - 6.0 * aA1 }\n function C(aA1) { return 3.0 * aA1 }\n\n function calcBezier(aT, aA1, aA2) { return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT }\n function getSlope(aT, aA1, aA2) { return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1) }\n\n function binarySubdivide(aX, aA, aB, mX1, mX2) {\n var currentX, currentT, i = 0;\n do {\n currentT = aA + (aB - aA) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - aX;\n if (currentX > 0.0) { aB = currentT; } else { aA = currentT; }\n } while (Math.abs(currentX) > 0.0000001 && ++i < 10);\n return currentT;\n }\n\n function newtonRaphsonIterate(aX, aGuessT, mX1, mX2) {\n for (var i = 0; i < 4; ++i) {\n var currentSlope = getSlope(aGuessT, mX1, mX2);\n if (currentSlope === 0.0) { return aGuessT; }\n var currentX = calcBezier(aGuessT, mX1, mX2) - aX;\n aGuessT -= currentX / currentSlope;\n }\n return aGuessT;\n }\n\n function bezier(mX1, mY1, mX2, mY2) {\n\n if (!(0 <= mX1 && mX1 <= 1 && 0 <= mX2 && mX2 <= 1)) { return; }\n var sampleValues = new Float32Array(kSplineTableSize);\n\n if (mX1 !== mY1 || mX2 !== mY2) {\n for (var i = 0; i < kSplineTableSize; ++i) {\n sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);\n }\n }\n\n function getTForX(aX) {\n\n var intervalStart = 0;\n var currentSample = 1;\n var lastSample = kSplineTableSize - 1;\n\n for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) {\n intervalStart += kSampleStepSize;\n }\n\n --currentSample;\n\n var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]);\n var guessForT = intervalStart + dist * kSampleStepSize;\n var initialSlope = getSlope(guessForT, mX1, mX2);\n\n if (initialSlope >= 0.001) {\n return newtonRaphsonIterate(aX, guessForT, mX1, mX2);\n } else if (initialSlope === 0.0) {\n return guessForT;\n } else {\n return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2);\n }\n\n }\n\n return function (x) {\n if (mX1 === mY1 && mX2 === mY2) { return x; }\n if (x === 0 || x === 1) { return x; }\n return calcBezier(getTForX(x), mY1, mY2);\n }\n\n }\n\n return bezier;\n\n})();\n\nvar penner = (function () {\n\n // Based on jQuery UI's implemenation of easing equations from Robert Penner (http://www.robertpenner.com/easing)\n\n var eases = { linear: function () { return function (t) { return t; }; } };\n\n var functionEasings = {\n Sine: function () { return function (t) { return 1 - Math.cos(t * Math.PI / 2); }; },\n Circ: function () { return function (t) { return 1 - Math.sqrt(1 - t * t); }; },\n Back: function () { return function (t) { return t * t * (3 * t - 2); }; },\n Bounce: function () { return function (t) {\n var pow2, b = 4;\n while (t < (( pow2 = Math.pow(2, --b)) - 1) / 11) {}\n return 1 / Math.pow(4, 3 - b) - 7.5625 * Math.pow(( pow2 * 3 - 2 ) / 22 - t, 2)\n }; },\n Elastic: function (amplitude, period) {\n if ( amplitude === void 0 ) amplitude = 1;\n if ( period === void 0 ) period = .5;\n\n var a = minMax(amplitude, 1, 10);\n var p = minMax(period, .1, 2);\n return function (t) {\n return (t === 0 || t === 1) ? t : \n -a * Math.pow(2, 10 * (t - 1)) * Math.sin((((t - 1) - (p / (Math.PI * 2) * Math.asin(1 / a))) * (Math.PI * 2)) / p);\n }\n }\n };\n\n var baseEasings = ['Quad', 'Cubic', 'Quart', 'Quint', 'Expo'];\n\n baseEasings.forEach(function (name, i) {\n functionEasings[name] = function () { return function (t) { return Math.pow(t, i + 2); }; };\n });\n\n Object.keys(functionEasings).forEach(function (name) {\n var easeIn = functionEasings[name];\n eases['easeIn' + name] = easeIn;\n eases['easeOut' + name] = function (a, b) { return function (t) { return 1 - easeIn(a, b)(1 - t); }; };\n eases['easeInOut' + name] = function (a, b) { return function (t) { return t < 0.5 ? easeIn(a, b)(t * 2) / 2 : \n 1 - easeIn(a, b)(t * -2 + 2) / 2; }; };\n eases['easeOutIn' + name] = function (a, b) { return function (t) { return t < 0.5 ? (1 - easeIn(a, b)(1 - t * 2)) / 2 : \n (easeIn(a, b)(t * 2 - 1) + 1) / 2; }; };\n });\n\n return eases;\n\n})();\n\nfunction parseEasings(easing, duration) {\n if (is.fnc(easing)) { return easing; }\n var name = easing.split('(')[0];\n var ease = penner[name];\n var args = parseEasingParameters(easing);\n switch (name) {\n case 'spring' : return spring(easing, duration);\n case 'cubicBezier' : return applyArguments(bezier, args);\n case 'steps' : return applyArguments(steps, args);\n default : return applyArguments(ease, args);\n }\n}\n\n// Strings\n\nfunction selectString(str) {\n try {\n var nodes = document.querySelectorAll(str);\n return nodes;\n } catch(e) {\n return;\n }\n}\n\n// Arrays\n\nfunction filterArray(arr, callback) {\n var len = arr.length;\n var thisArg = arguments.length >= 2 ? arguments[1] : void 0;\n var result = [];\n for (var i = 0; i < len; i++) {\n if (i in arr) {\n var val = arr[i];\n if (callback.call(thisArg, val, i, arr)) {\n result.push(val);\n }\n }\n }\n return result;\n}\n\nfunction flattenArray(arr) {\n return arr.reduce(function (a, b) { return a.concat(is.arr(b) ? flattenArray(b) : b); }, []);\n}\n\nfunction toArray(o) {\n if (is.arr(o)) { return o; }\n if (is.str(o)) { o = selectString(o) || o; }\n if (o instanceof NodeList || o instanceof HTMLCollection) { return [].slice.call(o); }\n return [o];\n}\n\nfunction arrayContains(arr, val) {\n return arr.some(function (a) { return a === val; });\n}\n\n// Objects\n\nfunction cloneObject(o) {\n var clone = {};\n for (var p in o) { clone[p] = o[p]; }\n return clone;\n}\n\nfunction replaceObjectProps(o1, o2) {\n var o = cloneObject(o1);\n for (var p in o1) { o[p] = o2.hasOwnProperty(p) ? o2[p] : o1[p]; }\n return o;\n}\n\nfunction mergeObjects(o1, o2) {\n var o = cloneObject(o1);\n for (var p in o2) { o[p] = is.und(o1[p]) ? o2[p] : o1[p]; }\n return o;\n}\n\n// Colors\n\nfunction rgbToRgba(rgbValue) {\n var rgb = /rgb\\((\\d+,\\s*[\\d]+,\\s*[\\d]+)\\)/g.exec(rgbValue);\n return rgb ? (\"rgba(\" + (rgb[1]) + \",1)\") : rgbValue;\n}\n\nfunction hexToRgba(hexValue) {\n var rgx = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n var hex = hexValue.replace(rgx, function (m, r, g, b) { return r + r + g + g + b + b; } );\n var rgb = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n var r = parseInt(rgb[1], 16);\n var g = parseInt(rgb[2], 16);\n var b = parseInt(rgb[3], 16);\n return (\"rgba(\" + r + \",\" + g + \",\" + b + \",1)\");\n}\n\nfunction hslToRgba(hslValue) {\n var hsl = /hsl\\((\\d+),\\s*([\\d.]+)%,\\s*([\\d.]+)%\\)/g.exec(hslValue) || /hsla\\((\\d+),\\s*([\\d.]+)%,\\s*([\\d.]+)%,\\s*([\\d.]+)\\)/g.exec(hslValue);\n var h = parseInt(hsl[1], 10) / 360;\n var s = parseInt(hsl[2], 10) / 100;\n var l = parseInt(hsl[3], 10) / 100;\n var a = hsl[4] || 1;\n function hue2rgb(p, q, t) {\n if (t < 0) { t += 1; }\n if (t > 1) { t -= 1; }\n if (t < 1/6) { return p + (q - p) * 6 * t; }\n if (t < 1/2) { return q; }\n if (t < 2/3) { return p + (q - p) * (2/3 - t) * 6; }\n return p;\n }\n var r, g, b;\n if (s == 0) {\n r = g = b = l;\n } else {\n var q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n var p = 2 * l - q;\n r = hue2rgb(p, q, h + 1/3);\n g = hue2rgb(p, q, h);\n b = hue2rgb(p, q, h - 1/3);\n }\n return (\"rgba(\" + (r * 255) + \",\" + (g * 255) + \",\" + (b * 255) + \",\" + a + \")\");\n}\n\nfunction colorToRgb(val) {\n if (is.rgb(val)) { return rgbToRgba(val); }\n if (is.hex(val)) { return hexToRgba(val); }\n if (is.hsl(val)) { return hslToRgba(val); }\n}\n\n// Units\n\nfunction getUnit(val) {\n var split = /[+-]?\\d*\\.?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(val);\n if (split) { return split[1]; }\n}\n\nfunction getTransformUnit(propName) {\n if (stringContains(propName, 'translate') || propName === 'perspective') { return 'px'; }\n if (stringContains(propName, 'rotate') || stringContains(propName, 'skew')) { return 'deg'; }\n}\n\n// Values\n\nfunction getFunctionValue(val, animatable) {\n if (!is.fnc(val)) { return val; }\n return val(animatable.target, animatable.id, animatable.total);\n}\n\nfunction getAttribute(el, prop) {\n return el.getAttribute(prop);\n}\n\nfunction convertPxToUnit(el, value, unit) {\n var valueUnit = getUnit(value);\n if (arrayContains([unit, 'deg', 'rad', 'turn'], valueUnit)) { return value; }\n var cached = cache.CSS[value + unit];\n if (!is.und(cached)) { return cached; }\n var baseline = 100;\n var tempEl = document.createElement(el.tagName);\n var parentEl = (el.parentNode && (el.parentNode !== document)) ? el.parentNode : document.body;\n parentEl.appendChild(tempEl);\n tempEl.style.position = 'absolute';\n tempEl.style.width = baseline + unit;\n var factor = baseline / tempEl.offsetWidth;\n parentEl.removeChild(tempEl);\n var convertedUnit = factor * parseFloat(value);\n cache.CSS[value + unit] = convertedUnit;\n return convertedUnit;\n}\n\nfunction getCSSValue(el, prop, unit) {\n if (prop in el.style) {\n var uppercasePropName = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n var value = el.style[prop] || getComputedStyle(el).getPropertyValue(uppercasePropName) || '0';\n return unit ? convertPxToUnit(el, value, unit) : value;\n }\n}\n\nfunction getAnimationType(el, prop) {\n if (is.dom(el) && !is.inp(el) && (!is.nil(getAttribute(el, prop)) || (is.svg(el) && el[prop]))) { return 'attribute'; }\n if (is.dom(el) && arrayContains(validTransforms, prop)) { return 'transform'; }\n if (is.dom(el) && (prop !== 'transform' && getCSSValue(el, prop))) { return 'css'; }\n if (el[prop] != null) { return 'object'; }\n}\n\nfunction getElementTransforms(el) {\n if (!is.dom(el)) { return; }\n var str = el.style.transform || '';\n var reg = /(\\w+)\\(([^)]*)\\)/g;\n var transforms = new Map();\n var m; while (m = reg.exec(str)) { transforms.set(m[1], m[2]); }\n return transforms;\n}\n\nfunction getTransformValue(el, propName, animatable, unit) {\n var defaultVal = stringContains(propName, 'scale') ? 1 : 0 + getTransformUnit(propName);\n var value = getElementTransforms(el).get(propName) || defaultVal;\n if (animatable) {\n animatable.transforms.list.set(propName, value);\n animatable.transforms['last'] = propName;\n }\n return unit ? convertPxToUnit(el, value, unit) : value;\n}\n\nfunction getOriginalTargetValue(target, propName, unit, animatable) {\n switch (getAnimationType(target, propName)) {\n case 'transform': return getTransformValue(target, propName, animatable, unit);\n case 'css': return getCSSValue(target, propName, unit);\n case 'attribute': return getAttribute(target, propName);\n default: return target[propName] || 0;\n }\n}\n\nfunction getRelativeValue(to, from) {\n var operator = /^(\\*=|\\+=|-=)/.exec(to);\n if (!operator) { return to; }\n var u = getUnit(to) || 0;\n var x = parseFloat(from);\n var y = parseFloat(to.replace(operator[0], ''));\n switch (operator[0][0]) {\n case '+': return x + y + u;\n case '-': return x - y + u;\n case '*': return x * y + u;\n }\n}\n\nfunction validateValue(val, unit) {\n if (is.col(val)) { return colorToRgb(val); }\n if (/\\s/g.test(val)) { return val; }\n var originalUnit = getUnit(val);\n var unitLess = originalUnit ? val.substr(0, val.length - originalUnit.length) : val;\n if (unit) { return unitLess + unit; }\n return unitLess;\n}\n\n// getTotalLength() equivalent for circle, rect, polyline, polygon and line shapes\n// adapted from https://gist.github.com/SebLambla/3e0550c496c236709744\n\nfunction getDistance(p1, p2) {\n return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));\n}\n\nfunction getCircleLength(el) {\n return Math.PI * 2 * getAttribute(el, 'r');\n}\n\nfunction getRectLength(el) {\n return (getAttribute(el, 'width') * 2) + (getAttribute(el, 'height') * 2);\n}\n\nfunction getLineLength(el) {\n return getDistance(\n {x: getAttribute(el, 'x1'), y: getAttribute(el, 'y1')}, \n {x: getAttribute(el, 'x2'), y: getAttribute(el, 'y2')}\n );\n}\n\nfunction getPolylineLength(el) {\n var points = el.points;\n var totalLength = 0;\n var previousPos;\n for (var i = 0 ; i < points.numberOfItems; i++) {\n var currentPos = points.getItem(i);\n if (i > 0) { totalLength += getDistance(previousPos, currentPos); }\n previousPos = currentPos;\n }\n return totalLength;\n}\n\nfunction getPolygonLength(el) {\n var points = el.points;\n return getPolylineLength(el) + getDistance(points.getItem(points.numberOfItems - 1), points.getItem(0));\n}\n\n// Path animation\n\nfunction getTotalLength(el) {\n if (el.getTotalLength) { return el.getTotalLength(); }\n switch(el.tagName.toLowerCase()) {\n case 'circle': return getCircleLength(el);\n case 'rect': return getRectLength(el);\n case 'line': return getLineLength(el);\n case 'polyline': return getPolylineLength(el);\n case 'polygon': return getPolygonLength(el);\n }\n}\n\nfunction setDashoffset(el) {\n var pathLength = getTotalLength(el);\n el.setAttribute('stroke-dasharray', pathLength);\n return pathLength;\n}\n\n// Motion path\n\nfunction getParentSvgEl(el) {\n var parentEl = el.parentNode;\n while (is.svg(parentEl)) {\n if (!is.svg(parentEl.parentNode)) { break; }\n parentEl = parentEl.parentNode;\n }\n return parentEl;\n}\n\nfunction getParentSvg(pathEl, svgData) {\n var svg = svgData || {};\n var parentSvgEl = svg.el || getParentSvgEl(pathEl);\n var rect = parentSvgEl.getBoundingClientRect();\n var viewBoxAttr = getAttribute(parentSvgEl, 'viewBox');\n var width = rect.width;\n var height = rect.height;\n var viewBox = svg.viewBox || (viewBoxAttr ? viewBoxAttr.split(' ') : [0, 0, width, height]);\n return {\n el: parentSvgEl,\n viewBox: viewBox,\n x: viewBox[0] / 1,\n y: viewBox[1] / 1,\n w: width,\n h: height,\n vW: viewBox[2],\n vH: viewBox[3]\n }\n}\n\nfunction getPath(path, percent) {\n var pathEl = is.str(path) ? selectString(path)[0] : path;\n var p = percent || 100;\n return function(property) {\n return {\n property: property,\n el: pathEl,\n svg: getParentSvg(pathEl),\n totalLength: getTotalLength(pathEl) * (p / 100)\n }\n }\n}\n\nfunction getPathProgress(path, progress, isPathTargetInsideSVG) {\n function point(offset) {\n if ( offset === void 0 ) offset = 0;\n\n var l = progress + offset >= 1 ? progress + offset : 0;\n return path.el.getPointAtLength(l);\n }\n var svg = getParentSvg(path.el, path.svg);\n var p = point();\n var p0 = point(-1);\n var p1 = point(+1);\n var scaleX = isPathTargetInsideSVG ? 1 : svg.w / svg.vW;\n var scaleY = isPathTargetInsideSVG ? 1 : svg.h / svg.vH;\n switch (path.property) {\n case 'x': return (p.x - svg.x) * scaleX;\n case 'y': return (p.y - svg.y) * scaleY;\n case 'angle': return Math.atan2(p1.y - p0.y, p1.x - p0.x) * 180 / Math.PI;\n }\n}\n\n// Decompose value\n\nfunction decomposeValue(val, unit) {\n // const rgx = /-?\\d*\\.?\\d+/g; // handles basic numbers\n // const rgx = /[+-]?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?/g; // handles exponents notation\n var rgx = /[+-]?\\d*\\.?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?/g; // handles exponents notation\n var value = validateValue((is.pth(val) ? val.totalLength : val), unit) + '';\n return {\n original: value,\n numbers: value.match(rgx) ? value.match(rgx).map(Number) : [0],\n strings: (is.str(val) || unit) ? value.split(rgx) : []\n }\n}\n\n// Animatables\n\nfunction parseTargets(targets) {\n var targetsArray = targets ? (flattenArray(is.arr(targets) ? targets.map(toArray) : toArray(targets))) : [];\n return filterArray(targetsArray, function (item, pos, self) { return self.indexOf(item) === pos; });\n}\n\nfunction getAnimatables(targets) {\n var parsed = parseTargets(targets);\n return parsed.map(function (t, i) {\n return {target: t, id: i, total: parsed.length, transforms: { list: getElementTransforms(t) } };\n });\n}\n\n// Properties\n\nfunction normalizePropertyTweens(prop, tweenSettings) {\n var settings = cloneObject(tweenSettings);\n // Override duration if easing is a spring\n if (/^spring/.test(settings.easing)) { settings.duration = spring(settings.easing); }\n if (is.arr(prop)) {\n var l = prop.length;\n var isFromTo = (l === 2 && !is.obj(prop[0]));\n if (!isFromTo) {\n // Duration divided by the number of tweens\n if (!is.fnc(tweenSettings.duration)) { settings.duration = tweenSettings.duration / l; }\n } else {\n // Transform [from, to] values shorthand to a valid tween value\n prop = {value: prop};\n }\n }\n var propArray = is.arr(prop) ? prop : [prop];\n return propArray.map(function (v, i) {\n var obj = (is.obj(v) && !is.pth(v)) ? v : {value: v};\n // Default delay value should only be applied to the first tween\n if (is.und(obj.delay)) { obj.delay = !i ? tweenSettings.delay : 0; }\n // Default endDelay value should only be applied to the last tween\n if (is.und(obj.endDelay)) { obj.endDelay = i === propArray.length - 1 ? tweenSettings.endDelay : 0; }\n return obj;\n }).map(function (k) { return mergeObjects(k, settings); });\n}\n\n\nfunction flattenKeyframes(keyframes) {\n var propertyNames = filterArray(flattenArray(keyframes.map(function (key) { return Object.keys(key); })), function (p) { return is.key(p); })\n .reduce(function (a,b) { if (a.indexOf(b) < 0) { a.push(b); } return a; }, []);\n var properties = {};\n var loop = function ( i ) {\n var propName = propertyNames[i];\n properties[propName] = keyframes.map(function (key) {\n var newKey = {};\n for (var p in key) {\n if (is.key(p)) {\n if (p == propName) { newKey.value = key[p]; }\n } else {\n newKey[p] = key[p];\n }\n }\n return newKey;\n });\n };\n\n for (var i = 0; i < propertyNames.length; i++) loop( i );\n return properties;\n}\n\nfunction getProperties(tweenSettings, params) {\n var properties = [];\n var keyframes = params.keyframes;\n if (keyframes) { params = mergeObjects(flattenKeyframes(keyframes), params); }\n for (var p in params) {\n if (is.key(p)) {\n properties.push({\n name: p,\n tweens: normalizePropertyTweens(params[p], tweenSettings)\n });\n }\n }\n return properties;\n}\n\n// Tweens\n\nfunction normalizeTweenValues(tween, animatable) {\n var t = {};\n for (var p in tween) {\n var value = getFunctionValue(tween[p], animatable);\n if (is.arr(value)) {\n value = value.map(function (v) { return getFunctionValue(v, animatable); });\n if (value.length === 1) { value = value[0]; }\n }\n t[p] = value;\n }\n t.duration = parseFloat(t.duration);\n t.delay = parseFloat(t.delay);\n return t;\n}\n\nfunction normalizeTweens(prop, animatable) {\n var previousTween;\n return prop.tweens.map(function (t) {\n var tween = normalizeTweenValues(t, animatable);\n var tweenValue = tween.value;\n var to = is.arr(tweenValue) ? tweenValue[1] : tweenValue;\n var toUnit = getUnit(to);\n var originalValue = getOriginalTargetValue(animatable.target, prop.name, toUnit, animatable);\n var previousValue = previousTween ? previousTween.to.original : originalValue;\n var from = is.arr(tweenValue) ? tweenValue[0] : previousValue;\n var fromUnit = getUnit(from) || getUnit(originalValue);\n var unit = toUnit || fromUnit;\n if (is.und(to)) { to = previousValue; }\n tween.from = decomposeValue(from, unit);\n tween.to = decomposeValue(getRelativeValue(to, from), unit);\n tween.start = previousTween ? previousTween.end : 0;\n tween.end = tween.start + tween.delay + tween.duration + tween.endDelay;\n tween.easing = parseEasings(tween.easing, tween.duration);\n tween.isPath = is.pth(tweenValue);\n tween.isPathTargetInsideSVG = tween.isPath && is.svg(animatable.target);\n tween.isColor = is.col(tween.from.original);\n if (tween.isColor) { tween.round = 1; }\n previousTween = tween;\n return tween;\n });\n}\n\n// Tween progress\n\nvar setProgressValue = {\n css: function (t, p, v) { return t.style[p] = v; },\n attribute: function (t, p, v) { return t.setAttribute(p, v); },\n object: function (t, p, v) { return t[p] = v; },\n transform: function (t, p, v, transforms, manual) {\n transforms.list.set(p, v);\n if (p === transforms.last || manual) {\n var str = '';\n transforms.list.forEach(function (value, prop) { str += prop + \"(\" + value + \") \"; });\n t.style.transform = str;\n }\n }\n};\n\n// Set Value helper\n\nfunction setTargetsValue(targets, properties) {\n var animatables = getAnimatables(targets);\n animatables.forEach(function (animatable) {\n for (var property in properties) {\n var value = getFunctionValue(properties[property], animatable);\n var target = animatable.target;\n var valueUnit = getUnit(value);\n var originalValue = getOriginalTargetValue(target, property, valueUnit, animatable);\n var unit = valueUnit || getUnit(originalValue);\n var to = getRelativeValue(validateValue(value, unit), originalValue);\n var animType = getAnimationType(target, property);\n setProgressValue[animType](target, property, to, animatable.transforms, true);\n }\n });\n}\n\n// Animations\n\nfunction createAnimation(animatable, prop) {\n var animType = getAnimationType(animatable.target, prop.name);\n if (animType) {\n var tweens = normalizeTweens(prop, animatable);\n var lastTween = tweens[tweens.length - 1];\n return {\n type: animType,\n property: prop.name,\n animatable: animatable,\n tweens: tweens,\n duration: lastTween.end,\n delay: tweens[0].delay,\n endDelay: lastTween.endDelay\n }\n }\n}\n\nfunction getAnimations(animatables, properties) {\n return filterArray(flattenArray(animatables.map(function (animatable) {\n return properties.map(function (prop) {\n return createAnimation(animatable, prop);\n });\n })), function (a) { return !is.und(a); });\n}\n\n// Create Instance\n\nfunction getInstanceTimings(animations, tweenSettings) {\n var animLength = animations.length;\n var getTlOffset = function (anim) { return anim.timelineOffset ? anim.timelineOffset : 0; };\n var timings = {};\n timings.duration = animLength ? Math.max.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.duration; })) : tweenSettings.duration;\n timings.delay = animLength ? Math.min.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.delay; })) : tweenSettings.delay;\n timings.endDelay = animLength ? timings.duration - Math.max.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.duration - anim.endDelay; })) : tweenSettings.endDelay;\n return timings;\n}\n\nvar instanceID = 0;\n\nfunction createNewInstance(params) {\n var instanceSettings = replaceObjectProps(defaultInstanceSettings, params);\n var tweenSettings = replaceObjectProps(defaultTweenSettings, params);\n var properties = getProperties(tweenSettings, params);\n var animatables = getAnimatables(params.targets);\n var animations = getAnimations(animatables, properties);\n var timings = getInstanceTimings(animations, tweenSettings);\n var id = instanceID;\n instanceID++;\n return mergeObjects(instanceSettings, {\n id: id,\n children: [],\n animatables: animatables,\n animations: animations,\n duration: timings.duration,\n delay: timings.delay,\n endDelay: timings.endDelay\n });\n}\n\n// Core\n\nvar activeInstances = [];\n\nvar engine = (function () {\n var raf;\n\n function play() {\n if (!raf && (!isDocumentHidden() || !anime.suspendWhenDocumentHidden) && activeInstances.length > 0) {\n raf = requestAnimationFrame(step);\n }\n }\n function step(t) {\n // memo on algorithm issue:\n // dangerous iteration over mutable `activeInstances`\n // (that collection may be updated from within callbacks of `tick`-ed animation instances)\n var activeInstancesLength = activeInstances.length;\n var i = 0;\n while (i < activeInstancesLength) {\n var activeInstance = activeInstances[i];\n if (!activeInstance.paused) {\n activeInstance.tick(t);\n i++;\n } else {\n activeInstances.splice(i, 1);\n activeInstancesLength--;\n }\n }\n raf = i > 0 ? requestAnimationFrame(step) : undefined;\n }\n\n function handleVisibilityChange() {\n if (!anime.suspendWhenDocumentHidden) { return; }\n\n if (isDocumentHidden()) {\n // suspend ticks\n raf = cancelAnimationFrame(raf);\n } else { // is back to active tab\n // first adjust animations to consider the time that ticks were suspended\n activeInstances.forEach(\n function (instance) { return instance ._onDocumentVisibility(); }\n );\n engine();\n }\n }\n if (typeof document !== 'undefined') {\n document.addEventListener('visibilitychange', handleVisibilityChange);\n }\n\n return play;\n})();\n\nfunction isDocumentHidden() {\n return !!document && document.hidden;\n}\n\n// Public Instance\n\nfunction anime(params) {\n if ( params === void 0 ) params = {};\n\n\n var startTime = 0, lastTime = 0, now = 0;\n var children, childrenLength = 0;\n var resolve = null;\n\n function makePromise(instance) {\n var promise = window.Promise && new Promise(function (_resolve) { return resolve = _resolve; });\n instance.finished = promise;\n return promise;\n }\n\n var instance = createNewInstance(params);\n var promise = makePromise(instance);\n\n function toggleInstanceDirection() {\n var direction = instance.direction;\n if (direction !== 'alternate') {\n instance.direction = direction !== 'normal' ? 'normal' : 'reverse';\n }\n instance.reversed = !instance.reversed;\n children.forEach(function (child) { return child.reversed = instance.reversed; });\n }\n\n function adjustTime(time) {\n return instance.reversed ? instance.duration - time : time;\n }\n\n function resetTime() {\n startTime = 0;\n lastTime = adjustTime(instance.currentTime) * (1 / anime.speed);\n }\n\n function seekChild(time, child) {\n if (child) { child.seek(time - child.timelineOffset); }\n }\n\n function syncInstanceChildren(time) {\n if (!instance.reversePlayback) {\n for (var i = 0; i < childrenLength; i++) { seekChild(time, children[i]); }\n } else {\n for (var i$1 = childrenLength; i$1--;) { seekChild(time, children[i$1]); }\n }\n }\n\n function setAnimationsProgress(insTime) {\n var i = 0;\n var animations = instance.animations;\n var animationsLength = animations.length;\n while (i < animationsLength) {\n var anim = animations[i];\n var animatable = anim.animatable;\n var tweens = anim.tweens;\n var tweenLength = tweens.length - 1;\n var tween = tweens[tweenLength];\n // Only check for keyframes if there is more than one tween\n if (tweenLength) { tween = filterArray(tweens, function (t) { return (insTime < t.end); })[0] || tween; }\n var elapsed = minMax(insTime - tween.start - tween.delay, 0, tween.duration) / tween.duration;\n var eased = isNaN(elapsed) ? 1 : tween.easing(elapsed);\n var strings = tween.to.strings;\n var round = tween.round;\n var numbers = [];\n var toNumbersLength = tween.to.numbers.length;\n var progress = (void 0);\n for (var n = 0; n < toNumbersLength; n++) {\n var value = (void 0);\n var toNumber = tween.to.numbers[n];\n var fromNumber = tween.from.numbers[n] || 0;\n if (!tween.isPath) {\n value = fromNumber + (eased * (toNumber - fromNumber));\n } else {\n value = getPathProgress(tween.value, eased * toNumber, tween.isPathTargetInsideSVG);\n }\n if (round) {\n if (!(tween.isColor && n > 2)) {\n value = Math.round(value * round) / round;\n }\n }\n numbers.push(value);\n }\n // Manual Array.reduce for better performances\n var stringsLength = strings.length;\n if (!stringsLength) {\n progress = numbers[0];\n } else {\n progress = strings[0];\n for (var s = 0; s < stringsLength; s++) {\n var a = strings[s];\n var b = strings[s + 1];\n var n$1 = numbers[s];\n if (!isNaN(n$1)) {\n if (!b) {\n progress += n$1 + ' ';\n } else {\n progress += n$1 + b;\n }\n }\n }\n }\n setProgressValue[anim.type](animatable.target, anim.property, progress, animatable.transforms);\n anim.currentValue = progress;\n i++;\n }\n }\n\n function setCallback(cb) {\n if (instance[cb] && !instance.passThrough) { instance[cb](instance); }\n }\n\n function countIteration() {\n if (instance.remaining && instance.remaining !== true) {\n instance.remaining--;\n }\n }\n\n function setInstanceProgress(engineTime) {\n var insDuration = instance.duration;\n var insDelay = instance.delay;\n var insEndDelay = insDuration - instance.endDelay;\n var insTime = adjustTime(engineTime);\n instance.progress = minMax((insTime / insDuration) * 100, 0, 100);\n instance.reversePlayback = insTime < instance.currentTime;\n if (children) { syncInstanceChildren(insTime); }\n if (!instance.began && instance.currentTime > 0) {\n instance.began = true;\n setCallback('begin');\n }\n if (!instance.loopBegan && instance.currentTime > 0) {\n instance.loopBegan = true;\n setCallback('loopBegin');\n }\n if (insTime <= insDelay && instance.currentTime !== 0) {\n setAnimationsProgress(0);\n }\n if ((insTime >= insEndDelay && instance.currentTime !== insDuration) || !insDuration) {\n setAnimationsProgress(insDuration);\n }\n if (insTime > insDelay && insTime < insEndDelay) {\n if (!instance.changeBegan) {\n instance.changeBegan = true;\n instance.changeCompleted = false;\n setCallback('changeBegin');\n }\n setCallback('change');\n setAnimationsProgress(insTime);\n } else {\n if (instance.changeBegan) {\n instance.changeCompleted = true;\n instance.changeBegan = false;\n setCallback('changeComplete');\n }\n }\n instance.currentTime = minMax(insTime, 0, insDuration);\n if (instance.began) { setCallback('update'); }\n if (engineTime >= insDuration) {\n lastTime = 0;\n countIteration();\n if (!instance.remaining) {\n instance.paused = true;\n if (!instance.completed) {\n instance.completed = true;\n setCallback('loopComplete');\n setCallback('complete');\n if (!instance.passThrough && 'Promise' in window) {\n resolve();\n promise = makePromise(instance);\n }\n }\n } else {\n startTime = now;\n setCallback('loopComplete');\n instance.loopBegan = false;\n if (instance.direction === 'alternate') {\n toggleInstanceDirection();\n }\n }\n }\n }\n\n instance.reset = function() {\n var direction = instance.direction;\n instance.passThrough = false;\n instance.currentTime = 0;\n instance.progress = 0;\n instance.paused = true;\n instance.began = false;\n instance.loopBegan = false;\n instance.changeBegan = false;\n instance.completed = false;\n instance.changeCompleted = false;\n instance.reversePlayback = false;\n instance.reversed = direction === 'reverse';\n instance.remaining = instance.loop;\n children = instance.children;\n childrenLength = children.length;\n for (var i = childrenLength; i--;) { instance.children[i].reset(); }\n if (instance.reversed && instance.loop !== true || (direction === 'alternate' && instance.loop === 1)) { instance.remaining++; }\n setAnimationsProgress(instance.reversed ? instance.duration : 0);\n };\n\n // internal method (for engine) to adjust animation timings before restoring engine ticks (rAF)\n instance._onDocumentVisibility = resetTime;\n\n // Set Value helper\n\n instance.set = function(targets, properties) {\n setTargetsValue(targets, properties);\n return instance;\n };\n\n instance.tick = function(t) {\n now = t;\n if (!startTime) { startTime = now; }\n setInstanceProgress((now + (lastTime - startTime)) * anime.speed);\n };\n\n instance.seek = function(time) {\n setInstanceProgress(adjustTime(time));\n };\n\n instance.pause = function() {\n instance.paused = true;\n resetTime();\n };\n\n instance.play = function() {\n if (!instance.paused) { return; }\n if (instance.completed) { instance.reset(); }\n instance.paused = false;\n activeInstances.push(instance);\n resetTime();\n engine();\n };\n\n instance.reverse = function() {\n toggleInstanceDirection();\n instance.completed = instance.reversed ? false : true;\n resetTime();\n };\n\n instance.restart = function() {\n instance.reset();\n instance.play();\n };\n\n instance.remove = function(targets) {\n var targetsArray = parseTargets(targets);\n removeTargetsFromInstance(targetsArray, instance);\n };\n\n instance.reset();\n\n if (instance.autoplay) { instance.play(); }\n\n return instance;\n\n}\n\n// Remove targets from animation\n\nfunction removeTargetsFromAnimations(targetsArray, animations) {\n for (var a = animations.length; a--;) {\n if (arrayContains(targetsArray, animations[a].animatable.target)) {\n animations.splice(a, 1);\n }\n }\n}\n\nfunction removeTargetsFromInstance(targetsArray, instance) {\n var animations = instance.animations;\n var children = instance.children;\n removeTargetsFromAnimations(targetsArray, animations);\n for (var c = children.length; c--;) {\n var child = children[c];\n var childAnimations = child.animations;\n removeTargetsFromAnimations(targetsArray, childAnimations);\n if (!childAnimations.length && !child.children.length) { children.splice(c, 1); }\n }\n if (!animations.length && !children.length) { instance.pause(); }\n}\n\nfunction removeTargetsFromActiveInstances(targets) {\n var targetsArray = parseTargets(targets);\n for (var i = activeInstances.length; i--;) {\n var instance = activeInstances[i];\n removeTargetsFromInstance(targetsArray, instance);\n }\n}\n\n// Stagger helpers\n\nfunction stagger(val, params) {\n if ( params === void 0 ) params = {};\n\n var direction = params.direction || 'normal';\n var easing = params.easing ? parseEasings(params.easing) : null;\n var grid = params.grid;\n var axis = params.axis;\n var fromIndex = params.from || 0;\n var fromFirst = fromIndex === 'first';\n var fromCenter = fromIndex === 'center';\n var fromLast = fromIndex === 'last';\n var isRange = is.arr(val);\n var val1 = isRange ? parseFloat(val[0]) : parseFloat(val);\n var val2 = isRange ? parseFloat(val[1]) : 0;\n var unit = getUnit(isRange ? val[1] : val) || 0;\n var start = params.start || 0 + (isRange ? val1 : 0);\n var values = [];\n var maxValue = 0;\n return function (el, i, t) {\n if (fromFirst) { fromIndex = 0; }\n if (fromCenter) { fromIndex = (t - 1) / 2; }\n if (fromLast) { fromIndex = t - 1; }\n if (!values.length) {\n for (var index = 0; index < t; index++) {\n if (!grid) {\n values.push(Math.abs(fromIndex - index));\n } else {\n var fromX = !fromCenter ? fromIndex%grid[0] : (grid[0]-1)/2;\n var fromY = !fromCenter ? Math.floor(fromIndex/grid[0]) : (grid[1]-1)/2;\n var toX = index%grid[0];\n var toY = Math.floor(index/grid[0]);\n var distanceX = fromX - toX;\n var distanceY = fromY - toY;\n var value = Math.sqrt(distanceX * distanceX + distanceY * distanceY);\n if (axis === 'x') { value = -distanceX; }\n if (axis === 'y') { value = -distanceY; }\n values.push(value);\n }\n maxValue = Math.max.apply(Math, values);\n }\n if (easing) { values = values.map(function (val) { return easing(val / maxValue) * maxValue; }); }\n if (direction === 'reverse') { values = values.map(function (val) { return axis ? (val < 0) ? val * -1 : -val : Math.abs(maxValue - val); }); }\n }\n var spacing = isRange ? (val2 - val1) / maxValue : val1;\n return start + (spacing * (Math.round(values[i] * 100) / 100)) + unit;\n }\n}\n\n// Timeline\n\nfunction timeline(params) {\n if ( params === void 0 ) params = {};\n\n var tl = anime(params);\n tl.duration = 0;\n tl.add = function(instanceParams, timelineOffset) {\n var tlIndex = activeInstances.indexOf(tl);\n var children = tl.children;\n if (tlIndex > -1) { activeInstances.splice(tlIndex, 1); }\n function passThrough(ins) { ins.passThrough = true; }\n for (var i = 0; i < children.length; i++) { passThrough(children[i]); }\n var insParams = mergeObjects(instanceParams, replaceObjectProps(defaultTweenSettings, params));\n insParams.targets = insParams.targets || params.targets;\n var tlDuration = tl.duration;\n insParams.autoplay = false;\n insParams.direction = tl.direction;\n insParams.timelineOffset = is.und(timelineOffset) ? tlDuration : getRelativeValue(timelineOffset, tlDuration);\n passThrough(tl);\n tl.seek(insParams.timelineOffset);\n var ins = anime(insParams);\n passThrough(ins);\n children.push(ins);\n var timings = getInstanceTimings(children, params);\n tl.delay = timings.delay;\n tl.endDelay = timings.endDelay;\n tl.duration = timings.duration;\n tl.seek(0);\n tl.reset();\n if (tl.autoplay) { tl.play(); }\n return tl;\n };\n return tl;\n}\n\nanime.version = '3.2.1';\nanime.speed = 1;\n// TODO:#review: naming, documentation\nanime.suspendWhenDocumentHidden = true;\nanime.running = activeInstances;\nanime.remove = removeTargetsFromActiveInstances;\nanime.get = getOriginalTargetValue;\nanime.set = setTargetsValue;\nanime.convertPx = convertPxToUnit;\nanime.path = getPath;\nanime.setDashoffset = setDashoffset;\nanime.stagger = stagger;\nanime.timeline = timeline;\nanime.easing = parseEasings;\nanime.penner = penner;\nanime.random = function (min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; };\n\nexport default anime;\n","import Sortable from 'sortablejs';\nimport anime from 'animejs/lib/anime.es.js';\nimport DataUtils from '../utils/DataUtils';\nimport Notfications from './Notifications.js';\nimport Maintenance from '../controllers/MaintenanceManager';\nconst notify = new Notfications();\n\nexport default class FileManager {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor(upload, input, imageList, fileList) {\n\t\tthis.mm = new Maintenance(null, null, document.getElementById('notify-progress'));\n\t\tthis.upload = upload;\n\t\tthis.input = input;\n\t\tthis.imageList = imageList;\n\t\tthis.fileList = fileList;\n\t\tthis.accetableFiles = [\n\t\t\t'image/jpeg',\n\t\t\t'image/gif',\n\t\t\t'image/png',\n\t\t\t'image/svg',\n\t\t\t'audio/mpeg',\n\t\t\t'video/mp4',\n\t\t\t'application/pdf',\n\t\t\t'text/plain',\n\t\t\t'text/rtf'\n\t\t];\n\t\tthis.files = [];\n\t\tthis.sortedFiles = [];\n\t\tthis.storage = [];\n\t\tthis.mediaSort = Sortable.create(this.imageList, {\n\t\t\tanimation: 150,\n\t\t\tonUpdate: () => {\n\t\t\t\t//notify.alert('REINDEXING MEDIA', null);\n\t\t\t\t//this.updateFiles();\n\t\t\t}\n\t\t});\n\t\tthis.fileSort = Sortable.create(this.fileList, {\n\t\t\tanimation: 150,\n\t\t\tonUpdate: () => {\n\t\t\t\t//notify.alert('REINDEXING FILES', null);\n\t\t\t\t//this.updateFiles();\n\t\t\t}\n\t\t});\n\t\tthis.start();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\tthis.upload.addEventListener('dragover', e => this.handleFileActions(e), false);\n\t\tthis.upload.addEventListener('drop', e => this.handleFileActions(e), false);\n\t\tthis.input.addEventListener('change', e => this.handleFileActions(e), false);\n\t\tvar removeMedia = document.querySelectorAll('.media-remove');\n\t\tfor (var i = 0, length = removeMedia.length; i < length; i++) {\n\t\t\tremoveMedia[i].addEventListener(\n\t\t\t\t'click',\n\t\t\t\te => this.removeFile(e, 'media'),\n\t\t\t\tfalse\n\t\t\t);\n\t\t}\n\t}\n\tgetFileOrder() {\n\t\tlet imgList = '';\n\t\tlet fileList = '';\n\t\tfor (var i = 0, length = this.imageList.childNodes.length; i < length; i++) {\n\t\t\tlet div = this.imageList.childNodes[i];\n\t\t\timgList = imgList + div.getAttribute('data-source') + ',';\n\t\t}\n\t\tfor (var i = 0, length = this.fileList.childNodes.length; i < length; i++) {\n\t\t\tlet div = this.fileList.childNodes[i];\n\t\t\tfileList = fileList + div.getAttribute('data-source') + ',';\n\t\t}\n\t\tlet media = { images: imgList, files: fileList };\n\t\treturn media;\n\t}\n\n\tsortFiles(files) {\n\t\tvar self = this;\n\t\tfor (var i = 0, file; (file = files[i]); i++) {\n\t\t\tvar reader = new FileReader();\n\t\t\t// Closure to capture the file information\n\t\t\treader.onload = (theFile => {\n\t\t\t\treturn function (f) {\n\t\t\t\t\t//create remove button object\n\t\t\t\t\tvar remove = document.createElement('button');\n\t\t\t\t\tvar removeIcon = document.createElement('i');\n\t\t\t\t\tremoveIcon.classList.add('ti', 'ti-x');\n\t\t\t\t\tremove.className = 'media-remove';\n\t\t\t\t\tremove.appendChild(removeIcon);\n\t\t\t\t\t//remove.setAttribute('id', mediaCount);\n\t\t\t\t\tremove.addEventListener(\n\t\t\t\t\t\t'click',\n\t\t\t\t\t\te => self.removeFile(e, 'media'),\n\t\t\t\t\t\tfalse\n\t\t\t\t\t);\n\n\t\t\t\t\t//upload the file\n\t\t\t\t\tlet upload = new FormData();\n\t\t\t\t\tupload.enctype = 'multipart/form-data';\n\t\t\t\t\tupload.append('upload_files[]', theFile, theFile.name);\n\t\t\t\t\tlet item = null;\n\t\t\t\t\tlet progress = null;\n\n\t\t\t\t\t// sort files\n\t\t\t\t\tswitch (theFile.type) {\n\t\t\t\t\t\tcase 'image/jpg':\n\t\t\t\t\t\tcase 'image/jpeg':\n\t\t\t\t\t\tcase 'image/gif':\n\t\t\t\t\t\tcase 'image/svg':\n\t\t\t\t\t\tcase 'image/png':\n\t\t\t\t\t\t\titem = self.itemFactory('img-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\titem.style.background =\n\t\t\t\t\t\t\t\t\t\t'url(' +\n\t\t\t\t\t\t\t\t\t\tf.target.result +\n\t\t\t\t\t\t\t\t\t\t') no-repeat center center / cover';\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'video/mp4':\n\t\t\t\t\t\t\titem = self.itemFactory('video-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\tlet video = document.createElement('video');\n\t\t\t\t\t\t\t\t\tlet source = document.createElement('source');\n\t\t\t\t\t\t\t\t\tsource.src = f.target.result;\n\t\t\t\t\t\t\t\t\tvideo.appendChild(source);\n\t\t\t\t\t\t\t\t\titem.appendChild(video);\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'audio/mpeg':\n\t\t\t\t\t\t\titem = self.itemFactory('audio-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\tlet audio = document.createElement('audio');\n\t\t\t\t\t\t\t\t\taudio.setAttribute('controls', true);\n\t\t\t\t\t\t\t\t\tlet source = document.createElement('source');\n\t\t\t\t\t\t\t\t\tsource.src = f.target.result;\n\t\t\t\t\t\t\t\t\taudio.appendChild(source);\n\t\t\t\t\t\t\t\t\titem.appendChild(audio);\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'application/pdf':\n\t\t\t\t\t\tcase 'text/plain':\n\t\t\t\t\t\tcase 'text/rtf':\n\t\t\t\t\t\t\titem = self.itemFactory('file-item');\n\t\t\t\t\t\t\tprogress = document.getElementById(\n\t\t\t\t\t\t\t\t'pgs' + item.getAttribute('id')\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tself.mm\n\t\t\t\t\t\t\t\t.filesUpload(theFile.type, upload, progress)\n\t\t\t\t\t\t\t\t.then(result => {\n\t\t\t\t\t\t\t\t\titem.setAttribute('data-source', result.filePath);\n\t\t\t\t\t\t\t\t\tlet link = document.createElement('a');\n\t\t\t\t\t\t\t\t\tlink.href = result.filePath;\n\t\t\t\t\t\t\t\t\tlink.innerHTML = result.fileName;\n\t\t\t\t\t\t\t\t\titem.appendChild(link);\n\t\t\t\t\t\t\t\t\tanime({\n\t\t\t\t\t\t\t\t\t\ttargets: progress,\n\t\t\t\t\t\t\t\t\t\twidth: 0,\n\t\t\t\t\t\t\t\t\t\teasing: 'easeInOutQuint',\n\t\t\t\t\t\t\t\t\t\tduration: 1000,\n\t\t\t\t\t\t\t\t\t\tcomplete: () => {\n\t\t\t\t\t\t\t\t\t\t\titem.removeChild(progress);\n\t\t\t\t\t\t\t\t\t\t\titem.appendChild(remove);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t})(file);\n\t\t\t// Read in the image file as a data URL.\n\t\t\treader.readAsDataURL(file);\n\t\t}\n\t}\n\titemFactory(type = null) {\n\t\t//get counts for lists\n\t\tvar mediaCount = this.imageList.childNodes.length;\n\t\tvar fileCount = this.fileList.childNodes.length;\n\t\tif (mediaCount < 0) mediaCount = 0;\n\t\tif (fileCount < 0) fileCount = 0;\n\t\tvar item = document.createElement('div');\n\t\titem.className = type;\n\t\tvar progress = document.createElement('div');\n\t\tprogress.className = 'item-progress';\n\t\titem.appendChild(progress);\n\n\t\tif (type == 'img-item' || type == 'video-item') {\n\t\t\tthis.imageList.appendChild(item);\n\t\t\tprogress.setAttribute('id', 'pgs' + mediaCount);\n\t\t\titem.setAttribute('id', mediaCount);\n\t\t} else {\n\t\t\tthis.fileList.appendChild(item);\n\t\t\tprogress.setAttribute('id', 'pgs' + fileCount);\n\t\t\titem.setAttribute('id', fileCount);\n\t\t}\n\t\treturn item;\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\tremoveFile(e) {\n\t\tvar item = e.target.parentNode.parentNode;\n\t\tswitch (item.className) {\n\t\t\tcase 'img-item':\n\t\t\tcase 'video-item':\n\t\t\t\tthis.imageList.removeChild(item);\n\t\t\t\tbreak;\n\t\t\tcase 'audio-item':\n\t\t\tcase 'file-item':\n\t\t\t\tthis.fileList.removeChild(item);\n\t\t\t\tbreak;\n\t\t}\n\t\tnotify.alert('File Removed!', true);\n\t}\n\n\thandleFileActions(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet self = this;\n\t\tlet rawList = [];\n\t\tlet sortedList = [];\n\t\tlet notOnTheList = [];\n\n\t\tswitch (e.type) {\n\t\t\tcase 'dragover':\n\t\t\t\te.dataTransfer.dropEffect = 'copy'; // Explicitly show this is a copy.\n\t\t\t\tbreak;\n\t\t\tcase 'change':\n\t\t\tcase 'drop':\n\t\t\t\te.type == 'drop'\n\t\t\t\t\t? (rawList = e.dataTransfer.files)\n\t\t\t\t\t: (rawList = e.target.files);\n\t\t\t\tfor (var i = 0, f; (f = rawList[i]); i++) {\n\t\t\t\t\t// check witch files are cool to upload\n\t\t\t\t\tif (this.accetableFiles.includes(f.type)) {\n\t\t\t\t\t\tsortedList.push(f);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnotOnTheList.push(f);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//send for sorting\n\t\t\t\tself.sortFiles(sortedList);\n\t\t\t\tbreak;\n\t\t}\n\t}\n}\n","/**!\n * Sortable 1.15.0\n * @author\tRubaXa <trash@rubaxa.org>\n * @author\towenm <owen23355@gmail.com>\n * @license MIT\n */\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nvar version = \"1.15.0\";\n\nfunction userAgent(pattern) {\n if (typeof window !== 'undefined' && window.navigator) {\n return !! /*@__PURE__*/navigator.userAgent.match(pattern);\n }\n}\n\nvar IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\\.|msie|iemobile|Windows Phone)/i);\nvar Edge = userAgent(/Edge/i);\nvar FireFox = userAgent(/firefox/i);\nvar Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);\nvar IOS = userAgent(/iP(ad|od|hone)/i);\nvar ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);\n\nvar captureMode = {\n capture: false,\n passive: false\n};\n\nfunction on(el, event, fn) {\n el.addEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction off(el, event, fn) {\n el.removeEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction matches(\n/**HTMLElement*/\nel,\n/**String*/\nselector) {\n if (!selector) return;\n selector[0] === '>' && (selector = selector.substring(1));\n\n if (el) {\n try {\n if (el.matches) {\n return el.matches(selector);\n } else if (el.msMatchesSelector) {\n return el.msMatchesSelector(selector);\n } else if (el.webkitMatchesSelector) {\n return el.webkitMatchesSelector(selector);\n }\n } catch (_) {\n return false;\n }\n }\n\n return false;\n}\n\nfunction getParentOrHost(el) {\n return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;\n}\n\nfunction closest(\n/**HTMLElement*/\nel,\n/**String*/\nselector,\n/**HTMLElement*/\nctx, includeCTX) {\n if (el) {\n ctx = ctx || document;\n\n do {\n if (selector != null && (selector[0] === '>' ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {\n return el;\n }\n\n if (el === ctx) break;\n /* jshint boss:true */\n } while (el = getParentOrHost(el));\n }\n\n return null;\n}\n\nvar R_SPACE = /\\s+/g;\n\nfunction toggleClass(el, name, state) {\n if (el && name) {\n if (el.classList) {\n el.classList[state ? 'add' : 'remove'](name);\n } else {\n var className = (' ' + el.className + ' ').replace(R_SPACE, ' ').replace(' ' + name + ' ', ' ');\n el.className = (className + (state ? ' ' + name : '')).replace(R_SPACE, ' ');\n }\n }\n}\n\nfunction css(el, prop, val) {\n var style = el && el.style;\n\n if (style) {\n if (val === void 0) {\n if (document.defaultView && document.defaultView.getComputedStyle) {\n val = document.defaultView.getComputedStyle(el, '');\n } else if (el.currentStyle) {\n val = el.currentStyle;\n }\n\n return prop === void 0 ? val : val[prop];\n } else {\n if (!(prop in style) && prop.indexOf('webkit') === -1) {\n prop = '-webkit-' + prop;\n }\n\n style[prop] = val + (typeof val === 'string' ? '' : 'px');\n }\n }\n}\n\nfunction matrix(el, selfOnly) {\n var appliedTransforms = '';\n\n if (typeof el === 'string') {\n appliedTransforms = el;\n } else {\n do {\n var transform = css(el, 'transform');\n\n if (transform && transform !== 'none') {\n appliedTransforms = transform + ' ' + appliedTransforms;\n }\n /* jshint boss:true */\n\n } while (!selfOnly && (el = el.parentNode));\n }\n\n var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;\n /*jshint -W056 */\n\n return matrixFn && new matrixFn(appliedTransforms);\n}\n\nfunction find(ctx, tagName, iterator) {\n if (ctx) {\n var list = ctx.getElementsByTagName(tagName),\n i = 0,\n n = list.length;\n\n if (iterator) {\n for (; i < n; i++) {\n iterator(list[i], i);\n }\n }\n\n return list;\n }\n\n return [];\n}\n\nfunction getWindowScrollingElement() {\n var scrollingElement = document.scrollingElement;\n\n if (scrollingElement) {\n return scrollingElement;\n } else {\n return document.documentElement;\n }\n}\n/**\n * Returns the \"bounding client rect\" of given element\n * @param {HTMLElement} el The element whose boundingClientRect is wanted\n * @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container\n * @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr\n * @param {[Boolean]} undoScale Whether the container's scale() should be undone\n * @param {[HTMLElement]} container The parent the element will be placed in\n * @return {Object} The boundingClientRect of el, with specified adjustments\n */\n\n\nfunction getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {\n if (!el.getBoundingClientRect && el !== window) return;\n var elRect, top, left, bottom, right, height, width;\n\n if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {\n elRect = el.getBoundingClientRect();\n top = elRect.top;\n left = elRect.left;\n bottom = elRect.bottom;\n right = elRect.right;\n height = elRect.height;\n width = elRect.width;\n } else {\n top = 0;\n left = 0;\n bottom = window.innerHeight;\n right = window.innerWidth;\n height = window.innerHeight;\n width = window.innerWidth;\n }\n\n if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {\n // Adjust for translate()\n container = container || el.parentNode; // solves #1123 (see: https://stackoverflow.com/a/37953806/6088312)\n // Not needed on <= IE11\n\n if (!IE11OrLess) {\n do {\n if (container && container.getBoundingClientRect && (css(container, 'transform') !== 'none' || relativeToNonStaticParent && css(container, 'position') !== 'static')) {\n var containerRect = container.getBoundingClientRect(); // Set relative to edges of padding box of container\n\n top -= containerRect.top + parseInt(css(container, 'border-top-width'));\n left -= containerRect.left + parseInt(css(container, 'border-left-width'));\n bottom = top + elRect.height;\n right = left + elRect.width;\n break;\n }\n /* jshint boss:true */\n\n } while (container = container.parentNode);\n }\n }\n\n if (undoScale && el !== window) {\n // Adjust for scale()\n var elMatrix = matrix(container || el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d;\n\n if (elMatrix) {\n top /= scaleY;\n left /= scaleX;\n width /= scaleX;\n height /= scaleY;\n bottom = top + height;\n right = left + width;\n }\n }\n\n return {\n top: top,\n left: left,\n bottom: bottom,\n right: right,\n width: width,\n height: height\n };\n}\n/**\n * Checks if a side of an element is scrolled past a side of its parents\n * @param {HTMLElement} el The element who's side being scrolled out of view is in question\n * @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')\n * @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')\n * @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element\n */\n\n\nfunction isScrolledPast(el, elSide, parentSide) {\n var parent = getParentAutoScrollElement(el, true),\n elSideVal = getRect(el)[elSide];\n /* jshint boss:true */\n\n while (parent) {\n var parentSideVal = getRect(parent)[parentSide],\n visible = void 0;\n\n if (parentSide === 'top' || parentSide === 'left') {\n visible = elSideVal >= parentSideVal;\n } else {\n visible = elSideVal <= parentSideVal;\n }\n\n if (!visible) return parent;\n if (parent === getWindowScrollingElement()) break;\n parent = getParentAutoScrollElement(parent, false);\n }\n\n return false;\n}\n/**\n * Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)\n * and non-draggable elements\n * @param {HTMLElement} el The parent element\n * @param {Number} childNum The index of the child\n * @param {Object} options Parent Sortable's options\n * @return {HTMLElement} The child at index childNum, or null if not found\n */\n\n\nfunction getChild(el, childNum, options, includeDragEl) {\n var currentChild = 0,\n i = 0,\n children = el.children;\n\n while (i < children.length) {\n if (children[i].style.display !== 'none' && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {\n if (currentChild === childNum) {\n return children[i];\n }\n\n currentChild++;\n }\n\n i++;\n }\n\n return null;\n}\n/**\n * Gets the last child in the el, ignoring ghostEl or invisible elements (clones)\n * @param {HTMLElement} el Parent element\n * @param {selector} selector Any other elements that should be ignored\n * @return {HTMLElement} The last child, ignoring ghostEl\n */\n\n\nfunction lastChild(el, selector) {\n var last = el.lastElementChild;\n\n while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) {\n last = last.previousElementSibling;\n }\n\n return last || null;\n}\n/**\n * Returns the index of an element within its parent for a selected set of\n * elements\n * @param {HTMLElement} el\n * @param {selector} selector\n * @return {number}\n */\n\n\nfunction index(el, selector) {\n var index = 0;\n\n if (!el || !el.parentNode) {\n return -1;\n }\n /* jshint boss:true */\n\n\n while (el = el.previousElementSibling) {\n if (el.nodeName.toUpperCase() !== 'TEMPLATE' && el !== Sortable.clone && (!selector || matches(el, selector))) {\n index++;\n }\n }\n\n return index;\n}\n/**\n * Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.\n * The value is returned in real pixels.\n * @param {HTMLElement} el\n * @return {Array} Offsets in the format of [left, top]\n */\n\n\nfunction getRelativeScrollOffset(el) {\n var offsetLeft = 0,\n offsetTop = 0,\n winScroller = getWindowScrollingElement();\n\n if (el) {\n do {\n var elMatrix = matrix(el),\n scaleX = elMatrix.a,\n scaleY = elMatrix.d;\n offsetLeft += el.scrollLeft * scaleX;\n offsetTop += el.scrollTop * scaleY;\n } while (el !== winScroller && (el = el.parentNode));\n }\n\n return [offsetLeft, offsetTop];\n}\n/**\n * Returns the index of the object within the given array\n * @param {Array} arr Array that may or may not hold the object\n * @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find\n * @return {Number} The index of the object in the array, or -1\n */\n\n\nfunction indexOfObject(arr, obj) {\n for (var i in arr) {\n if (!arr.hasOwnProperty(i)) continue;\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);\n }\n }\n\n return -1;\n}\n\nfunction getParentAutoScrollElement(el, includeSelf) {\n // skip to window\n if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();\n var elem = el;\n var gotSelf = false;\n\n do {\n // we don't need to get elem css if it isn't even overflowing in the first place (performance)\n if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {\n var elemCSS = css(elem);\n\n if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == 'auto' || elemCSS.overflowX == 'scroll') || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == 'auto' || elemCSS.overflowY == 'scroll')) {\n if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();\n if (gotSelf || includeSelf) return elem;\n gotSelf = true;\n }\n }\n /* jshint boss:true */\n\n } while (elem = elem.parentNode);\n\n return getWindowScrollingElement();\n}\n\nfunction extend(dst, src) {\n if (dst && src) {\n for (var key in src) {\n if (src.hasOwnProperty(key)) {\n dst[key] = src[key];\n }\n }\n }\n\n return dst;\n}\n\nfunction isRectEqual(rect1, rect2) {\n return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);\n}\n\nvar _throttleTimeout;\n\nfunction throttle(callback, ms) {\n return function () {\n if (!_throttleTimeout) {\n var args = arguments,\n _this = this;\n\n if (args.length === 1) {\n callback.call(_this, args[0]);\n } else {\n callback.apply(_this, args);\n }\n\n _throttleTimeout = setTimeout(function () {\n _throttleTimeout = void 0;\n }, ms);\n }\n };\n}\n\nfunction cancelThrottle() {\n clearTimeout(_throttleTimeout);\n _throttleTimeout = void 0;\n}\n\nfunction scrollBy(el, x, y) {\n el.scrollLeft += x;\n el.scrollTop += y;\n}\n\nfunction clone(el) {\n var Polymer = window.Polymer;\n var $ = window.jQuery || window.Zepto;\n\n if (Polymer && Polymer.dom) {\n return Polymer.dom(el).cloneNode(true);\n } else if ($) {\n return $(el).clone(true)[0];\n } else {\n return el.cloneNode(true);\n }\n}\n\nfunction setRect(el, rect) {\n css(el, 'position', 'absolute');\n css(el, 'top', rect.top);\n css(el, 'left', rect.left);\n css(el, 'width', rect.width);\n css(el, 'height', rect.height);\n}\n\nfunction unsetRect(el) {\n css(el, 'position', '');\n css(el, 'top', '');\n css(el, 'left', '');\n css(el, 'width', '');\n css(el, 'height', '');\n}\n\nvar expando = 'Sortable' + new Date().getTime();\n\nfunction AnimationStateManager() {\n var animationStates = [],\n animationCallbackId;\n return {\n captureAnimationState: function captureAnimationState() {\n animationStates = [];\n if (!this.options.animation) return;\n var children = [].slice.call(this.el.children);\n children.forEach(function (child) {\n if (css(child, 'display') === 'none' || child === Sortable.ghost) return;\n animationStates.push({\n target: child,\n rect: getRect(child)\n });\n\n var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect); // If animating: compensate for current animation\n\n\n if (child.thisAnimationDuration) {\n var childMatrix = matrix(child, true);\n\n if (childMatrix) {\n fromRect.top -= childMatrix.f;\n fromRect.left -= childMatrix.e;\n }\n }\n\n child.fromRect = fromRect;\n });\n },\n addAnimationState: function addAnimationState(state) {\n animationStates.push(state);\n },\n removeAnimationState: function removeAnimationState(target) {\n animationStates.splice(indexOfObject(animationStates, {\n target: target\n }), 1);\n },\n animateAll: function animateAll(callback) {\n var _this = this;\n\n if (!this.options.animation) {\n clearTimeout(animationCallbackId);\n if (typeof callback === 'function') callback();\n return;\n }\n\n var animating = false,\n animationTime = 0;\n animationStates.forEach(function (state) {\n var time = 0,\n target = state.target,\n fromRect = target.fromRect,\n toRect = getRect(target),\n prevFromRect = target.prevFromRect,\n prevToRect = target.prevToRect,\n animatingRect = state.rect,\n targetMatrix = matrix(target, true);\n\n if (targetMatrix) {\n // Compensate for current animation\n toRect.top -= targetMatrix.f;\n toRect.left -= targetMatrix.e;\n }\n\n target.toRect = toRect;\n\n if (target.thisAnimationDuration) {\n // Could also check if animatingRect is between fromRect and toRect\n if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect\n (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {\n // If returning to same place as started from animation and on same axis\n time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);\n }\n } // if fromRect != toRect: animate\n\n\n if (!isRectEqual(toRect, fromRect)) {\n target.prevFromRect = fromRect;\n target.prevToRect = toRect;\n\n if (!time) {\n time = _this.options.animation;\n }\n\n _this.animate(target, animatingRect, toRect, time);\n }\n\n if (time) {\n animating = true;\n animationTime = Math.max(animationTime, time);\n clearTimeout(target.animationResetTimer);\n target.animationResetTimer = setTimeout(function () {\n target.animationTime = 0;\n target.prevFromRect = null;\n target.fromRect = null;\n target.prevToRect = null;\n target.thisAnimationDuration = null;\n }, time);\n target.thisAnimationDuration = time;\n }\n });\n clearTimeout(animationCallbackId);\n\n if (!animating) {\n if (typeof callback === 'function') callback();\n } else {\n animationCallbackId = setTimeout(function () {\n if (typeof callback === 'function') callback();\n }, animationTime);\n }\n\n animationStates = [];\n },\n animate: function animate(target, currentRect, toRect, duration) {\n if (duration) {\n css(target, 'transition', '');\n css(target, 'transform', '');\n var elMatrix = matrix(this.el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d,\n translateX = (currentRect.left - toRect.left) / (scaleX || 1),\n translateY = (currentRect.top - toRect.top) / (scaleY || 1);\n target.animatingX = !!translateX;\n target.animatingY = !!translateY;\n css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');\n this.forRepaintDummy = repaint(target); // repaint\n\n css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : ''));\n css(target, 'transform', 'translate3d(0,0,0)');\n typeof target.animated === 'number' && clearTimeout(target.animated);\n target.animated = setTimeout(function () {\n css(target, 'transition', '');\n css(target, 'transform', '');\n target.animated = false;\n target.animatingX = false;\n target.animatingY = false;\n }, duration);\n }\n }\n };\n}\n\nfunction repaint(target) {\n return target.offsetWidth;\n}\n\nfunction calculateRealTime(animatingRect, fromRect, toRect, options) {\n return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;\n}\n\nvar plugins = [];\nvar defaults = {\n initializeByDefault: true\n};\nvar PluginManager = {\n mount: function mount(plugin) {\n // Set default static properties\n for (var option in defaults) {\n if (defaults.hasOwnProperty(option) && !(option in plugin)) {\n plugin[option] = defaults[option];\n }\n }\n\n plugins.forEach(function (p) {\n if (p.pluginName === plugin.pluginName) {\n throw \"Sortable: Cannot mount plugin \".concat(plugin.pluginName, \" more than once\");\n }\n });\n plugins.push(plugin);\n },\n pluginEvent: function pluginEvent(eventName, sortable, evt) {\n var _this = this;\n\n this.eventCanceled = false;\n\n evt.cancel = function () {\n _this.eventCanceled = true;\n };\n\n var eventNameGlobal = eventName + 'Global';\n plugins.forEach(function (plugin) {\n if (!sortable[plugin.pluginName]) return; // Fire global events if it exists in this sortable\n\n if (sortable[plugin.pluginName][eventNameGlobal]) {\n sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({\n sortable: sortable\n }, evt));\n } // Only fire plugin event if plugin is enabled in this sortable,\n // and plugin has event defined\n\n\n if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {\n sortable[plugin.pluginName][eventName](_objectSpread2({\n sortable: sortable\n }, evt));\n }\n });\n },\n initializePlugins: function initializePlugins(sortable, el, defaults, options) {\n plugins.forEach(function (plugin) {\n var pluginName = plugin.pluginName;\n if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;\n var initialized = new plugin(sortable, el, sortable.options);\n initialized.sortable = sortable;\n initialized.options = sortable.options;\n sortable[pluginName] = initialized; // Add default options from plugin\n\n _extends(defaults, initialized.defaults);\n });\n\n for (var option in sortable.options) {\n if (!sortable.options.hasOwnProperty(option)) continue;\n var modified = this.modifyOption(sortable, option, sortable.options[option]);\n\n if (typeof modified !== 'undefined') {\n sortable.options[option] = modified;\n }\n }\n },\n getEventProperties: function getEventProperties(name, sortable) {\n var eventProperties = {};\n plugins.forEach(function (plugin) {\n if (typeof plugin.eventProperties !== 'function') return;\n\n _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));\n });\n return eventProperties;\n },\n modifyOption: function modifyOption(sortable, name, value) {\n var modifiedValue;\n plugins.forEach(function (plugin) {\n // Plugin must exist on the Sortable\n if (!sortable[plugin.pluginName]) return; // If static option listener exists for this option, call in the context of the Sortable's instance of this plugin\n\n if (plugin.optionListeners && typeof plugin.optionListeners[name] === 'function') {\n modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);\n }\n });\n return modifiedValue;\n }\n};\n\nfunction dispatchEvent(_ref) {\n var sortable = _ref.sortable,\n rootEl = _ref.rootEl,\n name = _ref.name,\n targetEl = _ref.targetEl,\n cloneEl = _ref.cloneEl,\n toEl = _ref.toEl,\n fromEl = _ref.fromEl,\n oldIndex = _ref.oldIndex,\n newIndex = _ref.newIndex,\n oldDraggableIndex = _ref.oldDraggableIndex,\n newDraggableIndex = _ref.newDraggableIndex,\n originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n extraEventProperties = _ref.extraEventProperties;\n sortable = sortable || rootEl && rootEl[expando];\n if (!sortable) return;\n var evt,\n options = sortable.options,\n onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1); // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent(name, {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent(name, true, true);\n }\n\n evt.to = toEl || rootEl;\n evt.from = fromEl || rootEl;\n evt.item = targetEl || rootEl;\n evt.clone = cloneEl;\n evt.oldIndex = oldIndex;\n evt.newIndex = newIndex;\n evt.oldDraggableIndex = oldDraggableIndex;\n evt.newDraggableIndex = newDraggableIndex;\n evt.originalEvent = originalEvent;\n evt.pullMode = putSortable ? putSortable.lastPutMode : undefined;\n\n var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));\n\n for (var option in allEventProperties) {\n evt[option] = allEventProperties[option];\n }\n\n if (rootEl) {\n rootEl.dispatchEvent(evt);\n }\n\n if (options[onName]) {\n options[onName].call(sortable, evt);\n }\n}\n\nvar _excluded = [\"evt\"];\n\nvar pluginEvent = function pluginEvent(eventName, sortable) {\n var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n originalEvent = _ref.evt,\n data = _objectWithoutProperties(_ref, _excluded);\n\n PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({\n dragEl: dragEl,\n parentEl: parentEl,\n ghostEl: ghostEl,\n rootEl: rootEl,\n nextEl: nextEl,\n lastDownEl: lastDownEl,\n cloneEl: cloneEl,\n cloneHidden: cloneHidden,\n dragStarted: moved,\n putSortable: putSortable,\n activeSortable: Sortable.active,\n originalEvent: originalEvent,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n hideGhostForTarget: _hideGhostForTarget,\n unhideGhostForTarget: _unhideGhostForTarget,\n cloneNowHidden: function cloneNowHidden() {\n cloneHidden = true;\n },\n cloneNowShown: function cloneNowShown() {\n cloneHidden = false;\n },\n dispatchSortableEvent: function dispatchSortableEvent(name) {\n _dispatchEvent({\n sortable: sortable,\n name: name,\n originalEvent: originalEvent\n });\n }\n }, data));\n};\n\nfunction _dispatchEvent(info) {\n dispatchEvent(_objectSpread2({\n putSortable: putSortable,\n cloneEl: cloneEl,\n targetEl: dragEl,\n rootEl: rootEl,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex\n }, info));\n}\n\nvar dragEl,\n parentEl,\n ghostEl,\n rootEl,\n nextEl,\n lastDownEl,\n cloneEl,\n cloneHidden,\n oldIndex,\n newIndex,\n oldDraggableIndex,\n newDraggableIndex,\n activeGroup,\n putSortable,\n awaitingDragStarted = false,\n ignoreNextClick = false,\n sortables = [],\n tapEvt,\n touchEvt,\n lastDx,\n lastDy,\n tapDistanceLeft,\n tapDistanceTop,\n moved,\n lastTarget,\n lastDirection,\n pastFirstInvertThresh = false,\n isCircumstantialInvert = false,\n targetMoveDistance,\n // For positioning ghost absolutely\nghostRelativeParent,\n ghostRelativeParentInitialScroll = [],\n // (left, top)\n_silent = false,\n savedInputChecked = [];\n/** @const */\n\nvar documentExists = typeof document !== 'undefined',\n PositionGhostAbsolutely = IOS,\n CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float',\n // This will not pass for IE9, because IE9 DnD only works on anchors\nsupportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'),\n supportCssPointerEvents = function () {\n if (!documentExists) return; // false when <= IE11\n\n if (IE11OrLess) {\n return false;\n }\n\n var el = document.createElement('x');\n el.style.cssText = 'pointer-events:auto';\n return el.style.pointerEvents === 'auto';\n}(),\n _detectDirection = function _detectDirection(el, options) {\n var elCSS = css(el),\n elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth),\n child1 = getChild(el, 0, options),\n child2 = getChild(el, 1, options),\n firstChildCSS = child1 && css(child1),\n secondChildCSS = child2 && css(child2),\n firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width,\n secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;\n\n if (elCSS.display === 'flex') {\n return elCSS.flexDirection === 'column' || elCSS.flexDirection === 'column-reverse' ? 'vertical' : 'horizontal';\n }\n\n if (elCSS.display === 'grid') {\n return elCSS.gridTemplateColumns.split(' ').length <= 1 ? 'vertical' : 'horizontal';\n }\n\n if (child1 && firstChildCSS[\"float\"] && firstChildCSS[\"float\"] !== 'none') {\n var touchingSideChild2 = firstChildCSS[\"float\"] === 'left' ? 'left' : 'right';\n return child2 && (secondChildCSS.clear === 'both' || secondChildCSS.clear === touchingSideChild2) ? 'vertical' : 'horizontal';\n }\n\n return child1 && (firstChildCSS.display === 'block' || firstChildCSS.display === 'flex' || firstChildCSS.display === 'table' || firstChildCSS.display === 'grid' || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === 'none' || child2 && elCSS[CSSFloatProperty] === 'none' && firstChildWidth + secondChildWidth > elWidth) ? 'vertical' : 'horizontal';\n},\n _dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {\n var dragElS1Opp = vertical ? dragRect.left : dragRect.top,\n dragElS2Opp = vertical ? dragRect.right : dragRect.bottom,\n dragElOppLength = vertical ? dragRect.width : dragRect.height,\n targetS1Opp = vertical ? targetRect.left : targetRect.top,\n targetS2Opp = vertical ? targetRect.right : targetRect.bottom,\n targetOppLength = vertical ? targetRect.width : targetRect.height;\n return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;\n},\n\n/**\r\n * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.\r\n * @param {Number} x X position\r\n * @param {Number} y Y position\r\n * @return {HTMLElement} Element of the first found nearest Sortable\r\n */\n_detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {\n var ret;\n sortables.some(function (sortable) {\n var threshold = sortable[expando].options.emptyInsertThreshold;\n if (!threshold || lastChild(sortable)) return;\n var rect = getRect(sortable),\n insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold,\n insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;\n\n if (insideHorizontally && insideVertically) {\n return ret = sortable;\n }\n });\n return ret;\n},\n _prepareGroup = function _prepareGroup(options) {\n function toFn(value, pull) {\n return function (to, from, dragEl, evt) {\n var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;\n\n if (value == null && (pull || sameGroup)) {\n // Default pull value\n // Default pull and put value if same group\n return true;\n } else if (value == null || value === false) {\n return false;\n } else if (pull && value === 'clone') {\n return value;\n } else if (typeof value === 'function') {\n return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);\n } else {\n var otherGroup = (pull ? to : from).options.group.name;\n return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;\n }\n };\n }\n\n var group = {};\n var originalGroup = options.group;\n\n if (!originalGroup || _typeof(originalGroup) != 'object') {\n originalGroup = {\n name: originalGroup\n };\n }\n\n group.name = originalGroup.name;\n group.checkPull = toFn(originalGroup.pull, true);\n group.checkPut = toFn(originalGroup.put);\n group.revertClone = originalGroup.revertClone;\n options.group = group;\n},\n _hideGhostForTarget = function _hideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', 'none');\n }\n},\n _unhideGhostForTarget = function _unhideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', '');\n }\n}; // #1184 fix - Prevent click event on fallback if dragged but item not changed position\n\n\nif (documentExists && !ChromeForAndroid) {\n document.addEventListener('click', function (evt) {\n if (ignoreNextClick) {\n evt.preventDefault();\n evt.stopPropagation && evt.stopPropagation();\n evt.stopImmediatePropagation && evt.stopImmediatePropagation();\n ignoreNextClick = false;\n return false;\n }\n }, true);\n}\n\nvar nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {\n if (dragEl) {\n evt = evt.touches ? evt.touches[0] : evt;\n\n var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);\n\n if (nearest) {\n // Create imitation event\n var event = {};\n\n for (var i in evt) {\n if (evt.hasOwnProperty(i)) {\n event[i] = evt[i];\n }\n }\n\n event.target = event.rootEl = nearest;\n event.preventDefault = void 0;\n event.stopPropagation = void 0;\n\n nearest[expando]._onDragOver(event);\n }\n }\n};\n\nvar _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {\n if (dragEl) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target);\n }\n};\n/**\r\n * @class Sortable\r\n * @param {HTMLElement} el\r\n * @param {Object} [options]\r\n */\n\n\nfunction Sortable(el, options) {\n if (!(el && el.nodeType && el.nodeType === 1)) {\n throw \"Sortable: `el` must be an HTMLElement, not \".concat({}.toString.call(el));\n }\n\n this.el = el; // root element\n\n this.options = options = _extends({}, options); // Export instance\n\n el[expando] = this;\n var defaults = {\n group: null,\n sort: true,\n disabled: false,\n store: null,\n handle: null,\n draggable: /^[uo]l$/i.test(el.nodeName) ? '>li' : '>*',\n swapThreshold: 1,\n // percentage; 0 <= x <= 1\n invertSwap: false,\n // invert always\n invertedSwapThreshold: null,\n // will be set to same as swapThreshold if default\n removeCloneOnHide: true,\n direction: function direction() {\n return _detectDirection(el, this.options);\n },\n ghostClass: 'sortable-ghost',\n chosenClass: 'sortable-chosen',\n dragClass: 'sortable-drag',\n ignore: 'a, img',\n filter: null,\n preventOnFilter: true,\n animation: 0,\n easing: null,\n setData: function setData(dataTransfer, dragEl) {\n dataTransfer.setData('Text', dragEl.textContent);\n },\n dropBubble: false,\n dragoverBubble: false,\n dataIdAttr: 'data-id',\n delay: 0,\n delayOnTouchOnly: false,\n touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,\n forceFallback: false,\n fallbackClass: 'sortable-fallback',\n fallbackOnBody: false,\n fallbackTolerance: 0,\n fallbackOffset: {\n x: 0,\n y: 0\n },\n supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,\n emptyInsertThreshold: 5\n };\n PluginManager.initializePlugins(this, el, defaults); // Set default options\n\n for (var name in defaults) {\n !(name in options) && (options[name] = defaults[name]);\n }\n\n _prepareGroup(options); // Bind all private methods\n\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n } // Setup drag mode\n\n\n this.nativeDraggable = options.forceFallback ? false : supportDraggable;\n\n if (this.nativeDraggable) {\n // Touch start threshold cannot be greater than the native dragstart threshold\n this.options.touchStartThreshold = 1;\n } // Bind events\n\n\n if (options.supportPointer) {\n on(el, 'pointerdown', this._onTapStart);\n } else {\n on(el, 'mousedown', this._onTapStart);\n on(el, 'touchstart', this._onTapStart);\n }\n\n if (this.nativeDraggable) {\n on(el, 'dragover', this);\n on(el, 'dragenter', this);\n }\n\n sortables.push(this.el); // Restore sorting\n\n options.store && options.store.get && this.sort(options.store.get(this) || []); // Add animation state manager\n\n _extends(this, AnimationStateManager());\n}\n\nSortable.prototype =\n/** @lends Sortable.prototype */\n{\n constructor: Sortable,\n _isOutsideThisEl: function _isOutsideThisEl(target) {\n if (!this.el.contains(target) && target !== this.el) {\n lastTarget = null;\n }\n },\n _getDirection: function _getDirection(evt, target) {\n return typeof this.options.direction === 'function' ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;\n },\n _onTapStart: function _onTapStart(\n /** Event|TouchEvent */\n evt) {\n if (!evt.cancelable) return;\n\n var _this = this,\n el = this.el,\n options = this.options,\n preventOnFilter = options.preventOnFilter,\n type = evt.type,\n touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === 'touch' && evt,\n target = (touch || evt).target,\n originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target,\n filter = options.filter;\n\n _saveInputCheckedState(el); // Don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group.\n\n\n if (dragEl) {\n return;\n }\n\n if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {\n return; // only left button and enabled\n } // cancel dnd if original target is content editable\n\n\n if (originalTarget.isContentEditable) {\n return;\n } // Safari ignores further event handling after mousedown\n\n\n if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {\n return;\n }\n\n target = closest(target, options.draggable, el, false);\n\n if (target && target.animated) {\n return;\n }\n\n if (lastDownEl === target) {\n // Ignoring duplicate `down`\n return;\n } // Get the index of the dragged element within its parent\n\n\n oldIndex = index(target);\n oldDraggableIndex = index(target, options.draggable); // Check filter\n\n if (typeof filter === 'function') {\n if (filter.call(this, evt, target, this)) {\n _dispatchEvent({\n sortable: _this,\n rootEl: originalTarget,\n name: 'filter',\n targetEl: target,\n toEl: el,\n fromEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n } else if (filter) {\n filter = filter.split(',').some(function (criteria) {\n criteria = closest(originalTarget, criteria.trim(), el, false);\n\n if (criteria) {\n _dispatchEvent({\n sortable: _this,\n rootEl: criteria,\n name: 'filter',\n targetEl: target,\n fromEl: el,\n toEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n return true;\n }\n });\n\n if (filter) {\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n }\n\n if (options.handle && !closest(originalTarget, options.handle, el, false)) {\n return;\n } // Prepare `dragstart`\n\n\n this._prepareDragStart(evt, touch, target);\n },\n _prepareDragStart: function _prepareDragStart(\n /** Event */\n evt,\n /** Touch */\n touch,\n /** HTMLElement */\n target) {\n var _this = this,\n el = _this.el,\n options = _this.options,\n ownerDocument = el.ownerDocument,\n dragStartFn;\n\n if (target && !dragEl && target.parentNode === el) {\n var dragRect = getRect(target);\n rootEl = el;\n dragEl = target;\n parentEl = dragEl.parentNode;\n nextEl = dragEl.nextSibling;\n lastDownEl = target;\n activeGroup = options.group;\n Sortable.dragged = dragEl;\n tapEvt = {\n target: dragEl,\n clientX: (touch || evt).clientX,\n clientY: (touch || evt).clientY\n };\n tapDistanceLeft = tapEvt.clientX - dragRect.left;\n tapDistanceTop = tapEvt.clientY - dragRect.top;\n this._lastX = (touch || evt).clientX;\n this._lastY = (touch || evt).clientY;\n dragEl.style['will-change'] = 'all';\n\n dragStartFn = function dragStartFn() {\n pluginEvent('delayEnded', _this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n _this._onDrop();\n\n return;\n } // Delayed drag has been triggered\n // we can re-enable the events: touchmove/mousemove\n\n\n _this._disableDelayedDragEvents();\n\n if (!FireFox && _this.nativeDraggable) {\n dragEl.draggable = true;\n } // Bind the events: dragstart/dragend\n\n\n _this._triggerDragStart(evt, touch); // Drag start event\n\n\n _dispatchEvent({\n sortable: _this,\n name: 'choose',\n originalEvent: evt\n }); // Chosen item\n\n\n toggleClass(dragEl, options.chosenClass, true);\n }; // Disable \"draggable\"\n\n\n options.ignore.split(',').forEach(function (criteria) {\n find(dragEl, criteria.trim(), _disableDraggable);\n });\n on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mouseup', _this._onDrop);\n on(ownerDocument, 'touchend', _this._onDrop);\n on(ownerDocument, 'touchcancel', _this._onDrop); // Make dragEl draggable (must be before delay for FireFox)\n\n if (FireFox && this.nativeDraggable) {\n this.options.touchStartThreshold = 4;\n dragEl.draggable = true;\n }\n\n pluginEvent('delayStart', this, {\n evt: evt\n }); // Delay is impossible for native DnD in Edge or IE\n\n if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n } // If the user moves the pointer or let go the click or touch\n // before the delay has been reached:\n // disable the delayed drag\n\n\n on(ownerDocument, 'mouseup', _this._disableDelayedDrag);\n on(ownerDocument, 'touchend', _this._disableDelayedDrag);\n on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);\n on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler);\n on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);\n options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);\n _this._dragStartTimer = setTimeout(dragStartFn, options.delay);\n } else {\n dragStartFn();\n }\n }\n },\n _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(\n /** TouchEvent|PointerEvent **/\n e) {\n var touch = e.touches ? e.touches[0] : e;\n\n if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) {\n this._disableDelayedDrag();\n }\n },\n _disableDelayedDrag: function _disableDelayedDrag() {\n dragEl && _disableDraggable(dragEl);\n clearTimeout(this._dragStartTimer);\n\n this._disableDelayedDragEvents();\n },\n _disableDelayedDragEvents: function _disableDelayedDragEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._disableDelayedDrag);\n off(ownerDocument, 'touchend', this._disableDelayedDrag);\n off(ownerDocument, 'touchcancel', this._disableDelayedDrag);\n off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler);\n },\n _triggerDragStart: function _triggerDragStart(\n /** Event */\n evt,\n /** Touch */\n touch) {\n touch = touch || evt.pointerType == 'touch' && evt;\n\n if (!this.nativeDraggable || touch) {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._onTouchMove);\n } else if (touch) {\n on(document, 'touchmove', this._onTouchMove);\n } else {\n on(document, 'mousemove', this._onTouchMove);\n }\n } else {\n on(dragEl, 'dragend', this);\n on(rootEl, 'dragstart', this._onDragStart);\n }\n\n try {\n if (document.selection) {\n // Timeout neccessary for IE9\n _nextTick(function () {\n document.selection.empty();\n });\n } else {\n window.getSelection().removeAllRanges();\n }\n } catch (err) {}\n },\n _dragStarted: function _dragStarted(fallback, evt) {\n\n awaitingDragStarted = false;\n\n if (rootEl && dragEl) {\n pluginEvent('dragStarted', this, {\n evt: evt\n });\n\n if (this.nativeDraggable) {\n on(document, 'dragover', _checkOutsideTargetEl);\n }\n\n var options = this.options; // Apply effect\n\n !fallback && toggleClass(dragEl, options.dragClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n Sortable.active = this;\n fallback && this._appendGhost(); // Drag start event\n\n _dispatchEvent({\n sortable: this,\n name: 'start',\n originalEvent: evt\n });\n } else {\n this._nulling();\n }\n },\n _emulateDragOver: function _emulateDragOver() {\n if (touchEvt) {\n this._lastX = touchEvt.clientX;\n this._lastY = touchEvt.clientY;\n\n _hideGhostForTarget();\n\n var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n var parent = target;\n\n while (target && target.shadowRoot) {\n target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n if (target === parent) break;\n parent = target;\n }\n\n dragEl.parentNode[expando]._isOutsideThisEl(target);\n\n if (parent) {\n do {\n if (parent[expando]) {\n var inserted = void 0;\n inserted = parent[expando]._onDragOver({\n clientX: touchEvt.clientX,\n clientY: touchEvt.clientY,\n target: target,\n rootEl: parent\n });\n\n if (inserted && !this.options.dragoverBubble) {\n break;\n }\n }\n\n target = parent; // store last element\n }\n /* jshint boss:true */\n while (parent = parent.parentNode);\n }\n\n _unhideGhostForTarget();\n }\n },\n _onTouchMove: function _onTouchMove(\n /**TouchEvent*/\n evt) {\n if (tapEvt) {\n var options = this.options,\n fallbackTolerance = options.fallbackTolerance,\n fallbackOffset = options.fallbackOffset,\n touch = evt.touches ? evt.touches[0] : evt,\n ghostMatrix = ghostEl && matrix(ghostEl, true),\n scaleX = ghostEl && ghostMatrix && ghostMatrix.a,\n scaleY = ghostEl && ghostMatrix && ghostMatrix.d,\n relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent),\n dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1),\n dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1); // only set the status to dragging, when we are actually dragging\n\n if (!Sortable.active && !awaitingDragStarted) {\n if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {\n return;\n }\n\n this._onDragStart(evt, true);\n }\n\n if (ghostEl) {\n if (ghostMatrix) {\n ghostMatrix.e += dx - (lastDx || 0);\n ghostMatrix.f += dy - (lastDy || 0);\n } else {\n ghostMatrix = {\n a: 1,\n b: 0,\n c: 0,\n d: 1,\n e: dx,\n f: dy\n };\n }\n\n var cssMatrix = \"matrix(\".concat(ghostMatrix.a, \",\").concat(ghostMatrix.b, \",\").concat(ghostMatrix.c, \",\").concat(ghostMatrix.d, \",\").concat(ghostMatrix.e, \",\").concat(ghostMatrix.f, \")\");\n css(ghostEl, 'webkitTransform', cssMatrix);\n css(ghostEl, 'mozTransform', cssMatrix);\n css(ghostEl, 'msTransform', cssMatrix);\n css(ghostEl, 'transform', cssMatrix);\n lastDx = dx;\n lastDy = dy;\n touchEvt = touch;\n }\n\n evt.cancelable && evt.preventDefault();\n }\n },\n _appendGhost: function _appendGhost() {\n // Bug if using scale(): https://stackoverflow.com/questions/2637058\n // Not being adjusted for\n if (!ghostEl) {\n var container = this.options.fallbackOnBody ? document.body : rootEl,\n rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container),\n options = this.options; // Position absolutely\n\n if (PositionGhostAbsolutely) {\n // Get relatively positioned parent\n ghostRelativeParent = container;\n\n while (css(ghostRelativeParent, 'position') === 'static' && css(ghostRelativeParent, 'transform') === 'none' && ghostRelativeParent !== document) {\n ghostRelativeParent = ghostRelativeParent.parentNode;\n }\n\n if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {\n if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();\n rect.top += ghostRelativeParent.scrollTop;\n rect.left += ghostRelativeParent.scrollLeft;\n } else {\n ghostRelativeParent = getWindowScrollingElement();\n }\n\n ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);\n }\n\n ghostEl = dragEl.cloneNode(true);\n toggleClass(ghostEl, options.ghostClass, false);\n toggleClass(ghostEl, options.fallbackClass, true);\n toggleClass(ghostEl, options.dragClass, true);\n css(ghostEl, 'transition', '');\n css(ghostEl, 'transform', '');\n css(ghostEl, 'box-sizing', 'border-box');\n css(ghostEl, 'margin', 0);\n css(ghostEl, 'top', rect.top);\n css(ghostEl, 'left', rect.left);\n css(ghostEl, 'width', rect.width);\n css(ghostEl, 'height', rect.height);\n css(ghostEl, 'opacity', '0.8');\n css(ghostEl, 'position', PositionGhostAbsolutely ? 'absolute' : 'fixed');\n css(ghostEl, 'zIndex', '100000');\n css(ghostEl, 'pointerEvents', 'none');\n Sortable.ghost = ghostEl;\n container.appendChild(ghostEl); // Set transform-origin\n\n css(ghostEl, 'transform-origin', tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + '% ' + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + '%');\n }\n },\n _onDragStart: function _onDragStart(\n /**Event*/\n evt,\n /**boolean*/\n fallback) {\n var _this = this;\n\n var dataTransfer = evt.dataTransfer;\n var options = _this.options;\n pluginEvent('dragStart', this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n }\n\n pluginEvent('setupClone', this);\n\n if (!Sortable.eventCanceled) {\n cloneEl = clone(dragEl);\n cloneEl.removeAttribute(\"id\");\n cloneEl.draggable = false;\n cloneEl.style['will-change'] = '';\n\n this._hideClone();\n\n toggleClass(cloneEl, this.options.chosenClass, false);\n Sortable.clone = cloneEl;\n } // #1143: IFrame support workaround\n\n\n _this.cloneId = _nextTick(function () {\n pluginEvent('clone', _this);\n if (Sortable.eventCanceled) return;\n\n if (!_this.options.removeCloneOnHide) {\n rootEl.insertBefore(cloneEl, dragEl);\n }\n\n _this._hideClone();\n\n _dispatchEvent({\n sortable: _this,\n name: 'clone'\n });\n });\n !fallback && toggleClass(dragEl, options.dragClass, true); // Set proper drop events\n\n if (fallback) {\n ignoreNextClick = true;\n _this._loopId = setInterval(_this._emulateDragOver, 50);\n } else {\n // Undo what was set in _prepareDragStart before drag started\n off(document, 'mouseup', _this._onDrop);\n off(document, 'touchend', _this._onDrop);\n off(document, 'touchcancel', _this._onDrop);\n\n if (dataTransfer) {\n dataTransfer.effectAllowed = 'move';\n options.setData && options.setData.call(_this, dataTransfer, dragEl);\n }\n\n on(document, 'drop', _this); // #1276 fix:\n\n css(dragEl, 'transform', 'translateZ(0)');\n }\n\n awaitingDragStarted = true;\n _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));\n on(document, 'selectstart', _this);\n moved = true;\n\n if (Safari) {\n css(document.body, 'user-select', 'none');\n }\n },\n // Returns true - if no further action is needed (either inserted or another condition)\n _onDragOver: function _onDragOver(\n /**Event*/\n evt) {\n var el = this.el,\n target = evt.target,\n dragRect,\n targetRect,\n revert,\n options = this.options,\n group = options.group,\n activeSortable = Sortable.active,\n isOwner = activeGroup === group,\n canSort = options.sort,\n fromSortable = putSortable || activeSortable,\n vertical,\n _this = this,\n completedFired = false;\n\n if (_silent) return;\n\n function dragOverEvent(name, extra) {\n pluginEvent(name, _this, _objectSpread2({\n evt: evt,\n isOwner: isOwner,\n axis: vertical ? 'vertical' : 'horizontal',\n revert: revert,\n dragRect: dragRect,\n targetRect: targetRect,\n canSort: canSort,\n fromSortable: fromSortable,\n target: target,\n completed: completed,\n onMove: function onMove(target, after) {\n return _onMove(rootEl, el, dragEl, dragRect, target, getRect(target), evt, after);\n },\n changed: changed\n }, extra));\n } // Capture animation state\n\n\n function capture() {\n dragOverEvent('dragOverAnimationCapture');\n\n _this.captureAnimationState();\n\n if (_this !== fromSortable) {\n fromSortable.captureAnimationState();\n }\n } // Return invocation when dragEl is inserted (or completed)\n\n\n function completed(insertion) {\n dragOverEvent('dragOverCompleted', {\n insertion: insertion\n });\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n } else {\n activeSortable._showClone(_this);\n }\n\n if (_this !== fromSortable) {\n // Set ghost class to new sortable's ghost class\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n }\n\n if (putSortable !== _this && _this !== Sortable.active) {\n putSortable = _this;\n } else if (_this === Sortable.active && putSortable) {\n putSortable = null;\n } // Animation\n\n\n if (fromSortable === _this) {\n _this._ignoreWhileAnimating = target;\n }\n\n _this.animateAll(function () {\n dragOverEvent('dragOverAnimationComplete');\n _this._ignoreWhileAnimating = null;\n });\n\n if (_this !== fromSortable) {\n fromSortable.animateAll();\n fromSortable._ignoreWhileAnimating = null;\n }\n } // Null lastTarget if it is not inside a previously swapped element\n\n\n if (target === dragEl && !dragEl.animated || target === el && !target.animated) {\n lastTarget = null;\n } // no bubbling and not fallback\n\n\n if (!options.dragoverBubble && !evt.rootEl && target !== document) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target); // Do not detect for empty insert if already inserted\n\n\n !insertion && nearestEmptyInsertDetectEvent(evt);\n }\n\n !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();\n return completedFired = true;\n } // Call when dragEl has been inserted\n\n\n function changed() {\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n _dispatchEvent({\n sortable: _this,\n name: 'change',\n toEl: el,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n originalEvent: evt\n });\n }\n\n if (evt.preventDefault !== void 0) {\n evt.cancelable && evt.preventDefault();\n }\n\n target = closest(target, options.draggable, el, true);\n dragOverEvent('dragOver');\n if (Sortable.eventCanceled) return completedFired;\n\n if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {\n return completed(false);\n }\n\n ignoreNextClick = false;\n\n if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list\n : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {\n vertical = this._getDirection(evt, target) === 'vertical';\n dragRect = getRect(dragEl);\n dragOverEvent('dragOverValid');\n if (Sortable.eventCanceled) return completedFired;\n\n if (revert) {\n parentEl = rootEl; // actualization\n\n capture();\n\n this._hideClone();\n\n dragOverEvent('revert');\n\n if (!Sortable.eventCanceled) {\n if (nextEl) {\n rootEl.insertBefore(dragEl, nextEl);\n } else {\n rootEl.appendChild(dragEl);\n }\n }\n\n return completed(true);\n }\n\n var elLastChild = lastChild(el, options.draggable);\n\n if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {\n // Insert to end of list\n // If already at end of list: Do not insert\n if (elLastChild === dragEl) {\n return completed(false);\n } // if there is a last element, it is the target\n\n\n if (elLastChild && el === evt.target) {\n target = elLastChild;\n }\n\n if (target) {\n targetRect = getRect(target);\n }\n\n if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {\n capture();\n\n if (elLastChild && elLastChild.nextSibling) {\n // the last draggable element is not the last node\n el.insertBefore(dragEl, elLastChild.nextSibling);\n } else {\n el.appendChild(dragEl);\n }\n\n parentEl = el; // actualization\n\n changed();\n return completed(true);\n }\n } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {\n // Insert to start of list\n var firstChild = getChild(el, 0, options, true);\n\n if (firstChild === dragEl) {\n return completed(false);\n }\n\n target = firstChild;\n targetRect = getRect(target);\n\n if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {\n capture();\n el.insertBefore(dragEl, firstChild);\n parentEl = el; // actualization\n\n changed();\n return completed(true);\n }\n } else if (target.parentNode === el) {\n targetRect = getRect(target);\n var direction = 0,\n targetBeforeFirstSwap,\n differentLevel = dragEl.parentNode !== el,\n differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical),\n side1 = vertical ? 'top' : 'left',\n scrolledPastTop = isScrolledPast(target, 'top', 'top') || isScrolledPast(dragEl, 'top', 'top'),\n scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;\n\n if (lastTarget !== target) {\n targetBeforeFirstSwap = targetRect[side1];\n pastFirstInvertThresh = false;\n isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;\n }\n\n direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);\n var sibling;\n\n if (direction !== 0) {\n // Check if target is beside dragEl in respective direction (ignoring hidden elements)\n var dragIndex = index(dragEl);\n\n do {\n dragIndex -= direction;\n sibling = parentEl.children[dragIndex];\n } while (sibling && (css(sibling, 'display') === 'none' || sibling === ghostEl));\n } // If dragEl is already beside target: Do not insert\n\n\n if (direction === 0 || sibling === target) {\n return completed(false);\n }\n\n lastTarget = target;\n lastDirection = direction;\n var nextSibling = target.nextElementSibling,\n after = false;\n after = direction === 1;\n\n var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);\n\n if (moveVector !== false) {\n if (moveVector === 1 || moveVector === -1) {\n after = moveVector === 1;\n }\n\n _silent = true;\n setTimeout(_unsilent, 30);\n capture();\n\n if (after && !nextSibling) {\n el.appendChild(dragEl);\n } else {\n target.parentNode.insertBefore(dragEl, after ? nextSibling : target);\n } // Undo chrome's scroll adjustment (has no effect on other browsers)\n\n\n if (scrolledPastTop) {\n scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);\n }\n\n parentEl = dragEl.parentNode; // actualization\n // must be done before animation\n\n if (targetBeforeFirstSwap !== undefined && !isCircumstantialInvert) {\n targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);\n }\n\n changed();\n return completed(true);\n }\n }\n\n if (el.contains(dragEl)) {\n return completed(false);\n }\n }\n\n return false;\n },\n _ignoreWhileAnimating: null,\n _offMoveEvents: function _offMoveEvents() {\n off(document, 'mousemove', this._onTouchMove);\n off(document, 'touchmove', this._onTouchMove);\n off(document, 'pointermove', this._onTouchMove);\n off(document, 'dragover', nearestEmptyInsertDetectEvent);\n off(document, 'mousemove', nearestEmptyInsertDetectEvent);\n off(document, 'touchmove', nearestEmptyInsertDetectEvent);\n },\n _offUpEvents: function _offUpEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._onDrop);\n off(ownerDocument, 'touchend', this._onDrop);\n off(ownerDocument, 'pointerup', this._onDrop);\n off(ownerDocument, 'touchcancel', this._onDrop);\n off(document, 'selectstart', this);\n },\n _onDrop: function _onDrop(\n /**Event*/\n evt) {\n var el = this.el,\n options = this.options; // Get the index of the dragged element within its parent\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n pluginEvent('drop', this, {\n evt: evt\n });\n parentEl = dragEl && dragEl.parentNode; // Get again after plugin event\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n if (Sortable.eventCanceled) {\n this._nulling();\n\n return;\n }\n\n awaitingDragStarted = false;\n isCircumstantialInvert = false;\n pastFirstInvertThresh = false;\n clearInterval(this._loopId);\n clearTimeout(this._dragStartTimer);\n\n _cancelNextTick(this.cloneId);\n\n _cancelNextTick(this._dragStartId); // Unbind events\n\n\n if (this.nativeDraggable) {\n off(document, 'drop', this);\n off(el, 'dragstart', this._onDragStart);\n }\n\n this._offMoveEvents();\n\n this._offUpEvents();\n\n if (Safari) {\n css(document.body, 'user-select', '');\n }\n\n css(dragEl, 'transform', '');\n\n if (evt) {\n if (moved) {\n evt.cancelable && evt.preventDefault();\n !options.dropBubble && evt.stopPropagation();\n }\n\n ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n // Remove clone(s)\n cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);\n }\n\n if (dragEl) {\n if (this.nativeDraggable) {\n off(dragEl, 'dragend', this);\n }\n\n _disableDraggable(dragEl);\n\n dragEl.style['will-change'] = ''; // Remove classes\n // ghostClass is added in dragStarted\n\n if (moved && !awaitingDragStarted) {\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);\n }\n\n toggleClass(dragEl, this.options.chosenClass, false); // Drag stop event\n\n _dispatchEvent({\n sortable: this,\n name: 'unchoose',\n toEl: parentEl,\n newIndex: null,\n newDraggableIndex: null,\n originalEvent: evt\n });\n\n if (rootEl !== parentEl) {\n if (newIndex >= 0) {\n // Add event\n _dispatchEvent({\n rootEl: parentEl,\n name: 'add',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n }); // Remove event\n\n\n _dispatchEvent({\n sortable: this,\n name: 'remove',\n toEl: parentEl,\n originalEvent: evt\n }); // drag from one list and drop into another\n\n\n _dispatchEvent({\n rootEl: parentEl,\n name: 'sort',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n\n putSortable && putSortable.save();\n } else {\n if (newIndex !== oldIndex) {\n if (newIndex >= 0) {\n // drag & drop within the same list\n _dispatchEvent({\n sortable: this,\n name: 'update',\n toEl: parentEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n }\n }\n\n if (Sortable.active) {\n /* jshint eqnull:true */\n if (newIndex == null || newIndex === -1) {\n newIndex = oldIndex;\n newDraggableIndex = oldDraggableIndex;\n }\n\n _dispatchEvent({\n sortable: this,\n name: 'end',\n toEl: parentEl,\n originalEvent: evt\n }); // Save sorting\n\n\n this.save();\n }\n }\n }\n\n this._nulling();\n },\n _nulling: function _nulling() {\n pluginEvent('nulling', this);\n rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;\n savedInputChecked.forEach(function (el) {\n el.checked = true;\n });\n savedInputChecked.length = lastDx = lastDy = 0;\n },\n handleEvent: function handleEvent(\n /**Event*/\n evt) {\n switch (evt.type) {\n case 'drop':\n case 'dragend':\n this._onDrop(evt);\n\n break;\n\n case 'dragenter':\n case 'dragover':\n if (dragEl) {\n this._onDragOver(evt);\n\n _globalDragOver(evt);\n }\n\n break;\n\n case 'selectstart':\n evt.preventDefault();\n break;\n }\n },\n\n /**\r\n * Serializes the item into an array of string.\r\n * @returns {String[]}\r\n */\n toArray: function toArray() {\n var order = [],\n el,\n children = this.el.children,\n i = 0,\n n = children.length,\n options = this.options;\n\n for (; i < n; i++) {\n el = children[i];\n\n if (closest(el, options.draggable, this.el, false)) {\n order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));\n }\n }\n\n return order;\n },\n\n /**\r\n * Sorts the elements according to the array.\r\n * @param {String[]} order order of the items\r\n */\n sort: function sort(order, useAnimation) {\n var items = {},\n rootEl = this.el;\n this.toArray().forEach(function (id, i) {\n var el = rootEl.children[i];\n\n if (closest(el, this.options.draggable, rootEl, false)) {\n items[id] = el;\n }\n }, this);\n useAnimation && this.captureAnimationState();\n order.forEach(function (id) {\n if (items[id]) {\n rootEl.removeChild(items[id]);\n rootEl.appendChild(items[id]);\n }\n });\n useAnimation && this.animateAll();\n },\n\n /**\r\n * Save the current sorting\r\n */\n save: function save() {\n var store = this.options.store;\n store && store.set && store.set(this);\n },\n\n /**\r\n * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.\r\n * @param {HTMLElement} el\r\n * @param {String} [selector] default: `options.draggable`\r\n * @returns {HTMLElement|null}\r\n */\n closest: function closest$1(el, selector) {\n return closest(el, selector || this.options.draggable, this.el, false);\n },\n\n /**\r\n * Set/get option\r\n * @param {string} name\r\n * @param {*} [value]\r\n * @returns {*}\r\n */\n option: function option(name, value) {\n var options = this.options;\n\n if (value === void 0) {\n return options[name];\n } else {\n var modifiedValue = PluginManager.modifyOption(this, name, value);\n\n if (typeof modifiedValue !== 'undefined') {\n options[name] = modifiedValue;\n } else {\n options[name] = value;\n }\n\n if (name === 'group') {\n _prepareGroup(options);\n }\n }\n },\n\n /**\r\n * Destroy\r\n */\n destroy: function destroy() {\n pluginEvent('destroy', this);\n var el = this.el;\n el[expando] = null;\n off(el, 'mousedown', this._onTapStart);\n off(el, 'touchstart', this._onTapStart);\n off(el, 'pointerdown', this._onTapStart);\n\n if (this.nativeDraggable) {\n off(el, 'dragover', this);\n off(el, 'dragenter', this);\n } // Remove draggable attributes\n\n\n Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function (el) {\n el.removeAttribute('draggable');\n });\n\n this._onDrop();\n\n this._disableDelayedDragEvents();\n\n sortables.splice(sortables.indexOf(this.el), 1);\n this.el = el = null;\n },\n _hideClone: function _hideClone() {\n if (!cloneHidden) {\n pluginEvent('hideClone', this);\n if (Sortable.eventCanceled) return;\n css(cloneEl, 'display', 'none');\n\n if (this.options.removeCloneOnHide && cloneEl.parentNode) {\n cloneEl.parentNode.removeChild(cloneEl);\n }\n\n cloneHidden = true;\n }\n },\n _showClone: function _showClone(putSortable) {\n if (putSortable.lastPutMode !== 'clone') {\n this._hideClone();\n\n return;\n }\n\n if (cloneHidden) {\n pluginEvent('showClone', this);\n if (Sortable.eventCanceled) return; // show clone at dragEl or original position\n\n if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {\n rootEl.insertBefore(cloneEl, dragEl);\n } else if (nextEl) {\n rootEl.insertBefore(cloneEl, nextEl);\n } else {\n rootEl.appendChild(cloneEl);\n }\n\n if (this.options.group.revertClone) {\n this.animate(dragEl, cloneEl);\n }\n\n css(cloneEl, 'display', '');\n cloneHidden = false;\n }\n }\n};\n\nfunction _globalDragOver(\n/**Event*/\nevt) {\n if (evt.dataTransfer) {\n evt.dataTransfer.dropEffect = 'move';\n }\n\n evt.cancelable && evt.preventDefault();\n}\n\nfunction _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {\n var evt,\n sortable = fromEl[expando],\n onMoveFn = sortable.options.onMove,\n retVal; // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent('move', {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent('move', true, true);\n }\n\n evt.to = toEl;\n evt.from = fromEl;\n evt.dragged = dragEl;\n evt.draggedRect = dragRect;\n evt.related = targetEl || toEl;\n evt.relatedRect = targetRect || getRect(toEl);\n evt.willInsertAfter = willInsertAfter;\n evt.originalEvent = originalEvent;\n fromEl.dispatchEvent(evt);\n\n if (onMoveFn) {\n retVal = onMoveFn.call(sortable, evt, originalEvent);\n }\n\n return retVal;\n}\n\nfunction _disableDraggable(el) {\n el.draggable = false;\n}\n\nfunction _unsilent() {\n _silent = false;\n}\n\nfunction _ghostIsFirst(evt, vertical, sortable) {\n var rect = getRect(getChild(sortable.el, 0, sortable.options, true));\n var spacer = 10;\n return vertical ? evt.clientX < rect.left - spacer || evt.clientY < rect.top && evt.clientX < rect.right : evt.clientY < rect.top - spacer || evt.clientY < rect.bottom && evt.clientX < rect.left;\n}\n\nfunction _ghostIsLast(evt, vertical, sortable) {\n var rect = getRect(lastChild(sortable.el, sortable.options.draggable));\n var spacer = 10;\n return vertical ? evt.clientX > rect.right + spacer || evt.clientX <= rect.right && evt.clientY > rect.bottom && evt.clientX >= rect.left : evt.clientX > rect.right && evt.clientY > rect.top || evt.clientX <= rect.right && evt.clientY > rect.bottom + spacer;\n}\n\nfunction _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {\n var mouseOnAxis = vertical ? evt.clientY : evt.clientX,\n targetLength = vertical ? targetRect.height : targetRect.width,\n targetS1 = vertical ? targetRect.top : targetRect.left,\n targetS2 = vertical ? targetRect.bottom : targetRect.right,\n invert = false;\n\n if (!invertSwap) {\n // Never invert or create dragEl shadow when target movemenet causes mouse to move past the end of regular swapThreshold\n if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {\n // multiplied only by swapThreshold because mouse will already be inside target by (1 - threshold) * targetLength / 2\n // check if past first invert threshold on side opposite of lastDirection\n if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {\n // past first invert threshold, do not restrict inverted threshold to dragEl shadow\n pastFirstInvertThresh = true;\n }\n\n if (!pastFirstInvertThresh) {\n // dragEl shadow (target move distance shadow)\n if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance // over dragEl shadow\n : mouseOnAxis > targetS2 - targetMoveDistance) {\n return -lastDirection;\n }\n } else {\n invert = true;\n }\n } else {\n // Regular\n if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {\n return _getInsertDirection(target);\n }\n }\n }\n\n invert = invert || invertSwap;\n\n if (invert) {\n // Invert of regular\n if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {\n return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;\n }\n }\n\n return 0;\n}\n/**\r\n * Gets the direction dragEl must be swapped relative to target in order to make it\r\n * seem that dragEl has been \"inserted\" into that element's position\r\n * @param {HTMLElement} target The target whose position dragEl is being inserted at\r\n * @return {Number} Direction dragEl must be swapped\r\n */\n\n\nfunction _getInsertDirection(target) {\n if (index(dragEl) < index(target)) {\n return 1;\n } else {\n return -1;\n }\n}\n/**\r\n * Generate id\r\n * @param {HTMLElement} el\r\n * @returns {String}\r\n * @private\r\n */\n\n\nfunction _generateId(el) {\n var str = el.tagName + el.className + el.src + el.href + el.textContent,\n i = str.length,\n sum = 0;\n\n while (i--) {\n sum += str.charCodeAt(i);\n }\n\n return sum.toString(36);\n}\n\nfunction _saveInputCheckedState(root) {\n savedInputChecked.length = 0;\n var inputs = root.getElementsByTagName('input');\n var idx = inputs.length;\n\n while (idx--) {\n var el = inputs[idx];\n el.checked && savedInputChecked.push(el);\n }\n}\n\nfunction _nextTick(fn) {\n return setTimeout(fn, 0);\n}\n\nfunction _cancelNextTick(id) {\n return clearTimeout(id);\n} // Fixed #973:\n\n\nif (documentExists) {\n on(document, 'touchmove', function (evt) {\n if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {\n evt.preventDefault();\n }\n });\n} // Export utils\n\n\nSortable.utils = {\n on: on,\n off: off,\n css: css,\n find: find,\n is: function is(el, selector) {\n return !!closest(el, selector, el, false);\n },\n extend: extend,\n throttle: throttle,\n closest: closest,\n toggleClass: toggleClass,\n clone: clone,\n index: index,\n nextTick: _nextTick,\n cancelNextTick: _cancelNextTick,\n detectDirection: _detectDirection,\n getChild: getChild\n};\n/**\r\n * Get the Sortable instance of an element\r\n * @param {HTMLElement} element The element\r\n * @return {Sortable|undefined} The instance of Sortable\r\n */\n\nSortable.get = function (element) {\n return element[expando];\n};\n/**\r\n * Mount a plugin to Sortable\r\n * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted\r\n */\n\n\nSortable.mount = function () {\n for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {\n plugins[_key] = arguments[_key];\n }\n\n if (plugins[0].constructor === Array) plugins = plugins[0];\n plugins.forEach(function (plugin) {\n if (!plugin.prototype || !plugin.prototype.constructor) {\n throw \"Sortable: Mounted plugin must be a constructor function, not \".concat({}.toString.call(plugin));\n }\n\n if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);\n PluginManager.mount(plugin);\n });\n};\n/**\r\n * Create sortable instance\r\n * @param {HTMLElement} el\r\n * @param {Object} [options]\r\n */\n\n\nSortable.create = function (el, options) {\n return new Sortable(el, options);\n}; // Export\n\n\nSortable.version = version;\n\nvar autoScrolls = [],\n scrollEl,\n scrollRootEl,\n scrolling = false,\n lastAutoScrollX,\n lastAutoScrollY,\n touchEvt$1,\n pointerElemChangedInterval;\n\nfunction AutoScrollPlugin() {\n function AutoScroll() {\n this.defaults = {\n scroll: true,\n forceAutoScrollFallback: false,\n scrollSensitivity: 30,\n scrollSpeed: 10,\n bubbleScroll: true\n }; // Bind all private methods\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n }\n\n AutoScroll.prototype = {\n dragStarted: function dragStarted(_ref) {\n var originalEvent = _ref.originalEvent;\n\n if (this.sortable.nativeDraggable) {\n on(document, 'dragover', this._handleAutoScroll);\n } else {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._handleFallbackAutoScroll);\n } else if (originalEvent.touches) {\n on(document, 'touchmove', this._handleFallbackAutoScroll);\n } else {\n on(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref2) {\n var originalEvent = _ref2.originalEvent;\n\n // For when bubbling is canceled and using fallback (fallback 'touchmove' always reached)\n if (!this.options.dragOverBubble && !originalEvent.rootEl) {\n this._handleAutoScroll(originalEvent);\n }\n },\n drop: function drop() {\n if (this.sortable.nativeDraggable) {\n off(document, 'dragover', this._handleAutoScroll);\n } else {\n off(document, 'pointermove', this._handleFallbackAutoScroll);\n off(document, 'touchmove', this._handleFallbackAutoScroll);\n off(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n\n clearPointerElemChangedInterval();\n clearAutoScrolls();\n cancelThrottle();\n },\n nulling: function nulling() {\n touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;\n autoScrolls.length = 0;\n },\n _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {\n this._handleAutoScroll(evt, true);\n },\n _handleAutoScroll: function _handleAutoScroll(evt, fallback) {\n var _this = this;\n\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n elem = document.elementFromPoint(x, y);\n touchEvt$1 = evt; // IE does not seem to have native autoscroll,\n // Edge's autoscroll seems too conditional,\n // MACOS Safari does not have autoscroll,\n // Firefox and Chrome are good\n\n if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {\n autoScroll(evt, this.options, elem, fallback); // Listener for pointer element change\n\n var ogElemScroller = getParentAutoScrollElement(elem, true);\n\n if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {\n pointerElemChangedInterval && clearPointerElemChangedInterval(); // Detect for pointer elem change, emulating native DnD behaviour\n\n pointerElemChangedInterval = setInterval(function () {\n var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);\n\n if (newElem !== ogElemScroller) {\n ogElemScroller = newElem;\n clearAutoScrolls();\n }\n\n autoScroll(evt, _this.options, newElem, fallback);\n }, 10);\n lastAutoScrollX = x;\n lastAutoScrollY = y;\n }\n } else {\n // if DnD is enabled (and browser has good autoscrolling), first autoscroll will already scroll, so get parent autoscroll of first autoscroll\n if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {\n clearAutoScrolls();\n return;\n }\n\n autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);\n }\n }\n };\n return _extends(AutoScroll, {\n pluginName: 'scroll',\n initializeByDefault: true\n });\n}\n\nfunction clearAutoScrolls() {\n autoScrolls.forEach(function (autoScroll) {\n clearInterval(autoScroll.pid);\n });\n autoScrolls = [];\n}\n\nfunction clearPointerElemChangedInterval() {\n clearInterval(pointerElemChangedInterval);\n}\n\nvar autoScroll = throttle(function (evt, options, rootEl, isFallback) {\n // Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521\n if (!options.scroll) return;\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n sens = options.scrollSensitivity,\n speed = options.scrollSpeed,\n winScroller = getWindowScrollingElement();\n var scrollThisInstance = false,\n scrollCustomFn; // New scroll root, set scrollEl\n\n if (scrollRootEl !== rootEl) {\n scrollRootEl = rootEl;\n clearAutoScrolls();\n scrollEl = options.scroll;\n scrollCustomFn = options.scrollFn;\n\n if (scrollEl === true) {\n scrollEl = getParentAutoScrollElement(rootEl, true);\n }\n }\n\n var layersOut = 0;\n var currentParent = scrollEl;\n\n do {\n var el = currentParent,\n rect = getRect(el),\n top = rect.top,\n bottom = rect.bottom,\n left = rect.left,\n right = rect.right,\n width = rect.width,\n height = rect.height,\n canScrollX = void 0,\n canScrollY = void 0,\n scrollWidth = el.scrollWidth,\n scrollHeight = el.scrollHeight,\n elCSS = css(el),\n scrollPosX = el.scrollLeft,\n scrollPosY = el.scrollTop;\n\n if (el === winScroller) {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll' || elCSS.overflowX === 'visible');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll' || elCSS.overflowY === 'visible');\n } else {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll');\n }\n\n var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);\n var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);\n\n if (!autoScrolls[layersOut]) {\n for (var i = 0; i <= layersOut; i++) {\n if (!autoScrolls[i]) {\n autoScrolls[i] = {};\n }\n }\n }\n\n if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {\n autoScrolls[layersOut].el = el;\n autoScrolls[layersOut].vx = vx;\n autoScrolls[layersOut].vy = vy;\n clearInterval(autoScrolls[layersOut].pid);\n\n if (vx != 0 || vy != 0) {\n scrollThisInstance = true;\n /* jshint loopfunc:true */\n\n autoScrolls[layersOut].pid = setInterval(function () {\n // emulate drag over during autoscroll (fallback), emulating native DnD behaviour\n if (isFallback && this.layer === 0) {\n Sortable.active._onTouchMove(touchEvt$1); // To move ghost if it is positioned absolutely\n\n }\n\n var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;\n var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;\n\n if (typeof scrollCustomFn === 'function') {\n if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== 'continue') {\n return;\n }\n }\n\n scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);\n }.bind({\n layer: layersOut\n }), 24);\n }\n }\n\n layersOut++;\n } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));\n\n scrolling = scrollThisInstance; // in case another function catches scrolling as false in between when it is not\n}, 30);\n\nvar drop = function drop(_ref) {\n var originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n dragEl = _ref.dragEl,\n activeSortable = _ref.activeSortable,\n dispatchSortableEvent = _ref.dispatchSortableEvent,\n hideGhostForTarget = _ref.hideGhostForTarget,\n unhideGhostForTarget = _ref.unhideGhostForTarget;\n if (!originalEvent) return;\n var toSortable = putSortable || activeSortable;\n hideGhostForTarget();\n var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;\n var target = document.elementFromPoint(touch.clientX, touch.clientY);\n unhideGhostForTarget();\n\n if (toSortable && !toSortable.el.contains(target)) {\n dispatchSortableEvent('spill');\n this.onSpill({\n dragEl: dragEl,\n putSortable: putSortable\n });\n }\n};\n\nfunction Revert() {}\n\nRevert.prototype = {\n startIndex: null,\n dragStart: function dragStart(_ref2) {\n var oldDraggableIndex = _ref2.oldDraggableIndex;\n this.startIndex = oldDraggableIndex;\n },\n onSpill: function onSpill(_ref3) {\n var dragEl = _ref3.dragEl,\n putSortable = _ref3.putSortable;\n this.sortable.captureAnimationState();\n\n if (putSortable) {\n putSortable.captureAnimationState();\n }\n\n var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);\n\n if (nextSibling) {\n this.sortable.el.insertBefore(dragEl, nextSibling);\n } else {\n this.sortable.el.appendChild(dragEl);\n }\n\n this.sortable.animateAll();\n\n if (putSortable) {\n putSortable.animateAll();\n }\n },\n drop: drop\n};\n\n_extends(Revert, {\n pluginName: 'revertOnSpill'\n});\n\nfunction Remove() {}\n\nRemove.prototype = {\n onSpill: function onSpill(_ref4) {\n var dragEl = _ref4.dragEl,\n putSortable = _ref4.putSortable;\n var parentSortable = putSortable || this.sortable;\n parentSortable.captureAnimationState();\n dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);\n parentSortable.animateAll();\n },\n drop: drop\n};\n\n_extends(Remove, {\n pluginName: 'removeOnSpill'\n});\n\nvar lastSwapEl;\n\nfunction SwapPlugin() {\n function Swap() {\n this.defaults = {\n swapClass: 'sortable-swap-highlight'\n };\n }\n\n Swap.prototype = {\n dragStart: function dragStart(_ref) {\n var dragEl = _ref.dragEl;\n lastSwapEl = dragEl;\n },\n dragOverValid: function dragOverValid(_ref2) {\n var completed = _ref2.completed,\n target = _ref2.target,\n onMove = _ref2.onMove,\n activeSortable = _ref2.activeSortable,\n changed = _ref2.changed,\n cancel = _ref2.cancel;\n if (!activeSortable.options.swap) return;\n var el = this.sortable.el,\n options = this.options;\n\n if (target && target !== el) {\n var prevSwapEl = lastSwapEl;\n\n if (onMove(target) !== false) {\n toggleClass(target, options.swapClass, true);\n lastSwapEl = target;\n } else {\n lastSwapEl = null;\n }\n\n if (prevSwapEl && prevSwapEl !== lastSwapEl) {\n toggleClass(prevSwapEl, options.swapClass, false);\n }\n }\n\n changed();\n completed(true);\n cancel();\n },\n drop: function drop(_ref3) {\n var activeSortable = _ref3.activeSortable,\n putSortable = _ref3.putSortable,\n dragEl = _ref3.dragEl;\n var toSortable = putSortable || this.sortable;\n var options = this.options;\n lastSwapEl && toggleClass(lastSwapEl, options.swapClass, false);\n\n if (lastSwapEl && (options.swap || putSortable && putSortable.options.swap)) {\n if (dragEl !== lastSwapEl) {\n toSortable.captureAnimationState();\n if (toSortable !== activeSortable) activeSortable.captureAnimationState();\n swapNodes(dragEl, lastSwapEl);\n toSortable.animateAll();\n if (toSortable !== activeSortable) activeSortable.animateAll();\n }\n }\n },\n nulling: function nulling() {\n lastSwapEl = null;\n }\n };\n return _extends(Swap, {\n pluginName: 'swap',\n eventProperties: function eventProperties() {\n return {\n swapItem: lastSwapEl\n };\n }\n });\n}\n\nfunction swapNodes(n1, n2) {\n var p1 = n1.parentNode,\n p2 = n2.parentNode,\n i1,\n i2;\n if (!p1 || !p2 || p1.isEqualNode(n2) || p2.isEqualNode(n1)) return;\n i1 = index(n1);\n i2 = index(n2);\n\n if (p1.isEqualNode(p2) && i1 < i2) {\n i2++;\n }\n\n p1.insertBefore(n2, p1.children[i1]);\n p2.insertBefore(n1, p2.children[i2]);\n}\n\nvar multiDragElements = [],\n multiDragClones = [],\n lastMultiDragSelect,\n // for selection with modifier key down (SHIFT)\nmultiDragSortable,\n initialFolding = false,\n // Initial multi-drag fold when drag started\nfolding = false,\n // Folding any other time\ndragStarted = false,\n dragEl$1,\n clonesFromRect,\n clonesHidden;\n\nfunction MultiDragPlugin() {\n function MultiDrag(sortable) {\n // Bind all private methods\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n\n if (!sortable.options.avoidImplicitDeselect) {\n if (sortable.options.supportPointer) {\n on(document, 'pointerup', this._deselectMultiDrag);\n } else {\n on(document, 'mouseup', this._deselectMultiDrag);\n on(document, 'touchend', this._deselectMultiDrag);\n }\n }\n\n on(document, 'keydown', this._checkKeyDown);\n on(document, 'keyup', this._checkKeyUp);\n this.defaults = {\n selectedClass: 'sortable-selected',\n multiDragKey: null,\n avoidImplicitDeselect: false,\n setData: function setData(dataTransfer, dragEl) {\n var data = '';\n\n if (multiDragElements.length && multiDragSortable === sortable) {\n multiDragElements.forEach(function (multiDragElement, i) {\n data += (!i ? '' : ', ') + multiDragElement.textContent;\n });\n } else {\n data = dragEl.textContent;\n }\n\n dataTransfer.setData('Text', data);\n }\n };\n }\n\n MultiDrag.prototype = {\n multiDragKeyDown: false,\n isMultiDrag: false,\n delayStartGlobal: function delayStartGlobal(_ref) {\n var dragged = _ref.dragEl;\n dragEl$1 = dragged;\n },\n delayEnded: function delayEnded() {\n this.isMultiDrag = ~multiDragElements.indexOf(dragEl$1);\n },\n setupClone: function setupClone(_ref2) {\n var sortable = _ref2.sortable,\n cancel = _ref2.cancel;\n if (!this.isMultiDrag) return;\n\n for (var i = 0; i < multiDragElements.length; i++) {\n multiDragClones.push(clone(multiDragElements[i]));\n multiDragClones[i].sortableIndex = multiDragElements[i].sortableIndex;\n multiDragClones[i].draggable = false;\n multiDragClones[i].style['will-change'] = '';\n toggleClass(multiDragClones[i], this.options.selectedClass, false);\n multiDragElements[i] === dragEl$1 && toggleClass(multiDragClones[i], this.options.chosenClass, false);\n }\n\n sortable._hideClone();\n\n cancel();\n },\n clone: function clone(_ref3) {\n var sortable = _ref3.sortable,\n rootEl = _ref3.rootEl,\n dispatchSortableEvent = _ref3.dispatchSortableEvent,\n cancel = _ref3.cancel;\n if (!this.isMultiDrag) return;\n\n if (!this.options.removeCloneOnHide) {\n if (multiDragElements.length && multiDragSortable === sortable) {\n insertMultiDragClones(true, rootEl);\n dispatchSortableEvent('clone');\n cancel();\n }\n }\n },\n showClone: function showClone(_ref4) {\n var cloneNowShown = _ref4.cloneNowShown,\n rootEl = _ref4.rootEl,\n cancel = _ref4.cancel;\n if (!this.isMultiDrag) return;\n insertMultiDragClones(false, rootEl);\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', '');\n });\n cloneNowShown();\n clonesHidden = false;\n cancel();\n },\n hideClone: function hideClone(_ref5) {\n var _this = this;\n\n var sortable = _ref5.sortable,\n cloneNowHidden = _ref5.cloneNowHidden,\n cancel = _ref5.cancel;\n if (!this.isMultiDrag) return;\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', 'none');\n\n if (_this.options.removeCloneOnHide && clone.parentNode) {\n clone.parentNode.removeChild(clone);\n }\n });\n cloneNowHidden();\n clonesHidden = true;\n cancel();\n },\n dragStartGlobal: function dragStartGlobal(_ref6) {\n var sortable = _ref6.sortable;\n\n if (!this.isMultiDrag && multiDragSortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n }\n\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.sortableIndex = index(multiDragElement);\n }); // Sort multi-drag elements\n\n multiDragElements = multiDragElements.sort(function (a, b) {\n return a.sortableIndex - b.sortableIndex;\n });\n dragStarted = true;\n },\n dragStarted: function dragStarted(_ref7) {\n var _this2 = this;\n\n var sortable = _ref7.sortable;\n if (!this.isMultiDrag) return;\n\n if (this.options.sort) {\n // Capture rects,\n // hide multi drag elements (by positioning them absolute),\n // set multi drag elements rects to dragRect,\n // show multi drag elements,\n // animate to rects,\n // unset rects & remove from DOM\n sortable.captureAnimationState();\n\n if (this.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n css(multiDragElement, 'position', 'absolute');\n });\n var dragRect = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRect);\n });\n folding = true;\n initialFolding = true;\n }\n }\n\n sortable.animateAll(function () {\n folding = false;\n initialFolding = false;\n\n if (_this2.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n } // Remove all auxiliary multidrag items from el, if sorting enabled\n\n\n if (_this2.options.sort) {\n removeMultiDragElements();\n }\n });\n },\n dragOver: function dragOver(_ref8) {\n var target = _ref8.target,\n completed = _ref8.completed,\n cancel = _ref8.cancel;\n\n if (folding && ~multiDragElements.indexOf(target)) {\n completed(false);\n cancel();\n }\n },\n revert: function revert(_ref9) {\n var fromSortable = _ref9.fromSortable,\n rootEl = _ref9.rootEl,\n sortable = _ref9.sortable,\n dragRect = _ref9.dragRect;\n\n if (multiDragElements.length > 1) {\n // Setup unfold animation\n multiDragElements.forEach(function (multiDragElement) {\n sortable.addAnimationState({\n target: multiDragElement,\n rect: folding ? getRect(multiDragElement) : dragRect\n });\n unsetRect(multiDragElement);\n multiDragElement.fromRect = dragRect;\n fromSortable.removeAnimationState(multiDragElement);\n });\n folding = false;\n insertMultiDragElements(!this.options.removeCloneOnHide, rootEl);\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref10) {\n var sortable = _ref10.sortable,\n isOwner = _ref10.isOwner,\n insertion = _ref10.insertion,\n activeSortable = _ref10.activeSortable,\n parentEl = _ref10.parentEl,\n putSortable = _ref10.putSortable;\n var options = this.options;\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n }\n\n initialFolding = false; // If leaving sort:false root, or already folding - Fold to new location\n\n if (options.animation && multiDragElements.length > 1 && (folding || !isOwner && !activeSortable.options.sort && !putSortable)) {\n // Fold: Set all multi drag elements's rects to dragEl's rect when multi-drag elements are invisible\n var dragRectAbsolute = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRectAbsolute); // Move element(s) to end of parentEl so that it does not interfere with multi-drag clones insertion if they are inserted\n // while folding, and so that we can capture them again because old sortable will no longer be fromSortable\n\n parentEl.appendChild(multiDragElement);\n });\n folding = true;\n } // Clones must be shown (and check to remove multi drags) after folding when interfering multiDragElements are moved out\n\n\n if (!isOwner) {\n // Only remove if not folding (folding will remove them anyways)\n if (!folding) {\n removeMultiDragElements();\n }\n\n if (multiDragElements.length > 1) {\n var clonesHiddenBefore = clonesHidden;\n\n activeSortable._showClone(sortable); // Unfold animation for clones if showing from hidden\n\n\n if (activeSortable.options.animation && !clonesHidden && clonesHiddenBefore) {\n multiDragClones.forEach(function (clone) {\n activeSortable.addAnimationState({\n target: clone,\n rect: clonesFromRect\n });\n clone.fromRect = clonesFromRect;\n clone.thisAnimationDuration = null;\n });\n }\n } else {\n activeSortable._showClone(sortable);\n }\n }\n }\n },\n dragOverAnimationCapture: function dragOverAnimationCapture(_ref11) {\n var dragRect = _ref11.dragRect,\n isOwner = _ref11.isOwner,\n activeSortable = _ref11.activeSortable;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n });\n\n if (activeSortable.options.animation && !isOwner && activeSortable.multiDrag.isMultiDrag) {\n clonesFromRect = _extends({}, dragRect);\n var dragMatrix = matrix(dragEl$1, true);\n clonesFromRect.top -= dragMatrix.f;\n clonesFromRect.left -= dragMatrix.e;\n }\n },\n dragOverAnimationComplete: function dragOverAnimationComplete() {\n if (folding) {\n folding = false;\n removeMultiDragElements();\n }\n },\n drop: function drop(_ref12) {\n var evt = _ref12.originalEvent,\n rootEl = _ref12.rootEl,\n parentEl = _ref12.parentEl,\n sortable = _ref12.sortable,\n dispatchSortableEvent = _ref12.dispatchSortableEvent,\n oldIndex = _ref12.oldIndex,\n putSortable = _ref12.putSortable;\n var toSortable = putSortable || this.sortable;\n if (!evt) return;\n var options = this.options,\n children = parentEl.children; // Multi-drag selection\n\n if (!dragStarted) {\n if (options.multiDragKey && !this.multiDragKeyDown) {\n this._deselectMultiDrag();\n }\n\n toggleClass(dragEl$1, options.selectedClass, !~multiDragElements.indexOf(dragEl$1));\n\n if (!~multiDragElements.indexOf(dragEl$1)) {\n multiDragElements.push(dragEl$1);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: dragEl$1,\n originalEvent: evt\n }); // Modifier activated, select from last to dragEl\n\n if (evt.shiftKey && lastMultiDragSelect && sortable.el.contains(lastMultiDragSelect)) {\n var lastIndex = index(lastMultiDragSelect),\n currentIndex = index(dragEl$1);\n\n if (~lastIndex && ~currentIndex && lastIndex !== currentIndex) {\n // Must include lastMultiDragSelect (select it), in case modified selection from no selection\n // (but previous selection existed)\n var n, i;\n\n if (currentIndex > lastIndex) {\n i = lastIndex;\n n = currentIndex;\n } else {\n i = currentIndex;\n n = lastIndex + 1;\n }\n\n for (; i < n; i++) {\n if (~multiDragElements.indexOf(children[i])) continue;\n toggleClass(children[i], options.selectedClass, true);\n multiDragElements.push(children[i]);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: children[i],\n originalEvent: evt\n });\n }\n }\n } else {\n lastMultiDragSelect = dragEl$1;\n }\n\n multiDragSortable = toSortable;\n } else {\n multiDragElements.splice(multiDragElements.indexOf(dragEl$1), 1);\n lastMultiDragSelect = null;\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'deselect',\n targetEl: dragEl$1,\n originalEvent: evt\n });\n }\n } // Multi-drag drop\n\n\n if (dragStarted && this.isMultiDrag) {\n folding = false; // Do not \"unfold\" after around dragEl if reverted\n\n if ((parentEl[expando].options.sort || parentEl !== rootEl) && multiDragElements.length > 1) {\n var dragRect = getRect(dragEl$1),\n multiDragIndex = index(dragEl$1, ':not(.' + this.options.selectedClass + ')');\n if (!initialFolding && options.animation) dragEl$1.thisAnimationDuration = null;\n toSortable.captureAnimationState();\n\n if (!initialFolding) {\n if (options.animation) {\n dragEl$1.fromRect = dragRect;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n\n if (multiDragElement !== dragEl$1) {\n var rect = folding ? getRect(multiDragElement) : dragRect;\n multiDragElement.fromRect = rect; // Prepare unfold animation\n\n toSortable.addAnimationState({\n target: multiDragElement,\n rect: rect\n });\n }\n });\n } // Multi drag elements are not necessarily removed from the DOM on drop, so to reinsert\n // properly they must all be removed\n\n\n removeMultiDragElements();\n multiDragElements.forEach(function (multiDragElement) {\n if (children[multiDragIndex]) {\n parentEl.insertBefore(multiDragElement, children[multiDragIndex]);\n } else {\n parentEl.appendChild(multiDragElement);\n }\n\n multiDragIndex++;\n }); // If initial folding is done, the elements may have changed position because they are now\n // unfolding around dragEl, even though dragEl may not have his index changed, so update event\n // must be fired here as Sortable will not.\n\n if (oldIndex === index(dragEl$1)) {\n var update = false;\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement.sortableIndex !== index(multiDragElement)) {\n update = true;\n return;\n }\n });\n\n if (update) {\n dispatchSortableEvent('update');\n }\n }\n } // Must be done after capturing individual rects (scroll bar)\n\n\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n toSortable.animateAll();\n }\n\n multiDragSortable = toSortable;\n } // Remove clones if necessary\n\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n multiDragClones.forEach(function (clone) {\n clone.parentNode && clone.parentNode.removeChild(clone);\n });\n }\n },\n nullingGlobal: function nullingGlobal() {\n this.isMultiDrag = dragStarted = false;\n multiDragClones.length = 0;\n },\n destroyGlobal: function destroyGlobal() {\n this._deselectMultiDrag();\n\n off(document, 'pointerup', this._deselectMultiDrag);\n off(document, 'mouseup', this._deselectMultiDrag);\n off(document, 'touchend', this._deselectMultiDrag);\n off(document, 'keydown', this._checkKeyDown);\n off(document, 'keyup', this._checkKeyUp);\n },\n _deselectMultiDrag: function _deselectMultiDrag(evt) {\n if (typeof dragStarted !== \"undefined\" && dragStarted) return; // Only deselect if selection is in this sortable\n\n if (multiDragSortable !== this.sortable) return; // Only deselect if target is not item in this sortable\n\n if (evt && closest(evt.target, this.options.draggable, this.sortable.el, false)) return; // Only deselect if left click\n\n if (evt && evt.button !== 0) return;\n\n while (multiDragElements.length) {\n var el = multiDragElements[0];\n toggleClass(el, this.options.selectedClass, false);\n multiDragElements.shift();\n dispatchEvent({\n sortable: this.sortable,\n rootEl: this.sortable.el,\n name: 'deselect',\n targetEl: el,\n originalEvent: evt\n });\n }\n },\n _checkKeyDown: function _checkKeyDown(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = true;\n }\n },\n _checkKeyUp: function _checkKeyUp(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = false;\n }\n }\n };\n return _extends(MultiDrag, {\n // Static methods & properties\n pluginName: 'multiDrag',\n utils: {\n /**\r\n * Selects the provided multi-drag item\r\n * @param {HTMLElement} el The element to be selected\r\n */\n select: function select(el) {\n var sortable = el.parentNode[expando];\n if (!sortable || !sortable.options.multiDrag || ~multiDragElements.indexOf(el)) return;\n\n if (multiDragSortable && multiDragSortable !== sortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n\n multiDragSortable = sortable;\n }\n\n toggleClass(el, sortable.options.selectedClass, true);\n multiDragElements.push(el);\n },\n\n /**\r\n * Deselects the provided multi-drag item\r\n * @param {HTMLElement} el The element to be deselected\r\n */\n deselect: function deselect(el) {\n var sortable = el.parentNode[expando],\n index = multiDragElements.indexOf(el);\n if (!sortable || !sortable.options.multiDrag || !~index) return;\n toggleClass(el, sortable.options.selectedClass, false);\n multiDragElements.splice(index, 1);\n }\n },\n eventProperties: function eventProperties() {\n var _this3 = this;\n\n var oldIndicies = [],\n newIndicies = [];\n multiDragElements.forEach(function (multiDragElement) {\n oldIndicies.push({\n multiDragElement: multiDragElement,\n index: multiDragElement.sortableIndex\n }); // multiDragElements will already be sorted if folding\n\n var newIndex;\n\n if (folding && multiDragElement !== dragEl$1) {\n newIndex = -1;\n } else if (folding) {\n newIndex = index(multiDragElement, ':not(.' + _this3.options.selectedClass + ')');\n } else {\n newIndex = index(multiDragElement);\n }\n\n newIndicies.push({\n multiDragElement: multiDragElement,\n index: newIndex\n });\n });\n return {\n items: _toConsumableArray(multiDragElements),\n clones: [].concat(multiDragClones),\n oldIndicies: oldIndicies,\n newIndicies: newIndicies\n };\n },\n optionListeners: {\n multiDragKey: function multiDragKey(key) {\n key = key.toLowerCase();\n\n if (key === 'ctrl') {\n key = 'Control';\n } else if (key.length > 1) {\n key = key.charAt(0).toUpperCase() + key.substr(1);\n }\n\n return key;\n }\n }\n });\n}\n\nfunction insertMultiDragElements(clonesInserted, rootEl) {\n multiDragElements.forEach(function (multiDragElement, i) {\n var target = rootEl.children[multiDragElement.sortableIndex + (clonesInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(multiDragElement, target);\n } else {\n rootEl.appendChild(multiDragElement);\n }\n });\n}\n/**\r\n * Insert multi-drag clones\r\n * @param {[Boolean]} elementsInserted Whether the multi-drag elements are inserted\r\n * @param {HTMLElement} rootEl\r\n */\n\n\nfunction insertMultiDragClones(elementsInserted, rootEl) {\n multiDragClones.forEach(function (clone, i) {\n var target = rootEl.children[clone.sortableIndex + (elementsInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(clone, target);\n } else {\n rootEl.appendChild(clone);\n }\n });\n}\n\nfunction removeMultiDragElements() {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n multiDragElement.parentNode && multiDragElement.parentNode.removeChild(multiDragElement);\n });\n}\n\nSortable.mount(new AutoScrollPlugin());\nSortable.mount(Remove, Revert);\n\nexport default Sortable;\nexport { MultiDragPlugin as MultiDrag, Sortable, SwapPlugin as Swap };\n","import SettingsActions from '../actions/SettingsActions';\nimport Maintenance from './MaintenanceManager';\nimport FipamoAdminAPI, { TASK_SYNC_SETTNIGS } from '../../libraries/FipamoAdminAPI';\nimport * as DataEvent from '../../../src/com/events/DataEvent';\nimport Mailer from '../actions/Mailer';\nimport Notifications from '../ui/Notifications';\nconst notify = new Notifications();\nexport default class SettingsIndex {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tthis.start();\n\t\tthis.admin = new FipamoAdminAPI(null);\n\t\tthis.mm = new Maintenance(null, null);\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\tlet self = this;\n\t\t//handle save button\n\t\tdocument.getElementById('save-toggle').addEventListener('click', () =>\n\t\t\tnew SettingsActions()\n\t\t\t\t.getInfo()\n\t\t\t\t.then(data => {\n\t\t\t\t\tnotify.alert('Saving Settings', null);\n\t\t\t\t\tself.admin.sync(TASK_SYNC_SETTNIGS, data).then(r => {\n\t\t\t\t\t\tif (r.type == DataEvent.SETTINGS_UPDATED) {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t\t.catch(() => {\n\t\t\t\t\t//console.log(err);\n\t\t\t\t})\n\t\t);\n\t\t//handle set up image uploads\n\t\tdocument.querySelector('.avatar').addEventListener('click', () => {\n\t\t\tdocument.getElementById('avatar-upload').click();\n\t\t});\n\t\tdocument.querySelector('.background').addEventListener('click', () => {\n\t\t\tdocument.getElementById('background-upload').click();\n\t\t});\n\t\tdocument.getElementById('avatar-upload').addEventListener(\n\t\t\t'change',\n\t\t\te => {\n\t\t\t\tself.handleImageUpload(e.target.id, e.target.files);\n\t\t\t},\n\t\t\tfalse\n\t\t);\n\t\tdocument.getElementById('background-upload').addEventListener(\n\t\t\t'change',\n\t\t\te => {\n\t\t\t\tself.handleImageUpload(e.target.id, e.target.files);\n\t\t\t},\n\t\t\tfalse\n\t\t);\n\t\t//handle api access toggle\n\t\tvar apiButton = document.getElementById('api-access-toggle');\n\t\tvar apiStatus = document.getElementById('api-status');\n\t\tapiButton.addEventListener('click', e => {\n\t\t\te.stopPropagation();\n\t\t\te.preventDefault();\n\t\t\tif (apiButton.getAttribute('data-enabled') == 'false') {\n\t\t\t\tapiButton.setAttribute('data-enabled', 'true');\n\t\t\t\tapiStatus.innerHTML = 'API ACCESS IS ENABLED';\n\t\t\t} else {\n\t\t\t\tapiButton.setAttribute('data-enabled', 'false');\n\t\t\t\tapiStatus.innerHTML = 'API ACCESS IS DISABLED';\n\t\t\t}\n\t\t});\n\n\t\t//handle dynamic page rendering\n\t\tvar dynamicRenderButton = document.getElementById('dynamic-render-toggle');\n\t\tvar dynamicRenderStatus = document.getElementById('dynamic-render-status');\n\t\tdynamicRenderButton.addEventListener('click', e => {\n\t\t\te.stopPropagation();\n\t\t\te.preventDefault();\n\t\t\tif (dynamicRenderButton.getAttribute('data-enabled') == 'false') {\n\t\t\t\tdynamicRenderButton.setAttribute('data-enabled', 'true');\n\t\t\t\tdynamicRenderStatus.innerHTML = 'DYNAMIC PAGE RENDERING';\n\t\t\t} else {\n\t\t\t\tdynamicRenderButton.setAttribute('data-enabled', 'false');\n\t\t\t\tdynamicRenderStatus.innerHTML = 'STATIC PAGE RENDERING';\n\t\t\t}\n\t\t});\n\n\t\tdocument\n\t\t\t.getElementById('send-mail')\n\t\t\t.addEventListener('click', e => this.handleMailer(e));\n\t\tdocument\n\t\t\t.getElementById('publish-pages')\n\t\t\t.addEventListener('click', e => this.handlePublished(e));\n\t\t//handle page render on save toggle\n\t\tdocument\n\t\t\t.getElementById('render-toggle')\n\t\t\t.addEventListener('click', e => this.toggleRender(e));\n\t\t//handle theme toggle\n\t\tlet themeBtns = document.querySelectorAll('.theme-select');\n\t\tfor (var i = 0, length = themeBtns.length; i < length; i++) {\n\t\t\tthemeBtns[i].addEventListener('click', e => this.handleThemes(e));\n\t\t}\n\t\t//handle mail options\n\t\tlet mailBtn = document.querySelectorAll('.mail-option');\n\t\tfor (i = 0, length = mailBtn.length; i < length; i++) {\n\t\t\tmailBtn[i].addEventListener('click', e => this.handleMailOptions(e));\n\t\t}\n\t\t//handle backup from settings [disabled]\n\n\t\tdocument\n\t\t\t.getElementById('create-backup')\n\t\t\t.addEventListener('click', e => this.handleBackup(e));\n\n\t\t/*\n document\n .getElementById(\"reindex-pages\")\n .addEventListener(\"click\", (e) => this.handleReindex(e));\n */\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\ttogglePrivacy(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tif (e.target.getAttribute('data-private') == 'false') {\n\t\t\te.target.setAttribute('data-private', 'true');\n\t\t\te.target.innerHTML = 'SITE IS PUBLIC';\n\t\t} else {\n\t\t\te.target.setAttribute('data-private', 'false');\n\t\t\te.target.innerHTML = 'SITE IS PRIVATE';\n\t\t}\n\t}\n\ttoggleRender(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet button = document.getElementById('render-toggle');\n\t\tif (button.getAttribute('data-render') == 'false') {\n\t\t\tbutton.setAttribute('data-render', 'true');\n\t\t\t//e.target.innerHTML = 'RENDER PAGES ON SAVE';\n\t\t} else {\n\t\t\tbutton.setAttribute('data-render', 'false');\n\t\t\t//e.target.innerHTML = \"DON'T RENDER PAGES ON SAVE\";\n\t\t}\n\t}\n\thandleMailer() {\n\t\tlet mailer = new Mailer();\n\t\tmailer.testMail();\n\t\t//mailer.sendMail();\n\t}\n\thandleThemes(e) {\n\t\te.stopPropagation();\n\t\te.preventDefault();\n\t\tlet themes = document.querySelectorAll('.theme-select');\n\t\tfor (var i = 0, length = themes.length; i < length; i++) {\n\t\t\te.target.id == themes[i].id\n\t\t\t\t? themes[i].setAttribute('data-enabled', 'true')\n\t\t\t\t: themes[i].setAttribute('data-enabled', 'false');\n\t\t}\n\t}\n\thandleMailOptions(e) {\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tlet smtp = document.getElementById('mail-smtp');\n\t\tlet mailgun = document.getElementById('mail-mg');\n\t\tlet mail = document.querySelectorAll('.mail-option');\n\t\tfor (var i = 0, length = mail.length; i < length; i++) {\n\t\t\tif (e.target.id == mail[i].id) {\n\t\t\t\tmail[i].setAttribute('data-enabled', 'true');\n\t\t\t\tif (e.target.id == 'option-smtp') {\n\t\t\t\t\tsmtp.setAttribute('data-enabled', 'true');\n\t\t\t\t\tmailgun.setAttribute('data-enabled', 'false');\n\t\t\t\t} else if (e.target.id == 'option-none') {\n\t\t\t\t\tsmtp.setAttribute('data-enabled', 'false');\n\t\t\t\t\tmailgun.setAttribute('data-enabled', 'false');\n\t\t\t\t} else {\n\t\t\t\t\tsmtp.setAttribute('data-enabled', 'false');\n\t\t\t\t\tmailgun.setAttribute('data-enabled', 'true');\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tmail[i].setAttribute('data-enabled', 'false');\n\t\t\t}\n\t\t}\n\t}\n\thandleImageUpload(type, files) {\n\t\tnotify.alert('Uploading Image... ', null);\n\t\tlet self = this;\n\t\tnotify.alert('Uploading Image', null);\n\t\tlet upload = new FormData();\n\t\tupload.enctype = 'multipart/form-data';\n\t\tupload.append('source', type);\n\t\tupload.append('upload_files[]', files[0], files[0].name);\n\n\t\tthis.mm\n\t\t\t.filesUpload(files[0].type, upload)\n\t\t\t.then(r => {\n\t\t\t\tif (type == 'avatar-upload') {\n\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\tdocument.querySelector('[role=\"avatar\"]').style.background =\n\t\t\t\t\t\t'url(' + r.filePath + ') no-repeat center center / cover';\n\t\t\t\t} else {\n\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\tdocument.querySelector('[role=\"background\"]').style.background =\n\t\t\t\t\t\t'url(' + r.filePath + ') no-repeat center center / cover';\n\t\t\t\t}\n\t\t\t})\n\t\t\t.catch(() => {\n\t\t\t\t//console.log(err)\n\t\t\t});\n\t}\n\thandlePublished(e) {\n\t\tif (this.processing) return;\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tlet self = this;\n\t\tlet task = { task: 'PUBLISH_ALL' };\n\t\tthis.processing = true;\n\t\tnotify.alert('Publishing site...', null);\n\t\tthis.admin\n\t\t\t.publish(task)\n\t\t\t.then(r => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(r.message, true);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(err, false);\n\t\t\t});\n\t}\n\n\thandleBackup(e) {\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tnotify.alert('Creating backup', null);\n\t\tthis.mm\n\t\t\t.backup()\n\t\t\t.then(r => {\n\t\t\t\tnotify.alert(r.message, true);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tnotify.alert(err, false);\n\t\t\t});\n\t}\n\n\thandleReindex(e) {\n\t\tif (this.processing) return;\n\t\tlet self = this;\n\t\te.preventDefault();\n\t\te.stopPropagation();\n\t\tlet task = { task: 'cleanup pages indexes' };\n\t\tthis.processing = true;\n\t\tnotify.alert('Cleaning up page indexes', null);\n\t\tthis.admin\n\t\t\t.handleReindex(task)\n\t\t\t.then(r => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(r.message, true);\n\t\t\t})\n\t\t\t.catch(err => {\n\t\t\t\tself.processing = false;\n\t\t\t\tnotify.alert(err, false);\n\t\t\t});\n\t}\n}\n","export default class SettingsActions {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tgetInfo() {\n\t\tlet handle = document.getElementById('settings-handle').value;\n\t\tlet email = document.getElementById('settings-email').value;\n\t\tlet url = document.getElementById('settings-url').value;\n\t\tlet title = document.getElementById('settings-title').value;\n\t\tlet desc = document.getElementById('settings-desc').value;\n\t\t//let privacy = document.getElementById('privacy-toggle').getAttribute('data-private');\n\t\tlet render = document.getElementById('render-toggle').getAttribute('data-render');\n\t\tlet background = document\n\t\t\t.querySelector('[role=\"background\"]')\n\t\t\t.style.backgroundImage.slice(4, -1)\n\t\t\t.replace(/\"/g, '');\n\t\tlet selected = '';\n\t\tlet selects = document.querySelectorAll('.theme-select');\n\t\tlet smtpDomain = document.getElementById('smtp-domain').value;\n\t\tlet smtpEmail = document.getElementById('smtp-email').value;\n\t\tlet smtpPass = document.getElementById('smtp-pass').value;\n\t\tlet mgDomain = document.getElementById('mg-domain').value;\n\t\tlet mgKey = document.getElementById('mg-key').value;\n\t\tlet mailActive = '';\n\t\tlet mailOptions = document.querySelectorAll('.mail-option');\n\t\tlet apiStatus = document\n\t\t\t.getElementById('api-access-toggle')\n\t\t\t.getAttribute('data-enabled');\n\t\tlet dynamicRenderStatus = document\n\t\t\t.getElementById('dynamic-render-toggle')\n\t\t\t.getAttribute('data-enabled');\n\t\tvar i, count;\n\t\tfor (i = 0, count = selects.length; i < count; i++) {\n\t\t\tif (selects[i].getAttribute('data-enabled') == 'true')\n\t\t\t\tselected = selects[i].id;\n\t\t}\n\n\t\tfor (i = 0, count = mailOptions.length; i < count; i++) {\n\t\t\tif (mailOptions[i].getAttribute('data-enabled') == 'true')\n\t\t\t\tmailActive = mailOptions[i].id;\n\t\t}\n\t\tlet settingsData = {\n\t\t\tglobal: {\n\t\t\t\tbase_url: url,\n\t\t\t\ttitle: title,\n\t\t\t\tdescriptions: desc,\n\t\t\t\tbackground: background,\n\t\t\t\tprivate: false,\n\t\t\t\trenderOnSave: render,\n\t\t\t\ttheme: selected,\n\t\t\t\texternalAPI: apiStatus,\n\t\t\t\tdynamicRender: dynamicRenderStatus\n\t\t\t},\n\t\t\tmember: { handle: handle, email: email },\n\t\t\temail: {\n\t\t\t\tactive: mailActive,\n\t\t\t\tsmtp: {\n\t\t\t\t\tdomain: smtpDomain,\n\t\t\t\t\temail: smtpEmail,\n\t\t\t\t\tpassword: smtpPass\n\t\t\t\t},\n\t\t\t\tmailgun: {\n\t\t\t\t\tdomain: mgDomain,\n\t\t\t\t\tkey: mgKey\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn new Promise(function (resolve) {\n\t\t\tresolve(settingsData);\n\t\t});\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","import FipamoAdminAPI from \"../../libraries/FipamoAdminAPI\";\nimport Notficaton from \"../ui/Notifications\";\nconst notify = new Notficaton();\nexport default class Mailer {\n //--------------------------\n // constructor\n //--------------------------\n constructor() {}\n //--------------------------\n // methods\n //--------------------------\n sendMail() {\n let mailData = {\n content: \"This is a test email\"\n };\n let admin = new FipamoAdminAPI();\n admin\n .sendMail(mailData)\n .then((result) => {\n notify.alert(result.message, true);\n })\n .catch((err) => {\n notify.alert(err.message, false);\n });\n }\n testMail() {\n let mailData = {\n content: \"This is a test email\",\n mail_task: \"TESTING\"\n };\n let admin = new FipamoAdminAPI();\n admin\n .sendMail(mailData)\n .then((result) => {\n notify.alert(result.message, true);\n })\n .catch((err) => {\n notify.alert(err.message, false);\n });\n }\n //--------------------------\n // event handlers\n //--------------------------\n}\n","import FipamoAdminAPI, { TASK_SYNC_NAV } from '../../libraries/FipamoAdminAPI';\nimport NavActions from '../actions/NavActions';\nimport * as DataEvent from '../events/DataEvent';\nimport Notifications from '../ui/Notifications';\nimport Sortable from 'sortablejs';\nconst notify = new Notifications();\n\nexport default class NavIndex {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.processing = false;\n\t\tthis.admin = new FipamoAdminAPI(null);\n\t\tthis.start();\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {\n\t\t//grabs elements and makes them sortables\n\t\tlet self = this;\n\t\tSortable.create(document.getElementById('nav-items'), {\n\t\t\tonUpdate: () => {\n\t\t\t\tnew NavActions().syncMenu().then(data => {\n\t\t\t\t\tnotify.alert('Updating Menu', null);\n\t\t\t\t\tself.admin.sync(TASK_SYNC_NAV, data).then(r => {\n\t\t\t\t\t\tif (r.type == DataEvent.MENU_UPDATED) {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\tvar nav = document.querySelectorAll('.nav-btn');\n\t\tfor (var i = 0, length = nav.length; i < length; i++) {\n\t\t\tnav[i].addEventListener('click', e => this.handleNavButton(e), false);\n\t\t}\n\t}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleNavButton(e) {\n\t\tif (this.processing) return;\n\t\tlet id = '';\n\t\tlet self = this;\n\t\tswitch (e.target.id) {\n\t\t\tcase 'remove-item':\n\t\t\t\tid = e.target.getAttribute('data-id');\n\t\t\t\tnew NavActions().removeItem(id);\n\t\t\t\tnew NavActions().syncMenu().then(data => {\n\t\t\t\t\tdata.remove = e.target.getAttribute('data-uuid');\n\t\t\t\t\tnotify.alert('Editing Menu', null);\n\t\t\t\t\tself.processing = true;\n\t\t\t\t\tself.admin.sync(TASK_SYNC_NAV, data).then(r => {\n\t\t\t\t\t\tself.processing = false;\n\t\t\t\t\t\tif (r.type == DataEvent.MENU_UPDATED) {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnotify.alert(r.message, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\tcase 'edit-item':\n\t\t\t\tself.processing = false;\n\t\t\t\twindow.location =\n\t\t\t\t\t'/dashboard/page/edit/' + e.target.getAttribute('data-id');\n\t\t\t\tbreak;\n\t\t}\n\t}\n}\n","export default class NavActions {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tsyncMenu() {\n\t\tlet navData = [];\n\t\tlet items = document.getElementById('nav-items').children;\n\t\tfor (let index = 0; index < items.length; index++) {\n\t\t\tnavData.push({\n\t\t\t\ttitle: items[index].getElementsByTagName('label')[0].innerHTML,\n\t\t\t\tid: items[index].id,\n\t\t\t\tslug: items[index].getAttribute('data-slug'),\n\t\t\t\tuuid: items[index].getAttribute('data-uuid'),\n\t\t\t\tpath: items[index].getAttribute('data-path')\n\t\t\t});\n\t\t}\n\n\t\tlet data = { menu: navData, remove: null };\n\t\treturn new Promise(function (resolve) {\n\t\t\tresolve(data);\n\t\t});\n\t}\n\n\tremoveItem(id) {\n\t\tdocument.getElementById('nav-items').removeChild(document.getElementById(id));\n\t}\n\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n}\n","export default class Menu {\n\t//--------------------------\n\t// constructor\n\t//--------------------------\n\tconstructor() {\n\t\tthis.mobile = false;\n\t\tthis.mobileMenu = document.querySelector('.mobile-menu');\n\t\tdocument\n\t\t\t.querySelector('.menu-toggle')\n\t\t\t.addEventListener('click', e => this.handleMobile(e));\n\t}\n\t//--------------------------\n\t// methods\n\t//--------------------------\n\tstart() {}\n\t//--------------------------\n\t// event handlers\n\t//--------------------------\n\thandleMobile(e) {\n\t\tif (this.mobile) {\n\t\t\tthis.mobile = false;\n\t\t\tthis.mobileMenu.style.display = 'none';\n\t\t} else {\n\t\t\tthis.mobile = true;\n\t\t\tthis.mobileMenu.style.display = 'inline';\n\t\t}\n\t}\n}\n"],"names":["Base","document","addEventListener","FipamoAdminAPI","Maintenance","DataUitls","DataEvent","DashManager","Notfications","data","notify","constructor","processing","start","getElementById","querySelector","options","getElementsByClassName","index","length","e","handleOptions","handleLogin","handleSetup","handleRestore","handleReset","self","preventDefault","authForm","formDataToJSON","api","login","then","response","type","REQUEST_LAME","target","innerHTML","message","setTimeout","window","location","catch","err","stopPropagation","setUpForm","mm","create","API_INIT_LAME","form","restore","id","email","value","task","secret","alert","newPass","newPassConfirm","init","style","display","visibility","REQUEST_TYPE_POST","REQUEST_TYPE_GET","REQUEST_TYPE_PUT","REQUEST_TYPE_DELETE","CONTENT_TYPE_JSON","CONTENT_TYPE_FORM","API_STATUS","API_GET_SETTINGS","API_GET_MEMBER_INFO","API_NEW_PAGE","API_EDIT_PAGE","API_DELETE_PAGE","API_SETTINGS_SYNC","API_PUBLISH_PAGES","API_NAV_SYNC","API_REINDEX_PAGES","API_SEND_MAIL","API_LOGIN","AUTH_STATUS","TASK_SETTINGS_WRITE","TASK_PUBLISH_SITE","TASK_PAGE_CREATE","TASK_PAGE_EDIT","TASK_PAGE_DELETE","TASK_SEND_MAIL","TASK_REINDEX_PAGE","TASK_SYNC_SETTNIGS","TASK_SYNC_NAV","TASK_GET_SETTINGS","TASK_GET_MEMBER_INFO","API_ACCESS_GOOD","API_ACCESS_BAD","baseURL","progressBar","percentComplete","status","_request","token","Promise","resolve","reject","remote","key","result","sync","url","publish","pageActions","event","content","sendMail","getInfo","requestURL","eventType","requestType","contentType","requestData","request","XMLHttpRequest","upload","handleLoadProgress","open","onload","JSON","parse","error","setRequestHeader","send","stringify","percent","Math","ceil","loaded","total","width","default","API_INIT","API_RESTORE","API_GET_SECRET","API_RESET_PASS","API_CREATE_BACKUP","API_DOWNLOAD_BACKUP","API_RESTORE_BACKUP","API_UPLOAD_AVATAR","API_UPLOAD_BACKGROUND","API_IMAGE_UPLOAD","API_FILES_UPLOAD","TASK_SITE_INIT","TASK_BACKUP_RESTORE","TASK_BACKUP_CREATE","TASK_GET_SECRET","TASK_RESET_PASS","TASK_UPLOAD_FILES","MaintenanceManager","accetableFiles","method","FormData","backup","filesUpload","files","progress","append","r","DataUtils","imgLoad","responseType","Error","statusText","onerror","loadImage","src","myImage","Image","crossOrigin","imageURL","URL","createObjectURL","object","formData","forEach","hasOwnProperty","Array","isArray","push","REQUEST_GOOD","API_REQUEST_GOOD","API_REQUEST_LAME","IMG_REQUEST_GOOD","IMG_REQUEST_LAME","SETTINGS_LOADED","POST_IMAGE_ADDED","FEATURE_IMAGE_ADDED","PAGE_ERROR","PAGE_ADDED","PAGE_UPDATED","PAGE_DELETED","PAGES_RENDERED","PAGES_NOT_RENDERED","TAG_PAGES_RENDERED","TAG_PAGES_NOT_RENDERED","SETTINGS_UPDATED","SETTINGS_NOT_UPDATED","MENU_ADD_ITEM","MENU_DELETE_ITEM","MENU_UPDATED","AVATAR_UPLOADED","SITE_BACKGROUND_UPLOADED","UPLOAD_PROGRESS","API_PAGE_WRITE","API_PAGE_CREATE","API_PAGE_DELETE","API_SETTINGS_WRITE","API_BACKUP_CREATE","API_BACKUP_DOWNLOAD","API_BACKUP_RESTORE","API_IMAGES_UPLOAD","API_RENDER_PAGES","API_INIT_GOOD","SEND_MAIL","PostIndex","SettingsIndex","NaviIndex","Menu","currentDisplay","urlPieces","split","chooseDisplay","section","page","PageEditor","currentPage","choosePage","PageActions","EditorEvent","TextEditor","FileManager","PostEditor","admin","post","postID","postUUID","postLayout","fm","getAttribute","editor","offsetHeight","addListener","EDITOR_DELETE","handleEditorOptions","EDITOR_UPLOAD_POST_IMAGE","EDITOR_UPDATE","EDITOR_SAVE","handleImageUpload","optionButtons","querySelectorAll","i","handlePostOptions","currentOption","active","setAttribute","collectInfo","getFileOrder","confirm","click","enctype","name","filePath","StringUtils","PostActions","pageInfo","pageRef","txt","createElement","html","replace","uuid","layout","current_title","title","created","slug","cleanString","tags","menu","featured","published","form_token","imageList","images","fileList","string","clean","toLowerCase","decodeHTML","quote_style","optTemp","noquotes","toString","OPTS","ENT_NOQUOTES","ENT_HTML_QUOTE_SINGLE","ENT_HTML_QUOTE_DOUBLE","ENT_COMPAT","ENT_QUOTES","ENT_IGNORE","concat","EventEmitter","Prism","textEditor","scrollLimit","console","log","body","fixLimit","scrollTop","classList","add","remove","result_element","text","RegExp","editorHeight","height","highlightElement","scrollLeft","dispatchEvent","Event","setInputs","editorButtons","handleEditorOption","len","selectionStart","end","selectionEnd","insert","substring","selectedText","prompt","link","emitEvent","listeners","Map","label","callback","has","set","get","removeListener","isFunction","obj","reduce","listener","splice","args","anime","notifcation","responseText","notifyText","notifyIcons","iconGood","iconNotGood","iconWorking","color","targets","rotateX","easing","complete","opacity","duration","backgroundColor","Sortable","input","sortedFiles","storage","mediaSort","animation","onUpdate","fileSort","handleFileActions","removeMedia","removeFile","imgList","childNodes","div","media","sortFiles","file","reader","FileReader","theFile","f","removeIcon","className","appendChild","item","itemFactory","background","removeChild","video","source","audio","href","fileName","readAsDataURL","mediaCount","fileCount","parentNode","rawList","sortedList","notOnTheList","dataTransfer","dropEffect","includes","SettingsActions","Mailer","Notifications","apiButton","apiStatus","dynamicRenderButton","dynamicRenderStatus","handleMailer","handlePublished","toggleRender","themeBtns","handleThemes","mailBtn","handleMailOptions","handleBackup","togglePrivacy","button","mailer","testMail","themes","smtp","mailgun","mail","handleReindex","handle","desc","render","backgroundImage","slice","selected","selects","smtpDomain","smtpEmail","smtpPass","mgDomain","mgKey","mailActive","mailOptions","count","settingsData","global","base_url","descriptions","private","renderOnSave","theme","externalAPI","dynamicRender","member","domain","password","Notficaton","mailData","mail_task","NavActions","NavIndex","syncMenu","nav","handleNavButton","removeItem","navData","items","children","getElementsByTagName","path","mobile","mobileMenu","handleMobile"],"version":3,"file":"dash.js.map","sourceRoot":"../../../"} \ No newline at end of file diff --git a/src/com/controllers/SettingsIndex.js b/src/com/controllers/SettingsIndex.js index 150a1f1..e6e04eb 100644 --- a/src/com/controllers/SettingsIndex.js +++ b/src/com/controllers/SettingsIndex.js @@ -39,10 +39,10 @@ export default class SettingsIndex { }) ); //handle set up image uploads - document.querySelector('[role="avatar"]').addEventListener('click', () => { + document.querySelector('.avatar').addEventListener('click', () => { document.getElementById('avatar-upload').click(); }); - document.querySelector('[role="background"]').addEventListener('click', () => { + document.querySelector('.background').addEventListener('click', () => { document.getElementById('background-upload').click(); }); document.getElementById('avatar-upload').addEventListener( -- 2.25.1 From 2ce0a4eb828791e141a482b743c6413b60ec0224 Mon Sep 17 00:00:00 2001 From: Ro <are0h@ubiqueros.com> Date: Sat, 5 Aug 2023 10:15:58 -0700 Subject: [PATCH 22/23] Taiga Integration Test Just seeing if this thing actually work TG-3 #testing --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 55dfe00..3167e71 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ The Fipamo project was born from a need for a simple, easy to use no data blog platform that doesn't require much effort to set up and maintain. Fipamo uses Markdown to handle posts and renders them to flat html so you can serve them from anywhere. No complicated set ups. No long list of dependencies. Just set up and go. -Because it's the 21 century. It should be easy. +Because it's the 21 century. Easy is good. ## Check the (WIP) Docs to get you started. <br> -- 2.25.1 From 49c1f2d3f2e7b23a3e436356f98d11ca2d2f64f2 Mon Sep 17 00:00:00 2001 From: Ro <are0h@ubiqueros.com> Date: Sat, 5 Aug 2023 11:16:46 -0700 Subject: [PATCH 23/23] Taiga Intergration Test 2 First one used the wrong hook type. TG-3 #testing --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3167e71..9e929ae 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ The Fipamo project was born from a need for a simple, easy to use no data blog platform that doesn't require much effort to set up and maintain. Fipamo uses Markdown to handle posts and renders them to flat html so you can serve them from anywhere. No complicated set ups. No long list of dependencies. Just set up and go. -Because it's the 21 century. Easy is good. +Because it's the 21 century. This should be easy. ## Check the (WIP) Docs to get you started. <br> -- 2.25.1