@lipme/vue-blast-viewer 1.0.0

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.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Sebastien Carrere
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,197 @@
1
+ # Vue3 Blast Viewer
2
+
3
+ An interactive, responsive, and visually rich Vue 3 component for displaying biological BLAST (Basic Local Alignment Search Tool) results. It combines visual alignment graphics, summary hit tables, and detailed pairwise alignment views into a single, unified biotech-styled dashboard.
4
+
5
+ ---
6
+
7
+ ## 🌟 Features
8
+
9
+ - **Interactive SVG Alignment Map**: Visualizes matching segments (HSPs) aligned against the query sequence, color-coded by standard alignment score metrics. Hovering reveals detailed tooltips; clicking jumps straight to the alignment details.
10
+ - **Searchable & Sortable Table**: Displays descriptions, Max Score, Total Score, Query Coverage (overlapping intervals merged), E-values, and Identity percentages. Supports exporting the current filtered results directly to a TSV file.
11
+ - **Pairwise Alignment Visualizer**: Formats alignment text in blocks of 60 characters with colored annotations highlighting exact matches, gaps, and mismatches, with exact forward and reverse coordinate tracking.
12
+ - **Custom Accession Linkers**: Dynamically redirects accession IDs to custom endpoints using string templates (`{accession}`).
13
+ - **Modern Responsive Design**: A glassmorphic dark-theme tailored for scientific applications, supporting drag-and-drop file uploading and raw JSON pasting.
14
+
15
+ ---
16
+
17
+ ## 🚀 Getting Started
18
+
19
+ ### 1. Installation
20
+
21
+ If incorporating the component into your own project, copy the files from the `src/components/` directory and include the styles from `src/style.css`.
22
+
23
+ To run the sandbox demonstration locally:
24
+ ```bash
25
+ # Sourcing Node (if using NVM)
26
+ source $HOME/.nvm/nvm.sh && nvm use node
27
+
28
+ # Install dependencies
29
+ npm install
30
+
31
+ # Start the local Vite development server
32
+ npm run dev
33
+
34
+ # Compile and check for production build validation
35
+ npm run build
36
+ ```
37
+
38
+ ---
39
+
40
+ ## 💻 Component Usage
41
+
42
+ ### Basic Usage
43
+ To render a standard BLAST result, supply the parsed BLAST JSON output (supporting `-outfmt 15` formats) directly to the component:
44
+
45
+ ```vue
46
+ <script setup lang="ts">
47
+ import { ref } from 'vue';
48
+ import BlastViewer from './components/BlastViewer.vue';
49
+ import myBlastData from './data/blast_result.json';
50
+
51
+ const blastResult = ref(myBlastData);
52
+ </script>
53
+
54
+ <template>
55
+ <div class="container">
56
+ <BlastViewer :blast-data="blastResult" />
57
+ </div>
58
+ </template>
59
+ ```
60
+
61
+ ### Custom Accession Linking: String Template
62
+ You can set templates for query and subject accessions independently:
63
+
64
+ ```vue
65
+ <template>
66
+ <BlastViewer
67
+ :blast-data="blastResult"
68
+ query-link="https://www.ncbi.nlm.nih.gov/nuccore/{accession}"
69
+ subject-link="https://www.ncbi.nlm.nih.gov/protein/{accession}"
70
+ />
71
+ </template>
72
+ ```
73
+
74
+ ### Dynamic Accession Linking
75
+ You can use computed properties to resolve links dynamically based on your application state. For example, conditionally linking the Query sequence to NCBI, but redirecting Subject protein accessions to UniProtKB for a specific dataset:
76
+
77
+ ```vue
78
+ <script setup lang="ts">
79
+ import { ref, computed } from 'vue';
80
+ import BlastViewer from './components/BlastViewer.vue';
81
+ import myBlastData from './data/blast_result.json';
82
+
83
+ const blastResult = ref(myBlastData);
84
+ const isProt = true; // Example
85
+
86
+ // Link query directly to NCBI
87
+ const queryLinkTemplate = computed(() => {
88
+ const db = isProt ? 'protein' : 'nuccore';
89
+ return `https://www.ncbi.nlm.nih.gov/${db}/{accession}`;
90
+ });
91
+
92
+ // Redirect Subject accessions conditionally
93
+ const subjectLinkTemplate = computed(() => {
94
+ if (isProt) {
95
+ return 'https://www.uniprot.org/uniprotkb/{accession}/entry';
96
+ }
97
+ return 'https://www.ncbi.nlm.nih.gov/nucleotide/{accession}';
98
+ });
99
+ </script>
100
+
101
+ <template>
102
+ <BlastViewer
103
+ :blast-data="blastResult"
104
+ :query-link="queryLinkTemplate"
105
+ :subject-link="subjectLinkTemplate"
106
+ />
107
+ </template>
108
+ ```
109
+
110
+ ---
111
+
112
+ ## ⚙️ Properties (Props)
113
+
114
+ | Prop | Type | Required | Default | Description |
115
+ | :--- | :--- | :---: | :--- | :--- |
116
+ | `blastData` | `BlastRoot \| null` | Yes | `null` | The parsed JSON output payload matching standard NCBI BLAST JSON structures. |
117
+ | `queryLink` | `string` | No | `null` | String template to resolve the link for the Query ID in the metadata header (use `{accession}`). |
118
+ | `subjectLink` | `string` | No | `null` | String template to resolve the links for Subject/target accessions in the hit list and alignments. |
119
+
120
+ ---
121
+
122
+ ## 📊 Data Structures Supported
123
+
124
+ The component expects a standard BLAST JSON archive root structure matching the NCBI format:
125
+
126
+ ```typescript
127
+ export interface BlastRoot {
128
+ BlastOutput2: Array<{
129
+ report: {
130
+ program: string;
131
+ version: string;
132
+ reference: string;
133
+ search_target: { db: string };
134
+ results: {
135
+ search: {
136
+ query_id: string;
137
+ query_title: string;
138
+ query_len: number;
139
+ hits: Array<{
140
+ num: number;
141
+ description: Array<{
142
+ id: string;
143
+ accession: string;
144
+ title: string;
145
+ taxid?: number;
146
+ }>;
147
+ len: number;
148
+ hsps: Array<{
149
+ num: number;
150
+ bit_score: number;
151
+ score: number;
152
+ evalue: number;
153
+ identity: number;
154
+ query_from: number;
155
+ query_to: number;
156
+ hit_from: number;
157
+ hit_to: number;
158
+ query_strand?: string;
159
+ hit_strand?: string;
160
+ align_len: number;
161
+ gaps: number;
162
+ qseq: string;
163
+ hseq: string;
164
+ midline: string;
165
+ }>;
166
+ }>;
167
+ };
168
+ };
169
+ };
170
+ }>;
171
+ }
172
+ ```
173
+
174
+ ---
175
+
176
+ ## 🎨 Theme Customization
177
+
178
+ The aesthetics are configured via CSS variables. You can easily adjust the visual signature of the components by overriding these variables in your root stylesheet:
179
+
180
+ ```css
181
+ :root {
182
+ /* Core Spacings */
183
+ --font-sans: 'Plus Jakarta Sans', sans-serif;
184
+ --font-mono: 'Fira Code', monospace;
185
+
186
+ /* Theme Base Color Modifiers */
187
+ --bg-primary: #0a0e17;
188
+ --bg-card: rgba(20, 27, 45, 0.65);
189
+
190
+ /* BLAST Score Color Coding overrides */
191
+ --blast-score-low: #4b5563; /* < 40 score */
192
+ --blast-score-mid-low: #3b82f6; /* 40 - 50 score */
193
+ --blast-score-mid: #10b981; /* 50 - 80 score */
194
+ --blast-score-mid-high: #ec4899; /* 80 - 200 score */
195
+ --blast-score-high: #ef4444; /* >= 200 score */
196
+ }
197
+ ```
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="48" height="46" fill="none" viewBox="0 0 48 46"><path fill="#863bff" d="M25.946 44.938c-.664.845-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.287c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.497 0-3.578-1.842-3.578H1.237c-.92 0-1.456-1.04-.92-1.788L10.013.474c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.579 1.842 3.579h11.377c.943 0 1.473 1.088.89 1.83L25.947 44.94z" style="fill:#863bff;fill:color(display-p3 .5252 .23 1);fill-opacity:1"/><mask id="a" width="48" height="46" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#000" d="M25.842 44.938c-.664.844-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.183c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.498 0-3.579-1.842-3.579H1.133c-.92 0-1.456-1.04-.92-1.787L9.91.473c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.578 1.842 3.578h11.377c.943 0 1.473 1.088.89 1.832L25.843 44.94z" style="fill:#000;fill-opacity:1"/></mask><g mask="url(#a)"><g filter="url(#b)"><ellipse cx="5.508" cy="14.704" fill="#ede6ff" rx="5.508" ry="14.704" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -4.47 31.516)"/></g><g filter="url(#c)"><ellipse cx="10.399" cy="29.851" fill="#ede6ff" rx="10.399" ry="29.851" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -39.328 7.883)"/></g><g filter="url(#d)"><ellipse cx="5.508" cy="30.487" fill="#7e14ff" rx="5.508" ry="30.487" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -25.913 -14.639)scale(1 -1)"/></g><g filter="url(#e)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -32.644 -3.334)scale(1 -1)"/></g><g filter="url(#f)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -34.34 30.47)"/></g><g filter="url(#g)"><ellipse cx="14.072" cy="22.078" fill="#ede6ff" rx="14.072" ry="22.078" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="rotate(93.35 24.506 48.493)scale(-1 1)"/></g><g filter="url(#h)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#i)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#j)"><ellipse cx=".387" cy="8.972" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(39.51 .387 8.972)"/></g><g filter="url(#k)"><ellipse cx="47.523" cy="-6.092" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 47.523 -6.092)"/></g><g filter="url(#l)"><ellipse cx="41.412" cy="6.333" fill="#47bfff" rx="5.971" ry="9.665" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 41.412 6.333)"/></g><g filter="url(#m)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#n)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#o)"><ellipse cx="35.651" cy="29.907" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 35.651 29.907)"/></g><g filter="url(#p)"><ellipse cx="38.418" cy="32.4" fill="#47bfff" rx="5.971" ry="15.297" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 38.418 32.4)"/></g></g><defs><filter id="b" width="60.045" height="41.654" x="-19.77" y="16.149" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="c" width="90.34" height="51.437" x="-54.613" y="-7.533" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="d" width="79.355" height="29.4" x="-49.64" y="2.03" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="e" width="79.579" height="29.4" x="-45.045" y="20.029" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="f" width="79.579" height="29.4" x="-43.513" y="21.178" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="g" width="74.749" height="58.852" x="15.756" y="-17.901" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="h" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="i" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="j" width="56.045" height="63.649" x="-27.636" y="-22.853" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="k" width="54.814" height="64.646" x="20.116" y="-38.415" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="l" width="33.541" height="35.313" x="24.641" y="-11.323" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="m" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="n" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="o" width="54.814" height="64.646" x="8.244" y="-2.416" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="p" width="39.409" height="43.623" x="18.713" y="10.588" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter></defs></svg>
package/dist/icons.svg ADDED
@@ -0,0 +1,24 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg">
2
+ <symbol id="bluesky-icon" viewBox="0 0 16 17">
3
+ <g clip-path="url(#bluesky-clip)"><path fill="#08060d" d="M7.75 7.735c-.693-1.348-2.58-3.86-4.334-5.097-1.68-1.187-2.32-.981-2.74-.79C.188 2.065.1 2.812.1 3.251s.241 3.602.398 4.13c.52 1.744 2.367 2.333 4.07 2.145-2.495.37-4.71 1.278-1.805 4.512 3.196 3.309 4.38-.71 4.987-2.746.608 2.036 1.307 5.91 4.93 2.746 2.72-2.746.747-4.143-1.747-4.512 1.702.189 3.55-.4 4.07-2.145.156-.528.397-3.691.397-4.13s-.088-1.186-.575-1.406c-.42-.19-1.06-.395-2.741.79-1.755 1.24-3.64 3.752-4.334 5.099"/></g>
4
+ <defs><clipPath id="bluesky-clip"><path fill="#fff" d="M.1.85h15.3v15.3H.1z"/></clipPath></defs>
5
+ </symbol>
6
+ <symbol id="discord-icon" viewBox="0 0 20 19">
7
+ <path fill="#08060d" d="M16.224 3.768a14.5 14.5 0 0 0-3.67-1.153c-.158.286-.343.67-.47.976a13.5 13.5 0 0 0-4.067 0c-.128-.306-.317-.69-.476-.976A14.4 14.4 0 0 0 3.868 3.77C1.546 7.28.916 10.703 1.231 14.077a14.7 14.7 0 0 0 4.5 2.306q.545-.748.965-1.587a9.5 9.5 0 0 1-1.518-.74q.191-.14.372-.293c2.927 1.369 6.107 1.369 8.999 0q.183.152.372.294-.723.437-1.52.74.418.838.963 1.588a14.6 14.6 0 0 0 4.504-2.308c.37-3.911-.63-7.302-2.644-10.309m-9.13 8.234c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.894 0 1.614.82 1.599 1.82.001 1-.705 1.82-1.6 1.82m5.91 0c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.893 0 1.614.82 1.599 1.82 0 1-.706 1.82-1.6 1.82"/>
8
+ </symbol>
9
+ <symbol id="documentation-icon" viewBox="0 0 21 20">
10
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="m15.5 13.333 1.533 1.322c.645.555.967.833.967 1.178s-.322.623-.967 1.179L15.5 18.333m-3.333-5-1.534 1.322c-.644.555-.966.833-.966 1.178s.322.623.966 1.179l1.534 1.321"/>
11
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M17.167 10.836v-4.32c0-1.41 0-2.117-.224-2.68-.359-.906-1.118-1.621-2.08-1.96-.599-.21-1.349-.21-2.848-.21-2.623 0-3.935 0-4.983.369-1.684.591-3.013 1.842-3.641 3.428C3 6.449 3 7.684 3 10.154v2.122c0 2.558 0 3.838.706 4.726q.306.383.713.671c.76.536 1.79.64 3.581.66"/>
12
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M3 10a2.78 2.78 0 0 1 2.778-2.778c.555 0 1.209.097 1.748-.047.48-.129.854-.503.982-.982.145-.54.048-1.194.048-1.749a2.78 2.78 0 0 1 2.777-2.777"/>
13
+ </symbol>
14
+ <symbol id="github-icon" viewBox="0 0 19 19">
15
+ <path fill="#08060d" fill-rule="evenodd" d="M9.356 1.85C5.05 1.85 1.57 5.356 1.57 9.694a7.84 7.84 0 0 0 5.324 7.44c.387.079.528-.168.528-.376 0-.182-.013-.805-.013-1.454-2.165.467-2.616-.935-2.616-.935-.349-.91-.864-1.143-.864-1.143-.71-.48.051-.48.051-.48.787.051 1.2.805 1.2.805.695 1.194 1.817.857 2.268.649.064-.507.27-.857.49-1.052-1.728-.182-3.545-.857-3.545-3.87 0-.857.31-1.558.8-2.104-.078-.195-.349-1 .077-2.078 0 0 .657-.208 2.14.805a7.5 7.5 0 0 1 1.946-.26c.657 0 1.328.092 1.946.26 1.483-1.013 2.14-.805 2.14-.805.426 1.078.155 1.883.078 2.078.502.546.799 1.247.799 2.104 0 3.013-1.818 3.675-3.558 3.87.284.247.528.714.528 1.454 0 1.052-.012 1.896-.012 2.156 0 .208.142.455.528.377a7.84 7.84 0 0 0 5.324-7.441c.013-4.338-3.48-7.844-7.773-7.844" clip-rule="evenodd"/>
16
+ </symbol>
17
+ <symbol id="social-icon" viewBox="0 0 20 20">
18
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M12.5 6.667a4.167 4.167 0 1 0-8.334 0 4.167 4.167 0 0 0 8.334 0"/>
19
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M2.5 16.667a5.833 5.833 0 0 1 8.75-5.053m3.837.474.513 1.035c.07.144.257.282.414.309l.93.155c.596.1.736.536.307.965l-.723.73a.64.64 0 0 0-.152.531l.207.903c.164.715-.213.991-.84.618l-.872-.52a.63.63 0 0 0-.577 0l-.872.52c-.624.373-1.003.094-.84-.618l.207-.903a.64.64 0 0 0-.152-.532l-.723-.729c-.426-.43-.289-.864.306-.964l.93-.156a.64.64 0 0 0 .412-.31l.513-1.034c.28-.562.735-.562 1.012 0"/>
20
+ </symbol>
21
+ <symbol id="x-icon" viewBox="0 0 19 19">
22
+ <path fill="#08060d" fill-rule="evenodd" d="M1.893 1.98c.052.072 1.245 1.769 2.653 3.77l2.892 4.114c.183.261.333.48.333.486s-.068.089-.152.183l-.522.593-.765.867-3.597 4.087c-.375.426-.734.834-.798.905a1 1 0 0 0-.118.148c0 .01.236.017.664.017h.663l.729-.83c.4-.457.796-.906.879-.999a692 692 0 0 0 1.794-2.038c.034-.037.301-.34.594-.675l.551-.624.345-.392a7 7 0 0 1 .34-.374c.006 0 .93 1.306 2.052 2.903l2.084 2.965.045.063h2.275c1.87 0 2.273-.003 2.266-.021-.008-.02-1.098-1.572-3.894-5.547-2.013-2.862-2.28-3.246-2.273-3.266.008-.019.282-.332 2.085-2.38l2-2.274 1.567-1.782c.022-.028-.016-.03-.65-.03h-.674l-.3.342a871 871 0 0 1-1.782 2.025c-.067.075-.405.458-.75.852a100 100 0 0 1-.803.91c-.148.172-.299.344-.99 1.127-.304.343-.32.358-.345.327-.015-.019-.904-1.282-1.976-2.808L6.365 1.85H1.8zm1.782.91 8.078 11.294c.772 1.08 1.413 1.973 1.425 1.984.016.017.241.02 1.05.017l1.03-.004-2.694-3.766L7.796 5.75 5.722 2.852l-1.039-.004-1.039-.004z" clip-rule="evenodd"/>
23
+ </symbol>
24
+ </svg>
@@ -0,0 +1,2 @@
1
+ .blast-header[data-v-71c69c51]{flex-direction:column;gap:1.5rem;margin-bottom:2rem;display:flex}.header-main[data-v-71c69c51]{justify-content:space-between;align-items:flex-start;gap:1.5rem;padding:1.5rem;display:flex}.title-section[data-v-71c69c51]{flex-direction:column;gap:.5rem;display:flex}.query-link[data-v-71c69c51]{color:var(--color-primary);transition:border-color var(--transition-fast);border-bottom:1px dashed #3b82f64d;font-weight:600;text-decoration:none}.query-link[data-v-71c69c51]:hover{border-bottom-color:var(--color-primary)}.program-badge[data-v-71c69c51]{font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.05em;background:var(--color-primary-glow);color:var(--color-primary);border:1px solid #3b82f64d;border-radius:50px;align-self:flex-start;padding:.25rem .75rem;font-size:.75rem;font-weight:600}.program-badge.blastn[data-v-71c69c51]{color:var(--color-success);background:#10b98126;border-color:#10b9814d}.program-badge.blastp[data-v-71c69c51]{color:var(--color-secondary);background:#8b5cf626;border-color:#8b5cf64d}h1[data-v-71c69c51]{color:var(--text-primary);letter-spacing:-.02em;font-size:1.5rem;font-weight:700;line-height:1.3}.query-meta[data-v-71c69c51]{color:var(--text-secondary);font-size:.85rem}.query-meta strong[data-v-71c69c51]{color:var(--text-primary)}.version-section[data-v-71c69c51]{text-align:right;flex-shrink:0}.version-text[data-v-71c69c51]{font-family:var(--font-mono);color:var(--text-muted);font-size:.75rem}.stats-grid[data-v-71c69c51]{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;display:grid}.stat-card[data-v-71c69c51]{align-items:center;gap:1.25rem;padding:1.25rem;display:flex}.stat-icon[data-v-71c69c51]{background:var(--bg-overlay-hover);border-radius:var(--radius-sm);border:1px solid var(--border-color);justify-content:center;align-items:center;width:48px;height:48px;font-size:1.75rem;display:flex}.stat-info[data-v-71c69c51]{flex-direction:column;gap:.15rem;display:flex}.stat-label[data-v-71c69c51]{text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary);font-size:.75rem;font-weight:500}.stat-value[data-v-71c69c51]{color:var(--text-primary);font-size:1.25rem;font-weight:700;font-family:var(--font-mono)}.stat-unit[data-v-71c69c51]{color:var(--text-secondary);font-size:.85rem;font-weight:500}@media (width<=768px){.header-main[data-v-71c69c51]{flex-direction:column}.version-section[data-v-71c69c51]{text-align:left}}.blast-graphics[data-v-57bf6043]{margin-bottom:2rem;padding:1.5rem}.graphics-header[data-v-57bf6043]{margin-bottom:1.25rem}.graphics-header h2[data-v-57bf6043]{margin-bottom:.25rem;font-size:1.15rem;font-weight:600}.graphics-header p[data-v-57bf6043]{color:var(--text-secondary);font-size:.85rem}.color-legend[data-v-57bf6043]{background:var(--bg-depth-light);border-radius:var(--radius-sm);border:1px solid var(--border-color);flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:1.5rem;padding:.75rem 1rem;display:flex}.legend-title[data-v-57bf6043]{color:var(--text-secondary);font-size:.8rem;font-weight:600}.legend-items[data-v-57bf6043]{flex-wrap:wrap;gap:1rem;display:flex}.legend-item[data-v-57bf6043]{align-items:center;gap:.35rem;display:flex}.legend-color[data-v-57bf6043]{border:1px solid var(--bg-overlay-2);border-radius:3px;width:14px;height:14px;display:inline-block}.legend-label[data-v-57bf6043]{font-family:var(--font-mono);color:var(--text-primary);font-size:.75rem;font-weight:500}.svg-container[data-v-57bf6043]{background:var(--bg-depth-light);border-radius:var(--radius-sm);border:1px solid var(--bg-overlay-hover);width:100%;position:relative;overflow-x:auto}.alignment-svg[data-v-57bf6043]{min-width:700px;display:block}.hit-row[data-v-57bf6043]{cursor:pointer}.row-hover-bg[data-v-57bf6043]{opacity:0;transition:opacity var(--transition-fast)}.hit-row:hover .row-hover-bg[data-v-57bf6043],.hit-row.is-hovered .row-hover-bg[data-v-57bf6043]{opacity:1}.hsp-bar[data-v-57bf6043]{transition:transform var(--transition-fast), filter var(--transition-fast)}.hit-row:hover .hsp-bar[data-v-57bf6043]{filter:brightness(1.2)}.hit-index-label[data-v-57bf6043]{transition:fill var(--transition-fast)}.hit-row:hover .hit-index-label[data-v-57bf6043]{fill:var(--text-primary)}.tooltip-title[data-v-57bf6043]{color:var(--text-primary);text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-bottom:.25rem;font-size:.85rem;font-weight:600;display:-webkit-box;overflow:hidden}.tooltip-acc[data-v-57bf6043]{font-family:var(--font-mono);color:var(--color-primary);margin-bottom:.5rem;font-size:.75rem}.tooltip-divider[data-v-57bf6043]{border:none;border-top:1px solid var(--bg-overlay-2);margin:.5rem 0}.blast-hit-table[data-v-a7f92dcb]{flex-direction:column;gap:1.25rem;margin-bottom:2rem;padding:1.5rem;display:flex}.table-controls[data-v-a7f92dcb]{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;display:flex}.controls-right[data-v-a7f92dcb]{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.export-btn[data-v-a7f92dcb]{background:var(--bg-overlay-1);border:1px solid var(--border-color);align-items:center;gap:.35rem;height:38px;display:flex}.export-btn[data-v-a7f92dcb]:hover{background:var(--bg-overlay-2)}.title-group h2[data-v-a7f92dcb]{font-size:1.15rem;font-weight:600}.results-count[data-v-a7f92dcb]{color:var(--text-secondary);font-size:.8rem}.search-box[data-v-a7f92dcb]{width:100%;max-width:320px;position:relative}.filter-input[data-v-a7f92dcb]{width:100%;padding-right:2.2rem}.clear-search[data-v-a7f92dcb]{cursor:pointer;color:var(--text-secondary);transition:color var(--transition-fast);font-size:.85rem;position:absolute;top:50%;right:.75rem;transform:translateY(-50%)}.clear-search[data-v-a7f92dcb]:hover{color:var(--text-primary)}.table-container[data-v-a7f92dcb]{border-radius:var(--radius-sm);background:var(--bg-depth-light);border:1px solid var(--bg-overlay-hover);width:100%;overflow-x:auto}table[data-v-a7f92dcb]{border-collapse:collapse;text-align:left;width:100%;font-size:.85rem}th[data-v-a7f92dcb]{background:var(--bg-depth);color:var(--text-secondary);border-bottom:1px solid var(--border-color);-webkit-user-select:none;user-select:none;text-transform:uppercase;letter-spacing:.05em;padding:.75rem 1rem;font-size:.75rem;font-weight:600}th.sortable[data-v-a7f92dcb]{cursor:pointer;transition:color var(--transition-fast), background-color var(--transition-fast)}th.sortable[data-v-a7f92dcb]:hover{color:var(--text-primary);background:var(--bg-overlay-hover)}th.active-sort[data-v-a7f92dcb]{color:var(--color-primary)}th.active-sort[data-v-a7f92dcb]:after{content:" ▾";font-weight:900}th.active-sort.asc[data-v-a7f92dcb]:after{content:" ▴"}td[data-v-a7f92dcb]{border-bottom:1px solid var(--border-color);vertical-align:middle;padding:.75rem 1rem}.main-row[data-v-a7f92dcb]{transition:background-color var(--transition-fast)}.main-row[data-v-a7f92dcb]:hover{background:var(--bg-overlay-hover)}.main-row.expanded[data-v-a7f92dcb]{background:var(--color-primary-glow)}.expand-cell[data-v-a7f92dcb]{text-align:center;cursor:pointer;width:36px}.chevron[data-v-a7f92dcb]{transition:transform var(--transition-fast);color:var(--text-secondary);font-size:.65rem;display:inline-block}.chevron.open[data-v-a7f92dcb]{color:var(--color-primary);transform:rotate(90deg)}.desc-cell[data-v-a7f92dcb]{cursor:pointer;max-width:350px}.desc-title[data-v-a7f92dcb]{color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.desc-meta[data-v-a7f92dcb]{color:var(--text-muted);margin-top:.15rem;font-size:.75rem}.acc-link[data-v-a7f92dcb]{color:var(--color-primary);transition:border-color var(--transition-fast);border-bottom:1px dashed #3b82f64d;font-weight:500;text-decoration:none}.acc-link[data-v-a7f92dcb]:hover{border-bottom-color:var(--color-primary)}.numeric-cell[data-v-a7f92dcb]{font-weight:500}.action-col[data-v-a7f92dcb]{text-align:center;width:90px}.btn-xs[data-v-a7f92dcb]{border-radius:4px;padding:.25rem .5rem;font-size:.7rem}.btn-sm[data-v-a7f92dcb]{border-radius:4px;padding:.35rem .75rem;font-size:.75rem}.expand-row[data-v-a7f92dcb]{background:#0003}.expanded-container[data-v-a7f92dcb]{border-left:2px solid var(--color-primary);padding:1.25rem}.hsp-summary-box[data-v-a7f92dcb]{flex-direction:column;gap:.75rem;display:flex}.hsp-summary-title[data-v-a7f92dcb]{color:var(--text-secondary);font-size:.8rem;font-weight:600}.hsp-grid[data-v-a7f92dcb]{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:.75rem;display:grid}.hsp-item-card[data-v-a7f92dcb]{border:1px solid var(--border-color);border-radius:var(--radius-sm);background:#ffffff05;flex-direction:column;gap:.5rem;padding:.75rem;display:flex}.hsp-card-header[data-v-a7f92dcb]{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;padding-bottom:.35rem;display:flex}.hsp-badge[data-v-a7f92dcb]{font-family:var(--font-mono);color:var(--text-primary);font-size:.75rem;font-weight:600}.hsp-card-body[data-v-a7f92dcb]{flex-direction:column;gap:.25rem;font-size:.8rem;display:flex}.hsp-detail-row[data-v-a7f92dcb]{justify-content:space-between;display:flex}.hsp-det-lbl[data-v-a7f92dcb]{color:var(--text-secondary)}.hsp-det-val[data-v-a7f92dcb]{color:var(--text-primary);font-weight:500}.empty-cell[data-v-a7f92dcb]{text-align:center;color:var(--text-secondary);padding:2rem;font-style:italic}.pagination[data-v-a7f92dcb]{justify-content:center;align-items:center;gap:1.5rem;margin-top:.5rem;font-size:.85rem;display:flex}.btn-pagination[data-v-a7f92dcb]{padding:.4rem .8rem;font-size:.8rem}.page-indicator[data-v-a7f92dcb]{color:var(--text-secondary)}.page-indicator strong[data-v-a7f92dcb]{color:var(--text-primary)}@media (width<=1024px){.table-controls[data-v-a7f92dcb]{flex-direction:column;align-items:flex-start}.search-box[data-v-a7f92dcb]{max-width:100%}}.blast-alignments[data-v-ce883d4f]{flex-direction:column;gap:1.25rem;display:flex}.alignments-title h2[data-v-ce883d4f]{margin-bottom:.25rem;font-size:1.15rem;font-weight:600}.alignments-title p[data-v-ce883d4f]{color:var(--text-secondary);font-size:.85rem}.hit-alignments-list[data-v-ce883d4f]{flex-direction:column;gap:1rem;display:flex}.hit-alignment-card[data-v-ce883d4f]{border-radius:var(--radius-md);transition:all var(--transition-normal);overflow:hidden}.hit-alignment-card.highlighted-flash[data-v-ce883d4f]{box-shadow:0 0 25px var(--color-primary-glow), inset 0 0 15px #3b82f633;border-color:var(--color-primary);animation:2.5s infinite pulse-glow}.alignment-card-header[data-v-ce883d4f]{cursor:pointer;background:var(--bg-overlay-1);-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;padding:1rem 1.25rem;display:flex}.alignment-card-header[data-v-ce883d4f]:hover{background:var(--bg-overlay-hover)}.header-desc[data-v-ce883d4f]{align-items:center;gap:.75rem;min-width:0;display:flex}.chevron-icon[data-v-ce883d4f]{color:var(--text-secondary);transition:transform var(--transition-fast);font-size:.65rem;display:inline-block}.chevron-icon.open[data-v-ce883d4f]{color:var(--color-primary);transform:rotate(90deg)}.hit-title-box[data-v-ce883d4f]{align-items:center;gap:.75rem;min-width:0;display:flex}.hit-index-badge[data-v-ce883d4f]{background:var(--bg-overlay-1);color:var(--text-secondary);border-radius:4px;flex-shrink:0;padding:.15rem .5rem;font-size:.75rem;font-weight:600}.hit-main-title[data-v-ce883d4f]{color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.header-meta[data-v-ce883d4f]{flex-shrink:0;align-items:center;gap:.75rem;display:flex}.accession-badge[data-v-ce883d4f]{background:var(--color-primary-glow);color:var(--color-primary);border-radius:4px;padding:.15rem .5rem;font-size:.75rem;font-weight:600}.length-badge[data-v-ce883d4f]{color:var(--text-muted);font-size:.75rem}.alignment-card-content[data-v-ce883d4f]{border-top:1px solid var(--border-color);background:var(--bg-depth-light);flex-direction:column;gap:2rem;padding:1.5rem;display:flex}.hsp-alignment-box[data-v-ce883d4f]{flex-direction:column;gap:1.25rem;display:flex}.hsp-alignment-box[data-v-ce883d4f]:not(:last-child){border-bottom:1px dashed var(--border-color);padding-bottom:2rem}.hsp-stats-banner[data-v-ce883d4f]{background:var(--bg-depth);border:1px solid var(--border-color);border-radius:var(--radius-sm);flex-direction:column;gap:.35rem;padding:.75rem 1rem;display:flex}.hsp-banner-title[data-v-ce883d4f]{color:var(--color-primary);font-size:.85rem;font-weight:700}.hsp-stats-grid[data-v-ce883d4f]{flex-wrap:wrap;gap:1.5rem;display:flex}.hsp-stat-item[data-v-ce883d4f]{gap:.35rem;font-size:.8rem;display:flex}.hsp-stat-item .lbl[data-v-ce883d4f]{color:var(--text-secondary)}.hsp-stat-item .val[data-v-ce883d4f]{color:var(--text-primary);font-weight:600}.sequence-alignment-area[data-v-ce883d4f]{background:var(--bg-depth);border-radius:var(--radius-sm);border:1px solid var(--bg-overlay-hover);flex-direction:column;gap:1.25rem;padding:1rem;display:flex;overflow-x:auto}.alignment-block[data-v-ce883d4f]{flex-direction:column;gap:.15rem;min-width:fit-content;display:flex}.alignment-line[data-v-ce883d4f]{align-items:center;display:flex}.line-label[data-v-ce883d4f]{width:50px;color:var(--text-secondary);-webkit-user-select:none;user-select:none;font-size:.75rem;font-weight:600}.line-coord[data-v-ce883d4f]{width:50px;color:var(--text-muted);-webkit-user-select:none;user-select:none;font-size:.8rem}.start-coord[data-v-ce883d4f]{text-align:right;padding-right:12px}.end-coord[data-v-ce883d4f]{text-align:left;padding-left:12px}.line-chars[data-v-ce883d4f]{font-size:.95rem;font-weight:500;display:flex}.char-cell[data-v-ce883d4f]{text-align:center;width:11px;height:20px;transition:background-color var(--transition-fast);justify-content:center;align-items:center;display:inline-flex}.query-line .char-cell.match[data-v-ce883d4f],.sbjct-line .char-cell.match[data-v-ce883d4f]{color:var(--text-primary);background-color:#10b9810f}.query-line .char-cell.positive[data-v-ce883d4f],.sbjct-line .char-cell.positive[data-v-ce883d4f]{color:var(--text-primary);background-color:#8b5cf60f}.query-line .char-cell.mismatch[data-v-ce883d4f],.sbjct-line .char-cell.mismatch[data-v-ce883d4f]{color:#fb923c;background-color:#fb923c0d}.query-line .char-cell.gap[data-v-ce883d4f],.sbjct-line .char-cell.gap[data-v-ce883d4f]{color:var(--color-danger);background-color:#ef44441f;font-weight:700}.midline .char-cell[data-v-ce883d4f]{color:var(--text-muted);opacity:.4;font-size:.7rem}.midline .char-cell.match[data-v-ce883d4f]{color:var(--color-success);opacity:.85}.midline .char-cell.positive[data-v-ce883d4f]{color:var(--color-secondary);opacity:.85}.blast-viewer[data-v-e1f420c8]{flex-direction:column;gap:1.5rem;width:100%;display:flex}.error-panel[data-v-e1f420c8]{text-align:center;border-color:var(--color-danger);flex-direction:column;align-items:center;gap:1rem;max-width:600px;margin:2rem auto;padding:3rem 2rem;display:flex}.error-icon[data-v-e1f420c8]{font-size:3rem}.error-panel h3[data-v-e1f420c8]{color:var(--color-danger);font-size:1.25rem;font-weight:700}.error-panel p[data-v-e1f420c8]{color:var(--text-secondary);font-size:.9rem}.tabs-container[data-v-e1f420c8]{border-radius:var(--radius-md);margin-bottom:2rem;overflow:hidden}.tabs-header[data-v-e1f420c8]{background:var(--bg-depth);border-bottom:1px solid var(--border-color);display:flex}.tab-btn[data-v-e1f420c8]{color:var(--text-secondary);font-family:var(--font-sans);cursor:pointer;transition:all var(--transition-fast);background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:.5rem;padding:1.25rem 2rem;font-size:.9rem;font-weight:600;display:flex}.tab-btn[data-v-e1f420c8]:hover{color:var(--text-primary);background:var(--bg-overlay-1)}.tab-btn.active[data-v-e1f420c8]{color:var(--color-primary);border-bottom-color:var(--color-primary);background:var(--bg-overlay-1)}.tabs-content[data-v-e1f420c8]{padding:0}.tab-panel[data-v-e1f420c8]{animation:fadeIn var(--transition-normal)}[data-v-e1f420c8] .blast-hit-table,[data-v-e1f420c8] .blast-alignments{box-shadow:none!important;-webkit-backdrop-filter:none!important;background:0 0!important;border:none!important}@media (width<=600px){.tabs-header[data-v-e1f420c8]{flex-direction:column}.tab-btn[data-v-e1f420c8]{text-align:left;border-bottom:none;border-left:2px solid #0000;width:100%;padding:1rem}.tab-btn.active[data-v-e1f420c8]{border-left-color:var(--color-primary)}}
2
+ /*$vite$:1*/
@@ -0,0 +1,670 @@
1
+ import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createStaticVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, nextTick as l, normalizeClass as u, normalizeStyle as d, onMounted as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, vModelText as _, vShow as v, watch as y, withDirectives as b, withModifiers as x } from "vue";
2
+ //#region src/components/BlastHeader.vue?vue&type=script&setup=true&lang.ts
3
+ var S = { class: "blast-header fade-in" }, C = { class: "header-main glass-panel" }, w = { class: "title-section" }, T = { class: "query-meta" }, E = ["href"], D = { class: "version-section" }, O = { class: "version-text" }, k = { class: "stats-grid" }, A = { class: "stat-card glass-panel" }, j = { class: "stat-info" }, M = { class: "stat-value" }, N = { class: "stat-unit" }, P = { class: "stat-card glass-panel" }, F = { class: "stat-info" }, I = { class: "stat-value" }, ee = { class: "stat-card glass-panel" }, te = { class: "stat-info" }, ne = { class: "stat-value" }, re = { class: "stat-card glass-panel" }, L = { class: "stat-info" }, R = { class: "stat-value" }, z = /*@__PURE__*/ c({
4
+ __name: "BlastHeader",
5
+ props: {
6
+ searchData: {},
7
+ program: {},
8
+ version: {},
9
+ db: {},
10
+ queryLink: {}
11
+ },
12
+ setup(e) {
13
+ let n = e, a = t(() => {
14
+ let e = n.program.toLowerCase();
15
+ return e.includes("p") || e.includes("x") || e.includes("tblast");
16
+ }), s = t(() => a.value ? "aa" : "bp"), c = t(() => {
17
+ let e = 0;
18
+ return n.searchData.hits.forEach((t) => {
19
+ t.hsps.forEach((t) => {
20
+ t.bit_score > e && (e = t.bit_score);
21
+ });
22
+ }), e.toFixed(1);
23
+ }), l = t(() => {
24
+ let e = Infinity;
25
+ return n.searchData.hits.forEach((t) => {
26
+ t.hsps.forEach((t) => {
27
+ t.evalue < e && (e = t.evalue);
28
+ });
29
+ }), e === Infinity ? "N/A" : e === 0 ? "0.0" : e.toExponential(2);
30
+ }), d = (e) => n.queryLink ? n.queryLink.replace("{accession}", e) : `https://www.ncbi.nlm.nih.gov/${a.value ? "protein" : "nucleotide"}/${e}`;
31
+ return (t, n) => (p(), r("div", S, [i("div", C, [i("div", w, [
32
+ i("span", { class: u(["program-badge", e.program.toLowerCase()]) }, g(e.program), 3),
33
+ i("h1", null, g(e.searchData.query_title), 1),
34
+ i("p", T, [
35
+ n[0] ||= i("strong", null, "Query ID:", -1),
36
+ i("a", {
37
+ href: d(e.searchData.query_id),
38
+ target: "_blank",
39
+ class: "query-link sequence-font"
40
+ }, g(e.searchData.query_id), 9, E),
41
+ n[1] ||= o(" | ", -1),
42
+ n[2] ||= i("strong", null, "Database:", -1),
43
+ o(" " + g(e.db), 1)
44
+ ])
45
+ ]), i("div", D, [i("span", O, g(e.version), 1)])]), i("div", k, [
46
+ i("div", A, [n[4] ||= i("div", { class: "stat-icon" }, "🧬", -1), i("div", j, [n[3] ||= i("span", { class: "stat-label" }, "Query Length", -1), i("span", M, [o(g(e.searchData.query_len) + " ", 1), i("span", N, g(s.value), 1)])])]),
47
+ i("div", P, [n[6] ||= i("div", { class: "stat-icon" }, "🎯", -1), i("div", F, [n[5] ||= i("span", { class: "stat-label" }, "Number of Hits", -1), i("span", I, g(e.searchData.hits.length), 1)])]),
48
+ i("div", ee, [n[8] ||= i("div", { class: "stat-icon" }, "⚡", -1), i("div", te, [n[7] ||= i("span", { class: "stat-label" }, "Max Bit Score", -1), i("span", ne, g(c.value), 1)])]),
49
+ i("div", re, [n[10] ||= i("div", { class: "stat-icon" }, "📉", -1), i("div", L, [n[9] ||= i("span", { class: "stat-label" }, "Lowest E-Value", -1), i("span", R, g(l.value), 1)])])
50
+ ])]));
51
+ }
52
+ }), B = (e, t) => {
53
+ let n = e.__vccOpts || e;
54
+ for (let [e, r] of t) n[e] = r;
55
+ return n;
56
+ }, V = /*#__PURE__*/ B(z, [["__scopeId", "data-v-71c69c51"]]), H = { class: "blast-graphics glass-panel fade-in" }, U = { class: "svg-container" }, W = ["viewBox"], G = { class: "grid-lines" }, K = [
57
+ "x1",
58
+ "y1",
59
+ "x2",
60
+ "y2"
61
+ ], q = { class: "query-ruler" }, J = ["x", "y"], Y = ["x", "y"], X = [
62
+ "x1",
63
+ "y1",
64
+ "x2",
65
+ "y2"
66
+ ], ie = ["x", "y"], ae = {
67
+ class: "hits-group",
68
+ transform: "translate(0, 30)"
69
+ }, oe = ["onClick"], se = [
70
+ "x",
71
+ "y",
72
+ "width",
73
+ "height"
74
+ ], ce = [
75
+ "x1",
76
+ "y1",
77
+ "x2",
78
+ "y2"
79
+ ], le = [
80
+ "x",
81
+ "y",
82
+ "width",
83
+ "fill",
84
+ "onMouseenter"
85
+ ], ue = ["x", "y"], de = { class: "tooltip-title" }, fe = { class: "tooltip-acc" }, pe = { class: "val" }, me = { class: "val" }, he = { class: "val" }, ge = { class: "val" }, _e = { class: "val" }, ve = { class: "val" }, Z = 1e3, Q = 10, ye = /*#__PURE__*/ B(/* @__PURE__ */ c({
86
+ __name: "BlastGraphicViewer",
87
+ props: {
88
+ searchData: {},
89
+ isProtein: { type: Boolean }
90
+ },
91
+ emits: ["select-hit"],
92
+ setup(o, { emit: s }) {
93
+ let c = o, l = s, f = {
94
+ top: 50,
95
+ right: 40,
96
+ bottom: 25,
97
+ left: 40
98
+ }, _ = Z - f.left - f.right, v = m(!1), y = m(0), b = m(0), x = m(null), S = m(null), C = t(() => {
99
+ let e = c.searchData.hits.length;
100
+ return e === 0 ? f.top + f.bottom + 40 : f.top + 30 + e * 22 + f.bottom;
101
+ }), w = (e) => e < 40 ? "var(--blast-score-low)" : e >= 40 && e < 50 ? "var(--blast-score-mid-low)" : e >= 50 && e < 80 ? "var(--blast-score-mid)" : e >= 80 && e < 200 ? "var(--blast-score-mid-high)" : "var(--blast-score-high)", T = t(() => {
102
+ let e = c.searchData.query_len, t = 50;
103
+ e > 100 && e <= 500 ? t = 100 : e > 500 && e <= 2e3 ? t = 200 : e > 2e3 && e <= 1e4 ? t = 1e3 : e > 1e4 && (t = 5e3);
104
+ let n = [];
105
+ for (let r = 0; r <= e; r += t) n.push(r);
106
+ return n[n.length - 1] !== e && (e - n[n.length - 1] < t / 3 ? n[n.length - 1] = e : n.push(e)), n.map((t) => ({
107
+ value: t,
108
+ x: f.left + t / e * _
109
+ }));
110
+ }), E = (e) => f.left + (e - 1) / c.searchData.query_len * _, D = (e, t, n) => {
111
+ v.value = !0, O(e);
112
+ let r = t.description[0], i = c.searchData.query_len, a = Math.round(n.align_len / i * 100), o = Math.round(n.identity / n.align_len * 100);
113
+ x.value = {
114
+ title: r.title,
115
+ accession: r.accession,
116
+ bitScore: n.bit_score,
117
+ evalue: n.evalue,
118
+ identity: o,
119
+ coverage: a,
120
+ qFrom: n.query_from,
121
+ qTo: n.query_to,
122
+ hFrom: n.hit_from,
123
+ hTo: n.hit_to
124
+ };
125
+ }, O = (e) => {
126
+ let t = e.currentTarget.ownerSVGElement;
127
+ if (!t) return;
128
+ let n = t.getBoundingClientRect();
129
+ y.value = e.clientX - n.left + 15, b.value = e.clientY - n.top + 15;
130
+ }, k = () => {
131
+ v.value = !1, x.value = null, S.value = null;
132
+ }, A = (e) => {
133
+ l("select-hit", e);
134
+ };
135
+ return (t, s) => (p(), r("div", H, [s[7] ||= a("<div class=\"graphics-header\" data-v-57bf6043><h2 data-v-57bf6043>Graphical Alignment Overview</h2><p data-v-57bf6043>Hover over alignment bars for details. Click to view full text alignments.</p></div><div class=\"color-legend\" data-v-57bf6043><div class=\"legend-title\" data-v-57bf6043>Color Key for Alignment Scores:</div><div class=\"legend-items\" data-v-57bf6043><div class=\"legend-item\" data-v-57bf6043><span class=\"legend-color\" style=\"background-color:var(--blast-score-low);\" data-v-57bf6043></span><span class=\"legend-label\" data-v-57bf6043>&lt; 40</span></div><div class=\"legend-item\" data-v-57bf6043><span class=\"legend-color\" style=\"background-color:var(--blast-score-mid-low);\" data-v-57bf6043></span><span class=\"legend-label\" data-v-57bf6043>40-50</span></div><div class=\"legend-item\" data-v-57bf6043><span class=\"legend-color\" style=\"background-color:var(--blast-score-mid);\" data-v-57bf6043></span><span class=\"legend-label\" data-v-57bf6043>50-80</span></div><div class=\"legend-item\" data-v-57bf6043><span class=\"legend-color\" style=\"background-color:var(--blast-score-mid-high);\" data-v-57bf6043></span><span class=\"legend-label\" data-v-57bf6043>80-200</span></div><div class=\"legend-item\" data-v-57bf6043><span class=\"legend-color\" style=\"background-color:var(--blast-score-high);\" data-v-57bf6043></span><span class=\"legend-label\" data-v-57bf6043>≥ 200</span></div></div></div>", 2), i("div", U, [(p(), r("svg", {
136
+ viewBox: `0 0 ${Z} ${C.value}`,
137
+ width: "100%",
138
+ class: "alignment-svg"
139
+ }, [
140
+ i("g", G, [(p(!0), r(e, null, h(T.value, (e) => (p(), r("line", {
141
+ key: "grid-" + e.value,
142
+ x1: e.x,
143
+ y1: f.top - 10,
144
+ x2: e.x,
145
+ y2: C.value - f.bottom,
146
+ stroke: "var(--bg-overlay-hover)",
147
+ "stroke-dasharray": "4,4"
148
+ }, null, 8, K))), 128))]),
149
+ i("g", q, [
150
+ i("rect", {
151
+ x: f.left,
152
+ y: f.top - 20,
153
+ width: _,
154
+ height: "10",
155
+ rx: "5",
156
+ fill: "var(--color-primary-glow)",
157
+ stroke: "var(--color-primary)",
158
+ "stroke-width": "1.5"
159
+ }, null, 8, J),
160
+ i("text", {
161
+ x: f.left,
162
+ y: f.top - 28,
163
+ fill: "var(--color-primary)",
164
+ "font-size": "11",
165
+ "font-weight": "600"
166
+ }, " QUERY (" + g(o.searchData.query_len) + " " + g(o.isProtein ? "aa" : "bp") + ") ", 9, Y),
167
+ (p(!0), r(e, null, h(T.value, (e) => (p(), r("g", { key: "tick-" + e.value }, [i("line", {
168
+ x1: e.x,
169
+ y1: f.top - 10,
170
+ x2: e.x,
171
+ y2: f.top - 4,
172
+ stroke: "var(--text-secondary)",
173
+ "stroke-width": "1.5"
174
+ }, null, 8, X), i("text", {
175
+ x: e.x,
176
+ y: f.top + 8,
177
+ "text-anchor": "middle",
178
+ fill: "var(--text-secondary)",
179
+ "font-family": "var(--font-mono)",
180
+ "font-size": "10"
181
+ }, g(e.value), 9, ie)]))), 128))
182
+ ]),
183
+ i("g", ae, [(p(!0), r(e, null, h(o.searchData.hits, (t, a) => (p(), r("g", {
184
+ key: t.num,
185
+ class: u(["hit-row", { "is-hovered": S.value === a }]),
186
+ onClick: (e) => A(t.num)
187
+ }, [
188
+ i("rect", {
189
+ x: f.left - 5,
190
+ y: f.top + a * 22 - 4,
191
+ width: _ + 10,
192
+ height: 18,
193
+ fill: "var(--bg-overlay-hover)",
194
+ class: "row-hover-bg",
195
+ rx: "4"
196
+ }, null, 8, se),
197
+ t.hsps.length > 1 ? (p(), r("line", {
198
+ key: 0,
199
+ x1: E(Math.min(...t.hsps.map((e) => e.query_from))),
200
+ y1: f.top + a * 22 + Q / 2,
201
+ x2: E(Math.max(...t.hsps.map((e) => e.query_to))),
202
+ y2: f.top + a * 22 + Q / 2,
203
+ stroke: "var(--text-muted)",
204
+ "stroke-width": "1",
205
+ "stroke-dasharray": "3,3"
206
+ }, null, 8, ce)) : n("", !0),
207
+ (p(!0), r(e, null, h(t.hsps, (e) => (p(), r("rect", {
208
+ key: e.num,
209
+ x: E(e.query_from),
210
+ y: f.top + a * 22,
211
+ width: Math.max(2, E(e.query_to) - E(e.query_from)),
212
+ height: Q,
213
+ fill: w(e.bit_score),
214
+ class: "hsp-bar",
215
+ rx: "2",
216
+ onMouseenter: (n) => {
217
+ S.value = a, D(n, t, e);
218
+ },
219
+ onMousemove: O,
220
+ onMouseleave: k
221
+ }, null, 40, le))), 128)),
222
+ i("text", {
223
+ x: f.left - 8,
224
+ y: f.top + a * 22 + 8,
225
+ "text-anchor": "end",
226
+ fill: "var(--text-muted)",
227
+ "font-family": "var(--font-mono)",
228
+ "font-size": "9",
229
+ class: "hit-index-label"
230
+ }, g(a + 1), 9, ue)
231
+ ], 10, oe))), 128))])
232
+ ], 8, W)), v.value && x.value ? (p(), r("div", {
233
+ key: 0,
234
+ class: "blast-tooltip",
235
+ style: d({
236
+ left: y.value + "px",
237
+ top: b.value + "px"
238
+ })
239
+ }, [
240
+ i("div", de, g(x.value.title), 1),
241
+ i("div", fe, "Accession: " + g(x.value.accession), 1),
242
+ s[6] ||= i("hr", { class: "tooltip-divider" }, null, -1),
243
+ i("table", null, [
244
+ i("tr", null, [s[0] ||= i("td", { class: "label" }, "Bit Score:", -1), i("td", pe, g(x.value.bitScore.toFixed(1)), 1)]),
245
+ i("tr", null, [s[1] ||= i("td", { class: "label" }, "E-value:", -1), i("td", me, g(x.value.evalue === 0 ? "0.0" : x.value.evalue), 1)]),
246
+ i("tr", null, [s[2] ||= i("td", { class: "label" }, "Identities:", -1), i("td", he, g(x.value.identity) + "%", 1)]),
247
+ i("tr", null, [s[3] ||= i("td", { class: "label" }, "Query Cover:", -1), i("td", ge, g(x.value.coverage) + "%", 1)]),
248
+ i("tr", null, [s[4] ||= i("td", { class: "label" }, "Query:", -1), i("td", _e, g(x.value.qFrom) + " .. " + g(x.value.qTo), 1)]),
249
+ i("tr", null, [s[5] ||= i("td", { class: "label" }, "Subject:", -1), i("td", ve, g(x.value.hFrom) + " .. " + g(x.value.hTo), 1)])
250
+ ])
251
+ ], 4)) : n("", !0)])]));
252
+ }
253
+ }), [["__scopeId", "data-v-57bf6043"]]), be = { class: "blast-hit-table glass-panel fade-in" }, xe = { class: "table-controls" }, Se = { class: "title-group" }, Ce = { class: "results-count" }, we = { class: "controls-right" }, Te = { class: "search-box" }, Ee = { class: "table-container" }, De = ["onClick"], Oe = ["onClick"], ke = ["title"], Ae = {
254
+ key: 0,
255
+ class: "desc-meta"
256
+ }, je = { class: "acc-cell sequence-font" }, Me = ["href"], Ne = { class: "numeric-cell sequence-font" }, Pe = { class: "numeric-cell sequence-font" }, Fe = { class: "numeric-cell sequence-font" }, Ie = { class: "numeric-cell sequence-font" }, Le = { class: "numeric-cell sequence-font" }, Re = { class: "action-cell" }, ze = ["onClick"], Be = {
257
+ key: 0,
258
+ class: "expand-row"
259
+ }, Ve = {
260
+ colspan: "9",
261
+ class: "expanded-container"
262
+ }, He = { class: "hsp-summary-box" }, Ue = { class: "hsp-grid" }, We = { class: "hsp-card-header" }, Ge = { class: "hsp-badge" }, Ke = ["onClick"], qe = { class: "hsp-card-body" }, Je = { class: "hsp-detail-row" }, Ye = { class: "hsp-det-val sequence-font" }, Xe = { class: "hsp-detail-row" }, Ze = { class: "hsp-det-val sequence-font" }, Qe = { class: "hsp-detail-row" }, $e = { class: "hsp-det-val sequence-font" }, et = {
263
+ key: 0,
264
+ class: "hsp-detail-row"
265
+ }, tt = { class: "hsp-det-val sequence-font" }, nt = { class: "hsp-detail-row" }, rt = { class: "hsp-det-val sequence-font" }, it = { class: "hsp-detail-row" }, at = { class: "hsp-det-val sequence-font" }, ot = { key: 0 }, st = {
266
+ colspan: "9",
267
+ class: "empty-cell"
268
+ }, ct = {
269
+ key: 0,
270
+ class: "pagination"
271
+ }, lt = ["disabled"], ut = { class: "page-indicator" }, dt = ["disabled"], ft = /*#__PURE__*/ B(/* @__PURE__ */ c({
272
+ __name: "BlastHitTable",
273
+ props: {
274
+ searchData: {},
275
+ isProtein: { type: Boolean },
276
+ subjectLink: {}
277
+ },
278
+ emits: ["select-hit"],
279
+ setup(a, { emit: s }) {
280
+ let c = a, l = s, d = m(""), f = m("totalScore"), v = m("desc"), y = m(1), x = m(10), S = m({}), C = (e, t) => {
281
+ let n = e.hsps.map((e) => [Math.min(e.query_from, e.query_to), Math.max(e.query_from, e.query_to)]).sort((e, t) => e[0] - t[0]);
282
+ if (n.length === 0) return 0;
283
+ let r = [n[0]];
284
+ for (let e = 1; e < n.length; e++) {
285
+ let t = r[r.length - 1], i = n[e];
286
+ i[0] <= t[1] ? t[1] = Math.max(t[1], i[1]) : r.push(i);
287
+ }
288
+ let i = r.reduce((e, t) => e + (t[1] - t[0] + 1), 0);
289
+ return Math.round(i / t * 100);
290
+ }, w = (e) => {
291
+ let t = 0, n = 0, r = Infinity, i = 0;
292
+ return e.hsps.forEach((e) => {
293
+ t += e.bit_score, e.bit_score > n && (n = e.bit_score), e.evalue < r && (r = e.evalue);
294
+ let a = e.identity / e.align_len * 100;
295
+ a > i && (i = a);
296
+ }), {
297
+ totalScore: t,
298
+ maxScore: n,
299
+ evalue: r,
300
+ identity: Math.round(i * 10) / 10,
301
+ coverage: C(e, c.searchData.query_len)
302
+ };
303
+ }, T = t(() => c.searchData.hits.map((e) => {
304
+ let t = w(e), n = e.description[0];
305
+ return {
306
+ raw: e,
307
+ num: e.num,
308
+ title: n.title,
309
+ accession: n.accession,
310
+ id: n.id,
311
+ taxid: n.taxid,
312
+ len: e.len,
313
+ ...t
314
+ };
315
+ })), E = t(() => {
316
+ let e = d.value.toLowerCase().trim();
317
+ return e ? T.value.filter((t) => t.title.toLowerCase().includes(e) || t.accession.toLowerCase().includes(e)) : T.value;
318
+ }), D = t(() => [...E.value].sort((e, t) => {
319
+ let n = e[f.value], r = t[f.value];
320
+ if (f.value === "evalue") {
321
+ if (n === r) return 0;
322
+ let e = v.value === "asc" ? 1 : -1;
323
+ return (n - r) * e;
324
+ }
325
+ return n < r ? v.value === "asc" ? -1 : 1 : n > r ? v.value === "asc" ? 1 : -1 : 0;
326
+ })), O = t(() => {
327
+ let e = (y.value - 1) * x.value, t = e + x.value;
328
+ return D.value.slice(e, t);
329
+ }), k = t(() => Math.ceil(D.value.length / x.value) || 1), A = (e) => {
330
+ f.value === e ? v.value = v.value === "asc" ? "desc" : "asc" : (f.value = e, v.value = e === "evalue" ? "asc" : "desc"), y.value = 1;
331
+ }, j = (e) => {
332
+ S.value[e] = !S.value[e];
333
+ }, M = (e) => {
334
+ l("select-hit", e);
335
+ }, N = (e) => e === 0 ? "0.0" : e < .001 ? e.toExponential(2) : e.toFixed(4), P = (e) => c.subjectLink ? c.subjectLink.replace("{accession}", e) : `https://www.ncbi.nlm.nih.gov/${c.isProtein ? "protein" : "nucleotide"}/${e}`, F = () => {
336
+ let e = [
337
+ "Description",
338
+ "Accession",
339
+ "Max Score",
340
+ "Total Score",
341
+ "Query Cover (%)",
342
+ "E-value",
343
+ "Identity (%)",
344
+ "Length"
345
+ ], t = E.value.map((e) => [
346
+ e.title.replace(/\t/g, " "),
347
+ e.accession,
348
+ e.maxScore.toFixed(1),
349
+ e.totalScore.toFixed(1),
350
+ `${e.coverage}%`,
351
+ e.evalue === 0 ? "0.0" : e.evalue.toString(),
352
+ `${e.identity}%`,
353
+ e.len.toString()
354
+ ]), n = [e.join(" "), ...t.map((e) => e.join(" "))].join("\n"), r = new Blob([n], { type: "text/tab-separated-values;charset=utf-8;" }), i = URL.createObjectURL(r), a = document.createElement("a");
355
+ a.setAttribute("href", i);
356
+ let o = c.searchData.query_id || "blast_results";
357
+ a.setAttribute("download", `${o}_hits.tsv`), a.style.visibility = "hidden", document.body.appendChild(a), a.click(), document.body.removeChild(a);
358
+ };
359
+ return (t, s) => (p(), r("div", be, [
360
+ i("div", xe, [i("div", Se, [s[10] ||= i("h2", null, "Sequences Producing Significant Alignments", -1), i("span", Ce, g(E.value.length) + " / " + g(a.searchData.hits.length) + " hits", 1)]), i("div", we, [i("button", {
361
+ class: "btn btn-secondary btn-sm export-btn",
362
+ onClick: F,
363
+ title: "Export current filtered hits to TSV"
364
+ }, " 📥 Export TSV "), i("div", Te, [b(i("input", {
365
+ "onUpdate:modelValue": s[0] ||= (e) => d.value = e,
366
+ type: "text",
367
+ placeholder: "Filter by description or accession...",
368
+ class: "input-text filter-input",
369
+ onInput: s[1] ||= (e) => y.value = 1
370
+ }, null, 544), [[_, d.value]]), d.value ? (p(), r("span", {
371
+ key: 0,
372
+ class: "clear-search",
373
+ onClick: s[2] ||= (e) => {
374
+ d.value = "", y.value = 1;
375
+ }
376
+ }, "✕")) : n("", !0)])])]),
377
+ i("div", Ee, [i("table", null, [i("thead", null, [i("tr", null, [
378
+ s[11] ||= i("th", { class: "expand-col" }, null, -1),
379
+ s[12] ||= i("th", { class: "desc-col" }, "Description", -1),
380
+ s[13] ||= i("th", { class: "acc-col" }, "Accession", -1),
381
+ i("th", {
382
+ class: u(["sortable", {
383
+ "active-sort": f.value === "maxScore",
384
+ [v.value]: f.value === "maxScore"
385
+ }]),
386
+ onClick: s[3] ||= (e) => A("maxScore")
387
+ }, "Max Score", 2),
388
+ i("th", {
389
+ class: u(["sortable", {
390
+ "active-sort": f.value === "totalScore",
391
+ [v.value]: f.value === "totalScore"
392
+ }]),
393
+ onClick: s[4] ||= (e) => A("totalScore")
394
+ }, "Total Score", 2),
395
+ i("th", {
396
+ class: u(["sortable", {
397
+ "active-sort": f.value === "coverage",
398
+ [v.value]: f.value === "coverage"
399
+ }]),
400
+ onClick: s[5] ||= (e) => A("coverage")
401
+ }, "Query Cover", 2),
402
+ i("th", {
403
+ class: u(["sortable", {
404
+ "active-sort": f.value === "evalue",
405
+ [v.value]: f.value === "evalue"
406
+ }]),
407
+ onClick: s[6] ||= (e) => A("evalue")
408
+ }, "E-value", 2),
409
+ i("th", {
410
+ class: u(["sortable", {
411
+ "active-sort": f.value === "identity",
412
+ [v.value]: f.value === "identity"
413
+ }]),
414
+ onClick: s[7] ||= (e) => A("identity")
415
+ }, "Ident (%)", 2),
416
+ s[14] ||= i("th", { class: "action-col" }, "Alignment", -1)
417
+ ])]), i("tbody", null, [(p(!0), r(e, null, h(O.value, (t) => (p(), r(e, { key: t.num }, [i("tr", { class: u(["main-row", { expanded: S.value[t.num] }]) }, [
418
+ i("td", {
419
+ class: "expand-cell",
420
+ onClick: (e) => j(t.num)
421
+ }, [i("span", { class: u(["chevron", { open: S.value[t.num] }]) }, "▶", 2)], 8, De),
422
+ i("td", {
423
+ class: "desc-cell",
424
+ onClick: (e) => j(t.num)
425
+ }, [i("div", {
426
+ class: "desc-title",
427
+ title: t.title
428
+ }, g(t.title), 9, ke), t.taxid ? (p(), r("div", Ae, "Tax ID: " + g(t.taxid) + " | Length: " + g(t.len), 1)) : n("", !0)], 8, Oe),
429
+ i("td", je, [i("a", {
430
+ href: P(t.accession),
431
+ target: "_blank",
432
+ class: "acc-link"
433
+ }, g(t.accession), 9, Me)]),
434
+ i("td", Ne, g(t.maxScore.toFixed(1)), 1),
435
+ i("td", Pe, g(t.totalScore.toFixed(1)), 1),
436
+ i("td", Fe, g(t.coverage) + "%", 1),
437
+ i("td", Ie, g(N(t.evalue)), 1),
438
+ i("td", Le, g(t.identity) + "%", 1),
439
+ i("td", Re, [i("button", {
440
+ class: "btn btn-secondary btn-sm",
441
+ onClick: (e) => M(t.num)
442
+ }, " View ", 8, ze)])
443
+ ], 2), S.value[t.num] ? (p(), r("tr", Be, [i("td", Ve, [i("div", He, [s[21] ||= i("div", { class: "hsp-summary-title" }, "High-scoring Segment Pairs (HSPs) details for this hit:", -1), i("div", Ue, [(p(!0), r(e, null, h(t.raw.hsps, (e) => (p(), r("div", {
444
+ key: e.num,
445
+ class: "hsp-item-card"
446
+ }, [i("div", We, [i("span", Ge, "HSP " + g(e.num), 1), i("button", {
447
+ class: "btn btn-primary btn-xs",
448
+ onClick: (e) => M(t.num)
449
+ }, " Alignments Detail ", 8, Ke)]), i("div", qe, [
450
+ i("div", Je, [s[15] ||= i("span", { class: "hsp-det-lbl" }, "Bit Score:", -1), i("span", Ye, g(e.bit_score.toFixed(1)), 1)]),
451
+ i("div", Xe, [s[16] ||= i("span", { class: "hsp-det-lbl" }, "E-value:", -1), i("span", Ze, g(N(e.evalue)), 1)]),
452
+ i("div", Qe, [s[17] ||= i("span", { class: "hsp-det-lbl" }, "Identities:", -1), i("span", $e, g(e.identity) + " / " + g(e.align_len) + " (" + g(Math.round(e.identity / e.align_len * 100)) + "%) ", 1)]),
453
+ e.gaps > 0 ? (p(), r("div", et, [s[18] ||= i("span", { class: "hsp-det-lbl" }, "Gaps:", -1), i("span", tt, g(e.gaps), 1)])) : n("", !0),
454
+ i("div", nt, [s[19] ||= i("span", { class: "hsp-det-lbl" }, "Query Coordinates:", -1), i("span", rt, g(e.query_from) + " to " + g(e.query_to), 1)]),
455
+ i("div", it, [s[20] ||= i("span", { class: "hsp-det-lbl" }, "Subject Coordinates:", -1), i("span", at, g(e.hit_from) + " to " + g(e.hit_to), 1)])
456
+ ])]))), 128))])])])])) : n("", !0)], 64))), 128)), E.value.length === 0 ? (p(), r("tr", ot, [i("td", st, " No matching hits found for \"" + g(d.value) + "\" ", 1)])) : n("", !0)])])]),
457
+ k.value > 1 ? (p(), r("div", ct, [
458
+ i("button", {
459
+ class: "btn btn-secondary btn-pagination",
460
+ disabled: y.value === 1,
461
+ onClick: s[8] ||= (e) => y.value--
462
+ }, " ◀ Prev ", 8, lt),
463
+ i("span", ut, [
464
+ s[22] ||= o(" Page ", -1),
465
+ i("strong", null, g(y.value), 1),
466
+ s[23] ||= o(" of ", -1),
467
+ i("strong", null, g(k.value), 1)
468
+ ]),
469
+ i("button", {
470
+ class: "btn btn-secondary btn-pagination",
471
+ disabled: y.value === k.value,
472
+ onClick: s[9] ||= (e) => y.value++
473
+ }, " Next ▶ ", 8, dt)
474
+ ])) : n("", !0)
475
+ ]));
476
+ }
477
+ }), [["__scopeId", "data-v-a7f92dcb"]]), pt = { class: "blast-alignments fade-in" }, mt = { class: "hit-alignments-list" }, ht = ["onClick"], gt = { class: "header-desc" }, _t = { class: "hit-title-box" }, vt = { class: "hit-index-badge" }, yt = { class: "hit-main-title" }, bt = { class: "header-meta" }, xt = ["href"], St = { class: "length-badge" }, Ct = {
478
+ key: 0,
479
+ class: "alignment-card-content"
480
+ }, wt = { class: "hsp-stats-banner" }, Tt = { class: "hsp-banner-title" }, Et = { class: "hsp-stats-grid" }, Dt = { class: "hsp-stat-item" }, Ot = { class: "val sequence-font" }, kt = { class: "hsp-stat-item" }, At = { class: "val sequence-font" }, jt = { class: "hsp-stat-item" }, Mt = { class: "val sequence-font" }, Nt = {
481
+ key: 0,
482
+ class: "hsp-stat-item"
483
+ }, Pt = { class: "val sequence-font" }, Ft = {
484
+ key: 1,
485
+ class: "hsp-stat-item"
486
+ }, It = { class: "val sequence-font" }, Lt = { class: "sequence-alignment-area" }, Rt = { class: "alignment-line query-line" }, zt = { class: "line-coord start-coord sequence-font" }, Bt = { class: "line-chars sequence-font" }, $ = { class: "line-coord end-coord sequence-font" }, Vt = { class: "alignment-line midline" }, Ht = { class: "line-chars sequence-font" }, Ut = { class: "alignment-line sbjct-line" }, Wt = { class: "line-coord start-coord sequence-font" }, Gt = { class: "line-chars sequence-font" }, Kt = { class: "line-coord end-coord sequence-font" }, qt = /*#__PURE__*/ B(/* @__PURE__ */ c({
487
+ __name: "BlastAlignmentDetails",
488
+ props: {
489
+ searchData: {},
490
+ isProtein: { type: Boolean },
491
+ selectedHitNum: {},
492
+ subjectLink: {}
493
+ },
494
+ setup(t) {
495
+ let a = t, o = m({}), s = m({}), c = m(null);
496
+ f(() => {
497
+ a.searchData.hits.length > 0 && (o.value[a.searchData.hits[0].num] = !0);
498
+ }), y(() => a.selectedHitNum, async (e) => {
499
+ if (e !== null) {
500
+ o.value[e] = !0, c.value = e, await l();
501
+ let t = s.value[e];
502
+ t && (t.scrollIntoView({
503
+ behavior: "smooth",
504
+ block: "center"
505
+ }), setTimeout(() => {
506
+ c.value === e && (c.value = null);
507
+ }, 2500));
508
+ }
509
+ });
510
+ let d = (e, t) => {
511
+ t && (s.value[e] = t);
512
+ }, _ = (e) => {
513
+ o.value[e] = !o.value[e];
514
+ }, v = (e) => {
515
+ let t = e.qseq, n = e.hseq, r = e.midline, i = t.length, a = [], o = e.query_from, s = e.hit_from, c = e.hit_strand === "minus" || e.hit_to < e.hit_from;
516
+ for (let e = 0; e < i; e += 60) {
517
+ let l = Math.min(e + 60, i), u = [], d = o, f = s, p = 0, m = 0;
518
+ for (let i = e; i < l; i++) {
519
+ let e = t[i], a = n[i], l = r[i] || " ", d = "mismatch";
520
+ e === "-" || a === "-" ? d = "gap" : l === "|" ? d = "match" : l === "+" ? d = "positive" : e === a && (l = "|", d = "match"), u.push({
521
+ q: e,
522
+ h: a,
523
+ m: l,
524
+ type: d
525
+ }), e !== "-" && (o++, p++), a !== "-" && (c ? s-- : s++, m++);
526
+ }
527
+ let h = d + (p > 0 ? p - 1 : 0), g = c ? f - (m > 0 ? m - 1 : 0) : f + (m > 0 ? m - 1 : 0);
528
+ a.push({
529
+ queryStart: d,
530
+ queryEnd: h,
531
+ sbjctStart: f,
532
+ sbjctEnd: g,
533
+ columns: u
534
+ });
535
+ }
536
+ return a;
537
+ }, b = (e) => e === 0 ? "0.0" : e < .001 ? e.toExponential(2) : e.toFixed(4), S = (e) => a.subjectLink ? a.subjectLink.replace("{accession}", e) : `https://www.ncbi.nlm.nih.gov/${a.isProtein ? "protein" : "nucleotide"}/${e}`;
538
+ return (a, s) => (p(), r("div", pt, [s[11] ||= i("div", { class: "alignments-title" }, [i("h2", null, "Detailed Pairwise Alignments"), i("p", null, "Click headers to collapse/expand. Matching bases/residues are color-highlighted.")], -1), i("div", mt, [(p(!0), r(e, null, h(t.searchData.hits, (t, a) => (p(), r("div", {
539
+ key: t.num,
540
+ ref_for: !0,
541
+ ref: (e) => d(t.num, e),
542
+ class: u(["hit-alignment-card glass-panel", {
543
+ expanded: o.value[t.num],
544
+ "highlighted-flash": c.value === t.num
545
+ }])
546
+ }, [i("div", {
547
+ class: "alignment-card-header",
548
+ onClick: (e) => _(t.num)
549
+ }, [i("div", gt, [i("span", { class: u(["chevron-icon", { open: o.value[t.num] }]) }, "▶", 2), i("div", _t, [i("span", vt, "Hit " + g(a + 1), 1), i("span", yt, g(t.description[0].title), 1)])]), i("div", bt, [i("a", {
550
+ href: S(t.description[0].accession),
551
+ target: "_blank",
552
+ class: "accession-badge sequence-font",
553
+ onClick: s[0] ||= x(() => {}, ["stop"])
554
+ }, g(t.description[0].accession), 9, xt), i("span", St, "Length: " + g(t.len), 1)])], 8, ht), o.value[t.num] ? (p(), r("div", Ct, [(p(!0), r(e, null, h(t.hsps, (t) => (p(), r("div", {
555
+ key: t.num,
556
+ class: "hsp-alignment-box"
557
+ }, [i("div", wt, [i("div", Tt, "HSP " + g(t.num), 1), i("div", Et, [
558
+ i("div", Dt, [s[1] ||= i("span", { class: "lbl" }, "Score:", -1), i("span", Ot, g(t.bit_score.toFixed(1)) + " bits (" + g(t.score) + ")", 1)]),
559
+ i("div", kt, [s[2] ||= i("span", { class: "lbl" }, "Expect:", -1), i("span", At, g(b(t.evalue)), 1)]),
560
+ i("div", jt, [s[3] ||= i("span", { class: "lbl" }, "Identities:", -1), i("span", Mt, g(t.identity) + "/" + g(t.align_len) + " (" + g(Math.round(t.identity / t.align_len * 100)) + "%) ", 1)]),
561
+ t.gaps > 0 ? (p(), r("div", Nt, [s[4] ||= i("span", { class: "lbl" }, "Gaps:", -1), i("span", Pt, g(t.gaps) + "/" + g(t.align_len) + " (" + g(Math.round(t.gaps / t.align_len * 100)) + "%)", 1)])) : n("", !0),
562
+ t.query_strand || t.hit_strand ? (p(), r("div", Ft, [s[5] ||= i("span", { class: "lbl" }, "Strand:", -1), i("span", It, g(t.query_strand) + " / " + g(t.hit_strand), 1)])) : n("", !0)
563
+ ])]), i("div", Lt, [(p(!0), r(e, null, h(v(t), (t, n) => (p(), r("div", {
564
+ key: n,
565
+ class: "alignment-block"
566
+ }, [
567
+ i("div", Rt, [
568
+ s[6] ||= i("span", { class: "line-label" }, "Query", -1),
569
+ i("span", zt, g(t.queryStart), 1),
570
+ i("span", Bt, [(p(!0), r(e, null, h(t.columns, (e, t) => (p(), r("span", {
571
+ key: t,
572
+ class: u(["char-cell", e.type])
573
+ }, g(e.q), 3))), 128))]),
574
+ i("span", $, g(t.queryEnd), 1)
575
+ ]),
576
+ i("div", Vt, [
577
+ s[7] ||= i("span", { class: "line-label" }, null, -1),
578
+ s[8] ||= i("span", { class: "line-coord start-coord" }, null, -1),
579
+ i("span", Ht, [(p(!0), r(e, null, h(t.columns, (e, t) => (p(), r("span", {
580
+ key: t,
581
+ class: u(["char-cell", e.type])
582
+ }, g(e.m === "|" ? "│" : e.m === "+" ? "┿" : " "), 3))), 128))]),
583
+ s[9] ||= i("span", { class: "line-coord end-coord" }, null, -1)
584
+ ]),
585
+ i("div", Ut, [
586
+ s[10] ||= i("span", { class: "line-label" }, "Sbjct", -1),
587
+ i("span", Wt, g(t.sbjctStart), 1),
588
+ i("span", Gt, [(p(!0), r(e, null, h(t.columns, (e, t) => (p(), r("span", {
589
+ key: t,
590
+ class: u(["char-cell", e.type])
591
+ }, g(e.h), 3))), 128))]),
592
+ i("span", Kt, g(t.sbjctEnd), 1)
593
+ ])
594
+ ]))), 128))])]))), 128))])) : n("", !0)], 2))), 128))])]));
595
+ }
596
+ }), [["__scopeId", "data-v-ce883d4f"]]), Jt = ["data-theme"], Yt = {
597
+ key: 0,
598
+ class: "error-panel glass-panel fade-in"
599
+ }, Xt = { class: "tabs-container glass-panel fade-in" }, Zt = { class: "tabs-header" }, Qt = { class: "tabs-content" }, $t = { class: "tab-panel" }, en = { class: "tab-panel" }, tn = /*#__PURE__*/ B(/* @__PURE__ */ c({
600
+ __name: "BlastViewer",
601
+ props: {
602
+ blastData: {},
603
+ queryLink: {},
604
+ subjectLink: {},
605
+ theme: {}
606
+ },
607
+ setup(n) {
608
+ let a = n, o = m("table"), c = m(null), l = t(() => a.blastData?.BlastOutput2?.[0]?.report ? a.blastData.BlastOutput2[0].report : null), d = t(() => l.value?.results?.search || null), f = t(() => l.value?.program || ""), h = t(() => l.value?.version || ""), g = t(() => l.value?.search_target?.db || ""), _ = t(() => {
609
+ let e = f.value.toLowerCase();
610
+ return e.includes("p") || e.includes("x") || e.includes("tblast");
611
+ }), y = (e) => {
612
+ c.value = e, o.value = "alignments";
613
+ };
614
+ return (t, a) => (p(), r("div", {
615
+ class: "blast-viewer",
616
+ "data-theme": n.theme
617
+ }, [!l.value || !d.value ? (p(), r("div", Yt, [...a[2] ||= [
618
+ i("div", { class: "error-icon" }, "⚠️", -1),
619
+ i("h3", null, "Invalid BLAST JSON Format", -1),
620
+ i("p", null, " The provided data structure does not match standard BLAST JSON format (BlastOutput2 structure). Please upload or paste a valid BLAST output file in JSON format. ", -1)
621
+ ]])) : (p(), r(e, { key: 1 }, [
622
+ s(V, {
623
+ "search-data": d.value,
624
+ program: f.value,
625
+ version: h.value,
626
+ db: g.value,
627
+ "query-link": n.queryLink
628
+ }, null, 8, [
629
+ "search-data",
630
+ "program",
631
+ "version",
632
+ "db",
633
+ "query-link"
634
+ ]),
635
+ s(ye, {
636
+ "search-data": d.value,
637
+ "is-protein": _.value,
638
+ onSelectHit: y
639
+ }, null, 8, ["search-data", "is-protein"]),
640
+ i("div", Xt, [i("div", Zt, [i("button", {
641
+ class: u(["tab-btn", { active: o.value === "table" }]),
642
+ onClick: a[0] ||= (e) => o.value = "table"
643
+ }, " 📋 Descriptions Table ", 2), i("button", {
644
+ class: u(["tab-btn", { active: o.value === "alignments" }]),
645
+ onClick: a[1] ||= (e) => o.value = "alignments"
646
+ }, " 🔍 Pairwise Alignments ", 2)]), i("div", Qt, [b(i("div", $t, [s(ft, {
647
+ "search-data": d.value,
648
+ "is-protein": _.value,
649
+ "subject-link": n.subjectLink,
650
+ onSelectHit: y
651
+ }, null, 8, [
652
+ "search-data",
653
+ "is-protein",
654
+ "subject-link"
655
+ ])], 512), [[v, o.value === "table"]]), b(i("div", en, [s(qt, {
656
+ "search-data": d.value,
657
+ "is-protein": _.value,
658
+ "selected-hit-num": c.value,
659
+ "subject-link": n.subjectLink
660
+ }, null, 8, [
661
+ "search-data",
662
+ "is-protein",
663
+ "selected-hit-num",
664
+ "subject-link"
665
+ ])], 512), [[v, o.value === "alignments"]])])])
666
+ ], 64))], 8, Jt));
667
+ }
668
+ }), [["__scopeId", "data-v-e1f420c8"]]);
669
+ //#endregion
670
+ export { tn as BlastViewer };
@@ -0,0 +1,2 @@
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("vue")):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.VueBlastViewer={},e.Vue))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n={class:`blast-header fade-in`},r={class:`header-main glass-panel`},i={class:`title-section`},a={class:`query-meta`},o=[`href`],s={class:`version-section`},c={class:`version-text`},l={class:`stats-grid`},u={class:`stat-card glass-panel`},d={class:`stat-info`},f={class:`stat-value`},p={class:`stat-unit`},m={class:`stat-card glass-panel`},h={class:`stat-info`},g={class:`stat-value`},_={class:`stat-card glass-panel`},v={class:`stat-info`},y={class:`stat-value`},b={class:`stat-card glass-panel`},x={class:`stat-info`},S={class:`stat-value`},C=(0,t.defineComponent)({__name:`BlastHeader`,props:{searchData:{},program:{},version:{},db:{},queryLink:{}},setup(e){let C=e,w=(0,t.computed)(()=>{let e=C.program.toLowerCase();return e.includes(`p`)||e.includes(`x`)||e.includes(`tblast`)}),T=(0,t.computed)(()=>w.value?`aa`:`bp`),E=(0,t.computed)(()=>{let e=0;return C.searchData.hits.forEach(t=>{t.hsps.forEach(t=>{t.bit_score>e&&(e=t.bit_score)})}),e.toFixed(1)}),D=(0,t.computed)(()=>{let e=1/0;return C.searchData.hits.forEach(t=>{t.hsps.forEach(t=>{t.evalue<e&&(e=t.evalue)})}),e===1/0?`N/A`:e===0?`0.0`:e.toExponential(2)}),O=e=>C.queryLink?C.queryLink.replace(`{accession}`,e):`https://www.ncbi.nlm.nih.gov/${w.value?`protein`:`nucleotide`}/${e}`;return(C,w)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,n,[(0,t.createElementVNode)(`div`,r,[(0,t.createElementVNode)(`div`,i,[(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)([`program-badge`,e.program.toLowerCase()])},(0,t.toDisplayString)(e.program),3),(0,t.createElementVNode)(`h1`,null,(0,t.toDisplayString)(e.searchData.query_title),1),(0,t.createElementVNode)(`p`,a,[w[0]||=(0,t.createElementVNode)(`strong`,null,`Query ID:`,-1),(0,t.createElementVNode)(`a`,{href:O(e.searchData.query_id),target:`_blank`,class:`query-link sequence-font`},(0,t.toDisplayString)(e.searchData.query_id),9,o),w[1]||=(0,t.createTextVNode)(` | `,-1),w[2]||=(0,t.createElementVNode)(`strong`,null,`Database:`,-1),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(e.db),1)])]),(0,t.createElementVNode)(`div`,s,[(0,t.createElementVNode)(`span`,c,(0,t.toDisplayString)(e.version),1)])]),(0,t.createElementVNode)(`div`,l,[(0,t.createElementVNode)(`div`,u,[w[4]||=(0,t.createElementVNode)(`div`,{class:`stat-icon`},`🧬`,-1),(0,t.createElementVNode)(`div`,d,[w[3]||=(0,t.createElementVNode)(`span`,{class:`stat-label`},`Query Length`,-1),(0,t.createElementVNode)(`span`,f,[(0,t.createTextVNode)((0,t.toDisplayString)(e.searchData.query_len)+` `,1),(0,t.createElementVNode)(`span`,p,(0,t.toDisplayString)(T.value),1)])])]),(0,t.createElementVNode)(`div`,m,[w[6]||=(0,t.createElementVNode)(`div`,{class:`stat-icon`},`🎯`,-1),(0,t.createElementVNode)(`div`,h,[w[5]||=(0,t.createElementVNode)(`span`,{class:`stat-label`},`Number of Hits`,-1),(0,t.createElementVNode)(`span`,g,(0,t.toDisplayString)(e.searchData.hits.length),1)])]),(0,t.createElementVNode)(`div`,_,[w[8]||=(0,t.createElementVNode)(`div`,{class:`stat-icon`},`⚡`,-1),(0,t.createElementVNode)(`div`,v,[w[7]||=(0,t.createElementVNode)(`span`,{class:`stat-label`},`Max Bit Score`,-1),(0,t.createElementVNode)(`span`,y,(0,t.toDisplayString)(E.value),1)])]),(0,t.createElementVNode)(`div`,b,[w[10]||=(0,t.createElementVNode)(`div`,{class:`stat-icon`},`📉`,-1),(0,t.createElementVNode)(`div`,x,[w[9]||=(0,t.createElementVNode)(`span`,{class:`stat-label`},`Lowest E-Value`,-1),(0,t.createElementVNode)(`span`,S,(0,t.toDisplayString)(D.value),1)])])])]))}}),w=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},T=w(C,[[`__scopeId`,`data-v-71c69c51`]]),E={class:`blast-graphics glass-panel fade-in`},D={class:`svg-container`},O=[`viewBox`],k={class:`grid-lines`},A=[`x1`,`y1`,`x2`,`y2`],ee={class:`query-ruler`},te=[`x`,`y`],j=[`x`,`y`],M=[`x1`,`y1`,`x2`,`y2`],N=[`x`,`y`],P={class:`hits-group`,transform:`translate(0, 30)`},F=[`onClick`],I=[`x`,`y`,`width`,`height`],L=[`x1`,`y1`,`x2`,`y2`],R=[`x`,`y`,`width`,`fill`,`onMouseenter`],z=[`x`,`y`],B={class:`tooltip-title`},V={class:`tooltip-acc`},H={class:`val`},U={class:`val`},W={class:`val`},G={class:`val`},K={class:`val`},q={class:`val`},J=1e3,Y=10,X=w((0,t.defineComponent)({__name:`BlastGraphicViewer`,props:{searchData:{},isProtein:{type:Boolean}},emits:[`select-hit`],setup(e,{emit:n}){let r=e,i=n,a={top:50,right:40,bottom:25,left:40},o=J-a.left-a.right,s=(0,t.ref)(!1),c=(0,t.ref)(0),l=(0,t.ref)(0),u=(0,t.ref)(null),d=(0,t.ref)(null),f=(0,t.computed)(()=>{let e=r.searchData.hits.length;return e===0?a.top+a.bottom+40:a.top+30+e*22+a.bottom}),p=e=>e<40?`var(--blast-score-low)`:e>=40&&e<50?`var(--blast-score-mid-low)`:e>=50&&e<80?`var(--blast-score-mid)`:e>=80&&e<200?`var(--blast-score-mid-high)`:`var(--blast-score-high)`,m=(0,t.computed)(()=>{let e=r.searchData.query_len,t=50;e>100&&e<=500?t=100:e>500&&e<=2e3?t=200:e>2e3&&e<=1e4?t=1e3:e>1e4&&(t=5e3);let n=[];for(let r=0;r<=e;r+=t)n.push(r);return n[n.length-1]!==e&&(e-n[n.length-1]<t/3?n[n.length-1]=e:n.push(e)),n.map(t=>({value:t,x:a.left+t/e*o}))}),h=e=>a.left+(e-1)/r.searchData.query_len*o,g=(e,t,n)=>{s.value=!0,_(e);let i=t.description[0],a=r.searchData.query_len,o=Math.round(n.align_len/a*100),c=Math.round(n.identity/n.align_len*100);u.value={title:i.title,accession:i.accession,bitScore:n.bit_score,evalue:n.evalue,identity:c,coverage:o,qFrom:n.query_from,qTo:n.query_to,hFrom:n.hit_from,hTo:n.hit_to}},_=e=>{let t=e.currentTarget.ownerSVGElement;if(!t)return;let n=t.getBoundingClientRect();c.value=e.clientX-n.left+15,l.value=e.clientY-n.top+15},v=()=>{s.value=!1,u.value=null,d.value=null},y=e=>{i(`select-hit`,e)};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,E,[r[7]||=(0,t.createStaticVNode)(`<div class="graphics-header" data-v-57bf6043><h2 data-v-57bf6043>Graphical Alignment Overview</h2><p data-v-57bf6043>Hover over alignment bars for details. Click to view full text alignments.</p></div><div class="color-legend" data-v-57bf6043><div class="legend-title" data-v-57bf6043>Color Key for Alignment Scores:</div><div class="legend-items" data-v-57bf6043><div class="legend-item" data-v-57bf6043><span class="legend-color" style="background-color:var(--blast-score-low);" data-v-57bf6043></span><span class="legend-label" data-v-57bf6043>&lt; 40</span></div><div class="legend-item" data-v-57bf6043><span class="legend-color" style="background-color:var(--blast-score-mid-low);" data-v-57bf6043></span><span class="legend-label" data-v-57bf6043>40-50</span></div><div class="legend-item" data-v-57bf6043><span class="legend-color" style="background-color:var(--blast-score-mid);" data-v-57bf6043></span><span class="legend-label" data-v-57bf6043>50-80</span></div><div class="legend-item" data-v-57bf6043><span class="legend-color" style="background-color:var(--blast-score-mid-high);" data-v-57bf6043></span><span class="legend-label" data-v-57bf6043>80-200</span></div><div class="legend-item" data-v-57bf6043><span class="legend-color" style="background-color:var(--blast-score-high);" data-v-57bf6043></span><span class="legend-label" data-v-57bf6043>≥ 200</span></div></div></div>`,2),(0,t.createElementVNode)(`div`,D,[((0,t.openBlock)(),(0,t.createElementBlock)(`svg`,{viewBox:`0 0 ${J} ${f.value}`,width:`100%`,class:`alignment-svg`},[(0,t.createElementVNode)(`g`,k,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(m.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`line`,{key:`grid-`+e.value,x1:e.x,y1:a.top-10,x2:e.x,y2:f.value-a.bottom,stroke:`var(--bg-overlay-hover)`,"stroke-dasharray":`4,4`},null,8,A))),128))]),(0,t.createElementVNode)(`g`,ee,[(0,t.createElementVNode)(`rect`,{x:a.left,y:a.top-20,width:o,height:`10`,rx:`5`,fill:`var(--color-primary-glow)`,stroke:`var(--color-primary)`,"stroke-width":`1.5`},null,8,te),(0,t.createElementVNode)(`text`,{x:a.left,y:a.top-28,fill:`var(--color-primary)`,"font-size":`11`,"font-weight":`600`},` QUERY (`+(0,t.toDisplayString)(e.searchData.query_len)+` `+(0,t.toDisplayString)(e.isProtein?`aa`:`bp`)+`) `,9,j),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(m.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`g`,{key:`tick-`+e.value},[(0,t.createElementVNode)(`line`,{x1:e.x,y1:a.top-10,x2:e.x,y2:a.top-4,stroke:`var(--text-secondary)`,"stroke-width":`1.5`},null,8,M),(0,t.createElementVNode)(`text`,{x:e.x,y:a.top+8,"text-anchor":`middle`,fill:`var(--text-secondary)`,"font-family":`var(--font-mono)`,"font-size":`10`},(0,t.toDisplayString)(e.value),9,N)]))),128))]),(0,t.createElementVNode)(`g`,P,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.searchData.hits,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`g`,{key:e.num,class:(0,t.normalizeClass)([`hit-row`,{"is-hovered":d.value===n}]),onClick:t=>y(e.num)},[(0,t.createElementVNode)(`rect`,{x:a.left-5,y:a.top+n*22-4,width:o+10,height:18,fill:`var(--bg-overlay-hover)`,class:`row-hover-bg`,rx:`4`},null,8,I),e.hsps.length>1?((0,t.openBlock)(),(0,t.createElementBlock)(`line`,{key:0,x1:h(Math.min(...e.hsps.map(e=>e.query_from))),y1:a.top+n*22+Y/2,x2:h(Math.max(...e.hsps.map(e=>e.query_to))),y2:a.top+n*22+Y/2,stroke:`var(--text-muted)`,"stroke-width":`1`,"stroke-dasharray":`3,3`},null,8,L)):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.hsps,r=>((0,t.openBlock)(),(0,t.createElementBlock)(`rect`,{key:r.num,x:h(r.query_from),y:a.top+n*22,width:Math.max(2,h(r.query_to)-h(r.query_from)),height:Y,fill:p(r.bit_score),class:`hsp-bar`,rx:`2`,onMouseenter:t=>{d.value=n,g(t,e,r)},onMousemove:_,onMouseleave:v},null,40,R))),128)),(0,t.createElementVNode)(`text`,{x:a.left-8,y:a.top+n*22+8,"text-anchor":`end`,fill:`var(--text-muted)`,"font-family":`var(--font-mono)`,"font-size":`9`,class:`hit-index-label`},(0,t.toDisplayString)(n+1),9,z)],10,F))),128))])],8,O)),s.value&&u.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`blast-tooltip`,style:(0,t.normalizeStyle)({left:c.value+`px`,top:l.value+`px`})},[(0,t.createElementVNode)(`div`,B,(0,t.toDisplayString)(u.value.title),1),(0,t.createElementVNode)(`div`,V,`Accession: `+(0,t.toDisplayString)(u.value.accession),1),r[6]||=(0,t.createElementVNode)(`hr`,{class:`tooltip-divider`},null,-1),(0,t.createElementVNode)(`table`,null,[(0,t.createElementVNode)(`tr`,null,[r[0]||=(0,t.createElementVNode)(`td`,{class:`label`},`Bit Score:`,-1),(0,t.createElementVNode)(`td`,H,(0,t.toDisplayString)(u.value.bitScore.toFixed(1)),1)]),(0,t.createElementVNode)(`tr`,null,[r[1]||=(0,t.createElementVNode)(`td`,{class:`label`},`E-value:`,-1),(0,t.createElementVNode)(`td`,U,(0,t.toDisplayString)(u.value.evalue===0?`0.0`:u.value.evalue),1)]),(0,t.createElementVNode)(`tr`,null,[r[2]||=(0,t.createElementVNode)(`td`,{class:`label`},`Identities:`,-1),(0,t.createElementVNode)(`td`,W,(0,t.toDisplayString)(u.value.identity)+`%`,1)]),(0,t.createElementVNode)(`tr`,null,[r[3]||=(0,t.createElementVNode)(`td`,{class:`label`},`Query Cover:`,-1),(0,t.createElementVNode)(`td`,G,(0,t.toDisplayString)(u.value.coverage)+`%`,1)]),(0,t.createElementVNode)(`tr`,null,[r[4]||=(0,t.createElementVNode)(`td`,{class:`label`},`Query:`,-1),(0,t.createElementVNode)(`td`,K,(0,t.toDisplayString)(u.value.qFrom)+` .. `+(0,t.toDisplayString)(u.value.qTo),1)]),(0,t.createElementVNode)(`tr`,null,[r[5]||=(0,t.createElementVNode)(`td`,{class:`label`},`Subject:`,-1),(0,t.createElementVNode)(`td`,q,(0,t.toDisplayString)(u.value.hFrom)+` .. `+(0,t.toDisplayString)(u.value.hTo),1)])])],4)):(0,t.createCommentVNode)(``,!0)])]))}}),[[`__scopeId`,`data-v-57bf6043`]]),Z={class:`blast-hit-table glass-panel fade-in`},Q={class:`table-controls`},ne={class:`title-group`},re={class:`results-count`},ie={class:`controls-right`},ae={class:`search-box`},oe={class:`table-container`},se=[`onClick`],ce=[`onClick`],le=[`title`],ue={key:0,class:`desc-meta`},de={class:`acc-cell sequence-font`},fe=[`href`],pe={class:`numeric-cell sequence-font`},me={class:`numeric-cell sequence-font`},he={class:`numeric-cell sequence-font`},ge={class:`numeric-cell sequence-font`},_e={class:`numeric-cell sequence-font`},ve={class:`action-cell`},ye=[`onClick`],be={key:0,class:`expand-row`},xe={colspan:`9`,class:`expanded-container`},Se={class:`hsp-summary-box`},Ce={class:`hsp-grid`},we={class:`hsp-card-header`},Te={class:`hsp-badge`},Ee=[`onClick`],De={class:`hsp-card-body`},Oe={class:`hsp-detail-row`},ke={class:`hsp-det-val sequence-font`},Ae={class:`hsp-detail-row`},je={class:`hsp-det-val sequence-font`},Me={class:`hsp-detail-row`},Ne={class:`hsp-det-val sequence-font`},Pe={key:0,class:`hsp-detail-row`},Fe={class:`hsp-det-val sequence-font`},Ie={class:`hsp-detail-row`},Le={class:`hsp-det-val sequence-font`},Re={class:`hsp-detail-row`},ze={class:`hsp-det-val sequence-font`},Be={key:0},Ve={colspan:`9`,class:`empty-cell`},He={key:0,class:`pagination`},Ue=[`disabled`],We={class:`page-indicator`},Ge=[`disabled`],Ke=w((0,t.defineComponent)({__name:`BlastHitTable`,props:{searchData:{},isProtein:{type:Boolean},subjectLink:{}},emits:[`select-hit`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(``),o=(0,t.ref)(`totalScore`),s=(0,t.ref)(`desc`),c=(0,t.ref)(1),l=(0,t.ref)(10),u=(0,t.ref)({}),d=(e,t)=>{let n=e.hsps.map(e=>[Math.min(e.query_from,e.query_to),Math.max(e.query_from,e.query_to)]).sort((e,t)=>e[0]-t[0]);if(n.length===0)return 0;let r=[n[0]];for(let e=1;e<n.length;e++){let t=r[r.length-1],i=n[e];i[0]<=t[1]?t[1]=Math.max(t[1],i[1]):r.push(i)}let i=r.reduce((e,t)=>e+(t[1]-t[0]+1),0);return Math.round(i/t*100)},f=e=>{let t=0,n=0,i=1/0,a=0;return e.hsps.forEach(e=>{t+=e.bit_score,e.bit_score>n&&(n=e.bit_score),e.evalue<i&&(i=e.evalue);let r=e.identity/e.align_len*100;r>a&&(a=r)}),{totalScore:t,maxScore:n,evalue:i,identity:Math.round(a*10)/10,coverage:d(e,r.searchData.query_len)}},p=(0,t.computed)(()=>r.searchData.hits.map(e=>{let t=f(e),n=e.description[0];return{raw:e,num:e.num,title:n.title,accession:n.accession,id:n.id,taxid:n.taxid,len:e.len,...t}})),m=(0,t.computed)(()=>{let e=a.value.toLowerCase().trim();return e?p.value.filter(t=>t.title.toLowerCase().includes(e)||t.accession.toLowerCase().includes(e)):p.value}),h=(0,t.computed)(()=>[...m.value].sort((e,t)=>{let n=e[o.value],r=t[o.value];if(o.value===`evalue`){if(n===r)return 0;let e=s.value===`asc`?1:-1;return(n-r)*e}return n<r?s.value===`asc`?-1:1:n>r?s.value===`asc`?1:-1:0})),g=(0,t.computed)(()=>{let e=(c.value-1)*l.value,t=e+l.value;return h.value.slice(e,t)}),_=(0,t.computed)(()=>Math.ceil(h.value.length/l.value)||1),v=e=>{o.value===e?s.value=s.value===`asc`?`desc`:`asc`:(o.value=e,s.value=e===`evalue`?`asc`:`desc`),c.value=1},y=e=>{u.value[e]=!u.value[e]},b=e=>{i(`select-hit`,e)},x=e=>e===0?`0.0`:e<.001?e.toExponential(2):e.toFixed(4),S=e=>r.subjectLink?r.subjectLink.replace(`{accession}`,e):`https://www.ncbi.nlm.nih.gov/${r.isProtein?`protein`:`nucleotide`}/${e}`,C=()=>{let e=[`Description`,`Accession`,`Max Score`,`Total Score`,`Query Cover (%)`,`E-value`,`Identity (%)`,`Length`],t=m.value.map(e=>[e.title.replace(/\t/g,` `),e.accession,e.maxScore.toFixed(1),e.totalScore.toFixed(1),`${e.coverage}%`,e.evalue===0?`0.0`:e.evalue.toString(),`${e.identity}%`,e.len.toString()]),n=[e.join(` `),...t.map(e=>e.join(` `))].join(`
2
+ `),i=new Blob([n],{type:`text/tab-separated-values;charset=utf-8;`}),a=URL.createObjectURL(i),o=document.createElement(`a`);o.setAttribute(`href`,a);let s=r.searchData.query_id||`blast_results`;o.setAttribute(`download`,`${s}_hits.tsv`),o.style.visibility=`hidden`,document.body.appendChild(o),o.click(),document.body.removeChild(o)};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Z,[(0,t.createElementVNode)(`div`,Q,[(0,t.createElementVNode)(`div`,ne,[r[10]||=(0,t.createElementVNode)(`h2`,null,`Sequences Producing Significant Alignments`,-1),(0,t.createElementVNode)(`span`,re,(0,t.toDisplayString)(m.value.length)+` / `+(0,t.toDisplayString)(e.searchData.hits.length)+` hits`,1)]),(0,t.createElementVNode)(`div`,ie,[(0,t.createElementVNode)(`button`,{class:`btn btn-secondary btn-sm export-btn`,onClick:C,title:`Export current filtered hits to TSV`},` 📥 Export TSV `),(0,t.createElementVNode)(`div`,ae,[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":r[0]||=e=>a.value=e,type:`text`,placeholder:`Filter by description or accession...`,class:`input-text filter-input`,onInput:r[1]||=e=>c.value=1},null,544),[[t.vModelText,a.value]]),a.value?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:0,class:`clear-search`,onClick:r[2]||=e=>{a.value=``,c.value=1}},`✕`)):(0,t.createCommentVNode)(``,!0)])])]),(0,t.createElementVNode)(`div`,oe,[(0,t.createElementVNode)(`table`,null,[(0,t.createElementVNode)(`thead`,null,[(0,t.createElementVNode)(`tr`,null,[r[11]||=(0,t.createElementVNode)(`th`,{class:`expand-col`},null,-1),r[12]||=(0,t.createElementVNode)(`th`,{class:`desc-col`},`Description`,-1),r[13]||=(0,t.createElementVNode)(`th`,{class:`acc-col`},`Accession`,-1),(0,t.createElementVNode)(`th`,{class:(0,t.normalizeClass)([`sortable`,{"active-sort":o.value===`maxScore`,[s.value]:o.value===`maxScore`}]),onClick:r[3]||=e=>v(`maxScore`)},`Max Score`,2),(0,t.createElementVNode)(`th`,{class:(0,t.normalizeClass)([`sortable`,{"active-sort":o.value===`totalScore`,[s.value]:o.value===`totalScore`}]),onClick:r[4]||=e=>v(`totalScore`)},`Total Score`,2),(0,t.createElementVNode)(`th`,{class:(0,t.normalizeClass)([`sortable`,{"active-sort":o.value===`coverage`,[s.value]:o.value===`coverage`}]),onClick:r[5]||=e=>v(`coverage`)},`Query Cover`,2),(0,t.createElementVNode)(`th`,{class:(0,t.normalizeClass)([`sortable`,{"active-sort":o.value===`evalue`,[s.value]:o.value===`evalue`}]),onClick:r[6]||=e=>v(`evalue`)},`E-value`,2),(0,t.createElementVNode)(`th`,{class:(0,t.normalizeClass)([`sortable`,{"active-sort":o.value===`identity`,[s.value]:o.value===`identity`}]),onClick:r[7]||=e=>v(`identity`)},`Ident (%)`,2),r[14]||=(0,t.createElementVNode)(`th`,{class:`action-col`},`Alignment`,-1)])]),(0,t.createElementVNode)(`tbody`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(g.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:e.num},[(0,t.createElementVNode)(`tr`,{class:(0,t.normalizeClass)([`main-row`,{expanded:u.value[e.num]}])},[(0,t.createElementVNode)(`td`,{class:`expand-cell`,onClick:t=>y(e.num)},[(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)([`chevron`,{open:u.value[e.num]}])},`▶`,2)],8,se),(0,t.createElementVNode)(`td`,{class:`desc-cell`,onClick:t=>y(e.num)},[(0,t.createElementVNode)(`div`,{class:`desc-title`,title:e.title},(0,t.toDisplayString)(e.title),9,le),e.taxid?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ue,`Tax ID: `+(0,t.toDisplayString)(e.taxid)+` | Length: `+(0,t.toDisplayString)(e.len),1)):(0,t.createCommentVNode)(``,!0)],8,ce),(0,t.createElementVNode)(`td`,de,[(0,t.createElementVNode)(`a`,{href:S(e.accession),target:`_blank`,class:`acc-link`},(0,t.toDisplayString)(e.accession),9,fe)]),(0,t.createElementVNode)(`td`,pe,(0,t.toDisplayString)(e.maxScore.toFixed(1)),1),(0,t.createElementVNode)(`td`,me,(0,t.toDisplayString)(e.totalScore.toFixed(1)),1),(0,t.createElementVNode)(`td`,he,(0,t.toDisplayString)(e.coverage)+`%`,1),(0,t.createElementVNode)(`td`,ge,(0,t.toDisplayString)(x(e.evalue)),1),(0,t.createElementVNode)(`td`,_e,(0,t.toDisplayString)(e.identity)+`%`,1),(0,t.createElementVNode)(`td`,ve,[(0,t.createElementVNode)(`button`,{class:`btn btn-secondary btn-sm`,onClick:t=>b(e.num)},` View `,8,ye)])],2),u.value[e.num]?((0,t.openBlock)(),(0,t.createElementBlock)(`tr`,be,[(0,t.createElementVNode)(`td`,xe,[(0,t.createElementVNode)(`div`,Se,[r[21]||=(0,t.createElementVNode)(`div`,{class:`hsp-summary-title`},`High-scoring Segment Pairs (HSPs) details for this hit:`,-1),(0,t.createElementVNode)(`div`,Ce,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.raw.hsps,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n.num,class:`hsp-item-card`},[(0,t.createElementVNode)(`div`,we,[(0,t.createElementVNode)(`span`,Te,`HSP `+(0,t.toDisplayString)(n.num),1),(0,t.createElementVNode)(`button`,{class:`btn btn-primary btn-xs`,onClick:t=>b(e.num)},` Alignments Detail `,8,Ee)]),(0,t.createElementVNode)(`div`,De,[(0,t.createElementVNode)(`div`,Oe,[r[15]||=(0,t.createElementVNode)(`span`,{class:`hsp-det-lbl`},`Bit Score:`,-1),(0,t.createElementVNode)(`span`,ke,(0,t.toDisplayString)(n.bit_score.toFixed(1)),1)]),(0,t.createElementVNode)(`div`,Ae,[r[16]||=(0,t.createElementVNode)(`span`,{class:`hsp-det-lbl`},`E-value:`,-1),(0,t.createElementVNode)(`span`,je,(0,t.toDisplayString)(x(n.evalue)),1)]),(0,t.createElementVNode)(`div`,Me,[r[17]||=(0,t.createElementVNode)(`span`,{class:`hsp-det-lbl`},`Identities:`,-1),(0,t.createElementVNode)(`span`,Ne,(0,t.toDisplayString)(n.identity)+` / `+(0,t.toDisplayString)(n.align_len)+` (`+(0,t.toDisplayString)(Math.round(n.identity/n.align_len*100))+`%) `,1)]),n.gaps>0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Pe,[r[18]||=(0,t.createElementVNode)(`span`,{class:`hsp-det-lbl`},`Gaps:`,-1),(0,t.createElementVNode)(`span`,Fe,(0,t.toDisplayString)(n.gaps),1)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,Ie,[r[19]||=(0,t.createElementVNode)(`span`,{class:`hsp-det-lbl`},`Query Coordinates:`,-1),(0,t.createElementVNode)(`span`,Le,(0,t.toDisplayString)(n.query_from)+` to `+(0,t.toDisplayString)(n.query_to),1)]),(0,t.createElementVNode)(`div`,Re,[r[20]||=(0,t.createElementVNode)(`span`,{class:`hsp-det-lbl`},`Subject Coordinates:`,-1),(0,t.createElementVNode)(`span`,ze,(0,t.toDisplayString)(n.hit_from)+` to `+(0,t.toDisplayString)(n.hit_to),1)])])]))),128))])])])])):(0,t.createCommentVNode)(``,!0)],64))),128)),m.value.length===0?((0,t.openBlock)(),(0,t.createElementBlock)(`tr`,Be,[(0,t.createElementVNode)(`td`,Ve,` No matching hits found for "`+(0,t.toDisplayString)(a.value)+`" `,1)])):(0,t.createCommentVNode)(``,!0)])])]),_.value>1?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,He,[(0,t.createElementVNode)(`button`,{class:`btn btn-secondary btn-pagination`,disabled:c.value===1,onClick:r[8]||=e=>c.value--},` ◀ Prev `,8,Ue),(0,t.createElementVNode)(`span`,We,[r[22]||=(0,t.createTextVNode)(` Page `,-1),(0,t.createElementVNode)(`strong`,null,(0,t.toDisplayString)(c.value),1),r[23]||=(0,t.createTextVNode)(` of `,-1),(0,t.createElementVNode)(`strong`,null,(0,t.toDisplayString)(_.value),1)]),(0,t.createElementVNode)(`button`,{class:`btn btn-secondary btn-pagination`,disabled:c.value===_.value,onClick:r[9]||=e=>c.value++},` Next ▶ `,8,Ge)])):(0,t.createCommentVNode)(``,!0)]))}}),[[`__scopeId`,`data-v-a7f92dcb`]]),qe={class:`blast-alignments fade-in`},Je={class:`hit-alignments-list`},Ye=[`onClick`],Xe={class:`header-desc`},Ze={class:`hit-title-box`},Qe={class:`hit-index-badge`},$e={class:`hit-main-title`},et={class:`header-meta`},tt=[`href`],nt={class:`length-badge`},rt={key:0,class:`alignment-card-content`},it={class:`hsp-stats-banner`},at={class:`hsp-banner-title`},ot={class:`hsp-stats-grid`},st={class:`hsp-stat-item`},ct={class:`val sequence-font`},lt={class:`hsp-stat-item`},ut={class:`val sequence-font`},dt={class:`hsp-stat-item`},ft={class:`val sequence-font`},pt={key:0,class:`hsp-stat-item`},mt={class:`val sequence-font`},ht={key:1,class:`hsp-stat-item`},gt={class:`val sequence-font`},_t={class:`sequence-alignment-area`},vt={class:`alignment-line query-line`},yt={class:`line-coord start-coord sequence-font`},$={class:`line-chars sequence-font`},bt={class:`line-coord end-coord sequence-font`},xt={class:`alignment-line midline`},St={class:`line-chars sequence-font`},Ct={class:`alignment-line sbjct-line`},wt={class:`line-coord start-coord sequence-font`},Tt={class:`line-chars sequence-font`},Et={class:`line-coord end-coord sequence-font`},Dt=w((0,t.defineComponent)({__name:`BlastAlignmentDetails`,props:{searchData:{},isProtein:{type:Boolean},selectedHitNum:{},subjectLink:{}},setup(e){let n=e,r=(0,t.ref)({}),i=(0,t.ref)({}),a=(0,t.ref)(null);(0,t.onMounted)(()=>{n.searchData.hits.length>0&&(r.value[n.searchData.hits[0].num]=!0)}),(0,t.watch)(()=>n.selectedHitNum,async e=>{if(e!==null){r.value[e]=!0,a.value=e,await(0,t.nextTick)();let n=i.value[e];n&&(n.scrollIntoView({behavior:`smooth`,block:`center`}),setTimeout(()=>{a.value===e&&(a.value=null)},2500))}});let o=(e,t)=>{t&&(i.value[e]=t)},s=e=>{r.value[e]=!r.value[e]},c=e=>{let t=e.qseq,n=e.hseq,r=e.midline,i=t.length,a=[],o=e.query_from,s=e.hit_from,c=e.hit_strand===`minus`||e.hit_to<e.hit_from;for(let e=0;e<i;e+=60){let l=Math.min(e+60,i),u=[],d=o,f=s,p=0,m=0;for(let i=e;i<l;i++){let e=t[i],a=n[i],l=r[i]||` `,d=`mismatch`;e===`-`||a===`-`?d=`gap`:l===`|`?d=`match`:l===`+`?d=`positive`:e===a&&(l=`|`,d=`match`),u.push({q:e,h:a,m:l,type:d}),e!==`-`&&(o++,p++),a!==`-`&&(c?s--:s++,m++)}let h=d+(p>0?p-1:0),g=c?f-(m>0?m-1:0):f+(m>0?m-1:0);a.push({queryStart:d,queryEnd:h,sbjctStart:f,sbjctEnd:g,columns:u})}return a},l=e=>e===0?`0.0`:e<.001?e.toExponential(2):e.toFixed(4),u=e=>n.subjectLink?n.subjectLink.replace(`{accession}`,e):`https://www.ncbi.nlm.nih.gov/${n.isProtein?`protein`:`nucleotide`}/${e}`;return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,qe,[i[11]||=(0,t.createElementVNode)(`div`,{class:`alignments-title`},[(0,t.createElementVNode)(`h2`,null,`Detailed Pairwise Alignments`),(0,t.createElementVNode)(`p`,null,`Click headers to collapse/expand. Matching bases/residues are color-highlighted.`)],-1),(0,t.createElementVNode)(`div`,Je,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.searchData.hits,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.num,ref_for:!0,ref:t=>o(e.num,t),class:(0,t.normalizeClass)([`hit-alignment-card glass-panel`,{expanded:r.value[e.num],"highlighted-flash":a.value===e.num}])},[(0,t.createElementVNode)(`div`,{class:`alignment-card-header`,onClick:t=>s(e.num)},[(0,t.createElementVNode)(`div`,Xe,[(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)([`chevron-icon`,{open:r.value[e.num]}])},`▶`,2),(0,t.createElementVNode)(`div`,Ze,[(0,t.createElementVNode)(`span`,Qe,`Hit `+(0,t.toDisplayString)(n+1),1),(0,t.createElementVNode)(`span`,$e,(0,t.toDisplayString)(e.description[0].title),1)])]),(0,t.createElementVNode)(`div`,et,[(0,t.createElementVNode)(`a`,{href:u(e.description[0].accession),target:`_blank`,class:`accession-badge sequence-font`,onClick:i[0]||=(0,t.withModifiers)(()=>{},[`stop`])},(0,t.toDisplayString)(e.description[0].accession),9,tt),(0,t.createElementVNode)(`span`,nt,`Length: `+(0,t.toDisplayString)(e.len),1)])],8,Ye),r.value[e.num]?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,rt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.hsps,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.num,class:`hsp-alignment-box`},[(0,t.createElementVNode)(`div`,it,[(0,t.createElementVNode)(`div`,at,`HSP `+(0,t.toDisplayString)(e.num),1),(0,t.createElementVNode)(`div`,ot,[(0,t.createElementVNode)(`div`,st,[i[1]||=(0,t.createElementVNode)(`span`,{class:`lbl`},`Score:`,-1),(0,t.createElementVNode)(`span`,ct,(0,t.toDisplayString)(e.bit_score.toFixed(1))+` bits (`+(0,t.toDisplayString)(e.score)+`)`,1)]),(0,t.createElementVNode)(`div`,lt,[i[2]||=(0,t.createElementVNode)(`span`,{class:`lbl`},`Expect:`,-1),(0,t.createElementVNode)(`span`,ut,(0,t.toDisplayString)(l(e.evalue)),1)]),(0,t.createElementVNode)(`div`,dt,[i[3]||=(0,t.createElementVNode)(`span`,{class:`lbl`},`Identities:`,-1),(0,t.createElementVNode)(`span`,ft,(0,t.toDisplayString)(e.identity)+`/`+(0,t.toDisplayString)(e.align_len)+` (`+(0,t.toDisplayString)(Math.round(e.identity/e.align_len*100))+`%) `,1)]),e.gaps>0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,pt,[i[4]||=(0,t.createElementVNode)(`span`,{class:`lbl`},`Gaps:`,-1),(0,t.createElementVNode)(`span`,mt,(0,t.toDisplayString)(e.gaps)+`/`+(0,t.toDisplayString)(e.align_len)+` (`+(0,t.toDisplayString)(Math.round(e.gaps/e.align_len*100))+`%)`,1)])):(0,t.createCommentVNode)(``,!0),e.query_strand||e.hit_strand?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ht,[i[5]||=(0,t.createElementVNode)(`span`,{class:`lbl`},`Strand:`,-1),(0,t.createElementVNode)(`span`,gt,(0,t.toDisplayString)(e.query_strand)+` / `+(0,t.toDisplayString)(e.hit_strand),1)])):(0,t.createCommentVNode)(``,!0)])]),(0,t.createElementVNode)(`div`,_t,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c(e),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:n,class:`alignment-block`},[(0,t.createElementVNode)(`div`,vt,[i[6]||=(0,t.createElementVNode)(`span`,{class:`line-label`},`Query`,-1),(0,t.createElementVNode)(`span`,yt,(0,t.toDisplayString)(e.queryStart),1),(0,t.createElementVNode)(`span`,$,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:n,class:(0,t.normalizeClass)([`char-cell`,e.type])},(0,t.toDisplayString)(e.q),3))),128))]),(0,t.createElementVNode)(`span`,bt,(0,t.toDisplayString)(e.queryEnd),1)]),(0,t.createElementVNode)(`div`,xt,[i[7]||=(0,t.createElementVNode)(`span`,{class:`line-label`},null,-1),i[8]||=(0,t.createElementVNode)(`span`,{class:`line-coord start-coord`},null,-1),(0,t.createElementVNode)(`span`,St,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:n,class:(0,t.normalizeClass)([`char-cell`,e.type])},(0,t.toDisplayString)(e.m===`|`?`│`:e.m===`+`?`┿`:` `),3))),128))]),i[9]||=(0,t.createElementVNode)(`span`,{class:`line-coord end-coord`},null,-1)]),(0,t.createElementVNode)(`div`,Ct,[i[10]||=(0,t.createElementVNode)(`span`,{class:`line-label`},`Sbjct`,-1),(0,t.createElementVNode)(`span`,wt,(0,t.toDisplayString)(e.sbjctStart),1),(0,t.createElementVNode)(`span`,Tt,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:n,class:(0,t.normalizeClass)([`char-cell`,e.type])},(0,t.toDisplayString)(e.h),3))),128))]),(0,t.createElementVNode)(`span`,Et,(0,t.toDisplayString)(e.sbjctEnd),1)])]))),128))])]))),128))])):(0,t.createCommentVNode)(``,!0)],2))),128))])]))}}),[[`__scopeId`,`data-v-ce883d4f`]]),Ot=[`data-theme`],kt={key:0,class:`error-panel glass-panel fade-in`},At={class:`tabs-container glass-panel fade-in`},jt={class:`tabs-header`},Mt={class:`tabs-content`},Nt={class:`tab-panel`},Pt={class:`tab-panel`};e.BlastViewer=w((0,t.defineComponent)({__name:`BlastViewer`,props:{blastData:{},queryLink:{},subjectLink:{},theme:{}},setup(e){let n=e,r=(0,t.ref)(`table`),i=(0,t.ref)(null),a=(0,t.computed)(()=>n.blastData?.BlastOutput2?.[0]?.report?n.blastData.BlastOutput2[0].report:null),o=(0,t.computed)(()=>a.value?.results?.search||null),s=(0,t.computed)(()=>a.value?.program||``),c=(0,t.computed)(()=>a.value?.version||``),l=(0,t.computed)(()=>a.value?.search_target?.db||``),u=(0,t.computed)(()=>{let e=s.value.toLowerCase();return e.includes(`p`)||e.includes(`x`)||e.includes(`tblast`)}),d=e=>{i.value=e,r.value=`alignments`};return(n,f)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`blast-viewer`,"data-theme":e.theme},[!a.value||!o.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,kt,[...f[2]||=[(0,t.createElementVNode)(`div`,{class:`error-icon`},`⚠️`,-1),(0,t.createElementVNode)(`h3`,null,`Invalid BLAST JSON Format`,-1),(0,t.createElementVNode)(`p`,null,` The provided data structure does not match standard BLAST JSON format (BlastOutput2 structure). Please upload or paste a valid BLAST output file in JSON format. `,-1)]])):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createVNode)(T,{"search-data":o.value,program:s.value,version:c.value,db:l.value,"query-link":e.queryLink},null,8,[`search-data`,`program`,`version`,`db`,`query-link`]),(0,t.createVNode)(X,{"search-data":o.value,"is-protein":u.value,onSelectHit:d},null,8,[`search-data`,`is-protein`]),(0,t.createElementVNode)(`div`,At,[(0,t.createElementVNode)(`div`,jt,[(0,t.createElementVNode)(`button`,{class:(0,t.normalizeClass)([`tab-btn`,{active:r.value===`table`}]),onClick:f[0]||=e=>r.value=`table`},` 📋 Descriptions Table `,2),(0,t.createElementVNode)(`button`,{class:(0,t.normalizeClass)([`tab-btn`,{active:r.value===`alignments`}]),onClick:f[1]||=e=>r.value=`alignments`},` 🔍 Pairwise Alignments `,2)]),(0,t.createElementVNode)(`div`,Mt,[(0,t.withDirectives)((0,t.createElementVNode)(`div`,Nt,[(0,t.createVNode)(Ke,{"search-data":o.value,"is-protein":u.value,"subject-link":e.subjectLink,onSelectHit:d},null,8,[`search-data`,`is-protein`,`subject-link`])],512),[[t.vShow,r.value===`table`]]),(0,t.withDirectives)((0,t.createElementVNode)(`div`,Pt,[(0,t.createVNode)(Dt,{"search-data":o.value,"is-protein":u.value,"selected-hit-num":i.value,"subject-link":e.subjectLink},null,8,[`search-data`,`is-protein`,`selected-hit-num`,`subject-link`])],512),[[t.vShow,r.value===`alignments`]])])])],64))],8,Ot))}}),[[`__scopeId`,`data-v-e1f420c8`]])});
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@lipme/vue-blast-viewer",
3
+ "version": "1.0.0",
4
+ "description": "Interactive BLAST alignment visualizer for Vue 3",
5
+ "type": "module",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://forgemia.inra.fr/lipme/vue-blast-viewer"
12
+ },
13
+ "author": {
14
+ "name": "Sebastien Carrere",
15
+ "email": "sebastien.carrere@inrae.fr"
16
+ },
17
+ "main": "./dist/vue-blast-viewer.umd.cjs",
18
+ "module": "./dist/vue-blast-viewer.js",
19
+ "types": "./dist/index.d.ts",
20
+ "style": "./dist/style.css",
21
+ "exports": {
22
+ ".": {
23
+ "import": "./dist/vue-blast-viewer.js",
24
+ "require": "./dist/vue-blast-viewer.umd.cjs",
25
+ "types": "./dist/index.d.ts"
26
+ },
27
+ "./style.css": "./dist/style.css"
28
+ },
29
+ "files": [
30
+ "dist"
31
+ ],
32
+ "scripts": {
33
+ "dev": "vite",
34
+ "build": "vite build && vue-tsc --declaration --emitDeclarationOnly --outDir dist",
35
+ "preview": "vite preview"
36
+ },
37
+ "peerDependencies": {
38
+ "vue": "^3.0.0"
39
+ },
40
+ "dependencies": {},
41
+ "devDependencies": {
42
+ "@types/node": "^24.13.2",
43
+ "@vitejs/plugin-vue": "^6.0.7",
44
+ "@vue/tsconfig": "^0.9.1",
45
+ "typescript": "~6.0.2",
46
+ "vite": "^8.1.0",
47
+ "vue": "^3.5.38",
48
+ "vue-tsc": "^3.3.5"
49
+ }
50
+ }