diff --git a/.github/workflows/.tests-javascript.yml b/.github/workflows/.tests-javascript.yml index 4f508a5..4a2f96a 100644 --- a/.github/workflows/.tests-javascript.yml +++ b/.github/workflows/.tests-javascript.yml @@ -18,10 +18,13 @@ jobs: working-directory: ${{env.working-directory}} run: | npm install --global yarn - yarn install --ignore-engines + yarn install - name: Lint working-directory: ${{env.working-directory}} run: yarn lint + - name: Type check + working-directory: ${{env.working-directory}} + run: yarn type-check - name: Build working-directory: ${{env.working-directory}} run: yarn build diff --git a/Makefile b/Makefile index 86d931b..35019ca 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,11 @@ bandit: build-client: cd rdltr_front && $(NPM) run build -check-python: bandit lint-python type-check test +check-all: check-front check-python + +check-front: lint-front type-check-front + +check-python: bandit lint-python type-check-python test clean: rm -fr .pytest_cache @@ -46,7 +50,7 @@ install: install-python install-front install-front: # NPM_ARGS="--ignore-engines", if errors with Node latest version - cd rdltr_front && $(NPM) install --prod $(NPM_ARGS) + cd rdltr_front && $(NPM) install $(NPM_ARGS) install-python: test -d $(VENV) || $(PYTHON_VERSION) -m venv $(VENV) @@ -63,9 +67,6 @@ lint-python: echo 'Running flake8...' $(FLAKE8) $(FLASK_APP) -lint-python-fix: - $(BLACK) $(FLASK_APP) - migrate-db: $(FLASK) db migrate @@ -77,7 +78,7 @@ serve: $(MAKE) P="serve-python serve-front" make-p serve-front: - cd rdltr_front && $(NPM) serve + cd rdltr_front && $(NPM) dev serve-python: echo 'Running on http://$(HOST):$(PORT)' @@ -89,7 +90,12 @@ test: test-ui: $(PYTEST) $(FLASK_APP)/tests/ui_tests --driver firefox $(PYTEST_ARGS) -type-check: +type-check-all: type-check-python type-check-front + +type-check-front: + cd rdltr_front && $(NPM) type-check + +type-check-python: echo 'Running mypy...' $(MYPY) $(FLASK_APP) diff --git a/rdltr/dist/static/favicon.ico b/rdltr/dist/favicon.ico similarity index 100% rename from rdltr/dist/static/favicon.ico rename to rdltr/dist/favicon.ico diff --git a/rdltr/dist/index.html b/rdltr/dist/index.html index 8389673..783818f 100644 --- a/rdltr/dist/index.html +++ b/rdltr/dist/index.html @@ -1 +1,27 @@ -rdltr
\ No newline at end of file + + + + + + + + + rdltr + + + + +
+ + + diff --git a/rdltr/dist/static/css/app.e091cf9b.css b/rdltr/dist/static/css/app.e091cf9b.css deleted file mode 100644 index a180985..0000000 --- a/rdltr/dist/static/css/app.e091cf9b.css +++ /dev/null @@ -1 +0,0 @@ -#header[data-v-290df8af]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#8c95aa;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row;flex-flow:row;height:56px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0 20px}#nav-icon[data-v-290df8af]{color:#fff;display:none}.logo[data-v-290df8af]{color:#fff;font-weight:700}.logo a[data-v-290df8af]{color:#fff;text-decoration:none}.logout[data-v-290df8af]{background-color:transparent;border:none;color:#fff;cursor:pointer;font:inherit}.user[data-v-290df8af]{color:#fff}nav[data-v-290df8af]{height:100%}ul[data-v-290df8af]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row;flex-flow:row;height:100%;list-style:none;margin:0;padding:0}li[data-v-290df8af]{margin:0 16px}li a[data-v-290df8af]{color:#fff;text-decoration:none}li a.router-link-active[data-v-290df8af],li a[data-v-290df8af]:active,li a[data-v-290df8af]:hover{color:#c7dce1}@media screen and (max-width:767.98px){#responsive-navbar[data-v-290df8af]{z-index:1}#responsive-navbar ul[data-v-290df8af]{display:none}#nav-icon[data-v-290df8af]{display:block;float:right}#responsive-navbar.responsive[data-v-290df8af]{background-color:#f4f5f7;height:auto;left:0;position:absolute;top:56px;width:100%}#responsive-navbar.responsive ul[data-v-290df8af]{display:block;float:none;text-align:left}#responsive-navbar.responsive li[data-v-290df8af]{padding:20px}#responsive-navbar.responsive li a[data-v-290df8af],#responsive-navbar.responsive li span[data-v-290df8af]{color:#4e4e4e}#responsive-navbar.responsive li a[data-v-290df8af]:hover,#responsive-navbar.responsive li span[data-v-290df8af]:hover{color:#778487}}body,html{color:#4e4e4e;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;margin:0}html{height:100vh}body{min-height:100vh;padding-bottom:50px;position:relative}@media screen and (max-width:400px){.contnr{width:auto}}.container{margin-bottom:1em;margin-top:.5em}.fa{margin-left:.3em}.fa-spinner{color:#8c95aa}.alert{margin:.5em 0}.article-content a{color:#000}.article-content img,.article-content video{display:block;margin-left:auto;margin-right:auto;max-width:100%}.article-content a>svg{margin:0 8px 0 -20px;width:14px}.article-content pre{background-color:#f4f4f4;padding:.5em}.btn-rdltr{background-color:#f5f5f7;border:1px solid #8c95aa;color:#8c95aa;cursor:pointer;font:inherit;height:calc(2.25rem + 2px);margin-right:.5em;padding:.5em .8em}.btn-rdltr:hover{background-color:#8c95aa;color:#fff}.btn-rdltr-auto{width:100%}.rdltr-box{border:1px solid #eee;-webkit-box-shadow:0 2px 3px #ccc;box-shadow:0 2px 3px #ccc;margin:30px auto;padding:20px;width:400px}.rdltr-error{color:red;text-align:center}@media screen and (max-width:400px){.rdltr-box{width:auto}}.form-control{border-radius:0}.input{margin:10px auto}.input label{display:block;margin-bottom:6px}.input.inline label{display:inline}.input input,.input textarea{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #ccc;font:inherit;padding:6px 12px;width:100%}.input.inline input{width:auto}.input input:focus{background-color:#eee;border:1px solid #8c95aa;outline:none}.input select{border:1px solid #ccc;font:inherit}.link{color:#8c95aa}.multiselect__input{border-color:#000}.multiselect__option--highlight,.multiselect__option--highlight:after{background:#8c95aa;color:#fff}.multiselect__tag{background-color:#a3aabb}.multiselect__tag-icon,.multiselect__tag-icon:after{color:#fff}.multiselect__tag-icon:focus,.multiselect__tag-icon:hover{background:#8c95aa}.multiselect__tags{border:1px solid #ccc;border-radius:0}.submit button{background-color:#f5f5f7;border:1px solid #8c95aa;font:inherit;color:#8c95aa;cursor:pointer;padding:10px 20px}.submit button:active,.submit button:hover{background-color:#8c95aa;color:#fff}.submit button[disabled],.submit button[disabled]:active,.submit button[disabled]:hover{border:1px solid #ccc;background-color:transparent;color:#ccc;cursor:not-allowed}#category-select[data-v-ea575396]{margin-right:.5em}.tag-input[data-v-0ca95baa]{margin:.5em 0}.add-article-submit[data-v-5f68181f]{margin-top:.7em}.title[data-v-5f68181f]{font-weight:700}.article-content[data-v-55e4add0]{padding:1em}#comments[data-v-ae4d1bd6]{font-style:italic;margin:.5em;white-space:pre}.modal-mask[data-v-d2977072]{position:fixed;z-index:9998;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);display:table;-webkit-transition:opacity .3s ease;transition:opacity .3s ease}.modal-wrapper[data-v-d2977072]{display:table-cell;vertical-align:middle}.modal-container[data-v-d2977072]{width:300px;margin:0 auto;padding:10px 20px;background-color:#fff;border-radius:2px;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.33);box-shadow:0 2px 8px rgba(0,0,0,.33);-webkit-transition:all .3s ease;transition:all .3s ease;font-family:Helvetica,Arial,sans-serif}a[data-v-44de236a]{color:#8c95aa;text-decoration:none}.badge-rdltr[data-v-44de236a]{background-color:#8c95aa;-webkit-box-shadow:0 1px 2px #ccc;box-shadow:0 1px 2px #ccc;color:#fff;margin-bottom:.5em;margin-top:1em}.badge-rdltr-tag[data-v-44de236a]{background-color:#f5f5f7;border:1px solid #8c95aa;-webkit-box-shadow:0 .5px 1px #ccc;box-shadow:0 .5px 1px #ccc;color:#8c95aa;margin:.5em .1em .3em .1em}#category-update[data-v-1f90e427]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;margin:.7em 0}.article-data[data-v-1f90e427]{font-size:.9em;font-style:italic;margin-top:1em}.fa[data-v-1f90e427]{color:#8c95aa}.fa-disabled[data-v-1f90e427]{opacity:.5}.fa-pencil[data-v-1f90e427]{font-size:.8em}.no-tags[data-v-1f90e427]{font-size:.9em;font-style:italic}a[data-v-1f90e427]{color:#000}.card[data-v-62874050]{-webkit-box-shadow:0 2px 3px #ccc;box-shadow:0 2px 3px #ccc;margin:.5em 0}.card-footer[data-v-62874050]{background-color:transparent;border:none}.status-read[data-v-62874050]{opacity:.5}.clear-filter[data-v-e635edda]{background-color:#8c95aa;border:1px solid #8c95aa;color:#fff;font-size:.9em;margin:0 .5em .5em 1em;padding:.1em .4em 0 .3em}.clear-filter[data-v-e635edda]:hover{background-color:#f5f5f7;color:#8c95aa}#pagination[data-v-515ca814]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-top:.5em}.page[data-v-515ca814]{font-size:.8em;font-weight:700}#user-articles[data-v-1b1dfacd]{margin:.5em 1em;width:100%}.articles-msg[data-v-1b1dfacd]{margin-left:1em;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.display-tag[data-v-1b1dfacd]{margin-left:.5em;margin-top:-4px}.footer[data-v-1b1dfacd]{bottom:9px;height:50px;margin:-.5em -1em;position:absolute;width:100%}a[data-v-1b1dfacd]{color:#000}#user-categories[data-v-5b7d48d9]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-top:1em;text-align:center}.add-article[data-v-5b7d48d9]{border-color:#ccc}.search input[data-v-5b7d48d9]{margin-right:.5em}.input-group-text[data-v-5b7d48d9]{background-color:#f5f5f7;border-radius:0}@media (max-width:767.98px){.search[data-v-5b7d48d9]{margin-bottom:.5em;margin-top:.5em}}a[data-v-6c62d130]{color:#8c95aa;text-decoration:none}.arrow[data-v-6c62d130]{display:inline-block;vertical-align:middle;width:0;height:0;margin-left:5px;opacity:.66}.arrow.asc[data-v-6c62d130]{border-bottom:4px solid #4e4e4e}.arrow.asc[data-v-6c62d130],.arrow.dsc[data-v-6c62d130]{border-left:4px solid transparent;border-right:4px solid transparent}.arrow.dsc[data-v-6c62d130]{border-top:4px solid #4e4e4e}.badge-rdltr-small[data-v-6c62d130]{background-color:#8c95aa;-webkit-box-shadow:0 1px 2px #ccc;box-shadow:0 1px 2px #ccc;color:#fff;font-size:.7em;margin:0}.container-shadow[data-v-11e3deb8]{border:1px solid #eee;-webkit-box-shadow:0 2px 3px #ccc;box-shadow:0 2px 3px #ccc;margin-top:.5em}.row[data-v-11e3deb8]{margin:1em 0}.not-found[data-v-3cd44498]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:50vh;margin:30px auto;padding:20px;text-align:center;width:400px}.test[data-v-3cd44498]{text-align:center;width:100%}.btn-rdltr-auto[data-v-ba234620]{margin-top:.5em}.input input[data-v-cc9beaea]:disabled{background-color:inherit;border:None;color:#4e4e4e}.submit button[data-v-cc9beaea]{margin-right:.5em} \ No newline at end of file diff --git a/rdltr/dist/static/css/chunk-vendors.c9dd58f2.css b/rdltr/dist/static/css/chunk-vendors.c9dd58f2.css deleted file mode 100644 index 00f9404..0000000 --- a/rdltr/dist/static/css/chunk-vendors.c9dd58f2.css +++ /dev/null @@ -1 +0,0 @@ -fieldset[disabled] .multiselect{pointer-events:none}.multiselect__spinner{position:absolute;right:1px;top:1px;width:40px;height:38px;background:#fff;display:block}.multiselect__spinner:after,.multiselect__spinner:before{position:absolute;content:"";top:50%;left:50%;margin:-8px 0 0 -8px;width:16px;height:16px;border-radius:100%;border:2px solid transparent;border-top-color:#41b883;-webkit-box-shadow:0 0 0 1px transparent;box-shadow:0 0 0 1px transparent}.multiselect__spinner:before{-webkit-animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.multiselect__spinner:after{-webkit-animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.multiselect__loading-enter-active,.multiselect__loading-leave-active{-webkit-transition:opacity .4s ease-in-out;transition:opacity .4s ease-in-out;opacity:1}.multiselect__loading-enter,.multiselect__loading-leave-active{opacity:0}.multiselect,.multiselect__input,.multiselect__single{font-family:inherit;font-size:16px;-ms-touch-action:manipulation;touch-action:manipulation}.multiselect{-webkit-box-sizing:content-box;box-sizing:content-box;display:block;position:relative;width:100%;min-height:40px;text-align:left;color:#35495e}.multiselect *{-webkit-box-sizing:border-box;box-sizing:border-box}.multiselect:focus{outline:none}.multiselect--disabled{background:#ededed;pointer-events:none;opacity:.6}.multiselect--active{z-index:50}.multiselect--active:not(.multiselect--above) .multiselect__current,.multiselect--active:not(.multiselect--above) .multiselect__input,.multiselect--active:not(.multiselect--above) .multiselect__tags{border-bottom-left-radius:0;border-bottom-right-radius:0}.multiselect--active .multiselect__select{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.multiselect--above.multiselect--active .multiselect__current,.multiselect--above.multiselect--active .multiselect__input,.multiselect--above.multiselect--active .multiselect__tags{border-top-left-radius:0;border-top-right-radius:0}.multiselect__input,.multiselect__single{position:relative;display:inline-block;min-height:20px;line-height:20px;border:none;border-radius:5px;background:#fff;padding:0 0 0 5px;width:100%;-webkit-transition:border .1s ease;transition:border .1s ease;-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:8px;vertical-align:top}.multiselect__input::-webkit-input-placeholder{color:#35495e}.multiselect__input::-moz-placeholder{color:#35495e}.multiselect__input:-ms-input-placeholder{color:#35495e}.multiselect__input::-ms-input-placeholder{color:#35495e}.multiselect__input::placeholder{color:#35495e}.multiselect__tag~.multiselect__input,.multiselect__tag~.multiselect__single{width:auto}.multiselect__input:hover,.multiselect__single:hover{border-color:#cfcfcf}.multiselect__input:focus,.multiselect__single:focus{border-color:#a8a8a8;outline:none}.multiselect__single{padding-left:5px;margin-bottom:8px}.multiselect__tags-wrap{display:inline}.multiselect__tags{min-height:40px;display:block;padding:8px 40px 0 8px;border-radius:5px;border:1px solid #e8e8e8;background:#fff;font-size:14px}.multiselect__tag{position:relative;display:inline-block;padding:4px 26px 4px 10px;border-radius:5px;margin-right:10px;color:#fff;line-height:1;background:#41b883;margin-bottom:5px;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.multiselect__tag-icon{cursor:pointer;margin-left:7px;position:absolute;right:0;top:0;bottom:0;font-weight:700;font-style:normal;width:22px;text-align:center;line-height:22px;-webkit-transition:all .2s ease;transition:all .2s ease;border-radius:5px}.multiselect__tag-icon:after{content:"\D7";color:#266d4d;font-size:14px}.multiselect__tag-icon:focus,.multiselect__tag-icon:hover{background:#369a6e}.multiselect__tag-icon:focus:after,.multiselect__tag-icon:hover:after{color:#fff}.multiselect__current{min-height:40px;overflow:hidden;padding:8px 30px 0 12px;white-space:nowrap;border-radius:5px;border:1px solid #e8e8e8}.multiselect__current,.multiselect__select{line-height:16px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;margin:0;text-decoration:none;cursor:pointer}.multiselect__select{position:absolute;width:40px;height:38px;right:1px;top:1px;padding:4px 8px;text-align:center;-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.multiselect__select:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 0;content:""}.multiselect__placeholder{color:#adadad;display:inline-block;margin-bottom:10px;padding-top:2px}.multiselect--active .multiselect__placeholder{display:none}.multiselect__content-wrapper{position:absolute;display:block;background:#fff;width:100%;max-height:240px;overflow:auto;border:1px solid #e8e8e8;border-top:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;z-index:50;-webkit-overflow-scrolling:touch}.multiselect__content{list-style:none;display:inline-block;padding:0;margin:0;min-width:100%;vertical-align:top}.multiselect--above .multiselect__content-wrapper{bottom:100%;border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom:none;border-top:1px solid #e8e8e8}.multiselect__content::webkit-scrollbar{display:none}.multiselect__element{display:block}.multiselect__option{display:block;padding:12px;min-height:40px;line-height:16px;text-decoration:none;text-transform:none;vertical-align:middle;position:relative;cursor:pointer;white-space:nowrap}.multiselect__option:after{top:0;right:0;position:absolute;line-height:40px;padding-right:12px;padding-left:20px;font-size:13px}.multiselect__option--highlight{background:#41b883;outline:none;color:#fff}.multiselect__option--highlight:after{content:attr(data-select);background:#41b883;color:#fff}.multiselect__option--selected{background:#f3f3f3;color:#35495e;font-weight:700}.multiselect__option--selected:after{content:attr(data-selected);color:silver;background:inherit}.multiselect__option--selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect--disabled .multiselect__current,.multiselect--disabled .multiselect__select{background:#ededed;color:#a6a6a6}.multiselect__option--disabled{background:#ededed!important;color:#a6a6a6!important;cursor:text;pointer-events:none}.multiselect__option--group{background:#ededed;color:#35495e}.multiselect__option--group.multiselect__option--highlight{background:#35495e;color:#fff}.multiselect__option--group.multiselect__option--highlight:after{background:#35495e}.multiselect__option--disabled.multiselect__option--highlight{background:#dedede}.multiselect__option--group-selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--group-selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect-enter-active,.multiselect-leave-active{-webkit-transition:all .15s ease;transition:all .15s ease}.multiselect-enter,.multiselect-leave-active{opacity:0}.multiselect__strong{margin-bottom:8px;line-height:20px;display:inline-block;vertical-align:top}[dir=rtl] .multiselect{text-align:right}[dir=rtl] .multiselect__select{right:auto;left:1px}[dir=rtl] .multiselect__tags{padding:8px 8px 0 40px}[dir=rtl] .multiselect__content{text-align:right}[dir=rtl] .multiselect__option:after{right:auto;left:0}[dir=rtl] .multiselect__clear{right:auto;left:12px}[dir=rtl] .multiselect__spinner{right:auto;left:1px}@-webkit-keyframes spinning{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(2turn);transform:rotate(2turn)}}@keyframes spinning{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(2turn);transform:rotate(2turn)}} \ No newline at end of file diff --git a/rdltr/dist/static/index-ed5776f1.css b/rdltr/dist/static/index-ed5776f1.css new file mode 100644 index 0000000..180552c --- /dev/null +++ b/rdltr/dist/static/index-ed5776f1.css @@ -0,0 +1 @@ +#header[data-v-9f2dd734]{align-items:center;background-color:#8c95aa;display:flex;flex-flow:row;height:56px;justify-content:space-between;padding:0 20px}#nav-icon[data-v-9f2dd734]{color:#fff;display:none}.logo[data-v-9f2dd734]{color:#fff;font-weight:700}.logo a[data-v-9f2dd734]{color:#fff;text-decoration:none}.logout[data-v-9f2dd734]{background-color:transparent;border:none;color:#fff;cursor:pointer;font:inherit}.user[data-v-9f2dd734]{color:#fff}nav[data-v-9f2dd734]{height:100%}ul[data-v-9f2dd734]{align-items:center;display:flex;flex-flow:row;height:100%;list-style:none;margin:0;padding:0}li[data-v-9f2dd734]{margin:0 16px}li a[data-v-9f2dd734]{color:#fff;text-decoration:none}li a[data-v-9f2dd734]:hover,li a[data-v-9f2dd734]:active,li a.router-link-active[data-v-9f2dd734]{color:#c7dce1}@media screen and (max-width: 767.98px){#responsive-navbar[data-v-9f2dd734]{z-index:1}#responsive-navbar ul[data-v-9f2dd734]{display:none}#nav-icon[data-v-9f2dd734]{display:block;float:right}#responsive-navbar.responsive[data-v-9f2dd734]{background-color:#f4f5f7;height:auto;left:0;position:absolute;top:56px;width:100%}#responsive-navbar.responsive ul[data-v-9f2dd734]{display:block;float:none;text-align:left}#responsive-navbar.responsive li[data-v-9f2dd734]{padding:20px}#responsive-navbar.responsive li a[data-v-9f2dd734],#responsive-navbar.responsive li span[data-v-9f2dd734]{color:#4e4e4e}#responsive-navbar.responsive li a[data-v-9f2dd734]:hover,#responsive-navbar.responsive li span[data-v-9f2dd734]:hover{color:#778487}}fieldset[disabled] .multiselect{pointer-events:none}.multiselect__spinner{position:absolute;right:1px;top:1px;width:40px;height:38px;background:#fff;display:block}.multiselect__spinner:before,.multiselect__spinner:after{position:absolute;content:"";top:50%;left:50%;margin:-8px 0 0 -8px;width:16px;height:16px;border-radius:100%;border-color:#41b883 transparent transparent;border-style:solid;border-width:2px;box-shadow:0 0 0 1px transparent}.multiselect__spinner:before{animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);animation-iteration-count:infinite}.multiselect__spinner:after{animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);animation-iteration-count:infinite}.multiselect__loading-enter-active,.multiselect__loading-leave-active{transition:opacity .4s ease-in-out;opacity:1}.multiselect__loading-enter,.multiselect__loading-leave-active{opacity:0}.multiselect,.multiselect__input,.multiselect__single{font-family:inherit;font-size:16px;touch-action:manipulation}.multiselect{box-sizing:content-box;display:block;position:relative;width:100%;min-height:40px;text-align:left;color:#35495e}.multiselect *{box-sizing:border-box}.multiselect:focus{outline:none}.multiselect--disabled{background:#ededed;pointer-events:none;opacity:.6}.multiselect--active{z-index:50}.multiselect--active:not(.multiselect--above) .multiselect__current,.multiselect--active:not(.multiselect--above) .multiselect__input,.multiselect--active:not(.multiselect--above) .multiselect__tags{border-bottom-left-radius:0;border-bottom-right-radius:0}.multiselect--active .multiselect__select{transform:rotate(180deg)}.multiselect--above.multiselect--active .multiselect__current,.multiselect--above.multiselect--active .multiselect__input,.multiselect--above.multiselect--active .multiselect__tags{border-top-left-radius:0;border-top-right-radius:0}.multiselect__input,.multiselect__single{position:relative;display:inline-block;min-height:20px;line-height:20px;border:none;border-radius:5px;background:#fff;padding:0 0 0 5px;width:100%;transition:border .1s ease;box-sizing:border-box;margin-bottom:8px;vertical-align:top}.multiselect__input::placeholder{color:#35495e}.multiselect__tag~.multiselect__input,.multiselect__tag~.multiselect__single{width:auto}.multiselect__input:hover,.multiselect__single:hover{border-color:#cfcfcf}.multiselect__input:focus,.multiselect__single:focus{border-color:#a8a8a8;outline:none}.multiselect__single{padding-left:5px;margin-bottom:8px}.multiselect__tags-wrap{display:inline}.multiselect__tags{min-height:40px;display:block;padding:8px 40px 0 8px;border-radius:5px;border:1px solid #e8e8e8;background:#fff;font-size:14px}.multiselect__tag{position:relative;display:inline-block;padding:4px 26px 4px 10px;border-radius:5px;margin-right:10px;color:#fff;line-height:1;background:#41b883;margin-bottom:5px;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.multiselect__tag-icon{cursor:pointer;margin-left:7px;position:absolute;right:0;top:0;bottom:0;font-weight:700;font-style:initial;width:22px;text-align:center;line-height:22px;transition:all .2s ease;border-radius:5px}.multiselect__tag-icon:after{content:"×";color:#266d4d;font-size:14px}.multiselect__tag-icon:focus:after,.multiselect__tag-icon:hover:after{color:#fff}.multiselect__current{line-height:16px;min-height:40px;box-sizing:border-box;display:block;overflow:hidden;padding:8px 30px 0 12px;white-space:nowrap;margin:0;text-decoration:none;border-radius:5px;border:1px solid #e8e8e8;cursor:pointer}.multiselect__select{line-height:16px;display:block;position:absolute;box-sizing:border-box;width:40px;height:38px;right:1px;top:1px;padding:4px 8px;margin:0;text-decoration:none;text-align:center;cursor:pointer;transition:transform .2s ease}.multiselect__select:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-style:solid;border-width:5px 5px 0 5px;border-color:#999 transparent transparent transparent;content:""}.multiselect__placeholder{color:#adadad;display:inline-block;margin-bottom:10px;padding-top:2px}.multiselect--active .multiselect__placeholder{display:none}.multiselect__content-wrapper{position:absolute;display:block;background:#fff;width:100%;max-height:240px;overflow:auto;border:1px solid #e8e8e8;border-top:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;z-index:50;-webkit-overflow-scrolling:touch}.multiselect__content{list-style:none;display:inline-block;padding:0;margin:0;min-width:100%;vertical-align:top}.multiselect--above .multiselect__content-wrapper{bottom:100%;border-radius:5px 5px 0 0;border-bottom:none;border-top:1px solid #e8e8e8}.multiselect__content::-webkit-scrollbar{display:none}.multiselect__element{display:block}.multiselect__option{display:block;padding:12px;min-height:40px;line-height:16px;text-decoration:none;text-transform:none;vertical-align:middle;position:relative;cursor:pointer;white-space:nowrap}.multiselect__option:after{top:0;right:0;position:absolute;line-height:40px;padding-right:12px;padding-left:20px;font-size:13px}.multiselect__option--highlight{background:#41b883;outline:none;color:#fff}.multiselect__option--highlight:after{content:attr(data-select);background:#41b883;color:#fff}.multiselect__option--selected{background:#f3f3f3;color:#35495e;font-weight:700}.multiselect__option--selected:after{content:attr(data-selected);color:silver;background:inherit}.multiselect__option--selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect--disabled .multiselect__current,.multiselect--disabled .multiselect__select{background:#ededed;color:#a6a6a6}.multiselect__option--disabled{background:#ededed!important;color:#a6a6a6!important;cursor:text;pointer-events:none}.multiselect__option--group{background:#ededed;color:#35495e}.multiselect__option--group.multiselect__option--highlight{background:#35495e;color:#fff}.multiselect__option--group.multiselect__option--highlight:after{background:#35495e}.multiselect__option--disabled.multiselect__option--highlight{background:#dedede}.multiselect__option--group-selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--group-selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect-enter-active,.multiselect-leave-active{transition:all .15s ease}.multiselect-enter,.multiselect-leave-active{opacity:0}.multiselect__strong{margin-bottom:8px;line-height:20px;display:inline-block;vertical-align:top}*[dir=rtl] .multiselect{text-align:right}*[dir=rtl] .multiselect__select{right:auto;left:1px}*[dir=rtl] .multiselect__tags{padding:8px 8px 0 40px}*[dir=rtl] .multiselect__content{text-align:right}*[dir=rtl] .multiselect__option:after{right:auto;left:0}*[dir=rtl] .multiselect__clear{right:auto;left:12px}*[dir=rtl] .multiselect__spinner{right:auto;left:1px}@keyframes spinning{0%{transform:rotate(0)}to{transform:rotate(2turn)}}body,html{color:#4e4e4e;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;margin:0}html{height:100vh}body{min-height:100vh;padding-bottom:50px;position:relative}@media screen and (max-width: 400px){.contnr{width:auto}}.container{margin-bottom:1em;margin-top:.5em}.fa{margin-left:.3em}.fa-spinner{color:#8c95aa}.alert{margin:.5em 0;position:relative;padding:.75rem 1.25rem;border:1px solid transparent;border-radius:.25rem}.alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.article-content a{color:#000}.article-content img,.article-content video{display:block;margin-left:auto;margin-right:auto;max-width:100%}.article-content a>svg{margin:0 8px 0 -20px;width:14px}.article-content pre{background-color:#f4f4f4;padding:.5em}.btn-rdltr{background-color:#f5f5f7;border:1px solid #8c95aa;color:#8c95aa;font:inherit;height:calc(2.25rem + 2px);margin-right:.5em;padding:.5em .8em}.btn-rdltr:hover{background-color:#8c95aa;color:#fff}.btn-rdltr-auto{width:100%}.rdltr-box{border:1px solid #eee;box-shadow:0 2px 3px #ccc;margin:30px auto;padding:20px;width:400px}.rdltr-error{color:red;text-align:center}@media screen and (max-width: 400px){.rdltr-box{width:auto}}.form-control{border-radius:0}.input{margin:10px auto}.input label{display:block;margin-bottom:6px}.input.inline label{display:inline}.input input,.input textarea{box-sizing:border-box;border:1px solid #ccc;font:inherit;padding:6px 12px;width:100%}.input.inline input{width:auto}.input input:focus{background-color:#eee;border:1px solid #8c95aa;outline:none}.input select{border:1px solid #ccc;font:inherit}.link{color:#8c95aa}.multiselect__input{border-color:#000}.multiselect__option--highlight,.multiselect__option--highlight:after{background:#8c95aa;color:#fff}.multiselect__tag{background-color:#a3aabb}.multiselect__tag-icon{color:#fff}.multiselect__tag-icon:after{color:#fff}.multiselect__tag-icon:focus,.multiselect__tag-icon:hover{background:#8c95aa}.multiselect__tags{border:1px solid #ccc;border-radius:0}.submit button{background-color:#f5f5f7;border:1px solid #8c95aa;font:inherit;color:#8c95aa;padding:10px 20px}.submit button:hover,.submit button:active{background-color:#8c95aa;color:#fff}.submit button[disabled],.submit button[disabled]:hover,.submit button[disabled]:active{border:1px solid #ccc;background-color:transparent;color:#ccc;cursor:not-allowed}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,.1)}.container-shadow{border:1px solid #eee;box-shadow:0 2px 3px #ccc;margin-top:.5em}a{color:#000}.footer{bottom:9px;height:50px;margin:-.5em -1em;position:absolute;width:100%}.tag-input[data-v-51f1ada9]{margin:.5em 0}.add-article-submit[data-v-2ec2227c]{margin-top:.7em}.title[data-v-2ec2227c]{font-weight:700}#comments[data-v-3dabc0a6]{font-style:italic;margin:.5em;white-space:pre}.article-content[data-v-71e4eaa2]{padding:1em}a[data-v-51e6a755]{color:#8c95aa;text-decoration:none}.badge-rdltr[data-v-51e6a755]{background-color:#8c95aa;box-shadow:0 1px 2px #ccc;color:#fff;margin-bottom:.5em;margin-top:1em}.badge-rdltr-tag[data-v-51e6a755]{background-color:#f5f5f7;border:1px solid #8c95aa;box-shadow:0 .5px 1px #ccc;color:#8c95aa;margin:.5em .1em .3em}.modal-mask[data-v-e5490a4b]{position:fixed;z-index:9998;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:table;transition:opacity .3s ease}.modal-wrapper[data-v-e5490a4b]{display:table-cell;vertical-align:middle}.modal-container[data-v-e5490a4b]{width:300px;margin:0 auto;padding:10px 20px;background-color:#fff;border-radius:2px;box-shadow:0 2px 8px #00000054;transition:all .3s ease;font-family:Helvetica,Arial,sans-serif}#category-update[data-v-40a66bdc]{display:inline-flex;margin:.7em 0}#category-update .submit[data-v-40a66bdc]{padding-left:10px}.article-data[data-v-40a66bdc]{font-size:.9em;font-style:italic;margin-top:1em}.fa[data-v-40a66bdc]{color:#8c95aa}.fa-disabled[data-v-40a66bdc]{opacity:.5}.fa-pencil[data-v-40a66bdc]{font-size:.8em}.no-tags[data-v-40a66bdc]{font-size:.9em;font-style:italic}a[data-v-40a66bdc]{color:#000}.card[data-v-d05fc22a]{box-shadow:0 2px 3px #ccc;margin:.5em 0}.card-footer[data-v-d05fc22a]{background-color:transparent;border:none}.status-read[data-v-d05fc22a]{opacity:.5}.clear-filter[data-v-5d841bb7]{background-color:#8c95aa;border:1px solid #8c95aa;color:#fff;font-size:.9em;margin:0 .5em .5em 1em;padding:.1em .4em 0 .3em}.clear-filter[data-v-5d841bb7]:hover{background-color:#f5f5f7;color:#8c95aa}#user-articles[data-v-2caae6d5]{width:100%}.articles-msg[data-v-2caae6d5]{margin-left:1em;align-items:center}.display-tag[data-v-2caae6d5]{margin-left:.5em;margin-top:-4px}#user-categories[data-v-848ee75e]{align-items:center;padding-top:1em;text-align:center}.search input[data-v-848ee75e]{margin-right:.5em}.input-group-text[data-v-848ee75e]{background-color:#f5f5f7;border-radius:0}@media (max-width: 768px){.search[data-v-848ee75e]{margin-bottom:.5em;margin-top:.5em}}#pagination[data-v-9700d7c5]{align-items:center;margin-top:.5em}.page[data-v-9700d7c5]{font-size:.8em;font-weight:700}.add-article[data-v-799a7f97]{border-color:#ccc}a[data-v-f70b17b4]{color:#8c95aa;text-decoration:none}.arrow[data-v-f70b17b4]{display:inline-block;vertical-align:middle;width:0;height:0;margin-left:5px;opacity:.66}.arrow.asc[data-v-f70b17b4]{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid #4e4e4e}.arrow.dsc[data-v-f70b17b4]{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid #4e4e4e}.badge-rdltr-small[data-v-f70b17b4]{background-color:#8c95aa;box-shadow:0 1px 2px #ccc;color:#fff;font-size:.7em;margin-left:5px}.container-shadow[data-v-d6cb8616]{border:1px solid #eee;box-shadow:0 2px 3px #ccc;margin-top:.5em}.row[data-v-d6cb8616]{margin:1em 0}.input input[data-v-4ae1e9bc]:disabled{background-color:inherit;border:None;color:#4e4e4e}.submit button[data-v-4ae1e9bc]{margin-right:.5em}.btn-rdltr-auto[data-v-300495ed]{margin-top:.5em} diff --git a/rdltr/dist/static/index-f434d684.js b/rdltr/dist/static/index-f434d684.js new file mode 100644 index 0000000..a242702 --- /dev/null +++ b/rdltr/dist/static/index-f434d684.js @@ -0,0 +1,12 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function Kr(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r!!n[r.toLowerCase()]:r=>!!n[r]}const we={},dn=[],at=()=>{},Ua=()=>!1,ja=/^on[^a-z]/,ks=e=>ja.test(e),zr=e=>e.startsWith("onUpdate:"),Oe=Object.assign,Wr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ha=Object.prototype.hasOwnProperty,re=(e,t)=>Ha.call(e,t),q=Array.isArray,pn=e=>Xn(e)==="[object Map]",wn=e=>Xn(e)==="[object Set]",xo=e=>Xn(e)==="[object Date]",Z=e=>typeof e=="function",Te=e=>typeof e=="string",Dn=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",Gi=e=>ge(e)&&Z(e.then)&&Z(e.catch),Qi=Object.prototype.toString,Xn=e=>Qi.call(e),qa=e=>Xn(e).slice(8,-1),Yi=e=>Xn(e)==="[object Object]",Jr=e=>Te(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ps=Kr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ls=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ka=/-(\w)/g,vt=Ls(e=>e.replace(Ka,(t,n)=>n?n.toUpperCase():"")),za=/\B([A-Z])/g,sn=Ls(e=>e.replace(za,"-$1").toLowerCase()),Is=Ls(e=>e.charAt(0).toUpperCase()+e.slice(1)),ir=Ls(e=>e?`on${Is(e)}`:""),Vn=(e,t)=>!Object.is(e,t),hs=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Es=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Wa=e=>{const t=Te(e)?Number(e):NaN;return isNaN(t)?e:t};let Po;const Er=()=>Po||(Po=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gr(e){if(q(e)){const t={};for(let n=0;n{if(n){const s=n.split(Ga);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function it(e){let t="";if(Te(e))t=e;else if(q(e))for(let n=0;nZn(n,t))}const ee=e=>Te(e)?e:e==null?"":q(e)||ge(e)&&(e.toString===Qi||!Z(e.toString))?JSON.stringify(e,Zi,2):String(e),Zi=(e,t)=>t&&t.__v_isRef?Zi(e,t.value):pn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:wn(t)?{[`Set(${t.size})`]:[...t.values()]}:ge(t)&&!q(t)&&!Yi(t)?String(t):t;let Ge;class el{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ge,!t&&Ge&&(this.index=(Ge.scopes||(Ge.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ge;try{return Ge=this,t()}finally{Ge=n}}}on(){Ge=this}off(){Ge=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},sl=e=>(e.w&Ut)>0,rl=e=>(e.n&Ut)>0,sc=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(u==="length"||u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":q(e)?Jr(n)&&l.push(i.get("length")):(l.push(i.get(en)),pn(e)&&l.push(i.get(Cr)));break;case"delete":q(e)||(l.push(i.get(en)),pn(e)&&l.push(i.get(Cr)));break;case"set":pn(e)&&l.push(i.get(en));break}if(l.length===1)l[0]&&Ar(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);Ar(Yr(a))}}function Ar(e,t){const n=q(e)?e:[...e];for(const s of n)s.computed&&ko(s);for(const s of n)s.computed||ko(s)}function ko(e,t){(e!==ot||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function oc(e,t){var n;return(n=$s.get(e))==null?void 0:n.get(t)}const ic=Kr("__proto__,__v_isRef,__isVue"),ll=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dn)),lc=Zr(),ac=Zr(!1,!0),cc=Zr(!0),Lo=uc();function uc(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=ne(this);for(let o=0,i=this.length;o{e[t]=function(...n){Sn();const s=ne(this)[t].apply(this,n);return En(),s}}),e}function fc(e){const t=ne(this);return ze(t,"has",e),t.hasOwnProperty(e)}function Zr(e=!1,t=!1){return function(s,r,o){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&o===(e?t?Oc:dl:t?fl:ul).get(s))return s;const i=q(s);if(!e){if(i&&re(Lo,r))return Reflect.get(Lo,r,o);if(r==="hasOwnProperty")return fc}const l=Reflect.get(s,r,o);return(Dn(r)?ll.has(r):ic(r))||(e||ze(s,"get",r),t)?l:Ee(l)?i&&Jr(r)?l:l.value:ge(l)?e?hl(l):qt(l):l}}const dc=al(),pc=al(!0);function al(e=!1){return function(n,s,r,o){let i=n[s];if(mn(i)&&Ee(i)&&!Ee(r))return!1;if(!e&&(!Cs(r)&&!mn(r)&&(i=ne(i),r=ne(r)),!q(n)&&Ee(i)&&!Ee(r)))return i.value=r,!0;const l=q(n)&&Jr(s)?Number(s)e,Ns=e=>Reflect.getPrototypeOf(e);function is(e,t,n=!1,s=!1){e=e.__v_raw;const r=ne(e),o=ne(t);n||(t!==o&&ze(r,"get",t),ze(r,"get",o));const{has:i}=Ns(r),l=s?eo:n?so:Un;if(i.call(r,t))return l(e.get(t));if(i.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function ls(e,t=!1){const n=this.__v_raw,s=ne(n),r=ne(e);return t||(e!==r&&ze(s,"has",e),ze(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function as(e,t=!1){return e=e.__v_raw,!t&&ze(ne(e),"iterate",en),Reflect.get(e,"size",e)}function Io(e){e=ne(e);const t=ne(this);return Ns(t).has.call(t,e)||(t.add(e),Ot(t,"add",e,e)),this}function No(e,t){t=ne(t);const n=ne(this),{has:s,get:r}=Ns(n);let o=s.call(n,e);o||(e=ne(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?Vn(t,i)&&Ot(n,"set",e,t):Ot(n,"add",e,t),this}function Fo(e){const t=ne(this),{has:n,get:s}=Ns(t);let r=n.call(t,e);r||(e=ne(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&Ot(t,"delete",e,void 0),o}function Mo(){const e=ne(this),t=e.size!==0,n=e.clear();return t&&Ot(e,"clear",void 0,void 0),n}function cs(e,t){return function(s,r){const o=this,i=o.__v_raw,l=ne(i),a=t?eo:e?so:Un;return!e&&ze(l,"iterate",en),i.forEach((c,u)=>s.call(r,a(c),a(u),o))}}function us(e,t,n){return function(...s){const r=this.__v_raw,o=ne(r),i=pn(o),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...s),u=n?eo:t?so:Un;return!t&&ze(o,"iterate",a?Cr:en),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:l?[u(f[0]),u(f[1])]:u(f),done:p}},[Symbol.iterator](){return this}}}}function Pt(e){return function(...t){return e==="delete"?!1:this}}function bc(){const e={get(o){return is(this,o)},get size(){return as(this)},has:ls,add:Io,set:No,delete:Fo,clear:Mo,forEach:cs(!1,!1)},t={get(o){return is(this,o,!1,!0)},get size(){return as(this)},has:ls,add:Io,set:No,delete:Fo,clear:Mo,forEach:cs(!1,!0)},n={get(o){return is(this,o,!0)},get size(){return as(this,!0)},has(o){return ls.call(this,o,!0)},add:Pt("add"),set:Pt("set"),delete:Pt("delete"),clear:Pt("clear"),forEach:cs(!0,!1)},s={get(o){return is(this,o,!0,!0)},get size(){return as(this,!0)},has(o){return ls.call(this,o,!0)},add:Pt("add"),set:Pt("set"),delete:Pt("delete"),clear:Pt("clear"),forEach:cs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=us(o,!1,!1),n[o]=us(o,!0,!1),t[o]=us(o,!1,!0),s[o]=us(o,!0,!0)}),[e,n,t,s]}const[vc,wc,Sc,Ec]=bc();function to(e,t){const n=t?e?Ec:Sc:e?wc:vc;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(re(n,r)&&r in s?n:s,r,o)}const $c={get:to(!1,!1)},Cc={get:to(!1,!0)},Ac={get:to(!0,!1)},ul=new WeakMap,fl=new WeakMap,dl=new WeakMap,Oc=new WeakMap;function Tc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xc(e){return e.__v_skip||!Object.isExtensible(e)?0:Tc(qa(e))}function qt(e){return mn(e)?e:no(e,!1,cl,$c,ul)}function pl(e){return no(e,!1,yc,Cc,fl)}function hl(e){return no(e,!0,_c,Ac,dl)}function no(e,t,n,s,r){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=xc(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function Ct(e){return mn(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function mn(e){return!!(e&&e.__v_isReadonly)}function Cs(e){return!!(e&&e.__v_isShallow)}function ml(e){return Ct(e)||mn(e)}function ne(e){const t=e&&e.__v_raw;return t?ne(t):e}function es(e){return Ss(e,"__v_skip",!0),e}const Un=e=>ge(e)?qt(e):e,so=e=>ge(e)?hl(e):e;function gl(e){Dt&&ot&&(e=ne(e),il(e.dep||(e.dep=Yr())))}function _l(e,t){e=ne(e);const n=e.dep;n&&Ar(n)}function Ee(e){return!!(e&&e.__v_isRef===!0)}function oe(e){return yl(e,!1)}function Pc(e){return yl(e,!0)}function yl(e,t){return Ee(e)?e:new Rc(e,t)}class Rc{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ne(t),this._value=n?t:Un(t)}get value(){return gl(this),this._value}set value(t){const n=this.__v_isShallow||Cs(t)||mn(t);t=n?t:ne(t),Vn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Un(t),_l(this))}}function w(e){return Ee(e)?e.value:e}const kc={get:(e,t,n)=>w(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Ee(r)&&!Ee(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function bl(e){return Ct(e)?e:new Proxy(e,kc)}function Fe(e){const t=q(e)?new Array(e.length):{};for(const n in e)t[n]=vl(e,n);return t}class Lc{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return oc(ne(this._object),this._key)}}class Ic{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Nc(e,t,n){return Ee(e)?e:Z(e)?new Ic(e):ge(e)&&arguments.length>1?vl(e,t,n):oe(e)}function vl(e,t,n){const s=e[t];return Ee(s)?s:new Lc(e,t,n)}class Fc{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Xr(t,()=>{this._dirty||(this._dirty=!0,_l(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=ne(this);return gl(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Mc(e,t,n=!1){let s,r;const o=Z(e);return o?(s=e,r=at):(s=e.get,r=e.set),new Fc(s,r,o||!r,n)}function Vt(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){Fs(o,t,n)}return r}function et(e,t,n,s){if(Z(e)){const o=Vt(e,t,n,s);return o&&Gi(o)&&o.catch(i=>{Fs(i,t,n)}),o}const r=[];for(let o=0;o>>1;Hn(De[s])_t&&De.splice(t,1)}function Uc(e){q(e)?hn.push(...e):(!$t||!$t.includes(e,e.allowRecurse?Qt+1:Qt))&&hn.push(e),Sl()}function Bo(e,t=jn?_t+1:0){for(;tHn(n)-Hn(s)),Qt=0;Qt<$t.length;Qt++)$t[Qt]();$t=null,Qt=0}}const Hn=e=>e.id==null?1/0:e.id,jc=(e,t)=>{const n=Hn(e)-Hn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function $l(e){Or=!1,jn=!0,De.sort(jc);const t=at;try{for(_t=0;_tTe(m)?m.trim():m)),f&&(r=n.map(Es))}let l,a=s[l=ir(t)]||s[l=ir(vt(t))];!a&&o&&(a=s[l=ir(sn(t))]),a&&et(a,e,6,r);const c=s[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,et(c,e,6,r)}}function Cl(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!Z(e)){const a=c=>{const u=Cl(c,t,!0);u&&(l=!0,Oe(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(ge(e)&&s.set(e,null),null):(q(o)?o.forEach(a=>i[a]=null):Oe(i,o),ge(e)&&s.set(e,i),i)}function Ms(e,t){return!e||!ks(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,sn(t))||re(e,t))}let Le=null,Bs=null;function As(e){const t=Le;return Le=e,Bs=e&&e.type.__scopeId||null,t}function Ye(e){Bs=e}function Xe(){Bs=null}function Ke(e,t=Le,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Qo(-1);const o=As(t);let i;try{i=e(...r)}finally{As(o),s._d&&Qo(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function lr(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:l,attrs:a,emit:c,render:u,renderCache:f,data:p,setupState:m,ctx:g,inheritAttrs:v}=e;let k,P;const L=As(e);try{if(n.shapeFlag&4){const A=r||s;k=gt(u.call(A,A,f,o,m,p,g)),P=a}else{const A=t;k=gt(A.length>1?A(o,{attrs:a,slots:l,emit:c}):A(o,null)),P=t.props?a:qc(a)}}catch(A){Nn.length=0,Fs(A,e,1),k=U(nt)}let M=k;if(P&&v!==!1){const A=Object.keys(P),{shapeFlag:D}=M;A.length&&D&7&&(i&&A.some(zr)&&(P=Kc(P,i)),M=Ht(M,P))}return n.dirs&&(M=Ht(M),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition&&(M.transition=n.transition),k=M,As(L),k}const qc=e=>{let t;for(const n in e)(n==="class"||n==="style"||ks(n))&&((t||(t={}))[n]=e[n]);return t},Kc=(e,t)=>{const n={};for(const s in e)(!zr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function zc(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Do(s,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;function Gc(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):Uc(e)}const fs={};function tn(e,t,n){return Al(e,t,n)}function Al(e,t,{immediate:n,deep:s,flush:r,onTrack:o,onTrigger:i}=we){var l;const a=nl()===((l=Pe)==null?void 0:l.scope)?Pe:null;let c,u=!1,f=!1;if(Ee(e)?(c=()=>e.value,u=Cs(e)):Ct(e)?(c=()=>e,s=!0):q(e)?(f=!0,u=e.some(A=>Ct(A)||Cs(A)),c=()=>e.map(A=>{if(Ee(A))return A.value;if(Ct(A))return Zt(A);if(Z(A))return Vt(A,a,2)})):Z(e)?t?c=()=>Vt(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return p&&p(),et(e,a,3,[m])}:c=at,t&&s){const A=c;c=()=>Zt(A())}let p,m=A=>{p=L.onStop=()=>{Vt(A,a,4)}},g;if(zn)if(m=at,t?n&&et(t,a,3,[c(),f?[]:void 0,m]):c(),r==="sync"){const A=qu();g=A.__watcherHandles||(A.__watcherHandles=[])}else return at;let v=f?new Array(e.length).fill(fs):fs;const k=()=>{if(L.active)if(t){const A=L.run();(s||u||(f?A.some((D,ce)=>Vn(D,v[ce])):Vn(A,v)))&&(p&&p(),et(t,a,3,[A,v===fs?void 0:f&&v[0]===fs?[]:v,m]),v=A)}else L.run()};k.allowRecurse=!!t;let P;r==="sync"?P=k:r==="post"?P=()=>qe(k,a&&a.suspense):(k.pre=!0,a&&(k.id=a.uid),P=()=>io(k));const L=new Xr(c,P);t?n?k():v=L.run():r==="post"?qe(L.run.bind(L),a&&a.suspense):L.run();const M=()=>{L.stop(),a&&a.scope&&Wr(a.scope.effects,L)};return g&&g.push(M),M}function Qc(e,t,n){const s=this.proxy,r=Te(e)?e.includes(".")?Ol(s,e):()=>s[e]:e.bind(s,s);let o;Z(t)?o=t:(o=t.handler,n=t);const i=Pe;gn(this);const l=Al(r,o.bind(s),n);return i?gn(i):nn(),l}function Ol(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{Zt(n,t)});else if(Yi(e))for(const n in e)Zt(e[n],t);return e}function he(e,t){const n=Le;if(n===null)return e;const s=Ks(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;o{e.isMounted=!0}),lo(()=>{e.isUnmounting=!0}),e}const Ze=[Function,Array],Tl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ze,onEnter:Ze,onAfterEnter:Ze,onEnterCancelled:Ze,onBeforeLeave:Ze,onLeave:Ze,onAfterLeave:Ze,onLeaveCancelled:Ze,onBeforeAppear:Ze,onAppear:Ze,onAfterAppear:Ze,onAppearCancelled:Ze},Xc={name:"BaseTransition",props:Tl,setup(e,{slots:t}){const n=Fu(),s=Yc();let r;return()=>{const o=t.default&&Pl(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const v of o)if(v.type!==nt){i=v;break}}const l=ne(e),{mode:a}=l;if(s.isLeaving)return ar(i);const c=Vo(i);if(!c)return ar(i);const u=Tr(c,l,s,n);xr(c,u);const f=n.subTree,p=f&&Vo(f);let m=!1;const{getTransitionKey:g}=c.type;if(g){const v=g();r===void 0?r=v:v!==r&&(r=v,m=!0)}if(p&&p.type!==nt&&(!Yt(c,p)||m)){const v=Tr(p,l,s,n);if(xr(p,v),a==="out-in")return s.isLeaving=!0,v.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&n.update()},ar(i);a==="in-out"&&c.type!==nt&&(v.delayLeave=(k,P,L)=>{const M=xl(s,p);M[String(p.key)]=p,k._leaveCb=()=>{P(),k._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=L})}return i}}},Zc=Xc;function xl(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Tr(e,t,n,s){const{appear:r,mode:o,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:k,onAfterAppear:P,onAppearCancelled:L}=t,M=String(e.key),A=xl(n,e),D=(I,z)=>{I&&et(I,s,9,z)},ce=(I,z)=>{const G=z[1];D(I,z),q(I)?I.every(_e=>_e.length<=1)&&G():I.length<=1&&G()},Y={mode:o,persisted:i,beforeEnter(I){let z=l;if(!n.isMounted)if(r)z=v||l;else return;I._leaveCb&&I._leaveCb(!0);const G=A[M];G&&Yt(e,G)&&G.el._leaveCb&&G.el._leaveCb(),D(z,[I])},enter(I){let z=a,G=c,_e=u;if(!n.isMounted)if(r)z=k||a,G=P||c,_e=L||u;else return;let j=!1;const ae=I._enterCb=Ne=>{j||(j=!0,Ne?D(_e,[I]):D(G,[I]),Y.delayedLeave&&Y.delayedLeave(),I._enterCb=void 0)};z?ce(z,[I,ae]):ae()},leave(I,z){const G=String(e.key);if(I._enterCb&&I._enterCb(!0),n.isUnmounting)return z();D(f,[I]);let _e=!1;const j=I._leaveCb=ae=>{_e||(_e=!0,z(),ae?D(g,[I]):D(m,[I]),I._leaveCb=void 0,A[G]===e&&delete A[G])};A[G]=e,p?ce(p,[I,j]):j()},clone(I){return Tr(I,t,n,s)}};return Y}function ar(e){if(Ds(e))return e=Ht(e),e.children=null,e}function Vo(e){return Ds(e)?e.children?e.children[0]:void 0:e}function xr(e,t){e.shapeFlag&6&&e.component?xr(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Pl(e,t=!1,n){let s=[],r=0;for(let o=0;o1)for(let o=0;oOe({name:e.name},t,{setup:e}))():e}const Ln=e=>!!e.type.__asyncLoader,Ds=e=>e.type.__isKeepAlive;function eu(e,t){Rl(e,"a",t)}function tu(e,t){Rl(e,"da",t)}function Rl(e,t,n=Pe){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Vs(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Ds(r.parent.vnode)&&nu(s,t,n,r),r=r.parent}}function nu(e,t,n,s){const r=Vs(t,e,s,!0);js(()=>{Wr(s[t],r)},n)}function Vs(e,t,n=Pe,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Sn(),gn(n);const l=et(t,n,e,i);return nn(),En(),l});return s?r.unshift(o):r.push(o),o}}const Tt=e=>(t,n=Pe)=>(!zn||e==="sp")&&Vs(e,(...s)=>t(...s),n),rn=Tt("bm"),Us=Tt("m"),su=Tt("bu"),ru=Tt("u"),lo=Tt("bum"),js=Tt("um"),ou=Tt("sp"),iu=Tt("rtg"),lu=Tt("rtc");function au(e,t=Pe){Vs("ec",e,t)}const kl="components";function ts(e,t){return uu(kl,e,!0,t)||e}const cu=Symbol.for("v-ndc");function uu(e,t,n=!0,s=!1){const r=Le||Pe;if(r){const o=r.type;if(e===kl){const l=Uu(o,!1);if(l&&(l===t||l===vt(t)||l===Is(vt(t))))return o}const i=Uo(r[e]||o[e],t)||Uo(r.appContext[e],t);return!i&&s?o:i}}function Uo(e,t){return e&&(e[t]||e[vt(t)]||e[Is(vt(t))])}function jt(e,t,n,s){let r;const o=n&&n[s];if(q(e)||Te(e)){r=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o&&o[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,a=i.length;lTs(t)?!(t.type===nt||t.type===Ce&&!Ll(t.children)):!0)?e:null}const Pr=e=>e?ql(e)?Ks(e)||e.proxy:Pr(e.parent):null,In=Oe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Pr(e.parent),$root:e=>Pr(e.root),$emit:e=>e.emit,$options:e=>ao(e),$forceUpdate:e=>e.f||(e.f=()=>io(e.update)),$nextTick:e=>e.n||(e.n=oo.bind(e.proxy)),$watch:e=>Qc.bind(e)}),cr=(e,t)=>e!==we&&!e.__isScriptSetup&&re(e,t),fu={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(cr(s,t))return i[t]=1,s[t];if(r!==we&&re(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&re(c,t))return i[t]=3,o[t];if(n!==we&&re(n,t))return i[t]=4,n[t];Rr&&(i[t]=0)}}const u=In[t];let f,p;if(u)return t==="$attrs"&&ze(e,"get",t),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==we&&re(n,t))return i[t]=4,n[t];if(p=a.config.globalProperties,re(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return cr(r,t)?(r[t]=n,!0):s!==we&&re(s,t)?(s[t]=n,!0):re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==we&&re(e,i)||cr(t,i)||(l=o[0])&&re(l,i)||re(s,i)||re(In,i)||re(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function jo(e){return q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Rr=!0;function du(e){const t=ao(e),n=e.proxy,s=e.ctx;Rr=!1,t.beforeCreate&&Ho(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:p,beforeUpdate:m,updated:g,activated:v,deactivated:k,beforeDestroy:P,beforeUnmount:L,destroyed:M,unmounted:A,render:D,renderTracked:ce,renderTriggered:Y,errorCaptured:I,serverPrefetch:z,expose:G,inheritAttrs:_e,components:j,directives:ae,filters:Ne}=t;if(c&&pu(c,s,null),i)for(const ye in i){const ue=i[ye];Z(ue)&&(s[ye]=ue.bind(n))}if(r){const ye=r.call(n,n);ge(ye)&&(e.data=qt(ye))}if(Rr=!0,o)for(const ye in o){const ue=o[ye],St=Z(ue)?ue.bind(n,n):Z(ue.get)?ue.get.bind(n,n):at,xt=!Z(ue)&&Z(ue.set)?ue.set.bind(n):at,dt=$e({get:St,set:xt});Object.defineProperty(s,ye,{enumerable:!0,configurable:!0,get:()=>dt.value,set:He=>dt.value=He})}if(l)for(const ye in l)Il(l[ye],s,n,ye);if(a){const ye=Z(a)?a.call(n):a;Reflect.ownKeys(ye).forEach(ue=>{ms(ue,ye[ue])})}u&&Ho(u,e,"c");function se(ye,ue){q(ue)?ue.forEach(St=>ye(St.bind(n))):ue&&ye(ue.bind(n))}if(se(rn,f),se(Us,p),se(su,m),se(ru,g),se(eu,v),se(tu,k),se(au,I),se(lu,ce),se(iu,Y),se(lo,L),se(js,A),se(ou,z),q(G))if(G.length){const ye=e.exposed||(e.exposed={});G.forEach(ue=>{Object.defineProperty(ye,ue,{get:()=>n[ue],set:St=>n[ue]=St})})}else e.exposed||(e.exposed={});D&&e.render===at&&(e.render=D),_e!=null&&(e.inheritAttrs=_e),j&&(e.components=j),ae&&(e.directives=ae)}function pu(e,t,n=at){q(e)&&(e=kr(e));for(const s in e){const r=e[s];let o;ge(r)?"default"in r?o=tt(r.from||s,r.default,!0):o=tt(r.from||s):o=tt(r),Ee(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Ho(e,t,n){et(q(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Il(e,t,n,s){const r=s.includes(".")?Ol(n,s):()=>n[s];if(Te(e)){const o=t[e];Z(o)&&tn(r,o)}else if(Z(e))tn(r,e.bind(n));else if(ge(e))if(q(e))e.forEach(o=>Il(o,t,n,s));else{const o=Z(e.handler)?e.handler.bind(n):t[e.handler];Z(o)&&tn(r,o,e)}}function ao(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let a;return l?a=l:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(c=>Os(a,c,i,!0)),Os(a,t,i)),ge(t)&&o.set(t,a),a}function Os(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Os(e,o,n,!0),r&&r.forEach(i=>Os(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=hu[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const hu={data:qo,props:Ko,emits:Ko,methods:kn,computed:kn,beforeCreate:je,created:je,beforeMount:je,mounted:je,beforeUpdate:je,updated:je,beforeDestroy:je,beforeUnmount:je,destroyed:je,unmounted:je,activated:je,deactivated:je,errorCaptured:je,serverPrefetch:je,components:kn,directives:kn,watch:gu,provide:qo,inject:mu};function qo(e,t){return t?e?function(){return Oe(Z(e)?e.call(this,this):e,Z(t)?t.call(this,this):t)}:t:e}function mu(e,t){return kn(kr(e),kr(t))}function kr(e){if(q(e)){const t={};for(let n=0;n1)return n&&Z(t)?t.call(s&&s.proxy):t}}function bu(){return!!(Pe||Le||qn)}function vu(e,t,n,s=!1){const r={},o={};Ss(o,qs,1),e.propsDefaults=Object.create(null),Fl(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:pl(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function wu(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=ne(r),[a]=e.propsOptions;let c=!1;if((s||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{a=!0;const[p,m]=Ml(f,t,!0);Oe(i,p),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return ge(e)&&s.set(e,dn),dn;if(q(o))for(let u=0;u-1,m[1]=v<0||g-1||re(m,"default"))&&l.push(f)}}}const c=[i,l];return ge(e)&&s.set(e,c),c}function zo(e){return e[0]!=="$"}function Wo(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Jo(e,t){return Wo(e)===Wo(t)}function Go(e,t){return q(t)?t.findIndex(n=>Jo(n,e)):Z(t)&&Jo(t,e)?0:-1}const Bl=e=>e[0]==="_"||e==="$stable",co=e=>q(e)?e.map(gt):[gt(e)],Su=(e,t,n)=>{if(t._n)return t;const s=Ke((...r)=>co(t(...r)),n);return s._c=!1,s},Dl=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Bl(r))continue;const o=e[r];if(Z(o))t[r]=Su(r,o,s);else if(o!=null){const i=co(o);t[r]=()=>i}}},Vl=(e,t)=>{const n=co(t);e.slots.default=()=>n},Eu=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ne(t),Ss(t,"_",n)):Dl(t,e.slots={})}else e.slots={},t&&Vl(e,t);Ss(e.slots,qs,1)},$u=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=we;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(Oe(r,t),!n&&l===1&&delete r._):(o=!t.$stable,Dl(t,r)),i=t}else t&&(Vl(e,t),i={default:1});if(o)for(const l in r)!Bl(l)&&!(l in i)&&delete r[l]};function Ir(e,t,n,s,r=!1){if(q(e)){e.forEach((p,m)=>Ir(p,t&&(q(t)?t[m]:t),n,s,r));return}if(Ln(s)&&!r)return;const o=s.shapeFlag&4?Ks(s.component)||s.component.proxy:s.el,i=r?null:o,{i:l,r:a}=e,c=t&&t.r,u=l.refs===we?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(Te(c)?(u[c]=null,re(f,c)&&(f[c]=null)):Ee(c)&&(c.value=null)),Z(a))Vt(a,l,12,[i,u]);else{const p=Te(a),m=Ee(a);if(p||m){const g=()=>{if(e.f){const v=p?re(f,a)?f[a]:u[a]:a.value;r?q(v)&&Wr(v,o):q(v)?v.includes(o)||v.push(o):p?(u[a]=[o],re(f,a)&&(f[a]=u[a])):(a.value=[o],e.k&&(u[e.k]=a.value))}else p?(u[a]=i,re(f,a)&&(f[a]=i)):m&&(a.value=i,e.k&&(u[e.k]=i))};i?(g.id=-1,qe(g,n)):g()}}}const qe=Gc;function Cu(e){return Au(e)}function Au(e,t){const n=Er();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:p,setScopeId:m=at,insertStaticContent:g}=e,v=(d,h,y,b=null,C=null,O=null,B=!1,R=null,N=!!h.dynamicChildren)=>{if(d===h)return;d&&!Yt(d,h)&&(b=E(d),He(d,C,O,!0),d=null),h.patchFlag===-2&&(N=!1,h.dynamicChildren=null);const{type:T,ref:W,shapeFlag:H}=h;switch(T){case Hs:k(d,h,y,b);break;case nt:P(d,h,y,b);break;case ur:d==null&&L(h,y,b,B);break;case Ce:j(d,h,y,b,C,O,B,R,N);break;default:H&1?D(d,h,y,b,C,O,B,R,N):H&6?ae(d,h,y,b,C,O,B,R,N):(H&64||H&128)&&T.process(d,h,y,b,C,O,B,R,N,F)}W!=null&&C&&Ir(W,d&&d.ref,O,h||d,!h)},k=(d,h,y,b)=>{if(d==null)s(h.el=l(h.children),y,b);else{const C=h.el=d.el;h.children!==d.children&&c(C,h.children)}},P=(d,h,y,b)=>{d==null?s(h.el=a(h.children||""),y,b):h.el=d.el},L=(d,h,y,b)=>{[d.el,d.anchor]=g(d.children,h,y,b,d.el,d.anchor)},M=({el:d,anchor:h},y,b)=>{let C;for(;d&&d!==h;)C=p(d),s(d,y,b),d=C;s(h,y,b)},A=({el:d,anchor:h})=>{let y;for(;d&&d!==h;)y=p(d),r(d),d=y;r(h)},D=(d,h,y,b,C,O,B,R,N)=>{B=B||h.type==="svg",d==null?ce(h,y,b,C,O,B,R,N):z(d,h,C,O,B,R,N)},ce=(d,h,y,b,C,O,B,R)=>{let N,T;const{type:W,props:H,shapeFlag:J,transition:X,dirs:te}=d;if(N=d.el=i(d.type,O,H&&H.is,H),J&8?u(N,d.children):J&16&&I(d.children,N,null,b,C,O&&W!=="foreignObject",B,R),te&&zt(d,null,b,"created"),Y(N,d,d.scopeId,B,b),H){for(const me in H)me!=="value"&&!ps(me)&&o(N,me,null,H[me],O,d.children,b,C,Me);"value"in H&&o(N,"value",null,H.value),(T=H.onVnodeBeforeMount)&&ht(T,b,d)}te&&zt(d,null,b,"beforeMount");const be=(!C||C&&!C.pendingBranch)&&X&&!X.persisted;be&&X.beforeEnter(N),s(N,h,y),((T=H&&H.onVnodeMounted)||be||te)&&qe(()=>{T&&ht(T,b,d),be&&X.enter(N),te&&zt(d,null,b,"mounted")},C)},Y=(d,h,y,b,C)=>{if(y&&m(d,y),b)for(let O=0;O{for(let T=N;T{const R=h.el=d.el;let{patchFlag:N,dynamicChildren:T,dirs:W}=h;N|=d.patchFlag&16;const H=d.props||we,J=h.props||we;let X;y&&Wt(y,!1),(X=J.onVnodeBeforeUpdate)&&ht(X,y,h,d),W&&zt(h,d,y,"beforeUpdate"),y&&Wt(y,!0);const te=C&&h.type!=="foreignObject";if(T?G(d.dynamicChildren,T,R,y,b,te,O):B||ue(d,h,R,null,y,b,te,O,!1),N>0){if(N&16)_e(R,h,H,J,y,b,C);else if(N&2&&H.class!==J.class&&o(R,"class",null,J.class,C),N&4&&o(R,"style",H.style,J.style,C),N&8){const be=h.dynamicProps;for(let me=0;me{X&&ht(X,y,h,d),W&&zt(h,d,y,"updated")},b)},G=(d,h,y,b,C,O,B)=>{for(let R=0;R{if(y!==b){if(y!==we)for(const R in y)!ps(R)&&!(R in b)&&o(d,R,y[R],null,B,h.children,C,O,Me);for(const R in b){if(ps(R))continue;const N=b[R],T=y[R];N!==T&&R!=="value"&&o(d,R,T,N,B,h.children,C,O,Me)}"value"in b&&o(d,"value",y.value,b.value)}},j=(d,h,y,b,C,O,B,R,N)=>{const T=h.el=d?d.el:l(""),W=h.anchor=d?d.anchor:l("");let{patchFlag:H,dynamicChildren:J,slotScopeIds:X}=h;X&&(R=R?R.concat(X):X),d==null?(s(T,y,b),s(W,y,b),I(h.children,y,W,C,O,B,R,N)):H>0&&H&64&&J&&d.dynamicChildren?(G(d.dynamicChildren,J,y,C,O,B,R),(h.key!=null||C&&h===C.subTree)&&Ul(d,h,!0)):ue(d,h,y,W,C,O,B,R,N)},ae=(d,h,y,b,C,O,B,R,N)=>{h.slotScopeIds=R,d==null?h.shapeFlag&512?C.ctx.activate(h,y,b,B,N):Ne(h,y,b,C,O,B,N):Ve(d,h,N)},Ne=(d,h,y,b,C,O,B)=>{const R=d.component=Nu(d,b,C);if(Ds(d)&&(R.ctx.renderer=F),Mu(R),R.asyncDep){if(C&&C.registerDep(R,se),!d.el){const N=R.subTree=U(nt);P(null,N,h,y)}return}se(R,d,h,y,C,O,B)},Ve=(d,h,y)=>{const b=h.component=d.component;if(zc(d,h,y))if(b.asyncDep&&!b.asyncResolved){ye(b,h,y);return}else b.next=h,Vc(b.update),b.update();else h.el=d.el,b.vnode=h},se=(d,h,y,b,C,O,B)=>{const R=()=>{if(d.isMounted){let{next:W,bu:H,u:J,parent:X,vnode:te}=d,be=W,me;Wt(d,!1),W?(W.el=te.el,ye(d,W,B)):W=te,H&&hs(H),(me=W.props&&W.props.onVnodeBeforeUpdate)&&ht(me,X,W,te),Wt(d,!0);const Ae=lr(d),rt=d.subTree;d.subTree=Ae,v(rt,Ae,f(rt.el),E(rt),d,C,O),W.el=Ae.el,be===null&&Wc(d,Ae.el),J&&qe(J,C),(me=W.props&&W.props.onVnodeUpdated)&&qe(()=>ht(me,X,W,te),C)}else{let W;const{el:H,props:J}=h,{bm:X,m:te,parent:be}=d,me=Ln(h);if(Wt(d,!1),X&&hs(X),!me&&(W=J&&J.onVnodeBeforeMount)&&ht(W,be,h),Wt(d,!0),H&&fe){const Ae=()=>{d.subTree=lr(d),fe(H,d.subTree,d,C,null)};me?h.type.__asyncLoader().then(()=>!d.isUnmounted&&Ae()):Ae()}else{const Ae=d.subTree=lr(d);v(null,Ae,y,b,d,C,O),h.el=Ae.el}if(te&&qe(te,C),!me&&(W=J&&J.onVnodeMounted)){const Ae=h;qe(()=>ht(W,be,Ae),C)}(h.shapeFlag&256||be&&Ln(be.vnode)&&be.vnode.shapeFlag&256)&&d.a&&qe(d.a,C),d.isMounted=!0,h=y=b=null}},N=d.effect=new Xr(R,()=>io(T),d.scope),T=d.update=()=>N.run();T.id=d.uid,Wt(d,!0),T()},ye=(d,h,y)=>{h.component=d;const b=d.vnode.props;d.vnode=h,d.next=null,wu(d,h.props,b,y),$u(d,h.children,y),Sn(),Bo(),En()},ue=(d,h,y,b,C,O,B,R,N=!1)=>{const T=d&&d.children,W=d?d.shapeFlag:0,H=h.children,{patchFlag:J,shapeFlag:X}=h;if(J>0){if(J&128){xt(T,H,y,b,C,O,B,R,N);return}else if(J&256){St(T,H,y,b,C,O,B,R,N);return}}X&8?(W&16&&Me(T,C,O),H!==T&&u(y,H)):W&16?X&16?xt(T,H,y,b,C,O,B,R,N):Me(T,C,O,!0):(W&8&&u(y,""),X&16&&I(H,y,b,C,O,B,R,N))},St=(d,h,y,b,C,O,B,R,N)=>{d=d||dn,h=h||dn;const T=d.length,W=h.length,H=Math.min(T,W);let J;for(J=0;JW?Me(d,C,O,!0,!1,H):I(h,y,b,C,O,B,R,N,H)},xt=(d,h,y,b,C,O,B,R,N)=>{let T=0;const W=h.length;let H=d.length-1,J=W-1;for(;T<=H&&T<=J;){const X=d[T],te=h[T]=N?Ft(h[T]):gt(h[T]);if(Yt(X,te))v(X,te,y,null,C,O,B,R,N);else break;T++}for(;T<=H&&T<=J;){const X=d[H],te=h[J]=N?Ft(h[J]):gt(h[J]);if(Yt(X,te))v(X,te,y,null,C,O,B,R,N);else break;H--,J--}if(T>H){if(T<=J){const X=J+1,te=XJ)for(;T<=H;)He(d[T],C,O,!0),T++;else{const X=T,te=T,be=new Map;for(T=te;T<=J;T++){const Je=h[T]=N?Ft(h[T]):gt(h[T]);Je.key!=null&&be.set(Je.key,T)}let me,Ae=0;const rt=J-te+1;let an=!1,Ao=0;const An=new Array(rt);for(T=0;T=rt){He(Je,C,O,!0);continue}let pt;if(Je.key!=null)pt=be.get(Je.key);else for(me=te;me<=J;me++)if(An[me-te]===0&&Yt(Je,h[me])){pt=me;break}pt===void 0?He(Je,C,O,!0):(An[pt-te]=T+1,pt>=Ao?Ao=pt:an=!0,v(Je,h[pt],y,null,C,O,B,R,N),Ae++)}const Oo=an?Ou(An):dn;for(me=Oo.length-1,T=rt-1;T>=0;T--){const Je=te+T,pt=h[Je],To=Je+1{const{el:O,type:B,transition:R,children:N,shapeFlag:T}=d;if(T&6){dt(d.component.subTree,h,y,b);return}if(T&128){d.suspense.move(h,y,b);return}if(T&64){B.move(d,h,y,F);return}if(B===Ce){s(O,h,y);for(let H=0;HR.enter(O),C);else{const{leave:H,delayLeave:J,afterLeave:X}=R,te=()=>s(O,h,y),be=()=>{H(O,()=>{te(),X&&X()})};J?J(O,te,be):be()}else s(O,h,y)},He=(d,h,y,b=!1,C=!1)=>{const{type:O,props:B,ref:R,children:N,dynamicChildren:T,shapeFlag:W,patchFlag:H,dirs:J}=d;if(R!=null&&Ir(R,null,y,d,!0),W&256){h.ctx.deactivate(d);return}const X=W&1&&J,te=!Ln(d);let be;if(te&&(be=B&&B.onVnodeBeforeUnmount)&&ht(be,h,d),W&6)os(d.component,y,b);else{if(W&128){d.suspense.unmount(y,b);return}X&&zt(d,null,h,"beforeUnmount"),W&64?d.type.remove(d,h,y,C,F,b):T&&(O!==Ce||H>0&&H&64)?Me(T,h,y,!1,!0):(O===Ce&&H&384||!C&&W&16)&&Me(N,h,y),b&&on(d)}(te&&(be=B&&B.onVnodeUnmounted)||X)&&qe(()=>{be&&ht(be,h,d),X&&zt(d,null,h,"unmounted")},y)},on=d=>{const{type:h,el:y,anchor:b,transition:C}=d;if(h===Ce){ln(y,b);return}if(h===ur){A(d);return}const O=()=>{r(y),C&&!C.persisted&&C.afterLeave&&C.afterLeave()};if(d.shapeFlag&1&&C&&!C.persisted){const{leave:B,delayLeave:R}=C,N=()=>B(y,O);R?R(d.el,O,N):N()}else O()},ln=(d,h)=>{let y;for(;d!==h;)y=p(d),r(d),d=y;r(h)},os=(d,h,y)=>{const{bum:b,scope:C,update:O,subTree:B,um:R}=d;b&&hs(b),C.stop(),O&&(O.active=!1,He(B,d,h,y)),R&&qe(R,h),qe(()=>{d.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Me=(d,h,y,b=!1,C=!1,O=0)=>{for(let B=O;Bd.shapeFlag&6?E(d.component.subTree):d.shapeFlag&128?d.suspense.next():p(d.anchor||d.el),V=(d,h,y)=>{d==null?h._vnode&&He(h._vnode,null,null,!0):v(h._vnode||null,d,h,null,null,null,y),Bo(),El(),h._vnode=d},F={p:v,um:He,m:dt,r:on,mt:Ne,mc:I,pc:ue,pbc:G,n:E,o:e};let K,fe;return t&&([K,fe]=t(F)),{render:V,hydrate:K,createApp:yu(V,K)}}function Wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ul(e,t,n=!1){const s=e.children,r=t.children;if(q(s)&&q(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}const Tu=e=>e.__isTeleport,Ce=Symbol.for("v-fgt"),Hs=Symbol.for("v-txt"),nt=Symbol.for("v-cmt"),ur=Symbol.for("v-stc"),Nn=[];let lt=null;function $(e=!1){Nn.push(lt=e?null:[])}function xu(){Nn.pop(),lt=Nn[Nn.length-1]||null}let Kn=1;function Qo(e){Kn+=e}function jl(e){return e.dynamicChildren=Kn>0?lt||dn:null,xu(),Kn>0&<&<.push(e),e}function x(e,t,n,s,r,o){return jl(_(e,t,n,s,r,o,!0))}function Se(e,t,n,s,r){return jl(U(e,t,n,s,r,!0))}function Ts(e){return e?e.__v_isVNode===!0:!1}function Yt(e,t){return e.type===t.type&&e.key===t.key}const qs="__vInternal",Hl=({key:e})=>e??null,gs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Te(e)||Ee(e)||Z(e)?{i:Le,r:e,k:t,f:!!n}:e:null);function _(e,t=null,n=null,s=0,r=null,o=e===Ce?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Hl(t),ref:t&&gs(t),scopeId:Bs,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Le};return l?(uo(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=Te(n)?8:16),Kn>0&&!i&<&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&<.push(a),a}const U=Pu;function Pu(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===cu)&&(e=nt),Ts(e)){const l=Ht(e,t,!0);return n&&uo(l,n),Kn>0&&!o&<&&(l.shapeFlag&6?lt[lt.indexOf(e)]=l:lt.push(l)),l.patchFlag|=-2,l}if(ju(e)&&(e=e.__vccOpts),t){t=Ru(t);let{class:l,style:a}=t;l&&!Te(l)&&(t.class=it(l)),ge(a)&&(ml(a)&&!q(a)&&(a=Oe({},a)),t.style=Gr(a))}const i=Te(e)?1:Jc(e)?128:Tu(e)?64:ge(e)?4:Z(e)?2:0;return _(e,t,n,s,r,i,o,!0)}function Ru(e){return e?ml(e)||qs in e?Oe({},e):e:null}function Ht(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,l=t?ku(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Hl(l),ref:t&&t.ref?n&&r?q(r)?r.concat(gs(t)):[r,gs(t)]:gs(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ht(e.ssContent),ssFallback:e.ssFallback&&Ht(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function xe(e=" ",t=0){return U(Hs,null,e,t)}function Q(e="",t=!1){return t?($(),Se(nt,null,e)):U(nt,null,e)}function gt(e){return e==null||typeof e=="boolean"?U(nt):q(e)?U(Ce,null,e.slice()):typeof e=="object"?Ft(e):U(Hs,null,String(e))}function Ft(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ht(e)}function uo(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(q(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),uo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(qs in t)?t._ctx=Le:r===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Z(t)?(t={default:t,_ctx:Le},n=32):(t=String(t),s&64?(n=16,t=[xe(t)]):n=8);e.children=t,e.shapeFlag|=n}function ku(...e){const t={};for(let n=0;nPe||Le;let fo,cn,Yo="__VUE_INSTANCE_SETTERS__";(cn=Er()[Yo])||(cn=Er()[Yo]=[]),cn.push(e=>Pe=e),fo=e=>{cn.length>1?cn.forEach(t=>t(e)):cn[0](e)};const gn=e=>{fo(e),e.scope.on()},nn=()=>{Pe&&Pe.scope.off(),fo(null)};function ql(e){return e.vnode.shapeFlag&4}let zn=!1;function Mu(e,t=!1){zn=t;const{props:n,children:s}=e.vnode,r=ql(e);vu(e,n,r,t),Eu(e,s);const o=r?Bu(e,t):void 0;return zn=!1,o}function Bu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=es(new Proxy(e.ctx,fu));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Vu(e):null;gn(e),Sn();const o=Vt(s,e,0,[e.props,r]);if(En(),nn(),Gi(o)){if(o.then(nn,nn),t)return o.then(i=>{Xo(e,i,t)}).catch(i=>{Fs(i,e,0)});e.asyncDep=o}else Xo(e,o,t)}else Kl(e,t)}function Xo(e,t,n){Z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=bl(t)),Kl(e,n)}let Zo;function Kl(e,t,n){const s=e.type;if(!e.render){if(!t&&Zo&&!s.render){const r=s.template||ao(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=s,c=Oe(Oe({isCustomElement:o,delimiters:l},i),a);s.render=Zo(r,c)}}e.render=s.render||at}gn(e),Sn(),du(e),En(),nn()}function Du(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return ze(e,"get","$attrs"),t[n]}}))}function Vu(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Du(e)},slots:e.slots,emit:e.emit,expose:t}}function Ks(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(bl(es(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in In)return In[n](e)},has(t,n){return n in t||n in In}}))}function Uu(e,t=!0){return Z(e)?e.displayName||e.name:e.name||t&&e.__name}function ju(e){return Z(e)&&"__vccOpts"in e}const $e=(e,t)=>Mc(e,t,zn);function po(e,t,n){const s=arguments.length;return s===2?ge(t)&&!q(t)?Ts(t)?U(e,null,[t]):U(e,t):U(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Ts(n)&&(n=[n]),U(e,t,n))}const Hu=Symbol.for("v-scx"),qu=()=>tt(Hu),Ku="3.3.4",zu="http://www.w3.org/2000/svg",Xt=typeof document<"u"?document:null,ei=Xt&&Xt.createElement("template"),Wu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?Xt.createElementNS(zu,e):Xt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Xt.createTextNode(e),createComment:e=>Xt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{ei.innerHTML=s?`${e}`:e;const l=ei.content;if(s){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Ju(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Gu(e,t,n){const s=e.style,r=Te(n);if(n&&!r){if(t&&!Te(t))for(const o in t)n[o]==null&&Nr(s,o,"");for(const o in n)Nr(s,o,n[o])}else{const o=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=o)}}const ti=/\s*!important$/;function Nr(e,t,n){if(q(n))n.forEach(s=>Nr(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Qu(e,t);ti.test(n)?e.setProperty(sn(s),n.replace(ti,""),"important"):e[s]=n}}const ni=["Webkit","Moz","ms"],fr={};function Qu(e,t){const n=fr[t];if(n)return n;let s=vt(t);if(s!=="filter"&&s in e)return fr[t]=s;s=Is(s);for(let r=0;rdr||(nf.then(()=>dr=0),dr=Date.now());function rf(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;et(of(s,n.value),t,5,[s])};return n.value=e,n.attached=sf(),n}function of(e,t){if(q(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const oi=/^on[a-z]/,lf=(e,t,n,s,r=!1,o,i,l,a)=>{t==="class"?Ju(e,s,r):t==="style"?Gu(e,n,s):ks(t)?zr(t)||ef(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):af(e,t,s,r))?Xu(e,t,s,o,i,l,a):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Yu(e,t,s,r))};function af(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&oi.test(t)&&Z(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||oi.test(t)&&Te(n)?!1:t in e}const Rt="transition",On="animation",xs=(e,{slots:t})=>po(Zc,cf(e),t);xs.displayName="Transition";const zl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};xs.props=Oe({},Tl,zl);const Jt=(e,t=[])=>{q(e)?e.forEach(n=>n(...t)):e&&e(...t)},ii=e=>e?q(e)?e.some(t=>t.length>1):e.length>1:!1;function cf(e){const t={};for(const j in e)j in zl||(t[j]=e[j]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=o,appearActiveClass:c=i,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,g=uf(r),v=g&&g[0],k=g&&g[1],{onBeforeEnter:P,onEnter:L,onEnterCancelled:M,onLeave:A,onLeaveCancelled:D,onBeforeAppear:ce=P,onAppear:Y=L,onAppearCancelled:I=M}=t,z=(j,ae,Ne)=>{Gt(j,ae?u:l),Gt(j,ae?c:i),Ne&&Ne()},G=(j,ae)=>{j._isLeaving=!1,Gt(j,f),Gt(j,m),Gt(j,p),ae&&ae()},_e=j=>(ae,Ne)=>{const Ve=j?Y:L,se=()=>z(ae,j,Ne);Jt(Ve,[ae,se]),li(()=>{Gt(ae,j?a:o),kt(ae,j?u:l),ii(Ve)||ai(ae,s,v,se)})};return Oe(t,{onBeforeEnter(j){Jt(P,[j]),kt(j,o),kt(j,i)},onBeforeAppear(j){Jt(ce,[j]),kt(j,a),kt(j,c)},onEnter:_e(!1),onAppear:_e(!0),onLeave(j,ae){j._isLeaving=!0;const Ne=()=>G(j,ae);kt(j,f),pf(),kt(j,p),li(()=>{j._isLeaving&&(Gt(j,f),kt(j,m),ii(A)||ai(j,s,k,Ne))}),Jt(A,[j,Ne])},onEnterCancelled(j){z(j,!1),Jt(M,[j])},onAppearCancelled(j){z(j,!0),Jt(I,[j])},onLeaveCancelled(j){G(j),Jt(D,[j])}})}function uf(e){if(e==null)return null;if(ge(e))return[pr(e.enter),pr(e.leave)];{const t=pr(e);return[t,t]}}function pr(e){return Wa(e)}function kt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Gt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function li(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ff=0;function ai(e,t,n,s){const r=e._endId=++ff,o=()=>{r===e._endId&&s()};if(n)return setTimeout(o,n);const{type:i,timeout:l,propCount:a}=df(e,t);if(!i)return s();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,p),o()},p=m=>{m.target===e&&++u>=a&&f()};setTimeout(()=>{u(n[g]||"").split(", "),r=s(`${Rt}Delay`),o=s(`${Rt}Duration`),i=ci(r,o),l=s(`${On}Delay`),a=s(`${On}Duration`),c=ci(l,a);let u=null,f=0,p=0;t===Rt?i>0&&(u=Rt,f=i,p=o.length):t===On?c>0&&(u=On,f=c,p=a.length):(f=Math.max(i,c),u=f>0?i>c?Rt:On:null,p=u?u===Rt?o.length:a.length:0);const m=u===Rt&&/\b(transform|all)(,|$)/.test(s(`${Rt}Property`).toString());return{type:u,timeout:f,propCount:p,hasTransform:m}}function ci(e,t){for(;e.lengthui(n)+ui(e[s])))}function ui(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function pf(){return document.body.offsetHeight}const _n=e=>{const t=e.props["onUpdate:modelValue"]||!1;return q(t)?n=>hs(t,n):t};function hf(e){e.target.composing=!0}function fi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Be={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=_n(r);const o=s||r.props&&r.props.type==="number";Bt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=Es(l)),e._assign(l)}),n&&Bt(e,"change",()=>{e.value=e.value.trim()}),t||(Bt(e,"compositionstart",hf),Bt(e,"compositionend",fi),Bt(e,"change",fi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e._assign=_n(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&Es(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},di={deep:!0,created(e,t,n){e._assign=_n(n),Bt(e,"change",()=>{const s=e._modelValue,r=Wn(e),o=e.checked,i=e._assign;if(q(s)){const l=Qr(s,r),a=l!==-1;if(o&&!a)i(s.concat(r));else if(!o&&a){const c=[...s];c.splice(l,1),i(c)}}else if(wn(s)){const l=new Set(s);o?l.add(r):l.delete(r),i(l)}else i(Wl(e,o))})},mounted:pi,beforeUpdate(e,t,n){e._assign=_n(n),pi(e,t,n)}};function pi(e,{value:t,oldValue:n},s){e._modelValue=t,q(t)?e.checked=Qr(t,s.props.value)>-1:wn(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Zn(t,Wl(e,!0)))}const mf={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=wn(t);Bt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?Es(Wn(i)):Wn(i));e._assign(e.multiple?r?new Set(o):o:o[0])}),e._assign=_n(s)},mounted(e,{value:t}){hi(e,t)},beforeUpdate(e,t,n){e._assign=_n(n)},updated(e,{value:t}){hi(e,t)}};function hi(e,t){const n=e.multiple;if(!(n&&!q(t)&&!wn(t))){for(let s=0,r=e.options.length;s-1:o.selected=t.has(i);else if(Zn(Wn(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Wn(e){return"_value"in e?e._value:e.value}function Wl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gf=["ctrl","shift","alt","meta"],_f={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>gf.some(n=>e[`${n}Key`]&&!t.includes(n))},de=(e,t)=>(n,...s)=>{for(let r=0;rn=>{if(!("key"in n))return;const s=sn(n.key);if(t.some(r=>r===s||yf[r]===s))return e(n)},yt={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Tn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Tn(e,!0),s.enter(e)):s.leave(e,()=>{Tn(e,!1)}):Tn(e,t))},beforeUnmount(e,{value:t}){Tn(e,t)}};function Tn(e,t){e.style.display=t?e._vod:"none"}const bf=Oe({patchProp:lf},Wu);let mi;function vf(){return mi||(mi=Cu(bf))}const wf=(...e)=>{const t=vf().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Sf(s);if(!r)return;const o=t._component;!Z(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Sf(e){return Te(e)?document.querySelector(e):e}var Ef=!1;/*! + * pinia v2.1.6 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let Jl;const zs=e=>Jl=e,Gl=Symbol();function Fr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Fn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Fn||(Fn={}));function $f(){const e=tl(!0),t=e.run(()=>oe({}));let n=[],s=[];const r=es({install(o){zs(r),r._a=o,o.provide(Gl,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return!this._a&&!Ef?s.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const Ql=()=>{};function gi(e,t,n,s=Ql){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&nl()&&nc(r),r}function un(e,...t){e.slice().forEach(n=>{n(...t)})}const Cf=e=>e();function Mr(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];Fr(r)&&Fr(s)&&e.hasOwnProperty(n)&&!Ee(s)&&!Ct(s)?e[n]=Mr(r,s):e[n]=s}return e}const Af=Symbol();function Of(e){return!Fr(e)||!e.hasOwnProperty(Af)}const{assign:Nt}=Object;function Tf(e){return!!(Ee(e)&&e.effect)}function xf(e,t,n,s){const{state:r,actions:o,getters:i}=t,l=n.state.value[e];let a;function c(){l||(n.state.value[e]=r?r():{});const u=Fe(n.state.value[e]);return Nt(u,o,Object.keys(i||{}).reduce((f,p)=>(f[p]=es($e(()=>{zs(n);const m=n._s.get(e);return i[p].call(m,m)})),f),{}))}return a=Yl(e,c,t,n,s,!0),a}function Yl(e,t,n={},s,r,o){let i;const l=Nt({actions:{}},n),a={deep:!0};let c,u,f=[],p=[],m;const g=s.state.value[e];!o&&!g&&(s.state.value[e]={}),oe({});let v;function k(I){let z;c=u=!1,typeof I=="function"?(I(s.state.value[e]),z={type:Fn.patchFunction,storeId:e,events:m}):(Mr(s.state.value[e],I),z={type:Fn.patchObject,payload:I,storeId:e,events:m});const G=v=Symbol();oo().then(()=>{v===G&&(c=!0)}),u=!0,un(f,z,s.state.value[e])}const P=o?function(){const{state:z}=n,G=z?z():{};this.$patch(_e=>{Nt(_e,G)})}:Ql;function L(){i.stop(),f=[],p=[],s._s.delete(e)}function M(I,z){return function(){zs(s);const G=Array.from(arguments),_e=[],j=[];function ae(se){_e.push(se)}function Ne(se){j.push(se)}un(p,{args:G,name:I,store:D,after:ae,onError:Ne});let Ve;try{Ve=z.apply(this&&this.$id===e?this:D,G)}catch(se){throw un(j,se),se}return Ve instanceof Promise?Ve.then(se=>(un(_e,se),se)).catch(se=>(un(j,se),Promise.reject(se))):(un(_e,Ve),Ve)}}const A={_p:s,$id:e,$onAction:gi.bind(null,p),$patch:k,$reset:P,$subscribe(I,z={}){const G=gi(f,I,z.detached,()=>_e()),_e=i.run(()=>tn(()=>s.state.value[e],j=>{(z.flush==="sync"?u:c)&&I({storeId:e,type:Fn.direct,events:m},j)},Nt({},a,z)));return G},$dispose:L},D=qt(A);s._s.set(e,D);const ce=s._a&&s._a.runWithContext||Cf,Y=s._e.run(()=>(i=tl(),ce(()=>i.run(t))));for(const I in Y){const z=Y[I];if(Ee(z)&&!Tf(z)||Ct(z))o||(g&&Of(z)&&(Ee(z)?z.value=g[I]:Mr(z,g[I])),s.state.value[e][I]=z);else if(typeof z=="function"){const G=M(I,z);Y[I]=G,l.actions[I]=z}}return Nt(D,Y),Nt(ne(D),Y),Object.defineProperty(D,"$state",{get:()=>s.state.value[e],set:I=>{k(z=>{Nt(z,I)})}}),s._p.forEach(I=>{Nt(D,i.run(()=>I({store:D,app:s._a,pinia:s,options:l})))}),g&&o&&n.hydrate&&n.hydrate(D.$state,g),c=!0,u=!0,D}function Ws(e,t,n){let s,r;const o=typeof t=="function";typeof e=="string"?(s=e,r=o?n:t):(r=e,s=e.id);function i(l,a){const c=bu();return l=l||(c?tt(Gl,null):null),l&&zs(l),l=Jl,l._s.has(s)||(o?Yl(s,t,r,l):xf(s,r,l)),l._s.get(s)}return i.$id=s,i}function ve(e){{e=ne(e);const t={};for(const n in e){const s=e[n];(Ee(s)||Ct(s))&&(t[n]=Nc(e,n))}return t}}/*! + * vue-router v4.2.4 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */const fn=typeof window<"u";function Pf(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const pe=Object.assign;function hr(e,t){const n={};for(const s in t){const r=t[s];n[s]=ct(r)?r.map(e):e(r)}return n}const Mn=()=>{},ct=Array.isArray,Rf=/\/$/,kf=e=>e.replace(Rf,"");function mr(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(s=t.slice(0,a),o=t.slice(a+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=Ff(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function Lf(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function _i(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function If(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&yn(t.matched[s],n.matched[r])&&Xl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function yn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Xl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Nf(e[n],t[n]))return!1;return!0}function Nf(e,t){return ct(e)?yi(e,t):ct(t)?yi(t,e):e===t}function yi(e,t){return ct(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Ff(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i-(i===s.length?1:0)).join("/")}var Jn;(function(e){e.pop="pop",e.push="push"})(Jn||(Jn={}));var Bn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Bn||(Bn={}));function Mf(e){if(!e)if(fn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),kf(e)}const Bf=/^[^#]+#/;function Df(e,t){return e.replace(Bf,"#")+t}function Vf(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Js=()=>({left:window.pageXOffset,top:window.pageYOffset});function Uf(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Vf(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function bi(e,t){return(history.state?history.state.position-t:-1)+e}const Br=new Map;function jf(e,t){Br.set(e,t)}function Hf(e){const t=Br.get(e);return Br.delete(e),t}let qf=()=>location.protocol+"//"+location.host;function Zl(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let l=r.includes(e.slice(o))?e.slice(o).length:1,a=r.slice(l);return a[0]!=="/"&&(a="/"+a),_i(a,"")}return _i(n,e)+s+r}function Kf(e,t,n,s){let r=[],o=[],i=null;const l=({state:p})=>{const m=Zl(e,location),g=n.value,v=t.value;let k=0;if(p){if(n.value=m,t.value=p,i&&i===g){i=null;return}k=v?p.position-v.position:0}else s(m);r.forEach(P=>{P(n.value,g,{delta:k,type:Jn.pop,direction:k?k>0?Bn.forward:Bn.back:Bn.unknown})})};function a(){i=n.value}function c(p){r.push(p);const m=()=>{const g=r.indexOf(p);g>-1&&r.splice(g,1)};return o.push(m),m}function u(){const{history:p}=window;p.state&&p.replaceState(pe({},p.state,{scroll:Js()}),"")}function f(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:f}}function vi(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Js():null}}function zf(e){const{history:t,location:n}=window,s={value:Zl(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(a,c,u){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:qf()+e+a;try{t[u?"replaceState":"pushState"](c,"",p),r.value=c}catch(m){console.error(m),n[u?"replace":"assign"](p)}}function i(a,c){const u=pe({},t.state,vi(r.value.back,a,r.value.forward,!0),c,{position:r.value.position});o(a,u,!0),s.value=a}function l(a,c){const u=pe({},r.value,t.state,{forward:a,scroll:Js()});o(u.current,u,!0);const f=pe({},vi(s.value,a,null),{position:u.position+1},c);o(a,f,!1),s.value=a}return{location:s,state:r,push:l,replace:i}}function Wf(e){e=Mf(e);const t=zf(e),n=Kf(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=pe({location:"",base:e,go:s,createHref:Df.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Jf(e){return typeof e=="string"||e&&typeof e=="object"}function ea(e){return typeof e=="string"||typeof e=="symbol"}const Lt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ta=Symbol("");var wi;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(wi||(wi={}));function bn(e,t){return pe(new Error,{type:e,[ta]:!0},t)}function Et(e,t){return e instanceof Error&&ta in e&&(t==null||!!(e.type&t))}const Si="[^/]+?",Gf={sensitive:!1,strict:!1,start:!0,end:!0},Qf=/[.+*?^${}()[\]/\\]/g;function Yf(e,t){const n=pe({},Gf,t),s=[];let r=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function Zf(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const ed={type:0,value:""},td=/[a-zA-Z0-9_]/;function nd(e){if(!e)return[[]];if(e==="/")return[[ed]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,a,c="",u="";function f(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=a}for(;l{i(L)}:Mn}function i(u){if(ea(u)){const f=s.get(u);f&&(s.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&s.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function l(){return n}function a(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!na(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!Ci(u)&&s.set(u.record.name,u)}function c(u,f){let p,m={},g,v;if("name"in u&&u.name){if(p=s.get(u.name),!p)throw bn(1,{location:u});v=p.record.name,m=pe($i(f.params,p.keys.filter(L=>!L.optional).map(L=>L.name)),u.params&&$i(u.params,p.keys.map(L=>L.name))),g=p.stringify(m)}else if("path"in u)g=u.path,p=n.find(L=>L.re.test(g)),p&&(m=p.parse(g),v=p.record.name);else{if(p=f.name?s.get(f.name):n.find(L=>L.re.test(f.path)),!p)throw bn(1,{location:u,currentLocation:f});v=p.record.name,m=pe({},f.params,u.params),g=p.stringify(m)}const k=[];let P=p;for(;P;)k.unshift(P.record),P=P.parent;return{name:v,path:g,params:m,matched:k,meta:ld(k)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:c,removeRoute:i,getRoutes:l,getRecordMatcher:r}}function $i(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function od(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:id(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function id(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Ci(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ld(e){return e.reduce((t,n)=>pe(t,n.meta),{})}function Ai(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function na(e,t){return t.children.some(n=>n===e||na(e,n))}const sa=/#/g,ad=/&/g,cd=/\//g,ud=/=/g,fd=/\?/g,ra=/\+/g,dd=/%5B/g,pd=/%5D/g,oa=/%5E/g,hd=/%60/g,ia=/%7B/g,md=/%7C/g,la=/%7D/g,gd=/%20/g;function ho(e){return encodeURI(""+e).replace(md,"|").replace(dd,"[").replace(pd,"]")}function _d(e){return ho(e).replace(ia,"{").replace(la,"}").replace(oa,"^")}function Dr(e){return ho(e).replace(ra,"%2B").replace(gd,"+").replace(sa,"%23").replace(ad,"%26").replace(hd,"`").replace(ia,"{").replace(la,"}").replace(oa,"^")}function yd(e){return Dr(e).replace(ud,"%3D")}function bd(e){return ho(e).replace(sa,"%23").replace(fd,"%3F")}function vd(e){return e==null?"":bd(e).replace(cd,"%2F")}function Ps(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function wd(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Dr(o)):[s&&Dr(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Sd(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=ct(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Ed=Symbol(""),Ti=Symbol(""),Gs=Symbol(""),mo=Symbol(""),Vr=Symbol("");function xn(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Mt(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,l)=>{const a=f=>{f===!1?l(bn(4,{from:n,to:t})):f instanceof Error?l(f):Jf(f)?l(bn(2,{from:t,to:f})):(o&&s.enterCallbacks[r]===o&&typeof f=="function"&&o.push(f),i())},c=e.call(s&&s.instances[r],t,n,a);let u=Promise.resolve(c);e.length<3&&(u=u.then(a)),u.catch(f=>l(f))})}function gr(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let l=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if($d(l)){const c=(l.__vccOpts||l)[t];c&&r.push(Mt(c,n,s,o,i))}else{let a=l();r.push(()=>a.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const u=Pf(c)?c.default:c;o.components[i]=u;const p=(u.__vccOpts||u)[t];return p&&Mt(p,n,s,o,i)()}))}}return r}function $d(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function xi(e){const t=tt(Gs),n=tt(mo),s=$e(()=>t.resolve(w(e.to))),r=$e(()=>{const{matched:a}=s.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const p=f.findIndex(yn.bind(null,u));if(p>-1)return p;const m=Pi(a[c-2]);return c>1&&Pi(u)===m&&f[f.length-1].path!==m?f.findIndex(yn.bind(null,a[c-2])):p}),o=$e(()=>r.value>-1&&Td(n.params,s.value.params)),i=$e(()=>r.value>-1&&r.value===n.matched.length-1&&Xl(n.params,s.value.params));function l(a={}){return Od(a)?t[w(e.replace)?"replace":"push"](w(e.to)).catch(Mn):Promise.resolve()}return{route:s,href:$e(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}const Cd=le({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:xi,setup(e,{slots:t}){const n=qt(xi(e)),{options:s}=tt(Gs),r=$e(()=>({[Ri(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Ri(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:po("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),Ad=Cd;function Od(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Td(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!ct(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function Pi(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ri=(e,t,n)=>e??t??n,xd=le({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=tt(Vr),r=$e(()=>e.route||s.value),o=tt(Ti,0),i=$e(()=>{let c=w(o);const{matched:u}=r.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=$e(()=>r.value.matched[i.value]);ms(Ti,$e(()=>i.value+1)),ms(Ed,l),ms(Vr,r);const a=oe();return tn(()=>[a.value,l.value,e.name],([c,u,f],[p,m,g])=>{u&&(u.instances[f]=c,m&&m!==u&&c&&c===p&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),c&&u&&(!m||!yn(u,m)||!p)&&(u.enterCallbacks[f]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,f=l.value,p=f&&f.components[u];if(!p)return ki(n.default,{Component:p,route:c});const m=f.props[u],g=m?m===!0?c.params:typeof m=="function"?m(c):m:null,k=po(p,pe({},g,t,{onVnodeUnmounted:P=>{P.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return ki(n.default,{Component:k,route:c})||k}}});function ki(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const aa=xd;function Pd(e){const t=rd(e.routes,e),n=e.parseQuery||wd,s=e.stringifyQuery||Oi,r=e.history,o=xn(),i=xn(),l=xn(),a=Pc(Lt);let c=Lt;fn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=hr.bind(null,E=>""+E),f=hr.bind(null,vd),p=hr.bind(null,Ps);function m(E,V){let F,K;return ea(E)?(F=t.getRecordMatcher(E),K=V):K=E,t.addRoute(K,F)}function g(E){const V=t.getRecordMatcher(E);V&&t.removeRoute(V)}function v(){return t.getRoutes().map(E=>E.record)}function k(E){return!!t.getRecordMatcher(E)}function P(E,V){if(V=pe({},V||a.value),typeof E=="string"){const y=mr(n,E,V.path),b=t.resolve({path:y.path},V),C=r.createHref(y.fullPath);return pe(y,b,{params:p(b.params),hash:Ps(y.hash),redirectedFrom:void 0,href:C})}let F;if("path"in E)F=pe({},E,{path:mr(n,E.path,V.path).path});else{const y=pe({},E.params);for(const b in y)y[b]==null&&delete y[b];F=pe({},E,{params:f(y)}),V.params=f(V.params)}const K=t.resolve(F,V),fe=E.hash||"";K.params=u(p(K.params));const d=Lf(s,pe({},E,{hash:_d(fe),path:K.path})),h=r.createHref(d);return pe({fullPath:d,hash:fe,query:s===Oi?Sd(E.query):E.query||{}},K,{redirectedFrom:void 0,href:h})}function L(E){return typeof E=="string"?mr(n,E,a.value.path):pe({},E)}function M(E,V){if(c!==E)return bn(8,{from:V,to:E})}function A(E){return Y(E)}function D(E){return A(pe(L(E),{replace:!0}))}function ce(E){const V=E.matched[E.matched.length-1];if(V&&V.redirect){const{redirect:F}=V;let K=typeof F=="function"?F(E):F;return typeof K=="string"&&(K=K.includes("?")||K.includes("#")?K=L(K):{path:K},K.params={}),pe({query:E.query,hash:E.hash,params:"path"in K?{}:E.params},K)}}function Y(E,V){const F=c=P(E),K=a.value,fe=E.state,d=E.force,h=E.replace===!0,y=ce(F);if(y)return Y(pe(L(y),{state:typeof y=="object"?pe({},fe,y.state):fe,force:d,replace:h}),V||F);const b=F;b.redirectedFrom=V;let C;return!d&&If(s,K,F)&&(C=bn(16,{to:b,from:K}),dt(K,K,!0,!1)),(C?Promise.resolve(C):G(b,K)).catch(O=>Et(O)?Et(O,2)?O:xt(O):ue(O,b,K)).then(O=>{if(O){if(Et(O,2))return Y(pe({replace:h},L(O.to),{state:typeof O.to=="object"?pe({},fe,O.to.state):fe,force:d}),V||b)}else O=j(b,K,!0,h,fe);return _e(b,K,O),O})}function I(E,V){const F=M(E,V);return F?Promise.reject(F):Promise.resolve()}function z(E){const V=ln.values().next().value;return V&&typeof V.runWithContext=="function"?V.runWithContext(E):E()}function G(E,V){let F;const[K,fe,d]=Rd(E,V);F=gr(K.reverse(),"beforeRouteLeave",E,V);for(const y of K)y.leaveGuards.forEach(b=>{F.push(Mt(b,E,V))});const h=I.bind(null,E,V);return F.push(h),Me(F).then(()=>{F=[];for(const y of o.list())F.push(Mt(y,E,V));return F.push(h),Me(F)}).then(()=>{F=gr(fe,"beforeRouteUpdate",E,V);for(const y of fe)y.updateGuards.forEach(b=>{F.push(Mt(b,E,V))});return F.push(h),Me(F)}).then(()=>{F=[];for(const y of d)if(y.beforeEnter)if(ct(y.beforeEnter))for(const b of y.beforeEnter)F.push(Mt(b,E,V));else F.push(Mt(y.beforeEnter,E,V));return F.push(h),Me(F)}).then(()=>(E.matched.forEach(y=>y.enterCallbacks={}),F=gr(d,"beforeRouteEnter",E,V),F.push(h),Me(F))).then(()=>{F=[];for(const y of i.list())F.push(Mt(y,E,V));return F.push(h),Me(F)}).catch(y=>Et(y,8)?y:Promise.reject(y))}function _e(E,V,F){l.list().forEach(K=>z(()=>K(E,V,F)))}function j(E,V,F,K,fe){const d=M(E,V);if(d)return d;const h=V===Lt,y=fn?history.state:{};F&&(K||h?r.replace(E.fullPath,pe({scroll:h&&y&&y.scroll},fe)):r.push(E.fullPath,fe)),a.value=E,dt(E,V,F,h),xt()}let ae;function Ne(){ae||(ae=r.listen((E,V,F)=>{if(!os.listening)return;const K=P(E),fe=ce(K);if(fe){Y(pe(fe,{replace:!0}),K).catch(Mn);return}c=K;const d=a.value;fn&&jf(bi(d.fullPath,F.delta),Js()),G(K,d).catch(h=>Et(h,12)?h:Et(h,2)?(Y(h.to,K).then(y=>{Et(y,20)&&!F.delta&&F.type===Jn.pop&&r.go(-1,!1)}).catch(Mn),Promise.reject()):(F.delta&&r.go(-F.delta,!1),ue(h,K,d))).then(h=>{h=h||j(K,d,!1),h&&(F.delta&&!Et(h,8)?r.go(-F.delta,!1):F.type===Jn.pop&&Et(h,20)&&r.go(-1,!1)),_e(K,d,h)}).catch(Mn)}))}let Ve=xn(),se=xn(),ye;function ue(E,V,F){xt(E);const K=se.list();return K.length?K.forEach(fe=>fe(E,V,F)):console.error(E),Promise.reject(E)}function St(){return ye&&a.value!==Lt?Promise.resolve():new Promise((E,V)=>{Ve.add([E,V])})}function xt(E){return ye||(ye=!E,Ne(),Ve.list().forEach(([V,F])=>E?F(E):V()),Ve.reset()),E}function dt(E,V,F,K){const{scrollBehavior:fe}=e;if(!fn||!fe)return Promise.resolve();const d=!F&&Hf(bi(E.fullPath,0))||(K||!F)&&history.state&&history.state.scroll||null;return oo().then(()=>fe(E,V,d)).then(h=>h&&Uf(h)).catch(h=>ue(h,E,V))}const He=E=>r.go(E);let on;const ln=new Set,os={currentRoute:a,listening:!0,addRoute:m,removeRoute:g,hasRoute:k,getRoutes:v,resolve:P,options:e,push:A,replace:D,go:He,back:()=>He(-1),forward:()=>He(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:se.add,isReady:St,install(E){const V=this;E.component("RouterLink",Ad),E.component("RouterView",aa),E.config.globalProperties.$router=V,Object.defineProperty(E.config.globalProperties,"$route",{enumerable:!0,get:()=>w(a)}),fn&&!on&&a.value===Lt&&(on=!0,A(r.location).catch(fe=>{}));const F={};for(const fe in Lt)Object.defineProperty(F,fe,{get:()=>a.value[fe],enumerable:!0});E.provide(Gs,V),E.provide(mo,pl(F)),E.provide(Vr,a);const K=E.unmount;ln.add(E),E.unmount=function(){ln.delete(E),ln.size<1&&(c=Lt,ae&&ae(),ae=null,a.value=Lt,on=!1,ye=!1),K()}}};function Me(E){return E.reduce((V,F)=>V.then(()=>z(F)),Promise.resolve())}return os}function Rd(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iyn(c,l))?s.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(c=>yn(c,a))||r.push(a))}return[n,s,r]}function ns(){return tt(Gs)}function Kt(){return tt(mo)}function ca(e,t){return function(){return e.apply(t,arguments)}}const{toString:kd}=Object.prototype,{getPrototypeOf:go}=Object,Qs=(e=>t=>{const n=kd.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),wt=e=>(e=e.toLowerCase(),t=>Qs(t)===e),Ys=e=>t=>typeof t===e,{isArray:$n}=Array,Gn=Ys("undefined");function Ld(e){return e!==null&&!Gn(e)&&e.constructor!==null&&!Gn(e.constructor)&&st(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ua=wt("ArrayBuffer");function Id(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ua(e.buffer),t}const Nd=Ys("string"),st=Ys("function"),fa=Ys("number"),Xs=e=>e!==null&&typeof e=="object",Fd=e=>e===!0||e===!1,_s=e=>{if(Qs(e)!=="object")return!1;const t=go(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Md=wt("Date"),Bd=wt("File"),Dd=wt("Blob"),Vd=wt("FileList"),Ud=e=>Xs(e)&&st(e.pipe),jd=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||st(e.append)&&((t=Qs(e))==="formdata"||t==="object"&&st(e.toString)&&e.toString()==="[object FormData]"))},Hd=wt("URLSearchParams"),qd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ss(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),$n(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const pa=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ha=e=>!Gn(e)&&e!==pa;function Ur(){const{caseless:e}=ha(this)&&this||{},t={},n=(s,r)=>{const o=e&&da(t,r)||r;_s(t[o])&&_s(s)?t[o]=Ur(t[o],s):_s(s)?t[o]=Ur({},s):$n(s)?t[o]=s.slice():t[o]=s};for(let s=0,r=arguments.length;s(ss(t,(r,o)=>{n&&st(r)?e[o]=ca(r,n):e[o]=r},{allOwnKeys:s}),e),zd=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Wd=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Jd=(e,t,n,s)=>{let r,o,i;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&go(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Gd=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},Qd=e=>{if(!e)return null;if($n(e))return e;let t=e.length;if(!fa(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Yd=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&go(Uint8Array)),Xd=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},Zd=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},ep=wt("HTMLFormElement"),tp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Li=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),np=wt("RegExp"),ma=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};ss(n,(r,o)=>{t(r,o,e)!==!1&&(s[o]=r)}),Object.defineProperties(e,s)},sp=e=>{ma(e,(t,n)=>{if(st(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(st(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},rp=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return $n(e)?s(e):s(String(e).split(t)),n},op=()=>{},ip=(e,t)=>(e=+e,Number.isFinite(e)?e:t),_r="abcdefghijklmnopqrstuvwxyz",Ii="0123456789",ga={DIGIT:Ii,ALPHA:_r,ALPHA_DIGIT:_r+_r.toUpperCase()+Ii},lp=(e=16,t=ga.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function ap(e){return!!(e&&st(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const cp=e=>{const t=new Array(10),n=(s,r)=>{if(Xs(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const o=$n(s)?[]:{};return ss(s,(i,l)=>{const a=n(i,r+1);!Gn(a)&&(o[l]=a)}),t[r]=void 0,o}}return s};return n(e,0)},up=wt("AsyncFunction"),fp=e=>e&&(Xs(e)||st(e))&&st(e.then)&&st(e.catch),S={isArray:$n,isArrayBuffer:ua,isBuffer:Ld,isFormData:jd,isArrayBufferView:Id,isString:Nd,isNumber:fa,isBoolean:Fd,isObject:Xs,isPlainObject:_s,isUndefined:Gn,isDate:Md,isFile:Bd,isBlob:Dd,isRegExp:np,isFunction:st,isStream:Ud,isURLSearchParams:Hd,isTypedArray:Yd,isFileList:Vd,forEach:ss,merge:Ur,extend:Kd,trim:qd,stripBOM:zd,inherits:Wd,toFlatObject:Jd,kindOf:Qs,kindOfTest:wt,endsWith:Gd,toArray:Qd,forEachEntry:Xd,matchAll:Zd,isHTMLForm:ep,hasOwnProperty:Li,hasOwnProp:Li,reduceDescriptors:ma,freezeMethods:sp,toObjectSet:rp,toCamelCase:tp,noop:op,toFiniteNumber:ip,findKey:da,global:pa,isContextDefined:ha,ALPHABET:ga,generateString:lp,isSpecCompliantForm:ap,toJSONObject:cp,isAsyncFn:up,isThenable:fp};function ie(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}S.inherits(ie,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _a=ie.prototype,ya={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ya[e]={value:e}});Object.defineProperties(ie,ya);Object.defineProperty(_a,"isAxiosError",{value:!0});ie.from=(e,t,n,s,r,o)=>{const i=Object.create(_a);return S.toFlatObject(e,i,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),ie.call(i,e.message,t,n,s,r),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const dp=null;function jr(e){return S.isPlainObject(e)||S.isArray(e)}function ba(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Ni(e,t,n){return e?e.concat(t).map(function(r,o){return r=ba(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function pp(e){return S.isArray(e)&&!e.some(jr)}const hp=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Zs(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,k){return!S.isUndefined(k[v])});const s=n.metaTokens,r=n.visitor||u,o=n.dots,i=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(r))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(S.isDate(g))return g.toISOString();if(!a&&S.isBlob(g))throw new ie("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(g)||S.isTypedArray(g)?a&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,v,k){let P=g;if(g&&!k&&typeof g=="object"){if(S.endsWith(v,"{}"))v=s?v:v.slice(0,-2),g=JSON.stringify(g);else if(S.isArray(g)&&pp(g)||(S.isFileList(g)||S.endsWith(v,"[]"))&&(P=S.toArray(g)))return v=ba(v),P.forEach(function(M,A){!(S.isUndefined(M)||M===null)&&t.append(i===!0?Ni([v],A,o):i===null?v:v+"[]",c(M))}),!1}return jr(g)?!0:(t.append(Ni(k,v,o),c(g)),!1)}const f=[],p=Object.assign(hp,{defaultVisitor:u,convertValue:c,isVisitable:jr});function m(g,v){if(!S.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(g),S.forEach(g,function(P,L){(!(S.isUndefined(P)||P===null)&&r.call(t,P,S.isString(L)?L.trim():L,v,p))===!0&&m(P,v?v.concat(L):[L])}),f.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Fi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function _o(e,t){this._pairs=[],e&&Zs(e,this,t)}const va=_o.prototype;va.append=function(t,n){this._pairs.push([t,n])};va.toString=function(t){const n=t?function(s){return t.call(this,s,Fi)}:Fi;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function mp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wa(e,t,n){if(!t)return e;const s=n&&n.encode||mp,r=n&&n.serialize;let o;if(r?o=r(t,n):o=S.isURLSearchParams(t)?t.toString():new _o(t,n).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class gp{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Mi=gp,Sa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_p=typeof URLSearchParams<"u"?URLSearchParams:_o,yp=typeof FormData<"u"?FormData:null,bp=typeof Blob<"u"?Blob:null,vp=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),wp=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),bt={isBrowser:!0,classes:{URLSearchParams:_p,FormData:yp,Blob:bp},isStandardBrowserEnv:vp,isStandardBrowserWebWorkerEnv:wp,protocols:["http","https","file","blob","url","data"]};function Sp(e,t){return Zs(e,new bt.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,o){return bt.isNode&&S.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Ep(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $p(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s=n.length;return i=!i&&S.isArray(r)?r.length:i,a?(S.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!l):((!r[i]||!S.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&S.isArray(r[i])&&(r[i]=$p(r[i])),!l)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(s,r)=>{t(Ep(s),r,n,0)}),n}return null}const Cp={"Content-Type":void 0};function Ap(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const er={transitional:Sa,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=S.isObject(t);if(o&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return r&&r?JSON.stringify(Ea(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Sp(t,this.formSerializer).toString();if((l=S.isFileList(t))||s.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Zs(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),Ap(t)):t}],transformResponse:[function(t){const n=this.transitional||er.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&S.isString(t)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?ie.from(l,ie.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bt.classes.FormData,Blob:bt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};S.forEach(["delete","get","head"],function(t){er.headers[t]={}});S.forEach(["post","put","patch"],function(t){er.headers[t]=S.merge(Cp)});const yo=er,Op=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Tp=e=>{const t={};let n,s,r;return e&&e.split(` +`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&Op[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Bi=Symbol("internals");function Pn(e){return e&&String(e).trim().toLowerCase()}function ys(e){return e===!1||e==null?e:S.isArray(e)?e.map(ys):String(e)}function xp(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Pp=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function yr(e,t,n,s,r){if(S.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!S.isString(t)){if(S.isString(s))return t.indexOf(s)!==-1;if(S.isRegExp(s))return s.test(t)}}function Rp(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function kp(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}class tr{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(l,a,c){const u=Pn(a);if(!u)throw new Error("header name must be a non-empty string");const f=S.findKey(r,u);(!f||r[f]===void 0||c===!0||c===void 0&&r[f]!==!1)&&(r[f||a]=ys(l))}const i=(l,a)=>S.forEach(l,(c,u)=>o(c,u,a));return S.isPlainObject(t)||t instanceof this.constructor?i(t,n):S.isString(t)&&(t=t.trim())&&!Pp(t)?i(Tp(t),n):t!=null&&o(n,t,s),this}get(t,n){if(t=Pn(t),t){const s=S.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return xp(r);if(S.isFunction(n))return n.call(this,r,s);if(S.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Pn(t),t){const s=S.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||yr(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=Pn(i),i){const l=S.findKey(s,i);l&&(!n||yr(s,s[l],l,n))&&(delete s[l],r=!0)}}return S.isArray(t)?t.forEach(o):o(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const o=n[s];(!t||yr(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const n=this,s={};return S.forEach(this,(r,o)=>{const i=S.findKey(s,o);if(i){n[i]=ys(r),delete n[o];return}const l=t?Rp(o):String(o).trim();l!==o&&delete n[o],n[l]=ys(r),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&S.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Bi]=this[Bi]={accessors:{}}).accessors,r=this.prototype;function o(i){const l=Pn(i);s[l]||(kp(r,i),s[l]=!0)}return S.isArray(t)?t.forEach(o):o(t),this}}tr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.freezeMethods(tr.prototype);S.freezeMethods(tr);const At=tr;function br(e,t){const n=this||yo,s=t||n,r=At.from(s.headers);let o=s.data;return S.forEach(e,function(l){o=l.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function $a(e){return!!(e&&e.__CANCEL__)}function rs(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(rs,ie,{__CANCEL__:!0});function Lp(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new ie("Request failed with status code "+n.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Ip=bt.isStandardBrowserEnv?function(){return{write:function(n,s,r,o,i,l){const a=[];a.push(n+"="+encodeURIComponent(s)),S.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),S.isString(o)&&a.push("path="+o),S.isString(i)&&a.push("domain="+i),l===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Np(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Fp(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Ca(e,t){return e&&!Np(t)?Fp(e,t):t}const Mp=bt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(i){const l=S.isString(i)?r(i):i;return l.protocol===s.protocol&&l.host===s.host}}():function(){return function(){return!0}}();function Bp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Dp(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),u=s[o];i||(i=c),n[r]=a,s[r]=c;let f=o,p=0;for(;f!==r;)p+=n[f++],f=f%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),c-i{const o=r.loaded,i=r.lengthComputable?r.total:void 0,l=o-n,a=s(l),c=o<=i;n=o;const u={loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:a||void 0,estimated:a&&i&&c?(i-o)/a:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}const Vp=typeof XMLHttpRequest<"u",Up=Vp&&function(e){return new Promise(function(n,s){let r=e.data;const o=At.from(e.headers).normalize(),i=e.responseType;let l;function a(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}S.isFormData(r)&&(bt.isStandardBrowserEnv||bt.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+g))}const u=Ca(e.baseURL,e.url);c.open(e.method.toUpperCase(),wa(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function f(){if(!c)return;const m=At.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:e,request:c};Lp(function(P){n(P),a()},function(P){s(P),a()},v),c=null}if("onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(s(new ie("Request aborted",ie.ECONNABORTED,e,c)),c=null)},c.onerror=function(){s(new ie("Network Error",ie.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||Sa;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),s(new ie(g,v.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,c)),c=null},bt.isStandardBrowserEnv){const m=(e.withCredentials||Mp(u))&&e.xsrfCookieName&&Ip.read(e.xsrfCookieName);m&&o.set(e.xsrfHeaderName,m)}r===void 0&&o.setContentType(null),"setRequestHeader"in c&&S.forEach(o.toJSON(),function(g,v){c.setRequestHeader(v,g)}),S.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Di(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Di(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=m=>{c&&(s(!m||m.type?new rs(null,e,c):m),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const p=Bp(u);if(p&&bt.protocols.indexOf(p)===-1){s(new ie("Unsupported protocol "+p+":",ie.ERR_BAD_REQUEST,e));return}c.send(r||null)})},bs={http:dp,xhr:Up};S.forEach(bs,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const jp={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let r=0;re instanceof At?e.toJSON():e;function vn(e,t){t=t||{};const n={};function s(c,u,f){return S.isPlainObject(c)&&S.isPlainObject(u)?S.merge.call({caseless:f},c,u):S.isPlainObject(u)?S.merge({},u):S.isArray(u)?u.slice():u}function r(c,u,f){if(S.isUndefined(u)){if(!S.isUndefined(c))return s(void 0,c,f)}else return s(c,u,f)}function o(c,u){if(!S.isUndefined(u))return s(void 0,u)}function i(c,u){if(S.isUndefined(u)){if(!S.isUndefined(c))return s(void 0,c)}else return s(void 0,u)}function l(c,u,f){if(f in t)return s(c,u);if(f in e)return s(void 0,c)}const a={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,u)=>r(Ui(c),Ui(u),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=a[u]||r,p=f(e[u],t[u],u);S.isUndefined(p)&&f!==l||(n[u]=p)}),n}const Aa="1.4.0",bo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bo[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const ji={};bo.transitional=function(t,n,s){function r(o,i){return"[Axios v"+Aa+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,l)=>{if(t===!1)throw new ie(r(i," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!ji[i]&&(ji[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function Hp(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const l=e[o],a=l===void 0||i(l,o,e);if(a!==!0)throw new ie("option "+o+" must be "+a,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+o,ie.ERR_BAD_OPTION)}}const Hr={assertOptions:Hp,validators:bo},It=Hr.validators;class Rs{constructor(t){this.defaults=t,this.interceptors={request:new Mi,response:new Mi}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=vn(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&Hr.assertOptions(s,{silentJSONParsing:It.transitional(It.boolean),forcedJSONParsing:It.transitional(It.boolean),clarifyTimeoutError:It.transitional(It.boolean)},!1),r!=null&&(S.isFunction(r)?n.paramsSerializer={serialize:r}:Hr.assertOptions(r,{encode:It.function,serialize:It.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&S.merge(o.common,o[n.method]),i&&S.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=At.concat(i,o);const l=[];let a=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(a=a&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let u,f=0,p;if(!a){const g=[Vi.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,c),p=g.length,u=Promise.resolve(n);f{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(l=>{s.subscribe(l),o=l}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new rs(o,i,l),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new vo(function(r){t=r}),cancel:t}}}const qp=vo;function Kp(e){return function(n){return e.apply(null,n)}}function zp(e){return S.isObject(e)&&e.isAxiosError===!0}const qr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qr).forEach(([e,t])=>{qr[t]=e});const Wp=qr;function Oa(e){const t=new vs(e),n=ca(vs.prototype.request,t);return S.extend(n,vs.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Oa(vn(e,r))},n}const Re=Oa(yo);Re.Axios=vs;Re.CanceledError=rs;Re.CancelToken=qp;Re.isCancel=$a;Re.VERSION=Aa;Re.toFormData=Zs;Re.AxiosError=ie;Re.Cancel=Re.CanceledError;Re.all=function(t){return Promise.all(t)};Re.spread=Kp;Re.isAxiosError=zp;Re.mergeConfig=vn;Re.AxiosHeaders=At;Re.formToJSON=e=>Ea(S.isHTMLForm(e)?new FormData(e):e);Re.HttpStatusCode=Wp;Re.default=Re;const Ta=Re,ws=new Map,Jp=e=>{const{method:t,url:n,params:s={},data:r={}}=e;return[t,n,JSON.stringify(s),JSON.stringify(r)].join("")},Qn=e=>{const t=Jp(e);if(ws.has(t)){const n=ws.get(t)||{};n==null||n.abort(),ws.delete(t)}return t},ut=Ws("app",()=>{const e=oe(null),t=oe(!1);function n(r){e.value=r,t.value=!1}function s(r){t.value=r,e.value=null}return{errorMessage:e,loading:t,setErrorMessage:n,setLoading:s}}),ft=Ws("articles",()=>{const e=ut(),t=We(),n=oe({}),s=oe([]),r=oe({}),o=oe(""),i=oe(null),l=oe([]),a=oe([]),c=oe(!1),u=oe(!1);function f(A){e.setLoading(!0),Qe.post("articles",A).then(D=>{D.data.status==="success"&&(e.setLoading(!1),this.router.replace(`/articles/${D.data.data[0].id}`))}).catch(D=>ke(D,"error on adding article"))}function p(A){Qe.delete(`articles/${A}`).then(D=>{D.status===204&&v({page:r.value.page.toString()},!1)}).catch(D=>ke(D,"error on article deletion"))}function m(){n.value={}}function g(A){Qe.get(`articles/${A}`).then(D=>{D.data.status==="success"&&(n.value=D.data.data[0],i.value=n.value.category.id)}).catch(D=>ke(D,"error on fetching article"))}function v(A,D){D&&e.setLoading(!0);let ce="articles";Object.keys(A).length>0&&(ce+="?",Object.keys(A).map(Y=>{ce+=`&${Y}=${A[Y]}`})),i.value=A.cat_id?+A.cat_id:null,l.value=A.tag_id?[+A.tag_id]:[],u.value="favorites"in A,c.value="not_read"in A,"q"in A||(o.value=""),Qe.get(ce).then(Y=>{if(Y.data.status==="success"){if(Y.data.pagination.pages>0&&Y.data.pagination.page>Y.data.pagination.pages)return this.router.replace(`/articles/page/${Y.data.pagination.pages}`);s.value=Y.data.data,r.value=Y.data.pagination}}).catch(Y=>ke(Y,"error on fetching articles")).finally(()=>e.setLoading(!1))}function k(A){e.setLoading(!0),Qe.patch(`articles/${A}`,{reload:!0}).then(D=>{D.data.status==="success"&&(n.value=D.data.data[0],e.setLoading(!1))}).catch(D=>ke(D,"error on article reload"))}function P(A,D,ce=!1){Qe.patch(`articles/${A}`,D).then(Y=>{Y.data.status==="success"&&(n.value=Y.data.data[0],ce&&t.getUserProfile())}).catch(Y=>ke(Y,"error on article update"))}function L(A){o.value=A}function M(){n.value={},i.value=null,a.value=[],l.value=[]}return{article:n,articles:s,onlyFavorites:u,onlyNotRead:c,pagination:r,query:o,selectedCategoryId:i,selectedTagsId:l,selectedTagsName:a,addArticle:f,deleteArticle:p,emptyArticle:m,getArticle:g,getArticles:v,reloadArticle:k,resetArticleStore:M,updateArticle:P,updateQuery:L}}),xa=()=>"/api",ke=(e,t="Error. Please try again or contact the administrator.")=>{if(e&&e.message==="canceled")return;const n=e!=null&&e.response&&e.response.data?e.response.data:null,s=ut(),{errorMessage:r}=ve(s);r.value=e?e.response?n!=null&&n.message?n.message:t:e.message?e.message:t:t},Pa=e=>e.charAt(0).toUpperCase()+e.slice(1),Ra=(e,t)=>{let n=e;return t.includes("singular")&&(n=e==="categories"?"category":"tag"),t.includes("capitalize")&&(n=Pa(n)),n},ka=(e=0)=>{const t=ft(),{selectedTagsId:n,onlyNotRead:s,onlyFavorites:r,query:o,pagination:i,selectedCategoryId:l}=ve(t),a=i.value.page>1||e!==0?{name:"Articles",params:{page:i.value.page+e}}:{name:"Home"},c={};return l.value&&(c.cat_id=l.value),o.value&&(c.q=o.value),r.value&&(c.favorites="true"),s.value&&(c.not_read="true"),n.value.length>0&&(c.tag_id=n.value[0]),a.query=c,a},Gp=e=>{const t=Intl.DateTimeFormat().resolvedOptions().timeZone;return new Date(e).toLocaleString("en-GB",{weekday:"long",month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:t})},Qe=Ta.create({baseURL:xa()});Qe.interceptors.request.use(e=>{const t=We(),{authToken:n}=ve(t);if(n.value){const s=`Bearer ${n.value}`;e.headers.Authorization!==s&&(e.headers.Authorization=s)}return e},e=>Promise.reject(e));Qe.interceptors.response.use(e=>(Qn(e.config),e),e=>(e.message!=="canceled"&&e.response&&Qn(e.response.config),Promise.reject(e)));const wo=Ta.create({baseURL:xa()});wo.interceptors.request.use(e=>{const t=new AbortController;e.signal=t.signal;const n=Qn(e);return ws.set(n,t),e},e=>Promise.reject(e));wo.interceptors.response.use(e=>(Qn(e.config),e),e=>(e.message!=="canceled"&&e.response&&Qn(e.response.config),Promise.reject(e)));const We=Ws("user",()=>{const e=oe(null),t=oe(null),n=$e(()=>t.value!==null),s=$e(()=>{var u;return((u=e.value)==null?void 0:u.categories)||[]}),r=$e(()=>{var u;return((u=e.value)==null?void 0:u.tags)||[]});async function o(){window.localStorage.authToken&&!t.value&&(t.value=window.localStorage.authToken,await i())}async function i(){Qe.get("auth/profile").then(u=>{u.data.status==="success"?e.value=u.data.user:ke(null)}).catch(u=>ke(u))}async function l(u,f,p){wo.post(`/auth/${f}`,u).then(m=>{if(m.data.status==="success"){const g=m.data.auth_token;window.localStorage.setItem("authToken",g),t.value=g,e.value=m.data.user,this.router.push(p||"/")}else ke(null)}).catch(m=>ke(m))}async function a(u){Qe.post("/auth/profile/edit",{old_password:u.oldPassword,new_password:u.newPassword,new_password_conf:u.confirmNewPassword}).then(f=>{f.data.status==="success"?this.router.push("/profile"):ke(null)}).catch(f=>ke(f))}function c(){localStorage.removeItem("authToken"),t.value=null,e.value=null,this.router.push("/login")}return{authToken:t,authUser:e,isAuthenticated:n,userCategories:s,userTags:r,checkUserAuth:o,getUserProfile:i,loginOrRegister:l,logout:c,updatePassword:a}}),So=e=>(Ye("data-v-9f2dd734"),e=e(),Xe(),e),Qp={id:"header"},Yp={class:"logo"},Xp=So(()=>_("small",null,'a simple "read-it later" app',-1)),Zp={key:0,class:"menu"},eh={key:1,class:"menu"},th={key:2,class:"user menu"},nh={key:3,class:"menu"},sh={key:4,class:"menu"},rh={key:5,class:"menu"},oh=So(()=>_("i",{class:"fa fa-plus","aria-hidden":"true",title:"add a new article"},null,-1)),ih=So(()=>_("i",{class:"fa fa-bars"},null,-1)),lh=[ih],ah=le({__name:"Header",setup(e){const t=We(),{authUser:n}=ve(t);function s(){let o=document.getElementById("responsive-navbar");o&&(o.className==="nav"?o.className+=" responsive":o.className="nav")}function r(){t.logout()}return(o,i)=>{const l=ts("router-link");return $(),x("header",Qp,[_("div",Yp,[U(l,{to:"/"},{default:Ke(()=>[xe(" rdltr "),Xp]),_:1})]),_("nav",{id:"responsive-navbar",class:"nav",onClick:s},[_("ul",null,[w(n)?Q("",!0):($(),x("li",Zp,[U(l,{to:"/register"},{default:Ke(()=>[xe("Register")]),_:1})])),w(n)?Q("",!0):($(),x("li",eh,[U(l,{to:"/login"},{default:Ke(()=>[xe("Log in")]),_:1})])),w(n)?($(),x("li",th,[U(l,{to:"/profile"},{default:Ke(()=>[xe(ee(w(n).username),1)]),_:1})])):Q("",!0),w(n)?($(),x("li",nh,[U(l,{to:"/settings"},{default:Ke(()=>[xe("Settings")]),_:1})])):Q("",!0),w(n)?($(),x("li",sh,[_("span",{onClick:r,class:"logout"},"Logout")])):Q("",!0),w(n)?($(),x("li",rh,[U(l,{to:"/articles/add"},{default:Ke(()=>[oh]),_:1})])):Q("",!0)])]),_("div",{onClick:s,id:"nav-icon"},lh)])}}});const Ie=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},ch=Ie(ah,[["__scopeId","data-v-9f2dd734"]]),uh=le({__name:"App",setup(e){return(t,n)=>($(),x(Ce,null,[U(ch),U(w(aa))],64))}});const fh={id:"category-select"},dh={key:0},ph={key:0,value:""},hh=["value"],Eo=le({__name:"CategorySelect",props:{displayLabel:{type:Boolean},categoryId:{}},emits:["selected"],setup(e,{emit:t}){const n=e,{displayLabel:s,categoryId:r=null}=Fe(n),o=ft(),i=We(),{userCategories:l}=ve(i),a=oe(r.value?+r.value:"");function c(u){o.$patch({selectedCategoryId:+u}),t("selected",u)}return(u,f)=>($(),x("div",fh,[w(s)?($(),x("label",dh," Category ")):Q("",!0),he(_("select",{class:"form-control",id:"categories","onUpdate:modelValue":f[0]||(f[0]=p=>a.value=p),onChange:f[1]||(f[1]=p=>c(a.value))},[w(s)?Q("",!0):($(),x("option",ph,"All categories")),($(!0),x(Ce,null,jt(w(l),p=>($(),x("option",{key:p.id,value:p.id},ee(p.name),9,hh))),128))],544),[[mf,a.value]])]))}});function wr(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function mh(e){return(...t)=>!e(...t)}function gh(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function La(e,t,n,s){return t?e.filter(r=>gh(s(r,n),t)).sort((r,o)=>s(r,n).length-s(o,n).length):e}function _h(e){return e.filter(t=>!t.$isLabel)}function Sr(e,t){return n=>n.reduce((s,r)=>r[e]&&r[e].length?(s.push({$groupLabel:r[t],$isLabel:!0}),s.concat(r[e])):s,[])}function yh(e,t,n,s,r){return o=>o.map(i=>{if(!i[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=La(i[n],e,t,r);return l.length?{[s]:i[s],[n]:l}:[]})}const Hi=(...e)=>t=>e.reduce((n,s)=>s(n),t);var bh={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return wr(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,t,this.label):La(n,t,this.label,this.customLabel):n=this.groupValues?Sr(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(mh(this.isSelected)):n,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:e}):n.unshift({isTag:!0,label:e})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,n){return Hi(yh(t,n,this.groupValues,this.groupLabel,this.customLabel),Sr(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return Hi(Sr(this.groupValues,this.groupLabel),_h)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(wr(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return wr(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const n=this.internalValue.filter(s=>t[this.groupValues].indexOf(s)===-1);this.$emit("update:modelValue",n)}else{let n=t[this.groupValues].filter(s=>!(this.isOptionDisabled(s)||this.isSelected(s)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const s=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",s)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))}}},vh={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const n=this.options.find(s=>s[this.groupLabel]===t.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},Ia={name:"vue-multiselect",mixins:[bh,vh],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const wh={ref:"tags",class:"multiselect__tags"},Sh={class:"multiselect__tags-wrap"},Eh={class:"multiselect__spinner"},$h={key:0},Ch={class:"multiselect__option"},Ah={class:"multiselect__option"},Oh=xe("No elements found. Consider changing the search query."),Th={class:"multiselect__option"},xh=xe("List is empty.");function Ph(e,t,n,s,r,o){return $(),Se("div",{tabindex:e.searchable?-1:n.tabindex,class:[{"multiselect--active":e.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":o.isAbove,"multiselect--has-options-group":o.hasOptionGroup},"multiselect"],onFocus:t[14]||(t[14]=i=>e.activate()),onBlur:t[15]||(t[15]=i=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=mt(de(i=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=mt(de(i=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=mt(de(i=>e.addPointerElement(i),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=mt(i=>e.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+e.id},[Ue(e.$slots,"caret",{toggle:e.toggle},()=>[U("div",{onMousedown:t[1]||(t[1]=de(i=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),Ue(e.$slots,"clear",{search:e.search}),U("div",wh,[Ue(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:o.visibleValues,isOpen:e.isOpen},()=>[he(U("div",Sh,[($(!0),Se(Ce,null,jt(o.visibleValues,(i,l)=>Ue(e.$slots,"tag",{option:i,search:e.search,remove:e.removeElement},()=>[($(),Se("span",{class:"multiselect__tag",key:l},[U("span",{textContent:ee(e.getOptionLabel(i))},null,8,["textContent"]),U("i",{tabindex:"1",onKeypress:mt(de(a=>e.removeElement(i),["prevent"]),["enter"]),onMousedown:de(a=>e.removeElement(i),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[yt,o.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>n.limit?Ue(e.$slots,"limit",{key:0},()=>[U("strong",{class:"multiselect__strong",textContent:ee(n.limitText(e.internalValue.length-n.limit))},null,8,["textContent"])]):Q("v-if",!0)]),U(xs,{name:"multiselect__loading"},{default:Ke(()=>[Ue(e.$slots,"loading",{},()=>[he(U("div",Eh,null,512),[[yt,n.loading]])])]),_:3}),e.searchable?($(),Se("input",{key:0,ref:"search",name:n.name,id:e.id,type:"text",autocomplete:"off",spellcheck:"false",placeholder:e.placeholder,style:o.inputStyle,value:e.search,disabled:n.disabled,tabindex:n.tabindex,onInput:t[2]||(t[2]=i=>e.updateSearch(i.target.value)),onFocus:t[3]||(t[3]=de(i=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=de(i=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=mt(i=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=mt(de(i=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=mt(de(i=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=mt(de(i=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=mt(de(i=>e.addPointerElement(i),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):Q("v-if",!0),o.isSingleLabelVisible?($(),Se("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=de((...i)=>e.toggle&&e.toggle(...i),["prevent"]))},[Ue(e.$slots,"singleLabel",{option:o.singleValue},()=>[xe(ee(e.currentOptionLabel),1)])],32)):Q("v-if",!0),o.isPlaceholderVisible?($(),Se("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=de((...i)=>e.toggle&&e.toggle(...i),["prevent"]))},[Ue(e.$slots,"placeholder",{},()=>[xe(ee(e.placeholder),1)])],32)):Q("v-if",!0)],512),U(xs,{name:"multiselect"},{default:Ke(()=>[he(U("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...i)=>e.activate&&e.activate(...i)),tabindex:"-1",onMousedown:t[13]||(t[13]=de(()=>{},["prevent"])),style:{maxHeight:e.optimizedHeight+"px"},ref:"list"},[U("ul",{class:"multiselect__content",style:o.contentStyle,role:"listbox",id:"listbox-"+e.id},[Ue(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?($(),Se("li",$h,[U("span",Ch,[Ue(e.$slots,"maxElements",{},()=>[xe("Maximum of "+ee(e.max)+" options selected. First remove a selected option to select another.",1)])])])):Q("v-if",!0),!e.max||e.internalValue.length($(),Se("li",{class:"multiselect__element",key:l,id:e.id+"-"+l,role:i&&(i.$isLabel||i.$isDisabled)?null:"option"},[i&&(i.$isLabel||i.$isDisabled)?Q("v-if",!0):($(),Se("span",{key:0,class:[e.optionHighlight(l,i),"multiselect__option"],onClick:de(a=>e.select(i),["stop"]),onMouseenter:de(a=>e.pointerSet(l),["self"]),"data-select":i&&i.isTag?e.tagPlaceholder:o.selectLabelText,"data-selected":o.selectedLabelText,"data-deselect":o.deselectLabelText},[Ue(e.$slots,"option",{option:i,search:e.search,index:l},()=>[U("span",null,ee(e.getOptionLabel(i)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),i&&(i.$isLabel||i.$isDisabled)?($(),Se("span",{key:1,"data-select":e.groupSelect&&o.selectGroupLabelText,"data-deselect":e.groupSelect&&o.deselectGroupLabelText,class:[e.groupHighlight(l,i),"multiselect__option"],onMouseenter:de(a=>e.groupSelect&&e.pointerSet(l),["self"]),onMousedown:de(a=>e.selectGroup(i),["prevent"])},[Ue(e.$slots,"option",{option:i,search:e.search,index:l},()=>[U("span",null,ee(e.getOptionLabel(i)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):Q("v-if",!0)],8,["id","role"]))),128)):Q("v-if",!0),he(U("li",null,[U("span",Ah,[Ue(e.$slots,"noResult",{search:e.search},()=>[Oh])])],512),[[yt,n.showNoResults&&e.filteredOptions.length===0&&e.search&&!n.loading]]),he(U("li",null,[U("span",Th,[Ue(e.$slots,"noOptions",{},()=>[xh])])],512),[[yt,n.showNoOptions&&(e.options.length===0||o.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!n.loading]]),Ue(e.$slots,"afterList")],12,["id"])],36),[[yt,e.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}Ia.render=Ph;const Rh={class:"tag-input"},kh={key:0},Lh=le({__name:"TagMultiSelect",props:{displayLabel:{type:Boolean}},setup(e){const t=e,{displayLabel:n}=Fe(t),s=ft(),{article:r}=ve(s),o=We(),{userTags:i}=ve(o),l=oe([]),a=oe([...i.value]);function c(f){const p={name:f,id:0,nb_articles:0,user_id:0};a.value.push(p),l.value.push(p),s.$patch({selectedTagsName:l.value.map(m=>m.name)})}function u(f){s.$patch({selectedTagsName:f.map(p=>p.name)})}return rn(()=>{r.value&&r.value.tags&&(l.value=r.value.tags,s.$patch({selectedTagsName:r.value.tags.map(f=>f.name)}))}),js(()=>s.$patch({selectedTagsName:[]})),(f,p)=>($(),x("div",Rh,[w(n)?($(),x("label",kh,"Tags")):Q("",!0),U(w(Ia),{placeholder:"Search or add a tag",modelValue:l.value,"onUpdate:modelValue":[p[0]||(p[0]=m=>l.value=m),u],multiple:!0,options:a.value,taggable:!0,label:"name","track-by":"name",onTag:c},null,8,["modelValue","options"])]))}});const Na=Ie(Lh,[["__scopeId","data-v-51f1ada9"]]),nr=e=>(Ye("data-v-2ec2227c"),e=e(),Xe(),e),Ih={class:"rdltr-box"},Nh=nr(()=>_("div",{class:"title"},"Add an article",-1)),Fh=nr(()=>_("hr",null,null,-1)),Mh={key:0,class:"alert alert-danger"},Bh={class:"input"},Dh=nr(()=>_("label",{for:"link"},"Link",-1)),Vh={class:"submit add-article-submit"},Uh=["disabled"],jh={key:1,class:"text-center"},Hh=nr(()=>_("i",{class:"fa fa-spinner fa-pulse fa-3x fa-fw"},null,-1)),qh=[Hh],Kh=le({__name:"AddArticle",setup(e){const t=ut(),{errorMessage:n,loading:s}=ve(t),r=ft(),{selectedCategoryId:o,selectedTagsName:i}=ve(r),l=oe("");function a(){const c={url:l.value,category_id:o.value,tags:i.value};r.addArticle(c)}return rn(()=>r.$patch({selectedTagsName:[]})),js(()=>{t.setErrorMessage(null),r.resetArticleStore()}),(c,u)=>($(),x("div",Ih,[Nh,Fh,w(n)?($(),x("p",Mh,ee(w(n)),1)):Q("",!0),_("form",{onSubmit:u[1]||(u[1]=de(f=>a(),["prevent"]))},[_("div",Bh,[Dh,he(_("input",{id:"link",required:"","onUpdate:modelValue":u[0]||(u[0]=f=>l.value=f)},null,512),[[Be,l.value]])]),U(Eo,{"display-label":!0}),U(Na,{"display-label":!0}),_("div",Vh,[_("button",{type:"submit",disabled:w(s)},"Submit",8,Uh)])],32),w(s)?($(),x("div",jh,qh)):Q("",!0)]))}});const zh=Ie(Kh,[["__scopeId","data-v-2ec2227c"]]),Wh={id:"add-article",class:"contnr"},Jh=le({__name:"AddArticleView",setup(e){return(t,n)=>($(),x("div",Wh,[U(zh)]))}}),Gh=e=>(Ye("data-v-3dabc0a6"),e=e(),Xe(),e),Qh={class:"input"},Yh=Gh(()=>_("label",{for:"description"},"Comments",-1)),Xh=["disabled"],Zh={key:1,id:"comments"},em={key:0,class:"submit"},tm=["onClick"],nm={key:1},sm=le({__name:"ArticleComments",props:{articleComments:{}},setup(e){const t=e,{articleComments:n}=Fe(t),s=ft(),r=Kt(),o=oe(""),i=oe(!1);function l(){s.updateArticle(+r.params.id,{comments:o.value?o.value:null},!0),i.value=!1}return rn(()=>o.value=n.value||""),(a,c)=>($(),x("form",null,[_("div",Qh,[Yh,i.value?he(($(),x("textarea",{key:0,id:"description","onUpdate:modelValue":c[0]||(c[0]=u=>o.value=u),disabled:!i.value},` + `,8,Xh)),[[Be,o.value]]):($(),x("p",Zh,ee(o.value?o.value:"No comments yet"),1))]),i.value?($(),x("div",em,[_("button",{class:"btn-rdltr",type:"submit",onClick:de(l,["prevent"])}," Submit ",8,tm),_("button",{class:"btn-rdltr",type:"submit",onClick:c[1]||(c[1]=de(u=>i.value=!i.value,["prevent"]))}," Cancel ")])):($(),x("div",nm,[_("button",{class:"btn-rdltr",type:"submit",onClick:c[2]||(c[2]=de(u=>i.value=!i.value,["prevent"]))}," Edit comments ")]))]))}});const rm=Ie(sm,[["__scopeId","data-v-3dabc0a6"]]),om={class:"article-content",id:"article-content"},im=le({__name:"ArticleContentDisplay",props:{articleContent:{}},setup(e){const t=e,{articleContent:n}=Fe(t);function s(){const r=document.getElementById("article-content");r&&(r.innerHTML=n.value)}return tn(()=>n,async()=>{s()}),Us(()=>s()),(r,o)=>($(),x("div",om))}});const lm=Ie(im,[["__scopeId","data-v-71e4eaa2"]]),am={key:1},cm=le({__name:"CustomBagde",props:{name:{},isTag:{type:Boolean},tagId:{}},setup(e){const t=e,{name:n,isTag:s,tagId:r}=Fe(t),o=Kt();function i(l){if(o.fullPath.match(/\/articles\/\d+/g)||o.fullPath==="/")return`/?tag_id=${l}`;const a=o.fullPath.replace(/articles\/page\/\d+/g,"");return a.includes("tag_id")?a.replace(/tag_id=\d+/g,`tag_id=${l}`):`${a}${a==="/"?"?":"&"}tag_id=${l}`}return(l,a)=>{const c=ts("router-link");return $(),x("span",{class:it(`badge badge-rdltr${w(s)?"-tag":""}`)},[w(s)&&w(r)?($(),Se(c,{key:0,to:i(w(r))},{default:Ke(()=>[xe(ee(w(n)),1)]),_:1},8,["to"])):($(),x("span",am,ee(w(n)),1))],2)}}});const Yn=Ie(cm,[["__scopeId","data-v-51e6a755"]]),um={class:"modal-mask"},fm={class:"modal-wrapper"},dm={class:"modal-container"},pm={class:"modal-body"},hm=le({__name:"DeleteConfirmationModal",props:{title:{}},setup(e){const t=e,{title:n}=Fe(t);return(s,r)=>($(),x("div",um,[_("div",fm,[_("div",dm,[_("div",pm,[_("p",null," Are you sure you want to delete "+ee(w(n)?` the article '${w(n)}'`:" this article")+"? ",1),_("button",{class:"btn-rdltr",onClick:r[0]||(r[0]=o=>s.$emit("delete"))},"OK"),_("button",{class:"btn-rdltr",onClick:r[1]||(r[1]=o=>s.$emit("close"))},"Cancel")])])])]))}});const Fa=Ie(hm,[["__scopeId","data-v-e5490a4b"]]),sr=e=>(Ye("data-v-40a66bdc"),e=e(),Xe(),e),mm={class:"container",id:"article-detail"},gm={key:1,class:"alert alert-danger"},_m={key:2},ym={key:0,id:"category-update"},bm={class:"submit"},vm=["disabled"],wm={key:1},Sm=["title"],Em=["title"],$m={key:2,id:"tag-update"},Cm={class:"submit"},Am={key:3},Om={class:"no-tags"},Tm={class:"article-data"},xm=sr(()=>_("i",{class:"fa fa-calendar-plus-o","aria-hidden":"true"},null,-1)),Pm=sr(()=>_("br",null,null,-1)),Rm=sr(()=>_("i",{class:"fa fa-link","aria-hidden":"true"},null,-1)),km=["href"],Lm=["onClick"],Im=sr(()=>_("hr",null,null,-1)),Nm=le({__name:"ArticleDisplay",setup(e){const t=Kt(),n=ns(),s=ut(),{errorMessage:r,loading:o}=ve(s),i=ft(),{article:l,selectedCategoryId:a,selectedTagsName:c}=ve(i),u=oe(!1),f=oe(!1),p=oe(!1),m=$e(()=>Gp(l.value.date_added));function g(){o.value||(i.deleteArticle(l.value.id),n.push("/"))}function v(){return window.history.length>1?n.go(-1):n.push("/")}function k(){i.reloadArticle(l.value.id)}function P(){a.value!==null&&i.updateArticle(+t.params.id,{category_id:+a.value}),u.value=!1}function L(){i.updateArticle(+t.params.id,{tags:c.value},!0),f.value=!1}function M(){i.updateArticle(l.value.id,{update_favorite:!l.value.favorite})}function A(){i.updateArticle(l.value.id,{update_read_status:!l.value.read})}function D(Y){i.updateArticle(l.value.id,{category_id:Y},!0),u.value=!u.value}function ce(){const Y=l.value.tags.map(I=>I.name);i.$patch({selectedTagsName:Y}),f.value=!f.value}return rn(()=>{i.getArticle(+t.params.id)}),lo(()=>{i.resetArticleStore()}),(Y,I)=>{const z=ts("router-link");return $(),x("div",mm,[p.value?($(),Se(Fa,{key:0,onDelete:g,onClose:I[0]||(I[0]=G=>p.value=!1)})):Q("",!0),_("button",{class:"btn-rdltr",type:"submit",onClick:v},"Back"),w(r)?($(),x("p",gm,ee(w(r)),1)):Q("",!0),w(l).title?($(),x("div",_m,[u.value?($(),x("div",ym,[U(Eo,{displayLabel:!1,categoryId:w(l).category.id,onSelected:D},null,8,["categoryId"]),_("div",bm,[_("button",{class:"btn-rdltr",type:"submit",disabled:!w(a),onClick:P}," Update ",8,vm),_("button",{class:"btn-rdltr",onClick:I[1]||(I[1]=G=>u.value=!u.value)}," Cancel ")])])):($(),x("div",wm,[w(l).category?($(),Se(z,{key:0,to:`/?cat_id=${w(l).category.id}`},{default:Ke(()=>[U(Yn,{name:w(l).category.name},null,8,["name"])]),_:1},8,["to"])):Q("",!0),_("i",{"aria-hidden":"true",class:"fa fa-pencil link",title:"edit category",onClick:I[2]||(I[2]=G=>u.value=!u.value)}),_("i",{"aria-hidden":"true",class:it(`fa fa-eye${w(l).read?"-slash":""}`),title:`mark as ${w(l).read?"not ":""}read`,onClick:A},null,10,Sm),_("i",{"aria-hidden":"true",class:it(`fa fa-star${w(l).favorite?"":"-o"}`),title:`${w(l).favorite?"un":""} favorite article`,onClick:M},null,10,Em),_("i",{"aria-hidden":"true",title:"reload article",class:it(`fa fa-refresh${w(o)?" fa-spin":""}`),onClick:k},null,2),_("i",{"aria-hidden":"true",title:"delete article",class:it(`fa fa-trash${w(o)?" fa-disabled":""}`),onClick:I[3]||(I[3]=G=>p.value=!0)},null,2)])),_("h1",null,ee(w(l).title),1),f.value?($(),x("div",$m,[U(Na,{"display-label":!1}),_("div",Cm,[_("button",{class:"btn-rdltr",type:"submit",onClick:L}," Update "),_("button",{class:"btn-rdltr",onClick:I[4]||(I[4]=G=>f.value=!f.value)}," Cancel ")])])):($(),x("div",Am,[($(!0),x(Ce,null,jt(w(l).tags,G=>($(),Se(Yn,{"display-label":!1,tag_id:G.id,"is-tag":!0,key:G.id,name:G.name},null,8,["tag_id","name"]))),128)),he(_("span",Om," no tags ",512),[[yt,w(l).tags&&w(l).tags.length===0]]),_("i",{"aria-hidden":"true",class:"fa fa-pencil link",title:"edit tags",onClick:ce})])),_("p",Tm,[xm,xe(" "+ee(m.value)+" ",1),Pm,Rm,_("a",{href:w(l).url,target:"_blank ",rel:"noopener noreferrer"},ee(w(l).url),9,km)]),w(l).html_content?($(),Se(lm,{key:4,"article-content":w(l).html_content},null,8,["article-content"])):Q("",!0),_("button",{class:"btn-rdltr",type:"submit",onClick:I[5]||(I[5]=G=>Y.$router.go(-1))}," Back "),_("button",{class:"btn-rdltr",type:"submit",onClick:de(A,["prevent"])},ee(`Mark as ${w(l).read?"not ":""}read`),9,Lm),Im,U(rm,{"article-comments":w(l).comments},null,8,["article-comments"])])):Q("",!0)])}}});const Fm=Ie(Nm,[["__scopeId","data-v-40a66bdc"]]),Mm=le({__name:"ArticleView",setup(e){return(t,n)=>($(),Se(Fm))}}),Bm={id:"add-article",class:"contnr"},Dm={class:"rdltr-box"},Vm=_("div",{class:"title"},"Adding shared article",-1),Um=_("hr",null,null,-1),jm={key:0,class:"alert alert-danger"},Hm={key:1,class:"text-center"},qm=_("i",{class:"fa fa-spinner fa-pulse fa-3x fa-fw"},null,-1),Km=[qm],zm=le({__name:"Bookmarklet",setup(e){const t=Kt(),n=ut(),{errorMessage:s,loading:r}=ve(n),o=We(),{isAuthenticated:i}=ve(o),l=ft();return Us(()=>{i.value&&(t.query.url?l.addArticle({url:`${t.query.url}`}):n.setErrorMessage("Error: no URL provided."))}),(a,c)=>($(),x("div",Bm,[_("div",Dm,[Vm,Um,w(s)?($(),x("p",jm,ee(w(s)),1)):Q("",!0),w(r)?($(),x("div",Hm,Km)):Q("",!0)])]))}}),Wm=le({__name:"BookmarkletView",setup(e){return(t,n)=>($(),Se(zm))}}),Ma=e=>(Ye("data-v-d05fc22a"),e=e(),Xe(),e),Jm={class:"col-sm-6 col-md-4 col-lg-3"},Gm={class:"card-body"},Qm=Ma(()=>_("span",{"aria-hidden":"true"},"×",-1)),Ym=[Qm],Xm={class:"card-title"},Zm={key:0,class:"fa fa-star"},eg=Ma(()=>_("p",{class:"card-text"},null,-1)),tg={class:"card-footer"},ng=le({__name:"ArticleCard",props:{article:{}},setup(e){const t=e,{article:n}=Fe(t),s=ft(),r=oe(!1);function o(){s.deleteArticle(n.value.id)}return(i,l)=>($(),x("div",Jm,[r.value?($(),Se(Fa,{key:0,title:w(n).title,onDelete:o,onClose:l[0]||(l[0]=a=>r.value=!1)},null,8,["title"])):Q("",!0),_("div",{class:it(["card",`status${w(n).read?"-read":""}`])},[_("div",Gm,[_("button",{"aria-label":"Close",class:"close",title:"delete article",type:"button",onClick:l[1]||(l[1]=a=>r.value=!0)},Ym),U(Yn,{name:w(n).category.name},null,8,["name"]),_("h5",Xm,[xe(ee(w(n).title)+" ",1),w(n).favorite?($(),x("i",Zm)):Q("",!0)]),($(!0),x(Ce,null,jt(w(n).tags,a=>($(),Se(Yn,{tagId:a.id,isTag:!0,key:a.id,name:a.name},null,8,["tagId","name"]))),128)),eg]),_("div",tg,[_("button",{class:"btn-rdltr",onClick:l[2]||(l[2]=a=>i.$router.push({name:"ArticleDetail",params:{id:w(n).id}}))}," Read ")])],2)]))}});const sg=Ie(ng,[["__scopeId","data-v-d05fc22a"]]),rg=le({__name:"ClearFilter",setup(e){const t=Kt();function n(){return t.fullPath!=="/"&&!t.fullPath.match(/articles\/page\/\d+$/g)}return(s,r)=>n()?($(),x("button",{key:0,class:"clear-filter",onClick:r[0]||(r[0]=o=>s.$router.push("/"))}," × clear all filters ")):Q("",!0)}});const qi=Ie(rg,[["__scopeId","data-v-5d841bb7"]]),og=e=>(Ye("data-v-2caae6d5"),e=e(),Xe(),e),ig={id:"user-articles"},lg={key:0,class:"alert alert-danger"},ag={key:1},cg={key:0,class:"text-center"},ug=og(()=>_("i",{class:"fa fa-spinner fa-pulse fa-3x fa-fw"},null,-1)),fg=[ug],dg={key:1},pg={key:0,class:"row articles-msg"},hg={key:0,class:"display-tag"},mg={class:"row"},gg={key:0,class:"text-center articles-msg"},_g=le({__name:"ArticlesGrid",setup(e){const t=ut(),{errorMessage:n,loading:s}=ve(t),r=ft(),{articles:o,pagination:i}=ve(r),l=We(),{userTags:a}=ve(l),c=Kt(),u=$e(()=>f());function f(){if(c.query.tag_id&&a.value){const m=+c.query.tag_id,g=a.value.filter(v=>v.id===m);if(g.length>0)return g[0]}return null}function p(m=!1){const g=Object.assign({},c.query);r.getArticles(g,m)}return tn(()=>c.query,async()=>{p()}),rn(()=>p(!0)),(m,g)=>{const v=ts("router-link");return $(),x("div",ig,[w(n)?($(),x("p",lg,ee(w(n)),1)):($(),x("div",ag,[w(s)?($(),x("div",cg,fg)):($(),x("div",dg,[w(i).total>0?($(),x("div",pg,[_("div",null,ee(w(i).total)+" "+ee(`article${w(i).total!==1?"s":""}`),1),u.value?($(),x("div",hg,[U(Yn,{tagId:u.value.id,isTag:!0,name:u.value.name},null,8,["tagId","name"])])):Q("",!0),U(qi)])):Q("",!0),_("div",mg,[w(o).length===0?($(),x("p",gg,[xe(" No articles. Add "),U(v,{to:"/articles/add"},{default:Ke(()=>[xe("one")]),_:1}),xe(" ! "),U(qi)])):Q("",!0),($(!0),x(Ce,null,jt(w(o),k=>($(),Se(sg,{key:k.id,article:k},null,8,["article"]))),128))])]))]))])}}});const yg=Ie(_g,[["__scopeId","data-v-2caae6d5"]]),$o=e=>(Ye("data-v-848ee75e"),e=e(),Xe(),e),bg={class:"row"},vg={class:"col"},wg={id:"user-categories",class:"row"},Sg={class:"col-md-3"},Eg={class:"col search"},$g={class:"input-group"},Cg=$o(()=>_("div",{class:"input-group-prepend"},[_("span",{class:"input-group-text",id:""},"Search")],-1)),Ag={class:"col-md-2 form-check read-status"},Og=$o(()=>_("label",{class:"form-check-label",for:"readStatus"}," only not read ",-1)),Tg={class:"col-md-2 form-check favorite"},xg=$o(()=>_("label",{class:"form-check-label",for:"favorites"}," only favorites ",-1)),Pg=le({__name:"FilterBar",setup(e){const t=ft(),n=ns(),s=oe(""),r=oe(!1),o=oe(!1);function i(){t.$patch({onlyFavorites:o.value,onlyNotRead:r.value,query:s.value}),n.push(ka())}return(l,a)=>($(),x("div",bg,[_("div",vg,[_("div",wg,[_("div",Sg,[U(Eo,{filter:!0,displayLabel:!1,onSelected:i})]),_("div",Eg,[_("div",$g,[Cg,he(_("input",{class:"form-control",placeholder:"enter keywords","onUpdate:modelValue":a[0]||(a[0]=c=>s.value=c),onInput:i},null,544),[[Be,s.value]])])]),_("div",Ag,[he(_("input",{class:"form-check-input",id:"readStatus",type:"checkbox","onUpdate:modelValue":a[1]||(a[1]=c=>r.value=c),onChange:i},null,544),[[di,r.value]]),Og]),_("div",Tg,[he(_("input",{class:"form-check-input",id:"favorites",type:"checkbox","onUpdate:modelValue":a[2]||(a[2]=c=>o.value=c),onChange:i},null,544),[[di,o.value]]),xg])])])]))}});const Rg=Ie(Pg,[["__scopeId","data-v-848ee75e"]]),rr=e=>(Ye("data-v-9700d7c5"),e=e(),Xe(),e),kg={id:"pagination",class:"row"},Lg={class:"col-md-2 col-sm text-center"},Ig=rr(()=>_("i",{class:"fa fa-angle-double-left","aria-hidden":"true"},null,-1)),Ng=[Ig],Fg=rr(()=>_("i",{class:"fa fa-angle-left","aria-hidden":"true"},null,-1)),Mg=[Fg],Bg={key:0,class:"col-md-8 col-sm text-center page"},Dg={class:"col-md-2 col-sm text-center"},Vg=rr(()=>_("i",{class:"fa fa-angle-right","aria-hidden":"true"},null,-1)),Ug=[Vg],jg=rr(()=>_("i",{class:"fa fa-angle-double-right","aria-hidden":"true"},null,-1)),Hg=[jg],qg=le({__name:"Pagination",setup(e){const t=ft(),{pagination:n}=ve(t),s=ns();function r(){return n.value.page>2&&n.value.pages>2}function o(){return n.value.pages-2>=n.value.page}function i(l){s.push(ka(l))}return(l,a)=>($(),x("div",kg,[_("div",Lg,[he(_("button",{class:"btn-rdltr",type:"submit",onClick:a[0]||(a[0]=c=>i(1-w(n).page))},Ng,512),[[yt,r()]]),he(_("button",{class:"btn-rdltr",type:"submit",onClick:a[1]||(a[1]=c=>i(-1))},Mg,512),[[yt,w(n).has_prev]])]),w(n).pages>0?($(),x("div",Bg," page "+ee(w(n).page)+" / "+ee(w(n).pages),1)):Q("",!0),_("div",Dg,[he(_("button",{class:"btn-rdltr",type:"submit",onClick:a[2]||(a[2]=c=>i(1))},Ug,512),[[yt,w(n).has_next]]),he(_("button",{class:"btn-rdltr",type:"submit",onClick:a[3]||(a[3]=c=>i(w(n).pages-w(n).page))},Hg,512),[[yt,o()]])])]))}});const Kg=Ie(qg,[["__scopeId","data-v-9700d7c5"]]),zg=e=>(Ye("data-v-799a7f97"),e=e(),Xe(),e),Wg={id:"home",class:"container-fluid"},Jg=zg(()=>_("hr",null,null,-1)),Gg=le({__name:"HomeView",setup(e){return(t,n)=>($(),x("main",null,[_("div",Wg,[U(Rg),Jg,U(yg),U(Kg,{class:"footer"})])]))}});const Ki=Ie(Gg,[["__scopeId","data-v-799a7f97"]]),Ba=Ws("items",()=>{const e=We();async function t(r){Qe.post(r.type,{name:r.name,description:r.description}).then(o=>{o.data.status==="success"?e.getUserProfile():ke(null)}).catch(o=>ke(o,"error on category creation"))}async function n(r){Qe.patch(`${r.type}/${r.id}`,{name:r.name,description:r.description}).then(o=>{o.data.status==="success"?e.getUserProfile():ke(null)}).catch(o=>ke(o,"error on category update"))}async function s(r,o){Qe.delete(`${o}/${r}`).then(i=>{i.status===204?e.getUserProfile():ke(null)}).catch(i=>ke(i,"error on category deletion"))}return{addItem:t,deleteItem:s,updateItem:n}}),Qg={class:"rdltr-box"},Yg={key:0,class:"alert alert-danger"},Xg={class:"input"},Zg={for:"name"},e_={key:0,class:"input"},t_=_("label",{for:"description"},"Description",-1),n_={class:"submit"},s_=["disabled"],r_=le({__name:"Item",props:{itemType:{},items:{}},setup(e){const t=e,{itemType:n,items:s}=Fe(t),r=Ba(),o=ut(),{errorMessage:i}=ve(o),l=Kt(),a=ns(),c=qt({id:null,type:n.value,name:"",description:""});function u(){if(l.params.id&&s.value){const p=+l.params.id,m=s.value.filter(g=>g.id===p);if(m.length>0){const g=m[0];c.id=g.id,c.name=g.name,c.description="description"in g.description&&g.description?g.description:""}else o.setErrorMessage(`${Ra(n.value,["singular"])} not found!`)}}function f(){l.params.id?r.updateItem(c):r.addItem(c),a.push(`/settings/${c.type}`)}return rn(()=>u()),(p,m)=>($(),x("div",Qg,[w(i)?($(),x("p",Yg,ee(w(i)),1)):Q("",!0),_("form",null,[_("div",Xg,[_("label",Zg,ee(`${w(n)==="categories"?"Category":"Tag"} name`),1),he(_("input",{id:"name",required:"","onUpdate:modelValue":m[0]||(m[0]=g=>c.name=g)},null,512),[[Be,c.name]])]),w(n)==="categories"?($(),x("div",e_,[t_,he(_("textarea",{id:"description","onUpdate:modelValue":m[1]||(m[1]=g=>c.description=g)},null,512),[[Be,c.description]])])):Q("",!0),_("div",n_,[_("button",{disabled:c.name==="",class:"btn-rdltr",type:"submit",onClick:m[2]||(m[2]=de(g=>f(),["prevent"]))}," Submit ",8,s_),_("button",{class:"btn-rdltr",type:"submit",onClick:m[3]||(m[3]=de(g=>p.$router.push(`/settings/${w(n)}`),["prevent"]))}," Cancel ")])])]))}}),o_={class:"contnr"},ds=le({__name:"ItemView",props:{itemType:{}},setup(e){const t=e,{itemType:n}=Fe(t),s=We(),{authUser:r}=ve(s),o=$e(()=>r.value?r.value[n.value]:[]);return(i,l)=>($(),x("div",o_,[U(r_,{"item-type":w(n),items:o.value},null,8,["item-type","items"])]))}}),Da=e=>(Ye("data-v-f70b17b4"),e=e(),Xe(),e),i_={class:"table-responsive"},l_={class:"table"},a_=["onClick"],c_=Da(()=>_("th",{scope:"col"},"Actions",-1)),u_={key:0,class:"badge badge-rdltr-small"},f_={key:0},d_=Da(()=>_("i",{"aria-hidden":"true",class:"fa fa-pencil"},null,-1)),p_=["onClick"],h_=le({__name:"ItemsTable",props:{items:{},columns:{},searchQuery:{},itemType:{}},setup(e){const t=e,{items:n,columns:s,searchQuery:r,itemType:o}=Fe(t),i=Ba(),l=oe("id"),a=oe({id:1,type:1,name:1,description:1,nb_articles:1}),c=$e(()=>Ra(o.value,["singular","capitalize"])),u=$e(()=>m(n.value,r.value));function f(k){return Pa(k).replace("_"," ")}function p(k,P,L){return P in k&&k[P].toLowerCase().indexOf(L.toLowerCase())>-1}function m(k,P){let L=[...k];P&&(L=L.filter(A=>p(A,"name",P)||p(A,"description",P)));const M=a.value[l.value]||1;return L=L.slice().sort(function(A,D){return l.value in A&&l.value in D&&(A=A[l.value],D=D[l.value]),(A===D?0:A>D?1:-1)*M}),L}function g(k){i.deleteItem(k,o.value)}function v(k){l.value=k,a.value[k]=a.value[k]*-1}return(k,P)=>{const L=ts("router-link");return $(),x("div",i_,[_("table",l_,[_("thead",null,[_("tr",null,[($(!0),x(Ce,null,jt(w(s),M=>($(),x("th",{scope:"col",class:it({active:l.value===M}),key:M,onClick:A=>v(M)},[xe(ee(f(M))+" ",1),_("span",{class:it(["arrow",a.value[M]>0?"asc":"dsc"])},null,2)],10,a_))),128)),c_])]),_("tbody",null,[($(!0),x(Ce,null,jt(u.value,M=>($(),x("tr",{key:M.id},[_("td",null,[_("span",null,ee(M.id),1)]),_("td",null,[U(L,{to:`/?${w(o)==="categories"?"cat":"tag"}_id=${M.id}`},{default:Ke(()=>[xe(ee(M.name),1)]),_:2},1032,["to"]),"is_default"in M&&M.is_default?($(),x("span",u_," default ")):Q("",!0)]),"description"in M?($(),x("td",f_,[_("span",null,ee(M.description),1)])):Q("",!0),_("td",null,[_("span",null,ee(M.nb_articles),1)]),_("td",null,[U(L,{class:"link",to:{name:`Edit${c.value}`,params:{id:M.id}}},{default:Ke(()=>[d_]),_:2},1032,["to"]),"is_default"in M&&M.is_default?Q("",!0):($(),x("i",{key:0,"aria-hidden":"true",class:"fa fa-trash link",onClick:A=>g(M.id)},null,8,p_))])]))),128))])])])}}});const m_=Ie(h_,[["__scopeId","data-v-f70b17b4"]]),g_=e=>(Ye("data-v-d6cb8616"),e=e(),Xe(),e),__={class:"container container-shadow"},y_={class:"row"},b_={key:0,class:"row"},v_={class:"alert alert-danger"},w_={class:"row"},S_={class:"input-group"},E_=g_(()=>_("div",{class:"input-group-prepend"},[_("span",{class:"input-group-text",id:""},"Search")],-1)),$_={key:1,class:"row items-row"},C_=le({__name:"ItemsList",props:{itemType:{}},setup(e){const t=e,{itemType:n}=Fe(t),s=ut(),{errorMessage:r}=ve(s),o=We(),{authUser:i}=ve(o),l=oe(""),a=$e(()=>n.value==="categories"?["id","name","description","nb_articles"]:["id","name","nb_articles"]),c=$e(()=>i.value?i.value[n.value]:[]);return(u,f)=>($(),x("div",__,[_("div",y_,[_("button",{class:"btn-rdltr",onClick:f[0]||(f[0]=p=>u.$router.push("/settings"))}," Back to settings "),_("button",{class:"btn-rdltr",onClick:f[1]||(f[1]=p=>u.$router.push({name:`Add${w(n)==="categories"?"Category":"Tag"}`}))}," Add a "+ee(w(n)==="categories"?"category":"tag"),1)]),w(r)?($(),x("div",b_,[_("p",v_,ee(w(r)),1)])):Q("",!0),_("div",w_,[_("div",S_,[E_,he(_("input",{class:"form-control","onUpdate:modelValue":f[2]||(f[2]=p=>l.value=p)},null,512),[[Be,l.value]])])]),c.value?($(),x("div",$_,[U(m_,{items:c.value,columns:a.value,searchQuery:l.value,"item-type":w(n)},null,8,["items","columns","searchQuery","item-type"])])):Q("",!0)]))}});const A_=Ie(C_,[["__scopeId","data-v-d6cb8616"]]),zi=le({__name:"ItemsView",props:{itemType:{}},setup(e){const t=e,{itemType:n}=Fe(t);return(s,r)=>($(),x("main",null,[U(A_,{itemType:w(n)},null,8,["itemType"])]))}}),O_={class:"not-found"},T_={class:"test"},x_=_("p",null,"Page not found!",-1),P_=le({__name:"NotFoundView",setup(e){return(t,n)=>($(),x("div",O_,[_("div",T_,[x_,_("button",{class:"btn-rdltr",onClick:n[0]||(n[0]=s=>w(or).push("/"))},"Back to home")])]))}}),Cn=e=>(Ye("data-v-4ae1e9bc"),e=e(),Xe(),e),R_={key:0,class:"rdltr-box"},k_={class:"input"},L_=Cn(()=>_("label",{for:"username"},"Username",-1)),I_={class:"input"},N_=Cn(()=>_("label",{for:"email"},"Email",-1)),F_={class:"input"},M_=Cn(()=>_("label",{for:"creationDate"},"Inscription date",-1)),B_={key:0,class:"input"},D_=Cn(()=>_("label",{for:"oldPassword"},"Old password",-1)),V_={key:1,class:"input"},U_=Cn(()=>_("label",{for:"password"},"New password",-1)),j_={key:2,class:"input"},H_=Cn(()=>_("label",{for:"confirm-password"},"Confirm New Password",-1)),q_={key:3,class:"submit"},K_={key:4,class:"submit"},z_={key:0,class:"alert alert-danger"},W_=le({__name:"Profile",props:{actionType:{}},setup(e){const t=e,{actionType:n}=Fe(t),s=We(),{authUser:r}=ve(s),o=ut(),{errorMessage:i}=ve(o),l=ns(),a=qt({oldPassword:"",newPassword:"",confirmNewPassword:""});function c(){a.oldPassword="",a.newPassword="",a.confirmNewPassword=""}function u(){s.updatePassword(a).then(()=>{c()})}function f(){c(),l.push("/profile")}return(p,m)=>w(r)?($(),x("div",R_,[_("form",null,[_("div",k_,[L_,he(_("input",{id:"username",disabled:"","onUpdate:modelValue":m[0]||(m[0]=g=>w(r).username=g)},null,512),[[Be,w(r).username]])]),_("div",I_,[N_,he(_("input",{id:"email",disabled:"",type:"email","onUpdate:modelValue":m[1]||(m[1]=g=>w(r).email=g)},null,512),[[Be,w(r).email]])]),_("div",F_,[M_,he(_("input",{id:"creationDate",disabled:"","onUpdate:modelValue":m[2]||(m[2]=g=>w(r).created_at=g)},null,512),[[Be,w(r).created_at]])]),w(n)==="edit"?($(),x("div",B_,[D_,he(_("input",{id:"oldPassword",required:"",type:"password","onUpdate:modelValue":m[3]||(m[3]=g=>a.oldPassword=g)},null,512),[[Be,a.oldPassword]])])):Q("",!0),w(n)==="edit"?($(),x("div",V_,[U_,he(_("input",{id:"password",required:"",type:"password","onUpdate:modelValue":m[4]||(m[4]=g=>a.newPassword=g)},null,512),[[Be,a.newPassword]])])):Q("",!0),w(n)==="edit"?($(),x("div",j_,[H_,he(_("input",{id:"confirm-password",required:"",type:"password","onUpdate:modelValue":m[5]||(m[5]=g=>a.confirmNewPassword=g)},null,512),[[Be,a.confirmNewPassword]])])):Q("",!0),w(n)==="edit"?($(),x("div",q_,[_("button",{type:"submit",onClick:m[6]||(m[6]=de(g=>u(),["prevent"]))},"Submit"),_("button",{type:"submit",onClick:m[7]||(m[7]=de(g=>f(),["prevent"]))},"Cancel")])):($(),x("div",K_,[_("button",{type:"submit",onClick:m[8]||(m[8]=de(g=>p.$router.push("/profile/edit"),["prevent"]))}," Change password ")]))]),w(i)?($(),x("p",z_,ee(w(i)),1)):Q("",!0)])):Q("",!0)}});const J_=Ie(W_,[["__scopeId","data-v-4ae1e9bc"]]),G_={key:0,id:"actionType",class:"contnr"},Wi=le({__name:"ProfileView",props:{actionType:{}},setup(e){const t=e,{actionType:n}=Fe(t),s=We(),{authUser:r}=ve(s);return(o,i)=>($(),x("main",null,[w(r)?($(),x("div",G_,[U(J_,{actionType:w(n)},null,8,["actionType"])])):Q("",!0)]))}});const Q_={},Y_=e=>(Ye("data-v-300495ed"),e=e(),Xe(),e),X_={class:"contnr",id:"actionType"},Z_={class:"rdltr-box"},ey=Y_(()=>_("hr",null,null,-1));function ty(e,t){return $(),x("div",X_,[_("div",Z_,[_("button",{class:"btn-rdltr btn-rdltr-auto",onClick:t[0]||(t[0]=n=>e.$router.push("/settings/categories"))}," Categories "),_("button",{class:"btn-rdltr btn-rdltr-auto",onClick:t[1]||(t[1]=n=>e.$router.push("/settings/tags"))},"Tags"),ey,_("button",{class:"btn-rdltr",onClick:t[2]||(t[2]=n=>e.$router.push("/"))},"Back to home")])])}const ny=Ie(Q_,[["render",ty],["__scopeId","data-v-300495ed"]]),sy={id:"actionType",class:"contnr"},ry={class:"rdltr-box"},oy={key:0,class:"input"},iy=_("label",{for:"username"},"Username",-1),ly={class:"input"},ay=_("label",{for:"email"},"Email",-1),cy={class:"input"},uy=_("label",{for:"password"},"Password",-1),fy={key:1,class:"input"},dy=_("label",{for:"confirm-password"},"Confirm Password",-1),py={key:2,class:"alert alert-danger"},hy=_("div",{class:"submit"},[_("button",{type:"submit"},"Submit")],-1),my=le({__name:"UserForm",props:{actionType:{}},setup(e){const t=e,{actionType:n}=Fe(t),s=ut(),{errorMessage:r}=ve(s),o=We(),i=Kt(),l=qt({username:"",email:"",password:"",confirmPassword:""});function a(c){const u={email:l.email,password:l.password};c==="register"&&(u.username=l.username,u.password_conf=l.confirmPassword);const f=i.query.from?i.query.from.toString():null;o.loginOrRegister(u,c,f)}return(c,u)=>($(),x("div",sy,[_("div",ry,[_("form",{onSubmit:u[4]||(u[4]=de(f=>a(w(n)),["prevent"]))},[w(n)==="register"?($(),x("div",oy,[iy,he(_("input",{id:"username",required:"","onUpdate:modelValue":u[0]||(u[0]=f=>l.username=f)},null,512),[[Be,l.username]])])):Q("",!0),_("div",ly,[ay,he(_("input",{id:"email",required:"",type:"email","onUpdate:modelValue":u[1]||(u[1]=f=>l.email=f)},null,512),[[Be,l.email]])]),_("div",cy,[uy,he(_("input",{id:"password",required:"",type:"password","onUpdate:modelValue":u[2]||(u[2]=f=>l.password=f)},null,512),[[Be,l.password]])]),w(n)==="register"?($(),x("div",fy,[dy,he(_("input",{id:"confirm-password",type:"password",required:"","onUpdate:modelValue":u[3]||(u[3]=f=>l.confirmPassword=f)},null,512),[[Be,l.confirmPassword]])])):Q("",!0),w(r)?($(),x("p",py,ee(w(r)),1)):Q("",!0),hy],32)])]))}}),Ji=le({__name:"UserFormView",props:{actionType:{}},setup(e){const t=e,{actionType:n}=Fe(t);return(s,r)=>($(),x("main",null,[U(my,{actionType:w(n)},null,8,["actionType"])]))}}),or=Pd({history:Wf("/"),routes:[{path:"/",name:"Home",component:Ki},{path:"/register",name:"Register",component:Ji,props:{actionType:"register"}},{path:"/login",name:"Login",component:Ji,props:{actionType:"login"}},{path:"/profile",name:"Profile",component:Wi,props:{actionType:"view"}},{path:"/profile/edit",name:"ProfileEdition",component:Wi,props:{actionType:"edit"}},{path:"/articles/add",name:"AddArticle",component:Jh},{path:"/articles/:id",name:"ArticleDetail",component:Mm},{path:"/articles/page",name:"Articles",component:Ki},{path:"/bookmarklet",name:"Bookmarklet",component:Wm},{path:"/settings",name:"Settings",component:ny},{path:"/settings/categories/add",name:"AddCategory",component:ds,props:{itemType:"categories"}},{path:"/settings/categories/:id/edit",name:"EditCategory",component:ds,props:{itemType:"categories"}},{path:"/settings/categories",name:"CategoriesList",component:zi,props:{itemType:"categories"}},{path:"/settings/tags/add",name:"AddTag",component:ds,props:{itemType:"tags"}},{path:"/settings/tags/:id/edit",name:"EditTag",component:ds,props:{itemType:"tags"}},{path:"/settings/tags",name:"TagsList",component:zi,props:{itemType:"tags"}},{path:"/:pathMatch(.*)*",name:"NotFound",component:P_}]});or.beforeEach(async(e,t,n)=>{const s=We();ut().setErrorMessage(null),await s.checkUserAuth().then(()=>{const{isAuthenticated:o}=ve(s);if(o.value&&["/login","/register"].includes(e.path))return n({name:"Home"});if(!o.value&&!["/login","/register"].includes(e.path)){const i=e.path==="/"?{path:"/login"}:{path:"/login",query:{from:e.fullPath}};return n(i)}return n()})});const Co=wf(uh),Va=$f();Va.use(({store:e})=>{e.router=es(or)});Co.use(or);Co.use(Va);Co.mount("#app"); diff --git a/rdltr/dist/static/js/app.94e9768f.js b/rdltr/dist/static/js/app.94e9768f.js deleted file mode 100644 index 4480206..0000000 --- a/rdltr/dist/static/js/app.94e9768f.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(t){function e(e){for(var r,n,o=e[0],c=e[1],l=e[2],d=0,p=[];d2&&void 0!==arguments[2]?arguments[2]:"Error. Please try again or contact the administrator.";return t("setErrorMessage",e.response?e.response.data.message?e.response.data.message:a:e.message?e.message:a)}),k=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},T=function(t,e){var a=t;return e.includes("singular")&&(a="categories"===t?"category":"tag"),e.includes("capitalize")&&(a=k(a)),a},$=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=t.page||0!==e?{name:"articlesPage",params:{page:t.pagination.page+e}}:{name:"home"},r={};return t.selectedCategory&&(r.cat_id=t.selectedCategory),t.query&&(r.q=t.query),t.onlyFavorites&&(r.favorites=t.onlyFavorites),t.onlyNotRead&&(r.not_read=t.onlyNotRead),t.selectedTags&&(r.tag_id=t.selectedTags),a.query=r,a},P=function(){return"/api"},A=function(t){var e=Intl.DateTimeFormat().resolvedOptions().timeZone,a={weekday:"long",month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:e},r=new Date(t);return r.toLocaleString("en-GB",a)},x={props:["displayLabel","filter"],computed:{selectedCategory:{get:function(){return this.$store.getters.selectedCategory},set:function(t){return this.$store.dispatch("updateSelectedCategory",t)}},pagination:function(){return this.$store.getters.pagination},userCategories:function(){return this.$store.getters.userCategories}},beforeDestroy:function(){return this.$store.dispatch("updateSelectedCategory","")},methods:{filterArticles:function(){if(this.filter)return this.$store.dispatch("updateSelectedTags",[]),this.$router.push($(this.$store.getters))}}},M=x,S=(a("b0c2"),Object(u["a"])(M,_,C,!1,null,"ea575396",null)),N=S.exports,O=function(){var t=this,e=t._self._c;return e("div",{staticClass:"tag-input"},[t.displayLabel?e("label",[t._v("Tags")]):t._e(),e("app-multiselect",{attrs:{placeholder:"Search or add a tag",multiple:!0,options:t.userTags,taggable:!0},on:{tag:t.addTag},model:{value:t.selectedTags,callback:function(e){t.selectedTags=e},expression:"selectedTags"}})],1)},E=[],D=a("8e5f"),j=a.n(D),U={components:{AppMultiselect:j.a},props:["displayLabel"],computed:{selectedTags:{get:function(){return this.$store.getters.selectedTags},set:function(t){return this.$store.dispatch("updateSelectedTags",t)}},userTags:function(){return this.$store.getters.userTags?this.$store.getters.userTags.map((function(t){return t.name})):[]}},beforeDestroy:function(){return this.$store.dispatch("updateSelectedTags",[])},methods:{addTag:function(t){this.selectedTags.push(t)}}},L=U,R=(a("f7d4"),Object(u["a"])(L,O,E,!1,null,"0ca95baa",null)),q=R.exports,F={components:{AppCategorySelect:N,AppTagMultiSelect:q},data:function(){return{link:""}},computed:{errorMessage:function(){return this.$store.getters.errorMessage},loading:function(){return this.$store.getters.loading},selectedCategory:function(){return this.$store.getters.selectedCategory},selectedTags:function(){return this.$store.getters.selectedTags}},beforeDestroy:function(){this.$store.dispatch("updateErrorMessage",null)},mounted:function(){this.$store.dispatch("updateSelectedTags",[])},methods:{onSubmit:function(){var t={url:this.link,category_id:this.selectedCategory,tags:this.selectedTags};return this.$store.dispatch("addArticle",t)}}},B=F,I=(a("ab57"),Object(u["a"])(B,y,b,!1,null,"5f68181f",null)),Q=I.exports,K=function(){var t=this,e=t._self._c;return e("div",{staticClass:"contnr",attrs:{id:"add-article"}},[e("div",{staticClass:"rdltr-box"},[e("div",{staticClass:"title"},[t._v("Adding shared article")]),e("hr"),t.errorMessage?e("p",{staticClass:"alert alert-danger"},[t._v(" "+t._s(t.errorMessage)+" ")]):t._e(),t.loading?e("div",{staticClass:"text-center"},[e("i",{staticClass:"fa fa-spinner fa-pulse fa-3x fa-fw"})]):t._e()])])},z=[],J={data:function(){return{link:""}},computed:{errorMessage:function(){return this.$store.getters.errorMessage},isAuthenticated:function(){return this.$store.getters.isAuthenticated},loading:function(){return this.$store.getters.loading}},beforeDestroy:function(){this.$store.dispatch("updateErrorMessage",null)},mounted:function(){if(this.isAuthenticated){if(this.$route.query.url){var t={url:this.$route.query.url};return this.$store.dispatch("addArticle",t)}this.$store.dispatch("updateErrorMessage","Error: no URL provided.")}}},Z=J,G=Object(u["a"])(Z,K,z,!1,null,"667cee0e",null),H=G.exports,V=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container",attrs:{id:"article-detail"}},[t.showModal?e("conf-modal",{attrs:{onDeleteArticle:t.onDeleteArticle},on:{close:function(e){t.showModal=!1}}}):t._e(),e("button",{staticClass:"btn-rdltr",attrs:{type:"submit"},on:{click:t.goBack}},[t._v("Back")]),t.errorMessage?e("p",{staticClass:"alert alert-danger"},[t._v(" "+t._s(t.errorMessage)+" ")]):t._e(),t.article.title?e("div",[t.onCategoryEdition?e("div",{attrs:{id:"category-update"}},[e("app-category-select",{attrs:{displayLabel:"false"}}),e("div",{staticClass:"submit"},[e("button",{staticClass:"btn-rdltr",attrs:{type:"submit",disabled:""===t.selectedCategory},on:{click:t.onUpdateCategory}},[t._v(" Update ")]),e("button",{staticClass:"btn-rdltr",on:{click:function(e){t.onCategoryEdition=!t.onCategoryEdition}}},[t._v(" Cancel ")])])],1):e("div",[t.article.category?e("router-link",{staticStyle:{cursor:"pointer"},attrs:{tag:"span",to:"/?cat_id=".concat(t.article.category.id)}},[e("app-badge",{attrs:{name:t.article.category.name}})],1):t._e(),e("i",{staticClass:"fa fa-pencil link",attrs:{"aria-hidden":"true",title:"edit category"},on:{click:t.updateSelectedCategory}}),e("i",{class:"fa fa-eye".concat(t.article.read?"-slash":""),attrs:{"aria-hidden":"true",title:"mark as ".concat(t.article.read?"not ":"","read")},on:{click:t.updateReadStatus}}),e("i",{class:"fa fa-star".concat(t.article.favorite?"":"-o"),attrs:{"aria-hidden":"true",title:"".concat(t.article.favorite?"un":""," favorite article")},on:{click:t.updateFavorite}}),e("i",{class:"fa fa-refresh".concat(t.loading?" fa-spin":""),attrs:{"aria-hidden":"true",title:"reload article"},on:{click:t.onReloadArticle}}),e("i",{class:"fa fa-trash".concat(t.loading?" fa-disabled":""),attrs:{"aria-hidden":"true",title:"delete article"},on:{click:function(e){t.showModal=!0}}})],1),e("h1",[t._v(t._s(t.article.title))]),t.onTagEdition?e("div",{attrs:{id:"tag-update"}},[e("app-tag-multi-select"),e("div",{staticClass:"submit"},[e("button",{staticClass:"btn-rdltr",attrs:{type:"submit"},on:{click:t.onUpdateTags}},[t._v(" Update ")]),e("button",{staticClass:"btn-rdltr",on:{click:function(e){t.onTagEdition=!t.onTagEdition}}},[t._v(" Cancel ")])])],1):e("div",[t._l(t.article.tags,(function(t){return e("app-badge",{key:t.id,attrs:{"display-label":!1,tag_id:t.id,"is-tag":!0,name:t.name}})})),e("span",{directives:[{name:"show",rawName:"v-show",value:t.article.tags&&0===t.article.tags.length,expression:"article.tags && article.tags.length === 0"}],staticClass:"no-tags"},[t._v(" no tags ")]),e("i",{staticClass:"fa fa-pencil link",attrs:{"aria-hidden":"true",title:"edit tags"},on:{click:t.updateSelectedTags}})],2),e("p",{staticClass:"article-data"},[e("i",{staticClass:"fa fa-calendar-plus-o",attrs:{"aria-hidden":"true"}}),t._v(" "+t._s(t.articleDate)+" "),e("br"),e("i",{staticClass:"fa fa-link",attrs:{"aria-hidden":"true"}}),e("a",{attrs:{href:t.article.url,target:"_blank ",rel:"noopener noreferrer"}},[t._v(" "+t._s(t.article.url)+" ")])]),t.article.html_content?e("app-article-content",{attrs:{"article-content":t.article.html_content}}):t._e(),e("button",{staticClass:"btn-rdltr",attrs:{type:"submit"},on:{click:function(e){return t.$router.go(-1)}}},[t._v(" Back ")]),e("button",{staticClass:"btn-rdltr",attrs:{type:"submit"},on:{click:function(e){return e.preventDefault(),t.updateReadStatus.apply(null,arguments)}}},[t._v(" "+t._s("Mark as ".concat(t.article.read?"not ":"","read"))+" ")]),e("hr"),t.article?e("app-article-comments",{attrs:{"article-comments":t.article.comments}}):t._e()],1):t._e()],1)},W=[],X=function(){var t=this,e=t._self._c;return e("div",{staticClass:"article-content",attrs:{id:"article-content"}})},Y=[],tt={props:["articleContent"],methods:{displayContent:function(){var t=document.getElementById("article-content");t.innerHTML=this.articleContent}},mounted:function(){this.displayContent()},watch:{articleContent:function(){this.displayContent()}}},et=tt,at=(a("0da8"),Object(u["a"])(et,X,Y,!1,null,"55e4add0",null)),rt=at.exports,st=function(){var t=this,e=t._self._c;return e("form",[e("div",{staticClass:"input"},[e("label",{attrs:{for:"description"}},[t._v("Comments")]),t.onCommentsEdition?e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.comments,expression:"comments"}],attrs:{id:"description",disabled:!t.onCommentsEdition},domProps:{value:t.comments},on:{input:function(e){e.target.composing||(t.comments=e.target.value)}}}):e("p",{attrs:{id:"comments"}},[t._v(t._s(t.comments?t.comments:"No comments yet"))])]),t.onCommentsEdition?e("div",{staticClass:"submit"},[e("button",{staticClass:"btn-rdltr",attrs:{type:"submit"},on:{click:function(e){return e.preventDefault(),t.onSubmit()}}},[t._v(" Submit ")]),e("button",{staticClass:"btn-rdltr",attrs:{type:"submit"},on:{click:function(e){e.preventDefault(),t.onCommentsEdition=!t.onCommentsEdition}}},[t._v(" Cancel ")])]):e("div",[e("button",{staticClass:"btn-rdltr",attrs:{type:"submit"},on:{click:function(e){e.preventDefault(),t.onCommentsEdition=!t.onCommentsEdition}}},[t._v(" Edit comments ")])])])},it=[],nt={props:["articleComments"],data:function(){return{comments:"",onCommentsEdition:!1}},beforeMount:function(){this.comments=this.articleComments},methods:{onSubmit:function(){var t=this;this.$store.dispatch("updateArticle",{id:this.$route.params.id,formData:{comments:this.comments}}).then((function(){t.onCommentsEdition=!1}))}}},ot=nt,ct=(a("ae91"),Object(u["a"])(ot,st,it,!1,null,"ae4d1bd6",null)),lt=ct.exports,ut=function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-mask"},[e("div",{staticClass:"modal-wrapper"},[e("div",{staticClass:"modal-container"},[e("div",{staticClass:"modal-body"},[e("p",[t._v(" Are you sure you want to delete "+t._s(t.title?" the article '".concat(t.title,"'"):" this article")+"? ")]),e("button",{staticClass:"btn-rdltr",on:{click:t.onDeleteArticle}},[t._v("OK")]),e("button",{staticClass:"btn-rdltr",on:{click:function(e){return t.$emit("close")}}},[t._v("Cancel")])])])])])},dt=[],pt={name:"modal.vue",props:["onDeleteArticle","title"]},gt=pt,ft=(a("5bbb"),Object(u["a"])(gt,ut,dt,!1,null,"d2977072",null)),mt=ft.exports,ht=function(){var t=this,e=t._self._c;return e("span",{class:"badge badge-rdltr".concat(t.isTag?"-tag":"")},[t.isTag?e("router-link",{attrs:{to:t.fullPath(t.tag_id)}},[t._v(" "+t._s(t.name)+" ")]):e("span",[t._v(" "+t._s(t.name)+" ")])],1)},vt=[],yt=(a("ac1f"),a("466d"),a("5319"),a("99af"),{props:["name","isTag","tag_id"],methods:{fullPath:function(t){if(this.$route.fullPath.match(/\/articles\/\d+/g)||"/"===this.$route.fullPath)return"/?tag_id=".concat(t);var e=this.$route.fullPath.replace(/articles\/page\/\d+/g,"");return e.includes("tag_id")?e.replace(/tag_id=\d+/g,"tag_id=".concat(t)):"".concat(e).concat("/"===e?"?":"&","tag_id=").concat(t)}}}),bt=yt,_t=(a("369b"),Object(u["a"])(bt,ht,vt,!1,null,"44de236a",null)),Ct=_t.exports,wt={components:{AppBadge:Ct,AppCategorySelect:N,AppArticleComments:lt,AppArticleContent:rt,AppTagMultiSelect:q,ConfModal:mt},data:function(){return{onCategoryEdition:!1,onTagEdition:!1,showModal:!1}},computed:{article:{get:function(){return this.$store.getters.article}},articleDate:{get:function(){return A(this.article.date_added)}},errorMessage:{get:function(){return this.$store.getters.errorMessage}},loading:{get:function(){return this.$store.getters.loading}},selectedCategory:{get:function(){return this.$store.getters.selectedCategory}},selectedTags:{get:function(){return this.$store.getters.selectedTags}}},created:function(){if(this.$store.getters.isAuthenticated)return this.$store.dispatch("getArticle",this.$route.params.id)},beforeDestroy:function(){this.$store.dispatch("emptyArticle"),this.$store.dispatch("updateErrorMessage",null)},methods:{onDeleteArticle:function(){var t=this;this.loading||this.$store.dispatch("deleteArticle",this.article.id).then((function(){return t.$router.push("/")}))},goBack:function(){return window.history.length>1?this.$router.go(-1):this.$router.push("/")},onReloadArticle:function(){var t={id:this.article.id,formData:{reload:!0}};return this.$store.dispatch("reloadArticle",t)},onUpdateCategory:function(){var t=this;this.$store.dispatch("updateArticle",{id:this.$route.params.id,formData:{category_id:this.selectedCategory}}).then((function(){t.onCategoryEdition=!1}))},onUpdateTags:function(){var t=this;this.$store.dispatch("updateArticle",{id:this.$route.params.id,formData:{tags:this.selectedTags},reloadUserProfile:!0}).then((function(){t.onTagEdition=!1}))},updateFavorite:function(){var t={id:this.article.id,formData:{update_favorite:!this.article.favorite}};return this.$store.dispatch("updateArticle",t)},updateReadStatus:function(){var t={id:this.article.id,formData:{update_read_status:!this.article.read}};return this.$store.dispatch("updateArticle",t)},updateSelectedCategory:function(){var t=this;return this.$store.dispatch("updateSelectedCategory",this.article.category.id).then((function(){return t.onCategoryEdition=!t.onCategoryEdition}))},updateSelectedTags:function(){var t=this,e=this.article.tags.map((function(t){return t.name}));return this.$store.dispatch("updateSelectedTags",e).then((function(){return t.onTagEdition=!t.onTagEdition}))}}},kt=wt,Tt=(a("b333"),Object(u["a"])(kt,V,W,!1,null,"1f90e427",null)),$t=Tt.exports,Pt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container-fluid",attrs:{id:"home"}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[e("div",{staticClass:"row",attrs:{id:"user-categories"}},[e("div",{staticClass:"col-md-3"},[e("app-category-select",{attrs:{filter:"true"}})],1),e("div",{staticClass:"col search"},[e("div",{staticClass:"input-group"},[t._m(0),e("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],staticClass:"form-control",attrs:{placeholder:"enter keywords"},domProps:{value:t.query},on:{input:[function(e){e.target.composing||(t.query=e.target.value)},t.onSearch]}})])]),e("div",{staticClass:"col-md-2 form-check read-status"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.onlyNotRead,expression:"onlyNotRead"}],staticClass:"form-check-input",attrs:{id:"readStatus",type:"checkbox"},domProps:{checked:Array.isArray(t.onlyNotRead)?t._i(t.onlyNotRead,null)>-1:t.onlyNotRead},on:{change:[function(e){var a=t.onlyNotRead,r=e.target,s=!!r.checked;if(Array.isArray(a)){var i=null,n=t._i(a,i);r.checked?n<0&&(t.onlyNotRead=a.concat([i])):n>-1&&(t.onlyNotRead=a.slice(0,n).concat(a.slice(n+1)))}else t.onlyNotRead=s},t.onSearch]}}),e("label",{staticClass:"form-check-label",attrs:{for:"readStatus"}},[t._v(" only not read ")])]),e("div",{staticClass:"col-md-2 form-check favorite"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.onlyFavorites,expression:"onlyFavorites"}],staticClass:"form-check-input",attrs:{id:"favorites",type:"checkbox"},domProps:{checked:Array.isArray(t.onlyFavorites)?t._i(t.onlyFavorites,null)>-1:t.onlyFavorites},on:{change:[function(e){var a=t.onlyFavorites,r=e.target,s=!!r.checked;if(Array.isArray(a)){var i=null,n=t._i(a,i);r.checked?n<0&&(t.onlyFavorites=a.concat([i])):n>-1&&(t.onlyFavorites=a.slice(0,n).concat(a.slice(n+1)))}else t.onlyFavorites=s},t.onSearch]}}),e("label",{staticClass:"form-check-label",attrs:{for:"favorites"}},[t._v(" only favorites ")])])])])]),e("hr"),e("div",{staticClass:"row"},[e("app-articles")],1)])},At=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text",attrs:{id:""}},[t._v("Search")])])}],xt=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"user-articles"}},[t.errorMessage?e("p",{staticClass:"alert alert-danger"},[t._v(" "+t._s(t.errorMessage)+" ")]):e("div",[t.loading?e("div",{staticClass:"text-center"},[e("i",{staticClass:"fa fa-spinner fa-pulse fa-3x fa-fw"})]):e("div",[t.pagination.total>0?e("div",{staticClass:"row articles-msg"},[e("div",[t._v(" "+t._s(t.pagination.total)+" "+t._s("article".concat(1!==t.pagination.total?"s":""))+" ")]),t.tag?e("div",{staticClass:"display-tag"},[e("app-badge",{attrs:{tag_id:t.tag.id,"is-tag":!0,name:t.tag.name}})],1):t._e(),e("clear-filter")],1):t._e(),e("div",{staticClass:"row"},[0===t.articles.length?e("p",{staticClass:"text-center articles-msg"},[t._v(" No articles. Add "),e("router-link",{attrs:{to:"/articles/add"}},[t._v("one")]),t._v(" ! "),e("clear-filter")],1):t._e(),t._l(t.articles,(function(t){return e("app-article-card",{key:t.id,attrs:{article:t}})}))],2)])]),e("app-pagination",{staticClass:"footer"})],1)},Mt=[],St=function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-sm-6 col-md-4 col-lg-3"},[t.showModal?e("conf-modal",{attrs:{title:t.article.title,onDeleteArticle:t.onDeleteArticle},on:{close:function(e){t.showModal=!1}}}):t._e(),e("div",{staticClass:"card",class:"status".concat(t.article.read?"-read":"")},[e("div",{staticClass:"card-body"},[e("button",{staticClass:"close",attrs:{"aria-label":"Close",title:"delete article",type:"button"},on:{click:function(e){t.showModal=!0}}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])]),e("app-badge",{attrs:{name:t.article.category.name}}),e("h5",{staticClass:"card-title"},[t._v(" "+t._s(t.article.title)+" "),t.article.favorite?e("i",{staticClass:"fa fa-star"}):t._e()]),t._l(t.article.tags,(function(t){return e("app-badge",{key:t.id,attrs:{tag_id:t.id,"is-tag":!0,name:t.name}})})),e("p",{staticClass:"card-text"})],2),e("div",{staticClass:"card-footer"},[e("router-link",{staticClass:"btn-rdltr",attrs:{tag:"button",to:{name:"articleDetail",params:{id:t.article.id}}}},[t._v(" Read ")])],1)])],1)},Nt=[],Ot={components:{AppBadge:Ct,ConfModal:mt},props:["article"],data:function(){return{showModal:!1}},methods:{onDeleteArticle:function(){return this.$store.dispatch("deleteArticle",this.article.id)}}},Et=Ot,Dt=(a("2fef"),Object(u["a"])(Et,St,Nt,!1,null,"62874050",null)),jt=Dt.exports,Ut=function(){var t=this,e=t._self._c;return t.displayClearFilters()?e("router-link",{staticClass:"clear-filter",attrs:{tag:"button",to:"/"}},[t._v(" × clear all filters ")]):t._e()},Lt=[],Rt={methods:{displayClearFilters:function(){return"/"!==this.$route.fullPath&&!this.$route.fullPath.match(/articles\/page\/\d+$/g)}}},qt=Rt,Ft=(a("4c4b"),Object(u["a"])(qt,Ut,Lt,!1,null,"e635edda",null)),Bt=Ft.exports,It=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row",attrs:{id:"pagination"}},[e("div",{staticClass:"col-md-2 col-sm text-center"},[e("button",{directives:[{name:"show",rawName:"v-show",value:t.displayFirstPage(),expression:"displayFirstPage()"}],staticClass:"btn-rdltr",attrs:{type:"submit"},on:{click:function(e){return t.getTargetLink(1-t.pagination.page)}}},[e("i",{staticClass:"fa fa-angle-double-left",attrs:{"aria-hidden":"true"}})]),e("button",{directives:[{name:"show",rawName:"v-show",value:t.pagination.has_prev,expression:"pagination.has_prev"}],staticClass:"btn-rdltr",attrs:{type:"submit"},on:{click:function(e){return t.getTargetLink(-1)}}},[e("i",{staticClass:"fa fa-angle-left",attrs:{"aria-hidden":"true"}})])]),t.pagination.pages>0?e("div",{staticClass:"col-md-8 col-sm text-center page"},[t._v(" page "+t._s(t.pagination.page)+" / "+t._s(t.pagination.pages)+" ")]):t._e(),e("div",{staticClass:"col-md-2 col-sm text-center"},[e("button",{directives:[{name:"show",rawName:"v-show",value:t.pagination.has_next,expression:"pagination.has_next"}],staticClass:"btn-rdltr",attrs:{type:"submit"},on:{click:function(e){return t.getTargetLink(1)}}},[e("i",{staticClass:"fa fa-angle-right",attrs:{"aria-hidden":"true"}})]),e("button",{directives:[{name:"show",rawName:"v-show",value:t.displayLastPage(),expression:"displayLastPage()"}],staticClass:"btn-rdltr",attrs:{type:"submit"},on:{click:function(e){return t.getTargetLink(t.pagination.pages-t.pagination.page)}}},[e("i",{staticClass:"fa fa-angle-double-right",attrs:{"aria-hidden":"true"}})])])])},Qt=[],Kt={computed:{pagination:function(){return this.$store.getters.pagination}},methods:{displayFirstPage:function(){return this.pagination.page>2&&this.pagination.pages>2},displayLastPage:function(){return this.pagination.pages-2>=this.pagination.page},getTargetLink:function(t){this.$router.push($(this.$store.getters,t))}}},zt=Kt,Jt=(a("8aa3"),Object(u["a"])(zt,It,Qt,!1,null,"515ca814",null)),Zt=Jt.exports,Gt={components:{AppArticleCard:jt,AppBadge:Ct,AppPagination:Zt,ClearFilter:Bt},computed:{articles:function(){return this.$store.getters.articles},errorMessage:function(){return this.$store.getters.errorMessage},loading:function(){return this.$store.getters.loading},pagination:function(){return this.$store.getters.pagination},userTags:function(){return this.$store.getters.userTags},tag:function(){var t=this;return"tag_id"in this.$route.query&&this.userTags?this.$store.getters.user.tags.filter((function(e){return e.id===+t.$route.query["tag_id"]}))[0]:null}},watch:{$route:function(t){this.$store.dispatch("getArticles",Object.assign({},t.params,t.query))}},created:function(){if(this.$store.getters.isAuthenticated)return this.$store.dispatch("getArticles",Object.assign({},this.$route.params,this.$route.query,{displaySpinner:!0}))}},Ht=Gt,Vt=(a("91ec"),Object(u["a"])(Ht,xt,Mt,!1,null,"1b1dfacd",null)),Wt=Vt.exports,Xt={components:{AppArticles:Wt,AppCategorySelect:N},computed:{onlyFavorites:{get:function(){return this.$store.getters.onlyFavorites},set:function(t){this.$store.dispatch("updateFavorites",t)}},onlyNotRead:{get:function(){return this.$store.getters.onlyNotRead},set:function(t){this.$store.dispatch("updateReadStatus",t)}},query:{get:function(){return this.$store.getters.query},set:function(t){this.$store.dispatch("updateQuery",t)}}},methods:{onSearch:function(){this.$router.push($(this.$store.getters))}}},Yt=Xt,te=(a("b2db"),Object(u["a"])(Yt,Pt,At,!1,null,"5b7d48d9",null)),ee=te.exports,ae=(a("a4d3"),a("e01a"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"contnr"},[e("div",{staticClass:"rdltr-box"},[t.errorMessage&&!t.item.id?e("div",[t.errorMessage?e("p",{staticClass:"alert alert-danger"},[t._v(" "+t._s(t.errorMessage)+" ")]):t._e(),e("router-link",{staticClass:"btn-rdltr",attrs:{tag:"button",to:"/settings/".concat(t.itemType)}},[t._v(" Back to "+t._s(t.itemType)+" ")])],1):e("div",[t.errorMessage?e("p",{staticClass:"alert alert-danger"},[t._v(" "+t._s(t.errorMessage)+" ")]):t._e(),e("form",[e("div",{staticClass:"input"},[e("label",{attrs:{for:"name"}},[t._v(t._s("".concat("categories"===t.itemType?"Category":"Tag"," name")))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.item.name,expression:"item.name"}],attrs:{id:"name",required:""},domProps:{value:t.item.name},on:{input:function(e){e.target.composing||t.$set(t.item,"name",e.target.value)}}})]),"categories"===t.itemType?e("div",{staticClass:"input"},[e("label",{attrs:{for:"description"}},[t._v("Description")]),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.item.description,expression:"item.description"}],attrs:{id:"description"},domProps:{value:t.item.description},on:{input:function(e){e.target.composing||t.$set(t.item,"description",e.target.value)}}})]):t._e(),e("div",{staticClass:"submit"},[e("button",{staticClass:"btn-rdltr",attrs:{disabled:""===t.item.name,type:"submit"},on:{click:function(e){return e.preventDefault(),t.onSubmit()}}},[t._v(" Submit ")]),e("router-link",{staticClass:"btn-rdltr",attrs:{tag:"button",to:"/settings/".concat(t.itemType)}},[t._v(" Cancel ")])],1)])])])])}),re=[],se={props:["itemType"],data:function(){return{item:{id:null,name:"",description:""}}},computed:{errorMessage:function(){return this.$store.getters.errorMessage},items:function(){return"categories"===this.itemType?this.$store.getters.userCategories:this.$store.getters.userTags}},watch:{items:function(t){this.getItems(t)}},created:function(){this.getItems(this.items)},beforeDestroy:function(){this.$store.dispatch("updateErrorMessage",null)},methods:{getItems:function(t){var e=this;if(this.$route.params.id&&t){var a=t.filter((function(t){return t.id===+e.$route.params.id}));a.length>0?this.item=a[0]:this.$store.dispatch("updateErrorMessage","".concat(T(this.itemType,["singular"])," not found!"))}},onSubmit:function(){return this.$store.dispatch("".concat(this.$route.params.id?"update":"add").concat(T(this.itemType,["capitalize","singular"])),this.item)}}},ie=se,ne=Object(u["a"])(ie,ae,re,!1,null,"7025e7b6",null),oe=ne.exports,ce=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container container-shadow"},[e("div",{staticClass:"row"},[e("router-link",{staticClass:"btn-rdltr",attrs:{to:"/settings",tag:"button"}},[t._v(" Back to settings ")]),e("router-link",{staticClass:"btn-rdltr",attrs:{tag:"button",to:{name:"add".concat("categories"===t.itemType?"Category":"Tag")}}},[t._v(" Add a "+t._s("categories"===t.itemType?"category":"tag")+" ")])],1),t.errorMessage?e("div",{staticClass:"row"},[e("p",{staticClass:"alert alert-danger"},[t._v(" "+t._s(t.errorMessage)+" ")])]):t._e(),e("div",{staticClass:"row"},[e("div",{staticClass:"input-group"},[t._m(0),e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchQuery,expression:"searchQuery"}],staticClass:"form-control",domProps:{value:t.searchQuery},on:{input:function(e){e.target.composing||(t.searchQuery=e.target.value)}}})])]),t.items?e("div",{staticClass:"row items-row"},[e("app-items-tables",{attrs:{data:t.items,columns:t.itemsColumns,"filter-key":t.searchQuery,"item-type":t.itemType}})],1):t._e()])},le=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text",attrs:{id:""}},[t._v("Search")])])}],ue=function(){var t=this,e=t._self._c;return e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table"},[e("thead",[e("tr",[t._l(t.columns,(function(a){return e("th",{key:a,class:{active:t.sortKey===a},attrs:{scope:"col"},on:{click:function(e){return t.sortBy(a)}}},[t._v(" "+t._s(t._f("formatText")(a))+" "),e("span",{staticClass:"arrow",class:t.sortOrders[a]>0?"asc":"dsc"})])})),e("th",{attrs:{scope:"col"}},[t._v("Actions")])],2)]),e("tbody",t._l(t.filteredData,(function(a){return e("tr",{key:a.id},[t._l(t.columns,(function(r){return e("td",{key:r},["name"===r?e("router-link",{attrs:{to:"/?".concat("categories"===t.itemType?"cat":"tag","_id=").concat(a.id)}},[t._v(" "+t._s(a[r])+" ")]):e("span",[t._v(" "+t._s(a[r])+" ")]),"name"===r&&a.is_default?e("span",{staticClass:"badge badge-rdltr-small"},[t._v(" default ")]):t._e()],1)})),e("td",[e("router-link",{staticClass:"link",attrs:{to:{name:"edit".concat(t.target),params:{id:a.id}}}},[e("i",{staticClass:"fa fa-pencil",attrs:{"aria-hidden":"true"}})]),a.is_default?t._e():e("i",{staticClass:"fa fa-trash link",attrs:{"aria-hidden":"true"},on:{click:function(e){return t.deleteItem(a.id)}}})],1)],2)})),0)])])},de=[],pe=(a("159b"),a("b64b"),a("4e82"),{props:{data:Array,columns:Array,filterKey:String,itemType:String},filters:{formatText:function(t){return k(t).replace("_"," ")}},data:function(){var t={};return this.columns.forEach((function(e){t[e]=1})),{sortKey:"",sortOrders:t,target:T(this.itemType,["singular","capitalize"])}},computed:{filteredData:function(){var t=this.sortKey?this.sortKey:"id",e=this.filterKey&&this.filterKey.toLowerCase(),a=this.sortOrders[t]||1,r=this.data;return e&&(r=r.filter((function(t){return Object.keys(t).some((function(a){return String(t[a]).toLowerCase().indexOf(e)>-1}))}))),t&&(r=r.slice().sort((function(e,r){return e=e[t],r=r[t],(e===r?0:e>r?1:-1)*a}))),r}},methods:{deleteItem:function(t){return this.$store.dispatch("delete".concat(this.target),t)},sortBy:function(t){this.sortKey=t,this.sortOrders[t]=-1*this.sortOrders[t]}}}),ge=pe,fe=(a("98b9"),Object(u["a"])(ge,ue,de,!1,null,"6c62d130",null)),me=fe.exports,he={components:{AppItemsTables:me},props:["itemType"],data:function(){return{displayAdd:!1,searchQuery:""}},computed:{errorMessage:function(){return this.$store.getters.errorMessage},itemsColumns:function(){return"categories"===this.itemType?["id","name","description","nb_articles"]:["id","name","nb_articles"]},items:function(){return"categories"===this.itemType?this.$store.getters.userCategories:this.$store.getters.userTags}},beforeDestroy:function(){this.$store.dispatch("updateErrorMessage",null)}},ve=he,ye=(a("724d"),Object(u["a"])(ve,ce,le,!1,null,"11e3deb8",null)),be=ye.exports,_e=function(){var t=this,e=t._self._c;return e("div",{staticClass:"not-found"},[e("div",{staticClass:"test"},[e("p",[t._v("Page not found!")]),e("br"),e("router-link",{staticClass:"btn-rdltr",attrs:{tag:"button",to:"/"}},[t._v(" Back to home ")])],1)])},Ce=[],we=(a("61d0"),{}),ke=Object(u["a"])(we,_e,Ce,!1,null,"3cd44498",null),Te=ke.exports,$e=function(){var t=this,e=t._self._c;return e("div",{staticClass:"contnr",attrs:{id:"actionType"}},[e("div",{staticClass:"rdltr-box"},[e("router-link",{staticClass:"btn-rdltr btn-rdltr-auto",attrs:{tag:"button",to:"/settings/categories"}},[t._v(" Categories ")]),e("router-link",{staticClass:"btn-rdltr btn-rdltr-auto",attrs:{tag:"button",to:"/settings/tags"}},[t._v(" Tags ")]),e("hr"),e("router-link",{staticClass:"btn-rdltr",attrs:{tag:"button",to:"/"}},[t._v(" Back to home ")])],1)])},Pe=[],Ae={},xe=Ae,Me=(a("b11c"),Object(u["a"])(xe,$e,Pe,!1,null,"ba234620",null)),Se=Me.exports,Ne=function(){var t=this,e=t._self._c;return e("div",{staticClass:"contnr",attrs:{id:"actionType"}},[e("div",{staticClass:"rdltr-box"},[e("form",[e("div",{staticClass:"input"},[e("label",{attrs:{for:"username"}},[t._v("Username")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.user.username,expression:"user.username"}],attrs:{id:"username",disabled:""},domProps:{value:t.user.username},on:{input:function(e){e.target.composing||t.$set(t.user,"username",e.target.value)}}})]),e("div",{staticClass:"input"},[e("label",{attrs:{for:"email"}},[t._v("Email")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.user.email,expression:"user.email"}],attrs:{id:"email",disabled:"",type:"email"},domProps:{value:t.user.email},on:{input:function(e){e.target.composing||t.$set(t.user,"email",e.target.value)}}})]),e("div",{staticClass:"input"},[e("label",{attrs:{for:"creationDate"}},[t._v("Inscription date")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.user.created_at,expression:"user.created_at"}],attrs:{id:"creationDate",disabled:""},domProps:{value:t.user.created_at},on:{input:function(e){e.target.composing||t.$set(t.user,"created_at",e.target.value)}}})]),"editProfile"===t.actionType?e("div",{staticClass:"input"},[e("label",{attrs:{for:"oldPassword"}},[t._v("Old password")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.oldPassword,expression:"oldPassword"}],attrs:{id:"oldPassword",required:"",type:"password"},domProps:{value:t.oldPassword},on:{input:function(e){e.target.composing||(t.oldPassword=e.target.value)}}})]):t._e(),"editProfile"===t.actionType?e("div",{staticClass:"input"},[e("label",{attrs:{for:"password"}},[t._v("New password")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.newPassword,expression:"newPassword"}],attrs:{id:"password",required:"",type:"password"},domProps:{value:t.newPassword},on:{input:function(e){e.target.composing||(t.newPassword=e.target.value)}}})]):t._e(),"editProfile"===t.actionType?e("div",{staticClass:"input"},[e("label",{attrs:{for:"confirm-password"}},[t._v("Confirm New Password")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.confirmNewPassword,expression:"confirmNewPassword"}],attrs:{id:"confirm-password",required:"",type:"password"},domProps:{value:t.confirmNewPassword},on:{input:function(e){e.target.composing||(t.confirmNewPassword=e.target.value)}}})]):t._e(),"editProfile"===t.actionType?e("div",{staticClass:"submit"},[e("button",{attrs:{type:"submit"},on:{click:function(e){return e.preventDefault(),t.onSubmit()}}},[t._v("Submit")]),e("button",{attrs:{type:"submit"},on:{click:function(e){return e.preventDefault(),t.onCancel()}}},[t._v("Cancel")])]):e("div",{staticClass:"submit"},[e("router-link",{attrs:{tag:"button",to:"/profile/edit"}},[t._v(" Change password ")])],1)]),t.errorMessage?e("p",{staticClass:"alert alert-danger"},[t._v(" "+t._s(t.errorMessage)+" ")]):t._e()])])},Oe=[],Ee={props:["actionType"],data:function(){return{oldPassword:"",newPassword:"",confirmNewPassword:""}},computed:{errorMessage:function(){return this.$store.getters.errorMessage},user:function(){return this.$store.getters.user}},methods:{onCancel:function(){var t=this;this.$store.dispatch("updateErrorMessage",null).then((function(){return t.oldPassword="",t.newPassword="",t.confirmNewPassword="",t.$router.push("/profile")}))},onSubmit:function(){var t=this,e={old_password:this.oldPassword,new_password:this.newPassword,new_password_conf:this.confirmNewPassword};this.$store.dispatch("updateProfile",e).then((function(){t.oldPassword="",t.newPassword="",t.confirmNewPassword=""}))}},beforeDestroy:function(){this.$store.dispatch("updateErrorMessage",null)}},De=Ee,je=(a("4472"),Object(u["a"])(De,Ne,Oe,!1,null,"cc9beaea",null)),Ue=je.exports,Le=function(){var t=this,e=t._self._c;return e("div",{staticClass:"contnr",attrs:{id:"actionType"}},[e("div",{staticClass:"rdltr-box"},[e("form",{on:{submit:function(e){return e.preventDefault(),t.onSubmit(t.actionType)}}},["register"===t.actionType?e("div",{staticClass:"input"},[e("label",{attrs:{for:"username"}},[t._v("Username")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.username,expression:"username"}],attrs:{id:"username",required:""},domProps:{value:t.username},on:{input:function(e){e.target.composing||(t.username=e.target.value)}}})]):t._e(),e("div",{staticClass:"input"},[e("label",{attrs:{for:"email"}},[t._v("Email")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],attrs:{id:"email",required:"",type:"email"},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})]),e("div",{staticClass:"input"},[e("label",{attrs:{for:"password"}},[t._v("Password")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{id:"password",required:"",type:"password"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),"register"===t.actionType?e("div",{staticClass:"input"},[e("label",{attrs:{for:"confirm-password"}},[t._v("Confirm Password")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.confirmPassword,expression:"confirmPassword"}],attrs:{id:"confirm-password",type:"password",required:""},domProps:{value:t.confirmPassword},on:{input:function(e){e.target.composing||(t.confirmPassword=e.target.value)}}})]):t._e(),t.errorMessage?e("p",{staticClass:"alert alert-danger"},[t._v(" "+t._s(t.errorMessage)+" ")]):t._e(),t._m(0)])])])},Re=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"submit"},[e("button",{attrs:{type:"submit"}},[t._v("Submit")])])}],qe={props:["actionType"],data:function(){return{confirmPassword:"",email:"",password:"",username:""}},computed:{errorMessage:function(){return this.$store.getters.errorMessage}},watch:{$route:function(){this.$store.dispatch("updateErrorMessage",null)}},beforeDestroy:function(){this.$store.dispatch("updateErrorMessage",null)},methods:{onSubmit:function(t){var e={email:this.email,password:this.password};"register"===t&&(e.username=this.username,e.password_conf=this.confirmPassword);var a=this.$route.query.from;return this.$store.dispatch("loginOrRegister",{actionType:t,formData:e,redirect_url:a})}}},Fe=qe,Be=Object(u["a"])(Fe,Le,Re,!1,null,"38d139d4",null),Ie=Be.exports,Qe=a("2f62"),Ke=a("cee4"),ze=Ke["a"].create({baseURL:P()});ze.interceptors.request.use((function(t){if(ma.state.user.authToken){var e="Bearer ".concat(ma.state.user.authToken);t.headers.Authorization!==e&&(t.headers.Authorization="Bearer ".concat(ma.state.user.authToken))}return t}),(function(t){return Promise.reject(t)}));var Je=ze,Ze={article:{},articles:[],pagination:{},query:""},Ge={article:function(t){return t.article},articles:function(t){return t.articles},pagination:function(t){return t.pagination},query:function(t){return t.query}},He={getUserArticle:function(t,e){t.article=e},getUserArticles:function(t,e){t.articles=e.data,t.pagination=e.pagination},updateQuery:function(t,e){t.query=e},clearArticles:function(t){t.article={},t.articles=[],t.pagination={}}},Ve={addArticle:function(t,e){var a=t.commit,r=t.dispatch;r("updateLoading",!0),Je.post("articles",e).then((function(t){"success"===t.data.status&&(r("updateLoading",!1),ya.replace("/articles/".concat(t.data.data[0].id)))})).catch((function(t){return w(a,t,"error on adding article")}))},deleteArticle:function(t,e){var a=t.commit,r=t.dispatch,s=t.state;Je.delete("articles/".concat(e)).then((function(t){204===t.status&&r("getArticles",{page:s.pagination.page})})).catch((function(t){return w(a,t,"error on article deletion")}))},emptyArticle:function(t){var e=t.commit;e("getUserArticle",{})},getArticle:function(t,e){var a=t.commit;Je.get("articles/".concat(e)).then((function(t){"success"===t.data.status&&a("getUserArticle",t.data.data[0])})).catch((function(t){return w(a,t,"error on fetching article")}))},getArticles:function(t,e){var a=t.commit,r=t.dispatch;e.displaySpinner&&r("updateLoading",!0);var s="articles";Object.keys(e).length>0&&(s+="?",Object.keys(e).map((function(t){s+="&".concat(t,"=").concat(e[t])}))),r("updateSelectedCategory","cat_id"in e?+e["cat_id"]:""),r("updateFavorites","favorites"in e&&e["favorites"]),r("updateReadStatus","not_read"in e&&e["not_read"]),r("updateSelectedTags","tag_id"in e?+e["tag_id"]:[]),"q"in e||a("updateQuery",""),Je.get(s).then((function(t){if("success"===t.data.status){if(t.data.pagination.pages>0&&t.data.pagination.page>t.data.pagination.pages)return ya.replace("/articles/page/".concat(t.data.pagination.pages));e.displaySpinner&&r("updateLoading",!1),a("getUserArticles",t.data)}})).catch((function(t){return w(a,t,"error on fetching articles")}))},reloadArticle:function(t,e){var a=t.commit,r=t.dispatch;r("updateLoading",!0),Je.patch("articles/".concat(e.id),e.formData).then((function(t){"success"===t.data.status&&(a("getUserArticle",t.data.data[0]),r("updateLoading",!1))})).catch((function(t){return w(a,t,"error on article reload")}))},updateArticle:function(t,e){var a=t.commit,r=t.dispatch;Je.patch("articles/".concat(e.id),e.formData).then((function(t){"success"===t.data.status&&(a("getUserArticle",t.data.data[0]),e.reloadUserProfile&&r("getUserProfile"))})).catch((function(t){return w(a,t,"error on article update")}))},updateQuery:function(t,e){var a=t.commit;a("updateQuery",e)}},We={state:Ze,getters:Ge,mutations:He,actions:Ve},Xe={},Ye={},ta={},ea={addCategory:function(t,e){var a=t.commit,r=t.dispatch;Je.post("categories",e).then((function(){r("getUserProfile"),ya.push("/settings/categories")})).catch((function(t){return w(a,t,"error on category creation")}))},updateCategory:function(t,e){var a=t.commit,r=t.dispatch;Je.patch("categories/".concat(e.id),e).then((function(){r("getUserProfile"),ya.push("/settings/categories")})).catch((function(t){return w(a,t,"error on category update")}))},deleteCategory:function(t,e){var a=t.commit,r=t.dispatch;Je.delete("categories/".concat(e)).then((function(t){204===t.status&&r("getUserProfile")})).catch((function(t){return w(a,t,"error on category deletion")}))}},aa={state:Xe,getters:Ye,mutations:ta,actions:ea},ra={},sa={},ia={},na={addTag:function(t,e){var a=t.commit,r=t.dispatch;Je.post("tags",e).then((function(){r("getUserProfile"),ya.push("/settings/tags")})).catch((function(t){return w(a,t,"error on tag creation")}))},updateTag:function(t,e){var a=t.commit,r=t.dispatch;Je.patch("tags/".concat(e.id),e).then((function(){r("getUserProfile"),ya.push("/settings/tags")})).catch((function(t){return w(a,t,"error on tag update")}))},deleteTag:function(t,e){var a=t.commit,r=t.dispatch;Je.delete("tags/".concat(e)).then((function(t){204===t.status&&r("getUserProfile")})).catch((function(t){return w(a,t,"error on tag deletion")}))}},oa={state:ra,getters:sa,mutations:ia,actions:na},ca=Ke["a"].create({baseURL:P()}),la=ca,ua={authToken:null,user:{}},da={isAuthenticated:function(t){return null!==t.authToken},user:function(t){return t.user},userCategories:function(t){return t.user.categories},userTags:function(t){return t.user.tags}},pa={authUser:function(t,e){t.authToken=e,t.userErrorMessage=null},clearUserData:function(t){t.authToken=null,t.user={},t.userErrorMessage=null},userProfile:function(t,e){t.user=e}},ga={checkUserAuth:function(t){var e=t.commit,a=t.dispatch,r=t.getters;window.localStorage.authToken&&!r.isAuthenticated&&(e("authUser",window.localStorage.authToken),a("getUserProfile"))},getUserProfile:function(t){var e=t.commit;Je.get("auth/profile").then((function(t){return"success"===t.data.status?e("userProfile",t.data.user):w(e,null)})).catch((function(t){return w(e,t)}))},loginOrRegister:function(t,e){var a=t.commit,r=t.dispatch;la.post("/auth/".concat(e.actionType),e.formData).then((function(t){if("success"===t.data.status){var s=t.data.auth_token;return window.localStorage.setItem("authToken",s),a("authUser",s),a("setErrorMessage",""),r("getUserProfile"),ya.push(e.redirect_url||"/")}return w(a,null)})).catch((function(t){return w(a,t)}))},logout:function(t){var e=t.commit;e("clearArticles"),e("clearUserData"),localStorage.removeItem("authToken"),ya.push("/login")},updateProfile:function(t,e){var a=t.commit;Je.post("/auth/profile/edit",e).then((function(t){return"success"===t.data.status?ya.push("/profile"):w(a,null)})).catch((function(t){return w(a,t)}))}},fa={state:ua,getters:da,mutations:pa,actions:ga};r["a"].use(Qe["a"]);var ma=new Qe["a"].Store({state:{errorMessage:null,loading:!1,onlyNotRead:!1,onlyFavorites:!1,selectedCategory:"",selectedTags:[]},mutations:{setOnlyFavorites:function(t,e){t.onlyFavorites=e},setCategory:function(t,e){t.selectedCategory=e},setErrorMessage:function(t,e){t.errorMessage=e,t.loading=!1},setLoading:function(t,e){t.loading=e},setOnlyNotRead:function(t,e){t.onlyNotRead=e},setTags:function(t,e){t.selectedTags=e}},actions:{updateErrorMessage:function(t,e){var a=t.commit;a("setErrorMessage",e)},updateFavorites:function(t,e){var a=t.commit;a("setOnlyFavorites",e)},updateLoading:function(t,e){var a=t.commit;a("setLoading",e)},updateSelectedCategory:function(t,e){var a=t.commit;a("setCategory",e)},updateReadStatus:function(t,e){var a=t.commit;a("setOnlyNotRead",e)},updateSelectedTags:function(t,e){var a=t.commit;a("setTags",e)}},getters:{errorMessage:function(t){return t.errorMessage},loading:function(t){return t.loading},onlyFavorites:function(t){return t.onlyFavorites},onlyNotRead:function(t){return t.onlyNotRead},selectedCategory:function(t){return t.selectedCategory},selectedTags:function(t){return t.selectedTags}},modules:{articles:We,categories:aa,tags:oa,user:fa}});r["a"].use(v["a"]);var ha=[{path:"/",component:ee,name:"home"},{path:"/register",component:Ie,props:{actionType:"register"}},{path:"/login",component:Ie,props:{actionType:"login"}},{path:"/profile",component:Ue,props:{actionType:"viewProfile"}},{path:"/profile/edit",component:Ue,props:{actionType:"editProfile"}},{path:"/articles/add",component:Q},{path:"/articles/:id",component:$t,name:"articleDetail"},{path:"/articles/page/:page",component:ee,name:"articlesPage"},{path:"/bookmarklet",component:H},{path:"/settings",component:Se},{path:"/settings/categories/add",component:oe,name:"addCategory",props:{itemType:"categories"}},{path:"/settings/categories/:id/edit",component:oe,name:"editCategory",props:{itemType:"categories"}},{path:"/settings/categories",component:be,props:{itemType:"categories"}},{path:"/settings/tags/add",component:oe,name:"addTag",props:{itemType:"tags"}},{path:"/settings/tags/:id/edit",component:oe,name:"editTag",props:{itemType:"tags"}},{path:"/settings/tags",component:be,props:{itemType:"tags"}},{path:"*",component:Te}],va=new v["a"]({mode:"history",routes:ha});va.beforeEach((function(t,e,a){ma.dispatch("checkUserAuth").then((function(){if(ma.getters.isAuthenticated&&["/login","/register"].includes(t.path))return a("/");if(!ma.getters.isAuthenticated&&!["/login","/register"].includes(t.path)){var e="/"===t.path?{path:"/login"}:{path:"/login",query:{from:t.fullPath}};a(e)}})),a()}));var ya=va;r["a"].config.productionTip=!1,new r["a"]({el:"#app",router:ya,store:ma,render:function(t){return t(h)}})},"59b2":function(t,e,a){},"5ab1":function(t,e,a){},"5bbb":function(t,e,a){"use strict";a("1212")},"61d0":function(t,e,a){"use strict";a("94c1")},"724d":function(t,e,a){"use strict";a("e92c")},"8aa3":function(t,e,a){"use strict";a("b99e")},"91ec":function(t,e,a){"use strict";a("032e")},"92c8":function(t,e,a){},"92dc":function(t,e,a){},"94c1":function(t,e,a){},"958e":function(t,e,a){},"98b9":function(t,e,a){"use strict";a("1219")},a10e:function(t,e,a){},ab57:function(t,e,a){"use strict";a("3588")},ae91:function(t,e,a){"use strict";a("5ab1")},b08a:function(t,e,a){"use strict";a("c1a8")},b0c2:function(t,e,a){"use strict";a("958e")},b11c:function(t,e,a){"use strict";a("b218")},b218:function(t,e,a){},b2db:function(t,e,a){"use strict";a("ecd4")},b333:function(t,e,a){"use strict";a("2fec")},b99e:function(t,e,a){},bcdf:function(t,e,a){"use strict";a("1db5")},c1a8:function(t,e,a){},e92c:function(t,e,a){},ecd4:function(t,e,a){},eea3:function(t,e,a){},f7d4:function(t,e,a){"use strict";a("92c8")}}); -//# sourceMappingURL=app.94e9768f.js.map \ No newline at end of file diff --git a/rdltr/dist/static/js/app.94e9768f.js.map b/rdltr/dist/static/js/app.94e9768f.js.map deleted file mode 100644 index bbacbad..0000000 --- a/rdltr/dist/static/js/app.94e9768f.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/components/articles/articleContentDisplay.vue?df19","webpack:///./src/components/articles/articleCard.vue?9f39","webpack:///./src/components/common/customBagde.vue?6c96","webpack:///./src/components/user/userDetail.vue?d42b","webpack:///./src/components/articles/clearFilter.vue?0b53","webpack:///./src/App.vue","webpack:///./src/components/header/header.vue","webpack:///src/components/header/header.vue","webpack:///./src/components/header/header.vue?0d19","webpack:///./src/components/header/header.vue?1bbe","webpack:///src/App.vue","webpack:///./src/App.vue?60d0","webpack:///./src/App.vue?315a","webpack:///./src/components/articles/articleAdd.vue","webpack:///./src/components/common/categorySelect.vue","webpack:///./src/utils.js","webpack:///src/components/common/categorySelect.vue","webpack:///./src/components/common/categorySelect.vue?54a2","webpack:///./src/components/common/categorySelect.vue?eb9e","webpack:///./src/components/common/tagMultiSelect.vue","webpack:///src/components/common/tagMultiSelect.vue","webpack:///./src/components/common/tagMultiSelect.vue?8b91","webpack:///./src/components/common/tagMultiSelect.vue?7a08","webpack:///src/components/articles/articleAdd.vue","webpack:///./src/components/articles/articleAdd.vue?2fd9","webpack:///./src/components/articles/articleAdd.vue?bd88","webpack:///./src/components/articles/bookmarklet.vue","webpack:///src/components/articles/bookmarklet.vue","webpack:///./src/components/articles/bookmarklet.vue?93e6","webpack:///./src/components/articles/bookmarklet.vue?d322","webpack:///./src/components/articles/articleDisplay.vue","webpack:///./src/components/articles/articleContentDisplay.vue","webpack:///src/components/articles/articleContentDisplay.vue","webpack:///./src/components/articles/articleContentDisplay.vue?cc4c","webpack:///./src/components/articles/articleContentDisplay.vue?4c35","webpack:///./src/components/articles/articleComments.vue","webpack:///src/components/articles/articleComments.vue","webpack:///./src/components/articles/articleComments.vue?0490","webpack:///./src/components/articles/articleComments.vue?7385","webpack:///./src/components/common/deleteConfirmationModal.vue","webpack:///src/components/common/deleteConfirmationModal.vue","webpack:///./src/components/common/deleteConfirmationModal.vue?4a9b","webpack:///./src/components/common/deleteConfirmationModal.vue?c8a4","webpack:///./src/components/common/customBagde.vue","webpack:///src/components/common/customBagde.vue","webpack:///./src/components/common/customBagde.vue?f010","webpack:///./src/components/common/customBagde.vue?6d94","webpack:///src/components/articles/articleDisplay.vue","webpack:///./src/components/articles/articleDisplay.vue?726e","webpack:///./src/components/articles/articleDisplay.vue?b60e","webpack:///./src/components/home/home.vue","webpack:///./src/components/articles/articlesList.vue","webpack:///./src/components/articles/articleCard.vue","webpack:///src/components/articles/articleCard.vue","webpack:///./src/components/articles/articleCard.vue?96f6","webpack:///./src/components/articles/articleCard.vue?c20f","webpack:///./src/components/articles/clearFilter.vue","webpack:///src/components/articles/clearFilter.vue","webpack:///./src/components/articles/clearFilter.vue?3696","webpack:///./src/components/articles/clearFilter.vue?ee7b","webpack:///./src/components/home/pagination.vue","webpack:///src/components/home/pagination.vue","webpack:///./src/components/home/pagination.vue?2931","webpack:///./src/components/home/pagination.vue?b6cf","webpack:///src/components/articles/articlesList.vue","webpack:///./src/components/articles/articlesList.vue?87b8","webpack:///./src/components/articles/articlesList.vue?817d","webpack:///src/components/home/home.vue","webpack:///./src/components/home/home.vue?9284","webpack:///./src/components/home/home.vue?c1dd","webpack:///./src/components/common/item.vue","webpack:///src/components/common/item.vue","webpack:///./src/components/common/item.vue?4319","webpack:///./src/components/common/item.vue?5499","webpack:///./src/components/common/items.vue","webpack:///./src/components/common/itemsTable.vue","webpack:///src/components/common/itemsTable.vue","webpack:///./src/components/common/itemsTable.vue?6a18","webpack:///./src/components/common/itemsTable.vue?94c8","webpack:///src/components/common/items.vue","webpack:///./src/components/common/items.vue?0db9","webpack:///./src/components/common/items.vue?8cc9","webpack:///./src/components/notFound.vue","webpack:///./src/components/notFound.vue?b302","webpack:///./src/components/settings/index.vue","webpack:///src/components/settings/index.vue","webpack:///./src/components/settings/index.vue?ac59","webpack:///./src/components/settings/index.vue?b1c6","webpack:///./src/components/user/userDetail.vue","webpack:///src/components/user/userDetail.vue","webpack:///./src/components/user/userDetail.vue?6be8","webpack:///./src/components/user/userDetail.vue?fc1a","webpack:///./src/components/user/userForm.vue","webpack:///src/components/user/userForm.vue","webpack:///./src/components/user/userForm.vue?6357","webpack:///./src/components/user/userForm.vue?c978","webpack:///./src/api/authApi.js","webpack:///./src/store/modules/articles.js","webpack:///./src/store/modules/categories.js","webpack:///./src/store/modules/tags.js","webpack:///./src/api/defaultApi.js","webpack:///./src/store/modules/user.js","webpack:///./src/store/index.js","webpack:///./src/router/index.js","webpack:///./src/main.js","webpack:///./src/components/common/deleteConfirmationModal.vue?7a71","webpack:///./src/components/notFound.vue?081b","webpack:///./src/components/common/items.vue?6a00","webpack:///./src/components/home/pagination.vue?31e2","webpack:///./src/components/articles/articlesList.vue?e9e3","webpack:///./src/components/common/itemsTable.vue?b8d9","webpack:///./src/components/articles/articleAdd.vue?5f59","webpack:///./src/components/articles/articleComments.vue?b63f","webpack:///./src/App.vue?6a74","webpack:///./src/components/common/categorySelect.vue?0ac6","webpack:///./src/components/settings/index.vue?6c48","webpack:///./src/components/home/home.vue?a4f3","webpack:///./src/components/articles/articleDisplay.vue?967d","webpack:///./src/components/header/header.vue?0b5a","webpack:///./src/components/common/tagMultiSelect.vue?5953"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","render","_vm","this","_c","_self","attrs","staticRenderFns","staticClass","_v","on","displayMenu","auth","_e","_s","username","onLogout","computed","$store","getters","isAuthenticated","user","methods","x","document","getElementById","className","dispatch","component","components","Header","errorMessage","$event","preventDefault","onSubmit","directives","rawName","link","expression","domProps","target","composing","loading","displayLabel","selectedCategory","$$selectedVal","Array","filter","options","selected","map","val","_value","multiple","filterArticles","_l","userCategories","category","id","handleError","commit","err","msg","arguments","undefined","response","message","capitalize","str","charAt","toUpperCase","getActionValue","itemType","transformation","includes","getTargetLocationFromStore","store","pageOffset","location","page","params","pagination","query","cat_id","q","onlyFavorites","favorites","onlyNotRead","not_read","selectedTags","tag_id","getApiUrl","displayWithBrowserTimezone","date","browserTimezone","Intl","DateTimeFormat","resolvedOptions","timeZone","dateOptions","weekday","month","day","year","hour","minute","second","hour12","articleDate","Date","toLocaleString","props","set","beforeDestroy","$router","userTags","addTag","model","callback","$$v","AppMultiselect","Multiselect","values","tag","newTag","AppCategorySelect","CategorySelect","AppTagMultiSelect","TagMultiSelect","mounted","formData","url","category_id","tags","$route","showModal","onDeleteArticle","goBack","article","title","onCategoryEdition","onUpdateCategory","staticStyle","concat","updateSelectedCategory","class","read","updateReadStatus","favorite","updateFavorite","onReloadArticle","onTagEdition","onUpdateTags","updateSelectedTags","html_content","go","comments","displayContent","innerHTML","articleContent","watch","onCommentsEdition","beforeMount","articleComments","_this","then","$emit","isTag","fullPath","tagId","match","path","replace","AppBadge","CustomBadge","AppArticleComments","ArticleComments","AppArticleContent","ArticleContent","ConfModal","date_added","created","history","reload","_this2","_this3","reloadUserProfile","update_favorite","update_read_status","_this4","_this5","_m","onSearch","isArray","_i","$$a","$$el","$$c","checked","$$i","total","articles","displayClearFilters","displayFirstPage","getTargetLink","has_prev","pages","has_next","displayLastPage","offset","AppArticleCard","ArticleCard","AppPagination","Pagination","ClearFilter","to","assign","displaySpinner","AppArticles","Articles","item","$set","description","items","newItems","getItems","selectItem","searchQuery","itemsColumns","columns","active","sortKey","sortBy","_f","sortOrders","filteredData","is_default","deleteItem","filterKey","String","filters","formatText","forEach","toLowerCase","order","row","keys","some","indexOf","sort","a","b","Id","AppItemsTables","ItemsTable","displayAdd","script","email","created_at","actionType","oldPassword","newPassword","confirmNewPassword","onCancel","old_password","new_password","new_password_conf","password","confirmPassword","password_conf","redirect_url","from","authApi","axios","baseURL","interceptors","request","use","config","state","authToken","headers","Authorization","error","Promise","reject","mutations","getUserArticle","getUserArticles","updateQuery","clearArticles","actions","addArticle","_ref","post","res","status","router","catch","deleteArticle","_ref2","delete","emptyArticle","_ref3","getArticle","_ref4","getArticles","_ref5","reloadArticle","_ref6","patch","updateArticle","_ref7","_ref8","addCategory","updateCategory","deleteCategory","updateTag","deleteTag","api","categories","authUser","token","userErrorMessage","clearUserData","userProfile","checkUserAuth","localStorage","getUserProfile","loginOrRegister","auth_token","setItem","logout","removeItem","updateProfile","Vue","Vuex","Store","setOnlyFavorites","setCategory","setErrorMessage","setLoading","setOnlyNotRead","setTags","updateErrorMessage","updateFavorites","updateLoading","VueRouter","routes","HomePage","UserForm","UserDetail","AddArticle","DisplayArticle","Bookmarklet","Settings","Item","Items","NotFound","beforeEach","next","productionTip","el","h","App"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAG/Be,GAAqBA,EAAoBhB,GAE5C,MAAMO,EAASC,OACdD,EAAS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C,O,sFCbnB,W,oCCAA,W,oCCAA,W,oCCAA,W,oCCAA,W,wICAA,W,yDCAA,W,kCCAA,W,kCCAA,W,kCCAA,W,kCCAA,W,yDCAA,W,kCCAA,W,yDCAA,W,8HCAA","file":"js/app.94e9768f.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/static/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./articleContentDisplay.vue?vue&type=style&index=0&id=55e4add0&prod&scoped=true&lang=css&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./articleCard.vue?vue&type=style&index=0&id=62874050&prod&scoped=true&lang=css&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./customBagde.vue?vue&type=style&index=0&id=44de236a&prod&scoped=true&lang=css&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./userDetail.vue?vue&type=style&index=0&id=cc9beaea&prod&scoped=true&lang=css&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./clearFilter.vue?vue&type=style&index=0&id=e635edda&prod&scoped=true&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{\"id\":\"app\"}},[_c('app-header'),_c('router-view')],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('header',{attrs:{\"id\":\"header\"}},[_c('div',{staticClass:\"logo\"},[_c('router-link',{attrs:{\"to\":\"/\"}},[_vm._v(\" rdltr \"),_c('small',[_vm._v(\"a simple \\\"read-it later\\\" app\")])])],1),_c('nav',{staticClass:\"nav\",attrs:{\"id\":\"responsive-navbar\"},on:{\"click\":_vm.displayMenu}},[_c('ul',[(!_vm.auth)?_c('li',{staticClass:\"menu\"},[_c('router-link',{attrs:{\"to\":\"/register\"}},[_vm._v(\"Register\")])],1):_vm._e(),(!_vm.auth)?_c('li',{staticClass:\"menu\"},[_c('router-link',{attrs:{\"to\":\"/login\"}},[_vm._v(\"Log in\")])],1):_vm._e(),(_vm.auth)?_c('li',{staticClass:\"user menu\"},[_c('router-link',{attrs:{\"to\":\"/profile\"}},[_vm._v(_vm._s(_vm.username))])],1):_vm._e(),(_vm.auth)?_c('li',{staticClass:\"menu\"},[_c('router-link',{attrs:{\"to\":\"/settings\"}},[_vm._v(\"Settings\")])],1):_vm._e(),(_vm.auth)?_c('li',{staticClass:\"menu\"},[_c('span',{staticClass:\"logout\",on:{\"click\":_vm.onLogout}},[_vm._v(\"Logout\")])]):_vm._e(),(_vm.auth)?_c('li',{staticClass:\"menu\"},[_c('router-link',{attrs:{\"to\":\"/articles/add\"}},[_c('i',{staticClass:\"fa fa-plus\",attrs:{\"aria-hidden\":\"true\",\"title\":\"add a new article\"}})])],1):_vm._e()])]),_c('div',{attrs:{\"id\":\"nav-icon\"},on:{\"click\":_vm.displayMenu}},[_c('i',{staticClass:\"fa fa-bars\"})])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./header.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./header.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./header.vue?vue&type=template&id=290df8af&scoped=true&\"\nimport script from \"./header.vue?vue&type=script&lang=js&\"\nexport * from \"./header.vue?vue&type=script&lang=js&\"\nimport style0 from \"./header.vue?vue&type=style&index=0&id=290df8af&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"290df8af\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=276d03d7&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"vue-multiselect/dist/vue-multiselect.min.css?vue&type=style&index=0&prod&lang=css&\"\nimport style1 from \"./App.vue?vue&type=style&index=1&id=276d03d7&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"contnr\",attrs:{\"id\":\"add-article\"}},[_c('div',{staticClass:\"rdltr-box\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"Add an article\")]),_c('hr'),(_vm.errorMessage)?_c('p',{staticClass:\"alert alert-danger\"},[_vm._v(\" \"+_vm._s(_vm.errorMessage)+\" \")]):_vm._e(),_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_c('div',{staticClass:\"input\"},[_c('label',{attrs:{\"for\":\"link\"}},[_vm._v(\"Link\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.link),expression:\"link\"}],attrs:{\"id\":\"link\",\"required\":\"\"},domProps:{\"value\":(_vm.link)},on:{\"input\":function($event){if($event.target.composing)return;_vm.link=$event.target.value}}})]),_c('app-category-select',{attrs:{\"display-label\":\"true\"}}),_c('app-tag-multi-select',{attrs:{\"display-label\":true}}),_c('div',{staticClass:\"submit add-article-submit\"},[_c('button',{attrs:{\"type\":\"submit\",\"disabled\":_vm.loading}},[_vm._v(\"Submit\")])])],1),(_vm.loading)?_c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fa fa-spinner fa-pulse fa-3x fa-fw\"})]):_vm._e()])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{\"id\":\"category-select\"}},[(_vm.displayLabel === 'true')?_c('label',[_vm._v(\" Category \")]):_vm._e(),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.selectedCategory),expression:\"selectedCategory\"}],staticClass:\"form-control\",attrs:{\"id\":\"categories\"},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.selectedCategory=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.filterArticles]}},[(!_vm.displayLabel)?_c('option',{attrs:{\"value\":\"\"}},[_vm._v(\"All categories\")]):_vm._e(),_vm._l((_vm.userCategories),function(category){return _c('option',{key:category.id,domProps:{\"value\":category.id}},[_vm._v(\" \"+_vm._s(category.name)+\" \")])})],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export const handleError = (\n commit,\n err,\n msg = 'Error. Please try again or contact the administrator.'\n) => {\n return commit(\n 'setErrorMessage',\n err.response\n ? err.response.data.message\n ? err.response.data.message\n : msg\n : err.message\n ? err.message\n : msg\n )\n}\n\nexport const capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1)\n\nexport const getActionValue = (itemType, transformation) => {\n let result = itemType\n if (transformation.includes('singular')) {\n result = itemType === 'categories' ? 'category' : 'tag'\n }\n if (transformation.includes('capitalize')) {\n result = capitalize(result)\n }\n return result\n}\n\nexport const getTargetLocationFromStore = (store, pageOffset = 0) => {\n const location =\n store.page || pageOffset !== 0\n ? {\n name: 'articlesPage',\n params: { page: store.pagination.page + pageOffset },\n }\n : { name: 'home' }\n const query = {}\n if (store.selectedCategory) {\n query.cat_id = store.selectedCategory\n }\n if (store.query) {\n query.q = store.query\n }\n if (store.onlyFavorites) {\n query.favorites = store.onlyFavorites\n }\n if (store.onlyNotRead) {\n query.not_read = store.onlyNotRead\n }\n if (store.selectedTags) {\n // for now only one tag is handled\n query.tag_id = store.selectedTags\n }\n location.query = query\n return location\n}\n\nexport const getApiUrl = () => {\n return process.env.NODE_ENV === 'production'\n ? '/api'\n : 'http://localhost:5000/api'\n}\n\nexport const displayWithBrowserTimezone = (date) => {\n const browserTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone\n const dateOptions = {\n weekday: 'long',\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n hour: 'numeric',\n minute: '2-digit',\n second: '2-digit',\n hour12: false,\n timeZone: browserTimezone,\n }\n const articleDate = new Date(date)\n return articleDate.toLocaleString('en-GB', dateOptions)\n}\n","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./categorySelect.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./categorySelect.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./categorySelect.vue?vue&type=template&id=ea575396&scoped=true&\"\nimport script from \"./categorySelect.vue?vue&type=script&lang=js&\"\nexport * from \"./categorySelect.vue?vue&type=script&lang=js&\"\nimport style0 from \"./categorySelect.vue?vue&type=style&index=0&id=ea575396&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"ea575396\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"tag-input\"},[(_vm.displayLabel)?_c('label',[_vm._v(\"Tags\")]):_vm._e(),_c('app-multiselect',{attrs:{\"placeholder\":\"Search or add a tag\",\"multiple\":true,\"options\":_vm.userTags,\"taggable\":true},on:{\"tag\":_vm.addTag},model:{value:(_vm.selectedTags),callback:function ($$v) {_vm.selectedTags=$$v},expression:\"selectedTags\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./tagMultiSelect.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./tagMultiSelect.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./tagMultiSelect.vue?vue&type=template&id=0ca95baa&scoped=true&\"\nimport script from \"./tagMultiSelect.vue?vue&type=script&lang=js&\"\nexport * from \"./tagMultiSelect.vue?vue&type=script&lang=js&\"\nimport style0 from \"./tagMultiSelect.vue?vue&type=style&index=0&id=0ca95baa&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0ca95baa\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./articleAdd.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./articleAdd.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./articleAdd.vue?vue&type=template&id=5f68181f&scoped=true&\"\nimport script from \"./articleAdd.vue?vue&type=script&lang=js&\"\nexport * from \"./articleAdd.vue?vue&type=script&lang=js&\"\nimport style0 from \"./articleAdd.vue?vue&type=style&index=0&id=5f68181f&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5f68181f\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"contnr\",attrs:{\"id\":\"add-article\"}},[_c('div',{staticClass:\"rdltr-box\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"Adding shared article\")]),_c('hr'),(_vm.errorMessage)?_c('p',{staticClass:\"alert alert-danger\"},[_vm._v(\" \"+_vm._s(_vm.errorMessage)+\" \")]):_vm._e(),(_vm.loading)?_c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fa fa-spinner fa-pulse fa-3x fa-fw\"})]):_vm._e()])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./articleContentDisplay.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./articleContentDisplay.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./articleContentDisplay.vue?vue&type=template&id=55e4add0&scoped=true&\"\nimport script from \"./articleContentDisplay.vue?vue&type=script&lang=js&\"\nexport * from \"./articleContentDisplay.vue?vue&type=script&lang=js&\"\nimport style0 from \"./articleContentDisplay.vue?vue&type=style&index=0&id=55e4add0&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"55e4add0\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('form',[_c('div',{staticClass:\"input\"},[_c('label',{attrs:{\"for\":\"description\"}},[_vm._v(\"Comments\")]),(_vm.onCommentsEdition)?_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.comments),expression:\"comments\"}],attrs:{\"id\":\"description\",\"disabled\":!_vm.onCommentsEdition},domProps:{\"value\":(_vm.comments)},on:{\"input\":function($event){if($event.target.composing)return;_vm.comments=$event.target.value}}}):_c('p',{attrs:{\"id\":\"comments\"}},[_vm._v(_vm._s(_vm.comments ? _vm.comments : 'No comments yet'))])]),(_vm.onCommentsEdition)?_c('div',{staticClass:\"submit\"},[_c('button',{staticClass:\"btn-rdltr\",attrs:{\"type\":\"submit\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_vm._v(\" Submit \")]),_c('button',{staticClass:\"btn-rdltr\",attrs:{\"type\":\"submit\"},on:{\"click\":function($event){$event.preventDefault();_vm.onCommentsEdition = !_vm.onCommentsEdition}}},[_vm._v(\" Cancel \")])]):_c('div',[_c('button',{staticClass:\"btn-rdltr\",attrs:{\"type\":\"submit\"},on:{\"click\":function($event){$event.preventDefault();_vm.onCommentsEdition = !_vm.onCommentsEdition}}},[_vm._v(\" Edit comments \")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./articleComments.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./articleComments.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./articleComments.vue?vue&type=template&id=ae4d1bd6&scoped=true&\"\nimport script from \"./articleComments.vue?vue&type=script&lang=js&\"\nexport * from \"./articleComments.vue?vue&type=script&lang=js&\"\nimport style0 from \"./articleComments.vue?vue&type=style&index=0&id=ae4d1bd6&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"ae4d1bd6\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"modal-mask\"},[_c('div',{staticClass:\"modal-wrapper\"},[_c('div',{staticClass:\"modal-container\"},[_c('div',{staticClass:\"modal-body\"},[_c('p',[_vm._v(\" Are you sure you want to delete \"+_vm._s(_vm.title ? ` the article '${_vm.title}'` : ' this article')+\"? \")]),_c('button',{staticClass:\"btn-rdltr\",on:{\"click\":_vm.onDeleteArticle}},[_vm._v(\"OK\")]),_c('button',{staticClass:\"btn-rdltr\",on:{\"click\":function($event){return _vm.$emit('close')}}},[_vm._v(\"Cancel\")])])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./deleteConfirmationModal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./deleteConfirmationModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./deleteConfirmationModal.vue?vue&type=template&id=d2977072&scoped=true&\"\nimport script from \"./deleteConfirmationModal.vue?vue&type=script&lang=js&\"\nexport * from \"./deleteConfirmationModal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./deleteConfirmationModal.vue?vue&type=style&index=0&id=d2977072&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"d2977072\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('span',{class:`badge badge-rdltr${_vm.isTag ? '-tag' : ''}`},[(_vm.isTag)?_c('router-link',{attrs:{\"to\":_vm.fullPath(_vm.tag_id)}},[_vm._v(\" \"+_vm._s(_vm.name)+\" \")]):_c('span',[_vm._v(\" \"+_vm._s(_vm.name)+\" \")])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./customBagde.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./customBagde.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./customBagde.vue?vue&type=template&id=44de236a&scoped=true&\"\nimport script from \"./customBagde.vue?vue&type=script&lang=js&\"\nexport * from \"./customBagde.vue?vue&type=script&lang=js&\"\nimport style0 from \"./customBagde.vue?vue&type=style&index=0&id=44de236a&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"44de236a\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./articleDisplay.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./articleDisplay.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./articleDisplay.vue?vue&type=template&id=1f90e427&scoped=true&\"\nimport script from \"./articleDisplay.vue?vue&type=script&lang=js&\"\nexport * from \"./articleDisplay.vue?vue&type=script&lang=js&\"\nimport style0 from \"./articleDisplay.vue?vue&type=style&index=0&id=1f90e427&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1f90e427\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container-fluid\",attrs:{\"id\":\"home\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"row\",attrs:{\"id\":\"user-categories\"}},[_c('div',{staticClass:\"col-md-3\"},[_c('app-category-select',{attrs:{\"filter\":\"true\"}})],1),_c('div',{staticClass:\"col search\"},[_c('div',{staticClass:\"input-group\"},[_vm._m(0),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.query),expression:\"query\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"enter keywords\"},domProps:{\"value\":(_vm.query)},on:{\"input\":[function($event){if($event.target.composing)return;_vm.query=$event.target.value},_vm.onSearch]}})])]),_c('div',{staticClass:\"col-md-2 form-check read-status\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.onlyNotRead),expression:\"onlyNotRead\"}],staticClass:\"form-check-input\",attrs:{\"id\":\"readStatus\",\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.onlyNotRead)?_vm._i(_vm.onlyNotRead,null)>-1:(_vm.onlyNotRead)},on:{\"change\":[function($event){var $$a=_vm.onlyNotRead,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.onlyNotRead=$$a.concat([$$v]))}else{$$i>-1&&(_vm.onlyNotRead=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.onlyNotRead=$$c}},_vm.onSearch]}}),_c('label',{staticClass:\"form-check-label\",attrs:{\"for\":\"readStatus\"}},[_vm._v(\" only not read \")])]),_c('div',{staticClass:\"col-md-2 form-check favorite\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.onlyFavorites),expression:\"onlyFavorites\"}],staticClass:\"form-check-input\",attrs:{\"id\":\"favorites\",\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.onlyFavorites)?_vm._i(_vm.onlyFavorites,null)>-1:(_vm.onlyFavorites)},on:{\"change\":[function($event){var $$a=_vm.onlyFavorites,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.onlyFavorites=$$a.concat([$$v]))}else{$$i>-1&&(_vm.onlyFavorites=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.onlyFavorites=$$c}},_vm.onSearch]}}),_c('label',{staticClass:\"form-check-label\",attrs:{\"for\":\"favorites\"}},[_vm._v(\" only favorites \")])])])])]),_c('hr'),_c('div',{staticClass:\"row\"},[_c('app-articles')],1)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"input-group-prepend\"},[_c('span',{staticClass:\"input-group-text\",attrs:{\"id\":\"\"}},[_vm._v(\"Search\")])])\n}]\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{\"id\":\"user-articles\"}},[(_vm.errorMessage)?_c('p',{staticClass:\"alert alert-danger\"},[_vm._v(\" \"+_vm._s(_vm.errorMessage)+\" \")]):_c('div',[(_vm.loading)?_c('div',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fa fa-spinner fa-pulse fa-3x fa-fw\"})]):_c('div',[(_vm.pagination.total > 0)?_c('div',{staticClass:\"row articles-msg\"},[_c('div',[_vm._v(\" \"+_vm._s(_vm.pagination.total)+\" \"+_vm._s(`article${_vm.pagination.total !== 1 ? 's' : ''}`)+\" \")]),(_vm.tag)?_c('div',{staticClass:\"display-tag\"},[_c('app-badge',{attrs:{\"tag_id\":_vm.tag.id,\"is-tag\":true,\"name\":_vm.tag.name}})],1):_vm._e(),_c('clear-filter')],1):_vm._e(),_c('div',{staticClass:\"row\"},[(_vm.articles.length === 0)?_c('p',{staticClass:\"text-center articles-msg\"},[_vm._v(\" No articles. Add \"),_c('router-link',{attrs:{\"to\":\"/articles/add\"}},[_vm._v(\"one\")]),_vm._v(\" ! \"),_c('clear-filter')],1):_vm._e(),_vm._l((_vm.articles),function(article){return _c('app-article-card',{key:article.id,attrs:{\"article\":article}})})],2)])]),_c('app-pagination',{staticClass:\"footer\"})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-sm-6 col-md-4 col-lg-3\"},[(_vm.showModal)?_c('conf-modal',{attrs:{\"title\":_vm.article.title,\"onDeleteArticle\":_vm.onDeleteArticle},on:{\"close\":function($event){_vm.showModal = false}}}):_vm._e(),_c('div',{staticClass:\"card\",class:`status${_vm.article.read ? '-read' : ''}`},[_c('div',{staticClass:\"card-body\"},[_c('button',{staticClass:\"close\",attrs:{\"aria-label\":\"Close\",\"title\":\"delete article\",\"type\":\"button\"},on:{\"click\":function($event){_vm.showModal = true}}},[_c('span',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"×\")])]),_c('app-badge',{attrs:{\"name\":_vm.article.category.name}}),_c('h5',{staticClass:\"card-title\"},[_vm._v(\" \"+_vm._s(_vm.article.title)+\" \"),(_vm.article.favorite)?_c('i',{staticClass:\"fa fa-star\"}):_vm._e()]),_vm._l((_vm.article.tags),function(tag){return _c('app-badge',{key:tag.id,attrs:{\"tag_id\":tag.id,\"is-tag\":true,\"name\":tag.name}})}),_c('p',{staticClass:\"card-text\"})],2),_c('div',{staticClass:\"card-footer\"},[_c('router-link',{staticClass:\"btn-rdltr\",attrs:{\"tag\":\"button\",\"to\":{ name: 'articleDetail', params: { id: _vm.article.id } }}},[_vm._v(\" Read \")])],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./articleCard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./articleCard.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./articleCard.vue?vue&type=template&id=62874050&scoped=true&\"\nimport script from \"./articleCard.vue?vue&type=script&lang=js&\"\nexport * from \"./articleCard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./articleCard.vue?vue&type=style&index=0&id=62874050&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"62874050\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.displayClearFilters())?_c('router-link',{staticClass:\"clear-filter\",attrs:{\"tag\":\"button\",\"to\":\"/\"}},[_vm._v(\" × clear all filters \")]):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./clearFilter.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./clearFilter.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./clearFilter.vue?vue&type=template&id=e635edda&scoped=true&\"\nimport script from \"./clearFilter.vue?vue&type=script&lang=js&\"\nexport * from \"./clearFilter.vue?vue&type=script&lang=js&\"\nimport style0 from \"./clearFilter.vue?vue&type=style&index=0&id=e635edda&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"e635edda\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\",attrs:{\"id\":\"pagination\"}},[_c('div',{staticClass:\"col-md-2 col-sm text-center\"},[_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.displayFirstPage()),expression:\"displayFirstPage()\"}],staticClass:\"btn-rdltr\",attrs:{\"type\":\"submit\"},on:{\"click\":function($event){return _vm.getTargetLink(1 - _vm.pagination.page)}}},[_c('i',{staticClass:\"fa fa-angle-double-left\",attrs:{\"aria-hidden\":\"true\"}})]),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.pagination.has_prev),expression:\"pagination.has_prev\"}],staticClass:\"btn-rdltr\",attrs:{\"type\":\"submit\"},on:{\"click\":function($event){return _vm.getTargetLink(-1)}}},[_c('i',{staticClass:\"fa fa-angle-left\",attrs:{\"aria-hidden\":\"true\"}})])]),(_vm.pagination.pages > 0)?_c('div',{staticClass:\"col-md-8 col-sm text-center page\"},[_vm._v(\" page \"+_vm._s(_vm.pagination.page)+\" / \"+_vm._s(_vm.pagination.pages)+\" \")]):_vm._e(),_c('div',{staticClass:\"col-md-2 col-sm text-center\"},[_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.pagination.has_next),expression:\"pagination.has_next\"}],staticClass:\"btn-rdltr\",attrs:{\"type\":\"submit\"},on:{\"click\":function($event){return _vm.getTargetLink(1)}}},[_c('i',{staticClass:\"fa fa-angle-right\",attrs:{\"aria-hidden\":\"true\"}})]),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.displayLastPage()),expression:\"displayLastPage()\"}],staticClass:\"btn-rdltr\",attrs:{\"type\":\"submit\"},on:{\"click\":function($event){return _vm.getTargetLink(_vm.pagination.pages - _vm.pagination.page)}}},[_c('i',{staticClass:\"fa fa-angle-double-right\",attrs:{\"aria-hidden\":\"true\"}})])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./pagination.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./pagination.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./pagination.vue?vue&type=template&id=515ca814&scoped=true&\"\nimport script from \"./pagination.vue?vue&type=script&lang=js&\"\nexport * from \"./pagination.vue?vue&type=script&lang=js&\"\nimport style0 from \"./pagination.vue?vue&type=style&index=0&id=515ca814&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"515ca814\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./articlesList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./articlesList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./articlesList.vue?vue&type=template&id=1b1dfacd&scoped=true&\"\nimport script from \"./articlesList.vue?vue&type=script&lang=js&\"\nexport * from \"./articlesList.vue?vue&type=script&lang=js&\"\nimport style0 from \"./articlesList.vue?vue&type=style&index=0&id=1b1dfacd&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1b1dfacd\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./home.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./home.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./home.vue?vue&type=template&id=5b7d48d9&scoped=true&\"\nimport script from \"./home.vue?vue&type=script&lang=js&\"\nexport * from \"./home.vue?vue&type=script&lang=js&\"\nimport style0 from \"./home.vue?vue&type=style&index=0&id=5b7d48d9&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5b7d48d9\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"contnr\"},[_c('div',{staticClass:\"rdltr-box\"},[(_vm.errorMessage && !_vm.item.id)?_c('div',[(_vm.errorMessage)?_c('p',{staticClass:\"alert alert-danger\"},[_vm._v(\" \"+_vm._s(_vm.errorMessage)+\" \")]):_vm._e(),_c('router-link',{staticClass:\"btn-rdltr\",attrs:{\"tag\":\"button\",\"to\":`/settings/${_vm.itemType}`}},[_vm._v(\" Back to \"+_vm._s(_vm.itemType)+\" \")])],1):_c('div',[(_vm.errorMessage)?_c('p',{staticClass:\"alert alert-danger\"},[_vm._v(\" \"+_vm._s(_vm.errorMessage)+\" \")]):_vm._e(),_c('form',[_c('div',{staticClass:\"input\"},[_c('label',{attrs:{\"for\":\"name\"}},[_vm._v(_vm._s(`${_vm.itemType === 'categories' ? 'Category' : 'Tag'} name`))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.item.name),expression:\"item.name\"}],attrs:{\"id\":\"name\",\"required\":\"\"},domProps:{\"value\":(_vm.item.name)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.item, \"name\", $event.target.value)}}})]),(_vm.itemType === 'categories')?_c('div',{staticClass:\"input\"},[_c('label',{attrs:{\"for\":\"description\"}},[_vm._v(\"Description\")]),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.item.description),expression:\"item.description\"}],attrs:{\"id\":\"description\"},domProps:{\"value\":(_vm.item.description)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.item, \"description\", $event.target.value)}}})]):_vm._e(),_c('div',{staticClass:\"submit\"},[_c('button',{staticClass:\"btn-rdltr\",attrs:{\"disabled\":_vm.item.name === '',\"type\":\"submit\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_vm._v(\" Submit \")]),_c('router-link',{staticClass:\"btn-rdltr\",attrs:{\"tag\":\"button\",\"to\":`/settings/${_vm.itemType}`}},[_vm._v(\" Cancel \")])],1)])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","