@genome-spy/core 0.65.0 → 0.66.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/bundle/browser-BRemItdO.js +138 -0
- package/dist/bundle/{index-CD7FLu9x.js → index-BatuyGAI.js} +23 -21
- package/dist/bundle/{index-C0llXMqm.js → index-ByuE8dvu.js} +140 -88
- package/dist/bundle/index-Cq3QFUxX.js +1781 -0
- package/dist/bundle/index-D28m8tSW.js +1607 -0
- package/dist/bundle/index-DbJ0oeYM.js +631 -0
- package/dist/bundle/index.es.js +17587 -16593
- package/dist/bundle/index.js +214 -212
- package/dist/bundle/{inflate-DRgHi_KK.js → inflate-GtwLkvSP.js} +222 -224
- package/dist/bundle/unzip-NywezaRR.js +1492 -0
- package/dist/schema.json +13 -3
- package/dist/src/config/scaleDefaults.d.ts +8 -0
- package/dist/src/config/scaleDefaults.d.ts.map +1 -0
- package/dist/src/config/scaleDefaults.js +45 -0
- package/dist/src/data/flowInit.js +2 -2
- package/dist/src/data/sources/lazy/axisTickSource.js +1 -1
- package/dist/src/data/sources/lazy/singleAxisLazySource.d.ts +1 -1
- package/dist/src/data/sources/lazy/singleAxisLazySource.d.ts.map +1 -1
- package/dist/src/data/sources/lazy/singleAxisLazySource.js +10 -3
- package/dist/src/data/sources/lazy/singleAxisWindowedSource.d.ts.map +1 -1
- package/dist/src/data/sources/lazy/singleAxisWindowedSource.js +5 -1
- package/dist/src/data/transforms/filterScoredLabels.d.ts +1 -1
- package/dist/src/data/transforms/filterScoredLabels.d.ts.map +1 -1
- package/dist/src/data/transforms/filterScoredLabels.js +1 -1
- package/dist/src/data/transforms/linearizeGenomicCoordinate.d.ts.map +1 -1
- package/dist/src/data/transforms/linearizeGenomicCoordinate.js +2 -1
- package/dist/src/encoder/encoder.d.ts +1 -1
- package/dist/src/encoder/encoder.d.ts.map +1 -1
- package/dist/src/encoder/encoder.js +1 -1
- package/dist/src/genome/scaleLocus.d.ts +39 -0
- package/dist/src/genome/scaleLocus.d.ts.map +1 -1
- package/dist/src/genome/scaleLocus.js +76 -0
- package/dist/src/genomeSpy/canvasExport.d.ts +19 -0
- package/dist/src/genomeSpy/canvasExport.d.ts.map +1 -0
- package/dist/src/genomeSpy/canvasExport.js +66 -0
- package/dist/src/genomeSpy/containerUi.d.ts +17 -0
- package/dist/src/genomeSpy/containerUi.d.ts.map +1 -0
- package/dist/src/genomeSpy/containerUi.js +78 -0
- package/dist/src/genomeSpy/eventListenerRegistry.d.ts +19 -0
- package/dist/src/genomeSpy/eventListenerRegistry.d.ts.map +1 -0
- package/dist/src/genomeSpy/eventListenerRegistry.js +38 -0
- package/dist/src/genomeSpy/inputBindingManager.d.ts +14 -0
- package/dist/src/genomeSpy/inputBindingManager.d.ts.map +1 -0
- package/dist/src/genomeSpy/inputBindingManager.js +63 -0
- package/dist/src/genomeSpy/interactionController.d.ts +40 -0
- package/dist/src/genomeSpy/interactionController.d.ts.map +1 -0
- package/dist/src/genomeSpy/interactionController.js +371 -0
- package/dist/src/genomeSpy/keyboardListenerManager.d.ts +10 -0
- package/dist/src/genomeSpy/keyboardListenerManager.d.ts.map +1 -0
- package/dist/src/genomeSpy/keyboardListenerManager.js +31 -0
- package/dist/src/genomeSpy/loadingIndicatorManager.d.ts +15 -0
- package/dist/src/genomeSpy/loadingIndicatorManager.d.ts.map +1 -0
- package/dist/src/genomeSpy/loadingIndicatorManager.js +92 -0
- package/dist/src/genomeSpy/renderCoordinator.d.ts +22 -0
- package/dist/src/genomeSpy/renderCoordinator.d.ts.map +1 -0
- package/dist/src/genomeSpy/renderCoordinator.js +118 -0
- package/dist/src/genomeSpy/viewContextFactory.d.ts +18 -0
- package/dist/src/genomeSpy/viewContextFactory.d.ts.map +1 -0
- package/dist/src/genomeSpy/viewContextFactory.js +79 -0
- package/dist/src/genomeSpy/viewDataInit.d.ts +12 -0
- package/dist/src/genomeSpy/viewDataInit.d.ts.map +1 -0
- package/dist/src/genomeSpy/viewDataInit.js +41 -0
- package/dist/src/genomeSpy/viewHierarchyConfig.d.ts +14 -0
- package/dist/src/genomeSpy/viewHierarchyConfig.d.ts.map +1 -0
- package/dist/src/genomeSpy/viewHierarchyConfig.js +24 -0
- package/dist/src/genomeSpy/viewHighlight.d.ts +5 -0
- package/dist/src/genomeSpy/viewHighlight.d.ts.map +1 -0
- package/dist/src/genomeSpy/viewHighlight.js +30 -0
- package/dist/src/genomeSpy.d.ts +16 -71
- package/dist/src/genomeSpy.d.ts.map +1 -1
- package/dist/src/genomeSpy.js +179 -745
- package/dist/src/gl/glslScaleGenerator.d.ts +1 -1
- package/dist/src/gl/webGLHelper.d.ts +2 -2
- package/dist/src/gl/webGLHelper.d.ts.map +1 -1
- package/dist/src/gl/webGLHelper.js +4 -4
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -12
- package/dist/src/marks/mark.d.ts.map +1 -1
- package/dist/src/marks/mark.js +4 -2
- package/dist/src/{view → scales}/axisResolution.d.ts +9 -16
- package/dist/src/scales/axisResolution.d.ts.map +1 -0
- package/dist/src/{view → scales}/axisResolution.js +29 -18
- package/dist/src/scales/axisResolution.test.d.ts.map +1 -0
- package/dist/src/scales/scaleDomainAggregator.d.ts +57 -0
- package/dist/src/scales/scaleDomainAggregator.d.ts.map +1 -0
- package/dist/src/scales/scaleDomainAggregator.js +162 -0
- package/dist/src/scales/scaleDomainAggregator.test.d.ts +2 -0
- package/dist/src/scales/scaleDomainAggregator.test.d.ts.map +1 -0
- package/dist/src/scales/scaleInstanceManager.d.ts +40 -0
- package/dist/src/scales/scaleInstanceManager.d.ts.map +1 -0
- package/dist/src/scales/scaleInstanceManager.js +313 -0
- package/dist/src/scales/scaleInstanceManager.test.d.ts +2 -0
- package/dist/src/scales/scaleInstanceManager.test.d.ts.map +1 -0
- package/dist/src/scales/scaleInteractionController.d.ts +73 -0
- package/dist/src/scales/scaleInteractionController.d.ts.map +1 -0
- package/dist/src/scales/scaleInteractionController.js +336 -0
- package/dist/src/scales/scaleInteractionController.test.d.ts +2 -0
- package/dist/src/scales/scaleInteractionController.test.d.ts.map +1 -0
- package/dist/src/scales/scalePropsResolver.d.ts +23 -0
- package/dist/src/scales/scalePropsResolver.d.ts.map +1 -0
- package/dist/src/scales/scalePropsResolver.js +74 -0
- package/dist/src/{view → scales}/scaleResolution.d.ts +52 -35
- package/dist/src/scales/scaleResolution.d.ts.map +1 -0
- package/dist/src/scales/scaleResolution.js +658 -0
- package/dist/src/scales/scaleResolution.test.d.ts.map +1 -0
- package/dist/src/scales/scaleResolutionConstants.d.ts +6 -0
- package/dist/src/scales/scaleResolutionConstants.d.ts.map +1 -0
- package/dist/src/scales/scaleResolutionConstants.js +5 -0
- package/dist/src/scales/scaleRules.d.ts +16 -0
- package/dist/src/scales/scaleRules.d.ts.map +1 -0
- package/dist/src/scales/scaleRules.js +103 -0
- package/dist/src/scales/scaleRules.test.d.ts +2 -0
- package/dist/src/scales/scaleRules.test.d.ts.map +1 -0
- package/dist/src/spec/channel.d.ts +13 -18
- package/dist/src/spec/scale.d.ts +6 -0
- package/dist/src/types/embedApi.d.ts +5 -0
- package/dist/src/types/scaleResolutionApi.d.ts +1 -1
- package/dist/src/view/concatView.d.ts +18 -0
- package/dist/src/view/concatView.d.ts.map +1 -1
- package/dist/src/view/concatView.js +73 -0
- package/dist/src/view/concatView.test.d.ts +2 -0
- package/dist/src/view/concatView.test.d.ts.map +1 -0
- package/dist/src/view/containerMutationHelper.d.ts +74 -0
- package/dist/src/view/containerMutationHelper.d.ts.map +1 -0
- package/dist/src/view/containerMutationHelper.js +114 -0
- package/dist/src/view/containerView.d.ts +0 -7
- package/dist/src/view/containerView.d.ts.map +1 -1
- package/dist/src/view/containerView.js +0 -10
- package/dist/src/view/facetView.d.ts.map +1 -1
- package/dist/src/view/facetView.js +0 -15
- package/dist/src/view/gridView/gridChild.d.ts +11 -0
- package/dist/src/view/gridView/gridChild.d.ts.map +1 -1
- package/dist/src/view/gridView/gridChild.js +32 -6
- package/dist/src/view/gridView/gridView.d.ts +39 -1
- package/dist/src/view/gridView/gridView.d.ts.map +1 -1
- package/dist/src/view/gridView/gridView.js +106 -48
- package/dist/src/view/gridView/gridView.test.d.ts +2 -0
- package/dist/src/view/gridView/gridView.test.d.ts.map +1 -0
- package/dist/src/view/gridView/scrollbar.d.ts +39 -8
- package/dist/src/view/gridView/scrollbar.d.ts.map +1 -1
- package/dist/src/view/gridView/scrollbar.js +184 -69
- package/dist/src/view/layerView.d.ts +14 -0
- package/dist/src/view/layerView.d.ts.map +1 -1
- package/dist/src/view/layerView.js +66 -0
- package/dist/src/view/layerView.test.d.ts +2 -0
- package/dist/src/view/layerView.test.d.ts.map +1 -0
- package/dist/src/view/testUtils.d.ts.map +1 -1
- package/dist/src/view/testUtils.js +2 -1
- package/dist/src/view/unitView.d.ts.map +1 -1
- package/dist/src/view/unitView.js +24 -34
- package/dist/src/view/view.d.ts +6 -6
- package/dist/src/view/view.d.ts.map +1 -1
- package/dist/src/view/view.js +4 -4
- package/package.json +2 -2
- package/dist/bundle/browser-txUcLy2H.js +0 -123
- package/dist/bundle/index-BQpbYrv4.js +0 -1712
- package/dist/bundle/index-BhtHKLUo.js +0 -73
- package/dist/bundle/index-CCe8rnZz.js +0 -716
- package/dist/bundle/index-DhcU-Gk-.js +0 -1487
- package/dist/src/data/collector.test.js +0 -138
- package/dist/src/data/dataFlow.test.js +0 -38
- package/dist/src/data/flow.test.js +0 -81
- package/dist/src/data/flowInit.test.js +0 -413
- package/dist/src/data/flowNode.test.js +0 -50
- package/dist/src/data/flowOptimizer.test.js +0 -209
- package/dist/src/data/formats/fasta.test.js +0 -27
- package/dist/src/data/sources/inlineSource.test.js +0 -63
- package/dist/src/data/sources/sequenceSource.test.js +0 -81
- package/dist/src/data/transforms/aggregate.test.js +0 -134
- package/dist/src/data/transforms/clone.test.js +0 -11
- package/dist/src/data/transforms/coverage.test.js +0 -238
- package/dist/src/data/transforms/filter.test.js +0 -20
- package/dist/src/data/transforms/flatten.test.js +0 -96
- package/dist/src/data/transforms/flattenDelimited.test.js +0 -90
- package/dist/src/data/transforms/flattenSequence.test.js +0 -34
- package/dist/src/data/transforms/formula.test.js +0 -25
- package/dist/src/data/transforms/identifier.test.js +0 -92
- package/dist/src/data/transforms/pileup.test.js +0 -70
- package/dist/src/data/transforms/project.test.js +0 -32
- package/dist/src/data/transforms/regexExtract.test.js +0 -70
- package/dist/src/data/transforms/regexFold.test.js +0 -201
- package/dist/src/data/transforms/sample.test.js +0 -38
- package/dist/src/data/transforms/stack.test.js +0 -91
- package/dist/src/encoder/accessor.test.js +0 -162
- package/dist/src/encoder/encoder.test.js +0 -105
- package/dist/src/genome/genome.test.js +0 -268
- package/dist/src/genome/genomes.test.js +0 -8
- package/dist/src/genome/scaleIndex.test.js +0 -78
- package/dist/src/genome/scaleLocus.test.js +0 -4
- package/dist/src/scale/scale.test.js +0 -326
- package/dist/src/scale/ticks.test.js +0 -46
- package/dist/src/selection/selection.test.js +0 -14
- package/dist/src/utils/addBaseUrl.test.js +0 -30
- package/dist/src/utils/binnedIndex.test.js +0 -201
- package/dist/src/utils/cloner.test.js +0 -35
- package/dist/src/utils/coalesce.test.js +0 -16
- package/dist/src/utils/concatIterables.test.js +0 -8
- package/dist/src/utils/domainArray.test.js +0 -130
- package/dist/src/utils/indexer.test.js +0 -49
- package/dist/src/utils/interactionEvent.test.js +0 -35
- package/dist/src/utils/iterateNestedMaps.test.js +0 -33
- package/dist/src/utils/kWayMerge.test.js +0 -30
- package/dist/src/utils/mergeObjects.test.js +0 -42
- package/dist/src/utils/numberExtractor.test.js +0 -6
- package/dist/src/utils/propertyCacher.test.js +0 -89
- package/dist/src/utils/propertyCoalescer.test.js +0 -25
- package/dist/src/utils/radixSort.test.js +0 -51
- package/dist/src/utils/reservationMap.test.js +0 -20
- package/dist/src/utils/ringBuffer.test.js +0 -39
- package/dist/src/utils/topK.test.js +0 -54
- package/dist/src/utils/trees.test.js +0 -135
- package/dist/src/utils/url.test.js +0 -28
- package/dist/src/utils/variableTools.test.js +0 -13
- package/dist/src/view/axisResolution.d.ts.map +0 -1
- package/dist/src/view/axisResolution.test.d.ts.map +0 -1
- package/dist/src/view/axisResolution.test.js +0 -206
- package/dist/src/view/flowBuilder.test.js +0 -125
- package/dist/src/view/gridView/selectionRect.test.js +0 -87
- package/dist/src/view/layout/flexLayout.test.js +0 -323
- package/dist/src/view/layout/grid.test.js +0 -71
- package/dist/src/view/layout/rectangle.test.js +0 -192
- package/dist/src/view/paramMediator.test.js +0 -282
- package/dist/src/view/scaleResolution.d.ts.map +0 -1
- package/dist/src/view/scaleResolution.js +0 -1059
- package/dist/src/view/scaleResolution.test.d.ts.map +0 -1
- package/dist/src/view/scaleResolution.test.js +0 -645
- package/dist/src/view/view.test.js +0 -245
- package/dist/src/view/viewDispose.test.js +0 -110
- package/dist/src/view/viewFactory.test.js +0 -25
- package/dist/src/view/viewUtils.test.js +0 -87
- /package/dist/src/{view → scales}/axisResolution.test.d.ts +0 -0
- /package/dist/src/{view → scales}/scaleResolution.test.d.ts +0 -0
package/dist/bundle/index.js
CHANGED
|
@@ -1,35 +1,27 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(ee,te){typeof exports=="object"&&typeof module<"u"?te(exports):typeof define=="function"&&define.amd?define(["exports"],te):(ee=typeof globalThis<"u"?globalThis:ee||self,te(ee.genomeSpyEmbed={}))})(this,(function(ee){"use strict";var cP=Object.defineProperty;var lP=Object.getPrototypeOf;var uP=Reflect.get;var _E=ee=>{throw TypeError(ee)};var fP=(ee,te,De)=>te in ee?cP(ee,te,{enumerable:!0,configurable:!0,writable:!0,value:De}):ee[te]=De;var j=(ee,te,De)=>fP(ee,typeof te!="symbol"?te+"":te,De),D0=(ee,te,De)=>te.has(ee)||_E("Cannot "+De);var m=(ee,te,De)=>(D0(ee,te,"read from private field"),De?De.call(ee):te.get(ee)),D=(ee,te,De)=>te.has(ee)?_E("Cannot add the same private member more than once"):te instanceof WeakSet?te.add(ee):te.set(ee,De),F=(ee,te,De,Yi)=>(D0(ee,te,"write to private field"),Yi?Yi.call(ee,De):te.set(ee,De),De),P=(ee,te,De)=>(D0(ee,te,"access private method"),De);var VE=(ee,te,De,Yi)=>({set _(Uf){F(ee,te,Uf,De)},get _(){return m(ee,te,Yi)}}),JE=(ee,te,De)=>uP(lP(ee),De,te);var wE,zn,Ys,Ii,Ei,_s,pc,dt,br,Vs,bi,xi,xr,Br,Bi,ll,mc,vr,vi,Js,qs,Cc,yc,wc,yn,Ic,Ks,qE,KE,en,js,Qr,k0,F0,Ws,xf,jE,wn,Ec,bc,xc,Bc,Xs,Zs,zt,WE,M0,R0,XE,$s,eo,vc,Qc,Qi,Ht,Sc,Dc,to,no,kc,In,ro,Re,En,Yt,re,N0,T0,P0,No,ul,ZE,$E,eb,tb,Nf,L0,bn,Bf,nb,Fc,O0,io,so,oo,Mc,Rc,ao,xn,fl,U0,Nc,vf,rb,Hn,Tc,Sr,Si,co,Dt,G0,z0,H0,ib,Pc,Y0,Qf,sb,lo,uo,fo,Lc,Ao,ho,Oc,_0,Uc,V0,Di,go,Gc,zc,po,Hc,Yc,Yn,ki,_t,_c,J0,Fi,Dr,kr,Fr,Vc,kt,mo,Co,me,ob,q0,Tf,Al,ab,cb,Pf,K0,Sf,lb,yo,wo,ct,_n,Jc,se,Hi,ub,j0,hl,W0,X0,Z0,fb,Lf,Ab,Mi,hb,$0,Io,Eo,bo,Ri,gt,qc,Kc,jc,xo,Wc,Ye,Ni,Bo,Vn,Df,db,Xc,nn,Zc,vo,$c,el,tl,Qo,nl,kf,gb,rl,Ti,il,So,sl,Pi,Li,Oi,Do,Ui,ko,Fo,Gi,xt,ol,zi,Mo,Me,Of,pb,mb,Cb,yb,wb,Ib,Eb,bb;function te(n,t,e){return n.fields=t||[],n.fname=e,n}function De(n){return n==null?null:n.fname}function Yi(n){return n==null?null:n.fields}function Uf(n){return n.length===1?xb(n[0]):Bb(n)}const xb=n=>function(t){return t[n]},Bb=n=>{const t=n.length;return function(e){for(let r=0;r<t;++r)e=e[n[r]];return e}};function Ne(n){throw Error(n)}function vb(n){const t=[],e=n.length;let r=null,i=0,s="",o,a,l;n=n+"";function c(){t.push(s+n.substring(o,a)),s="",o=a+1}for(o=a=0;a<e;++a)if(l=n[a],l==="\\")s+=n.substring(o,a++),o=a;else if(l===r)c(),r=null,i=-1;else{if(r)continue;o===i&&l==='"'||o===i&&l==="'"?(o=a+1,r=l):l==="."&&!i?a>o?c():o=a+1:l==="["?(a>o&&c(),i=o=a+1):l==="]"&&(i||Ne("Access path missing open bracket: "+n),i>0&&c(),i=0,o=a+1)}return i&&Ne("Access path missing closing bracket: "+n),r&&Ne("Access path missing closing quote: "+n),a>o&&(a++,c()),t}function dl(n,t,e){const r=vb(n);return n=r.length===1?r[0]:n,te((e&&e.get||Uf)(r),[n],t||n)}dl("id");const gl=te(n=>n,[],"identity");te(()=>0,[],"zero"),te(()=>1,[],"one"),te(()=>!0,[],"true"),te(()=>!1,[],"false");const Qb=new Set([...Object.getOwnPropertyNames(Object.prototype).filter(n=>typeof Object.prototype[n]=="function"),"__proto__"]);var Xe=Array.isArray;function et(n){return n===Object(n)}function qt(n){return n[n.length-1]}function To(n){return n==null||n===""?null:+n}const tg=n=>t=>n*Math.exp(t),ng=n=>t=>Math.log(n*t),Sb=n=>t=>Math.sign(t)*Math.log1p(Math.abs(t/n)),Db=n=>t=>Math.sign(t)*Math.expm1(Math.abs(t))*n,pl=n=>t=>t<0?-Math.pow(-t,n):Math.pow(t,n);function Gf(n,t,e,r){const i=e(n[0]),s=e(qt(n)),o=(s-i)*t;return[r(i-o),r(s-o)]}function kb(n,t){return Gf(n,t,To,gl)}function Fb(n,t){var e=Math.sign(n[0]);return Gf(n,t,ng(e),tg(e))}function Mb(n,t,e){return Gf(n,t,pl(e),pl(1/e))}function ml(n,t,e,r,i){const s=r(n[0]),o=r(qt(n)),a=t!=null?r(t):(s+o)/2;return[i(a+(s-a)*e),i(a+(o-a)*e)]}function rg(n,t,e){return ml(n,t,e,To,gl)}function ig(n,t,e){const r=Math.sign(n[0]);return ml(n,t,e,ng(r),tg(r))}function zf(n,t,e,r){return ml(n,t,e,pl(r),pl(1/r))}function Rb(n,t,e,r){return ml(n,t,e,Sb(r),Db(r))}function Hf(n){return n!=null?Xe(n)?n:[n]:[]}function Nb(n,t,e){let r=n[0],i=n[1],s;return i<r&&(s=i,i=r,r=s),s=i-r,s>=e-t?[t,e]:[r=Math.min(Math.max(r,t),e-s),r+s]}function Ft(n){return typeof n=="function"}const Tb="descending";function sg(n,t,e){e=e||{},t=Hf(t)||[];const r=[],i=[],s={},o=e.comparator||Pb;return Hf(n).forEach((a,l)=>{a!=null&&(r.push(t[l]===Tb?-1:1),i.push(a=Ft(a)?a:dl(a,null,e)),(Yi(a)||[]).forEach(c=>s[c]=1))}),i.length===0?null:te(o(i,r),Object.keys(s))}const og=(n,t)=>(n<t||n==null)&&t!=null?-1:(n>t||t==null)&&n!=null?1:(t=t instanceof Date?+t:t,(n=n instanceof Date?+n:n)!==n&&t===t?-1:t!==t&&n===n?1:0),Pb=(n,t)=>n.length===1?Lb(n[0],t[0]):Ob(n,t,n.length),Lb=(n,t)=>function(e,r){return og(n(e),n(r))*t},Ob=(n,t,e)=>(t.push(0),function(r,i){let s,o=0,a=-1;for(;o===0&&++a<e;)s=n[a],o=og(s(r),s(i));return o*t[a]});function Ub(n){for(let t,e,r=1,i=arguments.length;r<i;++r){t=arguments[r];for(e in t)n[e]=t[e]}return n}function _i(n,t){return Object.hasOwn(n,t)}function Po(n){return typeof n=="boolean"}function Gb(n){return Object.prototype.toString.call(n)==="[object Date]"}function zb(n){return n&&Ft(n[Symbol.iterator])}function ft(n){return typeof n=="number"}function Hb(n){return Object.prototype.toString.call(n)==="[object RegExp]"}function Ce(n){return typeof n=="string"}function ag(n,t){const e=n[0],r=qt(n),i=+t;return i?i===1?r:e+i*(r-e):e}function Lo(n){return n&&qt(n)-n[0]||0}function Yf(n){return Xe(n)?`[${n.map(t=>t===null?"null":Yf(t))}]`:et(n)||Ce(n)?JSON.stringify(n).replaceAll("\u2028","\\u2028").replaceAll("\u2029","\\u2029"):n}function Yb(n){return n==null||n===""?null:!n||n==="false"||n==="0"?!1:!!n}const _b=n=>ft(n)||Gb(n)?n:Date.parse(n);function Vb(n,t){return t=t||_b,n==null||n===""?null:t(n)}function Jb(n){return n==null||n===""?null:n+""}function Cl(n){const t={},e=n.length;for(let r=0;r<e;++r)t[n[r]]=!0;return t}/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const
|
|
5
|
+
*/const yl=globalThis,_f=yl.ShadowRoot&&(yl.ShadyCSS===void 0||yl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,cg=Symbol(),lg=new WeakMap;let qb=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==cg)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(_f&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=lg.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&lg.set(e,t))}return t}toString(){return this.cssText}};const Kb=n=>new qb(typeof n=="string"?n:n+"",void 0,cg),jb=(n,t)=>{if(_f)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const r=document.createElement("style"),i=yl.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=e.cssText,n.appendChild(r)}},ug=_f?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return Kb(e)})(n):n;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:
|
|
9
|
+
*/const{is:Wb,defineProperty:Xb,getOwnPropertyDescriptor:Zb,getOwnPropertyNames:$b,getOwnPropertySymbols:ex,getPrototypeOf:tx}=Object,Wn=globalThis,fg=Wn.trustedTypes,nx=fg?fg.emptyScript:"",Vf=Wn.reactiveElementPolyfillSupport,Oo=(n,t)=>n,Jf={toAttribute(n,t){switch(t){case Boolean:n=n?nx:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},Ag=(n,t)=>!Wb(n,t),hg={attribute:!0,type:String,converter:Jf,reflect:!1,useDefault:!1,hasChanged:Ag};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Wn.litPropertyMetadata??(Wn.litPropertyMetadata=new WeakMap);let Vi=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=hg){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&Xb(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){const{get:i,set:s}=Zb(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get:i,set(o){const a=i==null?void 0:i.call(this);s==null||s.call(this,o),this.requestUpdate(t,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??hg}static _$Ei(){if(this.hasOwnProperty(Oo("elementProperties")))return;const t=tx(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Oo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Oo("properties"))){const e=this.properties,r=[...$b(e),...ex(e)];for(const i of r)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)e.unshift(ug(i))}else t!==void 0&&e.push(ug(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return jb(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){var s;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const o=(((s=r.converter)==null?void 0:s.toAttribute)!==void 0?r.converter:Jf).toAttribute(e,r.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){var s,o;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const a=r.getPropertyOptions(i),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((s=a.converter)==null?void 0:s.fromAttribute)!==void 0?a.converter:Jf;this._$Em=i;const c=l.fromAttribute(e,a.type);this[i]=c??((o=this._$Ej)==null?void 0:o.get(i))??c,this._$Em=null}}requestUpdate(t,e,r,i=!1,s){var o;if(t!==void 0){const a=this.constructor;if(i===!1&&(s=this[t]),r??(r=a.getPropertyOptions(t)),!((r.hasChanged??Ag)(s,e)||r.useDefault&&r.reflect&&s===((o=this._$Ej)==null?void 0:o.get(t))&&!this.hasAttribute(a._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:i,wrapped:s},o){r&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,o??e??this[t]),s!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[s,o]of i){const{wrapped:a}=o,l=this[s];a!==!0||this._$AL.has(s)||l===void 0||this.C(s,void 0,o,l)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$EO)==null||r.forEach(i=>{var s;return(s=i.hostUpdate)==null?void 0:s.call(i)}),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};Vi.elementStyles=[],Vi.shadowRootOptions={mode:"open"},Vi[Oo("elementProperties")]=new Map,Vi[Oo("finalized")]=new Map,Vf==null||Vf({ReactiveElement:Vi}),(Wn.reactiveElementVersions??(Wn.reactiveElementVersions=[])).push("2.1.2");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const
|
|
14
|
-
\f\r]`,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
13
|
+
*/const Uo=globalThis,dg=n=>n,wl=Uo.trustedTypes,gg=wl?wl.createPolicy("lit-html",{createHTML:n=>n}):void 0,pg="$lit$",Xn=`lit$${Math.random().toFixed(9).slice(2)}$`,mg="?"+Xn,rx=`<${mg}>`,Pr=document,Go=()=>Pr.createComment(""),zo=n=>n===null||typeof n!="object"&&typeof n!="function",qf=Array.isArray,ix=n=>qf(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Kf=`[
|
|
14
|
+
\f\r]`,Ho=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Cg=/-->/g,yg=/>/g,Lr=RegExp(`>|${Kf}(?:([^\\s"'>=/]+)(${Kf}*=${Kf}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),wg=/'/g,Ig=/"/g,Eg=/^(?:script|style|textarea|title)$/i,sx=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),be=sx(1),Or=Symbol.for("lit-noChange"),Te=Symbol.for("lit-nothing"),bg=new WeakMap,Ur=Pr.createTreeWalker(Pr,129);function xg(n,t){if(!qf(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return gg!==void 0?gg.createHTML(t):t}const ox=(n,t)=>{const e=n.length-1,r=[];let i,s=t===2?"<svg>":t===3?"<math>":"",o=Ho;for(let a=0;a<e;a++){const l=n[a];let c,u,f=-1,h=0;for(;h<l.length&&(o.lastIndex=h,u=o.exec(l),u!==null);)h=o.lastIndex,o===Ho?u[1]==="!--"?o=Cg:u[1]!==void 0?o=yg:u[2]!==void 0?(Eg.test(u[2])&&(i=RegExp("</"+u[2],"g")),o=Lr):u[3]!==void 0&&(o=Lr):o===Lr?u[0]===">"?(o=i??Ho,f=-1):u[1]===void 0?f=-2:(f=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?Lr:u[3]==='"'?Ig:wg):o===Ig||o===wg?o=Lr:o===Cg||o===yg?o=Ho:(o=Lr,i=void 0);const A=o===Lr&&n[a+1].startsWith("/>")?" ":"";s+=o===Ho?l+rx:f>=0?(r.push(c),l.slice(0,f)+pg+l.slice(f)+Xn+A):l+Xn+(f===-2?a:A)}return[xg(n,s+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]};class Yo{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let s=0,o=0;const a=t.length-1,l=this.parts,[c,u]=ox(t,e);if(this.el=Yo.createElement(c,r),Ur.currentNode=this.el.content,e===2||e===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=Ur.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const f of i.getAttributeNames())if(f.endsWith(pg)){const h=u[o++],A=i.getAttribute(f).split(Xn),d=/([.?@])?(.*)/.exec(h);l.push({type:1,index:s,name:d[2],strings:A,ctor:d[1]==="."?cx:d[1]==="?"?lx:d[1]==="@"?ux:Il}),i.removeAttribute(f)}else f.startsWith(Xn)&&(l.push({type:6,index:s}),i.removeAttribute(f));if(Eg.test(i.tagName)){const f=i.textContent.split(Xn),h=f.length-1;if(h>0){i.textContent=wl?wl.emptyScript:"";for(let A=0;A<h;A++)i.append(f[A],Go()),Ur.nextNode(),l.push({type:2,index:++s});i.append(f[h],Go())}}}else if(i.nodeType===8)if(i.data===mg)l.push({type:2,index:s});else{let f=-1;for(;(f=i.data.indexOf(Xn,f+1))!==-1;)l.push({type:7,index:s}),f+=Xn.length-1}s++}}static createElement(t,e){const r=Pr.createElement("template");return r.innerHTML=t,r}}function Ji(n,t,e=n,r){var o,a;if(t===Or)return t;let i=r!==void 0?(o=e._$Co)==null?void 0:o[r]:e._$Cl;const s=zo(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==s&&((a=i==null?void 0:i._$AO)==null||a.call(i,!1),s===void 0?i=void 0:(i=new s(n),i._$AT(n,e,r)),r!==void 0?(e._$Co??(e._$Co=[]))[r]=i:e._$Cl=i),i!==void 0&&(t=Ji(n,i._$AS(n,t.values),i,r)),t}class ax{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,i=((t==null?void 0:t.creationScope)??Pr).importNode(e,!0);Ur.currentNode=i;let s=Ur.nextNode(),o=0,a=0,l=r[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new _o(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new fx(s,this,t)),this._$AV.push(c),l=r[++a]}o!==(l==null?void 0:l.index)&&(s=Ur.nextNode(),o++)}return Ur.currentNode=Pr,i}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class _o{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,r,i){this.type=2,this._$AH=Te,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Ji(this,t,e),zo(t)?t===Te||t==null||t===""?(this._$AH!==Te&&this._$AR(),this._$AH=Te):t!==this._$AH&&t!==Or&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ix(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Te&&zo(this._$AH)?this._$AA.nextSibling.data=t:this.T(Pr.createTextNode(t)),this._$AH=t}$(t){var s;const{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Yo.createElement(xg(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===i)this._$AH.p(e);else{const o=new ax(i,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=bg.get(t.strings);return e===void 0&&bg.set(t.strings,e=new Yo(t)),e}k(t){qf(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const s of t)i===e.length?e.push(r=new _o(this.O(Go()),this.O(Go()),this,this.options)):r=e[i],r._$AI(s),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t!==this._$AB;){const i=dg(t).nextSibling;dg(t).remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Il{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,s){this.type=1,this._$AH=Te,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Te}_$AI(t,e=this,r,i){const s=this.strings;let o=!1;if(s===void 0)t=Ji(this,t,e,0),o=!zo(t)||t!==this._$AH&&t!==Or,o&&(this._$AH=t);else{const a=t;let l,c;for(t=s[0],l=0;l<s.length-1;l++)c=Ji(this,a[r+l],e,l),c===Or&&(c=this._$AH[l]),o||(o=!zo(c)||c!==this._$AH[l]),c===Te?t=Te:t!==Te&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!i&&this.j(t)}j(t){t===Te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class cx extends Il{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Te?void 0:t}}class lx extends Il{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Te)}}let ux=class extends Il{constructor(t,e,r,i,s){super(t,e,r,i,s),this.type=5}_$AI(t,e=this){if((t=Ji(this,t,e,0)??Te)===Or)return;const r=this._$AH,i=t===Te&&r!==Te||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==Te&&(r===Te||i);i&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}};class fx{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){Ji(this,t)}}const jf=Uo.litHtmlPolyfillSupport;jf==null||jf(Yo,_o),(Uo.litHtmlVersions??(Uo.litHtmlVersions=[])).push("3.3.2");const Vo=(n,t,e)=>{const r=(e==null?void 0:e.renderBefore)??t;let i=r._$litPart$;if(i===void 0){const s=(e==null?void 0:e.renderBefore)??null;r._$litPart$=i=new _o(t.insertBefore(Go(),s),s,void 0,e??{})}return i._$AI(n),i};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/const
|
|
20
|
-
\r]`),
|
|
21
|
-
`)}function a(f,
|
|
22
|
-
`)}function
|
|
23
|
-
`)}function u(f){return f.map(l).join(n)}function l(f){return f==null?"":f instanceof Date?DA(f):e.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:r,parseRows:i,format:o,formatBody:a,formatRows:c,formatRow:u,formatValue:l}}var IA=t0(" "),TA=IA.parseRows;function BA(n){return n}function kA(n){if(n==null)return BA;var e,t,r=n.scale[0],i=n.scale[1],s=n.translate[0],o=n.translate[1];return function(a,c){c||(e=t=0);var u=2,l=a.length,f=new Array(l);for(f[0]=(e+=a[0])*r+s,f[1]=(t+=a[1])*i+o;u<l;)f[u]=a[u],++u;return f}}function FA(n,e){for(var t,r=n.length,i=r-e;i<--r;)t=n[i],n[i++]=n[r],n[r]=t}function PA(n,e){return typeof e=="string"&&(e=n.objects[e]),e.type==="GeometryCollection"?{type:"FeatureCollection",features:e.geometries.map(function(t){return n0(n,t)})}:n0(n,e)}function n0(n,e){var t=e.id,r=e.bbox,i=e.properties==null?{}:e.properties,s=r0(n,e);return t==null&&r==null?{type:"Feature",properties:i,geometry:s}:r==null?{type:"Feature",id:t,properties:i,geometry:s}:{type:"Feature",id:t,bbox:r,properties:i,geometry:s}}function r0(n,e){var t=kA(n.transform),r=n.arcs;function i(l,f){f.length&&f.pop();for(var d=r[l<0?~l:l],h=0,p=d.length;h<p;++h)f.push(t(d[h],h));l<0&&FA(f,p)}function s(l){return t(l)}function o(l){for(var f=[],d=0,h=l.length;d<h;++d)i(l[d],f);return f.length<2&&f.push(f[0]),f}function a(l){for(var f=o(l);f.length<4;)f.push(f[0]);return f}function c(l){return l.map(a)}function u(l){var f=l.type,d;switch(f){case"GeometryCollection":return{type:f,geometries:l.geometries.map(u)};case"Point":d=s(l.coordinates);break;case"MultiPoint":d=l.coordinates.map(s);break;case"LineString":d=o(l.arcs);break;case"MultiLineString":d=l.arcs.map(o);break;case"Polygon":d=c(l.arcs);break;case"MultiPolygon":d=l.arcs.map(c);break;default:return null}return{type:f,coordinates:d}}return u(e)}function MA(n,e){var t={},r={},i={},s=[],o=-1;e.forEach(function(u,l){var f=n.arcs[u<0?~u:u],d;f.length<3&&!f[1][0]&&!f[1][1]&&(d=e[++o],e[o]=u,e[l]=d)}),e.forEach(function(u){var l=a(u),f=l[0],d=l[1],h,p;if(h=i[f])if(delete i[h.end],h.push(u),h.end=d,p=r[d]){delete r[p.start];var m=p===h?h:h.concat(p);r[m.start=h.start]=i[m.end=p.end]=m}else r[h.start]=i[h.end]=h;else if(h=r[d])if(delete r[h.start],h.unshift(u),h.start=f,p=i[f]){delete i[p.end];var g=p===h?h:p.concat(h);r[g.start=p.start]=i[g.end=h.end]=g}else r[h.start]=i[h.end]=h;else h=[u],r[h.start=f]=i[h.end=d]=h});function a(u){var l=n.arcs[u<0?~u:u],f=l[0],d;return n.transform?(d=[0,0],l.forEach(function(h){d[0]+=h[0],d[1]+=h[1]})):d=l[l.length-1],u<0?[d,f]:[f,d]}function c(u,l){for(var f in u){var d=u[f];delete l[d.start],delete d.start,delete d.end,d.forEach(function(h){t[h<0?~h:h]=1}),s.push(d)}}return c(i,r),c(r,i),e.forEach(function(u){t[u<0?~u:u]||s.push([u])}),s}function RA(n){return r0(n,OA.apply(this,arguments))}function OA(n,e,t){var r,i,s;if(arguments.length>1)r=NA(n,e,t);else for(i=0,r=new Array(s=n.arcs.length);i<s;++i)r[i]=i;return{type:"MultiLineString",arcs:MA(n,r)}}function NA(n,e,t){var r=[],i=[],s;function o(f){var d=f<0?~f:f;(i[d]||(i[d]=[])).push({i:f,g:s})}function a(f){f.forEach(o)}function c(f){f.forEach(a)}function u(f){f.forEach(c)}function l(f){switch(s=f,f.type){case"GeometryCollection":f.geometries.forEach(l);break;case"LineString":a(f.arcs);break;case"MultiLineString":case"Polygon":c(f.arcs);break;case"MultiPolygon":u(f.arcs);break}}return l(e),i.forEach(t==null?function(f){r.push(f[0].i)}:function(f){t(f[0].g,f[f.length-1].g)&&r.push(f[0].i)}),r}function hr(n,e){return n==null||e==null?NaN:n<e?-1:n>e?1:n>=e?0:NaN}function LA(n,e){return n==null||e==null?NaN:e<n?-1:e>n?1:e>=n?0:NaN}function dr(n){let e,t,r;n.length!==2?(e=hr,t=(a,c)=>hr(n(a),c),r=(a,c)=>n(a)-c):(e=n===hr||n===LA?n:zA,t=n,r=n);function i(a,c,u=0,l=a.length){if(u<l){if(e(c,c)!==0)return l;do{const f=u+l>>>1;t(a[f],c)<0?u=f+1:l=f}while(u<l)}return u}function s(a,c,u=0,l=a.length){if(u<l){if(e(c,c)!==0)return l;do{const f=u+l>>>1;t(a[f],c)<=0?u=f+1:l=f}while(u<l)}return u}function o(a,c,u=0,l=a.length){const f=i(a,c,u,l-1);return f>u&&r(a[f-1],c)>-r(a[f],c)?f-1:f}return{left:i,center:o,right:s}}function zA(){return 0}function i0(n){return n===null?NaN:+n}function*UA(n,e){if(e===void 0)for(let t of n)t!=null&&(t=+t)>=t&&(yield t);else{let t=-1;for(let r of n)(r=e(r,++t,n))!=null&&(r=+r)>=r&&(yield r)}}const s0=dr(hr),Dn=s0.right;s0.left,dr(i0).center;function GA(n,e){let t=0;if(e===void 0)for(let r of n)r!=null&&(r=+r)>=r&&++t;else{let r=-1;for(let i of n)(i=e(i,++r,n))!=null&&(i=+i)>=i&&++t}return t}function HA(n,e){let t=0,r,i=0,s=0;if(e===void 0)for(let o of n)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++t,s+=r*(o-i));else{let o=-1;for(let a of n)(a=e(a,++o,n))!=null&&(a=+a)>=a&&(r=a-i,i+=r/++t,s+=r*(a-i))}if(t>1)return s/(t-1)}function VA(n,e){let t,r;for(const i of n)i!=null&&(t===void 0?i>=i&&(t=r=i):(t>i&&(t=i),r<i&&(r=i)));return[t,r]}class tn extends Map{constructor(e,t=QA){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(const[r,i]of e)this.set(r,i)}get(e){return super.get(o0(this,e))}has(e){return super.has(o0(this,e))}set(e,t){return super.set(_A(this,e),t)}delete(e){return super.delete(jA(this,e))}}function o0({_intern:n,_key:e},t){const r=e(t);return n.has(r)?n.get(r):t}function _A({_intern:n,_key:e},t){const r=e(t);return n.has(r)?n.get(r):(n.set(r,t),t)}function jA({_intern:n,_key:e},t){const r=e(t);return n.has(r)&&(t=n.get(r),n.delete(r)),t}function QA(n){return n!==null&&typeof n=="object"?n.valueOf():n}function Yu(n){return n}function za(n,...e){return a0(n,Yu,Yu,e)}function WA(n,...e){return a0(n,Array.from,Yu,e)}function a0(n,e,t,r){return function i(s,o){if(o>=r.length)return t(s);const a=new tn,c=r[o++];let u=-1;for(const l of s){const f=c(l,++u,s),d=a.get(f);d?d.push(l):a.set(f,[l])}for(const[l,f]of a)a.set(l,i(f,o));return e(a)}(n,0)}function qA(n=hr){if(n===hr)return c0;if(typeof n!="function")throw new TypeError("compare is not a function");return(e,t)=>{const r=n(e,t);return r||r===0?r:(n(t,t)===0)-(n(e,e)===0)}}function c0(n,e){return(n==null||!(n>=n))-(e==null||!(e>=e))||(n<e?-1:n>e?1:0)}const YA=Math.sqrt(50),XA=Math.sqrt(10),ZA=Math.sqrt(2);function Ua(n,e,t){const r=(e-n)/Math.max(0,t),i=Math.floor(Math.log10(r)),s=r/Math.pow(10,i),o=s>=YA?10:s>=XA?5:s>=ZA?2:1;let a,c,u;return i<0?(u=Math.pow(10,-i)/o,a=Math.round(n*u),c=Math.round(e*u),a/u<n&&++a,c/u>e&&--c,u=-u):(u=Math.pow(10,i)*o,a=Math.round(n/u),c=Math.round(e/u),a*u<n&&++a,c*u>e&&--c),c<a&&.5<=t&&t<2?Ua(n,e,t*2):[a,c,u]}function Ga(n,e,t){if(e=+e,n=+n,t=+t,!(t>0))return[];if(n===e)return[n];const r=e<n,[i,s,o]=r?Ua(e,n,t):Ua(n,e,t);if(!(s>=i))return[];const a=s-i+1,c=new Array(a);if(r)if(o<0)for(let u=0;u<a;++u)c[u]=(s-u)/-o;else for(let u=0;u<a;++u)c[u]=(s-u)*o;else if(o<0)for(let u=0;u<a;++u)c[u]=(i+u)/-o;else for(let u=0;u<a;++u)c[u]=(i+u)*o;return c}function Xu(n,e,t){return e=+e,n=+n,t=+t,Ua(n,e,t)[2]}function pr(n,e,t){e=+e,n=+n,t=+t;const r=e<n,i=r?Xu(e,n,t):Xu(n,e,t);return(r?-1:1)*(i<0?1/-i:i)}function Zu(n,e){let t;if(e===void 0)for(const r of n)r!=null&&(t<r||t===void 0&&r>=r)&&(t=r);else{let r=-1;for(let i of n)(i=e(i,++r,n))!=null&&(t<i||t===void 0&&i>=i)&&(t=i)}return t}function Ku(n,e){let t;if(e===void 0)for(const r of n)r!=null&&(t>r||t===void 0&&r>=r)&&(t=r);else{let r=-1;for(let i of n)(i=e(i,++r,n))!=null&&(t>i||t===void 0&&i>=i)&&(t=i)}return t}function u0(n,e,t=0,r=1/0,i){if(e=Math.floor(e),t=Math.floor(Math.max(0,t)),r=Math.floor(Math.min(n.length-1,r)),!(t<=e&&e<=r))return n;for(i=i===void 0?c0:qA(i);r>t;){if(r-t>600){const c=r-t+1,u=e-t+1,l=Math.log(c),f=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*f*(c-f)/c)*(u-c/2<0?-1:1),h=Math.max(t,Math.floor(e-u*f/c+d)),p=Math.min(r,Math.floor(e+(c-u)*f/c+d));u0(n,e,h,p,i)}const s=n[e];let o=t,a=r;for(zs(n,t,e),i(n[r],s)>0&&zs(n,t,r);o<a;){for(zs(n,o,a),++o,--a;i(n[o],s)<0;)++o;for(;i(n[a],s)>0;)--a}i(n[t],s)===0?zs(n,t,a):(++a,zs(n,a,r)),a<=e&&(t=a+1),e<=a&&(r=a-1)}return n}function zs(n,e,t){const r=n[e];n[e]=n[t],n[t]=r}function KA(n,e,t){if(n=Float64Array.from(UA(n,t)),!(!(r=n.length)||isNaN(e=+e))){if(e<=0||r<2)return Ku(n);if(e>=1)return Zu(n);var r,i=(r-1)*e,s=Math.floor(i),o=Zu(u0(n,s).subarray(0,s+1)),a=Ku(n.subarray(s+1));return o+(a-o)*(i-s)}}function l0(n,e,t=i0){if(!(!(r=n.length)||isNaN(e=+e))){if(e<=0||r<2)return+t(n[0],0,n);if(e>=1)return+t(n[r-1],r-1,n);var r,i=(r-1)*e,s=Math.floor(i),o=+t(n[s],s,n),a=+t(n[s+1],s+1,n);return o+(a-o)*(i-s)}}function JA(n,e){let t=0,r=0;if(e===void 0)for(let i of n)i!=null&&(i=+i)>=i&&(++t,r+=i);else{let i=-1;for(let s of n)(s=e(s,++i,n))!=null&&(s=+s)>=s&&(++t,r+=s)}if(t)return r/t}function $A(n,e){return KA(n,.5,e)}function Us(n,e,t){n=+n,e=+e,t=(i=arguments.length)<2?(e=n,n=0,1):i<3?1:+t;for(var r=-1,i=Math.max(0,Math.ceil((e-n)/t))|0,s=new Array(i);++r<i;)s[r]=n+r*t;return s}function Gs(n,e){let t=0;if(e===void 0)for(let r of n)(r=+r)&&(t+=r);else{let r=-1;for(let i of n)(i=+e(i,++r,n))&&(t+=i)}return t}function ew(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function Ha(n,e){if((t=(n=e?n.toExponential(e-1):n.toExponential()).indexOf("e"))<0)return null;var t,r=n.slice(0,t);return[r.length>1?r[0]+r.slice(2):r,+n.slice(t+1)]}function oi(n){return n=Ha(Math.abs(n)),n?n[1]:NaN}function tw(n,e){return function(t,r){for(var i=t.length,s=[],o=0,a=n[0],c=0;i>0&&a>0&&(c+a+1>r&&(a=Math.max(1,r-c)),s.push(t.substring(i-=a,i+a)),!((c+=a+1)>r));)a=n[o=(o+1)%n.length];return s.reverse().join(e)}}function nw(n){return function(e){return e.replace(/[0-9]/g,function(t){return n[+t]})}}var rw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ai(n){if(!(e=rw.exec(n)))throw new Error("invalid format: "+n);var e;return new Ju({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}ai.prototype=Ju.prototype;function Ju(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}Ju.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function iw(n){e:for(var e=n.length,t=1,r=-1,i;t<e;++t)switch(n[t]){case".":r=i=t;break;case"0":r===0&&(r=t),i=t;break;default:if(!+n[t])break e;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var f0;function sw(n,e){var t=Ha(n,e);if(!t)return n+"";var r=t[0],i=t[1],s=i-(f0=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return s===o?r:s>o?r+new Array(s-o+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+Ha(n,Math.max(0,e+s-1))[0]}function h0(n,e){var t=Ha(n,e);if(!t)return n+"";var r=t[0],i=t[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const d0={"%":(n,e)=>(n*100).toFixed(e),b:n=>Math.round(n).toString(2),c:n=>n+"",d:ew,e:(n,e)=>n.toExponential(e),f:(n,e)=>n.toFixed(e),g:(n,e)=>n.toPrecision(e),o:n=>Math.round(n).toString(8),p:(n,e)=>h0(n*100,e),r:h0,s:sw,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function p0(n){return n}var m0=Array.prototype.map,g0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ow(n){var e=n.grouping===void 0||n.thousands===void 0?p0:tw(m0.call(n.grouping,Number),n.thousands+""),t=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",s=n.numerals===void 0?p0:nw(m0.call(n.numerals,String)),o=n.percent===void 0?"%":n.percent+"",a=n.minus===void 0?"−":n.minus+"",c=n.nan===void 0?"NaN":n.nan+"";function u(f){f=ai(f);var d=f.fill,h=f.align,p=f.sign,m=f.symbol,g=f.zero,y=f.width,x=f.comma,A=f.precision,w=f.trim,S=f.type;S==="n"?(x=!0,S="g"):d0[S]||(A===void 0&&(A=12),w=!0,S="g"),(g||d==="0"&&h==="=")&&(g=!0,d="0",h="=");var C=m==="$"?t:m==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",v=m==="$"?r:/[%p]/.test(S)?o:"",T=d0[S],P=/[defgprs%]/.test(S);A=A===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,A)):Math.max(0,Math.min(20,A));function F(k){var L=C,U=v,j,K,_;if(S==="c")U=T(k)+U,k="";else{k=+k;var te=k<0||1/k<0;if(k=isNaN(k)?c:T(Math.abs(k),A),w&&(k=iw(k)),te&&+k==0&&p!=="+"&&(te=!1),L=(te?p==="("?p:a:p==="-"||p==="("?"":p)+L,U=(S==="s"?g0[8+f0/3]:"")+U+(te&&p==="("?")":""),P){for(j=-1,K=k.length;++j<K;)if(_=k.charCodeAt(j),48>_||_>57){U=(_===46?i+k.slice(j+1):k.slice(j))+U,k=k.slice(0,j);break}}}x&&!g&&(k=e(k,1/0));var ce=L.length+k.length+U.length,ie=ce<y?new Array(y-ce+1).join(d):"";switch(x&&g&&(k=e(ie+k,ie.length?y-U.length:1/0),ie=""),h){case"<":k=L+k+U+ie;break;case"=":k=L+ie+k+U;break;case"^":k=ie.slice(0,ce=ie.length>>1)+L+k+U+ie.slice(ce);break;default:k=ie+L+k+U;break}return s(k)}return F.toString=function(){return f+""},F}function l(f,d){var h=u((f=ai(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(oi(d)/3)))*3,m=Math.pow(10,-p),g=g0[8+p/3];return function(y){return h(m*y)+g}}return{format:u,formatPrefix:l}}var Va,Le,y0;aw({thousands:",",grouping:[3],currency:["$",""]});function aw(n){return Va=ow(n),Le=Va.format,y0=Va.formatPrefix,Va}function cw(n){return Math.max(0,-oi(Math.abs(n)))}function uw(n,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(oi(e)/3)))*3-oi(Math.abs(n)))}function lw(n,e){return n=Math.abs(n),e=Math.abs(e)-n,Math.max(0,oi(e)-oi(n))+1}const $u=new Date,el=new Date;function Ie(n,e,t,r){function i(s){return n(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(n(s=new Date(+s)),s),i.ceil=s=>(n(s=new Date(s-1)),e(s,1),n(s),s),i.round=s=>{const o=i(s),a=i.ceil(s);return s-o<a-s?o:a},i.offset=(s,o)=>(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,a)=>{const c=[];if(s=i.ceil(s),a=a==null?1:Math.floor(a),!(s<o)||!(a>0))return c;let u;do c.push(u=new Date(+s)),e(s,a),n(s);while(u<s&&s<o);return c},i.filter=s=>Ie(o=>{if(o>=o)for(;n(o),!s(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;e(o,-1),!s(o););else for(;--a>=0;)for(;e(o,1),!s(o););}),t&&(i.count=(s,o)=>($u.setTime(+s),el.setTime(+o),n($u),n(el),Math.floor(t($u,el))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?o=>r(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const ci=Ie(()=>{},(n,e)=>{n.setTime(+n+e)},(n,e)=>e-n);ci.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?Ie(e=>{e.setTime(Math.floor(e/n)*n)},(e,t)=>{e.setTime(+e+t*n)},(e,t)=>(t-e)/n):ci),ci.range;const nn=1e3,dt=nn*60,rn=dt*60,sn=rn*24,tl=sn*7,b0=sn*30,nl=sn*365,on=Ie(n=>{n.setTime(n-n.getMilliseconds())},(n,e)=>{n.setTime(+n+e*nn)},(n,e)=>(e-n)/nn,n=>n.getUTCSeconds());on.range;const _a=Ie(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*nn)},(n,e)=>{n.setTime(+n+e*dt)},(n,e)=>(e-n)/dt,n=>n.getMinutes());_a.range;const ja=Ie(n=>{n.setUTCSeconds(0,0)},(n,e)=>{n.setTime(+n+e*dt)},(n,e)=>(e-n)/dt,n=>n.getUTCMinutes());ja.range;const Qa=Ie(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*nn-n.getMinutes()*dt)},(n,e)=>{n.setTime(+n+e*rn)},(n,e)=>(e-n)/rn,n=>n.getHours());Qa.range;const Wa=Ie(n=>{n.setUTCMinutes(0,0,0)},(n,e)=>{n.setTime(+n+e*rn)},(n,e)=>(e-n)/rn,n=>n.getUTCHours());Wa.range;const In=Ie(n=>n.setHours(0,0,0,0),(n,e)=>n.setDate(n.getDate()+e),(n,e)=>(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*dt)/sn,n=>n.getDate()-1);In.range;const mr=Ie(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/sn,n=>n.getUTCDate()-1);mr.range;const x0=Ie(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/sn,n=>Math.floor(n/sn));x0.range;function gr(n){return Ie(e=>{e.setDate(e.getDate()-(e.getDay()+7-n)%7),e.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*dt)/tl)}const Hs=gr(0),qa=gr(1),fw=gr(2),hw=gr(3),ui=gr(4),dw=gr(5),pw=gr(6);Hs.range,qa.range,fw.range,hw.range,ui.range,dw.range,pw.range;function yr(n){return Ie(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-n)%7),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/tl)}const Vs=yr(0),Ya=yr(1),mw=yr(2),gw=yr(3),li=yr(4),yw=yr(5),bw=yr(6);Vs.range,Ya.range,mw.range,gw.range,li.range,yw.range,bw.range;const fi=Ie(n=>{n.setDate(1),n.setHours(0,0,0,0)},(n,e)=>{n.setMonth(n.getMonth()+e)},(n,e)=>e.getMonth()-n.getMonth()+(e.getFullYear()-n.getFullYear())*12,n=>n.getMonth());fi.range;const hi=Ie(n=>{n.setUTCDate(1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCMonth(n.getUTCMonth()+e)},(n,e)=>e.getUTCMonth()-n.getUTCMonth()+(e.getUTCFullYear()-n.getUTCFullYear())*12,n=>n.getUTCMonth());hi.range;const Lt=Ie(n=>{n.setMonth(0,1),n.setHours(0,0,0,0)},(n,e)=>{n.setFullYear(n.getFullYear()+e)},(n,e)=>e.getFullYear()-n.getFullYear(),n=>n.getFullYear());Lt.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:Ie(e=>{e.setFullYear(Math.floor(e.getFullYear()/n)*n),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t*n)}),Lt.range;const zt=Ie(n=>{n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCFullYear(n.getUTCFullYear()+e)},(n,e)=>e.getUTCFullYear()-n.getUTCFullYear(),n=>n.getUTCFullYear());zt.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:Ie(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/n)*n),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t*n)}),zt.range;function A0(n,e,t,r,i,s){const o=[[on,1,nn],[on,5,5*nn],[on,15,15*nn],[on,30,30*nn],[s,1,dt],[s,5,5*dt],[s,15,15*dt],[s,30,30*dt],[i,1,rn],[i,3,3*rn],[i,6,6*rn],[i,12,12*rn],[r,1,sn],[r,2,2*sn],[t,1,tl],[e,1,b0],[e,3,3*b0],[n,1,nl]];function a(u,l,f){const d=l<u;d&&([u,l]=[l,u]);const h=f&&typeof f.range=="function"?f:c(u,l,f),p=h?h.range(u,+l+1):[];return d?p.reverse():p}function c(u,l,f){const d=Math.abs(l-u)/f,h=dr(([,,g])=>g).right(o,d);if(h===o.length)return n.every(pr(u/nl,l/nl,f));if(h===0)return ci.every(Math.max(pr(u,l,f),1));const[p,m]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return p.every(m)}return[a,c]}const[xw,Aw]=A0(zt,hi,Vs,x0,Wa,ja),[ww,vw]=A0(Lt,fi,Hs,In,Qa,_a),_s="year",js="quarter",Qs="month",Ws="week",qs="date",Xa="day",rl="dayofyear",Ys="hours",Xs="minutes",Zs="seconds",Za="milliseconds";[_s,js,Qs,Ws,qs,Xa,rl,Ys,Xs,Zs,Za].reduce((n,e,t)=>(n[e]=1+t,n),{});const Sw={[_s]:Lt,[js]:fi.every(3),[Qs]:fi,[Ws]:Hs,[qs]:In,[Xa]:In,[rl]:In,[Ys]:Qa,[Xs]:_a,[Zs]:on,[Za]:ci},Ew={[_s]:zt,[js]:hi.every(3),[Qs]:hi,[Ws]:Vs,[qs]:mr,[Xa]:mr,[rl]:mr,[Ys]:Wa,[Xs]:ja,[Zs]:on,[Za]:ci};function Cw(n){return Sw[n]}function Dw(n){return Ew[n]}function il(n){if(0<=n.y&&n.y<100){var e=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return e.setFullYear(n.y),e}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function sl(n){if(0<=n.y&&n.y<100){var e=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return e.setUTCFullYear(n.y),e}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function Ks(n,e,t){return{y:n,m:e,d:t,H:0,M:0,S:0,L:0}}function w0(n){var e=n.dateTime,t=n.date,r=n.time,i=n.periods,s=n.days,o=n.shortDays,a=n.months,c=n.shortMonths,u=Js(i),l=$s(i),f=Js(s),d=$s(s),h=Js(o),p=$s(o),m=Js(a),g=$s(a),y=Js(c),x=$s(c),A={a:te,A:ce,b:ie,B:Ne,c:null,d:I0,e:I0,f:Xw,g:sv,G:av,H:Ww,I:qw,j:Yw,L:T0,m:Zw,M:Kw,p:ve,q:Kt,Q:R0,s:O0,S:Jw,u:$w,U:ev,V:tv,w:nv,W:rv,x:null,X:null,y:iv,Y:ov,Z:cv,"%":M0},w={a:Jt,A:rr,b:Ds,B:De,c:null,d:k0,e:k0,f:hv,g:vv,G:Ev,H:uv,I:lv,j:fv,L:F0,m:dv,M:pv,p:St,q:ut,Q:R0,s:O0,S:mv,u:gv,U:yv,V:bv,w:xv,W:Av,x:null,X:null,y:wv,Y:Sv,Z:Cv,"%":M0},S={a:F,A:k,b:L,B:U,c:j,d:C0,e:C0,f:Vw,g:E0,G:S0,H:D0,I:D0,j:zw,L:Hw,m:Lw,M:Uw,p:P,q:Nw,Q:jw,s:Qw,S:Gw,u:Fw,U:Pw,V:Mw,w:kw,W:Rw,x:K,X:_,y:E0,Y:S0,Z:Ow,"%":_w};A.x=C(t,A),A.X=C(r,A),A.c=C(e,A),w.x=C(t,w),w.X=C(r,w),w.c=C(e,w);function C(H,J){return function(ne){var M=[],Ye=-1,he=0,tt=H.length,Xe,xn,Ea;for(ne instanceof Date||(ne=new Date(+ne));++Ye<tt;)H.charCodeAt(Ye)===37&&(M.push(H.slice(he,Ye)),(xn=v0[Xe=H.charAt(++Ye)])!=null?Xe=H.charAt(++Ye):xn=Xe==="e"?" ":"0",(Ea=J[Xe])&&(Xe=Ea(ne,xn)),M.push(Xe),he=Ye+1);return M.push(H.slice(he,Ye)),M.join("")}}function v(H,J){return function(ne){var M=Ks(1900,void 0,1),Ye=T(M,H,ne+="",0),he,tt;if(Ye!=ne.length)return null;if("Q"in M)return new Date(M.Q);if("s"in M)return new Date(M.s*1e3+("L"in M?M.L:0));if(J&&!("Z"in M)&&(M.Z=0),"p"in M&&(M.H=M.H%12+M.p*12),M.m===void 0&&(M.m="q"in M?M.q:0),"V"in M){if(M.V<1||M.V>53)return null;"w"in M||(M.w=1),"Z"in M?(he=sl(Ks(M.y,0,1)),tt=he.getUTCDay(),he=tt>4||tt===0?Ya.ceil(he):Ya(he),he=mr.offset(he,(M.V-1)*7),M.y=he.getUTCFullYear(),M.m=he.getUTCMonth(),M.d=he.getUTCDate()+(M.w+6)%7):(he=il(Ks(M.y,0,1)),tt=he.getDay(),he=tt>4||tt===0?qa.ceil(he):qa(he),he=In.offset(he,(M.V-1)*7),M.y=he.getFullYear(),M.m=he.getMonth(),M.d=he.getDate()+(M.w+6)%7)}else("W"in M||"U"in M)&&("w"in M||(M.w="u"in M?M.u%7:"W"in M?1:0),tt="Z"in M?sl(Ks(M.y,0,1)).getUTCDay():il(Ks(M.y,0,1)).getDay(),M.m=0,M.d="W"in M?(M.w+6)%7+M.W*7-(tt+5)%7:M.w+M.U*7-(tt+6)%7);return"Z"in M?(M.H+=M.Z/100|0,M.M+=M.Z%100,sl(M)):il(M)}}function T(H,J,ne,M){for(var Ye=0,he=J.length,tt=ne.length,Xe,xn;Ye<he;){if(M>=tt)return-1;if(Xe=J.charCodeAt(Ye++),Xe===37){if(Xe=J.charAt(Ye++),xn=S[Xe in v0?J.charAt(Ye++):Xe],!xn||(M=xn(H,ne,M))<0)return-1}else if(Xe!=ne.charCodeAt(M++))return-1}return M}function P(H,J,ne){var M=u.exec(J.slice(ne));return M?(H.p=l.get(M[0].toLowerCase()),ne+M[0].length):-1}function F(H,J,ne){var M=h.exec(J.slice(ne));return M?(H.w=p.get(M[0].toLowerCase()),ne+M[0].length):-1}function k(H,J,ne){var M=f.exec(J.slice(ne));return M?(H.w=d.get(M[0].toLowerCase()),ne+M[0].length):-1}function L(H,J,ne){var M=y.exec(J.slice(ne));return M?(H.m=x.get(M[0].toLowerCase()),ne+M[0].length):-1}function U(H,J,ne){var M=m.exec(J.slice(ne));return M?(H.m=g.get(M[0].toLowerCase()),ne+M[0].length):-1}function j(H,J,ne){return T(H,e,J,ne)}function K(H,J,ne){return T(H,t,J,ne)}function _(H,J,ne){return T(H,r,J,ne)}function te(H){return o[H.getDay()]}function ce(H){return s[H.getDay()]}function ie(H){return c[H.getMonth()]}function Ne(H){return a[H.getMonth()]}function ve(H){return i[+(H.getHours()>=12)]}function Kt(H){return 1+~~(H.getMonth()/3)}function Jt(H){return o[H.getUTCDay()]}function rr(H){return s[H.getUTCDay()]}function Ds(H){return c[H.getUTCMonth()]}function De(H){return a[H.getUTCMonth()]}function St(H){return i[+(H.getUTCHours()>=12)]}function ut(H){return 1+~~(H.getUTCMonth()/3)}return{format:function(H){var J=C(H+="",A);return J.toString=function(){return H},J},parse:function(H){var J=v(H+="",!1);return J.toString=function(){return H},J},utcFormat:function(H){var J=C(H+="",w);return J.toString=function(){return H},J},utcParse:function(H){var J=v(H+="",!0);return J.toString=function(){return H},J}}}var v0={"-":"",_:" ",0:"0"},Fe=/^\s*\d+/,Iw=/^%/,Tw=/[\\^$*+?|[\]().{}]/g;function oe(n,e,t){var r=n<0?"-":"",i=(r?-n:n)+"",s=i.length;return r+(s<t?new Array(t-s+1).join(e)+i:i)}function Bw(n){return n.replace(Tw,"\\$&")}function Js(n){return new RegExp("^(?:"+n.map(Bw).join("|")+")","i")}function $s(n){return new Map(n.map((e,t)=>[e.toLowerCase(),t]))}function kw(n,e,t){var r=Fe.exec(e.slice(t,t+1));return r?(n.w=+r[0],t+r[0].length):-1}function Fw(n,e,t){var r=Fe.exec(e.slice(t,t+1));return r?(n.u=+r[0],t+r[0].length):-1}function Pw(n,e,t){var r=Fe.exec(e.slice(t,t+2));return r?(n.U=+r[0],t+r[0].length):-1}function Mw(n,e,t){var r=Fe.exec(e.slice(t,t+2));return r?(n.V=+r[0],t+r[0].length):-1}function Rw(n,e,t){var r=Fe.exec(e.slice(t,t+2));return r?(n.W=+r[0],t+r[0].length):-1}function S0(n,e,t){var r=Fe.exec(e.slice(t,t+4));return r?(n.y=+r[0],t+r[0].length):-1}function E0(n,e,t){var r=Fe.exec(e.slice(t,t+2));return r?(n.y=+r[0]+(+r[0]>68?1900:2e3),t+r[0].length):-1}function Ow(n,e,t){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(t,t+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),t+r[0].length):-1}function Nw(n,e,t){var r=Fe.exec(e.slice(t,t+1));return r?(n.q=r[0]*3-3,t+r[0].length):-1}function Lw(n,e,t){var r=Fe.exec(e.slice(t,t+2));return r?(n.m=r[0]-1,t+r[0].length):-1}function C0(n,e,t){var r=Fe.exec(e.slice(t,t+2));return r?(n.d=+r[0],t+r[0].length):-1}function zw(n,e,t){var r=Fe.exec(e.slice(t,t+3));return r?(n.m=0,n.d=+r[0],t+r[0].length):-1}function D0(n,e,t){var r=Fe.exec(e.slice(t,t+2));return r?(n.H=+r[0],t+r[0].length):-1}function Uw(n,e,t){var r=Fe.exec(e.slice(t,t+2));return r?(n.M=+r[0],t+r[0].length):-1}function Gw(n,e,t){var r=Fe.exec(e.slice(t,t+2));return r?(n.S=+r[0],t+r[0].length):-1}function Hw(n,e,t){var r=Fe.exec(e.slice(t,t+3));return r?(n.L=+r[0],t+r[0].length):-1}function Vw(n,e,t){var r=Fe.exec(e.slice(t,t+6));return r?(n.L=Math.floor(r[0]/1e3),t+r[0].length):-1}function _w(n,e,t){var r=Iw.exec(e.slice(t,t+1));return r?t+r[0].length:-1}function jw(n,e,t){var r=Fe.exec(e.slice(t));return r?(n.Q=+r[0],t+r[0].length):-1}function Qw(n,e,t){var r=Fe.exec(e.slice(t));return r?(n.s=+r[0],t+r[0].length):-1}function I0(n,e){return oe(n.getDate(),e,2)}function Ww(n,e){return oe(n.getHours(),e,2)}function qw(n,e){return oe(n.getHours()%12||12,e,2)}function Yw(n,e){return oe(1+In.count(Lt(n),n),e,3)}function T0(n,e){return oe(n.getMilliseconds(),e,3)}function Xw(n,e){return T0(n,e)+"000"}function Zw(n,e){return oe(n.getMonth()+1,e,2)}function Kw(n,e){return oe(n.getMinutes(),e,2)}function Jw(n,e){return oe(n.getSeconds(),e,2)}function $w(n){var e=n.getDay();return e===0?7:e}function ev(n,e){return oe(Hs.count(Lt(n)-1,n),e,2)}function B0(n){var e=n.getDay();return e>=4||e===0?ui(n):ui.ceil(n)}function tv(n,e){return n=B0(n),oe(ui.count(Lt(n),n)+(Lt(n).getDay()===4),e,2)}function nv(n){return n.getDay()}function rv(n,e){return oe(qa.count(Lt(n)-1,n),e,2)}function iv(n,e){return oe(n.getFullYear()%100,e,2)}function sv(n,e){return n=B0(n),oe(n.getFullYear()%100,e,2)}function ov(n,e){return oe(n.getFullYear()%1e4,e,4)}function av(n,e){var t=n.getDay();return n=t>=4||t===0?ui(n):ui.ceil(n),oe(n.getFullYear()%1e4,e,4)}function cv(n){var e=n.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+oe(e/60|0,"0",2)+oe(e%60,"0",2)}function k0(n,e){return oe(n.getUTCDate(),e,2)}function uv(n,e){return oe(n.getUTCHours(),e,2)}function lv(n,e){return oe(n.getUTCHours()%12||12,e,2)}function fv(n,e){return oe(1+mr.count(zt(n),n),e,3)}function F0(n,e){return oe(n.getUTCMilliseconds(),e,3)}function hv(n,e){return F0(n,e)+"000"}function dv(n,e){return oe(n.getUTCMonth()+1,e,2)}function pv(n,e){return oe(n.getUTCMinutes(),e,2)}function mv(n,e){return oe(n.getUTCSeconds(),e,2)}function gv(n){var e=n.getUTCDay();return e===0?7:e}function yv(n,e){return oe(Vs.count(zt(n)-1,n),e,2)}function P0(n){var e=n.getUTCDay();return e>=4||e===0?li(n):li.ceil(n)}function bv(n,e){return n=P0(n),oe(li.count(zt(n),n)+(zt(n).getUTCDay()===4),e,2)}function xv(n){return n.getUTCDay()}function Av(n,e){return oe(Ya.count(zt(n)-1,n),e,2)}function wv(n,e){return oe(n.getUTCFullYear()%100,e,2)}function vv(n,e){return n=P0(n),oe(n.getUTCFullYear()%100,e,2)}function Sv(n,e){return oe(n.getUTCFullYear()%1e4,e,4)}function Ev(n,e){var t=n.getUTCDay();return n=t>=4||t===0?li(n):li.ceil(n),oe(n.getUTCFullYear()%1e4,e,4)}function Cv(){return"+0000"}function M0(){return"%"}function R0(n){return+n}function O0(n){return Math.floor(+n/1e3)}var di,ol,N0,al,L0;Dv({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Dv(n){return di=w0(n),ol=di.format,N0=di.parse,al=di.utcFormat,L0=di.utcParse,di}function Ka(n){const e={};return t=>e[t]||(e[t]=n(t))}function z0(n,e,t){t=t||{},Ge(t)||Ct(`Invalid time multi-format specifier: ${t}`);const r=e(Zs),i=e(Xs),s=e(Ys),o=e(qs),a=e(Ws),c=e(Qs),u=e(js),l=e(_s),f=n(t[Za]||".%L"),d=n(t[Zs]||":%S"),h=n(t[Xs]||"%I:%M"),p=n(t[Ys]||"%I %p"),m=n(t[qs]||t[Xa]||"%a %d"),g=n(t[Ws]||"%b %d"),y=n(t[Qs]||"%B"),x=n(t[js]||"%B"),A=n(t[_s]||"%Y");return w=>(r(w)<w?f:i(w)<w?d:s(w)<w?h:o(w)<w?p:c(w)<w?a(w)<w?m:g:l(w)<w?u(w)<w?y:x:A)(w)}function U0(n){const e=Ka(n.format),t=Ka(n.utcFormat);return{timeFormat:r=>me(r)?e(r):z0(e,Cw,r),utcFormat:r=>me(r)?t(r):z0(t,Dw,r),timeParse:Ka(n.parse),utcParse:Ka(n.utcParse)}}let cl;Iv();function Iv(){return cl=U0({format:ol,parse:N0,utcFormat:al,utcParse:L0})}function Tv(n){return U0(w0(n))}function Bv(n){return arguments.length?cl=Tv(n):cl}const kv=n=>n!=null&&n===n,Fv=n=>n==="true"||n==="false"||n===!0||n===!1,Pv=n=>!Number.isNaN(Date.parse(n)),G0=n=>!Number.isNaN(+n)&&!(n instanceof Date),Mv=n=>G0(n)&&Number.isInteger(+n),H0={boolean:eA,integer:Fa,number:Fa,date:nA,string:rA,unknown:ka},Ja=[Fv,Mv,G0,Pv],Rv=["boolean","integer","number","date"];function Ov(n,e){if(!n||!n.length)return"unknown";const t=n.length,r=Ja.length,i=Ja.map((s,o)=>o+1);for(let s=0,o=0,a,c;s<t;++s)for(c=e?n[s][e]:n[s],a=0;a<r;++a)if(i[a]&&kv(c)&&!Ja[a](c)&&(i[a]=0,++o,o===Ja.length))return"string";return Rv[i.reduce((s,o)=>s===0?o:s,0)-1]}function Nv(n,e){return e.reduce((t,r)=>(t[r]=Ov(n,r),t),{})}function V0(n){const e=function(t,r){const i={delimiter:n};return ul(t,r?Zx(r,i):i)};return e.responseType="text",e}function ul(n,e){return e.header&&(n=e.header.map(Lu).join(e.delimiter)+`
|
|
24
|
-
`+n),
|
|
25
|
-
* @license
|
|
26
|
-
* Copyright 2017 Google LLC
|
|
27
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
|
-
*/const Hv={ATTRIBUTE:1},Vv=n=>(...e)=>({_$litDirective$:n,values:e});let _v=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};/**
|
|
29
|
-
* @license
|
|
30
|
-
* Copyright 2018 Google LLC
|
|
31
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/const j0="important",jv=" !"+j0,Qv=Vv(class extends _v{constructor(n){var e;if(super(n),n.type!==Hv.ATTRIBUTE||n.name!=="style"||((e=n.strings)==null?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((e,t)=>{const r=n[t];return r==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(n,[e]){const{style:t}=n.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const r of this.ft)e[r]==null&&(this.ft.delete(r),r.includes("-")?t.removeProperty(r):t[r]=null);for(const r in e){const i=e[r];if(i!=null){this.ft.add(r);const s=typeof i=="string"&&i.endsWith(jv);r.includes("-")||s?t.setProperty(r,s?i.slice(0,-11):i,s?j0:""):t[r]=i}}return ur}}),Wv="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cstyle%3e.spinner_ajPY{transform-origin:center;animation:spinner_AtaB%20.75s%20infinite%20linear}@keyframes%20spinner_AtaB{100%25{transform:rotate(360deg)}}%3c/style%3e%3cpath%20d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z'%20opacity='.25'/%3e%3cpath%20d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z'%20class='spinner_ajPY'/%3e%3c/svg%3e",qv=`
|
|
19
|
+
*/const Gr=globalThis;let El=class extends Vi{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Vo(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Or}};El._$litElement$=!0,El.finalized=!0,(wE=Gr.litElementHydrateSupport)==null||wE.call(Gr,{LitElement:El});const Wf=Gr.litElementPolyfillSupport;Wf==null||Wf({LitElement:El}),(Gr.litElementVersions??(Gr.litElementVersions=[])).push("4.2.2");var Bg={},Xf={},Zf=34,Jo=10,$f=13;function vg(n){return new Function("d","return {"+n.map(function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'}).join(",")+"}")}function Ax(n,t){var e=vg(n);return function(r,i){return t(e(r),i,n)}}function Qg(n){var t=Object.create(null),e=[];return n.forEach(function(r){for(var i in r)i in t||e.push(t[i]=i)}),e}function Ct(n,t){var e=n+"",r=e.length;return r<t?new Array(t-r+1).join(0)+e:e}function hx(n){return n<0?"-"+Ct(-n,6):n>9999?"+"+Ct(n,6):Ct(n,4)}function dx(n){var t=n.getUTCHours(),e=n.getUTCMinutes(),r=n.getUTCSeconds(),i=n.getUTCMilliseconds();return isNaN(n)?"Invalid Date":hx(n.getUTCFullYear())+"-"+Ct(n.getUTCMonth()+1,2)+"-"+Ct(n.getUTCDate(),2)+(i?"T"+Ct(t,2)+":"+Ct(e,2)+":"+Ct(r,2)+"."+Ct(i,3)+"Z":r?"T"+Ct(t,2)+":"+Ct(e,2)+":"+Ct(r,2)+"Z":e||t?"T"+Ct(t,2)+":"+Ct(e,2)+"Z":"")}function Sg(n){var t=new RegExp('["'+n+`
|
|
20
|
+
\r]`),e=n.charCodeAt(0);function r(f,h){var A,d,g=i(f,function(p,C){if(A)return A(p,C-1);d=p,A=h?Ax(p,h):vg(p)});return g.columns=d||[],g}function i(f,h){var A=[],d=f.length,g=0,p=0,C,w=d<=0,b=!1;f.charCodeAt(d-1)===Jo&&--d,f.charCodeAt(d-1)===$f&&--d;function y(){if(w)return Xf;if(b)return b=!1,Bg;var B,E=g,Q;if(f.charCodeAt(E)===Zf){for(;g++<d&&f.charCodeAt(g)!==Zf||f.charCodeAt(++g)===Zf;);return(B=g)>=d?w=!0:(Q=f.charCodeAt(g++))===Jo?b=!0:Q===$f&&(b=!0,f.charCodeAt(g)===Jo&&++g),f.slice(E+1,B-1).replace(/""/g,'"')}for(;g<d;){if((Q=f.charCodeAt(B=g++))===Jo)b=!0;else if(Q===$f)b=!0,f.charCodeAt(g)===Jo&&++g;else if(Q!==e)continue;return f.slice(E,B)}return w=!0,f.slice(E,d)}for(;(C=y())!==Xf;){for(var x=[];C!==Bg&&C!==Xf;)x.push(C),C=y();h&&(x=h(x,p++))==null||A.push(x)}return A}function s(f,h){return f.map(function(A){return h.map(function(d){return u(A[d])}).join(n)})}function o(f,h){return h==null&&(h=Qg(f)),[h.map(u).join(n)].concat(s(f,h)).join(`
|
|
21
|
+
`)}function a(f,h){return h==null&&(h=Qg(f)),s(f,h).join(`
|
|
22
|
+
`)}function l(f){return f.map(c).join(`
|
|
23
|
+
`)}function c(f){return f.map(u).join(n)}function u(f){return f==null?"":f instanceof Date?dx(f):t.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:r,parseRows:i,format:o,formatBody:a,formatRows:l,formatRow:c,formatValue:u}}var gx=Sg(" "),px=gx.parseRows;function mx(n){return n}function Cx(n){if(n==null)return mx;var t,e,r=n.scale[0],i=n.scale[1],s=n.translate[0],o=n.translate[1];return function(a,l){l||(t=e=0);var c=2,u=a.length,f=new Array(u);for(f[0]=(t+=a[0])*r+s,f[1]=(e+=a[1])*i+o;c<u;)f[c]=a[c],++c;return f}}function yx(n,t){for(var e,r=n.length,i=r-t;i<--r;)e=n[i],n[i++]=n[r],n[r]=e}function wx(n,t){return typeof t=="string"&&(t=n.objects[t]),t.type==="GeometryCollection"?{type:"FeatureCollection",features:t.geometries.map(function(e){return Dg(n,e)})}:Dg(n,t)}function Dg(n,t){var e=t.id,r=t.bbox,i=t.properties==null?{}:t.properties,s=kg(n,t);return e==null&&r==null?{type:"Feature",properties:i,geometry:s}:r==null?{type:"Feature",id:e,properties:i,geometry:s}:{type:"Feature",id:e,bbox:r,properties:i,geometry:s}}function kg(n,t){var e=Cx(n.transform),r=n.arcs;function i(u,f){f.length&&f.pop();for(var h=r[u<0?~u:u],A=0,d=h.length;A<d;++A)f.push(e(h[A],A));u<0&&yx(f,d)}function s(u){return e(u)}function o(u){for(var f=[],h=0,A=u.length;h<A;++h)i(u[h],f);return f.length<2&&f.push(f[0]),f}function a(u){for(var f=o(u);f.length<4;)f.push(f[0]);return f}function l(u){return u.map(a)}function c(u){var f=u.type,h;switch(f){case"GeometryCollection":return{type:f,geometries:u.geometries.map(c)};case"Point":h=s(u.coordinates);break;case"MultiPoint":h=u.coordinates.map(s);break;case"LineString":h=o(u.arcs);break;case"MultiLineString":h=u.arcs.map(o);break;case"Polygon":h=l(u.arcs);break;case"MultiPolygon":h=u.arcs.map(l);break;default:return null}return{type:f,coordinates:h}}return c(t)}function Ix(n,t){var e={},r={},i={},s=[],o=-1;t.forEach(function(c,u){var f=n.arcs[c<0?~c:c],h;f.length<3&&!f[1][0]&&!f[1][1]&&(h=t[++o],t[o]=c,t[u]=h)}),t.forEach(function(c){var u=a(c),f=u[0],h=u[1],A,d;if(A=i[f])if(delete i[A.end],A.push(c),A.end=h,d=r[h]){delete r[d.start];var g=d===A?A:A.concat(d);r[g.start=A.start]=i[g.end=d.end]=g}else r[A.start]=i[A.end]=A;else if(A=r[h])if(delete r[A.start],A.unshift(c),A.start=f,d=i[f]){delete i[d.end];var p=d===A?A:d.concat(A);r[p.start=d.start]=i[p.end=A.end]=p}else r[A.start]=i[A.end]=A;else A=[c],r[A.start=f]=i[A.end=h]=A});function a(c){var u=n.arcs[c<0?~c:c],f=u[0],h;return n.transform?(h=[0,0],u.forEach(function(A){h[0]+=A[0],h[1]+=A[1]})):h=u[u.length-1],c<0?[h,f]:[f,h]}function l(c,u){for(var f in c){var h=c[f];delete u[h.start],delete h.start,delete h.end,h.forEach(function(A){e[A<0?~A:A]=1}),s.push(h)}}return l(i,r),l(r,i),t.forEach(function(c){e[c<0?~c:c]||s.push([c])}),s}function Ex(n){return kg(n,bx.apply(this,arguments))}function bx(n,t,e){var r,i,s;if(arguments.length>1)r=xx(n,t,e);else for(i=0,r=new Array(s=n.arcs.length);i<s;++i)r[i]=i;return{type:"MultiLineString",arcs:Ix(n,r)}}function xx(n,t,e){var r=[],i=[],s;function o(f){var h=f<0?~f:f;(i[h]||(i[h]=[])).push({i:f,g:s})}function a(f){f.forEach(o)}function l(f){f.forEach(a)}function c(f){f.forEach(l)}function u(f){switch(s=f,f.type){case"GeometryCollection":f.geometries.forEach(u);break;case"LineString":a(f.arcs);break;case"MultiLineString":case"Polygon":l(f.arcs);break;case"MultiPolygon":c(f.arcs);break}}return u(t),i.forEach(e==null?function(f){r.push(f[0].i)}:function(f){e(f[0].g,f[f.length-1].g)&&r.push(f[0].i)}),r}function zr(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function Bx(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function Hr(n){let t,e,r;n.length!==2?(t=zr,e=(a,l)=>zr(n(a),l),r=(a,l)=>n(a)-l):(t=n===zr||n===Bx?n:vx,e=n,r=n);function i(a,l,c=0,u=a.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;e(a[f],l)<0?c=f+1:u=f}while(c<u)}return c}function s(a,l,c=0,u=a.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;e(a[f],l)<=0?c=f+1:u=f}while(c<u)}return c}function o(a,l,c=0,u=a.length){const f=i(a,l,c,u-1);return f>c&&r(a[f-1],l)>-r(a[f],l)?f-1:f}return{left:i,center:o,right:s}}function vx(){return 0}function Fg(n){return n===null?NaN:+n}function*Qx(n,t){if(t===void 0)for(let e of n)e!=null&&(e=+e)>=e&&(yield e);else{let e=-1;for(let r of n)(r=t(r,++e,n))!=null&&(r=+r)>=r&&(yield r)}}const Mg=Hr(zr),Zn=Mg.right;Mg.left,Hr(Fg).center;function Sx(n,t){let e=0;if(t===void 0)for(let r of n)r!=null&&(r=+r)>=r&&++e;else{let r=-1;for(let i of n)(i=t(i,++r,n))!=null&&(i=+i)>=i&&++e}return e}function Dx(n,t){let e=0,r,i=0,s=0;if(t===void 0)for(let o of n)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++e,s+=r*(o-i));else{let o=-1;for(let a of n)(a=t(a,++o,n))!=null&&(a=+a)>=a&&(r=a-i,i+=r/++e,s+=r*(a-i))}if(e>1)return s/(e-1)}function kx(n,t){let e,r;for(const i of n)i!=null&&(e===void 0?i>=i&&(e=r=i):(e>i&&(e=i),r<i&&(r=i)));return[e,r]}class Sn extends Map{constructor(t,e=Rx){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Rg(this,t))}has(t){return super.has(Rg(this,t))}set(t,e){return super.set(Fx(this,t),e)}delete(t){return super.delete(Mx(this,t))}}function Rg({_intern:n,_key:t},e){const r=t(e);return n.has(r)?n.get(r):e}function Fx({_intern:n,_key:t},e){const r=t(e);return n.has(r)?n.get(r):(n.set(r,e),e)}function Mx({_intern:n,_key:t},e){const r=t(e);return n.has(r)&&(e=n.get(r),n.delete(r)),e}function Rx(n){return n!==null&&typeof n=="object"?n.valueOf():n}function eA(n){return n}function bl(n,...t){return Ng(n,eA,eA,t)}function Nx(n,...t){return Ng(n,Array.from,eA,t)}function Ng(n,t,e,r){return(function i(s,o){if(o>=r.length)return e(s);const a=new Sn,l=r[o++];let c=-1;for(const u of s){const f=l(u,++c,s),h=a.get(f);h?h.push(u):a.set(f,[u])}for(const[u,f]of a)a.set(u,i(f,o));return t(a)})(n,0)}function Tx(n=zr){if(n===zr)return Tg;if(typeof n!="function")throw new TypeError("compare is not a function");return(t,e)=>{const r=n(t,e);return r||r===0?r:(n(e,e)===0)-(n(t,t)===0)}}function Tg(n,t){return(n==null||!(n>=n))-(t==null||!(t>=t))||(n<t?-1:n>t?1:0)}const Px=Math.sqrt(50),Lx=Math.sqrt(10),Ox=Math.sqrt(2);function xl(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),s=r/Math.pow(10,i),o=s>=Px?10:s>=Lx?5:s>=Ox?2:1;let a,l,c;return i<0?(c=Math.pow(10,-i)/o,a=Math.round(n*c),l=Math.round(t*c),a/c<n&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,a=Math.round(n/c),l=Math.round(t/c),a*c<n&&++a,l*c>t&&--l),l<a&&.5<=e&&e<2?xl(n,t,e*2):[a,l,c]}function Bl(n,t,e){if(t=+t,n=+n,e=+e,!(e>0))return[];if(n===t)return[n];const r=t<n,[i,s,o]=r?xl(t,n,e):xl(n,t,e);if(!(s>=i))return[];const a=s-i+1,l=new Array(a);if(r)if(o<0)for(let c=0;c<a;++c)l[c]=(s-c)/-o;else for(let c=0;c<a;++c)l[c]=(s-c)*o;else if(o<0)for(let c=0;c<a;++c)l[c]=(i+c)/-o;else for(let c=0;c<a;++c)l[c]=(i+c)*o;return l}function tA(n,t,e){return t=+t,n=+n,e=+e,xl(n,t,e)[2]}function Yr(n,t,e){t=+t,n=+n,e=+e;const r=t<n,i=r?tA(t,n,e):tA(n,t,e);return(r?-1:1)*(i<0?1/-i:i)}function nA(n,t){let e;if(t===void 0)for(const r of n)r!=null&&(e<r||e===void 0&&r>=r)&&(e=r);else{let r=-1;for(let i of n)(i=t(i,++r,n))!=null&&(e<i||e===void 0&&i>=i)&&(e=i)}return e}function rA(n,t){let e;if(t===void 0)for(const r of n)r!=null&&(e>r||e===void 0&&r>=r)&&(e=r);else{let r=-1;for(let i of n)(i=t(i,++r,n))!=null&&(e>i||e===void 0&&i>=i)&&(e=i)}return e}function Pg(n,t,e=0,r=1/0,i){if(t=Math.floor(t),e=Math.floor(Math.max(0,e)),r=Math.floor(Math.min(n.length-1,r)),!(e<=t&&t<=r))return n;for(i=i===void 0?Tg:Tx(i);r>e;){if(r-e>600){const l=r-e+1,c=t-e+1,u=Math.log(l),f=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*f*(l-f)/l)*(c-l/2<0?-1:1),A=Math.max(e,Math.floor(t-c*f/l+h)),d=Math.min(r,Math.floor(t+(l-c)*f/l+h));Pg(n,t,A,d,i)}const s=n[t];let o=e,a=r;for(qo(n,e,t),i(n[r],s)>0&&qo(n,e,r);o<a;){for(qo(n,o,a),++o,--a;i(n[o],s)<0;)++o;for(;i(n[a],s)>0;)--a}i(n[e],s)===0?qo(n,e,a):(++a,qo(n,a,r)),a<=t&&(e=a+1),t<=a&&(r=a-1)}return n}function qo(n,t,e){const r=n[t];n[t]=n[e],n[e]=r}function Ux(n,t,e){if(n=Float64Array.from(Qx(n,e)),!(!(r=n.length)||isNaN(t=+t))){if(t<=0||r<2)return rA(n);if(t>=1)return nA(n);var r,i=(r-1)*t,s=Math.floor(i),o=nA(Pg(n,s).subarray(0,s+1)),a=rA(n.subarray(s+1));return o+(a-o)*(i-s)}}function Lg(n,t,e=Fg){if(!(!(r=n.length)||isNaN(t=+t))){if(t<=0||r<2)return+e(n[0],0,n);if(t>=1)return+e(n[r-1],r-1,n);var r,i=(r-1)*t,s=Math.floor(i),o=+e(n[s],s,n),a=+e(n[s+1],s+1,n);return o+(a-o)*(i-s)}}function Gx(n,t){let e=0,r=0;if(t===void 0)for(let i of n)i!=null&&(i=+i)>=i&&(++e,r+=i);else{let i=-1;for(let s of n)(s=t(s,++i,n))!=null&&(s=+s)>=s&&(++e,r+=s)}if(e)return r/e}function zx(n,t){return Ux(n,.5,t)}function Ko(n,t,e){n=+n,t=+t,e=(i=arguments.length)<2?(t=n,n=0,1):i<3?1:+e;for(var r=-1,i=Math.max(0,Math.ceil((t-n)/e))|0,s=new Array(i);++r<i;)s[r]=n+r*e;return s}function jo(n,t){let e=0;if(t===void 0)for(let r of n)(r=+r)&&(e+=r);else{let r=-1;for(let i of n)(i=+t(i,++r,n))&&(e+=i)}return e}function Hx(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function vl(n,t){if(!isFinite(n)||n===0)return null;var e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"),r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function qi(n){return n=vl(Math.abs(n)),n?n[1]:NaN}function Yx(n,t){return function(e,r){for(var i=e.length,s=[],o=0,a=n[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),s.push(e.substring(i-=a,i+a)),!((l+=a+1)>r));)a=n[o=(o+1)%n.length];return s.reverse().join(t)}}function _x(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var Vx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ki(n){if(!(t=Vx.exec(n)))throw new Error("invalid format: "+n);var t;return new iA({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ki.prototype=iA.prototype;function iA(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}iA.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Jx(n){e:for(var t=n.length,e=1,r=-1,i;e<t;++e)switch(n[e]){case".":r=i=e;break;case"0":r===0&&(r=e),i=e;break;default:if(!+n[e])break e;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var Ql;function qx(n,t){var e=vl(n,t);if(!e)return Ql=void 0,n.toPrecision(t);var r=e[0],i=e[1],s=i-(Ql=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return s===o?r:s>o?r+new Array(s-o+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+vl(n,Math.max(0,t+s-1))[0]}function Og(n,t){var e=vl(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Ug={"%":(n,t)=>(n*100).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:Hx,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>Og(n*100,t),r:Og,s:qx,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function Gg(n){return n}var zg=Array.prototype.map,Hg=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Kx(n){var t=n.grouping===void 0||n.thousands===void 0?Gg:Yx(zg.call(n.grouping,Number),n.thousands+""),e=n.currency===void 0?"":n.currency[0]+"",r=n.currency===void 0?"":n.currency[1]+"",i=n.decimal===void 0?".":n.decimal+"",s=n.numerals===void 0?Gg:_x(zg.call(n.numerals,String)),o=n.percent===void 0?"%":n.percent+"",a=n.minus===void 0?"−":n.minus+"",l=n.nan===void 0?"NaN":n.nan+"";function c(f,h){f=Ki(f);var A=f.fill,d=f.align,g=f.sign,p=f.symbol,C=f.zero,w=f.width,b=f.comma,y=f.precision,x=f.trim,B=f.type;B==="n"?(b=!0,B="g"):Ug[B]||(y===void 0&&(y=12),x=!0,B="g"),(C||A==="0"&&d==="=")&&(C=!0,A="0",d="=");var E=(h&&h.prefix!==void 0?h.prefix:"")+(p==="$"?e:p==="#"&&/[boxX]/.test(B)?"0"+B.toLowerCase():""),Q=(p==="$"?r:/[%p]/.test(B)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),k=Ug[B],S=/[defgprs%]/.test(B);y=y===void 0?6:/[gprs]/.test(B)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function T(N){var U=E,H=Q,J,_,Z;if(B==="c")H=k(N)+H,N="";else{N=+N;var le=N<0||1/N<0;if(N=isNaN(N)?l:k(Math.abs(N),y),x&&(N=Jx(N)),le&&+N==0&&g!=="+"&&(le=!1),U=(le?g==="("?g:a:g==="-"||g==="("?"":g)+U,H=(B==="s"&&!isNaN(N)&&Ql!==void 0?Hg[8+Ql/3]:"")+H+(le&&g==="("?")":""),S){for(J=-1,_=N.length;++J<_;)if(Z=N.charCodeAt(J),48>Z||Z>57){H=(Z===46?i+N.slice(J+1):N.slice(J))+H,N=N.slice(0,J);break}}}b&&!C&&(N=t(N,1/0));var de=U.length+N.length+H.length,ge=de<w?new Array(w-de+1).join(A):"";switch(b&&C&&(N=t(ge+N,ge.length?w-H.length:1/0),ge=""),d){case"<":N=U+N+H+ge;break;case"=":N=U+ge+N+H;break;case"^":N=ge.slice(0,de=ge.length>>1)+U+N+H+ge.slice(de);break;default:N=ge+U+N+H;break}return s(N)}return T.toString=function(){return f+""},T}function u(f,h){var A=Math.max(-8,Math.min(8,Math.floor(qi(h)/3)))*3,d=Math.pow(10,-A),g=c((f=Ki(f),f.type="f",f),{suffix:Hg[8+A/3]});return function(p){return g(d*p)}}return{format:c,formatPrefix:u}}var Sl,Ze,Yg;jx({thousands:",",grouping:[3],currency:["$",""]});function jx(n){return Sl=Kx(n),Ze=Sl.format,Yg=Sl.formatPrefix,Sl}function Wx(n){return Math.max(0,-qi(Math.abs(n)))}function Xx(n,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(qi(t)/3)))*3-qi(Math.abs(n)))}function Zx(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,qi(t)-qi(n))+1}const sA=new Date,oA=new Date;function Oe(n,t,e,r){function i(s){return n(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(n(s=new Date(+s)),s),i.ceil=s=>(n(s=new Date(s-1)),t(s,1),n(s),s),i.round=s=>{const o=i(s),a=i.ceil(s);return s-o<a-s?o:a},i.offset=(s,o)=>(t(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,a)=>{const l=[];if(s=i.ceil(s),a=a==null?1:Math.floor(a),!(s<o)||!(a>0))return l;let c;do l.push(c=new Date(+s)),t(s,a),n(s);while(c<s&&s<o);return l},i.filter=s=>Oe(o=>{if(o>=o)for(;n(o),!s(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!s(o););else for(;--a>=0;)for(;t(o,1),!s(o););}),e&&(i.count=(s,o)=>(sA.setTime(+s),oA.setTime(+o),n(sA),n(oA),Math.floor(e(sA,oA))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?o=>r(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const ji=Oe(()=>{},(n,t)=>{n.setTime(+n+t)},(n,t)=>t-n);ji.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?Oe(t=>{t.setTime(Math.floor(t/n)*n)},(t,e)=>{t.setTime(+t+e*n)},(t,e)=>(e-t)/n):ji),ji.range;const Dn=1e3,Mt=Dn*60,kn=Mt*60,Fn=kn*24,aA=Fn*7,_g=Fn*30,cA=Fn*365,Mn=Oe(n=>{n.setTime(n-n.getMilliseconds())},(n,t)=>{n.setTime(+n+t*Dn)},(n,t)=>(t-n)/Dn,n=>n.getUTCSeconds());Mn.range;const Dl=Oe(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*Dn)},(n,t)=>{n.setTime(+n+t*Mt)},(n,t)=>(t-n)/Mt,n=>n.getMinutes());Dl.range;const kl=Oe(n=>{n.setUTCSeconds(0,0)},(n,t)=>{n.setTime(+n+t*Mt)},(n,t)=>(t-n)/Mt,n=>n.getUTCMinutes());kl.range;const Fl=Oe(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*Dn-n.getMinutes()*Mt)},(n,t)=>{n.setTime(+n+t*kn)},(n,t)=>(t-n)/kn,n=>n.getHours());Fl.range;const Ml=Oe(n=>{n.setUTCMinutes(0,0,0)},(n,t)=>{n.setTime(+n+t*kn)},(n,t)=>(t-n)/kn,n=>n.getUTCHours());Ml.range;const $n=Oe(n=>n.setHours(0,0,0,0),(n,t)=>n.setDate(n.getDate()+t),(n,t)=>(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*Mt)/Fn,n=>n.getDate()-1);$n.range;const _r=Oe(n=>{n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCDate(n.getUTCDate()+t)},(n,t)=>(t-n)/Fn,n=>n.getUTCDate()-1);_r.range;const Vg=Oe(n=>{n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCDate(n.getUTCDate()+t)},(n,t)=>(t-n)/Fn,n=>Math.floor(n/Fn));Vg.range;function Vr(n){return Oe(t=>{t.setDate(t.getDate()-(t.getDay()+7-n)%7),t.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+e*7)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Mt)/aA)}const Wo=Vr(0),Rl=Vr(1),$x=Vr(2),eB=Vr(3),Wi=Vr(4),tB=Vr(5),nB=Vr(6);Wo.range,Rl.range,$x.range,eB.range,Wi.range,tB.range,nB.range;function Jr(n){return Oe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-n)%7),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e*7)},(t,e)=>(e-t)/aA)}const Xo=Jr(0),Nl=Jr(1),rB=Jr(2),iB=Jr(3),Xi=Jr(4),sB=Jr(5),oB=Jr(6);Xo.range,Nl.range,rB.range,iB.range,Xi.range,sB.range,oB.range;const Zo=Oe(n=>{n.setDate(1),n.setHours(0,0,0,0)},(n,t)=>{n.setMonth(n.getMonth()+t)},(n,t)=>t.getMonth()-n.getMonth()+(t.getFullYear()-n.getFullYear())*12,n=>n.getMonth());Zo.range;const $o=Oe(n=>{n.setUTCDate(1),n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCMonth(n.getUTCMonth()+t)},(n,t)=>t.getUTCMonth()-n.getUTCMonth()+(t.getUTCFullYear()-n.getUTCFullYear())*12,n=>n.getUTCMonth());$o.range;const sn=Oe(n=>{n.setMonth(0,1),n.setHours(0,0,0,0)},(n,t)=>{n.setFullYear(n.getFullYear()+t)},(n,t)=>t.getFullYear()-n.getFullYear(),n=>n.getFullYear());sn.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:Oe(t=>{t.setFullYear(Math.floor(t.getFullYear()/n)*n),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e*n)}),sn.range;const on=Oe(n=>{n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCFullYear(n.getUTCFullYear()+t)},(n,t)=>t.getUTCFullYear()-n.getUTCFullYear(),n=>n.getUTCFullYear());on.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:Oe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e*n)}),on.range;function Jg(n,t,e,r,i,s){const o=[[Mn,1,Dn],[Mn,5,5*Dn],[Mn,15,15*Dn],[Mn,30,30*Dn],[s,1,Mt],[s,5,5*Mt],[s,15,15*Mt],[s,30,30*Mt],[i,1,kn],[i,3,3*kn],[i,6,6*kn],[i,12,12*kn],[r,1,Fn],[r,2,2*Fn],[e,1,aA],[t,1,_g],[t,3,3*_g],[n,1,cA]];function a(c,u,f){const h=u<c;h&&([c,u]=[u,c]);const A=f&&typeof f.range=="function"?f:l(c,u,f),d=A?A.range(c,+u+1):[];return h?d.reverse():d}function l(c,u,f){const h=Math.abs(u-c)/f,A=Hr(([,,p])=>p).right(o,h);if(A===o.length)return n.every(Yr(c/cA,u/cA,f));if(A===0)return ji.every(Math.max(Yr(c,u,f),1));const[d,g]=o[h/o[A-1][2]<o[A][2]/h?A-1:A];return d.every(g)}return[a,l]}const[aB,cB]=Jg(on,$o,Xo,Vg,Ml,kl),[lB,uB]=Jg(sn,Zo,Wo,$n,Fl,Dl),ea="year",ta="quarter",na="month",ra="week",ia="date",Tl="day",lA="dayofyear",sa="hours",oa="minutes",aa="seconds",Pl="milliseconds";[ea,ta,na,ra,ia,Tl,lA,sa,oa,aa,Pl].reduce((n,t,e)=>(n[t]=1+e,n),{});const fB={[ea]:sn,[ta]:Zo.every(3),[na]:Zo,[ra]:Wo,[ia]:$n,[Tl]:$n,[lA]:$n,[sa]:Fl,[oa]:Dl,[aa]:Mn,[Pl]:ji},AB={[ea]:on,[ta]:$o.every(3),[na]:$o,[ra]:Xo,[ia]:_r,[Tl]:_r,[lA]:_r,[sa]:Ml,[oa]:kl,[aa]:Mn,[Pl]:ji};function hB(n){return fB[n]}function dB(n){return AB[n]}function uA(n){if(0<=n.y&&n.y<100){var t=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return t.setFullYear(n.y),t}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function fA(n){if(0<=n.y&&n.y<100){var t=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return t.setUTCFullYear(n.y),t}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function ca(n,t,e){return{y:n,m:t,d:e,H:0,M:0,S:0,L:0}}function qg(n){var t=n.dateTime,e=n.date,r=n.time,i=n.periods,s=n.days,o=n.shortDays,a=n.months,l=n.shortMonths,c=la(i),u=ua(i),f=la(s),h=ua(s),A=la(o),d=ua(o),g=la(a),p=ua(a),C=la(l),w=ua(l),b={a:Z,A:le,b:de,B:ge,c:null,d:$g,e:$g,f:LB,g:qB,G:jB,H:NB,I:TB,j:PB,L:ep,m:OB,M:UB,p:Fe,q:Bn,Q:op,s:ap,S:GB,u:zB,U:HB,V:YB,w:_B,W:VB,x:null,X:null,y:JB,Y:KB,Z:WB,"%":sp},y={a:vn,A:Mr,b:Ro,B:Le,c:null,d:np,e:np,f:ev,g:uv,G:Av,H:XB,I:ZB,j:$B,L:rp,m:tv,M:nv,p:Vt,q:Bt,Q:op,s:ap,S:rv,u:iv,U:sv,V:ov,w:av,W:cv,x:null,X:null,y:lv,Y:fv,Z:hv,"%":sp},x={a:S,A:T,b:N,B:U,c:H,d:Xg,e:Xg,f:kB,g:Wg,G:jg,H:Zg,I:Zg,j:vB,L:DB,m:BB,M:QB,p:k,q:xB,Q:MB,s:RB,S:SB,u:yB,U:wB,V:IB,w:CB,W:EB,x:J,X:_,y:Wg,Y:jg,Z:bB,"%":FB};b.x=B(e,b),b.X=B(r,b),b.c=B(t,b),y.x=B(e,y),y.X=B(r,y),y.c=B(t,y);function B(Y,$){return function(ie){var L=[],lt=-1,he=0,pt=Y.length,ut,Jn,al;for(ie instanceof Date||(ie=new Date(+ie));++lt<pt;)Y.charCodeAt(lt)===37&&(L.push(Y.slice(he,lt)),(Jn=Kg[ut=Y.charAt(++lt)])!=null?ut=Y.charAt(++lt):Jn=ut==="e"?" ":"0",(al=$[ut])&&(ut=al(ie,Jn)),L.push(ut),he=lt+1);return L.push(Y.slice(he,lt)),L.join("")}}function E(Y,$){return function(ie){var L=ca(1900,void 0,1),lt=Q(L,Y,ie+="",0),he,pt;if(lt!=ie.length)return null;if("Q"in L)return new Date(L.Q);if("s"in L)return new Date(L.s*1e3+("L"in L?L.L:0));if($&&!("Z"in L)&&(L.Z=0),"p"in L&&(L.H=L.H%12+L.p*12),L.m===void 0&&(L.m="q"in L?L.q:0),"V"in L){if(L.V<1||L.V>53)return null;"w"in L||(L.w=1),"Z"in L?(he=fA(ca(L.y,0,1)),pt=he.getUTCDay(),he=pt>4||pt===0?Nl.ceil(he):Nl(he),he=_r.offset(he,(L.V-1)*7),L.y=he.getUTCFullYear(),L.m=he.getUTCMonth(),L.d=he.getUTCDate()+(L.w+6)%7):(he=uA(ca(L.y,0,1)),pt=he.getDay(),he=pt>4||pt===0?Rl.ceil(he):Rl(he),he=$n.offset(he,(L.V-1)*7),L.y=he.getFullYear(),L.m=he.getMonth(),L.d=he.getDate()+(L.w+6)%7)}else("W"in L||"U"in L)&&("w"in L||(L.w="u"in L?L.u%7:"W"in L?1:0),pt="Z"in L?fA(ca(L.y,0,1)).getUTCDay():uA(ca(L.y,0,1)).getDay(),L.m=0,L.d="W"in L?(L.w+6)%7+L.W*7-(pt+5)%7:L.w+L.U*7-(pt+6)%7);return"Z"in L?(L.H+=L.Z/100|0,L.M+=L.Z%100,fA(L)):uA(L)}}function Q(Y,$,ie,L){for(var lt=0,he=$.length,pt=ie.length,ut,Jn;lt<he;){if(L>=pt)return-1;if(ut=$.charCodeAt(lt++),ut===37){if(ut=$.charAt(lt++),Jn=x[ut in Kg?$.charAt(lt++):ut],!Jn||(L=Jn(Y,ie,L))<0)return-1}else if(ut!=ie.charCodeAt(L++))return-1}return L}function k(Y,$,ie){var L=c.exec($.slice(ie));return L?(Y.p=u.get(L[0].toLowerCase()),ie+L[0].length):-1}function S(Y,$,ie){var L=A.exec($.slice(ie));return L?(Y.w=d.get(L[0].toLowerCase()),ie+L[0].length):-1}function T(Y,$,ie){var L=f.exec($.slice(ie));return L?(Y.w=h.get(L[0].toLowerCase()),ie+L[0].length):-1}function N(Y,$,ie){var L=C.exec($.slice(ie));return L?(Y.m=w.get(L[0].toLowerCase()),ie+L[0].length):-1}function U(Y,$,ie){var L=g.exec($.slice(ie));return L?(Y.m=p.get(L[0].toLowerCase()),ie+L[0].length):-1}function H(Y,$,ie){return Q(Y,t,$,ie)}function J(Y,$,ie){return Q(Y,e,$,ie)}function _(Y,$,ie){return Q(Y,r,$,ie)}function Z(Y){return o[Y.getDay()]}function le(Y){return s[Y.getDay()]}function de(Y){return l[Y.getMonth()]}function ge(Y){return a[Y.getMonth()]}function Fe(Y){return i[+(Y.getHours()>=12)]}function Bn(Y){return 1+~~(Y.getMonth()/3)}function vn(Y){return o[Y.getUTCDay()]}function Mr(Y){return s[Y.getUTCDay()]}function Ro(Y){return l[Y.getUTCMonth()]}function Le(Y){return a[Y.getUTCMonth()]}function Vt(Y){return i[+(Y.getUTCHours()>=12)]}function Bt(Y){return 1+~~(Y.getUTCMonth()/3)}return{format:function(Y){var $=B(Y+="",b);return $.toString=function(){return Y},$},parse:function(Y){var $=E(Y+="",!1);return $.toString=function(){return Y},$},utcFormat:function(Y){var $=B(Y+="",y);return $.toString=function(){return Y},$},utcParse:function(Y){var $=E(Y+="",!0);return $.toString=function(){return Y},$}}}var Kg={"-":"",_:" ",0:"0"},_e=/^\s*\d+/,gB=/^%/,pB=/[\\^$*+?|[\]().{}]/g;function ae(n,t,e){var r=n<0?"-":"",i=(r?-n:n)+"",s=i.length;return r+(s<e?new Array(e-s+1).join(t)+i:i)}function mB(n){return n.replace(pB,"\\$&")}function la(n){return new RegExp("^(?:"+n.map(mB).join("|")+")","i")}function ua(n){return new Map(n.map((t,e)=>[t.toLowerCase(),e]))}function CB(n,t,e){var r=_e.exec(t.slice(e,e+1));return r?(n.w=+r[0],e+r[0].length):-1}function yB(n,t,e){var r=_e.exec(t.slice(e,e+1));return r?(n.u=+r[0],e+r[0].length):-1}function wB(n,t,e){var r=_e.exec(t.slice(e,e+2));return r?(n.U=+r[0],e+r[0].length):-1}function IB(n,t,e){var r=_e.exec(t.slice(e,e+2));return r?(n.V=+r[0],e+r[0].length):-1}function EB(n,t,e){var r=_e.exec(t.slice(e,e+2));return r?(n.W=+r[0],e+r[0].length):-1}function jg(n,t,e){var r=_e.exec(t.slice(e,e+4));return r?(n.y=+r[0],e+r[0].length):-1}function Wg(n,t,e){var r=_e.exec(t.slice(e,e+2));return r?(n.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function bB(n,t,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(e,e+6));return r?(n.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function xB(n,t,e){var r=_e.exec(t.slice(e,e+1));return r?(n.q=r[0]*3-3,e+r[0].length):-1}function BB(n,t,e){var r=_e.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function Xg(n,t,e){var r=_e.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function vB(n,t,e){var r=_e.exec(t.slice(e,e+3));return r?(n.m=0,n.d=+r[0],e+r[0].length):-1}function Zg(n,t,e){var r=_e.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function QB(n,t,e){var r=_e.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function SB(n,t,e){var r=_e.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function DB(n,t,e){var r=_e.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function kB(n,t,e){var r=_e.exec(t.slice(e,e+6));return r?(n.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function FB(n,t,e){var r=gB.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function MB(n,t,e){var r=_e.exec(t.slice(e));return r?(n.Q=+r[0],e+r[0].length):-1}function RB(n,t,e){var r=_e.exec(t.slice(e));return r?(n.s=+r[0],e+r[0].length):-1}function $g(n,t){return ae(n.getDate(),t,2)}function NB(n,t){return ae(n.getHours(),t,2)}function TB(n,t){return ae(n.getHours()%12||12,t,2)}function PB(n,t){return ae(1+$n.count(sn(n),n),t,3)}function ep(n,t){return ae(n.getMilliseconds(),t,3)}function LB(n,t){return ep(n,t)+"000"}function OB(n,t){return ae(n.getMonth()+1,t,2)}function UB(n,t){return ae(n.getMinutes(),t,2)}function GB(n,t){return ae(n.getSeconds(),t,2)}function zB(n){var t=n.getDay();return t===0?7:t}function HB(n,t){return ae(Wo.count(sn(n)-1,n),t,2)}function tp(n){var t=n.getDay();return t>=4||t===0?Wi(n):Wi.ceil(n)}function YB(n,t){return n=tp(n),ae(Wi.count(sn(n),n)+(sn(n).getDay()===4),t,2)}function _B(n){return n.getDay()}function VB(n,t){return ae(Rl.count(sn(n)-1,n),t,2)}function JB(n,t){return ae(n.getFullYear()%100,t,2)}function qB(n,t){return n=tp(n),ae(n.getFullYear()%100,t,2)}function KB(n,t){return ae(n.getFullYear()%1e4,t,4)}function jB(n,t){var e=n.getDay();return n=e>=4||e===0?Wi(n):Wi.ceil(n),ae(n.getFullYear()%1e4,t,4)}function WB(n){var t=n.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ae(t/60|0,"0",2)+ae(t%60,"0",2)}function np(n,t){return ae(n.getUTCDate(),t,2)}function XB(n,t){return ae(n.getUTCHours(),t,2)}function ZB(n,t){return ae(n.getUTCHours()%12||12,t,2)}function $B(n,t){return ae(1+_r.count(on(n),n),t,3)}function rp(n,t){return ae(n.getUTCMilliseconds(),t,3)}function ev(n,t){return rp(n,t)+"000"}function tv(n,t){return ae(n.getUTCMonth()+1,t,2)}function nv(n,t){return ae(n.getUTCMinutes(),t,2)}function rv(n,t){return ae(n.getUTCSeconds(),t,2)}function iv(n){var t=n.getUTCDay();return t===0?7:t}function sv(n,t){return ae(Xo.count(on(n)-1,n),t,2)}function ip(n){var t=n.getUTCDay();return t>=4||t===0?Xi(n):Xi.ceil(n)}function ov(n,t){return n=ip(n),ae(Xi.count(on(n),n)+(on(n).getUTCDay()===4),t,2)}function av(n){return n.getUTCDay()}function cv(n,t){return ae(Nl.count(on(n)-1,n),t,2)}function lv(n,t){return ae(n.getUTCFullYear()%100,t,2)}function uv(n,t){return n=ip(n),ae(n.getUTCFullYear()%100,t,2)}function fv(n,t){return ae(n.getUTCFullYear()%1e4,t,4)}function Av(n,t){var e=n.getUTCDay();return n=e>=4||e===0?Xi(n):Xi.ceil(n),ae(n.getUTCFullYear()%1e4,t,4)}function hv(){return"+0000"}function sp(){return"%"}function op(n){return+n}function ap(n){return Math.floor(+n/1e3)}var Zi,AA,cp,hA,lp;dv({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function dv(n){return Zi=qg(n),AA=Zi.format,cp=Zi.parse,hA=Zi.utcFormat,lp=Zi.utcParse,Zi}function Ll(n){const t={};return e=>t[e]||(t[e]=n(e))}function up(n,t,e){e=e||{},et(e)||Ne(`Invalid time multi-format specifier: ${e}`);const r=t(aa),i=t(oa),s=t(sa),o=t(ia),a=t(ra),l=t(na),c=t(ta),u=t(ea),f=n(e[Pl]||".%L"),h=n(e[aa]||":%S"),A=n(e[oa]||"%I:%M"),d=n(e[sa]||"%I %p"),g=n(e[ia]||e[Tl]||"%a %d"),p=n(e[ra]||"%b %d"),C=n(e[na]||"%B"),w=n(e[ta]||"%B"),b=n(e[ea]||"%Y");return y=>(r(y)<y?f:i(y)<y?h:s(y)<y?A:o(y)<y?d:l(y)<y?a(y)<y?g:p:u(y)<y?c(y)<y?C:w:b)(y)}function fp(n){const t=Ll(n.format),e=Ll(n.utcFormat);return{timeFormat:r=>Ce(r)?t(r):up(t,hB,r),utcFormat:r=>Ce(r)?e(r):up(e,dB,r),timeParse:Ll(n.parse),utcParse:Ll(n.utcParse)}}let dA;gv();function gv(){return dA=fp({format:AA,parse:cp,utcFormat:hA,utcParse:lp})}function pv(n){return fp(qg(n))}function mv(n){return arguments.length?dA=pv(n):dA}const Cv=n=>n!=null&&n===n,yv=n=>n==="true"||n==="false"||n===!0||n===!1,wv=n=>!Number.isNaN(Date.parse(n)),Ap=n=>!Number.isNaN(+n)&&!(n instanceof Date),Iv=n=>Ap(n)&&Number.isInteger(+n),hp={boolean:Yb,integer:To,number:To,date:Vb,string:Jb,unknown:gl},Ol=[yv,Iv,Ap,wv],Ev=["boolean","integer","number","date"];function bv(n,t){if(!n||!n.length)return"unknown";const e=n.length,r=Ol.length,i=Ol.map((s,o)=>o+1);for(let s=0,o=0,a,l;s<e;++s)for(l=t?n[s][t]:n[s],a=0;a<r;++a)if(i[a]&&Cv(l)&&!Ol[a](l)&&(i[a]=0,++o,o===Ol.length))return"string";return Ev[i.reduce((s,o)=>s===0?o:s,0)-1]}function xv(n,t){return t.reduce((e,r)=>(e[r]=bv(n,r),e),{})}function dp(n){const t=function(e,r){const i={delimiter:n};return gA(e,r?Ub(r,i):i)};return t.responseType="text",t}function gA(n,t){return t.header&&(n=t.header.map(Yf).join(t.delimiter)+`
|
|
24
|
+
`+n),Sg(t.delimiter).parse(n+"")}gA.responseType="text";function Bv(n){return typeof Buffer=="function"&&Ft(Buffer.isBuffer)?Buffer.isBuffer(n):!1}function pA(n,t){const e=t&&t.property?dl(t.property):gl;return et(n)&&!Bv(n)?vv(e(n),t):e(JSON.parse(n))}pA.responseType="json";function vv(n,t){return!Xe(n)&&zb(n)&&(n=[...n]),t&&t.copy?JSON.parse(JSON.stringify(n)):n}const Qv={interior:(n,t)=>n!==t,exterior:(n,t)=>n===t};function gp(n,t){let e,r,i,s;return n=pA(n,t),t&&t.feature?(e=wx,i=t.feature):t&&t.mesh?(e=Ex,i=t.mesh,s=Qv[t.filter]):Ne("Missing TopoJSON feature or mesh parameter."),r=(r=n.objects[i])?e(n,r,s):Ne("Invalid TopoJSON object: "+i),r&&r.features||[r]}gp.responseType="json";const mA={dsv:gA,csv:dp(","),tsv:dp(" "),json:pA,topojson:gp};function CA(n,t){return arguments.length>1?(mA[n]=t,this):_i(mA,n)?mA[n]:null}function yA(n,t,e,r){t=t||{};const i=CA(t.type||"json");return i||Ne("Unknown data format type: "+t.type),n=i(n,t),t.parse&&Sv(n,t.parse,e,r),_i(n,"columns")&&delete n.columns,n}function Sv(n,t,e,r){if(!n.length)return;const i=mv();e=e||i.timeParse,r=r||i.utcParse;let s=n.columns||Object.keys(n[0]),o,a,l,c,u,f;t==="auto"&&(t=xv(n,s)),s=Object.keys(t);const h=s.map(A=>{const d=t[A];let g,p;if(d&&(d.startsWith("date:")||d.startsWith("utc:")))return g=d.split(/:(.+)?/,2),p=g[1],(p[0]==="'"&&p[p.length-1]==="'"||p[0]==='"'&&p[p.length-1]==='"')&&(p=p.slice(1,-1)),(g[0]==="utc"?r:e)(p);if(!hp[d])throw Error("Illegal format pattern: "+A+":"+d);return hp[d]});for(l=0,u=n.length,f=s.length;l<u;++l)for(o=n[l],c=0;c<f;++c)a=s[c],o[a]=h[c](o[a])}const Dv=`
|
|
33
25
|
:root {
|
|
34
26
|
--genome-spy-basic-spacing: 10px;
|
|
35
27
|
--genome-spy-font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial,
|
|
@@ -302,9 +294,106 @@ flex-basis: content;
|
|
|
302
294
|
font-size: 14px;
|
|
303
295
|
padding: var(--genome-spy-basic-spacing);
|
|
304
296
|
}
|
|
305
|
-
`;function
|
|
297
|
+
`;function kv(n,t){var e=n.getBoundingClientRect();return[t.clientX-e.left-n.clientLeft,t.clientY-e.top-n.clientTop]}function Ul(n,t){return n.length==t.length&&n.every((e,r)=>n[r]===t[r])}function tt(n){return Array.isArray(n)?n:typeof n<"u"?[n]:[]}function Gl(n){return n[n.length-1]}class Fv{constructor(t){D(this,zn,!1);D(this,Ys,!0);D(this,Ii);D(this,Ei,0);D(this,_s);D(this,pc,0);D(this,dt);D(this,br);D(this,Vs,[!0]);F(this,br,t),F(this,dt,document.createElement("div")),m(this,dt).className="tooltip",m(this,br).appendChild(m(this,dt)),this.clear()}set sticky(t){!t&&m(this,zn)&&this.clear(),F(this,zn,t),m(this,dt).classList.toggle("sticky",m(this,zn))}get sticky(){return m(this,zn)}set visible(t){t!=m(this,Ys)&&(m(this,dt).style.display=t?null:"none",F(this,Ys,t))}get visible(){return m(this,Ys)}get enabled(){return Gl(m(this,Vs))??!0}pushEnabledState(t){m(this,Vs).push(t),t||(this.visible=!1)}popEnabledState(){m(this,Vs).pop()}handleMouseMove(t){if(m(this,zn))return;this.mouseCoords=kv(m(this,br),t);const e=performance.now();!this.visible&&!this._isPenalty()&&e-m(this,pc)>500&&F(this,Ei,e+70),m(this,_s)&&Mv(this.mouseCoords,m(this,_s))>20&&F(this,Ei,e+400),F(this,_s,this.mouseCoords),this.visible&&this.updatePlacement(),F(this,pc,e)}updatePlacement(){const[e,r]=this.mouseCoords;let i=e+20;i>m(this,br).clientWidth-m(this,dt).offsetWidth&&(i=e-20-m(this,dt).offsetWidth),m(this,dt).style.left=i+"px",m(this,dt).style.top=Math.min(r+20,m(this,br).clientHeight-m(this,dt).offsetHeight)+"px"}setContent(t){if(!m(this,zn)){if(!t||!this.enabled||this._isPenalty()){this.visible&&(Vo("",m(this,dt)),this.visible=!1),F(this,Ii,void 0);return}Vo(t,m(this,dt)),this.visible=!0,this.updatePlacement()}}clear(){F(this,Ii,void 0),this.setContent(void 0)}updateWithDatum(t,e){t!==m(this,Ii)&&(F(this,Ii,t),e||(e=r=>Promise.resolve(be` ${JSON.stringify(r)} `)),e(t).then(r=>this.setContent(r)).catch(r=>{if(r!=="debounced")throw r}))}_isPenalty(){return m(this,Ei)&&m(this,Ei)>performance.now()}}zn=new WeakMap,Ys=new WeakMap,Ii=new WeakMap,Ei=new WeakMap,_s=new WeakMap,pc=new WeakMap,dt=new WeakMap,br=new WeakMap,Vs=new WeakMap;function Mv(n,t){let e=0;for(let r=0;r<n.length;r++)e+=(n[r]-t[r])**2;return Math.sqrt(e)}function Rv(n){n.classList.add("genome-spy");const t=document.createElement("style");t.innerHTML=Dv,n.appendChild(t);const e=wA("div",{class:"canvas-wrapper"});n.appendChild(e),e.classList.add("loading");const r=wA("div",{class:"loading-message",innerHTML:'<div class="message">Loading<span class="ellipsis">...</span></div>'});e.appendChild(r);const i=wA("div",{class:"loading-indicators"});e.appendChild(i);const s=new Fv(n);return r.querySelector(".message").addEventListener("transitionend",()=>{r.style.display="none"}),{canvasWrapper:e,loadingMessageElement:r,loadingIndicatorsElement:i,tooltip:s,styleElement:t}}function Nv(n,t){const e=document.createElement("div");e.className="message-box";const r=document.createElement("div");r.textContent=t,e.appendChild(r),n.appendChild(e)}function wA(n,t){const e=document.createElement(n);for(const[r,i]of Object.entries(t))["innerHTML","innerText","className"].includes(r)&&(e[r]=i),e.setAttribute(r,i);return e}/**
|
|
298
|
+
* @license
|
|
299
|
+
* Copyright 2017 Google LLC
|
|
300
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
301
|
+
*/const Tv={ATTRIBUTE:1},Pv=n=>(...t)=>({_$litDirective$:n,values:t});let Lv=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};/**
|
|
302
|
+
* @license
|
|
303
|
+
* Copyright 2018 Google LLC
|
|
304
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
305
|
+
*/const pp="important",Ov=" !"+pp,Uv=Pv(class extends Lv{constructor(n){var t;if(super(n),n.type!==Tv.ATTRIBUTE||n.name!=="style"||((t=n.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((t,e)=>{const r=n[e];return r==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(n,[t]){const{style:e}=n.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const r of this.ft)t[r]==null&&(this.ft.delete(r),r.includes("-")?e.removeProperty(r):e[r]=null);for(const r in t){const i=t[r];if(i!=null){this.ft.add(r);const s=typeof i=="string"&&i.endsWith(Ov);r.includes("-")||s?e.setProperty(r,s?i.slice(0,-11):i,s?pp:""):e[r]=i}}return Or}}),Gv="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cstyle%3e.spinner_ajPY{transform-origin:center;animation:spinner_AtaB%20.75s%20infinite%20linear}@keyframes%20spinner_AtaB{100%25{transform:rotate(360deg)}}%3c/style%3e%3cpath%20d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z'%20opacity='.25'/%3e%3cpath%20d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z'%20class='spinner_ajPY'/%3e%3c/svg%3e";class zv{constructor(t){D(this,bi);D(this,xi);F(this,bi,t),F(this,xi,new Map)}setDataLoadingStatus(t,e,r){m(this,xi).set(t,{status:e,detail:r}),this.updateLayout()}updateLayout(){const t=[],e=()=>[...m(this,xi).values()].some(r=>r.status=="loading"||r.status=="error");for(const[r,i]of m(this,xi)){const s=r.coords;if(s){const o={left:`${s.x}px`,top:`${s.y}px`,width:`${s.width}px`,height:`${s.height}px`};t.push(be`<div style=${Uv(o)}>
|
|
306
|
+
<div class=${i.status}>
|
|
307
|
+
${i.status=="error"?be`<span
|
|
308
|
+
>Loading
|
|
309
|
+
failed${i.detail?be`: ${i.detail}`:Te}</span
|
|
310
|
+
>`:be`
|
|
311
|
+
<img src="${Gv}" alt="" />
|
|
312
|
+
<span>Loading...</span>
|
|
313
|
+
`}
|
|
314
|
+
</div>
|
|
315
|
+
</div>`)}}e()?m(this,bi).style.display="block":setTimeout(()=>{e()||(m(this,bi).style.display="none")},3e3),Vo(t,m(this,bi))}}bi=new WeakMap,xi=new WeakMap;function Hv(n){return t=>{var e;if((e=n.querySelector(".view-highlight"))==null||e.remove(),t){if(!t.isConfiguredVisible())return;const r=t.coords;if(r){const i=document.createElement("div");i.className="view-highlight",i.style.position="absolute",i.style.left=r.x+"px",i.style.top=r.y+"px",i.style.width=r.width+"px",i.style.height=r.height+"px",i.style.border="1px solid green",i.style.backgroundColor="rgba(0, 255, 0, 0.1)",i.style.pointerEvents="none",n.appendChild(i)}}}}class Yv{constructor(){D(this,xr);F(this,xr,new Map)}add(t,e){document.addEventListener(t,e);let r=m(this,xr).get(t);r||(r=[],m(this,xr).set(t,r)),r.push(e)}removeAll(){for(const[t,e]of m(this,xr))for(const r of e)document.removeEventListener(t,r);m(this,xr).clear()}}xr=new WeakMap;class mp{constructor(){D(this,Br);F(this,Br,new Map)}add(t,e){let r=m(this,Br).get(t);r||(r=new Set,m(this,Br).set(t,r)),r.add(e)}remove(t,e){var r;(r=m(this,Br).get(t))==null||r.delete(e)}emit(t,e){var r;(r=m(this,Br).get(t))==null||r.forEach(i=>i(e))}}Br=new WeakMap;function zl(n,t,e=!0){let r,i=o=>{};return function(...a){return new Promise((l,c)=>{const u=()=>{clearTimeout(r),i=f=>{},l(n(...a))};e&&i("debounced"),clearTimeout(r),i=c,r=window.setTimeout(u,typeof t=="function"?t():t)})}}const _v="RawCode",Vv="Literal",Jv="Property",qv="Identifier",Kv="ArrayExpression",jv="BinaryExpression",Wv="CallExpression",Xv="ConditionalExpression",Zv="LogicalExpression",$v="MemberExpression",e3="ObjectExpression",t3="UnaryExpression";function Kt(n){this.type=n}Kt.prototype.visit=function(n){let t,e,r;if(n(this))return 1;for(t=n3(this),e=0,r=t.length;e<r;++e)if(t[e].visit(n))return 1};function n3(n){switch(n.type){case Kv:return n.elements;case jv:case Zv:return[n.left,n.right];case Wv:return[n.callee].concat(n.arguments);case Xv:return[n.test,n.consequent,n.alternate];case $v:return[n.object,n.property];case e3:return n.properties;case Jv:return[n.key,n.value];case t3:return[n.argument];case qv:case Vv:case _v:default:return[]}}var an,V,R,nt,Ae,Hl=1,fa=2,qr=3,er=4,Yl=5,Kr=6,yt=7,Aa=8,r3=9;an={},an[Hl]="Boolean",an[fa]="<end>",an[qr]="Identifier",an[er]="Keyword",an[Yl]="Null",an[Kr]="Numeric",an[yt]="Punctuator",an[Aa]="String",an[r3]="RegularExpression";var i3="ArrayExpression",s3="BinaryExpression",o3="CallExpression",a3="ConditionalExpression",Cp="Identifier",c3="Literal",l3="LogicalExpression",u3="MemberExpression",f3="ObjectExpression",A3="Property",h3="UnaryExpression",Ve="Unexpected token %0",d3="Unexpected number",g3="Unexpected string",p3="Unexpected identifier",m3="Unexpected reserved word",C3="Unexpected end of input",IA="Invalid regular expression",EA="Invalid regular expression: missing /",yp="Octal literals are not allowed in strict mode.",y3="Duplicate data property in object literal not allowed in strict mode",$e="ILLEGAL",ha="Disabled.",w3=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),I3=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\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D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");function _l(n,t){if(!n)throw new Error("ASSERT: "+t)}function Rn(n){return n>=48&&n<=57}function bA(n){return"0123456789abcdefABCDEF".includes(n)}function da(n){return"01234567".includes(n)}function E3(n){return n===32||n===9||n===11||n===12||n===160||n>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(n)}function ga(n){return n===10||n===13||n===8232||n===8233}function pa(n){return n===36||n===95||n>=65&&n<=90||n>=97&&n<=122||n===92||n>=128&&w3.test(String.fromCharCode(n))}function Vl(n){return n===36||n===95||n>=65&&n<=90||n>=97&&n<=122||n>=48&&n<=57||n===92||n>=128&&I3.test(String.fromCharCode(n))}const b3={if:1,in:1,do:1,var:1,for:1,new:1,try:1,let:1,this:1,else:1,case:1,void:1,with:1,enum:1,while:1,break:1,catch:1,throw:1,const:1,yield:1,class:1,super:1,return:1,typeof:1,delete:1,switch:1,export:1,import:1,public:1,static:1,default:1,finally:1,extends:1,package:1,private:1,function:1,continue:1,debugger:1,interface:1,protected:1,instanceof:1,implements:1};function wp(){for(;R<nt;){const n=V.charCodeAt(R);if(E3(n)||ga(n))++R;else break}}function xA(n){var t,e,r,i=0;for(e=n==="u"?4:2,t=0;t<e;++t)R<nt&&bA(V[R])?(r=V[R++],i=i*16+"0123456789abcdef".indexOf(r.toLowerCase())):ce({},Ve,$e);return String.fromCharCode(i)}function x3(){var n,t,e,r;for(n=V[R],t=0,n==="}"&&ce({},Ve,$e);R<nt&&(n=V[R++],!!bA(n));)t=t*16+"0123456789abcdef".indexOf(n.toLowerCase());return(t>1114111||n!=="}")&&ce({},Ve,$e),t<=65535?String.fromCharCode(t):(e=(t-65536>>10)+55296,r=(t-65536&1023)+56320,String.fromCharCode(e,r))}function Ip(){var n,t;for(n=V.charCodeAt(R++),t=String.fromCharCode(n),n===92&&(V.charCodeAt(R)!==117&&ce({},Ve,$e),++R,n=xA("u"),(!n||n==="\\"||!pa(n.charCodeAt(0)))&&ce({},Ve,$e),t=n);R<nt&&(n=V.charCodeAt(R),!!Vl(n));)++R,t+=String.fromCharCode(n),n===92&&(t=t.substr(0,t.length-1),V.charCodeAt(R)!==117&&ce({},Ve,$e),++R,n=xA("u"),(!n||n==="\\"||!Vl(n.charCodeAt(0)))&&ce({},Ve,$e),t+=n);return t}function B3(){var n,t;for(n=R++;R<nt;){if(t=V.charCodeAt(R),t===92)return R=n,Ip();if(Vl(t))++R;else break}return V.slice(n,R)}function v3(){var n,t,e;return n=R,t=V.charCodeAt(R)===92?Ip():B3(),t.length===1?e=qr:b3.hasOwnProperty(t)?e=er:t==="null"?e=Yl:t==="true"||t==="false"?e=Hl:e=qr,{type:e,value:t,start:n,end:R}}function BA(){var n=R,t=V.charCodeAt(R),e,r=V[R],i,s,o;switch(t){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++R,{type:yt,value:String.fromCharCode(t),start:n,end:R};default:if(e=V.charCodeAt(R+1),e===61)switch(t){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return R+=2,{type:yt,value:String.fromCharCode(t)+String.fromCharCode(e),start:n,end:R};case 33:case 61:return R+=2,V.charCodeAt(R)===61&&++R,{type:yt,value:V.slice(n,R),start:n,end:R}}}if(o=V.substr(R,4),o===">>>=")return R+=4,{type:yt,value:o,start:n,end:R};if(s=o.substr(0,3),s===">>>"||s==="<<="||s===">>=")return R+=3,{type:yt,value:s,start:n,end:R};if(i=s.substr(0,2),r===i[1]&&"+-<>&|".includes(r)||i==="=>")return R+=2,{type:yt,value:i,start:n,end:R};if(i==="//"&&ce({},Ve,$e),"<>=!+-*%&|^/".includes(r))return++R,{type:yt,value:r,start:n,end:R};ce({},Ve,$e)}function Q3(n){let t="";for(;R<nt&&bA(V[R]);)t+=V[R++];return t.length===0&&ce({},Ve,$e),pa(V.charCodeAt(R))&&ce({},Ve,$e),{type:Kr,value:parseInt("0x"+t,16),start:n,end:R}}function S3(n){let t="0"+V[R++];for(;R<nt&&da(V[R]);)t+=V[R++];return(pa(V.charCodeAt(R))||Rn(V.charCodeAt(R)))&&ce({},Ve,$e),{type:Kr,value:parseInt(t,8),octal:!0,start:n,end:R}}function Ep(){var n,t,e;if(e=V[R],_l(Rn(e.charCodeAt(0))||e===".","Numeric literal must start with a decimal digit or a decimal point"),t=R,n="",e!=="."){if(n=V[R++],e=V[R],n==="0"){if(e==="x"||e==="X")return++R,Q3(t);if(da(e))return S3(t);e&&Rn(e.charCodeAt(0))&&ce({},Ve,$e)}for(;Rn(V.charCodeAt(R));)n+=V[R++];e=V[R]}if(e==="."){for(n+=V[R++];Rn(V.charCodeAt(R));)n+=V[R++];e=V[R]}if(e==="e"||e==="E")if(n+=V[R++],e=V[R],(e==="+"||e==="-")&&(n+=V[R++]),Rn(V.charCodeAt(R)))for(;Rn(V.charCodeAt(R));)n+=V[R++];else ce({},Ve,$e);return pa(V.charCodeAt(R))&&ce({},Ve,$e),{type:Kr,value:parseFloat(n),start:t,end:R}}function D3(){var n="",t,e,r,i,s=!1;for(t=V[R],_l(t==="'"||t==='"',"String literal must starts with a quote"),e=R,++R;R<nt;)if(r=V[R++],r===t){t="";break}else if(r==="\\")if(r=V[R++],!r||!ga(r.charCodeAt(0)))switch(r){case"u":case"x":V[R]==="{"?(++R,n+=x3()):n+=xA(r);break;case"n":n+=`
|
|
316
|
+
`;break;case"r":n+="\r";break;case"t":n+=" ";break;case"b":n+="\b";break;case"f":n+="\f";break;case"v":n+="\v";break;default:da(r)?(i="01234567".indexOf(r),i!==0&&(s=!0),R<nt&&da(V[R])&&(s=!0,i=i*8+"01234567".indexOf(V[R++]),"0123".includes(r)&&R<nt&&da(V[R])&&(i=i*8+"01234567".indexOf(V[R++]))),n+=String.fromCharCode(i)):n+=r;break}else r==="\r"&&V[R]===`
|
|
317
|
+
`&&++R;else{if(ga(r.charCodeAt(0)))break;n+=r}return t!==""&&ce({},Ve,$e),{type:Aa,value:n,octal:s,start:e,end:R}}function k3(n,t){let e=n;t.includes("u")&&(e=e.replace(/\\u\{([0-9a-fA-F]+)\}/g,(r,i)=>{if(parseInt(i,16)<=1114111)return"x";ce({},IA)}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"));try{new RegExp(e)}catch{ce({},IA)}try{return new RegExp(n,t)}catch{return null}}function F3(){var n,t,e,r,i;for(n=V[R],_l(n==="/","Regular expression literal must start with a slash"),t=V[R++],e=!1,r=!1;R<nt;)if(n=V[R++],t+=n,n==="\\")n=V[R++],ga(n.charCodeAt(0))&&ce({},EA),t+=n;else if(ga(n.charCodeAt(0)))ce({},EA);else if(e)n==="]"&&(e=!1);else if(n==="/"){r=!0;break}else n==="["&&(e=!0);return r||ce({},EA),i=t.substr(1,t.length-2),{value:i,literal:t}}function M3(){var n,t,e;for(t="",e="";R<nt&&(n=V[R],!!Vl(n.charCodeAt(0)));)++R,n==="\\"&&R<nt?ce({},Ve,$e):(e+=n,t+=n);return e.search(/[^gimuy]/g)>=0&&ce({},IA,e),{value:e,literal:t}}function R3(){var n,t,e,r;return Ae=null,wp(),n=R,t=F3(),e=M3(),r=k3(t.value,e.value),{literal:t.literal+e.literal,value:r,regex:{pattern:t.value,flags:e.value},start:n,end:R}}function N3(n){return n.type===qr||n.type===er||n.type===Hl||n.type===Yl}function bp(){if(wp(),R>=nt)return{type:fa,start:R,end:R};const n=V.charCodeAt(R);return pa(n)?v3():n===40||n===41||n===59?BA():n===39||n===34?D3():n===46?Rn(V.charCodeAt(R+1))?Ep():BA():Rn(n)?Ep():BA()}function wt(){const n=Ae;return R=n.end,Ae=bp(),R=n.end,n}function xp(){const n=R;Ae=bp(),R=n}function T3(n){const t=new Kt(i3);return t.elements=n,t}function Bp(n,t,e){const r=new Kt(n==="||"||n==="&&"?l3:s3);return r.operator=n,r.left=t,r.right=e,r}function P3(n,t){const e=new Kt(o3);return e.callee=n,e.arguments=t,e}function L3(n,t,e){const r=new Kt(a3);return r.test=n,r.consequent=t,r.alternate=e,r}function vA(n){const t=new Kt(Cp);return t.name=n,t}function ma(n){const t=new Kt(c3);return t.value=n.value,t.raw=V.slice(n.start,n.end),n.regex&&(t.raw==="//"&&(t.raw="/(?:)/"),t.regex=n.regex),t}function vp(n,t,e){const r=new Kt(u3);return r.computed=n==="[",r.object=t,r.property=e,r.computed||(e.member=!0),r}function O3(n){const t=new Kt(f3);return t.properties=n,t}function Qp(n,t,e){const r=new Kt(A3);return r.key=t,r.value=e,r.kind=n,r}function U3(n,t){const e=new Kt(h3);return e.operator=n,e.argument=t,e.prefix=!0,e}function ce(n,t){var e,r=Array.prototype.slice.call(arguments,2),i=t.replace(/%(\d)/g,(s,o)=>(_l(o<r.length,"Message reference must be in range"),r[o]));throw e=new Error(i),e.index=R,e.description=i,e}function Jl(n){n.type===fa&&ce(n,C3),n.type===Kr&&ce(n,d3),n.type===Aa&&ce(n,g3),n.type===qr&&ce(n,p3),n.type===er&&ce(n,m3),ce(n,Ve,n.value)}function rt(n){const t=wt();(t.type!==yt||t.value!==n)&&Jl(t)}function Ee(n){return Ae.type===yt&&Ae.value===n}function QA(n){return Ae.type===er&&Ae.value===n}function G3(){const n=[];for(R=Ae.start,rt("[");!Ee("]");)Ee(",")?(wt(),n.push(null)):(n.push(jr()),Ee("]")||rt(","));return wt(),T3(n)}function Sp(){R=Ae.start;const n=wt();return n.type===Aa||n.type===Kr?(n.octal&&ce(n,yp),ma(n)):vA(n.value)}function z3(){var n,t,e,r;if(R=Ae.start,n=Ae,n.type===qr)return e=Sp(),rt(":"),r=jr(),Qp("init",e,r);if(n.type===fa||n.type===yt)Jl(n);else return t=Sp(),rt(":"),r=jr(),Qp("init",t,r)}function H3(){var n=[],t,e,r,i={},s=String;for(R=Ae.start,rt("{");!Ee("}");)t=z3(),t.key.type===Cp?e=t.key.name:e=s(t.key.value),r="$"+e,Object.prototype.hasOwnProperty.call(i,r)?ce({},y3):i[r]=!0,n.push(t),Ee("}")||rt(",");return rt("}"),O3(n)}function Y3(){rt("(");const n=SA();return rt(")"),n}const _3={if:1};function V3(){var n,t,e;if(Ee("("))return Y3();if(Ee("["))return G3();if(Ee("{"))return H3();if(n=Ae.type,R=Ae.start,n===qr||_3[Ae.value])e=vA(wt().value);else if(n===Aa||n===Kr)Ae.octal&&ce(Ae,yp),e=ma(wt());else{if(n===er)throw new Error(ha);n===Hl?(t=wt(),t.value=t.value==="true",e=ma(t)):n===Yl?(t=wt(),t.value=null,e=ma(t)):Ee("/")||Ee("/=")?(e=ma(R3()),xp()):Jl(wt())}return e}function J3(){const n=[];if(rt("("),!Ee(")"))for(;R<nt&&(n.push(jr()),!Ee(")"));)rt(",");return rt(")"),n}function q3(){R=Ae.start;const n=wt();return N3(n)||Jl(n),vA(n.value)}function K3(){return rt("."),q3()}function j3(){rt("[");const n=SA();return rt("]"),n}function W3(){var n,t,e;for(n=V3();;)if(Ee("."))e=K3(),n=vp(".",n,e);else if(Ee("("))t=J3(),n=P3(n,t);else if(Ee("["))e=j3(),n=vp("[",n,e);else break;return n}function Dp(){const n=W3();if(Ae.type===yt&&(Ee("++")||Ee("--")))throw new Error(ha);return n}function ql(){var n,t;if(Ae.type!==yt&&Ae.type!==er)t=Dp();else{if(Ee("++")||Ee("--"))throw new Error(ha);if(Ee("+")||Ee("-")||Ee("~")||Ee("!"))n=wt(),t=ql(),t=U3(n.value,t);else{if(QA("delete")||QA("void")||QA("typeof"))throw new Error(ha);t=Dp()}}return t}function kp(n){let t=0;if(n.type!==yt&&n.type!==er)return 0;switch(n.value){case"||":t=1;break;case"&&":t=2;break;case"|":t=3;break;case"^":t=4;break;case"&":t=5;break;case"==":case"!=":case"===":case"!==":t=6;break;case"<":case">":case"<=":case">=":case"instanceof":case"in":t=7;break;case"<<":case">>":case">>>":t=8;break;case"+":case"-":t=9;break;case"*":case"/":case"%":t=11;break}return t}function X3(){var n,t,e,r,i,s,o,a,l,c;if(n=Ae,l=ql(),r=Ae,i=kp(r),i===0)return l;for(r.prec=i,wt(),t=[n,Ae],o=ql(),s=[l,r,o];(i=kp(Ae))>0;){for(;s.length>2&&i<=s[s.length-2].prec;)o=s.pop(),a=s.pop().value,l=s.pop(),t.pop(),e=Bp(a,l,o),s.push(e);r=wt(),r.prec=i,s.push(r),t.push(Ae),e=ql(),s.push(e)}for(c=s.length-1,e=s[c],t.pop();c>1;)t.pop(),e=Bp(s[c-1].value,s[c-2],e),c-=2;return e}function jr(){var n,t,e;return n=X3(),Ee("?")&&(wt(),t=jr(),rt(":"),e=jr(),n=L3(n,t,e)),n}function SA(){const n=jr();if(Ee(","))throw new Error(ha);return n}function Fp(n){V=n,R=0,nt=V.length,Ae=null,xp();const t=SA();if(Ae.type!==fa)throw new Error("Unexpect token after expression.");return t}var Z3={NaN:"NaN",E:"Math.E",LN2:"Math.LN2",LN10:"Math.LN10",LOG2E:"Math.LOG2E",LOG10E:"Math.LOG10E",PI:"Math.PI",SQRT1_2:"Math.SQRT1_2",SQRT2:"Math.SQRT2",MIN_VALUE:"Number.MIN_VALUE",MAX_VALUE:"Number.MAX_VALUE"};function Mp(n){function t(o,a,l,c){let u=n(a[0]);return l&&(u=l+"("+u+")",l.lastIndexOf("new ",0)===0&&(u="("+u+")")),u+"."+o+(c<0?"":c===0?"()":"("+a.slice(1).map(n).join(",")+")")}function e(o,a,l){return c=>t(o,c,a,l)}const r="new Date",i="String",s="RegExp";return{isNaN:"Number.isNaN",isFinite:"Number.isFinite",abs:"Math.abs",acos:"Math.acos",asin:"Math.asin",atan:"Math.atan",atan2:"Math.atan2",ceil:"Math.ceil",cos:"Math.cos",exp:"Math.exp",floor:"Math.floor",hypot:"Math.hypot",log:"Math.log",max:"Math.max",min:"Math.min",pow:"Math.pow",random:"Math.random",round:"Math.round",sin:"Math.sin",sqrt:"Math.sqrt",tan:"Math.tan",clamp:function(o){o.length<3&&Ne("Missing arguments to clamp function."),o.length>3&&Ne("Too many arguments to clamp function.");const a=o.map(n);return"Math.max("+a[1]+", Math.min("+a[2]+","+a[0]+"))"},now:"Date.now",utc:"Date.UTC",datetime:r,date:e("getDate",r,0),day:e("getDay",r,0),year:e("getFullYear",r,0),month:e("getMonth",r,0),hours:e("getHours",r,0),minutes:e("getMinutes",r,0),seconds:e("getSeconds",r,0),milliseconds:e("getMilliseconds",r,0),time:e("getTime",r,0),timezoneoffset:e("getTimezoneOffset",r,0),utcdate:e("getUTCDate",r,0),utcday:e("getUTCDay",r,0),utcyear:e("getUTCFullYear",r,0),utcmonth:e("getUTCMonth",r,0),utchours:e("getUTCHours",r,0),utcminutes:e("getUTCMinutes",r,0),utcseconds:e("getUTCSeconds",r,0),utcmilliseconds:e("getUTCMilliseconds",r,0),length:e("length",null,-1),parseFloat:"parseFloat",parseInt:"parseInt",upper:e("toUpperCase",i,0),lower:e("toLowerCase",i,0),substring:e("substring",i),split:e("split",i),trim:e("trim",i,0),btoa:"btoa",atob:"atob",regexp:s,test:e("test",s),if:function(o){o.length<3&&Ne("Missing arguments to if function."),o.length>3&&Ne("Too many arguments to if function.");const a=o.map(n);return"("+a[0]+"?"+a[1]+":"+a[2]+")"}}}function $3(n){const t=n&&n.length-1;return t&&(n[0]==='"'&&n[t]==='"'||n[0]==="'"&&n[t]==="'")?n.slice(1,-1):n}function Rp(n){n=n||{};const t=n.allowed?Cl(n.allowed):{},e=n.forbidden?Cl(n.forbidden):{},r=n.constants||Z3,i=(n.functions||Mp)(f),s=n.globalvar,o=n.fieldvar,a=Ft(s)?s:d=>`${s}["${d}"]`;[...Object.getOwnPropertyNames(Object.prototype).filter(d=>typeof Object.prototype[d]=="function")];let l={},c={},u=0;function f(d){if(Ce(d))return d;const g=h[d.type];return g==null&&Ne("Unsupported type: "+d.type),g(d)}const h={Literal:d=>d.raw,Identifier:d=>{const g=d.name;return u>0?g:_i(e,g)?Ne("Illegal identifier: "+g):_i(r,g)?r[g]:_i(t,g)?g:(l[g]=1,a(g))},MemberExpression:d=>{const g=!d.computed,p=f(d.object);g&&(u+=1);const C=f(d.property);return p===o&&(c[$3(C)]=1),g&&(u-=1),p+(g?"."+C:"["+C+"]")},CallExpression:d=>{d.callee.type!=="Identifier"&&Ne("Illegal callee type: "+d.callee.type);const g=d.callee.name,p=d.arguments,C=_i(i,g)&&i[g];return C||Ne("Unrecognized function: "+g),Ft(C)?C(p):C+"("+p.map(f).join(",")+")"},ArrayExpression:d=>"["+d.elements.map(f).join(",")+"]",BinaryExpression:d=>"("+f(d.left)+" "+d.operator+" "+f(d.right)+")",UnaryExpression:d=>"("+d.operator+f(d.argument)+")",ConditionalExpression:d=>"("+f(d.test)+"?"+f(d.consequent)+":"+f(d.alternate)+")",LogicalExpression:d=>"("+f(d.left)+d.operator+f(d.right)+")",ObjectExpression:d=>{for(const g of d.properties){const p=g.key.name;Qb.has(p)&&Ne("Illegal property: "+p)}return"{"+d.properties.map(f).join(",")+"}"},Property:d=>{u+=1;const g=f(d.key);return u-=1,g+":"+f(d.value)}};function A(d){const g={code:f(d),globals:Object.keys(l),fields:Object.keys(c)};return l={},c={},g}return A.functions=i,A.constants=r,A}function Np(n,t,e){return e=(e-n)/(t-n),e=Math.max(0,Math.min(1,e)),e*e*(3-2*e)}function $i(n,t=0,e=1){return Math.max(t,Math.min(e,n))}function eQ(n,t,e){return $i((e-n)/(t-n),0,1)}const Tp={clamp:$i,format(n,t){return Ze(t)(n)},mapHasKey(n,t){return n.has(t)},isArray:Xe,isBoolean:Po,isDefined(n){return n!==void 0},isNumber:ft,isObject:et,isRegExp:Hb,isString:Ce,isValid(n){return n!=null&&n===n},lerp:ag,linearstep:eQ,replace(n,t,e){return String(n).replace(t,e)},smoothstep:Np};function tQ(n){const t=Mp(n);for(const e in Tp)t[e]=`this.${e}`;return t}const nQ=Rp({forbidden:[],allowed:["datum","undefined"],globalvar:"globalObject",fieldvar:"datum",functions:tQ});function rQ(n,t={}){try{const e=Fp(n),r=nQ(e),i=Function("datum","globalObject",`"use strict";
|
|
318
|
+
try {
|
|
319
|
+
return (${r.code});
|
|
320
|
+
} catch (e) {
|
|
321
|
+
throw new Error("Error evaluating expression: " + ${JSON.stringify(n)} + ", " + e.message, e);
|
|
322
|
+
}`).bind(Tp),s=(o=>i(o,t));return s.fields=r.fields,s.globals=r.globals,s.code=r.code,s}catch(e){throw new Error(`Invalid expression: ${n}, ${e.message}`)}}const iQ=Rp({forbidden:[],allowed:["event"],globalvar:"globalObject"});function Pp(n){try{const t=Fp(n),e=iQ(t);return Function("event","globalObject",`"use strict";
|
|
323
|
+
try {
|
|
324
|
+
return !!(${e.code});
|
|
325
|
+
} catch (e) {
|
|
326
|
+
throw new Error("Error evaluating expression: " + ${JSON.stringify(n)} + ", " + e.message, e);
|
|
327
|
+
}`)}catch(t){throw new Error(`Invalid expression: ${n}, ${t.message}`)}}const cn=1,tr=2,DA=4;class kA{constructor(t){D(this,Bi);j(this,"stats",{count:0,first:null});j(this,"paramMediatorProvider",null);this.paramMediatorProvider=t,this.children=[],this.parent=void 0,this.completed=!1}get behavior(){return 0}get label(){return`(${this.constructor.name})`}reset(){this.completed=!1;for(const t of this.children)t.reset();this.stats.count=0,this.stats.first=null}initialize(){}setParent(t){this.parent=t}addChild(t){if(t.parent)throw new Error("Cannot add the child! It already has a parent.");return this.children.push(t),t.setParent(this),P(this,Bi,ll).call(this),this}adopt(t){t.parent&&t.parent.removeChild(t),this.addChild(t)}adoptChildrenOf(t){for(const e of t.children)this.adopt(e)}insertAsParent(t){var e;if(this.isRoot())throw new Error("Cannot insert a new parent for a root node!");t.parent=this.parent,this.parent.children[this.parent.children.indexOf(this)]=t,P(e=this.parent,Bi,ll).call(e),this.parent=void 0,t.addChild(this)}removeChild(t){const e=this.children.indexOf(t);if(e>-1)this.children.splice(e,1),t.parent=void 0,P(this,Bi,ll).call(this);else throw new Error("Trying to remove an unknown child node!")}excise(){var t;if(this.isRoot())throw new Error("Cannot excise root node!");if(this.isTerminal())this.parent.removeChild(this);else if(this.children.length==1){const e=this.children[0];e.setParent(this.parent),this.parent.children[this.parent.children.indexOf(this)]=e,P(t=this.parent,Bi,ll).call(t),this.setParent(void 0),this.children.length=0}else throw new Error("Cannot excise a node that has multiple children!")}isRoot(){return!this.parent}isBranching(){return this.children.length>1}isTerminal(){return this.children.length==0}visit(t){t(this);for(const e of this.children)e.visit(t);t.afterChildren&&t.afterChildren(this)}subtreeToString(t=0){const e=this.children.map(r=>r.subtreeToString(t+1)).join("");return`${" ".repeat(t*2)}* ${this.label}${"identifier"in this&&this.identifier?": "+this.identifier:""}
|
|
328
|
+
${e}`}handle(t){this._propagate(t)}complete(){this.completed=!0;for(const t of this.children)t.complete()}beginBatch(t){for(const e of this.children)e.beginBatch(t)}get paramMediator(){if(this.paramMediatorProvider)return this.paramMediatorProvider.paramMediator;if(!this.parent)throw new Error("Cannot find paramMediator!");return this.parent.paramMediator}repropagate(){if(this.parent)this.parent.repropagate();else throw new Error("Cannot repropagate data, no FlowNode with stored data found!")}_propagate(t){}}Bi=new WeakSet,ll=function(){this._propagate=Function("children","stats",Ko(this.children.length).map(t=>`const child${t} = children[${t}];`).join(`
|
|
329
|
+
`)+`return function propagate(datum) {
|
|
330
|
+
if (stats.count === 0) {
|
|
331
|
+
stats.first = structuredClone(datum);
|
|
332
|
+
}
|
|
333
|
+
stats.count++;
|
|
334
|
+
${Ko(this.children.length).map(t=>`child${t}.handle(datum);`).join(`
|
|
335
|
+
`)}
|
|
336
|
+
};`)(this.children,this.stats)};function Lp(n){return n.type=="file"}function sQ(n){return n.type=="facet"}class Ue extends kA{constructor(e,r){super(r);D(this,mc);F(this,mc,e.type)}get label(){return m(this,mc)}}mc=new WeakMap;const Rt="_uniqueId",Op=1e4,Up=[null];class FA extends Ue{get behavior(){return tr}constructor(t){super(t),this.params=t,this.as=t.as??Rt,this._blocks=[],this._usedBlocks=0,this._id=-1}initialize(){}reset(){super.reset(),this._usedBlocks=0,this._id=-1}handle(t){t[this.as]=this._nextId(),this._propagate(t)}_nextId(){return++this._id%Op==0&&(this._id=this._getBlock()*Op),this._id}_getBlock(){return this._usedBlocks<this._blocks.length?this._blocks[this._usedBlocks++]:this._reserveBlock()}_reserveBlock(){const t=Up.length;return Up[t]=this,this._blocks.push(t),this._usedBlocks++,t}}function ue(n,t=n){if(/^[A-Za-z0-9_]+$/.test(n)){const e=function(i){n in i||oQ(i,n)},r=new Function("validator",`
|
|
337
|
+
let validated = !validator;
|
|
338
|
+
return function accessField(datum) {
|
|
339
|
+
if (!validated) {
|
|
340
|
+
validator(datum);
|
|
341
|
+
validated = true;
|
|
342
|
+
}
|
|
343
|
+
return datum[${JSON.stringify(n)}];
|
|
344
|
+
}`)(e);return te(r,[n],t)}else return dl(n)}function oQ(n,t){throw new Error(`Invalid field "${t}". Available fields or properties: ${Object.keys(n).join(", ")}`)}function Gp(n,t,e){if(!n)return;function r(s){const o=s;return o.fields??(o.fields=[]),o.constant=o.fields.length===0,o.channelDef=t,o.channel=n,o.scaleChannel=((vt(t)&&t.resolutionChannel)??(jl(n)&&n))||void 0,"param"in t?(o.predicate=em(!1),o.predicate.param=t.param,o.predicate.empty=t.empty??!0):(o.predicate=em(!0),o.predicate.empty=!1),o.asNumberAccessor=()=>o,o}function i(s){if(it(s)){const o=r(e.createExpression(s.expr));if(o.fields.length>0)throw new Error("Expression in DatumDef/ValueDef cannot access data fields: "+s.expr);return o}else{const o=s;return r(()=>o)}}if(nr(t))try{return r(ue(t.field))}catch(s){throw new Error(`Invalid field definition: ${s.message}`)}else{if(ya(t))return r(e.createExpression(t.expr));if(Ca(t))return i(t.datum);if(Nt(t))return i(t.value);throw new Error(`Invalid channel definition: "${n}": ${JSON.stringify(t)}! The channel definition must contain one of the following properties: "field", "datum", "value" or "expr".`)}}function aQ(n,t,e){const r=[];if(fQ(t)||MA(t)){const i=Array.isArray(t.condition)?t.condition:[t.condition];for(const s of i)r.push(Gp(n,s,e))}if(r.push(Gp(n,t,e)),r.filter(i=>!i.constant).length>1)throw new Error("Only one accessor can be non-constant. Channel: "+n);return r}function cQ(n,t){const e={},r=i=>{var s;return(s=n.getScaleResolution(i))==null?void 0:s.getScale()};for(const[i,s]of Object.entries(t))s&&(e[i]=lQ(aQ(i,s,n.paramMediator),r));return e}function lQ(n,t){if(n.length===1)return zp(n[0],t);const e=n.map(s=>s.predicate),r=n.map(s=>zp(s,t));return Object.assign(s=>{for(let o=0;o<r.length;o++)if(e[o](s))return r[o](s)},{constant:!1,accessors:r.map(s=>s.accessors[0]),dataAccessor:r.map(s=>s.dataAccessor).find(s=>s),scale:r.map(s=>s.scale).find(s=>s),channelDef:n.at(-1).channelDef})}function zp(n,t){const{channel:e,scaleChannel:r,channelDef:i}=n,s=n.scaleChannel?t(r):void 0;if(r&&!s)throw new Error(`Missing scale! "${e}": ${JSON.stringify(i)}`);return Object.assign(s?o=>s(n(o)):o=>n(o),{scale:s,constant:n.constant,accessors:[n],dataAccessor:n.constant?void 0:n,channelDef:i})}function Nt(n){return n&&"value"in n}function nr(n){return n&&"field"in n}function Ca(n){return n&&"datum"in n}function vt(n){return nr(n)||Ca(n)||ya(n)||Yp(n)}function Hp(n){if(MA(n)){const t=n.condition;if(!Array.isArray(t)&&vt(t))return t}else if(vt(n))return n}function uQ(n,t){const e=n.mark.encoding[t];if(vt(e))return e;throw new Error("Not a channel def with scale!")}function Yp(n){return n&&"chrom"in n}function ya(n){return n&&"expr"in n}function fQ(n){return(nr(n)||Ca(n))&&"condition"in n}function MA(n){return Nt(n)&&"condition"in n}const Wr=["x","y"],AQ=["x2","y2"],hQ=[...Wr,...AQ];function RA(n){return Wr.includes(n)}function wa(n){return hQ.includes(n)}const _p={x:"x2",y:"y2"},Vp=Object.fromEntries(Object.entries(_p).map(n=>[n[1],n[0]]));function NA(n){return n in Vp}function TA(n){const t=_p[n];if(t)return t;throw new Error(`${n} has no secondary channel!`)}function Xr(n){return Vp[n]??n}function rr(n){return["color","fill","stroke"].includes(Xr(n))}function Kl(n){return["shape"].includes(n)}function jl(n){return["x","y","x2","y2","color","fill","stroke","opacity","fillOpacity","strokeOpacity","strokeWidth","size","shape","angle","dx","dy","sample"].includes(n)}function dQ(n){switch(n){case"shape":return["circle","square","cross","diamond","triangle-up","triangle-right","triangle-down","triangle-left","tick-up","tick-right","tick-down","tick-left"]}}function Jp(n){if(!Kl(n))throw new Error("Not a discrete channel: "+n);const t=new Map(dQ(n).map((e,r)=>[e,r]));return e=>{const r=t.get(e);if(r!==void 0)return r;throw new Error(`Invalid value for "${n}" channel: ${e}`)}}function PA(n){return{type:"single",datum:n,uniqueId:n==null?void 0:n[Rt]}}function LA(n){return n??(n=[]),{type:"multi",data:new Map(n.map(t=>[t[Rt],t]))}}function qp(n){return{type:"interval",intervals:Object.fromEntries(n.map(t=>[t,null]))}}function gQ(n,{add:t,remove:e,toggle:r}){const i=n.data;for(const s of t??[])i.set(s[Rt],s);for(const s of e??[])i.delete(s[Rt]);for(const s of r??[]){const o=s[Rt];i.has(o)?i.delete(o):i.set(o,s)}return{type:"multi",data:i}}function pQ(n,t){const e=!!(n.empty??!0),r=Ia(n.param),i=n.fields??{};if(jp(t))return`${r}.uniqueId == null ? ${e} : ${r}.uniqueId === datum[${JSON.stringify(Rt)}]`;if(OA(t))return`${r}.data.size == 0 ? ${e} : mapHasKey(${r}.data, datum[${JSON.stringify(Rt)}])`;if(Kp(t)){const s=Object.keys(t.intervals),o=Object.keys(i).filter(RA);if(o.length===0)throw new Error("Filtering using interval selections requires at least one primary positional channel in the config! "+JSON.stringify(n));if(o.some(c=>!s.includes(c)))throw new Error(`Selection channels (${s.join(", ")}) do not match the fields: ${JSON.stringify(n)}!`);const a=c=>`datum[${JSON.stringify(c)}]`;return s.map(c=>{const u=TA(c),f=i[c],h=i[u]??i[c],A=`${r}.intervals.${c}[0] <= ${a(h)}`,d=`${a(f)} <= ${r}.intervals.${c}[1]`;return`(${r}.intervals.${c} ? (${A} && ${d}) : ${e})`}).join(" && ")}else throw new Error(`Unrecognized selection type : ${JSON.stringify(t)}`)}function Kp(n){return n.type==="interval"}function jp(n){return n.type==="single"}function OA(n){return n.type==="multi"}function Wl(n){const t=typeof n=="string"?{type:n}:{...n};return t.on=t.on?Zp(t.on):Xl(t)?{type:"click"}:void 0,t.clear=t.clear===!1?void 0:t.clear===!0||t.clear==null?{type:"dblclick"}:Zp(t.clear),Xl(t)&&t.on.type==="click"&&(t.toggle=!0),t}function Xl(n){return n&&n.type=="point"}function Wp(n){return n&&n.type=="interval"}function Xp(n){return Object.values(n.intervals).some(t=>t&&t.length===2)}function mQ(n,t){return Object.entries(n.intervals).every(([e,r])=>(e=="x"||e=="y")&&r&&r[0]<=t[e]&&r[1]>=t[e])}function Zp(n){if(typeof n=="string"){const t=n.match(/^([a-zA-Z]+)(?:\[(.+)\])?$/);if(!t)throw new Error(`Invalid event type string: ${n}`);const[,e,r]=t,i={type:e};return r&&(i.filter=r),i}else return n}class CQ{constructor(t){D(this,vr);j(this,"paramListeners");D(this,vi,new Map);D(this,Js,new Map);D(this,qs,new Map);D(this,Cc);F(this,Cc,t??(()=>{})),F(this,vr,new Map),this.paramListeners=new Map}registerParam(t){const e=t.name;if("value"in t&&"expr"in t)throw new Error(`The parameter "${e}" must not have both value and expr properties!`);let r;if(t.push=="outer"){const i=this.findMediatorForParam(e);if(!i)throw new Error(`Parameter "${e}" not found in outer scope!`);const s=i.paramConfigs.get(e);if("expr"in s||"select"in s)throw new Error(`The outer parameter "${e}" must not have expr or select properties!`);r=i.getSetter(e),m(this,vi).set(e,r)}else if("value"in t)r=this.allocateSetter(e,t.value);else if("expr"in t){const i=this.createExpression(t.expr),s=this.allocateSetter(e,i(null));i.addListener(()=>s(i(null))),r=o=>{}}else r=this.allocateSetter(e,null);if("select"in t){const i=Wl(t.select);if(Xl(i))r(i.toggle?LA():PA(null));else if(Wp(i)){if(!i.encodings)throw new Error(`Interval selection "${e}" must have encodings defined!`);r(qp(i.encodings))}}return m(this,qs).set(e,t),r}allocateSetter(t,e,r=!1){if(Ia(t),m(this,vi).has(t))throw new Error("Setter already allocated for parameter: "+t);const i=s=>{const o=m(this,vr).get(t);if(s!==o){m(this,vr).set(t,s);const a=this.paramListeners.get(t);if(a&&!r)for(const l of a)l()}};return i(e),m(this,vi).set(t,i),i}getSetter(t){const e=m(this,vi).get(t);if(!e)throw new Error("Setter not found for parameter: "+t);return e}getValue(t){return m(this,vr).get(t)}findValue(t){const e=this.findMediatorForParam(t);return e==null?void 0:e.getValue(t)}get paramConfigs(){return m(this,qs)}findMediatorForParam(t){var e;return m(this,vr).has(t)?this:(e=m(this,Cc).call(this))==null?void 0:e.findMediatorForParam(t)}createExpression(t){if(m(this,Js).has(t))return m(this,Js).get(t);const e={},r=rQ(t,e),i=new Map;for(const o of r.globals){const a=this.findMediatorForParam(o);if(!a)throw new Error(`Unknown variable "${o}" in expression: ${t}`);i.set(o,a),Object.defineProperty(e,o,{enumerable:!0,get(){return a.getValue(o)}})}const s=new Set;return r.addListener=o=>{for(const[a,l]of i){const c=l.paramListeners.get(a)??new Set;l.paramListeners.set(a,c),c.add(o),s.add(o)}},r.removeListener=o=>{var a;for(const[l,c]of i)(a=c.paramListeners.get(l))==null||a.delete(o);s.delete(o)},r.invalidate=()=>{var o;for(const[a,l]of i)for(const c of s)(o=l.paramListeners.get(a))==null||o.delete(c);s.clear()},r.identifier=()=>r.code,m(this,Js).set(t,r),r}evaluateAndGet(t){return this.createExpression(t)()}hasPointSelections(){for(const t of m(this,qs).values())if($p(t)){const e=t.select;if(Ce(e)){if(e=="point")return!0}else if(e.type=="point")return!0}return!1}}vr=new WeakMap,vi=new WeakMap,Js=new WeakMap,qs=new WeakMap,Cc=new WeakMap;function it(n){return typeof n=="object"&&n!=null&&"expr"in n&&Ce(n.expr)}function Tt(n){if(it(n))throw new Error(`ExprRef ${JSON.stringify(n)} not allowed here. Expected a scalar value.`);return n}function yQ(n){return("expr"in n||"bind"in n)&&!("select"in n)}function $p(n){return!("expr"in n||"bind"in n)&&"select"in n}function Zl(n,t,e){const r={...t},i=[],s=o=>{i.push(o),i.length===1&&queueMicrotask(()=>{e(i.slice()),i.length=0})};for(const[o,a]of Object.entries(t))if(it(a)){const l=n.createExpression(a.expr);e&&l.addListener(()=>s(o)),Object.defineProperty(r,o,{enumerable:!0,get(){return l()}})}else r[o]=a;return r}function Ia(n){if(!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(n))throw new Error(`Invalid parameter name: ${n}. Must be a valid JavaScript identifier.`);return n}function em(n){return Object.assign(()=>n,{addListener:()=>{},removeListener:()=>{},invalidate:()=>{},identifier:()=>"constant",fields:[],globals:[],code:JSON.stringify(n)})}function wQ(n){const t=Math.floor(Math.random()*16777215).toString(16),e=[];for(const r of n.paramConfigs.values()){if(!yQ(r))continue;const i=r.bind;if(!i||!("input"in i))continue;const s=r.name,o=n.getSetter(s),a=n.getValue(s),l=i.name??s,c=i.debounce?zl(o,i.debounce,!1):o,u=`${t}-param-${s}`;if(i.input=="range")e.push(be`<label for=${u}>${l}</label>
|
|
345
|
+
<div>
|
|
346
|
+
<input
|
|
347
|
+
id=${u}
|
|
348
|
+
type="range"
|
|
349
|
+
min=${i.min??0}
|
|
350
|
+
max=${i.max??100}
|
|
351
|
+
step=${i.step??Yr(i.min,i.max,100)}
|
|
352
|
+
.value=${a}
|
|
353
|
+
@input=${f=>{c(f.target.valueAsNumber),f.target.nextElementSibling.textContent=f.target.valueAsNumber}}
|
|
354
|
+
/><span>${a}</span>
|
|
355
|
+
</div>`);else if(i.input=="checkbox")e.push(be`<label for=${u}>${l}</label>
|
|
356
|
+
<input
|
|
357
|
+
id=${u}
|
|
358
|
+
type="checkbox"
|
|
359
|
+
?checked=${a}
|
|
360
|
+
@input=${f=>c(f.target.checked)}
|
|
361
|
+
/>`);else if(i.input=="radio")e.push(be`<span class="label">${l}</span>
|
|
362
|
+
<div class="radio-group">
|
|
363
|
+
${i.options.map((f,h)=>{var A;return be`<label>
|
|
364
|
+
<input
|
|
365
|
+
type="radio"
|
|
366
|
+
name=${s}
|
|
367
|
+
value=${f}
|
|
368
|
+
.checked=${a==f}
|
|
369
|
+
@input=${d=>c(d.target.value)}
|
|
370
|
+
/>${((A=i.labels)==null?void 0:A[h])??f}</label
|
|
371
|
+
>`})}
|
|
372
|
+
</div>`);else if(i.input=="select")e.push(be`<label for=${u}>${l}</label>
|
|
373
|
+
<select
|
|
374
|
+
id=${u}
|
|
375
|
+
@input=${f=>c(f.target.value)}
|
|
376
|
+
>
|
|
377
|
+
${i.options.map((f,h)=>{var A;return be`<option
|
|
378
|
+
value=${f}
|
|
379
|
+
?selected=${a==f}
|
|
380
|
+
>
|
|
381
|
+
${((A=i.labels)==null?void 0:A[h])??f}
|
|
382
|
+
</option>`})}
|
|
383
|
+
</select> `);else if(i.input=="text"||i.input=="number"||i.input=="color")e.push(be`<label for=${u}>${l}</label>
|
|
384
|
+
<div>
|
|
385
|
+
<input
|
|
386
|
+
id=${u}
|
|
387
|
+
type=${i.input}
|
|
388
|
+
placeholder=${i.placeholder??""}
|
|
389
|
+
autocomplete=${i.autocomplete??"off"}
|
|
390
|
+
.value=${a}
|
|
391
|
+
@focus=${f=>f.target.select()}
|
|
392
|
+
@input=${f=>{c(i.input=="number"?f.target.valueAsNumber:f.target.value)}}
|
|
393
|
+
/>
|
|
394
|
+
</div>`);else throw new Error("Unsupported input type: "+i.input);i.description&&e.push(be`<div class="description">${i.description}</div>`)}return e}class IQ{constructor(t,e){D(this,yc);D(this,wc);D(this,yn);F(this,yc,t),F(this,wc,e),F(this,yn,void 0)}initialize(t){const e=[];t.visit(i=>{const s=i.paramMediator;e.push(...wQ(s))});const r=m(this,wc).inputBindingContainer;if(!(!r||r=="none"||!e.length)){if(F(this,yn,document.createElement("div")),m(this,yn).className="gs-input-bindings",r=="default")m(this,yc).appendChild(m(this,yn));else if(r instanceof HTMLElement)r.appendChild(m(this,yn));else throw new Error("Invalid inputBindingContainer");e.length&&Vo(be`<div class="gs-input-binding">${e}</div>`,m(this,yn))}}remove(){var t;(t=m(this,yn))==null||t.remove()}}yc=new WeakMap,wc=new WeakMap,yn=new WeakMap;/* @license twgl.js 4.24.0 Copyright (c) 2015, Gregg Tavares All Rights Reserved.
|
|
306
395
|
Available via the MIT license.
|
|
307
|
-
see: http://github.com/greggman/twgl.js for details */const pl=5120,to=5121,ml=5122,gl=5123,yl=5124,bl=5125,xl=5126,Kv=32819,Jv=32820,$v=33635,e3=5131,t3=33640,n3=35899,r3=35902,i3=36269,s3=34042,Q0={};{const n=Q0;n[pl]=Int8Array,n[to]=Uint8Array,n[ml]=Int16Array,n[gl]=Uint16Array,n[yl]=Int32Array,n[bl]=Uint32Array,n[xl]=Float32Array,n[Kv]=Uint16Array,n[Jv]=Uint16Array,n[$v]=Uint16Array,n[e3]=Uint16Array,n[t3]=Uint32Array,n[n3]=Uint32Array,n[r3]=Uint32Array,n[i3]=Uint32Array,n[s3]=Uint32Array}function Al(n){if(n instanceof Int8Array)return pl;if(n instanceof Uint8Array||n instanceof Uint8ClampedArray)return to;if(n instanceof Int16Array)return ml;if(n instanceof Uint16Array)return gl;if(n instanceof Int32Array)return yl;if(n instanceof Uint32Array)return bl;if(n instanceof Float32Array)return xl;throw new Error("unsupported typed array type")}function o3(n){if(n===Int8Array)return pl;if(n===Uint8Array||n===Uint8ClampedArray)return to;if(n===Int16Array)return ml;if(n===Uint16Array)return gl;if(n===Int32Array)return yl;if(n===Uint32Array)return bl;if(n===Float32Array)return xl;throw new Error("unsupported typed array type")}function a3(n){const e=Q0[n];if(!e)throw new Error("unknown gl type");return e}const ec=typeof SharedArrayBuffer<"u"?function(e){return e&&e.buffer&&(e.buffer instanceof ArrayBuffer||e.buffer instanceof SharedArrayBuffer)}:function(e){return e&&e.buffer&&e.buffer instanceof ArrayBuffer};function c3(...n){console.error(...n)}function W0(...n){console.warn(...n)}function u3(n,e){return typeof WebGLBuffer<"u"&&e instanceof WebGLBuffer}function q0(n,e){return typeof WebGLRenderbuffer<"u"&&e instanceof WebGLRenderbuffer}function tc(n,e){return typeof WebGLTexture<"u"&&e instanceof WebGLTexture}function l3(n,e){return typeof WebGLSampler<"u"&&e instanceof WebGLSampler}const Y0=35044,Ut=34962,f3=34963,h3=34660,d3=5120,p3=5121,m3=5122,g3=5123,y3=5124,b3=5125,x3=5126,X0={attribPrefix:""};function Z0(n,e,t,r,i){n.bindBuffer(e,t),n.bufferData(e,r,i||Y0)}function K0(n,e,t,r){if(u3(n,e))return e;t=t||Ut;const i=n.createBuffer();return Z0(n,t,i,e,r),i}function J0(n){return n==="indices"}function A3(n){return n instanceof Int8Array||n instanceof Uint8Array}function w3(n){return n===Int8Array||n===Uint8Array}function v3(n){return n.length?n:n.data}const S3=/coord|texture/i,E3=/color|colour/i;function $0(n,e){let t;if(S3.test(n)?t=2:E3.test(n)?t=4:t=3,e%t>0)throw new Error(`Can not guess numComponents for attribute '${n}'. Tried ${t} but ${e} values is not evenly divisible by ${t}. You should specify it.`);return t}function C3(n,e){return n.numComponents||n.size||$0(e,v3(n).length)}function wl(n,e){if(ec(n))return n;if(ec(n.data))return n.data;Array.isArray(n)&&(n={data:n});let t=n.type;return t||(J0(e)?t=Uint16Array:t=Float32Array),new t(n.data)}function D3(n,e){const t={};return Object.keys(e).forEach(function(r){if(!J0(r)){const i=e[r],s=i.attrib||i.name||i.attribName||X0.attribPrefix+r;if(i.value){if(!Array.isArray(i.value)&&!ec(i.value))throw new Error("array.value is not array or typedarray");t[s]={value:i.value}}else{let o,a,c,u;if(i.buffer&&i.buffer instanceof WebGLBuffer)o=i.buffer,u=i.numComponents||i.size,a=i.type,c=i.normalize;else if(typeof i=="number"||typeof i.data=="number"){const l=i.data||i,f=i.type||Float32Array,d=l*f.BYTES_PER_ELEMENT;a=o3(f),c=i.normalize!==void 0?i.normalize:w3(f),u=i.numComponents||i.size||$0(r,l),o=n.createBuffer(),n.bindBuffer(Ut,o),n.bufferData(Ut,d,i.drawType||Y0)}else{const l=wl(i,r);o=K0(n,l,void 0,i.drawType),a=Al(l),c=i.normalize!==void 0?i.normalize:A3(l),u=C3(i,r)}t[s]={buffer:o,numComponents:u,type:a,normalize:c,stride:i.stride||0,offset:i.offset||0,divisor:i.divisor===void 0?void 0:i.divisor,drawType:i.drawType}}}}),n.bindBuffer(Ut,null),t}function I3(n,e,t,r){t=wl(t),r!==void 0?(n.bindBuffer(Ut,e.buffer),n.bufferSubData(Ut,r,t)):Z0(n,Ut,e.buffer,t,e.drawType)}function T3(n,e){return e===d3||e===p3?1:e===m3||e===g3?2:e===y3||e===b3||e===x3?4:0}const vl=["position","positions","a_position"];function B3(n,e){let t,r;for(r=0;r<vl.length&&(t=vl[r],!(t in e||(t=X0.attribPrefix+t,t in e)));++r);r===vl.length&&(t=Object.keys(e)[0]);const i=e[t];if(!i.buffer)return 1;n.bindBuffer(Ut,i.buffer);const s=n.getBufferParameter(Ut,h3);n.bindBuffer(Ut,null);const o=T3(n,i.type),a=s/o,c=i.numComponents||i.size,u=a/c;if(u%1!==0)throw new Error(`numComponents ${c} not correct for length ${length}`);return u}function k3(n,e,t){const r=D3(n,e),i=Object.assign({},t||{});i.attribs=Object.assign({},t?t.attribs:{},r);const s=e.indices;if(s){const o=wl(s,"indices");i.indices=K0(n,o,f3),i.numElements=o.length,i.elementType=Al(o)}else i.numElements||(i.numElements=B3(n,i.attribs));return i}function pi(n){return!!n.texStorage2D}const Sl=function(){const n={},e={};function t(r){const i=r.constructor.name;if(!n[i]){for(const s in r)if(typeof r[s]=="number"){const o=e[r[s]];e[r[s]]=o?`${o} | ${s}`:s}n[i]=!0}}return function(i,s){return t(i),e[s]||(typeof s=="number"?`0x${s.toString(16)}`:s)}}(),Tn={textureColor:new Uint8Array([128,192,255,255]),textureOptions:{},crossOrigin:void 0},mi=ec,ep=function(){let n;return function(){return n=n||(typeof document<"u"&&document.createElement?document.createElement("canvas").getContext("2d"):null),n}}(),tp=6406,Gt=6407,be=6408,np=6409,rp=6410,no=6402,ip=34041,nc=33071,F3=9728,P3=9729,an=3553,cn=34067,Bn=32879,kn=35866,rc=34069,M3=34070,R3=34071,O3=34072,N3=34073,L3=34074,El=10241,Cl=10240,ic=10242,sc=10243,sp=32882,z3=33082,U3=33083,G3=33084,H3=33085,Dl=3317,op=3314,ap=32878,cp=3316,up=3315,lp=32877,V3=37443,_3=37441,j3=37440,Q3=33321,W3=36756,q3=33325,Y3=33326,X3=33330,Z3=33329,K3=33338,J3=33337,$3=33340,eS=33339,tS=33323,nS=36757,rS=33327,iS=33328,sS=33336,oS=33335,aS=33332,cS=33331,uS=33334,lS=33333,fS=32849,hS=35905,dS=36194,pS=36758,mS=35898,gS=35901,yS=34843,bS=34837,xS=36221,AS=36239,wS=36215,vS=36233,SS=36209,ES=36227,CS=32856,DS=35907,IS=36759,TS=32855,BS=32854,kS=32857,FS=34842,PS=34836,MS=36220,RS=36238,OS=36975,NS=36214,LS=36232,zS=36226,US=36208,GS=33189,HS=33190,VS=36012,_S=36013,jS=35056,Fn=5120,xe=5121,oc=5122,gi=5123,ac=5124,br=5125,Ve=5126,fp=32819,hp=32820,dp=33635,Dt=5131,ro=36193,Il=33640,QS=35899,WS=35902,qS=36269,YS=34042,cc=33319,yi=33320,uc=6403,bi=36244,xi=36248,xr=36249;let Tl;function lc(n){if(!Tl){const e={};e[tp]={textureFormat:tp,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1,2,2,4],type:[xe,Dt,ro,Ve]},e[np]={textureFormat:np,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1,2,2,4],type:[xe,Dt,ro,Ve]},e[rp]={textureFormat:rp,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[2,4,4,8],type:[xe,Dt,ro,Ve]},e[Gt]={textureFormat:Gt,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3,6,6,12,2],type:[xe,Dt,ro,Ve,dp]},e[be]={textureFormat:be,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,8,8,16,2,2],type:[xe,Dt,ro,Ve,fp,hp]},e[no]={textureFormat:no,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2,4],type:[br,gi]},e[Q3]={textureFormat:uc,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1],type:[xe]},e[W3]={textureFormat:uc,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[1],type:[Fn]},e[q3]={textureFormat:uc,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[4,2],type:[Ve,Dt]},e[Y3]={textureFormat:uc,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[4],type:[Ve]},e[X3]={textureFormat:bi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[1],type:[xe]},e[Z3]={textureFormat:bi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[1],type:[Fn]},e[aS]={textureFormat:bi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[gi]},e[cS]={textureFormat:bi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[oc]},e[uS]={textureFormat:bi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[br]},e[lS]={textureFormat:bi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[ac]},e[tS]={textureFormat:cc,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[2],type:[xe]},e[nS]={textureFormat:cc,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[2],type:[Fn]},e[rS]={textureFormat:cc,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[8,4],type:[Ve,Dt]},e[iS]={textureFormat:cc,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[8],type:[Ve]},e[sS]={textureFormat:yi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[xe]},e[oS]={textureFormat:yi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[Fn]},e[K3]={textureFormat:yi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[gi]},e[J3]={textureFormat:yi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[oc]},e[$3]={textureFormat:yi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[br]},e[eS]={textureFormat:yi,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[ac]},e[fS]={textureFormat:Gt,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3],type:[xe]},e[hS]={textureFormat:Gt,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[3],type:[xe]},e[dS]={textureFormat:Gt,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3,2],type:[xe,dp]},e[pS]={textureFormat:Gt,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[3],type:[Fn]},e[mS]={textureFormat:Gt,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6,4],type:[Ve,Dt,QS]},e[gS]={textureFormat:Gt,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6,4],type:[Ve,Dt,WS]},e[yS]={textureFormat:Gt,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6],type:[Ve,Dt]},e[bS]={textureFormat:Gt,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[Ve]},e[xS]={textureFormat:xi,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[3],type:[xe]},e[AS]={textureFormat:xi,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[3],type:[Fn]},e[wS]={textureFormat:xi,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[6],type:[gi]},e[vS]={textureFormat:xi,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[6],type:[oc]},e[SS]={textureFormat:xi,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[br]},e[ES]={textureFormat:xi,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[ac]},e[CS]={textureFormat:be,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[xe]},e[DS]={textureFormat:be,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[xe]},e[IS]={textureFormat:be,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[4],type:[Fn]},e[TS]={textureFormat:be,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,2,4],type:[xe,hp,Il]},e[BS]={textureFormat:be,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,2],type:[xe,fp]},e[kS]={textureFormat:be,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[Il]},e[FS]={textureFormat:be,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[16,8],type:[Ve,Dt]},e[PS]={textureFormat:be,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[16],type:[Ve]},e[MS]={textureFormat:xr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[xe]},e[RS]={textureFormat:xr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Fn]},e[OS]={textureFormat:xr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Il]},e[NS]={textureFormat:xr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[gi]},e[LS]={textureFormat:xr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[oc]},e[zS]={textureFormat:xr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[16],type:[ac]},e[US]={textureFormat:xr,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[16],type:[br]},e[GS]={textureFormat:no,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2,4],type:[gi,br]},e[HS]={textureFormat:no,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[br]},e[VS]={textureFormat:no,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Ve]},e[jS]={textureFormat:ip,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[YS]},e[_S]={textureFormat:ip,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[qS]},Object.keys(e).forEach(function(t){const r=e[t];r.bytesPerElementMap={},r.bytesPerElement.forEach(function(i,s){const o=r.type[s];r.bytesPerElementMap[o]=i})}),Tl=e}return Tl[n]}function XS(n,e){const t=lc(n);if(!t)throw"unknown internal format";const r=t.bytesPerElementMap[e];if(r===void 0)throw"unknown internal format";return r}function Ai(n){const e=lc(n);if(!e)throw"unknown internal format";return{format:e.textureFormat,type:e.type[0]}}function pp(n){return(n&n-1)===0}function ZS(n,e,t,r){if(!pi(n))return pp(e)&&pp(t);const i=lc(r);if(!i)throw"unknown internal format";return i.colorRenderable&&i.textureFilterable}function KS(n){const e=lc(n);if(!e)throw"unknown internal format";return e.textureFilterable}function mp(n,e,t){return mi(e)?Al(e):t||xe}function fc(n,e,t,r,i){if(i%1!==0)throw"can't guess dimensions";if(!t&&!r){const s=Math.sqrt(i/(e===cn?6:1));s%1===0?(t=s,r=s):(t=i,r=1)}else if(r){if(!t&&(t=i/r,t%1))throw"can't guess dimensions"}else if(r=i/t,r%1)throw"can't guess dimensions";return{width:t,height:r}}function wi(n,e){e.colorspaceConversion!==void 0&&n.pixelStorei(V3,e.colorspaceConversion),e.premultiplyAlpha!==void 0&&n.pixelStorei(_3,e.premultiplyAlpha),e.flipY!==void 0&&n.pixelStorei(j3,e.flipY)}function gp(n){n.pixelStorei(Dl,4),pi(n)&&(n.pixelStorei(op,0),n.pixelStorei(ap,0),n.pixelStorei(cp,0),n.pixelStorei(up,0),n.pixelStorei(lp,0))}function JS(n,e,t,r){r.minMag&&(t.call(n,e,El,r.minMag),t.call(n,e,Cl,r.minMag)),r.min&&t.call(n,e,El,r.min),r.mag&&t.call(n,e,Cl,r.mag),r.wrap&&(t.call(n,e,ic,r.wrap),t.call(n,e,sc,r.wrap),(e===Bn||l3(n,e))&&t.call(n,e,sp,r.wrap)),r.wrapR&&t.call(n,e,sp,r.wrapR),r.wrapS&&t.call(n,e,ic,r.wrapS),r.wrapT&&t.call(n,e,sc,r.wrapT),r.minLod&&t.call(n,e,z3,r.minLod),r.maxLod&&t.call(n,e,U3,r.maxLod),r.baseLevel&&t.call(n,e,G3,r.baseLevel),r.maxLevel&&t.call(n,e,H3,r.maxLevel)}function yp(n,e,t){const r=t.target||an;n.bindTexture(r,e),JS(n,r,n.texParameteri,t)}function $S(n){return n=n||Tn.textureColor,mi(n)?n:new Uint8Array([n[0]*255,n[1]*255,n[2]*255,n[3]*255])}function Bl(n,e,t,r,i,s){t=t||Tn.textureOptions,s=s||be;const o=t.target||an;if(r=r||t.width,i=i||t.height,n.bindTexture(o,e),ZS(n,r,i,s))n.generateMipmap(o);else{const a=KS(s)?P3:F3;n.texParameteri(o,El,a),n.texParameteri(o,Cl,a),n.texParameteri(o,ic,nc),n.texParameteri(o,sc,nc)}}function io(n){return n.auto===!0||n.auto===void 0&&n.level===void 0}function kl(n,e){return e=e||{},e.cubeFaceOrder||[rc,M3,R3,O3,N3,L3]}function Fl(n,e){const r=kl(n,e).map(function(i,s){return{face:i,ndx:s}});return r.sort(function(i,s){return i.face-s.face}),r}function bp(n,e,t,r){r=r||Tn.textureOptions;const i=r.target||an,s=r.level||0;let o=t.width,a=t.height;const c=r.internalFormat||r.format||be,u=Ai(c),l=r.format||u.format,f=r.type||u.type;if(wi(n,r),n.bindTexture(i,e),i===cn){const d=t.width,h=t.height;let p,m;if(d/6===h)p=h,m=[0,0,1,0,2,0,3,0,4,0,5,0];else if(h/6===d)p=d,m=[0,0,0,1,0,2,0,3,0,4,0,5];else if(d/3===h/2)p=d/3,m=[0,0,1,0,2,0,0,1,1,1,2,1];else if(d/2===h/3)p=d/2,m=[0,0,1,0,0,1,1,1,0,2,1,2];else throw"can't figure out cube map from element: "+(t.src?t.src:t.nodeName);const g=ep();g?(g.canvas.width=p,g.canvas.height=p,o=p,a=p,Fl(n,r).forEach(function(y){const x=m[y.ndx*2+0]*p,A=m[y.ndx*2+1]*p;g.drawImage(t,x,A,p,p,0,0,p,p),n.texImage2D(y.face,s,c,l,f,g.canvas)}),g.canvas.width=1,g.canvas.height=1):typeof createImageBitmap<"u"&&(o=p,a=p,Fl(n,r).forEach(function(y){const x=m[y.ndx*2+0]*p,A=m[y.ndx*2+1]*p;n.texImage2D(y.face,s,c,p,p,0,l,f,null),createImageBitmap(t,x,A,p,p,{premultiplyAlpha:"none",colorSpaceConversion:"none"}).then(function(w){wi(n,r),n.bindTexture(i,e),n.texImage2D(y.face,s,c,l,f,w),io(r)&&Bl(n,e,r,o,a,c)})}))}else if(i===Bn||i===kn){const d=Math.min(t.width,t.height),h=Math.max(t.width,t.height),p=h/d;if(p%1!==0)throw"can not compute 3D dimensions of element";const m=t.width===h?1:0,g=t.height===h?1:0;n.pixelStorei(Dl,1),n.pixelStorei(op,t.width),n.pixelStorei(ap,0),n.pixelStorei(lp,0),n.texImage3D(i,s,c,d,d,d,0,l,f,null);for(let y=0;y<p;++y){const x=y*d*m,A=y*d*g;n.pixelStorei(cp,x),n.pixelStorei(up,A),n.texSubImage3D(i,s,0,0,y,d,d,1,l,f,t)}gp(n)}else n.texImage2D(i,s,c,l,f,t);io(r)&&Bl(n,e,r,o,a,c),yp(n,e,r)}function so(){}function eE(n){if(typeof document<"u"){const e=document.createElement("a");return e.href=n,e.hostname===location.hostname&&e.port===location.port&&e.protocol===location.protocol}else{const e=new URL(location.href).origin;return new URL(n,location.href).origin===e}}function tE(n,e){return e===void 0&&!eE(n)?"anonymous":e}function nE(n,e,t){t=t||so;let r;if(e=e!==void 0?e:Tn.crossOrigin,e=tE(n,e),typeof Image<"u"){r=new Image,e!==void 0&&(r.crossOrigin=e);const i=function(){r.removeEventListener("error",s),r.removeEventListener("load",o),r=null},s=function(){const c="couldn't load image: "+n;c3(c),t(c,r),i()},o=function(){t(null,r),i()};return r.addEventListener("error",s),r.addEventListener("load",o),r.src=n,r}else if(typeof ImageBitmap<"u"){let i,s;const o=function(){t(i,s)},a={};e&&(a.mode="cors"),fetch(n,a).then(function(c){if(!c.ok)throw c;return c.blob()}).then(function(c){return createImageBitmap(c,{premultiplyAlpha:"none",colorSpaceConversion:"none"})}).then(function(c){s=c,setTimeout(o)}).catch(function(c){i=c,setTimeout(o)}),r=null}return r}function xp(n){return typeof ImageBitmap<"u"&&n instanceof ImageBitmap||typeof ImageData<"u"&&n instanceof ImageData||typeof HTMLElement<"u"&&n instanceof HTMLElement}function Pl(n,e,t){return xp(n)?(setTimeout(function(){t(null,n)}),n):nE(n,e,t)}function Ml(n,e,t){t=t||Tn.textureOptions;const r=t.target||an;if(n.bindTexture(r,e),t.color===!1)return;const i=$S(t.color);if(r===cn)for(let s=0;s<6;++s)n.texImage2D(rc+s,0,be,1,1,0,be,xe,i);else r===Bn||r===kn?n.texImage3D(r,0,be,1,1,1,0,be,xe,i):n.texImage2D(r,0,be,1,1,0,be,xe,i)}function rE(n,e,t,r){return r=r||so,t=t||Tn.textureOptions,Ml(n,e,t),t=Object.assign({},t),Pl(t.src,t.crossOrigin,function(s,o){s?r(s,e,o):(bp(n,e,o,t),r(null,e,o))})}function iE(n,e,t,r){r=r||so;const i=t.src;if(i.length!==6)throw"there must be 6 urls for a cubemap";const s=t.level||0,o=t.internalFormat||t.format||be,a=Ai(o),c=t.format||a.format,u=t.type||xe,l=t.target||an;if(l!==cn)throw"target must be TEXTURE_CUBE_MAP";Ml(n,e,t),t=Object.assign({},t);let f=6;const d=[],h=kl(n,t);let p;function m(g){return function(y,x){--f,y?d.push(y):x.width!==x.height?d.push("cubemap face img is not a square: "+x.src):(wi(n,t),n.bindTexture(l,e),f===5?kl().forEach(function(A){n.texImage2D(A,s,o,c,u,x)}):n.texImage2D(g,s,o,c,u,x),io(t)&&n.generateMipmap(l)),f===0&&r(d.length?d:void 0,e,p)}}p=i.map(function(g,y){return Pl(g,t.crossOrigin,m(h[y]))})}function sE(n,e,t,r){r=r||so;const i=t.src,s=t.internalFormat||t.format||be,o=Ai(s),a=t.format||o.format,c=t.type||xe,u=t.target||kn;if(u!==Bn&&u!==kn)throw"target must be TEXTURE_3D or TEXTURE_2D_ARRAY";Ml(n,e,t),t=Object.assign({},t);let l=i.length;const f=[];let d;const h=t.level||0;let p=t.width,m=t.height;const g=i.length;let y=!0;function x(A){return function(w,S){if(--l,w)f.push(w);else{if(wi(n,t),n.bindTexture(u,e),y){y=!1,p=t.width||S.width,m=t.height||S.height,n.texImage3D(u,h,s,p,m,g,0,a,c,null);for(let C=0;C<g;++C)n.texSubImage3D(u,h,0,0,C,p,m,1,a,c,S)}else{let C=S,v;(S.width!==p||S.height!==m)&&(v=ep(),C=v.canvas,v.canvas.width=p,v.canvas.height=m,v.drawImage(S,0,0,p,m)),n.texSubImage3D(u,h,0,0,A,p,m,1,a,c,C),v&&C===v.canvas&&(v.canvas.width=0,v.canvas.height=0)}io(t)&&n.generateMipmap(u)}l===0&&r(f.length?f:void 0,e,d)}}d=i.map(function(A,w){return Pl(A,t.crossOrigin,x(w))})}function Ap(n,e,t,r){r=r||Tn.textureOptions;const i=r.target||an;n.bindTexture(i,e);let s=r.width,o=r.height,a=r.depth;const c=r.level||0,u=r.internalFormat||r.format||be,l=Ai(u),f=r.format||l.format,d=r.type||mp(n,t,l.type);if(mi(t))t instanceof Uint8ClampedArray&&(t=new Uint8Array(t.buffer));else{const g=a3(d);t=new g(t)}const h=XS(u,d),p=t.byteLength/h;if(p%1)throw"length wrong size for format: "+Sl(n,f);let m;if(i===Bn||i===kn)if(!s&&!o&&!a){const g=Math.cbrt(p);if(g%1!==0)throw"can't guess cube size of array of numElements: "+p;s=g,o=g,a=g}else s&&(!o||!a)?(m=fc(n,i,o,a,p/s),o=m.width,a=m.height):o&&(!s||!a)?(m=fc(n,i,s,a,p/o),s=m.width,a=m.height):(m=fc(n,i,s,o,p/a),s=m.width,o=m.height);else m=fc(n,i,s,o,p),s=m.width,o=m.height;if(gp(n),n.pixelStorei(Dl,r.unpackAlignment||1),wi(n,r),i===cn){const g=h/t.BYTES_PER_ELEMENT,y=p/6*g;Fl(n,r).forEach(x=>{const A=y*x.ndx,w=t.subarray(A,A+y);n.texImage2D(x.face,c,u,s,o,0,f,d,w)})}else i===Bn||i===kn?n.texImage3D(i,c,u,s,o,a,0,f,d,t):n.texImage2D(i,c,u,s,o,0,f,d,t);return{width:s,height:o,depth:a,type:d}}function oE(n,e,t){const r=t.target||an;n.bindTexture(r,e);const i=t.level||0,s=t.internalFormat||t.format||be,o=Ai(s),a=t.format||o.format,c=t.type||o.type;if(wi(n,t),r===cn)for(let u=0;u<6;++u)n.texImage2D(rc+u,i,s,t.width,t.height,0,a,c,null);else r===Bn||r===kn?n.texImage3D(r,i,s,t.width,t.height,t.depth,0,a,c,null):n.texImage2D(r,i,s,t.width,t.height,0,a,c,null)}function oo(n,e,t){t=t||so,e=e||Tn.textureOptions;const r=n.createTexture(),i=e.target||an;let s=e.width||1,o=e.height||1;const a=e.internalFormat||be;n.bindTexture(i,r),i===cn&&(n.texParameteri(i,ic,nc),n.texParameteri(i,sc,nc));let c=e.src;if(c)if(typeof c=="function"&&(c=c(n,e)),typeof c=="string")rE(n,r,e,t);else if(mi(c)||Array.isArray(c)&&(typeof c[0]=="number"||Array.isArray(c[0])||mi(c[0]))){const u=Ap(n,r,c,e);s=u.width,o=u.height}else Array.isArray(c)&&(typeof c[0]=="string"||xp(c[0]))?i===cn?iE(n,r,e,t):sE(n,r,e,t):(bp(n,r,c,e),s=c.width,o=c.height);else oE(n,r,e);return io(e)&&Bl(n,r,e,s,o,a),yp(n,r,e),r}function aE(n,e,t,r,i,s){r=r||t.width,i=i||t.height,s=s||t.depth;const o=t.target||an;n.bindTexture(o,e);const a=t.level||0,c=t.internalFormat||t.format||be,u=Ai(c),l=t.format||u.format;let f;const d=t.src;if(d&&(mi(d)||Array.isArray(d)&&typeof d[0]=="number")?f=t.type||mp(n,d,u.type):f=t.type||u.type,o===cn)for(let h=0;h<6;++h)n.texImage2D(rc+h,a,c,r,i,0,l,f,null);else o===Bn||o===kn?n.texImage3D(o,a,c,r,i,s,0,l,f,null):n.texImage2D(o,a,c,r,i,0,l,f,null)}const cE=W0,hc=33984,uE=35048,dc=34962,lE=34963,Rl=35345,wp=35718,fE=35721,hE=35971,dE=35382,pE=35396,mE=35398,gE=35392,yE=35395,pc=5126,vp=35664,Sp=35665,Ep=35666,Ol=5124,Cp=35667,Dp=35668,Ip=35669,Tp=35670,Bp=35671,kp=35672,Fp=35673,Pp=35674,Mp=35675,Rp=35676,bE=35678,xE=35680,AE=35679,wE=35682,vE=35685,SE=35686,EE=35687,CE=35688,DE=35689,IE=35690,TE=36289,BE=36292,kE=36293,Nl=5125,Op=36294,Np=36295,Lp=36296,FE=36298,PE=36299,ME=36300,RE=36303,OE=36306,NE=36307,LE=36308,zE=36311,mc=3553,gc=34067,Ll=32879,yc=35866,Z={};function zp(n,e){return Z[e].bindPoint}function UE(n,e){return function(t){n.uniform1f(e,t)}}function GE(n,e){return function(t){n.uniform1fv(e,t)}}function HE(n,e){return function(t){n.uniform2fv(e,t)}}function VE(n,e){return function(t){n.uniform3fv(e,t)}}function _E(n,e){return function(t){n.uniform4fv(e,t)}}function Up(n,e){return function(t){n.uniform1i(e,t)}}function Gp(n,e){return function(t){n.uniform1iv(e,t)}}function Hp(n,e){return function(t){n.uniform2iv(e,t)}}function Vp(n,e){return function(t){n.uniform3iv(e,t)}}function _p(n,e){return function(t){n.uniform4iv(e,t)}}function jE(n,e){return function(t){n.uniform1ui(e,t)}}function QE(n,e){return function(t){n.uniform1uiv(e,t)}}function WE(n,e){return function(t){n.uniform2uiv(e,t)}}function qE(n,e){return function(t){n.uniform3uiv(e,t)}}function YE(n,e){return function(t){n.uniform4uiv(e,t)}}function XE(n,e){return function(t){n.uniformMatrix2fv(e,!1,t)}}function ZE(n,e){return function(t){n.uniformMatrix3fv(e,!1,t)}}function KE(n,e){return function(t){n.uniformMatrix4fv(e,!1,t)}}function JE(n,e){return function(t){n.uniformMatrix2x3fv(e,!1,t)}}function $E(n,e){return function(t){n.uniformMatrix3x2fv(e,!1,t)}}function eC(n,e){return function(t){n.uniformMatrix2x4fv(e,!1,t)}}function tC(n,e){return function(t){n.uniformMatrix4x2fv(e,!1,t)}}function nC(n,e){return function(t){n.uniformMatrix3x4fv(e,!1,t)}}function rC(n,e){return function(t){n.uniformMatrix4x3fv(e,!1,t)}}function Ke(n,e,t,r){const i=zp(n,e);return pi(n)?function(s){let o,a;tc(n,s)?(o=s,a=null):(o=s.texture,a=s.sampler),n.uniform1i(r,t),n.activeTexture(hc+t),n.bindTexture(i,o),n.bindSampler(t,a)}:function(s){n.uniform1i(r,t),n.activeTexture(hc+t),n.bindTexture(i,s)}}function Je(n,e,t,r,i){const s=zp(n,e),o=new Int32Array(i);for(let a=0;a<i;++a)o[a]=t+a;return pi(n)?function(a){n.uniform1iv(r,o),a.forEach(function(c,u){n.activeTexture(hc+o[u]);let l,f;tc(n,c)?(l=c,f=null):(l=c.texture,f=c.sampler),n.bindSampler(t,f),n.bindTexture(s,l)})}:function(a){n.uniform1iv(r,o),a.forEach(function(c,u){n.activeTexture(hc+o[u]),n.bindTexture(s,c)})}}Z[pc]={Type:Float32Array,size:4,setter:UE,arraySetter:GE},Z[vp]={Type:Float32Array,size:8,setter:HE,cols:2},Z[Sp]={Type:Float32Array,size:12,setter:VE,cols:3},Z[Ep]={Type:Float32Array,size:16,setter:_E,cols:4},Z[Ol]={Type:Int32Array,size:4,setter:Up,arraySetter:Gp},Z[Cp]={Type:Int32Array,size:8,setter:Hp,cols:2},Z[Dp]={Type:Int32Array,size:12,setter:Vp,cols:3},Z[Ip]={Type:Int32Array,size:16,setter:_p,cols:4},Z[Nl]={Type:Uint32Array,size:4,setter:jE,arraySetter:QE},Z[Op]={Type:Uint32Array,size:8,setter:WE,cols:2},Z[Np]={Type:Uint32Array,size:12,setter:qE,cols:3},Z[Lp]={Type:Uint32Array,size:16,setter:YE,cols:4},Z[Tp]={Type:Uint32Array,size:4,setter:Up,arraySetter:Gp},Z[Bp]={Type:Uint32Array,size:8,setter:Hp,cols:2},Z[kp]={Type:Uint32Array,size:12,setter:Vp,cols:3},Z[Fp]={Type:Uint32Array,size:16,setter:_p,cols:4},Z[Pp]={Type:Float32Array,size:32,setter:XE,rows:2,cols:2},Z[Mp]={Type:Float32Array,size:48,setter:ZE,rows:3,cols:3},Z[Rp]={Type:Float32Array,size:64,setter:KE,rows:4,cols:4},Z[vE]={Type:Float32Array,size:32,setter:JE,rows:2,cols:3},Z[SE]={Type:Float32Array,size:32,setter:eC,rows:2,cols:4},Z[EE]={Type:Float32Array,size:48,setter:$E,rows:3,cols:2},Z[CE]={Type:Float32Array,size:48,setter:nC,rows:3,cols:4},Z[DE]={Type:Float32Array,size:64,setter:tC,rows:4,cols:2},Z[IE]={Type:Float32Array,size:64,setter:rC,rows:4,cols:3},Z[bE]={Type:null,size:0,setter:Ke,arraySetter:Je,bindPoint:mc},Z[xE]={Type:null,size:0,setter:Ke,arraySetter:Je,bindPoint:gc},Z[AE]={Type:null,size:0,setter:Ke,arraySetter:Je,bindPoint:Ll},Z[wE]={Type:null,size:0,setter:Ke,arraySetter:Je,bindPoint:mc},Z[TE]={Type:null,size:0,setter:Ke,arraySetter:Je,bindPoint:yc},Z[BE]={Type:null,size:0,setter:Ke,arraySetter:Je,bindPoint:yc},Z[kE]={Type:null,size:0,setter:Ke,arraySetter:Je,bindPoint:gc},Z[FE]={Type:null,size:0,setter:Ke,arraySetter:Je,bindPoint:mc},Z[PE]={Type:null,size:0,setter:Ke,arraySetter:Je,bindPoint:Ll},Z[ME]={Type:null,size:0,setter:Ke,arraySetter:Je,bindPoint:gc},Z[RE]={Type:null,size:0,setter:Ke,arraySetter:Je,bindPoint:yc},Z[OE]={Type:null,size:0,setter:Ke,arraySetter:Je,bindPoint:mc},Z[NE]={Type:null,size:0,setter:Ke,arraySetter:Je,bindPoint:Ll},Z[LE]={Type:null,size:0,setter:Ke,arraySetter:Je,bindPoint:gc},Z[zE]={Type:null,size:0,setter:Ke,arraySetter:Je,bindPoint:yc};function bc(n,e){return function(t){if(t.value)switch(n.disableVertexAttribArray(e),t.value.length){case 4:n.vertexAttrib4fv(e,t.value);break;case 3:n.vertexAttrib3fv(e,t.value);break;case 2:n.vertexAttrib2fv(e,t.value);break;case 1:n.vertexAttrib1fv(e,t.value);break;default:throw new Error("the length of a float constant value must be between 1 and 4!")}else n.bindBuffer(dc,t.buffer),n.enableVertexAttribArray(e),n.vertexAttribPointer(e,t.numComponents||t.size,t.type||pc,t.normalize||!1,t.stride||0,t.offset||0),t.divisor!==void 0&&n.vertexAttribDivisor(e,t.divisor)}}function Pn(n,e){return function(t){if(t.value)if(n.disableVertexAttribArray(e),t.value.length===4)n.vertexAttrib4iv(e,t.value);else throw new Error("The length of an integer constant value must be 4!");else n.bindBuffer(dc,t.buffer),n.enableVertexAttribArray(e),n.vertexAttribIPointer(e,t.numComponents||t.size,t.type||Ol,t.stride||0,t.offset||0),t.divisor!==void 0&&n.vertexAttribDivisor(e,t.divisor)}}function xc(n,e){return function(t){if(t.value)if(n.disableVertexAttribArray(e),t.value.length===4)n.vertexAttrib4uiv(e,t.value);else throw new Error("The length of an unsigned integer constant value must be 4!");else n.bindBuffer(dc,t.buffer),n.enableVertexAttribArray(e),n.vertexAttribIPointer(e,t.numComponents||t.size,t.type||Nl,t.stride||0,t.offset||0),t.divisor!==void 0&&n.vertexAttribDivisor(e,t.divisor)}}function zl(n,e,t){const r=t.size,i=t.count;return function(s){n.bindBuffer(dc,s.buffer);const o=s.size||s.numComponents||r,a=o/i,c=s.type||pc,l=Z[c].size*o,f=s.normalize||!1,d=s.offset||0,h=l/i;for(let p=0;p<i;++p)n.enableVertexAttribArray(e+p),n.vertexAttribPointer(e+p,a,c,f,l,d+h*p),s.divisor!==void 0&&n.vertexAttribDivisor(e+p,s.divisor)}}const Ce={};Ce[pc]={size:4,setter:bc},Ce[vp]={size:8,setter:bc},Ce[Sp]={size:12,setter:bc},Ce[Ep]={size:16,setter:bc},Ce[Ol]={size:4,setter:Pn},Ce[Cp]={size:8,setter:Pn},Ce[Dp]={size:12,setter:Pn},Ce[Ip]={size:16,setter:Pn},Ce[Nl]={size:4,setter:xc},Ce[Op]={size:8,setter:xc},Ce[Np]={size:12,setter:xc},Ce[Lp]={size:16,setter:xc},Ce[Tp]={size:4,setter:Pn},Ce[Bp]={size:8,setter:Pn},Ce[kp]={size:12,setter:Pn},Ce[Fp]={size:16,setter:Pn},Ce[Pp]={size:4,setter:zl,count:2},Ce[Mp]={size:9,setter:zl,count:3},Ce[Rp]={size:16,setter:zl,count:4};function jp(n){const e=n.name;return e.startsWith("gl_")||e.startsWith("webgl_")}const iC=/(\.|\[|]|\w+)/g,sC=n=>n>="0"&&n<="9";function Qp(n,e,t,r){const i=n.split(iC).filter(a=>a!=="");let s=0,o="";for(;;){const a=i[s++];o+=a;const c=sC(a[0]),u=c?parseInt(a):a;if(c&&(o+=i[s++]),s===i.length){t[u]=e;break}else{const f=i[s++],d=f==="[",h=t[u]||(d?[]:{});t[u]=h,t=h,r[o]=r[o]||function(p){return function(m){Zp(p,m)}}(h),o+=f}}}function oC(n,e){let t=0;function r(a,c,u){const l=c.name.endsWith("[0]"),f=c.type,d=Z[f];if(!d)throw new Error(`unknown type: 0x${f.toString(16)}`);let h;if(d.bindPoint){const p=t;t+=c.size,l?h=d.arraySetter(n,f,p,u,c.size):h=d.setter(n,f,p,u,c.size)}else d.arraySetter&&l?h=d.arraySetter(n,u):h=d.setter(n,u);return h.location=u,h}const i={},s={},o=n.getProgramParameter(e,wp);for(let a=0;a<o;++a){const c=n.getActiveUniform(e,a);if(jp(c))continue;let u=c.name;u.endsWith("[0]")&&(u=u.substr(0,u.length-3));const l=n.getUniformLocation(e,c.name);if(l){const f=r(e,c,l);i[u]=f,Qp(u,f,s,i)}}return i}function aC(n,e){const t={},r=n.getProgramParameter(e,hE);for(let i=0;i<r;++i){const s=n.getTransformFeedbackVarying(e,i);t[s.name]={index:i,type:s.type,size:s.size}}return t}function cC(n,e){const t=n.getProgramParameter(e,wp),r=[],i=[];for(let a=0;a<t;++a){i.push(a),r.push({});const c=n.getActiveUniform(e,a);r[a].name=c.name}[["UNIFORM_TYPE","type"],["UNIFORM_SIZE","size"],["UNIFORM_BLOCK_INDEX","blockNdx"],["UNIFORM_OFFSET","offset"]].forEach(function(a){const c=a[0],u=a[1];n.getActiveUniforms(e,i,n[c]).forEach(function(l,f){r[f][u]=l})});const s={},o=n.getProgramParameter(e,dE);for(let a=0;a<o;++a){const c=n.getActiveUniformBlockName(e,a),u={index:n.getUniformBlockIndex(e,c),usedByVertexShader:n.getActiveUniformBlockParameter(e,a,pE),usedByFragmentShader:n.getActiveUniformBlockParameter(e,a,mE),size:n.getActiveUniformBlockParameter(e,a,gE),uniformIndices:n.getActiveUniformBlockParameter(e,a,yE)};u.used=u.usedByVertexShader||u.usedByFragmentShader,s[c]=u}return{blockSpecs:s,uniformData:r}}const Wp=/\[\d+\]\.$/,uC=(n,e)=>((n+(e-1))/e|0)*e;function lC(n,e,t,r){if(e||t){r=r||1;const s=n.length/4;return function(o){let a=0,c=0;for(let u=0;u<s;++u){for(let l=0;l<r;++l)n[a++]=o[c++];a+=4-r}}}else return function(i){i.length?n.set(i):n[0]=i}}function fC(n,e,t,r){const i=t.blockSpecs,s=t.uniformData,o=i[r];if(!o)return cE("no uniform block object named:",r),{name:r,uniforms:{}};const a=new ArrayBuffer(o.size),c=n.createBuffer(),u=o.index;n.bindBuffer(Rl,c),n.uniformBlockBinding(e,o.index,u);let l=r+".";Wp.test(l)&&(l=l.replace(Wp,"."));const f={},d={},h={};return o.uniformIndices.forEach(function(p){const m=s[p];let g=m.name;g.startsWith(l)&&(g=g.substr(l.length));const y=g.endsWith("[0]");y&&(g=g.substr(0,g.length-3));const x=Z[m.type],A=x.Type,w=y?uC(x.size,16)*m.size:x.size*m.size,S=new A(a,m.offset,w/A.BYTES_PER_ELEMENT);f[g]=S;const C=lC(S,y,x.rows,x.cols);d[g]=C,Qp(g,C,h,d)}),{name:r,array:a,asFloat:new Float32Array(a),buffer:c,uniforms:f,setters:d}}function qp(n,e,t){return fC(n,e.program,e.uniformBlockSpec,t)}function Yp(n,e,t){const i=(e.uniformBlockSpec||e).blockSpecs[t.name];if(i){const s=i.index;return n.bindBufferRange(Rl,s,t.buffer,t.offset||0,t.array.byteLength),!0}return!1}function Xp(n,e,t){Yp(n,e,t)&&n.bufferData(Rl,t.array,uE)}function ao(n,e){const t=n.setters;for(const r in e){const i=t[r];if(i){const s=e[r];i(s)}}}function Zp(n,e){for(const t in e){const r=n[t];typeof r=="function"?r(e[t]):Zp(n[t],e[t])}}function Ar(n,...e){const t=n.uniformSetters||n,r=e.length;for(let i=0;i<r;++i){const s=e[i];if(Array.isArray(s)){const o=s.length;for(let a=0;a<o;++a)Ar(t,s[a])}else for(const o in s){const a=t[o];a&&a(s[o])}}}function hC(n,e){const t={},r=n.getProgramParameter(e,fE);for(let i=0;i<r;++i){const s=n.getActiveAttrib(e,i);if(jp(s))continue;const o=n.getAttribLocation(e,s.name),a=Ce[s.type],c=a.setter(n,o,a);c.location=o,t[s.name]=c}return t}function dC(n,e){for(const t in e){const r=n[t];r&&r(e[t])}}function wr(n,e,t){t.vertexArrayObject?n.bindVertexArray(t.vertexArrayObject):(dC(e.attribSetters||e,t.attribs),t.indices&&n.bindBuffer(lE,t.indices))}function pC(n,e){const t=oC(n,e),r=hC(n,e),i={program:e,uniformSetters:t,attribSetters:r};return pi(n)&&(i.uniformBlockSpec=cC(n,e),i.transformFeedbackInfo=aC(n,e)),i}const mC=4,Kp=5123;function Ac(n,e,t,r,i,s){t=t===void 0?mC:t;const o=e.indices,a=e.elementType,c=r===void 0?e.numElements:r;i=i===void 0?0:i,a||o?s!==void 0?n.drawElementsInstanced(t,c,a===void 0?Kp:e.elementType,i,s):n.drawElements(t,c,a===void 0?Kp:e.elementType,i):s!==void 0?n.drawArraysInstanced(t,i,c,s):n.drawArrays(t,i,c)}const gC=36160,vr=36161,yC=3553,bC=5121,xC=6402,AC=6408,wC=33190,vC=36012,SC=35056,EC=36013,CC=32854,DC=32855,IC=36194,Jp=33189,$p=6401,em=36168,Ul=34041,Gl=36064,wc=36096,tm=36128,Hl=33306,Vl=33071,_l=9729,nm=[{format:AC,type:bC,min:_l,wrap:Vl},{format:Ul}],It={};It[Ul]=Hl,It[$p]=tm,It[em]=tm,It[xC]=wc,It[Jp]=wc,It[wC]=wc,It[vC]=wc,It[SC]=Hl,It[EC]=Hl;function TC(n,e){return It[n]||It[e]}const Mn={};Mn[CC]=!0,Mn[DC]=!0,Mn[IC]=!0,Mn[Ul]=!0,Mn[Jp]=!0,Mn[$p]=!0,Mn[em]=!0;function BC(n){return Mn[n]}const kC=32;function FC(n){return n>=Gl&&n<Gl+kC}function rm(n,e,t,r){const i=gC,s=n.createFramebuffer();n.bindFramebuffer(i,s),t=t||n.drawingBufferWidth,r=r||n.drawingBufferHeight,e=e||nm;const o=[],a={framebuffer:s,attachments:[],width:t,height:r};return e.forEach(function(c,u){let l=c.attachment;const f=c.samples,d=c.format;let h=c.attachmentPoint||TC(d,c.internalFormat);if(h||(h=Gl+u),FC(h)&&o.push(h),!l)if(f!==void 0||BC(d))l=n.createRenderbuffer(),n.bindRenderbuffer(vr,l),f>1?n.renderbufferStorageMultisample(vr,f,d,t,r):n.renderbufferStorage(vr,d,t,r);else{const p=Object.assign({},c);p.width=t,p.height=r,p.auto===void 0&&(p.auto=!1,p.min=p.min||p.minMag||_l,p.mag=p.mag||p.minMag||_l,p.wrapS=p.wrapS||p.wrap||Vl,p.wrapT=p.wrapT||p.wrap||Vl),l=oo(n,p)}if(q0(n,l))n.framebufferRenderbuffer(i,h,vr,l);else if(tc(n,l))c.layer!==void 0?n.framebufferTextureLayer(i,h,l,c.level||0,c.layer):n.framebufferTexture2D(i,h,c.target||yC,l,c.level||0);else throw new Error("unknown attachment type");a.attachments.push(l)}),n.drawBuffers&&n.drawBuffers(o),a}function PC(n,e,t,r,i){r=r||n.drawingBufferWidth,i=i||n.drawingBufferHeight,e.width=r,e.height=i,t=t||nm,t.forEach(function(s,o){const a=e.attachments[o],c=s.format,u=s.samples;if(u!==void 0||q0(n,a))n.bindRenderbuffer(vr,a),u>1?n.renderbufferStorageMultisample(vr,u,c,r,i):n.renderbufferStorage(vr,c,r,i);else if(tc(n,a))aE(n,a,s,r,i);else throw new Error("unknown attachment type")})}function MC(n,e,t){const r=n.createVertexArray();return n.bindVertexArray(r),e.length||(e=[e]),e.forEach(function(i){wr(n,i,t)}),n.bindVertexArray(null),{numElements:t.numElements,elementType:t.elementType,vertexArrayObject:r}}const RC=/^(.*?)_/;function OC(n,e){Sl(n,0);const t=n.getExtension(e);if(t){const r={},i=RC.exec(e)[1],s="_"+i;for(const o in t){const a=t[o],c=typeof a=="function",u=c?i:s;let l=o;o.endsWith(u)&&(l=o.substring(0,o.length-u.length)),n[l]!==void 0?!c&&n[l]!==a&&W0(l,n[l],a,o):c?n[l]=function(f){return function(){return f.apply(t,arguments)}}(a):(n[l]=a,r[l]=a)}r.constructor={name:t.constructor.name},Sl(r,0)}return t}const im=["ANGLE_instanced_arrays","EXT_blend_minmax","EXT_color_buffer_float","EXT_color_buffer_half_float","EXT_disjoint_timer_query","EXT_disjoint_timer_query_webgl2","EXT_frag_depth","EXT_sRGB","EXT_shader_texture_lod","EXT_texture_filter_anisotropic","OES_element_index_uint","OES_standard_derivatives","OES_texture_float","OES_texture_float_linear","OES_texture_half_float","OES_texture_half_float_linear","OES_vertex_array_object","WEBGL_color_buffer_float","WEBGL_compressed_texture_atc","WEBGL_compressed_texture_etc1","WEBGL_compressed_texture_pvrtc","WEBGL_compressed_texture_s3tc","WEBGL_compressed_texture_s3tc_srgb","WEBGL_depth_texture","WEBGL_draw_buffers"];function sm(n){for(let e=0;e<im.length;++e)OC(n,im[e])}function NC(n,e){const t=["webgl2","webgl","experimental-webgl"];let r=null;for(let i=0;i<t.length;++i)if(r=n.getContext(t[i],e),r){sm(r);break}return r}function LC(n,e){return NC(n,e)}const zC=`flat out lowp vec4 vFillColor;flat out lowp vec4 vStrokeColor;flat out float vHalfStrokeWidth;flat out vec4 vCornerRadii;
|
|
396
|
+
see: http://github.com/greggman/twgl.js for details */const UA=5120,Ea=5121,GA=5122,zA=5123,HA=5124,YA=5125,_A=5126,EQ=32819,bQ=32820,xQ=33635,BQ=5131,vQ=33640,QQ=35899,SQ=35902,DQ=36269,kQ=34042,tm={};{const n=tm;n[UA]=Int8Array,n[Ea]=Uint8Array,n[GA]=Int16Array,n[zA]=Uint16Array,n[HA]=Int32Array,n[YA]=Uint32Array,n[_A]=Float32Array,n[EQ]=Uint16Array,n[bQ]=Uint16Array,n[xQ]=Uint16Array,n[BQ]=Uint16Array,n[vQ]=Uint32Array,n[QQ]=Uint32Array,n[SQ]=Uint32Array,n[DQ]=Uint32Array,n[kQ]=Uint32Array}function VA(n){if(n instanceof Int8Array)return UA;if(n instanceof Uint8Array||n instanceof Uint8ClampedArray)return Ea;if(n instanceof Int16Array)return GA;if(n instanceof Uint16Array)return zA;if(n instanceof Int32Array)return HA;if(n instanceof Uint32Array)return YA;if(n instanceof Float32Array)return _A;throw new Error("unsupported typed array type")}function FQ(n){if(n===Int8Array)return UA;if(n===Uint8Array||n===Uint8ClampedArray)return Ea;if(n===Int16Array)return GA;if(n===Uint16Array)return zA;if(n===Int32Array)return HA;if(n===Uint32Array)return YA;if(n===Float32Array)return _A;throw new Error("unsupported typed array type")}function MQ(n){const t=tm[n];if(!t)throw new Error("unknown gl type");return t}const $l=typeof SharedArrayBuffer<"u"?function(t){return t&&t.buffer&&(t.buffer instanceof ArrayBuffer||t.buffer instanceof SharedArrayBuffer)}:function(t){return t&&t.buffer&&t.buffer instanceof ArrayBuffer};function RQ(...n){console.error(...n)}function nm(...n){console.warn(...n)}function NQ(n,t){return typeof WebGLBuffer<"u"&&t instanceof WebGLBuffer}function rm(n,t){return typeof WebGLRenderbuffer<"u"&&t instanceof WebGLRenderbuffer}function eu(n,t){return typeof WebGLTexture<"u"&&t instanceof WebGLTexture}function TQ(n,t){return typeof WebGLSampler<"u"&&t instanceof WebGLSampler}const im=35044,ln=34962,PQ=34963,LQ=34660,OQ=5120,UQ=5121,GQ=5122,zQ=5123,HQ=5124,YQ=5125,_Q=5126,sm={attribPrefix:""};function om(n,t,e,r,i){n.bindBuffer(t,e),n.bufferData(t,r,i||im)}function am(n,t,e,r){if(NQ(n,t))return t;e=e||ln;const i=n.createBuffer();return om(n,e,i,t,r),i}function cm(n){return n==="indices"}function VQ(n){return n instanceof Int8Array||n instanceof Uint8Array}function JQ(n){return n===Int8Array||n===Uint8Array}function qQ(n){return n.length?n:n.data}const KQ=/coord|texture/i,jQ=/color|colour/i;function lm(n,t){let e;if(KQ.test(n)?e=2:jQ.test(n)?e=4:e=3,t%e>0)throw new Error(`Can not guess numComponents for attribute '${n}'. Tried ${e} but ${t} values is not evenly divisible by ${e}. You should specify it.`);return e}function WQ(n,t){return n.numComponents||n.size||lm(t,qQ(n).length)}function JA(n,t){if($l(n))return n;if($l(n.data))return n.data;Array.isArray(n)&&(n={data:n});let e=n.type;return e||(cm(t)?e=Uint16Array:e=Float32Array),new e(n.data)}function XQ(n,t){const e={};return Object.keys(t).forEach(function(r){if(!cm(r)){const i=t[r],s=i.attrib||i.name||i.attribName||sm.attribPrefix+r;if(i.value){if(!Array.isArray(i.value)&&!$l(i.value))throw new Error("array.value is not array or typedarray");e[s]={value:i.value}}else{let o,a,l,c;if(i.buffer&&i.buffer instanceof WebGLBuffer)o=i.buffer,c=i.numComponents||i.size,a=i.type,l=i.normalize;else if(typeof i=="number"||typeof i.data=="number"){const u=i.data||i,f=i.type||Float32Array,h=u*f.BYTES_PER_ELEMENT;a=FQ(f),l=i.normalize!==void 0?i.normalize:JQ(f),c=i.numComponents||i.size||lm(r,u),o=n.createBuffer(),n.bindBuffer(ln,o),n.bufferData(ln,h,i.drawType||im)}else{const u=JA(i,r);o=am(n,u,void 0,i.drawType),a=VA(u),l=i.normalize!==void 0?i.normalize:VQ(u),c=WQ(i,r)}e[s]={buffer:o,numComponents:c,type:a,normalize:l,stride:i.stride||0,offset:i.offset||0,divisor:i.divisor===void 0?void 0:i.divisor,drawType:i.drawType}}}}),n.bindBuffer(ln,null),e}function ZQ(n,t,e,r){e=JA(e),r!==void 0?(n.bindBuffer(ln,t.buffer),n.bufferSubData(ln,r,e)):om(n,ln,t.buffer,e,t.drawType)}function $Q(n,t){return t===OQ||t===UQ?1:t===GQ||t===zQ?2:t===HQ||t===YQ||t===_Q?4:0}const qA=["position","positions","a_position"];function eS(n,t){let e,r;for(r=0;r<qA.length&&(e=qA[r],!(e in t||(e=sm.attribPrefix+e,e in t)));++r);r===qA.length&&(e=Object.keys(t)[0]);const i=t[e];if(!i.buffer)return 1;n.bindBuffer(ln,i.buffer);const s=n.getBufferParameter(ln,LQ);n.bindBuffer(ln,null);const o=$Q(n,i.type),a=s/o,l=i.numComponents||i.size,c=a/l;if(c%1!==0)throw new Error(`numComponents ${l} not correct for length ${length}`);return c}function tS(n,t,e){const r=XQ(n,t),i=Object.assign({},e||{});i.attribs=Object.assign({},e?e.attribs:{},r);const s=t.indices;if(s){const o=JA(s,"indices");i.indices=am(n,o,PQ),i.numElements=o.length,i.elementType=VA(o)}else i.numElements||(i.numElements=eS(n,i.attribs));return i}function es(n){return!!n.texStorage2D}const KA=(function(){const n={},t={};function e(r){const i=r.constructor.name;if(!n[i]){for(const s in r)if(typeof r[s]=="number"){const o=t[r[s]];t[r[s]]=o?`${o} | ${s}`:s}n[i]=!0}}return function(i,s){return e(i),t[s]||(typeof s=="number"?`0x${s.toString(16)}`:s)}})(),ir={textureColor:new Uint8Array([128,192,255,255]),textureOptions:{},crossOrigin:void 0},ts=$l,um=(function(){let n;return function(){return n=n||(typeof document<"u"&&document.createElement?document.createElement("canvas").getContext("2d"):null),n}})(),fm=6406,un=6407,xe=6408,Am=6409,hm=6410,ba=6402,dm=34041,tu=33071,nS=9728,rS=9729,Nn=3553,Tn=34067,sr=32879,or=35866,nu=34069,iS=34070,sS=34071,oS=34072,aS=34073,cS=34074,jA=10241,WA=10240,ru=10242,iu=10243,gm=32882,lS=33082,uS=33083,fS=33084,AS=33085,XA=3317,pm=3314,mm=32878,Cm=3316,ym=3315,wm=32877,hS=37443,dS=37441,gS=37440,pS=33321,mS=36756,CS=33325,yS=33326,wS=33330,IS=33329,ES=33338,bS=33337,xS=33340,BS=33339,vS=33323,QS=36757,SS=33327,DS=33328,kS=33336,FS=33335,MS=33332,RS=33331,NS=33334,TS=33333,PS=32849,LS=35905,OS=36194,US=36758,GS=35898,zS=35901,HS=34843,YS=34837,_S=36221,VS=36239,JS=36215,qS=36233,KS=36209,jS=36227,WS=32856,XS=35907,ZS=36759,$S=32855,eD=32854,tD=32857,nD=34842,rD=34836,iD=36220,sD=36238,oD=36975,aD=36214,cD=36232,lD=36226,uD=36208,fD=33189,AD=33190,hD=36012,dD=36013,gD=35056,ar=5120,Be=5121,su=5122,ns=5123,ou=5124,Zr=5125,st=5126,Im=32819,Em=32820,bm=33635,jt=5131,xa=36193,ZA=33640,pD=35899,mD=35902,CD=36269,yD=34042,au=33319,rs=33320,cu=6403,is=36244,ss=36248,$r=36249;let $A;function lu(n){if(!$A){const t={};t[fm]={textureFormat:fm,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1,2,2,4],type:[Be,jt,xa,st]},t[Am]={textureFormat:Am,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1,2,2,4],type:[Be,jt,xa,st]},t[hm]={textureFormat:hm,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[2,4,4,8],type:[Be,jt,xa,st]},t[un]={textureFormat:un,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3,6,6,12,2],type:[Be,jt,xa,st,bm]},t[xe]={textureFormat:xe,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,8,8,16,2,2],type:[Be,jt,xa,st,Im,Em]},t[ba]={textureFormat:ba,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2,4],type:[Zr,ns]},t[pS]={textureFormat:cu,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1],type:[Be]},t[mS]={textureFormat:cu,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[1],type:[ar]},t[CS]={textureFormat:cu,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[4,2],type:[st,jt]},t[yS]={textureFormat:cu,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[4],type:[st]},t[wS]={textureFormat:is,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[1],type:[Be]},t[IS]={textureFormat:is,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[1],type:[ar]},t[MS]={textureFormat:is,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[ns]},t[RS]={textureFormat:is,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[su]},t[NS]={textureFormat:is,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Zr]},t[TS]={textureFormat:is,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[ou]},t[vS]={textureFormat:au,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[2],type:[Be]},t[QS]={textureFormat:au,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[2],type:[ar]},t[SS]={textureFormat:au,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[8,4],type:[st,jt]},t[DS]={textureFormat:au,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[8],type:[st]},t[kS]={textureFormat:rs,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[Be]},t[FS]={textureFormat:rs,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[ar]},t[ES]={textureFormat:rs,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[ns]},t[bS]={textureFormat:rs,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[su]},t[xS]={textureFormat:rs,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[Zr]},t[BS]={textureFormat:rs,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[ou]},t[PS]={textureFormat:un,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3],type:[Be]},t[LS]={textureFormat:un,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[3],type:[Be]},t[OS]={textureFormat:un,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3,2],type:[Be,bm]},t[US]={textureFormat:un,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[3],type:[ar]},t[GS]={textureFormat:un,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6,4],type:[st,jt,pD]},t[zS]={textureFormat:un,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6,4],type:[st,jt,mD]},t[HS]={textureFormat:un,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6],type:[st,jt]},t[YS]={textureFormat:un,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[st]},t[_S]={textureFormat:ss,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[3],type:[Be]},t[VS]={textureFormat:ss,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[3],type:[ar]},t[JS]={textureFormat:ss,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[6],type:[ns]},t[qS]={textureFormat:ss,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[6],type:[su]},t[KS]={textureFormat:ss,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[Zr]},t[jS]={textureFormat:ss,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[ou]},t[WS]={textureFormat:xe,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[Be]},t[XS]={textureFormat:xe,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[Be]},t[ZS]={textureFormat:xe,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[4],type:[ar]},t[$S]={textureFormat:xe,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,2,4],type:[Be,Em,ZA]},t[eD]={textureFormat:xe,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,2],type:[Be,Im]},t[tD]={textureFormat:xe,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[ZA]},t[nD]={textureFormat:xe,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[16,8],type:[st,jt]},t[rD]={textureFormat:xe,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[16],type:[st]},t[iD]={textureFormat:$r,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Be]},t[sD]={textureFormat:$r,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[ar]},t[oD]={textureFormat:$r,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[ZA]},t[aD]={textureFormat:$r,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[ns]},t[cD]={textureFormat:$r,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[su]},t[lD]={textureFormat:$r,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[16],type:[ou]},t[uD]={textureFormat:$r,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[16],type:[Zr]},t[fD]={textureFormat:ba,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2,4],type:[ns,Zr]},t[AD]={textureFormat:ba,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Zr]},t[hD]={textureFormat:ba,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[st]},t[gD]={textureFormat:dm,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[yD]},t[dD]={textureFormat:dm,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[CD]},Object.keys(t).forEach(function(e){const r=t[e];r.bytesPerElementMap={},r.bytesPerElement.forEach(function(i,s){const o=r.type[s];r.bytesPerElementMap[o]=i})}),$A=t}return $A[n]}function wD(n,t){const e=lu(n);if(!e)throw"unknown internal format";const r=e.bytesPerElementMap[t];if(r===void 0)throw"unknown internal format";return r}function os(n){const t=lu(n);if(!t)throw"unknown internal format";return{format:t.textureFormat,type:t.type[0]}}function xm(n){return(n&n-1)===0}function ID(n,t,e,r){if(!es(n))return xm(t)&&xm(e);const i=lu(r);if(!i)throw"unknown internal format";return i.colorRenderable&&i.textureFilterable}function ED(n){const t=lu(n);if(!t)throw"unknown internal format";return t.textureFilterable}function Bm(n,t,e){return ts(t)?VA(t):e||Be}function uu(n,t,e,r,i){if(i%1!==0)throw"can't guess dimensions";if(!e&&!r){const s=Math.sqrt(i/(t===Tn?6:1));s%1===0?(e=s,r=s):(e=i,r=1)}else if(r){if(!e&&(e=i/r,e%1))throw"can't guess dimensions"}else if(r=i/e,r%1)throw"can't guess dimensions";return{width:e,height:r}}function as(n,t){t.colorspaceConversion!==void 0&&n.pixelStorei(hS,t.colorspaceConversion),t.premultiplyAlpha!==void 0&&n.pixelStorei(dS,t.premultiplyAlpha),t.flipY!==void 0&&n.pixelStorei(gS,t.flipY)}function vm(n){n.pixelStorei(XA,4),es(n)&&(n.pixelStorei(pm,0),n.pixelStorei(mm,0),n.pixelStorei(Cm,0),n.pixelStorei(ym,0),n.pixelStorei(wm,0))}function bD(n,t,e,r){r.minMag&&(e.call(n,t,jA,r.minMag),e.call(n,t,WA,r.minMag)),r.min&&e.call(n,t,jA,r.min),r.mag&&e.call(n,t,WA,r.mag),r.wrap&&(e.call(n,t,ru,r.wrap),e.call(n,t,iu,r.wrap),(t===sr||TQ(n,t))&&e.call(n,t,gm,r.wrap)),r.wrapR&&e.call(n,t,gm,r.wrapR),r.wrapS&&e.call(n,t,ru,r.wrapS),r.wrapT&&e.call(n,t,iu,r.wrapT),r.minLod&&e.call(n,t,lS,r.minLod),r.maxLod&&e.call(n,t,uS,r.maxLod),r.baseLevel&&e.call(n,t,fS,r.baseLevel),r.maxLevel&&e.call(n,t,AS,r.maxLevel)}function Qm(n,t,e){const r=e.target||Nn;n.bindTexture(r,t),bD(n,r,n.texParameteri,e)}function xD(n){return n=n||ir.textureColor,ts(n)?n:new Uint8Array([n[0]*255,n[1]*255,n[2]*255,n[3]*255])}function eh(n,t,e,r,i,s){e=e||ir.textureOptions,s=s||xe;const o=e.target||Nn;if(r=r||e.width,i=i||e.height,n.bindTexture(o,t),ID(n,r,i,s))n.generateMipmap(o);else{const a=ED(s)?rS:nS;n.texParameteri(o,jA,a),n.texParameteri(o,WA,a),n.texParameteri(o,ru,tu),n.texParameteri(o,iu,tu)}}function Ba(n){return n.auto===!0||n.auto===void 0&&n.level===void 0}function th(n,t){return t=t||{},t.cubeFaceOrder||[nu,iS,sS,oS,aS,cS]}function nh(n,t){const r=th(n,t).map(function(i,s){return{face:i,ndx:s}});return r.sort(function(i,s){return i.face-s.face}),r}function Sm(n,t,e,r){r=r||ir.textureOptions;const i=r.target||Nn,s=r.level||0;let o=e.width,a=e.height;const l=r.internalFormat||r.format||xe,c=os(l),u=r.format||c.format,f=r.type||c.type;if(as(n,r),n.bindTexture(i,t),i===Tn){const h=e.width,A=e.height;let d,g;if(h/6===A)d=A,g=[0,0,1,0,2,0,3,0,4,0,5,0];else if(A/6===h)d=h,g=[0,0,0,1,0,2,0,3,0,4,0,5];else if(h/3===A/2)d=h/3,g=[0,0,1,0,2,0,0,1,1,1,2,1];else if(h/2===A/3)d=h/2,g=[0,0,1,0,0,1,1,1,0,2,1,2];else throw"can't figure out cube map from element: "+(e.src?e.src:e.nodeName);const p=um();p?(p.canvas.width=d,p.canvas.height=d,o=d,a=d,nh(n,r).forEach(function(C){const w=g[C.ndx*2+0]*d,b=g[C.ndx*2+1]*d;p.drawImage(e,w,b,d,d,0,0,d,d),n.texImage2D(C.face,s,l,u,f,p.canvas)}),p.canvas.width=1,p.canvas.height=1):typeof createImageBitmap<"u"&&(o=d,a=d,nh(n,r).forEach(function(C){const w=g[C.ndx*2+0]*d,b=g[C.ndx*2+1]*d;n.texImage2D(C.face,s,l,d,d,0,u,f,null),createImageBitmap(e,w,b,d,d,{premultiplyAlpha:"none",colorSpaceConversion:"none"}).then(function(y){as(n,r),n.bindTexture(i,t),n.texImage2D(C.face,s,l,u,f,y),Ba(r)&&eh(n,t,r,o,a,l)})}))}else if(i===sr||i===or){const h=Math.min(e.width,e.height),A=Math.max(e.width,e.height),d=A/h;if(d%1!==0)throw"can not compute 3D dimensions of element";const g=e.width===A?1:0,p=e.height===A?1:0;n.pixelStorei(XA,1),n.pixelStorei(pm,e.width),n.pixelStorei(mm,0),n.pixelStorei(wm,0),n.texImage3D(i,s,l,h,h,h,0,u,f,null);for(let C=0;C<d;++C){const w=C*h*g,b=C*h*p;n.pixelStorei(Cm,w),n.pixelStorei(ym,b),n.texSubImage3D(i,s,0,0,C,h,h,1,u,f,e)}vm(n)}else n.texImage2D(i,s,l,u,f,e);Ba(r)&&eh(n,t,r,o,a,l),Qm(n,t,r)}function va(){}function BD(n){if(typeof document<"u"){const t=document.createElement("a");return t.href=n,t.hostname===location.hostname&&t.port===location.port&&t.protocol===location.protocol}else{const t=new URL(location.href).origin;return new URL(n,location.href).origin===t}}function vD(n,t){return t===void 0&&!BD(n)?"anonymous":t}function QD(n,t,e){e=e||va;let r;if(t=t!==void 0?t:ir.crossOrigin,t=vD(n,t),typeof Image<"u"){r=new Image,t!==void 0&&(r.crossOrigin=t);const i=function(){r.removeEventListener("error",s),r.removeEventListener("load",o),r=null},s=function(){const l="couldn't load image: "+n;RQ(l),e(l,r),i()},o=function(){e(null,r),i()};return r.addEventListener("error",s),r.addEventListener("load",o),r.src=n,r}else if(typeof ImageBitmap<"u"){let i,s;const o=function(){e(i,s)},a={};t&&(a.mode="cors"),fetch(n,a).then(function(l){if(!l.ok)throw l;return l.blob()}).then(function(l){return createImageBitmap(l,{premultiplyAlpha:"none",colorSpaceConversion:"none"})}).then(function(l){s=l,setTimeout(o)}).catch(function(l){i=l,setTimeout(o)}),r=null}return r}function Dm(n){return typeof ImageBitmap<"u"&&n instanceof ImageBitmap||typeof ImageData<"u"&&n instanceof ImageData||typeof HTMLElement<"u"&&n instanceof HTMLElement}function rh(n,t,e){return Dm(n)?(setTimeout(function(){e(null,n)}),n):QD(n,t,e)}function ih(n,t,e){e=e||ir.textureOptions;const r=e.target||Nn;if(n.bindTexture(r,t),e.color===!1)return;const i=xD(e.color);if(r===Tn)for(let s=0;s<6;++s)n.texImage2D(nu+s,0,xe,1,1,0,xe,Be,i);else r===sr||r===or?n.texImage3D(r,0,xe,1,1,1,0,xe,Be,i):n.texImage2D(r,0,xe,1,1,0,xe,Be,i)}function SD(n,t,e,r){return r=r||va,e=e||ir.textureOptions,ih(n,t,e),e=Object.assign({},e),rh(e.src,e.crossOrigin,function(s,o){s?r(s,t,o):(Sm(n,t,o,e),r(null,t,o))})}function DD(n,t,e,r){r=r||va;const i=e.src;if(i.length!==6)throw"there must be 6 urls for a cubemap";const s=e.level||0,o=e.internalFormat||e.format||xe,a=os(o),l=e.format||a.format,c=e.type||Be,u=e.target||Nn;if(u!==Tn)throw"target must be TEXTURE_CUBE_MAP";ih(n,t,e),e=Object.assign({},e);let f=6;const h=[],A=th(n,e);let d;function g(p){return function(C,w){--f,C?h.push(C):w.width!==w.height?h.push("cubemap face img is not a square: "+w.src):(as(n,e),n.bindTexture(u,t),f===5?th().forEach(function(b){n.texImage2D(b,s,o,l,c,w)}):n.texImage2D(p,s,o,l,c,w),Ba(e)&&n.generateMipmap(u)),f===0&&r(h.length?h:void 0,t,d)}}d=i.map(function(p,C){return rh(p,e.crossOrigin,g(A[C]))})}function kD(n,t,e,r){r=r||va;const i=e.src,s=e.internalFormat||e.format||xe,o=os(s),a=e.format||o.format,l=e.type||Be,c=e.target||or;if(c!==sr&&c!==or)throw"target must be TEXTURE_3D or TEXTURE_2D_ARRAY";ih(n,t,e),e=Object.assign({},e);let u=i.length;const f=[];let h;const A=e.level||0;let d=e.width,g=e.height;const p=i.length;let C=!0;function w(b){return function(y,x){if(--u,y)f.push(y);else{if(as(n,e),n.bindTexture(c,t),C){C=!1,d=e.width||x.width,g=e.height||x.height,n.texImage3D(c,A,s,d,g,p,0,a,l,null);for(let B=0;B<p;++B)n.texSubImage3D(c,A,0,0,B,d,g,1,a,l,x)}else{let B=x,E;(x.width!==d||x.height!==g)&&(E=um(),B=E.canvas,E.canvas.width=d,E.canvas.height=g,E.drawImage(x,0,0,d,g)),n.texSubImage3D(c,A,0,0,b,d,g,1,a,l,B),E&&B===E.canvas&&(E.canvas.width=0,E.canvas.height=0)}Ba(e)&&n.generateMipmap(c)}u===0&&r(f.length?f:void 0,t,h)}}h=i.map(function(b,y){return rh(b,e.crossOrigin,w(y))})}function km(n,t,e,r){r=r||ir.textureOptions;const i=r.target||Nn;n.bindTexture(i,t);let s=r.width,o=r.height,a=r.depth;const l=r.level||0,c=r.internalFormat||r.format||xe,u=os(c),f=r.format||u.format,h=r.type||Bm(n,e,u.type);if(ts(e))e instanceof Uint8ClampedArray&&(e=new Uint8Array(e.buffer));else{const p=MQ(h);e=new p(e)}const A=wD(c,h),d=e.byteLength/A;if(d%1)throw"length wrong size for format: "+KA(n,f);let g;if(i===sr||i===or)if(!s&&!o&&!a){const p=Math.cbrt(d);if(p%1!==0)throw"can't guess cube size of array of numElements: "+d;s=p,o=p,a=p}else s&&(!o||!a)?(g=uu(n,i,o,a,d/s),o=g.width,a=g.height):o&&(!s||!a)?(g=uu(n,i,s,a,d/o),s=g.width,a=g.height):(g=uu(n,i,s,o,d/a),s=g.width,o=g.height);else g=uu(n,i,s,o,d),s=g.width,o=g.height;if(vm(n),n.pixelStorei(XA,r.unpackAlignment||1),as(n,r),i===Tn){const p=A/e.BYTES_PER_ELEMENT,C=d/6*p;nh(n,r).forEach(w=>{const b=C*w.ndx,y=e.subarray(b,b+C);n.texImage2D(w.face,l,c,s,o,0,f,h,y)})}else i===sr||i===or?n.texImage3D(i,l,c,s,o,a,0,f,h,e):n.texImage2D(i,l,c,s,o,0,f,h,e);return{width:s,height:o,depth:a,type:h}}function FD(n,t,e){const r=e.target||Nn;n.bindTexture(r,t);const i=e.level||0,s=e.internalFormat||e.format||xe,o=os(s),a=e.format||o.format,l=e.type||o.type;if(as(n,e),r===Tn)for(let c=0;c<6;++c)n.texImage2D(nu+c,i,s,e.width,e.height,0,a,l,null);else r===sr||r===or?n.texImage3D(r,i,s,e.width,e.height,e.depth,0,a,l,null):n.texImage2D(r,i,s,e.width,e.height,0,a,l,null)}function Qa(n,t,e){e=e||va,t=t||ir.textureOptions;const r=n.createTexture(),i=t.target||Nn;let s=t.width||1,o=t.height||1;const a=t.internalFormat||xe;n.bindTexture(i,r),i===Tn&&(n.texParameteri(i,ru,tu),n.texParameteri(i,iu,tu));let l=t.src;if(l)if(typeof l=="function"&&(l=l(n,t)),typeof l=="string")SD(n,r,t,e);else if(ts(l)||Array.isArray(l)&&(typeof l[0]=="number"||Array.isArray(l[0])||ts(l[0]))){const c=km(n,r,l,t);s=c.width,o=c.height}else Array.isArray(l)&&(typeof l[0]=="string"||Dm(l[0]))?i===Tn?DD(n,r,t,e):kD(n,r,t,e):(Sm(n,r,l,t),s=l.width,o=l.height);else FD(n,r,t);return Ba(t)&&eh(n,r,t,s,o,a),Qm(n,r,t),r}function MD(n,t,e,r,i,s){r=r||e.width,i=i||e.height,s=s||e.depth;const o=e.target||Nn;n.bindTexture(o,t);const a=e.level||0,l=e.internalFormat||e.format||xe,c=os(l),u=e.format||c.format;let f;const h=e.src;if(h&&(ts(h)||Array.isArray(h)&&typeof h[0]=="number")?f=e.type||Bm(n,h,c.type):f=e.type||c.type,o===Tn)for(let A=0;A<6;++A)n.texImage2D(nu+A,a,l,r,i,0,u,f,null);else o===sr||o===or?n.texImage3D(o,a,l,r,i,s,0,u,f,null):n.texImage2D(o,a,l,r,i,0,u,f,null)}const RD=nm,fu=33984,ND=35048,Au=34962,TD=34963,sh=35345,Fm=35718,PD=35721,LD=35971,OD=35382,UD=35396,GD=35398,zD=35392,HD=35395,hu=5126,Mm=35664,Rm=35665,Nm=35666,oh=5124,Tm=35667,Pm=35668,Lm=35669,Om=35670,Um=35671,Gm=35672,zm=35673,Hm=35674,Ym=35675,_m=35676,YD=35678,_D=35680,VD=35679,JD=35682,qD=35685,KD=35686,jD=35687,WD=35688,XD=35689,ZD=35690,$D=36289,e4=36292,t4=36293,ah=5125,Vm=36294,Jm=36295,qm=36296,n4=36298,r4=36299,i4=36300,s4=36303,o4=36306,a4=36307,c4=36308,l4=36311,du=3553,gu=34067,ch=32879,pu=35866,X={};function Km(n,t){return X[t].bindPoint}function u4(n,t){return function(e){n.uniform1f(t,e)}}function f4(n,t){return function(e){n.uniform1fv(t,e)}}function A4(n,t){return function(e){n.uniform2fv(t,e)}}function h4(n,t){return function(e){n.uniform3fv(t,e)}}function d4(n,t){return function(e){n.uniform4fv(t,e)}}function jm(n,t){return function(e){n.uniform1i(t,e)}}function Wm(n,t){return function(e){n.uniform1iv(t,e)}}function Xm(n,t){return function(e){n.uniform2iv(t,e)}}function Zm(n,t){return function(e){n.uniform3iv(t,e)}}function $m(n,t){return function(e){n.uniform4iv(t,e)}}function g4(n,t){return function(e){n.uniform1ui(t,e)}}function p4(n,t){return function(e){n.uniform1uiv(t,e)}}function m4(n,t){return function(e){n.uniform2uiv(t,e)}}function C4(n,t){return function(e){n.uniform3uiv(t,e)}}function y4(n,t){return function(e){n.uniform4uiv(t,e)}}function w4(n,t){return function(e){n.uniformMatrix2fv(t,!1,e)}}function I4(n,t){return function(e){n.uniformMatrix3fv(t,!1,e)}}function E4(n,t){return function(e){n.uniformMatrix4fv(t,!1,e)}}function b4(n,t){return function(e){n.uniformMatrix2x3fv(t,!1,e)}}function x4(n,t){return function(e){n.uniformMatrix3x2fv(t,!1,e)}}function B4(n,t){return function(e){n.uniformMatrix2x4fv(t,!1,e)}}function v4(n,t){return function(e){n.uniformMatrix4x2fv(t,!1,e)}}function Q4(n,t){return function(e){n.uniformMatrix3x4fv(t,!1,e)}}function S4(n,t){return function(e){n.uniformMatrix4x3fv(t,!1,e)}}function At(n,t,e,r){const i=Km(n,t);return es(n)?function(s){let o,a;eu(n,s)?(o=s,a=null):(o=s.texture,a=s.sampler),n.uniform1i(r,e),n.activeTexture(fu+e),n.bindTexture(i,o),n.bindSampler(e,a)}:function(s){n.uniform1i(r,e),n.activeTexture(fu+e),n.bindTexture(i,s)}}function ht(n,t,e,r,i){const s=Km(n,t),o=new Int32Array(i);for(let a=0;a<i;++a)o[a]=e+a;return es(n)?function(a){n.uniform1iv(r,o),a.forEach(function(l,c){n.activeTexture(fu+o[c]);let u,f;eu(n,l)?(u=l,f=null):(u=l.texture,f=l.sampler),n.bindSampler(e,f),n.bindTexture(s,u)})}:function(a){n.uniform1iv(r,o),a.forEach(function(l,c){n.activeTexture(fu+o[c]),n.bindTexture(s,l)})}}X[hu]={Type:Float32Array,size:4,setter:u4,arraySetter:f4},X[Mm]={Type:Float32Array,size:8,setter:A4,cols:2},X[Rm]={Type:Float32Array,size:12,setter:h4,cols:3},X[Nm]={Type:Float32Array,size:16,setter:d4,cols:4},X[oh]={Type:Int32Array,size:4,setter:jm,arraySetter:Wm},X[Tm]={Type:Int32Array,size:8,setter:Xm,cols:2},X[Pm]={Type:Int32Array,size:12,setter:Zm,cols:3},X[Lm]={Type:Int32Array,size:16,setter:$m,cols:4},X[ah]={Type:Uint32Array,size:4,setter:g4,arraySetter:p4},X[Vm]={Type:Uint32Array,size:8,setter:m4,cols:2},X[Jm]={Type:Uint32Array,size:12,setter:C4,cols:3},X[qm]={Type:Uint32Array,size:16,setter:y4,cols:4},X[Om]={Type:Uint32Array,size:4,setter:jm,arraySetter:Wm},X[Um]={Type:Uint32Array,size:8,setter:Xm,cols:2},X[Gm]={Type:Uint32Array,size:12,setter:Zm,cols:3},X[zm]={Type:Uint32Array,size:16,setter:$m,cols:4},X[Hm]={Type:Float32Array,size:32,setter:w4,rows:2,cols:2},X[Ym]={Type:Float32Array,size:48,setter:I4,rows:3,cols:3},X[_m]={Type:Float32Array,size:64,setter:E4,rows:4,cols:4},X[qD]={Type:Float32Array,size:32,setter:b4,rows:2,cols:3},X[KD]={Type:Float32Array,size:32,setter:B4,rows:2,cols:4},X[jD]={Type:Float32Array,size:48,setter:x4,rows:3,cols:2},X[WD]={Type:Float32Array,size:48,setter:Q4,rows:3,cols:4},X[XD]={Type:Float32Array,size:64,setter:v4,rows:4,cols:2},X[ZD]={Type:Float32Array,size:64,setter:S4,rows:4,cols:3},X[YD]={Type:null,size:0,setter:At,arraySetter:ht,bindPoint:du},X[_D]={Type:null,size:0,setter:At,arraySetter:ht,bindPoint:gu},X[VD]={Type:null,size:0,setter:At,arraySetter:ht,bindPoint:ch},X[JD]={Type:null,size:0,setter:At,arraySetter:ht,bindPoint:du},X[$D]={Type:null,size:0,setter:At,arraySetter:ht,bindPoint:pu},X[e4]={Type:null,size:0,setter:At,arraySetter:ht,bindPoint:pu},X[t4]={Type:null,size:0,setter:At,arraySetter:ht,bindPoint:gu},X[n4]={Type:null,size:0,setter:At,arraySetter:ht,bindPoint:du},X[r4]={Type:null,size:0,setter:At,arraySetter:ht,bindPoint:ch},X[i4]={Type:null,size:0,setter:At,arraySetter:ht,bindPoint:gu},X[s4]={Type:null,size:0,setter:At,arraySetter:ht,bindPoint:pu},X[o4]={Type:null,size:0,setter:At,arraySetter:ht,bindPoint:du},X[a4]={Type:null,size:0,setter:At,arraySetter:ht,bindPoint:ch},X[c4]={Type:null,size:0,setter:At,arraySetter:ht,bindPoint:gu},X[l4]={Type:null,size:0,setter:At,arraySetter:ht,bindPoint:pu};function mu(n,t){return function(e){if(e.value)switch(n.disableVertexAttribArray(t),e.value.length){case 4:n.vertexAttrib4fv(t,e.value);break;case 3:n.vertexAttrib3fv(t,e.value);break;case 2:n.vertexAttrib2fv(t,e.value);break;case 1:n.vertexAttrib1fv(t,e.value);break;default:throw new Error("the length of a float constant value must be between 1 and 4!")}else n.bindBuffer(Au,e.buffer),n.enableVertexAttribArray(t),n.vertexAttribPointer(t,e.numComponents||e.size,e.type||hu,e.normalize||!1,e.stride||0,e.offset||0),e.divisor!==void 0&&n.vertexAttribDivisor(t,e.divisor)}}function cr(n,t){return function(e){if(e.value)if(n.disableVertexAttribArray(t),e.value.length===4)n.vertexAttrib4iv(t,e.value);else throw new Error("The length of an integer constant value must be 4!");else n.bindBuffer(Au,e.buffer),n.enableVertexAttribArray(t),n.vertexAttribIPointer(t,e.numComponents||e.size,e.type||oh,e.stride||0,e.offset||0),e.divisor!==void 0&&n.vertexAttribDivisor(t,e.divisor)}}function Cu(n,t){return function(e){if(e.value)if(n.disableVertexAttribArray(t),e.value.length===4)n.vertexAttrib4uiv(t,e.value);else throw new Error("The length of an unsigned integer constant value must be 4!");else n.bindBuffer(Au,e.buffer),n.enableVertexAttribArray(t),n.vertexAttribIPointer(t,e.numComponents||e.size,e.type||ah,e.stride||0,e.offset||0),e.divisor!==void 0&&n.vertexAttribDivisor(t,e.divisor)}}function lh(n,t,e){const r=e.size,i=e.count;return function(s){n.bindBuffer(Au,s.buffer);const o=s.size||s.numComponents||r,a=o/i,l=s.type||hu,u=X[l].size*o,f=s.normalize||!1,h=s.offset||0,A=u/i;for(let d=0;d<i;++d)n.enableVertexAttribArray(t+d),n.vertexAttribPointer(t+d,a,l,f,u,h+A*d),s.divisor!==void 0&&n.vertexAttribDivisor(t+d,s.divisor)}}const Pe={};Pe[hu]={size:4,setter:mu},Pe[Mm]={size:8,setter:mu},Pe[Rm]={size:12,setter:mu},Pe[Nm]={size:16,setter:mu},Pe[oh]={size:4,setter:cr},Pe[Tm]={size:8,setter:cr},Pe[Pm]={size:12,setter:cr},Pe[Lm]={size:16,setter:cr},Pe[ah]={size:4,setter:Cu},Pe[Vm]={size:8,setter:Cu},Pe[Jm]={size:12,setter:Cu},Pe[qm]={size:16,setter:Cu},Pe[Om]={size:4,setter:cr},Pe[Um]={size:8,setter:cr},Pe[Gm]={size:12,setter:cr},Pe[zm]={size:16,setter:cr},Pe[Hm]={size:4,setter:lh,count:2},Pe[Ym]={size:9,setter:lh,count:3},Pe[_m]={size:16,setter:lh,count:4};function e1(n){const t=n.name;return t.startsWith("gl_")||t.startsWith("webgl_")}const D4=/(\.|\[|]|\w+)/g,k4=n=>n>="0"&&n<="9";function t1(n,t,e,r){const i=n.split(D4).filter(a=>a!=="");let s=0,o="";for(;;){const a=i[s++];o+=a;const l=k4(a[0]),c=l?parseInt(a):a;if(l&&(o+=i[s++]),s===i.length){e[c]=t;break}else{const f=i[s++],h=f==="[",A=e[c]||(h?[]:{});e[c]=A,e=A,r[o]=r[o]||(function(d){return function(g){o1(d,g)}})(A),o+=f}}}function F4(n,t){let e=0;function r(a,l,c){const u=l.name.endsWith("[0]"),f=l.type,h=X[f];if(!h)throw new Error(`unknown type: 0x${f.toString(16)}`);let A;if(h.bindPoint){const d=e;e+=l.size,u?A=h.arraySetter(n,f,d,c,l.size):A=h.setter(n,f,d,c,l.size)}else h.arraySetter&&u?A=h.arraySetter(n,c):A=h.setter(n,c);return A.location=c,A}const i={},s={},o=n.getProgramParameter(t,Fm);for(let a=0;a<o;++a){const l=n.getActiveUniform(t,a);if(e1(l))continue;let c=l.name;c.endsWith("[0]")&&(c=c.substr(0,c.length-3));const u=n.getUniformLocation(t,l.name);if(u){const f=r(t,l,u);i[c]=f,t1(c,f,s,i)}}return i}function M4(n,t){const e={},r=n.getProgramParameter(t,LD);for(let i=0;i<r;++i){const s=n.getTransformFeedbackVarying(t,i);e[s.name]={index:i,type:s.type,size:s.size}}return e}function R4(n,t){const e=n.getProgramParameter(t,Fm),r=[],i=[];for(let a=0;a<e;++a){i.push(a),r.push({});const l=n.getActiveUniform(t,a);r[a].name=l.name}[["UNIFORM_TYPE","type"],["UNIFORM_SIZE","size"],["UNIFORM_BLOCK_INDEX","blockNdx"],["UNIFORM_OFFSET","offset"]].forEach(function(a){const l=a[0],c=a[1];n.getActiveUniforms(t,i,n[l]).forEach(function(u,f){r[f][c]=u})});const s={},o=n.getProgramParameter(t,OD);for(let a=0;a<o;++a){const l=n.getActiveUniformBlockName(t,a),c={index:n.getUniformBlockIndex(t,l),usedByVertexShader:n.getActiveUniformBlockParameter(t,a,UD),usedByFragmentShader:n.getActiveUniformBlockParameter(t,a,GD),size:n.getActiveUniformBlockParameter(t,a,zD),uniformIndices:n.getActiveUniformBlockParameter(t,a,HD)};c.used=c.usedByVertexShader||c.usedByFragmentShader,s[l]=c}return{blockSpecs:s,uniformData:r}}const n1=/\[\d+\]\.$/,N4=(n,t)=>((n+(t-1))/t|0)*t;function T4(n,t,e,r){if(t||e){r=r||1;const s=n.length/4;return function(o){let a=0,l=0;for(let c=0;c<s;++c){for(let u=0;u<r;++u)n[a++]=o[l++];a+=4-r}}}else return function(i){i.length?n.set(i):n[0]=i}}function P4(n,t,e,r){const i=e.blockSpecs,s=e.uniformData,o=i[r];if(!o)return RD("no uniform block object named:",r),{name:r,uniforms:{}};const a=new ArrayBuffer(o.size),l=n.createBuffer(),c=o.index;n.bindBuffer(sh,l),n.uniformBlockBinding(t,o.index,c);let u=r+".";n1.test(u)&&(u=u.replace(n1,"."));const f={},h={},A={};return o.uniformIndices.forEach(function(d){const g=s[d];let p=g.name;p.startsWith(u)&&(p=p.substr(u.length));const C=p.endsWith("[0]");C&&(p=p.substr(0,p.length-3));const w=X[g.type],b=w.Type,y=C?N4(w.size,16)*g.size:w.size*g.size,x=new b(a,g.offset,y/b.BYTES_PER_ELEMENT);f[p]=x;const B=T4(x,C,w.rows,w.cols);h[p]=B,t1(p,B,A,h)}),{name:r,array:a,asFloat:new Float32Array(a),buffer:l,uniforms:f,setters:h}}function r1(n,t,e){return P4(n,t.program,t.uniformBlockSpec,e)}function i1(n,t,e){const i=(t.uniformBlockSpec||t).blockSpecs[e.name];if(i){const s=i.index;return n.bindBufferRange(sh,s,e.buffer,e.offset||0,e.array.byteLength),!0}return!1}function s1(n,t,e){i1(n,t,e)&&n.bufferData(sh,e.array,ND)}function Sa(n,t){const e=n.setters;for(const r in t){const i=e[r];if(i){const s=t[r];i(s)}}}function o1(n,t){for(const e in t){const r=n[e];typeof r=="function"?r(t[e]):o1(n[e],t[e])}}function ei(n,...t){const e=n.uniformSetters||n,r=t.length;for(let i=0;i<r;++i){const s=t[i];if(Array.isArray(s)){const o=s.length;for(let a=0;a<o;++a)ei(e,s[a])}else for(const o in s){const a=e[o];a&&a(s[o])}}}function L4(n,t){const e={},r=n.getProgramParameter(t,PD);for(let i=0;i<r;++i){const s=n.getActiveAttrib(t,i);if(e1(s))continue;const o=n.getAttribLocation(t,s.name),a=Pe[s.type],l=a.setter(n,o,a);l.location=o,e[s.name]=l}return e}function O4(n,t){for(const e in t){const r=n[e];r&&r(t[e])}}function ti(n,t,e){e.vertexArrayObject?n.bindVertexArray(e.vertexArrayObject):(O4(t.attribSetters||t,e.attribs),e.indices&&n.bindBuffer(TD,e.indices))}function U4(n,t){const e=F4(n,t),r=L4(n,t),i={program:t,uniformSetters:e,attribSetters:r};return es(n)&&(i.uniformBlockSpec=R4(n,t),i.transformFeedbackInfo=M4(n,t)),i}const G4=4,a1=5123;function yu(n,t,e,r,i,s){e=e===void 0?G4:e;const o=t.indices,a=t.elementType,l=r===void 0?t.numElements:r;i=i===void 0?0:i,a||o?s!==void 0?n.drawElementsInstanced(e,l,a===void 0?a1:t.elementType,i,s):n.drawElements(e,l,a===void 0?a1:t.elementType,i):s!==void 0?n.drawArraysInstanced(e,i,l,s):n.drawArrays(e,i,l)}const z4=36160,ni=36161,H4=3553,Y4=5121,_4=6402,V4=6408,J4=33190,q4=36012,K4=35056,j4=36013,W4=32854,X4=32855,Z4=36194,c1=33189,l1=6401,u1=36168,uh=34041,fh=36064,wu=36096,f1=36128,Ah=33306,hh=33071,dh=9729,A1=[{format:V4,type:Y4,min:dh,wrap:hh},{format:uh}],Wt={};Wt[uh]=Ah,Wt[l1]=f1,Wt[u1]=f1,Wt[_4]=wu,Wt[c1]=wu,Wt[J4]=wu,Wt[q4]=wu,Wt[K4]=Ah,Wt[j4]=Ah;function $4(n,t){return Wt[n]||Wt[t]}const lr={};lr[W4]=!0,lr[X4]=!0,lr[Z4]=!0,lr[uh]=!0,lr[c1]=!0,lr[l1]=!0,lr[u1]=!0;function ek(n){return lr[n]}const tk=32;function nk(n){return n>=fh&&n<fh+tk}function h1(n,t,e,r){const i=z4,s=n.createFramebuffer();n.bindFramebuffer(i,s),e=e||n.drawingBufferWidth,r=r||n.drawingBufferHeight,t=t||A1;const o=[],a={framebuffer:s,attachments:[],width:e,height:r};return t.forEach(function(l,c){let u=l.attachment;const f=l.samples,h=l.format;let A=l.attachmentPoint||$4(h,l.internalFormat);if(A||(A=fh+c),nk(A)&&o.push(A),!u)if(f!==void 0||ek(h))u=n.createRenderbuffer(),n.bindRenderbuffer(ni,u),f>1?n.renderbufferStorageMultisample(ni,f,h,e,r):n.renderbufferStorage(ni,h,e,r);else{const d=Object.assign({},l);d.width=e,d.height=r,d.auto===void 0&&(d.auto=!1,d.min=d.min||d.minMag||dh,d.mag=d.mag||d.minMag||dh,d.wrapS=d.wrapS||d.wrap||hh,d.wrapT=d.wrapT||d.wrap||hh),u=Qa(n,d)}if(rm(n,u))n.framebufferRenderbuffer(i,A,ni,u);else if(eu(n,u))l.layer!==void 0?n.framebufferTextureLayer(i,A,u,l.level||0,l.layer):n.framebufferTexture2D(i,A,l.target||H4,u,l.level||0);else throw new Error("unknown attachment type");a.attachments.push(u)}),n.drawBuffers&&n.drawBuffers(o),a}function rk(n,t,e,r,i){r=r||n.drawingBufferWidth,i=i||n.drawingBufferHeight,t.width=r,t.height=i,e=e||A1,e.forEach(function(s,o){const a=t.attachments[o],l=s.format,c=s.samples;if(c!==void 0||rm(n,a))n.bindRenderbuffer(ni,a),c>1?n.renderbufferStorageMultisample(ni,c,l,r,i):n.renderbufferStorage(ni,l,r,i);else if(eu(n,a))MD(n,a,s,r,i);else throw new Error("unknown attachment type")})}function ik(n,t,e){const r=n.createVertexArray();return n.bindVertexArray(r),t.length||(t=[t]),t.forEach(function(i){ti(n,i,e)}),n.bindVertexArray(null),{numElements:e.numElements,elementType:e.elementType,vertexArrayObject:r}}const sk=/^(.*?)_/;function ok(n,t){KA(n,0);const e=n.getExtension(t);if(e){const r={},i=sk.exec(t)[1],s="_"+i;for(const o in e){const a=e[o],l=typeof a=="function",c=l?i:s;let u=o;o.endsWith(c)&&(u=o.substring(0,o.length-c.length)),n[u]!==void 0?!l&&n[u]!==a&&nm(u,n[u],a,o):l?n[u]=(function(f){return function(){return f.apply(e,arguments)}})(a):(n[u]=a,r[u]=a)}r.constructor={name:e.constructor.name},KA(r,0)}return e}const d1=["ANGLE_instanced_arrays","EXT_blend_minmax","EXT_color_buffer_float","EXT_color_buffer_half_float","EXT_disjoint_timer_query","EXT_disjoint_timer_query_webgl2","EXT_frag_depth","EXT_sRGB","EXT_shader_texture_lod","EXT_texture_filter_anisotropic","OES_element_index_uint","OES_standard_derivatives","OES_texture_float","OES_texture_float_linear","OES_texture_half_float","OES_texture_half_float_linear","OES_vertex_array_object","WEBGL_color_buffer_float","WEBGL_compressed_texture_atc","WEBGL_compressed_texture_etc1","WEBGL_compressed_texture_pvrtc","WEBGL_compressed_texture_s3tc","WEBGL_compressed_texture_s3tc_srgb","WEBGL_depth_texture","WEBGL_draw_buffers"];function g1(n){for(let t=0;t<d1.length;++t)ok(n,d1[t])}function ak(n,t){const e=["webgl2","webgl","experimental-webgl"];let r=null;for(let i=0;i<e.length;++i)if(r=n.getContext(e[i],t),r){g1(r);break}return r}function ck(n,t){return ak(n,t)}const lk=`flat out lowp vec4 vFillColor;flat out lowp vec4 vStrokeColor;flat out float vHalfStrokeWidth;flat out vec4 vCornerRadii;
|
|
308
397
|
#if defined(ROUNDED_CORNERS) || defined(STROKED) || defined(SHADOW)
|
|
309
398
|
out vec2 vPosInPixels;
|
|
310
399
|
#endif
|
|
@@ -312,7 +401,7 @@ flat out vec2 vHalfSizeInPixels;/***Adjusts the vertex position to ensure that t
|
|
|
312
401
|
#if defined(ROUNDED_CORNERS) || defined(STROKED) || defined(SHADOW)
|
|
313
402
|
float aaPadding=1.0/uDevicePixelRatio;float shadowPadding=uShadowBlur+max(abs(uShadowOffsetX),abs(uShadowOffsetY));float strokeWidth=getScaled_strokeWidth();float strokeOpacity=getScaled_strokeOpacity()*opaFactor;vec2 centeredFrac=frac-0.5;vec2 expand=centeredFrac*(strokeWidth+aaPadding+shadowPadding*2.0)/uViewportSize;pos+=expand;vec2 sizeInPixels=size*uViewportSize;vPosInPixels=(centeredFrac+expand/size)*sizeInPixels;vHalfSizeInPixels=sizeInPixels/2.0;vCornerRadii=min(cornerRadii,min(vHalfSizeInPixels.x,vHalfSizeInPixels.y));vHalfStrokeWidth=strokeWidth/2.0;vStrokeColor=vec4(getScaled_stroke()*strokeOpacity,strokeOpacity);
|
|
314
403
|
#endif
|
|
315
|
-
gl_Position=unitToNdc(pos);float fillOpacity=getScaled_fillOpacity()*opaFactor;vFillColor=vec4(getScaled_fill()*fillOpacity,fillOpacity);setupPicking();}`,
|
|
404
|
+
gl_Position=unitToNdc(pos);float fillOpacity=getScaled_fillOpacity()*opaFactor;vFillColor=vec4(getScaled_fill()*fillOpacity,fillOpacity);setupPicking();}`,uk=`#if defined(ROUNDED_CORNERS) || defined(STROKED) || defined(SHADOW)
|
|
316
405
|
in vec2 vPosInPixels;
|
|
317
406
|
#endif
|
|
318
407
|
flat in vec2 vHalfSizeInPixels;flat in lowp vec4 vFillColor;flat in lowp vec4 vStrokeColor;flat in float vHalfStrokeWidth;flat in vec4 vCornerRadii;out lowp vec4 fragColor;
|
|
@@ -338,88 +427,59 @@ if(vHalfStrokeWidth>0.0&&uHatchPattern>0){d=max(d,-pattern());}fragColor=distanc
|
|
|
338
427
|
#else
|
|
339
428
|
fragColor=vFillColor;if(uPickingEnabled){fragColor=vPickingColor;}
|
|
340
429
|
#endif
|
|
341
|
-
}`,
|
|
430
|
+
}`,fk=`layout(std140)uniform Mark{uniform float uMinWidth;uniform float uMinHeight;uniform float uMinOpacity;uniform float uCornerRadiusTopRight;uniform float uCornerRadiusBottomRight;uniform float uCornerRadiusTopLeft;uniform float uCornerRadiusBottomLeft;uniform int uHatchPattern;uniform vec3 uShadowColor;uniform float uShadowOpacity;uniform float uShadowBlur;uniform float uShadowOffsetX;uniform float uShadowOffsetY;
|
|
342
431
|
#pragma markUniforms
|
|
343
|
-
};`,
|
|
344
|
-
`),
|
|
345
|
-
`);this.pushAll=new Function("that",`${
|
|
432
|
+
};`,p1=1e4;class Ak{constructor(t){D(this,Ks);D(this,Ic,!1);this.size=t,this.arrays={},this.pushers=[],this.dataUpdaters=[],this.vertexCount=0}configure(){if(m(this,Ic))throw new Error("Already configured!");P(this,Ks,qE).call(this),P(this,Ks,KE).call(this),F(this,Ic,!0)}addConverter(t,e){const r=this.createUpdater(t,e.numComponents||1,e.targetArrayType??Float32Array,e.arrayReference),i=e.f;this.dataUpdaters.push(e.arrayReference?s=>r(i(s)):s=>r(i(s)))}createUpdater(t,e,r=Float32Array,i=void 0){if(!ft(this.size))throw new Error("The number of vertices must be defined!");let s,o,a=0;const l=new r(this.size*e);if(this.arrays[t]={data:l,numComponents:e},e==1){let c=0;const u=f=>{c=+f};s=()=>{l[a++]=c},o=u}else{let c=i??[0];const u=i?f=>{}:f=>{c=f};switch(e){case 1:break;case 2:s=()=>{l[a++]=c[0],l[a++]=c[1]},o=u;break;case 3:s=()=>{l[a++]=c[0],l[a++]=c[1],l[a++]=c[2]},o=u;break;case 4:s=()=>{l[a++]=c[0],l[a++]=c[1],l[a++]=c[2],l[a++]=c[3]},o=u;break;default:throw new Error("Invalid numComponents: "+e)}}return this.pushers.push(s),o}pushAll(){throw new Error("Call configure() first!")}updateFromDatum(t){throw new Error("Call configure() first!")}pushFromDatum(t){this.updateFromDatum(t),this.pushAll()}}Ic=new WeakMap,Ks=new WeakSet,qE=function(){if(this.size>p1){const t=this.pushers.map((r,i)=>`const p${i} = that.pushers[${i}];`).join(`
|
|
433
|
+
`),e=this.pushers.map((r,i)=>` p${i}();`).join(`
|
|
434
|
+
`);this.pushAll=new Function("that",`${t}
|
|
346
435
|
return function unrolledPushAll() {
|
|
347
|
-
${
|
|
436
|
+
${e}
|
|
348
437
|
that.vertexCount++;
|
|
349
|
-
};`)(this)}else this.pushAll=()=>{for(let
|
|
350
|
-
`),
|
|
351
|
-
`);this.updateFromDatum=new Function("that","datum",`${
|
|
438
|
+
};`)(this)}else this.pushAll=()=>{for(let t=0;t<this.pushers.length;t++)this.pushers[t]();this.vertexCount++}},KE=function(){if(this.size>p1){const t=this.dataUpdaters.map((r,i)=>`const u${i} = that.dataUpdaters[${i}];`).join(`
|
|
439
|
+
`),e=this.dataUpdaters.map((r,i)=>` u${i}(datum);`).join(`
|
|
440
|
+
`);this.updateFromDatum=new Function("that","datum",`${t}
|
|
352
441
|
return function unrolledUpdateFromDatum(datum) {
|
|
353
|
-
${
|
|
354
|
-
};`)(this)}else this.updateFromDatum=e=>{for(let t=0;t<this.dataUpdaters.length;t++)this.dataUpdaters[t](e)}};const co=5,jl=127;function Ql(n){const e=[];for(let p=0;p<=jl;p++)e.push(void 0);const t=new Map;for(const p of n.chars)p.id<=jl?e[p.id]=p:t.set(p.id,p);const r=8722;t.has(r)||t.set(r,e[45]);function i(p){return(p<=jl?e[p]:t.get(p))||e[63]}function s(p){return i(p.charCodeAt(0))}const o=n.common.base,a=s("x"),c=s("X"),u=s("q"),l=a.height-co*2,f=c.height-co*2,d=u.height-a.height+u.yoffset-a.yoffset;function h(p,m=1){let g=0;for(let y=0;y<p.length;y++)g+=i(p.charCodeAt(y)).xadvance;return g/o*m}return{measureWidth:h,getCharByCode:i,getChar:s,xHeight:l,capHeight:f,descent:d,common:n.common}}function vi(n,e=0,t=1){return Math.max(e,Math.min(t,n))}const am=2**31-1,VC=-2147483648;function _C(n,e,t,r=t){const i=new Array(n);i.fill(am);let s=VC,o=-1/0,a=!1;const c=new Array(n);c.fill(0);const u=e[0],f=(e[1]-e[0])/n,d=(y,x)=>{const A=(y-u)/f,w=Math.floor(A);return vi(x&&w==A?w-1:w,0,n-1)};function h(y,x,A){if(a)return;if(x>s)s=x;else{a=!0;return}const w=t(y);if(w<o){a=!0;return}o=w;const S=d(w,!1);i[S]>x&&(i[S]=x),c[S]<A&&(c[S]=A)}function p(y,x,A){if(a)return;if(x>s)s=x;else{a=!0,console.debug("Items (vertices) are not ordered properly. Disabling binned index.");return}const w=t(y),S=r(y);if(w<o){a=!0;return}else if(S<w){a=!0;return}o=w;const C=d(w,!1),v=d(S,!0);for(let T=C;T<=v;T++)i[T]>x&&(i[T]=x),c[T]<A&&(c[T]=A)}const m=(y,x,A=[0,0])=>{const w=d(y,!1),S=d(x,!0),C=i[w],v=Math.max(c[S],C);return A[0]=C,A[1]=v,A},g=()=>{if(a)return;for(let x=1;x<c.length;x++)c[x]<c[x-1]&&(c[x]=c[x-1]);let y=!0;for(let x=i.length-1;x>0;x--)y&&i[x]==am?(i[x]=c[x],y=!1):i[x-1]>i[x]&&(i[x-1]=i[x]);return m};return h.getIndex=g,p.getIndex=g,t==r?h:p}const Ht=1,Rn=2,Wl=4;class ql{constructor(e){R(this,Wr);Y(this,"stats",{count:0,first:null});Y(this,"paramMediatorProvider",null);this.paramMediatorProvider=e,this.children=[],this.parent=void 0,this.completed=!1}get behavior(){return 0}get label(){return`(${this.constructor.name})`}reset(){this.completed=!1;for(const e of this.children)e.reset();this.stats.count=0,this.stats.first=null}initialize(){}setParent(e){this.parent=e}addChild(e){if(e.parent)throw new Error("Cannot add the child! It already has a parent.");return this.children.push(e),e.setParent(this),O(this,Wr,Da).call(this),this}adopt(e){e.parent&&e.parent.removeChild(e),this.addChild(e)}adoptChildrenOf(e){for(const t of e.children)this.adopt(t)}insertAsParent(e){var t;if(this.isRoot())throw new Error("Cannot insert a new parent for a root node!");e.parent=this.parent,this.parent.children[this.parent.children.indexOf(this)]=e,O(t=this.parent,Wr,Da).call(t),this.parent=void 0,e.addChild(this)}removeChild(e){const t=this.children.indexOf(e);if(t>-1)this.children.splice(t,1),e.parent=void 0,O(this,Wr,Da).call(this);else throw new Error("Trying to remove an unknown child node!")}excise(){var e;if(this.isRoot())throw new Error("Cannot excise root node!");if(this.isTerminal())this.parent.removeChild(this);else if(this.children.length==1){const t=this.children[0];t.setParent(this.parent),this.parent.children[this.parent.children.indexOf(this)]=t,O(e=this.parent,Wr,Da).call(e),this.setParent(void 0),this.children.length=0}else throw new Error("Cannot excise a node that has multiple children!")}isRoot(){return!this.parent}isBranching(){return this.children.length>1}isTerminal(){return this.children.length==0}visit(e){e(this);for(const t of this.children)t.visit(e);e.afterChildren&&e.afterChildren(this)}subtreeToString(e=0){const t=this.children.map(r=>r.subtreeToString(e+1)).join("");return`${" ".repeat(e*2)}* ${this.label}${"identifier"in this&&this.identifier?": "+this.identifier:""}
|
|
355
|
-
${t}`}handle(e){this._propagate(e)}complete(){this.completed=!0;for(const e of this.children)e.complete()}beginBatch(e){for(const t of this.children)t.beginBatch(e)}get paramMediator(){if(this.paramMediatorProvider)return this.paramMediatorProvider.paramMediator;if(!this.parent)throw new Error("Cannot find paramMediator!");return this.parent.paramMediator}repropagate(){if(this.parent)this.parent.repropagate();else throw new Error("Cannot repropagate data, no FlowNode with stored data found!")}_propagate(e){}}Wr=new WeakSet,Da=function(){this._propagate=Function("children","stats",Us(this.children.length).map(e=>`const child${e} = children[${e}];`).join(`
|
|
356
|
-
`)+`return function propagate(datum) {
|
|
357
|
-
if (stats.count === 0) {
|
|
358
|
-
stats.first = structuredClone(datum);
|
|
359
|
-
}
|
|
360
|
-
stats.count++;
|
|
361
|
-
${Us(this.children.length).map(e=>`child${e}.handle(datum);`).join(`
|
|
362
|
-
`)}
|
|
363
|
-
};`)(this.children,this.stats)};function cm(n){return n.type=="file"}function jC(n){return n.type=="facet"}class Te extends ql{constructor(t,r){super(r);R(this,ta);G(this,ta,t.type)}get label(){return E(this,ta)}}ta=new WeakMap;const pt="_uniqueId",um=1e4,lm=[null];class Yl extends Te{get behavior(){return Rn}constructor(e){super(e),this.params=e,this.as=e.as??pt,this._blocks=[],this._usedBlocks=0,this._id=-1}initialize(){}reset(){super.reset(),this._usedBlocks=0,this._id=-1}handle(e){e[this.as]=this._nextId(),this._propagate(e)}_nextId(){return++this._id%um==0&&(this._id=this._getBlock()*um),this._id}_getBlock(){return this._usedBlocks<this._blocks.length?this._blocks[this._usedBlocks++]:this._reserveBlock()}_reserveBlock(){const e=lm.length;return lm[e]=this,this._blocks.push(e),this._usedBlocks++,e}}function Si(n,e,t){return n.fields=e||[],n.fname=t,n}function QC(n){return n.length===1?WC(n[0]):qC(n)}const WC=n=>function(e){return e[n]},qC=n=>{const e=n.length;return function(t){for(let r=0;r<e;++r)t=t[n[r]];return t}};function mt(n){throw Error(n)}function YC(n){const e=[],t=n.length;let r=null,i=0,s="",o,a,c;n=n+"";function u(){e.push(s+n.substring(o,a)),s="",o=a+1}for(o=a=0;a<t;++a)if(c=n[a],c==="\\")s+=n.substring(o,a++),o=a;else if(c===r)u(),r=null,i=-1;else{if(r)continue;o===i&&c==='"'||o===i&&c==="'"?(o=a+1,r=c):c==="."&&!i?a>o?u():o=a+1:c==="["?(a>o&&u(),i=o=a+1):c==="]"&&(i||mt("Access path missing open bracket: "+n),i>0&&u(),i=0,o=a+1)}return i&&mt("Access path missing closing bracket: "+n),r&&mt("Access path missing closing quote: "+n),a>o&&(a++,u()),e}function XC(n,e,t){const r=YC(n);return n=r.length===1?r[0]:n,Si(QC(r),[n],n)}XC("id"),Si(n=>n,[],"identity"),Si(()=>0,[],"zero"),Si(()=>1,[],"one"),Si(()=>!0,[],"true"),Si(()=>!1,[],"false");const ZC=new Set([...Object.getOwnPropertyNames(Object.prototype).filter(n=>typeof Object.prototype[n]=="function"),"__proto__"]);function fm(n){return typeof n=="function"}function vc(n,e){return Object.hasOwn(n,e)}function KC(n){return typeof n=="string"}function hm(n){const e={},t=n.length;for(let r=0;r<t;++r)e[n[r]]=!0;return e}const JC="RawCode",$C="Literal",e4="Property",t4="Identifier",n4="ArrayExpression",r4="BinaryExpression",i4="CallExpression",s4="ConditionalExpression",o4="LogicalExpression",a4="MemberExpression",c4="ObjectExpression",u4="UnaryExpression";function Tt(n){this.type=n}Tt.prototype.visit=function(n){let e,t,r;if(n(this))return 1;for(e=l4(this),t=0,r=e.length;t<r;++t)if(e[t].visit(n))return 1};function l4(n){switch(n.type){case n4:return n.elements;case r4:case o4:return[n.left,n.right];case i4:return[n.callee].concat(n.arguments);case s4:return[n.test,n.consequent,n.alternate];case a4:return[n.object,n.property];case c4:return n.properties;case e4:return[n.key,n.value];case u4:return[n.argument];case t4:case $C:case JC:default:return[]}}var Vt,V,B,_e,fe,Sc=1,uo=2,Sr=3,On=4,Ec=5,Er=6,it=7,lo=8,f4=9;Vt={},Vt[Sc]="Boolean",Vt[uo]="<end>",Vt[Sr]="Identifier",Vt[On]="Keyword",Vt[Ec]="Null",Vt[Er]="Numeric",Vt[it]="Punctuator",Vt[lo]="String",Vt[f4]="RegularExpression";var h4="ArrayExpression",d4="BinaryExpression",p4="CallExpression",m4="ConditionalExpression",dm="Identifier",g4="Literal",y4="LogicalExpression",b4="MemberExpression",x4="ObjectExpression",A4="Property",w4="UnaryExpression",Pe="Unexpected token %0",v4="Unexpected number",S4="Unexpected string",E4="Unexpected identifier",C4="Unexpected reserved word",D4="Unexpected end of input",Xl="Invalid regular expression",Zl="Invalid regular expression: missing /",pm="Octal literals are not allowed in strict mode.",I4="Duplicate data property in object literal not allowed in strict mode",ze="ILLEGAL",fo="Disabled.",T4=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\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\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),B4=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\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\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");function Cc(n,e){if(!n)throw new Error("ASSERT: "+e)}function un(n){return n>=48&&n<=57}function Kl(n){return"0123456789abcdefABCDEF".includes(n)}function ho(n){return"01234567".includes(n)}function k4(n){return n===32||n===9||n===11||n===12||n===160||n>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(n)}function po(n){return n===10||n===13||n===8232||n===8233}function mo(n){return n===36||n===95||n>=65&&n<=90||n>=97&&n<=122||n===92||n>=128&&T4.test(String.fromCharCode(n))}function Dc(n){return n===36||n===95||n>=65&&n<=90||n>=97&&n<=122||n>=48&&n<=57||n===92||n>=128&&B4.test(String.fromCharCode(n))}const F4={if:1,in:1,do:1,var:1,for:1,new:1,try:1,let:1,this:1,else:1,case:1,void:1,with:1,enum:1,while:1,break:1,catch:1,throw:1,const:1,yield:1,class:1,super:1,return:1,typeof:1,delete:1,switch:1,export:1,import:1,public:1,static:1,default:1,finally:1,extends:1,package:1,private:1,function:1,continue:1,debugger:1,interface:1,protected:1,instanceof:1,implements:1};function mm(){for(;B<_e;){const n=V.charCodeAt(B);if(k4(n)||po(n))++B;else break}}function Jl(n){var e,t,r,i=0;for(t=n==="u"?4:2,e=0;e<t;++e)B<_e&&Kl(V[B])?(r=V[B++],i=i*16+"0123456789abcdef".indexOf(r.toLowerCase())):ae({},Pe,ze);return String.fromCharCode(i)}function P4(){var n,e,t,r;for(n=V[B],e=0,n==="}"&&ae({},Pe,ze);B<_e&&(n=V[B++],!!Kl(n));)e=e*16+"0123456789abcdef".indexOf(n.toLowerCase());return(e>1114111||n!=="}")&&ae({},Pe,ze),e<=65535?String.fromCharCode(e):(t=(e-65536>>10)+55296,r=(e-65536&1023)+56320,String.fromCharCode(t,r))}function gm(){var n,e;for(n=V.charCodeAt(B++),e=String.fromCharCode(n),n===92&&(V.charCodeAt(B)!==117&&ae({},Pe,ze),++B,n=Jl("u"),(!n||n==="\\"||!mo(n.charCodeAt(0)))&&ae({},Pe,ze),e=n);B<_e&&(n=V.charCodeAt(B),!!Dc(n));)++B,e+=String.fromCharCode(n),n===92&&(e=e.substr(0,e.length-1),V.charCodeAt(B)!==117&&ae({},Pe,ze),++B,n=Jl("u"),(!n||n==="\\"||!Dc(n.charCodeAt(0)))&&ae({},Pe,ze),e+=n);return e}function M4(){var n,e;for(n=B++;B<_e;){if(e=V.charCodeAt(B),e===92)return B=n,gm();if(Dc(e))++B;else break}return V.slice(n,B)}function R4(){var n,e,t;return n=B,e=V.charCodeAt(B)===92?gm():M4(),e.length===1?t=Sr:F4.hasOwnProperty(e)?t=On:e==="null"?t=Ec:e==="true"||e==="false"?t=Sc:t=Sr,{type:t,value:e,start:n,end:B}}function $l(){var n=B,e=V.charCodeAt(B),t,r=V[B],i,s,o;switch(e){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++B,{type:it,value:String.fromCharCode(e),start:n,end:B};default:if(t=V.charCodeAt(B+1),t===61)switch(e){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return B+=2,{type:it,value:String.fromCharCode(e)+String.fromCharCode(t),start:n,end:B};case 33:case 61:return B+=2,V.charCodeAt(B)===61&&++B,{type:it,value:V.slice(n,B),start:n,end:B}}}if(o=V.substr(B,4),o===">>>=")return B+=4,{type:it,value:o,start:n,end:B};if(s=o.substr(0,3),s===">>>"||s==="<<="||s===">>=")return B+=3,{type:it,value:s,start:n,end:B};if(i=s.substr(0,2),r===i[1]&&"+-<>&|".includes(r)||i==="=>")return B+=2,{type:it,value:i,start:n,end:B};if(i==="//"&&ae({},Pe,ze),"<>=!+-*%&|^/".includes(r))return++B,{type:it,value:r,start:n,end:B};ae({},Pe,ze)}function O4(n){let e="";for(;B<_e&&Kl(V[B]);)e+=V[B++];return e.length===0&&ae({},Pe,ze),mo(V.charCodeAt(B))&&ae({},Pe,ze),{type:Er,value:parseInt("0x"+e,16),start:n,end:B}}function N4(n){let e="0"+V[B++];for(;B<_e&&ho(V[B]);)e+=V[B++];return(mo(V.charCodeAt(B))||un(V.charCodeAt(B)))&&ae({},Pe,ze),{type:Er,value:parseInt(e,8),octal:!0,start:n,end:B}}function ym(){var n,e,t;if(t=V[B],Cc(un(t.charCodeAt(0))||t===".","Numeric literal must start with a decimal digit or a decimal point"),e=B,n="",t!=="."){if(n=V[B++],t=V[B],n==="0"){if(t==="x"||t==="X")return++B,O4(e);if(ho(t))return N4(e);t&&un(t.charCodeAt(0))&&ae({},Pe,ze)}for(;un(V.charCodeAt(B));)n+=V[B++];t=V[B]}if(t==="."){for(n+=V[B++];un(V.charCodeAt(B));)n+=V[B++];t=V[B]}if(t==="e"||t==="E")if(n+=V[B++],t=V[B],(t==="+"||t==="-")&&(n+=V[B++]),un(V.charCodeAt(B)))for(;un(V.charCodeAt(B));)n+=V[B++];else ae({},Pe,ze);return mo(V.charCodeAt(B))&&ae({},Pe,ze),{type:Er,value:parseFloat(n),start:e,end:B}}function L4(){var n="",e,t,r,i,s=!1;for(e=V[B],Cc(e==="'"||e==='"',"String literal must starts with a quote"),t=B,++B;B<_e;)if(r=V[B++],r===e){e="";break}else if(r==="\\")if(r=V[B++],!r||!po(r.charCodeAt(0)))switch(r){case"u":case"x":V[B]==="{"?(++B,n+=P4()):n+=Jl(r);break;case"n":n+=`
|
|
364
|
-
`;break;case"r":n+="\r";break;case"t":n+=" ";break;case"b":n+="\b";break;case"f":n+="\f";break;case"v":n+="\v";break;default:ho(r)?(i="01234567".indexOf(r),i!==0&&(s=!0),B<_e&&ho(V[B])&&(s=!0,i=i*8+"01234567".indexOf(V[B++]),"0123".includes(r)&&B<_e&&ho(V[B])&&(i=i*8+"01234567".indexOf(V[B++]))),n+=String.fromCharCode(i)):n+=r;break}else r==="\r"&&V[B]===`
|
|
365
|
-
`&&++B;else{if(po(r.charCodeAt(0)))break;n+=r}return e!==""&&ae({},Pe,ze),{type:lo,value:n,octal:s,start:t,end:B}}function z4(n,e){let t=n;e.includes("u")&&(t=t.replace(/\\u\{([0-9a-fA-F]+)\}/g,(r,i)=>{if(parseInt(i,16)<=1114111)return"x";ae({},Xl)}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"));try{new RegExp(t)}catch{ae({},Xl)}try{return new RegExp(n,e)}catch{return null}}function U4(){var n,e,t,r,i;for(n=V[B],Cc(n==="/","Regular expression literal must start with a slash"),e=V[B++],t=!1,r=!1;B<_e;)if(n=V[B++],e+=n,n==="\\")n=V[B++],po(n.charCodeAt(0))&&ae({},Zl),e+=n;else if(po(n.charCodeAt(0)))ae({},Zl);else if(t)n==="]"&&(t=!1);else if(n==="/"){r=!0;break}else n==="["&&(t=!0);return r||ae({},Zl),i=e.substr(1,e.length-2),{value:i,literal:e}}function G4(){var n,e,t;for(e="",t="";B<_e&&(n=V[B],!!Dc(n.charCodeAt(0)));)++B,n==="\\"&&B<_e?ae({},Pe,ze):(t+=n,e+=n);return t.search(/[^gimuy]/g)>=0&&ae({},Xl,t),{value:t,literal:e}}function H4(){var n,e,t,r;return fe=null,mm(),n=B,e=U4(),t=G4(),r=z4(e.value,t.value),{literal:e.literal+t.literal,value:r,regex:{pattern:e.value,flags:t.value},start:n,end:B}}function V4(n){return n.type===Sr||n.type===On||n.type===Sc||n.type===Ec}function bm(){if(mm(),B>=_e)return{type:uo,start:B,end:B};const n=V.charCodeAt(B);return mo(n)?R4():n===40||n===41||n===59?$l():n===39||n===34?L4():n===46?un(V.charCodeAt(B+1))?ym():$l():un(n)?ym():$l()}function st(){const n=fe;return B=n.end,fe=bm(),B=n.end,n}function xm(){const n=B;fe=bm(),B=n}function _4(n){const e=new Tt(h4);return e.elements=n,e}function Am(n,e,t){const r=new Tt(n==="||"||n==="&&"?y4:d4);return r.operator=n,r.left=e,r.right=t,r}function j4(n,e){const t=new Tt(p4);return t.callee=n,t.arguments=e,t}function Q4(n,e,t){const r=new Tt(m4);return r.test=n,r.consequent=e,r.alternate=t,r}function ef(n){const e=new Tt(dm);return e.name=n,e}function go(n){const e=new Tt(g4);return e.value=n.value,e.raw=V.slice(n.start,n.end),n.regex&&(e.raw==="//"&&(e.raw="/(?:)/"),e.regex=n.regex),e}function wm(n,e,t){const r=new Tt(b4);return r.computed=n==="[",r.object=e,r.property=t,r.computed||(t.member=!0),r}function W4(n){const e=new Tt(x4);return e.properties=n,e}function vm(n,e,t){const r=new Tt(A4);return r.key=e,r.value=t,r.kind=n,r}function q4(n,e){const t=new Tt(w4);return t.operator=n,t.argument=e,t.prefix=!0,t}function ae(n,e){var t,r=Array.prototype.slice.call(arguments,2),i=e.replace(/%(\d)/g,(s,o)=>(Cc(o<r.length,"Message reference must be in range"),r[o]));throw t=new Error(i),t.index=B,t.description=i,t}function Ic(n){n.type===uo&&ae(n,D4),n.type===Er&&ae(n,v4),n.type===lo&&ae(n,S4),n.type===Sr&&ae(n,E4),n.type===On&&ae(n,C4),ae(n,Pe,n.value)}function je(n){const e=st();(e.type!==it||e.value!==n)&&Ic(e)}function ge(n){return fe.type===it&&fe.value===n}function tf(n){return fe.type===On&&fe.value===n}function Y4(){const n=[];for(B=fe.start,je("[");!ge("]");)ge(",")?(st(),n.push(null)):(n.push(Cr()),ge("]")||je(","));return st(),_4(n)}function Sm(){B=fe.start;const n=st();return n.type===lo||n.type===Er?(n.octal&&ae(n,pm),go(n)):ef(n.value)}function X4(){var n,e,t,r;if(B=fe.start,n=fe,n.type===Sr)return t=Sm(),je(":"),r=Cr(),vm("init",t,r);if(n.type===uo||n.type===it)Ic(n);else return e=Sm(),je(":"),r=Cr(),vm("init",e,r)}function Z4(){var n=[],e,t,r,i={},s=String;for(B=fe.start,je("{");!ge("}");)e=X4(),e.key.type===dm?t=e.key.name:t=s(e.key.value),r="$"+t,Object.prototype.hasOwnProperty.call(i,r)?ae({},I4):i[r]=!0,n.push(e),ge("}")||je(",");return je("}"),W4(n)}function K4(){je("(");const n=nf();return je(")"),n}const J4={if:1};function $4(){var n,e,t;if(ge("("))return K4();if(ge("["))return Y4();if(ge("{"))return Z4();if(n=fe.type,B=fe.start,n===Sr||J4[fe.value])t=ef(st().value);else if(n===lo||n===Er)fe.octal&&ae(fe,pm),t=go(st());else{if(n===On)throw new Error(fo);n===Sc?(e=st(),e.value=e.value==="true",t=go(e)):n===Ec?(e=st(),e.value=null,t=go(e)):ge("/")||ge("/=")?(t=go(H4()),xm()):Ic(st())}return t}function e8(){const n=[];if(je("("),!ge(")"))for(;B<_e&&(n.push(Cr()),!ge(")"));)je(",");return je(")"),n}function t8(){B=fe.start;const n=st();return V4(n)||Ic(n),ef(n.value)}function n8(){return je("."),t8()}function r8(){je("[");const n=nf();return je("]"),n}function i8(){var n,e,t;for(n=$4();;)if(ge("."))t=n8(),n=wm(".",n,t);else if(ge("("))e=e8(),n=j4(n,e);else if(ge("["))t=r8(),n=wm("[",n,t);else break;return n}function Em(){const n=i8();if(fe.type===it&&(ge("++")||ge("--")))throw new Error(fo);return n}function Tc(){var n,e;if(fe.type!==it&&fe.type!==On)e=Em();else{if(ge("++")||ge("--"))throw new Error(fo);if(ge("+")||ge("-")||ge("~")||ge("!"))n=st(),e=Tc(),e=q4(n.value,e);else{if(tf("delete")||tf("void")||tf("typeof"))throw new Error(fo);e=Em()}}return e}function Cm(n){let e=0;if(n.type!==it&&n.type!==On)return 0;switch(n.value){case"||":e=1;break;case"&&":e=2;break;case"|":e=3;break;case"^":e=4;break;case"&":e=5;break;case"==":case"!=":case"===":case"!==":e=6;break;case"<":case">":case"<=":case">=":case"instanceof":case"in":e=7;break;case"<<":case">>":case">>>":e=8;break;case"+":case"-":e=9;break;case"*":case"/":case"%":e=11;break}return e}function s8(){var n,e,t,r,i,s,o,a,c,u;if(n=fe,c=Tc(),r=fe,i=Cm(r),i===0)return c;for(r.prec=i,st(),e=[n,fe],o=Tc(),s=[c,r,o];(i=Cm(fe))>0;){for(;s.length>2&&i<=s[s.length-2].prec;)o=s.pop(),a=s.pop().value,c=s.pop(),e.pop(),t=Am(a,c,o),s.push(t);r=st(),r.prec=i,s.push(r),e.push(fe),t=Tc(),s.push(t)}for(u=s.length-1,t=s[u],e.pop();u>1;)e.pop(),t=Am(s[u-1].value,s[u-2],t),u-=2;return t}function Cr(){var n,e,t;return n=s8(),ge("?")&&(st(),e=Cr(),je(":"),t=Cr(),n=Q4(n,e,t)),n}function nf(){const n=Cr();if(ge(","))throw new Error(fo);return n}function Dm(n){V=n,B=0,_e=V.length,fe=null,xm();const e=nf();if(fe.type!==uo)throw new Error("Unexpect token after expression.");return e}var o8={NaN:"NaN",E:"Math.E",LN2:"Math.LN2",LN10:"Math.LN10",LOG2E:"Math.LOG2E",LOG10E:"Math.LOG10E",PI:"Math.PI",SQRT1_2:"Math.SQRT1_2",SQRT2:"Math.SQRT2",MIN_VALUE:"Number.MIN_VALUE",MAX_VALUE:"Number.MAX_VALUE"};function Im(n){function e(o,a,c,u){let l=n(a[0]);return c&&(l=c+"("+l+")",c.lastIndexOf("new ",0)===0&&(l="("+l+")")),l+"."+o+(u<0?"":u===0?"()":"("+a.slice(1).map(n).join(",")+")")}function t(o,a,c){return u=>e(o,u,a,c)}const r="new Date",i="String",s="RegExp";return{isNaN:"Number.isNaN",isFinite:"Number.isFinite",abs:"Math.abs",acos:"Math.acos",asin:"Math.asin",atan:"Math.atan",atan2:"Math.atan2",ceil:"Math.ceil",cos:"Math.cos",exp:"Math.exp",floor:"Math.floor",hypot:"Math.hypot",log:"Math.log",max:"Math.max",min:"Math.min",pow:"Math.pow",random:"Math.random",round:"Math.round",sin:"Math.sin",sqrt:"Math.sqrt",tan:"Math.tan",clamp:function(o){o.length<3&&mt("Missing arguments to clamp function."),o.length>3&&mt("Too many arguments to clamp function.");const a=o.map(n);return"Math.max("+a[1]+", Math.min("+a[2]+","+a[0]+"))"},now:"Date.now",utc:"Date.UTC",datetime:r,date:t("getDate",r,0),day:t("getDay",r,0),year:t("getFullYear",r,0),month:t("getMonth",r,0),hours:t("getHours",r,0),minutes:t("getMinutes",r,0),seconds:t("getSeconds",r,0),milliseconds:t("getMilliseconds",r,0),time:t("getTime",r,0),timezoneoffset:t("getTimezoneOffset",r,0),utcdate:t("getUTCDate",r,0),utcday:t("getUTCDay",r,0),utcyear:t("getUTCFullYear",r,0),utcmonth:t("getUTCMonth",r,0),utchours:t("getUTCHours",r,0),utcminutes:t("getUTCMinutes",r,0),utcseconds:t("getUTCSeconds",r,0),utcmilliseconds:t("getUTCMilliseconds",r,0),length:t("length",null,-1),parseFloat:"parseFloat",parseInt:"parseInt",upper:t("toUpperCase",i,0),lower:t("toLowerCase",i,0),substring:t("substring",i),split:t("split",i),trim:t("trim",i,0),btoa:"btoa",atob:"atob",regexp:s,test:t("test",s),if:function(o){o.length<3&&mt("Missing arguments to if function."),o.length>3&&mt("Too many arguments to if function.");const a=o.map(n);return"("+a[0]+"?"+a[1]+":"+a[2]+")"}}}function a8(n){const e=n&&n.length-1;return e&&(n[0]==='"'&&n[e]==='"'||n[0]==="'"&&n[e]==="'")?n.slice(1,-1):n}function Tm(n){n=n||{};const e=n.allowed?hm(n.allowed):{},t=n.forbidden?hm(n.forbidden):{},r=n.constants||o8,i=(n.functions||Im)(f),s=n.globalvar,o=n.fieldvar,a=fm(s)?s:p=>`${s}["${p}"]`;[...Object.getOwnPropertyNames(Object.prototype).filter(p=>typeof Object.prototype[p]=="function")];let c={},u={},l=0;function f(p){if(KC(p))return p;const m=d[p.type];return m==null&&mt("Unsupported type: "+p.type),m(p)}const d={Literal:p=>p.raw,Identifier:p=>{const m=p.name;return l>0?m:vc(t,m)?mt("Illegal identifier: "+m):vc(r,m)?r[m]:vc(e,m)?m:(c[m]=1,a(m))},MemberExpression:p=>{const m=!p.computed,g=f(p.object);m&&(l+=1);const y=f(p.property);return g===o&&(u[a8(y)]=1),m&&(l-=1),g+(m?"."+y:"["+y+"]")},CallExpression:p=>{p.callee.type!=="Identifier"&&mt("Illegal callee type: "+p.callee.type);const m=p.callee.name,g=p.arguments,y=vc(i,m)&&i[m];return y||mt("Unrecognized function: "+m),fm(y)?y(g):y+"("+g.map(f).join(",")+")"},ArrayExpression:p=>"["+p.elements.map(f).join(",")+"]",BinaryExpression:p=>"("+f(p.left)+" "+p.operator+" "+f(p.right)+")",UnaryExpression:p=>"("+p.operator+f(p.argument)+")",ConditionalExpression:p=>"("+f(p.test)+"?"+f(p.consequent)+":"+f(p.alternate)+")",LogicalExpression:p=>"("+f(p.left)+p.operator+f(p.right)+")",ObjectExpression:p=>{for(const m of p.properties){const g=m.key.name;ZC.has(g)&&mt("Illegal property: "+g)}return"{"+p.properties.map(f).join(",")+"}"},Property:p=>{l+=1;const m=f(p.key);return l-=1,m+":"+f(p.value)}};function h(p){const m={code:f(p),globals:Object.keys(c),fields:Object.keys(u)};return c={},u={},m}return h.functions=i,h.constants=r,h}function Bm(n,e,t){return t=(t-n)/(e-n),t=Math.max(0,Math.min(1,t)),t*t*(3-2*t)}function c8(n,e,t){return vi((t-n)/(e-n),0,1)}const km={clamp:vi,format(n,e){return Le(e)(n)},mapHasKey(n,e){return n.has(e)},isArray:Ue,isBoolean:Is,isDefined(n){return n!==void 0},isNumber:Ze,isObject:Ge,isRegExp:$x,isString:me,isValid(n){return n!=null&&n===n},lerp:Od,linearstep:c8,replace(n,e,t){return String(n).replace(e,t)},smoothstep:Bm};function u8(n){const e=Im(n);for(const t in km)e[t]=`this.${t}`;return e}const l8=Tm({forbidden:[],allowed:["datum","undefined"],globalvar:"globalObject",fieldvar:"datum",functions:u8});function f8(n,e={}){try{const t=Dm(n),r=l8(t),i=Function("datum","globalObject",`"use strict";
|
|
366
|
-
try {
|
|
367
|
-
return (${r.code});
|
|
368
|
-
} catch (e) {
|
|
369
|
-
throw new Error("Error evaluating expression: " + ${JSON.stringify(n)} + ", " + e.message, e);
|
|
370
|
-
}`).bind(km),s=o=>i(o,e);return s.fields=r.fields,s.globals=r.globals,s.code=r.code,s}catch(t){throw new Error(`Invalid expression: ${n}, ${t.message}`)}}const h8=Tm({forbidden:[],allowed:["event"],globalvar:"globalObject"});function Fm(n){try{const e=Dm(n),t=h8(e);return Function("event","globalObject",`"use strict";
|
|
371
|
-
try {
|
|
372
|
-
return !!(${t.code});
|
|
373
|
-
} catch (e) {
|
|
374
|
-
throw new Error("Error evaluating expression: " + ${JSON.stringify(n)} + ", " + e.message, e);
|
|
375
|
-
}`)}catch(e){throw new Error(`Invalid expression: ${n}, ${e.message}`)}}class d8{constructor(e){R(this,Kn);Y(this,"paramListeners");R(this,qr,new Map);R(this,es,new Map);R(this,ts,new Map);R(this,na);G(this,na,e??(()=>{})),G(this,Kn,new Map),this.paramListeners=new Map}registerParam(e){const t=e.name;if("value"in e&&"expr"in e)throw new Error(`The parameter "${t}" must not have both value and expr properties!`);let r;if(e.push=="outer"){const i=this.findMediatorForParam(t);if(!i)throw new Error(`Parameter "${t}" not found in outer scope!`);const s=i.paramConfigs.get(t);if("expr"in s||"select"in s)throw new Error(`The outer parameter "${t}" must not have expr or select properties!`);r=i.getSetter(t),E(this,qr).set(t,r)}else if("value"in e)r=this.allocateSetter(t,e.value);else if("expr"in e){const i=this.createExpression(e.expr),s=this.allocateSetter(t,i(null));i.addListener(()=>s(i(null))),r=o=>{}}else r=this.allocateSetter(t,null);if("select"in e){const i=kc(e.select);if(Fc(i))r(i.toggle?sf():rf(null));else if(Lm(i)){if(!i.encodings)throw new Error(`Interval selection "${t}" must have encodings defined!`);r(Rm(i.encodings))}}return E(this,ts).set(t,e),r}allocateSetter(e,t,r=!1){if(yo(e),E(this,qr).has(e))throw new Error("Setter already allocated for parameter: "+e);const i=s=>{const o=E(this,Kn).get(e);if(s!==o){E(this,Kn).set(e,s);const a=this.paramListeners.get(e);if(a&&!r)for(const c of a)c()}};return i(t),E(this,qr).set(e,i),i}getSetter(e){const t=E(this,qr).get(e);if(!t)throw new Error("Setter not found for parameter: "+e);return t}getValue(e){return E(this,Kn).get(e)}findValue(e){const t=this.findMediatorForParam(e);return t==null?void 0:t.getValue(e)}get paramConfigs(){return E(this,ts)}findMediatorForParam(e){var t;return E(this,Kn).has(e)?this:(t=E(this,na).call(this))==null?void 0:t.findMediatorForParam(e)}createExpression(e){if(E(this,es).has(e))return E(this,es).get(e);const t={},r=f8(e,t),i=new Map;for(const o of r.globals){const a=this.findMediatorForParam(o);if(!a)throw new Error(`Unknown variable "${o}" in expression: ${e}`);i.set(o,a),Object.defineProperty(t,o,{enumerable:!0,get(){return a.getValue(o)}})}const s=new Set;return r.addListener=o=>{for(const[a,c]of i){const u=c.paramListeners.get(a)??new Set;c.paramListeners.set(a,u),u.add(o),s.add(o)}},r.removeListener=o=>{var a;for(const[c,u]of i)(a=u.paramListeners.get(c))==null||a.delete(o);s.delete(o)},r.invalidate=()=>{var o;for(const[a,c]of i)for(const u of s)(o=c.paramListeners.get(a))==null||o.delete(u);s.clear()},r.identifier=()=>r.code,E(this,es).set(e,r),r}evaluateAndGet(e){return this.createExpression(e)()}hasPointSelections(){for(const e of E(this,ts).values())if(Pm(e)){const t=e.select;if(me(t)){if(t=="point")return!0}else if(t.type=="point")return!0}return!1}}Kn=new WeakMap,qr=new WeakMap,es=new WeakMap,ts=new WeakMap,na=new WeakMap;function Qe(n){return typeof n=="object"&&n!=null&&"expr"in n&&me(n.expr)}function gt(n){if(Qe(n))throw new Error(`ExprRef ${JSON.stringify(n)} not allowed here. Expected a scalar value.`);return n}function p8(n){return("expr"in n||"bind"in n)&&!("select"in n)}function Pm(n){return!("expr"in n||"bind"in n)&&"select"in n}function Bc(n,e,t){const r={...e},i=[],s=o=>{i.push(o),i.length===1&&queueMicrotask(()=>{t(i.slice()),i.length=0})};for(const[o,a]of Object.entries(e))if(Qe(a)){const c=n.createExpression(a.expr);t&&c.addListener(()=>s(o)),Object.defineProperty(r,o,{enumerable:!0,get(){return c()}})}else r[o]=a;return r}function yo(n){if(!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(n))throw new Error(`Invalid parameter name: ${n}. Must be a valid JavaScript identifier.`);return n}function Mm(n){return Object.assign(()=>n,{addListener:()=>{},removeListener:()=>{},invalidate:()=>{},identifier:()=>"constant",fields:[],globals:[],code:JSON.stringify(n)})}function rf(n){return{type:"single",datum:n,uniqueId:n==null?void 0:n[pt]}}function sf(n){return n??(n=[]),{type:"multi",data:new Map(n.map(e=>[e[pt],e]))}}function Rm(n){return{type:"interval",intervals:Object.fromEntries(n.map(e=>[e,null]))}}function m8(n,{add:e,remove:t,toggle:r}){const i=n.data;for(const s of e??[])i.set(s[pt],s);for(const s of t??[])i.delete(s[pt]);for(const s of r??[]){const o=s[pt];i.has(o)?i.delete(o):i.set(o,s)}return{type:"multi",data:i}}function g8(n,e){const t=!!(n.empty??!0),r=yo(n.param),i=n.fields??{};if(Nm(e))return`${r}.uniqueId == null ? ${t} : ${r}.uniqueId === datum[${JSON.stringify(pt)}]`;if(of(e))return`${r}.data.size == 0 ? ${t} : mapHasKey(${r}.data, datum[${JSON.stringify(pt)}])`;if(Om(e)){const s=Object.keys(e.intervals),o=Object.keys(i).filter(cf);if(o.length===0)throw new Error("Filtering using interval selections requires at least one primary positional channel in the config! "+JSON.stringify(n));if(o.some(u=>!s.includes(u)))throw new Error(`Selection channels (${s.join(", ")}) do not match the fields: ${JSON.stringify(n)}!`);const a=u=>`datum[${JSON.stringify(u)}]`;return s.map(u=>{const l=lf(u),f=i[u],d=i[l]??i[u],h=`${r}.intervals.${u}[0] <= ${a(d)}`,p=`${a(f)} <= ${r}.intervals.${u}[1]`;return`(${r}.intervals.${u} ? (${h} && ${p}) : ${t})`}).join(" && ")}else throw new Error(`Unrecognized selection type : ${JSON.stringify(e)}`)}function Om(n){return n.type==="interval"}function Nm(n){return n.type==="single"}function of(n){return n.type==="multi"}function kc(n){const e=typeof n=="string"?{type:n}:{...n};return e.on=e.on?Um(e.on):Fc(e)?{type:"click"}:void 0,e.clear=e.clear===!1?void 0:e.clear===!0||e.clear==null?{type:"dblclick"}:Um(e.clear),Fc(e)&&e.on.type==="click"&&(e.toggle=!0),e}function Fc(n){return n&&n.type=="point"}function Lm(n){return n&&n.type=="interval"}function zm(n){return Object.values(n.intervals).some(e=>e&&e.length===2)}function y8(n,e){return Object.entries(n.intervals).every(([t,r])=>(t=="x"||t=="y")&&r&&r[0]<=e[t]&&r[1]>=e[t])}function Um(n){if(typeof n=="string"){const e=n.match(/^([a-zA-Z]+)(?:\[(.+)\])?$/);if(!e)throw new Error(`Invalid event type string: ${n}`);const[,t,r]=e,i={type:t};return r&&(i.filter=r),i}else return n}function ue(n,e=n){if(/^[A-Za-z0-9_]+$/.test(n)){const t=function(i){n in i||b8(i,n)},r=new Function("validator",`
|
|
376
|
-
let validated = !validator;
|
|
377
|
-
return function accessField(datum) {
|
|
378
|
-
if (!validated) {
|
|
379
|
-
validator(datum);
|
|
380
|
-
validated = true;
|
|
381
|
-
}
|
|
382
|
-
return datum[${JSON.stringify(n)}];
|
|
383
|
-
}`)(t);return ee(r,[n],e)}else return Ba(n)}function b8(n,e){throw new Error(`Invalid field "${e}". Available fields or properties: ${Object.keys(n).join(", ")}`)}function Gm(n,e,t){if(!n)return;function r(s){const o=s;return o.fields??(o.fields=[]),o.constant=o.fields.length===0,o.channelDef=e,o.channel=n,o.scaleChannel=((lt(e)&&e.resolutionChannel)??(Mc(n)&&n))||void 0,"param"in e?(o.predicate=Mm(!1),o.predicate.param=e.param,o.predicate.empty=e.empty??!0):(o.predicate=Mm(!0),o.predicate.empty=!1),o.asNumberAccessor=()=>o,o}function i(s){if(Qe(s)){const o=r(t.createExpression(s.expr));if(o.fields.length>0)throw new Error("Expression in DatumDef/ValueDef cannot access data fields: "+s.expr);return o}else{const o=s;return r(()=>o)}}if(Nn(e))try{return r(ue(e.field))}catch(s){throw new Error(`Invalid field definition: ${s.message}`)}else{if(xo(e))return r(t.createExpression(e.expr));if(bo(e))return i(e.datum);if(yt(e))return i(e.value);throw new Error(`Invalid channel definition: "${n}": ${JSON.stringify(e)}! The channel definition must contain one of the following properties: "field", "datum", "value" or "expr".`)}}function x8(n,e,t){const r=[];if(S8(e)||af(e)){const i=Array.isArray(e.condition)?e.condition:[e.condition];for(const s of i)r.push(Gm(n,s,t))}if(r.push(Gm(n,e,t)),r.filter(i=>!i.constant).length>1)throw new Error("Only one accessor can be non-constant. Channel: "+n);return r}function A8(n,e){const t={},r=i=>{var s;return(s=n.getScaleResolution(i))==null?void 0:s.scale};for(const[i,s]of Object.entries(e))s&&(t[i]=w8(x8(i,s,n.paramMediator),r));return t}function w8(n,e){if(n.length===1)return Hm(n[0],e);const t=n.map(s=>s.predicate),r=n.map(s=>Hm(s,e));return Object.assign(s=>{for(let o=0;o<r.length;o++)if(t[o](s))return r[o](s)},{constant:!1,accessors:r.map(s=>s.accessors[0]),dataAccessor:r.map(s=>s.dataAccessor).find(s=>s),scale:r.map(s=>s.scale).find(s=>s),channelDef:n.at(-1).channelDef})}function Hm(n,e){const{channel:t,scaleChannel:r,channelDef:i}=n,s=n.scaleChannel?e(r):void 0;if(r&&!s)throw new Error(`Missing scale! "${t}": ${JSON.stringify(i)}`);return Object.assign(s?o=>s(n(o)):o=>n(o),{scale:s,constant:n.constant,accessors:[n],dataAccessor:n.constant?void 0:n,channelDef:i})}function yt(n){return n&&"value"in n}function Nn(n){return n&&"field"in n}function bo(n){return n&&"datum"in n}function lt(n){return Nn(n)||bo(n)||xo(n)||_m(n)}function Vm(n){if(af(n)){const e=n.condition;if(!Array.isArray(e)&<(e))return e}else if(lt(n))return n}function v8(n,e){const t=n.mark.encoding[e];if(lt(t))return t;throw new Error("Not a channel def with scale!")}function _m(n){return n&&"chrom"in n}function xo(n){return n&&"expr"in n}function S8(n){return(Nn(n)||bo(n))&&"condition"in n}function af(n){return yt(n)&&"condition"in n}const Dr=["x","y"],E8=["x2","y2"],C8=[...Dr,...E8];function cf(n){return Dr.includes(n)}function Ao(n){return C8.includes(n)}const jm={x:"x2",y:"y2"},Qm=Object.fromEntries(Object.entries(jm).map(n=>[n[1],n[0]]));function uf(n){return n in Qm}function lf(n){const e=jm[n];if(e)return e;throw new Error(`${n} has no secondary channel!`)}function Ir(n){return Qm[n]??n}function Ln(n){return["color","fill","stroke"].includes(Ir(n))}function Pc(n){return["shape"].includes(n)}function Mc(n){return["x","y","x2","y2","color","fill","stroke","opacity","fillOpacity","strokeOpacity","strokeWidth","size","shape","angle","dx","dy","sample"].includes(n)}function D8(n){switch(n){case"shape":return["circle","square","cross","diamond","triangle-up","triangle-right","triangle-down","triangle-left","tick-up","tick-right","tick-down","tick-left"]}}function Wm(n){if(!Pc(n))throw new Error("Not a discrete channel: "+n);const e=new Map(D8(n).map((t,r)=>[t,r]));return t=>{const r=e.get(t);if(r!==void 0)return r;throw new Error(`Invalid value for "${n}" channel: ${t}`)}}function Ei(n,e,t){return n.fields=e||[],n.fname=t,n}function I8(n){return n.length===1?T8(n[0]):B8(n)}const T8=n=>function(e){return e[n]},B8=n=>{const e=n.length;return function(t){for(let r=0;r<e;++r)t=t[n[r]];return t}};function ff(n){throw Error(n)}function k8(n){const e=[],t=n.length;let r=null,i=0,s="",o,a,c;n=n+"";function u(){e.push(s+n.substring(o,a)),s="",o=a+1}for(o=a=0;a<t;++a)if(c=n[a],c==="\\")s+=n.substring(o,a++),o=a;else if(c===r)u(),r=null,i=-1;else{if(r)continue;o===i&&c==='"'||o===i&&c==="'"?(o=a+1,r=c):c==="."&&!i?a>o?u():o=a+1:c==="["?(a>o&&u(),i=o=a+1):c==="]"&&(i||ff("Access path missing open bracket: "+n),i>0&&u(),i=0,o=a+1)}return i&&ff("Access path missing closing bracket: "+n),r&&ff("Access path missing closing quote: "+n),a>o&&(a++,u()),e}function F8(n,e,t){const r=k8(n);return n=r.length===1?r[0]:n,Ei(I8(r),[n],n)}F8("id"),Ei(n=>n,[],"identity"),Ei(()=>0,[],"zero"),Ei(()=>1,[],"one"),Ei(()=>!0,[],"true"),Ei(()=>!1,[],"false"),[...Object.getOwnPropertyNames(Object.prototype).filter(n=>typeof Object.prototype[n]=="function")];var qm=Array.isArray;function Ym(n){return n[n.length-1]}function P8(n){return n==null||n===""?null:+n}function M8(n){return n!=null?qm(n)?n:[n]:[]}function R8(n){const e={},t=n.length;for(let r=0;r<t;++r)e[n[r]]=!0;return e}function _t(n,e){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(e).domain(n);break}return this}function zn(n,e){switch(arguments.length){case 0:break;case 1:{typeof n=="function"?this.interpolator(n):this.range(n);break}default:{this.domain(n),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const hf=Symbol("implicit");function df(){var n=new tn,e=[],t=[],r=hf;function i(s){let o=n.get(s);if(o===void 0){if(r!==hf)return r;n.set(s,o=e.push(s)-1)}return t[o%t.length]}return i.domain=function(s){if(!arguments.length)return e.slice();e=[],n=new tn;for(const o of s)n.has(o)||n.set(o,e.push(o)-1);return i},i.range=function(s){return arguments.length?(t=Array.from(s),i):t.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return df(e,t).unknown(r)},_t.apply(i,arguments),i}function Ci(n,e,t){n.prototype=e.prototype=t,t.constructor=n}function wo(n,e){var t=Object.create(n.prototype);for(var r in e)t[r]=e[r];return t}function Un(){}var Tr=.7,Di=1/Tr,Ii="\\s*([+-]?\\d+)\\s*",vo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",jt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",O8=/^#([0-9a-f]{3,8})$/,N8=new RegExp(`^rgb\\(${Ii},${Ii},${Ii}\\)$`),L8=new RegExp(`^rgb\\(${jt},${jt},${jt}\\)$`),z8=new RegExp(`^rgba\\(${Ii},${Ii},${Ii},${vo}\\)$`),U8=new RegExp(`^rgba\\(${jt},${jt},${jt},${vo}\\)$`),G8=new RegExp(`^hsl\\(${vo},${jt},${jt}\\)$`),H8=new RegExp(`^hsla\\(${vo},${jt},${jt},${vo}\\)$`),Xm={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ci(Un,Gn,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:Zm,formatHex:Zm,formatHex8:V8,formatHsl:_8,formatRgb:Km,toString:Km});function Zm(){return this.rgb().formatHex()}function V8(){return this.rgb().formatHex8()}function _8(){return ng(this).formatHsl()}function Km(){return this.rgb().formatRgb()}function Gn(n){var e,t;return n=(n+"").trim().toLowerCase(),(e=O8.exec(n))?(t=e[1].length,e=parseInt(e[1],16),t===6?Jm(e):t===3?new Me(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):t===8?Rc(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):t===4?Rc(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=N8.exec(n))?new Me(e[1],e[2],e[3],1):(e=L8.exec(n))?new Me(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=z8.exec(n))?Rc(e[1],e[2],e[3],e[4]):(e=U8.exec(n))?Rc(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=G8.exec(n))?tg(e[1],e[2]/100,e[3]/100,1):(e=H8.exec(n))?tg(e[1],e[2]/100,e[3]/100,e[4]):Xm.hasOwnProperty(n)?Jm(Xm[n]):n==="transparent"?new Me(NaN,NaN,NaN,0):null}function Jm(n){return new Me(n>>16&255,n>>8&255,n&255,1)}function Rc(n,e,t,r){return r<=0&&(n=e=t=NaN),new Me(n,e,t,r)}function pf(n){return n instanceof Un||(n=Gn(n)),n?(n=n.rgb(),new Me(n.r,n.g,n.b,n.opacity)):new Me}function Oc(n,e,t,r){return arguments.length===1?pf(n):new Me(n,e,t,r??1)}function Me(n,e,t,r){this.r=+n,this.g=+e,this.b=+t,this.opacity=+r}Ci(Me,Oc,wo(Un,{brighter(n){return n=n==null?Di:Math.pow(Di,n),new Me(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?Tr:Math.pow(Tr,n),new Me(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new Me(Br(this.r),Br(this.g),Br(this.b),Nc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$m,formatHex:$m,formatHex8:j8,formatRgb:eg,toString:eg}));function $m(){return`#${kr(this.r)}${kr(this.g)}${kr(this.b)}`}function j8(){return`#${kr(this.r)}${kr(this.g)}${kr(this.b)}${kr((isNaN(this.opacity)?1:this.opacity)*255)}`}function eg(){const n=Nc(this.opacity);return`${n===1?"rgb(":"rgba("}${Br(this.r)}, ${Br(this.g)}, ${Br(this.b)}${n===1?")":`, ${n})`}`}function Nc(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function Br(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function kr(n){return n=Br(n),(n<16?"0":"")+n.toString(16)}function tg(n,e,t,r){return r<=0?n=e=t=NaN:t<=0||t>=1?n=e=NaN:e<=0&&(n=NaN),new Bt(n,e,t,r)}function ng(n){if(n instanceof Bt)return new Bt(n.h,n.s,n.l,n.opacity);if(n instanceof Un||(n=Gn(n)),!n)return new Bt;if(n instanceof Bt)return n;n=n.rgb();var e=n.r/255,t=n.g/255,r=n.b/255,i=Math.min(e,t,r),s=Math.max(e,t,r),o=NaN,a=s-i,c=(s+i)/2;return a?(e===s?o=(t-r)/a+(t<r)*6:t===s?o=(r-e)/a+2:o=(e-t)/a+4,a/=c<.5?s+i:2-s-i,o*=60):a=c>0&&c<1?0:o,new Bt(o,a,c,n.opacity)}function mf(n,e,t,r){return arguments.length===1?ng(n):new Bt(n,e,t,r??1)}function Bt(n,e,t,r){this.h=+n,this.s=+e,this.l=+t,this.opacity=+r}Ci(Bt,mf,wo(Un,{brighter(n){return n=n==null?Di:Math.pow(Di,n),new Bt(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?Tr:Math.pow(Tr,n),new Bt(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,e=isNaN(n)||isNaN(this.s)?0:this.s,t=this.l,r=t+(t<.5?t:1-t)*e,i=2*t-r;return new Me(gf(n>=240?n-240:n+120,i,r),gf(n,i,r),gf(n<120?n+240:n-120,i,r),this.opacity)},clamp(){return new Bt(rg(this.h),Lc(this.s),Lc(this.l),Nc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=Nc(this.opacity);return`${n===1?"hsl(":"hsla("}${rg(this.h)}, ${Lc(this.s)*100}%, ${Lc(this.l)*100}%${n===1?")":`, ${n})`}`}}));function rg(n){return n=(n||0)%360,n<0?n+360:n}function Lc(n){return Math.max(0,Math.min(1,n||0))}function gf(n,e,t){return(n<60?e+(t-e)*n/60:n<180?t:n<240?e+(t-e)*(240-n)/60:e)*255}const ig=Math.PI/180,sg=180/Math.PI,zc=18,og=.96422,ag=1,cg=.82521,ug=4/29,Ti=6/29,lg=3*Ti*Ti,Q8=Ti*Ti*Ti;function fg(n){if(n instanceof Qt)return new Qt(n.l,n.a,n.b,n.opacity);if(n instanceof ln)return hg(n);n instanceof Me||(n=pf(n));var e=wf(n.r),t=wf(n.g),r=wf(n.b),i=bf((.2225045*e+.7168786*t+.0606169*r)/ag),s,o;return e===t&&t===r?s=o=i:(s=bf((.4360747*e+.3850649*t+.1430804*r)/og),o=bf((.0139322*e+.0971045*t+.7141733*r)/cg)),new Qt(116*i-16,500*(s-i),200*(i-o),n.opacity)}function yf(n,e,t,r){return arguments.length===1?fg(n):new Qt(n,e,t,r??1)}function Qt(n,e,t,r){this.l=+n,this.a=+e,this.b=+t,this.opacity=+r}Ci(Qt,yf,wo(Un,{brighter(n){return new Qt(this.l+zc*(n??1),this.a,this.b,this.opacity)},darker(n){return new Qt(this.l-zc*(n??1),this.a,this.b,this.opacity)},rgb(){var n=(this.l+16)/116,e=isNaN(this.a)?n:n+this.a/500,t=isNaN(this.b)?n:n-this.b/200;return e=og*xf(e),n=ag*xf(n),t=cg*xf(t),new Me(Af(3.1338561*e-1.6168667*n-.4906146*t),Af(-.9787684*e+1.9161415*n+.033454*t),Af(.0719453*e-.2289914*n+1.4052427*t),this.opacity)}}));function bf(n){return n>Q8?Math.pow(n,1/3):n/lg+ug}function xf(n){return n>Ti?n*n*n:lg*(n-ug)}function Af(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function wf(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function W8(n){if(n instanceof ln)return new ln(n.h,n.c,n.l,n.opacity);if(n instanceof Qt||(n=fg(n)),n.a===0&&n.b===0)return new ln(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var e=Math.atan2(n.b,n.a)*sg;return new ln(e<0?e+360:e,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function vf(n,e,t,r){return arguments.length===1?W8(n):new ln(n,e,t,r??1)}function ln(n,e,t,r){this.h=+n,this.c=+e,this.l=+t,this.opacity=+r}function hg(n){if(isNaN(n.h))return new Qt(n.l,0,0,n.opacity);var e=n.h*ig;return new Qt(n.l,Math.cos(e)*n.c,Math.sin(e)*n.c,n.opacity)}Ci(ln,vf,wo(Un,{brighter(n){return new ln(this.h,this.c,this.l+zc*(n??1),this.opacity)},darker(n){return new ln(this.h,this.c,this.l-zc*(n??1),this.opacity)},rgb(){return hg(this).rgb()}}));var dg=-.14861,Sf=1.78277,Ef=-.29227,Uc=-.90649,So=1.97294,pg=So*Uc,mg=So*Sf,gg=Sf*Ef-Uc*dg;function q8(n){if(n instanceof Fr)return new Fr(n.h,n.s,n.l,n.opacity);n instanceof Me||(n=pf(n));var e=n.r/255,t=n.g/255,r=n.b/255,i=(gg*r+pg*e-mg*t)/(gg+pg-mg),s=r-i,o=(So*(t-i)-Ef*s)/Uc,a=Math.sqrt(o*o+s*s)/(So*i*(1-i)),c=a?Math.atan2(o,s)*sg-120:NaN;return new Fr(c<0?c+360:c,a,i,n.opacity)}function Cf(n,e,t,r){return arguments.length===1?q8(n):new Fr(n,e,t,r??1)}function Fr(n,e,t,r){this.h=+n,this.s=+e,this.l=+t,this.opacity=+r}Ci(Fr,Cf,wo(Un,{brighter(n){return n=n==null?Di:Math.pow(Di,n),new Fr(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?Tr:Math.pow(Tr,n),new Fr(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=isNaN(this.h)?0:(this.h+120)*ig,e=+this.l,t=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(n),i=Math.sin(n);return new Me(255*(e+t*(dg*r+Sf*i)),255*(e+t*(Ef*r+Uc*i)),255*(e+t*(So*r)),this.opacity)}}));function yg(n,e,t,r,i){var s=n*n,o=s*n;return((1-3*n+3*s-o)*e+(4-6*s+3*o)*t+(1+3*n+3*s-3*o)*r+o*i)/6}function bg(n){var e=n.length-1;return function(t){var r=t<=0?t=0:t>=1?(t=1,e-1):Math.floor(t*e),i=n[r],s=n[r+1],o=r>0?n[r-1]:2*i-s,a=r<e-1?n[r+2]:2*s-i;return yg((t-r/e)*e,o,i,s,a)}}function xg(n){var e=n.length;return function(t){var r=Math.floor(((t%=1)<0?++t:t)*e),i=n[(r+e-1)%e],s=n[r%e],o=n[(r+1)%e],a=n[(r+2)%e];return yg((t-r/e)*e,i,s,o,a)}}const Gc=n=>()=>n;function Ag(n,e){return function(t){return n+t*e}}function Y8(n,e,t){return n=Math.pow(n,t),e=Math.pow(e,t)-n,t=1/t,function(r){return Math.pow(n+r*e,t)}}function Hc(n,e){var t=e-n;return t?Ag(n,t>180||t<-180?t-360*Math.round(t/360):t):Gc(isNaN(n)?e:n)}function X8(n){return(n=+n)==1?Re:function(e,t){return t-e?Y8(e,t,n):Gc(isNaN(e)?t:e)}}function Re(n,e){var t=e-n;return t?Ag(n,t):Gc(isNaN(n)?e:n)}const Df=function n(e){var t=X8(e);function r(i,s){var o=t((i=Oc(i)).r,(s=Oc(s)).r),a=t(i.g,s.g),c=t(i.b,s.b),u=Re(i.opacity,s.opacity);return function(l){return i.r=o(l),i.g=a(l),i.b=c(l),i.opacity=u(l),i+""}}return r.gamma=n,r}(1);function wg(n){return function(e){var t=e.length,r=new Array(t),i=new Array(t),s=new Array(t),o,a;for(o=0;o<t;++o)a=Oc(e[o]),r[o]=a.r||0,i[o]=a.g||0,s[o]=a.b||0;return r=n(r),i=n(i),s=n(s),a.opacity=1,function(c){return a.r=r(c),a.g=i(c),a.b=s(c),a+""}}}var Z8=wg(bg),K8=wg(xg);function If(n,e){e||(e=[]);var t=n?Math.min(e.length,n.length):0,r=e.slice(),i;return function(s){for(i=0;i<t;++i)r[i]=n[i]*(1-s)+e[i]*s;return r}}function vg(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function J8(n,e){return(vg(e)?If:Sg)(n,e)}function Sg(n,e){var t=e?e.length:0,r=n?Math.min(t,n.length):0,i=new Array(r),s=new Array(t),o;for(o=0;o<r;++o)i[o]=Hn(n[o],e[o]);for(;o<t;++o)s[o]=e[o];return function(a){for(o=0;o<r;++o)s[o]=i[o](a);return s}}function Eg(n,e){var t=new Date;return n=+n,e=+e,function(r){return t.setTime(n*(1-r)+e*r),t}}function kt(n,e){return n=+n,e=+e,function(t){return n*(1-t)+e*t}}function Cg(n,e){var t={},r={},i;(n===null||typeof n!="object")&&(n={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in n?t[i]=Hn(n[i],e[i]):r[i]=e[i];return function(s){for(i in t)r[i]=t[i](s);return r}}var Tf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bf=new RegExp(Tf.source,"g");function $8(n){return function(){return n}}function e6(n){return function(e){return n(e)+""}}function Dg(n,e){var t=Tf.lastIndex=Bf.lastIndex=0,r,i,s,o=-1,a=[],c=[];for(n=n+"",e=e+"";(r=Tf.exec(n))&&(i=Bf.exec(e));)(s=i.index)>t&&(s=e.slice(t,s),a[o]?a[o]+=s:a[++o]=s),(r=r[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,c.push({i:o,x:kt(r,i)})),t=Bf.lastIndex;return t<e.length&&(s=e.slice(t),a[o]?a[o]+=s:a[++o]=s),a.length<2?c[0]?e6(c[0].x):$8(e):(e=c.length,function(u){for(var l=0,f;l<e;++l)a[(f=c[l]).i]=f.x(u);return a.join("")})}function Hn(n,e){var t=typeof e,r;return e==null||t==="boolean"?Gc(e):(t==="number"?kt:t==="string"?(r=Gn(e))?(e=r,Df):Dg:e instanceof Gn?Df:e instanceof Date?Eg:vg(e)?If:Array.isArray(e)?Sg:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Cg:kt)(n,e)}function t6(n){var e=n.length;return function(t){return n[Math.max(0,Math.min(e-1,Math.floor(t*e)))]}}function n6(n,e){var t=Hc(+n,+e);return function(r){var i=t(r);return i-360*Math.floor(i/360)}}function Eo(n,e){return n=+n,e=+e,function(t){return Math.round(n*(1-t)+e*t)}}var Ig=180/Math.PI,kf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Tg(n,e,t,r,i,s){var o,a,c;return(o=Math.sqrt(n*n+e*e))&&(n/=o,e/=o),(c=n*t+e*r)&&(t-=n*c,r-=e*c),(a=Math.sqrt(t*t+r*r))&&(t/=a,r/=a,c/=a),n*r<e*t&&(n=-n,e=-e,c=-c,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(e,n)*Ig,skewX:Math.atan(c)*Ig,scaleX:o,scaleY:a}}var Vc;function r6(n){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(n+"");return e.isIdentity?kf:Tg(e.a,e.b,e.c,e.d,e.e,e.f)}function i6(n){return n==null||(Vc||(Vc=document.createElementNS("http://www.w3.org/2000/svg","g")),Vc.setAttribute("transform",n),!(n=Vc.transform.baseVal.consolidate()))?kf:(n=n.matrix,Tg(n.a,n.b,n.c,n.d,n.e,n.f))}function Bg(n,e,t,r){function i(u){return u.length?u.pop()+" ":""}function s(u,l,f,d,h,p){if(u!==f||l!==d){var m=h.push("translate(",null,e,null,t);p.push({i:m-4,x:kt(u,f)},{i:m-2,x:kt(l,d)})}else(f||d)&&h.push("translate("+f+e+d+t)}function o(u,l,f,d){u!==l?(u-l>180?l+=360:l-u>180&&(u+=360),d.push({i:f.push(i(f)+"rotate(",null,r)-2,x:kt(u,l)})):l&&f.push(i(f)+"rotate("+l+r)}function a(u,l,f,d){u!==l?d.push({i:f.push(i(f)+"skewX(",null,r)-2,x:kt(u,l)}):l&&f.push(i(f)+"skewX("+l+r)}function c(u,l,f,d,h,p){if(u!==f||l!==d){var m=h.push(i(h)+"scale(",null,",",null,")");p.push({i:m-4,x:kt(u,f)},{i:m-2,x:kt(l,d)})}else(f!==1||d!==1)&&h.push(i(h)+"scale("+f+","+d+")")}return function(u,l){var f=[],d=[];return u=n(u),l=n(l),s(u.translateX,u.translateY,l.translateX,l.translateY,f,d),o(u.rotate,l.rotate,f,d),a(u.skewX,l.skewX,f,d),c(u.scaleX,u.scaleY,l.scaleX,l.scaleY,f,d),u=l=null,function(h){for(var p=-1,m=d.length,g;++p<m;)f[(g=d[p]).i]=g.x(h);return f.join("")}}}var s6=Bg(r6,"px, ","px)","deg)"),o6=Bg(i6,", ",")",")"),a6=1e-12;function kg(n){return((n=Math.exp(n))+1/n)/2}function c6(n){return((n=Math.exp(n))-1/n)/2}function u6(n){return((n=Math.exp(2*n))-1)/(n+1)}const l6=function n(e,t,r){function i(s,o){var a=s[0],c=s[1],u=s[2],l=o[0],f=o[1],d=o[2],h=l-a,p=f-c,m=h*h+p*p,g,y;if(m<a6)y=Math.log(d/u)/e,g=function(v){return[a+v*h,c+v*p,u*Math.exp(e*v*y)]};else{var x=Math.sqrt(m),A=(d*d-u*u+r*m)/(2*u*t*x),w=(d*d-u*u-r*m)/(2*d*t*x),S=Math.log(Math.sqrt(A*A+1)-A),C=Math.log(Math.sqrt(w*w+1)-w);y=(C-S)/e,g=function(v){var T=v*y,P=kg(S),F=u/(t*x)*(P*u6(e*T+S)-c6(S));return[a+F*h,c+F*p,u*P/kg(e*T+S)]}}return g.duration=y*1e3*e/Math.SQRT2,g}return i.rho=function(s){var o=Math.max(.001,+s),a=o*o,c=a*a;return n(o,a,c)},i}(Math.SQRT2,2,4);function Fg(n){return function(e,t){var r=n((e=mf(e)).h,(t=mf(t)).h),i=Re(e.s,t.s),s=Re(e.l,t.l),o=Re(e.opacity,t.opacity);return function(a){return e.h=r(a),e.s=i(a),e.l=s(a),e.opacity=o(a),e+""}}}const f6=Fg(Hc);var h6=Fg(Re);function d6(n,e){var t=Re((n=yf(n)).l,(e=yf(e)).l),r=Re(n.a,e.a),i=Re(n.b,e.b),s=Re(n.opacity,e.opacity);return function(o){return n.l=t(o),n.a=r(o),n.b=i(o),n.opacity=s(o),n+""}}function Pg(n){return function(e,t){var r=n((e=vf(e)).h,(t=vf(t)).h),i=Re(e.c,t.c),s=Re(e.l,t.l),o=Re(e.opacity,t.opacity);return function(a){return e.h=r(a),e.c=i(a),e.l=s(a),e.opacity=o(a),e+""}}}const p6=Pg(Hc);var m6=Pg(Re);function Mg(n){return function e(t){t=+t;function r(i,s){var o=n((i=Cf(i)).h,(s=Cf(s)).h),a=Re(i.s,s.s),c=Re(i.l,s.l),u=Re(i.opacity,s.opacity);return function(l){return i.h=o(l),i.s=a(l),i.l=c(Math.pow(l,t)),i.opacity=u(l),i+""}}return r.gamma=e,r}(1)}const g6=Mg(Hc);var y6=Mg(Re);function Ff(n,e){e===void 0&&(e=n,n=Hn);for(var t=0,r=e.length-1,i=e[0],s=new Array(r<0?0:r);t<r;)s[t]=n(i,i=e[++t]);return function(o){var a=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return s[a](o-a)}}function b6(n,e){for(var t=new Array(e),r=0;r<e;++r)t[r]=n(r/(e-1));return t}const x6=Object.freeze(Object.defineProperty({__proto__:null,interpolate:Hn,interpolateArray:J8,interpolateBasis:bg,interpolateBasisClosed:xg,interpolateCubehelix:g6,interpolateCubehelixLong:y6,interpolateDate:Eg,interpolateDiscrete:t6,interpolateHcl:p6,interpolateHclLong:m6,interpolateHsl:f6,interpolateHslLong:h6,interpolateHue:n6,interpolateLab:d6,interpolateNumber:kt,interpolateNumberArray:If,interpolateObject:Cg,interpolateRgb:Df,interpolateRgbBasis:Z8,interpolateRgbBasisClosed:K8,interpolateRound:Eo,interpolateString:Dg,interpolateTransformCss:s6,interpolateTransformSvg:o6,interpolateZoom:l6,piecewise:Ff,quantize:b6},Symbol.toStringTag,{value:"Module"}));function A6(n){return function(){return n}}function Pf(n){return+n}var Rg=[0,1];function ot(n){return n}function Mf(n,e){return(e-=n=+n)?function(t){return(t-n)/e}:A6(isNaN(e)?NaN:.5)}function w6(n,e){var t;return n>e&&(t=n,n=e,e=t),function(r){return Math.max(n,Math.min(e,r))}}function v6(n,e,t){var r=n[0],i=n[1],s=e[0],o=e[1];return i<r?(r=Mf(i,r),s=t(o,s)):(r=Mf(r,i),s=t(s,o)),function(a){return s(r(a))}}function S6(n,e,t){var r=Math.min(n.length,e.length)-1,i=new Array(r),s=new Array(r),o=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=Mf(n[o],n[o+1]),s[o]=t(e[o],e[o+1]);return function(a){var c=Dn(n,a,1,r)-1;return s[c](i[c](a))}}function Co(n,e){return e.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function _c(){var n=Rg,e=Rg,t=Hn,r,i,s,o=ot,a,c,u;function l(){var d=Math.min(n.length,e.length);return o!==ot&&(o=w6(n[0],n[d-1])),a=d>2?S6:v6,c=u=null,f}function f(d){return d==null||isNaN(d=+d)?s:(c||(c=a(n.map(r),e,t)))(r(o(d)))}return f.invert=function(d){return o(i((u||(u=a(e,n.map(r),kt)))(d)))},f.domain=function(d){return arguments.length?(n=Array.from(d,Pf),l()):n.slice()},f.range=function(d){return arguments.length?(e=Array.from(d),l()):e.slice()},f.rangeRound=function(d){return e=Array.from(d),t=Eo,l()},f.clamp=function(d){return arguments.length?(o=d?!0:ot,l()):o!==ot},f.interpolate=function(d){return arguments.length?(t=d,l()):t},f.unknown=function(d){return arguments.length?(s=d,f):s},function(d,h){return r=d,i=h,l()}}function Og(){return _c()(ot,ot)}function Ng(n,e,t,r){var i=pr(n,e,t),s;switch(r=ai(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(n),Math.abs(e));return r.precision==null&&!isNaN(s=uw(i,o))&&(r.precision=s),y0(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=lw(i,Math.max(Math.abs(n),Math.abs(e))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=cw(i))&&(r.precision=s-(r.type==="%")*2);break}}return Le(r)}function Pr(n){var e=n.domain;return n.ticks=function(t){var r=e();return Ga(r[0],r[r.length-1],t??10)},n.tickFormat=function(t,r){var i=e();return Ng(i[0],i[i.length-1],t??10,r)},n.nice=function(t){t==null&&(t=10);var r=e(),i=0,s=r.length-1,o=r[i],a=r[s],c,u,l=10;for(a<o&&(u=o,o=a,a=u,u=i,i=s,s=u);l-- >0;){if(u=Xu(o,a,t),u===c)return r[i]=o,r[s]=a,e(r);if(u>0)o=Math.floor(o/u)*u,a=Math.ceil(a/u)*u;else if(u<0)o=Math.ceil(o*u)/u,a=Math.floor(a*u)/u;else break;c=u}return n},n}function Lg(){var n=Og();return n.copy=function(){return Co(n,Lg())},_t.apply(n,arguments),Pr(n)}function zg(n){var e;function t(r){return r==null||isNaN(r=+r)?e:r}return t.invert=t,t.domain=t.range=function(r){return arguments.length?(n=Array.from(r,Pf),t):n.slice()},t.unknown=function(r){return arguments.length?(e=r,t):e},t.copy=function(){return zg(n).unknown(e)},n=arguments.length?Array.from(n,Pf):[0,1],Pr(t)}function Ug(n,e){n=n.slice();var t=0,r=n.length-1,i=n[t],s=n[r],o;return s<i&&(o=t,t=r,r=o,o=i,i=s,s=o),n[t]=e.floor(i),n[r]=e.ceil(s),n}function Gg(n){return Math.log(n)}function Hg(n){return Math.exp(n)}function E6(n){return-Math.log(-n)}function C6(n){return-Math.exp(-n)}function D6(n){return isFinite(n)?+("1e"+n):n<0?0:n}function I6(n){return n===10?D6:n===Math.E?Math.exp:e=>Math.pow(n,e)}function T6(n){return n===Math.E?Math.log:n===10&&Math.log10||n===2&&Math.log2||(n=Math.log(n),e=>Math.log(e)/n)}function Vg(n){return(e,t)=>-n(-e,t)}function Rf(n){const e=n(Gg,Hg),t=e.domain;let r=10,i,s;function o(){return i=T6(r),s=I6(r),t()[0]<0?(i=Vg(i),s=Vg(s),n(E6,C6)):n(Gg,Hg),e}return e.base=function(a){return arguments.length?(r=+a,o()):r},e.domain=function(a){return arguments.length?(t(a),o()):t()},e.ticks=a=>{const c=t();let u=c[0],l=c[c.length-1];const f=l<u;f&&([u,l]=[l,u]);let d=i(u),h=i(l),p,m;const g=a==null?10:+a;let y=[];if(!(r%1)&&h-d<g){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(p=1;p<r;++p)if(m=d<0?p/s(-d):p*s(d),!(m<u)){if(m>l)break;y.push(m)}}else for(;d<=h;++d)for(p=r-1;p>=1;--p)if(m=d>0?p/s(-d):p*s(d),!(m<u)){if(m>l)break;y.push(m)}y.length*2<g&&(y=Ga(u,l,g))}else y=Ga(d,h,Math.min(h-d,g)).map(s);return f?y.reverse():y},e.tickFormat=(a,c)=>{if(a==null&&(a=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=ai(c)).precision==null&&(c.trim=!0),c=Le(c)),a===1/0)return c;const u=Math.max(1,r*a/e.ticks().length);return l=>{let f=l/s(Math.round(i(l)));return f*r<r-.5&&(f*=r),f<=u?c(l):""}},e.nice=()=>t(Ug(t(),{floor:a=>s(Math.floor(i(a))),ceil:a=>s(Math.ceil(i(a)))})),e}function Of(){const n=Rf(_c()).domain([1,10]);return n.copy=()=>Co(n,Of()).base(n.base()),_t.apply(n,arguments),n}function _g(n){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/n))}}function jg(n){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*n}}function Nf(n){var e=1,t=n(_g(e),jg(e));return t.constant=function(r){return arguments.length?n(_g(e=+r),jg(e)):e},Pr(t)}function Qg(){var n=Nf(_c());return n.copy=function(){return Co(n,Qg()).constant(n.constant())},_t.apply(n,arguments)}function Wg(n){return function(e){return e<0?-Math.pow(-e,n):Math.pow(e,n)}}function B6(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function k6(n){return n<0?-n*n:n*n}function Lf(n){var e=n(ot,ot),t=1;function r(){return t===1?n(ot,ot):t===.5?n(B6,k6):n(Wg(t),Wg(1/t))}return e.exponent=function(i){return arguments.length?(t=+i,r()):t},Pr(e)}function zf(){var n=Lf(_c());return n.copy=function(){return Co(n,zf()).exponent(n.exponent())},_t.apply(n,arguments),n}function F6(){return zf.apply(null,arguments).exponent(.5)}function qg(){var n=[],e=[],t=[],r;function i(){var o=0,a=Math.max(1,e.length);for(t=new Array(a-1);++o<a;)t[o-1]=l0(n,o/a);return s}function s(o){return o==null||isNaN(o=+o)?r:e[Dn(t,o)]}return s.invertExtent=function(o){var a=e.indexOf(o);return a<0?[NaN,NaN]:[a>0?t[a-1]:n[0],a<t.length?t[a]:n[n.length-1]]},s.domain=function(o){if(!arguments.length)return n.slice();n=[];for(let a of o)a!=null&&!isNaN(a=+a)&&n.push(a);return n.sort(hr),i()},s.range=function(o){return arguments.length?(e=Array.from(o),i()):e.slice()},s.unknown=function(o){return arguments.length?(r=o,s):r},s.quantiles=function(){return t.slice()},s.copy=function(){return qg().domain(n).range(e).unknown(r)},_t.apply(s,arguments)}function Yg(){var n=0,e=1,t=1,r=[.5],i=[0,1],s;function o(c){return c!=null&&c<=c?i[Dn(r,c,0,t)]:s}function a(){var c=-1;for(r=new Array(t);++c<t;)r[c]=((c+1)*e-(c-t)*n)/(t+1);return o}return o.domain=function(c){return arguments.length?([n,e]=c,n=+n,e=+e,a()):[n,e]},o.range=function(c){return arguments.length?(t=(i=Array.from(c)).length-1,a()):i.slice()},o.invertExtent=function(c){var u=i.indexOf(c);return u<0?[NaN,NaN]:u<1?[n,r[0]]:u>=t?[r[t-1],e]:[r[u-1],r[u]]},o.unknown=function(c){return arguments.length&&(s=c),o},o.thresholds=function(){return r.slice()},o.copy=function(){return Yg().domain([n,e]).range(i).unknown(s)},_t.apply(Pr(o),arguments)}function Xg(){var n=[.5],e=[0,1],t,r=1;function i(s){return s!=null&&s<=s?e[Dn(n,s,0,r)]:t}return i.domain=function(s){return arguments.length?(n=Array.from(s),r=Math.min(n.length,e.length-1),i):n.slice()},i.range=function(s){return arguments.length?(e=Array.from(s),r=Math.min(n.length,e.length-1),i):e.slice()},i.invertExtent=function(s){var o=e.indexOf(s);return[n[o-1],n[o]]},i.unknown=function(s){return arguments.length?(t=s,i):t},i.copy=function(){return Xg().domain(n).range(e).unknown(t)},_t.apply(i,arguments)}function P6(n){return new Date(n)}function M6(n){return n instanceof Date?+n:+new Date(+n)}function Uf(n,e,t,r,i,s,o,a,c,u){var l=Og(),f=l.invert,d=l.domain,h=u(".%L"),p=u(":%S"),m=u("%I:%M"),g=u("%I %p"),y=u("%a %d"),x=u("%b %d"),A=u("%B"),w=u("%Y");function S(C){return(c(C)<C?h:a(C)<C?p:o(C)<C?m:s(C)<C?g:r(C)<C?i(C)<C?y:x:t(C)<C?A:w)(C)}return l.invert=function(C){return new Date(f(C))},l.domain=function(C){return arguments.length?d(Array.from(C,M6)):d().map(P6)},l.ticks=function(C){var v=d();return n(v[0],v[v.length-1],C??10)},l.tickFormat=function(C,v){return v==null?S:u(v)},l.nice=function(C){var v=d();return(!C||typeof C.range!="function")&&(C=e(v[0],v[v.length-1],C??10)),C?d(Ug(v,C)):l},l.copy=function(){return Co(l,Uf(n,e,t,r,i,s,o,a,c,u))},l}function R6(){return _t.apply(Uf(ww,vw,Lt,fi,Hs,In,Qa,_a,on,ol).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function O6(){return _t.apply(Uf(xw,Aw,zt,hi,Vs,mr,Wa,ja,on,al).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function jc(){var n=0,e=1,t,r,i,s,o=ot,a=!1,c;function u(f){return f==null||isNaN(f=+f)?c:o(i===0?.5:(f=(s(f)-t)*i,a?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([n,e]=f,t=s(n=+n),r=s(e=+e),i=t===r?0:1/(r-t),u):[n,e]},u.clamp=function(f){return arguments.length?(a=!!f,u):a},u.interpolator=function(f){return arguments.length?(o=f,u):o};function l(f){return function(d){var h,p;return arguments.length?([h,p]=d,o=f(h,p),u):[o(0),o(1)]}}return u.range=l(Hn),u.rangeRound=l(Eo),u.unknown=function(f){return arguments.length?(c=f,u):c},function(f){return s=f,t=f(n),r=f(e),i=t===r?0:1/(r-t),u}}function Vn(n,e){return e.domain(n.domain()).interpolator(n.interpolator()).clamp(n.clamp()).unknown(n.unknown())}function Gf(){var n=Pr(jc()(ot));return n.copy=function(){return Vn(n,Gf())},zn.apply(n,arguments)}function Zg(){var n=Rf(jc()).domain([1,10]);return n.copy=function(){return Vn(n,Zg()).base(n.base())},zn.apply(n,arguments)}function Kg(){var n=Nf(jc());return n.copy=function(){return Vn(n,Kg()).constant(n.constant())},zn.apply(n,arguments)}function Hf(){var n=Lf(jc());return n.copy=function(){return Vn(n,Hf()).exponent(n.exponent())},zn.apply(n,arguments)}function N6(){return Hf.apply(null,arguments).exponent(.5)}function Qc(){var n=0,e=.5,t=1,r=1,i,s,o,a,c,u=ot,l,f=!1,d;function h(m){return isNaN(m=+m)?d:(m=.5+((m=+l(m))-s)*(r*m<r*s?a:c),u(f?Math.max(0,Math.min(1,m)):m))}h.domain=function(m){return arguments.length?([n,e,t]=m,i=l(n=+n),s=l(e=+e),o=l(t=+t),a=i===s?0:.5/(s-i),c=s===o?0:.5/(o-s),r=s<i?-1:1,h):[n,e,t]},h.clamp=function(m){return arguments.length?(f=!!m,h):f},h.interpolator=function(m){return arguments.length?(u=m,h):u};function p(m){return function(g){var y,x,A;return arguments.length?([y,x,A]=g,u=Ff(m,[y,x,A]),h):[u(0),u(.5),u(1)]}}return h.range=p(Hn),h.rangeRound=p(Eo),h.unknown=function(m){return arguments.length?(d=m,h):d},function(m){return l=m,i=m(n),s=m(e),o=m(t),a=i===s?0:.5/(s-i),c=s===o?0:.5/(o-s),r=s<i?-1:1,h}}function Jg(){var n=Pr(Qc()(ot));return n.copy=function(){return Vn(n,Jg())},zn.apply(n,arguments)}function $g(){var n=Rf(Qc()).domain([.1,1,10]);return n.copy=function(){return Vn(n,$g()).base(n.base())},zn.apply(n,arguments)}function e1(){var n=Nf(Qc());return n.copy=function(){return Vn(n,e1()).constant(n.constant())},zn.apply(n,arguments)}function Vf(){var n=Lf(Qc());return n.copy=function(){return Vn(n,Vf()).exponent(n.exponent())},zn.apply(n,arguments)}function L6(){return Vf.apply(null,arguments).exponent(.5)}function Wt(n){for(var e=n.length/6|0,t=new Array(e),r=0;r<e;)t[r]="#"+n.slice(r*6,++r*6);return t}const z6=Wt("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),U6=Wt("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),G6=Wt("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),H6=Wt("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),V6=Wt("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),_6=Wt("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),j6=Wt("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Q6=Wt("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),W6=Wt("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),q6=Wt("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Y6="year",_f="quarter";[Y6,_f,"month","week","date","day","dayofyear","hours","minutes","seconds","milliseconds"].reduce((n,e,t)=>(n[e]=1+t,n),{}),_f+"",fi.every(3),_f+"",hi.every(3);function jf(n,e,t){const r=n-e+t*2;return n?r>0?r:1:0}const X6="identity",Bi="linear",_n="log",Do="pow",Io="sqrt",Wc="symlog",t1="time",n1="utc",qt="sequential",ki="diverging",Qf="quantile",r1="quantize",i1="threshold",Wf="ordinal",qf="point",s1="band",Yf="bin-ordinal",Be="continuous",To="discrete",Bo="discretizing",bt="interpolating",o1="temporal";function Z6(n){return function(e){let t=e[0],r=e[1],i;return r<t&&(i=t,t=r,r=i),[n.invert(t),n.invert(r)]}}function K6(n){return function(e){const t=n.range();let r=e[0],i=e[1],s=-1,o,a,c,u;for(i<r&&(a=r,r=i,i=a),c=0,u=t.length;c<u;++c)t[c]>=r&&t[c]<=i&&(s<0&&(s=c),o=c);if(!(s<0))return r=n.invertExtent(t[s]),i=n.invertExtent(t[o]),[r[0]===void 0?r[1]:r[0],i[1]===void 0?i[0]:i[1]]}}function Xf(){const n=df().unknown(void 0),e=n.domain,t=n.range;let r=[0,1],i,s,o=!1,a=0,c=0,u=.5;delete n.unknown;function l(){const f=e().length,d=r[1]<r[0],h=r[1-d],p=jf(f,a,c);let m=r[d-0];i=(h-m)/(p||1),o&&(i=Math.floor(i)),m+=(h-m-i*(f-a))*u,s=i*(1-a),o&&(m=Math.round(m),s=Math.round(s));const g=Us(f).map(y=>m+i*y);return t(d?g.reverse():g)}return n.domain=function(f){return arguments.length?(e(f),l()):e()},n.range=function(f){return arguments.length?(r=[+f[0],+f[1]],l()):r.slice()},n.rangeRound=function(f){return r=[+f[0],+f[1]],o=!0,l()},n.bandwidth=function(){return s},n.step=function(){return i},n.round=function(f){return arguments.length?(o=!!f,l()):o},n.padding=function(f){return arguments.length?(c=Math.max(0,Math.min(1,f)),a=c,l()):a},n.paddingInner=function(f){return arguments.length?(a=Math.max(0,Math.min(1,f)),l()):a},n.paddingOuter=function(f){return arguments.length?(c=Math.max(0,Math.min(1,f)),l()):c},n.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),l()):u},n.invertRange=function(f){if(f[0]==null||f[1]==null)return;const d=r[1]<r[0],h=d?t().reverse():t(),p=h.length-1;let m=+f[0],g=+f[1],y,x,A;if(!(m!==m||g!==g)&&(g<m&&(A=m,m=g,g=A),!(g<h[0]||m>r[1-d])))return y=Math.max(0,Dn(h,m)-1),x=m===g?y:Dn(h,g)-1,m-h[y]>s+1e-10&&++y,d&&(A=y,y=p-x,x=p-A),y>x?void 0:e().slice(y,x+1)},n.invert=function(f){const d=n.invertRange([f,f]);return d&&d[0]},n.copy=function(){return Xf().domain(e()).range(r).round(o).paddingInner(a).paddingOuter(c).align(u)},l()}function a1(n){const e=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,n.copy=function(){return a1(e())},n}function J6(){return a1(Xf().paddingInner(1))}var $6=Array.prototype.map;function e5(n){return $6.call(n,P8)}const t5=Array.prototype.slice;function c1(){let n=[],e=[];function t(r){return r==null||r!==r?void 0:e[(Dn(n,r)-1)%e.length]}return t.domain=function(r){return arguments.length?(n=e5(r),t):n.slice()},t.range=function(r){return arguments.length?(e=t5.call(r),t):e.slice()},t.tickFormat=function(r,i){return Ng(n[0],Ym(n),r??10,i)},t.copy=function(){return c1().domain(t.domain()).range(t.range())},t}const qc=new Map,n5=Symbol("vega_scale");function r5(n){return n[n5]=!0,n}function i5(n,e,t){const r=function(){const s=e();return s.invertRange||(s.invertRange=s.invert?Z6(s):s.invertExtent?K6(s):void 0),s.type=n,r5(s)};return r.metadata=R8(M8(t)),r}function le(n,e,t){return arguments.length>1?(qc.set(n,i5(n,e,t)),this):s5(n)?qc.get(n):void 0}le(X6,zg),le(Bi,Lg,Be),le(_n,Of,[Be,_n]),le(Do,zf,Be),le(Io,F6,Be),le(Wc,Qg,Be),le(t1,R6,[Be,o1]),le(n1,O6,[Be,o1]),le(qt,Gf,[Be,bt]),le(`${qt}-${Bi}`,Gf,[Be,bt]),le(`${qt}-${_n}`,Zg,[Be,bt,_n]),le(`${qt}-${Do}`,Hf,[Be,bt]),le(`${qt}-${Io}`,N6,[Be,bt]),le(`${qt}-${Wc}`,Kg,[Be,bt]),le(`${ki}-${Bi}`,Jg,[Be,bt]),le(`${ki}-${_n}`,$g,[Be,bt,_n]),le(`${ki}-${Do}`,Vf,[Be,bt]),le(`${ki}-${Io}`,L6,[Be,bt]),le(`${ki}-${Wc}`,e1,[Be,bt]),le(Qf,qg,[Bo,Qf]),le(r1,Yg,Bo),le(i1,Xg,Bo),le(Yf,c1,[To,Bo]),le(Wf,df,To),le(s1,Xf,To),le(qf,J6,To);function s5(n){return qc.has(n)}function ko(n,e){const t=qc.get(n);return t&&t.metadata[e]}function Oe(n){return ko(n,Be)}function jn(n){return ko(n,To)}function Mr(n){return ko(n,Bo)}function u1(n){return ko(n,_n)}function Yc(n){return ko(n,bt)}function o5(n,e){const t=e[0],r=Ym(e)-t;return function(i){return n(t+i*r)}}function Xc(n,e,t){return Ff(l1(e||"rgb",t),n)}function a5(n,e){const t=new Array(e),r=e+1;for(let i=0;i<e;)t[i]=n(++i/r);return t}function l1(n,e){const t=x6[c5(n)];return e!=null&&t&&t.gamma?t.gamma(e):t}function c5(n){return"interpolate"+n.toLowerCase().split("-").map(e=>e[0].toUpperCase()+e.slice(1)).join("")}const u5={blues:"cfe1f2bed8eca8cee58fc1de74b2d75ba3cf4592c63181bd206fb2125ca40a4a90",greens:"d3eecdc0e6baabdda594d3917bc77d60ba6c46ab5e329a512089430e7735036429",greys:"e2e2e2d4d4d4c4c4c4b1b1b19d9d9d8888887575756262624d4d4d3535351e1e1e",oranges:"fdd8b3fdc998fdb87bfda55efc9244f87f2cf06b18e4580bd14904b93d029f3303",purples:"e2e1efd4d4e8c4c5e0b4b3d6a3a0cc928ec3827cb97566ae684ea25c3696501f8c",reds:"fdc9b4fcb49afc9e80fc8767fa7051f6573fec3f2fdc2a25c81b1db21218970b13",blueGreen:"d5efedc1e8e0a7ddd18bd2be70c6a958ba9144ad77319c5d2089460e7736036429",bluePurple:"ccddecbad0e4a8c2dd9ab0d4919cc98d85be8b6db28a55a6873c99822287730f71",greenBlue:"d3eecec5e8c3b1e1bb9bd8bb82cec269c2ca51b2cd3c9fc7288abd1675b10b60a1",orangeRed:"fddcaffdcf9bfdc18afdad77fb9562f67d53ee6545e24932d32d1ebf130da70403",purpleBlue:"dbdaebc8cee4b1c3de97b7d87bacd15b9fc93a90c01e7fb70b70ab056199045281",purpleBlueGreen:"dbd8eac8cee4b0c3de93b7d872acd1549fc83892bb1c88a3097f8702736b016353",purpleRed:"dcc9e2d3b3d7ce9eccd186c0da6bb2e14da0e23189d91e6fc61159ab07498f023a",redPurple:"fccfccfcbec0faa9b8f98faff571a5ec539ddb3695c41b8aa908808d0179700174",yellowGreen:"e4f4acd1eca0b9e2949ed68880c97c62bb6e47aa5e3297502083440e723b036034",yellowOrangeBrown:"feeaa1fedd84fecc63feb746fca031f68921eb7215db5e0bc54c05ab3d038f3204",yellowOrangeRed:"fee087fed16ffebd59fea849fd903efc7335f9522bee3423de1b20ca0b22af0225",blueOrange:"134b852f78b35da2cb9dcae1d2e5eff2f0ebfce0bafbbf74e8932fc5690d994a07",brownBlueGreen:"704108a0651ac79548e3c78af3e6c6eef1eac9e9e48ed1c74da79e187a72025147",purpleGreen:"5b1667834792a67fb6c9aed3e6d6e8eff0efd9efd5aedda971bb75368e490e5e29",purpleOrange:"4114696647968f83b7b9b4d6dadbebf3eeeafce0bafbbf74e8932fc5690d994a07",redBlue:"8c0d25bf363adf745ef4ae91fbdbc9f2efeed2e5ef9dcae15da2cb2f78b3134b85",redGrey:"8c0d25bf363adf745ef4ae91fcdccbfaf4f1e2e2e2c0c0c0969696646464343434",yellowGreenBlue:"eff9bddbf1b4bde5b594d5b969c5be45b4c22c9ec02182b82163aa23479c1c3185",redYellowBlue:"a50026d4322cf16e43fcac64fedd90faf8c1dcf1ecabd6e875abd04a74b4313695",redYellowGreen:"a50026d4322cf16e43fcac63fedd8df9f7aed7ee8ea4d86e64bc6122964f006837",pinkYellowGreen:"8e0152c0267edd72adf0b3d6faddedf5f3efe1f2cab6de8780bb474f9125276419",spectral:"9e0142d13c4bf0704afcac63fedd8dfbf8b0e0f3a1a9dda269bda94288b55e4fa2",viridis:"440154470e61481a6c482575472f7d443a834144873d4e8a39568c35608d31688e2d708e2a788e27818e23888e21918d1f988b1fa08822a8842ab07f35b77943bf7154c56866cc5d7ad1518fd744a5db36bcdf27d2e21be9e51afde725",magma:"0000040404130b0924150e3720114b2c11603b0f704a107957157e651a80721f817f24828c29819a2e80a8327db6377ac43c75d1426fde4968e95462f1605df76f5cfa7f5efc8f65fe9f6dfeaf78febf84fece91fddea0fcedaffcfdbf",inferno:"0000040403130c0826170c3b240c4f330a5f420a68500d6c5d126e6b176e781c6d86216b932667a12b62ae305cbb3755c73e4cd24644dd513ae65c30ed6925f3771af8850ffb9506fca50afcb519fac62df6d645f2e661f3f484fcffa4",plasma:"0d088723069033059742039d5002a25d01a66a00a87801a88405a7900da49c179ea72198b12a90ba3488c33d80cb4779d35171da5a69e16462e76e5bed7953f2834cf68f44fa9a3dfca636fdb32ffec029fcce25f9dc24f5ea27f0f921",cividis:"00205100235800265d002961012b65042e670831690d346b11366c16396d1c3c6e213f6e26426e2c456e31476e374a6e3c4d6e42506e47536d4c566d51586e555b6e5a5e6e5e616e62646f66676f6a6a706e6d717270717573727976737c79747f7c75827f758682768985778c8877908b78938e789691789a94789e9778a19b78a59e77a9a177aea575b2a874b6ab73bbaf71c0b26fc5b66dc9b96acebd68d3c065d8c462ddc85fe2cb5ce7cf58ebd355f0d652f3da4ff7de4cfae249fce647",rainbow:"6e40aa883eb1a43db3bf3cafd83fa4ee4395fe4b83ff576eff6659ff7847ff8c38f3a130e2b72fcfcc36bee044aff05b8ff4576ff65b52f6673af27828ea8d1ddfa319d0b81cbecb23abd82f96e03d82e14c6edb5a5dd0664dbf6e40aa",sinebow:"ff4040fc582af47218e78d0bd5a703bfbf00a7d5038de70b72f41858fc2a40ff402afc5818f4720be78d03d5a700bfbf03a7d50b8de71872f42a58fc4040ff582afc7218f48d0be7a703d5bf00bfd503a7e70b8df41872fc2a58ff4040",turbo:"23171b32204a3e2a71453493493eae4b49c54a53d7485ee44569ee4074f53c7ff8378af93295f72e9ff42ba9ef28b3e926bce125c5d925cdcf27d5c629dcbc2de3b232e9a738ee9d3ff39347f68950f9805afc7765fd6e70fe667cfd5e88fc5795fb51a1f84badf545b9f140c5ec3cd0e637dae034e4d931ecd12ef4c92bfac029ffb626ffad24ffa223ff9821ff8d1fff821dff771cfd6c1af76118f05616e84b14df4111d5380fcb2f0dc0260ab61f07ac1805a313029b0f00950c00910b00",browns:"eedbbdecca96e9b97ae4a865dc9856d18954c7784cc0673fb85536ad44339f3632",tealBlues:"bce4d89dd3d181c3cb65b3c245a2b9368fae347da0306a932c5985",teals:"bbdfdfa2d4d58ac9c975bcbb61b0af4da5a43799982b8b8c1e7f7f127273006667",warmGreys:"dcd4d0cec5c1c0b8b4b3aaa7a59c9998908c8b827f7e7673726866665c5a59504e",goldGreen:"f4d166d5ca60b6c35c98bb597cb25760a6564b9c533f8f4f33834a257740146c36",goldOrange:"f4d166f8be5cf8aa4cf5983bf3852aef701be2621fd65322c54923b142239e3a26",goldRed:"f4d166f6be59f9aa51fc964ef6834bee734ae56249db5247cf4244c43141b71d3e",lightGreyRed:"efe9e6e1dad7d5cbc8c8bdb9bbaea9cd967ddc7b43e15f19df4011dc000b",lightGreyTeal:"e4eaead6dcddc8ced2b7c2c7a6b4bc64b0bf22a6c32295c11f85be1876bc",lightMulti:"e0f1f2c4e9d0b0de9fd0e181f6e072f6c053f3993ef77440ef4a3c",lightOrange:"f2e7daf7d5baf9c499fab184fa9c73f68967ef7860e8645bde515bd43d5b",lightTealBlue:"e3e9e0c0dccf9aceca7abfc859afc0389fb9328dad2f7ca0276b95255988",darkBlue:"3232322d46681a5c930074af008cbf05a7ce25c0dd38daed50f3faffffff",darkGold:"3c3c3c584b37725e348c7631ae8b2bcfa424ecc31ef9de30fff184ffffff",darkGreen:"3a3a3a215748006f4d048942489e4276b340a6c63dd2d836ffeb2cffffaa",darkMulti:"3737371f5287197d8c29a86995ce3fffe800ffffff",darkRed:"3434347036339e3c38cc4037e75d1eec8620eeab29f0ce32ffeb2c"},l5={accent:U6,category10:z6,category20:"1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5",category20b:"393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6",category20c:"3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9",dark2:G6,observable10:H6,paired:V6,pastel1:_6,pastel2:j6,set1:Q6,set2:W6,set3:q6,tableau10:"4c78a8f58518e4575672b7b254a24beeca3bb279a2ff9da69d755dbab0ac",tableau20:"4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5"};function f1(n){if(qm(n))return n;const e=n.length/6|0,t=new Array(e);for(let r=0;r<e;)t[r]="#"+n.slice(r*6,++r*6);return t}function h1(n,e){for(const t in n)Zf(t,e(n[t]))}const d1={};h1(l5,f1),h1(u5,n=>Xc(f1(n)));function Zf(n,e){return n=n&&n.toLowerCase(),arguments.length>1?(d1[n]=e,this):d1[n]}function Kf(){const n=e=>e;return n.invert=e=>e,n.copy=Kf,n.invertRange=()=>{},n.type="null",n}class f5{constructor(e,t,r={}){this._container=e,this._sizeSource=t??(()=>({width:void 0,height:void 0})),this._shaderCache=new Map,this.rangeTextures=new WeakMap,this.selectionTextures=new WeakMap;const i=document.createElement("canvas");e.appendChild(i);const s=LC(i,{antialias:!0,depth:!1,premultipliedAlpha:!0,...r});if(!s)throw new Error("Unable to initialize WebGL. Your browser or machine may not support it.");if(!pi(s))throw new Error("Your web browser does not support WebGL 2.0. Chrome, Firefox, and Safari Tech Preview should work.");sm(s);const o=s.getExtension("WEBGL_provoking_vertex");o&&o.provokingVertexWEBGL(o.FIRST_VERTEX_CONVENTION_WEBGL),s.blendFunc(s.ONE,s.ONE_MINUS_SRC_ALPHA),this.canvas=i,this.gl=s,this._pickingAttachmentOptions=[{format:s.RGBA,type:s.UNSIGNED_BYTE,minMag:s.LINEAR,wrap:s.CLAMP_TO_EDGE}],this._pickingBufferInfo=rm(s,this._pickingAttachmentOptions),s.bindFramebuffer(s.FRAMEBUFFER,null),this.adjustGl()}invalidateSize(){this._logicalCanvasSize=void 0,this.adjustGl()}compileShader(e,t){const r="#version 300 es",i="precision mediump float;";Ue(t)&&(t=t.join(`
|
|
442
|
+
${e}
|
|
443
|
+
};`)(this)}else this.updateFromDatum=t=>{for(let e=0;e<this.dataUpdaters.length;e++)this.dataUpdaters[e](t)}};const cs=5,gh=127;function ph(n){const t=[];for(let d=0;d<=gh;d++)t.push(void 0);const e=new Map;for(const d of n.chars)d.id<=gh?t[d.id]=d:e.set(d.id,d);const r=8722;e.has(r)||e.set(r,t[45]);function i(d){return(d<=gh?t[d]:e.get(d))||t[63]}function s(d){return i(d.charCodeAt(0))}const o=n.common.base,a=s("x"),l=s("X"),c=s("q"),u=a.height-cs*2,f=l.height-cs*2,h=c.height-a.height+c.yoffset-a.yoffset;function A(d,g=1){let p=0;for(let C=0;C<d.length;C++)p+=i(d.charCodeAt(C)).xadvance;return p/o*g}return{measureWidth:A,getCharByCode:i,getChar:s,xHeight:u,capHeight:f,descent:h,common:n.common}}const m1=2**31-1,hk=-2147483648;function dk(n,t,e,r=e){const i=new Array(n);i.fill(m1);let s=hk,o=-1/0,a=!1;const l=new Array(n);l.fill(0);const c=t[0],f=(t[1]-t[0])/n,h=(C,w)=>{const b=(C-c)/f,y=Math.floor(b);return $i(w&&y==b?y-1:y,0,n-1)};function A(C,w,b){if(a)return;if(w>s)s=w;else{a=!0;return}const y=e(C);if(y<o){a=!0;return}o=y;const x=h(y,!1);i[x]>w&&(i[x]=w),l[x]<b&&(l[x]=b)}function d(C,w,b){if(a)return;if(w>s)s=w;else{a=!0,console.debug("Items (vertices) are not ordered properly. Disabling binned index.");return}const y=e(C),x=r(C);if(y<o){a=!0;return}else if(x<y){a=!0;return}o=y;const B=h(y,!1),E=h(x,!0);for(let Q=B;Q<=E;Q++)i[Q]>w&&(i[Q]=w),l[Q]<b&&(l[Q]=b)}const g=(C,w,b=[0,0])=>{const y=h(C,!1),x=h(w,!0),B=i[y],E=Math.max(l[x],B);return b[0]=B,b[1]=E,b},p=()=>{if(a)return;for(let w=1;w<l.length;w++)l[w]<l[w-1]&&(l[w]=l[w-1]);let C=!0;for(let w=i.length-1;w>0;w--)C&&i[w]==m1?(i[w]=l[w],C=!1):i[w-1]>i[w]&&(i[w-1]=i[w]);return g};return A.getIndex=p,d.getIndex=p,e==r?A:d}function fn(n,t){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(t).domain(n);break}return this}function ur(n,t){switch(arguments.length){case 0:break;case 1:{typeof n=="function"?this.interpolator(n):this.range(n);break}default:{this.domain(n),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const mh=Symbol("implicit");function Ch(){var n=new Sn,t=[],e=[],r=mh;function i(s){let o=n.get(s);if(o===void 0){if(r!==mh)return r;n.set(s,o=t.push(s)-1)}return e[o%e.length]}return i.domain=function(s){if(!arguments.length)return t.slice();t=[],n=new Sn;for(const o of s)n.has(o)||n.set(o,t.push(o)-1);return i},i.range=function(s){return arguments.length?(e=Array.from(s),i):e.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return Ch(t,e).unknown(r)},fn.apply(i,arguments),i}function ls(n,t,e){n.prototype=t.prototype=e,e.constructor=n}function Da(n,t){var e=Object.create(n.prototype);for(var r in t)e[r]=t[r];return e}function fr(){}var ri=.7,us=1/ri,fs="\\s*([+-]?\\d+)\\s*",ka="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",An="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gk=/^#([0-9a-f]{3,8})$/,pk=new RegExp(`^rgb\\(${fs},${fs},${fs}\\)$`),mk=new RegExp(`^rgb\\(${An},${An},${An}\\)$`),Ck=new RegExp(`^rgba\\(${fs},${fs},${fs},${ka}\\)$`),yk=new RegExp(`^rgba\\(${An},${An},${An},${ka}\\)$`),wk=new RegExp(`^hsl\\(${ka},${An},${An}\\)$`),Ik=new RegExp(`^hsla\\(${ka},${An},${An},${ka}\\)$`),C1={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ls(fr,Ar,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:y1,formatHex:y1,formatHex8:Ek,formatHsl:bk,formatRgb:w1,toString:w1});function y1(){return this.rgb().formatHex()}function Ek(){return this.rgb().formatHex8()}function bk(){return B1(this).formatHsl()}function w1(){return this.rgb().formatRgb()}function Ar(n){var t,e;return n=(n+"").trim().toLowerCase(),(t=gk.exec(n))?(e=t[1].length,t=parseInt(t[1],16),e===6?I1(t):e===3?new Je(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):e===8?Iu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):e===4?Iu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=pk.exec(n))?new Je(t[1],t[2],t[3],1):(t=mk.exec(n))?new Je(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ck.exec(n))?Iu(t[1],t[2],t[3],t[4]):(t=yk.exec(n))?Iu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=wk.exec(n))?x1(t[1],t[2]/100,t[3]/100,1):(t=Ik.exec(n))?x1(t[1],t[2]/100,t[3]/100,t[4]):C1.hasOwnProperty(n)?I1(C1[n]):n==="transparent"?new Je(NaN,NaN,NaN,0):null}function I1(n){return new Je(n>>16&255,n>>8&255,n&255,1)}function Iu(n,t,e,r){return r<=0&&(n=t=e=NaN),new Je(n,t,e,r)}function yh(n){return n instanceof fr||(n=Ar(n)),n?(n=n.rgb(),new Je(n.r,n.g,n.b,n.opacity)):new Je}function Eu(n,t,e,r){return arguments.length===1?yh(n):new Je(n,t,e,r??1)}function Je(n,t,e,r){this.r=+n,this.g=+t,this.b=+e,this.opacity=+r}ls(Je,Eu,Da(fr,{brighter(n){return n=n==null?us:Math.pow(us,n),new Je(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?ri:Math.pow(ri,n),new Je(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new Je(ii(this.r),ii(this.g),ii(this.b),bu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E1,formatHex:E1,formatHex8:xk,formatRgb:b1,toString:b1}));function E1(){return`#${si(this.r)}${si(this.g)}${si(this.b)}`}function xk(){return`#${si(this.r)}${si(this.g)}${si(this.b)}${si((isNaN(this.opacity)?1:this.opacity)*255)}`}function b1(){const n=bu(this.opacity);return`${n===1?"rgb(":"rgba("}${ii(this.r)}, ${ii(this.g)}, ${ii(this.b)}${n===1?")":`, ${n})`}`}function bu(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function ii(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function si(n){return n=ii(n),(n<16?"0":"")+n.toString(16)}function x1(n,t,e,r){return r<=0?n=t=e=NaN:e<=0||e>=1?n=t=NaN:t<=0&&(n=NaN),new Xt(n,t,e,r)}function B1(n){if(n instanceof Xt)return new Xt(n.h,n.s,n.l,n.opacity);if(n instanceof fr||(n=Ar(n)),!n)return new Xt;if(n instanceof Xt)return n;n=n.rgb();var t=n.r/255,e=n.g/255,r=n.b/255,i=Math.min(t,e,r),s=Math.max(t,e,r),o=NaN,a=s-i,l=(s+i)/2;return a?(t===s?o=(e-r)/a+(e<r)*6:e===s?o=(r-t)/a+2:o=(t-e)/a+4,a/=l<.5?s+i:2-s-i,o*=60):a=l>0&&l<1?0:o,new Xt(o,a,l,n.opacity)}function wh(n,t,e,r){return arguments.length===1?B1(n):new Xt(n,t,e,r??1)}function Xt(n,t,e,r){this.h=+n,this.s=+t,this.l=+e,this.opacity=+r}ls(Xt,wh,Da(fr,{brighter(n){return n=n==null?us:Math.pow(us,n),new Xt(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?ri:Math.pow(ri,n),new Xt(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,t=isNaN(n)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*t,i=2*e-r;return new Je(Ih(n>=240?n-240:n+120,i,r),Ih(n,i,r),Ih(n<120?n+240:n-120,i,r),this.opacity)},clamp(){return new Xt(v1(this.h),xu(this.s),xu(this.l),bu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=bu(this.opacity);return`${n===1?"hsl(":"hsla("}${v1(this.h)}, ${xu(this.s)*100}%, ${xu(this.l)*100}%${n===1?")":`, ${n})`}`}}));function v1(n){return n=(n||0)%360,n<0?n+360:n}function xu(n){return Math.max(0,Math.min(1,n||0))}function Ih(n,t,e){return(n<60?t+(e-t)*n/60:n<180?e:n<240?t+(e-t)*(240-n)/60:t)*255}const Q1=Math.PI/180,S1=180/Math.PI,Bu=18,D1=.96422,k1=1,F1=.82521,M1=4/29,As=6/29,R1=3*As*As,Bk=As*As*As;function N1(n){if(n instanceof hn)return new hn(n.l,n.a,n.b,n.opacity);if(n instanceof Pn)return T1(n);n instanceof Je||(n=yh(n));var t=vh(n.r),e=vh(n.g),r=vh(n.b),i=bh((.2225045*t+.7168786*e+.0606169*r)/k1),s,o;return t===e&&e===r?s=o=i:(s=bh((.4360747*t+.3850649*e+.1430804*r)/D1),o=bh((.0139322*t+.0971045*e+.7141733*r)/F1)),new hn(116*i-16,500*(s-i),200*(i-o),n.opacity)}function Eh(n,t,e,r){return arguments.length===1?N1(n):new hn(n,t,e,r??1)}function hn(n,t,e,r){this.l=+n,this.a=+t,this.b=+e,this.opacity=+r}ls(hn,Eh,Da(fr,{brighter(n){return new hn(this.l+Bu*(n??1),this.a,this.b,this.opacity)},darker(n){return new hn(this.l-Bu*(n??1),this.a,this.b,this.opacity)},rgb(){var n=(this.l+16)/116,t=isNaN(this.a)?n:n+this.a/500,e=isNaN(this.b)?n:n-this.b/200;return t=D1*xh(t),n=k1*xh(n),e=F1*xh(e),new Je(Bh(3.1338561*t-1.6168667*n-.4906146*e),Bh(-.9787684*t+1.9161415*n+.033454*e),Bh(.0719453*t-.2289914*n+1.4052427*e),this.opacity)}}));function bh(n){return n>Bk?Math.pow(n,1/3):n/R1+M1}function xh(n){return n>As?n*n*n:R1*(n-M1)}function Bh(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function vh(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function vk(n){if(n instanceof Pn)return new Pn(n.h,n.c,n.l,n.opacity);if(n instanceof hn||(n=N1(n)),n.a===0&&n.b===0)return new Pn(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var t=Math.atan2(n.b,n.a)*S1;return new Pn(t<0?t+360:t,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function Qh(n,t,e,r){return arguments.length===1?vk(n):new Pn(n,t,e,r??1)}function Pn(n,t,e,r){this.h=+n,this.c=+t,this.l=+e,this.opacity=+r}function T1(n){if(isNaN(n.h))return new hn(n.l,0,0,n.opacity);var t=n.h*Q1;return new hn(n.l,Math.cos(t)*n.c,Math.sin(t)*n.c,n.opacity)}ls(Pn,Qh,Da(fr,{brighter(n){return new Pn(this.h,this.c,this.l+Bu*(n??1),this.opacity)},darker(n){return new Pn(this.h,this.c,this.l-Bu*(n??1),this.opacity)},rgb(){return T1(this).rgb()}}));var P1=-.14861,Sh=1.78277,Dh=-.29227,vu=-.90649,Fa=1.97294,L1=Fa*vu,O1=Fa*Sh,U1=Sh*Dh-vu*P1;function Qk(n){if(n instanceof oi)return new oi(n.h,n.s,n.l,n.opacity);n instanceof Je||(n=yh(n));var t=n.r/255,e=n.g/255,r=n.b/255,i=(U1*r+L1*t-O1*e)/(U1+L1-O1),s=r-i,o=(Fa*(e-i)-Dh*s)/vu,a=Math.sqrt(o*o+s*s)/(Fa*i*(1-i)),l=a?Math.atan2(o,s)*S1-120:NaN;return new oi(l<0?l+360:l,a,i,n.opacity)}function kh(n,t,e,r){return arguments.length===1?Qk(n):new oi(n,t,e,r??1)}function oi(n,t,e,r){this.h=+n,this.s=+t,this.l=+e,this.opacity=+r}ls(oi,kh,Da(fr,{brighter(n){return n=n==null?us:Math.pow(us,n),new oi(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?ri:Math.pow(ri,n),new oi(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=isNaN(this.h)?0:(this.h+120)*Q1,t=+this.l,e=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(n),i=Math.sin(n);return new Je(255*(t+e*(P1*r+Sh*i)),255*(t+e*(Dh*r+vu*i)),255*(t+e*(Fa*r)),this.opacity)}}));function G1(n,t,e,r,i){var s=n*n,o=s*n;return((1-3*n+3*s-o)*t+(4-6*s+3*o)*e+(1+3*n+3*s-3*o)*r+o*i)/6}function z1(n){var t=n.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,t-1):Math.floor(e*t),i=n[r],s=n[r+1],o=r>0?n[r-1]:2*i-s,a=r<t-1?n[r+2]:2*s-i;return G1((e-r/t)*t,o,i,s,a)}}function H1(n){var t=n.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*t),i=n[(r+t-1)%t],s=n[r%t],o=n[(r+1)%t],a=n[(r+2)%t];return G1((e-r/t)*t,i,s,o,a)}}const Qu=n=>()=>n;function Y1(n,t){return function(e){return n+e*t}}function Sk(n,t,e){return n=Math.pow(n,e),t=Math.pow(t,e)-n,e=1/e,function(r){return Math.pow(n+r*t,e)}}function Su(n,t){var e=t-n;return e?Y1(n,e>180||e<-180?e-360*Math.round(e/360):e):Qu(isNaN(n)?t:n)}function Dk(n){return(n=+n)==1?qe:function(t,e){return e-t?Sk(t,e,n):Qu(isNaN(t)?e:t)}}function qe(n,t){var e=t-n;return e?Y1(n,e):Qu(isNaN(n)?t:n)}const Fh=(function n(t){var e=Dk(t);function r(i,s){var o=e((i=Eu(i)).r,(s=Eu(s)).r),a=e(i.g,s.g),l=e(i.b,s.b),c=qe(i.opacity,s.opacity);return function(u){return i.r=o(u),i.g=a(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=n,r})(1);function _1(n){return function(t){var e=t.length,r=new Array(e),i=new Array(e),s=new Array(e),o,a;for(o=0;o<e;++o)a=Eu(t[o]),r[o]=a.r||0,i[o]=a.g||0,s[o]=a.b||0;return r=n(r),i=n(i),s=n(s),a.opacity=1,function(l){return a.r=r(l),a.g=i(l),a.b=s(l),a+""}}}var kk=_1(z1),Fk=_1(H1);function Mh(n,t){t||(t=[]);var e=n?Math.min(t.length,n.length):0,r=t.slice(),i;return function(s){for(i=0;i<e;++i)r[i]=n[i]*(1-s)+t[i]*s;return r}}function V1(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function Mk(n,t){return(V1(t)?Mh:J1)(n,t)}function J1(n,t){var e=t?t.length:0,r=n?Math.min(e,n.length):0,i=new Array(r),s=new Array(e),o;for(o=0;o<r;++o)i[o]=hr(n[o],t[o]);for(;o<e;++o)s[o]=t[o];return function(a){for(o=0;o<r;++o)s[o]=i[o](a);return s}}function q1(n,t){var e=new Date;return n=+n,t=+t,function(r){return e.setTime(n*(1-r)+t*r),e}}function Zt(n,t){return n=+n,t=+t,function(e){return n*(1-e)+t*e}}function K1(n,t){var e={},r={},i;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in n?e[i]=hr(n[i],t[i]):r[i]=t[i];return function(s){for(i in e)r[i]=e[i](s);return r}}var Rh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Nh=new RegExp(Rh.source,"g");function Rk(n){return function(){return n}}function Nk(n){return function(t){return n(t)+""}}function j1(n,t){var e=Rh.lastIndex=Nh.lastIndex=0,r,i,s,o=-1,a=[],l=[];for(n=n+"",t=t+"";(r=Rh.exec(n))&&(i=Nh.exec(t));)(s=i.index)>e&&(s=t.slice(e,s),a[o]?a[o]+=s:a[++o]=s),(r=r[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,l.push({i:o,x:Zt(r,i)})),e=Nh.lastIndex;return e<t.length&&(s=t.slice(e),a[o]?a[o]+=s:a[++o]=s),a.length<2?l[0]?Nk(l[0].x):Rk(t):(t=l.length,function(c){for(var u=0,f;u<t;++u)a[(f=l[u]).i]=f.x(c);return a.join("")})}function hr(n,t){var e=typeof t,r;return t==null||e==="boolean"?Qu(t):(e==="number"?Zt:e==="string"?(r=Ar(t))?(t=r,Fh):j1:t instanceof Ar?Fh:t instanceof Date?q1:V1(t)?Mh:Array.isArray(t)?J1:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?K1:Zt)(n,t)}function Tk(n){var t=n.length;return function(e){return n[Math.max(0,Math.min(t-1,Math.floor(e*t)))]}}function Pk(n,t){var e=Su(+n,+t);return function(r){var i=e(r);return i-360*Math.floor(i/360)}}function Ma(n,t){return n=+n,t=+t,function(e){return Math.round(n*(1-e)+t*e)}}var W1=180/Math.PI,Th={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function X1(n,t,e,r,i,s){var o,a,l;return(o=Math.sqrt(n*n+t*t))&&(n/=o,t/=o),(l=n*e+t*r)&&(e-=n*l,r-=t*l),(a=Math.sqrt(e*e+r*r))&&(e/=a,r/=a,l/=a),n*r<t*e&&(n=-n,t=-t,l=-l,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(t,n)*W1,skewX:Math.atan(l)*W1,scaleX:o,scaleY:a}}var Du;function Lk(n){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(n+"");return t.isIdentity?Th:X1(t.a,t.b,t.c,t.d,t.e,t.f)}function Ok(n){return n==null||(Du||(Du=document.createElementNS("http://www.w3.org/2000/svg","g")),Du.setAttribute("transform",n),!(n=Du.transform.baseVal.consolidate()))?Th:(n=n.matrix,X1(n.a,n.b,n.c,n.d,n.e,n.f))}function Z1(n,t,e,r){function i(c){return c.length?c.pop()+" ":""}function s(c,u,f,h,A,d){if(c!==f||u!==h){var g=A.push("translate(",null,t,null,e);d.push({i:g-4,x:Zt(c,f)},{i:g-2,x:Zt(u,h)})}else(f||h)&&A.push("translate("+f+t+h+e)}function o(c,u,f,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:Zt(c,u)})):u&&f.push(i(f)+"rotate("+u+r)}function a(c,u,f,h){c!==u?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:Zt(c,u)}):u&&f.push(i(f)+"skewX("+u+r)}function l(c,u,f,h,A,d){if(c!==f||u!==h){var g=A.push(i(A)+"scale(",null,",",null,")");d.push({i:g-4,x:Zt(c,f)},{i:g-2,x:Zt(u,h)})}else(f!==1||h!==1)&&A.push(i(A)+"scale("+f+","+h+")")}return function(c,u){var f=[],h=[];return c=n(c),u=n(u),s(c.translateX,c.translateY,u.translateX,u.translateY,f,h),o(c.rotate,u.rotate,f,h),a(c.skewX,u.skewX,f,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,f,h),c=u=null,function(A){for(var d=-1,g=h.length,p;++d<g;)f[(p=h[d]).i]=p.x(A);return f.join("")}}}var Uk=Z1(Lk,"px, ","px)","deg)"),Gk=Z1(Ok,", ",")",")"),zk=1e-12;function $1(n){return((n=Math.exp(n))+1/n)/2}function Hk(n){return((n=Math.exp(n))-1/n)/2}function Yk(n){return((n=Math.exp(2*n))-1)/(n+1)}const _k=(function n(t,e,r){function i(s,o){var a=s[0],l=s[1],c=s[2],u=o[0],f=o[1],h=o[2],A=u-a,d=f-l,g=A*A+d*d,p,C;if(g<zk)C=Math.log(h/c)/t,p=function(E){return[a+E*A,l+E*d,c*Math.exp(t*E*C)]};else{var w=Math.sqrt(g),b=(h*h-c*c+r*g)/(2*c*e*w),y=(h*h-c*c-r*g)/(2*h*e*w),x=Math.log(Math.sqrt(b*b+1)-b),B=Math.log(Math.sqrt(y*y+1)-y);C=(B-x)/t,p=function(E){var Q=E*C,k=$1(x),S=c/(e*w)*(k*Yk(t*Q+x)-Hk(x));return[a+S*A,l+S*d,c*k/$1(t*Q+x)]}}return p.duration=C*1e3*t/Math.SQRT2,p}return i.rho=function(s){var o=Math.max(.001,+s),a=o*o,l=a*a;return n(o,a,l)},i})(Math.SQRT2,2,4);function eC(n){return function(t,e){var r=n((t=wh(t)).h,(e=wh(e)).h),i=qe(t.s,e.s),s=qe(t.l,e.l),o=qe(t.opacity,e.opacity);return function(a){return t.h=r(a),t.s=i(a),t.l=s(a),t.opacity=o(a),t+""}}}const Vk=eC(Su);var Jk=eC(qe);function qk(n,t){var e=qe((n=Eh(n)).l,(t=Eh(t)).l),r=qe(n.a,t.a),i=qe(n.b,t.b),s=qe(n.opacity,t.opacity);return function(o){return n.l=e(o),n.a=r(o),n.b=i(o),n.opacity=s(o),n+""}}function tC(n){return function(t,e){var r=n((t=Qh(t)).h,(e=Qh(e)).h),i=qe(t.c,e.c),s=qe(t.l,e.l),o=qe(t.opacity,e.opacity);return function(a){return t.h=r(a),t.c=i(a),t.l=s(a),t.opacity=o(a),t+""}}}const Kk=tC(Su);var jk=tC(qe);function nC(n){return(function t(e){e=+e;function r(i,s){var o=n((i=kh(i)).h,(s=kh(s)).h),a=qe(i.s,s.s),l=qe(i.l,s.l),c=qe(i.opacity,s.opacity);return function(u){return i.h=o(u),i.s=a(u),i.l=l(Math.pow(u,e)),i.opacity=c(u),i+""}}return r.gamma=t,r})(1)}const Wk=nC(Su);var Xk=nC(qe);function Ph(n,t){t===void 0&&(t=n,n=hr);for(var e=0,r=t.length-1,i=t[0],s=new Array(r<0?0:r);e<r;)s[e]=n(i,i=t[++e]);return function(o){var a=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return s[a](o-a)}}function Zk(n,t){for(var e=new Array(t),r=0;r<t;++r)e[r]=n(r/(t-1));return e}const $k=Object.freeze(Object.defineProperty({__proto__:null,interpolate:hr,interpolateArray:Mk,interpolateBasis:z1,interpolateBasisClosed:H1,interpolateCubehelix:Wk,interpolateCubehelixLong:Xk,interpolateDate:q1,interpolateDiscrete:Tk,interpolateHcl:Kk,interpolateHclLong:jk,interpolateHsl:Vk,interpolateHslLong:Jk,interpolateHue:Pk,interpolateLab:qk,interpolateNumber:Zt,interpolateNumberArray:Mh,interpolateObject:K1,interpolateRgb:Fh,interpolateRgbBasis:kk,interpolateRgbBasisClosed:Fk,interpolateRound:Ma,interpolateString:j1,interpolateTransformCss:Uk,interpolateTransformSvg:Gk,interpolateZoom:_k,piecewise:Ph,quantize:Zk},Symbol.toStringTag,{value:"Module"}));function e8(n){return function(){return n}}function Lh(n){return+n}var rC=[0,1];function It(n){return n}function Oh(n,t){return(t-=n=+n)?function(e){return(e-n)/t}:e8(isNaN(t)?NaN:.5)}function t8(n,t){var e;return n>t&&(e=n,n=t,t=e),function(r){return Math.max(n,Math.min(t,r))}}function n8(n,t,e){var r=n[0],i=n[1],s=t[0],o=t[1];return i<r?(r=Oh(i,r),s=e(o,s)):(r=Oh(r,i),s=e(s,o)),function(a){return s(r(a))}}function r8(n,t,e){var r=Math.min(n.length,t.length)-1,i=new Array(r),s=new Array(r),o=-1;for(n[r]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Oh(n[o],n[o+1]),s[o]=e(t[o],t[o+1]);return function(a){var l=Zn(n,a,1,r)-1;return s[l](i[l](a))}}function Ra(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function ku(){var n=rC,t=rC,e=hr,r,i,s,o=It,a,l,c;function u(){var h=Math.min(n.length,t.length);return o!==It&&(o=t8(n[0],n[h-1])),a=h>2?r8:n8,l=c=null,f}function f(h){return h==null||isNaN(h=+h)?s:(l||(l=a(n.map(r),t,e)))(r(o(h)))}return f.invert=function(h){return o(i((c||(c=a(t,n.map(r),Zt)))(h)))},f.domain=function(h){return arguments.length?(n=Array.from(h,Lh),u()):n.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),u()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),e=Ma,u()},f.clamp=function(h){return arguments.length?(o=h?!0:It,u()):o!==It},f.interpolate=function(h){return arguments.length?(e=h,u()):e},f.unknown=function(h){return arguments.length?(s=h,f):s},function(h,A){return r=h,i=A,u()}}function iC(){return ku()(It,It)}function sC(n,t,e,r){var i=Yr(n,t,e),s;switch(r=Ki(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(n),Math.abs(t));return r.precision==null&&!isNaN(s=Xx(i,o))&&(r.precision=s),Yg(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=Zx(i,Math.max(Math.abs(n),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=Wx(i))&&(r.precision=s-(r.type==="%")*2);break}}return Ze(r)}function ai(n){var t=n.domain;return n.ticks=function(e){var r=t();return Bl(r[0],r[r.length-1],e??10)},n.tickFormat=function(e,r){var i=t();return sC(i[0],i[i.length-1],e??10,r)},n.nice=function(e){e==null&&(e=10);var r=t(),i=0,s=r.length-1,o=r[i],a=r[s],l,c,u=10;for(a<o&&(c=o,o=a,a=c,c=i,i=s,s=c);u-- >0;){if(c=tA(o,a,e),c===l)return r[i]=o,r[s]=a,t(r);if(c>0)o=Math.floor(o/c)*c,a=Math.ceil(a/c)*c;else if(c<0)o=Math.ceil(o*c)/c,a=Math.floor(a*c)/c;else break;l=c}return n},n}function oC(){var n=iC();return n.copy=function(){return Ra(n,oC())},fn.apply(n,arguments),ai(n)}function aC(n){var t;function e(r){return r==null||isNaN(r=+r)?t:r}return e.invert=e,e.domain=e.range=function(r){return arguments.length?(n=Array.from(r,Lh),e):n.slice()},e.unknown=function(r){return arguments.length?(t=r,e):t},e.copy=function(){return aC(n).unknown(t)},n=arguments.length?Array.from(n,Lh):[0,1],ai(e)}function cC(n,t){n=n.slice();var e=0,r=n.length-1,i=n[e],s=n[r],o;return s<i&&(o=e,e=r,r=o,o=i,i=s,s=o),n[e]=t.floor(i),n[r]=t.ceil(s),n}function lC(n){return Math.log(n)}function uC(n){return Math.exp(n)}function i8(n){return-Math.log(-n)}function s8(n){return-Math.exp(-n)}function o8(n){return isFinite(n)?+("1e"+n):n<0?0:n}function a8(n){return n===10?o8:n===Math.E?Math.exp:t=>Math.pow(n,t)}function c8(n){return n===Math.E?Math.log:n===10&&Math.log10||n===2&&Math.log2||(n=Math.log(n),t=>Math.log(t)/n)}function fC(n){return(t,e)=>-n(-t,e)}function Uh(n){const t=n(lC,uC),e=t.domain;let r=10,i,s;function o(){return i=c8(r),s=a8(r),e()[0]<0?(i=fC(i),s=fC(s),n(i8,s8)):n(lC,uC),t}return t.base=function(a){return arguments.length?(r=+a,o()):r},t.domain=function(a){return arguments.length?(e(a),o()):e()},t.ticks=a=>{const l=e();let c=l[0],u=l[l.length-1];const f=u<c;f&&([c,u]=[u,c]);let h=i(c),A=i(u),d,g;const p=a==null?10:+a;let C=[];if(!(r%1)&&A-h<p){if(h=Math.floor(h),A=Math.ceil(A),c>0){for(;h<=A;++h)for(d=1;d<r;++d)if(g=h<0?d/s(-h):d*s(h),!(g<c)){if(g>u)break;C.push(g)}}else for(;h<=A;++h)for(d=r-1;d>=1;--d)if(g=h>0?d/s(-h):d*s(h),!(g<c)){if(g>u)break;C.push(g)}C.length*2<p&&(C=Bl(c,u,p))}else C=Bl(h,A,Math.min(A-h,p)).map(s);return f?C.reverse():C},t.tickFormat=(a,l)=>{if(a==null&&(a=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Ki(l)).precision==null&&(l.trim=!0),l=Ze(l)),a===1/0)return l;const c=Math.max(1,r*a/t.ticks().length);return u=>{let f=u/s(Math.round(i(u)));return f*r<r-.5&&(f*=r),f<=c?l(u):""}},t.nice=()=>e(cC(e(),{floor:a=>s(Math.floor(i(a))),ceil:a=>s(Math.ceil(i(a)))})),t}function Gh(){const n=Uh(ku()).domain([1,10]);return n.copy=()=>Ra(n,Gh()).base(n.base()),fn.apply(n,arguments),n}function AC(n){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/n))}}function hC(n){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*n}}function zh(n){var t=1,e=n(AC(t),hC(t));return e.constant=function(r){return arguments.length?n(AC(t=+r),hC(t)):t},ai(e)}function dC(){var n=zh(ku());return n.copy=function(){return Ra(n,dC()).constant(n.constant())},fn.apply(n,arguments)}function gC(n){return function(t){return t<0?-Math.pow(-t,n):Math.pow(t,n)}}function l8(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function u8(n){return n<0?-n*n:n*n}function Hh(n){var t=n(It,It),e=1;function r(){return e===1?n(It,It):e===.5?n(l8,u8):n(gC(e),gC(1/e))}return t.exponent=function(i){return arguments.length?(e=+i,r()):e},ai(t)}function Yh(){var n=Hh(ku());return n.copy=function(){return Ra(n,Yh()).exponent(n.exponent())},fn.apply(n,arguments),n}function f8(){return Yh.apply(null,arguments).exponent(.5)}function pC(){var n=[],t=[],e=[],r;function i(){var o=0,a=Math.max(1,t.length);for(e=new Array(a-1);++o<a;)e[o-1]=Lg(n,o/a);return s}function s(o){return o==null||isNaN(o=+o)?r:t[Zn(e,o)]}return s.invertExtent=function(o){var a=t.indexOf(o);return a<0?[NaN,NaN]:[a>0?e[a-1]:n[0],a<e.length?e[a]:n[n.length-1]]},s.domain=function(o){if(!arguments.length)return n.slice();n=[];for(let a of o)a!=null&&!isNaN(a=+a)&&n.push(a);return n.sort(zr),i()},s.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},s.unknown=function(o){return arguments.length?(r=o,s):r},s.quantiles=function(){return e.slice()},s.copy=function(){return pC().domain(n).range(t).unknown(r)},fn.apply(s,arguments)}function mC(){var n=0,t=1,e=1,r=[.5],i=[0,1],s;function o(l){return l!=null&&l<=l?i[Zn(r,l,0,e)]:s}function a(){var l=-1;for(r=new Array(e);++l<e;)r[l]=((l+1)*t-(l-e)*n)/(e+1);return o}return o.domain=function(l){return arguments.length?([n,t]=l,n=+n,t=+t,a()):[n,t]},o.range=function(l){return arguments.length?(e=(i=Array.from(l)).length-1,a()):i.slice()},o.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[n,r[0]]:c>=e?[r[e-1],t]:[r[c-1],r[c]]},o.unknown=function(l){return arguments.length&&(s=l),o},o.thresholds=function(){return r.slice()},o.copy=function(){return mC().domain([n,t]).range(i).unknown(s)},fn.apply(ai(o),arguments)}function CC(){var n=[.5],t=[0,1],e,r=1;function i(s){return s!=null&&s<=s?t[Zn(n,s,0,r)]:e}return i.domain=function(s){return arguments.length?(n=Array.from(s),r=Math.min(n.length,t.length-1),i):n.slice()},i.range=function(s){return arguments.length?(t=Array.from(s),r=Math.min(n.length,t.length-1),i):t.slice()},i.invertExtent=function(s){var o=t.indexOf(s);return[n[o-1],n[o]]},i.unknown=function(s){return arguments.length?(e=s,i):e},i.copy=function(){return CC().domain(n).range(t).unknown(e)},fn.apply(i,arguments)}function A8(n){return new Date(n)}function h8(n){return n instanceof Date?+n:+new Date(+n)}function _h(n,t,e,r,i,s,o,a,l,c){var u=iC(),f=u.invert,h=u.domain,A=c(".%L"),d=c(":%S"),g=c("%I:%M"),p=c("%I %p"),C=c("%a %d"),w=c("%b %d"),b=c("%B"),y=c("%Y");function x(B){return(l(B)<B?A:a(B)<B?d:o(B)<B?g:s(B)<B?p:r(B)<B?i(B)<B?C:w:e(B)<B?b:y)(B)}return u.invert=function(B){return new Date(f(B))},u.domain=function(B){return arguments.length?h(Array.from(B,h8)):h().map(A8)},u.ticks=function(B){var E=h();return n(E[0],E[E.length-1],B??10)},u.tickFormat=function(B,E){return E==null?x:c(E)},u.nice=function(B){var E=h();return(!B||typeof B.range!="function")&&(B=t(E[0],E[E.length-1],B??10)),B?h(cC(E,B)):u},u.copy=function(){return Ra(u,_h(n,t,e,r,i,s,o,a,l,c))},u}function d8(){return fn.apply(_h(lB,uB,sn,Zo,Wo,$n,Fl,Dl,Mn,AA).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function g8(){return fn.apply(_h(aB,cB,on,$o,Xo,_r,Ml,kl,Mn,hA).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Fu(){var n=0,t=1,e,r,i,s,o=It,a=!1,l;function c(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(s(f)-e)*i,a?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([n,t]=f,e=s(n=+n),r=s(t=+t),i=e===r?0:1/(r-e),c):[n,t]},c.clamp=function(f){return arguments.length?(a=!!f,c):a},c.interpolator=function(f){return arguments.length?(o=f,c):o};function u(f){return function(h){var A,d;return arguments.length?([A,d]=h,o=f(A,d),c):[o(0),o(1)]}}return c.range=u(hr),c.rangeRound=u(Ma),c.unknown=function(f){return arguments.length?(l=f,c):l},function(f){return s=f,e=f(n),r=f(t),i=e===r?0:1/(r-e),c}}function dr(n,t){return t.domain(n.domain()).interpolator(n.interpolator()).clamp(n.clamp()).unknown(n.unknown())}function Vh(){var n=ai(Fu()(It));return n.copy=function(){return dr(n,Vh())},ur.apply(n,arguments)}function yC(){var n=Uh(Fu()).domain([1,10]);return n.copy=function(){return dr(n,yC()).base(n.base())},ur.apply(n,arguments)}function wC(){var n=zh(Fu());return n.copy=function(){return dr(n,wC()).constant(n.constant())},ur.apply(n,arguments)}function Jh(){var n=Hh(Fu());return n.copy=function(){return dr(n,Jh()).exponent(n.exponent())},ur.apply(n,arguments)}function p8(){return Jh.apply(null,arguments).exponent(.5)}function Mu(){var n=0,t=.5,e=1,r=1,i,s,o,a,l,c=It,u,f=!1,h;function A(g){return isNaN(g=+g)?h:(g=.5+((g=+u(g))-s)*(r*g<r*s?a:l),c(f?Math.max(0,Math.min(1,g)):g))}A.domain=function(g){return arguments.length?([n,t,e]=g,i=u(n=+n),s=u(t=+t),o=u(e=+e),a=i===s?0:.5/(s-i),l=s===o?0:.5/(o-s),r=s<i?-1:1,A):[n,t,e]},A.clamp=function(g){return arguments.length?(f=!!g,A):f},A.interpolator=function(g){return arguments.length?(c=g,A):c};function d(g){return function(p){var C,w,b;return arguments.length?([C,w,b]=p,c=Ph(g,[C,w,b]),A):[c(0),c(.5),c(1)]}}return A.range=d(hr),A.rangeRound=d(Ma),A.unknown=function(g){return arguments.length?(h=g,A):h},function(g){return u=g,i=g(n),s=g(t),o=g(e),a=i===s?0:.5/(s-i),l=s===o?0:.5/(o-s),r=s<i?-1:1,A}}function IC(){var n=ai(Mu()(It));return n.copy=function(){return dr(n,IC())},ur.apply(n,arguments)}function EC(){var n=Uh(Mu()).domain([.1,1,10]);return n.copy=function(){return dr(n,EC()).base(n.base())},ur.apply(n,arguments)}function bC(){var n=zh(Mu());return n.copy=function(){return dr(n,bC()).constant(n.constant())},ur.apply(n,arguments)}function qh(){var n=Hh(Mu());return n.copy=function(){return dr(n,qh()).exponent(n.exponent())},ur.apply(n,arguments)}function m8(){return qh.apply(null,arguments).exponent(.5)}function dn(n){for(var t=n.length/6|0,e=new Array(t),r=0;r<t;)e[r]="#"+n.slice(r*6,++r*6);return e}const C8=dn("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),y8=dn("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),w8=dn("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),I8=dn("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),E8=dn("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),b8=dn("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),x8=dn("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),B8=dn("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),v8=dn("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Q8=dn("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function Kh(n,t,e){const r=n-t+e*2;return n?r>0?r:1:0}const S8="identity",hs="linear",gr="log",Na="pow",Ta="sqrt",Ru="symlog",xC="time",BC="utc",gn="sequential",ds="diverging",jh="quantile",vC="quantize",QC="threshold",Wh="ordinal",Xh="point",SC="band",Zh="bin-ordinal",Ge="continuous",Pa="discrete",La="discretizing",Pt="interpolating",DC="temporal";function D8(n){return function(t){let e=t[0],r=t[1],i;return r<e&&(i=e,e=r,r=i),[n.invert(e),n.invert(r)]}}function k8(n){return function(t){const e=n.range();let r=t[0],i=t[1],s=-1,o,a,l,c;for(i<r&&(a=r,r=i,i=a),l=0,c=e.length;l<c;++l)e[l]>=r&&e[l]<=i&&(s<0&&(s=l),o=l);if(!(s<0))return r=n.invertExtent(e[s]),i=n.invertExtent(e[o]),[r[0]===void 0?r[1]:r[0],i[1]===void 0?i[0]:i[1]]}}function $h(){const n=Ch().unknown(void 0),t=n.domain,e=n.range;let r=[0,1],i,s,o=!1,a=0,l=0,c=.5;delete n.unknown;function u(){const f=t().length,h=r[1]<r[0],A=r[1-h],d=Kh(f,a,l);let g=r[h-0];i=(A-g)/(d||1),o&&(i=Math.floor(i)),g+=(A-g-i*(f-a))*c,s=i*(1-a),o&&(g=Math.round(g),s=Math.round(s));const p=Ko(f).map(C=>g+i*C);return e(h?p.reverse():p)}return n.domain=function(f){return arguments.length?(t(f),u()):t()},n.range=function(f){return arguments.length?(r=[+f[0],+f[1]],u()):r.slice()},n.rangeRound=function(f){return r=[+f[0],+f[1]],o=!0,u()},n.bandwidth=function(){return s},n.step=function(){return i},n.round=function(f){return arguments.length?(o=!!f,u()):o},n.padding=function(f){return arguments.length?(l=Math.max(0,Math.min(1,f)),a=l,u()):a},n.paddingInner=function(f){return arguments.length?(a=Math.max(0,Math.min(1,f)),u()):a},n.paddingOuter=function(f){return arguments.length?(l=Math.max(0,Math.min(1,f)),u()):l},n.align=function(f){return arguments.length?(c=Math.max(0,Math.min(1,f)),u()):c},n.invertRange=function(f){if(f[0]==null||f[1]==null)return;const h=r[1]<r[0],A=h?e().reverse():e(),d=A.length-1;let g=+f[0],p=+f[1],C,w,b;if(!(g!==g||p!==p)&&(p<g&&(b=g,g=p,p=b),!(p<A[0]||g>r[1-h])))return C=Math.max(0,Zn(A,g)-1),w=g===p?C:Zn(A,p)-1,g-A[C]>s+1e-10&&++C,h&&(b=C,C=d-w,w=d-b),C>w?void 0:t().slice(C,w+1)},n.invert=function(f){const h=n.invertRange([f,f]);return h&&h[0]},n.copy=function(){return $h().domain(t()).range(r).round(o).paddingInner(a).paddingOuter(l).align(c)},u()}function kC(n){const t=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,n.copy=function(){return kC(t())},n}function F8(){return kC($h().paddingInner(1))}var M8=Array.prototype.map;function R8(n){return M8.call(n,To)}const N8=Array.prototype.slice;function FC(){let n=[],t=[];function e(r){return r==null||r!==r?void 0:t[(Zn(n,r)-1)%t.length]}return e.domain=function(r){return arguments.length?(n=R8(r),e):n.slice()},e.range=function(r){return arguments.length?(t=N8.call(r),e):t.slice()},e.tickFormat=function(r,i){return sC(n[0],qt(n),r??10,i)},e.copy=function(){return FC().domain(e.domain()).range(e.range())},e}const Nu=new Map,T8=Symbol("vega_scale");function P8(n){return n[T8]=!0,n}function L8(n,t,e){const r=function(){const s=t();return s.invertRange||(s.invertRange=s.invert?D8(s):s.invertExtent?k8(s):void 0),s.type=n,P8(s)};return r.metadata=Cl(Hf(e)),r}function fe(n,t,e){return arguments.length>1?(Nu.set(n,L8(n,t,e)),this):O8(n)?Nu.get(n):void 0}fe(S8,aC),fe(hs,oC,Ge),fe(gr,Gh,[Ge,gr]),fe(Na,Yh,Ge),fe(Ta,f8,Ge),fe(Ru,dC,Ge),fe(xC,d8,[Ge,DC]),fe(BC,g8,[Ge,DC]),fe(gn,Vh,[Ge,Pt]),fe(`${gn}-${hs}`,Vh,[Ge,Pt]),fe(`${gn}-${gr}`,yC,[Ge,Pt,gr]),fe(`${gn}-${Na}`,Jh,[Ge,Pt]),fe(`${gn}-${Ta}`,p8,[Ge,Pt]),fe(`${gn}-${Ru}`,wC,[Ge,Pt]),fe(`${ds}-${hs}`,IC,[Ge,Pt]),fe(`${ds}-${gr}`,EC,[Ge,Pt,gr]),fe(`${ds}-${Na}`,qh,[Ge,Pt]),fe(`${ds}-${Ta}`,m8,[Ge,Pt]),fe(`${ds}-${Ru}`,bC,[Ge,Pt]),fe(jh,pC,[La,jh]),fe(vC,mC,La),fe(QC,CC,La),fe(Zh,FC,[Pa,La]),fe(Wh,Ch,Pa),fe(SC,$h,Pa),fe(Xh,F8,Pa);function O8(n){return Nu.has(n)}function Oa(n,t){const e=Nu.get(n);return e&&e.metadata[t]}function Ke(n){return Oa(n,Ge)}function pr(n){return Oa(n,Pa)}function ci(n){return Oa(n,La)}function MC(n){return Oa(n,gr)}function Tu(n){return Oa(n,Pt)}function U8(n,t){const e=t[0],r=qt(t)-e;return function(i){return n(e+i*r)}}function Pu(n,t,e){return Ph(RC(t||"rgb",e),n)}function G8(n,t){const e=new Array(t),r=t+1;for(let i=0;i<t;)e[i]=n(++i/r);return e}function RC(n,t){const e=$k[z8(n)];return t!=null&&e&&e.gamma?e.gamma(t):e}function z8(n){return"interpolate"+n.toLowerCase().split("-").map(t=>t[0].toUpperCase()+t.slice(1)).join("")}const H8={blues:"cfe1f2bed8eca8cee58fc1de74b2d75ba3cf4592c63181bd206fb2125ca40a4a90",greens:"d3eecdc0e6baabdda594d3917bc77d60ba6c46ab5e329a512089430e7735036429",greys:"e2e2e2d4d4d4c4c4c4b1b1b19d9d9d8888887575756262624d4d4d3535351e1e1e",oranges:"fdd8b3fdc998fdb87bfda55efc9244f87f2cf06b18e4580bd14904b93d029f3303",purples:"e2e1efd4d4e8c4c5e0b4b3d6a3a0cc928ec3827cb97566ae684ea25c3696501f8c",reds:"fdc9b4fcb49afc9e80fc8767fa7051f6573fec3f2fdc2a25c81b1db21218970b13",blueGreen:"d5efedc1e8e0a7ddd18bd2be70c6a958ba9144ad77319c5d2089460e7736036429",bluePurple:"ccddecbad0e4a8c2dd9ab0d4919cc98d85be8b6db28a55a6873c99822287730f71",greenBlue:"d3eecec5e8c3b1e1bb9bd8bb82cec269c2ca51b2cd3c9fc7288abd1675b10b60a1",orangeRed:"fddcaffdcf9bfdc18afdad77fb9562f67d53ee6545e24932d32d1ebf130da70403",purpleBlue:"dbdaebc8cee4b1c3de97b7d87bacd15b9fc93a90c01e7fb70b70ab056199045281",purpleBlueGreen:"dbd8eac8cee4b0c3de93b7d872acd1549fc83892bb1c88a3097f8702736b016353",purpleRed:"dcc9e2d3b3d7ce9eccd186c0da6bb2e14da0e23189d91e6fc61159ab07498f023a",redPurple:"fccfccfcbec0faa9b8f98faff571a5ec539ddb3695c41b8aa908808d0179700174",yellowGreen:"e4f4acd1eca0b9e2949ed68880c97c62bb6e47aa5e3297502083440e723b036034",yellowOrangeBrown:"feeaa1fedd84fecc63feb746fca031f68921eb7215db5e0bc54c05ab3d038f3204",yellowOrangeRed:"fee087fed16ffebd59fea849fd903efc7335f9522bee3423de1b20ca0b22af0225",blueOrange:"134b852f78b35da2cb9dcae1d2e5eff2f0ebfce0bafbbf74e8932fc5690d994a07",brownBlueGreen:"704108a0651ac79548e3c78af3e6c6eef1eac9e9e48ed1c74da79e187a72025147",purpleGreen:"5b1667834792a67fb6c9aed3e6d6e8eff0efd9efd5aedda971bb75368e490e5e29",purpleOrange:"4114696647968f83b7b9b4d6dadbebf3eeeafce0bafbbf74e8932fc5690d994a07",redBlue:"8c0d25bf363adf745ef4ae91fbdbc9f2efeed2e5ef9dcae15da2cb2f78b3134b85",redGrey:"8c0d25bf363adf745ef4ae91fcdccbfaf4f1e2e2e2c0c0c0969696646464343434",yellowGreenBlue:"eff9bddbf1b4bde5b594d5b969c5be45b4c22c9ec02182b82163aa23479c1c3185",redYellowBlue:"a50026d4322cf16e43fcac64fedd90faf8c1dcf1ecabd6e875abd04a74b4313695",redYellowGreen:"a50026d4322cf16e43fcac63fedd8df9f7aed7ee8ea4d86e64bc6122964f006837",pinkYellowGreen:"8e0152c0267edd72adf0b3d6faddedf5f3efe1f2cab6de8780bb474f9125276419",spectral:"9e0142d13c4bf0704afcac63fedd8dfbf8b0e0f3a1a9dda269bda94288b55e4fa2",viridis:"440154470e61481a6c482575472f7d443a834144873d4e8a39568c35608d31688e2d708e2a788e27818e23888e21918d1f988b1fa08822a8842ab07f35b77943bf7154c56866cc5d7ad1518fd744a5db36bcdf27d2e21be9e51afde725",magma:"0000040404130b0924150e3720114b2c11603b0f704a107957157e651a80721f817f24828c29819a2e80a8327db6377ac43c75d1426fde4968e95462f1605df76f5cfa7f5efc8f65fe9f6dfeaf78febf84fece91fddea0fcedaffcfdbf",inferno:"0000040403130c0826170c3b240c4f330a5f420a68500d6c5d126e6b176e781c6d86216b932667a12b62ae305cbb3755c73e4cd24644dd513ae65c30ed6925f3771af8850ffb9506fca50afcb519fac62df6d645f2e661f3f484fcffa4",plasma:"0d088723069033059742039d5002a25d01a66a00a87801a88405a7900da49c179ea72198b12a90ba3488c33d80cb4779d35171da5a69e16462e76e5bed7953f2834cf68f44fa9a3dfca636fdb32ffec029fcce25f9dc24f5ea27f0f921",cividis:"00205100235800265d002961012b65042e670831690d346b11366c16396d1c3c6e213f6e26426e2c456e31476e374a6e3c4d6e42506e47536d4c566d51586e555b6e5a5e6e5e616e62646f66676f6a6a706e6d717270717573727976737c79747f7c75827f758682768985778c8877908b78938e789691789a94789e9778a19b78a59e77a9a177aea575b2a874b6ab73bbaf71c0b26fc5b66dc9b96acebd68d3c065d8c462ddc85fe2cb5ce7cf58ebd355f0d652f3da4ff7de4cfae249fce647",rainbow:"6e40aa883eb1a43db3bf3cafd83fa4ee4395fe4b83ff576eff6659ff7847ff8c38f3a130e2b72fcfcc36bee044aff05b8ff4576ff65b52f6673af27828ea8d1ddfa319d0b81cbecb23abd82f96e03d82e14c6edb5a5dd0664dbf6e40aa",sinebow:"ff4040fc582af47218e78d0bd5a703bfbf00a7d5038de70b72f41858fc2a40ff402afc5818f4720be78d03d5a700bfbf03a7d50b8de71872f42a58fc4040ff582afc7218f48d0be7a703d5bf00bfd503a7e70b8df41872fc2a58ff4040",turbo:"23171b32204a3e2a71453493493eae4b49c54a53d7485ee44569ee4074f53c7ff8378af93295f72e9ff42ba9ef28b3e926bce125c5d925cdcf27d5c629dcbc2de3b232e9a738ee9d3ff39347f68950f9805afc7765fd6e70fe667cfd5e88fc5795fb51a1f84badf545b9f140c5ec3cd0e637dae034e4d931ecd12ef4c92bfac029ffb626ffad24ffa223ff9821ff8d1fff821dff771cfd6c1af76118f05616e84b14df4111d5380fcb2f0dc0260ab61f07ac1805a313029b0f00950c00910b00",browns:"eedbbdecca96e9b97ae4a865dc9856d18954c7784cc0673fb85536ad44339f3632",tealBlues:"bce4d89dd3d181c3cb65b3c245a2b9368fae347da0306a932c5985",teals:"bbdfdfa2d4d58ac9c975bcbb61b0af4da5a43799982b8b8c1e7f7f127273006667",warmGreys:"dcd4d0cec5c1c0b8b4b3aaa7a59c9998908c8b827f7e7673726866665c5a59504e",goldGreen:"f4d166d5ca60b6c35c98bb597cb25760a6564b9c533f8f4f33834a257740146c36",goldOrange:"f4d166f8be5cf8aa4cf5983bf3852aef701be2621fd65322c54923b142239e3a26",goldRed:"f4d166f6be59f9aa51fc964ef6834bee734ae56249db5247cf4244c43141b71d3e",lightGreyRed:"efe9e6e1dad7d5cbc8c8bdb9bbaea9cd967ddc7b43e15f19df4011dc000b",lightGreyTeal:"e4eaead6dcddc8ced2b7c2c7a6b4bc64b0bf22a6c32295c11f85be1876bc",lightMulti:"e0f1f2c4e9d0b0de9fd0e181f6e072f6c053f3993ef77440ef4a3c",lightOrange:"f2e7daf7d5baf9c499fab184fa9c73f68967ef7860e8645bde515bd43d5b",lightTealBlue:"e3e9e0c0dccf9aceca7abfc859afc0389fb9328dad2f7ca0276b95255988",darkBlue:"3232322d46681a5c930074af008cbf05a7ce25c0dd38daed50f3faffffff",darkGold:"3c3c3c584b37725e348c7631ae8b2bcfa424ecc31ef9de30fff184ffffff",darkGreen:"3a3a3a215748006f4d048942489e4276b340a6c63dd2d836ffeb2cffffaa",darkMulti:"3737371f5287197d8c29a86995ce3fffe800ffffff",darkRed:"3434347036339e3c38cc4037e75d1eec8620eeab29f0ce32ffeb2c"},Y8={accent:y8,category10:C8,category20:"1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5",category20b:"393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6",category20c:"3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9",dark2:w8,observable10:I8,paired:E8,pastel1:b8,pastel2:x8,set1:B8,set2:v8,set3:Q8,tableau10:"4c78a8f58518e4575672b7b254a24beeca3bb279a2ff9da69d755dbab0ac",tableau20:"4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5"};function NC(n){if(Xe(n))return n;const t=n.length/6|0,e=new Array(t);for(let r=0;r<t;)e[r]="#"+n.slice(r*6,++r*6);return e}function TC(n,t){for(const e in n)ed(e,t(n[e]))}const PC={};TC(Y8,NC),TC(H8,n=>Pu(NC(n)));function ed(n,t){return n=n&&n.toLowerCase(),arguments.length>1?(PC[n]=t,this):PC[n]}function td(){const n=t=>t;return n.invert=t=>t,n.copy=td,n.invertRange=()=>{},n.type="null",n}class _8{constructor(t,e,r={}){this._container=t,this._sizeSource=e??(()=>({width:void 0,height:void 0})),this._shaderCache=new Map,this.rangeTextures=new WeakMap,this.selectionTextures=new WeakMap;const i=document.createElement("canvas");t.appendChild(i);const s=ck(i,{antialias:!0,depth:!1,premultipliedAlpha:!0,...r});if(!s)throw new Error("Unable to initialize WebGL. Your browser or machine may not support it.");if(!es(s))throw new Error("Your web browser does not support WebGL 2.0. Chrome, Firefox, and Safari Tech Preview should work.");g1(s);const o=s.getExtension("WEBGL_provoking_vertex");o&&o.provokingVertexWEBGL(o.FIRST_VERTEX_CONVENTION_WEBGL),s.blendFunc(s.ONE,s.ONE_MINUS_SRC_ALPHA),this.canvas=i,this.gl=s,this._pickingAttachmentOptions=[{format:s.RGBA,type:s.UNSIGNED_BYTE,minMag:s.LINEAR,wrap:s.CLAMP_TO_EDGE}],this._pickingBufferInfo=h1(s,this._pickingAttachmentOptions),s.bindFramebuffer(s.FRAMEBUFFER,null),this.adjustGl()}invalidateSize(){this._logicalCanvasSize=void 0,this.adjustGl()}compileShader(t,e){const r="#version 300 es",i="precision mediump float;";Xe(e)&&(e=e.join(`
|
|
384
444
|
|
|
385
|
-
`));const s=this.gl,o=
|
|
445
|
+
`));const s=this.gl,o=e.replaceAll(/ {2,}|^\s*\/\/.*$/gm,"");let a=this._shaderCache.get(o);if(!a){const l=[r,i,e].join(`
|
|
386
446
|
|
|
387
|
-
`);a=s.createShader(
|
|
388
|
-
`).map((o,a)=>{const
|
|
447
|
+
`);a=s.createShader(t),s.shaderSource(a,l),s.compileShader(a),this._shaderCache.set(o,a)}return a}adjustGl(){const t=this.getLogicalCanvasSize();this.canvas.style.width=`${t.width}px`,this.canvas.style.height=`${t.height}px`;const e=this.getPhysicalCanvasSize(t);this.canvas.width=e.width,this.canvas.height=e.height,rk(this.gl,this._pickingBufferInfo,this._pickingAttachmentOptions)}finalize(){this.canvas.remove()}getPhysicalCanvasSize(t){const e=window.devicePixelRatio??1;return t=t||this.getLogicalCanvasSize(),{width:t.width*e,height:t.height*e}}getLogicalCanvasSize(){if(this._logicalCanvasSize)return this._logicalCanvasSize;const t=this._sizeSource(),e=window.getComputedStyle(this._container,null),r=t.width??this._container.clientWidth-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight),i=t.height??this._container.clientHeight-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom);return this._logicalCanvasSize={width:r,height:i},this._logicalCanvasSize}createRangeTexture(t,e=!1){const r=this.rangeTextures.get(t.getScale());if(!e&&r)return;function i(o,a){return pr(a.type)?a.domain().length:a.type=="threshold"?a.domain().length+1:a.type=="quantize"||a.type=="quantile"?o??4:o}const s=t.channel;if(rr(s)){const o=t.getScale(),a=o.props,l=o.range();let c;if(a.scheme)if(o.type=="threshold"&&l)c=nd(l,this.gl,o.domain().length,r);else{let u=Ce(a.scheme)?void 0:a.scheme.count;u=i(u,o),c=j8(a.scheme,this.gl,u,r)}else Tu(o.type)||Ke(o.type)&&l.length>1?c=W8(l,a.interpolate,this.gl,r):c=nd(l,this.gl,o.domain().length,r);this.rangeTextures.set(o,c)}else{const o=t.getScale();if(o.type==="ordinal"||ci(o.type)){const a=Kl(s)?Jp(s):c=>c,l=o.range();this.rangeTextures.set(o,X8(l.map(a),this.gl,o.domain().length,r))}}}createSelectionTexture(t,e=!0){if(!OA(t))throw new Error("Not a multi-point selection, cannot create texture");const r=Array.from(t.data.keys()),i=r.length>0?r.sort((l,c)=>l-c):[0],s=this.selectionTextures.get(t),o=this.gl,a=Ua(this.gl,{level:0,minMag:o.NEAREST,format:o.RED_INTEGER,internalFormat:o.R32UI,height:1,width:i.length},new Uint32Array(i),e?s:!1);this.selectionTextures.set(t,a)}}function V8(n,t="",e=0){const r=/ERROR:\s*\d+:(\d+)/gi,i=[...t.matchAll(r)],s=new Map(i.map((o,a)=>{const l=parseInt(o[1]),c=i[a+1],u=c?c.index:t.length,f=t.substring(o.index,u);return[l-1,f]}));return n.split(`
|
|
448
|
+
`).map((o,a)=>{const l=s.get(a);return`${a+1+e}: ${o}${l?`
|
|
389
449
|
|
|
390
|
-
^^^ ${
|
|
391
|
-
`)}function
|
|
392
|
-
Error compiling: ${s}`,n.deleteShader(
|
|
450
|
+
^^^ ${l}`:""}`}).join(`
|
|
451
|
+
`)}function J8(n,t,e){const r=n.createProgram();n.attachShader(r,t),n.attachShader(r,e),n.linkProgram(r);function i(){let s,o;if(!n.getProgramParameter(r,n.LINK_STATUS)){s=n.getProgramInfoLog(r);for(const l of[t,e])n.getShaderParameter(l,n.COMPILE_STATUS)||(s=n.getShaderInfoLog(l),o=V8(n.getShaderSource(l),s,0)+`
|
|
452
|
+
Error compiling: ${s}`,n.deleteShader(l));n.deleteProgram(r)}if(s)return{message:s,detail:o}}return{program:r,getProgramErrors:i}}function Ua(n,t,e,r){return r?km(n,r,e,t):r=Qa(n,{...t,src:e}),r}function q8(n,t,e,r){const{height:i,framebuffer:s}=t,o=new Uint8Array(4);return n.bindFramebuffer(n.FRAMEBUFFER,s),n.readPixels(e,i-r-1,1,1,n.RGBA,n.UNSIGNED_BYTE,o),n.bindFramebuffer(n.FRAMEBUFFER,null),o}function K8(n,t,e="image/png"){const{width:r,height:i}=t,s=new Uint8Array(r*i*4);n.bindFramebuffer(n.FRAMEBUFFER,t.framebuffer),n.readPixels(0,0,r,i,n.RGBA,n.UNSIGNED_BYTE,s),n.bindFramebuffer(n.FRAMEBUFFER,null);const o=document.createElement("canvas");o.width=r,o.height=i;const a=o.getContext("2d"),l=a.createImageData(r,i);for(let c=0;c<i;c++){const u=(i-1-c)*r*4,f=c*r*4;l.data.set(s.subarray(u,u+r*4),f)}return a.putImageData(l,0,0),o.toDataURL(e)}function j8(n,t,e,r){const i=Ce(n)?n:n.name,s=!Ce(n)&&n.extent||[0,1];if(e===void 0&&!Ce(n)&&(e=n.count),i){const o=ed(i);if(Ft(o)){const a=LC(o,{extent:s,count:e});return Ua(t,{minMag:t.LINEAR,format:t.RGB,height:1,wrap:t.CLAMP_TO_EDGE},a,r)}else{if(Xe(o))return nd(o,t);throw new Error("Unknown scheme: "+i)}}}function W8(n,t="rgb",e,r){const i=Pu(n,Ce(t)?t:t.type,Ce(t)?void 0:t.gamma),s=LC(i);return Ua(e,{minMag:e.LINEAR,format:e.RGB,height:1,wrap:e.CLAMP_TO_EDGE},s,r)}function X8(n,t,e,r){const i=Math.max(n.length,e||0),s=new Float32Array(i);for(let o=0;o<i;o++)s[o]=n[o%n.length];return Ua(t,{minMag:t.NEAREST,format:t.RED,internalFormat:t.R32F,height:1},s,r)}function nd(n,t,e,r){const i=OC(n,e);return Ua(t,{minMag:t.NEAREST,format:t.RGB,height:1},i,r)}function LC(n,{extent:t=[0,1],reverse:e=!1,count:r=256}={}){const i=t[0],s=Gl(t)-i,o=Ko(r).map(a=>a/(r-1)).map(a=>i+a/s).map(n);return e&&o.reverse(),OC(o)}function OC(n,t){const e=Math.max(n.length,t||0),r=new Uint8Array(e*3);for(let i=0;i<e;i++){const s=n[i%n.length],o=Ar(s);if(!o)throw new Error(`Invalid color "${s}" in the scheme ${JSON.stringify(n)}!`);const a=o.rgb();r[i*3+0]=a.r,r[i*3+1]=a.g,r[i*3+2]=a.b}return r}function rd(n){const t=Ar(n).rgb();return[t.r,t.g,t.b].map(e=>e/255)}const Z8="attr_",$8="uDomain_",eF="range_",tF="accessor_",UC="scale_",nF="getScaled_",id="uRangeTexture_",Lu="uParam_",Ga="checkSelection_",GC=3402823466e29;function rF(n){const t=n.match(/^(?:(\w+)-)?(\w+)$/);if(!t)throw new Error("Not a scale type: "+n);return{family:t[1]||"continuous",transform:t[2]}}function za(n,t){return`${tF}${n}_${t}`}function iF(n,t,e){let r;if(Kl(n))r=li(Jp(n)(e));else if(Ce(e))if(rr(n))r=lF(e);else throw new Error(`String values are not supported on the "${n}" channel: ${e}`);else if(Po(e))r=li(e?1:0);else if(e===null)if(rr(n))r=li([0,0,0]);else throw new Error(`null value is not supported on the "${n}" chanel.`);else r=li(e);const i=za(n,t),s=`
|
|
393
453
|
${r.type} ${i}() {
|
|
394
454
|
// Constant value
|
|
395
455
|
return ${r};
|
|
396
|
-
}`;return{channel:n,accessorGlsl:s,accessorFunctionName:i}}function
|
|
397
|
-
uniform ${
|
|
398
|
-
${
|
|
456
|
+
}`;return{channel:n,accessorGlsl:s,accessorFunctionName:i}}function sF(n,t){let e="float",r=l=>l;rr(n)&&(e="vec3",r=l=>rd(l));const i=`u${dF(n)}_${t}`,s=` // Dynamic value
|
|
457
|
+
uniform ${e} ${i};`,o=za(n,t);let a=`
|
|
458
|
+
${e} ${o}() {
|
|
399
459
|
// Dynamic value
|
|
400
460
|
return ${i};
|
|
401
|
-
}`;return{channel:n,uniformName:i,uniformGlsl:s,accessorGlsl:a,accessorFunctionName:o,adjuster:r}}function
|
|
461
|
+
}`;return{channel:n,uniformName:i,uniformGlsl:s,accessorGlsl:a,accessorFunctionName:o,adjuster:r}}function zC(n,t,e,r=[n]){const{attributeType:i}=gs(t,n),s=ps(r),o=`in highp ${i} ${s};`,a=za(n,e),l=`
|
|
402
462
|
${i} ${a}() {
|
|
403
463
|
return ${s};
|
|
404
|
-
}`;return{channel:n,attributeName:s,attributeGlsl:o,accessorGlsl:
|
|
464
|
+
}`;return{channel:n,attributeName:s,attributeGlsl:o,accessorGlsl:l,accessorFunctionName:a}}function oF(n,t,e){const{attributeType:r}=gs(t,n),i=ps(n),s=` uniform highp ${r} ${i};`,o=za(n,e),a=`
|
|
405
465
|
${r} ${o}() {
|
|
406
466
|
return ${i};
|
|
407
|
-
}`;return{channel:n,uniformName:i,uniformGlsl:s,accessorGlsl:a,accessorFunctionName:o}}function
|
|
408
|
-
${
|
|
409
|
-
${
|
|
467
|
+
}`;return{channel:n,uniformName:i,uniformGlsl:s,accessorGlsl:a,accessorFunctionName:o}}function aF(n,t,e){t??(t=td());const r=Xr(n),i=$8+r,s=eF+r,{hp:o,attributeType:a}=gs(t,n),l=t.domain?t.domain().length:void 0;let c;const u=[];u.push(""),u.push("/".repeat(70)),u.push(`// Channel: ${n}`),u.push("");const{transform:f}=rF(t.type),h=(E,...Q)=>uF.apply(null,[E,"value",...Q]);let A;switch(f){case"linear":A=h("scaleLinear","domain",s);break;case"log":A=h("scaleLog","domain",s,t.base());break;case"symlog":A=h("scaleSymlog","domain",s,t.constant());break;case"pow":case"sqrt":A=h("scalePow","domain",s,t.exponent());break;case"index":case"locus":A=h("scaleBandHp","domain",s,t.paddingInner(),t.paddingOuter(),t.align(),e.band??.5);break;case"point":case"band":A=h("scaleBand","domain",s,t.paddingInner(),t.paddingOuter(),t.align(),e.band??.5);break;case"ordinal":case"null":case"identity":A=h("scaleIdentity");break;case"threshold":break;default:throw new Error(`Unsupported scale type: ${t.type}! ${n}: ${JSON.stringify(e)}`)}const d=jC(t,n);let g;if(d&&n==r){const E=t.props.range??[];if(it(E)||E.some(it)){if(d.length<1||d.length>4)throw new Error(`A range with ExprRefs must have 1-4 elements, not ${d.length}! Range: ${JSON.stringify(d)}`);g=` uniform ${YC(d.length)} ${s};`}else if(d.length&&d.every(ft)){const Q=VC(d);u.push(`const ${Q.type} ${s} = ${Q};`)}}const p=_C(n);let C;if(rr(n)){const E=id+r;if(n==r&&u.push(`uniform sampler2D ${E};`),Ke(t.type))C=`getInterpolatedColor(${E}, transformed)`;else if(pr(t.type)||ci(t.type))C=`getDiscreteColor(${E}, int(transformed))`;else throw new Error("Problem with color scale!")}else if(t.type==="ordinal"||ci(t.type)){const E=id+r;n==r&&u.push(`uniform sampler2D ${E};`),C=`getDiscreteColor(${E}, int(transformed)).r`}const w=[],b=Ke(t.type)&&l>2,y=ci(t.type)||b;if(w.push("int slot = 0;"),y){const E=i;w.push(b?`while (slot < ${E}.length() - 2 && value >= ${E}[slot + 1]) { slot++; }`:`while (slot < ${E}.length() && value >= ${E}[slot]) { slot++; }`)}const x=Ke(t.type)||ci(t.type)||["band","point"].includes(t.type);if(A){const E=i;x&&(o?w.push(`vec3 domain = ${E};`):w.push(`vec2 domain = vec2(${E}[slot], ${E}[slot + 1]);`)),w.push(`float transformed = ${A};`),b&&w.push(`transformed = (float(slot) + transformed) / (float(${E}.length() - 1));`)}else w.push("float transformed = float(slot);");"clamp"in t&&t.clamp()&&w.push(`transformed = clampToRange(transformed, ${VC(d)});`),w.push(`return ${C??"transformed"};`),u.push(`
|
|
468
|
+
${p} ${UC}${n}(${a} value) {
|
|
469
|
+
${w.map(E=>` ${E}
|
|
410
470
|
`).join("")}
|
|
411
|
-
}`);const
|
|
412
|
-
`);if(
|
|
413
|
-
${
|
|
471
|
+
}`);const B=u.join(`
|
|
472
|
+
`);if(x&&n==r){const E=Ke(t.type)||ci(t.type)?l:2;c=o?` highp vec3 ${i};`:` mediump float ${i}[${E}];`}return{glsl:B,domainUniformName:i,domainUniform:c,rangeUniformName:s,rangeUniform:g}}function cF(n,t){const e=_C(n),r=[],i=[];for(let s=0;s<t.length;s++){const o=t[s],a=za(n,s),{param:l,empty:c}=o.predicate;r.push(l?`${Ga}${l}(${!!c})`:null),i.push(o.scaleChannel?`return ${UC}${n}(${a}());`:`return ${a}();`)}return`${e} ${nF}${n}() {
|
|
473
|
+
${gF(r,i)}
|
|
414
474
|
}
|
|
415
475
|
|
|
416
|
-
#define ${n}_DEFINED`}function
|
|
417
|
-
${
|
|
476
|
+
#define ${n}_DEFINED`}function HC(n){if(!ft(n))throw new Error(`Not a number: ${n}`);if(n==1/0)return""+GC;if(n==-1/0)return""+-GC;{let t=`${n}`;return/^(-)?\d+$/.test(t)&&(t+=".0"),t}}function li(n){typeof n=="number"&&(n=[n]);const t=n.length;if(t<1||t>4)throw new Error("Invalid number of components: "+t);const e=YC(t),r=`${e}(${n.map(HC).join(", ")})`;return Object.assign(r,{type:e,numComponents:t})}function YC(n){switch(n){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4";default:throw new Error("Invalid number of components: "+n)}}function _C(n){return rr(n)?"vec3":n=="uniqueId"?"uint":"float"}function lF(n){return li(rd(n))}function VC(n){return li([n[0],Gl(n)])}function uF(n,...t){const e=[];for(const r of t)ft(r)?e.push(HC(r)):Xe(r)?e.push(li(r)):e.push(r);return`${n}(${e.join(", ")})`}function gs(n,t){var o;const e=n&&pr(n.type),r=n&&JC(n.type),i=r&&fF(n.domain()),s=i?{attributeType:"uvec2",arrayConstructor:Uint32Array}:r?{attributeType:"uint",arrayConstructor:Uint32Array}:e?{attributeType:"uint",arrayConstructor:Uint16Array}:t=="uniqueId"?{attributeType:"uint",arrayConstructor:Uint32Array}:{attributeType:"float",arrayConstructor:Float32Array};return Object.assign(s,{numComponents:+(((o=s.attributeType.match(/^vec([234])$/))==null?void 0:o[1])??1),discrete:e,hp:r,largeHp:i})}function JC(n){return n=="index"||n=="locus"}function fF(n){return n[1]>2**32}const sd=2**12;function qC(n,t=[]){const e=n%sd,r=(n-e)/sd;return t[0]=r,t[1]=e,t}function AF(n){const t=n%sd;return[n-t,t]}function hF(n){return[...AF(n[0]),n[1]-n[0]]}function KC(n){const t=new Sn([],JSON.stringify);for(const[e,r]of Object.entries(n)){const i=r.channelDef;if(nr(i)){const o=[i.field,r.scale?(Ke(r.scale.type)||ci(r.scale.type))??!1:!1];t.set(o,[...t.get(o)??[],e])}}return t}function ps(n){return Z8+tt(n).toSorted().join("_")}function dF(n){return n[0].toUpperCase()+n.slice(1)}const jC=(n,t)=>Tu(n.type)||Ke(n.type)&&rr(t)?[0,1]:n.range?n.range():void 0;function gF(n,t){if(n.length!=t.length)throw new Error("Unequal array lengths");const e=n.length;if(e==0)return"";if(e==1&&n[0]==null)return t[0];const r=[];for(let i=0;i<e;i++){const s=n[i],o=i==0?`if (${s})`:s==null&&i==e-1?"else":`else if (${s})`;r.push(` ${o} {
|
|
477
|
+
${t[i]}
|
|
418
478
|
}`)}return r.join(`
|
|
419
|
-
`)}function
|
|
479
|
+
`)}function pF(){let n=0,t,e=0;const r=new Map,i=s=>(s===t||(e=r.get(s),e===void 0&&(e=n++,r.set(s,e)),t=s),e);return i.addAll=s=>{for(const o of s)i(o)},i.invert=s=>{for(const o of r.entries())if(o[1]==s)return o[0]},i.domain=()=>[...r.keys()],i}class Ha{constructor({encoders:t,numVertices:e=void 0,attributes:r=[]}){this.encoders=t,this.variableEncoders=Object.fromEntries(Object.entries(t).filter(([s,o])=>r.includes(s)&&o&&!o.constant));const i=[...KC(t).entries()].filter(([s,o])=>s[1]&&o.length>1).map(([s,o])=>o);this.allocatedVertices=e,this.variableBuilder=new Ak(e);for(const[s,o]of Object.entries(this.variableEncoders)){const a=o.dataAccessor;if(!a)continue;const l=i.find(b=>b.find(y=>y==s));if(l&&s!=l[0])continue;const c=a.asNumberAccessor(),u=o.scale,{largeHp:f,arrayConstructor:h,discrete:A,numComponents:d}=gs(u,s),g=[0,0];let p;u&&A&&"domain"in u&&(p=pF(),p.addAll(u.domain()));const C=p?b=>p(a(b)):f?b=>qC(c(b),g):c,w=ps(l??s);this.variableBuilder.addConverter(w,{f:C,numComponents:d,arrayReference:f?g:void 0,targetArrayType:h})}this.lastOffset=0,this.rangeMap=new Sn([],JSON.stringify)}registerBatch(t){var s;const e=this.lastOffset,r=this.variableBuilder.vertexCount,i=r-e;i&&this.rangeMap.set(t,{offset:e,count:i,xIndex:(s=this.xIndexer)==null?void 0:s.getIndex()}),this.lastOffset=r}addBatches(t){for(const[e,r]of t)this.addBatch(e,r)}addBatch(t,e,r=0,i=e.length){this.prepareXIndexer(e,r,i);for(let s=r;s<i;s++){const o=e[s];this.variableBuilder.pushFromDatum(o),this.addToXIndex(o)}this.registerBatch(t)}prepareXIndexer(t,e=0,r=e+t.length){var c;const i=()=>{this.addToXIndex=u=>{},this.xIndexer=void 0},s=(c=this.encoders.x)==null?void 0:c.channelDef;if(!("buildIndex"in s)||!s.buildIndex||!t.length||r-e<0){i();return}const o=u=>{var f;return u&&Ke((f=u.scale)==null?void 0:f.type)&&u},a=o(this.variableEncoders.x),l=o(this.variableEncoders.x2);if(a&&!a.constant&&(!l||!l.constant)){const u=a.dataAccessor.asNumberAccessor(),f=l?l.dataAccessor.asNumberAccessor():u,h=[u(t[e]),f(t[r-1])];if(h[1]>h[0]){this.xIndexer=dk(50,h,u,f);let A=this.variableBuilder.vertexCount;this.addToXIndex=d=>{let g=this.variableBuilder.vertexCount;this.xIndexer(d,A,g),A=g}}else i()}else i()}addToXIndex(t){}toArrays(){return{arrays:this.variableBuilder.arrays,vertexCount:this.variableBuilder.vertexCount,allocatedVertices:this.allocatedVertices,rangeMap:this.rangeMap}}}class mF extends Ha{constructor({encoders:t,attributes:e,numItems:r}){super({encoders:t,attributes:e,numVertices:r*6}),this.variableBuilder.configure();const i=this.variableBuilder.pushAll;this.pushAllSixTimes=r>500?new Function("pushAll",`return function unrolledPushAllSixTimes() {
|
|
420
480
|
pushAll(); pushAll(); pushAll(); pushAll(); pushAll(); pushAll();
|
|
421
|
-
};`)(i):function(){i(),i(),i(),i(),i(),i()}}addBatch(e,
|
|
422
|
-
uniform View{mediump vec2 uViewOffset;mediump vec2 uViewScale;mediump vec2 uViewportSize;lowp float uDevicePixelRatio;lowp float uViewOpacity;bool uPickingEnabled;};/***Maps a coordinate on the unit scale to a normalized device coordinate.*(0,0)is at the bottom left corner.*/vec4 unitToNdc(vec2 coord){return vec4((coord*uViewScale+uViewOffset)*2.0-1.0,0.0,1.0);}vec4 unitToNdc(float x,float y){return unitToNdc(vec2(x,y));}vec4 pixelsToNdc(vec2 coord){return unitToNdc(coord/uViewportSize);}vec4 pixelsToNdc(float x,float y){return pixelsToNdc(vec2(x,y));}float linearstep(float edge0,float edge1,float x){return clamp((x-edge0)/(edge1-edge0),0.0,1.0);}bool isEmptyBinarySearchTexture(highp usampler2D s){return textureSize(s,0).x==1&&texelFetch(s,ivec2(0,0),0).r==0u;}bool binarySearchTexture(highp usampler2D s,uint value){int texSize=textureSize(s,0).x;if(texSize==1&&texelFetch(s,ivec2(0,0),0).r==0u){return false;}int left=0;int right=texSize-1;while(left<=right){int mid=left+(right-left)/2;uint midValue=texelFetch(s,ivec2(mid,0),0).r;if(midValue==value){return true;}if(midValue<value){left=mid+1;}else{right=mid-1;}}return false;}/***Calculates a gamma for antialiasing opacity based on the color.*/float getGammaForColor(vec3 rgb){return mix(1.25,0.75,smoothstep(0.0,1.0,dot(rgb,vec3(0.299,0.587,0.114))));}/***Specialized linearstep for doing antialiasing*/float distanceToRatio(float d){return clamp(d*uDevicePixelRatio+0.5,0.0,1.0);}vec4 distanceToColor(float d,vec4 fill,vec4 stroke,vec4 background,float halfStrokeWidth){if(halfStrokeWidth>0.0){float sd=abs(d)-halfStrokeWidth;return mix(stroke,d<=0.0 ? fill : background,distanceToRatio(sd));}else{return mix(background,fill,distanceToRatio(-d));}}`,
|
|
481
|
+
};`)(i):function(){i(),i(),i(),i(),i(),i()}}addBatch(t,e,r=0,i=e.length){if(!(i<=r)){this.prepareXIndexer(e,r,i);for(let s=r;s<i;s++){const o=e[s];this.variableBuilder.updateFromDatum(o),this.pushAllSixTimes(),this.addToXIndex(o)}this.registerBatch(t)}}}class CF extends Ha{constructor({encoders:t,attributes:e,tessellationThreshold:r=1/0,visibleRange:i=[-1/0,1/0],numItems:s}){super({encoders:t,attributes:e,numVertices:r==1/0?s*6:void 0}),this.visibleRange=i,this.tessellationThreshold=r||1/0,this.updateSide=this.variableBuilder.createUpdater("side",1),this.updatePos=this.variableBuilder.createUpdater("pos",1),this.variableBuilder.configure()}addBatch(t,e,r=0,i=e.length){this.prepareXIndexer(e,r,i);for(let s=r;s<i;s++){const o=e[s];this.variableBuilder.updateFromDatum(o),this.updateSide(-.5),this.updatePos(0),this.variableBuilder.pushAll();const a=1;for(let l=0;l<=a;l++)this.updatePos(l/a),this.updateSide(-.5),this.variableBuilder.pushAll(),this.updateSide(.5),this.variableBuilder.pushAll();this.variableBuilder.pushAll(),this.addToXIndex(o)}this.registerBatch(t)}}class yF extends Ha{constructor({encoders:t,attributes:e,numItems:r=void 0}){super({encoders:t,attributes:e,numVertices:r}),this.variableBuilder.configure()}}class wF extends Ha{constructor({encoders:t,attributes:e,numItems:r=void 0}){super({encoders:t,attributes:e,numVertices:r}),this.variableBuilder.configure()}toArrays(){const t=this.variableBuilder.arrays;for(let e of Object.values(t))e.divisor=1;return super.toArrays()}}class IF extends Ha{constructor({encoders:t,attributes:e,fontMetrics:r,properties:i,numCharacters:s=void 0}){super({encoders:t,attributes:e,numVertices:s*6}),this.metadata=r,this.metrics=r,this.properties=i;const a=t.text.channelDef;this.numberFormat=!Nt(a)&&"format"in a&&a.format?Ze(a.format):l=>l,this.updateVertexCoord=this.variableBuilder.createUpdater("vertexCoord",2),this.updateTextureCoord=this.variableBuilder.createUpdater("textureCoord",2),this.updateWidth=this.variableBuilder.createUpdater("width",1),this.variableBuilder.configure()}addBatch(t,e,r=0,i=e.length){const s=this.properties.align||"left",o=this.properties.logoLetters??!1,a=this.metadata.common.base,l=this.metadata.common.scaleH;let c=-cs;switch(this.properties.baseline){case"top":c+=this.metrics.capHeight;break;case"middle":c+=this.metrics.capHeight/2;break;case"bottom":c-=this.metrics.descent;break}const u=this.encoders.text,f=[0,0];this.updateVertexCoord(f);const h=[0,0];this.updateTextureCoord(h),this.prepareXIndexer(e,r,i);for(let A=r;A<i;A++){const d=e[A],g=this.numberFormat(u(d)),p=Ce(g)?g:g===null?"":""+g;if(p.length==0)continue;this.variableBuilder.updateFromDatum(d);const C=o?p.length:this.metrics.measureWidth(p);this.updateWidth(C);let w=s=="right"?-C:s=="center"?-C/2:0;if(!o){const B=this.metrics.getCharByCode(p.charCodeAt(0));w-=(B.width-B.xadvance)/a/2}let b=-.5,y=1,x=1;for(let B=0;B<p.length;B++){const E=this.metrics.getCharByCode(p.charCodeAt(B)),Q=o?1:E.xadvance/a;if(E.id==32){w+=Q;continue}o?(x=(E.width+cs*2)/E.width,w=-x/2,y=(E.height+cs*2)/E.height,b=-.5-cs/E.height):(y=E.height/a,b=-(E.height+E.yoffset+c)/a,x=E.width/a);const k=E.x,S=E.y;f[0]=w,f[1]=b+y,h[0]=k/l,h[1]=S/l,this.variableBuilder.pushAll(),f[0]=w+x,f[1]=b+y,h[0]=(k+E.width)/l,h[1]=S/l,this.variableBuilder.pushAll(),f[0]=w,f[1]=b,h[0]=k/l,h[1]=(S+E.height)/l,this.variableBuilder.pushAll(),f[0]=w+x,f[1]=b+y,h[0]=(k+E.width)/l,h[1]=S/l,this.variableBuilder.pushAll(),f[0]=w,f[1]=b,h[0]=k/l,h[1]=(S+E.height)/l,this.variableBuilder.pushAll(),f[0]=w+x,f[1]=b,h[0]=(k+E.width)/l,h[1]=(S+E.height)/l,this.variableBuilder.pushAll(),w+=Q}this.addToXIndex(d)}this.registerBatch(t)}}const WC=`#define PI 3.141593
|
|
482
|
+
uniform View{mediump vec2 uViewOffset;mediump vec2 uViewScale;mediump vec2 uViewportSize;lowp float uDevicePixelRatio;lowp float uViewOpacity;bool uPickingEnabled;};/***Maps a coordinate on the unit scale to a normalized device coordinate.*(0,0)is at the bottom left corner.*/vec4 unitToNdc(vec2 coord){return vec4((coord*uViewScale+uViewOffset)*2.0-1.0,0.0,1.0);}vec4 unitToNdc(float x,float y){return unitToNdc(vec2(x,y));}vec4 pixelsToNdc(vec2 coord){return unitToNdc(coord/uViewportSize);}vec4 pixelsToNdc(float x,float y){return pixelsToNdc(vec2(x,y));}float linearstep(float edge0,float edge1,float x){return clamp((x-edge0)/(edge1-edge0),0.0,1.0);}bool isEmptyBinarySearchTexture(highp usampler2D s){return textureSize(s,0).x==1&&texelFetch(s,ivec2(0,0),0).r==0u;}bool binarySearchTexture(highp usampler2D s,uint value){int texSize=textureSize(s,0).x;if(texSize==1&&texelFetch(s,ivec2(0,0),0).r==0u){return false;}int left=0;int right=texSize-1;while(left<=right){int mid=left+(right-left)/2;uint midValue=texelFetch(s,ivec2(mid,0),0).r;if(midValue==value){return true;}if(midValue<value){left=mid+1;}else{right=mid-1;}}return false;}/***Calculates a gamma for antialiasing opacity based on the color.*/float getGammaForColor(vec3 rgb){return mix(1.25,0.75,smoothstep(0.0,1.0,dot(rgb,vec3(0.299,0.587,0.114))));}/***Specialized linearstep for doing antialiasing*/float distanceToRatio(float d){return clamp(d*uDevicePixelRatio+0.5,0.0,1.0);}vec4 distanceToColor(float d,vec4 fill,vec4 stroke,vec4 background,float halfStrokeWidth){if(halfStrokeWidth>0.0){float sd=abs(d)-halfStrokeWidth;return mix(stroke,d<=0.0 ? fill : background,distanceToRatio(sd));}else{return mix(background,fill,distanceToRatio(-d));}}`,EF="uniform highp float uZero;vec3 getDiscreteColor(sampler2D s,int index){return texelFetch(s,ivec2(index % textureSize(s,0).x,0),0).rgb;}vec3 getInterpolatedColor(sampler2D s,float unitValue){return texture(s,vec2(unitValue,0.0)).rgb;}float clampToRange(float value,vec2 range){return clamp(value,min(range[0],range[1]),max(range[0],range[1]));}float scaleIdentity(float value){return value;}float scaleIdentity(uint value){return float(value);}float scaleLinear(float value,vec2 domain,vec2 range){float domainSpan=domain[1]-domain[0];float rangeSpan=range[1]-range[0];return(value-domain[0])/domainSpan*rangeSpan+range[0];}float scaleLog(float value,vec2 domain,vec2 range,float base){return scaleLinear(log(value)/log(base),log(domain)/log(base),range);}float symlog(float value,float constant){return sign(value)*log(abs(value/constant)+1.0);}float scaleSymlog(float value,vec2 domain,vec2 range,float constant){return scaleLinear(symlog(value,constant),vec2(symlog(domain[0],constant),symlog(domain[1],constant)),range);}float scalePow(float value,vec2 domain,vec2 range,float exponent){return scaleLinear(pow(abs(value),exponent)*sign(value),pow(abs(domain),vec2(exponent))*sign(domain),range);}float scaleBand(uint value,vec2 domainExtent,vec2 range,float paddingInner,float paddingOuter,float align,float band){float start=range[0];float stop=range[1];float rangeSpan=stop-start;float n=domainExtent[1]-domainExtent[0];paddingInner=int(n)>1 ? paddingInner : 0.0;float step=rangeSpan/max(1.0,n-paddingInner+paddingOuter*2.0);start+=(rangeSpan-step*(n-paddingInner))*align;float bandwidth=step*(1.0-paddingInner);return start+(float(value)-domainExtent[0])*step+bandwidth*band;}const int lowBits=12;const float lowDivisor=pow(2.0,float(lowBits));const uint lowMask=uint(lowDivisor-1.0);vec2 splitUint(uint value){uint valueLo=value&lowMask;uint valueHi=value-valueLo;return vec2(float(valueHi),float(valueLo));}/***High precision variant of scaleBand for index/locus scales*/float scaleBandHp(uint value,vec3 domainExtent,vec2 range,float paddingInner,float paddingOuter,float align,float band){float start=range[0];float stop=range[1];float rangeSpan=stop-start;vec2 domainStart=domainExtent.xy;float n=domainExtent[2];float step=rangeSpan/max(1.0,n-paddingInner+paddingOuter*2.0);start+=(rangeSpan-step*(n-paddingInner))*align;float bandwidth=step*(1.0-paddingInner);vec2 splitValue=splitUint(value);float inf=1.0/uZero;float hi=max(splitValue[0]-domainStart[0],-inf);float lo=max(splitValue[1]-domainStart[1],-inf);return dot(vec4(start,hi,lo,bandwidth),vec4(1.0,step,step,band));}/***High precision variant of scaleBand for index/locus scales for large*domains where 32bit uints are not sufficient to represent the domain.*/float scaleBandHp(uvec2 value,vec3 domainExtent,vec2 range,float paddingInner,float paddingOuter,float align,float band){float start=range[0];float stop=range[1];float rangeSpan=stop-start;vec2 domainStart=domainExtent.xy;float n=domainExtent[2];float step=rangeSpan/max(1.0,n-paddingInner+paddingOuter*2.0);start+=(rangeSpan-step*(n-paddingInner))*align;float bandwidth=step*(1.0-paddingInner);vec2 splitValue=vec2(float(value[0])*lowDivisor,float(value[1]));float inf=1.0/uZero;float hi=max(splitValue[0]-domainStart[0],-inf);float lo=max(splitValue[1]-domainStart[1],-inf);return dot(vec4(start,hi,lo,bandwidth),vec4(1.0,step,step,band));}",bF=`/***Describes where a sample facet should be shown. Interpolating between the*current and target positions/heights allows for transitioning between facet*configurations.*/struct SampleFacetPosition{float pos;float height;float targetPos;float targetHeight;};/***Trasition fraction[0,1]between the current and target configurations.*/uniform float uTransitionOffset;
|
|
423
483
|
#if !defined(SAMPLE_FACET_UNIFORM) && !defined(SAMPLE_FACET_TEXTURE)
|
|
424
484
|
SampleFacetPosition getSampleFacetPos(){return SampleFacetPosition(0.0,1.0,0.0,1.0);}
|
|
425
485
|
#elif defined(SAMPLE_FACET_UNIFORM)
|
|
@@ -427,37 +487,37 @@ SampleFacetPosition getSampleFacetPos(){return SampleFacetPosition(0.0,1.0,0.0,1
|
|
|
427
487
|
#elif defined(SAMPLE_FACET_TEXTURE)
|
|
428
488
|
uniform sampler2D uSampleFacetTexture;SampleFacetPosition getSampleFacetPos(){vec4 texel=texelFetch(uSampleFacetTexture,ivec2(int(attr_facetIndex),0),0);return SampleFacetPosition(1.0-texel.r-texel.g,texel.g,1.0-texel.r-texel.g,texel.g);}
|
|
429
489
|
#endif
|
|
430
|
-
bool isFacetedSamples(SampleFacetPosition facetPos){return facetPos!=SampleFacetPosition(0.0,1.0,0.0,1.0);}bool isFacetedSamples(){return isFacetedSamples(getSampleFacetPos());}bool isInTransit(){return uTransitionOffset>0.0;}float getTransitionFraction(float xPos){return smoothstep(0.0,0.7+uTransitionOffset,(xPos-uTransitionOffset)*2.0);}vec2 applySampleFacet(vec2 pos){SampleFacetPosition facetPos=getSampleFacetPos();if(!isFacetedSamples(facetPos)){return pos;}else if(isInTransit()){vec2 interpolated=mix(vec2(facetPos.pos,facetPos.height),vec2(facetPos.targetPos,facetPos.targetHeight),getTransitionFraction(pos.x));return vec2(pos.x,interpolated[0]+pos.y*interpolated[1]);}else{return vec2(pos.x,facetPos.pos+pos.y*facetPos.height);}}float getSampleFacetHeight(vec2 pos){SampleFacetPosition facetPos=getSampleFacetPos();if(!isFacetedSamples(facetPos)){return 1.0;}else if(isInTransit()){return mix(facetPos.height,facetPos.targetHeight,getTransitionFraction(pos.x));}else{return facetPos.height;}}`,
|
|
490
|
+
bool isFacetedSamples(SampleFacetPosition facetPos){return facetPos!=SampleFacetPosition(0.0,1.0,0.0,1.0);}bool isFacetedSamples(){return isFacetedSamples(getSampleFacetPos());}bool isInTransit(){return uTransitionOffset>0.0;}float getTransitionFraction(float xPos){return smoothstep(0.0,0.7+uTransitionOffset,(xPos-uTransitionOffset)*2.0);}vec2 applySampleFacet(vec2 pos){SampleFacetPosition facetPos=getSampleFacetPos();if(!isFacetedSamples(facetPos)){return pos;}else if(isInTransit()){vec2 interpolated=mix(vec2(facetPos.pos,facetPos.height),vec2(facetPos.targetPos,facetPos.targetHeight),getTransitionFraction(pos.x));return vec2(pos.x,interpolated[0]+pos.y*interpolated[1]);}else{return vec2(pos.x,facetPos.pos+pos.y*facetPos.height);}}float getSampleFacetHeight(vec2 pos){SampleFacetPosition facetPos=getSampleFacetPos();if(!isFacetedSamples(facetPos)){return 1.0;}else if(isInTransit()){return mix(facetPos.height,facetPos.targetHeight,getTransitionFraction(pos.x));}else{return facetPos.height;}}`,xF=`/**Based on concepts presented at:*https:*https:*/out highp vec4 vPickingColor;/***Passes the unique id to the fragment shader as a color if picking is enabled.*Returns true if picking is enabled.*/bool setupPicking(){if(uPickingEnabled){
|
|
431
491
|
#ifdef uniqueId_DEFINED
|
|
432
492
|
uint id=attr_uniqueId;vPickingColor=vec4(ivec4(id>>0,id>>8,id>>16,id>>24)&0xFF)/float(0xFF);
|
|
433
493
|
#else
|
|
434
494
|
vPickingColor=vec4(1.0);
|
|
435
495
|
#endif
|
|
436
|
-
return true;}return false;}`,
|
|
437
|
-
return ${
|
|
438
|
-
}`)}}else if(
|
|
439
|
-
uniform highp usampler2D ${
|
|
440
|
-
return binarySearchTexture(${U}, ${
|
|
441
|
-
}`),
|
|
442
|
-
return ${
|
|
443
|
-
}`)}}const
|
|
444
|
-
`+(this.encoders.uniqueId&&
|
|
445
|
-
}`);const
|
|
446
|
-
precision highp int;`,
|
|
447
|
-
`));r=r.map(
|
|
448
|
-
`),...c,Q5,W5,e],A=[g,a,...r,D1,q5,t],w=this.gl;this.programStatus=d5(w,this.glHelper.compileShader(w.VERTEX_SHADER,x),this.glHelper.compileShader(w.FRAGMENT_SHADER,A))}finalizeGraphicsInitialization(){const e=this.programStatus.getProgramErrors();if(e){e.detail&&console.warn(e.detail);const t=new Error("Cannot create shader program: "+e.message);throw t.view=this.unitView,t}this.programInfo=pC(this.gl,this.programStatus.program),delete this.programStatus,this.viewUniformInfo=qp(this.gl,this.programInfo,"View"),this.markUniformInfo=qp(this.gl,this.programInfo,"Mark"),this.gl.useProgram(this.programInfo.program),Ar(this.programInfo,{uSampleFacet:[0,1,0,1],uTransitionOffset:0,uZero:0});for(const t of E(this,Pt))t();G(this,Pt,void 0)}createMarkUniformSetter(e){const t=this.markUniformInfo.setters[e];if(!t)throw new Error(`Uniform "${e}" not found int the Mark block!`);return r=>{t(r),this.markUniformsAltered=!0,this.unitView.context.animator.requestRender()}}registerMarkUniformValue(e,t,r=i=>i){const i=this.createMarkUniformSetter(e),s=o=>{if(o==null)throw new Error(`Trying to set null/undefined value for uniform: ${e}${Qe(t)?`Expr: ${t.expr}`:""}`);i(o)};if(Qe(t)){const o=this.unitView.paramMediator.createExpression(t.expr),a=()=>s(r(o(null)));o.addListener(a),E(this,ns).push({expr:o,listener:a}),a()}else s(r(t))}deleteGraphicsData(){const e=this.glHelper;if(!e){this.vertexArrayInfo=void 0,this.bufferInfo=void 0;return}const t=e.gl;if(this.vertexArrayInfo&&(this.gl.bindVertexArray(null),t.deleteVertexArray(this.vertexArrayInfo.vertexArrayObject),this.vertexArrayInfo=void 0),this.bufferInfo){for(let r=0;r<8;r++)t.disableVertexAttribArray(r);Object.values(this.bufferInfo.attribs).forEach(r=>this.gl.deleteBuffer(r.buffer)),this.bufferInfo.indices&&this.gl.deleteBuffer(this.bufferInfo.indices),this.bufferInfo=void 0}}dispose(){for(const{expr:e,listener:t}of E(this,ns))e.removeListener(t);E(this,ns).length=0,this.deleteGraphicsData()}updateBufferInfo(e){if(this.gl.bindVertexArray(null),this.bufferInfo&&e.vertexCount<=this.bufferInfo.allocatedVertices)for(const[t,r]of Object.entries(e.arrays))r.data&&I3(this.gl,this.bufferInfo.attribs[t],r.data,0);else{this.deleteGraphicsData(),this.bufferInfo=k3(this.gl,e.arrays,{numElements:e.vertexCount}),this.bufferInfo.allocatedVertices=e.allocatedVertices;for(const[t,r]of Object.entries(e.arrays))this.bytesPerElement.set(t,r.data.BYTES_PER_ELEMENT)}}get glHelper(){return this.getContext().glHelper}get gl(){return this.glHelper.gl}onBeforeSampleAnimation(){}onAfterSampleAnimation(){}isReady(){return this.bufferInfo&&this.programInfo}isPickingParticipant(){if(this.properties.tooltip===null&&!this.unitView.paramMediator.hasPointSelections())return!1;for(const e of this.unitView.getLayoutAncestors())if(!e.isPickingSupported())return!1;return!0}bindOrSetMarkUniformBlock(){this.markUniformsAltered?(Xp(this.gl,this.programInfo,this.markUniformInfo),this.markUniformsAltered=!1):Yp(this.gl,this.programInfo,this.markUniformInfo)}prepareRender(e){const t=this.glHelper,r=this.gl,i=[];i.push(()=>{this.vertexArrayInfo||(this.vertexArrayInfo=MC(this.gl,this.programInfo,this.bufferInfo)),r.useProgram(this.programInfo.program)});for(const[o,a]of Object.entries(this.encoders)){const c=t.rangeTextures.get(a.scale);c&&i.push(()=>Ar(this.programInfo,{[eh+o]:c}))}i.push(...this.selectionTextureOps),this.getSampleFacetMode()==B1&&i.push(()=>{let o;for(const a of this.unitView.getLayoutAncestors())if(o=a.getSampleFacetTexture(),o)break;if(!o)throw new Error("No facet texture available. This is bug.");Ar(this.programInfo,{uSampleFacetTexture:o})});const s=(e.picking??!1)&&this.isPickingParticipant();return i.push(()=>ao(this.viewUniformInfo,{uViewOpacity:this.unitView.getEffectiveOpacity(),uPickingEnabled:s})),this.opaque||e.picking?i.push(()=>r.disable(r.BLEND)):i.push(()=>r.enable(r.BLEND)),i}prepareSampleFacetRendering(e){const t=e.sampleFacetRenderingOptions,r=this.programInfo.uniformSetters.uSampleFacet;if(t&&r){const i=t.locSize?t.locSize.location:0,s=t.locSize?t.locSize.size:1;if(i>1||i+s<0)return!1;const o=t.targetLocSize?t.targetLocSize.location:i,a=t.targetLocSize?t.targetLocSize.size:s;this.gl.uniform4f(r.location,i,s,o,a)}return!0}render(e){}createRenderCallback(e,t){var f;if(!this.bufferInfo)return()=>{};const r=this;let i;const s=(f=this.unitView.getScaleResolution("x"))==null?void 0:f.scale,o=s&&Oe(s.type),a=["index","locus"].includes(s==null?void 0:s.type)?-1:0,c=[0,0];i=d=>{if(o&&d.xIndex){const h=s.domain(),p=d.xIndex(h[0]+a,h[1],c),m=p[0],g=p[1]-m;g>0&&e(m,g)}else e(d.offset,d.count)};const u=this.rangeMap.get(void 0).count==0?t.facetId:void 0,l=this.rangeMap.get(u);return t.sampleFacetRenderingOptions?function(){l.count&&r.prepareSampleFacetRendering(t)&&i(l)}:function(){l.count&&i(l)}}setViewport(e,t,r,i){r=r.flatten();const s=this.gl,o=this.properties,a=.5,c=(o.xOffset??0)+a,u=(o.yOffset??0)+a;let l,f=r;if(o.clip!=="never"&&(o.clip||i)){let d=0,h=0,p;if(i){if(f=r.intersect(i).flatten(),!f.isDefined())return!1;p=[r.width/f.width,r.height/f.height],h=Math.max(0,r.y2-i.y2),d=Math.min(0,r.x-i.x)}else p=[1,1];const m=[f.x,e.height-f.y2,f.width,f.height].map(A=>A*t),g=m.map(A=>Math.floor(A)),y=m[0]-g[0],x=m[1]-g[1];s.viewport(...g),s.scissor(...g),s.enable(s.SCISSOR_TEST),l={uViewOffset:[(c+d+y/t)/f.width,-(u+h-x/t)/f.height],uViewScale:p}}else{if(!r.isDefined())return!1;s.viewport(0,0,e.width*t,e.height*t),s.disable(s.SCISSOR_TEST),l={uViewOffset:[(r.x+c)/e.width,(e.height-r.y-u-r.height)/e.height],uViewScale:[r.width/e.width,r.height/e.height]}}return ao(this.viewUniformInfo,{...l,uViewportSize:[r.width,r.height],uDevicePixelRatio:t}),Xp(this.gl,this.programInfo,this.viewUniformInfo),!0}findDatumAt(e,t){}}Pt=new WeakMap,ns=new WeakMap;class Z5 extends tn{constructor(){super([],JSON.stringify)}get(e){let t=super.get(e);return t===void 0&&(t={offset:0,count:0,xIndex:void 0},super.set(e,t)),t}migrateEntries(e){for(const[t,r]of this.entries())e.has(t)||(r.offset=0,r.count=0,r.xIndex=void 0);for(const[t,r]of e.entries())Object.assign(this.get(t),r)}}function rh(n,e){const t=lf(e);let r=n[e]&&{...n[e]},i=n[t]&&{...n[t]};if(!(yt(r)||yt(i))){if(r){if(!lt(n[e]))return;if(i){if(r.type!="quantitative"){const s=(1-(r.band||1))/2;r.band=s,i.band=-s}}else if(r.type=="quantitative")i={datum:0,contributesToScaleDomain:!1};else{i={...r};const s=(1-(r.band??1))/2;r.band=0+s,i.band=1-s}}else r={value:0},i={value:1};n[e]=r,n[t]=i}}function eu(n,e){const t=Vm(n);t&&(t.resolutionChannel=e)}function F1(n,e){n.stroke||(e?n.stroke={value:null}:(n.stroke=structuredClone(n.color),eu(n.stroke,"color"))),yt(n.stroke)&&n.stroke.value===null&&(n.strokeWidth={value:0}),n.strokeOpacity||(n.strokeOpacity=structuredClone(n.opacity),eu(n.strokeOpacity,"opacity"))}function P1(n,e){yt(n.fill)&&n.fill.value===null?n.fillOpacity={value:0}:n.fill||(n.fill=structuredClone(n.color),eu(n.fill,"color"),!e&&!n.fillOpacity&&(n.fillOpacity={value:0})),n.fillOpacity||(e?(n.fillOpacity=structuredClone(n.opacity),eu(n.fillOpacity,"opacity")):n.fillOpacity={value:0})}const K5=["none","diagonal","antiDiagonal","cross","vertical","horizontal","grid","dots","rings","ringsLarge"];class J5 extends No{constructor(t){super(t);R(this,Jn);this.augmentDefaultProperties({x2:void 0,y2:void 0,filled:!0,color:"#4c78a8",opacity:1,strokeWidth:3,cornerRadius:0,minWidth:.5,minHeight:.5,minOpacity:1})}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","fill","stroke","fillOpacity","strokeOpacity","strokeWidth"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","fill","stroke","fillOpacity","strokeOpacity","strokeWidth"]}get opaque(){return Jc(this,"opaque",()=>!O(this,Jn,ad).call(this)&&!O(this,Jn,cd).call(this)&&!this.properties.shadowOpacity&&yt(this.encoding.fillOpacity)&&this.encoding.fillOpacity.value==1&&this.properties.minOpacity==1)&&this.unitView.getEffectiveOpacity()==1}fixEncoding(t){return rh(t,"x"),rh(t,"y"),F1(t,this.properties.filled),P1(t,this.properties.filled),delete t.color,delete t.opacity,t}onBeforeSampleAnimation(){}onAfterSampleAnimation(){}async initializeGraphics(){await super.initializeGraphics();const t=[];O(this,Jn,ad).call(this)&&t.push("ROUNDED_CORNERS"),O(this,Jn,cd).call(this)&&t.push("STROKED"),this.properties.shadowOpacity&&t.push("SHADOW"),this.createAndLinkShaders(zC,UC,[GC,...t.map(r=>"#define "+r)])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const t=this.properties;this.registerMarkUniformValue("uMinWidth",t.minWidth),this.registerMarkUniformValue("uMinHeight",t.minHeight),this.registerMarkUniformValue("uMinOpacity",t.minOpacity),this.registerMarkUniformValue("uCornerRadiusTopRight",t.cornerRadiusTopRight??t.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusBottomRight",t.cornerRadiusBottomRight??t.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusTopLeft",t.cornerRadiusTopLeft??t.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusBottomLeft",t.cornerRadiusBottomLeft??t.cornerRadius??0),this.registerMarkUniformValue("uHatchPattern",t.hatch,r=>Math.max(0,K5.indexOf(r??"none"))),this.registerMarkUniformValue("uShadowBlur",t.shadowBlur??0),this.registerMarkUniformValue("uShadowOpacity",t.shadowOpacity??0),this.registerMarkUniformValue("uShadowOffsetX",t.shadowOffsetX??0),this.registerMarkUniformValue("uShadowOffsetY",t.shadowOffsetY??0),this.registerMarkUniformValue("uShadowColor",t.shadowColor??"black",$f)}updateGraphicsData(){const t=this.unitView.getCollector();if(!t){console.debug("No collector");return}const r=t.getItemCount(),i=new U5({encoders:this.encoders,attributes:this.getAttributes(),numItems:r});i.addBatches(t.facetBatches);const s=i.toArrays();this.rangeMap.migrateEntries(s.rangeMap),this.updateBufferInfo(s)}prepareRender(t){const r=super.prepareRender(t);return r.push(()=>this.bindOrSetMarkUniformBlock()),r.push(()=>wr(this.gl,this.programInfo,this.vertexArrayInfo)),r}render(t){const r=this.gl;return this.createRenderCallback((i,s)=>{Ac(r,this.vertexArrayInfo,r.TRIANGLE_STRIP,s,i)},t)}findDatumAt(t,r){t=He(t);const i=this.unitView.getCollector().facetBatches.get(t);if(!i)return;const s=this.encoders,o=s.x.scale.type;if(jn(o)){const a=s.x.dataAccessor;return i.find(c=>r==a(c))}else{const a=s.x.dataAccessor,c=s.x2.dataAccessor;return i.find(u=>r>=a(u)&&r<c(u))}}}Jn=new WeakSet,ad=function(){const t=this.properties;return t.cornerRadius||t.cornerRadiusBottomLeft||t.cornerRadiusBottomRight||t.cornerRadiusTopLeft||t.cornerRadiusTopRight},cd=function(){const t=this.encoding.strokeWidth;return!(yt(t)&&!t.value)||"condition"in t};const $5=`flat out float vRadius;flat out float vRadiusWithPadding;flat out lowp vec4 vFillColor;flat out lowp vec4 vStrokeColor;flat out lowp float vShape;flat out lowp float vHalfStrokeWidth;flat out mat2 vRotationMatrix;const float CIRCLE=0.0;const float SQUARE=1.0;const float CROSS=2.0;const float DIAMOND=3.0;const float TRIANGLE_UP=4.0;const float TRIANGLE_RIGHT=5.0;const float TRIANGLE_DOWN=6.0;const float TRIANGLE_LEFT=7.0;const float TICK_UP=8.0;const float TICK_RIGHT=9.0;const float TICK_DOWN=10.0;const float TICK_LEFT=11.0;float computeSemanticThresholdFactor(){return getScaled_semanticScore()>=uSemanticThreshold ? 1.0 : 0.0;}vec2 getDxDy(){
|
|
496
|
+
return true;}return false;}`,BF="in highp vec4 vPickingColor;",Ou=Symbol("cacheMap");function Uu(n,t,e){let r=Ya(n).get(t);return r===void 0&&(r=e(t),Ya(n).set(t,r)),r}function od(n,t){Ya(n).delete(t)}function Gu(n,t){const e=Ya(n);for(const r of e.keys())r.startsWith(t)&&e.delete(r);Ya(n).delete(t)}function XC(n){n[Ou]=new Map}function Ya(n){return n[Ou]||XC(n),n[Ou]}function ZC(...n){const t={get(e,r,i){for(const s of n){const a=s()[r];if(a!==void 0)return a}},has(e,r,i){for(const s of n){const o=s();if(r in o)return!0}return!1}};return new Proxy({},t)}function vF(n){return Ce(n)||ft(n)||Po(n)}class mr extends Error{constructor(t,e){super(t),this.name="ViewError",this.view=e}}const QF="SAMPLE_FACET_UNIFORM",$C="SAMPLE_FACET_TEXTURE",e2="uSelectionTexture_";class _a{constructor(t){D(this,en,[]);D(this,js,[]);this.unitView=t,this.encoders=void 0,this.bufferInfo=void 0,this.bytesPerElement=new Map,this.programInfo=void 0,this.vertexArrayInfo=void 0,this.viewUniformInfo=void 0,this.markUniformInfo=void 0,this.markUniformsAltered=!0,this.selectionTextureOps=[],this.rangeMap=new SF,this.defaultProperties={get clip(){return["x","y"].map(e=>t.getScaleResolution(e)).some(e=>(e==null?void 0:e.isZoomable())??!1)},xOffset:0,yOffset:0,minBufferSize:0},this.properties=ZC(typeof this.unitView.spec.mark=="object"?()=>this.unitView.spec.mark:()=>({}),()=>this.defaultProperties)}augmentDefaultProperties(t){Object.defineProperties(this.defaultProperties,Object.getOwnPropertyDescriptors(t))}get opaque(){return!1}get defaultHitTestMode(){return"intersects"}getAttributes(){throw new Error("Not implemented!")}getSupportedChannels(){return["sample","facetIndex","x","y","color","opacity","search","uniqueId"]}getDefaultEncoding(){const t={sample:void 0,uniqueId:void 0};return this.isPickingParticipant()&&(t.uniqueId={field:Rt}),t}fixEncoding(t){return t}setupExprRefsNeedingGraphicsUpdate(t){const e=this.getSupportedChannels(),r={};for(const s of t){const o=this.properties[s];if(o&&it(o)){const a=this.unitView.paramMediator.createExpression(o.expr);a.addListener(()=>{this.updateGraphicsData(),this.unitView.context.animator.requestRender()}),e.includes(s)||Object.defineProperty(r,s,{get(){return a()}})}}const i=this.properties;this.properties=ZC(()=>r,()=>i)}get encoding(){return Uu(this,"encoding",()=>{var o;const t=this.getDefaultEncoding(),e=this.unitView.getEncoding(),r=a=>{const l=this.properties[a];return vF(l)||it(l)?{value:l}:void 0},i=Object.fromEntries(this.getSupportedChannels().map(a=>[a,r(a)]).filter(a=>Nt(a[1]))),s=this.fixEncoding({...t,...i,...e});for(const a of Object.keys(s))this.getSupportedChannels().includes(a)||delete s[a];return s.x&&((o=s.x).buildIndex??(o.buildIndex=!0)),s})}getContext(){return this.unitView.context}getType(){return this.unitView.getMarkType()}initializeData(){}initializeEncoders(){this.encoders=cQ(this.unitView,this.encoding)}async initializeGraphics(){}updateGraphicsData(){}getSampleFacetMode(){if(this.encoders.facetIndex)return $C;if(this.unitView.getLayoutAncestors().find(t=>"samples"in t.spec))return QF}createAndLinkShaders(t,e,r=[]){const i=this.getAttributes(),s=this.encoders,o=this.getSampleFacetMode();o&&r.push(`#define ${o}`);const a="// view: "+this.unitView.getPathString();let l=[];const c=new Set,u=KC(s),f=[],h=Object.values(s).flatMap(x=>x.accessors).map(x=>x.predicate).filter(x=>x.param),A=new Map;for(const x of h){const B=x.param,E=this.unitView.paramMediator,Q=E.findValue(B);if(!Q)throw new Error(`Cannot infer selection type as the parameter "${B}" has no value. Please ensure that the parameter is properly defined!`);const k=ps("uniqueId");if(jp(Q)){if(!A.has(B)){A.set(B,"single");const S=Lu+Ia(B);f.push(" // Selection parameter"),f.push(` uniform highp uint ${S};`),m(this,en).push(()=>{this.registerMarkUniformValue(S,{expr:B},T=>T.uniqueId??0)}),l.push(`bool ${Ga}${B}(bool empty) {
|
|
497
|
+
return ${Lu}${B} == ${k} || (empty && ${Lu}${B} == 0u);
|
|
498
|
+
}`)}}else if(OA(Q)){if(!A.has(B)){A.set(B,"multi");const S=e2+Ia(B);l.push(`// Selection texture
|
|
499
|
+
uniform highp usampler2D ${S};`);const T=this.getContext().glHelper,N=T.selectionTextures;this.selectionTextureOps.push(()=>{const J=E.getValue(B),_=N.get(J);if(!_)throw new Error(`Bug: no selection texture found for "${B}"!`);ei(this.programInfo,{[S]:_})});const U=e2+B;l.push(`bool ${Ga}${B}(bool empty) {
|
|
500
|
+
return binarySearchTexture(${U}, ${k}) || (empty && isEmptyBinarySearchTexture(${U}));
|
|
501
|
+
}`),T.createSelectionTexture(Q);const H=E.createExpression(B);H.addListener(()=>{const J=H(null);T.createSelectionTexture(J),this.getContext().animator.requestRender()})}}else if(Kp(Q)&&!A.has(B)){A.set(B,"interval");const S=[],T=[];for(const N of Object.keys(Q.intervals)){if(!["x","y"].includes(N))continue;const U=Lu+Ia(B)+`_${N}`,{attributeType:H}=gs(this.unitView.getScaleResolution(N).getScale(),N);f.push(" // Selection parameter"),f.push(` uniform highp ${H}[2] ${U};`),m(this,en).push(()=>{this.registerMarkUniformValue(U,{expr:B},ge=>ge.intervals[N]??[1,0])});const J=ge=>{for(const[Fe,Bn]of u.entries())if(Fe[1]&&Bn.includes(ge))return ps(Bn);return ps(ge)},_=J(N),Z=U+"[0]",le=U+"[1]",de=TA(N);if(this.encoding[de]){const ge=J(de),Fe=this.defaultHitTestMode;if(Fe=="endpoints")S.push(`((${Z} <= ${_} && ${_} <= ${le}) || (${Z} <= ${ge} && ${ge} <= ${le}))`);else if(Fe=="encloses")S.push(`(${Z} <= ${_} && ${ge} <= ${le})`);else if(Fe=="intersects")S.push(`(${Z} <= ${ge} && ${_} <= ${le})`);else throw new mr(`Unsupported hit test mode "${Fe}" for interval selection!`,this.unitView)}else S.push(`(${Z} <= ${_} && ${_} <= ${le})`);T.push(`${Z} > ${le}`)}l.push(`bool ${Ga}${B}(bool empty) {
|
|
502
|
+
return ${S.join(" && ")} || (empty && (${T.join(" || ")}));
|
|
503
|
+
}`)}}const d=(x,B,E,Q)=>{const k=B.channelDef;if(Nt(k))if(it(k.value)){const{uniformName:S,uniformGlsl:T,accessorGlsl:N,adjuster:U}=sF(x,E);l.push(N),f.push(T),m(this,en).push(()=>{this.registerMarkUniformValue(S,k.value,U)})}else l.push(iF(x,E,k.value).accessorGlsl);else if(Ca(k)){const{uniformName:S,uniformGlsl:T,accessorGlsl:N}=oF(x,Q,E);f.push(T),l.push(N);const{largeHp:U,discrete:H}=gs(Q,x),J=H&&"domain"in Q?_=>Q.domain().indexOf(_):U?qC:_=>+_;m(this,en).push(()=>{this.registerMarkUniformValue(S,k.datum,J)})}else if(nr(k)){const S=u.get([k.field,!0]),{attributeGlsl:T,accessorGlsl:N}=zC(x,Q,E,S!=null&&S.includes(x)?S:void 0);c.add(T),l.push(N)}else if(ya(k)){const{attributeGlsl:S,accessorGlsl:T}=zC(x,Q,E);c.add(S),l.push(T)}else throw new mr(`Unsupported channel definition: ${JSON.stringify(k)}`,this.unitView)};for(const[x,B]of Object.entries(s)){if(!i.includes(x))continue;const{channelDef:E,accessors:Q,scale:k}=B;for(let S=0;S<Q.length;S++)d(x,Q[S],S,k);if(k){const S=Hp(E),T=S&&S.resolutionChannel||x,N=jl(T)?this.unitView.getScaleResolution(T):null,{glsl:U,domainUniform:H,domainUniformName:J,rangeUniform:_,rangeUniformName:Z}=aF(x,k,E);l.push(U),f.push(H),f.push(_),_&&m(this,en).push(()=>{const le=this.createMarkUniformSetter(Z),de=()=>le(jC(k,x));N.addEventListener("range",de),de()}),H&&m(this,en).push(()=>{const le=this.createMarkUniformSetter(J),de=()=>{const ge=pr(k.type)?[0,k.domain().length]:k.domain();le(JC(k.type)?hF(ge):ge)};N.addEventListener("domain",de),de()})}l.push(cF(x,Q))}const g=[...A.keys()].map(x=>`${Ga}${x}(false)`);l.push(`bool isPointSelected() {
|
|
504
|
+
`+(this.encoders.uniqueId&&g.length>0?` return ${g.join(" || ")};`:" return false;")+`
|
|
505
|
+
}`);const p=`precision highp float;
|
|
506
|
+
precision highp int;`,C=x=>x.replace("#pragma markUniforms",f.join(`
|
|
507
|
+
`));r=r.map(C),t=C(t),e=C(e);const w=[p,a,...r,WC,EF,[...c].join(`
|
|
508
|
+
`),...l,bF,xF,t],b=[p,a,...r,WC,BF,e],y=this.gl;this.programStatus=J8(y,this.glHelper.compileShader(y.VERTEX_SHADER,w),this.glHelper.compileShader(y.FRAGMENT_SHADER,b))}finalizeGraphicsInitialization(){const t=this.programStatus.getProgramErrors();if(t){t.detail&&console.warn(t.detail);const e=new Error("Cannot create shader program: "+t.message);throw e.view=this.unitView,e}this.programInfo=U4(this.gl,this.programStatus.program),delete this.programStatus,this.viewUniformInfo=r1(this.gl,this.programInfo,"View"),this.markUniformInfo=r1(this.gl,this.programInfo,"Mark"),this.gl.useProgram(this.programInfo.program),ei(this.programInfo,{uSampleFacet:[0,1,0,1],uTransitionOffset:0,uZero:0});for(const e of m(this,en))e();F(this,en,void 0)}createMarkUniformSetter(t){const e=this.markUniformInfo.setters[t];if(!e)throw new Error(`Uniform "${t}" not found int the Mark block!`);return r=>{e(r),this.markUniformsAltered=!0,this.unitView.context.animator.requestRender()}}registerMarkUniformValue(t,e,r=i=>i){const i=this.createMarkUniformSetter(t),s=o=>{if(o==null)throw new Error(`Trying to set null/undefined value for uniform: ${t}${it(e)?`Expr: ${e.expr}`:""}`);i(o)};if(it(e)){const o=this.unitView.paramMediator.createExpression(e.expr),a=()=>s(r(o(null)));o.addListener(a),m(this,js).push({expr:o,listener:a}),a()}else s(r(e))}deleteGraphicsData(){const t=this.glHelper;if(!t){this.vertexArrayInfo=void 0,this.bufferInfo=void 0;return}const e=t.gl;if(this.vertexArrayInfo&&(this.gl.bindVertexArray(null),e.deleteVertexArray(this.vertexArrayInfo.vertexArrayObject),this.vertexArrayInfo=void 0),this.bufferInfo){for(let r=0;r<8;r++)e.disableVertexAttribArray(r);Object.values(this.bufferInfo.attribs).forEach(r=>this.gl.deleteBuffer(r.buffer)),this.bufferInfo.indices&&this.gl.deleteBuffer(this.bufferInfo.indices),this.bufferInfo=void 0}}dispose(){for(const{expr:t,listener:e}of m(this,js))t.removeListener(e);m(this,js).length=0,this.deleteGraphicsData()}updateBufferInfo(t){if(this.gl.bindVertexArray(null),this.bufferInfo&&t.vertexCount<=this.bufferInfo.allocatedVertices)for(const[e,r]of Object.entries(t.arrays))r.data&&ZQ(this.gl,this.bufferInfo.attribs[e],r.data,0);else{this.deleteGraphicsData(),this.bufferInfo=tS(this.gl,t.arrays,{numElements:t.vertexCount}),this.bufferInfo.allocatedVertices=t.allocatedVertices;for(const[e,r]of Object.entries(t.arrays))this.bytesPerElement.set(e,r.data.BYTES_PER_ELEMENT)}}get glHelper(){return this.getContext().glHelper}get gl(){return this.glHelper.gl}onBeforeSampleAnimation(){}onAfterSampleAnimation(){}isReady(){return this.bufferInfo&&this.programInfo}isPickingParticipant(){if(this.properties.tooltip===null&&!this.unitView.paramMediator.hasPointSelections())return!1;for(const t of this.unitView.getLayoutAncestors())if(!t.isPickingSupported())return!1;return!0}bindOrSetMarkUniformBlock(){this.markUniformsAltered?(s1(this.gl,this.programInfo,this.markUniformInfo),this.markUniformsAltered=!1):i1(this.gl,this.programInfo,this.markUniformInfo)}prepareRender(t){const e=this.glHelper,r=this.gl,i=[];i.push(()=>{this.vertexArrayInfo||(this.vertexArrayInfo=ik(this.gl,this.programInfo,this.bufferInfo)),r.useProgram(this.programInfo.program)});for(const[o,a]of Object.entries(this.encoders)){const l=e.rangeTextures.get(a.scale);l&&i.push(()=>ei(this.programInfo,{[id+o]:l}))}i.push(...this.selectionTextureOps),this.getSampleFacetMode()==$C&&i.push(()=>{let o;for(const a of this.unitView.getLayoutAncestors())if(o=a.getSampleFacetTexture(),o)break;if(!o)throw new Error("No facet texture available. This is bug.");ei(this.programInfo,{uSampleFacetTexture:o})});const s=(t.picking??!1)&&this.isPickingParticipant();return i.push(()=>Sa(this.viewUniformInfo,{uViewOpacity:this.unitView.getEffectiveOpacity(),uPickingEnabled:s})),this.opaque||t.picking?i.push(()=>r.disable(r.BLEND)):i.push(()=>r.enable(r.BLEND)),i}prepareSampleFacetRendering(t){const e=t.sampleFacetRenderingOptions,r=this.programInfo.uniformSetters.uSampleFacet;if(e&&r){const i=e.locSize?e.locSize.location:0,s=e.locSize?e.locSize.size:1;if(i>1||i+s<0)return!1;const o=e.targetLocSize?e.targetLocSize.location:i,a=e.targetLocSize?e.targetLocSize.size:s;this.gl.uniform4f(r.location,i,s,o,a)}return!0}render(t){}createRenderCallback(t,e){var f;if(!this.bufferInfo)return()=>{};const r=this;let i;const s=(f=this.unitView.getScaleResolution("x"))==null?void 0:f.getScale(),o=s&&Ke(s.type),a=["index","locus"].includes(s==null?void 0:s.type)?-1:0,l=[0,0];i=h=>{if(o&&h.xIndex){const A=s.domain(),d=h.xIndex(A[0]+a,A[1],l),g=d[0],p=d[1]-g;p>0&&t(g,p)}else t(h.offset,h.count)};const c=this.rangeMap.get(void 0).count==0?e.facetId:void 0,u=this.rangeMap.get(c);return e.sampleFacetRenderingOptions?function(){u.count&&r.prepareSampleFacetRendering(e)&&i(u)}:function(){u.count&&i(u)}}setViewport(t,e,r,i){r=r.flatten();const s=this.gl,o=this.properties,a=.5,l=(o.xOffset??0)+a,c=(o.yOffset??0)+a;let u,f=r;if(o.clip!=="never"&&(o.clip||i)){let h=0,A=0,d;if(i){if(f=r.intersect(i).flatten(),!f.isDefined())return!1;d=[r.width/f.width,r.height/f.height],A=Math.max(0,r.y2-i.y2),h=Math.min(0,r.x-i.x)}else d=[1,1];const g=[f.x,t.height-f.y2,f.width,f.height].map(b=>b*e),p=g.map(b=>Math.floor(b)),C=g[0]-p[0],w=g[1]-p[1];s.viewport(...p),s.scissor(...p),s.enable(s.SCISSOR_TEST),u={uViewOffset:[(l+h+C/e)/f.width,-(c+A-w/e)/f.height],uViewScale:d}}else{if(!r.isDefined())return!1;s.viewport(0,0,t.width*e,t.height*e),s.disable(s.SCISSOR_TEST),u={uViewOffset:[(r.x+l)/t.width,(t.height-r.y-c-r.height)/t.height],uViewScale:[r.width/t.width,r.height/t.height]}}return Sa(this.viewUniformInfo,{...u,uViewportSize:[r.width,r.height],uDevicePixelRatio:e}),s1(this.gl,this.programInfo,this.viewUniformInfo),!0}findDatumAt(t,e){}}en=new WeakMap,js=new WeakMap;class SF extends Sn{constructor(){super([],JSON.stringify)}get(t){let e=super.get(t);return e===void 0&&(e={offset:0,count:0,xIndex:void 0},super.set(t,e)),e}migrateEntries(t){for(const[e,r]of this.entries())t.has(e)||(r.offset=0,r.count=0,r.xIndex=void 0);for(const[e,r]of t.entries())Object.assign(this.get(e),r)}}function ad(n,t){const e=TA(t);let r=n[t]&&{...n[t]},i=n[e]&&{...n[e]};if(!(Nt(r)||Nt(i))){if(r){if(!vt(n[t]))return;if(i){if(r.type!="quantitative"){const s=(1-(r.band||1))/2;r.band=s,i.band=-s}}else if(r.type=="quantitative")i={datum:0,contributesToScaleDomain:!1};else{i={...r};const s=(1-(r.band??1))/2;r.band=0+s,i.band=1-s}}else r={value:0},i={value:1};n[t]=r,n[e]=i}}function zu(n,t){const e=Hp(n);e&&(e.resolutionChannel=t)}function t2(n,t){n.stroke||(t?n.stroke={value:null}:(n.stroke=structuredClone(n.color),zu(n.stroke,"color"))),Nt(n.stroke)&&n.stroke.value===null&&(n.strokeWidth={value:0}),n.strokeOpacity||(n.strokeOpacity=structuredClone(n.opacity),zu(n.strokeOpacity,"opacity"))}function n2(n,t){Nt(n.fill)&&n.fill.value===null?n.fillOpacity={value:0}:n.fill||(n.fill=structuredClone(n.color),zu(n.fill,"color"),!t&&!n.fillOpacity&&(n.fillOpacity={value:0})),n.fillOpacity||(t?(n.fillOpacity=structuredClone(n.opacity),zu(n.fillOpacity,"opacity")):n.fillOpacity={value:0})}const DF=["none","diagonal","antiDiagonal","cross","vertical","horizontal","grid","dots","rings","ringsLarge"];class kF extends _a{constructor(e){super(e);D(this,Qr);this.augmentDefaultProperties({x2:void 0,y2:void 0,filled:!0,color:"#4c78a8",opacity:1,strokeWidth:3,cornerRadius:0,minWidth:.5,minHeight:.5,minOpacity:1})}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","fill","stroke","fillOpacity","strokeOpacity","strokeWidth"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","fill","stroke","fillOpacity","strokeOpacity","strokeWidth"]}get opaque(){return Uu(this,"opaque",()=>!P(this,Qr,k0).call(this)&&!P(this,Qr,F0).call(this)&&!this.properties.shadowOpacity&&Nt(this.encoding.fillOpacity)&&this.encoding.fillOpacity.value==1&&this.properties.minOpacity==1)&&this.unitView.getEffectiveOpacity()==1}fixEncoding(e){return ad(e,"x"),ad(e,"y"),t2(e,this.properties.filled),n2(e,this.properties.filled),delete e.color,delete e.opacity,e}onBeforeSampleAnimation(){}onAfterSampleAnimation(){}async initializeGraphics(){await super.initializeGraphics();const e=[];P(this,Qr,k0).call(this)&&e.push("ROUNDED_CORNERS"),P(this,Qr,F0).call(this)&&e.push("STROKED"),this.properties.shadowOpacity&&e.push("SHADOW"),this.createAndLinkShaders(lk,uk,[fk,...e.map(r=>"#define "+r)])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const e=this.properties;this.registerMarkUniformValue("uMinWidth",e.minWidth),this.registerMarkUniformValue("uMinHeight",e.minHeight),this.registerMarkUniformValue("uMinOpacity",e.minOpacity),this.registerMarkUniformValue("uCornerRadiusTopRight",e.cornerRadiusTopRight??e.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusBottomRight",e.cornerRadiusBottomRight??e.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusTopLeft",e.cornerRadiusTopLeft??e.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusBottomLeft",e.cornerRadiusBottomLeft??e.cornerRadius??0),this.registerMarkUniformValue("uHatchPattern",e.hatch,r=>Math.max(0,DF.indexOf(r??"none"))),this.registerMarkUniformValue("uShadowBlur",e.shadowBlur??0),this.registerMarkUniformValue("uShadowOpacity",e.shadowOpacity??0),this.registerMarkUniformValue("uShadowOffsetX",e.shadowOffsetX??0),this.registerMarkUniformValue("uShadowOffsetY",e.shadowOffsetY??0),this.registerMarkUniformValue("uShadowColor",e.shadowColor??"black",rd)}updateGraphicsData(){const e=this.unitView.getCollector();if(!e){console.debug("No collector");return}const r=e.getItemCount(),i=new mF({encoders:this.encoders,attributes:this.getAttributes(),numItems:r});i.addBatches(e.facetBatches);const s=i.toArrays();this.rangeMap.migrateEntries(s.rangeMap),this.updateBufferInfo(s)}prepareRender(e){const r=super.prepareRender(e);return r.push(()=>this.bindOrSetMarkUniformBlock()),r.push(()=>ti(this.gl,this.programInfo,this.vertexArrayInfo)),r}render(e){const r=this.gl;return this.createRenderCallback((i,s)=>{yu(r,this.vertexArrayInfo,r.TRIANGLE_STRIP,s,i)},e)}findDatumAt(e,r){e=tt(e);const i=this.unitView.getCollector().facetBatches.get(e);if(!i)return;const s=this.encoders,o=s.x.scale.type;if(pr(o)){const a=s.x.dataAccessor;return i.find(l=>r==a(l))}else{const a=s.x.dataAccessor,l=s.x2.dataAccessor;return i.find(c=>r>=a(c)&&r<l(c))}}}Qr=new WeakSet,k0=function(){const e=this.properties;return e.cornerRadius||e.cornerRadiusBottomLeft||e.cornerRadiusBottomRight||e.cornerRadiusTopLeft||e.cornerRadiusTopRight},F0=function(){const e=this.encoding.strokeWidth;return!(Nt(e)&&!e.value)||"condition"in e};const FF=`flat out float vRadius;flat out float vRadiusWithPadding;flat out lowp vec4 vFillColor;flat out lowp vec4 vStrokeColor;flat out lowp float vShape;flat out lowp float vHalfStrokeWidth;flat out mat2 vRotationMatrix;const float CIRCLE=0.0;const float SQUARE=1.0;const float CROSS=2.0;const float DIAMOND=3.0;const float TRIANGLE_UP=4.0;const float TRIANGLE_RIGHT=5.0;const float TRIANGLE_DOWN=6.0;const float TRIANGLE_LEFT=7.0;const float TICK_UP=8.0;const float TICK_RIGHT=9.0;const float TICK_DOWN=10.0;const float TICK_LEFT=11.0;float computeSemanticThresholdFactor(){return getScaled_semanticScore()>=uSemanticThreshold ? 1.0 : 0.0;}vec2 getDxDy(){
|
|
449
509
|
#if defined(dx_DEFINED) || defined(dy_DEFINED)
|
|
450
510
|
return vec2(getScaled_dx(),getScaled_dy())/uViewportSize;
|
|
451
511
|
#else
|
|
452
512
|
return vec2(0.0,0.0);
|
|
453
513
|
#endif
|
|
454
|
-
}void main(void){float shapeAngle=0.0;float semanticThresholdFactor=isPointSelected()? 1.0: computeSemanticThresholdFactor();if(semanticThresholdFactor<=0.0){gl_PointSize=0.0;gl_Position=vec4(100.0,0.0,0.0,0.0);return;}float size=getScaled_size();vec2 pos=vec2(getScaled_x(),getScaled_y())+getDxDy();gl_Position=unitToNdc(applySampleFacet(pos));float strokeWidth=getScaled_strokeWidth();float diameter=sqrt(size)*uScaleFactor*semanticThresholdFactor;float opacity=uViewOpacity;if(strokeWidth<=0.0||uInwardStroke){float minDiameter=1.0/uDevicePixelRatio;if(diameter<minDiameter){opacity*=pow(diameter/minDiameter,2.5);diameter=minDiameter;}}float fillOpa=getScaled_fillOpacity()*opacity;float strokeOpa=getScaled_strokeOpacity()*opacity;vShape=getScaled_shape();bool circle=vShape==0.0;if(vShape>TICK_UP&&vShape<=TICK_LEFT){shapeAngle=(vShape-TICK_UP)*90.0;vShape=TICK_UP;}else if(vShape>TRIANGLE_UP&&vShape<=TRIANGLE_LEFT){shapeAngle=(vShape-TRIANGLE_UP)*90.0;vShape=TRIANGLE_UP;}float angleInDegrees=getScaled_angle();float angle=-(shapeAngle+angleInDegrees)*PI/180.0;float sinTheta=sin(angle);float cosTheta=cos(angle);vRotationMatrix=mat2(cosTheta,sinTheta,-sinTheta,cosTheta);float roomForRotation=circle ? 1.0 : sin(mod(angle,PI/2.0)+PI/4.0)/sin(PI/4.0);float aaPadding=1.0/uDevicePixelRatio;float rotationPadding=(diameter*roomForRotation)-diameter;float strokePadding=uInwardStroke ? 0.0 : strokeWidth*(circle ? 1.0 : sqrt(3.0));float padding=rotationPadding+strokePadding+aaPadding;gl_PointSize=max((diameter+padding),uPickingEnabled ? uMinPickingSize : 0.0)*uDevicePixelRatio;vRadius=diameter/2.0;vRadiusWithPadding=vRadius+padding/2.0;vHalfStrokeWidth=strokeWidth/2.0;vFillColor=vec4(getScaled_fill()*fillOpa,fillOpa);vStrokeColor=vec4(getScaled_stroke()*strokeOpa,strokeOpa);setupPicking();}`,
|
|
514
|
+
}void main(void){float shapeAngle=0.0;float semanticThresholdFactor=isPointSelected()? 1.0: computeSemanticThresholdFactor();if(semanticThresholdFactor<=0.0){gl_PointSize=0.0;gl_Position=vec4(100.0,0.0,0.0,0.0);return;}float size=getScaled_size();vec2 pos=vec2(getScaled_x(),getScaled_y())+getDxDy();gl_Position=unitToNdc(applySampleFacet(pos));float strokeWidth=getScaled_strokeWidth();float diameter=sqrt(size)*uScaleFactor*semanticThresholdFactor;float opacity=uViewOpacity;if(strokeWidth<=0.0||uInwardStroke){float minDiameter=1.0/uDevicePixelRatio;if(diameter<minDiameter){opacity*=pow(diameter/minDiameter,2.5);diameter=minDiameter;}}float fillOpa=getScaled_fillOpacity()*opacity;float strokeOpa=getScaled_strokeOpacity()*opacity;vShape=getScaled_shape();bool circle=vShape==0.0;if(vShape>TICK_UP&&vShape<=TICK_LEFT){shapeAngle=(vShape-TICK_UP)*90.0;vShape=TICK_UP;}else if(vShape>TRIANGLE_UP&&vShape<=TRIANGLE_LEFT){shapeAngle=(vShape-TRIANGLE_UP)*90.0;vShape=TRIANGLE_UP;}float angleInDegrees=getScaled_angle();float angle=-(shapeAngle+angleInDegrees)*PI/180.0;float sinTheta=sin(angle);float cosTheta=cos(angle);vRotationMatrix=mat2(cosTheta,sinTheta,-sinTheta,cosTheta);float roomForRotation=circle ? 1.0 : sin(mod(angle,PI/2.0)+PI/4.0)/sin(PI/4.0);float aaPadding=1.0/uDevicePixelRatio;float rotationPadding=(diameter*roomForRotation)-diameter;float strokePadding=uInwardStroke ? 0.0 : strokeWidth*(circle ? 1.0 : sqrt(3.0));float padding=rotationPadding+strokePadding+aaPadding;gl_PointSize=max((diameter+padding),uPickingEnabled ? uMinPickingSize : 0.0)*uDevicePixelRatio;vRadius=diameter/2.0;vRadiusWithPadding=vRadius+padding/2.0;vHalfStrokeWidth=strokeWidth/2.0;vFillColor=vec4(getScaled_fill()*fillOpa,fillOpa);vStrokeColor=vec4(getScaled_stroke()*strokeOpa,strokeOpa);setupPicking();}`,MF="const lowp vec4 white=vec4(1.0);const lowp vec4 black=vec4(0.0,0.0,0.0,1.0);flat in float vRadius;flat in float vRadiusWithPadding;flat in lowp vec4 vFillColor;flat in lowp vec4 vStrokeColor;flat in lowp float vShape;flat in lowp float vHalfStrokeWidth;flat in mat2 vRotationMatrix;out lowp vec4 fragColor;const float CIRCLE=0.0;const float SQUARE=1.0;const float CROSS=2.0;const float DIAMOND=3.0;const float TRIANGLE_UP=4.0;const float TICK_UP=8.0;float circle(vec2 p,float r){return length(p)-r;}float square(vec2 p,float r){p=abs(p);return max(p.x,p.y)-r;}float tickUp(vec2 p,float r){float halfR=r*0.5;p.y+=halfR;p=abs(p);return max(p.x-r*0.15,p.y-halfR);}float equilateralTriangle(vec2 p,float r){p.y=-p.y;float k=sqrt(3.0);float kr=k*r;p.y-=kr/2.0;return max((abs(p.x)*k+p.y)/2.0,-p.y-kr);}float crossShape(vec2 p,float r){p=abs(p);vec2 b=vec2(0.4,1.0)*r;vec2 v=abs(p)-b.xy;vec2 h=abs(p)-b.yx;return min(max(v.x,v.y),max(h.x,h.y));}float diamond(vec2 p,float r){p=abs(p);return(max(abs(p.x-p.y),abs(p.x+p.y))-r)/sqrt(2.0);}void main(){float d;vec2 p=vRotationMatrix*(2.0*gl_PointCoord-1.0)*vRadiusWithPadding;float r=vRadius;if(vShape==CIRCLE){d=circle(p,r);}else if(vShape==SQUARE){d=square(p,r);}else if(vShape==CROSS){d=crossShape(p,r);}else if(vShape==DIAMOND){d=diamond(p,r);}else if(vShape==TRIANGLE_UP){d=equilateralTriangle(p,r);}else if(vShape==TICK_UP){d=tickUp(p,r);}else{d=0.0;}if(!uPickingEnabled){lowp vec4 fillColor=mix(vFillColor,white,-d*uGradientStrength/vRadius);fragColor=distanceToColor(d+(uInwardStroke ? vHalfStrokeWidth : 0.0),fillColor,vStrokeColor,vec4(0.0),vHalfStrokeWidth);}else if(d-vHalfStrokeWidth<=0.0){fragColor=vPickingColor;}else{discard;}}",RF=`layout(std140)uniform Mark{/***The stroke should only grow inwards,e.g,the diameter/outline is not affected by the stroke width.*Thus,a point that has a zero size has no visible stroke. This allows strokes to be used with*geometric zoom,etc.*/uniform bool uInwardStroke;uniform float uMinPickingSize;uniform mediump float uScaleFactor;uniform mediump float uZoomLevel;uniform highp float uSemanticThreshold;uniform mediump float uGradientStrength;
|
|
455
515
|
#pragma markUniforms
|
|
456
|
-
};`;class
|
|
516
|
+
};`;class r2 extends Ue{constructor(t){super(t),this.params=t,this.k=t.size||500,this.reset()}reset(){super.reset(),this.reservoir=[],this.W=void 0,this.ingester=this._initialIngester}_initialIngester(t){this.reservoir.push(t),this.reservoir.length==this.k&&(this.W=Math.exp(Math.log(Math.random())/this.k),this.i=this.k,this.next=this.i,this.ingester=this._finalIngester,this._setNextStop())}_finalIngester(t){++this.i==this.next&&(this.reservoir[Math.floor(Math.random()*this.k)]=t,this.W*=Math.exp(Math.log(Math.random())/this.k),this._setNextStop())}_setNextStop(){this.next+=Math.floor(Math.log(Math.random())/Math.log(1-this.W))+1}handle(t){this.ingester(t)}complete(){for(const t of this.reservoir)this._propagate(t);super.complete()}}function NF(n,t,e){const r=new r2({type:"sample",size:n});for(const i of t)r.handle(e(i));return r.complete(),r.reservoir}const TF={};class PF extends _a{constructor(e){super(e);D(this,xf);D(this,Ws,()=>0);this.augmentDefaultProperties({x:.5,y:.5,color:"#4c78a8",filled:!0,opacity:1,size:100,semanticScore:0,shape:"circle",strokeWidth:2,fillGradientStrength:0,dx:0,dy:0,angle:0,sampleFacetPadding:.1,semanticZoomFraction:.02,minPickingSize:2});const r=this.properties.semanticZoomFraction;if(r!=null)if(it(r)){const i=this.unitView.paramMediator.createExpression(r.expr);i.addListener(()=>this.getContext().animator.requestRender()),F(this,Ws,i)}else F(this,Ws,()=>r);"geometricZoomBound"in this.properties&&console.warn('geometricZoomBound is deprecated. Use something like the following instead: "size": { "expr": "min(0.5 * pow(zoomLevel, 2), 200)" }.')}getAttributes(){return["uniqueId","facetIndex","x","y","size","semanticScore","shape","strokeWidth","dx","dy","fill","stroke","fillOpacity","strokeOpacity","angle"]}getSupportedChannels(){return[...super.getSupportedChannels(),"size","semanticScore","shape","strokeWidth","dx","dy","fill","stroke","fillOpacity","strokeOpacity","angle"]}getDefaultEncoding(){return{...super.getDefaultEncoding(),...TF}}fixEncoding(e){return t2(e,this.properties.filled),n2(e,this.properties.filled),delete e.color,delete e.opacity,e}initializeData(){var r,i;super.initializeData();const e=(i=(r=this.encoders.semanticScore)==null?void 0:r.dataAccessor)==null?void 0:i.asNumberAccessor();e&&(this.sampledSemanticScores=Float32Array.from(NF(1e4,this.unitView.getCollector().getData(),e)),this.sampledSemanticScores.sort((s,o)=>s-o))}async initializeGraphics(){await super.initializeGraphics(),this.createAndLinkShaders(FF,MF,[RF])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const e=this.properties;this.registerMarkUniformValue("uInwardStroke",e.inwardStroke,r=>!!r),this.registerMarkUniformValue("uGradientStrength",e.fillGradientStrength),this.registerMarkUniformValue("uMinPickingSize",e.minPickingSize)}updateGraphicsData(){const e=this.unitView.getCollector();if(!e){console.debug("No collector");return}const r=e.getItemCount(),i=new yF({encoders:this.encoders,attributes:this.getAttributes(),numItems:Math.max(r,this.properties.minBufferSize||0)});i.addBatches(e.facetBatches);const s=i.toArrays();this.rangeMap.migrateEntries(s.rangeMap),this.updateBufferInfo(s)}getSemanticThreshold(){if(this.sampledSemanticScores){const e=Math.max(0,1-m(this,Ws).call(this)*this.unitView.getZoomLevel());if(e<=0)return-1/0;if(e>=1)return 1/0;{const r=this.sampledSemanticScores;return Lg(r,e)}}else return-1}prepareRender(e){const r=super.prepareRender(e);return r.push(()=>{Sa(this.markUniformInfo,{uScaleFactor:P(this,xf,jE).call(this),uSemanticThreshold:this.getSemanticThreshold()}),this.markUniformsAltered=!0}),r.push(()=>this.bindOrSetMarkUniformBlock()),r.push(()=>ti(this.gl,this.programInfo,this.vertexArrayInfo)),r}render(e){const r=this.gl;return this.createRenderCallback((i,s)=>{s&&yu(r,this.vertexArrayInfo,r.POINTS,s,i)},e)}}Ws=new WeakMap,xf=new WeakSet,jE=function(){const e=Math.pow(2,this.properties.geometricZoomBound||0);return Math.pow(Math.min(1,this.unitView.getZoomLevel()/e),1/3)};const LF="const int BUTT=0;const int SQUARE=1;const int ROUND=2;in float pos;in float side;flat out vec4 vColor;flat out float vSize;out float vNormalLengthInPixels;out highp vec2 vPosInPixels;void main(void){float pixelSize=1.0/uDevicePixelRatio;float size=getScaled_size();float opacity=getScaled_opacity()*uViewOpacity;if(size<pixelSize){opacity*=size/pixelSize;size=pixelSize;}vec2 a=applySampleFacet(vec2(getScaled_x(),getScaled_y()));vec2 b=applySampleFacet(vec2(getScaled_x2(),getScaled_y2()));vec2 tangent=b-a;float offset=0.0;float relativeDiff=0.0;if(uMinLength>0.0||uStrokeCap!=BUTT){float len=length(tangent*uViewportSize);float diff=max(0.0,uMinLength-len);if(uStrokeCap!=BUTT){diff+=size;}relativeDiff=diff/len;offset=relativeDiff*(pos-0.5);}vec2 p=pos<1.0? a+tangent*(pos+offset): b+tangent*offset;float aaPadding=pixelSize;vec2 normal=normalize(vec2(-tangent.y,tangent.x)/uViewportSize);p+=normal*side*(size+aaPadding)/uViewportSize;gl_Position=unitToNdc(p);vColor=vec4(getScaled_color()*opacity,opacity);vSize=size;vNormalLengthInPixels=side*(size+aaPadding);vPosInPixels=vec2(pos,(1.0-pos))*(1.0+relativeDiff)*length(tangent*uViewportSize)-vec2(uStrokeCap!=BUTT ? size/2.0 : 0.0);setupPicking();}",OF="const int BUTT=0;const int SQUARE=1;const int ROUND=2;uniform sampler2D uDashTexture;flat in vec4 vColor;flat in float vSize;in vec2 vPosInPixels;in float vNormalLengthInPixels;out lowp vec4 fragColor;void main(void){float dpr=uDevicePixelRatio;float distanceFromEnd=-min(vPosInPixels[0],vPosInPixels[1]);float distance;if(distanceFromEnd>0.0&&uStrokeCap==ROUND){distance=length(vec2(distanceFromEnd,vNormalLengthInPixels));}else{distance=abs(vNormalLengthInPixels);}float opacity=clamp(((vSize/2.0-distance)*dpr),-0.5,0.5)+0.5;if(uDashTextureSize>0.0){float pos=(vPosInPixels[0]+uStrokeDashOffset)*dpr;float floored=floor(pos);vec2 texelPositions=(floored+vec2(0.5,1.5))/dpr/uDashTextureSize;opacity*=mix(texture(uDashTexture,vec2(texelPositions[0],0)).r,texture(uDashTexture,vec2(texelPositions[1],0)).r,clamp((pos-floored),0.0,1.0));}fragColor=vColor*opacity;if(uPickingEnabled){fragColor=vPickingColor;}}",UF=`layout(std140)uniform Mark{uniform mediump float uMinLength;uniform mediump float uDashTextureSize;uniform lowp int uStrokeCap;uniform mediump float uStrokeDashOffset;
|
|
457
517
|
#pragma markUniforms
|
|
458
|
-
};`;class
|
|
518
|
+
};`;class GF extends _a{constructor(t){super(t),this.dashTextureSize=0,this.augmentDefaultProperties({x2:void 0,y2:void 0,size:1,color:"black",opacity:1,minLength:0,strokeDash:null,strokeDashOffset:0,strokeCap:"butt"})}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","size","color","opacity"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","size"]}fixEncoding(t){if(!(t.x&&t.y&&t.x2&&t.y2))if(t.x&&t.x2&&!t.y)t.y={value:.5},t.y2=t.y;else if(t.y&&t.y2&&!t.x)t.x={value:.5},t.x2=t.x;else if(t.x&&!t.y)t.y={value:0},t.y2={value:1},t.x2=t.x;else if(t.y&&!t.x)t.x={value:0},t.x2={value:1},t.y2=t.y;else if(t.x&&t.y&&t.y2)t.x2=t.x;else if(t.y&&t.x&&t.x2)t.y2=t.y;else if(t.y&&t.x)if(!t.x2&&vt(t.y)&&t.y.type=="quantitative")t.x2=t.x,t.y2={datum:0};else if(!t.y2&&vt(t.x)&&t.x.type=="quantitative")t.y2=t.y,t.x2={datum:0};else throw new Error("A bug!");else throw new Error("At a minimum, either the x or y channel must be defined in the rule mark's encoding: "+JSON.stringify(t));return t}async initializeGraphics(){await super.initializeGraphics();const t=this.gl,e=zF(this.properties.strokeDash);this.dashTexture=Qa(t,{level:0,mag:t.NEAREST,min:t.NEAREST,internalFormat:t.R8,format:t.RED,src:e,height:1}),this.dashTextureSize=e.length,this.createAndLinkShaders(LF,OF,[UF])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const t=this.properties;this.registerMarkUniformValue("uMinLength",t.minLength),this.registerMarkUniformValue("uStrokeCap",t.strokeCap??"butt",e=>["butt","square","round"].indexOf(e)),Sa(this.markUniformInfo,{uDashTextureSize:+this.dashTextureSize}),this.markUniformsAltered=!0}updateGraphicsData(){const t=this.unitView.getCollector();if(!t){console.debug("No collector");return}const e=t.getItemCount(),r=new CF({encoders:this.encoders,attributes:this.getAttributes(),numItems:Math.max(e,this.properties.minBufferSize||0)});r.addBatches(t.facetBatches);const i=r.toArrays();this.rangeMap.migrateEntries(i.rangeMap),this.updateBufferInfo(i)}prepareRender(t){const e=super.prepareRender(t);return e.push(()=>this.bindOrSetMarkUniformBlock()),e.push(()=>ei(this.programInfo,{uDashTexture:this.dashTexture})),e.push(()=>ti(this.gl,this.programInfo,this.vertexArrayInfo)),e}render(t){const e=this.gl;return this.createRenderCallback((r,i)=>yu(e,this.vertexArrayInfo,e.TRIANGLE_STRIP,i,r),t)}}function zF(n){if(!n)return new Uint8Array(0);if(n.length==0||n.length%2||n.findIndex(s=>Math.round(s)!=s||s<1||s>1e3)>=0)throw new Error("Invalid stroke dash pattern: "+JSON.stringify(n));const t=n.reduce((s,o)=>s+o),e=new Uint8Array(t);let r=!0,i=0;for(let s of n){for(;s;)e[i++]=r&&255||0,s--;r=!r}return e}const HF="flat out vec4 vColor;flat out float vSize;out float vNormalLengthInPixels;flat out float vGamma;const int SHAPE_ARC=0;const int SHAPE_DOME=1;const int SHAPE_DIAGONAL=2;const int SHAPE_LINE=3;const int ORIENT_VERTICAL=0;const int ORIENT_HORIZONTAL=1;float distanceFromLine(vec2 pointOnLine1,vec2 pointOnLine2,vec2 point){vec2 a=point-pointOnLine1;vec2 b=pointOnLine2-pointOnLine1;vec2 proj=dot(a,b)/dot(b,b)*b;return length(a-proj);}bool isInsideViewport(vec2 point,float marginFactor){vec2 margin=uViewportSize*vec2(marginFactor);return point.x>=-margin.x&&point.x<=uViewportSize.x+margin.x&&point.y>=-margin.y&&point.y<=uViewportSize.y+margin.y;}void main(void){float pixelSize=1.0/uDevicePixelRatio;float opacity=getScaled_opacity()*uViewOpacity;vec2 p1,p2,p3,p4;vec2 a=applySampleFacet(vec2(getScaled_x(),getScaled_y()))*uViewportSize;vec2 b=applySampleFacet(vec2(getScaled_x2(),getScaled_y2()))*uViewportSize;if(uShape<=SHAPE_DOME){if(uShape==SHAPE_DOME){vec2 height=vec2(0.0);if(uOrient==ORIENT_VERTICAL){p1=vec2(min(a.x,b.x),b.y);p4=vec2(max(a.x,b.x),b.y);height=vec2(0.0,a.y-b.y);if(uClampApex){if(p4.x>0.0){p1.x=max(p1.x,-p4.x);}if(p1.x<uViewportSize.x){p4.x=min(p4.x,2.0*uViewportSize.x-p1.x);}}}else{p1=vec2(b.x,min(a.y,b.y));p4=vec2(b.x,max(a.y,b.y));height=vec2(a.x-b.x,0.0);if(uClampApex){if(p4.y>0.0){p1.y=max(p1.y,-p4.y);}if(p1.y<uViewportSize.y){p4.y=min(p4.y,2.0*uViewportSize.y-p1.y);}}}vec2 controlOffset=height/0.75;p2=p1+controlOffset;p3=p4+controlOffset;}if(uShape==SHAPE_ARC){p1=a;p4=b;vec2 chordVector=p4-p1;vec2 unitChordVector=normalize(chordVector);vec2 chordNormal=vec2(-unitChordVector.y,unitChordVector.x);float chordLength=length(chordVector);if(chordLength>uMaxChordLength){if(isInsideViewport(p1,2.0)){chordLength=uMaxChordLength;p4=p1+unitChordVector*uMaxChordLength;}else if(isInsideViewport(p4,2.0)){chordLength=uMaxChordLength;p1=p4-unitChordVector*uMaxChordLength;}}float height=max(chordLength/2.0*uArcHeightFactor,uMinArcHeight);vec2 controlOffset=chordNormal*height/0.75;p2=p1+controlOffset;p3=p4+controlOffset;}}else if(uShape==SHAPE_DIAGONAL){if(uOrient==ORIENT_VERTICAL){p1=a;p2=vec2(a.x,(a.y+b.y)/2.0);p3=vec2(b.x,(a.y+b.y)/2.0);p4=b;}else{p1=a;p2=vec2((a.x+b.x)/2.0,a.y);p3=vec2((a.x+b.x)/2.0,b.y);p4=b;}}else if(uShape==SHAPE_LINE){p1=a;p2=(a+b)/2.0;p3=p2;p4=b;}vec2 strip=vec2(float(gl_VertexID/2)/float(uSegmentBreaks),float(gl_VertexID % 2)-0.5);float t=smoothstep(0.0,1.0,strip.x);vec2 C1=p4-3.0*p3+3.0*p2-p1;vec2 C2=3.0*p3-6.0*p2+3.0*p1;vec2 C3=3.0*p2-3.0*p1;vec2 C4=p1;vec2 p;if(t==0.0){p=p1;}else if(t==1.0){p=p4;}else{p=C1*t*t*t+C2*t*t+C3*t+C4;}vec2 tangent=normalize(3.0*C1*t*t+2.0*C2*t+C3);vec2 normal=vec2(-tangent.y,tangent.x);float size=getScaled_size();if(size<pixelSize){opacity*=size/pixelSize;size=pixelSize;}float paddedSize=uPickingEnabled? max(size,uMinPickingSize): size+pixelSize;vNormalLengthInPixels=strip.y*paddedSize;if(uShape==SHAPE_ARC&&uArcFadingDistance[0]>0.0&&uArcFadingDistance[1]>0.0&&(!uNoFadingOnPointSelection||!isPointSelected())){float d=distanceFromLine(p1,p4,p);float distanceOpacity=smoothstep(uArcFadingDistance[1],uArcFadingDistance[0],d);opacity*=distanceOpacity;if(distanceOpacity<=0.0){vNormalLengthInPixels=0.0;}}p+=normal*vNormalLengthInPixels;gl_Position=pixelsToNdc(p);vec3 color=getScaled_color();vColor=vec4(color*opacity,opacity);vGamma=getGammaForColor(color);vSize=paddedSize;setupPicking();}",YF="flat in vec4 vColor;flat in float vSize;in float vNormalLengthInPixels;flat in float vGamma;out lowp vec4 fragColor;void main(void){float dpr=uDevicePixelRatio;float distance=abs(vNormalLengthInPixels);float opacity=clamp(((vSize/2.0-distance)*dpr),0.0,1.0);opacity=pow(opacity,vGamma);fragColor=vColor*opacity;if(uPickingEnabled){fragColor=vPickingColor;}}",_F=`layout(std140)uniform Mark{uniform float uArcHeightFactor;uniform float uMinArcHeight;uniform float uMinPickingSize;uniform int uShape;uniform int uOrient;uniform bool uClampApex;uniform float uMaxChordLength;uniform vec2 uArcFadingDistance;uniform bool uNoFadingOnPointSelection;uniform int uSegmentBreaks;
|
|
459
519
|
#pragma markUniforms
|
|
460
|
-
};`,
|
|
520
|
+
};`,VF=["arc","dome","diagonal","line"],JF=["vertical","horizontal"];class qF extends _a{constructor(t){super(t),this.augmentDefaultProperties({x:0,x2:void 0,y:0,y2:void 0,size:1,color:"black",opacity:1,segments:101,arcHeightFactor:1,minArcHeight:1.5,minPickingSize:3,clampApex:!1,maxChordLength:5e4,arcFadingDistance:!1,noFadingOnPointSelection:!0,linkShape:"arc",orient:"vertical"}),this._baseInstanceExt=this.gl.getExtension("WEBGL_draw_instanced_base_vertex_base_instance")}get defaultHitTestMode(){return"endpoints"}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","size","color","opacity"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","size"]}fixEncoding(t){return t.x2||(vt(t.x)?t.x2={datum:0}:t.x2=t.x),t.y2||(vt(t.y)?t.y2={datum:0}:t.y2=t.y),t}async initializeGraphics(){await super.initializeGraphics(),this.createAndLinkShaders(HF,YF,[_F])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const t=this.properties;this.registerMarkUniformValue("uArcFadingDistance",t.arcFadingDistance,e=>e||[0,0]),this.registerMarkUniformValue("uArcHeightFactor",t.arcHeightFactor),this.registerMarkUniformValue("uMinArcHeight",t.minArcHeight),this.registerMarkUniformValue("uMinPickingSize",t.minPickingSize),this.registerMarkUniformValue("uShape",t.linkShape,e=>VF.indexOf(e)),this.registerMarkUniformValue("uOrient",t.orient,e=>JF.indexOf(e)),this.registerMarkUniformValue("uClampApex",t.clampApex,e=>!!e),this.registerMarkUniformValue("uMaxChordLength",t.maxChordLength),this.registerMarkUniformValue("uSegmentBreaks",t.segments,e=>e),this.registerMarkUniformValue("uNoFadingOnPointSelection",t.noFadingOnPointSelection,e=>!!e)}updateGraphicsData(){const t=this.unitView.getCollector();if(!t){console.debug("No collector");return}const e=t.getItemCount(),r=new wF({encoders:this.encoders,attributes:this.getAttributes(),numItems:e});r.addBatches(t.facetBatches);const i=r.toArrays();this.rangeMap.migrateEntries(i.rangeMap),this.arrays=Object.fromEntries(Object.entries(i.arrays).map(([s,o])=>[s,{...o,data:void 0}])),this.updateBufferInfo(i)}prepareRender(t){const e=super.prepareRender(t);return e.push(()=>this.bindOrSetMarkUniformBlock()),this._baseInstanceExt?e.push(()=>ti(this.gl,this.programInfo,this.vertexArrayInfo)):e.push(()=>this.gl.bindVertexArray(null)),e}render(t){const e=this.gl,r=()=>(this.markUniformInfo.uniforms.uSegmentBreaks[0]+1)*2;return this._baseInstanceExt?this.createRenderCallback((i,s)=>{this._baseInstanceExt.drawArraysInstancedBaseInstanceWEBGL(e.TRIANGLE_STRIP,0,r(),s,i)},t):this.createRenderCallback((i,s)=>{for(const o of Object.entries(this.bufferInfo.attribs)){const[a,l]=o;l.buffer&&l.numComponents&&l.divisor&&(l.offset=i*this.arrays[a].numComponents*this.bytesPerElement.get(a))}ti(e,this.programInfo,this.bufferInfo),e.drawArraysInstanced(e.TRIANGLE_STRIP,0,r(),s)},t)}}const KF=`in mediump vec2 vertexCoord;in lowp vec2 textureCoord;in float width;out vec2 vTexCoord;out float vEdgeFadeOpacity;flat out vec4 vColor;flat out float vSlope;flat out float vGamma;struct RangeResult{float pos;float scale;};float minValue(vec4 v){return min(min(v.x,v.y),min(v.z,v.w));}float maxValue(vec4 v){return max(max(v.x,v.y),max(v.z,v.w));}/***All measures are in[0,1]*/RangeResult positionInsideRange(float a,float b,float width,float padding,int align,bool flush){float span=b-a;float paddedWidth=width+2.0*padding;if(a>1.0||b<0.0){return RangeResult(0.0,0.0);}float extra=max(0.0,span-paddedWidth);float pos;if(align==0){float centre=a+b;if(flush){float leftOver=max(0.0,paddedWidth-centre);centre+=min(leftOver,extra);float rightOver=max(0.0,paddedWidth+centre-2.0);centre-=min(rightOver,extra);}pos=centre/2.0;}else if(align<0){float edge=a;if(flush){float over=max(0.0,-edge);edge+=min(over,extra);}pos=edge+padding;}else{float edge=b;if(flush){float over=max(0.0,edge-1.0);edge-=min(over,extra);}pos=edge-padding;}float scale=clamp((span-padding)/paddedWidth,0.0,1.0);return RangeResult(pos,scale);}vec2 calculateRotatedDimensions(float width,mat2 rotationMatrix){vec2 a=abs(rotationMatrix*vec2(width/2.0,0.5));vec2 b=abs(rotationMatrix*vec2(width/2.0,-0.5));return vec2(max(a.x,b.x),max(a.y,b.y))*2.0;}ivec2 fixAlignForAngle(ivec2 align,float angleInDegrees){float a=mod(angleInDegrees+45.0,360.0);int x=align.x;int y=-align.y;if(a<90.0){return ivec2(x,y);}else if(a<180.0){return ivec2(y,-x);}else if(a<270.0){return ivec2(-x,y);}else{return ivec2(-y,x);}}void main(void){float opacity=getScaled_opacity()*uViewOpacity;vec2 size=vec2(getScaled_size());float x=getScaled_x();float y=getScaled_y();float scale=1.0;float angleInDegrees=getScaled_angle();float angle=-angleInDegrees*PI/180.0;float sinTheta=sin(angle);float cosTheta=cos(angle);mat2 rotationMatrix=mat2(cosTheta,sinTheta,-sinTheta,cosTheta);vec2 flushSize=calculateRotatedDimensions(width,rotationMatrix);
|
|
461
521
|
#if defined(x2_DEFINED) || defined(y2_DEFINED)
|
|
462
522
|
ivec2 align=fixAlignForAngle(uAlign,angleInDegrees);
|
|
463
523
|
#else
|
|
@@ -470,25 +530,9 @@ vec2 pos=applySampleFacet(vec2(x,y));
|
|
|
470
530
|
#ifdef y2_DEFINED
|
|
471
531
|
float y2=getScaled_y2();vec2 pos2=applySampleFacet(vec2(x,y2));if(uLogoLetter){size.y=(pos2.y-pos.y)*uViewportSize.y;pos.y+=(pos2.y-pos.y)/2.0;}else{RangeResult result=positionInsideRange(min(pos.y,pos2.y),max(pos.y,pos2.y),size.y*scale*flushSize.y/uViewportSize.y,uPaddingY/uViewportSize.y,align.y,uFlushY);pos.y=result.pos;scale*=result.scale;}
|
|
472
532
|
#endif
|
|
473
|
-
if(scale<1.0){if(uSqueeze){vec2 scaleFadeExtent=vec2(3.0,6.0)/size;if(scale<scaleFadeExtent[0]){gl_Position=vec4(0.0);return;}size*=scale;opacity*=linearstep(scaleFadeExtent[0],scaleFadeExtent[1],scale);}else if(scale<1.0){gl_Position=vec4(0.0);return;}}vec2 charPos=rotationMatrix*(vertexCoord*size+uD);vec2 unitPos=pos+charPos/uViewportSize;gl_Position=unitToNdc(unitPos);vSlope=max(1.0,min(size.x,size.y)/uSdfNumerator*uDevicePixelRatio);vec3 color=getScaled_color();vColor=vec4(color*opacity,opacity);vGamma=getGammaForColor(color);vTexCoord=textureCoord;if(maxValue(uViewportEdgeFadeDistance)>-pow(10.0,10.0)){vEdgeFadeOpacity=minValue(((vec4(1.0,1.0,0.0,0.0)+vec4(-1.0,-1.0,1.0,1.0)*unitPos.yxyx)*uViewportSize.yxyx-uViewportEdgeFadeDistance)/uViewportEdgeFadeWidth);}else{vEdgeFadeOpacity=1.0;}setupPicking();}`,
|
|
533
|
+
if(scale<1.0){if(uSqueeze){vec2 scaleFadeExtent=vec2(3.0,6.0)/size;if(scale<scaleFadeExtent[0]){gl_Position=vec4(0.0);return;}size*=scale;opacity*=linearstep(scaleFadeExtent[0],scaleFadeExtent[1],scale);}else if(scale<1.0){gl_Position=vec4(0.0);return;}}vec2 charPos=rotationMatrix*(vertexCoord*size+uD);vec2 unitPos=pos+charPos/uViewportSize;gl_Position=unitToNdc(unitPos);vSlope=max(1.0,min(size.x,size.y)/uSdfNumerator*uDevicePixelRatio);vec3 color=getScaled_color();vColor=vec4(color*opacity,opacity);vGamma=getGammaForColor(color);vTexCoord=textureCoord;if(maxValue(uViewportEdgeFadeDistance)>-pow(10.0,10.0)){vEdgeFadeOpacity=minValue(((vec4(1.0,1.0,0.0,0.0)+vec4(-1.0,-1.0,1.0,1.0)*unitPos.yxyx)*uViewportSize.yxyx-uViewportEdgeFadeDistance)/uViewportEdgeFadeWidth);}else{vEdgeFadeOpacity=1.0;}setupPicking();}`,jF="uniform sampler2D uTexture;in vec2 vTexCoord;in float vEdgeFadeOpacity;flat in vec4 vColor;flat in float vSlope;flat in float vGamma;out lowp vec4 fragColor;float median(float r,float g,float b){return max(min(r,g),min(max(r,g),b));}float getDist(vec2 uv){vec3 c=texture(uTexture,uv).rgb;return 1.0-median(c.r,c.g,c.b);}/***Calculates the super-sampled distance to the edge.*This is used to avoid aliasing when rendering small text,*as mip-mapping cannot be used here.*The distance is averaged over a grid of n x n samples.*/float getSuperDist(vec2 uv){vec2 dx=dFdx(uv);vec2 dy=dFdy(uv);float n=2.0;float sum=0.0;for(float x=0.5;x<n;x++){for(float y=0.5;y<n;y++){sum+=getDist(uv+x/n*dx+y/n*dy);}}return sum/(n*n);}void main(){float sigDist=getSuperDist(vTexCoord);float slope=vSlope;if(uLogoLetter){slope=0.7/length(vec2(dFdy(sigDist),dFdx(sigDist)));}float opa=clamp((sigDist-0.5)*slope+0.5,0.0,1.0);opa*=clamp(vEdgeFadeOpacity,0.0,1.0);opa=pow(opa,vGamma);fragColor=vColor*opa;if(uPickingEnabled){fragColor=vPickingColor;}}",WF=`layout(std140)uniform Mark{uniform mediump float uSdfNumerator;uniform mediump vec2 uD;uniform mediump vec4 uViewportEdgeFadeWidth;uniform mediump vec4 uViewportEdgeFadeDistance;uniform bool uSqueeze;uniform bool uLogoLetter;uniform lowp ivec2 uAlign;uniform mediump float uPaddingX;uniform bool uFlushX;uniform mediump float uPaddingY;uniform bool uFlushY;
|
|
474
534
|
#pragma markUniforms
|
|
475
|
-
};`,
|
|
476
|
-
* Adapted from vega-encode:
|
|
477
|
-
* https://github.com/vega/vega/blob/master/packages/vega-encode/src/ticks.js
|
|
478
|
-
*
|
|
479
|
-
* Copyright (c) 2015-2018, University of Washington Interactive Data Lab
|
|
480
|
-
* All rights reserved.
|
|
481
|
-
*
|
|
482
|
-
* BSD-3-Clause License: https://github.com/vega/vega-lite/blob/master/LICENSE
|
|
483
|
-
*/function O1(n,e,t){return Ze(e)&&t!=null&&(e=Math.min(e,~~(Ts(n.domain())/t)||1)),Ge(e)&&(e.step,e=e.interval),e}function N1(n,e,t){var r=n.range(),i=Math.floor(r[0]),s=Math.ceil(en(r));if(i>s&&(r=s,s=i,i=r),e=e.filter(function(a){return a=n(a),i<=a&&a<=s}),t>0&&e.length>1){for(var o=[e[0],en(e)];e.length>t&&e.length>=3;)e=e.filter(function(a,c){return!(c%2)});e.length<3&&(e=o)}return e}function ED(n,e){return n.bins?N1(n,CD(n.bins,e)):n.ticks?n.ticks(e):n.domain()}function CD(n,e){var t=n.length,r=~~(t/(e||t));return r<2?n.slice():n.filter(function(i,s){return!(s%r)})}function DD(n,e,t){var r=n.tickFormat?n.tickFormat(e,t):t?Le(t):String;if(u1(n.type)){var i=TD(t);r=n.bins?i:ID(r,i)}return r}function ID(n,e){return function(t){return n(t)?e(t):""}}function TD(n){var e=ai(n||",");if(e.precision==null){switch(e.precision=12,e.type){case"%":e.precision-=2;break;case"e":e.precision-=1;break}return BD(Le(e),Le(".1f")(1)[1])}else return Le(e)}function BD(n,e){return function(t){var r=n(t),i=r.indexOf(e),s,o;if(i<0)return r;for(s=kD(r,i),o=s<r.length?r.slice(s):"";--s>i;)if(r[s]!=="0"){++s;break}return r.slice(0,s)+o}}function kD(n,e){var t=n.lastIndexOf("e"),r;if(t>0)return t;for(t=n.length;--t>e;)if(r=n.charCodeAt(t),r>=48&&r<=57)return t+1}/*!
|
|
484
|
-
* Adapted from vega-encode:
|
|
485
|
-
* https://github.com/vega/vega/blob/master/packages/vega-encode/src/Scale.js
|
|
486
|
-
*
|
|
487
|
-
* Copyright (c) 2015-2018, University of Washington Interactive Data Lab
|
|
488
|
-
* All rights reserved.
|
|
489
|
-
*
|
|
490
|
-
* BSD-3-Clause License: https://github.com/vega/vega-lite/blob/master/LICENSE
|
|
491
|
-
*/const FD="locus",PD="index";var MD=5;function RD(n){const e=n.type;return!n.bins&&(e===Bi||e===Do||e===Io)}function L1(n){return Oe(n)&&![qt,PD,FD].includes(n)}function z1(n){return n||{warn:(e,...t)=>console.warn(e,...t)}}var OD=iA(["set","modified","clear","type","scheme","schemeExtent","schemeCount","domain","domainMin","domainMid","domainMax","domainRaw","domainImplicit","nice","zero","bins","range","rangeStep","round","reverse","interpolate","interpolateGamma","zoom","fp64","name"]);function U1(n,e,t){t=z1(t);for(const r in n)if(!OD[r]){if(r==="padding"&&L1(e.type))continue;Nt(e[r])?e[r](n[r]):t.warn("Unsupported scale property: "+r)}_D(e,n,VD(e,n,UD(e,n,t)))}function ND(n,e){const t=LD(n),r=le(t);if(!r)throw new Error("Unknown scale type: "+t);const i=r();return!n.domain&&Oe(i.type)&&(n.domain=[0,0]),U1(n,i,e),i}function LD(n){var e=n.type,t="",r;return e===qt?qt+"-"+Bi:(zD(n)&&(r=n.rawDomain?n.rawDomain.length:n.domain?n.domain.length+ +(n.domainMid!=null):0,t=r===2?qt+"-":r===3?ki+"-":""),(t+e||Bi).toLowerCase())}function zD(n){const e=n.type;return Oe(e)&&e!==t1&&e!==n1&&(n.scheme||n.range&&n.range.length&&n.range.every(me))}function UD(n,e,t){if(!n.domain)return 0;t=z1(t);var r=GD(n,e.domainRaw,t);if(r>-1)return r;var i=e.domain,s=n.type,o=e.zero||e.zero===void 0&&RD(n),a,c;return i?(L1(s)&&e.padding&&i[0]!==en(i)&&(i=HD(s,i,e.range,e.padding,e.exponent,e.constant)),(o||e.domainMin!=null||e.domainMax!=null||e.domainMid!=null)&&(a=(i=i.slice()).length-1||1,o&&(i[0]>0&&(i[0]=0),i[a]<0&&(i[a]=0)),e.domainMin!=null&&(i[0]=e.domainMin),e.domainMax!=null&&(i[a]=e.domainMax),e.domainMid!=null&&(c=e.domainMid,(c<i[0]||c>i[a])&&t.warn("Scale domainMid exceeds domain min or max.",c),i.splice(a,0,c))),n.domain(G1(s,i,t)),s===Wf&&n.unknown(e.domainImplicit?hf:void 0),e.nice&&n.nice&&n.nice(e.nice!==!0&&O1(n,e.nice)||null),i.length):0}function GD(n,e,t){return e?(n.domain(G1(n.type,e,t)),e.length):-1}function HD(n,e,t,r,i,s){t??(t=[0,1]);var o=Math.abs(en(t)-t[0]),a=o/(o-2*r),c=n===_n?kd(e,null,a):n===Io?Nu(e,null,a,.5):n===Do?Nu(e,null,a,i||1):n===Wc?jx(e,null,a,s||1):Bd(e,null,a);return e=e.slice(),e[0]=c[0],e[e.length-1]=c[1],e}function G1(n,e,t){if(u1(n)){var r=Math.abs(e.reduce(function(i,s){return i+(s<0?-1:s>0?1:0)},0));r!==e.length&&t.warn("Log scale domain includes zero: "+Lu(e))}return e}function VD(n,e,t){let r=e.bins;if(r&&!Ue(r)){const i=(r.start==null||r.stop==null)&&n.domain(),s=r.start==null?i[0]:r.start,o=r.stop==null?en(i):r.stop,a=r.step;a||Ct("Scale bins parameter missing step property."),r=Us(s,o+a,a)}return r?n.bins=r:n.bins&&delete n.bins,n.type===Yf&&(r?!e.domain&&!e.domainRaw&&(n.domain(r),t=r.length):n.bins=n.domain()),t}function _D(n,e,t){var r=n.type,i=e.round||!1,s=e.range;if(e.rangeStep!=null)s=jD(r,e,t);else if(e.scheme&&(s=QD(r,e,t),Nt(s))){if(n.interpolator)return n.interpolator(s);Ct(`Scale type ${r} does not support interpolating color schemes.`)}if(s&&Yc(r))return n.interpolator(Xc(sh(s,e.reverse),e.interpolate,e.interpolateGamma));s&&e.interpolate&&n.interpolate?n.interpolate(l1(e.interpolate,e.interpolateGamma)):Nt(n.round)?n.round(i):Nt(n.rangeRound)&&n.interpolate(i?Eo:Hn),s&&n.range(sh(s,e.reverse))}function jD(n,e,t){n!==s1&&n!==qf&&Ct("Only band and point scales support rangeStep.");var r=(e.paddingOuter!=null?e.paddingOuter:e.padding)||0,i=n===qf?1:(e.paddingInner!=null?e.paddingInner:e.padding)||0;return[0,e.rangeStep*jf(t,i,r)]}function QD(n,e,t){var r=e.schemeExtent,i,s;return Ue(e.scheme)?s=Xc(e.scheme,e.interpolate,e.interpolateGamma):(i=e.scheme.toLowerCase(),s=Zf(i),s||Ct(`Unrecognized scheme name: ${e.scheme}`)),t=n===i1?t+1:n===Yf?t-1:n===Qf||n===r1?+e.schemeCount||MD:t,Yc(n)?H1(s,r,e.reverse):Nt(s)?a5(H1(s,r),t):n===Wf?s:s.slice(0,t)}function H1(n,e,t){return Nt(n)&&(e||t)?o5(n,sh(e||[0,1],t)):n}function sh(n,e){return e?n.slice().reverse():n}const V1=Le(",d");function WD(n,e){return n.chrom+":"+V1(Math.floor(n.pos+1))+"-"+(n.chrom!=e.chrom?e.chrom+":":"")+V1(Math.ceil(e.pos))}const _1={dm6:`chr3R 32079331
|
|
535
|
+
};`,XF={left:-1,center:0,right:1},ZF={top:-1,middle:0,bottom:1,alphabetic:1};class $F extends _a{constructor(t){super(t),this.augmentDefaultProperties({x:.5,y:.5,x2:void 0,y2:void 0,text:"",size:11,color:"black",opacity:1,font:void 0,fontStyle:void 0,fontWeight:void 0,align:"center",baseline:"middle",dx:0,dy:0,angle:0,fitToBand:!1,squeeze:!0,paddingX:0,paddingY:0,flushX:!0,flushY:!0,logoLetters:!1,viewportEdgeFadeWidthTop:0,viewportEdgeFadeWidthRight:0,viewportEdgeFadeWidthBottom:0,viewportEdgeFadeWidthLeft:0,viewportEdgeFadeDistanceTop:-1/0,viewportEdgeFadeDistanceRight:-1/0,viewportEdgeFadeDistanceBottom:-1/0,viewportEdgeFadeDistanceLeft:-1/0}),this.font=this.properties.font?t.context.fontManager.getFont(this.properties.font,this.properties.fontStyle,this.properties.fontWeight):t.context.fontManager.getDefaultFont(),this.setupExprRefsNeedingGraphicsUpdate(["text","fitToBand","logoLetters"])}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","color","size","opacity","angle"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","size","text","angle"]}fixEncoding(t){for(const e of Wr)this.properties.fitToBand&&ad(t,e);return t}async initializeGraphics(){await super.initializeGraphics(),this.createAndLinkShaders(KF,jF,[WF])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const t=this.properties,e=this.font.metrics.common.base*.35*(this.properties.logoLetters?.5:1);this.registerMarkUniformValue("uPaddingX",t.paddingX),this.registerMarkUniformValue("uPaddingY",t.paddingY),this.registerMarkUniformValue("uFlushX",t.flushX,r=>!!r),this.registerMarkUniformValue("uFlushY",t.flushY,r=>!!r),this.registerMarkUniformValue("uSqueeze",t.squeeze,r=>!!r),Sa(this.markUniformInfo,{uAlign:[XF[t.align],ZF[t.baseline]],uD:[t.dx,-t.dy],uLogoLetter:!!t.logoLetters,uSdfNumerator:e,uViewportEdgeFadeWidth:[t.viewportEdgeFadeWidthTop,t.viewportEdgeFadeWidthRight,t.viewportEdgeFadeWidthBottom,t.viewportEdgeFadeWidthLeft],uViewportEdgeFadeDistance:[t.viewportEdgeFadeDistanceTop,t.viewportEdgeFadeDistanceRight,t.viewportEdgeFadeDistanceBottom,t.viewportEdgeFadeDistanceLeft]})}updateGraphicsData(){const t=this.unitView.getCollector();if(!t){console.debug("No collector");return}const e=t.getData(),r=this.encoding,i=this.encoders.text;let s=0;const o="format"in r.text?Ze(r.text.format):c=>c;for(const c of e){const u=o(i(c)),f=Ce(u)?u:u===null?"":""+u;s+=f&&f.length||0}const a=new IF({encoders:this.encoders,attributes:this.getAttributes(),properties:this.properties,fontMetrics:this.font.metrics,numCharacters:Math.max(s,this.properties.minBufferSize||1024)});a.addBatches(t.facetBatches);const l=a.toArrays();this.rangeMap.migrateEntries(l.rangeMap),this.updateBufferInfo(l)}prepareRender(t){const e=super.prepareRender(t);return e.push(()=>{ei(this.programInfo,{uTexture:this.font.texture})}),e.push(()=>this.bindOrSetMarkUniformBlock()),e.push(()=>ti(this.gl,this.programInfo,this.vertexArrayInfo)),e}render(t){const e=this.gl;return this.createRenderCallback((r,i)=>yu(e,this.vertexArrayInfo,e.TRIANGLES,i,r),t)}}const i2=1;function cd(){let n=[0,1],t=[0,1],e=1,r=1,i=0,s=0,o=.5,a=0;const c=u=>(u+o-n[0])/e*r+t[0];return c.invert=u=>(u-t[0])/r*e+n[0]-o,c.domain=function(u){if(arguments.length){n=kx(u),e=n[1]-n[0];const f=n[0]===0&&n[0]===0;if(e<i2&&!f){e=i2;const h=(n[0]+n[1])/2;n[0]=h-e/2,n[1]=h+e/2}return c}else return n.slice()},c.range=function(u){return arguments.length?(t=[...u],r=t[1]-t[0],c):t},c.numberingOffset=function(u){return arguments.length?(a=u,c):a},c.padding=function(u){return arguments.length?(s=u,i=Math.min(1,u),c):i},c.paddingInner=function(u){return arguments.length?(i=Math.min(1,u),c):i},c.paddingOuter=function(u){return arguments.length?(s=u,c):s},c.align=function(u){return arguments.length?(o=Math.max(0,Math.min(1,u)),c):o},c.step=()=>r/e,c.bandwidth=()=>c.step(),c.ticks=u=>{const f=c.align(),h=c.numberingOffset();return Bl(n[0]-f+h,n[1]-f+h,Math.min(u,Math.ceil(e))).filter(Number.isInteger).map(A=>A-a)},c.tickFormat=(u,f)=>{if(f)throw new Error("Index scale's tickFormat does not support a specifier!");const A=Yr(n[0],n[1],Math.min(u,Math.ceil(e)))<1e5?Ze(","):Ze(".3s");return d=>A(d+a)},c.copy=()=>cd().domain(n).range(t).paddingInner(i).paddingOuter(s).numberingOffset(a),c}const s2=Ze(",d");function e6(n,t){return n.chrom+":"+s2(Math.floor(n.pos+1))+"-"+(n.chrom!=t.chrom?t.chrom+":":"")+s2(Math.ceil(t.pos))}const o2={dm6:`chr3R 32079331
|
|
492
536
|
chr3L 28110227
|
|
493
537
|
chr2R 25286936
|
|
494
538
|
chrX 23542271
|
|
@@ -609,118 +653,74 @@ chr18 90702639
|
|
|
609
653
|
chr19 61431566
|
|
610
654
|
chrX 171031299
|
|
611
655
|
chrY 91744698
|
|
612
|
-
chrM 16299`};function
|
|
613
|
-
`).map(e=>{const t=e.split(" ");return{name:t[0],size:parseInt(t[1])}})}const YD=/^([A-Za-z]+:)?\/\//;function Or(n,e){if(e&&YD.test(e))return e;const t=typeof n=="function"?n():n;if(!t)return e;if(!e)return t;if(/[#?]/.test(t))throw new Error(`Cannot append to a url with query or hash. Append: ${e}, base: ${t}`);return j1(t)+e}function j1(n){const e=n.replace(/[^/]*$/,"");return e===""?void 0:e.endsWith("://")?n+"/":e}class XD{constructor(e){if(this.config={name:"custom",...e},"baseUrl"in e)throw new Error("The `baseUrl` property in genome config has been removed in GenomeSpy v0.52.0. Use `url` instead. See https://genomespy.app/docs/genomic-data/genomic-coordinates/.");if(!oh(e))throw new Error("Not a genome configuration: "+JSON.stringify(e));if(this.chromosomes=[],this.cumulativeChromPositions=new Map,this.chromosomesByName=new Map,this.startByIndex=[],this.totalSize=0,W1(this.config))this.setChromSizes(this.config.contigs);else if(!ah(this.config)){const t=qD(this.config.name);if(t)this.setChromSizes(t);else throw new Error(`Unknown genome: ${this.config.name}. Please provide contigs or a URL. See https://genomespy.app/docs/genomic-data/genomic-coordinates/.`)}}get name(){return this.config.name}async load(e){if(ah(this.config))try{const t=Or(e,this.config.url),r=await fetch(t);if(!r.ok)throw new Error(`${r.status} ${r.statusText}`);this.setChromSizes(ZD(await r.text()))}catch(t){throw new Error(`Could not load chrom sizes: ${this.config.url}. Reason: ${t.message}`)}}hasChrPrefix(){return this.chromosomes.some(e=>e.name.startsWith("chr"))}setChromSizes(e){let t=0;this.startByIndex=[0];for(let r=0;r<e.length;r++){this.startByIndex.push(t);const i=e[r].size,s={...e[r],continuousStart:t,continuousEnd:t+i,continuousInterval:[t,t+i],index:r,number:r+1,odd:!(r&1)};this.chromosomes.push(s);const o=s.name.replace(/^chr/i,"");for(const a of["chr"+o,"CHR"+o,"Chr"+o,s.number,""+s.number,o,s.name])this.cumulativeChromPositions.set(a,t),this.chromosomesByName.set(a,s);t+=s.size}this.totalSize=t}getExtent(){return[0,this.totalSize]}toContinuous(e,t){let r=this.cumulativeChromPositions.get(e);if(r===void 0)throw new Error("Unknown chromosome/contig: "+e);return r+ +t}toChromosome(e){if(e>this.totalSize)return;e=Math.floor(e);const t=Dn(this.startByIndex,e)-1;if(t>0&&t<=this.chromosomes.length)return this.chromosomes[t-1]}toChromosomal(e){const t=this.toChromosome(e);if(t)return{chrom:t.name,pos:Math.floor(e)-t.continuousStart}}getChromosome(e){return this.chromosomesByName.get(e)}formatInterval(e){return WD(...this.toChromosomalInterval(e))}toChromosomalInterval(e){const t=this.toChromosomal(e[0]+.5),r=this.toChromosomal(e[1]-.5);return r.pos+=1,[t,r]}toContinuousInterval(e){var i;let[t,r]=e;return r||(r=t),[this.toContinuous(t.chrom,t.pos??0),this.toContinuous(r.chrom,r.pos??((i=this.chromosomesByName.get(r.chrom))==null?void 0:i.size))]}toDiscreteChromosomeIntervals(e){const t=e[0],r=e[1],i=[];if(t.chrom===r.chrom)i.push({chrom:t.chrom,startPos:t.pos,endPos:r.pos});else{const s=this.chromosomes.findIndex(a=>a.name===t.chrom),o=this.chromosomes.findIndex(a=>a.name===r.chrom);i.push({chrom:t.chrom,startPos:t.pos,endPos:this.chromosomes[s].size});for(let a=s+1;a<o;a++)i.push({chrom:this.chromosomes[a].name,startPos:0,endPos:this.chromosomes[a].size});i.push({chrom:r.chrom,startPos:0,endPos:r.pos})}return i}continuousToDiscreteChromosomeIntervals(e){return this.toDiscreteChromosomeIntervals([this.toChromosomal(e[0]),this.toChromosomal(e[1])])}parseInterval(e){const t=e.match(/^(chr[0-9A-Z]+)(?::([0-9,]+)(?:-(?:(chr[0-9A-Z]+):)?([0-9,]+))?)?$/);if(t){const r=t[1];if(t.slice(2).every(a=>a===void 0)){const a=this.getChromosome(r);return a?[a.continuousStart,a.continuousEnd]:void 0}const i=t[3]||r,s=parseInt(t[2].replace(/,/g,"")),o=t[4]!==void 0?parseInt(t[4].replace(/,/g,"")):s;return[this.toContinuous(r,s-1),this.toContinuous(i,o)]}}}function ZD(n){return TA(n).map(([e,t])=>({name:e,size:parseInt(t)}))}function Q1(n){return Ge(n)&&"chrom"in n}function KD(n){return n.every(Q1)}function oh(n){return Ge(n)&&("name"in n||ah(n)||W1(n))}function ah(n){return oh(n)&&"url"in n}function W1(n){return oh(n)&&"contigs"in n}class Lo extends Array{constructor(){super(),this.type=void 0}extend(e){return this}extendAll(e){if(e instanceof Lo&&e.type!=this.type)throw new Error(`Cannot combine different types of domains: ${this.type} and ${e.type}`);for(const t of e)this.extend(t);return this}extendAllWithAccessor(e,t){for(const r of e)this.extend(t(r));return this}}class ch extends Lo{constructor(){super(),this.type="quantitative"}extend(e){return e==null||Number.isNaN(e)?this:(e=+e,this.length?e<this[0]?this[0]=e:e>this[1]&&(this[1]=e):(this.push(e),this.push(e)),this)}}class q1 extends Lo{constructor(){super(),this.type="ordinal",this.uniqueValues=new Set}extend(e){return e==null||Number.isNaN(e)?this:(this.uniqueValues.has(e)||(this.uniqueValues.add(e),this.push(e)),this)}}class Y1 extends q1{constructor(){super(),this.type="nominal"}}class JD extends Lo{constructor(e){super();let t=0;for(let r=1;r<e.length;r++)t+=Math.sign(e[r]-e[r-1]);if(Math.abs(t)!=e.length-1)throw new Error("Piecewise domain must be strictly increasing or decreasing: "+JSON.stringify(e));e.forEach(r=>this.push(r))}extend(e){if(this.includes(e))return this;throw new Error("Piecewise domains are immutable and cannot be unioned!")}}const X1={quantitative:ch,index:ch,locus:ch,nominal:Y1,ordinal:q1};function Z1(n,e){if(n=="quantitative"&&$D(e)){const t=new JD(e);return t.type=n,t}else if(X1[n]){const t=new X1[n];return t.type=n,e&&t.extendAll(e),t}throw new Error("Unknown type: "+n)}function $D(n){return n&&n.length>0&&n.length!=2&&n.every(e=>typeof e=="number")}function eI(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}function tI(n,e,t){return n*Math.pow(e/n,t)}le("index",ih,["continuous"]),le("locus",vD,["continuous"]),le("null",Kf,[]);const K1="quantitative",J1="ordinal",$1="nominal",ey="locus",nI="index";class rI{constructor(e){R(this,q);R(this,is,{domain:new Set,range:new Set});R(this,ct);R(this,Yr);R(this,ra,new Set);this.channel=e,this.members=[],this.type=null,this.name=void 0}get zoomExtent(){return(E(this,ct)&&Oe(E(this,ct).type)&&O(this,q,vx).call(this))??[-1/0,1/0]}addEventListener(e,t){E(this,is)[e].add(t)}removeEventListener(e,t){E(this,is)[e].delete(t)}addMember(e){var a;const{channel:t,channelDef:r}=e,i=r.type==null&&this.type;if(t!="sample"&&!r.type&&!uf(t)&&!i)throw new Error(`The "type" property must be defined in channel definition: "${t}": ${JSON.stringify(r)}. Must be one of: "quantitative", "ordinal", "nominal", "locus", "index"`);const s=t=="sample"?"nominal":r.type,o=(a=r==null?void 0:r.scale)==null?void 0:a.name;if(o){if(this.name!==void 0&&o!=this.name)throw new Error(`Shared scales have conflicting names: "${o}" vs. "${this.name}"!`);this.name=o}if(!i){if(!this.type)this.type=s;else if(s!==this.type&&!uf(t))throw new Error(`Can not use shared scale for different data types: ${this.type} vs. ${s}. Use "resolve: independent" for channel ${this.channel}`)}this.members.push(e)}removeMembersByView(e){const t=this.members.length;return this.members=this.members.filter(r=>r.view!==e),this.members.length!==t}getDataDomain(){return this.members.map(e=>{var t;return(t=e.dataDomainSource)==null?void 0:t.call(e,e.channel,this.type)}).filter(e=>!!e).reduce((e,t)=>e.extendAll(t))}reconfigure(){const e=E(this,ct);if(!e||e.type=="null")return;const t=O(this,q,Ax).call(this),r=e.domain(),i=O(this,q,hd).call(this,!0);if(U1({...i,range:void 0},e),e.props=i,O(this,q,dd).call(this),!E(this,Yr)&&Oe(e.type)){const o=e.domain();Ts(o)>0&&G(this,Yr,o)}if(!t){G(this,Yr,e.domain()),O(this,q,Sn).call(this,"domain");return}const s=e.domain();$a(s,r)||(this.isZoomable()?e.domain(r):O(this,q,ti).call(this)?(e.domain(r),this.zoomTo(s,500)):O(this,q,Sn).call(this,"domain"))}get scale(){if(E(this,ct))return E(this,ct);const e=O(this,q,hd).call(this),t=ND({...e,range:void 0});t.props=e,"unknown"in t&&t.unknown(null),G(this,ct,t),O(this,q,dd).call(this),SD(t)&&t.genome(this.getGenome());const r=t.range;if(r){const i=()=>O(this,q,Sn).call(this,"range");t.range=function(s){if(arguments.length)r(s),i();else return r()},i()}return t}getDomain(){return this.scale.domain()}getComplexDomain(){var e;return((e=this.getGenome())==null?void 0:e.toChromosomalInterval(this.getDomain()))??this.getDomain()}isZoomed(){return O(this,q,ti).call(this)&&$a(O(this,q,Fu).call(this),this.getDomain())}isZoomable(){return O(this,q,ti).call(this)&&!!this.scale.props.zoom}zoom(e,t,r){if(!O(this,q,ti).call(this))return!1;const i=this.scale,s=i.domain();let o=[...s],a=i.invert(t);switch(i.props.reverse&&(r=-r),"align"in i&&(a+=i.align()),i.type){case"linear":case"index":case"locus":o=Hx(o,r||0),o=Bd(o,a,e);break;case"log":o=Vx(o,r||0),o=kd(o,a,e);break;case"pow":case"sqrt":{const u=i;o=_x(o,r||0,u.exponent()),o=Nu(o,a,e,u.exponent());break}default:throw new Error("Zooming is not implemented for: "+i.type)}const c=this.zoomExtent;return o=Qx(o,c[0],c[1]),[0,1].some(u=>o[u]!=s[u])?(i.domain(o),O(this,q,Sn).call(this,"domain"),!0):!1}async zoomTo(e,t=!1){if(Is(t)&&(t=t?700:0),!O(this,q,ti).call(this))throw new Error("Not a zoomable scale!");const r=this.fromComplexInterval(e),i=E(this,q,ld).animator,s=this.scale,o=s.domain();if(t>0&&o.length==2){const a=o[1]-o[0],c=r[1]-r[0],u=o[0]+a/2,l=r[0]+c/2,f=o[0]==r[0],d=o[1]==r[1];await i.transition({duration:t,easingFunction:eI,onUpdate:h=>{const p=tI(a,c,h),m=a==c?h:(a-p)/(a-c),g=m*l+(1-m)*u,y=[f?o[0]:g-p/2,d?o[1]:g+p/2];s.domain(y),O(this,q,Sn).call(this,"domain")}}),s.domain(r),O(this,q,Sn).call(this,"domain")}else s.domain(r),i==null||i.requestRender(),O(this,q,Sn).call(this,"domain")}resetZoom(){if(!O(this,q,ti).call(this))throw new Error("Not a zoomable scale!");const e=this.getDomain(),t=O(this,q,Fu).call(this);return[0,1].some(r=>t[r]!=e[r])?(E(this,ct).domain(t),O(this,q,Sn).call(this,"domain"),!0):!1}getZoomLevel(){return this.isZoomable()?Ts(this.zoomExtent)/Ts(this.scale.domain()):1}getAxisLength(){if(this.channel!=="x"&&this.channel!=="y")throw new Error("Axis length is only defined for x and y channels!");const e=this.members.map(t=>{var r;return(r=t.view.coords)==null?void 0:r[this.channel==="x"?"width":"height"]}).filter(t=>t>0);return e.length?e.reduce((t,r)=>Math.min(t,r),1e4):0}getGenome(){var t;if(this.type!=="locus")return;const e=(t=E(this,q,ld).genomeStore)==null?void 0:t.getGenome();if(!e)throw new Error("No genome has been defined!");return e}invertToComplex(e){const t=this.scale;if("invert"in t){const r=t.invert(e);return this.toComplex(r)}else throw new Error("The scale does not support inverting!")}toComplex(e){const t=this.getGenome();return t?t.toChromosomal(e):e}fromComplex(e){return Q1(e)?this.getGenome().toContinuous(e.chrom,e.pos):e}fromComplexInterval(e){return this.type==="locus"&&KD(e)?this.getGenome().toContinuousInterval(e):e}}is=new WeakMap,ct=new WeakMap,Yr=new WeakMap,ra=new WeakMap,q=new WeakSet,ud=function(){return this.members[0].view},ld=function(){return E(this,q,ud).context},Sn=function(e){for(const t of E(this,is)[e].values())t({type:e,scaleResolution:this})},fd=function(){return!!O(this,q,pd).call(this)},Ax=function(){const e=E(this,ct);if(!e)return!1;const t=e.domain();return Oe(e.type)?t.length>2||t.length==2&&(t[0]!==0||t[1]!==0):t.length>0},wx=function(){const e=this.members.map(t=>t.channelDef.scale).filter(t=>t!==void 0);return tu(e,"scale",["domain"])},hd=function(e=!1){const t=O(this,q,wx).call(this);if(t===null||t.type=="null")return{type:"null"};const r={...O(this,q,Sx).call(this,this.type),...t};r.type||(r.type=iI(this.channel,this.type));const i=O(this,q,Fu).call(this,e);return i&&i.length>0?r.domain=i:jn(r.type)&&(r.domain=new Y1),!r.domain&&r.domainMid!==void 0&&(r.domain=[r.domainMin??0,r.domainMax??1]),this.channel=="y"&&jn(r.type)&&r.reverse==null&&(r.reverse=!0),r.range&&r.scheme&&delete r.scheme,!("zoom"in r)&&["index","locus"].includes(r.type)&&(r.zoom=!0),sI(r,this.channel),r},dd=function(){const e=E(this,ct).props,t=e.range;if(E(this,ra).forEach(i=>i.invalidate()),!t||!Ue(t))return;const r=(i,s)=>s?i.slice().reverse():i;if(t.some(Qe)){let i;const s=()=>{E(this,ct).range(r(i.map(o=>o()),e.reverse))};i=t.map(o=>{if(Qe(o)){const a=E(this,q,ud).paramMediator.createExpression(o.expr);return a.addListener(s),E(this,ra).add(a),()=>a(null)}else return()=>o}),s()}else E(this,ct).range(r(t,e.reverse))},Fu=function(e=!1){return O(this,q,pd).call(this)??(this.type==ey?this.getGenome().getExtent():e?this.getDataDomain():[])},pd=function(){const e=this.members.map(t=>t.channelDef).filter(t=>{var r;return(r=t.scale)==null?void 0:r.domain}).map(t=>Z1(t.type,this.fromComplexInterval(t.scale.domain)));if(e.length>0)return e.reduce((t,r)=>t.extendAll(r))},ti=function(){const e=this.scale.type;return Oe(e)},vx=function(){const e=this.scale.props,t=e.zoom;return oI(t)&&Ue(t.extent)?this.fromComplexInterval(t.extent):t&&e.type=="locus"?this.getGenome().getExtent():E(this,Yr)},Sx=function(e){const t=this.channel,r={};return O(this,q,fd).call(this)&&(r.zero=!1),Ao(t)?r.nice=!O(this,q,fd).call(this):Ln(t)?r.scheme=e==$1?"tableau10":e==J1?"blues":"viridis":Pc(t)?r.range=t=="shape"?["circle","square","triangle-up","cross","diamond"]:[]:t=="size"?r.range=[0,400]:t=="angle"&&(r.range=[0,360]),r};function iI(n,e){if(e==nI||e==ey){if(cf(n))return e;throw new Error(`${n} does not support ${e} data type. Only positional channels do.`)}const t={x:["band","band","linear"],y:["band","band","linear"],size:[void 0,"point","linear"],opacity:[void 0,"point","linear"],fillOpacity:[void 0,"point","linear"],strokeOpacity:[void 0,"point","linear"],color:["ordinal","ordinal","linear"],fill:["ordinal","ordinal","linear"],stroke:["ordinal","ordinal","linear"],strokeWidth:[void 0,void 0,"linear"],shape:["ordinal","ordinal",void 0],dx:[void 0,void 0,"null"],dy:[void 0,void 0,"null"],angle:[void 0,void 0,"linear"],sample:["null",void 0,void 0]},i=["sample"].includes(n)?"null":t[n]?t[n][[$1,J1,K1].indexOf(e)]:e==K1?"linear":"ordinal";if(i===void 0)throw new Error(`Channel "${n}" is not compatible with "${e}" data type. Use of a proper scale may be needed.`);return i}function sI(n,e){Ao(e)&&n.type!=="ordinal"&&(n.range=[0,1]),e=="opacity"&&Oe(n.type)&&(n.clamp=!0)}function oI(n){return Ge(n)}function ty(n){const e=new Set;function t(r){for(const i of Object.values(r.resolutions.scale))e.add(i)}for(const r of He(n)){r.visit(t);for(const i of r.getDataAncestors()){if(!i.options.contributesToScaleDomain)break;t(i)}}e.forEach(r=>r.reconfigure())}function uh(...n){for(const e of n)if(e!==void 0)return e}class aI{constructor(e){this.channel=e,this.members=[]}get scaleResolution(){var e;return(e=eo(this.members))==null?void 0:e.view.getScaleResolution(this.channel)}addMember(e){const{view:t}=e,r=t.getScaleResolution(this.channel);if(!r)throw new Error("Cannot find a scale resolution!");if(this.scaleResolution&&r!==this.scaleResolution)throw new Error(`Shared axes must have a shared scale! Channel: ${this.channel}, existing views: [${this.members.map(i=>i.view.getPathString()).join(", ")}], new view: ${t.getPathString()}.`);this.members.push(e),nh(this,"axisProps")}removeMembersByView(e){const t=this.members.length;return this.members=this.members.filter(r=>r.view!==e),this.members.length!==t?(nh(this,"axisProps"),!0):!1}getAxisProps(){return Jc(this,"axisProps",()=>{const e=this.members.map(t=>{const r=t.view.mark.encoding[t.channel];return"axis"in r&&r.axis});return e.length>0&&e.some(t=>t===null)?null:tu(e.filter(t=>t!==void 0),"axis",["title"])})}getTitle(){const e=s=>{var a;const o=v8(s.view,s.channel);if(!yt(o))return{member:s,explicitTitle:uh("axis"in o?(a=o.axis)==null?void 0:a.title:void 0,o.title),implicitTitle:uh(Nn(o)?o.field:void 0,xo(o)?o.expr:void 0)}},t=this.members.map(e),r=t.filter(s=>{var o;if(uf(s.member.channel)&&!s.explicitTitle){const a=Ir(s.member.channel);return((o=t.find(c=>c.member.view==s.member.view&&c.member.channel==a))==null?void 0:o.explicitTitle)===void 0}return!0}),i=new Set(r.map(s=>uh(s.explicitTitle,s.implicitTitle)).filter(me));return i.size?[...i].join(", "):null}}function ny(n,e,{spacing:t,devicePixelRatio:r,offset:i,reverse:s}={}){t=t||0,i=i||0;let o=0,a=0;for(const p of n)o+=nu(p.px)+(lh(p)?0:t),a+=nu(p.grow);o-=t;const c=Math.max(0,e-o),u=r!==void 0?p=>Math.round(p*r)/r:p=>p,l=[],f=[],d=p=>{const m=l.length;if(!m)return;const g=(p?t:0)*(s?-1:1);h-=g;for(let y=0;y<m;y++)f.push({location:h+(y+1)/(m+1)*g,size:0});h+=g,l.length=0};let h=s?Math.max(e,o):0+i;if(n.length==1&&lh(n[0]))return[{location:h,size:0}];for(let p=0;p<n.length;p++){const m=n[p];if(lh(m))l.push(m);else{d(f.length>0);const g=nu(m.px)+(a?nu(m.grow)/a*c:0);s&&(h-=g),f.push({location:u(h),size:u(g)}),s?h-=t:h+=g+t}}return h+=s?t:-t,d(!1),f}function cI(n){let e=0,t=0;for(const r of n)e=Math.max(e,r.px??0),t=Math.max(t,r.grow??0);return{px:e,grow:t}}const nd=class nd{constructor(e,t){R(this,ia);this.width=e,this.height=t}addPadding(e){return O(this,ia,md).call(this,e.width,e.height)}subtractPadding(e){return O(this,ia,md).call(this,-e.width,-e.height)}isGrowing(){return!!(this.width.grow||this.height.grow)}};ia=new WeakSet,md=function(e,t){return new nd({px:(this.width.px??0)+e,grow:this.width.grow},{px:(this.height.px??0)+t,grow:this.height.grow})};let Wn=nd;const zo=Object.freeze({px:0,grow:0}),ry=new Wn(zo,zo);function lh(n){return!n.px&&!n.grow}function nu(n){return n||0}function uI(n){return n&&(Ze(n.px)||Ze(n.grow))}function iy(n){if(cy(n))throw new Error("parseSizeDef does not accept step-based sizes.");if(uI(n))return n;if(Ze(n))return{px:n,grow:0};if(n==="container")return{px:0,grow:1};if(!n)return{px:0,grow:1};throw new Error(`Invalid sizeDef: ${n}`)}class We{constructor(e,t,r,i){this.top=e||0,this.right=t||0,this.bottom=r||0,this.left=i||0}get width(){return this.left+this.right}get height(){return this.top+this.bottom}expand(e){return e<=0?this:new We(this.top+e,this.right+e,this.bottom+e,this.left+e)}add(e){return new We(this.top+e.top,this.right+e.right,this.bottom+e.bottom,this.left+e.left)}subtract(e){return new We(this.top-e.top,this.right-e.right,this.bottom-e.bottom,this.left-e.left)}union(e){return new We(Math.max(this.top,e.top),Math.max(this.right,e.right),Math.max(this.bottom,e.bottom),Math.max(this.left,e.left))}getHorizontal(){return new We(0,this.right,0,this.left)}getVertical(){return new We(this.top,0,this.bottom,0)}get horizontalTotal(){return this.left+this.right}get verticalTotal(){return this.top+this.bottom}static createFromConfig(e){return typeof e=="number"?this.createUniformPadding(e):e?this.createFromRecord(e):fh}static createFromRecord(e){return new We(e.top,e.right,e.bottom,e.left)}static zero(){return fh}static createUniformPadding(e){return new We(e,e,e,e)}}const fh=We.createUniformPadding(0);Object.freeze(fh);function Uo(n,e){return!e||/^(data:|([A-Za-z]+:)?\/\/)/.test(n)||n.startsWith("/")?n:(e.endsWith("/")||(e+="/"),e+n)}function lI(n){if(!n)return n;if(/[?#]/.test(n))throw new Error(`Invalid base URL: ${n} - cannot contain query or hash.`);return n.endsWith("/")?n:n+"/"}const sy="VISIT_SKIP",Go="VISIT_STOP",oy=n=>n;class ay{constructor(e,t,r,i,s,o={}){R(this,Zt);R(this,ss,{});R(this,os,{});R(this,as,{});R(this,sa);R(this,oa);Y(this,"opacityFunction",oy);R(this,cs,[]);Y(this,"facetCoords",new tn([],JSON.stringify));var a;if(!e)throw new Error("View spec must be defined!");if(this.context=t,this.layoutParent=r,this.dataParent=i,this.name=e.name||s,this.spec=e,this.resolutions={scale:{},axis:{}},I1(this),this.options={blockEncodingInheritance:!1,contributesToScaleDomain:!0,...o},this.flowHandle=void 0,this.needsAxes={x:!1,y:!1},this.paramMediator=new d8(()=>{var c;return(c=this.dataParent)==null?void 0:c.paramMediator}),e.params)for(const c of e.params)this.paramMediator.registerParam(c);if(!((a=this.layoutParent)!=null&&a.options.layeredChildren)){const c=u=>this.paramMediator.findMediatorForParam(u)?void 0:this.paramMediator.allocateSetter(u,0);G(this,oa,c("height")),G(this,sa,c("width"))}}get coords(){return this.facetCoords.values().next().value}getPadding(){return this._cache("size/padding",()=>We.createFromConfig(this.spec.padding))}getOverhang(){return We.zero()}isScrollable(){return this.spec.viewportWidth!=null||this.spec.viewportHeight!=null}getSize(){return this._cache("size/size",()=>this.isConfiguredVisible()?new Wn(O(this,Zt,Ia).call(this,"width"),O(this,Zt,Ia).call(this,"height")):ry)}getViewportSize(){if(!this.isScrollable())return this.getSize();if(!this.isConfiguredVisible())return ry;const e=this.getSize();return new Wn(O(this,Zt,Ia).call(this,"viewportWidth")??e.width,O(this,Zt,Ia).call(this,"viewportHeight")??e.height)}isConfiguredVisible(){return this.context.isViewConfiguredVisible(this)}isVisibleInSpec(){return this.spec.visible??!0}isVisible(){return this.getLayoutAncestors().every(e=>e.isConfiguredVisible())}getEffectiveOpacity(){var e;return this.opacityFunction(((e=this.layoutParent)==null?void 0:e.getEffectiveOpacity())??1)}getPathString(){return this.getLayoutAncestors().map(e=>e.name).reverse().join("/")}getLayoutAncestors(){return O(this,Zt,gd).call(this,"layoutParent")}getDataAncestors(){return O(this,Zt,gd).call(this,"dataParent")}handleBroadcast(e){for(const t of E(this,ss)[e.type]||[])t(e)}_addBroadcastHandler(e,t){let r=E(this,ss)[e];r||(r=[],E(this,ss)[e]=r),r.push(t)}handleInteractionEvent(e,t,r){const i=r?E(this,os):E(this,as);for(const s of i[t.type]||[])s(e,t)}addInteractionEventListener(e,t,r){const i=r?E(this,os):E(this,as);let s=i[e];s||(s=[],i[e]=s),s.push(t)}removeInteractionEventListener(e,t,r){const i=r?E(this,os):E(this,as);let s=i==null?void 0:i[e];if(s){const o=s.indexOf(t);o>=0&&s.splice(o,1)}}visit(e){try{const t=e(this);if(e.postOrder&&e.postOrder(this),t!==Go)return t}catch(t){throw t.view=this,t}}getDescendants(){const e=[];return this.visit(t=>{e.push(t)}),e}dispose(){for(const t of E(this,cs))t();E(this,cs).length=0;const e=this.flowHandle;e!=null&&e.collector&&(this.context.dataFlow.pruneCollectorBranch(e.collector),this.context.dataFlow.removeCollector(e.collector)),e!=null&&e.dataSource&&e.dataSource.view===this&&!e.dataSource.identifier&&this.context.dataFlow.removeDataSource(e.dataSource),this.flowHandle=void 0}registerDisposer(e){E(this,cs).push(e)}disposeSubtree(){const e=()=>{};e.postOrder=t=>{t.dispose()},this.visit(e)}configureViewOpacity(){(!this.opacityFunction||this.opacityFunction===oy)&&(this.opacityFunction=hI(this))}onBeforeRender(){}render(e,t,r={}){var i,s;r.firstFacet&&this.facetCoords.clear(),this.facetCoords.set(r.facetId,r.clipRect?t.intersect(r.clipRect):t),(i=E(this,sa))==null||i.call(this,t.width),(s=E(this,oa))==null||s.call(this,t.height)}getEncoding(){const e=this.dataParent&&!this.options.blockEncodingInheritance?this.dataParent.getEncoding():{},t=this.spec.encoding||{},r={...e,...t};for(const[i,s]of Object.entries(r))s===null&&delete r[i];return r}getFacetAccessor(e){if(this.layoutParent)return this.layoutParent.getFacetAccessor(this)}getFacetFields(e){var r;const t=this.getEncoding().sample;return Nn(t)?[t.field]:(r=this.layoutParent)==null?void 0:r.getFacetFields(this)}getSampleFacetTexture(){}getScaleResolution(e){const t=Ir(e);return this.getDataAncestors().map(r=>r.resolutions.scale[t]).find(r=>r)}getAxisResolution(e){const t=Ir(e);return this.getDataAncestors().map(r=>r.resolutions.axis[t]).find(r=>r)}getConfiguredResolution(e,t){var r,i;return(i=(r=this.spec.resolve)==null?void 0:r[t])==null?void 0:i[e]}getConfiguredOrDefaultResolution(e,t){return this.getConfiguredResolution(e,t)??this.getConfiguredResolution("default",t)??this.getDefaultResolution(e,t)}getDefaultResolution(e,t){return"independent"}getBaseUrl(){return Or(()=>{var e;return(e=this.dataParent)==null?void 0:e.getBaseUrl()},lI(this.spec.baseUrl))}isPickingSupported(){return!0}getTitleText(){const e=this.spec.title;if(e)return me(e)?e:Qe(e.text)?this.paramMediator.evaluateAndGet(e.text.expr):e.text}_cache(e,t){return Jc(this,e,t)}_invalidateCacheByPrefix(e,t="self"){switch(t){case"self":$c(this,e);break;case"ancestors":for(const r of this.getLayoutAncestors())$c(r,e);break;case"progeny":this.visit(r=>$c(r,e));break}}invalidateSizeCache(){this._invalidateCacheByPrefix("size/","ancestors")}propagateInteractionEvent(e){}}ss=new WeakMap,os=new WeakMap,as=new WeakMap,sa=new WeakMap,oa=new WeakMap,cs=new WeakMap,Zt=new WeakSet,Ia=function(e){var i;let t=this.spec[e];const r=e=="viewportWidth"||e=="viewportHeight";if(cy(t)){if(r)throw new Qn(`Cannot use step-based size with "${e}"!`,this);const s=t.step,o=(i=this.getScaleResolution(e=="width"?"x":"y"))==null?void 0:i.scale;if(o){let a=0;if(jn(o.type))a=o.domain().length;else if(["locus","index"].includes(o.type)){const u=o.domain();a=eo(u)-u[0]}else throw new Qn(`Cannot use step-based size with "${o.type}" scale!`,this);const c=o;return a=jf(a,c.paddingInner(),c.paddingOuter()),{px:a*s,grow:0}}else throw new Qn("Cannot use 'step' size with missing scale!",this)}else return(t&&iy(t))??(r?void 0:{px:0,grow:1})},gd=function(e){const t=[];let r=this;do t.push(r),r=r[e];while(r);return t};function fI(n){return"unitsPerPixel"in n}function hI(n){const e="opacity"in n.spec?n.spec.opacity:void 0;if(e!==void 0){if(Ze(e))return t=>t*e;if(fI(e)){const t=s=>{var a;const o=(a=n.getScaleResolution(s))==null?void 0:a.scale;if(["linear","index","locus"].includes(o==null?void 0:o.type))return o},r=e.channel?t(e.channel):t("x")??t("y");if(!r)throw new Qn("Cannot find a resolved quantitative scale for dynamic opacity!",n);const i=Of().domain(e.unitsPerPixel).range(e.values).clamp(!0);return s=>{const a=Ts(r.domain())/1e3;return i(a)*s}}else if(Qe(e)){const t=n.paramMediator.createExpression(e.expr);return t.addListener(()=>n.context.animator.requestRender()),r=>t(null)*r}}return t=>t}const cy=n=>!!(n!=null&&n.step),dI={point:iD,rect:J5,rule:cD,link:mD,text:wD};class ft extends ay{constructor(t,r,i,s,o,a){super(t,r,i,s,o,a);R(this,us);R(this,aa);this.spec=t;const c=dI[this.getMarkType()];if(c)this.mark=new c(this);else throw new Error(`No such mark: ${this.getMarkType()}`);this.resolve(),G(this,aa,this.paramMediator.allocateSetter("zoomLevel",1));for(const u of["x","y"]){const l=this.getScaleResolution(u);if(l){const f=()=>{E(this,aa).call(this,Math.sqrt(this.getZoomLevel()))};l.addEventListener("domain",f),this.registerDisposer(()=>l.removeEventListener("domain",f))}}this.needsAxes={x:!0,y:!0},O(this,us,Ex).call(this)}render(t,r,i={}){super.render(t,r,i),this.isConfiguredVisible()&&(t.pushView(this,r),t.renderMark(this.mark,i),t.popView(this))}getMarkType(){return typeof this.spec.mark=="object"?this.spec.mark.type:this.spec.mark}getEncoding(){const t=super.getEncoding(),r=this.mark.getSupportedChannels();for(const i of Object.keys(t))r.includes(i)||delete t[i];return t}resolve(t){if(!t){this.resolve("scale"),this.resolve("axis");return}const r=this.mark.encoding;for(const[i,s]of Object.entries(r)){if(!s)continue;let o;if(lt(s))o=s;else if(af(s)){const u=s.condition;if(!Array.isArray(u)&<(u))o=u;else continue}else continue;const a=Ir(o.resolutionChannel??i);if(!Mc(a)||t=="axis"&&!Ao(a))continue;let c=this;for(;(c.getConfiguredOrDefaultResolution(a,t)=="forced"||c.dataParent&&["shared","excluded","forced"].includes(c.dataParent.getConfiguredOrDefaultResolution(a,t)))&&c.getConfiguredOrDefaultResolution(a,t)!="excluded";)c=c.dataParent;if(t=="axis"&&Ao(i)&&cf(a))c.resolutions[t][a]||(c.resolutions[t][a]=new aI(a)),c.resolutions[t][a].addMember({view:this,channel:i,channelDef:o});else if(t=="scale"&&Mc(i)){if(!c.resolutions[t][a]){const l=new rI(a);c.resolutions[t][a]=l,l.addEventListener("range",f=>{var d;(d=this.context.glHelper)==null||d.createRangeTexture(f.scaleResolution,!0)})}const u=this.getLayoutAncestors().some(l=>!l.options.contributesToScaleDomain)||lt(o)&&o.contributesToScaleDomain===!1?void 0:this.extractDataDomain.bind(this);c.resolutions[t][a].addMember({view:this,channel:i,channelDef:o,dataDomainSource:u})}}}dispose(){super.dispose(),O(this,us,Cx).call(this),this.mark.dispose()}getDataAccessor(t){var i;const r=this.mark.encoders;if(r)return(i=r[t])==null?void 0:i.dataAccessor}getFacetAccessor(t){const r=this.getDataAccessor("sample");return r||super.getFacetAccessor(this)}getCollector(){var t;return(t=this.flowHandle)==null?void 0:t.collector}extractDataDomain(t,r){var s;let i=Z1(r);return(((s=this.mark.encoders[t])==null?void 0:s.accessors)??[]).filter(o=>o.scaleChannel).forEach(o=>{if(o.constant)i.extend(o({}));else{const a=this.getCollector();a!=null&&a.completed&&a.visitData(c=>i.extend(o(c)))}}),i}getZoomLevel(){const t=r=>{var i;return((i=this.getScaleResolution(r))==null?void 0:i.getZoomLevel())??1};return Dr.map(t).reduce((r,i)=>r*i,1)}propagateInteractionEvent(t){this.handleInteractionEvent(void 0,t,!0),t.target=this,!t.stopped&&this.handleInteractionEvent(void 0,t,!1)}getDefaultResolution(t,r){return t=="x"?"shared":"independent"}}aa=new WeakMap,us=new WeakSet,Ex=function(){for(const[t,r]of this.paramMediator.paramConfigs){if(!("select"in r))continue;const i=kc(r.select),s=i.on,o=i.clear;if(Fc(i)){let c=0;const u=this.paramMediator.getSetter(t),l=()=>{var p;const h=this.context.getCurrentHover();return((p=h==null?void 0:h.mark)==null?void 0:p.unitView)===this?h.datum:null},f=s.filter?Fm(s.filter):()=>!0,d=(h,p)=>{if(!f(p.proxiedMouseEvent))return;const m=l(),g=m?m[pt]:0;let y;if(i.toggle)if(p.mouseEvent.shiftKey){if(m){const A=this.paramMediator.getValue(t);y=m8(A,{toggle:[m]})}}else y=sf(m?[m]:null);else g!=c&&(c=g,y=rf(m));y!==void 0&&u(y)};if(this.addInteractionEventListener(["mouseover","pointerover"].includes(s.type)?"mousemove":s.type,d),o){const h=o.filter?Fm(o.filter):()=>!0,p=(m,g)=>{if(!h(g.proxiedMouseEvent))return;c=0;const y=i.toggle?sf():rf(null);u(y)};this.addInteractionEventListener(o.type,p)}}}},Cx=function(){for(const t of this.getDataAncestors()){for(const[r,i]of Object.entries(t.resolutions.scale))i&&i.removeMembersByView(this)&&i.members.length===0&&delete t.resolutions.scale[r];for(const[r,i]of Object.entries(t.resolutions.axis))i&&i.removeMembersByView(this)&&i.members.length===0&&delete t.resolutions.axis[r]}};function pI(n){const e=new Set;n.visit(t=>{for(const r of Object.values(t.resolutions.scale)){const i=r.name;if(i&&e.has(i))throw new Error(`The same scale name "${i}" occurs in multiple scale resolutions!`);e.add(i)}})}function mI(n){for(const e of Dr){const t=n.getScaleResolution(e);t&&!t.name&&t.isZoomable()&&(t.name=`${e}_at_root`)}}function gI(n,e=()=>!0){return Promise.allSettled(n).then(t=>{if(e())for(const r of t)"value"in r?r.value.finalizeGraphicsInitialization():"reason"in r&&console.error(r.reason)})}async function yI(n,e,t){const r=n.import;if(!("url"in r))throw new Error("Not an url import: "+JSON.stringify(r));const i=Or(e,r.url);let s;try{const o=await fetch(i);if(!o.ok)throw new Error(`${o.status} ${o.statusText}`);s=await o.json()}catch(o){throw new Error(`Could not load imported view spec: ${i}. Reason: ${o.message}`)}if(t.isViewSpec(s))return s.baseUrl=Or(j1(r.url),s.baseUrl),s;throw new Error(`The imported spec "${i}" is not a view spec: ${JSON.stringify(n)}`)}function bI(n){const e=n.getSize(),t=n.getPadding(),r=(i,s)=>i.grow>0?void 0:i.px+s;return{width:r(e.width,t.horizontalTotal),height:r(e.height,t.verticalTotal)}}function*hh(n,e=[]){for(const[t,r]of n.entries())if(r instanceof Map)for(const i of hh(r,[...e,t]))yield i;else yield[[...e,t],r]}const uy=2147483647,xI=ly([uy]);function ly(n){let e=0;for(let t=0,r=n.length;t<r;t++)e=Math.max(e,n[t]);return Math.floor(Math.log2(e)/4)+1}function AI(n){const e=ly(n);let t=Array.from({length:n.length},(s,o)=>o),r=new Array(n.length);const i=new Array(16);for(let s=0;s<e;s++){i.fill(0);const o=s*4,a=Math.pow(16,s),c=u=>{const l=n[t[u]];return s>=xI?l>uy?Math.floor(l/a)%16:0:l>>o&15};for(let u=0;u<n.length;u++)i[c(u)]++;for(let u=1;u<16;u++)i[u]+=i[u-1];for(let u=n.length-1;u>=0;u--)r[--i[c(u)]]=t[u];[t,r]=[r,t]}return t}class fy extends ql{constructor(t){var r;super();R(this,ht);R(this,gn,[]);R(this,ca,ue(pt));R(this,$n,[]);R(this,Xr);R(this,ls);this.params=t??{type:"collect"},this.observers=new Set,this.facetBatches=new tn([],JSON.stringify),G(this,ls,vI((r=this.params)==null?void 0:r.sort)),O(this,ht,yd).call(this)}get behavior(){return Wl}get label(){return"collect"}reset(){super.reset(),O(this,ht,yd).call(this)}handle(t){E(this,gn).push(t)}beginBatch(t){jC(t)&&(G(this,gn,[]),this.facetBatches.set(He(t.facetId),E(this,gn)))}complete(){var t;if(G(this,gn,[]),(t=this.params.groupby)!=null&&t.length){if(this.facetBatches.size>1)throw new Error("TODO: Support faceted data!");const r=this.facetBatches.get(void 0),i=this.params.groupby.map(o=>ue(o)),s=i.length>1?za(r,...i):wI(r,i[0]);this.facetBatches.clear();for(const[o,a]of hh(s))this.facetBatches.set(o,a)}if(E(this,ls))for(const r of this.facetBatches.values())r.sort(E(this,ls));O(this,ht,Dx).call(this),O(this,ht,bd).call(this),super.complete();for(const r of this.observers)r(this)}observe(t){return this.observers.add(t),()=>{this.observers.delete(t)}}repropagate(){for(const t of this.children)t.reset();O(this,ht,bd).call(this);for(const t of this.children)t.complete()}getData(){switch(O(this,ht,xd).call(this),this.facetBatches.size){case 0:return[];case 1:return[...this.facetBatches.values()][0];default:{const t=this.facetBatches;return{[Symbol.iterator]:function*(){for(const i of t.values())yield*i}}}}}visitData(t){O(this,ht,xd).call(this);for(const r of this.facetBatches.values())for(let i=0;i<r.length;i++)t(r[i])}getItemCount(){let t=0;for(const r of this.facetBatches.values())t+=r.length;return t}findDatumByUniqueId(t){if(!E(this,$n).length)return;const r=dr(c=>c.start).right,i=E(this,ca),s=dr(c=>i(o(c))).left,o=c=>{const u=r(E(this,Xr),c),l=E(this,Xr)[u-1];return!l||c>=l.stop?void 0:this.facetBatches.get(l.facetId)[c-l.start]},a=s(E(this,$n),t);if(a>=0){const c=o(E(this,$n)[a]);if(c&&i(c)===t)return c}}}gn=new WeakMap,ca=new WeakMap,$n=new WeakMap,Xr=new WeakMap,ls=new WeakMap,ht=new WeakSet,yd=function(){G(this,gn,[]),G(this,$n,[]),this.facetBatches.clear(),this.facetBatches.set(void 0,E(this,gn))},bd=function(){if(this.children.length)for(const[t,r]of this.facetBatches.entries()){if(t){const i={type:"facet",facetId:t};for(const s of this.children)s.beginBatch(i)}for(let i=0,s=r.length;i<s;i++)this._propagate(r[i])}},xd=function(){if(!this.completed)throw new Error("Data propagation is not completed! No data are available.")},Dx=function(){var o;G(this,Xr,[]);const t=(o=this.facetBatches.values().next().value)==null?void 0:o[0];if(t==null||!(pt in t))return;let r=0;const i=[],s=E(this,ca);for(const[a,c]of this.facetBatches){E(this,Xr).push({start:r,stop:r+c.length,facetId:a}),r+=c.length;for(let u=0,l=c.length;u<l;u++)i.push(s(c[u]))}G(this,$n,AI(i))};function wI(n,e){const t=new Map;for(let r=0,i=n.length;r<i;r++){const s=n[r],o=e(s);let a=t.get(o);a||(a=[],t.set(o,a)),a.push(s)}return t}function vI(n){if(n!=null&&n.field){const e=He(n.field);if(e.length==1&&!e[0].includes(".")){const t=He(n.order)[0]??"ascending",r=JSON.stringify(e[0]);return new Function("a","b",`return a[${r}] ${t==="ascending"?"-":"+"} b[${r}];`)}return Pd(n.field,n.order)}}class ru{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(e,t){let r=this.length++;for(;r>0;){const i=r-1>>1,s=this.values[i];if(t>=s)break;this.ids[r]=this.ids[i],this.values[r]=s,r=i}this.ids[r]=e,this.values[r]=t}pop(){if(this.length===0)return;const e=this.ids[0];if(this.length--,this.length>0){const t=this.ids[0]=this.ids[this.length],r=this.values[0]=this.values[this.length],i=this.length>>1;let s=0;for(;s<i;){let o=(s<<1)+1;const a=o+1;let c=this.ids[o],u=this.values[o];const l=this.values[a];if(a<this.length&&l<u&&(o=a,c=this.ids[a],u=l),u>=r)break;this.ids[s]=c,this.values[s]=u,s=o}this.ids[s]=t,this.values[s]=r}return e}peek(){if(this.length!==0)return this.ids[0]}peekValue(){if(this.length!==0)return this.values[0]}shrink(){this.ids.length=this.values.length=this.length}}class SI extends Te{get behavior(){return Ht}constructor(e){super(e),this.params=e,this.startAccessor=ue(e.start),this.endAccessor=ue(e.end),this.chromAccessor=e.chrom?ue(e.chrom):t=>{},this.weightAccessor=e.weight?ue(e.weight):t=>1,this.as={coverage:e.as??"coverage",start:e.asStart??e.start,end:e.asEnd??e.end,chrom:e.asChrom??e.chrom},this.createSegment=new Function("start","end","coverage","chrom","return {"+Object.entries(this.as).filter(([t,r])=>r).map(([t,r])=>`${JSON.stringify(r)}: ${t}`).join(", ")+"};"),this.ends=new ru}reset(){super.reset(),this.initialize()}initialize(){const e=this.as.coverage,t=this.as.end,r=this.as.chrom,i=this.startAccessor,s=this.endAccessor,o=this.chromAccessor,a=this.weightAccessor;let c,u,l,f=0,d=NaN;const h=this.ends;h.clear();const p=y=>{this._propagate(y),c=null},m=(y,x,A)=>{if(y==x)return;let w=!1;c&&(c[e]===A?(c[t]=x,w=!0):c[e]!=0&&p(c)),w||(c=this.createSegment(y,x,A,l))},g=()=>{let y=0;for(;(y=h.peekValue())!==void 0;)m(d,y,f),d=y,f-=h.pop();d=NaN,c&&p(c)};this.handle=y=>{const x=i(y);let A=0;for(;(A=h.peekValue())!==void 0&&A<x;)m(d,A,f),d=A,f-=h.pop();if(r){let S=o(y);S!==u&&(g(),l=S,u=l)}isNaN(d)||m(d,x,f),d=x;const w=a(y);f+=w,h.push(w,s(y))},this.complete=()=>{g(),super.complete()},this.beginBatch=y=>{g(),u=null,super.beginBatch(y)}}}function EI(n,e,t=s=>+s,r=0,i=n.length){const s=new ru,o=i-r;let a;for(a=0;a<e&&a<o;a++)s.push(a,t(n[r+a]));for(;a<o;a++){const l=t(n[r+a]);l>=s.peekValue()&&(s.push(a,l),s.pop())}const c=[];let u;for(;(u=s.pop())!==void 0;)c.push(n[r+u]);return c.reverse()}class CI{constructor(e,t=-1/0,r=1/0){this.maxSize=e,this.lowerLimit=t,this.upperLimit=r;const i=this.maxSize*2+1;this.lowerLimits=new Float64Array(i),this.upperLimits=new Float64Array(i),this.lowerChildren=new Int32Array(i),this.upperChildren=new Int32Array(i),this.reset()}reset(){this.lowerLimits.fill(0),this.upperLimits.fill(0),this.lowerChildren.fill(0),this.upperChildren.fill(0),this.n=1,this.lowerLimits[0]=this.lowerLimit,this.upperLimits[0]=this.upperLimit}_findSlot(e,t,r=0){if(e>=this.lowerLimits[r]&&t<=this.upperLimits[r]){const i=this.lowerChildren[r];if(i){const s=this._findSlot(e,t,i);return s>=0?s:this._findSlot(e,t,this.upperChildren[r])}else return r}else return-1}reserve(e,t){if(t-e<=0)throw new Error("Cannot reserve an empty or negative-size slot!");if(this.n+1>this.lowerLimits.length)return!1;const r=this._findSlot(e,t);if(r<0)return!1;const i=this.n++,s=this.n++;return this.lowerLimits[i]=this.lowerLimits[r],this.upperLimits[i]=e,this.lowerLimits[s]=t,this.upperLimits[s]=this.upperLimits[r],this.lowerChildren[r]=i,this.upperChildren[r]=s,!0}}class DI extends Te{get behavior(){return Wl}constructor(e,t){if(super(e),this.params=e,this._data=[],this.channel=e.channel??"x",!["x","y"].includes(this.channel))throw new Error("Invalid channel: "+this.channel);this.startPosAccessor=ue(this.params.pos),this.endPosAccessor=ue(this.params.pos2??this.params.pos),this.startPosBisector=dr(this.startPosAccessor),this.endPosBisector=dr(this.endPosAccessor),this.scoreAccessor=ue(this.params.score),this.widthAccessor=ue(this.params.width),this.laneAccessor=this.params.lane?ue(this.params.lane):i=>0,this.padding=this.params.padding??0,this.reservationMaps=new Map,this.resolution=t.getScaleResolution(this.channel);const r=()=>this._filterAndPropagate();this.schedule=()=>t.context.animator.requestTransition(r),this.resolution.addEventListener("domain",i=>this.schedule()),t._addBroadcastHandler("layoutComputed",()=>this.schedule())}complete(){const e=this.startPosAccessor;this._data.sort((t,r)=>e(t)-e(r));for(const t of new Set(this._data.map(this.laneAccessor)))this.reservationMaps.set(t,new CI(200));this.schedule(),super.complete()}_filterAndPropagate(){super.reset();const e=this.resolution.scale,t=this.resolution.getAxisLength();if(!t)return;for(const o of this.reservationMaps.values())o.reset();const r=e.domain(),s=EI(this._data,70,this.scoreAccessor,this.endPosBisector.left(this._data,r[0]),this.startPosBisector.right(this._data,r[1]));for(const o of s){let a=e(this.startPosAccessor(o))*t,c=e(this.endPosAccessor(o))*t;const u=c-a,l=this.widthAccessor(o)+this.padding*2;let f=(a+c)/2;const d=Math.max(0,(u-l)/2);if(d>0){const h=Math.max(0,l/2-f);f+=Math.min(h,d);const p=Math.max(0,l/2+f-t);f-=Math.min(p,d)}if(this.reservationMaps.get(this.laneAccessor(o)).reserve(f-l/2,f+l/2))if(this.params.asMidpoint){const h=Object.assign({},o);h[this.params.asMidpoint]=e.invert(f/t),this._propagate(h)}else this._propagate(o)}super.complete()}reset(){super.reset(),this._data=[],this.groups=new Map}handle(e){this._data.push(e)}}class II extends Te{constructor(e,t){super(e,t),this.params=e,this.predicate=void 0}initialize(){let e="";if(TI(this.params))e=this.params.expr;else if(BI(this.params)){const t=this.paramMediator.findValue(this.params.param);if(!t)throw new Error(`Cannot initialize filter transform. Selection parameter "${this.params.param}" not found!`);e=g8(this.params,t)}else throw new Error("Invalid filter params: "+JSON.stringify(this.params));this.predicate=this.paramMediator.createExpression(e),this.predicate.addListener(()=>this.repropagate())}handle(e){this.predicate(e)&&this._propagate(e)}}function TI(n){return"expr"in n}function BI(n){return"param"in n}class kI extends Te{get behavior(){return Ht}constructor(e){super(e),this.params=e;const t=e.index;if(e.fields){const r=He(e.fields).map(s=>ue(s)),i=He(e.as||e.fields);if(r.length!==i.length)throw new Error(`Lengths of "fields" (${r.length}), and "as" (${i.length}) do not match!`);this.handle=s=>{const o=r.map((c,u)=>c(s)??[]),a=o[0].length;for(let c=0;c<a;c++){const u=Object.assign({},s);for(let l=0;l<r.length;l++)u[i[l]]=c<o[l].length?o[l][c]:null;t&&(u[t]=c),this._propagate(u)}}}else this.handle=r=>{for(let i=0;i<r.length;i++){const s=Object.assign({},r[i]);t&&(s[t]=i),this._propagate(s)}}}}const FI=48;function*PI(n,e=","){const t=e.charCodeAt(0);let r=0;for(let i=0;i<n.length;i++){const s=n.charCodeAt(i);s==t?(yield r,r=0):r=r*10+s-FI}yield r}class MI extends Te{get behavior(){return Ht}constructor(e){super(e);const t=ue(e.exons??"exons"),r=ue(e.start??"start"),[i,s]=e.as||["exonStart","exonEnd"];this.handle=o=>{let a=r(o),c=a,u=!0;const l=t(o);for(const f of PI(l)){if(u)c=a+f;else{a=c+f;const d=Object.assign({},o);d[i]=c,d[s]=a,this._propagate(d)}u=!u}}}}class RI extends Te{get behavior(){return Ht}constructor(e){super(e);const t=He(e.field).map(s=>ue(s)),r=He(e.separator),i=He(e.as||e.field);if(t.length!==r.length||t.length!==i.length)throw new Error(`Lengths of "separator" (${r.length}), "fields" (${t.length}), and "as" (${i.length}) do not match!`);this.handle=s=>{if(t.some(c=>!c(s)))return;const o=t.map((c,u)=>c(s).split(r[u]));OI(o,s);const a=o[0].length;for(let c=0;c<a;c++){const u=Object.assign({},s);for(let l=0;l<t.length;l++)u[i[l]]=o[l][c];this._propagate(u)}}}}function OI(n,e){const t=n.map(r=>r.length);if(!t.every(r=>r==t[0]))throw new Error("Mismatching number of elements in the fields to be split: "+JSON.stringify(e))}class NI extends Te{get behavior(){return Rn}constructor(e,t){super(e,t),this.params=e,this.as=e.as,this.fn=void 0}initialize(){this.fn=this.paramMediator.createExpression(this.params.expr),this.fn.addListener(()=>this.repropagate())}handle(e){e[this.as]=this.fn(e),this._propagate(e)}}class hy extends Te{get behavior(){return Rn}constructor(e,t){e={channel:"x",...e},super(e),this.params=e;const r=e.channel;if(!["x","y"].includes(r))throw new Error("Invalid channel: "+r);const i=t.getScaleResolution(r).getGenome();if(!i)throw new Error("LinearizeGenomicCoordinate transform requires a locus scale!");const s=ue(e.chrom),o=He(e.pos).map(p=>ue(p)),a=He(e.as);if(o.length!=a.length)throw new Error('The number of "pos" and "as" elements must be equal!');const c=He(e.offset);let u;if(c.length==0)u=new Array(o.length).fill(0);else if(c.length==1)u=new Array(o.length).fill(c[0]);else if(c.length==o.length)u=c;else throw new Error(`Invalid "offset" parameter: ${JSON.stringify(e.offset)}!`);const l=new Function("datum","chromOffset","posAccessors",a.map((p,m)=>`datum[${JSON.stringify(p)}] = chromOffset + +posAccessors[${m}](datum) - ${u[m]};`).join(`
|
|
614
|
-
`));let f,d=0;const h=p=>{if(p!==f){if(d=i.cumulativeChromPositions.get(p),d===void 0)return;f=p}return d};this.handle=p=>{const m=s(p),g=h(m);if(g===void 0)throw new Error(`Unknown chromosome/contig "${m}" in datum: ${JSON.stringify(p)}`);l(p,g,o),this._propagate(p)}}}const dy={chars:JSON.parse('[{"id":87,"width":53,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":43.491,"chnl":15,"x":0,"y":0,"page":0},{"id":124,"width":17,"height":50,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":10.521,"chnl":15,"x":0,"y":42,"page":0},{"id":40,"width":20,"height":49,"xoffset":0,"yoffset":-32.571000000000005,"xadvance":11.214,"chnl":15,"x":0,"y":94,"page":0},{"id":41,"width":19,"height":49,"xoffset":0,"yoffset":-32.571000000000005,"xadvance":11.214,"chnl":15,"x":0,"y":145,"page":0},{"id":36,"width":32,"height":49,"xoffset":0,"yoffset":-34.419000000000004,"xadvance":24.360000000000003,"chnl":15,"x":0,"y":196,"page":0},{"id":125,"width":21,"height":48,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":12.642000000000001,"chnl":15,"x":0,"y":247,"page":0},{"id":91,"width":22,"height":48,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":12.852,"chnl":15,"x":0,"y":297,"page":0},{"id":93,"width":19,"height":48,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":12.852,"chnl":15,"x":0,"y":347,"page":0},{"id":123,"width":21,"height":48,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":12.642000000000001,"chnl":15,"x":0,"y":397,"page":0},{"id":106,"width":19,"height":48,"xoffset":0,"yoffset":-30.639000000000003,"xadvance":10.08,"chnl":15,"x":0,"y":447,"page":0},{"id":81,"width":43,"height":47,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":33.621,"chnl":15,"x":21,"y":447,"page":0},{"id":77,"width":45,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":38.997,"chnl":15,"x":66,"y":447,"page":0},{"id":64,"width":43,"height":44,"xoffset":0,"yoffset":-28.539,"xadvance":35.133,"chnl":15,"x":23,"y":397,"page":0},{"id":92,"width":28,"height":43,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":18.984,"chnl":15,"x":68,"y":397,"page":0},{"id":47,"width":28,"height":43,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":18.984,"chnl":15,"x":98,"y":397,"page":0},{"id":109,"width":42,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":34.545,"chnl":15,"x":113,"y":447,"page":0},{"id":119,"width":42,"height":31,"xoffset":0,"yoffset":-21.315,"xadvance":32.991,"chnl":15,"x":157,"y":447,"page":0},{"id":42,"width":25,"height":42,"xoffset":0,"yoffset":-31.626,"xadvance":17.85,"chnl":15,"x":128,"y":397,"page":0},{"id":37,"width":42,"height":41,"xoffset":0,"yoffset":-30.387,"xadvance":33.663000000000004,"chnl":15,"x":155,"y":397,"page":0},{"id":79,"width":42,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":33.621,"chnl":15,"x":199,"y":397,"page":0},{"id":102,"width":24,"height":41,"xoffset":0,"yoffset":-30.534000000000002,"xadvance":14.721,"chnl":15,"x":243,"y":397,"page":0},{"id":100,"width":31,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":23.520000000000003,"chnl":15,"x":269,"y":397,"page":0},{"id":98,"width":32,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":23.520000000000003,"chnl":15,"x":302,"y":397,"page":0},{"id":56,"width":32,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":336,"y":397,"page":0},{"id":38,"width":40,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":29.904000000000003,"chnl":15,"x":370,"y":397,"page":0},{"id":108,"width":17,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":9.912,"chnl":15,"x":412,"y":397,"page":0},{"id":107,"width":31,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":21.336000000000002,"chnl":15,"x":431,"y":397,"page":0},{"id":48,"width":33,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":464,"y":397,"page":0},{"id":71,"width":38,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":30.681,"chnl":15,"x":21,"y":347,"page":0},{"id":83,"width":31,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":22.785,"chnl":15,"x":61,"y":347,"page":0},{"id":63,"width":27,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":18.795,"chnl":15,"x":94,"y":347,"page":0},{"id":105,"width":18,"height":41,"xoffset":0,"yoffset":-30.639000000000003,"xadvance":10.08,"chnl":15,"x":123,"y":347,"page":0},{"id":51,"width":32,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":143,"y":347,"page":0},{"id":104,"width":31,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":23.436,"chnl":15,"x":177,"y":347,"page":0},{"id":67,"width":37,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":28.056,"chnl":15,"x":210,"y":347,"page":0},{"id":88,"width":37,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":27.258000000000003,"chnl":15,"x":249,"y":347,"page":0},{"id":68,"width":40,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":31.941000000000003,"chnl":15,"x":288,"y":347,"page":0},{"id":70,"width":32,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":23.751,"chnl":15,"x":330,"y":347,"page":0},{"id":34,"width":23,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":15.561000000000002,"chnl":15,"x":364,"y":347,"page":0},{"id":72,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":32.067,"chnl":15,"x":389,"y":347,"page":0},{"id":73,"width":18,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":11.760000000000002,"chnl":15,"x":429,"y":347,"page":0},{"id":74,"width":24,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":17.745,"chnl":15,"x":449,"y":347,"page":0},{"id":75,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":27.825000000000003,"chnl":15,"x":24,"y":297,"page":0},{"id":76,"width":31,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":21.567,"chnl":15,"x":475,"y":347,"page":0},{"id":66,"width":35,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":27.153000000000002,"chnl":15,"x":64,"y":297,"page":0},{"id":78,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":32.067,"chnl":15,"x":101,"y":297,"page":0},{"id":33,"width":18,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":11.298,"chnl":15,"x":141,"y":297,"page":0},{"id":80,"width":34,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":25.221,"chnl":15,"x":161,"y":297,"page":0},{"id":65,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":28.434,"chnl":15,"x":197,"y":297,"page":0},{"id":82,"width":36,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":26.313000000000002,"chnl":15,"x":237,"y":297,"page":0},{"id":35,"width":33,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":275,"y":297,"page":0},{"id":84,"width":34,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.801000000000002,"chnl":15,"x":310,"y":297,"page":0},{"id":85,"width":37,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":30.891000000000002,"chnl":15,"x":346,"y":297,"page":0},{"id":86,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":28.434,"chnl":15,"x":385,"y":297,"page":0},{"id":39,"width":16,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":8.568000000000001,"chnl":15,"x":425,"y":297,"page":0},{"id":69,"width":32,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.255000000000003,"chnl":15,"x":443,"y":297,"page":0},{"id":89,"width":36,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":26.208000000000002,"chnl":15,"x":23,"y":247,"page":0},{"id":90,"width":34,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":25.284000000000002,"chnl":15,"x":477,"y":297,"page":0},{"id":49,"width":31,"height":40,"xoffset":0,"yoffset":-30.156000000000002,"xadvance":24.360000000000003,"chnl":15,"x":61,"y":247,"page":0},{"id":50,"width":32,"height":40,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":94,"y":247,"page":0},{"id":57,"width":32,"height":40,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":128,"y":247,"page":0},{"id":94,"width":32,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":162,"y":247,"page":0},{"id":96,"width":21,"height":40,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":16.8,"chnl":15,"x":196,"y":247,"page":0},{"id":55,"width":33,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":219,"y":247,"page":0},{"id":54,"width":33,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":254,"y":247,"page":0},{"id":53,"width":32,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":289,"y":247,"page":0},{"id":52,"width":33,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":323,"y":247,"page":0},{"id":103,"width":31,"height":39,"xoffset":0,"yoffset":-21.630000000000003,"xadvance":21.84,"chnl":15,"x":358,"y":247,"page":0},{"id":112,"width":32,"height":39,"xoffset":0,"yoffset":-21.651,"xadvance":23.541,"chnl":15,"x":391,"y":247,"page":0},{"id":113,"width":31,"height":39,"xoffset":0,"yoffset":-21.651,"xadvance":23.520000000000003,"chnl":15,"x":425,"y":247,"page":0},{"id":116,"width":25,"height":39,"xoffset":0,"yoffset":-28.182000000000002,"xadvance":15.057,"chnl":15,"x":458,"y":247,"page":0},{"id":121,"width":31,"height":38,"xoffset":0,"yoffset":-21.273,"xadvance":21.651,"chnl":15,"x":34,"y":196,"page":0},{"id":59,"width":18,"height":36,"xoffset":0,"yoffset":-20.706,"xadvance":10.983,"chnl":15,"x":485,"y":247,"page":0},{"id":43,"width":32,"height":34,"xoffset":0,"yoffset":-24.486,"xadvance":24.360000000000003,"chnl":15,"x":67,"y":196,"page":0},{"id":60,"width":30,"height":33,"xoffset":0,"yoffset":-23.331000000000003,"xadvance":24.360000000000003,"chnl":15,"x":101,"y":196,"page":0},{"id":62,"width":31,"height":33,"xoffset":0,"yoffset":-23.331000000000003,"xadvance":24.360000000000003,"chnl":15,"x":133,"y":196,"page":0},{"id":117,"width":30,"height":32,"xoffset":0,"yoffset":-21.273,"xadvance":23.415000000000003,"chnl":15,"x":166,"y":196,"page":0},{"id":99,"width":29,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":20.055,"chnl":15,"x":198,"y":196,"page":0},{"id":110,"width":31,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":23.436,"chnl":15,"x":229,"y":196,"page":0},{"id":111,"width":32,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":23.814,"chnl":15,"x":262,"y":196,"page":0},{"id":126,"width":32,"height":26,"xoffset":0,"yoffset":-16.128,"xadvance":24.360000000000003,"chnl":15,"x":201,"y":447,"page":0},{"id":101,"width":31,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":22.176000000000002,"chnl":15,"x":296,"y":196,"page":0},{"id":114,"width":25,"height":32,"xoffset":0,"yoffset":-21.651,"xadvance":15.288,"chnl":15,"x":329,"y":196,"page":0},{"id":115,"width":27,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":18.186,"chnl":15,"x":356,"y":196,"page":0},{"id":97,"width":28,"height":32,"xoffset":0,"yoffset":-21.651,"xadvance":20.874000000000002,"chnl":15,"x":385,"y":196,"page":0},{"id":118,"width":31,"height":31,"xoffset":0,"yoffset":-21.273,"xadvance":21.672,"chnl":15,"x":415,"y":196,"page":0},{"id":61,"width":31,"height":29,"xoffset":0,"yoffset":-19.089000000000002,"xadvance":24.360000000000003,"chnl":15,"x":448,"y":196,"page":0},{"id":120,"width":30,"height":31,"xoffset":0,"yoffset":-21.273,"xadvance":20.916,"chnl":15,"x":21,"y":145,"page":0},{"id":58,"width":18,"height":31,"xoffset":0,"yoffset":-20.706,"xadvance":10.5,"chnl":15,"x":53,"y":145,"page":0},{"id":122,"width":28,"height":31,"xoffset":0,"yoffset":-21.273,"xadvance":18.984,"chnl":15,"x":73,"y":145,"page":0},{"id":95,"width":28,"height":16,"xoffset":0,"yoffset":0,"xadvance":19.278000000000002,"chnl":15,"x":235,"y":447,"page":0},{"id":45,"width":23,"height":24,"xoffset":0,"yoffset":-14.175,"xadvance":15.603000000000002,"chnl":15,"x":481,"y":196,"page":0},{"id":44,"width":17,"height":21,"xoffset":0,"yoffset":-4.956,"xadvance":9.534,"chnl":15,"x":103,"y":145,"page":0},{"id":46,"width":18,"height":15,"xoffset":0,"yoffset":-4.956,"xadvance":9.912,"chnl":15,"x":0,"y":497,"page":0},{"id":32,"width":0,"height":0,"xoffset":0,"yoffset":0,"xadvance":10.752,"chnl":15,"x":20,"y":497,"page":0}]'),common:{lineHeight:50.400000000000006,base:41.454,scaleW:512,scaleH:512,pages:1,packed:0,alphaChnl:0,redChnl:0,greenChnl:0,blueChnl:0}};class LI extends Te{get behavior(){return Rn}constructor(e,t){super(e),this.params=e;const r=Ql(dy),i=ue(e.field),s=e.as;let o=0;if(Qe(e.fontSize)){const a=t.paramMediator.createExpression(e.fontSize.expr);o=a(),a.addListener(()=>{o=a(),this.repropagate()})}else o=e.fontSize;this.handle=a=>{const c=i(a);c!==void 0?a[s]=r.measureWidth(c,o):a[s]=0,this._propagate(a)}}}const zI=65536;class UI extends Te{get behavior(){return Rn}constructor(e){super(e),this.params=e}reset(){super.reset(),this.initialize()}initialize(){const e=this.params,t=e.as||"lane",r=Ze(e.spacing)?e.spacing:1,i=ue(e.start),s=ue(e.end);if(!e.preference!=!e.preferredOrder)throw new Error('Must specify both "preference" and "preferredOrder"');if(e.preference){const o=new Float64Array(zI),a=ue(e.preference),c=e.preferredOrder;let u=1/0;this.handle=l=>{const f=i(l);f<u&&o.fill(-1/0),u=f;const d=c.indexOf(a(l));let h=-1;if(d>=0&&o[d]<f)h=d;else{const p=i(l);for(h=0;h<o.length&&!(o[h]<p);h++);if(h>=o.length)throw new Error("Out of lanes!")}o[h]=s(l)+r,l[t]=h,this._propagate(l)}}else{const o=new ru,a=new ru;let c=-1/0,u=0;this.handle=l=>{const f=i(l);for(;o.length&&(o.peekValue()<=f||f<c);){const h=o.pop();a.push(h,h)}c=f;let d=a.pop();d===void 0&&(d=u++),l[t]=d,this._propagate(l),o.push(d,s(l)+r)}}}}class GI extends Te{get behavior(){return Ht}constructor(e){if(super(e),this.params=e,e.as&&e.as.length!=e.fields.length)throw new Error('"fields" and "as" have unequal lengths!');const t=e.fields.map(i=>ue(i)),r=e.as?e.as:t.map(Se);this.handle=i=>{const s={};for(let o=0;o<t.length;o++)s[r[o]]=t[o](i);this._propagate(s)}}}class HI extends Te{get behavior(){return Rn}constructor(e){super(e),this.params=e;const t=new RegExp(e.regex),r=typeof e.as=="string"?[e.as]:e.as,i=ue(e.field);this.handle=s=>{const o=i(s);if(me(o)){const a=o.match(t);if(a){if(a.length-1!=r.length)throw new Error('The number of RegEx groups and the length of "as" do not match!');for(let c=0;c<r.length;c++)s[r[c]]=a[c+1]}else if(e.skipInvalidInput)for(let c=0;c<r.length;c++)s[r[c]]=void 0;else throw new Error(`"${o}" does not match the given regex: ${t.toString()}`)}else if(!e.skipInvalidInput)throw new Error(`Trying to match a non-string field. Encountered type: ${typeof o}, field content: "${o}".`);this._propagate(s)}}}class VI extends Te{get behavior(){return Ht}constructor(e){super(e),this.params=e;const t=He(e.columnRegex).map(d=>new RegExp(d));for(const d of t)if(RegExp("|"+d.source).exec("").length-1!=1)throw new Error(`Regex ${d.toString()} must have exactly one capturing group!`);const r=He(e.asValue);if(t.length!=r.length)throw new Error('Lengths of "columnRegex" and "as" are not equal!');const i=e.skipRegex?new RegExp(e.skipRegex):void 0,s=e.asKey||"sample";let o,a,c;const u=d=>{var g;const h=Object.keys(d);for(const y of t)if(!h.some(x=>y.test(x)))throw new Error(`No columns matching the regex ${y.toString()} found in the data!`);const p=new Map;for(const[y,x]of t.entries())for(const A of h){const w=(g=x.exec(A))==null?void 0:g[1];if(w!==void 0){let S=p.get(w);S||(S=[],p.set(w,S)),S[y]=A}}o=[...p.entries()],a=h.filter(y=>!t.some(x=>x.test(y))&&!(i&&i.test(y)));const m=[...a.map(y=>JSON.stringify(y)+": datum["+JSON.stringify(y)+"]"),JSON.stringify(s)+": sampleId",...r.map((y,x)=>JSON.stringify(y)+`: datum[attrs[${x}]]`)];c=new Function("datum","sampleId","attrs",`return {
|
|
615
|
-
|
|
656
|
+
chrM 16299`};function t6(n){if(!(n in o2))throw new Error(`Unknown assembly: ${n}`);return o2[n].split(`
|
|
657
|
+
`).map(t=>{const e=t.split(" ");return{name:e[0],size:parseInt(e[1])}})}const n6=/^([A-Za-z]+:)?\/\//;function ui(n,t){if(t&&n6.test(t))return t;const e=typeof n=="function"?n():n;if(!e)return t;if(!t)return e;if(/[#?]/.test(e))throw new Error(`Cannot append to a url with query or hash. Append: ${t}, base: ${e}`);return a2(e)+t}function a2(n){const t=n.replace(/[^/]*$/,"");return t===""?void 0:t.endsWith("://")?n+"/":t}class r6{constructor(t){if(this.config={name:"custom",...t},"baseUrl"in t)throw new Error("The `baseUrl` property in genome config has been removed in GenomeSpy v0.52.0. Use `url` instead. See https://genomespy.app/docs/genomic-data/genomic-coordinates/.");if(!ld(t))throw new Error("Not a genome configuration: "+JSON.stringify(t));if(this.chromosomes=[],this.cumulativeChromPositions=new Map,this.chromosomesByName=new Map,this.startByIndex=[],this.totalSize=0,l2(this.config))this.setChromSizes(this.config.contigs);else if(!ud(this.config)){const e=t6(this.config.name);if(e)this.setChromSizes(e);else throw new Error(`Unknown genome: ${this.config.name}. Please provide contigs or a URL. See https://genomespy.app/docs/genomic-data/genomic-coordinates/.`)}}get name(){return this.config.name}async load(t){if(ud(this.config))try{const e=ui(t,this.config.url),r=await fetch(e);if(!r.ok)throw new Error(`${r.status} ${r.statusText}`);this.setChromSizes(i6(await r.text()))}catch(e){throw new Error(`Could not load chrom sizes: ${this.config.url}. Reason: ${e.message}`)}}hasChrPrefix(){return this.chromosomes.some(t=>t.name.startsWith("chr"))}setChromSizes(t){let e=0;this.startByIndex=[0];for(let r=0;r<t.length;r++){this.startByIndex.push(e);const i=t[r].size,s={...t[r],continuousStart:e,continuousEnd:e+i,continuousInterval:[e,e+i],index:r,number:r+1,odd:!(r&1)};this.chromosomes.push(s);const o=s.name.replace(/^chr/i,"");for(const a of["chr"+o,"CHR"+o,"Chr"+o,s.number,""+s.number,o,s.name])this.cumulativeChromPositions.set(a,e),this.chromosomesByName.set(a,s);e+=s.size}this.totalSize=e}getExtent(){return[0,this.totalSize]}toContinuous(t,e){let r=this.cumulativeChromPositions.get(t);if(r===void 0)throw new Error("Unknown chromosome/contig: "+t);return r+ +e}toChromosome(t){if(t>this.totalSize)return;t=Math.floor(t);const e=Zn(this.startByIndex,t)-1;if(e>0&&e<=this.chromosomes.length)return this.chromosomes[e-1]}toChromosomal(t){const e=this.toChromosome(t);if(e)return{chrom:e.name,pos:Math.floor(t)-e.continuousStart}}getChromosome(t){return this.chromosomesByName.get(t)}formatInterval(t){return e6(...this.toChromosomalInterval(t))}toChromosomalInterval(t){const e=this.toChromosomal(t[0]+.5),r=this.toChromosomal(t[1]-.5);return r.pos+=1,[e,r]}toContinuousInterval(t){var i;let[e,r]=t;return r||(r=e),[this.toContinuous(e.chrom,e.pos??0),this.toContinuous(r.chrom,r.pos??((i=this.chromosomesByName.get(r.chrom))==null?void 0:i.size))]}toDiscreteChromosomeIntervals(t){const e=t[0],r=t[1],i=[];if(e.chrom===r.chrom)i.push({chrom:e.chrom,startPos:e.pos,endPos:r.pos});else{const s=this.chromosomes.findIndex(a=>a.name===e.chrom),o=this.chromosomes.findIndex(a=>a.name===r.chrom);i.push({chrom:e.chrom,startPos:e.pos,endPos:this.chromosomes[s].size});for(let a=s+1;a<o;a++)i.push({chrom:this.chromosomes[a].name,startPos:0,endPos:this.chromosomes[a].size});i.push({chrom:r.chrom,startPos:0,endPos:r.pos})}return i}continuousToDiscreteChromosomeIntervals(t){return this.toDiscreteChromosomeIntervals([this.toChromosomal(t[0]),this.toChromosomal(t[1])])}parseInterval(t){const e=t.match(/^(chr[0-9A-Z]+)(?::([0-9,]+)(?:-(?:(chr[0-9A-Z]+):)?([0-9,]+))?)?$/);if(e){const r=e[1];if(e.slice(2).every(a=>a===void 0)){const a=this.getChromosome(r);return a?[a.continuousStart,a.continuousEnd]:void 0}const i=e[3]||r,s=parseInt(e[2].replace(/,/g,"")),o=e[4]!==void 0?parseInt(e[4].replace(/,/g,"")):s;return[this.toContinuous(r,s-1),this.toContinuous(i,o)]}}}function i6(n){return px(n).map(([t,e])=>({name:t,size:parseInt(e)}))}function c2(n){return et(n)&&"chrom"in n}function s6(n){return n.every(c2)}function ld(n){return et(n)&&("name"in n||ud(n)||l2(n))}function ud(n){return ld(n)&&"url"in n}function l2(n){return ld(n)&&"contigs"in n}function o6(){const n=cd().numberingOffset(1);let t;n.genome=function(r){return arguments.length?(t=r,n):t},n.ticks=r=>{if(!t)return[];const i=n.domain(),s=n.numberingOffset(),[o,a]=[Math.max(i[0],0),Math.min(i[1],t.totalSize-1)].map(u=>t.toChromosome(u)),l=Math.max(1,Yr(i[0],i[1],r)),c=[];for(let u=o.index;u<=a.index;u++){const f=t.chromosomes[u],h=Math.max(f.continuousStart+l,i[0]-(i[0]-f.continuousStart)%l),A=Math.min(f.continuousEnd-l/4,i[1]+1);for(let d=h;d<=A;d+=l){const g=d-s;g>=i[0]&&g<i[1]&&c.push(g)}}return c},n.tickFormat=(r,i)=>{if(!t)return;if(i)throw new Error("Locus scale's tickFormat does not support a specifier!");const s=n.domain(),o=s[1]-s[0],a=n.numberingOffset(),c=Yr(s[0],s[1],Math.min(r,Math.ceil(o)))<1e6?Ze(","):Ze(".3s"),u=f=>f-t.toChromosome(f).continuousStart;return f=>c(u(f)+a)};const e=n.copy;return n.copy=()=>e().genome(t),n}function a6(n){return n.type=="locus"}function c6(n,t){const e=Va(n);return e?e.toChromosomal(t):t}function l6(n,t){const e=Va(n);return e&&c2(t)?e.toContinuous(t.chrom,t.pos):t}function u6(n,t){const e=Va(n);return e&&s6(t)?e.toContinuousInterval(t):t}function f6(n,t){const e=Va(n);return e?e.toChromosomalInterval(t):t}function A6(n){const t=Va(n);if(!t)throw new Error("No genome has been defined!");return t.getExtent()}function Va(n){if(n&&"toChromosomal"in n)return n;if(n&&"genome"in n)return n.genome()}/*!
|
|
658
|
+
* Adapted from vega-encode:
|
|
659
|
+
* https://github.com/vega/vega/blob/master/packages/vega-encode/src/ticks.js
|
|
660
|
+
*
|
|
661
|
+
* Copyright (c) 2015-2018, University of Washington Interactive Data Lab
|
|
662
|
+
* All rights reserved.
|
|
663
|
+
*
|
|
664
|
+
* BSD-3-Clause License: https://github.com/vega/vega-lite/blob/master/LICENSE
|
|
665
|
+
*/function u2(n,t,e){return ft(t)&&e!=null&&(t=Math.min(t,~~(Lo(n.domain())/e)||1)),et(t)&&(t.step,t=t.interval),t}function f2(n,t,e){var r=n.range(),i=Math.floor(r[0]),s=Math.ceil(qt(r));if(i>s&&(r=s,s=i,i=r),t=t.filter(function(a){return a=n(a),i<=a&&a<=s}),e>0&&t.length>1){for(var o=[t[0],qt(t)];t.length>e&&t.length>=3;)t=t.filter(function(a,l){return!(l%2)});t.length<3&&(t=o)}return t}function h6(n,t){return n.bins?f2(n,d6(n.bins,t)):n.ticks?n.ticks(t):n.domain()}function d6(n,t){var e=n.length,r=~~(e/(t||e));return r<2?n.slice():n.filter(function(i,s){return!(s%r)})}function g6(n,t,e){var r=n.tickFormat?n.tickFormat(t,e):e?Ze(e):String;if(MC(n.type)){var i=m6(e);r=n.bins?i:p6(r,i)}return r}function p6(n,t){return function(e){return n(e)?t(e):""}}function m6(n){var t=Ki(n||",");if(t.precision==null){switch(t.precision=12,t.type){case"%":t.precision-=2;break;case"e":t.precision-=1;break}return C6(Ze(t),Ze(".1f")(1)[1])}else return Ze(t)}function C6(n,t){return function(e){var r=n(e),i=r.indexOf(t),s,o;if(i<0)return r;for(s=y6(r,i),o=s<r.length?r.slice(s):"";--s>i;)if(r[s]!=="0"){++s;break}return r.slice(0,s)+o}}function y6(n,t){var e=n.lastIndexOf("e"),r;if(e>0)return e;for(e=n.length;--e>t;)if(r=n.charCodeAt(e),r>=48&&r<=57)return e+1}/*!
|
|
666
|
+
* Adapted from vega-encode:
|
|
667
|
+
* https://github.com/vega/vega/blob/master/packages/vega-encode/src/Scale.js
|
|
668
|
+
*
|
|
669
|
+
* Copyright (c) 2015-2018, University of Washington Interactive Data Lab
|
|
670
|
+
* All rights reserved.
|
|
671
|
+
*
|
|
672
|
+
* BSD-3-Clause License: https://github.com/vega/vega-lite/blob/master/LICENSE
|
|
673
|
+
*/const w6="locus",I6="index";var E6=5;function b6(n){const t=n.type;return!n.bins&&(t===hs||t===Na||t===Ta)}function A2(n){return Ke(n)&&![gn,I6,w6].includes(n)}function h2(n){return n||{warn:(t,...e)=>console.warn(t,...e)}}var x6=Cl(["set","modified","clear","type","scheme","schemeExtent","schemeCount","domain","domainMin","domainMid","domainMax","domainRaw","domainImplicit","nice","zero","bins","range","rangeStep","round","reverse","interpolate","interpolateGamma","zoom","fp64","name"]);function d2(n,t,e){e=h2(e);for(const r in n)if(!x6[r]){if(r==="padding"&&A2(t.type))continue;Ft(t[r])?t[r](n[r]):e.warn("Unsupported scale property: "+r)}F6(t,n,k6(t,n,g2(t,n,e)))}function B6(n,t){const e=v6(n),r=fe(e);if(!r)throw new Error("Unknown scale type: "+e);const i=r();return!n.domain&&Ke(i.type)&&(n.domain=[0,0]),d2(n,i,t),i}function v6(n){var t=n.type,e="",r;return t===gn?gn+"-"+hs:(Q6(n)&&(r=n.rawDomain?n.rawDomain.length:n.domain?n.domain.length+ +(n.domainMid!=null):0,e=r===2?gn+"-":r===3?ds+"-":""),(e+t||hs).toLowerCase())}function Q6(n){const t=n.type;return Ke(t)&&t!==xC&&t!==BC&&(n.scheme||n.range&&n.range.length&&n.range.every(Ce))}function g2(n,t,e){if(!n.domain)return 0;e=h2(e);var r=S6(n,t.domainRaw,e);if(r>-1)return r;var i=t.domain,s=n.type,o=t.zero||t.zero===void 0&&b6(n),a,l;return i?(A2(s)&&t.padding&&i[0]!==qt(i)&&(i=D6(s,i,t.range,t.padding,t.exponent,t.constant)),(o||t.domainMin!=null||t.domainMax!=null||t.domainMid!=null)&&(a=(i=i.slice()).length-1||1,o&&(i[0]>0&&(i[0]=0),i[a]<0&&(i[a]=0)),t.domainMin!=null&&(i[0]=t.domainMin),t.domainMax!=null&&(i[a]=t.domainMax),t.domainMid!=null&&(l=t.domainMid,(l<i[0]||l>i[a])&&e.warn("Scale domainMid exceeds domain min or max.",l),i.splice(a,0,l))),n.domain(p2(s,i,e)),s===Wh&&n.unknown(t.domainImplicit?mh:void 0),t.nice&&n.nice&&n.nice(t.nice!==!0&&u2(n,t.nice)||null),i.length):0}function S6(n,t,e){return t?(n.domain(p2(n.type,t,e)),t.length):-1}function D6(n,t,e,r,i,s){e??(e=[0,1]);var o=Math.abs(qt(e)-e[0]),a=o/(o-2*r),l=n===gr?ig(t,null,a):n===Ta?zf(t,null,a,.5):n===Na?zf(t,null,a,i||1):n===Ru?Rb(t,null,a,s||1):rg(t,null,a);return t=t.slice(),t[0]=l[0],t[t.length-1]=l[1],t}function p2(n,t,e){if(MC(n)){var r=Math.abs(t.reduce(function(i,s){return i+(s<0?-1:s>0?1:0)},0));r!==t.length&&e.warn("Log scale domain includes zero: "+Yf(t))}return t}function k6(n,t,e){let r=t.bins;if(r&&!Xe(r)){const i=(r.start==null||r.stop==null)&&n.domain(),s=r.start==null?i[0]:r.start,o=r.stop==null?qt(i):r.stop,a=r.step;a||Ne("Scale bins parameter missing step property."),r=Ko(s,o+a,a)}return r?n.bins=r:n.bins&&delete n.bins,n.type===Zh&&(r?!t.domain&&!t.domainRaw&&(n.domain(r),e=r.length):n.bins=n.domain()),e}function F6(n,t,e){var r=n.type,i=t.round||!1,s=t.range;if(t.rangeStep!=null)s=M6(r,t,e);else if(t.scheme&&(s=R6(r,t,e),Ft(s))){if(n.interpolator)return n.interpolator(s);Ne(`Scale type ${r} does not support interpolating color schemes.`)}if(s&&Tu(r))return n.interpolator(Pu(fd(s,t.reverse),t.interpolate,t.interpolateGamma));s&&t.interpolate&&n.interpolate?n.interpolate(RC(t.interpolate,t.interpolateGamma)):Ft(n.round)?n.round(i):Ft(n.rangeRound)&&n.interpolate(i?Ma:hr),s&&n.range(fd(s,t.reverse))}function M6(n,t,e){n!==SC&&n!==Xh&&Ne("Only band and point scales support rangeStep.");var r=(t.paddingOuter!=null?t.paddingOuter:t.padding)||0,i=n===Xh?1:(t.paddingInner!=null?t.paddingInner:t.padding)||0;return[0,t.rangeStep*Kh(e,i,r)]}function R6(n,t,e){var r=t.schemeExtent,i,s;return Xe(t.scheme)?s=Pu(t.scheme,t.interpolate,t.interpolateGamma):(i=t.scheme.toLowerCase(),s=ed(i),s||Ne(`Unrecognized scheme name: ${t.scheme}`)),e=n===QC?e+1:n===Zh?e-1:n===jh||n===vC?+t.schemeCount||E6:e,Tu(n)?m2(s,r,t.reverse):Ft(s)?G8(m2(s,r),e):n===Wh?s:s.slice(0,e)}function m2(n,t,e){return Ft(n)&&(t||e)?U8(n,fd(t||[0,1],e)):n}function fd(n,t){return t?n.slice().reverse():n}class N6{constructor({getParamMediator:t,onRangeChange:e,onDomainChange:r,getGenomeStore:i}){D(this,zt);D(this,wn);D(this,Ec,new Set);D(this,bc);D(this,xc);D(this,Bc);D(this,Xs);D(this,Zs,0);F(this,bc,t),F(this,xc,e),F(this,Bc,r),F(this,Xs,i)}get scale(){return m(this,wn)}getLocusGenome(){var r;const t=(r=m(this,Xs))==null?void 0:r.call(this),e=t==null?void 0:t.getGenome();if(!e)throw new Error("No genome has been defined!");return e}createScale(t){const e=B6({...P(this,zt,M0).call(this,t),range:void 0});return e.props=t,"unknown"in e&&e.unknown(null),F(this,wn,e),P(this,zt,WE).call(this,t),P(this,zt,R0).call(this),P(this,zt,XE).call(this),m(this,wn)}reconfigureScale(t){const e=m(this,wn);!e||e.type=="null"||(d2({...P(this,zt,M0).call(this,t),range:void 0},e),e.props=t,P(this,zt,R0).call(this))}withDomainNotificationsSuppressed(t){F(this,Zs,m(this,Zs)+1);try{t()}finally{F(this,Zs,m(this,Zs)-1)}}}wn=new WeakMap,Ec=new WeakMap,bc=new WeakMap,xc=new WeakMap,Bc=new WeakMap,Xs=new WeakMap,Zs=new WeakMap,zt=new WeakSet,WE=function(t){var s;const e=m(this,wn);if(!e||!a6(e))return;const r=(s=m(this,Xs))==null?void 0:s.call(this),i=r==null?void 0:r.getGenome(t.assembly);if(!i)throw new Error("No genome has been defined!");e.genome(i)},M0=function(t){if(!("assembly"in t))return t;const{assembly:e,...r}=t;return r},R0=function(){const t=m(this,wn);if(!t)return;const e=t.props;m(this,Ec).forEach(s=>s.invalidate());const r=P6({range:e.range,reverse:e.reverse,createExpression:s=>m(this,bc).call(this).createExpression(s),registerExpr:s=>m(this,Ec).add(s)});if(!r)return;if("values"in r){t.range(r.values);return}const i=()=>t.range(r.evaluate());r.setup(i),i()},XE=function(){const t=m(this,wn);if(!t)return;const e=t.range,r=t.domain,i=()=>{var o;return(o=m(this,xc))==null?void 0:o.call(this)};T6(t,{onRangeChange:i,onDomainChange:()=>{var o;m(this,Zs)>0||(o=m(this,Bc))==null||o.call(this)},range:e,domain:r}),i()};function T6(n,{onRangeChange:t,onDomainChange:e,range:r,domain:i}){typeof r=="function"&&(n.range=(function(s){if(arguments.length)r(s),t==null||t();else return r()})),typeof i=="function"&&(n.domain=(function(s){if(arguments.length)i(s),e==null||e();else return i()}))}function P6({range:n,reverse:t,createExpression:e,registerExpr:r}){if(!n||!Xe(n))return null;const i=(s,o)=>o?s.slice().reverse():s;if(n.some(it)){let s;return{dynamic:!0,evaluate:()=>i(s.map(l=>l()),t),setup:l=>{s=n.map(c=>{if(it(c)){const u=e(c.expr);return u.addListener(l),r(u),()=>u(null)}return()=>c})}}}return{dynamic:!1,values:i(n,t)}}function Hu(n,t,e){if(e=e||[],n.some(o=>o===null)){if(n.every(o=>o===null))return null;throw console.warn(n),new Error("Cannot merge objects with nulls!")}const r={},i=(o,a)=>o===a||ms(o)&&ms(a)||ms(o)&&a===!0||o===!0&&et(a)||Array.isArray(o)&&Array.isArray(a)&&o.length===a.length&&o.every((l,c)=>l===a[c]),s=o=>{for(let a in o){const l=o[a];if(!e.includes(a)&&l!==void 0)if(r[a]!==void 0&&!i(r[a],l))console.warn(`Conflicting property ${a} of ${t}: (${JSON.stringify(r[a])} and ${JSON.stringify(o[a])}). Using ${JSON.stringify(r[a])}.`);else{const c=r[a];if(ms(c))ms(l)&&(r[a]=Hu([c,l],a));else if(ms(l)){if(!(c===!0||c===void 0))throw new Error("Bug in merge! Target is: "+c);r[a]=Hu([{},l],a)}else r[a]=l}}};for(const o of n)s(o);return r}function ms(n){return et(n)&&!Array.isArray(n)}const C2="quantitative",y2="ordinal",w2="nominal",Ja="locus",I2="index";function L6(n,t,e){const r={};return e&&(r.zero=!1),wa(n)?r.nice=!e:rr(n)?r.scheme=t==w2?"tableau10":t==y2?"blues":"viridis":Kl(n)?r.range=n=="shape"?["circle","square","triangle-up","cross","diamond"]:[]:n=="size"?r.range=[0,400]:n=="angle"&&(r.range=[0,360]),r}function O6(n,t){if(t==I2||t==Ja){if(RA(n))return t;throw new Error(n+" does not support "+t+" data type. Only positional channels do.")}const e={x:["band","band","linear"],y:["band","band","linear"],size:[void 0,"point","linear"],opacity:[void 0,"point","linear"],fillOpacity:[void 0,"point","linear"],strokeOpacity:[void 0,"point","linear"],color:["ordinal","ordinal","linear"],fill:["ordinal","ordinal","linear"],stroke:["ordinal","ordinal","linear"],strokeWidth:[void 0,void 0,"linear"],shape:["ordinal","ordinal",void 0],dx:[void 0,void 0,"null"],dy:[void 0,void 0,"null"],angle:[void 0,void 0,"linear"],sample:["null",void 0,void 0]},i=["sample"].includes(n)?"null":e[n]?e[n][[w2,y2,C2].indexOf(t)]:t==C2?"linear":"ordinal";if(i===void 0)throw new Error('Channel "'+n+'" is not compatible with "'+t+'" data type. Use of a proper scale may be needed.');return i}function U6(n,t){wa(t)&&n.type!=="ordinal"&&(n.range=[0,1]),t=="opacity"&&Ke(n.type)&&(n.clamp=!0)}function G6({channel:n,dataType:t,members:e,isExplicitDomain:r}){const i=Array.from(e).map(a=>a.channelDef.scale).filter(a=>a!==void 0),s=Hu(i,"scale",["domain"]);if(s===null||s.type=="null")return{type:"null"};const o={...L6(n,t,r),...s};return o.type||(o.type=O6(n,t)),n=="y"&&pr(o.type)&&o.reverse==null&&(o.reverse=!0),o.range&&o.scheme&&delete o.scheme,!("zoom"in o)&&[I2,Ja].includes(o.type)&&(o.zoom=!0),U6(o,n),o}class qa extends Array{constructor(){super(),this.type=void 0}extend(t){return this}extendAll(t){if(t instanceof qa&&t.type!=this.type)throw new Error(`Cannot combine different types of domains: ${this.type} and ${t.type}`);for(const e of t)this.extend(e);return this}extendAllWithAccessor(t,e){for(const r of t)this.extend(e(r));return this}}class Ad extends qa{constructor(){super(),this.type="quantitative"}extend(t){return t==null||Number.isNaN(t)?this:(t=+t,this.length?t<this[0]?this[0]=t:t>this[1]&&(this[1]=t):(this.push(t),this.push(t)),this)}}class E2 extends qa{constructor(){super(),this.type="ordinal",this.uniqueValues=new Set}extend(t){return t==null||Number.isNaN(t)?this:(this.uniqueValues.has(t)||(this.uniqueValues.add(t),this.push(t)),this)}}class b2 extends E2{constructor(){super(),this.type="nominal"}}class z6 extends qa{constructor(t){super();let e=0;for(let r=1;r<t.length;r++)e+=Math.sign(t[r]-t[r-1]);if(Math.abs(e)!=t.length-1)throw new Error("Piecewise domain must be strictly increasing or decreasing: "+JSON.stringify(t));t.forEach(r=>this.push(r))}extend(t){if(this.includes(t))return this;throw new Error("Piecewise domains are immutable and cannot be unioned!")}}const x2={quantitative:Ad,index:Ad,locus:Ad,nominal:b2,ordinal:E2};function B2(n,t){if(n=="quantitative"&&H6(t)){const e=new z6(t);return e.type=n,e}else if(x2[n]){const e=new x2[n];return e.type=n,t&&e.extendAll(t),e}throw new Error("Unknown type: "+n)}function H6(n){return n&&n.length>0&&n.length!=2&&n.every(t=>typeof t=="number")}class Y6{constructor({getMembers:t,getType:e,getLocusExtent:r,fromComplexInterval:i}){D(this,$s);D(this,eo);D(this,vc);D(this,Qc);D(this,Qi);F(this,$s,t()),F(this,eo,e),F(this,vc,r),F(this,Qc,i)}get initialDomainSnapshot(){return m(this,Qi)}hasConfiguredDomain(){return!!this.getConfiguredDomain()}getConfiguredOrDefaultDomain(t=!1){return this.getConfiguredDomain()??J6(m(this,eo).call(this),m(this,vc),t?this.getDataDomain():void 0)}getConfiguredDomain(){return _6(m(this,$s),m(this,Qc))}getDataDomain(){return V6(m(this,$s),m(this,eo))}captureInitialDomain(t,e){if(!m(this,Qi)&&Ke(t.type)){const r=t.domain();Lo(r)>0&&F(this,Qi,r)}return e?!1:(F(this,Qi,t.domain()),!0)}}$s=new WeakMap,eo=new WeakMap,vc=new WeakMap,Qc=new WeakMap,Qi=new WeakMap;function _6(n,t){const e=Array.from(n).map(r=>r.channelDef).filter(r=>{var i;return(i=r.scale)==null?void 0:i.domain}).map(r=>B2(r.type,t(r.scale.domain)));if(e.length>0)return e.reduce((r,i)=>r.extendAll(i))}function V6(n,t){return Array.from(n).map(e=>{var r;return(r=e.dataDomainSource)==null?void 0:r.call(e,e.channel,t())}).filter(e=>!!e).reduce((e,r)=>e.extendAll(r))}function J6(n,t,e){return n==Ja?t():e??[]}function q6(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}function K6(n,t,e){return n*Math.pow(t/n,e)}class j6{constructor({getScale:t,getAnimator:e,getInitialDomainSnapshot:r,getResetDomain:i,fromComplexInterval:s,getGenomeExtent:o}){D(this,Ht);D(this,Sc);D(this,Dc);D(this,to);D(this,no);D(this,kc);F(this,Ht,t),F(this,Sc,e),F(this,Dc,r),F(this,to,i),F(this,no,s),F(this,kc,o)}getZoomExtent(){const t=m(this,Ht).call(this),e=t.props.zoom;return W6(t,e,m(this,no),m(this,kc),m(this,Dc))}isZoomable(){return this.isZoomingSupported()&&!!m(this,Ht).call(this).props.zoom}isZoomingSupported(){return Ke(m(this,Ht).call(this).type)}isZoomed(){return this.isZoomingSupported()&&Ul(m(this,to).call(this),m(this,Ht).call(this).domain())}zoom(t,e,r){if(!this.isZoomingSupported())return!1;const i=m(this,Ht).call(this),s=i.domain();let o=X6(i,s,t,e,r);const a=this.getZoomExtent();return o=Nb(o,a[0],a[1]),[0,1].some(l=>o[l]!=s[l])?(i.domain(o),!0):!1}async zoomTo(t,e=!1){if(Po(e)&&(e=e?700:0),!this.isZoomingSupported())throw new Error("Not a zoomable scale!");const r=m(this,no).call(this,t),i=m(this,Sc).call(this),s=m(this,Ht).call(this),o=s.domain();if(e>0&&o.length==2){const a=o[1]-o[0],l=r[1]-r[0],c=o[0]+a/2,u=r[0]+l/2,f=o[0]==r[0],h=o[1]==r[1];await i.transition({duration:e,easingFunction:q6,onUpdate:A=>{const d=K6(a,l,A),g=a==l?A:(a-d)/(a-l),p=g*u+(1-g)*c,C=[f?o[0]:p-d/2,h?o[1]:p+d/2];s.domain(C)}}),s.domain(r)}else s.domain(r),i==null||i.requestRender()}resetZoom(){if(!this.isZoomingSupported())throw new Error("Not a zoomable scale!");const t=m(this,Ht).call(this),e=t.domain(),r=m(this,to).call(this);return[0,1].some(i=>r[i]!=e[i])?(t.domain(r),!0):!1}getZoomLevel(){return this.isZoomable()?Lo(this.getZoomExtent())/Lo(m(this,Ht).call(this).domain()):1}}Ht=new WeakMap,Sc=new WeakMap,Dc=new WeakMap,to=new WeakMap,no=new WeakMap,kc=new WeakMap;function W6(n,t,e,r,i){return Z6(t)&&Xe(t.extent)?e(t.extent):t&&n.props.type=="locus"?r():i()}function X6(n,t,e,r,i){let s=[...t],o=n.invert(r);switch(n.props.reverse&&(i=-i),"align"in n&&(o+=n.align()),n.type){case"linear":case"index":case"locus":s=kb(s,i||0),s=rg(s,o,e);break;case"log":s=Fb(s,i||0),s=ig(s,o,e);break;case"pow":case"sqrt":{const a=n;s=Mb(s,i||0,a.exponent()),s=zf(s,o,e,a.exponent());break}default:throw new Error("Zooming is not implemented for: "+n.type)}return s}function Z6(n){return et(n)}fe("index",cd,["continuous"]),fe("locus",o6,["continuous"]),fe("null",td,[]);class $6{constructor(t){D(this,re);D(this,In,new Set);D(this,ro,{domain:new Set,range:new Set});D(this,Re);D(this,En);D(this,Yt);this.channel=t,this.type=null,this.name=void 0,F(this,En,new Y6({getMembers:()=>m(this,In),getType:()=>this.type,getLocusExtent:()=>P(this,re,P0).call(this),fromComplexInterval:this.fromComplexInterval.bind(this)})),F(this,Re,new N6({getParamMediator:()=>m(this,re,N0).paramMediator,onRangeChange:()=>P(this,re,ul).call(this,"range"),onDomainChange:()=>P(this,re,ul).call(this,"domain"),getGenomeStore:()=>m(this,re,T0).genomeStore})),F(this,Yt,new j6({getScale:()=>this.getScale(),getAnimator:()=>m(this,re,T0).animator,getInitialDomainSnapshot:()=>m(this,En).initialDomainSnapshot,getResetDomain:()=>m(this,En).getConfiguredOrDefaultDomain(),fromComplexInterval:this.fromComplexInterval.bind(this),getGenomeExtent:()=>P(this,re,P0).call(this)}))}get zoomExtent(){return(m(this,Re).scale&&Ke(m(this,Re).scale.type)&&m(this,Yt).getZoomExtent())??[-1/0,1/0]}addEventListener(t,e){m(this,ro)[t].add(e)}removeEventListener(t,e){m(this,ro)[t].delete(e)}registerMember(t){return P(this,re,ZE).call(this,t),()=>m(this,In).delete(t)&&m(this,In).size===0}reconfigure(){const t=P(this,re,Nf).call(this,!0);P(this,re,L0).call(this,()=>m(this,Re).reconfigureScale(t))}reconfigureDomain(){const t=P(this,re,Nf).call(this,!0);P(this,re,L0).call(this,()=>{g2(m(this,Re).scale,t)})}get scale(){if(m(this,Re).scale)return m(this,Re).scale;throw new Error("ScaleResolution.scale accessed before initialization. Call initializeScale().")}getScale(){return m(this,Re).scale??this.initializeScale()}initializeScale(){if(m(this,Re).scale)return m(this,Re).scale;const t=P(this,re,Nf).call(this);return m(this,Re).createScale(t)}getDomain(){return this.getScale().domain()}getDataDomain(){return m(this,En).getDataDomain()}getComplexDomain(){return f6(P(this,re,No).call(this),this.getDomain())}isZoomed(){return m(this,Yt).isZoomed()}isZoomable(){return m(this,Yt).isZoomable()}zoom(t,e,r){return m(this,Yt).zoom(t,e,r)}async zoomTo(t,e=!1){return m(this,Yt).zoomTo(t,e)}resetZoom(){return m(this,Yt).resetZoom()}getZoomLevel(){return m(this,Yt).getZoomLevel()}getAxisLength(){if(this.channel!=="x"&&this.channel!=="y")throw new Error("Axis length is only defined for x and y channels!");const t=Array.from(m(this,In)).map(e=>{var r;return(r=e.view.coords)==null?void 0:r[this.channel==="x"?"width":"height"]}).filter(e=>e>0);return t.length?t.reduce((e,r)=>Math.min(e,r),1e4):0}invertToComplex(t){const e=this.getScale();if("invert"in e){const r=e.invert(t);return this.toComplex(r)}else throw new Error("The scale does not support inverting!")}toComplex(t){return c6(P(this,re,No).call(this),t)}fromComplex(t){return l6(P(this,re,No).call(this),t)}fromComplexInterval(t){return this.type==Ja?u6(P(this,re,No).call(this),t):t}}In=new WeakMap,ro=new WeakMap,Re=new WeakMap,En=new WeakMap,Yt=new WeakMap,re=new WeakSet,N0=function(){const t=m(this,In).values().next().value;if(!t)throw new Error("ScaleResolution has no members!");return t.view},T0=function(){return m(this,re,N0).context},P0=function(){return A6(P(this,re,No).call(this))},No=function(){if(this.type===Ja)return m(this,Re).scale??m(this,Re).getLocusGenome()},ul=function(t){for(const e of m(this,ro)[t].values())e({type:t,scaleResolution:this})},ZE=function(t){var a;const{channel:e,channelDef:r}=t,i=r.type==null&&this.type;if(e!="sample"&&!r.type&&!NA(e)&&!i)throw new Error(`The "type" property must be defined in channel definition: "${e}": ${JSON.stringify(r)}. Must be one of: "quantitative", "ordinal", "nominal", "locus", "index"`);const s=e=="sample"?"nominal":r.type,o=(a=r==null?void 0:r.scale)==null?void 0:a.name;if(o){if(this.name!==void 0&&o!=this.name)throw new Error(`Shared scales have conflicting names: "${o}" vs. "${this.name}"!`);this.name=o}if(!i){if(!this.type)this.type=s;else if(s!==this.type&&!NA(e))throw new Error(`Can not use shared scale for different data types: ${this.type} vs. ${s}. Use "resolve: independent" for channel ${this.channel}`)}m(this,In).add(t)},$E=function(){return m(this,En).hasConfiguredDomain()},eb=function(){const t=m(this,Re).scale;if(!t)return!1;const e=t.domain();return Ke(t.type)?e.length>2||e.length==2&&(e[0]!==0||e[1]!==0):e.length>0},tb=function(){return G6({channel:this.channel,dataType:this.type,members:m(this,In),isExplicitDomain:P(this,re,$E).call(this)})},Nf=function(t=!1){const e=P(this,re,tb).call(this);if(e===null||e.type=="null")return{type:"null"};const r=m(this,En).getConfiguredOrDefaultDomain(t);return r&&r.length>0?e.domain=r:pr(e.type)&&(e.domain=new b2),!e.domain&&e.domainMid!==void 0&&(e.domain=[e.domainMin??0,e.domainMax??1]),e},L0=function(t){const e=m(this,Re).scale;if(!e||e.type=="null")return;const r=P(this,re,eb).call(this),i=e.domain();if(m(this,Re).withDomainNotificationsSuppressed(t),m(this,En).captureInitialDomain(e,r)){P(this,re,ul).call(this,"domain");return}const s=e.domain();Ul(s,i)||(this.isZoomable()?m(this,Re).withDomainNotificationsSuppressed(()=>{e.domain(i)}):m(this,Yt).isZoomingSupported()?(m(this,Re).withDomainNotificationsSuppressed(()=>{e.domain(i)}),this.zoomTo(s,500)):P(this,re,ul).call(this,"domain"))};function v2(n){const t=new Set;function e(r){for(const i of Object.values(r.resolutions.scale))t.add(i)}for(const r of tt(n)){r.visit(e);for(const i of r.getDataAncestors()){if(!i.options.contributesToScaleDomain)break;e(i)}}t.forEach(r=>r.reconfigureDomain())}function hd(...n){for(const t of n)if(t!==void 0)return t}class e5{constructor(t){D(this,Bf);D(this,bn,new Set);this.channel=t}get scaleResolution(){const t=m(this,bn).values().next().value;return t==null?void 0:t.view.getScaleResolution(this.channel)}registerMember(t){return P(this,Bf,nb).call(this,t),()=>this.removeMember(t)&&m(this,bn).size===0}removeMember(t){const e=m(this,bn).delete(t);return e&&od(this,"axisProps"),e}getAxisProps(){return Uu(this,"axisProps",()=>{const t=Array.from(m(this,bn)).map(e=>{const r=e.view.mark.encoding[e.channel];return"axis"in r&&r.axis});return t.length>0&&t.some(e=>e===null)?null:Hu(t.filter(e=>e!==void 0),"axis",["title"])})}getTitle(){const t=s=>{var a;const o=uQ(s.view,s.channel);if(!Nt(o))return{member:s,explicitTitle:hd("axis"in o?(a=o.axis)==null?void 0:a.title:void 0,o.title),implicitTitle:hd(nr(o)?o.field:void 0,ya(o)?o.expr:void 0)}},e=Array.from(m(this,bn)).map(t),r=e.filter(s=>{var o;if(NA(s.member.channel)&&!s.explicitTitle){const a=Xr(s.member.channel);return((o=e.find(l=>l.member.view==s.member.view&&l.member.channel==a))==null?void 0:o.explicitTitle)===void 0}return!0}),i=new Set(r.map(s=>hd(s.explicitTitle,s.implicitTitle)).filter(Ce));return i.size?[...i].join(", "):null}}bn=new WeakMap,Bf=new WeakSet,nb=function(t){const{view:e}=t,r=e.getScaleResolution(this.channel);if(!r)throw new Error("Cannot find a scale resolution!");if(this.scaleResolution&&r!==this.scaleResolution)throw new Error(`Shared axes must have a shared scale! Channel: ${this.channel}, existing views: [${Array.from(m(this,bn)).map(i=>i.view.getPathString()).join(", ")}], new view: ${e.getPathString()}.`);m(this,bn).add(t),od(this,"axisProps")};function Q2(n,t,{spacing:e,devicePixelRatio:r,offset:i,reverse:s}={}){e=e||0,i=i||0;let o=0,a=0;for(const d of n)o+=Yu(d.px)+(dd(d)?0:e),a+=Yu(d.grow);o-=e;const l=Math.max(0,t-o),c=r!==void 0?d=>Math.round(d*r)/r:d=>d,u=[],f=[],h=d=>{const g=u.length;if(!g)return;const p=(d?e:0)*(s?-1:1);A-=p;for(let C=0;C<g;C++)f.push({location:A+(C+1)/(g+1)*p,size:0});A+=p,u.length=0};let A=s?Math.max(t,o):0+i;if(n.length==1&&dd(n[0]))return[{location:A,size:0}];for(let d=0;d<n.length;d++){const g=n[d];if(dd(g))u.push(g);else{h(f.length>0);const p=Yu(g.px)+(a?Yu(g.grow)/a*l:0);s&&(A-=p),f.push({location:c(A),size:c(p)}),s?A-=e:A+=p+e}}return A+=s?e:-e,h(!1),f}function t5(n){let t=0,e=0;for(const r of n)t=Math.max(t,r.px??0),e=Math.max(e,r.grow??0);return{px:t,grow:e}}const x0=class x0{constructor(t,e){D(this,Fc);this.width=t,this.height=e}addPadding(t){return P(this,Fc,O0).call(this,t.width,t.height)}subtractPadding(t){return P(this,Fc,O0).call(this,-t.width,-t.height)}isGrowing(){return!!(this.width.grow||this.height.grow)}};Fc=new WeakSet,O0=function(t,e){return new x0({px:(this.width.px??0)+t,grow:this.width.grow},{px:(this.height.px??0)+e,grow:this.height.grow})};let Cr=x0;const Ka=Object.freeze({px:0,grow:0}),S2=new Cr(Ka,Ka);function dd(n){return!n.px&&!n.grow}function Yu(n){return n||0}function n5(n){return n&&(ft(n.px)||ft(n.grow))}function D2(n){if(R2(n))throw new Error("parseSizeDef does not accept step-based sizes.");if(n5(n))return n;if(ft(n))return{px:n,grow:0};if(n==="container")return{px:0,grow:1};if(!n)return{px:0,grow:1};throw new Error(`Invalid sizeDef: ${n}`)}class ot{constructor(t,e,r,i){this.top=t||0,this.right=e||0,this.bottom=r||0,this.left=i||0}get width(){return this.left+this.right}get height(){return this.top+this.bottom}expand(t){return t<=0?this:new ot(this.top+t,this.right+t,this.bottom+t,this.left+t)}add(t){return new ot(this.top+t.top,this.right+t.right,this.bottom+t.bottom,this.left+t.left)}subtract(t){return new ot(this.top-t.top,this.right-t.right,this.bottom-t.bottom,this.left-t.left)}union(t){return new ot(Math.max(this.top,t.top),Math.max(this.right,t.right),Math.max(this.bottom,t.bottom),Math.max(this.left,t.left))}getHorizontal(){return new ot(0,this.right,0,this.left)}getVertical(){return new ot(this.top,0,this.bottom,0)}get horizontalTotal(){return this.left+this.right}get verticalTotal(){return this.top+this.bottom}static createFromConfig(t){return typeof t=="number"?this.createUniformPadding(t):t?this.createFromRecord(t):gd}static createFromRecord(t){return new ot(t.top,t.right,t.bottom,t.left)}static zero(){return gd}static createUniformPadding(t){return new ot(t,t,t,t)}}const gd=ot.createUniformPadding(0);Object.freeze(gd);function ja(n,t){return!t||/^(data:|([A-Za-z]+:)?\/\/)/.test(n)||n.startsWith("/")?n:(t.endsWith("/")||(t+="/"),t+n)}function r5(n){if(!n)return n;if(/[?#]/.test(n))throw new Error(`Invalid base URL: ${n} - cannot contain query or hash.`);return n.endsWith("/")?n:n+"/"}const k2="VISIT_SKIP",Wa="VISIT_STOP",F2=n=>n;class M2{constructor(t,e,r,i,s,o={}){D(this,xn);D(this,io,{});D(this,so,{});D(this,oo,{});D(this,Mc);D(this,Rc);j(this,"opacityFunction",F2);D(this,ao,[]);j(this,"facetCoords",new Sn([],JSON.stringify));var a;if(!t)throw new Error("View spec must be defined!");if(this.context=e,this.layoutParent=r,this.dataParent=i,this.name=t.name||s,this.spec=t,this.resolutions={scale:{},axis:{}},XC(this),this.options={blockEncodingInheritance:!1,contributesToScaleDomain:!0,...o},this.flowHandle=void 0,this.needsAxes={x:!1,y:!1},this.paramMediator=new CQ(()=>{var l;return(l=this.dataParent)==null?void 0:l.paramMediator}),t.params)for(const l of t.params)this.paramMediator.registerParam(l);if(!((a=this.layoutParent)!=null&&a.options.layeredChildren)){const l=c=>this.paramMediator.findMediatorForParam(c)?void 0:this.paramMediator.allocateSetter(c,0);F(this,Rc,l("height")),F(this,Mc,l("width"))}}get coords(){return this.facetCoords.values().next().value}getPadding(){return this._cache("size/padding",()=>ot.createFromConfig(this.spec.padding))}getOverhang(){return ot.zero()}isScrollable(){return this.spec.viewportWidth!=null||this.spec.viewportHeight!=null}getSize(){return this._cache("size/size",()=>this.isConfiguredVisible()?new Cr(P(this,xn,fl).call(this,"width"),P(this,xn,fl).call(this,"height")):S2)}getViewportSize(){if(!this.isScrollable())return this.getSize();if(!this.isConfiguredVisible())return S2;const t=this.getSize();return new Cr(P(this,xn,fl).call(this,"viewportWidth")??t.width,P(this,xn,fl).call(this,"viewportHeight")??t.height)}isConfiguredVisible(){return this.context.isViewConfiguredVisible(this)}isVisibleInSpec(){return this.spec.visible??!0}isVisible(){return this.getLayoutAncestors().every(t=>t.isConfiguredVisible())}getEffectiveOpacity(){var t;return this.opacityFunction(((t=this.layoutParent)==null?void 0:t.getEffectiveOpacity())??1)}getPathString(){return this.getLayoutAncestors().map(t=>t.name).reverse().join("/")}getLayoutAncestors(){return P(this,xn,U0).call(this,"layoutParent")}getDataAncestors(){return P(this,xn,U0).call(this,"dataParent")}handleBroadcast(t){for(const e of m(this,io)[t.type]||[])e(t)}_addBroadcastHandler(t,e){let r=m(this,io)[t];r||(r=[],m(this,io)[t]=r),r.push(e)}handleInteractionEvent(t,e,r){const i=r?m(this,so):m(this,oo);for(const s of i[e.type]||[])s(t,e)}addInteractionEventListener(t,e,r){const i=r?m(this,so):m(this,oo);let s=i[t];s||(s=[],i[t]=s),s.push(e)}removeInteractionEventListener(t,e,r){const i=r?m(this,so):m(this,oo);let s=i==null?void 0:i[t];if(s){const o=s.indexOf(e);o>=0&&s.splice(o,1)}}visit(t){try{const e=t(this);if(t.postOrder&&t.postOrder(this),e!==Wa)return e}catch(e){throw e.view=this,e}}getDescendants(){const t=[];return this.visit(e=>{t.push(e)}),t}dispose(){for(const e of m(this,ao))e();m(this,ao).length=0;const t=this.flowHandle;t!=null&&t.collector&&(this.context.dataFlow.pruneCollectorBranch(t.collector),this.context.dataFlow.removeCollector(t.collector)),t!=null&&t.dataSource&&t.dataSource.view===this&&!t.dataSource.identifier&&this.context.dataFlow.removeDataSource(t.dataSource),this.flowHandle=void 0}registerDisposer(t){m(this,ao).push(t)}disposeSubtree(){const t=()=>{};t.postOrder=e=>{e.dispose()},this.visit(t)}configureViewOpacity(){(!this.opacityFunction||this.opacityFunction===F2)&&(this.opacityFunction=s5(this))}onBeforeRender(){}render(t,e,r={}){var i,s;r.firstFacet&&this.facetCoords.clear(),this.facetCoords.set(r.facetId,r.clipRect?e.intersect(r.clipRect):e),(i=m(this,Mc))==null||i.call(this,e.width),(s=m(this,Rc))==null||s.call(this,e.height)}getEncoding(){const t=this.dataParent&&!this.options.blockEncodingInheritance?this.dataParent.getEncoding():{},e=this.spec.encoding||{},r={...t,...e};for(const[i,s]of Object.entries(r))s===null&&delete r[i];return r}getFacetAccessor(t){if(this.layoutParent)return this.layoutParent.getFacetAccessor(this)}getFacetFields(t){var r;const e=this.getEncoding().sample;return nr(e)?[e.field]:(r=this.layoutParent)==null?void 0:r.getFacetFields(this)}getSampleFacetTexture(){}getScaleResolution(t){const e=Xr(t);return this.getDataAncestors().map(r=>r.resolutions.scale[e]).find(r=>r)}getAxisResolution(t){const e=Xr(t);return this.getDataAncestors().map(r=>r.resolutions.axis[e]).find(r=>r)}getConfiguredResolution(t,e){var r,i;return(i=(r=this.spec.resolve)==null?void 0:r[e])==null?void 0:i[t]}getConfiguredOrDefaultResolution(t,e){return this.getConfiguredResolution(t,e)??this.getConfiguredResolution("default",e)??this.getDefaultResolution(t,e)}getDefaultResolution(t,e){return"independent"}getBaseUrl(){return ui(()=>{var t;return(t=this.dataParent)==null?void 0:t.getBaseUrl()},r5(this.spec.baseUrl))}isPickingSupported(){return!0}getTitleText(){const t=this.spec.title;if(t)return Ce(t)?t:it(t.text)?this.paramMediator.evaluateAndGet(t.text.expr):t.text}_cache(t,e){return Uu(this,t,e)}_invalidateCacheByPrefix(t,e="self"){switch(e){case"self":Gu(this,t);break;case"ancestors":for(const r of this.getLayoutAncestors())Gu(r,t);break;case"progeny":this.visit(r=>Gu(r,t));break}}invalidateSizeCache(){this._invalidateCacheByPrefix("size/","ancestors")}propagateInteractionEvent(t){}}io=new WeakMap,so=new WeakMap,oo=new WeakMap,Mc=new WeakMap,Rc=new WeakMap,ao=new WeakMap,xn=new WeakSet,fl=function(t){var i;let e=this.spec[t];const r=t=="viewportWidth"||t=="viewportHeight";if(R2(e)){if(r)throw new mr(`Cannot use step-based size with "${t}"!`,this);const s=e.step,o=(i=this.getScaleResolution(t=="width"?"x":"y"))==null?void 0:i.getScale();if(o){let a=0;if(pr(o.type))a=o.domain().length;else if(["locus","index"].includes(o.type)){const c=o.domain();a=Gl(c)-c[0]}else throw new mr(`Cannot use step-based size with "${o.type}" scale!`,this);const l=o;return a=Kh(a,l.paddingInner(),l.paddingOuter()),{px:a*s,grow:0}}else throw new mr("Cannot use 'step' size with missing scale!",this)}else return(e&&D2(e))??(r?void 0:{px:0,grow:1})},U0=function(t){const e=[];let r=this;do e.push(r),r=r[t];while(r);return e};function i5(n){return"unitsPerPixel"in n}function s5(n){const t="opacity"in n.spec?n.spec.opacity:void 0;if(t!==void 0){if(ft(t))return e=>e*t;if(i5(t)){const e=s=>{var a;const o=(a=n.getScaleResolution(s))==null?void 0:a.getScale();if(["linear","index","locus"].includes(o==null?void 0:o.type))return o},r=t.channel?e(t.channel):e("x")??e("y");if(!r)throw new mr("Cannot find a resolved quantitative scale for dynamic opacity!",n);const i=Gh().domain(t.unitsPerPixel).range(t.values).clamp(!0);return s=>{const a=Lo(r.domain())/1e3;return i(a)*s}}else if(it(t)){const e=n.paramMediator.createExpression(t.expr);return e.addListener(()=>n.context.animator.requestRender()),r=>e(null)*r}}return e=>e}const R2=n=>!!(n!=null&&n.step),o5={point:PF,rect:kF,rule:GF,link:qF,text:$F};class Qt extends M2{constructor(e,r,i,s,o,a){super(e,r,i,s,o,a);D(this,vf);D(this,Nc);this.spec=e;const l=o5[this.getMarkType()];if(l)this.mark=new l(this);else throw new Error(`No such mark: ${this.getMarkType()}`);this.resolve(),F(this,Nc,this.paramMediator.allocateSetter("zoomLevel",1));for(const c of["x","y"]){const u=this.getScaleResolution(c);if(u){const f=()=>{m(this,Nc).call(this,Math.sqrt(this.getZoomLevel()))};u.addEventListener("domain",f),this.registerDisposer(()=>u.removeEventListener("domain",f))}}this.needsAxes={x:!0,y:!0},P(this,vf,rb).call(this)}render(e,r,i={}){super.render(e,r,i),this.isConfiguredVisible()&&(e.pushView(this,r),e.renderMark(this.mark,i),e.popView(this))}getMarkType(){return typeof this.spec.mark=="object"?this.spec.mark.type:this.spec.mark}getEncoding(){const e=super.getEncoding(),r=this.mark.getSupportedChannels();for(const i of Object.keys(e))r.includes(i)||delete e[i];return e}resolve(e){if(!e){this.resolve("scale"),this.resolve("axis");return}const r=this.mark.encoding;for(const[i,s]of Object.entries(r)){if(!s)continue;let o;if(vt(s))o=s;else if(MA(s)){const c=s.condition;if(!Array.isArray(c)&&vt(c))o=c;else continue}else continue;const a=Xr(o.resolutionChannel??i);if(!jl(a)||e=="axis"&&!wa(a))continue;let l=this;for(;(l.getConfiguredOrDefaultResolution(a,e)=="forced"||l.dataParent&&["shared","excluded","forced"].includes(l.dataParent.getConfiguredOrDefaultResolution(a,e)))&&l.getConfiguredOrDefaultResolution(a,e)!="excluded";)l=l.dataParent;if(e=="axis"&&wa(i)&&RA(a)){l.resolutions[e][a]||(l.resolutions[e][a]=new e5(a));const c=l.resolutions[e][a],u=c.registerMember({view:this,channel:i,channelDef:o});this.registerDisposer(()=>{u()&&l.resolutions[e][a]===c&&delete l.resolutions[e][a]})}else if(e=="scale"&&jl(i)){if(!l.resolutions[e][a]){const h=new $6(a);l.resolutions[e][a]=h,h.addEventListener("range",A=>{var d;(d=this.context.glHelper)==null||d.createRangeTexture(A.scaleResolution,!0)})}const c=this.getLayoutAncestors().some(h=>!h.options.contributesToScaleDomain)||vt(o)&&o.contributesToScaleDomain===!1?void 0:this.extractDataDomain.bind(this),u=l.resolutions[e][a],f=u.registerMember({view:this,channel:i,channelDef:o,dataDomainSource:c});this.registerDisposer(()=>{f()&&l.resolutions[e][a]===u&&delete l.resolutions[e][a]})}}}dispose(){super.dispose(),this.mark.dispose()}getDataAccessor(e){var i;const r=this.mark.encoders;if(r)return(i=r[e])==null?void 0:i.dataAccessor}getFacetAccessor(e){const r=this.getDataAccessor("sample");return r||super.getFacetAccessor(this)}getCollector(){var e;return(e=this.flowHandle)==null?void 0:e.collector}extractDataDomain(e,r){var s;let i=B2(r);return(((s=this.mark.encoders[e])==null?void 0:s.accessors)??[]).filter(o=>o.scaleChannel).forEach(o=>{if(o.constant)i.extend(o({}));else{const a=this.getCollector();a!=null&&a.completed&&a.visitData(l=>i.extend(o(l)))}}),i}getZoomLevel(){const e=r=>{var i;return((i=this.getScaleResolution(r))==null?void 0:i.getZoomLevel())??1};return Wr.map(e).reduce((r,i)=>r*i,1)}propagateInteractionEvent(e){this.handleInteractionEvent(void 0,e,!0),e.target=this,!e.stopped&&this.handleInteractionEvent(void 0,e,!1)}getDefaultResolution(e,r){return e=="x"?"shared":"independent"}}Nc=new WeakMap,vf=new WeakSet,rb=function(){for(const[e,r]of this.paramMediator.paramConfigs){if(!("select"in r))continue;const i=Wl(r.select),s=i.on,o=i.clear;if(Xl(i)){let l=0;const c=this.paramMediator.getSetter(e),u=()=>{var d;const A=this.context.getCurrentHover();return((d=A==null?void 0:A.mark)==null?void 0:d.unitView)===this?A.datum:null},f=s.filter?Pp(s.filter):()=>!0,h=(A,d)=>{if(!f(d.proxiedMouseEvent))return;const g=u(),p=g?g[Rt]:0;let C;if(i.toggle)if(d.mouseEvent.shiftKey){if(g){const b=this.paramMediator.getValue(e);C=gQ(b,{toggle:[g]})}}else C=LA(g?[g]:null);else p!=l&&(l=p,C=PA(g));C!==void 0&&c(C)};if(this.addInteractionEventListener(["mouseover","pointerover"].includes(s.type)?"mousemove":s.type,h),o){const A=o.filter?Pp(o.filter):()=>!0,d=(g,p)=>{if(!A(p.proxiedMouseEvent))return;l=0;const C=i.toggle?LA():PA(null);c(C)};this.addInteractionEventListener(o.type,d)}}}};function a5(n){const t=new Set;n.visit(e=>{for(const r of Object.values(e.resolutions.scale)){const i=r.name;if(i&&t.has(i))throw new Error(`The same scale name "${i}" occurs in multiple scale resolutions!`);t.add(i)}})}function c5(n){for(const t of Wr){const e=n.getScaleResolution(t);e&&!e.name&&e.isZoomable()&&(e.name=`${t}_at_root`)}}function N2(n,t=()=>!0){return Promise.allSettled(n).then(e=>{if(t())for(const r of e)"value"in r?r.value.finalizeGraphicsInitialization():"reason"in r&&console.error(r.reason)})}async function l5(n,t,e){const r=n.import;if(!("url"in r))throw new Error("Not an url import: "+JSON.stringify(r));const i=ui(t,r.url);let s;try{const o=await fetch(i);if(!o.ok)throw new Error(`${o.status} ${o.statusText}`);s=await o.json()}catch(o){throw new Error(`Could not load imported view spec: ${i}. Reason: ${o.message}`)}if(e.isViewSpec(s))return s.baseUrl=ui(a2(r.url),s.baseUrl),s;throw new Error(`The imported spec "${i}" is not a view spec: ${JSON.stringify(n)}`)}function u5(n){const t=n.getSize(),e=n.getPadding(),r=(i,s)=>i.grow>0?void 0:i.px+s;return{width:r(t.width,e.horizontalTotal),height:r(t.height,e.verticalTotal)}}function*pd(n,t=[]){for(const[e,r]of n.entries())if(r instanceof Map)for(const i of pd(r,[...t,e]))yield i;else yield[[...t,e],r]}const T2=2147483647,f5=P2([T2]);function P2(n){let t=0;for(let e=0,r=n.length;e<r;e++)t=Math.max(t,n[e]);return Math.floor(Math.log2(t)/4)+1}function A5(n){const t=P2(n);let e=Array.from({length:n.length},(s,o)=>o),r=new Array(n.length);const i=new Array(16);for(let s=0;s<t;s++){i.fill(0);const o=s*4,a=Math.pow(16,s),l=c=>{const u=n[e[c]];return s>=f5?u>T2?Math.floor(u/a)%16:0:u>>o&15};for(let c=0;c<n.length;c++)i[l(c)]++;for(let c=1;c<16;c++)i[c]+=i[c-1];for(let c=n.length-1;c>=0;c--)r[--i[l(c)]]=e[c];[e,r]=[r,e]}return e}class L2 extends kA{constructor(e){var r;super();D(this,Dt);D(this,Hn,[]);D(this,Tc,ue(Rt));D(this,Sr,[]);D(this,Si);D(this,co);this.params=e??{type:"collect"},this.observers=new Set,this.facetBatches=new Sn([],JSON.stringify),F(this,co,d5((r=this.params)==null?void 0:r.sort)),P(this,Dt,G0).call(this)}get behavior(){return DA}get label(){return"collect"}reset(){super.reset(),P(this,Dt,G0).call(this)}handle(e){m(this,Hn).push(e)}beginBatch(e){sQ(e)&&(F(this,Hn,[]),this.facetBatches.set(tt(e.facetId),m(this,Hn)))}complete(){var e;if(F(this,Hn,[]),(e=this.params.groupby)!=null&&e.length){if(this.facetBatches.size>1)throw new Error("TODO: Support faceted data!");const r=this.facetBatches.get(void 0),i=this.params.groupby.map(o=>ue(o)),s=i.length>1?bl(r,...i):h5(r,i[0]);this.facetBatches.clear();for(const[o,a]of pd(s))this.facetBatches.set(o,a)}if(m(this,co))for(const r of this.facetBatches.values())r.sort(m(this,co));P(this,Dt,ib).call(this),P(this,Dt,z0).call(this),super.complete();for(const r of this.observers)r(this)}observe(e){return this.observers.add(e),()=>{this.observers.delete(e)}}repropagate(){for(const e of this.children)e.reset();P(this,Dt,z0).call(this);for(const e of this.children)e.complete()}getData(){switch(P(this,Dt,H0).call(this),this.facetBatches.size){case 0:return[];case 1:return[...this.facetBatches.values()][0];default:{const e=this.facetBatches;return{[Symbol.iterator]:function*(){for(const i of e.values())yield*i}}}}}visitData(e){P(this,Dt,H0).call(this);for(const r of this.facetBatches.values())for(let i=0;i<r.length;i++)e(r[i])}getItemCount(){let e=0;for(const r of this.facetBatches.values())e+=r.length;return e}findDatumByUniqueId(e){if(!m(this,Sr).length)return;const r=Hr(l=>l.start).right,i=m(this,Tc),s=Hr(l=>i(o(l))).left,o=l=>{const c=r(m(this,Si),l),u=m(this,Si)[c-1];return!u||l>=u.stop?void 0:this.facetBatches.get(u.facetId)[l-u.start]},a=s(m(this,Sr),e);if(a>=0){const l=o(m(this,Sr)[a]);if(l&&i(l)===e)return l}}}Hn=new WeakMap,Tc=new WeakMap,Sr=new WeakMap,Si=new WeakMap,co=new WeakMap,Dt=new WeakSet,G0=function(){F(this,Hn,[]),F(this,Sr,[]),this.facetBatches.clear(),this.facetBatches.set(void 0,m(this,Hn))},z0=function(){if(this.children.length)for(const[e,r]of this.facetBatches.entries()){if(e){const i={type:"facet",facetId:e};for(const s of this.children)s.beginBatch(i)}for(let i=0,s=r.length;i<s;i++)this._propagate(r[i])}},H0=function(){if(!this.completed)throw new Error("Data propagation is not completed! No data are available.")},ib=function(){var o;F(this,Si,[]);const e=(o=this.facetBatches.values().next().value)==null?void 0:o[0];if(e==null||!(Rt in e))return;let r=0;const i=[],s=m(this,Tc);for(const[a,l]of this.facetBatches){m(this,Si).push({start:r,stop:r+l.length,facetId:a}),r+=l.length;for(let c=0,u=l.length;c<u;c++)i.push(s(l[c]))}F(this,Sr,A5(i))};function h5(n,t){const e=new Map;for(let r=0,i=n.length;r<i;r++){const s=n[r],o=t(s);let a=e.get(o);a||(a=[],e.set(o,a)),a.push(s)}return e}function d5(n){if(n!=null&&n.field){const t=tt(n.field);if(t.length==1&&!t[0].includes(".")){const e=tt(n.order)[0]??"ascending",r=JSON.stringify(t[0]);return new Function("a","b",`return a[${r}] ${e==="ascending"?"-":"+"} b[${r}];`)}return sg(n.field,n.order)}}class _u{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(t,e){let r=this.length++;for(;r>0;){const i=r-1>>1,s=this.values[i];if(e>=s)break;this.ids[r]=this.ids[i],this.values[r]=s,r=i}this.ids[r]=t,this.values[r]=e}pop(){if(this.length===0)return;const t=this.ids[0];if(this.length--,this.length>0){const e=this.ids[0]=this.ids[this.length],r=this.values[0]=this.values[this.length],i=this.length>>1;let s=0;for(;s<i;){let o=(s<<1)+1;const a=o+1;let l=this.ids[o],c=this.values[o];const u=this.values[a];if(a<this.length&&u<c&&(o=a,l=this.ids[a],c=u),c>=r)break;this.ids[s]=l,this.values[s]=c,s=o}this.ids[s]=e,this.values[s]=r}return t}peek(){if(this.length!==0)return this.ids[0]}peekValue(){if(this.length!==0)return this.values[0]}shrink(){this.ids.length=this.values.length=this.length}}class g5 extends Ue{get behavior(){return cn}constructor(t){super(t),this.params=t,this.startAccessor=ue(t.start),this.endAccessor=ue(t.end),this.chromAccessor=t.chrom?ue(t.chrom):e=>{},this.weightAccessor=t.weight?ue(t.weight):e=>1,this.as={coverage:t.as??"coverage",start:t.asStart??t.start,end:t.asEnd??t.end,chrom:t.asChrom??t.chrom},this.createSegment=new Function("start","end","coverage","chrom","return {"+Object.entries(this.as).filter(([e,r])=>r).map(([e,r])=>`${JSON.stringify(r)}: ${e}`).join(", ")+"};"),this.ends=new _u}reset(){super.reset(),this.initialize()}initialize(){const t=this.as.coverage,e=this.as.end,r=this.as.chrom,i=this.startAccessor,s=this.endAccessor,o=this.chromAccessor,a=this.weightAccessor;let l,c,u,f=0,h=NaN;const A=this.ends;A.clear();const d=C=>{this._propagate(C),l=null},g=(C,w,b)=>{if(C==w)return;let y=!1;l&&(l[t]===b?(l[e]=w,y=!0):l[t]!=0&&d(l)),y||(l=this.createSegment(C,w,b,u))},p=()=>{let C=0;for(;(C=A.peekValue())!==void 0;)g(h,C,f),h=C,f-=A.pop();h=NaN,l&&d(l)};this.handle=C=>{const w=i(C);let b=0;for(;(b=A.peekValue())!==void 0&&b<w;)g(h,b,f),h=b,f-=A.pop();if(r){let x=o(C);x!==c&&(p(),u=x,c=u)}isNaN(h)||g(h,w,f),h=w;const y=a(C);f+=y,A.push(y,s(C))},this.complete=()=>{p(),super.complete()},this.beginBatch=C=>{p(),c=null,super.beginBatch(C)}}}function p5(n,t,e=s=>+s,r=0,i=n.length){const s=new _u,o=i-r;let a;for(a=0;a<t&&a<o;a++)s.push(a,e(n[r+a]));for(;a<o;a++){const u=e(n[r+a]);u>=s.peekValue()&&(s.push(a,u),s.pop())}const l=[];let c;for(;(c=s.pop())!==void 0;)l.push(n[r+c]);return l.reverse()}class m5{constructor(t,e=-1/0,r=1/0){this.maxSize=t,this.lowerLimit=e,this.upperLimit=r;const i=this.maxSize*2+1;this.lowerLimits=new Float64Array(i),this.upperLimits=new Float64Array(i),this.lowerChildren=new Int32Array(i),this.upperChildren=new Int32Array(i),this.reset()}reset(){this.lowerLimits.fill(0),this.upperLimits.fill(0),this.lowerChildren.fill(0),this.upperChildren.fill(0),this.n=1,this.lowerLimits[0]=this.lowerLimit,this.upperLimits[0]=this.upperLimit}_findSlot(t,e,r=0){if(t>=this.lowerLimits[r]&&e<=this.upperLimits[r]){const i=this.lowerChildren[r];if(i){const s=this._findSlot(t,e,i);return s>=0?s:this._findSlot(t,e,this.upperChildren[r])}else return r}else return-1}reserve(t,e){if(e-t<=0)throw new Error("Cannot reserve an empty or negative-size slot!");if(this.n+1>this.lowerLimits.length)return!1;const r=this._findSlot(t,e);if(r<0)return!1;const i=this.n++,s=this.n++;return this.lowerLimits[i]=this.lowerLimits[r],this.upperLimits[i]=t,this.lowerLimits[s]=e,this.upperLimits[s]=this.upperLimits[r],this.lowerChildren[r]=i,this.upperChildren[r]=s,!0}}class C5 extends Ue{get behavior(){return DA}constructor(t,e){if(super(t),this.params=t,this._data=[],this.channel=t.channel??"x",!["x","y"].includes(this.channel))throw new Error("Invalid channel: "+this.channel);this.startPosAccessor=ue(this.params.pos),this.endPosAccessor=ue(this.params.pos2??this.params.pos),this.startPosBisector=Hr(this.startPosAccessor),this.endPosBisector=Hr(this.endPosAccessor),this.scoreAccessor=ue(this.params.score),this.widthAccessor=ue(this.params.width),this.laneAccessor=this.params.lane?ue(this.params.lane):i=>0,this.padding=this.params.padding??0,this.reservationMaps=new Map,this.resolution=e.getScaleResolution(this.channel);const r=()=>this._filterAndPropagate();this.schedule=()=>e.context.animator.requestTransition(r),this.resolution.addEventListener("domain",i=>this.schedule()),e._addBroadcastHandler("layoutComputed",()=>this.schedule())}complete(){const t=this.startPosAccessor;this._data.sort((e,r)=>t(e)-t(r));for(const e of new Set(this._data.map(this.laneAccessor)))this.reservationMaps.set(e,new m5(200));this.schedule(),super.complete()}_filterAndPropagate(){super.reset();const t=this.resolution.getScale(),e=this.resolution.getAxisLength();if(!e)return;for(const o of this.reservationMaps.values())o.reset();const r=t.domain(),s=p5(this._data,70,this.scoreAccessor,this.endPosBisector.left(this._data,r[0]),this.startPosBisector.right(this._data,r[1]));for(const o of s){let a=t(this.startPosAccessor(o))*e,l=t(this.endPosAccessor(o))*e;const c=l-a,u=this.widthAccessor(o)+this.padding*2;let f=(a+l)/2;const h=Math.max(0,(c-u)/2);if(h>0){const A=Math.max(0,u/2-f);f+=Math.min(A,h);const d=Math.max(0,u/2+f-e);f-=Math.min(d,h)}if(this.reservationMaps.get(this.laneAccessor(o)).reserve(f-u/2,f+u/2))if(this.params.asMidpoint){const A=Object.assign({},o);A[this.params.asMidpoint]=t.invert(f/e),this._propagate(A)}else this._propagate(o)}super.complete()}reset(){super.reset(),this._data=[],this.groups=new Map}handle(t){this._data.push(t)}}class y5 extends Ue{constructor(t,e){super(t,e),this.params=t,this.predicate=void 0}initialize(){let t="";if(w5(this.params))t=this.params.expr;else if(I5(this.params)){const e=this.paramMediator.findValue(this.params.param);if(!e)throw new Error(`Cannot initialize filter transform. Selection parameter "${this.params.param}" not found!`);t=pQ(this.params,e)}else throw new Error("Invalid filter params: "+JSON.stringify(this.params));this.predicate=this.paramMediator.createExpression(t),this.predicate.addListener(()=>this.repropagate())}handle(t){this.predicate(t)&&this._propagate(t)}}function w5(n){return"expr"in n}function I5(n){return"param"in n}class E5 extends Ue{get behavior(){return cn}constructor(t){super(t),this.params=t;const e=t.index;if(t.fields){const r=tt(t.fields).map(s=>ue(s)),i=tt(t.as||t.fields);if(r.length!==i.length)throw new Error(`Lengths of "fields" (${r.length}), and "as" (${i.length}) do not match!`);this.handle=s=>{const o=r.map((l,c)=>l(s)??[]),a=o[0].length;for(let l=0;l<a;l++){const c=Object.assign({},s);for(let u=0;u<r.length;u++)c[i[u]]=l<o[u].length?o[u][l]:null;e&&(c[e]=l),this._propagate(c)}}}else this.handle=r=>{for(let i=0;i<r.length;i++){const s=Object.assign({},r[i]);e&&(s[e]=i),this._propagate(s)}}}}const b5=48;function*x5(n,t=","){const e=t.charCodeAt(0);let r=0;for(let i=0;i<n.length;i++){const s=n.charCodeAt(i);s==e?(yield r,r=0):r=r*10+s-b5}yield r}class B5 extends Ue{get behavior(){return cn}constructor(t){super(t);const e=ue(t.exons??"exons"),r=ue(t.start??"start"),[i,s]=t.as||["exonStart","exonEnd"];this.handle=o=>{let a=r(o),l=a,c=!0;const u=e(o);for(const f of x5(u)){if(c)l=a+f;else{a=l+f;const h=Object.assign({},o);h[i]=l,h[s]=a,this._propagate(h)}c=!c}}}}class v5 extends Ue{get behavior(){return cn}constructor(t){super(t);const e=tt(t.field).map(s=>ue(s)),r=tt(t.separator),i=tt(t.as||t.field);if(e.length!==r.length||e.length!==i.length)throw new Error(`Lengths of "separator" (${r.length}), "fields" (${e.length}), and "as" (${i.length}) do not match!`);this.handle=s=>{if(e.some(l=>!l(s)))return;const o=e.map((l,c)=>l(s).split(r[c]));Q5(o,s);const a=o[0].length;for(let l=0;l<a;l++){const c=Object.assign({},s);for(let u=0;u<e.length;u++)c[i[u]]=o[u][l];this._propagate(c)}}}}function Q5(n,t){const e=n.map(r=>r.length);if(!e.every(r=>r==e[0]))throw new Error("Mismatching number of elements in the fields to be split: "+JSON.stringify(t))}class S5 extends Ue{get behavior(){return tr}constructor(t,e){super(t,e),this.params=t,this.as=t.as,this.fn=void 0}initialize(){this.fn=this.paramMediator.createExpression(this.params.expr),this.fn.addListener(()=>this.repropagate())}handle(t){t[this.as]=this.fn(t),this._propagate(t)}}class O2 extends Ue{get behavior(){return tr}constructor(t,e){t={channel:"x",...t},super(t),this.params=t;const r=t.channel;if(!["x","y"].includes(r))throw new Error("Invalid channel: "+r);const i=e.getScaleResolution(r).getScale(),s="genome"in i?i.genome():void 0;if(!s)throw new Error("LinearizeGenomicCoordinate transform requires a locus scale!");const o=ue(t.chrom),a=tt(t.pos).map(g=>ue(g)),l=tt(t.as);if(a.length!=l.length)throw new Error('The number of "pos" and "as" elements must be equal!');const c=tt(t.offset);let u;if(c.length==0)u=new Array(a.length).fill(0);else if(c.length==1)u=new Array(a.length).fill(c[0]);else if(c.length==a.length)u=c;else throw new Error(`Invalid "offset" parameter: ${JSON.stringify(t.offset)}!`);const f=new Function("datum","chromOffset","posAccessors",l.map((g,p)=>`datum[${JSON.stringify(g)}] = chromOffset + +posAccessors[${p}](datum) - ${u[p]};`).join(`
|
|
674
|
+
`));let h,A=0;const d=g=>{if(g!==h){if(A=s.cumulativeChromPositions.get(g),A===void 0)return;h=g}return A};this.handle=g=>{const p=o(g),C=d(p);if(C===void 0)throw new Error(`Unknown chromosome/contig "${p}" in datum: ${JSON.stringify(g)}`);f(g,C,a),this._propagate(g)}}}const U2={chars:JSON.parse('[{"id":87,"width":53,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":43.491,"chnl":15,"x":0,"y":0,"page":0},{"id":124,"width":17,"height":50,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":10.521,"chnl":15,"x":0,"y":42,"page":0},{"id":40,"width":20,"height":49,"xoffset":0,"yoffset":-32.571000000000005,"xadvance":11.214,"chnl":15,"x":0,"y":94,"page":0},{"id":41,"width":19,"height":49,"xoffset":0,"yoffset":-32.571000000000005,"xadvance":11.214,"chnl":15,"x":0,"y":145,"page":0},{"id":36,"width":32,"height":49,"xoffset":0,"yoffset":-34.419000000000004,"xadvance":24.360000000000003,"chnl":15,"x":0,"y":196,"page":0},{"id":125,"width":21,"height":48,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":12.642000000000001,"chnl":15,"x":0,"y":247,"page":0},{"id":91,"width":22,"height":48,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":12.852,"chnl":15,"x":0,"y":297,"page":0},{"id":93,"width":19,"height":48,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":12.852,"chnl":15,"x":0,"y":347,"page":0},{"id":123,"width":21,"height":48,"xoffset":0,"yoffset":-32.193000000000005,"xadvance":12.642000000000001,"chnl":15,"x":0,"y":397,"page":0},{"id":106,"width":19,"height":48,"xoffset":0,"yoffset":-30.639000000000003,"xadvance":10.08,"chnl":15,"x":0,"y":447,"page":0},{"id":81,"width":43,"height":47,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":33.621,"chnl":15,"x":21,"y":447,"page":0},{"id":77,"width":45,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":38.997,"chnl":15,"x":66,"y":447,"page":0},{"id":64,"width":43,"height":44,"xoffset":0,"yoffset":-28.539,"xadvance":35.133,"chnl":15,"x":23,"y":397,"page":0},{"id":92,"width":28,"height":43,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":18.984,"chnl":15,"x":68,"y":397,"page":0},{"id":47,"width":28,"height":43,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":18.984,"chnl":15,"x":98,"y":397,"page":0},{"id":109,"width":42,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":34.545,"chnl":15,"x":113,"y":447,"page":0},{"id":119,"width":42,"height":31,"xoffset":0,"yoffset":-21.315,"xadvance":32.991,"chnl":15,"x":157,"y":447,"page":0},{"id":42,"width":25,"height":42,"xoffset":0,"yoffset":-31.626,"xadvance":17.85,"chnl":15,"x":128,"y":397,"page":0},{"id":37,"width":42,"height":41,"xoffset":0,"yoffset":-30.387,"xadvance":33.663000000000004,"chnl":15,"x":155,"y":397,"page":0},{"id":79,"width":42,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":33.621,"chnl":15,"x":199,"y":397,"page":0},{"id":102,"width":24,"height":41,"xoffset":0,"yoffset":-30.534000000000002,"xadvance":14.721,"chnl":15,"x":243,"y":397,"page":0},{"id":100,"width":31,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":23.520000000000003,"chnl":15,"x":269,"y":397,"page":0},{"id":98,"width":32,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":23.520000000000003,"chnl":15,"x":302,"y":397,"page":0},{"id":56,"width":32,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":336,"y":397,"page":0},{"id":38,"width":40,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":29.904000000000003,"chnl":15,"x":370,"y":397,"page":0},{"id":108,"width":17,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":9.912,"chnl":15,"x":412,"y":397,"page":0},{"id":107,"width":31,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":21.336000000000002,"chnl":15,"x":431,"y":397,"page":0},{"id":48,"width":33,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":464,"y":397,"page":0},{"id":71,"width":38,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":30.681,"chnl":15,"x":21,"y":347,"page":0},{"id":83,"width":31,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":22.785,"chnl":15,"x":61,"y":347,"page":0},{"id":63,"width":27,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":18.795,"chnl":15,"x":94,"y":347,"page":0},{"id":105,"width":18,"height":41,"xoffset":0,"yoffset":-30.639000000000003,"xadvance":10.08,"chnl":15,"x":123,"y":347,"page":0},{"id":51,"width":32,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":143,"y":347,"page":0},{"id":104,"width":31,"height":41,"xoffset":0,"yoffset":-30.933000000000003,"xadvance":23.436,"chnl":15,"x":177,"y":347,"page":0},{"id":67,"width":37,"height":41,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":28.056,"chnl":15,"x":210,"y":347,"page":0},{"id":88,"width":37,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":27.258000000000003,"chnl":15,"x":249,"y":347,"page":0},{"id":68,"width":40,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":31.941000000000003,"chnl":15,"x":288,"y":347,"page":0},{"id":70,"width":32,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":23.751,"chnl":15,"x":330,"y":347,"page":0},{"id":34,"width":23,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":15.561000000000002,"chnl":15,"x":364,"y":347,"page":0},{"id":72,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":32.067,"chnl":15,"x":389,"y":347,"page":0},{"id":73,"width":18,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":11.760000000000002,"chnl":15,"x":429,"y":347,"page":0},{"id":74,"width":24,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":17.745,"chnl":15,"x":449,"y":347,"page":0},{"id":75,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":27.825000000000003,"chnl":15,"x":24,"y":297,"page":0},{"id":76,"width":31,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":21.567,"chnl":15,"x":475,"y":347,"page":0},{"id":66,"width":35,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":27.153000000000002,"chnl":15,"x":64,"y":297,"page":0},{"id":78,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":32.067,"chnl":15,"x":101,"y":297,"page":0},{"id":33,"width":18,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":11.298,"chnl":15,"x":141,"y":297,"page":0},{"id":80,"width":34,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":25.221,"chnl":15,"x":161,"y":297,"page":0},{"id":65,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":28.434,"chnl":15,"x":197,"y":297,"page":0},{"id":82,"width":36,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":26.313000000000002,"chnl":15,"x":237,"y":297,"page":0},{"id":35,"width":33,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":275,"y":297,"page":0},{"id":84,"width":34,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.801000000000002,"chnl":15,"x":310,"y":297,"page":0},{"id":85,"width":37,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":30.891000000000002,"chnl":15,"x":346,"y":297,"page":0},{"id":86,"width":38,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":28.434,"chnl":15,"x":385,"y":297,"page":0},{"id":39,"width":16,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":8.568000000000001,"chnl":15,"x":425,"y":297,"page":0},{"id":69,"width":32,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.255000000000003,"chnl":15,"x":443,"y":297,"page":0},{"id":89,"width":36,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":26.208000000000002,"chnl":15,"x":23,"y":247,"page":0},{"id":90,"width":34,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":25.284000000000002,"chnl":15,"x":477,"y":297,"page":0},{"id":49,"width":31,"height":40,"xoffset":0,"yoffset":-30.156000000000002,"xadvance":24.360000000000003,"chnl":15,"x":61,"y":247,"page":0},{"id":50,"width":32,"height":40,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":94,"y":247,"page":0},{"id":57,"width":32,"height":40,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":24.360000000000003,"chnl":15,"x":128,"y":247,"page":0},{"id":94,"width":32,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":162,"y":247,"page":0},{"id":96,"width":21,"height":40,"xoffset":0,"yoffset":-30.429000000000002,"xadvance":16.8,"chnl":15,"x":196,"y":247,"page":0},{"id":55,"width":33,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":219,"y":247,"page":0},{"id":54,"width":33,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":254,"y":247,"page":0},{"id":53,"width":32,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":289,"y":247,"page":0},{"id":52,"width":33,"height":40,"xoffset":0,"yoffset":-30.093000000000004,"xadvance":24.360000000000003,"chnl":15,"x":323,"y":247,"page":0},{"id":103,"width":31,"height":39,"xoffset":0,"yoffset":-21.630000000000003,"xadvance":21.84,"chnl":15,"x":358,"y":247,"page":0},{"id":112,"width":32,"height":39,"xoffset":0,"yoffset":-21.651,"xadvance":23.541,"chnl":15,"x":391,"y":247,"page":0},{"id":113,"width":31,"height":39,"xoffset":0,"yoffset":-21.651,"xadvance":23.520000000000003,"chnl":15,"x":425,"y":247,"page":0},{"id":116,"width":25,"height":39,"xoffset":0,"yoffset":-28.182000000000002,"xadvance":15.057,"chnl":15,"x":458,"y":247,"page":0},{"id":121,"width":31,"height":38,"xoffset":0,"yoffset":-21.273,"xadvance":21.651,"chnl":15,"x":34,"y":196,"page":0},{"id":59,"width":18,"height":36,"xoffset":0,"yoffset":-20.706,"xadvance":10.983,"chnl":15,"x":485,"y":247,"page":0},{"id":43,"width":32,"height":34,"xoffset":0,"yoffset":-24.486,"xadvance":24.360000000000003,"chnl":15,"x":67,"y":196,"page":0},{"id":60,"width":30,"height":33,"xoffset":0,"yoffset":-23.331000000000003,"xadvance":24.360000000000003,"chnl":15,"x":101,"y":196,"page":0},{"id":62,"width":31,"height":33,"xoffset":0,"yoffset":-23.331000000000003,"xadvance":24.360000000000003,"chnl":15,"x":133,"y":196,"page":0},{"id":117,"width":30,"height":32,"xoffset":0,"yoffset":-21.273,"xadvance":23.415000000000003,"chnl":15,"x":166,"y":196,"page":0},{"id":99,"width":29,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":20.055,"chnl":15,"x":198,"y":196,"page":0},{"id":110,"width":31,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":23.436,"chnl":15,"x":229,"y":196,"page":0},{"id":111,"width":32,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":23.814,"chnl":15,"x":262,"y":196,"page":0},{"id":126,"width":32,"height":26,"xoffset":0,"yoffset":-16.128,"xadvance":24.360000000000003,"chnl":15,"x":201,"y":447,"page":0},{"id":101,"width":31,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":22.176000000000002,"chnl":15,"x":296,"y":196,"page":0},{"id":114,"width":25,"height":32,"xoffset":0,"yoffset":-21.651,"xadvance":15.288,"chnl":15,"x":329,"y":196,"page":0},{"id":115,"width":27,"height":32,"xoffset":0,"yoffset":-21.609,"xadvance":18.186,"chnl":15,"x":356,"y":196,"page":0},{"id":97,"width":28,"height":32,"xoffset":0,"yoffset":-21.651,"xadvance":20.874000000000002,"chnl":15,"x":385,"y":196,"page":0},{"id":118,"width":31,"height":31,"xoffset":0,"yoffset":-21.273,"xadvance":21.672,"chnl":15,"x":415,"y":196,"page":0},{"id":61,"width":31,"height":29,"xoffset":0,"yoffset":-19.089000000000002,"xadvance":24.360000000000003,"chnl":15,"x":448,"y":196,"page":0},{"id":120,"width":30,"height":31,"xoffset":0,"yoffset":-21.273,"xadvance":20.916,"chnl":15,"x":21,"y":145,"page":0},{"id":58,"width":18,"height":31,"xoffset":0,"yoffset":-20.706,"xadvance":10.5,"chnl":15,"x":53,"y":145,"page":0},{"id":122,"width":28,"height":31,"xoffset":0,"yoffset":-21.273,"xadvance":18.984,"chnl":15,"x":73,"y":145,"page":0},{"id":95,"width":28,"height":16,"xoffset":0,"yoffset":0,"xadvance":19.278000000000002,"chnl":15,"x":235,"y":447,"page":0},{"id":45,"width":23,"height":24,"xoffset":0,"yoffset":-14.175,"xadvance":15.603000000000002,"chnl":15,"x":481,"y":196,"page":0},{"id":44,"width":17,"height":21,"xoffset":0,"yoffset":-4.956,"xadvance":9.534,"chnl":15,"x":103,"y":145,"page":0},{"id":46,"width":18,"height":15,"xoffset":0,"yoffset":-4.956,"xadvance":9.912,"chnl":15,"x":0,"y":497,"page":0},{"id":32,"width":0,"height":0,"xoffset":0,"yoffset":0,"xadvance":10.752,"chnl":15,"x":20,"y":497,"page":0}]'),common:{lineHeight:50.400000000000006,base:41.454,scaleW:512,scaleH:512,pages:1,packed:0,alphaChnl:0,redChnl:0,greenChnl:0,blueChnl:0}};class D5 extends Ue{get behavior(){return tr}constructor(t,e){super(t),this.params=t;const r=ph(U2),i=ue(t.field),s=t.as;let o=0;if(it(t.fontSize)){const a=e.paramMediator.createExpression(t.fontSize.expr);o=a(),a.addListener(()=>{o=a(),this.repropagate()})}else o=t.fontSize;this.handle=a=>{const l=i(a);l!==void 0?a[s]=r.measureWidth(l,o):a[s]=0,this._propagate(a)}}}const k5=65536;class F5 extends Ue{get behavior(){return tr}constructor(t){super(t),this.params=t}reset(){super.reset(),this.initialize()}initialize(){const t=this.params,e=t.as||"lane",r=ft(t.spacing)?t.spacing:1,i=ue(t.start),s=ue(t.end);if(!t.preference!=!t.preferredOrder)throw new Error('Must specify both "preference" and "preferredOrder"');if(t.preference){const o=new Float64Array(k5),a=ue(t.preference),l=t.preferredOrder;let c=1/0;this.handle=u=>{const f=i(u);f<c&&o.fill(-1/0),c=f;const h=l.indexOf(a(u));let A=-1;if(h>=0&&o[h]<f)A=h;else{const d=i(u);for(A=0;A<o.length&&!(o[A]<d);A++);if(A>=o.length)throw new Error("Out of lanes!")}o[A]=s(u)+r,u[e]=A,this._propagate(u)}}else{const o=new _u,a=new _u;let l=-1/0,c=0;this.handle=u=>{const f=i(u);for(;o.length&&(o.peekValue()<=f||f<l);){const A=o.pop();a.push(A,A)}l=f;let h=a.pop();h===void 0&&(h=c++),u[e]=h,this._propagate(u),o.push(h,s(u)+r)}}}}class M5 extends Ue{get behavior(){return cn}constructor(t){if(super(t),this.params=t,t.as&&t.as.length!=t.fields.length)throw new Error('"fields" and "as" have unequal lengths!');const e=t.fields.map(i=>ue(i)),r=t.as?t.as:e.map(De);this.handle=i=>{const s={};for(let o=0;o<e.length;o++)s[r[o]]=e[o](i);this._propagate(s)}}}class R5 extends Ue{get behavior(){return tr}constructor(t){super(t),this.params=t;const e=new RegExp(t.regex),r=typeof t.as=="string"?[t.as]:t.as,i=ue(t.field);this.handle=s=>{const o=i(s);if(Ce(o)){const a=o.match(e);if(a){if(a.length-1!=r.length)throw new Error('The number of RegEx groups and the length of "as" do not match!');for(let l=0;l<r.length;l++)s[r[l]]=a[l+1]}else if(t.skipInvalidInput)for(let l=0;l<r.length;l++)s[r[l]]=void 0;else throw new Error(`"${o}" does not match the given regex: ${e.toString()}`)}else if(!t.skipInvalidInput)throw new Error(`Trying to match a non-string field. Encountered type: ${typeof o}, field content: "${o}".`);this._propagate(s)}}}class N5 extends Ue{get behavior(){return cn}constructor(t){super(t),this.params=t;const e=tt(t.columnRegex).map(h=>new RegExp(h));for(const h of e)if(RegExp("|"+h.source).exec("").length-1!=1)throw new Error(`Regex ${h.toString()} must have exactly one capturing group!`);const r=tt(t.asValue);if(e.length!=r.length)throw new Error('Lengths of "columnRegex" and "as" are not equal!');const i=t.skipRegex?new RegExp(t.skipRegex):void 0,s=t.asKey||"sample";let o,a,l;const c=h=>{var p;const A=Object.keys(h);for(const C of e)if(!A.some(w=>C.test(w)))throw new Error(`No columns matching the regex ${C.toString()} found in the data!`);const d=new Map;for(const[C,w]of e.entries())for(const b of A){const y=(p=w.exec(b))==null?void 0:p[1];if(y!==void 0){let x=d.get(y);x||(x=[],d.set(y,x)),x[C]=b}}o=[...d.entries()],a=A.filter(C=>!e.some(w=>w.test(C))&&!(i&&i.test(C)));const g=[...a.map(C=>JSON.stringify(C)+": datum["+JSON.stringify(C)+"]"),JSON.stringify(s)+": sampleId",...r.map((C,w)=>JSON.stringify(C)+`: datum[attrs[${w}]]`)];l=new Function("datum","sampleId","attrs",`return {
|
|
675
|
+
`+g.join(`,
|
|
616
676
|
`)+`
|
|
617
|
-
};`)},l=d=>{o||u(d);for(let h=0;h<o.length;h++){const[p,m]=o[h],g=c(d,p,m);this._propagate(g)}},f=d=>{u(d),l(d),this.handle=l};this.handle=f,this.beginBatch=d=>{cm(d)&&(this.handle=f),super.beginBatch(d)}}}class _I extends Te{get behavior(){return Rn}constructor(e){super(e),this.params=e,this.buffer=[]}reset(){this.buffer=[]}handle(e){this.buffer.push(e)}complete(){const e=this.params,t=e.as||["y0","y1"],r=e.sort?Pd(e.sort.field,e.sort.order):void 0,i=e.field?ue(e.field):()=>1,s=e.groupby.map(l=>ue(l)),o=WA(this.buffer,l=>s.map(f=>f(l)).join()).map(l=>l[1]);let a=l=>!0;if(e.baseField){const l=ue(e.baseField);a=f=>l(f)!==null}let c,u;switch(e.offset){case"normalize":c=(l,f)=>l/f,u=(l,f)=>Gs(l,f);break;case"center":c=(l,f)=>l-f/2,u=(l,f)=>Gs(l,f);break;case"information":{const l=Math.log2(e.cardinality??4);c=(f,d)=>f/d,u=(f,d)=>{const p=Gs(f,x=>+!a(x)),m=Gs(f,d),g=m-p;let y=0;for(let x=0;x<f.length;x++){const A=f[x];if(a(A)){const w=d(A)/g;y-=w*Math.log2(w)}}return g/(l-(y+0))*(g/m)}}break;default:c=(l,f)=>l,u=(l,f)=>1}for(const l of o){r&&l.sort(r);const f=u(l,i);let d=0;for(const h of l){const p=d+i(h);a(h)&&(h[t[0]]=c(d,f),h[t[1]]=c(p,f),this._propagate(h),d=p)}}super.complete()}}class jI extends Te{get behavior(){return Ht}constructor(e){super(e),this.params=e;const t=ue(e.field??"sequence"),[r,i]=e.as??["pos","sequence"];this.handle=s=>{const o=Object.assign({},s,{[i]:"",[r]:0}),a=t(s);for(let c=0;c<a.length;c++){const u=Object.assign({},o);u[r]=c,u[i]=a.charAt(c),this._propagate(u)}}}}const py={count:n=>n.length,valid:GA,sum:Gs,min:Ku,max:Zu,mean:JA,median:$A,variance:HA};class QI extends Te{get behavior(){return Ht}constructor(e){if(super(e),this.params=e,this.buffer=[],this.ops=[],this.as=[],e.fields){if(e.fields.length!=e.ops.length)throw new Error("Fields and ops must have the same length!");if(e.as&&e.as.length!=e.ops.length)throw new Error('If "as" is defined, "fields" and "as" must have the same length!');e.fields.forEach((t,r)=>{const i=ue(t),s=py[e.ops[r]];this.ops.push(o=>s(o,i)),this.as.push(e.as?e.as[r]:`${e.ops[r]}_${e.fields[r]}`)})}else this.ops.push(t=>py.count(t)),this.as.push("count")}reset(){super.reset(),this.buffer=[]}handle(e){this.buffer.push(e)}complete(){const e=this.params,t=e==null?void 0:e.groupby;if((t==null?void 0:t.length)>0){const r=t.map(s=>ue(s)),i=za(this.buffer,...r);for(const[s,o]of hh(i)){const a={};for(let c=0;c<t.length;c++)a[t[c]]=s[c];this.ops.forEach((c,u)=>{a[this.as[u]]=c(o)}),this._propagate(a)}}else{const r={};this.ops.forEach((i,s)=>{r[this.as[s]]=i(this.buffer)}),this._propagate(r)}super.complete()}}const WI={aggregate:QI,collect:fy,coverage:SI,filterScoredLabels:DI,filter:II,flatten:kI,flattenCompressedExons:MI,flattenDelimited:RI,flattenSequence:jI,formula:NI,identifier:Yl,linearizeGenomicCoordinate:hy,measureText:LI,pileup:UI,project:GI,regexExtract:HI,regexFold:VI,sample:M1,stack:_I};function qI(n,e){const t=WI[n.type];if(t)return new t(n,e);throw new Error("Unknown transform: "+n.type)}function my(n,e=[]){if(!by(n)&&!yy(n))return;const t={...n.format};if(t.type??(t.type=yy(n)&&XI(e)),t.parse??(t.parse="auto"),!t.type)throw new Error("Format for the data source was not defined and it could not be inferred: "+JSON.stringify(n));return t}function YI(n){var e;return((e=hl(n))==null?void 0:e.responseType)??"text"}function XI(n){var e;if(Array.isArray(n)&&(n=n[0]),n)return(e=n.match(/\.(csv|tsv|json)/))==null?void 0:e[1]}const gy=n=>typeof n!="object"?ZI:KI,ZI=n=>({data:n}),KI=n=>n;function yy(n){return"url"in n}class Nr extends ql{constructor(t){super();Y(this,"view");this.view=t}get identifier(){}setLoadingStatus(t,r){this.view.context.setDataLoadingStatus(this.view,t,r)}get paramMediator(){return this.view.paramMediator}handle(t){throw new Error("Source does not handle incoming data!")}async load(){}repropagate(){this.load()}}function by(n){return"values"in n}class JI extends Nr{constructor(t,r){var i;super(r);R(this,ua);if(this.params=t,typeof t.values=="string"&&!((i=t==null?void 0:t.format)!=null&&i.type))throw new Error("Data format type (csv, dsv, ...) must be specified if a string is provided!")}get label(){return"inlineSource"}isTrivial(){const t=this.params.values,r=Array.isArray(t)?t[0]:t;return!!(r&&Object.keys(r).length==0&&r.constructor===Object)}updateDynamicData(t){O(this,ua,Ad).call(this,t)}loadSynchronously(){O(this,ua,Ad).call(this,this.params.values)}async load(){this.loadSynchronously()}}ua=new WeakSet,Ad=function(t){let r=[],i=s=>s;if(Array.isArray(t))t.length>0&&(r=t,i=gy(t[0]));else if(typeof t=="object")r=[t];else if(typeof t=="string")r=dl(t,my(this.params));else throw new Error('"values" in data configuration is not an array, object, or a string!');this.reset(),this.beginBatch({type:"file"});for(const s of r)this._propagate(i(s));this.complete()};function $I(n){return"url"in n}class e9 extends Nr{constructor(t,r){super(r);R(this,Cu);this.params=Bc(r.paramMediator,t,()=>this.load()),this.baseUrl=r==null?void 0:r.getBaseUrl()}get identifier(){return JSON.stringify({params:this.params,baseUrl:this.baseUrl})}get label(){return"urlSource"}async load(){const t=gt(this.params.url),r=typeof t=="object"&&"urlsFromFile"in t?await O(this,Cu,Ix).call(this,t):(Array.isArray(t)?t:[t]).map(c=>Or(this.baseUrl,c)),i=my(this.params,r),s=YI(i.type);if(r.length===0||!r[0]){this.reset(),this.complete();return}const o=async c=>{try{const u=await fetch(c);if(!u.ok)throw new Error(`${u.status} ${u.statusText}`);return typeof u[s]=="function"?u[s]():u.text()}catch(u){throw new Error(`Could not load data: ${c}. Reason: ${u.message}`)}},a=(c,u)=>{try{const l=dl(c,i);this.beginBatch({type:"file",url:u});for(const f of l)this._propagate(f)}catch(l){throw new Error(`Cannot parse: ${u}: ${l.message}`)}};this.setLoadingStatus("loading"),this.reset();try{await Promise.all(r.map(c=>o(c).then(a))),this.setLoadingStatus("complete")}catch(c){this.setLoadingStatus("error",c.message)}this.complete()}}Cu=new WeakSet,Ix=async function(t){const r=Or(this.baseUrl,t.urlsFromFile),i=await fetch(r);if(!i.ok)throw new Error(`Cannot load "${r}": ${i.status} ${i.statusText}`);const s=await i.text();return dl(s,{type:t.type??"tsv"}).map(a=>typeof a=="string"?a:a.url).map(a=>Or(r,a))};function t9(n){return"sequence"in n}class n9 extends Nr{constructor(e,t){if(super(t),this.sequence=Bc(t.paramMediator,e.sequence,()=>this.loadSynchronously()),!("start"in this.sequence))throw new Error("'start' is missing from sequence parameters!");if(!("stop"in this.sequence))throw new Error("'stop' is missing from sequence parameters!")}get label(){return"sequenceSource"}loadSynchronously(){const e=gt(this.sequence.as)??"data",t=gt(this.sequence.start)??0,r=gt(this.sequence.step)??1,i=gt(this.sequence.stop);this.reset(),this.beginBatch({type:"file"});for(let s=t;s<i;s+=r)this._propagate({[e]:s});this.complete()}async load(){this.loadSynchronously()}}class dh extends Nr{constructor(t,r){super(t);Y(this,"initializedPromise",Promise.resolve());if(r){if(r!=="x"&&r!=="y")throw new Error(`Invalid channel specified for the lazy data source: ${r}. Must be either "x" or "y"`)}else throw new Error('No channel has been specified for the lazy data source. Must be either "x" or "y".');if(this.channel=r,this.scaleResolution=this.view.getScaleResolution(r),!this.scaleResolution){const s=[`The lazy data source cannot find a resolved scale for channel "${r}".`];throw this.view instanceof ft||s.push('Make sure the view has a "shared" scale resolution as it is not a unit view.'),new Error(s.join(" "))}const i=()=>{this.view.isVisible()&&this.onDomainChanged(this.scaleResolution.getDomain(),this.scaleResolution.getComplexDomain())};this.scaleResolution.addEventListener("domain",i),this.view.context.addBroadcastListener("layoutComputed",i)}get genome(){return this.scaleResolution.getGenome()}onDomainChanged(t,r){}requestRender(){this.view.context.animator.requestRender()}async load(){this.reset(),this.complete()}publishData(t){this.reset(),this.beginBatch({type:"file"});for(const r of t)for(const i of r)this._propagate(i);this.complete(),ty(this.view)}}class r9 extends dh{constructor(t,r){const i={...t};super(r,i.channel);Y(this,"ticks",[]);this.params=t}get label(){return"axisTickSource"}async load(){this.ticks=null,this.onDomainChanged()}onDomainChanged(){const t=this.scaleResolution.scale,r=this.scaleResolution.getAxisLength(),i=this.params.axis,s=u=>25+60*Bm(100,700,u),o=Ze(i.tickCount)?i.tickCount:Math.round(r/s(r)),a=O1(t,o,i.tickMinStep),c=i.values?N1(t,i.values,a):ED(t,a);if(this.ticks==null||!$a(c,this.ticks)){this.ticks=c;const u=DD(t,o,i.format);this.publishData([c.map(l=>({value:l,label:u(l)}))])}}}class i9 extends dh{constructor(e,t){super(t,e.channel)}get label(){return"axisGenomeSource"}async load(){this.publishData([this.genome.chromosomes])}}function iu(n,e,t=!0){let r,i=o=>{};return function(...a){return new Promise((c,u)=>{const l=()=>{clearTimeout(r),i=f=>{},c(n(...a))};t&&i("debounced"),clearTimeout(r),i=u,r=window.setTimeout(l,typeof e=="function"?e():e)})}}class Ho extends dh{constructor(){super(...arguments);R(this,fs,new AbortController);R(this,hs,[0,0]);R(this,ds,[0,0]);R(this,la,0);Y(this,"params")}setupDebouncing(t){const r=()=>gt(t.debounce),i=t.debounceMode;if(i=="domain")this.onDomainChanged=iu(this.onDomainChanged.bind(this),r,!1);else if(i=="window")this.loadInterval=iu(this.loadInterval.bind(this),r,!1);else throw new Error("Invalid debounceMode: "+i)}onDomainChanged(t){var i;G(this,ds,t);const r=gt((i=this.params)==null?void 0:i.windowSize)??-1;t[1]-t[0]>r||this.callIfWindowsChanged(t,r,async s=>{await this.initializedPromise,this.loadInterval(s)})}reloadLastDomain(){const t=E(this,ds);G(this,ds,[0,0]),G(this,hs,[0,0]),this.onDomainChanged(t)}async loadInterval(t){}async discretizeAndLoad(t,r){E(this,fs).abort(),this.setLoadingStatus("loading"),G(this,fs,new AbortController);const i=E(this,fs).signal,s=this.genome.continuousToDiscreteChromosomeIntervals(t);try{const o=await Promise.all(s.map(async a=>r(a,i)));if(!i.aborted)return this.setLoadingStatus("complete"),o}catch(o){if(!i.aborted)throw this.setLoadingStatus("error",o.message),o}}callIfWindowsChanged(t,r,i){const s=[Math.max(Math.floor(t[0]/r)*r,0),Math.min(Math.ceil(t[1]/r)*r,this.genome.totalSize)],o=E(this,hs);(r!==E(this,la)||s[0]<o[0]||s[1]>o[1])&&(G(this,hs,s),G(this,la,r),i(s))}}fs=new WeakMap,hs=new WeakMap,ds=new WeakMap,la=new WeakMap;class s9 extends Ho{constructor(e,t){const r={channel:"x",windowSize:7e3,debounce:200,debounceMode:"window",...e};if(super(t,r.channel),this.params=r,!this.params.url)throw new Error("No URL provided for IndexedFastaSource");this.setupDebouncing(this.params),this.initializedPromise=new Promise(i=>{Promise.all([Promise.resolve().then(()=>LB),Promise.resolve().then(()=>_o)]).then(([{IndexedFasta:s},{RemoteFile:o}])=>{const a=c=>new o(Uo(c,this.view.getBaseUrl()));this.fasta=new s({fasta:a(this.params.url),fai:a(this.params.indexUrl??this.params.url+".fai")}),i()})})}get label(){return"bigWigSource"}async loadInterval(e){const t=await this.discretizeAndLoad(e,async(r,i)=>this.fasta.getSequence(r.chrom,r.startPos,r.endPos,{signal:i}).then(s=>{if(s!=null)return{chrom:r.chrom,start:r.startPos,sequence:s};console.log(`No sequence found for interval ${r.chrom}:${r.startPos}-${r.endPos}`)}));this.publishData([t.filter(r=>r!==void 0)])}}class o9 extends Ho{constructor(t,r){const i={pixelsPerBin:2,channel:"x",debounce:200,debounceMode:"window",...t},s=Bc(r.paramMediator,i,o=>{o.includes("url")?O(this,fa,wd).call(this).then(()=>this.reloadLastDomain()):o.includes("pixelsPerBin")&&this.reloadLastDomain()});super(r,s.channel);R(this,fa);R(this,ps,[]);R(this,ms);if(this.params=s,!this.params.url)throw new Error("No URL provided for BigWigSource");this.setupDebouncing(this.params),O(this,fa,wd).call(this)}get label(){return"bigWigSource"}async onDomainChanged(t){await this.initializedPromise;const r=this.scaleResolution.getAxisLength()||700,i=a9(t,r,E(this,ps)),s=Math.max(i*r,5e3);this.callIfWindowsChanged(t,s,o=>this.loadInterval(o,i))}async loadInterval(t,r){const i=.5/r/gt(this.params.pixelsPerBin),s=await this.discretizeAndLoad(t,(o,a)=>E(this,ms).getFeatures(o.chrom,o.startPos,o.endPos,{scale:i,signal:a}).then(c=>c.map(u=>({chrom:o.chrom,start:u.start,end:u.end,score:u.score}))));s&&this.publishData(s)}}ps=new WeakMap,ms=new WeakMap,fa=new WeakSet,wd=function(){return this.initializedPromise=new Promise((t,r)=>{Promise.all([Promise.resolve().then(()=>wb),Promise.resolve().then(()=>_o)]).then(([{BigWig:i},{RemoteFile:s}])=>{G(this,ms,new i({filehandle:new s(Uo(gt(this.params.url),this.view.getBaseUrl()))})),this.setLoadingStatus("loading"),E(this,ms).getHeader().then(o=>{G(this,ps,o.zoomLevels.map(a=>a.reductionLevel).reverse()),E(this,ps).push(1),this.setLoadingStatus("complete"),t()}).catch(o=>{this.load(),this.setLoadingStatus("error",`${gt(this.params.url)}: ${o.message}`),r(o)})})}),this.initializedPromise};function a9(n,e,t){const r=(n[1]-n[0])/e;return t.find(i=>i<r)??t.at(-1)}class c9 extends Ho{constructor(t,r){const i={channel:"x",windowSize:1e6,debounce:200,debounceMode:"window",...t},s=Bc(r.paramMediator,i,o=>{o.includes("url")?O(this,ha,vd).call(this).then(()=>this.reloadLastDomain()):o.includes("windowSize")&&this.reloadLastDomain()});super(r,s.channel);R(this,ha);Y(this,"parser");Y(this,"bbi");Y(this,"parseLine");if(this.params=s,!this.params.url)throw new Error("No URL provided for BigBedSource");this.setupDebouncing(this.params),O(this,ha,vd).call(this)}get label(){return"bigBedSource"}async loadInterval(t){const r=await this.discretizeAndLoad(t,async(i,s)=>this.bbi.getFeatures(i.chrom,i.startPos,i.endPos,{signal:s}).then(o=>o.map(a=>this.parseLine(i.chrom,a))));r&&this.publishData(r)}}ha=new WeakSet,vd=function(){return this.initializedPromise=new Promise((t,r)=>{Promise.all([Promise.resolve().then(()=>_k),Promise.resolve().then(()=>wb),Promise.resolve().then(()=>_o)]).then(([i,{BigBed:s},{RemoteFile:o}])=>{const a=i.default;this.bbi=new s({filehandle:new o(Uo(gt(this.params.url),this.view.getBaseUrl()))}),this.setLoadingStatus("loading"),this.bbi.getHeader().then(async c=>{this.parser=new a({autoSql:c.autoSql});try{const u=u9(this.parser);this.parseLine=(l,f)=>u(l,f.start,f.end,f.rest)}catch{this.parseLine=(l,f)=>this.parser.parseLine(`${l} ${f.start} ${f.end} ${f.rest}`)}this.setLoadingStatus("complete"),t()}).catch(c=>{this.load(),this.setLoadingStatus("error",`${gt(this.params.url)}: ${c.message}`),r(c)})})}),this.initializedPromise};function u9(n){const e=n.autoSql.fields.filter(x=>x.type).slice(3);let t=0,r="",i=0,s={};const o=" ",a=o.charCodeAt(0),c=48,u=45;function l(){let x=r.indexOf(o,t);x<0&&(x=i);const A=r.substring(t,x);return t=x+1,A}function f(){let x=0,A=r.charCodeAt(t),w=1;A===u&&(w=-1,t++,A=r.charCodeAt(t));do{if(A===a){t++;break}x=x*10+A-c,A=r.charCodeAt(++t)}while(t<i);return x*w}const d=e.map(x=>`${JSON.stringify(x.name)}: ${x.isNumeric?"0":"emptyString"}`),h=new Function(`
|
|
677
|
+
};`)},u=h=>{o||c(h);for(let A=0;A<o.length;A++){const[d,g]=o[A],p=l(h,d,g);this._propagate(p)}},f=h=>{c(h),u(h),this.handle=u};this.handle=f,this.beginBatch=h=>{Lp(h)&&(this.handle=f),super.beginBatch(h)}}}class T5 extends Ue{get behavior(){return tr}constructor(t){super(t),this.params=t,this.buffer=[]}reset(){this.buffer=[]}handle(t){this.buffer.push(t)}complete(){const t=this.params,e=t.as||["y0","y1"],r=t.sort?sg(t.sort.field,t.sort.order):void 0,i=t.field?ue(t.field):()=>1,s=t.groupby.map(u=>ue(u)),o=Nx(this.buffer,u=>s.map(f=>f(u)).join()).map(u=>u[1]);let a=u=>!0;if(t.baseField){const u=ue(t.baseField);a=f=>u(f)!==null}let l,c;switch(t.offset){case"normalize":l=(u,f)=>u/f,c=(u,f)=>jo(u,f);break;case"center":l=(u,f)=>u-f/2,c=(u,f)=>jo(u,f);break;case"information":{const u=Math.log2(t.cardinality??4);l=(f,h)=>f/h,c=(f,h)=>{const d=jo(f,w=>+!a(w)),g=jo(f,h),p=g-d;let C=0;for(let w=0;w<f.length;w++){const b=f[w];if(a(b)){const y=h(b)/p;C-=y*Math.log2(y)}}return p/(u-(C+0))*(p/g)}}break;default:l=(u,f)=>u,c=(u,f)=>1}for(const u of o){r&&u.sort(r);const f=c(u,i);let h=0;for(const A of u){const d=h+i(A);a(A)&&(A[e[0]]=l(h,f),A[e[1]]=l(d,f),this._propagate(A),h=d)}}super.complete()}}class P5 extends Ue{get behavior(){return cn}constructor(t){super(t),this.params=t;const e=ue(t.field??"sequence"),[r,i]=t.as??["pos","sequence"];this.handle=s=>{const o=Object.assign({},s,{[i]:"",[r]:0}),a=e(s);for(let l=0;l<a.length;l++){const c=Object.assign({},o);c[r]=l,c[i]=a.charAt(l),this._propagate(c)}}}}const G2={count:n=>n.length,valid:Sx,sum:jo,min:rA,max:nA,mean:Gx,median:zx,variance:Dx};class L5 extends Ue{get behavior(){return cn}constructor(t){if(super(t),this.params=t,this.buffer=[],this.ops=[],this.as=[],t.fields){if(t.fields.length!=t.ops.length)throw new Error("Fields and ops must have the same length!");if(t.as&&t.as.length!=t.ops.length)throw new Error('If "as" is defined, "fields" and "as" must have the same length!');t.fields.forEach((e,r)=>{const i=ue(e),s=G2[t.ops[r]];this.ops.push(o=>s(o,i)),this.as.push(t.as?t.as[r]:`${t.ops[r]}_${t.fields[r]}`)})}else this.ops.push(e=>G2.count(e)),this.as.push("count")}reset(){super.reset(),this.buffer=[]}handle(t){this.buffer.push(t)}complete(){const t=this.params,e=t==null?void 0:t.groupby;if((e==null?void 0:e.length)>0){const r=e.map(s=>ue(s)),i=bl(this.buffer,...r);for(const[s,o]of pd(i)){const a={};for(let l=0;l<e.length;l++)a[e[l]]=s[l];this.ops.forEach((l,c)=>{a[this.as[c]]=l(o)}),this._propagate(a)}}else{const r={};this.ops.forEach((i,s)=>{r[this.as[s]]=i(this.buffer)}),this._propagate(r)}super.complete()}}const O5={aggregate:L5,collect:L2,coverage:g5,filterScoredLabels:C5,filter:y5,flatten:E5,flattenCompressedExons:B5,flattenDelimited:v5,flattenSequence:P5,formula:S5,identifier:FA,linearizeGenomicCoordinate:O2,measureText:D5,pileup:F5,project:M5,regexExtract:R5,regexFold:N5,sample:r2,stack:T5};function U5(n,t){const e=O5[n.type];if(e)return new e(n,t);throw new Error("Unknown transform: "+n.type)}function z2(n,t=[]){if(!_2(n)&&!Y2(n))return;const e={...n.format};if(e.type??(e.type=Y2(n)&&z5(t)),e.parse??(e.parse="auto"),!e.type)throw new Error("Format for the data source was not defined and it could not be inferred: "+JSON.stringify(n));return e}function G5(n){var t;return((t=CA(n))==null?void 0:t.responseType)??"text"}function z5(n){var t;if(Array.isArray(n)&&(n=n[0]),n)return(t=n.match(/\.(csv|tsv|json)/))==null?void 0:t[1]}const H2=n=>typeof n!="object"?H5:Y5,H5=n=>({data:n}),Y5=n=>n;function Y2(n){return"url"in n}class fi extends kA{constructor(e){super();j(this,"view");this.view=e}get identifier(){}setLoadingStatus(e,r){this.view.context.setDataLoadingStatus(this.view,e,r)}get paramMediator(){return this.view.paramMediator}handle(e){throw new Error("Source does not handle incoming data!")}async load(){}repropagate(){this.load()}}function _2(n){return"values"in n}class _5 extends fi{constructor(e,r){var i;super(r);D(this,Pc);if(this.params=e,typeof e.values=="string"&&!((i=e==null?void 0:e.format)!=null&&i.type))throw new Error("Data format type (csv, dsv, ...) must be specified if a string is provided!")}get label(){return"inlineSource"}isTrivial(){const e=this.params.values,r=Array.isArray(e)?e[0]:e;return!!(r&&Object.keys(r).length==0&&r.constructor===Object)}updateDynamicData(e){P(this,Pc,Y0).call(this,e)}loadSynchronously(){P(this,Pc,Y0).call(this,this.params.values)}async load(){this.loadSynchronously()}}Pc=new WeakSet,Y0=function(e){let r=[],i=s=>s;if(Array.isArray(e))e.length>0&&(r=e,i=H2(e[0]));else if(typeof e=="object")r=[e];else if(typeof e=="string")r=yA(e,z2(this.params));else throw new Error('"values" in data configuration is not an array, object, or a string!');this.reset(),this.beginBatch({type:"file"});for(const s of r)this._propagate(i(s));this.complete()};function V5(n){return"url"in n}class J5 extends fi{constructor(e,r){super(r);D(this,Qf);this.params=Zl(r.paramMediator,e,()=>this.load()),this.baseUrl=r==null?void 0:r.getBaseUrl()}get identifier(){return JSON.stringify({params:this.params,baseUrl:this.baseUrl})}get label(){return"urlSource"}async load(){const e=Tt(this.params.url),r=typeof e=="object"&&"urlsFromFile"in e?await P(this,Qf,sb).call(this,e):(Array.isArray(e)?e:[e]).map(l=>ui(this.baseUrl,l)),i=z2(this.params,r),s=G5(i.type);if(r.length===0||!r[0]){this.reset(),this.complete();return}const o=async l=>{try{const c=await fetch(l);if(!c.ok)throw new Error(`${c.status} ${c.statusText}`);return typeof c[s]=="function"?c[s]():c.text()}catch(c){throw new Error(`Could not load data: ${l}. Reason: ${c.message}`)}},a=(l,c)=>{try{const u=yA(l,i);this.beginBatch({type:"file",url:c});for(const f of u)this._propagate(f)}catch(u){throw new Error(`Cannot parse: ${c}: ${u.message}`)}};this.setLoadingStatus("loading"),this.reset();try{await Promise.all(r.map(l=>o(l).then(a))),this.setLoadingStatus("complete")}catch(l){this.setLoadingStatus("error",l.message)}this.complete()}}Qf=new WeakSet,sb=async function(e){const r=ui(this.baseUrl,e.urlsFromFile),i=await fetch(r);if(!i.ok)throw new Error(`Cannot load "${r}": ${i.status} ${i.statusText}`);const s=await i.text();return yA(s,{type:e.type??"tsv"}).map(a=>typeof a=="string"?a:a.url).map(a=>ui(r,a))};function q5(n){return"sequence"in n}class K5 extends fi{constructor(t,e){if(super(e),this.sequence=Zl(e.paramMediator,t.sequence,()=>this.loadSynchronously()),!("start"in this.sequence))throw new Error("'start' is missing from sequence parameters!");if(!("stop"in this.sequence))throw new Error("'stop' is missing from sequence parameters!")}get label(){return"sequenceSource"}loadSynchronously(){const t=Tt(this.sequence.as)??"data",e=Tt(this.sequence.start)??0,r=Tt(this.sequence.step)??1,i=Tt(this.sequence.stop);this.reset(),this.beginBatch({type:"file"});for(let s=e;s<i;s+=r)this._propagate({[t]:s});this.complete()}async load(){this.loadSynchronously()}}class md extends fi{constructor(e,r){super(e);j(this,"initializedPromise",Promise.resolve());if(r){if(r!=="x"&&r!=="y")throw new Error(`Invalid channel specified for the lazy data source: ${r}. Must be either "x" or "y"`)}else throw new Error('No channel has been specified for the lazy data source. Must be either "x" or "y".');if(this.channel=r,this.scaleResolution=this.view.getScaleResolution(r),!this.scaleResolution){const s=[`The lazy data source cannot find a resolved scale for channel "${r}".`];throw this.view instanceof Qt||s.push('Make sure the view has a "shared" scale resolution as it is not a unit view.'),new Error(s.join(" "))}const i=()=>{this.view.isVisible()&&this.onDomainChanged(this.scaleResolution.getDomain(),this.scaleResolution.getComplexDomain())};this.scaleResolution.addEventListener("domain",i),this.view.context.addBroadcastListener("layoutComputed",i)}get genome(){const e=this.scaleResolution.getScale();if("genome"in e){const r=e.genome();if(r)return r}throw new Error("No genome has been defined!")}onDomainChanged(e,r){}requestRender(){this.view.context.animator.requestRender()}async load(){this.reset(),this.complete()}publishData(e){this.reset(),this.beginBatch({type:"file"});for(const r of e)for(const i of r)this._propagate(i);this.complete(),v2(this.view)}}class j5 extends md{constructor(e,r){const i={...e};super(r,i.channel);j(this,"ticks",[]);this.params=e}get label(){return"axisTickSource"}async load(){this.ticks=null,this.onDomainChanged()}onDomainChanged(){const e=this.scaleResolution.getScale(),r=this.scaleResolution.getAxisLength(),i=this.params.axis,s=c=>25+60*Np(100,700,c),o=ft(i.tickCount)?i.tickCount:Math.round(r/s(r)),a=u2(e,o,i.tickMinStep),l=i.values?f2(e,i.values,a):h6(e,a);if(this.ticks==null||!Ul(l,this.ticks)){this.ticks=l;const c=g6(e,o,i.format);this.publishData([l.map(u=>({value:u,label:c(u)}))])}}}class W5 extends md{constructor(t,e){super(e,t.channel)}get label(){return"axisGenomeSource"}async load(){this.publishData([this.genome.chromosomes])}}class Xa extends md{constructor(){super(...arguments);D(this,lo,new AbortController);D(this,uo,[0,0]);D(this,fo,[0,0]);D(this,Lc,0);j(this,"params")}setupDebouncing(e){const r=()=>Tt(e.debounce),i=e.debounceMode;if(i=="domain")this.onDomainChanged=zl(this.onDomainChanged.bind(this),r,!1);else if(i=="window")this.loadInterval=zl(this.loadInterval.bind(this),r,!1);else throw new Error("Invalid debounceMode: "+i)}onDomainChanged(e){var i;F(this,fo,e);const r=Tt((i=this.params)==null?void 0:i.windowSize)??-1;e[1]-e[0]>r||this.callIfWindowsChanged(e,r,async s=>{await this.initializedPromise,this.loadInterval(s)})}reloadLastDomain(){const e=m(this,fo);F(this,fo,[0,0]),F(this,uo,[0,0]),this.onDomainChanged(e)}async loadInterval(e){}async discretizeAndLoad(e,r){m(this,lo).abort(),this.setLoadingStatus("loading"),F(this,lo,new AbortController);const i=m(this,lo).signal,s=this.genome.continuousToDiscreteChromosomeIntervals(e);try{const o=await Promise.all(s.map(async a=>r(a,i)));if(!i.aborted)return this.setLoadingStatus("complete"),o}catch(o){if(!i.aborted)throw this.setLoadingStatus("error",o.message),o}}callIfWindowsChanged(e,r,i){const s=[Math.max(Math.floor(e[0]/r)*r,0),Math.min(Math.ceil(e[1]/r)*r,this.genome.totalSize)],o=m(this,uo);(r!==m(this,Lc)||s[0]<o[0]||s[1]>o[1])&&(F(this,uo,s),F(this,Lc,r),i(s))}}lo=new WeakMap,uo=new WeakMap,fo=new WeakMap,Lc=new WeakMap;class X5 extends Xa{constructor(t,e){const r={channel:"x",windowSize:7e3,debounce:200,debounceMode:"window",...t};if(super(e,r.channel),this.params=r,!this.params.url)throw new Error("No URL provided for IndexedFastaSource");this.setupDebouncing(this.params),this.initializedPromise=new Promise(i=>{Promise.all([Promise.resolve().then(()=>RN),Promise.resolve().then(()=>tc)]).then(([{IndexedFasta:s},{RemoteFile:o}])=>{const a=l=>new o(ja(l,this.view.getBaseUrl()));this.fasta=new s({fasta:a(this.params.url),fai:a(this.params.indexUrl??this.params.url+".fai")}),i()})})}get label(){return"bigWigSource"}async loadInterval(t){const e=await this.discretizeAndLoad(t,async(r,i)=>this.fasta.getSequence(r.chrom,r.startPos,r.endPos,{signal:i}).then(s=>{if(s!=null)return{chrom:r.chrom,start:r.startPos,sequence:s};console.log(`No sequence found for interval ${r.chrom}:${r.startPos}-${r.endPos}`)}));this.publishData([e.filter(r=>r!==void 0)])}}class Z5 extends Xa{constructor(e,r){const i={pixelsPerBin:2,channel:"x",debounce:200,debounceMode:"window",...e},s=Zl(r.paramMediator,i,o=>{o.includes("url")?P(this,Oc,_0).call(this).then(()=>this.reloadLastDomain()):o.includes("pixelsPerBin")&&this.reloadLastDomain()});super(r,s.channel);D(this,Oc);D(this,Ao,[]);D(this,ho);if(this.params=s,!this.params.url)throw new Error("No URL provided for BigWigSource");this.setupDebouncing(this.params),P(this,Oc,_0).call(this)}get label(){return"bigWigSource"}async onDomainChanged(e){await this.initializedPromise;const r=this.scaleResolution.getAxisLength()||700,i=$5(e,r,m(this,Ao)),s=Math.max(i*r,5e3);this.callIfWindowsChanged(e,s,o=>this.loadInterval(o,i))}async loadInterval(e,r){const i=.5/r/Tt(this.params.pixelsPerBin),s=await this.discretizeAndLoad(e,(o,a)=>m(this,ho).getFeatures(o.chrom,o.startPos,o.endPos,{scale:i,signal:a}).then(l=>l.map(c=>({chrom:o.chrom,start:c.start,end:c.end,score:c.score}))));s&&this.publishData(s)}}Ao=new WeakMap,ho=new WeakMap,Oc=new WeakSet,_0=function(){return this.initializedPromise=new Promise((e,r)=>{Promise.all([Promise.resolve().then(()=>Xw),Promise.resolve().then(()=>tc)]).then(([{BigWig:i},{RemoteFile:s}])=>{F(this,ho,new i({filehandle:new s(ja(Tt(this.params.url),this.view.getBaseUrl()))})),this.setLoadingStatus("loading"),m(this,ho).getHeader().then(o=>{F(this,Ao,o.zoomLevels.map(a=>a.reductionLevel).reverse()),m(this,Ao).push(1),this.setLoadingStatus("complete"),e()}).catch(o=>{this.load(),this.setLoadingStatus("error",`${Tt(this.params.url)}: ${o.message}`),r(o)})})}),this.initializedPromise};function $5(n,t,e){const r=(n[1]-n[0])/t;return e.find(i=>i<r)??e.at(-1)}class eM extends Xa{constructor(e,r){const i={channel:"x",windowSize:1e6,debounce:200,debounceMode:"window",...e},s=Zl(r.paramMediator,i,o=>{o.includes("url")?P(this,Uc,V0).call(this).then(()=>this.reloadLastDomain()):o.includes("windowSize")&&this.reloadLastDomain()});super(r,s.channel);D(this,Uc);j(this,"parser");j(this,"bbi");j(this,"parseLine");if(this.params=s,!this.params.url)throw new Error("No URL provided for BigBedSource");this.setupDebouncing(this.params),P(this,Uc,V0).call(this)}get label(){return"bigBedSource"}async loadInterval(e){const r=await this.discretizeAndLoad(e,async(i,s)=>this.bbi.getFeatures(i.chrom,i.startPos,i.endPos,{signal:s}).then(o=>o.map(a=>this.parseLine(i.chrom,a))));r&&this.publishData(r)}}Uc=new WeakSet,V0=function(){return this.initializedPromise=new Promise((e,r)=>{Promise.all([Promise.resolve().then(()=>U9),Promise.resolve().then(()=>Xw),Promise.resolve().then(()=>tc)]).then(([i,{BigBed:s},{RemoteFile:o}])=>{const a=i.default;this.bbi=new s({filehandle:new o(ja(Tt(this.params.url),this.view.getBaseUrl()))}),this.setLoadingStatus("loading"),this.bbi.getHeader().then(async l=>{this.parser=new a({autoSql:l.autoSql});try{const c=tM(this.parser);this.parseLine=(u,f)=>c(u,f.start,f.end,f.rest)}catch{this.parseLine=(u,f)=>this.parser.parseLine(`${u} ${f.start} ${f.end} ${f.rest}`)}this.setLoadingStatus("complete"),e()}).catch(l=>{this.load(),this.setLoadingStatus("error",`${Tt(this.params.url)}: ${l.message}`),r(l)})})}),this.initializedPromise};function tM(n){const t=n.autoSql.fields.filter(w=>w.type).slice(3);let e=0,r="",i=0,s={};const o=" ",a=o.charCodeAt(0),l=48,c=45;function u(){let w=r.indexOf(o,e);w<0&&(w=i);const b=r.substring(e,w);return e=w+1,b}function f(){let w=0,b=r.charCodeAt(e),y=1;b===c&&(y=-1,e++,b=r.charCodeAt(e));do{if(b===a){e++;break}w=w*10+b-l,b=r.charCodeAt(++e)}while(e<i);return w*y}const h=t.map(w=>`${JSON.stringify(w.name)}: ${w.isNumeric?"0":"emptyString"}`),A=new Function(`
|
|
618
678
|
const emptyString = "";
|
|
619
679
|
return function makeTemplate(chrom, chromStart, chromEnd) {
|
|
620
680
|
return {
|
|
621
681
|
chrom,
|
|
622
682
|
chromStart,
|
|
623
683
|
chromEnd,
|
|
624
|
-
${
|
|
684
|
+
${h.join(`,
|
|
625
685
|
`)}
|
|
626
686
|
}
|
|
627
|
-
};`)(),
|
|
628
|
-
${
|
|
687
|
+
};`)(),d=t.map(w=>{const b=w.type,y=JSON.stringify(w.name);if(["ubyte","int","uint"].includes(b))return`d[${y}] = parseInt();`;if(w.isNumeric)return`d[${y}] = Number(parseString());`;if(["char","string","lstring"].includes(b))return`d[${y}] = parseString();`;throw new Error("Unsupported type: "+b)}),g=nM(d,50).map((w,b)=>Function("parseInt","parseString",`return function parseFieldChunk${b}(d) {
|
|
688
|
+
${w.join(`
|
|
629
689
|
`)}
|
|
630
|
-
}`)(f,
|
|
631
|
-
`)+" };");return t.properties=e,t}function Ay(n){let e=[];do e=e.concat(Object.keys(n)),n=Object.getPrototypeOf(n);while(n&&n!==Object.prototype);return Array.from(new Set(e))}class su extends Te{constructor(){super({type:"clone"});R(this,ys);R(this,ma,t=>t);const t=r=>{const i=Ay(r);(!E(this,ys)||!$a(i,E(this,ys)))&&(G(this,ys,i),G(this,ma,C9(r)));const s=E(this,ma);this.handle=o=>this._propagate(s(o)),this.handle(r)};this.handle=t,this.beginBatch=r=>{cm(r)&&(this.handle=t),super.beginBatch(r)}}get behavior(){return Ht}}ys=new WeakMap,ma=new WeakMap;function D9(n){return"name"in n}class wy extends Nr{constructor(t,r,i){super(r);R(this,ga);this.provider=i,this.params=t}get identifier(){return this.params.name}get label(){return"namedSource"}updateDynamicData(t){G(this,ga,t),this.loadSynchronously()}loadSynchronously(){const t=E(this,ga)??this.provider(this.params.name)??[];let r=i=>i;if(Array.isArray(t))t.length>0&&(r=gy(t[0]));else throw new Error(`Named data "${this.params.name}" is not an array!`);this.reset(),this.beginBatch({type:"file"});for(const i of t)this._propagate(r(i));this.complete()}async load(){this.loadSynchronously()}}ga=new WeakMap;class vy{constructor(){R(this,yn);R(this,Kr);G(this,yn,new Set),G(this,Kr,new Set)}get dataSources(){return[...E(this,yn)]}get collectors(){return[...E(this,Kr)]}replaceDataSources(e){G(this,yn,new Set(e))}addDataSource(e){E(this,yn).add(e)}removeDataSource(e){E(this,yn).delete(e)}addCollector(e){E(this,Kr).add(e)}removeCollector(e){e.observers.clear(),E(this,Kr).delete(e)}pruneCollectorBranch(e){let t=e.parent;for(t&&t.removeChild(e);t&&t.children.length===0;){const r=t;t=r.parent,t?t.removeChild(r):r instanceof Nr&&this.removeDataSource(r)}}findNamedDataSource(e){let t;for(const r of E(this,yn).values())if(r instanceof wy&&e==r.identifier){if(t&&t!==r)throw new Error(`Found multiple instances of named data: ${e}. Data flow optimization is broken (it's a bug).`);t=r}if(t)return{dataSource:t}}}yn=new WeakMap,Kr=new WeakMap;function I9(n,e){const t=new Map,r=[];for(const i of n)t.set(i,{ref:i,children:[]});for(const i of t.values()){const s=t.get(e(i.ref));s?s.children.push(i):r.push(i)}return r}function Sy(n,e,t){var i,s;const r=(i=e.preOrder)==null?void 0:i.call(e,n);if(r)return r;for(const o of t(n)){const a=Sy(o,e,t);if(a==="stop")return a}return(s=e.postOrder)==null?void 0:s.call(e,n)}function T9(n,e){return Sy(n,e,t=>t.children)}function B9(n,e){const t=[],r=[];let i;const s=e??new vy,o=[];function a(h,p=()=>{}){if(!i)throw p()||new Error("Cannot append data flow node, no parent exist!");return i.addChild(h),i=h,t.push(h),h}function c(h,p){return a(h,()=>new Error("Cannot append a transform because no (inherited) data are available! "))}function u(h,p){for(const m of h){let g;try{g=qI(m,p)}catch(y){throw console.warn(y),new Error(`Cannot initialize "${m.type}" transform: ${y}`)}g.behavior&Rn&&c(new su),c(g)}}function l(){return t.findLastIndex(h=>h instanceof Yl)>t.findLastIndex(h=>h instanceof Nr)}const f=h=>{var p,m;if(h.spec.data){const g=(p=h.flowHandle)==null?void 0:p.dataSource;g&&g.view===h&&!g.identifier&&s.removeDataSource(g);const y=D9(h.spec.data)?new wy(h.spec.data,h,h.context.getNamedDataFromProvider):p9(h.spec.data,h);i=y,t.push(y),s.addDataSource(y),h.flowHandle??(h.flowHandle={}),h.flowHandle.dataSource=y}if(h.spec.transform&&u(h.spec.transform,h),h instanceof ft){if(!i)throw new Error(`A unit view (${h.getPathString()}) has no (inherited) data source`);const g=k9(h);if(g){o.push(g.rewrite);for(const A of g.transforms)c(A)}h.mark.isPickingParticipant()&&!l()&&(c(new su),c(new Yl({type:"identifier"})));const y=new fy({type:"collect",groupby:h.getFacetFields(),sort:F9(h,g==null?void 0:g.rewrittenEncoding)});a(y);const x=(m=h.flowHandle)==null?void 0:m.collector;x&&s.removeCollector(x),s.addCollector(y),h.flowHandle??(h.flowHandle={}),h.flowHandle.collector=y}},d=I9(n.getDescendants(),h=>h.dataParent);for(const h of d)T9(h,{preOrder:p=>{r.push({view:p.ref,nodeStackDepth:t.length}),f(p.ref)},postOrder:()=>{const{nodeStackDepth:p}=r.pop();t.length=p,i=t.at(-1)}});return o.forEach(h=>h()),s}function k9(n){var s;const e=[],t={},r=[];for(const[o,a]of Object.entries(n.getEncoding())){const c=o;Ao(c)&&_m(a)&&r.push({channel:c,chromPosDef:a})}const i=za(r,o=>Ir(o.channel),o=>o.chromPosDef.chrom);for(const[o,a]of i.entries())for(const[c,u]of a.entries()){const l=[],f=[],d=[];for(const{channel:h,chromPosDef:p}of u){const m=x=>x.replace(/[^A-Za-z0-9_]/g,""),g=["_linearized_",m(p.chrom),"_",m(p.pos)].join(""),y={...((s=n.spec.encoding)==null?void 0:s[h])??n.getEncoding()[h]??{},field:g};delete y.chrom,delete y.pos,!y.type&&p.type&&(y.type=p.type),t[h]=y,l.push(p.pos),d.push(p.offset??0),f.push(g)}e.push(new su),e.push(new hy({type:"linearizeGenomicCoordinate",channel:o,chrom:c,pos:l,offset:d,as:f},n))}return e.length?{transforms:e,rewrittenEncoding:t,rewrite:()=>{n.spec.encoding={...n.spec.encoding,...t},nh(n.mark,"encoding")}}:void 0}function F9(n,e){var r;const t={...n.getEncoding(),...e}.x;if(lt(t)&&(r=n.getScaleResolution("x"))!=null&&r.isZoomable()){if(Nn(t))return"buildIndex"in t&&t.buildIndex?{field:t.field}:null;if(!bo(t)){if(xo(t))throw new Error("A zoomable x channel must be mapped to a field.")}}}function Ey(n,e=void 0){if(n.parent!==e)return!1;for(const t of n.children)if(!Ey(t,n))return!1;return!0}function ph(n,e=!1){if(n.behavior&Wl&&(e=!0),n instanceof su)if(e)e=!1;else{const t=n.children[0];n.excise(),t&&ph(t,e);return}n.behavior&Ht&&(e=!1);for(let t=0,r=n.children.length;t<r;t++)ph(n.children[t],e||r>1)}function P9(n){const e=n.dataSources,t=new Map;for(const s of e)s.identifier&&!t.has(s.identifier)&&t.set(s.identifier,s);const r=new Set,i=new Map;for(const s of e)if(s.identifier){const o=t.get(s.identifier);o&&(o!==s&&o.adoptChildrenOf(s),r.add(o),i.set(s,o))}else r.add(s),i.set(s,s);return n.replaceDataSources(r),i}function M9(n){if(ph(n),!Ey(n))throw new Error("Encountered a bug! There's a problem in the data flow structure.")}function R9(n){const e=P9(n);for(const t of n.dataSources)M9(t);return e}const mh=new WeakMap;function O9(n){const e=mh.get(n);if(e)return e;const t=Promise.resolve().then(()=>n.load()).finally(()=>{mh.delete(n)});return mh.set(n,t),t}function N9(n,e){for(const t of n.getDescendants()){const r=t.flowHandle;if(!r)continue;const i=r.dataSource;i&&(r.dataSource=e.get(i)??i)}}function L9(n,e){const t=B9(n,e),r=R9(t);N9(n,r);const i=n.getDescendants(),s=z9(i);for(const u of s)u.visit(l=>l.initialize());const o=i.filter(u=>u instanceof ft),a=[],c=!!n.context.glHelper;for(const u of o){const l=u.mark;l.initializeEncoders(),c&&a.push(l.initializeGraphics().then(()=>l));const f=d=>{if(l.initializeData(),c)try{l.updateGraphicsData()}catch(h){throw h.view=u,h}u.context.animator.requestRender()};u.registerDisposer(u.flowHandle.collector.observe(f))}return{dataFlow:t,unitViews:o,dataSources:s,graphicsPromises:a}}function z9(n){var r,i;const e=Array.isArray(n)?n:n.getDescendants(),t=new Set;for(const s of e){let o=s;for(;o&&!((r=o.flowHandle)!=null&&r.dataSource);)o=o.dataParent;(i=o==null?void 0:o.flowHandle)!=null&&i.dataSource&&t.add(o.flowHandle.dataSource)}return t}function U9(n){const e=new Set;return n.visit(t=>{var r;if((r=t.flowHandle)!=null&&r.dataSource)return e.add(t.flowHandle.dataSource),sy}),e}function G9(n,e=U9(n)){return Promise.all(Array.from(e).map(t=>O9(t))).then(t=>(ty(n),H9(n),t))}function H9(n){const e={type:"subtreeDataReady",payload:{subtreeRoot:n}};n.visit(t=>t.handleBroadcast(e))}function fn(n){return()=>n}const Mt=class Mt{static create(e,t,r,i){return new Mt(fn(e),fn(t),fn(r),fn(i))}_offset(e,t){const r=this["_"+e];if(t===0)return r;switch(typeof t){case"number":return()=>r()+t;case"function":return()=>r()+t();default:throw new Error("Not a number of function")}}_passThrough(e){return this._offset(e,0)}constructor(e,t,r,i){this._x=e,this._y=t,this._width=r,this._height=i}get x(){return this._x()}get y(){return this._y()}get width(){return this._width()}get height(){return this._height()}get x2(){return this._x()+this._width()}get y2(){return this._y()+this._height()}equals(e){return e?this===e||this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height:!1}modify(e){if(!Object.keys(e).length)return this;const t=r=>{const i=e[r];return typeof i=="number"?fn(i):typeof i=="function"?i:this._passThrough(r)};return new Mt(t("x"),t("y"),t("width"),t("height"))}translate(e,t){return e===0&&t===0?this:new Mt(this._offset("x",e),this._offset("y",t),this._passThrough("width"),this._passThrough("height"))}translateBy(e){return this.translate(e.x,e.y)}expand(e,t=1){return e.left==0&&e.top==0&&e.right==0&&e.bottom==0?this:new Mt(e.left?this._offset("x",-e.left*t):this._passThrough("x"),e.top?this._offset("y",-e.top*t):this._passThrough("y"),e.width?this._offset("width",e.width*t):this._passThrough("width"),e.height?this._offset("height",e.height*t):this._passThrough("height"))}shrink(e){return this.expand(e,-1)}intersect(e){return this===e||e==null?this:new Mt(()=>Math.max(this.x,e.x),()=>Math.max(this.y,e.y),()=>Math.min(this.x2,e.x2)-Math.max(this.x,e.x),()=>Math.min(this.y2,e.y2)-Math.max(this.y,e.y))}union(e){return this===e||e==null?this:new Mt(()=>Math.min(this.x,e.x),()=>Math.min(this.y,e.y),()=>Math.max(this.x2,e.x2)-Math.min(this.x,e.x),()=>Math.max(this.y2,e.y2)-Math.min(this.y,e.y))}isDefined(){return this.width>=0&&this.height>=0}flatten(){return new Mt(fn(this.x),fn(this.y),fn(this.width),fn(this.height))}containsPoint(e,t){return e>=this.x&&e<this.x2&&t>=this.y&&t<this.y2}normalizePoint(e,t,r=!1){const i={x:(e-this.x)/this.width,y:(t-this.y)/this.height};return r&&(i.y=1-i.y),i}denormalizePoint(e,t,r=!1){return r&&(t=1-t),{x:this.x+e*this.width,y:this.y+t*this.height}}toString(){return`Rectangle: x: ${this.x}, y: ${this.y}, width: ${this.width}, height: ${this.height}`}toRoundedString(){return`Rectangle: x: ${Math.round(this.x)}, y: ${Math.round(this.y)}, width: ${Math.round(this.width)}, height: ${Math.round(this.height)}`}};Y(Mt,"ZERO",Mt.create(0,0,0,0));let Ft=Mt;class Cy{constructor(e){this.globalOptions=e}pushView(e,t){}popView(e){}renderMark(e,t){}getDevicePixelRatio(){return 1}}class gh extends Cy{constructor(t,r){super(t);R(this,Du);R(this,ya,[0,0,0,0]);R(this,Rt);R(this,ba,[]);R(this,bs);R(this,xa);R(this,Aa,new Set);R(this,wa);R(this,xs,1);R(this,va,{width:0,height:0});if(G(this,xa,r.webGLHelper),G(this,bs,r.framebufferInfo),G(this,xs,r.devicePixelRatio),G(this,va,r.canvasSize),r.clearColor){const i=Gn(r.clearColor).rgb();G(this,ya,[i.r/255,i.g/255,i.b/255,i.opacity])}}getDevicePixelRatio(){return E(this,xs)}pushView(t,r){E(this,Aa).add(t),G(this,wa,r)}renderMark(t,r){if(this.globalOptions.picking&&!t.isPickingParticipant())return;const i=t.render(r);i&&E(this,ba).push({mark:t,callback:i,coords:E(this,wa),clipRect:r.clipRect})}render(){if(E(this,Rt)||O(this,Du,Tx).call(this),E(this,Rt).length==0)return;const t=E(this,xa).gl,r=E(this,bs);r?(t.bindFramebuffer(t.FRAMEBUFFER,r.framebuffer),t.viewport(0,0,r.width,r.height)):t.viewport(0,0,t.drawingBufferWidth,t.drawingBufferHeight),t.disable(t.SCISSOR_TEST),t.clearColor(...E(this,ya)),t.clear(t.COLOR_BUFFER_BIT);for(const i of E(this,Aa))i.onBeforeRender();for(const i of E(this,Rt))i();E(this,bs)&&t.bindFramebuffer(t.FRAMEBUFFER,null)}}ya=new WeakMap,Rt=new WeakMap,ba=new WeakMap,bs=new WeakMap,xa=new WeakMap,Aa=new WeakMap,wa=new WeakMap,xs=new WeakMap,va=new WeakMap,Du=new WeakSet,Tx=function(){G(this,Rt,[]);let t=!0,r=!0;const i=a=>()=>{t&&a()},s=a=>()=>{t&&r&&a()},o=za(E(this,ba).reverse(),a=>a.mark);for(const[a,c]of[...o.entries()].reverse()){if(!a.isReady())continue;E(this,Rt).push(()=>{t=a.unitView.getEffectiveOpacity()>0}),E(this,Rt).push(...a.prepareRender(this.globalOptions).map(l=>i(l)));let u;for(const l of c){const f=l.coords;f.equals(u)||E(this,Rt).push(i(()=>{r=a.setViewport(E(this,va),E(this,xs),f,l.clipRect)})),E(this,Rt).push(s(l.callback)),u=l.coords}}};class V9 extends Cy{constructor(...e){super({}),this.contexts=e}pushView(e,t){for(const r of this.contexts)r.pushView(e,t)}popView(e){for(const t of this.contexts)t.popView(e)}renderMark(e,t){for(const r of this.contexts)r.renderMark(e,t)}}class _9{constructor(e,t){R(this,As);this.point=e,this.uiEvent=t,this.stopped=!1,this.target=void 0}stopPropagation(){this.stopped=!0}get type(){return this.uiEvent.type}get proxiedMouseEvent(){return E(this,As)||G(this,As,j9(this.mouseEvent)),E(this,As)}get mouseEvent(){if(this.uiEvent instanceof MouseEvent)return this.uiEvent;throw new Error("Not a MouseEvent!")}}As=new WeakMap;function j9(n){const e=r=>r===null||typeof r!="object"&&typeof r!="function",t={get(r,i,s){const o=Reflect.get(r,i,r);if(!e(o))throw new Error(`Access to non-primitive property "${String(i)}" is not allowed.`);return o},getPrototypeOf(){return null},ownKeys(r){return Reflect.ownKeys(r).filter(s=>e(r[s])).map(s=>typeof s=="symbol"?s:String(s))},getOwnPropertyDescriptor(r,i){const s=Reflect.getOwnPropertyDescriptor(r,i);if(s&&!("get"in s||"set"in s)&&e(s.value))return{value:s.value,writable:!!s.writable,enumerable:!!s.enumerable,configurable:!!s.configurable}},has(r,i){return i in r?e(r[i]):!1}};return new Proxy(n,t)}class at{static fromMouseEvent(e){return new at(e.clientX,e.clientY)}constructor(e,t){this.x=e,this.y=t}subtract(e){return new at(this.x-e.x,this.y-e.y)}add(e){return new at(this.x-e.x,this.y-e.y)}multiply(e){return new at(this.x*e,this.y*e)}get length(){return Math.sqrt(this.x**2+this.y**2)}equals(e){return e?e===this||e.x===this.x&&e.y===this.y:!1}}const Q9=n=>new Promise(e=>setTimeout(e,n));function W9(n){const e=n.requestAnimationFrame||window.requestAnimationFrame,t=n.signal,r=()=>new Promise((i,s)=>{if(t!=null&&t.aborted)return s("aborted");const o=performance.now(),a=o+(n.duration||1e3),c=typeof n.from=="number"?n.from:0,u=typeof n.to=="number"?n.to:1,l=n.easingFunction||(m=>m),f=m=>(m-o)/(a-o),d=m=>m*(u-c)+c,h=m=>Math.max(0,Math.min(1,m)),p=m=>{t!=null&&t.aborted?s("aborted"):(n.onUpdate(d(l(h(f(m))))),m<a?e(p):(n.onUpdate(d(l(1))),i()))};e(p)});return n.delay?t!=null&&t.aborted?Promise.reject("aborted"):Q9(n.delay).then(r):r()}class q9{constructor(e){this._renderCallback=e,this._renderRequested=!1,this._warn=!1,this.transitions=[]}requestTransition(e){this.cancelTransition(e),this.transitions.push(e),this.requestRender()}cancelTransition(e){const t=this.transitions.indexOf(e);t>=0&&this.transitions.splice(t,1)}requestRender(){this._renderRequested?this._warn&&console.warn("Render already requested!"):(this._renderRequested=!0,window.requestAnimationFrame(e=>{this._renderRequested=!1;const t=this.transitions;this.transitions=[];let r;for(;r=t.shift();)r(e);this._renderCallback(e)}))}transition(e){return W9({requestAnimationFrame:t=>this.requestTransition(t),...e})}}function yh(n,e,t,r,i){let s=0,o=!0,a=structuredClone(i),c=a;function u(d,h,p,m){return h+(d-h)*Math.pow(2,-p/m)}function l(d){if(o)return;const h=d-s;s=d;for(const m of Object.keys(c))a[m]=u(a[m],c[m],h,t);e(a);let p=-1/0;for(const m of Object.keys(c))p=Math.max(p,Math.abs(c[m]-a[m]));p<r?(a=c,e(a),o=!0,p!=0&&n.requestRender()):n.requestTransition(m=>l(m))}function f(d){c=d,o&&(o=!1,s=+document.timeline.currentTime,l(s))}return f.stop=()=>{o=!0},f}class Y9{constructor(e){this.genomes=new Map,this.baseUrl=e}async initialize(e){const t=new XD(e);return this.genomes.set(t.name,t),Promise.all([...this.genomes.values()].map(r=>r.load(this.baseUrl)))}getGenome(e){if(!this.genomes.size)throw new Error("No genomes have been configured!");if(e){const t=this.genomes.get(e);if(!t)throw new Error(`No genome with the name ${e} has been configured!`);return t}else{if(this.genomes.size>1)throw new Error("Cannot pick a default genome! More than one have been configured!");return this.genomes.values().next().value}}}const X9="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEFzklEQVR4AezcRXjr2BnG8b8SQ+gJOiA5d1NmZuZVuU133Zf3++6XxW27Ku7LzIzDrMgByxQGaxwfWVFGMly088z7e76Zi5bu6nvP+Y4sKwgC2n4KP4QfgEcvAVdZGHfuM++Fj8HHwUZERO6aMTocsMGhl4C7bbrzr7C5N0REFAC30nct7qwhdH8REQXAfKf7FrjTLPpJ7EPuMhERycB36XD+hX0/DuzSlsnw3OfyilcwAA/vn/yzQQMoUHg9r59hhn7Oz/njH9ncJAiAXNj9P2qTxdhARETufgDYNs4fsH/Cv2jL53nzm1lcZH2dngKCP/Gnn/LTEiXg+Tw/Q+btvJ1+/vlPfvYz/v1vEwA26w4fs8lm4R4GgIiIAmB5GdvGnmbuh9Rq8MIXcuMGpVJ6AFhEXNwneOI//OfnSz8fL49/jI+9lJcecjjJJD15Ho8+yo9/TKUCb7J5vY1tcw+JiOgMILYJcDpNuFQKq5+neMrFbRXLnI+fu7im6KlSCS9fqXDBccLb31siIgqARBOu1SiV8DzKZbpr0nRxWxnQqs8tv51lol/2Xf63qlS6euOpKYZIREQ7ANOHTYdu1SDL/wMOlguFlxW+Hf8dujMX9ryrNx4KEREFgGXd9BQoWu97S0vLbU36T4EOD6NwGf78R0REAZBoxWaJ3qqDA9Kcx3p9YXW1sLLSCoBM5jI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xk9rPZ1OwzoajQRA3EAArLXL5dIYcz6flVKDwWA+n7daLQHwCMBjcOE8TVOtdbfbFQAAr4ECAPgnMACAAAAA7s0HoDFhsamH/bcAAAAASUVORK5CYII=",Z9={thin:100,light:300,regular:400,normal:400,medium:500,bold:700,black:900};class K9{constructor(e){this._webGLHelper=e,this.fontRepository="https://raw.githubusercontent.com/etiennepinchon/aframe-fonts/master/fonts/",this._fonts=new tn([],JSON.stringify),this._metadataPromises=new Map,this._fontPromises=new Map,this._promises=[],this._defaultFontEntry={metrics:Ql(dy),texture:e?this._createTextureNow(X9):void 0}}async waitUntilReady(){await Promise.all(this._promises)}getFont(e,t="normal",r="regular"){if(me(r)&&(r=Z9[r.toLowerCase()],!r))throw new Error("Unknown font weight: "+r);const i={family:e,style:t,weight:r};let s=this._fonts.get(i);return s||(s={metrics:void 0,texture:void 0},this._fonts.set(i,s),this._promises.push(this._loadFontEntry(s,i))),s}async _loadFontEntry(e,t){try{const r=await this._loadMetadata(t.family),i=$9(r,t),s=this.fontRepository+Dy(t.family)+"/"+i.replace(/\.\w+/,""),o=this._createTexture(s+".png"),a=this._loadFont(s+".json");e.texture=await o,e.metrics=await a}catch{console.warn(`Cannot load font: "${t.family}". Using the embedded default font.`),e.metrics=this._defaultFontEntry.metrics,e.texture=this._defaultFontEntry.texture}}_loadFont(e){let t=this._fontPromises.get(e);return t||(t=fetch(e).then(r=>{if(!r.ok)throw new Error("Could not load font: "+r.status);return r}).then(r=>r.json()).then(r=>Ql(r)),this._fontPromises.set(e,t)),t}_loadMetadata(e){const t=Dy(e);let r=this._metadataPromises.get(t);if(!r){const i=this.fontRepository+t+"/METADATA.pb";r=fetch(i).then(s=>{if(!s.ok)throw new Error("Could not load font metadata. Response status: "+s.status+", url: "+i);return s}).then(s=>s.text()).then(s=>J9(s)).catch(s=>{console.warn(s.message)}),this._metadataPromises.set(t,r)}return r}getDefaultFont(){return this._defaultFontEntry}_createTexture(e){const t=this._webGLHelper.gl;return new Promise((r,i)=>{oo(t,{src:e,min:t.LINEAR},(s,o,a)=>{s?i(s):r(o)})})}_createTextureNow(e){const t=this._webGLHelper.gl;let r;const i=new Promise((s,o)=>{r=oo(t,{src:e,min:t.LINEAR},(a,c,u)=>{a?o(a):s(c)})});return this._promises.push(i),r}}function Dy(n){return n.toLowerCase().replaceAll(/[^\w]/g,"")}function J9(n){const e=n.split(`
|
|
632
|
-
`),
|
|
633
|
-
`))if(i.startsWith(">"))r={identifier:i.match(/>(\S+)/)[1],sequence:""},
|
|
690
|
+
}`)(f,u));function p(w){r=w,i=w.length,e=0}function C(w,b,y,x){p(x),s=A(w,b,y);for(const B of g)B(s);return s}return C}function nM(n,t){return Array.from({length:Math.ceil(n.length/t)},(e,r)=>n.slice(r*t,r*t+t))}class rM extends Xa{constructor(e,r){const i={channel:"x",windowSize:2e4,debounce:200,debounceMode:"domain",...e};super(r,i.channel);D(this,Di);j(this,"chrPrefixFixer",e=>e);if(this.params=i,!this.params.url)throw new Error("No URL provided for BamSource");this.setupDebouncing(this.params),this.initializedPromise=new Promise(s=>{Promise.all([Promise.resolve().then(()=>r7),Promise.resolve().then(()=>tc)]).then(([{BamFile:o},{RemoteFile:a}])=>{const l=c=>new a(ja(c,this.view.getBaseUrl()));F(this,Di,new o({bamFilehandle:l(this.params.url),baiFilehandle:l(this.params.indexUrl??this.params.url+".bai")})),m(this,Di).getHeader().then(c=>{var h,A;const u=this.genome.hasChrPrefix(),f=(A=(h=m(this,Di).indexToChr)==null?void 0:h[0])==null?void 0:A.refName.startsWith("chr");u&&!f?this.chrPrefixFixer=d=>d.replace("chr",""):!u&&f&&(this.chrPrefixFixer=d=>"chr"+d),s()})})})}get label(){return"bamSource"}async loadInterval(e){const r=await this.discretizeAndLoad(e,async(i,s)=>m(this,Di).getRecordsForRange(this.chrPrefixFixer(i.chrom),i.startPos,i.endPos,{signal:s}).then(o=>o.map(a=>({chrom:i.chrom,start:a.start,end:a.end,name:a.name,cigar:a.CIGAR,mapq:a.mq,strand:a.strand===1?"+":"-"}))));r&&this.publishData(r)}}Di=new WeakMap;class V2 extends Xa{constructor(e,r){const i={channel:"x",windowSize:3e6,debounce:200,debounceMode:"domain",addChrPrefix:!1,...e};super(r,i.channel);D(this,go);if(this.params=i,!this.params.url)throw new Error("No URL provided for TabixSource");this.setupDebouncing(this.params),this.initializedPromise=new Promise(s=>{Promise.all([Promise.resolve().then(()=>h7),Promise.resolve().then(()=>tc)]).then(async([{TabixIndexedFile:o},{RemoteFile:a}])=>{const l=u=>new a(ja(u,this.view.getBaseUrl()));F(this,go,new o({filehandle:l(this.params.url),tbiFilehandle:l(this.params.indexUrl??this.params.url+".tbi"),renameRefSeqs:this.params.addChrPrefix===!0?u=>"chr"+u:this.params.addChrPrefix?u=>this.params.addChrPrefix+u:void 0}));const c=await m(this,go).getHeader();await this._handleHeader(c),s()})})}async loadInterval(e){await this.initializedPromise;const r=await this.discretizeAndLoad(e,async(i,s)=>{const o=[];return await m(this,go).getLines(i.chrom,i.startPos,i.endPos,{lineCallback:a=>{o.push(a)},signal:s}),this._parseFeatures(o)});r&&this.publishData(r)}async _handleHeader(e){}_parseFeatures(e){return[]}}go=new WeakMap;class iM extends V2{constructor(){super(...arguments);D(this,Gc)}get label(){return"gff3Source"}async _handleHeader(e){F(this,Gc,await Promise.resolve().then(()=>F7))}_parseFeatures(e){var i;return(i=m(this,Gc))==null?void 0:i.parseArraySync(e)}}Gc=new WeakMap;class sM extends V2{constructor(){super(...arguments);D(this,zc)}get label(){return"vcfSource"}async _handleHeader(e){const r=(await Promise.resolve().then(()=>O7)).default;F(this,zc,new r({header:e}))}_parseFeatures(e){return e.map(r=>{const i=m(this,zc).parseLine(r);return delete i.GENOTYPES,i.SAMPLES=i.SAMPLES(),i})}}zc=new WeakMap;function oM(n,t){if(_2(n))return new _5(n,t);if(V5(n))return new J5(n,t);if(q5(n))return new K5(n,t);if(aM(n))return pM(n.lazy,t);throw new Error("Cannot figure out the data source type: "+JSON.stringify(n))}function aM(n){return"lazy"in n}function cM(n){return(n==null?void 0:n.type)=="axisTicks"}function lM(n){return(n==null?void 0:n.type)=="axisGenome"}function uM(n){return(n==null?void 0:n.type)=="indexedFasta"}function fM(n){return(n==null?void 0:n.type)=="bigwig"}function AM(n){return(n==null?void 0:n.type)=="bigbed"}function hM(n){return(n==null?void 0:n.type)=="bam"}function dM(n){return(n==null?void 0:n.type)=="gff3"}function gM(n){return(n==null?void 0:n.type)=="vcf"}function pM(n,t){if(cM(n))return new j5(n,t);if(lM(n))return new W5(n,t);if(uM(n))return new X5(n,t);if(fM(n))return new Z5(n,t);if(AM(n))return new eM(n,t);if(hM(n))return new rM(n,t);if(dM(n))return new iM(n,t);if(gM(n))return new sM(n,t);throw new Error("Cannot figure out the data source type: "+JSON.stringify(n))}function mM(n){const t=J2(n).filter(r=>typeof r=="string"),e=new Function("source","return { "+t.map(r=>JSON.stringify(r)).map(r=>`${r}: source[${r}]`).join(`,
|
|
691
|
+
`)+" };");return e.properties=t,e}function J2(n){let t=[];do t=t.concat(Object.keys(n)),n=Object.getPrototypeOf(n);while(n&&n!==Object.prototype);return Array.from(new Set(t))}class Vu extends Ue{constructor(){super({type:"clone"});D(this,po);D(this,Hc,e=>e);const e=r=>{const i=J2(r);(!m(this,po)||!Ul(i,m(this,po)))&&(F(this,po,i),F(this,Hc,mM(r)));const s=m(this,Hc);this.handle=o=>this._propagate(s(o)),this.handle(r)};this.handle=e,this.beginBatch=r=>{Lp(r)&&(this.handle=e),super.beginBatch(r)}}get behavior(){return cn}}po=new WeakMap,Hc=new WeakMap;function CM(n){return"name"in n}class q2 extends fi{constructor(e,r,i){super(r);D(this,Yc);this.provider=i,this.params=e}get identifier(){return this.params.name}get label(){return"namedSource"}updateDynamicData(e){F(this,Yc,e),this.loadSynchronously()}loadSynchronously(){const e=m(this,Yc)??this.provider(this.params.name)??[];let r=i=>i;if(Array.isArray(e))e.length>0&&(r=H2(e[0]));else throw new Error(`Named data "${this.params.name}" is not an array!`);this.reset(),this.beginBatch({type:"file"});for(const i of e)this._propagate(r(i));this.complete()}async load(){this.loadSynchronously()}}Yc=new WeakMap;class K2{constructor(){D(this,Yn);D(this,ki);F(this,Yn,new Set),F(this,ki,new Set)}get dataSources(){return[...m(this,Yn)]}get collectors(){return[...m(this,ki)]}replaceDataSources(t){F(this,Yn,new Set(t))}addDataSource(t){m(this,Yn).add(t)}removeDataSource(t){m(this,Yn).delete(t)}addCollector(t){m(this,ki).add(t)}removeCollector(t){t.observers.clear(),m(this,ki).delete(t)}pruneCollectorBranch(t){let e=t.parent;for(e&&e.removeChild(t);e&&e.children.length===0;){const r=e;e=r.parent,e?e.removeChild(r):r instanceof fi&&this.removeDataSource(r)}}findNamedDataSource(t){let e;for(const r of m(this,Yn).values())if(r instanceof q2&&t==r.identifier){if(e&&e!==r)throw new Error(`Found multiple instances of named data: ${t}. Data flow optimization is broken (it's a bug).`);e=r}if(e)return{dataSource:e}}}Yn=new WeakMap,ki=new WeakMap;function yM(n,t){const e=new Map,r=[];for(const i of n)e.set(i,{ref:i,children:[]});for(const i of e.values()){const s=e.get(t(i.ref));s?s.children.push(i):r.push(i)}return r}function j2(n,t,e){var i,s;const r=(i=t.preOrder)==null?void 0:i.call(t,n);if(r)return r;for(const o of e(n)){const a=j2(o,t,e);if(a==="stop")return a}return(s=t.postOrder)==null?void 0:s.call(t,n)}function wM(n,t){return j2(n,t,e=>e.children)}function IM(n,t){const e=[],r=[];let i;const s=t??new K2,o=[];function a(A,d=()=>{}){if(!i)throw d()||new Error("Cannot append data flow node, no parent exist!");return i.addChild(A),i=A,e.push(A),A}function l(A,d){return a(A,()=>new Error("Cannot append a transform because no (inherited) data are available! "))}function c(A,d){for(const g of A){let p;try{p=U5(g,d)}catch(C){throw console.warn(C),new Error(`Cannot initialize "${g.type}" transform: ${C}`)}p.behavior&tr&&l(new Vu),l(p)}}function u(){return e.findLastIndex(A=>A instanceof FA)>e.findLastIndex(A=>A instanceof fi)}const f=A=>{var d,g;if(A.spec.data){const p=(d=A.flowHandle)==null?void 0:d.dataSource;p&&p.view===A&&!p.identifier&&s.removeDataSource(p);const C=CM(A.spec.data)?new q2(A.spec.data,A,A.context.getNamedDataFromProvider):oM(A.spec.data,A);i=C,e.push(C),s.addDataSource(C),A.flowHandle??(A.flowHandle={}),A.flowHandle.dataSource=C}if(A.spec.transform&&c(A.spec.transform,A),A instanceof Qt){if(!i)throw new Error(`A unit view (${A.getPathString()}) has no (inherited) data source`);const p=EM(A);if(p){o.push(p.rewrite);for(const b of p.transforms)l(b)}A.mark.isPickingParticipant()&&!u()&&(l(new Vu),l(new FA({type:"identifier"})));const C=new L2({type:"collect",groupby:A.getFacetFields(),sort:bM(A,p==null?void 0:p.rewrittenEncoding)});a(C);const w=(g=A.flowHandle)==null?void 0:g.collector;w&&s.removeCollector(w),s.addCollector(C),A.flowHandle??(A.flowHandle={}),A.flowHandle.collector=C}},h=yM(n.getDescendants(),A=>A.dataParent);for(const A of h)wM(A,{preOrder:d=>{r.push({view:d.ref,nodeStackDepth:e.length}),f(d.ref)},postOrder:()=>{const{nodeStackDepth:d}=r.pop();e.length=d,i=e.at(-1)}});return o.forEach(A=>A()),s}function EM(n){var s;const t=[],e={},r=[];for(const[o,a]of Object.entries(n.getEncoding())){const l=o;wa(l)&&Yp(a)&&r.push({channel:l,chromPosDef:a})}const i=bl(r,o=>Xr(o.channel),o=>o.chromPosDef.chrom);for(const[o,a]of i.entries())for(const[l,c]of a.entries()){const u=[],f=[],h=[];for(const{channel:A,chromPosDef:d}of c){const g=w=>w.replace(/[^A-Za-z0-9_]/g,""),p=["_linearized_",g(d.chrom),"_",g(d.pos)].join(""),C={...((s=n.spec.encoding)==null?void 0:s[A])??n.getEncoding()[A]??{},field:p};delete C.chrom,delete C.pos,!C.type&&d.type&&(C.type=d.type),e[A]=C,u.push(d.pos),h.push(d.offset??0),f.push(p)}t.push(new Vu),t.push(new O2({type:"linearizeGenomicCoordinate",channel:o,chrom:l,pos:u,offset:h,as:f},n))}return t.length?{transforms:t,rewrittenEncoding:e,rewrite:()=>{n.spec.encoding={...n.spec.encoding,...e},od(n.mark,"encoding")}}:void 0}function bM(n,t){var r;const e={...n.getEncoding(),...t}.x;if(vt(e)&&(r=n.getScaleResolution("x"))!=null&&r.isZoomable()){if(nr(e))return"buildIndex"in e&&e.buildIndex?{field:e.field}:null;if(!Ca(e)){if(ya(e))throw new Error("A zoomable x channel must be mapped to a field.")}}}function W2(n,t=void 0){if(n.parent!==t)return!1;for(const e of n.children)if(!W2(e,n))return!1;return!0}function Cd(n,t=!1){if(n.behavior&DA&&(t=!0),n instanceof Vu)if(t)t=!1;else{const e=n.children[0];n.excise(),e&&Cd(e,t);return}n.behavior&cn&&(t=!1);for(let e=0,r=n.children.length;e<r;e++)Cd(n.children[e],t||r>1)}function xM(n){const t=n.dataSources,e=new Map;for(const s of t)s.identifier&&!e.has(s.identifier)&&e.set(s.identifier,s);const r=new Set,i=new Map;for(const s of t)if(s.identifier){const o=e.get(s.identifier);o&&(o!==s&&o.adoptChildrenOf(s),r.add(o),i.set(s,o))}else r.add(s),i.set(s,s);return n.replaceDataSources(r),i}function BM(n){if(Cd(n),!W2(n))throw new Error("Encountered a bug! There's a problem in the data flow structure.")}function vM(n){const t=xM(n);for(const e of n.dataSources)BM(e);return t}const yd=new WeakMap;function QM(n){const t=yd.get(n);if(t)return t;const e=Promise.resolve().then(()=>n.load()).finally(()=>{yd.delete(n)});return yd.set(n,e),e}function SM(n,t){for(const e of n.getDescendants()){const r=e.flowHandle;if(!r)continue;const i=r.dataSource;i&&(r.dataSource=t.get(i)??i)}}function X2(n,t){const e=IM(n,t),r=vM(e);SM(n,r);const i=n.getDescendants(),s=DM(i);for(const c of s)c.visit(u=>u.initialize());const o=i.filter(c=>c instanceof Qt),a=[],l=!!n.context.glHelper;for(const c of o){const u=c.mark;u.initializeEncoders(),l&&a.push(u.initializeGraphics().then(()=>u));const f=h=>{if(u.initializeData(),l)try{u.updateGraphicsData()}catch(A){throw A.view=c,A}c.context.animator.requestRender()};c.registerDisposer(c.flowHandle.collector.observe(f))}return{dataFlow:e,unitViews:o,dataSources:s,graphicsPromises:a}}function DM(n){var r,i;const t=Array.isArray(n)?n:n.getDescendants(),e=new Set;for(const s of t){let o=s;for(;o&&!((r=o.flowHandle)!=null&&r.dataSource);)o=o.dataParent;(i=o==null?void 0:o.flowHandle)!=null&&i.dataSource&&e.add(o.flowHandle.dataSource)}return e}function kM(n){const t=new Set;return n.visit(e=>{var r;if((r=e.flowHandle)!=null&&r.dataSource)return t.add(e.flowHandle.dataSource),k2}),t}function Z2(n,t=kM(n)){return Promise.all(Array.from(t).map(e=>QM(e))).then(e=>(v2(n),FM(n),e))}function FM(n){const t={type:"subtreeDataReady",payload:{subtreeRoot:n}};n.visit(e=>e.handleBroadcast(t))}async function MM(n,t,e,r){const{dataFlow:i,graphicsPromises:s}=X2(n,t);return r(i),await e.waitUntilReady(),await Z2(n,new Set(i.dataSources)),await N2(s),i}const RM=n=>new Promise(t=>setTimeout(t,n));function NM(n){const t=n.requestAnimationFrame||window.requestAnimationFrame,e=n.signal,r=()=>new Promise((i,s)=>{if(e!=null&&e.aborted)return s("aborted");const o=performance.now(),a=o+(n.duration||1e3),l=typeof n.from=="number"?n.from:0,c=typeof n.to=="number"?n.to:1,u=n.easingFunction||(g=>g),f=g=>(g-o)/(a-o),h=g=>g*(c-l)+l,A=g=>Math.max(0,Math.min(1,g)),d=g=>{e!=null&&e.aborted?s("aborted"):(n.onUpdate(h(u(A(f(g))))),g<a?t(d):(n.onUpdate(h(u(1))),i()))};t(d)});return n.delay?e!=null&&e.aborted?Promise.reject("aborted"):RM(n.delay).then(r):r()}class TM{constructor(t){this._renderCallback=t,this._renderRequested=!1,this._warn=!1,this.transitions=[]}requestTransition(t){this.cancelTransition(t),this.transitions.push(t),this.requestRender()}cancelTransition(t){const e=this.transitions.indexOf(t);e>=0&&this.transitions.splice(e,1)}requestRender(){this._renderRequested?this._warn&&console.warn("Render already requested!"):(this._renderRequested=!0,window.requestAnimationFrame(t=>{this._renderRequested=!1;const e=this.transitions;this.transitions=[];let r;for(;r=e.shift();)r(t);this._renderCallback(t)}))}transition(t){return NM({requestAnimationFrame:e=>this.requestTransition(e),...t})}}function wd(n,t,e,r,i){let s=0,o=!0,a=structuredClone(i),l=a;function c(h,A,d,g){return A+(h-A)*Math.pow(2,-d/g)}function u(h){if(o)return;const A=h-s;s=h;for(const g of Object.keys(l))a[g]=c(a[g],l[g],A,e);t(a);let d=-1/0;for(const g of Object.keys(l))d=Math.max(d,Math.abs(l[g]-a[g]));d<r?(a=l,t(a),o=!0,d!=0&&n.requestRender()):n.requestTransition(g=>u(g))}function f(h){l=h,o&&(o=!1,s=+document.timeline.currentTime,u(s))}return f.stop=()=>{o=!0},f}class PM{constructor(t){this.genomes=new Map,this.baseUrl=t}async initialize(t){const e=new r6(t);return this.genomes.set(e.name,e),Promise.all([...this.genomes.values()].map(r=>r.load(this.baseUrl)))}getGenome(t){if(!this.genomes.size)throw new Error("No genomes have been configured!");if(t){const e=this.genomes.get(t);if(!e)throw new Error(`No genome with the name ${t} has been configured!`);return e}else{if(this.genomes.size>1)throw new Error("Cannot pick a default genome! More than one have been configured!");return this.genomes.values().next().value}}}const LM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEFzklEQVR4AezcRXjr2BnG8b8SQ+gJOiA5d1NmZuZVuU133Zf3++6XxW27Ku7LzIzDrMgByxQGaxwfWVFGMly088z7e76Zi5bu6nvP+Y4sKwgC2n4KP4QfgEcvAVdZGHfuM++Fj8HHwUZERO6aMTocsMGhl4C7bbrzr7C5N0REFAC30nct7qwhdH8REQXAfKf7FrjTLPpJ7EPuMhERycB36XD+hX0/DuzSlsnw3OfyilcwAA/vn/yzQQMoUHg9r59hhn7Oz/njH9ncJAiAXNj9P2qTxdhARETufgDYNs4fsH/Cv2jL53nzm1lcZH2dngKCP/Gnn/LTEiXg+Tw/Q+btvJ1+/vlPfvYz/v1vEwA26w4fs8lm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OMp/rKdO+BQIIgCOP5mupRGYQpQxSEFEZAAhPvcg44OKAClQGkXxoJb2BubAw539txp+v889OYL/GVqpCMVAAB3APltOh0J8wcKqeLtMwBhXgQAUD0A8v+UfMvrbwUAAAjAezk/VtzlL/EBAKooCnk8AAAtAIBoEAAAAAEAABAAAAABAAA8yVeyLNvtdpfLRSnV7/dns1mj0ZC4AQAByPPcObderw+HQ61WG4/H3vvVaiVxAwACsN/vt9utc26z2dTr9cVi0W63n0sCIGIgAN77JEmOx2NeOp1OYQ2HAiBu4BK42WwaY6y1tzV8CGs4FABxA98AhsPhZDK5Xq+9Xk9rPZ1OwzoajQRA3EAArLXL5dIYcz6flVKDwWA+n7daLQHwCMBjcOE8TVOtdbfbFQAAr4ECAPgnMACAAAAA7s0HoDFhsamH/bcAAAAASUVORK5CYII=",OM={thin:100,light:300,regular:400,normal:400,medium:500,bold:700,black:900};class UM{constructor(t){this._webGLHelper=t,this.fontRepository="https://raw.githubusercontent.com/etiennepinchon/aframe-fonts/master/fonts/",this._fonts=new Sn([],JSON.stringify),this._metadataPromises=new Map,this._fontPromises=new Map,this._promises=[],this._defaultFontEntry={metrics:ph(U2),texture:t?this._createTextureNow(LM):void 0}}async waitUntilReady(){await Promise.all(this._promises)}getFont(t,e="normal",r="regular"){if(Ce(r)&&(r=OM[r.toLowerCase()],!r))throw new Error("Unknown font weight: "+r);const i={family:t,style:e,weight:r};let s=this._fonts.get(i);return s||(s={metrics:void 0,texture:void 0},this._fonts.set(i,s),this._promises.push(this._loadFontEntry(s,i))),s}async _loadFontEntry(t,e){try{const r=await this._loadMetadata(e.family),i=zM(r,e),s=this.fontRepository+$2(e.family)+"/"+i.replace(/\.\w+/,""),o=this._createTexture(s+".png"),a=this._loadFont(s+".json");t.texture=await o,t.metrics=await a}catch{console.warn(`Cannot load font: "${e.family}". Using the embedded default font.`),t.metrics=this._defaultFontEntry.metrics,t.texture=this._defaultFontEntry.texture}}_loadFont(t){let e=this._fontPromises.get(t);return e||(e=fetch(t).then(r=>{if(!r.ok)throw new Error("Could not load font: "+r.status);return r}).then(r=>r.json()).then(r=>ph(r)),this._fontPromises.set(t,e)),e}_loadMetadata(t){const e=$2(t);let r=this._metadataPromises.get(e);if(!r){const i=this.fontRepository+e+"/METADATA.pb";r=fetch(i).then(s=>{if(!s.ok)throw new Error("Could not load font metadata. Response status: "+s.status+", url: "+i);return s}).then(s=>s.text()).then(s=>GM(s)).catch(s=>{console.warn(s.message)}),this._metadataPromises.set(e,r)}return r}getDefaultFont(){return this._defaultFontEntry}_createTexture(t){const e=this._webGLHelper.gl;return new Promise((r,i)=>{Qa(e,{src:t,min:e.LINEAR},(s,o,a)=>{s?i(s):r(o)})})}_createTextureNow(t){const e=this._webGLHelper.gl;let r;const i=new Promise((s,o)=>{r=Qa(e,{src:t,min:e.LINEAR},(a,l,c)=>{a?o(a):s(l)})});return this._promises.push(i),r}}function $2(n){return n.toLowerCase().replaceAll(/[^\w]/g,"")}function GM(n){const t=n.split(`
|
|
692
|
+
`),e=[];let r;for(const i of t)if(i.startsWith("fonts {")&&(r={name:void 0,style:void 0,weight:void 0,filename:void 0,post_script_name:void 0,full_name:void 0,copyright:void 0}),i.startsWith("}")&&(e.push(r),r=void 0),r){let s=i.match(/^\s*([A-Za-z_]+):[ ]?"(.*)"$/);if(s){const o=s[1];r[o]=s[2]}if(s=i.match(/^\s*([A-Za-z_]+):[ ]?(\d+)$/),s){const o=s[1];r[o]=+s[2]}}return e}function zM(n,t){let e,r=Number.POSITIVE_INFINITY;for(const i of n)if(t.family.localeCompare(i.name,void 0,{sensitivity:"accent"})==0&&t.style==i.style){const s=Math.abs(t.weight-i.weight);s<r&&(r=s,e=i)}return e==null?void 0:e.filename}function HM(n,t){const e=[];let r;for(const i of n.split(`
|
|
693
|
+
`))if(i.startsWith(">"))r={identifier:i.match(/>(\S+)/)[1],sequence:""},e.push(r);else if(r)r.sequence+=i.trim();else throw new Error("Invalid fasta file!");return e}const ey=new Map,YM={Organism:"Homo sapiens"};async function _M(n,t,e={}){const r=n.symbol,i={...YM,...e,GENE:r};let s=ey.get(r)??await qM(i);return s?(ey.set(r,s),be`
|
|
634
694
|
<div class="title">
|
|
635
695
|
<strong>${s.name}</strong>
|
|
636
696
|
${s.description}
|
|
637
697
|
</div>
|
|
638
698
|
<p class="summary">${s.summary}</p>
|
|
639
699
|
<p class="source">Source: NCBI RefSeq Gene</p>
|
|
640
|
-
`):null}async function
|
|
700
|
+
`):null}async function VM(n){const t={mode:"cors"},e=new URL("https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi");e.search=new URLSearchParams({db:"gene",term:KM(n),sort:"relevance",retmax:"1",retmode:"json"}).toString();const i=(await fetch(e.toString(),t).then(s=>s.json())).esearchresult.idlist[0];if(i){const s=new URL("https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi");return s.search=new URLSearchParams({db:"gene",id:i,retmode:"json"}).toString(),(await fetch(s.toString(),t).then(l=>l.json())).result[i]}else return null}const JM=zl(VM,500);function qM(n){return JM(n)}function KM(n){return Object.entries(n).filter(([t,e])=>e&&e.length>0).map(([t,e])=>`("${e}"[${t}])`).join(" AND ")}const jM=Ze(".4~r"),WM=Ze(".4~e");function ty(n){return n==null?be` <span class="na">NA</span> `:Ce(n)?n.substring(0,30):Number.isInteger(n)?""+n:ft(n)?Math.abs(n)>Math.pow(10,8)||Math.abs(n)<Math.pow(10,-8)?WM(n):jM(n):Po(n)?n?"True":"False":Xe(n)?be`${n.map((t,e)=>[ty(t),e<n.length-1?", ":Te])}`:"?"+typeof n+" "+n}async function XM(n,t,e){const r=(c,u)=>{var f;for(const[h,A]of Object.entries(t.encoders))if((f=A==null?void 0:A.dataAccessor)!=null&&f.fields.includes(c))switch(h){case"color":case"fill":case"stroke":return be`
|
|
641
701
|
<span
|
|
642
702
|
class="color-legend"
|
|
643
|
-
style=${`background-color: ${
|
|
703
|
+
style=${`background-color: ${A(u)}`}
|
|
644
704
|
></span>
|
|
645
|
-
`}return""},i=(u
|
|
705
|
+
`}return""},i=(c,u)=>{const f=c.filter(([h,A])=>!h.startsWith("_"));if(f.length!==0)return f.map(([h,A])=>A!==null&&typeof A=="object"&&!Array.isArray(A)?be`${i(Object.entries(A),(u||"")+h+".")}`:be`
|
|
646
706
|
<tr>
|
|
647
|
-
<th>${
|
|
648
|
-
<td>${
|
|
707
|
+
<th>${u}${h}</th>
|
|
708
|
+
<td>${ty(A)} ${r(h,n)}</td>
|
|
649
709
|
</tr>
|
|
650
|
-
`)},s=i(Object.entries(n));if(!s)return;const o=
|
|
710
|
+
`)},s=i(Object.entries(n));if(!s)return;const o=be`
|
|
651
711
|
<table class="attributes">
|
|
652
712
|
${s}
|
|
653
713
|
</table>
|
|
654
|
-
`,a=
|
|
714
|
+
`,a=t.unitView.getTitleText(),l=a?be`
|
|
655
715
|
<div class="title">
|
|
656
716
|
<strong>${a}</strong>
|
|
657
717
|
</div>
|
|
658
|
-
`:"";return ye`${c}${o}`}class Vo extends ay{constructor(e,t,r,i,s,o){super(e,t,r,i,s,o),this.spec=e}async initializeChildren(){}*[Symbol.iterator](){}replaceChild(e,t){throw new Error("Not implemented")}visit(e){let t;try{t=e(this)}catch(r){throw r.view=this,r}if(t===Go)return t;if(t!==sy){e.beforeChildren&&e.beforeChildren(this);for(const r of this){const i=r.visit(e);if(i===Go)return i}e.afterChildren&&e.afterChildren(this),e.postOrder&&e.postOrder(this)}}findDescendantByPath(e){for(const t of this)if(t.name===e[0]){if(e.length==1)return t;if(t instanceof Vo)return t.findDescendantByPath(e.slice(1))}}findChildByName(e){for(const t of this)if(t.name===e)return t}findDescendantByName(e){let t;return this.visit(r=>{if(r.name==e)return t=r,Go}),t}getDefaultResolution(e,t){return"shared"}}class Ri extends Vo{constructor(t,r,i,s,o,a){super(t,r,i,s,o,{layersChildren:!0,...a});R(this,bn,[]);this.spec=t,this.needsAxes={x:!0,y:!0}}async initializeChildren(){G(this,bn,await Promise.all(this.spec.layer.map((t,r)=>this.context.createOrImportView(t,this,this,"grid"+r,i=>{if(!Sh(i)&&!vh(i))throw new Qn("LayerView accepts only unit or layer specs as children!",this)}))))}get children(){return E(this,bn).slice()}*[Symbol.iterator](){for(const t of E(this,bn))yield t}render(t,r,i={}){if(super.render(t,r,i),!!this.isConfiguredVisible()){t.pushView(this,r);for(const s of E(this,bn))s.render(t,r,i);t.popView(this)}}propagateInteractionEvent(t){this.handleInteractionEvent(void 0,t,!0);for(let r=E(this,bn).length-1;r>=0;r--)if(E(this,bn)[r].propagateInteractionEvent(t),t.stopped)return;this.handleInteractionEvent(void 0,t,!1)}}bn=new WeakMap;class By{constructor(e,t){this.n=e,this.maxCols=t??1/0}get nRows(){return this.maxCols==1/0?1:Math.ceil(this.n/this.maxCols)}get nCols(){return Math.min(this.n,this.maxCols)}get rowIndices(){const e=[],t=this.nCols,r=this.nRows;for(let i=0;i<r;i++){const s=[];e.push(s);for(let o=0;o<t;o++){const a=i*t+o;a<this.n&&s.push(a)}}return e}get colIndices(){const e=[],t=this.nCols,r=this.nRows;for(let i=0;i<t;i++){const s=[];e.push(s);for(let o=0;o<r;o++){const a=o*t+i;a<this.n&&s.push(a)}}return e}getCellIndex(e,t){let r=0;if(this.maxCols==1/0)r=t==0?e:void 0;else{if(e>=this.maxCols)return;r=t*this.nCols+e}return r<this.n?r:void 0}getCellCoords(e){if(!(e<0||e>=this.n))return[e%this.nCols,Math.floor(e/this.nCols)]}}const hT="chromosome_ticks_and_labels",dT={x:"width",y:"height"};function bh(n){return n=="x"?"y":"x"}const ou={x:["bottom","top"],y:["left","right"]},xh=Object.fromEntries(Object.entries(ou).map(([n,e])=>e.map(t=>[t,n])).flat(1));function qn(n){return xh[n]}class ky extends Ri{constructor(e,t,r,i,s,o){const a=t=="locus",c={...a?mT:Fy,...pT(t,e),...e};super(a?gT(c,t):Py(c,t),r,i,s,`axis_${e.orient}`,{blockEncodingInheritance:!0,contributesToScaleDomain:!1,...o}),this.axisProps=c}getSize(){const e={px:this.getPerpendicularSize()},t={grow:1};return xh[this.axisProps.orient]=="x"?new Wn(t,e):new Wn(e,t)}getPerpendicularSize(){return Ah(this.axisProps)}isPickingSupported(){return!1}}function Ah(n){const e=qn(n.orient);let t=n.ticks&&n.tickSize||0;return n.labels&&(t+=n.labelPadding,e=="x"?t+=n.labelFontSize:t+=30),n.title&&(t+=n.titlePadding+n.titleFontSize),t=Math.min(n.maxExtent||1/0,Math.max(n.minExtent||0,t)),t}const Fy={values:null,minExtent:20,maxExtent:1/0,offset:0,domain:!0,domainWidth:1,domainColor:"gray",domainDash:null,domainDashOffset:0,domainCap:"square",ticks:!0,tickSize:5,tickWidth:1,tickColor:"gray",tickDash:null,tickDashOffset:0,tickCap:"square",tickCount:null,tickMinStep:null,labels:!0,labelAlign:"center",labelBaseline:"middle",labelPadding:4,labelFontSize:10,labelLimit:180,labelColor:"black",format:null,titleColor:"black",titleFont:"sans-serif",titleFontSize:10,titlePadding:3};function pT(n,e){const t=e.orient,r=n=="nominal"||n=="ordinal";let i="center",s="middle",o=e.labelAngle??((t=="top"||t=="bottom")&&r?-90:0);switch(t){case"left":i="right";break;case"right":i="left";break;case"top":case"bottom":Math.abs(o)>30?(i=o>0==(t=="bottom")?"left":"right",s="middle"):s=t=="top"?"alphabetic":"top";break}return{labelAlign:i,labelAngle:o,labelBaseline:s}}function Py(n,e){const t={...n,extent:Ah(n)},r=qn(t.orient),i=bh(r),s=t.orient=="bottom"||t.orient=="right"?1:-1,o=t.orient=="bottom"||t.orient=="left"?1:0,a=()=>({name:"domain",data:{values:[{}]},mark:{type:"rule",clip:!1,strokeDash:t.domainDash,strokeCap:t.domainCap,color:t.domainColor,[i]:o,size:t.domainWidth}}),c=()=>({name:"labels",mark:{type:"text",clip:!1,align:t.labelAlign,angle:t.labelAngle,baseline:t.labelBaseline,[i+"Offset"]:(t.tickSize+t.labelPadding)*s,[i]:o,size:t.labelFontSize,color:t.labelColor,minBufferSize:1500},encoding:{[r]:{field:"value",type:e},text:{field:"label"}}}),u=()=>({name:"ticks",mark:{type:"rule",clip:!1,strokeDash:t.tickDash,strokeCap:t.tickCap,color:t.tickColor,size:t.tickWidth,minBufferSize:300},encoding:{[i]:{value:o},[i+"2"]:{value:o-t.tickSize/t.extent*(o?1:-1)}}}),l=()=>({name:"title",data:{values:[{}]},mark:{type:"text",clip:!1,align:"center",baseline:t.orient=="bottom"?"bottom":"top",angle:[0,90,0,-90][["top","right","bottom","left"].indexOf(t.orient)],text:t.title,color:t.titleColor,[r]:.5,[i]:1-o}}),f=()=>{const h={name:"ticks_and_labels",encoding:{[r]:{field:"value",type:e}},layer:[]};return t.ticks&&h.layer.push(u()),t.labels&&h.layer.push(c()),h},d={resolve:{scale:{[r]:"forced"}},[dT[bh(r)]]:t.extent,data:{lazy:{type:"axisTicks",channel:r,axis:n}},layer:[]};return t.domain&&d.layer.push(a()),(t.ticks||t.labels)&&d.layer.push(f()),t.title&&d.layer.push(l()),d}const mT={...Fy,chromTicks:!0,chromTickSize:18,chromTickWidth:1,chromTickColor:"#989898",chromTickDash:[4,2],chromTickDashOffset:1,chromLabels:!0,chromLabelFontSize:13,chromLabelFontWeight:"normal",chromLabelFontStyle:"normal",chromLabelColor:"black",chromLabelAlign:"left",chromLabelPadding:7};function gT(n,e){const t={...n,extent:Ah(n)},r=qn(t.orient),i=bh(r),s=t.orient=="bottom"||t.orient=="left"?1:0,o=()=>({name:"chromosome_ticks",mark:{type:"rule",strokeDash:n.chromTickDash,strokeDashOffset:n.chromTickDashOffset,[i]:s,[i+"2"]:s-t.chromTickSize/t.extent*(s?1:-1),color:n.chromTickColor,size:t.chromTickWidth}}),a=()=>{let l;switch(t.orient){case"top":l={y:0,angle:0,paddingX:4,dy:-t.chromLabelPadding,viewportEdgeFadeWidthLeft:20,viewportEdgeFadeWidthRight:20,viewportEdgeFadeDistanceRight:-10,viewportEdgeFadeDistanceLeft:-20};break;case"bottom":l={y:1,angle:0,paddingX:4,dy:t.chromLabelPadding+t.chromLabelFontSize*.73,viewportEdgeFadeWidthLeft:20,viewportEdgeFadeWidthRight:20,viewportEdgeFadeDistanceRight:-10,viewportEdgeFadeDistanceLeft:-20};break;case"left":l={x:1,angle:-90,paddingY:4,dy:-t.chromLabelPadding,viewportEdgeFadeWidthBottom:20,viewportEdgeFadeWidthTop:20,viewportEdgeFadeDistanceBottom:-20,viewportEdgeFadeDistanceTop:-10};break;case"right":l={x:0,angle:90,align:"right",paddingY:4,dy:-t.chromLabelPadding};break;default:l={}}return{name:"chromosome_labels",mark:{type:"text",size:t.chromLabelFontSize,font:t.chromLabelFont,fontWeight:t.chromLabelFontWeight,fontStyle:t.chromLabelFontStyle,color:t.chromLabelColor,align:n.chromLabelAlign,baseline:"alphabetic",clip:!1,...l},encoding:{[r+"2"]:{field:"continuousEnd",type:e},text:{field:"name"}}}};let c;switch(t.orient){case"bottom":case"top":c={};break;case"left":c={labelAngle:-90,labelAlign:"center",labelPadding:6};break;case"right":c={labelAngle:90,labelAlign:"center",labelPadding:6};break;default:c={}}const u=Py({...n,...c},e);if(n.chromTicks||n.chromLabels){const l={name:hT,data:{lazy:{type:"axisGenome",channel:qn(t.orient)}},encoding:{[r]:{field:"continuousStart",type:e,band:0}},layer:[]};if(n.chromTicks&&l.layer.push(o()),n.chromLabels){l.layer.push(a());let f;u.layer.filter(d=>d.name=="ticks_and_labels").forEach(d=>d.layer.filter(h=>h.name=="labels").forEach(h=>{f=h.mark})),f&&(t.orient=="top"||t.orient=="bottom"?(f.viewportEdgeFadeWidthLeft=30,f.viewportEdgeFadeDistanceLeft=40):(f.viewportEdgeFadeWidthBottom=30,f.viewportEdgeFadeDistanceBottom=40))}u.layer.push(l)}return u}class yT{constructor(e){R(this,Jr);R(this,er,0);R(this,tr,0);G(this,Jr,new Array(e))}push(e){E(this,Jr)[E(this,er)]=e,G(this,er,(E(this,er)+1)%this.size),G(this,tr,Math.min(E(this,tr)+1,this.size))}get(){const e=E(this,Jr);return E(this,tr)<this.size?e.slice(0,E(this,tr)):e.slice(E(this,er),this.size).concat(e.slice(0,E(this,er)))}get size(){return E(this,Jr).length}get length(){return E(this,tr)}}Jr=new WeakMap,er=new WeakMap,tr=new WeakMap;let Lr,My=0;function Ry(){return performance.now()-My<50}function bT(n){return function(...e){My=performance.now(),n(...e)}}function xT(n,e,t,r,i){if(t=bT(t),n.type=="wheel"){n.uiEvent.preventDefault();const s=n.uiEvent,o=s.deltaMode?120:1;if(!s.deltaX&&!s.deltaY)return;Lr==null||Lr.stop();let{x:a,y:c}=n.point;if(r){const u=r.mark.encoders;u.x&&!u.x2&&!u.x.constant&&(a=+u.x(r.datum)*e.width+e.x),u.y&&!u.y2&&!u.y.constant&&(c=(1-+u.y(r.datum))*e.height+e.y)}Math.abs(s.deltaX)<Math.abs(s.deltaY)?t({x:a,y:c,xDelta:0,yDelta:0,zDelta:s.deltaY*o/300}):t({x:a,y:c,xDelta:-s.deltaX*o,yDelta:0,zDelta:0})}else if(n.type=="mousedown"&&n.mouseEvent.button===0){Lr&&Lr.stop();const s=new yT(30),o=n.mouseEvent;o.preventDefault();let a=at.fromMouseEvent(o);const c=f=>{const d=at.fromMouseEvent(f);s.push({point:d,timestamp:performance.now()});const h=d.subtract(a);t({x:a.x,y:a.y,xDelta:h.x,yDelta:h.y,zDelta:0}),a=d},u=()=>{const d=performance.now(),h=s.get().filter(A=>d-A.timestamp<160);if(h.length<5||!i||AT(h))return;const p=h.at(-1),m=h[0],g=p.point.subtract(m.point).multiply(1/(p.timestamp-m.timestamp));let y=a.x,x=a.y;Lr=yh(i,A=>{t({x:A.x,y:A.y,xDelta:y-A.x,yDelta:x-A.y,zDelta:0}),y=A.x,x=A.y},150,.5,{x:y,y:x}),Lr({x:a.x-g.x*250,y:a.y-g.y*250})},l=()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",l),u()};document.addEventListener("mouseup",l,!1),document.addEventListener("mousemove",c,!1)}}function AT(n){const e=n[Math.floor(n.length/2)],t=e.point.subtract(n[0].point).multiply(e.timestamp-n[0].timestamp),r=n.at(-1).point.subtract(e.point).multiply(n.at(-1).timestamp-e.timestamp),i=t.length;return r.length/i<.4}class wT extends Ri{constructor(e,t,r,i,s,o){const c={...t=="locus"?vT:Oy,...e};super(DT(c,t),r,i,s,`axisGrid_${e.orient}`,{blockEncodingInheritance:!0,contributesToScaleDomain:!1,...o}),this.axisProps=c}getOrient(){return this.axisProps.orient}isPickingSupported(){return!1}}const Oy={values:null,grid:!1,gridCap:"butt",gridColor:"lightgray",gridDash:null,gridOpacity:1,gridWidth:1,tickCount:null,tickMinStep:null},vT={...Oy,chromGrid:!1,chromGridCap:"butt",chromGridColor:"gray",chromGridDash:[1,5],chromGridOpacity:1,chromGridWidth:1};function ST(n,e){const t=n,r=qn(t.orient);return{name:"grid_lines",data:{lazy:{type:"axisTicks",channel:r,axis:n}},mark:{type:"rule",strokeDash:t.gridDash,strokeCap:t.gridCap,color:t.gridColor,size:t.gridWidth,opacity:t.gridOpacity,minBufferSize:300},encoding:{[r]:{field:"value",type:e}}}}function ET(n,e){const t=n,r=qn(t.orient);return{name:"chromosome_lines",data:{lazy:{type:"axisGenome",channel:r}},mark:{type:"rule",strokeDash:t.chromGridDash,strokeCap:t.chromGridCap,color:t.chromGridColor,size:t.chromGridWidth,opacity:t.chromGridOpacity},encoding:{[r]:{field:"continuousStart",type:e,band:0}}}}function CT(n,e){const t=n,r=qn(t.orient);return{name:"chromosome_fill",data:{lazy:{type:"axisGenome",channel:r}},mark:{type:"rect"},encoding:{[r]:{field:"continuousStart",type:e,band:0},[r+"2"]:{field:"continuousEnd",band:0},fill:{field:"odd",type:"nominal",scale:{domain:[!1,!0],range:[t.chromGridFillEven??"white",t.chromGridFillOdd??"white"]}},opacity:{field:"odd",type:"nominal",scale:{type:"ordinal",domain:[!1,!0],range:[t.chromGridFillEven?1:0,t.chromGridFillOdd?1:0]}}}}}function DT(n,e){const t={...n},r=[];return t.chromGrid&&(t.chromGridFillOdd||t.chromGridFillEven)&&r.push(CT(t,e)),t.chromGrid&&t.chromGridOpacity>0&&r.push(ET(t,e)),t.grid&&t.gridOpacity>0&&r.push(ST(t,e)),{name:"grid_layers",configurableVisibility:!1,resolve:{scale:{[qn(n.orient)]:"forced",fill:"independent",opacity:"independent"}},layer:r}}const Ny={anchor:"middle",frame:"group",offset:10,orient:"top",align:void 0,angle:0,baseline:"alphabetic",dx:0,dy:0,color:void 0,font:void 0,fontSize:12,fontStyle:"normal",fontWeight:"normal"},IT={orient:"left",anchor:"middle",align:"right",baseline:"middle",angle:0,fontSize:12},TT={orient:"top",anchor:"start",align:"left",baseline:"top",offset:-10,dx:10,fontSize:12},BT={start:0,middle:.5,end:1},kT={start:"left",middle:"center",end:"right"};function FT(n){if(!n)return;const e=me(n)?{text:n}:n;if(!e.text||e.orient=="none")return;const t={"track-title":IT,overlay:TT}[e.style]??{},r={...Ny,...t,...e};let i={},s={x:0,y:0};const o=BT[r.anchor??"middle"];switch(r.orient){case"top":s={x:o,y:1},i={baseline:"alphabetic",angle:0};break;case"right":s={x:1,y:1-o},i={baseline:"alphabetic",angle:90};break;case"bottom":s={x:o,y:0},i={baseline:"top",angle:0};break;case"left":s={x:0,y:o},i={baseline:"alphabetic",angle:-90};break}const a={...Ny,...i,...t,...e},c={xOffset:0,yOffset:0};switch(r.orient){case"top":c.yOffset=-a.offset;break;case"right":c.xOffset=a.offset;break;case"bottom":c.yOffset=a.offset;break;case"left":c.xOffset=-a.offset;break}return{configurableVisibility:!1,data:{values:[{}]},mark:{type:"text",tooltip:null,clip:!1,...s,...c,text:a.text,align:a.align??kT[a.anchor],angle:a.angle,baseline:a.baseline,dx:a.dx,dy:a.dy,color:a.color,font:a.font,size:a.fontSize,fontStyle:a.fontStyle,fontWeight:a.fontWeight}}}class Ly extends ft{constructor(t,r){const i={scrollbarSize:8,scrollbarPadding:2};super({data:{values:[{}]},mark:{type:"rect",fill:"#b0b0b0",fillOpacity:.6,stroke:"white",strokeWidth:1,strokeOpacity:1,cornerRadius:5,clip:!1},configurableVisibility:!1},t.layoutParent.context,t.layoutParent,t.view,"scrollbar-"+r,{blockEncodingInheritance:!0});R(this,ws);R(this,Sa,Ft.ZERO);R(this,nr,0);R(this,$r,0);Y(this,"viewportOffset",0);this.config=i,G(this,ws,r),this.interpolateViewportOffset=yh(this.context.animator,s=>{this.viewportOffset=s.x},50,.4,{x:this.viewportOffset}),this.addInteractionEventListener("mousedown",(s,o)=>{if(o.stopPropagation(),E(this,nr)<=0)return;const a=d=>r=="vertical"?d.clientY:d.clientX;o.mouseEvent.preventDefault();const c=this.scrollOffset,u=a(o.mouseEvent),l=d=>{const h=vi(a(d)-u+c,0,E(this,nr));this.interpolateViewportOffset({x:h/E(this,nr)*E(this,$r)})},f=()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",f)};document.addEventListener("mouseup",f,!1),document.addEventListener("mousemove",l,!1)})}get scrollOffset(){return this.viewportOffset/E(this,$r)*E(this,nr)}render(t,r,i){super.render(t,E(this,Sa),i)}updateScrollbar(t,r){const i=this.config.scrollbarPadding,s=this.config.scrollbarSize,o=E(this,ws)=="horizontal"?"width":"height",a=Math.min(1,t[o]/r[o]),c=t[o]-2*i,u=a*c;G(this,nr,c-u),G(this,$r,r[o]-t[o]),this.viewportOffset=vi(this.viewportOffset,0,E(this,$r)),G(this,Sa,E(this,ws)=="vertical"?new Ft(()=>t.x+t.width-s-i,()=>t.y+i+this.scrollOffset,()=>s,()=>u):new Ft(()=>t.x+i+this.scrollOffset,()=>t.y+t.height-s-i,()=>u,()=>s))}}ws=new WeakMap,Sa=new WeakMap,nr=new WeakMap,$r=new WeakMap;class PT extends Ri{constructor(t,r,i={}){const s=r(),o=Object.keys(s.intervals);if(Dr.every(l=>!o.includes(l)))throw new Error("SelectionRect requires at least one of the channels 'x' or 'y' to be present in the selection.");const a={name:"selectionRect",configurableVisibility:!1,resolve:{scale:{x:"forced",y:"forced"}},data:{values:zy(r())},encoding:{},layer:[]};o.includes("x")&&(a.encoding.x={field:"_x",type:null,title:null},a.encoding.x2={field:"_x2"}),o.includes("y")&&(a.encoding.y={field:"_y",type:null,title:null},a.encoding.y2={field:"_y2"}),a.layer.push({name:"selectionRectRect",mark:{type:"rect",clip:!0,fill:"#808080",fillOpacity:.05,stroke:"black",strokeWidth:1,strokeOpacity:.2,...i}});const c=l=>{const f=t.view.getScaleResolution(l);return`format(datum._${l}2 - datum._${l}, '.3s')`+(f.type==="locus"?" + 'b'":"")},u=i.measure=="inside"?9:i.measure=="outside"?-9:0;o.includes("x")&&u!=0&&a.layer.push({name:"selectionRectTextX",mark:{type:"text",align:"center",paddingX:5,dy:u,tooltip:null},encoding:{text:{expr:c("x")},y:o.includes("y")?{field:"_y2",type:null,title:null}:{value:1},y2:null}}),o.includes("y")&&u!=0&&a.layer.push({name:"selectionRectTextY",mark:{type:"text",align:"center",paddingY:5,dy:u,tooltip:null,angle:-90},encoding:{text:{expr:c("y")},x2:null}});super(a,t.layoutParent.context,t.layoutParent,t.view,"selectionRect",{blockEncodingInheritance:!0,contributesToScaleDomain:!1});Y(this,"_selectionExpr");Y(this,"_selectionListener");this._selectionExpr=r,this._selectionListener=()=>{var d;const l=r(),f=(d=this.flowHandle)==null?void 0:d.dataSource;if(!f)throw new Error("Cannot find selection rect data source handle!");f.updateDynamicData(zy(l))},r.addListener(this._selectionListener)}dispose(){this._selectionExpr.removeListener(this._selectionListener),super.dispose()}}function zy(n){const e=n.intervals.x,t=n.intervals.y;return!e&&!t?[]:[{_x:e==null?void 0:e[0],_x2:e==null?void 0:e[1],_y:t==null?void 0:t[0],_y2:t==null?void 0:t[1]}]}class Uy{constructor(e,t,r){R(this,Iu);if(this.layoutParent=t,this.view=e,this.serial=r,this.background=void 0,this.backgroundStroke=void 0,this.axes={},this.gridLines={},this.scrollbars={},this.selectionRect=void 0,this.title=void 0,this.coords=Ft.ZERO,e.needsAxes.x||e.needsAxes.y){const i=e.spec,s="view"in i?i==null?void 0:i.view:void 0,o=MT(s);o&&(this.background=new ft(o,t.context,t,e,"background"+r,{blockEncodingInheritance:!0}));const a=RT(s);a&&(this.backgroundStroke=new ft(a,t.context,t,e,"backgroundStroke"+r,{blockEncodingInheritance:!0}));const c=FT(e.spec.title);if(c){const u=new ft(c,t.context,t,e,"title"+r,{blockEncodingInheritance:!0});this.title=u}}e.spec.viewportWidth!=null&&(this.scrollbars.horizontal=new Ly(this,"horizontal")),e.spec.viewportHeight!=null&&(this.scrollbars.vertical=new Ly(this,"vertical")),O(this,Iu,Bx).call(this)}*getChildren(){this.background&&(yield this.background),this.backgroundStroke&&(yield this.backgroundStroke),this.title&&(yield this.title),yield*Object.values(this.axes),yield*Object.values(this.gridLines),yield this.view,yield*Object.values(this.scrollbars),this.selectionRect&&(yield this.selectionRect)}async createAxes(){const{view:e,axes:t,gridLines:r}=this,i=(a,c)=>{const u=a.getAxisProps();if(u===null)return;const l=u?{...u}:{};if(!l.orient){for(const f of ou[c])if(!t[f]){l.orient=f;break}if(!l.orient)throw new Error("No slots available for an axis! Perhaps a LayerView has more than two children?")}if(l.title??(l.title=a.getTitle()),!ou[c].includes(l.orient))throw new Error(`Invalid axis orientation "${l.orient}" on channel "${c}"!`);return l},s=async(a,c,u)=>{const l=i(a,c);if(l){if(t[l.orient])throw new Error(`An axis with the orient "${l.orient}" already exists!`);const f=new ky(l,a.scaleResolution.type,this.layoutParent.context,this.layoutParent,u);t[l.orient]=f,await f.initializeChildren()}},o=async(a,c,u)=>{const l=i(a,c);if(l&&(l.grid||l.chromGrid)){const f=new wT(l,a.scaleResolution.type,this.layoutParent.context,this.layoutParent,u);r[l.orient]=f,await f.initializeChildren()}};for(const a of["x","y"])if(e.needsAxes[a]){const c=e.resolutions.axis[a];if(!c)continue;await s(c,a,e)}for(const a of["x","y"])if(e.needsAxes[a]&&e.getConfiguredOrDefaultResolution(a,"axis")!="excluded"){const c=e.getAxisResolution(a);if(!c)continue;await o(c,a,e)}if(e instanceof Ri){for(const a of e)for(const[c,u]of Object.entries(a.resolutions.axis)){const l=u.getAxisProps();l&&l.orient&&await s(u,c,a)}for(const a of e)for(const[c,u]of Object.entries(a.resolutions.axis)){const l=u.getAxisProps();l&&!l.orient&&await s(u,c,a)}}[...Object.values(t),...Object.values(r)].forEach(a=>a.visit(c=>{c instanceof ft&&c.resolve("scale")}))}getOverhang(){const e=t=>{const r=this.axes[t];return r?Math.max(r.getPerpendicularSize()+(r.axisProps.offset??0),0):0};return new We(e("top"),e("right"),e("bottom"),e("left")).add(this.view.getOverhang())}getOverhangAndPadding(){return this.getOverhang().add(this.view.getPadding())}}Iu=new WeakSet,Bx=function(){const e=this.view,t=r=>{this.view.context.glHelper.canvas.style.cursor=r};for(const[r,i]of e.paramMediator.paramConfigs){if(!("select"in i))continue;const s=kc(i.select);if(!Lm(s))continue;const o=s.encodings,a=Object.fromEntries(o.map(A=>{const w=this.view.getScaleResolution(A),S=w==null?void 0:w.scale;if(!S||!Oe(S.type))throw new Error(`No continuous scale found for interval selection param "${r}" on channel "${A}"! Scale type is "${(S==null?void 0:S.type)??"none"}".`);return[A,w]}));if(this.selectionRect)throw new Error("Only one interval selection per container is currently allowed!");let c=!1,u=!1,l=!1,f=null;const d=(A,w)=>Object.fromEntries(o.map(S=>[S,[Math.min(A[S],w[S]),Math.max(A[S],w[S])]])),h=e.paramMediator.createExpression(r),p=e.paramMediator.getSetter(r);i.value&&p({type:"interval",intervals:i.value});const m=()=>{p(Rm(o)),t(null)};this.selectionRect=new PT(this,h,s.mark),this.selectionRect.initializeChildren();const g=A=>{const w={x:0,y:0},S=e.coords.normalizePoint(A.x,A.y,!0);for(const C of o){const v=a[C].scale,T=v.invert(C=="x"?S.x:S.y);w[C]=T+(["index","locus"].includes(v.type)?.5:0)}return w},y=A=>{var T,P,F,k;const{intervals:w}=A,S=(L,U,j)=>{const K=(ce,ie)=>ie==null?null:a[ce].scale(ie),_=K("x",L)??j,te=K("y",U)??j;return e.coords.denormalizePoint(_,te,!0)},C=S((T=w.x)==null?void 0:T[0],(P=w.y)==null?void 0:P[0],0),v=S((F=w.x)==null?void 0:F[1],(k=w.y)==null?void 0:k[1],1);return Ft.create(C.x,C.y,v.x-C.x,v.y-C.y)};e.addInteractionEventListener("mousedown",(A,w)=>{if(w.mouseEvent.button!=0)return;if(f=c?y(h()):null,f)t("grabbing"),u=!0;else{const P=w.point;if(zm(h())&&(u=!0),w.mouseEvent.shiftKey)m(),l=!0;else if(zm(h())){const k=(L,U)=>{e.removeInteractionEventListener("mouseup",k);const j=U.point;P.subtract(j).length<2&&m()};e.addInteractionEventListener("mouseup",k);return}else return}w.stopPropagation();const S=w.point,C=at.fromMouseEvent(w.mouseEvent).subtract(S),v=P=>{const F=at.fromMouseEvent(P).subtract(C);let k;if(f){const L=F.subtract(S),U=f.translate(L.x,L.y);k=d(g(new at(U.x,U.y)),g(new at(U.x2,U.y2)))}else k=d(g(S),g(F));for(const L of o){const U=a[L],{zoomExtent:j,scale:K}=U,_=k[L];if(["index","locus"].includes(K.type)&&(_[0]=Math.ceil(_[0]),_[1]=Math.ceil(_[1])),f){const te=_[1]-_[0],ce=j[0],ie=j[1];_[0]<ce&&(_[0]=ce,_[1]=ce+te),_[1]>ie&&(_[1]=ie,_[0]=ie-te)}else _[0]=Math.max(j[0],_[0]),_[1]=Math.min(j[1],_[1]);_[1]=Math.min(j[1],_[1])}p({type:"interval",intervals:k})},T=()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",T),l=!1,f&&(t("move"),f=null)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",T)}),e.addInteractionEventListener("click",(A,w)=>{w.mouseEvent.button==0&&u&&(w.stopPropagation(),u=!1)},!0);const x=A=>y8(h(),g(A));e.addInteractionEventListener("dblclick",(A,w)=>{x(w.point)&&(m(),w.stopPropagation())},!0),e.addInteractionEventListener("mousemove",(A,w)=>{x(w.point)?l||(c=!0,f||t("move")):(c=!1,f||t(null))})}};function MT(n){if(n!=null&&n.fill||n!=null&&n.fillOpacity||n!=null&&n.shadowOpacity)return{configurableVisibility:!1,data:{values:[{}]},mark:{color:n.fill,opacity:n.fillOpacity??(n.fill?1:0),type:"rect",clip:!1,tooltip:null,minHeight:1,minOpacity:0,shadowBlur:n.shadowBlur,shadowColor:n.shadowColor,shadowOffsetX:n.shadowOffsetX,shadowOffsetY:n.shadowOffsetY,shadowOpacity:n.shadowOpacity}}}function RT(n){if(!(!n||!n.stroke||n.strokeWidth===0||n.strokeOpacity===0))return{configurableVisibility:!1,resolve:{scale:{x:"excluded",y:"excluded"},axis:{x:"excluded",y:"excluded"}},data:{values:[{x:0,y:0,x2:1,y2:0},{x:1,y:0,x2:1,y2:1},{x:1,y:1,x2:0,y2:1},{x:0,y:1,x2:0,y2:0}]},mark:{size:n.strokeWidth??1,color:n.stroke??"lightgray",strokeCap:"square",opacity:n.strokeOpacity??1,type:"rule",clip:!1,tooltip:null},encoding:{x:{field:"x",type:"quantitative",scale:null},y:{field:"y",type:"quantitative",scale:null},x2:{field:"x2"},y2:{field:"y2"}}}}class OT extends Vo{constructor(t,r,i,s,o,a,c){super(t,r,i,s,o,c);R(this,re);R(this,vs,1/0);R(this,Ss,10);R(this,et,[]);R(this,ei,{});R(this,Es,0);this.spec=t,G(this,Ss,t.spacing??10),G(this,vs,a),G(this,et,[]),this.wrappingFacet=!1}appendChild(t){t.layoutParent??(t.layoutParent=this),E(this,et).push(new Uy(t,this,E(this,Es))),gx(this,Es)._++}setChildren(t){for(const r of E(this,et))O(this,re,Sd).call(this,r);G(this,et,[]);for(const r of t)this.appendChild(r)}replaceChild(t,r){const i=E(this,et).findIndex(s=>s.view==t);if(i>=0)O(this,re,Sd).call(this,E(this,et)[i]),E(this,et)[i]=new Uy(r,this,E(this,Es));else throw new Error("Not my child view!")}get children(){return E(this,et).map(t=>t.view)}get childCount(){return E(this,et).length}async createAxes(){const t=[];for(const r of Dr){const i=this.resolutions.axis[r];if(i){const s=i.getAxisProps();if(s){const o={title:i.getTitle(),orient:ou[r][0],...s},a=new ky(o,i.scaleResolution.type,this.context,this,this);t.push(a.initializeChildren()),E(this,ei)[r]=a}}}return Promise.all([...t,...E(this,et).map(r=>r.createAxes())])}*[Symbol.iterator](){for(const t of E(this,et))yield*t.getChildren();for(const t of Object.values(E(this,ei)))yield t}getOverhang(){return O(this,re,Fx).call(this).union(O(this,re,Pu).call(this))}getSize(){return this._cache("size",()=>new Wn(O(this,re,Cd).call(this,"column"),O(this,re,Cd).call(this,"row")).addPadding(O(this,re,Pu).call(this)))}render(t,r,i={}){if(super.render(t,r,i),!this.isConfiguredVisible())return;this.layoutParent||(r=r.shrink(this.getPadding())),r=r.shrink(O(this,re,Pu).call(this)),t.pushView(this,r);const s={devicePixelRatio:t.getDevicePixelRatio()},o=ny(O(this,re,Ed).call(this,"column"),r.width,s),a=ny(O(this,re,Ed).call(this,"row"),r.height,s),c=new By(E(this,re,ni).length,E(this,vs)??1/0),u=l=>Math.round(l*devicePixelRatio)/devicePixelRatio;for(const[l,f]of E(this,re,ni).entries()){const{view:d,axes:h,gridLines:p,background:m,backgroundStroke:g,title:y,selectionRect:x}=f,[A,w]=c.getCellCoords(l),S=o[O(this,re,Dd).call(this,"column",A)],C=a[O(this,re,Dd).call(this,"row",w)],v=d.getViewportSize(),T=d.getSize(),P=d.getOverhang(),F=S.location-P.left,k=C.location-P.top,L=(De,St)=>(De[St].grow?(St=="width"?S:C).size:De[St].px)+P[St],U=L(v,"width"),j=L(v,"height"),K=L(T,"width"),_=L(T,"height"),te=f.scrollbars.horizontal,ce=f.scrollbars.vertical,ie=te?()=>u(te.viewportOffset):()=>0,Ne=ce?()=>u(ce.viewportOffset):()=>0,ve=new Ft(()=>r.x+F,()=>r.y+k,()=>U,()=>j),Kt=d.isScrollable(),Jt=Kt?new Ft(()=>r.x+F-ie(),()=>r.y+k-Ne(),()=>K,()=>_):ve;f.coords=ve;const rr=i.clipRect?ve.intersect(i.clipRect):ve;m==null||m.render(t,rr,{...i,clipRect:void 0});for(const De of Object.values(p))De.render(t,ve,i);const Ds=LT(d)||Kt;Ds&&d.render(t,Jt,{...i,clipRect:rr}),g==null||g.render(t,rr,{...i,clipRect:void 0});for(const[De,St]of Object.entries(h)){const ut=De=="left"||De=="right"?"vertical":"horizontal",H=f.scrollbars[ut],J=H?ve.modify(ut=="vertical"?{y:()=>Jt.y,height:_}:{x:()=>Jt.x,width:K}):ve,ne=Gy(J,De,St);let M=i.clipRect;H&&(M=ne.intersect(M).intersect(H?ve.modify(ut=="vertical"?{x:-1e5,width:2e5}:{y:-1e5,height:2e5}):void 0)),St.render(t,ne,{...i,clipRect:M})}for(const De of Object.values(E(this,ei))){const ut=De.axisProps.orient;(ut=="left"&&A==0||ut=="right"&&A==c.nCols-1||ut=="top"&&w==0||ut=="bottom"&&w==c.nRows-1)&&De.render(t,Gy(ve.shrink(f.view.getOverhang()),ut,De),i)}Ds||d.render(t,Jt,i),x==null||x.render(t,Jt,i);for(const De of Object.values(f.scrollbars))De.updateScrollbar(ve,Jt),De.render(t,r,i);y==null||y.render(t,ve,i)}t.popView(this)}propagateInteractionEvent(t){if(this.handleInteractionEvent(void 0,t,!0),t.stopped)return;const r=E(this,re,ni).find(s=>s.coords.containsPoint(t.point.x,t.point.y));for(const s of Object.values((r==null?void 0:r.scrollbars)??{}))if(s.coords.containsPoint(t.point.x,t.point.y)&&(s.propagateInteractionEvent(t),t.stopped))return;const i=r==null?void 0:r.view;if(i){if(i.propagateInteractionEvent(t),t.stopped)return;(i instanceof ft||i instanceof Ri)&&xT(t,r.coords,s=>O(this,re,Px).call(this,r.coords,r.view,s),this.context.getCurrentHover(),this.context.animator)}t.stopped||this.handleInteractionEvent(void 0,t,!1)}getDefaultResolution(t,r){return"independent"}}vs=new WeakMap,Ss=new WeakMap,et=new WeakMap,ei=new WeakMap,Es=new WeakMap,re=new WeakSet,ni=function(){return E(this,et).filter(t=>t.view.isConfiguredVisible())},kx=function(){return new By(E(this,re,ni).length,E(this,vs)??1/0)},Sd=function(t){for(const r of t.getChildren())r.disposeSubtree()},Ta=function(t){const r=t=="column"?"width":"height",i=(s,o)=>s.map(a=>{const u=E(this,re,ni)[a].getOverhangAndPadding();return t=="column"?o?u.right:u.left:o?u.bottom:u.top}).reduce((a,c)=>Math.max(a,c),0);return this._cache(`size/directionSizes/${t}`,()=>E(this,re,kx)[t=="column"?"colIndices":"rowIndices"].map(s=>({axisBefore:i(s,0),axisAfter:i(s,1),view:cI(s.map(o=>E(this,re,ni)[o].view.getViewportSize()[r]))})))},Ed=function(t){const r=O(this,re,Ta).call(this,t),i=[];i.push(zo);for(const[s,o]of r.entries())s>0&&i.push({px:E(this,Ss),grow:0}),(s==0||this.wrappingFacet)&&i.push(zo),i.push({px:o.axisBefore,grow:0}),i.push(o.view),i.push({px:o.axisAfter,grow:0}),(s==r.length-1||this.wrappingFacet)&&i.push(zo);return i},Cd=function(t){let r=0,i=0;const s=t=="row"?this.spec.height:this.spec.width;if(s||s===0)return iy(s);const o=O(this,re,Ta).call(this,t);for(const[a,c]of o.entries())a>0&&(i+=E(this,Ss)),(a==0||this.wrappingFacet)&&(i+=0),i+=c.axisBefore,i+=c.view.px??0,r+=c.view.grow??0,i+=c.axisAfter,(a==o.length-1||this.wrappingFacet)&&(i+=0);return{px:i,grow:r}},Dd=function(t,r){return t=="row"&&this.wrappingFacet?1+6*r+2:2+4*r+1},Fx=function(){const t=O(this,re,Ta).call(this,"column"),r=O(this,re,Ta).call(this,"row");return!t.length||!r.length?We.zero():new We(r.at(0).axisBefore,t.at(-1).axisAfter,r.at(-1).axisAfter,t.at(0).axisBefore)},Pu=function(){const t=r=>{const i=xh[r],s=E(this,ei)[i];return(s==null?void 0:s.axisProps.orient)!==r?0:Math.max(s.getPerpendicularSize()+(s.axisProps.offset??0),0)};return new We(t("top"),t("right"),t("bottom"),t("left"))},Px=function(t,r,i){for(const[s,o]of Object.entries(NT(r))){if(o.size<=0)continue;const a=t.normalizePoint(i.x,i.y),c=t.normalizePoint(i.x+i.xDelta,i.y+i.yDelta),u={x:c.x-a.x,y:c.y-a.y};for(const l of o)l.zoom(2**i.zDelta,s=="y"?1-a[s]:a[s],s=="x"?u.x:-u.y)}this.context.animator.requestRender()};function NT(n){const e={x:new Set,y:new Set};return n.visit(t=>{for(const[r,i]of Object.entries(e)){const s=t.getScaleResolution(r);s&&s.isZoomable()&&i.add(s)}}),e}function LT(n){let e=!0;return n.visit(t=>{t instanceof ft&&e&&(e=t.mark.properties.clip===!0)}),e}function Gy(n,e,t){const r=t.axisProps,i=t.getPerpendicularSize();if(e=="bottom")return n.translate(0,n.height+r.offset).modify({height:i});if(e=="top")return n.translate(0,-i-r.offset).modify({height:i});if(e=="left")return n.translate(-i-r.offset,0).modify({width:i});if(e=="right")return n.translate(n.width+r.offset,0).modify({width:i})}class wh extends OT{constructor(e,t,r,i,s){super(e,t,r,i,s,Eh(e)?e.columns:au(e)?1:1/0),this.spec=e}async initializeChildren(){const e=this.spec,t=Eh(e)?e.concat:au(e)?e.vconcat:e.hconcat;this.setChildren(await Promise.all(t.map((r,i)=>this.context.createOrImportView(r,this,this,"grid"+i)))),await this.createAxes()}getDefaultResolution(e,t){return t=="axis"?"independent":au(this.spec)&&e==="x"||_y(this.spec)&&e==="y"?"shared":"independent"}}const Hy="viewRoot";class zT{constructor(e={}){R(this,Cs,new Map);this.options={allowImport:!0,wrapRoot:!0,...e};const t=r=>(i,s,o,a,c)=>new r(i,s,o,a,i.name??c);this.addViewType(Sh,t(Ri)),this.addViewType(vh,t(ft)),this.addViewType(au,t(wh)),this.addViewType(_y,t(wh)),this.addViewType(Eh,t(wh)),this.addViewType(HT,()=>{throw new Error("SampleView is not supported by the @genome-spy/core package. Use @genome-spy/app instead!")})}addViewType(e,t){E(this,Cs).set(e,t)}createView(e,t,r,i,s){for(const[o,a]of E(this,Cs))if(o(e))return a(e,t,r,i,s);throw new Error("Invalid spec, cannot figure out the view type from the properties: "+JSON.stringify([...Object.keys(e)]))}isViewSpec(e){const t=[...E(this,Cs).keys()].filter(r=>r(e));if(t.length>1)throw new Error("Ambiguous spec. Cannot create a view!");return t.length==1}async createOrImportView(e,t,r,i,s,o){let a;if(GT(e)){let l;if("url"in e.import)if(this.options.allowImport)l=await yI(e,i.getBaseUrl(),t);else throw new Qn("Importing views is not allowed!",r);else if("template"in e.import)l=Vy(e.import.template,i);else throw new Error("Invalid import: "+JSON.stringify(e));o==null||o(l),UT(l,e),a=l}else a=e;const c=l=>{var f;return(f=l==null?void 0:l.params)==null?void 0:f.some(d=>Pm(d)&&kc(d.select).type=="interval")};!i&&this.options.wrapRoot&&(vh(a)||Sh(a)||c(a))&&s===Hy&&(a={name:"implicitRoot",vconcat:[a]});const u=this.createView(a,t,r,i,s);return u instanceof Vo&&await u.initializeChildren(),u}}Cs=new WeakMap;function Vy(n,e){var r,i;const t=(i=(r=e.spec)==null?void 0:r.templates)==null?void 0:i[n];if(t)return structuredClone(t);if(e.dataParent)return Vy(n,e.dataParent);throw new Error(`Cannot find template "${n}" in current view or its ancestors!`)}function UT(n,e){e.name!=null&&(n.name=e.name);const t=Ue(e.params)?e.params:Ge(e.params)?Object.entries(e.params).map(([r,i])=>({name:r,value:i})):[];if(t.length){n.params??(n.params=[]);for(const r of t){const i=n.params.findIndex(s=>s.name==r.name);i>=0&&(n.params[i]=r)}for(const r of t)n.params.some(i=>i.name==r.name)||n.params.push(r)}}function vh(n){return"mark"in n&&(me(n.mark)||Ge(n.mark))}function Sh(n){return"layer"in n&&Ge(n.layer)}function GT(n){return"import"in n}function au(n){return"vconcat"in n&&Ue(n.vconcat)}function _y(n){return"hconcat"in n&&Ue(n.hconcat)}function Eh(n){return"concat"in n&&Ue(n.concat)}function HT(n){return"samples"in n&&Ge(n.samples)&&"spec"in n&&Ge(n.spec)}function VT(n){const e=Math.floor(Math.random()*16777215).toString(16),t=[];for(const r of n.paramConfigs.values()){if(!p8(r))continue;const i=r.bind;if(!i||!("input"in i))continue;const s=r.name,o=n.getSetter(s),a=n.getValue(s),c=i.name??s,u=i.debounce?iu(o,i.debounce,!1):o,l=`${e}-param-${s}`;if(i.input=="range")t.push(ye`<label for=${l}>${c}</label>
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
id=${l}
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
max=${i.max??100}
|
|
665
|
-
step=${i.step??pr(i.min,i.max,100)}
|
|
666
|
-
.value=${a}
|
|
667
|
-
@input=${f=>{u(f.target.valueAsNumber),f.target.nextElementSibling.textContent=f.target.valueAsNumber}}
|
|
668
|
-
/><span>${a}</span>
|
|
669
|
-
</div>`);else if(i.input=="checkbox")t.push(ye`<label for=${l}>${c}</label>
|
|
670
|
-
<input
|
|
671
|
-
id=${l}
|
|
672
|
-
type="checkbox"
|
|
673
|
-
?checked=${a}
|
|
674
|
-
@input=${f=>u(f.target.checked)}
|
|
675
|
-
/>`);else if(i.input=="radio")t.push(ye`<span class="label">${c}</span>
|
|
676
|
-
<div class="radio-group">
|
|
677
|
-
${i.options.map((f,d)=>{var h;return ye`<label>
|
|
678
|
-
<input
|
|
679
|
-
type="radio"
|
|
680
|
-
name=${s}
|
|
681
|
-
value=${f}
|
|
682
|
-
.checked=${a==f}
|
|
683
|
-
@input=${p=>u(p.target.value)}
|
|
684
|
-
/>${((h=i.labels)==null?void 0:h[d])??f}</label
|
|
685
|
-
>`})}
|
|
686
|
-
</div>`);else if(i.input=="select")t.push(ye`<label for=${l}>${c}</label>
|
|
687
|
-
<select
|
|
688
|
-
id=${l}
|
|
689
|
-
@input=${f=>u(f.target.value)}
|
|
690
|
-
>
|
|
691
|
-
${i.options.map((f,d)=>{var h;return ye`<option
|
|
692
|
-
value=${f}
|
|
693
|
-
?selected=${a==f}
|
|
694
|
-
>
|
|
695
|
-
${((h=i.labels)==null?void 0:h[d])??f}
|
|
696
|
-
</option>`})}
|
|
697
|
-
</select> `);else if(i.input=="text"||i.input=="number"||i.input=="color")t.push(ye`<label for=${l}>${c}</label>
|
|
698
|
-
<div>
|
|
699
|
-
<input
|
|
700
|
-
id=${l}
|
|
701
|
-
type=${i.input}
|
|
702
|
-
placeholder=${i.placeholder??""}
|
|
703
|
-
autocomplete=${i.autocomplete??"off"}
|
|
704
|
-
.value=${a}
|
|
705
|
-
@focus=${f=>f.target.select()}
|
|
706
|
-
@input=${f=>{u(i.input=="number"?f.target.valueAsNumber:f.target.value)}}
|
|
707
|
-
/>
|
|
708
|
-
</div>`);else throw new Error("Unsupported input type: "+i.input);i.description&&t.push(ye`<div class="description">${i.description}</div>`)}return t}hl("fasta",eT);class jy{constructor(e,t,r={}){R(this,vt);this.container=e,this.options=r,r.inputBindingContainer??(r.inputBindingContainer="default"),this._destructionCallbacks=[],this.spec=t,this.viewFactory=new zT,this.namedDataProviders=[],this.animator=new q9(()=>this.renderAll()),this.genomeStore=void 0,this.viewVisibilityPredicate=i=>i.isVisibleInSpec(),this._renderingContext=void 0,this._pickingContext=void 0,this._dirtyPickingBuffer=!1,this._currentHover=void 0,this._wheelInertia=new tT(this.animator),this._keyboardListeners=new Map,this._eventListeners=new Map,this._extraBroadcastListeners=new Map,this.tooltipHandlers={default:fT,refseqgene:iT,...r.tooltipHandlers??{}},this.viewRoot=void 0,this._loadingViews=new Map,this._inputBindingContainer=void 0,this._mouseDownCoords=void 0,this.dpr=window.devicePixelRatio}registerNamedDataProvider(e){this.namedDataProviders.unshift(e)}getNamedDataFromProvider(e){for(const t of this.namedDataProviders){const r=t(e);if(r)return r}}updateNamedData(e,t){const r=this.viewRoot.context.dataFlow.findNamedDataSource(e);if(!r)throw new Error("No such named data source: "+e);r.dataSource.updateDynamicData(t),this.animator.requestRender()}broadcast(e,t){var i;const r={type:e,payload:t};this.viewRoot.visit(s=>s.handleBroadcast(r)),(i=this._extraBroadcastListeners.get(e))==null||i.forEach(s=>s(r))}_updateLoadingIndicators(){const e=[],t=()=>[...this._loadingViews.values()].some(r=>r.status=="loading"||r.status=="error");for(const[r,i]of this._loadingViews){const s=r.coords;if(s){const o={left:`${s.x}px`,top:`${s.y}px`,width:`${s.width}px`,height:`${s.height}px`};e.push(ye`<div style=${Qv(o)}>
|
|
709
|
-
<div class=${i.status}>
|
|
710
|
-
${i.status=="error"?ye`<span
|
|
711
|
-
>Loading
|
|
712
|
-
failed${i.detail?ye`: ${i.detail}`:Ee}</span
|
|
713
|
-
>`:ye`
|
|
714
|
-
<img src="${Wv}" alt="" />
|
|
715
|
-
<span>Loading...</span>
|
|
716
|
-
`}
|
|
717
|
-
</div>
|
|
718
|
-
</div>`)}}t()?this.loadingIndicatorsElement.style.display="block":setTimeout(()=>{t()||(this.loadingIndicatorsElement.style.display="none")},3e3),Ns(e,this.loadingIndicatorsElement)}destroy(){var t;const e=E(this,vt,Mu);this.container.classList.remove("genome-spy"),e.classList.remove("loading");for(const[r,i]of this._keyboardListeners)for(const s of i)document.removeEventListener(r,s);for(this._destructionCallbacks.forEach(r=>r()),this._glHelper.finalize(),(t=this._inputBindingContainer)==null||t.remove();this.container.firstChild;)this.container.firstChild.remove()}async _prepareViewsAndData(){this.spec.genome&&(this.genomeStore=new Y9(this.spec.baseUrl),await this.genomeStore.initialize(this.spec.genome));const e=this,t={dataFlow:new vy,glHelper:this._glHelper,animator:this.animator,genomeStore:this.genomeStore,fontManager:new K9(this._glHelper),requestLayoutReflow:()=>{},updateTooltip:this.updateTooltip.bind(this),getNamedDataFromProvider:this.getNamedDataFromProvider.bind(this),getCurrentHover:()=>this._currentHover,setDataLoadingStatus:(a,c,u)=>{this._loadingViews.set(a,{status:c,detail:u}),this._updateLoadingIndicators()},addKeyboardListener:(a,c)=>{document.addEventListener(a,c);let u=this._keyboardListeners.get(a);u||(u=[],this._keyboardListeners.set(a,u)),u.push(c)},addBroadcastListener(a,c){const u=e._extraBroadcastListeners;let l=u.get(a);l||(l=new Set,u.set(a,l)),l.add(c)},removeBroadcastListener(a,c){var l;(l=e._extraBroadcastListeners.get(a))==null||l.delete(c)},isViewConfiguredVisible:e.viewVisibilityPredicate,isViewSpec:a=>e.viewFactory.isViewSpec(a),createOrImportView:async function(a,c,u,l,f){return e.viewFactory.createOrImportView(a,t,c,u,l,f)},highlightView:a=>{var c;if((c=this.container.querySelector(".view-highlight"))==null||c.remove(),a){if(!a.isConfiguredVisible())return;const u=a.coords;if(u){const l=document.createElement("div");l.className="view-highlight",l.style.position="absolute",l.style.left=u.x+"px",l.style.top=u.y+"px",l.style.width=u.width+"px",l.style.height=u.height+"px",l.style.border="1px solid green",l.style.backgroundColor="rgba(0, 255, 0, 0.1)",l.style.pointerEvents="none",this.container.appendChild(l)}}}},r=this.spec;r.datasets&&this.registerNamedDataProvider(a=>r.datasets[a]),this.viewRoot=await t.createOrImportView(r,null,null,Hy),E(this,vt,Mu).style.flexGrow=this.viewRoot.getSize().height.grow>0?"1":"0",O(this,vt,Mx).call(this),pI(this.viewRoot),mI(this.viewRoot),this.viewRoot.getDescendants().forEach(a=>a.configureViewOpacity()),this._glHelper.invalidateSize(),O(this,vt,Rx).call(this);const{dataFlow:s,graphicsPromises:o}=L9(this.viewRoot,t.dataFlow);this.broadcast("dataFlowBuilt",s),await t.fontManager.waitUntilReady(),await G9(this.viewRoot,new Set(s.dataSources)),await gI(o),t.requestLayoutReflow=this.computeLayout.bind(this),this.viewRoot.visit(a=>$c(a,"size")),this._glHelper.invalidateSize()}async launch(){try{return O(this,vt,Ox).call(this),await this._prepareViewsAndData(),this.registerMouseEvents(),this.computeLayout(),this.animator.requestRender(),!0}catch(e){const t=`${e.view?`At "${e.view.getPathString()}": `:""}${e.toString()}`;return console.error(e.stack),_T(this.container,t),!1}finally{E(this,vt,Mu).classList.remove("loading"),window.setTimeout(()=>{this.loadingMessageElement.style.display="none"},2e3)}}registerMouseEvents(){const e=this._glHelper.canvas;let t=performance.now(),r=!1;const i=s=>{var c,u;const o=performance.now(),a=o-t<200;if(s instanceof MouseEvent){const l=e.getBoundingClientRect(),f=new at(s.clientX-l.left-e.clientLeft,s.clientY-l.top-e.clientTop);s.type=="mousemove"&&!a&&(this.tooltip.handleMouseMove(s),this._tooltipUpdateRequested=!1,s.buttons==0&&!Ry()&&(this.renderPickingFramebuffer(),this._handlePicking(f.x,f.y)));const d=h=>{this.viewRoot.propagateInteractionEvent(new _9(f,h)),this._tooltipUpdateRequested||this.tooltip.clear()};if(s.type!="wheel"&&this._wheelInertia.cancel(),(s.type=="mousedown"||s.type=="mouseup")&&!Ry())this.renderPickingFramebuffer();else if(s.type=="wheel"){t=o,this._tooltipUpdateRequested=!1;const h=s;if(Math.abs(h.deltaX)>Math.abs(h.deltaY))this._currentHover=null,this._wheelInertia.cancel();else{const p=nT(h);this._wheelInertia.setMomentum(h.deltaY*(h.deltaMode?80:1),m=>{const g=new WheelEvent("wheel",{...p,deltaMode:0,deltaX:0,deltaY:m});d(g)}),h.preventDefault();return}}if(s.type=="click"){if(r)return;const h=this._currentHover?{type:s.type,viewPath:this._currentHover.mark.unitView.getLayoutAncestors().map(p=>p.name).reverse(),datum:this._currentHover.datum}:{type:s.type,viewPath:null,datum:null};(c=this._eventListeners.get("click"))==null||c.forEach(p=>p(h))}(s.type!="click"||((u=this._mouseDownCoords)==null?void 0:u.subtract(at.fromMouseEvent(s)).length)<3)&&d(s)}};["mousedown","mouseup","wheel","click","mousemove","gesturechange","contextmenu","dblclick"].forEach(s=>e.addEventListener(s,i)),e.addEventListener("mousedown",s=>{this._mouseDownCoords=at.fromMouseEvent(s),this.tooltip.sticky?(this.tooltip.sticky=!1,this.tooltip.clear(),r=!0):r=!1;const o=()=>{document.addEventListener("mouseup",()=>this.tooltip.popEnabledState(),{once:!0}),this.tooltip.pushEnabledState(!1)};if(s.button==2||s.shiftKey||s.ctrlKey||s.metaKey)o();else if(this.tooltip.visible){const a=setTimeout(()=>{r=!0,this.tooltip.sticky=!0},400),c=()=>clearTimeout(a);document.addEventListener("mouseup",c,{once:!0}),document.addEventListener("mousemove",c,{once:!0})}}),e.addEventListener("dragstart",s=>s.stopPropagation()),e.addEventListener("mouseout",()=>{this.tooltip.clear(),this._currentHover=null})}_handlePicking(e,t){var o;const r=this.dpr,i=p5(this._glHelper.gl,this._glHelper._pickingBufferInfo,e*r,t*r),s=i[0]|i[1]<<8|i[2]<<16|i[3]<<24;if(s==0){this._currentHover=null;return}if(s!==((o=this._currentHover)==null?void 0:o.uniqueId)&&(this._currentHover=null),this._currentHover||this.viewRoot.visit(a=>{if(a instanceof ft){if(a.mark.isPickingParticipant()&&[...a.facetCoords.values()].some(c=>c.containsPoint(e,t))){const c=a.getCollector().findDatumByUniqueId(s);c&&(this._currentHover={mark:a.mark,datum:c,uniqueId:s})}if(this._currentHover)return Go}}),this._currentHover){const a=this._currentHover.mark;this.updateTooltip(this._currentHover.datum,async c=>{if(!a.isPickingParticipant())return;const u=a.properties.tooltip;if(u!==null){const l=(u==null?void 0:u.handler)??"default",f=this.tooltipHandlers[l];if(!f)throw new Error("No such tooltip handler: "+l);return f(c,a,u==null?void 0:u.params)}})}}updateTooltip(e,t){if(!this._tooltipUpdateRequested||!e)this.tooltip.updateWithDatum(e,t),this._tooltipUpdateRequested=!0;else throw new Error("Tooltip has already been updated! Duplicate event handler?")}exportCanvas(e,t,r,i="white"){const s=this._glHelper;e??(e=s.getLogicalCanvasSize().width),t??(t=s.getLogicalCanvasSize().height),r??(r=window.devicePixelRatio??1);const o=s.gl,a=Math.floor(e*r),c=Math.floor(t*r),u=rm(o,[{format:o.RGBA,type:o.UNSIGNED_BYTE,minMag:o.LINEAR,wrap:o.CLAMP_TO_EDGE}],a,c),l=new gh({picking:!1},{webGLHelper:this._glHelper,canvasSize:{width:e,height:t},devicePixelRatio:r,clearColor:i,framebufferInfo:u});this.viewRoot.render(l,Ft.create(0,0,e,t)),l.render();const f=m5(o,u,"image/png");return this.computeLayout(),this.renderAll(),f}computeLayout(){const e=this.viewRoot;if(!e)return;this.broadcast("layout");const t=this._glHelper.getLogicalCanvasSize();if(isNaN(t.width)||isNaN(t.height)){console.log(`NaN in canvas size: ${t.width}x${t.height}. Skipping computeLayout().`);return}const r={webGLHelper:this._glHelper,canvasSize:t,devicePixelRatio:window.devicePixelRatio??1};this._renderingContext=new gh({picking:!1},{...r,clearColor:this.spec.background}),this._pickingContext=new gh({picking:!0},{...r,framebufferInfo:this._glHelper._pickingBufferInfo}),e.render(new V9(this._renderingContext,this._pickingContext),Ft.create(0,0,t.width,t.height)),this._updateLoadingIndicators(),this.broadcast("layoutComputed")}renderAll(){var e;(e=this._renderingContext)==null||e.render(),this._dirtyPickingBuffer=!0}renderPickingFramebuffer(){this._dirtyPickingBuffer&&(this._pickingContext.render(),this._dirtyPickingBuffer=!1)}getSearchableViews(){const e=[];return this.viewRoot.visit(t=>{t instanceof ft&&t.getDataAccessor("search")&&e.push(t)}),e}getNamedScaleResolutions(){const e=new Map;return this.viewRoot.visit(t=>{for(const r of Object.values(t.resolutions.scale))r.name&&e.set(r.name,r)}),e}}vt=new WeakSet,Mu=function(){return this.container.querySelector(".canvas-wrapper")},Mx=function(){const e=[];this.viewRoot.visit(r=>{const i=r.paramMediator;e.push(...VT(i))});const t=this.options.inputBindingContainer;if(!(!t||t=="none"||!e.length)){if(this._inputBindingContainer=cu("div",{className:"gs-input-bindings"}),t=="default")this.container.appendChild(this._inputBindingContainer);else if(t instanceof HTMLElement)t.appendChild(this._inputBindingContainer);else throw new Error("Invalid inputBindingContainer");e.length&&Ns(ye`<div class="gs-input-binding">${e}</div>`,this._inputBindingContainer)}},Rx=function(){const e=this.viewRoot.paramMediator.allocateSetter("devicePixelRatio",this.dpr),t=()=>{this._glHelper.invalidateSize(),this.dpr=window.devicePixelRatio,e(this.dpr),this.computeLayout(),this.renderAll()};if(this.viewRoot.getSize().isGrowing()){const s=new ResizeObserver(t);s.observe(this.container),this._destructionCallbacks.push(()=>s.disconnect())}let r=null;const i=()=>{r!=null&&(r(),t());const s=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`);s.addEventListener("change",i),r=()=>{s.removeEventListener("change",i)}};i(),r&&this._destructionCallbacks.push(r)},Ox=function(){this.container.classList.add("genome-spy");const e=document.createElement("style");e.innerHTML=qv,this.container.appendChild(e);const t=cu("div",{class:"canvas-wrapper"});this.container.appendChild(t),t.classList.add("loading"),this._glHelper=new f5(t,()=>this.viewRoot?bI(this.viewRoot):{width:void 0,height:void 0},{powerPreference:this.options.powerPreference??"default"}),this.loadingMessageElement=cu("div",{class:"loading-message",innerHTML:'<div class="message">Loading<span class="ellipsis">...</span></div>'}),t.appendChild(this.loadingMessageElement),this.loadingIndicatorsElement=cu("div",{class:"loading-indicators"}),t.appendChild(this.loadingIndicatorsElement),this.tooltip=new Xv(this.container),this.loadingMessageElement.querySelector(".message").addEventListener("transitionend",()=>{this.loadingMessageElement.style.display="none"})};function _T(n,e){const t=document.createElement("div");t.className="message-box";const r=document.createElement("div");r.textContent=e,t.appendChild(r),n.appendChild(t)}function cu(n,e){const t=document.createElement(n);for(const[r,i]of Object.entries(e))["innerHTML","innerText","className"].includes(r)&&(t[r]=i),t.setAttribute(r,i);return t}const jT="data:image/svg+xml,%3csvg%20viewBox='0%200%2032%2032'%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20clip-rule='evenodd'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='1.5'%3e%3cpath%20d='M4.7%2021.2s.4%202.3%201.3%203.6C7%2026%209.8%2028%209.8%2028s3.4-2.6%206.4-8.5c0%200%201%20.1%201.9-.4.9-.6.8-.4%201-1.2%200%200%202.9.5%206.6%200%202.1-.3%204.3-1%206.2-2.5%200%200-1.1-1.7-2.5-5.1-.5-1.3-2-1.8-4.6-4.6l-8.2%208.6-11.9%206.9z'%20fill-opacity='.1'/%3e%3cpath%20d='M12.7%2014.8s-4-1.8-12%202.7c0%200%201%203.7%202.5%205.3%201.4%201.5%202.3%203.6%204.6%204.6%200%200%204.7-3%206.9-9.2l3-2s4.7%202.8%2012.6-1.6c0%200-.6-3.3-3-6-2.6-3-3.8-4.7-3.8-4.7s-4.1%202.3-7.5%209.3l-3.3%201.6z'%20fill='%237fbbdd'/%3e%3cpath%20d='M12.4%2015.5c-.7-.5-2.4-.8-4.4-.4-2%20.4-4%201.3-4.8%201.8-.5.3-1.2%201-1.2%201.4%200%20.7.3%201.8.8%202.4.3.3.7.5%201.4.6.8%200%202.5-1.4%203.5-2%201-.6%201.6-.8%202.7-1.2l-2.9%202.4c-1.3%201.2-2.2%201.5-2.4%202.3%200%20.5%200%201.4.5%201.8.4.5.6.8%201.6.8.6%200%201%200%202.6-1.5.9-.9%202.3-3%202.7-3.7.6-1.1%201-2.2.7-3-.2-1-.4-1.4-.8-1.7zM17.4%2014.2c-.3-.5-.9-1.2-.2-2.5l1.9-3c.5-.8%202-2.3%202.6-2.6.6-.4%201.5-.6%202-.2.6.4%201%201%201.3%201.5.4.6.7%201.3.2%202-.7%201-1.6.9-2.8%201.7-1.2.8-1.9%201.2-2.5%201.9l3.8-1.8c1.3-.6%202.7-1.1%203.4-.7.8.5.8.7%201%201.4.3%201-.2%201.9-.8%202.4-.5.6-1.5.9-2.6%201.2-1.4.4-4.5%201-5.8.5-1.3-.5-1.3-1.4-1.5-1.8z'%20fill='%23fff'/%3e%3cpath%20d='M12.7%2014.8s-4-1.8-12%202.7c0%200%201%203.7%202.5%205.3%201.4%201.5%202.3%203.6%204.6%204.6%200%200%204.7-3%206.9-9.2l3-2s4.7%202.8%2012.6-1.6c0%200-.6-3.3-3-6-2.6-3-3.8-4.7-3.8-4.7s-4.1%202.3-7.5%209.3l-3.3%201.6z'%20fill='none'%20stroke='%23000'%20stroke-width='.5'/%3e%3cpath%20d='M12.4%2014.9s2.1-2%203-2c1.1%200%202.3%202.7%202.3%203.5%200%20.8-2.1%202.4-3.1%202.3%200%200%200-1.2-.7-2.6-.8-1.3-1.5-1.2-1.5-1.2z'%20fill='%237fbbdd'/%3e%3cpath%20d='M13.8%2015.3c.9.8.6%202%201.4%201.8%201-.2%201.4-.8%201.3-1.5%200-.7%200-.8-.4-1.6-.3-.7-1-1.1-2-.5-.7.5-1.4%201.3-1.4%201.3s.2-.3%201.1.5z'%20fill='%23fff'/%3e%3cpath%20d='M12.4%2014.9s2.1-2%203-2c1.1%200%202.3%202.7%202.3%203.5%200%20.8-2.1%202.4-3.1%202.3%200%200%200-1.2-.7-2.6-.8-1.3-1.5-1.2-1.5-1.2z'%20fill='none'%20stroke='%23000'%20stroke-width='.5'/%3e%3c/svg%3e",QT="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5'%20viewBox='0%200%2064%2064'%3e%3cpath%20d='M208.6%20548.2s11.2%2046.2%2031.2%2071c20%2024.9%2079.3%2061.6%2079.3%2061.6S385.6%20623%20438%20498.3c0%200%2018.1%201%2036-11.9%2017.7-12.7%2016.3-7.9%2021-24.8%200%200%2057%206.3%20131-9.7%2041.7-9.1%2084.3-26.3%20121.5-58.8%200%200-25.4-32.9-58-101.7-12.4-26.1-41.9-34.3-98.7-88L438.1%20391.2%20208.6%20548.2Z'%20style='fill-opacity:.11'%20transform='matrix(.10221%20.00684%20-.00671%20.10035%20-8%20-13.2)'/%3e%3cg%20transform='rotate(-35.4%2034.2%2080.8)%20scale(.10057)'%3e%3cpath%20d='M561.6%20349.2s-45.3-77.9-232.8-97.2c0%200-26.5%2073.2-21.1%20116%205.3%2043-4.7%2088.1%2021.4%20133.2%200%200%20114%205.5%20225.5-72.7l74.6%203.6S673.8%20534.4%20857%20554.4c0%200%2029.7-62.6%2022.2-137-8-78.7-7.5-124-7.5-124s-96.2-9.5-236.3%2068.4l-73.8-12.6Z'%20style='fill:%237fbbdd'/%3e%3cclipPath%20id='a'%3e%3cpath%20d='M561.6%20349.2s-45.3-77.9-232.8-97.2c0%200-26.5%2073.2-21.1%20116%205.3%2043-4.7%2088.1%2021.4%20133.2%200%200%20114%205.5%20225.5-72.7l74.6%203.6S673.8%20534.4%20857%20554.4c0%200%2029.7-62.6%2022.2-137-8-78.7-7.5-124-7.5-124s-96.2-9.5-236.3%2068.4l-73.8-12.6Z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20d='M386.9%20397.2c-15.6-13.6-51.8-22.4-96.3-16.7-44.5%205.8-93.8%2021.8-111.8%2031.6-10.6%205.7-27.3%2017.3-28.1%2027.2-1.2%2014.2%202.9%2037.8%2015%2052%206%207.2%2014.2%2012.1%2028.1%2014.1%2017.9%202.6%2059-24.8%2081.6-36.2%2024-12%2038.6-14.6%2063-22.2%200%200-47%2031.6-68.2%2047.4-30.6%2022.9-51.6%2028-57.3%2045.5-3.1%209.4-.7%2027.9%207.5%2037.6%209%2011%2012.8%2017.6%2034.2%2020.1%2012.7%201.5%2022%201.2%2059.8-28.6%2021.7-17.2%2055.9-59.2%2067-74.4%2016.2-22%2023.8-43.1%2021.3-59.6-3.7-23.6-8.4-31.3-15.8-37.8Z'%20style='fill:%23fff'%20transform='scale(.88664)%20rotate(31.2%20485%20792.2)'/%3e%3cpath%20d='M484.7%20379c-5.4-11.1-17.6-28.5-.8-53.8a739%20739%200%200%201%2044.2-60.6c13.2-16.3%2046.7-46.2%2059.6-52%2013-6%2033.3-8.7%2044.2.2%2011%209.1%2016.5%2020.6%2023%2032.7%207.4%2013.8%2012.4%2029.3%201.6%2042.8-15.4%2019.2-34.3%2017-61.6%2031.5-27.7%2014.8-42.3%2023.1-55.7%2035.9%200%200%2052.2-21.6%2082-31.2%2029.8-9.7%2059.8-20%2074.8-8.5s14.6%2015.5%2018.4%2031.2c4.7%2019.4-7.2%2038-20.1%2048.6-13%2010.7-34.3%2016-57.4%2021-30.5%206.8-96.6%2015.1-124%202.6-27.5-12.6-24.4-32.8-28.2-40.5Z'%20style='fill:%23fff'%20transform='scale(.87906)%20rotate(31.2%20487.2%20893.5)'/%3e%3c/g%3e%3cpath%20d='M561.6%20349.2s-45.3-77.9-232.8-97.2c0%200-26.5%2073.2-21.1%20116%205.3%2043-4.7%2088.1%2021.4%20133.2%200%200%20114%205.5%20225.5-72.7l74.6%203.6S673.8%20534.4%20857%20554.4c0%200%2029.7-62.6%2022.2-137-8-78.7-7.5-124-7.5-124s-96.2-9.5-236.3%2068.4l-73.8-12.6Z'%20style='fill:none;stroke:%23000;stroke-width:16.57px'/%3e%3c/g%3e%3cg%20transform='rotate(-4.2%20-78%20211)%20scale(.10057)'%3e%3cpath%20d='M385%20385.5s45.8-37.6%2065-35.4c21.7%202.5%2040.5%2057.6%2040.2%2074.3-.3%2016.7-47.3%2045.5-67.7%2041.8%200%200%203-24-10.4-52.9-13.4-28.8-27.2-27.8-27.2-27.8Z'%20style='fill:%237fbbdd'/%3e%3cclipPath%20id='b'%3e%3cpath%20d='M385%20385.5s45.8-37.6%2065-35.4c21.7%202.5%2040.5%2057.6%2040.2%2074.3-.3%2016.7-47.3%2045.5-67.7%2041.8%200%200%203-24-10.4-52.9-13.4-28.8-27.2-27.8-27.2-27.8Z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23b)'%3e%3cpath%20d='M413.3%20402.7c17.5%2018.9%2010%2045.7%2028.4%2043.4%2021.7-2.7%2030.9-15.7%2031.6-32.7.7-17-1-19.5-7.1-38-6.1-18.7-18.2-23.2-43.4-18.2-20.8%204.1-17.8%203-24%2010-6.4%207-14.5%2026-14.5%2026s8.4-12.7%2029%209.5Z'%20style='fill:%23fff'%20transform='matrix(.90907%200%200%20.85852%2037%2052.2)'/%3e%3c/g%3e%3cpath%20d='M385%20385.5s45.8-37.6%2065-35.4c21.7%202.5%2040.5%2057.6%2040.2%2074.3-.3%2016.7-47.3%2045.5-67.7%2041.8%200%200%203-24-10.4-52.9-13.4-28.8-27.2-27.8-27.2-27.8Z'%20style='fill:none;stroke:%23000;stroke-width:16.57px'/%3e%3c/g%3e%3c/svg%3e";async function WT(n,e,t={}){let r;if(me(n)){if(r=document.querySelector(n),!r)throw new Error(`No such element: ${n}`)}else if(n instanceof HTMLElement)r=n;else throw new Error(`Invalid element: ${n}`);let i;try{const s=Ge(e)?e:await Qy(e);if(s.baseUrl??(s.baseUrl=""),s.width??(s.width="container"),s.padding??(s.padding=10),r==document.body){const o=document.createElement("div");o.style.position="fixed",o.style.inset="0",o.style.overflow="hidden",r.appendChild(o),r=o}i=new jy(r,s,t),qT(i,t),await i.launch()}catch(s){r.innerText=s.toString(),console.error(s)}return{finalize(){for(i.destroy();r.firstChild;)r.firstChild.remove()},addEventListener(s,o){const a=i._eventListeners;let c=a.get(s);c||(c=new Set,a.set(s,c)),c.add(o)},removeEventListener(s,o){var c;(c=i._eventListeners.get(s))==null||c.delete(o)},getScaleResolutionByName(s){return i.getNamedScaleResolutions().get(s)},updateNamedData:i.updateNamedData.bind(i),exportCanvas:i.exportCanvas.bind(i)}}function qT(n,e){e.namedDataProvider&&n.registerNamedDataProvider(e.namedDataProvider)}async function Qy(n){let e;try{const t=await fetch(n);if(!t.ok)throw new Error(`${t.status} ${t.statusText}`);e=await t.json()}catch(t){throw new Error(`Could not load or parse configuration: ${n}, reason: ${t.message}`)}if(!e.baseUrl){const t=n.match(/^[^?#]*\//);e.baseUrl=t&&t[0]||"./"}return e}class YT{constructor(e){this.blob=e,this.size=e.size}async read(e,t=0){if(!e)return new Uint8Array(0);const r=t,i=r+e;return new Uint8Array(await this.blob.slice(r,i).arrayBuffer())}async readFile(e){const t=typeof e=="string"?e:e==null?void 0:e.encoding;if(t==="utf8")return this.blob.text();if(t)throw new Error(`unsupported encoding: ${t}`);return new Uint8Array(await this.blob.arrayBuffer())}async stat(){return{size:this.size}}async close(){}}function Wy(n){return(typeof n=="object"&&n!==null&&"message"in n?n.message:`${n}`).replace(/\.$/,"")}class Yt{constructor(e,t={}){this.baseOverrides={},this.url=e;const r=t.fetch||globalThis.fetch.bind(globalThis);t.overrides&&(this.baseOverrides=t.overrides),this.fetchImplementation=r}async fetch(e,t){let r;try{r=await this.fetchImplementation(e,t)}catch(i){if(`${i}`.includes("Failed to fetch")){console.warn(`generic-filehandle: refetching ${e} to attempt to work around chrome CORS header caching bug`);try{r=await this.fetchImplementation(e,{...t,cache:"reload"})}catch(s){throw new Error(`${Wy(s)} fetching ${e}`,{cause:s})}}else throw new Error(`${Wy(i)} fetching ${e}`,{cause:i})}return r}async read(e,t,r={}){const{headers:i={},signal:s,overrides:o={}}=r;e<1/0?i.range=`bytes=${t}-${t+e}`:e===1/0&&t!==0&&(i.range=`bytes=${t}-`);const a=await this.fetch(this.url,{...this.baseOverrides,...o,headers:{...i,...o.headers,...this.baseOverrides.headers},method:"GET",redirect:"follow",mode:"cors",signal:s});if(!a.ok)throw new Error(`HTTP ${a.status} fetching ${this.url}`);if(a.status===200&&t===0||a.status===206){const c=await a.arrayBuffer(),u=a.headers.get("content-range"),l=/\/(\d+)$/.exec(u||"");return l!=null&&l[1]&&(this._stat={size:parseInt(l[1],10)}),new Uint8Array(c.slice(0,e))}throw a.status===200?new Error(`${this.url} fetch returned status 200, expected 206`):new Error(`HTTP ${a.status} fetching ${this.url}`)}async readFile(e={}){let t,r;typeof e=="string"?(t=e,r={}):(t=e.encoding,r=e,delete r.encoding);const{headers:i={},signal:s,overrides:o={}}=r,a=await this.fetch(this.url,{headers:i,method:"GET",redirect:"follow",mode:"cors",signal:s,...this.baseOverrides,...o});if(a.status!==200)throw new Error(`HTTP ${a.status} fetching ${this.url}`);if(t==="utf8")return a.text();if(t)throw new Error(`unsupported encoding: ${t}`);return new Uint8Array(await a.arrayBuffer())}async stat(){if(!this._stat&&(await this.read(10,0),!this._stat))throw new Error(`unable to determine size of file at ${this.url}`);return this._stat}async close(){}}class qe{readFile(){throw new Error("unimplemented")}read(){throw new Error("unimplemented")}close(){throw new Error("unimplemented")}}const _o=Object.freeze(Object.defineProperty({__proto__:null,BlobFile:YT,LocalFile:qe,RemoteFile:Yt},Symbol.toStringTag,{value:"Module"})),qy=65536,XT=qy*qy;function Ch(n,e=0){const t=n[e]|n[e+1]<<8|n[e+2]<<16|n[e+3]<<24;return((n[e+4]|n[e+5]<<8|n[e+6]<<16|n[e+7]<<24)>>>0)*XT+(t>>>0)}const uu=1;function Yy(n,e,t){const r=e[uu],i=t?t[uu]:1/0;return r<=n&&i>n?0:r<n?-1:1}class ZT{constructor({filehandle:e}){Y(this,"filehandle");Y(this,"index");this.filehandle=e}_getIndex(){return this.index||(this.index=this._readIndex().catch(e=>{throw this.index=void 0,e})),this.index}async _readIndex(){const e=await this.filehandle.read(8,0),t=Ch(e);if(!t)return[[0,0]];const r=new Array(t+1);r[0]=[0,0];const i=8*2*t;if(i>Number.MAX_SAFE_INTEGER)throw new TypeError("integer overflow");const s=await this.filehandle.read(i,8);for(let o=0;o<t;o+=1){const a=Ch(s,o*16),c=Ch(s,o*16+8);r[o+1]=[a,c]}return r}async getLastBlock(){return(await this._getIndex()).at(-1)}async getRelevantBlocksForRead(e,t){const r=t+e;if(e===0)return[];const i=await this._getIndex(),s=[];let o=0,a=i.length-1,c=Math.floor(i.length/2),u=Yy(t,i[c],i[c+1]);for(;u!==0;)u>0?a=c-1:u<0&&(o=c+1),c=Math.ceil((a-o)/2)+o,u=Yy(t,i[c],i[c+1]);s.push(i[c]);let l=c+1;for(;l<i.length&&(s.push(i[l]),!(i[l][uu]>=r));l+=1);return s[s.length-1][uu]<r&&s.push([]),s}}var Xy=0,zr=2,lu=4,Ur=0,fu=1,KT=2,JT=-5;function $T(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function eB(n){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var t=e.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(var r in t)$T(t,r)&&(n[r]=t[r])}}return n}function Zy(n,e){return n.length===e?n:n.subarray?n.subarray(0,e):(n.length=e,n)}var jo={arraySet:function(n,e,t,r,i){if(e.subarray&&n.subarray){n.set(e.subarray(t,t+r),i);return}for(var s=0;s<r;s++)n[i+s]=e[t+s]},flattenChunks:function(n){var e,t,r,i,s,o;for(r=0,e=0,t=n.length;e<t;e++)r+=n[e].length;for(o=new Uint8Array(r),i=0,e=0,t=n.length;e<t;e++)s=n[e],o.set(s,i),i+=s.length;return o},Buf8:function(n){return new Uint8Array(n)},Buf16:function(n){return new Uint16Array(n)},Buf32:function(n){return new Int32Array(n)}},Qo={arraySet:function(n,e,t,r,i){for(var s=0;s<r;s++)n[i+s]=e[t+s]},flattenChunks:function(n){return[].concat.apply([],n)},Buf8:function(n){return new Array(n)},Buf16:function(n){return new Array(n)},Buf32:function(n){return new Array(n)}};let Oi=()=>{const n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";return Oi=()=>n,n},Yn=(n,e,t,r,i)=>(Yn=Oi()?jo.arraySet:Qo.arraySet,Yn(n,e,t,r,i)),Dh=n=>(Dh=Oi()?jo.flattenChunks:Qo.flattenChunks,Dh(n)),Ni=n=>(Ni=Oi()?jo.Buf8:Qo.Buf8,Ni(n)),Li=n=>(Li=Oi()?jo.Buf16:Qo.Buf16,Li(n)),zi=n=>(zi=Oi()?jo.Buf32:Qo.Buf32,zi(n)),Ky=function(){let n=!0;try{String.fromCharCode.apply(null,[0])}catch{n=!1}return Ky=()=>n,n},Jy=function(){let n=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}return Jy=()=>n,n},Ih=function(n){for(var e=Ni(256),t=0;t<256;t++)e[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;return e[254]=e[254]=1,Ih=r=>e[r],e[n]};function $y(n){var e,t,r,i,s,o=n.length,a=0;for(i=0;i<o;i++)t=n.charCodeAt(i),(t&64512)===55296&&i+1<o&&(r=n.charCodeAt(i+1),(r&64512)===56320&&(t=65536+(t-55296<<10)+(r-56320),i++)),a+=t<128?1:t<2048?2:t<65536?3:4;for(e=new Uint8Array(a),s=0,i=0;s<a;i++)t=n.charCodeAt(i),(t&64512)===55296&&i+1<o&&(r=n.charCodeAt(i+1),(r&64512)===56320&&(t=65536+(t-55296<<10)+(r-56320),i++)),t<128?e[s++]=t:t<2048?(e[s++]=192|t>>>6,e[s++]=128|t&63):t<65536?(e[s++]=224|t>>>12,e[s++]=128|t>>>6&63,e[s++]=128|t&63):(e[s++]=240|t>>>18,e[s++]=128|t>>>12&63,e[s++]=128|t>>>6&63,e[s++]=128|t&63);return e}function tB(n,e){if(e<65534&&(n.subarray&&Jy()||!n.subarray&&Ky()))return String.fromCharCode.apply(null,Zy(n,e));for(var t="",r=0;r<e;r++)t+=String.fromCharCode(n[r]);return t}function nB(n){for(var e=new Uint8Array(n.length),t=0,r=e.length;t<r;t++)e[t]=n.charCodeAt(t);return e}function rB(n,e){var t,r,i,s,o=e||n.length,a=new Array(o*2);for(r=0,t=0;t<o;){if(i=n[t++],i<128){a[r++]=i;continue}if(s=Ih(i),s>4){a[r++]=65533,t+=s-1;continue}for(i&=s===2?31:s===3?15:7;s>1&&t<o;)i=i<<6|n[t++]&63,s--;if(s>1){a[r++]=65533;continue}i<65536?a[r++]=i:(i-=65536,a[r++]=55296|i>>10&1023,a[r++]=56320|i&1023)}return tB(a,r)}function iB(n,e){var t;for(e=e||n.length,e>n.length&&(e=n.length),t=e-1;t>=0&&(n[t]&192)===128;)t--;return t<0||t===0?e:t+Ih(n[t])>e?t:e}function sB(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}function Th(n,e,t,r){for(var i=n&65535|0,s=n>>>16&65535|0,o=0;t!==0;){o=t>2e3?2e3:t,t-=o;do i=i+e[r++]|0,s=s+i|0;while(--o);i%=65521,s%=65521}return i|s<<16|0}function oB(){for(var n,e=[],t=0;t<256;t++){n=t;for(var r=0;r<8;r++)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n}return e}let e2=function(){const n=oB();return e2=()=>n,n};function Xt(n,e,t,r){var i=e2(),s=r+t;n^=-1;for(var o=r;o<s;o++)n=n>>>8^i[(n^e[o])&255];return n^-1}var hu=30,aB=12;function cB(n,e){var t,r,i,s,o,a,c,u,l,f,d,h,p,m,g,y,x,A,w,S,C,v,T,P,F;t=n.state,r=n.next_in,P=n.input,i=r+(n.avail_in-5),s=n.next_out,F=n.output,o=s-(e-n.avail_out),a=s+(n.avail_out-257),c=t.dmax,u=t.wsize,l=t.whave,f=t.wnext,d=t.window,h=t.hold,p=t.bits,m=t.lencode,g=t.distcode,y=(1<<t.lenbits)-1,x=(1<<t.distbits)-1;e:do{p<15&&(h+=P[r++]<<p,p+=8,h+=P[r++]<<p,p+=8),A=m[h&y];t:for(;;){if(w=A>>>24,h>>>=w,p-=w,w=A>>>16&255,w===0)F[s++]=A&65535;else if(w&16){S=A&65535,w&=15,w&&(p<w&&(h+=P[r++]<<p,p+=8),S+=h&(1<<w)-1,h>>>=w,p-=w),p<15&&(h+=P[r++]<<p,p+=8,h+=P[r++]<<p,p+=8),A=g[h&x];n:for(;;){if(w=A>>>24,h>>>=w,p-=w,w=A>>>16&255,w&16){if(C=A&65535,w&=15,p<w&&(h+=P[r++]<<p,p+=8,p<w&&(h+=P[r++]<<p,p+=8)),C+=h&(1<<w)-1,C>c){n.msg="invalid distance too far back",t.mode=hu;break e}if(h>>>=w,p-=w,w=s-o,C>w){if(w=C-w,w>l&&t.sane){n.msg="invalid distance too far back",t.mode=hu;break e}if(v=0,T=d,f===0){if(v+=u-w,w<S){S-=w;do F[s++]=d[v++];while(--w);v=s-C,T=F}}else if(f<w){if(v+=u+f-w,w-=f,w<S){S-=w;do F[s++]=d[v++];while(--w);if(v=0,f<S){w=f,S-=w;do F[s++]=d[v++];while(--w);v=s-C,T=F}}}else if(v+=f-w,w<S){S-=w;do F[s++]=d[v++];while(--w);v=s-C,T=F}for(;S>2;)F[s++]=T[v++],F[s++]=T[v++],F[s++]=T[v++],S-=3;S&&(F[s++]=T[v++],S>1&&(F[s++]=T[v++]))}else{v=s-C;do F[s++]=F[v++],F[s++]=F[v++],F[s++]=F[v++],S-=3;while(S>2);S&&(F[s++]=F[v++],S>1&&(F[s++]=F[v++]))}}else if(w&64){n.msg="invalid distance code",t.mode=hu;break e}else{A=g[(A&65535)+(h&(1<<w)-1)];continue n}break}}else if(w&64)if(w&32){t.mode=aB;break e}else{n.msg="invalid literal/length code",t.mode=hu;break e}else{A=m[(A&65535)+(h&(1<<w)-1)];continue t}break}}while(r<i&&s<a);S=p>>3,r-=S,p-=S<<3,h&=(1<<p)-1,n.next_in=r,n.next_out=s,n.avail_in=r<i?5+(i-r):5-(r-i),n.avail_out=s<a?257+(a-s):257-(s-a),t.hold=h,t.bits=p}var Ui=15,t2=852,n2=592,r2=0,Bh=1,i2=2,uB=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],lB=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],fB=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],hB=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function Wo(n,e,t,r,i,s,o,a){var c=a.bits,u=0,l=0,f=0,d=0,h=0,p=0,m=0,g=0,y=0,x=0,A,w,S,C,v,T=null,P=0,F,k=Li(Ui+1),L=Li(Ui+1),U=null,j=0,K,_,te;for(u=0;u<=Ui;u++)k[u]=0;for(l=0;l<r;l++)k[e[t+l]]++;for(h=c,d=Ui;d>=1&&k[d]===0;d--);if(h>d&&(h=d),d===0)return i[s++]=1<<24|64<<16|0,i[s++]=1<<24|64<<16|0,a.bits=1,0;for(f=1;f<d&&k[f]===0;f++);for(h<f&&(h=f),g=1,u=1;u<=Ui;u++)if(g<<=1,g-=k[u],g<0)return-1;if(g>0&&(n===r2||d!==1))return-1;for(L[1]=0,u=1;u<Ui;u++)L[u+1]=L[u]+k[u];for(l=0;l<r;l++)e[t+l]!==0&&(o[L[e[t+l]]++]=l);if(n===r2?(T=U=o,F=19):n===Bh?(T=uB,P-=257,U=lB,j-=257,F=256):(T=fB,U=hB,F=-1),x=0,l=0,u=f,v=s,p=h,m=0,S=-1,y=1<<h,C=y-1,n===Bh&&y>t2||n===i2&&y>n2)return 1;for(;;){K=u-m,o[l]<F?(_=0,te=o[l]):o[l]>F?(_=U[j+o[l]],te=T[P+o[l]]):(_=96,te=0),A=1<<u-m,w=1<<p,f=w;do w-=A,i[v+(x>>m)+w]=K<<24|_<<16|te|0;while(w!==0);for(A=1<<u-1;x&A;)A>>=1;if(A!==0?(x&=A-1,x+=A):x=0,l++,--k[u]===0){if(u===d)break;u=e[t+o[l]]}if(u>h&&(x&C)!==S){for(m===0&&(m=h),v+=f,p=u-m,g=1<<p;p+m<d&&(g-=k[p+m],!(g<=0));)p++,g<<=1;if(y+=1<<p,n===Bh&&y>t2||n===i2&&y>n2)return 1;S=x&C,i[S]=h<<24|p<<16|v-s|0}}return x!==0&&(i[v+x]=u-m<<24|64<<16|0),a.bits=h,0}var dB=0,s2=1,o2=2,a2=4,Gr=0,pB=1,mB=2,xt=-2,c2=-3,u2=-4,gB=-5,l2=8,f2=1,h2=2,d2=3,p2=4,m2=5,g2=6,y2=7,b2=8,x2=9,A2=10,du=11,hn=12,kh=13,w2=14,Fh=15,v2=16,S2=17,E2=18,C2=19,pu=20,mu=21,D2=22,I2=23,T2=24,B2=25,k2=26,Ph=27,F2=28,P2=29,Ae=30,M2=31,yB=32,bB=852,xB=592;function R2(n){return(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24)}function AB(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=Li(320),this.work=Li(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function wB(n){var e;return!n||!n.state?xt:(e=n.state,n.total_in=n.total_out=e.total=0,n.msg="",e.wrap&&(n.adler=e.wrap&1),e.mode=f2,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=zi(bB),e.distcode=e.distdyn=zi(xB),e.sane=1,e.back=-1,Gr)}function vB(n){var e;return!n||!n.state?xt:(e=n.state,e.wsize=0,e.whave=0,e.wnext=0,wB(n))}function SB(n,e){var t,r;return!n||!n.state||(r=n.state,e<0?(t=0,e=-e):(t=(e>>4)+1,e<48&&(e&=15)),e&&(e<8||e>15))?xt:(r.window!==null&&r.wbits!==e&&(r.window=null),r.wrap=t,r.wbits=e,vB(n))}function EB(n,e){var t,r;return n?(r=new AB,n.state=r,r.window=null,t=SB(n,e),t!==Gr&&(n.state=null),t):xt}var O2=!0,Mh,Rh;function CB(n){if(O2){var e;for(Mh=zi(512),Rh=zi(32),e=0;e<144;)n.lens[e++]=8;for(;e<256;)n.lens[e++]=9;for(;e<280;)n.lens[e++]=7;for(;e<288;)n.lens[e++]=8;for(Wo(s2,n.lens,0,288,Mh,0,n.work,{bits:9}),e=0;e<32;)n.lens[e++]=5;Wo(o2,n.lens,0,32,Rh,0,n.work,{bits:5}),O2=!1}n.lencode=Mh,n.lenbits=9,n.distcode=Rh,n.distbits=5}function N2(n,e,t,r){var i,s=n.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=Ni(s.wsize)),r>=s.wsize?(Yn(s.window,e,t-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>r&&(i=r),Yn(s.window,e,t-r,i,s.wnext),r-=i,r?(Yn(s.window,e,t-r,r,0),s.wnext=r,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0}function DB(n,e){var t,r,i,s,o,a,c,u,l,f,d,h,p,m,g=0,y,x,A,w,S,C,v,T,P=Ni(4),F,k,L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!n||!n.state||!n.output||!n.input&&n.avail_in!==0)return xt;t=n.state,t.mode===hn&&(t.mode=kh),o=n.next_out,i=n.output,c=n.avail_out,s=n.next_in,r=n.input,a=n.avail_in,u=t.hold,l=t.bits,f=a,d=c,T=Gr;e:for(;;)switch(t.mode){case f2:if(t.wrap===0){t.mode=kh;break}for(;l<16;){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}if(t.wrap&2&&u===35615){t.check=0,P[0]=u&255,P[1]=u>>>8&255,t.check=Xt(t.check,P,2,0),u=0,l=0,t.mode=h2;break}if(t.flags=0,t.head&&(t.head.done=!1),!(t.wrap&1)||(((u&255)<<8)+(u>>8))%31){n.msg="incorrect header check",t.mode=Ae;break}if((u&15)!==l2){n.msg="unknown compression method",t.mode=Ae;break}if(u>>>=4,l-=4,v=(u&15)+8,t.wbits===0)t.wbits=v;else if(v>t.wbits){n.msg="invalid window size",t.mode=Ae;break}t.dmax=1<<v,n.adler=t.check=1,t.mode=u&512?A2:hn,u=0,l=0;break;case h2:for(;l<16;){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}if(t.flags=u,(t.flags&255)!==l2){n.msg="unknown compression method",t.mode=Ae;break}if(t.flags&57344){n.msg="unknown header flags set",t.mode=Ae;break}t.head&&(t.head.text=u>>8&1),t.flags&512&&(P[0]=u&255,P[1]=u>>>8&255,t.check=Xt(t.check,P,2,0)),u=0,l=0,t.mode=d2;case d2:for(;l<32;){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}t.head&&(t.head.time=u),t.flags&512&&(P[0]=u&255,P[1]=u>>>8&255,P[2]=u>>>16&255,P[3]=u>>>24&255,t.check=Xt(t.check,P,4,0)),u=0,l=0,t.mode=p2;case p2:for(;l<16;){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}t.head&&(t.head.xflags=u&255,t.head.os=u>>8),t.flags&512&&(P[0]=u&255,P[1]=u>>>8&255,t.check=Xt(t.check,P,2,0)),u=0,l=0,t.mode=m2;case m2:if(t.flags&1024){for(;l<16;){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}t.length=u,t.head&&(t.head.extra_len=u),t.flags&512&&(P[0]=u&255,P[1]=u>>>8&255,t.check=Xt(t.check,P,2,0)),u=0,l=0}else t.head&&(t.head.extra=null);t.mode=g2;case g2:if(t.flags&1024&&(h=t.length,h>a&&(h=a),h&&(t.head&&(v=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Array(t.head.extra_len)),Yn(t.head.extra,r,s,h,v)),t.flags&512&&(t.check=Xt(t.check,r,h,s)),a-=h,s+=h,t.length-=h),t.length))break e;t.length=0,t.mode=y2;case y2:if(t.flags&2048){if(a===0)break e;h=0;do v=r[s+h++],t.head&&v&&t.length<65536&&(t.head.name+=String.fromCharCode(v));while(v&&h<a);if(t.flags&512&&(t.check=Xt(t.check,r,h,s)),a-=h,s+=h,v)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=b2;case b2:if(t.flags&4096){if(a===0)break e;h=0;do v=r[s+h++],t.head&&v&&t.length<65536&&(t.head.comment+=String.fromCharCode(v));while(v&&h<a);if(t.flags&512&&(t.check=Xt(t.check,r,h,s)),a-=h,s+=h,v)break e}else t.head&&(t.head.comment=null);t.mode=x2;case x2:if(t.flags&512){for(;l<16;){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}if(u!==(t.check&65535)){n.msg="header crc mismatch",t.mode=Ae;break}u=0,l=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),n.adler=t.check=0,t.mode=hn;break;case A2:for(;l<32;){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}n.adler=t.check=R2(u),u=0,l=0,t.mode=du;case du:if(t.havedict===0)return n.next_out=o,n.avail_out=c,n.next_in=s,n.avail_in=a,t.hold=u,t.bits=l,mB;n.adler=t.check=1,t.mode=hn;case hn:case kh:if(t.last){u>>>=l&7,l-=l&7,t.mode=Ph;break}for(;l<3;){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}switch(t.last=u&1,u>>>=1,l-=1,u&3){case 0:t.mode=w2;break;case 1:CB(t),t.mode=pu;break;case 2:t.mode=S2;break;case 3:n.msg="invalid block type",t.mode=Ae}u>>>=2,l-=2;break;case w2:for(u>>>=l&7,l-=l&7;l<32;){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}if((u&65535)!==(u>>>16^65535)){n.msg="invalid stored block lengths",t.mode=Ae;break}t.length=u&65535,u=0,l=0,t.mode=Fh;case Fh:t.mode=v2;case v2:if(h=t.length,h){if(h>a&&(h=a),h>c&&(h=c),h===0)break e;Yn(i,r,s,h,o),a-=h,s+=h,c-=h,o+=h,t.length-=h;break}t.mode=hn;break;case S2:for(;l<14;){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}if(t.nlen=(u&31)+257,u>>>=5,l-=5,t.ndist=(u&31)+1,u>>>=5,l-=5,t.ncode=(u&15)+4,u>>>=4,l-=4,t.nlen>286||t.ndist>30){n.msg="too many length or distance symbols",t.mode=Ae;break}t.have=0,t.mode=E2;case E2:for(;t.have<t.ncode;){for(;l<3;){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}t.lens[L[t.have++]]=u&7,u>>>=3,l-=3}for(;t.have<19;)t.lens[L[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,F={bits:t.lenbits},T=Wo(dB,t.lens,0,19,t.lencode,0,t.work,F),t.lenbits=F.bits,T){n.msg="invalid code lengths set",t.mode=Ae;break}t.have=0,t.mode=C2;case C2:for(;t.have<t.nlen+t.ndist;){for(;g=t.lencode[u&(1<<t.lenbits)-1],y=g>>>24,x=g>>>16&255,A=g&65535,!(y<=l);){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}if(A<16)u>>>=y,l-=y,t.lens[t.have++]=A;else{if(A===16){for(k=y+2;l<k;){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}if(u>>>=y,l-=y,t.have===0){n.msg="invalid bit length repeat",t.mode=Ae;break}v=t.lens[t.have-1],h=3+(u&3),u>>>=2,l-=2}else if(A===17){for(k=y+3;l<k;){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}u>>>=y,l-=y,v=0,h=3+(u&7),u>>>=3,l-=3}else{for(k=y+7;l<k;){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}u>>>=y,l-=y,v=0,h=11+(u&127),u>>>=7,l-=7}if(t.have+h>t.nlen+t.ndist){n.msg="invalid bit length repeat",t.mode=Ae;break}for(;h--;)t.lens[t.have++]=v}}if(t.mode===Ae)break;if(t.lens[256]===0){n.msg="invalid code -- missing end-of-block",t.mode=Ae;break}if(t.lenbits=9,F={bits:t.lenbits},T=Wo(s2,t.lens,0,t.nlen,t.lencode,0,t.work,F),t.lenbits=F.bits,T){n.msg="invalid literal/lengths set",t.mode=Ae;break}if(t.distbits=6,t.distcode=t.distdyn,F={bits:t.distbits},T=Wo(o2,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,F),t.distbits=F.bits,T){n.msg="invalid distances set",t.mode=Ae;break}t.mode=pu;case pu:t.mode=mu;case mu:if(a>=6&&c>=258){n.next_out=o,n.avail_out=c,n.next_in=s,n.avail_in=a,t.hold=u,t.bits=l,cB(n,d),o=n.next_out,i=n.output,c=n.avail_out,s=n.next_in,r=n.input,a=n.avail_in,u=t.hold,l=t.bits,t.mode===hn&&(t.back=-1);break}for(t.back=0;g=t.lencode[u&(1<<t.lenbits)-1],y=g>>>24,x=g>>>16&255,A=g&65535,!(y<=l);){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}if(x&&!(x&240)){for(w=y,S=x,C=A;g=t.lencode[C+((u&(1<<w+S)-1)>>w)],y=g>>>24,x=g>>>16&255,A=g&65535,!(w+y<=l);){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}u>>>=w,l-=w,t.back+=w}if(u>>>=y,l-=y,t.back+=y,t.length=A,x===0){t.mode=k2;break}if(x&32){t.back=-1,t.mode=hn;break}if(x&64){n.msg="invalid literal/length code",t.mode=Ae;break}t.extra=x&15,t.mode=D2;case D2:if(t.extra){for(k=t.extra;l<k;){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}t.length+=u&(1<<t.extra)-1,u>>>=t.extra,l-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=I2;case I2:for(;g=t.distcode[u&(1<<t.distbits)-1],y=g>>>24,x=g>>>16&255,A=g&65535,!(y<=l);){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}if(!(x&240)){for(w=y,S=x,C=A;g=t.distcode[C+((u&(1<<w+S)-1)>>w)],y=g>>>24,x=g>>>16&255,A=g&65535,!(w+y<=l);){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}u>>>=w,l-=w,t.back+=w}if(u>>>=y,l-=y,t.back+=y,x&64){n.msg="invalid distance code",t.mode=Ae;break}t.offset=A,t.extra=x&15,t.mode=T2;case T2:if(t.extra){for(k=t.extra;l<k;){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}t.offset+=u&(1<<t.extra)-1,u>>>=t.extra,l-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){n.msg="invalid distance too far back",t.mode=Ae;break}t.mode=B2;case B2:if(c===0)break e;if(h=d-c,t.offset>h){if(h=t.offset-h,h>t.whave&&t.sane){n.msg="invalid distance too far back",t.mode=Ae;break}h>t.wnext?(h-=t.wnext,p=t.wsize-h):p=t.wnext-h,h>t.length&&(h=t.length),m=t.window}else m=i,p=o-t.offset,h=t.length;h>c&&(h=c),c-=h,t.length-=h;do i[o++]=m[p++];while(--h);t.length===0&&(t.mode=mu);break;case k2:if(c===0)break e;i[o++]=t.length,c--,t.mode=mu;break;case Ph:if(t.wrap){for(;l<32;){if(a===0)break e;a--,u|=r[s++]<<l,l+=8}if(d-=c,n.total_out+=d,t.total+=d,d&&(n.adler=t.check=t.flags?Xt(t.check,i,d,o-d):Th(t.check,i,d,o-d)),d=c,(t.flags?u:R2(u))!==t.check){n.msg="incorrect data check",t.mode=Ae;break}u=0,l=0}t.mode=F2;case F2:if(t.wrap&&t.flags){for(;l<32;){if(a===0)break e;a--,u+=r[s++]<<l,l+=8}if(u!==(t.total&4294967295)){n.msg="incorrect length check",t.mode=Ae;break}u=0,l=0}t.mode=P2;case P2:T=pB;break e;case Ae:T=c2;break e;case M2:return u2;case yB:default:return xt}return n.next_out=o,n.avail_out=c,n.next_in=s,n.avail_in=a,t.hold=u,t.bits=l,(t.wsize||d!==n.avail_out&&t.mode<Ae&&(t.mode<Ph||e!==a2))&&N2(n,n.output,n.next_out,d-n.avail_out),f-=n.avail_in,d-=n.avail_out,n.total_in+=f,n.total_out+=d,t.total+=d,t.wrap&&d&&(n.adler=t.check=t.flags?Xt(t.check,i,d,n.next_out-d):Th(t.check,i,d,n.next_out-d)),n.data_type=t.bits+(t.last?64:0)+(t.mode===hn?128:0)+(t.mode===pu||t.mode===Fh?256:0),(f===0&&d===0||e===a2)&&T===Gr&&(T=gB),T}function IB(n){if(!n||!n.state)return xt;var e=n.state;return e.window&&(e.window=null),n.state=null,Gr}function TB(n,e){var t;return!n||!n.state||(t=n.state,!(t.wrap&2))?xt:(t.head=e,e.done=!1,Gr)}function L2(n,e){var t=e.length,r,i,s;return!n||!n.state||(r=n.state,r.wrap!==0&&r.mode!==du)?xt:r.mode===du&&(i=1,i=Th(i,e,t,0),i!==r.check)?c2:(s=N2(n,e,t,t),s?(r.mode=M2,u2):(r.havedict=1,Gr))}const Oh={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function BB(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Nh=Object.prototype.toString;class dn{constructor(e){if(!(this instanceof dn))return new dn(e);this.options=eB({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new BB,this.strm.avail_out=0;var r=EB(this.strm,t.windowBits);if(r!==Ur)throw new Error(Oh[r]);if(this.header=new sB,TB(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=$y(t.dictionary):Nh.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=L2(this.strm,t.dictionary),r!==Ur)))throw new Error(Oh[r])}push(e,t){var r=this.strm,i=this.options.chunkSize,s=this.options.dictionary,o,a,c,u,l,f,d=!1;if(this.ended)return!1;a=t===~~t?t:t===!0?lu:Xy,typeof e=="string"?r.input=nB(e):Nh.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=Ni(i),r.next_out=0,r.avail_out=i),o=DB(r,Xy),o===KT&&s&&(typeof s=="string"?f=$y(s):Nh.call(s)==="[object ArrayBuffer]"?f=new Uint8Array(s):f=s,o=L2(this.strm,f)),o===JT&&d===!0&&(o=Ur,d=!1),o!==fu&&o!==Ur)return this.onEnd(o),this.ended=!0,!1;r.next_out&&(r.avail_out===0||o===fu||r.avail_in===0&&(a===lu||a===zr))&&(this.options.to==="string"?(c=iB(r.output,r.next_out),u=r.next_out-c,l=rB(r.output,c),r.next_out=u,r.avail_out=i-u,u&&Yn(r.output,r.output,c,u,0),this.onData(l)):this.onData(Zy(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(d=!0)}while((r.avail_in>0||r.avail_out===0)&&o!==fu);return o===fu&&(a=lu),a===lu?(o=IB(this.strm),this.onEnd(o),this.ended=!0,o===Ur):(a===zr&&(this.onEnd(Ur),r.avail_out=0),!0)}onData(e){this.chunks.push(e)}onEnd(e){e===Ur&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Dh(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg}}function kB(n,e){var t=new dn(e);if(t.push(n,!0),t.err)throw t.msg||Oh[t.err];return t.result}function FB(n,e){return e=e||{},e.raw=!0,kB(n,e)}function PB(n){let e=0;for(const t of n)e+=t.length;return e}function z2(n,e){const t=new Uint8Array(e??PB(n));let r=0;for(const i of n)t.set(i,r),r+=i.length;return t}async function MB(n){try{let e,t=0,r;const i=[];let s=0;do{const o=n.subarray(t);if(r=new dn(void 0),{strm:e}=r,r.push(o,zr),r.err)throw new Error(r.msg);t+=e.next_in;const a=r.result;i.push(a),s+=a.length}while(e.avail_in);return z2(i,s)}catch(e){throw/incorrect header check/.exec(`${e}`)?new Error("problem decompressing block: incorrect gzip header check"):e}}class U2{constructor({filehandle:e,gziFilehandle:t}){Y(this,"filehandle");Y(this,"gzi");this.filehandle=e,this.gzi=new ZT({filehandle:t})}async _readAndUncompressBlock(e,t){let r=t;r||(r=(await this.filehandle.stat()).size);const i=r-e,s=await this.filehandle.read(i,e);return MB(s)}async read(e,t){const r=await this.gzi.getRelevantBlocksForRead(e,t),i=[];for(let s=0;s<r.length-1;s+=1){const o=await this._readAndUncompressBlock(r[s][0],r[s+1][0]),[,a]=r[s],c=a>=t?0:t-a,u=Math.min(t+e,a+o.length)-a;c>=0&&c<o.length&&i.push(o.subarray(c,u))}return z2(i)}}function G2(n,e){return n.offset+n.lineBytes*Math.floor(e/n.lineLength)+e%n.lineLength}async function RB(n,e={}){const t=new TextDecoder("utf8");return Object.fromEntries(t.decode(await n.readFile(e)).split(/\r?\n/).map(r=>r.trim()).filter(r=>!!r).map(r=>r.split(" ")).map(r=>{var i;if((i=r[0])!=null&&i.startsWith(">"))throw new Error("found > in sequence name, might have supplied FASTA file for the FASTA index");return[r[0],{name:r[0],length:+r[1],start:0,end:+r[1],offset:+r[2],lineLength:+r[3],lineBytes:+r[4]}]}))}class H2{constructor({fasta:e,fai:t,path:r,faiPath:i}){if(e)this.fasta=e;else if(r)this.fasta=new qe(r);else throw new Error("Need to pass filehandle for fasta or path to localfile");if(t)this.fai=t;else if(i)this.fai=new qe(i);else if(r)this.fai=new qe(`${r}.fai`);else throw new Error("Need to pass filehandle for or path to localfile")}async _getIndexes(e){return this.indexes||(this.indexes=RB(this.fai,e).catch(t=>{throw this.indexes=void 0,t})),this.indexes}async getSequenceNames(e){return Object.keys(await this._getIndexes(e))}async getSequenceSizes(e){const t={},r=await this._getIndexes(e);for(const i of Object.values(r))t[i.name]=i.length;return t}async getSequenceSize(e,t){var i;return(i=(await this._getIndexes(t))[e])==null?void 0:i.length}async hasReferenceSequence(e,t){return!!(await this._getIndexes(t))[e]}async getResiduesByName(e,t,r,i){const s=(await this._getIndexes(i))[e];return s?this._fetchFromIndexEntry(s,t,r,i):void 0}async getSequence(e,t,r,i){return this.getResiduesByName(e,t,r,i)}async _fetchFromIndexEntry(e,t=0,r,i){let s=r;if(t<0)throw new TypeError("regionStart cannot be less than 0");if((s===void 0||s>e.length)&&(s=e.length),t>=s)return"";const o=G2(e,t),a=G2(e,s)-o;return new TextDecoder("utf8").decode(await this.fasta.read(a,o,i)).replace(/\s+/g,"")}}class OB extends H2{constructor({fasta:e,path:t,fai:r,faiPath:i,gzi:s,gziPath:o}){super({fasta:e,path:t,fai:r,faiPath:i}),e&&s?this.fasta=new U2({filehandle:e,gziFilehandle:s}):t&&o&&(this.fasta=new U2({filehandle:new qe(t),gziFilehandle:new qe(o)}))}}function V2(n){return n.split(">").filter(e=>/\S/.test(e)).map(e=>{const[t,...r]=e.split(`
|
|
719
|
-
`),[i,...s]=t.split(" "),o=r.join("").replace(/\s/g,"");return{id:i,description:s.join(" "),sequence:o}})}class NB{constructor({fasta:e,path:t}){if(e)this.fasta=e;else if(t)this.fasta=new qe(t);else throw new Error("Need to pass fasta or path");this.data=this.fasta.readFile().then(r=>{const s=new TextDecoder("utf8").decode(r);return V2(s)})}async fetch(e,t,r){const s=(await this.data).find(a=>a.id===e),o=r-t;if(!s)throw new Error(`no sequence with id ${e} exists`);return s.sequence.slice(t,o)}async getSequenceNames(){return(await this.data).map(t=>t.id)}}const LB=Object.freeze(Object.defineProperty({__proto__:null,BgzipIndexedFasta:OB,FetchableSmallFasta:NB,IndexedFasta:H2,parseSmallFasta:V2},Symbol.toStringTag,{value:"Module"})),_2=BigInt(32);function zB(n,e,t){const r=+!!t,i=+!t;return BigInt(n.getInt32(e,t)*i+n.getInt32(e+4,t)*r)<<_2|BigInt(n.getUint32(e,t)*r+n.getUint32(e+4,t)*i)}function UB(n,e,t){const r=n.getUint32(e,t),i=n.getUint32(e+4,t),s=+!!t,o=+!t;return BigInt(r*o+i*s)<<_2|BigInt(r*s+i*o)}"getBigInt64"in DataView||(DataView.prototype.getBigInt64=function(n,e){return zB(this,n,e)}),"getBigUint64"in DataView||(DataView.prototype.getBigUint64=function(n,e){return UB(this,n,e)});var Lh=function(n,e){return Lh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},Lh(n,e)};function zh(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Lh(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function GB(n,e,t,r){function i(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function a(l){try{u(r.next(l))}catch(f){o(f)}}function c(l){try{u(r.throw(l))}catch(f){o(f)}}function u(l){l.done?s(l.value):i(l.value).then(a,c)}u((r=r.apply(n,e||[])).next())})}function j2(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(l){return c([u,l])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(t=0)),t;)try{if(r=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){t.label=u[1];break}if(u[0]===6&&t.label<s[1]){t.label=s[1],s=u;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(u);break}s[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(n,t)}catch(l){u=[6,l],i=0}finally{r=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function qo(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Uh(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,s=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return s}function Gh(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return n.concat(s||Array.prototype.slice.call(e))}function Gi(n){return this instanceof Gi?(this.v=n,this):new Gi(n)}function HB(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(n,e||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(h){return function(p){return Promise.resolve(p).then(h,f)}}function a(h,p){r[h]&&(i[h]=function(m){return new Promise(function(g,y){s.push([h,m,g,y])>1||c(h,m)})},p&&(i[h]=p(i[h])))}function c(h,p){try{u(r[h](p))}catch(m){d(s[0][3],m)}}function u(h){h.value instanceof Gi?Promise.resolve(h.value.v).then(l,f):d(s[0][2],h)}function l(h){c("next",h)}function f(h){c("throw",h)}function d(h,p){h(p),s.shift(),s.length&&c(s[0][0],s[0][1])}}function VB(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof qo=="function"?qo(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=n[s]&&function(o){return new Promise(function(a,c){o=n[s](o),i(a,c,o.done,o.value)})}}function i(s,o,a,c){Promise.resolve(c).then(function(u){s({value:u,done:a})},o)}}typeof SuppressedError=="function"&&SuppressedError;function ke(n){return typeof n=="function"}function Q2(n){var e=function(r){Error.call(r),r.stack=new Error().stack},t=n(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Hh=Q2(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
720
|
-
`+t.map(function(r,i){return i+1+") "+r.toString()}).join(`
|
|
721
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function W2(n,e){if(n){var t=n.indexOf(e);0<=t&&n.splice(t,1)}}var Vh=function(){function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var e,t,r,i,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=qo(o),c=a.next();!c.done;c=a.next()){var u=c.value;u.remove(this)}}catch(m){e={error:m}}finally{try{c&&!c.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(ke(l))try{l()}catch(m){s=m instanceof Hh?m.errors:[m]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=qo(f),h=d.next();!h.done;h=d.next()){var p=h.value;try{Y2(p)}catch(m){s=s??[],m instanceof Hh?s=Gh(Gh([],Uh(s)),Uh(m.errors)):s.push(m)}}}catch(m){r={error:m}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}if(s)throw new Hh(s)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Y2(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&W2(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&W2(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=function(){var e=new n;return e.closed=!0,e}(),n}();Vh.EMPTY;function q2(n){return n instanceof Vh||n&&"closed"in n&&ke(n.remove)&&ke(n.add)&&ke(n.unsubscribe)}function Y2(n){ke(n)?n():n.unsubscribe()}var _B={Promise:void 0},jB={setTimeout:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return setTimeout.apply(void 0,Gh([n,e],Uh(t)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function X2(n){jB.setTimeout(function(){throw n})}function Z2(){}function QB(n){n()}var _h=function(n){zh(e,n);function e(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,q2(t)&&t.add(r)):r.destination=YB,r}return e.create=function(t,r,i){return new gu(t,r,i)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Vh),WB=function(){function n(e){this.partialObserver=e}return n.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){yu(r)}},n.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){yu(r)}else yu(e)},n.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){yu(t)}},n}(),gu=function(n){zh(e,n);function e(t,r,i){var s=n.call(this)||this,o;return ke(t)||!t?o={next:t??void 0,error:r??void 0,complete:i??void 0}:o=t,s.destination=new WB(o),s}return e}(_h);function yu(n){X2(n)}function qB(n){throw n}var YB={closed:!0,next:Z2,error:qB,complete:Z2},jh=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function K2(n){return n}function XB(n){return n.length===0?K2:n.length===1?n[0]:function(t){return n.reduce(function(r,i){return i(r)},t)}}var At=function(){function n(e){e&&(this._subscribe=e)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var i=this,s=KB(e)?e:new gu(e,t,r);return QB(function(){var o=i,a=o.operator,c=o.source;s.add(a?a.call(s,c):c?i._subscribe(s):i._trySubscribe(s))}),s},n.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},n.prototype.forEach=function(e,t){var r=this;return t=J2(t),new t(function(i,s){var o=new gu({next:function(a){try{e(a)}catch(c){s(c),o.unsubscribe()}},error:s,complete:i});r.subscribe(o)})},n.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},n.prototype[jh]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return XB(e)(this)},n.prototype.toPromise=function(e){var t=this;return e=J2(e),new e(function(r,i){var s;t.subscribe(function(o){return s=o},function(o){return i(o)},function(){return r(s)})})},n.create=function(e){return new n(e)},n}();function J2(n){var e;return(e=n??_B.Promise)!==null&&e!==void 0?e:Promise}function ZB(n){return n&&ke(n.next)&&ke(n.error)&&ke(n.complete)}function KB(n){return n&&n instanceof _h||ZB(n)&&q2(n)}function JB(n){return ke(n==null?void 0:n.lift)}function Hi(n){return function(e){if(JB(e))return e.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Yo(n,e,t,r,i){return new $B(n,e,t,r,i)}var $B=function(n){zh(e,n);function e(t,r,i,s,o,a){var c=n.call(this,t)||this;return c.onFinalize=o,c.shouldUnsubscribe=a,c._next=r?function(u){try{r(u)}catch(l){t.error(l)}}:n.prototype._next,c._error=s?function(u){try{s(u)}catch(l){t.error(l)}finally{this.unsubscribe()}}:n.prototype._error,c._complete=i?function(){try{i()}catch(u){t.error(u)}finally{this.unsubscribe()}}:n.prototype._complete,c}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;n.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(_h),ek=new At(function(n){return n.complete()});function tk(n){return n&&ke(n.schedule)}function $2(n){return n[n.length-1]}function nk(n){return tk($2(n))?n.pop():void 0}function rk(n,e){return typeof $2(n)=="number"?n.pop():e}var eb=function(n){return n&&typeof n.length=="number"&&typeof n!="function"};function tb(n){return ke(n==null?void 0:n.then)}function nb(n){return ke(n[jh])}function rb(n){return Symbol.asyncIterator&&ke(n==null?void 0:n[Symbol.asyncIterator])}function ib(n){return new TypeError("You provided "+(n!==null&&typeof n=="object"?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function ik(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var sb=ik();function ob(n){return ke(n==null?void 0:n[sb])}function ab(n){return HB(this,arguments,function(){var t,r,i,s;return j2(this,function(o){switch(o.label){case 0:t=n.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,Gi(t.read())];case 3:return r=o.sent(),i=r.value,s=r.done,s?[4,Gi(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,Gi(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function cb(n){return ke(n==null?void 0:n.getReader)}function Vi(n){if(n instanceof At)return n;if(n!=null){if(nb(n))return sk(n);if(eb(n))return ok(n);if(tb(n))return ak(n);if(rb(n))return ub(n);if(ob(n))return ck(n);if(cb(n))return uk(n)}throw ib(n)}function sk(n){return new At(function(e){var t=n[jh]();if(ke(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ok(n){return new At(function(e){for(var t=0;t<n.length&&!e.closed;t++)e.next(n[t]);e.complete()})}function ak(n){return new At(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,X2)})}function ck(n){return new At(function(e){var t,r;try{for(var i=qo(n),s=i.next();!s.done;s=i.next()){var o=s.value;if(e.next(o),e.closed)return}}catch(a){t={error:a}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}e.complete()})}function ub(n){return new At(function(e){lk(n,e).catch(function(t){return e.error(t)})})}function uk(n){return ub(ab(n))}function lk(n,e){var t,r,i,s;return GB(this,void 0,void 0,function(){var o,a;return j2(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),t=VB(n),c.label=1;case 1:return[4,t.next()];case 2:if(r=c.sent(),!!r.done)return[3,4];if(o=r.value,e.next(o),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=c.sent(),i={error:a},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(s=t.return)?[4,s.call(t)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function Hr(n,e,t,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var s=e.schedule(function(){t(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(s),!i)return s}function lb(n,e){return e===void 0&&(e=0),Hi(function(t,r){t.subscribe(Yo(r,function(i){return Hr(r,n,function(){return r.next(i)},e)},function(){return Hr(r,n,function(){return r.complete()},e)},function(i){return Hr(r,n,function(){return r.error(i)},e)}))})}function fb(n,e){return e===void 0&&(e=0),Hi(function(t,r){r.add(n.schedule(function(){return t.subscribe(r)},e))})}function fk(n,e){return Vi(n).pipe(fb(e),lb(e))}function hk(n,e){return Vi(n).pipe(fb(e),lb(e))}function dk(n,e){return new At(function(t){var r=0;return e.schedule(function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())})})}function pk(n,e){return new At(function(t){var r;return Hr(t,e,function(){r=n[sb](),Hr(t,e,function(){var i,s,o;try{i=r.next(),s=i.value,o=i.done}catch(a){t.error(a);return}o?t.complete():t.next(s)},0,!0)}),function(){return ke(r==null?void 0:r.return)&&r.return()}})}function hb(n,e){if(!n)throw new Error("Iterable cannot be null");return new At(function(t){Hr(t,e,function(){var r=n[Symbol.asyncIterator]();Hr(t,e,function(){r.next().then(function(i){i.done?t.complete():t.next(i.value)})},0,!0)})})}function mk(n,e){return hb(ab(n),e)}function gk(n,e){if(n!=null){if(nb(n))return fk(n,e);if(eb(n))return dk(n,e);if(tb(n))return hk(n,e);if(rb(n))return hb(n,e);if(ob(n))return pk(n,e);if(cb(n))return mk(n,e)}throw ib(n)}function yk(n,e){return e?gk(n,e):Vi(n)}var bk=Q2(function(n){return function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}});function db(n,e){return new Promise(function(t,r){var i=new gu({next:function(s){t(s),i.unsubscribe()},error:r,complete:function(){r(new bk)}});n.subscribe(i)})}function pb(n,e){return Hi(function(t,r){var i=0;t.subscribe(Yo(r,function(s){r.next(n.call(e,s,i++))}))})}function xk(n,e,t,r,i,s,o,a){var c=[],u=0,l=0,f=!1,d=function(){f&&!c.length&&!u&&e.complete()},h=function(m){return u<r?p(m):c.push(m)},p=function(m){u++;var g=!1;Vi(t(m,l++)).subscribe(Yo(e,function(y){e.next(y)},function(){g=!0},void 0,function(){if(g)try{u--;for(var y=function(){var x=c.shift();o||p(x)};c.length&&u<r;)y();d()}catch(x){e.error(x)}}))};return n.subscribe(Yo(e,h,function(){f=!0,d()})),function(){}}function mb(n,e,t){return t===void 0&&(t=1/0),ke(e)?mb(function(r,i){return pb(function(s,o){return e(r,s,i,o)})(Vi(n(r,i)))},t):(typeof e=="number"&&(t=e),Hi(function(r,i){return xk(r,i,n,t)}))}function Ak(n){return n===void 0&&(n=1/0),mb(K2,n)}function wk(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=nk(n),r=rk(n,1/0),i=n;return i.length?i.length===1?Vi(i[0]):Ak(r)(yk(i,t)):ek}function vk(n,e,t,r,i){return function(s,o){var a=t,c=e,u=0;s.subscribe(Yo(o,function(l){var f=u++;c=a?n(c,l,f):(a=!0,l)},function(){a&&o.next(c),o.complete()}))}}function gb(n,e){return Hi(vk(n,e,arguments.length>=2,!1,!0))}var Sk=function(n,e){return n.push(e),n};function Ek(){return Hi(function(n,e){gb(Sk,[])(n).subscribe(e)})}class Ck{}class Dk{constructor(){this.signals=new Set,this.abortController=new AbortController}addSignal(e=new Ck){if(this.signal.aborted)throw new Error("cannot add a signal, already aborted!");this.signals.add(e),e.aborted?this.handleAborted(e):typeof e.addEventListener=="function"&&e.addEventListener("abort",()=>{this.handleAborted(e)})}handleAborted(e){this.signals.delete(e),this.signals.size===0&&this.abortController.abort()}get signal(){return this.abortController.signal}abort(){this.abortController.abort()}}class Ik{constructor(){this.callbacks=new Set}addCallback(e=()=>{}){this.callbacks.add(e),this.currentMessage&&e(this.currentMessage)}callback(e){this.currentMessage=e;for(const t of this.callbacks)t(e)}}class _i{constructor({fill:e,cache:t}){if(typeof e!="function")throw new TypeError("must pass a fill function");if(typeof t!="object")throw new TypeError("must pass a cache object");if(typeof t.get!="function"||typeof t.set!="function"||typeof t.delete!="function")throw new TypeError("cache must implement get(key), set(key, val), and and delete(key)");this.cache=t,this.fillCallback=e}static isAbortException(e){return e.name==="AbortError"||e.code==="ERR_ABORTED"||e.message==="AbortError: aborted"||e.message==="Error: aborted"}evict(e,t){this.cache.get(e)===t&&this.cache.delete(e)}fill(e,t,r,i){const s=new Dk,o=new Ik;o.addCallback(i);const a={aborter:s,promise:this.fillCallback(t,s.signal,c=>{o.callback(c)}),settled:!1,statusReporter:o,get aborted(){return this.aborter.signal.aborted}};a.aborter.addSignal(r),a.aborter.signal.addEventListener("abort",()=>{a.settled||this.evict(e,a)}),a.promise.then(()=>{a.settled=!0},()=>{a.settled=!0,this.evict(e,a)}).catch(c=>{throw console.error(c),c}),this.cache.set(e,a)}static checkSinglePromise(e,t){function r(){if(t!=null&&t.aborted)throw Object.assign(new Error("aborted"),{code:"ERR_ABORTED"})}return e.then(i=>(r(),i),i=>{throw r(),i})}has(e){return this.cache.has(e)}get(e,t,r,i){if(!r&&t instanceof AbortSignal)throw new TypeError("second get argument appears to be an AbortSignal, perhaps you meant to pass `null` for the fill data?");const s=this.cache.get(e);return s?s.aborted&&!s.settled?(this.evict(e,s),this.get(e,t,r,i)):s.settled?s.promise:(s.aborter.addSignal(r),s.statusReporter.addCallback(i),_i.checkSinglePromise(s.promise,r)):(this.fill(e,t,r,i),_i.checkSinglePromise(this.cache.get(e).promise,r))}delete(e){const t=this.cache.get(e);t&&(t.settled||t.aborter.abort(),this.cache.delete(e))}clear(){const e=this.cache.keys();let t=0;for(let r=e.next();!r.done;r=e.next())this.delete(r.value),t+=1;return t}}function Tk(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Qh,yb;function Bk(){if(yb)return Qh;yb=1;class n{constructor(t={}){if(!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=t.maxSize,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(t,r){this.cache.set(t,r),this._size++,this._size>=this.maxSize&&(this._size=0,this.oldCache=this.cache,this.cache=new Map)}get(t){if(this.cache.has(t))return this.cache.get(t);if(this.oldCache.has(t)){const r=this.oldCache.get(t);return this.oldCache.delete(t),this._set(t,r),r}}set(t,r){return this.cache.has(t)?this.cache.set(t,r):this._set(t,r),this}has(t){return this.cache.has(t)||this.oldCache.has(t)}peek(t){if(this.cache.has(t))return this.cache.get(t);if(this.oldCache.has(t))return this.oldCache.get(t)}delete(t){const r=this.cache.delete(t);return r&&this._size--,this.oldCache.delete(t)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[t]of this)yield t}*values(){for(const[,t]of this)yield t}*[Symbol.iterator](){for(const t of this.cache)yield t;for(const t of this.oldCache){const[r]=t;this.cache.has(r)||(yield t)}}get size(){let t=0;for(const r of this.oldCache.keys())this.cache.has(r)||t++;return this._size+t}}return Qh=n,Qh}var kk=Bk();const Vr=Tk(kk);class ji{constructor(e){Y(this,"ranges");this.ranges=e}get min(){return this.ranges[0].min}get max(){return this.ranges.at(-1).max}contains(e){for(const t of this.ranges)if(t.min<=e&&t.max>=e)return!0;return!1}isContiguous(){return this.ranges.length>1}getRanges(){return this.ranges.map(e=>new ji([{min:e.min,max:e.max}]))}toString(){return this.ranges.map(e=>`[${e.min}-${e.max}]`).join(",")}union(e){const t=[...this.getRanges(),...e.getRanges()].sort((s,o)=>s.min<o.min?-1:s.min>o.min?1:s.max<o.max?-1:o.max>s.max?1:0),r=[];let i=t[0];for(const s of t)s.min>i.max+1?(r.push(i),i=s):s.max>i.max&&(i=new ji([{min:i.min,max:s.max}]));return r.push(i),r.length===1?r[0]:new ji(r)}}function Fk(n){return FB(n.subarray(2),void 0)}let Pk=class extends Error{constructor(t){super(t);Y(this,"code");this.code="ERR_ABORTED"}};function Mk(n){n.sort((i,s)=>i.offset-s.offset);const e=[];let t,r;for(const i of n)t&&r&&i.offset-r<=2e3?(t.length=t.length+i.length-r+i.offset,t.blocks.push(i)):e.push(t={blocks:[i],length:i.length,offset:i.offset}),r=t.offset+t.length;return e}function bu(n){if(n&&n.aborted)if(typeof DOMException>"u"){const e=new Pk("aborted");throw e.code="ERR_ABORTED",e}else throw new DOMException("aborted","AbortError")}const Wh=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function qh(n,e,t,r){return n<r&&e>=t}class bb{constructor(e,t,r,i,s){Y(this,"bbi");Y(this,"refsByName");Y(this,"cirTreeOffset");Y(this,"isCompressed");Y(this,"blockType");Y(this,"cirTreePromise");Y(this,"featureCache",new _i({cache:new Vr({maxSize:1e3}),fill:async({length:e,offset:t},r)=>this.bbi.read(e,t,{signal:r})}));if(this.bbi=e,this.refsByName=t,this.cirTreeOffset=r,this.isCompressed=i,this.blockType=s,!(r>=0))throw new Error("invalid cirTreeOffset!")}async readWigData(e,t,r,i,s){try{const o=this.refsByName[e];o===void 0&&i.complete();const a={chrId:o,start:t,end:r};this.cirTreePromise||(this.cirTreePromise=this.bbi.read(48,this.cirTreeOffset,s));const c=await this.cirTreePromise,l=new DataView(c.buffer).getUint32(4,!0);let f=[],d=0;const h=(y,x,A)=>{try{const S=y.subarray(x),C=new DataView(S.buffer,S.byteOffset,S.length);let v=0;const T=C.getUint8(v);v+=2;const P=C.getUint16(v,!0);if(v+=2,T===1){const F=[];for(let k=0;k<P;k++){const L=C.getUint32(v,!0);v+=4;const U=C.getUint32(v,!0);v+=4;const j=C.getUint32(v,!0);v+=4;const K=C.getUint32(v,!0);v+=4;const _=Number(C.getBigUint64(v,!0));v+=8;const te=Number(C.getBigUint64(v,!0));v+=8,F.push({startChrom:L,startBase:U,endBase:K,endChrom:j,blockOffset:_,blockSize:te,offset:v})}f=f.concat(F.filter(k=>p(k)).map(k=>({offset:k.blockOffset,length:k.blockSize})))}else if(T===0){const F=[];for(let L=0;L<P;L++){const U=C.getUint32(v,!0);v+=4;const j=C.getUint32(v,!0);v+=4;const K=C.getUint32(v,!0);v+=4;const _=C.getUint32(v,!0);v+=4;const te=Number(C.getBigUint64(v,!0));v+=8,F.push({startChrom:U,startBase:j,endChrom:K,endBase:_,blockOffset:te,offset:v})}const k=F.filter(L=>p(L)).map(L=>L.blockOffset);k.length>0&&g(k,A+1)}}catch(w){i.error(w)}},p=y=>{const{startChrom:x,startBase:A,endChrom:w,endBase:S}=y;return(x<o||x===o&&A<=r)&&(w>o||w===o&&S>=t)},m=async(y,x,A)=>{try{const w=x.max-x.min,S=x.min,C=await this.featureCache.get(`${w}_${S}`,{length:w,offset:S},s==null?void 0:s.signal);for(const v of y)x.contains(v)&&(h(C,v-S,A),d-=1,d===0&&this.readFeatures(i,f,{...s,request:a}).catch(T=>{i.error(T)}))}catch(w){i.error(w)}},g=(y,x)=>{try{d+=y.length;const A=4+l*32;let w=new ji([{min:y[0],max:y[0]+A}]);for(let S=1;S<y.length;S+=1){const C=new ji([{min:y[S],max:y[S]+A}]);w=w.union(C)}w.getRanges().map(S=>m(y,S,x))}catch(A){i.error(A)}};g([this.cirTreeOffset+48],1);return}catch(o){i.error(o)}}parseSummaryBlock(e,t,r){const i=[];let s=t;const o=new DataView(e.buffer,e.byteOffset,e.length);for(;s<e.byteLength;){const a=o.getUint32(s,!0);s+=4;const c=o.getUint32(s,!0);s+=4;const u=o.getUint32(s,!0);s+=4;const l=o.getUint32(s,!0);s+=4;const f=o.getFloat32(s,!0);s+=4;const d=o.getFloat32(s,!0);s+=4;const h=o.getFloat32(s,!0);s+=4,s+=4,(!r||a===r.chrId&&qh(c,u,r.start,r.end))&&i.push({start:c,end:u,maxScore:d,minScore:f,summary:!0,score:h/(l||1)})}return i}parseBigBedBlock(e,t,r,i){const s=[];let o=t;const a=e,c=new DataView(a.buffer,a.byteOffset,a.length);for(;o<e.byteLength;){const u=o,l=c.getUint32(o,!0);o+=4;const f=c.getInt32(o,!0);o+=4;const d=c.getInt32(o,!0);o+=4;let h=o;for(;h<e.length&&e[h]!==0;h++);const p=e.subarray(o,h),m=(Wh==null?void 0:Wh.decode(p))??p.toString();o=h+1,s.push({chromId:l,start:f,end:d,rest:m,uniqueId:`bb-${r+u}`})}return i?s.filter(u=>qh(u.start,u.end,i.start,i.end)):s}parseBigWigBlock(e,t,r){const i=e.subarray(t),s=new DataView(i.buffer,i.byteOffset,i.length);let o=0;o+=4;const a=s.getInt32(o,!0);o+=8;const c=s.getUint32(o,!0);o+=4;const u=s.getUint32(o,!0);o+=4;const l=s.getUint8(o);o+=2;const f=s.getUint16(o,!0);o+=2;const d=new Array(f);switch(l){case 1:{for(let h=0;h<f;h++){const p=s.getInt32(o,!0);o+=4;const m=s.getInt32(o,!0);o+=4;const g=s.getFloat32(o,!0);o+=4,d[h]={start:p,end:m,score:g}}break}case 2:{for(let h=0;h<f;h++){const p=s.getInt32(o,!0);o+=4;const m=s.getFloat32(o,!0);o+=4,d[h]={score:m,start:p,end:p+u}}break}case 3:{for(let h=0;h<f;h++){const p=s.getFloat32(o,!0);o+=4;const m=a+h*c;d[h]={score:p,start:m,end:m+u}}break}}return r?d.filter(h=>qh(h.start,h.end,r.start,r.end)):d}async readFeatures(e,t,r={}){try{const{blockType:i,isCompressed:s}=this,{signal:o,request:a}=r,c=Mk(t);bu(o),await Promise.all(c.map(async u=>{bu(o);const{length:l,offset:f}=u,d=await this.featureCache.get(`${l}_${f}`,u,o);for(const h of u.blocks){bu(o);let p=d.subarray(h.offset-u.offset);switch(s&&(p=Fk(p)),bu(o),i){case"summary":{e.next(this.parseSummaryBlock(p,0,a));break}case"bigwig":{e.next(this.parseBigWigBlock(p,0,a));break}case"bigbed":{e.next(this.parseBigBedBlock(p,0,h.offset*256,a));break}default:console.warn(`Don't know what to do with ${i}`)}}})),e.complete()}catch(i){e.error(i)}}}const Rk=-2003829722,xb=-2021002517;function Qi(n){return new DataView(n.buffer,n.byteOffset,n.length)}class Ab{constructor(e){Y(this,"bbi");Y(this,"headerP");Y(this,"renameRefSeqs");const{filehandle:t,renameRefSeqs:r=o=>o,path:i,url:s}=e;if(this.renameRefSeqs=r,t)this.bbi=t;else if(s)this.bbi=new Yt(s);else if(i)this.bbi=new qe(i);else throw new Error("no file given")}getHeader(e){return this.headerP||(this.headerP=this._getHeader(e).catch(t=>{throw this.headerP=void 0,t})),this.headerP}async _getHeader(e){const t=await this._getMainHeader(e),r=await this._readChromTree(t,e);return{...t,...r}}async _getMainHeader(e,t=2e3){const r=await this.bbi.read(t,0,e),i=Qi(r),s=i.getInt32(0,!0);if(s!==Rk&&s!==xb)throw new Error("not a BigWig/BigBed file");let o=0;const a=i.getInt32(o,!0);o+=4;const c=i.getUint16(o,!0);o+=2;const u=i.getUint16(o,!0);o+=2;const l=Number(i.getBigUint64(o,!0));o+=8;const f=Number(i.getBigUint64(o,!0));o+=8;const d=Number(i.getBigUint64(o,!0));o+=8;const h=i.getUint16(o,!0);o+=2;const p=i.getUint16(o,!0);o+=2;const m=Number(i.getBigUint64(o,!0));o+=8;const g=Number(i.getBigUint64(o,!0));o+=8;const y=i.getUint32(o,!0);o+=4;const x=Number(i.getBigUint64(o,!0));o+=8;const A=[];for(let v=0;v<u;v++){const T=i.getUint32(o,!0);o+=4;const P=i.getUint32(o,!0);o+=4;const F=Number(i.getBigUint64(o,!0));o+=8;const k=Number(i.getBigUint64(o,!0));o+=8,A.push({reductionLevel:T,reserved:P,dataOffset:F,indexOffset:k})}const w=a===xb?"bigbed":"bigwig";if(m>t||g>t-8*5)return this._getMainHeader(e,t*2);let S;if(g){const v=r.subarray(g);let T=0;const P=Qi(v),F=Number(P.getBigUint64(T,!0));T+=8;const k=P.getFloat64(T,!0);T+=8;const L=P.getFloat64(T,!0);T+=8;const U=P.getFloat64(T,!0);T+=8;const j=P.getFloat64(T,!0);T+=8,S={scoreMin:k,scoreMax:L,scoreSum:U,scoreSumSquares:j,basesCovered:F}}else throw new Error("no stats");const C=new TextDecoder("utf8");return{zoomLevels:A,magic:a,extHeaderOffset:x,numZoomLevels:u,fieldCount:h,totalSummary:S,definedFieldCount:p,uncompressBufSize:y,asOffset:m,chromTreeOffset:l,totalSummaryOffset:g,unzoomedDataOffset:f,unzoomedIndexOffset:d,fileType:w,version:c,autoSql:m?C.decode(r.subarray(m,r.indexOf(0,m))):""}}async _readChromTree(e,t){const r=[],i={},s=e.chromTreeOffset,o=Qi(await this.bbi.read(32,s,t));let a=0;a+=4,a+=4;const c=o.getUint32(a,!0);a+=4;const u=o.getUint32(a,!0);a+=4,a+=8;const l=new TextDecoder("utf8"),f=async d=>{const h=await this.bbi.read(4,d),p=Qi(h);let m=0;const g=p.getUint8(m);m+=1,m+=1;const y=p.getUint16(m,!0);if(m+=2,g){const x=await this.bbi.read(y*(c+u),d+m),A=Qi(x);m=0;for(let w=0;w<y;w++){const S=l.decode(x.subarray(m,m+c)).replaceAll("\0","");m+=c;const C=A.getUint32(m,!0);m+=4;const v=A.getUint32(m,!0);m+=4,i[this.renameRefSeqs(S)]=C,r[C]={name:S,id:C,length:v}}}else{const x=[],A=Qi(await this.bbi.read(y*(c+8),d+m));m=0;for(let w=0;w<y;w++){m+=c;const S=Number(A.getBigUint64(m,!0));m+=8,x.push(f(S))}await Promise.all(x)}};return await f(s+32),{refsByName:i,refsByNumber:r}}async getUnzoomedView(e){const{unzoomedIndexOffset:t,refsByName:r,uncompressBufSize:i,fileType:s}=await this.getHeader(e);return new bb(this.bbi,r,t,i>0,s)}async getFeatureStream(e,t,r,i){await this.getHeader(i);const s=this.renameRefSeqs(e);let o;const{basesPerSpan:a,scale:c}=i||{};return a?o=await this.getView(1/a,i):c?o=await this.getView(c,i):o=await this.getView(1,i),new At(u=>{o.readWigData(s,t,r,u,i).catch(l=>{u.error(l)})})}async getFeatures(e,t,r,i){const s=await this.getFeatureStream(e,t,r,i);return(await db(s.pipe(Ek()))).flat()}}class Ok extends Ab{async getView(e,t){const{zoomLevels:r,refsByName:i,uncompressBufSize:s}=await this.getHeader(t),o=1/e,a=r.length-1;for(let c=a;c>=0;c-=1){const u=r[c];if(u&&u.reductionLevel<=2*o)return new bb(this.bbi,i,u.indexOffset,s>0,"summary")}return this.getUnzoomedView(t)}}function Nk(n){return n.filter(e=>!!e)}class Lk extends Ab{constructor(){super(...arguments);Y(this,"readIndicesCache",new _i({cache:new Vr({maxSize:1}),fill:(t,r)=>this._readIndices({...t,signal:r})}))}readIndices(t={}){const{signal:r,...i}=t;return this.readIndicesCache.get(JSON.stringify(i),t,r)}async getView(t,r){return this.getUnzoomedView(r)}async _readIndices(t){const{extHeaderOffset:r}=await this.getHeader(t),i=await this.bbi.read(64,r),s=new DataView(i.buffer,i.byteOffset,i.length);let o=0;o+=2;const a=s.getUint16(o,!0);o+=2;const c=Number(s.getBigUint64(o,!0));if(o+=8,a===0)return[];const u=20,l=u*a,f=await this.bbi.read(l,c),d=[];for(let h=0;h<a;h+=1){const p=f.subarray(h*u),m=new DataView(p.buffer,p.byteOffset,p.length);let g=0;const y=m.getInt16(g,!0);g+=2;const x=m.getInt16(g,!0);g+=2;const A=Number(m.getBigUint64(g,!0));g+=12;const w=m.getInt16(g,!0);d.push({type:y,fieldcount:x,offset:A,field:w})}return d}async searchExtraIndexBlocks(t,r={}){const i=await this.readIndices(r);if(i.length===0)return[];const s=new TextDecoder("utf8"),o=i.map(async a=>{const{offset:c,field:u}=a,l=await this.bbi.read(32,c,r),f=new DataView(l.buffer,l.byteOffset,l.length);let d=0;d+=4;const h=f.getInt32(d,!0);d+=4;const p=f.getInt32(d,!0);d+=4;const m=f.getInt32(d,!0);d+=4,d+=8;const g=async y=>{const x=y,A=4+h*(p+m),S=await this.bbi.read(A,x,r),C=new DataView(S.buffer,S.byteOffset,S.length);let v=0;const T=C.getInt8(v);v+=2;const P=C.getInt16(v,!0);v+=2;const F=[];if(T===0){const k=[];for(let U=0;U<P;U++){const j=s.decode(S.subarray(v,v+p)).replaceAll("\0","");v+=p;const K=Number(C.getBigUint64(v,!0));v+=8,k.push({key:j,offset:K})}let L=0;for(const{key:U,offset:j}of k){if(t.localeCompare(U)<0&&L)return g(L);L=j}return g(L)}else if(T===1){for(let k=0;k<P;k++){const L=s.decode(S.subarray(v,v+p)).replaceAll("\0","");v+=p;const U=Number(C.getBigUint64(v,!0));v+=8;const j=C.getUint32(v,!0);v+=4;const K=C.getUint32(v,!0);v+=4,F.push({key:L,offset:U,length:j,reserved:K})}for(const k of F)if(k.key===t)return{...k,field:u};return}};return g(c+32)});return Nk(await Promise.all(o))}async searchExtraIndex(t,r={}){const i=await this.searchExtraIndexBlocks(t,r);if(i.length===0)return[];const s=await this.getUnzoomedView(r),o=i.map(c=>new At(u=>{s.readFeatures(u,[c],r).catch(l=>{u.error(l)})}).pipe(gb((u,l)=>u.concat(l)),pb(u=>{for(const l of u)l.field=c.field;return u})));return(await db(wk(...o))).filter(c=>{var u;return((u=c.rest)==null?void 0:u.split(" ")[(c.field||0)-3])===t})}}const wb=Object.freeze(Object.defineProperty({__proto__:null,BigBed:Lk,BigWig:Ok},Symbol.toStringTag,{value:"Module"}));function zk(n,e){function t(){this.constructor=n}t.prototype=e.prototype,n.prototype=new t}function Wi(n,e,t,r){this.message=n,this.expected=e,this.found=t,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Wi)}zk(Wi,Error),Wi.buildMessage=function(n,e){var t={literal:function(u){return'"'+i(u.text)+'"'},class:function(u){var l="",f;for(f=0;f<u.parts.length;f++)l+=u.parts[f]instanceof Array?s(u.parts[f][0])+"-"+s(u.parts[f][1]):s(u.parts[f]);return"["+(u.inverted?"^":"")+l+"]"},any:function(u){return"any character"},end:function(u){return"end of input"},other:function(u){return u.description}};function r(u){return u.charCodeAt(0).toString(16).toUpperCase()}function i(u){return u.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(l){return"\\x0"+r(l)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(l){return"\\x"+r(l)})}function s(u){return u.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(l){return"\\x0"+r(l)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(l){return"\\x"+r(l)})}function o(u){return t[u.type](u)}function a(u){var l=new Array(u.length),f,d;for(f=0;f<u.length;f++)l[f]=o(u[f]);if(l.sort(),l.length>0){for(f=1,d=1;f<l.length;f++)l[f-1]!==l[f]&&(l[d]=l[f],d++);l.length=d}switch(l.length){case 1:return l[0];case 2:return l[0]+" or "+l[1];default:return l.slice(0,-1).join(", ")+", or "+l[l.length-1]}}function c(u){return u?'"'+i(u)+'"':"end of input"}return"Expected "+a(n)+" but "+c(e)+" found."};function Uk(n,e){e=e!==void 0?e:{};var t={},r={declaration:lx},i=lx,s="(",o=de("(",!1),a=")",c=de(")",!1),u=function(b,I,N,z){return{type:b,name:I,comment:N,fields:z}},l="simple",f=de("simple",!1),d="object",h=de("object",!1),p="table",m=de("table",!1),g="auto",y=de("auto",!1),x="primary",A=de("primary",!1),w="index",S=de("index",!1),C="unique",v=de("unique",!1),T=function(b,I){return I},P=function(b,I){return b.name&&I.unshift(b),I},F="#",k=de("#",!1),L=";",U=de(";",!1),j=function(b,I,N){return{type:b,name:I,comment:N}},K="[",_=de("[",!1),te="]",ce=de("]",!1),ie=function(b,I,N,z){return{type:b,size:I,name:N,comment:z}},Ne=function(b,I,N,z){return{type:b,vals:I,name:N,comment:z}},ve=",",Kt=de(",",!1),Jt=function(b,I){return I.unshift(b),I},rr="int",Ds=de("int",!1),De="uint",St=de("uint",!1),ut="short",H=de("short",!1),J="ushort",ne=de("ushort",!1),M="byte",Ye=de("byte",!1),he="ubyte",tt=de("ubyte",!1),Xe="float",xn=de("float",!1),Ea="char",Z7=de("char",!1),Wb="string",K7=de("string",!1),qb="lstring",J7=de("lstring",!1),Yb="enum",$7=de("enum",!1),Xb="double",eF=de("double",!1),Zb="bigint",tF=de("bigint",!1),Kb="set",nF=de("set",!1),rF=function(b,I){return b+" "+I},iF=/^[a-zA-Z_]/,sF=Ca([["a","z"],["A","Z"],"_"],!1,!1),Jb=/^[a-zA-Z0-9_]/,$b=Ca([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),oF=function(b){return ox()},ex=/^[^\n\r]/,tx=Ca([`
|
|
722
|
-
`,"\r"],!0,!1),aF=function(b){return b.join("").replace(/^"/,"").replace(/"$/,"")},cF=ax("integer"),nx=/^[0-9]/,rx=Ca([["0","9"]],!1,!1),uF=function(){return parseInt(ox(),10)},lF=ax("whitespace"),ix=/^[ \t\n\r]/,sx=Ca([" "," ",`
|
|
723
|
-
`,"\r"],!1,!1),D=0,nt=0,Tu=[{line:1,column:1}],$t=0,rd=[],W=0,Bu;if("startRule"in e){if(!(e.startRule in r))throw new Error(`Can't start parsing from rule "`+e.startRule+'".');i=r[e.startRule]}function ox(){return n.substring(nt,D)}function de(b,I){return{type:"literal",text:b,ignoreCase:I}}function Ca(b,I,N){return{type:"class",parts:b,inverted:I,ignoreCase:N}}function fF(){return{type:"end"}}function ax(b){return{type:"other",description:b}}function cx(b){var I=Tu[b],N;if(I)return I;for(N=b-1;!Tu[N];)N--;for(I=Tu[N],I={line:I.line,column:I.column};N<b;)n.charCodeAt(N)===10?(I.line++,I.column=1):I.column++,N++;return Tu[b]=I,I}function ux(b,I){var N=cx(b),z=cx(I);return{start:{offset:b,line:N.line,column:N.column},end:{offset:I,line:z.line,column:z.column}}}function X(b){D<$t||(D>$t&&($t=D,rd=[]),rd.push(b))}function hF(b,I,N){return new Wi(Wi.buildMessage(b,I),b,I,N)}function lx(){var b,I,N,z,Q,pe,we,Et,ir,An,sr,wn,or,vn;return b=D,I=se(),I!==t?(N=fx(),N!==t?(z=se(),z!==t?(Q=hx(),Q!==t?(pe=se(),pe!==t?(we=ku(),we!==t?(Et=se(),Et!==t?(n.charCodeAt(D)===40?(ir=s,D++):(ir=t,W===0&&X(o)),ir!==t?(An=se(),An!==t?(sr=dF(),sr!==t?(wn=se(),wn!==t?(n.charCodeAt(D)===41?(or=a,D++):(or=t,W===0&&X(c)),or!==t?(vn=se(),vn!==t?(nt=b,I=u(N,Q,we,sr),b=I):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t),b}function fx(){var b;return n.substr(D,6)===l?(b=l,D+=6):(b=t,W===0&&X(f)),b===t&&(n.substr(D,6)===d?(b=d,D+=6):(b=t,W===0&&X(h)),b===t&&(n.substr(D,5)===p?(b=p,D+=5):(b=t,W===0&&X(m)))),b}function hx(){var b,I,N,z;return b=Ot(),b===t&&(b=D,I=Ot(),I!==t?(N=dx(),N!==t?(I=[I,N],b=I):(D=b,b=t)):(D=b,b=t),b===t&&(b=D,I=Ot(),I!==t?(n.substr(D,4)===g?(N=g,D+=4):(N=t,W===0&&X(y)),N!==t?(I=[I,N],b=I):(D=b,b=t)):(D=b,b=t),b===t&&(b=D,I=Ot(),I!==t?(N=dx(),N!==t?(n.substr(D,4)===g?(z=g,D+=4):(z=t,W===0&&X(y)),z!==t?(I=[I,N,z],b=I):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)))),b}function dx(){var b;return n.substr(D,7)===x?(b=x,D+=7):(b=t,W===0&&X(A)),b===t&&(n.substr(D,5)===w?(b=w,D+=5):(b=t,W===0&&X(S)),b===t&&(n.substr(D,6)===C?(b=C,D+=6):(b=t,W===0&&X(v)))),b}function ku(){var b;return b=px(),b===t&&(b=se()),b}function dF(){var b,I,N,z,Q,pe,we;if(b=D,I=id(),I!==t)if(N=se(),N!==t){for(z=[],Q=D,pe=se(),pe!==t?(we=id(),we!==t?(nt=Q,pe=T(I,we),Q=pe):(D=Q,Q=t)):(D=Q,Q=t);Q!==t;)z.push(Q),Q=D,pe=se(),pe!==t?(we=id(),we!==t?(nt=Q,pe=T(I,we),Q=pe):(D=Q,Q=t)):(D=Q,Q=t);z!==t?(Q=se(),Q!==t?(nt=b,I=P(I,z),b=I):(D=b,b=t)):(D=b,b=t)}else D=b,b=t;else D=b,b=t;return b}function pF(){var b;return n.charCodeAt(D)===35?(b=F,D++):(b=t,W===0&&X(k)),b}function mF(){var b,I,N,z,Q;return b=D,I=se(),I!==t?(N=pF(),N!==t?(z=px(),z!==t?(Q=se(),Q!==t?(I=[I,N,z,Q],b=I):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t),b}function id(){var b,I,N,z,Q,pe,we,Et,ir,An,sr,wn,or,vn;return b=D,I=sd(),I!==t?(N=se(),N!==t?(z=Ot(),z!==t?(Q=se(),Q!==t?(n.charCodeAt(D)===59?(pe=L,D++):(pe=t,W===0&&X(U)),pe!==t?(we=se(),we!==t?(Et=ku(),Et!==t?(nt=b,I=j(I,z,Et),b=I):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t),b===t&&(b=D,I=sd(),I!==t?(N=se(),N!==t?(n.charCodeAt(D)===91?(z=K,D++):(z=t,W===0&&X(_)),z!==t?(Q=se(),Q!==t?(pe=yF(),pe!==t?(we=se(),we!==t?(n.charCodeAt(D)===93?(Et=te,D++):(Et=t,W===0&&X(ce)),Et!==t?(ir=se(),ir!==t?(An=Ot(),An!==t?(sr=se(),sr!==t?(n.charCodeAt(D)===59?(wn=L,D++):(wn=t,W===0&&X(U)),wn!==t?(or=se(),or!==t?(vn=ku(),vn!==t?(nt=b,I=ie(I,pe,An,vn),b=I):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t),b===t&&(b=D,I=sd(),I!==t?(N=se(),N!==t?(n.charCodeAt(D)===40?(z=s,D++):(z=t,W===0&&X(o)),z!==t?(Q=se(),Q!==t?(pe=gF(),pe!==t?(we=se(),we!==t?(n.charCodeAt(D)===41?(Et=a,D++):(Et=t,W===0&&X(c)),Et!==t?(ir=se(),ir!==t?(An=Ot(),An!==t?(sr=se(),sr!==t?(n.charCodeAt(D)===59?(wn=L,D++):(wn=t,W===0&&X(U)),wn!==t?(or=se(),or!==t?(vn=ku(),vn!==t?(nt=b,I=Ne(I,pe,An,vn),b=I):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t)):(D=b,b=t),b===t&&(b=mF()))),b}function gF(){var b,I,N,z,Q,pe,we;if(b=D,I=Ot(),I!==t){for(N=[],z=D,n.charCodeAt(D)===44?(Q=ve,D++):(Q=t,W===0&&X(Kt)),Q!==t?(pe=se(),pe!==t?(we=Ot(),we!==t?(nt=z,Q=T(I,we),z=Q):(D=z,z=t)):(D=z,z=t)):(D=z,z=t);z!==t;)N.push(z),z=D,n.charCodeAt(D)===44?(Q=ve,D++):(Q=t,W===0&&X(Kt)),Q!==t?(pe=se(),pe!==t?(we=Ot(),we!==t?(nt=z,Q=T(I,we),z=Q):(D=z,z=t)):(D=z,z=t)):(D=z,z=t);N!==t?(nt=b,I=Jt(I,N),b=I):(D=b,b=t)}else D=b,b=t;return b}function sd(){var b,I,N,z;return n.substr(D,3)===rr?(b=rr,D+=3):(b=t,W===0&&X(Ds)),b===t&&(n.substr(D,4)===De?(b=De,D+=4):(b=t,W===0&&X(St)),b===t&&(n.substr(D,5)===ut?(b=ut,D+=5):(b=t,W===0&&X(H)),b===t&&(n.substr(D,6)===J?(b=J,D+=6):(b=t,W===0&&X(ne)),b===t&&(n.substr(D,4)===M?(b=M,D+=4):(b=t,W===0&&X(Ye)),b===t&&(n.substr(D,5)===he?(b=he,D+=5):(b=t,W===0&&X(tt)),b===t&&(n.substr(D,5)===Xe?(b=Xe,D+=5):(b=t,W===0&&X(xn)),b===t&&(n.substr(D,4)===Ea?(b=Ea,D+=4):(b=t,W===0&&X(Z7)),b===t&&(n.substr(D,6)===Wb?(b=Wb,D+=6):(b=t,W===0&&X(K7)),b===t&&(n.substr(D,7)===qb?(b=qb,D+=7):(b=t,W===0&&X(J7)),b===t&&(n.substr(D,4)===Yb?(b=Yb,D+=4):(b=t,W===0&&X($7)),b===t&&(n.substr(D,6)===Xb?(b=Xb,D+=6):(b=t,W===0&&X(eF)),b===t&&(n.substr(D,6)===Zb?(b=Zb,D+=6):(b=t,W===0&&X(tF)),b===t&&(n.substr(D,3)===Kb?(b=Kb,D+=3):(b=t,W===0&&X(nF)),b===t&&(b=D,I=fx(),I!==t?(N=se(),N!==t?(z=hx(),z!==t?(nt=b,I=rF(I,z),b=I):(D=b,b=t)):(D=b,b=t)):(D=b,b=t))))))))))))))),b}function yF(){var b;return b=bF(),b===t&&(b=Ot()),b}function Ot(){var b,I,N,z,Q;if(b=D,I=D,iF.test(n.charAt(D))?(N=n.charAt(D),D++):(N=t,W===0&&X(sF)),N!==t){for(z=[],Jb.test(n.charAt(D))?(Q=n.charAt(D),D++):(Q=t,W===0&&X($b));Q!==t;)z.push(Q),Jb.test(n.charAt(D))?(Q=n.charAt(D),D++):(Q=t,W===0&&X($b));z!==t?(N=[N,z],I=N):(D=I,I=t)}else D=I,I=t;return I!==t&&(nt=b,I=oF()),b=I,b}function px(){var b,I,N;for(b=D,I=[],ex.test(n.charAt(D))?(N=n.charAt(D),D++):(N=t,W===0&&X(tx));N!==t;)I.push(N),ex.test(n.charAt(D))?(N=n.charAt(D),D++):(N=t,W===0&&X(tx));return I!==t&&(nt=b,I=aF(I)),b=I,b}function bF(){var b,I,N,z;if(W++,b=D,I=se(),I!==t){if(N=[],nx.test(n.charAt(D))?(z=n.charAt(D),D++):(z=t,W===0&&X(rx)),z!==t)for(;z!==t;)N.push(z),nx.test(n.charAt(D))?(z=n.charAt(D),D++):(z=t,W===0&&X(rx));else N=t;N!==t?(nt=b,I=uF(),b=I):(D=b,b=t)}else D=b,b=t;return W--,b===t&&(I=t,W===0&&X(cF)),b}function se(){var b,I;for(W++,b=[],ix.test(n.charAt(D))?(I=n.charAt(D),D++):(I=t,W===0&&X(sx));I!==t;)b.push(I),ix.test(n.charAt(D))?(I=n.charAt(D),D++):(I=t,W===0&&X(sx));return W--,b===t&&(I=t,W===0&&X(lF)),b}if(Bu=i(),Bu!==t&&D===n.length)return Bu;throw Bu!==t&&D<n.length&&X(fF()),hF(rd,$t<n.length?n.charAt($t):null,$t<n.length?ux($t,$t+1):ux($t,$t))}const vb={SyntaxError:Wi,parse:Uk},Yh=Object.fromEntries(Object.entries(Object.freeze(Object.defineProperty({__proto__:null,bigChain:`table bigChain
|
|
718
|
+
`:"";return be`${l}${o}`}class Za extends M2{constructor(t,e,r,i,s,o){super(t,e,r,i,s,o),this.spec=t}async initializeChildren(){}*[Symbol.iterator](){}visit(t){let e;try{e=t(this)}catch(r){throw r.view=this,r}if(e===Wa)return e;if(e!==k2){t.beforeChildren&&t.beforeChildren(this);for(const r of this){const i=r.visit(t);if(i===Wa)return i}t.afterChildren&&t.afterChildren(this),t.postOrder&&t.postOrder(this)}}findDescendantByPath(t){for(const e of this)if(e.name===t[0]){if(t.length==1)return e;if(e instanceof Za)return e.findDescendantByPath(t.slice(1))}}findChildByName(t){for(const e of this)if(e.name===t)return e}findDescendantByName(t){let e;return this.visit(r=>{if(r.name==t)return e=r,Wa}),e}getDefaultResolution(t,e){return"shared"}}function ZM(n){a5(n),c5(n)}function ny(n){n.getDescendants().forEach(t=>t.configureViewOpacity())}class ry{constructor(t,e){this.container=t,this.options=e}async addChildSpec(t,e){var f,h;const{specs:r,insertAt:i}=this.options.getChildSpecs(),s=e??r.length,o=((h=(f=this.options).defaultName)==null?void 0:h.call(f,s,t))??"child"+r.length,a=await this.container.context.createOrImportView(t,this.container,this.container,o);i(s,t);const l=this.options.insertView(a,s);this.options.prepareView&&await this.options.prepareView(a,s,l),ny(a);const{dataSources:c,graphicsPromises:u}=X2(a,this.container.context.dataFlow);return await Z2(a,c),await N2(u),this.options.requestLayout!==!1&&(this.container.invalidateSizeCache(),this.container.context.requestLayoutReflow()),a}async removeChildAt(t){const{removeAt:e}=this.options.getChildSpecs();this.options.removeView(t),e(t),this.options.afterRemove&&await this.options.afterRemove(t),this.options.requestLayout!==!1&&(this.container.invalidateSizeCache(),this.container.context.requestLayoutReflow())}}class Cs extends Za{constructor(e,r,i,s,o,a){super(e,r,i,s,o,{layersChildren:!0,...a});D(this,_c);D(this,_t,[]);this.spec=e,this.needsAxes={x:!0,y:!0}}async initializeChildren(){F(this,_t,await Promise.all(this.spec.layer.map((e,r)=>this.context.createOrImportView(e,this,this,"grid"+r,i=>{if(!Bd(i)&&!xd(i))throw new mr("LayerView accepts only unit or layer specs as children!",this)}))))}async addChildSpec(e,r){return P(this,_c,J0).call(this).addChildSpec(e,r)}async removeChildAt(e){await P(this,_c,J0).call(this).removeChildAt(e)}get children(){return m(this,_t).slice()}*[Symbol.iterator](){for(const e of m(this,_t))yield e}render(e,r,i={}){if(super.render(e,r,i),!!this.isConfiguredVisible()){e.pushView(this,r);for(const s of m(this,_t))s.render(e,r,i);e.popView(this)}}propagateInteractionEvent(e){this.handleInteractionEvent(void 0,e,!0);for(let r=m(this,_t).length-1;r>=0;r--)if(m(this,_t)[r].propagateInteractionEvent(e),e.stopped)return;this.handleInteractionEvent(void 0,e,!1)}}_t=new WeakMap,_c=new WeakSet,J0=function(){return new ry(this,{getChildSpecs:()=>({specs:this.spec.layer,insertAt:(e,r)=>{this.spec.layer.splice(e,0,r)},removeAt:e=>{this.spec.layer.splice(e,1)}}),insertView:(e,r)=>(e.layoutParent??(e.layoutParent=this),m(this,_t).splice(r,0,e),e),removeView:e=>{const r=m(this,_t)[e];if(!r)throw new Error("Child index out of range!");r.disposeSubtree(),m(this,_t).splice(e,1)},defaultName:e=>"layer"+e})};class iy{constructor(t,e){this.n=t,this.maxCols=e??1/0}get nRows(){return this.maxCols==1/0?1:Math.ceil(this.n/this.maxCols)}get nCols(){return Math.min(this.n,this.maxCols)}get rowIndices(){const t=[],e=this.nCols,r=this.nRows;for(let i=0;i<r;i++){const s=[];t.push(s);for(let o=0;o<e;o++){const a=i*e+o;a<this.n&&s.push(a)}}return t}get colIndices(){const t=[],e=this.nCols,r=this.nRows;for(let i=0;i<e;i++){const s=[];t.push(s);for(let o=0;o<r;o++){const a=o*e+i;a<this.n&&s.push(a)}}return t}getCellIndex(t,e){let r=0;if(this.maxCols==1/0)r=e==0?t:void 0;else{if(t>=this.maxCols)return;r=e*this.nCols+t}return r<this.n?r:void 0}getCellCoords(t){if(!(t<0||t>=this.n))return[t%this.nCols,Math.floor(t/this.nCols)]}}function Ln(n){return()=>n}const tn=class tn{static create(t,e,r,i){return new tn(Ln(t),Ln(e),Ln(r),Ln(i))}_offset(t,e){const r=this["_"+t];if(e===0)return r;switch(typeof e){case"number":return()=>r()+e;case"function":return()=>r()+e();default:throw new Error("Not a number of function")}}_passThrough(t){return this._offset(t,0)}constructor(t,e,r,i){this._x=t,this._y=e,this._width=r,this._height=i}get x(){return this._x()}get y(){return this._y()}get width(){return this._width()}get height(){return this._height()}get x2(){return this._x()+this._width()}get y2(){return this._y()+this._height()}equals(t){return t?this===t||this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height:!1}modify(t){if(!Object.keys(t).length)return this;const e=r=>{const i=t[r];return typeof i=="number"?Ln(i):typeof i=="function"?i:this._passThrough(r)};return new tn(e("x"),e("y"),e("width"),e("height"))}translate(t,e){return t===0&&e===0?this:new tn(this._offset("x",t),this._offset("y",e),this._passThrough("width"),this._passThrough("height"))}translateBy(t){return this.translate(t.x,t.y)}expand(t,e=1){return t.left==0&&t.top==0&&t.right==0&&t.bottom==0?this:new tn(t.left?this._offset("x",-t.left*e):this._passThrough("x"),t.top?this._offset("y",-t.top*e):this._passThrough("y"),t.width?this._offset("width",t.width*e):this._passThrough("width"),t.height?this._offset("height",t.height*e):this._passThrough("height"))}shrink(t){return this.expand(t,-1)}intersect(t){return this===t||t==null?this:new tn(()=>Math.max(this.x,t.x),()=>Math.max(this.y,t.y),()=>Math.min(this.x2,t.x2)-Math.max(this.x,t.x),()=>Math.min(this.y2,t.y2)-Math.max(this.y,t.y))}union(t){return this===t||t==null?this:new tn(()=>Math.min(this.x,t.x),()=>Math.min(this.y,t.y),()=>Math.max(this.x2,t.x2)-Math.min(this.x,t.x),()=>Math.max(this.y2,t.y2)-Math.min(this.y,t.y))}isDefined(){return this.width>=0&&this.height>=0}flatten(){return new tn(Ln(this.x),Ln(this.y),Ln(this.width),Ln(this.height))}containsPoint(t,e){return t>=this.x&&t<this.x2&&e>=this.y&&e<this.y2}normalizePoint(t,e,r=!1){const i={x:(t-this.x)/this.width,y:(e-this.y)/this.height};return r&&(i.y=1-i.y),i}denormalizePoint(t,e,r=!1){return r&&(e=1-e),{x:this.x+t*this.width,y:this.y+e*this.height}}toString(){return`Rectangle: x: ${this.x}, y: ${this.y}, width: ${this.width}, height: ${this.height}`}toRoundedString(){return`Rectangle: x: ${Math.round(this.x)}, y: ${Math.round(this.y)}, width: ${Math.round(this.width)}, height: ${Math.round(this.height)}`}};j(tn,"ZERO",tn.create(0,0,0,0));let St=tn;const $M="chromosome_ticks_and_labels",eR={x:"width",y:"height"};function Id(n){return n=="x"?"y":"x"}const Ju={x:["bottom","top"],y:["left","right"]},Ed=Object.fromEntries(Object.entries(Ju).map(([n,t])=>t.map(e=>[e,n])).flat(1));function yr(n){return Ed[n]}class sy extends Cs{constructor(t,e,r,i,s,o){const a=e=="locus",l={...a?nR:oy,...tR(e,t),...t};super(a?rR(l,e):ay(l,e),r,i,s,`axis_${t.orient}`,{blockEncodingInheritance:!0,contributesToScaleDomain:!1,...o}),this.axisProps=l}getSize(){const t={px:this.getPerpendicularSize()},e={grow:1};return Ed[this.axisProps.orient]=="x"?new Cr(e,t):new Cr(t,e)}getPerpendicularSize(){return bd(this.axisProps)}isPickingSupported(){return!1}}function bd(n){const t=yr(n.orient);let e=n.ticks&&n.tickSize||0;return n.labels&&(e+=n.labelPadding,t=="x"?e+=n.labelFontSize:e+=30),n.title&&(e+=n.titlePadding+n.titleFontSize),e=Math.min(n.maxExtent||1/0,Math.max(n.minExtent||0,e)),e}const oy={values:null,minExtent:20,maxExtent:1/0,offset:0,domain:!0,domainWidth:1,domainColor:"gray",domainDash:null,domainDashOffset:0,domainCap:"square",ticks:!0,tickSize:5,tickWidth:1,tickColor:"gray",tickDash:null,tickDashOffset:0,tickCap:"square",tickCount:null,tickMinStep:null,labels:!0,labelAlign:"center",labelBaseline:"middle",labelPadding:4,labelFontSize:10,labelLimit:180,labelColor:"black",format:null,titleColor:"black",titleFont:"sans-serif",titleFontSize:10,titlePadding:3};function tR(n,t){const e=t.orient,r=n=="nominal"||n=="ordinal";let i="center",s="middle",o=t.labelAngle??((e=="top"||e=="bottom")&&r?-90:0);switch(e){case"left":i="right";break;case"right":i="left";break;case"top":case"bottom":Math.abs(o)>30?(i=o>0==(e=="bottom")?"left":"right",s="middle"):s=e=="top"?"alphabetic":"top";break}return{labelAlign:i,labelAngle:o,labelBaseline:s}}function ay(n,t){const e={...n,extent:bd(n)},r=yr(e.orient),i=Id(r),s=e.orient=="bottom"||e.orient=="right"?1:-1,o=e.orient=="bottom"||e.orient=="left"?1:0,a=()=>({name:"domain",data:{values:[{}]},mark:{type:"rule",clip:!1,strokeDash:e.domainDash,strokeCap:e.domainCap,color:e.domainColor,[i]:o,size:e.domainWidth}}),l=()=>({name:"labels",mark:{type:"text",clip:!1,align:e.labelAlign,angle:e.labelAngle,baseline:e.labelBaseline,[i+"Offset"]:(e.tickSize+e.labelPadding)*s,[i]:o,size:e.labelFontSize,color:e.labelColor,minBufferSize:1500},encoding:{[r]:{field:"value",type:t},text:{field:"label"}}}),c=()=>({name:"ticks",mark:{type:"rule",clip:!1,strokeDash:e.tickDash,strokeCap:e.tickCap,color:e.tickColor,size:e.tickWidth,minBufferSize:300},encoding:{[i]:{value:o},[i+"2"]:{value:o-e.tickSize/e.extent*(o?1:-1)}}}),u=()=>({name:"title",data:{values:[{}]},mark:{type:"text",clip:!1,align:"center",baseline:e.orient=="bottom"?"bottom":"top",angle:[0,90,0,-90][["top","right","bottom","left"].indexOf(e.orient)],text:e.title,color:e.titleColor,[r]:.5,[i]:1-o}}),f=()=>{const A={name:"ticks_and_labels",encoding:{[r]:{field:"value",type:t}},layer:[]};return e.ticks&&A.layer.push(c()),e.labels&&A.layer.push(l()),A},h={resolve:{scale:{[r]:"forced"}},[eR[Id(r)]]:e.extent,data:{lazy:{type:"axisTicks",channel:r,axis:n}},layer:[]};return e.domain&&h.layer.push(a()),(e.ticks||e.labels)&&h.layer.push(f()),e.title&&h.layer.push(u()),h}const nR={...oy,chromTicks:!0,chromTickSize:18,chromTickWidth:1,chromTickColor:"#989898",chromTickDash:[4,2],chromTickDashOffset:1,chromLabels:!0,chromLabelFontSize:13,chromLabelFontWeight:"normal",chromLabelFontStyle:"normal",chromLabelColor:"black",chromLabelAlign:"left",chromLabelPadding:7};function rR(n,t){const e={...n,extent:bd(n)},r=yr(e.orient),i=Id(r),s=e.orient=="bottom"||e.orient=="left"?1:0,o=()=>({name:"chromosome_ticks",mark:{type:"rule",strokeDash:n.chromTickDash,strokeDashOffset:n.chromTickDashOffset,[i]:s,[i+"2"]:s-e.chromTickSize/e.extent*(s?1:-1),color:n.chromTickColor,size:e.chromTickWidth}}),a=()=>{let u;switch(e.orient){case"top":u={y:0,angle:0,paddingX:4,dy:-e.chromLabelPadding,viewportEdgeFadeWidthLeft:20,viewportEdgeFadeWidthRight:20,viewportEdgeFadeDistanceRight:-10,viewportEdgeFadeDistanceLeft:-20};break;case"bottom":u={y:1,angle:0,paddingX:4,dy:e.chromLabelPadding+e.chromLabelFontSize*.73,viewportEdgeFadeWidthLeft:20,viewportEdgeFadeWidthRight:20,viewportEdgeFadeDistanceRight:-10,viewportEdgeFadeDistanceLeft:-20};break;case"left":u={x:1,angle:-90,paddingY:4,dy:-e.chromLabelPadding,viewportEdgeFadeWidthBottom:20,viewportEdgeFadeWidthTop:20,viewportEdgeFadeDistanceBottom:-20,viewportEdgeFadeDistanceTop:-10};break;case"right":u={x:0,angle:90,align:"right",paddingY:4,dy:-e.chromLabelPadding};break;default:u={}}return{name:"chromosome_labels",mark:{type:"text",size:e.chromLabelFontSize,font:e.chromLabelFont,fontWeight:e.chromLabelFontWeight,fontStyle:e.chromLabelFontStyle,color:e.chromLabelColor,align:n.chromLabelAlign,baseline:"alphabetic",clip:!1,...u},encoding:{[r+"2"]:{field:"continuousEnd",type:t},text:{field:"name"}}}};let l;switch(e.orient){case"bottom":case"top":l={};break;case"left":l={labelAngle:-90,labelAlign:"center",labelPadding:6};break;case"right":l={labelAngle:90,labelAlign:"center",labelPadding:6};break;default:l={}}const c=ay({...n,...l},t);if(n.chromTicks||n.chromLabels){const u={name:$M,data:{lazy:{type:"axisGenome",channel:yr(e.orient)}},encoding:{[r]:{field:"continuousStart",type:t,band:0}},layer:[]};if(n.chromTicks&&u.layer.push(o()),n.chromLabels){u.layer.push(a());let f;c.layer.filter(h=>h.name=="ticks_and_labels").forEach(h=>h.layer.filter(A=>A.name=="labels").forEach(A=>{f=A.mark})),f&&(e.orient=="top"||e.orient=="bottom"?(f.viewportEdgeFadeWidthLeft=30,f.viewportEdgeFadeDistanceLeft=40):(f.viewportEdgeFadeWidthBottom=30,f.viewportEdgeFadeDistanceBottom=40))}c.layer.push(u)}return c}class iR{constructor(t){D(this,Fi);D(this,Dr,0);D(this,kr,0);F(this,Fi,new Array(t))}push(t){m(this,Fi)[m(this,Dr)]=t,F(this,Dr,(m(this,Dr)+1)%this.size),F(this,kr,Math.min(m(this,kr)+1,this.size))}get(){const t=m(this,Fi);return m(this,kr)<this.size?t.slice(0,m(this,kr)):t.slice(m(this,Dr),this.size).concat(t.slice(0,m(this,Dr)))}get size(){return m(this,Fi).length}get length(){return m(this,kr)}}Fi=new WeakMap,Dr=new WeakMap,kr=new WeakMap;class Et{static fromMouseEvent(t){return new Et(t.clientX,t.clientY)}constructor(t,e){this.x=t,this.y=e}subtract(t){return new Et(this.x-t.x,this.y-t.y)}add(t){return new Et(this.x-t.x,this.y-t.y)}multiply(t){return new Et(this.x*t,this.y*t)}get length(){return Math.sqrt(this.x**2+this.y**2)}equals(t){return t?t===this||t.x===this.x&&t.y===this.y:!1}}let Ai,cy=0;function ly(){return performance.now()-cy<50}function sR(n){return function(...t){cy=performance.now(),n(...t)}}function oR(n,t,e,r,i){if(e=sR(e),n.type=="wheel"){n.uiEvent.preventDefault();const s=n.uiEvent,o=s.deltaMode?120:1;if(!s.deltaX&&!s.deltaY)return;Ai==null||Ai.stop();let{x:a,y:l}=n.point;if(r){const c=r.mark.encoders;c.x&&!c.x2&&!c.x.constant&&(a=+c.x(r.datum)*t.width+t.x),c.y&&!c.y2&&!c.y.constant&&(l=(1-+c.y(r.datum))*t.height+t.y)}Math.abs(s.deltaX)<Math.abs(s.deltaY)?e({x:a,y:l,xDelta:0,yDelta:0,zDelta:s.deltaY*o/300}):e({x:a,y:l,xDelta:-s.deltaX*o,yDelta:0,zDelta:0})}else if(n.type=="mousedown"&&n.mouseEvent.button===0){Ai&&Ai.stop();const s=new iR(30),o=n.mouseEvent;o.preventDefault();let a=Et.fromMouseEvent(o);const l=f=>{const h=Et.fromMouseEvent(f);s.push({point:h,timestamp:performance.now()});const A=h.subtract(a);e({x:a.x,y:a.y,xDelta:A.x,yDelta:A.y,zDelta:0}),a=h},c=()=>{const h=performance.now(),A=s.get().filter(b=>h-b.timestamp<160);if(A.length<5||!i||aR(A))return;const d=A.at(-1),g=A[0],p=d.point.subtract(g.point).multiply(1/(d.timestamp-g.timestamp));let C=a.x,w=a.y;Ai=wd(i,b=>{e({x:b.x,y:b.y,xDelta:C-b.x,yDelta:w-b.y,zDelta:0}),C=b.x,w=b.y},150,.5,{x:C,y:w}),Ai({x:a.x-p.x*250,y:a.y-p.y*250})},u=()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",u),c()};document.addEventListener("mouseup",u,!1),document.addEventListener("mousemove",l,!1)}}function aR(n){const t=n[Math.floor(n.length/2)],e=t.point.subtract(n[0].point).multiply(t.timestamp-n[0].timestamp),r=n.at(-1).point.subtract(t.point).multiply(n.at(-1).timestamp-t.timestamp),i=e.length;return r.length/i<.4}class cR extends Cs{constructor(t,e,r,i,s,o){const l={...e=="locus"?lR:uy,...t};super(hR(l,e),r,i,s,`axisGrid_${t.orient}`,{blockEncodingInheritance:!0,contributesToScaleDomain:!1,...o}),this.axisProps=l}getOrient(){return this.axisProps.orient}isPickingSupported(){return!1}}const uy={values:null,grid:!1,gridCap:"butt",gridColor:"lightgray",gridDash:null,gridOpacity:1,gridWidth:1,tickCount:null,tickMinStep:null},lR={...uy,chromGrid:!1,chromGridCap:"butt",chromGridColor:"gray",chromGridDash:[1,5],chromGridOpacity:1,chromGridWidth:1};function uR(n,t){const e=n,r=yr(e.orient);return{name:"grid_lines",data:{lazy:{type:"axisTicks",channel:r,axis:n}},mark:{type:"rule",strokeDash:e.gridDash,strokeCap:e.gridCap,color:e.gridColor,size:e.gridWidth,opacity:e.gridOpacity,minBufferSize:300},encoding:{[r]:{field:"value",type:t}}}}function fR(n,t){const e=n,r=yr(e.orient);return{name:"chromosome_lines",data:{lazy:{type:"axisGenome",channel:r}},mark:{type:"rule",strokeDash:e.chromGridDash,strokeCap:e.chromGridCap,color:e.chromGridColor,size:e.chromGridWidth,opacity:e.chromGridOpacity},encoding:{[r]:{field:"continuousStart",type:t,band:0}}}}function AR(n,t){const e=n,r=yr(e.orient);return{name:"chromosome_fill",data:{lazy:{type:"axisGenome",channel:r}},mark:{type:"rect"},encoding:{[r]:{field:"continuousStart",type:t,band:0},[r+"2"]:{field:"continuousEnd",band:0},fill:{field:"odd",type:"nominal",scale:{domain:[!1,!0],range:[e.chromGridFillEven??"white",e.chromGridFillOdd??"white"]}},opacity:{field:"odd",type:"nominal",scale:{type:"ordinal",domain:[!1,!0],range:[e.chromGridFillEven?1:0,e.chromGridFillOdd?1:0]}}}}}function hR(n,t){const e={...n},r=[];return e.chromGrid&&(e.chromGridFillOdd||e.chromGridFillEven)&&r.push(AR(e,t)),e.chromGrid&&e.chromGridOpacity>0&&r.push(fR(e,t)),e.grid&&e.gridOpacity>0&&r.push(uR(e,t)),{name:"grid_layers",configurableVisibility:!1,resolve:{scale:{[yr(n.orient)]:"forced",fill:"independent",opacity:"independent"}},layer:r}}const fy={anchor:"middle",frame:"group",offset:10,orient:"top",align:void 0,angle:0,baseline:"alphabetic",dx:0,dy:0,color:void 0,font:void 0,fontSize:12,fontStyle:"normal",fontWeight:"normal"},dR={orient:"left",anchor:"middle",align:"right",baseline:"middle",angle:0,fontSize:12},gR={orient:"top",anchor:"start",align:"left",baseline:"top",offset:-10,dx:10,fontSize:12},pR={start:0,middle:.5,end:1},mR={start:"left",middle:"center",end:"right"};function CR(n){if(!n)return;const t=Ce(n)?{text:n}:n;if(!t.text||t.orient=="none")return;const e={"track-title":dR,overlay:gR}[t.style]??{},r={...fy,...e,...t};let i={},s={x:0,y:0};const o=pR[r.anchor??"middle"];switch(r.orient){case"top":s={x:o,y:1},i={baseline:"alphabetic",angle:0};break;case"right":s={x:1,y:1-o},i={baseline:"alphabetic",angle:90};break;case"bottom":s={x:o,y:0},i={baseline:"top",angle:0};break;case"left":s={x:0,y:o},i={baseline:"alphabetic",angle:-90};break}const a={...fy,...i,...e,...t},l={xOffset:0,yOffset:0};switch(r.orient){case"top":l.yOffset=-a.offset;break;case"right":l.xOffset=a.offset;break;case"bottom":l.yOffset=a.offset;break;case"left":l.xOffset=-a.offset;break}return{configurableVisibility:!1,data:{values:[{}]},mark:{type:"text",tooltip:null,clip:!1,...s,...l,text:a.text,align:a.align??mR[a.anchor],angle:a.angle,baseline:a.baseline,dx:a.dx,dy:a.dy,color:a.color,font:a.font,size:a.fontSize,fontStyle:a.fontStyle,fontWeight:a.fontWeight}}}class Ay extends Qt{constructor(e,r,i={}){const s={scrollbarSize:8,scrollbarPadding:2,scrollbarMinLength:20};super({params:[{name:"scrollbarOpacity",value:1}],opacity:{expr:"scrollbarOpacity"},data:{values:[{}]},mark:{type:"rect",fill:"#b0b0b0",fillOpacity:.6,stroke:"white",strokeWidth:1,strokeOpacity:1,cornerRadius:5,clip:!1},configurableVisibility:!1},e.layoutParent.context,e.layoutParent,e.view,"scrollbar-"+r,{blockEncodingInheritance:!0});D(this,me);D(this,Fr);D(this,Vc,St.ZERO);D(this,kt,St.ZERO);D(this,mo,St.ZERO);j(this,"viewportOffset",0);D(this,Co);this.config=s,F(this,Fr,r),F(this,Co,i.onViewportOffsetChange);const o=this.config.scrollbarPadding,a=this.config.scrollbarSize;F(this,Vc,m(this,Fr)=="vertical"?new St(()=>m(this,kt).x+m(this,kt).width-a-o,()=>m(this,kt).y+o+this.scrollOffset,()=>a,()=>P(this,me,Tf).call(this)):new St(()=>m(this,kt).x+o+this.scrollOffset,()=>m(this,kt).y+m(this,kt).height-a-o,()=>P(this,me,Tf).call(this),()=>a)),P(this,me,K0).call(this,this.viewportOffset),this.addInteractionEventListener("mousedown",(l,c)=>{if(c.stopPropagation(),P(this,me,Al).call(this)<=0)return;const u=g=>r=="vertical"?g.clientY:g.clientX;c.mouseEvent.preventDefault();const f=this.scrollOffset,h=u(c.mouseEvent),A=g=>{const p=P(this,me,Al).call(this);if(p<=0)return;const C=$i(u(g)-h+f,0,p);this.interpolateViewportOffset({x:P(this,me,cb).call(this,C)})},d=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",d)};document.addEventListener("mouseup",d,!1),document.addEventListener("mousemove",A,!1)})}get scrollOffset(){return P(this,me,ab).call(this,this.viewportOffset)}setViewportOffset(e,{notify:r=!0,syncSmoother:i=!1}={}){this.viewportOffset=$i(e,0,P(this,me,Pf).call(this)),i&&P(this,me,K0).call(this,this.viewportOffset),r&&m(this,Co)&&m(this,Co).call(this,this.viewportOffset)}render(e,r,i){super.render(e,m(this,Vc),i)}updateScrollbar(e,r){F(this,kt,e.flatten()),F(this,mo,r),this.setViewportOffset(this.viewportOffset,{notify:!1,syncSmoother:!0})}}Fr=new WeakMap,Vc=new WeakMap,kt=new WeakMap,mo=new WeakMap,Co=new WeakMap,me=new WeakSet,ob=function(){const e=m(this,Fr)=="horizontal"?"width":"height",r=m(this,kt)[e],i=m(this,mo)[e];return i>0?Math.min(1,r/i):1},q0=function(){const e=m(this,Fr)=="horizontal"?"width":"height";return Math.max(0,m(this,kt)[e]-2*this.config.scrollbarPadding)},Tf=function(){const e=P(this,me,q0).call(this),r=P(this,me,ob).call(this)*e,i=this.config.scrollbarMinLength;return Math.min(e,Math.max(i,r))},Al=function(){return Math.max(0,P(this,me,q0).call(this)-P(this,me,Tf).call(this))},ab=function(e){const r=P(this,me,Pf).call(this),i=P(this,me,Al).call(this);return r<=0||i<=0?0:e/r*i},cb=function(e){const r=P(this,me,Pf).call(this),i=P(this,me,Al).call(this);return r<=0||i<=0?0:e/i*r},Pf=function(){const e=m(this,Fr)=="horizontal"?"width":"height";return Math.max(0,m(this,mo)[e]-m(this,kt)[e])},K0=function(e){this.interpolateViewportOffset=wd(this.context.animator,r=>{this.setViewportOffset(r.x,{notify:!0,syncSmoother:!1})},35,.4,{x:e})};class yR extends Cs{constructor(e,r,i={}){const s=r(),o=Object.keys(s.intervals);if(Wr.every(u=>!o.includes(u)))throw new Error("SelectionRect requires at least one of the channels 'x' or 'y' to be present in the selection.");const a={name:"selectionRect",configurableVisibility:!1,resolve:{scale:{x:"forced",y:"forced"}},data:{values:hy(r())},encoding:{},layer:[]};o.includes("x")&&(a.encoding.x={field:"_x",type:null,title:null},a.encoding.x2={field:"_x2"}),o.includes("y")&&(a.encoding.y={field:"_y",type:null,title:null},a.encoding.y2={field:"_y2"}),a.layer.push({name:"selectionRectRect",mark:{type:"rect",clip:!0,fill:"#808080",fillOpacity:.05,stroke:"black",strokeWidth:1,strokeOpacity:.2,...i}});const l=u=>{const f=e.view.getScaleResolution(u);return`format(datum._${u}2 - datum._${u}, '.3s')`+(f.type==="locus"?" + 'b'":"")},c=i.measure=="inside"?9:i.measure=="outside"?-9:0;o.includes("x")&&c!=0&&a.layer.push({name:"selectionRectTextX",mark:{type:"text",align:"center",paddingX:5,dy:c,tooltip:null},encoding:{text:{expr:l("x")},y:o.includes("y")?{field:"_y2",type:null,title:null}:{value:1},y2:null}}),o.includes("y")&&c!=0&&a.layer.push({name:"selectionRectTextY",mark:{type:"text",align:"center",paddingY:5,dy:c,tooltip:null,angle:-90},encoding:{text:{expr:l("y")},x2:null}});super(a,e.layoutParent.context,e.layoutParent,e.view,"selectionRect",{blockEncodingInheritance:!0,contributesToScaleDomain:!1});j(this,"_selectionExpr");j(this,"_selectionListener");this._selectionExpr=r,this._selectionListener=()=>{var h;const u=r(),f=(h=this.flowHandle)==null?void 0:h.dataSource;if(!f)throw new Error("Cannot find selection rect data source handle!");f.updateDynamicData(hy(u))},r.addListener(this._selectionListener)}dispose(){this._selectionExpr.removeListener(this._selectionListener),super.dispose()}}function hy(n){const t=n.intervals.x,e=n.intervals.y;return!t&&!e?[]:[{_x:t==null?void 0:t[0],_x2:t==null?void 0:t[1],_y:e==null?void 0:e[0],_y2:e==null?void 0:e[1]}]}class wR{constructor(t,e,r){D(this,Sf);if(this.layoutParent=e,this.view=t,this.serial=r,this.background=void 0,this.backgroundStroke=void 0,this.axes={},this.gridLines={},this.scrollbars={},this.selectionRect=void 0,this.title=void 0,this.coords=St.ZERO,t.needsAxes.x||t.needsAxes.y){const i=t.spec,s="view"in i?i==null?void 0:i.view:void 0,o=IR(s);o&&(this.background=new Qt(o,e.context,e,t,"background"+r,{blockEncodingInheritance:!0}));const a=ER(s);a&&(this.backgroundStroke=new Qt(a,e.context,e,t,"backgroundStroke"+r,{blockEncodingInheritance:!0}));const l=CR(t.spec.title);if(l){const c=new Qt(l,e.context,e,t,"title"+r,{blockEncodingInheritance:!0});this.title=c}}t.spec.viewportWidth!=null&&(this.scrollbars.horizontal=new Ay(this,"horizontal")),t.spec.viewportHeight!=null&&(this.scrollbars.vertical=new Ay(this,"vertical")),P(this,Sf,lb).call(this)}*getChildren(){this.background&&(yield this.background),this.backgroundStroke&&(yield this.backgroundStroke),this.title&&(yield this.title),yield*Object.values(this.axes),yield*Object.values(this.gridLines),yield this.view,yield*Object.values(this.scrollbars),this.selectionRect&&(yield this.selectionRect)}async createAxes(){this.disposeAxisViews();const{view:t,axes:e,gridLines:r}=this,i=(a,l)=>{const c=a.getAxisProps();if(c===null)return;const u=c?{...c}:{};if(!u.orient){for(const f of Ju[l])if(!e[f]){u.orient=f;break}if(!u.orient)throw new Error("No slots available for an axis! Perhaps a LayerView has more than two children?")}if(u.title??(u.title=a.getTitle()),!Ju[l].includes(u.orient))throw new Error(`Invalid axis orientation "${u.orient}" on channel "${l}"!`);return u},s=async(a,l,c)=>{const u=i(a,l);if(u){if(e[u.orient])throw new Error(`An axis with the orient "${u.orient}" already exists!`);const f=new sy(u,a.scaleResolution.type,this.layoutParent.context,this.layoutParent,c);e[u.orient]=f,await f.initializeChildren()}},o=async(a,l,c)=>{const u=i(a,l);if(u&&(u.grid||u.chromGrid)){const f=new cR(u,a.scaleResolution.type,this.layoutParent.context,this.layoutParent,c);r[u.orient]=f,await f.initializeChildren()}};for(const a of["x","y"])if(t.needsAxes[a]){const l=t.resolutions.axis[a];if(!l)continue;await s(l,a,t)}for(const a of["x","y"])if(t.needsAxes[a]&&t.getConfiguredOrDefaultResolution(a,"axis")!="excluded"){const l=t.getAxisResolution(a);if(!l)continue;await o(l,a,t)}if(t instanceof Cs){for(const a of t)for(const[l,c]of Object.entries(a.resolutions.axis)){const u=c.getAxisProps();u&&u.orient&&await s(c,l,a)}for(const a of t)for(const[l,c]of Object.entries(a.resolutions.axis)){const u=c.getAxisProps();u&&!u.orient&&await s(c,l,a)}}[...Object.values(e),...Object.values(r)].forEach(a=>a.visit(l=>{l instanceof Qt&&l.resolve("scale")}))}disposeAxisViews(){for(const t of Object.values(this.axes))t.disposeSubtree();for(const t of Object.values(this.gridLines))t.disposeSubtree();this.axes={},this.gridLines={}}getOverhang(){const t=e=>{const r=this.axes[e];return r?Math.max(r.getPerpendicularSize()+(r.axisProps.offset??0),0):0};return new ot(t("top"),t("right"),t("bottom"),t("left")).add(this.view.getOverhang())}getOverhangAndPadding(){return this.getOverhang().add(this.view.getPadding())}}Sf=new WeakSet,lb=function(){const t=this.view,e=r=>{this.view.context.glHelper.canvas.style.cursor=r};for(const[r,i]of t.paramMediator.paramConfigs){if(!("select"in i))continue;const s=Wl(i.select);if(!Wp(s))continue;const o=s.encodings,a=Object.fromEntries(o.map(b=>{const y=this.view.getScaleResolution(b),x=y==null?void 0:y.getScale();if(!x||!Ke(x.type))throw new Error(`No continuous scale found for interval selection param "${r}" on channel "${b}"! Scale type is "${(x==null?void 0:x.type)??"none"}".`);return[b,y]}));if(this.selectionRect)throw new Error("Only one interval selection per container is currently allowed!");let l=!1,c=!1,u=!1,f=null;const h=(b,y)=>Object.fromEntries(o.map(x=>[x,[Math.min(b[x],y[x]),Math.max(b[x],y[x])]])),A=t.paramMediator.createExpression(r),d=t.paramMediator.getSetter(r);i.value&&d({type:"interval",intervals:i.value});const g=()=>{d(qp(o)),e(null)};this.selectionRect=new yR(this,A,s.mark),this.selectionRect.initializeChildren();const p=b=>{const y={x:0,y:0},x=t.coords.normalizePoint(b.x,b.y,!0);for(const B of o){const E=a[B].getScale(),Q=E.invert(B=="x"?x.x:x.y);y[B]=Q+(["index","locus"].includes(E.type)?.5:0)}return y},C=b=>{var Q,k,S,T;const{intervals:y}=b,x=(N,U,H)=>{const J=(le,de)=>de==null?null:a[le].getScale()(de),_=J("x",N)??H,Z=J("y",U)??H;return t.coords.denormalizePoint(_,Z,!0)},B=x((Q=y.x)==null?void 0:Q[0],(k=y.y)==null?void 0:k[0],0),E=x((S=y.x)==null?void 0:S[1],(T=y.y)==null?void 0:T[1],1);return St.create(B.x,B.y,E.x-B.x,E.y-B.y)};t.addInteractionEventListener("mousedown",(b,y)=>{if(y.mouseEvent.button!=0)return;if(f=l?C(A()):null,f)e("grabbing"),c=!0;else{const k=y.point;if(Xp(A())&&(c=!0),y.mouseEvent.shiftKey)g(),u=!0;else if(Xp(A())){const T=(N,U)=>{t.removeInteractionEventListener("mouseup",T);const H=U.point;k.subtract(H).length<2&&g()};t.addInteractionEventListener("mouseup",T);return}else return}y.stopPropagation();const x=y.point,B=Et.fromMouseEvent(y.mouseEvent).subtract(x),E=k=>{const S=Et.fromMouseEvent(k).subtract(B);let T;if(f){const N=S.subtract(x),U=f.translate(N.x,N.y);T=h(p(new Et(U.x,U.y)),p(new Et(U.x2,U.y2)))}else T=h(p(x),p(S));for(const N of o){const U=a[N],{zoomExtent:H,scale:J}=U,_=T[N];if(["index","locus"].includes(J.type)&&(_[0]=Math.ceil(_[0]),_[1]=Math.ceil(_[1])),f){const Z=_[1]-_[0],le=H[0],de=H[1];_[0]<le&&(_[0]=le,_[1]=le+Z),_[1]>de&&(_[1]=de,_[0]=de-Z)}else _[0]=Math.max(H[0],_[0]),_[1]=Math.min(H[1],_[1]);_[1]=Math.min(H[1],_[1])}d({type:"interval",intervals:T})},Q=()=>{document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",Q),u=!1,f&&(e("move"),f=null)};document.addEventListener("mousemove",E),document.addEventListener("mouseup",Q)}),t.addInteractionEventListener("click",(b,y)=>{y.mouseEvent.button==0&&c&&(y.stopPropagation(),c=!1)},!0);const w=b=>mQ(A(),p(b));t.addInteractionEventListener("dblclick",(b,y)=>{w(y.point)&&(g(),y.stopPropagation())},!0),t.addInteractionEventListener("mousemove",(b,y)=>{w(y.point)?u||(l=!0,f||e("move")):(l=!1,f||e(null))})}};function IR(n){if(n!=null&&n.fill||n!=null&&n.fillOpacity||n!=null&&n.shadowOpacity)return{configurableVisibility:!1,data:{values:[{}]},mark:{color:n.fill,opacity:n.fillOpacity??(n.fill?1:0),type:"rect",clip:!1,tooltip:null,minHeight:1,minOpacity:0,shadowBlur:n.shadowBlur,shadowColor:n.shadowColor,shadowOffsetX:n.shadowOffsetX,shadowOffsetY:n.shadowOffsetY,shadowOpacity:n.shadowOpacity}}}function ER(n){if(!(!n||!n.stroke||n.strokeWidth===0||n.strokeOpacity===0))return{configurableVisibility:!1,resolve:{scale:{x:"excluded",y:"excluded"},axis:{x:"excluded",y:"excluded"}},data:{values:[{x:0,y:0,x2:1,y2:0},{x:1,y:0,x2:1,y2:1},{x:1,y:1,x2:0,y2:1},{x:0,y:1,x2:0,y2:0}]},mark:{size:n.strokeWidth??1,color:n.stroke??"lightgray",strokeCap:"square",opacity:n.strokeOpacity??1,type:"rule",clip:!1,tooltip:null},encoding:{x:{field:"x",type:"quantitative",scale:null},y:{field:"y",type:"quantitative",scale:null},x2:{field:"x2"},y2:{field:"y2"}}}}class bR extends Za{constructor(e,r,i,s,o,a,l){super(e,r,i,s,o,l);D(this,se);D(this,yo,1/0);D(this,wo,10);D(this,ct,[]);D(this,_n,{});D(this,Jc,0);this.spec=e,F(this,wo,e.spacing??10),F(this,yo,a),F(this,ct,[]),this.wrappingFacet=!1}appendChild(e){this.appendChildView(e)}appendChildView(e){return this.insertChildViewAt(e,m(this,ct).length)}insertChildViewAt(e,r){e.layoutParent??(e.layoutParent=this);const i=new wR(e,this,m(this,Jc));return VE(this,Jc)._++,m(this,ct).splice(r,0,i),i}removeChildView(e){const r=m(this,ct).findIndex(i=>i.view===e);if(r<0)throw new Error("Not my child view!");this.removeChildAt(r)}removeChildAt(e){const r=m(this,ct)[e];if(!r)throw new Error("Child index out of range!");P(this,se,j0).call(this,r),m(this,ct).splice(e,1)}setChildren(e){for(const r of m(this,ct))P(this,se,j0).call(this,r);F(this,ct,[]);for(const r of e)this.appendChild(r)}get children(){return m(this,ct).map(e=>e.view)}get childCount(){return m(this,ct).length}async createAxes(){await this.syncSharedAxes(),await Promise.all(m(this,ct).map(e=>e.createAxes()))}async syncSharedAxes(){for(const r of Object.values(m(this,_n)))r.disposeSubtree();F(this,_n,{});const e=[];for(const r of Wr){const i=this.resolutions.axis[r];if(!i)continue;const s=i.getAxisProps();if(!s)continue;const o={title:i.getTitle(),orient:Ju[r][0],...s},a=new sy(o,i.scaleResolution.type,this.context,this,this);e.push(a.initializeChildren()),m(this,_n)[r]=a}await Promise.all(e)}*[Symbol.iterator](){for(const e of m(this,ct))yield*e.getChildren();for(const e of Object.values(m(this,_n)))yield e}getOverhang(){return P(this,se,fb).call(this).union(P(this,se,Lf).call(this))}getSize(){return this._cache("size",()=>new Cr(P(this,se,X0).call(this,"column"),P(this,se,X0).call(this,"row")).addPadding(P(this,se,Lf).call(this)))}render(e,r,i={}){if(super.render(e,r,i),!this.isConfiguredVisible())return;this.layoutParent||(r=r.shrink(this.getPadding())),r=r.shrink(P(this,se,Lf).call(this)),e.pushView(this,r);const s={devicePixelRatio:e.getDevicePixelRatio()},o=Q2(P(this,se,W0).call(this,"column"),r.width,s),a=Q2(P(this,se,W0).call(this,"row"),r.height,s),l=new iy(m(this,se,Hi).length,m(this,yo)??1/0),c=u=>Math.round(u*devicePixelRatio)/devicePixelRatio;for(const[u,f]of m(this,se,Hi).entries()){const{view:h,axes:A,gridLines:d,background:g,backgroundStroke:p,title:C,selectionRect:w}=f,[b,y]=l.getCellCoords(u),x=o[P(this,se,Z0).call(this,"column",b)],B=a[P(this,se,Z0).call(this,"row",y)],E=h.getViewportSize(),Q=h.getSize(),k=h.getOverhang(),S=x.location-k.left,T=B.location-k.top,N=(Le,Vt)=>(Le[Vt].grow?(Vt=="width"?x:B).size:Le[Vt].px)+k[Vt],U=N(E,"width"),H=N(E,"height"),J=N(Q,"width"),_=N(Q,"height"),Z=f.scrollbars.horizontal,le=f.scrollbars.vertical,de=Z?()=>c(Z.viewportOffset):()=>0,ge=le?()=>c(le.viewportOffset):()=>0,Fe=new St(()=>r.x+S,()=>r.y+T,()=>U,()=>H),Bn=h.isScrollable(),vn=Bn?new St(()=>r.x+S-de(),()=>r.y+T-ge(),()=>J,()=>_):Fe;f.coords=Fe;const Mr=i.clipRect?Fe.intersect(i.clipRect):Fe;g==null||g.render(e,Mr,{...i,clipRect:void 0});for(const Le of Object.values(d))Le.render(e,Fe,i);const Ro=BR(h)||Bn;Ro&&h.render(e,vn,{...i,clipRect:Mr}),p==null||p.render(e,Mr,{...i,clipRect:void 0});for(const[Le,Vt]of Object.entries(A)){const Bt=Le=="left"||Le=="right"?"vertical":"horizontal",Y=f.scrollbars[Bt],$=Y?Fe.modify(Bt=="vertical"?{y:()=>vn.y,height:_}:{x:()=>vn.x,width:J}):Fe,ie=dy($,Le,Vt);let L=i.clipRect;Y&&(L=ie.intersect(L).intersect(Y?Fe.modify(Bt=="vertical"?{x:-1e5,width:2e5}:{y:-1e5,height:2e5}):void 0)),Vt.render(e,ie,{...i,clipRect:L})}for(const Le of Object.values(m(this,_n))){const Bt=Le.axisProps.orient;(Bt=="left"&&b==0||Bt=="right"&&b==l.nCols-1||Bt=="top"&&y==0||Bt=="bottom"&&y==l.nRows-1)&&Le.render(e,dy(Fe.shrink(f.view.getOverhang()),Bt,Le),i)}Ro||h.render(e,vn,i),w==null||w.render(e,vn,i);for(const Le of Object.values(f.scrollbars))Le.updateScrollbar(Fe,vn),Le.render(e,r,i);C==null||C.render(e,Fe,i)}e.popView(this)}propagateInteractionEvent(e){if(this.handleInteractionEvent(void 0,e,!0),e.stopped)return;const r=m(this,se,Hi).find(s=>s.coords.containsPoint(e.point.x,e.point.y));for(const s of Object.values((r==null?void 0:r.scrollbars)??{}))if(s.coords.containsPoint(e.point.x,e.point.y)&&(s.propagateInteractionEvent(e),e.stopped))return;const i=r==null?void 0:r.view;if(i){if(i.propagateInteractionEvent(e),e.stopped)return;(i instanceof Qt||i instanceof Cs)&&oR(e,r.coords,s=>P(this,se,Ab).call(this,r.coords,r.view,s),this.context.getCurrentHover(),this.context.animator)}e.stopped||this.handleInteractionEvent(void 0,e,!1)}getDefaultResolution(e,r){return"independent"}}yo=new WeakMap,wo=new WeakMap,ct=new WeakMap,_n=new WeakMap,Jc=new WeakMap,se=new WeakSet,Hi=function(){return m(this,ct).filter(e=>e.view.isConfiguredVisible())},ub=function(){return new iy(m(this,se,Hi).length,m(this,yo)??1/0)},j0=function(e){e.disposeAxisViews();for(const r of e.getChildren())r.disposeSubtree()},hl=function(e){const r=e=="column"?"width":"height",i=(s,o)=>s.map(a=>{const c=m(this,se,Hi)[a].getOverhangAndPadding();return e=="column"?o?c.right:c.left:o?c.bottom:c.top}).reduce((a,l)=>Math.max(a,l),0);return this._cache(`size/directionSizes/${e}`,()=>m(this,se,ub)[e=="column"?"colIndices":"rowIndices"].map(s=>({axisBefore:i(s,0),axisAfter:i(s,1),view:t5(s.map(o=>m(this,se,Hi)[o].view.getViewportSize()[r]))})))},W0=function(e){const r=P(this,se,hl).call(this,e),i=[];i.push(Ka);for(const[s,o]of r.entries())s>0&&i.push({px:m(this,wo),grow:0}),(s==0||this.wrappingFacet)&&i.push(Ka),i.push({px:o.axisBefore,grow:0}),i.push(o.view),i.push({px:o.axisAfter,grow:0}),(s==r.length-1||this.wrappingFacet)&&i.push(Ka);return i},X0=function(e){let r=0,i=0;const s=e=="row"?this.spec.height:this.spec.width;if(s||s===0)return D2(s);const o=P(this,se,hl).call(this,e);for(const[a,l]of o.entries())a>0&&(i+=m(this,wo)),(a==0||this.wrappingFacet)&&(i+=0),i+=l.axisBefore,i+=l.view.px??0,r+=l.view.grow??0,i+=l.axisAfter,(a==o.length-1||this.wrappingFacet)&&(i+=0);return{px:i,grow:r}},Z0=function(e,r){return e=="row"&&this.wrappingFacet?1+6*r+2:2+4*r+1},fb=function(){const e=P(this,se,hl).call(this,"column"),r=P(this,se,hl).call(this,"row");return!e.length||!r.length?ot.zero():new ot(r.at(0).axisBefore,e.at(-1).axisAfter,r.at(-1).axisAfter,e.at(0).axisBefore)},Lf=function(){const e=r=>{const i=Ed[r],s=m(this,_n)[i];return(s==null?void 0:s.axisProps.orient)!==r?0:Math.max(s.getPerpendicularSize()+(s.axisProps.offset??0),0)};return new ot(e("top"),e("right"),e("bottom"),e("left"))},Ab=function(e,r,i){for(const[s,o]of Object.entries(xR(r))){if(o.size<=0)continue;const a=e.normalizePoint(i.x,i.y),l=e.normalizePoint(i.x+i.xDelta,i.y+i.yDelta),c={x:l.x-a.x,y:l.y-a.y};for(const u of o)u.zoom(2**i.zDelta,s=="y"?1-a[s]:a[s],s=="x"?c.x:-c.y)}this.context.animator.requestRender()};function xR(n){const t={x:new Set,y:new Set};return n.visit(e=>{for(const[r,i]of Object.entries(t)){const s=e.getScaleResolution(r);s&&s.isZoomable()&&i.add(s)}}),t}function BR(n){let t=!0;return n.visit(e=>{e instanceof Qt&&t&&(t=e.mark.properties.clip===!0)}),t}function dy(n,t,e){const r=e.axisProps,i=e.getPerpendicularSize();if(t=="bottom")return n.translate(0,n.height+r.offset).modify({height:i});if(t=="top")return n.translate(0,-i-r.offset).modify({height:i});if(t=="left")return n.translate(-i-r.offset,0).modify({width:i});if(t=="right")return n.translate(n.width+r.offset,0).modify({width:i})}const B0=class B0 extends bR{constructor(e,r,i,s,o){super(e,r,i,s,o,qu(e)?e.columns:ec(e)?1:1/0);D(this,Mi);this.spec=e}async initializeChildren(){const e=this.spec,r=qu(e)?e.concat:ec(e)?e.vconcat:e.hconcat;this.setChildren(await Promise.all(r.map((i,s)=>this.context.createOrImportView(i,this,this,"grid"+s)))),await this.createAxes()}async addChildSpec(e,r){return P(this,Mi,$0).call(this).addChildSpec(e,r)}async removeChildAt(e){await P(this,Mi,$0).call(this).removeChildAt(e)}getDefaultResolution(e,r){return r=="axis"?"independent":ec(this.spec)&&e==="x"||my(this.spec)&&e==="y"?"shared":"independent"}};Mi=new WeakSet,hb=function(){const e=this.spec;let r;return qu(e)?r=e.concat:ec(e)?r=e.vconcat:r=e.hconcat,{specs:r,insertAt:(i,s)=>{r.splice(i,0,s)},removeAt:i=>{r.splice(i,1)}}},$0=function(){return new ry(this,{getChildSpecs:P(this,Mi,hb).bind(this),insertView:(e,r)=>this.insertChildViewAt(e,r),removeView:e=>JE(B0.prototype,this,"removeChildAt").call(this,e),prepareView:async(e,r,i)=>{await i.createAxes(),await this.syncSharedAxes()},afterRemove:async()=>{await this.syncSharedAxes()},defaultName:e=>"grid"+this.childCount})};let $a=B0;const gy="viewRoot";class vR{constructor(t={}){D(this,Io,new Map);this.options={allowImport:!0,wrapRoot:!0,...t};const e=r=>(i,s,o,a,l)=>new r(i,s,o,a,i.name??l);this.addViewType(Bd,e(Cs)),this.addViewType(xd,e(Qt)),this.addViewType(ec,e($a)),this.addViewType(my,e($a)),this.addViewType(qu,e($a)),this.addViewType(DR,()=>{throw new Error("SampleView is not supported by the @genome-spy/core package. Use @genome-spy/app instead!")})}addViewType(t,e){m(this,Io).set(t,e)}createView(t,e,r,i,s){for(const[o,a]of m(this,Io))if(o(t))return a(t,e,r,i,s);throw new Error("Invalid spec, cannot figure out the view type from the properties: "+JSON.stringify([...Object.keys(t)]))}isViewSpec(t){const e=[...m(this,Io).keys()].filter(r=>r(t));if(e.length>1)throw new Error("Ambiguous spec. Cannot create a view!");return e.length==1}async createOrImportView(t,e,r,i,s,o){let a;if(SR(t)){let u;if("url"in t.import)if(this.options.allowImport)u=await l5(t,i.getBaseUrl(),e);else throw new mr("Importing views is not allowed!",r);else if("template"in t.import)u=py(t.import.template,i);else throw new Error("Invalid import: "+JSON.stringify(t));o==null||o(u),QR(u,t),a=u}else a=t;const l=u=>{var f;return(f=u==null?void 0:u.params)==null?void 0:f.some(h=>$p(h)&&Wl(h.select).type=="interval")};!i&&this.options.wrapRoot&&(xd(a)||Bd(a)||l(a))&&s===gy&&(a={name:"implicitRoot",vconcat:[a]});const c=this.createView(a,e,r,i,s);return c instanceof Za&&await c.initializeChildren(),c}}Io=new WeakMap;function py(n,t){var r,i;const e=(i=(r=t.spec)==null?void 0:r.templates)==null?void 0:i[n];if(e)return structuredClone(e);if(t.dataParent)return py(n,t.dataParent);throw new Error(`Cannot find template "${n}" in current view or its ancestors!`)}function QR(n,t){t.name!=null&&(n.name=t.name);const e=Xe(t.params)?t.params:et(t.params)?Object.entries(t.params).map(([r,i])=>({name:r,value:i})):[];if(e.length){n.params??(n.params=[]);for(const r of e){const i=n.params.findIndex(s=>s.name==r.name);i>=0&&(n.params[i]=r)}for(const r of e)n.params.some(i=>i.name==r.name)||n.params.push(r)}}function xd(n){return"mark"in n&&(Ce(n.mark)||et(n.mark))}function Bd(n){return"layer"in n&&et(n.layer)}function SR(n){return"import"in n}function ec(n){return"vconcat"in n&&Xe(n.vconcat)}function my(n){return"hconcat"in n&&Xe(n.hconcat)}function qu(n){return"concat"in n&&Xe(n.concat)}function DR(n){return"samples"in n&&et(n.samples)&&"spec"in n&&et(n.spec)}class kR{constructor(t,e){D(this,Eo);this.point=t,this.uiEvent=e,this.stopped=!1,this.target=void 0}stopPropagation(){this.stopped=!0}get type(){return this.uiEvent.type}get proxiedMouseEvent(){return m(this,Eo)||F(this,Eo,FR(this.mouseEvent)),m(this,Eo)}get mouseEvent(){if(this.uiEvent instanceof MouseEvent)return this.uiEvent;throw new Error("Not a MouseEvent!")}}Eo=new WeakMap;function FR(n){const t=r=>r===null||typeof r!="object"&&typeof r!="function",e={get(r,i,s){const o=Reflect.get(r,i,r);if(!t(o))throw new Error(`Access to non-primitive property "${String(i)}" is not allowed.`);return o},getPrototypeOf(){return null},ownKeys(r){return Reflect.ownKeys(r).filter(s=>t(r[s])).map(s=>typeof s=="symbol"?s:String(s))},getOwnPropertyDescriptor(r,i){const s=Reflect.getOwnPropertyDescriptor(r,i);if(s&&!("get"in s||"set"in s)&&t(s.value))return{value:s.value,writable:!!s.writable,enumerable:!!s.enumerable,configurable:!!s.configurable}},has(r,i){return i in r?t(r[i]):!1}};return new Proxy(n,e)}class MR{constructor(t,e){this.animator=t,this.disabled=!!e,this.maxDistance=500,this.callback=null,this.targetValue=0,this.lastValue=0,this.smoother=wd(t,r=>{var s;const i=r.x-this.lastValue;this.lastValue=r.x,(s=this.callback)==null||s.call(this,i)},40,.1,{x:0})}cancel(){this.lastValue!==this.targetValue&&(this.targetValue=ag([this.lastValue,this.targetValue],.3),this.smoother({x:this.targetValue}))}setMomentum(t,e){if(this.disabled){e(t);return}this.callback=e;const r=$i(this.targetValue+t-this.lastValue,-this.maxDistance,this.maxDistance);this.targetValue=this.lastValue+r,this.smoother({x:this.targetValue})}}function RR(n){const t={},e=["string","number","boolean"],r=["wheelDelta","wheelDeltaX","wheelDeltaY"];for(const i in n){const s=i;!r.includes(i)&&e.includes(typeof n[s])&&(t[s]=n[s])}return t}class NR{constructor({viewRoot:t,glHelper:e,tooltip:r,animator:i,emitEvent:s,tooltipHandlers:o,renderPickingFramebuffer:a,getDevicePixelRatio:l}){D(this,Df);D(this,bo);D(this,Ri);D(this,gt);D(this,qc);D(this,Kc);D(this,jc);D(this,xo);D(this,Wc);D(this,Ye);D(this,Ni);D(this,Bo);D(this,Vn);F(this,bo,t),F(this,Ri,e),F(this,gt,r),F(this,qc,i),F(this,Kc,s),F(this,jc,o),F(this,xo,a),F(this,Wc,l),F(this,Ye,void 0),F(this,Ni,new MR(m(this,qc))),F(this,Bo,void 0),F(this,Vn,!1)}getCurrentHover(){return m(this,Ye)}registerMouseEvents(){const t=m(this,Ri).canvas;let e=performance.now(),r=!1;const i=s=>{var l;const o=performance.now(),a=o-e<200;if(s instanceof MouseEvent){const c=t.getBoundingClientRect(),u=new Et(s.clientX-c.left-t.clientLeft,s.clientY-c.top-t.clientTop);s.type=="mousemove"&&!a&&(m(this,gt).handleMouseMove(s),F(this,Vn,!1),s.buttons==0&&!ly()&&(m(this,xo).call(this),P(this,Df,db).call(this,u.x,u.y)));const f=h=>{m(this,bo).propagateInteractionEvent(new kR(u,h)),m(this,Vn)||m(this,gt).clear()};if(s.type!="wheel"&&m(this,Ni).cancel(),(s.type=="mousedown"||s.type=="mouseup")&&!ly())m(this,xo).call(this);else if(s.type=="wheel"){e=o,F(this,Vn,!1);const h=s;if(Math.abs(h.deltaX)>Math.abs(h.deltaY))F(this,Ye,null),m(this,Ni).cancel();else{const A=RR(h);m(this,Ni).setMomentum(h.deltaY*(h.deltaMode?80:1),d=>{const g=new WheelEvent("wheel",{...A,deltaMode:0,deltaX:0,deltaY:d});f(g)}),h.preventDefault();return}}if(s.type=="click"){if(r)return;const h=m(this,Ye)?{type:s.type,viewPath:m(this,Ye).mark.unitView.getLayoutAncestors().map(A=>A.name).reverse(),datum:m(this,Ye).datum}:{type:s.type,viewPath:null,datum:null};m(this,Kc).call(this,"click",h)}(s.type!="click"||((l=m(this,Bo))==null?void 0:l.subtract(Et.fromMouseEvent(s)).length)<3)&&f(s)}};["mousedown","mouseup","wheel","click","mousemove","gesturechange","contextmenu","dblclick"].forEach(s=>t.addEventListener(s,i)),t.addEventListener("mousedown",s=>{F(this,Bo,Et.fromMouseEvent(s)),m(this,gt).sticky?(m(this,gt).sticky=!1,m(this,gt).clear(),r=!0):r=!1;const o=()=>{document.addEventListener("mouseup",()=>m(this,gt).popEnabledState(),{once:!0}),m(this,gt).pushEnabledState(!1)};if(s.button==2||s.shiftKey||s.ctrlKey||s.metaKey)o();else if(m(this,gt).visible){const a=setTimeout(()=>{r=!0,m(this,gt).sticky=!0},400),l=()=>clearTimeout(a);document.addEventListener("mouseup",l,{once:!0}),document.addEventListener("mousemove",l,{once:!0})}}),t.addEventListener("dragstart",s=>s.stopPropagation()),t.addEventListener("mouseout",()=>{m(this,gt).clear(),F(this,Ye,null)})}updateTooltip(t,e){if(!m(this,Vn)||!t)m(this,gt).updateWithDatum(t,e),F(this,Vn,!0);else throw new Error("Tooltip has already been updated! Duplicate event handler?")}}bo=new WeakMap,Ri=new WeakMap,gt=new WeakMap,qc=new WeakMap,Kc=new WeakMap,jc=new WeakMap,xo=new WeakMap,Wc=new WeakMap,Ye=new WeakMap,Ni=new WeakMap,Bo=new WeakMap,Vn=new WeakMap,Df=new WeakSet,db=function(t,e){var o;const r=m(this,Wc).call(this),i=q8(m(this,Ri).gl,m(this,Ri)._pickingBufferInfo,t*r,e*r),s=i[0]|i[1]<<8|i[2]<<16|i[3]<<24;if(s==0){F(this,Ye,null);return}if(s!==((o=m(this,Ye))==null?void 0:o.uniqueId)&&F(this,Ye,null),m(this,Ye)||m(this,bo).visit(a=>{if(a instanceof Qt){if(a.mark.isPickingParticipant()&&[...a.facetCoords.values()].some(l=>l.containsPoint(t,e))){const l=a.getCollector().findDatumByUniqueId(s);l&&F(this,Ye,{mark:a.mark,datum:l,uniqueId:s})}if(m(this,Ye))return Wa}}),m(this,Ye)){const a=m(this,Ye).mark;this.updateTooltip(m(this,Ye).datum,async l=>{if(!a.isPickingParticipant())return;const c=a.properties.tooltip;if(c!==null){const u=(c==null?void 0:c.handler)??"default",f=m(this,jc)[u];if(!f)throw new Error("No such tooltip handler: "+u);return f(l,a,c==null?void 0:c.params)}})}};class Cy{constructor(t){this.globalOptions=t}pushView(t,e){}popView(t){}renderMark(t,e){}getDevicePixelRatio(){return 1}}class vd extends Cy{constructor(e,r){super(e);D(this,kf);D(this,Xc,[0,0,0,0]);D(this,nn);D(this,Zc,[]);D(this,vo);D(this,$c);D(this,el,new Set);D(this,tl);D(this,Qo,1);D(this,nl,{width:0,height:0});if(F(this,$c,r.webGLHelper),F(this,vo,r.framebufferInfo),F(this,Qo,r.devicePixelRatio),F(this,nl,r.canvasSize),r.clearColor){const i=Ar(r.clearColor).rgb();F(this,Xc,[i.r/255,i.g/255,i.b/255,i.opacity])}}getDevicePixelRatio(){return m(this,Qo)}pushView(e,r){m(this,el).add(e),F(this,tl,r)}renderMark(e,r){if(this.globalOptions.picking&&!e.isPickingParticipant())return;const i=e.render(r);i&&m(this,Zc).push({mark:e,callback:i,coords:m(this,tl),clipRect:r.clipRect})}render(){if(m(this,nn)||P(this,kf,gb).call(this),m(this,nn).length==0)return;const e=m(this,$c).gl,r=m(this,vo);r?(e.bindFramebuffer(e.FRAMEBUFFER,r.framebuffer),e.viewport(0,0,r.width,r.height)):e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),e.disable(e.SCISSOR_TEST),e.clearColor(...m(this,Xc)),e.clear(e.COLOR_BUFFER_BIT);for(const i of m(this,el))i.onBeforeRender();for(const i of m(this,nn))i();m(this,vo)&&e.bindFramebuffer(e.FRAMEBUFFER,null)}}Xc=new WeakMap,nn=new WeakMap,Zc=new WeakMap,vo=new WeakMap,$c=new WeakMap,el=new WeakMap,tl=new WeakMap,Qo=new WeakMap,nl=new WeakMap,kf=new WeakSet,gb=function(){F(this,nn,[]);let e=!0,r=!0;const i=a=>()=>{e&&a()},s=a=>()=>{e&&r&&a()},o=bl(m(this,Zc).reverse(),a=>a.mark);for(const[a,l]of[...o.entries()].reverse()){if(!a.isReady())continue;m(this,nn).push(()=>{e=a.unitView.getEffectiveOpacity()>0}),m(this,nn).push(...a.prepareRender(this.globalOptions).map(u=>i(u)));let c;for(const u of l){const f=u.coords;f.equals(c)||m(this,nn).push(i(()=>{r=a.setViewport(m(this,nl),m(this,Qo),f,u.clipRect)})),m(this,nn).push(s(u.callback)),c=u.coords}}};class TR extends Cy{constructor(...t){super({}),this.contexts=t}pushView(t,e){for(const r of this.contexts)r.pushView(t,e)}popView(t){for(const e of this.contexts)e.popView(t)}renderMark(t,e){for(const r of this.contexts)r.renderMark(t,e)}}class PR{constructor({viewRoot:t,glHelper:e,getBackground:r,broadcast:i,onLayoutComputed:s}){D(this,rl);D(this,Ti);D(this,il);D(this,So);D(this,sl);D(this,Pi);D(this,Li);D(this,Oi);F(this,rl,t),F(this,Ti,e),F(this,il,r),F(this,So,i),F(this,sl,s),F(this,Pi,void 0),F(this,Li,void 0),F(this,Oi,!1)}computeLayout(){const t=m(this,rl);if(!t)return;m(this,So).call(this,"layout");const e=m(this,Ti).getLogicalCanvasSize();if(isNaN(e.width)||isNaN(e.height)){console.log(`NaN in canvas size: ${e.width}x${e.height}. Skipping computeLayout().`);return}const r={webGLHelper:m(this,Ti),canvasSize:e,devicePixelRatio:window.devicePixelRatio??1};F(this,Pi,new vd({picking:!1},{...r,clearColor:m(this,il).call(this)})),F(this,Li,new vd({picking:!0},{...r,framebufferInfo:m(this,Ti)._pickingBufferInfo})),t.render(new TR(m(this,Pi),m(this,Li)),St.create(0,0,e.width,e.height)),m(this,sl).call(this),m(this,So).call(this,"layoutComputed")}renderAll(){var t;(t=m(this,Pi))==null||t.render(),F(this,Oi,!0)}renderPickingFramebuffer(){m(this,Oi)&&(m(this,Li).render(),F(this,Oi,!1))}}rl=new WeakMap,Ti=new WeakMap,il=new WeakMap,So=new WeakMap,sl=new WeakMap,Pi=new WeakMap,Li=new WeakMap,Oi=new WeakMap;function LR(n){const t=o=>{throw new Error("ViewContext."+o+" is not configured.")},e={dataFlow:n.dataFlow??t("dataFlow"),glHelper:n.glHelper??t("glHelper"),animator:n.animator??t("animator"),genomeStore:n.genomeStore,fontManager:n.fontManager??t("fontManager"),createOrImportView:async function(o,a,l,c,u){const f=n.createOrImportViewWithContext;return f?f(e,o,a,l,c,u):Promise.reject(new Error("ViewContext.createOrImportView is not configured."))}},r=["requestLayoutReflow","updateTooltip","getNamedDataFromProvider","getCurrentHover","setDataLoadingStatus","addKeyboardListener","addBroadcastListener","removeBroadcastListener","highlightView","isViewConfiguredVisible","isViewSpec"],i=n,s=e;for(const o of r)s[o]=i[o]??(()=>t(o));return e}function OR({glHelper:n,viewRoot:t,logicalWidth:e,logicalHeight:r,devicePixelRatio:i,clearColor:s="white"}){e??(e=n.getLogicalCanvasSize().width),r??(r=n.getLogicalCanvasSize().height),i??(i=window.devicePixelRatio??1);const o=n.gl,a=Math.floor(e*i),l=Math.floor(r*i),c=h1(o,[{format:o.RGBA,type:o.UNSIGNED_BYTE,minMag:o.LINEAR,wrap:o.CLAMP_TO_EDGE}],a,l),u=new vd({picking:!1},{webGLHelper:n,canvasSize:{width:e,height:r},devicePixelRatio:i,clearColor:s,framebufferInfo:c});return t.render(u,St.create(0,0,e,r)),u.render(),K8(o,c,"image/png")}CA("fasta",HM);class yy{constructor(t,e,r={}){D(this,Me);D(this,Do,[]);D(this,Ui);D(this,ko);D(this,Fo);D(this,Gi);D(this,xt);D(this,ol,new Yv);D(this,zi,new mp);D(this,Mo,new mp);this.container=t,this.options=r,r.inputBindingContainer??(r.inputBindingContainer="default"),this.spec=e,this.viewFactory=new vR,this.namedDataProviders=[],this.animator=new TM(()=>this.renderAll()),this.genomeStore=void 0,this.viewVisibilityPredicate=i=>i.isVisibleInSpec(),this.tooltipHandlers={default:XM,refseqgene:_M,...r.tooltipHandlers??{}},this.viewRoot=void 0,F(this,Fo,new IQ(t,r)),this.dpr=window.devicePixelRatio}registerNamedDataProvider(t){this.namedDataProviders.unshift(t)}getNamedDataFromProvider(t){for(const e of this.namedDataProviders){const r=e(t);if(r)return r}}updateNamedData(t,e){const r=this.viewRoot.context.dataFlow.findNamedDataSource(t);if(!r)throw new Error("No such named data source: "+t);r.dataSource.updateDynamicData(e),this.animator.requestRender()}addEventListener(t,e){m(this,zi).add(t,e)}removeEventListener(t,e){m(this,zi).remove(t,e)}broadcast(t,e){const r={type:t,payload:e};this.viewRoot.visit(i=>i.handleBroadcast(r)),m(this,Mo).emit(t,r)}destroy(){const t=m(this,Me,Of);for(this.container.classList.remove("genome-spy"),t.classList.remove("loading"),m(this,ol).removeAll(),m(this,Do).forEach(e=>e()),m(this,xt).finalize(),m(this,Fo).remove();this.container.firstChild;)this.container.firstChild.remove()}async launch(){var t,e;try{return P(this,Me,Cb).call(this),await P(this,Me,yb).call(this),this.registerMouseEvents(),this.computeLayout(),this.animator.requestRender(),!0}catch(r){const i=`${r.view?`At "${r.view.getPathString()}": `:""}${r.toString()}`;return console.error(r.stack),((e=(t=this.options).onError)==null?void 0:e.call(t,r,this.container))||Nv(this.container,i),!1}finally{m(this,Me,Of).classList.remove("loading"),window.setTimeout(()=>{this.loadingMessageElement.style.display="none"},2e3)}}registerMouseEvents(){m(this,Gi).registerMouseEvents()}updateTooltip(t,e){m(this,Gi).updateTooltip(t,e)}exportCanvas(t,e,r,i="white"){const s=OR({glHelper:m(this,xt),viewRoot:this.viewRoot,logicalWidth:t,logicalHeight:e,devicePixelRatio:r,clearColor:i});return this.computeLayout(),this.renderAll(),s}getLogicalCanvasSize(){return m(this,xt).getLogicalCanvasSize()}computeLayout(){m(this,Ui).computeLayout()}renderAll(){m(this,Ui).renderAll()}renderPickingFramebuffer(){m(this,Ui).renderPickingFramebuffer()}getSearchableViews(){const t=[];return this.viewRoot.visit(e=>{e instanceof Qt&&e.getDataAccessor("search")&&t.push(e)}),t}getNamedScaleResolutions(){const t=new Map;return this.viewRoot.visit(e=>{for(const r of Object.values(e.resolutions.scale))r.name&&t.set(r.name,r)}),t}}Do=new WeakMap,Ui=new WeakMap,ko=new WeakMap,Fo=new WeakMap,Gi=new WeakMap,xt=new WeakMap,ol=new WeakMap,zi=new WeakMap,Mo=new WeakMap,Me=new WeakSet,Of=function(){return this.container.querySelector(".canvas-wrapper")},pb=function(){m(this,Fo).initialize(this.viewRoot)},mb=function(){const t=this.viewRoot.paramMediator.allocateSetter("devicePixelRatio",this.dpr),e=()=>{m(this,xt).invalidateSize(),this.dpr=window.devicePixelRatio,t(this.dpr),this.computeLayout(),this.renderAll()};if(this.viewRoot.getSize().isGrowing()){const s=new ResizeObserver(e);s.observe(this.container),m(this,Do).push(()=>s.disconnect())}let r=null;const i=()=>{r!=null&&(r(),e());const s=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`);s.addEventListener("change",i),r=()=>{s.removeEventListener("change",i)}};i(),r&&m(this,Do).push(r)},Cb=function(){const{canvasWrapper:t,loadingMessageElement:e,loadingIndicatorsElement:r,tooltip:i}=Rv(this.container);F(this,xt,new _8(t,()=>this.viewRoot?u5(this.viewRoot):{width:void 0,height:void 0},{powerPreference:this.options.powerPreference??"default"})),this.loadingMessageElement=e,this.loadingIndicatorsElement=r,this.tooltip=i,F(this,ko,new zv(r))},yb=async function(){await P(this,Me,wb).call(this);const t=P(this,Me,Ib).call(this);await P(this,Me,Eb).call(this,t),await MM(this.viewRoot,t.dataFlow,t.fontManager,e=>this.broadcast("dataFlowBuilt",e)),P(this,Me,bb).call(this,t)},wb=async function(){this.spec.genome&&(this.genomeStore=new PM(this.spec.baseUrl),await this.genomeStore.initialize(this.spec.genome))},Ib=function(){return LR({dataFlow:new K2,glHelper:m(this,xt),animator:this.animator,genomeStore:this.genomeStore,fontManager:new UM(m(this,xt)),updateTooltip:this.updateTooltip.bind(this),getNamedDataFromProvider:this.getNamedDataFromProvider.bind(this),getCurrentHover:()=>m(this,Gi).getCurrentHover(),setDataLoadingStatus:(t,e,r)=>m(this,ko).setDataLoadingStatus(t,e,r),addKeyboardListener:(t,e)=>{m(this,ol).add(t,e)},addBroadcastListener:(t,e)=>m(this,Mo).add(t,e),removeBroadcastListener:(t,e)=>m(this,Mo).remove(t,e),isViewConfiguredVisible:this.viewVisibilityPredicate,isViewSpec:t=>this.viewFactory.isViewSpec(t),createOrImportViewWithContext:(t,e,r,i,s,o)=>this.viewFactory.createOrImportView(e,t,r,i,s,o),highlightView:Hv(this.container)})},Eb=async function(t){const e=this.spec;e.datasets&&this.registerNamedDataProvider(r=>e.datasets[r]),this.viewRoot=await t.createOrImportView(e,null,null,gy),m(this,Me,Of).style.flexGrow=this.viewRoot.getSize().height.grow>0?"1":"0",P(this,Me,pb).call(this),ZM(this.viewRoot),ny(this.viewRoot),m(this,xt).invalidateSize(),F(this,Ui,new PR({viewRoot:this.viewRoot,glHelper:m(this,xt),getBackground:()=>this.spec.background,broadcast:this.broadcast.bind(this),onLayoutComputed:()=>m(this,ko).updateLayout()})),t.requestLayoutReflow=this.computeLayout.bind(this),P(this,Me,mb).call(this)},bb=function(t){t.requestLayoutReflow=this.computeLayout.bind(this),this.viewRoot.visit(e=>Gu(e,"size")),m(this,xt).invalidateSize(),F(this,Gi,new NR({viewRoot:this.viewRoot,glHelper:m(this,xt),tooltip:this.tooltip,animator:this.animator,emitEvent:m(this,zi).emit.bind(m(this,zi)),tooltipHandlers:this.tooltipHandlers,renderPickingFramebuffer:this.renderPickingFramebuffer.bind(this),getDevicePixelRatio:()=>this.dpr}))};const UR="data:image/svg+xml,%3csvg%20viewBox='0%200%2032%2032'%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20clip-rule='evenodd'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-miterlimit='1.5'%3e%3cpath%20d='M4.7%2021.2s.4%202.3%201.3%203.6C7%2026%209.8%2028%209.8%2028s3.4-2.6%206.4-8.5c0%200%201%20.1%201.9-.4.9-.6.8-.4%201-1.2%200%200%202.9.5%206.6%200%202.1-.3%204.3-1%206.2-2.5%200%200-1.1-1.7-2.5-5.1-.5-1.3-2-1.8-4.6-4.6l-8.2%208.6-11.9%206.9z'%20fill-opacity='.1'/%3e%3cpath%20d='M12.7%2014.8s-4-1.8-12%202.7c0%200%201%203.7%202.5%205.3%201.4%201.5%202.3%203.6%204.6%204.6%200%200%204.7-3%206.9-9.2l3-2s4.7%202.8%2012.6-1.6c0%200-.6-3.3-3-6-2.6-3-3.8-4.7-3.8-4.7s-4.1%202.3-7.5%209.3l-3.3%201.6z'%20fill='%237fbbdd'/%3e%3cpath%20d='M12.4%2015.5c-.7-.5-2.4-.8-4.4-.4-2%20.4-4%201.3-4.8%201.8-.5.3-1.2%201-1.2%201.4%200%20.7.3%201.8.8%202.4.3.3.7.5%201.4.6.8%200%202.5-1.4%203.5-2%201-.6%201.6-.8%202.7-1.2l-2.9%202.4c-1.3%201.2-2.2%201.5-2.4%202.3%200%20.5%200%201.4.5%201.8.4.5.6.8%201.6.8.6%200%201%200%202.6-1.5.9-.9%202.3-3%202.7-3.7.6-1.1%201-2.2.7-3-.2-1-.4-1.4-.8-1.7zM17.4%2014.2c-.3-.5-.9-1.2-.2-2.5l1.9-3c.5-.8%202-2.3%202.6-2.6.6-.4%201.5-.6%202-.2.6.4%201%201%201.3%201.5.4.6.7%201.3.2%202-.7%201-1.6.9-2.8%201.7-1.2.8-1.9%201.2-2.5%201.9l3.8-1.8c1.3-.6%202.7-1.1%203.4-.7.8.5.8.7%201%201.4.3%201-.2%201.9-.8%202.4-.5.6-1.5.9-2.6%201.2-1.4.4-4.5%201-5.8.5-1.3-.5-1.3-1.4-1.5-1.8z'%20fill='%23fff'/%3e%3cpath%20d='M12.7%2014.8s-4-1.8-12%202.7c0%200%201%203.7%202.5%205.3%201.4%201.5%202.3%203.6%204.6%204.6%200%200%204.7-3%206.9-9.2l3-2s4.7%202.8%2012.6-1.6c0%200-.6-3.3-3-6-2.6-3-3.8-4.7-3.8-4.7s-4.1%202.3-7.5%209.3l-3.3%201.6z'%20fill='none'%20stroke='%23000'%20stroke-width='.5'/%3e%3cpath%20d='M12.4%2014.9s2.1-2%203-2c1.1%200%202.3%202.7%202.3%203.5%200%20.8-2.1%202.4-3.1%202.3%200%200%200-1.2-.7-2.6-.8-1.3-1.5-1.2-1.5-1.2z'%20fill='%237fbbdd'/%3e%3cpath%20d='M13.8%2015.3c.9.8.6%202%201.4%201.8%201-.2%201.4-.8%201.3-1.5%200-.7%200-.8-.4-1.6-.3-.7-1-1.1-2-.5-.7.5-1.4%201.3-1.4%201.3s.2-.3%201.1.5z'%20fill='%23fff'/%3e%3cpath%20d='M12.4%2014.9s2.1-2%203-2c1.1%200%202.3%202.7%202.3%203.5%200%20.8-2.1%202.4-3.1%202.3%200%200%200-1.2-.7-2.6-.8-1.3-1.5-1.2-1.5-1.2z'%20fill='none'%20stroke='%23000'%20stroke-width='.5'/%3e%3c/svg%3e",GR="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20style='fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5'%20viewBox='0%200%2064%2064'%3e%3cpath%20d='M208.6%20548.2s11.2%2046.2%2031.2%2071c20%2024.9%2079.3%2061.6%2079.3%2061.6S385.6%20623%20438%20498.3c0%200%2018.1%201%2036-11.9%2017.7-12.7%2016.3-7.9%2021-24.8%200%200%2057%206.3%20131-9.7%2041.7-9.1%2084.3-26.3%20121.5-58.8%200%200-25.4-32.9-58-101.7-12.4-26.1-41.9-34.3-98.7-88L438.1%20391.2%20208.6%20548.2Z'%20style='fill-opacity:.11'%20transform='matrix(.10221%20.00684%20-.00671%20.10035%20-8%20-13.2)'/%3e%3cg%20transform='rotate(-35.4%2034.2%2080.8)%20scale(.10057)'%3e%3cpath%20d='M561.6%20349.2s-45.3-77.9-232.8-97.2c0%200-26.5%2073.2-21.1%20116%205.3%2043-4.7%2088.1%2021.4%20133.2%200%200%20114%205.5%20225.5-72.7l74.6%203.6S673.8%20534.4%20857%20554.4c0%200%2029.7-62.6%2022.2-137-8-78.7-7.5-124-7.5-124s-96.2-9.5-236.3%2068.4l-73.8-12.6Z'%20style='fill:%237fbbdd'/%3e%3cclipPath%20id='a'%3e%3cpath%20d='M561.6%20349.2s-45.3-77.9-232.8-97.2c0%200-26.5%2073.2-21.1%20116%205.3%2043-4.7%2088.1%2021.4%20133.2%200%200%20114%205.5%20225.5-72.7l74.6%203.6S673.8%20534.4%20857%20554.4c0%200%2029.7-62.6%2022.2-137-8-78.7-7.5-124-7.5-124s-96.2-9.5-236.3%2068.4l-73.8-12.6Z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20d='M386.9%20397.2c-15.6-13.6-51.8-22.4-96.3-16.7-44.5%205.8-93.8%2021.8-111.8%2031.6-10.6%205.7-27.3%2017.3-28.1%2027.2-1.2%2014.2%202.9%2037.8%2015%2052%206%207.2%2014.2%2012.1%2028.1%2014.1%2017.9%202.6%2059-24.8%2081.6-36.2%2024-12%2038.6-14.6%2063-22.2%200%200-47%2031.6-68.2%2047.4-30.6%2022.9-51.6%2028-57.3%2045.5-3.1%209.4-.7%2027.9%207.5%2037.6%209%2011%2012.8%2017.6%2034.2%2020.1%2012.7%201.5%2022%201.2%2059.8-28.6%2021.7-17.2%2055.9-59.2%2067-74.4%2016.2-22%2023.8-43.1%2021.3-59.6-3.7-23.6-8.4-31.3-15.8-37.8Z'%20style='fill:%23fff'%20transform='scale(.88664)%20rotate(31.2%20485%20792.2)'/%3e%3cpath%20d='M484.7%20379c-5.4-11.1-17.6-28.5-.8-53.8a739%20739%200%200%201%2044.2-60.6c13.2-16.3%2046.7-46.2%2059.6-52%2013-6%2033.3-8.7%2044.2.2%2011%209.1%2016.5%2020.6%2023%2032.7%207.4%2013.8%2012.4%2029.3%201.6%2042.8-15.4%2019.2-34.3%2017-61.6%2031.5-27.7%2014.8-42.3%2023.1-55.7%2035.9%200%200%2052.2-21.6%2082-31.2%2029.8-9.7%2059.8-20%2074.8-8.5s14.6%2015.5%2018.4%2031.2c4.7%2019.4-7.2%2038-20.1%2048.6-13%2010.7-34.3%2016-57.4%2021-30.5%206.8-96.6%2015.1-124%202.6-27.5-12.6-24.4-32.8-28.2-40.5Z'%20style='fill:%23fff'%20transform='scale(.87906)%20rotate(31.2%20487.2%20893.5)'/%3e%3c/g%3e%3cpath%20d='M561.6%20349.2s-45.3-77.9-232.8-97.2c0%200-26.5%2073.2-21.1%20116%205.3%2043-4.7%2088.1%2021.4%20133.2%200%200%20114%205.5%20225.5-72.7l74.6%203.6S673.8%20534.4%20857%20554.4c0%200%2029.7-62.6%2022.2-137-8-78.7-7.5-124-7.5-124s-96.2-9.5-236.3%2068.4l-73.8-12.6Z'%20style='fill:none;stroke:%23000;stroke-width:16.57px'/%3e%3c/g%3e%3cg%20transform='rotate(-4.2%20-78%20211)%20scale(.10057)'%3e%3cpath%20d='M385%20385.5s45.8-37.6%2065-35.4c21.7%202.5%2040.5%2057.6%2040.2%2074.3-.3%2016.7-47.3%2045.5-67.7%2041.8%200%200%203-24-10.4-52.9-13.4-28.8-27.2-27.8-27.2-27.8Z'%20style='fill:%237fbbdd'/%3e%3cclipPath%20id='b'%3e%3cpath%20d='M385%20385.5s45.8-37.6%2065-35.4c21.7%202.5%2040.5%2057.6%2040.2%2074.3-.3%2016.7-47.3%2045.5-67.7%2041.8%200%200%203-24-10.4-52.9-13.4-28.8-27.2-27.8-27.2-27.8Z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23b)'%3e%3cpath%20d='M413.3%20402.7c17.5%2018.9%2010%2045.7%2028.4%2043.4%2021.7-2.7%2030.9-15.7%2031.6-32.7.7-17-1-19.5-7.1-38-6.1-18.7-18.2-23.2-43.4-18.2-20.8%204.1-17.8%203-24%2010-6.4%207-14.5%2026-14.5%2026s8.4-12.7%2029%209.5Z'%20style='fill:%23fff'%20transform='matrix(.90907%200%200%20.85852%2037%2052.2)'/%3e%3c/g%3e%3cpath%20d='M385%20385.5s45.8-37.6%2065-35.4c21.7%202.5%2040.5%2057.6%2040.2%2074.3-.3%2016.7-47.3%2045.5-67.7%2041.8%200%200%203-24-10.4-52.9-13.4-28.8-27.2-27.8-27.2-27.8Z'%20style='fill:none;stroke:%23000;stroke-width:16.57px'/%3e%3c/g%3e%3c/svg%3e";async function zR(n,t,e={}){let r;if(Ce(n)){if(r=document.querySelector(n),!r)throw new Error(`No such element: ${n}`)}else if(n instanceof HTMLElement)r=n;else throw new Error(`Invalid element: ${n}`);let i;try{const s=et(t)?t:await wy(t);if(s.baseUrl??(s.baseUrl=""),s.width??(s.width="container"),s.padding??(s.padding=10),r==document.body){const o=document.createElement("div");o.style.position="fixed",o.style.inset="0",o.style.overflow="hidden",r.appendChild(o),r=o}i=new yy(r,s,e),HR(i,e),await i.launch()}catch(s){r.innerText=s.toString(),console.error(s)}return{finalize(){for(i.destroy();r.firstChild;)r.firstChild.remove()},addEventListener(s,o){i.addEventListener(s,o)},removeEventListener(s,o){i.removeEventListener(s,o)},getScaleResolutionByName(s){return i.getNamedScaleResolutions().get(s)},updateNamedData:i.updateNamedData.bind(i),exportCanvas:i.exportCanvas.bind(i)}}function HR(n,t){t.namedDataProvider&&n.registerNamedDataProvider(t.namedDataProvider)}async function wy(n){let t;try{const e=await fetch(n);if(!e.ok)throw new Error(`${e.status} ${e.statusText}`);t=await e.json()}catch(e){throw new Error(`Could not load or parse configuration: ${n}, reason: ${e.message}`)}if(!t.baseUrl){const e=n.match(/^[^?#]*\//);t.baseUrl=e&&e[0]||"./"}return t}class YR{constructor(t){this.blob=t}async read(t,e=0){if(!t)return new Uint8Array(0);const r=e,i=r+t,s=this.blob.slice(r,i);return s.bytes?s.bytes():new Uint8Array(await s.arrayBuffer())}async readFile(t){const e=typeof t=="string"?t:t==null?void 0:t.encoding;if(e==="utf8")return this.blob.text();if(e)throw new Error(`unsupported encoding: ${e}`);return this.blob.bytes?this.blob.bytes():new Uint8Array(await this.blob.arrayBuffer())}async stat(){return{size:this.blob.size}}async close(){}}function _R(n){return(typeof n=="object"&&n!==null&&"message"in n?n.message:`${n}`).replace(/\.$/,"")}class pn{constructor(t,e={}){this.baseOverrides={},this.url=t;const r=e.fetch||globalThis.fetch.bind(globalThis);e.overrides&&(this.baseOverrides=e.overrides),this.fetchImplementation=r}async fetch(t,e){const r=s=>new Error(`${_R(s)} fetching ${t}`,{cause:s});let i;try{i=await this.fetchImplementation(t,e)}catch(s){if(`${s}`.includes("Failed to fetch")){console.warn(`generic-filehandle: refetching ${t} to attempt to work around chrome CORS header caching bug`);try{i=await this.fetchImplementation(t,{...e,cache:"reload"})}catch(o){throw r(o)}}else throw r(s)}return i}async read(t,e,r={}){if(t===0)return new Uint8Array(0);const{headers:i={},signal:s,overrides:o={}}=r;t<1/0?i.range=`bytes=${e}-${e+t-1}`:t===1/0&&e!==0&&(i.range=`bytes=${e}-`);const a=await this.fetch(this.url,{...this.baseOverrides,...o,headers:{...this.baseOverrides.headers,...o.headers,...i},method:"GET",redirect:"follow",mode:"cors",signal:s});if(!a.ok)throw new Error(`HTTP ${a.status} fetching ${this.url}`);if(a.status===200&&e===0||a.status===206){const l=a.headers.get("content-range"),c=/\/(\d+)$/.exec(l||"");c!=null&&c[1]&&(this._stat={size:parseInt(c[1],10)});const u=a.bytes?await a.bytes():new Uint8Array(await a.arrayBuffer());return u.byteLength<=t?u:u.subarray(0,t)}throw new Error(a.status===200?`${this.url} fetch returned status 200, expected 206`:`HTTP ${a.status} fetching ${this.url}`)}async readFile(t={}){let e,r;if(typeof t=="string")e=t,r={};else{e=t.encoding;const{encoding:l,...c}=t;r=c}const{headers:i={},signal:s,overrides:o={}}=r,a=await this.fetch(this.url,{...this.baseOverrides,...o,headers:{...this.baseOverrides.headers,...o.headers,...i},method:"GET",redirect:"follow",mode:"cors",signal:s});if(!a.ok)throw new Error(`HTTP ${a.status} fetching ${this.url}`);if(e==="utf8")return a.text();if(e)throw new Error(`unsupported encoding: ${e}`);return a.bytes?a.bytes():new Uint8Array(await a.arrayBuffer())}async stat(){if(!this._stat&&(await this.read(10,0),!this._stat))throw new Error(`unable to determine size of file at ${this.url}`);return this._stat}async close(){}}class at{readFile(){throw new Error("unimplemented")}read(){throw new Error("unimplemented")}close(){throw new Error("unimplemented")}}const tc=Object.freeze(Object.defineProperty({__proto__:null,BlobFile:YR,LocalFile:at,RemoteFile:pn},Symbol.toStringTag,{value:"Module"})),Iy=65536,VR=Iy*Iy;function Qd(n,t=0){const e=n[t]|n[t+1]<<8|n[t+2]<<16|n[t+3]<<24;return((n[t+4]|n[t+5]<<8|n[t+6]<<16|n[t+7]<<24)>>>0)*VR+(e>>>0)}const Ku=1;function Ey(n,t,e){const r=t[Ku],i=e?e[Ku]:1/0;return r<=n&&i>n?0:r<n?-1:1}class JR{constructor({filehandle:t}){j(this,"filehandle");j(this,"index");this.filehandle=t}_getIndex(){return this.index||(this.index=this._readIndex().catch(t=>{throw this.index=void 0,t})),this.index}async _readIndex(){const t=await this.filehandle.read(8,0),e=Qd(t);if(!e)return[[0,0]];const r=new Array(e+1);r[0]=[0,0];const i=16*e;if(i>Number.MAX_SAFE_INTEGER)throw new TypeError("integer overflow");const s=await this.filehandle.read(i,8);for(let o=0;o<e;o+=1){const a=Qd(s,o*16),l=Qd(s,o*16+8);r[o+1]=[a,l]}return r}async getLastBlock(){return(await this._getIndex()).at(-1)}async getRelevantBlocksForRead(t,e){const r=e+t;if(t===0)return[];const i=await this._getIndex(),s=[];let o=0,a=i.length-1,l=Math.floor(i.length/2),c=Ey(e,i[l],i[l+1]);for(;c!==0;)c>0?a=l-1:c<0&&(o=l+1),l=Math.ceil((a-o)/2)+o,c=Ey(e,i[l],i[l+1]);s.push(i[l]);let u=l+1;for(;u<i.length&&(s.push(i[u]),!(i[u][Ku]>=r));u+=1);return s[s.length-1][Ku]<r&&s.push([]),s}}var by=0,Sd=2,ju=4,hi=0,Wu=1,qR=2,KR=-5;function jR(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function WR(n){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var e=t.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(var r in e)jR(e,r)&&(n[r]=e[r])}}return n}function xy(n,t){return n.length===t?n:n.subarray?n.subarray(0,t):(n.length=t,n)}var nc={arraySet:function(n,t,e,r,i){if(t.subarray&&n.subarray){n.set(t.subarray(e,e+r),i);return}for(var s=0;s<r;s++)n[i+s]=t[e+s]},flattenChunks:function(n){var t,e,r,i,s,o;for(r=0,t=0,e=n.length;t<e;t++)r+=n[t].length;for(o=new Uint8Array(r),i=0,t=0,e=n.length;t<e;t++)s=n[t],o.set(s,i),i+=s.length;return o},Buf8:function(n){return new Uint8Array(n)},Buf16:function(n){return new Uint16Array(n)},Buf32:function(n){return new Int32Array(n)}},rc={arraySet:function(n,t,e,r,i){for(var s=0;s<r;s++)n[i+s]=t[e+s]},flattenChunks:function(n){return[].concat.apply([],n)},Buf8:function(n){return new Array(n)},Buf16:function(n){return new Array(n)},Buf32:function(n){return new Array(n)}};let ys=()=>{const n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";return ys=()=>n,n},wr=(n,t,e,r,i)=>(wr=ys()?nc.arraySet:rc.arraySet,wr(n,t,e,r,i)),Dd=n=>(Dd=ys()?nc.flattenChunks:rc.flattenChunks,Dd(n)),ws=n=>(ws=ys()?nc.Buf8:rc.Buf8,ws(n)),Is=n=>(Is=ys()?nc.Buf16:rc.Buf16,Is(n)),Es=n=>(Es=ys()?nc.Buf32:rc.Buf32,Es(n)),By=function(){let n=!0;try{String.fromCharCode.apply(null,[0])}catch{n=!1}return By=()=>n,n},vy=function(){let n=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}return vy=()=>n,n},kd=function(n){for(var t=ws(256),e=0;e<256;e++)t[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;return t[254]=t[254]=1,kd=r=>t[r],t[n]};function Qy(n){var t,e,r,i,s,o=n.length,a=0;for(i=0;i<o;i++)e=n.charCodeAt(i),(e&64512)===55296&&i+1<o&&(r=n.charCodeAt(i+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),i++)),a+=e<128?1:e<2048?2:e<65536?3:4;for(t=new Uint8Array(a),s=0,i=0;s<a;i++)e=n.charCodeAt(i),(e&64512)===55296&&i+1<o&&(r=n.charCodeAt(i+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),i++)),e<128?t[s++]=e:e<2048?(t[s++]=192|e>>>6,t[s++]=128|e&63):e<65536?(t[s++]=224|e>>>12,t[s++]=128|e>>>6&63,t[s++]=128|e&63):(t[s++]=240|e>>>18,t[s++]=128|e>>>12&63,t[s++]=128|e>>>6&63,t[s++]=128|e&63);return t}function XR(n,t){if(t<65534&&(n.subarray&&vy()||!n.subarray&&By()))return String.fromCharCode.apply(null,xy(n,t));for(var e="",r=0;r<t;r++)e+=String.fromCharCode(n[r]);return e}function ZR(n){for(var t=new Uint8Array(n.length),e=0,r=t.length;e<r;e++)t[e]=n.charCodeAt(e);return t}function $R(n,t){var e,r,i,s,o=t||n.length,a=new Array(o*2);for(r=0,e=0;e<o;){if(i=n[e++],i<128){a[r++]=i;continue}if(s=kd(i),s>4){a[r++]=65533,e+=s-1;continue}for(i&=s===2?31:s===3?15:7;s>1&&e<o;)i=i<<6|n[e++]&63,s--;if(s>1){a[r++]=65533;continue}i<65536?a[r++]=i:(i-=65536,a[r++]=55296|i>>10&1023,a[r++]=56320|i&1023)}return XR(a,r)}function eN(n,t){var e;for(t=t||n.length,t>n.length&&(t=n.length),e=t-1;e>=0&&(n[e]&192)===128;)e--;return e<0||e===0?t:e+kd(n[e])>t?e:t}function tN(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}function Fd(n,t,e,r){for(var i=n&65535|0,s=n>>>16&65535|0,o=0;e!==0;){o=e>2e3?2e3:e,e-=o;do i=i+t[r++]|0,s=s+i|0;while(--o);i%=65521,s%=65521}return i|s<<16|0}function nN(){for(var n,t=[],e=0;e<256;e++){n=e;for(var r=0;r<8;r++)n=n&1?3988292384^n>>>1:n>>>1;t[e]=n}return t}let Sy=function(){const n=nN();return Sy=()=>n,n};function mn(n,t,e,r){var i=Sy(),s=r+e;n^=-1;for(var o=r;o<s;o++)n=n>>>8^i[(n^t[o])&255];return n^-1}var Xu=30,rN=12;function iN(n,t){var e,r,i,s,o,a,l,c,u,f,h,A,d,g,p,C,w,b,y,x,B,E,Q,k,S;e=n.state,r=n.next_in,k=n.input,i=r+(n.avail_in-5),s=n.next_out,S=n.output,o=s-(t-n.avail_out),a=s+(n.avail_out-257),l=e.dmax,c=e.wsize,u=e.whave,f=e.wnext,h=e.window,A=e.hold,d=e.bits,g=e.lencode,p=e.distcode,C=(1<<e.lenbits)-1,w=(1<<e.distbits)-1;e:do{d<15&&(A+=k[r++]<<d,d+=8,A+=k[r++]<<d,d+=8),b=g[A&C];t:for(;;){if(y=b>>>24,A>>>=y,d-=y,y=b>>>16&255,y===0)S[s++]=b&65535;else if(y&16){x=b&65535,y&=15,y&&(d<y&&(A+=k[r++]<<d,d+=8),x+=A&(1<<y)-1,A>>>=y,d-=y),d<15&&(A+=k[r++]<<d,d+=8,A+=k[r++]<<d,d+=8),b=p[A&w];n:for(;;){if(y=b>>>24,A>>>=y,d-=y,y=b>>>16&255,y&16){if(B=b&65535,y&=15,d<y&&(A+=k[r++]<<d,d+=8,d<y&&(A+=k[r++]<<d,d+=8)),B+=A&(1<<y)-1,B>l){n.msg="invalid distance too far back",e.mode=Xu;break e}if(A>>>=y,d-=y,y=s-o,B>y){if(y=B-y,y>u&&e.sane){n.msg="invalid distance too far back",e.mode=Xu;break e}if(E=0,Q=h,f===0){if(E+=c-y,y<x){x-=y;do S[s++]=h[E++];while(--y);E=s-B,Q=S}}else if(f<y){if(E+=c+f-y,y-=f,y<x){x-=y;do S[s++]=h[E++];while(--y);if(E=0,f<x){y=f,x-=y;do S[s++]=h[E++];while(--y);E=s-B,Q=S}}}else if(E+=f-y,y<x){x-=y;do S[s++]=h[E++];while(--y);E=s-B,Q=S}for(;x>2;)S[s++]=Q[E++],S[s++]=Q[E++],S[s++]=Q[E++],x-=3;x&&(S[s++]=Q[E++],x>1&&(S[s++]=Q[E++]))}else{E=s-B;do S[s++]=S[E++],S[s++]=S[E++],S[s++]=S[E++],x-=3;while(x>2);x&&(S[s++]=S[E++],x>1&&(S[s++]=S[E++]))}}else if((y&64)===0){b=p[(b&65535)+(A&(1<<y)-1)];continue n}else{n.msg="invalid distance code",e.mode=Xu;break e}break}}else if((y&64)===0){b=g[(b&65535)+(A&(1<<y)-1)];continue t}else if(y&32){e.mode=rN;break e}else{n.msg="invalid literal/length code",e.mode=Xu;break e}break}}while(r<i&&s<a);x=d>>3,r-=x,d-=x<<3,A&=(1<<d)-1,n.next_in=r,n.next_out=s,n.avail_in=r<i?5+(i-r):5-(r-i),n.avail_out=s<a?257+(a-s):257-(s-a),e.hold=A,e.bits=d}var bs=15,Dy=852,ky=592,Fy=0,Md=1,My=2,sN=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],oN=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],aN=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],cN=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function ic(n,t,e,r,i,s,o,a){var l=a.bits,c=0,u=0,f=0,h=0,A=0,d=0,g=0,p=0,C=0,w=0,b,y,x,B,E,Q=null,k=0,S,T=Is(bs+1),N=Is(bs+1),U=null,H=0,J,_,Z;for(c=0;c<=bs;c++)T[c]=0;for(u=0;u<r;u++)T[t[e+u]]++;for(A=l,h=bs;h>=1&&T[h]===0;h--);if(A>h&&(A=h),h===0)return i[s++]=1<<24|64<<16|0,i[s++]=1<<24|64<<16|0,a.bits=1,0;for(f=1;f<h&&T[f]===0;f++);for(A<f&&(A=f),p=1,c=1;c<=bs;c++)if(p<<=1,p-=T[c],p<0)return-1;if(p>0&&(n===Fy||h!==1))return-1;for(N[1]=0,c=1;c<bs;c++)N[c+1]=N[c]+T[c];for(u=0;u<r;u++)t[e+u]!==0&&(o[N[t[e+u]]++]=u);if(n===Fy?(Q=U=o,S=19):n===Md?(Q=sN,k-=257,U=oN,H-=257,S=256):(Q=aN,U=cN,S=-1),w=0,u=0,c=f,E=s,d=A,g=0,x=-1,C=1<<A,B=C-1,n===Md&&C>Dy||n===My&&C>ky)return 1;for(;;){J=c-g,o[u]<S?(_=0,Z=o[u]):o[u]>S?(_=U[H+o[u]],Z=Q[k+o[u]]):(_=96,Z=0),b=1<<c-g,y=1<<d,f=y;do y-=b,i[E+(w>>g)+y]=J<<24|_<<16|Z|0;while(y!==0);for(b=1<<c-1;w&b;)b>>=1;if(b!==0?(w&=b-1,w+=b):w=0,u++,--T[c]===0){if(c===h)break;c=t[e+o[u]]}if(c>A&&(w&B)!==x){for(g===0&&(g=A),E+=f,d=c-g,p=1<<d;d+g<h&&(p-=T[d+g],!(p<=0));)d++,p<<=1;if(C+=1<<d,n===Md&&C>Dy||n===My&&C>ky)return 1;x=w&B,i[x]=A<<24|d<<16|E-s|0}}return w!==0&&(i[E+w]=c-g<<24|64<<16|0),a.bits=A,0}var lN=0,Ry=1,Ny=2,Ty=4,di=0,uN=1,fN=2,Lt=-2,Py=-3,Ly=-4,AN=-5,Oy=8,Uy=1,Gy=2,zy=3,Hy=4,Yy=5,_y=6,Vy=7,Jy=8,qy=9,Ky=10,Zu=11,On=12,Rd=13,jy=14,Nd=15,Wy=16,Xy=17,Zy=18,$y=19,$u=20,ef=21,ew=22,tw=23,nw=24,rw=25,iw=26,Td=27,sw=28,ow=29,ve=30,aw=31,hN=32,dN=852,gN=592;function cw(n){return(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24)}function pN(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=Is(320),this.work=Is(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function mN(n){var t;return!n||!n.state?Lt:(t=n.state,n.total_in=n.total_out=t.total=0,n.msg="",t.wrap&&(n.adler=t.wrap&1),t.mode=Uy,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=Es(dN),t.distcode=t.distdyn=Es(gN),t.sane=1,t.back=-1,di)}function CN(n){var t;return!n||!n.state?Lt:(t=n.state,t.wsize=0,t.whave=0,t.wnext=0,mN(n))}function yN(n,t){var e,r;return!n||!n.state||(r=n.state,t<0?(e=0,t=-t):(e=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Lt:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=e,r.wbits=t,CN(n))}function wN(n,t){var e,r;return n?(r=new pN,n.state=r,r.window=null,e=yN(n,t),e!==di&&(n.state=null),e):Lt}var lw=!0,Pd,Ld;function IN(n){if(lw){var t;for(Pd=Es(512),Ld=Es(32),t=0;t<144;)n.lens[t++]=8;for(;t<256;)n.lens[t++]=9;for(;t<280;)n.lens[t++]=7;for(;t<288;)n.lens[t++]=8;for(ic(Ry,n.lens,0,288,Pd,0,n.work,{bits:9}),t=0;t<32;)n.lens[t++]=5;ic(Ny,n.lens,0,32,Ld,0,n.work,{bits:5}),lw=!1}n.lencode=Pd,n.lenbits=9,n.distcode=Ld,n.distbits=5}function uw(n,t,e,r){var i,s=n.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=ws(s.wsize)),r>=s.wsize?(wr(s.window,t,e-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>r&&(i=r),wr(s.window,t,e-r,i,s.wnext),r-=i,r?(wr(s.window,t,e-r,r,0),s.wnext=r,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0}function EN(n,t){var e,r,i,s,o,a,l,c,u,f,h,A,d,g,p=0,C,w,b,y,x,B,E,Q,k=ws(4),S,T,N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!n||!n.state||!n.output||!n.input&&n.avail_in!==0)return Lt;e=n.state,e.mode===On&&(e.mode=Rd),o=n.next_out,i=n.output,l=n.avail_out,s=n.next_in,r=n.input,a=n.avail_in,c=e.hold,u=e.bits,f=a,h=l,Q=di;e:for(;;)switch(e.mode){case Uy:if(e.wrap===0){e.mode=Rd;break}for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(e.wrap&2&&c===35615){e.check=0,k[0]=c&255,k[1]=c>>>8&255,e.check=mn(e.check,k,2,0),c=0,u=0,e.mode=Gy;break}if(e.flags=0,e.head&&(e.head.done=!1),!(e.wrap&1)||(((c&255)<<8)+(c>>8))%31){n.msg="incorrect header check",e.mode=ve;break}if((c&15)!==Oy){n.msg="unknown compression method",e.mode=ve;break}if(c>>>=4,u-=4,E=(c&15)+8,e.wbits===0)e.wbits=E;else if(E>e.wbits){n.msg="invalid window size",e.mode=ve;break}e.dmax=1<<E,n.adler=e.check=1,e.mode=c&512?Ky:On,c=0,u=0;break;case Gy:for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(e.flags=c,(e.flags&255)!==Oy){n.msg="unknown compression method",e.mode=ve;break}if(e.flags&57344){n.msg="unknown header flags set",e.mode=ve;break}e.head&&(e.head.text=c>>8&1),e.flags&512&&(k[0]=c&255,k[1]=c>>>8&255,e.check=mn(e.check,k,2,0)),c=0,u=0,e.mode=zy;case zy:for(;u<32;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}e.head&&(e.head.time=c),e.flags&512&&(k[0]=c&255,k[1]=c>>>8&255,k[2]=c>>>16&255,k[3]=c>>>24&255,e.check=mn(e.check,k,4,0)),c=0,u=0,e.mode=Hy;case Hy:for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}e.head&&(e.head.xflags=c&255,e.head.os=c>>8),e.flags&512&&(k[0]=c&255,k[1]=c>>>8&255,e.check=mn(e.check,k,2,0)),c=0,u=0,e.mode=Yy;case Yy:if(e.flags&1024){for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}e.length=c,e.head&&(e.head.extra_len=c),e.flags&512&&(k[0]=c&255,k[1]=c>>>8&255,e.check=mn(e.check,k,2,0)),c=0,u=0}else e.head&&(e.head.extra=null);e.mode=_y;case _y:if(e.flags&1024&&(A=e.length,A>a&&(A=a),A&&(e.head&&(E=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Array(e.head.extra_len)),wr(e.head.extra,r,s,A,E)),e.flags&512&&(e.check=mn(e.check,r,A,s)),a-=A,s+=A,e.length-=A),e.length))break e;e.length=0,e.mode=Vy;case Vy:if(e.flags&2048){if(a===0)break e;A=0;do E=r[s+A++],e.head&&E&&e.length<65536&&(e.head.name+=String.fromCharCode(E));while(E&&A<a);if(e.flags&512&&(e.check=mn(e.check,r,A,s)),a-=A,s+=A,E)break e}else e.head&&(e.head.name=null);e.length=0,e.mode=Jy;case Jy:if(e.flags&4096){if(a===0)break e;A=0;do E=r[s+A++],e.head&&E&&e.length<65536&&(e.head.comment+=String.fromCharCode(E));while(E&&A<a);if(e.flags&512&&(e.check=mn(e.check,r,A,s)),a-=A,s+=A,E)break e}else e.head&&(e.head.comment=null);e.mode=qy;case qy:if(e.flags&512){for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(c!==(e.check&65535)){n.msg="header crc mismatch",e.mode=ve;break}c=0,u=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),n.adler=e.check=0,e.mode=On;break;case Ky:for(;u<32;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}n.adler=e.check=cw(c),c=0,u=0,e.mode=Zu;case Zu:if(e.havedict===0)return n.next_out=o,n.avail_out=l,n.next_in=s,n.avail_in=a,e.hold=c,e.bits=u,fN;n.adler=e.check=1,e.mode=On;case On:case Rd:if(e.last){c>>>=u&7,u-=u&7,e.mode=Td;break}for(;u<3;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}switch(e.last=c&1,c>>>=1,u-=1,c&3){case 0:e.mode=jy;break;case 1:IN(e),e.mode=$u;break;case 2:e.mode=Xy;break;case 3:n.msg="invalid block type",e.mode=ve}c>>>=2,u-=2;break;case jy:for(c>>>=u&7,u-=u&7;u<32;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if((c&65535)!==(c>>>16^65535)){n.msg="invalid stored block lengths",e.mode=ve;break}e.length=c&65535,c=0,u=0,e.mode=Nd;case Nd:e.mode=Wy;case Wy:if(A=e.length,A){if(A>a&&(A=a),A>l&&(A=l),A===0)break e;wr(i,r,s,A,o),a-=A,s+=A,l-=A,o+=A,e.length-=A;break}e.mode=On;break;case Xy:for(;u<14;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(e.nlen=(c&31)+257,c>>>=5,u-=5,e.ndist=(c&31)+1,c>>>=5,u-=5,e.ncode=(c&15)+4,c>>>=4,u-=4,e.nlen>286||e.ndist>30){n.msg="too many length or distance symbols",e.mode=ve;break}e.have=0,e.mode=Zy;case Zy:for(;e.have<e.ncode;){for(;u<3;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}e.lens[N[e.have++]]=c&7,c>>>=3,u-=3}for(;e.have<19;)e.lens[N[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,S={bits:e.lenbits},Q=ic(lN,e.lens,0,19,e.lencode,0,e.work,S),e.lenbits=S.bits,Q){n.msg="invalid code lengths set",e.mode=ve;break}e.have=0,e.mode=$y;case $y:for(;e.have<e.nlen+e.ndist;){for(;p=e.lencode[c&(1<<e.lenbits)-1],C=p>>>24,w=p>>>16&255,b=p&65535,!(C<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(b<16)c>>>=C,u-=C,e.lens[e.have++]=b;else{if(b===16){for(T=C+2;u<T;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(c>>>=C,u-=C,e.have===0){n.msg="invalid bit length repeat",e.mode=ve;break}E=e.lens[e.have-1],A=3+(c&3),c>>>=2,u-=2}else if(b===17){for(T=C+3;u<T;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}c>>>=C,u-=C,E=0,A=3+(c&7),c>>>=3,u-=3}else{for(T=C+7;u<T;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}c>>>=C,u-=C,E=0,A=11+(c&127),c>>>=7,u-=7}if(e.have+A>e.nlen+e.ndist){n.msg="invalid bit length repeat",e.mode=ve;break}for(;A--;)e.lens[e.have++]=E}}if(e.mode===ve)break;if(e.lens[256]===0){n.msg="invalid code -- missing end-of-block",e.mode=ve;break}if(e.lenbits=9,S={bits:e.lenbits},Q=ic(Ry,e.lens,0,e.nlen,e.lencode,0,e.work,S),e.lenbits=S.bits,Q){n.msg="invalid literal/lengths set",e.mode=ve;break}if(e.distbits=6,e.distcode=e.distdyn,S={bits:e.distbits},Q=ic(Ny,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,S),e.distbits=S.bits,Q){n.msg="invalid distances set",e.mode=ve;break}e.mode=$u;case $u:e.mode=ef;case ef:if(a>=6&&l>=258){n.next_out=o,n.avail_out=l,n.next_in=s,n.avail_in=a,e.hold=c,e.bits=u,iN(n,h),o=n.next_out,i=n.output,l=n.avail_out,s=n.next_in,r=n.input,a=n.avail_in,c=e.hold,u=e.bits,e.mode===On&&(e.back=-1);break}for(e.back=0;p=e.lencode[c&(1<<e.lenbits)-1],C=p>>>24,w=p>>>16&255,b=p&65535,!(C<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(w&&(w&240)===0){for(y=C,x=w,B=b;p=e.lencode[B+((c&(1<<y+x)-1)>>y)],C=p>>>24,w=p>>>16&255,b=p&65535,!(y+C<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}c>>>=y,u-=y,e.back+=y}if(c>>>=C,u-=C,e.back+=C,e.length=b,w===0){e.mode=iw;break}if(w&32){e.back=-1,e.mode=On;break}if(w&64){n.msg="invalid literal/length code",e.mode=ve;break}e.extra=w&15,e.mode=ew;case ew:if(e.extra){for(T=e.extra;u<T;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}e.length+=c&(1<<e.extra)-1,c>>>=e.extra,u-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=tw;case tw:for(;p=e.distcode[c&(1<<e.distbits)-1],C=p>>>24,w=p>>>16&255,b=p&65535,!(C<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if((w&240)===0){for(y=C,x=w,B=b;p=e.distcode[B+((c&(1<<y+x)-1)>>y)],C=p>>>24,w=p>>>16&255,b=p&65535,!(y+C<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}c>>>=y,u-=y,e.back+=y}if(c>>>=C,u-=C,e.back+=C,w&64){n.msg="invalid distance code",e.mode=ve;break}e.offset=b,e.extra=w&15,e.mode=nw;case nw:if(e.extra){for(T=e.extra;u<T;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}e.offset+=c&(1<<e.extra)-1,c>>>=e.extra,u-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){n.msg="invalid distance too far back",e.mode=ve;break}e.mode=rw;case rw:if(l===0)break e;if(A=h-l,e.offset>A){if(A=e.offset-A,A>e.whave&&e.sane){n.msg="invalid distance too far back",e.mode=ve;break}A>e.wnext?(A-=e.wnext,d=e.wsize-A):d=e.wnext-A,A>e.length&&(A=e.length),g=e.window}else g=i,d=o-e.offset,A=e.length;A>l&&(A=l),l-=A,e.length-=A;do i[o++]=g[d++];while(--A);e.length===0&&(e.mode=ef);break;case iw:if(l===0)break e;i[o++]=e.length,l--,e.mode=ef;break;case Td:if(e.wrap){for(;u<32;){if(a===0)break e;a--,c|=r[s++]<<u,u+=8}if(h-=l,n.total_out+=h,e.total+=h,h&&(n.adler=e.check=e.flags?mn(e.check,i,h,o-h):Fd(e.check,i,h,o-h)),h=l,(e.flags?c:cw(c))!==e.check){n.msg="incorrect data check",e.mode=ve;break}c=0,u=0}e.mode=sw;case sw:if(e.wrap&&e.flags){for(;u<32;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(c!==(e.total&4294967295)){n.msg="incorrect length check",e.mode=ve;break}c=0,u=0}e.mode=ow;case ow:Q=uN;break e;case ve:Q=Py;break e;case aw:return Ly;case hN:default:return Lt}return n.next_out=o,n.avail_out=l,n.next_in=s,n.avail_in=a,e.hold=c,e.bits=u,(e.wsize||h!==n.avail_out&&e.mode<ve&&(e.mode<Td||t!==Ty))&&uw(n,n.output,n.next_out,h-n.avail_out),f-=n.avail_in,h-=n.avail_out,n.total_in+=f,n.total_out+=h,e.total+=h,e.wrap&&h&&(n.adler=e.check=e.flags?mn(e.check,i,h,n.next_out-h):Fd(e.check,i,h,n.next_out-h)),n.data_type=e.bits+(e.last?64:0)+(e.mode===On?128:0)+(e.mode===$u||e.mode===Nd?256:0),(f===0&&h===0||t===Ty)&&Q===di&&(Q=AN),Q}function bN(n){if(!n||!n.state)return Lt;var t=n.state;return t.window&&(t.window=null),n.state=null,di}function xN(n,t){var e;return!n||!n.state||(e=n.state,(e.wrap&2)===0)?Lt:(e.head=t,t.done=!1,di)}function fw(n,t){var e=t.length,r,i,s;return!n||!n.state||(r=n.state,r.wrap!==0&&r.mode!==Zu)?Lt:r.mode===Zu&&(i=1,i=Fd(i,t,e,0),i!==r.check)?Py:(s=uw(n,t,e,e),s?(r.mode=aw,Ly):(r.havedict=1,di))}const Od={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function BN(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Ud=Object.prototype.toString;let Aw=class eg{constructor(t){if(!(this instanceof eg))return new eg(t);this.options=WR({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15)===0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new BN,this.strm.avail_out=0;var r=wN(this.strm,e.windowBits);if(r!==hi)throw new Error(Od[r]);if(this.header=new tN,xN(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Qy(e.dictionary):Ud.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=fw(this.strm,e.dictionary),r!==hi)))throw new Error(Od[r])}push(t,e){var r=this.strm,i=this.options.chunkSize,s=this.options.dictionary,o,a,l,c,u,f,h=!1;if(this.ended)return!1;a=e===~~e?e:e===!0?ju:by,typeof t=="string"?r.input=ZR(t):Ud.call(t)==="[object ArrayBuffer]"?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=ws(i),r.next_out=0,r.avail_out=i),o=EN(r,by),o===qR&&s&&(typeof s=="string"?f=Qy(s):Ud.call(s)==="[object ArrayBuffer]"?f=new Uint8Array(s):f=s,o=fw(this.strm,f)),o===KR&&h===!0&&(o=hi,h=!1),o!==Wu&&o!==hi)return this.onEnd(o),this.ended=!0,!1;r.next_out&&(r.avail_out===0||o===Wu||r.avail_in===0&&(a===ju||a===Sd))&&(this.options.to==="string"?(l=eN(r.output,r.next_out),c=r.next_out-l,u=$R(r.output,l),r.next_out=c,r.avail_out=i-c,c&&wr(r.output,r.output,l,c,0),this.onData(u)):this.onData(xy(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(h=!0)}while((r.avail_in>0||r.avail_out===0)&&o!==Wu);return o===Wu&&(a=ju),a===ju?(o=bN(this.strm),this.onEnd(o),this.ended=!0,o===hi):(a===Sd&&(this.onEnd(hi),r.avail_out=0),!0)}onData(t){this.chunks.push(t)}onEnd(t){t===hi&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Dd(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg}};function vN(n,t){var e=new Aw(t);if(e.push(n,!0),e.err)throw e.msg||Od[e.err];return e.result}function QN(n,t){return t=t||{},t.raw=!0,vN(n,t)}function SN(n){let t=0;for(const e of n)t+=e.length;return t}function hw(n,t){const e=new Uint8Array(t??SN(n));let r=0;for(const i of n)e.set(i,r),r+=i.length;return e}async function DN(n){try{let t,e=0,r;const i=[];let s=0;do{const o=n.subarray(e);if(r=new Aw(void 0),{strm:t}=r,r.push(o,Sd),r.err)throw new Error(r.msg);e+=t.next_in;const a=r.result;i.push(a),s+=a.length}while(t.avail_in);return hw(i,s)}catch(t){throw/incorrect header check/.exec(`${t}`)?new Error("problem decompressing block: incorrect gzip header check"):t}}class dw{constructor({filehandle:t,gziFilehandle:e}){j(this,"filehandle");j(this,"gzi");this.filehandle=t,this.gzi=new JR({filehandle:e})}async _readAndUncompressBlock(t,e){let r=e;r||(r=(await this.filehandle.stat()).size);const i=r-t,s=await this.filehandle.read(i,t);return DN(s)}async read(t,e){const r=await this.gzi.getRelevantBlocksForRead(t,e),i=[];for(let s=0;s<r.length-1;s+=1){const o=await this._readAndUncompressBlock(r[s][0],r[s+1][0]),[,a]=r[s],l=a>=e?0:e-a,c=Math.min(e+t,a+o.length)-a;l>=0&&l<o.length&&i.push(o.subarray(l,c))}return hw(i)}}function gw(n,t){return n.offset+n.lineBytes*Math.floor(t/n.lineLength)+t%n.lineLength}async function kN(n,t={}){const e=new TextDecoder("utf8");return Object.fromEntries(e.decode(await n.readFile(t)).split(/\r?\n/).map(r=>r.trim()).filter(r=>!!r).map(r=>r.split(" ")).map(r=>{var i;if((i=r[0])!=null&&i.startsWith(">"))throw new Error("found > in sequence name, might have supplied FASTA file for the FASTA index");return[r[0],{name:r[0],length:+r[1],start:0,end:+r[1],offset:+r[2],lineLength:+r[3],lineBytes:+r[4]}]}))}class pw{constructor({fasta:t,fai:e,path:r,faiPath:i}){if(t)this.fasta=t;else if(r)this.fasta=new at(r);else throw new Error("Need to pass filehandle for fasta or path to localfile");if(e)this.fai=e;else if(i)this.fai=new at(i);else if(r)this.fai=new at(`${r}.fai`);else throw new Error("Need to pass filehandle for or path to localfile")}async _getIndexes(t){return this.indexes||(this.indexes=kN(this.fai,t).catch(e=>{throw this.indexes=void 0,e})),this.indexes}async getSequenceNames(t){return Object.keys(await this._getIndexes(t))}async getSequenceSizes(t){const e={},r=await this._getIndexes(t);for(const i of Object.values(r))e[i.name]=i.length;return e}async getSequenceSize(t,e){var i;return(i=(await this._getIndexes(e))[t])==null?void 0:i.length}async hasReferenceSequence(t,e){return!!(await this._getIndexes(e))[t]}async getResiduesByName(t,e,r,i){const s=(await this._getIndexes(i))[t];return s?this._fetchFromIndexEntry(s,e,r,i):void 0}async getSequence(t,e,r,i){return this.getResiduesByName(t,e,r,i)}async _fetchFromIndexEntry(t,e=0,r,i){let s=r;if(e<0)throw new TypeError("regionStart cannot be less than 0");if((s===void 0||s>t.length)&&(s=t.length),e>=s)return"";const o=gw(t,e),a=gw(t,s)-o,c=new TextDecoder("utf8").decode(await this.fasta.read(a,o,i)).replace(/\s+/g,"");if(/[^\x20-\x7e]/.test(c.slice(0,1e3)))throw new Error("Non-ASCII characters detected in sequence. The file may be gzip compressed. Use BgzipIndexedFasta for bgzip files, or decompress the file.");return c}}class FN extends pw{constructor({fasta:t,path:e,fai:r,faiPath:i,gzi:s,gziPath:o}){super({fasta:t,path:e,fai:r,faiPath:i}),t&&s?this.fasta=new dw({filehandle:t,gziFilehandle:s}):e&&o&&(this.fasta=new dw({filehandle:new at(e),gziFilehandle:new at(o)}))}}function mw(n){return n.split(">").filter(t=>/\S/.test(t)).map(t=>{const[e,...r]=t.split(`
|
|
719
|
+
`),[i,...s]=e.split(" "),o=r.join("").replace(/\s/g,"");return{id:i,description:s.join(" "),sequence:o}})}class MN{constructor({fasta:t,path:e}){if(t)this.fasta=t;else if(e)this.fasta=new at(e);else throw new Error("Need to pass fasta or path");this.data=this.fasta.readFile().then(r=>{const s=new TextDecoder("utf8").decode(r);return mw(s)})}async fetch(t,e,r){const s=(await this.data).find(a=>a.id===t),o=r-e;if(!s)throw new Error(`no sequence with id ${t} exists`);return s.sequence.slice(e,o)}async getSequenceNames(){return(await this.data).map(e=>e.id)}}const RN=Object.freeze(Object.defineProperty({__proto__:null,BgzipIndexedFasta:FN,FetchableSmallFasta:MN,IndexedFasta:pw,parseSmallFasta:mw},Symbol.toStringTag,{value:"Module"})),Cw=BigInt(32);function NN(n,t,e){const r=+!!e,i=+!e;return BigInt(n.getInt32(t,e)*i+n.getInt32(t+4,e)*r)<<Cw|BigInt(n.getUint32(t,e)*r+n.getUint32(t+4,e)*i)}function TN(n,t,e){const r=n.getUint32(t,e),i=n.getUint32(t+4,e),s=+!!e,o=+!e;return BigInt(r*o+i*s)<<Cw|BigInt(r*s+i*o)}"getBigInt64"in DataView||(DataView.prototype.getBigInt64=function(n,t){return NN(this,n,t)}),"getBigUint64"in DataView||(DataView.prototype.getBigUint64=function(n,t){return TN(this,n,t)});var Gd=function(n,t){return Gd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])},Gd(n,t)};function zd(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Gd(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function PN(n,t,e,r){function i(s){return s instanceof e?s:new e(function(o){o(s)})}return new(e||(e=Promise))(function(s,o){function a(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?s(u.value):i(u.value).then(a,l)}c((r=r.apply(n,t||[])).next())})}function yw(n,t){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(e=0)),e;)try{if(r=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,i=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(s=e.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){e.label=c[1];break}if(c[0]===6&&e.label<s[1]){e.label=s[1],s=c;break}if(s&&e.label<s[2]){e.label=s[2],e.ops.push(c);break}s[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(n,e)}catch(u){c=[6,u],i=0}finally{r=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function sc(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Hd(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var r=e.call(n),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(o)throw o.error}}return s}function Yd(n,t,e){if(e||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return n.concat(s||Array.prototype.slice.call(t))}function xs(n){return this instanceof xs?(this.v=n,this):new xs(n)}function LN(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e.apply(n,t||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(A){return function(d){return Promise.resolve(d).then(A,f)}}function a(A,d){r[A]&&(i[A]=function(g){return new Promise(function(p,C){s.push([A,g,p,C])>1||l(A,g)})},d&&(i[A]=d(i[A])))}function l(A,d){try{c(r[A](d))}catch(g){h(s[0][3],g)}}function c(A){A.value instanceof xs?Promise.resolve(A.value.v).then(u,f):h(s[0][2],A)}function u(A){l("next",A)}function f(A){l("throw",A)}function h(A,d){A(d),s.shift(),s.length&&l(s[0][0],s[0][1])}}function ON(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=n[Symbol.asyncIterator],e;return t?t.call(n):(n=typeof sc=="function"?sc(n):n[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(s){e[s]=n[s]&&function(o){return new Promise(function(a,l){o=n[s](o),i(a,l,o.done,o.value)})}}function i(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}typeof SuppressedError=="function"&&SuppressedError;function ze(n){return typeof n=="function"}function ww(n){var t=function(r){Error.call(r),r.stack=new Error().stack},e=n(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var _d=ww(function(n){return function(e){n(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
720
|
+
`+e.map(function(r,i){return i+1+") "+r.toString()}).join(`
|
|
721
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function Iw(n,t){if(n){var e=n.indexOf(t);0<=e&&n.splice(e,1)}}var Vd=(function(){function n(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var t,e,r,i,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=sc(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if(ze(u))try{u()}catch(g){s=g instanceof _d?g.errors:[g]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var h=sc(f),A=h.next();!A.done;A=h.next()){var d=A.value;try{bw(d)}catch(g){s=s??[],g instanceof _d?s=Yd(Yd([],Hd(s)),Hd(g.errors)):s.push(g)}}}catch(g){r={error:g}}finally{try{A&&!A.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}if(s)throw new _d(s)}},n.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)bw(t);else{if(t instanceof n){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},n.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},n.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},n.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Iw(e,t)},n.prototype.remove=function(t){var e=this._finalizers;e&&Iw(e,t),t instanceof n&&t._removeParent(this)},n.EMPTY=(function(){var t=new n;return t.closed=!0,t})(),n})();Vd.EMPTY;function Ew(n){return n instanceof Vd||n&&"closed"in n&&ze(n.remove)&&ze(n.add)&&ze(n.unsubscribe)}function bw(n){ze(n)?n():n.unsubscribe()}var UN={Promise:void 0},GN={setTimeout:function(n,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,Yd([n,t],Hd(e)))},clearTimeout:function(n){return clearTimeout(n)},delegate:void 0};function xw(n){GN.setTimeout(function(){throw n})}function Bw(){}function zN(n){n()}var Jd=(function(n){zd(t,n);function t(e){var r=n.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Ew(e)&&e.add(r)):r.destination=_N,r}return t.create=function(e,r,i){return new tf(e,r,i)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Vd),HN=(function(){function n(t){this.partialObserver=t}return n.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){nf(r)}},n.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){nf(r)}else nf(t)},n.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){nf(e)}},n})(),tf=(function(n){zd(t,n);function t(e,r,i){var s=n.call(this)||this,o;return ze(e)||!e?o={next:e??void 0,error:r??void 0,complete:i??void 0}:o=e,s.destination=new HN(o),s}return t})(Jd);function nf(n){xw(n)}function YN(n){throw n}var _N={closed:!0,next:Bw,error:YN,complete:Bw},qd=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function vw(n){return n}function VN(n){return n.length===0?vw:n.length===1?n[0]:function(e){return n.reduce(function(r,i){return i(r)},e)}}var Ot=(function(){function n(t){t&&(this._subscribe=t)}return n.prototype.lift=function(t){var e=new n;return e.source=this,e.operator=t,e},n.prototype.subscribe=function(t,e,r){var i=this,s=qN(t)?t:new tf(t,e,r);return zN(function(){var o=i,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?i._subscribe(s):i._trySubscribe(s))}),s},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},n.prototype.forEach=function(t,e){var r=this;return e=Qw(e),new e(function(i,s){var o=new tf({next:function(a){try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:i});r.subscribe(o)})},n.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},n.prototype[qd]=function(){return this},n.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return VN(t)(this)},n.prototype.toPromise=function(t){var e=this;return t=Qw(t),new t(function(r,i){var s;e.subscribe(function(o){return s=o},function(o){return i(o)},function(){return r(s)})})},n.create=function(t){return new n(t)},n})();function Qw(n){var t;return(t=n??UN.Promise)!==null&&t!==void 0?t:Promise}function JN(n){return n&&ze(n.next)&&ze(n.error)&&ze(n.complete)}function qN(n){return n&&n instanceof Jd||JN(n)&&Ew(n)}function KN(n){return ze(n==null?void 0:n.lift)}function Bs(n){return function(t){if(KN(t))return t.lift(function(e){try{return n(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function oc(n,t,e,r,i){return new jN(n,t,e,r,i)}var jN=(function(n){zd(t,n);function t(e,r,i,s,o,a){var l=n.call(this,e)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=r?function(c){try{r(c)}catch(u){e.error(u)}}:n.prototype._next,l._error=s?function(c){try{s(c)}catch(u){e.error(u)}finally{this.unsubscribe()}}:n.prototype._error,l._complete=i?function(){try{i()}catch(c){e.error(c)}finally{this.unsubscribe()}}:n.prototype._complete,l}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;n.prototype.unsubscribe.call(this),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t})(Jd),WN=new Ot(function(n){return n.complete()});function XN(n){return n&&ze(n.schedule)}function Sw(n){return n[n.length-1]}function ZN(n){return XN(Sw(n))?n.pop():void 0}function $N(n,t){return typeof Sw(n)=="number"?n.pop():t}var Dw=(function(n){return n&&typeof n.length=="number"&&typeof n!="function"});function kw(n){return ze(n==null?void 0:n.then)}function Fw(n){return ze(n[qd])}function Mw(n){return Symbol.asyncIterator&&ze(n==null?void 0:n[Symbol.asyncIterator])}function Rw(n){return new TypeError("You provided "+(n!==null&&typeof n=="object"?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function e9(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Nw=e9();function Tw(n){return ze(n==null?void 0:n[Nw])}function Pw(n){return LN(this,arguments,function(){var e,r,i,s;return yw(this,function(o){switch(o.label){case 0:e=n.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,xs(e.read())];case 3:return r=o.sent(),i=r.value,s=r.done,s?[4,xs(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,xs(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function Lw(n){return ze(n==null?void 0:n.getReader)}function vs(n){if(n instanceof Ot)return n;if(n!=null){if(Fw(n))return t9(n);if(Dw(n))return n9(n);if(kw(n))return r9(n);if(Mw(n))return Ow(n);if(Tw(n))return i9(n);if(Lw(n))return s9(n)}throw Rw(n)}function t9(n){return new Ot(function(t){var e=n[qd]();if(ze(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function n9(n){return new Ot(function(t){for(var e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()})}function r9(n){return new Ot(function(t){n.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,xw)})}function i9(n){return new Ot(function(t){var e,r;try{for(var i=sc(n),s=i.next();!s.done;s=i.next()){var o=s.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}t.complete()})}function Ow(n){return new Ot(function(t){o9(n,t).catch(function(e){return t.error(e)})})}function s9(n){return Ow(Pw(n))}function o9(n,t){var e,r,i,s;return PN(this,void 0,void 0,function(){var o,a;return yw(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=ON(n),l.label=1;case 1:return[4,e.next()];case 2:if(r=l.sent(),!!r.done)return[3,4];if(o=r.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),i={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(s=e.return)?[4,s.call(e)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function gi(n,t,e,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var s=t.schedule(function(){e(),i?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(s),!i)return s}function Uw(n,t){return t===void 0&&(t=0),Bs(function(e,r){e.subscribe(oc(r,function(i){return gi(r,n,function(){return r.next(i)},t)},function(){return gi(r,n,function(){return r.complete()},t)},function(i){return gi(r,n,function(){return r.error(i)},t)}))})}function Gw(n,t){return t===void 0&&(t=0),Bs(function(e,r){r.add(n.schedule(function(){return e.subscribe(r)},t))})}function a9(n,t){return vs(n).pipe(Gw(t),Uw(t))}function c9(n,t){return vs(n).pipe(Gw(t),Uw(t))}function l9(n,t){return new Ot(function(e){var r=0;return t.schedule(function(){r===n.length?e.complete():(e.next(n[r++]),e.closed||this.schedule())})})}function u9(n,t){return new Ot(function(e){var r;return gi(e,t,function(){r=n[Nw](),gi(e,t,function(){var i,s,o;try{i=r.next(),s=i.value,o=i.done}catch(a){e.error(a);return}o?e.complete():e.next(s)},0,!0)}),function(){return ze(r==null?void 0:r.return)&&r.return()}})}function zw(n,t){if(!n)throw new Error("Iterable cannot be null");return new Ot(function(e){gi(e,t,function(){var r=n[Symbol.asyncIterator]();gi(e,t,function(){r.next().then(function(i){i.done?e.complete():e.next(i.value)})},0,!0)})})}function f9(n,t){return zw(Pw(n),t)}function A9(n,t){if(n!=null){if(Fw(n))return a9(n,t);if(Dw(n))return l9(n,t);if(kw(n))return c9(n,t);if(Mw(n))return zw(n,t);if(Tw(n))return u9(n,t);if(Lw(n))return f9(n,t)}throw Rw(n)}function h9(n,t){return t?A9(n,t):vs(n)}var d9=ww(function(n){return function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}});function Hw(n,t){return new Promise(function(e,r){var i=new tf({next:function(s){e(s),i.unsubscribe()},error:r,complete:function(){r(new d9)}});n.subscribe(i)})}function Yw(n,t){return Bs(function(e,r){var i=0;e.subscribe(oc(r,function(s){r.next(n.call(t,s,i++))}))})}function g9(n,t,e,r,i,s,o,a){var l=[],c=0,u=0,f=!1,h=function(){f&&!l.length&&!c&&t.complete()},A=function(g){return c<r?d(g):l.push(g)},d=function(g){c++;var p=!1;vs(e(g,u++)).subscribe(oc(t,function(C){t.next(C)},function(){p=!0},void 0,function(){if(p)try{c--;for(var C=function(){var w=l.shift();o||d(w)};l.length&&c<r;)C();h()}catch(w){t.error(w)}}))};return n.subscribe(oc(t,A,function(){f=!0,h()})),function(){}}function _w(n,t,e){return e===void 0&&(e=1/0),ze(t)?_w(function(r,i){return Yw(function(s,o){return t(r,s,i,o)})(vs(n(r,i)))},e):(typeof t=="number"&&(e=t),Bs(function(r,i){return g9(r,i,n,e)}))}function p9(n){return n===void 0&&(n=1/0),_w(vw,n)}function m9(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=ZN(n),r=$N(n,1/0),i=n;return i.length?i.length===1?vs(i[0]):p9(r)(h9(i,e)):WN}function C9(n,t,e,r,i){return function(s,o){var a=e,l=t,c=0;s.subscribe(oc(o,function(u){var f=c++;l=a?n(l,u,f):(a=!0,u)},(function(){a&&o.next(l),o.complete()})))}}function Vw(n,t){return Bs(C9(n,t,arguments.length>=2,!1,!0))}var y9=function(n,t){return n.push(t),n};function w9(){return Bs(function(n,t){Vw(y9,[])(n).subscribe(t)})}class I9{}class E9{constructor(){this.signals=new Set,this.abortController=new AbortController}addSignal(t=new I9){if(this.signal.aborted)throw new Error("cannot add a signal, already aborted!");this.signals.add(t),t.aborted?this.handleAborted(t):typeof t.addEventListener=="function"&&t.addEventListener("abort",()=>{this.handleAborted(t)})}handleAborted(t){this.signals.delete(t),this.signals.size===0&&this.abortController.abort()}get signal(){return this.abortController.signal}abort(){this.abortController.abort()}}class b9{constructor(){this.callbacks=new Set}addCallback(t=()=>{}){this.callbacks.add(t),this.currentMessage&&t(this.currentMessage)}callback(t){this.currentMessage=t;for(const e of this.callbacks)e(t)}}class Qs{constructor({fill:t,cache:e}){if(typeof t!="function")throw new TypeError("must pass a fill function");if(typeof e!="object")throw new TypeError("must pass a cache object");if(typeof e.get!="function"||typeof e.set!="function"||typeof e.delete!="function")throw new TypeError("cache must implement get(key), set(key, val), and and delete(key)");this.cache=e,this.fillCallback=t}static isAbortException(t){return t.name==="AbortError"||t.code==="ERR_ABORTED"||t.message==="AbortError: aborted"||t.message==="Error: aborted"}evict(t,e){this.cache.get(t)===e&&this.cache.delete(t)}fill(t,e,r,i){const s=new E9,o=new b9;o.addCallback(i);const a={aborter:s,promise:this.fillCallback(e,s.signal,l=>{o.callback(l)}),settled:!1,statusReporter:o,get aborted(){return this.aborter.signal.aborted}};a.aborter.addSignal(r),a.aborter.signal.addEventListener("abort",()=>{a.settled||this.evict(t,a)}),a.promise.then(()=>{a.settled=!0},()=>{a.settled=!0,this.evict(t,a)}).catch(l=>{throw console.error(l),l}),this.cache.set(t,a)}static checkSinglePromise(t,e){function r(){if(e!=null&&e.aborted)throw Object.assign(new Error("aborted"),{code:"ERR_ABORTED"})}return t.then(i=>(r(),i),i=>{throw r(),i})}has(t){return this.cache.has(t)}get(t,e,r,i){if(!r&&e instanceof AbortSignal)throw new TypeError("second get argument appears to be an AbortSignal, perhaps you meant to pass `null` for the fill data?");const s=this.cache.get(t);return s?s.aborted&&!s.settled?(this.evict(t,s),this.get(t,e,r,i)):s.settled?s.promise:(s.aborter.addSignal(r),s.statusReporter.addCallback(i),Qs.checkSinglePromise(s.promise,r)):(this.fill(t,e,r,i),Qs.checkSinglePromise(this.cache.get(t).promise,r))}delete(t){const e=this.cache.get(t);e&&(e.settled||e.aborter.abort(),this.cache.delete(t))}clear(){const t=this.cache.keys();let e=0;for(let r=t.next();!r.done;r=t.next())this.delete(r.value),e+=1;return e}}function x9(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Kd,Jw;function B9(){if(Jw)return Kd;Jw=1;class n{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){this.cache.set(e,r),this._size++,this._size>=this.maxSize&&(this._size=0,this.oldCache=this.cache,this.cache=new Map)}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){const r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){const r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache)yield e;for(const e of this.oldCache){const[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(const r of this.oldCache.keys())this.cache.has(r)||e++;return this._size+e}}return Kd=n,Kd}var v9=B9();const qw=x9(v9);class Ss{constructor(t){j(this,"ranges");this.ranges=t}get min(){return this.ranges[0].min}get max(){return this.ranges.at(-1).max}contains(t){for(const e of this.ranges)if(e.min<=t&&e.max>=t)return!0;return!1}isContiguous(){return this.ranges.length>1}getRanges(){return this.ranges.map(t=>new Ss([{min:t.min,max:t.max}]))}toString(){return this.ranges.map(t=>`[${t.min}-${t.max}]`).join(",")}union(t){const e=[...this.getRanges(),...t.getRanges()].sort((s,o)=>s.min<o.min?-1:s.min>o.min?1:s.max<o.max?-1:o.max>s.max?1:0),r=[];let i=e[0];for(const s of e)s.min>i.max+1?(r.push(i),i=s):s.max>i.max&&(i=new Ss([{min:i.min,max:s.max}]));return r.push(i),r.length===1?r[0]:new Ss(r)}}function Q9(n){return QN(n.subarray(2),void 0)}class S9 extends Error{constructor(e){super(e);j(this,"code");this.code="ERR_ABORTED"}}function D9(n){n.sort((i,s)=>i.offset-s.offset);const t=[];let e,r;for(const i of n)e&&r&&i.offset-r<=2e3?(e.length=e.length+i.length-r+i.offset,e.blocks.push(i)):t.push(e={blocks:[i],length:i.length,offset:i.offset}),r=e.offset+e.length;return t}function rf(n){if(n&&n.aborted)if(typeof DOMException>"u"){const t=new S9("aborted");throw t.code="ERR_ABORTED",t}else throw new DOMException("aborted","AbortError")}const jd=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Wd(n,t,e,r){return n<r&&t>=e}class Kw{constructor(t,e,r,i,s){j(this,"bbi");j(this,"refsByName");j(this,"cirTreeOffset");j(this,"isCompressed");j(this,"blockType");j(this,"cirTreePromise");j(this,"featureCache",new Qs({cache:new qw({maxSize:1e3}),fill:async({length:t,offset:e},r)=>this.bbi.read(t,e,{signal:r})}));if(this.bbi=t,this.refsByName=e,this.cirTreeOffset=r,this.isCompressed=i,this.blockType=s,!(r>=0))throw new Error("invalid cirTreeOffset!")}async readWigData(t,e,r,i,s){try{const o=this.refsByName[t];o===void 0&&i.complete();const a={chrId:o,start:e,end:r};this.cirTreePromise||(this.cirTreePromise=this.bbi.read(48,this.cirTreeOffset,s));const l=await this.cirTreePromise,u=new DataView(l.buffer).getUint32(4,!0);let f=[],h=0;const A=(C,w,b)=>{try{const x=C.subarray(w),B=new DataView(x.buffer,x.byteOffset,x.length);let E=0;const Q=B.getUint8(E);E+=2;const k=B.getUint16(E,!0);if(E+=2,Q===1){const S=[];for(let T=0;T<k;T++){const N=B.getUint32(E,!0);E+=4;const U=B.getUint32(E,!0);E+=4;const H=B.getUint32(E,!0);E+=4;const J=B.getUint32(E,!0);E+=4;const _=Number(B.getBigUint64(E,!0));E+=8;const Z=Number(B.getBigUint64(E,!0));E+=8,S.push({startChrom:N,startBase:U,endBase:J,endChrom:H,blockOffset:_,blockSize:Z,offset:E})}f=f.concat(S.filter(T=>d(T)).map(T=>({offset:T.blockOffset,length:T.blockSize})))}else if(Q===0){const S=[];for(let N=0;N<k;N++){const U=B.getUint32(E,!0);E+=4;const H=B.getUint32(E,!0);E+=4;const J=B.getUint32(E,!0);E+=4;const _=B.getUint32(E,!0);E+=4;const Z=Number(B.getBigUint64(E,!0));E+=8,S.push({startChrom:U,startBase:H,endChrom:J,endBase:_,blockOffset:Z,offset:E})}const T=S.filter(N=>d(N)).map(N=>N.blockOffset);T.length>0&&p(T,b+1)}}catch(y){i.error(y)}},d=C=>{const{startChrom:w,startBase:b,endChrom:y,endBase:x}=C;return(w<o||w===o&&b<=r)&&(y>o||y===o&&x>=e)},g=async(C,w,b)=>{try{const y=w.max-w.min,x=w.min,B=await this.featureCache.get(`${y}_${x}`,{length:y,offset:x},s==null?void 0:s.signal);for(const E of C)w.contains(E)&&(A(B,E-x,b),h-=1,h===0&&this.readFeatures(i,f,{...s,request:a}).catch(Q=>{i.error(Q)}))}catch(y){i.error(y)}},p=(C,w)=>{try{h+=C.length;const b=4+u*32;let y=new Ss([{min:C[0],max:C[0]+b}]);for(let x=1;x<C.length;x+=1){const B=new Ss([{min:C[x],max:C[x]+b}]);y=y.union(B)}y.getRanges().map(x=>g(C,x,w))}catch(b){i.error(b)}};p([this.cirTreeOffset+48],1);return}catch(o){i.error(o)}}parseSummaryBlock(t,e,r){const i=[];let s=e;const o=new DataView(t.buffer,t.byteOffset,t.length);for(;s<t.byteLength;){const a=o.getUint32(s,!0);s+=4;const l=o.getUint32(s,!0);s+=4;const c=o.getUint32(s,!0);s+=4;const u=o.getUint32(s,!0);s+=4;const f=o.getFloat32(s,!0);s+=4;const h=o.getFloat32(s,!0);s+=4;const A=o.getFloat32(s,!0);s+=4,s+=4,(!r||a===r.chrId&&Wd(l,c,r.start,r.end))&&i.push({start:l,end:c,maxScore:h,minScore:f,summary:!0,score:A/(u||1)})}return i}parseBigBedBlock(t,e,r,i){const s=[];let o=e;const a=t,l=new DataView(a.buffer,a.byteOffset,a.length);for(;o<t.byteLength;){const c=o,u=l.getUint32(o,!0);o+=4;const f=l.getInt32(o,!0);o+=4;const h=l.getInt32(o,!0);o+=4;let A=o;for(;A<t.length&&t[A]!==0;A++);const d=t.subarray(o,A),g=(jd==null?void 0:jd.decode(d))??d.toString();o=A+1,s.push({chromId:u,start:f,end:h,rest:g,uniqueId:`bb-${r+c}`})}return i?s.filter(c=>Wd(c.start,c.end,i.start,i.end)):s}parseBigWigBlock(t,e,r){const i=t.subarray(e),s=new DataView(i.buffer,i.byteOffset,i.length);let o=0;o+=4;const a=s.getInt32(o,!0);o+=8;const l=s.getUint32(o,!0);o+=4;const c=s.getUint32(o,!0);o+=4;const u=s.getUint8(o);o+=2;const f=s.getUint16(o,!0);o+=2;const h=new Array(f);switch(u){case 1:{for(let A=0;A<f;A++){const d=s.getInt32(o,!0);o+=4;const g=s.getInt32(o,!0);o+=4;const p=s.getFloat32(o,!0);o+=4,h[A]={start:d,end:g,score:p}}break}case 2:{for(let A=0;A<f;A++){const d=s.getInt32(o,!0);o+=4;const g=s.getFloat32(o,!0);o+=4,h[A]={score:g,start:d,end:d+c}}break}case 3:{for(let A=0;A<f;A++){const d=s.getFloat32(o,!0);o+=4;const g=a+A*l;h[A]={score:d,start:g,end:g+c}}break}}return r?h.filter(A=>Wd(A.start,A.end,r.start,r.end)):h}async readFeatures(t,e,r={}){try{const{blockType:i,isCompressed:s}=this,{signal:o,request:a}=r,l=D9(e);rf(o),await Promise.all(l.map(async c=>{rf(o);const{length:u,offset:f}=c,h=await this.featureCache.get(`${u}_${f}`,c,o);for(const A of c.blocks){rf(o);let d=h.subarray(A.offset-c.offset);switch(s&&(d=Q9(d)),rf(o),i){case"summary":{t.next(this.parseSummaryBlock(d,0,a));break}case"bigwig":{t.next(this.parseBigWigBlock(d,0,a));break}case"bigbed":{t.next(this.parseBigBedBlock(d,0,A.offset*256,a));break}default:console.warn(`Don't know what to do with ${i}`)}}})),t.complete()}catch(i){t.error(i)}}}const k9=-2003829722,jw=-2021002517;function Ds(n){return new DataView(n.buffer,n.byteOffset,n.length)}class Ww{constructor(t){j(this,"bbi");j(this,"headerP");j(this,"renameRefSeqs");const{filehandle:e,renameRefSeqs:r=o=>o,path:i,url:s}=t;if(this.renameRefSeqs=r,e)this.bbi=e;else if(s)this.bbi=new pn(s);else if(i)this.bbi=new at(i);else throw new Error("no file given")}getHeader(t){return this.headerP||(this.headerP=this._getHeader(t).catch(e=>{throw this.headerP=void 0,e})),this.headerP}async _getHeader(t){const e=await this._getMainHeader(t),r=await this._readChromTree(e,t);return{...e,...r}}async _getMainHeader(t,e=2e3){const r=await this.bbi.read(e,0,t),i=Ds(r),s=i.getInt32(0,!0);if(s!==k9&&s!==jw)throw new Error("not a BigWig/BigBed file");let o=0;const a=i.getInt32(o,!0);o+=4;const l=i.getUint16(o,!0);o+=2;const c=i.getUint16(o,!0);o+=2;const u=Number(i.getBigUint64(o,!0));o+=8;const f=Number(i.getBigUint64(o,!0));o+=8;const h=Number(i.getBigUint64(o,!0));o+=8;const A=i.getUint16(o,!0);o+=2;const d=i.getUint16(o,!0);o+=2;const g=Number(i.getBigUint64(o,!0));o+=8;const p=Number(i.getBigUint64(o,!0));o+=8;const C=i.getUint32(o,!0);o+=4;const w=Number(i.getBigUint64(o,!0));o+=8;const b=[];for(let E=0;E<c;E++){const Q=i.getUint32(o,!0);o+=4;const k=i.getUint32(o,!0);o+=4;const S=Number(i.getBigUint64(o,!0));o+=8;const T=Number(i.getBigUint64(o,!0));o+=8,b.push({reductionLevel:Q,reserved:k,dataOffset:S,indexOffset:T})}const y=a===jw?"bigbed":"bigwig";if(g>e||p>e-40)return this._getMainHeader(t,e*2);let x;if(p){const E=r.subarray(p);let Q=0;const k=Ds(E),S=Number(k.getBigUint64(Q,!0));Q+=8;const T=k.getFloat64(Q,!0);Q+=8;const N=k.getFloat64(Q,!0);Q+=8;const U=k.getFloat64(Q,!0);Q+=8;const H=k.getFloat64(Q,!0);Q+=8,x={scoreMin:T,scoreMax:N,scoreSum:U,scoreSumSquares:H,basesCovered:S}}else throw new Error("no stats");const B=new TextDecoder("utf8");return{zoomLevels:b,magic:a,extHeaderOffset:w,numZoomLevels:c,fieldCount:A,totalSummary:x,definedFieldCount:d,uncompressBufSize:C,asOffset:g,chromTreeOffset:u,totalSummaryOffset:p,unzoomedDataOffset:f,unzoomedIndexOffset:h,fileType:y,version:l,autoSql:g?B.decode(r.subarray(g,r.indexOf(0,g))):""}}async _readChromTree(t,e){const r=[],i={},s=t.chromTreeOffset,o=Ds(await this.bbi.read(32,s,e));let a=0;a+=4,a+=4;const l=o.getUint32(a,!0);a+=4;const c=o.getUint32(a,!0);a+=4,a+=8;const u=new TextDecoder("utf8"),f=async h=>{const A=await this.bbi.read(4,h),d=Ds(A);let g=0;const p=d.getUint8(g);g+=1,g+=1;const C=d.getUint16(g,!0);if(g+=2,p){const w=await this.bbi.read(C*(l+c),h+g),b=Ds(w);g=0;for(let y=0;y<C;y++){const x=u.decode(w.subarray(g,g+l)).replaceAll("\0","");g+=l;const B=b.getUint32(g,!0);g+=4;const E=b.getUint32(g,!0);g+=4,i[this.renameRefSeqs(x)]=B,r[B]={name:x,id:B,length:E}}}else{const w=[],b=Ds(await this.bbi.read(C*(l+8),h+g));g=0;for(let y=0;y<C;y++){g+=l;const x=Number(b.getBigUint64(g,!0));g+=8,w.push(f(x))}await Promise.all(w)}};return await f(s+32),{refsByName:i,refsByNumber:r}}async getUnzoomedView(t){const{unzoomedIndexOffset:e,refsByName:r,uncompressBufSize:i,fileType:s}=await this.getHeader(t);return new Kw(this.bbi,r,e,i>0,s)}async getFeatureStream(t,e,r,i){await this.getHeader(i);const s=this.renameRefSeqs(t);let o;const{basesPerSpan:a,scale:l}=i||{};return a?o=await this.getView(1/a,i):l?o=await this.getView(l,i):o=await this.getView(1,i),new Ot(c=>{o.readWigData(s,e,r,c,i).catch(u=>{c.error(u)})})}async getFeatures(t,e,r,i){const s=await this.getFeatureStream(t,e,r,i);return(await Hw(s.pipe(w9()))).flat()}}class F9 extends Ww{async getView(t,e){const{zoomLevels:r,refsByName:i,uncompressBufSize:s}=await this.getHeader(e),o=1/t,a=r.length-1;for(let l=a;l>=0;l-=1){const c=r[l];if(c&&c.reductionLevel<=2*o)return new Kw(this.bbi,i,c.indexOffset,s>0,"summary")}return this.getUnzoomedView(e)}}function M9(n){return n.filter(t=>!!t)}class R9 extends Ww{constructor(){super(...arguments);j(this,"readIndicesCache",new Qs({cache:new qw({maxSize:1}),fill:(e,r)=>this._readIndices({...e,signal:r})}))}readIndices(e={}){const{signal:r,...i}=e;return this.readIndicesCache.get(JSON.stringify(i),e,r)}async getView(e,r){return this.getUnzoomedView(r)}async _readIndices(e){const{extHeaderOffset:r}=await this.getHeader(e),i=await this.bbi.read(64,r),s=new DataView(i.buffer,i.byteOffset,i.length);let o=0;o+=2;const a=s.getUint16(o,!0);o+=2;const l=Number(s.getBigUint64(o,!0));if(o+=8,a===0)return[];const c=20,u=c*a,f=await this.bbi.read(u,l),h=[];for(let A=0;A<a;A+=1){const d=f.subarray(A*c),g=new DataView(d.buffer,d.byteOffset,d.length);let p=0;const C=g.getInt16(p,!0);p+=2;const w=g.getInt16(p,!0);p+=2;const b=Number(g.getBigUint64(p,!0));p+=12;const y=g.getInt16(p,!0);h.push({type:C,fieldcount:w,offset:b,field:y})}return h}async searchExtraIndexBlocks(e,r={}){const i=await this.readIndices(r);if(i.length===0)return[];const s=new TextDecoder("utf8"),o=i.map(async a=>{const{offset:l,field:c}=a,u=await this.bbi.read(32,l,r),f=new DataView(u.buffer,u.byteOffset,u.length);let h=0;h+=4;const A=f.getInt32(h,!0);h+=4;const d=f.getInt32(h,!0);h+=4;const g=f.getInt32(h,!0);h+=4,h+=8;const p=async C=>{const w=C,b=4+A*(d+g),x=await this.bbi.read(b,w,r),B=new DataView(x.buffer,x.byteOffset,x.length);let E=0;const Q=B.getInt8(E);E+=2;const k=B.getInt16(E,!0);E+=2;const S=[];if(Q===0){const T=[];for(let U=0;U<k;U++){const H=s.decode(x.subarray(E,E+d)).replaceAll("\0","");E+=d;const J=Number(B.getBigUint64(E,!0));E+=8,T.push({key:H,offset:J})}let N=0;for(const{key:U,offset:H}of T){if(e.localeCompare(U)<0&&N)return p(N);N=H}return p(N)}else if(Q===1){for(let T=0;T<k;T++){const N=s.decode(x.subarray(E,E+d)).replaceAll("\0","");E+=d;const U=Number(B.getBigUint64(E,!0));E+=8;const H=B.getUint32(E,!0);E+=4;const J=B.getUint32(E,!0);E+=4,S.push({key:N,offset:U,length:H,reserved:J})}for(const T of S)if(T.key===e)return{...T,field:c};return}};return p(l+32)});return M9(await Promise.all(o))}async searchExtraIndex(e,r={}){const i=await this.searchExtraIndexBlocks(e,r);if(i.length===0)return[];const s=await this.getUnzoomedView(r),o=i.map(l=>new Ot(c=>{s.readFeatures(c,[l],r).catch(u=>{c.error(u)})}).pipe(Vw((c,u)=>c.concat(u)),Yw(c=>{for(const u of c)u.field=l.field;return c})));return(await Hw(m9(...o))).filter(l=>{var c;return((c=l.rest)==null?void 0:c.split(" ")[(l.field||0)-3])===e})}}const Xw=Object.freeze(Object.defineProperty({__proto__:null,BigBed:R9,BigWig:F9},Symbol.toStringTag,{value:"Module"}));function N9(n,t){function e(){this.constructor=n}e.prototype=t.prototype,n.prototype=new e}function ks(n,t,e,r){this.message=n,this.expected=t,this.found=e,this.location=r,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ks)}N9(ks,Error),ks.buildMessage=function(n,t){var e={literal:function(c){return'"'+i(c.text)+'"'},class:function(c){var u="",f;for(f=0;f<c.parts.length;f++)u+=c.parts[f]instanceof Array?s(c.parts[f][0])+"-"+s(c.parts[f][1]):s(c.parts[f]);return"["+(c.inverted?"^":"")+u+"]"},any:function(c){return"any character"},end:function(c){return"end of input"},other:function(c){return c.description}};function r(c){return c.charCodeAt(0).toString(16).toUpperCase()}function i(c){return c.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+r(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+r(u)})}function s(c){return c.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(u){return"\\x0"+r(u)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(u){return"\\x"+r(u)})}function o(c){return e[c.type](c)}function a(c){var u=new Array(c.length),f,h;for(f=0;f<c.length;f++)u[f]=o(c[f]);if(u.sort(),u.length>0){for(f=1,h=1;f<u.length;f++)u[f-1]!==u[f]&&(u[h]=u[f],h++);u.length=h}switch(u.length){case 1:return u[0];case 2:return u[0]+" or "+u[1];default:return u.slice(0,-1).join(", ")+", or "+u[u.length-1]}}function l(c){return c?'"'+i(c)+'"':"end of input"}return"Expected "+a(n)+" but "+l(t)+" found."};function T9(n,t){t=t!==void 0?t:{};var e={},r={declaration:UE},i=UE,s="(",o=pe("(",!1),a=")",l=pe(")",!1),c=function(I,M,O,z){return{type:I,name:M,comment:O,fields:z}},u="simple",f=pe("simple",!1),h="object",A=pe("object",!1),d="table",g=pe("table",!1),p="auto",C=pe("auto",!1),w="primary",b=pe("primary",!1),y="index",x=pe("index",!1),B="unique",E=pe("unique",!1),Q=function(I,M){return M},k=function(I,M){return I.name&&M.unshift(I),M},S="#",T=pe("#",!1),N=";",U=pe(";",!1),H=function(I,M,O){return{type:I,name:M,comment:O}},J="[",_=pe("[",!1),Z="]",le=pe("]",!1),de=function(I,M,O,z){return{type:I,size:M,name:O,comment:z}},ge=function(I,M,O,z){return{type:I,vals:M,name:O,comment:z}},Fe=",",Bn=pe(",",!1),vn=function(I,M){return M.unshift(I),M},Mr="int",Ro=pe("int",!1),Le="uint",Vt=pe("uint",!1),Bt="short",Y=pe("short",!1),$="ushort",ie=pe("ushort",!1),L="byte",lt=pe("byte",!1),he="ubyte",pt=pe("ubyte",!1),ut="float",Jn=pe("float",!1),al="char",U7=pe("char",!1),IE="string",G7=pe("string",!1),EE="lstring",z7=pe("lstring",!1),bE="enum",H7=pe("enum",!1),xE="double",Y7=pe("double",!1),BE="bigint",_7=pe("bigint",!1),vE="set",V7=pe("set",!1),J7=function(I,M){return I+" "+M},q7=/^[a-zA-Z_]/,K7=cl([["a","z"],["A","Z"],"_"],!1,!1),QE=/^[a-zA-Z0-9_]/,SE=cl([["a","z"],["A","Z"],["0","9"],"_"],!1,!1),j7=function(I){return TE()},DE=/^[^\n\r]/,kE=cl([`
|
|
722
|
+
`,"\r"],!0,!1),W7=function(I){return I.join("").replace(/^"/,"").replace(/"$/,"")},X7=PE("integer"),FE=/^[0-9]/,ME=cl([["0","9"]],!1,!1),Z7=function(){return parseInt(TE(),10)},$7=PE("whitespace"),RE=/^[ \t\n\r]/,NE=cl([" "," ",`
|
|
723
|
+
`,"\r"],!1,!1),v=0,mt=0,Ff=[{line:1,column:1}],Qn=0,v0=[],K=0,Mf;if("startRule"in t){if(!(t.startRule in r))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');i=r[t.startRule]}function TE(){return n.substring(mt,v)}function pe(I,M){return{type:"literal",text:I,ignoreCase:M}}function cl(I,M,O){return{type:"class",parts:I,inverted:M,ignoreCase:O}}function eP(){return{type:"end"}}function PE(I){return{type:"other",description:I}}function LE(I){var M=Ff[I],O;if(M)return M;for(O=I-1;!Ff[O];)O--;for(M=Ff[O],M={line:M.line,column:M.column};O<I;)n.charCodeAt(O)===10?(M.line++,M.column=1):M.column++,O++;return Ff[I]=M,M}function OE(I,M){var O=LE(I),z=LE(M);return{start:{offset:I,line:O.line,column:O.column},end:{offset:M,line:z.line,column:z.column}}}function W(I){v<Qn||(v>Qn&&(Qn=v,v0=[]),v0.push(I))}function tP(I,M,O){return new ks(ks.buildMessage(I,M),I,M,O)}function UE(){var I,M,O,z,q,Ie,Se,Jt,Rr,qn,Nr,Kn,Tr,jn;return I=v,M=oe(),M!==e?(O=GE(),O!==e?(z=oe(),z!==e?(q=zE(),q!==e?(Ie=oe(),Ie!==e?(Se=Rf(),Se!==e?(Jt=oe(),Jt!==e?(n.charCodeAt(v)===40?(Rr=s,v++):(Rr=e,K===0&&W(o)),Rr!==e?(qn=oe(),qn!==e?(Nr=nP(),Nr!==e?(Kn=oe(),Kn!==e?(n.charCodeAt(v)===41?(Tr=a,v++):(Tr=e,K===0&&W(l)),Tr!==e?(jn=oe(),jn!==e?(mt=I,M=c(O,q,Se,Nr),I=M):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e),I}function GE(){var I;return n.substr(v,6)===u?(I=u,v+=6):(I=e,K===0&&W(f)),I===e&&(n.substr(v,6)===h?(I=h,v+=6):(I=e,K===0&&W(A)),I===e&&(n.substr(v,5)===d?(I=d,v+=5):(I=e,K===0&&W(g)))),I}function zE(){var I,M,O,z;return I=rn(),I===e&&(I=v,M=rn(),M!==e?(O=HE(),O!==e?(M=[M,O],I=M):(v=I,I=e)):(v=I,I=e),I===e&&(I=v,M=rn(),M!==e?(n.substr(v,4)===p?(O=p,v+=4):(O=e,K===0&&W(C)),O!==e?(M=[M,O],I=M):(v=I,I=e)):(v=I,I=e),I===e&&(I=v,M=rn(),M!==e?(O=HE(),O!==e?(n.substr(v,4)===p?(z=p,v+=4):(z=e,K===0&&W(C)),z!==e?(M=[M,O,z],I=M):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)))),I}function HE(){var I;return n.substr(v,7)===w?(I=w,v+=7):(I=e,K===0&&W(b)),I===e&&(n.substr(v,5)===y?(I=y,v+=5):(I=e,K===0&&W(x)),I===e&&(n.substr(v,6)===B?(I=B,v+=6):(I=e,K===0&&W(E)))),I}function Rf(){var I;return I=YE(),I===e&&(I=oe()),I}function nP(){var I,M,O,z,q,Ie,Se;if(I=v,M=Q0(),M!==e)if(O=oe(),O!==e){for(z=[],q=v,Ie=oe(),Ie!==e?(Se=Q0(),Se!==e?(mt=q,Ie=Q(M,Se),q=Ie):(v=q,q=e)):(v=q,q=e);q!==e;)z.push(q),q=v,Ie=oe(),Ie!==e?(Se=Q0(),Se!==e?(mt=q,Ie=Q(M,Se),q=Ie):(v=q,q=e)):(v=q,q=e);z!==e?(q=oe(),q!==e?(mt=I,M=k(M,z),I=M):(v=I,I=e)):(v=I,I=e)}else v=I,I=e;else v=I,I=e;return I}function rP(){var I;return n.charCodeAt(v)===35?(I=S,v++):(I=e,K===0&&W(T)),I}function iP(){var I,M,O,z,q;return I=v,M=oe(),M!==e?(O=rP(),O!==e?(z=YE(),z!==e?(q=oe(),q!==e?(M=[M,O,z,q],I=M):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e),I}function Q0(){var I,M,O,z,q,Ie,Se,Jt,Rr,qn,Nr,Kn,Tr,jn;return I=v,M=S0(),M!==e?(O=oe(),O!==e?(z=rn(),z!==e?(q=oe(),q!==e?(n.charCodeAt(v)===59?(Ie=N,v++):(Ie=e,K===0&&W(U)),Ie!==e?(Se=oe(),Se!==e?(Jt=Rf(),Jt!==e?(mt=I,M=H(M,z,Jt),I=M):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e),I===e&&(I=v,M=S0(),M!==e?(O=oe(),O!==e?(n.charCodeAt(v)===91?(z=J,v++):(z=e,K===0&&W(_)),z!==e?(q=oe(),q!==e?(Ie=oP(),Ie!==e?(Se=oe(),Se!==e?(n.charCodeAt(v)===93?(Jt=Z,v++):(Jt=e,K===0&&W(le)),Jt!==e?(Rr=oe(),Rr!==e?(qn=rn(),qn!==e?(Nr=oe(),Nr!==e?(n.charCodeAt(v)===59?(Kn=N,v++):(Kn=e,K===0&&W(U)),Kn!==e?(Tr=oe(),Tr!==e?(jn=Rf(),jn!==e?(mt=I,M=de(M,Ie,qn,jn),I=M):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e),I===e&&(I=v,M=S0(),M!==e?(O=oe(),O!==e?(n.charCodeAt(v)===40?(z=s,v++):(z=e,K===0&&W(o)),z!==e?(q=oe(),q!==e?(Ie=sP(),Ie!==e?(Se=oe(),Se!==e?(n.charCodeAt(v)===41?(Jt=a,v++):(Jt=e,K===0&&W(l)),Jt!==e?(Rr=oe(),Rr!==e?(qn=rn(),qn!==e?(Nr=oe(),Nr!==e?(n.charCodeAt(v)===59?(Kn=N,v++):(Kn=e,K===0&&W(U)),Kn!==e?(Tr=oe(),Tr!==e?(jn=Rf(),jn!==e?(mt=I,M=ge(M,Ie,qn,jn),I=M):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e)):(v=I,I=e),I===e&&(I=iP()))),I}function sP(){var I,M,O,z,q,Ie,Se;if(I=v,M=rn(),M!==e){for(O=[],z=v,n.charCodeAt(v)===44?(q=Fe,v++):(q=e,K===0&&W(Bn)),q!==e?(Ie=oe(),Ie!==e?(Se=rn(),Se!==e?(mt=z,q=Q(M,Se),z=q):(v=z,z=e)):(v=z,z=e)):(v=z,z=e);z!==e;)O.push(z),z=v,n.charCodeAt(v)===44?(q=Fe,v++):(q=e,K===0&&W(Bn)),q!==e?(Ie=oe(),Ie!==e?(Se=rn(),Se!==e?(mt=z,q=Q(M,Se),z=q):(v=z,z=e)):(v=z,z=e)):(v=z,z=e);O!==e?(mt=I,M=vn(M,O),I=M):(v=I,I=e)}else v=I,I=e;return I}function S0(){var I,M,O,z;return n.substr(v,3)===Mr?(I=Mr,v+=3):(I=e,K===0&&W(Ro)),I===e&&(n.substr(v,4)===Le?(I=Le,v+=4):(I=e,K===0&&W(Vt)),I===e&&(n.substr(v,5)===Bt?(I=Bt,v+=5):(I=e,K===0&&W(Y)),I===e&&(n.substr(v,6)===$?(I=$,v+=6):(I=e,K===0&&W(ie)),I===e&&(n.substr(v,4)===L?(I=L,v+=4):(I=e,K===0&&W(lt)),I===e&&(n.substr(v,5)===he?(I=he,v+=5):(I=e,K===0&&W(pt)),I===e&&(n.substr(v,5)===ut?(I=ut,v+=5):(I=e,K===0&&W(Jn)),I===e&&(n.substr(v,4)===al?(I=al,v+=4):(I=e,K===0&&W(U7)),I===e&&(n.substr(v,6)===IE?(I=IE,v+=6):(I=e,K===0&&W(G7)),I===e&&(n.substr(v,7)===EE?(I=EE,v+=7):(I=e,K===0&&W(z7)),I===e&&(n.substr(v,4)===bE?(I=bE,v+=4):(I=e,K===0&&W(H7)),I===e&&(n.substr(v,6)===xE?(I=xE,v+=6):(I=e,K===0&&W(Y7)),I===e&&(n.substr(v,6)===BE?(I=BE,v+=6):(I=e,K===0&&W(_7)),I===e&&(n.substr(v,3)===vE?(I=vE,v+=3):(I=e,K===0&&W(V7)),I===e&&(I=v,M=GE(),M!==e?(O=oe(),O!==e?(z=zE(),z!==e?(mt=I,M=J7(M,z),I=M):(v=I,I=e)):(v=I,I=e)):(v=I,I=e))))))))))))))),I}function oP(){var I;return I=aP(),I===e&&(I=rn()),I}function rn(){var I,M,O,z,q;if(I=v,M=v,q7.test(n.charAt(v))?(O=n.charAt(v),v++):(O=e,K===0&&W(K7)),O!==e){for(z=[],QE.test(n.charAt(v))?(q=n.charAt(v),v++):(q=e,K===0&&W(SE));q!==e;)z.push(q),QE.test(n.charAt(v))?(q=n.charAt(v),v++):(q=e,K===0&&W(SE));z!==e?(O=[O,z],M=O):(v=M,M=e)}else v=M,M=e;return M!==e&&(mt=I,M=j7()),I=M,I}function YE(){var I,M,O;for(I=v,M=[],DE.test(n.charAt(v))?(O=n.charAt(v),v++):(O=e,K===0&&W(kE));O!==e;)M.push(O),DE.test(n.charAt(v))?(O=n.charAt(v),v++):(O=e,K===0&&W(kE));return M!==e&&(mt=I,M=W7(M)),I=M,I}function aP(){var I,M,O,z;if(K++,I=v,M=oe(),M!==e){if(O=[],FE.test(n.charAt(v))?(z=n.charAt(v),v++):(z=e,K===0&&W(ME)),z!==e)for(;z!==e;)O.push(z),FE.test(n.charAt(v))?(z=n.charAt(v),v++):(z=e,K===0&&W(ME));else O=e;O!==e?(mt=I,M=Z7(),I=M):(v=I,I=e)}else v=I,I=e;return K--,I===e&&(M=e,K===0&&W(X7)),I}function oe(){var I,M;for(K++,I=[],RE.test(n.charAt(v))?(M=n.charAt(v),v++):(M=e,K===0&&W(NE));M!==e;)I.push(M),RE.test(n.charAt(v))?(M=n.charAt(v),v++):(M=e,K===0&&W(NE));return K--,I===e&&(M=e,K===0&&W($7)),I}if(Mf=i(),Mf!==e&&v===n.length)return Mf;throw Mf!==e&&v<n.length&&W(eP()),tP(v0,Qn<n.length?n.charAt(Qn):null,Qn<n.length?OE(Qn,Qn+1):OE(Qn,Qn))}const Zw={SyntaxError:ks,parse:T9},Xd=Object.fromEntries(Object.entries(Object.freeze(Object.defineProperty({__proto__:null,bigChain:`table bigChain
|
|
724
724
|
"bigChain pairwise alignment"
|
|
725
725
|
(
|
|
726
726
|
string chrom; "Reference sequence chromosome or scaffold"
|
|
@@ -879,10 +879,12 @@ chrM 16299`};function qD(n){if(!(n in _1))throw new Error(`Unknown assembly: ${n
|
|
|
879
879
|
float score; "Floating point score."
|
|
880
880
|
char[1] leftStatus; "Gap/break annotation for preceding block"
|
|
881
881
|
char[1] rightStatus; "Gap/break annotation for following block"
|
|
882
|
-
)`},Symbol.toStringTag,{value:"Module"}))).map(([n,e])=>[n,vb.parse(e.trim())]));function Xh(n){const e=new Set(["uint","int","float","long"]);return{...n,fields:n.fields.map(t=>({...t,isArray:t.size&&t.type!=="char",arrayIsNumeric:t.size&&e.has(t.type),isNumeric:!t.size&&e.has(t.type)})).filter(t=>!!t.name)}}const Gk={".":0,"-":-1,"+":1};function Hk(n){var e;return n.length>=12&&!Number.isNaN(Number.parseInt(n[9],10))&&((e=n[10])==null?void 0:e.split(",").filter(t=>!!t).length)===Number.parseInt(n[9],10)}class Vk{constructor(e={}){if(e.autoSql)this.autoSql=Xh(vb.parse(e.autoSql));else if(e.type){if(!Yh[e.type])throw new Error("Type not found");this.autoSql=Xh(Yh[e.type])}else this.autoSql=Xh(Yh.defaultBedSchema),this.attemptDefaultBed=!0}parseLine(e,t={}){const{autoSql:r}=this,{uniqueId:i}=t,s=Array.isArray(e)?e:e.split(" ");let o={};if(!this.attemptDefaultBed||this.attemptDefaultBed&&Hk(s))for(let a=0;a<r.fields.length;a++){const c=r.fields[a];let u=s[a];const{isNumeric:l,isArray:f,arrayIsNumeric:d,name:h}=c;if(u==null)break;if(u!=="."){if(l){const p=Number(u);u=Number.isNaN(p)?u:p}else f&&(u=u.split(","),u.at(-1)===""&&u.pop(),d&&(u=u.map(Number)));o[h]=u}}else{const a=["chrom","chromStart","chromEnd","name"];o=Object.fromEntries(s.map((c,u)=>[a[u]||"field"+u,c])),o.chromStart=+o.chromStart,o.chromEnd=+o.chromEnd,Number.isNaN(Number.parseFloat(o.field4))||(o.score=+o.field4,delete o.field4),(o.field5==="+"||o.field5==="-")&&(o.strand=o.field5,delete o.field5)}return i&&(o.uniqueId=i),o.strand=Gk[o.strand]||0,o.chrom=decodeURIComponent(o.chrom),o}}const _k=Object.freeze(Object.defineProperty({__proto__:null,default:Vk},Symbol.toStringTag,{value:"Module"}));let Zh=class{constructor(e,t,r,i){this.minv=e,this.maxv=t,this.bin=r,this._fetchedSize=i}toUniqueString(){return`${this.minv.toString()}..${this.maxv.toString()} (bin ${this.bin}, fetchedSize ${this.fetchedSize()})`}toString(){return this.toUniqueString()}compareTo(e){return this.minv.compareTo(e.minv)||this.maxv.compareTo(e.maxv)||this.bin-e.bin}fetchedSize(){return this._fetchedSize!==void 0?this._fetchedSize:this.maxv.blockPosition+65536-this.minv.blockPosition}},Sb=class{constructor({filehandle:e,renameRefSeq:t=r=>r}){this.filehandle=e,this.renameRefSeq=t}};const Eb=65536,jk=Eb*Eb;function Qk(n,e=0){const t=n[e]|n[e+1]<<8|n[e+2]<<16|n[e+3]<<24;return((n[e+4]|n[e+5]<<8|n[e+6]<<16|n[e+7]<<24)>>>0)*jk+(t>>>0)}function Wk(n,e){return e.minv.blockPosition-n.maxv.blockPosition<65e3&&e.maxv.blockPosition-n.minv.blockPosition<5e6}function qk(n={}){return"aborted"in n?{signal:n}:n}function Cb(n,e){const t=[];let r;if(n.length===0)return n;n.sort((i,s)=>{const o=i.minv.blockPosition-s.minv.blockPosition;return o===0?i.minv.dataPosition-s.minv.dataPosition:o});for(const i of n)(!e||i.maxv.compareTo(e)>0)&&(r===void 0?(t.push(i),r=i):Wk(r,i)?i.maxv.compareTo(r.maxv)>0&&(r.maxv=i.maxv):(t.push(i),r=i));return t}function Db(n,e){return{lineCount:Qk(n,e)}}function Xo(n,e){return n?n.compareTo(e)>0?e:n:e}function Yk(n,e=t=>t){let t=0,r=0;const i=[],s={};for(let o=0;o<n.length;o+=1)if(!n[o]){if(r<o){let a="";for(let c=r;c<o;c++)a+=String.fromCharCode(n[c]);a=e(a),i[t]=a,s[a]=t}r=o+1,t+=1}return{refNameToId:s,refIdToName:i}}function Xk(n){let e=0;for(const i of n)e+=i.length;const t=new Uint8Array(e);let r=0;for(const i of n)t.set(i,r),r+=i.length;return t}async function Zk(n){const e=[];for await(const t of n)for(const r of t)e.push(r);return e}let Ib=class{constructor(e,t){this.blockPosition=e,this.dataPosition=t}toString(){return`${this.blockPosition}:${this.dataPosition}`}compareTo(e){return this.blockPosition-e.blockPosition||this.dataPosition-e.dataPosition}};function Xn(n,e=0,t=!1){if(t)throw new Error("big-endian virtual file offsets not implemented");return new Ib(n[e+7]*1099511627776+n[e+6]*4294967296+n[e+5]*16777216+n[e+4]*65536+n[e+3]*256+n[e+2],n[e+1]<<8|n[e])}const Kk=21578050;function Jk(n,e){return n-n%e}function $k(n,e){return n-n%e+e}function e7(n,e){return e-=1,[[0,0],[1+(n>>26),1+(e>>26)],[9+(n>>23),9+(e>>23)],[73+(n>>20),73+(e>>20)],[585+(n>>17),585+(e>>17)],[4681+(n>>14),4681+(e>>14)]]}class qi extends Sb{async lineCount(e,t){var i,s;return((s=(i=(await this.parse(t)).indices(e))==null?void 0:i.stats)==null?void 0:s.lineCount)||0}async _parse(e){const t=await this.filehandle.readFile(),r=new DataView(t.buffer);if(r.getUint32(0,!0)!==Kk)throw new Error("Not a BAI file");const i=r.getInt32(4,!0),o=((1<<(5+1)*3)-1)/7;let a=8,c;const u=[];for(let d=0;d<i;d++){u.push(a);const h=r.getInt32(a,!0);a+=4;for(let g=0;g<h;g+=1){const y=r.getUint32(a,!0);if(a+=4,y===o+1)a+=4,a+=32;else{if(y>o+1)throw new Error("bai index contains too many bins, please use CSI");{const x=r.getInt32(a,!0);a+=4;for(let A=0;A<x;A++)a+=8,a+=8}}}const p=r.getInt32(a,!0);a+=4;const m=new Array(p);for(let g=0;g<p;g++){const y=Xn(t,a);a+=8,c=Xo(c,y),m[g]=y}}const l=new Vr({maxSize:5});function f(d){let h=u[d];if(h===void 0)return;const p=r.getInt32(h,!0);let m;h+=4;const g={};for(let A=0;A<p;A+=1){const w=r.getUint32(h,!0);if(h+=4,w===o+1)h+=4,m=Db(t,h+16),h+=32;else{if(w>o+1)throw new Error("bai index contains too many bins, please use CSI");{const S=r.getInt32(h,!0);h+=4;const C=new Array(S);for(let v=0;v<S;v++){const T=Xn(t,h);h+=8;const P=Xn(t,h);h+=8,c=Xo(c,T),C[v]=new Zh(T,P,w)}g[w]=C}}}const y=r.getInt32(h,!0);h+=4;const x=new Array(y);for(let A=0;A<y;A++){const w=Xn(t,h);h+=8,c=Xo(c,w),x[A]=w}return{binIndex:g,linearIndex:x,stats:m}}return{bai:!0,firstDataLine:c,maxBlockSize:65536,indices:d=>{if(!l.has(d)){const h=f(d);return h&&l.set(d,h),h}return l.get(d)},refCount:i}}async indexCov(e,t,r,i){const o=t!==void 0,c=(await this.parse(i)).indices(e);if(!c)return[];const{linearIndex:u=[],stats:l}=c;if(u.length===0)return[];const f=r===void 0?(u.length-1)*16384:$k(r,16384),d=t===void 0?0:Jk(t,16384),h=o?new Array((f-d)/16384):new Array(u.length-1),p=u[u.length-1].blockPosition;if(f>(u.length-1)*16384)throw new Error("query outside of range of linear index");let m=u[d/16384].blockPosition;for(let g=d/16384,y=0;g<f/16384;g++,y++)h[y]={score:u[g+1].blockPosition-m,start:g*16384,end:g*16384+16384},m=u[g+1].blockPosition;return h.map(g=>({...g,score:g.score*((l==null?void 0:l.lineCount)||0)/p}))}async blocksForRange(e,t,r,i={}){t<0&&(t=0);const s=await this.parse(i);if(!s)return[];const o=s.indices(e);if(!o)return[];const a=e7(t,r),c=[];for(const[h,p]of a)for(let m=h;m<=p;m++)if(o.binIndex[m]){const g=o.binIndex[m];for(const y of g)c.push(new Zh(y.minv,y.maxv,m))}const u=o.linearIndex.length;let l;const f=Math.min(t>>14,u-1),d=Math.min(r>>14,u-1);for(let h=f;h<=d;++h){const p=o.linearIndex[h];p&&(!l||p.compareTo(l)<0)&&(l=p)}return Cb(c,l)}async parse(e={}){return this.setupP||(this.setupP=this._parse(e).catch(t=>{throw this.setupP=void 0,t})),this.setupP}async hasRefSeq(e,t={}){var i;return!!((i=(await this.parse(t)).indices(e))!=null&&i.binIndex)}}function t7(n){let e=0;for(const t of n)e+=t.length;return e}function Tb(n,e){const t=new Uint8Array(e??t7(n));let r=0;for(const i of n)t.set(i,r),r+=i.length;return t}async function Kh(n){try{let e,t=0,r;const i=[];let s=0;do{const o=n.subarray(t);if(r=new dn(void 0),{strm:e}=r,r.push(o,zr),r.err)throw new Error(r.msg);t+=e.next_in;const a=r.result;i.push(a),s+=a.length}while(e.avail_in);return Tb(i,s)}catch(e){throw/incorrect header check/.exec(`${e}`)?new Error("problem decompressing block: incorrect gzip header check"):e}}async function n7(n,e,t){try{let r;const{minv:i,maxv:s}=e;let o=i.blockPosition,a=i.dataPosition;const c=[],u=[],l=[];let f=0,d=!1,h=0;do{const p=n.subarray(o-i.blockPosition),m=o.toString();let g,y;const x=t==null?void 0:t.get(m);if(x)g=x.buffer,y=x.nextIn,d=!0;else{const S=new dn(void 0);if({strm:r}=S,S.push(p,zr),S.err)throw new Error(S.msg);g=S.result,y=r.next_in,d=!1,t==null||t.set(m,{buffer:g,nextIn:y})}c.push(g);let A=g.length;u.push(o),l.push(a),c.length===1&&i.dataPosition&&(c[0]=c[0].subarray(i.dataPosition),A=c[0].length);const w=o;if(o+=y,a+=A,w>=s.blockPosition){c[f]=c[f].subarray(0,s.blockPosition===i.blockPosition?s.dataPosition-i.dataPosition+1:s.dataPosition+1),h+=c[f].length,u.push(o),l.push(a);break}h+=A,f++}while(d?o<n.length+i.blockPosition:r.avail_in);return{buffer:Tb(c,h),cpositions:u,dpositions:l}}catch(r){throw/incorrect header check/.exec(`${r}`)?new Error("problem decompressing block: incorrect gzip header check"):r}}let Jh=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(Jh=new Int32Array(Jh));const r7=(n,e)=>{let t=-1;for(let r=0;r<n.length;r++)t=Jh[(t^n[r])&255]^t>>>8;return t^-1},i7=21582659,s7=38359875;function o7(n,e){return n*2**e}function Bb(n,e){return Math.floor(n/2**e)}let xu=class extends Sb{constructor(){super(...arguments),this.maxBinNumber=0,this.depth=0,this.minShift=0}async lineCount(e,t){var i,s;return((s=(i=(await this.parse(t)).indices(e))==null?void 0:i.stats)==null?void 0:s.lineCount)||0}async indexCov(){return[]}parseAuxData(e,t){const r=new DataView(e.buffer),i=r.getUint32(t,!0),s=i&65536?"zero-based-half-open":"1-based-closed",o={0:"generic",1:"SAM",2:"VCF"}[i&15];if(!o)throw new Error(`invalid Tabix preset format flags ${i}`);const a={ref:r.getInt32(t+4,!0),start:r.getInt32(t+8,!0),end:r.getInt32(t+12,!0)},c=r.getInt32(t+16,!0),u=c?String.fromCharCode(c):"",l=r.getInt32(t+20,!0),f=r.getInt32(t+24,!0);return{columnNumbers:a,coordinateType:s,metaValue:c,metaChar:u,skipLines:l,format:o,formatFlags:i,...Yk(e.subarray(t+28,t+28+f),this.renameRefSeq)}}async _parse(e){const t=await this.filehandle.readFile(e),r=await Kh(t),i=new DataView(r.buffer);let s;const o=i.getUint32(0,!0);if(o===i7)s=1;else if(o===s7)s=2;else throw new Error(`Not a CSI file ${o}`);this.minShift=i.getInt32(4,!0),this.depth=i.getInt32(8,!0),this.maxBinNumber=((1<<(this.depth+1)*3)-1)/7;const a=this.maxBinNumber,c=i.getInt32(12,!0),u=c>=30?this.parseAuxData(r,16):void 0,l=i.getInt32(16+c,!0);let f=16+c+4,d;const h=[];for(let g=0;g<l;g++){h.push(f);const y=i.getInt32(f,!0);f+=4;for(let x=0;x<y;x++){const A=i.getUint32(f,!0);if(f+=4,A>this.maxBinNumber)f+=44;else{f+=8;const w=i.getInt32(f,!0);f+=4;for(let S=0;S<w;S+=1){const C=Xn(r,f);f+=8,f+=8,d=Xo(d,C)}}}}const p=new Vr({maxSize:5});function m(g){let y=h[g];if(y===void 0)return;const x=i.getInt32(y,!0);y+=4;const A={};let w;for(let S=0;S<x;S++){const C=i.getUint32(y,!0);if(y+=4,C>a)w=Db(r,y+28),y+=44;else{d=Xo(d,Xn(r,y)),y+=8;const v=i.getInt32(y,!0);y+=4;const T=new Array(v);for(let P=0;P<v;P+=1){const F=Xn(r,y);y+=8;const k=Xn(r,y);y+=8,T[P]=new Zh(F,k,C)}A[C]=T}}return{binIndex:A,stats:w}}return{csiVersion:s,firstDataLine:d,indices:g=>{if(!p.has(g)){const y=m(g);return y&&p.set(g,y),y}return p.get(g)},refCount:l,csi:!0,maxBlockSize:65536,...u}}async blocksForRange(e,t,r,i={}){t<0&&(t=0);const o=(await this.parse(i)).indices(e);if(!o)return[];const a=this.reg2bins(t,r);if(a.length===0)return[];const c=[];for(const[u,l]of a)for(let f=u;f<=l;f++)if(o.binIndex[f]){const d=o.binIndex[f];for(const h of d)c.push(h)}return Cb(c,new Ib(0,0))}reg2bins(e,t){e-=1,e<1&&(e=1),t>2**50&&(t=2**34),t-=1;let r=0,i=0,s=this.minShift+this.depth*3;const o=[];for(;r<=this.depth;s-=3,i+=o7(1,r*3),r+=1){const a=i+Bb(e,s),c=i+Bb(t,s);if(c-a+o.length>this.maxBinNumber)throw new Error(`query ${e}-${t} is too large for current binning scheme (shift ${this.minShift}, depth ${this.depth}), try a smaller query or a coarser index binning scheme`);o.push([a,c])}return o}async parse(e={}){return this.setupP||(this.setupP=this._parse(e).catch(t=>{throw this.setupP=void 0,t})),this.setupP}async hasRefSeq(e,t={}){var i;return!!((i=(await this.parse(t)).indices(e))!=null&&i.binIndex)}};class a7{read(){throw new Error("never called")}stat(){throw new Error("never called")}readFile(){throw new Error("never called")}close(){throw new Error("never called")}}const wt={BAM_FPAIRED:1,BAM_FPROPER_PAIR:2,BAM_FUNMAP:4,BAM_FMUNMAP:8,BAM_FREVERSE:16,BAM_FMREVERSE:32,BAM_FREAD1:64,BAM_FREAD2:128,BAM_FSECONDARY:256,BAM_FQCFAIL:512,BAM_FDUP:1024,BAM_FSUPPLEMENTARY:2048},Zo="=ACMGRSVTWYHKDBN".split(""),c7=[77,73,68,78,83,72,80,61,88,63,63,63,63,63,63,63],u7=1,l7=3,kb=4,f7=1<<u7|1<<kb|1<<5;class _r{constructor(e){this.bytes=e.bytes,this.fileOffset=e.fileOffset,this._dataView=new DataView(this.bytes.byteArray.buffer)}get byteArray(){return this.bytes.byteArray}get flags(){return(this._dataView.getInt32(this.bytes.start+16,!0)&4294901760)>>16}get ref_id(){return this._dataView.getInt32(this.bytes.start+4,!0)}get start(){return this._dataView.getInt32(this.bytes.start+8,!0)}get end(){return this.start+this.length_on_ref}get id(){return this.fileOffset}get mq(){const e=(this.bin_mq_nl&65280)>>8;return e===255?void 0:e}get score(){return this.mq}get qual(){if(this.isSegmentUnmapped())return;const e=this.b0+this.read_name_length+this.num_cigar_bytes+this.num_seq_bytes;return this.byteArray.subarray(e,e+this.seq_length)}get strand(){return this.isReverseComplemented()?-1:1}get b0(){return this.bytes.start+36}get name(){let e="";for(let t=0;t<this.read_name_length-1;t++)e+=String.fromCharCode(this.byteArray[this.b0+t]);return e}get tags(){let e=this.b0+this.read_name_length+this.num_cigar_bytes+this.num_seq_bytes+this.seq_length;const t=this.bytes.end,r={};for(;e<t;){const i=String.fromCharCode(this.byteArray[e])+String.fromCharCode(this.byteArray[e+1]),s=String.fromCharCode(this.byteArray[e+2]);switch(e+=3,s){case"A":r[i]=String.fromCharCode(this.byteArray[e]),e+=1;break;case"i":r[i]=this._dataView.getInt32(e,!0),e+=4;break;case"I":r[i]=this._dataView.getUint32(e,!0),e+=4;break;case"c":r[i]=this._dataView.getInt8(e),e+=1;break;case"C":r[i]=this._dataView.getUint8(e),e+=1;break;case"s":r[i]=this._dataView.getInt16(e,!0),e+=2;break;case"S":r[i]=this._dataView.getUint16(e,!0),e+=2;break;case"f":r[i]=this._dataView.getFloat32(e,!0),e+=4;break;case"Z":case"H":{const o=[];for(;e<=t;){const a=this.byteArray[e++];if(a!==0)o.push(String.fromCharCode(a));else break}r[i]=o.join("");break}case"B":{const o=this.byteArray[e++],a=String.fromCharCode(o),c=this._dataView.getInt32(e,!0);e+=4;const u=this.byteArray.byteOffset+e;if(a==="i"){if(u%4===0)r[i]=new Int32Array(this.byteArray.buffer,u,c);else{const l=this.byteArray.slice(e,e+(c<<2));r[i]=new Int32Array(l.buffer,l.byteOffset,c)}e+=c<<2}else if(a==="I"){if(u%4===0)r[i]=new Uint32Array(this.byteArray.buffer,u,c);else{const l=this.byteArray.slice(e,e+(c<<2));r[i]=new Uint32Array(l.buffer,l.byteOffset,c)}e+=c<<2}else if(a==="s"){if(u%2===0)r[i]=new Int16Array(this.byteArray.buffer,u,c);else{const l=this.byteArray.slice(e,e+(c<<1));r[i]=new Int16Array(l.buffer,l.byteOffset,c)}e+=c<<1}else if(a==="S"){if(u%2===0)r[i]=new Uint16Array(this.byteArray.buffer,u,c);else{const l=this.byteArray.slice(e,e+(c<<1));r[i]=new Uint16Array(l.buffer,l.byteOffset,c)}e+=c<<1}else if(a==="c")r[i]=new Int8Array(this.byteArray.buffer,u,c),e+=c;else if(a==="C")r[i]=new Uint8Array(this.byteArray.buffer,u,c),e+=c;else if(a==="f"){if(u%4===0)r[i]=new Float32Array(this.byteArray.buffer,u,c);else{const l=this.byteArray.slice(e,e+(c<<2));r[i]=new Float32Array(l.buffer,l.byteOffset,c)}e+=c<<2}break}default:console.error("Unknown BAM tag type",s);break}}return r}isPaired(){return!!(this.flags&wt.BAM_FPAIRED)}isProperlyPaired(){return!!(this.flags&wt.BAM_FPROPER_PAIR)}isSegmentUnmapped(){return!!(this.flags&wt.BAM_FUNMAP)}isMateUnmapped(){return!!(this.flags&wt.BAM_FMUNMAP)}isReverseComplemented(){return!!(this.flags&wt.BAM_FREVERSE)}isMateReverseComplemented(){return!!(this.flags&wt.BAM_FMREVERSE)}isRead1(){return!!(this.flags&wt.BAM_FREAD1)}isRead2(){return!!(this.flags&wt.BAM_FREAD2)}isSecondary(){return!!(this.flags&wt.BAM_FSECONDARY)}isFailedQc(){return!!(this.flags&wt.BAM_FQCFAIL)}isDuplicate(){return!!(this.flags&wt.BAM_FDUP)}isSupplementary(){return!!(this.flags&wt.BAM_FSUPPLEMENTARY)}get cigarAndLength(){if(this.isSegmentUnmapped())return{length_on_ref:0,NUMERIC_CIGAR:new Uint32Array(0)};const e=this.num_cigar_ops;let t=this.b0+this.read_name_length;const r=this._dataView.getInt32(t,!0),i=r>>4;if((r&15)===kb&&i===this.seq_length){t+=4;const o=this._dataView.getInt32(t,!0),a=o>>4;return(o&15)!==l7&&console.warn("CG tag with no N tag"),{NUMERIC_CIGAR:this.tags.CG,length_on_ref:a}}else{const o=this.byteArray.byteOffset+t,a=o%4===0?new Uint32Array(this.byteArray.buffer,o,e):new Uint32Array(this.byteArray.slice(t,t+(e<<2)).buffer,0,e);let c=0;for(let u=0;u<e;++u){const l=a[u];1<<(l&15)&f7||(c+=l>>4)}return{NUMERIC_CIGAR:a,length_on_ref:c}}}get length_on_ref(){return this.cigarAndLength.length_on_ref}get NUMERIC_CIGAR(){return this.cigarAndLength.NUMERIC_CIGAR}get CIGAR(){const e=this.NUMERIC_CIGAR;let t="";for(let r=0,i=e.length;r<i;r++){const s=e[r],o=s>>4,a=c7[s&15];t+=o+String.fromCharCode(a)}return t}get num_cigar_ops(){return this.flag_nc&65535}get num_cigar_bytes(){return this.num_cigar_ops<<2}get read_name_length(){return this.bin_mq_nl&255}get num_seq_bytes(){return this.seq_length+1>>1}get NUMERIC_SEQ(){const e=this.b0+this.read_name_length+this.num_cigar_bytes,t=this.byteArray.subarray(e,e+this.num_seq_bytes);return new Uint8Array(t.buffer,t.byteOffset,this.num_seq_bytes)}get seq(){const e=this.NUMERIC_SEQ,t=this.seq_length,r=new Array(t);let i=0;const s=t>>1;for(let o=0;o<s;++o){const a=e[o];r[i++]=Zo[(a&240)>>4],r[i++]=Zo[a&15]}if(i<t){const o=e[s];r[i]=Zo[(o&240)>>4]}return r.join("")}get pair_orientation(){if(!this.isSegmentUnmapped()&&!this.isMateUnmapped()&&this.ref_id===this.next_refid){const e=this.isReverseComplemented()?"R":"F",t=this.isMateReverseComplemented()?"R":"F";let r=" ",i=" ";this.isRead1()?(r="1",i="2"):this.isRead2()&&(r="2",i="1");const s=[];return this.template_length>0?(s[0]=e,s[1]=r,s[2]=t,s[3]=i):(s[2]=e,s[3]=r,s[0]=t,s[1]=i),s.join("")}}get bin_mq_nl(){return this._dataView.getInt32(this.bytes.start+12,!0)}get flag_nc(){return this._dataView.getInt32(this.bytes.start+16,!0)}get seq_length(){return this._dataView.getInt32(this.bytes.start+20,!0)}get next_refid(){return this._dataView.getInt32(this.bytes.start+24,!0)}get next_pos(){return this._dataView.getInt32(this.bytes.start+28,!0)}get template_length(){return this._dataView.getInt32(this.bytes.start+32,!0)}seqAt(e){if(e<this.seq_length){const t=e>>1,r=this.byteArray[this.b0+this.read_name_length+this.num_cigar_bytes+t];return e%2===0?Zo[(r&240)>>4]:Zo[r&15]}else return}toJSON(){const e={};for(const t of Object.keys(this))t.startsWith("_")||t==="bytes"||(e[t]=this[t]);return e}}function Ko(n,e){const t=Object.getOwnPropertyDescriptor(n.prototype,e);if(!t)throw new Error("OH NO, NO PROPERTY DESCRIPTOR");const r=t.get;if(!r)throw new Error("OH NO, NOT A GETTER");Object.defineProperty(n.prototype,e,{get(){const i=r.call(this);return Object.defineProperty(this,e,{value:i}),i}})}Ko(_r,"tags"),Ko(_r,"cigarAndLength"),Ko(_r,"seq"),Ko(_r,"qual"),Ko(_r,"end");function Fb(n){const e=n.split(/\r?\n/),t=[];for(const r of e){const[i,...s]=r.split(/\t/);i&&t.push({tag:i.slice(1),data:s.map(o=>{const a=o.indexOf(":"),c=o.slice(0,a),u=o.slice(a+1);return{tag:c,value:u}})})}return t}const Pb=21840194,h7=65536;class Mb{constructor({bamFilehandle:e,bamPath:t,bamUrl:r,baiPath:i,baiFilehandle:s,baiUrl:o,csiPath:a,csiFilehandle:c,csiUrl:u,htsget:l,renameRefSeqs:f=d=>d}){if(this.htsget=!1,this.cache=new Vr({maxSize:1e3}),this.renameRefSeq=f,e)this.bam=e;else if(t)this.bam=new qe(t);else if(r)this.bam=new Yt(r);else if(l)this.htsget=!0,this.bam=new a7;else throw new Error("unable to initialize bam");if(c)this.index=new xu({filehandle:c});else if(a)this.index=new xu({filehandle:new qe(a)});else if(u)this.index=new xu({filehandle:new Yt(u)});else if(s)this.index=new qi({filehandle:s});else if(i)this.index=new qi({filehandle:new qe(i)});else if(o)this.index=new qi({filehandle:new Yt(o)});else if(t)this.index=new qi({filehandle:new qe(`${t}.bai`)});else if(r)this.index=new qi({filehandle:new Yt(`${r}.bai`)});else if(l)this.htsget=!0;else throw new Error("unable to infer index format")}async getHeaderPre(e){const t=qk(e);if(!this.index)return;const r=await this.index.parse(t),i=r.firstDataLine===void 0?await this.bam.readFile():await this.bam.read(r.firstDataLine.blockPosition+h7,0),s=await Kh(i),o=new DataView(s.buffer);if(o.getInt32(0,!0)!==Pb)throw new Error("Not a BAM file");const a=o.getInt32(4,!0),c=new TextDecoder("utf8");this.header=c.decode(s.subarray(8,8+a));const{chrToIndex:u,indexToChr:l}=this._parseRefSeqs(s,a+8);return this.chrToIndex=u,this.indexToChr=l,Fb(this.header)}getHeader(e){return this.headerP||(this.headerP=this.getHeaderPre(e).catch(t=>{throw this.headerP=void 0,t})),this.headerP}async getHeaderText(e={}){return await this.getHeader(e),this.header}_parseRefSeqs(e,t){const r=new DataView(e.buffer),i=r.getInt32(t,!0);let s=t+4;const o={},a=[],c=new TextDecoder("utf8");for(let u=0;u<i;u+=1){if(s+8>e.length)throw new Error(`Insufficient data for reference sequences: need more than ${e.length} bytes`);const l=r.getInt32(s,!0),f=this.renameRefSeq(c.decode(e.subarray(s+4,s+4+l-1))),d=r.getInt32(s+l+4,!0);o[f]=u,a.push({refName:f,length:d}),s=s+8+l}return{chrToIndex:o,indexToChr:a}}async getRecordsForRange(e,t,r,i){return Zk(this.streamRecordsForRange(e,t,r,i))}async*streamRecordsForRange(e,t,r,i){var a;await this.getHeader(i);const s=(a=this.chrToIndex)==null?void 0:a[e];if(s===void 0||!this.index)return;const o=await this.index.blocksForRange(s,t-1,r,i);yield*this._fetchChunkFeatures(o,s,t,r,i)}async*_fetchChunkFeatures(e,t,r,i,s={}){const{viewAsPairs:o}=s,a=[];let c=!1;for(const u of e){const{data:l,cpositions:f,dpositions:d}=await this._readChunk({chunk:u,opts:s}),h=await this.readBamFeatures(l,f,d,u,t,r,i),p=[];for(const m of h)if(m.ref_id===t)if(m.start>=i){c=!0;break}else m.end>=r&&p.push(m);if(a.push(p),yield p,c)break}o&&(yield this.fetchPairs(t,a,s))}async fetchPairs(e,t,r){const{pairAcrossChr:i,maxInsertSize:s=2e5}=r,o={},a={};for(const d of t){const h={};for(const p of d){const m=p.name,g=p.id;h[m]||(h[m]=0),h[m]++,a[g]=1}for(const[p,m]of Object.entries(h))m===1&&(o[p]=!0)}const c=[];for(const d of t)for(const h of d){const p=h.name,m=h.start,g=h.next_pos,y=h.next_refid;this.index&&o[p]&&(i||y===e&&Math.abs(m-g)<s)&&c.push(this.index.blocksForRange(y,g,g+1,r))}const u=new Map,l=await Promise.all(c);for(const d of l.flat())u.has(d.toString())||u.set(d.toString(),d);return(await Promise.all([...u.values()].map(async d=>{const{data:h,cpositions:p,dpositions:m,chunk:g}=await this._readChunk({chunk:d,opts:r}),y=[];for(const x of await this.readBamFeatures(h,p,m,g))o[x.name]&&!a[x.id]&&y.push(x);return y}))).flat()}async _readChunk({chunk:e,opts:t}){const r=await this.bam.read(e.fetchedSize(),e.minv.blockPosition,t),{buffer:i,cpositions:s,dpositions:o}=await n7(r,e,this.cache);return{data:i,cpositions:s,dpositions:o,chunk:e}}async readBamFeatures(e,t,r,i,s,o,a){let c=0;const u=[];let l=0;const f=new DataView(e.buffer),d=r.length>0,h=t.length>0,p=s!==void 0&&o!==void 0&&a!==void 0;for(;c+4<e.length;){const m=f.getInt32(c,!0),g=c+4+m-1;if(d){for(;c+i.minv.dataPosition>=r[l++];);l--}if(g<e.length){if(p&&c+12<e.length&&!this._shouldIncludeFeature(f,c,s,a)){c=g+1;continue}const y=new _r({bytes:{byteArray:e,start:c,end:g},fileOffset:h?t[l]*256+(c-r[l])+i.minv.dataPosition+1:r7(e.subarray(c,g))>>>0});u.push(y)}c=g+1}return u}_shouldIncludeFeature(e,t,r,i){const s=e.getInt32(t+4,!0),o=e.getInt32(t+8,!0);return s===r&&o<i}async hasRefSeq(e){var r,i;const t=(r=this.chrToIndex)==null?void 0:r[e];return t===void 0?!1:(i=this.index)==null?void 0:i.hasRefSeq(t)}async lineCount(e){var r;const t=(r=this.chrToIndex)==null?void 0:r[e];return t===void 0||!this.index?0:this.index.lineCount(t)}async indexCov(e,t,r){var s;if(!this.index)return[];await this.index.parse();const i=(s=this.chrToIndex)==null?void 0:s[e];return i===void 0?[]:this.index.indexCov(i,t,r)}async blocksForRange(e,t,r,i){var o;if(!this.index)return[];await this.index.parse();const s=(o=this.chrToIndex)==null?void 0:o[e];return s===void 0?[]:this.index.blocksForRange(s,t,r,i)}}async function Rb(n,e){const t=await Promise.all(n.map(async r=>{const{url:i,headers:s}=r;if(i.startsWith("data:")){const o=await fetch(i);if(!o.ok)throw new Error("failed to decode base64");const a=await o.arrayBuffer();return new Uint8Array(a)}else{const{referer:o,...a}=s,c=await fetch(i,{...e,headers:{...e==null?void 0:e.headers,...a}});if(!c.ok)throw new Error(`HTTP ${c.status} fetching ${i}: ${await c.text()}`);return new Uint8Array(await c.arrayBuffer())}}));return Xk(await Promise.all(t.map(r=>Kh(r))))}class d7 extends Mb{constructor(e){super({htsget:!0}),this.baseUrl=e.baseUrl,this.trackId=e.trackId}async*streamRecordsForRange(e,t,r,i){var c;const o=`${`${this.baseUrl}/${this.trackId}`}?referenceName=${e}&start=${t}&end=${r}&format=BAM`,a=(c=this.chrToIndex)==null?void 0:c[e];if(a===void 0)yield[];else{const u=await fetch(o,{...i});if(!u.ok)throw new Error(`HTTP ${u.status} fetching ${o}: ${await u.text()}`);const l=await u.json(),f=await Rb(l.htsget.urls.slice(1),i);yield*this._fetchChunkFeatures([{buffer:f,_fetchedSize:void 0,bin:0,compareTo(){return 0},toUniqueString(){return`${e}_${t}_${r}`},fetchedSize(){return 0},minv:{dataPosition:0,blockPosition:0,compareTo:()=>0},maxv:{dataPosition:Number.MAX_SAFE_INTEGER,blockPosition:0,compareTo:()=>0},toString(){return`${e}_${t}_${r}`}}],a,t,r,i)}}async _readChunk({chunk:e}){if(!e.buffer)throw new Error("expected chunk.buffer in htsget");return{data:e.buffer,cpositions:[],dpositions:[],chunk:e}}async getHeader(e={}){const t=`${this.baseUrl}/${this.trackId}?referenceName=na&class=header`,r=await fetch(t,e);if(!r.ok)throw new Error(`HTTP ${r.status} fetching ${t}: ${await r.text()}`);const i=await r.json(),s=await Rb(i.htsget.urls,e),o=new DataView(s.buffer);if(o.getInt32(0,!0)!==Pb)throw new Error("Not a BAM file");const a=o.getInt32(4,!0),u=new TextDecoder("utf8").decode(s.subarray(8,8+a)),l=Fb(u),f=[],d={},h=l.filter(p=>p.tag==="SQ");for(const[p,m]of h.entries()){let g="",y=0;for(const x of m.data)x.tag==="SN"?g=x.value:x.tag==="LN"&&(y=+x.value);d[g]=p,f[p]={refName:g,length:y}}return this.chrToIndex=d,this.indexToChr=f,l}}const p7=Object.freeze(Object.defineProperty({__proto__:null,BAI:qi,BamFile:Mb,BamRecord:_r,CSI:xu,HtsgetFile:d7},Symbol.toStringTag,{value:"Module"}));function m7(n){let e=0;for(const t of n)e+=t.length;return e}function Ob(n,e){const t=new Uint8Array(e??m7(n));let r=0;for(const i of n)t.set(i,r),r+=i.length;return t}async function $h(n){try{let e,t=0,r;const i=[];let s=0;do{const o=n.subarray(t);if(r=new dn(void 0),{strm:e}=r,r.push(o,zr),r.err)throw new Error(r.msg);t+=e.next_in;const a=r.result;i.push(a),s+=a.length}while(e.avail_in);return Ob(i,s)}catch(e){throw/incorrect header check/.exec(`${e}`)?new Error("problem decompressing block: incorrect gzip header check"):e}}async function g7(n,e,t){try{let r;const{minv:i,maxv:s}=e;let o=i.blockPosition,a=i.dataPosition;const c=[],u=[],l=[];let f=0,d=!1,h=0;do{const p=n.subarray(o-i.blockPosition),m=o.toString();let g,y;const x=t==null?void 0:t.get(m);if(x)g=x.buffer,y=x.nextIn,d=!0;else{const S=new dn(void 0);if({strm:r}=S,S.push(p,zr),S.err)throw new Error(S.msg);g=S.result,y=r.next_in,d=!1,t==null||t.set(m,{buffer:g,nextIn:y})}c.push(g);let A=g.length;u.push(o),l.push(a),c.length===1&&i.dataPosition&&(c[0]=c[0].subarray(i.dataPosition),A=c[0].length);const w=o;if(o+=y,a+=A,w>=s.blockPosition){c[f]=c[f].subarray(0,s.blockPosition===i.blockPosition?s.dataPosition-i.dataPosition+1:s.dataPosition+1),h+=c[f].length,u.push(o),l.push(a);break}h+=A,f++}while(d?o<n.length+i.blockPosition:r.avail_in);return{buffer:Ob(c,h),cpositions:u,dpositions:l}}catch(r){throw/incorrect header check/.exec(`${r}`)?new Error("problem decompressing block: incorrect gzip header check"):r}}class Au{constructor(e,t,r,i){this.minv=e,this.maxv=t,this.bin=r,this._fetchedSize=i}toUniqueString(){return`${this.minv}..${this.maxv} (bin ${this.bin}, fetchedSize ${this.fetchedSize()})`}toString(){return this.toUniqueString()}compareTo(e){return this.minv.compareTo(e.minv)||this.maxv.compareTo(e.maxv)||this.bin-e.bin}fetchedSize(){return this._fetchedSize!==void 0?this._fetchedSize:this.maxv.blockPosition+65536-this.minv.blockPosition}}class Nb{constructor({filehandle:e,renameRefSeqs:t=r=>r}){this.filehandle=e,this.renameRefSeq=t}async getMetadata(e={}){const{indices:t,...r}=await this.parse(e);return r}_findFirstData(e,t){return e?e.compareTo(t)>0?t:e:t}async parse(e={}){return this.parseP||(this.parseP=this._parse(e).catch(t=>{throw this.parseP=void 0,t})),this.parseP}async hasRefSeq(e,t={}){var i;return!!((i=(await this.parse(t)).indices[e])!=null&&i.binIndex)}_parseNameBytes(e){let t=0,r=0;const i=[],s={},o=new TextDecoder("utf8");for(let a=0;a<e.length;a+=1)if(!e[a]){if(r<a){const c=this.renameRefSeq(o.decode(e.subarray(r,a)));i[t]=c,s[c]=t}r=a+1,t+=1}return{refNameToId:s,refIdToName:i}}}const Lb=65536,y7=Lb*Lb;function zb(n,e=0){const t=n[e]|n[e+1]<<8|n[e+2]<<16|n[e+3]<<24;return((n[e+4]|n[e+5]<<8|n[e+6]<<16|n[e+7]<<24)>>>0)*y7+(t>>>0)}class b7 extends Error{}function Jo(n){if(n&&n.aborted)if(typeof DOMException>"u"){const e=new b7("aborted");throw e.code="ERR_ABORTED",e}else throw new DOMException("aborted","AbortError")}function x7(n,e){return e.minv.blockPosition-n.maxv.blockPosition<65e3&&e.maxv.blockPosition-n.minv.blockPosition<5e6}function Ub(n,e){const t=[];let r;if(n.length===0)return n;n.sort(function(i,s){const o=i.minv.blockPosition-s.minv.blockPosition;return o===0?i.minv.dataPosition-s.minv.dataPosition:o});for(const i of n)(!e||i.maxv.compareTo(e)>0)&&(r===void 0?(t.push(i),r=i):x7(r,i)?i.maxv.compareTo(r.maxv)>0&&(r.maxv=i.maxv):(t.push(i),r=i));return t}class ed{constructor(e,t){this.blockPosition=e,this.dataPosition=t}toString(){return`${this.blockPosition}:${this.dataPosition}`}compareTo(e){return this.blockPosition-e.blockPosition||this.dataPosition-e.dataPosition}}function Yi(n,e=0){return new ed(n[e+7]*1099511627776+n[e+6]*4294967296+n[e+5]*16777216+n[e+4]*65536+n[e+3]*256+n[e+2],n[e+1]<<8|n[e])}const A7=21582659,w7=38359875,v7={0:"generic",1:"SAM",2:"VCF"};function S7(n,e){return n*2**e}function Gb(n,e){return Math.floor(n/2**e)}class wu extends Nb{constructor(e){super(e),this.maxBinNumber=0,this.depth=0,this.minShift=0}async lineCount(e,t={}){const r=await this.parse(t),i=r.refNameToId[e];if(i===void 0||!r.indices[i])return-1;const{stats:o}=r.indices[i];return o?o.lineCount:-1}indexCov(){throw new Error("CSI indexes do not support indexcov")}parseAuxData(e,t){const r=new DataView(e.buffer),i=r.getInt32(t,!0),s=i&65536?"zero-based-half-open":"1-based-closed",o=v7[i&15];if(!o)throw new Error(`invalid Tabix preset format flags ${i}`);const a={ref:r.getInt32(t+4,!0),start:r.getInt32(t+8,!0),end:r.getInt32(t+12,!0)},c=r.getInt32(t+16,!0),u=c?String.fromCharCode(c):void 0,l=r.getInt32(t+20,!0),f=r.getInt32(t+24,!0),{refIdToName:d,refNameToId:h}=this._parseNameBytes(e.subarray(t+28,t+28+f));return{refIdToName:d,refNameToId:h,skipLines:l,metaChar:u,columnNumbers:a,format:o,coordinateType:s}}async _parse(e={}){const t=await $h(await this.filehandle.readFile(e)),r=new DataView(t.buffer);let i;if(r.getUint32(0,!0)===A7)i=1;else if(r.getUint32(0,!0)===w7)i=2;else throw new Error("Not a CSI file");this.minShift=r.getInt32(4,!0),this.depth=r.getInt32(8,!0),this.maxBinNumber=((1<<(this.depth+1)*3)-1)/7;const s=2**(this.minShift+this.depth*3),o=r.getInt32(12,!0),a=o&&o>=30?this.parseAuxData(t,16):{refIdToName:[],refNameToId:{},metaChar:void 0,columnNumbers:{ref:0,start:1,end:2},coordinateType:"zero-based-half-open",format:"generic"},c=r.getInt32(16+o,!0);let u,l=16+o+4;const f=new Array(c).fill(0).map(()=>{const d=r.getInt32(l,!0);l+=4;const h={};let p;for(let m=0;m<d;m+=1){const g=r.getUint32(l,!0);if(g>this.maxBinNumber)p=this.parsePseudoBin(t,l+4),l+=48;else{const y=Yi(t,l+4);u=this._findFirstData(u,y);const x=r.getInt32(l+12,!0);l+=16;const A=new Array(x);for(let w=0;w<x;w+=1){const S=Yi(t,l),C=Yi(t,l+8);l+=16,A[w]=new Au(S,C,g)}h[g]=A}}return{binIndex:h,stats:p}});return{...a,csi:!0,refCount:c,maxBlockSize:65536,firstDataLine:u,csiVersion:i,indices:f,depth:this.depth,maxBinNumber:this.maxBinNumber,maxRefLength:s}}parsePseudoBin(e,t){return{lineCount:zb(e,t+28)}}async blocksForRange(e,t,r,i={}){t<0&&(t=0);const s=await this.parse(i),o=s.refNameToId[e];if(o===void 0)return[];const a=s.indices[o];if(!a)return[];const c=this.reg2bins(t,r),u=[];for(const[l,f]of c)for(let d=l;d<=f;d++)if(a.binIndex[d])for(const h of a.binIndex[d])u.push(new Au(h.minv,h.maxv,d));return Ub(u,new ed(0,0))}reg2bins(e,t){e-=1,e<1&&(e=1),t>2**50&&(t=2**34),t-=1;let r=0,i=0,s=this.minShift+this.depth*3;const o=[];for(;r<=this.depth;s-=3,i+=S7(1,r*3),r+=1){const a=i+Gb(e,s),c=i+Gb(t,s);if(c-a+o.length>this.maxBinNumber)throw new Error(`query ${e}-${t} is too large for current binning scheme (shift ${this.minShift}, depth ${this.depth}), try a smaller query or a coarser index binning scheme`);o.push([a,c])}return o}}const E7=21578324,Hb=14;function C7(n,e){return n+=1,e-=1,[[0,0],[1+(n>>26),1+(e>>26)],[9+(n>>23),9+(e>>23)],[73+(n>>20),73+(e>>20)],[585+(n>>17),585+(e>>17)],[4681+(n>>14),4681+(e>>14)]]}class Xi extends Nb{async lineCount(e,t={}){var o;const r=await this.parse(t),i=r.refNameToId[e];return i===void 0||!r.indices[i]?-1:((o=r.indices[i].stats)==null?void 0:o.lineCount)??-1}async _parse(e={}){const t=await this.filehandle.readFile(e),r=await $h(t);Jo(e.signal);const i=new DataView(r.buffer);if(i.getUint32(0,!0)!==E7)throw new Error("Not a TBI file");const o=i.getUint32(4,!0),a=i.getUint32(8,!0),c=a&65536?"zero-based-half-open":"1-based-closed",l={0:"generic",1:"SAM",2:"VCF"}[a&15];if(!l)throw new Error(`invalid Tabix preset format flags ${a}`);const f={ref:i.getInt32(12,!0),start:i.getInt32(16,!0),end:i.getInt32(20,!0)},d=i.getInt32(24,!0),h=5,p=((1<<(h+1)*3)-1)/7,m=2**(14+h*3),g=d?String.fromCharCode(d):void 0,y=i.getInt32(28,!0),x=i.getInt32(32,!0),{refNameToId:A,refIdToName:w}=this._parseNameBytes(r.slice(36,36+x));let S=36+x,C;return{indices:new Array(o).fill(0).map(()=>{const T=i.getInt32(S,!0);S+=4;const P={};let F;for(let U=0;U<T;U+=1){const j=i.getUint32(S,!0);if(S+=4,j>p+1)throw new Error("tabix index contains too many bins, please use a CSI index");if(j===p+1){const K=i.getInt32(S,!0);S+=4,K===2&&(F=this.parsePseudoBin(r,S)),S+=16*K}else{const K=i.getInt32(S,!0);S+=4;const _=new Array(K);for(let te=0;te<K;te+=1){const ce=Yi(r,S),ie=Yi(r,S+8);S+=16,C=this._findFirstData(C,ce),_[te]=new Au(ce,ie,j)}P[j]=_}}const k=i.getInt32(S,!0);S+=4;const L=new Array(k);for(let U=0;U<k;U+=1)L[U]=Yi(r,S),S+=8,C=this._findFirstData(C,L[U]);return{binIndex:P,linearIndex:L,stats:F}}),metaChar:g,maxBinNumber:p,maxRefLength:m,skipLines:y,firstDataLine:C,columnNumbers:f,coordinateType:c,format:l,refIdToName:w,refNameToId:A,maxBlockSize:65536}}parsePseudoBin(e,t){return{lineCount:zb(e,t+16)}}async blocksForRange(e,t,r,i={}){t<0&&(t=0);const s=await this.parse(i),o=s.refNameToId[e];if(o===void 0)return[];const a=s.indices[o];if(!a)return[];(a.linearIndex.length>0?a.linearIndex[t>>Hb>=a.linearIndex.length?a.linearIndex.length-1:t>>Hb]:new ed(0,0))||console.warn("querying outside of possible tabix range");const u=C7(t,r),l=[];for(const[m,g]of u)for(let y=m;y<=g;y++)if(a.binIndex[y])for(const x of a.binIndex[y])l.push(new Au(x.minv,x.maxv,y));const f=a.linearIndex.length;let d;const h=Math.min(t>>14,f-1),p=Math.min(r>>14,f-1);for(let m=h;m<=p;++m){const g=a.linearIndex[m];g&&(!d||g.compareTo(d)<0)&&(d=g)}return Ub(l,d)}}class D7{constructor({path:e,filehandle:t,url:r,tbiPath:i,tbiUrl:s,tbiFilehandle:o,csiPath:a,csiUrl:c,csiFilehandle:u,renameRefSeqs:l=d=>d,chunkCacheSize:f=5*2**20}){if(this.cache=new Vr({maxSize:1e3}),t)this.filehandle=t;else if(e)this.filehandle=new qe(e);else if(r)this.filehandle=new Yt(r);else throw new TypeError("must provide either filehandle or path");if(o)this.index=new Xi({filehandle:o,renameRefSeqs:l});else if(u)this.index=new wu({filehandle:u,renameRefSeqs:l});else if(i)this.index=new Xi({filehandle:new qe(i),renameRefSeqs:l});else if(a)this.index=new wu({filehandle:new qe(a),renameRefSeqs:l});else if(e)this.index=new Xi({filehandle:new qe(`${e}.tbi`),renameRefSeqs:l});else if(c)this.index=new wu({filehandle:new Yt(c)});else if(s)this.index=new Xi({filehandle:new Yt(s)});else if(r)this.index=new Xi({filehandle:new Yt(`${r}.tbi`)});else throw new TypeError("must provide one of tbiFilehandle, tbiPath, csiFilehandle, csiPath, tbiUrl, csiUrl");this.renameRefSeq=l,this.chunkCache=new _i({cache:new Vr({maxSize:Math.floor(f/65536)}),fill:(d,h)=>this.readChunk(d,{signal:h})})}calculateFileOffset(e,t,r,i,s){return e[r]*256+(i-t[r])+s+1}async getLines(e,t,r,i){let s,o={},a;typeof i=="function"?a=i:(o=i,a=i.lineCallback,s=i.signal);const c=await this.index.getMetadata(o);Jo(s);const u=t??0,l=r??c.maxRefLength;if(!(u<=l))throw new TypeError("invalid start and end coordinates. start must be less than or equal to end");if(u===l)return;const f=await this.index.blocksForRange(e,u,l,o);Jo(s);const d=new TextDecoder("utf8");for(const h of f){const{buffer:p,cpositions:m,dpositions:g}=await this.chunkCache.get(h.toString(),h,s);Jo(s);let y=0,x=0;const A=d.decode(p);if(p.length==A.length)for(;y<A.length;){const S=A.indexOf(`
|
|
883
|
-
`,
|
|
884
|
-
`)&&(
|
|
885
|
-
`)?-2:-1));for(const r of t.split(";")){const i=r.indexOf("=");if(i===-1)continue;const s=r.slice(i+1);if(!s.length)continue;const o=r.slice(0,i).trim();let a=e[o];a||(a=[],e[o]=a);for(const c of s.split(","))a.push(vu(c.trim()))}return e}function P7(n){return jb(n.split(" "))}function pn(n){return n==="."||n===""||n===void 0?null:n}function jb(n){const e=pn(n[0]),t=pn(n[1]),r=pn(n[2]),i=pn(n[3]),s=pn(n[4]),o=pn(n[5]),a=pn(n[6]),c=pn(n[7]),u=pn(n[8]);return{seq_id:e?vu(e):null,source:t?vu(t):null,type:r?vu(r):null,start:i===null?null:parseInt(i,10),end:s===null?null:parseInt(s,10),score:o===null?null:parseFloat(o),strand:a,phase:c,attributes:u===null?null:F7(u)}}function M7(n){var s,o;const e=B7.exec(n);if(!e)return null;const[,t]=e;let[,,r]=e;const i={directive:t};if(r.length&&(r=r.replace(k7,""),i.value=r),t==="sequence-region"){const a=r.split(Vb,3);return{...i,seq_id:a[0],start:(s=a[1])==null?void 0:s.replaceAll(_b,""),end:(o=a[2])==null?void 0:o.replaceAll(_b,"")}}else if(t==="genome-build"){const[a,c]=r.split(Vb,2);return{...i,source:a,buildName:c}}return i}const R7=/^\s*[^#\s>]/,O7=/^\s*(#+)(.*)/,N7=/^\s*$/,L7=/^\s*>/,z7=/\r?\n?$/g;class td{constructor(e){Y(this,"featureCallback");Y(this,"endCallback");Y(this,"commentCallback");Y(this,"errorCallback");Y(this,"disableDerivesFromReferences");Y(this,"directiveCallback");Y(this,"bufferSize");Y(this,"eof",!1);Y(this,"lineNumber",0);Y(this,"_underConstructionTopLevel",[]);Y(this,"_underConstructionById",{});Y(this,"_completedReferences",{});Y(this,"_underConstructionOrphans",{});const t=()=>{};this.featureCallback=e.featureCallback||t,this.endCallback=e.endCallback||t,this.commentCallback=e.commentCallback||t,this.errorCallback=e.errorCallback||t,this.directiveCallback=e.directiveCallback||t,this.disableDerivesFromReferences=e.disableDerivesFromReferences||!1,this.bufferSize=e.bufferSize===void 0?1/0:e.bufferSize}addLine(e){if(this.eof)return;if(this.lineNumber+=1,R7.test(e)){this._bufferLine(e);return}const t=O7.exec(e);if(t){const[,r]=t;let[,,i]=t;if(r.length===3)this._emitAllUnderConstructionFeatures();else if(r.length===2){const s=M7(e);s&&(s.directive==="FASTA"?(this._emitAllUnderConstructionFeatures(),this.eof=!0):this._emitItem(s))}else this._emitItem({comment:i.trimStart()})}else if(!N7.test(e))if(L7.test(e))this._emitAllUnderConstructionFeatures(),this.eof=!0;else{const r=e.replaceAll(z7,"");throw new Error(`GFF3 parse error. Cannot parse '${r}'.`)}}addParsedFeatureLine(e){this.eof||(this.lineNumber+=1,this._bufferParsedLine(e))}finish(){this._emitAllUnderConstructionFeatures(),this.endCallback()}_emitItem(e){Array.isArray(e)?this.featureCallback(e):"directive"in e?this.directiveCallback(e):"comment"in e&&this.commentCallback(e)}_enforceBufferSizeLimit(e=0){const t=r=>{var i,s;r&&Array.isArray(r)&&((s=(i=r[0].attributes)==null?void 0:i.ID)!=null&&s[0])&&(r[0].attributes.ID.forEach(a=>{delete this._underConstructionById[a],delete this._completedReferences[a]}),r.forEach(a=>{a.child_features&&a.child_features.forEach(c=>{t(c)}),a.derived_features&&a.derived_features.forEach(c=>{t(c)})}))};for(;this._underConstructionTopLevel.length+e>this.bufferSize;){const r=this._underConstructionTopLevel.shift();r&&(this._emitItem(r),t(r))}}_emitAllUnderConstructionFeatures(){this._underConstructionTopLevel.forEach(this._emitItem.bind(this)),this._underConstructionTopLevel=[],this._underConstructionById={},this._completedReferences={};const e=Object.keys(this._underConstructionOrphans);if(e.length)throw new Error(`some features reference other features that do not exist in the file (or in the same '###' scope). ${e.join(",")}`)}_bufferLine(e){this._bufferParsedLine(P7(e))}_bufferParsedLine(e){var a,c,u;const t=e;t.child_features=[],t.derived_features=[];const r=((a=t.attributes)==null?void 0:a.ID)||[],i=((c=t.attributes)==null?void 0:c.Parent)||[],s=this.disableDerivesFromReferences?[]:((u=t.attributes)==null?void 0:u.Derives_from)||[];if(!r.length&&!i.length&&!s.length){this._emitItem([t]);return}let o;r.forEach(l=>{const f=this._underConstructionById[l];f?(f[f.length-1].type!==t.type&&this._parseError(`multi-line feature "${l}" has inconsistent types: "${t.type}", "${f[f.length-1].type}"`),f.push(t),o=f):(o=[t],this._enforceBufferSizeLimit(1),!i.length&&!s.length&&this._underConstructionTopLevel.push(o),this._underConstructionById[l]=o,this._resolveReferencesTo(o,l))}),this._resolveReferencesFrom(o||[t],{Parent:i,Derives_from:s},r)}_resolveReferencesTo(e,t){const r=this._underConstructionOrphans[t];if(r){for(const i of e)i.child_features.push(...r.Parent),i.derived_features.push(...r.Derives_from);delete this._underConstructionOrphans[t]}}_parseError(e){this.eof=!0,this.errorCallback(`${this.lineNumber}: ${e}`)}_resolveReferencesFrom(e,t,r){for(const i of t.Parent){const s=this._underConstructionById[i];if(s){let o=!1;for(const a of r){const c=`Parent,${i}`,u=this._completedReferences[a]||(this._completedReferences[a]={});u[c]&&(o=!0),u[c]=!0}if(!o)for(const a of s)a.child_features.push(e)}else{let o=this._underConstructionOrphans[i];o||(o={Parent:[],Derives_from:[]},this._underConstructionOrphans[i]=o),o.Parent.push(e)}}for(const i of t.Derives_from){const s=this._underConstructionById[i];if(s){let o=!1;for(const a of r){const c=`Derives_from,${i}`,u=this._completedReferences[a]||(this._completedReferences[a]={});u[c]&&(o=!0),u[c]=!0}if(!o)for(const a of s)a.derived_features.push(e)}else{let o=this._underConstructionOrphans[i];o||(o={Parent:[],Derives_from:[]},this._underConstructionOrphans[i]=o),o.Derives_from.push(e)}}}}function U7(n){const e=[],t=new td({featureCallback:r=>e.push(r),disableDerivesFromReferences:!0,errorCallback:r=>{throw new Error(r)}});for(const r of n.split(/\r?\n/))t.addLine(r);return t.finish(),e}function G7(n){const e=[],t=new td({featureCallback:r=>e.push(r),disableDerivesFromReferences:!0,errorCallback:r=>{throw new Error(r)}});for(const r of n)t.addLine(r);return t.finish(),e}function H7(n){const e=[],t=new td({featureCallback:r=>e.push(r),disableDerivesFromReferences:!0,errorCallback:r=>{throw new Error(r)}});for(const r of n){const i=jb(r.fields);r.lineHash!==void 0&&(i.attributes||(i.attributes={}),i.attributes._lineHash=[String(r.lineHash)]),t.addParsedFeatureLine(i)}return t.finish(),e}const V7=Object.freeze(Object.defineProperty({__proto__:null,parseArraySync:G7,parseRecordsSync:H7,parseStringSync:U7},Symbol.toStringTag,{value:"Module"}));function _7(n,e,t){const r=Object.create(null),i=t.length,s=e.length,o=9,a=58;let c=0;if(n==="GT"){for(let f=0;f<i;f++){const d=c;for(;c<s&&e.charCodeAt(c)!==o;)c++;r[t[f]]=e.slice(d,c),c++}return r}const u=n.indexOf("GT");if(u===-1)return r;if(u===0){for(let f=0;f<i;f++){const d=c;for(;c<s&&e.charCodeAt(c)!==a&&e.charCodeAt(c)!==o;)c++;for(r[t[f]]=e.slice(d,c);c<s&&e.charCodeAt(c)!==o;)c++;c++}return r}let l=0;for(let f=0;f<u;f++)n.charCodeAt(f)===a&&l++;for(let f=0;f<i;f++){const d=c;let h=c;for(;h<s&&e.charCodeAt(h)!==o;)h++;let p=0,m=d;for(let g=d;g<=h;g++)if(g===h||e.charCodeAt(g)===a){if(p===l){r[t[f]]=e.slice(m,g);break}p++,m=g+1}c=h+1}return r}function j7(n){const e=[],t=[];let r=!1,i=!1;const s=n.length;for(let o=0;o<s;o++){const a=n[o];a==='"'?(r=!r,t.push(a)):a==="["?(i=!0,t.push(a)):a==="]"?(i=!1,t.push(a)):a===","&&!r&&!i?(e.push(t.join("").trim()),t.length=0):t.push(a)}return t.length>0&&e.push(t.join("").trim()),e}function Q7(n,e){const t=n.indexOf(e);return[n.slice(0,t),n.slice(t+1)]}function W7(n){const e=n.slice(1,-1),t=j7(e),r=[];for(let i=0;i<t.length;i++){const s=t[i],[o,a]=Q7(s,"=");if(a&&a.startsWith("[")&&a.endsWith("]")){const c=a.slice(1,-1).split(",");for(let u=0;u<c.length;u++)c[u]=c[u].trim();r.push([o,c])}else a&&a.startsWith('"')&&a.endsWith('"')?r.push([o,a.slice(1,-1)]):r.push([o,a])}return Object.fromEntries(r)}const Su={InfoFields:{AA:{Number:1,Type:"String",Description:"Ancestral allele"},AC:{Number:"A",Type:"Integer",Description:"Allele count in genotypes, for each ALT allele, in the same order as listed"},AD:{Number:"R",Type:"Integer",Description:"Total read depth for each allele"},ADF:{Number:"R",Type:"Integer",Description:"Read depth for each allele on the forward strand"},ADR:{Number:"R",Type:"Integer",Description:"Read depth for each allele on the reverse strand"},AF:{Number:"A",Type:"Float",Description:"Allele frequency for each ALT allele in the same order as listed (estimated from primary data, not called genotypes)"},AN:{Number:1,Type:"Integer",Description:"Total number of alleles in called genotypes"},BQ:{Number:1,Type:"Float",Description:"RMS base quality"},CIGAR:{Number:1,Type:"Float",Description:"Cigar string describing how to align an alternate allele to the reference allele"},DB:{Number:0,Type:"Flag",Description:"dbSNP membership"},DP:{Number:1,Type:"Integer",Description:"combined depth across samples"},END:{Number:1,Type:"Integer",Description:"End position (for use with symbolic alleles)"},H2:{Number:0,Type:"Flag",Description:"HapMap2 membership"},H3:{Number:0,Type:"Flag",Description:"HapMap3 membership"},MQ:{Number:1,Type:null,Description:"RMS mapping quality"},MQ0:{Number:1,Type:"Integer",Description:"Number of MAPQ == 0 reads"},NS:{Number:1,Type:"Integer",Description:"Number of samples with data"},SB:{Number:4,Type:"Integer",Description:"Strand bias"},SOMATIC:{Number:0,Type:"Flag",Description:"Somatic mutation (for cancer genomics)"},VALIDATED:{Number:0,Type:"Flag",Description:"Validated by follow-up experiment"},"1000G":{Number:0,Type:"Flag",Description:"1000 Genomes membership"},IMPRECISE:{Number:0,Type:"Flag",Description:"Imprecise structural variation"},NOVEL:{Number:0,Type:"Flag",Description:"Indicates a novel structural variation"},SVTYPE:{Number:1,Type:"String",Description:"Type of structural variant"},SVLEN:{Number:null,Type:"Integer",Description:"Difference in length between REF and ALT alleles"},CIPOS:{Number:2,Type:"Integer",Description:"Confidence interval around POS for imprecise variants"},CIEND:{Number:2,Type:"Integer",Description:"Confidence interval around END for imprecise variants"},HOMLEN:{Type:"Integer",Description:"Length of base pair identical micro-homology at event breakpoints"},HOMSEQ:{Type:"String",Description:"Sequence of base pair identical micro-homology at event breakpoints"},BKPTID:{Type:"String",Description:"ID of the assembled alternate allele in the assembly file"},MEINFO:{Number:4,Type:"String",Description:"Mobile element info of the form NAME,START,END,POLARITY"},METRANS:{Number:4,Type:"String",Description:"Mobile element transduction info of the form CHR,START,END,POLARITY"},DGVID:{Number:1,Type:"String",Description:"ID of this element in Database of Genomic Variation"},DBVARID:{Number:1,Type:"String",Description:"ID of this element in DBVAR"},DBRIPID:{Number:1,Type:"String",Description:"ID of this element in DBRIP"},MATEID:{Number:null,Type:"String",Description:"ID of mate breakends"},PARID:{Number:1,Type:"String",Description:"ID of partner breakend"},EVENT:{Number:1,Type:"String",Description:"ID of event associated to breakend"},CILEN:{Number:2,Type:"Integer",Description:"Confidence interval around the inserted material between breakend"},DPADJ:{Type:"Integer",Description:"Read Depth of adjacency"},CN:{Number:1,Type:"Integer",Description:"Copy number of segment containing breakend"},CNADJ:{Number:null,Type:"Integer",Description:"Copy number of adjacency"},CICN:{Number:2,Type:"Integer",Description:"Confidence interval around copy number for the segment"},CICNADJ:{Number:null,Type:"Integer",Description:"Confidence interval around copy number for the adjacency"}},GenotypeFields:{AD:{Number:"R",Type:"Integer",Description:"Read depth for each allele"},ADF:{Number:"R",Type:"Integer",Description:"Read depth for each allele on the forward strand"},ADR:{Number:"R",Type:"Integer",Description:"Read depth for each allele on the reverse strand"},DP:{Number:1,Type:"Integer",Description:"Read depth"},EC:{Number:"A",Type:"Integer",Description:"Expected alternate allele counts"},FT:{Number:1,Type:"String",Description:'Filter indicating if this genotype was "called"'},GL:{Number:"G",Type:"Float",Description:"Genotype likelihoods"},GP:{Number:"G",Type:"Float",Description:"Genotype posterior probabilities"},GQ:{Number:1,Type:"Integer",Description:"Conditional genotype quality"},GT:{Number:1,Type:"String",Description:"Genotype"},HQ:{Number:2,Type:"Integer",Description:"Haplotype quality"},MQ:{Number:1,Type:"Integer",Description:"RMS mapping quality"},PL:{Number:"G",Type:"Integer",Description:"Phred-scaled genotype likelihoods rounded to the closest integer"},PQ:{Number:1,Type:"Integer",Description:"Phasing quality"},PS:{Number:1,Type:"Integer",Description:"Phase set"}},AltTypes:{DEL:{Description:"Deletion relative to the reference"},INS:{Description:"Insertion of novel sequence relative to the reference"},DUP:{Description:"Region of elevated copy number relative to the reference"},INV:{Description:"Inversion of reference sequence"},CNV:{Description:"Copy number variable region (may be both deletion and duplication)"},"DUP:TANDEM":{Description:"Tandem duplication"},"DEL:ME":{Description:"Deletion of mobile element relative to the reference"},"INS:ME":{Description:"Insertion of a mobile element relative to the reference"},NON_REF:{Description:"Represents any possible alternative allele at this location"},"*":{Description:"Represents any possible alternative allele at this location"}},FilterTypes:{PASS:{Description:"Passed all filters"}}};function q7(n){try{return decodeURIComponent(n)}catch{return n}}class Y7{constructor({header:e="",strict:t=!0}){if(!e.length)throw new Error("empty header received");const r=e.split(/[\r\n]+/).filter(Boolean);if(!r.length)throw new Error("no non-empty header lines specified");this.strict=t,this.metadata={INFO:{...Su.InfoFields},FORMAT:{...Su.GenotypeFields},ALT:{...Su.AltTypes},FILTER:{...Su.FilterTypes}};let i;for(let c=0;c<r.length;c++){const u=r[c];if(u.startsWith("#"))u.startsWith("##")?this.parseMetadata(u):i=u;else throw new Error(`Bad line in header:
|
|
886
|
-
|
|
887
|
-
${i}`);if(o.length!==a.length||!o.every((c,u)=>c===a[u]))throw new Error(`VCF column headers not correct:
|
|
888
|
-
${
|
|
882
|
+
)`},Symbol.toStringTag,{value:"Module"}))).map(([n,t])=>[n,Zw.parse(t.trim())]));function Zd(n){const t=new Set(["uint","int","float","long"]);return{...n,fields:n.fields.map(e=>({...e,isArray:e.size&&e.type!=="char",arrayIsNumeric:e.size&&t.has(e.type),isNumeric:!e.size&&t.has(e.type)})).filter(e=>!!e.name)}}const P9={".":0,"-":-1,"+":1};function L9(n){var t;return n.length>=12&&!Number.isNaN(Number.parseInt(n[9],10))&&((t=n[10])==null?void 0:t.split(",").filter(e=>!!e).length)===Number.parseInt(n[9],10)}class O9{constructor(t={}){if(t.autoSql)this.autoSql=Zd(Zw.parse(t.autoSql));else if(t.type){if(!Xd[t.type])throw new Error("Type not found");this.autoSql=Zd(Xd[t.type])}else this.autoSql=Zd(Xd.defaultBedSchema),this.attemptDefaultBed=!0}parseLine(t,e={}){const{autoSql:r}=this,{uniqueId:i}=e,s=Array.isArray(t)?t:t.split(" ");let o={};if(!this.attemptDefaultBed||this.attemptDefaultBed&&L9(s))for(let a=0;a<r.fields.length;a++){const l=r.fields[a];let c=s[a];const{isNumeric:u,isArray:f,arrayIsNumeric:h,name:A}=l;if(c==null)break;if(c!=="."){if(u){const d=Number(c);c=Number.isNaN(d)?c:d}else f&&(c=c.split(","),c.at(-1)===""&&c.pop(),h&&(c=c.map(Number)));o[A]=c}}else{const a=["chrom","chromStart","chromEnd","name"];o=Object.fromEntries(s.map((l,c)=>[a[c]||"field"+c,l])),o.chromStart=+o.chromStart,o.chromEnd=+o.chromEnd,Number.isNaN(Number.parseFloat(o.field4))||(o.score=+o.field4,delete o.field4),(o.field5==="+"||o.field5==="-")&&(o.strand=o.field5,delete o.field5)}return i&&(o.uniqueId=i),o.strand=P9[o.strand]||0,o.chrom=decodeURIComponent(o.chrom),o}}const U9=Object.freeze(Object.defineProperty({__proto__:null,default:O9},Symbol.toStringTag,{value:"Module"}));var He=function(n,t,e,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?n!==t||!i:!t.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(n,e):i?i.value=e:t.set(n,e),e},G=function(n,t,e,r){if(e==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?n!==t||!r:!t.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?r:e==="a"?r.call(n):r?r.value:t.get(n)},ye,bt,we,ke,pi,ac,mi,sf,$t,$w,$d,e0,t0,eI,of;class cc extends Map{constructor(t={}){if(super(),ye.add(this),bt.set(this,0),we.set(this,new Map),ke.set(this,new Map),pi.set(this,void 0),ac.set(this,void 0),mi.set(this,void 0),!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof t.maxAge=="number"&&t.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");He(this,pi,t.maxSize,"f"),He(this,ac,t.maxAge||Number.POSITIVE_INFINITY,"f"),He(this,mi,t.onEviction,"f")}get __oldCache(){return G(this,ke,"f")}get(t){if(G(this,we,"f").has(t)){const e=G(this,we,"f").get(t);return G(this,ye,"m",$d).call(this,t,e)}if(G(this,ke,"f").has(t)){const e=G(this,ke,"f").get(t);if(!G(this,ye,"m",$t).call(this,t,e))return G(this,ye,"m",eI).call(this,t,e),e.value}}set(t,e,{maxAge:r=G(this,ac,"f")}={}){const i=typeof r=="number"&&r!==Number.POSITIVE_INFINITY?Date.now()+r:void 0;return G(this,we,"f").has(t)?G(this,we,"f").set(t,{value:e,expiry:i}):G(this,ye,"m",t0).call(this,t,{value:e,expiry:i}),this}has(t){return G(this,we,"f").has(t)?!G(this,ye,"m",$t).call(this,t,G(this,we,"f").get(t)):G(this,ke,"f").has(t)?!G(this,ye,"m",$t).call(this,t,G(this,ke,"f").get(t)):!1}peek(t){if(G(this,we,"f").has(t))return G(this,ye,"m",e0).call(this,t,G(this,we,"f"));if(G(this,ke,"f").has(t))return G(this,ye,"m",e0).call(this,t,G(this,ke,"f"))}expiresIn(t){const e=G(this,we,"f").get(t)??G(this,ke,"f").get(t);if(e)return e.expiry?e.expiry-Date.now():Number.POSITIVE_INFINITY}delete(t){var e;const r=G(this,we,"f").delete(t);return r&&He(this,bt,(e=G(this,bt,"f"),e--,e),"f"),G(this,ke,"f").delete(t)||r}clear(){G(this,we,"f").clear(),G(this,ke,"f").clear(),He(this,bt,0,"f")}resize(t){if(!(t&&t>0))throw new TypeError("`maxSize` must be a number greater than 0");const e=[...G(this,ye,"m",of).call(this)],r=e.length-t;r<0?(He(this,we,new Map(e),"f"),He(this,ke,new Map,"f"),He(this,bt,e.length,"f")):(r>0&&G(this,ye,"m",sf).call(this,e.slice(0,r)),He(this,ke,new Map(e.slice(r)),"f"),He(this,we,new Map,"f"),He(this,bt,0,"f")),He(this,pi,t,"f")}evict(t=1){const e=t;if(!e||e<=0)return;const r=[...G(this,ye,"m",of).call(this)],i=Math.trunc(Math.min(e,Math.max(r.length-1,0)));i<=0||(G(this,ye,"m",sf).call(this,r.slice(0,i)),He(this,ke,new Map(r.slice(i)),"f"),He(this,we,new Map,"f"),He(this,bt,0,"f"))}*keys(){for(const[t]of this)yield t}*values(){for(const[,t]of this)yield t}*[(bt=new WeakMap,we=new WeakMap,ke=new WeakMap,pi=new WeakMap,ac=new WeakMap,mi=new WeakMap,ye=new WeakSet,sf=function(e){if(typeof G(this,mi,"f")=="function")for(const[r,i]of e)G(this,mi,"f").call(this,r,i.value)},$t=function(e,r){return typeof r.expiry=="number"&&r.expiry<=Date.now()?(typeof G(this,mi,"f")=="function"&&G(this,mi,"f").call(this,e,r.value),this.delete(e)):!1},$w=function(e,r){if(!G(this,ye,"m",$t).call(this,e,r))return r.value},$d=function(e,r){return r.expiry?G(this,ye,"m",$w).call(this,e,r):r.value},e0=function(e,r){const i=r.get(e);return G(this,ye,"m",$d).call(this,e,i)},t0=function(e,r){var i;G(this,we,"f").set(e,r),He(this,bt,(i=G(this,bt,"f"),i++,i),"f"),G(this,bt,"f")>=G(this,pi,"f")&&(He(this,bt,0,"f"),G(this,ye,"m",sf).call(this,G(this,ke,"f")),He(this,ke,G(this,we,"f"),"f"),He(this,we,new Map,"f"))},eI=function(e,r){G(this,ke,"f").delete(e),G(this,ye,"m",t0).call(this,e,r)},of=function*(){for(const e of G(this,ke,"f")){const[r,i]=e;G(this,we,"f").has(r)||G(this,ye,"m",$t).call(this,r,i)||(yield e)}for(const e of G(this,we,"f")){const[r,i]=e;G(this,ye,"m",$t).call(this,r,i)||(yield e)}},Symbol.iterator)](){for(const t of G(this,we,"f")){const[e,r]=t;G(this,ye,"m",$t).call(this,e,r)||(yield[e,r.value])}for(const t of G(this,ke,"f")){const[e,r]=t;G(this,we,"f").has(e)||G(this,ye,"m",$t).call(this,e,r)||(yield[e,r.value])}}*entriesDescending(){let t=[...G(this,we,"f")];for(let e=t.length-1;e>=0;--e){const r=t[e],[i,s]=r;G(this,ye,"m",$t).call(this,i,s)||(yield[i,s.value])}t=[...G(this,ke,"f")];for(let e=t.length-1;e>=0;--e){const r=t[e],[i,s]=r;G(this,we,"f").has(i)||G(this,ye,"m",$t).call(this,i,s)||(yield[i,s.value])}}*entriesAscending(){for(const[t,e]of G(this,ye,"m",of).call(this))yield[t,e.value]}get size(){if(!G(this,bt,"f"))return G(this,ke,"f").size;let t=0;for(const e of G(this,ke,"f").keys())G(this,we,"f").has(e)||t++;return Math.min(G(this,bt,"f")+t,G(this,pi,"f"))}get maxSize(){return G(this,pi,"f")}get maxAge(){return G(this,ac,"f")}entries(){return this.entriesAscending()}forEach(t,e=this){for(const[r,i]of this.entriesAscending())t.call(e,i,r,this)}get[Symbol.toStringTag](){return"QuickLRU"}toString(){return`QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}let tI=class{constructor(t,e,r,i){this.minv=t,this.maxv=e,this.bin=r,this._fetchedSize=i}toUniqueString(){return`${this.minv.toString()}..${this.maxv.toString()} (bin ${this.bin}, fetchedSize ${this.fetchedSize()})`}toString(){return this.toUniqueString()}compareTo(t){return this.minv.compareTo(t.minv)||this.maxv.compareTo(t.maxv)||this.bin-t.bin}fetchedSize(){return this._fetchedSize!==void 0?this._fetchedSize:this.maxv.blockPosition+65536-this.minv.blockPosition}};const nI=65536,G9=nI*nI;function z9(n,t=0){const e=n[t]|n[t+1]<<8|n[t+2]<<16|n[t+3]<<24;return((n[t+4]|n[t+5]<<8|n[t+6]<<16|n[t+7]<<24)>>>0)*G9+(e>>>0)}function H9(n={}){return"aborted"in n?{signal:n}:n}function n0(n,t){const e=n.length;if(e===0)return n;let r;if(t){const l=t.blockPosition,c=t.dataPosition;r=[];for(let u=0;u<e;u++){const f=n[u],h=f.maxv;(h.blockPosition-l||h.dataPosition-c)>0&&r.push(f)}if(r.length===0)return r}else r=n;r.sort((l,c)=>{const u=l.minv.blockPosition-c.minv.blockPosition;return u!==0?u:l.minv.dataPosition-c.minv.dataPosition});const i=[];let s=r[0];i.push(s);let o=s.minv.blockPosition,a=s.maxv.blockPosition;for(let l=1;l<r.length;l++){const c=r[l],u=c.minv.blockPosition,f=c.maxv.blockPosition;if(u-a<65e3&&f-o<5e6){const h=c.maxv,A=s.maxv;(f-a||h.dataPosition-A.dataPosition)>0&&(s.maxv=h,a=f)}else i.push(c),s=c,o=u,a=f}return i}function rI(n,t){return{lineCount:z9(n,t)}}function lc(n,t){return n?n.compareTo(t)>0?t:n:t}function Y9(n,t=e=>e){let e=0,r=0;const i=[],s={};for(let o=0;o<n.length;o+=1)if(!n[o]){if(r<o){let a="";for(let l=r;l<o;l++)a+=String.fromCharCode(n[l]);a=t(a),i[e]=a,s[a]=e}r=o+1,e+=1}return{refNameToId:s,refIdToName:i}}function _9(n){let t=0;for(const i of n)t+=i.length;const e=new Uint8Array(t);let r=0;for(const i of n)e.set(i,r),r+=i.length;return e}function V9(n,t,e){return!!((n&t)!==t||n&e)}function J9(n,t){return t==="*"?n===void 0:`${n}`!=`${t}`}function q9(n){if(!n)return"";const{flagInclude:t=0,flagExclude:e=0,tagFilter:r}=n,i=r?`:${r.tag}=${r.value??"*"}`:"";return`:f${t}x${e}${i}`}let iI=class{constructor({filehandle:t,renameRefSeq:e=r=>r}){this.filehandle=t,this.renameRefSeq=e}async estimatedBytesForRegions(t,e){const r=await Promise.all(t.map(o=>this.blocksForRange(o.refId,o.start,o.end,e))),i=n0(r.flat());let s=0;for(const o of i)s+=o.fetchedSize();return s}},sI=class{constructor(t,e){this.blockPosition=t,this.dataPosition=e}toString(){return`${this.blockPosition}:${this.dataPosition}`}compareTo(t){return this.blockPosition-t.blockPosition||this.dataPosition-t.dataPosition}};function Ir(n,t=0,e=!1){if(e)throw new Error("big-endian virtual file offsets not implemented");return new sI(n[t+7]*1099511627776+n[t+6]*4294967296+n[t+5]*16777216+n[t+4]*65536+n[t+3]*256+n[t+2],n[t+1]<<8|n[t])}const K9=21578050;function j9(n,t){return n-n%t}function W9(n,t){return n-n%t+t}function X9(n,t){return t-=1,[[0,0],[1+(n>>26),1+(t>>26)],[9+(n>>23),9+(t>>23)],[73+(n>>20),73+(t>>20)],[585+(n>>17),585+(t>>17)],[4681+(n>>14),4681+(t>>14)]]}class Fs extends iI{async lineCount(t,e){var i,s;return((s=(i=(await this.parse(e)).indices(t))==null?void 0:i.stats)==null?void 0:s.lineCount)||0}async _parse(t){const e=await this.filehandle.readFile(),r=new DataView(e.buffer);if(r.getUint32(0,!0)!==K9)throw new Error("Not a BAI file");const i=r.getInt32(4,!0),o=((1<<(5+1)*3)-1)/7;let a=8,l;const c=[];for(let h=0;h<i;h++){c.push(a);const A=r.getInt32(a,!0);a+=4;for(let p=0;p<A;p+=1){const C=r.getUint32(a,!0);if(a+=4,C===o+1)a+=4,a+=32;else{if(C>o+1)throw new Error("bai index contains too many bins, please use CSI");{const w=r.getInt32(a,!0);a+=4;for(let b=0;b<w;b++)a+=8,a+=8}}}const d=r.getInt32(a,!0);a+=4;const g=new Array(d);for(let p=0;p<d;p++){const C=Ir(e,a);a+=8,l=lc(l,C),g[p]=C}}const u=new cc({maxSize:5});function f(h){let A=c[h];if(A===void 0)return;const d=r.getInt32(A,!0);let g;A+=4;const p={};for(let b=0;b<d;b+=1){const y=r.getUint32(A,!0);if(A+=4,y===o+1)A+=4,g=rI(e,A+16),A+=32;else{if(y>o+1)throw new Error("bai index contains too many bins, please use CSI");{const x=r.getInt32(A,!0);A+=4;const B=new Array(x);for(let E=0;E<x;E++){const Q=Ir(e,A);A+=8;const k=Ir(e,A);A+=8,l=lc(l,Q),B[E]=new tI(Q,k,y)}p[y]=B}}}const C=r.getInt32(A,!0);A+=4;const w=new Array(C);for(let b=0;b<C;b++){const y=Ir(e,A);A+=8,l=lc(l,y),w[b]=y}return{binIndex:p,linearIndex:w,stats:g}}return{bai:!0,firstDataLine:l,maxBlockSize:65536,indices:h=>{if(!u.has(h)){const A=f(h);return A&&u.set(h,A),A}return u.get(h)},refCount:i}}async indexCov(t,e,r,i){const o=e!==void 0,l=(await this.parse(i)).indices(t);if(!l)return[];const{linearIndex:c,stats:u}=l;if(c.length===0)return[];const f=r===void 0?(c.length-1)*16384:W9(r,16384),h=e===void 0?0:j9(e,16384),A=o?new Array((f-h)/16384):new Array(c.length-1),d=c[c.length-1].blockPosition;if(f>(c.length-1)*16384)throw new Error("query outside of range of linear index");let g=c[h/16384].blockPosition;for(let p=h/16384,C=0;p<f/16384;p++,C++)A[C]={score:c[p+1].blockPosition-g,start:p*16384,end:p*16384+16384},g=c[p+1].blockPosition;return A.map(p=>({...p,score:p.score*((u==null?void 0:u.lineCount)||0)/d}))}async blocksForRange(t,e,r,i={}){e<0&&(e=0);const s=await this.parse(i);if(!s)return[];const o=s.indices(t);if(!o)return[];const a=X9(e,r),l=[],{binIndex:c}=o;for(const[d,g]of a)for(let p=d;p<=g;p++){const C=c[p];if(C)for(let w=0,b=C.length;w<b;w++)l.push(C[w])}const{linearIndex:u}=o,f=u.length,h=Math.min(e>>14,f-1),A=u[h];return n0(l,A)}async parse(t={}){return this.setupP||(this.setupP=this._parse(t).catch(e=>{throw this.setupP=void 0,e})),this.setupP}async hasRefSeq(t,e={}){var i;return!!((i=(await this.parse(e)).indices(t))!=null&&i.binIndex)}}var oI=0,aI=2,af=4,Ci=0,cf=1,Z9=2,$9=-5;function eT(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function tT(n){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var e=t.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(var r in e)eT(e,r)&&(n[r]=e[r])}}return n}function cI(n,t){return n.length===t?n:n.subarray?n.subarray(0,t):(n.length=t,n)}var uc={arraySet:function(n,t,e,r,i){if(t.subarray&&n.subarray){n.set(t.subarray(e,e+r),i);return}for(var s=0;s<r;s++)n[i+s]=t[e+s]},flattenChunks:function(n){var t,e,r,i,s,o;for(r=0,t=0,e=n.length;t<e;t++)r+=n[t].length;for(o=new Uint8Array(r),i=0,t=0,e=n.length;t<e;t++)s=n[t],o.set(s,i),i+=s.length;return o},Buf8:function(n){return new Uint8Array(n)},Buf16:function(n){return new Uint16Array(n)},Buf32:function(n){return new Int32Array(n)}},fc={arraySet:function(n,t,e,r,i){for(var s=0;s<r;s++)n[i+s]=t[e+s]},flattenChunks:function(n){return[].concat.apply([],n)},Buf8:function(n){return new Array(n)},Buf16:function(n){return new Array(n)},Buf32:function(n){return new Array(n)}};let Ms=()=>{const n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";return Ms=()=>n,n},Er=(n,t,e,r,i)=>(Er=Ms()?uc.arraySet:fc.arraySet,Er(n,t,e,r,i)),r0=n=>(r0=Ms()?uc.flattenChunks:fc.flattenChunks,r0(n)),Rs=n=>(Rs=Ms()?uc.Buf8:fc.Buf8,Rs(n)),Ns=n=>(Ns=Ms()?uc.Buf16:fc.Buf16,Ns(n)),Ts=n=>(Ts=Ms()?uc.Buf32:fc.Buf32,Ts(n)),lI=function(){let n=!0;try{String.fromCharCode.apply(null,[0])}catch{n=!1}return lI=()=>n,n},uI=function(){let n=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}return uI=()=>n,n},i0=function(n){for(var t=Rs(256),e=0;e<256;e++)t[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;return t[254]=t[254]=1,i0=r=>t[r],t[n]};function fI(n){var t,e,r,i,s,o=n.length,a=0;for(i=0;i<o;i++)e=n.charCodeAt(i),(e&64512)===55296&&i+1<o&&(r=n.charCodeAt(i+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),i++)),a+=e<128?1:e<2048?2:e<65536?3:4;for(t=new Uint8Array(a),s=0,i=0;s<a;i++)e=n.charCodeAt(i),(e&64512)===55296&&i+1<o&&(r=n.charCodeAt(i+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),i++)),e<128?t[s++]=e:e<2048?(t[s++]=192|e>>>6,t[s++]=128|e&63):e<65536?(t[s++]=224|e>>>12,t[s++]=128|e>>>6&63,t[s++]=128|e&63):(t[s++]=240|e>>>18,t[s++]=128|e>>>12&63,t[s++]=128|e>>>6&63,t[s++]=128|e&63);return t}function nT(n,t){if(t<65534&&(n.subarray&&uI()||!n.subarray&&lI()))return String.fromCharCode.apply(null,cI(n,t));for(var e="",r=0;r<t;r++)e+=String.fromCharCode(n[r]);return e}function rT(n){for(var t=new Uint8Array(n.length),e=0,r=t.length;e<r;e++)t[e]=n.charCodeAt(e);return t}function iT(n,t){var e,r,i,s,o=t||n.length,a=new Array(o*2);for(r=0,e=0;e<o;){if(i=n[e++],i<128){a[r++]=i;continue}if(s=i0(i),s>4){a[r++]=65533,e+=s-1;continue}for(i&=s===2?31:s===3?15:7;s>1&&e<o;)i=i<<6|n[e++]&63,s--;if(s>1){a[r++]=65533;continue}i<65536?a[r++]=i:(i-=65536,a[r++]=55296|i>>10&1023,a[r++]=56320|i&1023)}return nT(a,r)}function sT(n,t){var e;for(t=t||n.length,t>n.length&&(t=n.length),e=t-1;e>=0&&(n[e]&192)===128;)e--;return e<0||e===0?t:e+i0(n[e])>t?e:t}function oT(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}function s0(n,t,e,r){for(var i=n&65535|0,s=n>>>16&65535|0,o=0;e!==0;){o=e>2e3?2e3:e,e-=o;do i=i+t[r++]|0,s=s+i|0;while(--o);i%=65521,s%=65521}return i|s<<16|0}function aT(){for(var n,t=[],e=0;e<256;e++){n=e;for(var r=0;r<8;r++)n=n&1?3988292384^n>>>1:n>>>1;t[e]=n}return t}let AI=function(){const n=aT();return AI=()=>n,n};function Cn(n,t,e,r){var i=AI(),s=r+e;n^=-1;for(var o=r;o<s;o++)n=n>>>8^i[(n^t[o])&255];return n^-1}var lf=30,cT=12;function lT(n,t){var e,r,i,s,o,a,l,c,u,f,h,A,d,g,p,C,w,b,y,x,B,E,Q,k,S;e=n.state,r=n.next_in,k=n.input,i=r+(n.avail_in-5),s=n.next_out,S=n.output,o=s-(t-n.avail_out),a=s+(n.avail_out-257),l=e.dmax,c=e.wsize,u=e.whave,f=e.wnext,h=e.window,A=e.hold,d=e.bits,g=e.lencode,p=e.distcode,C=(1<<e.lenbits)-1,w=(1<<e.distbits)-1;e:do{d<15&&(A+=k[r++]<<d,d+=8,A+=k[r++]<<d,d+=8),b=g[A&C];t:for(;;){if(y=b>>>24,A>>>=y,d-=y,y=b>>>16&255,y===0)S[s++]=b&65535;else if(y&16){x=b&65535,y&=15,y&&(d<y&&(A+=k[r++]<<d,d+=8),x+=A&(1<<y)-1,A>>>=y,d-=y),d<15&&(A+=k[r++]<<d,d+=8,A+=k[r++]<<d,d+=8),b=p[A&w];n:for(;;){if(y=b>>>24,A>>>=y,d-=y,y=b>>>16&255,y&16){if(B=b&65535,y&=15,d<y&&(A+=k[r++]<<d,d+=8,d<y&&(A+=k[r++]<<d,d+=8)),B+=A&(1<<y)-1,B>l){n.msg="invalid distance too far back",e.mode=lf;break e}if(A>>>=y,d-=y,y=s-o,B>y){if(y=B-y,y>u&&e.sane){n.msg="invalid distance too far back",e.mode=lf;break e}if(E=0,Q=h,f===0){if(E+=c-y,y<x){x-=y;do S[s++]=h[E++];while(--y);E=s-B,Q=S}}else if(f<y){if(E+=c+f-y,y-=f,y<x){x-=y;do S[s++]=h[E++];while(--y);if(E=0,f<x){y=f,x-=y;do S[s++]=h[E++];while(--y);E=s-B,Q=S}}}else if(E+=f-y,y<x){x-=y;do S[s++]=h[E++];while(--y);E=s-B,Q=S}for(;x>2;)S[s++]=Q[E++],S[s++]=Q[E++],S[s++]=Q[E++],x-=3;x&&(S[s++]=Q[E++],x>1&&(S[s++]=Q[E++]))}else{E=s-B;do S[s++]=S[E++],S[s++]=S[E++],S[s++]=S[E++],x-=3;while(x>2);x&&(S[s++]=S[E++],x>1&&(S[s++]=S[E++]))}}else if((y&64)===0){b=p[(b&65535)+(A&(1<<y)-1)];continue n}else{n.msg="invalid distance code",e.mode=lf;break e}break}}else if((y&64)===0){b=g[(b&65535)+(A&(1<<y)-1)];continue t}else if(y&32){e.mode=cT;break e}else{n.msg="invalid literal/length code",e.mode=lf;break e}break}}while(r<i&&s<a);x=d>>3,r-=x,d-=x<<3,A&=(1<<d)-1,n.next_in=r,n.next_out=s,n.avail_in=r<i?5+(i-r):5-(r-i),n.avail_out=s<a?257+(a-s):257-(s-a),e.hold=A,e.bits=d}var Ps=15,hI=852,dI=592,gI=0,o0=1,pI=2,uT=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],fT=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],AT=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],hT=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function Ac(n,t,e,r,i,s,o,a){var l=a.bits,c=0,u=0,f=0,h=0,A=0,d=0,g=0,p=0,C=0,w=0,b,y,x,B,E,Q=null,k=0,S,T=Ns(Ps+1),N=Ns(Ps+1),U=null,H=0,J,_,Z;for(c=0;c<=Ps;c++)T[c]=0;for(u=0;u<r;u++)T[t[e+u]]++;for(A=l,h=Ps;h>=1&&T[h]===0;h--);if(A>h&&(A=h),h===0)return i[s++]=1<<24|64<<16|0,i[s++]=1<<24|64<<16|0,a.bits=1,0;for(f=1;f<h&&T[f]===0;f++);for(A<f&&(A=f),p=1,c=1;c<=Ps;c++)if(p<<=1,p-=T[c],p<0)return-1;if(p>0&&(n===gI||h!==1))return-1;for(N[1]=0,c=1;c<Ps;c++)N[c+1]=N[c]+T[c];for(u=0;u<r;u++)t[e+u]!==0&&(o[N[t[e+u]]++]=u);if(n===gI?(Q=U=o,S=19):n===o0?(Q=uT,k-=257,U=fT,H-=257,S=256):(Q=AT,U=hT,S=-1),w=0,u=0,c=f,E=s,d=A,g=0,x=-1,C=1<<A,B=C-1,n===o0&&C>hI||n===pI&&C>dI)return 1;for(;;){J=c-g,o[u]<S?(_=0,Z=o[u]):o[u]>S?(_=U[H+o[u]],Z=Q[k+o[u]]):(_=96,Z=0),b=1<<c-g,y=1<<d,f=y;do y-=b,i[E+(w>>g)+y]=J<<24|_<<16|Z|0;while(y!==0);for(b=1<<c-1;w&b;)b>>=1;if(b!==0?(w&=b-1,w+=b):w=0,u++,--T[c]===0){if(c===h)break;c=t[e+o[u]]}if(c>A&&(w&B)!==x){for(g===0&&(g=A),E+=f,d=c-g,p=1<<d;d+g<h&&(p-=T[d+g],!(p<=0));)d++,p<<=1;if(C+=1<<d,n===o0&&C>hI||n===pI&&C>dI)return 1;x=w&B,i[x]=A<<24|d<<16|E-s|0}}return w!==0&&(i[E+w]=c-g<<24|64<<16|0),a.bits=A,0}var dT=0,mI=1,CI=2,yI=4,yi=0,gT=1,pT=2,Ut=-2,wI=-3,II=-4,mT=-5,EI=8,bI=1,xI=2,BI=3,vI=4,QI=5,SI=6,DI=7,kI=8,FI=9,MI=10,uf=11,Un=12,a0=13,RI=14,c0=15,NI=16,TI=17,PI=18,LI=19,ff=20,Af=21,OI=22,UI=23,GI=24,zI=25,HI=26,l0=27,YI=28,_I=29,Qe=30,VI=31,CT=32,yT=852,wT=592;function JI(n){return(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24)}function IT(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=Ns(320),this.work=Ns(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ET(n){var t;return!n||!n.state?Ut:(t=n.state,n.total_in=n.total_out=t.total=0,n.msg="",t.wrap&&(n.adler=t.wrap&1),t.mode=bI,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=Ts(yT),t.distcode=t.distdyn=Ts(wT),t.sane=1,t.back=-1,yi)}function bT(n){var t;return!n||!n.state?Ut:(t=n.state,t.wsize=0,t.whave=0,t.wnext=0,ET(n))}function xT(n,t){var e,r;return!n||!n.state||(r=n.state,t<0?(e=0,t=-t):(e=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Ut:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=e,r.wbits=t,bT(n))}function BT(n,t){var e,r;return n?(r=new IT,n.state=r,r.window=null,e=xT(n,t),e!==yi&&(n.state=null),e):Ut}var qI=!0,u0,f0;function vT(n){if(qI){var t;for(u0=Ts(512),f0=Ts(32),t=0;t<144;)n.lens[t++]=8;for(;t<256;)n.lens[t++]=9;for(;t<280;)n.lens[t++]=7;for(;t<288;)n.lens[t++]=8;for(Ac(mI,n.lens,0,288,u0,0,n.work,{bits:9}),t=0;t<32;)n.lens[t++]=5;Ac(CI,n.lens,0,32,f0,0,n.work,{bits:5}),qI=!1}n.lencode=u0,n.lenbits=9,n.distcode=f0,n.distbits=5}function KI(n,t,e,r){var i,s=n.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=Rs(s.wsize)),r>=s.wsize?(Er(s.window,t,e-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>r&&(i=r),Er(s.window,t,e-r,i,s.wnext),r-=i,r?(Er(s.window,t,e-r,r,0),s.wnext=r,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0}function QT(n,t){var e,r,i,s,o,a,l,c,u,f,h,A,d,g,p=0,C,w,b,y,x,B,E,Q,k=Rs(4),S,T,N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!n||!n.state||!n.output||!n.input&&n.avail_in!==0)return Ut;e=n.state,e.mode===Un&&(e.mode=a0),o=n.next_out,i=n.output,l=n.avail_out,s=n.next_in,r=n.input,a=n.avail_in,c=e.hold,u=e.bits,f=a,h=l,Q=yi;e:for(;;)switch(e.mode){case bI:if(e.wrap===0){e.mode=a0;break}for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(e.wrap&2&&c===35615){e.check=0,k[0]=c&255,k[1]=c>>>8&255,e.check=Cn(e.check,k,2,0),c=0,u=0,e.mode=xI;break}if(e.flags=0,e.head&&(e.head.done=!1),!(e.wrap&1)||(((c&255)<<8)+(c>>8))%31){n.msg="incorrect header check",e.mode=Qe;break}if((c&15)!==EI){n.msg="unknown compression method",e.mode=Qe;break}if(c>>>=4,u-=4,E=(c&15)+8,e.wbits===0)e.wbits=E;else if(E>e.wbits){n.msg="invalid window size",e.mode=Qe;break}e.dmax=1<<E,n.adler=e.check=1,e.mode=c&512?MI:Un,c=0,u=0;break;case xI:for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(e.flags=c,(e.flags&255)!==EI){n.msg="unknown compression method",e.mode=Qe;break}if(e.flags&57344){n.msg="unknown header flags set",e.mode=Qe;break}e.head&&(e.head.text=c>>8&1),e.flags&512&&(k[0]=c&255,k[1]=c>>>8&255,e.check=Cn(e.check,k,2,0)),c=0,u=0,e.mode=BI;case BI:for(;u<32;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}e.head&&(e.head.time=c),e.flags&512&&(k[0]=c&255,k[1]=c>>>8&255,k[2]=c>>>16&255,k[3]=c>>>24&255,e.check=Cn(e.check,k,4,0)),c=0,u=0,e.mode=vI;case vI:for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}e.head&&(e.head.xflags=c&255,e.head.os=c>>8),e.flags&512&&(k[0]=c&255,k[1]=c>>>8&255,e.check=Cn(e.check,k,2,0)),c=0,u=0,e.mode=QI;case QI:if(e.flags&1024){for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}e.length=c,e.head&&(e.head.extra_len=c),e.flags&512&&(k[0]=c&255,k[1]=c>>>8&255,e.check=Cn(e.check,k,2,0)),c=0,u=0}else e.head&&(e.head.extra=null);e.mode=SI;case SI:if(e.flags&1024&&(A=e.length,A>a&&(A=a),A&&(e.head&&(E=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Array(e.head.extra_len)),Er(e.head.extra,r,s,A,E)),e.flags&512&&(e.check=Cn(e.check,r,A,s)),a-=A,s+=A,e.length-=A),e.length))break e;e.length=0,e.mode=DI;case DI:if(e.flags&2048){if(a===0)break e;A=0;do E=r[s+A++],e.head&&E&&e.length<65536&&(e.head.name+=String.fromCharCode(E));while(E&&A<a);if(e.flags&512&&(e.check=Cn(e.check,r,A,s)),a-=A,s+=A,E)break e}else e.head&&(e.head.name=null);e.length=0,e.mode=kI;case kI:if(e.flags&4096){if(a===0)break e;A=0;do E=r[s+A++],e.head&&E&&e.length<65536&&(e.head.comment+=String.fromCharCode(E));while(E&&A<a);if(e.flags&512&&(e.check=Cn(e.check,r,A,s)),a-=A,s+=A,E)break e}else e.head&&(e.head.comment=null);e.mode=FI;case FI:if(e.flags&512){for(;u<16;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(c!==(e.check&65535)){n.msg="header crc mismatch",e.mode=Qe;break}c=0,u=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),n.adler=e.check=0,e.mode=Un;break;case MI:for(;u<32;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}n.adler=e.check=JI(c),c=0,u=0,e.mode=uf;case uf:if(e.havedict===0)return n.next_out=o,n.avail_out=l,n.next_in=s,n.avail_in=a,e.hold=c,e.bits=u,pT;n.adler=e.check=1,e.mode=Un;case Un:case a0:if(e.last){c>>>=u&7,u-=u&7,e.mode=l0;break}for(;u<3;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}switch(e.last=c&1,c>>>=1,u-=1,c&3){case 0:e.mode=RI;break;case 1:vT(e),e.mode=ff;break;case 2:e.mode=TI;break;case 3:n.msg="invalid block type",e.mode=Qe}c>>>=2,u-=2;break;case RI:for(c>>>=u&7,u-=u&7;u<32;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if((c&65535)!==(c>>>16^65535)){n.msg="invalid stored block lengths",e.mode=Qe;break}e.length=c&65535,c=0,u=0,e.mode=c0;case c0:e.mode=NI;case NI:if(A=e.length,A){if(A>a&&(A=a),A>l&&(A=l),A===0)break e;Er(i,r,s,A,o),a-=A,s+=A,l-=A,o+=A,e.length-=A;break}e.mode=Un;break;case TI:for(;u<14;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(e.nlen=(c&31)+257,c>>>=5,u-=5,e.ndist=(c&31)+1,c>>>=5,u-=5,e.ncode=(c&15)+4,c>>>=4,u-=4,e.nlen>286||e.ndist>30){n.msg="too many length or distance symbols",e.mode=Qe;break}e.have=0,e.mode=PI;case PI:for(;e.have<e.ncode;){for(;u<3;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}e.lens[N[e.have++]]=c&7,c>>>=3,u-=3}for(;e.have<19;)e.lens[N[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,S={bits:e.lenbits},Q=Ac(dT,e.lens,0,19,e.lencode,0,e.work,S),e.lenbits=S.bits,Q){n.msg="invalid code lengths set",e.mode=Qe;break}e.have=0,e.mode=LI;case LI:for(;e.have<e.nlen+e.ndist;){for(;p=e.lencode[c&(1<<e.lenbits)-1],C=p>>>24,w=p>>>16&255,b=p&65535,!(C<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(b<16)c>>>=C,u-=C,e.lens[e.have++]=b;else{if(b===16){for(T=C+2;u<T;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(c>>>=C,u-=C,e.have===0){n.msg="invalid bit length repeat",e.mode=Qe;break}E=e.lens[e.have-1],A=3+(c&3),c>>>=2,u-=2}else if(b===17){for(T=C+3;u<T;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}c>>>=C,u-=C,E=0,A=3+(c&7),c>>>=3,u-=3}else{for(T=C+7;u<T;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}c>>>=C,u-=C,E=0,A=11+(c&127),c>>>=7,u-=7}if(e.have+A>e.nlen+e.ndist){n.msg="invalid bit length repeat",e.mode=Qe;break}for(;A--;)e.lens[e.have++]=E}}if(e.mode===Qe)break;if(e.lens[256]===0){n.msg="invalid code -- missing end-of-block",e.mode=Qe;break}if(e.lenbits=9,S={bits:e.lenbits},Q=Ac(mI,e.lens,0,e.nlen,e.lencode,0,e.work,S),e.lenbits=S.bits,Q){n.msg="invalid literal/lengths set",e.mode=Qe;break}if(e.distbits=6,e.distcode=e.distdyn,S={bits:e.distbits},Q=Ac(CI,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,S),e.distbits=S.bits,Q){n.msg="invalid distances set",e.mode=Qe;break}e.mode=ff;case ff:e.mode=Af;case Af:if(a>=6&&l>=258){n.next_out=o,n.avail_out=l,n.next_in=s,n.avail_in=a,e.hold=c,e.bits=u,lT(n,h),o=n.next_out,i=n.output,l=n.avail_out,s=n.next_in,r=n.input,a=n.avail_in,c=e.hold,u=e.bits,e.mode===Un&&(e.back=-1);break}for(e.back=0;p=e.lencode[c&(1<<e.lenbits)-1],C=p>>>24,w=p>>>16&255,b=p&65535,!(C<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(w&&(w&240)===0){for(y=C,x=w,B=b;p=e.lencode[B+((c&(1<<y+x)-1)>>y)],C=p>>>24,w=p>>>16&255,b=p&65535,!(y+C<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}c>>>=y,u-=y,e.back+=y}if(c>>>=C,u-=C,e.back+=C,e.length=b,w===0){e.mode=HI;break}if(w&32){e.back=-1,e.mode=Un;break}if(w&64){n.msg="invalid literal/length code",e.mode=Qe;break}e.extra=w&15,e.mode=OI;case OI:if(e.extra){for(T=e.extra;u<T;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}e.length+=c&(1<<e.extra)-1,c>>>=e.extra,u-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=UI;case UI:for(;p=e.distcode[c&(1<<e.distbits)-1],C=p>>>24,w=p>>>16&255,b=p&65535,!(C<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if((w&240)===0){for(y=C,x=w,B=b;p=e.distcode[B+((c&(1<<y+x)-1)>>y)],C=p>>>24,w=p>>>16&255,b=p&65535,!(y+C<=u);){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}c>>>=y,u-=y,e.back+=y}if(c>>>=C,u-=C,e.back+=C,w&64){n.msg="invalid distance code",e.mode=Qe;break}e.offset=b,e.extra=w&15,e.mode=GI;case GI:if(e.extra){for(T=e.extra;u<T;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}e.offset+=c&(1<<e.extra)-1,c>>>=e.extra,u-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){n.msg="invalid distance too far back",e.mode=Qe;break}e.mode=zI;case zI:if(l===0)break e;if(A=h-l,e.offset>A){if(A=e.offset-A,A>e.whave&&e.sane){n.msg="invalid distance too far back",e.mode=Qe;break}A>e.wnext?(A-=e.wnext,d=e.wsize-A):d=e.wnext-A,A>e.length&&(A=e.length),g=e.window}else g=i,d=o-e.offset,A=e.length;A>l&&(A=l),l-=A,e.length-=A;do i[o++]=g[d++];while(--A);e.length===0&&(e.mode=Af);break;case HI:if(l===0)break e;i[o++]=e.length,l--,e.mode=Af;break;case l0:if(e.wrap){for(;u<32;){if(a===0)break e;a--,c|=r[s++]<<u,u+=8}if(h-=l,n.total_out+=h,e.total+=h,h&&(n.adler=e.check=e.flags?Cn(e.check,i,h,o-h):s0(e.check,i,h,o-h)),h=l,(e.flags?c:JI(c))!==e.check){n.msg="incorrect data check",e.mode=Qe;break}c=0,u=0}e.mode=YI;case YI:if(e.wrap&&e.flags){for(;u<32;){if(a===0)break e;a--,c+=r[s++]<<u,u+=8}if(c!==(e.total&4294967295)){n.msg="incorrect length check",e.mode=Qe;break}c=0,u=0}e.mode=_I;case _I:Q=gT;break e;case Qe:Q=wI;break e;case VI:return II;case CT:default:return Ut}return n.next_out=o,n.avail_out=l,n.next_in=s,n.avail_in=a,e.hold=c,e.bits=u,(e.wsize||h!==n.avail_out&&e.mode<Qe&&(e.mode<l0||t!==yI))&&KI(n,n.output,n.next_out,h-n.avail_out),f-=n.avail_in,h-=n.avail_out,n.total_in+=f,n.total_out+=h,e.total+=h,e.wrap&&h&&(n.adler=e.check=e.flags?Cn(e.check,i,h,n.next_out-h):s0(e.check,i,h,n.next_out-h)),n.data_type=e.bits+(e.last?64:0)+(e.mode===Un?128:0)+(e.mode===ff||e.mode===c0?256:0),(f===0&&h===0||t===yI)&&Q===yi&&(Q=mT),Q}function ST(n){if(!n||!n.state)return Ut;var t=n.state;return t.window&&(t.window=null),n.state=null,yi}function DT(n,t){var e;return!n||!n.state||(e=n.state,(e.wrap&2)===0)?Ut:(e.head=t,t.done=!1,yi)}function jI(n,t){var e=t.length,r,i,s;return!n||!n.state||(r=n.state,r.wrap!==0&&r.mode!==uf)?Ut:r.mode===uf&&(i=1,i=s0(i,t,e,0),i!==r.check)?wI:(s=KI(n,t,e,e),s?(r.mode=VI,II):(r.havedict=1,yi))}const A0={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function kT(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var h0=Object.prototype.toString;class hf{constructor(t){if(!(this instanceof hf))return new hf(t);this.options=tT({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15)===0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new kT,this.strm.avail_out=0;var r=BT(this.strm,e.windowBits);if(r!==Ci)throw new Error(A0[r]);if(this.header=new oT,DT(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=fI(e.dictionary):h0.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=jI(this.strm,e.dictionary),r!==Ci)))throw new Error(A0[r])}push(t,e){var r=this.strm,i=this.options.chunkSize,s=this.options.dictionary,o,a,l,c,u,f,h=!1;if(this.ended)return!1;a=e===~~e?e:e===!0?af:oI,typeof t=="string"?r.input=rT(t):h0.call(t)==="[object ArrayBuffer]"?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=Rs(i),r.next_out=0,r.avail_out=i),o=QT(r,oI),o===Z9&&s&&(typeof s=="string"?f=fI(s):h0.call(s)==="[object ArrayBuffer]"?f=new Uint8Array(s):f=s,o=jI(this.strm,f)),o===$9&&h===!0&&(o=Ci,h=!1),o!==cf&&o!==Ci)return this.onEnd(o),this.ended=!0,!1;r.next_out&&(r.avail_out===0||o===cf||r.avail_in===0&&(a===af||a===aI))&&(this.options.to==="string"?(l=sT(r.output,r.next_out),c=r.next_out-l,u=iT(r.output,l),r.next_out=c,r.avail_out=i-c,c&&Er(r.output,r.output,l,c,0),this.onData(u)):this.onData(cI(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(h=!0)}while((r.avail_in>0||r.avail_out===0)&&o!==cf);return o===cf&&(a=af),a===af?(o=ST(this.strm),this.onEnd(o),this.ended=!0,o===Ci):(a===aI&&(this.onEnd(Ci),r.avail_out=0),!0)}onData(t){this.chunks.push(t)}onEnd(t){t===Ci&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=r0(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg}}function FT(n,t){var e=new hf(t);if(e.push(n,!0),e.err)throw e.msg||A0[e.err];return e.result}var MT=FT,wi={};wi.d=(n,t)=>{for(var e in t)wi.o(t,e)&&!wi.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},wi.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),wi.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var d0={};wi.r(d0),wi.d(d0,{ChunkSliceResult:()=>Os,DecompressResult:()=>Us,__wbg_Error_52673b7de5a0ca89:()=>zT,__wbg___wbindgen_throw_dd24417ed36fc46e:()=>HT,__wbg_set_wasm:()=>WI,decompress_all:()=>tE,decompress_block:()=>GT,decompress_chunk_slice:()=>nE});const RT="data:application/wasm;base64,AGFzbQEAAAABfRFgAABgAAF/YAF/AGABfwF/YAJ/fwBgAn9/AX9gA39/fwBgA39/fwF/YAR/f39/AGAEf39/fwF/YAV/f39/fwBgBX9/f39/AX9gBn9/f39/fwBgBn9/f39/fwF/YAd/f39/f39/AGAHf39/f39/fwF/YAh/f39/f39/fwF/Am4CES4vYmd6Zl93YXNtX2JnLmpzJ19fd2JnX19fd2JpbmRnZW5fdGhyb3dfZGQyNDQxN2VkMzZmYzQ2ZQAEES4vYmd6Zl93YXNtX2JnLmpzHF9fd2JnX0Vycm9yXzUyNjczYjdkZTVhMGNhODkABQNsawMPEA4FCQ0CBwcGCAQFBAQFBQYEBAoEBAQEDgYGBAQKBAICBQwICAQGBgYGBgYDBQQDBwIFAwQIBgsCBQICBgQCBQQDAQUEAgYCBAQEBQYNAgcJBQQGBAMFBQQABAAEBAUEBQICAgQBBQAABAUBcAEYGAUDAQARBgkBfwFBgIDAAAsH2gIOBm1lbW9yeQIAG19fd2JnX2NodW5rc2xpY2V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tBASEMIAogBCAFIAkoAgwRBwANASAAIA43AghBAA8LQQEhDCAAKAIAIgEgACgCBCIKIAggAiADEDsNACABIAQgBSAKKAIMEQcAIQwLIAwLjgYBBX8gAEF4aiIBIABBfGooAgAiAkF4cSIAaiEDAkACQCACQQFxDQAgAkECcUUNASABKAIAIgIgAGohAAJAIAEgAmsiAUEAKALAoEBHDQAgAygCBEEDcUEDRw0BQQAgADYCuKBAIAMgAygCBEF+cTYCBCABIABBAXI2AgQgAyAANgIADwsgASACEBALAkACQAJAAkACQAJAIAMoAgQiAkECcQ0AIANBACgCxKBARg0CIANBACgCwKBARg0DIAMgAkF4cSICEBAgASACIABqIgBBAXI2AgQgASAAaiAANgIAIAFBACgCwKBARw0BQQAgADYCuKBADwsgAyACQX5xNgIEIAEgAEEBcjYCBCABIABqIAA2AgALIABBgAJJDQIgASAAEBFBACEBQQBBACgC2KBAQX9qIgA2AtigQCAADQQCQEEAKAKgnkAiAEUNAEEAIQEDQCABQQFqIQEgACgCCCIADQALC0EAIAFB/x8gAUH/H0sbNgLYoEAPC0EAIAE2AsSgQEEAQQAoArygQCAAaiIANgK8oEAgASAAQQFyNgIEAkAgAUEAKALAoEBHDQBBAEEANgK4oEBBAEEANgLAoEALIABBACgC0KBAIgRNDQNBACgCxKBAIgBFDQNBACECQQAoArygQCIFQSlJDQJBmJ7AACEBA0ACQCABKAIAIgMgAEsNACAAIAMgASgCBGpJDQQLIAEoAgghAQwACwtBACABNgLAoEBBAEEAKAK4oEAgAGoiADYCuKBAIAEgAEEBcjYCBCABIABqIAA2AgAPCwJAAkBBACgCsKBAIgNBASAAQQN2dCICcQ0AQQAgAyACcjYCsKBAIABB+AFxQaiewABqIgAhAwwBCyAAQfgBcSIDQaiewABqIQAgA0GwnsAAaigCACEDCyAAIAE2AgggAyABNgIMIAEgADYCDCABIAM2AggPCwJAQQAoAqCeQCIBRQ0AQQAhAgNAIAJBAWohAiABKAIIIgENAAsLQQAgAkH/HyACQf8fSxs2AtigQCAF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AJBACgCwKBARg0DIAIgA0F4cSIDEBAgACADIAFqIgFBAXI2AgQgACABaiABNgIAIABBACgCwKBARw0BQQAgATYCuKBADwsgAiADQX5xNgIEIAAgAUEBcjYCBCAAIAFqIAE2AgALAkAgAUGAAkkNACAAIAEQEQ8LAkACQEEAKAKwoEAiAkEBIAFBA3Z0IgNxDQBBACACIANyNgKwoEAgAUH4AXFBqJ7AAGoiASECDAELIAFB+AFxIgJBqJ7AAGohASACQbCewABqKAIAIQILIAEgADYCCCACIAA2AgwgACABNgIMIAAgAjYCCA8LQQAgADYCxKBAQQBBACgCvKBAIAFqIgE2ArygQCAAIAFBAXI2AgQgAEEAKALAoEBHDQFBAEEANgK4oEBBAEEANgLAoEAPC0EAIAA2AsCgQEEAQQAoArigQCABaiIBNgK4oEAgACABQQFyNgIEIAAgAWogATYCAA8LC+8CAQV/QQAhAgJAIAFBzf97IABBECAAQRBLGyIAa08NACAAQRAgAUELakF4cSABQQtJGyIDakEMahACIgFFDQAgAUF4aiECAkACQCAAQX9qIgQgAXENACACIQAMAQsgAUF8aiIFKAIAIgZBeHEgBCABakEAIABrcUF4aiIBQQAgACABIAJrQRBLG2oiACACayIBayEEAkAgBkEDcUUNACAAIAQgACgCBEEBcXJBAnI2AgQgACAEaiIEIAQoAgRBAXI2AgQgBSABIAUoAgBBAXFyQQJyNgIAIAIgAWoiBCAEKAIEQQFyNgIEIAIgARAODAELIAIoAgAhAiAAIAQ2AgQgACACIAFqNgIACwJAIAAoAgQiAUEDcUUNACABQXhxIgIgA0EQak0NACAAIAMgAUEBcXJBAnI2AgQgACADaiIBIAIgA2siA0EDcjYCBCAAIAJqIgIgAigCBEEBcjYCBCABIAMQDgsgAEEIaiECCyACC4kDAQR/IAAoAgwhAgJAAkACQAJAIAFBgAJJDQAgACgCGCEDAkACQAJAIAIgAEcNACAAQRRBECAAKAIUIgIbaigCACIBDQFBACECDAILIAAoAggiASACNgIMIAIgATYCCAwBCyAAQRRqIABBEGogAhshBANAIAQhB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9qIgE2AgACQCABDQAgAkEMahA1CyAAIAQ2AgQgACAFNgIAIAJBEGokAA8LEF0LAAsQXwALIAYgBEHAhcAAEEoAC/kBAQF/IwBBMGsiByQAIAdBDGogASACIAMgBCAFIAYQBQJAIAJFDQAgASACQQEQVwsCQAJAAkAgBygCDEGAgICAeEcNAEEBIQEgBygCECECDAELEGtBMEEEEFoiAkUNAUEAIQEgAkEANgIIIAJCgYCAgBA3AgAgAiAHKQIMNwIMIAJBFGogB0EMakEIaikCADcCACACQRxqIAdBHGopAgA3AgAgAkEkaiAHQSRqKQIANwIAIAJBLGogB0EsaigCADYCACACQQhqIQILIAAgATYCCCAAIAJBACABGzYCBCAAQQAgAiABGzYCACAHQTBqJAAPC0EEQTAQYQALyQEBBH8jAEEgayIDJAACQAJAAkAgAiABaiIBIAJPDQBBACEEDAELQQAhBCABIAAoAgAiBUEBdCICIAEgAksbIgJBCCACQQhLGyICQQBIDQBBACEBAkAgBUUNACADIAU2AhwgAyAAKAIENgIUQQEhAQsgAyABNgIYIANBCGpBASACIANBFGoQJyADKAIIQQFHDQEgAygCECEGIAMoAgwhBAsgBCAGQbCFwAAQSgALIAMoAgwhASAAIAI2AgAgACABNgIEIANBIGokAAvRAQEDfyMAQRBrIgMkACADQQRqIAEgAhAMAkAgAkUNACABIAJBARBXCwJAAkACQCADKAIEIgRBgICAgHhHDQBBASEEQQAhASADKAIIIQVBACECDAELIAMoAgghBQJAAkAgBCADKAIMIgJLDQAgBSEBDAELAkAgAg0AQQEhASAFIARBARBXDAELIAUgBEEBIAIQVCIBRQ0CC0EAIQVBACEECyAAIAQ2AgwgACAFNgIIIAAgAjYCBCAAIAE2AgAgA0EQaiQADwtBASACQaiIwAAQSgALygEBBn8jAEEgayICJABBACEDAkAgACgCACIEQf////8BTQ0AQQBBACABEEoACwJAAkAgBEEBdCIFQQQgBUEESxsiBkECdCIFQfz///8HSw0AQQAhAwJAIARFDQAgAiAEQQJ0NgIcIAIgACgCBDYCFEEEIQMLIAI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gQYQALTgEDfwJAAkACQCAARQ0AIABBeGoiASABKAIAIgJBAWoiAzYCACADRQ0BIAAoAgBBf0YNAiAAKAIQIQAgASACNgIAIAAPCxBdCwALEF8AC1ABAX8CQCACIAAoAgAgACgCCCIDa00NACAAIAMgAkEBQQEQFyAAKAIIIQMLAkAgAkUNACAAKAIEIANqIAEgAvwKAAALIAAgAyACajYCCEEAC0wBAX8CQCAAKAIAIgBBDGooAgAiAUUNACAAQRBqKAIAIAFBARBXCwJAIABBf0YNACAAIAAoAgRBf2oiATYCBCABDQAgAEEcQQQQVwsLRQACQAJAIAFBCUkNACABIAAQDyEBDAELIAAQAiEBCwJAIAFFDQAgAUF8ai0AAEEDcUUNACAARQ0AIAFBACAA/AsACyABC1IBAn9BACEBQQBBACgC6KBAIgJBAWo2AuigQAJAIAJBAEgNAEEBIQFBAC0A5KBADQBBACAAOgDkoEBBAEEAKALgoEBBAWo2AuCgQEECIQELIAELRwECfyABKAIEIQIgASgCACEDEGsCQEEIQQQQWiIBDQBBBEEIEGEACyABIAI2AgQgASADNgIAIABB8JfAADYCBCAAIAE2AgALOAACQAJAIAAgAksNACABIAJLDQEgACABTQ0BIAAgASADECsACyAAIAIgAxAsAAsgASACIAMQLQALQQEBfyMAQSBrIgMkACADQQA2AhAgA0EBNgIEIANCBDcCCCADIAE2AhwgAyAANgIYIAMgA0EYajYCACADIAIQQQALOQACQCACQYCAxABGDQAgACACIAEoAhARBQBFDQBBAQ8LAkAgAw0AQQAPCyAAIAMgBCABKAIMEQcACzYBAX8jAEEgayIBJAAgAUEANgIYIAFBATYCDCABQaSZwAA2AgggAUIENwIQIAFBCGogABBBAAsnAAJAIAAgARBPRQ0AAkAgAEUNABBrIAAgARBaIgFFDQELIAEPCwALLAIBfwF+IwBBEGsiASQAIAApAgAhAiABIAA2AgwgASACNwIEIAFBBGoQZgALLQEBfyMAQRBrIgEkACABIAApAgA3AgggAUEIakH0lsAAIAAoAghBAUEAECEACyoBAX8jAEEQayIDJAAgAyACNgIMIAMgATYCCCADIAA2AgQgA0EEahBnAAsqAQF/IwBBEGsiAiQAIAJBATsBDCACIAE2AgggAiAANgIEIAJBBGoQPgALKQEBfwJAIAAoAgAiAUGAgICAeHJBgICAgHhGDQAgACgCBCABQQEQVwsLHgEBfwJAIAAoAgAiAkUNACABIAIgACgCBBBTDwsACyAAAkAgASgCAEUNACAAQfCXwAA2AgQgACABNgIADwsACxsBAX8QayAAQQRqQQQQWiIBIAA2AgAgAUEEagsjAQF/AkBBjIvAABAwIgANAEHAisAAQTpB/IrAABBAAAsgAAsXAAJAIAFBCUkNACABIAAQDw8LIAAQAgsfAAJAIABBgICAgHhyQYCAgIB4Rg0AIAEgAEEBEFcLCxwBAX8CQCAAKAIAIgFFDQAgACgCBCABQQEQVwsLFgACQCAARQ0AIAAgARBhAAsgAhA8AAsVACAAQXxqIgAgACgCAEEEakEEEFcLGgEBfyABIABBACgC3KBAIgJBAyACGxEEAAALHQAgAEEIakEAKQKYlkA3AgAgAEEAKQKQlkA3AgALHQAgAEEIakEAKQKolkA3AgAgAEEAKQKglkA3AgALFQAgAWlBAUYgAEGAgICAeCABa01xCxIAAkAgAUUNACAAIAEgAhBXCwsSACAAIAEgAiADIARBACAFEAMLFQACQCAARQ0AIAAgACgCqFoRAgALCxYAIAAoAgAgASACIAAoAgQoAgwRBwALDQAgACABIAIgAxAHDwsQACABIAAoAgAgACgCBBBTCxMAIABB8JfAADYCBCAAIAE2AgALCwAgACABIAIQLw8LCgAgACABEGoaAAsLACAAIwBqJAAjAAsJACAAIAEQRw8LCQAgACABEDYPCwkAIAAgARBMDwsMAEG4iMAAQRsQXgALCQAgACABEGMACw0AQdOIwABBzwAQXgALDAAgACABKQIANwMACwkAIAEgABBcAAsNACABQdicwABBGBAKCwgAIAAgARAACwgAIAAgARABCwkAIAAoAgAQUgsHACAAECMACwcAIAAQPwALCQAgAEEANgIACwUAQQAPCwUAEGwACwMADwsDAAALC4YdAgBBgIDAAAvwHC9ob21lL2NkaWVz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wMTExMjEzMTQxNTE2MTcxODE5MjAyMTIyMjMyNDI1MjYyNzI4MjkzMDMxMzIzMzM0MzUzNjM3MzgzOTQwNDE0MjQzNDQ0NTQ2NDc0ODQ5NTA1MTUyNTM1NDU1NTY1NzU4NTk2MDYxNjI2MzY0NjU2NjY3Njg2OTcwNzE3MjczNzQ3NTc2Nzc3ODc5ODA4MTgyODM4NDg1ODY4Nzg4ODk5MDkxOTI5Mzk0OTU5Njk3OTg5OQEAAAAAAAAAcmFuZ2Ugc3RhcnQgaW5kZXggIG91dCBvZiByYW5nZSBmb3Igc2xpY2Ugb2YgbGVuZ3RoIHwNEAASAAAAjg0QACIAAAByYW5nZSBlbmQgaW5kZXggwA0QABAAAACODRAAIgAAAHNsaWNlIGluZGV4IHN0YXJ0cyBhdCAgYnV0IGVuZHMgYXQgAOANEAAWAAAA9g0QAA0AAABpbmRleCBvdXQgb2YgYm91bmRzOiB0aGUgbGVuIGlzICBidXQgdGhlIGluZGV4IGlzIAAAFA4QACAAAAA0DhAAEgAAAFJlZkNlbGwgYWxyZWFkeSBib3Jyb3dlZABB8JzAAAsEBAAAAAApBG5hbWUBIgFZH19fd2JpbmRnZW5fYWRkX3RvX3N0YWNrX3BvaW50ZXIAPAlwcm9kdWNlcnMBDHByb2Nlc3NlZC1ieQIGd2FscnVzBjAuMjQuNAx3YXNtLWJpbmRnZW4HMC4yLjEwNg==";let ne;function WI(n){ne=n}function NT(n){hc===Gn.length&&Gn.push(Gn.length+1);const t=hc;return hc=Gn[t],Gn[t]=n,t}function TT(n){n<132||(Gn[n]=hc,hc=n)}function XI(n,t){return n=n>>>0,PT().subarray(n/4,n/4+t)}function g0(n,t){return n=n>>>0,p0().subarray(n/1,n/1+t)}let Ls=null;function je(){return(Ls===null||Ls.buffer.detached===!0||Ls.buffer.detached===void 0&&Ls.buffer!==ne.memory.buffer)&&(Ls=new DataView(ne.memory.buffer)),Ls}function ZI(n,t){return n=n>>>0,UT(n,t)}let df=null;function PT(){return(df===null||df.byteLength===0)&&(df=new Uint32Array(ne.memory.buffer)),df}let gf=null;function p0(){return(gf===null||gf.byteLength===0)&&(gf=new Uint8Array(ne.memory.buffer)),gf}function LT(n){return Gn[n]}let Gn=new Array(128).fill(void 0);Gn.push(void 0,null,!0,!1);let hc=Gn.length;function m0(n,t){const e=t(n.length*1,1)>>>0;return p0().set(n,e/1),mf=n.length,e}function C0(n){const t=LT(n);return TT(n),t}let pf=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});pf.decode();const OT=2146435072;let y0=0;function UT(n,t){return y0+=t,y0>=OT&&(pf=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),pf.decode(),y0=t),pf.decode(p0().subarray(n,n+t))}let mf=0;const $I=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>ne.__wbg_chunksliceresult_free(n>>>0,1)),eE=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>ne.__wbg_decompressresult_free(n>>>0,1));class Os{static __wrap(t){t=t>>>0;const e=Object.create(Os.prototype);return e.__wbg_ptr=t,$I.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,$I.unregister(this),t}free(){const t=this.__destroy_into_raw();ne.__wbg_chunksliceresult_free(t,0)}get cpositions(){try{const i=ne.__wbindgen_add_to_stack_pointer(-16);ne.chunksliceresult_cpositions(i,this.__wbg_ptr);var t=je().getInt32(i+0,!0),e=je().getInt32(i+4,!0),r=XI(t,e).slice();return ne.__wbindgen_export(t,e*4,4),r}finally{ne.__wbindgen_add_to_stack_pointer(16)}}get dpositions(){try{const i=ne.__wbindgen_add_to_stack_pointer(-16);ne.chunksliceresult_dpositions(i,this.__wbg_ptr);var t=je().getInt32(i+0,!0),e=je().getInt32(i+4,!0),r=XI(t,e).slice();return ne.__wbindgen_export(t,e*4,4),r}finally{ne.__wbindgen_add_to_stack_pointer(16)}}get buffer(){try{const i=ne.__wbindgen_add_to_stack_pointer(-16);ne.chunksliceresult_buffer(i,this.__wbg_ptr);var t=je().getInt32(i+0,!0),e=je().getInt32(i+4,!0),r=g0(t,e).slice();return ne.__wbindgen_export(t,e*1,1),r}finally{ne.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(Os.prototype[Symbol.dispose]=Os.prototype.free);class Us{static __wrap(t){t=t>>>0;const e=Object.create(Us.prototype);return e.__wbg_ptr=t,eE.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,eE.unregister(this),t}free(){const t=this.__destroy_into_raw();ne.__wbg_decompressresult_free(t,0)}get bytes_read(){return ne.decompressresult_bytes_read(this.__wbg_ptr)>>>0}get data(){try{const i=ne.__wbindgen_add_to_stack_pointer(-16);ne.decompressresult_data(i,this.__wbg_ptr);var t=je().getInt32(i+0,!0),e=je().getInt32(i+4,!0),r=g0(t,e).slice();return ne.__wbindgen_export(t,e*1,1),r}finally{ne.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(Us.prototype[Symbol.dispose]=Us.prototype.free);function tE(n){try{const o=ne.__wbindgen_add_to_stack_pointer(-16),a=m0(n,ne.__wbindgen_export2),l=mf;ne.decompress_all(o,a,l);var t=je().getInt32(o+0,!0),e=je().getInt32(o+4,!0),r=je().getInt32(o+8,!0),i=je().getInt32(o+12,!0);if(i)throw C0(r);var s=g0(t,e).slice();return ne.__wbindgen_export(t,e*1,1),s}finally{ne.__wbindgen_add_to_stack_pointer(16)}}function GT(n){try{const i=ne.__wbindgen_add_to_stack_pointer(-16),s=m0(n,ne.__wbindgen_export2),o=mf;ne.decompress_block(i,s,o);var t=je().getInt32(i+0,!0),e=je().getInt32(i+4,!0),r=je().getInt32(i+8,!0);if(r)throw C0(e);return Us.__wrap(t)}finally{ne.__wbindgen_add_to_stack_pointer(16)}}function nE(n,t,e,r,i){try{const l=ne.__wbindgen_add_to_stack_pointer(-16),c=m0(n,ne.__wbindgen_export2),u=mf;ne.decompress_chunk_slice(l,c,u,t,e,r,i);var s=je().getInt32(l+0,!0),o=je().getInt32(l+4,!0),a=je().getInt32(l+8,!0);if(a)throw C0(o);return Os.__wrap(s)}finally{ne.__wbindgen_add_to_stack_pointer(16)}}function zT(n,t){const e=Error(ZI(n,t));return NT(e)}function HT(n,t){throw new Error(ZI(n,t))}let dc=null,w0=null;async function rE(){return dc||(w0||(w0=(async()=>{const t=await(await fetch(RT)).arrayBuffer(),{instance:e}=await WebAssembly.instantiate(t,{"./bgzf_wasm_bg.js":d0});return dc=e.exports,WI(dc),dc})()),w0)}async function YT(n){return await rE(),tE(n)}async function _T(n,t,e,r,i){await rE();const s=nE(n,t,e,r,i),o=s.buffer,a=[...s.cpositions],l=[...s.dpositions];return s.free(),{buffer:o,cpositions:a,dpositions:l}}function VT(n){return n.length>=2&&n[0]===31&&n[1]===139}async function JT(n){if(typeof DecompressionStream<"u"){const t=new DecompressionStream("gzip"),e=t.writable.getWriter(),r=e.write(n).then(()=>e.close()),i=[],s=t.readable.getReader();for(;;){const{done:c,value:u}=await s.read();if(c)break;i.push(u)}await r;const o=i.reduce((c,u)=>c+u.length,0),a=new Uint8Array(o);let l=0;for(const c of i)a.set(c,l),l+=c.length;return a}else return MT(n,void 0)}async function Gs(n){try{return await YT(n)}catch(t){if(/invalid bgzf header/.exec(`${t}`)){if(VT(n))return JT(n);throw new Error("problem decompressing block: not a valid bgzf or gzip block")}throw/invalid gzip header/.exec(`${t}`)?new Error("problem decompressing block: incorrect gzip header check"):t}}async function iE(n,t,e){try{const{minv:r,maxv:i}=t,s=await _T(n,r.blockPosition,r.dataPosition,i.blockPosition,i.dataPosition);return{buffer:s.buffer,cpositions:s.cpositions,dpositions:s.dpositions}}catch(r){throw/invalid gzip header/.exec(`${r}`)?new Error("problem decompressing block: incorrect gzip header check"):r}}let I0=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(I0=new Int32Array(I0));const qT=(n,t)=>{let e=-1;for(let r=0;r<n.length;r++)e=I0[(e^n[r])&255]^e>>>8;return e^-1},KT=21582659,jT=38359875;function WT(n,t){return n*2**t}function sE(n,t){return Math.floor(n/2**t)}let Cf=class extends iI{constructor(){super(...arguments),this.maxBinNumber=0,this.depth=0,this.minShift=0}async lineCount(t,e){var i,s;return((s=(i=(await this.parse(e)).indices(t))==null?void 0:i.stats)==null?void 0:s.lineCount)||0}async indexCov(){return[]}parseAuxData(t,e){const r=new DataView(t.buffer),i=r.getUint32(e,!0),s=i&65536?"zero-based-half-open":"1-based-closed",o={0:"generic",1:"SAM",2:"VCF"}[i&15];if(!o)throw new Error(`invalid Tabix preset format flags ${i}`);const a={ref:r.getInt32(e+4,!0),start:r.getInt32(e+8,!0),end:r.getInt32(e+12,!0)},l=r.getInt32(e+16,!0),c=l?String.fromCharCode(l):"",u=r.getInt32(e+20,!0),f=r.getInt32(e+24,!0);return{columnNumbers:a,coordinateType:s,metaValue:l,metaChar:c,skipLines:u,format:o,formatFlags:i,...Y9(t.subarray(e+28,e+28+f),this.renameRefSeq)}}async _parse(t){const e=await this.filehandle.readFile(t),r=await Gs(e),i=new DataView(r.buffer);let s;const o=i.getUint32(0,!0);if(o===KT)s=1;else if(o===jT)s=2;else throw new Error(`Not a CSI file ${o}`);this.minShift=i.getInt32(4,!0),this.depth=i.getInt32(8,!0),this.maxBinNumber=((1<<(this.depth+1)*3)-1)/7;const a=this.maxBinNumber,l=i.getInt32(12,!0),c=l>=30?this.parseAuxData(r,16):void 0,u=i.getInt32(16+l,!0);let f=16+l+4,h;const A=[];for(let p=0;p<u;p++){A.push(f);const C=i.getInt32(f,!0);f+=4;for(let w=0;w<C;w++){const b=i.getUint32(f,!0);if(f+=4,b>this.maxBinNumber)f+=44;else{f+=8;const y=i.getInt32(f,!0);f+=4;for(let x=0;x<y;x+=1){const B=Ir(r,f);f+=8,f+=8,h=lc(h,B)}}}}const d=new cc({maxSize:5});function g(p){let C=A[p];if(C===void 0)return;const w=i.getInt32(C,!0);C+=4;const b={};let y;for(let x=0;x<w;x++){const B=i.getUint32(C,!0);if(C+=4,B>a)y=rI(r,C+28),C+=44;else{h=lc(h,Ir(r,C)),C+=8;const E=i.getInt32(C,!0);C+=4;const Q=new Array(E);for(let k=0;k<E;k+=1){const S=Ir(r,C);C+=8;const T=Ir(r,C);C+=8,Q[k]=new tI(S,T,B)}b[B]=Q}}return{binIndex:b,stats:y}}return{csiVersion:s,firstDataLine:h,indices:p=>{if(!d.has(p)){const C=g(p);return C&&d.set(p,C),C}return d.get(p)},refCount:u,csi:!0,maxBlockSize:65536,...c}}async blocksForRange(t,e,r,i={}){e<0&&(e=0);const o=(await this.parse(i)).indices(t);if(!o)return[];const a=this.reg2bins(e,r);if(a.length===0)return[];const l=[],{binIndex:c}=o;for(const[u,f]of a)for(let h=u;h<=f;h++){const A=c[h];if(A)for(let d=0,g=A.length;d<g;d++)l.push(A[d])}return n0(l,new sI(0,0))}reg2bins(t,e){t-=1,t<1&&(t=1),e>2**50&&(e=2**34),e-=1;let r=0,i=0,s=this.minShift+this.depth*3;const o=[];for(;r<=this.depth;s-=3,i+=WT(1,r*3),r+=1){const a=i+sE(t,s),l=i+sE(e,s);if(l-a+o.length>this.maxBinNumber)throw new Error(`query ${t}-${e} is too large for current binning scheme (shift ${this.minShift}, depth ${this.depth}), try a smaller query or a coarser index binning scheme`);o.push([a,l])}return o}async parse(t={}){return this.setupP||(this.setupP=this._parse(t).catch(e=>{throw this.setupP=void 0,e})),this.setupP}async hasRefSeq(t,e={}){var i;return!!((i=(await this.parse(e)).indices(t))!=null&&i.binIndex)}};class XT{read(){throw new Error("never called")}stat(){throw new Error("never called")}readFile(){throw new Error("never called")}close(){throw new Error("never called")}}const ZT=3,$T=4,Gt={BAM_FPAIRED:1,BAM_FPROPER_PAIR:2,BAM_FUNMAP:4,BAM_FMUNMAP:8,BAM_FREVERSE:16,BAM_FMREVERSE:32,BAM_FREAD1:64,BAM_FREAD2:128,BAM_FSECONDARY:256,BAM_FQCFAIL:512,BAM_FDUP:1024,BAM_FSUPPLEMENTARY:2048},gc="=ACMGRSVTWYHKDBN".split(""),e7=[77,73,68,78,83,72,80,61,88,63,63,63,63,63,63,63],oE=461;class aE{constructor(t){this.bytes=t.bytes,this.fileOffset=t.fileOffset,this._dataView=new DataView(this.bytes.byteArray.buffer)}get byteArray(){return this.bytes.byteArray}get flags(){return this._cachedFlags===void 0&&(this._cachedFlags=(this._dataView.getInt32(this.bytes.start+16,!0)&4294901760)>>16),this._cachedFlags}get ref_id(){return this._cachedRefId===void 0&&(this._cachedRefId=this._dataView.getInt32(this.bytes.start+4,!0)),this._cachedRefId}get start(){return this._cachedStart===void 0&&(this._cachedStart=this._dataView.getInt32(this.bytes.start+8,!0)),this._cachedStart}get end(){return this._cachedEnd===void 0&&(this._cachedEnd=this.start+this.length_on_ref),this._cachedEnd}get mq(){const t=(this.bin_mq_nl&65280)>>8;return t===255?void 0:t}get score(){return this.mq}get qual(){if(this.isSegmentUnmapped())return null;{const t=this.b0+this.read_name_length+this.num_cigar_bytes+this.num_seq_bytes;return this.byteArray.subarray(t,t+this.seq_length)}}get strand(){return this.isReverseComplemented()?-1:1}get b0(){return this.bytes.start+36}get tagsStart(){return this._cachedTagsStart===void 0&&(this._cachedTagsStart=this.b0+this.read_name_length+this.num_cigar_bytes+this.num_seq_bytes+this.seq_length),this._cachedTagsStart}get name(){const t=this.read_name_length-1,e=this.b0,r=this.byteArray,i=new Array(t);for(let s=0;s<t;s++)i[s]=r[e+s];return String.fromCharCode(...i)}get NUMERIC_MD(){if(this._cachedNUMERIC_MD===void 0){const t=this.getTagRaw("MD");this._cachedNUMERIC_MD=t instanceof Uint8Array?t:null}return this._cachedNUMERIC_MD===null?void 0:this._cachedNUMERIC_MD}get tags(){return this._cachedTags===void 0&&(this._cachedTags=this._computeTags()),this._cachedTags}getTag(t){return this._cachedTags!==void 0?this._cachedTags[t]:this._findTag(t,!1)}getTagRaw(t){return this._findTag(t,!0)}_findTag(t,e){const r=t.charCodeAt(0),i=t.charCodeAt(1);let s=this.tagsStart;const o=this.bytes.end,a=this.byteArray;for(;s<o;){const l=a[s],c=a[s+1],u=a[s+2];s+=3;const f=l===r&&c===i;switch(u){case 65:if(f)return String.fromCharCode(a[s]);s+=1;break;case 105:if(f)return this._dataView.getInt32(s,!0);s+=4;break;case 73:if(f)return this._dataView.getUint32(s,!0);s+=4;break;case 99:if(f)return this._dataView.getInt8(s);s+=1;break;case 67:if(f)return this._dataView.getUint8(s);s+=1;break;case 115:if(f)return this._dataView.getInt16(s,!0);s+=2;break;case 83:if(f)return this._dataView.getUint16(s,!0);s+=2;break;case 102:if(f)return this._dataView.getFloat32(s,!0);s+=4;break;case 90:case 72:{if(f){const h=s;for(;s<o&&a[s]!==0;)s++;if(e)return a.subarray(h,s);const A=[];for(let d=h;d<s;d++)A.push(String.fromCharCode(a[d]));return A.join("")}for(;s<=o&&a[s++]!==0;);break}case 66:{const h=a[s++],A=this._dataView.getInt32(s,!0);s+=4;const d=a.byteOffset+s;if(f)if(h===105){if(d%4===0)return new Int32Array(a.buffer,d,A);const g=new Array(A);for(let p=0;p<A;p++)g[p]=this._dataView.getInt32(s+p*4,!0);return g}else if(h===73){if(d%4===0)return new Uint32Array(a.buffer,d,A);const g=new Array(A);for(let p=0;p<A;p++)g[p]=this._dataView.getUint32(s+p*4,!0);return g}else if(h===115){if(d%2===0)return new Int16Array(a.buffer,d,A);const g=new Array(A);for(let p=0;p<A;p++)g[p]=this._dataView.getInt16(s+p*2,!0);return g}else if(h===83){if(d%2===0)return new Uint16Array(a.buffer,d,A);const g=new Array(A);for(let p=0;p<A;p++)g[p]=this._dataView.getUint16(s+p*2,!0);return g}else{if(h===99)return new Int8Array(a.buffer,d,A);if(h===67)return new Uint8Array(a.buffer,d,A);if(h===102){if(d%4===0)return new Float32Array(a.buffer,d,A);const g=new Array(A);for(let p=0;p<A;p++)g[p]=this._dataView.getFloat32(s+p*4,!0);return g}}h===105||h===73||h===102?s+=A<<2:h===115||h===83?s+=A<<1:(h===99||h===67)&&(s+=A);break}}}}_computeTags(){let t=this.tagsStart;const e=this.bytes.end,r=this.byteArray,i={};for(;t<e;){const s=String.fromCharCode(r[t],r[t+1]),o=r[t+2];switch(t+=3,o){case 65:i[s]=String.fromCharCode(r[t]),t+=1;break;case 105:i[s]=this._dataView.getInt32(t,!0),t+=4;break;case 73:i[s]=this._dataView.getUint32(t,!0),t+=4;break;case 99:i[s]=this._dataView.getInt8(t),t+=1;break;case 67:i[s]=this._dataView.getUint8(t),t+=1;break;case 115:i[s]=this._dataView.getInt16(t,!0),t+=2;break;case 83:i[s]=this._dataView.getUint16(t,!0),t+=2;break;case 102:i[s]=this._dataView.getFloat32(t,!0),t+=4;break;case 90:case 72:{const a=[];for(;t<=e;){const l=r[t++];if(l!==0)a.push(String.fromCharCode(l));else break}i[s]=a.join("");break}case 66:{const a=r[t++],l=this._dataView.getInt32(t,!0);t+=4;const c=r.byteOffset+t;if(a===105){if(c%4===0)i[s]=new Int32Array(r.buffer,c,l);else{const u=new Array(l);for(let f=0;f<l;f++)u[f]=this._dataView.getInt32(t+f*4,!0);i[s]=u}t+=l<<2}else if(a===73){if(c%4===0)i[s]=new Uint32Array(r.buffer,c,l);else{const u=new Array(l);for(let f=0;f<l;f++)u[f]=this._dataView.getUint32(t+f*4,!0);i[s]=u}t+=l<<2}else if(a===115){if(c%2===0)i[s]=new Int16Array(r.buffer,c,l);else{const u=new Array(l);for(let f=0;f<l;f++)u[f]=this._dataView.getInt16(t+f*2,!0);i[s]=u}t+=l<<1}else if(a===83){if(c%2===0)i[s]=new Uint16Array(r.buffer,c,l);else{const u=new Array(l);for(let f=0;f<l;f++)u[f]=this._dataView.getUint16(t+f*2,!0);i[s]=u}t+=l<<1}else if(a===99)i[s]=new Int8Array(r.buffer,c,l),t+=l;else if(a===67)i[s]=new Uint8Array(r.buffer,c,l),t+=l;else if(a===102){if(c%4===0)i[s]=new Float32Array(r.buffer,c,l);else{const u=new Array(l);for(let f=0;f<l;f++)u[f]=this._dataView.getFloat32(t+f*4,!0);i[s]=u}t+=l<<2}break}default:console.error("Unknown BAM tag type",o);break}}return i}isPaired(){return!!(this.flags&Gt.BAM_FPAIRED)}isProperlyPaired(){return!!(this.flags&Gt.BAM_FPROPER_PAIR)}isSegmentUnmapped(){return!!(this.flags&Gt.BAM_FUNMAP)}isMateUnmapped(){return!!(this.flags&Gt.BAM_FMUNMAP)}isReverseComplemented(){return!!(this.flags&Gt.BAM_FREVERSE)}isMateReverseComplemented(){return!!(this.flags&Gt.BAM_FMREVERSE)}isRead1(){return!!(this.flags&Gt.BAM_FREAD1)}isRead2(){return!!(this.flags&Gt.BAM_FREAD2)}isSecondary(){return!!(this.flags&Gt.BAM_FSECONDARY)}isFailedQc(){return!!(this.flags&Gt.BAM_FQCFAIL)}isDuplicate(){return!!(this.flags&Gt.BAM_FDUP)}isSupplementary(){return!!(this.flags&Gt.BAM_FSUPPLEMENTARY)}get cigarAndLength(){return this._cachedCigarAndLength===void 0&&(this._cachedCigarAndLength=this._computeCigarAndLength()),this._cachedCigarAndLength}_computeCigarAndLength(){if(this.isSegmentUnmapped())return{length_on_ref:0,NUMERIC_CIGAR:new Uint32Array(0)};const t=this.num_cigar_ops;let e=this.b0+this.read_name_length;const r=this._dataView.getInt32(e,!0),i=r>>4;if((r&15)===$T&&i===this.seq_length){e+=4;const u=this._dataView.getInt32(e,!0),f=u>>4;return(u&15)!==ZT&&console.warn("CG tag with no N tag"),{NUMERIC_CIGAR:this.tags.CG,length_on_ref:f}}const o=this.byteArray.byteOffset+e;if(o%4===0&&t>50){const u=new Uint32Array(this.byteArray.buffer,o,t);let f=0;for(let h=0;h<t;++h){const A=u[h];f+=(A>>4)*(oE>>(A&15)&1)}return{NUMERIC_CIGAR:u,length_on_ref:f}}const l=new Array(t);let c=0;for(let u=0;u<t;++u){const f=this._dataView.getInt32(e+u*4,!0)|0;l[u]=f,c+=(f>>4)*(oE>>(f&15)&1)}return{NUMERIC_CIGAR:l,length_on_ref:c}}get length_on_ref(){return this.cigarAndLength.length_on_ref}get NUMERIC_CIGAR(){return this.cigarAndLength.NUMERIC_CIGAR}get CIGAR(){const t=this.NUMERIC_CIGAR;let e="";for(let r=0,i=t.length;r<i;r++){const s=t[r],o=s>>4,a=e7[s&15];e+=o+String.fromCharCode(a)}return e}get num_cigar_ops(){return this.flag_nc&65535}get num_cigar_bytes(){return this.num_cigar_ops<<2}get read_name_length(){return this.bin_mq_nl&255}get num_seq_bytes(){return this.seq_length+1>>1}get NUMERIC_SEQ(){const t=this.b0+this.read_name_length+this.num_cigar_bytes;return this.byteArray.subarray(t,t+this.num_seq_bytes)}get seq(){const t=this.NUMERIC_SEQ,e=this.seq_length,r=new Array(e);let i=0;const s=e>>1;for(let o=0;o<s;++o){const a=t[o];r[i++]=gc[(a&240)>>4],r[i++]=gc[a&15]}if(i<e){const o=t[s];r[i]=gc[(o&240)>>4]}return r.join("")}get pair_orientation(){if(!this.isSegmentUnmapped()&&!this.isMateUnmapped()&&this.ref_id===this.next_refid){const t=this.isReverseComplemented()?"R":"F",e=this.isMateReverseComplemented()?"R":"F";let r=" ",i=" ";return this.isRead1()?(r="1",i="2"):this.isRead2()&&(r="2",i="1"),this.template_length>0?`${t}${r}${e}${i}`:`${e}${i}${t}${r}`}}get bin_mq_nl(){return this._dataView.getInt32(this.bytes.start+12,!0)}get flag_nc(){return this._dataView.getInt32(this.bytes.start+16,!0)}get seq_length(){return this._dataView.getInt32(this.bytes.start+20,!0)}get next_refid(){return this._dataView.getInt32(this.bytes.start+24,!0)}get next_pos(){return this._dataView.getInt32(this.bytes.start+28,!0)}get template_length(){return this._dataView.getInt32(this.bytes.start+32,!0)}seqAt(t){if(t<this.seq_length){const e=t>>1,r=this.byteArray[this.b0+this.read_name_length+this.num_cigar_bytes+e];return t%2===0?gc[(r&240)>>4]:gc[r&15]}else return}toJSON(){const t={};for(const e of Object.keys(this))e.startsWith("_")||e==="bytes"||(t[e]=this[e]);return t}}function cE(n){const t=n.split(/\r?\n/),e=[];for(const r of t){const[i,...s]=r.split(/\t/);i&&e.push({tag:i.slice(1),data:s.map(o=>{const a=o.indexOf(":"),l=o.slice(0,a),c=o.slice(a+1);return{tag:l,value:c}})})}return e}const lE=21840194,t7=65536;class uE{constructor({bamFilehandle:t,bamPath:e,bamUrl:r,baiPath:i,baiFilehandle:s,baiUrl:o,csiPath:a,csiFilehandle:l,csiUrl:c,htsget:u,renameRefSeqs:f=A=>A,recordClass:h}){if(this.htsget=!1,this.chunkFeatureCache=new cc({maxSize:100}),this.renameRefSeq=f,this.RecordClass=h??aE,t)this.bam=t;else if(e)this.bam=new at(e);else if(r)this.bam=new pn(r);else if(u)this.htsget=!0,this.bam=new XT;else throw new Error("unable to initialize bam");if(l)this.index=new Cf({filehandle:l});else if(a)this.index=new Cf({filehandle:new at(a)});else if(c)this.index=new Cf({filehandle:new pn(c)});else if(s)this.index=new Fs({filehandle:s});else if(i)this.index=new Fs({filehandle:new at(i)});else if(o)this.index=new Fs({filehandle:new pn(o)});else if(e)this.index=new Fs({filehandle:new at(`${e}.bai`)});else if(r)this.index=new Fs({filehandle:new pn(`${r}.bai`)});else if(u)this.htsget=!0;else throw new Error("unable to infer index format")}async getHeaderPre(t){const e=H9(t);if(!this.index)return;const r=await this.index.parse(e),i=r.firstDataLine===void 0?await this.bam.readFile():await this.bam.read(r.firstDataLine.blockPosition+t7,0),s=await Gs(i),o=new DataView(s.buffer);if(o.getInt32(0,!0)!==lE)throw new Error("Not a BAM file");const a=o.getInt32(4,!0),l=new TextDecoder("utf8");this.header=l.decode(s.subarray(8,8+a));const{chrToIndex:c,indexToChr:u}=this._parseRefSeqs(s,a+8);return this.chrToIndex=c,this.indexToChr=u,cE(this.header)}getHeader(t){return this.headerP||(this.headerP=this.getHeaderPre(t).catch(e=>{throw this.headerP=void 0,e})),this.headerP}async getHeaderText(t={}){return await this.getHeader(t),this.header}_parseRefSeqs(t,e){const r=new DataView(t.buffer),i=r.getInt32(e,!0);let s=e+4;const o={},a=[],l=new TextDecoder("utf8");for(let c=0;c<i;c+=1){if(s+8>t.length)throw new Error(`Insufficient data for reference sequences: need more than ${t.length} bytes`);const u=r.getInt32(s,!0),f=this.renameRefSeq(l.decode(t.subarray(s+4,s+4+u-1))),h=r.getInt32(s+u+4,!0);o[f]=c,a.push({refName:f,length:h}),s=s+8+u}return{chrToIndex:o,indexToChr:a}}async getRecordsForRange(t,e,r,i){var a;await this.getHeader(i);const s=(a=this.chrToIndex)==null?void 0:a[t];if(s===void 0||!this.index)return[];const o=await this.index.blocksForRange(s,e-1,r,i);return this._fetchChunkFeaturesDirect(o,s,e,r,i)}chunkCacheKey(t,e){const{minv:r,maxv:i}=t;return`${r.blockPosition}:${r.dataPosition}-${i.blockPosition}:${i.dataPosition}${q9(e)}`}blocksOverlap(t,e,r,i){return t<=i&&e>=r}evictOverlappingChunks(t,e){for(const[r,i]of this.chunkFeatureCache)this.blocksOverlap(t,e,i.minBlock,i.maxBlock)&&this.chunkFeatureCache.delete(r)}async _fetchChunkFeaturesDirect(t,e,r,i,s={}){const{viewAsPairs:o,filterBy:a}=s,{flagInclude:l=0,flagExclude:c=0,tagFilter:u}=a||{},f=[];for(let h=0,A=t.length;h<A;h++){const d=t[h],g=this.chunkCacheKey(d,a),p=d.minv.blockPosition,C=d.maxv.blockPosition;let w;const b=this.chunkFeatureCache.get(g);if(b)w=b.features;else{this.evictOverlappingChunks(p,C);const{data:x,cpositions:B,dpositions:E}=await this._readChunk({chunk:d,opts:s}),Q=await this.readBamFeatures(x,B,E,d);if(a){w=[];for(let k=0,S=Q.length;k<S;k++){const T=Q[k];V9(T.flags,l,c)||u&&J9(T.tags[u.tag],u.value)||w.push(T)}}else w=Q;this.chunkFeatureCache.set(g,{minBlock:p,maxBlock:C,features:w})}let y=!1;for(let x=0,B=w.length;x<B;x++){const E=w[x];if(E.ref_id===e)if(E.start>=i){y=!0;break}else E.end>=r&&f.push(E)}if(y)break}if(o){const h=await this.fetchPairs(e,f,s);for(let A=0,d=h.length;A<d;A++)f.push(h[A])}return f}async fetchPairs(t,e,r){const{pairAcrossChr:i,maxInsertSize:s=2e5}=r,o={},a={};for(let h=0,A=e.length;h<A;h++){const d=e[h],g=d.name;o[g]=(o[g]||0)+1,a[d.fileOffset]=1}const l=[];for(let h=0,A=e.length;h<A;h++){const d=e[h],g=d.name;this.index&&o[g]===1&&(i||d.next_refid===t&&Math.abs(d.start-d.next_pos)<s)&&l.push(this.index.blocksForRange(d.next_refid,d.next_pos,d.next_pos+1,r))}const c=new Map,u=await Promise.all(l);for(let h=0,A=u.length;h<A;h++){const d=u[h];for(let g=0,p=d.length;g<p;g++){const C=d[g],w=C.toString();c.has(w)||c.set(w,C)}}return(await Promise.all([...c.values()].map(async h=>{const{data:A,cpositions:d,dpositions:g,chunk:p}=await this._readChunk({chunk:h,opts:r}),C=[],w=await this.readBamFeatures(A,d,g,p);for(let b=0,y=w.length;b<y;b++){const x=w[b];o[x.name]===1&&!a[x.fileOffset]&&C.push(x)}return C}))).flat()}async _readChunk({chunk:t,opts:e}){const r=await this.bam.read(t.fetchedSize(),t.minv.blockPosition,e),{buffer:i,cpositions:s,dpositions:o}=await iE(r,t);return{data:i,cpositions:s,dpositions:o,chunk:t}}async readBamFeatures(t,e,r,i){let s=0;const o=[];let a=0;const l=new DataView(t.buffer),c=r.length>0,u=e.length>0;for(;s+4<t.length;){const f=l.getInt32(s,!0),h=s+4+f-1;if(c){for(;s+i.minv.dataPosition>=r[a++];);a--}if(h<t.length){const A=new this.RecordClass({bytes:{byteArray:t,start:s,end:h},fileOffset:u?e[a]*256+(s-r[a])+i.minv.dataPosition+1:qT(t.subarray(s,h))>>>0});o.push(A)}s=h+1}return o}async hasRefSeq(t){var r,i;const e=(r=this.chrToIndex)==null?void 0:r[t];return e===void 0?!1:(i=this.index)==null?void 0:i.hasRefSeq(e)}async lineCount(t){var r;const e=(r=this.chrToIndex)==null?void 0:r[t];return e===void 0||!this.index?0:this.index.lineCount(e)}async indexCov(t,e,r){var s;if(!this.index)return[];await this.index.parse();const i=(s=this.chrToIndex)==null?void 0:s[t];return i===void 0?[]:this.index.indexCov(i,e,r)}async blocksForRange(t,e,r,i){var o;if(!this.index)return[];await this.index.parse();const s=(o=this.chrToIndex)==null?void 0:o[t];return s===void 0?[]:this.index.blocksForRange(s,e,r,i)}clearFeatureCache(){this.chunkFeatureCache.clear()}async estimatedBytesForRegions(t,e){if(!this.index)return 0;if(await this.getHeader(e),!this.chrToIndex)throw new Error("Header not yet parsed");return this.index.estimatedBytesForRegions(t.map(r=>{const i=this.chrToIndex[r.refName];if(i===void 0)throw new Error(`Unknown reference name: ${r.refName}`);return{refId:i,start:r.start,end:r.end}}),e)}}async function fE(n,t){const e=await Promise.all(n.map(async r=>{const{url:i,headers:s}=r;if(i.startsWith("data:")){const o=await fetch(i);if(!o.ok)throw new Error("failed to decode base64");const a=await o.arrayBuffer();return new Uint8Array(a)}else{const{referer:o,...a}=s,l=await fetch(i,{...t,headers:{...t==null?void 0:t.headers,...a}});if(!l.ok)throw new Error(`HTTP ${l.status} fetching ${i}: ${await l.text()}`);return new Uint8Array(await l.arrayBuffer())}}));return _9(await Promise.all(e.map(r=>Gs(r))))}class n7 extends uE{constructor(t){super({htsget:!0,recordClass:t.recordClass}),this.baseUrl=t.baseUrl,this.trackId=t.trackId}async getRecordsForRange(t,e,r,i){var A;const o=`${`${this.baseUrl}/${this.trackId}`}?referenceName=${t}&start=${e}&end=${r}&format=BAM`,a=(A=this.chrToIndex)==null?void 0:A[t];if(a===void 0)return[];const l=await fetch(o,{...i});if(!l.ok)throw new Error(`HTTP ${l.status} fetching ${o}: ${await l.text()}`);const c=await l.json(),u=await fE(c.htsget.urls.slice(1),i),f=await this.readBamFeatures(u,[],[],{minv:{dataPosition:0,blockPosition:0},maxv:{dataPosition:0,blockPosition:0}}),h=[];for(let d=0,g=f.length;d<g;d++){const p=f[d];if(p.ref_id===a){if(p.start>=r)break;p.end>=e&&h.push(p)}}return h}async getHeader(t={}){const e=`${this.baseUrl}/${this.trackId}?referenceName=na&class=header`,r=await fetch(e,t);if(!r.ok)throw new Error(`HTTP ${r.status} fetching ${e}: ${await r.text()}`);const i=await r.json(),s=await fE(i.htsget.urls,t),o=new DataView(s.buffer);if(o.getInt32(0,!0)!==lE)throw new Error("Not a BAM file");const a=o.getInt32(4,!0),c=new TextDecoder("utf8").decode(s.subarray(8,8+a)),u=cE(c),f=[],h={},A=u.filter(d=>d.tag==="SQ");for(const[d,g]of A.entries()){let p="",C=0;for(const w of g.data)w.tag==="SN"?p=w.value:w.tag==="LN"&&(C=+w.value);h[p]=d,f[d]={refName:p,length:C}}return this.chrToIndex=h,this.indexToChr=f,u}}const r7=Object.freeze(Object.defineProperty({__proto__:null,BAI:Fs,BamFile:uE,BamRecord:aE,CSI:Cf,HtsgetFile:n7},Symbol.toStringTag,{value:"Module"}));class yf{constructor(t,e,r,i){this.minv=t,this.maxv=e,this.bin=r,this._fetchedSize=i}toUniqueString(){return`${this.minv}..${this.maxv} (bin ${this.bin}, fetchedSize ${this.fetchedSize()})`}toString(){return this.toUniqueString()}compareTo(t){return this.minv.compareTo(t.minv)||this.maxv.compareTo(t.maxv)||this.bin-t.bin}fetchedSize(){return this._fetchedSize!==void 0?this._fetchedSize:this.maxv.blockPosition+65536-this.minv.blockPosition}}class AE{constructor({filehandle:t,renameRefSeqs:e=r=>r}){this.filehandle=t,this.renameRefSeq=e}async getMetadata(t={}){const{indices:e,...r}=await this.parse(t);return r}_findFirstData(t,e){return t?t.compareTo(e)>0?e:t:e}async parse(t={}){return this.parseP||(this.parseP=this._parse(t).catch(e=>{throw this.parseP=void 0,e})),this.parseP}async hasRefSeq(t,e={}){var i;return!!((i=(await this.parse(e)).indices[t])!=null&&i.binIndex)}_parseNameBytes(t){let e=0,r=0;const i=[],s={},o=new TextDecoder("utf8");for(let a=0;a<t.length;a+=1)if(!t[a]){if(r<a){const l=this.renameRefSeq(o.decode(t.subarray(r,a)));i[e]=l,s[l]=e}r=a+1,e+=1}return{refNameToId:s,refIdToName:i}}}const hE=65536,i7=hE*hE;function dE(n,t=0){const e=n[t]|n[t+1]<<8|n[t+2]<<16|n[t+3]<<24;return((n[t+4]|n[t+5]<<8|n[t+6]<<16|n[t+7]<<24)>>>0)*i7+(e>>>0)}function s7(n,t){return t.minv.blockPosition-n.maxv.blockPosition<65e3&&t.maxv.blockPosition-n.minv.blockPosition<5e6}function gE(n,t){const e=[];let r;if(n.length===0)return n;n.sort(function(i,s){const o=i.minv.blockPosition-s.minv.blockPosition;return o===0?i.minv.dataPosition-s.minv.dataPosition:o});for(const i of n)(!t||i.maxv.compareTo(t)>0)&&(r===void 0?(e.push(i),r=i):s7(r,i)?i.maxv.compareTo(r.maxv)>0&&(r.maxv=i.maxv):(e.push(i),r=i));return e}class E0{constructor(t,e){this.blockPosition=t,this.dataPosition=e}toString(){return`${this.blockPosition}:${this.dataPosition}`}compareTo(t){return this.blockPosition-t.blockPosition||this.dataPosition-t.dataPosition}}function zs(n,t=0){return new E0(n[t+7]*1099511627776+n[t+6]*4294967296+n[t+5]*16777216+n[t+4]*65536+n[t+3]*256+n[t+2],n[t+1]<<8|n[t])}const o7=21582659,a7=38359875,c7={0:"generic",1:"SAM",2:"VCF"};function l7(n,t){return n*2**t}function pE(n,t){return Math.floor(n/2**t)}class wf extends AE{constructor(t){super(t),this.maxBinNumber=0,this.depth=0,this.minShift=0}async lineCount(t,e={}){const r=await this.parse(e),i=r.refNameToId[t];if(i===void 0||!r.indices[i])return-1;const{stats:o}=r.indices[i];return o?o.lineCount:-1}indexCov(){throw new Error("CSI indexes do not support indexcov")}parseAuxData(t,e){const r=new DataView(t.buffer),i=r.getInt32(e,!0),s=i&65536?"zero-based-half-open":"1-based-closed",o=c7[i&15];if(!o)throw new Error(`invalid Tabix preset format flags ${i}`);const a={ref:r.getInt32(e+4,!0),start:r.getInt32(e+8,!0),end:r.getInt32(e+12,!0)},l=r.getInt32(e+16,!0),c=l?String.fromCharCode(l):void 0,u=r.getInt32(e+20,!0),f=r.getInt32(e+24,!0),{refIdToName:h,refNameToId:A}=this._parseNameBytes(t.subarray(e+28,e+28+f));return{refIdToName:h,refNameToId:A,skipLines:u,metaChar:c,columnNumbers:a,format:o,coordinateType:s}}async _parse(t={}){const e=await Gs(await this.filehandle.readFile(t)),r=new DataView(e.buffer);let i;if(r.getUint32(0,!0)===o7)i=1;else if(r.getUint32(0,!0)===a7)i=2;else throw new Error("Not a CSI file");this.minShift=r.getInt32(4,!0),this.depth=r.getInt32(8,!0),this.maxBinNumber=((1<<(this.depth+1)*3)-1)/7;const s=2**(this.minShift+this.depth*3),o=r.getInt32(12,!0),a=o&&o>=30?this.parseAuxData(e,16):{refIdToName:[],refNameToId:{},metaChar:void 0,columnNumbers:{ref:0,start:1,end:2},coordinateType:"zero-based-half-open",format:"generic"},l=r.getInt32(16+o,!0);let c,u=16+o+4;const f=new Array(l).fill(0).map(()=>{const h=r.getInt32(u,!0);u+=4;const A={};let d;for(let g=0;g<h;g+=1){const p=r.getUint32(u,!0);if(p>this.maxBinNumber)d=this.parsePseudoBin(e,u+4),u+=48;else{const C=zs(e,u+4);c=this._findFirstData(c,C);const w=r.getInt32(u+12,!0);u+=16;const b=new Array(w);for(let y=0;y<w;y+=1){const x=zs(e,u),B=zs(e,u+8);u+=16,b[y]=new yf(x,B,p)}A[p]=b}}return{binIndex:A,stats:d}});return{...a,csi:!0,refCount:l,maxBlockSize:65536,firstDataLine:c,csiVersion:i,indices:f,depth:this.depth,maxBinNumber:this.maxBinNumber,maxRefLength:s}}parsePseudoBin(t,e){return{lineCount:dE(t,e+28)}}async blocksForRange(t,e,r,i={}){e<0&&(e=0);const s=await this.parse(i),o=s.refNameToId[t];if(o===void 0)return[];const a=s.indices[o];if(!a)return[];const l=this.reg2bins(e,r),c=[];for(const[u,f]of l)for(let h=u;h<=f;h++)if(a.binIndex[h])for(const A of a.binIndex[h])c.push(new yf(A.minv,A.maxv,h));return gE(c,new E0(0,0))}reg2bins(t,e){t-=1,t<1&&(t=1),e>2**50&&(e=2**34),e-=1;let r=0,i=0,s=this.minShift+this.depth*3;const o=[];for(;r<=this.depth;s-=3,i+=l7(1,r*3),r+=1){const a=i+pE(t,s),l=i+pE(e,s);if(l-a+o.length>this.maxBinNumber)throw new Error(`query ${t}-${e} is too large for current binning scheme (shift ${this.minShift}, depth ${this.depth}), try a smaller query or a coarser index binning scheme`);o.push([a,l])}return o}}const u7=21578324,mE=14;function f7(n,t){return n+=1,t-=1,[[0,0],[1+(n>>26),1+(t>>26)],[9+(n>>23),9+(t>>23)],[73+(n>>20),73+(t>>20)],[585+(n>>17),585+(t>>17)],[4681+(n>>14),4681+(t>>14)]]}class Hs extends AE{async lineCount(t,e={}){var o;const r=await this.parse(e),i=r.refNameToId[t];return i===void 0||!r.indices[i]?-1:((o=r.indices[i].stats)==null?void 0:o.lineCount)??-1}async _parse(t={}){const e=await this.filehandle.readFile(t),r=await Gs(e),i=new DataView(r.buffer);if(i.getUint32(0,!0)!==u7)throw new Error("Not a TBI file");const o=i.getUint32(4,!0),a=i.getUint32(8,!0),l=a&65536?"zero-based-half-open":"1-based-closed",u={0:"generic",1:"SAM",2:"VCF"}[a&15];if(!u)throw new Error(`invalid Tabix preset format flags ${a}`);const f={ref:i.getInt32(12,!0),start:i.getInt32(16,!0),end:i.getInt32(20,!0)},h=i.getInt32(24,!0),A=5,d=((1<<(A+1)*3)-1)/7,g=2**(14+A*3),p=h?String.fromCharCode(h):void 0,C=i.getInt32(28,!0),w=i.getInt32(32,!0),{refNameToId:b,refIdToName:y}=this._parseNameBytes(r.slice(36,36+w));let x=36+w,B;return{indices:new Array(o).fill(0).map(()=>{const Q=i.getInt32(x,!0);x+=4;const k={};let S;for(let U=0;U<Q;U+=1){const H=i.getUint32(x,!0);if(x+=4,H>d+1)throw new Error("tabix index contains too many bins, please use a CSI index");if(H===d+1){const J=i.getInt32(x,!0);x+=4,J===2&&(S=this.parsePseudoBin(r,x)),x+=16*J}else{const J=i.getInt32(x,!0);x+=4;const _=new Array(J);for(let Z=0;Z<J;Z+=1){const le=zs(r,x),de=zs(r,x+8);x+=16,B=this._findFirstData(B,le),_[Z]=new yf(le,de,H)}k[H]=_}}const T=i.getInt32(x,!0);x+=4;const N=new Array(T);for(let U=0;U<T;U+=1)N[U]=zs(r,x),x+=8,B=this._findFirstData(B,N[U]);return{binIndex:k,linearIndex:N,stats:S}}),metaChar:p,maxBinNumber:d,maxRefLength:g,skipLines:C,firstDataLine:B,columnNumbers:f,coordinateType:l,format:u,refIdToName:y,refNameToId:b,maxBlockSize:65536}}parsePseudoBin(t,e){return{lineCount:dE(t,e+16)}}async blocksForRange(t,e,r,i={}){e<0&&(e=0);const s=await this.parse(i),o=s.refNameToId[t];if(o===void 0)return[];const a=s.indices[o];if(!a)return[];(a.linearIndex.length>0?a.linearIndex[e>>mE>=a.linearIndex.length?a.linearIndex.length-1:e>>mE]:new E0(0,0))||console.warn("querying outside of possible tabix range");const c=f7(e,r),u=[];for(const[g,p]of c)for(let C=g;C<=p;C++)if(a.binIndex[C])for(const w of a.binIndex[C])u.push(new yf(w.minv,w.maxv,C));const f=a.linearIndex.length;let h;const A=Math.min(e>>14,f-1),d=Math.min(r>>14,f-1);for(let g=A;g<=d;++g){const p=a.linearIndex[g];p&&(!h||p.compareTo(h)<0)&&(h=p)}return gE(u,h)}}class A7{constructor({path:t,filehandle:e,url:r,tbiPath:i,tbiUrl:s,tbiFilehandle:o,csiPath:a,csiUrl:l,csiFilehandle:c,renameRefSeqs:u,chunkCacheSize:f=5*2**20}){this.cache=new cc({maxSize:1e3});const h=u??(A=>A);if(e)this.filehandle=e;else if(t)this.filehandle=new at(t);else if(r)this.filehandle=new pn(r);else throw new TypeError("must provide either filehandle or path");if(o)this.index=new Hs({filehandle:o,renameRefSeqs:h});else if(c)this.index=new wf({filehandle:c,renameRefSeqs:h});else if(i)this.index=new Hs({filehandle:new at(i),renameRefSeqs:h});else if(a)this.index=new wf({filehandle:new at(a),renameRefSeqs:h});else if(t)this.index=new Hs({filehandle:new at(`${t}.tbi`),renameRefSeqs:h});else if(l)this.index=new wf({filehandle:new pn(l)});else if(s)this.index=new Hs({filehandle:new pn(s)});else if(r)this.index=new Hs({filehandle:new pn(`${r}.tbi`)});else throw new TypeError("must provide one of tbiFilehandle, tbiPath, csiFilehandle, csiPath, tbiUrl, csiUrl");this.renameRefSeq=h,this.hasCustomRenameRefSeq=u!==void 0,this.chunkCache=new Qs({cache:new cc({maxSize:Math.floor(f/65536)}),fill:(A,d)=>this.readChunk(A,{signal:d})})}calculateFileOffset(t,e,r,i,s){return t[r]*256+(i-e[r])+s+1}async getLines(t,e,r,i){var b;let s,o={},a;typeof i=="function"?a=i:(o=i,a=i.lineCallback,s=i.signal);const l=await this.index.getMetadata(o),c=e??0,u=r??l.maxRefLength;if(!(c<=u))throw new TypeError("invalid start and end coordinates. start must be less than or equal to end");if(c===u)return;const f=await this.index.blocksForRange(t,c,u,o),h=new TextDecoder("utf8"),A=l.format==="VCF",d={ref:l.columnNumbers.ref||0,start:l.columnNumbers.start||0,end:A?8:l.columnNumbers.end||0},g=Math.max(d.ref,d.start,d.end),p=(b=l.metaChar)==null?void 0:b.charCodeAt(0),C=l.coordinateType==="1-based-closed"?-1:0,w=!this.hasCustomRenameRefSeq;for(const y of f){const{buffer:x,cpositions:B,dpositions:E}=await this.chunkCache.get(y.toString(),y,s);let Q=0,k=0;const S=h.decode(x);if(x.length==S.length)for(;Q<S.length;){const N=S.indexOf(`
|
|
883
|
+
`,Q);if(N===-1)break;const U=S.slice(Q,N);if(E){const J=Q+y.minv.dataPosition;for(;k<E.length&&J>=E[k];)k++}const H=this.checkLine(t,c,u,U,d.ref,d.start,d.end,g,p,C,A,w);if(H===null)return;H!==void 0&&a(U,this.calculateFileOffset(B,E,k,Q,y.minv.dataPosition),H.start,H.end),Q=N+1}else for(;Q<x.length;){const N=x.indexOf(10,Q);if(N===-1)break;const U=x.slice(Q,N),H=h.decode(U);if(E){const _=Q+y.minv.dataPosition;for(;k<E.length&&_>=E[k];)k++}const J=this.checkLine(t,c,u,H,d.ref,d.start,d.end,g,p,C,A,w);if(J===null)return;J!==void 0&&a(H,this.calculateFileOffset(B,E,k,Q,y.minv.dataPosition),J.start,J.end),Q=N+1}}}async getMetadata(t={}){return this.index.getMetadata(t)}async getHeaderBuffer(t={}){const{firstDataLine:e,metaChar:r,maxBlockSize:i}=await this.getMetadata(t),s=((e==null?void 0:e.blockPosition)||0)+i,o=await this.filehandle.read(s,0,t),a=await Gs(o);if(r){let l=-1;const c=10,u=r.charCodeAt(0);for(let f=0,h=a.length;f<h;f++){const A=a[f];if(f===l+1&&A!==u)break;A===c&&(l=f)}return a.subarray(0,l+1)}return a}async getHeader(t={}){const e=new TextDecoder("utf8"),r=await this.getHeaderBuffer(t);return e.decode(r)}async getReferenceSequenceNames(t={}){return(await this.getMetadata(t)).refIdToName}checkLine(t,e,r,i,s,o,a,l,c,u,f,h){if(c!==void 0&&i.charCodeAt(0)===c)return;if(i.length<500){const b=i.split(" "),y=b[s-1];if(!(h?y===t:this.renameRefSeq(y)===t))return;const B=+b[o-1]+u;if(B>=r)return null;let E;return a===0||a===o?E=B+1:f?E=this._getVcfEnd(B,b[3],b[a-1]):E=+b[a-1],E<=e?void 0:{start:B,end:E}}let A=-1;const d=[-1];for(let b=0;b<l;b++){const y=i.indexOf(" ",A+1);if(y===-1){d.push(i.length);break}d.push(y),A=y}const g=i.slice(d[s-1]+1,d[s]);if(!(h?g===t:this.renameRefSeq(g)===t))return;const C=+i.slice(d[o-1]+1,d[o])+u;if(C>=r)return null;let w;if(a===0||a===o?w=C+1:f?w=this._getVcfEnd(C,i.slice(d[3]+1,d[4]),i.slice(d[a-1]+1,d[a])):w=+i.slice(d[a-1]+1,d[a]),!(w<=e))return{start:C,end:w}}_getVcfEnd(t,e,r){let i=t+e.length;if(r.includes("SVTYPE=TRA"))return t+1;if(r[0]!=="."){const o=r.indexOf("END=");if(o!==-1&&(o===0||r[o-1]===";")){const a=o+4;let l=r.indexOf(";",a);l===-1&&(l=r.length),i=Number.parseInt(r.slice(a,l),10)}}return i}async lineCount(t,e={}){return this.index.lineCount(t,e)}async readChunk(t,e={}){const r=await this.filehandle.read(t.fetchedSize(),t.minv.blockPosition,e);return iE(r,t,this.cache)}}const h7=Object.freeze(Object.defineProperty({__proto__:null,CSI:wf,TBI:Hs,TabixIndexedFile:A7},Symbol.toStringTag,{value:"Module"})),d7=/%([0-9A-Fa-f]{2})/g,g7=/^\s*##\s*(\S+)\s*(.*)/,p7=/\r?\n$/,CE=/\s+/,yE=/\D/g;function If(n){return n.includes("%")?n.replaceAll(d7,(t,e)=>String.fromCharCode(parseInt(e,16))):n}function m7(n){if(!n.length||n===".")return{};const t={};let e=n;e.endsWith(`
|
|
884
|
+
`)&&(e=e.slice(0,e.endsWith(`\r
|
|
885
|
+
`)?-2:-1));for(const r of e.split(";")){const i=r.indexOf("=");if(i===-1)continue;const s=r.slice(i+1);if(!s.length)continue;const o=r.slice(0,i).trim();let a=t[o];a||(a=[],t[o]=a);for(const l of s.split(","))a.push(If(l.trim()))}return t}function C7(n){if(!n.length||n===".")return{};const t={};let e=n;e.endsWith(`
|
|
886
|
+
`)&&(e=e.slice(0,e.endsWith(`\r
|
|
887
|
+
`)?-2:-1));for(const r of e.split(";")){const i=r.indexOf("=");if(i===-1)continue;const s=r.slice(i+1);if(!s.length)continue;const o=r.slice(0,i).trim();let a=t[o];a||(a=[],t[o]=a);for(const l of s.split(","))a.push(l.trim())}return t}function y7(n){return b0(n.split(" "))}function We(n){return n==="."||n===""||n===void 0?null:n}function b0(n){const t=We(n[0]),e=We(n[1]),r=We(n[2]),i=We(n[3]),s=We(n[4]),o=We(n[5]),a=We(n[6]),l=We(n[7]),c=We(n[8]);return{seq_id:t?If(t):null,source:e?If(e):null,type:r?If(r):null,start:i===null?null:parseInt(i,10),end:s===null?null:parseInt(s,10),score:o===null?null:parseFloat(o),strand:a,phase:l,attributes:c===null?null:m7(c)}}function w7(n){const t=We(n[0]),e=We(n[1]),r=We(n[2]),i=We(n[3]),s=We(n[4]),o=We(n[5]),a=We(n[6]),l=We(n[7]),c=We(n[8]);return{seq_id:t,source:e,type:r,start:i===null?null:parseInt(i,10),end:s===null?null:parseInt(s,10),score:o===null?null:parseFloat(o),strand:a,phase:l,attributes:c===null?null:C7(c)}}function I7(n){var s,o;const t=g7.exec(n);if(!t)return null;const[,e]=t;let[,,r]=t;const i={directive:e};if(r.length&&(r=r.replace(p7,""),i.value=r),e==="sequence-region"){const a=r.split(CE,3);return{...i,seq_id:a[0],start:(s=a[1])==null?void 0:s.replaceAll(yE,""),end:(o=a[2])==null?void 0:o.replaceAll(yE,"")}}else if(e==="genome-build"){const[a,l]=r.split(CE,2);return{...i,source:a,buildName:l}}return i}const E7=/^\s*[^#\s>]/,b7=/^\s*(#+)(.*)/,x7=/^\s*$/,B7=/^\s*>/,v7=/\r?\n?$/g;class Ef{constructor(t){j(this,"featureCallback");j(this,"endCallback");j(this,"commentCallback");j(this,"errorCallback");j(this,"disableDerivesFromReferences");j(this,"directiveCallback");j(this,"bufferSize");j(this,"eof",!1);j(this,"lineNumber",0);j(this,"_underConstructionTopLevel",[]);j(this,"_underConstructionById",{});j(this,"_completedReferences",{});j(this,"_underConstructionOrphans",{});const e=()=>{};this.featureCallback=t.featureCallback||e,this.endCallback=t.endCallback||e,this.commentCallback=t.commentCallback||e,this.errorCallback=t.errorCallback||e,this.directiveCallback=t.directiveCallback||e,this.disableDerivesFromReferences=t.disableDerivesFromReferences||!1,this.bufferSize=t.bufferSize===void 0?1/0:t.bufferSize}addLine(t){if(this.eof)return;if(this.lineNumber+=1,E7.test(t)){this._bufferLine(t);return}const e=b7.exec(t);if(e){const[,r]=e;let[,,i]=e;if(r.length===3)this._emitAllUnderConstructionFeatures();else if(r.length===2){const s=I7(t);s&&(s.directive==="FASTA"?(this._emitAllUnderConstructionFeatures(),this.eof=!0):this._emitItem(s))}else this._emitItem({comment:i.trimStart()})}else if(!x7.test(t))if(B7.test(t))this._emitAllUnderConstructionFeatures(),this.eof=!0;else{const r=t.replaceAll(v7,"");throw new Error(`GFF3 parse error. Cannot parse '${r}'.`)}}addParsedFeatureLine(t){this.eof||(this.lineNumber+=1,this._bufferParsedLine(t))}finish(){this._emitAllUnderConstructionFeatures(),this.endCallback()}_emitItem(t){Array.isArray(t)?this.featureCallback(t):"directive"in t?this.directiveCallback(t):"comment"in t&&this.commentCallback(t)}_enforceBufferSizeLimit(t=0){const e=r=>{var i,s;r&&Array.isArray(r)&&((s=(i=r[0].attributes)==null?void 0:i.ID)!=null&&s[0])&&(r[0].attributes.ID.forEach(a=>{delete this._underConstructionById[a],delete this._completedReferences[a]}),r.forEach(a=>{a.child_features&&a.child_features.forEach(l=>{e(l)}),a.derived_features&&a.derived_features.forEach(l=>{e(l)})}))};for(;this._underConstructionTopLevel.length+t>this.bufferSize;){const r=this._underConstructionTopLevel.shift();r&&(this._emitItem(r),e(r))}}_emitAllUnderConstructionFeatures(){this._underConstructionTopLevel.forEach(this._emitItem.bind(this)),this._underConstructionTopLevel=[],this._underConstructionById={},this._completedReferences={};const t=Object.keys(this._underConstructionOrphans);if(t.length)throw new Error(`some features reference other features that do not exist in the file (or in the same '###' scope). ${t.join(",")}`)}_bufferLine(t){this._bufferParsedLine(y7(t))}_bufferParsedLine(t){var a,l,c;const e=t;e.child_features=[],e.derived_features=[];const r=((a=e.attributes)==null?void 0:a.ID)||[],i=((l=e.attributes)==null?void 0:l.Parent)||[],s=this.disableDerivesFromReferences?[]:((c=e.attributes)==null?void 0:c.Derives_from)||[];if(!r.length&&!i.length&&!s.length){this._emitItem([e]);return}let o;r.forEach(u=>{const f=this._underConstructionById[u];f?(f[f.length-1].type!==e.type&&this._parseError(`multi-line feature "${u}" has inconsistent types: "${e.type}", "${f[f.length-1].type}"`),f.push(e),o=f):(o=[e],this._enforceBufferSizeLimit(1),!i.length&&!s.length&&this._underConstructionTopLevel.push(o),this._underConstructionById[u]=o,this._resolveReferencesTo(o,u))}),this._resolveReferencesFrom(o||[e],{Parent:i,Derives_from:s},r)}_resolveReferencesTo(t,e){const r=this._underConstructionOrphans[e];if(r){for(const i of t)i.child_features.push(...r.Parent),i.derived_features.push(...r.Derives_from);delete this._underConstructionOrphans[e]}}_parseError(t){this.eof=!0,this.errorCallback(`${this.lineNumber}: ${t}`)}_resolveReferencesFrom(t,e,r){for(const i of e.Parent){const s=this._underConstructionById[i];if(s){let o=!1;for(const a of r){const l=`Parent,${i}`,c=this._completedReferences[a]||(this._completedReferences[a]={});c[l]&&(o=!0),c[l]=!0}if(!o)for(const a of s)a.child_features.push(t)}else{let o=this._underConstructionOrphans[i];o||(o={Parent:[],Derives_from:[]},this._underConstructionOrphans[i]=o),o.Parent.push(t)}}for(const i of e.Derives_from){const s=this._underConstructionById[i];if(s){let o=!1;for(const a of r){const l=`Derives_from,${i}`,c=this._completedReferences[a]||(this._completedReferences[a]={});c[l]&&(o=!0),c[l]=!0}if(!o)for(const a of s)a.derived_features.push(t)}else{let o=this._underConstructionOrphans[i];o||(o={Parent:[],Derives_from:[]},this._underConstructionOrphans[i]=o),o.Derives_from.push(t)}}}}function Q7(n){const t=[],e=new Ef({featureCallback:r=>t.push(r),disableDerivesFromReferences:!0,errorCallback:r=>{throw new Error(r)}});for(const r of n.split(/\r?\n/))e.addLine(r);return e.finish(),t}function S7(n){const t=[],e=new Ef({featureCallback:r=>t.push(r),disableDerivesFromReferences:!0,errorCallback:r=>{throw new Error(r)}});for(const r of n)e.addLine(r);return e.finish(),t}function D7(n){const t=[],e=new Ef({featureCallback:r=>t.push(r),disableDerivesFromReferences:!0,errorCallback:r=>{throw new Error(r)}});for(const r of n){const i=b0(r.fields);r.lineHash!==void 0&&(i.attributes||(i.attributes={}),i.attributes._lineHash=[String(r.lineHash)]),e.addParsedFeatureLine(i)}return e.finish(),t}function k7(n,t){const e=[],r=new Ef({featureCallback:s=>e.push(s),disableDerivesFromReferences:!0,errorCallback:s=>{throw new Error(s)}}),i=t?b0:w7;for(const s of n){const o=i(s.fields);s.lineHash!==void 0&&(o.attributes||(o.attributes={}),o.attributes._lineHash=[String(s.lineHash)]),r.addParsedFeatureLine(o)}return r.finish(),e}const F7=Object.freeze(Object.defineProperty({__proto__:null,parseArraySync:S7,parseRecordsSync:D7,parseRecordsSyncFast:k7,parseStringSync:Q7},Symbol.toStringTag,{value:"Module"}));function M7(n,t,e){const r=Object.create(null),i=e.length,s=t.length,o=9,a=58;let l=0;if(n==="GT"){for(let f=0;f<i;f++){const h=l;for(;l<s&&t.charCodeAt(l)!==o;)l++;r[e[f]]=t.slice(h,l),l++}return r}const c=n.indexOf("GT");if(c===-1)return r;if(c===0){for(let f=0;f<i;f++){const h=l;for(;l<s&&t.charCodeAt(l)!==a&&t.charCodeAt(l)!==o;)l++;for(r[e[f]]=t.slice(h,l);l<s&&t.charCodeAt(l)!==o;)l++;l++}return r}let u=0;for(let f=0;f<c;f++)n.charCodeAt(f)===a&&u++;for(let f=0;f<i;f++){const h=l;let A=l;for(;A<s&&t.charCodeAt(A)!==o;)A++;let d=0,g=h;for(let p=h;p<=A;p++)if(p===A||t.charCodeAt(p)===a){if(d===u){r[e[f]]=t.slice(g,p);break}d++,g=p+1}l=A+1}return r}function R7(n){const t=[],e=[];let r=!1,i=!1;const s=n.length;for(let o=0;o<s;o++){const a=n[o];a==='"'?(r=!r,e.push(a)):a==="["?(i=!0,e.push(a)):a==="]"?(i=!1,e.push(a)):a===","&&!r&&!i?(t.push(e.join("").trim()),e.length=0):e.push(a)}return e.length>0&&t.push(e.join("").trim()),t}function N7(n,t){const e=n.indexOf(t);return[n.slice(0,e),n.slice(e+1)]}function T7(n){const t=n.slice(1,-1),e=R7(t),r=[];for(let i=0;i<e.length;i++){const s=e[i],[o,a]=N7(s,"=");if(a&&a.startsWith("[")&&a.endsWith("]")){const l=a.slice(1,-1).split(",");for(let c=0;c<l.length;c++)l[c]=l[c].trim();r.push([o,l])}else a&&a.startsWith('"')&&a.endsWith('"')?r.push([o,a.slice(1,-1)]):r.push([o,a])}return Object.fromEntries(r)}const bf={InfoFields:{AA:{Number:1,Type:"String",Description:"Ancestral allele"},AC:{Number:"A",Type:"Integer",Description:"Allele count in genotypes, for each ALT allele, in the same order as listed"},AD:{Number:"R",Type:"Integer",Description:"Total read depth for each allele"},ADF:{Number:"R",Type:"Integer",Description:"Read depth for each allele on the forward strand"},ADR:{Number:"R",Type:"Integer",Description:"Read depth for each allele on the reverse strand"},AF:{Number:"A",Type:"Float",Description:"Allele frequency for each ALT allele in the same order as listed (estimated from primary data, not called genotypes)"},AN:{Number:1,Type:"Integer",Description:"Total number of alleles in called genotypes"},BQ:{Number:1,Type:"Float",Description:"RMS base quality"},CIGAR:{Number:1,Type:"Float",Description:"Cigar string describing how to align an alternate allele to the reference allele"},DB:{Number:0,Type:"Flag",Description:"dbSNP membership"},DP:{Number:1,Type:"Integer",Description:"combined depth across samples"},END:{Number:1,Type:"Integer",Description:"End position (for use with symbolic alleles)"},H2:{Number:0,Type:"Flag",Description:"HapMap2 membership"},H3:{Number:0,Type:"Flag",Description:"HapMap3 membership"},MQ:{Number:1,Type:null,Description:"RMS mapping quality"},MQ0:{Number:1,Type:"Integer",Description:"Number of MAPQ == 0 reads"},NS:{Number:1,Type:"Integer",Description:"Number of samples with data"},SB:{Number:4,Type:"Integer",Description:"Strand bias"},SOMATIC:{Number:0,Type:"Flag",Description:"Somatic mutation (for cancer genomics)"},VALIDATED:{Number:0,Type:"Flag",Description:"Validated by follow-up experiment"},"1000G":{Number:0,Type:"Flag",Description:"1000 Genomes membership"},IMPRECISE:{Number:0,Type:"Flag",Description:"Imprecise structural variation"},NOVEL:{Number:0,Type:"Flag",Description:"Indicates a novel structural variation"},SVTYPE:{Number:1,Type:"String",Description:"Type of structural variant"},SVLEN:{Number:null,Type:"Integer",Description:"Difference in length between REF and ALT alleles"},CIPOS:{Number:2,Type:"Integer",Description:"Confidence interval around POS for imprecise variants"},CIEND:{Number:2,Type:"Integer",Description:"Confidence interval around END for imprecise variants"},HOMLEN:{Type:"Integer",Description:"Length of base pair identical micro-homology at event breakpoints"},HOMSEQ:{Type:"String",Description:"Sequence of base pair identical micro-homology at event breakpoints"},BKPTID:{Type:"String",Description:"ID of the assembled alternate allele in the assembly file"},MEINFO:{Number:4,Type:"String",Description:"Mobile element info of the form NAME,START,END,POLARITY"},METRANS:{Number:4,Type:"String",Description:"Mobile element transduction info of the form CHR,START,END,POLARITY"},DGVID:{Number:1,Type:"String",Description:"ID of this element in Database of Genomic Variation"},DBVARID:{Number:1,Type:"String",Description:"ID of this element in DBVAR"},DBRIPID:{Number:1,Type:"String",Description:"ID of this element in DBRIP"},MATEID:{Number:null,Type:"String",Description:"ID of mate breakends"},PARID:{Number:1,Type:"String",Description:"ID of partner breakend"},EVENT:{Number:1,Type:"String",Description:"ID of event associated to breakend"},CILEN:{Number:2,Type:"Integer",Description:"Confidence interval around the inserted material between breakend"},DPADJ:{Type:"Integer",Description:"Read Depth of adjacency"},CN:{Number:1,Type:"Integer",Description:"Copy number of segment containing breakend"},CNADJ:{Number:null,Type:"Integer",Description:"Copy number of adjacency"},CICN:{Number:2,Type:"Integer",Description:"Confidence interval around copy number for the segment"},CICNADJ:{Number:null,Type:"Integer",Description:"Confidence interval around copy number for the adjacency"}},GenotypeFields:{AD:{Number:"R",Type:"Integer",Description:"Read depth for each allele"},ADF:{Number:"R",Type:"Integer",Description:"Read depth for each allele on the forward strand"},ADR:{Number:"R",Type:"Integer",Description:"Read depth for each allele on the reverse strand"},DP:{Number:1,Type:"Integer",Description:"Read depth"},EC:{Number:"A",Type:"Integer",Description:"Expected alternate allele counts"},FT:{Number:1,Type:"String",Description:'Filter indicating if this genotype was "called"'},GL:{Number:"G",Type:"Float",Description:"Genotype likelihoods"},GP:{Number:"G",Type:"Float",Description:"Genotype posterior probabilities"},GQ:{Number:1,Type:"Integer",Description:"Conditional genotype quality"},GT:{Number:1,Type:"String",Description:"Genotype"},HQ:{Number:2,Type:"Integer",Description:"Haplotype quality"},MQ:{Number:1,Type:"Integer",Description:"RMS mapping quality"},PL:{Number:"G",Type:"Integer",Description:"Phred-scaled genotype likelihoods rounded to the closest integer"},PQ:{Number:1,Type:"Integer",Description:"Phasing quality"},PS:{Number:1,Type:"Integer",Description:"Phase set"}},AltTypes:{DEL:{Description:"Deletion relative to the reference"},INS:{Description:"Insertion of novel sequence relative to the reference"},DUP:{Description:"Region of elevated copy number relative to the reference"},INV:{Description:"Inversion of reference sequence"},CNV:{Description:"Copy number variable region (may be both deletion and duplication)"},"DUP:TANDEM":{Description:"Tandem duplication"},"DEL:ME":{Description:"Deletion of mobile element relative to the reference"},"INS:ME":{Description:"Insertion of a mobile element relative to the reference"},NON_REF:{Description:"Represents any possible alternative allele at this location"},"*":{Description:"Represents any possible alternative allele at this location"}},FilterTypes:{PASS:{Description:"Passed all filters"}}};function P7(n){try{return decodeURIComponent(n)}catch{return n}}class L7{constructor({header:t="",strict:e=!0}){if(!t.length)throw new Error("empty header received");const r=t.split(/[\r\n]+/).filter(Boolean);if(!r.length)throw new Error("no non-empty header lines specified");this.strict=e,this.metadata={INFO:{...bf.InfoFields},FORMAT:{...bf.GenotypeFields},ALT:{...bf.AltTypes},FILTER:{...bf.FilterTypes}};let i;for(let l=0;l<r.length;l++){const c=r[l];if(c.startsWith("#"))c.startsWith("##")?this.parseMetadata(c):i=c;else throw new Error(`Bad line in header:
|
|
888
|
+
${c}`)}if(!i)throw new Error("No format line found in header");const s=i.trim().split(" "),o=s.slice(0,8),a=["#CHROM","POS","ID","REF","ALT","QUAL","FILTER","INFO"];if(s.length<8)throw new Error(`VCF header missing columns:
|
|
889
|
+
${i}`);if(o.length!==a.length||!o.every((l,c)=>l===a[c]))throw new Error(`VCF column headers not correct:
|
|
890
|
+
${i}`);this.samples=s.slice(9)}parseInfo(t){var a;const e={},r=t.includes("%"),i=t.split(";"),s=this.metadata.INFO,o=i.length;for(let l=0;l<o;l++){const c=i[l],u=c.indexOf("="),f=u===-1?c:c.slice(0,u),h=u===-1?void 0:c.slice(u+1),A=(a=s[f])==null?void 0:a.Type;if(A==="Flag")e[f]=!0;else if(!h)e[f]=!0;else{const d=A==="Integer"||A==="Float",g=h.split(","),p=g.length;if(r){const C=[];for(let w=0;w<p;w++){const b=g[w];if(b===".")C.push(void 0);else{const y=P7(b);C.push(d?Number(y):y)}}e[f]=C}else{const C=[];for(let w=0;w<p;w++){const b=g[w];b==="."?C.push(void 0):C.push(d?Number(b):b)}e[f]=C}}}return e}parseSamples(t,e){var i;const r={};if(t){const s=e.split(" "),o=t.split(":"),a=this.metadata.FORMAT,l=[];for(let f=0;f<o.length;f++){const h=(i=a[o[f]])==null?void 0:i.Type;l.push(h==="Integer"||h==="Float")}const c=o.length,u=this.samples.length;for(let f=0;f<u;f++){const h=this.samples[f],A={},d=s[f],g=d.length;let p=0,C=0;for(let w=0;w<=g;w++)if(w===g||d[w]===":"){const b=d.slice(p,w);if(b===""||b===".")A[o[C]]=void 0;else{const y=b.split(","),x=[];if(l[C])for(let B=0;B<y.length;B++){const E=y[B];x.push(E==="."?void 0:+E)}else for(let B=0;B<y.length;B++){const E=y[B];x.push(E==="."?void 0:E)}A[o[C]]=x}if(p=w+1,C+=1,C>=c)break}r[h]=A}}return r}parseMetadata(t){const e=/^##(.+?)=(.*)/.exec(t.trim());if(!e)throw new Error(`Line is not a valid metadata line: ${t}`);const[r,i]=e.slice(1,3),s=r;if(i!=null&&i.startsWith("<")){s in this.metadata||(this.metadata[s]={});const[o,a]=this.parseStructuredMetaVal(i);o?this.metadata[s][o]=a:this.metadata[s]=a}else this.metadata[s]=i}parseStructuredMetaVal(t){const e=T7(t),r=e.ID;return delete e.ID,"Number"in e&&(Number.isNaN(Number(e.Number))||(e.Number=Number(e.Number))),[r,e]}getMetadata(...t){let e=this.metadata;const r=t.length;for(let i=0;i<r;i++)if(e=e[t[i]],!e)return e;return e}parseLine(t){let e=0,r=0;for(;e<t.length&&r<9;)t[e]===" "&&(r+=1),e+=1;const i=r===9?e-1:e,s=t.slice(0,i).split(" "),o=t.slice(i+1),[a,l,c,u,f,h,A]=s,d=a,g=+l,p=c==="."?void 0:c.split(";"),C=u,w=f==="."?void 0:f.split(","),b=h==="."?void 0:+h,y=A==="."?void 0:A.split(";"),x=s[8];if(this.strict&&!s[7])throw new Error("no INFO field specified, must contain at least a '.' (turn off strict mode to allow)");const B=s[7]===void 0||s[7]==="."?{}:this.parseInfo(s[7]);return{CHROM:d,POS:g,ALT:w,INFO:B,REF:C,FILTER:(y==null?void 0:y.length)===1&&y[0]==="PASS"?"PASS":y,ID:p,QUAL:b,FORMAT:x,SAMPLES:()=>this.parseSamples(s[8]??"",o),GENOTYPES:()=>M7(s[8]??"",o,this.samples)}}}const O7=Object.freeze(Object.defineProperty({__proto__:null,default:L7},Symbol.toStringTag,{value:"Module"}));ee.GenomeSpy=yy,ee.embed=zR,ee.favIcon=GR,ee.html=be,ee.icon=UR,ee.loadSpec=wy,Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"})}));
|