From 0a14d09c74807292b143447b9abef3e9f63498c1 Mon Sep 17 00:00:00 2001 From: Jane Adelmann Date: Thu, 17 Jan 2019 18:51:22 +0200 Subject: [PATCH] #14 - All Travis CI checks have been enabled. #13 - A validation has been added. #12 - File with events has been deleted. #11 - A file access.php has been rewritten. #10 - install.xml file has been rewritten by xmldb tool. #9 - A Class with Privacy definition has been created. #8 - All urls and paths have been wrapped with build-in class `moodle_url`. #7 - Check of `MOODLE_INTERNAL` constant has been added to each file where it was needed. #6 - All strings like this have been wrapped with `get_string` function. #5 - All native calls of `curl` have been replaced with moodle `curl` class. #4 - All classes have been renamed with moodle style naming. FileModel had been dropped. #3 - GPL License has been added to each file. #2 - Call of deprecated function has been replaced with a new one. --- .travis.yml | 77 +- amd/src/main.js | 33 - .../18165c78c6d1452d17d41df86c8f7c48.svg | 3 - .../189d30258cbfac64b38b693c383a7b31.svg | 3 - .../20288744996c2dc297e5b40186f339ae.svg | 3 - .../463d1ca07dcbf1c18745b2999af60e4b.svg | 3 - .../6d872c8ed163708099999ace50567848.svg | 3 - .../6fe578c1c8ac120206998fccdd3bac84.svg | 3 - .../7b6b06644be2e5537935b55a7e3141c9.svg | 3 - .../8c9a309759d08c07e9ef4f7e2093e710.svg | 1 - .../d1af325a022bb1885a7869dad9eaa500.svg | 3 - .../e1a427ae8d674f488554205093c3695f.svg | 3 - ...white-4ae10676b15e573d5f4ba85e13352ffb.svg | 172 ++++ assets/viewer/plagCheck.css | 834 ------------------ assets/viewer/plagCheck.css.map | 1 - assets/viewer/plagCheck.js | 33 - assets/viewer/public-report.bundle.min.js | 1 + ...t-viewer.min.css => public-report.min.css} | 455 +++++++++- assets/viewer/report-viewer.min.js | 1 - ...rite-629f3f2022a6e5fc28f69395449a59a3.svg} | 2 +- classes/plagiarism_pchkorg_api_provider.php | 275 ++++++ classes/plagiarism_pchkorg_config_model.php | 86 ++ classes/plagiarism_pchkorg_file_loader.php | 21 + classes/plagiarism_pchkorg_url_generator.php | 32 + classes/privacy/provider.php | 67 ++ component/ApiProvider.php | 180 ---- component/UrlGenerator.php | 20 - db/access.php | 199 +---- db/events.php | 4 - db/install.php | 6 +- db/install.xml | 59 +- form/plagiarism_form.php | 37 - form/plagiarism_pchkorg_setup_form.php | 48 + form/send_text_form.php | 33 +- lang/en/plagiarism_pchkorg.php | 44 +- lib.php | 142 ++- model/ConfigModel.php | 78 -- model/FileModel.php | 34 - moodle-plagiarism_pchkorg.iml | 10 + page/check.php | 102 ++- page/report.php | 161 ++-- settings.php | 23 +- version.php | 11 +- view/check_report.php | 80 +- view/report.php | 54 +- view/send_text.php | 21 +- 46 files changed, 1639 insertions(+), 1825 deletions(-) delete mode 100644 amd/src/main.js delete mode 100644 assets/viewer/18165c78c6d1452d17d41df86c8f7c48.svg delete mode 100644 assets/viewer/189d30258cbfac64b38b693c383a7b31.svg delete mode 100644 assets/viewer/20288744996c2dc297e5b40186f339ae.svg delete mode 100644 assets/viewer/463d1ca07dcbf1c18745b2999af60e4b.svg delete mode 100644 assets/viewer/6d872c8ed163708099999ace50567848.svg delete mode 100644 assets/viewer/6fe578c1c8ac120206998fccdd3bac84.svg delete mode 100644 assets/viewer/7b6b06644be2e5537935b55a7e3141c9.svg delete mode 100644 assets/viewer/8c9a309759d08c07e9ef4f7e2093e710.svg delete mode 100644 assets/viewer/d1af325a022bb1885a7869dad9eaa500.svg delete mode 100644 assets/viewer/e1a427ae8d674f488554205093c3695f.svg create mode 100644 assets/viewer/logo-on-white-4ae10676b15e573d5f4ba85e13352ffb.svg delete mode 100644 assets/viewer/plagCheck.css delete mode 100644 assets/viewer/plagCheck.css.map delete mode 100644 assets/viewer/plagCheck.js create mode 100644 assets/viewer/public-report.bundle.min.js rename assets/viewer/{report-viewer.min.css => public-report.min.css} (59%) delete mode 100644 assets/viewer/report-viewer.min.js rename assets/viewer/{sprite-d4601b0b6de55a813269678618bcc950.svg => sprite-629f3f2022a6e5fc28f69395449a59a3.svg} (74%) create mode 100644 classes/plagiarism_pchkorg_api_provider.php create mode 100644 classes/plagiarism_pchkorg_config_model.php create mode 100644 classes/plagiarism_pchkorg_file_loader.php create mode 100644 classes/plagiarism_pchkorg_url_generator.php create mode 100644 classes/privacy/provider.php delete mode 100644 component/ApiProvider.php delete mode 100644 component/UrlGenerator.php delete mode 100644 db/events.php delete mode 100644 form/plagiarism_form.php create mode 100644 form/plagiarism_pchkorg_setup_form.php delete mode 100644 model/ConfigModel.php delete mode 100644 model/FileModel.php create mode 100644 moodle-plagiarism_pchkorg.iml diff --git a/.travis.yml b/.travis.yml index 10ca726..52407df 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,50 +1,59 @@ language: php -sudo: true - -addons: - firefox: "47.0.1" - postgresql: "9.4" - apt: - packages: - - oracle-java8-installer - - oracle-java8-set-default +sudo: false cache: directories: - - $HOME/.composer/cache - - $HOME/.npm + - $HOME/.composer/cache + - $HOME/.npm + +addons: + postgresql: "9.6" + apt: + packages: + - mysql-server-5.6 + - mysql-client-core-5.6 + - mysql-client-5.6 php: -- 7.0 -- 7.1 + - 7.0 + - 7.1 env: - global: - - MOODLE_BRANCH=MOODLE_35_STABLE matrix: - - DB=pgsql - - DB=mysqli + - DB=pgsql MOODLE_BRANCH=MOODLE_33_STABLE + - DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE + - DB=pgsql MOODLE_BRANCH=MOODLE_34_STABLE + - DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE + - DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE + - DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE + +matrix: + include: + - php: 5.6 + env: DB=pgsql MOODLE_BRANCH=MOODLE_33_STABLE + - php: 5.6 + env: DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE before_install: -- phpenv config-rm xdebug.ini -- nvm install 8.9 -- nvm use 8.9 -- cd ../.. -- composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci ^2 -- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" + - phpenv config-rm xdebug.ini + - nvm install 8.9 + - nvm use 8.9 + - cd ../.. + - composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci ^2 + - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" install: -- moodle-plugin-ci install + - moodle-plugin-ci install script: -- moodle-plugin-ci phplint -- moodle-plugin-ci phpcpd -- moodle-plugin-ci phpmd -#- moodle-plugin-ci codechecker -- moodle-plugin-ci validate -- moodle-plugin-ci savepoints -- moodle-plugin-ci mustache -#- moodle-plugin-ci grunt -- moodle-plugin-ci phpunit -- moodle-plugin-ci behat \ No newline at end of file + - moodle-plugin-ci phplint + - moodle-plugin-ci phpcpd + - moodle-plugin-ci phpmd + - moodle-plugin-ci codechecker + - moodle-plugin-ci validate + - moodle-plugin-ci savepoints + - moodle-plugin-ci mustache + - moodle-plugin-ci grunt + - moodle-plugin-ci phpunit + - moodle-plugin-ci behat diff --git a/amd/src/main.js b/amd/src/main.js deleted file mode 100644 index b62afa3..0000000 --- a/amd/src/main.js +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Activity form - * - * @package plagiarism_pchkorg - * @subpackage plagiarism - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ - -/* jshint ignore:start */ -define(['jquery'], function ($) { - return { - checkReport: function () { - var interval; - var data = { - 'file': $('#plagcheck-loader').attr('data-file'), - 'cmid': $('#plagcheck-loader').attr('data-cmid') - }; - var checkStatus = function () { - $.post('/plagiarism/pchkorg/page/check.php', data, function (response) { - if (!response || !response.success) { - $('#plagcheck-loader').hide(); - clearInterval(interval); - } else if (response.checked) { - $('#plagcheck-loader').hide(); - clearInterval(interval); - window.location.href = response.location; - } - }, 'JSON'); - }; - interval = setInterval(checkStatus, 1000) - } - }; -}); diff --git a/assets/viewer/18165c78c6d1452d17d41df86c8f7c48.svg b/assets/viewer/18165c78c6d1452d17d41df86c8f7c48.svg deleted file mode 100644 index 44cccab..0000000 --- a/assets/viewer/18165c78c6d1452d17d41df86c8f7c48.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/assets/viewer/189d30258cbfac64b38b693c383a7b31.svg b/assets/viewer/189d30258cbfac64b38b693c383a7b31.svg deleted file mode 100644 index 11c0ebb..0000000 --- a/assets/viewer/189d30258cbfac64b38b693c383a7b31.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/assets/viewer/20288744996c2dc297e5b40186f339ae.svg b/assets/viewer/20288744996c2dc297e5b40186f339ae.svg deleted file mode 100644 index d21ab08..0000000 --- a/assets/viewer/20288744996c2dc297e5b40186f339ae.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/assets/viewer/463d1ca07dcbf1c18745b2999af60e4b.svg b/assets/viewer/463d1ca07dcbf1c18745b2999af60e4b.svg deleted file mode 100644 index 1485c40..0000000 --- a/assets/viewer/463d1ca07dcbf1c18745b2999af60e4b.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/assets/viewer/6d872c8ed163708099999ace50567848.svg b/assets/viewer/6d872c8ed163708099999ace50567848.svg deleted file mode 100644 index 6eb4dfb..0000000 --- a/assets/viewer/6d872c8ed163708099999ace50567848.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/assets/viewer/6fe578c1c8ac120206998fccdd3bac84.svg b/assets/viewer/6fe578c1c8ac120206998fccdd3bac84.svg deleted file mode 100644 index 158f421..0000000 --- a/assets/viewer/6fe578c1c8ac120206998fccdd3bac84.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/assets/viewer/7b6b06644be2e5537935b55a7e3141c9.svg b/assets/viewer/7b6b06644be2e5537935b55a7e3141c9.svg deleted file mode 100644 index 85d9b01..0000000 --- a/assets/viewer/7b6b06644be2e5537935b55a7e3141c9.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/assets/viewer/8c9a309759d08c07e9ef4f7e2093e710.svg b/assets/viewer/8c9a309759d08c07e9ef4f7e2093e710.svg deleted file mode 100644 index 273c0ab..0000000 --- a/assets/viewer/8c9a309759d08c07e9ef4f7e2093e710.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/assets/viewer/d1af325a022bb1885a7869dad9eaa500.svg b/assets/viewer/d1af325a022bb1885a7869dad9eaa500.svg deleted file mode 100644 index f25451e..0000000 --- a/assets/viewer/d1af325a022bb1885a7869dad9eaa500.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/assets/viewer/e1a427ae8d674f488554205093c3695f.svg b/assets/viewer/e1a427ae8d674f488554205093c3695f.svg deleted file mode 100644 index cb89d1d..0000000 --- a/assets/viewer/e1a427ae8d674f488554205093c3695f.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/assets/viewer/logo-on-white-4ae10676b15e573d5f4ba85e13352ffb.svg b/assets/viewer/logo-on-white-4ae10676b15e573d5f4ba85e13352ffb.svg new file mode 100644 index 0000000..f144532 --- /dev/null +++ b/assets/viewer/logo-on-white-4ae10676b15e573d5f4ba85e13352ffb.svg @@ -0,0 +1,172 @@ + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/viewer/plagCheck.css b/assets/viewer/plagCheck.css deleted file mode 100644 index c0661cd..0000000 --- a/assets/viewer/plagCheck.css +++ /dev/null @@ -1,834 +0,0 @@ -.pCheck-loader { - font-size: 0.625rem; - position: relative; - text-indent: -9999em; - border-top: 0.5em solid rgba(0, 0, 0, 0.1); - border-right: 0.5em solid rgba(0, 0, 0, 0.1); - border-bottom: 0.5em solid rgba(0, 0, 0, 0.1); - border-left: 0.5em solid #e56d67; - -webkit-transform: translateZ(0); - transform: translateZ(0); - will-change: rotate; - -webkit-animation: load 1s linear infinite; - animation: load 1s linear infinite; - margin: 0 auto; } - -.pCheck-loader, -.pCheck-loader::after { - border-radius: 50%; - width: 2em; - height: 2em; } - -@-webkit-keyframes load { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); } } - -@keyframes load { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); } } -.pCheck-brief-percent { - font-size: 0.875rem; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - border-right: 1px solid #efefef; - -webkit-box-sizing: border-box; - box-sizing: border-box; - padding: 8px 16px; } - .pCheck-brief-percent:first-child { - padding-left: 0; } - .pCheck-brief-percent:last-child { - border-right: none; } - -.pCheck-brief-percent-type { - text-transform: capitalize; - font-weight: bold; - border-radius: 1rem; - font-size: 0.875rem; } - -.pCheck-brief-percent-diagram { - width: 100%; - min-width: 120px; - height: 4px; - background-color: #efefef; - position: relative; - border-radius: 2px; - margin: 4px 0; } - -.pCheck-brief-percent-diagram-type { - position: absolute; - left: 0; - top: 0; - height: 100%; - border-radius: 2px; } - -.pCheck-brief-percent-sources { - font-size: 0.875rem; } - -.pCheck-nodes-words { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; } - -.pCheck-brief-percent-words { - color: #888; - font-size: 0.75rem; } - -.pCheck-brief-percent-nodes { - color: #888; - font-size: 0.75rem; } -.pCheck-brief-summary { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - font-size: 1rem; } -.pCheck-brief-title-total { - margin: 0; - font-weight: bold; - font-size: 1.25rem; } - -.pCheck-brief-title-desc { - font-size: 0.75rem; - color: #888; } - -.pCheck-brief-words { - margin-top: 8px; } -.pCheck-brief-briefItem { - -webkit-box-sizing: border-box; - box-sizing: border-box; - padding: 0 1px; } - .pCheck-brief-briefItem:first-child { - padding-left: 0; } - .pCheck-brief-briefItem:hover { - cursor: help; } - -.pCheck-brief-briefItem-color { - width: 100%; - border-radius: 2px; - height: 6px; } -.pCheck-brief-measureBriefLine { - width: 100%; } - -.pCheck-brief-briefLine { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; - width: 100%; - background-color: #fff; - margin: 4px 0 12px; - border-radius: 3px; } -.pCheck-brief { - width: 100%; } - -.pCheck-brief-info { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - min-height: 101px; } - -.pCheck-brief-title { - min-width: 240px; } -.pCheck-node { - font-size: 0.875rem; - margin: 0 8px 0 0; - font-family: inherit; - white-space: pre-wrap; - word-break: break-all; - display: inline; - padding: 0.1rem 0; } - .pCheck-node.pCheck-plagiarism.pCheck-matched:hover, .pCheck-node.pCheck-paraphrase.pCheck-matched:hover, .pCheck-node.pCheck-header.pCheck-matched:hover, .pCheck-node.pCheck-quote.pCheck-matched:hover, .pCheck-node.pCheck-reference.pCheck-matched:hover { - cursor: pointer; - color: #1976d2 !important; - border-color: transparent !important; } - .pCheck-node.pCheck-plagiarism.pCheck-filtered:hover, .pCheck-node.pCheck-paraphrase.pCheck-filtered:hover, .pCheck-node.pCheck-header.pCheck-filtered:hover, .pCheck-node.pCheck-quote.pCheck-filtered:hover, .pCheck-node.pCheck-reference.pCheck-filtered:hover { - cursor: text; - color: inherit !important; } - .pCheck-node.pCheck-header, .pCheck-node.pCheck-quote, .pCheck-node.pCheck-reference { - border-bottom-style: dashed !important; } - -.pCheck-highlighted .pCheck-node.pCheck-unhighlighted { - color: inherit !important; - border-bottom: transparent !important; } -.pCheck-dropDown { - position: relative; - min-height: 22px; - min-width: 22px; } - .pCheck-dropDown.pCheck-bottom .pCheck-dropDown-list { - top: 0; } - .pCheck-dropDown.pCheck-top .pCheck-dropDown-list { - bottom: 0; } - -.pCheck-dropDown-button { - width: 22px; - height: 22px; - border-radius: 50%; - background-image: url(d1af325a022bb1885a7869dad9eaa500.svg); - background-size: 18px 18px; - background-repeat: no-repeat; - background-position: center center; } - .pCheck-dropDown-button:hover { - cursor: pointer; - background-color: #b3e5fc; } - -.pCheck-dropDown-list { - background-color: #fff; - position: absolute; - z-index: 32; - border-radius: 2px; - right: 0; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - min-width: 100px; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-flow: column nowrap; - flex-flow: column nowrap; - -webkit-box-align: start; - -ms-flex-align: start; - align-items: flex-start; - -webkit-box-shadow: 0 4px 12px -4px #888; - box-shadow: 0 4px 12px -4px #888; } -.pCheck-source-filterItem { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; - padding: 8px 16px 8px 12px; - width: 100%; - -webkit-box-sizing: border-box; - box-sizing: border-box; } - .pCheck-source-filterItem.pCheck-inactive .pCheck-source-filterItem-switch { - background-image: url(20288744996c2dc297e5b40186f339ae.svg); } - .pCheck-source-filterItem:last-child { - border-bottom: none; } - .pCheck-source-filterItem:hover { - cursor: pointer; - background-color: #efefef; } - -.pCheck-source-filterItem-switch { - width: 22px; - height: 22px; - background-size: 18px 18px; - background-position: center center; - background-repeat: no-repeat; - background-image: url(6d872c8ed163708099999ace50567848.svg); } - -.pCheck-source-filterItem-text { - display: block; - margin-right: 8px; - margin-left: 8px; } - -.pCheck-source-filterItem-type { - width: 12px; - height: 12px; - border-radius: 50%; - margin-right: 0; - margin-left: auto; } -.pCheck-source.pCheck-all { - border-bottom: 1px solid #efefef; - padding-bottom: 8px; - border-radius: 0; } - .pCheck-source.pCheck-all .pCheck-source-label, - .pCheck-source.pCheck-all .pCheck-source-name, - .pCheck-source.pCheck-all .pCheck-source-index { - opacity: 1; } - .pCheck-source.pCheck-all .pCheck-source-name { - padding-left: 4px; - padding-right: 0; } - .pCheck-source.pCheck-all .pCheck-dropDown-button { - background-image: url(189d30258cbfac64b38b693c383a7b31.svg); } - -.pCheck-source-typeBadges { - margin-right: 0; - margin-left: auto; } - -.pCheck-source-typeBadge { - font-size: 0.75rem; - margin: 0 2px; - font-weight: bold; - line-height: 62%; } -.pCheck-source-percent { - min-width: 52px; - padding: 0 4px; - -webkit-box-sizing: border-box; - box-sizing: border-box; } -.pCheck-source-action { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - padding: 8px 16px 8px 12px; - white-space: nowrap; - width: 100%; - -webkit-box-sizing: border-box; - box-sizing: border-box; } - .pCheck-source-action:hover { - cursor: pointer; - background-color: #efefef; } - .pCheck-source-action::before { - content: ''; - width: 22px; - height: 22px; - background-size: 18px 18px; - background-position: center center; - background-repeat: no-repeat; - margin-right: 8px; - display: block; - background-image: url(20288744996c2dc297e5b40186f339ae.svg); } - .pCheck-source-action.pCheck-active::before { - background-image: url(6d872c8ed163708099999ace50567848.svg); } -.pCheck-source-link { - color: inherit; - text-decoration: none; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - padding: 8px 16px 8px 12px; - white-space: nowrap; - width: 100%; - -webkit-box-sizing: border-box; - box-sizing: border-box; } - .pCheck-source-link::before { - content: ''; - width: 22px; - height: 22px; - background-size: 18px 18px; - background-position: center center; - background-repeat: no-repeat; - background-image: url(463d1ca07dcbf1c18745b2999af60e4b.svg); - margin-right: 8px; } - .pCheck-source-link:hover { - cursor: pointer; - background-color: #efefef; } -.pCheck-source-index { - min-width: 22px; - min-height: 22px; - color: #333; - border-radius: 50%; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - font-size: 0.75rem; - font-weight: bold; - margin: 0 4px 0 8px; - text-align: center; - background-color: #efefef; } - .pCheck-source-index:hover { - cursor: help; } - .pCheck-source-index.external, .pCheck-source-index.cache { - visibility: hidden; } -.pCheck-source-name { - display: block; - overflow: hidden; - text-overflow: ellipsis; - margin-left: 0; - margin-right: auto; - text-decoration: none; } - .pCheck-source-name.pCheck-link { - color: #0d47a1; } - .pCheck-source-name:hover { - cursor: pointer; - color: #1976d2; } -.pCheck-source-label { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - min-width: 84px; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; } - .pCheck-source-label:hover { - cursor: pointer; } - -.pCheck-source-checkbox { - outline: none; - min-width: 16px; - min-height: 16px; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - background-color: transparent; - border: 1px solid #888; - border-radius: 2px; } - .pCheck-source-checkbox:hover { - cursor: pointer; } - .pCheck-source-checkbox:checked { - background: transparent url(6d872c8ed163708099999ace50567848.svg) center center no-repeat; - background-size: 12px 12px; } -.pCheck-highlighted .pCheck-source-label, -.pCheck-highlighted .pCheck-source-name, -.pCheck-highlighted .pCheck-source-index { - opacity: 0.4; } - -.pCheck-source { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - border-radius: 2px; - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-between; - padding: 4px; - margin-bottom: 4px; - font-size: 0.875rem; - line-height: 160%; - -webkit-box-sizing: border-box; - box-sizing: border-box; - width: 100%; } - .pCheck-source.pCheck-active { - background-color: #b3e5fc; } - .pCheck-source.pCheck-highlighted .pCheck-source-label, - .pCheck-source.pCheck-highlighted .pCheck-source-name, - .pCheck-source.pCheck-highlighted .pCheck-source-index { - opacity: 1; } - .pCheck-source.pCheck-ignored { - background-color: #e1bee7; } -.pCheck-details-title { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; } - -.pCheck-details-title-type { - padding: 4px 12px; - border-radius: 16px; - font-size: 0.75rem; - text-transform: uppercase; - color: #fff; } - -.pCheck-details-title-title { - font-weight: bold; - margin-left: 8px; } -.pCheck-details-text { - padding-bottom: 8px; } - -.pCheck-details-text-text { - font-size: 0.875rem; - padding: 16px 0; } - -.pCheck-details-text-textInfo { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-between; - font-size: 0.875rem; } - -.pCheck-details-text-percent { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; } - -.pCheck-details-text-percent-text { - margin-left: 4px; } - -.pCheck-details-text-words { - margin-left: 4px; - color: #888; } - -.pCheck-details-text-textCopy { - padding: 6px 8px 6px 4px; - color: inherit; - background-color: #efefef; - border: none; - border-radius: 2px; - outline: none; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; - font-size: 0.875rem; } - .pCheck-details-text-textCopy:hover { - cursor: pointer; - background-color: #b3e5fc; } - .pCheck-details-text-textCopy::before { - content: ''; - width: 16px; - height: 16px; - display: block; - margin-right: 4px; - background-image: url(e1a427ae8d674f488554205093c3695f.svg); - background-position: center center; - background-repeat: no-repeat; - background-size: contain; } - .pCheck-details-text-textCopy.pCheck-copied::before { - background-image: url(7b6b06644be2e5537935b55a7e3141c9.svg); } -.pCheck-details-sourceItem-cos { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: start; - -ms-flex-pack: start; - justify-content: flex-start; - color: #888; - min-width: 52px; - margin-right: 8px; } - .pCheck-details-sourceItem-cos::before { - content: ''; - width: 18px; - height: 18px; - display: block; - background-image: url(8c9a309759d08c07e9ef4f7e2093e710.svg); - background-size: cover; - background-color: #efefef; - border-radius: 50%; - margin-right: 4px; } -.pCheck-details-sourceItem-single { - width: 100%; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-decoration: none; - color: #0d47a1; - padding: 4px 8px; } - .pCheck-details-sourceItem-single:hover { - color: #1976d2; } - -.pCheck-details-sourceItem-single-icon { - margin-left: auto; - margin-right: 0; - background-image: url(463d1ca07dcbf1c18745b2999af60e4b.svg); - width: 22px; - height: 22px; - background-size: 18px 18px; - background-repeat: no-repeat; - background-position: center center; } -.pCheck-details-sourceItem-links { - margin-right: 0; - margin-left: auto; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; } - -.pCheck-details-sourceItem-link { - color: inherit; - text-decoration: none; - white-space: nowrap; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-direction: row; - flex-direction: row; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - text-indent: -9999px; } - .pCheck-details-sourceItem-link::after { - content: ''; - width: 22px; - height: 22px; - background-image: url(6fe578c1c8ac120206998fccdd3bac84.svg); - display: block; - background-position: center center; - background-size: 18px 18px; - background-repeat: no-repeat; - border-radius: 50%; } - .pCheck-details-sourceItem-link:hover::after { - background-color: #b3e5fc; } -.pCheck-details-sourceItem-multi { - width: 100%; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - padding: 4px 8px; } -.pCheck-details-sourceItem { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - font-size: 0.875rem; } - .pCheck-details-sourceItem:hover { - background-color: #efefef; } - .pCheck-details-sourceItem .pCheck-source-index { - margin: 0 8px 0 0; } -.pCheck-nodeDetails-sourcesList-tabs { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - padding: 0; - border-bottom: 1px solid #cecece; - margin: 16px 0; } - -.pCheck-nodeDetails-sourcesList-tab { - list-style-type: none; - font-size: 0.875rem; - padding: 4px 12px; - border-radius: 4px 4px 0 0; - margin-right: 4px; - outline: none; - background-color: #fff; } - .pCheck-nodeDetails-sourcesList-tab.pCheck-active { - position: relative; - bottom: -1px; - border: 1px solid #cecece; - border-bottom: none; } - .pCheck-nodeDetails-sourcesList-tab.pCheck-active:hover { - cursor: default; - background-color: #fff; } - .pCheck-nodeDetails-sourcesList-tab.pCheck-disabled { - color: #888; } - .pCheck-nodeDetails-sourcesList-tab.pCheck-disabled:hover { - cursor: default; - background-color: #fff; } - .pCheck-nodeDetails-sourcesList-tab:hover { - cursor: pointer; - background-color: #b3e5fc; } -.pCheck-details { - position: fixed; - width: 100%; - height: 100%; - top: 0; - left: 0; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row wrap; - flex-flow: row wrap; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; } - -.pCheck-details-overlay { - position: absolute; - width: 100%; - height: 100%; - top: 0; - left: 0; - z-index: 64; - opacity: 0.6; - background-color: rgba(0, 0, 0, 0.16); } - -.pCheck-details-details { - width: 100%; - max-width: 620px; - max-height: 100%; - padding: 16px 32px 32px; - background-color: #fff; - border-radius: 2px; - -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.12); - box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.12); - z-index: 65; } - -.pCheck-details-header { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-between; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; } - -.pCheck-details-close { - width: 32px; - height: 32px; - border-radius: 50%; - background-image: url(18165c78c6d1452d17d41df86c8f7c48.svg); - background-repeat: no-repeat; - background-position: center center; - background-size: 18px 18px; } - .pCheck-details-close:hover { - cursor: pointer; - background-color: #efefef; } -.pCheck-workspace { - width: 100%; - height: 100%; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-between; } - -.pCheck-nodes { - padding: 0 24px 0 0; - -webkit-box-sizing: border-box; - box-sizing: border-box; } - -.pCheck-sources-sticky { - overflow-y: auto; } - -.pCheck-sources { - width: 320px; - min-width: 320px; - max-width: 320px; - -webkit-box-sizing: border-box; - box-sizing: border-box; - top: 0; } - -.pCheck-empty { - padding: 8px 16px 8px 0; - -webkit-box-sizing: border-box; - box-sizing: border-box; - font-size: 1rem; - border-bottom: 2px solid #efefef; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; } - .pCheck-empty::before { - content: ''; - width: 24px; - height: 24px; - display: block; - background-image: url(7b6b06644be2e5537935b55a7e3141c9.svg); - background-repeat: no-repeat; - background-position: center center; - margin-right: 4px; } - -/*# sourceMappingURL=plagCheck.css.map*/ \ No newline at end of file diff --git a/assets/viewer/plagCheck.css.map b/assets/viewer/plagCheck.css.map deleted file mode 100644 index 6e3e591..0000000 --- a/assets/viewer/plagCheck.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"plagCheck.css","sources":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","sourceRoot":""} \ No newline at end of file diff --git a/assets/viewer/plagCheck.js b/assets/viewer/plagCheck.js deleted file mode 100644 index 4842319..0000000 --- a/assets/viewer/plagCheck.js +++ /dev/null @@ -1,33 +0,0 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=407)}([function(e,t,n){"use strict";e.exports=n(35)},function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,u){if(o(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,s,u],p=0;c=new Error(t.replace(/%s/g,function(){return l[p++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(e){};e.exports=r},function(e,t,n){e.exports=n(296)()},function(e,t,n){"use strict";var r=n(12),o=r;e.exports=o},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;re.clientHeight?e:p(e.parentNode)}function f(e,t){return Math.ceil(100*e/t)}function d(){for(var e=arguments.length,t=Array(e),n=0;n-1)||-1===t.indexOf(e)}function m(e){var t=e.text,n=t.match(C.default.REG_EXP_WORDS_COUNT);return n?n.length:0}function v(){for(var e=arguments.length,t=Array(e),n=0;n100?e-e%100:e}Object.defineProperty(t,"__esModule",{value:!0});var _="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};t.isObject=o,t.findNearestPrevNode=i,t.findNearestNextNode=a,t.typesToObject=s,t.typesToArray=u,t.intersection=c,t.arrayIntersection=l,t.getScrollParent=p,t.roundPercent=f,t.compose=d,t.removeDuplicates=h,t.isFiltered=g,t.countWords=m,t.mergeDeep=v,t.countAllWords=y,t.clarifyPlagiarismPercent=b;var E=n(8),C=function(e){return e&&e.__esModule?e:{default:e}}(E)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.init(t,n)}return e.prototype.init=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||i,this.options=t,this.debug=!1!==t.debug},e.prototype.setDebug=function(e){this.debug=e},e.prototype.log=function(){this.forward(arguments,"log","",!0)},e.prototype.warn=function(){this.forward(arguments,"warn","",!0)},e.prototype.error=function(){this.forward(arguments,"error","")},e.prototype.deprecate=function(){this.forward(arguments,"warn","WARNING DEPRECATED: ",!0)},e.prototype.forward=function(e,t,n,r){r&&!this.debug||("string"==typeof e[0]&&(e[0]=n+this.prefix+" "+e[0]),this.logger[t](e))},e.prototype.create=function(t){return new e(this.logger,o({prefix:this.prefix+":"+t+":"},this.options))},e}();t.a=new a},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";var r=n(4),o=(n(1),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},u=function(e){var t=this;e instanceof t||r("25"),e.destructor(),t.instancePool.length1){for(var h=Array(d),g=0;g1){for(var v=Array(m),y=0;y-1&&n.observers[e].splice(r,1)}else delete n.observers[e]})},e.prototype.emit=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return o()?{}:{obj:e,k:r(i.shift())}}function a(e,t,n){var r=i(e,t,Object);r.obj[r.k]=n}function s(e,t,n,r){var o=i(e,t,Object),a=o.obj,s=o.k;a[s]=a[s]||[],r&&(a[s]=a[s].concat(n)),r||a[s].push(n)}function u(e,t){var n=i(e,t),r=n.obj,o=n.k;if(r)return r[o]}function c(e,t,n){for(var r in t)r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):c(e[r],t[r],n):e[r]=t[r];return e}function l(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function p(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return f[e]}):e}t.f=r,t.a=o,t.g=a,t.b=s,t.c=u,t.h=c,t.e=l,t.d=p;var f={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"}},function(e,t,n){"use strict";function r(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}function o(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!r(t));default:return!1}}var i=n(4),a=n(80),s=n(81),u=n(85),c=n(139),l=n(140),p=(n(1),{}),f=null,d=function(e,t){e&&(s.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},h=function(e){return d(e,!0)},g=function(e){return d(e,!1)},m=function(e){return"."+e._rootNodeID},v={injection:{injectEventPluginOrder:a.injectEventPluginOrder,injectEventPluginsByName:a.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n&&i("94",t,typeof n);var r=m(e);(p[t]||(p[t]={}))[r]=n;var o=a.registrationNameModules[t];o&&o.didPutListener&&o.didPutListener(e,t,n)},getListener:function(e,t){var n=p[t];if(o(t,e._currentElement.type,e._currentElement.props))return null;var r=m(e);return n&&n[r]},deleteListener:function(e,t){var n=a.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=p[t];if(r){delete r[m(e)]}},deleteAllListeners:function(e){var t=m(e);for(var n in p)if(p.hasOwnProperty(n)&&p[n][t]){var r=a.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(e,n),delete p[n][t]}},extractEvents:function(e,t,n,r){for(var o,i=a.plugins,s=0;s=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t0?o(r(e),9007199254740991):0}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function a(){g&&d&&(g=!1,d.length?h=d.concat(h):m=-1,h.length&&s())}function s(){if(!g){var e=o(a);g=!0;for(var t=h.length;t;){for(d=h,h=[];++m1)for(var n=1;n]/;e.exports=o},function(e,t,n){"use strict";var r,o=n(11),i=n(79),a=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,u=n(87),c=u(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML=""+t+"";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(o.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(c=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t0;)r=d.nextValue(),e=Math.floor(r*t.length),n.push(t.splice(e,1)[0]);return n.join("")}function u(){return f||(f=s())}function c(e){return u()[e]}var l,p,f,d=n(400),h="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";e.exports={characters:i,seed:a,lookup:c,shuffled:u}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.t,n=e.indexType,r=n.name,o=n.type;return a.default.createElement("div",{className:(0,l.default)("pCheck-source-index",o),title:t("source-index-"+o+"-tooltip",{type:o,name:r})},t("source-index-"+o+"-label",{type:o}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(0),a=r(i),s=n(2),u=r(s),c=n(7),l=r(c);n(266),o.propTypes={t:u.default.func.isRequired,indexType:u.default.shape({id:u.default.number,name:u.default.string.isRequired,status:u.default.string,queries:u.default.number,type:u.default.string.isRequired}).isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0,activeSources:t})})})})}function s(e){var t=e.report_data,n=e.report_data,r=n.sources,o=n.nodes,i=e.id;return Object.assign({},e,{report_data:(0,y.mergeDeep)(t,{sources:r.map(function(e){return e.id===i?Object.assign({},e,{enabled:!1}):e}),nodes:o.map(function(e){var t=e.activeSources.map(function(e){return e.id===i?Object.assign({},e,{enabled:!1}):e});return Object.assign({},e,{enabled:t.filter(function(e){return e.enabled}).length>0,activeSources:t})})})})}function u(e){var t=e.report_data,n=e.report_data.sources,r=e.id;return Object.assign({},e,{report_data:Object.assign({},t,{sources:n.map(function(e){return e.id===r?Object.assign({},e,{ignored:!e.ignored}):e})})})}function c(e){return e.map(function(e){return Object.assign({},{id:e,enabled:!0,ignored:!1})})}function l(e,t){var n=t.t,r=t.sourceOptions,i=e.report_data,a=i.sources,s=i.indexes,u={link:{name:n("source-all-label")},enabled:!0,filtered:!1,source:"",key:g.default.generate()},c=a.map(function(e,t){return Object.assign({},e,{id:t,key:g.default.generate(),enabled:!0,active:!1,ignored:!1,highlighted:!1,filtered:!1,plagiarism_percent:Math.round(10*e.plagiarism_percent)/10,indexType:s.find(function(t){return t.id===e.index}),percents:{},sourceOptions:r})}).sort(function(e,t){return t.plagiarism_percent-e.plagiarism_percent});return a.length?[u].concat(o(c)):[]}function p(e){var t=e.report_data,n=e.report_data.sources,r=e.types,o=(0,y.typesToObject)(r),i=Object.keys(o).filter(function(e){return o[e]}),a=n.map(function(e){var t=e.percents;return t?Object.assign({},e,{filtered:!Object.keys(t).some(function(e){return i.indexOf(e)>=0})}):e});return Object.assign({},e,{report_data:Object.assign({},t,{sources:a})})}function f(e){var t=e.report_data,n=e.report_data,r=n.sources,o=n.length,i=n.sourcesLengths,a=e.types,s=(0,y.typesToObject)(a),u=Object.keys(s).filter(function(e){return s[e]}),c=r.map(function(e){var t=i[e.id+1],n=0;return t&&t.percents&&(n=u.reduce(function(e,n){return t.percents[n]?e+t.percents[n].length:e},0)),Object.assign({},e,{percent:(0,y.roundPercent)(n,o),percents:t?t.percents:void 0})});return Object.assign({},e,{report_data:Object.assign({},t,{sources:c})})}function d(e){var t=e.report_data,n=e.report_data,r=n.foundTypes,o=n.sources,i=e.types,a=0===(0,y.arrayIntersection)(r,i).length;return Object.assign({},e,{report_data:Object.assign({},t,{empty:a,allowedSources:a?0:o.filter(function(e){return e.id>v.default.NOT_ID&&!e.ignored}).length})})}Object.defineProperty(t,"__esModule",{value:!0}),t.toggleAllSources=i,t.enableSource=a,t.disableSource=s,t.ignoreSourceInSources=u,t.getActiveSources=c,t.formatSources=l,t.filterSourcesByType=p,t.populateSourcesPercents=f,t.allowSources=d;var h=n(24),g=r(h),m=n(8),v=r(m),y=n(20)},function(e,t,n){var r=n(10)("unscopables"),o=Array.prototype;void 0==o[r]&&n(30)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t,n){var r=n(37),o=n(10)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(22),o=n(14).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(37);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(31).f,o=n(29),i=n(10)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(114)("keys"),o=n(55);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(71),o=n(69);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a-1||a("96",e),!c.plugins[n]){t.extractEvents||a("97",e),c.plugins[n]=t;var r=t.eventTypes;for(var i in r)o(r[i],t,i)||a("98",i,e)}}}function o(e,t,n){c.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),c.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){c.registrationNameModules[e]&&a("100",e),c.registrationNameModules[e]=t,c.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),s=(n(1),null),u={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s&&a("101"),s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];u.hasOwnProperty(n)&&u[n]===o||(u[n]&&a("102",n),u[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=c.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=c.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=c},function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function o(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=v.getNodeFromInstance(r),t?g.invokeGuardedCallbackWithCatch(o,n,e):g.invokeGuardedCallback(o,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(e,t){var n=s.get(e);if(!n){return null}return n}var a=n(4),s=(n(19),n(46)),u=(n(15),n(16)),c=(n(1),n(3),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){c.validateCallback(t,n);var o=i(e);if(!o)return null;o._pendingCallbacks?o._pendingCallbacks.push(t):o._pendingCallbacks=[t],r(o)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t,n){var o=i(e,"replaceState");o&&(o._pendingStateQueue=[t],o._pendingReplaceState=!0,void 0!==n&&null!==n&&(c.validateCallback(n,"replaceState"),o._pendingCallbacks?o._pendingCallbacks.push(n):o._pendingCallbacks=[n]),r(o))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,o(e))}});e.exports=c},function(e,t,n){"use strict";var r=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e};e.exports=r},function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=r},function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=i[e];return!!r&&!!n[r]}function o(e){return r}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=o},function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=r},function(e,t,n){"use strict";/** - * Checks if an event is supported in the current execution environment. - * - * NOTE: This will not work correctly for non-generic events such as `change`, - * `reset`, `load`, `error`, and `select`. - * - * Borrows from Modernizr. - * - * @param {string} eventNameSuffix Event name, e.g. "click". - * @param {?boolean} capture Check if the capture phase is supported. - * @return {boolean} True if the event is supported. - * @internal - * @license Modernizr 3.0.0pre (Custom Build) | MIT - */ -function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(11);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=null===e||!1===e,r=null===t||!1===t;if(n||r)return n===r;var o=typeof e,i=typeof t;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=r},function(e,t,n){"use strict";var r=(n(5),n(12)),o=(n(3),r);e.exports=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return e.type===p.default||e.type===d.default||e.type===g.default}function i(e,t){return c.Children.map(e,function(e){return null===e?null:o(e)?t(e):e.props&&e.props.children&&"object"===u(e.props.children)?(0,c.cloneElement)(e,s({},e.props,{children:i(e.props.children,t)})):e})}function a(e,t){return c.Children.forEach(e,function(e){null!==e&&(e.type===p.default||e.type===g.default?t(e):e.props&&e.props.children&&"object"===u(e.props.children)&&(e.type===d.default&&t(e),a(e.props.children,t)))})}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t=t?"auto":"visible"})},e)}}},{key:"renderBrief",value:function(){var e=this.props,t=e.t,n=e.types,r=e.colors,o=this.state,i=o.report_data;return o.report_data.empty?c.default.createElement("div",{className:"pCheck-empty"},t("empty")):c.default.createElement(M.default,{data:i,t:t,types:n,colors:r})}},{key:"renderSources",value:function(){var e=this,t=this.props,n=t.t,r=t.colors,o=this.state,i=o.report_data,a=i.sources,s=i.foundTypes,u=o.highlightedSource,l=o.allowedTypes,p=o.activeTypes,d=a.map(function(t){var o=t.key,i=t.id,a=t.filtered,s=t.percents,f=void 0===s?{}:s,d=Object.assign({},t,{highlighted:i===u,filtered:a});return c.default.createElement(L.default,{t:n,data:d,key:o,allowedTypes:l,activeTypes:p,colors:r,percents:f,enableSource:e.enableSourceHandler,disableSource:e.disableSourceHandler,toggleAllSources:e.toggleAllSourceHandler,enableHighlight:e.enableNodesHighlightHandler,disableHighlight:e.disableNodesHighlightHandler,ignoreSource:e.ignoreSourceHandler,allowSource:e.allowSourceHandler,filterTypes:e.filterTypesHandler})});if(0!==a.length&&0!==(0,k.arrayIntersection)(s,(0,k.typesToArray)(l)).length)return c.default.createElement(f.StickyContainer,{key:"sources",className:"pCheck-sources"},c.default.createElement(f.Sticky,null,this.sourcesWithSticky(d)))}},{key:"renderNodes",value:function(){var e=this,t=this.state.report_data.nodes,n=this.props,r=n.t,o=n.colors,i=n.colorize,a=t.map(function(t){var n=t.type,a=t.id,s=t.active,u=t.enabled,l=t.text,p=t.matched,f=t.highlighted,d=t.filtered;return c.default.createElement(j.default,{t:r,id:a,data:{active:s,enabled:u,text:l,matched:p,type:n,highlighted:f,filtered:d},color:o[n],colorize:i,key:t.key,clickHandler:e.showNodeDetailsHandler})});return c.default.createElement("div",{className:"pCheck-nodes",key:"nodes"},a)}},{key:"renderNodeDetails",value:function(){var e=this.props.t,t=this.state.nodeDetails;return t?c.default.createElement(F.default,{data:t,t:e,onClose:this.closeNodeDetailsHandler}):void 0}},{key:"renderComponent",value:function(){var e=this.state.highlightedSource,t=this.renderBrief(),n=[this.renderNodes(),this.renderSources()],r=this.renderNodeDetails(),o=e!==y.default.NOT_ID?_.default.HIGHLIGHTED:void 0;return c.default.createElement("div",{className:(0,h.default)("pCheck-component",o)},t,c.default.createElement("div",{className:"pCheck-workspace"},n),r)}},{key:"render",value:function(){var e=this.state.ready,t=e?this.renderComponent():c.default.createElement(R.default,null);return c.default.createElement("div",{className:"pCheck"},t)}}]),t}(u.Component);H.propTypes={t:p.default.func.isRequired,url:p.default.string,localData:p.default.shape(),colors:p.default.shape(),colorize:p.default.bool,nodeDetails:p.default.bool,types:p.default.arrayOf(p.default.string),activeTypes:p.default.arrayOf(p.default.string)},H.defaultProps={url:m.default.URL_PLAGCHECK_RESULT,localData:y.default.EMPTY_OBJECT,colorize:!0,nodeDetails:!0,sourceOptions:!0,colors:{plagiarism:"#d32f2f",paraphrase:"#c2185b",header:"#388e3c",quote:"#388e3c",reference:"#388e3c",original:"#efefef"},types:[y.default.PLAGIARISM,y.default.PARAPHRASE,y.default.HEADER,y.default.QUOTE,y.default.REFERENCE],activeTypes:[y.default.PLAGIARISM,y.default.PARAPHRASE,y.default.HEADER,y.default.QUOTE,y.default.REFERENCE]},t.default=H},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(293),i=r(o),a=n(25),s=r(a),u=n(8),c=r(u),l=n(186),p=r(l),f=s.default.I18NEXT_LNG,d=s.default.I18NEXT_FALLBACK_LNG,h=s.default.I18NEXT_WHITELIST;i.default.init({resources:{en:p.default},lng:f,fallbackLng:d,whitelist:h,defaultNS:c.default.I18N_DEFAULT_NAMESPACE,fallbackNS:c.default.I18N_DEFAULT_NAMESPACE,debug:!1,initImmediate:!1,interpolation:{}}),t.default=i.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n=a?v.default.DIRECTION_TOP:v.default.DIRECTION_BOTTOM;n.setState({direction:s})}},n.state={opened:!1,direction:v.default.DIRECTION_BOTTOM},n}return a(t,e),s(t,[{key:"componentDidMount",value:function(){document.addEventListener("click",this.clickHandler,!0),document.addEventListener("keydown",this.keyHandler,!0)}},{key:"componentWillReceiveProps",value:function(e){var t=e.shown;this.setState({opened:t})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.clickHandler,!0),document.removeEventListener("keydown",this.keyHandler,!0)}},{key:"renderButton",value:function(){return c.default.createElement("div",{className:"pCheck-dropDown-button",onClick:this.show,role:"presentation"})}},{key:"renderList",value:function(){var e=this.props.children;return c.default.createElement("div",{className:"pCheck-dropDown-list",ref:this.getContainer},e)}},{key:"render",value:function(){var e=this.state,t=e.opened,n=e.direction,r=t?this.renderList():this.renderButton();return c.default.createElement("div",{className:(0,d.default)("pCheck-dropDown",n)},r)}}]),t}(u.Component);b.propTypes={children:p.default.arrayOf(p.default.element).isRequired,shown:p.default.bool,onClose:p.default.func},b.defaultProps={shown:!1,onClose:g.default.DUMMY_FUNCTION},t.default=b},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=e.quotes,n=e.sources;return t&&t.length>0&&n.length>0}function s(e){var t=e.headers,n=e.sources;return t&&t.length>0&&n.length>0}function u(e){var t=e.references,n=e.sources;return t&&t.length>0&&n.length>0}function c(e){var t=e.sources_improved;return!(!t||a(e)||s(e)||u(e))&&t.filter(function(e){return e.cos===k.default.PARAPHRASE_BOUNDARY}).length>0}function l(e){var t=e.sources_improved;return!(!t||c(e)||a(e)||s(e)||u(e))&&t.filter(function(e){return e.cos0}function p(e){var t=void 0;switch(!0){case a(e):t=k.default.QUOTE;break;case u(e):t=k.default.REFERENCE;break;case s(e):t=k.default.HEADER;break;case c(e):t=k.default.PLAGIARISM;break;case l(e):t=k.default.PARAPHRASE;break;default:t=k.default.ORIGINAL}return t}function f(e,t){return t[p(e)]}function d(e,t){var n=e.nodes;return Object.assign({},e,{nodes:n.map(function(e){return Object.assign({},e,{highlighted:e.sources.includes(t)})})})}function h(e){var t=e.nodes;return Object.assign({},e,{nodes:t.map(function(e){return Object.assign({},e,{highlighted:!1})})})}function g(e,t){var n=e.sources_improved;return t.filter(function(t){return e.sources.indexOf(t.id)>-1}).map(function(e){var t=n.filter(function(t){return t.source===e.id}),r=x(t,1),o=r[0];return Object.assign({},e,{key:O.default.generate(),cos:o?o.cos:void 0})})}function m(e){var t=e.report_data,n=e.report_data.nodes,r=e.id,o=n.map(function(e){return Object.assign({},e,{activeSources:e.activeSources.map(function(e){return e.id===r?Object.assign({},e,{ignored:!e.ignored}):e})})});return Object.assign({},e,{report_data:Object.assign({},t,{nodes:o})})}function v(e){var t=e.report_data,n=e.report_data.nodes,r=e.types,o=n.map(function(e){var t=e.type;return Object.assign({},e,{filtered:!r[t]})});return Object.assign({},e,{report_data:Object.assign({},t,{nodes:o})})}function y(e){return e.replace(k.default.REG_EXP_MULTIPLE_NEW_LINES,"\n").replace(k.default.REG_EXP_NBSP_NEW_LINES," ")}function b(e,t){var n=e.start,r=e.end;return Math.round(100*(r-n)/t*100)/100}function _(e,t){var n=e.report_data,r=n.nodes,o=n.sources,i=n.length,a=t.colors,s=t.activeTypes,u=t.types,c=o.length;return r.filter(function(e){return e.text.length>0}).map(function(e,t){var n=e.start,r=e.end,o=e.text,l=e.sources,d=(0,T.getActiveSources)(l),h=p(e);return Object.assign({},e,{id:t,number:t+1,length:r-n,key:O.default.generate(),active:!0,highlighted:!1,filtered:(0,P.isFiltered)(h,s,u),percent:b(e,i),color:f(e,a),text:y(o),matched:d.length>0,words:(0,P.countWords)(e),activeSources:d,maxSources:c,type:h})})}function E(e){var t,n=e.report_data,r=e.report_data,a=r.nodes,s=r.sources,u=e.types,c=(t={length:0},i(t,k.default.PLAGIARISM,{length:0,sources:[],words:0,nodes:0}),i(t,k.default.PARAPHRASE,{length:0,sources:[],words:0,nodes:0}),i(t,k.default.HEADER,{length:0,sources:[],words:0,nodes:0}),i(t,k.default.QUOTE,{length:0,sources:[],words:0,nodes:0}),i(t,k.default.REFERENCE,{length:0,sources:[],words:0,nodes:0}),i(t,k.default.ORIGINAL,{length:0,sources:[],words:0,nodes:0}),t),l=s.map(function(){return{percents:{}}});a.map(function(e){var t=e.type,n=e.activeSources,r=e.words,o=e.text,i=c[t],a=c[k.default.ORIGINAL],s=n.find(function(e){return!e.ignored}),p=n.filter(function(e){return!e.ignored});return s&&u.includes(t)?(c[t]={length:i.length+o.length,sources:i.sources.concat(p),words:i.words+r,nodes:i.nodes+1},n.map(function(e){var n=l[e.id+1].percents[t]||{length:0,nodes:0,words:0};return l[e.id+1].percents[t]={length:n.length+o.length,nodes:n.nodes+1,words:n.words+r},e})):c[k.default.ORIGINAL]={length:a.length+o.length,sources:[],words:a.words+r,nodes:a.nodes+1},c.length+=o.length,e}),k.default.NODE_TYPES.map(function(e){return c[e]=Object.assign({},c[e],{percent:(0,P.roundPercent)(c[e].length,c.length),sources:(0,P.removeDuplicates)(c[e].sources)}),e});var p=c.length,f=o(c,["length"]);return Object.assign({},e,{report_data:Object.assign({},n,{totalLength:p,percents:f,sourcesLengths:l})})}function C(e){var t=e.report_data,n=e.report_data.nodes,r=e.types,o=[];return n.map(function(e){return o.includes(e.type)||o.push(e.type),e}),Object.assign({},e,{report_data:Object.assign({},t,{foundTypes:o}),types:r})}Object.defineProperty(t,"__esModule",{value:!0});var x=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.isQuote=a,t.isHeader=s,t.isReference=u,t.isPlagiarism=c,t.isParaphrase=l,t.getNodeType=p,t.chooseNodeColor=f,t.enableNodesHighlight=d,t.disableNodesHighlight=h,t.formatNodeSourcesList=g,t.ignoreSourceInNodes=m,t.filterNodesByType=v,t.formatNodeText=y,t.countNodePercent=b,t.formatNodes=_,t.populateNodesPercents=E,t.populateFoundTypes=C;var w=n(24),O=r(w),S=n(8),k=r(S),T=n(66),P=n(20)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return e.ok?e:Promise.reject(e)}function i(e){var t=e.type,n=void 0===t?p:t,r=e.params,i=e.reader,a=e.url;return r&&n===p&&(a+="?"+Object.keys(r).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(r[e])}).join("&")),fetch(a,l).then(o).then(function(e){return e[i||c.default.FETCH_READER_JSON]()})}Object.defineProperty(t,"__esModule",{value:!0}),t.responseChecker=o,t.default=i;var a=n(25),s=r(a),u=n(8),c=r(u),l=s.default.FETCH,p=c.default.REQUEST_TYPE_GET},function(e,t,n){var r=n(76),o=n(54),i=n(226);e.exports=function(e){return function(t,n,a){var s,u=r(t),c=o(u.length),l=i(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(27),o=n(71),i=n(41),a=n(54),s=n(203);e.exports=function(e,t){var n=1==e,u=2==e,c=3==e,l=4==e,p=6==e,f=5==e||p,d=t||s;return function(t,s,h){for(var g,m,v=i(t),y=o(v),b=r(s,h,3),_=a(y.length),E=0,C=n?d(t,_):u?d(t,0):void 0;_>E;E++)if((f||E in y)&&(g=y[E],m=b(g,E,v),e))if(n)C[E]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return E;case 2:C.push(g)}else if(l)return!1;return p?-1:c||l?l:C}}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(14).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(39),o=n(10)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){var r=n(37);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(26);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){"use strict";var r=n(111),o=n(17),i=n(40),a=n(30),s=n(29),u=n(39),c=n(208),l=n(73),p=n(216),f=n(10)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,g,m,v,y){c(n,t,g);var b,_,E,C=function(e){if(!d&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",w="values"==m,O=!1,S=e.prototype,k=S[f]||S["@@iterator"]||m&&S[m],T=k||C(m),P=m?w?C("entries"):T:void 0,N="Array"==t?S.entries||k:k;if(N&&(E=p(N.call(new e)))!==Object.prototype&&E.next&&(l(E,x,!0),r||s(E,f)||a(E,f,h)),w&&k&&"values"!==k.name&&(O=!0,T=function(){return k.call(this)}),r&&!y||!d&&!O&&S[f]||a(S,f,T),u[t]=T,u[x]=h,m)if(b={values:w?T:C("values"),keys:v?T:C("keys"),entries:P},y)for(_ in b)_ in S||i(S,_,b[_]);else o(o.P+o.F*(d||O),t,b);return b}},function(e,t,n){var r=n(10)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},function(e,t){e.exports=!1},function(e,t,n){"use strict";function r(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=o(t),this.reject=o(n)}var o=n(52);e.exports.f=function(e){return new r(e)}},function(e,t,n){var r=n(17),o=n(9),i=n(28);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(14),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){var r,o,i,a=n(27),s=n(207),u=n(105),c=n(70),l=n(14),p=l.process,f=l.setImmediate,d=l.clearImmediate,h=l.MessageChannel,g=l.Dispatch,m=0,v={},y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){y.call(e.data)};f&&d||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++m]=function(){s("function"==typeof e?e:Function(e),t)},r(m),m},d=function(e){delete v[e]},"process"==n(37)(p)?r=function(e){p.nextTick(a(y,e,1))}:g&&g.now?r=function(e){g.now(a(y,e,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:f,clear:d}},function(e,t,n){var r=n(68),o=n(10)("iterator"),i=n(39);e.exports=n(9).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){"use strict";var r=n(225)(!0);n(109)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var r=n(12),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=o},function(e,t,n){"use strict";function r(e){try{e.focus()}catch(e){}}e.exports=r},function(e,t,n){"use strict";function r(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=r},function(e,t,n){"use strict";function r(e){return e.interpolation={unescapeSuffix:"HTML"},e.interpolation.prefix=e.interpolationPrefix||"__",e.interpolation.suffix=e.interpolationSuffix||"__",e.interpolation.escapeValue=e.escapeInterpolation||!1,e.interpolation.nestingPrefix=e.reusePrefix||"$t(",e.interpolation.nestingSuffix=e.reuseSuffix||")",e}function o(e){return e.resStore&&(e.resources=e.resStore),e.ns&&e.ns.defaultNs?(e.defaultNS=e.ns.defaultNs,e.ns=e.ns.namespaces):e.defaultNS=e.ns||"translation",e.fallbackToDefaultNS&&e.defaultNS&&(e.fallbackNS=e.defaultNS),e.saveMissing=e.sendMissing,e.saveMissingTo=e.sendMissingTo||"current",e.returnNull=!e.fallbackOnNull,e.returnEmptyString=!e.fallbackOnEmpty,e.returnObjects=e.returnObjectTrees,e.joinArrays="\n",e.returnedObjectHandler=e.objectTreeKeyHandler,e.parseMissingKeyHandler=e.parseMissingKey,e.appendNamespaceToMissingKey=!0,e.nsSeparator=e.nsseparator||":",e.keySeparator=e.keyseparator||".","sprintf"===e.shortcutFunction&&(e.overloadTranslationOptionHandler=function(e){for(var t=[],n=1;n.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=m.createElement(U,{child:t});if(e){var u=C.get(e);a=u._processChildContext(u._context)}else a=k;var l=f(n);if(l){var p=l._currentElement,h=p.props.child;if(N(h,t)){var g=l._renderedComponent.getPublicInstance(),v=r&&function(){r.call(g)};return F._updateRootComponent(l,s,a,n,v),g}F.unmountComponentAtNode(n)}var y=o(n),b=y&&!!i(y),_=c(n),E=b&&!l&&!_,x=F._renderNewRootComponent(s,n,E,a)._renderedComponent.getPublicInstance();return r&&r.call(x),x},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){l(e)||d("40");var t=f(e);if(!t){c(e),1===e.nodeType&&e.hasAttribute(I);return!1}return delete D[t._instance.rootID],S.batchedUpdates(u,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(l(t)||d("41"),i){var s=o(t);if(x.canReuseMarkup(e,s))return void y.precacheNode(n,s);var u=s.getAttribute(x.CHECKSUM_ATTR_NAME);s.removeAttribute(x.CHECKSUM_ATTR_NAME);var c=s.outerHTML;s.setAttribute(x.CHECKSUM_ATTR_NAME,u);var p=e,f=r(p,c),g=" (client) "+p.substring(f-20,f+20)+"\n (server) "+c.substring(f-20,f+20);t.nodeType===A&&d("42",g)}if(t.nodeType===A&&d("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else P(t,e),y.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";var r=n(4),o=n(35),i=(n(1),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||!1===e?i.EMPTY:o.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void r("26",e)}});e.exports=i},function(e,t,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};e.exports=r},function(e,t,n){"use strict";function r(e,t){return null==t&&o("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var o=n(4);n(1);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=r},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===o.COMPOSITE;)e=e._renderedComponent;return t===o.HOST?e._renderedComponent:t===o.EMPTY?null:void 0}var o=n(137);e.exports=r},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(11),i=null;e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function o(e){return e._wrapperState.valueTracker}function i(e,t){e._wrapperState.valueTracker=t}function a(e){delete e._wrapperState.valueTracker}function s(e){var t;return e&&(t=r(e)?""+e.checked:e.value),t}var u=n(6),c={_getTrackerFromNode:function(e){return o(u.getInstanceFromNode(e))},track:function(e){if(!o(e)){var t=u.getNodeFromInstance(e),n=r(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),c=""+t[n];t.hasOwnProperty(n)||"function"!=typeof s.get||"function"!=typeof s.set||(Object.defineProperty(t,n,{enumerable:s.enumerable,configurable:!0,get:function(){return s.get.call(this)},set:function(e){c=""+e,s.set.call(this,e)}}),i(e,{getValue:function(){return c},setValue:function(e){c=""+e},stopTracking:function(){a(e),delete t[n]}}))}},updateValueIfChanged:function(e){if(!e)return!1;var t=o(e);if(!t)return c.track(e),!0;var n=t.getValue(),r=s(u.getNodeFromInstance(e));return r!==n&&(t.setValue(r),!0)},stopTracking:function(e){var t=o(e);t&&t.stopTracking()}};e.exports=c},function(e,t,n){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||!1===e)n=c.create(i);else if("object"==typeof e){var s=e,u=s.type;if("function"!=typeof u&&"string"!=typeof u){var f="";f+=r(s._owner),a("130",null==u?u:typeof u,f)}"string"==typeof s.type?n=l.createInternalComponent(s):o(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new p(s)}else"string"==typeof e||"number"==typeof e?n=l.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),s=n(5),u=n(320),c=n(132),l=n(134),p=(n(391),n(1),n(3),function(e){this.construct(e)});s(p.prototype,u,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";function r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!o[e.type]:"textarea"===t}var o={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=r},function(e,t,n){"use strict";var r=n(11),o=n(61),i=n(62),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,o(t))})),e.exports=a},function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?c.escape(e.key):t.toString(36)}function o(e,t,n,i){var f=typeof e;if("undefined"!==f&&"boolean"!==f||(e=null),null===e||"string"===f||"number"===f||"object"===f&&e.$$typeof===s)return n(i,e,""===t?l+r(e,0):t),1;var d,h,g=0,m=""===t?l:t+p;if(Array.isArray(e))for(var v=0;v>4*r&15|o()),n=t1&&void 0!==arguments[1]?arguments[1]:_.default.CUSTOM_PROPS_DEFAULT,n=(0,f.translate)([_.default.COMPONENT_NAME])(S.default);C.default.then(function(){var r=w.default.lng,o=w.default.settings,i=w.default.strings,a=Array.from(document.querySelectorAll(e)),u=(0,k.configureProps)(t,o);(0,k.configureI18Next)(r,i),a.map(function(e){return c.default.render(s.default.createElement(f.I18nextProvider,{i18n:m.default},s.default.createElement(n,u)),e),e})})}}]),e}();document.dispatchEvent(new CustomEvent(_.default.READY_EVENT_NAME,{detail:new T,scoped:!0}))},function(e,t,n){"use strict";n(195),n(197),n(196),n(193),n(194),n(198),n(200),n(199),n(192),n(241),n(403)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.t,n=e.percents,r=e.colors,o=e.types,i=0,s=o.concat(l.default.ORIGINAL).map(function(e){if(!(i>100))return i+=n[e].percent,a.default.createElement(f.default,{t:t,type:e,percent:n[e],color:r[e],key:"plagCheck-briefItem-"+e})});return a.default.createElement("div",{className:"pCheck-brief-briefLine"},s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(0),a=r(i),s=n(2),u=r(s),c=n(8),l=r(c),p=n(161),f=r(p);n(242),o.propTypes={t:u.default.func.isRequired,percents:u.default.shape({}).isRequired,colors:u.default.shape({}).isRequired,types:u.default.arrayOf(u.default.string).isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.t,n=e.type,r=e.percent.percent,o=e.color,i={width:r+"%"},s={backgroundColor:o};return r>0?a.default.createElement("div",{className:(0,l.default)("pCheck-brief-briefItem",f.default[n.toUpperCase()]),style:i,title:t("brief-item-"+n+"-tooltip",{percent:r})},a.default.createElement("div",{style:s,className:"pCheck-brief-briefItem-color"})):a.default.createElement("span",null)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(0),a=r(i),s=n(2),u=r(s),c=n(7),l=r(c),p=n(13),f=r(p);n(243),o.propTypes={t:u.default.func.isRequired,type:u.default.string.isRequired,percent:u.default.shape({percent:u.default.number.isRequired}).isRequired,color:u.default.string.isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.t,n=e.type,r=e.percent,o=r.percent,i=r.sources,s=r.nodes,u=r.words,c=e.color,p={backgroundColor:c,width:o+"%"},f={color:c};return a.default.createElement("div",{className:"pCheck-brief-percent"},a.default.createElement("span",{className:(0,l.default)("pCheck-brief-percent-type","pCheck-"+n),style:f},t("brief-percent-type",{type:n})),a.default.createElement("div",{className:"pCheck-brief-percent-diagram"},a.default.createElement("div",{className:"pCheck-brief-percent-diagram-type",style:p})),a.default.createElement("div",{className:"pCheck-brief-percent-percentContainer"},a.default.createElement("b",{className:"pCheck-brief-percent-percent"},t("brief-percent-percent",{count:o})),a.default.createElement("span",{className:"pCheck-brief-percent-sources"},t("brief-percent-sources",{count:i.length}))),a.default.createElement("div",{className:"pCheck-nodes-words"},a.default.createElement("div",{className:"pCheck-brief-percent-words"},t("brief-percent-words",{count:u}))," ",a.default.createElement("div",{className:"pCheck-brief-percent-nodes"},t("brief-percent-nodes",{count:s}))))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(0),a=r(i),s=n(2),u=r(s),c=n(7),l=r(c);n(244),o.propTypes={t:u.default.func.isRequired,type:u.default.string.isRequired,percent:u.default.shape({length:u.default.number.isRequired,percent:u.default.number.isRequired,words:u.default.number,sources:u.default.arrayOf(u.default.shape()).isRequired,nodes:u.default.number.isRequired}).isRequired,color:u.default.string.isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.percents,n=e.types,r=e.t,o=e.colors,i=n.map(function(e){if(t[e].percent>0)return a.default.createElement(f.default,{type:e,percent:t[e],key:l.default.generate(),t:r,color:o[e]})});return a.default.createElement("div",{className:"pCheck-brief-summary"},i)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(0),a=r(i),s=n(2),u=r(s),c=n(24),l=r(c),p=n(162),f=r(p);n(245);var d=u.default.shape({length:u.default.number.isRequired,percent:u.default.number.isRequired,sources:u.default.arrayOf(u.default.shape()).isRequired});o.propTypes={t:u.default.func.isRequired,colors:u.default.shape({}).isRequired,percents:u.default.shape({header:d,original:d,paraphrase:d,plagiarism:d,quote:d,reference:d}).isRequired,types:u.default.arrayOf(u.default.string).isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.t,n=e.percents,r=(0,p.clarifyPlagiarismPercent)(n[l.default.PLAGIARISM].percent+n[l.default.PARAPHRASE].percent);return a.default.createElement("div",{className:"pCheck-brief-title"},a.default.createElement("div",{className:"pCheck-brief-title-total"},t("brief-title",{percent:r})),a.default.createElement("div",{className:"pCheck-brief-title-desc"},t("brief-title-desc")))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(0),a=r(i),s=n(2),u=r(s),c=n(8),l=r(c),p=n(20);n(246),o.propTypes={t:u.default.func.isRequired,percents:u.default.shape({}).isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.t,n=e.data,r=n.percents,o=n.words,i=e.colors,s=e.types;return a.default.createElement("div",{className:"pCheck-brief"},a.default.createElement(f.default,{words:o,t:t,percents:r}),a.default.createElement("div",{className:"pCheck-brief-info"},a.default.createElement(l.default,{t:t,percents:r,types:s,colors:i})),a.default.createElement(h.default,{t:t,percents:r,colors:i,types:s}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(0),a=r(i),s=n(2),u=r(s),c=n(163),l=r(c),p=n(164),f=r(p),d=n(160),h=r(d);n(247),o.propTypes={t:u.default.func.isRequired,data:u.default.shape({percents:u.default.shape({}),allowedSources:u.default.number}).isRequired,colors:u.default.shape({}).isRequired,types:u.default.arrayOf(u.default.string).isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.urls,n=e.t,r=t.map(function(e,t){var r=t+1;return a.default.createElement("a",{href:e,className:"pCheck-details-sourceItem-link",key:l.default.generate(),title:n("nodeDetails-SourceItem-SourceLinks-tooltip",{position:r}),target:"_blank"},n("nodeDetails-SourceItem-SourceLinks-name",{position:r}))});return a.default.createElement("div",{className:"pCheck-details-sourceItem-links"},r)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(0),a=r(i),s=n(2),u=r(s),c=n(24),l=r(c);n(249),o.propTypes={urls:u.default.arrayOf(u.default.string).isRequired,t:u.default.func.isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.cos,n=e.t,r=e.name,o=e.urls,i=e.indexType;return a.default.createElement("div",{className:"pCheck-details-sourceItem-multi",role:"presentation",title:n("nodeDetails-SourceItem-MultilinkSource-tooltip",{name:r})},a.default.createElement(f.default,{cos:t,t:n}),a.default.createElement(l.default,{indexType:i,t:n}),n("nodeDetails-SourceItem-MultilinkSource-name",{name:r}),a.default.createElement(h.default,{urls:o,t:n}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(0),a=r(i),s=n(2),u=r(s),c=n(65),l=r(c),p=n(95),f=r(p),d=n(166),h=r(d);n(250),o.propTypes={cos:u.default.number.isRequired,t:u.default.func.isRequired,name:u.default.string.isRequired,urls:u.default.arrayOf(u.default.string).isRequired,indexType:u.default.shape().isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.cos,n=e.t,r=e.name,o=e.url,i=e.indexType;return o?a.default.createElement("a",{href:o,className:"pCheck-details-sourceItem-single",title:n("nodeDetails-SourceItem-SimpleSource-tooltip",{name:r}),target:"_blank"},a.default.createElement(f.default,{cos:t,t:n}),a.default.createElement(l.default,{indexType:i,t:n}),n("nodeDetails-SourceItem-SimpleSource-name",{name:r}),a.default.createElement("div",{className:"pCheck-details-sourceItem-single-icon"})):a.default.createElement("div",{className:"pCheck-details-sourceItem-single"},a.default.createElement(f.default,{cos:t,t:n}),a.default.createElement(l.default,{indexType:i,t:n}),n("nodeDetails-SourceItem-SimpleSource-name",{name:r}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(0),a=r(i),s=n(2),u=r(s),c=n(65),l=r(c),p=n(95),f=r(p);n(251),o.propTypes={cos:u.default.number.isRequired,t:u.default.func.isRequired,name:u.default.string.isRequired,url:u.default.string,indexType:u.default.shape().isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.t,n=e.data,r=n.cos,o=void 0===r?0:r,i=n.link,s=i.name,u=i.urls,c=n.indexType,p=u.length>1?a.default.createElement(f.default,{cos:o,t:t,name:s,urls:u,indexType:c}):a.default.createElement(l.default,{cos:o,t:t,name:s,url:u[0],indexType:c});return a.default.createElement("div",{className:"pCheck-details-sourceItem"},p)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(0),a=r(i),s=n(2),u=r(s),c=n(168),l=r(c),p=n(167),f=r(p);n(252),o.propTypes={t:u.default.func.isRequired,data:u.default.shape({cos:u.default.number,link:u.default.shape({name:u.default.string,urls:u.default.arrayOf(u.default.string)}).isRequired,indexType:u.default.shape({id:u.default.number,name:u.default.string.isRequired,status:u.default.string,queries:u.default.number,type:u.default.string.isRequired}).isRequired}).isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.filter(function(e){return e.ignored===n}).sort(function(e,t){return t.cos-e.cos}).map(function(e){return s.default.createElement(h.default,{data:e,key:e.key,t:t})})}function i(e){var t=e.sourcesList,n=e.t,r=o(t,n),i=o(t,n,!0),a=[{title:n("nodeDetails-sourcesList-approvedTitle",{count:r.length}),panel:r,key:"nodeDetails-approvedSources",disabled:0===r.length},{title:n("nodeDetails-sourcesList-ignoredTitle",{count:i.length}),panel:i,key:"nodeDetails-ignoredSources",disabled:0===i.length}],u=a.map(function(e){return s.default.createElement(l.Tab,{className:"pCheck-nodeDetails-sourcesList-tab",key:e.key,selectedClassName:f.default.ACTIVE,disabled:e.disabled,disabledClassName:f.default.DISABLED},e.title)}),c=a.map(function(e){return s.default.createElement(l.TabPanel,{className:"pCheck-nodeDetails-sourcesList-panel",key:e.key},e.panel)});return s.default.createElement(l.Tabs,{className:"pCheck-nodeDetails-sourcesList"},s.default.createElement(l.TabList,{className:"pCheck-nodeDetails-sourcesList-tabs"},u),c)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(0),s=r(a),u=n(2),c=r(u),l=n(382),p=n(13),f=r(p),d=n(169),h=r(d);n(253),i.propTypes={t:c.default.func.isRequired,sourcesList:c.default.arrayOf(c.default.shape()).isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n1?M.concat(A):M,D=1===A.length?a.default.createElement(T.default,{t:t,name:p,url:d[0]}):a.default.createElement(T.default,{t:t,name:p,handler:P}),L=v?void 0:a.default.createElement(_.default,{t:t,percent:i});return a.default.createElement("div",{className:I},a.default.createElement("label",{htmlFor:R,className:"pCheck-source-label",title:t("source-label-tooltip",{percent:i})},a.default.createElement("input",{id:R,type:"checkbox",className:"pCheck-source-checkbox",checked:u,onChange:x}),L),D,a.default.createElement(S.default,{t:t,indexType:o}),b?a.default.createElement(y.default,{shown:E,onClose:N},j):void 0)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(0),a=r(i),s=n(2),u=r(s),c=n(24),l=r(c),p=n(7),f=r(p),d=n(8),h=r(d),g=n(13),m=r(g),v=n(98),y=r(v),b=n(182),_=r(b),E=n(175),C=r(E),x=n(180),w=r(x),O=n(65),S=r(O),k=n(181),T=r(k);n(262),o.propTypes={t:u.default.func.isRequired,optionsShown:u.default.bool.isRequired,data:u.default.shape({id:u.default.number.isRequired,percent:u.default.number.isRequired,link:u.default.shape({name:u.default.string}).isRequired,active:u.default.bool.isRequired,enabled:u.default.bool.isRequired,ignored:u.default.bool.isRequired,highlighted:u.default.bool.isRequired,indexType:u.default.shape({id:u.default.number,name:u.default.string.isRequired,status:u.default.string,queries:u.default.number,type:u.default.string.isRequired}).isRequired}).isRequired,percents:u.default.shape().isRequired,toggleSource:u.default.func.isRequired,toggleHighlight:u.default.func.isRequired,toggleIgnore:u.default.func.isRequired,showOptions:u.default.func.isRequired,hideOptions:u.default.func.isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.t,n=e.name,r=e.url,o=e.position;return a.default.createElement("a",{href:r,title:t("source-link-tooltip",{name:n}),className:"pCheck-source-link",target:"_blank"},t("source-link",{position:o}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(0),a=r(i),s=n(2),u=r(s);n(263),o.propTypes={t:u.default.func.isRequired,name:u.default.string.isRequired,url:u.default.string.isRequired,position:u.default.number.isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.t,n=e.name,r=e.url,o=e.handler;return r?a.default.createElement("a",{href:r,className:(0,l.default)("pCheck-source-name",f.default.LINK),title:t("source-name-link-tooltip",{name:n}),target:"_blank"},n):a.default.createElement("span",{onClick:o,className:"pCheck-source-name",title:t("source-name-tooltip"),target:"_blank",role:"presentation"},n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(0),a=r(i),s=n(2),u=r(s),c=n(7),l=r(c),p=n(13),f=r(p);n(264),o.propTypes={t:u.default.func.isRequired,name:u.default.string.isRequired,url:u.default.string,handler:u.default.func},o.defaultProps={url:void 0,handler:void 0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.t,n=e.percent;return a.default.createElement("b",{className:"pCheck-source-percent"},t("source-percent",{percent:n}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(0),a=r(i),s=n(2),u=r(s);n(265),o.propTypes={t:u.default.func.isRequired,percent:u.default.number.isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.default.changeLanguage(e),c.default.addResourceBundle(e,s.default.I18N_PLAGCHECK_NAMESPACE,t,n,r)}Object.defineProperty(t,"__esModule",{value:!0}),t.configureProps=o,t.configureI18Next=i;var a=n(8),s=r(a),u=n(97),c=r(u),l=n(20),p=n(96),f=r(p)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){return!!document.querySelectorAll("script[data-options]").length}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldRequestOptions=o;var i=n(25),a=r(i),s=n(8),u=r(s),c=n(101),l=r(c),p=n(99),f=r(p),d=a.default.URL_CUSTOM_OPTIONS,h=u.default.CUSTOM_OPTIONS_DEFAULT;t.default=new Promise(function(e){o()?(0,l.default)({url:d}).then(function(t){f.default.setOptions(t),e(f.default)},function(){e(h)}):e(h)})},function(e,t,n){"use strict";function r(e,t){var n=t.types,r=(0,o.countAllWords)(e),s=(0,i.formatNodes)(e,t),u=(0,a.formatSources)(e,t),c=(0,o.mergeDeep)(e,{ready:!0,report_data:{words:r,sources:u,nodes:s}}),l=c.report_data,p=(0,o.compose)(i.populateNodesPercents,a.populateSourcesPercents,a.filterSourcesByType,i.populateFoundTypes,a.allowSources)({report_data:l,types:n}),f=p.report_data;return Object.assign({},c,{report_data:f})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(20),i=n(100),a=n(66)},function(e,t,n){"use strict";function r(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function o(e,t){var n,o,s,u,c,l=!1;t||(t={}),t.debug;try{o=i(),s=document.createRange(),u=document.getSelection(),c=document.createElement("span"),c.textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",document.body.appendChild(c),s.selectNode(c),u.addRange(s);if(!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(o){try{window.clipboardData.setData("text",e),l=!0}catch(o){n=r("message"in t?t.message:a),window.prompt(n,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),c&&document.body.removeChild(c),o()}return l}var i=n(402),a="Copy to clipboard: #{key}, Enter";e.exports=o},function(e,t,n){n(236),n(117),n(239),n(237),e.exports=n(9).Promise},function(e,t,n){n(228),e.exports=n(9).Array.every},function(e,t,n){n(229),e.exports=n(9).Array.find},function(e,t,n){n(117),n(230),e.exports=n(9).Array.from},function(e,t,n){n(238),e.exports=n(9).Array.includes},function(e,t,n){n(231),e.exports=n(9).Array.isArray},function(e,t,n){n(233),e.exports=n(9).Object.assign},function(e,t,n){n(234),e.exports=n(9).Object.freeze},function(e,t,n){n(235),e.exports=n(9).Object.keys},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(22),o=n(107),i=n(10)("species");e.exports=function(e){var t;return o(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(202);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){"use strict";var r=n(31),o=n(72);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){var r=n(27),o=n(108),i=n(106),a=n(26),s=n(54),u=n(116),c={},l={},t=e.exports=function(e,t,n,p,f){var d,h,g,m,v=f?function(){return e}:u(e),y=r(n,p,t?2:1),b=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(i(v)){for(d=s(e.length);d>b;b++)if((m=t?y(a(h=e[b])[0],h[1]):y(e[b]))===c||m===l)return m}else for(g=v.call(e);!(h=g.next()).done;)if((m=o(g,y,h.value,t))===c||m===l)return m};t.BREAK=c,t.RETURN=l},function(e,t,n){e.exports=!n(38)&&!n(28)(function(){return 7!=Object.defineProperty(n(70)("div"),"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){"use strict";var r=n(213),o=n(72),i=n(73),a={};n(30)(a,n(10)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(55)("meta"),o=n(22),i=n(29),a=n(31).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(28)(function(){return u(Object.preventExtensions({}))}),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},p=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},f=function(e,t){if(!i(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},d=function(e){return c&&h.NEED&&u(e)&&!i(e,r)&&l(e),e},h=e.exports={KEY:r,NEED:!1,fastKey:p,getWeak:f,onFreeze:d}},function(e,t,n){var r=n(14),o=n(115).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(37)(a);e.exports=function(){var e,t,n,c=function(){var r,o;for(u&&(r=a.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(i){var l=!0,p=document.createTextNode("");new i(c).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}else if(s&&s.resolve){var f=s.resolve();n=function(){f.then(c)}}else n=function(){o.call(r,c)};return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t,n){"use strict";var r=n(53),o=n(215),i=n(218),a=n(41),s=n(71),u=Object.assign;e.exports=!u||n(28)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=a(e),u=arguments.length,c=1,l=o.f,p=i.f;u>c;)for(var f,d=s(arguments[c++]),h=l?r(d).concat(l(d)):r(d),g=h.length,m=0;g>m;)p.call(d,f=h[m++])&&(n[f]=d[f]);return n}:u},function(e,t,n){var r=n(26),o=n(214),i=n(104),a=n(74)("IE_PROTO"),s=function(){},u=function(){var e,t=n(70)("iframe"),r=i.length;for(t.style.display="none",n(105).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(" - -

Error:

+ echo htmlspecialchars($error) ?> footer(); diff --git a/view/send_text.php b/view/send_text.php index a444a9e..a76443d 100644 --- a/view/send_text.php +++ b/view/send_text.php @@ -1,5 +1,20 @@ . +defined('MOODLE_INTERNAL') || die(); echo $OUTPUT->header(); ?> @@ -19,15 +34,14 @@ echo $OUTPUT->header();
+ echo nl2br(htmlspecialchars($content, ENT_COMPAT | ENT_HTML401, $encoding = 'UTF-8')) ?>

display(); } else { echo 'file not supported'; @@ -35,5 +49,4 @@ echo $OUTPUT->header(); ?>
footer(); \ No newline at end of file