codex 1.6.16__py3-none-any.whl → 1.6.17__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/librarian/janitor/update.py +1 -1
- codex/startup.py +1 -3
- codex/static_root/assets/{VCheckbox-B_KxeHW4.83cc6be08a2f.js → VCheckbox-D8eqoc1z.62941f086d95.js} +1 -1
- codex/static_root/assets/VCheckbox-D8eqoc1z.62941f086d95.js.br +0 -0
- codex/static_root/assets/VCheckbox-D8eqoc1z.62941f086d95.js.gz +0 -0
- codex/static_root/assets/{VCheckbox-B_KxeHW4.js → VCheckbox-D8eqoc1z.js} +1 -1
- codex/static_root/assets/VCheckbox-D8eqoc1z.js.br +0 -0
- codex/static_root/assets/VCheckbox-D8eqoc1z.js.gz +0 -0
- codex/static_root/assets/{VCheckboxBtn-D_7rfm4C.f732e47b6674.js → VCheckboxBtn-BaQC30AI.ea98c97505c2.js} +1 -1
- codex/static_root/assets/VCheckboxBtn-BaQC30AI.ea98c97505c2.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-BaQC30AI.ea98c97505c2.js.gz +0 -0
- codex/static_root/assets/{VCheckboxBtn-D_7rfm4C.js → VCheckboxBtn-BaQC30AI.js} +1 -1
- codex/static_root/assets/VCheckboxBtn-BaQC30AI.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-BaQC30AI.js.gz +0 -0
- codex/static_root/assets/{VCombobox-EtQ72JMr.dc75b79417ff.js → VCombobox-BTG361j0.b2b9962de820.js} +1 -1
- codex/static_root/assets/VCombobox-BTG361j0.b2b9962de820.js.br +0 -0
- codex/static_root/assets/VCombobox-BTG361j0.b2b9962de820.js.gz +0 -0
- codex/static_root/assets/{VCombobox-EtQ72JMr.js → VCombobox-BTG361j0.js} +1 -1
- codex/static_root/assets/VCombobox-BTG361j0.js.br +0 -0
- codex/static_root/assets/VCombobox-BTG361j0.js.gz +0 -0
- codex/static_root/assets/{VDialog-DLAqK7mg.48b2d71bbff3.js → VDialog-BWXBR7iM.80372742901b.js} +1 -1
- codex/static_root/assets/VDialog-BWXBR7iM.80372742901b.js.br +0 -0
- codex/static_root/assets/VDialog-BWXBR7iM.80372742901b.js.gz +0 -0
- codex/static_root/assets/{VDialog-DLAqK7mg.js → VDialog-BWXBR7iM.js} +1 -1
- codex/static_root/assets/VDialog-BWXBR7iM.js.br +0 -0
- codex/static_root/assets/VDialog-BWXBR7iM.js.gz +0 -0
- codex/static_root/assets/{VExpansionPanels-CQ-32h2P.c9e5ed81edb6.js → VExpansionPanels-W4VN2Ykh.a3bf34bd9c01.js} +1 -1
- codex/static_root/assets/VExpansionPanels-W4VN2Ykh.a3bf34bd9c01.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-W4VN2Ykh.a3bf34bd9c01.js.gz +0 -0
- codex/static_root/assets/{VExpansionPanels-CQ-32h2P.js → VExpansionPanels-W4VN2Ykh.js} +1 -1
- codex/static_root/assets/VExpansionPanels-W4VN2Ykh.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-W4VN2Ykh.js.gz +0 -0
- codex/static_root/assets/{VRadioGroup-B-Q8axWs.76c929c318fc.js → VRadioGroup-B8chw_xV.768aef5d30cd.js} +1 -1
- codex/static_root/assets/VRadioGroup-B8chw_xV.768aef5d30cd.js.br +0 -0
- codex/static_root/assets/VRadioGroup-B8chw_xV.768aef5d30cd.js.gz +0 -0
- codex/static_root/assets/{VRadioGroup-B-Q8axWs.js → VRadioGroup-B8chw_xV.js} +1 -1
- codex/static_root/assets/VRadioGroup-B8chw_xV.js.br +0 -0
- codex/static_root/assets/VRadioGroup-B8chw_xV.js.gz +0 -0
- codex/static_root/assets/{VSelect-B1_LeX22.892619637f5a.js → VSelect-BpWdXMPq.1921062294e6.js} +1 -1
- codex/static_root/assets/VSelect-BpWdXMPq.1921062294e6.js.br +0 -0
- codex/static_root/assets/VSelect-BpWdXMPq.1921062294e6.js.gz +0 -0
- codex/static_root/assets/{VSelect-B1_LeX22.js → VSelect-BpWdXMPq.js} +1 -1
- codex/static_root/assets/VSelect-BpWdXMPq.js.br +0 -0
- codex/static_root/assets/VSelect-BpWdXMPq.js.gz +0 -0
- codex/static_root/assets/{VSelectionControl-B7a_kuaA.72b1a6e1feb8.js → VSelectionControl-FmTy_2ch.7e005af872d4.js} +1 -1
- codex/static_root/assets/VSelectionControl-FmTy_2ch.7e005af872d4.js.br +0 -0
- codex/static_root/assets/VSelectionControl-FmTy_2ch.7e005af872d4.js.gz +0 -0
- codex/static_root/assets/{VSelectionControl-B7a_kuaA.js → VSelectionControl-FmTy_2ch.js} +1 -1
- codex/static_root/assets/VSelectionControl-FmTy_2ch.js.br +0 -0
- codex/static_root/assets/VSelectionControl-FmTy_2ch.js.gz +0 -0
- codex/static_root/assets/{VSlideGroup-BRl45QHs.c4b739d1f83b.js → VSlideGroup-B9zEPv1H.627ca1e091fb.js} +1 -1
- codex/static_root/assets/VSlideGroup-B9zEPv1H.627ca1e091fb.js.br +0 -0
- codex/static_root/assets/VSlideGroup-B9zEPv1H.627ca1e091fb.js.gz +0 -0
- codex/static_root/assets/{VSlideGroup-BRl45QHs.js → VSlideGroup-B9zEPv1H.js} +1 -1
- codex/static_root/assets/VSlideGroup-B9zEPv1H.js.br +0 -0
- codex/static_root/assets/VSlideGroup-B9zEPv1H.js.gz +0 -0
- codex/static_root/assets/{VTable-DISTvhO_.bc6f64a341dc.js → VTable-D85UV0cA.c9b0d82847a0.js} +1 -1
- codex/static_root/assets/VTable-D85UV0cA.c9b0d82847a0.js.br +0 -0
- codex/static_root/assets/VTable-D85UV0cA.c9b0d82847a0.js.gz +0 -0
- codex/static_root/assets/{VTable-DISTvhO_.js → VTable-D85UV0cA.js} +1 -1
- codex/static_root/assets/VTable-D85UV0cA.js.br +0 -0
- codex/static_root/assets/VTable-D85UV0cA.js.gz +0 -0
- codex/static_root/assets/{VTextField-C0DUSXBX.fe57b718cbb1.js → VTextField-DAe7a2au.04013b823a64.js} +1 -1
- codex/static_root/assets/VTextField-DAe7a2au.04013b823a64.js.br +0 -0
- codex/static_root/assets/VTextField-DAe7a2au.04013b823a64.js.gz +0 -0
- codex/static_root/assets/{VTextField-C0DUSXBX.js → VTextField-DAe7a2au.js} +1 -1
- codex/static_root/assets/VTextField-DAe7a2au.js.br +0 -0
- codex/static_root/assets/VTextField-DAe7a2au.js.gz +0 -0
- codex/static_root/assets/{VWindowItem-DXOy9qYi.8e1cd08df101.js → VWindowItem-BOT7VsDv.061276a5a285.js} +1 -1
- codex/static_root/assets/VWindowItem-BOT7VsDv.061276a5a285.js.br +0 -0
- codex/static_root/assets/VWindowItem-BOT7VsDv.061276a5a285.js.gz +0 -0
- codex/static_root/assets/{VWindowItem-DXOy9qYi.js → VWindowItem-BOT7VsDv.js} +1 -1
- codex/static_root/assets/VWindowItem-BOT7VsDv.js.br +0 -0
- codex/static_root/assets/VWindowItem-BOT7VsDv.js.gz +0 -0
- codex/static_root/assets/{admin-DgLzn7q2.5d4dc6ca61f9.js → admin-DCoV7mGR.d949114bed68.js} +1 -1
- codex/static_root/assets/admin-DCoV7mGR.d949114bed68.js.br +0 -0
- codex/static_root/assets/admin-DCoV7mGR.d949114bed68.js.gz +0 -0
- codex/static_root/assets/{admin-DgLzn7q2.js → admin-DCoV7mGR.js} +1 -1
- codex/static_root/assets/admin-DCoV7mGR.js.br +0 -0
- codex/static_root/assets/admin-DCoV7mGR.js.gz +0 -0
- codex/static_root/assets/{admin-drawer-panel-CoRl2h5W.1101513b2b68.js → admin-drawer-panel-Dmnn03CQ.52ea4aad3985.js} +1 -1
- codex/static_root/assets/admin-drawer-panel-Dmnn03CQ.52ea4aad3985.js.br +0 -0
- codex/static_root/assets/{admin-drawer-panel-CoRl2h5W.js.gz → admin-drawer-panel-Dmnn03CQ.52ea4aad3985.js.gz} +0 -0
- codex/static_root/assets/{admin-drawer-panel-CoRl2h5W.js → admin-drawer-panel-Dmnn03CQ.js} +1 -1
- codex/static_root/assets/admin-drawer-panel-Dmnn03CQ.js.br +0 -0
- codex/static_root/assets/{admin-drawer-panel-CoRl2h5W.1101513b2b68.js.gz → admin-drawer-panel-Dmnn03CQ.js.gz} +0 -0
- codex/static_root/assets/{browser-BSwNpa5t.js → browser--OxfD4LA.d6c438cacb9a.js} +1 -1
- codex/static_root/assets/browser--OxfD4LA.d6c438cacb9a.js.br +0 -0
- codex/static_root/assets/browser--OxfD4LA.d6c438cacb9a.js.gz +0 -0
- codex/static_root/assets/{browser-BSwNpa5t.35d2f6a3dea4.js → browser--OxfD4LA.js} +1 -1
- codex/static_root/assets/browser--OxfD4LA.js.br +0 -0
- codex/static_root/assets/browser--OxfD4LA.js.gz +0 -0
- codex/static_root/assets/{change-password-dialog-ColNjAlK.4a425e3a6c8d.js → change-password-dialog-HW0jK0gr.bbc3ed89fb31.js} +1 -1
- codex/static_root/assets/change-password-dialog-HW0jK0gr.bbc3ed89fb31.js.br +0 -0
- codex/static_root/assets/change-password-dialog-HW0jK0gr.bbc3ed89fb31.js.gz +0 -0
- codex/static_root/assets/{change-password-dialog-ColNjAlK.js → change-password-dialog-HW0jK0gr.js} +1 -1
- codex/static_root/assets/change-password-dialog-HW0jK0gr.js.br +0 -0
- codex/static_root/assets/change-password-dialog-HW0jK0gr.js.gz +0 -0
- codex/static_root/assets/{confirm-dialog-DPtJ2Fu2.83d1c027b3bc.js → confirm-dialog-BJlNq6ku.42441ece74ab.js} +1 -1
- codex/static_root/assets/confirm-dialog-BJlNq6ku.42441ece74ab.js.br +0 -0
- codex/static_root/assets/confirm-dialog-BJlNq6ku.42441ece74ab.js.gz +0 -0
- codex/static_root/assets/{confirm-dialog-DPtJ2Fu2.js → confirm-dialog-BJlNq6ku.js} +1 -1
- codex/static_root/assets/confirm-dialog-BJlNq6ku.js.br +0 -0
- codex/static_root/assets/confirm-dialog-BJlNq6ku.js.gz +0 -0
- codex/static_root/assets/{datetime-column-DnOqpZLy.7b8519c1da50.js → datetime-column-BdnHcY-4.12fb4188de00.js} +1 -1
- codex/static_root/assets/datetime-column-BdnHcY-4.12fb4188de00.js.br +0 -0
- codex/static_root/assets/datetime-column-BdnHcY-4.12fb4188de00.js.gz +0 -0
- codex/static_root/assets/{datetime-column-DnOqpZLy.js → datetime-column-BdnHcY-4.js} +1 -1
- codex/static_root/assets/datetime-column-BdnHcY-4.js.br +0 -0
- codex/static_root/assets/datetime-column-BdnHcY-4.js.gz +0 -0
- codex/static_root/assets/{filter-BoSLQk91.3ea0dcc99c0e.js → filter-BL9RMUvn.b92d240c4512.js} +1 -1
- codex/static_root/assets/filter-BL9RMUvn.b92d240c4512.js.br +0 -0
- codex/static_root/assets/filter-BL9RMUvn.b92d240c4512.js.gz +0 -0
- codex/static_root/assets/{filter-BoSLQk91.js → filter-BL9RMUvn.js} +1 -1
- codex/static_root/assets/filter-BL9RMUvn.js.br +0 -0
- codex/static_root/assets/filter-BL9RMUvn.js.gz +0 -0
- codex/static_root/assets/{flag-tab-DNh2mpPr.b1645ec1e536.js → flag-tab-BWJ5tGcV.6f4c1dd9d1bb.js} +1 -1
- codex/static_root/assets/flag-tab-BWJ5tGcV.6f4c1dd9d1bb.js.br +0 -0
- codex/static_root/assets/flag-tab-BWJ5tGcV.6f4c1dd9d1bb.js.gz +0 -0
- codex/static_root/assets/{flag-tab-DNh2mpPr.js → flag-tab-BWJ5tGcV.js} +1 -1
- codex/static_root/assets/flag-tab-BWJ5tGcV.js.br +0 -0
- codex/static_root/assets/flag-tab-BWJ5tGcV.js.gz +0 -0
- codex/static_root/assets/{group-tab-B6QT9bUe.0458f4530691.js → group-tab-CQiGzI43.d88e38af13b4.js} +1 -1
- codex/static_root/assets/group-tab-CQiGzI43.d88e38af13b4.js.br +0 -0
- codex/static_root/assets/group-tab-CQiGzI43.d88e38af13b4.js.gz +0 -0
- codex/static_root/assets/{group-tab-B6QT9bUe.js → group-tab-CQiGzI43.js} +1 -1
- codex/static_root/assets/group-tab-CQiGzI43.js.br +0 -0
- codex/static_root/assets/group-tab-CQiGzI43.js.gz +0 -0
- codex/static_root/assets/{http-error-DUb0F4qg.4567436c85f0.js → http-error-B0-GHW9C.81a3af2c7f7c.js} +1 -1
- codex/static_root/assets/http-error-B0-GHW9C.81a3af2c7f7c.js.br +0 -0
- codex/static_root/assets/http-error-B0-GHW9C.81a3af2c7f7c.js.gz +0 -0
- codex/static_root/assets/{http-error-DUb0F4qg.js → http-error-B0-GHW9C.js} +1 -1
- codex/static_root/assets/http-error-B0-GHW9C.js.br +0 -0
- codex/static_root/assets/http-error-B0-GHW9C.js.gz +0 -0
- codex/static_root/assets/library-tab-VMgJSPRy.5e7d6c6baff6.css +1 -0
- codex/static_root/assets/library-tab-VMgJSPRy.5e7d6c6baff6.css.br +0 -0
- codex/static_root/assets/library-tab-VMgJSPRy.5e7d6c6baff6.css.gz +0 -0
- codex/static_root/assets/library-tab-VMgJSPRy.css +1 -0
- codex/static_root/assets/library-tab-VMgJSPRy.css.br +0 -0
- codex/static_root/assets/library-tab-VMgJSPRy.css.gz +0 -0
- codex/static_root/assets/library-tab-czIX7PK1.540a657518c8.js +1 -0
- codex/static_root/assets/library-tab-czIX7PK1.540a657518c8.js.br +0 -0
- codex/static_root/assets/library-tab-czIX7PK1.540a657518c8.js.gz +0 -0
- codex/static_root/assets/library-tab-czIX7PK1.js +1 -0
- codex/static_root/assets/library-tab-czIX7PK1.js.br +0 -0
- codex/static_root/assets/library-tab-czIX7PK1.js.gz +0 -0
- codex/static_root/assets/{main-DyDcAKfE.js → main-C0t41OAE.9c108cc29c65.js} +3 -3
- codex/static_root/assets/main-C0t41OAE.9c108cc29c65.js.br +0 -0
- codex/static_root/assets/main-C0t41OAE.9c108cc29c65.js.gz +0 -0
- codex/static_root/assets/{main-DyDcAKfE.59ea08f0fb1b.js → main-C0t41OAE.js} +3 -3
- codex/static_root/assets/main-C0t41OAE.js.br +0 -0
- codex/static_root/assets/main-C0t41OAE.js.gz +0 -0
- codex/static_root/assets/{pagination-toolbar-C9SzPo7k.js → pagination-toolbar-BNiqJX4c.c62f4bb07236.js} +1 -1
- codex/static_root/assets/pagination-toolbar-BNiqJX4c.c62f4bb07236.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-BNiqJX4c.c62f4bb07236.js.gz +0 -0
- codex/static_root/assets/{pagination-toolbar-C9SzPo7k.947a0cd8dcc3.js → pagination-toolbar-BNiqJX4c.js} +1 -1
- codex/static_root/assets/pagination-toolbar-BNiqJX4c.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-BNiqJX4c.js.gz +0 -0
- codex/static_root/assets/{pdf-doc-BeSm40lQ.29f26de72c2d.js → pdf-doc-BDi_S8C8.ec2572c47556.js} +1 -1
- codex/static_root/assets/pdf-doc-BDi_S8C8.ec2572c47556.js.br +0 -0
- codex/static_root/assets/pdf-doc-BDi_S8C8.ec2572c47556.js.gz +0 -0
- codex/static_root/assets/{pdf-doc-BeSm40lQ.js → pdf-doc-BDi_S8C8.js} +1 -1
- codex/static_root/assets/pdf-doc-BDi_S8C8.js.br +0 -0
- codex/static_root/assets/pdf-doc-BDi_S8C8.js.gz +0 -0
- codex/static_root/assets/{reader-BuiJ4J_R.b8f859a3106d.js → reader-Dg5VFhMO.d0ece6c59cb6.js} +2 -2
- codex/static_root/assets/reader-Dg5VFhMO.d0ece6c59cb6.js.br +0 -0
- codex/static_root/assets/reader-Dg5VFhMO.d0ece6c59cb6.js.gz +0 -0
- codex/static_root/assets/{reader-BuiJ4J_R.js → reader-Dg5VFhMO.js} +2 -2
- codex/static_root/assets/reader-Dg5VFhMO.js.br +0 -0
- codex/static_root/assets/reader-Dg5VFhMO.js.gz +0 -0
- codex/static_root/assets/relation-chips-nc41xEEd.eadca8fe8606.js +1 -0
- codex/static_root/assets/relation-chips-nc41xEEd.eadca8fe8606.js.br +0 -0
- codex/static_root/assets/relation-chips-nc41xEEd.eadca8fe8606.js.gz +0 -0
- codex/static_root/assets/relation-chips-nc41xEEd.js +1 -0
- codex/static_root/assets/relation-chips-nc41xEEd.js.br +0 -0
- codex/static_root/assets/relation-chips-nc41xEEd.js.gz +0 -0
- codex/static_root/assets/{settings-drawer-BUeCNt4i.96bf8b11d9c0.js → settings-drawer-ChnWWcfy.627fb9c17389.js} +2 -2
- codex/static_root/assets/settings-drawer-ChnWWcfy.627fb9c17389.js.br +0 -0
- codex/static_root/assets/settings-drawer-ChnWWcfy.627fb9c17389.js.gz +0 -0
- codex/static_root/assets/{settings-drawer-BUeCNt4i.js → settings-drawer-ChnWWcfy.js} +2 -2
- codex/static_root/assets/settings-drawer-ChnWWcfy.js.br +0 -0
- codex/static_root/assets/settings-drawer-ChnWWcfy.js.gz +0 -0
- codex/static_root/assets/{stats-tab-D3VbyUqi.dd958058cc1e.js → stats-tab-Ep3dyw2f.1c5c48751a8d.js} +1 -1
- codex/static_root/assets/stats-tab-Ep3dyw2f.1c5c48751a8d.js.br +0 -0
- codex/static_root/assets/stats-tab-Ep3dyw2f.1c5c48751a8d.js.gz +0 -0
- codex/static_root/assets/{stats-tab-D3VbyUqi.js → stats-tab-Ep3dyw2f.js} +1 -1
- codex/static_root/assets/stats-tab-Ep3dyw2f.js.br +0 -0
- codex/static_root/assets/stats-tab-Ep3dyw2f.js.gz +0 -0
- codex/static_root/assets/{task-tab-Bosh0alC.852a8529f506.js → task-tab-CZM8h2Cr.d61b2f38a5c7.js} +1 -1
- codex/static_root/assets/task-tab-CZM8h2Cr.d61b2f38a5c7.js.br +0 -0
- codex/static_root/assets/task-tab-CZM8h2Cr.d61b2f38a5c7.js.gz +0 -0
- codex/static_root/assets/{task-tab-Bosh0alC.js → task-tab-CZM8h2Cr.js} +1 -1
- codex/static_root/assets/task-tab-CZM8h2Cr.js.br +0 -0
- codex/static_root/assets/task-tab-CZM8h2Cr.js.gz +0 -0
- codex/static_root/assets/{unauthorized-Dnq8D35W.4f560e203c18.js → unauthorized-DnNuMsHM.2e4595f10736.js} +1 -1
- codex/static_root/assets/unauthorized-DnNuMsHM.2e4595f10736.js.br +0 -0
- codex/static_root/assets/unauthorized-DnNuMsHM.2e4595f10736.js.gz +0 -0
- codex/static_root/assets/{unauthorized-Dnq8D35W.js → unauthorized-DnNuMsHM.js} +1 -1
- codex/static_root/assets/unauthorized-DnNuMsHM.js.br +0 -0
- codex/static_root/assets/unauthorized-DnNuMsHM.js.gz +0 -0
- codex/static_root/assets/{user-tab-BGlLLXhI.8771bc00ef3a.js → user-tab-CmdeTcr_.e7929862d979.js} +1 -1
- codex/static_root/assets/user-tab-CmdeTcr_.e7929862d979.js.br +0 -0
- codex/static_root/assets/user-tab-CmdeTcr_.e7929862d979.js.gz +0 -0
- codex/static_root/assets/{user-tab-BGlLLXhI.js → user-tab-CmdeTcr_.js} +1 -1
- codex/static_root/assets/user-tab-CmdeTcr_.js.br +0 -0
- codex/static_root/assets/user-tab-CmdeTcr_.js.gz +0 -0
- codex/static_root/{manifest.aa902634f4fd.json → manifest.9e3c56e33cdb.json} +214 -214
- codex/static_root/manifest.9e3c56e33cdb.json.br +0 -0
- codex/static_root/manifest.9e3c56e33cdb.json.gz +0 -0
- codex/static_root/manifest.json +214 -214
- codex/static_root/manifest.json.br +0 -0
- codex/static_root/manifest.json.gz +0 -0
- codex/static_root/staticfiles.json +1 -1
- codex/version.py +21 -11
- {codex-1.6.16.dist-info → codex-1.6.17.dist-info}/METADATA +2 -1
- {codex-1.6.16.dist-info → codex-1.6.17.dist-info}/RECORD +219 -219
- codex/static_root/assets/VCheckbox-B_KxeHW4.83cc6be08a2f.js.br +0 -0
- codex/static_root/assets/VCheckbox-B_KxeHW4.83cc6be08a2f.js.gz +0 -0
- codex/static_root/assets/VCheckbox-B_KxeHW4.js.br +0 -0
- codex/static_root/assets/VCheckbox-B_KxeHW4.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-D_7rfm4C.f732e47b6674.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-D_7rfm4C.f732e47b6674.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-D_7rfm4C.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-D_7rfm4C.js.gz +0 -0
- codex/static_root/assets/VCombobox-EtQ72JMr.dc75b79417ff.js.br +0 -0
- codex/static_root/assets/VCombobox-EtQ72JMr.dc75b79417ff.js.gz +0 -0
- codex/static_root/assets/VCombobox-EtQ72JMr.js.br +0 -0
- codex/static_root/assets/VCombobox-EtQ72JMr.js.gz +0 -0
- codex/static_root/assets/VDialog-DLAqK7mg.48b2d71bbff3.js.br +0 -0
- codex/static_root/assets/VDialog-DLAqK7mg.48b2d71bbff3.js.gz +0 -0
- codex/static_root/assets/VDialog-DLAqK7mg.js.br +0 -0
- codex/static_root/assets/VDialog-DLAqK7mg.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-CQ-32h2P.c9e5ed81edb6.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-CQ-32h2P.c9e5ed81edb6.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-CQ-32h2P.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-CQ-32h2P.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-B-Q8axWs.76c929c318fc.js.br +0 -0
- codex/static_root/assets/VRadioGroup-B-Q8axWs.76c929c318fc.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-B-Q8axWs.js.br +0 -0
- codex/static_root/assets/VRadioGroup-B-Q8axWs.js.gz +0 -0
- codex/static_root/assets/VSelect-B1_LeX22.892619637f5a.js.br +0 -0
- codex/static_root/assets/VSelect-B1_LeX22.892619637f5a.js.gz +0 -0
- codex/static_root/assets/VSelect-B1_LeX22.js.br +0 -0
- codex/static_root/assets/VSelect-B1_LeX22.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-B7a_kuaA.72b1a6e1feb8.js.br +0 -0
- codex/static_root/assets/VSelectionControl-B7a_kuaA.72b1a6e1feb8.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-B7a_kuaA.js.br +0 -0
- codex/static_root/assets/VSelectionControl-B7a_kuaA.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-BRl45QHs.c4b739d1f83b.js.br +0 -0
- codex/static_root/assets/VSlideGroup-BRl45QHs.c4b739d1f83b.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-BRl45QHs.js.br +0 -0
- codex/static_root/assets/VSlideGroup-BRl45QHs.js.gz +0 -0
- codex/static_root/assets/VTable-DISTvhO_.bc6f64a341dc.js.br +0 -0
- codex/static_root/assets/VTable-DISTvhO_.bc6f64a341dc.js.gz +0 -0
- codex/static_root/assets/VTable-DISTvhO_.js.br +0 -0
- codex/static_root/assets/VTable-DISTvhO_.js.gz +0 -0
- codex/static_root/assets/VTextField-C0DUSXBX.fe57b718cbb1.js.br +0 -0
- codex/static_root/assets/VTextField-C0DUSXBX.fe57b718cbb1.js.gz +0 -0
- codex/static_root/assets/VTextField-C0DUSXBX.js.br +0 -0
- codex/static_root/assets/VTextField-C0DUSXBX.js.gz +0 -0
- codex/static_root/assets/VWindowItem-DXOy9qYi.8e1cd08df101.js.br +0 -0
- codex/static_root/assets/VWindowItem-DXOy9qYi.8e1cd08df101.js.gz +0 -0
- codex/static_root/assets/VWindowItem-DXOy9qYi.js.br +0 -0
- codex/static_root/assets/VWindowItem-DXOy9qYi.js.gz +0 -0
- codex/static_root/assets/admin-DgLzn7q2.5d4dc6ca61f9.js.br +0 -0
- codex/static_root/assets/admin-DgLzn7q2.5d4dc6ca61f9.js.gz +0 -0
- codex/static_root/assets/admin-DgLzn7q2.js.br +0 -0
- codex/static_root/assets/admin-DgLzn7q2.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-CoRl2h5W.1101513b2b68.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-CoRl2h5W.js.br +0 -0
- codex/static_root/assets/browser-BSwNpa5t.35d2f6a3dea4.js.br +0 -0
- codex/static_root/assets/browser-BSwNpa5t.35d2f6a3dea4.js.gz +0 -0
- codex/static_root/assets/browser-BSwNpa5t.js.br +0 -0
- codex/static_root/assets/browser-BSwNpa5t.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-ColNjAlK.4a425e3a6c8d.js.br +0 -0
- codex/static_root/assets/change-password-dialog-ColNjAlK.4a425e3a6c8d.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-ColNjAlK.js.br +0 -0
- codex/static_root/assets/change-password-dialog-ColNjAlK.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-DPtJ2Fu2.83d1c027b3bc.js.br +0 -0
- codex/static_root/assets/confirm-dialog-DPtJ2Fu2.83d1c027b3bc.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-DPtJ2Fu2.js.br +0 -0
- codex/static_root/assets/confirm-dialog-DPtJ2Fu2.js.gz +0 -0
- codex/static_root/assets/datetime-column-DnOqpZLy.7b8519c1da50.js.br +0 -0
- codex/static_root/assets/datetime-column-DnOqpZLy.7b8519c1da50.js.gz +0 -0
- codex/static_root/assets/datetime-column-DnOqpZLy.js.br +0 -0
- codex/static_root/assets/datetime-column-DnOqpZLy.js.gz +0 -0
- codex/static_root/assets/filter-BoSLQk91.3ea0dcc99c0e.js.br +0 -0
- codex/static_root/assets/filter-BoSLQk91.3ea0dcc99c0e.js.gz +0 -0
- codex/static_root/assets/filter-BoSLQk91.js.br +0 -0
- codex/static_root/assets/filter-BoSLQk91.js.gz +0 -0
- codex/static_root/assets/flag-tab-DNh2mpPr.b1645ec1e536.js.br +0 -0
- codex/static_root/assets/flag-tab-DNh2mpPr.b1645ec1e536.js.gz +0 -0
- codex/static_root/assets/flag-tab-DNh2mpPr.js.br +0 -0
- codex/static_root/assets/flag-tab-DNh2mpPr.js.gz +0 -0
- codex/static_root/assets/group-tab-B6QT9bUe.0458f4530691.js.br +0 -0
- codex/static_root/assets/group-tab-B6QT9bUe.0458f4530691.js.gz +0 -0
- codex/static_root/assets/group-tab-B6QT9bUe.js.br +0 -0
- codex/static_root/assets/group-tab-B6QT9bUe.js.gz +0 -0
- codex/static_root/assets/http-error-DUb0F4qg.4567436c85f0.js.br +0 -0
- codex/static_root/assets/http-error-DUb0F4qg.4567436c85f0.js.gz +0 -0
- codex/static_root/assets/http-error-DUb0F4qg.js.br +0 -0
- codex/static_root/assets/http-error-DUb0F4qg.js.gz +0 -0
- codex/static_root/assets/library-tab-C_6VqUnE.513fe55019e7.css +0 -1
- codex/static_root/assets/library-tab-C_6VqUnE.513fe55019e7.css.br +0 -0
- codex/static_root/assets/library-tab-C_6VqUnE.513fe55019e7.css.gz +0 -0
- codex/static_root/assets/library-tab-C_6VqUnE.css +0 -1
- codex/static_root/assets/library-tab-C_6VqUnE.css.br +0 -0
- codex/static_root/assets/library-tab-C_6VqUnE.css.gz +0 -0
- codex/static_root/assets/library-tab-DPUHpOfq.3e1b6ec73274.js +0 -1
- codex/static_root/assets/library-tab-DPUHpOfq.3e1b6ec73274.js.br +0 -0
- codex/static_root/assets/library-tab-DPUHpOfq.3e1b6ec73274.js.gz +0 -0
- codex/static_root/assets/library-tab-DPUHpOfq.js +0 -1
- codex/static_root/assets/library-tab-DPUHpOfq.js.br +0 -0
- codex/static_root/assets/library-tab-DPUHpOfq.js.gz +0 -0
- codex/static_root/assets/main-DyDcAKfE.59ea08f0fb1b.js.br +0 -0
- codex/static_root/assets/main-DyDcAKfE.59ea08f0fb1b.js.gz +0 -0
- codex/static_root/assets/main-DyDcAKfE.js.br +0 -0
- codex/static_root/assets/main-DyDcAKfE.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-C9SzPo7k.947a0cd8dcc3.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-C9SzPo7k.947a0cd8dcc3.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-C9SzPo7k.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-C9SzPo7k.js.gz +0 -0
- codex/static_root/assets/pdf-doc-BeSm40lQ.29f26de72c2d.js.br +0 -0
- codex/static_root/assets/pdf-doc-BeSm40lQ.29f26de72c2d.js.gz +0 -0
- codex/static_root/assets/pdf-doc-BeSm40lQ.js.br +0 -0
- codex/static_root/assets/pdf-doc-BeSm40lQ.js.gz +0 -0
- codex/static_root/assets/reader-BuiJ4J_R.b8f859a3106d.js.br +0 -0
- codex/static_root/assets/reader-BuiJ4J_R.b8f859a3106d.js.gz +0 -0
- codex/static_root/assets/reader-BuiJ4J_R.js.br +0 -0
- codex/static_root/assets/reader-BuiJ4J_R.js.gz +0 -0
- codex/static_root/assets/relation-chips-BWrtvPrs.d304eb1bd4b9.js +0 -1
- codex/static_root/assets/relation-chips-BWrtvPrs.d304eb1bd4b9.js.br +0 -0
- codex/static_root/assets/relation-chips-BWrtvPrs.d304eb1bd4b9.js.gz +0 -0
- codex/static_root/assets/relation-chips-BWrtvPrs.js +0 -1
- codex/static_root/assets/relation-chips-BWrtvPrs.js.br +0 -0
- codex/static_root/assets/relation-chips-BWrtvPrs.js.gz +0 -0
- codex/static_root/assets/settings-drawer-BUeCNt4i.96bf8b11d9c0.js.br +0 -0
- codex/static_root/assets/settings-drawer-BUeCNt4i.96bf8b11d9c0.js.gz +0 -0
- codex/static_root/assets/settings-drawer-BUeCNt4i.js.br +0 -0
- codex/static_root/assets/settings-drawer-BUeCNt4i.js.gz +0 -0
- codex/static_root/assets/stats-tab-D3VbyUqi.dd958058cc1e.js.br +0 -0
- codex/static_root/assets/stats-tab-D3VbyUqi.dd958058cc1e.js.gz +0 -0
- codex/static_root/assets/stats-tab-D3VbyUqi.js.br +0 -0
- codex/static_root/assets/stats-tab-D3VbyUqi.js.gz +0 -0
- codex/static_root/assets/task-tab-Bosh0alC.852a8529f506.js.br +0 -0
- codex/static_root/assets/task-tab-Bosh0alC.852a8529f506.js.gz +0 -0
- codex/static_root/assets/task-tab-Bosh0alC.js.br +0 -0
- codex/static_root/assets/task-tab-Bosh0alC.js.gz +0 -0
- codex/static_root/assets/unauthorized-Dnq8D35W.4f560e203c18.js.br +0 -0
- codex/static_root/assets/unauthorized-Dnq8D35W.4f560e203c18.js.gz +0 -0
- codex/static_root/assets/unauthorized-Dnq8D35W.js.br +0 -0
- codex/static_root/assets/unauthorized-Dnq8D35W.js.gz +0 -0
- codex/static_root/assets/user-tab-BGlLLXhI.8771bc00ef3a.js.br +0 -0
- codex/static_root/assets/user-tab-BGlLLXhI.8771bc00ef3a.js.gz +0 -0
- codex/static_root/assets/user-tab-BGlLLXhI.js.br +0 -0
- codex/static_root/assets/user-tab-BGlLLXhI.js.gz +0 -0
- codex/static_root/manifest.aa902634f4fd.json.br +0 -0
- codex/static_root/manifest.aa902634f4fd.json.gz +0 -0
- {codex-1.6.16.dist-info → codex-1.6.17.dist-info}/LICENSE +0 -0
- {codex-1.6.16.dist-info → codex-1.6.17.dist-info}/WHEEL +0 -0
- {codex-1.6.16.dist-info → codex-1.6.17.dist-info}/entry_points.txt +0 -0
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* pinia v2.2.0
|
|
19
19
|
* (c) 2024 Eduardo San Martin Morote
|
|
20
20
|
* @license MIT
|
|
21
|
-
*/let Au;const Ms=e=>Au=e,Lu=Symbol();function No(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ur;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ur||(ur={}));function m2(){const e=Lr(!0),t=e.run(()=>ne({}));let n=[],r=[];const s=yi({install(o){Ms(s),s._a=o,o.provide(Lu,s),o.config.globalProperties.$pinia=s,r.forEach(i=>n.push(i)),r=[]},use(o){return!this._a&&!Xh?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Eu=()=>{};function Za(e,t,n,r=Eu){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&hc()&&tt(s),s}function Ln(e,...t){e.slice().forEach(n=>{n(...t)})}const Jh=e=>e(),Xa=Symbol(),co=Symbol();function $o(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];No(s)&&No(r)&&e.hasOwnProperty(n)&&!ge(r)&&!fn(r)?e[n]=$o(s,r):e[n]=r}return e}const Yh=Symbol();function Qh(e){return!No(e)||!e.hasOwnProperty(Yh)}const{assign:kt}=Object;function em(e){return!!(ge(e)&&e.effect)}function tm(e,t,n,r){const{state:s,actions:o,getters:i}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=s?s():{});const u=xs(n.state.value[e]);return kt(u,o,Object.keys(i||{}).reduce((f,d)=>(f[d]=yi(_(()=>{Ms(n);const h=n._s.get(e);return i[d].call(h,h)})),f),{}))}return l=xu(e,c,t,n,r,!0),l}function xu(e,t,n={},r,s,o){let i;const a=kt({actions:{}},n),l={deep:!0};let c,u,f=[],d=[],h;const m=r.state.value[e];!o&&!m&&(r.state.value[e]={}),ne({});let g;function p(H){let V;c=u=!1,typeof H=="function"?(H(r.state.value[e]),V={type:ur.patchFunction,storeId:e,events:h}):($o(r.state.value[e],H),V={type:ur.patchObject,payload:H,storeId:e,events:h});const F=g=Symbol();Gt().then(()=>{g===F&&(c=!0)}),u=!0,Ln(f,V,r.state.value[e])}const x=o?function(){const{state:V}=n,F=V?V():{};this.$patch(B=>{kt(B,F)})}:Eu;function T(){i.stop(),f=[],d=[],r._s.delete(e)}const A=(H,V="")=>{if(Xa in H)return H[co]=V,H;const F=function(){Ms(r);const B=Array.from(arguments),b=[],M=[];function U(Z){b.push(Z)}function re(Z){M.push(Z)}Ln(d,{args:B,name:F[co],store:O,after:U,onError:re});let G;try{G=H.apply(this&&this.$id===e?this:O,B)}catch(Z){throw Ln(M,Z),Z}return G instanceof Promise?G.then(Z=>(Ln(b,Z),Z)).catch(Z=>(Ln(M,Z),Promise.reject(Z))):(Ln(b,G),G)};return F[Xa]=!0,F[co]=V,F},N={_p:r,$id:e,$onAction:Za.bind(null,d),$patch:p,$reset:x,$subscribe(H,V={}){const F=Za(f,H,V.detached,()=>B()),B=i.run(()=>fe(()=>r.state.value[e],b=>{(V.flush==="sync"?u:c)&&H({storeId:e,type:ur.direct,events:h},b)},kt({},l,V)));return F},$dispose:T},O=xt(N);r._s.set(e,O);const E=(r._a&&r._a.runWithContext||Jh)(()=>r._e.run(()=>(i=Lr()).run(()=>t({action:A}))));for(const H in E){const V=E[H];if(ge(V)&&!em(V)||fn(V))o||(m&&Qh(V)&&(ge(V)?V.value=m[H]:$o(V,m[H])),r.state.value[e][H]=V);else if(typeof V=="function"){const F=A(V,H);E[H]=F,a.actions[H]=V}}return kt(O,E),kt(Y(O),E),Object.defineProperty(O,"$state",{get:()=>r.state.value[e],set:H=>{p(V=>{kt(V,H)})}}),r._p.forEach(H=>{kt(O,i.run(()=>H({store:O,app:r._a,pinia:r,options:a})))}),m&&o&&n.hydrate&&n.hydrate(O.$state,m),c=!0,u=!0,O}function Ii(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 i(a,l){const c=x1();return a=a||(c?Pe(Lu,null):null),a&&Ms(a),a=Au,a._s.has(r)||(o?xu(r,t,s,a):tm(r,s,a)),a._s.get(r)}return i.$id=r,i}function ks(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 nm=ks;function Hi(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 g2(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),{})}function yr(e,t,n=new Map){const r=n.get(e);if(typeof r<"u")return r;if(Array.isArray(e)){const i=[];n.set(e,i);for(let a=0;a<e.length;a++)i[a]=yr(e[a],t,n);return i}if(e instanceof Date)return new Date(e.valueOf());if(!(e instanceof Object))return e;const s={};n.set(e,s);const o=Object.keys(e);for(let i=0;i<o.length;i++){const a=typeof t=="function"?t(o[i]):o[i];s[a]=yr(e[o[i]],t,n)}return s}function rm(e){return t=>yr(t,e)}yr.formatKeys=rm;const Tu=["detail","oldPassword","password","username","passwordConfirm","path"];Object.freeze(Tu);const sm=e=>{let t=[];if(e&&e.response&&e.response.data){let n=e.response.data;for(const r of Tu)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},dt=Ii("common",{state:()=>({form:{errors:[],success:""},versions:{installed:"1.6.16",latest:void 0},timestamp:Date.now(),isSettingsDrawerOpen:!1,opdsURLs:void 0}),getters:{isMobile:function(){return window.orientation!==void 0||navigator.userAgent.includes("IEMobile")}},actions:{async loadVersions(){await go.getVersions(this.timestamp).then(e=>{const t=e.data;return this.versions=t}).catch(console.error)},downloadIOSPWAFix(e,t){go.getDownloadIOSPWAFix(e,t)},setErrors(e){const t=sm(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()},setSettingsDrawerOpen(e){this.isSettingsDrawerOpen=e},async loadOPDSURLs(){this.opdsURLs||await go.getOPDSURLs().then(e=>this.opdsURLs=Object.freeze({...e.data})).catch(console.error)}}});function Ou(e,t){return function(){return e.apply(t,arguments)}}const{toString:om}=Object.prototype,{getPrototypeOf:Fi}=Object,Is=(e=>t=>{const n=om.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>Is(t)===e),Hs=e=>t=>typeof t===e,{isArray:qn}=Array,br=Hs("undefined");function im(e){return e!==null&&!br(e)&&e.constructor!==null&&!br(e.constructor)&&Ze(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vu=lt("ArrayBuffer");function am(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Vu(e.buffer),t}const lm=Hs("string"),Ze=Hs("function"),Pu=Hs("number"),Fs=e=>e!==null&&typeof e=="object",cm=e=>e===!0||e===!1,ts=e=>{if(Is(e)!=="object")return!1;const t=Fi(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},um=lt("Date"),fm=lt("File"),dm=lt("Blob"),hm=lt("FileList"),mm=e=>Fs(e)&&Ze(e.pipe),gm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ze(e.append)&&((t=Is(e))==="formdata"||t==="object"&&Ze(e.toString)&&e.toString()==="[object FormData]"))},vm=lt("URLSearchParams"),[pm,ym,bm,Cm]=["ReadableStream","Request","Response","Headers"].map(lt),Sm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),qn(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),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Ru(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 ln=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mu=e=>!br(e)&&e!==ln;function Do(){const{caseless:e}=Mu(this)&&this||{},t={},n=(r,s)=>{const o=e&&Ru(t,s)||s;ts(t[o])&&ts(r)?t[o]=Do(t[o],r):ts(r)?t[o]=Do({},r):qn(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Pr(arguments[r],n);return t}const wm=(e,t,n,{allOwnKeys:r}={})=>(Pr(t,(s,o)=>{n&&Ze(s)?e[o]=Ou(s,n):e[o]=s},{allOwnKeys:r}),e),_m=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Am=(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)},Lm=(e,t,n,r)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Fi(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Em=(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},xm=e=>{if(!e)return null;if(qn(e))return e;let t=e.length;if(!Pu(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Tm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Fi(Uint8Array)),Om=(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])}},Vm=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Pm=lt("HTMLFormElement"),Rm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ja=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Mm=lt("RegExp"),ku=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Pr(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},km=e=>{ku(e,(t,n)=>{if(Ze(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ze(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+"'")})}})},Im=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return qn(e)?r(e):r(String(e).split(t)),n},Hm=()=>{},Fm=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,uo="abcdefghijklmnopqrstuvwxyz",Ya="0123456789",Iu={DIGIT:Ya,ALPHA:uo,ALPHA_DIGIT:uo+uo.toUpperCase()+Ya},Bm=(e=16,t=Iu.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Nm(e){return!!(e&&Ze(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const $m=e=>{const t=new Array(10),n=(r,s)=>{if(Fs(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=qn(r)?[]:{};return Pr(r,(i,a)=>{const l=n(i,s+1);!br(l)&&(o[a]=l)}),t[s]=void 0,o}}return r};return n(e,0)},Dm=lt("AsyncFunction"),jm=e=>e&&(Fs(e)||Ze(e))&&Ze(e.then)&&Ze(e.catch),Hu=((e,t)=>e?setImmediate:t?((n,r)=>(ln.addEventListener("message",({source:s,data:o})=>{s===ln&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ln.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ze(ln.postMessage)),Um=typeof queueMicrotask<"u"?queueMicrotask.bind(ln):typeof process<"u"&&process.nextTick||Hu,S={isArray:qn,isArrayBuffer:Vu,isBuffer:im,isFormData:gm,isArrayBufferView:am,isString:lm,isNumber:Pu,isBoolean:cm,isObject:Fs,isPlainObject:ts,isReadableStream:pm,isRequest:ym,isResponse:bm,isHeaders:Cm,isUndefined:br,isDate:um,isFile:fm,isBlob:dm,isRegExp:Mm,isFunction:Ze,isStream:mm,isURLSearchParams:vm,isTypedArray:Tm,isFileList:hm,forEach:Pr,merge:Do,extend:wm,trim:Sm,stripBOM:_m,inherits:Am,toFlatObject:Lm,kindOf:Is,kindOfTest:lt,endsWith:Em,toArray:xm,forEachEntry:Om,matchAll:Vm,isHTMLForm:Pm,hasOwnProperty:Ja,hasOwnProp:Ja,reduceDescriptors:ku,freezeMethods:km,toObjectSet:Im,toCamelCase:Rm,noop:Hm,toFiniteNumber:Fm,findKey:Ru,global:ln,isContextDefined:Mu,ALPHABET:Iu,generateString:Bm,isSpecCompliantForm:Nm,toJSONObject:$m,isAsyncFn:Dm,isThenable:jm,setImmediate:Hu,asap:Um};function te(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)}S.inherits(te,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fu=te.prototype,Bu={};["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=>{Bu[e]={value:e}});Object.defineProperties(te,Bu);Object.defineProperty(Fu,"isAxiosError",{value:!0});te.from=(e,t,n,r,s,o)=>{const i=Object.create(Fu);return S.toFlatObject(e,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),te.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const zm=null;function jo(e){return S.isPlainObject(e)||S.isArray(e)}function Nu(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Qa(e,t,n){return e?e.concat(t).map(function(s,o){return s=Nu(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Wm(e){return S.isArray(e)&&!e.some(jo)}const qm=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Bs(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!S.isUndefined(p[g])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(s))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(S.isDate(m))return m.toISOString();if(!l&&S.isBlob(m))throw new te("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(m)||S.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,p){let x=m;if(m&&!p&&typeof m=="object"){if(S.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(S.isArray(m)&&Wm(m)||(S.isFileList(m)||S.endsWith(g,"[]"))&&(x=S.toArray(m)))return g=Nu(g),x.forEach(function(A,N){!(S.isUndefined(A)||A===null)&&t.append(i===!0?Qa([g],N,o):i===null?g:g+"[]",c(A))}),!1}return jo(m)?!0:(t.append(Qa(p,g,o),c(m)),!1)}const f=[],d=Object.assign(qm,{defaultVisitor:u,convertValue:c,isVisitable:jo});function h(m,g){if(!S.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),S.forEach(m,function(x,T){(!(S.isUndefined(x)||x===null)&&s.call(t,x,S.isString(T)?T.trim():T,g,d))===!0&&h(x,g?g.concat(T):[T])}),f.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return h(e),t}function el(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Bi(e,t){this._pairs=[],e&&Bs(e,this,t)}const $u=Bi.prototype;$u.append=function(t,n){this._pairs.push([t,n])};$u.toString=function(t){const n=t?function(r){return t.call(this,r,el)}:el;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Km(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Du(e,t,n){if(!t)return e;const r=n&&n.encode||Km,s=n&&n.serialize;let o;if(s?o=s(t,n):o=S.isURLSearchParams(t)?t.toString():new Bi(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class tl{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){S.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ju={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gm=typeof URLSearchParams<"u"?URLSearchParams:Bi,Zm=typeof FormData<"u"?FormData:null,Xm=typeof Blob<"u"?Blob:null,Jm={isBrowser:!0,classes:{URLSearchParams:Gm,FormData:Zm,Blob:Xm},protocols:["http","https","file","blob","url","data"]},Ni=typeof window<"u"&&typeof document<"u",Ym=(e=>Ni&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Qm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eg=Ni&&window.location.href||"http://localhost",tg=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ni,hasStandardBrowserEnv:Ym,hasStandardBrowserWebWorkerEnv:Qm,origin:eg},Symbol.toStringTag,{value:"Module"})),it={...tg,...Jm};function ng(e,t){return Bs(e,new it.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return it.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function rg(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sg(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 Uu(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=o>=n.length;return i=!i&&S.isArray(s)?s.length:i,l?(S.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!S.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&S.isArray(s[i])&&(s[i]=sg(s[i])),!a)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,s)=>{t(rg(r),s,n,0)}),n}return null}function og(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Rr={transitional:ju,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=S.isObject(t);if(o&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return s?JSON.stringify(Uu(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ng(t,this.formSerializer).toString();if((a=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Bs(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),og(t)):t}],transformResponse:[function(t){const n=this.transitional||Rr.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?te.from(a,te.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:it.classes.FormData,Blob:it.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{Rr.headers[e]={}});const ig=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ag=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
21
|
+
*/let Au;const Ms=e=>Au=e,Lu=Symbol();function No(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ur;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ur||(ur={}));function m2(){const e=Lr(!0),t=e.run(()=>ne({}));let n=[],r=[];const s=yi({install(o){Ms(s),s._a=o,o.provide(Lu,s),o.config.globalProperties.$pinia=s,r.forEach(i=>n.push(i)),r=[]},use(o){return!this._a&&!Xh?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Eu=()=>{};function Za(e,t,n,r=Eu){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&hc()&&tt(s),s}function Ln(e,...t){e.slice().forEach(n=>{n(...t)})}const Jh=e=>e(),Xa=Symbol(),co=Symbol();function $o(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];No(s)&&No(r)&&e.hasOwnProperty(n)&&!ge(r)&&!fn(r)?e[n]=$o(s,r):e[n]=r}return e}const Yh=Symbol();function Qh(e){return!No(e)||!e.hasOwnProperty(Yh)}const{assign:kt}=Object;function em(e){return!!(ge(e)&&e.effect)}function tm(e,t,n,r){const{state:s,actions:o,getters:i}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=s?s():{});const u=xs(n.state.value[e]);return kt(u,o,Object.keys(i||{}).reduce((f,d)=>(f[d]=yi(_(()=>{Ms(n);const h=n._s.get(e);return i[d].call(h,h)})),f),{}))}return l=xu(e,c,t,n,r,!0),l}function xu(e,t,n={},r,s,o){let i;const a=kt({actions:{}},n),l={deep:!0};let c,u,f=[],d=[],h;const m=r.state.value[e];!o&&!m&&(r.state.value[e]={}),ne({});let g;function p(H){let V;c=u=!1,typeof H=="function"?(H(r.state.value[e]),V={type:ur.patchFunction,storeId:e,events:h}):($o(r.state.value[e],H),V={type:ur.patchObject,payload:H,storeId:e,events:h});const F=g=Symbol();Gt().then(()=>{g===F&&(c=!0)}),u=!0,Ln(f,V,r.state.value[e])}const x=o?function(){const{state:V}=n,F=V?V():{};this.$patch(B=>{kt(B,F)})}:Eu;function T(){i.stop(),f=[],d=[],r._s.delete(e)}const A=(H,V="")=>{if(Xa in H)return H[co]=V,H;const F=function(){Ms(r);const B=Array.from(arguments),b=[],M=[];function U(Z){b.push(Z)}function re(Z){M.push(Z)}Ln(d,{args:B,name:F[co],store:O,after:U,onError:re});let G;try{G=H.apply(this&&this.$id===e?this:O,B)}catch(Z){throw Ln(M,Z),Z}return G instanceof Promise?G.then(Z=>(Ln(b,Z),Z)).catch(Z=>(Ln(M,Z),Promise.reject(Z))):(Ln(b,G),G)};return F[Xa]=!0,F[co]=V,F},N={_p:r,$id:e,$onAction:Za.bind(null,d),$patch:p,$reset:x,$subscribe(H,V={}){const F=Za(f,H,V.detached,()=>B()),B=i.run(()=>fe(()=>r.state.value[e],b=>{(V.flush==="sync"?u:c)&&H({storeId:e,type:ur.direct,events:h},b)},kt({},l,V)));return F},$dispose:T},O=xt(N);r._s.set(e,O);const E=(r._a&&r._a.runWithContext||Jh)(()=>r._e.run(()=>(i=Lr()).run(()=>t({action:A}))));for(const H in E){const V=E[H];if(ge(V)&&!em(V)||fn(V))o||(m&&Qh(V)&&(ge(V)?V.value=m[H]:$o(V,m[H])),r.state.value[e][H]=V);else if(typeof V=="function"){const F=A(V,H);E[H]=F,a.actions[H]=V}}return kt(O,E),kt(Y(O),E),Object.defineProperty(O,"$state",{get:()=>r.state.value[e],set:H=>{p(V=>{kt(V,H)})}}),r._p.forEach(H=>{kt(O,i.run(()=>H({store:O,app:r._a,pinia:r,options:a})))}),m&&o&&n.hydrate&&n.hydrate(O.$state,m),c=!0,u=!0,O}function Ii(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 i(a,l){const c=x1();return a=a||(c?Pe(Lu,null):null),a&&Ms(a),a=Au,a._s.has(r)||(o?xu(r,t,s,a):tm(r,s,a)),a._s.get(r)}return i.$id=r,i}function ks(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 nm=ks;function Hi(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 g2(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),{})}function yr(e,t,n=new Map){const r=n.get(e);if(typeof r<"u")return r;if(Array.isArray(e)){const i=[];n.set(e,i);for(let a=0;a<e.length;a++)i[a]=yr(e[a],t,n);return i}if(e instanceof Date)return new Date(e.valueOf());if(!(e instanceof Object))return e;const s={};n.set(e,s);const o=Object.keys(e);for(let i=0;i<o.length;i++){const a=typeof t=="function"?t(o[i]):o[i];s[a]=yr(e[o[i]],t,n)}return s}function rm(e){return t=>yr(t,e)}yr.formatKeys=rm;const Tu=["detail","oldPassword","password","username","passwordConfirm","path"];Object.freeze(Tu);const sm=e=>{let t=[];if(e&&e.response&&e.response.data){let n=e.response.data;for(const r of Tu)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},dt=Ii("common",{state:()=>({form:{errors:[],success:""},versions:{installed:"1.6.17",latest:void 0},timestamp:Date.now(),isSettingsDrawerOpen:!1,opdsURLs:void 0}),getters:{isMobile:function(){return window.orientation!==void 0||navigator.userAgent.includes("IEMobile")}},actions:{async loadVersions(){await go.getVersions(this.timestamp).then(e=>{const t=e.data;return this.versions=t}).catch(console.error)},downloadIOSPWAFix(e,t){go.getDownloadIOSPWAFix(e,t)},setErrors(e){const t=sm(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()},setSettingsDrawerOpen(e){this.isSettingsDrawerOpen=e},async loadOPDSURLs(){this.opdsURLs||await go.getOPDSURLs().then(e=>this.opdsURLs=Object.freeze({...e.data})).catch(console.error)}}});function Ou(e,t){return function(){return e.apply(t,arguments)}}const{toString:om}=Object.prototype,{getPrototypeOf:Fi}=Object,Is=(e=>t=>{const n=om.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>Is(t)===e),Hs=e=>t=>typeof t===e,{isArray:qn}=Array,br=Hs("undefined");function im(e){return e!==null&&!br(e)&&e.constructor!==null&&!br(e.constructor)&&Ze(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vu=lt("ArrayBuffer");function am(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Vu(e.buffer),t}const lm=Hs("string"),Ze=Hs("function"),Pu=Hs("number"),Fs=e=>e!==null&&typeof e=="object",cm=e=>e===!0||e===!1,ts=e=>{if(Is(e)!=="object")return!1;const t=Fi(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},um=lt("Date"),fm=lt("File"),dm=lt("Blob"),hm=lt("FileList"),mm=e=>Fs(e)&&Ze(e.pipe),gm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ze(e.append)&&((t=Is(e))==="formdata"||t==="object"&&Ze(e.toString)&&e.toString()==="[object FormData]"))},vm=lt("URLSearchParams"),[pm,ym,bm,Cm]=["ReadableStream","Request","Response","Headers"].map(lt),Sm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),qn(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),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Ru(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 ln=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mu=e=>!br(e)&&e!==ln;function Do(){const{caseless:e}=Mu(this)&&this||{},t={},n=(r,s)=>{const o=e&&Ru(t,s)||s;ts(t[o])&&ts(r)?t[o]=Do(t[o],r):ts(r)?t[o]=Do({},r):qn(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Pr(arguments[r],n);return t}const wm=(e,t,n,{allOwnKeys:r}={})=>(Pr(t,(s,o)=>{n&&Ze(s)?e[o]=Ou(s,n):e[o]=s},{allOwnKeys:r}),e),_m=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Am=(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)},Lm=(e,t,n,r)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Fi(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Em=(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},xm=e=>{if(!e)return null;if(qn(e))return e;let t=e.length;if(!Pu(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Tm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Fi(Uint8Array)),Om=(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])}},Vm=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Pm=lt("HTMLFormElement"),Rm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ja=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Mm=lt("RegExp"),ku=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Pr(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},km=e=>{ku(e,(t,n)=>{if(Ze(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ze(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+"'")})}})},Im=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return qn(e)?r(e):r(String(e).split(t)),n},Hm=()=>{},Fm=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,uo="abcdefghijklmnopqrstuvwxyz",Ya="0123456789",Iu={DIGIT:Ya,ALPHA:uo,ALPHA_DIGIT:uo+uo.toUpperCase()+Ya},Bm=(e=16,t=Iu.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Nm(e){return!!(e&&Ze(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const $m=e=>{const t=new Array(10),n=(r,s)=>{if(Fs(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=qn(r)?[]:{};return Pr(r,(i,a)=>{const l=n(i,s+1);!br(l)&&(o[a]=l)}),t[s]=void 0,o}}return r};return n(e,0)},Dm=lt("AsyncFunction"),jm=e=>e&&(Fs(e)||Ze(e))&&Ze(e.then)&&Ze(e.catch),Hu=((e,t)=>e?setImmediate:t?((n,r)=>(ln.addEventListener("message",({source:s,data:o})=>{s===ln&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ln.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ze(ln.postMessage)),Um=typeof queueMicrotask<"u"?queueMicrotask.bind(ln):typeof process<"u"&&process.nextTick||Hu,S={isArray:qn,isArrayBuffer:Vu,isBuffer:im,isFormData:gm,isArrayBufferView:am,isString:lm,isNumber:Pu,isBoolean:cm,isObject:Fs,isPlainObject:ts,isReadableStream:pm,isRequest:ym,isResponse:bm,isHeaders:Cm,isUndefined:br,isDate:um,isFile:fm,isBlob:dm,isRegExp:Mm,isFunction:Ze,isStream:mm,isURLSearchParams:vm,isTypedArray:Tm,isFileList:hm,forEach:Pr,merge:Do,extend:wm,trim:Sm,stripBOM:_m,inherits:Am,toFlatObject:Lm,kindOf:Is,kindOfTest:lt,endsWith:Em,toArray:xm,forEachEntry:Om,matchAll:Vm,isHTMLForm:Pm,hasOwnProperty:Ja,hasOwnProp:Ja,reduceDescriptors:ku,freezeMethods:km,toObjectSet:Im,toCamelCase:Rm,noop:Hm,toFiniteNumber:Fm,findKey:Ru,global:ln,isContextDefined:Mu,ALPHABET:Iu,generateString:Bm,isSpecCompliantForm:Nm,toJSONObject:$m,isAsyncFn:Dm,isThenable:jm,setImmediate:Hu,asap:Um};function te(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)}S.inherits(te,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fu=te.prototype,Bu={};["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=>{Bu[e]={value:e}});Object.defineProperties(te,Bu);Object.defineProperty(Fu,"isAxiosError",{value:!0});te.from=(e,t,n,r,s,o)=>{const i=Object.create(Fu);return S.toFlatObject(e,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),te.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const zm=null;function jo(e){return S.isPlainObject(e)||S.isArray(e)}function Nu(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Qa(e,t,n){return e?e.concat(t).map(function(s,o){return s=Nu(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Wm(e){return S.isArray(e)&&!e.some(jo)}const qm=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Bs(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!S.isUndefined(p[g])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(s))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(S.isDate(m))return m.toISOString();if(!l&&S.isBlob(m))throw new te("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(m)||S.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,p){let x=m;if(m&&!p&&typeof m=="object"){if(S.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(S.isArray(m)&&Wm(m)||(S.isFileList(m)||S.endsWith(g,"[]"))&&(x=S.toArray(m)))return g=Nu(g),x.forEach(function(A,N){!(S.isUndefined(A)||A===null)&&t.append(i===!0?Qa([g],N,o):i===null?g:g+"[]",c(A))}),!1}return jo(m)?!0:(t.append(Qa(p,g,o),c(m)),!1)}const f=[],d=Object.assign(qm,{defaultVisitor:u,convertValue:c,isVisitable:jo});function h(m,g){if(!S.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),S.forEach(m,function(x,T){(!(S.isUndefined(x)||x===null)&&s.call(t,x,S.isString(T)?T.trim():T,g,d))===!0&&h(x,g?g.concat(T):[T])}),f.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return h(e),t}function el(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Bi(e,t){this._pairs=[],e&&Bs(e,this,t)}const $u=Bi.prototype;$u.append=function(t,n){this._pairs.push([t,n])};$u.toString=function(t){const n=t?function(r){return t.call(this,r,el)}:el;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Km(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Du(e,t,n){if(!t)return e;const r=n&&n.encode||Km,s=n&&n.serialize;let o;if(s?o=s(t,n):o=S.isURLSearchParams(t)?t.toString():new Bi(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class tl{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){S.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ju={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gm=typeof URLSearchParams<"u"?URLSearchParams:Bi,Zm=typeof FormData<"u"?FormData:null,Xm=typeof Blob<"u"?Blob:null,Jm={isBrowser:!0,classes:{URLSearchParams:Gm,FormData:Zm,Blob:Xm},protocols:["http","https","file","blob","url","data"]},Ni=typeof window<"u"&&typeof document<"u",Ym=(e=>Ni&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Qm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eg=Ni&&window.location.href||"http://localhost",tg=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ni,hasStandardBrowserEnv:Ym,hasStandardBrowserWebWorkerEnv:Qm,origin:eg},Symbol.toStringTag,{value:"Module"})),it={...tg,...Jm};function ng(e,t){return Bs(e,new it.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return it.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function rg(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sg(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 Uu(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=o>=n.length;return i=!i&&S.isArray(s)?s.length:i,l?(S.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!S.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&S.isArray(s[i])&&(s[i]=sg(s[i])),!a)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,s)=>{t(rg(r),s,n,0)}),n}return null}function og(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Rr={transitional:ju,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=S.isObject(t);if(o&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return s?JSON.stringify(Uu(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ng(t,this.formSerializer).toString();if((a=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Bs(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),og(t)):t}],transformResponse:[function(t){const n=this.transitional||Rr.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?te.from(a,te.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:it.classes.FormData,Blob:it.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{Rr.headers[e]={}});const ig=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ag=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
22
22
|
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&ig[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},nl=Symbol("internals");function Qn(e){return e&&String(e).trim().toLowerCase()}function ns(e){return e===!1||e==null?e:S.isArray(e)?e.map(ns):String(e)}function lg(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 cg=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fo(e,t,n,r,s){if(S.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function ug(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function fg(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class Ue{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(a,l,c){const u=Qn(l);if(!u)throw new Error("header name must be a non-empty string");const f=S.findKey(s,u);(!f||s[f]===void 0||c===!0||c===void 0&&s[f]!==!1)&&(s[f||l]=ns(a))}const i=(a,l)=>S.forEach(a,(c,u)=>o(c,u,l));if(S.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(S.isString(t)&&(t=t.trim())&&!cg(t))i(ag(t),n);else if(S.isHeaders(t))for(const[a,l]of t.entries())o(l,a,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Qn(t),t){const r=S.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return lg(s);if(S.isFunction(n))return n.call(this,s,r);if(S.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Qn(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||fo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=Qn(i),i){const a=S.findKey(r,i);a&&(!n||fo(r,r[a],a,n))&&(delete r[a],s=!0)}}return S.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||fo(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return S.forEach(this,(s,o)=>{const i=S.findKey(r,o);if(i){n[i]=ns(s),delete n[o];return}const a=t?ug(o):String(o).trim();a!==o&&delete n[o],n[a]=ns(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&S.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(`
|
|
23
23
|
`)}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[nl]=this[nl]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=Qn(i);r[a]||(fg(s,i),r[a]=!0)}return S.isArray(t)?t.forEach(o):o(t),this}}Ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Ue.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});S.freezeMethods(Ue);function ho(e,t){const n=this||Rr,r=t||n,s=Ue.from(r.headers);let o=r.data;return S.forEach(e,function(a){o=a.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function zu(e){return!!(e&&e.__CANCEL__)}function Kn(e,t,n){te.call(this,e??"canceled",te.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(Kn,te,{__CANCEL__:!0});function Wu(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new te("Request failed with status code "+n.status,[te.ERR_BAD_REQUEST,te.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function dg(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function hg(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];i||(i=c),n[s]=l,r[s]=c;let f=o,d=0;for(;f!==s;)d+=n[f++],f=f%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i<t)return;const h=u&&c-u;return h?Math.round(d*1e3/h):void 0}}function mg(e,t){let n=0,r=1e3/t,s,o;const i=(c,u=Date.now())=>{n=u,s=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?i(c,u):(s=c,o||(o=setTimeout(()=>{o=null,i(s)},r-f)))},()=>s&&i(s)]}const hs=(e,t,n=3)=>{let r=0;const s=hg(50,250);return mg(o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-r,c=s(l),u=i<=a;r=i;const f={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-i)/c:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},rl=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},sl=e=>(...t)=>S.asap(()=>e(...t)),gg=it.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const a=S.isString(i)?s(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),vg=it.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];S.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),S.isString(r)&&i.push("path="+r),S.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function qu(e,t){return e&&!pg(t)?yg(e,t):t}const ol=e=>e instanceof Ue?{...e}:e;function bn(e,t){t=t||{};const n={};function r(c,u,f){return S.isPlainObject(c)&&S.isPlainObject(u)?S.merge.call({caseless:f},c,u):S.isPlainObject(u)?S.merge({},u):S.isArray(u)?u.slice():u}function s(c,u,f){if(S.isUndefined(u)){if(!S.isUndefined(c))return r(void 0,c,f)}else return r(c,u,f)}function o(c,u){if(!S.isUndefined(u))return r(void 0,u)}function i(c,u){if(S.isUndefined(u)){if(!S.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,u)=>s(ol(c),ol(u),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||s,d=f(e[u],t[u],u);S.isUndefined(d)&&f!==a||(n[u]=d)}),n}const Ku=e=>{const t=bn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:a}=t;t.headers=i=Ue.from(i),t.url=Du(qu(t.baseURL,t.url),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(S.isFormData(n)){if(it.hasStandardBrowserEnv||it.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...u].join("; "))}}if(it.hasStandardBrowserEnv&&(r&&S.isFunction(r)&&(r=r(t)),r||r!==!1&&gg(t.url))){const c=s&&o&&vg.read(o);c&&i.set(s,c)}return t},bg=typeof XMLHttpRequest<"u",Cg=bg&&function(e){return new Promise(function(n,r){const s=Ku(e);let o=s.data;const i=Ue.from(s.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=s,u,f,d,h,m;function g(){h&&h(),m&&m(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let p=new XMLHttpRequest;p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout;function x(){if(!p)return;const A=Ue.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),O={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:A,config:e,request:p};Wu(function(E){n(E),g()},function(E){r(E),g()},O),p=null}"onloadend"in p?p.onloadend=x:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(x)},p.onabort=function(){p&&(r(new te("Request aborted",te.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new te("Network Error",te.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let N=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const O=s.transitional||ju;s.timeoutErrorMessage&&(N=s.timeoutErrorMessage),r(new te(N,O.clarifyTimeoutError?te.ETIMEDOUT:te.ECONNABORTED,e,p)),p=null},o===void 0&&i.setContentType(null),"setRequestHeader"in p&&S.forEach(i.toJSON(),function(N,O){p.setRequestHeader(O,N)}),S.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),a&&a!=="json"&&(p.responseType=s.responseType),c&&([d,m]=hs(c,!0),p.addEventListener("progress",d)),l&&p.upload&&([f,h]=hs(l),p.upload.addEventListener("progress",f),p.upload.addEventListener("loadend",h)),(s.cancelToken||s.signal)&&(u=A=>{p&&(r(!A||A.type?new Kn(null,e,p):A),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const T=dg(s.url);if(T&&it.protocols.indexOf(T)===-1){r(new te("Unsupported protocol "+T+":",te.ERR_BAD_REQUEST,e));return}p.send(o||null)})},Sg=(e,t)=>{let n=new AbortController,r;const s=function(l){if(!r){r=!0,i();const c=l instanceof Error?l:this.reason;n.abort(c instanceof te?c:new Kn(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{s(new te(`timeout ${t} of ms exceeded`,te.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",s):l.unsubscribe(s))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",s));const{signal:a}=n;return a.unsubscribe=i,[a,()=>{o&&clearTimeout(o),o=null}]},wg=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},_g=async function*(e,t,n){for await(const r of e)yield*wg(ArrayBuffer.isView(r)?r:await n(String(r)),t)},il=(e,t,n,r,s)=>{const o=_g(e,t,s);let i=0,a,l=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:f}=await o.next();if(u){l(),c.close();return}let d=f.byteLength;if(n){let h=i+=d;n(h)}c.enqueue(new Uint8Array(f))}catch(u){throw l(u),u}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},Ns=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Gu=Ns&&typeof ReadableStream=="function",Uo=Ns&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Zu=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ag=Gu&&Zu(()=>{let e=!1;const t=new Request(it.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),al=64*1024,zo=Gu&&Zu(()=>S.isReadableStream(new Response("").body)),ms={stream:zo&&(e=>e.body)};Ns&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ms[t]&&(ms[t]=S.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new te(`Response type '${t}' is not supported`,te.ERR_NOT_SUPPORT,r)})})})(new Response);const Lg=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(S.isArrayBufferView(e)||S.isArrayBuffer(e))return e.byteLength;if(S.isURLSearchParams(e)&&(e=e+""),S.isString(e))return(await Uo(e)).byteLength},Eg=async(e,t)=>{const n=S.toFiniteNumber(e.getContentLength());return n??Lg(t)},xg=Ns&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:d}=Ku(e);c=c?(c+"").toLowerCase():"text";let[h,m]=s||o||i?Sg([s,o],i):[],g,p;const x=()=>{!g&&setTimeout(()=>{h&&h.unsubscribe()}),g=!0};let T;try{if(l&&Ag&&n!=="get"&&n!=="head"&&(T=await Eg(u,r))!==0){let L=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(S.isFormData(r)&&(E=L.headers.get("content-type"))&&u.setContentType(E),L.body){const[H,V]=rl(T,hs(sl(l)));r=il(L.body,al,H,V,Uo)}}S.isString(f)||(f=f?"include":"omit"),p=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:f});let A=await fetch(p);const N=zo&&(c==="stream"||c==="response");if(zo&&(a||N)){const L={};["status","statusText","headers"].forEach(F=>{L[F]=A[F]});const E=S.toFiniteNumber(A.headers.get("content-length")),[H,V]=a&&rl(E,hs(sl(a),!0))||[];A=new Response(il(A.body,al,H,()=>{V&&V(),N&&x()},Uo),L)}c=c||"text";let O=await ms[S.findKey(ms,c)||"text"](A,e);return!N&&x(),m&&m(),await new Promise((L,E)=>{Wu(L,E,{data:O,headers:Ue.from(A.headers),status:A.status,statusText:A.statusText,config:e,request:p})})}catch(A){throw x(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new te("Network Error",te.ERR_NETWORK,e,p),{cause:A.cause||A}):te.from(A,A&&A.code,e,p)}}),Wo={http:zm,xhr:Cg,fetch:xg};S.forEach(Wo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ll=e=>`- ${e}`,Tg=e=>S.isFunction(e)||e===null||e===!1,Xu={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!Tg(n)&&(r=Wo[(i=String(n)).toLowerCase()],r===void 0))throw new te(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
24
24
|
`+o.map(ll).join(`
|
|
Binary file
|
|
Binary file
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* pinia v2.2.0
|
|
19
19
|
* (c) 2024 Eduardo San Martin Morote
|
|
20
20
|
* @license MIT
|
|
21
|
-
*/let Au;const Ms=e=>Au=e,Lu=Symbol();function No(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ur;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ur||(ur={}));function m2(){const e=Lr(!0),t=e.run(()=>ne({}));let n=[],r=[];const s=yi({install(o){Ms(s),s._a=o,o.provide(Lu,s),o.config.globalProperties.$pinia=s,r.forEach(i=>n.push(i)),r=[]},use(o){return!this._a&&!Xh?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Eu=()=>{};function Za(e,t,n,r=Eu){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&hc()&&tt(s),s}function Ln(e,...t){e.slice().forEach(n=>{n(...t)})}const Jh=e=>e(),Xa=Symbol(),co=Symbol();function $o(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];No(s)&&No(r)&&e.hasOwnProperty(n)&&!ge(r)&&!fn(r)?e[n]=$o(s,r):e[n]=r}return e}const Yh=Symbol();function Qh(e){return!No(e)||!e.hasOwnProperty(Yh)}const{assign:kt}=Object;function em(e){return!!(ge(e)&&e.effect)}function tm(e,t,n,r){const{state:s,actions:o,getters:i}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=s?s():{});const u=xs(n.state.value[e]);return kt(u,o,Object.keys(i||{}).reduce((f,d)=>(f[d]=yi(_(()=>{Ms(n);const h=n._s.get(e);return i[d].call(h,h)})),f),{}))}return l=xu(e,c,t,n,r,!0),l}function xu(e,t,n={},r,s,o){let i;const a=kt({actions:{}},n),l={deep:!0};let c,u,f=[],d=[],h;const m=r.state.value[e];!o&&!m&&(r.state.value[e]={}),ne({});let g;function p(H){let V;c=u=!1,typeof H=="function"?(H(r.state.value[e]),V={type:ur.patchFunction,storeId:e,events:h}):($o(r.state.value[e],H),V={type:ur.patchObject,payload:H,storeId:e,events:h});const F=g=Symbol();Gt().then(()=>{g===F&&(c=!0)}),u=!0,Ln(f,V,r.state.value[e])}const x=o?function(){const{state:V}=n,F=V?V():{};this.$patch(B=>{kt(B,F)})}:Eu;function T(){i.stop(),f=[],d=[],r._s.delete(e)}const A=(H,V="")=>{if(Xa in H)return H[co]=V,H;const F=function(){Ms(r);const B=Array.from(arguments),b=[],M=[];function U(Z){b.push(Z)}function re(Z){M.push(Z)}Ln(d,{args:B,name:F[co],store:O,after:U,onError:re});let G;try{G=H.apply(this&&this.$id===e?this:O,B)}catch(Z){throw Ln(M,Z),Z}return G instanceof Promise?G.then(Z=>(Ln(b,Z),Z)).catch(Z=>(Ln(M,Z),Promise.reject(Z))):(Ln(b,G),G)};return F[Xa]=!0,F[co]=V,F},N={_p:r,$id:e,$onAction:Za.bind(null,d),$patch:p,$reset:x,$subscribe(H,V={}){const F=Za(f,H,V.detached,()=>B()),B=i.run(()=>fe(()=>r.state.value[e],b=>{(V.flush==="sync"?u:c)&&H({storeId:e,type:ur.direct,events:h},b)},kt({},l,V)));return F},$dispose:T},O=xt(N);r._s.set(e,O);const E=(r._a&&r._a.runWithContext||Jh)(()=>r._e.run(()=>(i=Lr()).run(()=>t({action:A}))));for(const H in E){const V=E[H];if(ge(V)&&!em(V)||fn(V))o||(m&&Qh(V)&&(ge(V)?V.value=m[H]:$o(V,m[H])),r.state.value[e][H]=V);else if(typeof V=="function"){const F=A(V,H);E[H]=F,a.actions[H]=V}}return kt(O,E),kt(Y(O),E),Object.defineProperty(O,"$state",{get:()=>r.state.value[e],set:H=>{p(V=>{kt(V,H)})}}),r._p.forEach(H=>{kt(O,i.run(()=>H({store:O,app:r._a,pinia:r,options:a})))}),m&&o&&n.hydrate&&n.hydrate(O.$state,m),c=!0,u=!0,O}function Ii(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 i(a,l){const c=x1();return a=a||(c?Pe(Lu,null):null),a&&Ms(a),a=Au,a._s.has(r)||(o?xu(r,t,s,a):tm(r,s,a)),a._s.get(r)}return i.$id=r,i}function ks(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 nm=ks;function Hi(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 g2(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),{})}function yr(e,t,n=new Map){const r=n.get(e);if(typeof r<"u")return r;if(Array.isArray(e)){const i=[];n.set(e,i);for(let a=0;a<e.length;a++)i[a]=yr(e[a],t,n);return i}if(e instanceof Date)return new Date(e.valueOf());if(!(e instanceof Object))return e;const s={};n.set(e,s);const o=Object.keys(e);for(let i=0;i<o.length;i++){const a=typeof t=="function"?t(o[i]):o[i];s[a]=yr(e[o[i]],t,n)}return s}function rm(e){return t=>yr(t,e)}yr.formatKeys=rm;const Tu=["detail","oldPassword","password","username","passwordConfirm","path"];Object.freeze(Tu);const sm=e=>{let t=[];if(e&&e.response&&e.response.data){let n=e.response.data;for(const r of Tu)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},dt=Ii("common",{state:()=>({form:{errors:[],success:""},versions:{installed:"1.6.16",latest:void 0},timestamp:Date.now(),isSettingsDrawerOpen:!1,opdsURLs:void 0}),getters:{isMobile:function(){return window.orientation!==void 0||navigator.userAgent.includes("IEMobile")}},actions:{async loadVersions(){await go.getVersions(this.timestamp).then(e=>{const t=e.data;return this.versions=t}).catch(console.error)},downloadIOSPWAFix(e,t){go.getDownloadIOSPWAFix(e,t)},setErrors(e){const t=sm(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()},setSettingsDrawerOpen(e){this.isSettingsDrawerOpen=e},async loadOPDSURLs(){this.opdsURLs||await go.getOPDSURLs().then(e=>this.opdsURLs=Object.freeze({...e.data})).catch(console.error)}}});function Ou(e,t){return function(){return e.apply(t,arguments)}}const{toString:om}=Object.prototype,{getPrototypeOf:Fi}=Object,Is=(e=>t=>{const n=om.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>Is(t)===e),Hs=e=>t=>typeof t===e,{isArray:qn}=Array,br=Hs("undefined");function im(e){return e!==null&&!br(e)&&e.constructor!==null&&!br(e.constructor)&&Ze(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vu=lt("ArrayBuffer");function am(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Vu(e.buffer),t}const lm=Hs("string"),Ze=Hs("function"),Pu=Hs("number"),Fs=e=>e!==null&&typeof e=="object",cm=e=>e===!0||e===!1,ts=e=>{if(Is(e)!=="object")return!1;const t=Fi(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},um=lt("Date"),fm=lt("File"),dm=lt("Blob"),hm=lt("FileList"),mm=e=>Fs(e)&&Ze(e.pipe),gm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ze(e.append)&&((t=Is(e))==="formdata"||t==="object"&&Ze(e.toString)&&e.toString()==="[object FormData]"))},vm=lt("URLSearchParams"),[pm,ym,bm,Cm]=["ReadableStream","Request","Response","Headers"].map(lt),Sm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),qn(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),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Ru(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 ln=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mu=e=>!br(e)&&e!==ln;function Do(){const{caseless:e}=Mu(this)&&this||{},t={},n=(r,s)=>{const o=e&&Ru(t,s)||s;ts(t[o])&&ts(r)?t[o]=Do(t[o],r):ts(r)?t[o]=Do({},r):qn(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Pr(arguments[r],n);return t}const wm=(e,t,n,{allOwnKeys:r}={})=>(Pr(t,(s,o)=>{n&&Ze(s)?e[o]=Ou(s,n):e[o]=s},{allOwnKeys:r}),e),_m=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Am=(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)},Lm=(e,t,n,r)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Fi(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Em=(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},xm=e=>{if(!e)return null;if(qn(e))return e;let t=e.length;if(!Pu(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Tm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Fi(Uint8Array)),Om=(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])}},Vm=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Pm=lt("HTMLFormElement"),Rm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ja=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Mm=lt("RegExp"),ku=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Pr(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},km=e=>{ku(e,(t,n)=>{if(Ze(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ze(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+"'")})}})},Im=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return qn(e)?r(e):r(String(e).split(t)),n},Hm=()=>{},Fm=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,uo="abcdefghijklmnopqrstuvwxyz",Ya="0123456789",Iu={DIGIT:Ya,ALPHA:uo,ALPHA_DIGIT:uo+uo.toUpperCase()+Ya},Bm=(e=16,t=Iu.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Nm(e){return!!(e&&Ze(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const $m=e=>{const t=new Array(10),n=(r,s)=>{if(Fs(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=qn(r)?[]:{};return Pr(r,(i,a)=>{const l=n(i,s+1);!br(l)&&(o[a]=l)}),t[s]=void 0,o}}return r};return n(e,0)},Dm=lt("AsyncFunction"),jm=e=>e&&(Fs(e)||Ze(e))&&Ze(e.then)&&Ze(e.catch),Hu=((e,t)=>e?setImmediate:t?((n,r)=>(ln.addEventListener("message",({source:s,data:o})=>{s===ln&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ln.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ze(ln.postMessage)),Um=typeof queueMicrotask<"u"?queueMicrotask.bind(ln):typeof process<"u"&&process.nextTick||Hu,S={isArray:qn,isArrayBuffer:Vu,isBuffer:im,isFormData:gm,isArrayBufferView:am,isString:lm,isNumber:Pu,isBoolean:cm,isObject:Fs,isPlainObject:ts,isReadableStream:pm,isRequest:ym,isResponse:bm,isHeaders:Cm,isUndefined:br,isDate:um,isFile:fm,isBlob:dm,isRegExp:Mm,isFunction:Ze,isStream:mm,isURLSearchParams:vm,isTypedArray:Tm,isFileList:hm,forEach:Pr,merge:Do,extend:wm,trim:Sm,stripBOM:_m,inherits:Am,toFlatObject:Lm,kindOf:Is,kindOfTest:lt,endsWith:Em,toArray:xm,forEachEntry:Om,matchAll:Vm,isHTMLForm:Pm,hasOwnProperty:Ja,hasOwnProp:Ja,reduceDescriptors:ku,freezeMethods:km,toObjectSet:Im,toCamelCase:Rm,noop:Hm,toFiniteNumber:Fm,findKey:Ru,global:ln,isContextDefined:Mu,ALPHABET:Iu,generateString:Bm,isSpecCompliantForm:Nm,toJSONObject:$m,isAsyncFn:Dm,isThenable:jm,setImmediate:Hu,asap:Um};function te(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)}S.inherits(te,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fu=te.prototype,Bu={};["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=>{Bu[e]={value:e}});Object.defineProperties(te,Bu);Object.defineProperty(Fu,"isAxiosError",{value:!0});te.from=(e,t,n,r,s,o)=>{const i=Object.create(Fu);return S.toFlatObject(e,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),te.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const zm=null;function jo(e){return S.isPlainObject(e)||S.isArray(e)}function Nu(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Qa(e,t,n){return e?e.concat(t).map(function(s,o){return s=Nu(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Wm(e){return S.isArray(e)&&!e.some(jo)}const qm=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Bs(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!S.isUndefined(p[g])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(s))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(S.isDate(m))return m.toISOString();if(!l&&S.isBlob(m))throw new te("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(m)||S.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,p){let x=m;if(m&&!p&&typeof m=="object"){if(S.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(S.isArray(m)&&Wm(m)||(S.isFileList(m)||S.endsWith(g,"[]"))&&(x=S.toArray(m)))return g=Nu(g),x.forEach(function(A,N){!(S.isUndefined(A)||A===null)&&t.append(i===!0?Qa([g],N,o):i===null?g:g+"[]",c(A))}),!1}return jo(m)?!0:(t.append(Qa(p,g,o),c(m)),!1)}const f=[],d=Object.assign(qm,{defaultVisitor:u,convertValue:c,isVisitable:jo});function h(m,g){if(!S.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),S.forEach(m,function(x,T){(!(S.isUndefined(x)||x===null)&&s.call(t,x,S.isString(T)?T.trim():T,g,d))===!0&&h(x,g?g.concat(T):[T])}),f.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return h(e),t}function el(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Bi(e,t){this._pairs=[],e&&Bs(e,this,t)}const $u=Bi.prototype;$u.append=function(t,n){this._pairs.push([t,n])};$u.toString=function(t){const n=t?function(r){return t.call(this,r,el)}:el;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Km(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Du(e,t,n){if(!t)return e;const r=n&&n.encode||Km,s=n&&n.serialize;let o;if(s?o=s(t,n):o=S.isURLSearchParams(t)?t.toString():new Bi(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class tl{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){S.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ju={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gm=typeof URLSearchParams<"u"?URLSearchParams:Bi,Zm=typeof FormData<"u"?FormData:null,Xm=typeof Blob<"u"?Blob:null,Jm={isBrowser:!0,classes:{URLSearchParams:Gm,FormData:Zm,Blob:Xm},protocols:["http","https","file","blob","url","data"]},Ni=typeof window<"u"&&typeof document<"u",Ym=(e=>Ni&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Qm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eg=Ni&&window.location.href||"http://localhost",tg=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ni,hasStandardBrowserEnv:Ym,hasStandardBrowserWebWorkerEnv:Qm,origin:eg},Symbol.toStringTag,{value:"Module"})),it={...tg,...Jm};function ng(e,t){return Bs(e,new it.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return it.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function rg(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sg(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 Uu(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=o>=n.length;return i=!i&&S.isArray(s)?s.length:i,l?(S.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!S.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&S.isArray(s[i])&&(s[i]=sg(s[i])),!a)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,s)=>{t(rg(r),s,n,0)}),n}return null}function og(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Rr={transitional:ju,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=S.isObject(t);if(o&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return s?JSON.stringify(Uu(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ng(t,this.formSerializer).toString();if((a=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Bs(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),og(t)):t}],transformResponse:[function(t){const n=this.transitional||Rr.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?te.from(a,te.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:it.classes.FormData,Blob:it.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{Rr.headers[e]={}});const ig=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ag=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
21
|
+
*/let Au;const Ms=e=>Au=e,Lu=Symbol();function No(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ur;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ur||(ur={}));function m2(){const e=Lr(!0),t=e.run(()=>ne({}));let n=[],r=[];const s=yi({install(o){Ms(s),s._a=o,o.provide(Lu,s),o.config.globalProperties.$pinia=s,r.forEach(i=>n.push(i)),r=[]},use(o){return!this._a&&!Xh?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Eu=()=>{};function Za(e,t,n,r=Eu){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&hc()&&tt(s),s}function Ln(e,...t){e.slice().forEach(n=>{n(...t)})}const Jh=e=>e(),Xa=Symbol(),co=Symbol();function $o(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];No(s)&&No(r)&&e.hasOwnProperty(n)&&!ge(r)&&!fn(r)?e[n]=$o(s,r):e[n]=r}return e}const Yh=Symbol();function Qh(e){return!No(e)||!e.hasOwnProperty(Yh)}const{assign:kt}=Object;function em(e){return!!(ge(e)&&e.effect)}function tm(e,t,n,r){const{state:s,actions:o,getters:i}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=s?s():{});const u=xs(n.state.value[e]);return kt(u,o,Object.keys(i||{}).reduce((f,d)=>(f[d]=yi(_(()=>{Ms(n);const h=n._s.get(e);return i[d].call(h,h)})),f),{}))}return l=xu(e,c,t,n,r,!0),l}function xu(e,t,n={},r,s,o){let i;const a=kt({actions:{}},n),l={deep:!0};let c,u,f=[],d=[],h;const m=r.state.value[e];!o&&!m&&(r.state.value[e]={}),ne({});let g;function p(H){let V;c=u=!1,typeof H=="function"?(H(r.state.value[e]),V={type:ur.patchFunction,storeId:e,events:h}):($o(r.state.value[e],H),V={type:ur.patchObject,payload:H,storeId:e,events:h});const F=g=Symbol();Gt().then(()=>{g===F&&(c=!0)}),u=!0,Ln(f,V,r.state.value[e])}const x=o?function(){const{state:V}=n,F=V?V():{};this.$patch(B=>{kt(B,F)})}:Eu;function T(){i.stop(),f=[],d=[],r._s.delete(e)}const A=(H,V="")=>{if(Xa in H)return H[co]=V,H;const F=function(){Ms(r);const B=Array.from(arguments),b=[],M=[];function U(Z){b.push(Z)}function re(Z){M.push(Z)}Ln(d,{args:B,name:F[co],store:O,after:U,onError:re});let G;try{G=H.apply(this&&this.$id===e?this:O,B)}catch(Z){throw Ln(M,Z),Z}return G instanceof Promise?G.then(Z=>(Ln(b,Z),Z)).catch(Z=>(Ln(M,Z),Promise.reject(Z))):(Ln(b,G),G)};return F[Xa]=!0,F[co]=V,F},N={_p:r,$id:e,$onAction:Za.bind(null,d),$patch:p,$reset:x,$subscribe(H,V={}){const F=Za(f,H,V.detached,()=>B()),B=i.run(()=>fe(()=>r.state.value[e],b=>{(V.flush==="sync"?u:c)&&H({storeId:e,type:ur.direct,events:h},b)},kt({},l,V)));return F},$dispose:T},O=xt(N);r._s.set(e,O);const E=(r._a&&r._a.runWithContext||Jh)(()=>r._e.run(()=>(i=Lr()).run(()=>t({action:A}))));for(const H in E){const V=E[H];if(ge(V)&&!em(V)||fn(V))o||(m&&Qh(V)&&(ge(V)?V.value=m[H]:$o(V,m[H])),r.state.value[e][H]=V);else if(typeof V=="function"){const F=A(V,H);E[H]=F,a.actions[H]=V}}return kt(O,E),kt(Y(O),E),Object.defineProperty(O,"$state",{get:()=>r.state.value[e],set:H=>{p(V=>{kt(V,H)})}}),r._p.forEach(H=>{kt(O,i.run(()=>H({store:O,app:r._a,pinia:r,options:a})))}),m&&o&&n.hydrate&&n.hydrate(O.$state,m),c=!0,u=!0,O}function Ii(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 i(a,l){const c=x1();return a=a||(c?Pe(Lu,null):null),a&&Ms(a),a=Au,a._s.has(r)||(o?xu(r,t,s,a):tm(r,s,a)),a._s.get(r)}return i.$id=r,i}function ks(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 nm=ks;function Hi(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 g2(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),{})}function yr(e,t,n=new Map){const r=n.get(e);if(typeof r<"u")return r;if(Array.isArray(e)){const i=[];n.set(e,i);for(let a=0;a<e.length;a++)i[a]=yr(e[a],t,n);return i}if(e instanceof Date)return new Date(e.valueOf());if(!(e instanceof Object))return e;const s={};n.set(e,s);const o=Object.keys(e);for(let i=0;i<o.length;i++){const a=typeof t=="function"?t(o[i]):o[i];s[a]=yr(e[o[i]],t,n)}return s}function rm(e){return t=>yr(t,e)}yr.formatKeys=rm;const Tu=["detail","oldPassword","password","username","passwordConfirm","path"];Object.freeze(Tu);const sm=e=>{let t=[];if(e&&e.response&&e.response.data){let n=e.response.data;for(const r of Tu)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},dt=Ii("common",{state:()=>({form:{errors:[],success:""},versions:{installed:"1.6.17",latest:void 0},timestamp:Date.now(),isSettingsDrawerOpen:!1,opdsURLs:void 0}),getters:{isMobile:function(){return window.orientation!==void 0||navigator.userAgent.includes("IEMobile")}},actions:{async loadVersions(){await go.getVersions(this.timestamp).then(e=>{const t=e.data;return this.versions=t}).catch(console.error)},downloadIOSPWAFix(e,t){go.getDownloadIOSPWAFix(e,t)},setErrors(e){const t=sm(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()},setSettingsDrawerOpen(e){this.isSettingsDrawerOpen=e},async loadOPDSURLs(){this.opdsURLs||await go.getOPDSURLs().then(e=>this.opdsURLs=Object.freeze({...e.data})).catch(console.error)}}});function Ou(e,t){return function(){return e.apply(t,arguments)}}const{toString:om}=Object.prototype,{getPrototypeOf:Fi}=Object,Is=(e=>t=>{const n=om.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>Is(t)===e),Hs=e=>t=>typeof t===e,{isArray:qn}=Array,br=Hs("undefined");function im(e){return e!==null&&!br(e)&&e.constructor!==null&&!br(e.constructor)&&Ze(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vu=lt("ArrayBuffer");function am(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Vu(e.buffer),t}const lm=Hs("string"),Ze=Hs("function"),Pu=Hs("number"),Fs=e=>e!==null&&typeof e=="object",cm=e=>e===!0||e===!1,ts=e=>{if(Is(e)!=="object")return!1;const t=Fi(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},um=lt("Date"),fm=lt("File"),dm=lt("Blob"),hm=lt("FileList"),mm=e=>Fs(e)&&Ze(e.pipe),gm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ze(e.append)&&((t=Is(e))==="formdata"||t==="object"&&Ze(e.toString)&&e.toString()==="[object FormData]"))},vm=lt("URLSearchParams"),[pm,ym,bm,Cm]=["ReadableStream","Request","Response","Headers"].map(lt),Sm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),qn(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),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Ru(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 ln=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mu=e=>!br(e)&&e!==ln;function Do(){const{caseless:e}=Mu(this)&&this||{},t={},n=(r,s)=>{const o=e&&Ru(t,s)||s;ts(t[o])&&ts(r)?t[o]=Do(t[o],r):ts(r)?t[o]=Do({},r):qn(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Pr(arguments[r],n);return t}const wm=(e,t,n,{allOwnKeys:r}={})=>(Pr(t,(s,o)=>{n&&Ze(s)?e[o]=Ou(s,n):e[o]=s},{allOwnKeys:r}),e),_m=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Am=(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)},Lm=(e,t,n,r)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&Fi(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Em=(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},xm=e=>{if(!e)return null;if(qn(e))return e;let t=e.length;if(!Pu(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Tm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Fi(Uint8Array)),Om=(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])}},Vm=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Pm=lt("HTMLFormElement"),Rm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ja=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Mm=lt("RegExp"),ku=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Pr(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},km=e=>{ku(e,(t,n)=>{if(Ze(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ze(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+"'")})}})},Im=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return qn(e)?r(e):r(String(e).split(t)),n},Hm=()=>{},Fm=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,uo="abcdefghijklmnopqrstuvwxyz",Ya="0123456789",Iu={DIGIT:Ya,ALPHA:uo,ALPHA_DIGIT:uo+uo.toUpperCase()+Ya},Bm=(e=16,t=Iu.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Nm(e){return!!(e&&Ze(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const $m=e=>{const t=new Array(10),n=(r,s)=>{if(Fs(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=qn(r)?[]:{};return Pr(r,(i,a)=>{const l=n(i,s+1);!br(l)&&(o[a]=l)}),t[s]=void 0,o}}return r};return n(e,0)},Dm=lt("AsyncFunction"),jm=e=>e&&(Fs(e)||Ze(e))&&Ze(e.then)&&Ze(e.catch),Hu=((e,t)=>e?setImmediate:t?((n,r)=>(ln.addEventListener("message",({source:s,data:o})=>{s===ln&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ln.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ze(ln.postMessage)),Um=typeof queueMicrotask<"u"?queueMicrotask.bind(ln):typeof process<"u"&&process.nextTick||Hu,S={isArray:qn,isArrayBuffer:Vu,isBuffer:im,isFormData:gm,isArrayBufferView:am,isString:lm,isNumber:Pu,isBoolean:cm,isObject:Fs,isPlainObject:ts,isReadableStream:pm,isRequest:ym,isResponse:bm,isHeaders:Cm,isUndefined:br,isDate:um,isFile:fm,isBlob:dm,isRegExp:Mm,isFunction:Ze,isStream:mm,isURLSearchParams:vm,isTypedArray:Tm,isFileList:hm,forEach:Pr,merge:Do,extend:wm,trim:Sm,stripBOM:_m,inherits:Am,toFlatObject:Lm,kindOf:Is,kindOfTest:lt,endsWith:Em,toArray:xm,forEachEntry:Om,matchAll:Vm,isHTMLForm:Pm,hasOwnProperty:Ja,hasOwnProp:Ja,reduceDescriptors:ku,freezeMethods:km,toObjectSet:Im,toCamelCase:Rm,noop:Hm,toFiniteNumber:Fm,findKey:Ru,global:ln,isContextDefined:Mu,ALPHABET:Iu,generateString:Bm,isSpecCompliantForm:Nm,toJSONObject:$m,isAsyncFn:Dm,isThenable:jm,setImmediate:Hu,asap:Um};function te(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)}S.inherits(te,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fu=te.prototype,Bu={};["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=>{Bu[e]={value:e}});Object.defineProperties(te,Bu);Object.defineProperty(Fu,"isAxiosError",{value:!0});te.from=(e,t,n,r,s,o)=>{const i=Object.create(Fu);return S.toFlatObject(e,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),te.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const zm=null;function jo(e){return S.isPlainObject(e)||S.isArray(e)}function Nu(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Qa(e,t,n){return e?e.concat(t).map(function(s,o){return s=Nu(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Wm(e){return S.isArray(e)&&!e.some(jo)}const qm=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Bs(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!S.isUndefined(p[g])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(s))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(S.isDate(m))return m.toISOString();if(!l&&S.isBlob(m))throw new te("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(m)||S.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,p){let x=m;if(m&&!p&&typeof m=="object"){if(S.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(S.isArray(m)&&Wm(m)||(S.isFileList(m)||S.endsWith(g,"[]"))&&(x=S.toArray(m)))return g=Nu(g),x.forEach(function(A,N){!(S.isUndefined(A)||A===null)&&t.append(i===!0?Qa([g],N,o):i===null?g:g+"[]",c(A))}),!1}return jo(m)?!0:(t.append(Qa(p,g,o),c(m)),!1)}const f=[],d=Object.assign(qm,{defaultVisitor:u,convertValue:c,isVisitable:jo});function h(m,g){if(!S.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),S.forEach(m,function(x,T){(!(S.isUndefined(x)||x===null)&&s.call(t,x,S.isString(T)?T.trim():T,g,d))===!0&&h(x,g?g.concat(T):[T])}),f.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return h(e),t}function el(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Bi(e,t){this._pairs=[],e&&Bs(e,this,t)}const $u=Bi.prototype;$u.append=function(t,n){this._pairs.push([t,n])};$u.toString=function(t){const n=t?function(r){return t.call(this,r,el)}:el;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Km(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Du(e,t,n){if(!t)return e;const r=n&&n.encode||Km,s=n&&n.serialize;let o;if(s?o=s(t,n):o=S.isURLSearchParams(t)?t.toString():new Bi(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class tl{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){S.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ju={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gm=typeof URLSearchParams<"u"?URLSearchParams:Bi,Zm=typeof FormData<"u"?FormData:null,Xm=typeof Blob<"u"?Blob:null,Jm={isBrowser:!0,classes:{URLSearchParams:Gm,FormData:Zm,Blob:Xm},protocols:["http","https","file","blob","url","data"]},Ni=typeof window<"u"&&typeof document<"u",Ym=(e=>Ni&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Qm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eg=Ni&&window.location.href||"http://localhost",tg=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ni,hasStandardBrowserEnv:Ym,hasStandardBrowserWebWorkerEnv:Qm,origin:eg},Symbol.toStringTag,{value:"Module"})),it={...tg,...Jm};function ng(e,t){return Bs(e,new it.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return it.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function rg(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sg(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 Uu(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=o>=n.length;return i=!i&&S.isArray(s)?s.length:i,l?(S.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!S.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&S.isArray(s[i])&&(s[i]=sg(s[i])),!a)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,s)=>{t(rg(r),s,n,0)}),n}return null}function og(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Rr={transitional:ju,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=S.isObject(t);if(o&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return s?JSON.stringify(Uu(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ng(t,this.formSerializer).toString();if((a=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Bs(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),og(t)):t}],transformResponse:[function(t){const n=this.transitional||Rr.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?te.from(a,te.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:it.classes.FormData,Blob:it.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{Rr.headers[e]={}});const ig=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ag=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
22
22
|
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&ig[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},nl=Symbol("internals");function Qn(e){return e&&String(e).trim().toLowerCase()}function ns(e){return e===!1||e==null?e:S.isArray(e)?e.map(ns):String(e)}function lg(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 cg=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fo(e,t,n,r,s){if(S.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function ug(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function fg(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class Ue{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(a,l,c){const u=Qn(l);if(!u)throw new Error("header name must be a non-empty string");const f=S.findKey(s,u);(!f||s[f]===void 0||c===!0||c===void 0&&s[f]!==!1)&&(s[f||l]=ns(a))}const i=(a,l)=>S.forEach(a,(c,u)=>o(c,u,l));if(S.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(S.isString(t)&&(t=t.trim())&&!cg(t))i(ag(t),n);else if(S.isHeaders(t))for(const[a,l]of t.entries())o(l,a,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Qn(t),t){const r=S.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return lg(s);if(S.isFunction(n))return n.call(this,s,r);if(S.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Qn(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||fo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=Qn(i),i){const a=S.findKey(r,i);a&&(!n||fo(r,r[a],a,n))&&(delete r[a],s=!0)}}return S.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||fo(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return S.forEach(this,(s,o)=>{const i=S.findKey(r,o);if(i){n[i]=ns(s),delete n[o];return}const a=t?ug(o):String(o).trim();a!==o&&delete n[o],n[a]=ns(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&S.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(`
|
|
23
23
|
`)}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[nl]=this[nl]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=Qn(i);r[a]||(fg(s,i),r[a]=!0)}return S.isArray(t)?t.forEach(o):o(t),this}}Ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Ue.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});S.freezeMethods(Ue);function ho(e,t){const n=this||Rr,r=t||n,s=Ue.from(r.headers);let o=r.data;return S.forEach(e,function(a){o=a.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function zu(e){return!!(e&&e.__CANCEL__)}function Kn(e,t,n){te.call(this,e??"canceled",te.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(Kn,te,{__CANCEL__:!0});function Wu(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new te("Request failed with status code "+n.status,[te.ERR_BAD_REQUEST,te.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function dg(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function hg(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];i||(i=c),n[s]=l,r[s]=c;let f=o,d=0;for(;f!==s;)d+=n[f++],f=f%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i<t)return;const h=u&&c-u;return h?Math.round(d*1e3/h):void 0}}function mg(e,t){let n=0,r=1e3/t,s,o;const i=(c,u=Date.now())=>{n=u,s=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?i(c,u):(s=c,o||(o=setTimeout(()=>{o=null,i(s)},r-f)))},()=>s&&i(s)]}const hs=(e,t,n=3)=>{let r=0;const s=hg(50,250);return mg(o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-r,c=s(l),u=i<=a;r=i;const f={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-i)/c:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},rl=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},sl=e=>(...t)=>S.asap(()=>e(...t)),gg=it.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const a=S.isString(i)?s(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),vg=it.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];S.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),S.isString(r)&&i.push("path="+r),S.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function qu(e,t){return e&&!pg(t)?yg(e,t):t}const ol=e=>e instanceof Ue?{...e}:e;function bn(e,t){t=t||{};const n={};function r(c,u,f){return S.isPlainObject(c)&&S.isPlainObject(u)?S.merge.call({caseless:f},c,u):S.isPlainObject(u)?S.merge({},u):S.isArray(u)?u.slice():u}function s(c,u,f){if(S.isUndefined(u)){if(!S.isUndefined(c))return r(void 0,c,f)}else return r(c,u,f)}function o(c,u){if(!S.isUndefined(u))return r(void 0,u)}function i(c,u){if(S.isUndefined(u)){if(!S.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,u)=>s(ol(c),ol(u),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||s,d=f(e[u],t[u],u);S.isUndefined(d)&&f!==a||(n[u]=d)}),n}const Ku=e=>{const t=bn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:a}=t;t.headers=i=Ue.from(i),t.url=Du(qu(t.baseURL,t.url),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(S.isFormData(n)){if(it.hasStandardBrowserEnv||it.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...u].join("; "))}}if(it.hasStandardBrowserEnv&&(r&&S.isFunction(r)&&(r=r(t)),r||r!==!1&&gg(t.url))){const c=s&&o&&vg.read(o);c&&i.set(s,c)}return t},bg=typeof XMLHttpRequest<"u",Cg=bg&&function(e){return new Promise(function(n,r){const s=Ku(e);let o=s.data;const i=Ue.from(s.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=s,u,f,d,h,m;function g(){h&&h(),m&&m(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let p=new XMLHttpRequest;p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout;function x(){if(!p)return;const A=Ue.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),O={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:A,config:e,request:p};Wu(function(E){n(E),g()},function(E){r(E),g()},O),p=null}"onloadend"in p?p.onloadend=x:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(x)},p.onabort=function(){p&&(r(new te("Request aborted",te.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new te("Network Error",te.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let N=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const O=s.transitional||ju;s.timeoutErrorMessage&&(N=s.timeoutErrorMessage),r(new te(N,O.clarifyTimeoutError?te.ETIMEDOUT:te.ECONNABORTED,e,p)),p=null},o===void 0&&i.setContentType(null),"setRequestHeader"in p&&S.forEach(i.toJSON(),function(N,O){p.setRequestHeader(O,N)}),S.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),a&&a!=="json"&&(p.responseType=s.responseType),c&&([d,m]=hs(c,!0),p.addEventListener("progress",d)),l&&p.upload&&([f,h]=hs(l),p.upload.addEventListener("progress",f),p.upload.addEventListener("loadend",h)),(s.cancelToken||s.signal)&&(u=A=>{p&&(r(!A||A.type?new Kn(null,e,p):A),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const T=dg(s.url);if(T&&it.protocols.indexOf(T)===-1){r(new te("Unsupported protocol "+T+":",te.ERR_BAD_REQUEST,e));return}p.send(o||null)})},Sg=(e,t)=>{let n=new AbortController,r;const s=function(l){if(!r){r=!0,i();const c=l instanceof Error?l:this.reason;n.abort(c instanceof te?c:new Kn(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{s(new te(`timeout ${t} of ms exceeded`,te.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",s):l.unsubscribe(s))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",s));const{signal:a}=n;return a.unsubscribe=i,[a,()=>{o&&clearTimeout(o),o=null}]},wg=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},_g=async function*(e,t,n){for await(const r of e)yield*wg(ArrayBuffer.isView(r)?r:await n(String(r)),t)},il=(e,t,n,r,s)=>{const o=_g(e,t,s);let i=0,a,l=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:f}=await o.next();if(u){l(),c.close();return}let d=f.byteLength;if(n){let h=i+=d;n(h)}c.enqueue(new Uint8Array(f))}catch(u){throw l(u),u}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},Ns=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Gu=Ns&&typeof ReadableStream=="function",Uo=Ns&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Zu=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ag=Gu&&Zu(()=>{let e=!1;const t=new Request(it.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),al=64*1024,zo=Gu&&Zu(()=>S.isReadableStream(new Response("").body)),ms={stream:zo&&(e=>e.body)};Ns&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ms[t]&&(ms[t]=S.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new te(`Response type '${t}' is not supported`,te.ERR_NOT_SUPPORT,r)})})})(new Response);const Lg=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(S.isArrayBufferView(e)||S.isArrayBuffer(e))return e.byteLength;if(S.isURLSearchParams(e)&&(e=e+""),S.isString(e))return(await Uo(e)).byteLength},Eg=async(e,t)=>{const n=S.toFiniteNumber(e.getContentLength());return n??Lg(t)},xg=Ns&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:d}=Ku(e);c=c?(c+"").toLowerCase():"text";let[h,m]=s||o||i?Sg([s,o],i):[],g,p;const x=()=>{!g&&setTimeout(()=>{h&&h.unsubscribe()}),g=!0};let T;try{if(l&&Ag&&n!=="get"&&n!=="head"&&(T=await Eg(u,r))!==0){let L=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(S.isFormData(r)&&(E=L.headers.get("content-type"))&&u.setContentType(E),L.body){const[H,V]=rl(T,hs(sl(l)));r=il(L.body,al,H,V,Uo)}}S.isString(f)||(f=f?"include":"omit"),p=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:f});let A=await fetch(p);const N=zo&&(c==="stream"||c==="response");if(zo&&(a||N)){const L={};["status","statusText","headers"].forEach(F=>{L[F]=A[F]});const E=S.toFiniteNumber(A.headers.get("content-length")),[H,V]=a&&rl(E,hs(sl(a),!0))||[];A=new Response(il(A.body,al,H,()=>{V&&V(),N&&x()},Uo),L)}c=c||"text";let O=await ms[S.findKey(ms,c)||"text"](A,e);return!N&&x(),m&&m(),await new Promise((L,E)=>{Wu(L,E,{data:O,headers:Ue.from(A.headers),status:A.status,statusText:A.statusText,config:e,request:p})})}catch(A){throw x(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new te("Network Error",te.ERR_NETWORK,e,p),{cause:A.cause||A}):te.from(A,A&&A.code,e,p)}}),Wo={http:zm,xhr:Cg,fetch:xg};S.forEach(Wo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ll=e=>`- ${e}`,Tg=e=>S.isFunction(e)||e===null||e===!1,Xu={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!Tg(n)&&(r=Wo[(i=String(n)).toLowerCase()],r===void 0))throw new te(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
24
24
|
`+o.map(ll).join(`
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as b,aK as Ce,aL as Te,aM as ce,aN as ke,Z as f,$ as l,Y as p,a0 as h,T as i,aq as I,aO as a,aE as w,aF as O,aG as S,V as F,ak as u,aP as k,aQ as de,aR as ue,aS as me,aD as V,q as P,W as v,X as T,aT as U,aU as Y,aI as B,aV as D,aW as Ve,ap as Me,aX as $e,aY as M,aZ as re,a_ as se,a$ as Pe,b0 as oe,b1 as Fe,F as G,N as q,b2 as Ie,aw as Z,b3 as xe,P as E,b4 as De,b5 as Ne,au as Oe,S as z,b6 as Re,b7 as He,b8 as J,b9 as Ae,ba as Le,al as A,bb as Ue,bc as Ge,h as Q,ao as qe,bd as Ee,av as ze,be as je,ay as We,az as x,ax as Ye,bf as Qe,aB as Ke,bg as Xe,l as Ze,bh as he,bi as Je,bj as et,bk as tt,bl as rt,bm as pe,bn as j,bo as ae,bp as st,bq as fe,br as _e,bs as ge,bt as ot,bu as at,bv as nt,bw as it,bx as lt,by as ct,bz as dt,bA as ut,bB as mt}from"./admin-drawer-panel-CoRl2h5W.js";import{V as ht}from"./VTable-DISTvhO_.js";import{V as pt}from"./VDialog-DLAqK7mg.js";import{u as g,f as K,g as ft,a as _t,c as gt}from"./main-DyDcAKfE.js";import{V as L}from"./VCheckbox-B_KxeHW4.js";import{b as bt,a as W,V as ne,c as yt,S as vt}from"./settings-drawer-BUeCNt4i.js";import{M as St,p as wt,B as Bt,g as Ct,V as X,N as ie,t as Tt,T as N,a as kt,P as Vt,b as Mt,c as $t}from"./pagination-toolbar-C9SzPo7k.js";import{C as Pt}from"./confirm-dialog-DPtJ2Fu2.js";import{V as Ft}from"./VSelect-B1_LeX22.js";import{E as It,P as xt,V as be,U as Dt}from"./unauthorized-Dnq8D35W.js";import{V as Nt}from"./VCombobox-EtQ72JMr.js";import{V as Ot}from"./VTextField-C0DUSXBX.js";import"./VCheckboxBtn-D_7rfm4C.js";import"./VSelectionControl-B7a_kuaA.js";import"./copy-to-clipboard-DoUvDJVx.js";import"./VSlideGroup-BRl45QHs.js";import"./change-password-dialog-ColNjAlK.js";import"./filter-BoSLQk91.js";const Rt=[["characters","CSV","category"],["community_rating","Decimal","communityrating"],["contributor","CSV","author, creator, credit, person, people"],["country","String"],["created_at","DateTime","created"],["critical_rating","Decimal","criticalrating"],["day","Integer"],["date","Date"],["decade","Integer"],["file_type","String","filetype, type"],["genres","CSV","genre"],["identifier","CSV","id, nss"],["identifier_type","CSV","id_type, idtype, nid"],["imprint","String"],["issue","String","(Combined issue_number and issue_suffix)"],["issue_number","Decimal","number"],["issue_suffix","String"],["language","String"],["location","CSV","location"],["maturity_rating","String"],["monochrome","String","blackandwhite"],["month","Integer"],["reading_direction","String","direction"],["name","String","title"],["notes","String"],["original_format","String","format, orginalformat"],["path","String","filename, folder, folders"],["page_count","Integer","pages, pagecount"],["publisher","String"],["reading_direction","String","direction"],["review","String"],["scan_info","String","scan, scaninfo"],["series","String"],["series_groups","CSV","seriesgroups"],["size","Integer"],["stories","CSV","story"],["story_arcs","CSV","storyarcs"],["summary","String","comments, description"],["tags","CSV","tag"],["tagger","String"],["teams","CSV","team"],["updated_at","Date","updated"],["volume","String"],["web","String"],["year","Integer"]],Ht={name:"SearchHelp",components:{CloseButton:Ce,DrawerItem:Te},data(){return{mdiOpenInNew:ce,mdiArchiveSearchOutline:ke,dialog:!1,FIELD_ROWS:Rt}}},_=e=>(de("data-v-975ceadc"),e=e(),ue(),e),At={id:"searchHelp"},Lt=_(()=>a("h1",null,"Search Help",-1)),Ut={id:"fieldTableContainer"},Gt=_(()=>a("h2",null,"Search Fields",-1)),qt=_(()=>a("thead",null,[a("tr",null,[a("th",null,"Field"),a("th",null,"Type"),a("th",null,"Aliases")])],-1)),Et={class:"aliasCol"},zt={id:"textContainer"},jt=_(()=>a("h2",null,"Whoosh Query Parser",-1)),Wt={href:"https://whoosh.readthedocs.io/en/latest/querylang.html",target:"_blank"},Yt=_(()=>a("h2",null,"Operators",-1)),Qt=_(()=>a("code",null,"and",-1)),Kt=_(()=>a("code",null,"or",-1)),Xt=_(()=>a("code",null,"not",-1)),Zt=_(()=>a("code",null,"andnot",-1)),Jt=_(()=>a("code",null,"andmaybe",-1)),er=_(()=>a("code",null,"require",-1)),tr=_(()=>a("h2",null,"Searching Fields",-1)),rr=_(()=>a("p",null,[u(" Like Codex's filter selector menu, but more powerful. You may search on individual comic metadata fields. using a search token like "),a("code",null,"field:value"),u(". ")],-1)),sr=_(()=>a("h3",null,"Dates and DateTimes",-1)),or={href:"https://whoosh.readthedocs.io/en/latest/dates.html#parsing-date-queries",target:"_blank"},ar=_(()=>a("code",null,"YYYYMMDD",-1)),nr=_(()=>a("code",null,"YYYMMDDHHmmSS",-1)),ir=_(()=>a("h3",null,"Single Quote complex field Queries",-1)),lr=_(()=>a("p",null,[u(" Use "),a("em",null,"single"),u(" quotes to tell Codex that a complex or natural language phrase should be applied to a specific field ")],-1)),cr=_(()=>a("code",null," created:'this year' ",-1)),dr=_(()=>a("h3",null,"Size Byte Multipliers",-1)),ur=_(()=>a("p",null,[u(" The size field can make use of convenient byte multiplier suffixes like "),a("code",null,"kb"),u(" and "),a("code",null,"mb"),u(" as well as binary suffixes like "),a("code",null,"gib"),u(" and "),a("code",null,"tib"),u(". ")],-1)),mr=_(()=>a("h3",null,"Ranges of Fields",-1)),hr=_(()=>a("p",null,[u(" Whoosh uses brackets and the "),a("em",null,"uppercase"),u(" "),a("code",null,"TO"),u(" operator to delineate a range search. ")],-1)),pr=_(()=>a("code",null,"updated:[last sunday TO 10am]",-1)),fr=_(()=>a("p",null," You may leave out the upper or lower bound or use >, <, >=, <= operators. ",-1)),_r=_(()=>a("code",null,"size:<50mb",-1)),gr=_(()=>a("h3",null,"Multi Value Fields",-1)),br=_(()=>a("p",null,[u(" Fields marked type "),a("code",null,"CSV"),u(" in the table to the left may contain comma separated values. This filters by all the supplied values. Multi Value tokens look like: "),a("code",null,"field:term1,term2,term3")],-1)),yr=_(()=>a("h2",null,"Grouped Queries",-1)),vr=_(()=>a("p",null,"Whoosh allows grouping of queries with parenthesis.",-1)),Sr=_(()=>a("h2",null,"Example Search",-1)),wr=_(()=>a("p",null," This example search is more convoluted than most searches but uses many features for demonstration: ",-1)),Br=_(()=>a("code",null,' (Holmes and Tesla date:>=1999-1-2 size:[10mib TO 1gb] Gadzooks) or "Captain Nemo" -Quartermain ',-1)),Cr=_(()=>a("p",{style:{"margin-top":"1em"}},' Search for comics that contain Holmes and Tesla published after the second day of 1999 that are between 10 Mebibytes and 10 Gigabytes that also contain the word "Gadzooks" but also all comics with the the phrase "Captain Nemo" but no comics will contain the word "Quartermain". ',-1)),Tr=_(()=>a("h2",null,"Group and Sorting Behavior",-1)),kr=_(()=>a("p",null," If the search field is empty and then you supply a search query for the first time, Codex navigates you to the to All Issues view and your sets your Sorted By selection to Search Score. If you prefer a different view you may change the group and sort selections after your you make your first search. ",-1)),Vr=_(()=>a("h2",null,"Filter Behavior",-1)),Mr=_(()=>a("p",null,[u(" Codex applies "),a("em",null,"both"),u(" the Filter selection menu filters "),a("em",null,"and"),u(" the search query field filters to the search. Be sure to clear the filter selector or the search field if you prefer to apply only one of them. ")],-1)),$r=_(()=>a("h2",null,"Faster Browsing and Searching",-1)),Pr=_(()=>a("p",null,' Browsing large collections using the group tree and filter dropdown is relatively fast. Searching with the search bar will always be slower. To aid search speed there is a setting for limiting search results which can help with large collections. To see all results, choose Search Result Limit: "Unlimited". ',-1));function Fr(e,t,s,d,o,r){const n=f("DrawerItem"),c=f("CloseButton");return l(),p(pt,{modelValue:o.dialog,"onUpdate:modelValue":t[2]||(t[2]=m=>o.dialog=m),"content-class":"browserSearchHelp",fullscreen:"",scrim:!1,transition:"dialog-bottom-transition"},{activator:h(({props:m})=>[i(n,I(m,{"prepend-icon":o.mdiArchiveSearchOutline,title:"Search Help"}),null,16,["prepend-icon"])]),default:h(()=>[a("div",At,[i(c,{class:"closeButton",title:"Close Help (esc)",size:"x-large",onClick:t[0]||(t[0]=m=>o.dialog=!1)}),Lt,a("div",Ut,[Gt,i(ht,{id:"fieldTable",class:"highlight-table"},{default:h(()=>[qt,a("tbody",null,[(l(!0),w(F,null,O(o.FIELD_ROWS,m=>(l(),w("tr",{key:m[0]},[a("td",null,S(m[0]),1),a("td",null,S(m[1]),1),a("td",Et,S(m[2]||""),1)]))),128))])]),_:1})]),a("div",zt,[jt,a("p",null,[u(" Codex uses the Whoosh search engine to execute your text search queries. Whoosh operates much like other familiar search engines. As such, only some special features are documented on this page. To understand its full power, users are encouraged to read the "),a("a",Wt,[u("Whoosh Query Language "),i(k,{size:"small"},{default:h(()=>[u(S(o.mdiOpenInNew),1)]),_:1})]),u(" documentation. ")]),Yt,u(" Whoosh has the "),Qt,u(", "),Kt,u(", "),Xt,u(", "),Zt,u(", "),Jt,u(", and "),er,u(" operators. "),tr,rr,sr,a("p",null,[u(" Whoosh parses Dates and DateTime values liberally. Read "),a("a",or,[u("Whoosh Parsing Date Queries "),i(k,{size:"small"},{default:h(()=>[u(S(o.mdiOpenInNew),1)]),_:1})]),u(" documentation for what formats and natural language phrases are accepted. If the format you try fails, the "),ar,u(" and "),nr,u(" formats are reliable. ")]),ir,lr,cr,dr,ur,mr,hr,pr,u(". "),fr,_r,u(". "),gr,br,yr,vr,Sr,wr,Br,Cr,Tr,kr,Vr,Mr,$r,Pr]),i(c,{class:"closeButton",title:"Close Help (esc)",size:"x-large",onClick:t[1]||(t[1]=m=>o.dialog=!1)})])]),_:1},8,["modelValue"])}const Ir=b(Ht,[["render",Fr],["__scopeId","data-v-975ceadc"]]),xr="rpisv",Dr={name:"BrowserSettingsPanel",components:{SearchHelp:Ir},data(){return{mdiReload:me,openDelay:2e3}},computed:{...V(P,["isAuthorized"]),...v(P,{isUserAuthorized:e=>!!e.user}),...v(g,{groupChoices:e=>{var t,s;return((s=(t=e.choices)==null?void 0:t.static)==null?void 0:s.settingsGroup)||{}},showSettings:e=>{var t;return((t=e.settings)==null?void 0:t.show)||{}},twentyFourHourTime:e=>{var t;return((t=e.settings)==null?void 0:t.twentyFourHourTime)||!1},twentyFourHourTimeTitle:e=>{var t,s,d;return((d=(s=(t=e.choices)==null?void 0:t.static)==null?void 0:s.twentyFourHourTime)==null?void 0:d.title)||""},dynamicCovers:e=>{var t;return((t=e.settings)==null?void 0:t.dynamicCovers)||!1},customCovers:e=>{var t;return((t=e.settings)==null?void 0:t.customCovers)||!1}}),showShowSettings(){var e,t;return xr.includes((t=(e=this.$route)==null?void 0:e.params)==null?void 0:t.group)}},methods:{...T(g,["setSettings"]),setShow(e,t){const s={show:{[e]:t===!0}};this.setSettings(s)},set24HourTime(e){const t={twentyFourHourTime:e===!0};this.setSettings(t)},setDynamicCovers(e){const t={dynamicCovers:e===!0};this.setSettings(t)},setCustomCovers(e){const t={customCovers:e===!0};this.setSettings(t)}}},ye=e=>(de("data-v-7305feeb"),e=e(),ue(),e),Nr={key:0,id:"showSettings"},Or=ye(()=>a("h4",{class:"settingsHeader"},"Show Group Levels",-1)),Rr=ye(()=>a("h4",{class:"settingsHeader"},"Covers",-1));function Hr(e,t,s,d,o,r){const n=f("SearchHelp");return l(),w(F,null,[r.showShowSettings?U((l(),w("div",Nr,[Or,(l(!0),w(F,null,O(e.groupChoices,c=>(l(),p(L,{key:c.title,class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.showSettings[c.value],"true-value":!0,label:`Show ${c.title}`,"onUpdate:modelValue":m=>r.setShow(c.value,m)},null,8,["model-value","label","onUpdate:modelValue"]))),128))])),[[Y,{openDelay:o.openDelay,text:"Show these groups when navigating the browse tree"}]]):B("",!0),i(D),a("div",null,[Rr,U(i(L,{class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.dynamicCovers,"true-value":!0,label:"Dynamic Covers","onUpdate:modelValue":t[0]||(t[0]=c=>r.setDynamicCovers(c))},null,8,["model-value"]),[[Y,{openDelay:o.openDelay,text:"Choose covers by filters, search, and order"}]]),U(i(L,{class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.customCovers,"true-value":!0,label:"Custom Covers","onUpdate:modelValue":t[1]||(t[1]=c=>r.setCustomCovers(c))},null,8,["model-value"]),[[Y,{openDelay:o.openDelay,text:"Overlay custom covers if the admin has set them."}]])]),i(D),i(n),i(D),i(L,{class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.twentyFourHourTime,"true-value":!0,indeterminate:"",label:"Force 24 Hour Time","onUpdate:modelValue":t[2]||(t[2]=c=>r.set24HourTime(c))},null,8,["model-value"]),i(D)],64)}const Ar=b(Dr,[["render",Hr],["__scopeId","data-v-7305feeb"]]),Lr={name:"BrowserSettingsDrawer",components:{SettingsDrawer:bt,BrowserSettingsPanel:Ar}};function Ur(e,t,s,d,o,r){const n=f("BrowserSettingsPanel"),c=f("SettingsDrawer");return l(),p(c,{title:"Browser",temporary:"","disable-resize-watcher":""},{panel:h(()=>[i(n)]),_:1})}const Gr=b(Lr,[["render",Ur]]),qr={name:"BrowserContainerMenu",components:{ConfirmDialog:Pt},props:{item:{type:Object,required:!0}},data(){return{mdiDotsVertical:Ve,showMenu:!1}},computed:{...v(g,{groupNames:e=>e.choices.static.groupNames}),verb(){return this.item.finished?"Unread":"Read"},confirmText(){return`Mark ${this.verb}`},markReadText(){const e=["Mark"];this.item.group!="c"&&e.push("Entire");let t=this.groupNames[this.item.group];return this.item.group!=="s"&&(t=t.slice(0,-1)),e.push(t,this.verb),e.join(" ")},itemName(){return this.item.name?this.item.name:"(Empty)"}},methods:{...T(g,["setBookmarkFinished"]),toggleRead:function(){this.setBookmarkFinished(this.item,!this.item.finished),this.showMenu=!1}}},Er={class:"background-soft-highlight"};function zr(e,t,s,d,o,r){const n=f("ConfirmDialog");return l(),p(Ft,{modelValue:o.showMenu,"onUpdate:modelValue":t[2]||(t[2]=c=>o.showMenu=c),"offset-y":"",top:""},{activator:h(({props:c})=>[i(Me,I({"aria-label":"action menu",class:"browserCardMenuIcon cardControlButton",icon:"",title:"Action Menu",variant:"text"},c,{onClick:t[0]||(t[0]=$e(()=>{},["prevent"]))}),{default:h(()=>[i(k,null,{default:h(()=>[u(S(o.mdiDotsVertical),1)]),_:1})]),_:2},1040)]),default:h(()=>[a("div",Er,[s.item.group==="c"?(l(),p(M,{key:0,title:r.markReadText,onClick:r.toggleRead},null,8,["title","onClick"])):(l(),p(n,{key:1,"button-text":r.markReadText,"title-text":r.markReadText,"confirm-text":r.confirmText,"object-name":r.itemName,onConfirm:r.toggleRead,onCancel:t[1]||(t[1]=c=>o.showMenu=!1)},null,8,["button-text","title-text","confirm-text","object-name","onConfirm"]))])]),_:1},8,["modelValue"])}const jr=b(qr,[["render",zr]]),Wr={name:"BrowserCardControls",components:{BrowserCardMenu:jr,MetadataButton:St},props:{item:{type:Object,required:!0},eyeOpen:{type:Boolean,required:!0}},data(){return{mdiEye:re,mdiEyeOff:se}},computed:{eyeIcon:function(){return this.eyeOpen?re:se}}},Yr={class:"cardControls"};function Qr(e,t,s,d,o,r){const n=f("MetadataButton"),c=f("BrowserCardMenu");return l(),w("div",Yr,[s.item.group==="c"?(l(),p(k,{key:0,class:"eye"},{default:h(()=>[u(S(r.eyeIcon),1)]),_:1})):B("",!0),i(n,{group:s.item.group,book:s.item,children:s.item.childCount},null,8,["group","book","children"]),i(c,{item:s.item},null,8,["item"])])}const Kr=b(Wr,[["render",Qr],["__scopeId","data-v-6f2c700a"]]),Xr=new Set(["community_rating","critical_rating"]),Zr=new Set(["date"]),Jr=new Set(["bookmark_updated_at","created_at","updated_at"]),es={name:"OrderByCaption",props:{item:{type:Object,required:!0}},computed:{...v(g,{orderBy:e=>e.settings.orderBy,twentyFourHourTime:e=>e.settings.twentyFourHourTime,topGroup:e=>e.settings.topGroup}),orderValue(){let e=this.item.orderValue;try{if(this.orderBy===void 0||this.orderBy===null||this.orderBy==="sort_name"&&(this.item.group!=="c"||this.topGroup!=="f")||this.orderBy==="filename"&&this.item.group==="f"||this.orderBy==="story_arc_number"&&this.item.group==="a"||e===null||e===void 0)e="";else if(Zr.has(this.orderBy)){const t=new Date(e);e=Pe.format(t)}else this.orderBy=="search_score"?e=oe.format(Math.round(Number.parseFloat(e)*10)):Jr.has(this.orderBy)?e=Fe(e,this.twentyFourHourTime,!0):this.orderBy=="page_count"?e=`${oe.format(e)} pages`:this.orderBy=="size"?e=wt(Number.parseInt(e,10)):Xr.has(this.orderBy)&&(e=`★ ${e}`)}catch(t){console.debug(t)}return e}}},ts=["innerHTML"];function rs(e,t,s,d,o,r){return r.orderValue?(l(),w("div",{key:0,class:"orderCaption text-caption",innerHTML:r.orderValue},null,8,ts)):B("",!0)}const ss=b(es,[["render",rs],["__scopeId","data-v-81602057"]]),os={name:"BrowserCardSubtitle",props:{item:{type:Object,required:!0}},computed:{...v(g,{orderByName:e=>e.settings.orderBy=="sort_name",topGroup:e=>e.settings.topGroup,showSeries:e=>e.settings.show.s,showVolume:e=>e.settings.show.v,zeroPad:e=>e.page.zeroPad}),seriesName(){return(this.topGroup==="a"||this.orderByName&&!this.showSeries)&&["c","v"].includes(this.item.group)&&this.item.seriesName?this.item.seriesName:!1},volumeName(){return(this.topGroup==="a"||this.orderByName&&!this.showVolume)&&this.item.group==="c"&&this.item.volumeName?K(this.item.volumeName):!1},headerName:function(){let e;switch(this.item.group){case"i":e=this.item.publisherName;break;case"v":e=this.item.seriesName;break;case"c":e=this.$route.params.group==="f"?ft(this.item,this.zeroPad):_t(this.item,this.zeroPad);break;default:e=""}return e&&this.item.ids&&this.item.ids.length>1?"(Multiple)":e},displayName:function(){return this.item.group==="v"?K(this.item.name):this.item.name},linkLabel:function(){let e="";return e+=this.item.group==="c"?"Read":"Browse to",e+=" "+this.headerName,e}}},as={class:"browserLink cardSubtitle text-caption"},ns={key:0,class:"seriesCaption"},is={key:1,class:"volumeCaption"},ls={key:2,class:"headerName"},cs={class:"displayName"};function ds(e,t,s,d,o,r){return l(),w("div",as,[r.seriesName?(l(),w("div",ns,S(r.seriesName),1)):B("",!0),r.volumeName?(l(),w("div",is,S(r.volumeName),1)):B("",!0),r.headerName?(l(),w("div",ls,S(r.headerName),1)):B("",!0),a("div",cs,S(r.displayName),1)])}const us=b(os,[["render",ds],["__scopeId","data-v-a9a0493b"]]),ms=["iPad","iPhone","iPod"],ve="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0||window.matchMedia("(any-hover: none)").matches,hs=ms.some(e=>navigator.userAgent.includes(e))||ve&&navigator.userAgent.includes("Mac OS"),ps=G({modelValue:Boolean,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},...q(),...Ie(),...Z(),...xe({transition:"fade-transition"})},"VLazy"),fs=E()({name:"VLazy",directives:{intersect:De},props:ps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:s}=t;const{dimensionStyles:d}=Ne(e),o=Oe(e,"modelValue");function r(n){o.value||(o.value=n)}return z(()=>U(i(e.tag,{class:["v-lazy",e.class],style:[d.value,e.style]},{default:()=>[o.value&&i(He,{transition:e.transition,appear:!0},{default:()=>{var n;return[(n=s.default)==null?void 0:n.call(s)]}})]}),[[Re("intersect"),{handler:r,options:e.options},null]])),{}}}),le=100,_s=-170,gs={name:"BrowserCard",components:{BookCover:Bt,BrowserCardControls:Kr,BrowserCardSubtitle:us,OrderByCaption:ss},props:{item:{type:Object,required:!0}},data(){return{doubleTapHovered:!ve||hs}},computed:{...v(g,{importMetadata:e=>e.page.adminFlags.importMetadata}),linkLabel(){let e="";return e+=this.item.group==="c"?"Read":"Browse to",e+=" "+this.item.name,e},ids(){return this.item.ids.join(",")},toRoute(){return this.doubleTapHovered?this.item.group==="c"?Ct(this.item,this.importMetadata):{name:"browser",params:{group:this.item.group,pks:this.ids,page:1},query:{ts:this.item.mtime}}:{}},progressBGOpacity(){return this.item.progress?.1:0}},mounted(){this.scrollToMe()},methods:{scrollToMe:function(){if(!this.$route.hash||this.$route.hash.split("-")[1]!==String(this.ids))return;const e=this.$el;if(!e){console.warn("No element found to scroll to!");return}setTimeout(function(){e.scrollIntoView(),setTimeout(function(){window.scrollBy(0,_s)},le)},le)}}},bs={class:"browserCardTop"},ys={class:"cardFooter"};function vs(e,t,s,d,o,r){const n=f("BookCover"),c=f("BrowserCardControls"),m=f("router-link"),y=f("BrowserCardSubtitle"),C=f("OrderByCaption");return l(),p(fs,{id:`card-${r.ids}`,transition:"scale-transition"},{default:h(()=>[a("div",{class:"browserCardCoverWrapper",onClick:t[0]||(t[0]=$=>o.doubleTapHovered=!0)},[a("div",bs,[i(n,{group:s.item.group,pks:s.item.ids,mtime:s.item.mtime,"child-count":s.item.childCount,finished:s.item.finished},null,8,["group","pks","mtime","child-count","finished"]),i(m,{class:"cardCoverOverlay",to:r.toRoute,"aria-label":r.linkLabel},{default:h(()=>[i(c,{item:s.item,"eye-open":!!r.toRoute},null,8,["item","eye-open"])]),_:1},8,["to","aria-label"])]),i(J,{class:"bookCoverProgress","bg-opacity":r.progressBGOpacity,"model-value":s.item.progress,"aria-label":`${s.item.progress}% read`,rounded:"",height:"2"},null,8,["bg-opacity","model-value","aria-label"]),a("footer",ys,[i(y,{item:s.item},null,8,["item"]),i(C,{item:s.item},null,8,["item"])])])]),_:1},8,["id"])}const Ss=b(gs,[["render",vs],["__scopeId","data-v-635f5a8b"]]),ws={name:"BrowserEmptyResults",components:{EmptyState:It},data(){return{mdiOpenInNew:ce}},computed:{...V(P,["isAuthorized","isUserAdmin"]),...v(P,{registration:e=>e.adminFlags.registration}),...V(g,["isFiltersClearable"]),...v(g,{librariesExist:e=>e.page.librariesExist}),empty(){let e={};return this.librariesExist?(e.headline="No Comics Found",e.title="For these filter and search settings",e.icon=Ae):(e.headline="No Libraries Exist",this.isUserAdmin?e.title="Use the top right ☰ menu to navigate to the admin panel and add a comic library":this.isAuthorized?e.title="An administrator must add some comics libraries":e.title="Use the top right ☰ menu to log in as an administrator to add libraries",e.icon=Le),e},showLinkToReadmeAdmin(){return!this.librariesExist&&this.isUserAdmin},actionText(){return this.isFiltersClearable?"Clear Filters and Search":""}},methods:{...T(g,["clearFilters"])}},Bs={key:0},Cs={href:"https://github.com/ajslater/codex#-administration",target:"_blank"};function Ts(e,t,s,d,o,r){const n=f("EmptyState");return l(),p(n,{class:"browserEmpty",headline:r.empty.headline,title:r.empty.title,icon:r.empty.icon,"action-text":r.actionText,"onClick:action":t[0]||(t[0]=c=>e.clearFilters(!0))},{default:h(()=>[r.showLinkToReadmeAdmin?(l(),w("div",Bs,[u(" See the "),a("a",Cs,[u("README "),i(k,null,{default:h(()=>[u(S(o.mdiOpenInNew),1)]),_:1})]),u(" for help ")])):B("",!0)]),_:1},8,["headline","title","icon","action-text"])}const ks=b(ws,[["render",Ts]]),Vs={name:"BrowserMain",components:{BrowserCard:Ss,BrowserEmptyState:ks,PlaceholderLoading:xt},computed:{...v(P,{nonUsers:e=>e.adminFlags.nonUsers}),...V(P,["isAuthorized"]),...V(g,["isSearchMode"]),...v(g,{librariesExist:e=>e.page.librariesExist,showPlaceHolder(e){return this.nonUsers===void 0||this.isAuthorized&&(this.librariesExist==null||!e.browserPageLoaded)},cards:e=>[...e.page.groups??[],...e.page.books??[]],numPages:e=>e.page.numPages,query:e=>e.settings.q,isSearchOpen:e=>e.isSearchOpen}),browsePaneClasses(){return{padFooter:this.numPages>1,browsePaneSearch:this.isSearchOpen}},showBrowseItems(){return this.cards&&this.cards.length>0&&this.isAuthorized&&!this.showPlaceHolder},searchLimitMessage(){let e="";if(!this.query)return e;const t=+this.$route.params.page,s=100*t;return this.showPlaceHolder?e+=`Searching for ${s} entries...`:this.numPages>t&&(e+=`Search results truncated to ${s} entries.`,e+=" Advance the page to look for more."),e}}},Ms={key:0,id:"browsePaneContainer"},$s={key:3,id:"searchLimitMessage",title:"You may change this in the settings drawer"};function Ps(e,t,s,d,o,r){const n=f("BrowserCard"),c=f("PlaceholderLoading"),m=f("BrowserEmptyState");return l(),p(be,{id:"browsePane",class:A(r.browsePaneClasses)},{default:h(()=>[r.showBrowseItems?(l(),w("div",Ms,[(l(!0),w(F,null,O(e.cards,y=>(l(),p(n,{key:`${y.group}${y.ids}`,item:y},null,8,["item"]))),128))])):e.showPlaceHolder?(l(),p(c,{key:1,class:"placeholder"})):(l(),p(m,{key:2})),r.searchLimitMessage?(l(),w("div",$s,S(r.searchLimitMessage),1)):B("",!0)]),_:1},8,["class"])}const Fs=b(Vs,[["render",Ps],["__scopeId","data-v-142eedfa"]]),Is=G({divider:[Number,String],...q()},"VBreadcrumbsDivider"),xs=E()({name:"VBreadcrumbsDivider",props:Is(),setup(e,t){let{slots:s}=t;return z(()=>{var d;return i("li",{class:["v-breadcrumbs-divider",e.class],style:e.style},[((d=s==null?void 0:s.default)==null?void 0:d.call(s))??e.divider])}),{}}}),Ds=G({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...q(),...Ue(),...Z({tag:"li"})},"VBreadcrumbsItem"),Se=E()({name:"VBreadcrumbsItem",props:Ds(),setup(e,t){let{slots:s,attrs:d}=t;const o=Ge(e,d),r=Q(()=>{var y;return e.active||((y=o.isActive)==null?void 0:y.value)}),n=Q(()=>r.value?e.activeColor:e.color),{textColorClasses:c,textColorStyles:m}=qe(n);return z(()=>i(e.tag,{class:["v-breadcrumbs-item",{"v-breadcrumbs-item--active":r.value,"v-breadcrumbs-item--disabled":e.disabled,[`${e.activeClass}`]:r.value&&e.activeClass},c.value,e.class],style:[m.value,e.style],"aria-current":r.value?"page":void 0},{default:()=>{var y,C;return[o.isLink.value?i("a",{class:"v-breadcrumbs-item--link",href:o.href.value,"aria-current":r.value?"page":void 0,onClick:o.navigate},[((C=s.default)==null?void 0:C.call(s))??e.title]):((y=s.default)==null?void 0:y.call(s))??e.title]}})),{}}}),Ns=G({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:Ee,items:{type:Array,default:()=>[]},...q(),...ze(),...je(),...Z({tag:"ul"})},"VBreadcrumbs"),Os=E()({name:"VBreadcrumbs",props:Ns(),setup(e,t){let{slots:s}=t;const{backgroundColorClasses:d,backgroundColorStyles:o}=We(x(e,"bgColor")),{densityClasses:r}=Ye(e),{roundedClasses:n}=Qe(e);Ke({VBreadcrumbsDivider:{divider:x(e,"divider")},VBreadcrumbsItem:{activeClass:x(e,"activeClass"),activeColor:x(e,"activeColor"),color:x(e,"color"),disabled:x(e,"disabled")}});const c=Q(()=>e.items.map(m=>typeof m=="string"?{item:{title:m},raw:m}:{item:m,raw:m}));return z(()=>{const m=!!(s.prepend||e.icon);return i(e.tag,{class:["v-breadcrumbs",d.value,r.value,n.value,e.class],style:[o.value,e.style]},{default:()=>{var y;return[m&&i("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[s.prepend?i(Xe,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},s.prepend):i(k,{key:"prepend-icon",start:!0,icon:e.icon},null)]),c.value.map((C,$,ee)=>{var te;let{item:R,raw:Be}=C;return i(F,null,[((te=s.item)==null?void 0:te.call(s,{item:R,index:$}))??i(Se,I({key:$,disabled:$>=ee.length-1},typeof R=="string"?{title:R}:R),{default:s.title?()=>{var H;return(H=s.title)==null?void 0:H.call(s,{item:R,index:$})}:void 0}),$<ee.length-1&&i(xs,null,{default:s.divider?()=>{var H;return(H=s.divider)==null?void 0:H.call(s,{item:Be,index:$})}:void 0})])}),(y=s.default)==null?void 0:y.call(s)]}})}),{}}}),Rs={f:"Folder",a:"Story Arc",r:"Top",p:"Publisher",i:"Imprint",s:"Series",v:"Volume"},Hs={f:Je,r:he,p:et,i:tt,s:rt},As={name:"BrowserBreadcrumbs",computed:{...v(g,{breadcrumbs(e){const t=[],s=e.settings.breadcrumbs.slice(0,e.settings.breadcrumbs.length-1);if(!s)return t;let d="";for(const o of s){const r=this.getTo(o,d),n=o.name?o.name:"",c=o.group,m=this.getIcon(o.pks,n,c),y=o.pks==="0"?"Top":Rs[c],C={to:r,title:n,icon:m,tooltip:y};t.push(C),d=o.pks}return t}})},methods:{getTo(e,t){const s=Ze(e);delete s.name;const d={name:"browser",params:s};return t&&(d.hash=`#card-${t}`),d},getIcon(e,t,s){let d;return"rfa".indexOf(s)!=-1&&e==="0"?d=he:t?d="":d=Hs[s],d}}},Ls={key:1};function Us(e,t,s,d,o,r){return l(),p(Os,{id:"browserBreadcrumbs",density:"compact",items:e.breadcrumbs},{item:h(({item:n})=>[i(Se,{to:n.to,title:n.tooltip},{default:h(()=>[n.icon?(l(),p(k,{key:0},{default:h(()=>[u(S(n.icon),1)]),_:2},1024)):(l(),w("span",Ls,S(n.title),1))]),_:2},1032,["to","title"])]),_:1},8,["items"])}const Gs=b(As,[["render",Us],["__scopeId","data-v-b8e7faf5"]]),qs={name:"BrowserHeader",components:{Breadcrumbs:Gs}};function Es(e,t,s,d,o,r){const n=f("Breadcrumbs");return l(),p(W,{id:"breadcrumbsToolbar",height:24,class:"titleToolbar",elevation:"8"},{default:h(()=>[i(n)]),_:1})}const zs=b(qs,[["render",Es],["__scopeId","data-v-fd83bc5e"]]),js={name:"BrowserHeader",data(){return{mdiReload:me}},head(){return{meta:[{hid:"description",name:"description",content:["browse comics",this.longBrowserTitlePrefix,this.longBrowseTitleMain,this.longBrowseTitleSuffix].filter(Boolean).join(" ")}]}},computed:{...v(g,{browserTitle:e=>{var t;return(t=e.page)==null?void 0:t.title},groupNames:e=>e.choices.static.groupNames,modelGroup:e=>e.page.modelGroup}),...V(P,["isUserAdmin"]),title(){let e;if(Number(this.$route.params.pks)===0)e="All";else if(this.browserTitle){let t=[];const{groupName:s,groupCount:d}=this.browserTitle,r=this.$route.params.group==="v"?K(s):s;if(r&&t.push(r),d){const n=`of ${d}`;t.push(n)}e=t.join(" ")}else e="";return e},subtitle(){return this.$route.params.group==="f"?"":this.groupNames[this.modelGroup]}}};function Ws(e,t,s,d,o,r){return l(),p(W,{id:"browserToolbarTitle",height:24,"extension-height":24,elevation:"8"},pe({default:h(()=>[i(ne,{id:"browserTitle",class:"browserTitle"},{default:h(()=>[u(S(r.title),1)]),_:1})]),_:2},[r.subtitle?{name:"extension",fn:h(()=>[i(ne,{id:"browserSubtitle",class:"browserTitle"},{default:h(()=>[u(S(r.subtitle),1)]),_:1})]),key:"0"}:void 0]),1024)}const Ys=b(js,[["render",Ws],["__scopeId","data-v-1f8ac575"]]),Qs=10,Ks={name:"BrowserSearchCombobox",data(){return{mdiMagnify:j,menu:!1,query:"",items:[""]}},computed:{...v(g,{stateQ:e=>e.settings.q})},watch:{stateQ(e){this.query=e,this.addToMenu(e)}},beforeMount(){this.query=this.stateQ},methods:{...T(g,["setSettings","startSearchHideTimeout","clearSearchHideTimeout"]),addToMenu(e){if(!e||this.items.includes(e))return;const t=this.items[0]===""?[]:this.items;t.unshift(e),this.items=t.slice(0,Qs)},doSearch(e=!1){this.menu=!1;const s={q:this.query?this.query.trim():""};e&&(s.orderBy="sort_name",s.orderReverse=!1,this.doBlur()),this.setSettings(s)},doBlur(){this.menu=!1,(this.query?this.query.trim():"")||this.startSearchHideTimeout()}}};function Xs(e,t,s,d,o,r){return l(),p(Nt,{id:"searchbox",ref:"searchbox",modelValue:o.query,"onUpdate:modelValue":t[0]||(t[0]=n=>o.query=n),menu:o.menu,"onUpdate:menu":t[1]||(t[1]=n=>o.menu=n),items:o.items,autofocus:"","aria-label":"search",clearable:"",density:"compact","full-width":"","hide-details":"auto","hide-selected":"","menu-props":{maxHeight:void 0},"no-filter":"","prepend-inner-icon":o.mdiMagnify,variant:"solo","onClick:clear":t[2]||(t[2]=n=>r.doSearch(!0)),"onClick:prependInner":r.doSearch,onKeydown:e.clearSearchHideTimeout,onKeyup:[ae(r.doSearch,["enter"]),ae(r.doBlur,["esc"])],onFocus:e.clearSearchHideTimeout,onBlur:r.doBlur},null,8,["modelValue","menu","items","prepend-inner-icon","onClick:prependInner","onKeydown","onKeyup","onFocus","onBlur"])}const Zs=b(Ks,[["render",Xs]]),Js={name:"BrowserSearchToolbar",components:{BrowserSearchCombobox:Zs},computed:{...v(g,{isSearchOpen:e=>e.isSearchOpen})}};function eo(e,t,s,d,o,r){const n=f("BrowserSearchCombobox");return l(),p(st,null,{default:h(()=>[e.isSearchOpen?(l(),p(W,{key:0,density:"compact",height:64},{default:h(()=>[i(X,{id:"searchToolbarItems"},{default:h(()=>[i(n)]),_:1})]),_:1})):B("",!0)]),_:1})}const to=b(Js,[["render",eo],["__scopeId","data-v-4900943a"]]),ro={name:"BrowserFilterSubMenu",props:{name:{type:String,required:!0}},emits:["selected"],data(){return{mdiChevronLeft:fe,mdiCloseCircleOutline:_e,query:""}},computed:{...v(g,{choices(e){return e.choices.dynamic[this.name]},readingDirectionTitles:e=>e.choices.static.readingDirection,identifierTypeTitles:e=>e.choices.static.identifierType,filter(e){return e.settings.filters[this.name]}}),...ge(g,["filterMode"]),hasNone(){for(const e of this.choices)if(ie.has(e)||e instanceof Object&&ie.has(e.pk))return!0;return!1},vuetifyItems(){return Tt(this.choices,this.query)},title(){return gt(this.name)},lowerTitle(){return this.title.toLowerCase()},filterMenuIcon(){return this.filter&&this.filter.length>0?ot:at},isClearable(){var e;return(e=this.filter)==null?void 0:e.length}},methods:{...T(g,["clearOneFilter","identifierTypeTitle","loadAvailableFilterChoices","loadFilterChoices"]),setUIFilterMode(e){this.filterMode=e,this.query="",e!=="base"&&typeof this.choices!="object"&&this.loadFilterChoices(e)},selected(e){const t={filters:{[this.name]:e}};this.$emit("selected",t)},itemTitle:function(e){return this.name==="readingDirection"?this.readingDirectionTitles[e.value]:this.name==="identifierType"?this.identifierTypeTitle(e.title):e.title},async _loadSubAvailableFilterChoices(){return this.loadAvailableFilterChoices().then(()=>this.loadFilterChoices(this.name))},onClear(){return this.clearOneFilter(this.name).then(()=>this._loadSubAvailableFilterChoices())}}},so={key:0},oo={class:"filterHeader"};function ao(e,t,s,d,o,r){return l(),w("div",null,[i(nt,{"hide-on-leave":""},{default:h(()=>[e.filterMode==="base"?(l(),p(M,{key:0,density:"compact",variant:"plain",title:r.title,"append-icon":r.filterMenuIcon,onClick:t[0]||(t[0]=n=>r.setUIFilterMode(s.name))},null,8,["title","append-icon"])):B("",!0)]),_:1}),i(lt,{"hide-on-leave":""},{default:h(()=>[e.filterMode===s.name?(l(),w("div",so,[a("header",oo,[i(M,{class:"filterHeaderTitle","prepend-icon":o.mdiChevronLeft,title:r.lowerTitle,onClick:t[1]||(t[1]=n=>r.setUIFilterMode("base"))},null,8,["prepend-icon","title"]),r.isClearable?(l(),p(M,{key:0,density:"compact",class:"clearFilter",title:"Clear Filter","append-icon":o.mdiCloseCircleOutline,onClick:r.onClear},null,8,["append-icon","onClick"])):B("",!0),typeof e.choices=="object"?(l(),p(Ot,{key:1,modelValue:o.query,"onUpdate:modelValue":t[2]||(t[2]=n=>o.query=n),placeholder:"Filter","full-width":"",density:"compact",filled:"",rounded:"","hide-details":"auto",onFocus:t[3]||(t[3]=n=>e.filterMode=s.name)},null,8,["modelValue"])):(l(),p(J,{key:2,class:"filterValuesProgress",rounded:"",indeterminate:""}))]),typeof e.choices=="object"?(l(),p(it,{key:0,"model-value":e.filter,class:"filterGroup overflow-y-auto",density:"compact",multiple:"",items:r.vuetifyItems,"onUpdate:selected":r.selected},{default:h(()=>[r.hasNone?(l(),p(M,{key:-1,title:"None",value:-1,class:"noneItem",density:"compact",variant:"plain"})):B("",!0),(l(!0),w(F,null,O(r.vuetifyItems,n=>(l(),p(M,{key:n.value,title:r.itemTitle(n),value:n.value,density:"compact",variant:"plain"},null,8,["title","value"]))),128))]),_:1},8,["model-value","items","onUpdate:selected"])):B("",!0)])):B("",!0)]),_:1})])}const no=b(ro,[["render",ao],["__scopeId","data-v-f1f62462"]]),io={name:"BrowserFilterBySelect",components:{BrowserFilterSubMenu:no,ToolbarSelect:N},extends:N,data(){return{mdiCloseCircleOutline:_e,mdiFilterMultipleOutline:ct,menu:!1}},computed:{...V(g,["filterByChoicesMaxLen","isDynamicFiltersSelected","isFiltersClearable"]),...v(g,{bookmarkChoices:e=>e.choices.static.bookmark,bookmarkFilter:e=>e.settings.filters.bookmark||e.choices.static.bookmark[0],filters:e=>e.settings.filters,filterMenuClass:function(e){let t="filterMenu";return e.filterMode!=="base"&&(t+="Hidden"),t},dynamicChoiceNames:function(e){if(e.choices.dynamic===void 0)return;const t=[];for(const[s,d]of Object.entries(e.choices.dynamic))d&&t.push(s);return t}}),...ge(g,["filterMode"]),padRight(){return this.$vuetify.display.xs&&!this.bookmarkFilter}},methods:{...T(g,["clearFilters","loadAvailableFilterChoices","setSettings"]),onUpdateModelValue(e){const t={filters:{bookmark:e}};this.onSubMenuSelected(t)},onSubMenuSelected(e){this.menu=!1,this.setSettings(e),this.filterMode="base"},onClear(){return this.clearFilters().then(()=>this.loadAvailableFilterChoices()).catch(()=>{console.error("clear filters")})},onMenu(e){e&&this.dynamicChoiceNames===void 0&&this.loadAvailableFilterChoices()}}},lo={class:"codexSelection"};function co(e,t,s,d,o,r){const n=f("BrowserFilterSubMenu"),c=f("ToolbarSelect");return l(),p(c,{menu:o.menu,"onUpdate:menu":[t[0]||(t[0]=m=>o.menu=m),r.onMenu],class:A(["filterBySelect",{filterBySelectXSmall:r.padRight}]),"select-label":"filter by",items:e.bookmarkChoices,"menu-props":{contentClass:e.filterMenuClass,maxHeight:void 0},"model-value":e.bookmarkFilter,"max-select-len":e.filterByChoicesMaxLen-1,"onUpdate:modelValue":r.onUpdateModelValue},{selection:h(({item:m})=>[a("span",lo,S(m.title),1),e.isDynamicFiltersSelected?(l(),p(k,{key:0,class:"filterSuffix",size:"x-small"},{default:h(()=>[u(S(o.mdiFilterMultipleOutline),1)]),_:1})):B("",!0)]),"prepend-item":h(()=>[e.isFiltersClearable?(l(),p(M,{key:0,density:"compact",variant:"plain",class:"clearFilter",title:"Clear All Filters","append-icon":o.mdiCloseCircleOutline,onClick:r.onClear},null,8,["append-icon","onClick"])):B("",!0)]),"append-item":h(()=>[i(D),e.dynamicChoiceNames===void 0?(l(),p(M,{key:0,density:"compact",variant:"plain"},{default:h(()=>[i(J,{indeterminate:"",rounded:""})]),_:1})):e.dynamicChoiceNames.length>0?(l(!0),w(F,{key:1},O(e.dynamicChoiceNames,m=>(l(),p(n,{key:m,name:m,onSelected:r.onSubMenuSelected},null,8,["name","onSelected"]))),128)):(l(),p(M,{key:2,class:"noChoices",density:"compact",variant:"plain",title:"No filters available"}))]),_:1},8,["menu","class","items","menu-props","model-value","max-select-len","onUpdate:modelValue","onUpdate:menu"])}const uo=b(io,[["render",co],["__scopeId","data-v-0d876944"]]),mo={name:"BrowseOrderBySelect",components:{ToolbarSelect:N},extends:N,computed:{...V(g,["orderByChoices","orderByChoicesMaxLen"]),...v(g,{orderBySetting:e=>e.settings.orderBy}),reverseValues(){const e=new Set;for(const t of this.orderByChoices)t.reverse&&e.add(t.value);return e},orderBy:{get(){return this.orderBySetting},set(e){const t={orderBy:e,orderReverse:this.reverseValues.has(e)};this.setSettings(t)}}},methods:{...T(g,["setSettings"])}};function ho(e,t,s,d,o,r){const n=f("ToolbarSelect");return l(),p(n,I({modelValue:r.orderBy,"onUpdate:modelValue":t[0]||(t[0]=c=>r.orderBy=c),class:"orderBySelect","select-label":"order by",items:e.orderByChoices,"max-select-len":e.orderByChoicesMaxLen-4},e.$attrs),null,16,["modelValue","items","max-select-len"])}const po=b(mo,[["render",ho]]),fo={name:"ToolbarButton",components:{ScaleButton:yt}};function _o(e,t,s,d,o,r){const n=f("ScaleButton");return l(),p(n,{variant:"plain",class:"toolbarButton"},pe({_:2},[O(e.$slots,(c,m)=>({name:m,fn:h(y=>[dt(e.$slots,m,I({props:c},y))])}))]),1024)}const we=b(fo,[["render",_o]]),go={name:"BrowseOrderReverseButton",components:{ToolbarButton:we},data(){return{mdiSortVariant:ut}},computed:{...v(g,{orderReverseSetting:e=>e.settings.orderReverse}),title(){return this.orderReverseSetting?"order descending":"order ascending"},iconClasses(){return{inverted:!this.orderReverseSetting}}},methods:{...T(g,["setSettings"]),toggleOrderReverse(){const e={orderReverse:!this.orderReverseSetting};this.setSettings(e)}}};function bo(e,t,s,d,o,r){const n=f("ToolbarButton");return l(),p(n,{class:"orderReverseButton",icon:"",title:r.title,onClick:r.toggleOrderReverse},{default:h(()=>[i(k,{class:A(r.iconClasses)},{default:h(()=>[u(S(o.mdiSortVariant),1)]),_:1},8,["class"])]),_:1},8,["title","onClick"])}const yo=b(go,[["render",bo],["__scopeId","data-v-42884e89"]]),vo={name:"BrowseOrderReverseButton",components:{ToolbarButton:we},data(){return{mdiMagnify:j}},computed:{...v(g,{isSearchOpen:e=>e.isSearchOpen,isQuery:e=>!!e.settings.q})},methods:{...T(g,["setIsSearchOpen"])}};function So(e,t,s,d,o,r){const n=f("ToolbarButton");return e.isSearchOpen?B("",!0):(l(),p(n,I({key:0,class:"searchButton",icon:o.mdiMagnify},e.$attrs,{title:"Search",onClick:t[0]||(t[0]=c=>e.setIsSearchOpen(!0))}),null,16,["icon"]))}const wo=b(vo,[["render",So]]),Bo=new Set(["a","f"]),Co={name:"BrowserTopGroupSelect",components:{ToolbarSelect:N},extends:N,data(){return{DIVIDED_VALUES:Bo}},computed:{...v(g,{topGroupSetting:e=>e.settings.topGroup}),...V(g,["topGroupChoices","topGroupChoicesMaxLen"]),topGroup:{get(){return this.topGroupSetting},set(e){const t={topGroup:e};this.setSettings(t)}}},methods:{...T(g,["setSettings"])}};function To(e,t,s,d,o,r){const n=f("ToolbarSelect");return l(),p(n,{modelValue:r.topGroup,"onUpdate:modelValue":t[0]||(t[0]=c=>r.topGroup=c),class:"topGroupSelect","select-label":"top group",items:e.topGroupChoices,"max-select-len":e.topGroupChoicesMaxLen-2.25},{item:h(({item:c,props:m})=>[o.DIVIDED_VALUES.has(c.value)?(l(),p(D,{key:0})):B("",!0),i(M,I(m,{density:"compact",variant:"plain",title:c.title,value:c.value}),null,16,["title","value"])]),_:1},8,["modelValue","items","max-select-len"])}const ko=b(Co,[["render",To]]),Vo={name:"BrowserTopToolbar",components:{BrowserFilterBySelect:uo,BrowserSearchButton:wo,BrowserTopGroupSelect:ko,BrowserOrderBySelect:po,BrowserOrderReverseButton:yo,SettingsDrawerButton:vt},data(){return{mdiMagnify:j,mdiFamilyTree:mt,browseMode:"filter"}}};function Mo(e,t,s,d,o,r){const n=f("BrowserTopGroupSelect"),c=f("BrowserFilterBySelect"),m=f("BrowserOrderBySelect"),y=f("BrowserOrderReverseButton"),C=f("BrowserSearchButton"),$=f("SettingsDrawerButton");return l(),p(W,{id:"browserToolbarTop",density:"compact",height:48},{default:h(()=>[i(X,{id:"browserToolbarLeftItems"},{default:h(()=>[i(n),i(c),i(m),i(y),i(C)]),_:1}),i(kt),i(X,null,{default:h(()=>[i($)]),_:1})]),_:1})}const $o=b(Vo,[["render",Mo],["__scopeId","data-v-42686e3a"]]),Po={name:"BrowserHeadToolbars",components:{BrowserBreadcrumbsToolbar:zs,BrowserSearchToolbar:to,BrowserTopToolbar:$o,BrowserTitleToolbar:Ys}},Fo={id:"codexHeadToolbarWrapper"};function Io(e,t,s,d,o,r){const n=f("BrowserTopToolbar"),c=f("BrowserSearchToolbar"),m=f("BrowserBreadcrumbsToolbar"),y=f("BrowserTitleToolbar");return l(),w("header",Fo,[i(n,{class:"codexHeadToolbar"}),i(c,{class:"codexHeadToolbar"}),i(m,{class:"codexHeadToolbar"}),i(y,{class:"codexHeadToolbar"})])}const xo=b(Po,[["render",Io],["__scopeId","data-v-508c4760"]]),Do={name:"BrowserNavButton",components:{PaginationNavButton:Vt},props:{back:{type:Boolean,required:!0},more:{type:Boolean,default:!1}},data(){return{mdiChevronLeft:fe,mdiMagnify:j,routeParams:this.$route.params,page:+this.$route.params.page}},computed:{...V(g,["isSearchMode"]),...v(g,{numPages:e=>e.page.numPages}),increment(){return this.back?-1:1},toPage(){return this.page+this.increment},title(){return this.showMore?"Search for More":"Page "+this.toPage},toRoute(){const e=this.toPage;return{params:{...this.routeParams,page:e}}},classes(){return{leftButton:this.back,rightButton:!this.back}},disabled(){return this.back&&this.page<=1||!this.back&&this.page>=this.numPages},showMore(){return this.more&&this.isSearchMode&&this.toPage===this.numPages}},watch:{$route(e){this.params=e.params,this.page=+e.params.page}}};function No(e,t,s,d,o,r){const n=f("PaginationNavButton");return l(),p(n,{key:r.toRoute,class:A(r.classes),disabled:r.disabled,title:r.title,to:r.toRoute},{default:h(()=>[r.showMore?(l(),p(k,{key:0},{default:h(()=>[u(S(o.mdiMagnify),1)]),_:1})):B("",!0),i(k,{class:A({flipHoriz:!s.back})},{default:h(()=>[u(S(o.mdiChevronLeft),1)]),_:1},8,["class"])]),_:1},8,["class","disabled","title","to"])}const Oo=b(Do,[["render",No],["__scopeId","data-v-372671b3"]]),Ro={name:"BrowserNavToolbar",components:{BrowserNavButton:Oo,PaginationSlider:Mt,PaginationToolbar:$t},computed:{...v(g,{numPages:e=>e.page.numPages})},methods:{...T(g,["routeToPage"]),onUpdate(e){this.routeToPage(e)}}};function Ho(e,t,s,d,o,r){const n=f("BrowserNavButton"),c=f("PaginationSlider"),m=f("PaginationToolbar");return e.numPages>1?(l(),p(m,{key:0},{default:h(()=>[i(n,{back:!0}),i(c,{"model-value":+e.$route.params.page,min:1,max:e.numPages,step:1,"onUpdate:modelValue":t[0]||(t[0]=y=>e.routeToPage(y))},null,8,["model-value","max"]),i(n,{back:!1,more:!0})]),_:1})):B("",!0)}const Ao=b(Ro,[["render",Ho]]),Lo={name:"MainBrowser",components:{BrowserHeadToolbars:xo,BrowserMain:Fs,BrowserNavToolbar:Ao,BrowserSettingsDrawer:Gr,Unauthorized:Dt},computed:{...v(P,{user:e=>e.user}),...V(P,["isAuthorized"])},watch:{$route(e){var t;window.scrollTo(0,0),this.setPageMtime((t=e==null?void 0:e.query)==null?void 0:t.ts),this.loadBrowserPage()},user(){this.loadSettings()},isAuthorized(){this.loadSettings()}},created(){this.loadSettings()},methods:{...T(g,["loadBrowserPage","loadSettings","setPageMtime"])}};function Uo(e,t,s,d,o,r){const n=f("BrowserHeadToolbars"),c=f("BrowserMain"),m=f("BrowserNavToolbar"),y=f("BrowserSettingsDrawer"),C=f("Unauthorized");return e.isAuthorized?(l(),p(be,{key:0,id:"browser"},{default:h(()=>[i(n),i(c),i(m),i(y)]),_:1})):(l(),p(C,{key:1}))}const na=b(Lo,[["render",Uo],["__scopeId","data-v-4a8fba7b"]]);export{na as default};
|
|
1
|
+
import{_ as b,aK as Ce,aL as Te,aM as ce,aN as ke,Z as f,$ as l,Y as p,a0 as h,T as i,aq as I,aO as a,aE as w,aF as O,aG as S,V as F,ak as u,aP as k,aQ as de,aR as ue,aS as me,aD as V,q as P,W as v,X as T,aT as U,aU as Y,aI as B,aV as D,aW as Ve,ap as Me,aX as $e,aY as M,aZ as re,a_ as se,a$ as Pe,b0 as oe,b1 as Fe,F as G,N as q,b2 as Ie,aw as Z,b3 as xe,P as E,b4 as De,b5 as Ne,au as Oe,S as z,b6 as Re,b7 as He,b8 as J,b9 as Ae,ba as Le,al as A,bb as Ue,bc as Ge,h as Q,ao as qe,bd as Ee,av as ze,be as je,ay as We,az as x,ax as Ye,bf as Qe,aB as Ke,bg as Xe,l as Ze,bh as he,bi as Je,bj as et,bk as tt,bl as rt,bm as pe,bn as j,bo as ae,bp as st,bq as fe,br as _e,bs as ge,bt as ot,bu as at,bv as nt,bw as it,bx as lt,by as ct,bz as dt,bA as ut,bB as mt}from"./admin-drawer-panel-Dmnn03CQ.js";import{V as ht}from"./VTable-D85UV0cA.js";import{V as pt}from"./VDialog-BWXBR7iM.js";import{u as g,f as K,g as ft,a as _t,c as gt}from"./main-C0t41OAE.js";import{V as L}from"./VCheckbox-D8eqoc1z.js";import{b as bt,a as W,V as ne,c as yt,S as vt}from"./settings-drawer-ChnWWcfy.js";import{M as St,p as wt,B as Bt,g as Ct,V as X,N as ie,t as Tt,T as N,a as kt,P as Vt,b as Mt,c as $t}from"./pagination-toolbar-BNiqJX4c.js";import{C as Pt}from"./confirm-dialog-BJlNq6ku.js";import{V as Ft}from"./VSelect-BpWdXMPq.js";import{E as It,P as xt,V as be,U as Dt}from"./unauthorized-DnNuMsHM.js";import{V as Nt}from"./VCombobox-BTG361j0.js";import{V as Ot}from"./VTextField-DAe7a2au.js";import"./VCheckboxBtn-BaQC30AI.js";import"./VSelectionControl-FmTy_2ch.js";import"./copy-to-clipboard-DoUvDJVx.js";import"./VSlideGroup-B9zEPv1H.js";import"./change-password-dialog-HW0jK0gr.js";import"./filter-BL9RMUvn.js";const Rt=[["characters","CSV","category"],["community_rating","Decimal","communityrating"],["contributor","CSV","author, creator, credit, person, people"],["country","String"],["created_at","DateTime","created"],["critical_rating","Decimal","criticalrating"],["day","Integer"],["date","Date"],["decade","Integer"],["file_type","String","filetype, type"],["genres","CSV","genre"],["identifier","CSV","id, nss"],["identifier_type","CSV","id_type, idtype, nid"],["imprint","String"],["issue","String","(Combined issue_number and issue_suffix)"],["issue_number","Decimal","number"],["issue_suffix","String"],["language","String"],["location","CSV","location"],["maturity_rating","String"],["monochrome","String","blackandwhite"],["month","Integer"],["reading_direction","String","direction"],["name","String","title"],["notes","String"],["original_format","String","format, orginalformat"],["path","String","filename, folder, folders"],["page_count","Integer","pages, pagecount"],["publisher","String"],["reading_direction","String","direction"],["review","String"],["scan_info","String","scan, scaninfo"],["series","String"],["series_groups","CSV","seriesgroups"],["size","Integer"],["stories","CSV","story"],["story_arcs","CSV","storyarcs"],["summary","String","comments, description"],["tags","CSV","tag"],["tagger","String"],["teams","CSV","team"],["updated_at","Date","updated"],["volume","String"],["web","String"],["year","Integer"]],Ht={name:"SearchHelp",components:{CloseButton:Ce,DrawerItem:Te},data(){return{mdiOpenInNew:ce,mdiArchiveSearchOutline:ke,dialog:!1,FIELD_ROWS:Rt}}},_=e=>(de("data-v-975ceadc"),e=e(),ue(),e),At={id:"searchHelp"},Lt=_(()=>a("h1",null,"Search Help",-1)),Ut={id:"fieldTableContainer"},Gt=_(()=>a("h2",null,"Search Fields",-1)),qt=_(()=>a("thead",null,[a("tr",null,[a("th",null,"Field"),a("th",null,"Type"),a("th",null,"Aliases")])],-1)),Et={class:"aliasCol"},zt={id:"textContainer"},jt=_(()=>a("h2",null,"Whoosh Query Parser",-1)),Wt={href:"https://whoosh.readthedocs.io/en/latest/querylang.html",target:"_blank"},Yt=_(()=>a("h2",null,"Operators",-1)),Qt=_(()=>a("code",null,"and",-1)),Kt=_(()=>a("code",null,"or",-1)),Xt=_(()=>a("code",null,"not",-1)),Zt=_(()=>a("code",null,"andnot",-1)),Jt=_(()=>a("code",null,"andmaybe",-1)),er=_(()=>a("code",null,"require",-1)),tr=_(()=>a("h2",null,"Searching Fields",-1)),rr=_(()=>a("p",null,[u(" Like Codex's filter selector menu, but more powerful. You may search on individual comic metadata fields. using a search token like "),a("code",null,"field:value"),u(". ")],-1)),sr=_(()=>a("h3",null,"Dates and DateTimes",-1)),or={href:"https://whoosh.readthedocs.io/en/latest/dates.html#parsing-date-queries",target:"_blank"},ar=_(()=>a("code",null,"YYYYMMDD",-1)),nr=_(()=>a("code",null,"YYYMMDDHHmmSS",-1)),ir=_(()=>a("h3",null,"Single Quote complex field Queries",-1)),lr=_(()=>a("p",null,[u(" Use "),a("em",null,"single"),u(" quotes to tell Codex that a complex or natural language phrase should be applied to a specific field ")],-1)),cr=_(()=>a("code",null," created:'this year' ",-1)),dr=_(()=>a("h3",null,"Size Byte Multipliers",-1)),ur=_(()=>a("p",null,[u(" The size field can make use of convenient byte multiplier suffixes like "),a("code",null,"kb"),u(" and "),a("code",null,"mb"),u(" as well as binary suffixes like "),a("code",null,"gib"),u(" and "),a("code",null,"tib"),u(". ")],-1)),mr=_(()=>a("h3",null,"Ranges of Fields",-1)),hr=_(()=>a("p",null,[u(" Whoosh uses brackets and the "),a("em",null,"uppercase"),u(" "),a("code",null,"TO"),u(" operator to delineate a range search. ")],-1)),pr=_(()=>a("code",null,"updated:[last sunday TO 10am]",-1)),fr=_(()=>a("p",null," You may leave out the upper or lower bound or use >, <, >=, <= operators. ",-1)),_r=_(()=>a("code",null,"size:<50mb",-1)),gr=_(()=>a("h3",null,"Multi Value Fields",-1)),br=_(()=>a("p",null,[u(" Fields marked type "),a("code",null,"CSV"),u(" in the table to the left may contain comma separated values. This filters by all the supplied values. Multi Value tokens look like: "),a("code",null,"field:term1,term2,term3")],-1)),yr=_(()=>a("h2",null,"Grouped Queries",-1)),vr=_(()=>a("p",null,"Whoosh allows grouping of queries with parenthesis.",-1)),Sr=_(()=>a("h2",null,"Example Search",-1)),wr=_(()=>a("p",null," This example search is more convoluted than most searches but uses many features for demonstration: ",-1)),Br=_(()=>a("code",null,' (Holmes and Tesla date:>=1999-1-2 size:[10mib TO 1gb] Gadzooks) or "Captain Nemo" -Quartermain ',-1)),Cr=_(()=>a("p",{style:{"margin-top":"1em"}},' Search for comics that contain Holmes and Tesla published after the second day of 1999 that are between 10 Mebibytes and 10 Gigabytes that also contain the word "Gadzooks" but also all comics with the the phrase "Captain Nemo" but no comics will contain the word "Quartermain". ',-1)),Tr=_(()=>a("h2",null,"Group and Sorting Behavior",-1)),kr=_(()=>a("p",null," If the search field is empty and then you supply a search query for the first time, Codex navigates you to the to All Issues view and your sets your Sorted By selection to Search Score. If you prefer a different view you may change the group and sort selections after your you make your first search. ",-1)),Vr=_(()=>a("h2",null,"Filter Behavior",-1)),Mr=_(()=>a("p",null,[u(" Codex applies "),a("em",null,"both"),u(" the Filter selection menu filters "),a("em",null,"and"),u(" the search query field filters to the search. Be sure to clear the filter selector or the search field if you prefer to apply only one of them. ")],-1)),$r=_(()=>a("h2",null,"Faster Browsing and Searching",-1)),Pr=_(()=>a("p",null,' Browsing large collections using the group tree and filter dropdown is relatively fast. Searching with the search bar will always be slower. To aid search speed there is a setting for limiting search results which can help with large collections. To see all results, choose Search Result Limit: "Unlimited". ',-1));function Fr(e,t,s,d,o,r){const n=f("DrawerItem"),c=f("CloseButton");return l(),p(pt,{modelValue:o.dialog,"onUpdate:modelValue":t[2]||(t[2]=m=>o.dialog=m),"content-class":"browserSearchHelp",fullscreen:"",scrim:!1,transition:"dialog-bottom-transition"},{activator:h(({props:m})=>[i(n,I(m,{"prepend-icon":o.mdiArchiveSearchOutline,title:"Search Help"}),null,16,["prepend-icon"])]),default:h(()=>[a("div",At,[i(c,{class:"closeButton",title:"Close Help (esc)",size:"x-large",onClick:t[0]||(t[0]=m=>o.dialog=!1)}),Lt,a("div",Ut,[Gt,i(ht,{id:"fieldTable",class:"highlight-table"},{default:h(()=>[qt,a("tbody",null,[(l(!0),w(F,null,O(o.FIELD_ROWS,m=>(l(),w("tr",{key:m[0]},[a("td",null,S(m[0]),1),a("td",null,S(m[1]),1),a("td",Et,S(m[2]||""),1)]))),128))])]),_:1})]),a("div",zt,[jt,a("p",null,[u(" Codex uses the Whoosh search engine to execute your text search queries. Whoosh operates much like other familiar search engines. As such, only some special features are documented on this page. To understand its full power, users are encouraged to read the "),a("a",Wt,[u("Whoosh Query Language "),i(k,{size:"small"},{default:h(()=>[u(S(o.mdiOpenInNew),1)]),_:1})]),u(" documentation. ")]),Yt,u(" Whoosh has the "),Qt,u(", "),Kt,u(", "),Xt,u(", "),Zt,u(", "),Jt,u(", and "),er,u(" operators. "),tr,rr,sr,a("p",null,[u(" Whoosh parses Dates and DateTime values liberally. Read "),a("a",or,[u("Whoosh Parsing Date Queries "),i(k,{size:"small"},{default:h(()=>[u(S(o.mdiOpenInNew),1)]),_:1})]),u(" documentation for what formats and natural language phrases are accepted. If the format you try fails, the "),ar,u(" and "),nr,u(" formats are reliable. ")]),ir,lr,cr,dr,ur,mr,hr,pr,u(". "),fr,_r,u(". "),gr,br,yr,vr,Sr,wr,Br,Cr,Tr,kr,Vr,Mr,$r,Pr]),i(c,{class:"closeButton",title:"Close Help (esc)",size:"x-large",onClick:t[1]||(t[1]=m=>o.dialog=!1)})])]),_:1},8,["modelValue"])}const Ir=b(Ht,[["render",Fr],["__scopeId","data-v-975ceadc"]]),xr="rpisv",Dr={name:"BrowserSettingsPanel",components:{SearchHelp:Ir},data(){return{mdiReload:me,openDelay:2e3}},computed:{...V(P,["isAuthorized"]),...v(P,{isUserAuthorized:e=>!!e.user}),...v(g,{groupChoices:e=>{var t,s;return((s=(t=e.choices)==null?void 0:t.static)==null?void 0:s.settingsGroup)||{}},showSettings:e=>{var t;return((t=e.settings)==null?void 0:t.show)||{}},twentyFourHourTime:e=>{var t;return((t=e.settings)==null?void 0:t.twentyFourHourTime)||!1},twentyFourHourTimeTitle:e=>{var t,s,d;return((d=(s=(t=e.choices)==null?void 0:t.static)==null?void 0:s.twentyFourHourTime)==null?void 0:d.title)||""},dynamicCovers:e=>{var t;return((t=e.settings)==null?void 0:t.dynamicCovers)||!1},customCovers:e=>{var t;return((t=e.settings)==null?void 0:t.customCovers)||!1}}),showShowSettings(){var e,t;return xr.includes((t=(e=this.$route)==null?void 0:e.params)==null?void 0:t.group)}},methods:{...T(g,["setSettings"]),setShow(e,t){const s={show:{[e]:t===!0}};this.setSettings(s)},set24HourTime(e){const t={twentyFourHourTime:e===!0};this.setSettings(t)},setDynamicCovers(e){const t={dynamicCovers:e===!0};this.setSettings(t)},setCustomCovers(e){const t={customCovers:e===!0};this.setSettings(t)}}},ye=e=>(de("data-v-7305feeb"),e=e(),ue(),e),Nr={key:0,id:"showSettings"},Or=ye(()=>a("h4",{class:"settingsHeader"},"Show Group Levels",-1)),Rr=ye(()=>a("h4",{class:"settingsHeader"},"Covers",-1));function Hr(e,t,s,d,o,r){const n=f("SearchHelp");return l(),w(F,null,[r.showShowSettings?U((l(),w("div",Nr,[Or,(l(!0),w(F,null,O(e.groupChoices,c=>(l(),p(L,{key:c.title,class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.showSettings[c.value],"true-value":!0,label:`Show ${c.title}`,"onUpdate:modelValue":m=>r.setShow(c.value,m)},null,8,["model-value","label","onUpdate:modelValue"]))),128))])),[[Y,{openDelay:o.openDelay,text:"Show these groups when navigating the browse tree"}]]):B("",!0),i(D),a("div",null,[Rr,U(i(L,{class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.dynamicCovers,"true-value":!0,label:"Dynamic Covers","onUpdate:modelValue":t[0]||(t[0]=c=>r.setDynamicCovers(c))},null,8,["model-value"]),[[Y,{openDelay:o.openDelay,text:"Choose covers by filters, search, and order"}]]),U(i(L,{class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.customCovers,"true-value":!0,label:"Custom Covers","onUpdate:modelValue":t[1]||(t[1]=c=>r.setCustomCovers(c))},null,8,["model-value"]),[[Y,{openDelay:o.openDelay,text:"Overlay custom covers if the admin has set them."}]])]),i(D),i(n),i(D),i(L,{class:"browserGroupCheckbox",density:"compact","hide-details":"auto","model-value":e.twentyFourHourTime,"true-value":!0,indeterminate:"",label:"Force 24 Hour Time","onUpdate:modelValue":t[2]||(t[2]=c=>r.set24HourTime(c))},null,8,["model-value"]),i(D)],64)}const Ar=b(Dr,[["render",Hr],["__scopeId","data-v-7305feeb"]]),Lr={name:"BrowserSettingsDrawer",components:{SettingsDrawer:bt,BrowserSettingsPanel:Ar}};function Ur(e,t,s,d,o,r){const n=f("BrowserSettingsPanel"),c=f("SettingsDrawer");return l(),p(c,{title:"Browser",temporary:"","disable-resize-watcher":""},{panel:h(()=>[i(n)]),_:1})}const Gr=b(Lr,[["render",Ur]]),qr={name:"BrowserContainerMenu",components:{ConfirmDialog:Pt},props:{item:{type:Object,required:!0}},data(){return{mdiDotsVertical:Ve,showMenu:!1}},computed:{...v(g,{groupNames:e=>e.choices.static.groupNames}),verb(){return this.item.finished?"Unread":"Read"},confirmText(){return`Mark ${this.verb}`},markReadText(){const e=["Mark"];this.item.group!="c"&&e.push("Entire");let t=this.groupNames[this.item.group];return this.item.group!=="s"&&(t=t.slice(0,-1)),e.push(t,this.verb),e.join(" ")},itemName(){return this.item.name?this.item.name:"(Empty)"}},methods:{...T(g,["setBookmarkFinished"]),toggleRead:function(){this.setBookmarkFinished(this.item,!this.item.finished),this.showMenu=!1}}},Er={class:"background-soft-highlight"};function zr(e,t,s,d,o,r){const n=f("ConfirmDialog");return l(),p(Ft,{modelValue:o.showMenu,"onUpdate:modelValue":t[2]||(t[2]=c=>o.showMenu=c),"offset-y":"",top:""},{activator:h(({props:c})=>[i(Me,I({"aria-label":"action menu",class:"browserCardMenuIcon cardControlButton",icon:"",title:"Action Menu",variant:"text"},c,{onClick:t[0]||(t[0]=$e(()=>{},["prevent"]))}),{default:h(()=>[i(k,null,{default:h(()=>[u(S(o.mdiDotsVertical),1)]),_:1})]),_:2},1040)]),default:h(()=>[a("div",Er,[s.item.group==="c"?(l(),p(M,{key:0,title:r.markReadText,onClick:r.toggleRead},null,8,["title","onClick"])):(l(),p(n,{key:1,"button-text":r.markReadText,"title-text":r.markReadText,"confirm-text":r.confirmText,"object-name":r.itemName,onConfirm:r.toggleRead,onCancel:t[1]||(t[1]=c=>o.showMenu=!1)},null,8,["button-text","title-text","confirm-text","object-name","onConfirm"]))])]),_:1},8,["modelValue"])}const jr=b(qr,[["render",zr]]),Wr={name:"BrowserCardControls",components:{BrowserCardMenu:jr,MetadataButton:St},props:{item:{type:Object,required:!0},eyeOpen:{type:Boolean,required:!0}},data(){return{mdiEye:re,mdiEyeOff:se}},computed:{eyeIcon:function(){return this.eyeOpen?re:se}}},Yr={class:"cardControls"};function Qr(e,t,s,d,o,r){const n=f("MetadataButton"),c=f("BrowserCardMenu");return l(),w("div",Yr,[s.item.group==="c"?(l(),p(k,{key:0,class:"eye"},{default:h(()=>[u(S(r.eyeIcon),1)]),_:1})):B("",!0),i(n,{group:s.item.group,book:s.item,children:s.item.childCount},null,8,["group","book","children"]),i(c,{item:s.item},null,8,["item"])])}const Kr=b(Wr,[["render",Qr],["__scopeId","data-v-6f2c700a"]]),Xr=new Set(["community_rating","critical_rating"]),Zr=new Set(["date"]),Jr=new Set(["bookmark_updated_at","created_at","updated_at"]),es={name:"OrderByCaption",props:{item:{type:Object,required:!0}},computed:{...v(g,{orderBy:e=>e.settings.orderBy,twentyFourHourTime:e=>e.settings.twentyFourHourTime,topGroup:e=>e.settings.topGroup}),orderValue(){let e=this.item.orderValue;try{if(this.orderBy===void 0||this.orderBy===null||this.orderBy==="sort_name"&&(this.item.group!=="c"||this.topGroup!=="f")||this.orderBy==="filename"&&this.item.group==="f"||this.orderBy==="story_arc_number"&&this.item.group==="a"||e===null||e===void 0)e="";else if(Zr.has(this.orderBy)){const t=new Date(e);e=Pe.format(t)}else this.orderBy=="search_score"?e=oe.format(Math.round(Number.parseFloat(e)*10)):Jr.has(this.orderBy)?e=Fe(e,this.twentyFourHourTime,!0):this.orderBy=="page_count"?e=`${oe.format(e)} pages`:this.orderBy=="size"?e=wt(Number.parseInt(e,10)):Xr.has(this.orderBy)&&(e=`★ ${e}`)}catch(t){console.debug(t)}return e}}},ts=["innerHTML"];function rs(e,t,s,d,o,r){return r.orderValue?(l(),w("div",{key:0,class:"orderCaption text-caption",innerHTML:r.orderValue},null,8,ts)):B("",!0)}const ss=b(es,[["render",rs],["__scopeId","data-v-81602057"]]),os={name:"BrowserCardSubtitle",props:{item:{type:Object,required:!0}},computed:{...v(g,{orderByName:e=>e.settings.orderBy=="sort_name",topGroup:e=>e.settings.topGroup,showSeries:e=>e.settings.show.s,showVolume:e=>e.settings.show.v,zeroPad:e=>e.page.zeroPad}),seriesName(){return(this.topGroup==="a"||this.orderByName&&!this.showSeries)&&["c","v"].includes(this.item.group)&&this.item.seriesName?this.item.seriesName:!1},volumeName(){return(this.topGroup==="a"||this.orderByName&&!this.showVolume)&&this.item.group==="c"&&this.item.volumeName?K(this.item.volumeName):!1},headerName:function(){let e;switch(this.item.group){case"i":e=this.item.publisherName;break;case"v":e=this.item.seriesName;break;case"c":e=this.$route.params.group==="f"?ft(this.item,this.zeroPad):_t(this.item,this.zeroPad);break;default:e=""}return e&&this.item.ids&&this.item.ids.length>1?"(Multiple)":e},displayName:function(){return this.item.group==="v"?K(this.item.name):this.item.name},linkLabel:function(){let e="";return e+=this.item.group==="c"?"Read":"Browse to",e+=" "+this.headerName,e}}},as={class:"browserLink cardSubtitle text-caption"},ns={key:0,class:"seriesCaption"},is={key:1,class:"volumeCaption"},ls={key:2,class:"headerName"},cs={class:"displayName"};function ds(e,t,s,d,o,r){return l(),w("div",as,[r.seriesName?(l(),w("div",ns,S(r.seriesName),1)):B("",!0),r.volumeName?(l(),w("div",is,S(r.volumeName),1)):B("",!0),r.headerName?(l(),w("div",ls,S(r.headerName),1)):B("",!0),a("div",cs,S(r.displayName),1)])}const us=b(os,[["render",ds],["__scopeId","data-v-a9a0493b"]]),ms=["iPad","iPhone","iPod"],ve="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0||window.matchMedia("(any-hover: none)").matches,hs=ms.some(e=>navigator.userAgent.includes(e))||ve&&navigator.userAgent.includes("Mac OS"),ps=G({modelValue:Boolean,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},...q(),...Ie(),...Z(),...xe({transition:"fade-transition"})},"VLazy"),fs=E()({name:"VLazy",directives:{intersect:De},props:ps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:s}=t;const{dimensionStyles:d}=Ne(e),o=Oe(e,"modelValue");function r(n){o.value||(o.value=n)}return z(()=>U(i(e.tag,{class:["v-lazy",e.class],style:[d.value,e.style]},{default:()=>[o.value&&i(He,{transition:e.transition,appear:!0},{default:()=>{var n;return[(n=s.default)==null?void 0:n.call(s)]}})]}),[[Re("intersect"),{handler:r,options:e.options},null]])),{}}}),le=100,_s=-170,gs={name:"BrowserCard",components:{BookCover:Bt,BrowserCardControls:Kr,BrowserCardSubtitle:us,OrderByCaption:ss},props:{item:{type:Object,required:!0}},data(){return{doubleTapHovered:!ve||hs}},computed:{...v(g,{importMetadata:e=>e.page.adminFlags.importMetadata}),linkLabel(){let e="";return e+=this.item.group==="c"?"Read":"Browse to",e+=" "+this.item.name,e},ids(){return this.item.ids.join(",")},toRoute(){return this.doubleTapHovered?this.item.group==="c"?Ct(this.item,this.importMetadata):{name:"browser",params:{group:this.item.group,pks:this.ids,page:1},query:{ts:this.item.mtime}}:{}},progressBGOpacity(){return this.item.progress?.1:0}},mounted(){this.scrollToMe()},methods:{scrollToMe:function(){if(!this.$route.hash||this.$route.hash.split("-")[1]!==String(this.ids))return;const e=this.$el;if(!e){console.warn("No element found to scroll to!");return}setTimeout(function(){e.scrollIntoView(),setTimeout(function(){window.scrollBy(0,_s)},le)},le)}}},bs={class:"browserCardTop"},ys={class:"cardFooter"};function vs(e,t,s,d,o,r){const n=f("BookCover"),c=f("BrowserCardControls"),m=f("router-link"),y=f("BrowserCardSubtitle"),C=f("OrderByCaption");return l(),p(fs,{id:`card-${r.ids}`,transition:"scale-transition"},{default:h(()=>[a("div",{class:"browserCardCoverWrapper",onClick:t[0]||(t[0]=$=>o.doubleTapHovered=!0)},[a("div",bs,[i(n,{group:s.item.group,pks:s.item.ids,mtime:s.item.mtime,"child-count":s.item.childCount,finished:s.item.finished},null,8,["group","pks","mtime","child-count","finished"]),i(m,{class:"cardCoverOverlay",to:r.toRoute,"aria-label":r.linkLabel},{default:h(()=>[i(c,{item:s.item,"eye-open":!!r.toRoute},null,8,["item","eye-open"])]),_:1},8,["to","aria-label"])]),i(J,{class:"bookCoverProgress","bg-opacity":r.progressBGOpacity,"model-value":s.item.progress,"aria-label":`${s.item.progress}% read`,rounded:"",height:"2"},null,8,["bg-opacity","model-value","aria-label"]),a("footer",ys,[i(y,{item:s.item},null,8,["item"]),i(C,{item:s.item},null,8,["item"])])])]),_:1},8,["id"])}const Ss=b(gs,[["render",vs],["__scopeId","data-v-635f5a8b"]]),ws={name:"BrowserEmptyResults",components:{EmptyState:It},data(){return{mdiOpenInNew:ce}},computed:{...V(P,["isAuthorized","isUserAdmin"]),...v(P,{registration:e=>e.adminFlags.registration}),...V(g,["isFiltersClearable"]),...v(g,{librariesExist:e=>e.page.librariesExist}),empty(){let e={};return this.librariesExist?(e.headline="No Comics Found",e.title="For these filter and search settings",e.icon=Ae):(e.headline="No Libraries Exist",this.isUserAdmin?e.title="Use the top right ☰ menu to navigate to the admin panel and add a comic library":this.isAuthorized?e.title="An administrator must add some comics libraries":e.title="Use the top right ☰ menu to log in as an administrator to add libraries",e.icon=Le),e},showLinkToReadmeAdmin(){return!this.librariesExist&&this.isUserAdmin},actionText(){return this.isFiltersClearable?"Clear Filters and Search":""}},methods:{...T(g,["clearFilters"])}},Bs={key:0},Cs={href:"https://github.com/ajslater/codex#-administration",target:"_blank"};function Ts(e,t,s,d,o,r){const n=f("EmptyState");return l(),p(n,{class:"browserEmpty",headline:r.empty.headline,title:r.empty.title,icon:r.empty.icon,"action-text":r.actionText,"onClick:action":t[0]||(t[0]=c=>e.clearFilters(!0))},{default:h(()=>[r.showLinkToReadmeAdmin?(l(),w("div",Bs,[u(" See the "),a("a",Cs,[u("README "),i(k,null,{default:h(()=>[u(S(o.mdiOpenInNew),1)]),_:1})]),u(" for help ")])):B("",!0)]),_:1},8,["headline","title","icon","action-text"])}const ks=b(ws,[["render",Ts]]),Vs={name:"BrowserMain",components:{BrowserCard:Ss,BrowserEmptyState:ks,PlaceholderLoading:xt},computed:{...v(P,{nonUsers:e=>e.adminFlags.nonUsers}),...V(P,["isAuthorized"]),...V(g,["isSearchMode"]),...v(g,{librariesExist:e=>e.page.librariesExist,showPlaceHolder(e){return this.nonUsers===void 0||this.isAuthorized&&(this.librariesExist==null||!e.browserPageLoaded)},cards:e=>[...e.page.groups??[],...e.page.books??[]],numPages:e=>e.page.numPages,query:e=>e.settings.q,isSearchOpen:e=>e.isSearchOpen}),browsePaneClasses(){return{padFooter:this.numPages>1,browsePaneSearch:this.isSearchOpen}},showBrowseItems(){return this.cards&&this.cards.length>0&&this.isAuthorized&&!this.showPlaceHolder},searchLimitMessage(){let e="";if(!this.query)return e;const t=+this.$route.params.page,s=100*t;return this.showPlaceHolder?e+=`Searching for ${s} entries...`:this.numPages>t&&(e+=`Search results truncated to ${s} entries.`,e+=" Advance the page to look for more."),e}}},Ms={key:0,id:"browsePaneContainer"},$s={key:3,id:"searchLimitMessage",title:"You may change this in the settings drawer"};function Ps(e,t,s,d,o,r){const n=f("BrowserCard"),c=f("PlaceholderLoading"),m=f("BrowserEmptyState");return l(),p(be,{id:"browsePane",class:A(r.browsePaneClasses)},{default:h(()=>[r.showBrowseItems?(l(),w("div",Ms,[(l(!0),w(F,null,O(e.cards,y=>(l(),p(n,{key:`${y.group}${y.ids}`,item:y},null,8,["item"]))),128))])):e.showPlaceHolder?(l(),p(c,{key:1,class:"placeholder"})):(l(),p(m,{key:2})),r.searchLimitMessage?(l(),w("div",$s,S(r.searchLimitMessage),1)):B("",!0)]),_:1},8,["class"])}const Fs=b(Vs,[["render",Ps],["__scopeId","data-v-142eedfa"]]),Is=G({divider:[Number,String],...q()},"VBreadcrumbsDivider"),xs=E()({name:"VBreadcrumbsDivider",props:Is(),setup(e,t){let{slots:s}=t;return z(()=>{var d;return i("li",{class:["v-breadcrumbs-divider",e.class],style:e.style},[((d=s==null?void 0:s.default)==null?void 0:d.call(s))??e.divider])}),{}}}),Ds=G({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...q(),...Ue(),...Z({tag:"li"})},"VBreadcrumbsItem"),Se=E()({name:"VBreadcrumbsItem",props:Ds(),setup(e,t){let{slots:s,attrs:d}=t;const o=Ge(e,d),r=Q(()=>{var y;return e.active||((y=o.isActive)==null?void 0:y.value)}),n=Q(()=>r.value?e.activeColor:e.color),{textColorClasses:c,textColorStyles:m}=qe(n);return z(()=>i(e.tag,{class:["v-breadcrumbs-item",{"v-breadcrumbs-item--active":r.value,"v-breadcrumbs-item--disabled":e.disabled,[`${e.activeClass}`]:r.value&&e.activeClass},c.value,e.class],style:[m.value,e.style],"aria-current":r.value?"page":void 0},{default:()=>{var y,C;return[o.isLink.value?i("a",{class:"v-breadcrumbs-item--link",href:o.href.value,"aria-current":r.value?"page":void 0,onClick:o.navigate},[((C=s.default)==null?void 0:C.call(s))??e.title]):((y=s.default)==null?void 0:y.call(s))??e.title]}})),{}}}),Ns=G({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:Ee,items:{type:Array,default:()=>[]},...q(),...ze(),...je(),...Z({tag:"ul"})},"VBreadcrumbs"),Os=E()({name:"VBreadcrumbs",props:Ns(),setup(e,t){let{slots:s}=t;const{backgroundColorClasses:d,backgroundColorStyles:o}=We(x(e,"bgColor")),{densityClasses:r}=Ye(e),{roundedClasses:n}=Qe(e);Ke({VBreadcrumbsDivider:{divider:x(e,"divider")},VBreadcrumbsItem:{activeClass:x(e,"activeClass"),activeColor:x(e,"activeColor"),color:x(e,"color"),disabled:x(e,"disabled")}});const c=Q(()=>e.items.map(m=>typeof m=="string"?{item:{title:m},raw:m}:{item:m,raw:m}));return z(()=>{const m=!!(s.prepend||e.icon);return i(e.tag,{class:["v-breadcrumbs",d.value,r.value,n.value,e.class],style:[o.value,e.style]},{default:()=>{var y;return[m&&i("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[s.prepend?i(Xe,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},s.prepend):i(k,{key:"prepend-icon",start:!0,icon:e.icon},null)]),c.value.map((C,$,ee)=>{var te;let{item:R,raw:Be}=C;return i(F,null,[((te=s.item)==null?void 0:te.call(s,{item:R,index:$}))??i(Se,I({key:$,disabled:$>=ee.length-1},typeof R=="string"?{title:R}:R),{default:s.title?()=>{var H;return(H=s.title)==null?void 0:H.call(s,{item:R,index:$})}:void 0}),$<ee.length-1&&i(xs,null,{default:s.divider?()=>{var H;return(H=s.divider)==null?void 0:H.call(s,{item:Be,index:$})}:void 0})])}),(y=s.default)==null?void 0:y.call(s)]}})}),{}}}),Rs={f:"Folder",a:"Story Arc",r:"Top",p:"Publisher",i:"Imprint",s:"Series",v:"Volume"},Hs={f:Je,r:he,p:et,i:tt,s:rt},As={name:"BrowserBreadcrumbs",computed:{...v(g,{breadcrumbs(e){const t=[],s=e.settings.breadcrumbs.slice(0,e.settings.breadcrumbs.length-1);if(!s)return t;let d="";for(const o of s){const r=this.getTo(o,d),n=o.name?o.name:"",c=o.group,m=this.getIcon(o.pks,n,c),y=o.pks==="0"?"Top":Rs[c],C={to:r,title:n,icon:m,tooltip:y};t.push(C),d=o.pks}return t}})},methods:{getTo(e,t){const s=Ze(e);delete s.name;const d={name:"browser",params:s};return t&&(d.hash=`#card-${t}`),d},getIcon(e,t,s){let d;return"rfa".indexOf(s)!=-1&&e==="0"?d=he:t?d="":d=Hs[s],d}}},Ls={key:1};function Us(e,t,s,d,o,r){return l(),p(Os,{id:"browserBreadcrumbs",density:"compact",items:e.breadcrumbs},{item:h(({item:n})=>[i(Se,{to:n.to,title:n.tooltip},{default:h(()=>[n.icon?(l(),p(k,{key:0},{default:h(()=>[u(S(n.icon),1)]),_:2},1024)):(l(),w("span",Ls,S(n.title),1))]),_:2},1032,["to","title"])]),_:1},8,["items"])}const Gs=b(As,[["render",Us],["__scopeId","data-v-b8e7faf5"]]),qs={name:"BrowserHeader",components:{Breadcrumbs:Gs}};function Es(e,t,s,d,o,r){const n=f("Breadcrumbs");return l(),p(W,{id:"breadcrumbsToolbar",height:24,class:"titleToolbar",elevation:"8"},{default:h(()=>[i(n)]),_:1})}const zs=b(qs,[["render",Es],["__scopeId","data-v-fd83bc5e"]]),js={name:"BrowserHeader",data(){return{mdiReload:me}},head(){return{meta:[{hid:"description",name:"description",content:["browse comics",this.longBrowserTitlePrefix,this.longBrowseTitleMain,this.longBrowseTitleSuffix].filter(Boolean).join(" ")}]}},computed:{...v(g,{browserTitle:e=>{var t;return(t=e.page)==null?void 0:t.title},groupNames:e=>e.choices.static.groupNames,modelGroup:e=>e.page.modelGroup}),...V(P,["isUserAdmin"]),title(){let e;if(Number(this.$route.params.pks)===0)e="All";else if(this.browserTitle){let t=[];const{groupName:s,groupCount:d}=this.browserTitle,r=this.$route.params.group==="v"?K(s):s;if(r&&t.push(r),d){const n=`of ${d}`;t.push(n)}e=t.join(" ")}else e="";return e},subtitle(){return this.$route.params.group==="f"?"":this.groupNames[this.modelGroup]}}};function Ws(e,t,s,d,o,r){return l(),p(W,{id:"browserToolbarTitle",height:24,"extension-height":24,elevation:"8"},pe({default:h(()=>[i(ne,{id:"browserTitle",class:"browserTitle"},{default:h(()=>[u(S(r.title),1)]),_:1})]),_:2},[r.subtitle?{name:"extension",fn:h(()=>[i(ne,{id:"browserSubtitle",class:"browserTitle"},{default:h(()=>[u(S(r.subtitle),1)]),_:1})]),key:"0"}:void 0]),1024)}const Ys=b(js,[["render",Ws],["__scopeId","data-v-1f8ac575"]]),Qs=10,Ks={name:"BrowserSearchCombobox",data(){return{mdiMagnify:j,menu:!1,query:"",items:[""]}},computed:{...v(g,{stateQ:e=>e.settings.q})},watch:{stateQ(e){this.query=e,this.addToMenu(e)}},beforeMount(){this.query=this.stateQ},methods:{...T(g,["setSettings","startSearchHideTimeout","clearSearchHideTimeout"]),addToMenu(e){if(!e||this.items.includes(e))return;const t=this.items[0]===""?[]:this.items;t.unshift(e),this.items=t.slice(0,Qs)},doSearch(e=!1){this.menu=!1;const s={q:this.query?this.query.trim():""};e&&(s.orderBy="sort_name",s.orderReverse=!1,this.doBlur()),this.setSettings(s)},doBlur(){this.menu=!1,(this.query?this.query.trim():"")||this.startSearchHideTimeout()}}};function Xs(e,t,s,d,o,r){return l(),p(Nt,{id:"searchbox",ref:"searchbox",modelValue:o.query,"onUpdate:modelValue":t[0]||(t[0]=n=>o.query=n),menu:o.menu,"onUpdate:menu":t[1]||(t[1]=n=>o.menu=n),items:o.items,autofocus:"","aria-label":"search",clearable:"",density:"compact","full-width":"","hide-details":"auto","hide-selected":"","menu-props":{maxHeight:void 0},"no-filter":"","prepend-inner-icon":o.mdiMagnify,variant:"solo","onClick:clear":t[2]||(t[2]=n=>r.doSearch(!0)),"onClick:prependInner":r.doSearch,onKeydown:e.clearSearchHideTimeout,onKeyup:[ae(r.doSearch,["enter"]),ae(r.doBlur,["esc"])],onFocus:e.clearSearchHideTimeout,onBlur:r.doBlur},null,8,["modelValue","menu","items","prepend-inner-icon","onClick:prependInner","onKeydown","onKeyup","onFocus","onBlur"])}const Zs=b(Ks,[["render",Xs]]),Js={name:"BrowserSearchToolbar",components:{BrowserSearchCombobox:Zs},computed:{...v(g,{isSearchOpen:e=>e.isSearchOpen})}};function eo(e,t,s,d,o,r){const n=f("BrowserSearchCombobox");return l(),p(st,null,{default:h(()=>[e.isSearchOpen?(l(),p(W,{key:0,density:"compact",height:64},{default:h(()=>[i(X,{id:"searchToolbarItems"},{default:h(()=>[i(n)]),_:1})]),_:1})):B("",!0)]),_:1})}const to=b(Js,[["render",eo],["__scopeId","data-v-4900943a"]]),ro={name:"BrowserFilterSubMenu",props:{name:{type:String,required:!0}},emits:["selected"],data(){return{mdiChevronLeft:fe,mdiCloseCircleOutline:_e,query:""}},computed:{...v(g,{choices(e){return e.choices.dynamic[this.name]},readingDirectionTitles:e=>e.choices.static.readingDirection,identifierTypeTitles:e=>e.choices.static.identifierType,filter(e){return e.settings.filters[this.name]}}),...ge(g,["filterMode"]),hasNone(){for(const e of this.choices)if(ie.has(e)||e instanceof Object&&ie.has(e.pk))return!0;return!1},vuetifyItems(){return Tt(this.choices,this.query)},title(){return gt(this.name)},lowerTitle(){return this.title.toLowerCase()},filterMenuIcon(){return this.filter&&this.filter.length>0?ot:at},isClearable(){var e;return(e=this.filter)==null?void 0:e.length}},methods:{...T(g,["clearOneFilter","identifierTypeTitle","loadAvailableFilterChoices","loadFilterChoices"]),setUIFilterMode(e){this.filterMode=e,this.query="",e!=="base"&&typeof this.choices!="object"&&this.loadFilterChoices(e)},selected(e){const t={filters:{[this.name]:e}};this.$emit("selected",t)},itemTitle:function(e){return this.name==="readingDirection"?this.readingDirectionTitles[e.value]:this.name==="identifierType"?this.identifierTypeTitle(e.title):e.title},async _loadSubAvailableFilterChoices(){return this.loadAvailableFilterChoices().then(()=>this.loadFilterChoices(this.name))},onClear(){return this.clearOneFilter(this.name).then(()=>this._loadSubAvailableFilterChoices())}}},so={key:0},oo={class:"filterHeader"};function ao(e,t,s,d,o,r){return l(),w("div",null,[i(nt,{"hide-on-leave":""},{default:h(()=>[e.filterMode==="base"?(l(),p(M,{key:0,density:"compact",variant:"plain",title:r.title,"append-icon":r.filterMenuIcon,onClick:t[0]||(t[0]=n=>r.setUIFilterMode(s.name))},null,8,["title","append-icon"])):B("",!0)]),_:1}),i(lt,{"hide-on-leave":""},{default:h(()=>[e.filterMode===s.name?(l(),w("div",so,[a("header",oo,[i(M,{class:"filterHeaderTitle","prepend-icon":o.mdiChevronLeft,title:r.lowerTitle,onClick:t[1]||(t[1]=n=>r.setUIFilterMode("base"))},null,8,["prepend-icon","title"]),r.isClearable?(l(),p(M,{key:0,density:"compact",class:"clearFilter",title:"Clear Filter","append-icon":o.mdiCloseCircleOutline,onClick:r.onClear},null,8,["append-icon","onClick"])):B("",!0),typeof e.choices=="object"?(l(),p(Ot,{key:1,modelValue:o.query,"onUpdate:modelValue":t[2]||(t[2]=n=>o.query=n),placeholder:"Filter","full-width":"",density:"compact",filled:"",rounded:"","hide-details":"auto",onFocus:t[3]||(t[3]=n=>e.filterMode=s.name)},null,8,["modelValue"])):(l(),p(J,{key:2,class:"filterValuesProgress",rounded:"",indeterminate:""}))]),typeof e.choices=="object"?(l(),p(it,{key:0,"model-value":e.filter,class:"filterGroup overflow-y-auto",density:"compact",multiple:"",items:r.vuetifyItems,"onUpdate:selected":r.selected},{default:h(()=>[r.hasNone?(l(),p(M,{key:-1,title:"None",value:-1,class:"noneItem",density:"compact",variant:"plain"})):B("",!0),(l(!0),w(F,null,O(r.vuetifyItems,n=>(l(),p(M,{key:n.value,title:r.itemTitle(n),value:n.value,density:"compact",variant:"plain"},null,8,["title","value"]))),128))]),_:1},8,["model-value","items","onUpdate:selected"])):B("",!0)])):B("",!0)]),_:1})])}const no=b(ro,[["render",ao],["__scopeId","data-v-f1f62462"]]),io={name:"BrowserFilterBySelect",components:{BrowserFilterSubMenu:no,ToolbarSelect:N},extends:N,data(){return{mdiCloseCircleOutline:_e,mdiFilterMultipleOutline:ct,menu:!1}},computed:{...V(g,["filterByChoicesMaxLen","isDynamicFiltersSelected","isFiltersClearable"]),...v(g,{bookmarkChoices:e=>e.choices.static.bookmark,bookmarkFilter:e=>e.settings.filters.bookmark||e.choices.static.bookmark[0],filters:e=>e.settings.filters,filterMenuClass:function(e){let t="filterMenu";return e.filterMode!=="base"&&(t+="Hidden"),t},dynamicChoiceNames:function(e){if(e.choices.dynamic===void 0)return;const t=[];for(const[s,d]of Object.entries(e.choices.dynamic))d&&t.push(s);return t}}),...ge(g,["filterMode"]),padRight(){return this.$vuetify.display.xs&&!this.bookmarkFilter}},methods:{...T(g,["clearFilters","loadAvailableFilterChoices","setSettings"]),onUpdateModelValue(e){const t={filters:{bookmark:e}};this.onSubMenuSelected(t)},onSubMenuSelected(e){this.menu=!1,this.setSettings(e),this.filterMode="base"},onClear(){return this.clearFilters().then(()=>this.loadAvailableFilterChoices()).catch(()=>{console.error("clear filters")})},onMenu(e){e&&this.dynamicChoiceNames===void 0&&this.loadAvailableFilterChoices()}}},lo={class:"codexSelection"};function co(e,t,s,d,o,r){const n=f("BrowserFilterSubMenu"),c=f("ToolbarSelect");return l(),p(c,{menu:o.menu,"onUpdate:menu":[t[0]||(t[0]=m=>o.menu=m),r.onMenu],class:A(["filterBySelect",{filterBySelectXSmall:r.padRight}]),"select-label":"filter by",items:e.bookmarkChoices,"menu-props":{contentClass:e.filterMenuClass,maxHeight:void 0},"model-value":e.bookmarkFilter,"max-select-len":e.filterByChoicesMaxLen-1,"onUpdate:modelValue":r.onUpdateModelValue},{selection:h(({item:m})=>[a("span",lo,S(m.title),1),e.isDynamicFiltersSelected?(l(),p(k,{key:0,class:"filterSuffix",size:"x-small"},{default:h(()=>[u(S(o.mdiFilterMultipleOutline),1)]),_:1})):B("",!0)]),"prepend-item":h(()=>[e.isFiltersClearable?(l(),p(M,{key:0,density:"compact",variant:"plain",class:"clearFilter",title:"Clear All Filters","append-icon":o.mdiCloseCircleOutline,onClick:r.onClear},null,8,["append-icon","onClick"])):B("",!0)]),"append-item":h(()=>[i(D),e.dynamicChoiceNames===void 0?(l(),p(M,{key:0,density:"compact",variant:"plain"},{default:h(()=>[i(J,{indeterminate:"",rounded:""})]),_:1})):e.dynamicChoiceNames.length>0?(l(!0),w(F,{key:1},O(e.dynamicChoiceNames,m=>(l(),p(n,{key:m,name:m,onSelected:r.onSubMenuSelected},null,8,["name","onSelected"]))),128)):(l(),p(M,{key:2,class:"noChoices",density:"compact",variant:"plain",title:"No filters available"}))]),_:1},8,["menu","class","items","menu-props","model-value","max-select-len","onUpdate:modelValue","onUpdate:menu"])}const uo=b(io,[["render",co],["__scopeId","data-v-0d876944"]]),mo={name:"BrowseOrderBySelect",components:{ToolbarSelect:N},extends:N,computed:{...V(g,["orderByChoices","orderByChoicesMaxLen"]),...v(g,{orderBySetting:e=>e.settings.orderBy}),reverseValues(){const e=new Set;for(const t of this.orderByChoices)t.reverse&&e.add(t.value);return e},orderBy:{get(){return this.orderBySetting},set(e){const t={orderBy:e,orderReverse:this.reverseValues.has(e)};this.setSettings(t)}}},methods:{...T(g,["setSettings"])}};function ho(e,t,s,d,o,r){const n=f("ToolbarSelect");return l(),p(n,I({modelValue:r.orderBy,"onUpdate:modelValue":t[0]||(t[0]=c=>r.orderBy=c),class:"orderBySelect","select-label":"order by",items:e.orderByChoices,"max-select-len":e.orderByChoicesMaxLen-4},e.$attrs),null,16,["modelValue","items","max-select-len"])}const po=b(mo,[["render",ho]]),fo={name:"ToolbarButton",components:{ScaleButton:yt}};function _o(e,t,s,d,o,r){const n=f("ScaleButton");return l(),p(n,{variant:"plain",class:"toolbarButton"},pe({_:2},[O(e.$slots,(c,m)=>({name:m,fn:h(y=>[dt(e.$slots,m,I({props:c},y))])}))]),1024)}const we=b(fo,[["render",_o]]),go={name:"BrowseOrderReverseButton",components:{ToolbarButton:we},data(){return{mdiSortVariant:ut}},computed:{...v(g,{orderReverseSetting:e=>e.settings.orderReverse}),title(){return this.orderReverseSetting?"order descending":"order ascending"},iconClasses(){return{inverted:!this.orderReverseSetting}}},methods:{...T(g,["setSettings"]),toggleOrderReverse(){const e={orderReverse:!this.orderReverseSetting};this.setSettings(e)}}};function bo(e,t,s,d,o,r){const n=f("ToolbarButton");return l(),p(n,{class:"orderReverseButton",icon:"",title:r.title,onClick:r.toggleOrderReverse},{default:h(()=>[i(k,{class:A(r.iconClasses)},{default:h(()=>[u(S(o.mdiSortVariant),1)]),_:1},8,["class"])]),_:1},8,["title","onClick"])}const yo=b(go,[["render",bo],["__scopeId","data-v-42884e89"]]),vo={name:"BrowseOrderReverseButton",components:{ToolbarButton:we},data(){return{mdiMagnify:j}},computed:{...v(g,{isSearchOpen:e=>e.isSearchOpen,isQuery:e=>!!e.settings.q})},methods:{...T(g,["setIsSearchOpen"])}};function So(e,t,s,d,o,r){const n=f("ToolbarButton");return e.isSearchOpen?B("",!0):(l(),p(n,I({key:0,class:"searchButton",icon:o.mdiMagnify},e.$attrs,{title:"Search",onClick:t[0]||(t[0]=c=>e.setIsSearchOpen(!0))}),null,16,["icon"]))}const wo=b(vo,[["render",So]]),Bo=new Set(["a","f"]),Co={name:"BrowserTopGroupSelect",components:{ToolbarSelect:N},extends:N,data(){return{DIVIDED_VALUES:Bo}},computed:{...v(g,{topGroupSetting:e=>e.settings.topGroup}),...V(g,["topGroupChoices","topGroupChoicesMaxLen"]),topGroup:{get(){return this.topGroupSetting},set(e){const t={topGroup:e};this.setSettings(t)}}},methods:{...T(g,["setSettings"])}};function To(e,t,s,d,o,r){const n=f("ToolbarSelect");return l(),p(n,{modelValue:r.topGroup,"onUpdate:modelValue":t[0]||(t[0]=c=>r.topGroup=c),class:"topGroupSelect","select-label":"top group",items:e.topGroupChoices,"max-select-len":e.topGroupChoicesMaxLen-2.25},{item:h(({item:c,props:m})=>[o.DIVIDED_VALUES.has(c.value)?(l(),p(D,{key:0})):B("",!0),i(M,I(m,{density:"compact",variant:"plain",title:c.title,value:c.value}),null,16,["title","value"])]),_:1},8,["modelValue","items","max-select-len"])}const ko=b(Co,[["render",To]]),Vo={name:"BrowserTopToolbar",components:{BrowserFilterBySelect:uo,BrowserSearchButton:wo,BrowserTopGroupSelect:ko,BrowserOrderBySelect:po,BrowserOrderReverseButton:yo,SettingsDrawerButton:vt},data(){return{mdiMagnify:j,mdiFamilyTree:mt,browseMode:"filter"}}};function Mo(e,t,s,d,o,r){const n=f("BrowserTopGroupSelect"),c=f("BrowserFilterBySelect"),m=f("BrowserOrderBySelect"),y=f("BrowserOrderReverseButton"),C=f("BrowserSearchButton"),$=f("SettingsDrawerButton");return l(),p(W,{id:"browserToolbarTop",density:"compact",height:48},{default:h(()=>[i(X,{id:"browserToolbarLeftItems"},{default:h(()=>[i(n),i(c),i(m),i(y),i(C)]),_:1}),i(kt),i(X,null,{default:h(()=>[i($)]),_:1})]),_:1})}const $o=b(Vo,[["render",Mo],["__scopeId","data-v-42686e3a"]]),Po={name:"BrowserHeadToolbars",components:{BrowserBreadcrumbsToolbar:zs,BrowserSearchToolbar:to,BrowserTopToolbar:$o,BrowserTitleToolbar:Ys}},Fo={id:"codexHeadToolbarWrapper"};function Io(e,t,s,d,o,r){const n=f("BrowserTopToolbar"),c=f("BrowserSearchToolbar"),m=f("BrowserBreadcrumbsToolbar"),y=f("BrowserTitleToolbar");return l(),w("header",Fo,[i(n,{class:"codexHeadToolbar"}),i(c,{class:"codexHeadToolbar"}),i(m,{class:"codexHeadToolbar"}),i(y,{class:"codexHeadToolbar"})])}const xo=b(Po,[["render",Io],["__scopeId","data-v-508c4760"]]),Do={name:"BrowserNavButton",components:{PaginationNavButton:Vt},props:{back:{type:Boolean,required:!0},more:{type:Boolean,default:!1}},data(){return{mdiChevronLeft:fe,mdiMagnify:j,routeParams:this.$route.params,page:+this.$route.params.page}},computed:{...V(g,["isSearchMode"]),...v(g,{numPages:e=>e.page.numPages}),increment(){return this.back?-1:1},toPage(){return this.page+this.increment},title(){return this.showMore?"Search for More":"Page "+this.toPage},toRoute(){const e=this.toPage;return{params:{...this.routeParams,page:e}}},classes(){return{leftButton:this.back,rightButton:!this.back}},disabled(){return this.back&&this.page<=1||!this.back&&this.page>=this.numPages},showMore(){return this.more&&this.isSearchMode&&this.toPage===this.numPages}},watch:{$route(e){this.params=e.params,this.page=+e.params.page}}};function No(e,t,s,d,o,r){const n=f("PaginationNavButton");return l(),p(n,{key:r.toRoute,class:A(r.classes),disabled:r.disabled,title:r.title,to:r.toRoute},{default:h(()=>[r.showMore?(l(),p(k,{key:0},{default:h(()=>[u(S(o.mdiMagnify),1)]),_:1})):B("",!0),i(k,{class:A({flipHoriz:!s.back})},{default:h(()=>[u(S(o.mdiChevronLeft),1)]),_:1},8,["class"])]),_:1},8,["class","disabled","title","to"])}const Oo=b(Do,[["render",No],["__scopeId","data-v-372671b3"]]),Ro={name:"BrowserNavToolbar",components:{BrowserNavButton:Oo,PaginationSlider:Mt,PaginationToolbar:$t},computed:{...v(g,{numPages:e=>e.page.numPages})},methods:{...T(g,["routeToPage"]),onUpdate(e){this.routeToPage(e)}}};function Ho(e,t,s,d,o,r){const n=f("BrowserNavButton"),c=f("PaginationSlider"),m=f("PaginationToolbar");return e.numPages>1?(l(),p(m,{key:0},{default:h(()=>[i(n,{back:!0}),i(c,{"model-value":+e.$route.params.page,min:1,max:e.numPages,step:1,"onUpdate:modelValue":t[0]||(t[0]=y=>e.routeToPage(y))},null,8,["model-value","max"]),i(n,{back:!1,more:!0})]),_:1})):B("",!0)}const Ao=b(Ro,[["render",Ho]]),Lo={name:"MainBrowser",components:{BrowserHeadToolbars:xo,BrowserMain:Fs,BrowserNavToolbar:Ao,BrowserSettingsDrawer:Gr,Unauthorized:Dt},computed:{...v(P,{user:e=>e.user}),...V(P,["isAuthorized"])},watch:{$route(e){var t;window.scrollTo(0,0),this.setPageMtime((t=e==null?void 0:e.query)==null?void 0:t.ts),this.loadBrowserPage()},user(){this.loadSettings()},isAuthorized(){this.loadSettings()}},created(){this.loadSettings()},methods:{...T(g,["loadBrowserPage","loadSettings","setPageMtime"])}};function Uo(e,t,s,d,o,r){const n=f("BrowserHeadToolbars"),c=f("BrowserMain"),m=f("BrowserNavToolbar"),y=f("BrowserSettingsDrawer"),C=f("Unauthorized");return e.isAuthorized?(l(),p(be,{key:0,id:"browser"},{default:h(()=>[i(n),i(c),i(m),i(y)]),_:1})):(l(),p(C,{key:1}))}const na=b(Lo,[["render",Uo],["__scopeId","data-v-4a8fba7b"]]);export{na as default};
|
|
Binary file
|
|
Binary file
|