codex 1.4.0a0__py3-none-any.whl → 1.4.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of codex might be problematic. Click here for more details.
- codex/config_default.yaml +12 -4
- codex/db_functions.py +4 -2
- codex/integrity.py +17 -6
- codex/librarian/covers/coverd.py +3 -11
- codex/librarian/covers/create.py +15 -21
- codex/librarian/covers/tasks.py +2 -16
- codex/librarian/importer/aggregate_metadata.py +75 -41
- codex/librarian/importer/clean_metadata.py +30 -7
- codex/librarian/importer/create_fks.py +154 -55
- codex/librarian/importer/deleted.py +11 -2
- codex/librarian/importer/failed_imports.py +44 -5
- codex/librarian/importer/importerd.py +37 -12
- codex/librarian/importer/link_comics.py +54 -31
- codex/librarian/importer/moved.py +55 -11
- codex/librarian/importer/query_fks.py +210 -48
- codex/librarian/importer/tasks.py +7 -7
- codex/librarian/janitor/cleanup.py +17 -5
- codex/librarian/librariand.py +10 -0
- codex/librarian/watchdog/events.py +11 -14
- codex/librarian/watchdog/observers.py +5 -1
- codex/logger/loggerd.py +7 -3
- codex/logger/logging.py +1 -1
- codex/migrations/0024_comic_gtin_comic_story_arc_number.py +24 -0
- codex/migrations/0025_add_story_arc_number.py +83 -0
- codex/models.py +21 -11
- codex/search/backend.py +1 -1
- codex/search/indexes.py +1 -1
- codex/serializers/browser.py +1 -0
- codex/serializers/metadata.py +5 -1
- codex/serializers/models.py +16 -1
- codex/serializers/opds/v1.py +1 -0
- codex/serializers/opds/v2.py +5 -2
- codex/serializers/reader.py +55 -16
- codex/settings/settings.py +1 -1
- codex/static_root/assets/admin-12749881.ef0f50bac290.js +41 -0
- codex/static_root/assets/admin-12749881.ef0f50bac290.js.br +0 -0
- codex/static_root/assets/admin-12749881.ef0f50bac290.js.gz +0 -0
- codex/static_root/assets/admin-12749881.js +41 -0
- codex/static_root/assets/admin-12749881.js.br +0 -0
- codex/static_root/assets/admin-12749881.js.gz +0 -0
- codex/static_root/assets/admin-beda768d.a614eee46307.css +1 -0
- codex/static_root/assets/admin-beda768d.a614eee46307.css.br +0 -0
- codex/static_root/assets/admin-beda768d.a614eee46307.css.gz +0 -0
- codex/static_root/assets/admin-beda768d.css +1 -0
- codex/static_root/assets/admin-beda768d.css.br +0 -0
- codex/static_root/assets/admin-beda768d.css.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-41c225cc.3f84583b435b.css +1 -0
- codex/static_root/assets/admin-drawer-panel-41c225cc.3f84583b435b.css.br +0 -0
- codex/static_root/assets/admin-drawer-panel-41c225cc.3f84583b435b.css.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-41c225cc.css +1 -0
- codex/static_root/assets/admin-drawer-panel-41c225cc.css.br +0 -0
- codex/static_root/assets/admin-drawer-panel-41c225cc.css.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-522f1e6c.089d70878270.js +1 -0
- codex/static_root/assets/admin-drawer-panel-522f1e6c.089d70878270.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-522f1e6c.089d70878270.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-522f1e6c.js +1 -0
- codex/static_root/assets/admin-drawer-panel-522f1e6c.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-522f1e6c.js.gz +0 -0
- codex/static_root/assets/browser-7f7d7134.0fe3749b0f2f.css +1 -0
- codex/static_root/assets/browser-7f7d7134.0fe3749b0f2f.css.br +0 -0
- codex/static_root/assets/browser-7f7d7134.0fe3749b0f2f.css.gz +0 -0
- codex/static_root/assets/browser-7f7d7134.css +1 -0
- codex/static_root/assets/browser-7f7d7134.css.br +0 -0
- codex/static_root/assets/browser-7f7d7134.css.gz +0 -0
- codex/static_root/assets/browser-af622672.d51aca96d64d.js +1 -0
- codex/static_root/assets/browser-af622672.d51aca96d64d.js.br +0 -0
- codex/static_root/assets/browser-af622672.d51aca96d64d.js.gz +0 -0
- codex/static_root/assets/browser-af622672.js +1 -0
- codex/static_root/assets/browser-af622672.js.br +0 -0
- codex/static_root/assets/browser-af622672.js.gz +0 -0
- codex/static_root/assets/http-error-5e17b794.77ceeb2d4641.js +1 -0
- codex/static_root/assets/http-error-5e17b794.77ceeb2d4641.js.br +0 -0
- codex/static_root/assets/http-error-5e17b794.77ceeb2d4641.js.gz +0 -0
- codex/static_root/assets/http-error-5e17b794.js +1 -0
- codex/static_root/assets/http-error-5e17b794.js.br +0 -0
- codex/static_root/assets/http-error-5e17b794.js.gz +0 -0
- codex/static_root/assets/{main-a6ac9581.2fd9e52cbcc3.css → main-0898f4bb.181e0145c642.css} +1 -1
- codex/static_root/assets/main-0898f4bb.181e0145c642.css.br +0 -0
- codex/static_root/assets/{main-a6ac9581.2fd9e52cbcc3.css.gz → main-0898f4bb.181e0145c642.css.gz} +0 -0
- codex/static_root/assets/{main-a6ac9581.css → main-0898f4bb.css} +1 -1
- codex/static_root/assets/main-0898f4bb.css.br +0 -0
- codex/static_root/assets/{main-a6ac9581.css.gz → main-0898f4bb.css.gz} +0 -0
- codex/static_root/assets/main-9e76a4c3.6844a407d14c.js +1 -0
- codex/static_root/assets/main-9e76a4c3.6844a407d14c.js.br +0 -0
- codex/static_root/assets/main-9e76a4c3.6844a407d14c.js.gz +0 -0
- codex/static_root/assets/main-9e76a4c3.js +1 -0
- codex/static_root/assets/main-9e76a4c3.js.br +0 -0
- codex/static_root/assets/main-9e76a4c3.js.gz +0 -0
- codex/static_root/assets/metadata-dialog-62c29ce0.8418785c0453.js +1 -0
- codex/static_root/assets/metadata-dialog-62c29ce0.8418785c0453.js.br +0 -0
- codex/static_root/assets/metadata-dialog-62c29ce0.8418785c0453.js.gz +0 -0
- codex/static_root/assets/metadata-dialog-62c29ce0.js +1 -0
- codex/static_root/assets/metadata-dialog-62c29ce0.js.br +0 -0
- codex/static_root/assets/metadata-dialog-62c29ce0.js.gz +0 -0
- codex/static_root/assets/{metadata-dialog-785c4cfc.694a251cda37.css → metadata-dialog-cb306ffd.cc304996d7bb.css} +1 -1
- codex/static_root/assets/metadata-dialog-cb306ffd.cc304996d7bb.css.br +0 -0
- codex/static_root/assets/metadata-dialog-cb306ffd.cc304996d7bb.css.gz +0 -0
- codex/static_root/assets/{metadata-dialog-785c4cfc.css → metadata-dialog-cb306ffd.css} +1 -1
- codex/static_root/assets/metadata-dialog-cb306ffd.css.br +0 -0
- codex/static_root/assets/metadata-dialog-cb306ffd.css.gz +0 -0
- codex/static_root/assets/{page-pdf-abfd509d.3870dab8eaf4.js → page-pdf-157ba97e.613d7c2beb77.js} +61 -51
- codex/static_root/assets/page-pdf-157ba97e.613d7c2beb77.js.br +0 -0
- codex/static_root/assets/page-pdf-157ba97e.613d7c2beb77.js.gz +0 -0
- codex/static_root/assets/{page-pdf-abfd509d.js → page-pdf-157ba97e.js} +61 -51
- codex/static_root/assets/page-pdf-157ba97e.js.br +0 -0
- codex/static_root/assets/page-pdf-157ba97e.js.gz +0 -0
- codex/static_root/assets/reader-36266549.0b2cf1291f27.js +1 -0
- codex/static_root/assets/reader-36266549.0b2cf1291f27.js.br +0 -0
- codex/static_root/assets/reader-36266549.0b2cf1291f27.js.gz +0 -0
- codex/static_root/assets/reader-36266549.js +1 -0
- codex/static_root/assets/reader-36266549.js.br +0 -0
- codex/static_root/assets/reader-36266549.js.gz +0 -0
- codex/static_root/assets/reader-7f004141.506eecc6954b.css +1 -0
- codex/static_root/assets/reader-7f004141.506eecc6954b.css.br +0 -0
- codex/static_root/assets/reader-7f004141.506eecc6954b.css.gz +0 -0
- codex/static_root/assets/reader-7f004141.css +1 -0
- codex/static_root/assets/reader-7f004141.css.br +0 -0
- codex/static_root/assets/reader-7f004141.css.gz +0 -0
- codex/static_root/js/choices-admin.24cecf0a0568.json +1 -0
- codex/static_root/js/choices-admin.24cecf0a0568.json.br +0 -0
- codex/static_root/js/choices-admin.24cecf0a0568.json.gz +0 -0
- codex/static_root/js/choices-admin.json +1 -1
- codex/static_root/js/choices-admin.json.br +0 -0
- codex/static_root/js/choices-admin.json.gz +0 -0
- codex/static_root/js/choices.8c58714cf5b2.json +1 -0
- codex/static_root/js/choices.8c58714cf5b2.json.br +5 -0
- codex/static_root/js/choices.8c58714cf5b2.json.gz +0 -0
- codex/static_root/js/choices.json +1 -1
- codex/static_root/js/choices.json.br +0 -0
- codex/static_root/js/choices.json.gz +0 -0
- codex/static_root/{manifest.64a989215af8.json → manifest.d2f93a519ada.json} +34 -34
- codex/static_root/manifest.d2f93a519ada.json.br +0 -0
- codex/static_root/manifest.d2f93a519ada.json.gz +0 -0
- codex/static_root/manifest.json +34 -34
- codex/static_root/manifest.json.br +0 -0
- codex/static_root/manifest.json.gz +0 -0
- codex/static_root/staticfiles.json +1 -1
- codex/templates/headers-script-globals.html +1 -1
- codex/templates/{opds → opds_v1}/index.xml +3 -1
- codex/templates/{opds/opensearch.xml → opds_v1/opensearch_v1.xml} +1 -1
- codex/templates/search/indexes/codex/comic_text.txt +2 -2
- codex/urls/converters.py +1 -1
- codex/urls/opds/authentication.py +1 -1
- codex/urls/opds/root.py +8 -12
- codex/urls/opds/v1.py +12 -5
- codex/urls/opds/v2.py +2 -2
- codex/views/admin/tasks.py +6 -1
- codex/views/bookmark.py +2 -2
- codex/views/browser/base.py +23 -7
- codex/views/browser/browser.py +66 -56
- codex/views/browser/browser_annotations.py +159 -50
- codex/views/browser/browser_order_by.py +51 -105
- codex/views/browser/choices.py +75 -38
- codex/views/browser/filters/bookmark.py +6 -9
- codex/views/browser/filters/field.py +9 -6
- codex/views/browser/filters/group.py +12 -27
- codex/views/browser/filters/search.py +5 -10
- codex/views/browser/metadata.py +44 -19
- codex/views/download.py +1 -1
- codex/views/frontend.py +2 -3
- codex/views/mixins.py +15 -2
- codex/views/opds/const.py +8 -1
- codex/views/opds/util.py +37 -1
- codex/views/opds/v1/__init__.py +1 -1
- codex/views/opds/v1/data.py +21 -0
- codex/views/opds/v1/entry/__init__.py +1 -0
- codex/views/opds/v1/entry/data.py +23 -0
- codex/views/opds/v1/entry/entry.py +151 -0
- codex/views/opds/v1/entry/links.py +135 -0
- codex/views/opds/v1/facets.py +190 -0
- codex/views/opds/v1/feed.py +199 -0
- codex/views/opds/v1/links.py +198 -0
- codex/views/opds/{opensearch.py → v1/opensearch_v1.py} +3 -3
- codex/views/opds/v2/__init__.py +1 -1
- codex/views/opds/v2/const.py +10 -2
- codex/views/opds/v2/feed.py +82 -21
- codex/views/opds/v2/links.py +1 -1
- codex/views/opds/v2/publications.py +1 -1
- codex/views/opds/v2/top_links.py +1 -1
- codex/views/reader/page.py +6 -7
- codex/views/reader/reader.py +191 -61
- codex/views/session.py +2 -1
- {codex-1.4.0a0.dist-info → codex-1.4.1.dist-info}/METADATA +10 -41
- {codex-1.4.0a0.dist-info → codex-1.4.1.dist-info}/RECORD +187 -185
- codex/librarian/importer/db_ops.py +0 -248
- codex/pdf.py +0 -115
- codex/static_root/assets/admin-73d93dc7.2c3eb62e50a0.js +0 -48
- codex/static_root/assets/admin-73d93dc7.2c3eb62e50a0.js.br +0 -0
- codex/static_root/assets/admin-73d93dc7.2c3eb62e50a0.js.gz +0 -0
- codex/static_root/assets/admin-73d93dc7.js +0 -48
- codex/static_root/assets/admin-73d93dc7.js.br +0 -0
- codex/static_root/assets/admin-73d93dc7.js.gz +0 -0
- codex/static_root/assets/admin-79555229.5f2c4cb3a73c.css +0 -1
- codex/static_root/assets/admin-79555229.5f2c4cb3a73c.css.br +0 -0
- codex/static_root/assets/admin-79555229.5f2c4cb3a73c.css.gz +0 -0
- codex/static_root/assets/admin-79555229.css +0 -1
- codex/static_root/assets/admin-79555229.css.br +0 -0
- codex/static_root/assets/admin-79555229.css.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-64bcc083.a85324c9ccd8.js +0 -1
- codex/static_root/assets/admin-drawer-panel-64bcc083.a85324c9ccd8.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-64bcc083.a85324c9ccd8.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-64bcc083.js +0 -1
- codex/static_root/assets/admin-drawer-panel-64bcc083.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-64bcc083.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-cce8c0aa.2c0814fa2a9b.css +0 -1
- codex/static_root/assets/admin-drawer-panel-cce8c0aa.2c0814fa2a9b.css.br +0 -2
- codex/static_root/assets/admin-drawer-panel-cce8c0aa.2c0814fa2a9b.css.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-cce8c0aa.css +0 -1
- codex/static_root/assets/admin-drawer-panel-cce8c0aa.css.br +0 -2
- codex/static_root/assets/admin-drawer-panel-cce8c0aa.css.gz +0 -0
- codex/static_root/assets/browser-7325db61.css +0 -1
- codex/static_root/assets/browser-7325db61.css.br +0 -0
- codex/static_root/assets/browser-7325db61.css.gz +0 -0
- codex/static_root/assets/browser-7325db61.ed2cfbf8e8ee.css +0 -1
- codex/static_root/assets/browser-7325db61.ed2cfbf8e8ee.css.br +0 -0
- codex/static_root/assets/browser-7325db61.ed2cfbf8e8ee.css.gz +0 -0
- codex/static_root/assets/browser-d2caeed7.2262000a6d55.js +0 -1
- codex/static_root/assets/browser-d2caeed7.2262000a6d55.js.br +0 -0
- codex/static_root/assets/browser-d2caeed7.2262000a6d55.js.gz +0 -0
- codex/static_root/assets/browser-d2caeed7.js +0 -1
- codex/static_root/assets/browser-d2caeed7.js.br +0 -0
- codex/static_root/assets/browser-d2caeed7.js.gz +0 -0
- codex/static_root/assets/http-error-0221c37d.480d5066da92.js +0 -1
- codex/static_root/assets/http-error-0221c37d.480d5066da92.js.br +0 -0
- codex/static_root/assets/http-error-0221c37d.480d5066da92.js.gz +0 -0
- codex/static_root/assets/http-error-0221c37d.js +0 -1
- codex/static_root/assets/http-error-0221c37d.js.br +0 -0
- codex/static_root/assets/http-error-0221c37d.js.gz +0 -0
- codex/static_root/assets/main-a6ac9581.2fd9e52cbcc3.css.br +0 -0
- codex/static_root/assets/main-a6ac9581.css.br +0 -0
- codex/static_root/assets/main-e33dcfb0.a65044fc1a08.js +0 -1
- codex/static_root/assets/main-e33dcfb0.a65044fc1a08.js.br +0 -0
- codex/static_root/assets/main-e33dcfb0.a65044fc1a08.js.gz +0 -0
- codex/static_root/assets/main-e33dcfb0.js +0 -1
- codex/static_root/assets/main-e33dcfb0.js.br +0 -0
- codex/static_root/assets/main-e33dcfb0.js.gz +0 -0
- codex/static_root/assets/metadata-dialog-785c4cfc.694a251cda37.css.br +0 -0
- codex/static_root/assets/metadata-dialog-785c4cfc.694a251cda37.css.gz +0 -0
- codex/static_root/assets/metadata-dialog-785c4cfc.css.br +0 -0
- codex/static_root/assets/metadata-dialog-785c4cfc.css.gz +0 -0
- codex/static_root/assets/metadata-dialog-8b0e8aaa.d12b42b1c9da.js +0 -1
- codex/static_root/assets/metadata-dialog-8b0e8aaa.d12b42b1c9da.js.br +0 -0
- codex/static_root/assets/metadata-dialog-8b0e8aaa.d12b42b1c9da.js.gz +0 -0
- codex/static_root/assets/metadata-dialog-8b0e8aaa.js +0 -1
- codex/static_root/assets/metadata-dialog-8b0e8aaa.js.br +0 -0
- codex/static_root/assets/metadata-dialog-8b0e8aaa.js.gz +0 -0
- codex/static_root/assets/page-pdf-abfd509d.3870dab8eaf4.js.br +0 -0
- codex/static_root/assets/page-pdf-abfd509d.3870dab8eaf4.js.gz +0 -0
- codex/static_root/assets/page-pdf-abfd509d.js.br +0 -0
- codex/static_root/assets/page-pdf-abfd509d.js.gz +0 -0
- codex/static_root/assets/reader-a8b8f766.875abdd0d22e.css +0 -1
- codex/static_root/assets/reader-a8b8f766.875abdd0d22e.css.br +0 -0
- codex/static_root/assets/reader-a8b8f766.875abdd0d22e.css.gz +0 -0
- codex/static_root/assets/reader-a8b8f766.css +0 -1
- codex/static_root/assets/reader-a8b8f766.css.br +0 -0
- codex/static_root/assets/reader-a8b8f766.css.gz +0 -0
- codex/static_root/assets/reader-fe9345d2.759c31f82998.js +0 -1
- codex/static_root/assets/reader-fe9345d2.759c31f82998.js.br +0 -0
- codex/static_root/assets/reader-fe9345d2.759c31f82998.js.gz +0 -0
- codex/static_root/assets/reader-fe9345d2.js +0 -1
- codex/static_root/assets/reader-fe9345d2.js.br +0 -0
- codex/static_root/assets/reader-fe9345d2.js.gz +0 -0
- codex/static_root/js/choices-admin.3d958ea7f83b.json +0 -1
- codex/static_root/js/choices-admin.3d958ea7f83b.json.br +0 -0
- codex/static_root/js/choices-admin.3d958ea7f83b.json.gz +0 -0
- codex/static_root/js/choices.6bfc2a3d293f.json +0 -1
- codex/static_root/js/choices.6bfc2a3d293f.json.br +0 -0
- codex/static_root/js/choices.6bfc2a3d293f.json.gz +0 -0
- codex/static_root/manifest.64a989215af8.json.br +0 -0
- codex/static_root/manifest.64a989215af8.json.gz +0 -0
- codex/urls/opds/opensearch.py +0 -18
- codex/views/opds/v1/browser.py +0 -346
- codex/views/opds/v1/entry.py +0 -278
- codex/views/opds/v1/start.py +0 -28
- codex/views/opds/v1/util.py +0 -162
- codex/views/opds/v2/start.py +0 -28
- {codex-1.4.0a0.dist-info → codex-1.4.1.dist-info}/LICENSE +0 -0
- {codex-1.4.0a0.dist-info → codex-1.4.1.dist-info}/WHEEL +0 -0
- {codex-1.4.0a0.dist-info → codex-1.4.1.dist-info}/entry_points.txt +0 -0
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
function Nu(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const Ok="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",Vk=Nu(Ok);function Ba(e){if(Re(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Ft(r)?Dk(r):Ba(r);if(s)for(const o in s)t[o]=s[o]}return t}else{if(Ft(e))return e;if(Pt(e))return e}}const Mk=/;(?![^(]*\))/g,Fk=/:([^]+)/,Bk=/\/\*.*?\*\//gs;function Dk(e){const t={};return e.replace(Bk,"").split(Mk).forEach(n=>{if(n){const r=n.split(Fk);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function br(e){let t="";if(Ft(e))t=e;else if(Re(e))for(let n=0;n<e.length;n++){const r=br(e[n]);r&&(t+=r+" ")}else if(Pt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function dh(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ft(t)&&(e.class=br(t)),n&&(e.style=Ba(n)),e}const $k="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Hk=Nu($k);function py(e){return!!e||e===""}function Nk(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Hi(e[r],t[r]);return n}function Hi(e,t){if(e===t)return!0;let n=op(e),r=op(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ca(e),r=Ca(t),n||r)return e===t;if(n=Re(e),r=Re(t),n||r)return n&&r?Nk(e,t):!1;if(n=Pt(e),r=Pt(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const l in e){const u=e.hasOwnProperty(l),f=t.hasOwnProperty(l);if(u&&!f||!u&&f||!Hi(e[l],t[l]))return!1}}return String(e)===String(t)}function Uu(e,t){return e.findIndex(n=>Hi(n,t))}const ye=e=>Ft(e)?e:e==null?"":Re(e)||Pt(e)&&(e.toString===by||!qe(e.toString))?JSON.stringify(e,yy,2):String(e),yy=(e,t)=>t&&t.__v_isRef?yy(e,t.value):co(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:Ts(t)?{[`Set(${t.size})`]:[...t.values()]}:Pt(t)&&!Re(t)&&!_y(t)?String(t):t,St={},uo=[],yr=()=>{},Uk=()=>!1,zk=/^on[^a-z]/,Da=e=>zk.test(e),hh=e=>e.startsWith("onUpdate:"),Nt=Object.assign,mh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Wk=Object.prototype.hasOwnProperty,ct=(e,t)=>Wk.call(e,t),Re=Array.isArray,co=e=>To(e)==="[object Map]",Ts=e=>To(e)==="[object Set]",op=e=>To(e)==="[object Date]",Gk=e=>To(e)==="[object RegExp]",qe=e=>typeof e=="function",Ft=e=>typeof e=="string",Ca=e=>typeof e=="symbol",Pt=e=>e!==null&&typeof e=="object",vh=e=>Pt(e)&&qe(e.then)&&qe(e.catch),by=Object.prototype.toString,To=e=>by.call(e),jk=e=>To(e).slice(8,-1),_y=e=>To(e)==="[object Object]",gh=e=>Ft(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,da=Nu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zu=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Kk=/-(\w)/g,hn=zu(e=>e.replace(Kk,(t,n)=>n?n.toUpperCase():"")),qk=/\B([A-Z])/g,sr=zu(e=>e.replace(qk,"-$1").toLowerCase()),ks=zu(e=>e.charAt(0).toUpperCase()+e.slice(1)),ha=zu(e=>e?`on${ks(e)}`:""),go=(e,t)=>!Object.is(e,t),fo=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},yu=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},bu=e=>{const t=parseFloat(e);return isNaN(t)?e:t},_u=e=>{const t=Ft(e)?Number(e):NaN;return isNaN(t)?e:t};let ap;const Yk=()=>ap||(ap=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let $n;class ph{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=$n,!t&&$n&&(this.index=($n.scopes||($n.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=$n;try{return $n=this,t()}finally{$n=n}}}on(){$n=this}off(){$n=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function ko(e){return new ph(e)}function wy(e,t=$n){t&&t.active&&t.effects.push(e)}function yh(){return $n}function Cn(e){$n&&$n.cleanups.push(e)}const bh=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Cy=e=>(e.w&Ni)>0,Sy=e=>(e.n&Ni)>0,Zk=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ni},Xk=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const s=t[r];Cy(s)&&!Sy(s)?s.delete(e):t[n++]=s,s.w&=~Ni,s.n&=~Ni}t.length=n}},wu=new WeakMap;let ca=0,Ni=1;const bd=30;let vr;const bs=Symbol(""),_d=Symbol("");class $a{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,wy(this,r)}run(){if(!this.active)return this.fn();let t=vr,n=Bi;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=vr,vr=this,Bi=!0,Ni=1<<++ca,ca<=bd?Zk(this):lp(this),this.fn()}finally{ca<=bd&&Xk(this),Ni=1<<--ca,vr=this.parent,Bi=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){vr===this?this.deferStop=!0:this.active&&(lp(this),this.onStop&&this.onStop(),this.active=!1)}}function lp(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function Jk(e,t){e.effect&&(e=e.effect.fn);const n=new $a(e);t&&(Nt(n,t),t.scope&&wy(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function Qk(e){e.effect.stop()}let Bi=!0;const xy=[];function Po(){xy.push(Bi),Bi=!1}function Ro(){const e=xy.pop();Bi=e===void 0?!0:e}function In(e,t,n){if(Bi&&vr){let r=wu.get(e);r||wu.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=bh()),Ay(s)}}function Ay(e,t){let n=!1;ca<=bd?Sy(e)||(e.n|=Ni,n=!Cy(e)):n=!e.has(vr),n&&(e.add(vr),vr.deps.push(e))}function fi(e,t,n,r,s,o){const l=wu.get(e);if(!l)return;let u=[];if(t==="clear")u=[...l.values()];else if(n==="length"&&Re(e)){const f=Number(r);l.forEach((d,h)=>{(h==="length"||h>=f)&&u.push(d)})}else switch(n!==void 0&&u.push(l.get(n)),t){case"add":Re(e)?gh(n)&&u.push(l.get("length")):(u.push(l.get(bs)),co(e)&&u.push(l.get(_d)));break;case"delete":Re(e)||(u.push(l.get(bs)),co(e)&&u.push(l.get(_d)));break;case"set":co(e)&&u.push(l.get(bs));break}if(u.length===1)u[0]&&wd(u[0]);else{const f=[];for(const d of u)d&&f.push(...d);wd(bh(f))}}function wd(e,t){const n=Re(e)?e:[...e];for(const r of n)r.computed&&up(r);for(const r of n)r.computed||up(r)}function up(e,t){(e!==vr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function eP(e,t){var n;return(n=wu.get(e))===null||n===void 0?void 0:n.get(t)}const tP=Nu("__proto__,__v_isRef,__isVue"),Ey=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ca)),nP=Wu(),rP=Wu(!1,!0),iP=Wu(!0),sP=Wu(!0,!0),cp=oP();function oP(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ze(this);for(let o=0,l=this.length;o<l;o++)In(r,"get",o+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(Ze)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Po();const r=Ze(this)[t].apply(this,n);return Ro(),r}}),e}function aP(e){const t=Ze(this);return In(t,"has",e),t.hasOwnProperty(e)}function Wu(e=!1,t=!1){return function(r,s,o){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&o===(e?t?Oy:Ly:t?Iy:Ry).get(r))return r;const l=Re(r);if(!e){if(l&&ct(cp,s))return Reflect.get(cp,s,o);if(s==="hasOwnProperty")return aP}const u=Reflect.get(r,s,o);return(Ca(s)?Ey.has(s):tP(s))||(e||In(r,"get",s),t)?u:xt(u)?l&&gh(s)?u:u.value:Pt(u)?e?Io(u):Jt(u):u}}const lP=Ty(),uP=Ty(!0);function Ty(e=!1){return function(n,r,s,o){let l=n[r];if(Ss(l)&&xt(l)&&!xt(s))return!1;if(!e&&(!Sa(s)&&!Ss(s)&&(l=Ze(l),s=Ze(s)),!Re(n)&&xt(l)&&!xt(s)))return l.value=s,!0;const u=Re(n)&&gh(r)?Number(r)<n.length:ct(n,r),f=Reflect.set(n,r,s,o);return n===Ze(o)&&(u?go(s,l)&&fi(n,"set",r,s):fi(n,"add",r,s)),f}}function cP(e,t){const n=ct(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&fi(e,"delete",t,void 0),r}function fP(e,t){const n=Reflect.has(e,t);return(!Ca(t)||!Ey.has(t))&&In(e,"has",t),n}function dP(e){return In(e,"iterate",Re(e)?"length":bs),Reflect.ownKeys(e)}const ky={get:nP,set:lP,deleteProperty:cP,has:fP,ownKeys:dP},Py={get:iP,set(e,t){return!0},deleteProperty(e,t){return!0}},hP=Nt({},ky,{get:rP,set:uP}),mP=Nt({},Py,{get:sP}),_h=e=>e,Gu=e=>Reflect.getPrototypeOf(e);function jl(e,t,n=!1,r=!1){e=e.__v_raw;const s=Ze(e),o=Ze(t);n||(t!==o&&In(s,"get",t),In(s,"get",o));const{has:l}=Gu(s),u=r?_h:n?Ch:xa;if(l.call(s,t))return u(e.get(t));if(l.call(s,o))return u(e.get(o));e!==s&&e.get(t)}function Kl(e,t=!1){const n=this.__v_raw,r=Ze(n),s=Ze(e);return t||(e!==s&&In(r,"has",e),In(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function ql(e,t=!1){return e=e.__v_raw,!t&&In(Ze(e),"iterate",bs),Reflect.get(e,"size",e)}function fp(e){e=Ze(e);const t=Ze(this);return Gu(t).has.call(t,e)||(t.add(e),fi(t,"add",e,e)),this}function dp(e,t){t=Ze(t);const n=Ze(this),{has:r,get:s}=Gu(n);let o=r.call(n,e);o||(e=Ze(e),o=r.call(n,e));const l=s.call(n,e);return n.set(e,t),o?go(t,l)&&fi(n,"set",e,t):fi(n,"add",e,t),this}function hp(e){const t=Ze(this),{has:n,get:r}=Gu(t);let s=n.call(t,e);s||(e=Ze(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&fi(t,"delete",e,void 0),o}function mp(){const e=Ze(this),t=e.size!==0,n=e.clear();return t&&fi(e,"clear",void 0,void 0),n}function Yl(e,t){return function(r,s){const o=this,l=o.__v_raw,u=Ze(l),f=t?_h:e?Ch:xa;return!e&&In(u,"iterate",bs),l.forEach((d,h)=>r.call(s,f(d),f(h),o))}}function Zl(e,t,n){return function(...r){const s=this.__v_raw,o=Ze(s),l=co(o),u=e==="entries"||e===Symbol.iterator&&l,f=e==="keys"&&l,d=s[e](...r),h=n?_h:t?Ch:xa;return!t&&In(o,"iterate",f?_d:bs),{next(){const{value:m,done:v}=d.next();return v?{value:m,done:v}:{value:u?[h(m[0]),h(m[1])]:h(m),done:v}},[Symbol.iterator](){return this}}}}function ki(e){return function(...t){return e==="delete"?!1:this}}function vP(){const e={get(o){return jl(this,o)},get size(){return ql(this)},has:Kl,add:fp,set:dp,delete:hp,clear:mp,forEach:Yl(!1,!1)},t={get(o){return jl(this,o,!1,!0)},get size(){return ql(this)},has:Kl,add:fp,set:dp,delete:hp,clear:mp,forEach:Yl(!1,!0)},n={get(o){return jl(this,o,!0)},get size(){return ql(this,!0)},has(o){return Kl.call(this,o,!0)},add:ki("add"),set:ki("set"),delete:ki("delete"),clear:ki("clear"),forEach:Yl(!0,!1)},r={get(o){return jl(this,o,!0,!0)},get size(){return ql(this,!0)},has(o){return Kl.call(this,o,!0)},add:ki("add"),set:ki("set"),delete:ki("delete"),clear:ki("clear"),forEach:Yl(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Zl(o,!1,!1),n[o]=Zl(o,!0,!1),t[o]=Zl(o,!1,!0),r[o]=Zl(o,!0,!0)}),[e,n,t,r]}const[gP,pP,yP,bP]=vP();function ju(e,t){const n=t?e?bP:yP:e?pP:gP;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ct(n,s)&&s in r?n:r,s,o)}const _P={get:ju(!1,!1)},wP={get:ju(!1,!0)},CP={get:ju(!0,!1)},SP={get:ju(!0,!0)},Ry=new WeakMap,Iy=new WeakMap,Ly=new WeakMap,Oy=new WeakMap;function xP(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function AP(e){return e.__v_skip||!Object.isExtensible(e)?0:xP(jk(e))}function Jt(e){return Ss(e)?e:Ku(e,!1,ky,_P,Ry)}function Vy(e){return Ku(e,!1,hP,wP,Iy)}function Io(e){return Ku(e,!0,Py,CP,Ly)}function EP(e){return Ku(e,!0,mP,SP,Oy)}function Ku(e,t,n,r,s){if(!Pt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const l=AP(e);if(l===0)return e;const u=new Proxy(e,l===2?r:n);return s.set(e,u),u}function ai(e){return Ss(e)?ai(e.__v_raw):!!(e&&e.__v_isReactive)}function Ss(e){return!!(e&&e.__v_isReadonly)}function Sa(e){return!!(e&&e.__v_isShallow)}function wh(e){return ai(e)||Ss(e)}function Ze(e){const t=e&&e.__v_raw;return t?Ze(t):e}function zn(e){return yu(e,"__v_skip",!0),e}const xa=e=>Pt(e)?Jt(e):e,Ch=e=>Pt(e)?Io(e):e;function Sh(e){Bi&&vr&&(e=Ze(e),Ay(e.dep||(e.dep=bh())))}function qu(e,t){e=Ze(e);const n=e.dep;n&&wd(n)}function xt(e){return!!(e&&e.__v_isRef===!0)}function X(e){return My(e,!1)}function Yu(e){return My(e,!0)}function My(e,t){return xt(e)?e:new TP(e,t)}class TP{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ze(t),this._value=n?t:xa(t)}get value(){return Sh(this),this._value}set value(t){const n=this.__v_isShallow||Sa(t)||Ss(t);t=n?t:Ze(t),go(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:xa(t),qu(this))}}function kP(e){qu(e)}function dn(e){return xt(e)?e.value:e}const PP={get:(e,t,n)=>dn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return xt(s)&&!xt(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function xh(e){return ai(e)?e:new Proxy(e,PP)}class RP{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Sh(this),()=>qu(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function IP(e){return new RP(e)}function Ha(e){const t=Re(e)?new Array(e.length):{};for(const n in e)t[n]=Se(e,n);return t}class LP{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,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 eP(Ze(this._object),this._key)}}function Se(e,t,n){const r=e[t];return xt(r)?r:new LP(e,t,n)}var Fy;class OP{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Fy]=!1,this._dirty=!0,this.effect=new $a(t,()=>{this._dirty||(this._dirty=!0,qu(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=Ze(this);return Sh(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Fy="__v_isReadonly";function VP(e,t,n=!1){let r,s;const o=qe(e);return o?(r=e,s=yr):(r=e.get,s=e.set),new OP(r,s,o||!s,n)}function MP(e,...t){}function FP(e,t){}function li(e,t,n,r){let s;try{s=r?e(...r):e()}catch(o){Ps(o,t,n)}return s}function Un(e,t,n,r){if(qe(e)){const o=li(e,t,n,r);return o&&vh(o)&&o.catch(l=>{Ps(l,t,n)}),o}const s=[];for(let o=0;o<e.length;o++)s.push(Un(e[o],t,n,r));return s}function Ps(e,t,n,r=!0){const s=t?t.vnode:null;if(t){let o=t.parent;const l=t.proxy,u=n;for(;o;){const d=o.ec;if(d){for(let h=0;h<d.length;h++)if(d[h](e,l,u)===!1)return}o=o.parent}const f=t.appContext.config.errorHandler;if(f){li(f,null,10,[e,l,u]);return}}BP(e,n,s,r)}function BP(e,t,n,r=!0){console.error(e)}let Aa=!1,Cd=!1;const fn=[];let Br=0;const ho=[];let ri=null,hs=0;const By=Promise.resolve();let Ah=null;function qt(e){const t=Ah||By;return e?t.then(this?e.bind(this):e):t}function DP(e){let t=Br+1,n=fn.length;for(;t<n;){const r=t+n>>>1;Ea(fn[r])<e?t=r+1:n=r}return t}function Zu(e){(!fn.length||!fn.includes(e,Aa&&e.allowRecurse?Br+1:Br))&&(e.id==null?fn.push(e):fn.splice(DP(e.id),0,e),Dy())}function Dy(){!Aa&&!Cd&&(Cd=!0,Ah=By.then($y))}function $P(e){const t=fn.indexOf(e);t>Br&&fn.splice(t,1)}function Eh(e){Re(e)?ho.push(...e):(!ri||!ri.includes(e,e.allowRecurse?hs+1:hs))&&ho.push(e),Dy()}function vp(e,t=Aa?Br+1:0){for(;t<fn.length;t++){const n=fn[t];n&&n.pre&&(fn.splice(t,1),t--,n())}}function Cu(e){if(ho.length){const t=[...new Set(ho)];if(ho.length=0,ri){ri.push(...t);return}for(ri=t,ri.sort((n,r)=>Ea(n)-Ea(r)),hs=0;hs<ri.length;hs++)ri[hs]();ri=null,hs=0}}const Ea=e=>e.id==null?1/0:e.id,HP=(e,t)=>{const n=Ea(e)-Ea(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function $y(e){Cd=!1,Aa=!0,fn.sort(HP);const t=yr;try{for(Br=0;Br<fn.length;Br++){const n=fn[Br];n&&n.active!==!1&&li(n,null,14)}}finally{Br=0,fn.length=0,Cu(),Aa=!1,Ah=null,(fn.length||ho.length)&&$y()}}let io,Xl=[];function Hy(e,t){var n,r;io=e,io?(io.enabled=!0,Xl.forEach(({event:s,args:o})=>io.emit(s,...o)),Xl=[]):typeof window<"u"&&window.HTMLElement&&!(!((r=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||r===void 0)&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{Hy(o,t)}),setTimeout(()=>{io||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Xl=[])},3e3)):Xl=[]}function NP(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||St;let s=n;const o=t.startsWith("update:"),l=o&&t.slice(7);if(l&&l in r){const h=`${l==="modelValue"?"model":l}Modifiers`,{number:m,trim:v}=r[h]||St;v&&(s=n.map(p=>Ft(p)?p.trim():p)),m&&(s=n.map(bu))}let u,f=r[u=ha(t)]||r[u=ha(hn(t))];!f&&o&&(f=r[u=ha(sr(t))]),f&&Un(f,e,6,s);const d=r[u+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,Un(d,e,6,s)}}function Ny(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let l={},u=!1;if(!qe(e)){const f=d=>{const h=Ny(d,t,!0);h&&(u=!0,Nt(l,h))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!o&&!u?(Pt(e)&&r.set(e,null),null):(Re(o)?o.forEach(f=>l[f]=null):Nt(l,o),Pt(e)&&r.set(e,l),l)}function Xu(e,t){return!e||!Da(t)?!1:(t=t.slice(2).replace(/Once$/,""),ct(e,t[0].toLowerCase()+t.slice(1))||ct(e,sr(t))||ct(e,t))}let an=null,Ju=null;function Ta(e){const t=an;return an=e,Ju=e&&e.type.__scopeId||null,t}function Rs(e){Ju=e}function Is(){Ju=null}const UP=e=>ie;function ie(e,t=an,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Pd(-1);const o=Ta(t);let l;try{l=e(...s)}finally{Ta(o),r._d&&Pd(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function lu(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[l],slots:u,attrs:f,emit:d,render:h,renderCache:m,data:v,setupState:p,ctx:b,inheritAttrs:S}=e;let T,x;const w=Ta(e);try{if(n.shapeFlag&4){const V=s||r;T=Hn(h.call(V,V,m,o,p,v,b)),x=f}else{const V=t;T=Hn(V.length>1?V(o,{attrs:f,slots:u,emit:d}):V(o,null)),x=t.props?f:WP(f)}}catch(V){ga.length=0,Ps(V,e,1),T=y(mn)}let C=T;if(x&&S!==!1){const V=Object.keys(x),{shapeFlag:I}=C;V.length&&I&7&&(l&&V.some(hh)&&(x=GP(x,l)),C=wr(C,x))}return n.dirs&&(C=wr(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),T=C,Ta(w),T}function zP(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(zi(r)){if(r.type!==mn||r.children==="v-if"){if(t)return;t=r}}else return}return t}const WP=e=>{let t;for(const n in e)(n==="class"||n==="style"||Da(n))&&((t||(t={}))[n]=e[n]);return t},GP=(e,t)=>{const n={};for(const r in e)(!hh(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function jP(e,t,n){const{props:r,children:s,component:o}=e,{props:l,children:u,patchFlag:f}=t,d=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return r?gp(r,l,d):!!l;if(f&8){const h=t.dynamicProps;for(let m=0;m<h.length;m++){const v=h[m];if(l[v]!==r[v]&&!Xu(d,v))return!0}}}else return(s||u)&&(!u||!u.$stable)?!0:r===l?!1:r?l?gp(r,l,d):!0:!!l;return!1}function gp(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(t[o]!==e[o]&&!Xu(n,o))return!0}return!1}function Th({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Uy=e=>e.__isSuspense,KP={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,l,u,f,d){e==null?YP(t,n,r,s,o,l,u,f,d):ZP(e,t,n,r,s,l,u,f,d)},hydrate:XP,create:kh,normalize:JP},qP=KP;function ka(e,t){const n=e.props&&e.props[t];qe(n)&&n()}function YP(e,t,n,r,s,o,l,u,f){const{p:d,o:{createElement:h}}=f,m=h("div"),v=e.suspense=kh(e,s,r,t,m,n,o,l,u,f);d(null,v.pendingBranch=e.ssContent,m,null,r,v,o,l),v.deps>0?(ka(e,"onPending"),ka(e,"onFallback"),d(null,e.ssFallback,t,n,r,null,o,l),mo(v,e.ssFallback)):v.resolve()}function ZP(e,t,n,r,s,o,l,u,{p:f,um:d,o:{createElement:h}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const v=t.ssContent,p=t.ssFallback,{activeBranch:b,pendingBranch:S,isInFallback:T,isHydrating:x}=m;if(S)m.pendingBranch=v,gr(v,S)?(f(S,v,m.hiddenContainer,null,s,m,o,l,u),m.deps<=0?m.resolve():T&&(f(b,p,n,r,s,null,o,l,u),mo(m,p))):(m.pendingId++,x?(m.isHydrating=!1,m.activeBranch=S):d(S,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=h("div"),T?(f(null,v,m.hiddenContainer,null,s,m,o,l,u),m.deps<=0?m.resolve():(f(b,p,n,r,s,null,o,l,u),mo(m,p))):b&&gr(v,b)?(f(b,v,n,r,s,m,o,l,u),m.resolve(!0)):(f(null,v,m.hiddenContainer,null,s,m,o,l,u),m.deps<=0&&m.resolve()));else if(b&&gr(v,b))f(b,v,n,r,s,m,o,l,u),mo(m,v);else if(ka(t,"onPending"),m.pendingBranch=v,m.pendingId++,f(null,v,m.hiddenContainer,null,s,m,o,l,u),m.deps<=0)m.resolve();else{const{timeout:w,pendingId:C}=m;w>0?setTimeout(()=>{m.pendingId===C&&m.fallback(p)},w):w===0&&m.fallback(p)}}function kh(e,t,n,r,s,o,l,u,f,d,h=!1){const{p:m,m:v,um:p,n:b,o:{parentNode:S,remove:T}}=d,x=e.props?_u(e.props.timeout):void 0,w={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:s,anchor:o,deps:0,pendingId:0,timeout:typeof x=="number"?x:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:h,isUnmounted:!1,effects:[],resolve(C=!1){const{vnode:V,activeBranch:I,pendingBranch:M,pendingId:O,effects:k,parentComponent:H,container:z}=w;if(w.isHydrating)w.isHydrating=!1;else if(!C){const q=I&&M.transition&&M.transition.mode==="out-in";q&&(I.transition.afterLeave=()=>{O===w.pendingId&&v(M,z,G,0)});let{anchor:G}=w;I&&(G=b(I),p(I,H,w,!0)),q||v(M,z,G,0)}mo(w,M),w.pendingBranch=null,w.isInFallback=!1;let D=w.parent,U=!1;for(;D;){if(D.pendingBranch){D.effects.push(...k),U=!0;break}D=D.parent}U||Eh(k),w.effects=[],ka(V,"onResolve")},fallback(C){if(!w.pendingBranch)return;const{vnode:V,activeBranch:I,parentComponent:M,container:O,isSVG:k}=w;ka(V,"onFallback");const H=b(I),z=()=>{w.isInFallback&&(m(null,C,O,H,M,null,k,u,f),mo(w,C))},D=C.transition&&C.transition.mode==="out-in";D&&(I.transition.afterLeave=z),w.isInFallback=!0,p(I,M,null,!0),D||z()},move(C,V,I){w.activeBranch&&v(w.activeBranch,C,V,I),w.container=C},next(){return w.activeBranch&&b(w.activeBranch)},registerDep(C,V){const I=!!w.pendingBranch;I&&w.deps++;const M=C.vnode.el;C.asyncDep.catch(O=>{Ps(O,C,0)}).then(O=>{if(C.isUnmounted||w.isUnmounted||w.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:k}=C;Rd(C,O,!1),M&&(k.el=M);const H=!M&&C.subTree.el;V(C,k,S(M||C.subTree.el),M?null:b(C.subTree),w,l,f),H&&T(H),Th(C,k.el),I&&--w.deps===0&&w.resolve()})},unmount(C,V){w.isUnmounted=!0,w.activeBranch&&p(w.activeBranch,n,C,V),w.pendingBranch&&p(w.pendingBranch,n,C,V)}};return w}function XP(e,t,n,r,s,o,l,u,f){const d=t.suspense=kh(t,r,n,e.parentNode,document.createElement("div"),null,s,o,l,u,!0),h=f(e,d.pendingBranch=t.ssContent,n,d,o,l);return d.deps===0&&d.resolve(),h}function JP(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=pp(r?n.default:n),e.ssFallback=r?pp(n.fallback):y(mn)}function pp(e){let t;if(qe(e)){const n=As&&e._c;n&&(e._d=!1,se()),e=e(),n&&(e._d=!0,t=Rn,h0())}return Re(e)&&(e=zP(e)),e=Hn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function zy(e,t){t&&t.pendingBranch?Re(e)?t.effects.push(...e):t.effects.push(e):Eh(e)}function mo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,s=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=s,Th(r,s))}function kt(e,t){if(Ht){let n=Ht.provides;const r=Ht.parent&&Ht.parent.provides;r===n&&(n=Ht.provides=Object.create(r)),n[e]=t}}function nt(e,t,n=!1){const r=Ht||an;if(r){const s=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&qe(t)?t.call(r.proxy):t}}function Tr(e,t){return Na(e,null,t)}function Wy(e,t){return Na(e,null,{flush:"post"})}function QP(e,t){return Na(e,null,{flush:"sync"})}const Jl={};function Fe(e,t,n){return Na(e,t,n)}function Na(e,t,{immediate:n,deep:r,flush:s,onTrack:o,onTrigger:l}=St){const u=yh()===(Ht==null?void 0:Ht.scope)?Ht:null;let f,d=!1,h=!1;if(xt(e)?(f=()=>e.value,d=Sa(e)):ai(e)?(f=()=>e,r=!0):Re(e)?(h=!0,d=e.some(C=>ai(C)||Sa(C)),f=()=>e.map(C=>{if(xt(C))return C.value;if(ai(C))return gs(C);if(qe(C))return li(C,u,2)})):qe(e)?t?f=()=>li(e,u,2):f=()=>{if(!(u&&u.isUnmounted))return m&&m(),Un(e,u,3,[v])}:f=yr,t&&r){const C=f;f=()=>gs(C())}let m,v=C=>{m=x.onStop=()=>{li(C,u,4)}},p;if(yo)if(v=yr,t?n&&Un(t,u,3,[f(),h?[]:void 0,v]):f(),s==="sync"){const C=S0();p=C.__watcherHandles||(C.__watcherHandles=[])}else return yr;let b=h?new Array(e.length).fill(Jl):Jl;const S=()=>{if(x.active)if(t){const C=x.run();(r||d||(h?C.some((V,I)=>go(V,b[I])):go(C,b)))&&(m&&m(),Un(t,u,3,[C,b===Jl?void 0:h&&b[0]===Jl?[]:b,v]),b=C)}else x.run()};S.allowRecurse=!!t;let T;s==="sync"?T=S:s==="post"?T=()=>on(S,u&&u.suspense):(S.pre=!0,u&&(S.id=u.uid),T=()=>Zu(S));const x=new $a(f,T);t?n?S():b=x.run():s==="post"?on(x.run.bind(x),u&&u.suspense):x.run();const w=()=>{x.stop(),u&&u.scope&&mh(u.scope.effects,x)};return p&&p.push(w),w}function eR(e,t,n){const r=this.proxy,s=Ft(e)?e.includes(".")?Gy(r,e):()=>r[e]:e.bind(r,r);let o;qe(t)?o=t:(o=t.handler,n=t);const l=Ht;Wi(this);const u=Na(s,o.bind(r),n);return l?Wi(l):Di(),u}function Gy(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function gs(e,t){if(!Pt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),xt(e))gs(e.value,t);else if(Re(e))for(let n=0;n<e.length;n++)gs(e[n],t);else if(Ts(e)||co(e))e.forEach(n=>{gs(n,t)});else if(_y(e))for(const n in e)gs(e[n],t);return e}function Ph(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Gn(()=>{e.isMounted=!0}),Ln(()=>{e.isUnmounting=!0}),e}const rr=[Function,Array],tR={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:rr,onEnter:rr,onAfterEnter:rr,onEnterCancelled:rr,onBeforeLeave:rr,onLeave:rr,onAfterLeave:rr,onLeaveCancelled:rr,onBeforeAppear:rr,onAppear:rr,onAfterAppear:rr,onAppearCancelled:rr},setup(e,{slots:t}){const n=kr(),r=Ph();let s;return()=>{const o=t.default&&Qu(t.default(),!0);if(!o||!o.length)return;let l=o[0];if(o.length>1){for(const S of o)if(S.type!==mn){l=S;break}}const u=Ze(e),{mode:f}=u;if(r.isLeaving)return Gf(l);const d=yp(l);if(!d)return Gf(l);const h=po(d,u,r,n);xs(d,h);const m=n.subTree,v=m&&yp(m);let p=!1;const{getTransitionKey:b}=d.type;if(b){const S=b();s===void 0?s=S:S!==s&&(s=S,p=!0)}if(v&&v.type!==mn&&(!gr(d,v)||p)){const S=po(v,u,r,n);if(xs(v,S),f==="out-in")return r.isLeaving=!0,S.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Gf(l);f==="in-out"&&d.type!==mn&&(S.delayLeave=(T,x,w)=>{const C=jy(r,v);C[String(v.key)]=v,T._leaveCb=()=>{x(),T._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=w})}return l}}},Rh=tR;function jy(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function po(e,t,n,r){const{appear:s,mode:o,persisted:l=!1,onBeforeEnter:u,onEnter:f,onAfterEnter:d,onEnterCancelled:h,onBeforeLeave:m,onLeave:v,onAfterLeave:p,onLeaveCancelled:b,onBeforeAppear:S,onAppear:T,onAfterAppear:x,onAppearCancelled:w}=t,C=String(e.key),V=jy(n,e),I=(k,H)=>{k&&Un(k,r,9,H)},M=(k,H)=>{const z=H[1];I(k,H),Re(k)?k.every(D=>D.length<=1)&&z():k.length<=1&&z()},O={mode:o,persisted:l,beforeEnter(k){let H=u;if(!n.isMounted)if(s)H=S||u;else return;k._leaveCb&&k._leaveCb(!0);const z=V[C];z&&gr(e,z)&&z.el._leaveCb&&z.el._leaveCb(),I(H,[k])},enter(k){let H=f,z=d,D=h;if(!n.isMounted)if(s)H=T||f,z=x||d,D=w||h;else return;let U=!1;const q=k._enterCb=G=>{U||(U=!0,G?I(D,[k]):I(z,[k]),O.delayedLeave&&O.delayedLeave(),k._enterCb=void 0)};H?M(H,[k,q]):q()},leave(k,H){const z=String(e.key);if(k._enterCb&&k._enterCb(!0),n.isUnmounting)return H();I(m,[k]);let D=!1;const U=k._leaveCb=q=>{D||(D=!0,H(),q?I(b,[k]):I(p,[k]),k._leaveCb=void 0,V[z]===e&&delete V[z])};V[z]=e,v?M(v,[k,U]):U()},clone(k){return po(k,t,n,r)}};return O}function Gf(e){if(Ua(e))return e=wr(e),e.children=null,e}function yp(e){return Ua(e)?e.children?e.children[0]:void 0:e}function xs(e,t){e.shapeFlag&6&&e.component?xs(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 Qu(e,t=!1,n){let r=[],s=0;for(let o=0;o<e.length;o++){let l=e[o];const u=n==null?l.key:String(n)+String(l.key!=null?l.key:o);l.type===Ke?(l.patchFlag&128&&s++,r=r.concat(Qu(l.children,t,u))):(t||l.type!==mn)&&r.push(u!=null?wr(l,{key:u}):l)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function Lo(e){return qe(e)?{setup:e,name:e.name}:e}const _s=e=>!!e.type.__asyncLoader;function Ih(e){qe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,timeout:o,suspensible:l=!0,onError:u}=e;let f=null,d,h=0;const m=()=>(h++,f=null,v()),v=()=>{let p;return f||(p=f=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),u)return new Promise((S,T)=>{u(b,()=>S(m()),()=>T(b),h+1)});throw b}).then(b=>p!==f&&f?f:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),d=b,b)))};return Lo({name:"AsyncComponentWrapper",__asyncLoader:v,get __asyncResolved(){return d},setup(){const p=Ht;if(d)return()=>jf(d,p);const b=w=>{f=null,Ps(w,p,13,!r)};if(l&&p.suspense||yo)return v().then(w=>()=>jf(w,p)).catch(w=>(b(w),()=>r?y(r,{error:w}):null));const S=X(!1),T=X(),x=X(!!s);return s&&setTimeout(()=>{x.value=!1},s),o!=null&&setTimeout(()=>{if(!S.value&&!T.value){const w=new Error(`Async component timed out after ${o}ms.`);b(w),T.value=w}},o),v().then(()=>{S.value=!0,p.parent&&Ua(p.parent.vnode)&&Zu(p.parent.update)}).catch(w=>{b(w),T.value=w}),()=>{if(S.value&&d)return jf(d,p);if(T.value&&r)return y(r,{error:T.value});if(n&&!x.value)return y(n)}}})}function jf(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,l=y(e,r,s);return l.ref=n,l.ce=o,delete t.vnode.ce,l}const Ua=e=>e.type.__isKeepAlive,nR={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=kr(),r=n.ctx;if(!r.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const s=new Map,o=new Set;let l=null;const u=n.suspense,{renderer:{p:f,m:d,um:h,o:{createElement:m}}}=r,v=m("div");r.activate=(w,C,V,I,M)=>{const O=w.component;d(w,C,V,0,u),f(O.vnode,w,C,V,O,u,I,w.slotScopeIds,M),on(()=>{O.isDeactivated=!1,O.a&&fo(O.a);const k=w.props&&w.props.onVnodeMounted;k&&Pn(k,O.parent,w)},u)},r.deactivate=w=>{const C=w.component;d(w,v,null,1,u),on(()=>{C.da&&fo(C.da);const V=w.props&&w.props.onVnodeUnmounted;V&&Pn(V,C.parent,w),C.isDeactivated=!0},u)};function p(w){Kf(w),h(w,n,u,!0)}function b(w){s.forEach((C,V)=>{const I=Ld(C.type);I&&(!w||!w(I))&&S(V)})}function S(w){const C=s.get(w);!l||!gr(C,l)?p(C):l&&Kf(l),s.delete(w),o.delete(w)}Fe(()=>[e.include,e.exclude],([w,C])=>{w&&b(V=>fa(w,V)),C&&b(V=>!fa(C,V))},{flush:"post",deep:!0});let T=null;const x=()=>{T!=null&&s.set(T,qf(n.subTree))};return Gn(x),Wa(x),Ln(()=>{s.forEach(w=>{const{subTree:C,suspense:V}=n,I=qf(C);if(w.type===I.type&&w.key===I.key){Kf(I);const M=I.component.da;M&&on(M,V);return}p(w)})}),()=>{if(T=null,!t.default)return null;const w=t.default(),C=w[0];if(w.length>1)return l=null,w;if(!zi(C)||!(C.shapeFlag&4)&&!(C.shapeFlag&128))return l=null,C;let V=qf(C);const I=V.type,M=Ld(_s(V)?V.type.__asyncResolved||{}:I),{include:O,exclude:k,max:H}=e;if(O&&(!M||!fa(O,M))||k&&M&&fa(k,M))return l=V,C;const z=V.key==null?I:V.key,D=s.get(z);return V.el&&(V=wr(V),C.shapeFlag&128&&(C.ssContent=V)),T=z,D?(V.el=D.el,V.component=D.component,V.transition&&xs(V,V.transition),V.shapeFlag|=512,o.delete(z),o.add(z)):(o.add(z),H&&o.size>parseInt(H,10)&&S(o.values().next().value)),V.shapeFlag|=256,l=V,Uy(C.type)?C:V}}},rR=nR;function fa(e,t){return Re(e)?e.some(n=>fa(n,t)):Ft(e)?e.split(",").includes(t):Gk(e)?e.test(t):!1}function Lh(e,t){Ky(e,"a",t)}function Oh(e,t){Ky(e,"da",t)}function Ky(e,t,n=Ht){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(ec(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Ua(s.parent.vnode)&&iR(r,t,n,s),s=s.parent}}function iR(e,t,n,r){const s=ec(t,e,r,!0);tc(()=>{mh(r[t],s)},n)}function Kf(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function qf(e){return e.shapeFlag&128?e.ssContent:e}function ec(e,t,n=Ht,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;Po(),Wi(n);const u=Un(t,n,e,l);return Di(),Ro(),u});return r?s.unshift(o):s.push(o),o}}const hi=e=>(t,n=Ht)=>(!yo||e==="sp")&&ec(e,(...r)=>t(...r),n),za=hi("bm"),Gn=hi("m"),qy=hi("bu"),Wa=hi("u"),Ln=hi("bum"),tc=hi("um"),Yy=hi("sp"),Zy=hi("rtg"),Xy=hi("rtc");function Jy(e,t=Ht){ec("ec",e,t)}function Kt(e,t){const n=an;if(n===null)return e;const r=rc(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[l,u,f,d=St]=t[o];l&&(qe(l)&&(l={mounted:l,updated:l}),l.deep&&gs(u),s.push({dir:l,instance:r,value:u,oldValue:void 0,arg:f,modifiers:d}))}return e}function Fr(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let l=0;l<s.length;l++){const u=s[l];o&&(u.oldValue=o[l].value);let f=u.dir[r];f&&(Po(),Un(f,n,8,[e.el,u,e,t]),Ro())}}const Vh="components",sR="directives";function Ot(e,t){return Mh(Vh,e,!0,t)||e}const Qy=Symbol();function Ls(e){return Ft(e)?Mh(Vh,e,!1)||e:e||Qy}function _r(e){return Mh(sR,e)}function Mh(e,t,n=!0,r=!1){const s=an||Ht;if(s){const o=s.type;if(e===Vh){const u=Ld(o,!1);if(u&&(u===t||u===hn(t)||u===ks(hn(t))))return o}const l=bp(s[e]||o[e],t)||bp(s.appContext[e],t);return!l&&r?o:l}}function bp(e,t){return e&&(e[t]||e[hn(t)]||e[ks(hn(t))])}function $r(e,t,n,r){let s;const o=n&&n[r];if(Re(e)||Ft(e)){s=new Array(e.length);for(let l=0,u=e.length;l<u;l++)s[l]=t(e[l],l,void 0,o&&o[l])}else if(typeof e=="number"){s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,o&&o[l])}else if(Pt(e))if(e[Symbol.iterator])s=Array.from(e,(l,u)=>t(l,u,void 0,o&&o[u]));else{const l=Object.keys(e);s=new Array(l.length);for(let u=0,f=l.length;u<f;u++){const d=l[u];s[u]=t(e[d],d,u,o&&o[u])}}else s=[];return n&&(n[r]=s),s}function oR(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Re(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.key?(...s)=>{const o=r.fn(...s);return o&&(o.key=r.key),o}:r.fn)}return e}function aR(e,t,n={},r,s){if(an.isCE||an.parent&&_s(an.parent)&&an.parent.isCE)return t!=="default"&&(n.name=t),y("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),se();const l=o&&e0(o(n)),u=je(Ke,{key:n.key||l&&l.key||`_${t}`},l||(r?r():[]),l&&e._===1?64:-2);return!s&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),o&&o._c&&(o._d=!0),u}function e0(e){return e.some(t=>zi(t)?!(t.type===mn||t.type===Ke&&!e0(t.children)):!0)?e:null}function uu(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:ha(r)]=e[r];return n}const Sd=e=>e?p0(e)?rc(e)||e.proxy:Sd(e.parent):null,ma=Nt(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=>Sd(e.parent),$root:e=>Sd(e.root),$emit:e=>e.emit,$options:e=>Fh(e),$forceUpdate:e=>e.f||(e.f=()=>Zu(e.update)),$nextTick:e=>e.n||(e.n=qt.bind(e.proxy)),$watch:e=>eR.bind(e)}),Yf=(e,t)=>e!==St&&!e.__isScriptSetup&&ct(e,t),xd={get({_:e},t){const{ctx:n,setupState:r,data:s,props:o,accessCache:l,type:u,appContext:f}=e;let d;if(t[0]!=="$"){const p=l[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(Yf(r,t))return l[t]=1,r[t];if(s!==St&&ct(s,t))return l[t]=2,s[t];if((d=e.propsOptions[0])&&ct(d,t))return l[t]=3,o[t];if(n!==St&&ct(n,t))return l[t]=4,n[t];Ad&&(l[t]=0)}}const h=ma[t];let m,v;if(h)return t==="$attrs"&&In(e,"get",t),h(e);if((m=u.__cssModules)&&(m=m[t]))return m;if(n!==St&&ct(n,t))return l[t]=4,n[t];if(v=f.config.globalProperties,ct(v,t))return v[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Yf(s,t)?(s[t]=n,!0):r!==St&&ct(r,t)?(r[t]=n,!0):ct(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},l){let u;return!!n[l]||e!==St&&ct(e,l)||Yf(t,l)||(u=o[0])&&ct(u,l)||ct(r,l)||ct(ma,l)||ct(s.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ct(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},lR=Nt({},xd,{get(e,t){if(t!==Symbol.unscopables)return xd.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Vk(t)}});let Ad=!0;function uR(e){const t=Fh(e),n=e.proxy,r=e.ctx;Ad=!1,t.beforeCreate&&_p(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:l,watch:u,provide:f,inject:d,created:h,beforeMount:m,mounted:v,beforeUpdate:p,updated:b,activated:S,deactivated:T,beforeDestroy:x,beforeUnmount:w,destroyed:C,unmounted:V,render:I,renderTracked:M,renderTriggered:O,errorCaptured:k,serverPrefetch:H,expose:z,inheritAttrs:D,components:U,directives:q,filters:G}=t;if(d&&cR(d,r,null,e.appContext.config.unwrapInjectedRef),l)for(const de in l){const he=l[de];qe(he)&&(r[de]=he.bind(n))}if(s){const de=s.call(n,n);Pt(de)&&(e.data=Jt(de))}if(Ad=!0,o)for(const de in o){const he=o[de],_e=qe(he)?he.bind(n,n):qe(he.get)?he.get.bind(n,n):yr,me=!qe(he)&&qe(he.set)?he.set.bind(n):yr,be=P({get:_e,set:me});Object.defineProperty(r,de,{enumerable:!0,configurable:!0,get:()=>be.value,set:le=>be.value=le})}if(u)for(const de in u)t0(u[de],r,n,de);if(f){const de=qe(f)?f.call(n):f;Reflect.ownKeys(de).forEach(he=>{kt(he,de[he])})}h&&_p(h,e,"c");function fe(de,he){Re(he)?he.forEach(_e=>de(_e.bind(n))):he&&de(he.bind(n))}if(fe(za,m),fe(Gn,v),fe(qy,p),fe(Wa,b),fe(Lh,S),fe(Oh,T),fe(Jy,k),fe(Xy,M),fe(Zy,O),fe(Ln,w),fe(tc,V),fe(Yy,H),Re(z))if(z.length){const de=e.exposed||(e.exposed={});z.forEach(he=>{Object.defineProperty(de,he,{get:()=>n[he],set:_e=>n[he]=_e})})}else e.exposed||(e.exposed={});I&&e.render===yr&&(e.render=I),D!=null&&(e.inheritAttrs=D),U&&(e.components=U),q&&(e.directives=q)}function cR(e,t,n=yr,r=!1){Re(e)&&(e=Ed(e));for(const s in e){const o=e[s];let l;Pt(o)?"default"in o?l=nt(o.from||s,o.default,!0):l=nt(o.from||s):l=nt(o),xt(l)&&r?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>l.value,set:u=>l.value=u}):t[s]=l}}function _p(e,t,n){Un(Re(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function t0(e,t,n,r){const s=r.includes(".")?Gy(n,r):()=>n[r];if(Ft(e)){const o=t[e];qe(o)&&Fe(s,o)}else if(qe(e))Fe(s,e.bind(n));else if(Pt(e))if(Re(e))e.forEach(o=>t0(o,t,n,r));else{const o=qe(e.handler)?e.handler.bind(n):t[e.handler];qe(o)&&Fe(s,o,e)}}function Fh(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,u=o.get(t);let f;return u?f=u:!s.length&&!n&&!r?f=t:(f={},s.length&&s.forEach(d=>Su(f,d,l,!0)),Su(f,t,l)),Pt(t)&&o.set(t,f),f}function Su(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Su(e,o,n,!0),s&&s.forEach(l=>Su(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const u=fR[l]||n&&n[l];e[l]=u?u(e[l],t[l]):t[l]}return e}const fR={data:wp,props:ds,emits:ds,methods:ds,computed:ds,beforeCreate:_n,created:_n,beforeMount:_n,mounted:_n,beforeUpdate:_n,updated:_n,beforeDestroy:_n,beforeUnmount:_n,destroyed:_n,unmounted:_n,activated:_n,deactivated:_n,errorCaptured:_n,serverPrefetch:_n,components:ds,directives:ds,watch:hR,provide:wp,inject:dR};function wp(e,t){return t?e?function(){return Nt(qe(e)?e.call(this,this):e,qe(t)?t.call(this,this):t)}:t:e}function dR(e,t){return ds(Ed(e),Ed(t))}function Ed(e){if(Re(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _n(e,t){return e?[...new Set([].concat(e,t))]:t}function ds(e,t){return e?Nt(Nt(Object.create(null),e),t):t}function hR(e,t){if(!e)return t;if(!t)return e;const n=Nt(Object.create(null),e);for(const r in t)n[r]=_n(e[r],t[r]);return n}function mR(e,t,n,r=!1){const s={},o={};yu(o,nc,1),e.propsDefaults=Object.create(null),n0(e,t,s,o);for(const l in e.propsOptions[0])l in s||(s[l]=void 0);n?e.props=r?s:Vy(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function vR(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:l}}=e,u=Ze(s),[f]=e.propsOptions;let d=!1;if((r||l>0)&&!(l&16)){if(l&8){const h=e.vnode.dynamicProps;for(let m=0;m<h.length;m++){let v=h[m];if(Xu(e.emitsOptions,v))continue;const p=t[v];if(f)if(ct(o,v))p!==o[v]&&(o[v]=p,d=!0);else{const b=hn(v);s[b]=Td(f,u,b,p,e,!1)}else p!==o[v]&&(o[v]=p,d=!0)}}}else{n0(e,t,s,o)&&(d=!0);let h;for(const m in u)(!t||!ct(t,m)&&((h=sr(m))===m||!ct(t,h)))&&(f?n&&(n[m]!==void 0||n[h]!==void 0)&&(s[m]=Td(f,u,m,void 0,e,!0)):delete s[m]);if(o!==u)for(const m in o)(!t||!ct(t,m))&&(delete o[m],d=!0)}d&&fi(e,"set","$attrs")}function n0(e,t,n,r){const[s,o]=e.propsOptions;let l=!1,u;if(t)for(let f in t){if(da(f))continue;const d=t[f];let h;s&&ct(s,h=hn(f))?!o||!o.includes(h)?n[h]=d:(u||(u={}))[h]=d:Xu(e.emitsOptions,f)||(!(f in r)||d!==r[f])&&(r[f]=d,l=!0)}if(o){const f=Ze(n),d=u||St;for(let h=0;h<o.length;h++){const m=o[h];n[m]=Td(s,f,m,d[m],e,!ct(d,m))}}return l}function Td(e,t,n,r,s,o){const l=e[n];if(l!=null){const u=ct(l,"default");if(u&&r===void 0){const f=l.default;if(l.type!==Function&&qe(f)){const{propsDefaults:d}=s;n in d?r=d[n]:(Wi(s),r=d[n]=f.call(null,t),Di())}else r=f}l[0]&&(o&&!u?r=!1:l[1]&&(r===""||r===sr(n))&&(r=!0))}return r}function r0(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const o=e.props,l={},u=[];let f=!1;if(!qe(e)){const h=m=>{f=!0;const[v,p]=r0(m,t,!0);Nt(l,v),p&&u.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!o&&!f)return Pt(e)&&r.set(e,uo),uo;if(Re(o))for(let h=0;h<o.length;h++){const m=hn(o[h]);Cp(m)&&(l[m]=St)}else if(o)for(const h in o){const m=hn(h);if(Cp(m)){const v=o[h],p=l[m]=Re(v)||qe(v)?{type:v}:Object.assign({},v);if(p){const b=Ap(Boolean,p.type),S=Ap(String,p.type);p[0]=b>-1,p[1]=S<0||b<S,(b>-1||ct(p,"default"))&&u.push(m)}}}const d=[l,u];return Pt(e)&&r.set(e,d),d}function Cp(e){return e[0]!=="$"}function Sp(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function xp(e,t){return Sp(e)===Sp(t)}function Ap(e,t){return Re(t)?t.findIndex(n=>xp(n,e)):qe(t)&&xp(t,e)?0:-1}const i0=e=>e[0]==="_"||e==="$stable",Bh=e=>Re(e)?e.map(Hn):[Hn(e)],gR=(e,t,n)=>{if(t._n)return t;const r=ie((...s)=>Bh(t(...s)),n);return r._c=!1,r},s0=(e,t,n)=>{const r=e._ctx;for(const s in e){if(i0(s))continue;const o=e[s];if(qe(o))t[s]=gR(s,o,r);else if(o!=null){const l=Bh(o);t[s]=()=>l}}},o0=(e,t)=>{const n=Bh(t);e.slots.default=()=>n},pR=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ze(t),yu(t,"_",n)):s0(t,e.slots={})}else e.slots={},t&&o0(e,t);yu(e.slots,nc,1)},yR=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,l=St;if(r.shapeFlag&32){const u=t._;u?n&&u===1?o=!1:(Nt(s,t),!n&&u===1&&delete s._):(o=!t.$stable,s0(t,s)),l=t}else t&&(o0(e,t),l={default:1});if(o)for(const u in s)!i0(u)&&!(u in l)&&delete s[u]};function a0(){return{app:null,config:{isNativeTag:Uk,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let bR=0;function _R(e,t){return function(r,s=null){qe(r)||(r=Object.assign({},r)),s!=null&&!Pt(s)&&(s=null);const o=a0(),l=new Set;let u=!1;const f=o.app={_uid:bR++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:A0,get config(){return o.config},set config(d){},use(d,...h){return l.has(d)||(d&&qe(d.install)?(l.add(d),d.install(f,...h)):qe(d)&&(l.add(d),d(f,...h))),f},mixin(d){return o.mixins.includes(d)||o.mixins.push(d),f},component(d,h){return h?(o.components[d]=h,f):o.components[d]},directive(d,h){return h?(o.directives[d]=h,f):o.directives[d]},mount(d,h,m){if(!u){const v=y(r,s);return v.appContext=o,h&&t?t(v,d):e(v,d,m),u=!0,f._container=d,d.__vue_app__=f,rc(v.component)||v.component.proxy}},unmount(){u&&(e(null,f._container),delete f._container.__vue_app__)},provide(d,h){return o.provides[d]=h,f}};return f}}function xu(e,t,n,r,s=!1){if(Re(e)){e.forEach((v,p)=>xu(v,t&&(Re(t)?t[p]:t),n,r,s));return}if(_s(r)&&!s)return;const o=r.shapeFlag&4?rc(r.component)||r.component.proxy:r.el,l=s?null:o,{i:u,r:f}=e,d=t&&t.r,h=u.refs===St?u.refs={}:u.refs,m=u.setupState;if(d!=null&&d!==f&&(Ft(d)?(h[d]=null,ct(m,d)&&(m[d]=null)):xt(d)&&(d.value=null)),qe(f))li(f,u,12,[l,h]);else{const v=Ft(f),p=xt(f);if(v||p){const b=()=>{if(e.f){const S=v?ct(m,f)?m[f]:h[f]:f.value;s?Re(S)&&mh(S,o):Re(S)?S.includes(o)||S.push(o):v?(h[f]=[o],ct(m,f)&&(m[f]=h[f])):(f.value=[o],e.k&&(h[e.k]=f.value))}else v?(h[f]=l,ct(m,f)&&(m[f]=l)):p&&(f.value=l,e.k&&(h[e.k]=l))};l?(b.id=-1,on(b,n)):b()}}}let Pi=!1;const Ql=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",eu=e=>e.nodeType===8;function wR(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:l,remove:u,insert:f,createComment:d}}=e,h=(x,w)=>{if(!w.hasChildNodes()){n(null,x,w),Cu(),w._vnode=x;return}Pi=!1,m(w.firstChild,x,null,null,null),Cu(),w._vnode=x,Pi&&console.error("Hydration completed but contains mismatches.")},m=(x,w,C,V,I,M=!1)=>{const O=eu(x)&&x.data==="[",k=()=>S(x,w,C,V,I,O),{type:H,ref:z,shapeFlag:D,patchFlag:U}=w;let q=x.nodeType;w.el=x,U===-2&&(M=!1,w.dynamicChildren=null);let G=null;switch(H){case Ui:q!==3?w.children===""?(f(w.el=s(""),l(x),x),G=x):G=k():(x.data!==w.children&&(Pi=!0,x.data=w.children),G=o(x));break;case mn:q!==8||O?G=k():G=o(x);break;case ws:if(O&&(x=o(x),q=x.nodeType),q===1||q===3){G=x;const ge=!w.children.length;for(let fe=0;fe<w.staticCount;fe++)ge&&(w.children+=G.nodeType===1?G.outerHTML:G.data),fe===w.staticCount-1&&(w.anchor=G),G=o(G);return O?o(G):G}else k();break;case Ke:O?G=b(x,w,C,V,I,M):G=k();break;default:if(D&1)q!==1||w.type.toLowerCase()!==x.tagName.toLowerCase()?G=k():G=v(x,w,C,V,I,M);else if(D&6){w.slotScopeIds=I;const ge=l(x);if(t(w,ge,null,C,V,Ql(ge),M),G=O?T(x):o(x),G&&eu(G)&&G.data==="teleport end"&&(G=o(G)),_s(w)){let fe;O?(fe=y(Ke),fe.anchor=G?G.previousSibling:ge.lastChild):fe=x.nodeType===3?ke(""):y("div"),fe.el=x,w.component.subTree=fe}}else D&64?q!==8?G=k():G=w.type.hydrate(x,w,C,V,I,M,e,p):D&128&&(G=w.type.hydrate(x,w,C,V,Ql(l(x)),I,M,e,m))}return z!=null&&xu(z,null,V,w),G},v=(x,w,C,V,I,M)=>{M=M||!!w.dynamicChildren;const{type:O,props:k,patchFlag:H,shapeFlag:z,dirs:D}=w,U=O==="input"&&D||O==="option";if(U||H!==-1){if(D&&Fr(w,null,C,"created"),k)if(U||!M||H&48)for(const G in k)(U&&G.endsWith("value")||Da(G)&&!da(G))&&r(x,G,null,k[G],!1,void 0,C);else k.onClick&&r(x,"onClick",null,k.onClick,!1,void 0,C);let q;if((q=k&&k.onVnodeBeforeMount)&&Pn(q,C,w),D&&Fr(w,null,C,"beforeMount"),((q=k&&k.onVnodeMounted)||D)&&zy(()=>{q&&Pn(q,C,w),D&&Fr(w,null,C,"mounted")},V),z&16&&!(k&&(k.innerHTML||k.textContent))){let G=p(x.firstChild,w,x,C,V,I,M);for(;G;){Pi=!0;const ge=G;G=G.nextSibling,u(ge)}}else z&8&&x.textContent!==w.children&&(Pi=!0,x.textContent=w.children)}return x.nextSibling},p=(x,w,C,V,I,M,O)=>{O=O||!!w.dynamicChildren;const k=w.children,H=k.length;for(let z=0;z<H;z++){const D=O?k[z]:k[z]=Hn(k[z]);if(x)x=m(x,D,V,I,M,O);else{if(D.type===Ui&&!D.children)continue;Pi=!0,n(null,D,C,null,V,I,Ql(C),M)}}return x},b=(x,w,C,V,I,M)=>{const{slotScopeIds:O}=w;O&&(I=I?I.concat(O):O);const k=l(x),H=p(o(x),w,k,C,V,I,M);return H&&eu(H)&&H.data==="]"?o(w.anchor=H):(Pi=!0,f(w.anchor=d("]"),k,H),H)},S=(x,w,C,V,I,M)=>{if(Pi=!0,w.el=null,M){const H=T(x);for(;;){const z=o(x);if(z&&z!==H)u(z);else break}}const O=o(x),k=l(x);return u(x),n(null,w,k,O,C,V,Ql(k),I),O},T=x=>{let w=0;for(;x;)if(x=o(x),x&&eu(x)&&(x.data==="["&&w++,x.data==="]")){if(w===0)return o(x);w--}return x};return[h,m]}const on=zy;function l0(e){return c0(e)}function u0(e){return c0(e,wR)}function c0(e,t){const n=Yk();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:l,createText:u,createComment:f,setText:d,setElementText:h,parentNode:m,nextSibling:v,setScopeId:p=yr,insertStaticContent:b}=e,S=(R,B,K,Q=null,oe=null,ce=null,Ce=!1,ve=null,pe=!!B.dynamicChildren)=>{if(R===B)return;R&&!gr(R,B)&&(Q=ue(R),le(R,oe,ce,!0),R=null),B.patchFlag===-2&&(pe=!1,B.dynamicChildren=null);const{type:re,ref:Le,shapeFlag:Te}=B;switch(re){case Ui:T(R,B,K,Q);break;case mn:x(R,B,K,Q);break;case ws:R==null&&w(B,K,Q,Ce);break;case Ke:U(R,B,K,Q,oe,ce,Ce,ve,pe);break;default:Te&1?I(R,B,K,Q,oe,ce,Ce,ve,pe):Te&6?q(R,B,K,Q,oe,ce,Ce,ve,pe):(Te&64||Te&128)&&re.process(R,B,K,Q,oe,ce,Ce,ve,pe,He)}Le!=null&&oe&&xu(Le,R&&R.ref,ce,B||R,!B)},T=(R,B,K,Q)=>{if(R==null)r(B.el=u(B.children),K,Q);else{const oe=B.el=R.el;B.children!==R.children&&d(oe,B.children)}},x=(R,B,K,Q)=>{R==null?r(B.el=f(B.children||""),K,Q):B.el=R.el},w=(R,B,K,Q)=>{[R.el,R.anchor]=b(R.children,B,K,Q,R.el,R.anchor)},C=({el:R,anchor:B},K,Q)=>{let oe;for(;R&&R!==B;)oe=v(R),r(R,K,Q),R=oe;r(B,K,Q)},V=({el:R,anchor:B})=>{let K;for(;R&&R!==B;)K=v(R),s(R),R=K;s(B)},I=(R,B,K,Q,oe,ce,Ce,ve,pe)=>{Ce=Ce||B.type==="svg",R==null?M(B,K,Q,oe,ce,Ce,ve,pe):H(R,B,oe,ce,Ce,ve,pe)},M=(R,B,K,Q,oe,ce,Ce,ve)=>{let pe,re;const{type:Le,props:Te,shapeFlag:De,transition:ze,dirs:rt}=R;if(pe=R.el=l(R.type,ce,Te&&Te.is,Te),De&8?h(pe,R.children):De&16&&k(R.children,pe,null,Q,oe,ce&&Le!=="foreignObject",Ce,ve),rt&&Fr(R,null,Q,"created"),O(pe,R,R.scopeId,Ce,Q),Te){for(const lt in Te)lt!=="value"&&!da(lt)&&o(pe,lt,null,Te[lt],ce,R.children,Q,oe,Z);"value"in Te&&o(pe,"value",null,Te.value),(re=Te.onVnodeBeforeMount)&&Pn(re,Q,R)}rt&&Fr(R,null,Q,"beforeMount");const ht=(!oe||oe&&!oe.pendingBranch)&&ze&&!ze.persisted;ht&&ze.beforeEnter(pe),r(pe,B,K),((re=Te&&Te.onVnodeMounted)||ht||rt)&&on(()=>{re&&Pn(re,Q,R),ht&&ze.enter(pe),rt&&Fr(R,null,Q,"mounted")},oe)},O=(R,B,K,Q,oe)=>{if(K&&p(R,K),Q)for(let ce=0;ce<Q.length;ce++)p(R,Q[ce]);if(oe){let ce=oe.subTree;if(B===ce){const Ce=oe.vnode;O(R,Ce,Ce.scopeId,Ce.slotScopeIds,oe.parent)}}},k=(R,B,K,Q,oe,ce,Ce,ve,pe=0)=>{for(let re=pe;re<R.length;re++){const Le=R[re]=ve?Mi(R[re]):Hn(R[re]);S(null,Le,B,K,Q,oe,ce,Ce,ve)}},H=(R,B,K,Q,oe,ce,Ce)=>{const ve=B.el=R.el;let{patchFlag:pe,dynamicChildren:re,dirs:Le}=B;pe|=R.patchFlag&16;const Te=R.props||St,De=B.props||St;let ze;K&&as(K,!1),(ze=De.onVnodeBeforeUpdate)&&Pn(ze,K,B,R),Le&&Fr(B,R,K,"beforeUpdate"),K&&as(K,!0);const rt=oe&&B.type!=="foreignObject";if(re?z(R.dynamicChildren,re,ve,K,Q,rt,ce):Ce||he(R,B,ve,null,K,Q,rt,ce,!1),pe>0){if(pe&16)D(ve,B,Te,De,K,Q,oe);else if(pe&2&&Te.class!==De.class&&o(ve,"class",null,De.class,oe),pe&4&&o(ve,"style",Te.style,De.style,oe),pe&8){const ht=B.dynamicProps;for(let lt=0;lt<ht.length;lt++){const Vt=ht[lt],gn=Te[Vt],Lr=De[Vt];(Lr!==gn||Vt==="value")&&o(ve,Vt,gn,Lr,oe,R.children,K,Q,Z)}}pe&1&&R.children!==B.children&&h(ve,B.children)}else!Ce&&re==null&&D(ve,B,Te,De,K,Q,oe);((ze=De.onVnodeUpdated)||Le)&&on(()=>{ze&&Pn(ze,K,B,R),Le&&Fr(B,R,K,"updated")},Q)},z=(R,B,K,Q,oe,ce,Ce)=>{for(let ve=0;ve<B.length;ve++){const pe=R[ve],re=B[ve],Le=pe.el&&(pe.type===Ke||!gr(pe,re)||pe.shapeFlag&70)?m(pe.el):K;S(pe,re,Le,null,Q,oe,ce,Ce,!0)}},D=(R,B,K,Q,oe,ce,Ce)=>{if(K!==Q){if(K!==St)for(const ve in K)!da(ve)&&!(ve in Q)&&o(R,ve,K[ve],null,Ce,B.children,oe,ce,Z);for(const ve in Q){if(da(ve))continue;const pe=Q[ve],re=K[ve];pe!==re&&ve!=="value"&&o(R,ve,re,pe,Ce,B.children,oe,ce,Z)}"value"in Q&&o(R,"value",K.value,Q.value)}},U=(R,B,K,Q,oe,ce,Ce,ve,pe)=>{const re=B.el=R?R.el:u(""),Le=B.anchor=R?R.anchor:u("");let{patchFlag:Te,dynamicChildren:De,slotScopeIds:ze}=B;ze&&(ve=ve?ve.concat(ze):ze),R==null?(r(re,K,Q),r(Le,K,Q),k(B.children,K,Le,oe,ce,Ce,ve,pe)):Te>0&&Te&64&&De&&R.dynamicChildren?(z(R.dynamicChildren,De,K,oe,ce,Ce,ve),(B.key!=null||oe&&B===oe.subTree)&&Dh(R,B,!0)):he(R,B,K,Le,oe,ce,Ce,ve,pe)},q=(R,B,K,Q,oe,ce,Ce,ve,pe)=>{B.slotScopeIds=ve,R==null?B.shapeFlag&512?oe.ctx.activate(B,K,Q,Ce,pe):G(B,K,Q,oe,ce,Ce,pe):ge(R,B,pe)},G=(R,B,K,Q,oe,ce,Ce)=>{const ve=R.component=g0(R,Q,oe);if(Ua(R)&&(ve.ctx.renderer=He),y0(ve),ve.asyncDep){if(oe&&oe.registerDep(ve,fe),!R.el){const pe=ve.subTree=y(mn);x(null,pe,B,K)}return}fe(ve,R,B,K,oe,ce,Ce)},ge=(R,B,K)=>{const Q=B.component=R.component;if(jP(R,B,K))if(Q.asyncDep&&!Q.asyncResolved){de(Q,B,K);return}else Q.next=B,$P(Q.update),Q.update();else B.el=R.el,Q.vnode=B},fe=(R,B,K,Q,oe,ce,Ce)=>{const ve=()=>{if(R.isMounted){let{next:Le,bu:Te,u:De,parent:ze,vnode:rt}=R,ht=Le,lt;as(R,!1),Le?(Le.el=rt.el,de(R,Le,Ce)):Le=rt,Te&&fo(Te),(lt=Le.props&&Le.props.onVnodeBeforeUpdate)&&Pn(lt,ze,Le,rt),as(R,!0);const Vt=lu(R),gn=R.subTree;R.subTree=Vt,S(gn,Vt,m(gn.el),ue(gn),R,oe,ce),Le.el=Vt.el,ht===null&&Th(R,Vt.el),De&&on(De,oe),(lt=Le.props&&Le.props.onVnodeUpdated)&&on(()=>Pn(lt,ze,Le,rt),oe)}else{let Le;const{el:Te,props:De}=B,{bm:ze,m:rt,parent:ht}=R,lt=_s(B);if(as(R,!1),ze&&fo(ze),!lt&&(Le=De&&De.onVnodeBeforeMount)&&Pn(Le,ht,B),as(R,!0),Te&&$e){const Vt=()=>{R.subTree=lu(R),$e(Te,R.subTree,R,oe,null)};lt?B.type.__asyncLoader().then(()=>!R.isUnmounted&&Vt()):Vt()}else{const Vt=R.subTree=lu(R);S(null,Vt,K,Q,R,oe,ce),B.el=Vt.el}if(rt&&on(rt,oe),!lt&&(Le=De&&De.onVnodeMounted)){const Vt=B;on(()=>Pn(Le,ht,Vt),oe)}(B.shapeFlag&256||ht&&_s(ht.vnode)&&ht.vnode.shapeFlag&256)&&R.a&&on(R.a,oe),R.isMounted=!0,B=K=Q=null}},pe=R.effect=new $a(ve,()=>Zu(re),R.scope),re=R.update=()=>pe.run();re.id=R.uid,as(R,!0),re()},de=(R,B,K)=>{B.component=R;const Q=R.vnode.props;R.vnode=B,R.next=null,vR(R,B.props,Q,K),yR(R,B.children,K),Po(),vp(),Ro()},he=(R,B,K,Q,oe,ce,Ce,ve,pe=!1)=>{const re=R&&R.children,Le=R?R.shapeFlag:0,Te=B.children,{patchFlag:De,shapeFlag:ze}=B;if(De>0){if(De&128){me(re,Te,K,Q,oe,ce,Ce,ve,pe);return}else if(De&256){_e(re,Te,K,Q,oe,ce,Ce,ve,pe);return}}ze&8?(Le&16&&Z(re,oe,ce),Te!==re&&h(K,Te)):Le&16?ze&16?me(re,Te,K,Q,oe,ce,Ce,ve,pe):Z(re,oe,ce,!0):(Le&8&&h(K,""),ze&16&&k(Te,K,Q,oe,ce,Ce,ve,pe))},_e=(R,B,K,Q,oe,ce,Ce,ve,pe)=>{R=R||uo,B=B||uo;const re=R.length,Le=B.length,Te=Math.min(re,Le);let De;for(De=0;De<Te;De++){const ze=B[De]=pe?Mi(B[De]):Hn(B[De]);S(R[De],ze,K,null,oe,ce,Ce,ve,pe)}re>Le?Z(R,oe,ce,!0,!1,Te):k(B,K,Q,oe,ce,Ce,ve,pe,Te)},me=(R,B,K,Q,oe,ce,Ce,ve,pe)=>{let re=0;const Le=B.length;let Te=R.length-1,De=Le-1;for(;re<=Te&&re<=De;){const ze=R[re],rt=B[re]=pe?Mi(B[re]):Hn(B[re]);if(gr(ze,rt))S(ze,rt,K,null,oe,ce,Ce,ve,pe);else break;re++}for(;re<=Te&&re<=De;){const ze=R[Te],rt=B[De]=pe?Mi(B[De]):Hn(B[De]);if(gr(ze,rt))S(ze,rt,K,null,oe,ce,Ce,ve,pe);else break;Te--,De--}if(re>Te){if(re<=De){const ze=De+1,rt=ze<Le?B[ze].el:Q;for(;re<=De;)S(null,B[re]=pe?Mi(B[re]):Hn(B[re]),K,rt,oe,ce,Ce,ve,pe),re++}}else if(re>De)for(;re<=Te;)le(R[re],oe,ce,!0),re++;else{const ze=re,rt=re,ht=new Map;for(re=rt;re<=De;re++){const nn=B[re]=pe?Mi(B[re]):Hn(B[re]);nn.key!=null&&ht.set(nn.key,re)}let lt,Vt=0;const gn=De-rt+1;let Lr=!1,Fs=0;const Wr=new Array(gn);for(re=0;re<gn;re++)Wr[re]=0;for(re=ze;re<=Te;re++){const nn=R[re];if(Vt>=gn){le(nn,oe,ce,!0);continue}let xn;if(nn.key!=null)xn=ht.get(nn.key);else for(lt=rt;lt<=De;lt++)if(Wr[lt-rt]===0&&gr(nn,B[lt])){xn=lt;break}xn===void 0?le(nn,oe,ce,!0):(Wr[xn-rt]=re+1,xn>=Fs?Fs=xn:Lr=!0,S(nn,B[xn],K,null,oe,ce,Ce,ve,pe),Vt++)}const Bs=Lr?CR(Wr):uo;for(lt=Bs.length-1,re=gn-1;re>=0;re--){const nn=rt+re,xn=B[nn],Ds=nn+1<Le?B[nn+1].el:Q;Wr[re]===0?S(null,xn,K,Ds,oe,ce,Ce,ve,pe):Lr&&(lt<0||re!==Bs[lt]?be(xn,K,Ds,2):lt--)}}},be=(R,B,K,Q,oe=null)=>{const{el:ce,type:Ce,transition:ve,children:pe,shapeFlag:re}=R;if(re&6){be(R.component.subTree,B,K,Q);return}if(re&128){R.suspense.move(B,K,Q);return}if(re&64){Ce.move(R,B,K,He);return}if(Ce===Ke){r(ce,B,K);for(let Te=0;Te<pe.length;Te++)be(pe[Te],B,K,Q);r(R.anchor,B,K);return}if(Ce===ws){C(R,B,K);return}if(Q!==2&&re&1&&ve)if(Q===0)ve.beforeEnter(ce),r(ce,B,K),on(()=>ve.enter(ce),oe);else{const{leave:Te,delayLeave:De,afterLeave:ze}=ve,rt=()=>r(ce,B,K),ht=()=>{Te(ce,()=>{rt(),ze&&ze()})};De?De(ce,rt,ht):ht()}else r(ce,B,K)},le=(R,B,K,Q=!1,oe=!1)=>{const{type:ce,props:Ce,ref:ve,children:pe,dynamicChildren:re,shapeFlag:Le,patchFlag:Te,dirs:De}=R;if(ve!=null&&xu(ve,null,K,R,!0),Le&256){B.ctx.deactivate(R);return}const ze=Le&1&&De,rt=!_s(R);let ht;if(rt&&(ht=Ce&&Ce.onVnodeBeforeUnmount)&&Pn(ht,B,R),Le&6)Y(R.component,K,Q);else{if(Le&128){R.suspense.unmount(K,Q);return}ze&&Fr(R,null,B,"beforeUnmount"),Le&64?R.type.remove(R,B,K,oe,He,Q):re&&(ce!==Ke||Te>0&&Te&64)?Z(re,B,K,!1,!0):(ce===Ke&&Te&384||!oe&&Le&16)&&Z(pe,B,K),Q&&Ne(R)}(rt&&(ht=Ce&&Ce.onVnodeUnmounted)||ze)&&on(()=>{ht&&Pn(ht,B,R),ze&&Fr(R,null,B,"unmounted")},K)},Ne=R=>{const{type:B,el:K,anchor:Q,transition:oe}=R;if(B===Ke){bt(K,Q);return}if(B===ws){V(R);return}const ce=()=>{s(K),oe&&!oe.persisted&&oe.afterLeave&&oe.afterLeave()};if(R.shapeFlag&1&&oe&&!oe.persisted){const{leave:Ce,delayLeave:ve}=oe,pe=()=>Ce(K,ce);ve?ve(R.el,ce,pe):pe()}else ce()},bt=(R,B)=>{let K;for(;R!==B;)K=v(R),s(R),R=K;s(B)},Y=(R,B,K)=>{const{bum:Q,scope:oe,update:ce,subTree:Ce,um:ve}=R;Q&&fo(Q),oe.stop(),ce&&(ce.active=!1,le(Ce,R,B,K)),ve&&on(ve,B),on(()=>{R.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&R.asyncDep&&!R.asyncResolved&&R.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Z=(R,B,K,Q=!1,oe=!1,ce=0)=>{for(let Ce=ce;Ce<R.length;Ce++)le(R[Ce],B,K,Q,oe)},ue=R=>R.shapeFlag&6?ue(R.component.subTree):R.shapeFlag&128?R.suspense.next():v(R.anchor||R.el),Ee=(R,B,K)=>{R==null?B._vnode&&le(B._vnode,null,null,!0):S(B._vnode||null,R,B,null,null,null,K),vp(),Cu(),B._vnode=R},He={p:S,um:le,m:be,r:Ne,mt:G,mc:k,pc:he,pbc:z,n:ue,o:e};let vt,$e;return t&&([vt,$e]=t(He)),{render:Ee,hydrate:vt,createApp:_R(Ee,vt)}}function as({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Dh(e,t,n=!1){const r=e.children,s=t.children;if(Re(r)&&Re(s))for(let o=0;o<r.length;o++){const l=r[o];let u=s[o];u.shapeFlag&1&&!u.dynamicChildren&&((u.patchFlag<=0||u.patchFlag===32)&&(u=s[o]=Mi(s[o]),u.el=l.el),n||Dh(l,u)),u.type===Ui&&(u.el=l.el)}}function CR(e){const t=e.slice(),n=[0];let r,s,o,l,u;const f=e.length;for(r=0;r<f;r++){const d=e[r];if(d!==0){if(s=n[n.length-1],e[s]<d){t[r]=s,n.push(r);continue}for(o=0,l=n.length-1;o<l;)u=o+l>>1,e[n[u]]<d?o=u+1:l=u;d<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,l=n[o-1];o-- >0;)n[o]=l,l=t[l];return n}const SR=e=>e.__isTeleport,va=e=>e&&(e.disabled||e.disabled===""),Ep=e=>typeof SVGElement<"u"&&e instanceof SVGElement,kd=(e,t)=>{const n=e&&e.to;return Ft(n)?t?t(n):null:n},xR={__isTeleport:!0,process(e,t,n,r,s,o,l,u,f,d){const{mc:h,pc:m,pbc:v,o:{insert:p,querySelector:b,createText:S,createComment:T}}=d,x=va(t.props);let{shapeFlag:w,children:C,dynamicChildren:V}=t;if(e==null){const I=t.el=S(""),M=t.anchor=S("");p(I,n,r),p(M,n,r);const O=t.target=kd(t.props,b),k=t.targetAnchor=S("");O&&(p(k,O),l=l||Ep(O));const H=(z,D)=>{w&16&&h(C,z,D,s,o,l,u,f)};x?H(n,M):O&&H(O,k)}else{t.el=e.el;const I=t.anchor=e.anchor,M=t.target=e.target,O=t.targetAnchor=e.targetAnchor,k=va(e.props),H=k?n:M,z=k?I:O;if(l=l||Ep(M),V?(v(e.dynamicChildren,V,H,s,o,l,u),Dh(e,t,!0)):f||m(e,t,H,z,s,o,l,u,!1),x)k||tu(t,n,I,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=kd(t.props,b);D&&tu(t,D,null,d,0)}else k&&tu(t,M,O,d,1)}d0(t)},remove(e,t,n,r,{um:s,o:{remove:o}},l){const{shapeFlag:u,children:f,anchor:d,targetAnchor:h,target:m,props:v}=e;if(m&&o(h),(l||!va(v))&&(o(d),u&16))for(let p=0;p<f.length;p++){const b=f[p];s(b,t,n,!0,!!b.dynamicChildren)}},move:tu,hydrate:AR};function tu(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:l,anchor:u,shapeFlag:f,children:d,props:h}=e,m=o===2;if(m&&r(l,t,n),(!m||va(h))&&f&16)for(let v=0;v<d.length;v++)s(d[v],t,n,2);m&&r(u,t,n)}function AR(e,t,n,r,s,o,{o:{nextSibling:l,parentNode:u,querySelector:f}},d){const h=t.target=kd(t.props,f);if(h){const m=h._lpa||h.firstChild;if(t.shapeFlag&16)if(va(t.props))t.anchor=d(l(e),t,u(e),n,r,s,o),t.targetAnchor=m;else{t.anchor=l(e);let v=m;for(;v;)if(v=l(v),v&&v.nodeType===8&&v.data==="teleport anchor"){t.targetAnchor=v,h._lpa=t.targetAnchor&&l(t.targetAnchor);break}d(m,t,h,n,r,s,o)}d0(t)}return t.anchor&&l(t.anchor)}const f0=xR;function d0(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Ke=Symbol(void 0),Ui=Symbol(void 0),mn=Symbol(void 0),ws=Symbol(void 0),ga=[];let Rn=null;function se(e=!1){ga.push(Rn=e?null:[])}function h0(){ga.pop(),Rn=ga[ga.length-1]||null}let As=1;function Pd(e){As+=e}function m0(e){return e.dynamicChildren=As>0?Rn||uo:null,h0(),As>0&&Rn&&Rn.push(e),e}function Me(e,t,n,r,s,o){return m0($(e,t,n,r,s,o,!0))}function je(e,t,n,r,s){return m0(y(e,t,n,r,s,!0))}function zi(e){return e?e.__v_isVNode===!0:!1}function gr(e,t){return e.type===t.type&&e.key===t.key}function ER(e){}const nc="__vInternal",v0=({key:e})=>e??null,cu=({ref:e,ref_key:t,ref_for:n})=>e!=null?Ft(e)||xt(e)||qe(e)?{i:an,r:e,k:t,f:!!n}:e:null;function $(e,t=null,n=null,r=0,s=null,o=e===Ke?0:1,l=!1,u=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&v0(t),ref:t&&cu(t),scopeId:Ju,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:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:an};return u?(Hh(f,n),o&128&&e.normalize(f)):n&&(f.shapeFlag|=Ft(n)?8:16),As>0&&!l&&Rn&&(f.patchFlag>0||o&6)&&f.patchFlag!==32&&Rn.push(f),f}const y=TR;function TR(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Qy)&&(e=mn),zi(e)){const u=wr(e,t,!0);return n&&Hh(u,n),As>0&&!o&&Rn&&(u.shapeFlag&6?Rn[Rn.indexOf(e)]=u:Rn.push(u)),u.patchFlag|=-2,u}if(MR(e)&&(e=e.__vccOpts),t){t=$h(t);let{class:u,style:f}=t;u&&!Ft(u)&&(t.class=br(u)),Pt(f)&&(wh(f)&&!Re(f)&&(f=Nt({},f)),t.style=Ba(f))}const l=Ft(e)?1:Uy(e)?128:SR(e)?64:Pt(e)?4:qe(e)?2:0;return $(e,t,n,r,s,l,o,!0)}function $h(e){return e?wh(e)||nc in e?Nt({},e):e:null}function wr(e,t,n=!1){const{props:r,ref:s,patchFlag:o,children:l}=e,u=t?Oe(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&v0(u),ref:t&&t.ref?n&&s?Re(s)?s.concat(cu(t)):[s,cu(t)]:cu(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ke?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&&wr(e.ssContent),ssFallback:e.ssFallback&&wr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ke(e=" ",t=0){return y(Ui,null,e,t)}function kR(e,t){const n=y(ws,null,e);return n.staticCount=t,n}function It(e="",t=!1){return t?(se(),je(mn,null,e)):y(mn,null,e)}function Hn(e){return e==null||typeof e=="boolean"?y(mn):Re(e)?y(Ke,null,e.slice()):typeof e=="object"?Mi(e):y(Ui,null,String(e))}function Mi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:wr(e)}function Hh(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Re(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Hh(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(nc in t)?t._ctx=an:s===3&&an&&(an.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else qe(t)?(t={default:t,_ctx:an},n=32):(t=String(t),r&64?(n=16,t=[ke(t)]):n=8);e.children=t,e.shapeFlag|=n}function Oe(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=br([t.class,r.class]));else if(s==="style")t.style=Ba([t.style,r.style]);else if(Da(s)){const o=t[s],l=r[s];l&&o!==l&&!(Re(o)&&o.includes(l))&&(t[s]=o?[].concat(o,l):l)}else s!==""&&(t[s]=r[s])}return t}function Pn(e,t,n,r=null){Un(e,t,7,[n,r])}const PR=a0();let RR=0;function g0(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||PR,o={uid:RR++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new ph(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:r0(r,s),emitsOptions:Ny(r,s),emit:null,emitted:null,propsDefaults:St,inheritAttrs:r.inheritAttrs,ctx:St,data:St,props:St,attrs:St,slots:St,refs:St,setupState:St,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=NP.bind(null,o),e.ce&&e.ce(o),o}let Ht=null;const kr=()=>Ht||an,Wi=e=>{Ht=e,e.scope.on()},Di=()=>{Ht&&Ht.scope.off(),Ht=null};function p0(e){return e.vnode.shapeFlag&4}let yo=!1;function y0(e,t=!1){yo=t;const{props:n,children:r}=e.vnode,s=p0(e);mR(e,n,s,t),pR(e,r);const o=s?IR(e,t):void 0;return yo=!1,o}function IR(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=zn(new Proxy(e.ctx,xd));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?_0(e):null;Wi(e),Po();const o=li(r,e,0,[e.props,s]);if(Ro(),Di(),vh(o)){if(o.then(Di,Di),t)return o.then(l=>{Rd(e,l,t)}).catch(l=>{Ps(l,e,0)});e.asyncDep=o}else Rd(e,o,t)}else b0(e,t)}function Rd(e,t,n){qe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pt(t)&&(e.setupState=xh(t)),b0(e,n)}let Au,Id;function LR(e){Au=e,Id=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,lR))}}const OR=()=>!Au;function b0(e,t,n){const r=e.type;if(!e.render){if(!t&&Au&&!r.render){const s=r.template||Fh(e).template;if(s){const{isCustomElement:o,compilerOptions:l}=e.appContext.config,{delimiters:u,compilerOptions:f}=r,d=Nt(Nt({isCustomElement:o,delimiters:u},l),f);r.render=Au(s,d)}}e.render=r.render||yr,Id&&Id(e)}Wi(e),Po(),uR(e),Ro(),Di()}function VR(e){return new Proxy(e.attrs,{get(t,n){return In(e,"get","$attrs"),t[n]}})}function _0(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=VR(e))},slots:e.slots,emit:e.emit,expose:t}}function rc(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(xh(zn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ma)return ma[n](e)},has(t,n){return n in t||n in ma}}))}function Ld(e,t=!0){return qe(e)?e.displayName||e.name:e.name||t&&e.__name}function MR(e){return qe(e)&&"__vccOpts"in e}const P=(e,t)=>VP(e,t,yo);function FR(){return null}function BR(){return null}function DR(e){}function $R(e,t){return null}function HR(){return w0().slots}function NR(){return w0().attrs}function w0(){const e=kr();return e.setupContext||(e.setupContext=_0(e))}function UR(e,t){const n=Re(e)?e.reduce((r,s)=>(r[s]={},r),{}):e;for(const r in t){const s=n[r];s?Re(s)||qe(s)?n[r]={type:s,default:t[r]}:s.default=t[r]:s===null&&(n[r]={default:t[r]})}return n}function zR(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function WR(e){const t=kr();let n=e();return Di(),vh(n)&&(n=n.catch(r=>{throw Wi(t),r})),[n,()=>Wi(t)]}function mi(e,t,n){const r=arguments.length;return r===2?Pt(t)&&!Re(t)?zi(t)?y(e,null,[t]):y(e,t):y(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&zi(n)&&(n=[n]),y(e,t,n))}const C0=Symbol(""),S0=()=>nt(C0);function GR(){}function jR(e,t,n,r){const s=n[r];if(s&&x0(s,e))return s;const o=t();return o.memo=e.slice(),n[r]=o}function x0(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(go(n[r],t[r]))return!1;return As>0&&Rn&&Rn.push(e),!0}const A0="3.2.47",KR={createComponentInstance:g0,setupComponent:y0,renderComponentRoot:lu,setCurrentRenderingInstance:Ta,isVNode:zi,normalizeVNode:Hn},qR=KR,YR=null,ZR=null,XR="http://www.w3.org/2000/svg",ms=typeof document<"u"?document:null,Tp=ms&&ms.createElement("template"),JR={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t?ms.createElementNS(XR,e):ms.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>ms.createTextNode(e),createComment:e=>ms.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ms.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const l=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Tp.innerHTML=r?`<svg>${e}</svg>`:e;const u=Tp.content;if(r){const f=u.firstChild;for(;f.firstChild;)u.appendChild(f.firstChild);u.removeChild(f)}t.insertBefore(u,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function QR(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function eI(e,t,n){const r=e.style,s=Ft(n);if(n&&!s){if(t&&!Ft(t))for(const o in t)n[o]==null&&Od(r,o,"");for(const o in n)Od(r,o,n[o])}else{const o=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const kp=/\s*!important$/;function Od(e,t,n){if(Re(n))n.forEach(r=>Od(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=tI(e,t);kp.test(n)?e.setProperty(sr(r),n.replace(kp,""),"important"):e[r]=n}}const Pp=["Webkit","Moz","ms"],Zf={};function tI(e,t){const n=Zf[t];if(n)return n;let r=hn(t);if(r!=="filter"&&r in e)return Zf[t]=r;r=ks(r);for(let s=0;s<Pp.length;s++){const o=Pp[s]+r;if(o in e)return Zf[t]=o}return t}const Rp="http://www.w3.org/1999/xlink";function nI(e,t,n,r,s){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Rp,t.slice(6,t.length)):e.setAttributeNS(Rp,t,n);else{const o=Hk(t);n==null||o&&!py(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function rI(e,t,n,r,s,o,l){if(t==="innerHTML"||t==="textContent"){r&&l(r,s,o),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const f=n??"";(e.value!==f||e.tagName==="OPTION")&&(e.value=f),n==null&&e.removeAttribute(t);return}let u=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=py(n):n==null&&f==="string"?(n="",u=!0):f==="number"&&(n=0,u=!0)}try{e[t]=n}catch{}u&&e.removeAttribute(t)}function ii(e,t,n,r){e.addEventListener(t,n,r)}function iI(e,t,n,r){e.removeEventListener(t,n,r)}function sI(e,t,n,r,s=null){const o=e._vei||(e._vei={}),l=o[t];if(r&&l)l.value=r;else{const[u,f]=oI(t);if(r){const d=o[t]=uI(r,s);ii(e,u,d,f)}else l&&(iI(e,u,l,f),o[t]=void 0)}}const Ip=/(?:Once|Passive|Capture)$/;function oI(e){let t;if(Ip.test(e)){t={};let r;for(;r=e.match(Ip);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):sr(e.slice(2)),t]}let Xf=0;const aI=Promise.resolve(),lI=()=>Xf||(aI.then(()=>Xf=0),Xf=Date.now());function uI(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Un(cI(r,n.value),t,5,[r])};return n.value=e,n.attached=lI(),n}function cI(e,t){if(Re(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Lp=/^on[a-z]/,fI=(e,t,n,r,s=!1,o,l,u,f)=>{t==="class"?QR(e,r,s):t==="style"?eI(e,n,r):Da(t)?hh(t)||sI(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):dI(e,t,r,s))?rI(e,t,r,o,l,u,f):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),nI(e,t,r,s))};function dI(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Lp.test(t)&&qe(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Lp.test(t)&&Ft(n)?!1:t in e}function E0(e,t){const n=Lo(e);class r extends ic{constructor(o){super(n,o,t)}}return r.def=n,r}const hI=e=>E0(e,U0),mI=typeof HTMLElement<"u"?HTMLElement:class{};class ic extends mI{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,qt(()=>{this._connected||(Bd(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const s of r)this._setAttr(s.attributeName)}).observe(this,{attributes:!0});const t=(r,s=!1)=>{const{props:o,styles:l}=r;let u;if(o&&!Re(o))for(const f in o){const d=o[f];(d===Number||d&&d.type===Number)&&(f in this._props&&(this._props[f]=_u(this._props[f])),(u||(u=Object.create(null)))[hn(f)]=!0)}this._numberProps=u,s&&this._resolveProps(r),this._applyStyles(l),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=Re(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s],!0,!1);for(const s of r.map(hn))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(o){this._setProp(s,o)}})}_setAttr(t){let n=this.getAttribute(t);const r=hn(t);this._numberProps&&this._numberProps[r]&&(n=_u(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!0){n!==this._props[t]&&(this._props[t]=n,s&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(sr(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(sr(t),n+""):n||this.removeAttribute(sr(t))))}_update(){Bd(this._createVNode(),this.shadowRoot)}_createVNode(){const t=y(this._def,Nt({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(o,l)=>{this.dispatchEvent(new CustomEvent(o,{detail:l}))};n.emit=(o,...l)=>{r(o,l),sr(o)!==o&&r(sr(o),l)};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof ic){n.parent=s._instance,n.provides=s._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function vI(e="$style"){{const t=kr();if(!t)return St;const n=t.type.__cssModules;if(!n)return St;const r=n[e];return r||St}}function gI(e){const t=kr();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>Md(o,s))},r=()=>{const s=e(t.proxy);Vd(t.subTree,s),n(s)};Wy(r),Gn(()=>{const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),tc(()=>s.disconnect())})}function Vd(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Vd(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Md(e.el,t);else if(e.type===Ke)e.children.forEach(n=>Vd(n,t));else if(e.type===ws){let{el:n,anchor:r}=e;for(;n&&(Md(n,t),n!==r);)n=n.nextSibling}}function Md(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const Ri="transition",ia="animation",Cr=(e,{slots:t})=>mi(Rh,k0(e),t);Cr.displayName="Transition";const T0={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},pI=Cr.props=Nt({},Rh.props,T0),ls=(e,t=[])=>{Re(e)?e.forEach(n=>n(...t)):e&&e(...t)},Op=e=>e?Re(e)?e.some(t=>t.length>1):e.length>1:!1;function k0(e){const t={};for(const U in e)U in T0||(t[U]=e[U]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:u=`${n}-enter-to`,appearFromClass:f=o,appearActiveClass:d=l,appearToClass:h=u,leaveFromClass:m=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,b=yI(s),S=b&&b[0],T=b&&b[1],{onBeforeEnter:x,onEnter:w,onEnterCancelled:C,onLeave:V,onLeaveCancelled:I,onBeforeAppear:M=x,onAppear:O=w,onAppearCancelled:k=C}=t,H=(U,q,G)=>{Oi(U,q?h:u),Oi(U,q?d:l),G&&G()},z=(U,q)=>{U._isLeaving=!1,Oi(U,m),Oi(U,p),Oi(U,v),q&&q()},D=U=>(q,G)=>{const ge=U?O:w,fe=()=>H(q,U,G);ls(ge,[q,fe]),Vp(()=>{Oi(q,U?f:o),ni(q,U?h:u),Op(ge)||Mp(q,r,S,fe)})};return Nt(t,{onBeforeEnter(U){ls(x,[U]),ni(U,o),ni(U,l)},onBeforeAppear(U){ls(M,[U]),ni(U,f),ni(U,d)},onEnter:D(!1),onAppear:D(!0),onLeave(U,q){U._isLeaving=!0;const G=()=>z(U,q);ni(U,m),R0(),ni(U,v),Vp(()=>{U._isLeaving&&(Oi(U,m),ni(U,p),Op(V)||Mp(U,r,T,G))}),ls(V,[U,G])},onEnterCancelled(U){H(U,!1),ls(C,[U])},onAppearCancelled(U){H(U,!0),ls(k,[U])},onLeaveCancelled(U){z(U),ls(I,[U])}})}function yI(e){if(e==null)return null;if(Pt(e))return[Jf(e.enter),Jf(e.leave)];{const t=Jf(e);return[t,t]}}function Jf(e){return _u(e)}function ni(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Oi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Vp(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let bI=0;function Mp(e,t,n,r){const s=e._endId=++bI,o=()=>{s===e._endId&&r()};if(n)return setTimeout(o,n);const{type:l,timeout:u,propCount:f}=P0(e,t);if(!l)return r();const d=l+"end";let h=0;const m=()=>{e.removeEventListener(d,v),o()},v=p=>{p.target===e&&++h>=f&&m()};setTimeout(()=>{h<f&&m()},u+1),e.addEventListener(d,v)}function P0(e,t){const n=window.getComputedStyle(e),r=b=>(n[b]||"").split(", "),s=r(`${Ri}Delay`),o=r(`${Ri}Duration`),l=Fp(s,o),u=r(`${ia}Delay`),f=r(`${ia}Duration`),d=Fp(u,f);let h=null,m=0,v=0;t===Ri?l>0&&(h=Ri,m=l,v=o.length):t===ia?d>0&&(h=ia,m=d,v=f.length):(m=Math.max(l,d),h=m>0?l>d?Ri:ia:null,v=h?h===Ri?o.length:f.length:0);const p=h===Ri&&/\b(transform|all)(,|$)/.test(r(`${Ri}Property`).toString());return{type:h,timeout:m,propCount:v,hasTransform:p}}function Fp(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Bp(n)+Bp(e[r])))}function Bp(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function R0(){return document.body.offsetHeight}const I0=new WeakMap,L0=new WeakMap,O0={name:"TransitionGroup",props:Nt({},pI,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=kr(),r=Ph();let s,o;return Wa(()=>{if(!s.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!xI(s[0].el,n.vnode.el,l))return;s.forEach(wI),s.forEach(CI);const u=s.filter(SI);R0(),u.forEach(f=>{const d=f.el,h=d.style;ni(d,l),h.transform=h.webkitTransform=h.transitionDuration="";const m=d._moveCb=v=>{v&&v.target!==d||(!v||/transform$/.test(v.propertyName))&&(d.removeEventListener("transitionend",m),d._moveCb=null,Oi(d,l))};d.addEventListener("transitionend",m)})}),()=>{const l=Ze(e),u=k0(l);let f=l.tag||Ke;s=o,o=t.default?Qu(t.default()):[];for(let d=0;d<o.length;d++){const h=o[d];h.key!=null&&xs(h,po(h,u,r,n))}if(s)for(let d=0;d<s.length;d++){const h=s[d];xs(h,po(h,u,r,n)),I0.set(h,h.el.getBoundingClientRect())}return y(f,null,o)}}},_I=e=>delete e.mode;O0.props;const V0=O0;function wI(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function CI(e){L0.set(e,e.el.getBoundingClientRect())}function SI(e){const t=I0.get(e),n=L0.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${s}px)`,o.transitionDuration="0s",e}}function xI(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(l=>{l.split(/\s+/).forEach(u=>u&&r.classList.remove(u))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:o}=P0(r);return s.removeChild(r),o}const Gi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Re(t)?n=>fo(t,n):t};function AI(e){e.target.composing=!0}function Dp(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Eu={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e._assign=Gi(s);const o=r||s.props&&s.props.type==="number";ii(e,t?"change":"input",l=>{if(l.target.composing)return;let u=e.value;n&&(u=u.trim()),o&&(u=bu(u)),e._assign(u)}),n&&ii(e,"change",()=>{e.value=e.value.trim()}),t||(ii(e,"compositionstart",AI),ii(e,"compositionend",Dp),ii(e,"change",Dp))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},o){if(e._assign=Gi(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(s||e.type==="number")&&bu(e.value)===t))return;const l=t??"";e.value!==l&&(e.value=l)}},Nh={deep:!0,created(e,t,n){e._assign=Gi(n),ii(e,"change",()=>{const r=e._modelValue,s=bo(e),o=e.checked,l=e._assign;if(Re(r)){const u=Uu(r,s),f=u!==-1;if(o&&!f)l(r.concat(s));else if(!o&&f){const d=[...r];d.splice(u,1),l(d)}}else if(Ts(r)){const u=new Set(r);o?u.add(s):u.delete(s),l(u)}else l(F0(e,o))})},mounted:$p,beforeUpdate(e,t,n){e._assign=Gi(n),$p(e,t,n)}};function $p(e,{value:t,oldValue:n},r){e._modelValue=t,Re(t)?e.checked=Uu(t,r.props.value)>-1:Ts(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Hi(t,F0(e,!0)))}const Uh={created(e,{value:t},n){e.checked=Hi(t,n.props.value),e._assign=Gi(n),ii(e,"change",()=>{e._assign(bo(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Gi(r),t!==n&&(e.checked=Hi(t,r.props.value))}},M0={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Ts(t);ii(e,"change",()=>{const o=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?bu(bo(l)):bo(l));e._assign(e.multiple?s?new Set(o):o:o[0])}),e._assign=Gi(r)},mounted(e,{value:t}){Hp(e,t)},beforeUpdate(e,t,n){e._assign=Gi(n)},updated(e,{value:t}){Hp(e,t)}};function Hp(e,t){const n=e.multiple;if(!(n&&!Re(t)&&!Ts(t))){for(let r=0,s=e.options.length;r<s;r++){const o=e.options[r],l=bo(o);if(n)Re(t)?o.selected=Uu(t,l)>-1:o.selected=t.has(l);else if(Hi(bo(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function bo(e){return"_value"in e?e._value:e.value}function F0(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const B0={created(e,t,n){nu(e,t,n,null,"created")},mounted(e,t,n){nu(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){nu(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){nu(e,t,n,r,"updated")}};function D0(e,t){switch(e){case"SELECT":return M0;case"TEXTAREA":return Eu;default:switch(t){case"checkbox":return Nh;case"radio":return Uh;default:return Eu}}}function nu(e,t,n,r,s){const l=D0(e.tagName,n.props&&n.props.type)[s];l&&l(e,t,n,r)}function EI(){Eu.getSSRProps=({value:e})=>({value:e}),Uh.getSSRProps=({value:e},t)=>{if(t.props&&Hi(t.props.value,e))return{checked:!0}},Nh.getSSRProps=({value:e},t)=>{if(Re(e)){if(t.props&&Uu(e,t.props.value)>-1)return{checked:!0}}else if(Ts(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},B0.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=D0(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const TI=["ctrl","shift","alt","meta"],kI={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)=>TI.some(n=>e[`${n}Key`]&&!t.includes(n))},Fd=(e,t)=>(n,...r)=>{for(let s=0;s<t.length;s++){const o=kI[t[s]];if(o&&o(n,t))return}return e(n,...r)},PI={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ui=(e,t)=>n=>{if(!("key"in n))return;const r=sr(n.key);if(t.some(s=>s===r||PI[s]===r))return e(n)},ar={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):sa(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),sa(e,!0),r.enter(e)):r.leave(e,()=>{sa(e,!1)}):sa(e,t))},beforeUnmount(e,{value:t}){sa(e,t)}};function sa(e,t){e.style.display=t?e._vod:"none"}function RI(){ar.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const $0=Nt({patchProp:fI},JR);let pa,Np=!1;function H0(){return pa||(pa=l0($0))}function N0(){return pa=Np?pa:u0($0),Np=!0,pa}const Bd=(...e)=>{H0().render(...e)},U0=(...e)=>{N0().hydrate(...e)},II=(...e)=>{const t=H0().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=z0(r);if(!s)return;const o=t._component;!qe(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const l=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),l},t},LI=(...e)=>{const t=N0().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=z0(r);if(s)return n(s,!0,s instanceof SVGElement)},t};function z0(e){return Ft(e)?document.querySelector(e):e}let Up=!1;const OI=()=>{Up||(Up=!0,EI(),RI())},VI=()=>{},e8=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Rh,Comment:mn,EffectScope:ph,Fragment:Ke,KeepAlive:rR,ReactiveEffect:$a,Static:ws,Suspense:qP,Teleport:f0,Text:Ui,Transition:Cr,TransitionGroup:V0,VueElement:ic,assertNumber:FP,callWithAsyncErrorHandling:Un,callWithErrorHandling:li,camelize:hn,capitalize:ks,cloneVNode:wr,compatUtils:ZR,compile:VI,computed:P,createApp:II,createBlock:je,createCommentVNode:It,createElementBlock:Me,createElementVNode:$,createHydrationRenderer:u0,createPropsRestProxy:zR,createRenderer:l0,createSSRApp:LI,createSlots:oR,createStaticVNode:kR,createTextVNode:ke,createVNode:y,customRef:IP,defineAsyncComponent:Ih,defineComponent:Lo,defineCustomElement:E0,defineEmits:BR,defineExpose:DR,defineProps:FR,defineSSRCustomElement:hI,get devtools(){return io},effect:Jk,effectScope:ko,getCurrentInstance:kr,getCurrentScope:yh,getTransitionRawChildren:Qu,guardReactiveProps:$h,h:mi,handleError:Ps,hydrate:U0,initCustomFormatter:GR,initDirectivesForSSR:OI,inject:nt,isMemoSame:x0,isProxy:wh,isReactive:ai,isReadonly:Ss,isRef:xt,isRuntimeOnly:OR,isShallow:Sa,isVNode:zi,markRaw:zn,mergeDefaults:UR,mergeProps:Oe,nextTick:qt,normalizeClass:br,normalizeProps:dh,normalizeStyle:Ba,onActivated:Lh,onBeforeMount:za,onBeforeUnmount:Ln,onBeforeUpdate:qy,onDeactivated:Oh,onErrorCaptured:Jy,onMounted:Gn,onRenderTracked:Xy,onRenderTriggered:Zy,onScopeDispose:Cn,onServerPrefetch:Yy,onUnmounted:tc,onUpdated:Wa,openBlock:se,popScopeId:Is,provide:kt,proxyRefs:xh,pushScopeId:Rs,queuePostFlushCb:Eh,reactive:Jt,readonly:Io,ref:X,registerRuntimeCompiler:LR,render:Bd,renderList:$r,renderSlot:aR,resolveComponent:Ot,resolveDirective:_r,resolveDynamicComponent:Ls,resolveFilter:YR,resolveTransitionHooks:po,setBlockTracking:Pd,setDevtoolsHook:Hy,setTransitionHooks:xs,shallowReactive:Vy,shallowReadonly:EP,shallowRef:Yu,ssrContextKey:C0,ssrUtils:qR,stop:Qk,toDisplayString:ye,toHandlerKey:ha,toHandlers:uu,toRaw:Ze,toRef:Se,toRefs:Ha,transformVNodeArgs:ER,triggerRef:kP,unref:dn,useAttrs:NR,useCssModule:vI,useCssVars:gI,useSSRContext:S0,useSlots:HR,useTransitionState:Ph,vModelCheckbox:Nh,vModelDynamic:B0,vModelRadio:Uh,vModelSelect:M0,vModelText:Eu,vShow:ar,version:A0,warn:MP,watch:Fe,watchEffect:Tr,watchPostEffect:Wy,watchSyncEffect:QP,withAsyncContext:WR,withCtx:ie,withDefaults:$R,withDirectives:Kt,withKeys:ui,withMemo:jR,withModifiers:Fd,withScopeId:UP},Symbol.toStringTag,{value:"Module"}));var MI=!1;/*!
|
|
2
|
-
* pinia v2.0.35
|
|
3
|
-
* (c) 2023 Eduardo San Martin Morote
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/let W0;const sc=e=>W0=e,G0=Symbol();function Dd(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ya;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ya||(ya={}));function t8(){const e=ko(!0),t=e.run(()=>X({}));let n=[],r=[];const s=zn({install(o){sc(s),s._a=o,o.provide(G0,s),o.config.globalProperties.$pinia=s,r.forEach(l=>n.push(l)),r=[]},use(o){return!this._a&&!MI?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const j0=()=>{};function zp(e,t,n,r=j0){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&yh()&&Cn(s),s}function Qs(e,...t){e.slice().forEach(n=>{n(...t)})}function $d(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Dd(s)&&Dd(r)&&e.hasOwnProperty(n)&&!xt(r)&&!ai(r)?e[n]=$d(s,r):e[n]=r}return e}const FI=Symbol();function BI(e){return!Dd(e)||!e.hasOwnProperty(FI)}const{assign:Vi}=Object;function DI(e){return!!(xt(e)&&e.effect)}function $I(e,t,n,r){const{state:s,actions:o,getters:l}=t,u=n.state.value[e];let f;function d(){u||(n.state.value[e]=s?s():{});const h=Ha(n.state.value[e]);return Vi(h,o,Object.keys(l||{}).reduce((m,v)=>(m[v]=zn(P(()=>{sc(n);const p=n._s.get(e);return l[v].call(p,p)})),m),{}))}return f=K0(e,d,t,n,r,!0),f}function K0(e,t,n={},r,s,o){let l;const u=Vi({actions:{}},n),f={deep:!0};let d,h,m=zn([]),v=zn([]),p;const b=r.state.value[e];!o&&!b&&(r.state.value[e]={}),X({});let S;function T(O){let k;d=h=!1,typeof O=="function"?(O(r.state.value[e]),k={type:ya.patchFunction,storeId:e,events:p}):($d(r.state.value[e],O),k={type:ya.patchObject,payload:O,storeId:e,events:p});const H=S=Symbol();qt().then(()=>{S===H&&(d=!0)}),h=!0,Qs(m,k,r.state.value[e])}const x=o?function(){const{state:k}=n,H=k?k():{};this.$patch(z=>{Vi(z,H)})}:j0;function w(){l.stop(),m=[],v=[],r._s.delete(e)}function C(O,k){return function(){sc(r);const H=Array.from(arguments),z=[],D=[];function U(ge){z.push(ge)}function q(ge){D.push(ge)}Qs(v,{args:H,name:O,store:I,after:U,onError:q});let G;try{G=k.apply(this&&this.$id===e?this:I,H)}catch(ge){throw Qs(D,ge),ge}return G instanceof Promise?G.then(ge=>(Qs(z,ge),ge)).catch(ge=>(Qs(D,ge),Promise.reject(ge))):(Qs(z,G),G)}}const V={_p:r,$id:e,$onAction:zp.bind(null,v),$patch:T,$reset:x,$subscribe(O,k={}){const H=zp(m,O,k.detached,()=>z()),z=l.run(()=>Fe(()=>r.state.value[e],D=>{(k.flush==="sync"?h:d)&&O({storeId:e,type:ya.direct,events:p},D)},Vi({},f,k)));return H},$dispose:w},I=Jt(V);r._s.set(e,I);const M=r._e.run(()=>(l=ko(),l.run(()=>t())));for(const O in M){const k=M[O];if(xt(k)&&!DI(k)||ai(k))o||(b&&BI(k)&&(xt(k)?k.value=b[O]:$d(k,b[O])),r.state.value[e][O]=k);else if(typeof k=="function"){const H=C(O,k);M[O]=H,u.actions[O]=k}}return Vi(I,M),Vi(Ze(I),M),Object.defineProperty(I,"$state",{get:()=>r.state.value[e],set:O=>{T(k=>{Vi(k,O)})}}),r._p.forEach(O=>{Vi(I,l.run(()=>O({store:I,app:r._a,pinia:r,options:u})))}),b&&o&&n.hydrate&&n.hydrate(I.$state,b),d=!0,h=!0,I}function Ga(e,t,n){let r,s;const o=typeof t=="function";typeof e=="string"?(r=e,s=o?n:t):(s=e,r=e.id);function l(u,f){const d=kr();return u=u||d&&nt(G0,null),u&&sc(u),u=W0,u._s.has(r)||(o?K0(r,t,s,u):$I(r,s,u)),u._s.get(r)}return l.$id=r,l}function At(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(){return e(this.$pinia)[r]},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(){const s=e(this.$pinia),o=t[r];return typeof o=="function"?o.call(this,s):s[o]},n),{})}const Pr=At;function Wt(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(...s){return e(this.$pinia)[r](...s)},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(...s){return e(this.$pinia)[t[r]](...s)},n),{})}function zh(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]={get(){return e(this.$pinia)[r]},set(s){return e(this.$pinia)[r]=s}},n),{}):Object.keys(t).reduce((n,r)=>(n[r]={get(){return e(this.$pinia)[t[r]]},set(s){return e(this.$pinia)[t[r]]=s}},n),{})}const q0=["detail","oldPassword","password","username","passwordConfirm","path"];Object.freeze(q0);const HI=e=>{let t=[];if(e&&e.response&&e.response.data){let n=e.response.data;for(const r of q0)if(r in n){n=n[r];break}t=Array.isArray(n)?n.flat():[n]}else console.warn("Unable to parse error",e);return t.length===0&&(t=["Unknown error"]),t},Tt=Ga("common",{state:()=>({form:{errors:[],success:""},versions:{installed:"1.4.0-a0",latest:void 0},timestamp:Date.now(),isSettingsDrawerOpen:!1}),getters:{isMobile:function(){return window.orientation!==void 0||navigator.userAgent.includes("IEMobile")}},actions:{async loadVersions(){await e1.getVersions(this.timestamp).then(e=>{const t=e.data;return this.versions=t}).catch(console.error)},downloadIOSPWAFix(e,t){e1.downloadIOSPWAFix(e,t)},setErrors(e){const t=HI(e);this.$patch(n=>{n.form.errors=t,n.form.success=""})},setSuccess(e){this.$patch(t=>{t.form.errors=[],t.form.success=e})},clearErrors(){this.$patch(e=>{e.form.errors=[],e.form.success=""})},setTimestamp(){this.timestamp=Date.now()}}});function Y0(e,t){return function(){return e.apply(t,arguments)}}const{toString:NI}=Object.prototype,{getPrototypeOf:Wh}=Object,oc=(e=>t=>{const n=NI.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),vi=e=>(e=e.toLowerCase(),t=>oc(t)===e),ac=e=>t=>typeof t===e,{isArray:Oo}=Array,Pa=ac("undefined");function UI(e){return e!==null&&!Pa(e)&&e.constructor!==null&&!Pa(e.constructor)&&di(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Z0=vi("ArrayBuffer");function zI(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Z0(e.buffer),t}const WI=ac("string"),di=ac("function"),X0=ac("number"),Gh=e=>e!==null&&typeof e=="object",GI=e=>e===!0||e===!1,fu=e=>{if(oc(e)!=="object")return!1;const t=Wh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},jI=vi("Date"),KI=vi("File"),qI=vi("Blob"),YI=vi("FileList"),ZI=e=>Gh(e)&&di(e.pipe),XI=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||di(e.append)&&((t=oc(e))==="formdata"||t==="object"&&di(e.toString)&&e.toString()==="[object FormData]"))},JI=vi("URLSearchParams"),QI=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ja(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Oo(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),l=o.length;let u;for(r=0;r<l;r++)u=o[r],t.call(null,e[u],u,e)}}function J0(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Q0=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),eb=e=>!Pa(e)&&e!==Q0;function Hd(){const{caseless:e}=eb(this)&&this||{},t={},n=(r,s)=>{const o=e&&J0(t,s)||s;fu(t[o])&&fu(r)?t[o]=Hd(t[o],r):fu(r)?t[o]=Hd({},r):Oo(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&ja(arguments[r],n);return t}const e5=(e,t,n,{allOwnKeys:r}={})=>(ja(t,(s,o)=>{n&&di(s)?e[o]=Y0(s,n):e[o]=s},{allOwnKeys:r}),e),t5=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),n5=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},r5=(e,t,n,r)=>{let s,o,l;const u={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)l=s[o],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&Wh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},i5=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},s5=e=>{if(!e)return null;if(Oo(e))return e;let t=e.length;if(!X0(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},o5=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wh(Uint8Array)),a5=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},l5=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},u5=vi("HTMLFormElement"),c5=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Wp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),f5=vi("RegExp"),tb=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ja(n,(s,o)=>{t(s,o,e)!==!1&&(r[o]=s)}),Object.defineProperties(e,r)},d5=e=>{tb(e,(t,n)=>{if(di(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(di(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},h5=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return Oo(e)?r(e):r(String(e).split(t)),n},m5=()=>{},v5=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Qf="abcdefghijklmnopqrstuvwxyz",Gp="0123456789",nb={DIGIT:Gp,ALPHA:Qf,ALPHA_DIGIT:Qf+Qf.toUpperCase()+Gp},g5=(e=16,t=nb.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function p5(e){return!!(e&&di(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const y5=e=>{const t=new Array(10),n=(r,s)=>{if(Gh(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=Oo(r)?[]:{};return ja(r,(l,u)=>{const f=n(l,s+1);!Pa(f)&&(o[u]=f)}),t[s]=void 0,o}}return r};return n(e,0)},ee={isArray:Oo,isArrayBuffer:Z0,isBuffer:UI,isFormData:XI,isArrayBufferView:zI,isString:WI,isNumber:X0,isBoolean:GI,isObject:Gh,isPlainObject:fu,isUndefined:Pa,isDate:jI,isFile:KI,isBlob:qI,isRegExp:f5,isFunction:di,isStream:ZI,isURLSearchParams:JI,isTypedArray:o5,isFileList:YI,forEach:ja,merge:Hd,extend:e5,trim:QI,stripBOM:t5,inherits:n5,toFlatObject:r5,kindOf:oc,kindOfTest:vi,endsWith:i5,toArray:s5,forEachEntry:a5,matchAll:l5,isHTMLForm:u5,hasOwnProperty:Wp,hasOwnProp:Wp,reduceDescriptors:tb,freezeMethods:d5,toObjectSet:h5,toCamelCase:c5,noop:m5,toFiniteNumber:v5,findKey:J0,global:Q0,isContextDefined:eb,ALPHABET:nb,generateString:g5,isSpecCompliantForm:p5,toJSONObject:y5};function ft(e,t,n,r,s){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),r&&(this.request=r),s&&(this.response=s)}ee.inherits(ft,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:ee.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const rb=ft.prototype,ib={};["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=>{ib[e]={value:e}});Object.defineProperties(ft,ib);Object.defineProperty(rb,"isAxiosError",{value:!0});ft.from=(e,t,n,r,s,o)=>{const l=Object.create(rb);return ee.toFlatObject(e,l,function(f){return f!==Error.prototype},u=>u!=="isAxiosError"),ft.call(l,e.message,t,n,r,s),l.cause=e,l.name=e.name,o&&Object.assign(l,o),l};const b5=null;function Nd(e){return ee.isPlainObject(e)||ee.isArray(e)}function sb(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function jp(e,t,n){return e?e.concat(t).map(function(s,o){return s=sb(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function _5(e){return ee.isArray(e)&&!e.some(Nd)}const w5=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function lc(e,t,n){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,T){return!ee.isUndefined(T[S])});const r=n.metaTokens,s=n.visitor||h,o=n.dots,l=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(s))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(ee.isDate(b))return b.toISOString();if(!f&&ee.isBlob(b))throw new ft("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(b)||ee.isTypedArray(b)?f&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function h(b,S,T){let x=b;if(b&&!T&&typeof b=="object"){if(ee.endsWith(S,"{}"))S=r?S:S.slice(0,-2),b=JSON.stringify(b);else if(ee.isArray(b)&&_5(b)||(ee.isFileList(b)||ee.endsWith(S,"[]"))&&(x=ee.toArray(b)))return S=sb(S),x.forEach(function(C,V){!(ee.isUndefined(C)||C===null)&&t.append(l===!0?jp([S],V,o):l===null?S:S+"[]",d(C))}),!1}return Nd(b)?!0:(t.append(jp(T,S,o),d(b)),!1)}const m=[],v=Object.assign(w5,{defaultVisitor:h,convertValue:d,isVisitable:Nd});function p(b,S){if(!ee.isUndefined(b)){if(m.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));m.push(b),ee.forEach(b,function(x,w){(!(ee.isUndefined(x)||x===null)&&s.call(t,x,ee.isString(w)?w.trim():w,S,v))===!0&&p(x,S?S.concat(w):[w])}),m.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Kp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function jh(e,t){this._pairs=[],e&&lc(e,this,t)}const ob=jh.prototype;ob.append=function(t,n){this._pairs.push([t,n])};ob.toString=function(t){const n=t?function(r){return t.call(this,r,Kp)}:Kp;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function C5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ab(e,t,n){if(!t)return e;const r=n&&n.encode||C5,s=n&&n.serialize;let o;if(s?o=s(t,n):o=ee.isURLSearchParams(t)?t.toString():new jh(t,n).toString(r),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class S5{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ee.forEach(this.handlers,function(r){r!==null&&t(r)})}}const qp=S5,lb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},x5=typeof URLSearchParams<"u"?URLSearchParams:jh,A5=typeof FormData<"u"?FormData:null,E5=typeof Blob<"u"?Blob:null,T5=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),k5=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Dr={isBrowser:!0,classes:{URLSearchParams:x5,FormData:A5,Blob:E5},isStandardBrowserEnv:T5,isStandardBrowserWebWorkerEnv:k5,protocols:["http","https","file","blob","url","data"]};function P5(e,t){return lc(e,new Dr.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return Dr.isNode&&ee.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function R5(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function I5(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function ub(e){function t(n,r,s,o){let l=n[o++];const u=Number.isFinite(+l),f=o>=n.length;return l=!l&&ee.isArray(s)?s.length:l,f?(ee.hasOwnProp(s,l)?s[l]=[s[l],r]:s[l]=r,!u):((!s[l]||!ee.isObject(s[l]))&&(s[l]=[]),t(n,r,s[l],o)&&ee.isArray(s[l])&&(s[l]=I5(s[l])),!u)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(r,s)=>{t(R5(r),s,n,0)}),n}return null}const L5={"Content-Type":void 0};function O5(e,t,n){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const uc={transitional:lb,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=ee.isObject(t);if(o&&ee.isHTMLForm(t)&&(t=new FormData(t)),ee.isFormData(t))return s&&s?JSON.stringify(ub(t)):t;if(ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return P5(t,this.formSerializer).toString();if((u=ee.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return lc(u?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),O5(t)):t}],transformResponse:[function(t){const n=this.transitional||uc.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&ee.isString(t)&&(r&&!this.responseType||s)){const l=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(u){if(l)throw u.name==="SyntaxError"?ft.from(u,ft.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Dr.classes.FormData,Blob:Dr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ee.forEach(["delete","get","head"],function(t){uc.headers[t]={}});ee.forEach(["post","put","patch"],function(t){uc.headers[t]=ee.merge(L5)});const Kh=uc,V5=ee.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"]),M5=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
6
|
-
`).forEach(function(l){s=l.indexOf(":"),n=l.substring(0,s).trim().toLowerCase(),r=l.substring(s+1).trim(),!(!n||t[n]&&V5[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Yp=Symbol("internals");function oa(e){return e&&String(e).trim().toLowerCase()}function du(e){return e===!1||e==null?e:ee.isArray(e)?e.map(du):String(e)}function F5(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const B5=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ed(e,t,n,r,s){if(ee.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!ee.isString(t)){if(ee.isString(r))return t.indexOf(r)!==-1;if(ee.isRegExp(r))return r.test(t)}}function D5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function $5(e,t){const n=ee.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,l){return this[r].call(this,t,s,o,l)},configurable:!0})})}class cc{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(u,f,d){const h=oa(f);if(!h)throw new Error("header name must be a non-empty string");const m=ee.findKey(s,h);(!m||s[m]===void 0||d===!0||d===void 0&&s[m]!==!1)&&(s[m||f]=du(u))}const l=(u,f)=>ee.forEach(u,(d,h)=>o(d,h,f));return ee.isPlainObject(t)||t instanceof this.constructor?l(t,n):ee.isString(t)&&(t=t.trim())&&!B5(t)?l(M5(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=oa(t),t){const r=ee.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return F5(s);if(ee.isFunction(n))return n.call(this,s,r);if(ee.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=oa(t),t){const r=ee.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ed(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(l){if(l=oa(l),l){const u=ee.findKey(r,l);u&&(!n||ed(r,r[u],u,n))&&(delete r[u],s=!0)}}return ee.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ed(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return ee.forEach(this,(s,o)=>{const l=ee.findKey(r,o);if(l){n[l]=du(s),delete n[o];return}const u=t?D5(o):String(o).trim();u!==o&&delete n[o],n[u]=du(s),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ee.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&ee.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
7
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Yp]=this[Yp]={accessors:{}}).accessors,s=this.prototype;function o(l){const u=oa(l);r[u]||($5(s,l),r[u]=!0)}return ee.isArray(t)?t.forEach(o):o(t),this}}cc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ee.freezeMethods(cc.prototype);ee.freezeMethods(cc);const ci=cc;function td(e,t){const n=this||Kh,r=t||n,s=ci.from(r.headers);let o=r.data;return ee.forEach(e,function(u){o=u.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function cb(e){return!!(e&&e.__CANCEL__)}function Ka(e,t,n){ft.call(this,e??"canceled",ft.ERR_CANCELED,t,n),this.name="CanceledError"}ee.inherits(Ka,ft,{__CANCEL__:!0});function H5(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ft("Request failed with status code "+n.status,[ft.ERR_BAD_REQUEST,ft.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const N5=Dr.isStandardBrowserEnv?function(){return{write:function(n,r,s,o,l,u){const f=[];f.push(n+"="+encodeURIComponent(r)),ee.isNumber(s)&&f.push("expires="+new Date(s).toGMTString()),ee.isString(o)&&f.push("path="+o),ee.isString(l)&&f.push("domain="+l),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function U5(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function z5(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function fb(e,t){return e&&!U5(t)?z5(e,t):t}const W5=Dr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let l=o;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{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 r=s(window.location.href),function(l){const u=ee.isString(l)?s(l):l;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function G5(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function j5(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,l;return t=t!==void 0?t:1e3,function(f){const d=Date.now(),h=r[o];l||(l=d),n[s]=f,r[s]=d;let m=o,v=0;for(;m!==s;)v+=n[m++],m=m%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),d-l<t)return;const p=h&&d-h;return p?Math.round(v*1e3/p):void 0}}function Zp(e,t){let n=0;const r=j5(50,250);return s=>{const o=s.loaded,l=s.lengthComputable?s.total:void 0,u=o-n,f=r(u),d=o<=l;n=o;const h={loaded:o,total:l,progress:l?o/l:void 0,bytes:u,rate:f||void 0,estimated:f&&l&&d?(l-o)/f:void 0,event:s};h[t?"download":"upload"]=!0,e(h)}}const K5=typeof XMLHttpRequest<"u",q5=K5&&function(e){return new Promise(function(n,r){let s=e.data;const o=ci.from(e.headers).normalize(),l=e.responseType;let u;function f(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}ee.isFormData(s)&&(Dr.isStandardBrowserEnv||Dr.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let d=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(p+":"+b))}const h=fb(e.baseURL,e.url);d.open(e.method.toUpperCase(),ab(h,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function m(){if(!d)return;const p=ci.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),S={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:p,config:e,request:d};H5(function(x){n(x),f()},function(x){r(x),f()},S),d=null}if("onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(r(new ft("Request aborted",ft.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new ft("Network Error",ft.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const S=e.transitional||lb;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new ft(b,S.clarifyTimeoutError?ft.ETIMEDOUT:ft.ECONNABORTED,e,d)),d=null},Dr.isStandardBrowserEnv){const p=(e.withCredentials||W5(h))&&e.xsrfCookieName&&N5.read(e.xsrfCookieName);p&&o.set(e.xsrfHeaderName,p)}s===void 0&&o.setContentType(null),"setRequestHeader"in d&&ee.forEach(o.toJSON(),function(b,S){d.setRequestHeader(S,b)}),ee.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),l&&l!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Zp(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Zp(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=p=>{d&&(r(!p||p.type?new Ka(null,e,d):p),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const v=G5(h);if(v&&Dr.protocols.indexOf(v)===-1){r(new ft("Unsupported protocol "+v+":",ft.ERR_BAD_REQUEST,e));return}d.send(s||null)})},hu={http:b5,xhr:q5};ee.forEach(hu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Y5={getAdapter:e=>{e=ee.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let s=0;s<t&&(n=e[s],!(r=ee.isString(n)?hu[n.toLowerCase()]:n));s++);if(!r)throw r===!1?new ft(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(ee.hasOwnProp(hu,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!ee.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:hu};function nd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ka(null,e)}function Xp(e){return nd(e),e.headers=ci.from(e.headers),e.data=td.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Y5.getAdapter(e.adapter||Kh.adapter)(e).then(function(r){return nd(e),r.data=td.call(e,e.transformResponse,r),r.headers=ci.from(r.headers),r},function(r){return cb(r)||(nd(e),r&&r.response&&(r.response.data=td.call(e,e.transformResponse,r.response),r.response.headers=ci.from(r.response.headers))),Promise.reject(r)})}const Jp=e=>e instanceof ci?e.toJSON():e;function _o(e,t){t=t||{};const n={};function r(d,h,m){return ee.isPlainObject(d)&&ee.isPlainObject(h)?ee.merge.call({caseless:m},d,h):ee.isPlainObject(h)?ee.merge({},h):ee.isArray(h)?h.slice():h}function s(d,h,m){if(ee.isUndefined(h)){if(!ee.isUndefined(d))return r(void 0,d,m)}else return r(d,h,m)}function o(d,h){if(!ee.isUndefined(h))return r(void 0,h)}function l(d,h){if(ee.isUndefined(h)){if(!ee.isUndefined(d))return r(void 0,d)}else return r(void 0,h)}function u(d,h,m){if(m in t)return r(d,h);if(m in e)return r(void 0,d)}const f={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(d,h)=>s(Jp(d),Jp(h),!0)};return ee.forEach(Object.keys(e).concat(Object.keys(t)),function(h){const m=f[h]||s,v=m(e[h],t[h],h);ee.isUndefined(v)&&m!==u||(n[h]=v)}),n}const db="1.3.6",qh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Qp={};qh.transitional=function(t,n,r){function s(o,l){return"[Axios v"+db+"] Transitional option '"+o+"'"+l+(r?". "+r:"")}return(o,l,u)=>{if(t===!1)throw new ft(s(l," has been removed"+(n?" in "+n:"")),ft.ERR_DEPRECATED);return n&&!Qp[l]&&(Qp[l]=!0,console.warn(s(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,l,u):!0}};function Z5(e,t,n){if(typeof e!="object")throw new ft("options must be an object",ft.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],l=t[o];if(l){const u=e[o],f=u===void 0||l(u,o,e);if(f!==!0)throw new ft("option "+o+" must be "+f,ft.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ft("Unknown option "+o,ft.ERR_BAD_OPTION)}}const Ud={assertOptions:Z5,validators:qh},Ii=Ud.validators;class Tu{constructor(t){this.defaults=t,this.interceptors={request:new qp,response:new qp}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=_o(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Ud.assertOptions(r,{silentJSONParsing:Ii.transitional(Ii.boolean),forcedJSONParsing:Ii.transitional(Ii.boolean),clarifyTimeoutError:Ii.transitional(Ii.boolean)},!1),s!=null&&(ee.isFunction(s)?n.paramsSerializer={serialize:s}:Ud.assertOptions(s,{encode:Ii.function,serialize:Ii.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l;l=o&&ee.merge(o.common,o[n.method]),l&&ee.forEach(["delete","get","head","post","put","patch","common"],b=>{delete o[b]}),n.headers=ci.concat(l,o);const u=[];let f=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(f=f&&S.synchronous,u.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let h,m=0,v;if(!f){const b=[Xp.bind(this),void 0];for(b.unshift.apply(b,u),b.push.apply(b,d),v=b.length,h=Promise.resolve(n);m<v;)h=h.then(b[m++],b[m++]);return h}v=u.length;let p=n;for(m=0;m<v;){const b=u[m++],S=u[m++];try{p=b(p)}catch(T){S.call(this,T);break}}try{h=Xp.call(this,p)}catch(b){return Promise.reject(b)}for(m=0,v=d.length;m<v;)h=h.then(d[m++],d[m++]);return h}getUri(t){t=_o(this.defaults,t);const n=fb(t.baseURL,t.url);return ab(n,t.params,t.paramsSerializer)}}ee.forEach(["delete","get","head","options"],function(t){Tu.prototype[t]=function(n,r){return this.request(_o(r||{},{method:t,url:n,data:(r||{}).data}))}});ee.forEach(["post","put","patch"],function(t){function n(r){return function(o,l,u){return this.request(_o(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:l}))}}Tu.prototype[t]=n(),Tu.prototype[t+"Form"]=n(!0)});const mu=Tu;class Yh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const l=new Promise(u=>{r.subscribe(u),o=u}).then(s);return l.cancel=function(){r.unsubscribe(o)},l},t(function(o,l,u){r.reason||(r.reason=new Ka(o,l,u),n(r.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 Yh(function(s){t=s}),cancel:t}}}const X5=Yh;function J5(e){return function(n){return e.apply(null,n)}}function Q5(e){return ee.isObject(e)&&e.isAxiosError===!0}const zd={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(zd).forEach(([e,t])=>{zd[t]=e});const eL=zd;function hb(e){const t=new mu(e),n=Y0(mu.prototype.request,t);return ee.extend(n,mu.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return hb(_o(e,s))},n}const Qt=hb(Kh);Qt.Axios=mu;Qt.CanceledError=Ka;Qt.CancelToken=X5;Qt.isCancel=cb;Qt.VERSION=db;Qt.toFormData=lc;Qt.AxiosError=ft;Qt.Cancel=Qt.CanceledError;Qt.all=function(t){return Promise.all(t)};Qt.spread=J5;Qt.isAxiosError=Q5;Qt.mergeConfig=_o;Qt.AxiosHeaders=ci;Qt.formToJSON=e=>ub(ee.isHTMLForm(e)?new FormData(e):e);Qt.HttpStatusCode=eL;Qt.default=Qt;const tL=Qt,nL={baseURL:window.CODEX.API_V3_PATH,withCredentials:!0,xsrfCookieName:"csrftoken",xsrfHeaderName:"X-CSRFTOKEN"},et=tL.create(nL),rL=(e,t)=>{et.get(e,{responseType:"blob"}).then(n=>{const r=document.createElement("a"),s=new Blob([n.data],{type:"application/octet-stream"});return r.href=window.URL.createObjectURL(s),r.download=t,r.click(),window.URL.revokeObjectURL(n.data)}).catch(console.warn)},fc=e=>`c/${e}`,Zh=e=>window.CODEX.API_V3_PATH+fc(e),jn=()=>({ts:Tt().timestamp}),iL=e=>{const t={ts:e};return et.get("/version",{params:t})},e1={downloadIOSPWAFix:rL,getReaderBasePath:Zh,getReaderPath:fc,getTSParams:jn,getVersions:iL},sL=async()=>await et.get("/auth/flags/"),oL=()=>Intl.DateTimeFormat().resolvedOptions().timeZone,aL=async()=>{const e={timezone:oL()};return await et.post("/auth/timezone/",e)},lL=async e=>(e.login=e.username,await et.post("/auth/register/",e)),uL=async e=>(e.login=e.username,await et.post("/auth/login/",e)),cL=async()=>{const e=jn();return await et.get("/auth/profile/",{params:e})},fL=async()=>await et.post("/auth/logout/"),dL=async e=>await et.post("/auth/change-password/",e),us={changePassword:dL,getAdminFlags:sL,getProfile:cL,login:uL,logout:fL,register:lL,setTimezone:aL},Sn=Ga("auth",{state:()=>({adminFlags:{registration:void 0,nonUsers:void 0},user:void 0,MIN_PASSWORD_LENGTH:4}),getters:{isCodexViewable(){return!!(this.user||this.adminFlags.nonUsers)},isUserAdmin(){return this.user&&(this.user.isStaff||this.user.isSuperuser)}},actions:{async loadAdminFlags(){await us.getAdminFlags().then(e=>(this.adminFlags=e.data,!0)).catch(console.error)},async loadProfile(){return us.getProfile().then(e=>(this.user=e.data,!0)).catch(console.debug)},async login(e,t=!0){const n=Tt();await us.login(e).then(()=>(t&&n.clearErrors(),this.loadProfile())).catch(n.setErrors)},async register(e){const t=Tt();await us.register(e).then(()=>(t.clearErrors(),this.login(e))).catch(t.setErrors)},logout(){us.logout().then(()=>(this.user=void 0,!0)).catch(console.error)},async changePassword(e){const t={username:this.user.username,password:e.password},n=Tt();await us.changePassword(e).then(r=>(n.setSuccess(r.data.detail),this.login(t,!1))).catch(n.setErrors)},async setTimezone(){await us.setTimezone().catch(console.error)}}}),hL={bookmarkFilter:[{title:"All",value:"ALL",default:!0},{title:"Unread",value:"UNREAD"},{title:"In Progress",value:"IN_PROGRESS"},{title:"Read",value:"READ"}],q:"",topGroup:[{title:"Publishers",value:"p",default:!0},{title:"Imprints",value:"i"},{title:"Series",value:"s"},{title:"Volumes",value:"v"},{title:"Issues",value:"c"},{title:"Folder View",value:"f"}],settingsGroup:[{title:"Publishers",value:"p",default:!0},{title:"Imprints",value:"i"},{title:"Series",value:"s",default:!0},{title:"Volumes",value:"v"}],orderBy:[{title:"Name",value:"sort_name",default:!0},{title:"Publish Date",value:"date"},{title:"Added Time",value:"created_at"},{title:"Updated Time",value:"updated_at"},{title:"Page Count",value:"page_count"},{title:"File Size",value:"size"},{title:"Filename",value:"path"},{title:"Critical Rating",value:"critical_rating"},{title:"Community Rating",value:"community_rating"},{title:"Age Rating",value:"age_rating"},{title:"Search Score",value:"search_score"}],vuetifyNullCode:-1,groupNames:{p:"Publishers",i:"Imprints",s:"Series",v:"Volumes",c:"Issues",f:"Folders"},route:{group:"r",pk:0,page:1}},mL={fitTo:[{title:"Fit to Screen",value:"S",default:!0},{title:"Fit to Width",value:"W"},{title:"Fit to Height",value:"H"},{title:"Original Size",value:"O"},{title:"",value:""}]},vL={LIBRARY_CHANGED:"LIBRARY_CHANGED",LIBRARIAN_STATUS:"LIBRARIAN_STATUS",FAILED_IMPORTS:"FAILED_IMPORTS"},ir={browser:hL,reader:mL,websockets:vL},gL="modulepreload",pL=function(e){return window.CODEX.APP_PATH + "static"+"/"+e},t1={},lr=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=pL(o),o in t1)return;t1[o]=!0;const l=o.endsWith(".css"),u=l?'[rel="stylesheet"]':"";if(!!r)for(let h=s.length-1;h>=0;h--){const m=s[h];if(m.href===o&&(!l||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${u}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":gL,l||(d.as="script",d.crossOrigin=""),d.href=o,document.head.appendChild(d),l)return new Promise((h,m)=>{d.addEventListener("load",h),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())};/*!
|
|
8
|
-
* vue-router v4.1.6
|
|
9
|
-
* (c) 2022 Eduardo San Martin Morote
|
|
10
|
-
* @license MIT
|
|
11
|
-
*/const so=typeof window<"u";function yL(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const wt=Object.assign;function rd(e,t){const n={};for(const r in t){const s=t[r];n[r]=Sr(s)?s.map(e):e(s)}return n}const ba=()=>{},Sr=Array.isArray,bL=/\/$/,_L=e=>e.replace(bL,"");function id(e,t,n="/"){let r,s={},o="",l="";const u=t.indexOf("#");let f=t.indexOf("?");return u<f&&u>=0&&(f=-1),f>-1&&(r=t.slice(0,f),o=t.slice(f+1,u>-1?u:t.length),s=e(o)),u>-1&&(r=r||t.slice(0,u),l=t.slice(u,t.length)),r=xL(r??t,n),{fullPath:r+(o&&"?")+o+l,path:r,query:s,hash:l}}function wL(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function n1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function CL(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&wo(t.matched[r],n.matched[s])&&mb(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function wo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function mb(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!SL(e[n],t[n]))return!1;return!0}function SL(e,t){return Sr(e)?r1(e,t):Sr(t)?r1(t,e):e===t}function r1(e,t){return Sr(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function xL(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let s=n.length-1,o,l;for(o=0;o<r.length;o++)if(l=r[o],l!==".")if(l==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var Ra;(function(e){e.pop="pop",e.push="push"})(Ra||(Ra={}));var _a;(function(e){e.back="back",e.forward="forward",e.unknown=""})(_a||(_a={}));function AL(e){if(!e)if(so){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),_L(e)}const EL=/^[^#]+#/;function TL(e,t){return e.replace(EL,"#")+t}function kL(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const dc=()=>({left:window.pageXOffset,top:window.pageYOffset});function PL(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=kL(s,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 i1(e,t){return(history.state?history.state.position-t:-1)+e}const Wd=new Map;function RL(e,t){Wd.set(e,t)}function IL(e){const t=Wd.get(e);return Wd.delete(e),t}let LL=()=>location.protocol+"//"+location.host;function vb(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let u=s.includes(e.slice(o))?e.slice(o).length:1,f=s.slice(u);return f[0]!=="/"&&(f="/"+f),n1(f,"")}return n1(n,e)+r+s}function OL(e,t,n,r){let s=[],o=[],l=null;const u=({state:v})=>{const p=vb(e,location),b=n.value,S=t.value;let T=0;if(v){if(n.value=p,t.value=v,l&&l===b){l=null;return}T=S?v.position-S.position:0}else r(p);s.forEach(x=>{x(n.value,b,{delta:T,type:Ra.pop,direction:T?T>0?_a.forward:_a.back:_a.unknown})})};function f(){l=n.value}function d(v){s.push(v);const p=()=>{const b=s.indexOf(v);b>-1&&s.splice(b,1)};return o.push(p),p}function h(){const{history:v}=window;v.state&&v.replaceState(wt({},v.state,{scroll:dc()}),"")}function m(){for(const v of o)v();o=[],window.removeEventListener("popstate",u),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",u),window.addEventListener("beforeunload",h),{pauseListeners:f,listen:d,destroy:m}}function s1(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?dc():null}}function VL(e){const{history:t,location:n}=window,r={value:vb(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(f,d,h){const m=e.indexOf("#"),v=m>-1?(n.host&&document.querySelector("base")?e:e.slice(m))+f:LL()+e+f;try{t[h?"replaceState":"pushState"](d,"",v),s.value=d}catch(p){console.error(p),n[h?"replace":"assign"](v)}}function l(f,d){const h=wt({},t.state,s1(s.value.back,f,s.value.forward,!0),d,{position:s.value.position});o(f,h,!0),r.value=f}function u(f,d){const h=wt({},s.value,t.state,{forward:f,scroll:dc()});o(h.current,h,!0);const m=wt({},s1(r.value,f,null),{position:h.position+1},d);o(f,m,!1),r.value=f}return{location:r,state:s,push:u,replace:l}}function ML(e){e=AL(e);const t=VL(e),n=OL(e,t.state,t.location,t.replace);function r(o,l=!0){l||n.pauseListeners(),history.go(o)}const s=wt({location:"",base:e,go:r,createHref:TL.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function FL(e){return typeof e=="string"||e&&typeof e=="object"}function gb(e){return typeof e=="string"||typeof e=="symbol"}const Li={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},pb=Symbol("");var o1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(o1||(o1={}));function Co(e,t){return wt(new Error,{type:e,[pb]:!0},t)}function ei(e,t){return e instanceof Error&&pb in e&&(t==null||!!(e.type&t))}const a1="[^/]+?",BL={sensitive:!1,strict:!1,start:!0,end:!0},DL=/[.+*?^${}()[\]/\\]/g;function $L(e,t){const n=wt({},BL,t),r=[];let s=n.start?"^":"";const o=[];for(const d of e){const h=d.length?[]:[90];n.strict&&!d.length&&(s+="/");for(let m=0;m<d.length;m++){const v=d[m];let p=40+(n.sensitive?.25:0);if(v.type===0)m||(s+="/"),s+=v.value.replace(DL,"\\$&"),p+=40;else if(v.type===1){const{value:b,repeatable:S,optional:T,regexp:x}=v;o.push({name:b,repeatable:S,optional:T});const w=x||a1;if(w!==a1){p+=10;try{new RegExp(`(${w})`)}catch(V){throw new Error(`Invalid custom RegExp for param "${b}" (${w}): `+V.message)}}let C=S?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;m||(C=T&&d.length<2?`(?:/${C})`:"/"+C),T&&(C+="?"),s+=C,p+=20,T&&(p+=-8),S&&(p+=-20),w===".*"&&(p+=-50)}h.push(p)}r.push(h)}if(n.strict&&n.end){const d=r.length-1;r[d][r[d].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&(s+="(?:/|$)");const l=new RegExp(s,n.sensitive?"":"i");function u(d){const h=d.match(l),m={};if(!h)return null;for(let v=1;v<h.length;v++){const p=h[v]||"",b=o[v-1];m[b.name]=p&&b.repeatable?p.split("/"):p}return m}function f(d){let h="",m=!1;for(const v of e){(!m||!h.endsWith("/"))&&(h+="/"),m=!1;for(const p of v)if(p.type===0)h+=p.value;else if(p.type===1){const{value:b,repeatable:S,optional:T}=p,x=b in d?d[b]:"";if(Sr(x)&&!S)throw new Error(`Provided param "${b}" is an array but it is not repeatable (* or + modifiers)`);const w=Sr(x)?x.join("/"):x;if(!w)if(T)v.length<2&&(h.endsWith("/")?h=h.slice(0,-1):m=!0);else throw new Error(`Missing required param "${b}"`);h+=w}}return h||"/"}return{re:l,score:r,keys:o,parse:u,stringify:f}}function HL(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function NL(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const o=HL(r[n],s[n]);if(o)return o;n++}if(Math.abs(s.length-r.length)===1){if(l1(r))return 1;if(l1(s))return-1}return s.length-r.length}function l1(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const UL={type:0,value:""},zL=/[a-zA-Z0-9_]/;function WL(e){if(!e)return[[]];if(e==="/")return[[UL]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${d}": ${p}`)}let n=0,r=n;const s=[];let o;function l(){o&&s.push(o),o=[]}let u=0,f,d="",h="";function m(){d&&(n===0?o.push({type:0,value:d}):n===1||n===2||n===3?(o.length>1&&(f==="*"||f==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:d,regexp:h,repeatable:f==="*"||f==="+",optional:f==="*"||f==="?"})):t("Invalid state to consume buffer"),d="")}function v(){d+=f}for(;u<e.length;){if(f=e[u++],f==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:f==="/"?(d&&m(),l()):f===":"?(m(),n=1):v();break;case 4:v(),n=r;break;case 1:f==="("?n=2:zL.test(f)?v():(m(),n=0,f!=="*"&&f!=="?"&&f!=="+"&&u--);break;case 2:f===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+f:n=3:h+=f;break;case 3:m(),n=0,f!=="*"&&f!=="?"&&f!=="+"&&u--,h="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${d}"`),m(),l(),s}function GL(e,t,n){const r=$L(WL(e.path),n),s=wt(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function jL(e,t){const n=[],r=new Map;t=f1({strict:!1,end:!0,sensitive:!1},t);function s(h){return r.get(h)}function o(h,m,v){const p=!v,b=KL(h);b.aliasOf=v&&v.record;const S=f1(t,h),T=[b];if("alias"in h){const C=typeof h.alias=="string"?[h.alias]:h.alias;for(const V of C)T.push(wt({},b,{components:v?v.record.components:b.components,path:V,aliasOf:v?v.record:b}))}let x,w;for(const C of T){const{path:V}=C;if(m&&V[0]!=="/"){const I=m.record.path,M=I[I.length-1]==="/"?"":"/";C.path=m.record.path+(V&&M+V)}if(x=GL(C,m,S),v?v.alias.push(x):(w=w||x,w!==x&&w.alias.push(x),p&&h.name&&!c1(x)&&l(h.name)),b.children){const I=b.children;for(let M=0;M<I.length;M++)o(I[M],x,v&&v.children[M])}v=v||x,(x.record.components&&Object.keys(x.record.components).length||x.record.name||x.record.redirect)&&f(x)}return w?()=>{l(w)}:ba}function l(h){if(gb(h)){const m=r.get(h);m&&(r.delete(h),n.splice(n.indexOf(m),1),m.children.forEach(l),m.alias.forEach(l))}else{const m=n.indexOf(h);m>-1&&(n.splice(m,1),h.record.name&&r.delete(h.record.name),h.children.forEach(l),h.alias.forEach(l))}}function u(){return n}function f(h){let m=0;for(;m<n.length&&NL(h,n[m])>=0&&(h.record.path!==n[m].record.path||!yb(h,n[m]));)m++;n.splice(m,0,h),h.record.name&&!c1(h)&&r.set(h.record.name,h)}function d(h,m){let v,p={},b,S;if("name"in h&&h.name){if(v=r.get(h.name),!v)throw Co(1,{location:h});S=v.record.name,p=wt(u1(m.params,v.keys.filter(w=>!w.optional).map(w=>w.name)),h.params&&u1(h.params,v.keys.map(w=>w.name))),b=v.stringify(p)}else if("path"in h)b=h.path,v=n.find(w=>w.re.test(b)),v&&(p=v.parse(b),S=v.record.name);else{if(v=m.name?r.get(m.name):n.find(w=>w.re.test(m.path)),!v)throw Co(1,{location:h,currentLocation:m});S=v.record.name,p=wt({},m.params,h.params),b=v.stringify(p)}const T=[];let x=v;for(;x;)T.unshift(x.record),x=x.parent;return{name:S,path:b,params:p,matched:T,meta:YL(T)}}return e.forEach(h=>o(h)),{addRoute:o,resolve:d,removeRoute:l,getRoutes:u,getRecordMatcher:s}}function u1(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function KL(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:qL(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 qL(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function c1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function YL(e){return e.reduce((t,n)=>wt(t,n.meta),{})}function f1(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function yb(e,t){return t.children.some(n=>n===e||yb(e,n))}const bb=/#/g,ZL=/&/g,XL=/\//g,JL=/=/g,QL=/\?/g,_b=/\+/g,eO=/%5B/g,tO=/%5D/g,wb=/%5E/g,nO=/%60/g,Cb=/%7B/g,rO=/%7C/g,Sb=/%7D/g,iO=/%20/g;function Xh(e){return encodeURI(""+e).replace(rO,"|").replace(eO,"[").replace(tO,"]")}function sO(e){return Xh(e).replace(Cb,"{").replace(Sb,"}").replace(wb,"^")}function Gd(e){return Xh(e).replace(_b,"%2B").replace(iO,"+").replace(bb,"%23").replace(ZL,"%26").replace(nO,"`").replace(Cb,"{").replace(Sb,"}").replace(wb,"^")}function oO(e){return Gd(e).replace(JL,"%3D")}function aO(e){return Xh(e).replace(bb,"%23").replace(QL,"%3F")}function lO(e){return e==null?"":aO(e).replace(XL,"%2F")}function ku(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function uO(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<r.length;++s){const o=r[s].replace(_b," "),l=o.indexOf("="),u=ku(l<0?o:o.slice(0,l)),f=l<0?null:ku(o.slice(l+1));if(u in t){let d=t[u];Sr(d)||(d=t[u]=[d]),d.push(f)}else t[u]=f}return t}function d1(e){let t="";for(let n in e){const r=e[n];if(n=oO(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Sr(r)?r.map(o=>o&&Gd(o)):[r&&Gd(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function cO(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Sr(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const fO=Symbol(""),h1=Symbol(""),Jh=Symbol(""),xb=Symbol(""),jd=Symbol("");function aa(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Fi(e,t,n,r,s){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,u)=>{const f=m=>{m===!1?u(Co(4,{from:n,to:t})):m instanceof Error?u(m):FL(m)?u(Co(2,{from:t,to:m})):(o&&r.enterCallbacks[s]===o&&typeof m=="function"&&o.push(m),l())},d=e.call(r&&r.instances[s],t,n,f);let h=Promise.resolve(d);e.length<3&&(h=h.then(f)),h.catch(m=>u(m))})}function sd(e,t,n,r){const s=[];for(const o of e)for(const l in o.components){let u=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(dO(u)){const d=(u.__vccOpts||u)[t];d&&s.push(Fi(d,n,r,o,l))}else{let f=u();s.push(()=>f.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${o.path}"`));const h=yL(d)?d.default:d;o.components[l]=h;const v=(h.__vccOpts||h)[t];return v&&Fi(v,n,r,o,l)()}))}}return s}function dO(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function m1(e){const t=nt(Jh),n=nt(xb),r=P(()=>t.resolve(dn(e.to))),s=P(()=>{const{matched:f}=r.value,{length:d}=f,h=f[d-1],m=n.matched;if(!h||!m.length)return-1;const v=m.findIndex(wo.bind(null,h));if(v>-1)return v;const p=v1(f[d-2]);return d>1&&v1(h)===p&&m[m.length-1].path!==p?m.findIndex(wo.bind(null,f[d-2])):v}),o=P(()=>s.value>-1&&gO(n.params,r.value.params)),l=P(()=>s.value>-1&&s.value===n.matched.length-1&&mb(n.params,r.value.params));function u(f={}){return vO(f)?t[dn(e.replace)?"replace":"push"](dn(e.to)).catch(ba):Promise.resolve()}return{route:r,href:P(()=>r.value.href),isActive:o,isExactActive:l,navigate:u}}const hO=Lo({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:m1,setup(e,{slots:t}){const n=Jt(m1(e)),{options:r}=nt(Jh),s=P(()=>({[g1(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[g1(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:mi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),mO=hO;function vO(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 gO(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Sr(s)||s.length!==r.length||r.some((o,l)=>o!==s[l]))return!1}return!0}function v1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const g1=(e,t,n)=>e??t??n,pO=Lo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=nt(jd),s=P(()=>e.route||r.value),o=nt(h1,0),l=P(()=>{let d=dn(o);const{matched:h}=s.value;let m;for(;(m=h[d])&&!m.components;)d++;return d}),u=P(()=>s.value.matched[l.value]);kt(h1,P(()=>l.value+1)),kt(fO,u),kt(jd,s);const f=X();return Fe(()=>[f.value,u.value,e.name],([d,h,m],[v,p,b])=>{h&&(h.instances[m]=d,p&&p!==h&&d&&d===v&&(h.leaveGuards.size||(h.leaveGuards=p.leaveGuards),h.updateGuards.size||(h.updateGuards=p.updateGuards))),d&&h&&(!p||!wo(h,p)||!v)&&(h.enterCallbacks[m]||[]).forEach(S=>S(d))},{flush:"post"}),()=>{const d=s.value,h=e.name,m=u.value,v=m&&m.components[h];if(!v)return p1(n.default,{Component:v,route:d});const p=m.props[h],b=p?p===!0?d.params:typeof p=="function"?p(d):p:null,T=mi(v,wt({},b,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(m.instances[h]=null)},ref:f}));return p1(n.default,{Component:T,route:d})||T}}});function p1(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const yO=pO;function bO(e){const t=jL(e.routes,e),n=e.parseQuery||uO,r=e.stringifyQuery||d1,s=e.history,o=aa(),l=aa(),u=aa(),f=Yu(Li);let d=Li;so&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=rd.bind(null,Y=>""+Y),m=rd.bind(null,lO),v=rd.bind(null,ku);function p(Y,Z){let ue,Ee;return gb(Y)?(ue=t.getRecordMatcher(Y),Ee=Z):Ee=Y,t.addRoute(Ee,ue)}function b(Y){const Z=t.getRecordMatcher(Y);Z&&t.removeRoute(Z)}function S(){return t.getRoutes().map(Y=>Y.record)}function T(Y){return!!t.getRecordMatcher(Y)}function x(Y,Z){if(Z=wt({},Z||f.value),typeof Y=="string"){const R=id(n,Y,Z.path),B=t.resolve({path:R.path},Z),K=s.createHref(R.fullPath);return wt(R,B,{params:v(B.params),hash:ku(R.hash),redirectedFrom:void 0,href:K})}let ue;if("path"in Y)ue=wt({},Y,{path:id(n,Y.path,Z.path).path});else{const R=wt({},Y.params);for(const B in R)R[B]==null&&delete R[B];ue=wt({},Y,{params:m(Y.params)}),Z.params=m(Z.params)}const Ee=t.resolve(ue,Z),He=Y.hash||"";Ee.params=h(v(Ee.params));const vt=wL(r,wt({},Y,{hash:sO(He),path:Ee.path})),$e=s.createHref(vt);return wt({fullPath:vt,hash:He,query:r===d1?cO(Y.query):Y.query||{}},Ee,{redirectedFrom:void 0,href:$e})}function w(Y){return typeof Y=="string"?id(n,Y,f.value.path):wt({},Y)}function C(Y,Z){if(d!==Y)return Co(8,{from:Z,to:Y})}function V(Y){return O(Y)}function I(Y){return V(wt(w(Y),{replace:!0}))}function M(Y){const Z=Y.matched[Y.matched.length-1];if(Z&&Z.redirect){const{redirect:ue}=Z;let Ee=typeof ue=="function"?ue(Y):ue;return typeof Ee=="string"&&(Ee=Ee.includes("?")||Ee.includes("#")?Ee=w(Ee):{path:Ee},Ee.params={}),wt({query:Y.query,hash:Y.hash,params:"path"in Ee?{}:Y.params},Ee)}}function O(Y,Z){const ue=d=x(Y),Ee=f.value,He=Y.state,vt=Y.force,$e=Y.replace===!0,R=M(ue);if(R)return O(wt(w(R),{state:typeof R=="object"?wt({},He,R.state):He,force:vt,replace:$e}),Z||ue);const B=ue;B.redirectedFrom=Z;let K;return!vt&&CL(r,Ee,ue)&&(K=Co(16,{to:B,from:Ee}),me(Ee,Ee,!0,!1)),(K?Promise.resolve(K):H(B,Ee)).catch(Q=>ei(Q)?ei(Q,2)?Q:_e(Q):de(Q,B,Ee)).then(Q=>{if(Q){if(ei(Q,2))return O(wt({replace:$e},w(Q.to),{state:typeof Q.to=="object"?wt({},He,Q.to.state):He,force:vt}),Z||B)}else Q=D(B,Ee,!0,$e,He);return z(B,Ee,Q),Q})}function k(Y,Z){const ue=C(Y,Z);return ue?Promise.reject(ue):Promise.resolve()}function H(Y,Z){let ue;const[Ee,He,vt]=_O(Y,Z);ue=sd(Ee.reverse(),"beforeRouteLeave",Y,Z);for(const R of Ee)R.leaveGuards.forEach(B=>{ue.push(Fi(B,Y,Z))});const $e=k.bind(null,Y,Z);return ue.push($e),eo(ue).then(()=>{ue=[];for(const R of o.list())ue.push(Fi(R,Y,Z));return ue.push($e),eo(ue)}).then(()=>{ue=sd(He,"beforeRouteUpdate",Y,Z);for(const R of He)R.updateGuards.forEach(B=>{ue.push(Fi(B,Y,Z))});return ue.push($e),eo(ue)}).then(()=>{ue=[];for(const R of Y.matched)if(R.beforeEnter&&!Z.matched.includes(R))if(Sr(R.beforeEnter))for(const B of R.beforeEnter)ue.push(Fi(B,Y,Z));else ue.push(Fi(R.beforeEnter,Y,Z));return ue.push($e),eo(ue)}).then(()=>(Y.matched.forEach(R=>R.enterCallbacks={}),ue=sd(vt,"beforeRouteEnter",Y,Z),ue.push($e),eo(ue))).then(()=>{ue=[];for(const R of l.list())ue.push(Fi(R,Y,Z));return ue.push($e),eo(ue)}).catch(R=>ei(R,8)?R:Promise.reject(R))}function z(Y,Z,ue){for(const Ee of u.list())Ee(Y,Z,ue)}function D(Y,Z,ue,Ee,He){const vt=C(Y,Z);if(vt)return vt;const $e=Z===Li,R=so?history.state:{};ue&&(Ee||$e?s.replace(Y.fullPath,wt({scroll:$e&&R&&R.scroll},He)):s.push(Y.fullPath,He)),f.value=Y,me(Y,Z,ue,$e),_e()}let U;function q(){U||(U=s.listen((Y,Z,ue)=>{const Ee=x(Y),He=M(Ee);if(He){O(wt(He,{replace:!0}),Ee).catch(ba);return}d=Ee;const vt=f.value;so&&RL(i1(vt.fullPath,ue.delta),dc()),H(Ee,vt).catch($e=>ei($e,12)?$e:ei($e,2)?(O($e.to,Ee).then(R=>{ei(R,20)&&!ue.delta&&ue.type===Ra.pop&&s.go(-1,!1)}).catch(ba),Promise.reject()):(ue.delta&&s.go(-ue.delta,!1),de($e,Ee,vt))).then($e=>{$e=$e||D(Ee,vt,!1),$e&&(ue.delta&&!ei($e,8)?s.go(-ue.delta,!1):ue.type===Ra.pop&&ei($e,20)&&s.go(-1,!1)),z(Ee,vt,$e)}).catch(ba)}))}let G=aa(),ge=aa(),fe;function de(Y,Z,ue){_e(Y);const Ee=ge.list();return Ee.length?Ee.forEach(He=>He(Y,Z,ue)):console.error(Y),Promise.reject(Y)}function he(){return fe&&f.value!==Li?Promise.resolve():new Promise((Y,Z)=>{G.add([Y,Z])})}function _e(Y){return fe||(fe=!Y,q(),G.list().forEach(([Z,ue])=>Y?ue(Y):Z()),G.reset()),Y}function me(Y,Z,ue,Ee){const{scrollBehavior:He}=e;if(!so||!He)return Promise.resolve();const vt=!ue&&IL(i1(Y.fullPath,0))||(Ee||!ue)&&history.state&&history.state.scroll||null;return qt().then(()=>He(Y,Z,vt)).then($e=>$e&&PL($e)).catch($e=>de($e,Y,Z))}const be=Y=>s.go(Y);let le;const Ne=new Set;return{currentRoute:f,listening:!0,addRoute:p,removeRoute:b,hasRoute:T,getRoutes:S,resolve:x,options:e,push:V,replace:I,go:be,back:()=>be(-1),forward:()=>be(1),beforeEach:o.add,beforeResolve:l.add,afterEach:u.add,onError:ge.add,isReady:he,install(Y){const Z=this;Y.component("RouterLink",mO),Y.component("RouterView",yO),Y.config.globalProperties.$router=Z,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>dn(f)}),so&&!le&&f.value===Li&&(le=!0,V(s.location).catch(He=>{}));const ue={};for(const He in Li)ue[He]=P(()=>f.value[He]);Y.provide(Jh,Z),Y.provide(xb,Jt(ue)),Y.provide(jd,f);const Ee=Y.unmount;Ne.add(Y),Y.unmount=function(){Ne.delete(Y),Ne.size<1&&(d=Li,U&&U(),U=null,f.value=Li,le=!1,fe=!1),Ee()}}}}function eo(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function _O(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let l=0;l<o;l++){const u=t.matched[l];u&&(e.matched.find(d=>wo(d,u))?r.push(u):n.push(u));const f=e.matched[l];f&&(t.matched.find(d=>wo(d,f))||s.push(f))}return[n,r,s]}const wO=()=>lr(()=>Promise.resolve().then(()=>zF),void 0),CO=()=>lr(()=>import("./browser-d2caeed7.js"),["assets/browser-d2caeed7.js","assets/metadata-dialog-8b0e8aaa.js","assets/metadata-dialog-785c4cfc.css","assets/browser-7325db61.css"]),SO=()=>lr(()=>import("./http-error-0221c37d.js"),["assets/http-error-0221c37d.js","assets/http-error-40ce966f.css"]),xO=()=>lr(()=>import("./reader-fe9345d2.js"),["assets/reader-fe9345d2.js","assets/metadata-dialog-8b0e8aaa.js","assets/metadata-dialog-785c4cfc.css","assets/reader-a8b8f766.css"]),AO=()=>lr(()=>Promise.resolve().then(()=>xB),void 0),EO=()=>lr(()=>Promise.resolve().then(()=>ZB),void 0),TO=()=>lr(()=>Promise.resolve().then(()=>a6),void 0),kO=()=>lr(()=>Promise.resolve().then(()=>B6),void 0),PO=()=>lr(()=>Promise.resolve().then(()=>Y6),void 0),RO=()=>lr(()=>Promise.resolve().then(()=>QD),void 0),IO={name:"browser",params:window.CODEX.LAST_ROUTE||ir.browser.route},LO=[{name:"home",path:"/",redirect:IO},{name:"reader",path:"/c/:pk/:page",component:xO},{name:"browser",path:"/:group/:pk/:page",component:CO},{name:"admin",path:"/admin",component:wO,redirect:"/admin/libraries",children:[{name:"admin-users",path:"users",component:EO},{name:"admin-groups",path:"groups",component:TO},{name:"admin-libraries",path:"libraries",component:kO},{name:"admin-flags",path:"flags",component:AO},{name:"admin-tasks",path:"tasks",component:PO},{name:"admin-stats",path:"stats",component:RO}]},{name:"error",path:"/error/:code",component:SO,props:!0},{name:"404",path:"/:pathMatch(.*)*",redirect:"/error/404"}],mr=new bO({history:ML(window.CODEX.APP_PATH),routes:LO}),OO=e=>et.post("/admin/user",e),VO=()=>{const e=jn();return et.get("/admin/user",{params:e})},MO=(e,t)=>et.put(`/admin/user/${e}/`,t),FO=(e,t)=>et.put(`/admin/user/${e}/password`,t),BO=e=>et.delete(`/admin/user/${e}/`),DO=e=>et.post("/admin/group",e),$O=()=>{const e=jn();return et.get("/admin/group",{params:e})},HO=(e,t)=>et.put(`/admin/group/${e}/`,t),NO=e=>et.delete(`/admin/group/${e}/`),UO=e=>et.post("/admin/library",e),zO=()=>{const e=jn();return et.get("/admin/library",{params:e})},WO=(e,t)=>et.put(`/admin/library/${e}/`,t),GO=e=>et.delete(`/admin/library/${e}/`),jO=(e,t)=>{const n={...jn(),path:e,showHidden:t};return et.get("/admin/folders",{params:n})},KO=()=>{const e=jn();return et.get("/admin/failed-import",{params:e})},qO=()=>{const e=jn();return et.get("/admin/flag",{params:e})},YO=(e,t)=>et.put(`/admin/flag/${e}/`,t),ZO=async e=>await et.post("/admin/librarian/task",{task:e}),XO=()=>{const e={ts:Date.now()};return et.get("/admin/librarian/status",{params:e})},JO=(e,t)=>et.post("/admin/librarian/task",{task:e,library_id:t}),QO=()=>et.get("/admin/stats"),eV=()=>et.post("/admin/api_key"),ti={changeUserPassword:FO,createGroup:DO,createLibrary:UO,createUser:OO,deleteLibrary:GO,deleteGroup:NO,deleteUser:BO,getFailedImports:KO,getFlags:qO,getFolders:jO,getGroups:$O,getLibrarianStatuses:XO,getLibraries:zO,getStats:QO,getUsers:VO,librarianTask:JO,postLibrarianTask:ZO,updateAPIKey:eV,updateFlag:YO,updateGroup:HO,updateLibrary:WO,updateUser:MO},tV=e=>console.warn(e),od=(e,t)=>{const n=[];for(const r of e)n.push({value:r.pk,title:r[t]});return n},y1={LibrarianStatus:"LibrarianStatuses",Library:"Libraries"},nV=e=>e in y1?y1[e]:e+"s",ad=(e,t)=>{const n={};for(const r of e)n[r.pk]=r[t];return n},mt=Ga("admin",{state:()=>({librarianStatuses:[],unseenFailedImports:!1,users:[],groups:[],libraries:[],failedImports:[],flags:{},folderPicker:{root:void 0,folders:[]},stats:void 0}),getters:{isUserAdmin(){return Sn().isUserAdmin},userMap(){return ad(this.users,"username")},groupMap(){return ad(this.groups,"name")},libraryMap(){return ad(this.libraries,"path")},vuetifyUsers(){return od(this.users,"username")},vuetifyGroups(){return od(this.groups,"name")},vuetifyLibraries(){return od(this.libraries,"path")},librariesExist(){return this.libraries&&this.libraries.length>0}},actions:{async loadTable(e){if(!this.isUserAdmin)return!1;const t=nV(e),n="get"+t;await ti[n]().then(r=>{const s=t.charAt(0).toLowerCase()+t.slice(1);return Array.isArray(r.data)?(this[s]=r.data,!0):(console.warn(s,"response not an array"),!1)}).catch(tV)},loadTables(e){for(const t of e)this.loadTable(t)},async loadFolders(e,t){if(!this.isUserAdmin)return!1;await ti.getFolders(e,t).then(n=>(this.folderPicker=n.data,!0)).catch(Tt().setErrors)},async clearFolders(e){if(!this.isUserAdmin)return!1;this.folderPicker={root:e,folders:[""]}},async createRow(e,t){if(!this.isUserAdmin)return!1;const n="create"+e,r=Tt();await ti[n](t).then(()=>(r.clearErrors(),this.loadTable(e))).catch(r.setErrors)},async updateRow(e,t,n){if(!this.isUserAdmin)return!1;const r="update"+e,s=Tt();await ti[r](t,n).then(()=>(s.clearErrors(),this.loadTable(e))).catch(s.setErrors)},async changeUserPassword(e,t){if(!this.isUserAdmin)return!1;const n=Tt();await ti.changeUserPassword(e,t).then(r=>(n.setSuccess(r.data.detail),!0)).catch(n.setErrors)},async deleteRow(e,t){if(!this.isUserAdmin)return!1;const n="delete"+e,r=Tt();await ti[n](t).then(()=>(r.clearErrors(),this.loadTable(e))).catch(r.setErrors)},async librarianTask(e,t,n){if(!this.isUserAdmin)return!1;const r=Tt();await ti.librarianTask(e,n).then(()=>r.setSuccess(t)).catch(r.setErrors)},nameSet(e,t,n,r){const s=new Set;if(e)for(const o of e)(!r||!n||o[t]!==n[t])&&s.add(o[t]);return s},async loadStats(){await ti.getStats().then(e=>(this.stats=e.data,!0)).catch(console.warn)},async updateAPIKey(){await ti.updateAPIKey().then(()=>!0).catch(console.warn)}}});var oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ab(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n8(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var s=[null];s.push.apply(s,arguments);var o=Function.bind.apply(t,s);return new o}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var Pu={exports:{}};/**
|
|
12
|
-
* @license
|
|
13
|
-
* Lodash <https://lodash.com/>
|
|
14
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
15
|
-
* Released under MIT license <https://lodash.com/license>
|
|
16
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
17
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
18
|
-
*/Pu.exports;(function(e,t){(function(){var n,r="4.17.21",s=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,v=2,p=4,b=1,S=2,T=1,x=2,w=4,C=8,V=16,I=32,M=64,O=128,k=256,H=512,z=30,D="...",U=800,q=16,G=1,ge=2,fe=3,de=1/0,he=9007199254740991,_e=17976931348623157e292,me=0/0,be=4294967295,le=be-1,Ne=be>>>1,bt=[["ary",O],["bind",T],["bindKey",x],["curry",C],["curryRight",V],["flip",H],["partial",I],["partialRight",M],["rearg",k]],Y="[object Arguments]",Z="[object Array]",ue="[object AsyncFunction]",Ee="[object Boolean]",He="[object Date]",vt="[object DOMException]",$e="[object Error]",R="[object Function]",B="[object GeneratorFunction]",K="[object Map]",Q="[object Number]",oe="[object Null]",ce="[object Object]",Ce="[object Promise]",ve="[object Proxy]",pe="[object RegExp]",re="[object Set]",Le="[object String]",Te="[object Symbol]",De="[object Undefined]",ze="[object WeakMap]",rt="[object WeakSet]",ht="[object ArrayBuffer]",lt="[object DataView]",Vt="[object Float32Array]",gn="[object Float64Array]",Lr="[object Int8Array]",Fs="[object Int16Array]",Wr="[object Int32Array]",Bs="[object Uint8Array]",nn="[object Uint8ClampedArray]",xn="[object Uint16Array]",Ds="[object Uint32Array]",eC=/\b__p \+= '';/g,tC=/\b(__p \+=) '' \+/g,nC=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Im=/&(?:amp|lt|gt|quot|#39);/g,Lm=/[&<>"']/g,rC=RegExp(Im.source),iC=RegExp(Lm.source),sC=/<%-([\s\S]+?)%>/g,oC=/<%([\s\S]+?)%>/g,Om=/<%=([\s\S]+?)%>/g,aC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lC=/^\w*$/,uC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lc=/[\\^$.*+?()[\]{}|]/g,cC=RegExp(Lc.source),Oc=/^\s+/,fC=/\s/,dC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,hC=/\{\n\/\* \[wrapped with (.+)\] \*/,mC=/,? & /,vC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,gC=/[()=,{}\[\]\/\s]/,pC=/\\(\\)?/g,yC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vm=/\w*$/,bC=/^[-+]0x[0-9a-f]+$/i,_C=/^0b[01]+$/i,wC=/^\[object .+?Constructor\]$/,CC=/^0o[0-7]+$/i,SC=/^(?:0|[1-9]\d*)$/,xC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,il=/($^)/,AC=/['\n\r\u2028\u2029\\]/g,sl="\\ud800-\\udfff",EC="\\u0300-\\u036f",TC="\\ufe20-\\ufe2f",kC="\\u20d0-\\u20ff",Mm=EC+TC+kC,Fm="\\u2700-\\u27bf",Bm="a-z\\xdf-\\xf6\\xf8-\\xff",PC="\\xac\\xb1\\xd7\\xf7",RC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",IC="\\u2000-\\u206f",LC=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Dm="A-Z\\xc0-\\xd6\\xd8-\\xde",$m="\\ufe0e\\ufe0f",Hm=PC+RC+IC+LC,Vc="['’]",OC="["+sl+"]",Nm="["+Hm+"]",ol="["+Mm+"]",Um="\\d+",VC="["+Fm+"]",zm="["+Bm+"]",Wm="[^"+sl+Hm+Um+Fm+Bm+Dm+"]",Mc="\\ud83c[\\udffb-\\udfff]",MC="(?:"+ol+"|"+Mc+")",Gm="[^"+sl+"]",Fc="(?:\\ud83c[\\udde6-\\uddff]){2}",Bc="[\\ud800-\\udbff][\\udc00-\\udfff]",$s="["+Dm+"]",jm="\\u200d",Km="(?:"+zm+"|"+Wm+")",FC="(?:"+$s+"|"+Wm+")",qm="(?:"+Vc+"(?:d|ll|m|re|s|t|ve))?",Ym="(?:"+Vc+"(?:D|LL|M|RE|S|T|VE))?",Zm=MC+"?",Xm="["+$m+"]?",BC="(?:"+jm+"(?:"+[Gm,Fc,Bc].join("|")+")"+Xm+Zm+")*",DC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$C="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jm=Xm+Zm+BC,HC="(?:"+[VC,Fc,Bc].join("|")+")"+Jm,NC="(?:"+[Gm+ol+"?",ol,Fc,Bc,OC].join("|")+")",UC=RegExp(Vc,"g"),zC=RegExp(ol,"g"),Dc=RegExp(Mc+"(?="+Mc+")|"+NC+Jm,"g"),WC=RegExp([$s+"?"+zm+"+"+qm+"(?="+[Nm,$s,"$"].join("|")+")",FC+"+"+Ym+"(?="+[Nm,$s+Km,"$"].join("|")+")",$s+"?"+Km+"+"+qm,$s+"+"+Ym,$C,DC,Um,HC].join("|"),"g"),GC=RegExp("["+jm+sl+Mm+$m+"]"),jC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,KC=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qC=-1,Lt={};Lt[Vt]=Lt[gn]=Lt[Lr]=Lt[Fs]=Lt[Wr]=Lt[Bs]=Lt[nn]=Lt[xn]=Lt[Ds]=!0,Lt[Y]=Lt[Z]=Lt[ht]=Lt[Ee]=Lt[lt]=Lt[He]=Lt[$e]=Lt[R]=Lt[K]=Lt[Q]=Lt[ce]=Lt[pe]=Lt[re]=Lt[Le]=Lt[ze]=!1;var Rt={};Rt[Y]=Rt[Z]=Rt[ht]=Rt[lt]=Rt[Ee]=Rt[He]=Rt[Vt]=Rt[gn]=Rt[Lr]=Rt[Fs]=Rt[Wr]=Rt[K]=Rt[Q]=Rt[ce]=Rt[pe]=Rt[re]=Rt[Le]=Rt[Te]=Rt[Bs]=Rt[nn]=Rt[xn]=Rt[Ds]=!0,Rt[$e]=Rt[R]=Rt[ze]=!1;var YC={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ZC={"&":"&","<":"<",">":">",'"':""","'":"'"},XC={"&":"&","<":"<",">":">",""":'"',"'":"'"},JC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},QC=parseFloat,e2=parseInt,Qm=typeof oo=="object"&&oo&&oo.Object===Object&&oo,t2=typeof self=="object"&&self&&self.Object===Object&&self,rn=Qm||t2||Function("return this")(),$c=t&&!t.nodeType&&t,Ji=$c&&!0&&e&&!e.nodeType&&e,ev=Ji&&Ji.exports===$c,Hc=ev&&Qm.process,Yn=function(){try{var N=Ji&&Ji.require&&Ji.require("util").types;return N||Hc&&Hc.binding&&Hc.binding("util")}catch{}}(),tv=Yn&&Yn.isArrayBuffer,nv=Yn&&Yn.isDate,rv=Yn&&Yn.isMap,iv=Yn&&Yn.isRegExp,sv=Yn&&Yn.isSet,ov=Yn&&Yn.isTypedArray;function On(N,J,j){switch(j.length){case 0:return N.call(J);case 1:return N.call(J,j[0]);case 2:return N.call(J,j[0],j[1]);case 3:return N.call(J,j[0],j[1],j[2])}return N.apply(J,j)}function n2(N,J,j,xe){for(var Ye=-1,gt=N==null?0:N.length;++Ye<gt;){var Zt=N[Ye];J(xe,Zt,j(Zt),N)}return xe}function Zn(N,J){for(var j=-1,xe=N==null?0:N.length;++j<xe&&J(N[j],j,N)!==!1;);return N}function r2(N,J){for(var j=N==null?0:N.length;j--&&J(N[j],j,N)!==!1;);return N}function av(N,J){for(var j=-1,xe=N==null?0:N.length;++j<xe;)if(!J(N[j],j,N))return!1;return!0}function bi(N,J){for(var j=-1,xe=N==null?0:N.length,Ye=0,gt=[];++j<xe;){var Zt=N[j];J(Zt,j,N)&&(gt[Ye++]=Zt)}return gt}function al(N,J){var j=N==null?0:N.length;return!!j&&Hs(N,J,0)>-1}function Nc(N,J,j){for(var xe=-1,Ye=N==null?0:N.length;++xe<Ye;)if(j(J,N[xe]))return!0;return!1}function Mt(N,J){for(var j=-1,xe=N==null?0:N.length,Ye=Array(xe);++j<xe;)Ye[j]=J(N[j],j,N);return Ye}function _i(N,J){for(var j=-1,xe=J.length,Ye=N.length;++j<xe;)N[Ye+j]=J[j];return N}function Uc(N,J,j,xe){var Ye=-1,gt=N==null?0:N.length;for(xe&>&&(j=N[++Ye]);++Ye<gt;)j=J(j,N[Ye],Ye,N);return j}function i2(N,J,j,xe){var Ye=N==null?0:N.length;for(xe&&Ye&&(j=N[--Ye]);Ye--;)j=J(j,N[Ye],Ye,N);return j}function zc(N,J){for(var j=-1,xe=N==null?0:N.length;++j<xe;)if(J(N[j],j,N))return!0;return!1}var s2=Wc("length");function o2(N){return N.split("")}function a2(N){return N.match(vC)||[]}function lv(N,J,j){var xe;return j(N,function(Ye,gt,Zt){if(J(Ye,gt,Zt))return xe=gt,!1}),xe}function ll(N,J,j,xe){for(var Ye=N.length,gt=j+(xe?1:-1);xe?gt--:++gt<Ye;)if(J(N[gt],gt,N))return gt;return-1}function Hs(N,J,j){return J===J?b2(N,J,j):ll(N,uv,j)}function l2(N,J,j,xe){for(var Ye=j-1,gt=N.length;++Ye<gt;)if(xe(N[Ye],J))return Ye;return-1}function uv(N){return N!==N}function cv(N,J){var j=N==null?0:N.length;return j?jc(N,J)/j:me}function Wc(N){return function(J){return J==null?n:J[N]}}function Gc(N){return function(J){return N==null?n:N[J]}}function fv(N,J,j,xe,Ye){return Ye(N,function(gt,Zt,Et){j=xe?(xe=!1,gt):J(j,gt,Zt,Et)}),j}function u2(N,J){var j=N.length;for(N.sort(J);j--;)N[j]=N[j].value;return N}function jc(N,J){for(var j,xe=-1,Ye=N.length;++xe<Ye;){var gt=J(N[xe]);gt!==n&&(j=j===n?gt:j+gt)}return j}function Kc(N,J){for(var j=-1,xe=Array(N);++j<N;)xe[j]=J(j);return xe}function c2(N,J){return Mt(J,function(j){return[j,N[j]]})}function dv(N){return N&&N.slice(0,gv(N)+1).replace(Oc,"")}function Vn(N){return function(J){return N(J)}}function qc(N,J){return Mt(J,function(j){return N[j]})}function zo(N,J){return N.has(J)}function hv(N,J){for(var j=-1,xe=N.length;++j<xe&&Hs(J,N[j],0)>-1;);return j}function mv(N,J){for(var j=N.length;j--&&Hs(J,N[j],0)>-1;);return j}function f2(N,J){for(var j=N.length,xe=0;j--;)N[j]===J&&++xe;return xe}var d2=Gc(YC),h2=Gc(ZC);function m2(N){return"\\"+JC[N]}function v2(N,J){return N==null?n:N[J]}function Ns(N){return GC.test(N)}function g2(N){return jC.test(N)}function p2(N){for(var J,j=[];!(J=N.next()).done;)j.push(J.value);return j}function Yc(N){var J=-1,j=Array(N.size);return N.forEach(function(xe,Ye){j[++J]=[Ye,xe]}),j}function vv(N,J){return function(j){return N(J(j))}}function wi(N,J){for(var j=-1,xe=N.length,Ye=0,gt=[];++j<xe;){var Zt=N[j];(Zt===J||Zt===h)&&(N[j]=h,gt[Ye++]=j)}return gt}function ul(N){var J=-1,j=Array(N.size);return N.forEach(function(xe){j[++J]=xe}),j}function y2(N){var J=-1,j=Array(N.size);return N.forEach(function(xe){j[++J]=[xe,xe]}),j}function b2(N,J,j){for(var xe=j-1,Ye=N.length;++xe<Ye;)if(N[xe]===J)return xe;return-1}function _2(N,J,j){for(var xe=j+1;xe--;)if(N[xe]===J)return xe;return xe}function Us(N){return Ns(N)?C2(N):s2(N)}function cr(N){return Ns(N)?S2(N):o2(N)}function gv(N){for(var J=N.length;J--&&fC.test(N.charAt(J)););return J}var w2=Gc(XC);function C2(N){for(var J=Dc.lastIndex=0;Dc.test(N);)++J;return J}function S2(N){return N.match(Dc)||[]}function x2(N){return N.match(WC)||[]}var A2=function N(J){J=J==null?rn:zs.defaults(rn.Object(),J,zs.pick(rn,KC));var j=J.Array,xe=J.Date,Ye=J.Error,gt=J.Function,Zt=J.Math,Et=J.Object,Zc=J.RegExp,E2=J.String,Xn=J.TypeError,cl=j.prototype,T2=gt.prototype,Ws=Et.prototype,fl=J["__core-js_shared__"],dl=T2.toString,_t=Ws.hasOwnProperty,k2=0,pv=function(){var i=/[^.]+$/.exec(fl&&fl.keys&&fl.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),hl=Ws.toString,P2=dl.call(Et),R2=rn._,I2=Zc("^"+dl.call(_t).replace(Lc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ml=ev?J.Buffer:n,Ci=J.Symbol,vl=J.Uint8Array,yv=ml?ml.allocUnsafe:n,gl=vv(Et.getPrototypeOf,Et),bv=Et.create,_v=Ws.propertyIsEnumerable,pl=cl.splice,wv=Ci?Ci.isConcatSpreadable:n,Wo=Ci?Ci.iterator:n,Qi=Ci?Ci.toStringTag:n,yl=function(){try{var i=is(Et,"defineProperty");return i({},"",{}),i}catch{}}(),L2=J.clearTimeout!==rn.clearTimeout&&J.clearTimeout,O2=xe&&xe.now!==rn.Date.now&&xe.now,V2=J.setTimeout!==rn.setTimeout&&J.setTimeout,bl=Zt.ceil,_l=Zt.floor,Xc=Et.getOwnPropertySymbols,M2=ml?ml.isBuffer:n,Cv=J.isFinite,F2=cl.join,B2=vv(Et.keys,Et),Xt=Zt.max,un=Zt.min,D2=xe.now,$2=J.parseInt,Sv=Zt.random,H2=cl.reverse,Jc=is(J,"DataView"),Go=is(J,"Map"),Qc=is(J,"Promise"),Gs=is(J,"Set"),jo=is(J,"WeakMap"),Ko=is(Et,"create"),wl=jo&&new jo,js={},N2=ss(Jc),U2=ss(Go),z2=ss(Qc),W2=ss(Gs),G2=ss(jo),Cl=Ci?Ci.prototype:n,qo=Cl?Cl.valueOf:n,xv=Cl?Cl.toString:n;function A(i){if($t(i)&&!Xe(i)&&!(i instanceof at)){if(i instanceof Jn)return i;if(_t.call(i,"__wrapped__"))return Ag(i)}return new Jn(i)}var Ks=function(){function i(){}return function(a){if(!Bt(a))return{};if(bv)return bv(a);i.prototype=a;var c=new i;return i.prototype=n,c}}();function Sl(){}function Jn(i,a){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=n}A.templateSettings={escape:sC,evaluate:oC,interpolate:Om,variable:"",imports:{_:A}},A.prototype=Sl.prototype,A.prototype.constructor=A,Jn.prototype=Ks(Sl.prototype),Jn.prototype.constructor=Jn;function at(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=be,this.__views__=[]}function j2(){var i=new at(this.__wrapped__);return i.__actions__=An(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=An(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=An(this.__views__),i}function K2(){if(this.__filtered__){var i=new at(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function q2(){var i=this.__wrapped__.value(),a=this.__dir__,c=Xe(i),g=a<0,_=c?i.length:0,E=ox(0,_,this.__views__),L=E.start,F=E.end,W=F-L,te=g?F:L-1,ne=this.__iteratees__,ae=ne.length,we=0,Ie=un(W,this.__takeCount__);if(!c||!g&&_==W&&Ie==W)return qv(i,this.__actions__);var We=[];e:for(;W--&&we<Ie;){te+=a;for(var Qe=-1,Ge=i[te];++Qe<ae;){var it=ne[Qe],ut=it.iteratee,Bn=it.type,bn=ut(Ge);if(Bn==ge)Ge=bn;else if(!bn){if(Bn==G)continue e;break e}}We[we++]=Ge}return We}at.prototype=Ks(Sl.prototype),at.prototype.constructor=at;function es(i){var a=-1,c=i==null?0:i.length;for(this.clear();++a<c;){var g=i[a];this.set(g[0],g[1])}}function Y2(){this.__data__=Ko?Ko(null):{},this.size=0}function Z2(i){var a=this.has(i)&&delete this.__data__[i];return this.size-=a?1:0,a}function X2(i){var a=this.__data__;if(Ko){var c=a[i];return c===f?n:c}return _t.call(a,i)?a[i]:n}function J2(i){var a=this.__data__;return Ko?a[i]!==n:_t.call(a,i)}function Q2(i,a){var c=this.__data__;return this.size+=this.has(i)?0:1,c[i]=Ko&&a===n?f:a,this}es.prototype.clear=Y2,es.prototype.delete=Z2,es.prototype.get=X2,es.prototype.has=J2,es.prototype.set=Q2;function Gr(i){var a=-1,c=i==null?0:i.length;for(this.clear();++a<c;){var g=i[a];this.set(g[0],g[1])}}function eS(){this.__data__=[],this.size=0}function tS(i){var a=this.__data__,c=xl(a,i);if(c<0)return!1;var g=a.length-1;return c==g?a.pop():pl.call(a,c,1),--this.size,!0}function nS(i){var a=this.__data__,c=xl(a,i);return c<0?n:a[c][1]}function rS(i){return xl(this.__data__,i)>-1}function iS(i,a){var c=this.__data__,g=xl(c,i);return g<0?(++this.size,c.push([i,a])):c[g][1]=a,this}Gr.prototype.clear=eS,Gr.prototype.delete=tS,Gr.prototype.get=nS,Gr.prototype.has=rS,Gr.prototype.set=iS;function jr(i){var a=-1,c=i==null?0:i.length;for(this.clear();++a<c;){var g=i[a];this.set(g[0],g[1])}}function sS(){this.size=0,this.__data__={hash:new es,map:new(Go||Gr),string:new es}}function oS(i){var a=Fl(this,i).delete(i);return this.size-=a?1:0,a}function aS(i){return Fl(this,i).get(i)}function lS(i){return Fl(this,i).has(i)}function uS(i,a){var c=Fl(this,i),g=c.size;return c.set(i,a),this.size+=c.size==g?0:1,this}jr.prototype.clear=sS,jr.prototype.delete=oS,jr.prototype.get=aS,jr.prototype.has=lS,jr.prototype.set=uS;function ts(i){var a=-1,c=i==null?0:i.length;for(this.__data__=new jr;++a<c;)this.add(i[a])}function cS(i){return this.__data__.set(i,f),this}function fS(i){return this.__data__.has(i)}ts.prototype.add=ts.prototype.push=cS,ts.prototype.has=fS;function fr(i){var a=this.__data__=new Gr(i);this.size=a.size}function dS(){this.__data__=new Gr,this.size=0}function hS(i){var a=this.__data__,c=a.delete(i);return this.size=a.size,c}function mS(i){return this.__data__.get(i)}function vS(i){return this.__data__.has(i)}function gS(i,a){var c=this.__data__;if(c instanceof Gr){var g=c.__data__;if(!Go||g.length<s-1)return g.push([i,a]),this.size=++c.size,this;c=this.__data__=new jr(g)}return c.set(i,a),this.size=c.size,this}fr.prototype.clear=dS,fr.prototype.delete=hS,fr.prototype.get=mS,fr.prototype.has=vS,fr.prototype.set=gS;function Av(i,a){var c=Xe(i),g=!c&&os(i),_=!c&&!g&&Ti(i),E=!c&&!g&&!_&&Xs(i),L=c||g||_||E,F=L?Kc(i.length,E2):[],W=F.length;for(var te in i)(a||_t.call(i,te))&&!(L&&(te=="length"||_&&(te=="offset"||te=="parent")||E&&(te=="buffer"||te=="byteLength"||te=="byteOffset")||Zr(te,W)))&&F.push(te);return F}function Ev(i){var a=i.length;return a?i[ff(0,a-1)]:n}function pS(i,a){return Bl(An(i),ns(a,0,i.length))}function yS(i){return Bl(An(i))}function ef(i,a,c){(c!==n&&!dr(i[a],c)||c===n&&!(a in i))&&Kr(i,a,c)}function Yo(i,a,c){var g=i[a];(!(_t.call(i,a)&&dr(g,c))||c===n&&!(a in i))&&Kr(i,a,c)}function xl(i,a){for(var c=i.length;c--;)if(dr(i[c][0],a))return c;return-1}function bS(i,a,c,g){return Si(i,function(_,E,L){a(g,_,c(_),L)}),g}function Tv(i,a){return i&&Vr(a,tn(a),i)}function _S(i,a){return i&&Vr(a,Tn(a),i)}function Kr(i,a,c){a=="__proto__"&&yl?yl(i,a,{configurable:!0,enumerable:!0,value:c,writable:!0}):i[a]=c}function tf(i,a){for(var c=-1,g=a.length,_=j(g),E=i==null;++c<g;)_[c]=E?n:Ff(i,a[c]);return _}function ns(i,a,c){return i===i&&(c!==n&&(i=i<=c?i:c),a!==n&&(i=i>=a?i:a)),i}function Qn(i,a,c,g,_,E){var L,F=a&m,W=a&v,te=a&p;if(c&&(L=_?c(i,g,_,E):c(i)),L!==n)return L;if(!Bt(i))return i;var ne=Xe(i);if(ne){if(L=lx(i),!F)return An(i,L)}else{var ae=cn(i),we=ae==R||ae==B;if(Ti(i))return Xv(i,F);if(ae==ce||ae==Y||we&&!_){if(L=W||we?{}:gg(i),!F)return W?XS(i,_S(L,i)):ZS(i,Tv(L,i))}else{if(!Rt[ae])return _?i:{};L=ux(i,ae,F)}}E||(E=new fr);var Ie=E.get(i);if(Ie)return Ie;E.set(i,L),Gg(i)?i.forEach(function(Ge){L.add(Qn(Ge,a,c,Ge,i,E))}):zg(i)&&i.forEach(function(Ge,it){L.set(it,Qn(Ge,a,c,it,i,E))});var We=te?W?Cf:wf:W?Tn:tn,Qe=ne?n:We(i);return Zn(Qe||i,function(Ge,it){Qe&&(it=Ge,Ge=i[it]),Yo(L,it,Qn(Ge,a,c,it,i,E))}),L}function wS(i){var a=tn(i);return function(c){return kv(c,i,a)}}function kv(i,a,c){var g=c.length;if(i==null)return!g;for(i=Et(i);g--;){var _=c[g],E=a[_],L=i[_];if(L===n&&!(_ in i)||!E(L))return!1}return!0}function Pv(i,a,c){if(typeof i!="function")throw new Xn(l);return na(function(){i.apply(n,c)},a)}function Zo(i,a,c,g){var _=-1,E=al,L=!0,F=i.length,W=[],te=a.length;if(!F)return W;c&&(a=Mt(a,Vn(c))),g?(E=Nc,L=!1):a.length>=s&&(E=zo,L=!1,a=new ts(a));e:for(;++_<F;){var ne=i[_],ae=c==null?ne:c(ne);if(ne=g||ne!==0?ne:0,L&&ae===ae){for(var we=te;we--;)if(a[we]===ae)continue e;W.push(ne)}else E(a,ae,g)||W.push(ne)}return W}var Si=ng(Or),Rv=ng(rf,!0);function CS(i,a){var c=!0;return Si(i,function(g,_,E){return c=!!a(g,_,E),c}),c}function Al(i,a,c){for(var g=-1,_=i.length;++g<_;){var E=i[g],L=a(E);if(L!=null&&(F===n?L===L&&!Fn(L):c(L,F)))var F=L,W=E}return W}function SS(i,a,c,g){var _=i.length;for(c=Je(c),c<0&&(c=-c>_?0:_+c),g=g===n||g>_?_:Je(g),g<0&&(g+=_),g=c>g?0:Kg(g);c<g;)i[c++]=a;return i}function Iv(i,a){var c=[];return Si(i,function(g,_,E){a(g,_,E)&&c.push(g)}),c}function sn(i,a,c,g,_){var E=-1,L=i.length;for(c||(c=fx),_||(_=[]);++E<L;){var F=i[E];a>0&&c(F)?a>1?sn(F,a-1,c,g,_):_i(_,F):g||(_[_.length]=F)}return _}var nf=rg(),Lv=rg(!0);function Or(i,a){return i&&nf(i,a,tn)}function rf(i,a){return i&&Lv(i,a,tn)}function El(i,a){return bi(a,function(c){return Xr(i[c])})}function rs(i,a){a=Ai(a,i);for(var c=0,g=a.length;i!=null&&c<g;)i=i[Mr(a[c++])];return c&&c==g?i:n}function Ov(i,a,c){var g=a(i);return Xe(i)?g:_i(g,c(i))}function pn(i){return i==null?i===n?De:oe:Qi&&Qi in Et(i)?sx(i):yx(i)}function sf(i,a){return i>a}function xS(i,a){return i!=null&&_t.call(i,a)}function AS(i,a){return i!=null&&a in Et(i)}function ES(i,a,c){return i>=un(a,c)&&i<Xt(a,c)}function of(i,a,c){for(var g=c?Nc:al,_=i[0].length,E=i.length,L=E,F=j(E),W=1/0,te=[];L--;){var ne=i[L];L&&a&&(ne=Mt(ne,Vn(a))),W=un(ne.length,W),F[L]=!c&&(a||_>=120&&ne.length>=120)?new ts(L&&ne):n}ne=i[0];var ae=-1,we=F[0];e:for(;++ae<_&&te.length<W;){var Ie=ne[ae],We=a?a(Ie):Ie;if(Ie=c||Ie!==0?Ie:0,!(we?zo(we,We):g(te,We,c))){for(L=E;--L;){var Qe=F[L];if(!(Qe?zo(Qe,We):g(i[L],We,c)))continue e}we&&we.push(We),te.push(Ie)}}return te}function TS(i,a,c,g){return Or(i,function(_,E,L){a(g,c(_),E,L)}),g}function Xo(i,a,c){a=Ai(a,i),i=_g(i,a);var g=i==null?i:i[Mr(tr(a))];return g==null?n:On(g,i,c)}function Vv(i){return $t(i)&&pn(i)==Y}function kS(i){return $t(i)&&pn(i)==ht}function PS(i){return $t(i)&&pn(i)==He}function Jo(i,a,c,g,_){return i===a?!0:i==null||a==null||!$t(i)&&!$t(a)?i!==i&&a!==a:RS(i,a,c,g,Jo,_)}function RS(i,a,c,g,_,E){var L=Xe(i),F=Xe(a),W=L?Z:cn(i),te=F?Z:cn(a);W=W==Y?ce:W,te=te==Y?ce:te;var ne=W==ce,ae=te==ce,we=W==te;if(we&&Ti(i)){if(!Ti(a))return!1;L=!0,ne=!1}if(we&&!ne)return E||(E=new fr),L||Xs(i)?hg(i,a,c,g,_,E):rx(i,a,W,c,g,_,E);if(!(c&b)){var Ie=ne&&_t.call(i,"__wrapped__"),We=ae&&_t.call(a,"__wrapped__");if(Ie||We){var Qe=Ie?i.value():i,Ge=We?a.value():a;return E||(E=new fr),_(Qe,Ge,c,g,E)}}return we?(E||(E=new fr),ix(i,a,c,g,_,E)):!1}function IS(i){return $t(i)&&cn(i)==K}function af(i,a,c,g){var _=c.length,E=_,L=!g;if(i==null)return!E;for(i=Et(i);_--;){var F=c[_];if(L&&F[2]?F[1]!==i[F[0]]:!(F[0]in i))return!1}for(;++_<E;){F=c[_];var W=F[0],te=i[W],ne=F[1];if(L&&F[2]){if(te===n&&!(W in i))return!1}else{var ae=new fr;if(g)var we=g(te,ne,W,i,a,ae);if(!(we===n?Jo(ne,te,b|S,g,ae):we))return!1}}return!0}function Mv(i){if(!Bt(i)||hx(i))return!1;var a=Xr(i)?I2:wC;return a.test(ss(i))}function LS(i){return $t(i)&&pn(i)==pe}function OS(i){return $t(i)&&cn(i)==re}function VS(i){return $t(i)&&zl(i.length)&&!!Lt[pn(i)]}function Fv(i){return typeof i=="function"?i:i==null?kn:typeof i=="object"?Xe(i)?$v(i[0],i[1]):Dv(i):ip(i)}function lf(i){if(!ta(i))return B2(i);var a=[];for(var c in Et(i))_t.call(i,c)&&c!="constructor"&&a.push(c);return a}function MS(i){if(!Bt(i))return px(i);var a=ta(i),c=[];for(var g in i)g=="constructor"&&(a||!_t.call(i,g))||c.push(g);return c}function uf(i,a){return i<a}function Bv(i,a){var c=-1,g=En(i)?j(i.length):[];return Si(i,function(_,E,L){g[++c]=a(_,E,L)}),g}function Dv(i){var a=xf(i);return a.length==1&&a[0][2]?yg(a[0][0],a[0][1]):function(c){return c===i||af(c,i,a)}}function $v(i,a){return Ef(i)&&pg(a)?yg(Mr(i),a):function(c){var g=Ff(c,i);return g===n&&g===a?Bf(c,i):Jo(a,g,b|S)}}function Tl(i,a,c,g,_){i!==a&&nf(a,function(E,L){if(_||(_=new fr),Bt(E))FS(i,a,L,c,Tl,g,_);else{var F=g?g(kf(i,L),E,L+"",i,a,_):n;F===n&&(F=E),ef(i,L,F)}},Tn)}function FS(i,a,c,g,_,E,L){var F=kf(i,c),W=kf(a,c),te=L.get(W);if(te){ef(i,c,te);return}var ne=E?E(F,W,c+"",i,a,L):n,ae=ne===n;if(ae){var we=Xe(W),Ie=!we&&Ti(W),We=!we&&!Ie&&Xs(W);ne=W,we||Ie||We?Xe(F)?ne=F:Ut(F)?ne=An(F):Ie?(ae=!1,ne=Xv(W,!0)):We?(ae=!1,ne=Jv(W,!0)):ne=[]:ra(W)||os(W)?(ne=F,os(F)?ne=qg(F):(!Bt(F)||Xr(F))&&(ne=gg(W))):ae=!1}ae&&(L.set(W,ne),_(ne,W,g,E,L),L.delete(W)),ef(i,c,ne)}function Hv(i,a){var c=i.length;if(c)return a+=a<0?c:0,Zr(a,c)?i[a]:n}function Nv(i,a,c){a.length?a=Mt(a,function(E){return Xe(E)?function(L){return rs(L,E.length===1?E[0]:E)}:E}):a=[kn];var g=-1;a=Mt(a,Vn(Ue()));var _=Bv(i,function(E,L,F){var W=Mt(a,function(te){return te(E)});return{criteria:W,index:++g,value:E}});return u2(_,function(E,L){return YS(E,L,c)})}function BS(i,a){return Uv(i,a,function(c,g){return Bf(i,g)})}function Uv(i,a,c){for(var g=-1,_=a.length,E={};++g<_;){var L=a[g],F=rs(i,L);c(F,L)&&Qo(E,Ai(L,i),F)}return E}function DS(i){return function(a){return rs(a,i)}}function cf(i,a,c,g){var _=g?l2:Hs,E=-1,L=a.length,F=i;for(i===a&&(a=An(a)),c&&(F=Mt(i,Vn(c)));++E<L;)for(var W=0,te=a[E],ne=c?c(te):te;(W=_(F,ne,W,g))>-1;)F!==i&&pl.call(F,W,1),pl.call(i,W,1);return i}function zv(i,a){for(var c=i?a.length:0,g=c-1;c--;){var _=a[c];if(c==g||_!==E){var E=_;Zr(_)?pl.call(i,_,1):mf(i,_)}}return i}function ff(i,a){return i+_l(Sv()*(a-i+1))}function $S(i,a,c,g){for(var _=-1,E=Xt(bl((a-i)/(c||1)),0),L=j(E);E--;)L[g?E:++_]=i,i+=c;return L}function df(i,a){var c="";if(!i||a<1||a>he)return c;do a%2&&(c+=i),a=_l(a/2),a&&(i+=i);while(a);return c}function tt(i,a){return Pf(bg(i,a,kn),i+"")}function HS(i){return Ev(Js(i))}function NS(i,a){var c=Js(i);return Bl(c,ns(a,0,c.length))}function Qo(i,a,c,g){if(!Bt(i))return i;a=Ai(a,i);for(var _=-1,E=a.length,L=E-1,F=i;F!=null&&++_<E;){var W=Mr(a[_]),te=c;if(W==="__proto__"||W==="constructor"||W==="prototype")return i;if(_!=L){var ne=F[W];te=g?g(ne,W,F):n,te===n&&(te=Bt(ne)?ne:Zr(a[_+1])?[]:{})}Yo(F,W,te),F=F[W]}return i}var Wv=wl?function(i,a){return wl.set(i,a),i}:kn,US=yl?function(i,a){return yl(i,"toString",{configurable:!0,enumerable:!1,value:$f(a),writable:!0})}:kn;function zS(i){return Bl(Js(i))}function er(i,a,c){var g=-1,_=i.length;a<0&&(a=-a>_?0:_+a),c=c>_?_:c,c<0&&(c+=_),_=a>c?0:c-a>>>0,a>>>=0;for(var E=j(_);++g<_;)E[g]=i[g+a];return E}function WS(i,a){var c;return Si(i,function(g,_,E){return c=a(g,_,E),!c}),!!c}function kl(i,a,c){var g=0,_=i==null?g:i.length;if(typeof a=="number"&&a===a&&_<=Ne){for(;g<_;){var E=g+_>>>1,L=i[E];L!==null&&!Fn(L)&&(c?L<=a:L<a)?g=E+1:_=E}return _}return hf(i,a,kn,c)}function hf(i,a,c,g){var _=0,E=i==null?0:i.length;if(E===0)return 0;a=c(a);for(var L=a!==a,F=a===null,W=Fn(a),te=a===n;_<E;){var ne=_l((_+E)/2),ae=c(i[ne]),we=ae!==n,Ie=ae===null,We=ae===ae,Qe=Fn(ae);if(L)var Ge=g||We;else te?Ge=We&&(g||we):F?Ge=We&&we&&(g||!Ie):W?Ge=We&&we&&!Ie&&(g||!Qe):Ie||Qe?Ge=!1:Ge=g?ae<=a:ae<a;Ge?_=ne+1:E=ne}return un(E,le)}function Gv(i,a){for(var c=-1,g=i.length,_=0,E=[];++c<g;){var L=i[c],F=a?a(L):L;if(!c||!dr(F,W)){var W=F;E[_++]=L===0?0:L}}return E}function jv(i){return typeof i=="number"?i:Fn(i)?me:+i}function Mn(i){if(typeof i=="string")return i;if(Xe(i))return Mt(i,Mn)+"";if(Fn(i))return xv?xv.call(i):"";var a=i+"";return a=="0"&&1/i==-de?"-0":a}function xi(i,a,c){var g=-1,_=al,E=i.length,L=!0,F=[],W=F;if(c)L=!1,_=Nc;else if(E>=s){var te=a?null:tx(i);if(te)return ul(te);L=!1,_=zo,W=new ts}else W=a?[]:F;e:for(;++g<E;){var ne=i[g],ae=a?a(ne):ne;if(ne=c||ne!==0?ne:0,L&&ae===ae){for(var we=W.length;we--;)if(W[we]===ae)continue e;a&&W.push(ae),F.push(ne)}else _(W,ae,c)||(W!==F&&W.push(ae),F.push(ne))}return F}function mf(i,a){return a=Ai(a,i),i=_g(i,a),i==null||delete i[Mr(tr(a))]}function Kv(i,a,c,g){return Qo(i,a,c(rs(i,a)),g)}function Pl(i,a,c,g){for(var _=i.length,E=g?_:-1;(g?E--:++E<_)&&a(i[E],E,i););return c?er(i,g?0:E,g?E+1:_):er(i,g?E+1:0,g?_:E)}function qv(i,a){var c=i;return c instanceof at&&(c=c.value()),Uc(a,function(g,_){return _.func.apply(_.thisArg,_i([g],_.args))},c)}function vf(i,a,c){var g=i.length;if(g<2)return g?xi(i[0]):[];for(var _=-1,E=j(g);++_<g;)for(var L=i[_],F=-1;++F<g;)F!=_&&(E[_]=Zo(E[_]||L,i[F],a,c));return xi(sn(E,1),a,c)}function Yv(i,a,c){for(var g=-1,_=i.length,E=a.length,L={};++g<_;){var F=g<E?a[g]:n;c(L,i[g],F)}return L}function gf(i){return Ut(i)?i:[]}function pf(i){return typeof i=="function"?i:kn}function Ai(i,a){return Xe(i)?i:Ef(i,a)?[i]:xg(yt(i))}var GS=tt;function Ei(i,a,c){var g=i.length;return c=c===n?g:c,!a&&c>=g?i:er(i,a,c)}var Zv=L2||function(i){return rn.clearTimeout(i)};function Xv(i,a){if(a)return i.slice();var c=i.length,g=yv?yv(c):new i.constructor(c);return i.copy(g),g}function yf(i){var a=new i.constructor(i.byteLength);return new vl(a).set(new vl(i)),a}function jS(i,a){var c=a?yf(i.buffer):i.buffer;return new i.constructor(c,i.byteOffset,i.byteLength)}function KS(i){var a=new i.constructor(i.source,Vm.exec(i));return a.lastIndex=i.lastIndex,a}function qS(i){return qo?Et(qo.call(i)):{}}function Jv(i,a){var c=a?yf(i.buffer):i.buffer;return new i.constructor(c,i.byteOffset,i.length)}function Qv(i,a){if(i!==a){var c=i!==n,g=i===null,_=i===i,E=Fn(i),L=a!==n,F=a===null,W=a===a,te=Fn(a);if(!F&&!te&&!E&&i>a||E&&L&&W&&!F&&!te||g&&L&&W||!c&&W||!_)return 1;if(!g&&!E&&!te&&i<a||te&&c&&_&&!g&&!E||F&&c&&_||!L&&_||!W)return-1}return 0}function YS(i,a,c){for(var g=-1,_=i.criteria,E=a.criteria,L=_.length,F=c.length;++g<L;){var W=Qv(_[g],E[g]);if(W){if(g>=F)return W;var te=c[g];return W*(te=="desc"?-1:1)}}return i.index-a.index}function eg(i,a,c,g){for(var _=-1,E=i.length,L=c.length,F=-1,W=a.length,te=Xt(E-L,0),ne=j(W+te),ae=!g;++F<W;)ne[F]=a[F];for(;++_<L;)(ae||_<E)&&(ne[c[_]]=i[_]);for(;te--;)ne[F++]=i[_++];return ne}function tg(i,a,c,g){for(var _=-1,E=i.length,L=-1,F=c.length,W=-1,te=a.length,ne=Xt(E-F,0),ae=j(ne+te),we=!g;++_<ne;)ae[_]=i[_];for(var Ie=_;++W<te;)ae[Ie+W]=a[W];for(;++L<F;)(we||_<E)&&(ae[Ie+c[L]]=i[_++]);return ae}function An(i,a){var c=-1,g=i.length;for(a||(a=j(g));++c<g;)a[c]=i[c];return a}function Vr(i,a,c,g){var _=!c;c||(c={});for(var E=-1,L=a.length;++E<L;){var F=a[E],W=g?g(c[F],i[F],F,c,i):n;W===n&&(W=i[F]),_?Kr(c,F,W):Yo(c,F,W)}return c}function ZS(i,a){return Vr(i,Af(i),a)}function XS(i,a){return Vr(i,mg(i),a)}function Rl(i,a){return function(c,g){var _=Xe(c)?n2:bS,E=a?a():{};return _(c,i,Ue(g,2),E)}}function qs(i){return tt(function(a,c){var g=-1,_=c.length,E=_>1?c[_-1]:n,L=_>2?c[2]:n;for(E=i.length>3&&typeof E=="function"?(_--,E):n,L&&yn(c[0],c[1],L)&&(E=_<3?n:E,_=1),a=Et(a);++g<_;){var F=c[g];F&&i(a,F,g,E)}return a})}function ng(i,a){return function(c,g){if(c==null)return c;if(!En(c))return i(c,g);for(var _=c.length,E=a?_:-1,L=Et(c);(a?E--:++E<_)&&g(L[E],E,L)!==!1;);return c}}function rg(i){return function(a,c,g){for(var _=-1,E=Et(a),L=g(a),F=L.length;F--;){var W=L[i?F:++_];if(c(E[W],W,E)===!1)break}return a}}function JS(i,a,c){var g=a&T,_=ea(i);function E(){var L=this&&this!==rn&&this instanceof E?_:i;return L.apply(g?c:this,arguments)}return E}function ig(i){return function(a){a=yt(a);var c=Ns(a)?cr(a):n,g=c?c[0]:a.charAt(0),_=c?Ei(c,1).join(""):a.slice(1);return g[i]()+_}}function Ys(i){return function(a){return Uc(np(tp(a).replace(UC,"")),i,"")}}function ea(i){return function(){var a=arguments;switch(a.length){case 0:return new i;case 1:return new i(a[0]);case 2:return new i(a[0],a[1]);case 3:return new i(a[0],a[1],a[2]);case 4:return new i(a[0],a[1],a[2],a[3]);case 5:return new i(a[0],a[1],a[2],a[3],a[4]);case 6:return new i(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new i(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var c=Ks(i.prototype),g=i.apply(c,a);return Bt(g)?g:c}}function QS(i,a,c){var g=ea(i);function _(){for(var E=arguments.length,L=j(E),F=E,W=Zs(_);F--;)L[F]=arguments[F];var te=E<3&&L[0]!==W&&L[E-1]!==W?[]:wi(L,W);if(E-=te.length,E<c)return ug(i,a,Il,_.placeholder,n,L,te,n,n,c-E);var ne=this&&this!==rn&&this instanceof _?g:i;return On(ne,this,L)}return _}function sg(i){return function(a,c,g){var _=Et(a);if(!En(a)){var E=Ue(c,3);a=tn(a),c=function(F){return E(_[F],F,_)}}var L=i(a,c,g);return L>-1?_[E?a[L]:L]:n}}function og(i){return Yr(function(a){var c=a.length,g=c,_=Jn.prototype.thru;for(i&&a.reverse();g--;){var E=a[g];if(typeof E!="function")throw new Xn(l);if(_&&!L&&Ml(E)=="wrapper")var L=new Jn([],!0)}for(g=L?g:c;++g<c;){E=a[g];var F=Ml(E),W=F=="wrapper"?Sf(E):n;W&&Tf(W[0])&&W[1]==(O|C|I|k)&&!W[4].length&&W[9]==1?L=L[Ml(W[0])].apply(L,W[3]):L=E.length==1&&Tf(E)?L[F]():L.thru(E)}return function(){var te=arguments,ne=te[0];if(L&&te.length==1&&Xe(ne))return L.plant(ne).value();for(var ae=0,we=c?a[ae].apply(this,te):ne;++ae<c;)we=a[ae].call(this,we);return we}})}function Il(i,a,c,g,_,E,L,F,W,te){var ne=a&O,ae=a&T,we=a&x,Ie=a&(C|V),We=a&H,Qe=we?n:ea(i);function Ge(){for(var it=arguments.length,ut=j(it),Bn=it;Bn--;)ut[Bn]=arguments[Bn];if(Ie)var bn=Zs(Ge),Dn=f2(ut,bn);if(g&&(ut=eg(ut,g,_,Ie)),E&&(ut=tg(ut,E,L,Ie)),it-=Dn,Ie&&it<te){var zt=wi(ut,bn);return ug(i,a,Il,Ge.placeholder,c,ut,zt,F,W,te-it)}var hr=ae?c:this,Qr=we?hr[i]:i;return it=ut.length,F?ut=bx(ut,F):We&&it>1&&ut.reverse(),ne&&W<it&&(ut.length=W),this&&this!==rn&&this instanceof Ge&&(Qr=Qe||ea(Qr)),Qr.apply(hr,ut)}return Ge}function ag(i,a){return function(c,g){return TS(c,i,a(g),{})}}function Ll(i,a){return function(c,g){var _;if(c===n&&g===n)return a;if(c!==n&&(_=c),g!==n){if(_===n)return g;typeof c=="string"||typeof g=="string"?(c=Mn(c),g=Mn(g)):(c=jv(c),g=jv(g)),_=i(c,g)}return _}}function bf(i){return Yr(function(a){return a=Mt(a,Vn(Ue())),tt(function(c){var g=this;return i(a,function(_){return On(_,g,c)})})})}function Ol(i,a){a=a===n?" ":Mn(a);var c=a.length;if(c<2)return c?df(a,i):a;var g=df(a,bl(i/Us(a)));return Ns(a)?Ei(cr(g),0,i).join(""):g.slice(0,i)}function ex(i,a,c,g){var _=a&T,E=ea(i);function L(){for(var F=-1,W=arguments.length,te=-1,ne=g.length,ae=j(ne+W),we=this&&this!==rn&&this instanceof L?E:i;++te<ne;)ae[te]=g[te];for(;W--;)ae[te++]=arguments[++F];return On(we,_?c:this,ae)}return L}function lg(i){return function(a,c,g){return g&&typeof g!="number"&&yn(a,c,g)&&(c=g=n),a=Jr(a),c===n?(c=a,a=0):c=Jr(c),g=g===n?a<c?1:-1:Jr(g),$S(a,c,g,i)}}function Vl(i){return function(a,c){return typeof a=="string"&&typeof c=="string"||(a=nr(a),c=nr(c)),i(a,c)}}function ug(i,a,c,g,_,E,L,F,W,te){var ne=a&C,ae=ne?L:n,we=ne?n:L,Ie=ne?E:n,We=ne?n:E;a|=ne?I:M,a&=~(ne?M:I),a&w||(a&=~(T|x));var Qe=[i,a,_,Ie,ae,We,we,F,W,te],Ge=c.apply(n,Qe);return Tf(i)&&wg(Ge,Qe),Ge.placeholder=g,Cg(Ge,i,a)}function _f(i){var a=Zt[i];return function(c,g){if(c=nr(c),g=g==null?0:un(Je(g),292),g&&Cv(c)){var _=(yt(c)+"e").split("e"),E=a(_[0]+"e"+(+_[1]+g));return _=(yt(E)+"e").split("e"),+(_[0]+"e"+(+_[1]-g))}return a(c)}}var tx=Gs&&1/ul(new Gs([,-0]))[1]==de?function(i){return new Gs(i)}:Uf;function cg(i){return function(a){var c=cn(a);return c==K?Yc(a):c==re?y2(a):c2(a,i(a))}}function qr(i,a,c,g,_,E,L,F){var W=a&x;if(!W&&typeof i!="function")throw new Xn(l);var te=g?g.length:0;if(te||(a&=~(I|M),g=_=n),L=L===n?L:Xt(Je(L),0),F=F===n?F:Je(F),te-=_?_.length:0,a&M){var ne=g,ae=_;g=_=n}var we=W?n:Sf(i),Ie=[i,a,c,g,_,ne,ae,E,L,F];if(we&&gx(Ie,we),i=Ie[0],a=Ie[1],c=Ie[2],g=Ie[3],_=Ie[4],F=Ie[9]=Ie[9]===n?W?0:i.length:Xt(Ie[9]-te,0),!F&&a&(C|V)&&(a&=~(C|V)),!a||a==T)var We=JS(i,a,c);else a==C||a==V?We=QS(i,a,F):(a==I||a==(T|I))&&!_.length?We=ex(i,a,c,g):We=Il.apply(n,Ie);var Qe=we?Wv:wg;return Cg(Qe(We,Ie),i,a)}function fg(i,a,c,g){return i===n||dr(i,Ws[c])&&!_t.call(g,c)?a:i}function dg(i,a,c,g,_,E){return Bt(i)&&Bt(a)&&(E.set(a,i),Tl(i,a,n,dg,E),E.delete(a)),i}function nx(i){return ra(i)?n:i}function hg(i,a,c,g,_,E){var L=c&b,F=i.length,W=a.length;if(F!=W&&!(L&&W>F))return!1;var te=E.get(i),ne=E.get(a);if(te&&ne)return te==a&&ne==i;var ae=-1,we=!0,Ie=c&S?new ts:n;for(E.set(i,a),E.set(a,i);++ae<F;){var We=i[ae],Qe=a[ae];if(g)var Ge=L?g(Qe,We,ae,a,i,E):g(We,Qe,ae,i,a,E);if(Ge!==n){if(Ge)continue;we=!1;break}if(Ie){if(!zc(a,function(it,ut){if(!zo(Ie,ut)&&(We===it||_(We,it,c,g,E)))return Ie.push(ut)})){we=!1;break}}else if(!(We===Qe||_(We,Qe,c,g,E))){we=!1;break}}return E.delete(i),E.delete(a),we}function rx(i,a,c,g,_,E,L){switch(c){case lt:if(i.byteLength!=a.byteLength||i.byteOffset!=a.byteOffset)return!1;i=i.buffer,a=a.buffer;case ht:return!(i.byteLength!=a.byteLength||!E(new vl(i),new vl(a)));case Ee:case He:case Q:return dr(+i,+a);case $e:return i.name==a.name&&i.message==a.message;case pe:case Le:return i==a+"";case K:var F=Yc;case re:var W=g&b;if(F||(F=ul),i.size!=a.size&&!W)return!1;var te=L.get(i);if(te)return te==a;g|=S,L.set(i,a);var ne=hg(F(i),F(a),g,_,E,L);return L.delete(i),ne;case Te:if(qo)return qo.call(i)==qo.call(a)}return!1}function ix(i,a,c,g,_,E){var L=c&b,F=wf(i),W=F.length,te=wf(a),ne=te.length;if(W!=ne&&!L)return!1;for(var ae=W;ae--;){var we=F[ae];if(!(L?we in a:_t.call(a,we)))return!1}var Ie=E.get(i),We=E.get(a);if(Ie&&We)return Ie==a&&We==i;var Qe=!0;E.set(i,a),E.set(a,i);for(var Ge=L;++ae<W;){we=F[ae];var it=i[we],ut=a[we];if(g)var Bn=L?g(ut,it,we,a,i,E):g(it,ut,we,i,a,E);if(!(Bn===n?it===ut||_(it,ut,c,g,E):Bn)){Qe=!1;break}Ge||(Ge=we=="constructor")}if(Qe&&!Ge){var bn=i.constructor,Dn=a.constructor;bn!=Dn&&"constructor"in i&&"constructor"in a&&!(typeof bn=="function"&&bn instanceof bn&&typeof Dn=="function"&&Dn instanceof Dn)&&(Qe=!1)}return E.delete(i),E.delete(a),Qe}function Yr(i){return Pf(bg(i,n,kg),i+"")}function wf(i){return Ov(i,tn,Af)}function Cf(i){return Ov(i,Tn,mg)}var Sf=wl?function(i){return wl.get(i)}:Uf;function Ml(i){for(var a=i.name+"",c=js[a],g=_t.call(js,a)?c.length:0;g--;){var _=c[g],E=_.func;if(E==null||E==i)return _.name}return a}function Zs(i){var a=_t.call(A,"placeholder")?A:i;return a.placeholder}function Ue(){var i=A.iteratee||Hf;return i=i===Hf?Fv:i,arguments.length?i(arguments[0],arguments[1]):i}function Fl(i,a){var c=i.__data__;return dx(a)?c[typeof a=="string"?"string":"hash"]:c.map}function xf(i){for(var a=tn(i),c=a.length;c--;){var g=a[c],_=i[g];a[c]=[g,_,pg(_)]}return a}function is(i,a){var c=v2(i,a);return Mv(c)?c:n}function sx(i){var a=_t.call(i,Qi),c=i[Qi];try{i[Qi]=n;var g=!0}catch{}var _=hl.call(i);return g&&(a?i[Qi]=c:delete i[Qi]),_}var Af=Xc?function(i){return i==null?[]:(i=Et(i),bi(Xc(i),function(a){return _v.call(i,a)}))}:zf,mg=Xc?function(i){for(var a=[];i;)_i(a,Af(i)),i=gl(i);return a}:zf,cn=pn;(Jc&&cn(new Jc(new ArrayBuffer(1)))!=lt||Go&&cn(new Go)!=K||Qc&&cn(Qc.resolve())!=Ce||Gs&&cn(new Gs)!=re||jo&&cn(new jo)!=ze)&&(cn=function(i){var a=pn(i),c=a==ce?i.constructor:n,g=c?ss(c):"";if(g)switch(g){case N2:return lt;case U2:return K;case z2:return Ce;case W2:return re;case G2:return ze}return a});function ox(i,a,c){for(var g=-1,_=c.length;++g<_;){var E=c[g],L=E.size;switch(E.type){case"drop":i+=L;break;case"dropRight":a-=L;break;case"take":a=un(a,i+L);break;case"takeRight":i=Xt(i,a-L);break}}return{start:i,end:a}}function ax(i){var a=i.match(hC);return a?a[1].split(mC):[]}function vg(i,a,c){a=Ai(a,i);for(var g=-1,_=a.length,E=!1;++g<_;){var L=Mr(a[g]);if(!(E=i!=null&&c(i,L)))break;i=i[L]}return E||++g!=_?E:(_=i==null?0:i.length,!!_&&zl(_)&&Zr(L,_)&&(Xe(i)||os(i)))}function lx(i){var a=i.length,c=new i.constructor(a);return a&&typeof i[0]=="string"&&_t.call(i,"index")&&(c.index=i.index,c.input=i.input),c}function gg(i){return typeof i.constructor=="function"&&!ta(i)?Ks(gl(i)):{}}function ux(i,a,c){var g=i.constructor;switch(a){case ht:return yf(i);case Ee:case He:return new g(+i);case lt:return jS(i,c);case Vt:case gn:case Lr:case Fs:case Wr:case Bs:case nn:case xn:case Ds:return Jv(i,c);case K:return new g;case Q:case Le:return new g(i);case pe:return KS(i);case re:return new g;case Te:return qS(i)}}function cx(i,a){var c=a.length;if(!c)return i;var g=c-1;return a[g]=(c>1?"& ":"")+a[g],a=a.join(c>2?", ":" "),i.replace(dC,`{
|
|
19
|
-
/* [wrapped with `+a+`] */
|
|
20
|
-
`)}function fx(i){return Xe(i)||os(i)||!!(wv&&i&&i[wv])}function Zr(i,a){var c=typeof i;return a=a??he,!!a&&(c=="number"||c!="symbol"&&SC.test(i))&&i>-1&&i%1==0&&i<a}function yn(i,a,c){if(!Bt(c))return!1;var g=typeof a;return(g=="number"?En(c)&&Zr(a,c.length):g=="string"&&a in c)?dr(c[a],i):!1}function Ef(i,a){if(Xe(i))return!1;var c=typeof i;return c=="number"||c=="symbol"||c=="boolean"||i==null||Fn(i)?!0:lC.test(i)||!aC.test(i)||a!=null&&i in Et(a)}function dx(i){var a=typeof i;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?i!=="__proto__":i===null}function Tf(i){var a=Ml(i),c=A[a];if(typeof c!="function"||!(a in at.prototype))return!1;if(i===c)return!0;var g=Sf(c);return!!g&&i===g[0]}function hx(i){return!!pv&&pv in i}var mx=fl?Xr:Wf;function ta(i){var a=i&&i.constructor,c=typeof a=="function"&&a.prototype||Ws;return i===c}function pg(i){return i===i&&!Bt(i)}function yg(i,a){return function(c){return c==null?!1:c[i]===a&&(a!==n||i in Et(c))}}function vx(i){var a=Nl(i,function(g){return c.size===d&&c.clear(),g}),c=a.cache;return a}function gx(i,a){var c=i[1],g=a[1],_=c|g,E=_<(T|x|O),L=g==O&&c==C||g==O&&c==k&&i[7].length<=a[8]||g==(O|k)&&a[7].length<=a[8]&&c==C;if(!(E||L))return i;g&T&&(i[2]=a[2],_|=c&T?0:w);var F=a[3];if(F){var W=i[3];i[3]=W?eg(W,F,a[4]):F,i[4]=W?wi(i[3],h):a[4]}return F=a[5],F&&(W=i[5],i[5]=W?tg(W,F,a[6]):F,i[6]=W?wi(i[5],h):a[6]),F=a[7],F&&(i[7]=F),g&O&&(i[8]=i[8]==null?a[8]:un(i[8],a[8])),i[9]==null&&(i[9]=a[9]),i[0]=a[0],i[1]=_,i}function px(i){var a=[];if(i!=null)for(var c in Et(i))a.push(c);return a}function yx(i){return hl.call(i)}function bg(i,a,c){return a=Xt(a===n?i.length-1:a,0),function(){for(var g=arguments,_=-1,E=Xt(g.length-a,0),L=j(E);++_<E;)L[_]=g[a+_];_=-1;for(var F=j(a+1);++_<a;)F[_]=g[_];return F[a]=c(L),On(i,this,F)}}function _g(i,a){return a.length<2?i:rs(i,er(a,0,-1))}function bx(i,a){for(var c=i.length,g=un(a.length,c),_=An(i);g--;){var E=a[g];i[g]=Zr(E,c)?_[E]:n}return i}function kf(i,a){if(!(a==="constructor"&&typeof i[a]=="function")&&a!="__proto__")return i[a]}var wg=Sg(Wv),na=V2||function(i,a){return rn.setTimeout(i,a)},Pf=Sg(US);function Cg(i,a,c){var g=a+"";return Pf(i,cx(g,_x(ax(g),c)))}function Sg(i){var a=0,c=0;return function(){var g=D2(),_=q-(g-c);if(c=g,_>0){if(++a>=U)return arguments[0]}else a=0;return i.apply(n,arguments)}}function Bl(i,a){var c=-1,g=i.length,_=g-1;for(a=a===n?g:a;++c<a;){var E=ff(c,_),L=i[E];i[E]=i[c],i[c]=L}return i.length=a,i}var xg=vx(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(uC,function(c,g,_,E){a.push(_?E.replace(pC,"$1"):g||c)}),a});function Mr(i){if(typeof i=="string"||Fn(i))return i;var a=i+"";return a=="0"&&1/i==-de?"-0":a}function ss(i){if(i!=null){try{return dl.call(i)}catch{}try{return i+""}catch{}}return""}function _x(i,a){return Zn(bt,function(c){var g="_."+c[0];a&c[1]&&!al(i,g)&&i.push(g)}),i.sort()}function Ag(i){if(i instanceof at)return i.clone();var a=new Jn(i.__wrapped__,i.__chain__);return a.__actions__=An(i.__actions__),a.__index__=i.__index__,a.__values__=i.__values__,a}function wx(i,a,c){(c?yn(i,a,c):a===n)?a=1:a=Xt(Je(a),0);var g=i==null?0:i.length;if(!g||a<1)return[];for(var _=0,E=0,L=j(bl(g/a));_<g;)L[E++]=er(i,_,_+=a);return L}function Cx(i){for(var a=-1,c=i==null?0:i.length,g=0,_=[];++a<c;){var E=i[a];E&&(_[g++]=E)}return _}function Sx(){var i=arguments.length;if(!i)return[];for(var a=j(i-1),c=arguments[0],g=i;g--;)a[g-1]=arguments[g];return _i(Xe(c)?An(c):[c],sn(a,1))}var xx=tt(function(i,a){return Ut(i)?Zo(i,sn(a,1,Ut,!0)):[]}),Ax=tt(function(i,a){var c=tr(a);return Ut(c)&&(c=n),Ut(i)?Zo(i,sn(a,1,Ut,!0),Ue(c,2)):[]}),Ex=tt(function(i,a){var c=tr(a);return Ut(c)&&(c=n),Ut(i)?Zo(i,sn(a,1,Ut,!0),n,c):[]});function Tx(i,a,c){var g=i==null?0:i.length;return g?(a=c||a===n?1:Je(a),er(i,a<0?0:a,g)):[]}function kx(i,a,c){var g=i==null?0:i.length;return g?(a=c||a===n?1:Je(a),a=g-a,er(i,0,a<0?0:a)):[]}function Px(i,a){return i&&i.length?Pl(i,Ue(a,3),!0,!0):[]}function Rx(i,a){return i&&i.length?Pl(i,Ue(a,3),!0):[]}function Ix(i,a,c,g){var _=i==null?0:i.length;return _?(c&&typeof c!="number"&&yn(i,a,c)&&(c=0,g=_),SS(i,a,c,g)):[]}function Eg(i,a,c){var g=i==null?0:i.length;if(!g)return-1;var _=c==null?0:Je(c);return _<0&&(_=Xt(g+_,0)),ll(i,Ue(a,3),_)}function Tg(i,a,c){var g=i==null?0:i.length;if(!g)return-1;var _=g-1;return c!==n&&(_=Je(c),_=c<0?Xt(g+_,0):un(_,g-1)),ll(i,Ue(a,3),_,!0)}function kg(i){var a=i==null?0:i.length;return a?sn(i,1):[]}function Lx(i){var a=i==null?0:i.length;return a?sn(i,de):[]}function Ox(i,a){var c=i==null?0:i.length;return c?(a=a===n?1:Je(a),sn(i,a)):[]}function Vx(i){for(var a=-1,c=i==null?0:i.length,g={};++a<c;){var _=i[a];g[_[0]]=_[1]}return g}function Pg(i){return i&&i.length?i[0]:n}function Mx(i,a,c){var g=i==null?0:i.length;if(!g)return-1;var _=c==null?0:Je(c);return _<0&&(_=Xt(g+_,0)),Hs(i,a,_)}function Fx(i){var a=i==null?0:i.length;return a?er(i,0,-1):[]}var Bx=tt(function(i){var a=Mt(i,gf);return a.length&&a[0]===i[0]?of(a):[]}),Dx=tt(function(i){var a=tr(i),c=Mt(i,gf);return a===tr(c)?a=n:c.pop(),c.length&&c[0]===i[0]?of(c,Ue(a,2)):[]}),$x=tt(function(i){var a=tr(i),c=Mt(i,gf);return a=typeof a=="function"?a:n,a&&c.pop(),c.length&&c[0]===i[0]?of(c,n,a):[]});function Hx(i,a){return i==null?"":F2.call(i,a)}function tr(i){var a=i==null?0:i.length;return a?i[a-1]:n}function Nx(i,a,c){var g=i==null?0:i.length;if(!g)return-1;var _=g;return c!==n&&(_=Je(c),_=_<0?Xt(g+_,0):un(_,g-1)),a===a?_2(i,a,_):ll(i,uv,_,!0)}function Ux(i,a){return i&&i.length?Hv(i,Je(a)):n}var zx=tt(Rg);function Rg(i,a){return i&&i.length&&a&&a.length?cf(i,a):i}function Wx(i,a,c){return i&&i.length&&a&&a.length?cf(i,a,Ue(c,2)):i}function Gx(i,a,c){return i&&i.length&&a&&a.length?cf(i,a,n,c):i}var jx=Yr(function(i,a){var c=i==null?0:i.length,g=tf(i,a);return zv(i,Mt(a,function(_){return Zr(_,c)?+_:_}).sort(Qv)),g});function Kx(i,a){var c=[];if(!(i&&i.length))return c;var g=-1,_=[],E=i.length;for(a=Ue(a,3);++g<E;){var L=i[g];a(L,g,i)&&(c.push(L),_.push(g))}return zv(i,_),c}function Rf(i){return i==null?i:H2.call(i)}function qx(i,a,c){var g=i==null?0:i.length;return g?(c&&typeof c!="number"&&yn(i,a,c)?(a=0,c=g):(a=a==null?0:Je(a),c=c===n?g:Je(c)),er(i,a,c)):[]}function Yx(i,a){return kl(i,a)}function Zx(i,a,c){return hf(i,a,Ue(c,2))}function Xx(i,a){var c=i==null?0:i.length;if(c){var g=kl(i,a);if(g<c&&dr(i[g],a))return g}return-1}function Jx(i,a){return kl(i,a,!0)}function Qx(i,a,c){return hf(i,a,Ue(c,2),!0)}function eA(i,a){var c=i==null?0:i.length;if(c){var g=kl(i,a,!0)-1;if(dr(i[g],a))return g}return-1}function tA(i){return i&&i.length?Gv(i):[]}function nA(i,a){return i&&i.length?Gv(i,Ue(a,2)):[]}function rA(i){var a=i==null?0:i.length;return a?er(i,1,a):[]}function iA(i,a,c){return i&&i.length?(a=c||a===n?1:Je(a),er(i,0,a<0?0:a)):[]}function sA(i,a,c){var g=i==null?0:i.length;return g?(a=c||a===n?1:Je(a),a=g-a,er(i,a<0?0:a,g)):[]}function oA(i,a){return i&&i.length?Pl(i,Ue(a,3),!1,!0):[]}function aA(i,a){return i&&i.length?Pl(i,Ue(a,3)):[]}var lA=tt(function(i){return xi(sn(i,1,Ut,!0))}),uA=tt(function(i){var a=tr(i);return Ut(a)&&(a=n),xi(sn(i,1,Ut,!0),Ue(a,2))}),cA=tt(function(i){var a=tr(i);return a=typeof a=="function"?a:n,xi(sn(i,1,Ut,!0),n,a)});function fA(i){return i&&i.length?xi(i):[]}function dA(i,a){return i&&i.length?xi(i,Ue(a,2)):[]}function hA(i,a){return a=typeof a=="function"?a:n,i&&i.length?xi(i,n,a):[]}function If(i){if(!(i&&i.length))return[];var a=0;return i=bi(i,function(c){if(Ut(c))return a=Xt(c.length,a),!0}),Kc(a,function(c){return Mt(i,Wc(c))})}function Ig(i,a){if(!(i&&i.length))return[];var c=If(i);return a==null?c:Mt(c,function(g){return On(a,n,g)})}var mA=tt(function(i,a){return Ut(i)?Zo(i,a):[]}),vA=tt(function(i){return vf(bi(i,Ut))}),gA=tt(function(i){var a=tr(i);return Ut(a)&&(a=n),vf(bi(i,Ut),Ue(a,2))}),pA=tt(function(i){var a=tr(i);return a=typeof a=="function"?a:n,vf(bi(i,Ut),n,a)}),yA=tt(If);function bA(i,a){return Yv(i||[],a||[],Yo)}function _A(i,a){return Yv(i||[],a||[],Qo)}var wA=tt(function(i){var a=i.length,c=a>1?i[a-1]:n;return c=typeof c=="function"?(i.pop(),c):n,Ig(i,c)});function Lg(i){var a=A(i);return a.__chain__=!0,a}function CA(i,a){return a(i),i}function Dl(i,a){return a(i)}var SA=Yr(function(i){var a=i.length,c=a?i[0]:0,g=this.__wrapped__,_=function(E){return tf(E,i)};return a>1||this.__actions__.length||!(g instanceof at)||!Zr(c)?this.thru(_):(g=g.slice(c,+c+(a?1:0)),g.__actions__.push({func:Dl,args:[_],thisArg:n}),new Jn(g,this.__chain__).thru(function(E){return a&&!E.length&&E.push(n),E}))});function xA(){return Lg(this)}function AA(){return new Jn(this.value(),this.__chain__)}function EA(){this.__values__===n&&(this.__values__=jg(this.value()));var i=this.__index__>=this.__values__.length,a=i?n:this.__values__[this.__index__++];return{done:i,value:a}}function TA(){return this}function kA(i){for(var a,c=this;c instanceof Sl;){var g=Ag(c);g.__index__=0,g.__values__=n,a?_.__wrapped__=g:a=g;var _=g;c=c.__wrapped__}return _.__wrapped__=i,a}function PA(){var i=this.__wrapped__;if(i instanceof at){var a=i;return this.__actions__.length&&(a=new at(this)),a=a.reverse(),a.__actions__.push({func:Dl,args:[Rf],thisArg:n}),new Jn(a,this.__chain__)}return this.thru(Rf)}function RA(){return qv(this.__wrapped__,this.__actions__)}var IA=Rl(function(i,a,c){_t.call(i,c)?++i[c]:Kr(i,c,1)});function LA(i,a,c){var g=Xe(i)?av:CS;return c&&yn(i,a,c)&&(a=n),g(i,Ue(a,3))}function OA(i,a){var c=Xe(i)?bi:Iv;return c(i,Ue(a,3))}var VA=sg(Eg),MA=sg(Tg);function FA(i,a){return sn($l(i,a),1)}function BA(i,a){return sn($l(i,a),de)}function DA(i,a,c){return c=c===n?1:Je(c),sn($l(i,a),c)}function Og(i,a){var c=Xe(i)?Zn:Si;return c(i,Ue(a,3))}function Vg(i,a){var c=Xe(i)?r2:Rv;return c(i,Ue(a,3))}var $A=Rl(function(i,a,c){_t.call(i,c)?i[c].push(a):Kr(i,c,[a])});function HA(i,a,c,g){i=En(i)?i:Js(i),c=c&&!g?Je(c):0;var _=i.length;return c<0&&(c=Xt(_+c,0)),Wl(i)?c<=_&&i.indexOf(a,c)>-1:!!_&&Hs(i,a,c)>-1}var NA=tt(function(i,a,c){var g=-1,_=typeof a=="function",E=En(i)?j(i.length):[];return Si(i,function(L){E[++g]=_?On(a,L,c):Xo(L,a,c)}),E}),UA=Rl(function(i,a,c){Kr(i,c,a)});function $l(i,a){var c=Xe(i)?Mt:Bv;return c(i,Ue(a,3))}function zA(i,a,c,g){return i==null?[]:(Xe(a)||(a=a==null?[]:[a]),c=g?n:c,Xe(c)||(c=c==null?[]:[c]),Nv(i,a,c))}var WA=Rl(function(i,a,c){i[c?0:1].push(a)},function(){return[[],[]]});function GA(i,a,c){var g=Xe(i)?Uc:fv,_=arguments.length<3;return g(i,Ue(a,4),c,_,Si)}function jA(i,a,c){var g=Xe(i)?i2:fv,_=arguments.length<3;return g(i,Ue(a,4),c,_,Rv)}function KA(i,a){var c=Xe(i)?bi:Iv;return c(i,Ul(Ue(a,3)))}function qA(i){var a=Xe(i)?Ev:HS;return a(i)}function YA(i,a,c){(c?yn(i,a,c):a===n)?a=1:a=Je(a);var g=Xe(i)?pS:NS;return g(i,a)}function ZA(i){var a=Xe(i)?yS:zS;return a(i)}function XA(i){if(i==null)return 0;if(En(i))return Wl(i)?Us(i):i.length;var a=cn(i);return a==K||a==re?i.size:lf(i).length}function JA(i,a,c){var g=Xe(i)?zc:WS;return c&&yn(i,a,c)&&(a=n),g(i,Ue(a,3))}var QA=tt(function(i,a){if(i==null)return[];var c=a.length;return c>1&&yn(i,a[0],a[1])?a=[]:c>2&&yn(a[0],a[1],a[2])&&(a=[a[0]]),Nv(i,sn(a,1),[])}),Hl=O2||function(){return rn.Date.now()};function eE(i,a){if(typeof a!="function")throw new Xn(l);return i=Je(i),function(){if(--i<1)return a.apply(this,arguments)}}function Mg(i,a,c){return a=c?n:a,a=i&&a==null?i.length:a,qr(i,O,n,n,n,n,a)}function Fg(i,a){var c;if(typeof a!="function")throw new Xn(l);return i=Je(i),function(){return--i>0&&(c=a.apply(this,arguments)),i<=1&&(a=n),c}}var Lf=tt(function(i,a,c){var g=T;if(c.length){var _=wi(c,Zs(Lf));g|=I}return qr(i,g,a,c,_)}),Bg=tt(function(i,a,c){var g=T|x;if(c.length){var _=wi(c,Zs(Bg));g|=I}return qr(a,g,i,c,_)});function Dg(i,a,c){a=c?n:a;var g=qr(i,C,n,n,n,n,n,a);return g.placeholder=Dg.placeholder,g}function $g(i,a,c){a=c?n:a;var g=qr(i,V,n,n,n,n,n,a);return g.placeholder=$g.placeholder,g}function Hg(i,a,c){var g,_,E,L,F,W,te=0,ne=!1,ae=!1,we=!0;if(typeof i!="function")throw new Xn(l);a=nr(a)||0,Bt(c)&&(ne=!!c.leading,ae="maxWait"in c,E=ae?Xt(nr(c.maxWait)||0,a):E,we="trailing"in c?!!c.trailing:we);function Ie(zt){var hr=g,Qr=_;return g=_=n,te=zt,L=i.apply(Qr,hr),L}function We(zt){return te=zt,F=na(it,a),ne?Ie(zt):L}function Qe(zt){var hr=zt-W,Qr=zt-te,sp=a-hr;return ae?un(sp,E-Qr):sp}function Ge(zt){var hr=zt-W,Qr=zt-te;return W===n||hr>=a||hr<0||ae&&Qr>=E}function it(){var zt=Hl();if(Ge(zt))return ut(zt);F=na(it,Qe(zt))}function ut(zt){return F=n,we&&g?Ie(zt):(g=_=n,L)}function Bn(){F!==n&&Zv(F),te=0,g=W=_=F=n}function bn(){return F===n?L:ut(Hl())}function Dn(){var zt=Hl(),hr=Ge(zt);if(g=arguments,_=this,W=zt,hr){if(F===n)return We(W);if(ae)return Zv(F),F=na(it,a),Ie(W)}return F===n&&(F=na(it,a)),L}return Dn.cancel=Bn,Dn.flush=bn,Dn}var tE=tt(function(i,a){return Pv(i,1,a)}),nE=tt(function(i,a,c){return Pv(i,nr(a)||0,c)});function rE(i){return qr(i,H)}function Nl(i,a){if(typeof i!="function"||a!=null&&typeof a!="function")throw new Xn(l);var c=function(){var g=arguments,_=a?a.apply(this,g):g[0],E=c.cache;if(E.has(_))return E.get(_);var L=i.apply(this,g);return c.cache=E.set(_,L)||E,L};return c.cache=new(Nl.Cache||jr),c}Nl.Cache=jr;function Ul(i){if(typeof i!="function")throw new Xn(l);return function(){var a=arguments;switch(a.length){case 0:return!i.call(this);case 1:return!i.call(this,a[0]);case 2:return!i.call(this,a[0],a[1]);case 3:return!i.call(this,a[0],a[1],a[2])}return!i.apply(this,a)}}function iE(i){return Fg(2,i)}var sE=GS(function(i,a){a=a.length==1&&Xe(a[0])?Mt(a[0],Vn(Ue())):Mt(sn(a,1),Vn(Ue()));var c=a.length;return tt(function(g){for(var _=-1,E=un(g.length,c);++_<E;)g[_]=a[_].call(this,g[_]);return On(i,this,g)})}),Of=tt(function(i,a){var c=wi(a,Zs(Of));return qr(i,I,n,a,c)}),Ng=tt(function(i,a){var c=wi(a,Zs(Ng));return qr(i,M,n,a,c)}),oE=Yr(function(i,a){return qr(i,k,n,n,n,a)});function aE(i,a){if(typeof i!="function")throw new Xn(l);return a=a===n?a:Je(a),tt(i,a)}function lE(i,a){if(typeof i!="function")throw new Xn(l);return a=a==null?0:Xt(Je(a),0),tt(function(c){var g=c[a],_=Ei(c,0,a);return g&&_i(_,g),On(i,this,_)})}function uE(i,a,c){var g=!0,_=!0;if(typeof i!="function")throw new Xn(l);return Bt(c)&&(g="leading"in c?!!c.leading:g,_="trailing"in c?!!c.trailing:_),Hg(i,a,{leading:g,maxWait:a,trailing:_})}function cE(i){return Mg(i,1)}function fE(i,a){return Of(pf(a),i)}function dE(){if(!arguments.length)return[];var i=arguments[0];return Xe(i)?i:[i]}function hE(i){return Qn(i,p)}function mE(i,a){return a=typeof a=="function"?a:n,Qn(i,p,a)}function vE(i){return Qn(i,m|p)}function gE(i,a){return a=typeof a=="function"?a:n,Qn(i,m|p,a)}function pE(i,a){return a==null||kv(i,a,tn(a))}function dr(i,a){return i===a||i!==i&&a!==a}var yE=Vl(sf),bE=Vl(function(i,a){return i>=a}),os=Vv(function(){return arguments}())?Vv:function(i){return $t(i)&&_t.call(i,"callee")&&!_v.call(i,"callee")},Xe=j.isArray,_E=tv?Vn(tv):kS;function En(i){return i!=null&&zl(i.length)&&!Xr(i)}function Ut(i){return $t(i)&&En(i)}function wE(i){return i===!0||i===!1||$t(i)&&pn(i)==Ee}var Ti=M2||Wf,CE=nv?Vn(nv):PS;function SE(i){return $t(i)&&i.nodeType===1&&!ra(i)}function xE(i){if(i==null)return!0;if(En(i)&&(Xe(i)||typeof i=="string"||typeof i.splice=="function"||Ti(i)||Xs(i)||os(i)))return!i.length;var a=cn(i);if(a==K||a==re)return!i.size;if(ta(i))return!lf(i).length;for(var c in i)if(_t.call(i,c))return!1;return!0}function AE(i,a){return Jo(i,a)}function EE(i,a,c){c=typeof c=="function"?c:n;var g=c?c(i,a):n;return g===n?Jo(i,a,n,c):!!g}function Vf(i){if(!$t(i))return!1;var a=pn(i);return a==$e||a==vt||typeof i.message=="string"&&typeof i.name=="string"&&!ra(i)}function TE(i){return typeof i=="number"&&Cv(i)}function Xr(i){if(!Bt(i))return!1;var a=pn(i);return a==R||a==B||a==ue||a==ve}function Ug(i){return typeof i=="number"&&i==Je(i)}function zl(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=he}function Bt(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}function $t(i){return i!=null&&typeof i=="object"}var zg=rv?Vn(rv):IS;function kE(i,a){return i===a||af(i,a,xf(a))}function PE(i,a,c){return c=typeof c=="function"?c:n,af(i,a,xf(a),c)}function RE(i){return Wg(i)&&i!=+i}function IE(i){if(mx(i))throw new Ye(o);return Mv(i)}function LE(i){return i===null}function OE(i){return i==null}function Wg(i){return typeof i=="number"||$t(i)&&pn(i)==Q}function ra(i){if(!$t(i)||pn(i)!=ce)return!1;var a=gl(i);if(a===null)return!0;var c=_t.call(a,"constructor")&&a.constructor;return typeof c=="function"&&c instanceof c&&dl.call(c)==P2}var Mf=iv?Vn(iv):LS;function VE(i){return Ug(i)&&i>=-he&&i<=he}var Gg=sv?Vn(sv):OS;function Wl(i){return typeof i=="string"||!Xe(i)&&$t(i)&&pn(i)==Le}function Fn(i){return typeof i=="symbol"||$t(i)&&pn(i)==Te}var Xs=ov?Vn(ov):VS;function ME(i){return i===n}function FE(i){return $t(i)&&cn(i)==ze}function BE(i){return $t(i)&&pn(i)==rt}var DE=Vl(uf),$E=Vl(function(i,a){return i<=a});function jg(i){if(!i)return[];if(En(i))return Wl(i)?cr(i):An(i);if(Wo&&i[Wo])return p2(i[Wo]());var a=cn(i),c=a==K?Yc:a==re?ul:Js;return c(i)}function Jr(i){if(!i)return i===0?i:0;if(i=nr(i),i===de||i===-de){var a=i<0?-1:1;return a*_e}return i===i?i:0}function Je(i){var a=Jr(i),c=a%1;return a===a?c?a-c:a:0}function Kg(i){return i?ns(Je(i),0,be):0}function nr(i){if(typeof i=="number")return i;if(Fn(i))return me;if(Bt(i)){var a=typeof i.valueOf=="function"?i.valueOf():i;i=Bt(a)?a+"":a}if(typeof i!="string")return i===0?i:+i;i=dv(i);var c=_C.test(i);return c||CC.test(i)?e2(i.slice(2),c?2:8):bC.test(i)?me:+i}function qg(i){return Vr(i,Tn(i))}function HE(i){return i?ns(Je(i),-he,he):i===0?i:0}function yt(i){return i==null?"":Mn(i)}var NE=qs(function(i,a){if(ta(a)||En(a)){Vr(a,tn(a),i);return}for(var c in a)_t.call(a,c)&&Yo(i,c,a[c])}),Yg=qs(function(i,a){Vr(a,Tn(a),i)}),Gl=qs(function(i,a,c,g){Vr(a,Tn(a),i,g)}),UE=qs(function(i,a,c,g){Vr(a,tn(a),i,g)}),zE=Yr(tf);function WE(i,a){var c=Ks(i);return a==null?c:Tv(c,a)}var GE=tt(function(i,a){i=Et(i);var c=-1,g=a.length,_=g>2?a[2]:n;for(_&&yn(a[0],a[1],_)&&(g=1);++c<g;)for(var E=a[c],L=Tn(E),F=-1,W=L.length;++F<W;){var te=L[F],ne=i[te];(ne===n||dr(ne,Ws[te])&&!_t.call(i,te))&&(i[te]=E[te])}return i}),jE=tt(function(i){return i.push(n,dg),On(Zg,n,i)});function KE(i,a){return lv(i,Ue(a,3),Or)}function qE(i,a){return lv(i,Ue(a,3),rf)}function YE(i,a){return i==null?i:nf(i,Ue(a,3),Tn)}function ZE(i,a){return i==null?i:Lv(i,Ue(a,3),Tn)}function XE(i,a){return i&&Or(i,Ue(a,3))}function JE(i,a){return i&&rf(i,Ue(a,3))}function QE(i){return i==null?[]:El(i,tn(i))}function eT(i){return i==null?[]:El(i,Tn(i))}function Ff(i,a,c){var g=i==null?n:rs(i,a);return g===n?c:g}function tT(i,a){return i!=null&&vg(i,a,xS)}function Bf(i,a){return i!=null&&vg(i,a,AS)}var nT=ag(function(i,a,c){a!=null&&typeof a.toString!="function"&&(a=hl.call(a)),i[a]=c},$f(kn)),rT=ag(function(i,a,c){a!=null&&typeof a.toString!="function"&&(a=hl.call(a)),_t.call(i,a)?i[a].push(c):i[a]=[c]},Ue),iT=tt(Xo);function tn(i){return En(i)?Av(i):lf(i)}function Tn(i){return En(i)?Av(i,!0):MS(i)}function sT(i,a){var c={};return a=Ue(a,3),Or(i,function(g,_,E){Kr(c,a(g,_,E),g)}),c}function oT(i,a){var c={};return a=Ue(a,3),Or(i,function(g,_,E){Kr(c,_,a(g,_,E))}),c}var aT=qs(function(i,a,c){Tl(i,a,c)}),Zg=qs(function(i,a,c,g){Tl(i,a,c,g)}),lT=Yr(function(i,a){var c={};if(i==null)return c;var g=!1;a=Mt(a,function(E){return E=Ai(E,i),g||(g=E.length>1),E}),Vr(i,Cf(i),c),g&&(c=Qn(c,m|v|p,nx));for(var _=a.length;_--;)mf(c,a[_]);return c});function uT(i,a){return Xg(i,Ul(Ue(a)))}var cT=Yr(function(i,a){return i==null?{}:BS(i,a)});function Xg(i,a){if(i==null)return{};var c=Mt(Cf(i),function(g){return[g]});return a=Ue(a),Uv(i,c,function(g,_){return a(g,_[0])})}function fT(i,a,c){a=Ai(a,i);var g=-1,_=a.length;for(_||(_=1,i=n);++g<_;){var E=i==null?n:i[Mr(a[g])];E===n&&(g=_,E=c),i=Xr(E)?E.call(i):E}return i}function dT(i,a,c){return i==null?i:Qo(i,a,c)}function hT(i,a,c,g){return g=typeof g=="function"?g:n,i==null?i:Qo(i,a,c,g)}var Jg=cg(tn),Qg=cg(Tn);function mT(i,a,c){var g=Xe(i),_=g||Ti(i)||Xs(i);if(a=Ue(a,4),c==null){var E=i&&i.constructor;_?c=g?new E:[]:Bt(i)?c=Xr(E)?Ks(gl(i)):{}:c={}}return(_?Zn:Or)(i,function(L,F,W){return a(c,L,F,W)}),c}function vT(i,a){return i==null?!0:mf(i,a)}function gT(i,a,c){return i==null?i:Kv(i,a,pf(c))}function pT(i,a,c,g){return g=typeof g=="function"?g:n,i==null?i:Kv(i,a,pf(c),g)}function Js(i){return i==null?[]:qc(i,tn(i))}function yT(i){return i==null?[]:qc(i,Tn(i))}function bT(i,a,c){return c===n&&(c=a,a=n),c!==n&&(c=nr(c),c=c===c?c:0),a!==n&&(a=nr(a),a=a===a?a:0),ns(nr(i),a,c)}function _T(i,a,c){return a=Jr(a),c===n?(c=a,a=0):c=Jr(c),i=nr(i),ES(i,a,c)}function wT(i,a,c){if(c&&typeof c!="boolean"&&yn(i,a,c)&&(a=c=n),c===n&&(typeof a=="boolean"?(c=a,a=n):typeof i=="boolean"&&(c=i,i=n)),i===n&&a===n?(i=0,a=1):(i=Jr(i),a===n?(a=i,i=0):a=Jr(a)),i>a){var g=i;i=a,a=g}if(c||i%1||a%1){var _=Sv();return un(i+_*(a-i+QC("1e-"+((_+"").length-1))),a)}return ff(i,a)}var CT=Ys(function(i,a,c){return a=a.toLowerCase(),i+(c?ep(a):a)});function ep(i){return Df(yt(i).toLowerCase())}function tp(i){return i=yt(i),i&&i.replace(xC,d2).replace(zC,"")}function ST(i,a,c){i=yt(i),a=Mn(a);var g=i.length;c=c===n?g:ns(Je(c),0,g);var _=c;return c-=a.length,c>=0&&i.slice(c,_)==a}function xT(i){return i=yt(i),i&&iC.test(i)?i.replace(Lm,h2):i}function AT(i){return i=yt(i),i&&cC.test(i)?i.replace(Lc,"\\$&"):i}var ET=Ys(function(i,a,c){return i+(c?"-":"")+a.toLowerCase()}),TT=Ys(function(i,a,c){return i+(c?" ":"")+a.toLowerCase()}),kT=ig("toLowerCase");function PT(i,a,c){i=yt(i),a=Je(a);var g=a?Us(i):0;if(!a||g>=a)return i;var _=(a-g)/2;return Ol(_l(_),c)+i+Ol(bl(_),c)}function RT(i,a,c){i=yt(i),a=Je(a);var g=a?Us(i):0;return a&&g<a?i+Ol(a-g,c):i}function IT(i,a,c){i=yt(i),a=Je(a);var g=a?Us(i):0;return a&&g<a?Ol(a-g,c)+i:i}function LT(i,a,c){return c||a==null?a=0:a&&(a=+a),$2(yt(i).replace(Oc,""),a||0)}function OT(i,a,c){return(c?yn(i,a,c):a===n)?a=1:a=Je(a),df(yt(i),a)}function VT(){var i=arguments,a=yt(i[0]);return i.length<3?a:a.replace(i[1],i[2])}var MT=Ys(function(i,a,c){return i+(c?"_":"")+a.toLowerCase()});function FT(i,a,c){return c&&typeof c!="number"&&yn(i,a,c)&&(a=c=n),c=c===n?be:c>>>0,c?(i=yt(i),i&&(typeof a=="string"||a!=null&&!Mf(a))&&(a=Mn(a),!a&&Ns(i))?Ei(cr(i),0,c):i.split(a,c)):[]}var BT=Ys(function(i,a,c){return i+(c?" ":"")+Df(a)});function DT(i,a,c){return i=yt(i),c=c==null?0:ns(Je(c),0,i.length),a=Mn(a),i.slice(c,c+a.length)==a}function $T(i,a,c){var g=A.templateSettings;c&&yn(i,a,c)&&(a=n),i=yt(i),a=Gl({},a,g,fg);var _=Gl({},a.imports,g.imports,fg),E=tn(_),L=qc(_,E),F,W,te=0,ne=a.interpolate||il,ae="__p += '",we=Zc((a.escape||il).source+"|"+ne.source+"|"+(ne===Om?yC:il).source+"|"+(a.evaluate||il).source+"|$","g"),Ie="//# sourceURL="+(_t.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qC+"]")+`
|
|
21
|
-
`;i.replace(we,function(Ge,it,ut,Bn,bn,Dn){return ut||(ut=Bn),ae+=i.slice(te,Dn).replace(AC,m2),it&&(F=!0,ae+=`' +
|
|
22
|
-
__e(`+it+`) +
|
|
23
|
-
'`),bn&&(W=!0,ae+=`';
|
|
24
|
-
`+bn+`;
|
|
25
|
-
__p += '`),ut&&(ae+=`' +
|
|
26
|
-
((__t = (`+ut+`)) == null ? '' : __t) +
|
|
27
|
-
'`),te=Dn+Ge.length,Ge}),ae+=`';
|
|
28
|
-
`;var We=_t.call(a,"variable")&&a.variable;if(!We)ae=`with (obj) {
|
|
29
|
-
`+ae+`
|
|
30
|
-
}
|
|
31
|
-
`;else if(gC.test(We))throw new Ye(u);ae=(W?ae.replace(eC,""):ae).replace(tC,"$1").replace(nC,"$1;"),ae="function("+(We||"obj")+`) {
|
|
32
|
-
`+(We?"":`obj || (obj = {});
|
|
33
|
-
`)+"var __t, __p = ''"+(F?", __e = _.escape":"")+(W?`, __j = Array.prototype.join;
|
|
34
|
-
function print() { __p += __j.call(arguments, '') }
|
|
35
|
-
`:`;
|
|
36
|
-
`)+ae+`return __p
|
|
37
|
-
}`;var Qe=rp(function(){return gt(E,Ie+"return "+ae).apply(n,L)});if(Qe.source=ae,Vf(Qe))throw Qe;return Qe}function HT(i){return yt(i).toLowerCase()}function NT(i){return yt(i).toUpperCase()}function UT(i,a,c){if(i=yt(i),i&&(c||a===n))return dv(i);if(!i||!(a=Mn(a)))return i;var g=cr(i),_=cr(a),E=hv(g,_),L=mv(g,_)+1;return Ei(g,E,L).join("")}function zT(i,a,c){if(i=yt(i),i&&(c||a===n))return i.slice(0,gv(i)+1);if(!i||!(a=Mn(a)))return i;var g=cr(i),_=mv(g,cr(a))+1;return Ei(g,0,_).join("")}function WT(i,a,c){if(i=yt(i),i&&(c||a===n))return i.replace(Oc,"");if(!i||!(a=Mn(a)))return i;var g=cr(i),_=hv(g,cr(a));return Ei(g,_).join("")}function GT(i,a){var c=z,g=D;if(Bt(a)){var _="separator"in a?a.separator:_;c="length"in a?Je(a.length):c,g="omission"in a?Mn(a.omission):g}i=yt(i);var E=i.length;if(Ns(i)){var L=cr(i);E=L.length}if(c>=E)return i;var F=c-Us(g);if(F<1)return g;var W=L?Ei(L,0,F).join(""):i.slice(0,F);if(_===n)return W+g;if(L&&(F+=W.length-F),Mf(_)){if(i.slice(F).search(_)){var te,ne=W;for(_.global||(_=Zc(_.source,yt(Vm.exec(_))+"g")),_.lastIndex=0;te=_.exec(ne);)var ae=te.index;W=W.slice(0,ae===n?F:ae)}}else if(i.indexOf(Mn(_),F)!=F){var we=W.lastIndexOf(_);we>-1&&(W=W.slice(0,we))}return W+g}function jT(i){return i=yt(i),i&&rC.test(i)?i.replace(Im,w2):i}var KT=Ys(function(i,a,c){return i+(c?" ":"")+a.toUpperCase()}),Df=ig("toUpperCase");function np(i,a,c){return i=yt(i),a=c?n:a,a===n?g2(i)?x2(i):a2(i):i.match(a)||[]}var rp=tt(function(i,a){try{return On(i,n,a)}catch(c){return Vf(c)?c:new Ye(c)}}),qT=Yr(function(i,a){return Zn(a,function(c){c=Mr(c),Kr(i,c,Lf(i[c],i))}),i});function YT(i){var a=i==null?0:i.length,c=Ue();return i=a?Mt(i,function(g){if(typeof g[1]!="function")throw new Xn(l);return[c(g[0]),g[1]]}):[],tt(function(g){for(var _=-1;++_<a;){var E=i[_];if(On(E[0],this,g))return On(E[1],this,g)}})}function ZT(i){return wS(Qn(i,m))}function $f(i){return function(){return i}}function XT(i,a){return i==null||i!==i?a:i}var JT=og(),QT=og(!0);function kn(i){return i}function Hf(i){return Fv(typeof i=="function"?i:Qn(i,m))}function ek(i){return Dv(Qn(i,m))}function tk(i,a){return $v(i,Qn(a,m))}var nk=tt(function(i,a){return function(c){return Xo(c,i,a)}}),rk=tt(function(i,a){return function(c){return Xo(i,c,a)}});function Nf(i,a,c){var g=tn(a),_=El(a,g);c==null&&!(Bt(a)&&(_.length||!g.length))&&(c=a,a=i,i=this,_=El(a,tn(a)));var E=!(Bt(c)&&"chain"in c)||!!c.chain,L=Xr(i);return Zn(_,function(F){var W=a[F];i[F]=W,L&&(i.prototype[F]=function(){var te=this.__chain__;if(E||te){var ne=i(this.__wrapped__),ae=ne.__actions__=An(this.__actions__);return ae.push({func:W,args:arguments,thisArg:i}),ne.__chain__=te,ne}return W.apply(i,_i([this.value()],arguments))})}),i}function ik(){return rn._===this&&(rn._=R2),this}function Uf(){}function sk(i){return i=Je(i),tt(function(a){return Hv(a,i)})}var ok=bf(Mt),ak=bf(av),lk=bf(zc);function ip(i){return Ef(i)?Wc(Mr(i)):DS(i)}function uk(i){return function(a){return i==null?n:rs(i,a)}}var ck=lg(),fk=lg(!0);function zf(){return[]}function Wf(){return!1}function dk(){return{}}function hk(){return""}function mk(){return!0}function vk(i,a){if(i=Je(i),i<1||i>he)return[];var c=be,g=un(i,be);a=Ue(a),i-=be;for(var _=Kc(g,a);++c<i;)a(c);return _}function gk(i){return Xe(i)?Mt(i,Mr):Fn(i)?[i]:An(xg(yt(i)))}function pk(i){var a=++k2;return yt(i)+a}var yk=Ll(function(i,a){return i+a},0),bk=_f("ceil"),_k=Ll(function(i,a){return i/a},1),wk=_f("floor");function Ck(i){return i&&i.length?Al(i,kn,sf):n}function Sk(i,a){return i&&i.length?Al(i,Ue(a,2),sf):n}function xk(i){return cv(i,kn)}function Ak(i,a){return cv(i,Ue(a,2))}function Ek(i){return i&&i.length?Al(i,kn,uf):n}function Tk(i,a){return i&&i.length?Al(i,Ue(a,2),uf):n}var kk=Ll(function(i,a){return i*a},1),Pk=_f("round"),Rk=Ll(function(i,a){return i-a},0);function Ik(i){return i&&i.length?jc(i,kn):0}function Lk(i,a){return i&&i.length?jc(i,Ue(a,2)):0}return A.after=eE,A.ary=Mg,A.assign=NE,A.assignIn=Yg,A.assignInWith=Gl,A.assignWith=UE,A.at=zE,A.before=Fg,A.bind=Lf,A.bindAll=qT,A.bindKey=Bg,A.castArray=dE,A.chain=Lg,A.chunk=wx,A.compact=Cx,A.concat=Sx,A.cond=YT,A.conforms=ZT,A.constant=$f,A.countBy=IA,A.create=WE,A.curry=Dg,A.curryRight=$g,A.debounce=Hg,A.defaults=GE,A.defaultsDeep=jE,A.defer=tE,A.delay=nE,A.difference=xx,A.differenceBy=Ax,A.differenceWith=Ex,A.drop=Tx,A.dropRight=kx,A.dropRightWhile=Px,A.dropWhile=Rx,A.fill=Ix,A.filter=OA,A.flatMap=FA,A.flatMapDeep=BA,A.flatMapDepth=DA,A.flatten=kg,A.flattenDeep=Lx,A.flattenDepth=Ox,A.flip=rE,A.flow=JT,A.flowRight=QT,A.fromPairs=Vx,A.functions=QE,A.functionsIn=eT,A.groupBy=$A,A.initial=Fx,A.intersection=Bx,A.intersectionBy=Dx,A.intersectionWith=$x,A.invert=nT,A.invertBy=rT,A.invokeMap=NA,A.iteratee=Hf,A.keyBy=UA,A.keys=tn,A.keysIn=Tn,A.map=$l,A.mapKeys=sT,A.mapValues=oT,A.matches=ek,A.matchesProperty=tk,A.memoize=Nl,A.merge=aT,A.mergeWith=Zg,A.method=nk,A.methodOf=rk,A.mixin=Nf,A.negate=Ul,A.nthArg=sk,A.omit=lT,A.omitBy=uT,A.once=iE,A.orderBy=zA,A.over=ok,A.overArgs=sE,A.overEvery=ak,A.overSome=lk,A.partial=Of,A.partialRight=Ng,A.partition=WA,A.pick=cT,A.pickBy=Xg,A.property=ip,A.propertyOf=uk,A.pull=zx,A.pullAll=Rg,A.pullAllBy=Wx,A.pullAllWith=Gx,A.pullAt=jx,A.range=ck,A.rangeRight=fk,A.rearg=oE,A.reject=KA,A.remove=Kx,A.rest=aE,A.reverse=Rf,A.sampleSize=YA,A.set=dT,A.setWith=hT,A.shuffle=ZA,A.slice=qx,A.sortBy=QA,A.sortedUniq=tA,A.sortedUniqBy=nA,A.split=FT,A.spread=lE,A.tail=rA,A.take=iA,A.takeRight=sA,A.takeRightWhile=oA,A.takeWhile=aA,A.tap=CA,A.throttle=uE,A.thru=Dl,A.toArray=jg,A.toPairs=Jg,A.toPairsIn=Qg,A.toPath=gk,A.toPlainObject=qg,A.transform=mT,A.unary=cE,A.union=lA,A.unionBy=uA,A.unionWith=cA,A.uniq=fA,A.uniqBy=dA,A.uniqWith=hA,A.unset=vT,A.unzip=If,A.unzipWith=Ig,A.update=gT,A.updateWith=pT,A.values=Js,A.valuesIn=yT,A.without=mA,A.words=np,A.wrap=fE,A.xor=vA,A.xorBy=gA,A.xorWith=pA,A.zip=yA,A.zipObject=bA,A.zipObjectDeep=_A,A.zipWith=wA,A.entries=Jg,A.entriesIn=Qg,A.extend=Yg,A.extendWith=Gl,Nf(A,A),A.add=yk,A.attempt=rp,A.camelCase=CT,A.capitalize=ep,A.ceil=bk,A.clamp=bT,A.clone=hE,A.cloneDeep=vE,A.cloneDeepWith=gE,A.cloneWith=mE,A.conformsTo=pE,A.deburr=tp,A.defaultTo=XT,A.divide=_k,A.endsWith=ST,A.eq=dr,A.escape=xT,A.escapeRegExp=AT,A.every=LA,A.find=VA,A.findIndex=Eg,A.findKey=KE,A.findLast=MA,A.findLastIndex=Tg,A.findLastKey=qE,A.floor=wk,A.forEach=Og,A.forEachRight=Vg,A.forIn=YE,A.forInRight=ZE,A.forOwn=XE,A.forOwnRight=JE,A.get=Ff,A.gt=yE,A.gte=bE,A.has=tT,A.hasIn=Bf,A.head=Pg,A.identity=kn,A.includes=HA,A.indexOf=Mx,A.inRange=_T,A.invoke=iT,A.isArguments=os,A.isArray=Xe,A.isArrayBuffer=_E,A.isArrayLike=En,A.isArrayLikeObject=Ut,A.isBoolean=wE,A.isBuffer=Ti,A.isDate=CE,A.isElement=SE,A.isEmpty=xE,A.isEqual=AE,A.isEqualWith=EE,A.isError=Vf,A.isFinite=TE,A.isFunction=Xr,A.isInteger=Ug,A.isLength=zl,A.isMap=zg,A.isMatch=kE,A.isMatchWith=PE,A.isNaN=RE,A.isNative=IE,A.isNil=OE,A.isNull=LE,A.isNumber=Wg,A.isObject=Bt,A.isObjectLike=$t,A.isPlainObject=ra,A.isRegExp=Mf,A.isSafeInteger=VE,A.isSet=Gg,A.isString=Wl,A.isSymbol=Fn,A.isTypedArray=Xs,A.isUndefined=ME,A.isWeakMap=FE,A.isWeakSet=BE,A.join=Hx,A.kebabCase=ET,A.last=tr,A.lastIndexOf=Nx,A.lowerCase=TT,A.lowerFirst=kT,A.lt=DE,A.lte=$E,A.max=Ck,A.maxBy=Sk,A.mean=xk,A.meanBy=Ak,A.min=Ek,A.minBy=Tk,A.stubArray=zf,A.stubFalse=Wf,A.stubObject=dk,A.stubString=hk,A.stubTrue=mk,A.multiply=kk,A.nth=Ux,A.noConflict=ik,A.noop=Uf,A.now=Hl,A.pad=PT,A.padEnd=RT,A.padStart=IT,A.parseInt=LT,A.random=wT,A.reduce=GA,A.reduceRight=jA,A.repeat=OT,A.replace=VT,A.result=fT,A.round=Pk,A.runInContext=N,A.sample=qA,A.size=XA,A.snakeCase=MT,A.some=JA,A.sortedIndex=Yx,A.sortedIndexBy=Zx,A.sortedIndexOf=Xx,A.sortedLastIndex=Jx,A.sortedLastIndexBy=Qx,A.sortedLastIndexOf=eA,A.startCase=BT,A.startsWith=DT,A.subtract=Rk,A.sum=Ik,A.sumBy=Lk,A.template=$T,A.times=vk,A.toFinite=Jr,A.toInteger=Je,A.toLength=Kg,A.toLower=HT,A.toNumber=nr,A.toSafeInteger=HE,A.toString=yt,A.toUpper=NT,A.trim=UT,A.trimEnd=zT,A.trimStart=WT,A.truncate=GT,A.unescape=jT,A.uniqueId=pk,A.upperCase=KT,A.upperFirst=Df,A.each=Og,A.eachRight=Vg,A.first=Pg,Nf(A,function(){var i={};return Or(A,function(a,c){_t.call(A.prototype,c)||(i[c]=a)}),i}(),{chain:!1}),A.VERSION=r,Zn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){A[i].placeholder=A}),Zn(["drop","take"],function(i,a){at.prototype[i]=function(c){c=c===n?1:Xt(Je(c),0);var g=this.__filtered__&&!a?new at(this):this.clone();return g.__filtered__?g.__takeCount__=un(c,g.__takeCount__):g.__views__.push({size:un(c,be),type:i+(g.__dir__<0?"Right":"")}),g},at.prototype[i+"Right"]=function(c){return this.reverse()[i](c).reverse()}}),Zn(["filter","map","takeWhile"],function(i,a){var c=a+1,g=c==G||c==fe;at.prototype[i]=function(_){var E=this.clone();return E.__iteratees__.push({iteratee:Ue(_,3),type:c}),E.__filtered__=E.__filtered__||g,E}}),Zn(["head","last"],function(i,a){var c="take"+(a?"Right":"");at.prototype[i]=function(){return this[c](1).value()[0]}}),Zn(["initial","tail"],function(i,a){var c="drop"+(a?"":"Right");at.prototype[i]=function(){return this.__filtered__?new at(this):this[c](1)}}),at.prototype.compact=function(){return this.filter(kn)},at.prototype.find=function(i){return this.filter(i).head()},at.prototype.findLast=function(i){return this.reverse().find(i)},at.prototype.invokeMap=tt(function(i,a){return typeof i=="function"?new at(this):this.map(function(c){return Xo(c,i,a)})}),at.prototype.reject=function(i){return this.filter(Ul(Ue(i)))},at.prototype.slice=function(i,a){i=Je(i);var c=this;return c.__filtered__&&(i>0||a<0)?new at(c):(i<0?c=c.takeRight(-i):i&&(c=c.drop(i)),a!==n&&(a=Je(a),c=a<0?c.dropRight(-a):c.take(a-i)),c)},at.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},at.prototype.toArray=function(){return this.take(be)},Or(at.prototype,function(i,a){var c=/^(?:filter|find|map|reject)|While$/.test(a),g=/^(?:head|last)$/.test(a),_=A[g?"take"+(a=="last"?"Right":""):a],E=g||/^find/.test(a);_&&(A.prototype[a]=function(){var L=this.__wrapped__,F=g?[1]:arguments,W=L instanceof at,te=F[0],ne=W||Xe(L),ae=function(it){var ut=_.apply(A,_i([it],F));return g&&we?ut[0]:ut};ne&&c&&typeof te=="function"&&te.length!=1&&(W=ne=!1);var we=this.__chain__,Ie=!!this.__actions__.length,We=E&&!we,Qe=W&&!Ie;if(!E&&ne){L=Qe?L:new at(this);var Ge=i.apply(L,F);return Ge.__actions__.push({func:Dl,args:[ae],thisArg:n}),new Jn(Ge,we)}return We&&Qe?i.apply(this,F):(Ge=this.thru(ae),We?g?Ge.value()[0]:Ge.value():Ge)})}),Zn(["pop","push","shift","sort","splice","unshift"],function(i){var a=cl[i],c=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",g=/^(?:pop|shift)$/.test(i);A.prototype[i]=function(){var _=arguments;if(g&&!this.__chain__){var E=this.value();return a.apply(Xe(E)?E:[],_)}return this[c](function(L){return a.apply(Xe(L)?L:[],_)})}}),Or(at.prototype,function(i,a){var c=A[a];if(c){var g=c.name+"";_t.call(js,g)||(js[g]=[]),js[g].push({name:a,func:c})}}),js[Il(n,x).name]=[{name:"wrapper",func:n}],at.prototype.clone=j2,at.prototype.reverse=K2,at.prototype.value=q2,A.prototype.at=SA,A.prototype.chain=xA,A.prototype.commit=AA,A.prototype.next=EA,A.prototype.plant=kA,A.prototype.reverse=PA,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=RA,A.prototype.first=A.prototype.head,Wo&&(A.prototype[Wo]=TA),A},zs=A2();Ji?((Ji.exports=zs)._=zs,$c._=zs):rn._=zs}).call(oo)})(Pu,Pu.exports);var rV=Pu.exports;const pr=Ab(rV),Eb=["filters","show"];Object.freeze(Eb);const Tb=e=>{const t=Array.isArray(e),n=t?[]:{};for(const[r,s]of Object.entries(e)){if(s==null)continue;const o=s&&typeof s=="object",l=o?Tb(s):s;(!o||Object.keys(l).length>0)&&(t?n.push(l):n[r]=l)}return n},qa=e=>{const t=Tb(e);t.q===""&&delete t.q;for(const n of Eb)t[n]&&(t[n]=JSON.stringify(t[n]));return t.ts=Tt().timestamp,t},iV=({group:e,pk:t},n)=>{const r=qa(n);return et.get(`/${e}/${t}/choices_available`,{params:r})},sV=({group:e,pk:t},n,r)=>{const s=qa(r);return et.get(`/${e}/${t}/choices/${n}`,{params:s})},oV=({group:e,pk:t,page:n},r)=>{const s=qa(r);return et.get(`/${e}/${t}/${n}`,{params:s})},aV=({group:e,pk:t},n)=>{const r=qa(n);return et.get(`/${e}/${t}/metadata`,{params:r})},lV=()=>{const e=qa({});return et.get("/r/settings",{params:e})},uV=({group:e,pk:t},n)=>(n.fitTo===null&&(n.fitTo=""),et.patch(`${e}/${t}/bookmark`,n)),vs={getAvailableFilterChoices:iV,getFilterChoices:sV,getMetadata:aV,getSettings:lV,loadBrowserPage:oV,setGroupBookmarks:uV},cV=["communityRating","criticalRating","decade","year"];Object.freeze(cV);const fV=["ageRating","country","fileType","language","originalFormat"];Object.freeze(fV);const Ru="rpisvc";Object.freeze(Ru);const ao=[...Ru].reverse().join("");Object.freeze(ao);const Qh={};for(let e of ir.browser.settingsGroup)Qh[e.value]=e.default===!0;Object.freeze(Qh);const kb=new Set([301,302,303,307,308]);Object.freeze(kb);const Pb=new Set([void 0,null,ir.browser.bookmarkFilter[0].value]);Object.freeze(Pb);const dV=function(e){return!e||e<1?1:Math.floor(Math.log10(e))+1},ld=function(e){e&&e.params&&mr.push(e).catch(console.warn)},hc=Ga("browser",{state:()=>({choices:{static:Object.freeze({bookmark:ir.browser.bookmarkFilter,groupNames:ir.browser.groupNames,settingsGroup:ir.browser.settingsGroup}),dynamic:void 0},settings:{filters:{},q:"",topGroup:void 0,orderBy:void 0,orderReverse:void 0,show:{...Qh},twentyFourHourTime:void 0},page:{adminFlags:{folderView:void 0},browserTitle:{parentName:void 0,groupName:void 0,groupCount:void 0},coversTimestamp:0,librariesExist:void 0,modelGroup:void 0,numPages:1,groups:[],books:[],routes:{up:void 0,last:void 0}},filterMode:"base",zeroPad:0,browserPageLoaded:!1}),getters:{topGroupChoices(){const e=[];for(const t of ir.browser.topGroup)this._isRootGroupEnabled(t.value)&&e.push(t);return e},topGroupChoicesMaxLen(){return this._maxLenChoices(ir.browser.topGroup)},orderByChoices(e){const t=[];for(const n of ir.browser.orderBy)n.value==="path"?e.page.adminFlags.folderView&&t.push(n):t.push(n);return t},orderByChoicesMaxLen(){return this._maxLenChoices(ir.browser.orderBy)},filterByChoicesMaxLen(){return this._maxLenChoices(ir.browser.bookmarkFilter)},isCodexViewable(){return Sn().isCodexViewable},isDefaultBookmarkValueSelected(e){return Pb.has(e.settings.filters.bookmark)},lowestShownGroup(e){let t="r";const n=ao.indexOf(e.settings.topGroup);for(const[r,s]of[...ao].entries())if(e.settings.show[s]){r<=n&&(t=s);break}return t},parentModelGroup(e){let t="";if(!e.page||!e.page.routes||!e.page.routes.up)return t;const n=e.page.routes.up.group,r=Ru.indexOf(n)+1,s=Ru.slice(r);for(t of s)if(e.settings.show[t])break;return t}},actions:{_maxLenChoices(e){let t=0;for(const n of e)n&&n.title&&n.title.length>t&&(t=n.title.length);return t},_isRootGroupEnabled(e){return e==="c"||e==="f"?this.page.adminFlags.folderView:this.settings.show[e]},_validateFirstSearch(e){if(this.q||!e.q)return;e.orderBy="search_score",e.orderReverse=!0;const t=mr.currentRoute.value.params;if(!["f",this.lowestShownGroup].includes(t.group))return{params:{group:this.lowestShownGroup,pk:0,page:1}}},_validateNewTopGroupIsParent(e,t){const r=(t||mr.currentRoute.value).params,s=ao.indexOf(this.settings.topGroup);if(r.group!=="r"||!this.settings.topGroup||s>=ao.indexOf(e.topGroup))return t;const o=ao.slice(s+1);let l;for(l of o)if(this.settings.show[l])break;return{params:{...r,group:l}}},_addSettings(e){this.$patch(t=>{for(let[n,r]of Object.entries(e))t.settings[n]=typeof t.settings[n]=="object"?{...t.settings[n],...r}:t.settings[n]=r})},_validateAndSaveSettings(e){let t=this._validateFirstSearch(e);return t=this._validateNewTopGroupIsParent(e,t),e&&this._addSettings(e),this.filterMode="base",t},async clearFilters(){this.settings.filters={},await this.setSettings({})},async setSettings(e){const t=this._validateAndSaveSettings(e);Tt().setTimestamp(),await(t?ld(t):this.loadBrowserPage())},async setBookmarkFinished(e,t){this.isCodexViewable&&await vs.setGroupBookmarks(e,{finished:t}).then(()=>(Tt().setTimestamp(),this.loadBrowserPage(),!0))},routeToPage(e){const t=pr.cloneDeep(mr.currentRoute.value);t.params.page=e,mr.push(t).catch(console.warn)},handlePageError(e){if(kb.has(e.response.status)){console.debug(e);const t=e.response.data;t.settings&&this.setSettings(t.settings),t.route&&ld(t.route)}else return console.error(e)},async loadSettings(){this.isCodexViewable&&(this.$patch(e=>{e.browserPageLoaded=!1,e.choices.dynamic=void 0}),await vs.getSettings().then(e=>{const t=e.data,n=this._validateAndSaveSettings(t);return this.browserPageLoaded=!0,n?ld(n):this.loadBrowserPage()}).catch(e=>(this.browserPageLoaded=!0,this.handlePageError(e))))},async loadBrowserPage(){if(!this.isCodexViewable)return;if(!this.browserPageLoaded)return this.loadSettings();const e=mr.currentRoute.value.params;await vs.loadBrowserPage(e,this.settings).then(t=>{const n=t.data;return this.$patch(r=>{const s={...t.data};delete s.upRoute,delete s.issueMax,s.routes={up:n.upRoute,last:e},s.zeroPad=dV(n.issueMax),r.page=Object.freeze(s),r.choices.dynamic=void 0}),!0}).catch(this.handlePageError)},async loadAvailableFilterChoices(){return await vs.getAvailableFilterChoices(mr.currentRoute.value.params,this.settings).then(e=>(this.choices.dynamic=e.data,!0)).catch(console.error)},async loadFilterChoices(e){return await vs.getFilterChoices(mr.currentRoute.value.params,e,this.settings).then(t=>(this.choices.dynamic[e]=Object.freeze(t.data),!0)).catch(console.error)}}}),st=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Yt=typeof window<"u",em=Yt&&"IntersectionObserver"in window,hV=Yt&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),Kd=Yt&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports("selector(:focus-visible)");function Es(e){const t=X(),n=X();if(Yt){const r=new ResizeObserver(s=>{e==null||e(s,r),s.length&&(n.value=s[0].contentRect)});Ln(()=>{r.disconnect()}),Fe(t,(s,o)=>{o&&(r.unobserve(o),n.value=void 0),s&&r.observe(s)},{flush:"post"})}return{resizeRef:t,contentRect:Io(n)}}function b1(e,t,n){mV(e,t),t.set(e,n)}function mV(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function vV(e,t,n){var r=Rb(e,t,"set");return gV(e,r,n),n}function gV(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function cs(e,t){var n=Rb(e,t,"get");return pV(e,n)}function Rb(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function pV(e,t){return t.get?t.get.call(e):t.value}function Ib(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let s=0;s<r;s++){if(e==null)return n;e=e[t[s]]}return e==null||e[t[r]]===void 0?n:e[t[r]]}function Os(e,t){if(e===t)return!0;if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e!==Object(e)||t!==Object(t))return!1;const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>Os(e[r],t[r]))}function So(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),Ib(e,t.split("."),n))}function or(e,t,n){if(t==null)return e===void 0?n:e;if(e!==Object(e)){if(typeof t!="function")return n;const s=t(e,n);return typeof s>"u"?n:s}if(typeof t=="string")return So(e,t,n);if(Array.isArray(t))return Ib(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function Ia(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function Ae(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${t}`:void 0}function qd(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function yV(e){return e==null?void 0:e.$el}const _1=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),r8=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function Lb(e){return Object.keys(e)}function Ya(e,t){const n=Object.create(null),r=Object.create(null);for(const s in e)t.some(o=>o instanceof RegExp?o.test(s):o===s)?n[s]=e[s]:r[s]=e[s];return[n,r]}function Za(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}function mc(e){return Ya(e,["class","style","id",/^data-/])}function Hr(e){return e==null?[]:Array.isArray(e)?e:[e]}function xo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function i8(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function w1(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function bV(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r<e.length;)n.push(e.substr(r,t)),r+=t;return n}function ji(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const s in e)r[s]=e[s];for(const s in t){const o=e[s],l=t[s];if(qd(o)&&qd(l)){r[s]=ji(o,l,n);continue}if(Array.isArray(o)&&Array.isArray(l)&&n){r[s]=n(o,l);continue}r[s]=l}return r}function $i(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if($i.cache.has(e))return $i.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return $i.cache.set(e,t),t}$i.cache=new Map;function wa(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>wa(e,n)).flat(1);if(Array.isArray(t.children))return t.children.map(n=>wa(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return wa(e,t.component.subTree).flat(1)}return[]}var ru=new WeakMap,to=new WeakMap;class _V{constructor(t){b1(this,ru,{writable:!0,value:[]}),b1(this,to,{writable:!0,value:0}),this.size=t}push(t){cs(this,ru)[cs(this,to)]=t,vV(this,to,(cs(this,to)+1)%this.size)}values(){return cs(this,ru).slice(cs(this,to)).concat(cs(this,ru).slice(0,cs(this,to)))}}function tm(e){const t=Jt({}),n=P(e);return Tr(()=>{for(const r in n.value)t[r]=n.value[r]},{flush:"sync"}),Ha(t)}function Iu(e,t){return e.includes(t)}const wV=/^on[^a-z]/,CV=e=>wV.test(e),Nr=()=>[Function,Array];function C1(e,t){return t="on"+ks(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function SV(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(Array.isArray(e))for(const s of e)s(...n);else typeof e=="function"&&e(...n)}function nm(e){const t=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(n=>`${n}:not([tabindex="-1"]):not([disabled])`).join(", ");return[...e.querySelectorAll(t)]}function Ob(e,t){var s,o,l;const n=nm(e),r=n.indexOf(document.activeElement);if(!t)e.contains(document.activeElement)||(s=n[0])==null||s.focus();else if(t==="first")(o=n[0])==null||o.focus();else if(t==="last")(l=n.at(-1))==null||l.focus();else{let u,f=r;const d=t==="next"?1:-1;do f+=d,u=n[f];while((!u||u.offsetParent==null)&&f<n.length&&f>=0);u?u.focus():Ob(e,t==="next"?"first":"last")}}const Vb=["top","bottom"],xV=["start","end","left","right"];function Yd(e,t){let[n,r]=e.split(" ");return r||(r=Iu(Vb,n)?"start":Iu(xV,n)?"top":"center"),{side:Zd(n,t),align:Zd(r,t)}}function Zd(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function ud(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function cd(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function S1(e){return{side:e.align,align:e.side}}function x1(e){return Iu(Vb,e.side)?"y":"x"}class vo{constructor(t){let{x:n,y:r,width:s,height:o}=t;this.x=n,this.y=r,this.width=s,this.height=o}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function A1(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function rm(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),r=n.transform;if(r){let s,o,l,u,f;if(r.startsWith("matrix3d("))s=r.slice(9,-1).split(/, /),o=+s[0],l=+s[5],u=+s[12],f=+s[13];else if(r.startsWith("matrix("))s=r.slice(7,-1).split(/, /),o=+s[0],l=+s[3],u=+s[4],f=+s[5];else return new vo(t);const d=n.transformOrigin,h=t.x-u-(1-o)*parseFloat(d),m=t.y-f-(1-l)*parseFloat(d.slice(d.indexOf(" ")+1)),v=o?t.width/o:e.offsetWidth+1,p=l?t.height/l:e.offsetHeight+1;return new vo({x:h,y:m,width:v,height:p})}else return new vo(t)}function ps(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(s=>{r.onfinish=()=>{s(r)}})),r}function Mb(e,t,n){if(n&&(t={__isVue:!0,$parent:n,$options:t}),t){if(t.$_alreadyWarned=t.$_alreadyWarned||[],t.$_alreadyWarned.includes(e))return;t.$_alreadyWarned.push(e)}return`[Vuetify] ${e}`+(t?TV(t):"")}function Cs(e,t,n){const r=Mb(e,t,n);r!=null&&console.warn(r)}function Xd(e,t,n){const r=Mb(e,t,n);r!=null&&console.error(r)}const AV=/(?:^|[-_])(\w)/g,EV=e=>e.replace(AV,t=>t.toUpperCase()).replace(/[-_]/g,"");function fd(e,t){if(e.$root===e)return"<Root>";const n=typeof e=="function"&&e.cid!=null?e.options:e.__isVue?e.$options||e.constructor.options:e||{};let r=n.name||n._componentTag;const s=n.__file;if(!r&&s){const o=s.match(/([^/\\]+)\.vue$/);r=o==null?void 0:o[1]}return(r?`<${EV(r)}>`:"<Anonymous>")+(s&&t!==!1?` at ${s}`:"")}function TV(e){if(e.__isVue&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return`
|
|
38
|
-
|
|
39
|
-
found in
|
|
40
|
-
|
|
41
|
-
`+t.map((r,s)=>`${s===0?"---> ":" ".repeat(5+s*2)}${Array.isArray(r)?`${fd(r[0])}... (${r[1]} recursive calls)`:fd(r)}`).join(`
|
|
42
|
-
`)}else return`
|
|
43
|
-
|
|
44
|
-
(found in ${fd(e)})`}const kV=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],PV=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,RV=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],IV=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Fb(e){const t=Array(3),n=PV,r=kV;for(let s=0;s<3;++s)t[s]=Math.round(xo(n(r[s][0]*e[0]+r[s][1]*e[1]+r[s][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function im(e){let{r:t,g:n,b:r}=e;const s=[0,0,0],o=IV,l=RV;t=o(t/255),n=o(n/255),r=o(r/255);for(let u=0;u<3;++u)s[u]=l[u][0]*t+l[u][1]*n+l[u][2]*r;return s}const Lu=.20689655172413793,LV=e=>e>Lu**3?Math.cbrt(e):e/(3*Lu**2)+4/29,OV=e=>e>Lu?e**3:3*Lu**2*(e-4/29);function Bb(e){const t=LV,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function Db(e){const t=OV,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}function E1(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function ys(e){if(typeof e=="number")return(isNaN(e)||e<0||e>16777215)&&Cs(`'${e}' is not a valid hex color`),{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;[3,4].includes(t.length)?t=t.split("").map(r=>r+r).join(""):[6,8].includes(t.length)||Cs(`'${e}' is not a valid hex(a) color`);const n=parseInt(t,16);return(isNaN(n)||n<0||n>4294967295)&&Cs(`'${e}' is not a valid hex(a) color`),MV(t)}else throw new TypeError(`Colors can only be numbers or strings, recieved ${e==null?e:e.constructor.name} instead`)}function iu(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function VV(e){let{r:t,g:n,b:r,a:s}=e;return`#${[iu(t),iu(n),iu(r),s!==void 0?iu(Math.round(s*255)):""].join("")}`}function MV(e){e=FV(e);let[t,n,r,s]=bV(e,2).map(o=>parseInt(o,16));return s=s===void 0?s:s/255,{r:t,g:n,b:r,a:s}}function FV(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=w1(w1(e,6),8,"F")),e}function BV(e,t){const n=Bb(im(e));return n[0]=n[0]+t*10,Fb(Db(n))}function DV(e,t){const n=Bb(im(e));return n[0]=n[0]-t*10,Fb(Db(n))}function $V(e){const t=ys(e);return im(t)[1]}function vn(e,t){const n=kr();if(!n)throw new Error(`[Vuetify] ${e} ${t||"must be called from inside a setup function"}`);return n}function gi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=vn(e).type;return $i((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}let $b=0,vu=new WeakMap;function ur(){const e=vn("getUid");if(vu.has(e))return vu.get(e);{const t=$b++;return vu.set(e,t),t}}ur.reset=()=>{$b=0,vu=new WeakMap};function HV(e){const{provides:t}=vn("injectSelf");if(t&&e in t)return t[e]}function Ve(e,t){return n=>Object.keys(e).reduce((r,s)=>{const l=typeof e[s]=="object"&&e[s]!=null&&!Array.isArray(e[s])?e[s]:{type:e[s]};return n&&s in n?r[s]={...l,default:n[s]}:r[s]=l,t&&!r[s].source&&(r[s].source=t),r},{})}const sm=Symbol.for("vuetify:defaults");function s8(e){return X(e)}function Hb(){const e=nt(sm);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Kn(e,t){const n=Hb(),r=X(e),s=P(()=>{if(dn(t==null?void 0:t.disabled))return n.value;const l=dn(t==null?void 0:t.scoped),u=dn(t==null?void 0:t.reset),f=dn(t==null?void 0:t.root);let d=ji(r.value,{prev:n.value});if(l)return d;if(u||f){const h=Number(u||1/0);for(let m=0;m<=h&&!(!d||!("prev"in d));m++)d=d.prev;return d}return d.prev?ji(d.prev,d):d});return kt(sm,s),s}function Ki(e,t){let n;function r(){n=ko(),n.run(()=>t.length?t(()=>{n==null||n.stop(),r()}):t())}Fe(e,s=>{s&&!n?r():s||(n==null||n.stop(),n=void 0)},{immediate:!0}),Cn(()=>{n==null||n.stop()})}function NV(e,t){var n,r;return typeof((n=e.props)==null?void 0:n[t])<"u"||typeof((r=e.props)==null?void 0:r[$i(t)])<"u"}function Vo(e){if(e._setup=e._setup??e.setup,!e.name)return Cs("The component is missing an explicit name, unable to generate default prop value"),e;if(e._setup){e.props=Ve(e.props??{},$i(e.name))();const t=Object.keys(e.props);e.filterProps=function(r){return Ya(r,t)},e.props._as=String,e.setup=function(r,s){const o=Hb();if(!o.value)return e._setup(r,s);const l=kr(),u=P(()=>o.value[r._as??e.name]),f=new Proxy(r,{get(m,v){var b,S;const p=Reflect.get(m,v);return typeof v=="string"&&!NV(l.vnode,v)?((b=u.value)==null?void 0:b[v])??((S=o.value.global)==null?void 0:S[v])??p:p}}),d=Yu();Tr(()=>{if(u.value){const m=Object.entries(u.value).filter(v=>{let[p]=v;return p.startsWith(p[0].toUpperCase())});m.length&&(d.value=Object.fromEntries(m))}});const h=e._setup(f,s);return Ki(d,()=>{var m;Kn(ji(((m=HV(sm))==null?void 0:m.value)??{},d.value))}),h}}return e}function Pe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?Vo:Lo)(t)}function UV(e,t){return t.props=e,t}function Nb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return Pe()({name:n??ks(hn(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t}},setup(r,s){let{slots:o}=s;return()=>{var l;return mi(r.tag,{class:e},(l=o.default)==null?void 0:l.call(o))}}})}function Ub(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const La="cubic-bezier(0.4, 0, 0.2, 1)",zV="cubic-bezier(0.0, 0, 0.2, 1)",WV="cubic-bezier(0.4, 0, 1, 1)";function GV(e){for(;e;){if(om(e))return e;e=e.parentElement}return document.scrollingElement}function Ou(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(om(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function om(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function jV(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function Be(e){const t=vn("useRender");t.render=e}const Vu=Symbol.for("vuetify:layout"),zb=Symbol.for("vuetify:layout-item"),T1=1e3,o8=Ve({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),Wb=Ve({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function KV(){const e=nt(Vu);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function Gb(e){const t=nt(Vu);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${ur()}`,r=vn("useLayoutItem");kt(zb,{id:n});const s=X(!1);Oh(()=>s.value=!0),Lh(()=>s.value=!1);const{layoutItemStyles:o,layoutItemScrimStyles:l}=t.register(r,{...e,active:P(()=>s.value?!1:e.active.value),id:n});return Ln(()=>t.unregister(n)),{layoutItemStyles:o,layoutRect:t.layoutRect,layoutItemScrimStyles:l}}const qV=(e,t,n,r)=>{let s={top:0,left:0,right:0,bottom:0};const o=[{id:"",layer:{...s}}];for(const l of e){const u=t.get(l),f=n.get(l),d=r.get(l);if(!u||!f||!d)continue;const h={...s,[u.value]:parseInt(s[u.value],10)+(d.value?parseInt(f.value,10):0)};o.push({id:l,layer:h}),s=h}return o};function a8(e){const t=nt(Vu,null),n=P(()=>t?t.rootZIndex.value-100:T1),r=X([]),s=Jt(new Map),o=Jt(new Map),l=Jt(new Map),u=Jt(new Map),f=Jt(new Map),{resizeRef:d,contentRect:h}=Es(),m=P(()=>{const M=new Map,O=e.overlaps??[];for(const k of O.filter(H=>H.includes(":"))){const[H,z]=k.split(":");if(!r.value.includes(H)||!r.value.includes(z))continue;const D=s.get(H),U=s.get(z),q=o.get(H),G=o.get(z);!D||!U||!q||!G||(M.set(z,{position:D.value,amount:parseInt(q.value,10)}),M.set(H,{position:U.value,amount:-parseInt(G.value,10)}))}return M}),v=P(()=>{const M=[...new Set([...l.values()].map(k=>k.value))].sort((k,H)=>k-H),O=[];for(const k of M){const H=r.value.filter(z=>{var D;return((D=l.get(z))==null?void 0:D.value)===k});O.push(...H)}return qV(O,s,o,u)}),p=P(()=>!Array.from(f.values()).some(M=>M.value)),b=P(()=>v.value[v.value.length-1].layer),S=P(()=>({"--v-layout-left":Ae(b.value.left),"--v-layout-right":Ae(b.value.right),"--v-layout-top":Ae(b.value.top),"--v-layout-bottom":Ae(b.value.bottom),...p.value?void 0:{transition:"none"}})),T=P(()=>v.value.slice(1).map((M,O)=>{let{id:k}=M;const{layer:H}=v.value[O],z=o.get(k),D=s.get(k);return{id:k,...H,size:Number(z.value),position:D.value}})),x=M=>T.value.find(O=>O.id===M),w=vn("createLayout"),C=X(!1);Gn(()=>{C.value=!0}),kt(Vu,{register:(M,O)=>{let{id:k,order:H,position:z,layoutSize:D,elementSize:U,active:q,disableTransitions:G,absolute:ge}=O;l.set(k,H),s.set(k,z),o.set(k,D),u.set(k,q),G&&f.set(k,G);const de=wa(zb,w==null?void 0:w.vnode).indexOf(M);de>-1?r.value.splice(de,0,k):r.value.push(k);const he=P(()=>T.value.findIndex(le=>le.id===k)),_e=P(()=>n.value+v.value.length*2-he.value*2),me=P(()=>{const le=z.value==="left"||z.value==="right",Ne=z.value==="right",bt=z.value==="bottom",Y={[z.value]:0,zIndex:_e.value,transform:`translate${le?"X":"Y"}(${(q.value?0:-110)*(Ne||bt?-1:1)}%)`,position:ge.value||n.value!==T1?"absolute":"fixed",...p.value?void 0:{transition:"none"}};if(!C.value)return Y;const Z=T.value[he.value];if(!Z)throw new Error(`[Vuetify] Could not find layout item "${k}"`);const ue=m.value.get(k);return ue&&(Z[ue.position]+=ue.amount),{...Y,height:le?`calc(100% - ${Z.top}px - ${Z.bottom}px)`:U.value?`${U.value}px`:void 0,left:Ne?void 0:`${Z.left}px`,right:Ne?`${Z.right}px`:void 0,top:z.value!=="bottom"?`${Z.top}px`:void 0,bottom:z.value!=="top"?`${Z.bottom}px`:void 0,width:le?U.value?`${U.value}px`:void 0:`calc(100% - ${Z.left}px - ${Z.right}px)`}}),be=P(()=>({zIndex:_e.value-1}));return{layoutItemStyles:me,layoutItemScrimStyles:be,zIndex:_e}},unregister:M=>{l.delete(M),s.delete(M),o.delete(M),u.delete(M),f.delete(M),r.value=r.value.filter(O=>O!==M)},mainRect:b,mainStyles:S,getLayoutItem:x,items:T,layoutRect:h,rootZIndex:n});const V=P(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),I=P(()=>({zIndex:n.value,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:V,layoutStyles:I,getLayoutItem:x,items:T,layoutRect:h,layoutRef:d}}const no=2.4,k1=.2126729,P1=.7151522,R1=.072175,YV=.55,ZV=.58,XV=.57,JV=.62,su=.03,I1=1.45,QV=5e-4,e3=1.25,t3=1.25,L1=.078,O1=12.82051282051282,ou=.06,V1=.001;function M1(e,t){const n=(e.r/255)**no,r=(e.g/255)**no,s=(e.b/255)**no,o=(t.r/255)**no,l=(t.g/255)**no,u=(t.b/255)**no;let f=n*k1+r*P1+s*R1,d=o*k1+l*P1+u*R1;if(f<=su&&(f+=(su-f)**I1),d<=su&&(d+=(su-d)**I1),Math.abs(d-f)<QV)return 0;let h;if(d>f){const m=(d**YV-f**ZV)*e3;h=m<V1?0:m<L1?m-m*O1*ou:m-ou}else{const m=(d**JV-f**XV)*t3;h=m>-V1?0:m>-L1?m-m*O1*ou:m+ou}return h*100}const F1=Symbol.for("vuetify:theme"),Gt=Ve({theme:String},"theme"),la={defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#6200EE","primary-darken-1":"#3700B3",secondary:"#03DAC6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-variant":"#BDBDBD","on-surface-variant":"#424242",primary:"#BB86FC","primary-darken-1":"#3700B3",secondary:"#03DAC5","secondary-darken-1":"#03DAC5",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}};function n3(){var n,r;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:la;if(!e)return{...la,isDisabled:!0};const t={};for(const[s,o]of Object.entries(e.themes??{})){const l=o.dark||s==="dark"?(n=la.themes)==null?void 0:n.dark:(r=la.themes)==null?void 0:r.light;t[s]=ji(l,o)}return ji(la,{...e,themes:t})}function l8(e){const t=Jt(n3(e)),n=X(t.defaultTheme),r=X(t.themes),s=P(()=>{const h={};for(const[m,v]of Object.entries(r.value)){const p=h[m]={...v,colors:{...v.colors}};if(t.variations)for(const b of t.variations.colors){const S=p.colors[b];if(S)for(const T of["lighten","darken"]){const x=T==="lighten"?BV:DV;for(const w of Ia(t.variations[T],1))p.colors[`${b}-${T}-${w}`]=VV(x(ys(S),w))}}for(const b of Object.keys(p.colors)){if(/^on-[a-z]/.test(b)||p.colors[`on-${b}`])continue;const S=`on-${b}`,T=ys(p.colors[b]),x=Math.abs(M1(ys(0),T)),w=Math.abs(M1(ys(16777215),T));p.colors[S]=w>Math.min(x,50)?"#fff":"#000"}}return h}),o=P(()=>s.value[n.value]),l=P(()=>{const h=[];o.value.dark&&fs(h,":root",["color-scheme: dark"]),fs(h,":root",B1(o.value));for(const[b,S]of Object.entries(s.value))fs(h,`.v-theme--${b}`,[`color-scheme: ${S.dark?"dark":"normal"}`,...B1(S)]);const m=[],v=[],p=new Set(Object.values(s.value).flatMap(b=>Object.keys(b.colors)));for(const b of p)/^on-[a-z]/.test(b)?fs(v,`.${b}`,[`color: rgb(var(--v-theme-${b})) !important`]):(fs(m,`.bg-${b}`,[`--v-theme-overlay-multiplier: var(--v-theme-${b}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${b})) !important`,`color: rgb(var(--v-theme-on-${b})) !important`]),fs(v,`.text-${b}`,[`color: rgb(var(--v-theme-${b})) !important`]),fs(v,`.border-${b}`,[`--v-border-color: var(--v-theme-${b})`]));return h.push(...m,...v),h.map((b,S)=>S===0?b:` ${b}`).join("")});function u(){return{style:[{children:l.value,id:"vuetify-theme-stylesheet",nonce:t.cspNonce||!1}]}}function f(h){const m=h._context.provides.usehead;if(m)if(m.push){const v=m.push(u);Fe(l,()=>{v.patch(u)})}else Yt?(m.addHeadObjs(P(u)),Tr(()=>m.updateDOM())):m.addHeadObjs(u());else{let p=function(){if(!t.isDisabled){if(typeof document<"u"&&!v){const b=document.createElement("style");b.type="text/css",b.id="vuetify-theme-stylesheet",t.cspNonce&&b.setAttribute("nonce",t.cspNonce),v=b,document.head.appendChild(v)}v&&(v.innerHTML=l.value)}},v=Yt?document.getElementById("vuetify-theme-stylesheet"):null;Fe(l,p,{immediate:!0})}}const d=P(()=>t.isDisabled?void 0:`v-theme--${n.value}`);return{install:f,isDisabled:t.isDisabled,name:n,themes:r,current:o,computedThemes:s,themeClasses:d,styles:l,global:{name:n,current:o}}}function en(e){vn("provideTheme");const t=nt(F1,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=P(()=>e.theme??(t==null?void 0:t.name.value)),r=P(()=>t.isDisabled?void 0:`v-theme--${n.value}`),s={...t,name:n,themeClasses:r};return kt(F1,s),s}function fs(e,t,n){e.push(`${t} {
|
|
45
|
-
`,...n.map(r=>` ${r};
|
|
46
|
-
`),`}
|
|
47
|
-
`)}function B1(e){const t=e.dark?2:1,n=e.dark?1:2,r=[];for(const[s,o]of Object.entries(e.colors)){const l=ys(o);r.push(`--v-theme-${s}: ${l.r},${l.g},${l.b}`),s.startsWith("on-")||r.push(`--v-theme-${s}-overlay-multiplier: ${$V(o)>.18?t:n}`)}for(const[s,o]of Object.entries(e.variables)){const l=typeof o=="string"&&o.startsWith("#")?ys(o):void 0,u=l?`${l.r}, ${l.g}, ${l.b}`:void 0;r.push(`--v-${s}: ${u??o}`)}return r}function pt(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:m=>m,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:m=>m;const o=vn("useProxiedModel"),l=X(e[t]!==void 0?e[t]:n),u=$i(t),d=P(u!==t?()=>{var m,v,p,b;return e[t],!!(((m=o.vnode.props)!=null&&m.hasOwnProperty(t)||(v=o.vnode.props)!=null&&v.hasOwnProperty(u))&&((p=o.vnode.props)!=null&&p.hasOwnProperty(`onUpdate:${t}`)||(b=o.vnode.props)!=null&&b.hasOwnProperty(`onUpdate:${u}`)))}:()=>{var m,v;return e[t],!!((m=o.vnode.props)!=null&&m.hasOwnProperty(t)&&((v=o.vnode.props)!=null&&v.hasOwnProperty(`onUpdate:${t}`)))});Ki(()=>!d.value,()=>{Fe(()=>e[t],m=>{l.value=m})});const h=P({get(){const m=e[t];return r(d.value?m:l.value)},set(m){const v=s(m),p=Ze(d.value?e[t]:l.value);p===v||r(p)===m||(l.value=v,o==null||o.emit(`update:${t}`,v))}});return Object.defineProperty(h,"externalValue",{get:()=>d.value?e[t]:l.value}),h}const r3={badge:"Badge",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},datePicker:{itemsSelected:"{0} selected",nextMonthAriaLabel:"Next month",nextYearAriaLabel:"Next year",prevMonthAriaLabel:"Previous month",prevYearAriaLabel:"Previous year"},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading..."},D1="$vuetify.",$1=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[+r])),jb=(e,t,n)=>function(r){for(var s=arguments.length,o=new Array(s>1?s-1:0),l=1;l<s;l++)o[l-1]=arguments[l];if(!r.startsWith(D1))return $1(r,o);const u=r.replace(D1,""),f=e.value&&n.value[e.value],d=t.value&&n.value[t.value];let h=So(f,u,null);return h||(Cs(`Translation key "${r}" not found in "${e.value}", trying fallback locale`),h=So(d,u,null)),h||(Xd(`Translation key "${r}" not found in fallback`),h=r),typeof h!="string"&&(Xd(`Translation key "${r}" has a non-string value`),h=r),$1(h,o)};function Kb(e,t){return(n,r)=>new Intl.NumberFormat([e.value,t.value],r).format(n)}function dd(e,t,n){const r=pt(e,t,e[t]??n.value);return r.value=e[t]??n.value,Fe(n,s=>{e[t]==null&&(r.value=n.value)}),r}function qb(e){return t=>{const n=dd(t,"locale",e.current),r=dd(t,"fallback",e.fallback),s=dd(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:s,t:jb(n,r,s),n:Kb(n,r),provide:qb({current:n,fallback:r,messages:s})}}}function i3(e){const t=X((e==null?void 0:e.locale)??"en"),n=X((e==null?void 0:e.fallback)??"en"),r=X({en:r3,...e==null?void 0:e.messages});return{name:"vuetify",current:t,fallback:n,messages:r,t:jb(t,n,r),n:Kb(t,n),provide:qb({current:t,fallback:n,messages:r})}}const s3={af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1},Yb=Symbol.for("vuetify:locale");function o3(e){return e.name!=null}function u8(e){const t=e!=null&&e.adapter&&o3(e==null?void 0:e.adapter)?e==null?void 0:e.adapter:i3(e),n=a3(t,e);return{...t,...n}}function Vs(){const e=nt(Yb);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function a3(e,t){const n=X((t==null?void 0:t.rtl)??s3),r=P(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:P(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function Mo(){const e=nt(Yb);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const l3=Symbol.for("vuetify:display"),H1={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},u3=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:H1;return ji(H1,e)};function N1(e){return Yt&&!e?window.innerWidth:0}function U1(e){return Yt&&!e?window.innerHeight:0}function z1(e){const t=Yt&&!e?window.navigator.userAgent:"ssr";function n(b){return!!t.match(b)}const r=n(/android/i),s=n(/iphone|ipad|ipod/i),o=n(/cordova/i),l=n(/electron/i),u=n(/chrome/i),f=n(/edge/i),d=n(/firefox/i),h=n(/opera/i),m=n(/win/i),v=n(/mac/i),p=n(/linux/i);return{android:r,ios:s,cordova:o,electron:l,chrome:u,edge:f,firefox:d,opera:h,win:m,mac:v,linux:p,touch:hV,ssr:t==="ssr"}}function c8(e,t){const{thresholds:n,mobileBreakpoint:r}=u3(e),s=X(U1(t)),o=Yu(z1(t)),l=Jt({}),u=X(N1(t));function f(){s.value=U1(),u.value=N1()}function d(){f(),o.value=z1()}return Tr(()=>{const h=u.value<n.sm,m=u.value<n.md&&!h,v=u.value<n.lg&&!(m||h),p=u.value<n.xl&&!(v||m||h),b=u.value<n.xxl&&!(p||v||m||h),S=u.value>=n.xxl,T=h?"xs":m?"sm":v?"md":p?"lg":b?"xl":"xxl",x=typeof r=="number"?r:n[r],w=u.value<x;l.xs=h,l.sm=m,l.md=v,l.lg=p,l.xl=b,l.xxl=S,l.smAndUp=!h,l.mdAndUp=!(h||m),l.lgAndUp=!(h||m||v),l.xlAndUp=!(h||m||v||p),l.smAndDown=!(v||p||b||S),l.mdAndDown=!(p||b||S),l.lgAndDown=!(b||S),l.xlAndDown=!S,l.name=T,l.height=s.value,l.width=u.value,l.mobile=w,l.mobileBreakpoint=r,l.platform=o.value,l.thresholds=n}),Yt&&window.addEventListener("resize",f,{passive:!0}),{...Ha(l),update:d,ssr:!!t}}function vc(){const e=nt(l3);if(!e)throw new Error("Could not find Vuetify display injection");return e}const c3={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus"},f3={component:e=>mi(Zb,{...e,class:"mdi"})},Ct=[String,Function,Object],d3=Symbol.for("vuetify:icons"),gc=Ve({icon:{type:Ct},tag:{type:String,required:!0}},"icon"),W1=Pe()({name:"VComponentIcon",props:gc(),setup(e,t){let{slots:n}=t;return()=>y(e.tag,null,{default:()=>{var r;return[e.icon?y(e.icon,null,null):(r=n.default)==null?void 0:r.call(n)]}})}}),h3=Vo({name:"VSvgIcon",inheritAttrs:!1,props:gc(),setup(e,t){let{attrs:n}=t;return()=>y(e.tag,Oe(n,{style:null}),{default:()=>[y("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[y("path",{d:e.icon},null)])]})}});Vo({name:"VLigatureIcon",props:gc(),setup(e){return()=>y(e.tag,null,{default:()=>[e.icon]})}});const Zb=Vo({name:"VClassIcon",props:gc(),setup(e){return()=>y(e.tag,{class:e.icon},null)}}),m3={svg:{component:h3},class:{component:Zb}};function f8(e){return ji({defaultSet:"mdi",sets:{...m3,mdi:f3},aliases:c3},e)}const v3=e=>{const t=nt(d3);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:P(()=>{var f;const r=xt(e)?e.value:e.icon;if(!r)return{component:W1};let s=r;if(typeof s=="string"&&(s=s.trim(),s.startsWith("$")&&(s=(f=t.aliases)==null?void 0:f[s.slice(1)])),!s)throw new Error(`Could not find aliased icon "${r}"`);if(typeof s!="string")return{component:W1,icon:s};const o=Object.keys(t.sets).find(d=>typeof s=="string"&&s.startsWith(`${d}:`)),l=o?s.slice(o.length+1):s;return{component:t.sets[o??t.defaultSet].component,icon:l}})}};var d8="M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z",h8="M15,18V12H17.17L12,6.83L6.83,12H9V18H15M12,4L22,14H17V20H7V14H2L12,4Z",m8="M13.04 10C12.64 10.25 12.26 10.55 11.9 10.9C11.57 11.24 11.27 11.61 11.03 12H8V10.5C8 10.22 8.22 10 8.5 10H13.04M20 8H2V2H20V8M18 4H4V6H18V4M5 18V9H3V20H11.82C11.24 19.4 10.8 18.72 10.5 18H5M23.39 21L22 22.39L18.88 19.32C18.19 19.75 17.37 20 16.5 20C14 20 12 18 12 15.5S14 11 16.5 11 21 13 21 15.5C21 16.38 20.75 17.21 20.31 17.9L23.39 21M19 15.5C19 14.12 17.88 13 16.5 13S14 14.12 14 15.5 15.12 18 16.5 18 19 16.88 19 15.5Z",v8="M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",g3="M18 4V20C18 21.11 17.11 22 16 22H4C2.9 22 2 21.11 2 20V4C2 2.9 2.9 2 4 2H5V9L7.5 7.5L10 9V2H16C17.1 2 18 2.89 18 4M20 17H22V15H20V17M20 7V13H22V7H20Z",g8="M13 19C13 20.1 13.3 21.12 13.81 22H6C4.89 22 4 21.11 4 20V4C4 2.9 4.89 2 6 2H7V9L9.5 7.5L12 9V2H18C19.1 2 20 2.89 20 4V13.09C19.67 13.04 19.34 13 19 13C15.69 13 13 15.69 13 19M20 20V16H18V20H16L19 23L22 20H20Z",p8="M13 19C13 20.1 13.3 21.12 13.81 22H6C4.89 22 4 21.11 4 20V4C4 2.9 4.89 2 6 2H7V9L9.5 7.5L12 9V2H18C19.1 2 20 2.89 20 4V13.09C19.67 13.04 19.34 13 19 13C15.69 13 13 15.69 13 19M19 15L16 18H18V22H20V18H22L19 15Z",p3="M9 3V18H12V3H9M12 5L16 18L19 17L15 4L12 5M5 5V18H8V5H5M3 19V21H21V19H3Z",y8="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",b8="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",_8="M22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12M10,18L16,12L10,6L8.6,7.4L13.2,12L8.6,16.6L10,18Z",Xb="M19,3H14.82C14.4,1.84 13.3,1 12,1C10.7,1 9.6,1.84 9.18,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M12,3A1,1 0 0,1 13,4A1,1 0 0,1 12,5A1,1 0 0,1 11,4A1,1 0 0,1 12,3M7,7H17V5H19V19H5V5H7V7M7.5,13.5L9,12L11,14L15.5,9.5L17,11L11,17L7.5,13.5Z",Jb="M19,3H14.82C14.4,1.84 13.3,1 12,1C10.7,1 9.6,1.84 9.18,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M12,3A1,1 0 0,1 13,4A1,1 0 0,1 12,5A1,1 0 0,1 11,4A1,1 0 0,1 12,3M7,7H17V5H19V19H5V5H7V7Z",y3="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",w8="M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",C8="M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2C6.47,2 2,6.47 2,12C2,17.53 6.47,22 12,22C17.53,22 22,17.53 22,12C22,6.47 17.53,2 12,2M14.59,8L12,10.59L9.41,8L8,9.41L10.59,12L8,14.59L9.41,16L12,13.41L14.59,16L16,14.59L13.41,12L16,9.41L14.59,8Z",S8="M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12A2,2 0 0,0 12,10M10,22C9.75,22 9.54,21.82 9.5,21.58L9.13,18.93C8.5,18.68 7.96,18.34 7.44,17.94L4.95,18.95C4.73,19.03 4.46,18.95 4.34,18.73L2.34,15.27C2.21,15.05 2.27,14.78 2.46,14.63L4.57,12.97L4.5,12L4.57,11L2.46,9.37C2.27,9.22 2.21,8.95 2.34,8.73L4.34,5.27C4.46,5.05 4.73,4.96 4.95,5.05L7.44,6.05C7.96,5.66 8.5,5.32 9.13,5.07L9.5,2.42C9.54,2.18 9.75,2 10,2H14C14.25,2 14.46,2.18 14.5,2.42L14.87,5.07C15.5,5.32 16.04,5.66 16.56,6.05L19.05,5.05C19.27,4.96 19.54,5.05 19.66,5.27L21.66,8.73C21.79,8.95 21.73,9.22 21.54,9.37L19.43,11L19.5,12L19.43,13L21.54,14.63C21.73,14.78 21.79,15.05 21.66,15.27L19.66,18.73C19.54,18.95 19.27,19.04 19.05,18.95L16.56,17.95C16.04,18.34 15.5,18.68 14.87,18.93L14.5,21.58C14.46,21.82 14.25,22 14,22H10M11.25,4L10.88,6.61C9.68,6.86 8.62,7.5 7.85,8.39L5.44,7.35L4.69,8.65L6.8,10.2C6.4,11.37 6.4,12.64 6.8,13.8L4.68,15.36L5.43,16.66L7.86,15.62C8.63,16.5 9.68,17.14 10.87,17.38L11.24,20H12.76L13.13,17.39C14.32,17.14 15.37,16.5 16.14,15.62L18.57,16.66L19.32,15.36L17.2,13.81C17.6,12.64 17.6,11.37 17.2,10.2L19.31,8.65L18.56,7.35L16.15,8.39C15.38,7.5 14.32,6.86 13.12,6.62L12.75,4H11.25Z",b3="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z",_3="M16.5 16.25L19.36 17.94L18.61 19.16L15 17V12H16.5V16.25M23 16C23 19.87 19.87 23 16 23C13.61 23 11.5 21.8 10.25 20C6.19 19.79 3 18.08 3 16V6C3 3.79 6.58 2 11 2S19 3.79 19 6V9.68C21.36 10.81 23 13.21 23 16M17 9.08V8.64C16.77 8.77 16.5 8.9 16.24 9C16.5 9 16.75 9.04 17 9.08M5 6C5 6.5 7.13 8 11 8S17 6.5 17 6 14.87 4 11 4 5 5.5 5 6M5 11.45C6.07 12.23 7.8 12.76 9.72 12.93C10.33 11.67 11.32 10.62 12.54 9.92C12.04 9.97 11.53 10 11 10C8.61 10 6.47 9.47 5 8.64V11.45M9.26 17.87C9.1 17.27 9 16.65 9 16C9 15.61 9.04 15.23 9.1 14.86C7.56 14.69 6.15 14.33 5 13.77V16C5 16.42 6.5 17.5 9.26 17.87M21 16C21 13.24 18.76 11 16 11S11 13.24 11 16 13.24 21 16 21 21 18.76 21 16Z",w3="M8.84 12L3.92 16.92L2.5 15.5L5 13H0V11H5L2.5 8.5L3.92 7.08L8.84 12M12 3C8.59 3 5.68 4.07 4.53 5.57L5 6L6.03 7.07C6 7.05 6 7 6 7C6 6.5 8.13 5 12 5S18 6.5 18 7 15.87 9 12 9C9.38 9 7.58 8.31 6.68 7.72L9.8 10.84C10.5 10.94 11.24 11 12 11C14.39 11 16.53 10.47 18 9.64V12.45C16.7 13.4 14.42 14 12 14C11.04 14 10.1 13.9 9.24 13.73L7.59 15.37C8.91 15.77 10.41 16 12 16C14.28 16 16.39 15.55 18 14.77V17C18 17.5 15.87 19 12 19S6 17.5 6 17V16.96L5 18L4.54 18.43C5.69 19.93 8.6 21 12 21C16.41 21 20 19.21 20 17V7C20 4.79 16.42 3 12 3Z",x8="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",A8="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",E8="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z",T8="M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z",k8="M12 1A2.5 2.5 0 0 0 9.5 3.5A2.5 2.5 0 0 0 11 5.79V7H7A2 2 0 0 0 5 9V9.71A2.5 2.5 0 0 0 3.5 12A2.5 2.5 0 0 0 5 14.29V15H4A2 2 0 0 0 2 17V18.21A2.5 2.5 0 0 0 .5 20.5A2.5 2.5 0 0 0 3 23A2.5 2.5 0 0 0 5.5 20.5A2.5 2.5 0 0 0 4 18.21V17H8V18.21A2.5 2.5 0 0 0 6.5 20.5A2.5 2.5 0 0 0 9 23A2.5 2.5 0 0 0 11.5 20.5A2.5 2.5 0 0 0 10 18.21V17A2 2 0 0 0 8 15H7V14.29A2.5 2.5 0 0 0 8.5 12A2.5 2.5 0 0 0 7 9.71V9H17V9.71A2.5 2.5 0 0 0 15.5 12A2.5 2.5 0 0 0 17 14.29V15H16A2 2 0 0 0 14 17V18.21A2.5 2.5 0 0 0 12.5 20.5A2.5 2.5 0 0 0 15 23A2.5 2.5 0 0 0 17.5 20.5A2.5 2.5 0 0 0 16 18.21V17H20V18.21A2.5 2.5 0 0 0 18.5 20.5A2.5 2.5 0 0 0 21 23A2.5 2.5 0 0 0 23.5 20.5A2.5 2.5 0 0 0 22 18.21V17A2 2 0 0 0 20 15H19V14.29A2.5 2.5 0 0 0 20.5 12A2.5 2.5 0 0 0 19 9.71V9A2 2 0 0 0 17 7H13V5.79A2.5 2.5 0 0 0 14.5 3.5A2.5 2.5 0 0 0 12 1M12 2.5A1 1 0 0 1 13 3.5A1 1 0 0 1 12 4.5A1 1 0 0 1 11 3.5A1 1 0 0 1 12 2.5M6 11A1 1 0 0 1 7 12A1 1 0 0 1 6 13A1 1 0 0 1 5 12A1 1 0 0 1 6 11M18 11A1 1 0 0 1 19 12A1 1 0 0 1 18 13A1 1 0 0 1 17 12A1 1 0 0 1 18 11M3 19.5A1 1 0 0 1 4 20.5A1 1 0 0 1 3 21.5A1 1 0 0 1 2 20.5A1 1 0 0 1 3 19.5M9 19.5A1 1 0 0 1 10 20.5A1 1 0 0 1 9 21.5A1 1 0 0 1 8 20.5A1 1 0 0 1 9 19.5M15 19.5A1 1 0 0 1 16 20.5A1 1 0 0 1 15 21.5A1 1 0 0 1 14 20.5A1 1 0 0 1 15 19.5M21 19.5A1 1 0 0 1 22 20.5A1 1 0 0 1 21 21.5A1 1 0 0 1 20 20.5A1 1 0 0 1 21 19.5Z",P8="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M6,20H15L18,20V12L14,16L12,14L6,20M8,9A2,2 0 0,0 6,11A2,2 0 0,0 8,13A2,2 0 0,0 10,11A2,2 0 0,0 8,9Z",R8="M14,12V19.88C14.04,20.18 13.94,20.5 13.71,20.71C13.32,21.1 12.69,21.1 12.3,20.71L10.29,18.7C10.06,18.47 9.96,18.16 10,17.87V12H9.97L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L14.03,12H14Z",I8="M3.47 5C3.25 5 3.04 5.08 2.87 5.21C2.43 5.55 2.35 6.18 2.69 6.61L2.69 6.62L7 12.14V18.05L10.64 21.71C11 22.1 11.66 22.1 12.05 21.71L12.05 21.71C12.44 21.32 12.44 20.69 12.06 20.3L9 17.22V11.45L4.27 5.39C4.08 5.14 3.78 5 3.47 5M21.62 3.22C21.43 3.08 21.22 3 21 3H7C6.78 3 6.57 3.08 6.38 3.22C5.95 3.56 5.87 4.19 6.21 4.62L11 10.75V15.87C10.96 16.16 11.06 16.47 11.29 16.7L15.3 20.71C15.69 21.1 16.32 21.1 16.71 20.71C16.94 20.5 17.04 20.18 17 19.88V10.75L21.79 4.62C22.13 4.19 22.05 3.56 21.62 3.22M15 10.05V17.58L13 15.58V10.06L9.04 5H18.96L15 10.05Z",L8="M8,11H11V21H13V11H16L12,7L8,11M4,3V5H20V3H4Z",O8="M4,5A2,2 0 0,0 2,7V17A2,2 0 0,0 4,19H20A2,2 0 0,0 22,17V7A2,2 0 0,0 20,5H4M4,7H20V17H4V7M5,8V10H7V8H5M8,8V10H10V8H8M11,8V10H13V8H11M14,8V10H16V8H14M17,8V10H19V8H17M5,11V13H7V11H5M8,11V13H10V11H8M11,11V13H13V11H11M14,11V13H16V11H14M17,11V13H19V11H17M8,14V16H16V14H8Z",V8="M3 15H5V19H19V15H21V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V15Z",M8="M12,17C10.89,17 10,16.1 10,15C10,13.89 10.89,13 12,13A2,2 0 0,1 14,15A2,2 0 0,1 12,17M18,20V10H6V20H18M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10C4,8.89 4.89,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",C3="M6 20V10H18V13.09C18.33 13.04 18.66 13 19 13C19.34 13 19.67 13.04 20 13.09V10C20 8.9 19.11 8 18 8H17V6C17 3.24 14.76 1 12 1S7 3.24 7 6V8H6C4.89 8 4 8.89 4 10V20C4 21.1 4.89 22 6 22H13.81C13.46 21.39 13.22 20.72 13.09 20H6M9 6C9 4.34 10.34 3 12 3S15 4.34 15 6V8H9V6M14 15C14 16.11 13.11 17 12 17C10.89 17 10 16.1 10 15C10 13.89 10.89 13 12 13C13.11 13 14 13.9 14 15M23 18V20H20V23H18V20H15V18H18V15H20V18H23Z",S3="M12.63,2C18.16,2 22.64,6.5 22.64,12C22.64,17.5 18.16,22 12.63,22C9.12,22 6.05,20.18 4.26,17.43L5.84,16.18C7.25,18.47 9.76,20 12.64,20A8,8 0 0,0 20.64,12A8,8 0 0,0 12.64,4C8.56,4 5.2,7.06 4.71,11H7.47L3.73,14.73L0,11H2.69C3.19,5.95 7.45,2 12.63,2M15.59,10.24C16.09,10.25 16.5,10.65 16.5,11.16V15.77C16.5,16.27 16.09,16.69 15.58,16.69H10.05C9.54,16.69 9.13,16.27 9.13,15.77V11.16C9.13,10.65 9.54,10.25 10.04,10.24V9.23C10.04,7.7 11.29,6.46 12.81,6.46C14.34,6.46 15.59,7.7 15.59,9.23V10.24M12.81,7.86C12.06,7.86 11.44,8.47 11.44,9.23V10.24H14.19V9.23C14.19,8.47 13.57,7.86 12.81,7.86Z",x3="M10,17V14H3V10H10V7L15,12L10,17M10,2H19A2,2 0 0,1 21,4V20A2,2 0 0,1 19,22H10A2,2 0 0,1 8,20V18H10V20H19V4H10V6H8V4A2,2 0 0,1 10,2Z",A3="M16,17V14H9V10H16V7L21,12L16,17M14,2A2,2 0 0,1 16,4V6H14V4H5V20H14V18H16V20A2,2 0 0,1 14,22H5A2,2 0 0,1 3,20V4A2,2 0 0,1 5,2H14Z",F8="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",E3="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",B8="M14,7L9,12L14,17V7Z",D8="M10,17L15,12L10,7V17Z",pc="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",T3="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",Qb="M6.18,15.64A2.18,2.18 0 0,1 8.36,17.82C8.36,19 7.38,20 6.18,20C5,20 4,19 4,17.82A2.18,2.18 0 0,1 6.18,15.64M4,4.44A15.56,15.56 0 0,1 19.56,20H16.73A12.73,12.73 0 0,0 4,7.27V4.44M4,10.1A9.9,9.9 0 0,1 13.9,20H11.07A7.07,7.07 0 0,0 4,12.93V10.1Z",$8="M3 11H15V13H3M3 18V16H21V18M3 6H9V8H3Z",H8="M3,13H15V11H3M3,6V8H21V6M3,18H9V16H3V18Z",k3="M6,2H18A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2M12.75,13.5C15.5,13.5 16.24,11.47 16.43,10.4C17.34,10.11 18,9.26 18,8.25C18,7 17,6 15.75,6C14.5,6 13.5,7 13.5,8.25C13.5,9.19 14.07,10 14.89,10.33C14.67,11 14,12 12,12C10.62,12 9.66,12.35 9,12.84V8.87C9.87,8.56 10.5,7.73 10.5,6.75C10.5,5.5 9.5,4.5 8.25,4.5C7,4.5 6,5.5 6,6.75C6,7.73 6.63,8.56 7.5,8.87V15.13C6.63,15.44 6,16.27 6,17.25C6,18.5 7,19.5 8.25,19.5C9.5,19.5 10.5,18.5 10.5,17.25C10.5,16.32 9.94,15.5 9.13,15.18C9.41,14.5 10.23,13.5 12.75,13.5M8.25,16.5A0.75,0.75 0 0,1 9,17.25A0.75,0.75 0 0,1 8.25,18A0.75,0.75 0 0,1 7.5,17.25A0.75,0.75 0 0,1 8.25,16.5M8.25,6A0.75,0.75 0 0,1 9,6.75A0.75,0.75 0 0,1 8.25,7.5A0.75,0.75 0 0,1 7.5,6.75A0.75,0.75 0 0,1 8.25,6M15.75,7.5A0.75,0.75 0 0,1 16.5,8.25A0.75,0.75 0 0,1 15.75,9A0.75,0.75 0 0,1 15,8.25A0.75,0.75 0 0,1 15.75,7.5Z",N8="M21.41 11.58L12.41 2.58A2 2 0 0 0 11 2H4A2 2 0 0 0 2 4V11A2 2 0 0 0 2.59 12.42L11.59 21.42A2 2 0 0 0 13 22A2 2 0 0 0 14.41 21.41L21.41 14.41A2 2 0 0 0 22 13A2 2 0 0 0 21.41 11.58M13 20L4 11V4H11L20 13M6.5 5A1.5 1.5 0 1 1 5 6.5A1.5 1.5 0 0 1 6.5 5Z",P3="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M9,8H11V17H9V8M13,8H15V17H13V8Z";const qi=Ve({border:[Boolean,Number,String]},"border");function Yi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gi();return{borderClasses:P(()=>{const r=xt(e)?e.value:e.border,s=[];if(r===!0||r==="")s.push(`${t}--border`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))s.push(`border-${o}`);return s})}}const pi=Ve({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function yi(e){return{elevationClasses:P(()=>{const n=xt(e)?e.value:e.elevation,r=[];return n==null||r.push(`elevation-${n}`),r})}}const Rr=Ve({rounded:{type:[Boolean,Number,String],default:void 0}},"rounded");function Ir(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gi();return{roundedClasses:P(()=>{const r=xt(e)?e.value:e.rounded,s=[];if(r===!0||r==="")s.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))s.push(`rounded-${o}`);return s})}}const Dt=Ve({tag:{type:String,default:"div"}},"tag");function am(e){return tm(()=>{const t=[],n={};return e.value.background&&(E1(e.value.background)?n.backgroundColor=e.value.background:t.push(`bg-${e.value.background}`)),e.value.text&&(E1(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function xr(e,t){const n=P(()=>({text:xt(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:s}=am(n);return{textColorClasses:r,textColorStyles:s}}function Wn(e,t){const n=P(()=>({background:xt(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:s}=am(n);return{backgroundColorClasses:r,backgroundColorStyles:s}}const e_=Pe()({name:"VFooter",props:{app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...qi(),...pi(),...Wb(),...Rr(),...Dt({tag:"footer"}),...Gt()},setup(e,t){let{slots:n}=t;const{themeClasses:r}=en(e),{backgroundColorClasses:s,backgroundColorStyles:o}=Wn(Se(e,"color")),{borderClasses:l}=Yi(e),{elevationClasses:u}=yi(e),{roundedClasses:f}=Ir(e),d=X(32),{resizeRef:h}=Es(p=>{p.length&&(d.value=p[0].target.clientHeight)}),m=P(()=>e.height==="auto"?d.value:parseInt(e.height,10)),{layoutItemStyles:v}=Gb({id:e.name,order:P(()=>parseInt(e.order,10)),position:P(()=>"bottom"),layoutSize:m,elementSize:P(()=>e.height==="auto"?void 0:m.value),active:P(()=>e.app),absolute:Se(e,"absolute")});return Be(()=>y(e.tag,{ref:h,class:["v-footer",r.value,s.value,l.value,u.value,f.value],style:[o.value,e.app?v.value:void 0]},n)),{}}}),R3={name:"VersionFooter",data(){return{mdiOpenInNew:pc,mdiContentCopy:b3}},computed:{...At(Tt,{versions:e=>e.versions}),...Pr(Sn,["isUserAdmin"]),outdated:function(){return this.isUserAdmin&&this.versions.latest>this.versions.installed},versionTitle:function(){return this.outdated?`v${this.versions.latest} is availble`:"up to date"}},created(){this.loadVersions()},methods:{...Wt(Tt,["loadVersions"])}},I3={key:0};function L3(e,t,n,r,s,o){return se(),je(e_,{id:"version-footer",title:o.versionTitle},{default:ie(()=>[$("div",{id:"version",class:br({outdated:o.outdated})}," codex v"+ye(e.versions.installed),3),o.outdated?(se(),Me("div",I3,"codex v"+ye(e.versions.latest)+" is available",1)):It("",!0)]),_:1},8,["title"])}const t_=st(R3,[["render",L3],["__scopeId","data-v-31a9c653"]]),n_=function(e,t){navigator.clipboard.writeText(e).then(()=>(t.show=!0,setTimeout(()=>{t.show=!1},5e3),!0)).catch(console.warn)};const O3=["x-small","small","default","large","x-large"],Xa=Ve({size:{type:[String,Number],default:"default"}},"size");function Ja(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gi();return tm(()=>{let n,r;return Iu(O3,e.size)?n=`${t}--size-${e.size}`:e.size&&(r={width:Ae(e.size),height:Ae(e.size)}),{sizeClasses:n,sizeStyles:r}})}const V3=Ve({color:String,start:Boolean,end:Boolean,icon:Ct,...Xa(),...Dt({tag:"i"}),...Gt()},"v-icon"),dt=Pe()({name:"VIcon",props:V3(),setup(e,t){let{attrs:n,slots:r}=t,s;r.default&&(s=P(()=>{var m,v;const h=(m=r.default)==null?void 0:m.call(r);if(h)return(v=h.filter(p=>p.type===Ui&&p.children&&typeof p.children=="string")[0])==null?void 0:v.children}));const{themeClasses:o}=en(e),{iconData:l}=v3(s||e),{sizeClasses:u}=Ja(e),{textColorClasses:f,textColorStyles:d}=xr(Se(e,"color"));return Be(()=>y(l.value.component,{tag:e.tag,icon:l.value.icon,class:["v-icon","notranslate",o.value,u.value,f.value,{"v-icon--clickable":!!n.onClick,"v-icon--start":e.start,"v-icon--end":e.end}],style:[u.value?void 0:{fontSize:Ae(e.size),height:Ae(e.size),width:Ae(e.size)},d.value],role:n.onClick?"button":void 0,"aria-hidden":!n.onClick},{default:()=>{var h;return[(h=r.default)==null?void 0:h.call(r)]}})),{}}});function qn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"center center",n=arguments.length>2?arguments[2]:void 0;return Pe()({name:e,props:{disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:{type:String,default:n},origin:{type:String,default:t}},setup(r,s){let{slots:o}=s;const l={onBeforeEnter(u){u.style.transformOrigin=r.origin},onLeave(u){if(r.leaveAbsolute){const{offsetTop:f,offsetLeft:d,offsetWidth:h,offsetHeight:m}=u;u._transitionInitialStyles={position:u.style.position,top:u.style.top,left:u.style.left,width:u.style.width,height:u.style.height},u.style.position="absolute",u.style.top=`${f}px`,u.style.left=`${d}px`,u.style.width=`${h}px`,u.style.height=`${m}px`}r.hideOnLeave&&u.style.setProperty("display","none","important")},onAfterLeave(u){if(r.leaveAbsolute&&(u!=null&&u._transitionInitialStyles)){const{position:f,top:d,left:h,width:m,height:v}=u._transitionInitialStyles;delete u._transitionInitialStyles,u.style.position=f||"",u.style.top=d||"",u.style.left=h||"",u.style.width=m||"",u.style.height=v||""}}};return()=>{const u=r.group?V0:Cr;return mi(u,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:l},o.default)}}})}function r_(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Pe()({name:e,props:{mode:{type:String,default:n},disabled:Boolean},setup(r,s){let{slots:o}=s;return()=>mi(Cr,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:t},o.default)}})}function i_(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=hn(`offset-${n}`);return{onBeforeEnter(l){l._parent=l.parentNode,l._initialStyle={transition:l.style.transition,overflow:l.style.overflow,[n]:l.style[n]}},onEnter(l){const u=l._initialStyle;l.style.setProperty("transition","none","important"),l.style.overflow="hidden";const f=`${l[r]}px`;l.style[n]="0",l.offsetHeight,l.style.transition=u.transition,e&&l._parent&&l._parent.classList.add(e),requestAnimationFrame(()=>{l.style[n]=f})},onAfterEnter:o,onEnterCancelled:o,onLeave(l){l._initialStyle={transition:"",overflow:l.style.overflow,[n]:l.style[n]},l.style.overflow="hidden",l.style[n]=`${l[r]}px`,l.offsetHeight,requestAnimationFrame(()=>l.style[n]="0")},onAfterLeave:s,onLeaveCancelled:s};function s(l){e&&l._parent&&l._parent.classList.remove(e),o(l)}function o(l){const u=l._initialStyle[n];l.style.overflow=l._initialStyle.overflow,u!=null&&(l.style[n]=u),delete l._initialStyle}}const lm=Pe()({name:"VDialogTransition",props:{target:Object},setup(e,t){let{slots:n}=t;const r={onBeforeEnter(s){s.style.pointerEvents="none",s.style.visibility="hidden"},async onEnter(s,o){var v;await new Promise(p=>requestAnimationFrame(p)),await new Promise(p=>requestAnimationFrame(p)),s.style.visibility="";const{x:l,y:u,sx:f,sy:d,speed:h}=j1(e.target,s),m=ps(s,[{transform:`translate(${l}px, ${u}px) scale(${f}, ${d})`,opacity:0},{}],{duration:225*h,easing:zV});(v=G1(s))==null||v.forEach(p=>{ps(p,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*h,easing:La})}),m.finished.then(()=>o())},onAfterEnter(s){s.style.removeProperty("pointer-events")},onBeforeLeave(s){s.style.pointerEvents="none"},async onLeave(s,o){var v;await new Promise(p=>requestAnimationFrame(p));const{x:l,y:u,sx:f,sy:d,speed:h}=j1(e.target,s);ps(s,[{},{transform:`translate(${l}px, ${u}px) scale(${f}, ${d})`,opacity:0}],{duration:125*h,easing:WV}).finished.then(()=>o()),(v=G1(s))==null||v.forEach(p=>{ps(p,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*h,easing:La})})},onAfterLeave(s){s.style.removeProperty("pointer-events")}};return()=>e.target?y(Cr,Oe({name:"dialog-transition"},r,{css:!1}),n):y(Cr,{name:"dialog-transition"},n)}});function G1(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function j1(e,t){const n=e.getBoundingClientRect(),r=rm(t),[s,o]=getComputedStyle(t).transformOrigin.split(" ").map(x=>parseFloat(x)),[l,u]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let f=n.left+n.width/2;l==="left"||u==="left"?f-=n.width/2:(l==="right"||u==="right")&&(f+=n.width/2);let d=n.top+n.height/2;l==="top"||u==="top"?d-=n.height/2:(l==="bottom"||u==="bottom")&&(d+=n.height/2);const h=n.width/r.width,m=n.height/r.height,v=Math.max(1,h,m),p=h/v||0,b=m/v||0,S=r.width*r.height/(window.innerWidth*window.innerHeight),T=S>.12?Math.min(1.5,(S-.12)*10+1):1;return{x:f-(s+r.left),y:d-(o+r.top),sx:p,sy:b,speed:T}}qn("fab-transition","center center","out-in");qn("dialog-bottom-transition");qn("dialog-top-transition");const Mu=qn("fade-transition"),U8=qn("scale-transition");qn("scroll-x-transition");qn("scroll-x-reverse-transition");qn("scroll-y-transition");qn("scroll-y-reverse-transition");const z8=qn("slide-x-transition"),W8=qn("slide-x-reverse-transition"),s_=qn("slide-y-transition"),G8=qn("slide-y-reverse-transition"),Qa=r_("expand-transition",i_()),o_=r_("expand-x-transition",i_("",!0)),M3={name:"OPDSUrl",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},url:{type:String,required:!0}},data(){return{mdiRss:Qb,showTooltip:{show:!1}}},computed:{clipBoardIcon(){return this.showTooltip.show?Xb:Jb}},methods:{onClickURL(){n_(this.url,this.showTooltip)}}},F3={class:"copied"},B3={key:0,class:"subtitle"},D3={class:"opdsUrl"};function $3(e,t,n,r,s,o){return se(),Me("div",{class:"opdsVersion",title:"Copy OPDS URL to Clipboard",onClick:t[0]||(t[0]=(...l)=>o.onClickURL&&o.onClickURL(...l))},[$("h3",null,[ke(ye(n.title)+" ",1),y(dt,{class:"clipBoardIcon",size:"small"},{default:ie(()=>[ke(ye(o.clipBoardIcon),1)]),_:1}),y(Mu,null,{default:ie(()=>[Kt($("span",F3,"Copied",512),[[ar,s.showTooltip.show]])]),_:1})]),n.subtitle?(se(),Me("div",B3,ye(n.subtitle),1)):It("",!0),$("div",D3,ye(n.url),1)])}const H3=st(M3,[["render",$3],["__scopeId","data-v-ae03fb46"]]);const N3=[null,"default","comfortable","compact"],Ur=Ve({density:{type:String,default:"default",validator:e=>N3.includes(e)}},"density");function zr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gi();return{densityClasses:P(()=>`${t}--density-${e.density}`)}}const U3=["elevated","flat","tonal","outlined","text","plain"];function yc(e,t){return y(Ke,null,[e&&y("span",{key:"overlay",class:`${t}__overlay`},null),y("span",{key:"underlay",class:`${t}__underlay`},null)])}const Zi=Ve({color:String,variant:{type:String,default:"elevated",validator:e=>U3.includes(e)}},"variant");function bc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gi();const n=P(()=>{const{variant:o}=dn(e);return`${t}--variant-${o}`}),{colorClasses:r,colorStyles:s}=am(P(()=>{const{variant:o,color:l}=dn(e);return{[["elevated","flat"].includes(o)?"background":"text"]:l}}));return{colorClasses:r,colorStyles:s,variantClasses:n}}const a_=Ve({divided:Boolean,...qi(),...Ur(),...pi(),...Rr(),...Dt(),...Gt(),...Zi()},"v-btn-group"),K1=Pe()({name:"VBtnGroup",props:a_(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=en(e),{densityClasses:s}=zr(e),{borderClasses:o}=Yi(e),{elevationClasses:l}=yi(e),{roundedClasses:u}=Ir(e);Kn({VBtn:{height:"auto",color:Se(e,"color"),density:Se(e,"density"),flat:!0,variant:Se(e,"variant")}}),Be(()=>y(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},r.value,o.value,s.value,l.value,u.value]},n))}}),_c=Ve({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),wc=Ve({value:null,disabled:Boolean,selectedClass:String},"group-item");function Cc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=vn("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const s=ur();kt(Symbol.for(`${t.description}:id`),s);const o=nt(t,null);if(!o){if(!n)return o;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const l=Se(e,"value"),u=P(()=>o.disabled.value||e.disabled);o.register({id:s,value:l,disabled:u},r),Ln(()=>{o.unregister(s)});const f=P(()=>o.isSelected(s)),d=P(()=>f.value&&[o.selectedClass.value,e.selectedClass]);return Fe(f,h=>{r.emit("group:selected",{value:h})}),{id:s,isSelected:f,toggle:()=>o.select(s,!f.value),select:h=>o.select(s,h),selectedClass:d,value:l,disabled:u,group:o}}function el(e,t){let n=!1;const r=Jt([]),s=pt(e,"modelValue",[],v=>v==null?[]:l_(r,Hr(v)),v=>{const p=W3(r,v);return e.multiple?p:p[0]}),o=vn("useGroup");function l(v,p){const b=v,S=Symbol.for(`${t.description}:id`),x=wa(S,o==null?void 0:o.vnode).indexOf(p);x>-1?r.splice(x,0,b):r.push(b)}function u(v){if(n)return;f();const p=r.findIndex(b=>b.id===v);r.splice(p,1)}function f(){const v=r.find(p=>!p.disabled);v&&e.mandatory==="force"&&!s.value.length&&(s.value=[v.id])}Gn(()=>{f()}),Ln(()=>{n=!0});function d(v,p){const b=r.find(S=>S.id===v);if(!(p&&(b!=null&&b.disabled)))if(e.multiple){const S=s.value.slice(),T=S.findIndex(w=>w===v),x=~T;if(p=p??!x,x&&e.mandatory&&S.length<=1||!x&&e.max!=null&&S.length+1>e.max)return;T<0&&p?S.push(v):T>=0&&!p&&S.splice(T,1),s.value=S}else{const S=s.value.includes(v);if(e.mandatory&&S)return;s.value=p??!S?[v]:[]}}function h(v){if(e.multiple&&Cs('This method is not supported when using "multiple" prop'),s.value.length){const p=s.value[0],b=r.findIndex(x=>x.id===p);let S=(b+v)%r.length,T=r[S];for(;T.disabled&&S!==b;)S=(S+v)%r.length,T=r[S];if(T.disabled)return;s.value=[r[S].id]}else{const p=r.find(b=>!b.disabled);p&&(s.value=[p.id])}}const m={register:l,unregister:u,selected:s,select:d,disabled:Se(e,"disabled"),prev:()=>h(r.length-1),next:()=>h(1),isSelected:v=>s.value.includes(v),selectedClass:P(()=>e.selectedClass),items:P(()=>r),getItemIndex:v=>z3(r,v)};return kt(t,m),m}function z3(e,t){const n=l_(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function l_(e,t){const n=[];for(let r=0;r<e.length;r++){const s=e[r];s.value!=null?t.find(o=>Os(o,s.value))!=null&&n.push(s.id):t.includes(r)&&n.push(s.id)}return n}function W3(e,t){const n=[];for(let r=0;r<e.length;r++){const s=e[r];t.includes(s.id)&&n.push(s.value!=null?s.value:r)}return n}const u_=Symbol.for("vuetify:v-btn-toggle");Pe()({name:"VBtnToggle",props:{...a_(),..._c()},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:s,prev:o,select:l,selected:u}=el(e,u_);return Be(()=>{const[f]=K1.filterProps(e);return y(K1,Oe({class:"v-btn-toggle"},f),{default:()=>{var d;return[(d=n.default)==null?void 0:d.call(n,{isSelected:r,next:s,prev:o,select:l,selected:u})]}})}),{next:s,prev:o,select:l}}});const ln=Pe(!1)({name:"VDefaultsProvider",props:{defaults:Object,disabled:Boolean,reset:[Number,String],root:Boolean,scoped:Boolean},setup(e,t){let{slots:n}=t;const{defaults:r,disabled:s,reset:o,root:l,scoped:u}=Ha(e);return Kn(r,{reset:o,root:l,scoped:u,disabled:s}),()=>{var f;return(f=n.default)==null?void 0:f.call(n)}}});function c_(e){const t=X(),n=X(!1);if(em){const r=new IntersectionObserver(s=>{e==null||e(s,r),n.value=!!s.find(o=>o.isIntersecting)});Ln(()=>{r.disconnect()}),Fe(t,(s,o)=>{o&&(r.unobserve(o),n.value=!1),s&&r.observe(s)},{flush:"post"})}return{intersectionRef:t,isIntersecting:n}}const f_=Pe()({name:"VProgressCircular",props:{bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Xa(),...Dt({tag:"div"}),...Gt()},setup(e,t){let{slots:n}=t;const r=20,s=2*Math.PI*r,o=X(),{themeClasses:l}=en(e),{sizeClasses:u,sizeStyles:f}=Ja(e),{textColorClasses:d,textColorStyles:h}=xr(Se(e,"color")),{textColorClasses:m,textColorStyles:v}=xr(Se(e,"bgColor")),{intersectionRef:p,isIntersecting:b}=c_(),{resizeRef:S,contentRect:T}=Es(),x=P(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),w=P(()=>Number(e.width)),C=P(()=>f.value?Number(e.size):T.value?T.value.width:Math.max(w.value,32)),V=P(()=>r/(1-w.value/C.value)*2),I=P(()=>w.value/C.value*V.value),M=P(()=>Ae((100-x.value)/100*s));return Tr(()=>{p.value=o.value,S.value=o.value}),Be(()=>y(e.tag,{ref:o,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":b.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},l.value,u.value,d.value],style:[f.value,h.value],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:x.value},{default:()=>[y("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${V.value} ${V.value}`},[y("circle",{class:["v-progress-circular__underlay",m.value],style:v.value,fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":I.value,"stroke-dasharray":s,"stroke-dashoffset":0},null),y("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":I.value,"stroke-dasharray":s,"stroke-dashoffset":M.value},null)]),n.default&&y("div",{class:"v-progress-circular__content"},[n.default({value:x.value})])]})),{}}});const Jd=Symbol("rippleStop"),G3=80;function q1(e,t){e.style.transform=t,e.style.webkitTransform=t}function Qd(e){return e.constructor.name==="TouchEvent"}function d_(e){return e.constructor.name==="KeyboardEvent"}const j3=function(e,t){var m;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,s=0;if(!d_(e)){const v=t.getBoundingClientRect(),p=Qd(e)?e.touches[e.touches.length-1]:e;r=p.clientX-v.left,s=p.clientY-v.top}let o=0,l=.3;(m=t._ripple)!=null&&m.circle?(l=.15,o=t.clientWidth/2,o=n.center?o:o+Math.sqrt((r-o)**2+(s-o)**2)/4):o=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const u=`${(t.clientWidth-o*2)/2}px`,f=`${(t.clientHeight-o*2)/2}px`,d=n.center?u:`${r-o}px`,h=n.center?f:`${s-o}px`;return{radius:o,scale:l,x:d,y:h,centerX:u,centerY:f}},Fu={show(e,t){var p;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((p=t==null?void 0:t._ripple)!=null&&p.enabled))return;const r=document.createElement("span"),s=document.createElement("span");r.appendChild(s),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:o,scale:l,x:u,y:f,centerX:d,centerY:h}=j3(e,t,n),m=`${o*2}px`;s.className="v-ripple__animation",s.style.width=m,s.style.height=m,t.appendChild(r);const v=window.getComputedStyle(t);v&&v.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),q1(s,`translate(${u}, ${f}) scale3d(${l},${l},${l})`),s.dataset.activated=String(performance.now()),setTimeout(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),q1(s,`translate(${d}, ${h}) scale3d(1,1,1)`)},0)},hide(e){var o;if(!((o=e==null?void 0:e._ripple)!=null&&o.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const r=performance.now()-Number(n.dataset.activated),s=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var u;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((u=n.parentNode)==null?void 0:u.parentNode)===e&&e.removeChild(n.parentNode)},300)},s)}};function h_(e){return typeof e>"u"||!!e}function Oa(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[Jd])){if(e[Jd]=!0,Qd(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||d_(e),n._ripple.class&&(t.class=n._ripple.class),Qd(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Fu.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},G3)}else Fu.show(e,n,t)}}function Y1(e){e[Jd]=!0}function Nn(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Nn(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Fu.hide(t)}}function m_(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let Va=!1;function v_(e){!Va&&(e.keyCode===_1.enter||e.keyCode===_1.space)&&(Va=!0,Oa(e))}function g_(e){Va=!1,Nn(e)}function p_(e){Va&&(Va=!1,Nn(e))}function y_(e,t,n){const{value:r,modifiers:s}=t,o=h_(r);if(o||Fu.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=o,e._ripple.centered=s.center,e._ripple.circle=s.circle,qd(r)&&r.class&&(e._ripple.class=r.class),o&&!n){if(s.stop){e.addEventListener("touchstart",Y1,{passive:!0}),e.addEventListener("mousedown",Y1);return}e.addEventListener("touchstart",Oa,{passive:!0}),e.addEventListener("touchend",Nn,{passive:!0}),e.addEventListener("touchmove",m_,{passive:!0}),e.addEventListener("touchcancel",Nn),e.addEventListener("mousedown",Oa),e.addEventListener("mouseup",Nn),e.addEventListener("mouseleave",Nn),e.addEventListener("keydown",v_),e.addEventListener("keyup",g_),e.addEventListener("blur",p_),e.addEventListener("dragstart",Nn,{passive:!0})}else!o&&n&&b_(e)}function b_(e){e.removeEventListener("mousedown",Oa),e.removeEventListener("touchstart",Oa),e.removeEventListener("touchend",Nn),e.removeEventListener("touchmove",m_),e.removeEventListener("touchcancel",Nn),e.removeEventListener("mouseup",Nn),e.removeEventListener("mouseleave",Nn),e.removeEventListener("keydown",v_),e.removeEventListener("keyup",g_),e.removeEventListener("dragstart",Nn),e.removeEventListener("blur",p_)}function K3(e,t){y_(e,t,!1)}function q3(e){delete e._ripple,b_(e)}function Y3(e,t){if(t.value===t.oldValue)return;const n=h_(t.oldValue);y_(e,t,n)}const tl={mounted:K3,unmounted:q3,updated:Y3},Fo=Ve({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Bo(e){return{dimensionStyles:P(()=>({height:Ae(e.height),maxHeight:Ae(e.maxHeight),maxWidth:Ae(e.maxWidth),minHeight:Ae(e.minHeight),minWidth:Ae(e.minWidth),width:Ae(e.width)}))}}const Z1={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},__=Ve({location:String},"location");function w_(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=Mo();return{locationStyles:P(()=>{if(!e.location)return{};const{side:o,align:l}=Yd(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function u(d){return n?n(d):0}const f={};return o!=="center"&&(t?f[Z1[o]]=`calc(100% - ${u(o)}px)`:f[o]=0),l!=="center"?t?f[Z1[l]]=`calc(100% - ${u(l)}px)`:f[l]=0:(o==="center"?f.top=f.left="50%":f[{top:"left",bottom:"left",left:"top",right:"top"}[o]]="50%",f.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[o]),f})}}const Z3=Pe()({name:"VProgressLinear",props:{absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...__({location:"top"}),...Rr(),...Dt(),...Gt()},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=pt(e,"modelValue"),{isRtl:s}=Mo(),{themeClasses:o}=en(e),{locationStyles:l}=w_(e),{textColorClasses:u,textColorStyles:f}=xr(e,"color"),{backgroundColorClasses:d,backgroundColorStyles:h}=Wn(P(()=>e.bgColor||e.color)),{backgroundColorClasses:m,backgroundColorStyles:v}=Wn(e,"color"),{roundedClasses:p}=Ir(e),{intersectionRef:b,isIntersecting:S}=c_(),T=P(()=>parseInt(e.max,10)),x=P(()=>parseInt(e.height,10)),w=P(()=>parseFloat(e.bufferValue)/T.value*100),C=P(()=>parseFloat(r.value)/T.value*100),V=P(()=>s.value!==e.reverse),I=P(()=>e.indeterminate?"fade-transition":"slide-x-transition"),M=P(()=>e.bgOpacity==null?e.bgOpacity:parseFloat(e.bgOpacity));function O(k){if(!b.value)return;const{left:H,right:z,width:D}=b.value.getBoundingClientRect(),U=V.value?D-k.clientX+(z-D):k.clientX-H;r.value=Math.round(U/D*T.value)}return Be(()=>y(e.tag,{ref:b,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&S.value,"v-progress-linear--reverse":V.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},p.value,o.value],style:{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?Ae(x.value):0,"--v-progress-linear-height":Ae(x.value),...l.value},role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:C.value,onClick:e.clickable&&O},{default:()=>[e.stream&&y("div",{key:"stream",class:["v-progress-linear__stream",u.value],style:{...f.value,[V.value?"left":"right"]:Ae(-x.value),borderTop:`${Ae(x.value/2)} dotted`,opacity:M.value,top:`calc(50% - ${Ae(x.value/4)})`,width:Ae(100-w.value,"%"),"--v-progress-linear-stream-to":Ae(x.value*(V.value?1:-1))}},null),y("div",{class:["v-progress-linear__background",d.value],style:[h.value,{opacity:M.value,width:Ae(e.stream?w.value:100,"%")}]},null),y(Cr,{name:I.value},{default:()=>[e.indeterminate?y("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(k=>y("div",{key:k,class:["v-progress-linear__indeterminate",k,m.value],style:v.value},null))]):y("div",{class:["v-progress-linear__determinate",m.value],style:[v.value,{width:Ae(C.value,"%")}]},null)]}),n.default&&y("div",{class:"v-progress-linear__content"},[n.default({value:C.value,buffer:w.value})])]})),{}}}),um=Ve({loading:[Boolean,String]},"loader");function Sc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gi();return{loaderClasses:P(()=>({[`${t}--loading`]:e.loading}))}}function cm(e,t){var r;let{slots:n}=t;return y("div",{class:`${e.name}__loader`},[((r=n.default)==null?void 0:r.call(n,{color:e.color,isActive:e.active}))||y(Z3,{active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const X3=["static","relative","fixed","absolute","sticky"],J3=Ve({position:{type:String,validator:e=>X3.includes(e)}},"position");function Q3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gi();return{positionClasses:P(()=>e.position?`${t}--${e.position}`:void 0)}}function C_(){var e,t;return(t=(e=vn("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function fm(e,t){const n=Ls("RouterLink"),r=P(()=>!!(e.href||e.to)),s=P(()=>(r==null?void 0:r.value)||C1(t,"click")||C1(e,"click"));if(typeof n=="string")return{isLink:r,isClickable:s,href:Se(e,"href")};const o=e.to?n.useLink(e):void 0;return{isLink:r,isClickable:s,route:o==null?void 0:o.route,navigate:o==null?void 0:o.navigate,isActive:o&&P(()=>{var l,u;return e.exact?(l=o.isExactActive)==null?void 0:l.value:(u=o.isActive)==null?void 0:u.value}),href:P(()=>e.to?o==null?void 0:o.route.value.href:e.href)}}const dm=Ve({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let hd=!1;function e4(e,t){let n=!1,r,s;Yt&&(qt(()=>{window.addEventListener("popstate",o),r=e==null?void 0:e.beforeEach((l,u,f)=>{hd?n?t(f):f():setTimeout(()=>n?t(f):f()),hd=!0}),s=e==null?void 0:e.afterEach(()=>{hd=!1})}),Cn(()=>{window.removeEventListener("popstate",o),r==null||r(),s==null||s()}));function o(l){var u;(u=l.state)!=null&&u.replaced||(n=!0,setTimeout(()=>n=!1))}}function t4(e,t){Fe(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&t&&qt(()=>{t(!0)})},{immediate:!0})}const S_=Ve({active:{type:Boolean,default:void 0},symbol:{type:null,default:u_},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Ct,appendIcon:Ct,block:Boolean,stacked:Boolean,ripple:{type:Boolean,default:!0},...qi(),...Rr(),...Ur(),...Fo(),...pi(),...wc(),...um(),...__(),...J3(),...dm(),...Xa(),...Dt({tag:"button"}),...Gt(),...Zi({variant:"elevated"})},"VBtn"),jt=Pe()({name:"VBtn",directives:{Ripple:tl},props:S_(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=en(e),{borderClasses:o}=Yi(e),{colorClasses:l,colorStyles:u,variantClasses:f}=bc(e),{densityClasses:d}=zr(e),{dimensionStyles:h}=Bo(e),{elevationClasses:m}=yi(e),{loaderClasses:v}=Sc(e),{locationStyles:p}=w_(e),{positionClasses:b}=Q3(e),{roundedClasses:S}=Ir(e),{sizeClasses:T,sizeStyles:x}=Ja(e),w=Cc(e,e.symbol,!1),C=fm(e,n),V=P(()=>{var k;return e.active!==void 0?e.active:C.isLink.value?(k=C.isActive)==null?void 0:k.value:w==null?void 0:w.isSelected.value}),I=P(()=>(w==null?void 0:w.disabled.value)||e.disabled),M=P(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),O=P(()=>{if(e.value!==void 0)return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});return t4(C,w==null?void 0:w.select),Be(()=>{var q,G;const k=C.isLink.value?"a":e.tag,H=!!(e.prependIcon||r.prepend),z=!!(e.appendIcon||r.append),D=!!(e.icon&&e.icon!==!0),U=(w==null?void 0:w.isSelected.value)&&(!C.isLink.value||((q=C.isActive)==null?void 0:q.value))||!w||((G=C.isActive)==null?void 0:G.value);return Kt(y(k,{type:k==="a"?void 0:"button",class:["v-btn",w==null?void 0:w.selectedClass.value,{"v-btn--active":V.value,"v-btn--block":e.block,"v-btn--disabled":I.value,"v-btn--elevated":M.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--stacked":e.stacked},s.value,o.value,U?l.value:void 0,d.value,m.value,v.value,b.value,S.value,T.value,f.value],style:[U?u.value:void 0,h.value,p.value,x.value],disabled:I.value||void 0,href:C.href.value,onClick:ge=>{var fe;I.value||((fe=C.navigate)==null||fe.call(C,ge),w==null||w.toggle())},value:O.value},{default:()=>{var ge;return[yc(!0,"v-btn"),!e.icon&&H&&y("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?y(ln,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):y(dt,{key:"prepend-icon",icon:e.prependIcon},null)]),y("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&D?y(dt,{key:"content-icon",icon:e.icon},null):y(ln,{key:"content-defaults",disabled:!D,defaults:{VIcon:{icon:e.icon}}},r.default)]),!e.icon&&z&&y("span",{key:"append",class:"v-btn__append"},[r.append?y(ln,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):y(dt,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&y("span",{key:"loader",class:"v-btn__loader"},[((ge=r.loader)==null?void 0:ge.call(r))??y(f_,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"23",width:"2"},null)])]}}),[[_r("ripple"),!I.value&&e.ripple,null]])}),{}}});const n4=Ve({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function r4(e,t){const n={},r=s=>()=>{if(!Yt)return Promise.resolve(!0);const o=s==="openDelay";return n.closeDelay&&window.clearTimeout(n.closeDelay),delete n.closeDelay,n.openDelay&&window.clearTimeout(n.openDelay),delete n.openDelay,new Promise(l=>{const u=parseInt(e[s]??0,10);n[s]=window.setTimeout(()=>{t==null||t(o),l(o)},u)})};return{runCloseDelay:r("closeDelay"),runOpenDelay:r("openDelay")}}const eh=Symbol.for("vuetify:v-menu"),i4=Ve({activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...n4()},"v-overlay-activator");function s4(e,t){let{isActive:n,isTop:r}=t;const s=X();let o=!1,l=!1,u=!0;const f=P(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),d=P(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!f.value),{runOpenDelay:h,runCloseDelay:m}=r4(e,C=>{C===(e.openOnHover&&o||f.value&&l)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==C&&(u=!0),n.value=C)}),v={click:C=>{C.stopPropagation(),s.value=C.currentTarget||C.target,n.value=!n.value},mouseenter:C=>{var V;(V=C.sourceCapabilities)!=null&&V.firesTouchEvents||(o=!0,s.value=C.currentTarget||C.target,h())},mouseleave:C=>{o=!1,m()},focus:C=>{Kd&&!C.target.matches(":focus-visible")||(l=!0,C.stopPropagation(),s.value=C.currentTarget||C.target,h())},blur:C=>{l=!1,C.stopPropagation(),m()}},p=P(()=>{const C={};return d.value&&(C.click=v.click),e.openOnHover&&(C.mouseenter=v.mouseenter,C.mouseleave=v.mouseleave),f.value&&(C.focus=v.focus,C.blur=v.blur),C}),b=P(()=>{const C={};if(e.openOnHover&&(C.mouseenter=()=>{o=!0,h()},C.mouseleave=()=>{o=!1,m()}),e.closeOnContentClick){const V=nt(eh,null);C.click=()=>{n.value=!1,V==null||V.closeParents()}}return C}),S=P(()=>{const C={};return e.openOnHover&&(C.mouseenter=()=>{u&&(o=!0,u=!1,h())},C.mouseleave=()=>{o=!1,m()}),C});Fe(r,C=>{C&&(e.openOnHover&&!o&&(!f.value||!l)||f.value&&!l&&(!e.openOnHover||!o))&&(n.value=!1)});const T=X();Tr(()=>{T.value&&qt(()=>{const C=T.value;s.value=yV(C)?C.$el:C})});const x=vn("useActivator");let w;return Fe(()=>!!e.activator,C=>{C&&Yt?(w=ko(),w.run(()=>{o4(e,x,{activatorEl:s,activatorEvents:p})})):w&&w.stop()},{flush:"post",immediate:!0}),Cn(()=>{w==null||w.stop()}),{activatorEl:s,activatorRef:T,activatorEvents:p,contentEvents:b,scrimEvents:S}}function o4(e,t,n){let{activatorEl:r,activatorEvents:s}=n;Fe(()=>e.activator,(f,d)=>{if(d&&f!==d){const h=u(d);h&&l(h)}f&&qt(()=>o())},{immediate:!0}),Fe(()=>e.activatorProps,()=>{o()}),Cn(()=>{l()});function o(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u(),d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;f&&(Object.entries(s.value).forEach(h=>{let[m,v]=h;f.addEventListener(m,v)}),Object.keys(d).forEach(h=>{d[h]==null?f.removeAttribute(h):f.setAttribute(h,d[h])}))}function l(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u(),d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;f&&(Object.entries(s.value).forEach(h=>{let[m,v]=h;f.removeEventListener(m,v)}),Object.keys(d).forEach(h=>{f.removeAttribute(h)}))}function u(){var h,m;let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator,d;if(f)if(f==="parent"){let v=(m=(h=t==null?void 0:t.proxy)==null?void 0:h.$el)==null?void 0:m.parentNode;for(;v.hasAttribute("data-no-activator");)v=v.parentNode;d=v}else typeof f=="string"?d=document.querySelector(f):"$el"in f?d=f.$el:d=f;return r.value=(d==null?void 0:d.nodeType)===Node.ELEMENT_NODE?d:null,r.value}}const xc=Ve({eager:Boolean},"lazy");function hm(e,t){const n=X(!1),r=P(()=>n.value||e.eager||t.value);Fe(t,()=>n.value=!0);function s(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:s}}function md(e,t){return{x:e.x+t.x,y:e.y+t.y}}function a4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function X1(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,s=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,o=n==="top"?0:n==="bottom"?t.height:n;return md({x:s,y:o},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,s=n==="left"?0:n==="right"?t.width:n,o=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return md({x:s,y:o},t)}return md({x:t.width/2,y:t.height/2},t)}const x_={static:c4,connected:d4},l4=Ve({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in x_},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"v-overlay-location-strategies");function u4(e,t){const n=X({}),r=X();Yt&&(Ki(()=>!!(t.isActive.value&&e.locationStrategy),o=>{var l,u;Fe(()=>e.locationStrategy,o),Cn(()=>{r.value=void 0}),typeof e.locationStrategy=="function"?r.value=(l=e.locationStrategy(t,e,n))==null?void 0:l.updateLocation:r.value=(u=x_[e.locationStrategy](t,e,n))==null?void 0:u.updateLocation}),window.addEventListener("resize",s,{passive:!0}),Cn(()=>{window.removeEventListener("resize",s),r.value=void 0}));function s(o){var l;(l=r.value)==null||l.call(r,o)}return{contentStyles:n,updateLocation:r}}function c4(){}function f4(e,t){const n=rm(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function d4(e,t,n){jV(e.activatorEl.value)&&Object.assign(n.value,{position:"fixed"});const{preferredAnchor:s,preferredOrigin:o}=tm(()=>{const b=Yd(t.location,e.isRtl.value),S=t.origin==="overlap"?b:t.origin==="auto"?ud(b):Yd(t.origin,e.isRtl.value);return b.side===S.side&&b.align===cd(S).align?{preferredAnchor:S1(b),preferredOrigin:S1(S)}:{preferredAnchor:b,preferredOrigin:S}}),[l,u,f,d]=["minWidth","minHeight","maxWidth","maxHeight"].map(b=>P(()=>{const S=parseFloat(t[b]);return isNaN(S)?1/0:S})),h=P(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const b=t.offset.split(" ").map(parseFloat);return b.length<2&&b.push(0),b}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let m=!1;const v=new ResizeObserver(()=>{m&&p()});Fe([e.activatorEl,e.contentEl],(b,S)=>{let[T,x]=b,[w,C]=S;w&&v.unobserve(w),T&&v.observe(T),C&&v.unobserve(C),x&&v.observe(x)},{immediate:!0}),Cn(()=>{v.disconnect()});function p(){if(m=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>m=!0)}),!e.activatorEl.value||!e.contentEl.value)return;const b=e.activatorEl.value.getBoundingClientRect(),S=f4(e.contentEl.value,e.isRtl.value),T=Ou(e.contentEl.value),x=12;T.length||(T.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(S.x+=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),S.y+=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const w=T.reduce((D,U)=>{const q=U.getBoundingClientRect(),G=new vo({x:U===document.documentElement?0:q.x,y:U===document.documentElement?0:q.y,width:U.clientWidth,height:U.clientHeight});return D?new vo({x:Math.max(D.left,G.left),y:Math.max(D.top,G.top),width:Math.min(D.right,G.right)-Math.max(D.left,G.left),height:Math.min(D.bottom,G.bottom)-Math.max(D.top,G.top)}):G},void 0);w.x+=x,w.y+=x,w.width-=x*2,w.height-=x*2;let C={anchor:s.value,origin:o.value};function V(D){const U=new vo(S),q=X1(D.anchor,b),G=X1(D.origin,U);let{x:ge,y:fe}=a4(q,G);switch(D.anchor.side){case"top":fe-=h.value[0];break;case"bottom":fe+=h.value[0];break;case"left":ge-=h.value[0];break;case"right":ge+=h.value[0];break}switch(D.anchor.align){case"top":fe-=h.value[1];break;case"bottom":fe+=h.value[1];break;case"left":ge-=h.value[1];break;case"right":ge+=h.value[1];break}return U.x+=ge,U.y+=fe,U.width=Math.min(U.width,f.value),U.height=Math.min(U.height,d.value),{overflows:A1(U,w),x:ge,y:fe}}let I=0,M=0;const O={x:0,y:0},k={x:!1,y:!1};let H=-1;for(;;){if(H++>10){Xd("Infinite loop detected in connectedLocationStrategy");break}const{x:D,y:U,overflows:q}=V(C);I+=D,M+=U,S.x+=D,S.y+=U;{const G=x1(C.anchor),ge=q.x.before||q.x.after,fe=q.y.before||q.y.after;let de=!1;if(["x","y"].forEach(he=>{if(he==="x"&&ge&&!k.x||he==="y"&&fe&&!k.y){const _e={anchor:{...C.anchor},origin:{...C.origin}},me=he==="x"?G==="y"?cd:ud:G==="y"?ud:cd;_e.anchor=me(_e.anchor),_e.origin=me(_e.origin);const{overflows:be}=V(_e);(be[he].before<=q[he].before&&be[he].after<=q[he].after||be[he].before+be[he].after<(q[he].before+q[he].after)/2)&&(C=_e,de=k[he]=!0)}}),de)continue}q.x.before&&(I+=q.x.before,S.x+=q.x.before),q.x.after&&(I-=q.x.after,S.x-=q.x.after),q.y.before&&(M+=q.y.before,S.y+=q.y.before),q.y.after&&(M-=q.y.after,S.y-=q.y.after);{const G=A1(S,w);O.x=w.width-G.x.before-G.x.after,O.y=w.height-G.y.before-G.y.after,I+=G.x.before,S.x+=G.x.before,M+=G.y.before,S.y+=G.y.before}break}const z=x1(C.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${C.anchor.side} ${C.anchor.align}`,transformOrigin:`${C.origin.side} ${C.origin.align}`,top:Ae(vd(M)),left:e.isRtl.value?void 0:Ae(vd(I)),right:e.isRtl.value?Ae(vd(-I)):void 0,minWidth:Ae(z==="y"?Math.min(l.value,b.width):l.value),maxWidth:Ae(J1(xo(O.x,l.value===1/0?0:l.value,f.value))),maxHeight:Ae(J1(xo(O.y,u.value===1/0?0:u.value,d.value)))}),{available:O,contentBox:S}}return Fe(()=>[s.value,o.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>p()),qt(()=>{const b=p();if(!b)return;const{available:S,contentBox:T}=b;T.height>S.y&&requestAnimationFrame(()=>{p(),requestAnimationFrame(()=>{p()})})}),{updateLocation:p}}function vd(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function J1(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let th=!0;const Bu=[];function h4(e){!th||Bu.length?(Bu.push(e),nh()):(th=!1,e(),nh())}let Q1=-1;function nh(){cancelAnimationFrame(Q1),Q1=requestAnimationFrame(()=>{const e=Bu.shift();e&&e(),Bu.length?nh():th=!0})}const gu={none:null,close:g4,block:p4,reposition:y4},m4=Ve({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in gu}},"v-overlay-scroll-strategies");function v4(e,t){if(!Yt)return;let n;Tr(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=ko(),await qt(),n.active&&n.run(()=>{var r;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(r=gu[e.scrollStrategy])==null||r.call(gu,t,e,n)}))}),Cn(()=>{n==null||n.stop()})}function g4(e){function t(n){e.isActive.value=!1}A_(e.activatorEl.value??e.contentEl.value,t)}function p4(e,t){var l;const n=(l=e.root.value)==null?void 0:l.offsetParent,r=[...new Set([...Ou(e.activatorEl.value,t.contained?n:void 0),...Ou(e.contentEl.value,t.contained?n:void 0)])].filter(u=>!u.classList.contains("v-overlay-scroll-blocked")),s=window.innerWidth-document.documentElement.offsetWidth,o=(u=>om(u)&&u)(n||document.documentElement);o&&e.root.value.classList.add("v-overlay--scroll-blocked"),r.forEach((u,f)=>{u.style.setProperty("--v-body-scroll-x",Ae(-u.scrollLeft)),u.style.setProperty("--v-body-scroll-y",Ae(-u.scrollTop)),u.style.setProperty("--v-scrollbar-offset",Ae(s)),u.classList.add("v-overlay-scroll-blocked")}),Cn(()=>{r.forEach((u,f)=>{const d=parseFloat(u.style.getPropertyValue("--v-body-scroll-x")),h=parseFloat(u.style.getPropertyValue("--v-body-scroll-y"));u.style.removeProperty("--v-body-scroll-x"),u.style.removeProperty("--v-body-scroll-y"),u.style.removeProperty("--v-scrollbar-offset"),u.classList.remove("v-overlay-scroll-blocked"),u.scrollLeft=-d,u.scrollTop=-h}),o&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function y4(e,t,n){let r=!1,s=-1,o=-1;function l(u){h4(()=>{var h,m;const f=performance.now();(m=(h=e.updateLocation).value)==null||m.call(h,u),r=(performance.now()-f)/(1e3/60)>2})}o=(typeof requestIdleCallback>"u"?u=>u():requestIdleCallback)(()=>{n.run(()=>{A_(e.activatorEl.value??e.contentEl.value,u=>{r?(cancelAnimationFrame(s),s=requestAnimationFrame(()=>{s=requestAnimationFrame(()=>{l(u)})})):l(u)})})}),Cn(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(o),cancelAnimationFrame(s)})}function A_(e,t){const n=[document,...Ou(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),Cn(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const Do=Ve({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),oi=(e,t)=>{let{slots:n}=t;const{transition:r,...s}=e,{component:o=Cr,...l}=typeof r=="object"?r:{};return mi(o,Oe(typeof r=="string"?{name:r}:l,s),n)};function b4(){if(!Yt)return X(!1);const{ssr:e}=vc();if(e){const t=X(!1);return Gn(()=>{t.value=!0}),t}else return X(!0)}function mm(){const t=vn("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const ey=Symbol.for("vuetify:stack"),ua=Jt([]);function _4(e,t,n){const r=vn("useStack"),s=!n,o=nt(ey,void 0),l=Jt({activeChildren:new Set});kt(ey,l);const u=X(+t.value);Ki(e,()=>{var m;const h=(m=ua.at(-1))==null?void 0:m[1];u.value=h?h+10:+t.value,s&&ua.push([r.uid,u.value]),o==null||o.activeChildren.add(r.uid),Cn(()=>{if(s){const v=Ze(ua).findIndex(p=>p[0]===r.uid);ua.splice(v,1)}o==null||o.activeChildren.delete(r.uid)})});const f=X(!0);s&&Tr(()=>{var m;const h=((m=ua.at(-1))==null?void 0:m[0])===r.uid;setTimeout(()=>f.value=h)});const d=P(()=>!l.activeChildren.size);return{globalTop:Io(f),localTop:d,stackStyles:P(()=>({zIndex:u.value}))}}function w4(e){return{teleportTarget:P(()=>{const n=e.value;if(n===!0||!Yt)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let s=r.querySelector(":scope > .v-overlay-container");return s||(s=document.createElement("div"),s.className="v-overlay-container",r.appendChild(s)),s})}}function C4(){return!0}function E_(e,t,n){if(!e||T_(e,n)===!1)return!1;const r=Ub(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const s=(typeof n.value=="object"&&n.value.include||(()=>[]))();return s.push(t),!s.some(o=>o==null?void 0:o.contains(e.target))}function T_(e,t){return(typeof t.value=="object"&&t.value.closeConditional||C4)(e)}function S4(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;t._clickOutside.lastMousedownWasOutside&&E_(e,t,n)&&setTimeout(()=>{T_(e,n)&&r&&r(e)},0)}function ty(e,t){const n=Ub(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const x4={mounted(e,t){const n=s=>S4(s,e,t),r=s=>{e._clickOutside.lastMousedownWasOutside=E_(s,e,t)};ty(e,s=>{s.addEventListener("click",n,!0),s.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!0}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},unmounted(e,t){e._clickOutside&&(ty(e,n=>{var o;if(!n||!((o=e._clickOutside)!=null&&o[t.instance.$.uid]))return;const{onClick:r,onMousedown:s}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",s,!0)}),delete e._clickOutside[t.instance.$.uid])}};function A4(e){const{modelValue:t,color:n,...r}=e;return y(Cr,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&y("div",Oe({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const vm=Ve({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[String,Boolean],default:!0},zIndex:{type:[Number,String],default:2e3},...i4(),...Fo(),...xc(),...l4(),...m4(),...Gt(),...Do()},"v-overlay"),Du=Pe()({name:"VOverlay",directives:{ClickOutside:x4},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...vm()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:s}=t;const o=pt(e,"modelValue"),l=P({get:()=>o.value,set:_e=>{_e&&e.disabled||(o.value=_e)}}),{teleportTarget:u}=w4(P(()=>e.attach||e.contained)),{themeClasses:f}=en(e),{rtlClasses:d,isRtl:h}=Mo(),{hasContent:m,onAfterLeave:v}=hm(e,l),p=Wn(P(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:b,localTop:S,stackStyles:T}=_4(l,Se(e,"zIndex"),e._disableGlobalStack),{activatorEl:x,activatorRef:w,activatorEvents:C,contentEvents:V,scrimEvents:I}=s4(e,{isActive:l,isTop:S}),{dimensionStyles:M}=Bo(e),O=b4(),{scopeId:k}=mm();Fe(()=>e.disabled,_e=>{_e&&(l.value=!1)});const H=X(),z=X(),{contentStyles:D,updateLocation:U}=u4(e,{isRtl:h,contentEl:z,activatorEl:x,isActive:l});v4(e,{root:H,contentEl:z,activatorEl:x,isActive:l,updateLocation:U});function q(_e){s("click:outside",_e),e.persistent?he():l.value=!1}function G(){return l.value&&b.value}Yt&&Fe(l,_e=>{_e?window.addEventListener("keydown",ge):window.removeEventListener("keydown",ge)},{immediate:!0});function ge(_e){_e.key==="Escape"&&b.value&&(e.persistent?he():l.value=!1)}const fe=C_();Ki(()=>e.closeOnBack,()=>{e4(fe,_e=>{b.value&&l.value?(_e(!1),e.persistent?he():l.value=!1):_e()})});const de=X();Fe(()=>l.value&&(e.absolute||e.contained)&&u.value==null,_e=>{if(_e){const me=GV(H.value);me&&me!==document.scrollingElement&&(de.value=me.scrollTop)}});function he(){e.noClickAnimation||z.value&&ps(z.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:La})}return Be(()=>{var _e;return y(Ke,null,[(_e=n.activator)==null?void 0:_e.call(n,{isActive:l.value,props:Oe({ref:w},uu(C.value),e.activatorProps)}),O.value&&y(f0,{disabled:!u.value,to:u.value},{default:()=>[m.value&&y("div",Oe({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":l.value,"v-overlay--contained":e.contained},f.value,d.value],style:[T.value,{top:Ae(de.value)}],ref:H},k,r),[y(A4,Oe({color:p,modelValue:l.value&&!!e.scrim},uu(I.value)),null),y(oi,{appear:!0,persisted:!0,transition:e.transition,target:x.value,onAfterLeave:()=>{v(),s("afterLeave")}},{default:()=>{var me;return[Kt(y("div",Oe({ref:z,class:["v-overlay__content",e.contentClass],style:[M.value,D.value]},uu(V.value),e.contentProps),[(me=n.default)==null?void 0:me.call(n,{isActive:l})]),[[ar,l.value],[_r("click-outside"),{handler:q,closeConditional:G,include:()=>[x.value]}]])]}})])]})])}),{activatorEl:x,animateClick:he,contentEl:z,globalTop:b,localTop:S,updateLocation:U}}}),gd=Symbol("Forwarded refs");function pd(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function $o(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e[gd]=n,new Proxy(e,{get(s,o){if(Reflect.has(s,o))return Reflect.get(s,o);if(!(typeof o=="symbol"||o.startsWith("__"))){for(const l of n)if(l.value&&Reflect.has(l.value,o)){const u=Reflect.get(l.value,o);return typeof u=="function"?u.bind(l.value):u}}},has(s,o){if(Reflect.has(s,o))return!0;if(typeof o=="symbol"||o.startsWith("__"))return!1;for(const l of n)if(l.value&&Reflect.has(l.value,o))return!0;return!1},getOwnPropertyDescriptor(s,o){var u;const l=Reflect.getOwnPropertyDescriptor(s,o);if(l)return l;if(!(typeof o=="symbol"||o.startsWith("__"))){for(const f of n){if(!f.value)continue;const d=pd(f.value,o)??("_"in f.value?pd((u=f.value._)==null?void 0:u.setupState,o):void 0);if(d)return d}for(const f of n){const d=f.value&&f.value[gd];if(!d)continue;const h=d.slice();for(;h.length;){const m=h.shift(),v=pd(m.value,o);if(v)return v;const p=m.value&&m.value[gd];p&&h.push(...p)}}}}})}const nl=Pe()({name:"VDialog",props:{fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...vm({origin:"center center",scrollStrategy:"block",transition:{component:lm},zIndex:2400})},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=pt(e,"modelValue"),{scopeId:s}=mm(),o=X();function l(f){var m,v;const d=f.relatedTarget,h=f.target;if(d!==h&&((m=o.value)!=null&&m.contentEl)&&((v=o.value)!=null&&v.globalTop)&&![document,o.value.contentEl].includes(h)&&!o.value.contentEl.contains(h)){const p=nm(o.value.contentEl);if(!p.length)return;const b=p[0],S=p[p.length-1];d===b?S.focus():b.focus()}}Yt&&Fe(()=>r.value&&e.retainFocus,f=>{f?document.addEventListener("focusin",l):document.removeEventListener("focusin",l)},{immediate:!0}),Fe(r,async f=>{var d,h;await qt(),f?(d=o.value.contentEl)==null||d.focus({preventScroll:!0}):(h=o.value.activatorEl)==null||h.focus({preventScroll:!0})});const u=P(()=>Oe({"aria-haspopup":"dialog","aria-expanded":String(r.value)},e.activatorProps));return Be(()=>{const[f]=Du.filterProps(e);return y(Du,Oe({ref:o,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable}]},f,{modelValue:r.value,"onUpdate:modelValue":d=>r.value=d,"aria-modal":"true",activatorProps:u.value,role:"dialog"},s),{activator:n.activator,default:function(){for(var d=arguments.length,h=new Array(d),m=0;m<d;m++)h[m]=arguments[m];return y(ln,{root:!0},{default:()=>{var v;return[(v=n.default)==null?void 0:v.call(n,...h)]}})}})}),$o({},o)}}),E4={name:"OPDSDialog",components:{OPDSUrl:H3},data(){return{mdiRss:Qb,opdsV1URL:window.origin+window.CODEX.OPDS_V1_PATH,opdsV2URL:window.origin+window.CODEX.OPDS_V2_PATH}}},T4={id:"opds"};function k4(e,t,n,r,s,o){const l=Ot("OPDSUrl");return se(),je(nl,{"max-width":"30em"},{activator:ie(({props:u})=>[y(jt,Oe({id:"opdsButton",icon:"",size:"small",variant:"plain"},u),{default:ie(()=>[y(dt,null,{default:ie(()=>[ke(ye(s.mdiRss),1)]),_:1}),ke(" OPDS ")]),_:2},1040)]),default:ie(()=>[$("div",T4,[$("h2",null,[y(dt,{size:"x=small",class:"inline"},{default:ie(()=>[ke(ye(s.mdiRss),1)]),_:1}),ke(" OPDS ")]),y(l,{title:"v1.2",url:s.opdsV1URL},null,8,["url"]),y(l,{title:"v2.0",url:s.opdsV2URL,subtitle:"OPDS v2 is experimental and not widely or well supported by clients"},null,8,["url"])])]),_:1})}const P4=st(E4,[["render",k4],["__scopeId","data-v-b21152f5"]]);const R4={name:"SettingsFooter",components:{OPDSDialog:P4},data(){return{mdiOpenInNew:pc,mdiSourceRepository:k3}}},I4={id:"repo",href:"https://github.com/ajslater/codex",title:"Codex Source Repository",target:"_blank"};function L4(e,t,n,r,s,o){const l=Ot("OPDSDialog");return se(),je(e_,{id:"settingsFooter"},{default:ie(()=>[y(l),$("a",I4,[y(dt,{id:"repoIcon",size:"x-small"},{default:ie(()=>[ke(ye(s.mdiSourceRepository),1)]),_:1}),ke(" repository"),y(dt,{color:e.$vuetify.theme.current.colors.iconsInactive,size:"x-small"},{default:ie(()=>[ke(ye(s.mdiOpenInNew),1)]),_:1},8,["color"])])]),_:1})}const k_=st(R4,[["render",L4],["__scopeId","data-v-eff6c877"]]);const O4={name:"ConfirmFooter",props:{confirmText:{type:String,required:!0},disabled:{type:Boolean,default:!1}},emits:["confirm","cancel"]},V4={class:"confirmFooter"};function M4(e,t,n,r,s,o){return se(),Me("footer",V4,[y(jt,{class:"confirmButton",disabled:n.disabled,onClick:t[0]||(t[0]=l=>e.$emit("confirm"))},{default:ie(()=>[ke(ye(n.confirmText),1)]),_:1},8,["disabled"]),y(jt,{class:"cancelButton",onClick:t[1]||(t[1]=l=>e.$emit("cancel"))},{default:ie(()=>[ke("Cancel")]),_:1})])}const Ac=st(O4,[["render",M4],["__scopeId","data-v-1663262a"]]);const F4={name:"SubmitFooter",components:{ConfirmFooter:Ac},props:{verb:{type:String,required:!0},table:{type:String,required:!0},disabled:{type:Boolean,default:!1}},emits:["cancel","submit"],computed:{...At(Tt,{errors:e=>e.form.errors,success:e=>e.form.success})},beforeMount(){this.clearErrors()},methods:{...Wt(Tt,["clearErrors"])}},B4={key:0,class:"errors"},D4={key:1,class:"success"},$4={key:2};function H4(e,t,n,r,s,o){const l=Ac;return se(),Me("footer",null,[$("div",null,[e.errors&&e.errors.length>0?(se(),Me("small",B4,[(se(!0),Me(Ke,null,$r(e.errors,(u,f)=>(se(),Me("div",{key:f},ye(u),1))),128))])):e.success?(se(),Me("small",D4,ye(e.success),1)):(se(),Me("small",$4," "))]),y(l,{"confirm-text":`${n.verb} ${n.table}`,disabled:n.disabled,onConfirm:t[0]||(t[0]=u=>e.$emit("submit")),onCancel:t[1]||(t[1]=u=>e.$emit("cancel"))},null,8,["confirm-text","disabled"])])}const Ho=st(F4,[["render",H4],["__scopeId","data-v-04c721a9"]]);const N4={name:"CloseButton",data(){return{mdiClose:y3}}};function U4(e,t,n,r,s,o){return se(),je(jt,Oe({class:"closeButton",icon:""},e.$attrs),{default:ie(()=>[y(dt,null,{default:ie(()=>[ke(ye(s.mdiClose),1)]),_:1})]),_:1},16)}const P_=st(N4,[["render",U4],["__scopeId","data-v-b81ec955"]]);const R_=Symbol.for("vuetify:form"),z4=Ve({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function W4(e){const t=pt(e,"modelValue"),n=P(()=>e.disabled),r=P(()=>e.readonly),s=X(!1),o=X([]),l=X([]);async function u(){const h=[];let m=!0;l.value=[],s.value=!0;for(const v of o.value){const p=await v.validate();if(p.length>0&&(m=!1,h.push({id:v.id,errorMessages:p})),!m&&e.fastFail)break}return l.value=h,s.value=!1,{valid:m,errors:l.value}}function f(){o.value.forEach(h=>h.reset()),t.value=null}function d(){o.value.forEach(h=>h.resetValidation()),l.value=[],t.value=null}return Fe(o,()=>{let h=0,m=0;const v=[];for(const p of o.value)p.isValid===!1?(m++,v.push({id:p.id,errorMessages:p.errorMessages})):p.isValid===!0&&h++;l.value=v,t.value=m>0?!1:h===o.value.length?!0:null},{deep:!0}),kt(R_,{register:h=>{let{id:m,validate:v,reset:p,resetValidation:b}=h;o.value.some(S=>S.id===m)&&Cs(`Duplicate input name "${m}"`),o.value.push({id:m,validate:v,reset:p,resetValidation:b,isValid:null,errorMessages:[]})},unregister:h=>{o.value=o.value.filter(m=>m.id!==h)},update:(h,m,v)=>{const p=o.value.find(b=>b.id===h);p&&(p.isValid=m,p.errorMessages=v)},isDisabled:n,isReadonly:r,isValidating:s,items:o,validateOn:Se(e,"validateOn")}),{errors:l,isDisabled:n,isReadonly:r,isValidating:s,items:o,validate:u,reset:f,resetValidation:d}}function gm(){return nt(R_,null)}const pm=Pe()({name:"VForm",props:{...z4()},emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const s=W4(e),o=X();function l(f){f.preventDefault(),s.reset()}function u(f){const d=f,h=s.validate();d.then=h.then.bind(h),d.catch=h.catch.bind(h),d.finally=h.finally.bind(h),r("submit",d),d.defaultPrevented||h.then(m=>{var p;let{valid:v}=m;v&&((p=o.value)==null||p.submit())}),d.preventDefault()}return Be(()=>{var f;return y("form",{ref:o,class:"v-form",novalidate:!0,onReset:l,onSubmit:u},[(f=n.default)==null?void 0:f.call(n,s)])}),$o(s,o)}});const $u=Pe()({name:"VDivider",props:{color:String,inset:Boolean,length:[Number,String],thickness:[Number,String],vertical:Boolean,...Gt()},setup(e,t){let{attrs:n}=t;const{themeClasses:r}=en(e),{textColorClasses:s,textColorStyles:o}=xr(Se(e,"color")),l=P(()=>{const u={};return e.length&&(u[e.vertical?"maxHeight":"maxWidth"]=Ae(e.length)),e.thickness&&(u[e.vertical?"borderRightWidth":"borderTopWidth"]=Ae(e.thickness)),u});return Be(()=>y("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},r.value,s.value],style:[l.value,o.value],"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null)),{}}}),rh=Symbol.for("vuetify:list");function I_(){const e=nt(rh,{hasPrepend:X(!1),updateHasPrepend:()=>null}),t={hasPrepend:X(!1),updateHasPrepend:n=>{n&&(t.hasPrepend.value=n)}};return kt(rh,t),e}function L_(){return nt(rh,null)}const G4={open:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(n){const o=new Set;o.add(t);let l=s.get(t);for(;l!=null;)o.add(l),l=s.get(l);return o}else return r.delete(t),r},select:()=>null},O_={open:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(n){let o=s.get(t);for(r.add(t);o!=null&&o!==t;)r.add(o),o=s.get(o);return r}else r.delete(t);return r},select:()=>null},j4={open:O_.open,select:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(!n)return r;const o=[];let l=s.get(t);for(;l!=null;)o.push(l),l=s.get(l);return new Set(o)}},ym=e=>{const t={select:n=>{let{id:r,value:s,selected:o}=n;if(r=Ze(r),e&&!s){const l=Array.from(o.entries()).reduce((u,f)=>{let[d,h]=f;return h==="on"?[...u,d]:u},[]);if(l.length===1&&l[0]===r)return o}return o.set(r,s?"on":"off"),o},in:(n,r,s)=>{let o=new Map;for(const l of n||[])o=t.select({id:l,value:!0,selected:new Map(o),children:r,parents:s});return o},out:n=>{const r=[];for(const[s,o]of n.entries())o==="on"&&r.push(s);return r}};return t},V_=e=>{const t=ym(e);return{select:r=>{let{selected:s,id:o,...l}=r;o=Ze(o);const u=s.has(o)?new Map([[o,s.get(o)]]):new Map;return t.select({...l,id:o,selected:u})},in:(r,s,o)=>{let l=new Map;return r!=null&&r.length&&(l=t.in(r.slice(0,1),s,o)),l},out:(r,s,o)=>t.out(r,s,o)}},K4=e=>{const t=ym(e);return{select:r=>{let{id:s,selected:o,children:l,...u}=r;return s=Ze(s),l.has(s)?o:t.select({id:s,selected:o,children:l,...u})},in:t.in,out:t.out}},q4=e=>{const t=V_(e);return{select:r=>{let{id:s,selected:o,children:l,...u}=r;return s=Ze(s),l.has(s)?o:t.select({id:s,selected:o,children:l,...u})},in:t.in,out:t.out}},Y4=e=>{const t={select:n=>{let{id:r,value:s,selected:o,children:l,parents:u}=n;r=Ze(r);const f=new Map(o),d=[r];for(;d.length;){const m=d.shift();o.set(m,s?"on":"off"),l.has(m)&&d.push(...l.get(m))}let h=u.get(r);for(;h;){const m=l.get(h),v=m.every(b=>o.get(b)==="on"),p=m.every(b=>!o.has(b)||o.get(b)==="off");o.set(h,v?"on":p?"off":"indeterminate"),h=u.get(h)}return e&&!s&&Array.from(o.entries()).reduce((v,p)=>{let[b,S]=p;return S==="on"?[...v,b]:v},[]).length===0?f:o},in:(n,r,s)=>{let o=new Map;for(const l of n||[])o=t.select({id:l,value:!0,selected:new Map(o),children:r,parents:s});return o},out:(n,r)=>{const s=[];for(const[o,l]of n.entries())l==="on"&&!r.has(o)&&s.push(o);return s}};return t},Ma=Symbol.for("vuetify:nested"),M_={id:X(),root:{register:()=>null,unregister:()=>null,parents:X(new Map),children:X(new Map),open:()=>null,openOnSelect:()=>null,select:()=>null,opened:X(new Set),selected:X(new Map),selectedValues:X([])}},Z4=Ve({selectStrategy:[String,Function],openStrategy:[String,Object],opened:Array,selected:Array,mandatory:Boolean},"nested"),X4=e=>{let t=!1;const n=X(new Map),r=X(new Map),s=pt(e,"opened",e.opened,m=>new Set(m),m=>[...m.values()]),o=P(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single-leaf":return q4(e.mandatory);case"leaf":return K4(e.mandatory);case"independent":return ym(e.mandatory);case"single-independent":return V_(e.mandatory);case"classic":default:return Y4(e.mandatory)}}),l=P(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return j4;case"single":return G4;case"multiple":default:return O_}}),u=pt(e,"selected",e.selected,m=>o.value.in(m,n.value,r.value),m=>o.value.out(m,n.value,r.value));Ln(()=>{t=!0});function f(m){const v=[];let p=m;for(;p!=null;)v.unshift(p),p=r.value.get(p);return v}const d=vn("nested"),h={id:X(),root:{opened:s,selected:u,selectedValues:P(()=>{const m=[];for(const[v,p]of u.value.entries())p==="on"&&m.push(v);return m}),register:(m,v,p)=>{v&&m!==v&&r.value.set(m,v),p&&n.value.set(m,[]),v!=null&&n.value.set(v,[...n.value.get(v)||[],m])},unregister:m=>{if(t)return;n.value.delete(m);const v=r.value.get(m);if(v){const p=n.value.get(v)??[];n.value.set(v,p.filter(b=>b!==m))}r.value.delete(m),s.value.delete(m)},open:(m,v,p)=>{d.emit("click:open",{id:m,value:v,path:f(m),event:p});const b=l.value.open({id:m,value:v,opened:new Set(s.value),children:n.value,parents:r.value,event:p});b&&(s.value=b)},openOnSelect:(m,v,p)=>{const b=l.value.select({id:m,value:v,selected:new Map(u.value),opened:new Set(s.value),children:n.value,parents:r.value,event:p});b&&(s.value=b)},select:(m,v,p)=>{d.emit("click:select",{id:m,value:v,path:f(m),event:p});const b=o.value.select({id:m,value:v,selected:new Map(u.value),children:n.value,parents:r.value,event:p});b&&(u.value=b),h.root.openOnSelect(m,v,p)},children:n,parents:r}};return kt(Ma,h),h.root},F_=(e,t)=>{const n=nt(Ma,M_),r=Symbol(ur()),s=P(()=>e.value??r),o={...n,id:s,open:(l,u)=>n.root.open(s.value,l,u),openOnSelect:(l,u)=>n.root.openOnSelect(s.value,l,u),isOpen:P(()=>n.root.opened.value.has(s.value)),parent:P(()=>n.root.parents.value.get(s.value)),select:(l,u)=>n.root.select(s.value,l,u),isSelected:P(()=>n.root.selected.value.get(Ze(s.value))==="on"),isIndeterminate:P(()=>n.root.selected.value.get(s.value)==="indeterminate"),isLeaf:P(()=>!n.root.children.value.get(s.value)),isGroupActivator:n.isGroupActivator};return!n.isGroupActivator&&n.root.register(s.value,n.id.value,t),Ln(()=>{!n.isGroupActivator&&n.root.unregister(s.value)}),t&&kt(Ma,o),o},J4=()=>{const e=nt(Ma,M_);kt(Ma,{...e,isGroupActivator:!0})};function Ec(){const e=X(!1);return Gn(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:P(()=>e.value?void 0:{transition:"none !important"}),isBooted:Io(e)}}const Q4=Vo({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return J4(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),eM=Ve({activeColor:String,color:String,collapseIcon:{type:Ct,default:"$collapse"},expandIcon:{type:Ct,default:"$expand"},prependIcon:Ct,appendIcon:Ct,fluid:Boolean,subgroup:Boolean,value:null,...Dt()},"v-list-group"),ny=Pe()({name:"VListGroup",props:{title:String,...eM()},setup(e,t){let{slots:n}=t;const{isOpen:r,open:s,id:o}=F_(Se(e,"value"),!0),l=P(()=>`v-list-group--id-${String(o.value)}`),u=L_(),{isBooted:f}=Ec();function d(p){s(!r.value,p)}const h=P(()=>({onClick:d,class:"v-list-group__header",id:l.value})),m=P(()=>r.value?e.collapseIcon:e.expandIcon),v=P(()=>({VListItem:{active:r.value,activeColor:e.activeColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&m.value,appendIcon:e.appendIcon||!e.subgroup&&m.value,title:e.title,value:e.value}}));return Be(()=>y(e.tag,{class:["v-list-group",{"v-list-group--prepend":u==null?void 0:u.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value}]},{default:()=>[n.activator&&y(ln,{defaults:v.value},{default:()=>[y(Q4,null,{default:()=>[n.activator({props:h.value,isOpen:r.value})]})]}),y(oi,{transition:{component:Qa},disabled:!f.value},{default:()=>{var p;return[Kt(y("div",{class:"v-list-group__items",role:"group","aria-labelledby":l.value},[(p=n.default)==null?void 0:p.call(n)]),[[ar,r.value]])]}})]})),{}}});function tM(e){return{aspectStyles:P(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const nM=Pe()({name:"VResponsive",props:{aspectRatio:[String,Number],contentClass:String,...Fo()},setup(e,t){let{slots:n}=t;const{aspectStyles:r}=tM(e),{dimensionStyles:s}=Bo(e);return Be(()=>{var o;return y("div",{class:"v-responsive",style:s.value},[y("div",{class:"v-responsive__sizer",style:r.value},null),(o=n.additional)==null?void 0:o.call(n),n.default&&y("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}});function rM(e,t){if(!em)return;const n=t.modifiers||{},r=t.value,{handler:s,options:o}=typeof r=="object"?r:{handler:r,options:{}},l=new IntersectionObserver(function(){var m;let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1?arguments[1]:void 0;const d=(m=e._observe)==null?void 0:m[t.instance.$.uid];if(!d)return;const h=u.some(v=>v.isIntersecting);s&&(!n.quiet||d.init)&&(!n.once||h||d.init)&&s(h,u,f),h&&n.once?B_(e,t):d.init=!0},o);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:l},l.observe(e)}function B_(e,t){var r;const n=(r=e._observe)==null?void 0:r[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const D_={mounted:rM,unmounted:B_},$_=Pe()({name:"VImg",directives:{intersect:D_},props:{aspectRatio:[String,Number],alt:String,cover:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},srcset:String,width:[String,Number],...Do()},emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const s=X(""),o=X(),l=X(e.eager?"loading":"idle"),u=X(),f=X(),d=P(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),h=P(()=>d.value.aspect||u.value/f.value||0);Fe(()=>e.src,()=>{m(l.value!=="idle")}),Fe(h,(k,H)=>{!k&&H&&o.value&&T(o.value)}),za(()=>m());function m(k){if(!(e.eager&&k)&&!(em&&!k&&!e.eager)){if(l.value="loading",d.value.lazySrc){const H=new Image;H.src=d.value.lazySrc,T(H,null)}d.value.src&&qt(()=>{var H,z;if(n("loadstart",((H=o.value)==null?void 0:H.currentSrc)||d.value.src),(z=o.value)!=null&&z.complete){if(o.value.naturalWidth||p(),l.value==="error")return;h.value||T(o.value,null),v()}else h.value||T(o.value),b()})}}function v(){var k;b(),l.value="loaded",n("load",((k=o.value)==null?void 0:k.currentSrc)||d.value.src)}function p(){var k;l.value="error",n("error",((k=o.value)==null?void 0:k.currentSrc)||d.value.src)}function b(){const k=o.value;k&&(s.value=k.currentSrc||k.src)}let S=-1;function T(k){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const z=()=>{clearTimeout(S);const{naturalHeight:D,naturalWidth:U}=k;D||U?(u.value=U,f.value=D):!k.complete&&l.value==="loading"&&H!=null?S=window.setTimeout(z,H):(k.currentSrc.endsWith(".svg")||k.currentSrc.startsWith("data:image/svg+xml"))&&(u.value=1,f.value=1)};z()}const x=P(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),w=()=>{var z;if(!d.value.src||l.value==="idle")return null;const k=y("img",{class:["v-img__img",x.value],src:d.value.src,srcset:d.value.srcset,alt:e.alt,sizes:e.sizes,ref:o,onLoad:v,onError:p},null),H=(z=r.sources)==null?void 0:z.call(r);return y(oi,{transition:e.transition,appear:!0},{default:()=>[Kt(H?y("picture",{class:"v-img__picture"},[H,k]):k,[[ar,l.value==="loaded"]])]})},C=()=>y(oi,{transition:e.transition},{default:()=>[d.value.lazySrc&&l.value!=="loaded"&&y("img",{class:["v-img__img","v-img__img--preload",x.value],src:d.value.lazySrc,alt:e.alt},null)]}),V=()=>r.placeholder?y(oi,{transition:e.transition,appear:!0},{default:()=>[(l.value==="loading"||l.value==="error"&&!r.error)&&y("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,I=()=>r.error?y(oi,{transition:e.transition,appear:!0},{default:()=>[l.value==="error"&&y("div",{class:"v-img__error"},[r.error()])]}):null,M=()=>e.gradient?y("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,O=X(!1);{const k=Fe(h,H=>{H&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{O.value=!0})}),k())})}return Be(()=>Kt(y(nM,{class:["v-img",{"v-img--booting":!O.value}],style:{width:Ae(e.width==="auto"?u.value:e.width)},aspectRatio:h.value,"aria-label":e.alt,role:e.alt?"img":void 0},{additional:()=>y(Ke,null,[y(w,null,null),y(C,null,null),y(M,null,null),y(V,null,null),y(I,null,null)]),default:r.default}),[[_r("intersect"),{handler:m,options:e.options},null,{once:!0}]])),{currentSrc:s,image:o,state:l,naturalWidth:u,naturalHeight:f}}}),iM=Ve({start:Boolean,end:Boolean,icon:Ct,image:String,...Ur(),...Rr(),...Xa(),...Dt(),...Gt(),...Zi({variant:"flat"})},"v-avatar"),Hu=Pe()({name:"VAvatar",props:iM(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=en(e),{colorClasses:s,colorStyles:o,variantClasses:l}=bc(e),{densityClasses:u}=zr(e),{roundedClasses:f}=Ir(e),{sizeClasses:d,sizeStyles:h}=Ja(e);return Be(()=>y(e.tag,{class:["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,s.value,u.value,f.value,d.value,l.value],style:[o.value,h.value]},{default:()=>{var m;return[e.image?y($_,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?y(dt,{key:"icon",icon:e.icon},null):(m=n.default)==null?void 0:m.call(n),yc(!1,"v-avatar")]}})),{}}}),sM=Nb("v-list-item-subtitle"),rl=Nb("v-list-item-title"),Ar=Pe()({name:"VListItem",directives:{Ripple:tl},props:{active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Ct,disabled:Boolean,lines:String,link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Ct,ripple:{type:Boolean,default:!0},subtitle:[String,Number,Boolean],title:[String,Number,Boolean],value:null,onClick:Nr(),onClickOnce:Nr(),...qi(),...Ur(),...Fo(),...pi(),...Rr(),...dm(),...Dt(),...Gt(),...Zi({variant:"text"})},emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:s}=t;const o=fm(e,n),l=P(()=>e.value??o.href.value),{select:u,isSelected:f,isIndeterminate:d,isGroupActivator:h,root:m,parent:v,openOnSelect:p}=F_(l,!1),b=L_(),S=P(()=>{var de;return e.active!==!1&&(e.active||((de=o.isActive)==null?void 0:de.value)||f.value)}),T=P(()=>e.link!==!1&&o.isLink.value),x=P(()=>!e.disabled&&e.link!==!1&&(e.link||o.isClickable.value||e.value!=null&&!!b)),w=P(()=>e.rounded||e.nav),C=P(()=>({color:S.value?e.activeColor??e.color:e.color,variant:e.variant}));Fe(()=>{var de;return(de=o.isActive)==null?void 0:de.value},de=>{de&&v.value!=null&&m.open(v.value,!0),de&&p(de)},{immediate:!0});const{themeClasses:V}=en(e),{borderClasses:I}=Yi(e),{colorClasses:M,colorStyles:O,variantClasses:k}=bc(C),{densityClasses:H}=zr(e),{dimensionStyles:z}=Bo(e),{elevationClasses:D}=yi(e),{roundedClasses:U}=Ir(w),q=P(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),G=P(()=>({isActive:S.value,select:u,isSelected:f.value,isIndeterminate:d.value}));function ge(de){var he;s("click",de),!(h||!x.value)&&((he=o.navigate)==null||he.call(o,de),e.value!=null&&u(!f.value,de))}function fe(de){(de.key==="Enter"||de.key===" ")&&(de.preventDefault(),ge(de))}return Be(()=>{const de=T.value?"a":e.tag,he=!b||f.value||S.value,_e=r.title||e.title,me=r.subtitle||e.subtitle,be=!!(e.appendAvatar||e.appendIcon),le=!!(be||r.append),Ne=!!(e.prependAvatar||e.prependIcon),bt=!!(Ne||r.prepend);return b==null||b.updateHasPrepend(bt),Kt(y(de,{class:["v-list-item",{"v-list-item--active":S.value,"v-list-item--disabled":e.disabled,"v-list-item--link":x.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!bt&&(b==null?void 0:b.hasPrepend.value),[`${e.activeClass}`]:e.activeClass&&S.value},V.value,I.value,he?M.value:void 0,H.value,D.value,q.value,U.value,k.value],style:[he?O.value:void 0,z.value],href:o.href.value,tabindex:x.value?0:void 0,onClick:ge,onKeydown:x.value&&!T.value&&fe},{default:()=>{var Y;return[yc(x.value||S.value,"v-list-item"),bt&&y("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?y(ln,{key:"prepend-defaults",disabled:!Ne,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var Z;return[(Z=r.prepend)==null?void 0:Z.call(r,G.value)]}}):y(Ke,null,[e.prependAvatar&&y(Hu,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&y(dt,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),y("div",{class:"v-list-item__content","data-no-activator":""},[_e&&y(rl,{key:"title"},{default:()=>{var Z;return[((Z=r.title)==null?void 0:Z.call(r,{title:e.title}))??e.title]}}),me&&y(sM,{key:"subtitle"},{default:()=>{var Z;return[((Z=r.subtitle)==null?void 0:Z.call(r,{subtitle:e.subtitle}))??e.subtitle]}}),(Y=r.default)==null?void 0:Y.call(r,G.value)]),le&&y("div",{key:"append",class:"v-list-item__append"},[r.append?y(ln,{key:"append-defaults",disabled:!be,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var Z;return[(Z=r.append)==null?void 0:Z.call(r,G.value)]}}):y(Ke,null,[e.appendIcon&&y(dt,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&y(Hu,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]}}),[[_r("ripple"),x.value&&e.ripple]])}),{}}}),oM=Pe()({name:"VListSubheader",props:{color:String,inset:Boolean,sticky:Boolean,title:String,...Dt()},setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:s}=xr(Se(e,"color"));return Be(()=>{const o=!!(n.default||e.title);return y(e.tag,{class:["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value],style:{textColorStyles:s}},{default:()=>{var l;return[o&&y("div",{class:"v-list-subheader__text"},[((l=n.default)==null?void 0:l.call(n))??e.title])]}})}),{}}}),H_=Pe()({name:"VListChildren",props:{items:Array},setup(e,t){let{slots:n}=t;return I_(),()=>{var r,s;return((r=n.default)==null?void 0:r.call(n))??((s=e.items)==null?void 0:s.map(o=>{var p,b;let{children:l,props:u,type:f,raw:d}=o;if(f==="divider")return((p=n.divider)==null?void 0:p.call(n,{props:u}))??y($u,u,null);if(f==="subheader")return((b=n.subheader)==null?void 0:b.call(n,{props:u}))??y(oM,u,{default:n.subheader});const h={subtitle:n.subtitle?S=>{var T;return(T=n.subtitle)==null?void 0:T.call(n,{...S,item:d})}:void 0,prepend:n.prepend?S=>{var T;return(T=n.prepend)==null?void 0:T.call(n,{...S,item:d})}:void 0,append:n.append?S=>{var T;return(T=n.append)==null?void 0:T.call(n,{...S,item:d})}:void 0,default:n.default?S=>{var T;return(T=n.default)==null?void 0:T.call(n,{...S,item:d})}:void 0,title:n.title?S=>{var T;return(T=n.title)==null?void 0:T.call(n,{...S,item:d})}:void 0},[m,v]=ny.filterProps(u);return l?y(ny,Oe({value:u==null?void 0:u.value},m),{activator:S=>{let{props:T}=S;return n.header?n.header({props:{...u,...T}}):y(Ar,Oe(u,T),h)},default:()=>y(H_,{items:l},n)}):n.item?n.item(u):y(Ar,u,h)}))}}}),bm=Ve({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean},"item");function lo(e,t){const n=or(t,e.itemTitle,t),r=e.returnObject?t:or(t,e.itemValue,n),s=or(t,e.itemChildren),o=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?Ya(t,["children"])[1]:t:void 0:or(t,e.itemProps),l={title:n,value:r,...o};return{title:String(l.title??""),value:l.value,props:l,children:Array.isArray(s)?N_(e,s):void 0,raw:t}}function N_(e,t){const n=[];for(const r of t)n.push(lo(e,r));return n}function _m(e){const t=P(()=>N_(e,e.items));function n(s){return s.map(o=>t.value.find(u=>Os(o,u.value))??lo(e,o))}function r(s){return s.map(o=>{let{props:l}=o;return l.value})}return{items:t,transformIn:n,transformOut:r}}function aM(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function lM(e,t){const n=or(t,e.itemType,"item"),r=aM(t)?t:or(t,e.itemTitle),s=or(t,e.itemValue,void 0),o=or(t,e.itemChildren),l=e.itemProps===!0?Ya(t,["children"])[1]:or(t,e.itemProps),u={title:r,value:s,...l};return{type:n,title:u.title,value:u.value,props:u,children:n==="item"&&o?U_(e,o):void 0,raw:t}}function U_(e,t){const n=[];for(const r of t)n.push(lM(e,r));return n}function uM(e){return{items:P(()=>U_(e,e.items))}}const z_=Pe()({name:"VList",props:{activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,lines:{type:[Boolean,String],default:"one"},nav:Boolean,...Z4({selectStrategy:"single-leaf",openStrategy:"list"}),...qi(),...Ur(),...Fo(),...pi(),itemType:{type:String,default:"type"},...bm(),...Rr(),...Dt(),...Gt(),...Zi({variant:"text"})},emits:{"update:selected":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=uM(e),{themeClasses:s}=en(e),{backgroundColorClasses:o,backgroundColorStyles:l}=Wn(Se(e,"bgColor")),{borderClasses:u}=Yi(e),{densityClasses:f}=zr(e),{dimensionStyles:d}=Bo(e),{elevationClasses:h}=yi(e),{roundedClasses:m}=Ir(e),{open:v,select:p}=X4(e),b=P(()=>e.lines?`v-list--${e.lines}-line`:void 0),S=Se(e,"activeColor"),T=Se(e,"color");I_(),Kn({VListGroup:{activeColor:S,color:T},VListItem:{activeClass:Se(e,"activeClass"),activeColor:S,color:T,density:Se(e,"density"),disabled:Se(e,"disabled"),lines:Se(e,"lines"),nav:Se(e,"nav"),variant:Se(e,"variant")}});const x=X(!1),w=X();function C(k){x.value=!0}function V(k){x.value=!1}function I(k){var H;!x.value&&!(k.relatedTarget&&((H=w.value)!=null&&H.contains(k.relatedTarget)))&&O()}function M(k){if(w.value){if(k.key==="ArrowDown")O("next");else if(k.key==="ArrowUp")O("prev");else if(k.key==="Home")O("first");else if(k.key==="End")O("last");else return;k.preventDefault()}}function O(k){if(w.value)return Ob(w.value,k)}return Be(()=>y(e.tag,{ref:w,class:["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav},s.value,o.value,u.value,f.value,h.value,b.value,m.value],style:[l.value,d.value],role:"listbox","aria-activedescendant":void 0,onFocusin:C,onFocusout:V,onFocus:I,onKeydown:M},{default:()=>[y(H_,{items:r.value},n)]})),{open:v,select:p,focus:O}}});function W_(e){const{t}=Vs();function n(r){let{name:s}=r;const o={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[s],l=e[`onClick:${s}`],u=l&&o?t(`$vuetify.input.${o}`,e.label??""):void 0;return y(dt,{icon:e[`${s}Icon`],"aria-label":u,onClick:l},null)}return{InputIcon:n}}const G_=Pe()({name:"VLabel",props:{text:String,clickable:Boolean,...Gt()},setup(e,t){let{slots:n}=t;return Be(()=>{var r;return y("label",{class:["v-label",{"v-label--clickable":e.clickable}]},[e.text,(r=n.default)==null?void 0:r.call(n)])}),{}}}),au=Pe()({name:"VFieldLabel",props:{floating:Boolean},setup(e,t){let{slots:n}=t;return Be(()=>y(G_,{class:["v-field-label",{"v-field-label--floating":e.floating}],"aria-hidden":e.floating||void 0},n)),{}}}),j_=Ve({focused:Boolean,"onUpdate:focused":Nr()},"focus");function Tc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gi();const n=pt(e,"focused"),r=P(()=>({[`${t}--focused`]:n.value}));function s(){n.value=!0}function o(){n.value=!1}return{focusClasses:r,isFocused:n,focus:s,blur:o}}const cM=["underlined","outlined","filled","solo","plain"],K_=Ve({appendInnerIcon:Ct,bgColor:String,clearable:Boolean,clearIcon:{type:Ct,default:"$clear"},active:Boolean,color:String,dirty:Boolean,disabled:Boolean,error:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:Ct,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>cM.includes(e)},"onClick:clear":Nr(),"onClick:appendInner":Nr(),"onClick:prependInner":Nr(),...Gt(),...um()},"v-field"),q_=Pe()({name:"VField",inheritAttrs:!1,props:{id:String,...j_(),...K_()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:s}=t;const{themeClasses:o}=en(e),{loaderClasses:l}=Sc(e),{focusClasses:u,isFocused:f,focus:d,blur:h}=Tc(e),{InputIcon:m}=W_(e),v=P(()=>e.dirty||e.active),p=P(()=>!e.singleLine&&!!(e.label||s.label)),b=ur(),S=P(()=>e.id||`input-${b}`),T=P(()=>`${S.value}-messages`),x=X(),w=X(),C=X(),{backgroundColorClasses:V,backgroundColorStyles:I}=Wn(Se(e,"bgColor")),{textColorClasses:M,textColorStyles:O}=xr(P(()=>v.value&&f.value&&!e.error&&!e.disabled?e.color:void 0));Fe(v,z=>{if(p.value){const D=x.value.$el,U=w.value.$el;requestAnimationFrame(()=>{const q=rm(D),G=U.getBoundingClientRect(),ge=G.x-q.x,fe=G.y-q.y-(q.height/2-G.height/2),de=G.width/.75,he=Math.abs(de-q.width)>1?{maxWidth:Ae(de)}:void 0,_e=getComputedStyle(D),me=getComputedStyle(U),be=parseFloat(_e.transitionDuration)*1e3||150,le=parseFloat(me.getPropertyValue("--v-field-label-scale")),Ne=me.getPropertyValue("color");D.style.visibility="visible",U.style.visibility="hidden",ps(D,{transform:`translate(${ge}px, ${fe}px) scale(${le})`,color:Ne,...he},{duration:be,easing:La,direction:z?"normal":"reverse"}).finished.then(()=>{D.style.removeProperty("visibility"),U.style.removeProperty("visibility")})})}},{flush:"post"});const k=P(()=>({isActive:v,isFocused:f,controlRef:C,blur:h,focus:d}));function H(z){z.target!==document.activeElement&&z.preventDefault()}return Be(()=>{var ge,fe,de;const z=e.variant==="outlined",D=s["prepend-inner"]||e.prependInnerIcon,U=!!(e.clearable||s.clear),q=!!(s["append-inner"]||e.appendInnerIcon||U),G=s.label?s.label({label:e.label,props:{for:S.value}}):e.label;return y("div",Oe({class:["v-field",{"v-field--active":v.value,"v-field--appended":q,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":D,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!G,[`v-field--variant-${e.variant}`]:!0},o.value,V.value,u.value,l.value],style:[I.value,O.value],onClick:H},n),[y("div",{class:"v-field__overlay"},null),y(cm,{name:"v-field",active:!!e.loading,color:e.error?"error":e.color},{default:s.loader}),D&&y("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&y(m,{key:"prepend-icon",name:"prependInner"},null),(ge=s["prepend-inner"])==null?void 0:ge.call(s,k.value)]),y("div",{class:"v-field__field","data-no-activator":""},[["solo","filled"].includes(e.variant)&&p.value&&y(au,{key:"floating-label",ref:w,class:[M.value],floating:!0,for:S.value},{default:()=>[G]}),y(au,{ref:x,for:S.value},{default:()=>[G]}),(fe=s.default)==null?void 0:fe.call(s,{...k.value,props:{id:S.value,class:"v-field__input","aria-describedby":T.value},focus:d,blur:h})]),U&&y(o_,{key:"clear"},{default:()=>[Kt(y("div",{class:"v-field__clearable",onMousedown:he=>{he.preventDefault(),he.stopPropagation()}},[s.clear?s.clear():y(m,{name:"clear"},null)]),[[ar,e.dirty]])]}),q&&y("div",{key:"append",class:"v-field__append-inner"},[(de=s["append-inner"])==null?void 0:de.call(s,k.value),e.appendInnerIcon&&y(m,{key:"append-icon",name:"appendInner"},null)]),y("div",{class:["v-field__outline",M.value]},[z&&y(Ke,null,[y("div",{class:"v-field__outline__start"},null),p.value&&y("div",{class:"v-field__outline__notch"},[y(au,{ref:w,floating:!0,for:S.value},{default:()=>[G]})]),y("div",{class:"v-field__outline__end"},null)]),["plain","underlined"].includes(e.variant)&&p.value&&y(au,{ref:w,floating:!0,for:S.value},{default:()=>[G]})])])}),{controlRef:C}}});function fM(e){const t=Object.keys(q_.props).filter(n=>!CV(n));return Ya(e,t)}const dM=Pe()({name:"VMessages",props:{active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...Do({transition:{component:s_,leaveAbsolute:!0,group:!0}})},setup(e,t){let{slots:n}=t;const r=P(()=>Hr(e.messages)),{textColorClasses:s,textColorStyles:o}=xr(P(()=>e.color));return Be(()=>y(oi,{transition:e.transition,tag:"div",class:["v-messages",s.value],style:o.value,role:"alert","aria-live":"polite"},{default:()=>[e.active&&r.value.map((l,u)=>y("div",{class:"v-messages__message",key:`${u}-${r.value}`},[n.message?n.message({message:l}):l]))]})),{}}}),hM=Ve({disabled:Boolean,error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:Boolean,rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...j_()},"validation");function mM(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gi(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ur();const r=pt(e,"modelValue"),s=P(()=>e.validationValue===void 0?r.value:e.validationValue),o=gm(),l=X([]),u=X(!0),f=P(()=>!!(Hr(r.value===""?null:r.value).length||Hr(s.value===""?null:s.value).length)),d=P(()=>!!(e.disabled||o!=null&&o.isDisabled.value)),h=P(()=>!!(e.readonly||o!=null&&o.isReadonly.value)),m=P(()=>e.errorMessages.length?Hr(e.errorMessages).slice(0,Math.max(0,+e.maxErrors)):l.value),v=P(()=>e.error||m.value.length?!1:e.rules.length&&u.value?null:!0),p=X(!1),b=P(()=>({[`${t}--error`]:v.value===!1,[`${t}--dirty`]:f.value,[`${t}--disabled`]:d.value,[`${t}--readonly`]:h.value})),S=P(()=>e.name??dn(n));za(()=>{o==null||o.register({id:S.value,validate:C,reset:x,resetValidation:w})}),Ln(()=>{o==null||o.unregister(S.value)});const T=P(()=>e.validateOn||(o==null?void 0:o.validateOn.value)||"input");Gn(()=>o==null?void 0:o.update(S.value,v.value,m.value)),Ki(()=>T.value==="input",()=>{Fe(s,()=>{if(s.value!=null)C();else if(e.focused){const V=Fe(()=>e.focused,I=>{I||C(),V()})}})}),Ki(()=>T.value==="blur",()=>{Fe(()=>e.focused,V=>{V||C()})}),Fe(v,()=>{o==null||o.update(S.value,v.value,m.value)});function x(){w(),r.value=null}function w(){u.value=!0,l.value=[]}async function C(){const V=[];p.value=!0;for(const I of e.rules){if(V.length>=+(e.maxErrors??1))break;const O=await(typeof I=="function"?I:()=>I)(s.value);if(O!==!0){if(typeof O!="string"){console.warn(`${O} is not a valid value. Rule functions must return boolean true or a string.`);continue}V.push(O)}}return l.value=V,p.value=!1,u.value=!1,l.value}return{errorMessages:m,isDirty:f,isDisabled:d,isReadonly:h,isPristine:u,isValid:v,isValidating:p,reset:x,resetValidation:w,validate:C,validationClasses:b}}const kc=Ve({id:String,appendIcon:Ct,prependIcon:Ct,hideDetails:[Boolean,String],hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":Nr(),"onClick:append":Nr(),...Ur(),...hM()},"v-input"),Ao=Pe()({name:"VInput",props:{...kc()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r,emit:s}=t;const{densityClasses:o}=zr(e),{InputIcon:l}=W_(e),u=ur(),f=P(()=>e.id||`input-${u}`),d=P(()=>`${f.value}-messages`),{errorMessages:h,isDirty:m,isDisabled:v,isReadonly:p,isPristine:b,isValid:S,isValidating:T,reset:x,resetValidation:w,validate:C,validationClasses:V}=mM(e,"v-input",f),I=P(()=>({id:f,messagesId:d,isDirty:m,isDisabled:v,isReadonly:p,isPristine:b,isValid:S,isValidating:T,reset:x,resetValidation:w,validate:C})),M=P(()=>h.value.length>0?h.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages);return Be(()=>{var D,U,q,G;const O=!!(r.prepend||e.prependIcon),k=!!(r.append||e.appendIcon),H=M.value.length>0,z=!e.hideDetails||e.hideDetails==="auto"&&(H||!!r.details);return y("div",{class:["v-input",`v-input--${e.direction}`,o.value,V.value]},[O&&y("div",{key:"prepend",class:"v-input__prepend"},[(D=r.prepend)==null?void 0:D.call(r,I.value),e.prependIcon&&y(l,{key:"prepend-icon",name:"prepend"},null)]),r.default&&y("div",{class:"v-input__control"},[(U=r.default)==null?void 0:U.call(r,I.value)]),k&&y("div",{key:"append",class:"v-input__append"},[e.appendIcon&&y(l,{key:"append-icon",name:"append"},null),(q=r.append)==null?void 0:q.call(r,I.value)]),z&&y("div",{class:"v-input__details"},[y(dM,{id:d.value,active:H,messages:M.value},{message:r.message}),(G=r.details)==null?void 0:G.call(r,I.value)])])}),{reset:x,resetValidation:w,validate:C}}});const vM=Pe()({name:"VCounter",functional:!0,props:{active:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Do({transition:{component:s_}})},setup(e,t){let{slots:n}=t;const r=P(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return Be(()=>y(oi,{transition:e.transition},{default:()=>[Kt(y("div",{class:"v-counter"},[n.default?n.default({counter:r.value,max:e.max,value:e.value}):r.value]),[[ar,e.active]])]})),{}}}),gM=["color","file","time","date","datetime-local","week","month"],wm=Ve({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,type:{type:String,default:"text"},modelModifiers:Object,...kc(),...K_()},"v-text-field"),wn=Pe()({name:"VTextField",directives:{Intersect:D_},inheritAttrs:!1,props:wm(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:s}=t;const o=pt(e,"modelValue"),{isFocused:l,focus:u,blur:f}=Tc(e),d=P(()=>typeof e.counterValue=="function"?e.counterValue(o.value):(o.value??"").toString().length),h=P(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter});function m(I,M){var O,k;!e.autofocus||!I||(k=(O=M[0].target)==null?void 0:O.focus)==null||k.call(O)}const v=X(),p=X(),b=X(),S=P(()=>gM.includes(e.type)||e.persistentPlaceholder||l.value);function T(){var I;b.value!==document.activeElement&&((I=b.value)==null||I.focus()),l.value||u()}function x(I){r("mousedown:control",I),I.target!==b.value&&(T(),I.preventDefault())}function w(I){T(),r("click:control",I)}function C(I){I.stopPropagation(),T(),qt(()=>{o.value=null,SV(e["onClick:clear"],I)})}function V(I){var O;const M=I.target;if(o.value=M.value,(O=e.modelModifiers)!=null&&O.trim&&["text","search","password","tel","url"].includes(e.type)){const k=[M.selectionStart,M.selectionEnd];qt(()=>{M.selectionStart=k[0],M.selectionEnd=k[1]})}}return Be(()=>{const I=!!(s.counter||e.counter||e.counterValue),M=!!(I||s.details),[O,k]=mc(n),[{modelValue:H,...z}]=Ao.filterProps(e),[D]=fM(e);return y(Ao,Oe({ref:v,modelValue:o.value,"onUpdate:modelValue":U=>o.value=U,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-text-field--flush-details":["plain","underlined"].includes(e.variant)}]},O,z,{focused:l.value}),{...s,default:U=>{let{id:q,isDisabled:G,isDirty:ge,isReadonly:fe,isValid:de}=U;return y(q_,Oe({ref:p,onMousedown:x,onClick:w,"onClick:clear":C,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:"textbox"},D,{id:q.value,active:S.value||ge.value,dirty:ge.value||e.dirty,disabled:G.value,focused:l.value,error:de.value===!1}),{...s,default:he=>{let{props:{class:_e,...me}}=he;const be=Kt(y("input",Oe({ref:b,value:o.value,onInput:V,autofocus:e.autofocus,readonly:fe.value,disabled:G.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:T,onBlur:f},me,k),null),[[_r("intersect"),{handler:m},null,{once:!0}]]);return y(Ke,null,[e.prefix&&y("span",{class:"v-text-field__prefix"},[e.prefix]),s.default?y("div",{class:_e,"data-no-activator":""},[s.default(),be]):wr(be,{class:_e}),e.suffix&&y("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:M?U=>{var q;return y(Ke,null,[(q=s.details)==null?void 0:q.call(s,U),I&&y(Ke,null,[y("span",null,null),y(vM,{active:e.persistentCounter||l.value,value:d.value,max:h.value},s.counter)])])}:void 0})}),$o({},v,p,b)}}),pM={name:"ChangePasswordDialog",components:{SubmitFooter:Ho,CloseButton:P_},props:{user:{type:Object,required:!0},isAdminMode:{type:Boolean,default:!1},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{rules:{oldPassword:[e=>!!e||"Old Password is required"],password:[e=>e?e.length<this.MIN_PASSWORD_LENGTH?`Password must be ${this.MIN_PASSWORD_LENGTH} characters long`:e===this.credentials.oldPassword?"New password must be different than old password":!0:"New Password is required"],passwordConfirm:[e=>e===this.credentials.password||"Passwords must match"]},credentials:{oldPassword:"",password:"",passwordConfirm:""},submitButtonEnabled:!1,showDialog:!1,mdiLockReset:S3,mdiLockPlusOutline:C3}},computed:{...At(Tt,{formErrors:e=>e.form.errors,formSuccess:e=>e.form.success,MIN_PASSWORD_LEN:e=>e.MIN_PASSWORD_LEN})},watch:{showDialog(e){if(e){const t=this.$refs.form;t&&t.reset(),this.clearErrors()}},credentials:{handler(){const e=this.$refs.form;if(!e){this.submitButtonEnabled=!1;return}e.validate().then(({valid:t})=>this.submitButtonEnabled=t).catch(()=>{this.submitButtonEnabled=!1})},deep:!0}},mounted(){window.addEventListener("keyup",this._keyListener)},beforeUnmount(){window.removeEventListener("keyup",this._keyListener)},methods:{...Wt(Sn,["changePassword"]),...Wt(Tt,["clearErrors"]),doUserChange(){return mt().changeUserPassword(this.user.pk,this.credentials).catch(console.error)},doSelfChange(){return this.changePassword(this.credentials).catch(console.error)},submit(){const e=this.$refs.form;e&&e.validate().then(({valid:t})=>{if(t)return this.isAdminMode?this.doUserChange():this.doSelfChange()}).catch(console.error)},_keyListener(e){e.stopImmediatePropagation()}}},yM={key:0,class:"codexFormSuccess"},bM=["value"];function _M(e,t,n,r,s,o){const l=P_,u=Ho;return n.user?(se(),je(nl,{key:0,modelValue:s.showDialog,"onUpdate:modelValue":t[7]||(t[7]=f=>s.showDialog=f),origin:"center-top",transition:"slide-y-transition","max-width":"22em"},{activator:ie(({props:f})=>[n.isAdminMode?(se(),je(jt,Oe({key:0,icon:""},f,{size:n.size,density:n.density,title:"Change Password"}),{default:ie(()=>[y(dt,null,{default:ie(()=>[ke(ye(s.mdiLockPlusOutline),1)]),_:1})]),_:2},1040,["size","density"])):(se(),je(Ar,dh(Oe({key:1},f)),{default:ie(()=>[y(rl,null,{default:ie(()=>[y(dt,null,{default:ie(()=>[ke(ye(s.mdiLockReset),1)]),_:1}),ke("Change Password ")]),_:1})]),_:2},1040))]),default:ie(()=>[e.formSuccess?(se(),Me("div",yM,[ke(ye(e.formSuccess)+" ",1),y(l,{onClick:t[0]||(t[0]=f=>s.showDialog=!1)})])):(se(),je(pm,{key:1,ref:"form",class:"changePasswordForm"},{default:ie(()=>[$("h2",null,"User "+ye(n.user.username),1),$("input",{name:"username",autocomplete:"username",disabled:"",type:"text",class:"hidden",value:n.user.username},null,8,bM),n.isAdminMode?It("",!0):(se(),je(wn,{key:0,ref:"oldPassword",modelValue:s.credentials.oldPassword,"onUpdate:modelValue":t[1]||(t[1]=f=>s.credentials.oldPassword=f),autocomplete:"current-password",label:"Old Password",rules:s.rules.oldPassword,clearable:"",type:"password",autofocus:"",onKeydown:t[2]||(t[2]=ui(f=>e.$refs.password.focus(),["enter"]))},null,8,["modelValue","rules"])),y(wn,{ref:"password",modelValue:s.credentials.password,"onUpdate:modelValue":t[3]||(t[3]=f=>s.credentials.password=f),autocomplete:"new-password",label:"New Password",rules:s.rules.password,clearable:"",type:"password",autofocus:n.isAdminMode,onKeydown:t[4]||(t[4]=ui(f=>e.$refs.passwordConfirm.focus(),["enter"]))},null,8,["modelValue","rules","autofocus"]),y(wn,{ref:"passwordConfirm",modelValue:s.credentials.passwordConfirm,"onUpdate:modelValue":t[5]||(t[5]=f=>s.credentials.passwordConfirm=f),autocomplete:"new-password",label:"Confirm Password",rules:s.rules.passwordConfirm,clearable:"",type:"password"},null,8,["modelValue","rules"]),y(u,{verb:"Change",table:"Password",disabled:!s.submitButtonEnabled,onSubmit:o.submit,onCancel:t[6]||(t[6]=f=>s.showDialog=!1)},null,8,["disabled","onSubmit"])]),_:1},512))]),_:1},8,["modelValue"])):It("",!0)}const Pc=st(pM,[["render",_M],["__scopeId","data-v-19b56e24"]]);const Y_=Symbol.for("vuetify:selection-control-group"),Z_=Ve({color:String,disabled:Boolean,error:Boolean,id:String,inline:Boolean,falseIcon:Ct,trueIcon:Ct,ripple:{type:Boolean,default:!0},multiple:{type:Boolean,default:null},name:String,readonly:Boolean,modelValue:null,type:String,valueComparator:{type:Function,default:Os},...Gt(),...Ur()},"v-selection-control-group"),j8=Pe()({name:"VSelectionControlGroup",props:{defaultsTarget:{type:String,default:"VSelectionControl"},...Z_()},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=pt(e,"modelValue"),s=ur(),o=P(()=>e.id||`v-selection-control-group-${s}`),l=P(()=>e.name||o.value),u=new Set;return kt(Y_,{modelValue:r,forceUpdate:()=>{u.forEach(f=>f())},onForceUpdate:f=>{u.add(f),Cn(()=>{u.delete(f)})}}),Kn({[e.defaultsTarget]:{color:Se(e,"color"),disabled:Se(e,"disabled"),density:Se(e,"density"),error:Se(e,"error"),inline:Se(e,"inline"),modelValue:r,multiple:P(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),name:l,falseIcon:Se(e,"falseIcon"),trueIcon:Se(e,"trueIcon"),readonly:Se(e,"readonly"),ripple:Se(e,"ripple"),type:Se(e,"type"),valueComparator:Se(e,"valueComparator")}}),Be(()=>{var f;return y("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":e.inline}],role:e.type==="radio"?"radiogroup":void 0},[(f=n.default)==null?void 0:f.call(n)])}),{}}}),Cm=Ve({label:String,trueValue:null,falseValue:null,value:null,...Z_()},"v-selection-control");function wM(e){const t=nt(Y_,void 0),{densityClasses:n}=zr(e),r=pt(e,"modelValue"),s=P(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),o=P(()=>e.falseValue!==void 0?e.falseValue:!1),l=P(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),u=P({get(){const m=t?t.modelValue.value:r.value;return l.value?m.some(v=>e.valueComparator(v,s.value)):e.valueComparator(m,s.value)},set(m){if(e.readonly)return;const v=m?s.value:o.value;let p=v;l.value&&(p=m?[...Hr(r.value),v]:Hr(r.value).filter(b=>!e.valueComparator(b,s.value))),t?t.modelValue.value=p:r.value=p}}),{textColorClasses:f,textColorStyles:d}=xr(P(()=>u.value&&!e.error&&!e.disabled?e.color:void 0)),h=P(()=>u.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:n,trueValue:s,falseValue:o,model:u,textColorClasses:f,textColorStyles:d,icon:h}}const ih=Pe()({name:"VSelectionControl",directives:{Ripple:tl},inheritAttrs:!1,props:Cm(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{group:s,densityClasses:o,icon:l,model:u,textColorClasses:f,textColorStyles:d,trueValue:h}=wM(e),m=ur(),v=P(()=>e.id||`input-${m}`),p=X(!1),b=X(!1),S=X();s==null||s.onForceUpdate(()=>{S.value&&(S.value.checked=u.value)});function T(C){p.value=!0,(!Kd||Kd&&C.target.matches(":focus-visible"))&&(b.value=!0)}function x(){p.value=!1,b.value=!1}function w(C){e.readonly&&s&&qt(()=>s.forceUpdate()),u.value=C.target.checked}return Be(()=>{var M,O;const C=r.label?r.label({label:e.label,props:{for:v.value}}):e.label,[V,I]=mc(n);return y("div",Oe({class:["v-selection-control",{"v-selection-control--dirty":u.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":p.value,"v-selection-control--focus-visible":b.value,"v-selection-control--inline":e.inline},o.value]},V),[y("div",{class:["v-selection-control__wrapper",f.value],style:d.value},[(M=r.default)==null?void 0:M.call(r),Kt(y("div",{class:["v-selection-control__input"]},[l.value&&y(dt,{key:"icon",icon:l.value},null),y("input",Oe({ref:S,checked:u.value,disabled:e.disabled,id:v.value,onBlur:x,onFocus:T,onInput:w,"aria-disabled":e.readonly,type:e.type,value:h.value,name:e.name,"aria-checked":e.type==="checkbox"?u.value:void 0},I),null),(O=r.input)==null?void 0:O.call(r,{model:u,textColorClasses:f,textColorStyles:d,props:{onFocus:T,onBlur:x,id:v.value}})]),[[_r("ripple"),e.ripple&&[!e.disabled&&!e.readonly,null,["center","circle"]]]])]),C&&y(G_,{for:v.value,clickable:!0},{default:()=>[C]})])}),{isFocused:p,input:S}}}),CM=Pe()({name:"VSwitch",inheritAttrs:!1,props:{indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...kc(),...Cm()},emits:{"update:focused":e=>!0,"update:modelValue":()=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const s=pt(e,"indeterminate"),o=pt(e,"modelValue"),{loaderClasses:l}=Sc(e),{isFocused:u,focus:f,blur:d}=Tc(e),h=P(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),m=ur(),v=P(()=>e.id||`switch-${m}`);function p(){s.value&&(s.value=!1)}return Be(()=>{const[b,S]=mc(n),[T,x]=Ao.filterProps(e),[w,C]=ih.filterProps(e),V=X();function I(M){var O,k;M.stopPropagation(),M.preventDefault(),(k=(O=V.value)==null?void 0:O.input)==null||k.click()}return y(Ao,Oe({class:["v-switch",{"v-switch--inset":e.inset},{"v-switch--indeterminate":s.value},l.value]},b,T,{id:v.value,focused:u.value}),{...r,default:M=>{let{id:O,messagesId:k,isDisabled:H,isReadonly:z,isValid:D}=M;return y(ih,Oe({ref:V},w,{modelValue:o.value,"onUpdate:modelValue":[U=>o.value=U,p],id:O.value,"aria-describedby":k.value,type:"checkbox","aria-checked":s.value?"mixed":void 0,disabled:H.value,readonly:z.value,onFocus:f,onBlur:d},S),{...r,default:()=>y("div",{class:"v-switch__track",onClick:I},null),input:U=>{let{textColorClasses:q,textColorStyles:G}=U;return y("div",{class:["v-switch__thumb",q.value],style:G.value},[e.loading&&y(cm,{name:"v-switch",active:!0,color:D.value===!1?void 0:h.value},{default:ge=>r.loader?r.loader(ge):y(f_,{active:ge.isActive,color:ge.color,indeterminate:!0,size:"16",width:"2"},null)})])}})}})}),{}}}),SM={name:"AuthLoginDialog",components:{SubmitFooter:Ho},data(){return{rules:{username:[e=>!!e||"Username is required"],password:[e=>e?this.registerMode&&e.length<this.MIN_PASSWORD_LEN?`Password must be ${this.MIN_PASSWORD_LEN} characters long`:!0:"Password is required"],passwordConfirm:[e=>e===this.credentials.password||"Passwords must match"]},formModel:{},credentials:{username:"",password:"",passwordConfirm:""},submitButtonEnabled:!1,showDialog:!1,registerMode:!1,mdiLogin:x3}},computed:{...At(Tt,{formErrors:e=>e.form.errors,formSuccess:e=>e.form.success}),...At(Sn,{adminFlags:e=>e.adminFlags,MIN_PASSWORD_LEN:e=>e.MIN_PASSWORD_LEN}),submitButtonLabel:function(){return this.registerMode?"Register":"Login"}},watch:{showDialog(e){e&&(this.loadAdminFlags(),this.$refs.form&&this.$refs.form.reset())},credentials:{handler(){const e=this.$refs.form;e?e.validate().then(({valid:t})=>this.submitButtonEnabled=t).catch(console.error):this.submitButtonEnabled=!1},deep:!0}},mounted(){window.addEventListener("keyup",this._keyListener)},beforeUnmount(){window.removeEventListener("keyup",this._keyListener)},methods:{...Wt(Sn,["loadAdminFlags","login","register"]),doAuth(e){return this[e](this.credentials).then(()=>this.showDialog=this.formErrors&&this.formErrors.length>0).catch(console.error)},submit(){this.$refs.form.validate().then(({valid:t})=>{if(!t)return;const n=this.registerMode?"register":"login";return this.doAuth(n)}).catch(console.error)},_keyListener(e){e.stopImmediatePropagation()}}};function xM(e,t,n,r,s,o){const l=Ho;return se(),je(nl,{modelValue:s.showDialog,"onUpdate:modelValue":t[7]||(t[7]=u=>s.showDialog=u),origin:"center-top",transition:"slide-y-transition","max-width":"20em"},{activator:ie(({props:u})=>[y(Ar,dh($h(u)),{default:ie(()=>[y(rl,null,{default:ie(()=>[y(dt,null,{default:ie(()=>[ke(ye(s.mdiLogin),1)]),_:1}),ke(" Login ")]),_:1})]),_:2},1040)]),default:ie(()=>[y(pm,{id:"authDialog",ref:"form"},{default:ie(()=>[y(wn,{modelValue:s.credentials.username,"onUpdate:modelValue":t[0]||(t[0]=u=>s.credentials.username=u),autocomplete:"username",label:"Username",rules:s.rules.username,clearable:"",autofocus:"",onKeydown:t[1]||(t[1]=ui(u=>e.$refs.password.focus(),["enter"]))},null,8,["modelValue","rules"]),y(wn,{ref:"password",modelValue:s.credentials.password,"onUpdate:modelValue":t[2]||(t[2]=u=>s.credentials.password=u),autocomplete:s.registerMode?"new-password":"current-password",label:"Password",rules:s.rules.password,clearable:"",type:"password",onKeydown:t[3]||(t[3]=ui(u=>{s.registerMode?e.$refs.passwordConfirm.focus():o.submit()},["enter"]))},null,8,["modelValue","autocomplete","rules"]),y(Qa,null,{default:ie(()=>[s.registerMode?(se(),je(wn,{key:0,ref:"passwordConfirm",modelValue:s.credentials.passwordConfirm,"onUpdate:modelValue":t[4]||(t[4]=u=>s.credentials.passwordConfirm=u),autocomplete:"new-password",label:"Confirm Password",rules:s.rules.passwordConfirm,clearable:"",type:"password",onKeydown:ui(o.submit,["enter"])},null,8,["modelValue","rules","onKeydown"])):It("",!0)]),_:1}),e.adminFlags.registration?(se(),je(CM,{key:0,modelValue:s.registerMode,"onUpdate:modelValue":t[5]||(t[5]=u=>s.registerMode=u),label:"Register"},{default:ie(()=>[ke(" Register ")]),_:1},8,["modelValue"])):It("",!0),y(l,{verb:s.registerMode?"Register":"Login",table:"",disabled:!s.submitButtonEnabled,onSubmit:o.submit,onCancel:t[6]||(t[6]=u=>s.showDialog=!1)},null,8,["verb","disabled","onSubmit"])]),_:1},512)]),_:1},8,["modelValue"])}const AM=st(SM,[["render",xM],["__scopeId","data-v-ef06f84f"]]),EM={name:"AuthLogoutItem",data:function(){return{mdiLogout:A3}},computed:{...At(Sn,{username:e=>e.user.username})},methods:{...Wt(Sn,["logout"])}};function TM(e,t,n,r,s,o){return se(),je(Ar,{onClick:e.logout},{default:ie(()=>[y(rl,null,{default:ie(()=>[y(dt,null,{default:ie(()=>[ke(ye(e.mdiLogout),1)]),_:1}),ke("Logout "+ye(e.username),1)]),_:1})]),_:1},8,["onClick"])}const kM=st(EM,[["render",TM]]),PM={name:"AuthMenu",components:{ChangePasswordDialog:Pc,AuthLoginDialog:AM,AuthLogoutItem:kM},computed:{...At(Sn,{user:e=>e.user})},methods:{...Wt(Sn,["logout"])}};function RM(e,t,n,r,s,o){const l=Ot("AuthLogoutItem"),u=Pc,f=Ot("AuthLoginDialog");return se(),Me(Ke,null,[e.user?(se(),je(l,{key:0})):It("",!0),e.user?(se(),je(u,{key:1,user:e.user},null,8,["user"])):(se(),je(f,{key:2}))],64)}const X_=st(PM,[["render",RM]]);const ry=zn(Ih(()=>lr(()=>import("./admin-drawer-panel-64bcc083.js").then(e=>e.a),["assets/admin-drawer-panel-64bcc083.js","assets/admin-drawer-panel-cce8c0aa.css"]))),IM={name:"SettingsCommonPanel",components:{AuthMenu:X_,AdminMenu:ry},props:{adminMenu:{type:Boolean,default:!0}},data(){return{AdminMenu:ry}},computed:{...Pr(Sn,["isUserAdmin"])}},LM={id:"commonPanel"};function OM(e,t,n,r,s,o){const l=X_;return se(),Me("div",LM,[y(l),e.isUserAdmin?(se(),je($u,{key:0})):It("",!0),e.isUserAdmin?(se(),je(Ls(s.AdminMenu),{key:1,menu:n.adminMenu},null,8,["menu"])):It("",!0)])}const VM=st(IM,[["render",OM],["__scopeId","data-v-5cc55029"]]),MM=e=>{const t=jn();return et.get(`c/${e}`,{params:t})},FM=()=>{const e=jn();return et.get("c/settings",{params:e})},BM=e=>et.put("c/settings",e),K8=e=>{const t=fc(e),n=jn().ts;return`${t}/download/comic-${e}.cbz?ts=${n}`},q8=({pk:e,page:t})=>{const n=fc(e),r=jn().ts;return`${n}/${t}/page.jpg?ts=${r}`},Y8=({pk:e,page:t})=>{const n=Zh(e),r=jn().ts;return`${n}/${t}/page.jpg?ts=${r}`},yd={getReaderBasePath:Zh,getReaderInfo:MM,getReaderSettings:FM,setReaderSettings:BM},DM=function(e){let t;return e?t=e.length===4&&!Number.isNaN(e)?" ("+e+")":" v"+e:t="",t},$M=function({issue:e,issueSuffix:t},n){let r;try{e==null&&!t&&(e=0);const s=Number.parseFloat(e),o=Math.floor(s);n===void 0&&(n=0),s===o?r=o.toString():(r=s.toString(),n+=r.split(".")[1].length+1),r=r.padStart(n,"0")}catch{r=""}return t&&(r+=t),r},HM=function({issue:e,issueSuffix:t,issueCount:n},r){let s="#"+$M({issue:e,issueSuffix:t},r);return n&&(s+=` of ${n}`),s},NM=function({seriesName:e,volumeName:t,issue:n,issueSuffix:r,issueCount:s},o){const l=DM(t),u=HM({issue:n,issueSuffix:r,issueCount:s},o);return[e,l,u].filter(Boolean).join(" ")},J_={fitTo:"",twoPages:null,vertical:null,readInReverse:null};Object.freeze(J_);const pu=new Set(["",null,void 0]);Object.freeze(pu);const Q_={prev:"next",next:"prev"};Object.freeze(Q_);const UM=()=>Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)>600?"HEIGHT":"WIDTH",zM=Ga("reader",{state:()=>({choices:{fitTo:ir.reader.fitTo,nullValues:pu},readerSettings:{fitTo:UM(),twoPages:!1,readInReverse:!1,readRtlInReverse:!1,vertical:!0},books:new Map,seriesCount:0,pk:void 0,page:void 0,routes:{prev:!1,next:!1,books:{prev:!1,next:!1}},bookChange:void 0,reactWithScroll:!1}),getters:{activeBook(e){return e.books.get(e.pk)},activeSettings(e){return this.getSettings(e.activeBook)},activeTitle(e){const t=e.activeBook;return t?NM(t):""},prevBookChangeShow(e){return e.page===0},nextBookChangeShow(e){const t=e.activeBook?e.activeBook.maxPage:0,n=e.activeSettings.twoPages&&!e.activeSettings.vertical?1:0,r=t+n;return e.page>=r},isOnCoverPage(e){return this._isCoverPage(e.activeBook,e.page)}},actions:{getSettings(e){const t=e?e.settings:{},n={};for(const[s,o]of Object.entries(this.readerSettings)){const l=t[s],u=pu.has(l)?o:l;n[s]=u}return(e?e.readLtr:void 0)===!1&&pu.has(n.readInReverse)&&(n.readInReverse=this.readerSettings.readRtlInReverse),n.twoPages=n.twoPages&&!n.vertical,n},_isCoverPage(e,t){return e.readLtr!==!1&&t===0||e.readLtr&&t===e.maxPage},_numericValues(e){if(!e)return e;const t={};for(const[n,r]of Object.entries(e))t[n]=+r;return t},_getRouteParams(e,t){const n=t==="prev"?-1:1;let r=1;this.activeSettings.twoPages&&!this._isCoverPage(this.activeBook,+e+n)&&(r=2),r=r*n;const s=+e+r;let o=!1;return s>=0&&s<=this.activeBook.maxPage&&(o={pk:this.pk,page:s}),o},_updateSettings(e,t){if(e===0)this.readerSettings={...this.readerSettings,...t};else{const n=this.books.get(e);n.settings={...n.settings,...t}}},_setRoutes(e){this.$patch(t=>{t.routes.prev=this._getRouteParams(e,"prev"),t.routes.next=this._getRouteParams(e,"next")})},_getBookRoutePage(e,t,n){const r=e.books.get(t);let s=0;if(n&&r.readLtr!==!1||!n&&r.readLtr===!1){const l=this.getSettings(r).twoPages?-1:0;s=r.maxPage+l}return s},_getBookRoutes(e,t,n){let r=!1;if(t){const o=this._getBookRoutePage(e,t,!0);r={pk:t,page:o}}let s=!1;if(n){const o=this._getBookRoutePage(e,n,!1);s={pk:n,page:o}}return{prev:r,next:s}},async setRoutesAndBookmarkPage(e){this._setRoutes(e),await this._setBookmarkPage(e).then(()=>(this.bookChange=void 0,!0))},setActivePage(e,t=!0){if(e<0)return console.warn("Page out of bounds. Redirecting to 0."),this.routeToPage(0);if(e>this.activeBook.maxPage)return console.warn(`Page out of bounds. Redirecting to ${this.activeBook.maxPage}.`),this.routeToPage(this.activeBook.maxPage);if(this.reactWithScroll=!!t,this.page=+e,this.setRoutesAndBookmarkPage(e),this.activeSettings.vertical){const n={params:{pk:this.pk,page:e}},{href:r}=mr.resolve(n);window.history.pushState({},void 0,r)}else window.scrollTo(0,0)},async loadReaderSettings(){return yd.getReaderSettings().then(e=>{const t=e.data;return this._updateSettings(0,t),!0}).catch(console.error)},async loadBooks(e){const t=this._numericValues(e);await yd.getReaderInfo(t.pk).then(n=>{const r=n.data;let s=!1,o=!1;return this.$patch(l=>{const u=new Map;for(const[f,d]of r.books.entries())d.pk!==t.pk&&(f===0?s=d.pk:o=d.pk),u.set(d.pk,Jt(d));l.books=u,l.seriesCount=r.seriesCount,l.pk=t.pk,l.routes.books=this._getBookRoutes(l,s,o)}),this._setRoutes(t.page),!0}).catch(n=>{console.debug(n);const r=hc().page,s=r&&r.routes?r.routes.last:{name:"home"};return mr.push(s)})},async _setBookmarkPage(e){const t={group:"c",pk:this.pk};e=Math.max(Math.min(this.activeBook.maxPage,e),0);const n={page:e};await vs.setGroupBookmarks(t,n)},async setSettingsLocal(e,t){const n=this._numericValues(e);this._updateSettings(n.pk,t),await vs.setGroupBookmarks({group:"c",pk:n.pk},this.activeBook.settings)},async clearSettingsLocal(e){const t=this._numericValues(e);await this.setSettingsLocal(t,J_)},async setSettingsGlobal(e,t){const n=this._numericValues(e);this._updateSettings(0,t),await yd.setReaderSettings(this.readerSettings),await this.clearSettingsLocal(n)},setBookChangeFlag(e){this.bookChange=this.routes.books[e]?e:void 0},normalizeDirection(e){return this.activeSettings.readInReverse?Q_[e]:e},_validateRoute(e){const t=this.books.get(e.pk);if(!t)return{};const n=t.maxPage??0;return e.page>n?(e.page=n,console.warn("Tried to navigate past the end of the book.")):e.page<0&&(e.page=0,console.warn("Tried to navigate before the beginning of the book.")),e},_routeTo(e){if(e=this._validateRoute(e),this.activeSettings.vertical&&+e.pk===this.pk)this.setActivePage(+e.page,!0);else{const t={name:"reader",params:e};mr.push(t).catch(console.debug)}},routeToDirectionOne(e){e=this.normalizeDirection(e);const t=e==="prev"?-1:1,n=this.page+=t;if(n<0||n>this.activeBook.maxPage)return;const r={pk:this.pk,page:n};this._routeTo(r)},routeToDirection(e){if(e=this.normalizeDirection(e),this.routes[e]){const t=this.routes[e];this._routeTo(t)}else this.routes.books[e]?this.bookChange===e?this._routeTo(this.routes.books[e]):this.setBookChangeFlag(e):console.debug("No route to direction",e)},routeToPage(e){const t={pk:this.pk,page:e};this._routeTo(t)},routeToBook(e){this._routeTo(this.routes.books[e])}}});function WM(e){let{rootEl:t,isSticky:n,layoutItemStyles:r}=e;const s=X(!1),o=X(0),l=P(()=>{const d=typeof s.value=="boolean"?"top":s.value;return[n.value?{top:"auto",bottom:"auto",height:void 0}:void 0,s.value?{[d]:Ae(o.value)}:{top:r.value.top}]});Gn(()=>{Fe(n,d=>{d?window.addEventListener("scroll",f,{passive:!0}):window.removeEventListener("scroll",f)},{immediate:!0})}),Ln(()=>{document.removeEventListener("scroll",f)});let u=0;function f(){const d=u>window.scrollY?"up":"down",h=t.value.getBoundingClientRect(),m=parseFloat(r.value.top??0),v=window.scrollY-Math.max(0,o.value-m),p=h.height+Math.max(o.value,m)-window.scrollY-window.innerHeight;h.height<window.innerHeight-m?(s.value="top",o.value=m):d==="up"&&s.value==="bottom"||d==="down"&&s.value==="top"?(o.value=window.scrollY+h.top,s.value=!0):d==="down"&&p<=0?(o.value=0,s.value="bottom"):d==="up"&&v<=0&&(o.value=h.top+v,s.value="top"),u=window.scrollY}return{isStuck:s,stickyStyles:l}}const GM=100,jM=20;function iy(e){const t=1.41421356237;return(e<0?-1:1)*Math.sqrt(Math.abs(e))*t}function sy(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let t=0;for(let n=e.length-1;n>0;n--){if(e[n].t===e[n-1].t)continue;const r=iy(t),s=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(s-r)*Math.abs(s),n===e.length-1&&(t*=.5)}return iy(t)*1e3}function KM(){const e={};function t(s){Array.from(s.changedTouches).forEach(o=>{(e[o.identifier]??(e[o.identifier]=new _V(jM))).push([s.timeStamp,o])})}function n(s){Array.from(s.changedTouches).forEach(o=>{delete e[o.identifier]})}function r(s){var d;const o=(d=e[s])==null?void 0:d.values().reverse();if(!o)throw new Error(`No samples for touch id ${s}`);const l=o[0],u=[],f=[];for(const h of o){if(l[0]-h[0]>GM)break;u.push({t:h[0],d:h[1].clientX}),f.push({t:h[0],d:h[1].clientY})}return{x:sy(u),y:sy(f),get direction(){const{x:h,y:m}=this,[v,p]=[Math.abs(h),Math.abs(m)];return v>p&&h>=0?"right":v>p&&h<=0?"left":p>v&&m>=0?"down":p>v&&m<=0?"up":qM()}}}return{addMovement:t,endTouch:n,getVelocity:r}}function qM(){throw new Error}function YM(e){let{isActive:t,isTemporary:n,width:r,touchless:s,position:o}=e;Gn(()=>{window.addEventListener("touchstart",x,{passive:!0}),window.addEventListener("touchmove",w,{passive:!1}),window.addEventListener("touchend",C,{passive:!0})}),Ln(()=>{window.removeEventListener("touchstart",x),window.removeEventListener("touchmove",w),window.removeEventListener("touchend",C)});const l=P(()=>["left","right"].includes(o.value)),{addMovement:u,endTouch:f,getVelocity:d}=KM();let h=!1;const m=X(!1),v=X(0),p=X(0);let b;function S(I,M){return(o.value==="left"?I:o.value==="right"?document.documentElement.clientWidth-I:o.value==="top"?I:o.value==="bottom"?document.documentElement.clientHeight-I:ro())-(M?r.value:0)}function T(I){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const O=o.value==="left"?(I-p.value)/r.value:o.value==="right"?(document.documentElement.clientWidth-I-p.value)/r.value:o.value==="top"?(I-p.value)/r.value:o.value==="bottom"?(document.documentElement.clientHeight-I-p.value)/r.value:ro();return M?Math.max(0,Math.min(1,O)):O}function x(I){if(s.value)return;const M=I.changedTouches[0].clientX,O=I.changedTouches[0].clientY,k=25,H=o.value==="left"?M<k:o.value==="right"?M>document.documentElement.clientWidth-k:o.value==="top"?O<k:o.value==="bottom"?O>document.documentElement.clientHeight-k:ro(),z=t.value&&(o.value==="left"?M<r.value:o.value==="right"?M>document.documentElement.clientWidth-r.value:o.value==="top"?O<r.value:o.value==="bottom"?O>document.documentElement.clientHeight-r.value:ro());(H||z||t.value&&n.value)&&(h=!0,b=[M,O],p.value=S(l.value?M:O,t.value),v.value=T(l.value?M:O),f(I),u(I))}function w(I){const M=I.changedTouches[0].clientX,O=I.changedTouches[0].clientY;if(h){if(!I.cancelable){h=!1;return}const H=Math.abs(M-b[0]),z=Math.abs(O-b[1]);(l.value?H>z&&H>3:z>H&&z>3)?(m.value=!0,h=!1):(l.value?z:H)>3&&(h=!1)}if(!m.value)return;I.preventDefault(),u(I);const k=T(l.value?M:O,!1);v.value=Math.max(0,Math.min(1,k)),k>1?p.value=S(l.value?M:O,!0):k<0&&(p.value=S(l.value?M:O,!1))}function C(I){if(h=!1,!m.value)return;u(I),m.value=!1;const M=d(I.changedTouches[0].identifier),O=Math.abs(M.x),k=Math.abs(M.y);(l.value?O>k&&O>400:k>O&&k>3)?t.value=M.direction===({left:"right",right:"left",top:"down",bottom:"up"}[o.value]||ro()):t.value=v.value>.5}const V=P(()=>m.value?{transform:o.value==="left"?`translateX(calc(-100% + ${v.value*r.value}px))`:o.value==="right"?`translateX(calc(100% - ${v.value*r.value}px))`:o.value==="top"?`translateY(calc(-100% + ${v.value*r.value}px))`:o.value==="bottom"?`translateY(calc(100% - ${v.value*r.value}px))`:ro(),transition:"none"}:void 0);return{isDragging:m,dragProgress:v,dragStyles:V}}function ro(){throw new Error}const ZM=["start","end","left","right","top","bottom"],XM=Pe()({name:"VNavigationDrawer",props:{color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[String,Boolean],default:!0},image:String,temporary:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>ZM.includes(e)},sticky:Boolean,...qi(),...pi(),...Wb(),...Rr(),...Dt({tag:"nav"}),...Gt()},emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:s}=t;const{isRtl:o}=Mo(),{themeClasses:l}=en(e),{borderClasses:u}=Yi(e),{backgroundColorClasses:f,backgroundColorStyles:d}=Wn(Se(e,"color")),{elevationClasses:h}=yi(e),{mobile:m}=vc(),{roundedClasses:v}=Ir(e),p=C_(),b=pt(e,"modelValue",null,_e=>!!_e),{ssrBootStyles:S}=Ec(),T=X(),x=X(!1),w=P(()=>e.rail&&e.expandOnHover&&x.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),C=P(()=>Zd(e.location,o.value)),V=P(()=>!e.permanent&&(m.value||e.temporary)),I=P(()=>e.sticky&&!V.value&&C.value!=="bottom");e.expandOnHover&&e.rail!=null&&Fe(x,_e=>r("update:rail",!_e)),e.disableResizeWatcher||Fe(V,_e=>!e.permanent&&qt(()=>b.value=!_e)),!e.disableRouteWatcher&&p&&Fe(p.currentRoute,()=>V.value&&(b.value=!1)),Fe(()=>e.permanent,_e=>{_e&&(b.value=!0)}),za(()=>{e.modelValue!=null||V.value||(b.value=e.permanent||!m.value)});const{isDragging:M,dragProgress:O,dragStyles:k}=YM({isActive:b,isTemporary:V,width:w,touchless:Se(e,"touchless"),position:C}),H=P(()=>{const _e=V.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):w.value;return M.value?_e*O.value:_e}),{layoutItemStyles:z,layoutRect:D,layoutItemScrimStyles:U}=Gb({id:e.name,order:P(()=>parseInt(e.order,10)),position:C,layoutSize:H,elementSize:w,active:P(()=>b.value||M.value),disableTransitions:P(()=>M.value),absolute:P(()=>e.absolute||I.value&&typeof q.value!="string")}),{isStuck:q,stickyStyles:G}=WM({rootEl:T,isSticky:I,layoutItemStyles:z}),ge=Wn(P(()=>typeof e.scrim=="string"?e.scrim:null)),fe=P(()=>({...M.value?{opacity:O.value*.2,transition:"none"}:void 0,...D.value?{left:Ae(D.value.left),right:Ae(D.value.right),top:Ae(D.value.top),bottom:Ae(D.value.bottom)}:void 0,...U.value}));Kn({VList:{bgColor:"transparent"}});function de(){x.value=!0}function he(){x.value=!1}return Be(()=>{const _e=s.image||e.image;return y(Ke,null,[y(e.tag,Oe({ref:T,onMouseenter:de,onMouseleave:he,class:["v-navigation-drawer",`v-navigation-drawer--${C.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":x.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":V.value,"v-navigation-drawer--active":b.value,"v-navigation-drawer--sticky":I.value},l.value,f.value,u.value,h.value,v.value],style:[d.value,z.value,k.value,S.value,G.value]},n),{default:()=>{var me,be,le,Ne;return[_e&&y("div",{key:"image",class:"v-navigation-drawer__img"},[s.image?(me=s.image)==null?void 0:me.call(s,{image:e.image}):y("img",{src:e.image,alt:""},null)]),s.prepend&&y("div",{class:"v-navigation-drawer__prepend"},[(be=s.prepend)==null?void 0:be.call(s)]),y("div",{class:"v-navigation-drawer__content"},[(le=s.default)==null?void 0:le.call(s)]),s.append&&y("div",{class:"v-navigation-drawer__append"},[(Ne=s.append)==null?void 0:Ne.call(s)])]}}),y(Cr,{name:"fade-transition"},{default:()=>[V.value&&(M.value||b.value)&&!!e.scrim&&y("div",{class:["v-navigation-drawer__scrim",ge.backgroundColorClasses.value],style:[fe.value,ge.backgroundColorStyles.value],onClick:()=>b.value=!1},null)]})])}),{isStuck:q}}}),JM={name:"SettingsDrawer",components:{SettingsCommonPanel:VM,SettingsFooter:k_,VersionFooter:t_},props:{title:{type:String,required:!0},panel:{type:Object,required:!0},admin:{type:Boolean,default:!1}},computed:{...Pr(Sn,["isCodexViewable"]),...zh(Tt,["isSettingsDrawerOpen"]),...At(zM,{invisibleHack:e=>e.bookChange==="next"}),adminAndNotSmall(){return this.admin&&!this.$vuetify.display.smAndDown}},mounted(){this.isSettingsDrawerOpen=this.adminAndNotSmall}},QM={class:"settingsDrawerContainer"},eF={id:"topBlock"},tF={class:"settingsHeader"},nF={id:"footerGroup"};function rF(e,t,n,r,s,o){const l=Ot("SettingsCommonPanel"),u=k_,f=t_;return se(),je(XM,Oe(e.$attrs,{modelValue:e.isSettingsDrawerOpen,"onUpdate:modelValue":t[0]||(t[0]=d=>e.isSettingsDrawerOpen=d),"disable-resize-watcher":"","disable-route-watcher":"",location:"right",scrim:!o.adminAndNotSmall,temporary:!o.adminAndNotSmall,touchless:""}),{append:ie(()=>[y(f)]),default:ie(()=>[$("div",QM,[$("div",eF,[$("header",tF,[$("h3",null,ye(n.title),1)]),e.isCodexViewable?(se(),je(Ls(n.panel),{key:0})):It("",!0),e.isCodexViewable?(se(),je($u,{key:1})):It("",!0),y(l,{"admin-menu":!n.admin},null,8,["admin-menu"]),y($u)]),$("div",nF,[y(u)])])]),_:1},16,["modelValue","scrim","temporary"])}const ew=st(JM,[["render",rF],["__scopeId","data-v-881e9ee1"]]),oy=zn(Ih(()=>lr(()=>import("./admin-drawer-panel-64bcc083.js").then(e=>e.b),["assets/admin-drawer-panel-64bcc083.js","assets/admin-drawer-panel-cce8c0aa.css"]))),iF={name:"SettingsDrawerButton",components:{AdminSettingsButtonProgress:oy},data(){return{mdiMenu:E3,AdminSettingsButtonProgress:oy}},computed:{...At(Sn,["isUserAdmin"])}};function sF(e,t,n,r,s,o){return se(),je(jt,Oe(e.$attrs,{icon:"",title:"Settings"}),{default:ie(()=>[y(dt,null,{default:ie(()=>[ke(ye(s.mdiMenu),1)]),_:1}),e.isUserAdmin?(se(),je(Ls(s.AdminSettingsButtonProgress),{key:0})):It("",!0)]),_:1},16)}const oF=st(iF,[["render",sF]]);const aF=Ve({text:String,...Dt()},"v-toolbar-title"),tw=Pe()({name:"VToolbarTitle",props:aF(),setup(e,t){let{slots:n}=t;return Be(()=>{const r=!!(n.default||n.text||e.text);return y(e.tag,{class:"v-toolbar-title"},{default:()=>{var s;return[r&&y("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,(s=n.default)==null?void 0:s.call(n)])]}})}),{}}}),lF=[null,"prominent","default","comfortable","compact"],uF=Ve({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>lF.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...qi(),...pi(),...Rr(),...Dt({tag:"header"}),...Gt()},"v-toolbar"),cF=Pe()({name:"VToolbar",props:uF(),setup(e,t){var v;let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:s}=Wn(Se(e,"color")),{borderClasses:o}=Yi(e),{elevationClasses:l}=yi(e),{roundedClasses:u}=Ir(e),{themeClasses:f}=en(e),d=X(!!(e.extended||(v=n.extension)!=null&&v.call(n))),h=P(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),m=P(()=>d.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Kn({VBtn:{variant:"text"}}),Be(()=>{var T;const p=!!(e.title||n.title),b=!!(n.image||e.image),S=(T=n.extension)==null?void 0:T.call(n);return d.value=!!(e.extended||S),y(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},r.value,o.value,l.value,u.value,f.value],style:[s.value]},{default:()=>[b&&y("div",{key:"image",class:"v-toolbar__image"},[n.image?y(ln,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):y($_,{key:"image-img",cover:!0,src:e.image},null)]),y(ln,{defaults:{VTabs:{height:Ae(h.value)}}},{default:()=>{var x,w,C;return[y("div",{class:"v-toolbar__content",style:{height:Ae(h.value)}},[n.prepend&&y("div",{class:"v-toolbar__prepend"},[(x=n.prepend)==null?void 0:x.call(n)]),p&&y(tw,{key:"title",text:e.title},{text:n.title}),(w=n.default)==null?void 0:w.call(n),n.append&&y("div",{class:"v-toolbar__append"},[(C=n.append)==null?void 0:C.call(n)])])]}}),y(ln,{defaults:{VTabs:{height:Ae(m.value)}}},{default:()=>[y(Qa,null,{default:()=>[d.value&&y("div",{class:"v-toolbar__extension",style:{height:Ae(m.value)}},[S])]})]})]})}),{contentHeight:h,extensionHeight:m}}}),Z8=Pe()({name:"VToolbarItems",props:Zi({variant:"text"}),setup(e,t){let{slots:n}=t;return Kn({VBtn:{color:Se(e,"color"),height:"inherit",variant:Se(e,"variant")}}),Be(()=>{var r;return y("div",{class:"v-toolbar-items"},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),fF={name:"AdminTitleToolbar",components:{SettingsDrawerButton:oF},computed:{...zh(Tt,["isSettingsDrawerOpen"])}};function dF(e,t,n,r,s,o){const l=Ot("SettingsDrawerButton");return se(),je(cF,{id:"titleBar",class:br(["codexToolbar",{drawerMargin:!e.$vuetify.display.mdAndDown}]),density:"compact",elevation:"8"},{default:ie(()=>[y(tw,{class:"codexToolbarTitle"},{default:ie(()=>[ke(" Codex Administration ")]),_:1}),y(l,{class:br({invisible:e.isSettingsDrawerOpen}),disabled:e.isSettingsDrawerOpen,plain:e.isSettingsDrawerOpen,onClick:t[0]||(t[0]=u=>e.isSettingsDrawerOpen=!0)},null,8,["class","disabled","plain"])]),_:1},8,["class"])}const nw=st(fF,[["render",dF],["__scopeId","data-v-15c77dc3"]]),hF={name:"AdminSettingsPanel",data(){return{mdiBookshelf:p3}},computed:{...At(hc,{browserRoute:e=>e.page.routes.last?{name:"browser",params:e.page.routes.last}:{name:"home"}})}};function mF(e,t,n,r,s,o){return se(),je(Ar,{ref:"browserLink",to:e.browserRoute},{default:ie(()=>[y(rl,null,{default:ie(()=>[y(dt,null,{default:ie(()=>[ke(ye(s.mdiBookshelf),1)]),_:1}),ke("Browser ")]),_:1})]),_:1},8,["to"])}const vF=st(hF,[["render",mF]]);function ay(e){const n=Math.abs(e);return Math.sign(e)*(n/((1/.501-2)*(1-n)+1))}function ly(e){let{selectedElement:t,containerSize:n,contentSize:r,isRtl:s,currentScrollOffset:o,isHorizontal:l}=e;const u=l?t.clientWidth:t.clientHeight,f=l?t.offsetLeft:t.offsetTop,d=s&&l?r-f-u:f,h=n+o,m=u+d,v=u*.4;return d<=o?o=Math.max(d-v,0):h<=m&&(o=Math.min(o-(h-m-v),r-n)),o}function gF(e){let{selectedElement:t,containerSize:n,contentSize:r,isRtl:s,isHorizontal:o}=e;const l=o?t.clientWidth:t.clientHeight,u=o?t.offsetLeft:t.offsetTop,f=s&&o?r-u-l/2-n/2:u+l/2-n/2;return Math.min(r-n,Math.max(0,f))}const pF=Symbol.for("vuetify:v-slide-group"),rw=Ve({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:pF},nextIcon:{type:Ct,default:"$next"},prevIcon:{type:Ct,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["always","desktop","mobile"].includes(e)},...Dt(),..._c({selectedClass:"v-slide-group-item--active"})},"v-slide-group"),uy=Pe()({name:"VSlideGroup",props:rw(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isRtl:r}=Mo(),{mobile:s}=vc(),o=el(e,e.symbol),l=X(!1),u=X(0),f=X(0),d=X(0),h=P(()=>e.direction==="horizontal"),{resizeRef:m,contentRect:v}=Es(),{resizeRef:p,contentRect:b}=Es(),S=P(()=>o.selected.value.length?o.items.value.findIndex(me=>me.id===o.selected.value[0]):-1),T=P(()=>o.selected.value.length?o.items.value.findIndex(me=>me.id===o.selected.value[o.selected.value.length-1]):-1);if(Yt){let me=-1;Fe(()=>[o.selected.value,v.value,b.value,h.value],()=>{cancelAnimationFrame(me),me=requestAnimationFrame(()=>{if(v.value&&b.value){const be=h.value?"width":"height";f.value=v.value[be],d.value=b.value[be],l.value=f.value+1<d.value}if(S.value>=0&&p.value){const be=p.value.children[T.value];S.value===0||!l.value?u.value=0:e.centerActive?u.value=gF({selectedElement:be,containerSize:f.value,contentSize:d.value,isRtl:r.value,isHorizontal:h.value}):l.value&&(u.value=ly({selectedElement:be,containerSize:f.value,contentSize:d.value,isRtl:r.value,currentScrollOffset:u.value,isHorizontal:h.value}))}})})}const x=X(!1);let w=0,C=0;function V(me){const be=h.value?"clientX":"clientY";C=(r.value&&h.value?-1:1)*u.value,w=me.touches[0][be],x.value=!0}function I(me){if(!l.value)return;const be=h.value?"clientX":"clientY",le=r.value&&h.value?-1:1;u.value=le*(C+w-me.touches[0][be])}function M(me){const be=d.value-f.value;u.value<0||!l.value?u.value=0:u.value>=be&&(u.value=be),x.value=!1}function O(){m.value&&(m.value[h.value?"scrollLeft":"scrollTop"]=0)}const k=X(!1);function H(me){if(k.value=!0,!(!l.value||!p.value)){for(const be of me.composedPath())for(const le of p.value.children)if(le===be){u.value=ly({selectedElement:le,containerSize:f.value,contentSize:d.value,isRtl:r.value,currentScrollOffset:u.value,isHorizontal:h.value});return}}}function z(me){k.value=!1}function D(me){var be;!k.value&&!(me.relatedTarget&&((be=p.value)!=null&&be.contains(me.relatedTarget)))&&q()}function U(me){p.value&&(h.value?me.key==="ArrowRight"?q(r.value?"prev":"next"):me.key==="ArrowLeft"&&q(r.value?"next":"prev"):me.key==="ArrowDown"?q("next"):me.key==="ArrowUp"&&q("prev"),me.key==="Home"?q("first"):me.key==="End"&&q("last"))}function q(me){var be,le,Ne,bt,Y;if(p.value)if(!me)(be=nm(p.value)[0])==null||be.focus();else if(me==="next"){const Z=(le=p.value.querySelector(":focus"))==null?void 0:le.nextElementSibling;Z?Z.focus():q("first")}else if(me==="prev"){const Z=(Ne=p.value.querySelector(":focus"))==null?void 0:Ne.previousElementSibling;Z?Z.focus():q("last")}else me==="first"?(bt=p.value.firstElementChild)==null||bt.focus():me==="last"&&((Y=p.value.lastElementChild)==null||Y.focus())}function G(me){const be=u.value+(me==="prev"?-1:1)*f.value;u.value=xo(be,0,d.value-f.value)}const ge=P(()=>{let me=u.value>d.value-f.value?-(d.value-f.value)+ay(d.value-f.value-u.value):-u.value;u.value<=0&&(me=ay(-u.value));const be=r.value&&h.value?-1:1;return{transform:`translate${h.value?"X":"Y"}(${be*me}px)`,transition:x.value?"none":"",willChange:x.value?"transform":""}}),fe=P(()=>({next:o.next,prev:o.prev,select:o.select,isSelected:o.isSelected})),de=P(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!s.value;case!0:return l.value||Math.abs(u.value)>0;case"mobile":return s.value||l.value||Math.abs(u.value)>0;default:return!s.value&&(l.value||Math.abs(u.value)>0)}}),he=P(()=>Math.abs(u.value)>0),_e=P(()=>d.value>Math.abs(u.value)+f.value);return Be(()=>y(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!h.value,"v-slide-group--has-affixes":de.value,"v-slide-group--is-overflowing":l.value}],tabindex:k.value||o.selected.value.length?-1:0,onFocus:D},{default:()=>{var me,be,le;return[de.value&&y("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!he.value}],onClick:()=>G("prev")},[((me=n.prev)==null?void 0:me.call(n,fe.value))??y(Mu,null,{default:()=>[y(dt,{icon:r.value?e.nextIcon:e.prevIcon},null)]})]),y("div",{key:"container",ref:m,class:"v-slide-group__container",onScroll:O},[y("div",{ref:p,class:"v-slide-group__content",style:ge.value,onTouchstartPassive:V,onTouchmovePassive:I,onTouchendPassive:M,onFocusin:H,onFocusout:z,onKeydown:U},[(be=n.default)==null?void 0:be.call(n,fe.value)])]),de.value&&y("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!_e.value}],onClick:()=>G("next")},[((le=n.next)==null?void 0:le.call(n,fe.value))??y(Mu,null,{default:()=>[y(dt,{icon:r.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:o.selected,scrollTo:G,scrollOffset:u,focus:q}}});const iw=Symbol.for("vuetify:v-tabs"),sw=Pe()({name:"VTab",props:{fixed:Boolean,title:String,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...Za(S_({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},setup(e,t){let{slots:n,attrs:r}=t;const{textColorClasses:s,textColorStyles:o}=xr(e,"sliderColor"),l=P(()=>e.direction==="horizontal"),u=X(!1),f=X(),d=X();function h(m){var p,b;let{value:v}=m;if(u.value=v,v){const S=(b=(p=f.value)==null?void 0:p.$el.parentElement)==null?void 0:b.querySelector(".v-tab--selected .v-tab__slider"),T=d.value;if(!S||!T)return;const x=getComputedStyle(S).color,w=S.getBoundingClientRect(),C=T.getBoundingClientRect(),V=l.value?"x":"y",I=l.value?"X":"Y",M=l.value?"right":"bottom",O=l.value?"width":"height",k=w[V],H=C[V],z=k>H?w[M]-C[M]:w[V]-C[V],D=Math.sign(z)>0?l.value?"right":"bottom":Math.sign(z)<0?l.value?"left":"top":"center",q=(Math.abs(z)+(Math.sign(z)<0?w[O]:C[O]))/Math.max(w[O],C[O]),G=w[O]/C[O],ge=1.5;ps(T,{backgroundColor:[x,""],transform:[`translate${I}(${z}px) scale${I}(${G})`,`translate${I}(${z/ge}px) scale${I}(${(q-1)/ge+1})`,""],transformOrigin:Array(3).fill(D)},{duration:225,easing:La})}}return Be(()=>{const[m]=jt.filterProps(e);return y(jt,Oe({_as:"VTab",symbol:iw,ref:f,class:["v-tab"],tabindex:u.value?0:-1,role:"tab","aria-selected":String(u.value),active:!1,block:e.fixed,maxWidth:e.fixed?300:void 0,rounded:0},m,r,{"onGroup:selected":h}),{default:()=>[n.default?n.default():e.title,!e.hideSlider&&y("div",{ref:d,class:["v-tab__slider",s.value],style:o.value},null)]})}),{}}});function yF(e){return e?e.map(t=>typeof t=="string"?{title:t,value:t}:t):[]}const bF=Pe()({name:"VTabs",props:{alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...rw({mandatory:"force"}),...Ur(),...Dt()},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=pt(e,"modelValue"),s=P(()=>yF(e.items)),{densityClasses:o}=zr(e),{backgroundColorClasses:l,backgroundColorStyles:u}=Wn(Se(e,"bgColor"));return Kn({VTab:{color:Se(e,"color"),direction:Se(e,"direction"),stacked:Se(e,"stacked"),fixed:Se(e,"fixedTabs"),sliderColor:Se(e,"sliderColor"),hideSlider:Se(e,"hideSlider")}}),Be(()=>{const[f]=uy.filterProps(e);return y(uy,Oe(f,{modelValue:r.value,"onUpdate:modelValue":d=>r.value=d,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},o.value,l.value],style:[{"--v-tabs-height":Ae(e.height)},u.value],role:"tablist",symbol:iw}),{default:()=>[n.default?n.default():s.value.map(d=>y(sw,Oe(d,{key:d.title}),null))]})}),{}}});const _F=e=>{const{touchstartX:t,touchendX:n,touchstartY:r,touchendY:s}=e,o=.5,l=16;e.offsetX=n-t,e.offsetY=s-r,Math.abs(e.offsetY)<o*Math.abs(e.offsetX)&&(e.left&&n<t-l&&e.left(e),e.right&&n>t+l&&e.right(e)),Math.abs(e.offsetX)<o*Math.abs(e.offsetY)&&(e.up&&s<r-l&&e.up(e),e.down&&s>r+l&&e.down(e))};function wF(e,t){var r;const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,(r=t.start)==null||r.call(t,{originalEvent:e,...t})}function CF(e,t){var r;const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,(r=t.end)==null||r.call(t,{originalEvent:e,...t}),_F(t)}function SF(e,t){var r;const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,(r=t.move)==null||r.call(t,{originalEvent:e,...t})}function xF(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:n=>wF(n,t),touchend:n=>CF(n,t),touchmove:n=>SF(n,t)}}function AF(e,t){var u;const n=t.value,r=n!=null&&n.parent?e.parentElement:e,s=(n==null?void 0:n.options)??{passive:!0},o=(u=t.instance)==null?void 0:u.$.uid;if(!r||!o)return;const l=xF(t.value);r._touchHandlers=r._touchHandlers??Object.create(null),r._touchHandlers[o]=l,Lb(l).forEach(f=>{r.addEventListener(f,l[f],s)})}function EF(e,t){var o,l;const n=(o=t.value)!=null&&o.parent?e.parentElement:e,r=(l=t.instance)==null?void 0:l.$.uid;if(!(n!=null&&n._touchHandlers)||!r)return;const s=n._touchHandlers[r];Lb(s).forEach(u=>{n.removeEventListener(u,s[u])}),delete n._touchHandlers[r]}const ow={mounted:AF,unmounted:EF},TF=ow,aw=Symbol.for("vuetify:v-window"),lw=Symbol.for("vuetify:v-window-group"),kF=Ve({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{default:"force"},...Dt(),...Gt()},"v-window"),PF=Pe()({name:"VWindow",directives:{Touch:ow},props:kF(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=en(e),{isRtl:s}=Mo(),{t:o}=Vs(),l=el(e,lw),u=X(),f=P(()=>s.value?!e.reverse:e.reverse),d=X(!1),h=P(()=>{const V=e.direction==="vertical"?"y":"x",M=(f.value?!d.value:d.value)?"-reverse":"";return`v-window-${V}${M}-transition`}),m=X(0),v=X(void 0),p=P(()=>l.items.value.findIndex(V=>l.selected.value.includes(V.id)));Fe(p,(V,I)=>{const M=l.items.value.length,O=M-1;M<=2?d.value=V<I:V===O&&I===0?d.value=!0:V===0&&I===O?d.value=!1:d.value=V<I}),kt(aw,{transition:h,isReversed:d,transitionCount:m,transitionHeight:v,rootRef:u});const b=P(()=>e.continuous||p.value!==0),S=P(()=>e.continuous||p.value!==l.items.value.length-1);function T(){b.value&&l.prev()}function x(){S.value&&l.next()}const w=P(()=>{const V=[],I={icon:s.value?e.nextIcon:e.prevIcon,class:`v-window__${f.value?"right":"left"}`,onClick:l.prev,ariaLabel:o("$vuetify.carousel.prev")};V.push(b.value?n.prev?n.prev({props:I}):y(jt,I,null):y("div",null,null));const M={icon:s.value?e.prevIcon:e.nextIcon,class:`v-window__${f.value?"left":"right"}`,onClick:l.next,ariaLabel:o("$vuetify.carousel.next")};return V.push(S.value?n.next?n.next({props:M}):y(jt,M,null):y("div",null,null)),V}),C=P(()=>e.touch===!1?e.touch:{...{left:()=>{f.value?T():x()},right:()=>{f.value?x():T()},start:I=>{let{originalEvent:M}=I;M.stopPropagation()}},...e.touch===!0?{}:e.touch});return Be(()=>Kt(y(e.tag,{ref:u,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},r.value]},{default:()=>{var V,I;return[y("div",{class:"v-window__container",style:{height:v.value}},[(V=n.default)==null?void 0:V.call(n,{group:l}),e.showArrows!==!1&&y("div",{class:"v-window__controls"},[w.value])]),(I=n.additional)==null?void 0:I.call(n,{group:l})]}}),[[_r("touch"),C.value]])),{group:l}}}),RF=Pe()({name:"VWindowItem",directives:{Touch:TF},props:{reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...wc(),...xc()},emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=nt(aw),s=Cc(e,lw),{isBooted:o}=Ec();if(!r||!s)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const l=X(!1),u=P(()=>r.isReversed.value?e.reverseTransition!==!1:e.transition!==!1);function f(){!l.value||!r||(l.value=!1,r.transitionCount.value>0&&(r.transitionCount.value-=1,r.transitionCount.value===0&&(r.transitionHeight.value=void 0)))}function d(){var b;l.value||!r||(l.value=!0,r.transitionCount.value===0&&(r.transitionHeight.value=Ae((b=r.rootRef.value)==null?void 0:b.clientHeight)),r.transitionCount.value+=1)}function h(){f()}function m(b){l.value&&qt(()=>{!u.value||!l.value||!r||(r.transitionHeight.value=Ae(b.clientHeight))})}const v=P(()=>{const b=r.isReversed.value?e.reverseTransition:e.transition;return u.value?{name:typeof b!="string"?r.transition.value:b,onBeforeEnter:d,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:d,onAfterLeave:f,onLeaveCancelled:h,onEnter:m}:!1}),{hasContent:p}=hm(e,s.isSelected);return Be(()=>y(oi,{transition:v.value,disabled:!o.value},{default:()=>{var b;return[Kt(y("div",{class:["v-window-item",s.selectedClass.value]},[p.value&&((b=n.default)==null?void 0:b.call(n))]),[[ar,s.isSelected.value]])]}})),{}}}),IF={name:"AdminTabs",data(){return{activeTab:"Libraries",tabs:["Users","Groups","Libraries","Flags","Tasks","Stats"]}},computed:{...Pr(mt,["librariesExist"])},watch:{$route(e){const n=e.path.split("/").at(-1);this.activeTab=n[0].toUpperCase()+n.slice(1)}},mounted(){this.librariesExist||this.loadTables(["Library"])},methods:{...Wt(mt,["loadTables"])}},LF={id:"tabContainer"},OF={key:0,id:"noLibraries"};function VF(e,t,n,r,s,o){const l=Ot("router-view");return se(),Me("div",LF,[y(bF,{id:"tabs",class:br({rightMargin:!e.$vuetify.display.mdAndDown}),centered:"",grow:"","show-arrows":""},{default:ie(()=>[(se(!0),Me(Ke,null,$r(s.tabs,u=>(se(),je(sw,{key:u,modelValue:s.activeTab,"onUpdate:modelValue":t[0]||(t[0]=f=>s.activeTab=f),to:u.toLowerCase()},{default:ie(()=>[ke(ye(u),1)]),_:2},1032,["modelValue","to"]))),128))]),_:1},8,["class"]),y(PF,{id:"tabItems",modelValue:s.activeTab,"onUpdate:modelValue":t[1]||(t[1]=u=>s.activeTab=u),touch:!1},{default:ie(()=>[(se(!0),Me(Ke,null,$r(s.tabs,u=>(se(),je(l,{key:u},{default:ie(({Component:f})=>[y(RF,{value:u,class:"tabItemContainer"},{default:ie(()=>[(se(),je(Ls(f)))]),_:2},1032,["value"])]),_:2},1024))),128))]),_:1},8,["modelValue"]),e.librariesExist?It("",!0):(se(),Me("div",OF," Codex has no libraries. Select the Libraries tab and add a comic library. "))])}const MF=st(IF,[["render",VF],["__scopeId","data-v-bf0bbe16"]]);const FF=Pe()({name:"VMain",props:{scrollable:Boolean,...Dt({tag:"main"})},setup(e,t){let{slots:n}=t;const{mainStyles:r}=KV(),{ssrBootStyles:s}=Ec();return Be(()=>y(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable}],style:[r.value,s.value]},{default:()=>{var o,l;return[e.scrollable?y("div",{class:"v-main__scroller"},[(o=n.default)==null?void 0:o.call(n)]):(l=n.default)==null?void 0:l.call(n)]}})),{}}}),BF={name:"MainAdmin",components:{AdminTitleToolbar:nw,AdminTabs:MF,SettingsDrawer:ew},data(){return{AdminSettingsPanel:zn(vF)}},computed:{...Pr(Sn,["isUserAdmin"])}},DF={id:"adminWrapper"},$F={key:0,id:"adminContainer"},HF={key:1,id:"announcement"};function NF(e,t,n,r,s,o){const l=nw,u=Ot("AdminTabs"),f=ew,d=Ot("router-link");return se(),Me("div",DF,[e.isUserAdmin?(se(),Me("div",$F,[y(FF,null,{default:ie(()=>[y(l),y(u)]),_:1}),y(f,{title:"Admin Status",admin:!0,panel:s.AdminSettingsPanel},null,8,["panel"])])):(se(),Me("div",HF,[$("h1",null,[y(d,{to:{name:"home"}},{default:ie(()=>[ke(" Log in ")]),_:1}),ke(" as an Administrator to use this panel ")])]))])}const UF=st(BF,[["render",NF],["__scopeId","data-v-0605704c"]]),zF=Object.freeze(Object.defineProperty({__proto__:null,default:UF},Symbol.toStringTag,{value:"Module"}));const si=Pe()({name:"VTable",props:{fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...Ur(),...Dt(),...Gt()},setup(e,t){let{slots:n}=t;const{themeClasses:r}=en(e),{densityClasses:s}=zr(e);return Be(()=>y(e.tag,{class:["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!n.top,"v-table--has-bottom":!!n.bottom,"v-table--hover":e.hover},r.value,s.value]},{default:()=>{var o,l,u;return[(o=n.top)==null?void 0:o.call(n),n.default?y("div",{class:"v-table__wrapper",style:{height:Ae(e.height)}},[y("table",null,[n.default()])]):(l=n.wrapper)==null?void 0:l.call(n),(u=n.bottom)==null?void 0:u.call(n)]}})),{}}});const uw=Ve({indeterminate:Boolean,indeterminateIcon:{type:Ct,default:"$checkboxIndeterminate"},...Cm({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"v-checkbox-btn"),Er=Pe()({name:"VCheckboxBtn",props:uw(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:n}=t;const r=pt(e,"indeterminate"),s=pt(e,"modelValue");function o(f){r.value&&(r.value=!1)}const l=P(()=>e.indeterminate?e.indeterminateIcon:e.falseIcon),u=P(()=>e.indeterminate?e.indeterminateIcon:e.trueIcon);return Be(()=>y(ih,Oe(e,{modelValue:s.value,"onUpdate:modelValue":[f=>s.value=f,o],class:"v-checkbox-btn",type:"checkbox",inline:!0,falseIcon:l.value,trueIcon:u.value,"aria-checked":e.indeterminate?"mixed":void 0}),n)),{}}}),Eo=Pe()({name:"VCheckbox",inheritAttrs:!1,props:{...kc(),...Za(uw(),["inline"])},emits:{"update:focused":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{isFocused:s,focus:o,blur:l}=Tc(e),u=ur(),f=P(()=>e.id||`checkbox-${u}`);return Be(()=>{const[d,h]=mc(n),[m,v]=Ao.filterProps(e),[p,b]=Er.filterProps(e);return y(Ao,Oe({class:"v-checkbox"},d,m,{id:f.value,focused:s.value}),{...r,default:S=>{let{id:T,messagesId:x,isDisabled:w,isReadonly:C}=S;return y(Er,Oe(p,{id:T.value,"aria-describedby":x.value,disabled:w.value,readonly:C.value},h,{onFocus:o,onBlur:l}),r)}})}),{}}});const cw=Symbol.for("vuetify:v-chip-group"),X8=Pe()({name:"VChipGroup",props:{column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Os},..._c({selectedClass:"v-chip--selected"}),...Dt(),...Gt(),...Zi({variant:"tonal"})},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=en(e),{isSelected:s,select:o,next:l,prev:u,selected:f}=el(e,cw);return Kn({VChip:{color:Se(e,"color"),disabled:Se(e,"disabled"),filter:Se(e,"filter"),variant:Se(e,"variant")}}),Be(()=>y(e.tag,{class:["v-chip-group",{"v-chip-group--column":e.column},r.value]},{default:()=>{var d;return[(d=n.default)==null?void 0:d.call(n,{isSelected:s,select:o,next:l,prev:u,selected:f.value})]}})),{}}}),Sm=Pe()({name:"VChip",directives:{Ripple:tl},props:{activeClass:String,appendAvatar:String,appendIcon:Ct,closable:Boolean,closeIcon:{type:Ct,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:Ct,ripple:{type:Boolean,default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:Nr(),onClickOnce:Nr(),...qi(),...Ur(),...pi(),...wc(),...Rr(),...dm(),...Xa(),...Dt({tag:"span"}),...Gt(),...Zi({variant:"tonal"})},emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:n,emit:r,slots:s}=t;const{t:o}=Vs(),{borderClasses:l}=Yi(e),{colorClasses:u,colorStyles:f,variantClasses:d}=bc(e),{densityClasses:h}=zr(e),{elevationClasses:m}=yi(e),{roundedClasses:v}=Ir(e),{sizeClasses:p}=Ja(e),{themeClasses:b}=en(e),S=pt(e,"modelValue"),T=Cc(e,cw,!1),x=fm(e,n),w=P(()=>e.link!==!1&&x.isLink.value),C=P(()=>!e.disabled&&e.link!==!1&&(!!T||e.link||x.isClickable.value)),V=P(()=>({"aria-label":o(e.closeLabel),onClick(O){S.value=!1,r("click:close",O)}}));function I(O){var k;r("click",O),C.value&&((k=x.navigate)==null||k.call(x,O),T==null||T.toggle())}function M(O){(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),I(O))}return()=>{const O=x.isLink.value?"a":e.tag,k=!!(e.appendIcon||e.appendAvatar),H=!!(k||s.append),z=!!(s.close||e.closable),D=!!(s.filter||e.filter)&&T,U=!!(e.prependIcon||e.prependAvatar),q=!!(U||s.prepend),G=!T||T.isSelected.value;return S.value&&Kt(y(O,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":C.value,"v-chip--filter":D,"v-chip--pill":e.pill},b.value,l.value,G?u.value:void 0,h.value,m.value,v.value,p.value,d.value,T==null?void 0:T.selectedClass.value],style:[G?f.value:void 0],disabled:e.disabled||void 0,draggable:e.draggable,href:x.href.value,tabindex:C.value?0:void 0,onClick:I,onKeydown:C.value&&!w.value&&M},{default:()=>{var ge;return[yc(C.value,"v-chip"),D&&y(o_,{key:"filter"},{default:()=>[Kt(y("div",{class:"v-chip__filter"},[s.filter?Kt(y(ln,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},null),[[_r("slot"),s.filter,"default"]]):y(dt,{key:"filter-icon",icon:e.filterIcon},null)]),[[ar,T.isSelected.value]])]}),q&&y("div",{key:"prepend",class:"v-chip__prepend"},[s.prepend?y(ln,{key:"prepend-defaults",disabled:!U,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},s.prepend):y(Ke,null,[e.prependIcon&&y(dt,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&y(Hu,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),((ge=s.default)==null?void 0:ge.call(s,{isSelected:T==null?void 0:T.isSelected.value,selectedClass:T==null?void 0:T.selectedClass.value,select:T==null?void 0:T.select,toggle:T==null?void 0:T.toggle,value:T==null?void 0:T.value.value,disabled:e.disabled}))??e.text,H&&y("div",{key:"append",class:"v-chip__append"},[s.append?y(ln,{key:"append-defaults",disabled:!k,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},s.append):y(Ke,null,[e.appendIcon&&y(dt,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&y(Hu,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),z&&y("div",Oe({key:"close",class:"v-chip__close"},V.value),[s.close?y(ln,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},s.close):y(dt,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[_r("ripple"),C.value&&e.ripple,null]])}}});const fw=Pe()({name:"VMenu",props:{id:String,...Za(vm({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:lm}}),["absolute"])},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=pt(e,"modelValue"),{scopeId:s}=mm(),o=ur(),l=P(()=>e.id||`v-menu-${o}`),u=X(),f=nt(eh,null),d=X(0);kt(eh,{register(){++d.value},unregister(){--d.value},closeParents(){setTimeout(()=>{d.value||(r.value=!1,f==null||f.closeParents())},40)}}),Fe(r,v=>{v?f==null||f.register():f==null||f.unregister()});function h(){f==null||f.closeParents()}const m=P(()=>Oe({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-owns":l.value},e.activatorProps));return Be(()=>{const[v]=Du.filterProps(e);return y(Du,Oe({ref:u,class:["v-menu"]},v,{modelValue:r.value,"onUpdate:modelValue":p=>r.value=p,absolute:!0,activatorProps:m.value,"onClick:outside":h},s),{activator:n.activator,default:function(){for(var p=arguments.length,b=new Array(p),S=0;S<p;S++)b[S]=arguments[S];return y(ln,{root:!0},{default:()=>{var T;return[(T=n.default)==null?void 0:T.call(n,...b)]}})}})}),$o({id:l,ΨopenChildren:d},u)}}),dw=Ve({chips:Boolean,closableChips:Boolean,eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,menu:Boolean,menuIcon:{type:Ct,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,valueComparator:{type:Function,default:Os},...bm({itemChildren:!1})},"v-select"),hw=Pe()({name:"VSelect",props:{...dw(),...Za(wm({modelValue:null}),["validationValue","dirty","appendInnerIcon"]),...Do({transition:{component:lm}})},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=Vs(),s=X(),o=X(),l=pt(e,"menu"),u=P({get:()=>l.value,set:D=>{var U;l.value&&!D&&((U=o.value)!=null&&U.ΨopenChildren)||(l.value=D)}}),{items:f,transformIn:d,transformOut:h}=_m(e),m=pt(e,"modelValue",[],D=>d(Hr(D)),D=>{const U=h(D);return e.multiple?U:U[0]??null}),v=gm(),p=P(()=>m.value.map(D=>f.value.find(U=>e.valueComparator(U.value,D.value))||D)),b=P(()=>p.value.map(D=>D.props.value)),S=X(!1);let T="",x;const w=P(()=>e.hideSelected?f.value.filter(D=>!p.value.some(U=>U===D)):f.value),C=X();function V(D){e.openOnClear&&(u.value=!0)}function I(){e.hideNoData&&!f.value.length||e.readonly||v!=null&&v.isReadonly.value||(u.value=!u.value)}function M(D){var fe,de,he,_e;if(e.readonly||v!=null&&v.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(D.key)&&D.preventDefault(),["Enter","ArrowDown"," "].includes(D.key)&&(u.value=!0),["Escape","Tab"].includes(D.key)&&(u.value=!1),D.key==="ArrowDown"?(fe=C.value)==null||fe.focus("next"):D.key==="ArrowUp"?(de=C.value)==null||de.focus("prev"):D.key==="Home"?(he=C.value)==null||he.focus("first"):D.key==="End"&&((_e=C.value)==null||_e.focus("last"));const U=1e3;function q(me){const be=me.key.length===1,le=!me.ctrlKey&&!me.metaKey&&!me.altKey;return be&&le}if(e.multiple||!q(D))return;const G=performance.now();G-x>U&&(T=""),T+=D.key.toLowerCase(),x=G;const ge=f.value.find(me=>me.title.toLowerCase().startsWith(T));ge!==void 0&&(m.value=[ge])}function O(D){if(e.multiple){const U=b.value.findIndex(q=>e.valueComparator(q,D.value));if(U===-1)m.value=[...m.value,D];else{const q=[...m.value];q.splice(U,1),m.value=q}}else m.value=[D],u.value=!1}function k(D){var U;(U=C.value)!=null&&U.$el.contains(D.relatedTarget)||(u.value=!1)}function H(D){S.value=!0}function z(D){var U;D.relatedTarget==null&&((U=s.value)==null||U.focus())}return Be(()=>{const D=!!(e.chips||n.chip),U=!!(!e.hideNoData||w.value.length||n.prepend||n.append||n["no-data"]),q=m.value.length>0,[G]=wn.filterProps(e),ge=q||!S.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return y(wn,Oe({ref:s},G,{modelValue:m.value.map(fe=>fe.props.value).join(", "),"onUpdate:modelValue":fe=>{fe==null&&(m.value=[])},focused:S.value,"onUpdate:focused":fe=>S.value=fe,validationValue:m.externalValue,dirty:q,class:["v-select",{"v-select--active-menu":u.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":m.value.length}],appendInnerIcon:e.menuIcon,readonly:!0,placeholder:ge,"onClick:clear":V,"onMousedown:control":I,onBlur:k,onKeydown:M}),{...n,default:()=>y(Ke,null,[y(fw,Oe({ref:o,modelValue:u.value,"onUpdate:modelValue":fe=>u.value=fe,activator:"parent",contentClass:"v-select__content",eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition},e.menuProps),{default:()=>[U&&y(z_,{ref:C,selected:b.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:fe=>fe.preventDefault(),onFocusin:H,onFocusout:z},{default:()=>{var fe,de,he;return[!w.value.length&&!e.hideNoData&&(((fe=n["no-data"])==null?void 0:fe.call(n))??y(Ar,{title:r(e.noDataText)},null)),(de=n["prepend-item"])==null?void 0:de.call(n),w.value.map((_e,me)=>{var be;return n.item?(be=n.item)==null?void 0:be.call(n,{item:_e,index:me,props:Oe(_e.props,{onClick:()=>O(_e)})}):y(Ar,Oe({key:me},_e.props,{onClick:()=>O(_e)}),{prepend:le=>{let{isSelected:Ne}=le;return e.multiple&&!e.hideSelected?y(Er,{modelValue:Ne,ripple:!1,tabindex:"-1"},null):void 0}})}),(he=n["append-item"])==null?void 0:he.call(n)]}})]}),p.value.map((fe,de)=>{var me;function he(be){be.stopPropagation(),be.preventDefault(),O(fe)}const _e={"onClick:close":he,modelValue:!0,"onUpdate:modelValue":void 0};return y("div",{key:fe.value,class:"v-select__selection"},[D?n.chip?y(ln,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:fe.title}}},{default:()=>{var be;return[(be=n.chip)==null?void 0:be.call(n,{item:fe,index:de,props:_e})]}}):y(Sm,Oe({key:"chip",closable:e.closableChips,size:"small",text:fe.title},_e),null):((me=n.selection)==null?void 0:me.call(n,{item:fe,index:de}))??y("span",{class:"v-select__selection-text"},[fe.title,e.multiple&&de<p.value.length-1&&y("span",{class:"v-select__selection-comma"},[ke(",")])])])})])})}),$o({isFocused:S,menu:u,select:O},s)}});const WF=(e,t,n)=>e==null||t==null?-1:e.toString().toLocaleLowerCase().indexOf(t.toString().toLocaleLowerCase()),xm=Ve({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function GF(e,t,n){var u;const r=[],s=(n==null?void 0:n.default)??WF,o=n!=null&&n.filterKeys?Hr(n.filterKeys):!1,l=Object.keys((n==null?void 0:n.customKeyFilter)??{}).length;if(!(e!=null&&e.length))return r;e:for(let f=0;f<e.length;f++){const d=e[f],h={},m={};let v=-1;if(t&&!(n!=null&&n.noFilter)){if(typeof d=="object"){const S=o||Object.keys(d);for(const T of S){const x=or(d,T,d),w=(u=n==null?void 0:n.customKeyFilter)==null?void 0:u[T];if(v=w?w(x,t,d):s(x,t,d),v!==-1&&v!==!1)w?h[T]=v:m[T]=v;else if((n==null?void 0:n.filterMode)==="every")continue e}}else v=s(d,t,d),v!==-1&&v!==!1&&(m.title=v);const p=Object.keys(m).length,b=Object.keys(h).length;if(!p&&!b||(n==null?void 0:n.filterMode)==="union"&&b!==l&&!p||(n==null?void 0:n.filterMode)==="intersection"&&(b!==l||!p))continue}r.push({index:f,matches:{...m,...h}})}return r}function Am(e,t,n,r){const s=P(()=>typeof(n==null?void 0:n.value)!="string"&&typeof(n==null?void 0:n.value)!="number"?"":String(n.value)),o=X([]),l=X(new Map);Tr(()=>{o.value=[],l.value=new Map;const f=dn(t);GF(f,s.value,{customKeyFilter:e.customKeyFilter,default:e.customFilter,filterKeys:dn(r==null?void 0:r.filterKeys)??e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}).forEach(h=>{let{index:m,matches:v}=h;const p=f[m];o.value.push(p),l.value.set(p.value,v)})});function u(f){return l.value.get(f.value)}return{filteredItems:o,filteredMatches:l,getMatches:u}}function jF(e,t,n){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?y(Ke,null,[y("span",{class:"v-combobox__unmask"},[e.substr(0,t)]),y("span",{class:"v-combobox__mask"},[e.substr(t,n)]),y("span",{class:"v-combobox__unmask"},[e.substr(t+n)])]):e}const KF=Pe()({name:"VCombobox",props:{delimiters:Array,...xm({filterKeys:["title"]}),...dw({hideNoData:!0,returnObject:!0}),...Za(wm({modelValue:null}),["validationValue","dirty","appendInnerIcon"]),...Do({transition:!1})},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,t){var be;let{emit:n,slots:r}=t;const{t:s}=Vs(),o=X(),l=X(!1),u=X(!0),f=X(),d=pt(e,"menu"),h=P({get:()=>d.value,set:le=>{var Ne;d.value&&!le&&((Ne=f.value)!=null&&Ne.ΨopenChildren)||(d.value=le)}}),m=X(-1);let v=!1;const p=P(()=>{var le;return(le=o.value)==null?void 0:le.color}),{items:b,transformIn:S,transformOut:T}=_m(e),{textColorClasses:x,textColorStyles:w}=xr(p),C=pt(e,"modelValue",[],le=>S(Hr(le)),le=>{const Ne=T(le);return e.multiple?Ne:Ne[0]??null}),V=gm(),I=X(e.multiple?"":((be=C.value[0])==null?void 0:be.title)??""),M=P({get:()=>I.value,set:le=>{var Ne;if(I.value=le,e.multiple||(C.value=[lo(e,le)]),le&&e.multiple&&((Ne=e.delimiters)!=null&&Ne.length)){const bt=le.split(new RegExp(`(?:${e.delimiters.join("|")})+`));bt.length>1&&(bt.forEach(Y=>{Y=Y.trim(),Y&&he(lo(e,Y))}),I.value="")}le||(m.value=-1),u.value=!le}});Fe(I,le=>{v?qt(()=>v=!1):l.value&&!h.value&&(h.value=!0),n("update:search",le)}),Fe(C,le=>{var Ne;e.multiple||(I.value=((Ne=le[0])==null?void 0:Ne.title)??"")});const{filteredItems:O,getMatches:k}=Am(e,b,P(()=>u.value?void 0:M.value)),H=P(()=>C.value.map(le=>b.value.find(Ne=>e.valueComparator(Ne.value,le.value))||le)),z=P(()=>e.hideSelected?O.value.filter(le=>!H.value.some(Ne=>Ne.value===le.value)):O.value),D=P(()=>H.value.map(le=>le.props.value)),U=P(()=>H.value[m.value]),q=X();function G(le){v=!0,e.openOnClear&&(h.value=!0)}function ge(){e.hideNoData&&!b.value.length||e.readonly||V!=null&&V.isReadonly.value||(h.value=!0)}function fe(le){var Y,Z;if(e.readonly||V!=null&&V.isReadonly.value)return;const Ne=o.value.selectionStart,bt=D.value.length;if((m.value>-1||["Enter","ArrowDown","ArrowUp"].includes(le.key))&&le.preventDefault(),["Enter","ArrowDown"].includes(le.key)&&(h.value=!0),["Escape"].includes(le.key)&&(h.value=!1),["Enter","Escape","Tab"].includes(le.key)&&(u.value=!0),le.key==="ArrowDown"?(Y=q.value)==null||Y.focus("next"):le.key==="ArrowUp"&&((Z=q.value)==null||Z.focus("prev")),!!e.multiple){if(["Backspace","Delete"].includes(le.key)){if(m.value<0){le.key==="Backspace"&&!M.value&&(m.value=bt-1);return}const ue=m.value;U.value&&he(U.value),m.value=ue>=bt-1?bt-2:ue}if(le.key==="ArrowLeft"){if(m.value<0&&Ne>0)return;const ue=m.value>-1?m.value-1:bt-1;H.value[ue]?m.value=ue:(m.value=-1,o.value.setSelectionRange(M.value.length,M.value.length))}if(le.key==="ArrowRight"){if(m.value<0)return;const ue=m.value+1;H.value[ue]?m.value=ue:(m.value=-1,o.value.setSelectionRange(0,0))}le.key==="Enter"&&M.value&&(he(lo(e,M.value)),M.value="")}}function de(){l.value&&(u.value=!0)}function he(le){if(e.multiple){const Ne=D.value.findIndex(bt=>e.valueComparator(bt,le.value));if(Ne===-1)C.value=[...C.value,le];else{const bt=[...C.value];bt.splice(Ne,1),C.value=bt}M.value=""}else C.value=[le],I.value=le.title,qt(()=>{h.value=!1,u.value=!0})}function _e(le){l.value=!0}function me(le){var Ne;le.relatedTarget==null&&((Ne=o.value)==null||Ne.focus())}return Fe(O,le=>{!le.length&&e.hideNoData&&(h.value=!1)}),Fe(l,le=>{if(le)m.value=-1;else{if(h.value=!1,!e.multiple||!M.value)return;C.value=[...C.value,lo(e,M.value)],M.value=""}}),Be(()=>{const le=!!(e.chips||r.chip),Ne=!!(!e.hideNoData||z.value.length||r.prepend||r.append||r["no-data"]),bt=C.value.length>0,[Y]=wn.filterProps(e);return y(wn,Oe({ref:o},Y,{modelValue:M.value,"onUpdate:modelValue":[Z=>M.value=Z,Z=>{Z==null&&(C.value=[])}],focused:l.value,"onUpdate:focused":Z=>l.value=Z,validationValue:C.externalValue,dirty:bt,class:["v-combobox",{"v-combobox--active-menu":h.value,"v-combobox--chips":!!e.chips,"v-combobox--selecting-index":m.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0}],appendInnerIcon:e.items.length?e.menuIcon:void 0,readonly:e.readonly,placeholder:bt?void 0:e.placeholder,"onClick:clear":G,"onMousedown:control":ge,onKeydown:fe}),{...r,default:()=>y(Ke,null,[y(fw,Oe({ref:f,modelValue:h.value,"onUpdate:modelValue":Z=>h.value=Z,activator:"parent",contentClass:"v-combobox__content",eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:de},e.menuProps),{default:()=>[Ne&&y(z_,{ref:q,selected:D.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:Z=>Z.preventDefault(),onFocusin:_e,onFocusout:me},{default:()=>{var Z,ue,Ee;return[!z.value.length&&!e.hideNoData&&(((Z=r["no-data"])==null?void 0:Z.call(r))??y(Ar,{title:s(e.noDataText)},null)),(ue=r["prepend-item"])==null?void 0:ue.call(r),z.value.map(He=>{var vt;return((vt=r.item)==null?void 0:vt.call(r,{item:He,props:Oe(He.props,{onClick:()=>he(He)})}))??y(Ar,Oe({key:He.value},He.props,{onClick:()=>he(He)}),{prepend:$e=>{let{isSelected:R}=$e;return e.multiple&&!e.hideSelected?y(Er,{modelValue:R,ripple:!1,tabindex:"-1"},null):void 0},title:()=>{var $e,R;return u.value?He.title:jF(He.title,($e=k(He))==null?void 0:$e.title,((R=M.value)==null?void 0:R.length)??0)}})}),(Ee=r["append-item"])==null?void 0:Ee.call(r)]}})]}),H.value.map((Z,ue)=>{var vt;function Ee($e){$e.stopPropagation(),$e.preventDefault(),he(Z)}const He={"onClick:close":Ee,modelValue:!0,"onUpdate:modelValue":void 0};return y("div",{key:Z.value,class:["v-combobox__selection",ue===m.value&&["v-combobox__selection--selected",x.value]],style:ue===m.value?w.value:{}},[le?r.chip?y(ln,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:Z.title}}},{default:()=>{var $e;return[($e=r.chip)==null?void 0:$e.call(r,{item:Z,index:ue,props:He})]}}):y(Sm,Oe({key:"chip",closable:e.closableChips,size:"small",text:Z.title},He),null):((vt=r.selection)==null?void 0:vt.call(r,{item:Z,index:ue}))??y("span",{class:"v-combobox__selection-text"},[Z.title,e.multiple&&ue<H.value.length-1&&y("span",{class:"v-combobox__selection-comma"},[ke(",")])])])})])})}),$o({isFocused:l,isPristine:u,menu:h,search:M,selectionIndex:m,filteredItems:O,select:he},o)}});var sh={exports:{}};(function(e,t){(function(){var n=this,r=n.humanize,s={};e.exports&&(t=e.exports=s),t.humanize=s,s.noConflict=function(){return n.humanize=r,this},s.pad=function(u,f,d,h){if(u+="",d?d.length>1&&(d=d.charAt(0)):d=" ",h=h===void 0?"left":"right",h==="right")for(;u.length<f;)u=u+d;else for(;u.length<f;)u=d+u;return u},s.time=function(){return new Date().getTime()/1e3};var o=[0,0,31,59,90,120,151,181,212,243,273,304,334],l=[0,0,31,60,91,121,152,182,213,244,274,305,335];s.date=function(u,f){var d=f===void 0?new Date:f instanceof Date?new Date(f):new Date(f*1e3),h=/\\?([a-z])/gi,m=function(S,T){return b[S]?b[S]():T},v=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],p=["January","February","March","April","May","June","July","August","September","October","November","December"],b={d:function(){return s.pad(b.j(),2,"0")},D:function(){return b.l().slice(0,3)},j:function(){return d.getDate()},l:function(){return v[b.w()]},N:function(){return b.w()||7},S:function(){var S=b.j();return S>4&&S<21?"th":{1:"st",2:"nd",3:"rd"}[S%10]||"th"},w:function(){return d.getDay()},z:function(){return(b.L()?l[b.n()]:o[b.n()])+b.j()-1},W:function(){var S=b.z()-b.N()+1.5;return s.pad(1+Math.floor(Math.abs(S)/7)+(S%7>3.5?1:0),2,"0")},F:function(){return p[d.getMonth()]},m:function(){return s.pad(b.n(),2,"0")},M:function(){return b.F().slice(0,3)},n:function(){return d.getMonth()+1},t:function(){return new Date(b.Y(),b.n(),0).getDate()},L:function(){return new Date(b.Y(),1,29).getMonth()===1?1:0},o:function(){var S=b.n(),T=b.W();return b.Y()+(S===12&&T<9?-1:S===1&&T>9)},Y:function(){return d.getFullYear()},y:function(){return String(b.Y()).slice(-2)},a:function(){return d.getHours()>11?"pm":"am"},A:function(){return b.a().toUpperCase()},B:function(){var S=d.getTime()/1e3,T=S%86400+3600;T<0&&(T+=86400);var x=T/86.4%1e3;return S<0?Math.ceil(x):Math.floor(x)},g:function(){return b.G()%12||12},G:function(){return d.getHours()},h:function(){return s.pad(b.g(),2,"0")},H:function(){return s.pad(b.G(),2,"0")},i:function(){return s.pad(d.getMinutes(),2,"0")},s:function(){return s.pad(d.getSeconds(),2,"0")},u:function(){return s.pad(d.getMilliseconds()*1e3,6,"0")},O:function(){var S=d.getTimezoneOffset(),T=Math.abs(S);return(S>0?"-":"+")+s.pad(Math.floor(T/60)*100+T%60,4,"0")},P:function(){var S=b.O();return S.substr(0,3)+":"+S.substr(3,2)},Z:function(){return-d.getTimezoneOffset()*60},c:function(){return"Y-m-d\\TH:i:sP".replace(h,m)},r:function(){return"D, d M Y H:i:s O".replace(h,m)},U:function(){return d.getTime()/1e3||0}};return u.replace(h,m)},s.numberFormat=function(u,f,d,h){f=isNaN(f)?2:Math.abs(f),d=d===void 0?".":d,h=h===void 0?",":h;var m=u<0?"-":"";u=Math.abs(+u||0);var v=parseInt(u.toFixed(f),10)+"",p=v.length>3?v.length%3:0;return m+(p?v.substr(0,p)+h:"")+v.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+h)+(f?d+Math.abs(u-v).toFixed(f).slice(2):"")},s.naturalDay=function(u,f){u=u===void 0?s.time():u,f=f===void 0?"Y-m-d":f;var d=86400,h=new Date,m=new Date(h.getFullYear(),h.getMonth(),h.getDate()).getTime()/1e3;return u<m&&u>=m-d?"yesterday":u>=m&&u<m+d?"today":u>=m+d&&u<m+2*d?"tomorrow":s.date(f,u)},s.relativeTime=function(u){u=u===void 0?s.time():u;var f=s.time(),d=f-u;if(d<2&&d>-2)return(d>=0?"just ":"")+"now";if(d<60&&d>-60)return d>=0?Math.floor(d)+" seconds ago":"in "+Math.floor(-d)+" seconds";if(d<120&&d>-120)return d>=0?"about a minute ago":"in about a minute";if(d<3600&&d>-3600)return d>=0?Math.floor(d/60)+" minutes ago":"in "+Math.floor(-d/60)+" minutes";if(d<7200&&d>-7200)return d>=0?"about an hour ago":"in about an hour";if(d<86400&&d>-86400)return d>=0?Math.floor(d/3600)+" hours ago":"in "+Math.floor(-d/3600)+" hours";var h=2*86400;if(d<h&&d>-h)return d>=0?"1 day ago":"in 1 day";var m=29*86400;if(d<m&&d>-m)return d>=0?Math.floor(d/86400)+" days ago":"in "+Math.floor(-d/86400)+" days";var v=60*86400;if(d<v&&d>-v)return d>=0?"about a month ago":"in about a month";var p=parseInt(s.date("Y",f),10),b=parseInt(s.date("Y",u),10),S=p*12+parseInt(s.date("n",f),10),T=b*12+parseInt(s.date("n",u),10),x=S-T;if(x<12&&x>-12)return x>=0?x+" months ago":"in "+-x+" months";var w=p-b;return w<2&&w>-2?w>=0?"a year ago":"in a year":w>=0?w+" years ago":"in "+-w+" years"},s.ordinal=function(u){u=parseInt(u,10),u=isNaN(u)?0:u;var f=u<0?"-":"";u=Math.abs(u);var d=u%100;return f+u+(d>4&&d<21?"th":{1:"st",2:"nd",3:"rd"}[u%10]||"th")},s.filesize=function(u,f,d,h,m,v){return f=f===void 0?1024:f,u<=0?"0 bytes":(u<f&&d===void 0&&(d=0),v===void 0&&(v=" "),s.intword(u,["bytes","KB","MB","GB","TB","PB"],f,d,h,m,v))},s.intword=function(u,f,d,h,m,v,p){var b,S;f=f||["","K","M","B","T"],S=f.length-1,d=d||1e3,h=isNaN(h)?2:Math.abs(h),m=m||".",v=v||",",p=p||"";for(var T=0;T<f.length;T++)if(u<Math.pow(d,T+1)){S=T;break}b=u/Math.pow(d,S);var x=f[S]?p+f[S]:"";return s.numberFormat(b,h,m,v)+x},s.linebreaks=function(u){return u=u.replace(/^([\n|\r]*)/,""),u=u.replace(/([\n|\r]*)$/,""),u=u.replace(/(\r\n|\n|\r)/g,`
|
|
48
|
-
`),u=u.replace(/(\n{2,})/g,"</p><p>"),u=u.replace(/\n/g,"<br />"),"<p>"+u+"</p>"},s.nl2br=function(u){return u.replace(/(\r\n|\n|\r)/g,"<br />")},s.truncatechars=function(u,f){return u.length<=f?u:u.substr(0,f)+"…"},s.truncatewords=function(u,f){var d=u.split(" ");return d.length<f?u:d.slice(0,f).join(" ")+"…"}}).call(oo)})(sh,sh.exports);var mw=sh.exports;const J8=Ab(mw),qF="en-NZ",vw="sv-SE",gw=new Intl.DateTimeFormat(vw),pw=function(e){const t=e?vw:qF;return new Intl.DateTimeFormat(t,{timeStyle:"medium"})},YF=function(e,t,n=!1){const r=new Date(e),s=gw.format(r),l=pw(t).format(r);return s+(n?"<br />":", ")+l};const ZF={name:"ConfirmDialog",components:{ConfirmFooter:Ac},props:{icon:{type:String,default:""},buttonText:{type:String,default:""},titleText:{type:String,required:!0},objectName:{type:String,required:!0},confirmText:{type:String,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{showDialog:!1}},methods:{close(e){this.$emit(e),this.showDialog=!1}}},XF={class:"confirmDialog"};function JF(e,t,n,r,s,o){const l=Ac;return se(),je(nl,{modelValue:s.showDialog,"onUpdate:modelValue":t[2]||(t[2]=u=>s.showDialog=u),transition:"fab-transition","max-width":"20em","overlay-opacity":"0.5"},{activator:ie(({props:u})=>[n.icon?(se(),je(jt,Oe({key:0,icon:""},u,{size:n.size,density:n.density,title:n.titleText}),{default:ie(()=>[y(dt,null,{default:ie(()=>[ke(ye(n.icon),1)]),_:1})]),_:2},1040,["size","density","title"])):(se(),je(jt,Oe({key:1,block:""},u),{default:ie(()=>[ke(ye(n.buttonText),1)]),_:2},1040))]),default:ie(()=>[$("div",XF,[$("h3",null,ye(n.titleText),1),ke(" "+ye(n.objectName)+" ",1),y(l,{"confirm-text":n.confirmText,onConfirm:t[0]||(t[0]=u=>o.close("confirm")),onCancel:t[1]||(t[1]=u=>o.close("cancel"))},null,8,["confirm-text"])])]),_:1},8,["modelValue"])}const Xi=st(ZF,[["render",JF],["__scopeId","data-v-996f6e3c"]]);const Em=UV({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String]},(e,t)=>{let{slots:n,attrs:r}=t;const s=e.tag??"td";return y(s,Oe({class:["v-data-table__td",{"v-data-table-column--fixed":e.fixed,"v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--no-padding":e.noPadding},`v-data-table-column--align-${e.align}`],style:{height:Ae(e.height),width:Ae(e.width),left:Ae(e.fixedOffset||null)}},r),{default:()=>{var o;return[(o=n.default)==null?void 0:o.call(n)]}})}),yw=Ve({headers:{type:Array,default:()=>[]}},"v-data-table-header"),bw=Symbol.for("vuetify:data-table-headers");function _w(e,t){const n=X([]),r=X([]);Fe(()=>e.headers,()=>{var b,S,T;const o=e.headers.length?Array.isArray(e.headers[0])?e.headers:[e.headers]:[],l=o.flatMap((x,w)=>x.map(C=>({column:C,row:w}))),u=o.length,f={title:"",sortable:!1},d={...f,width:48};if((b=t==null?void 0:t.groupBy)!=null&&b.value.length){const x=l.findIndex(w=>{let{column:C}=w;return C.key==="data-table-group"});x<0?l.unshift({column:{...f,key:"data-table-group",title:"Group",rowspan:u},row:0}):l.splice(x,1,{column:{...f,...l[x].column},row:l[x].row})}if((S=t==null?void 0:t.showSelect)!=null&&S.value){const x=l.findIndex(w=>{let{column:C}=w;return C.key==="data-table-select"});x<0?l.unshift({column:{...d,key:"data-table-select",rowspan:u},row:0}):l.splice(x,1,{column:{...d,...l[x].column},row:l[x].row})}if((T=t==null?void 0:t.showExpand)!=null&&T.value){const x=l.findIndex(w=>{let{column:C}=w;return C.key==="data-table-expand"});x<0?l.push({column:{...d,key:"data-table-expand",rowspan:u},row:0}):l.splice(x,1,{column:{...d,...l[x].column},row:l[x].row})}const h=Ia(u).map(()=>[]),m=Ia(u).fill(0);let v=0;l.forEach(x=>{let{column:w,row:C}=x;const V=w.key??`data-table-column-${v++}`;for(let I=C;I<=C+(w.rowspan??1)-1;I++)h[I].push({...w,key:V,fixedOffset:m[I],sortable:w.sortable??!!w.key}),m[I]+=w.width??0}),h.forEach(x=>{for(let w=x.length;w--;w>=0)if(x[w].fixed){x[w].lastFixed=!0;return}});const p=new Set;n.value=h.map(x=>{const w=[];for(const C of x)p.has(C.key)||(p.add(C.key),w.push(C));return w}),r.value=h.at(-1)??[]},{deep:!0,immediate:!0});const s={headers:n,columns:r};return kt(bw,s),s}function Rc(){const e=nt(bw);if(!e)throw new Error("Missing headers!");return e}const ww=Ve({showSelect:Boolean,modelValue:{type:Array,default:()=>[]}},"v-data-table-select"),Cw=Symbol.for("vuetify:data-table-selection");function Sw(e,t){const n=pt(e,"modelValue",e.modelValue,m=>new Set(m),m=>[...m.values()]);function r(m){return m.every(v=>n.value.has(v.value))}function s(m){return m.some(v=>n.value.has(v.value))}function o(m,v){const p=new Set(n.value);for(const b of m)v?p.add(b.value):p.delete(b.value);n.value=p}function l(m){o([m],!r([m]))}function u(m){o(t.value,m)}const f=P(()=>n.value.size>0),d=P(()=>r(t.value)),h={toggleSelect:l,select:o,selectAll:u,isSelected:r,isSomeSelected:s,someSelected:f,allSelected:d};return kt(Cw,h),h}function Ic(){const e=nt(Cw);if(!e)throw new Error("Missing selection!");return e}const xw=Ve({sortBy:{type:Array,default:()=>[]},multiSort:Boolean,mustSort:Boolean},"v-data-table-sort"),Aw=Symbol.for("vuetify:data-table-sort");function Ew(e){const t=pt(e,"sortBy"),n=Se(e,"mustSort"),r=Se(e,"multiSort");return{sortBy:t,mustSort:n,multiSort:r}}function Tw(e){const{sortBy:t,mustSort:n,multiSort:r,page:s}=e,l={sortBy:t,toggleSort:u=>{let f=t.value.map(h=>({...h}))??[];const d=f.find(h=>h.key===u);d?d.order==="desc"?n.value?d.order="asc":f=f.filter(h=>h.key!==u):d.order="desc":r.value?f=[...f,{key:u,order:"asc"}]:f=[{key:u,order:"asc"}],t.value=f,s&&(s.value=1)}};return kt(Aw,l),l}function QF(){const e=nt(Aw);if(!e)throw new Error("Missing sort!");return e}function kw(e,t,n){const r=P(()=>n.value.reduce((o,l)=>(l.sort&&(o[l.key]=l.sort),o),{}));return{sortedItems:P(()=>t.value.length?eB(e.value,t.value,"en",r.value):e.value)}}function eB(e,t,n,r){const s=new Intl.Collator(n,{sensitivity:"accent",usage:"sort"});return[...e].sort((o,l)=>{for(let u=0;u<t.length;u++){const f=t[u].key,d=t[u].order;if(d===!1)continue;let h=So(o.raw,f),m=So(l.raw,f);if(d==="desc"&&([h,m]=[m,h]),r!=null&&r[f]){const v=r[f](h,m);if(!v)continue;return v}if(!(h==null||m==null)){if(h instanceof Date&&m instanceof Date)return h.getTime()-m.getTime();if([h,m]=[h,m].map(v=>(v||"").toString().toLocaleLowerCase()),h!==m)return!isNaN(h)&&!isNaN(m)?Number(h)-Number(m):s.compare(h,m)}}return 0})}const Pw=Pe()({name:"VDataTableHeaders",props:{color:String,sticky:Boolean,multiSort:Boolean,sortAscIcon:{type:Ct,default:"$sortAsc"},sortDescIcon:{type:Ct,default:"$sortDesc"},...um()},setup(e,t){let{slots:n,emit:r}=t;const{toggleSort:s,sortBy:o}=QF(),{someSelected:l,allSelected:u,selectAll:f}=Ic(),{columns:d,headers:h}=Rc(),{loaderClasses:m}=Sc(e),v=(w,C)=>!e.sticky&&!w.fixed?null:{position:"sticky",zIndex:w.fixed?4:e.sticky?3:void 0,left:w.fixed?Ae(w.fixedOffset):void 0,top:e.sticky?`calc(var(--v-table-header-height) * ${C})`:void 0};function p(w){const C=o.value.find(V=>V.key===w);return C?C.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:b,backgroundColorStyles:S}=Wn(e,"color"),T=P(()=>({headers:h.value,columns:d.value,toggleSort:s,sortBy:o.value,someSelected:l.value,allSelected:u.value,selectAll:f,getSortIcon:p,getFixedStyles:v})),x=w=>{let{column:C,x:V,y:I}=w;const M=!!o.value.find(k=>k.key===C.key),O=C.key==="data-table-select"||C.key==="data-table-expand";return y(Em,{tag:"th",align:C.align,class:["v-data-table__th",{"v-data-table__th--sortable":C.sortable,"v-data-table__th--sorted":M},m.value],style:{width:Ae(C.width),minWidth:Ae(C.width),...v(C,I)},colspan:C.colspan,rowspan:C.rowspan,onClick:C.sortable?()=>s(C.key):void 0,lastFixed:C.lastFixed,noPadding:O},{default:()=>{var z;const k=`column.${C.key}`,H={column:C,selectAll:f};return n[k]?n[k](H):C.key==="data-table-select"?((z=n["column.data-table-select"])==null?void 0:z.call(n,H))??y(Er,{modelValue:u.value,indeterminate:l.value&&!u.value,"onUpdate:modelValue":f},null):y("div",{class:"v-data-table-header__content"},[y("span",null,[C.title]),C.sortable&&y(dt,{key:"icon",class:"v-data-table-header__sort-icon",icon:p(C.key)},null),e.multiSort&&M&&y("div",{key:"badge",class:["v-data-table-header__sort-badge",...b.value],style:S.value},[o.value.findIndex(D=>D.key===C.key)+1])])}})};Be(()=>y(Ke,null,[n.headers?n.headers(T.value):h.value.map((w,C)=>y("tr",null,[w.map((V,I)=>y(x,{column:V,x:I,y:C},null))])),e.loading&&y("tr",{class:"v-data-table__progress"},[y("th",{colspan:d.value.length},[y(cm,{name:"v-data-table-headers",active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:n.loader})])])]))}}),Rw=Ve({groupBy:{type:Array,default:()=>[]}},"data-table-group"),Iw=Symbol.for("vuetify:data-table-group");function Lw(e){return{groupBy:pt(e,"groupBy")}}function Ow(e){const{groupBy:t,sortBy:n}=e,r=X(new Set),s=P(()=>t.value.map(d=>({...d,order:d.order??!1})).concat(n.value));function o(d){return r.value.has(d.id)}function l(d){const h=new Set(r.value);o(d)?h.delete(d.id):h.add(d.id),r.value=h}function u(d){function h(m){const v=[];for(const p of m.items)p.type==="item"?v.push(p):v.push(...h(p));return v}return h({type:"group-header",items:d,id:"dummy",key:"dummy",value:"dummy",depth:0})}const f={sortByWithGroups:s,toggleGroup:l,opened:r,groupBy:t,extractRows:u,isGroupOpen:o};return kt(Iw,f),f}function Vw(){const e=nt(Iw);if(!e)throw new Error("Missing group!");return e}function tB(e,t){if(!e.length)return[];const n=new Map;for(const r of e){const s=So(r.raw,t);n.has(s)||n.set(s,[]),n.get(s).push(r)}return n}function Mw(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!t.length)return[];const s=tB(e,t[0]),o=[],l=t.slice(1);return s.forEach((u,f)=>{const d=t[0],h=`${r}_${d}_${f}`;o.push({depth:n,id:h,key:d,value:f,items:l.length?Mw(u,l,n+1,h):u,type:"group-header"})}),o}function Fw(e,t){const n=[];for(const r of e)r.type==="group-header"?(r.value!=null&&n.push(r),(t.has(r.id)||r.value==null)&&n.push(...Fw(r.items,t))):n.push(r);return n}function Bw(e,t,n){return{flatItems:P(()=>{if(!t.value.length)return e.value;const s=Mw(e.value,t.value.map(o=>o.key));return Fw(s,n.value)})}}const nB=Pe()({name:"VDataTableGroupHeaderRow",props:{item:{type:Object,required:!0}},setup(e,t){let{slots:n}=t;const{isGroupOpen:r,toggleGroup:s,extractRows:o}=Vw(),{isSelected:l,isSomeSelected:u,select:f}=Ic(),{columns:d}=Rc(),h=P(()=>o([e.item]));return()=>y("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[d.value.map(m=>{var v,p;if(m.key==="data-table-group"){const b=r(e.item)?"$expand":"$next",S=()=>s(e.item);return((v=n["data-table-group"])==null?void 0:v.call(n,{item:e.item,count:h.value.length,props:{icon:b,onClick:S}}))??y(Em,{class:"v-data-table-group-header-row__column"},{default:()=>[y(jt,{size:"small",variant:"text",icon:b,onClick:S},null),y("span",null,[e.item.value]),y("span",null,[ke("("),h.value.length,ke(")")])]})}if(m.key==="data-table-select"){const b=l(h.value),S=u(h.value)&&!b,T=x=>f(h.value,x);return((p=n["data-table-select"])==null?void 0:p.call(n,{props:{modelValue:b,indeterminate:S,"onUpdate:modelValue":T}}))??y("td",null,[y(Er,{modelValue:b,indeterminate:S,"onUpdate:modelValue":T},null)])}return y("td",null,null)})])}}),Dw=Ve({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"v-data-table-expand"),$w=Symbol.for("vuetify:datatable:expanded");function Hw(e){const t=Se(e,"expandOnClick"),n=pt(e,"expanded",e.expanded,u=>new Set(u),u=>[...u.values()]);function r(u,f){const d=new Set(n.value);f?d.add(u.value):d.delete(u.value),n.value=d}function s(u){return n.value.has(u.value)}function o(u){r(u,!s(u))}const l={expand:r,expanded:n,expandOnClick:t,isExpanded:s,toggleExpand:o};return kt($w,l),l}function Nw(){const e=nt($w);if(!e)throw new Error("foo");return e}const rB=Vo({name:"VDataTableRow",props:{index:Number,item:Object,onClick:Function},setup(e,t){let{slots:n}=t;const{isSelected:r,toggleSelect:s}=Ic(),{isExpanded:o,toggleExpand:l}=Nw(),{columns:u}=Rc();Be(()=>y("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!e.onClick}],onClick:e.onClick},[e.item&&u.value.map((f,d)=>y(Em,{align:f.align,fixed:f.fixed,fixedOffset:f.fixedOffset,lastFixed:f.lastFixed,noPadding:f.key==="data-table-select"||f.key==="data-table-expand",width:f.width},{default:()=>{var p,b;const h=e.item,m=`item.${f.key}`,v={index:e.index,item:e.item,columns:u.value,isSelected:r,toggleSelect:s,isExpanded:o,toggleExpand:l};return n[m]?n[m](v):f.key==="data-table-select"?((p=n["item.data-table-select"])==null?void 0:p.call(n,v))??y(Er,{modelValue:r([h]),onClick:Fd(()=>s(h),["stop"])},null):f.key==="data-table-expand"?((b=n["item.data-table-expand"])==null?void 0:b.call(n,v))??y(jt,{icon:o(h)?"$collapse":"$expand",size:"small",variant:"text",onClick:Fd(()=>l(h),["stop"])},null):or(h.columns,f.key)}}))]))}}),Uw=Pe()({name:"VDataTableRows",props:{loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowHeight:Number,"onClick:row":Function},setup(e,t){let{emit:n,slots:r}=t;const{columns:s}=Rc(),{expandOnClick:o,toggleExpand:l,isExpanded:u}=Nw(),{isSelected:f,toggleSelect:d}=Ic(),{toggleGroup:h,isGroupOpen:m}=Vw(),{t:v}=Vs();return Be(()=>{var p;return e.loading&&r.loading?y("tr",{class:"v-data-table-rows-loading",key:"loading"},[y("td",{colspan:s.value.length},[r.loading()])]):!e.loading&&!e.items.length&&!e.hideNoData?y("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[y("td",{colspan:s.value.length},[((p=r["no-data"])==null?void 0:p.call(r))??v(e.noDataText)])]):y(Ke,null,[e.items.map((b,S)=>{var x;if(b.type==="group-header")return r["group-header"]?r["group-header"]({index:S,item:b,columns:s.value,isExpanded:u,toggleExpand:l,isSelected:f,toggleSelect:d,toggleGroup:h,isGroupOpen:m}):y(nB,{key:`group-header_${b.id}`,item:b},r);const T={index:S,item:b,columns:s.value,isExpanded:u,toggleExpand:l,isSelected:f,toggleSelect:d};return y(Ke,null,[r.item?r.item(T):y(rB,{key:`item_${b.value}`,onClick:o.value||e["onClick:row"]?w=>{var C;o.value&&l(b),(C=e["onClick:row"])==null||C.call(e,w,{item:b})}:void 0,index:S,item:b},r),u(b)&&((x=r["expanded-row"])==null?void 0:x.call(r,T))])})])}),{}}});const iB=Ve({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"v-data-table-paginate"),zw=Symbol.for("vuetify:data-table-pagination");function sB(e){const t=pt(e,"page",void 0,r=>+(r??1)),n=pt(e,"itemsPerPage",void 0,r=>+(r??10));return{page:t,itemsPerPage:n}}function oB(e){const{page:t,itemsPerPage:n,itemsLength:r}=e,s=P(()=>n.value===-1?0:n.value*(t.value-1)),o=P(()=>n.value===-1?r.value:Math.min(r.value,s.value+n.value)),l=P(()=>n.value===-1||r.value===0?1:Math.ceil(r.value/n.value));function u(d){n.value=d,t.value=1}const f={page:t,itemsPerPage:n,itemsLength:r,startIndex:s,stopIndex:o,pageCount:l,setItemsPerPage:u};return kt(zw,f),f}function aB(){const e=nt(zw);if(!e)throw new Error("Missing pagination!");return e}function lB(e){const{items:t,startIndex:n,stopIndex:r,itemsPerPage:s}=e;return{paginatedItems:P(()=>s.value<=0?t.value:t.value.slice(n.value,r.value))}}const uB=Pe()({name:"VDataTableFooter",props:{prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},setup(e,t){let{slots:n}=t;const{t:r}=Vs(),{page:s,pageCount:o,startIndex:l,stopIndex:u,itemsLength:f,itemsPerPage:d,setItemsPerPage:h}=aB(),m=P(()=>e.itemsPerPageOptions.map(v=>({...v,title:r(v.title)})));return()=>{var v;return y("div",{class:"v-data-table-footer"},[(v=n.prepend)==null?void 0:v.call(n),y("div",{class:"v-data-table-footer__items-per-page"},[y("span",null,[r(e.itemsPerPageText)]),y(hw,{items:m.value,modelValue:d.value,"onUpdate:modelValue":p=>h(Number(p)),density:"compact",variant:"outlined","hide-details":!0},null)]),y("div",{class:"v-data-table-footer__info"},[y("div",null,[r(e.pageText,f.value?l.value+1:0,u.value,f.value)])]),y("div",{class:"v-data-table-footer__pagination"},[y(jt,{icon:e.firstIcon,variant:"plain",onClick:()=>s.value=1,disabled:s.value===1,"aria-label":r(e.firstPageLabel)},null),y(jt,{icon:e.prevIcon,variant:"plain",onClick:()=>s.value=Math.max(1,s.value-1),disabled:s.value===1,"aria-label":r(e.prevPageLabel)},null),e.showCurrentPage&&y("span",{key:"page",class:"v-data-table-footer__page"},[s.value]),y(jt,{icon:e.nextIcon,variant:"plain",onClick:()=>s.value=Math.min(o.value,s.value+1),disabled:s.value===o.value,"aria-label":r(e.nextPageLabel)},null),y(jt,{icon:e.lastIcon,variant:"plain",onClick:()=>s.value=o.value,disabled:s.value===o.value,"aria-label":r(e.lastPageLabel)},null)])])}}}),Ww=Ve({...bm({itemValue:"id"})},"v-data-table-item");function cB(e,t,n){const r=t.split(".");for(;r.length>1;){const s=r.shift();e[s]==null&&(e[s]={}),typeof e[s]=="object"&&(e=e[s])}e[r[0]]=n}function Gw(e,t){const{items:n}=_m(e);return{items:P(()=>n.value.map(s=>({...s,type:"item",columns:t.value.reduce((o,l)=>(cB(o,l.key,or(s.raw,l.value??l.key)),o),{})})))}}function jw(e){let{page:t,itemsPerPage:n,sortBy:r,groupBy:s,search:o}=e;const l=vn("VDataTable"),u=P(()=>({page:t.value,itemsPerPage:n.value,sortBy:r.value,groupBy:s.value,search:o.value}));Fe(()=>o==null?void 0:o.value,()=>{t.value=1});let f=null;Fe(u,()=>{Os(f,u.value)||(l.emit("update:options",u.value),f=u.value)},{deep:!0,immediate:!0})}const oh=Ve({...Ww(),...yw(),hideNoData:Boolean,hover:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},height:[String,Number],width:[String,Number],fixedHeader:Boolean,fixedFooter:Boolean,"onClick:row":Function,search:String},"v-data-table");Pe()({name:"VDataTable",props:{...oh(),...Dw(),...Rw(),...ww(),...xw(),...iB(),...xm()},emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{groupBy:s}=Lw(e),{sortBy:o,multiSort:l,mustSort:u}=Ew(e),{page:f,itemsPerPage:d}=sB(e),{columns:h}=_w(e,{groupBy:s,showSelect:Se(e,"showSelect"),showExpand:Se(e,"showExpand")}),{items:m}=Gw(e,h),v=P(()=>h.value.map(H=>"columns."+H.key)),p=Se(e,"search"),{filteredItems:b}=Am(e,m,p,{filterKeys:v});Tw({sortBy:o,multiSort:l,mustSort:u,page:f});const{sortByWithGroups:S,opened:T,extractRows:x}=Ow({groupBy:s,sortBy:o}),{sortedItems:w}=kw(b,S,h),{flatItems:C}=Bw(w,s,T),V=P(()=>C.value.length),{startIndex:I,stopIndex:M}=oB({page:f,itemsPerPage:d,itemsLength:V}),{paginatedItems:O}=lB({items:C,startIndex:I,stopIndex:M,itemsPerPage:d}),k=P(()=>x(O.value));return Sw(e,k),Hw(e),jw({page:f,itemsPerPage:d,sortBy:o,groupBy:s,search:p}),Kn({VDataTableRows:{hideNoData:Se(e,"hideNoData"),noDataText:Se(e,"noDataText")}}),Be(()=>y(si,{class:["v-data-table",{"v-data-table--show-select":e.showSelect}],fixedHeader:e.fixedHeader,fixedFooter:e.fixedFooter,height:e.height,hover:e.hover},{top:r.top,default:r.default??(()=>{var H,z,D,U;return y(Ke,null,[(H=r.colgroup)==null?void 0:H.call(r,{columns:h}),y("thead",null,[y(Pw,{sticky:e.fixedHeader,multiSort:e.multiSort},r)]),(z=r.thead)==null?void 0:z.call(r),y("tbody",null,[r.body?r.body():y(Uw,{items:O.value,"onClick:row":e["onClick:row"]},r)]),(D=r.tbody)==null?void 0:D.call(r),(U=r.tfoot)==null?void 0:U.call(r)])}),bottom:r.bottom??(()=>y(uB,null,{prepend:r["footer.prepend"]}))})),{}}});const fB=Ve({visibleItems:{type:[String,Number],default:20},itemHeight:{type:[String,Number],default:52}},"virtual"),cy=-1,fy=1;function dB(e,t){const n=X(0),r=P(()=>parseInt(e.itemHeight,10)),s=P(()=>parseInt(e.visibleItems,10)),o=X(),l=X(!1);function u(S){return S*r.value}function f(S){let T=0,x=t.value.length;for(;T<=x;){const w=T+Math.floor((x-T)/2),C=u(w);if(C===S)return w;C<S?T=w+1:C>S&&(x=w-1)}return T}let d=0,h;function m(){if(!o.value)return;l.value=!0,clearTimeout(h),h=setTimeout(()=>{l.value=!1},100);const S=o.value.scrollTop,T=S<d?cy:fy,x=f(S),w=Math.round(s.value/3);T===cy&&x<=n.value?n.value=Math.max(x-w,0):T===fy&&x>=n.value+w*2&&(n.value=Math.min(Math.max(0,x-w),t.value.length-s.value)),d=o.value.scrollTop}const v=P(()=>Math.min(t.value.length,n.value+s.value)),p=P(()=>u(n.value)),b=P(()=>u(t.value.length)-u(v.value));return{startIndex:n,stopIndex:v,paddingTop:p,paddingBottom:b,handleScroll:m,containerRef:o,itemHeight:r,isScrolling:l}}const No=Pe()({name:"VDataTableVirtual",props:{...oh(),...oh(),...Rw(),...Dw(),...yw(),...Ww(),...ww(),...xw(),...fB(),...xm()},emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"click:row":(e,t)=>!0},setup(e,t){let{emit:n,slots:r}=t;const{groupBy:s}=Lw(e),{sortBy:o,multiSort:l,mustSort:u}=Ew(e),{columns:f}=_w(e,{groupBy:s,showSelect:Se(e,"showSelect"),showExpand:Se(e,"showExpand")}),{items:d}=Gw(e,f),h=P(()=>f.value.map(D=>"columns."+D.key)),m=Se(e,"search"),{filteredItems:v}=Am(e,d,m,{filterKeys:h});Tw({sortBy:o,multiSort:l,mustSort:u});const{sortByWithGroups:p,opened:b,extractRows:S}=Ow({groupBy:s,sortBy:o}),{sortedItems:T}=kw(v,p,f),{flatItems:x}=Bw(T,s,b),w=P(()=>S(x.value));Sw(e,w),Hw(e);const{containerRef:C,paddingTop:V,paddingBottom:I,startIndex:M,stopIndex:O,itemHeight:k,handleScroll:H}=dB(e,x),z=P(()=>x.value.slice(M.value,O.value));jw({sortBy:o,page:X(1),itemsPerPage:X(-1),groupBy:s,search:m}),Kn({VDataTableRows:{hideNoData:Se(e,"hideNoData"),noDataText:Se(e,"noDataText")}}),Be(()=>y(si,{class:"v-data-table",style:{"--v-table-row-height":Ae(k.value)},fixedHeader:e.fixedHeader,fixedFooter:e.fixedFooter,height:e.height,hover:e.hover},{top:r.top,wrapper:()=>y("div",{ref:C,onScroll:H,class:"v-table__wrapper",style:{height:Ae(e.height)}},[y("table",null,[y("thead",null,[y(Pw,{sticky:e.fixedHeader,multiSort:e.multiSort},r)]),y("tbody",null,[y("tr",{style:{height:Ae(V.value),border:0}},[y("td",{colspan:f.value.length,style:{height:Ae(V.value),border:0}},null)]),y(Uw,{items:z.value,"onClick:row":e["onClick:row"]},r),y("tr",{style:{height:Ae(I.value),border:0}},[y("td",{colspan:f.value.length,style:{height:Ae(I.value),border:0}},null)])])])]),bottom:r.bottom}))}});const hB=Pe()({name:"VVirtualScrollItem",props:{dynamicHeight:Boolean},emits:{"update:height":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{resizeRef:s,contentRect:o}=Es();Ki(()=>e.dynamicHeight,()=>{Fe(()=>{var u;return(u=o.value)==null?void 0:u.height},u=>{u!=null&&n("update:height",u)})});function l(){e.dynamicHeight&&o.value&&n("update:height",o.value.height)}Wa(l),Be(()=>{var u;return y("div",{ref:e.dynamicHeight?s:void 0,class:"v-virtual-scroll__item"},[(u=r.default)==null?void 0:u.call(r)])})}}),dy=-1,hy=1,Q8=Pe()({name:"VVirtualScroll",props:{items:{type:Array,default:()=>[]},itemHeight:[Number,String],visibleItems:[Number,String],...Fo()},setup(e,t){let{slots:n}=t;const r=X(0),s=X(e.itemHeight),o=P({get:()=>parseInt(s.value??0,10),set(k){s.value=k}}),l=X(),{resizeRef:u,contentRect:f}=Es();Tr(()=>{u.value=l.value});const d=vc(),h=new Map;let m=Ia(e.items.length).map(()=>o.value);const v=P(()=>{var k;return e.visibleItems?parseInt(e.visibleItems,10):Math.max(12,Math.ceil((((k=f.value)==null?void 0:k.height)??d.height.value)/o.value*1.7+1))});function p(k,H){o.value=Math.max(o.value,H),m[k]=H,h.set(e.items[k],H)}function b(k){return m.slice(0,k).reduce((H,z)=>H+(z||o.value),0)}function S(k){let H=0,z=e.items.length;for(;H<=z;){const D=H+Math.floor((z-H)/2),U=b(D);if(U===k)return D;U<k?H=D+1:U>k&&(z=D-1)}return H}let T=0;function x(){if(!l.value||!f.value)return;const k=f.value.height,H=l.value.scrollTop,z=H<T?dy:hy,D=S(H+k/2),U=Math.round(v.value/3);z===dy&&D<=r.value+U*2-1?r.value=xo(D-U,0,e.items.length):z===hy&&D>=r.value+U*2-1&&(r.value=xo(D-U,0,e.items.length-v.value)),T=l.value.scrollTop}function w(k){if(!l.value)return;const H=b(k);l.value.scrollTop=H}const C=P(()=>Math.min(e.items.length,r.value+v.value)),V=P(()=>e.items.slice(r.value,C.value)),I=P(()=>b(r.value)),M=P(()=>b(e.items.length)-b(C.value)),{dimensionStyles:O}=Bo(e);return Gn(()=>{o.value||(o.value=m.slice(r.value,C.value).reduce((k,H)=>k+H,0)/v.value)}),Fe(()=>e.items.length,()=>{m=Ia(e.items.length).map(()=>o.value),h.forEach((k,H)=>{const z=e.items.indexOf(H);z===-1?h.delete(H):m[z]=k})}),Be(()=>y("div",{ref:l,class:"v-virtual-scroll",onScroll:x,style:O.value},[y("div",{class:"v-virtual-scroll__container",style:{paddingTop:Ae(I.value),paddingBottom:Ae(M.value)}},[V.value.map((k,H)=>y(hB,{key:H,dynamicHeight:!e.itemHeight,"onUpdate:height":z=>p(H+r.value,z)},{default:()=>{var z;return[(z=n.default)==null?void 0:z.call(n,{item:k,index:H+r.value})]}}))])])),{scrollToIndex:w}}});const Fa=Symbol.for("vuetify:v-expansion-panel"),mB=["default","accordion","inset","popout"],my=Pe()({name:"VExpansionPanels",props:{color:String,variant:{type:String,default:"default",validator:e=>mB.includes(e)},readonly:Boolean,..._c(),...Dt(),...Gt()},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;el(e,Fa);const{themeClasses:r}=en(e),s=P(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return Kn({VExpansionPanel:{color:Se(e,"color")},VExpansionPanelTitle:{readonly:Se(e,"readonly")}}),Be(()=>y(e.tag,{class:["v-expansion-panels",r.value,s.value]},n)),{}}}),Kw=Ve({color:String,expandIcon:{type:Ct,default:"$expand"},collapseIcon:{type:Ct,default:"$collapse"},hideActions:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean},"v-expansion-panel-title"),ah=Pe()({name:"VExpansionPanelTitle",directives:{Ripple:tl},props:{...Kw()},setup(e,t){let{slots:n}=t;const r=nt(Fa);if(!r)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:s,backgroundColorStyles:o}=Wn(e,"color"),l=P(()=>({collapseIcon:e.collapseIcon,disabled:r.disabled.value,expanded:r.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly}));return Be(()=>{var u;return Kt(y("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":r.isSelected.value},s.value],style:o.value,type:"button",tabindex:r.disabled.value?-1:void 0,disabled:r.disabled.value,"aria-expanded":r.isSelected.value,onClick:e.readonly?void 0:r.toggle},[y("span",{class:"v-expansion-panel-title__overlay"},null),(u=n.default)==null?void 0:u.call(n,l.value),!e.hideActions&&y("span",{class:"v-expansion-panel-title__icon"},[n.actions?n.actions(l.value):y(dt,{icon:r.isSelected.value?e.collapseIcon:e.expandIcon},null)])]),[[_r("ripple"),e.ripple]])}),{}}}),lh=Pe()({name:"VExpansionPanelText",props:{...xc()},setup(e,t){let{slots:n}=t;const r=nt(Fa);if(!r)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:s,onAfterLeave:o}=hm(e,r.isSelected);return Be(()=>y(Qa,{onAfterLeave:o},{default:()=>{var l;return[Kt(y("div",{class:"v-expansion-panel-text"},[n.default&&s.value&&y("div",{class:"v-expansion-panel-text__wrapper"},[(l=n.default)==null?void 0:l.call(n)])]),[[ar,r.isSelected.value]])]}})),{}}}),vy=Pe()({name:"VExpansionPanel",props:{title:String,text:String,bgColor:String,...pi(),...wc(),...xc(),...Rr(),...Dt(),...Kw()},emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=Cc(e,Fa),{backgroundColorClasses:s,backgroundColorStyles:o}=Wn(e,"bgColor"),{elevationClasses:l}=yi(e),{roundedClasses:u}=Ir(e),f=P(()=>(r==null?void 0:r.disabled.value)||e.disabled),d=P(()=>r.group.items.value.reduce((v,p,b)=>(r.group.selected.value.includes(p.id)&&v.push(b),v),[])),h=P(()=>{const v=r.group.items.value.findIndex(p=>p.id===r.id);return!r.isSelected.value&&d.value.some(p=>p-v===1)}),m=P(()=>{const v=r.group.items.value.findIndex(p=>p.id===r.id);return!r.isSelected.value&&d.value.some(p=>p-v===-1)});return kt(Fa,r),Be(()=>{const v=!!(n.text||e.text),p=!!(n.title||e.title);return y(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":r.isSelected.value,"v-expansion-panel--before-active":h.value,"v-expansion-panel--after-active":m.value,"v-expansion-panel--disabled":f.value},u.value,s.value],style:o.value,"aria-expanded":r.isSelected.value},{default:()=>{var b;return[y("div",{class:["v-expansion-panel__shadow",...l.value]},null),p&&y(ah,{key:"title",collapseIcon:e.collapseIcon,color:e.color,expandIcon:e.expandIcon,hideActions:e.hideActions,ripple:e.ripple},{default:()=>[n.title?n.title():e.title]}),v&&y(lh,{key:"text",eager:e.eager},{default:()=>[n.text?n.text():e.text]}),(b=n.default)==null?void 0:b.call(n)]}})}),{}}}),e$={CCC:"Create Covers",CCD:"Remove Covers",CFO:"Find Orphan Covers",IDM:"Move Folders",IFM:"Move Books",ITR:"Read Book Tags",ITQ:"Discover Missing Tags",ITC:"Create Missing Tags",IDU:"Modify Folders",IFU:"Modify Books",IFC:"Create Books",IMQ:"Prepare Tags for Linking",IMC:"Link Books to Tags",IDD:"Remove Folders",IFD:"Remove Books",IFI:"Record Failed Imports",JTD:"Cleanup Stale Tags",JCU:"Update Codex Software",JCR:"Restart Codex",JCS:"Stop Codex",JDO:"Optimize Database",JDB:"Backup Database",JSD:"Cleanup Expired Sessions",SIX:"Search Index Clear",SIU:"Search Index Update",SID:"Search Index Remove Stale Records",SIM:"Search Index Optimize",WPO:"Poll Library"},vB=[{title:"Libraries",tasks:[{value:"poll",title:"Poll All Libraries",desc:"Update Libraries if changes detected"},{value:"poll_force",title:"Force Update All Libraries",desc:"Forcibly update all comics in all libraries",confirm:"This can take a long time"},{value:"force_update_all_failed_imports",title:"Update All Failed Imports",desc:"Forcibly update all failed imports in all libraries",confirm:"This can take a long time"}]},{title:"Covers",tasks:[{value:"purge_comic_covers",title:"Remove Comic Covers",desc:"from every library",confirm:"Are you sure?"}]},{title:"Search Index",tasks:[{value:"search_index_update",title:"Update Search Index",desc:"with recently changed comics"},{value:"search_index_rebuild",title:"Rebuild Search Index",desc:"Delete and rebuild the search index from scratch",confirm:"This can take a long time"},{value:"search_index_remove_stale",title:"Remove Stale Index Entries",desc:"Remove search index entries that are no longer in the library."},{value:"search_index_merge_small",title:"Merge Small Search Index Segments",desc:"Improves search lookup times. Runs nightly if the Optimize Admin Flag is off."},{value:"search_index_optimize",title:"Merge Search Index Into One Segment",desc:"Reduces disk space and improves search lookup times. Runs nightly if the Optimize Admin Flag is on.",confirm:"This can take a long time."},{value:"search_index_abort",title:"Abort Search Indexing",desc:"Aborts search index update and remove tasks."}]},{title:"Database",tasks:[{value:"db_vacuum",title:"Optimize & Compact Database",desc:"Run the sqlite3 optimize & vacuum and pragmas. Runs nightly"},{value:"db_backup",title:"Backup Database",desc:"Runs nightly"},{value:"db_search_sync",title:"Sync Search Index to DB",desc:"Check to see if this database matches the current search index. If there is a mismatch, rebuild the search index. Runs on startup."},{value:"watchdog_sync",title:"Sync Watchdog with DB",desc:"Ensure the Watchdog file watcher is enabled per database preferences for each library"}]},{title:"Codex Software",tasks:[{value:"codex_update",title:"Update Codex",desc:"If Codex updates to a new version, it will restart",confirm:"Are you sure?"},{value:"codex_restart",title:"Restart Codex Server",desc:"Immediately",confirm:"Are you sure?"},{value:"codex_shutdown",title:"Shutdown Codex Server",desc:"Immediately",confirm:"Are you sure?"}]},{title:"Notify",tasks:[{value:"notify_library_changed",title:"Notify Library Changed ",desc:"Signal all clients that the libraries have changed and the browser should fetch new data."},{value:"notify_librarian_status",title:"Notify Librarian Status",desc:"Signal Admin clients to fetch librarian status."}]},{title:"Cleanup",tasks:[{value:"cleanup_fks",title:"Remove Orphan Tags",desc:"After deleting comics, unused linked objects remain in case new comics use them. Runs nightly."},{value:"cleanup_sessions",title:"Cleanup Sessions",desc:"Remove corrupt and expired sessoions. Runs nightly."},{value:"cleanup_covers",title:"Remove Orphan Covers",desc:"from comics that no longer exist. Runs nightly."},{value:"librarian_clear_status",title:"Clear Librarian Statuses",desc:"Mark all Librarian tasks finished."},{value:"janitor_nightly",title:"Run Nightly Maintenance",desc:"Runs several tasks above that also run nightly.",confirm:"Launches several tasks that run nightly anyway."}]}],gB={FV:"Folder View",RG:"Registration",NU:"Non Users",AU:"Auto Update",SO:"Search Index Full Optimization"};const qw={AU:"If enabled, codex will attempt to update the codex python package once a day and restart the server if an update occurred. Not advisable if running from Docker as running containers aren't meant to hold state and will be rebuilt if you update the image. Look into services that automatically update docker images instead.",NU:"By default all Codex features, including bookmarking, are available to users who are not logged in. You may disable this feature and Codex will hide its browser and reader and disable its API from anyone who is not logged in as a user.",RG:"By default users' bookmarks and preferences are saved in an anonymous browser session. Users can create a username and password to save their bookmarks between browsers. You may disable this feature. Admins may still create users.",FV:`By default, codex provides a "Folder View" which mimics the directory hierarchy of the libraries that you've added to Codex. You may disable this feature. The database style browser view is always available. This flag also enables and disables the "Filename" sort option.`,SO:"Fully optimize the search index each night. Disabling this flag will instead run a partial optimization which only merges small files. You should only disable this if the nightly optimization stresses your system too much."};Object.freeze(qw);const pB={name:"AdminFlagsTab",components:{},data(){return{lastUpdate:{name:"",field:void 0},DESC:qw}},computed:{...At(Tt,["formErrors"]),...At(mt,["flags"])},mounted(){this.loadTables(["Flag"])},methods:{...Wt(mt,["updateRow","clearErrors","loadTables"]),changeCol(e,t,n){this.lastUpdate.name=e,this.lastUpdate.field=t;const r={[t]:n};this.updateRow("Flag",e,r)},getFormErrors(e,t){if(e===this.lastUpdate.name&&t===this.lastUpdate.field)return this.formErrors},title(e){return gB[e.key]}}},yB=e=>(Rs("data-v-1bf15713"),e=e(),Is(),e),bB=yB(()=>$("thead",null,[$("tr",null,[$("th",null,"Description"),$("th",null,"Enabled")])],-1)),_B={class:"nameCol"},wB={class:"desc"};function CB(e,t,n,r,s,o){return se(),je(si,{class:"highlight-table flags-table",items:e.flags,"fixed-header":""},{default:ie(()=>[bB,$("tbody",null,[(se(!0),Me(Ke,null,$r(e.flags,l=>(se(),Me("tr",{key:`f${l.key}`},[$("td",_B,[$("h4",null,ye(o.title(l)),1),$("p",wB,ye(s.DESC[l.key]),1)]),$("td",null,[y(Eo,{"model-value":l.on,"true-value":!0,"error-messages":o.getFormErrors(l.key,"on"),"hide-details":"auto","onUpdate:modelValue":u=>o.changeCol(l.key,"on",u)},null,8,["model-value","error-messages","onUpdate:modelValue"])])]))),128))])]),_:1},8,["items"])}const SB=st(pB,[["render",CB],["__scopeId","data-v-1bf15713"]]),xB=Object.freeze(Object.defineProperty({__proto__:null,default:SB},Symbol.toStringTag,{value:"Module"})),AB={name:"RelationChips",props:{pks:{type:Array,required:!0},map:{type:Object,required:!0}}};function EB(e,t,n,r,s,o){return se(),Me("span",null,[(se(!0),Me(Ke,null,$r(n.pks,l=>(se(),je(Sm,{key:l,size:"small"},{default:ie(()=>[ke(ye(n.map[l]),1)]),_:2},1024))),128))])}const Uo=st(AB,[["render",EB]]),TB={name:"AdminCreateUpdateButton",props:{update:{type:Boolean,default:!1},table:{type:String,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{mdiPencil:T3}}},kB={key:1};function PB(e,t,n,r,s,o){return se(),je(jt,Oe({rounded:"",icon:n.update},e.$attrs,{size:n.size,density:n.density}),{default:ie(()=>[n.update?(se(),je(dt,{key:0},{default:ie(()=>[ke(ye(s.mdiPencil),1)]),_:1})):(se(),Me("span",kB,"+ "+ye(n.table),1))]),_:1},16,["icon","size","density"])}const RB=st(TB,[["render",PB]]);const IB={name:"AdminCreateUpdateDialog",components:{AdminCreateUpdateButton:RB,SubmitFooter:Ho},props:{table:{type:String,required:!0},oldRow:{type:[Object,Boolean],default:!1},inputs:{type:Object,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{row:{},showDialog:!1,submitButtonEnabled:!1}},computed:{verb(){return this.oldRow?"Update":"Add"},title(){return(this.oldRow?"Edit":"Add")+" "+this.table}},watch:{showDialog(e){this.row=this.getRow(e)}},methods:{...Wt(mt,["createRow","updateRow"]),validate(){let e=!1;for(const[n,r]of Object.entries(this.row))if(!pr.isEqual(this.oldRow[n],r)){e=!0;break}if(!e)return!1;const t=this.$refs.form;return t?t.validate().then(({valid:n})=>n).catch(()=>!1):!1},change(e){this.row=e,this.submitButtonEnabled=this.validate()},getRow(e){if(!e||!this.oldRow)return pr.cloneDeep(this.inputs.EMPTY_ROW);const t={};for(const n of this.inputs.UPDATE_KEYS)t[n]=pr.cloneDeep(this.oldRow[n]);return t},doUpdate:function(){const e={};for(const[t,n]of Object.entries(this.row))pr.isEqual(this.oldRow[t],n)||(e[t]=n);this.updateRow(this.table,this.oldRow.pk,e).then(()=>(this.showDialog=!1,!0)).catch(console.error)},doCreate:function(){this.createRow(this.table,this.row).then(()=>(this.showDialog=!1,!0)).catch(console.error)},submit:function(){const e=this.$refs.form;e&&e.validate().then(({valid:t})=>{if(t)return this.oldRow?this.doUpdate():this.doCreate()}).catch(console.warn)}}};function LB(e,t,n,r,s,o){const l=Ot("AdminCreateUpdateButton"),u=Ho;return se(),je(nl,Oe({modelValue:s.showDialog,"onUpdate:modelValue":t[1]||(t[1]=f=>s.showDialog=f),transition:"scale-transition"},e.$attrs),{activator:ie(({props:f})=>[y(l,Oe({update:!!n.oldRow,table:n.table},f,{size:n.size,density:n.density,title:o.title}),null,16,["update","table","size","density","title"])]),default:ie(()=>[y(pm,{ref:"form",class:"cuForm"},{default:ie(()=>[$("h2",null,ye(n.table),1),(se(),je(Ls(n.inputs),{"old-row":n.oldRow,onChange:o.change},null,40,["old-row","onChange"])),y(u,{verb:o.verb,table:n.table,disabled:!s.submitButtonEnabled,onSubmit:o.submit,onCancel:t[0]||(t[0]=f=>s.showDialog=!1)},null,8,["verb","table","disabled","onSubmit"])]),_:1},512)]),_:1},16,["modelValue"])}const Tm=st(IB,[["render",LB],["__scopeId","data-v-1643bf88"]]);const OB={name:"DateTimeColumn",props:{dttm:{type:String,default:""}},data(){return{date:new Date(this.dttm)}},computed:{...At(hc,{twentyFourHourTime:e=>e.settings.twentyFourHourTime}),formattedDate:function(){return gw.format(this.date)},formattedTime:function(){return pw(this.twentyFourHourTime).format(this.date)}},created(){}},VB={key:0},MB={class:"colTime"};function FB(e,t,n,r,s,o){return n.dttm?(se(),Me("div",VB,[ke(ye(o.formattedDate)+" ",1),$("div",MB,ye(o.formattedTime),1)])):It("",!0)}const km=st(OB,[["render",FB],["__scopeId","data-v-b06bd477"]]),BB={name:"AdminDeleteRowDialog",components:{ConfirmDialog:Xi},props:{table:{type:String,required:!0},pk:{type:Number,required:!0},name:{type:String,required:!0}},data(){return{mdiTrashCan:P3}},computed:{titleText(){return`Delete ${this.table}`}},methods:{...Wt(mt,["deleteRow"]),confirm(){this.deleteRow(this.table,this.pk),this.showDialog=!1}}};function DB(e,t,n,r,s,o){const l=Xi;return se(),je(l,{icon:s.mdiTrashCan,"title-text":o.titleText,"object-name":n.name,"confirm-text":o.titleText,onConfirm:o.confirm},null,8,["icon","title-text","object-name","confirm-text","onConfirm"])}const Pm=st(BB,[["render",DB]]),$B={name:"AdminRelationPicker"};function HB(e,t,n,r,s,o){return se(),je(hw,Oe({chips:!0,"closable-chips":!0,density:"compact",multiple:!0},e.$attrs),null,16)}const Rm=st($B,[["render",HB]]),Yw=["username","isStaff","isActive","groups"];Object.freeze(Yw);const uh={username:"",password:"",passwordConfirm:"",isStaff:!1,isActive:!0,groups:[]};Object.freeze(uh);const NB={name:"AdminUserCreateUpdateInputs",components:{AdminRelationPicker:Rm},props:{oldRow:{type:[Object,Boolean],default:!1}},emits:["change"],data(){return{rules:{username:[e=>!!e||"Username is required",e=>!!e&&!this.usernames.has(e.trim())||"Username already used"],password:[e=>!!e||"Password is required"],passwordConfirm:[e=>e===this.row.password||"Passwords must match"]},row:pr.cloneDeep(this.oldRow||uh)}},computed:{...Pr(mt,["vuetifyGroups"]),...At(mt,{users:e=>e.users}),usernames(){return this.nameSet(this.users,"username",this.oldRow,!0)}},watch:{row:{handler(e){this.$emit("change",e)},deep:!0},oldRow:{handler(e){this.row=pr.cloneDeep(e)},deep:!0}},methods:{...Wt(mt,["nameSet"])},UPDATE_KEYS:Yw,EMPTY_ROW:uh},UB={key:0};function zB(e,t,n,r,s,o){const l=Ot("AdminRelationPicker");return se(),Me("div",null,[y(wn,{modelValue:s.row.username,"onUpdate:modelValue":t[0]||(t[0]=u=>s.row.username=u),autocomplete:"username",label:"Username",rules:s.rules.username,clearable:"",autofocus:"",onKeydown:t[1]||(t[1]=ui(u=>e.$refs.password.focus(),["enter"]))},null,8,["modelValue","rules"]),n.oldRow?It("",!0):(se(),Me("div",UB,[y(wn,{ref:"password",modelValue:s.row.password,"onUpdate:modelValue":t[2]||(t[2]=u=>s.row.password=u),autocomplete:"new-password",label:"Password",rules:s.rules.password,clearable:"",type:"password",onKeydown:t[3]||(t[3]=ui(u=>e.$refs.passwordConfirm.focus(),["enter"]))},null,8,["modelValue","rules"]),y(wn,{ref:"passwordConfirm",modelValue:s.row.passwordConfirm,"onUpdate:modelValue":t[4]||(t[4]=u=>s.row.passwordConfirm=u),autocomplete:"new-password",label:"Confirm Password",rules:s.rules.passwordConfirm,clearable:"",type:"password"},null,8,["modelValue","rules"])])),y(Eo,{modelValue:s.row.isStaff,"onUpdate:modelValue":t[5]||(t[5]=u=>s.row.isStaff=u),label:"Is Staff"},null,8,["modelValue"]),y(Eo,{modelValue:s.row.isActive,"onUpdate:modelValue":t[6]||(t[6]=u=>s.row.isActive=u),label:"Is Active"},null,8,["modelValue"]),y(l,{modelValue:s.row.groups,"onUpdate:modelValue":t[7]||(t[7]=u=>s.row.groups=u),label:"Groups",items:e.vuetifyGroups},null,8,["modelValue","items"])])}const WB=st(NB,[["render",zB]]),GB={name:"AdminUsersTab",components:{AdminDeleteRowDialog:Pm,ChangePasswordDialog:Pc,AdminCreateUpdateDialog:Tm,DateTimeColumn:km,RelationChips:Uo,VDataTableVirtual:No},data(){return{AdminUserCreateUpdateInputs:zn(WB),headers:[{title:"Username",key:"username",align:"start"},{title:"Staff",key:"isStaff"},{title:"Active",key:"isActive"},{title:"Groups",key:"groups"},{title:"Last Active",key:"lastActive"},{title:"Last Login",key:"lastLogin"},{title:"Joined",key:"dateJoined"},{title:"Actions",key:"actions",sortable:!1}]}},computed:{...Pr(mt,["groupMap"]),...At(mt,{users:e=>e.users}),...At(Sn,{me:e=>e.user})},mounted(){this.loadTables(["Group","User"])},methods:{...Wt(mt,["loadTables"])}},jB={class:"tabHeader"},KB=$("td",{class:"adminNoData",colspan:"100%"},[ke(" No Users. "),$("div",null,[ke(" This is an error. There should always be at least one Staff user."),$("br"),ke(" You should not be able to see this page"),$("br"),ke(" You should restart Codex with the CODEX_RESET_ADMIN=1 variable set."),$("br"),ke(" See the "),$("a",{href:"https://github.com/ajslater/codex#reset-the-admin-password",target:"_blank"}," README ")])],-1);function qB(e,t,n,r,s,o){const l=Ot("AdminCreateUpdateDialog"),u=Uo,f=Ot("DateTimeColumn"),d=Pc,h=Ot("AdminDeleteRowDialog"),m=No;return se(),Me("div",null,[$("header",jB,[y(l,{table:"User",inputs:s.AdminUserCreateUpdateInputs,"max-width":"20em"},null,8,["inputs"])]),y(m,{"fixed-headers":"","item-value":"pk","item-title":"username",headers:s.headers,items:e.users,class:"adminTable"},{"no-data":ie(()=>[KB]),["item.isStaff"]:ie(({item:v})=>[y(Er,{"model-value":v.raw.isStaff,disabled:""},null,8,["model-value"])]),["item.isActive"]:ie(({item:v})=>[y(Er,{"model-value":v.raw.isActive,disabled:""},null,8,["model-value"])]),["item.groups"]:ie(({item:v})=>[y(u,{pks:v.raw.groups,map:e.groupMap},null,8,["pks","map"])]),["item.lastActive"]:ie(({item:v})=>[y(f,{dttm:v.raw.lastActive},null,8,["dttm"])]),["item.lastLogin"]:ie(({item:v})=>[y(f,{dttm:v.raw.lastLogin},null,8,["dttm"])]),["item.dateJoined"]:ie(({item:v})=>[y(f,{dttm:v.raw.dateJoined},null,8,["dttm"])]),["item.actions"]:ie(({item:v})=>[y(l,{table:"User",inputs:s.AdminUserCreateUpdateInputs,"old-row":v.raw,"max-width":"20em",size:"small",density:"compact"},null,8,["inputs","old-row"]),y(d,{user:v.raw,"is-admin-mode":!0,size:"small",density:"compact"},null,8,["user"]),e.me.id!==v.raw.pk?(se(),je(h,{key:0,table:"User",pk:v.raw.pk,name:v.raw.username,size:"small",density:"compact"},null,8,["pk","name"])):It("",!0)]),_:2},1032,["headers","items"])])}const YB=st(GB,[["render",qB]]),ZB=Object.freeze(Object.defineProperty({__proto__:null,default:YB},Symbol.toStringTag,{value:"Module"})),Zw=["name","userSet","librarySet"];Object.freeze(Zw);const ch={name:"",userSet:[],librarySet:[]};Object.freeze(ch);const XB={name:"AdminGroupCreateUpdateInputs",components:{AdminRelationPicker:Rm},props:{oldRow:{type:[Object,Boolean],default:!1}},emits:["change"],data(){return{rules:{name:[e=>!!e||"Name is required",e=>!!e&&!this.names.has(e.trim())||"Name already used"]},row:pr.cloneDeep(this.oldRow||ch)}},computed:{...Pr(mt,["vuetifyLibraries","vuetifyUsers"]),...At(mt,{groups:e=>e.groups}),names(){return this.nameSet(this.groups,"name",this.oldRow,!0)}},watch:{row:{handler(e){this.$emit("change",e)},deep:!0},oldRow:{handler(e){this.row=pr.cloneDeep(e)},deep:!0}},methods:{...Wt(mt,["nameSet"])},UPDATE_KEYS:Zw,EMPTY_ROW:ch};function JB(e,t,n,r,s,o){const l=Ot("AdminRelationPicker");return se(),Me("div",null,[y(wn,{modelValue:s.row.name,"onUpdate:modelValue":t[0]||(t[0]=u=>s.row.name=u),label:"Group Name",rules:s.rules.name,clearable:"",autofocus:""},null,8,["modelValue","rules"]),y(l,{"model-value":s.row.userSet,label:"Users",items:e.vuetifyUsers,"onUpdate:modelValue":t[1]||(t[1]=u=>s.row.userSet=u)},null,8,["model-value","items"]),y(l,{"model-value":s.row.librarySet,label:"Libraries",items:e.vuetifyLibraries,"onUpdate:modelValue":t[2]||(t[2]=u=>s.row.librarySet=u)},null,8,["model-value","items"])])}const QB=st(XB,[["render",JB]]);const e6=180,t6={name:"AdminGroupsTab",components:{AdminDeleteRowDialog:Pm,AdminCreateUpdateDialog:Tm,RelationChips:Uo,VDataTableVirtual:No},data(){return{lastUpdate:{pk:0,field:void 0},AdminGroupCreateUpdateInputs:zn(QB),GROUP_HELP_HEIGHT:e6,headers:[{title:"Name",key:"name",align:"start"},{title:"Users",key:"userSet"},{title:"Libraries",key:"librarySet"},{title:"Actions",key:"actions",sortable:!1}]}},computed:{...At(mt,{groups:e=>e.groups}),...Pr(mt,["libraryMap","userMap"])},mounted(){this.loadTables(["User","Library","Group"])},methods:{...Wt(mt,["loadTables"])}},Xw=e=>(Rs("data-v-75e1ab4e"),e=e(),Is(),e),n6={class:"tabHeader"},r6=Xw(()=>$("td",{class:"adminNoData",colspan:"100%"},"No groups",-1)),i6=Xw(()=>$("div",{id:"groupHelp"},[$("h3",null,"Group Logic"),$("p",null," A library with no groups is accessible to every user and non-users if those are enabled. "),$("p",null,[ke(" A library with "),$("em",null,"any"),ke(" groups is accessible "),$("em",null,"only"),ke(" to users who are in those groups. ")]),$("p",null," If you have libraries added and you do not see them in your browser, check to see if the library and your user are in the same group. ")],-1));function s6(e,t,n,r,s,o){const l=Ot("AdminCreateUpdateDialog"),u=Uo,f=Ot("AdminDeleteRowDialog"),d=No;return se(),Me("div",null,[$("header",n6,[y(l,{table:"Group","max-width":"20em",inputs:s.AdminGroupCreateUpdateInputs},null,8,["inputs"])]),y(d,{class:"adminTable","fixed-headers":"","item-value":"pk","item-title":"name",headers:s.headers,items:e.groups},{"no-data":ie(()=>[r6]),["item.userSet"]:ie(({item:h})=>[y(u,{pks:h.raw.userSet,map:e.userMap},null,8,["pks","map"])]),["item.librarySet"]:ie(({item:h})=>[y(u,{pks:h.raw.librarySet,map:e.libraryMap},null,8,["pks","map"])]),["item.actions"]:ie(({item:h})=>[y(l,{table:"Group","old-row":h.raw,"max-width":"20em",inputs:s.AdminGroupCreateUpdateInputs,size:"small",density:"compact"},null,8,["old-row","inputs"]),y(f,{table:"Group",pk:h.raw.pk,name:h.raw.name,size:"small",density:"compact"},null,8,["pk","name"])]),_:2},1032,["headers","items"]),i6])}const o6=st(t6,[["render",s6],["__scopeId","data-v-75e1ab4e"]]),a6=Object.freeze(Object.defineProperty({__proto__:null,default:o6},Symbol.toStringTag,{value:"Module"}));const l6={name:"AdminFailedImportsPanel",components:{DateTimeColumn:km},data(){return{mdiBookAlert:g3,mdiOpenInNew:pc}},computed:{...At(mt,["failedImports"]),...zh(mt,["unseenFailedImports"])},created(){this.unseenFailedImports=!0}},Ms=e=>(Rs("data-v-bc6470a2"),e=e(),Is(),e),u6={key:0,id:"failedImports"},c6=Ms(()=>$("thead",null,[$("tr",null,[$("th",null,"Path"),$("th",null,"Created")])],-1)),f6={class:"dateCol"},d6=Ms(()=>$("h4",null,"Failed Imports Help",-1)),h6=Ms(()=>$("p",null," These are Comic archives that have failed to import. This list is updated every time the library updates. You should probably review these files and fix or remove them. ",-1)),m6=Ms(()=>$("h4",null,"Fixing comics",-1)),v6=Ms(()=>$("p",null,[ke(" Try using the zip fixer to fix comics: "),$("code",{class:"cli"},[ke(" cp problem-comic.cbz /somewhere/safe/problem-comic.cbz.backup"),$("br"),ke(" zip -F problem-comic.cbz --out fixed.zip"),$("br"),ke(" mv fixed.zip problem-comic.cbz ")]),ke(" You may also try "),$("code",null,"zip -FF"),ke(" to fix comics which uses a different (not necissarily better) algorithm. If you fix some imports, and Codex does not immediately detect the change, poll the library which contains the fixed comics. ")],-1)),g6=Ms(()=>$("h4",null,"Reporting Issues",-1)),p6={href:"https://github.com/ajslater/codex/issues/",target:"_blank"},y6=Ms(()=>$("code",null,"config/logs/codex.log",-1));function b6(e,t,n,r,s,o){const l=Ot("DateTimeColumn");return e.failedImports&&e.failedImports.length>0?(se(),Me("div",u6,[y(my,null,{default:ie(()=>[y(vy,{id:"failedImportsPanel",onClick:t[0]||(t[0]=u=>e.unseenFailedImports=!1)},{default:ie(()=>[y(ah,null,{default:ie(()=>[$("h4",null,"Failed Imports: "+ye(e.failedImports.length),1),e.unseenFailedImports?(se(),je(dt,{key:0,id:"failedImportsIcon",title:"New Failed Imports"},{default:ie(()=>[ke(ye(s.mdiBookAlert),1)]),_:1})):It("",!0)]),_:1}),y(lh,null,{default:ie(()=>[y(si,{class:"highlight-table"},{default:ie(()=>[c6,$("tbody",null,[(se(!0),Me(Ke,null,$r(e.failedImports,u=>(se(),Me("tr",{key:`fi:${u.path}`},[$("td",null,ye(u.path),1),$("td",f6,[y(l,{dttm:u.createdAt},null,8,["dttm"])])]))),128))])]),_:1}),y(my,null,{default:ie(()=>[y(vy,{id:"failedImportsHelp"},{default:ie(()=>[y(ah,null,{default:ie(()=>[d6]),_:1}),y(lh,null,{default:ie(()=>[h6,m6,v6,g6,$("p",null,[ke(" If the comic looks good to you, but still shows up as a failed import, it might be Codex's fault for not importing it correctly. Please file an "),$("a",p6,[ke("Issue Report"),y(dt,{size:"small"},{default:ie(()=>[ke(ye(s.mdiOpenInNew),1)]),_:1})]),ke(" and include the stack trace from the logs at "),y6,ke(" if you can. ")])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])):It("",!0)}const _6=st(l6,[["render",b6],["__scopeId","data-v-bc6470a2"]]),w6={name:"TimeTextField",data(){return{FORMAT:"DDD HH:mm:SS",timeRules:[e=>/^(\d{1,3} )?([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(e)||`Invalid time format ${this.FORMAT}`]}}};function C6(e,t,n,r,s,o){return se(),je(wn,Oe({ref:"timeField",density:"compact",filled:"",hint:s.FORMAT,round:"",rules:s.timeRules},e.$attrs),null,16,["hint","rules"])}const Jw=st(w6,[["render",C6]]);const S6={name:"AdminServerFolderPicker",emits:["change","menu"],data(){return{path:"",originalPath:"",showHidden:!1,menuOpen:!1}},computed:{...At(mt,{folders:e=>e.folderPicker.folders,rootFolder:e=>e.folderPicker.rootFolder}),...At(Tt,{formErrors:e=>e.form.errors}),appendOuterIcon(){return this.showHidden?this.mdiFolderHidden:this.mdiFolderOutline},showHiddenTooltipPrefix(){return this.showHidden?"Hide":"Show"}},watch:{menuOpen(e){e&&this.$emit("menu",e)}},created(){this.loadFolders().then(()=>(this.path=this.rootFolder,this.originalPath=this.rootFolder,!0)).catch(console.warn)},methods:{...Wt(mt,["clearFolders","loadFolders"]),...Wt(Tt,["clearErrors"]),change(e){const t=e?e.startsWith("/")||e.startsWith("\\")?e:[this.rootFolder,e].join("/"):this.rootFolder,n=this.menuOpen;this.clearErrors(),this.loadFolders(t,this.showHidden).then(()=>{this.menuOpen=n;let r="";return this.formErrors.length===0&&(this.path=r=this.rootFolder),this.$emit("change",r)}).catch(console.warn)},onBlur(){this.menuOpen=!1,this.change(this.path)},onClear(){this.clearFolders(this.orignalPath).then(()=>this.change(this.orginalPath)).catch(console.error)},onKeyDownEnter(){this.change(this.path)},onItemClick(e){this.change(e)}}},x6={id:"folderPicker"};function A6(e,t,n,r,s,o){return se(),Me("div",x6,[y(KF,Oe({modelValue:s.path,"onUpdate:modelValue":t[0]||(t[0]=l=>s.path=l),menu:s.menuOpen,"onUpdate:menu":t[1]||(t[1]=l=>s.menuOpen=l)},e.$attrs,{"aria-label":"Library folder",clearable:"","error-messages":e.formErrors,"full-width":"","hide-details":"auto",items:e.folders,"menu-props":{maxHeight:"370px"},"validate-on":"blur",variant:"filled",onBlur:o.onBlur,"onClick:clear":o.onClear,onKeydown:ui(o.onKeyDownEnter,["enter"])}),{item:ie(({item:l,props:u})=>[y(Ar,Oe(u,{title:l.title,value:l.value,onClick:f=>o.onItemClick(l.value)}),null,16,["title","value","onClick"])]),_:1},16,["modelValue","menu","error-messages","items","onBlur","onClick:clear","onKeydown"]),y(Eo,{modelValue:s.showHidden,"onUpdate:modelValue":t[2]||(t[2]=l=>s.showHidden=l),density:"compact",class:"showHidden","hide-details":"auto",label:"Show Hidden Folders"},null,8,["modelValue"])])}const E6=st(S6,[["render",A6],["__scopeId","data-v-3cf2705f"]]),Qw=["events","poll","pollEvery","groups"];Object.freeze(Qw);const fh={path:"",events:!0,poll:!0,pollEvery:"01:00:00",groups:[]};Object.freeze(fh);const gy=(e,t)=>(e=e.replaceAll("\\","/"),t=t.replaceAll("\\","/"),e.endsWith("/")||(e+="/"),t.endsWith("/")||(t+="/"),t.startsWith(e)),T6={name:"AdminLibraryCreateUpdateInputs",components:{AdminRelationPicker:Rm,AdminServerFolderPicker:E6,TimeTextField:Jw},props:{oldRow:{type:[Object,Boolean],default:!1}},emits:["change"],data(){return{rules:{path:[e=>!!e||"Path is required",e=>{if(!e)return!1;for(const t of this.paths){if(gy(t,e))return"Path is a child of an existing library";if(gy(e,t))return"Path is a parent of an existing library"}return!0}]},row:pr.cloneDeep(this.oldRow||fh)}},computed:{...Pr(mt,["vuetifyGroups"]),...At(mt,{libraries:e=>e.libraries}),paths(){return this.nameSet(this.libraries,"path",this.oldRow,!1)}},watch:{row:{handler(e){this.$emit("change",e)},deep:!0},oldRow:{handler(e){this.row=pr.cloneDeep(e)},deep:!0}},methods:{...Wt(mt,["nameSet"])},UPDATE_KEYS:Qw,EMPTY_ROW:fh},k6={key:1};function P6(e,t,n,r,s,o){const l=Ot("AdminServerFolderPicker"),u=Jw,f=Ot("AdminRelationPicker");return se(),Me(Ke,null,[n.oldRow?(se(),Me("div",k6,ye(n.oldRow.path),1)):(se(),je(l,{key:0,rules:s.rules.path,autofocus:"",label:"Library Folder",onChange:t[0]||(t[0]=d=>s.row.path=d)},null,8,["rules"])),y(Eo,{modelValue:s.row.events,"onUpdate:modelValue":t[1]||(t[1]=d=>s.row.events=d),"hide-details":"auto",hint:"Update Codex instantly when the filesystem changes",label:"Watch Filesystem Events","persistent-hint":!0},null,8,["modelValue"]),y(Eo,{modelValue:s.row.poll,"onUpdate:modelValue":t[2]||(t[2]=d=>s.row.poll=d),label:"Poll Filesystem Periodically","hide-details":"auto",hint:"Periodically poll the library for changes","persistent-hint":!0},null,8,["modelValue"]),y(u,{modelValue:s.row.pollEvery,"onUpdate:modelValue":t[3]||(t[3]=d=>s.row.pollEvery=d),label:"Poll Every",disabled:!s.row.poll},null,8,["modelValue","disabled"]),y(f,{modelValue:s.row.groups,"onUpdate:modelValue":t[4]||(t[4]=d=>s.row.groups=d),label:"Groups",items:e.vuetifyGroups},null,8,["modelValue","items"])],64)}const R6=st(T6,[["render",P6]]);const I6={name:"AdminLibrariesTab",components:{VDataTableVirtual:No,AdminDeleteRowDialog:Pm,AdminFailedImportsPanel:_6,AdminCreateUpdateDialog:Tm,RelationChips:Uo,ConfirmDialog:Xi,DateTimeColumn:km},data(){return{lastUpdate:{pk:0,field:void 0},mdiDatabaseClockOutline:_3,mdiDatabaseImportOutline:w3,mdiOpenInNew:pc,AdminLibraryCreateUpdateInputs:zn(R6),headers:[{title:"Path",key:"path",align:"start"},{title:"Watch File Events",key:"events"},{title:"Poll Files Periodically",key:"poll"},{title:"Poll Every",key:"pollEvery"},{title:"Last Poll",key:"lastPoll"},{title:"Groups",key:"groups"},{title:"Actions",key:"actions",sortable:!1}]}},computed:{...Pr(mt,["groupMap"]),...At(mt,{libraries:e=>e.libraries,formErrors:e=>e.form.errors}),...At(hc,{twentyFourHourTime:e=>e.settings.twentyFourHourTime})},mounted(){this.loadTables(["Group","Library","FailedImport"])},methods:{...Wt(mt,["updateRow","clearErrors","librarianTask","loadTables"]),formatDateTime:e=>e?YF(e,globalThis.twentyFourHourTime):"",changeCol(e,t,n){this.lastUpdate.pk=e,this.lastUpdate.field=t;const r={[t]:n};this.updateRow("Library",e,r)},getFormErrors(e,t){if(e===this.lastUpdate.pk&&t===this.lastUpdate.field)return this.formErrors},poll(e){this.librarianTask("poll",`Poll Library ${e}`,e)},forcePoll(e){this.librarianTask("poll_force",`Force Poll Library ${e}`,e)}}},L6=e=>(Rs("data-v-9c876310"),e=e(),Is(),e),O6={class:"tabHeader"},V6=L6(()=>$("td",{class:"adminNoData",colspan:"100%"}," Add a Library to start using Codex ",-1));function M6(e,t,n,r,s,o){const l=Ot("AdminCreateUpdateDialog"),u=Ot("DateTimeColumn"),f=Uo,d=Xi,h=Ot("AdminDeleteRowDialog"),m=No,v=Ot("AdminFailedImportsPanel");return se(),Me("div",null,[$("header",O6,[y(l,{table:"Library",inputs:s.AdminLibraryCreateUpdateInputs},null,8,["inputs"])]),y(m,{class:"adminTable","fixed-headers":"","item-value":"pk","item-title":"path",headers:s.headers,items:e.libraries,"sort-by":[{key:"path",order:"asc"}]},{"no-data":ie(()=>[V6]),["item.events"]:ie(({item:p})=>[y(Er,{"model-value":p.raw.events,disabled:""},null,8,["model-value"])]),["item.poll"]:ie(({item:p})=>[y(Er,{"model-value":p.raw.poll,disabled:""},null,8,["model-value"])]),["item.pollEvery"]:ie(({item:p})=>[$("span",{class:br({disabled:!p.raw.poll})},ye(p.raw.pollEvery),3)]),["item.lastPoll"]:ie(({item:p})=>[y(u,{dttm:p.raw.lastPoll},null,8,["dttm"])]),["item.groups"]:ie(({item:p})=>[y(f,{pks:p.raw.groups,map:e.groupMap},null,8,["pks","map"])]),["item.actions"]:ie(({item:p})=>[y(d,{icon:s.mdiDatabaseClockOutline,"title-text":"Poll for updated comics in","object-name":p.raw.path,"confirm-text":"Poll Library",size:"small",density:"compact",onConfirm:b=>o.poll(p.raw.pk)},null,8,["icon","object-name","onConfirm"]),y(d,{icon:s.mdiDatabaseImportOutline,"title-text":"Force update every comic in","object-name":p.raw.path,"confirm-text":"Force Update",size:"small",density:"compact",onConfirm:b=>o.forcePoll(p.raw.pk)},null,8,["icon","object-name","onConfirm"]),y(l,{table:"Library","old-row":p.raw,inputs:s.AdminLibraryCreateUpdateInputs,"max-width":"22em",size:"small",density:"compact"},null,8,["old-row","inputs"]),y(h,{table:"Library",pk:p.raw.pk,name:p.raw.path,size:"small",density:"compact"},null,8,["pk","name"])]),_:2},1032,["headers","items"]),y(Qa,null,{default:ie(()=>[y(v)]),_:1})])}const F6=st(I6,[["render",M6],["__scopeId","data-v-9c876310"]]),B6=Object.freeze(Object.defineProperty({__proto__:null,default:F6},Symbol.toStringTag,{value:"Module"}));const D6={name:"AdminTasksTab",components:{ConfirmDialog:Xi},data(){return{tasks:vB}},computed:{...At(Tt,{formSuccess:e=>e.form.success,formErrors:e=>e.form.errors})},methods:{...Wt(mt,["librarianTask"])}},$6=e=>(Rs("data-v-91b96721"),e=e(),Is(),e),H6={id:"tasks"},N6=$6(()=>$("span",{id:"lastTaskLabel"},"Last Task Queued:",-1)),U6={key:0,id:"success"},z6={key:1,id:"error"},W6={key:2,id:"noRecentTask"},G6={class:"taskBox"},j6={class:"taskDesc"};function K6(e,t,n,r,s,o){const l=Xi;return se(),Me("div",H6,[$("div",null,[N6,$("span",null,[e.formSuccess?(se(),Me("span",U6,ye(e.formSuccess),1)):e.formErrors&&e.formErrors.length>0?(se(),Me("span",z6,[(se(!0),Me(Ke,null,$r(e.formErrors,u=>(se(),Me("span",{key:u},ye(u),1))),128))])):(se(),Me("span",W6,"No recent task"))])]),(se(!0),Me(Ke,null,$r(s.tasks,u=>(se(),Me("div",{key:u.title,"fixed-header":"",class:"taskGroup"},[$("h3",null,ye(u.title),1),(se(!0),Me(Ke,null,$r(u.tasks,f=>(se(),Me("div",{key:f.value,class:br(["trow",{selected:!1}])},[$("div",G6,[f.confirm?(se(),je(l,{key:0,"button-text":f.title,"title-text":f.title,"object-name":f.confirm,"confirm-text":"Confirm",onConfirm:d=>e.librarianTask(f.value,f.title)},null,8,["button-text","title-text","object-name","onConfirm"])):(se(),je(jt,{key:1,block:"",onClick:d=>e.librarianTask(f.value,f.title)},{default:ie(()=>[ke(ye(f.title),1)]),_:2},1032,["onClick"])),$("div",j6,ye(f.desc),1)])]))),128))]))),128))])}const q6=st(D6,[["render",K6],["__scopeId","data-v-91b96721"]]),Y6=Object.freeze(Object.defineProperty({__proto__:null,default:q6},Symbol.toStringTag,{value:"Module"}));const Z6={name:"AdminTasksTab",components:{ConfirmDialog:Xi},data(){return{showTooltip:{show:!1},apiSchemaURL:window.CODEX.API_V3_PATH}},computed:{...At(Tt,{}),...At(mt,{stats:e=>e.stats}),clipBoardIcon(){return this.showTooltip?Xb:Jb}},created(){this.loadStats()},methods:{...Wt(mt,["loadStats","updateAPIKey"]),regenAPIKey(){this.updateAPIKey().then(this.loadStats).catch(console.warn)},nf(e){return mw.numberFormat(e,0)},onClickAPIKey(){n_(this.stats.config.apiKey,this.showTooltip)}}},ot=e=>(Rs("data-v-2c39476d"),e=e(),Is(),e),X6={key:0,id:"stats"},J6={class:"statBlock"},Q6=ot(()=>$("h3",null,"Platform",-1)),eD=ot(()=>$("td",null,"Docker",-1)),tD=ot(()=>$("td",null,"Machine",-1)),nD=ot(()=>$("td",null,"System",-1)),rD=ot(()=>$("td",null,"Python",-1)),iD=ot(()=>$("td",null,"Codex",-1)),sD={class:"statBlock"},oD=ot(()=>$("h3",null,"Config",-1)),aD=ot(()=>$("td",null,"Libraries",-1)),lD=ot(()=>$("td",null,"Anonymous Users",-1)),uD=ot(()=>$("td",null,"Registered Users",-1)),cD=ot(()=>$("td",null,"Groups",-1)),fD={class:"statBlock"},dD=ot(()=>$("h3",null,"Groups",-1)),hD=ot(()=>$("td",null,"Folders",-1)),mD=ot(()=>$("td",null,"Publishers",-1)),vD=ot(()=>$("td",null,"Imprints",-1)),gD=ot(()=>$("td",null,"Series",-1)),pD=ot(()=>$("td",null,"Volumes",-1)),yD=ot(()=>$("td",null,"Issues",-1)),bD={key:0},_D=ot(()=>$("td",{class:"indent"},"CBZ",-1)),wD={key:1},CD=ot(()=>$("td",{class:"indent"},"CBR",-1)),SD={key:2},xD=ot(()=>$("td",{class:"indent"},"CBX",-1)),AD={key:3},ED=ot(()=>$("td",{class:"indent"},"CBT",-1)),TD={key:4},kD=ot(()=>$("td",{class:"indent"},"PDF",-1)),PD={key:5},RD=ot(()=>$("td",{class:"indent"},"Unknown",-1)),ID={class:"statBlock"},LD=ot(()=>$("h3",null,"Metadata",-1)),OD=ot(()=>$("td",null,"Characters",-1)),VD=ot(()=>$("td",null,"Genres",-1)),MD=ot(()=>$("td",null,"Locations",-1)),FD=ot(()=>$("td",null,"Series Groups",-1)),BD=ot(()=>$("td",null,"Story Arcs",-1)),DD=ot(()=>$("td",null,"Tags",-1)),$D=ot(()=>$("td",null,"Teams",-1)),HD=ot(()=>$("td",null,"Credits",-1)),ND=ot(()=>$("td",{class:"indent"},"Roles",-1)),UD=ot(()=>$("td",{class:"indent"},"Creators",-1)),zD={class:"statBlock"},WD=ot(()=>$("h3",null,"API",-1)),GD=ot(()=>$("td",null,"Schema Documentation:",-1)),jD={id:"schemaDocValue"},KD=["href"],qD={class:"copied"},YD={id:"apiKey"},ZD={colspan:"2"};function XD(e,t,n,r,s,o){const l=Xi;return e.stats?(se(),Me("div",X6,[$("div",J6,[Q6,y(si,{class:"highlight-table"},{default:ie(()=>[$("tbody",null,[$("tr",null,[eD,$("td",null,ye(e.stats.platform.docker),1)]),$("tr",null,[tD,$("td",null,ye(e.stats.platform.machine),1)]),$("tr",null,[nD,$("td",null,ye(e.stats.platform.system)+" "+ye(e.stats.platform.systemRelease),1)]),$("tr",null,[rD,$("td",null,ye(e.stats.platform.python),1)]),$("tr",null,[iD,$("td",null,ye(e.stats.platform.codex),1)])])]),_:1})]),$("div",sD,[oD,y(si,{class:"highlight-table"},{default:ie(()=>[$("tbody",null,[$("tr",null,[aD,$("td",null,ye(o.nf(e.stats.config.libraryCount)),1)]),$("tr",null,[lD,$("td",null,ye(o.nf(e.stats.config.sessionAnonCount)),1)]),$("tr",null,[uD,$("td",null,ye(o.nf(e.stats.config.userCount)),1)]),$("tr",null,[cD,$("td",null,ye(o.nf(e.stats.config.groupCount)),1)])])]),_:1})]),$("div",fD,[dD,y(si,{class:"highlight-table"},{default:ie(()=>[$("tbody",null,[$("tr",null,[hD,$("td",null,ye(o.nf(e.stats.groups.folderCount)),1)]),$("tr",null,[mD,$("td",null,ye(o.nf(e.stats.groups.publisherCount)),1)]),$("tr",null,[vD,$("td",null,ye(o.nf(e.stats.groups.imprintCount)),1)]),$("tr",null,[gD,$("td",null,ye(o.nf(e.stats.groups.seriesCount)),1)]),$("tr",null,[pD,$("td",null,ye(o.nf(e.stats.groups.volumeCount)),1)]),$("tr",null,[yD,$("td",null,ye(o.nf(e.stats.groups.comicCount)),1)]),e.stats.fileTypes.cbzCount?(se(),Me("tr",bD,[_D,$("td",null,ye(o.nf(e.stats.fileTypes.cbzCount)),1)])):It("",!0),e.stats.fileTypes.cbrCount?(se(),Me("tr",wD,[CD,$("td",null,ye(o.nf(e.stats.fileTypes.cbrCount)),1)])):It("",!0),e.stats.fileTypes.cbxCount?(se(),Me("tr",SD,[xD,$("td",null,ye(o.nf(e.stats.fileTypes.cbxCount)),1)])):It("",!0),e.stats.fileTypes.cbtCount?(se(),Me("tr",AD,[ED,$("td",null,ye(o.nf(e.stats.fileTypes.cbtCount)),1)])):It("",!0),e.stats.fileTypes.pdfCount?(se(),Me("tr",TD,[kD,$("td",null,ye(o.nf(e.stats.fileTypes.pdfCount)),1)])):It("",!0),e.stats.fileTypes.unknownCount?(se(),Me("tr",PD,[RD,$("td",null,ye(o.nf(e.stats.fileTypes.unknownCount)),1)])):It("",!0)])]),_:1})]),$("div",ID,[LD,y(si,{class:"highlight-table"},{default:ie(()=>[$("tbody",null,[$("tr",null,[OD,$("td",null,ye(o.nf(e.stats.metadata.characterCount)),1)]),$("tr",null,[VD,$("td",null,ye(o.nf(e.stats.metadata.genreCount)),1)]),$("tr",null,[MD,$("td",null,ye(o.nf(e.stats.metadata.locationCount)),1)]),$("tr",null,[FD,$("td",null,ye(o.nf(e.stats.metadata.seriesGroupCount)),1)]),$("tr",null,[BD,$("td",null,ye(o.nf(e.stats.metadata.storyArcCount)),1)]),$("tr",null,[DD,$("td",null,ye(o.nf(e.stats.metadata.tagCount)),1)]),$("tr",null,[$D,$("td",null,ye(o.nf(e.stats.metadata.teamCount)),1)]),$("tr",null,[HD,$("td",null,ye(o.nf(e.stats.metadata.creatorCount)),1)]),$("tr",null,[ND,$("td",null,ye(o.nf(e.stats.metadata.creatorRoleCount)),1)]),$("tr",null,[UD,$("td",null,ye(o.nf(e.stats.metadata.creatorPersonCount)),1)])])]),_:1})]),$("div",zD,[WD,y(si,{class:"highlight-table"},{default:ie(()=>[$("tbody",null,[$("tr",null,[GD,$("td",jD,[ke(" The only endpoint accessible with API Key access is "),$("a",{href:`${s.apiSchemaURL}#/api/api_v3_admin_stats_retrieve`,target:"_blank"},"/admin/stats",8,KD)])]),$("tr",{id:"apiKeyRow",onClick:t[0]||(t[0]=(...u)=>o.onClickAPIKey&&o.onClickAPIKey(...u))},[$("td",null,[ke(" API Key "),y(dt,{class:"clipBoardIcon",size:"small"},{default:ie(()=>[ke(ye(o.clipBoardIcon),1)]),_:1}),y(Mu,null,{default:ie(()=>[Kt($("span",qD,"Copied",512),[[ar,s.showTooltip.show]])]),_:1})]),$("td",YD,ye(e.stats.config.apiKey),1)]),$("tr",null,[$("td",ZD,[y(l,{"button-text":"Regenerate API Key","title-text":"Regenerate","object-name":"API Key","confirm-text":"Regenerate",onConfirm:o.regenAPIKey},null,8,["onConfirm"])])])])]),_:1})])])):It("",!0)}const JD=st(Z6,[["render",XD],["__scopeId","data-v-2c39476d"]]),QD=Object.freeze(Object.defineProperty({__proto__:null,default:JD},Symbol.toStringTag,{value:"Module"}));export{f8 as $,S8 as A,Pr as B,Sn as C,Ot as D,dt as E,Ke as F,f_ as G,t8 as H,Ga as I,ir as J,Tt as K,mr as L,hc as M,Pe as N,o8 as O,Gt as P,en as Q,a8 as R,Mo as S,Be as T,Ab as U,$u as V,ji as W,s8 as X,c8 as Y,l8 as Z,P_ as _,At as a,J8 as a$,u8 as a0,Vo as a1,sm as a2,l3 as a3,F1 as a4,d3 as a5,Yb as a6,Yt as a7,qt as a8,ur as a9,Eo as aA,oR as aB,aR as aC,Oe as aD,hw as aE,b8 as aF,_8 as aG,zh as aH,fV as aI,cV as aJ,z8 as aK,wn as aL,z_ as aM,W8 as aN,I8 as aO,w8 as aP,H8 as aQ,$8 as aR,F8 as aS,ui as aT,KF as aU,Nb as aV,oF as aW,k8 as aX,Z8 as aY,gw as aZ,YF as a_,Jt as aa,h3 as ab,kr as ac,nt as ad,X as ae,Tr as af,Fe as ag,Ln as ah,Oh as ai,Lh as aj,dn as ak,A0 as al,II as am,y8 as an,br as ao,L8 as ap,v8 as aq,jt as ar,DM as as,tw as at,cF as au,m8 as av,dh as aw,$h as ax,si as ay,nl as az,Wt as b,G8 as b$,Xi as b0,x8 as b1,Fd as b2,fw as b3,E8 as b4,T8 as b5,NM as b6,HM as b7,D_ as b8,Fo as b9,XM as bA,A8 as bB,P8 as bC,q8 as bD,K8 as bE,Cm as bF,ih as bG,kc as bH,Za as bI,Z_ as bJ,Ct as bK,P as bL,mc as bM,Ao as bN,G_ as bO,j8 as bP,CM as bQ,B8 as bR,D8 as bS,O8 as bT,V8 as bU,h8 as bV,vy as bW,ah as bX,lh as bY,my as bZ,s_ as b_,Dt as ba,Do as bb,Bo as bc,pt as bd,Kt as be,_r as bf,oi as bg,ar as bh,E3 as bi,FF as bj,ew as bk,zn as bl,zM as bm,p8 as bn,g8 as bo,Y8 as bp,M8 as bq,d8 as br,Ih as bs,Ls as bt,lr as bu,pr as bv,RF as bw,PF as bx,Q8 as by,y3 as bz,st as c,Ve as c0,Rr as c1,pi as c2,Se as c3,i8 as c4,Ia as c5,kt as c6,xo as c7,tl as c8,xr as c9,Ae as ca,yi as cb,U8 as cc,r8 as cd,Ir as ce,Wn as cf,j_ as cg,Tc as ch,Zh as ci,$_ as cj,R8 as ck,Sm as cl,X8 as cm,vs as cn,N8 as co,$M as cp,n8 as cq,e8 as cr,Me as d,je as e,It as f,y as g,mw as h,Qa as i,$ as j,ke as k,Z3 as l,C8 as m,rl as n,se as o,Ar as p,Rs as q,$r as r,e$ as s,ye as t,mt as u,Is as v,ie as w,g3 as x,pc as y,_3 as z};
|