chParams(window.location.search).get("app");
        function toggleAppModal(app, action) {
            if (app) {
                const appModal = app ? document.querySelector(`#modal-${app}`) : null;
                const isShown = $(appModal).data("bs.modal")?.isShown;

                if (action === "hide" ? isShown : !isShown) {
                    $(appModal).modal(action);
                }

                previousApp = action === "hide" ? null : app;
            }
        }

        const appTilesC