wuepgg 57.0.0 → 57.0.1
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/dist/App.d.ts +2 -1
- package/dist/{SharedSystems-Cg8IHJ_7-Pq8MKgLu.mjs → SharedSystems-Cg8IHJ_7-DUWpEIOW.mjs} +2 -2
- package/dist/{WebGLRenderer-ZzGpXHX0-BTwdLKz0.mjs → WebGLRenderer-ZzGpXHX0-1vvsykAt.mjs} +3 -3
- package/dist/{WebGPURenderer-DZd11EXZ-C57BTdWV.mjs → WebGPURenderer-DZd11EXZ-DTXzMvpt.mjs} +3 -3
- package/dist/{browserAll-CCzzqYhK-Bz9Z1p24.mjs → browserAll-CCzzqYhK-DErIYp-J.mjs} +2 -2
- package/dist/{colorToUniform-CSn0Emyh-i-ixYkdF.mjs → colorToUniform-CSn0Emyh-CBpgdFeq.mjs} +1 -1
- package/dist/{index-fOYUnWsz.mjs → index-DDPpvUvK.mjs} +7 -7
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/{init-D-ioxIiP-h1FrMy6F.mjs → init-D-ioxIiP-DGS8oUN9.mjs} +2 -2
- package/dist/webworkerAll-BNKXYog5-0Yzz34Dp.mjs +2 -0
- package/package.json +1 -1
- package/dist/webworkerAll-BNKXYog5-DcO_vHzd.mjs +0 -2
package/dist/App.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import RootLayoutProps from "./components/root-layout/RootLayoutProps";
|
|
2
|
+
export default function App(props: RootLayoutProps): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { x as l, M as F, a9 as ne, a2 as p, aa as Oe, V as S, ab as Fe, Y as R, a as D, O as De, l as v, _ as Ee, m as E, k as ae, b as ze, d as We, I as w, L as z, Q as b, n as He, p as W, ac as Le, H as m, D as Y, ad as ie, i as G, ae as Ve, a5 as B, af as J, a6 as U, ag as M, a7 as T, ah as je, $ as Q, g as k, ai as Ne, aj as X, ak as qe, U as $e, al as oe, W as Z, am as Ke, S as Ye, R as Je, an as ue, ao as le, ap as de } from "./index-
|
|
2
|
-
import { y as Qe, U as Xe, w as ce, S as Ze } from "./colorToUniform-CSn0Emyh-
|
|
1
|
+
import { x as l, M as F, a9 as ne, a2 as p, aa as Oe, V as S, ab as Fe, Y as R, a as D, O as De, l as v, _ as Ee, m as E, k as ae, b as ze, d as We, I as w, L as z, Q as b, n as He, p as W, ac as Le, H as m, D as Y, ad as ie, i as G, ae as Ve, a5 as B, af as J, a6 as U, ag as M, a7 as T, ah as je, $ as Q, g as k, ai as Ne, aj as X, ak as qe, U as $e, al as oe, W as Z, am as Ke, S as Ye, R as Je, an as ue, ao as le, ap as de } from "./index-DDPpvUvK.mjs";
|
|
2
|
+
import { y as Qe, U as Xe, w as ce, S as Ze } from "./colorToUniform-CSn0Emyh-CBpgdFeq.mjs";
|
|
3
3
|
var et = `in vec2 vMaskCoord;
|
|
4
4
|
in vec2 vTextureCoord;
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a0 as Ae, m as Be, x as d, c as Ne, M as S, a as g, R as Ge, v as F, H as E, a7 as j, L as T, a8 as Ce, g as A, W as $, a2 as b, s as z, C as K, l as q, k as O, z as Ie, A as De, F as ye, I as H, a6 as B, a5 as N } from "./index-
|
|
2
|
-
import { y as P, k as Z } from "./colorToUniform-CSn0Emyh-
|
|
3
|
-
import { F as Fe, L as Oe, I as Pe, D as Ue, A as Le, _ as Me, U as He, G as we, i as Ve, O as Q, C as G } from "./SharedSystems-Cg8IHJ_7-
|
|
1
|
+
import { a0 as Ae, m as Be, x as d, c as Ne, M as S, a as g, R as Ge, v as F, H as E, a7 as j, L as T, a8 as Ce, g as A, W as $, a2 as b, s as z, C as K, l as q, k as O, z as Ie, A as De, F as ye, I as H, a6 as B, a5 as N } from "./index-DDPpvUvK.mjs";
|
|
2
|
+
import { y as P, k as Z } from "./colorToUniform-CSn0Emyh-CBpgdFeq.mjs";
|
|
3
|
+
import { F as Fe, L as Oe, I as Pe, D as Ue, A as Le, _ as Me, U as He, G as we, i as Ve, O as Q, C as G } from "./SharedSystems-Cg8IHJ_7-DUWpEIOW.mjs";
|
|
4
4
|
class J {
|
|
5
5
|
constructor() {
|
|
6
6
|
this._tempState = P.for2d(), this._didUploadHash = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a0 as ae, m as ue, x as l, M as B, L as P, a1 as de, _ as R, k as H, e as U, a2 as S, a3 as w, a as v, g as T, $ as ce, a4 as O, q as z, y as A, v as L, l as F, H as E, r as he, E as le, a5 as x, a6 as pe, a7 as fe } from "./index-
|
|
2
|
-
import { y as k, h as ge, P as me } from "./colorToUniform-CSn0Emyh-
|
|
3
|
-
import { F as _e, L as be, I as xe, D as ye, _ as Ge, A as Pe, O as Be, B as Te, G as Se, E as ve } from "./SharedSystems-Cg8IHJ_7-
|
|
1
|
+
import { a0 as ae, m as ue, x as l, M as B, L as P, a1 as de, _ as R, k as H, e as U, a2 as S, a3 as w, a as v, g as T, $ as ce, a4 as O, q as z, y as A, v as L, l as F, H as E, r as he, E as le, a5 as x, a6 as pe, a7 as fe } from "./index-DDPpvUvK.mjs";
|
|
2
|
+
import { y as k, h as ge, P as me } from "./colorToUniform-CSn0Emyh-CBpgdFeq.mjs";
|
|
3
|
+
import { F as _e, L as be, I as xe, D as ye, _ as Ge, A as Pe, O as Be, B as Te, G as Se, E as ve } from "./SharedSystems-Cg8IHJ_7-DUWpEIOW.mjs";
|
|
4
4
|
const y = k.for2d();
|
|
5
5
|
class D {
|
|
6
6
|
start(e, t, r) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { x as y, M as P, V as q, o as et, D as A, t as Z, O as _, U as nt, a as f } from "./index-
|
|
2
|
-
import "./init-D-ioxIiP-
|
|
1
|
+
import { x as y, M as P, V as q, o as et, D as A, t as Z, O as _, U as nt, a as f } from "./index-DDPpvUvK.mjs";
|
|
2
|
+
import "./init-D-ioxIiP-DGS8oUN9.mjs";
|
|
3
3
|
class V {
|
|
4
4
|
constructor(t) {
|
|
5
5
|
this._lastTransform = "", this._observer = null, this._tickerAttached = !1, this.updateTranslation = () => {
|
|
@@ -342897,7 +342897,7 @@ const JY = (t) => {
|
|
|
342897
342897
|
},
|
|
342898
342898
|
test: () => !0,
|
|
342899
342899
|
load: async () => {
|
|
342900
|
-
await import("./browserAll-CCzzqYhK-
|
|
342900
|
+
await import("./browserAll-CCzzqYhK-DErIYp-J.mjs");
|
|
342901
342901
|
}
|
|
342902
342902
|
}, GCt = {
|
|
342903
342903
|
extension: {
|
|
@@ -342907,7 +342907,7 @@ const JY = (t) => {
|
|
|
342907
342907
|
},
|
|
342908
342908
|
test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
|
|
342909
342909
|
load: async () => {
|
|
342910
|
-
await import("./webworkerAll-BNKXYog5-
|
|
342910
|
+
await import("./webworkerAll-BNKXYog5-0Yzz34Dp.mjs");
|
|
342911
342911
|
}
|
|
342912
342912
|
};
|
|
342913
342913
|
class J2 {
|
|
@@ -351956,13 +351956,13 @@ async function IDt(t) {
|
|
|
351956
351956
|
for (let s = 0; s < e.length; s++) {
|
|
351957
351957
|
const o = e[s];
|
|
351958
351958
|
if (o === "webgpu" && await RDt()) {
|
|
351959
|
-
const { WebGPURenderer: m } = await import("./WebGPURenderer-DZd11EXZ-
|
|
351959
|
+
const { WebGPURenderer: m } = await import("./WebGPURenderer-DZd11EXZ-DTXzMvpt.mjs");
|
|
351960
351960
|
n = m, i = { ...t, ...t.webgpu };
|
|
351961
351961
|
break;
|
|
351962
351962
|
} else if (o === "webgl" && MDt(
|
|
351963
351963
|
t.failIfMajorPerformanceCaveat ?? k8e.defaultOptions.failIfMajorPerformanceCaveat
|
|
351964
351964
|
)) {
|
|
351965
|
-
const { WebGLRenderer: m } = await import("./WebGLRenderer-ZzGpXHX0-
|
|
351965
|
+
const { WebGLRenderer: m } = await import("./WebGLRenderer-ZzGpXHX0-1vvsykAt.mjs");
|
|
351966
351966
|
n = m, i = { ...t, ...t.webgl };
|
|
351967
351967
|
break;
|
|
351968
351968
|
} else if (o === "canvas")
|
|
@@ -433216,7 +433216,7 @@ function Jtn(t) {
|
|
|
433216
433216
|
}
|
|
433217
433217
|
);
|
|
433218
433218
|
}
|
|
433219
|
-
const Ktn = "57.0.
|
|
433219
|
+
const Ktn = "57.0.1", Ytn = ({ state: t, jumpToPast: e, jumpToFuture: n }) => {
|
|
433220
433220
|
const [i, a] = cc(!1), [s, o] = cc(!1), m = () => {
|
|
433221
433221
|
a(!0);
|
|
433222
433222
|
}, x = () => {
|
|
@@ -625129,8 +625129,8 @@ function Hcn({
|
|
|
625129
625129
|
}) {
|
|
625130
625130
|
return /* @__PURE__ */ Le(yVt, { store: axe, children: /* @__PURE__ */ Le(sxe, { loading: null, persistor: kcn, children: t }) });
|
|
625131
625131
|
}
|
|
625132
|
-
function uon() {
|
|
625133
|
-
return /* @__PURE__ */ Le(bqt, { transition: qcn, children: /* @__PURE__ */ Le(Hcn, { children: /* @__PURE__ */ Le(Xsn, {}) }) });
|
|
625132
|
+
function uon(t) {
|
|
625133
|
+
return /* @__PURE__ */ Le(bqt, { transition: qcn, children: /* @__PURE__ */ Le(Hcn, { children: /* @__PURE__ */ Le(Xsn, { ...t }) }) });
|
|
625134
625134
|
}
|
|
625135
625135
|
const qcn = {
|
|
625136
625136
|
type: "spring",
|
package/dist/index.es.js
CHANGED
package/dist/index.umd.js
CHANGED
|
@@ -2212,7 +2212,7 @@ FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of t
|
|
|
2212
2212
|
(Alt+H or Alt+D)`,children:me.jsx(djt,{className:"text-gray-600 dark:text-dark-primary",style:se})}),me.jsx("button",{onClick:()=>Ee(G0.Zoom),className:Ue(G0.Zoom),style:De(),title:`Zoom-in tool\r
|
|
2213
2213
|
(Alt+M)`,children:me.jsxs("span",{className:"flex flex-row items-center justify-center text-gray-600 dark:text-dark-primary",style:se,children:[me.jsx("span",{children:"⬚"}),me.jsx("span",{children:"+"})]})}),me.jsx("button",{onClick:()=>Ee(G0.Reorder),className:Ue(G0.Reorder),style:De(),title:`Reorder tool\r
|
|
2214
2214
|
(Alt+R or Alt+S)`,children:me.jsx(Zqt,{className:"text-gray-600 dark:text-dark-primary",style:se})}),me.jsx("button",{onClick:()=>Ee(G0.ReorderMany),className:Ue(G0.ReorderMany),style:De(),title:"Re-order Many",children:me.jsx(Lqt,{className:"text-gray-600 dark:text-dark-primary",style:se})}),me.jsx("div",{className:"h-full border-r border-gray-400"}),me.jsx("button",{onClick:()=>Ee(G0.PanLeft),className:Ue(G0.PanLeft),style:De(),title:"Pan left",children:me.jsx(Iqt,{className:"text-gray-600 dark:text-dark-primary",style:se})}),me.jsx("button",{onClick:()=>Ee(G0.ZoomOutFiveFold),className:Ue(G0.ZoomOutFiveFold),style:De(),title:"Zoom out 5x",children:me.jsx("span",{className:"text-gray-600 dark:text-dark-primary flex items-center justify-center",style:{...se,fontSize:`${i}px`},children:"-5"})}),me.jsx("button",{onClick:()=>Ee(G0.ZoomOutOneFold),className:Ue(G0.ZoomOutOneFold),style:De(),title:"Zoom out 1x",children:me.jsx("span",{className:"text-gray-600 dark:text-dark-primary flex items-center justify-center",style:{...se,fontSize:`${i}px`},children:"-1"})}),me.jsx("button",{onClick:()=>Ee(G0.ZoomOutOneThirdFold),className:Ue(G0.ZoomOutOneThirdFold),style:De(),title:"Zoom out ⅓",children:me.jsx("span",{className:"text-gray-600 dark:text-dark-primary flex items-center justify-center",style:{...se,fontSize:`${i}px`},children:"-⅓"})}),me.jsx("button",{onClick:()=>Ee(G0.ZoomInOneThirdFold),className:Ue(G0.ZoomInOneThirdFold),style:De(),title:"Zoom in ⅓",children:me.jsx("span",{className:"text-gray-600 dark:text-dark-primary flex items-center justify-center",style:{...se,fontSize:`${i}px`},children:"+⅓"})}),me.jsx("button",{onClick:()=>Ee(G0.ZoomInOneFold),className:Ue(G0.ZoomInOneFold),style:De(),title:"Zoom in 1x",children:me.jsx("span",{className:"text-gray-600 dark:text-dark-primary flex items-center justify-center",style:{...se,fontSize:`${i}px`},children:"+1"})}),me.jsx("button",{onClick:()=>Ee(G0.ZoomInFiveFold),className:Ue(G0.ZoomInFiveFold),style:De(),title:"Zoom in 5x",children:me.jsx("span",{className:"text-gray-600 dark:text-dark-primary flex items-center justify-center",style:{...se,fontSize:`${i}px`},children:"+5"})}),me.jsx("button",{onClick:()=>Ee(G0.PanRight),className:Ue(G0.PanRight),style:De(),title:"Pan right",children:me.jsx(Wqt,{className:"text-gray-600 dark:text-dark-primary",style:se})}),me.jsx("button",{onClick:()=>Ee(G0.Highlight),className:Ue(G0.Highlight),style:De(),title:`Highlight tool\r
|
|
2215
|
-
(Alt+N)`,children:me.jsx(ejt,{className:"text-gray-600 dark:text-dark-primary",style:se})}),me.jsx("button",{className:Ue(G0.highlightMenu),style:{...De(),display:"flex",alignItems:"center"},onClick:()=>Ee(G0.highlightMenu),title:"Highlight list",children:me.jsx(gjt,{className:"text-gray-600 dark:text-dark-primary",style:se})})]}),s===G0.highlightMenu?me.jsx(bJt,{selectedTool:s,onNewRegion:t,handleToolClick:Ee,genomeConfig:x,windowWidth:e||400}):null,s===G0.ReorderMany?me.jsx(p$t,{tracks:f?f.tracks:[],handleToolClick:Ee,windowWidth:e||400}):""]})]})})};function QBe(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=QBe(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function _$t(){for(var t,e,n=0,i="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=QBe(t))&&(i&&(i+=" "),i+=e);return i}const tie="-",A$t=t=>{const e=z$t(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:o=>{const f=o.split(tie);return f[0]===""&&f.length!==1&&f.shift(),ebe(f,e)||y$t(o)},getConflictingClassGroupIds:(o,f)=>{const y=n[o]||[];return f&&i[o]?[...y,...i[o]]:y}}},ebe=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const n=t[0],i=e.nextPart.get(n),a=i?ebe(t.slice(1),i):void 0;if(a)return a;if(e.validators.length===0)return;const s=t.join(tie);return(o=e.validators.find(({validator:f})=>f(s)))==null?void 0:o.classGroupId},rbe=/^\[(.+)\]$/,y$t=t=>{if(rbe.test(t)){const e=rbe.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},z$t=t=>{const{theme:e,classGroups:n}=t,i={nextPart:new Map,validators:[]};for(const a in n)nie(n[a],i,a,e);return i},nie=(t,e,n,i)=>{t.forEach(a=>{if(typeof a=="string"){const s=a===""?e:tbe(e,a);s.classGroupId=n;return}if(typeof a=="function"){if(C$t(a)){nie(a(i),e,n,i);return}e.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,o])=>{nie(o,tbe(e,s),n,i)})})},tbe=(t,e)=>{let n=t;return e.split(tie).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},C$t=t=>t.isThemeGetter,U$t=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,i=new Map;const a=(s,o)=>{n.set(s,o),e++,e>t&&(e=0,i=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=i.get(s))!==void 0)return a(s,o),o},set(s,o){n.has(s)?n.set(s,o):a(s,o)}}},iie="!",aie=":",D$t=aie.length,B$t=t=>{const{prefix:e,experimentalParseClassName:n}=t;let i=a=>{const s=[];let o=0,f=0,y=0,x;for(let Ue=0;Ue<a.length;Ue++){let De=a[Ue];if(o===0&&f===0){if(De===aie){s.push(a.slice(y,Ue)),y=Ue+D$t;continue}if(De==="/"){x=Ue;continue}}De==="["?o++:De==="]"?o--:De==="("?f++:De===")"&&f--}const R=s.length===0?a:a.substring(y),J=b$t(R),te=J!==R,se=x&&x>y?x-y:void 0;return{modifiers:s,hasImportantModifier:te,baseClassName:J,maybePostfixModifierPosition:se}};if(e){const a=e+aie,s=i;i=o=>o.startsWith(a)?s(o.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(n){const a=i;i=s=>n({className:s,parseClassName:a})}return i},b$t=t=>t.endsWith(iie)?t.substring(0,t.length-1):t.startsWith(iie)?t.substring(1):t,w$t=t=>{const e=Object.fromEntries(t.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const a=[];let s=[];return i.forEach(o=>{o[0]==="["||e[o]?(a.push(...s.sort(),o),s=[]):s.push(o)}),a.push(...s.sort()),a}},S$t=t=>({cache:U$t(t.cacheSize),parseClassName:B$t(t),sortModifiers:w$t(t),...A$t(t)}),x$t=/\s+/,E$t=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:s}=e,o=[],f=t.trim().split(x$t);let y="";for(let x=f.length-1;x>=0;x-=1){const R=f[x],{isExternal:J,modifiers:te,hasImportantModifier:se,baseClassName:Ue,maybePostfixModifierPosition:De}=n(R);if(J){y=R+(y.length>0?" "+y:y);continue}let Ee=!!De,ae=i(Ee?Ue.substring(0,De):Ue);if(!ae){if(!Ee){y=R+(y.length>0?" "+y:y);continue}if(ae=i(Ue),!ae){y=R+(y.length>0?" "+y:y);continue}Ee=!1}const Xe=s(te).join(":"),Qe=se?Xe+iie:Xe,tr=Qe+ae;if(o.includes(tr))continue;o.push(tr);const ir=a(ae,Ee);for(let pr=0;pr<ir.length;++pr){const He=ir[pr];o.push(Qe+He)}y=R+(y.length>0?" "+y:y)}return y};function T$t(){let t=0,e,n,i="";for(;t<arguments.length;)(e=arguments[t++])&&(n=nbe(e))&&(i&&(i+=" "),i+=n);return i}const nbe=t=>{if(typeof t=="string")return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=nbe(t[i]))&&(n&&(n+=" "),n+=e);return n};function F$t(t,...e){let n,i,a,s=o;function o(y){const x=e.reduce((R,J)=>J(R),t());return n=S$t(x),i=n.cache.get,a=n.cache.set,s=f,f(y)}function f(y){const x=i(y);if(x)return x;const R=E$t(y,n);return a(y,R),R}return function(){return s(T$t.apply(null,arguments))}}const qp=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},ibe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,abe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,N$t=/^\d+\/\d+$/,k$t=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,M$t=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,I$t=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,P$t=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,L$t=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,YS=t=>N$t.test(t),Lu=t=>!!t&&!Number.isNaN(Number(t)),P8=t=>!!t&&Number.isInteger(Number(t)),sie=t=>t.endsWith("%")&&Lu(t.slice(0,-1)),_9=t=>k$t.test(t),R$t=()=>!0,O$t=t=>M$t.test(t)&&!I$t.test(t),sbe=()=>!1,H$t=t=>P$t.test(t),W$t=t=>L$t.test(t),q$t=t=>!V0(t)&&!X0(t),j$t=t=>$S(t,ube,sbe),V0=t=>ibe.test(t),cD=t=>$S(t,fbe,O$t),oie=t=>$S(t,K$t,Lu),obe=t=>$S(t,hbe,sbe),G$t=t=>$S(t,lbe,W$t),eG=t=>$S(t,dbe,H$t),X0=t=>abe.test(t),FM=t=>QS(t,fbe),V$t=t=>QS(t,J$t),cbe=t=>QS(t,hbe),X$t=t=>QS(t,ube),Z$t=t=>QS(t,lbe),rG=t=>QS(t,dbe,!0),$S=(t,e,n)=>{const i=ibe.exec(t);return i?i[1]?e(i[1]):n(i[2]):!1},QS=(t,e,n=!1)=>{const i=abe.exec(t);return i?i[1]?e(i[1]):n:!1},hbe=t=>t==="position"||t==="percentage",lbe=t=>t==="image"||t==="url",ube=t=>t==="length"||t==="size"||t==="bg-size",fbe=t=>t==="length",K$t=t=>t==="number",J$t=t=>t==="family-name",dbe=t=>t==="shadow",Y$t=F$t(()=>{const t=qp("color"),e=qp("font"),n=qp("text"),i=qp("font-weight"),a=qp("tracking"),s=qp("leading"),o=qp("breakpoint"),f=qp("container"),y=qp("spacing"),x=qp("radius"),R=qp("shadow"),J=qp("inset-shadow"),te=qp("text-shadow"),se=qp("drop-shadow"),Ue=qp("blur"),De=qp("perspective"),Ee=qp("aspect"),ae=qp("ease"),Xe=qp("animate"),Qe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],tr=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ir=()=>[...tr(),X0,V0],pr=()=>["auto","hidden","clip","visible","scroll"],He=()=>["auto","contain","none"],ar=()=>[X0,V0,y],cr=()=>[YS,"full","auto",...ar()],Nr=()=>[P8,"none","subgrid",X0,V0],Xr=()=>["auto",{span:["full",P8,X0,V0]},P8,X0,V0],Lr=()=>[P8,"auto",X0,V0],ct=()=>["auto","min","max","fr",X0,V0],qr=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],yn=()=>["start","end","center","stretch","center-safe","end-safe"],Cn=()=>["auto",...ar()],Ct=()=>[YS,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...ar()],Tt=()=>[t,X0,V0],Ut=()=>[...tr(),cbe,obe,{position:[X0,V0]}],an=()=>["no-repeat",{repeat:["","x","y","space","round"]}],pt=()=>["auto","cover","contain",X$t,j$t,{size:[X0,V0]}],rt=()=>[sie,FM,cD],Kt=()=>["","none","full",x,X0,V0],qt=()=>["",Lu,FM,cD],hn=()=>["solid","dashed","dotted","double"],ni=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ra=()=>[Lu,sie,cbe,obe],Si=()=>["","none",Ue,X0,V0],Vi=()=>["none",Lu,X0,V0],ri=()=>["none",Lu,X0,V0],va=()=>[Lu,X0,V0],Ji=()=>[YS,"full",...ar()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_9],breakpoint:[_9],color:[R$t],container:[_9],"drop-shadow":[_9],ease:["in","out","in-out"],font:[q$t],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_9],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_9],shadow:[_9],spacing:["px",Lu],text:[_9],"text-shadow":[_9],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",YS,V0,X0,Ee]}],container:["container"],columns:[{columns:[Lu,V0,X0,f]}],"break-after":[{"break-after":Qe()}],"break-before":[{"break-before":Qe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ir()}],overflow:[{overflow:pr()}],"overflow-x":[{"overflow-x":pr()}],"overflow-y":[{"overflow-y":pr()}],overscroll:[{overscroll:He()}],"overscroll-x":[{"overscroll-x":He()}],"overscroll-y":[{"overscroll-y":He()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:cr()}],"inset-x":[{"inset-x":cr()}],"inset-y":[{"inset-y":cr()}],start:[{start:cr()}],end:[{end:cr()}],top:[{top:cr()}],right:[{right:cr()}],bottom:[{bottom:cr()}],left:[{left:cr()}],visibility:["visible","invisible","collapse"],z:[{z:[P8,"auto",X0,V0]}],basis:[{basis:[YS,"full","auto",f,...ar()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Lu,YS,"auto","initial","none",V0]}],grow:[{grow:["",Lu,X0,V0]}],shrink:[{shrink:["",Lu,X0,V0]}],order:[{order:[P8,"first","last","none",X0,V0]}],"grid-cols":[{"grid-cols":Nr()}],"col-start-end":[{col:Xr()}],"col-start":[{"col-start":Lr()}],"col-end":[{"col-end":Lr()}],"grid-rows":[{"grid-rows":Nr()}],"row-start-end":[{row:Xr()}],"row-start":[{"row-start":Lr()}],"row-end":[{"row-end":Lr()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ct()}],"auto-rows":[{"auto-rows":ct()}],gap:[{gap:ar()}],"gap-x":[{"gap-x":ar()}],"gap-y":[{"gap-y":ar()}],"justify-content":[{justify:[...qr(),"normal"]}],"justify-items":[{"justify-items":[...yn(),"normal"]}],"justify-self":[{"justify-self":["auto",...yn()]}],"align-content":[{content:["normal",...qr()]}],"align-items":[{items:[...yn(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...yn(),{baseline:["","last"]}]}],"place-content":[{"place-content":qr()}],"place-items":[{"place-items":[...yn(),"baseline"]}],"place-self":[{"place-self":["auto",...yn()]}],p:[{p:ar()}],px:[{px:ar()}],py:[{py:ar()}],ps:[{ps:ar()}],pe:[{pe:ar()}],pt:[{pt:ar()}],pr:[{pr:ar()}],pb:[{pb:ar()}],pl:[{pl:ar()}],m:[{m:Cn()}],mx:[{mx:Cn()}],my:[{my:Cn()}],ms:[{ms:Cn()}],me:[{me:Cn()}],mt:[{mt:Cn()}],mr:[{mr:Cn()}],mb:[{mb:Cn()}],ml:[{ml:Cn()}],"space-x":[{"space-x":ar()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":ar()}],"space-y-reverse":["space-y-reverse"],size:[{size:Ct()}],w:[{w:[f,"screen",...Ct()]}],"min-w":[{"min-w":[f,"screen","none",...Ct()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[o]},...Ct()]}],h:[{h:["screen","lh",...Ct()]}],"min-h":[{"min-h":["screen","lh","none",...Ct()]}],"max-h":[{"max-h":["screen","lh",...Ct()]}],"font-size":[{text:["base",n,FM,cD]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,X0,oie]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",sie,V0]}],"font-family":[{font:[V$t,V0,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,X0,V0]}],"line-clamp":[{"line-clamp":[Lu,"none",X0,oie]}],leading:[{leading:[s,...ar()]}],"list-image":[{"list-image":["none",X0,V0]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",X0,V0]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Tt()}],"text-color":[{text:Tt()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...hn(),"wavy"]}],"text-decoration-thickness":[{decoration:[Lu,"from-font","auto",X0,cD]}],"text-decoration-color":[{decoration:Tt()}],"underline-offset":[{"underline-offset":[Lu,"auto",X0,V0]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ar()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X0,V0]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X0,V0]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ut()}],"bg-repeat":[{bg:an()}],"bg-size":[{bg:pt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},P8,X0,V0],radial:["",X0,V0],conic:[P8,X0,V0]},Z$t,G$t]}],"bg-color":[{bg:Tt()}],"gradient-from-pos":[{from:rt()}],"gradient-via-pos":[{via:rt()}],"gradient-to-pos":[{to:rt()}],"gradient-from":[{from:Tt()}],"gradient-via":[{via:Tt()}],"gradient-to":[{to:Tt()}],rounded:[{rounded:Kt()}],"rounded-s":[{"rounded-s":Kt()}],"rounded-e":[{"rounded-e":Kt()}],"rounded-t":[{"rounded-t":Kt()}],"rounded-r":[{"rounded-r":Kt()}],"rounded-b":[{"rounded-b":Kt()}],"rounded-l":[{"rounded-l":Kt()}],"rounded-ss":[{"rounded-ss":Kt()}],"rounded-se":[{"rounded-se":Kt()}],"rounded-ee":[{"rounded-ee":Kt()}],"rounded-es":[{"rounded-es":Kt()}],"rounded-tl":[{"rounded-tl":Kt()}],"rounded-tr":[{"rounded-tr":Kt()}],"rounded-br":[{"rounded-br":Kt()}],"rounded-bl":[{"rounded-bl":Kt()}],"border-w":[{border:qt()}],"border-w-x":[{"border-x":qt()}],"border-w-y":[{"border-y":qt()}],"border-w-s":[{"border-s":qt()}],"border-w-e":[{"border-e":qt()}],"border-w-t":[{"border-t":qt()}],"border-w-r":[{"border-r":qt()}],"border-w-b":[{"border-b":qt()}],"border-w-l":[{"border-l":qt()}],"divide-x":[{"divide-x":qt()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":qt()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...hn(),"hidden","none"]}],"divide-style":[{divide:[...hn(),"hidden","none"]}],"border-color":[{border:Tt()}],"border-color-x":[{"border-x":Tt()}],"border-color-y":[{"border-y":Tt()}],"border-color-s":[{"border-s":Tt()}],"border-color-e":[{"border-e":Tt()}],"border-color-t":[{"border-t":Tt()}],"border-color-r":[{"border-r":Tt()}],"border-color-b":[{"border-b":Tt()}],"border-color-l":[{"border-l":Tt()}],"divide-color":[{divide:Tt()}],"outline-style":[{outline:[...hn(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Lu,X0,V0]}],"outline-w":[{outline:["",Lu,FM,cD]}],"outline-color":[{outline:Tt()}],shadow:[{shadow:["","none",R,rG,eG]}],"shadow-color":[{shadow:Tt()}],"inset-shadow":[{"inset-shadow":["none",J,rG,eG]}],"inset-shadow-color":[{"inset-shadow":Tt()}],"ring-w":[{ring:qt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Tt()}],"ring-offset-w":[{"ring-offset":[Lu,cD]}],"ring-offset-color":[{"ring-offset":Tt()}],"inset-ring-w":[{"inset-ring":qt()}],"inset-ring-color":[{"inset-ring":Tt()}],"text-shadow":[{"text-shadow":["none",te,rG,eG]}],"text-shadow-color":[{"text-shadow":Tt()}],opacity:[{opacity:[Lu,X0,V0]}],"mix-blend":[{"mix-blend":[...ni(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ni()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Lu]}],"mask-image-linear-from-pos":[{"mask-linear-from":ra()}],"mask-image-linear-to-pos":[{"mask-linear-to":ra()}],"mask-image-linear-from-color":[{"mask-linear-from":Tt()}],"mask-image-linear-to-color":[{"mask-linear-to":Tt()}],"mask-image-t-from-pos":[{"mask-t-from":ra()}],"mask-image-t-to-pos":[{"mask-t-to":ra()}],"mask-image-t-from-color":[{"mask-t-from":Tt()}],"mask-image-t-to-color":[{"mask-t-to":Tt()}],"mask-image-r-from-pos":[{"mask-r-from":ra()}],"mask-image-r-to-pos":[{"mask-r-to":ra()}],"mask-image-r-from-color":[{"mask-r-from":Tt()}],"mask-image-r-to-color":[{"mask-r-to":Tt()}],"mask-image-b-from-pos":[{"mask-b-from":ra()}],"mask-image-b-to-pos":[{"mask-b-to":ra()}],"mask-image-b-from-color":[{"mask-b-from":Tt()}],"mask-image-b-to-color":[{"mask-b-to":Tt()}],"mask-image-l-from-pos":[{"mask-l-from":ra()}],"mask-image-l-to-pos":[{"mask-l-to":ra()}],"mask-image-l-from-color":[{"mask-l-from":Tt()}],"mask-image-l-to-color":[{"mask-l-to":Tt()}],"mask-image-x-from-pos":[{"mask-x-from":ra()}],"mask-image-x-to-pos":[{"mask-x-to":ra()}],"mask-image-x-from-color":[{"mask-x-from":Tt()}],"mask-image-x-to-color":[{"mask-x-to":Tt()}],"mask-image-y-from-pos":[{"mask-y-from":ra()}],"mask-image-y-to-pos":[{"mask-y-to":ra()}],"mask-image-y-from-color":[{"mask-y-from":Tt()}],"mask-image-y-to-color":[{"mask-y-to":Tt()}],"mask-image-radial":[{"mask-radial":[X0,V0]}],"mask-image-radial-from-pos":[{"mask-radial-from":ra()}],"mask-image-radial-to-pos":[{"mask-radial-to":ra()}],"mask-image-radial-from-color":[{"mask-radial-from":Tt()}],"mask-image-radial-to-color":[{"mask-radial-to":Tt()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":tr()}],"mask-image-conic-pos":[{"mask-conic":[Lu]}],"mask-image-conic-from-pos":[{"mask-conic-from":ra()}],"mask-image-conic-to-pos":[{"mask-conic-to":ra()}],"mask-image-conic-from-color":[{"mask-conic-from":Tt()}],"mask-image-conic-to-color":[{"mask-conic-to":Tt()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ut()}],"mask-repeat":[{mask:an()}],"mask-size":[{mask:pt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",X0,V0]}],filter:[{filter:["","none",X0,V0]}],blur:[{blur:Si()}],brightness:[{brightness:[Lu,X0,V0]}],contrast:[{contrast:[Lu,X0,V0]}],"drop-shadow":[{"drop-shadow":["","none",se,rG,eG]}],"drop-shadow-color":[{"drop-shadow":Tt()}],grayscale:[{grayscale:["",Lu,X0,V0]}],"hue-rotate":[{"hue-rotate":[Lu,X0,V0]}],invert:[{invert:["",Lu,X0,V0]}],saturate:[{saturate:[Lu,X0,V0]}],sepia:[{sepia:["",Lu,X0,V0]}],"backdrop-filter":[{"backdrop-filter":["","none",X0,V0]}],"backdrop-blur":[{"backdrop-blur":Si()}],"backdrop-brightness":[{"backdrop-brightness":[Lu,X0,V0]}],"backdrop-contrast":[{"backdrop-contrast":[Lu,X0,V0]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Lu,X0,V0]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Lu,X0,V0]}],"backdrop-invert":[{"backdrop-invert":["",Lu,X0,V0]}],"backdrop-opacity":[{"backdrop-opacity":[Lu,X0,V0]}],"backdrop-saturate":[{"backdrop-saturate":[Lu,X0,V0]}],"backdrop-sepia":[{"backdrop-sepia":["",Lu,X0,V0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":ar()}],"border-spacing-x":[{"border-spacing-x":ar()}],"border-spacing-y":[{"border-spacing-y":ar()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",X0,V0]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Lu,"initial",X0,V0]}],ease:[{ease:["linear","initial",ae,X0,V0]}],delay:[{delay:[Lu,X0,V0]}],animate:[{animate:["none",Xe,X0,V0]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[De,X0,V0]}],"perspective-origin":[{"perspective-origin":ir()}],rotate:[{rotate:Vi()}],"rotate-x":[{"rotate-x":Vi()}],"rotate-y":[{"rotate-y":Vi()}],"rotate-z":[{"rotate-z":Vi()}],scale:[{scale:ri()}],"scale-x":[{"scale-x":ri()}],"scale-y":[{"scale-y":ri()}],"scale-z":[{"scale-z":ri()}],"scale-3d":["scale-3d"],skew:[{skew:va()}],"skew-x":[{"skew-x":va()}],"skew-y":[{"skew-y":va()}],transform:[{transform:[X0,V0,"","none","gpu","cpu"]}],"transform-origin":[{origin:ir()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ji()}],"translate-x":[{"translate-x":Ji()}],"translate-y":[{"translate-y":Ji()}],"translate-z":[{"translate-z":Ji()}],"translate-none":["translate-none"],accent:[{accent:Tt()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Tt()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X0,V0]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ar()}],"scroll-mx":[{"scroll-mx":ar()}],"scroll-my":[{"scroll-my":ar()}],"scroll-ms":[{"scroll-ms":ar()}],"scroll-me":[{"scroll-me":ar()}],"scroll-mt":[{"scroll-mt":ar()}],"scroll-mr":[{"scroll-mr":ar()}],"scroll-mb":[{"scroll-mb":ar()}],"scroll-ml":[{"scroll-ml":ar()}],"scroll-p":[{"scroll-p":ar()}],"scroll-px":[{"scroll-px":ar()}],"scroll-py":[{"scroll-py":ar()}],"scroll-ps":[{"scroll-ps":ar()}],"scroll-pe":[{"scroll-pe":ar()}],"scroll-pt":[{"scroll-pt":ar()}],"scroll-pr":[{"scroll-pr":ar()}],"scroll-pb":[{"scroll-pb":ar()}],"scroll-pl":[{"scroll-pl":ar()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X0,V0]}],fill:[{fill:["none",...Tt()]}],"stroke-w":[{stroke:[Lu,FM,cD,oie]}],stroke:[{stroke:["none",...Tt()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function $$t(...t){return Y$t(_$t(t))}function Q$t({className:t,...e}){return me.jsx("div",{"data-slot":"skeleton",className:$$t("bg-accent animate-pulse rounded-md",t),...e})}const eQt=40,rQt=250,tQt=3,nQt=({width:t=rQt,height:e=eQt,barCount:n=tQt})=>{const i=s0(FS),a=Br.useMemo(()=>Array.from({length:n},(s,o)=>{const f=[.3,.9,.6,.6,.9],y=["flex-start","flex-end","flex-start","flex-end","flex-start"],x=Math.floor(t*f[o%f.length]),R=y[o%y.length],J=["#6b7280","#9ca3af","#d1d5db"][o%3];return{barWidth:x,align:R,color:J,key:o}}),[t,n]);return me.jsx("div",{className:`bg-white dark:bg-dark-background ${i?"dark":""}`,"data-theme":i?"dark":"light",style:{display:"flex",flexDirection:"column",justifyContent:"flex-end",height:e,width:t,backgroundColor:"var(--bg-color)",gap:"2px"},children:a.map(({barWidth:s,align:o,color:f,key:y})=>me.jsx("div",{style:{display:"flex",width:"100%",justifyContent:o},children:me.jsx(Q$t,{style:{width:`${s}px`,height:"10px",backgroundColor:f,opacity:.8,borderRadius:"1rem"}})},y))})},vbe=kze([t=>t.browser,Wd],(t,e)=>e?{...t}:null);function iQt(){const t=s0(Wd),e=s0(vbe),n=x3(),i=s0(kne),a=n4(),s=s0(yte),o=s0(yCe),f=s0(sBe),y=s0(yCe),x=Br.useRef(null),R=t?t.bundleId:null,J=t?t.id:null;x.current!==J&&J!==null&&(x.current!==null&&n(nBe()),x.current=J,R&&n(lJt(R)));const te=Xe=>{n(Fne(Xe))},se=Xe=>{n(mf({highlights:Xe}))},Ue=Xe=>{n(mf({tracks:Xe}))},De=Xe=>{n(mf({userViewRegion:Xe}))},Ee=Xe=>{n(mf({viewRegion:Xe,userViewRegion:Xe}))};function ae(Xe,Qe){(t!=null&&t.selectedRegionSet||Xe)&&n(mf({selectedRegionSet:Xe,userViewRegion:Qe}))}return t&&a&&t.genomeId===a.name?me.jsx(bIt,{genomeName:t!=null&&t.genomeId?t==null?void 0:t.genomeId:"hg38",tracks:t.tracks,highlights:t.highlights,genomeConfig:a,legendWidth:120,showGenomeNav:s,showToolBar:o,onNewRegion:De,onNewHighlight:se,onTracksChange:Ue,onNewRegionSelect:Ee,onSetSelected:ae,viewRegion:t==null?void 0:t.viewRegion,userViewRegion:t.userViewRegion,tool:i,Toolbar:{toolbar:y===!1?"":g$t,skeleton:nQt},selectedRegionSet:t==null?void 0:t.selectedRegionSet,setScreenshotData:te,isScreenShotOpen:f,overrideViewRegion:t==null?void 0:t.overrideViewRegion,currentState:e},t.id):null}function NM({children:t,onClick:e,active:n=!1,disabled:i=!1,title:a,className:s=""}){const o=f=>{i||e==null||e(f)};return me.jsx("button",{className:Pk("text-primary p-2 rounded-xl flex items-center justify-center",n&&"bg-secondary",s),onClick:o,title:a,disabled:i,children:t})}function kA(){const t=x3();Br.useEffect(()=>(t(iCe(!0)),()=>{t(iCe(!1))}),[t])}const mbe=()=>{kA();const t=x3(),e=s0(AM),n=s0(Wd),i=s0(oBe),a=s0(yte),s=n4();if(!n||!s)return null;let o;if(n&&s&&i&&n.genomeId===s.name){const R=n.highlights,J=a,te=n.regionSets,se=n.tracks,Ue=n.selectedRegionSet,De=n.userViewRegion;let Ee;const ae=c2.deserialize(s);if(De){const Qe=ae.navContext.parse(De),{start:tr,end:ir}=Qe;Ee={start:tr,end:ir}}else Ee=ae.defaultRegion;o={bundleId:i.bundleId,customTracksPool:e,customGenome:n.customGenome,darkTheme:!1,genomeName:s.name?s.name:n.genomeId,genomeId:n.genomeId,highlights:R,isShowingNavigator:J,layout:{},chromosomes:n.customGenome?s.chromosomes:null,metadataTerms:[],regionSetView:Ue,regionSets:te,trackLegendWidth:120,tracks:se,viewRegion:De,viewInterval:Ee}}function f(R){let J=null,te=null;if(R.chromosomes&&R.chromosomes.length>0){const Ue={id:R.genomeId,name:R.genomeId,chromosomes:R.chromosomes,defaultTracks:R.tracks.map(De=>({...De,waitToUpdate:!0}))};t(bCe(Ue)),J=c2.deserialize(Ue)}else x5(R.genomeId)?J=x5(R.genomeId):R.viewRegion&&typeof R.viewRegion=="object"&&(J=x5(R.viewRegion._navContext._name));J&&R.viewRegion&&typeof R.viewRegion=="object"?te=new yl(J==null?void 0:J.navContext,R.viewRegion._startBase,R.viewRegion._endBase).currentRegionAsString():J&&R.viewRegion!==void 0?te=R.viewRegion:J&&R.viewInterval&&(te=new yl(J==null?void 0:J.navContext,R.viewInterval.start,R.viewInterval.end).currentRegionAsString());const se={genomeId:J?J==null?void 0:J.genome.getName():R.genomeId?R.genomeId:null,customGenome:R.customGenome,chromosomes:R.chromosomes?R.chromosomes:null,createdAt:Date.now(),updatedAt:Date.now(),title:R.title?R.title:"Untitled Session",viewRegion:te,userViewRegion:te,tracks:R.tracks.map(Ue=>({...Ue,waitToUpdate:!0})),highlights:R.highlights??[],metadataTerms:R.metadataTerms??[],selectedRegionSet:R.regionSetView??null,regionSets:R.regionSets??[]};t(nBe()),t(mf(se))}function y(R){R&&R.bundleId&&(t(Wj(R)),R.bundleId!==(n==null?void 0:n.bundleId)&&t(mf({bundleId:R.bundleId})))}function x(R){let J="Untitled Session";R.sessionsInBundle&&R.sessionsInBundle[`${R.currentId}`]&&(J=R.sessionsInBundle[`${R.currentId}`].label),t(Wj(R)),t(mf({bundleId:R.bundleId,title:J}))}return me.jsx(tJt,{onRestoreSession:f,onRetrieveBundle:y,updateBundle:x,bundleId:i.bundleId?i.bundleId:"",curBundle:i,state:o})};function aQt(t){const[e,n]=Br.useState(!1),[i,a]=Br.useState(""),[s,o]=Br.useState(!1),f=Br.useRef(null),y=()=>{a(t.value),n(!0)};Br.useEffect(()=>{a(t.value)},[t.value]),Br.useEffect(()=>{const Ee=ae=>{f.current&&!f.current.contains(ae.target)&&x()};return e&&document.addEventListener("mousedown",Ee),()=>{document.removeEventListener("mousedown",Ee)}},[e]);const x=()=>{var Ee;if(n(!1),i!==t.value){if((Ee=t.prohibitedValues)!=null&&Ee.includes(i.toLowerCase())){const ae=document.createElement("div");ae.className="fixed bottom-4 left-4 bg-red-500 text-white px-4 py-2 rounded shadow-lg",ae.textContent="You can't set to this reserved value!",document.body.appendChild(ae),setTimeout(()=>{document.body.removeChild(ae)},3e3);return}t.onChange(i),o(!1)}},R=Ee=>Ee.target.select(),J=()=>o(!0),te=()=>o(!1),se=t.style||"text-base";let Ue;const De={width:`${Math.max(t.value.length,10)}ch`,minWidth:"75px"};return e?Ue=me.jsx("input",{value:i,onChange:Ee=>a(Ee.target.value),onKeyDown:Ee=>{Ee.key==="Enter"?x():Ee.key==="Escape"&&n(!1)},autoFocus:!0,onFocus:R,className:`outline-none ${se}`,style:De}):Ue=me.jsx("span",{className:`${se} inline-block`,style:De,children:t.value}),e?me.jsxs("div",{ref:f,className:`relative inline-block ${s&&!e?"outline outline-1 outline-gray-300":""}`,children:[Ue,me.jsx("div",{className:"absolute top-full left-0 mt-2 z-50 bg-white border border-gray-200 shadow-lg rounded",children:me.jsx(mbe,{})})]}):me.jsx("div",{onMouseEnter:J,onMouseLeave:te,className:"inline-block",children:me.jsxs("div",{onClick:y,className:`inline-block cursor-pointer ${s?"outline outline-1 outline-gray-300":""}`,children:[Ue,me.jsx("div",{className:"absolute invisible group-hover:visible top-full mt-1 left-1/2 transform -translate-x-1/2 px-2 py-1 bg-gray-800 text-white text-xs rounded whitespace-nowrap z-10 before:content-[''] before:absolute before:bottom-full before:left-1/2 before:-ml-1 before:border-4 before:border-transparent before:border-b-gray-800",children:t.tooltip??"Click to edit"})]})})}const sQt="57.0.0",oQt=({state:t,jumpToPast:e,jumpToFuture:n})=>{const[i,a]=Br.useState(!1),[s,o]=Br.useState(!1),f=()=>{a(!0)},y=()=>{a(!1)},x=se=>{se.stopPropagation(),i?y():f()};function R(){o(!0),J()}const J=()=>{const{past:se,future:Ue}=t;if(se.length===0&&Ue.length===0||s)return me.jsx("div",{children:"No operation history yet!"});const De=te(se,ae=>e(ae)),Ee=te(Ue,ae=>n(ae));return me.jsxs("div",{children:[se.length>0&&me.jsx("p",{children:"Go back:"}),De,Ue.length>0&&me.jsx("p",{children:"Go forward:"}),Ee]})},te=(se,Ue,De)=>{const Ee=se.map((ae,Xe)=>{const Qe=ae.currentSession;let tr=null;return Qe&&ae.sessions.entities[`${Qe}`]&&(tr=ae.sessions.entities[`${Qe}`]),me.jsxs("li",{onClick:()=>Ue(Xe),style:{border:"1px solid #ccc",borderRadius:"4px",padding:"clamp(0.4em, 0.5vw, 0.4em)",fontSize:"clamp(10px, 0.9vw, 14px)",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"clamp(4px, 0.5vw, 8px)",marginBottom:"0.1em"},children:[me.jsxs("span",{children:["Region:"," ",tr&&tr.userViewRegion?tr.userViewRegion:tr&&tr.viewRegion?tr.viewRegion:"(None)",", # of tracks:"," ",tr&&tr.tracks?tr.tracks.length:0]}),me.jsx("button",{style:{fontSize:"clamp(10px, 0.8vw, 14px)",marginRight:"4px",fontStyle:"italic",textDecoration:"underline",padding:"2px 6px",border:"1px solid transparent",borderRadius:"3px",transition:"background-color 0.2s, border-color 0.2s"},onMouseEnter:ir=>{ir.currentTarget.style.backgroundColor="#f3f4f6",ir.currentTarget.style.borderColor="#d1d5db"},onMouseLeave:ir=>{ir.currentTarget.style.backgroundColor="transparent",ir.currentTarget.style.borderColor="transparent"},children:"Select"})]},Xe)});return me.jsx("ol",{style:{display:"flex",flexDirection:"column",gap:"0.1em"},children:Ee})};return Br.useEffect(()=>{o(!1)},[t]),me.jsx("div",{className:"relative",children:me.jsxs(_p,{onOutsideClick:y,children:[me.jsxs("button",{onClick:x,title:"Operation history",className:"flex items-center gap-2 border border-gray-300 rounded-md px-2 py-1 mx-2 hover:bg-gray-50 transition-colors",children:[me.jsx(hjt,{className:"w-4 h-4"}),me.jsx("span",{className:"text-base font-medium",children:"History"}),me.jsx(Ol.div,{animate:{rotate:i?90:0},transition:{duration:.2},children:me.jsx(dte,{className:"w-4 h-4"})})]}),me.jsx(vg,{children:i&&me.jsx(Ol.div,{className:"absolute top-full right-0 mt-2 bg-white border border-gray-300 rounded-lg shadow-lg z-50 min-w-[400px]",initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.2},children:me.jsxs("div",{className:"p-4",children:[me.jsxs("div",{className:"flex items-center justify-between mb-3",children:[me.jsx("h5",{className:"text-xl font-semibold text-gray-800",children:"Operation history"}),me.jsxs("div",{className:"flex gap-2",children:[me.jsx("button",{onClick:()=>R(),className:"px-2 py-0.5 text-base border-1 border-blue-500 text-blue-500 bg-transparent rounded hover:bg-blue-50 transition-colors",children:"Clear History"}),me.jsx("button",{onClick:y,className:"px-2 py-0.5 text-base border-1 border-red-500 text-red-500 bg-transparent rounded hover:bg-red-50 transition-colors",children:"Close"})]})]}),me.jsx("div",{className:"max-h-80 overflow-y-auto",children:J()})]})})})]})})};function cQt(){var Xe,Qe;const t=s0(oBe),e=fte(),[n,i]=Br.useState(!1),a=x3(),s=s0(ute),o=s0(Wd),f=s0(vbe),y=s0(aCe),x=s0(FS),{undo:R,redo:J,canUndo:te,canRedo:se,jumpToPast:Ue,jumpToFuture:De}=Eqt(),Ee=n4(),ae=Ee!=null&&Ee.name?((Xe=Cte[Ee.name])==null?void 0:Xe.croppedUrl)??((Qe=Cte[Ee.name])==null?void 0:Qe.logoUrl):null;return me.jsxs("div",{className:"flex flex-row justify-between items-center p-1 border-b border-gray-300 bg-white dark:bg-dark-background relative",children:[me.jsxs("div",{className:"flex flex-row items-center gap-3 relative",children:[o&&me.jsx(Jqt,{className:"size-5 text-gray-600 dark:text-dark-primary cursor-pointer",onClick:()=>{a(Ik(!1)),a(u9(null))}}),me.jsx("img",{src:ae?"/"+ae:zte,alt:"logo",className:Pk("z-10","size-12",o?"cursor-pointer":"cursor-default",y?"bg-secondary dark:bg-dark-secondary":"",ae?"rounded-full p-1":"rounded-md p-2",ae&&!y?"outline outline-gray-200":""),onClick:()=>{o&&a(Ik(!y))}}),!e&&(o?me.jsxs("div",{className:"flex flex-row items-center gap-2 z-10",children:[o.title.length>0&&(Ee==null?void 0:Ee.name)&&me.jsxs(me.Fragment,{children:[me.jsx("p",{className:"text-xl font-medium",children:Ee==null?void 0:Ee.name}),me.jsx("p",{className:"text-xl font-light",children:"/"})]}),me.jsx(aQt,{value:o.title.length>0?o.title:(Ee==null?void 0:Ee.name)??"Untitled Session",onChange:async tr=>{if(t.currentId&&t.sessionsInBundle){const ir={...t.sessionsInBundle[`${t.currentId}`],label:tr},pr={...t,sessionsInBundle:{...t.sessionsInBundle,[t.currentId]:ir}};a(Wj(pr));const He=gM();try{await Oj(pM(He,`sessions/${t.bundleId}`),JSON.parse(JSON.stringify(pr))),console.log("Session saved!","success",2e3)}catch(ar){console.error(ar),console.log("Error while saving session","error",2e3)}}a(mf({title:tr}))},style:`text-xl font-light border border-blue-500 px-2 ${o.title.length>0?"":"font-medium"}`,tooltip:o.title.length>0?"Click to edit":"Click to add title"})]}):me.jsxs("h1",{className:"text-xl font-light",children:[me.jsx("span",{className:"font-medium",children:"WashU "})," Epigenome Browser"]})),!e&&me.jsx("span",{className:"text-xs text-red-500",children:sQt})]}),me.jsx("div",{className:"flex items-center gap-2",children:e?me.jsx(NM,{onClick:()=>i(!n),title:"Menu",children:n?me.jsx(Bjt,{className:"h-6 w-6"}):me.jsx($qt,{className:"h-6 w-6"})}):me.jsx(vg,{children:o!==null?me.jsxs(Ol.div,{className:"flex flex-row items-center gap-4",style:{pointerEvents:y?"none":"auto"},initial:{opacity:0,y:20},animate:{opacity:y?0:1,y:0},exit:{opacity:0,y:20},transition:{duration:.2},children:[me.jsx(NM,{onClick:R,disabled:!te,title:"Undo",className:te?"":"opacity-50 cursor-not-allowed",children:me.jsx(cCe,{className:"h-5 w-5"})}),me.jsx(NM,{onClick:J,disabled:!se,title:"Redo",className:se?"":"opacity-50 cursor-not-allowed",children:me.jsx(hCe,{className:"h-5 w-5"})}),me.jsx(oQt,{state:{past:f?f.past:[],future:f?f.future:[]},jumpToPast:Ue,jumpToFuture:De}),me.jsx("div",{className:"h-5 border-r border-gray-400"}),me.jsx(H3,{onClick:()=>a(G_(s==="tracks"?null:"tracks")),active:s==="tracks",children:"Tracks"}),me.jsx(H3,{onClick:()=>a(G_(s==="apps"?null:"apps")),active:s==="apps",children:"Apps"}),me.jsx(H3,{onClick:()=>a(G_(s==="share"?null:"share")),active:s==="share",children:"Share"}),me.jsx(H3,{onClick:()=>a(G_(s==="settings"?null:"settings")),active:s==="settings",children:"Settings"}),me.jsx(H3,{onClick:()=>a(G_(s==="help"?null:"help")),active:s==="help",children:"Help"})]}):me.jsxs(Ol.div,{className:"flex flex-row items-center gap-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.2},children:[me.jsx(Lk,{checked:x,onChange:tr=>a(Ate(tr)),checkedIcon:me.jsx(uCe,{className:"w-4 h-4 text-gray-400"}),uncheckedIcon:me.jsx(fCe,{className:"w-4 h-4 text-white"})}),me.jsx(H3,{style:{backgroundColor:"rgb(232 222 248 / var(--tw-bg-opacity, 1))",padding:"4px 8px",color:"black"},onClick:()=>window.open("https://epigenomegateway.wustl.edu/browser2022/","_blank"),active:s==="tracks",children:"Previous Version"})]})})}),me.jsx(vg,{children:e&&n&&me.jsx(Ol.div,{className:"absolute top-full left-0 right-0 bg-white dark:bg-dark-background border-b border-gray-300 shadow-lg z-50",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:me.jsx("div",{className:"flex flex-col p-4 gap-2",children:o!==null?me.jsxs(me.Fragment,{children:[me.jsxs("div",{className:"flex gap-2 mb-2",children:[me.jsx(NM,{onClick:R,disabled:!te,title:"Undo",className:te?"":"opacity-50 cursor-not-allowed",children:me.jsx(cCe,{className:"h-5 w-5"})}),me.jsx(NM,{onClick:J,disabled:!se,title:"Redo",className:se?"":"opacity-50 cursor-not-allowed",children:me.jsx(hCe,{className:"h-5 w-5"})})]}),me.jsx(H3,{onClick:()=>{a(G_(s==="tracks"?null:"tracks")),i(!1)},active:s==="tracks",style:{width:"100%",justifyContent:"flex-start"},children:"Tracks"}),me.jsx(H3,{onClick:()=>{a(G_(s==="apps"?null:"apps")),i(!1)},active:s==="apps",style:{width:"100%",justifyContent:"flex-start"},children:"Apps"}),me.jsx(H3,{onClick:()=>{a(G_(s==="share"?null:"share")),i(!1)},active:s==="share",style:{width:"100%",justifyContent:"flex-start"},children:"Share"}),me.jsx(H3,{onClick:()=>{a(G_(s==="settings"?null:"settings")),i(!1)},active:s==="settings",style:{width:"100%",justifyContent:"flex-start"},children:"Settings"}),me.jsx(H3,{onClick:()=>{a(G_(s==="help"?null:"help")),i(!1)},active:s==="help",style:{width:"100%",justifyContent:"flex-start"},children:"Help"})]}):me.jsxs(me.Fragment,{children:[me.jsxs("div",{className:"flex items-center justify-between mb-2",children:[me.jsx("span",{className:"text-sm",children:"Dark Mode"}),me.jsx(Lk,{checked:x,onChange:tr=>a(Ate(tr)),checkedIcon:me.jsx(uCe,{className:"w-4 h-4 text-gray-400"}),uncheckedIcon:me.jsx(fCe,{className:"w-4 h-4 text-white"})})]}),me.jsx(H3,{style:{backgroundColor:"rgb(232 222 248 / var(--tw-bg-opacity, 1))",padding:"8px 16px",color:"black",width:"100%",justifyContent:"flex-start"},onClick:()=>{window.open("https://epigenomegateway.wustl.edu/browser2022/","_blank"),i(!1)},children:"Previous Version"})]})})})})]})}function V_({title:t,description:e,path:n,onClick:i,params:a}){const{push:s}=QU(),o=()=>{n?s({path:n,params:a}):i&&i()};return me.jsxs("div",{className:"text-primary flex flex-row gap-4 bg-secondary dark:bg-dark-secondary p-4 rounded-xl justify-between items-center cursor-pointer",onClick:o,children:[me.jsxs("div",{className:"flex flex-col gap-2",children:[me.jsx("h1",{className:"text-xl text-primary dark:text-dark-primary",children:t}),e&&me.jsx("p",{className:"text-sm text-primary dark:text-dark-primary",children:e})]}),me.jsx("div",{children:me.jsx(mte,{className:"size-6 text-primary dark:text-dark-primary"})})]})}function hQt({data:t,onSelect:e,selectedIds:n}){const[i,a]=Br.useState(""),s=aj(),o=Br.useMemo(()=>i?t.filter(J=>[J.title,J.id,J.section,...Object.values(J.data||{})].some(se=>String(se).toLowerCase().includes(i.toLowerCase()))):t,[t,i]),f=Br.useMemo(()=>{if(!o.some(se=>se.section!==void 0))return[{name:"",items:o}];const te={};return o.forEach(se=>{const Ue=se.section||"Other";te[Ue]||(te[Ue]=[]),te[Ue].push(se)}),Object.entries(te).map(([se,Ue])=>({name:se,items:Ue})).filter(se=>se.items.length>0)},[o]),y=()=>me.jsx("div",{ref:s.ref,className:"sticky top-0 z-20 pb-2 flex items-center bg-white dark:bg-dark-background",children:me.jsx("input",{type:"text",placeholder:"Search...",value:i,onChange:J=>a(J.target.value),className:"w-full px-4 py-1 border border-gray-300 rounded-full"})}),x=J=>me.jsxs("div",{className:"flex items-center justify-between py-1 max-w-full min-w-0 gap-2",children:[me.jsx("span",{className:"text-sm truncate min-w-0 flex-1",title:J.title,children:J.title}),n!==void 0&&me.jsx(me.Fragment,{children:n.has(J.id)?me.jsx("div",{className:"w-6 h-6 rounded-md bg-green-200 dark:bg-green-900 flex items-center justify-center flex-shrink-0",children:me.jsx(pte,{className:"w-4 h-4 text-primary dark:text-dark-primary"})}):me.jsx("button",{className:"w-6 h-6 rounded-md bg-secondary dark:bg-dark-secondary flex items-center justify-center hover:bg-purple-200 flex-shrink-0",onClick:te=>{te.stopPropagation(),e(J)},children:me.jsx(pCe,{className:"w-4 h-4 text-primary dark:text-dark-primary"})})})]},J.id),R=J=>me.jsxs("div",{className:"mb-4 relative",children:[J.name&&me.jsx("h2",{className:"text-base font-medium mb-1 sticky z-10 pb-1 bg-white dark:bg-dark-background",style:{top:`${s.height}px`},children:J.name}),me.jsx("div",{className:J.name?"pl-3 border-l border-gray-200":"",children:J.items.map(te=>x(te))})]},J.name);return me.jsxs("div",{className:"max-w-full",children:[y(),f.map(J=>R(J))]})}function lQt(){const t=x3(),e=s0(Wd),n=n4(),i=Br.useMemo(()=>new Set(e==null?void 0:e.tracks.map(o=>o.name)),[e==null?void 0:e.tracks]),a=Br.useMemo(()=>{const o=(n==null?void 0:n.annotationTracks)||{};return Object.entries(o).flatMap(([f,y])=>{let x=[];return Array.isArray(y)&&y.length>0&&Array.isArray(y[0])?x=y.flat():!Array.isArray(y)&&typeof y=="object"&&y!==null?x=Object.values(y).flat():x=Array.isArray(y)?y:[y],x.map(R=>({section:f,genomeName:n&&n.name?n.name:"none",id:R.name||R.url,title:R.label??R.name,data:R}))})},[n]),s=o=>{const f={...o.data};f.metadata={...f.metadata,genome:n&&n.name?n.name:"none"},t(mf({tracks:[...e.tracks,f]}))};return me.jsx(hQt,{data:a,selectedIds:i,onSelect:s})}var cie={exports:{}},hD={},hie={exports:{}},tG={exports:{}},Nf={};/** @license React v16.13.1
|
|
2215
|
+
(Alt+N)`,children:me.jsx(ejt,{className:"text-gray-600 dark:text-dark-primary",style:se})}),me.jsx("button",{className:Ue(G0.highlightMenu),style:{...De(),display:"flex",alignItems:"center"},onClick:()=>Ee(G0.highlightMenu),title:"Highlight list",children:me.jsx(gjt,{className:"text-gray-600 dark:text-dark-primary",style:se})})]}),s===G0.highlightMenu?me.jsx(bJt,{selectedTool:s,onNewRegion:t,handleToolClick:Ee,genomeConfig:x,windowWidth:e||400}):null,s===G0.ReorderMany?me.jsx(p$t,{tracks:f?f.tracks:[],handleToolClick:Ee,windowWidth:e||400}):""]})]})})};function QBe(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=QBe(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function _$t(){for(var t,e,n=0,i="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=QBe(t))&&(i&&(i+=" "),i+=e);return i}const tie="-",A$t=t=>{const e=z$t(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:o=>{const f=o.split(tie);return f[0]===""&&f.length!==1&&f.shift(),ebe(f,e)||y$t(o)},getConflictingClassGroupIds:(o,f)=>{const y=n[o]||[];return f&&i[o]?[...y,...i[o]]:y}}},ebe=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const n=t[0],i=e.nextPart.get(n),a=i?ebe(t.slice(1),i):void 0;if(a)return a;if(e.validators.length===0)return;const s=t.join(tie);return(o=e.validators.find(({validator:f})=>f(s)))==null?void 0:o.classGroupId},rbe=/^\[(.+)\]$/,y$t=t=>{if(rbe.test(t)){const e=rbe.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},z$t=t=>{const{theme:e,classGroups:n}=t,i={nextPart:new Map,validators:[]};for(const a in n)nie(n[a],i,a,e);return i},nie=(t,e,n,i)=>{t.forEach(a=>{if(typeof a=="string"){const s=a===""?e:tbe(e,a);s.classGroupId=n;return}if(typeof a=="function"){if(C$t(a)){nie(a(i),e,n,i);return}e.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,o])=>{nie(o,tbe(e,s),n,i)})})},tbe=(t,e)=>{let n=t;return e.split(tie).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},C$t=t=>t.isThemeGetter,U$t=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,i=new Map;const a=(s,o)=>{n.set(s,o),e++,e>t&&(e=0,i=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=i.get(s))!==void 0)return a(s,o),o},set(s,o){n.has(s)?n.set(s,o):a(s,o)}}},iie="!",aie=":",D$t=aie.length,B$t=t=>{const{prefix:e,experimentalParseClassName:n}=t;let i=a=>{const s=[];let o=0,f=0,y=0,x;for(let Ue=0;Ue<a.length;Ue++){let De=a[Ue];if(o===0&&f===0){if(De===aie){s.push(a.slice(y,Ue)),y=Ue+D$t;continue}if(De==="/"){x=Ue;continue}}De==="["?o++:De==="]"?o--:De==="("?f++:De===")"&&f--}const R=s.length===0?a:a.substring(y),J=b$t(R),te=J!==R,se=x&&x>y?x-y:void 0;return{modifiers:s,hasImportantModifier:te,baseClassName:J,maybePostfixModifierPosition:se}};if(e){const a=e+aie,s=i;i=o=>o.startsWith(a)?s(o.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(n){const a=i;i=s=>n({className:s,parseClassName:a})}return i},b$t=t=>t.endsWith(iie)?t.substring(0,t.length-1):t.startsWith(iie)?t.substring(1):t,w$t=t=>{const e=Object.fromEntries(t.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const a=[];let s=[];return i.forEach(o=>{o[0]==="["||e[o]?(a.push(...s.sort(),o),s=[]):s.push(o)}),a.push(...s.sort()),a}},S$t=t=>({cache:U$t(t.cacheSize),parseClassName:B$t(t),sortModifiers:w$t(t),...A$t(t)}),x$t=/\s+/,E$t=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:s}=e,o=[],f=t.trim().split(x$t);let y="";for(let x=f.length-1;x>=0;x-=1){const R=f[x],{isExternal:J,modifiers:te,hasImportantModifier:se,baseClassName:Ue,maybePostfixModifierPosition:De}=n(R);if(J){y=R+(y.length>0?" "+y:y);continue}let Ee=!!De,ae=i(Ee?Ue.substring(0,De):Ue);if(!ae){if(!Ee){y=R+(y.length>0?" "+y:y);continue}if(ae=i(Ue),!ae){y=R+(y.length>0?" "+y:y);continue}Ee=!1}const Xe=s(te).join(":"),Qe=se?Xe+iie:Xe,tr=Qe+ae;if(o.includes(tr))continue;o.push(tr);const ir=a(ae,Ee);for(let pr=0;pr<ir.length;++pr){const He=ir[pr];o.push(Qe+He)}y=R+(y.length>0?" "+y:y)}return y};function T$t(){let t=0,e,n,i="";for(;t<arguments.length;)(e=arguments[t++])&&(n=nbe(e))&&(i&&(i+=" "),i+=n);return i}const nbe=t=>{if(typeof t=="string")return t;let e,n="";for(let i=0;i<t.length;i++)t[i]&&(e=nbe(t[i]))&&(n&&(n+=" "),n+=e);return n};function F$t(t,...e){let n,i,a,s=o;function o(y){const x=e.reduce((R,J)=>J(R),t());return n=S$t(x),i=n.cache.get,a=n.cache.set,s=f,f(y)}function f(y){const x=i(y);if(x)return x;const R=E$t(y,n);return a(y,R),R}return function(){return s(T$t.apply(null,arguments))}}const qp=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},ibe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,abe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,N$t=/^\d+\/\d+$/,k$t=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,M$t=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,I$t=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,P$t=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,L$t=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,YS=t=>N$t.test(t),Lu=t=>!!t&&!Number.isNaN(Number(t)),P8=t=>!!t&&Number.isInteger(Number(t)),sie=t=>t.endsWith("%")&&Lu(t.slice(0,-1)),_9=t=>k$t.test(t),R$t=()=>!0,O$t=t=>M$t.test(t)&&!I$t.test(t),sbe=()=>!1,H$t=t=>P$t.test(t),W$t=t=>L$t.test(t),q$t=t=>!V0(t)&&!X0(t),j$t=t=>$S(t,ube,sbe),V0=t=>ibe.test(t),cD=t=>$S(t,fbe,O$t),oie=t=>$S(t,K$t,Lu),obe=t=>$S(t,hbe,sbe),G$t=t=>$S(t,lbe,W$t),eG=t=>$S(t,dbe,H$t),X0=t=>abe.test(t),FM=t=>QS(t,fbe),V$t=t=>QS(t,J$t),cbe=t=>QS(t,hbe),X$t=t=>QS(t,ube),Z$t=t=>QS(t,lbe),rG=t=>QS(t,dbe,!0),$S=(t,e,n)=>{const i=ibe.exec(t);return i?i[1]?e(i[1]):n(i[2]):!1},QS=(t,e,n=!1)=>{const i=abe.exec(t);return i?i[1]?e(i[1]):n:!1},hbe=t=>t==="position"||t==="percentage",lbe=t=>t==="image"||t==="url",ube=t=>t==="length"||t==="size"||t==="bg-size",fbe=t=>t==="length",K$t=t=>t==="number",J$t=t=>t==="family-name",dbe=t=>t==="shadow",Y$t=F$t(()=>{const t=qp("color"),e=qp("font"),n=qp("text"),i=qp("font-weight"),a=qp("tracking"),s=qp("leading"),o=qp("breakpoint"),f=qp("container"),y=qp("spacing"),x=qp("radius"),R=qp("shadow"),J=qp("inset-shadow"),te=qp("text-shadow"),se=qp("drop-shadow"),Ue=qp("blur"),De=qp("perspective"),Ee=qp("aspect"),ae=qp("ease"),Xe=qp("animate"),Qe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],tr=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ir=()=>[...tr(),X0,V0],pr=()=>["auto","hidden","clip","visible","scroll"],He=()=>["auto","contain","none"],ar=()=>[X0,V0,y],cr=()=>[YS,"full","auto",...ar()],Nr=()=>[P8,"none","subgrid",X0,V0],Xr=()=>["auto",{span:["full",P8,X0,V0]},P8,X0,V0],Lr=()=>[P8,"auto",X0,V0],ct=()=>["auto","min","max","fr",X0,V0],qr=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],yn=()=>["start","end","center","stretch","center-safe","end-safe"],Cn=()=>["auto",...ar()],Ct=()=>[YS,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...ar()],Tt=()=>[t,X0,V0],Ut=()=>[...tr(),cbe,obe,{position:[X0,V0]}],an=()=>["no-repeat",{repeat:["","x","y","space","round"]}],pt=()=>["auto","cover","contain",X$t,j$t,{size:[X0,V0]}],rt=()=>[sie,FM,cD],Kt=()=>["","none","full",x,X0,V0],qt=()=>["",Lu,FM,cD],hn=()=>["solid","dashed","dotted","double"],ni=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ra=()=>[Lu,sie,cbe,obe],Si=()=>["","none",Ue,X0,V0],Vi=()=>["none",Lu,X0,V0],ri=()=>["none",Lu,X0,V0],va=()=>[Lu,X0,V0],Ji=()=>[YS,"full",...ar()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_9],breakpoint:[_9],color:[R$t],container:[_9],"drop-shadow":[_9],ease:["in","out","in-out"],font:[q$t],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_9],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_9],shadow:[_9],spacing:["px",Lu],text:[_9],"text-shadow":[_9],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",YS,V0,X0,Ee]}],container:["container"],columns:[{columns:[Lu,V0,X0,f]}],"break-after":[{"break-after":Qe()}],"break-before":[{"break-before":Qe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ir()}],overflow:[{overflow:pr()}],"overflow-x":[{"overflow-x":pr()}],"overflow-y":[{"overflow-y":pr()}],overscroll:[{overscroll:He()}],"overscroll-x":[{"overscroll-x":He()}],"overscroll-y":[{"overscroll-y":He()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:cr()}],"inset-x":[{"inset-x":cr()}],"inset-y":[{"inset-y":cr()}],start:[{start:cr()}],end:[{end:cr()}],top:[{top:cr()}],right:[{right:cr()}],bottom:[{bottom:cr()}],left:[{left:cr()}],visibility:["visible","invisible","collapse"],z:[{z:[P8,"auto",X0,V0]}],basis:[{basis:[YS,"full","auto",f,...ar()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Lu,YS,"auto","initial","none",V0]}],grow:[{grow:["",Lu,X0,V0]}],shrink:[{shrink:["",Lu,X0,V0]}],order:[{order:[P8,"first","last","none",X0,V0]}],"grid-cols":[{"grid-cols":Nr()}],"col-start-end":[{col:Xr()}],"col-start":[{"col-start":Lr()}],"col-end":[{"col-end":Lr()}],"grid-rows":[{"grid-rows":Nr()}],"row-start-end":[{row:Xr()}],"row-start":[{"row-start":Lr()}],"row-end":[{"row-end":Lr()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ct()}],"auto-rows":[{"auto-rows":ct()}],gap:[{gap:ar()}],"gap-x":[{"gap-x":ar()}],"gap-y":[{"gap-y":ar()}],"justify-content":[{justify:[...qr(),"normal"]}],"justify-items":[{"justify-items":[...yn(),"normal"]}],"justify-self":[{"justify-self":["auto",...yn()]}],"align-content":[{content:["normal",...qr()]}],"align-items":[{items:[...yn(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...yn(),{baseline:["","last"]}]}],"place-content":[{"place-content":qr()}],"place-items":[{"place-items":[...yn(),"baseline"]}],"place-self":[{"place-self":["auto",...yn()]}],p:[{p:ar()}],px:[{px:ar()}],py:[{py:ar()}],ps:[{ps:ar()}],pe:[{pe:ar()}],pt:[{pt:ar()}],pr:[{pr:ar()}],pb:[{pb:ar()}],pl:[{pl:ar()}],m:[{m:Cn()}],mx:[{mx:Cn()}],my:[{my:Cn()}],ms:[{ms:Cn()}],me:[{me:Cn()}],mt:[{mt:Cn()}],mr:[{mr:Cn()}],mb:[{mb:Cn()}],ml:[{ml:Cn()}],"space-x":[{"space-x":ar()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":ar()}],"space-y-reverse":["space-y-reverse"],size:[{size:Ct()}],w:[{w:[f,"screen",...Ct()]}],"min-w":[{"min-w":[f,"screen","none",...Ct()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[o]},...Ct()]}],h:[{h:["screen","lh",...Ct()]}],"min-h":[{"min-h":["screen","lh","none",...Ct()]}],"max-h":[{"max-h":["screen","lh",...Ct()]}],"font-size":[{text:["base",n,FM,cD]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,X0,oie]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",sie,V0]}],"font-family":[{font:[V$t,V0,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,X0,V0]}],"line-clamp":[{"line-clamp":[Lu,"none",X0,oie]}],leading:[{leading:[s,...ar()]}],"list-image":[{"list-image":["none",X0,V0]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",X0,V0]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Tt()}],"text-color":[{text:Tt()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...hn(),"wavy"]}],"text-decoration-thickness":[{decoration:[Lu,"from-font","auto",X0,cD]}],"text-decoration-color":[{decoration:Tt()}],"underline-offset":[{"underline-offset":[Lu,"auto",X0,V0]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ar()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X0,V0]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X0,V0]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ut()}],"bg-repeat":[{bg:an()}],"bg-size":[{bg:pt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},P8,X0,V0],radial:["",X0,V0],conic:[P8,X0,V0]},Z$t,G$t]}],"bg-color":[{bg:Tt()}],"gradient-from-pos":[{from:rt()}],"gradient-via-pos":[{via:rt()}],"gradient-to-pos":[{to:rt()}],"gradient-from":[{from:Tt()}],"gradient-via":[{via:Tt()}],"gradient-to":[{to:Tt()}],rounded:[{rounded:Kt()}],"rounded-s":[{"rounded-s":Kt()}],"rounded-e":[{"rounded-e":Kt()}],"rounded-t":[{"rounded-t":Kt()}],"rounded-r":[{"rounded-r":Kt()}],"rounded-b":[{"rounded-b":Kt()}],"rounded-l":[{"rounded-l":Kt()}],"rounded-ss":[{"rounded-ss":Kt()}],"rounded-se":[{"rounded-se":Kt()}],"rounded-ee":[{"rounded-ee":Kt()}],"rounded-es":[{"rounded-es":Kt()}],"rounded-tl":[{"rounded-tl":Kt()}],"rounded-tr":[{"rounded-tr":Kt()}],"rounded-br":[{"rounded-br":Kt()}],"rounded-bl":[{"rounded-bl":Kt()}],"border-w":[{border:qt()}],"border-w-x":[{"border-x":qt()}],"border-w-y":[{"border-y":qt()}],"border-w-s":[{"border-s":qt()}],"border-w-e":[{"border-e":qt()}],"border-w-t":[{"border-t":qt()}],"border-w-r":[{"border-r":qt()}],"border-w-b":[{"border-b":qt()}],"border-w-l":[{"border-l":qt()}],"divide-x":[{"divide-x":qt()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":qt()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...hn(),"hidden","none"]}],"divide-style":[{divide:[...hn(),"hidden","none"]}],"border-color":[{border:Tt()}],"border-color-x":[{"border-x":Tt()}],"border-color-y":[{"border-y":Tt()}],"border-color-s":[{"border-s":Tt()}],"border-color-e":[{"border-e":Tt()}],"border-color-t":[{"border-t":Tt()}],"border-color-r":[{"border-r":Tt()}],"border-color-b":[{"border-b":Tt()}],"border-color-l":[{"border-l":Tt()}],"divide-color":[{divide:Tt()}],"outline-style":[{outline:[...hn(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Lu,X0,V0]}],"outline-w":[{outline:["",Lu,FM,cD]}],"outline-color":[{outline:Tt()}],shadow:[{shadow:["","none",R,rG,eG]}],"shadow-color":[{shadow:Tt()}],"inset-shadow":[{"inset-shadow":["none",J,rG,eG]}],"inset-shadow-color":[{"inset-shadow":Tt()}],"ring-w":[{ring:qt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Tt()}],"ring-offset-w":[{"ring-offset":[Lu,cD]}],"ring-offset-color":[{"ring-offset":Tt()}],"inset-ring-w":[{"inset-ring":qt()}],"inset-ring-color":[{"inset-ring":Tt()}],"text-shadow":[{"text-shadow":["none",te,rG,eG]}],"text-shadow-color":[{"text-shadow":Tt()}],opacity:[{opacity:[Lu,X0,V0]}],"mix-blend":[{"mix-blend":[...ni(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ni()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Lu]}],"mask-image-linear-from-pos":[{"mask-linear-from":ra()}],"mask-image-linear-to-pos":[{"mask-linear-to":ra()}],"mask-image-linear-from-color":[{"mask-linear-from":Tt()}],"mask-image-linear-to-color":[{"mask-linear-to":Tt()}],"mask-image-t-from-pos":[{"mask-t-from":ra()}],"mask-image-t-to-pos":[{"mask-t-to":ra()}],"mask-image-t-from-color":[{"mask-t-from":Tt()}],"mask-image-t-to-color":[{"mask-t-to":Tt()}],"mask-image-r-from-pos":[{"mask-r-from":ra()}],"mask-image-r-to-pos":[{"mask-r-to":ra()}],"mask-image-r-from-color":[{"mask-r-from":Tt()}],"mask-image-r-to-color":[{"mask-r-to":Tt()}],"mask-image-b-from-pos":[{"mask-b-from":ra()}],"mask-image-b-to-pos":[{"mask-b-to":ra()}],"mask-image-b-from-color":[{"mask-b-from":Tt()}],"mask-image-b-to-color":[{"mask-b-to":Tt()}],"mask-image-l-from-pos":[{"mask-l-from":ra()}],"mask-image-l-to-pos":[{"mask-l-to":ra()}],"mask-image-l-from-color":[{"mask-l-from":Tt()}],"mask-image-l-to-color":[{"mask-l-to":Tt()}],"mask-image-x-from-pos":[{"mask-x-from":ra()}],"mask-image-x-to-pos":[{"mask-x-to":ra()}],"mask-image-x-from-color":[{"mask-x-from":Tt()}],"mask-image-x-to-color":[{"mask-x-to":Tt()}],"mask-image-y-from-pos":[{"mask-y-from":ra()}],"mask-image-y-to-pos":[{"mask-y-to":ra()}],"mask-image-y-from-color":[{"mask-y-from":Tt()}],"mask-image-y-to-color":[{"mask-y-to":Tt()}],"mask-image-radial":[{"mask-radial":[X0,V0]}],"mask-image-radial-from-pos":[{"mask-radial-from":ra()}],"mask-image-radial-to-pos":[{"mask-radial-to":ra()}],"mask-image-radial-from-color":[{"mask-radial-from":Tt()}],"mask-image-radial-to-color":[{"mask-radial-to":Tt()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":tr()}],"mask-image-conic-pos":[{"mask-conic":[Lu]}],"mask-image-conic-from-pos":[{"mask-conic-from":ra()}],"mask-image-conic-to-pos":[{"mask-conic-to":ra()}],"mask-image-conic-from-color":[{"mask-conic-from":Tt()}],"mask-image-conic-to-color":[{"mask-conic-to":Tt()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ut()}],"mask-repeat":[{mask:an()}],"mask-size":[{mask:pt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",X0,V0]}],filter:[{filter:["","none",X0,V0]}],blur:[{blur:Si()}],brightness:[{brightness:[Lu,X0,V0]}],contrast:[{contrast:[Lu,X0,V0]}],"drop-shadow":[{"drop-shadow":["","none",se,rG,eG]}],"drop-shadow-color":[{"drop-shadow":Tt()}],grayscale:[{grayscale:["",Lu,X0,V0]}],"hue-rotate":[{"hue-rotate":[Lu,X0,V0]}],invert:[{invert:["",Lu,X0,V0]}],saturate:[{saturate:[Lu,X0,V0]}],sepia:[{sepia:["",Lu,X0,V0]}],"backdrop-filter":[{"backdrop-filter":["","none",X0,V0]}],"backdrop-blur":[{"backdrop-blur":Si()}],"backdrop-brightness":[{"backdrop-brightness":[Lu,X0,V0]}],"backdrop-contrast":[{"backdrop-contrast":[Lu,X0,V0]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Lu,X0,V0]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Lu,X0,V0]}],"backdrop-invert":[{"backdrop-invert":["",Lu,X0,V0]}],"backdrop-opacity":[{"backdrop-opacity":[Lu,X0,V0]}],"backdrop-saturate":[{"backdrop-saturate":[Lu,X0,V0]}],"backdrop-sepia":[{"backdrop-sepia":["",Lu,X0,V0]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":ar()}],"border-spacing-x":[{"border-spacing-x":ar()}],"border-spacing-y":[{"border-spacing-y":ar()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",X0,V0]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Lu,"initial",X0,V0]}],ease:[{ease:["linear","initial",ae,X0,V0]}],delay:[{delay:[Lu,X0,V0]}],animate:[{animate:["none",Xe,X0,V0]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[De,X0,V0]}],"perspective-origin":[{"perspective-origin":ir()}],rotate:[{rotate:Vi()}],"rotate-x":[{"rotate-x":Vi()}],"rotate-y":[{"rotate-y":Vi()}],"rotate-z":[{"rotate-z":Vi()}],scale:[{scale:ri()}],"scale-x":[{"scale-x":ri()}],"scale-y":[{"scale-y":ri()}],"scale-z":[{"scale-z":ri()}],"scale-3d":["scale-3d"],skew:[{skew:va()}],"skew-x":[{"skew-x":va()}],"skew-y":[{"skew-y":va()}],transform:[{transform:[X0,V0,"","none","gpu","cpu"]}],"transform-origin":[{origin:ir()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ji()}],"translate-x":[{"translate-x":Ji()}],"translate-y":[{"translate-y":Ji()}],"translate-z":[{"translate-z":Ji()}],"translate-none":["translate-none"],accent:[{accent:Tt()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Tt()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X0,V0]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ar()}],"scroll-mx":[{"scroll-mx":ar()}],"scroll-my":[{"scroll-my":ar()}],"scroll-ms":[{"scroll-ms":ar()}],"scroll-me":[{"scroll-me":ar()}],"scroll-mt":[{"scroll-mt":ar()}],"scroll-mr":[{"scroll-mr":ar()}],"scroll-mb":[{"scroll-mb":ar()}],"scroll-ml":[{"scroll-ml":ar()}],"scroll-p":[{"scroll-p":ar()}],"scroll-px":[{"scroll-px":ar()}],"scroll-py":[{"scroll-py":ar()}],"scroll-ps":[{"scroll-ps":ar()}],"scroll-pe":[{"scroll-pe":ar()}],"scroll-pt":[{"scroll-pt":ar()}],"scroll-pr":[{"scroll-pr":ar()}],"scroll-pb":[{"scroll-pb":ar()}],"scroll-pl":[{"scroll-pl":ar()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X0,V0]}],fill:[{fill:["none",...Tt()]}],"stroke-w":[{stroke:[Lu,FM,cD,oie]}],stroke:[{stroke:["none",...Tt()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function $$t(...t){return Y$t(_$t(t))}function Q$t({className:t,...e}){return me.jsx("div",{"data-slot":"skeleton",className:$$t("bg-accent animate-pulse rounded-md",t),...e})}const eQt=40,rQt=250,tQt=3,nQt=({width:t=rQt,height:e=eQt,barCount:n=tQt})=>{const i=s0(FS),a=Br.useMemo(()=>Array.from({length:n},(s,o)=>{const f=[.3,.9,.6,.6,.9],y=["flex-start","flex-end","flex-start","flex-end","flex-start"],x=Math.floor(t*f[o%f.length]),R=y[o%y.length],J=["#6b7280","#9ca3af","#d1d5db"][o%3];return{barWidth:x,align:R,color:J,key:o}}),[t,n]);return me.jsx("div",{className:`bg-white dark:bg-dark-background ${i?"dark":""}`,"data-theme":i?"dark":"light",style:{display:"flex",flexDirection:"column",justifyContent:"flex-end",height:e,width:t,backgroundColor:"var(--bg-color)",gap:"2px"},children:a.map(({barWidth:s,align:o,color:f,key:y})=>me.jsx("div",{style:{display:"flex",width:"100%",justifyContent:o},children:me.jsx(Q$t,{style:{width:`${s}px`,height:"10px",backgroundColor:f,opacity:.8,borderRadius:"1rem"}})},y))})},vbe=kze([t=>t.browser,Wd],(t,e)=>e?{...t}:null);function iQt(){const t=s0(Wd),e=s0(vbe),n=x3(),i=s0(kne),a=n4(),s=s0(yte),o=s0(yCe),f=s0(sBe),y=s0(yCe),x=Br.useRef(null),R=t?t.bundleId:null,J=t?t.id:null;x.current!==J&&J!==null&&(x.current!==null&&n(nBe()),x.current=J,R&&n(lJt(R)));const te=Xe=>{n(Fne(Xe))},se=Xe=>{n(mf({highlights:Xe}))},Ue=Xe=>{n(mf({tracks:Xe}))},De=Xe=>{n(mf({userViewRegion:Xe}))},Ee=Xe=>{n(mf({viewRegion:Xe,userViewRegion:Xe}))};function ae(Xe,Qe){(t!=null&&t.selectedRegionSet||Xe)&&n(mf({selectedRegionSet:Xe,userViewRegion:Qe}))}return t&&a&&t.genomeId===a.name?me.jsx(bIt,{genomeName:t!=null&&t.genomeId?t==null?void 0:t.genomeId:"hg38",tracks:t.tracks,highlights:t.highlights,genomeConfig:a,legendWidth:120,showGenomeNav:s,showToolBar:o,onNewRegion:De,onNewHighlight:se,onTracksChange:Ue,onNewRegionSelect:Ee,onSetSelected:ae,viewRegion:t==null?void 0:t.viewRegion,userViewRegion:t.userViewRegion,tool:i,Toolbar:{toolbar:y===!1?"":g$t,skeleton:nQt},selectedRegionSet:t==null?void 0:t.selectedRegionSet,setScreenshotData:te,isScreenShotOpen:f,overrideViewRegion:t==null?void 0:t.overrideViewRegion,currentState:e},t.id):null}function NM({children:t,onClick:e,active:n=!1,disabled:i=!1,title:a,className:s=""}){const o=f=>{i||e==null||e(f)};return me.jsx("button",{className:Pk("text-primary p-2 rounded-xl flex items-center justify-center",n&&"bg-secondary",s),onClick:o,title:a,disabled:i,children:t})}function kA(){const t=x3();Br.useEffect(()=>(t(iCe(!0)),()=>{t(iCe(!1))}),[t])}const mbe=()=>{kA();const t=x3(),e=s0(AM),n=s0(Wd),i=s0(oBe),a=s0(yte),s=n4();if(!n||!s)return null;let o;if(n&&s&&i&&n.genomeId===s.name){const R=n.highlights,J=a,te=n.regionSets,se=n.tracks,Ue=n.selectedRegionSet,De=n.userViewRegion;let Ee;const ae=c2.deserialize(s);if(De){const Qe=ae.navContext.parse(De),{start:tr,end:ir}=Qe;Ee={start:tr,end:ir}}else Ee=ae.defaultRegion;o={bundleId:i.bundleId,customTracksPool:e,customGenome:n.customGenome,darkTheme:!1,genomeName:s.name?s.name:n.genomeId,genomeId:n.genomeId,highlights:R,isShowingNavigator:J,layout:{},chromosomes:n.customGenome?s.chromosomes:null,metadataTerms:[],regionSetView:Ue,regionSets:te,trackLegendWidth:120,tracks:se,viewRegion:De,viewInterval:Ee}}function f(R){let J=null,te=null;if(R.chromosomes&&R.chromosomes.length>0){const Ue={id:R.genomeId,name:R.genomeId,chromosomes:R.chromosomes,defaultTracks:R.tracks.map(De=>({...De,waitToUpdate:!0}))};t(bCe(Ue)),J=c2.deserialize(Ue)}else x5(R.genomeId)?J=x5(R.genomeId):R.viewRegion&&typeof R.viewRegion=="object"&&(J=x5(R.viewRegion._navContext._name));J&&R.viewRegion&&typeof R.viewRegion=="object"?te=new yl(J==null?void 0:J.navContext,R.viewRegion._startBase,R.viewRegion._endBase).currentRegionAsString():J&&R.viewRegion!==void 0?te=R.viewRegion:J&&R.viewInterval&&(te=new yl(J==null?void 0:J.navContext,R.viewInterval.start,R.viewInterval.end).currentRegionAsString());const se={genomeId:J?J==null?void 0:J.genome.getName():R.genomeId?R.genomeId:null,customGenome:R.customGenome,chromosomes:R.chromosomes?R.chromosomes:null,createdAt:Date.now(),updatedAt:Date.now(),title:R.title?R.title:"Untitled Session",viewRegion:te,userViewRegion:te,tracks:R.tracks.map(Ue=>({...Ue,waitToUpdate:!0})),highlights:R.highlights??[],metadataTerms:R.metadataTerms??[],selectedRegionSet:R.regionSetView??null,regionSets:R.regionSets??[]};t(nBe()),t(mf(se))}function y(R){R&&R.bundleId&&(t(Wj(R)),R.bundleId!==(n==null?void 0:n.bundleId)&&t(mf({bundleId:R.bundleId})))}function x(R){let J="Untitled Session";R.sessionsInBundle&&R.sessionsInBundle[`${R.currentId}`]&&(J=R.sessionsInBundle[`${R.currentId}`].label),t(Wj(R)),t(mf({bundleId:R.bundleId,title:J}))}return me.jsx(tJt,{onRestoreSession:f,onRetrieveBundle:y,updateBundle:x,bundleId:i.bundleId?i.bundleId:"",curBundle:i,state:o})};function aQt(t){const[e,n]=Br.useState(!1),[i,a]=Br.useState(""),[s,o]=Br.useState(!1),f=Br.useRef(null),y=()=>{a(t.value),n(!0)};Br.useEffect(()=>{a(t.value)},[t.value]),Br.useEffect(()=>{const Ee=ae=>{f.current&&!f.current.contains(ae.target)&&x()};return e&&document.addEventListener("mousedown",Ee),()=>{document.removeEventListener("mousedown",Ee)}},[e]);const x=()=>{var Ee;if(n(!1),i!==t.value){if((Ee=t.prohibitedValues)!=null&&Ee.includes(i.toLowerCase())){const ae=document.createElement("div");ae.className="fixed bottom-4 left-4 bg-red-500 text-white px-4 py-2 rounded shadow-lg",ae.textContent="You can't set to this reserved value!",document.body.appendChild(ae),setTimeout(()=>{document.body.removeChild(ae)},3e3);return}t.onChange(i),o(!1)}},R=Ee=>Ee.target.select(),J=()=>o(!0),te=()=>o(!1),se=t.style||"text-base";let Ue;const De={width:`${Math.max(t.value.length,10)}ch`,minWidth:"75px"};return e?Ue=me.jsx("input",{value:i,onChange:Ee=>a(Ee.target.value),onKeyDown:Ee=>{Ee.key==="Enter"?x():Ee.key==="Escape"&&n(!1)},autoFocus:!0,onFocus:R,className:`outline-none ${se}`,style:De}):Ue=me.jsx("span",{className:`${se} inline-block`,style:De,children:t.value}),e?me.jsxs("div",{ref:f,className:`relative inline-block ${s&&!e?"outline outline-1 outline-gray-300":""}`,children:[Ue,me.jsx("div",{className:"absolute top-full left-0 mt-2 z-50 bg-white border border-gray-200 shadow-lg rounded",children:me.jsx(mbe,{})})]}):me.jsx("div",{onMouseEnter:J,onMouseLeave:te,className:"inline-block",children:me.jsxs("div",{onClick:y,className:`inline-block cursor-pointer ${s?"outline outline-1 outline-gray-300":""}`,children:[Ue,me.jsx("div",{className:"absolute invisible group-hover:visible top-full mt-1 left-1/2 transform -translate-x-1/2 px-2 py-1 bg-gray-800 text-white text-xs rounded whitespace-nowrap z-10 before:content-[''] before:absolute before:bottom-full before:left-1/2 before:-ml-1 before:border-4 before:border-transparent before:border-b-gray-800",children:t.tooltip??"Click to edit"})]})})}const sQt="57.0.1",oQt=({state:t,jumpToPast:e,jumpToFuture:n})=>{const[i,a]=Br.useState(!1),[s,o]=Br.useState(!1),f=()=>{a(!0)},y=()=>{a(!1)},x=se=>{se.stopPropagation(),i?y():f()};function R(){o(!0),J()}const J=()=>{const{past:se,future:Ue}=t;if(se.length===0&&Ue.length===0||s)return me.jsx("div",{children:"No operation history yet!"});const De=te(se,ae=>e(ae)),Ee=te(Ue,ae=>n(ae));return me.jsxs("div",{children:[se.length>0&&me.jsx("p",{children:"Go back:"}),De,Ue.length>0&&me.jsx("p",{children:"Go forward:"}),Ee]})},te=(se,Ue,De)=>{const Ee=se.map((ae,Xe)=>{const Qe=ae.currentSession;let tr=null;return Qe&&ae.sessions.entities[`${Qe}`]&&(tr=ae.sessions.entities[`${Qe}`]),me.jsxs("li",{onClick:()=>Ue(Xe),style:{border:"1px solid #ccc",borderRadius:"4px",padding:"clamp(0.4em, 0.5vw, 0.4em)",fontSize:"clamp(10px, 0.9vw, 14px)",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"clamp(4px, 0.5vw, 8px)",marginBottom:"0.1em"},children:[me.jsxs("span",{children:["Region:"," ",tr&&tr.userViewRegion?tr.userViewRegion:tr&&tr.viewRegion?tr.viewRegion:"(None)",", # of tracks:"," ",tr&&tr.tracks?tr.tracks.length:0]}),me.jsx("button",{style:{fontSize:"clamp(10px, 0.8vw, 14px)",marginRight:"4px",fontStyle:"italic",textDecoration:"underline",padding:"2px 6px",border:"1px solid transparent",borderRadius:"3px",transition:"background-color 0.2s, border-color 0.2s"},onMouseEnter:ir=>{ir.currentTarget.style.backgroundColor="#f3f4f6",ir.currentTarget.style.borderColor="#d1d5db"},onMouseLeave:ir=>{ir.currentTarget.style.backgroundColor="transparent",ir.currentTarget.style.borderColor="transparent"},children:"Select"})]},Xe)});return me.jsx("ol",{style:{display:"flex",flexDirection:"column",gap:"0.1em"},children:Ee})};return Br.useEffect(()=>{o(!1)},[t]),me.jsx("div",{className:"relative",children:me.jsxs(_p,{onOutsideClick:y,children:[me.jsxs("button",{onClick:x,title:"Operation history",className:"flex items-center gap-2 border border-gray-300 rounded-md px-2 py-1 mx-2 hover:bg-gray-50 transition-colors",children:[me.jsx(hjt,{className:"w-4 h-4"}),me.jsx("span",{className:"text-base font-medium",children:"History"}),me.jsx(Ol.div,{animate:{rotate:i?90:0},transition:{duration:.2},children:me.jsx(dte,{className:"w-4 h-4"})})]}),me.jsx(vg,{children:i&&me.jsx(Ol.div,{className:"absolute top-full right-0 mt-2 bg-white border border-gray-300 rounded-lg shadow-lg z-50 min-w-[400px]",initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.2},children:me.jsxs("div",{className:"p-4",children:[me.jsxs("div",{className:"flex items-center justify-between mb-3",children:[me.jsx("h5",{className:"text-xl font-semibold text-gray-800",children:"Operation history"}),me.jsxs("div",{className:"flex gap-2",children:[me.jsx("button",{onClick:()=>R(),className:"px-2 py-0.5 text-base border-1 border-blue-500 text-blue-500 bg-transparent rounded hover:bg-blue-50 transition-colors",children:"Clear History"}),me.jsx("button",{onClick:y,className:"px-2 py-0.5 text-base border-1 border-red-500 text-red-500 bg-transparent rounded hover:bg-red-50 transition-colors",children:"Close"})]})]}),me.jsx("div",{className:"max-h-80 overflow-y-auto",children:J()})]})})})]})})};function cQt(){var Xe,Qe;const t=s0(oBe),e=fte(),[n,i]=Br.useState(!1),a=x3(),s=s0(ute),o=s0(Wd),f=s0(vbe),y=s0(aCe),x=s0(FS),{undo:R,redo:J,canUndo:te,canRedo:se,jumpToPast:Ue,jumpToFuture:De}=Eqt(),Ee=n4(),ae=Ee!=null&&Ee.name?((Xe=Cte[Ee.name])==null?void 0:Xe.croppedUrl)??((Qe=Cte[Ee.name])==null?void 0:Qe.logoUrl):null;return me.jsxs("div",{className:"flex flex-row justify-between items-center p-1 border-b border-gray-300 bg-white dark:bg-dark-background relative",children:[me.jsxs("div",{className:"flex flex-row items-center gap-3 relative",children:[o&&me.jsx(Jqt,{className:"size-5 text-gray-600 dark:text-dark-primary cursor-pointer",onClick:()=>{a(Ik(!1)),a(u9(null))}}),me.jsx("img",{src:ae?"/"+ae:zte,alt:"logo",className:Pk("z-10","size-12",o?"cursor-pointer":"cursor-default",y?"bg-secondary dark:bg-dark-secondary":"",ae?"rounded-full p-1":"rounded-md p-2",ae&&!y?"outline outline-gray-200":""),onClick:()=>{o&&a(Ik(!y))}}),!e&&(o?me.jsxs("div",{className:"flex flex-row items-center gap-2 z-10",children:[o.title.length>0&&(Ee==null?void 0:Ee.name)&&me.jsxs(me.Fragment,{children:[me.jsx("p",{className:"text-xl font-medium",children:Ee==null?void 0:Ee.name}),me.jsx("p",{className:"text-xl font-light",children:"/"})]}),me.jsx(aQt,{value:o.title.length>0?o.title:(Ee==null?void 0:Ee.name)??"Untitled Session",onChange:async tr=>{if(t.currentId&&t.sessionsInBundle){const ir={...t.sessionsInBundle[`${t.currentId}`],label:tr},pr={...t,sessionsInBundle:{...t.sessionsInBundle,[t.currentId]:ir}};a(Wj(pr));const He=gM();try{await Oj(pM(He,`sessions/${t.bundleId}`),JSON.parse(JSON.stringify(pr))),console.log("Session saved!","success",2e3)}catch(ar){console.error(ar),console.log("Error while saving session","error",2e3)}}a(mf({title:tr}))},style:`text-xl font-light border border-blue-500 px-2 ${o.title.length>0?"":"font-medium"}`,tooltip:o.title.length>0?"Click to edit":"Click to add title"})]}):me.jsxs("h1",{className:"text-xl font-light",children:[me.jsx("span",{className:"font-medium",children:"WashU "})," Epigenome Browser"]})),!e&&me.jsx("span",{className:"text-xs text-red-500",children:sQt})]}),me.jsx("div",{className:"flex items-center gap-2",children:e?me.jsx(NM,{onClick:()=>i(!n),title:"Menu",children:n?me.jsx(Bjt,{className:"h-6 w-6"}):me.jsx($qt,{className:"h-6 w-6"})}):me.jsx(vg,{children:o!==null?me.jsxs(Ol.div,{className:"flex flex-row items-center gap-4",style:{pointerEvents:y?"none":"auto"},initial:{opacity:0,y:20},animate:{opacity:y?0:1,y:0},exit:{opacity:0,y:20},transition:{duration:.2},children:[me.jsx(NM,{onClick:R,disabled:!te,title:"Undo",className:te?"":"opacity-50 cursor-not-allowed",children:me.jsx(cCe,{className:"h-5 w-5"})}),me.jsx(NM,{onClick:J,disabled:!se,title:"Redo",className:se?"":"opacity-50 cursor-not-allowed",children:me.jsx(hCe,{className:"h-5 w-5"})}),me.jsx(oQt,{state:{past:f?f.past:[],future:f?f.future:[]},jumpToPast:Ue,jumpToFuture:De}),me.jsx("div",{className:"h-5 border-r border-gray-400"}),me.jsx(H3,{onClick:()=>a(G_(s==="tracks"?null:"tracks")),active:s==="tracks",children:"Tracks"}),me.jsx(H3,{onClick:()=>a(G_(s==="apps"?null:"apps")),active:s==="apps",children:"Apps"}),me.jsx(H3,{onClick:()=>a(G_(s==="share"?null:"share")),active:s==="share",children:"Share"}),me.jsx(H3,{onClick:()=>a(G_(s==="settings"?null:"settings")),active:s==="settings",children:"Settings"}),me.jsx(H3,{onClick:()=>a(G_(s==="help"?null:"help")),active:s==="help",children:"Help"})]}):me.jsxs(Ol.div,{className:"flex flex-row items-center gap-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.2},children:[me.jsx(Lk,{checked:x,onChange:tr=>a(Ate(tr)),checkedIcon:me.jsx(uCe,{className:"w-4 h-4 text-gray-400"}),uncheckedIcon:me.jsx(fCe,{className:"w-4 h-4 text-white"})}),me.jsx(H3,{style:{backgroundColor:"rgb(232 222 248 / var(--tw-bg-opacity, 1))",padding:"4px 8px",color:"black"},onClick:()=>window.open("https://epigenomegateway.wustl.edu/browser2022/","_blank"),active:s==="tracks",children:"Previous Version"})]})})}),me.jsx(vg,{children:e&&n&&me.jsx(Ol.div,{className:"absolute top-full left-0 right-0 bg-white dark:bg-dark-background border-b border-gray-300 shadow-lg z-50",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:me.jsx("div",{className:"flex flex-col p-4 gap-2",children:o!==null?me.jsxs(me.Fragment,{children:[me.jsxs("div",{className:"flex gap-2 mb-2",children:[me.jsx(NM,{onClick:R,disabled:!te,title:"Undo",className:te?"":"opacity-50 cursor-not-allowed",children:me.jsx(cCe,{className:"h-5 w-5"})}),me.jsx(NM,{onClick:J,disabled:!se,title:"Redo",className:se?"":"opacity-50 cursor-not-allowed",children:me.jsx(hCe,{className:"h-5 w-5"})})]}),me.jsx(H3,{onClick:()=>{a(G_(s==="tracks"?null:"tracks")),i(!1)},active:s==="tracks",style:{width:"100%",justifyContent:"flex-start"},children:"Tracks"}),me.jsx(H3,{onClick:()=>{a(G_(s==="apps"?null:"apps")),i(!1)},active:s==="apps",style:{width:"100%",justifyContent:"flex-start"},children:"Apps"}),me.jsx(H3,{onClick:()=>{a(G_(s==="share"?null:"share")),i(!1)},active:s==="share",style:{width:"100%",justifyContent:"flex-start"},children:"Share"}),me.jsx(H3,{onClick:()=>{a(G_(s==="settings"?null:"settings")),i(!1)},active:s==="settings",style:{width:"100%",justifyContent:"flex-start"},children:"Settings"}),me.jsx(H3,{onClick:()=>{a(G_(s==="help"?null:"help")),i(!1)},active:s==="help",style:{width:"100%",justifyContent:"flex-start"},children:"Help"})]}):me.jsxs(me.Fragment,{children:[me.jsxs("div",{className:"flex items-center justify-between mb-2",children:[me.jsx("span",{className:"text-sm",children:"Dark Mode"}),me.jsx(Lk,{checked:x,onChange:tr=>a(Ate(tr)),checkedIcon:me.jsx(uCe,{className:"w-4 h-4 text-gray-400"}),uncheckedIcon:me.jsx(fCe,{className:"w-4 h-4 text-white"})})]}),me.jsx(H3,{style:{backgroundColor:"rgb(232 222 248 / var(--tw-bg-opacity, 1))",padding:"8px 16px",color:"black",width:"100%",justifyContent:"flex-start"},onClick:()=>{window.open("https://epigenomegateway.wustl.edu/browser2022/","_blank"),i(!1)},children:"Previous Version"})]})})})})]})}function V_({title:t,description:e,path:n,onClick:i,params:a}){const{push:s}=QU(),o=()=>{n?s({path:n,params:a}):i&&i()};return me.jsxs("div",{className:"text-primary flex flex-row gap-4 bg-secondary dark:bg-dark-secondary p-4 rounded-xl justify-between items-center cursor-pointer",onClick:o,children:[me.jsxs("div",{className:"flex flex-col gap-2",children:[me.jsx("h1",{className:"text-xl text-primary dark:text-dark-primary",children:t}),e&&me.jsx("p",{className:"text-sm text-primary dark:text-dark-primary",children:e})]}),me.jsx("div",{children:me.jsx(mte,{className:"size-6 text-primary dark:text-dark-primary"})})]})}function hQt({data:t,onSelect:e,selectedIds:n}){const[i,a]=Br.useState(""),s=aj(),o=Br.useMemo(()=>i?t.filter(J=>[J.title,J.id,J.section,...Object.values(J.data||{})].some(se=>String(se).toLowerCase().includes(i.toLowerCase()))):t,[t,i]),f=Br.useMemo(()=>{if(!o.some(se=>se.section!==void 0))return[{name:"",items:o}];const te={};return o.forEach(se=>{const Ue=se.section||"Other";te[Ue]||(te[Ue]=[]),te[Ue].push(se)}),Object.entries(te).map(([se,Ue])=>({name:se,items:Ue})).filter(se=>se.items.length>0)},[o]),y=()=>me.jsx("div",{ref:s.ref,className:"sticky top-0 z-20 pb-2 flex items-center bg-white dark:bg-dark-background",children:me.jsx("input",{type:"text",placeholder:"Search...",value:i,onChange:J=>a(J.target.value),className:"w-full px-4 py-1 border border-gray-300 rounded-full"})}),x=J=>me.jsxs("div",{className:"flex items-center justify-between py-1 max-w-full min-w-0 gap-2",children:[me.jsx("span",{className:"text-sm truncate min-w-0 flex-1",title:J.title,children:J.title}),n!==void 0&&me.jsx(me.Fragment,{children:n.has(J.id)?me.jsx("div",{className:"w-6 h-6 rounded-md bg-green-200 dark:bg-green-900 flex items-center justify-center flex-shrink-0",children:me.jsx(pte,{className:"w-4 h-4 text-primary dark:text-dark-primary"})}):me.jsx("button",{className:"w-6 h-6 rounded-md bg-secondary dark:bg-dark-secondary flex items-center justify-center hover:bg-purple-200 flex-shrink-0",onClick:te=>{te.stopPropagation(),e(J)},children:me.jsx(pCe,{className:"w-4 h-4 text-primary dark:text-dark-primary"})})})]},J.id),R=J=>me.jsxs("div",{className:"mb-4 relative",children:[J.name&&me.jsx("h2",{className:"text-base font-medium mb-1 sticky z-10 pb-1 bg-white dark:bg-dark-background",style:{top:`${s.height}px`},children:J.name}),me.jsx("div",{className:J.name?"pl-3 border-l border-gray-200":"",children:J.items.map(te=>x(te))})]},J.name);return me.jsxs("div",{className:"max-w-full",children:[y(),f.map(J=>R(J))]})}function lQt(){const t=x3(),e=s0(Wd),n=n4(),i=Br.useMemo(()=>new Set(e==null?void 0:e.tracks.map(o=>o.name)),[e==null?void 0:e.tracks]),a=Br.useMemo(()=>{const o=(n==null?void 0:n.annotationTracks)||{};return Object.entries(o).flatMap(([f,y])=>{let x=[];return Array.isArray(y)&&y.length>0&&Array.isArray(y[0])?x=y.flat():!Array.isArray(y)&&typeof y=="object"&&y!==null?x=Object.values(y).flat():x=Array.isArray(y)?y:[y],x.map(R=>({section:f,genomeName:n&&n.name?n.name:"none",id:R.name||R.url,title:R.label??R.name,data:R}))})},[n]),s=o=>{const f={...o.data};f.metadata={...f.metadata,genome:n&&n.name?n.name:"none"},t(mf({tracks:[...e.tracks,f]}))};return me.jsx(hQt,{data:a,selectedIds:i,onSelect:s})}var cie={exports:{}},hD={},hie={exports:{}},tG={exports:{}},Nf={};/** @license React v16.13.1
|
|
2216
2216
|
* react-is.production.min.js
|
|
2217
2217
|
*
|
|
2218
2218
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -6220,7 +6220,7 @@ ${f}`:"";return me.jsxs("div",{children:[me.jsxs("p",{children:["Fetch sequence
|
|
|
6220
6220
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
6221
6221
|
* See the License for the specific language governing permissions and
|
|
6222
6222
|
* limitations under the License.
|
|
6223
|
-
*/IS(Xtn,Ztn,"app");const D9=15;$Ce({apiKey:void 0,authDomain:void 0,databaseURL:void 0,storageBucket:void 0});function Ktn(t){qtn();const e=x3(),n=s0(rCe),i=s0(ute),a=s0(Tqt),s=s0(aCe),o=s0(FS),f=!n||i===null,y=fte(),x=!y&&!f,R=y&&!f,J=t.showGenomeNavigator!==void 0||t.showNavBar!==void 0||t.showToolBar!==void 0,te=J?s0(Wjt):!0,se=()=>{e(u9(null))};function Ue(){if(t.customGenome)try{return c2.deserialize(t.customGenome)}catch{return null}return t.genomeName?x5(t.genomeName):null}return Br.useEffect(()=>{J?(typeof t.showGenomeNavigator=="boolean"&&e(_te(t.showGenomeNavigator)),typeof t.showNavBar=="boolean"&&e(gCe(t.showNavBar)),typeof t.showToolBar=="boolean"&&e(_Ce(t.showToolBar))):(e(_te(!0)),e(gCe(!0)),e(_Ce(!0)))},[J,t.showGenomeNavigator,t.showNavBar,t.showToolBar]),Br.useEffect(()=>{if(t.genomeName&&t.tracks&&t.viewRegion||t.customGenome){const De=Ue();if(De){if(n)e(mf({tracks:t.tracks,viewRegion:typeof t.viewRegion!="string"||t.viewRegion===null?void 0:t.viewRegion,userViewRegion:typeof t.viewRegion!="string"||t.viewRegion===null?void 0:t.viewRegion,genomeId:t.genomeName,customGenome:t.customGenome}));else if(De!=null&&De.genome){const Ee=c2.serialize(De);let ae=t.tracks;e(nj({genome:Ee,viewRegion:typeof t.viewRegion=="string"||t.viewRegion===null?void 0:t.viewRegion,additionalTracks:ae}))}}}},[t.genomeName,t.tracks,t.viewRegion,t.customGenome,n]),Br.useEffect(()=>{const De=Ee=>{Ee.key==="Escape"&&(R||a||x)&&e(G_(null))};return window.addEventListener("keydown",De),()=>window.removeEventListener("keydown",De)},[R,a,x,e]),me.jsxs("div",{className:`h-screen flex flex-col ${o?"dark":""}`,"data-theme":o?"dark":"light",children:[me.jsx(Wtn,{}),me.jsxs(Ol.div,{className:"flex flex-col h-full text-primary dark:text-white",animate:{scale:R?.95:1,filter:R?"blur(5px) brightness(0.7)":"blur(0px) brightness(1)",borderRadius:R?15:0},children:[te===!1?"":me.jsx(cQt,{}),me.jsxs("div",{className:"flex flex-row flex-1 relative bg-black",children:[me.jsx(vg,{mode:"wait",children:s&&me.jsx(Ol.div,{className:"h-full overflow-hidden absolute top-0 left-0 z-10",style:{width:"25vw",borderTopRightRadius:D9,borderBottomRightRadius:D9},initial:{translateX:"-100%"},animate:{translateX:0},exit:{translateX:"-100%"},children:me.jsx("div",{className:"flex flex-col",children:me.jsx(Htn,{})})},"navigation-tabs")}),me.jsxs(Ol.div,{className:"flex flex-row flex-1 overflow-hidden bg-black",animate:{borderRadius:s?15:0,filter:s?"blur(5px) brightness(0.7)":"blur(0px) brightness(1)"},onClick:s?()=>e(Ik(!1)):void 0,children:[me.jsxs(Ol.div,{className:"h-full overflow-hidden bg-white dark:bg-dark-background",initial:{width:"100vw"},animate:{borderTopRightRadius:x?D9:0,borderBottomRightRadius:x?D9:0,borderTopLeftRadius:a?D9:0,borderBottomLeftRadius:a?D9:0,filter:a?"brightness(0.85)":"brightness(1)"},style:{pointerEvents:s?"none":"auto"},children:[me.jsx(Ol.div,{className:"flex flex-col w-screen pb-20",style:{display:n?"flex":"none"},animate:{opacity:n?1:0},transition:{duration:.2},children:me.jsx(Gtn,{onGoHome:se,children:me.jsx(iQt,{})})}),n?"":me.jsx(Ol.div,{className:"h-full w-full",animate:{opacity:1},transition:{duration:.2},children:me.jsx(dJt,{})})]}),me.jsx(vg,{children:x&&me.jsx(Ol.div,{className:"h-full overflow-hidden z-10",initial:{width:0,marginLeft:0,borderTopLeftRadius:0,borderBottomLeftRadius:0},animate:{width:a?"75vw":"35vw",marginLeft:5,borderTopLeftRadius:D9,borderBottomLeftRadius:D9},exit:{width:0,marginLeft:0,borderTopLeftRadius:0,borderBottomLeftRadius:0},children:me.jsxs("div",{className:"flex flex-col h-full",children:[me.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-gray-50 dark:bg-gray-800 border-b border-gray-200 dark:border-gray-600",children:[me.jsx("h2",{className:"text-xl text-gray-800 dark:text-white capitalize",children:i}),me.jsxs("div",{className:"flex items-center gap-3",children:[me.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Press Esc to close"}),me.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:"||"}),me.jsx("button",{onClick:()=>e(G_(null)),className:"p-1 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",title:"Close tab",children:me.jsx("svg",{className:"w-5 h-5 text-gray-600 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:me.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M6 18L18 6M6 6l12 12"})})})]})]}),me.jsx("div",{className:"flex-1 relative overflow-hidden",children:me.jsxs("div",{className:"h-full",children:[i==="tracks"&&me.jsx(_we,{}),i==="apps"&&me.jsx(Dwe,{}),i==="help"&&me.jsx(Bwe,{}),i==="share"&&me.jsx(Rwe,{}),i==="settings"&&me.jsx(Owe,{})]})})]})},"navigation-tabs")})]})]})]}),R&&me.jsxs(Ol.div,{className:"absolute top-12 left-0 w-screen h-screen bg-white",style:{borderRadius:D9},initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},children:[me.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-gray-50 dark:bg-gray-800 border-b border-gray-200 dark:border-gray-600",children:[me.jsx("h2",{className:"text-lg text-gray-800 dark:text-white capitalize",children:i}),me.jsxs("div",{className:"flex items-center gap-3",children:[me.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Press Esc to close"}),me.jsx("button",{onClick:()=>e(G_(null)),className:"p-1 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",title:"Close tab",children:me.jsx("svg",{className:"w-5 h-5 text-gray-600 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:me.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})]}),me.jsxs("div",{className:"flex flex-col h-full",children:[i==="tracks"&&me.jsx(_we,{}),i==="apps"&&me.jsx(Dwe,{}),i==="help"&&me.jsx(Bwe,{}),i==="share"&&me.jsx(Rwe,{}),i==="settings"&&me.jsx(Owe,{})]})]}),me.jsx(Vtn,{})]})}var Kie="persist:",Jie="persist/FLUSH",UG="persist/REHYDRATE",Yie="persist/PAUSE",$ie="persist/PERSIST",Qie="persist/PURGE",eae="persist/REGISTER",Wwe=-1,qwe={};function HM(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?HM=function(n){return typeof n}:HM=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},HM(t)}function jwe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function Jtn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jwe(n,!0).forEach(function(i){Ytn(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jwe(n).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Ytn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $tn(t,e,n,i){var a=i.debug,s=Jtn({},n);return t&&HM(t)==="object"&&Object.keys(t).forEach(function(o){if(o!=="_persist"){if(e[o]!==n[o]){qwe.NODE_ENV!=="production"&&a&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",o);return}s[o]=t[o]}}),qwe.NODE_ENV!=="production"&&a&&t&&HM(t)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(t).join(", "),"'")),s}var Qtn={};function enn(t){var e=t.blacklist||null,n=t.whitelist||null,i=t.transforms||[],a=t.throttle||0,s="".concat(t.keyPrefix!==void 0?t.keyPrefix:Kie).concat(t.key),o=t.storage,f;t.serialize===!1?f=function(ir){return ir}:typeof t.serialize=="function"?f=t.serialize:f=rnn;var y=t.writeFailHandler||null,x={},R={},J=[],te=null,se=null,Ue=function(ir){Object.keys(ir).forEach(function(pr){ae(pr)&&x[pr]!==ir[pr]&&J.indexOf(pr)===-1&&J.push(pr)}),Object.keys(x).forEach(function(pr){ir[pr]===void 0&&ae(pr)&&J.indexOf(pr)===-1&&x[pr]!==void 0&&J.push(pr)}),te===null&&(te=setInterval(De,a)),x=ir};function De(){if(J.length===0){te&&clearInterval(te),te=null;return}var tr=J.shift(),ir=i.reduce(function(pr,He){return He.in(pr,tr,x)},x[tr]);if(ir!==void 0)try{R[tr]=f(ir)}catch(pr){console.error("redux-persist/createPersistoid: error serializing state",pr)}else delete R[tr];J.length===0&&Ee()}function Ee(){Object.keys(R).forEach(function(tr){x[tr]===void 0&&delete R[tr]}),se=o.setItem(s,f(R)).catch(Xe)}function ae(tr){return!(n&&n.indexOf(tr)===-1&&tr!=="_persist"||e&&e.indexOf(tr)!==-1)}function Xe(tr){y&&y(tr),tr&&Qtn.NODE_ENV!=="production"&&console.error("Error storing data",tr)}var Qe=function(){for(;J.length!==0;)De();return se||Promise.resolve()};return{update:Ue,flush:Qe}}function rnn(t){return JSON.stringify(t)}var tnn={};function nnn(t){var e=t.transforms||[],n="".concat(t.keyPrefix!==void 0?t.keyPrefix:Kie).concat(t.key),i=t.storage,a=t.debug,s;return t.deserialize===!1?s=function(f){return f}:typeof t.deserialize=="function"?s=t.deserialize:s=inn,i.getItem(n).then(function(o){if(o)try{var f={},y=s(o);return Object.keys(y).forEach(function(x){f[x]=e.reduceRight(function(R,J){return J.out(R,x,y)},s(y[x]))}),f}catch(x){throw tnn.NODE_ENV!=="production"&&a&&console.log("redux-persist/getStoredState: Error restoring data ".concat(o),x),x}else return})}function inn(t){return JSON.parse(t)}var ann={};function snn(t){var e=t.storage,n="".concat(t.keyPrefix!==void 0?t.keyPrefix:Kie).concat(t.key);return e.removeItem(n,onn)}function onn(t){t&&ann.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",t)}var rae={};function Gwe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function B9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Gwe(n,!0).forEach(function(i){cnn(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gwe(n).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function cnn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hnn(t,e){if(t==null)return{};var n=lnn(t,e),i,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(a=0;a<s.length;a++)i=s[a],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function lnn(t,e){if(t==null)return{};var n={},i=Object.keys(t),a,s;for(s=0;s<i.length;s++)a=i[s],!(e.indexOf(a)>=0)&&(n[a]=t[a]);return n}var unn=5e3;function fnn(t,e){if(rae.NODE_ENV!=="production"){if(!t)throw new Error("config is required for persistReducer");if(!t.key)throw new Error("key is required in persistor config");if(!t.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var n=t.version!==void 0?t.version:Wwe;t.debug;var i=t.stateReconciler===void 0?$tn:t.stateReconciler,a=t.getStoredState||nnn,s=t.timeout!==void 0?t.timeout:unn,o=null,f=!1,y=!0,x=function(J){return J._persist.rehydrated&&o&&!y&&o.update(J),J};return function(R,J){var te=R||{},se=te._persist,Ue=hnn(te,["_persist"]),De=Ue;if(J.type===$ie){var Ee=!1,ae=function(ar,cr){rae.NODE_ENV!=="production"&&Ee&&console.error('redux-persist: rehydrate for "'.concat(t.key,'" called after timeout.'),ar,cr),Ee||(J.rehydrate(t.key,ar,cr),Ee=!0)};if(s&&setTimeout(function(){!Ee&&ae(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(t.key,'"')))},s),y=!1,o||(o=enn(t)),se)return B9({},e(De,J),{_persist:se});if(typeof J.rehydrate!="function"||typeof J.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return J.register(t.key),a(t).then(function(He){var ar=t.migrate||function(cr,Nr){return Promise.resolve(cr)};ar(He,n).then(function(cr){ae(cr)},function(cr){rae.NODE_ENV!=="production"&&cr&&console.error("redux-persist: migration error",cr),ae(void 0,cr)})},function(He){ae(void 0,He)}),B9({},e(De,J),{_persist:{version:n,rehydrated:!1}})}else{if(J.type===Qie)return f=!0,J.result(snn(t)),B9({},e(De,J),{_persist:se});if(J.type===Jie)return J.result(o&&o.flush()),B9({},e(De,J),{_persist:se});if(J.type===Yie)y=!0;else if(J.type===UG){if(f)return B9({},De,{_persist:B9({},se,{rehydrated:!0})});if(J.key===t.key){var Xe=e(De,J),Qe=J.payload,tr=i!==!1&&Qe!==void 0?i(Qe,R,Xe,t):Xe,ir=B9({},tr,{_persist:B9({},se,{rehydrated:!0})});return x(ir)}}}if(!se)return e(R,J);var pr=e(De,J);return pr===De?R:x(B9({},pr,{_persist:se}))}}var dnn={};function Vwe(t){return pnn(t)||mnn(t)||vnn()}function vnn(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function mnn(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)}function pnn(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function Xwe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function tae(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xwe(n,!0).forEach(function(i){gnn(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xwe(n).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function gnn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zwe={registry:[],bootstrapped:!1},_nn=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zwe,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case eae:return tae({},e,{registry:[].concat(Vwe(e.registry),[n.key])});case UG:var i=e.registry.indexOf(n.key),a=Vwe(e.registry);return a.splice(i,1),tae({},e,{registry:a,bootstrapped:a.length===0});default:return e}};function Ann(t,e,n){if(dnn.NODE_ENV!=="production"){var i={},a=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];a.forEach(function(x){i[x]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(x,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var s=Wre(_nn,Zwe,void 0),o=function(R){s.dispatch({type:eae,key:R})},f=function(R,J,te){var se={type:UG,payload:J,err:te,key:R};t.dispatch(se),s.dispatch(se)},y=tae({},s,{purge:function(){var R=[];return t.dispatch({type:Qie,result:function(te){R.push(te)}}),Promise.all(R)},flush:function(){var R=[];return t.dispatch({type:Jie,result:function(te){R.push(te)}}),Promise.all(R)},pause:function(){t.dispatch({type:Yie})},persist:function(){t.dispatch({type:$ie,register:o,rehydrate:f})}});return y.persist(),y}var WM={};function ynn(t,e){var n=e||{},i=n.debug;return function(a,s){if(!a)return WM.NODE_ENV!=="production"&&i&&console.log("redux-persist: no inbound state, skipping migration"),Promise.resolve(void 0);var o=a._persist&&a._persist.version!==void 0?a._persist.version:Wwe;if(o===s)return WM.NODE_ENV!=="production"&&i&&console.log("redux-persist: versions match, noop migration"),Promise.resolve(a);if(o>s)return WM.NODE_ENV!=="production"&&console.error("redux-persist: downgrading version is not supported"),Promise.resolve(a);var f=Object.keys(t).map(function(x){return parseInt(x)}).filter(function(x){return s>=x&&x>o}).sort(function(x,R){return x-R});WM.NODE_ENV!=="production"&&i&&console.log("redux-persist: migrationKeys",f);try{var y=f.reduce(function(x,R){return WM.NODE_ENV!=="production"&&i&&console.log("redux-persist: running migration for versionKey",R),t[R](x)},a);return Promise.resolve(y)}catch(x){return Promise.reject(x)}}}var nae={},iae={},Kwe={};iae.__esModule=!0,iae.default=Unn;function DG(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?DG=function(n){return typeof n}:DG=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},DG(t)}function aae(){}var znn={getItem:aae,setItem:aae,removeItem:aae};function Cnn(t){if((typeof self>"u"?"undefined":DG(self))!=="object"||!(t in self))return!1;try{var e=self[t],n="redux-persist ".concat(t," test");e.setItem(n,"test"),e.getItem(n),e.removeItem(n)}catch{return Kwe.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(t," test failed, persistence will be disabled.")),!1}return!0}function Unn(t){var e="".concat(t,"Storage");return Cnn(e)?self[e]:(Kwe.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),znn)}nae.__esModule=!0,nae.default=bnn;var Dnn=Bnn(iae);function Bnn(t){return t&&t.__esModule?t:{default:t}}function bnn(t){var e=(0,Dnn.default)(t);return{getItem:function(i){return new Promise(function(a,s){a(e.getItem(i))})},setItem:function(i,a){return new Promise(function(s,o){s(e.setItem(i,a))})},removeItem:function(i){return new Promise(function(a,s){a(e.removeItem(i))})}}}var Jwe=void 0,wnn=Snn(nae);function Snn(t){return t&&t.__esModule?t:{default:t}}var xnn=(0,wnn.default)("local");Jwe=xnn;const Ywe=S8({name:"search",initialState:{suggestions:[],searchQuery:"",slashCommand:null,searchHistory:[]},reducers:{setSuggestions:(t,e)=>{t.suggestions=e.payload},setSearchQuery:(t,e)=>{t.searchQuery=e.payload},clearSuggestions:t=>{t.suggestions=[]},setSlashCommand:(t,e)=>{t.slashCommand=e.payload},addToSearchHistory:(t,e)=>{t.searchHistory=[e.payload,...t.searchHistory.filter(n=>n.id!==e.payload.id)].slice(0,10)},clearSearchHistory:t=>{t.searchHistory=[]}}}),{setSuggestions:I3n,setSearchQuery:P3n,clearSuggestions:L3n,setSlashCommand:R3n,addToSearchHistory:O3n,clearSearchHistory:H3n}=Ywe.actions,Enn=Ywe.reducer;var $we={};const Tnn={key:"root",storage:Jwe,blacklist:["navigation","hub","genomeHub","utility","undoRedo"],version:1,migrate:ynn({1:t=>{var e;return!t||!t.browser||(e=t.browser)!=null&&e.present?t:{...t,browser:{past:[],present:t.browser,future:[]}}}},{debug:$we.NODE_ENV==="development"})},Fnn={limit:20,filter:hqt([u9.type]),debug:$we.NODE_ENV==="development"},Nnn=_ze({navigation:Fqt,browser:pqt(xqt,Fnn),utility:_Jt,hub:hJt,genomeHub:$jt,settings:Gjt,search:Enn,undoRedo:Uqt}),knn=fnn(Tnn,Nnn),Qwe=kWt({reducer:knn,middleware:t=>t({serializableCheck:{ignoredActions:[Jie,UG,Yie,$ie,Qie,eae]}})}),Mnn=Ann(Qwe);var Inn={};function BG(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?BG=function(n){return typeof n}:BG=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},BG(t)}function Pnn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lnn(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Rnn(t,e,n){return e&&Lnn(t.prototype,e),t}function Onn(t,e){return e&&(BG(e)==="object"||typeof e=="function")?e:bG(t)}function sae(t){return sae=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},sae(t)}function bG(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hnn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&oae(t,e)}function oae(t,e){return oae=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},oae(t,e)}function wG(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var eSe=function(t){Hnn(e,t);function e(){var n,i;Pnn(this,e);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return i=Onn(this,(n=sae(e)).call.apply(n,[this].concat(s))),wG(bG(i),"state",{bootstrapped:!1}),wG(bG(i),"_unsubscribe",void 0),wG(bG(i),"handlePersistorState",function(){var f=i.props.persistor,y=f.getState(),x=y.bootstrapped;x&&(i.props.onBeforeLift?Promise.resolve(i.props.onBeforeLift()).finally(function(){return i.setState({bootstrapped:!0})}):i.setState({bootstrapped:!0}),i._unsubscribe&&i._unsubscribe())}),i}return Rnn(e,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return Inn.NODE_ENV!=="production"&&typeof this.props.children=="function"&&this.props.loading&&console.error("redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored."),typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),e}(Br.PureComponent);wG(eSe,"defaultProps",{children:null,loading:null});function Wnn({children:t}){return me.jsx(THt,{store:Qwe,children:me.jsx(eSe,{loading:null,persistor:Mnn,children:t})})}function qnn(){return me.jsx(OLt,{transition:jnn,children:me.jsx(Wnn,{children:me.jsx(Ktn,{})})})}const jnn={type:"spring",damping:35,stiffness:400,mass:.8},Gnn={normal:0,add:1,multiply:2,screen:3,overlay:4,erase:5,"normal-npm":6,"add-npm":7,"screen-npm":8,min:9,max:10},cae=0,hae=1,lae=2,uae=3,fae=4,dae=5,vae=class $Fe{constructor(){this.data=0,this.blendMode="normal",this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<cae)}set blend(e){!!(this.data&1<<cae)!==e&&(this.data^=1<<cae)}get offsets(){return!!(this.data&1<<hae)}set offsets(e){!!(this.data&1<<hae)!==e&&(this.data^=1<<hae)}set cullMode(e){if(e==="none"){this.culling=!1;return}this.culling=!0,this.clockwiseFrontFace=e==="front"}get cullMode(){return this.culling?this.clockwiseFrontFace?"front":"back":"none"}get culling(){return!!(this.data&1<<lae)}set culling(e){!!(this.data&1<<lae)!==e&&(this.data^=1<<lae)}get depthTest(){return!!(this.data&1<<uae)}set depthTest(e){!!(this.data&1<<uae)!==e&&(this.data^=1<<uae)}get depthMask(){return!!(this.data&1<<dae)}set depthMask(e){!!(this.data&1<<dae)!==e&&(this.data^=1<<dae)}get clockwiseFrontFace(){return!!(this.data&1<<fae)}set clockwiseFrontFace(e){!!(this.data&1<<fae)!==e&&(this.data^=1<<fae)}get blendMode(){return this._blendMode}set blendMode(e){this.blend=e!=="none",this._blendMode=e,this._blendModeId=Gnn[e]||0}get polygonOffset(){return this._polygonOffset}set polygonOffset(e){this.offsets=!!e,this._polygonOffset=e}toString(){return`[pixi.js/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`}static for2d(){const e=new $Fe;return e.depthTest=!1,e.blend=!0,e}};vae.default2d=vae.for2d();let _6=vae;const rSe=class zoe extends H5{constructor(e){e={...zoe.defaultOptions,...e},super(e),this.enabled=!0,this._state=_6.for2d(),this.blendMode=e.blendMode,this.padding=e.padding,typeof e.antialias=="boolean"?this.antialias=e.antialias?"on":"off":this.antialias=e.antialias,this.resolution=e.resolution,this.blendRequired=e.blendRequired,this.clipToViewport=e.clipToViewport,this.addResource("uTexture",0,1)}apply(e,n,i,a){e.applyFilter(this,n,i,a)}get blendMode(){return this._state.blendMode}set blendMode(e){this._state.blendMode=e}static from(e){const{gpu:n,gl:i,...a}=e;let s,o;return n&&(s=Q7.from(n)),i&&(o=cU.from(i)),new zoe({gpuProgram:s,glProgram:o,...a})}};rSe.defaultOptions={blendMode:"normal",resolution:1,padding:0,antialias:"off",blendRequired:!1,clipToViewport:!0};let tSe=rSe;const qM={name:"local-uniform-bit",vertex:{header:`
|
|
6223
|
+
*/IS(Xtn,Ztn,"app");const D9=15;$Ce({apiKey:void 0,authDomain:void 0,databaseURL:void 0,storageBucket:void 0});function Ktn(t){qtn();const e=x3(),n=s0(rCe),i=s0(ute),a=s0(Tqt),s=s0(aCe),o=s0(FS),f=!n||i===null,y=fte(),x=!y&&!f,R=y&&!f,J=t.showGenomeNavigator!==void 0||t.showNavBar!==void 0||t.showToolBar!==void 0,te=J?s0(Wjt):!0,se=()=>{e(u9(null))};function Ue(){if(t.customGenome)try{return c2.deserialize(t.customGenome)}catch{return null}return t.genomeName?x5(t.genomeName):null}return Br.useEffect(()=>{J?(typeof t.showGenomeNavigator=="boolean"&&e(_te(t.showGenomeNavigator)),typeof t.showNavBar=="boolean"&&e(gCe(t.showNavBar)),typeof t.showToolBar=="boolean"&&e(_Ce(t.showToolBar))):(e(_te(!0)),e(gCe(!0)),e(_Ce(!0)))},[J,t.showGenomeNavigator,t.showNavBar,t.showToolBar]),Br.useEffect(()=>{if(t.genomeName&&t.tracks&&t.viewRegion||t.customGenome){const De=Ue();if(De){if(n)e(mf({tracks:t.tracks,viewRegion:typeof t.viewRegion!="string"||t.viewRegion===null?void 0:t.viewRegion,userViewRegion:typeof t.viewRegion!="string"||t.viewRegion===null?void 0:t.viewRegion,genomeId:t.genomeName,customGenome:t.customGenome}));else if(De!=null&&De.genome){const Ee=c2.serialize(De);let ae=t.tracks;e(nj({genome:Ee,viewRegion:typeof t.viewRegion=="string"||t.viewRegion===null?void 0:t.viewRegion,additionalTracks:ae}))}}}},[t.genomeName,t.tracks,t.viewRegion,t.customGenome,n]),Br.useEffect(()=>{const De=Ee=>{Ee.key==="Escape"&&(R||a||x)&&e(G_(null))};return window.addEventListener("keydown",De),()=>window.removeEventListener("keydown",De)},[R,a,x,e]),me.jsxs("div",{className:`h-screen flex flex-col ${o?"dark":""}`,"data-theme":o?"dark":"light",children:[me.jsx(Wtn,{}),me.jsxs(Ol.div,{className:"flex flex-col h-full text-primary dark:text-white",animate:{scale:R?.95:1,filter:R?"blur(5px) brightness(0.7)":"blur(0px) brightness(1)",borderRadius:R?15:0},children:[te===!1?"":me.jsx(cQt,{}),me.jsxs("div",{className:"flex flex-row flex-1 relative bg-black",children:[me.jsx(vg,{mode:"wait",children:s&&me.jsx(Ol.div,{className:"h-full overflow-hidden absolute top-0 left-0 z-10",style:{width:"25vw",borderTopRightRadius:D9,borderBottomRightRadius:D9},initial:{translateX:"-100%"},animate:{translateX:0},exit:{translateX:"-100%"},children:me.jsx("div",{className:"flex flex-col",children:me.jsx(Htn,{})})},"navigation-tabs")}),me.jsxs(Ol.div,{className:"flex flex-row flex-1 overflow-hidden bg-black",animate:{borderRadius:s?15:0,filter:s?"blur(5px) brightness(0.7)":"blur(0px) brightness(1)"},onClick:s?()=>e(Ik(!1)):void 0,children:[me.jsxs(Ol.div,{className:"h-full overflow-hidden bg-white dark:bg-dark-background",initial:{width:"100vw"},animate:{borderTopRightRadius:x?D9:0,borderBottomRightRadius:x?D9:0,borderTopLeftRadius:a?D9:0,borderBottomLeftRadius:a?D9:0,filter:a?"brightness(0.85)":"brightness(1)"},style:{pointerEvents:s?"none":"auto"},children:[me.jsx(Ol.div,{className:"flex flex-col w-screen pb-20",style:{display:n?"flex":"none"},animate:{opacity:n?1:0},transition:{duration:.2},children:me.jsx(Gtn,{onGoHome:se,children:me.jsx(iQt,{})})}),n?"":me.jsx(Ol.div,{className:"h-full w-full",animate:{opacity:1},transition:{duration:.2},children:me.jsx(dJt,{})})]}),me.jsx(vg,{children:x&&me.jsx(Ol.div,{className:"h-full overflow-hidden z-10",initial:{width:0,marginLeft:0,borderTopLeftRadius:0,borderBottomLeftRadius:0},animate:{width:a?"75vw":"35vw",marginLeft:5,borderTopLeftRadius:D9,borderBottomLeftRadius:D9},exit:{width:0,marginLeft:0,borderTopLeftRadius:0,borderBottomLeftRadius:0},children:me.jsxs("div",{className:"flex flex-col h-full",children:[me.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-gray-50 dark:bg-gray-800 border-b border-gray-200 dark:border-gray-600",children:[me.jsx("h2",{className:"text-xl text-gray-800 dark:text-white capitalize",children:i}),me.jsxs("div",{className:"flex items-center gap-3",children:[me.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Press Esc to close"}),me.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:"||"}),me.jsx("button",{onClick:()=>e(G_(null)),className:"p-1 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",title:"Close tab",children:me.jsx("svg",{className:"w-5 h-5 text-gray-600 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:me.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M6 18L18 6M6 6l12 12"})})})]})]}),me.jsx("div",{className:"flex-1 relative overflow-hidden",children:me.jsxs("div",{className:"h-full",children:[i==="tracks"&&me.jsx(_we,{}),i==="apps"&&me.jsx(Dwe,{}),i==="help"&&me.jsx(Bwe,{}),i==="share"&&me.jsx(Rwe,{}),i==="settings"&&me.jsx(Owe,{})]})})]})},"navigation-tabs")})]})]})]}),R&&me.jsxs(Ol.div,{className:"absolute top-12 left-0 w-screen h-screen bg-white",style:{borderRadius:D9},initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},children:[me.jsxs("div",{className:"flex items-center justify-between px-4 py-3 bg-gray-50 dark:bg-gray-800 border-b border-gray-200 dark:border-gray-600",children:[me.jsx("h2",{className:"text-lg text-gray-800 dark:text-white capitalize",children:i}),me.jsxs("div",{className:"flex items-center gap-3",children:[me.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:"Press Esc to close"}),me.jsx("button",{onClick:()=>e(G_(null)),className:"p-1 rounded-full hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",title:"Close tab",children:me.jsx("svg",{className:"w-5 h-5 text-gray-600 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:me.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})]}),me.jsxs("div",{className:"flex flex-col h-full",children:[i==="tracks"&&me.jsx(_we,{}),i==="apps"&&me.jsx(Dwe,{}),i==="help"&&me.jsx(Bwe,{}),i==="share"&&me.jsx(Rwe,{}),i==="settings"&&me.jsx(Owe,{})]})]}),me.jsx(Vtn,{})]})}var Kie="persist:",Jie="persist/FLUSH",UG="persist/REHYDRATE",Yie="persist/PAUSE",$ie="persist/PERSIST",Qie="persist/PURGE",eae="persist/REGISTER",Wwe=-1,qwe={};function HM(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?HM=function(n){return typeof n}:HM=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},HM(t)}function jwe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function Jtn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?jwe(n,!0).forEach(function(i){Ytn(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jwe(n).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Ytn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $tn(t,e,n,i){var a=i.debug,s=Jtn({},n);return t&&HM(t)==="object"&&Object.keys(t).forEach(function(o){if(o!=="_persist"){if(e[o]!==n[o]){qwe.NODE_ENV!=="production"&&a&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",o);return}s[o]=t[o]}}),qwe.NODE_ENV!=="production"&&a&&t&&HM(t)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(t).join(", "),"'")),s}var Qtn={};function enn(t){var e=t.blacklist||null,n=t.whitelist||null,i=t.transforms||[],a=t.throttle||0,s="".concat(t.keyPrefix!==void 0?t.keyPrefix:Kie).concat(t.key),o=t.storage,f;t.serialize===!1?f=function(ir){return ir}:typeof t.serialize=="function"?f=t.serialize:f=rnn;var y=t.writeFailHandler||null,x={},R={},J=[],te=null,se=null,Ue=function(ir){Object.keys(ir).forEach(function(pr){ae(pr)&&x[pr]!==ir[pr]&&J.indexOf(pr)===-1&&J.push(pr)}),Object.keys(x).forEach(function(pr){ir[pr]===void 0&&ae(pr)&&J.indexOf(pr)===-1&&x[pr]!==void 0&&J.push(pr)}),te===null&&(te=setInterval(De,a)),x=ir};function De(){if(J.length===0){te&&clearInterval(te),te=null;return}var tr=J.shift(),ir=i.reduce(function(pr,He){return He.in(pr,tr,x)},x[tr]);if(ir!==void 0)try{R[tr]=f(ir)}catch(pr){console.error("redux-persist/createPersistoid: error serializing state",pr)}else delete R[tr];J.length===0&&Ee()}function Ee(){Object.keys(R).forEach(function(tr){x[tr]===void 0&&delete R[tr]}),se=o.setItem(s,f(R)).catch(Xe)}function ae(tr){return!(n&&n.indexOf(tr)===-1&&tr!=="_persist"||e&&e.indexOf(tr)!==-1)}function Xe(tr){y&&y(tr),tr&&Qtn.NODE_ENV!=="production"&&console.error("Error storing data",tr)}var Qe=function(){for(;J.length!==0;)De();return se||Promise.resolve()};return{update:Ue,flush:Qe}}function rnn(t){return JSON.stringify(t)}var tnn={};function nnn(t){var e=t.transforms||[],n="".concat(t.keyPrefix!==void 0?t.keyPrefix:Kie).concat(t.key),i=t.storage,a=t.debug,s;return t.deserialize===!1?s=function(f){return f}:typeof t.deserialize=="function"?s=t.deserialize:s=inn,i.getItem(n).then(function(o){if(o)try{var f={},y=s(o);return Object.keys(y).forEach(function(x){f[x]=e.reduceRight(function(R,J){return J.out(R,x,y)},s(y[x]))}),f}catch(x){throw tnn.NODE_ENV!=="production"&&a&&console.log("redux-persist/getStoredState: Error restoring data ".concat(o),x),x}else return})}function inn(t){return JSON.parse(t)}var ann={};function snn(t){var e=t.storage,n="".concat(t.keyPrefix!==void 0?t.keyPrefix:Kie).concat(t.key);return e.removeItem(n,onn)}function onn(t){t&&ann.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",t)}var rae={};function Gwe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function B9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Gwe(n,!0).forEach(function(i){cnn(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gwe(n).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function cnn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hnn(t,e){if(t==null)return{};var n=lnn(t,e),i,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(a=0;a<s.length;a++)i=s[a],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function lnn(t,e){if(t==null)return{};var n={},i=Object.keys(t),a,s;for(s=0;s<i.length;s++)a=i[s],!(e.indexOf(a)>=0)&&(n[a]=t[a]);return n}var unn=5e3;function fnn(t,e){if(rae.NODE_ENV!=="production"){if(!t)throw new Error("config is required for persistReducer");if(!t.key)throw new Error("key is required in persistor config");if(!t.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var n=t.version!==void 0?t.version:Wwe;t.debug;var i=t.stateReconciler===void 0?$tn:t.stateReconciler,a=t.getStoredState||nnn,s=t.timeout!==void 0?t.timeout:unn,o=null,f=!1,y=!0,x=function(J){return J._persist.rehydrated&&o&&!y&&o.update(J),J};return function(R,J){var te=R||{},se=te._persist,Ue=hnn(te,["_persist"]),De=Ue;if(J.type===$ie){var Ee=!1,ae=function(ar,cr){rae.NODE_ENV!=="production"&&Ee&&console.error('redux-persist: rehydrate for "'.concat(t.key,'" called after timeout.'),ar,cr),Ee||(J.rehydrate(t.key,ar,cr),Ee=!0)};if(s&&setTimeout(function(){!Ee&&ae(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(t.key,'"')))},s),y=!1,o||(o=enn(t)),se)return B9({},e(De,J),{_persist:se});if(typeof J.rehydrate!="function"||typeof J.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return J.register(t.key),a(t).then(function(He){var ar=t.migrate||function(cr,Nr){return Promise.resolve(cr)};ar(He,n).then(function(cr){ae(cr)},function(cr){rae.NODE_ENV!=="production"&&cr&&console.error("redux-persist: migration error",cr),ae(void 0,cr)})},function(He){ae(void 0,He)}),B9({},e(De,J),{_persist:{version:n,rehydrated:!1}})}else{if(J.type===Qie)return f=!0,J.result(snn(t)),B9({},e(De,J),{_persist:se});if(J.type===Jie)return J.result(o&&o.flush()),B9({},e(De,J),{_persist:se});if(J.type===Yie)y=!0;else if(J.type===UG){if(f)return B9({},De,{_persist:B9({},se,{rehydrated:!0})});if(J.key===t.key){var Xe=e(De,J),Qe=J.payload,tr=i!==!1&&Qe!==void 0?i(Qe,R,Xe,t):Xe,ir=B9({},tr,{_persist:B9({},se,{rehydrated:!0})});return x(ir)}}}if(!se)return e(R,J);var pr=e(De,J);return pr===De?R:x(B9({},pr,{_persist:se}))}}var dnn={};function Vwe(t){return pnn(t)||mnn(t)||vnn()}function vnn(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function mnn(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)}function pnn(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function Xwe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function tae(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xwe(n,!0).forEach(function(i){gnn(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xwe(n).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function gnn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zwe={registry:[],bootstrapped:!1},_nn=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zwe,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case eae:return tae({},e,{registry:[].concat(Vwe(e.registry),[n.key])});case UG:var i=e.registry.indexOf(n.key),a=Vwe(e.registry);return a.splice(i,1),tae({},e,{registry:a,bootstrapped:a.length===0});default:return e}};function Ann(t,e,n){if(dnn.NODE_ENV!=="production"){var i={},a=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];a.forEach(function(x){i[x]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(x,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var s=Wre(_nn,Zwe,void 0),o=function(R){s.dispatch({type:eae,key:R})},f=function(R,J,te){var se={type:UG,payload:J,err:te,key:R};t.dispatch(se),s.dispatch(se)},y=tae({},s,{purge:function(){var R=[];return t.dispatch({type:Qie,result:function(te){R.push(te)}}),Promise.all(R)},flush:function(){var R=[];return t.dispatch({type:Jie,result:function(te){R.push(te)}}),Promise.all(R)},pause:function(){t.dispatch({type:Yie})},persist:function(){t.dispatch({type:$ie,register:o,rehydrate:f})}});return y.persist(),y}var WM={};function ynn(t,e){var n=e||{},i=n.debug;return function(a,s){if(!a)return WM.NODE_ENV!=="production"&&i&&console.log("redux-persist: no inbound state, skipping migration"),Promise.resolve(void 0);var o=a._persist&&a._persist.version!==void 0?a._persist.version:Wwe;if(o===s)return WM.NODE_ENV!=="production"&&i&&console.log("redux-persist: versions match, noop migration"),Promise.resolve(a);if(o>s)return WM.NODE_ENV!=="production"&&console.error("redux-persist: downgrading version is not supported"),Promise.resolve(a);var f=Object.keys(t).map(function(x){return parseInt(x)}).filter(function(x){return s>=x&&x>o}).sort(function(x,R){return x-R});WM.NODE_ENV!=="production"&&i&&console.log("redux-persist: migrationKeys",f);try{var y=f.reduce(function(x,R){return WM.NODE_ENV!=="production"&&i&&console.log("redux-persist: running migration for versionKey",R),t[R](x)},a);return Promise.resolve(y)}catch(x){return Promise.reject(x)}}}var nae={},iae={},Kwe={};iae.__esModule=!0,iae.default=Unn;function DG(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?DG=function(n){return typeof n}:DG=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},DG(t)}function aae(){}var znn={getItem:aae,setItem:aae,removeItem:aae};function Cnn(t){if((typeof self>"u"?"undefined":DG(self))!=="object"||!(t in self))return!1;try{var e=self[t],n="redux-persist ".concat(t," test");e.setItem(n,"test"),e.getItem(n),e.removeItem(n)}catch{return Kwe.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(t," test failed, persistence will be disabled.")),!1}return!0}function Unn(t){var e="".concat(t,"Storage");return Cnn(e)?self[e]:(Kwe.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),znn)}nae.__esModule=!0,nae.default=bnn;var Dnn=Bnn(iae);function Bnn(t){return t&&t.__esModule?t:{default:t}}function bnn(t){var e=(0,Dnn.default)(t);return{getItem:function(i){return new Promise(function(a,s){a(e.getItem(i))})},setItem:function(i,a){return new Promise(function(s,o){s(e.setItem(i,a))})},removeItem:function(i){return new Promise(function(a,s){a(e.removeItem(i))})}}}var Jwe=void 0,wnn=Snn(nae);function Snn(t){return t&&t.__esModule?t:{default:t}}var xnn=(0,wnn.default)("local");Jwe=xnn;const Ywe=S8({name:"search",initialState:{suggestions:[],searchQuery:"",slashCommand:null,searchHistory:[]},reducers:{setSuggestions:(t,e)=>{t.suggestions=e.payload},setSearchQuery:(t,e)=>{t.searchQuery=e.payload},clearSuggestions:t=>{t.suggestions=[]},setSlashCommand:(t,e)=>{t.slashCommand=e.payload},addToSearchHistory:(t,e)=>{t.searchHistory=[e.payload,...t.searchHistory.filter(n=>n.id!==e.payload.id)].slice(0,10)},clearSearchHistory:t=>{t.searchHistory=[]}}}),{setSuggestions:I3n,setSearchQuery:P3n,clearSuggestions:L3n,setSlashCommand:R3n,addToSearchHistory:O3n,clearSearchHistory:H3n}=Ywe.actions,Enn=Ywe.reducer;var $we={};const Tnn={key:"root",storage:Jwe,blacklist:["navigation","hub","genomeHub","utility","undoRedo"],version:1,migrate:ynn({1:t=>{var e;return!t||!t.browser||(e=t.browser)!=null&&e.present?t:{...t,browser:{past:[],present:t.browser,future:[]}}}},{debug:$we.NODE_ENV==="development"})},Fnn={limit:20,filter:hqt([u9.type]),debug:$we.NODE_ENV==="development"},Nnn=_ze({navigation:Fqt,browser:pqt(xqt,Fnn),utility:_Jt,hub:hJt,genomeHub:$jt,settings:Gjt,search:Enn,undoRedo:Uqt}),knn=fnn(Tnn,Nnn),Qwe=kWt({reducer:knn,middleware:t=>t({serializableCheck:{ignoredActions:[Jie,UG,Yie,$ie,Qie,eae]}})}),Mnn=Ann(Qwe);var Inn={};function BG(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?BG=function(n){return typeof n}:BG=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},BG(t)}function Pnn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lnn(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Rnn(t,e,n){return e&&Lnn(t.prototype,e),t}function Onn(t,e){return e&&(BG(e)==="object"||typeof e=="function")?e:bG(t)}function sae(t){return sae=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},sae(t)}function bG(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hnn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&oae(t,e)}function oae(t,e){return oae=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},oae(t,e)}function wG(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var eSe=function(t){Hnn(e,t);function e(){var n,i;Pnn(this,e);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return i=Onn(this,(n=sae(e)).call.apply(n,[this].concat(s))),wG(bG(i),"state",{bootstrapped:!1}),wG(bG(i),"_unsubscribe",void 0),wG(bG(i),"handlePersistorState",function(){var f=i.props.persistor,y=f.getState(),x=y.bootstrapped;x&&(i.props.onBeforeLift?Promise.resolve(i.props.onBeforeLift()).finally(function(){return i.setState({bootstrapped:!0})}):i.setState({bootstrapped:!0}),i._unsubscribe&&i._unsubscribe())}),i}return Rnn(e,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return Inn.NODE_ENV!=="production"&&typeof this.props.children=="function"&&this.props.loading&&console.error("redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored."),typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),e}(Br.PureComponent);wG(eSe,"defaultProps",{children:null,loading:null});function Wnn({children:t}){return me.jsx(THt,{store:Qwe,children:me.jsx(eSe,{loading:null,persistor:Mnn,children:t})})}function qnn(t){return me.jsx(OLt,{transition:jnn,children:me.jsx(Wnn,{children:me.jsx(Ktn,{...t})})})}const jnn={type:"spring",damping:35,stiffness:400,mass:.8},Gnn={normal:0,add:1,multiply:2,screen:3,overlay:4,erase:5,"normal-npm":6,"add-npm":7,"screen-npm":8,min:9,max:10},cae=0,hae=1,lae=2,uae=3,fae=4,dae=5,vae=class $Fe{constructor(){this.data=0,this.blendMode="normal",this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(this.data&1<<cae)}set blend(e){!!(this.data&1<<cae)!==e&&(this.data^=1<<cae)}get offsets(){return!!(this.data&1<<hae)}set offsets(e){!!(this.data&1<<hae)!==e&&(this.data^=1<<hae)}set cullMode(e){if(e==="none"){this.culling=!1;return}this.culling=!0,this.clockwiseFrontFace=e==="front"}get cullMode(){return this.culling?this.clockwiseFrontFace?"front":"back":"none"}get culling(){return!!(this.data&1<<lae)}set culling(e){!!(this.data&1<<lae)!==e&&(this.data^=1<<lae)}get depthTest(){return!!(this.data&1<<uae)}set depthTest(e){!!(this.data&1<<uae)!==e&&(this.data^=1<<uae)}get depthMask(){return!!(this.data&1<<dae)}set depthMask(e){!!(this.data&1<<dae)!==e&&(this.data^=1<<dae)}get clockwiseFrontFace(){return!!(this.data&1<<fae)}set clockwiseFrontFace(e){!!(this.data&1<<fae)!==e&&(this.data^=1<<fae)}get blendMode(){return this._blendMode}set blendMode(e){this.blend=e!=="none",this._blendMode=e,this._blendModeId=Gnn[e]||0}get polygonOffset(){return this._polygonOffset}set polygonOffset(e){this.offsets=!!e,this._polygonOffset=e}toString(){return`[pixi.js/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`}static for2d(){const e=new $Fe;return e.depthTest=!1,e.blend=!0,e}};vae.default2d=vae.for2d();let _6=vae;const rSe=class zoe extends H5{constructor(e){e={...zoe.defaultOptions,...e},super(e),this.enabled=!0,this._state=_6.for2d(),this.blendMode=e.blendMode,this.padding=e.padding,typeof e.antialias=="boolean"?this.antialias=e.antialias?"on":"off":this.antialias=e.antialias,this.resolution=e.resolution,this.blendRequired=e.blendRequired,this.clipToViewport=e.clipToViewport,this.addResource("uTexture",0,1)}apply(e,n,i,a){e.applyFilter(this,n,i,a)}get blendMode(){return this._state.blendMode}set blendMode(e){this._state.blendMode=e}static from(e){const{gpu:n,gl:i,...a}=e;let s,o;return n&&(s=Q7.from(n)),i&&(o=cU.from(i)),new zoe({gpuProgram:s,glProgram:o,...a})}};rSe.defaultOptions={blendMode:"normal",resolution:1,padding:0,antialias:"off",blendRequired:!1,clipToViewport:!0};let tSe=rSe;const qM={name:"local-uniform-bit",vertex:{header:`
|
|
6224
6224
|
|
|
6225
6225
|
struct LocalUniforms {
|
|
6226
6226
|
uTransformMatrix:mat3x3<f32>,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { x as m, w as D, c as re, M as T, G as ht, H as S, T as he, n as O, B as G, I as dt, b as C, d as M, e as V, h as ct, P as de, Y as Ce, N as pt, f as P, a as Y, $ as k, g as R, t as ft, D as ce, i as H, j as gt, k as A, l as U, _ as Se, u as ie, X as q, Q as F, m as se, U as mt, p as Pe, K as xt, v as ne, q as Fe, r as _t, E as yt, y as Re, s as Ue, z as vt, A as bt, C as Me, F as Tt, J as wt, L as ae, S as Be, R as ze, W as ee, Z as I } from "./index-
|
|
2
|
-
import { y as L, U as X, w as Ae, h as Ct, k as St, S as Pt } from "./colorToUniform-CSn0Emyh-
|
|
1
|
+
import { x as m, w as D, c as re, M as T, G as ht, H as S, T as he, n as O, B as G, I as dt, b as C, d as M, e as V, h as ct, P as de, Y as Ce, N as pt, f as P, a as Y, $ as k, g as R, t as ft, D as ce, i as H, j as gt, k as A, l as U, _ as Se, u as ie, X as q, Q as F, m as se, U as mt, p as Pe, K as xt, v as ne, q as Fe, r as _t, E as yt, y as Re, s as Ue, z as vt, A as bt, C as Me, F as Tt, J as wt, L as ae, S as Be, R as ze, W as ee, Z as I } from "./index-DDPpvUvK.mjs";
|
|
2
|
+
import { y as L, U as X, w as Ae, h as Ct, k as St, S as Pt } from "./colorToUniform-CSn0Emyh-CBpgdFeq.mjs";
|
|
3
3
|
class Ge {
|
|
4
4
|
/**
|
|
5
5
|
* Initialize the plugin with scope of application instance
|
package/package.json
CHANGED