diff --git a/data/main.js b/data/main.js index d89d6e50..bc9a3ea2 100644 --- a/data/main.js +++ b/data/main.js @@ -1,8 +1,8 @@ (() => { - var t, n = { - 5473: (t, n, e) => { + var t, e = { + 5473: (t, e, n) => { "use strict"; - e.d(n, { + n.d(e, { Z: () => i }); const i = { @@ -29,9 +29,9 @@ QUERY_DEFAULT: "ATOM 866 N PHE A 111 11.187 -12.768 -6.000\nATOM 867 CA PHE A 111 11.895 -11.516 -5.804\nATOM 868 C PHE A 111 13.203 -11.457 -6.592\nATOM 870 CB PHE A 111 12.169 -11.360 -4.310\nATOM 877 N GLY A 112 13.543 -10.277 -7.094\nATOM 878 CA GLY A 112 14.800 -10.107 -7.788\nATOM 879 C GLY A 112 14.816 -9.982 -9.286\nATOM 881 N TYR A 113 13.670 -10.112 -9.938\nATOM 882 CA TYR A 113 13.648 -10.024 -11.397\nATOM 883 C TYR A 113 12.764 -8.904 -11.929\nATOM 885 CB TYR A 113 13.182 -11.355 -11.997\nATOM 893 N CYS A 114 13.052 -8.468 -13.148\nATOM 894 CA CYS A 114 12.288 -7.406 -13.778\nATOM 895 C CYS A 114 10.881 -7.902 -14.054\nATOM 897 CB CYS A 114 12.938 -6.973 -15.096\nATOM 899 N GLU A 115 9.884 -7.083 -13.740\nATOM 900 CA GLU A 115 8.508 -7.493 -13.963\nATOM 901 C GLU A 115 8.078 -7.419 -15.428\nATOM 903 CB GLU A 115 7.564 -6.649 -13.087\nATOM 908 N SER A 116 8.751 -6.604 -16.236\nATOM 909 CA SER A 116 8.399 -6.475 -17.651\nATOM 910 C SER A 116 9.022 -7.604 -18.460\nATOM 912 CB SER A 116 8.874 -5.128 -18.198\nATOM 914 N CYS A 117 10.338 -7.721 -18.376\nATOM 915 CA CYS A 117 11.043 -8.788 -19.061\nATOM 916 C CYS A 117 11.545 -9.657 -17.913\nATOM 918 CB CYS A 117 12.180 -8.202 -19.896\nATOM 920 N GLY A 118 11.749 -10.943 -18.129\nATOM 921 CA GLY A 118 12.164 -11.781 -17.008\nATOM 922 C GLY A 118 13.517 -11.520 -16.366\nATOM 924 N VAL A 119 14.307 -10.654 -16.991\nATOM 925 CA VAL A 119 15.653 -10.305 -16.546\nATOM 926 C VAL A 119 15.839 -10.128 -15.043\nATOM 928 CB VAL A 119 16.116 -9.004 -17.259\nATOM 931 N GLU A 120 17.018 -10.498 -14.557\nATOM 932 CA GLU A 120 17.318 -10.353 -13.149\nATOM 933 C GLU A 120 17.758 -8.921 -12.929\nATOM 935 CB GLU A 120 18.457 -11.282 -12.739\nATOM 940 N ILE A 121 17.328 -8.325 -11.826\nATOM 941 CA ILE A 121 17.713 -6.960 -11.477\nATOM 942 C ILE A 121 19.000 -7.099 -10.668\nATOM 944 CB ILE A 121 16.621 -6.291 -10.625\nATOM 948 N GLY A 122 19.945 -6.204 -10.856\nATOM 949 CA GLY A 122 21.175 -6.377 -10.114\nATOM 950 C GLY A 122 21.099 -6.565 -8.605\nATOM 952 N ILE A 123 22.051 -7.298 -8.038\nATOM 953 CA ILE A 123 22.055 -7.474 -6.607\nATOM 954 C ILE A 123 22.389 -6.135 -5.992\nATOM 956 CB ILE A 123 23.078 -8.512 -6.173\nATOM 960 N ARG A 124 23.412 -5.481 -6.521\nATOM 961 CA ARG A 124 23.804 -4.174 -5.993\nATOM 962 C ARG A 124 22.719 -3.163 -6.291\nATOM 964 CB ARG A 124 25.110 -3.680 -6.625\nATOM 971 N ARG A 125 21.969 -3.378 -7.364\nATOM 972 CA ARG A 125 20.903 -2.436 -7.674\nATOM 973 C ARG A 125 19.754 -2.611 -6.682\nATOM 975 CB ARG A 125 20.358 -2.617 -9.083\nATOM 982 N LEU A 126 19.493 -3.856 -6.289\nATOM 983 CA LEU A 126 18.430 -4.140 -5.333\nATOM 984 C LEU A 126 18.838 -3.655 -3.951\nATOM 986 CB LEU A 126 18.141 -5.637 -5.271\nATOM 990 N GLU A 127 20.138 -3.596 -3.708\nATOM 991 CA GLU A 127 20.632 -3.131 -2.429\nATOM 992 C GLU A 127 20.396 -1.621 -2.356\nATOM 994 CB GLU A 127 22.117 -3.451 -2.320\nATOM 999 N ALA A 128 20.326 -0.979 -3.520\nATOM 1000 CA ALA A 128 20.074 0.459 -3.603\nATOM 1001 C ALA A 128 18.574 0.724 -3.409\nATOM 1003 CB ALA A 128 20.517 0.985 -4.943\nATOM 1004 N ARG A 129 17.730 0.026 -4.174\nATOM 1005 CA ARG A 129 16.277 0.152 -4.044\nATOM 1006 C ARG A 129 15.726 -1.263 -4.110\nATOM 1008 CB ARG A 129 15.680 0.998 -5.173\nATOM 1015 N PRO A 130 15.684 -1.961 -2.968\nATOM 1016 CA PRO A 130 15.183 -3.334 -2.892\nATOM 1017 C PRO A 130 13.742 -3.504 -3.336\nATOM 1019 CB PRO A 130 15.393 -3.691 -1.429\nATOM 1022 N THR A 131 13.075 -2.383 -3.540\nATOM 1023 CA THR A 131 11.675 -2.355 -3.940\nATOM 1024 C THR A 131 11.531 -2.277 -5.471\nATOM 1026 CB THR A 131 11.004 -1.137 -3.239\nATOM 1029 N ALA A 132 12.661 -2.293 -6.172\nATOM 1030 CA ALA A 132 12.672 -2.208 -7.625\nATOM 1031 C ALA A 132 11.798 -3.246 -8.352\nATOM 1033 CB ALA A 132 14.106 -2.304 -8.114\nATOM 1034 N ASP A 133 10.971 -2.777 -9.287\nATOM 1035 CA ASP A 133 10.071 -3.635 -10.060\nATOM 1036 C ASP A 133 10.581 -3.912 -11.473\nATOM 1038 CB ASP A 133 8.681 -2.987 -10.220\nATOM 1042 N LEU A 134 11.366 -2.982 -12.010\nATOM 1043 CA LEU A 134 11.863 -3.127 -13.369\nATOM 1044 C LEU A 134 13.361 -3.082 -13.523\nATOM 1046 CB LEU A 134 11.257 -2.039 -14.242\nATOM 1050 N CYS A 135 13.836 -3.733 -14.589\nATOM 1051 CA CYS A 135 15.243 -3.648 -14.882\nATOM 1052 C CYS A 135 15.282 -2.173 -15.324\nATOM 1054 CB CYS A 135 15.651 -4.622 -16.008\nATOM 1056 N ILE A 136 16.461 -1.566 -15.338\nATOM 1057 CA ILE A 136 16.567 -0.158 -15.714\nATOM 1058 C ILE A 136 15.950 0.181 -17.061\nATOM 1060 CB ILE A 136 18.043 0.319 -15.697\nATOM 1064 N ASP A 137 16.145 -0.690 -18.047\nATOM 1065 CA ASP A 137 15.602 -0.448 -19.378\nATOM 1066 C ASP A 137 14.082 -0.391 -19.394\nATOM 1068 CB ASP A 137 16.048 -1.516 -20.372\nATOM 1072 N CYS A 138 13.433 -1.411 -18.854\nATOM 1073 CA CYS A 138 11.977 -1.428 -18.842\nATOM 1074 C CYS A 138 11.458 -0.325 -17.968\nATOM 1076 CB CYS A 138 11.431 -2.759 -18.330\nATOM 1078 N LYS A 139 12.159 -0.068 -16.872\nATOM 1079 CA LYS A 139 11.752 0.988 -15.957\nATOM 1080 C LYS A 139 11.752 2.318 -16.682\nATOM 1082 CB LYS A 139 12.709 1.093 -14.766\nATOM 1087 N THR A 140 12.841 2.584 -17.394\nATOM 1088 CA THR A 140 12.987 3.830 -18.134\nATOM 1089 C THR A 140 12.001 3.945 -19.284\nATOM 1091 CB THR A 140 14.413 3.980 -18.671\nATOM 1094 N LEU A 141 11.855 2.866 -20.038\nATOM 1095 CA LEU A 141 10.936 2.857 -21.156\nATOM 1096 C LEU A 141 9.543 3.165 -20.663\nATOM 1098 CB LEU A 141 10.967 1.509 -21.855\nATOM 1102 N ALA A 142 9.202 2.630 -19.501\nATOM 1103 CA ALA A 142 7.888 2.875 -18.910\nATOM 1104 C ALA A 142 7.720 4.354 -18.613\nATOM 1106 CB ALA A 142 7.734 2.069 -17.624\nATOM 1107 N GLU A 143 8.760 4.969 -18.070\nATOM 1108 CA GLU A 143 8.715 6.382 -17.737\nATOM 1109 C GLU A 143 8.556 7.223 -18.995\nATOM 1111 CB GLU A 143 9.992 6.783 -17.003\nATOM 1116 N ILE A 144 9.188 6.790 -20.080\nATOM 1117 CA ILE A 144 9.096 7.513 -21.329\nATOM 1118 C ILE A 144 7.684 7.397 -21.873\nATOM 1120 CB ILE A 144 10.091 6.976 -22.380\nATOM 1124 N ARG A 145 7.153 6.178 -21.916\nATOM 1125 CA ARG A 145 5.798 5.945 -22.417\nATOM 1126 C ARG A 145 4.846 6.844 -21.651\nATOM 1128 CB ARG A 145 5.359 4.495 -22.200\nATOM 1135 N GLU A 146 5.063 6.922 -20.346\nATOM 1136 CA GLU A 146 4.263 7.735 -19.443\nATOM 1137 C GLU A 146 4.121 9.167 -19.951\nATOM 1139 CB GLU A 146 4.936 7.716 -18.080\nATOM 1144 N LYS A 147 5.248 9.860 -20.097\nATOM 1145 CA LYS A 147 5.253 11.240 -20.581\nATOM 1146 C LYS A 147 4.540 11.421 -21.924\nATOM 1148 CB LYS A 147 6.693 11.757 -20.710\nATOM 1153 N GLN A 148 4.576 10.393 -22.762\nATOM 1154 CA GLN A 148 3.951 10.453 -24.085\nATOM 1155 C GLN A 148 2.471 10.044 -24.106\nATOM 1157 CB GLN A 148 4.750 9.592 -25.070\nATOM 1162 N MET A 149 2.128 8.997 -23.359\nATOM 1163 CA MET A 149 0.743 8.529 -23.282\nATOM 1164 C MET A 149 -0.049 9.525 -22.433\nATOM 1166 CB MET A 149 0.660 7.141 -22.624\nATOM 1170 N ALA A 150 0.664 10.279 -21.603\nATOM 1171 CA ALA A 150 0.044 11.272 -20.740\nATOM 1172 C ALA A 150 -0.134 12.585 -21.497\nATOM 1174 CB ALA A 150 0.902 11.499 -19.503\nATOM 1175 N GLY A 151 0.960 13.327 -21.647\nATOM 1176 CA GLY A 151 0.909 14.596 -22.353\nATOM 1177 C GLY A 151 0.566 14.495 -23.835\nTER" }; }, - 8615: (t, n, e) => { + 8615: (t, e, n) => { "use strict"; - e.d(n, { + n.d(e, { Z: () => i }); const i = { @@ -60,15 +60,15 @@ QUERY_DEFAULT: ">TEST\nMPKIIEAIYENGVFKPLQKVDLKEGEKAKIVLESISDKTFGILKASETEIKKVLEEIDDFWGVC" }; }, - 8217: (t, n, e) => { + 1314: (t, e, n) => { "use strict"; - var i = e(144), a = e(6828), r = e(1002), s = { + var i = n(144), a = n(6828), r = n(1002), s = { selector: "vue-portal-target" }; const o = s; var l = "undefined" != typeof window && void 0 !== ("undefined" == typeof document ? "undefined" : (0, r.Z)(document)); - const A = i.Z.extend({ + const c = i.Z.extend({ abstract: !0, name: "PortalOutlet", props: [ "nodes", "tag" ], @@ -78,14 +78,14 @@ }; }, render: function(t) { - var n = this.updatedNodes && this.updatedNodes(); - return n ? 1 !== n.length || n[0].text ? t(this.tag || "DIV", n) : n : t(); + var e = this.updatedNodes && this.updatedNodes(); + return e ? 1 !== e.length || e[0].text ? t(this.tag || "DIV", e) : e : t(); }, destroyed: function() { var t = this.$el; t && t.parentNode.removeChild(t); } - }), c = i.Z.extend({ + }), A = i.Z.extend({ name: "VueSimplePortal", props: { disabled: { @@ -107,8 +107,8 @@ }, render: function(t) { if (this.disabled) { - var n = this.$scopedSlots && this.$scopedSlots.default(); - return n ? n.length < 2 && !n[0].text ? n : t(this.tag, n) : t(); + var e = this.$scopedSlots && this.$scopedSlots.default(); + return e ? e.length < 2 && !e[0].text ? e : t(this.tag, e) : t(); } return t(); }, @@ -139,16 +139,16 @@ }, insertTargetEl: function() { if (l) { - var t = document.querySelector("body"), n = document.createElement(this.tag); - n.id = this.selector.substring(1), t.appendChild(n); + var t = document.querySelector("body"), e = document.createElement(this.tag); + e.id = this.selector.substring(1), t.appendChild(e); } }, mount: function() { if (l) { - var t = this.getTargetEl(), n = document.createElement("DIV"); - this.prepend && t.firstChild ? t.insertBefore(n, t.firstChild) : t.appendChild(n), - this.container = new A({ - el: n, + var t = this.getTargetEl(), e = document.createElement("DIV"); + this.prepend && t.firstChild ? t.insertBefore(e, t.firstChild) : t.appendChild(e), + this.container = new c({ + el: e, parent: this, propsData: { tag: this.tag, @@ -163,41 +163,41 @@ } }); function d(t) { - var n, e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; - t.component(e.name || "portal", c), e.defaultSelector && (n = e.defaultSelector, - s.selector = n); + var e, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; + t.component(n.name || "portal", A), n.defaultSelector && (e = n.defaultSelector, + s.selector = e); } "undefined" != typeof window && window.Vue && window.Vue === i.Z && i.Z.use(d); const u = d; - var h = e(5317), p = (e(8197), e(7895), e(1434), function() { - var t = this, n = t.$createElement, e = t._self._c || n; - return e("v-app", { + var h = n(5317), p = (n(8197), n(7895), n(1434), function() { + var t = this, e = t.$createElement, n = t._self._c || e; + return n("v-app", { class: { electron: t.$ELECTRON }, attrs: { id: "app" } - }, [ e("v-main", [ e("ResultLocal") ], 1) ], 1); + }, [ n("v-main", [ n("ResultLocal") ], 1) ], 1); }); p._withStripped = !0; var g = function() { - var t = this, n = t.$createElement, e = t._self._c || n; - return e("div", [ e("v-app-bar", { + var t = this, e = t.$createElement, n = t._self._c || e; + return n("div", [ n("v-app-bar", { attrs: { app: "", height: "48px", fixed: "", "clipped-left": "" } - }, [ e("img", { + }, [ n("img", { attrs: { height: "28px", src: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHN0eWxlPSJmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZDtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTAiIHZpZXdCb3g9IjAgMCA0NjggMzA2Ij48cGF0aCBkPSJNMzcyIDIwMnMxNC0xIDM3LTE5YzIzLTE3IDQwLTQ5IDU1LTU1bC0xMTQgMjQtNCAzMiAyNiAxOFoiIHN0eWxlPSJmaWxsOiNmN2QxOGE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOiMwMDA7c3Ryb2tlLXdpZHRoOjQuNDhweCIvPjxwYXRoIGQ9Ik02MiAxMzlTODcgMjEgMjY5IDJsMSAxLTQ2IDYxcy00MC0zLTU1IDdjMCAwIDE5LTEzIDY5LTRzNTAtMjAgNTAtMjAgOCAyMiAwIDI5bDI5IDE0LTE4IDRzMTI1LTEyIDE2NyAzM2MwIDAtMjYgMTctNjAgMjAtNTYgNS02MiAyMi02MiAyMnMyNS0xMCA0MyA0bC0yMiA5czE1IDggMTUgMjNsLTI2IDEwczM2LTE4IDUyLTdsLTI0IDE4czIzIDMgMzggMTVsLTMyIDhzMTUgMiAyNyAzMWwtNDUtNnM3IDkgNCAzMGwtMjUtMjJzLTE3IDQ2LTE1OCAyQzQ5IDI0MCA1NiAyMjEgNTAgMTkxbC0yNi0xczItMTUgMTgtMjFMMiAxNDJzMjQtMTMgNDItOGwtOC0yNXMyOSAxMSAyNiAzMFoiIHN0eWxlPSJmaWxsOiNlMTMyMTM7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOiMwMDA7c3Ryb2tlLXdpZHRoOjQuNDhweCIvPjxwYXRoIGQ9Ik0xMDEgMjUzYy00Ni0yMyA4LTEzNCAzNy0xNTEgMjgtMTYgNTcgNyA2MyAxOSAwIDAgMjMtMTggNTctN3M0OSA0NyAzNiAxMTVjLTggNDEtMjQgNTgtMzUgNjUtNyA0LTE0IDUtMjEgMy0yNS02LTEwNS0yNy0xMzctNDRaIiBzdHlsZT0iZmlsbDojZjdkMThhO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTojMDAwO3N0cm9rZS13aWR0aDo0LjQ4cHgiLz48cGF0aCBkPSJNMTM2IDExMnMtNDEtMTAtNTYgMThjLTE1IDI3IDEyIDM4IDI3IDQzIDE2IDQgNDcgNCA1Ny0xM3MtMS0zOC0yOC00OFoiIHN0eWxlPSJmaWxsOiNmZmY7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOiMwMDA7c3Ryb2tlLXdpZHRoOjQuNDhweCIvPjxwYXRoIGQ9Ik0xMTYgMTYwYzE2IDggMzQtMzcgMjAtNDQtMTQtNi00MCAzNS0yMCA0NFoiIHN0eWxlPSJmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6IzAwMDtzdHJva2Utd2lkdGg6NC40OHB4Ii8+PHBhdGggZD0iTTI4NCAxNDhjLTQxLTE1LTU5IDUtNjUgMjJzMiA0NCA0MiA1MyA1MC00IDU2LTE5YzUtMTYgNi00MS0zMy01NloiIHN0eWxlPSJmaWxsOiNmZmY7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOiMwMDA7c3Ryb2tlLXdpZHRoOjQuNDhweCIvPjxwYXRoIGQ9Ik0yNDggMTk5YzE5IDkgNDctNDEgMjMtNTJzLTQzIDQzLTIzIDUyWm0tODUtMTVjMS04IDIwLTEgMjAgNSAwIDctOSA4LTEyIDctNC0xLTktNi04LTEyWiIgc3R5bGU9ImZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTojMDAwO3N0cm9rZS13aWR0aDo0LjQ4cHgiLz48cGF0aCBkPSJNMTMyIDEyMGM3IDMtMiAxNS02IDEyczMtMTQgNi0xMlptMTI4IDMwYzcgMy0yIDE1LTYgMTItNC0yIDMtMTQgNi0xMloiIHN0eWxlPSJmaWxsOiNmZmY7ZmlsbC1ydWxlOm5vbnplcm8iLz48cGF0aCBkPSJtMTE1IDIxMiA5LTRzLTggNyAwIDEzYzggNyAyNS00IDQ2LTEgMjEgNCA0MCAxOSA1NSAyMSAxNiAzIDI0IDEgMjMtNC0xLTYgNSA3IDUgNyIgc3R5bGU9ImZpbGw6bm9uZTtmaWxsLXJ1bGU6bm9uemVybztzdHJva2U6IzAwMDtzdHJva2Utd2lkdGg6NC40OHB4Ii8+PC9zdmc+" } - }), t._v("\n  \n "), e("v-app-bar-title", { + }), t._v("\n  \n "), n("v-app-bar-title", { staticClass: "ml-2" - }, [ t._v(t._s(t.$STRINGS.APP_NAME) + " Search") ]), t._v(" "), e("v-spacer"), t._v(" "), e("v-file-input", { + }, [ t._v(t._s(t.$STRINGS.APP_NAME) + " Search") ]), t._v(" "), n("v-spacer"), t._v(" "), n("v-file-input", { staticClass: "shrink", staticStyle: { position: "relative", @@ -217,25 +217,25 @@ on: { change: t.uploadData } - }), t._v(" "), e("v-toolbar-items", [ e("v-btn", { + }), t._v(" "), n("v-toolbar-items", [ n("v-btn", { attrs: { text: "" }, on: { click: t.downloadData } - }, [ e("v-icon", [ t._v("\n " + t._s(t.$MDI.FileDownloadOutline) + "\n ") ]) ], 1), t._v(" "), t._l(t.$STRINGS.NAV_URL_COUNT - 0, (function(n) { - return e("v-btn", { - key: n, + }, [ n("v-icon", [ t._v("\n " + t._s(t.$MDI.FileDownloadOutline) + "\n ") ]) ], 1), t._v(" "), t._l(t.$STRINGS.NAV_URL_COUNT - 0, (function(e) { + return n("v-btn", { + key: e, staticClass: "hidden-sm-and-down", attrs: { text: "", rel: "external noopener", target: "_blank", - href: t.$STRINGS["NAV_URL_" + n] + href: t.$STRINGS["NAV_URL_" + e] } - }, [ t._v(t._s(t.$STRINGS["NAV_TITLE_" + n])) ]); - })) ], 2) ], 1), t._v(" "), t.hits ? e("v-tabs", { + }, [ t._v(t._s(t.$STRINGS["NAV_TITLE_" + e])) ]); + })) ], 2) ], 1), t._v(" "), t.hits ? n("v-tabs", { staticStyle: { "margin-bottom": "1em" }, @@ -244,16 +244,16 @@ grow: "", "show-arrows": "" } - }, t._l(t.hits, (function(n, i) { - return e("v-tab", { - key: n.query.header, + }, t._l(t.hits, (function(e, i) { + return n("v-tab", { + key: e.query.header, on: { - click: function(n) { + click: function(e) { return t.changeResult(i); } } - }, [ t._v("\n " + t._s(n.query.header) + " (" + t._s(n.results[0].alignments ? n.results[0].alignments.length : 0) + ")\n ") ]); - })), 1) : t._e(), t._v(" "), t.hits ? e("ResultView", { + }, [ t._v("\n " + t._s(e.query.header) + " (" + t._s(e.results[0].alignments ? e.results[0].alignments.length : 0) + ")\n ") ]); + })), 1) : t._e(), t._v(" "), t.hits ? n("ResultView", { key: t.currentIndex, attrs: { ticket: t.ticket, @@ -263,93 +263,196 @@ selectedDatabases: t.selectedDatabases, tableMode: t.tableMode } - }) : e("v-container", { + }) : n("v-container", { attrs: { "grid-list-md": "", fluid: "", "pa-2": "" } - }, [ e("v-layout", { + }, [ n("v-layout", { attrs: { wrap: "" } - }, [ e("v-flex", { + }, [ n("v-flex", { attrs: { xs12: "" } - }, [ e("v-card", { + }, [ n("v-card", { attrs: { rounded: "0" } - }, [ e("v-card-title", { + }, [ n("v-card-title", { staticClass: "mb-0 pa-4", attrs: { "primary-title": "" } - }, [ t._v("\n No data loaded\n ") ]) ], 1) ], 1) ], 1) ], 1), t._v(" "), e("v-container", { + }, [ t._v("\n No data loaded\n ") ]) ], 1) ], 1) ], 1) ], 1), t._v(" "), n("v-container", { attrs: { "grid-list-md": "", fluid: "", "pa-2": "" } - }, [ e("v-layout", { + }, [ n("v-layout", { attrs: { wrap: "" } - }, [ e("v-flex", { + }, [ n("v-flex", { attrs: { xs12: "" } - }, [ e("v-card", { + }, [ n("v-card", { attrs: { rounded: "0" } - }, [ e("v-card-title", { + }, [ n("v-card-title", { staticClass: "pb-0 mb-0", attrs: { "primary-title": "" } - }, [ e("div", { + }, [ n("div", { staticClass: "text-h5 mb-0" - }, [ t._v("Reference") ]) ]), t._v(" "), e("v-card-title", { + }, [ t._v("Reference") ]) ]), t._v(" "), n("v-card-title", { staticClass: "pt-0 mt-0", attrs: { "primary-title": "" } - }, [ e("p", { + }, [ n("p", { staticClass: "text-subtitle-2 mb-0", domProps: { innerHTML: t._s(t.$STRINGS.CITATION) } }) ]) ], 1) ], 1) ], 1) ], 1) ], 1); }; + function m(t, e) { + var n = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"]; + if (!n) { + if (Array.isArray(t) || (n = function(t, e) { + if (!t) return; + if ("string" == typeof t) return v(t, e); + var n = Object.prototype.toString.call(t).slice(8, -1); + "Object" === n && t.constructor && (n = t.constructor.name); + if ("Map" === n || "Set" === n) return Array.from(t); + if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return v(t, e); + }(t)) || e && t && "number" == typeof t.length) { + n && (t = n); + var i = 0, a = function() {}; + return { + s: a, + n: function() { + return i >= t.length ? { + done: !0 + } : { + done: !1, + value: t[i++] + }; + }, + e: function(t) { + throw t; + }, + f: a + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + var r, s = !0, o = !1; + return { + s: function() { + n = n.call(t); + }, + n: function() { + var t = n.next(); + return s = t.done, t; + }, + e: function(t) { + o = !0, r = t; + }, + f: function() { + try { + s || null == n.return || n.return(); + } finally { + if (o) throw r; + } + } + }; + } + function v(t, e) { + (null == e || e > t.length) && (e = t.length); + for (var n = 0, i = new Array(e); n < e; n++) i[n] = t[n]; + return i; + } + function f(t, e) { + var n = e.toLowerCase(); + return n.startsWith("pfam") ? "https://pfam.xfam.org/family/" + t : n.startsWith("pdb") ? "https://www.rcsb.org/pdb/explore.do?structureId=" + t.replaceAll(/\.(cif|pdb)(\.gz)?/g, "").split("_")[0] : n.startsWith("uniclust") || n.startsWith("uniprot") || n.startsWith("sprot") || n.startsWith("swissprot") ? "https://www.uniprot.org/uniprot/" + t : n.startsWith("eggnog_") ? "http://eggnogdb.embl.de/#/app/results?target_nogs=" + t : n.startsWith("cdd") ? "https://www.ncbi.nlm.nih.gov/Structure/cdd/cddsrv.cgi?uid=" + t : t.startsWith("AF-") ? "https://www.alphafold.ebi.ac.uk/entry/" + t.replaceAll(/-F[0-9]+-model_v[0-9]+(\.(cif|pdb))?(\.gz)?(_[A-Z0-9]+)?$/g, "") : t.startsWith("GMGC") ? "https://gmgc.embl.de/search.cgi?search_id=" + t.replaceAll(/\.(cif|pdb)(\.gz)?/g, "") : t.startsWith("MGYP") ? "https://esmatlas.com/explore/detail/" + t.replaceAll(/\.(cif|pdb)(\.gz)?/g, "") : n.startsWith("cath") ? t.startsWith("af_") ? "https://www.cathdb.info/version/latest/superfamily/" + t.substring(t.lastIndexOf("_") + 1) : "https://www.cathdb.info/version/latest/domain/" + t : null; + } + function b(t, e) { + var n = e.toLowerCase(); + if (t.startsWith("AF-")) return t.replaceAll(/\.(cif|pdb)(\.gz)?(_[A-Z0-9]+)?$/g, ""); + if (n.startsWith("pdb") || n.startsWith("gmgc") || n.startsWith("mgyp") || n.startsWith("mgnify")) return t.replaceAll(/\.(cif|pdb)(\.gz)?/g, ""); + if (n.startsWith("cath") && t.startsWith("af_")) { + var i = t.match(/^af_([A-Z0-9]+)_(\d+)_(\d+)_(\d+\.\d+\.\d+\.\d+)$/); + if (i && 5 == i.length) return i[4] + " " + i[1] + " " + i[2] + "-" + i[3]; + } + return t; + } + function C(t) { + var e = 0, n = 0; + for (var i in t.results) { + var a = t.results[i], r = a.db; + for (var s in a.hasDescription = !1, a.hasTaxonomy = !1, null == a.alignments && e++, + n++, a.alignments) { + var o = a.alignments[s], l = o.target.split(" "); + o.target = l[0], o.description = l.slice(1).join(" "), o.description.length > 1 && (a.hasDescription = !0), + o.href = f(o.target, r), o.target = b(o.target, r), o.id = "result-" + i + "-" + s, + o.active = !1, "tmalign" != t.mode && (o.eval = "string" == typeof o.eval ? o.eval : o.eval.toExponential(2)), + o.prob = "string" == typeof o.prob ? o.prob : o.prob.toFixed(2), "tmalign" == t.mode && (o.eval = "string" == typeof o.eval ? o.eval : o.eval.toFixed(3)), + "taxId" in o && (a.hasTaxonomy = !0); + } + } + return 0 != n && e / n == 1 ? { + results: [] + } : t; + } + function y(t) { + var e, n = [], i = m(t); + try { + for (i.s(); !(e = i.n()).done; ) { + var a = e.value; + n.push(C(a)); + } + } catch (t) { + i.e(t); + } finally { + i.f(); + } + return n; + } g._withStripped = !0; - var m = "1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5".match(/.{6}/g).map((function(t) { + var M = "1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5".match(/.{6}/g).map((function(t) { return "#" + t; })); - function v(t) { + function w(t) { t = function(t) { - var n = function(t) { + var e = function(t) { return parseInt(t, 16) / 255; }; - return [ n(t.slice(1, 3)), n(t.slice(3, 5)), n(t.slice(5, 7)) ]; + return [ e(t.slice(1, 3)), e(t.slice(3, 5)), e(t.slice(5, 7)) ]; }(t); - var n = t[0], e = t[1], i = t[2], a = Math.min(n, e, i), r = Math.max(n, e, i), s = NaN, o = r - a, l = (r + a) / 2; - return o ? (s = n === r ? (e - i) / o + 6 * (e < i) : e === r ? (i - n) / o + 2 : (n - e) / o + 4, + var e = t[0], n = t[1], i = t[2], a = Math.min(e, n, i), r = Math.max(e, n, i), s = NaN, o = r - a, l = (r + a) / 2; + return o ? (s = e === r ? (n - i) / o + 6 * (n < i) : n === r ? (i - e) / o + 2 : (e - n) / o + 4, o /= l < .5 ? r + a : 2 - r - a, s *= 60) : o = l > 0 && l < 1 ? 0 : s, [ s, o, l ]; } - function f(t, n) { - var e = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"]; - if (!e) { - if (Array.isArray(t) || (e = function(t, n) { + function x(t, e) { + var n = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"]; + if (!n) { + if (Array.isArray(t) || (n = function(t, e) { if (!t) return; - if ("string" == typeof t) return b(t, n); - var e = Object.prototype.toString.call(t).slice(8, -1); - "Object" === e && t.constructor && (e = t.constructor.name); - if ("Map" === e || "Set" === e) return Array.from(t); - if ("Arguments" === e || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return b(t, n); - }(t)) || n && t && "number" == typeof t.length) { - e && (t = e); + if ("string" == typeof t) return I(t, e); + var n = Object.prototype.toString.call(t).slice(8, -1); + "Object" === n && t.constructor && (n = t.constructor.name); + if ("Map" === n || "Set" === n) return Array.from(t); + if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return I(t, e); + }(t)) || e && t && "number" == typeof t.length) { + n && (t = n); var i = 0, a = function() {}; return { s: a, @@ -372,10 +475,10 @@ var r, s = !0, o = !1; return { s: function() { - e = e.call(t); + n = n.call(t); }, n: function() { - var t = e.next(); + var t = n.next(); return s = t.done, t; }, e: function(t) { @@ -383,19 +486,19 @@ }, f: function() { try { - s || null == e.return || e.return(); + s || null == n.return || n.return(); } finally { if (o) throw r; } } }; } - function b(t, n) { - (null == n || n > t.length) && (n = t.length); - for (var e = 0, i = new Array(n); e < n; e++) i[e] = t[e]; + function I(t, e) { + (null == e || e > t.length) && (e = t.length); + for (var n = 0, i = new Array(e); n < e; n++) i[n] = t[n]; return i; } - const C = { + const S = { name: "result", data: function() { return { @@ -413,82 +516,50 @@ methods: { resetProperties: function() {}, fetchData: function() {}, - tryLinkTargetToDB: function(t, n) { - var e = n.toLowerCase(); - return e.startsWith("pfam") ? "https://pfam.xfam.org/family/" + t : e.startsWith("pdb") ? "https://www.rcsb.org/pdb/explore.do?structureId=" + t.replaceAll(/\.(cif|pdb)(\.gz)?/g, "").split("_")[0] : e.startsWith("uniclust") || e.startsWith("uniprot") || e.startsWith("sprot") || e.startsWith("swissprot") ? "https://www.uniprot.org/uniprot/" + t : e.startsWith("eggnog_") ? "http://eggnogdb.embl.de/#/app/results?target_nogs=" + t : e.startsWith("cdd") ? "https://www.ncbi.nlm.nih.gov/Structure/cdd/cddsrv.cgi?uid=" + t : t.startsWith("AF-") ? "https://www.alphafold.ebi.ac.uk/entry/" + t.replaceAll(/-F[0-9]+-model_v[0-9]+(\.(cif|pdb))?(\.gz)?(_[A-Z0-9]+)?$/g, "") : t.startsWith("GMGC") ? "https://gmgc.embl.de/search.cgi?search_id=" + t.replaceAll(/\.(cif|pdb)(\.gz)?/g, "") : t.startsWith("MGYP") ? "https://esmatlas.com/explore/detail/" + t.replaceAll(/\.(cif|pdb)(\.gz)?/g, "") : e.startsWith("cath") ? t.startsWith("af_") ? "https://www.cathdb.info/version/latest/superfamily/" + t.substring(t.lastIndexOf("_") + 1) : "https://www.cathdb.info/version/latest/domain/" + t : null; - }, - tryFixTargetName: function(t, n) { - var e = n.toLowerCase(); - if (t.startsWith("AF-")) return t.replaceAll(/\.(cif|pdb)(\.gz)?(_[A-Z0-9]+)?$/g, ""); - if (e.startsWith("pdb") || e.startsWith("gmgc") || e.startsWith("mgyp") || e.startsWith("mgnify")) return t.replaceAll(/\.(cif|pdb)(\.gz)?/g, ""); - if (e.startsWith("cath") && t.startsWith("af_")) { - var i = t.match(/^af_([A-Z0-9]+)_(\d+)_(\d+)_(\d+\.\d+\.\d+\.\d+)$/); - if (i && 5 == i.length) return i[4] + " " + i[1] + " " + i[2] + "-" + i[3]; - } - return t; - }, setColorScheme: function() { if (this.hits) { - var t, n, e, i, a, r, s, o, l, A = (t = [], n = 1, function(e) { - var i = e + "", a = t[i]; - return a || (a = t[i] = n++), m[(a - 1) % m.length]; - }), c = f(this.currentResult.results); + var t, e, n, i, a, r, s, o, l, c = (t = [], e = 1, function(n) { + var i = n + "", a = t[i]; + return a || (a = t[i] = e++), M[(a - 1) % M.length]; + }), A = x(this.currentResult.results); try { - for (c.s(); !(e = c.n()).done; ) { - var d = e.value; - d.color = A(d.db); - var u, h = v(d.color), p = { + for (A.s(); !(n = A.n()).done; ) { + var d = n.value; + d.color = c(d.db ? d.db : 0); + var u, h = w(d.color), p = { score: Number.MIN_VALUE }, g = { score: Number.MAX_VALUE - }, b = f(d.alignments); + }, m = x(d.alignments); try { - for (b.s(); !(u = b.n()).done; ) { - var C = u.value; - for (var M in g) g[M] = C[M] < g[M] ? C[M] : g[M], p[M] = C[M] > p[M] ? C[M] : p[M]; + for (m.s(); !(u = m.n()).done; ) { + var v = u.value; + for (var f in g) g[f] = v[f] < g[f] ? v[f] : g[f], p[f] = v[f] > p[f] ? v[f] : p[f]; } } catch (t) { - b.e(t); + m.e(t); } finally { - b.f(); + m.f(); } - var y, w = f(d.alignments); + var b, C = x(d.alignments); try { - for (w.s(); !(y = w.n()).done; ) { - var x = y.value, I = (s = g.score / p.score, o = 1, l = x.score / p.score, s * (1 - l) + o * l), S = (i = h[2] * Math.pow(.55, -(1 - I)), + for (C.s(); !(b = C.n()).done; ) { + var y = b.value, I = (s = g.score / p.score, o = 1, l = y.score / p.score, s * (1 - l) + o * l), S = (i = h[2] * Math.pow(.55, -(1 - I)), a = .1, r = .9, Math.max(a, Math.min(r, i))); - x.color = "hsl(".concat(h[0], ", ").concat(100 * h[1], "%, ").concat(100 * S, "%)"); + y.color = "hsl(".concat(h[0], ", ").concat(100 * h[1], "%, ").concat(100 * S, "%)"); } } catch (t) { - w.e(t); + C.e(t); } finally { - w.f(); + C.f(); } } } catch (t) { - c.e(t); + A.e(t); } finally { - c.f(); - } - } - }, - parseResults: function(t) { - var n = 0, e = 0; - for (var i in t.results) { - var a = t.results[i], r = a.db; - for (var s in a.hasDescription = !1, a.hasTaxonomy = !1, null == a.alignments && n++, - e++, a.alignments) { - var o = a.alignments[s], l = o.target.split(" "); - o.target = l[0], o.description = l.slice(1).join(" "), o.description.length > 1 && (a.hasDescription = !0), - o.href = this.tryLinkTargetToDB(o.target, r), o.target = this.tryFixTargetName(o.target, r), - o.id = "result-" + i + "-" + s, o.active = !1, "tmalign" != this.mode && (o.eval = "string" == typeof o.eval ? o.eval : o.eval.toExponential(2)), - o.prob = "string" == typeof o.prob ? o.prob : o.prob.toFixed(2), "tmalign" == this.mode && (o.eval = "string" == typeof o.eval ? o.eval : o.eval.toFixed(3)), - "taxId" in o && (a.hasTaxonomy = !0); + A.f(); } } - return 0 != e && n / e == 1 ? { - results: [] - } : t; } }, watch: { @@ -497,11 +568,11 @@ } } }; - var M = e(1900), y = (0, M.Z)(C, undefined, undefined, !1, null, null, null); - y.options.__file = "frontend/ResultMixin.vue"; - const w = y.exports; - var x = function() { - var t = this, n = t.$createElement, i = t._self._c || n; + var T = n(1900), N = (0, T.Z)(S, undefined, undefined, !1, null, null, null); + N.options.__file = "frontend/ResultMixin.vue"; + const L = N.exports; + var D = function() { + var t = this, e = t.$createElement, i = t._self._c || e; return i("v-container", { attrs: { "grid-list-md": "", @@ -549,8 +620,8 @@ "max-width": "100%" }, attrs: { - src: e(4833), - srcset: e(4833) + " 2x, " + e(5904) + " 3x" + src: n(4833), + srcset: n(4833) + " 2x, " + n(5904) + " 3x" } }) ]), t._v(" "), i("v-flex", { attrs: { @@ -583,8 +654,8 @@ "max-width": "100%" }, attrs: { - src: e(7969), - srcset: e(7969) + " 2x, " + e(5515) + " 3x" + src: n(7969), + srcset: n(7969) + " 2x, " + n(5515) + " 3x" } }) ]), t._v(" "), i("v-flex", { attrs: { @@ -617,8 +688,8 @@ "max-width": "100%" }, attrs: { - src: e(4484), - srcset: e(4484) + " 2x, " + e(7940) + " 3x" + src: n(4484), + srcset: n(4484) + " 2x, " + n(7940) + " 3x" } }) ]), t._v(" "), i("v-flex", { attrs: { @@ -637,24 +708,24 @@ "show-arrows": "" }, on: { - change: function(n) { + change: function(e) { return t.closeAlignment(); } }, model: { value: t.selectedDatabases, - callback: function(n) { - t.selectedDatabases = n; + callback: function(e) { + t.selectedDatabases = e; }, expression: "selectedDatabases" } - }, [ i("v-tab", [ t._v("All databases") ]), t._v(" "), t._l(t.hits.results, (function(n) { + }, [ i("v-tab", [ t._v("All databases") ]), t._v(" "), t._l(t.hits.results, (function(e) { return i("v-tab", { - key: n.db - }, [ t._v(t._s(n.db) + " (" + t._s(n.alignments ? n.alignments.length : 0) + ")") ]); - })) ], 2) : t._e(), t._v(" "), t._l(t.hits.results, (function(n, e) { - return 0 == t.selectedDatabases || e + 1 == t.selectedDatabases ? i("div", { - key: n.db + key: e.db + }, [ t._v(t._s(e.db) + " (" + t._s(e.alignments ? e.alignments.length : 0) + ")") ]); + })) ], 2) : t._e(), t._v(" "), t._l(t.hits.results, (function(e, n) { + return 0 == t.selectedDatabases || n + 1 == t.selectedDatabases ? i("div", { + key: e.db }, [ i("v-flex", { staticClass: "d-flex", style: { @@ -670,15 +741,15 @@ staticStyle: { "text-transform": "uppercase" } - }, [ t._v(t._s(n.db)) ]), t._v(" "), i("small", [ t._v(t._s(n.alignments ? n.alignments.length : 0) + " hits") ]) ]), t._v(" "), i("v-btn-toggle", { + }, [ t._v(t._s(e.db)) ]), t._v(" "), i("small", [ t._v(t._s(e.alignments ? e.alignments.length : 0) + " hits") ]) ]), t._v(" "), i("v-btn-toggle", { staticClass: "ml-auto", attrs: { mandatory: "" }, model: { value: t.tableMode, - callback: function(n) { - t.tableMode = n; + callback: function(e) { + t.tableMode = e; }, expression: "tableMode" } @@ -689,8 +760,8 @@ "margin-bottom": "3em" } }, [ i("thead", [ i("tr", [ i("th", { - class: "wide-" + (3 - n.hasDescription - n.hasTaxonomy) - }, [ t._v("Target") ]), t._v(" "), n.hasDescription ? i("th", { + class: "wide-" + (3 - e.hasDescription - e.hasTaxonomy) + }, [ t._v("Target") ]), t._v(" "), e.hasDescription ? i("th", { staticClass: "wide-1" }, [ t._v("\n Description\n "), i("v-tooltip", { attrs: { @@ -699,17 +770,17 @@ }, scopedSlots: t._u([ { key: "activator", - fn: function(n) { - var e = n.on; + fn: function(e) { + var n = e.on; return [ i("v-icon", t._g({ staticStyle: { "font-size": "16px", float: "right" } - }, e), [ t._v(t._s(t.$MDI.HelpCircleOutline)) ]) ]; + }, n), [ t._v(t._s(t.$MDI.HelpCircleOutline)) ]) ]; } } ], null, !0) - }, [ t._v(" "), i("span", [ t._v("Triple click to select whole cell (for very long identifiers)") ]) ]) ], 1) : t._e(), t._v(" "), n.hasTaxonomy ? i("th", { + }, [ t._v(" "), i("span", [ t._v("Triple click to select whole cell (for very long identifiers)") ]) ]) ], 1) : t._e(), t._v(" "), e.hasTaxonomy ? i("th", { staticClass: "wide-1" }, [ t._v("Scientific Name") ]) : t._e(), t._v(" "), i("th", { staticClass: "thin" @@ -726,27 +797,27 @@ }, scopedSlots: t._u([ { key: "activator", - fn: function(n) { - var e = n.on; + fn: function(e) { + var n = e.on; return [ i("v-icon", t._g({ staticStyle: { "font-size": "16px", float: "right" } - }, e), [ t._v(t._s(t.$MDI.HelpCircleOutline)) ]) ]; + }, n), [ t._v(t._s(t.$MDI.HelpCircleOutline)) ]) ]; } } ], null, !0) }, [ t._v(" "), i("span", [ t._v("The position of the aligned region of the target sequence in the query") ]) ]) ], 1) : t._e(), t._v(" "), i("th", { staticClass: "alignment-action thin" - }, [ t._v("Alignment") ]) ]) ]), t._v(" "), i("tbody", t._l(n.alignments, (function(e, a) { + }, [ t._v("Alignment") ]) ]) ]), t._v(" "), i("tbody", t._l(e.alignments, (function(n, a) { return i("tr", { - key: e.target + a, + key: n.target + a, class: [ "hit", { - active: e.active + active: n.active } ] }, [ i("td", { staticClass: "long db", - style: "border-color: " + n.color, + style: "border-color: " + e.color, attrs: { "data-label": "Target" } @@ -757,77 +828,77 @@ top: "0" }, attrs: { - id: e.id + id: n.id } }), t._v(" "), i("a", { attrs: { - href: e.href, + href: n.href, target: "_blank", rel: "noopener", - title: e.target + title: n.target } - }, [ t._v(t._s(e.target)) ]) ]), t._v(" "), n.hasDescription ? i("td", { + }, [ t._v(t._s(n.target)) ]) ]), t._v(" "), e.hasDescription ? i("td", { staticClass: "long", attrs: { "data-label": "Description" } }, [ i("span", { attrs: { - title: e.description + title: n.description } - }, [ t._v(t._s(e.description)) ]) ]) : t._e(), t._v(" "), n.hasTaxonomy ? i("td", { + }, [ t._v(t._s(n.description)) ]) ]) : t._e(), t._v(" "), e.hasTaxonomy ? i("td", { staticClass: "long", attrs: { "data-label": "Taxonomy" } }, [ i("a", { attrs: { - href: "https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=" + e.taxId, + href: "https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=" + n.taxId, target: "_blank", rel: "noopener", - title: e.taxName + title: n.taxName } - }, [ t._v(t._s(e.taxName)) ]) ]) : t._e(), t._v(" "), i("td", { + }, [ t._v(t._s(n.taxName)) ]) ]) : t._e(), t._v(" "), i("td", { staticClass: "thin", attrs: { "data-label": "Probability" } - }, [ t._v(t._s(e.prob)) ]), t._v(" "), i("td", { + }, [ t._v(t._s(n.prob)) ]), t._v(" "), i("td", { staticClass: "thin", attrs: { "data-label": "Sequence Identity" } - }, [ t._v(t._s(e.seqId)) ]), t._v(" "), i("td", { + }, [ t._v(t._s(n.seqId)) ]), t._v(" "), i("td", { staticClass: "thin", attrs: { "data-label": "foldseek" == t.$APP && "tmalign" == t.mode ? "TM-score" : "E-Value" } - }, [ t._v(t._s(e.eval)) ]), t._v(" "), 1 == t.tableMode ? i("td", { + }, [ t._v(t._s(n.eval)) ]), t._v(" "), 1 == t.tableMode ? i("td", { staticClass: "thin", attrs: { "data-label": "Score" } - }, [ t._v(t._s(e.score)) ]) : t._e(), t._v(" "), 1 == t.tableMode ? i("td", { + }, [ t._v(t._s(n.score)) ]) : t._e(), t._v(" "), 1 == t.tableMode ? i("td", { staticClass: "thin", attrs: { "data-label": "Query Position" } - }, [ t._v(t._s(e.qStartPos) + "-" + t._s(e.qEndPos) + " (" + t._s(e.qLen) + ")") ]) : t._e(), t._v(" "), 1 == t.tableMode ? i("td", { + }, [ t._v(t._s(n.qStartPos) + "-" + t._s(n.qEndPos) + " (" + t._s(n.qLen) + ")") ]) : t._e(), t._v(" "), 1 == t.tableMode ? i("td", { staticClass: "thin", attrs: { "data-label": "Target Position" } - }, [ t._v(t._s(e.dbStartPos) + "-" + t._s(e.dbEndPos) + " (" + t._s(e.dbLen) + ")") ]) : t._e(), t._v(" "), 0 == t.tableMode ? i("td", { + }, [ t._v(t._s(n.dbStartPos) + "-" + t._s(n.dbEndPos) + " (" + t._s(n.dbLen) + ")") ]) : t._e(), t._v(" "), 0 == t.tableMode ? i("td", { staticClass: "graphical", attrs: { "data-label": "Position" } }, [ i("Ruler", { attrs: { - length: e.qLen, - start: e.qStartPos, - end: e.qEndPos, - color: e.color, + length: n.qLen, + start: n.qStartPos, + end: n.qEndPos, + color: n.color, label: 0 == a } }) ], 1) : t._e(), t._v(" "), i("td", { @@ -835,15 +906,15 @@ }, [ i("button", { staticClass: "v-btn v-btn--icon v-btn--round v-btn--text v-size--default", class: { - "v-btn--outlined": t.alignment && e.target == t.alignment.target, + "v-btn--outlined": t.alignment && n.target == t.alignment.target, "theme--dark": t.$vuetify.theme.dark }, attrs: { type: "button" }, on: { - click: function(n) { - return t.showAlignment(e, n); + click: function(e) { + return t.showAlignment(n, e); } } }, [ i("span", { @@ -881,16 +952,16 @@ slot: "content" }) ], 1) : t._e() ], 1) ], 1); }; - x._withStripped = !0; - var I = e(917), S = function() { - var t = this, n = t.$createElement, e = t._self._c || n; - return e("div", { + D._withStripped = !0; + var E = n(917), O = function() { + var t = this, e = t.$createElement, n = t._self._c || e; + return n("div", { staticClass: "alignment-wrapper-outer", attrs: { slot: "content" }, slot: "content" - }, [ e("Alignment", { + }, [ n("Alignment", { key: "aln2-" + t.alignment.id, attrs: { alignment: t.alignment, @@ -901,9 +972,9 @@ on: { selected: t.setUserSelection } - }), t._v(" "), "foldseek" == t.$APP ? e("div", { + }), t._v(" "), "foldseek" == t.$APP ? n("div", { staticClass: "alignment-structure-wrapper" - }, [ e("StructureViewer", { + }, [ n("StructureViewer", { key: "struc2-" + t.alignment.id, ref: "structureViewer", attrs: { @@ -920,38 +991,38 @@ } }) ], 1) : t._e() ], 1); }; - S._withStripped = !0; - var T = e(8152), N = function() { - var t = this, n = t.$createElement, e = t._self._c || n; - return e("div", { + O._withStripped = !0; + var R = n(8152), k = function() { + var t = this, e = t.$createElement, n = t._self._c || e; + return n("div", { staticClass: "alignment-wrapper-inner" - }, [ t._l(Math.max(1, Math.ceil(t.alignment.alnLength / t.lineLen)), (function(n) { - return e("span", { - key: n, + }, [ t._l(Math.max(1, Math.ceil(t.alignment.alnLength / t.lineLen)), (function(e) { + return n("span", { + key: e, staticClass: "monospace" - }, [ e("span", { + }, [ n("span", { staticClass: "line" - }, [ t._v("\n Q " + t._s(t.padNumber(t.getQueryRowStartPos(n), (Math.max(t.alignment.qStartPos, t.alignment.dbStartPos) + t.alignment.alnLength + "").length, " ")) + " "), e("span", { + }, [ t._v("\n Q " + t._s(t.padNumber(t.getQueryRowStartPos(e), (Math.max(t.alignment.qStartPos, t.alignment.dbStartPos) + t.alignment.alnLength + "").length, " ")) + " "), n("span", { staticClass: "residues" - }, [ t._v(t._s(t.alignment.qAln.substring((n - 1) * t.lineLen, (n - 1) * t.lineLen + t.lineLen))) ]), t._v(" "), e("br"), t._v("\n " + t._s(" ".repeat(3 + (Math.max(t.alignment.qStartPos, t.alignment.dbStartPos) + t.alignment.alnLength + "").length))), e("span", { + }, [ t._v(t._s(t.alignment.qAln.substring((e - 1) * t.lineLen, (e - 1) * t.lineLen + t.lineLen))) ]), t._v(" "), n("br"), t._v("\n " + t._s(" ".repeat(3 + (Math.max(t.alignment.qStartPos, t.alignment.dbStartPos) + t.alignment.alnLength + "").length))), n("span", { staticClass: "residues" - }, [ t._v(t._s(t.formatAlnDiff(t.alignment.qAln.substring((n - 1) * t.lineLen, (n - 1) * t.lineLen + t.lineLen), t.alignment.dbAln.substring((n - 1) * t.lineLen, (n - 1) * t.lineLen + t.lineLen)))) ]), t._v(" "), e("br"), t._v("\n T " + t._s(t.padNumber(t.getTargetRowStartPos(n), (Math.max(t.alignment.qStartPos, t.alignment.dbStartPos) + t.alignment.alnLength + "").length, " ")) + " "), e("span", { + }, [ t._v(t._s(t.formatAlnDiff(t.alignment.qAln.substring((e - 1) * t.lineLen, (e - 1) * t.lineLen + t.lineLen), t.alignment.dbAln.substring((e - 1) * t.lineLen, (e - 1) * t.lineLen + t.lineLen)))) ]), t._v(" "), n("br"), t._v("\n T " + t._s(t.padNumber(t.getTargetRowStartPos(e), (Math.max(t.alignment.qStartPos, t.alignment.dbStartPos) + t.alignment.alnLength + "").length, " ")) + " "), n("span", { staticClass: "residues", on: { - pointerup: function(e) { - return t.onSelectText(n); + pointerup: function(n) { + return t.onSelectText(e); } } - }, [ t._v(t._s(t.alignment.dbAln.substring((n - 1) * t.lineLen, (n - 1) * t.lineLen + t.lineLen))) ]) ]), e("br") ]); - })), t._v(" "), "foldseek" == t.$APP ? e("small", { + }, [ t._v(t._s(t.alignment.dbAln.substring((e - 1) * t.lineLen, (e - 1) * t.lineLen + t.lineLen))) ]) ]), n("br") ]); + })), t._v(" "), "foldseek" == t.$APP ? n("small", { staticStyle: { float: "right" } }, [ t._v("Select target residues to highlight their structure") ]) : t._e() ], 2); }; - N._withStripped = !0; - var L = [ "AG", "AS", "DE", "DN", "ED", "EK", "EQ", "FL", "FM", "FW", "FY", "GA", "HN", "HQ", "HY", "IL", "IM", "IV", "KE", "KQ", "KR", "LF", "LI", "LM", "LV", "MF", "MI", "ML", "MV", "ND", "NH", "NQ", "NS", "QE", "QH", "QK", "QN", "QR", "RK", "RQ", "SA", "SN", "ST", "TS", "VI", "VL", "VM", "WF", "WY", "YF", "YH", "YW" ]; - const E = { + k._withStripped = !0; + var B = [ "AG", "AS", "DE", "DN", "ED", "EK", "EQ", "FL", "FM", "FW", "FY", "GA", "HN", "HQ", "HY", "IL", "IM", "IV", "KE", "KQ", "KR", "LF", "LI", "LM", "LV", "MF", "MI", "ML", "MV", "ND", "NH", "NQ", "NS", "QE", "QH", "QK", "QN", "QR", "RK", "RQ", "SA", "SN", "ST", "TS", "VI", "VL", "VM", "WF", "WY", "YF", "YH", "YW" ]; + const P = { props: [ "alignment", "lineLen", "queryMap", "targetMap" ], methods: { getQueryIndex: function(t) { @@ -960,9 +1031,9 @@ getTargetIndex: function(t) { return this.targetMap[t]; }, - getFirstResidueNumber: function(t, n) { - for (var e = this.lineLen * (n - 1); null === t[e]; ) e--; - return t[e]; + getFirstResidueNumber: function(t, e) { + for (var n = this.lineLen * (e - 1); null === t[n]; ) n--; + return t[n]; }, getQueryRowStartPos: function(t) { return this.getFirstResidueNumber(this.queryMap, t); @@ -970,42 +1041,42 @@ getTargetRowStartPos: function(t) { return this.getFirstResidueNumber(this.targetMap, t); }, - formatAlnDiff: function(t, n) { - if (t.length != n.length) return ""; - for (var e = "", i = 0; i < t.length; i++) t[i] == n[i] ? e += t[i] : -1 != L.indexOf(t[i] + n[i]) ? e += "+" : e += " "; - return e; + formatAlnDiff: function(t, e) { + if (t.length != e.length) return ""; + for (var n = "", i = 0; i < t.length; i++) t[i] == e[i] ? n += t[i] : -1 != B.indexOf(t[i] + e[i]) ? n += "+" : n += " "; + return n; }, - padNumber: function(t, n, e) { - return Array(n - String(t).length + 1).join(e || "0") + t; + padNumber: function(t, e, n) { + return Array(e - String(t).length + 1).join(n || "0") + t; }, onSelectText: function(t) { - var n = window.getSelection(), e = [ n.anchorOffset, n.focusOffset ].sort((function(t, n) { - return t - n; - })), i = (0, T.Z)(e, 2), a = i[0], r = i[1] - a, s = (t - 1) * this.lineLen + a, o = s + r - 1, l = function(t, n, e) { - for (var i = null, a = null, r = n; r <= e; r++) { + var e = window.getSelection(), n = [ e.anchorOffset, e.focusOffset ].sort((function(t, e) { + return t - e; + })), i = (0, R.Z)(n, 2), a = i[0], r = i[1] - a, s = (t - 1) * this.lineLen + a, o = s + r - 1, l = function(t, e, n) { + for (var i = null, a = null, r = e; r <= n; r++) { var s = t[r]; null !== s && (null === i && (i = s), a = s); } return [ i, a ]; - }(this.targetMap, s, o), A = (0, T.Z)(l, 2), c = A[0], d = A[1]; - this.$emit("selected", [ c, d ]); + }(this.targetMap, s, o), c = (0, R.Z)(l, 2), A = c[0], d = c[1]; + this.$emit("selected", [ A, d ]); } } }; - e(603); - var D = (0, M.Z)(E, N, [], !1, null, null, null); - D.options.__file = "frontend/Alignment.vue"; - function O(t, n) { - for (var e = Array(n.length), i = 0, a = 0; i < n.length; i++) "-" === n[i] ? (e[i] = null, - a++) : e[i] = t + i - a; - return e; + n(603); + var q = (0, T.Z)(P, k, [], !1, null, null, null); + q.options.__file = "frontend/Alignment.vue"; + function z(t, e) { + for (var n = Array(e.length), i = 0, a = 0; i < e.length; i++) "-" === e[i] ? (n[i] = null, + a++) : n[i] = t + i - a; + return n; } - const R = { + const Z = { components: { StructureViewer: function() { - return Promise.resolve().then(e.bind(e, 8992)); + return n.e(736).then(n.bind(n, 8992)); }, - Alignment: D.exports + Alignment: q.exports }, data: function() { return { @@ -1028,12 +1099,12 @@ }, methods: { setUserSelection: function(t) { - var n = (0, T.Z)(t, 2), e = n[0], i = n[1]; - this.alignment && this.$refs.structureViewer.setSelectionData(e, i); + var e = (0, R.Z)(t, 2), n = e[0], i = e[1]; + this.alignment && this.$refs.structureViewer.setSelectionData(n, i); }, updateMaps: function() { - this.alignment && (this.queryMap = O(this.alignment.qStartPos, this.alignment.qAln), - this.targetMap = O(this.alignment.dbStartPos, this.alignment.dbAln)); + this.alignment && (this.queryMap = z(this.alignment.qStartPos, this.alignment.qAln), + this.targetMap = z(this.alignment.dbStartPos, this.alignment.dbAln)); } }, watch: { @@ -1045,15 +1116,15 @@ this.updateMaps(); } }; - e(2530); - var k = (0, M.Z)(R, S, [], !1, null, null, null); - k.options.__file = "frontend/AlignmentPanel.vue"; - const B = k.exports; - var P = function() { - var t = this, n = t.$createElement, e = t._self._c || n; - return e("div", { + n(2530); + var _ = (0, T.Z)(Z, O, [], !1, null, null, null); + _.options.__file = "frontend/AlignmentPanel.vue"; + const U = _.exports; + var j = function() { + var t = this, e = t.$createElement, n = t._self._c || e; + return n("div", { staticClass: "ruler" - }, [ e("div", { + }, [ n("div", { staticClass: "query", class: { reversed: t.reversed @@ -1062,27 +1133,27 @@ left: t.queryLeft + "%", right: t.queryRight + "%" } - }, [ e("div", { + }, [ n("div", { staticClass: "chevron-start", style: { "background-color": t.color } - }), t._v(" "), e("div", { + }), t._v(" "), n("div", { staticClass: "chevron-mid", style: { "background-color": t.color } - }), t._v(" "), e("div", { + }), t._v(" "), n("div", { staticClass: "chevron-end", style: { "background-color": t.color } - }) ]), t._v(" "), e("div", { + }) ]), t._v(" "), n("div", { staticClass: "tick-label", style: { left: t.queryLeft + "%" } - }, [ t._v(t._s(t.minStart)) ]), t._v(" "), e("div", { + }, [ t._v(t._s(t.minStart)) ]), t._v(" "), n("div", { staticClass: "tick-label", style: { right: t.queryRight + "%", @@ -1091,8 +1162,8 @@ } }, [ t._v(t._s(t.maxEnd)) ]) ]); }; - P._withStripped = !0; - const z = { + j._withStripped = !0; + const G = { props: { length: Number, start: Number, @@ -1127,35 +1198,35 @@ var t = this; return Array.from({ length: this.numTicks + 1 - }, (function(n, e) { - return e / t.numTicks * 100; + }, (function(e, n) { + return n / t.numTicks * 100; })); } } }; - e(5941); - var Z = (0, M.Z)(z, P, [], !1, null, "2b7861b2", null); - Z.options.__file = "frontend/Ruler.vue"; - const _ = Z.exports; - function U(t, n, e) { + n(5941); + var Q = (0, T.Z)(G, j, [], !1, null, "2b7861b2", null); + Q.options.__file = "frontend/Ruler.vue"; + const V = Q.exports; + function F(t, e, n) { var i; return function() { - var a = this, r = arguments, s = e && !i; + var a = this, r = arguments, s = n && !i; clearTimeout(i), i = setTimeout((function() { - i = null, e || t.apply(a, r); - }), n), s && t.apply(a, r); + i = null, n || t.apply(a, r); + }), e), s && t.apply(a, r); }; } - function j(t) { - for (var n = 0; t; ) n += t.offsetTop, t = t.offsetParent; - return n; + function H(t) { + for (var e = 0; t; ) e += t.offsetTop, t = t.offsetParent; + return e; } - const q = { + const Y = { name: "result", components: { - Panel: I.Z, - AlignmentPanel: B, - Ruler: _ + Panel: E.Z, + AlignmentPanel: U, + Ruler: V }, data: function() { return { @@ -1196,35 +1267,35 @@ } }, methods: { - showAlignment: function(t, n) { - this.alignment === t ? this.closeAlignment() : (this.alignment = t, this.activeTarget = n.target.closest(".hit"), - this.alnBoxOffset = j(this.activeTarget) + this.activeTarget.offsetHeight); + showAlignment: function(t, e) { + this.alignment === t ? this.closeAlignment() : (this.alignment = t, this.activeTarget = e.target.closest(".hit"), + this.alnBoxOffset = H(this.activeTarget) + this.activeTarget.offsetHeight); }, closeAlignment: function() { this.alignment = null, this.activeTarget = null; }, - handleAlignmentBoxResize: U((function() { - null != this.activeTarget && (this.alnBoxOffset = j(this.activeTarget) + this.activeTarget.offsetHeight); + handleAlignmentBoxResize: F((function() { + null != this.activeTarget && (this.alnBoxOffset = H(this.activeTarget) + this.activeTarget.offsetHeight); }), 32, !1) } }; - e(5264); - var G = e(3453), Q = e.n(G), V = e(5934), F = e(6584), H = e(6530), Y = e(683), W = e(4786), J = e(9456), K = e(756), X = e(7849), $ = e(1562), tt = (0, - M.Z)(q, x, [], !1, null, null, null); - Q()(tt, { - VBtn: V.Z, - VBtnToggle: F.Z, - VContainer: H.Z, - VFlex: Y.Z, - VIcon: W.Z, - VLayout: J.Z, - VTab: K.Z, - VTabs: X.Z, - VTooltip: $.Z - }), tt.options.__file = "frontend/ResultView.vue"; - const nt = tt.exports; - var et = function() { - var t = this, n = t.$createElement, i = t._self._c || n; + n(5264); + var J = n(3453), W = n.n(J), K = n(5934), X = n(6584), $ = n(6530), tt = n(683), et = n(4786), nt = n(9456), it = n(756), at = n(7849), rt = n(1562), st = (0, + T.Z)(Y, D, [], !1, null, null, null); + W()(st, { + VBtn: K.Z, + VBtnToggle: X.Z, + VContainer: $.Z, + VFlex: tt.Z, + VIcon: et.Z, + VLayout: nt.Z, + VTab: it.Z, + VTabs: at.Z, + VTooltip: rt.Z + }), st.options.__file = "frontend/ResultView.vue"; + const ot = st.exports; + var lt = function() { + var t = this, e = t.$createElement, i = t._self._c || e; return i("div", [ t.$LOCAL ? t._e() : i("v-navigation-drawer", { ref: "drawer", attrs: { @@ -1239,7 +1310,38 @@ attrs: { to: "/search" } - }, [ i("v-list-item-action", [ i("v-icon", [ t._v(t._s(t.$MDI.Magnify)) ]) ], 1), t._v(" "), i("v-list-item-content", [ i("v-list-item-title", [ t._v("Search") ]) ], 1) ], 1), t._v(" "), i("v-list-item", [ i("v-list-item-action", [ i("v-icon", [ t._v(t._s(t.$MDI.Upload)) ]) ], 1), t._v(" "), i("v-list-item-content", [ i("v-list-item-title", [ t._v("Upload JSON") ]) ], 1) ], 1), t._v(" "), i("router-view", { + }, [ i("v-list-item-action", [ i("v-icon", [ t._v(t._s(t.$MDI.Magnify)) ]) ], 1), t._v(" "), i("v-list-item-content", [ i("v-list-item-title", [ t._v("Search") ]) ], 1) ], 1), t._v(" "), "result" === t.$route.name ? i("v-list-group", { + model: { + value: t.expanded, + callback: function(e) { + t.expanded = e; + }, + expression: "expanded" + } + }, [ i("template", { + slot: "activator" + }, [ i("v-list-item-action", [ i("v-icon", [ t._v(t._s(t.$MDI.FileDownloadOutline)) ]) ], 1), t._v(" "), i("v-list-item-content", [ i("v-list-item-title", [ t._v("Downloads") ]) ], 1) ], 1), t._v(" "), this.mini ? t._e() : [ i("v-list-item", { + attrs: { + href: t.$ELECTRON ? null : t.url("api/result/download/" + t.$route.params.ticket), + target: t.$ELECTRON ? null : "_blank", + title: "Download hit tables (M8 files)" + }, + on: { + click: function(e) { + t.$ELECTRON && t.electronDownload(t.$route.params.ticket); + } + } + }, [ i("v-list-item-action", [ i("v-icon", [ t._v(t._s(t.$ELECTRON ? t.$MDI.FileDownloadOutline : t.$MDI.TableLarge)) ]) ], 1), t._v(" "), i("v-list-item-content", [ i("v-list-item-title", [ t._v("Hit tables") ]), t._v(" "), i("v-list-item-subtitle", [ t._v("Archive of M8 files") ]) ], 1) ], 1), t._v(" "), i("v-list-item", { + staticStyle: { + "padding-left": "16px" + }, + attrs: { + title: "Download all result data (JSON file)" + }, + on: { + click: t.downloadJSON + } + }, [ i("v-list-item-action", [ i("v-icon", [ t._v(t._s(t.$MDI.ApplicationBracesOutline)) ]) ], 1), t._v(" "), i("v-list-item-content", [ i("v-list-item-title", [ t._v("All data") ]), t._v(" "), i("v-list-item-subtitle", [ t._v("Reloadable JSON file") ]) ], 1) ], 1) ] ], 2) : t._e(), t._v(" "), i("v-divider"), t._v(" "), i("router-view", { attrs: { name: "sidebar" } @@ -1260,7 +1362,7 @@ "clipped-left": "" }, nativeOn: { - dblclick: function(n) { + dblclick: function(e) { return t.electronHandleTitleBarDoubleClick(); } } @@ -1269,8 +1371,8 @@ "input-value": t.mini ? void 0 : "activated" }, on: { - click: function(n) { - return n.stopPropagation(), t.toggleMini.apply(null, arguments); + click: function(e) { + return e.stopPropagation(), t.toggleMini.apply(null, arguments); } } }), t._v(" "), i("v-app-bar-title", [ t.$LOCAL ? t._e() : i("router-link", { @@ -1291,7 +1393,7 @@ }, attrs: { type: "image/svg+xml", - data: e(2881), + data: n(2881), "aria-hidden": "true" } }, [ i("img", { @@ -1299,7 +1401,7 @@ "max-width": "100%" }, attrs: { - src: e(7018) + src: n(7018) } }) ]) : t._e(), t._v(" "), "foldseek" == t.$APP ? i("img", { staticStyle: { @@ -1310,94 +1412,94 @@ "vertical-align": "middle" }, attrs: { - src: e(6617), + src: n(6617), "aria-hidden": "true" } }) : t._e(), t._v(" "), i("v-spacer"), t._v(" "), t.$ELECTRON ? t._e() : t._m(0) ], 1) ], 1); }; - et._withStripped = !0; - var it = function() { - var t = this, n = t.$createElement, e = t._self._c || n; - return t.items && t.items.length > 0 ? e("v-list-group", { + lt._withStripped = !0; + var ct = n(4097), At = n.n(ct), dt = function() { + var t = this, e = t.$createElement, n = t._self._c || e; + return t.items && t.items.length > 0 ? n("v-list-group", { attrs: { "no-action": "", "prepend-icon": t.$MDI.History }, model: { value: t.drawer, - callback: function(n) { - t.drawer = n; + callback: function(e) { + t.drawer = e; }, expression: "drawer" } - }, [ e("template", { + }, [ n("template", { slot: "activator" - }, [ e("v-list-item-content", [ e("v-list-item-title", [ t._v("\n History\n ") ]), t._v(" "), t.drawer ? e("v-list-item-subtitle", { + }, [ n("v-list-item-content", [ n("v-list-item-title", [ t._v("\n History\n ") ]), t._v(" "), t.drawer ? n("v-list-item-subtitle", { staticClass: "ml-n1", on: { click: function(t) { t.preventDefault(); } } - }, [ e("button", { + }, [ n("button", { style: { opacity: 0 == t.page ? .6 : 1 }, on: { - click: function(n) { - return n.preventDefault(), t.previous(); + click: function(e) { + return e.preventDefault(), t.previous(); } } - }, [ e("v-icon", { + }, [ n("v-icon", { staticStyle: { transform: "inherit" } - }, [ t._v(t._s(t.$MDI.ChevronLeft)) ]) ], 1), t._v(" "), e("button", { + }, [ t._v(t._s(t.$MDI.ChevronLeft)) ]) ], 1), t._v(" "), n("button", { style: { opacity: (t.page + 1) * t.limit >= t.items.length ? .6 : 1 }, on: { - click: function(n) { - return n.preventDefault(), t.next(); + click: function(e) { + return e.preventDefault(), t.next(); } } - }, [ e("v-icon", { + }, [ n("v-icon", { staticStyle: { transform: "inherit" } - }, [ t._v(t._s(t.$MDI.ChevronRight)) ]) ], 1) ]) : t._e() ], 1) ], 1), t._v(" "), t._l(t.items.slice(t.page * t.limit, (t.page + 1) * t.limit), (function(n, i) { - return e("v-list-item", { + }, [ t._v(t._s(t.$MDI.ChevronRight)) ]) ], 1) ]) : t._e() ], 1) ], 1), t._v(" "), t._l(t.items.slice(t.page * t.limit, (t.page + 1) * t.limit), (function(e, i) { + return n("v-list-item", { key: i, class: { - "list__item--highlighted": n.id == t.current + "list__item--highlighted": e.id == t.current }, staticStyle: { "padding-left": "16px" }, attrs: { - to: t.formattedRoute(n) + to: t.formattedRoute(e) } - }, [ e("v-list-item-icon", [ "COMPLETE" == n.status ? e("identicon", { + }, [ n("v-list-item-icon", [ "COMPLETE" == e.status ? n("identicon", { attrs: { - hash: n.id + hash: e.id } - }) : "RUNNING" == n.status || "PENDING" == n.status ? e("v-icon", { + }) : "RUNNING" == e.status || "PENDING" == e.status ? n("v-icon", { attrs: { large: "" } - }, [ t._v(t._s(t.$MDI.ClockOutline)) ]) : (n.status, e("v-icon", { + }, [ t._v(t._s(t.$MDI.ClockOutline)) ]) : (e.status, n("v-icon", { attrs: { large: "" } - }, [ t._v(t._s(t.$MDI.HelpCircleOutline)) ])) ], 1), t._v(" "), e("v-list-item-content", [ e("v-list-item-title", [ t._v("\n " + t._s(t.formattedDate(n.time)) + "\n ") ]), t._v(" "), e("v-list-item-subtitle", [ e("span", { + }, [ t._v(t._s(t.$MDI.HelpCircleOutline)) ])) ], 1), t._v(" "), n("v-list-item-content", [ n("v-list-item-title", [ t._v("\n " + t._s(t.formattedDate(e.time)) + "\n ") ]), t._v(" "), n("v-list-item-subtitle", [ n("span", { staticClass: "mono" - }, [ t._v(t._s(n.id)) ]) ]) ], 1) ], 1); + }, [ t._v(t._s(e.id)) ]) ]) ], 1) ], 1); })) ], 2) : t._e(); }; - it._withStripped = !0; - var at = function() { - var t = this, n = t.$createElement; - return (t._self._c || n)("img", { + dt._withStripped = !0; + var ut = function() { + var t = this, e = t.$createElement; + return (t._self._c || e)("img", { attrs: { src: "data:image/svg+xml;base64," + t.makeData(t.hash, t.size), width: t.size, @@ -1405,9 +1507,9 @@ } }); }; - at._withStripped = !0; - const rt = function() { - var t = function(t, n) { + ut._withStripped = !0; + const ht = function() { + var t = function(t, e) { if ("string" != typeof t || t.length < 15) throw "A hash of at least 15 characters is required."; this.defaults = { background: [ 240, 240, 240, 255 ], @@ -1416,12 +1518,12 @@ saturation: .7, brightness: .5, format: "png" - }, this.options = "object" === (0, r.Z)(n) ? n : this.defaults, "number" == typeof arguments[1] && (this.options.size = arguments[1]), + }, this.options = "object" === (0, r.Z)(e) ? e : this.defaults, "number" == typeof arguments[1] && (this.options.size = arguments[1]), arguments[2] && (this.options.margin = arguments[2]), this.hash = t, this.background = this.options.background || this.defaults.background, this.size = this.options.size || this.defaults.size, this.format = this.options.format || this.defaults.format, this.margin = void 0 !== this.options.margin ? this.options.margin : this.defaults.margin; - var e = parseInt(this.hash.substr(-7), 16) / 268435455, i = this.options.saturation || this.defaults.saturation, a = this.options.brightness || this.defaults.brightness; - this.foreground = this.options.foreground || this.hsl2rgb(e, i, a); + var n = parseInt(this.hash.substr(-7), 16) / 268435455, i = this.options.saturation || this.defaults.saturation, a = this.options.brightness || this.defaults.brightness; + this.foreground = this.options.foreground || this.hsl2rgb(n, i, a); }; t.prototype = { background: null, @@ -1431,27 +1533,27 @@ size: null, format: null, image: function() { - return this.isSvg() ? new n(this.size, this.foreground, this.background) : new null(this.size, this.size, 256); + return this.isSvg() ? new e(this.size, this.foreground, this.background) : new null(this.size, this.size, 256); }, render: function() { - var t, n, e = this.image(), i = this.size, a = Math.floor(i * this.margin), r = Math.floor((i - 2 * a) / 5), s = Math.floor((i - 5 * r) / 2), o = e.color.apply(e, this.background), l = e.color.apply(e, this.foreground); - for (t = 0; t < 15; t++) n = parseInt(this.hash.charAt(t), 16) % 2 ? o : l, t < 5 ? this.rectangle(2 * r + s, t * r + s, r, r, n, e) : t < 10 ? (this.rectangle(1 * r + s, (t - 5) * r + s, r, r, n, e), - this.rectangle(3 * r + s, (t - 5) * r + s, r, r, n, e)) : t < 15 && (this.rectangle(0 * r + s, (t - 10) * r + s, r, r, n, e), - this.rectangle(4 * r + s, (t - 10) * r + s, r, r, n, e)); - return e; + var t, e, n = this.image(), i = this.size, a = Math.floor(i * this.margin), r = Math.floor((i - 2 * a) / 5), s = Math.floor((i - 5 * r) / 2), o = n.color.apply(n, this.background), l = n.color.apply(n, this.foreground); + for (t = 0; t < 15; t++) e = parseInt(this.hash.charAt(t), 16) % 2 ? o : l, t < 5 ? this.rectangle(2 * r + s, t * r + s, r, r, e, n) : t < 10 ? (this.rectangle(1 * r + s, (t - 5) * r + s, r, r, e, n), + this.rectangle(3 * r + s, (t - 5) * r + s, r, r, e, n)) : t < 15 && (this.rectangle(0 * r + s, (t - 10) * r + s, r, r, e, n), + this.rectangle(4 * r + s, (t - 10) * r + s, r, r, e, n)); + return n; }, - rectangle: function(t, n, e, i, a, r) { + rectangle: function(t, e, n, i, a, r) { var s, o; if (this.isSvg()) r.rectangles.push({ x: t, - y: n, - w: e, + y: e, + w: n, h: i, color: a - }); else for (s = t; s < t + e; s++) for (o = n; o < n + i; o++) r.buffer[r.index(s, o)] = a; + }); else for (s = t; s < t + n; s++) for (o = e; o < e + i; o++) r.buffer[r.index(s, o)] = a; }, - hsl2rgb: function(t, n, e) { - return [ 255 * (n = [ e += n *= e < .5 ? e : 1 - e, e - (t *= 6) % 1 * n * 2, e -= n *= 2, e, e + t % 1 * n, e + n ])[~~t % 6], 255 * n[(16 | t) % 6], 255 * n[(8 | t) % 6] ]; + hsl2rgb: function(t, e, n) { + return [ 255 * (e = [ n += e *= n < .5 ? n : 1 - n, n - (t *= 6) % 1 * e * 2, n -= e *= 2, n, n + t % 1 * e, n + e ])[~~t % 6], 255 * e[(16 | t) % 6], 255 * e[(8 | t) % 6] ]; }, toString: function(t) { return t ? this.render().getDump() : this.render().getBase64(); @@ -1460,31 +1562,31 @@ return this.format.match(/svg/i); } }; - var n = function(t, n, e) { - this.size = t, this.foreground = this.color.apply(this, n), this.background = this.color.apply(this, e), + var e = function(t, e, n) { + this.size = t, this.foreground = this.color.apply(this, e), this.background = this.color.apply(this, n), this.rectangles = []; }; - return n.prototype = { + return e.prototype = { size: null, foreground: null, background: null, rectangles: null, - color: function(t, n, e, i) { - var a = [ t, n, e ].map(Math.round); + color: function(t, e, n, i) { + var a = [ t, e, n ].map(Math.round); return a.push(i >= 0 && i <= 255 ? i / 255 : 1), "rgba(" + a.join(",") + ")"; }, getDump: function() { - var t, n, e, i = this.foreground, a = this.background, r = .005 * this.size; - for (n = "", - t = 0; t < this.rectangles.length; t++) (e = this.rectangles[t]).color != a && (n += ""); - return n += ""; + var t, e, n, i = this.foreground, a = this.background, r = .005 * this.size; + for (e = "", + t = 0; t < this.rectangles.length; t++) (n = this.rectangles[t]).color != a && (e += ""); + return e += ""; }, getBase64: function() { return btoa(this.getDump()); } }, t; }(); - const st = { + const pt = { name: "identicon", props: { hash: { @@ -1497,29 +1599,29 @@ } }, methods: { - makeData: function(t, n) { - return new rt(function(t) { - for (var n = 0, e = 0; e < t.length; ++e) n = 31 * n + t[e].charCodeAt(0); - return n.toString(16).slice(0, 14) + "" + n.toString(16)[0]; + makeData: function(t, e) { + return new ht(function(t) { + for (var e = 0, n = 0; n < t.length; ++n) e = 31 * e + t[n].charCodeAt(0); + return e.toString(16).slice(0, 14) + "" + e.toString(16)[0]; }(t), { background: [ 0, 0, 0, 0 ], margin: 0, - size: n, + size: e, format: "svg" }).toString(); } } - }, ot = st; - var lt = (0, M.Z)(ot, at, [], !1, null, null, null); - lt.options.__file = "frontend/Identicon.vue"; - const At = lt.exports; - var ct = !1; + }, gt = pt; + var mt = (0, T.Z)(gt, ut, [], !1, null, null, null); + mt.options.__file = "frontend/Identicon.vue"; + const vt = mt.exports; + var ft = !1; try { - void 0 !== window.localStorage && (ct = !0); + void 0 !== window.localStorage && (ft = !0); } catch (t) {} - const dt = { + const bt = { components: { - Identicon: At + Identicon: vt }, data: function() { return { @@ -1536,13 +1638,13 @@ this.fetchData(); }, watch: { - $route: function(t, n) { - n.path != t.path && this.fetchData(); + $route: function(t, e) { + e.path != t.path && this.fetchData(); }, items: function(t) { - ct && (localStorage.history = JSON.stringify(t)); + ft && (localStorage.history = JSON.stringify(t)); }, - drawer: function(t, n) { + drawer: function(t, e) { 1 == t && this.$root.$emit("multi", !0); } }, @@ -1553,186 +1655,171 @@ next: function() { (this.page + 1) * this.limit > this.items.length || (this.page += 1); }, - fetchData: U((function() { - var t, n = this; - this.current = this.$route.params.ticket, this.error = !1, t = ct && localStorage.history ? JSON.parse(localStorage.history) : []; - var e = [], i = !1; - for (var a in t) this.current == t[a].id && (i = !0), e.push(t[a].id), t[a].status = "UNKNOWN"; - null != this.current && 0 == i && (e.unshift(this.current), t.unshift({ + fetchData: F((function() { + var t, e = this; + this.current = this.$route.params.ticket, this.error = !1, t = ft && localStorage.history ? JSON.parse(localStorage.history) : []; + var n = [], i = !1; + for (var a in t) this.current == t[a].id && (i = !0), t[a].id.startsWith("user") || (n.push(t[a].id), + t[a].status = "UNKNOWN"); + null == this.current || 0 != i || this.current.startsWith("user") || (n.unshift(this.current), + t.unshift({ id: this.current, status: "UNKNOWN", time: +new Date })), this.$axios.post("api/tickets", function(t) { - for (var n = new URLSearchParams(t), e = function() { - var t = (0, T.Z)(a[i], 2), e = t[0], r = t[1]; - Array.isArray(r) && (n.delete(e), r.forEach((function(t) { - return n.append(e + "[]", t); + for (var e = new URLSearchParams(t), n = function() { + var t = (0, R.Z)(a[i], 2), n = t[0], r = t[1]; + Array.isArray(r) && (e.delete(n), r.forEach((function(t) { + return e.append(n + "[]", t); }))); - }, i = 0, a = Object.entries(t); i < a.length; i++) e(); - return n.toString(); + }, i = 0, a = Object.entries(t); i < a.length; i++) n(); + return e.toString(); }({ - tickets: e - })).then((function(e) { - var i = e.data, a = +new Date, r = [], s = !1; + tickets: n + })).then((function(n) { + var i = n.data, a = +new Date, r = [], s = !1; for (var o in i) { var l = !1; if ("COMPLETE" == i[o].status ? l = !0 : "UNKNOWN" == i[o].status ? l = !1 : a - t[o].time < 6048e5 && (l = !0), "PENDING" != i[o].status && "RUNNING" != i[o].status || (s = !0), l) { - var A = t[o]; - A.status = i[o].status, r.push(A); + var c = t[o]; + c.status = i[o].status, r.push(c); } } - n.items = r, s && setTimeout(n.fetchData.bind(n), 5e3); + e.items = r, s && setTimeout(e.fetchData.bind(e), 5e3); }), (function() { - n.error = !0; + e.error = !0; })); }), 16, !0), formattedRoute: function(t) { return "COMPLETE" == t.status ? "/result/" + t.id + "/0" : "/queue/" + t.id; }, formattedDate: function(t) { - var n = new Date(t), e = n.getMonth() + 1, i = n.getDate(), a = n.getHours(), r = n.getMinutes(); - return e = (e < 10 ? "0" : "") + e, i = (i < 10 ? "0" : "") + i, a = (a < 10 ? "0" : "") + a, - r = (r < 10 ? "0" : "") + r, n.getFullYear() + "-" + e + "-" + i + " " + a + ":" + r; + var e = new Date(t), n = e.getMonth() + 1, i = e.getDate(), a = e.getHours(), r = e.getMinutes(); + return n = (n < 10 ? "0" : "") + n, i = (i < 10 ? "0" : "") + i, a = (a < 10 ? "0" : "") + a, + r = (r < 10 ? "0" : "") + r, e.getFullYear() + "-" + n + "-" + i + " " + a + ":" + r; } } }; - var ut = e(3308), ht = e(3347), pt = e(9623), gt = e(3560), mt = (0, M.Z)(dt, it, [], !1, null, null, null); - Q()(mt, { - VIcon: W.Z, - VListGroup: ut.Z, - VListItem: ht.Z, - VListItemContent: pt.km, - VListItemIcon: gt.Z, - VListItemSubtitle: pt.oZ, - VListItemTitle: pt.V9 - }), mt.options.__file = "frontend/History.vue"; - const vt = { + var Ct = n(3308), yt = n(3347), Mt = n(9623), wt = n(3560), xt = (0, T.Z)(bt, dt, [], !1, null, null, null); + W()(xt, { + VIcon: et.Z, + VListGroup: Ct.Z, + VListItem: yt.Z, + VListItemContent: Mt.km, + VListItemIcon: wt.Z, + VListItemSubtitle: Mt.oZ, + VListItemTitle: Mt.V9 + }), xt.options.__file = "frontend/History.vue"; + const It = { components: { - History: mt.exports + History: xt.exports }, data: function() { return { - mini: !0 + mini: !0, + expanded: !1 }; }, created: function() { this.$root.$on("multi", this.shouldExpand); }, mounted: function() { - console.log(this); + 0; }, beforeDestroy: function() { this.$root.$off("multi", this.shouldExpand); }, + watch: { + expanded: function(t) { + this.$root.$emit("multi", t); + } + }, methods: { + url: function(t) { + var e = At()(this.$axios.defaults.baseURL, t); + return this.$axios.getUri({ + url: e + }); + }, + electronDownload: function(t) { + this.saveResult(t); + }, + log: function(t) { + return console.log(t), t; + }, shouldExpand: function(t) { - this.mini = !t; + t && (this.mini = !t); }, toggleMini: function() { this.mini = !this.mini; }, electronHandleTitleBarDoubleClick: function() { this.handleTitleBarDoubleClick(); + }, + uploadJSON: function() { + var t = this, e = this.$refs.upload.files[0], n = function(t) { + for (var e = 5381, n = 0; n < t.length; n++) e = 33 * e ^ t.charCodeAt(n); + return e >>> 0; + }(e.name), i = new FileReader; + i.addEventListener("load", (function(e) { + var i = y(JSON.parse(e.target.result)); + t.$root.userData = i, t.$router.push({ + name: "result", + params: { + ticket: "user-".concat(n), + entry: 0 + } + }).catch((function(t) {})); + })), i.readAsText(e); + }, + downloadJSON: function() { + this.$root.$emit("downloadJSON"); } } }; - e(4449); - var ft = e(9085), bt = e(5078), Ct = e(8895), Mt = e(2545), yt = e(3444), wt = e(9681), xt = e(2515), It = e(3845), St = (0, - M.Z)(vt, et, [ function() { - var t = this, n = t.$createElement, e = t._self._c || n; - return e("v-toolbar-items", { + n(4449); + var St = n(9085), Tt = n(5078), Nt = n(8895), Lt = n(8176), Dt = n(2545), Et = n(3444), Ot = n(9681), Rt = n(2515), kt = n(3845), Bt = (0, + T.Z)(It, lt, [ function() { + var t = this, e = t.$createElement, n = t._self._c || e; + return n("v-toolbar-items", { staticClass: "hidden-sm-and-down" - }, t._l(t.$STRINGS.NAV_URL_COUNT - 0, (function(n) { - return e("v-btn", { - key: n, + }, t._l(t.$STRINGS.NAV_URL_COUNT - 0, (function(e) { + return n("v-btn", { + key: e, attrs: { text: "", rel: "external noopener", target: "_blank", - href: t.$STRINGS["NAV_URL_" + n] + href: t.$STRINGS["NAV_URL_" + e] } - }, [ t._v(t._s(t.$STRINGS["NAV_TITLE_" + n])) ]); + }, [ t._v(t._s(t.$STRINGS["NAV_TITLE_" + e])) ]); })), 1); } ], !1, null, "5976e89a", null); - Q()(St, { - VAppBar: ft.Z, - VAppBarNavIcon: bt.Z, - VAppBarTitle: Ct.Z, - VBtn: V.Z, - VIcon: W.Z, - VList: Mt.Z, - VListItem: ht.Z, - VListItemAction: yt.Z, - VListItemContent: pt.km, - VListItemTitle: pt.V9, - VNavigationDrawer: wt.Z, - VSpacer: xt.Z, - VToolbarItems: It.lj - }), St.options.__file = "frontend/Navigation.vue"; - function Tt(t, n) { - var e = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"]; - if (!e) { - if (Array.isArray(t) || (e = function(t, n) { - if (!t) return; - if ("string" == typeof t) return Nt(t, n); - var e = Object.prototype.toString.call(t).slice(8, -1); - "Object" === e && t.constructor && (e = t.constructor.name); - if ("Map" === e || "Set" === e) return Array.from(t); - if ("Arguments" === e || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return Nt(t, n); - }(t)) || n && t && "number" == typeof t.length) { - e && (t = e); - var i = 0, a = function() {}; - return { - s: a, - n: function() { - return i >= t.length ? { - done: !0 - } : { - done: !1, - value: t[i++] - }; - }, - e: function(t) { - throw t; - }, - f: a - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - var r, s = !0, o = !1; - return { - s: function() { - e = e.call(t); - }, - n: function() { - var t = e.next(); - return s = t.done, t; - }, - e: function(t) { - o = !0, r = t; - }, - f: function() { - try { - s || null == e.return || e.return(); - } finally { - if (o) throw r; - } - } - }; - } - function Nt(t, n) { - (null == n || n > t.length) && (n = t.length); - for (var e = 0, i = new Array(n); e < n; e++) i[e] = t[e]; - return i; - } - const Lt = { + W()(Bt, { + VAppBar: St.Z, + VAppBarNavIcon: Tt.Z, + VAppBarTitle: Nt.Z, + VBtn: K.Z, + VDivider: Lt.Z, + VIcon: et.Z, + VList: Dt.Z, + VListGroup: Ct.Z, + VListItem: yt.Z, + VListItemAction: Et.Z, + VListItemContent: Mt.km, + VListItemSubtitle: Mt.oZ, + VListItemTitle: Mt.V9, + VNavigationDrawer: Ot.Z, + VSpacer: Rt.Z, + VToolbarItems: kt.lj + }), Bt.options.__file = "frontend/Navigation.vue"; + const Pt = { name: "result", - mixins: [ w ], + mixins: [ L ], components: { - ResultView: nt, - Navigation: St.exports + ResultView: ot, + Navigation: Bt.exports }, data: function() { return { @@ -1743,10 +1830,10 @@ var t = this; document.onreadystatechange = function() { if ("complete" == document.readyState) { - var n = document.getElementById("data"); - if (!n) return null; - var e = JSON.parse(n.textContent); - t.fetchData(e); + var e = document.getElementById("data"); + if (!e) return null; + var n = JSON.parse(e.textContent); + t.fetchData(n); } }; }, @@ -1763,92 +1850,82 @@ this.currentIndex = t, this.setColorScheme(); }, uploadData: function(t) { - var n = this; + var e = this; if (t) { - var e = new FileReader; - e.addEventListener("load", (function(t) { - var e = JSON.parse(t.target.result); - n.fetchData(e); - })), e.readAsText(t); + var n = new FileReader; + n.addEventListener("load", (function(t) { + var n = JSON.parse(t.target.result); + e.fetchData(n); + })), n.readAsText(t); } }, downloadData: function() { if (!this.hits) return null; - var t = JSON.stringify(this.hits), n = new Blob([ t ], { + var t, e, n, i, a; + t = this.hits, e = "Foldseek-".concat((new Date).toLocaleString("sv").replace(" ", "_").replaceAll("-", "_").replaceAll(":", "_"), ".json"), + n = JSON.stringify(t), i = new Blob([ n ], { type: "application/json" - }), e = document.createElement("a"), i = (new Date).toLocaleString("sv").replace(" ", "_").replaceAll("-", "_").replaceAll(":", "_"); - e.href = URL.createObjectURL(n), e.download = "".concat(this.$STRINGS.APP_NAME, "_").concat(i, ".json"), - e.click(), URL.revokeObjectURL(e.href); + }), (a = document.createElement("a")).href = URL.createObjectURL(i), a.download = e, + a.click(), URL.revokeObjectURL(a.href); }, resetProperties: function() { this.ticket = "", this.error = "", this.mode = "", this.hits = null, this.selectedDatabases = 0, this.tableMode = 0; }, fetchData: function(t) { - this.resetProperties(), this.hits = []; - var n, e = Tt(t); - try { - for (e.s(); !(n = e.n()).done; ) { - var i = n.value; - this.hits.push(this.parseResults(i)); - } - } catch (t) { - e.e(t); - } finally { - e.f(); - } + this.resetProperties(), this.hits = y(t); } } }; - e(2556), e(8973); - var Et = e(5893), Dt = e(5255), Ot = e(4506), Rt = (0, M.Z)(Lt, g, [], !1, null, "54679682", null); - Q()(Rt, { - VAppBar: ft.Z, - VAppBarTitle: Ct.Z, - VBtn: V.Z, - VCard: Et.Z, - VCardTitle: Dt.EB, - VContainer: H.Z, - VFileInput: Ot.Z, - VFlex: Y.Z, - VIcon: W.Z, - VLayout: J.Z, - VSpacer: xt.Z, - VTab: K.Z, - VTabs: X.Z, - VToolbarItems: It.lj - }), Rt.options.__file = "frontend/ResultLocal.vue"; - const kt = { + n(2556), n(8973); + var qt = n(5893), zt = n(5255), Zt = n(4506), _t = (0, T.Z)(Pt, g, [], !1, null, "54679682", null); + W()(_t, { + VAppBar: St.Z, + VAppBarTitle: Nt.Z, + VBtn: K.Z, + VCard: qt.Z, + VCardTitle: zt.EB, + VContainer: $.Z, + VFileInput: Zt.Z, + VFlex: tt.Z, + VIcon: et.Z, + VLayout: nt.Z, + VSpacer: Rt.Z, + VTab: it.Z, + VTabs: at.Z, + VToolbarItems: kt.lj + }), _t.options.__file = "frontend/ResultLocal.vue"; + const Ut = { components: { - ResultLocal: Rt.exports + ResultLocal: _t.exports } }; - var Bt = e(1095), Pt = e(5091), zt = (0, M.Z)(kt, p, [], !1, null, null, null); - Q()(zt, { - VApp: Bt.Z, - VMain: Pt.Z - }), zt.options.__file = "frontend/AppLocal.vue"; - const Zt = zt.exports; - e(654); + var jt = n(1095), Gt = n(5091), Qt = (0, T.Z)(Ut, p, [], !1, null, null, null); + W()(Qt, { + VApp: jt.Z, + VMain: Gt.Z + }), Qt.options.__file = "frontend/AppLocal.vue"; + const Vt = Qt.exports; + n(654); i.Z.use(a.Z), i.Z.use(u); - var _t = { - mmseqs: e(8615).Z, - foldseek: e(5473).Z + var Ft = { + mmseqs: n(8615).Z, + foldseek: n(5473).Z }; - window.document.title = _t.foldseek.APP_NAME + " Search Server"; - var Ut = window.matchMedia("(prefers-color-scheme: dark)"), jt = new a.Z({ + window.document.title = Ft.foldseek.APP_NAME + " Search Server"; + var Ht = window.matchMedia("(prefers-color-scheme: dark)"), Yt = new a.Z({ icons: { iconfont: "mdiSvg" }, theme: { - dark: Ut.matches + dark: Ht.matches } }); - Ut.addEventListener("change", (function(t) { - jt.framework.theme.dark = t.matches; + Ht.addEventListener("change", (function(t) { + Yt.framework.theme.dark = t.matches; })), i.Z.use({ - install: function(t, n) { - t.prototype.$APP = "foldseek", t.prototype.$STRINGS = _t.foldseek, t.prototype.$ELECTRON = !1, + install: function(t, e) { + t.prototype.$APP = "foldseek", t.prototype.$STRINGS = Ft.foldseek, t.prototype.$ELECTRON = !1, t.prototype.$LOCAL = !0, t.prototype.$MDI = { History: h.BBX, ChevronLeft: h.gAv, @@ -1884,18 +1961,18 @@ }); new i.Z({ el: "#app", - vuetify: jt, + vuetify: Yt, render: function(t) { - return t(Zt); + return t(Vt); } }); }, - 9837: (t, n, e) => { + 9837: (t, e, n) => { "use strict"; - e.r(n), e.d(n, { + n.r(e), n.d(e, { default: () => o }); - var i = e(7537), a = e.n(i), r = e(3645), s = e.n(r)()(a()); + var i = n(7537), a = n.n(i), r = n(3645), s = n.n(r)()(a()); s.push([ t.id, 'body, svg text, #app.electron {\n font-family: system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, Oxygen, Ubuntu, Cantarell, \'Open Sans\', \'Helvetica Neue\', sans-serif !important;\n}\n\nbody {\n background-color: #fff;\n}\n\n@media screen and (prefers-color-scheme: dark) {\n html, body {\n background-color: #121212;\n color-scheme: dark;\n }\n}\n\nsvg a {\n cursor: pointer;\n}\n\n.monospace, .mono, pre {\n font-family: ui-monospace, Inconsolata, Consolas, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace;\n}\n\n.loading {\n -webkit-animation: spin 1000ms infinite linear;\n animation: spin 1000ms infinite linear;\n}\n\n@-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n@keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n.input-group .tooltip label {\n max-width: 100%;\n}\n\nmain.content {\n max-width: 1536px;\n}\n\n@media print {\n nav.v-navigation-drawer, header.v-app-bar {\n display: none !important;\n }\n main {\n padding: 1cm !important;\n }\n .v-card, .v-sheet {\n border: 0px solid transparent !important;\n outline: 0px solid transparent !important;\n box-shadow: none !important;\n }\n}\n\n#app.electron a {\n -webkit-user-drag: none;\n}\n\n#app.electron .v-toolbar__content, #app.electron .v-input label {\n user-select: none;\n}', "", { version: 3, sources: [ "webpack://./frontend/assets/style.css" ], @@ -1906,12 +1983,12 @@ } ]); const o = s; }, - 5426: (t, n, e) => { + 5426: (t, e, n) => { "use strict"; - e.r(n), e.d(n, { + n.r(e), n.d(e, { default: () => o }); - var i = e(7537), a = e.n(i), r = e(3645), s = e.n(r)()(a()); + var i = n(7537), a = n.n(i), r = n(3645), s = n.n(r)()(a()); s.push([ t.id, '\n.residues {\n font-family: InconsolataClustal, Inconsolata, Consolas, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace;\n white-space: pre;\n}\n.alignment-wrapper-inner {\n display: inline-block;\n overflow-x: auto;\n}\n.alignment-wrapper-inner .line {\n display: inline-block;\n margin-bottom: 0.5em;\n white-space: nowrap;\n}\n', "", { version: 3, sources: [ "webpack://./frontend/Alignment.vue" ], @@ -1922,12 +1999,12 @@ } ]); const o = s; }, - 6696: (t, n, e) => { + 6696: (t, e, n) => { "use strict"; - e.r(n), e.d(n, { + n.r(e), n.d(e, { default: () => o }); - var i = e(7537), a = e.n(i), r = e(3645), s = e.n(r)()(a()); + var i = n(7537), a = n.n(i), r = n(3645), s = n.n(r)()(a()); s.push([ t.id, "\n.alignment-wrapper-outer {\n display: inline-flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: center;\n align-items: stretch;\n width: 100%;\n}\n.alignment-wrapper-inner {\n flex: 2;\n margin: auto;\n display: flex;\n flex-direction: column;\n align-items: end;\n}\n.alignment-structure-wrapper {\n flex: 1;\n min-width:450px;\n margin: 0;\n margin-bottom: auto;\n}\n@media screen and (max-width: 960px) {\n.alignment-wrapper-outer {\n display: flex;\n flex-direction: column;\n}\n.alignment-structure-wrapper {\n padding-top: 1em;\n}\n}\n@media screen and (min-width: 961px) {\n.alignment-structure-wrapper {\n padding-left: 2em;\n}\n}\n\n", "", { version: 3, sources: [ "webpack://./frontend/AlignmentPanel.vue" ], @@ -1938,28 +2015,28 @@ } ]); const o = s; }, - 8260: (t, n, e) => { + 8260: (t, e, n) => { "use strict"; - e.r(n), e.d(n, { + n.r(e), n.d(e, { default: () => o }); - var i = e(7537), a = e.n(i), r = e(3645), s = e.n(r)()(a()); + var i = n(7537), a = n.n(i), r = n(3645), s = n.n(r)()(a()); s.push([ t.id, "\n[data-v-5976e89a] .v-app-bar-title__content {\n text-overflow: revert !important;\n}\n[data-v-5976e89a] .theme--light.v-navigation-drawer {\n background-color: #f5f5f5;\n border-color: #f5f5f5;\n /* transition-duration: 0s !important; */\n /* transition-timing-function: linear; */\n}\n[data-v-5976e89a] .theme--dark.v-navigation-drawer {\n background-color: #212121;\n border-color: #212121;\n}\n", "", { version: 3, sources: [ "webpack://./frontend/Navigation.vue" ], names: [], - mappings: ";AA+FA;IACA,gCAAA;AACA;AACA;IACA,yBAAA;IACA,qBAAA;IACA,wCAAA;IACA,wCAAA;AACA;AAEA;IACA,yBAAA;IACA,qBAAA;AACA", - sourcesContent: [ '\n\n